import preview from "../.storybook/preview"; import { withVisualTestParameters } from "@/stories/utils/parameters"; import { IconBellFill } from "@karrotmarket/react-monochrome-icon"; import { helpBubbleVariantMap } from "@seed-design/css/recipes/help-bubble"; import { HelpBubbleTrigger } from "seed-design/ui/help-bubble"; import { SeedThemeDecorator } from "./components/decorator"; import { VariantTable } from "./components/variant-table"; const meta = preview.meta({ component: HelpBubbleTrigger, decorators: [ (Story) => ( <>
), SeedThemeDecorator, ], }); const conditionMap = { description: { true: { description: "Description" }, false: { description: undefined }, }, showCloseButton: { true: { showCloseButton: true }, false: { showCloseButton: false }, }, }; const CommonStoryTemplate = meta.story({ args: { children: , title: "Title", open: true, placement: "bottom", }, render: (args, { component }) => ( ), }); export const LightTheme = CommonStoryTemplate.extend({}); export const DarkTheme = CommonStoryTemplate.extend({ parameters: withVisualTestParameters({ theme: "dark" }), }); export const FontScalingExtraSmall = CommonStoryTemplate.extend({ parameters: withVisualTestParameters({ fontScale: "Extra Small" }), }); export const FontScalingExtraExtraExtraLarge = CommonStoryTemplate.extend({ parameters: withVisualTestParameters({ fontScale: "Extra Extra Extra Large" }), });