import React from 'react'; import '../styles.css'; import './storybook.css'; import type { Preview } from "@storybook/react"; import DesignSystemProvider from '../src/providers/DesignSystemProvider'; import adminxTheme from './adminx-theme'; const preview: Preview = { parameters: { actions: { argTypesRegex: "^on[A-Z].*" }, controls: { matchers: { color: /(background|color)$/i, date: /Date$/, }, }, options: { storySort: { mathod: 'alphabetical', order: ['Welcome', 'Foundations', ['Style Guide', 'Colors', 'Icons', 'ErrorHandling'], 'Global', ['Form', 'Chrome', 'Modal', 'Layout', 'List', 'Table', '*'], 'Settings', ['Setting Section', 'Setting Group', '*'], 'Experimental'], }, }, docs: { theme: adminxTheme, }, }, decorators: [ (Story, context) => { let {scheme} = context.globals; return (