import type { Meta, StoryObj } from "@storybook/react-vite"; import * as React from "react"; import { Badge, Outline } from "../../components"; import { CustomPreview as CustomPreviewComponentStory, Draggable as DraggableComponentStory, KanbanComponent as KanbanComponentStory, WithToolbar as WithToolbarComponentStory, } from "../../components/data/kanban/kanban.stories"; import { KanbanTemplate } from "./kanban"; const meta: Meta = { title: "Templates/Kanban", component: KanbanTemplate, // @ts-expect-error - Fix missing onClick on type argTypes: { onClick: { action: "onClick" } }, }; export default meta; type Story = StoryObj; export const kanbanTemplate: Story = { args: { kanbanProps: KanbanComponentStory.args, breadcrumbItems: [ { label: "Home", href: "/" }, { label: "Templates", href: "#" }, { label: "Kanban template", href: "#" }, ], primaryNavigationItems: [ { children: , title: "Home" }, "spacer", { children: , title: "Instellingen" }, { children: , title: "Uitloggen" }, ], }, }; export const WithSidebar: Story = { ...kanbanTemplate, args: { ...kanbanTemplate.args, sidebarItems: [ { active: true, align: "space-between", children: ( <> Lorem ipsumVerwerkt ), justify: true, variant: "transparent", }, { align: "space-between", children: ( <> DolorIn behandeling ), justify: true, variant: "transparent", }, { align: "space-between", children: ( <> SitActie vereist ), justify: true, variant: "transparent", }, { align: "space-between", children: ( <> AmetIn behandeling ), justify: true, variant: "transparent", }, ], }, }; export const WithSecondaryNavigation: Story = { ...WithSidebar, args: { ...WithSidebar.args, secondaryNavigationItems: [ In bewerking, "spacer", { children: ( <> Tussentijds Opslaan ), pad: "h", variant: "transparent", wrap: false, }, { children: ( <> Opslaan en afsluiten ), pad: "h", variant: "primary", wrap: false, }, ], }, }; export const CustomPreview: Story = { ...kanbanTemplate, args: { ...kanbanTemplate.args, kanbanProps: CustomPreviewComponentStory.args, }, }; export const Draggable: Story = { ...kanbanTemplate, args: { ...kanbanTemplate.args, kanbanProps: DraggableComponentStory.args, }, }; export const WithToolbar: Story = { ...kanbanTemplate, args: { ...kanbanTemplate.args, kanbanProps: WithToolbarComponentStory.args, }, };