import type { Theme } from '@mui/material'; import type { ComponentStory } from '@storybook/react'; import { makeStyles } from 'tss-react/mui'; import ButtonSave from '.'; import '../../ThemeProvider/tailwindcss.css'; const useStyles = makeStyles()((theme: Theme) => ({ root: { background: theme.palette.error.main, borderRadius: theme.spacing(0.5), width: theme.spacing(10) } })); const meta = { argTypes: { labelLoading: { control: 'text' }, labelSave: { control: 'text' }, labelSucceeded: { control: 'text' }, loading: { control: 'boolean' }, size: { control: 'select', options: ['small', 'medium', 'large'] }, succeeded: { control: 'boolean' }, tooltipLabel: { control: 'text' } }, component: ButtonSave, parameters: { chromatic: { delay: 300 } }, title: 'Button/Save' }; export default meta; const TemplateButtonSave: ComponentStory = (args) => ( ); export const PlaygroundButton = TemplateButtonSave.bind({}); export const normal = (): JSX.Element => ; export const loading = (): JSX.Element => ; export const succeeded = (): JSX.Element => ; export const normalWithText = (): JSX.Element => ( ); export const largeWithText = (): JSX.Element => ( ); export const loadingWithTextAndMediumSize = (): JSX.Element => ( ); export const succeededWithText = (): JSX.Element => ( ); export const normalWithTextAndSmallSize = (): JSX.Element => ( ); export const loadingWithTextAndSmallSize = (): JSX.Element => ( ); export const loadingWithTextAndLargeSize = (): JSX.Element => ( ); export const succeededWithTextAndSmallSize = (): JSX.Element => ( ); const CustomButton = (): JSX.Element => { const { classes } = useStyles(); return ; }; export const customButton = (): JSX.Element => ;