import type { Meta, StoryObj } from "@storybook/react-vite"; import * as React from "react"; import { Badge, DataGridProps, Outline } from "../../components"; import { FilterablePaginatedSelectableSortable } from "../../components/data/datagrid/datagrid.stories"; import { ListTemplate } from "./list"; const meta: Meta = { title: "Templates/List", component: ListTemplate, }; export default meta; type Story = StoryObj; export const listTemplate: Story = { args: { dataGridProps: FilterablePaginatedSelectableSortable.args as DataGridProps, breadcrumbItems: [ { label: "Home", href: "/" }, { label: "Templates", href: "#" }, { label: "List template", href: "#" }, ], primaryNavigationItems: [ { children: , title: "Home" }, "spacer", { children: , title: "Instellingen" }, { children: , title: "Uitloggen" }, ], }, }; export const WithSidebar: Story = { ...listTemplate, args: { ...listTemplate.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, }, ], }, };