import React from "react"; import { OverlaysProvider } from "@blueprintjs/core"; import { Meta, StoryFn } from "@storybook/react"; import { Badge, Card, Depiction, OverflowText, OverviewItem, OverviewItemActions, OverviewItemDepiction, OverviewItemDescription, OverviewItemLine, Tag, TagList, } from "./../../../components"; import { FullExample as OtherDepictionExample } from "./../../Depiction/stories/Depiction.stories"; import { Default as ActionsExample } from "./OverviewItemActions.stories"; import { AutoTransform as DepictionExample } from "./OverviewItemDepiction.stories"; import { Default as DescriptionExample } from "./OverviewItemDescription.stories"; import { Default as LineExample } from "./OverviewItemLine.stories"; export default { title: "Components/OverviewItem", component: OverviewItem, subcomponents: { OverviewItemDepiction, OverviewItemDescription, OverviewItemActions, Card, }, argTypes: { children: { control: false, description: "Elements used as depiction, text and interactive elements of an overview-item.", }, }, } as Meta; const Template: StoryFn = (args) => ( ); export const ItemExample = Template.bind({}); ItemExample.args = { children: [ , , , , ], densityHigh: false, hasSpacing: false, hasCardWrapper: false, }; export const ItemWithDepictionElement = Template.bind({}); ItemWithDepictionElement.args = { children: [ B } ratio="1:1" resizing="stretch" captionPosition="tooltip" border rounded />, , , , ], densityHigh: false, hasSpacing: true, hasCardWrapper: true, }; export const ItemWithTags = Template.bind({}); ItemWithTags.args = { children: [ , Test Tag List , , ], densityHigh: false, hasSpacing: true, hasCardWrapper: true, };