import '../tailwind.css'; import './storybook.css'; import { IntlProvider } from 'react-intl'; import React, { PropsWithChildren } from 'react'; import { ActionsDecorator, layoutArgsEnhancer, OrganismDecorator, } from '@amazeelabs/react-framework-bridge/storybook'; import { DecoratorFn, ReactFramework, Story, StoryFn } from '@storybook/react'; export { argTypes } from '@amazeelabs/react-framework-bridge/storybook'; export const argsEnhancers = [ // Automatically renders placeholders in layout stories. layoutArgsEnhancer, ]; export const parameters = { options: { storySort: { order: [ 'Pages', 'Elements', ['Layouts', 'Organisms', 'Molecules', 'Atoms'], ], }, }, // Ignore every export that starts with "mock" in a stories-file. That way // mocking functions can be shared between stories. excludeStories: /^mock/, // Stories are not run chromatic by default. We selectively enable the ones we // want to run. chromatic: { disable: true, }, }; // Every story is wrapped in an IntlProvider by default. const IntlDecorator: DecoratorFn = (Story) => ( ); export const decorators: Array = [ OrganismDecorator, ActionsDecorator, IntlDecorator, ];