d596c26f46
## Migrate all `twenty-ui-deprecated` components into `twenty-ui` Ports all **192 components** and **70 stories** into the new `twenty-ui` package with full public-API parity (export diff: 0 missing / 0 extra across all 13 modules; story titles byte-identical for the Argos cross-package diff). - **Styling:** Linaria → SCSS Modules, `var(--t-*)` tokens, `data-*` state. Canonical pattern in `Button.module.scss`. - **Behavior:** Base UI where mapped (Checkbox, Radio, Modal→Dialog, Tooltip drops `react-tooltip`, JSON tree→Collapsible); framer kept only where animation is the public contract. - **Fixed an inert axe gate** in `.storybook/vitest.setup.ts` (a11y addon annotations were never registered). Now live; 119 stories carry `a11y: 'todo'` overrides pending a fix pass.
25 lines
495 B
TypeScript
25 lines
495 B
TypeScript
import { type Preview } from '@storybook/react-vite';
|
|
import '@ui/theme-constants/theme-light.css';
|
|
import '@ui/theme-constants/theme-dark.css';
|
|
import { ThemeProvider } from '@ui/theme-constants';
|
|
|
|
const preview: Preview = {
|
|
tags: ['autodocs'],
|
|
parameters: {
|
|
a11y: {
|
|
test: 'error',
|
|
},
|
|
},
|
|
decorators: [
|
|
(Story) => {
|
|
return (
|
|
<ThemeProvider colorScheme="light">
|
|
<Story />
|
|
</ThemeProvider>
|
|
);
|
|
},
|
|
],
|
|
};
|
|
|
|
export default preview;
|