import type { Meta, StoryObj } from "@storybook/react-vite"; import { Box } from "../containers/Box"; import { IndeterminateToggleDemo } from "../story-components/IndeterminateToggleDemo"; import { Story } from "../story-components/Story"; import { IndeterminateLinearProgress, LinearProgress } from "./LinearProgress"; type ThisStory = StoryObj; export default { title: "alouette/Feedback/LinearProgress", component: LinearProgress, parameters: { componentSubtitle: "Bar pinned to the top of its container that fills to a known completion percentage", }, argTypes: { progress: { description: "Known completion percentage, 0-100", control: { type: "range", min: 0, max: 100 }, }, hidden: { description: "Hide the bar, e.g. once the operation completes", control: "boolean", }, accent: { description: "Accent used for the bar's fill color", control: "select", options: ["brand", "danger", "info", "success", "warning"], }, size: { description: "Thickness of the bar", control: "select", options: ["xs", "sm", "md", "lg"], }, }, } satisfies Meta; export const LinearProgressPreviewStory: ThisStory = { name: "LinearProgress Preview", parameters: { layout: "padded", chromatic: { disableSnapshot: true }, }, args: { progress: 60 }, render: (args) => ( ), }; export const LinearProgressVariantsStory: ThisStory = { name: "LinearProgress Variants", render: () => ( {(loading) => } ), };