- Documents the following components in Storybook: - `btrix-data-table` - `btrix-table` - `btrix-crawl-log-table` - `btrix-custom-behaviors-table` - `btrix-link-selector-table` - `btrix-queue-exclusion-table` - `btrix-queue-exclusion-form` - Refactors `btrix-table` and subcomponents to simplify CSS properties - Fixes crawl exclusion table delete button not rendering - Fixes Shoelace assets not loading Storybook
28 lines
553 B
TypeScript
28 lines
553 B
TypeScript
import "@/global";
|
|
import "@/components/ui";
|
|
|
|
import {
|
|
setCustomElementsManifest,
|
|
type Preview,
|
|
} from "@storybook/web-components";
|
|
|
|
import customElements from "@/__generated__/custom-elements.json";
|
|
|
|
// Automatically document component properties
|
|
setCustomElementsManifest(customElements);
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
controls: {
|
|
expanded: true,
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/i,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default preview;
|