The Open Standard for Generative UI
Storybook fix 2 (#17)
Ankit Dasc53d061f209c
diff --git a/frontend-sdk/packages/react-ui/.storybook/main.ts b/frontend-sdk/packages/react-ui/.storybook/main.tsindex 95d62e35f..10a7fcd4e 100644--- a/frontend-sdk/packages/react-ui/.storybook/main.ts+++ b/frontend-sdk/packages/react-ui/.storybook/main.ts@@ -4,7 +4,7 @@ import { mergeConfig } from "vite";const config: StorybookConfig = {stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],- addons: ["@storybook/addon-essentials"],+ addons: ["@storybook/addon-essentials", "@storybook/addon-themes"],framework: {name: "@storybook/react-vite",options: {},diff --git a/frontend-sdk/packages/react-ui/.storybook/preview.tsx b/frontend-sdk/packages/react-ui/.storybook/preview.tsxindex 3b7aa6366..81c100589 100644--- a/frontend-sdk/packages/react-ui/.storybook/preview.tsx+++ b/frontend-sdk/packages/react-ui/.storybook/preview.tsx@@ -1,7 +1,7 @@import type { Preview } from "@storybook/react";+import { themes } from "@storybook/theming";import { ThemeProvider } from "../src/components/ThemeProvider";import React from "react";-import '../src/variables.css'const preview: Preview = {parameters: {@@ -11,6 +11,9 @@ const preview: Preview = {date: /Date$/i,},},+ docs: {+ theme: themes.dark,+ },},decorators: [(Story) => (diff --git a/frontend-sdk/packages/react-ui/.storybook/theme.ts b/frontend-sdk/packages/react-ui/.storybook/theme.tsindex 6d444e572..ec3c82827 100644--- a/frontend-sdk/packages/react-ui/.storybook/theme.ts+++ b/frontend-sdk/packages/react-ui/.storybook/theme.ts@@ -1,7 +1,7 @@import { create } from "@storybook/theming";export default create({- base: "light",+ base: "dark",brandTitle: "Crayon Components",brandUrl: "https://crayonai.org/docs/ui",brandImage: "https://crayonai.org/img/logo.png",diff --git a/frontend-sdk/packages/react-ui/package.json b/frontend-sdk/packages/react-ui/package.jsonindex c0f7daa6e..14a5fc8ea 100644--- a/frontend-sdk/packages/react-ui/package.json+++ b/frontend-sdk/packages/react-ui/package.json@@ -65,6 +65,8 @@"@radix-ui/react-switch": "^1.1.2","@radix-ui/react-tabs": "^1.1.2","@storybook/addon-styling-webpack": "^1.0.1",+ "@storybook/manager-api": "^8.5.3",+ "@storybook/theming": "^8.5.3","clsx": "^2.1.1","date-fns": "^4.1.0","lodash-es": "^4.17.21",@@ -75,13 +77,14 @@},"devDependencies": {"@chromatic-com/storybook": "^3.2.4",- "@storybook/addon-essentials": "^8.5.2",- "@storybook/addon-interactions": "^8.5.2",- "@storybook/addon-onboarding": "^8.5.2",- "@storybook/blocks": "^8.5.2",- "@storybook/react": "^8.5.2",- "@storybook/react-vite": "^8.5.2",- "@storybook/test": "^8.5.2",+ "@storybook/addon-essentials": "^8.5.3",+ "@storybook/addon-interactions": "^8.5.3",+ "@storybook/addon-onboarding": "^8.5.3",+ "@storybook/addon-themes": "^8.5.3",+ "@storybook/blocks": "^8.5.3",+ "@storybook/react": "^8.5.3",+ "@storybook/react-vite": "^8.5.3",+ "@storybook/test": "^8.5.3","@types/lodash-es": "^4.17.12","@types/node": "^22.12.0","@types/react": ">=18.0.0",@@ -97,7 +100,7 @@"postcss-js": "^4.0.1","prettier-plugin-organize-imports": "^3.2.4","prop-types": "^15.8.1",- "storybook": "^8.5.2",+ "storybook": "^8.5.3","tsx": "^4.19.2","vite": "^5.0.0"},diff --git a/frontend-sdk/packages/react-ui/src/components/Accordion/stories/accordion.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Accordion/stories/accordion.stories.tsxindex d3c72494d..57a4a31f6 100644--- a/frontend-sdk/packages/react-ui/src/components/Accordion/stories/accordion.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Accordion/stories/accordion.stories.tsx@@ -1,7 +1,7 @@import type { Meta, StoryObj } from "@storybook/react";-import { Bell, Download } from "lucide-react";-import { Header } from "../../Header";-import "../../Header/header.scss";+import { Bird, Dog, Fish } from "lucide-react";+import { CardHeader } from "../../CardHeader";+import "../../CardHeader/cardHeader.scss";import { IconButton } from "../../IconButton";import "../../IconButton/iconButton.scss";import { Image } from "../../Image";@@ -19,10 +19,16 @@ interface AccordionStoryProps {const meta: Meta<AccordionStoryProps> = {title: "Components/Accordion",- component: Accordion as any, // Type casting needed since we're using a custom props interface- tags: ["autodocs"],+ component: Accordion as any,+ tags: ["autodocs", "!dev"],parameters: {layout: "centered",+ docs: {+ description: {+ component:+ "```tsx\nimport { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@crayon-ui/react-ui';\n```",+ },+ },},decorators: [(Story) => (@@ -37,27 +43,42 @@ const meta: Meta<AccordionStoryProps> = {options: ["single", "multiple"],description: "The type of accordion behavior - single item open or multiple items",defaultValue: "single",+ table: {+ category: "Behavior",+ },},collapsible: {control: "boolean",description: "Whether the accordion items can be collapsed (only available for single type)",defaultValue: true,if: { arg: "type", eq: "single" },+ table: {+ category: "Behavior",+ },},defaultValue: {description: 'The default opened item value (only for type="single")',control: false,+ table: {+ category: "Behavior",+ },},variant: {control: "radio",options: ["card", "sunk"],description: "The visual style variant of the accordion",defaultValue: "card",+ table: {+ category: "Appearance",+ },},showIcons: {control: "boolean",description: "Whether to show icons in the accordion triggers",defaultValue: false,+ table: {+ category: "Appearance",+ },},},};@@ -65,259 +86,176 @@ const meta: Meta<AccordionStoryProps> = {export default meta;type Story = StoryObj<AccordionStoryProps>;-export const Single: Story = {- render: (args) => {- const items = [- {- value: "item-1",- title: "Accordion 1",- imageId: "600",- },- {- value: "item-2",- title: "Accordion 2",- imageId: "700",- },- {- value: "item-3",- title: "Accordion 3",- imageId: "900",- },- ];+const cityItems = [+ {+ value: "city-1",+ title: "New York",+ subtitle: "The Big Apple",+ description: "Iconic skyline and urban culture",+ image:+ "https://images.pexels.com/photos/466685/pexels-photo-466685.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2",+ },+ {+ value: "city-2",+ title: "Tokyo",+ subtitle: "Modern Metropolis",+ description: "Blend of tradition and technology",+ image:+ "https://images.pexels.com/photos/2506923/pexels-photo-2506923.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2",+ },+ {+ value: "city-3",+ title: "Paris",+ subtitle: "City of Light",+ description: "Romance and architecture",+ image:+ "https://images.unsplash.com/photo-1499856871958-5b9627545d1a?q=80&w=3820&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",+ },+];- const AccordionComponent =- args.type === "single" ? (- <Accordion type="single" collapsible={args.collapsible} defaultValue={args.defaultValue}>- {items.map((item) => (- <AccordionItem key={item.value} value={item.value} variant={args.variant}>- <AccordionTrigger- text={item.title}- icon={args.showIcons ? <Download /> : undefined}- />- <AccordionContent>- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}- />- <Image src={`https://picsum.photos/400/${item.imageId}`} alt="Image" scale="fill" />- </AccordionContent>- </AccordionItem>- ))}- </Accordion>- ) : (- <Accordion type="multiple">- {items.map((item) => (- <AccordionItem key={item.value} value={item.value} variant={args.variant}>- <AccordionTrigger- text={item.title}- icon={args.showIcons ? <Download /> : undefined}- />- <AccordionContent>- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}- />- <Image src={`https://picsum.photos/400/${item.imageId}`} alt="Image" scale="fill" />- </AccordionContent>- </AccordionItem>- ))}- </Accordion>- );+const landscapeItems = [+ {+ value: "landscape-1",+ title: "Mountains",+ subtitle: "Alpine Views",+ description: "Majestic mountain ranges",+ image:+ "https://images.pexels.com/photos/1761279/pexels-photo-1761279.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2",+ },+ {+ value: "landscape-2",+ title: "Beaches",+ subtitle: "Coastal Beauty",+ description: "Pristine shorelines",+ image:+ "https://images.pexels.com/photos/1032650/pexels-photo-1032650.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2",+ },+ {+ value: "landscape-3",+ title: "Forests",+ subtitle: "Woodland Wonder",+ description: "Dense forest landscapes",+ image:+ "https://images.pexels.com/photos/240040/pexels-photo-240040.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2",+ },+];- return AccordionComponent;+const animalItems = [+ {+ value: "animal-1",+ title: "Big Cats",+ icon: <Dog />,+ subtitle: "Majestic Felines",+ description: "Lions, tigers, and leopards",+ image:+ "https://images.pexels.com/photos/145939/pexels-photo-145939.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2",},+ {+ value: "animal-2",+ title: "Marine Life",+ icon: <Fish />,+ subtitle: "Ocean Dwellers",+ description: "Underwater creatures",+ image:+ "https://plus.unsplash.com/premium_photo-1661835524331-cbba987ba74c?q=80&w=3878&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",+ },+ {+ value: "animal-3",+ title: "Birds",+ icon: <Bird />,+ subtitle: "Aerial Beauty",+ description: "Colorful avian species",+ image:+ "https://images.pexels.com/photos/326900/pexels-photo-326900.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2",+ },+];++export const SingleAccordion: Story = {args: {type: "single",collapsible: true,variant: "card",- showIcons: false,- },-};--export const Multiple: Story = {- args: {- type: "multiple",+ showIcons: true,},parameters: {docs: {description: {- story:- "An example of an Accordion that allows multiple items to be open simultaneously. This variant gives users the flexibility to view multiple content sections at once.",+ story: "An accordion showcasing different cities and their urban landscapes.",},},},render: (args) => (- <Accordion type={args.type}>- <AccordionItem value="item-1">- <AccordionTrigger text="Accordion 1" />- <AccordionContent>- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}- />- <Image src="https://picsum.photos/200/300" alt="Image" scale="fill" />- </AccordionContent>- </AccordionItem>- <AccordionItem value="item-2">- <AccordionTrigger text="Accordion 2" />- <AccordionContent>- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}- />- <Image src="https://picsum.photos/300/400" alt="Image" scale="fill" />- </AccordionContent>- </AccordionItem>- <AccordionItem value="item-3">- <AccordionTrigger text="Accordion 3" />- <AccordionContent>- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}- />- <Image src="https://picsum.photos/400/500" alt="Image" scale="fill" />- </AccordionContent>- </AccordionItem>+ <Accordion type={args.type} collapsible={args.collapsible}>+ {cityItems.map((item) => (+ <AccordionItem key={item.value} value={item.value} variant={args.variant}>+ <AccordionTrigger text={item.title} />+ <AccordionContent>+ <CardHeader title={item.subtitle} subtitle={item.description} />+ <Image src={item.image} alt={item.title} scale="fill" />+ </AccordionContent>+ </AccordionItem>+ ))}</Accordion>),};-export const withIcon: Story = {+export const MultipleAccordion: Story = {args: {- type: "single",- collapsible: true,+ type: "multiple",+ variant: "card",showIcons: true,},+ parameters: {+ docs: {+ description: {+ story: "An example of an Accordion that allows multiple items to be open simultaneously.",+ },+ },+ },render: (args) => (- <Accordion type={args.type} collapsible={args.collapsible}>- <AccordionItem value="item-1">- <AccordionTrigger text="Accordion 1" icon={<Download />} />- <AccordionContent>- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}- />- <Image src="https://picsum.photos/200/300" alt="Image" scale="fill" />- </AccordionContent>- </AccordionItem>- <AccordionItem value="item-2">- <AccordionTrigger text="Accordion 2" icon={<Download />} />- <AccordionContent>- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}- />- <Image src="https://picsum.photos/300/400" alt="Image" scale="fill" />- </AccordionContent>- </AccordionItem>- <AccordionItem value="item-3">- <AccordionTrigger text="Accordion 3" icon={<Download />} />- <AccordionContent>- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}- />- <Image src="https://picsum.photos/400/500" alt="Image" scale="fill" />- </AccordionContent>- </AccordionItem>+ <Accordion type="multiple">+ {landscapeItems.map((item) => (+ <AccordionItem key={item.value} value={item.value} variant={args.variant}>+ <AccordionTrigger text={item.title} />+ <AccordionContent>+ <CardHeader title={item.subtitle} subtitle={item.description} />+ <Image src={item.image} alt={item.title} scale="fill" />+ </AccordionContent>+ </AccordionItem>+ ))}</Accordion>),};-export const CardVariant: Story = {+export const WithIconsAccordion: Story = {args: {type: "single",collapsible: true,variant: "card",+ showIcons: true,},- render: (args) => (- <Accordion type={args.type} collapsible={args.collapsible}>- <AccordionItem value="item-1" variant={args.variant}>- <AccordionTrigger text="Accordion 1" />- <AccordionContent>- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}- />- <Image src="https://picsum.photos/200/300" alt="Image" scale="fill" />- </AccordionContent>- </AccordionItem>- <AccordionItem value="item-2" variant={args.variant}>- <AccordionTrigger text="Accordion 2" />- <AccordionContent>- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}- />- <Image src="https://picsum.photos/300/400" alt="Image" scale="fill" />- </AccordionContent>- </AccordionItem>- <AccordionItem value="item-3" variant={args.variant}>- <AccordionTrigger text="Accordion 3" />- <AccordionContent>- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}- />- <Image src="https://picsum.photos/400/500" alt="Image" scale="fill" />- </AccordionContent>- </AccordionItem>- </Accordion>- ),-};--export const SunkVariant: Story = {- args: {- type: "single",- collapsible: true,- variant: "sunk",+ parameters: {+ docs: {+ description: {+ story: "An accordion displaying different categories of animals and wildlife.",+ },+ },},render: (args) => (<Accordion type={args.type} collapsible={args.collapsible}>- <AccordionItem value="item-1" variant={args.variant}>- <AccordionTrigger text="Accordion 1" />- <AccordionContent>- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}- />- <Image src="https://picsum.photos/200/300" alt="Image" scale="fill" />- </AccordionContent>- </AccordionItem>- <AccordionItem value="item-2" variant={args.variant}>- <AccordionTrigger text="Accordion 2" />- <AccordionContent>- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}- />- <Image src="https://picsum.photos/300/400" alt="Image" scale="fill" />- </AccordionContent>- </AccordionItem>- <AccordionItem value="item-3" variant={args.variant}>- <AccordionTrigger text="Accordion 3" />- <AccordionContent>- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}- />- <Image src="https://picsum.photos/400/500" alt="Image" scale="fill" />- </AccordionContent>- </AccordionItem>+ {animalItems.map((item) => (+ <AccordionItem key={item.value} value={item.value} variant={args.variant}>+ <AccordionTrigger text={item.title} icon={item.icon} />+ <AccordionContent>+ <CardHeader+ title={item.subtitle}+ subtitle={item.description}+ actions={[<IconButton variant="tertiary" size="small" icon={item.icon} />]}+ />+ <Image src={item.image} alt={item.title} scale="fill" />+ </AccordionContent>+ </AccordionItem>+ ))}</Accordion>),};diff --git a/frontend-sdk/packages/react-ui/src/components/Button/stories/Button.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Button/stories/Button.stories.tsxindex e2e09b265..6a12fbeb3 100644--- a/frontend-sdk/packages/react-ui/src/components/Button/stories/Button.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Button/stories/Button.stories.tsx@@ -77,29 +77,49 @@ const meta: Meta<typeof Button> = {component: Button,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { Button } from '@crayon-ui/react-ui';\n```",+ },+ },},argTypes: {variant: {control: "radio",options: ["primary", "secondary", "tertiary"],+ table: {+ category: "Appearance",+ },},size: {control: "radio",options: ["small", "medium", "large"],+ table: {+ category: "Appearance",+ },},disabled: {control: "boolean",+ table: {+ category: "State",+ },},iconLeft: {control: false,description: "Any react icon component",+ table: {+ category: "Icons",+ },},iconRight: {control: false,description: "Any react icon component",+ table: {+ category: "Icons",+ },},},- tags: ["autodocs"],+ tags: ["autodocs", "!dev"],};export default meta;diff --git a/frontend-sdk/packages/react-ui/src/components/Card/stories/card.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Card/stories/card.stories.tsxindex fc135cbe1..17f57e021 100644--- a/frontend-sdk/packages/react-ui/src/components/Card/stories/card.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Card/stories/card.stories.tsx@@ -1,10 +1,12 @@import type { Meta, StoryObj } from "@storybook/react";-import { FormControl, Label } from "../../FormControl";+import { CardHeader } from "../../CardHeader";+import "../../CardHeader/cardHeader.scss";+import { FormControl } from "../../FormControl";import "../../FormControl/formControl.scss";-import { Header } from "../../Header";-import "../../Header/header.scss";import { Input } from "../../Input";import "../../Input/input.scss";+import { Label } from "../../Label";+import "../../Label/label.scss";import { Card } from "../Card";import "../card.scss";@@ -13,18 +15,34 @@ const meta: Meta<typeof Card> = {component: Card,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { Card } from '@crayon-ui/react-ui';\n```",+ },+ },},argTypes: {width: {control: "radio",options: ["standard", "full"],+ description: "Controls the width of the card component",+ table: {+ category: "Appearance",+ defaultValue: { summary: "standard" },+ },},variant: {control: "radio",options: ["card", "clear", "sunk"],+ description: "Determines the visual style of the card",++ table: {+ defaultValue: { summary: "card" },+ category: "Appearance",+ },},},- tags: ["autodocs"],+ tags: ["autodocs", "!dev"],};export default meta;@@ -39,10 +57,10 @@ export const CardStory: Story = {render: (args) => (<div style={{ width: "500px" }}><Card variant={args.variant} width={args.width}>- <Header title="Card Title" subtitle="Card Description" actions={[]} />+ <CardHeader title="Card Title" subtitle="Card Description" actions={[]} /><FormControl>- <Label>Username</Label>- <Input placeholder="Enter username" />+ <Label htmlFor="username">Username</Label>+ <Input id="username" placeholder="Enter username" /></FormControl></Card></div>diff --git a/frontend-sdk/packages/react-ui/src/components/Footer/Footer.tsx b/frontend-sdk/packages/react-ui/src/components/CardFooter/CardFooter.tsxsimilarity index 80%rename from frontend-sdk/packages/react-ui/src/components/Footer/Footer.tsxrename to frontend-sdk/packages/react-ui/src/components/CardFooter/CardFooter.tsxindex 7e4f14bac..3b02802b7 100644--- a/frontend-sdk/packages/react-ui/src/components/Footer/Footer.tsx+++ b/frontend-sdk/packages/react-ui/src/components/CardFooter/CardFooter.tsx@@ -5,7 +5,7 @@ import { IconButtonProps } from "../IconButton";type FooterVariant = "vertical" | "horizontal";-export interface FooterProps extends HTMLAttributes<HTMLDivElement> {+export interface CardFooterProps extends HTMLAttributes<HTMLDivElement> {variant?: FooterVariant;children:| ReactElement<ButtonProps | IconButtonProps>@@ -19,7 +19,7 @@ const variantMap: Record<FooterVariant, string> = {horizontal: "crayon-footer-horizontal",};-export const Footer = forwardRef<HTMLDivElement, FooterProps>((props, ref) => {+export const CardFooter = forwardRef<HTMLDivElement, CardFooterProps>((props, ref) => {const { className, style, variant = "horizontal", children, ...rest } = props;return (<div@@ -33,4 +33,4 @@ export const Footer = forwardRef<HTMLDivElement, FooterProps>((props, ref) => {);});-Footer.displayName = "Footer";+CardFooter.displayName = "CardFooter";diff --git a/frontend-sdk/packages/react-ui/src/components/Footer/footer.scss b/frontend-sdk/packages/react-ui/src/components/CardFooter/cardFooter.scsssimilarity index 100%rename from frontend-sdk/packages/react-ui/src/components/Footer/footer.scssrename to frontend-sdk/packages/react-ui/src/components/CardFooter/cardFooter.scssdiff --git a/frontend-sdk/packages/react-ui/src/components/CardFooter/dependencies.ts b/frontend-sdk/packages/react-ui/src/components/CardFooter/dependencies.tsnew file mode 100644index 000000000..2b8444632--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/CardFooter/dependencies.ts@@ -0,0 +1,2 @@+const dependencies = ["CardFooter"];+export default dependencies;diff --git a/frontend-sdk/packages/react-ui/src/components/CardFooter/index.ts b/frontend-sdk/packages/react-ui/src/components/CardFooter/index.tsnew file mode 100644index 000000000..06b640859--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/CardFooter/index.ts@@ -0,0 +1 @@+export * from "./CardFooter";diff --git a/frontend-sdk/packages/react-ui/src/components/Footer/stories/footer.stories.tsx b/frontend-sdk/packages/react-ui/src/components/CardFooter/stories/cardFooter.stories.tsxsimilarity index 77%rename from frontend-sdk/packages/react-ui/src/components/Footer/stories/footer.stories.tsxrename to frontend-sdk/packages/react-ui/src/components/CardFooter/stories/cardFooter.stories.tsxindex ae335675d..2b2435f92 100644--- a/frontend-sdk/packages/react-ui/src/components/Footer/stories/footer.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/CardFooter/stories/cardFooter.stories.tsx@@ -4,18 +4,23 @@ import { Button } from "../../Button";import "../../Button/button.scss";import { IconButton } from "../../IconButton";import "../../IconButton/iconButton.scss";-import { Footer } from "../Footer";-import "../footer.scss";+import { CardFooter } from "../CardFooter";+import "../cardFooter.scss";-const meta: Meta<typeof Footer> = {- title: "Components/Footer",- component: Footer,+const meta: Meta<typeof CardFooter> = {+ title: "Components/CardFooter",+ component: CardFooter,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { CardFooter } from '@crayon-ui/react-ui';\n```",+ },+ },},decorators: [(Story) => (- <div style={{ width: "500px" }}>+ <div style={{ width: "350px" }}><Story /></div>),@@ -39,7 +44,6 @@ const meta: Meta<typeof Footer> = {summary:"ReactNode[]<ButtonProps | IconButtonProps> | ReactNode<ButtonProps | IconButtonProps>",},- defaultValue: { summary: "undefined" },},},className: {@@ -48,7 +52,6 @@ const meta: Meta<typeof Footer> = {table: {category: "Styling",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},style: {@@ -57,15 +60,14 @@ const meta: Meta<typeof Footer> = {table: {category: "Styling",type: { summary: "CSSProperties" },- defaultValue: { summary: "undefined" },},},},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],};export default meta;-type Story = StoryObj<typeof Footer>;+type Story = StoryObj<typeof CardFooter>;// Basic footer storiesexport const FooterStory: Story = {@@ -73,10 +75,10 @@ export const FooterStory: Story = {variant: "horizontal",},render: (args) => (- <Footer variant={args.variant}>+ <CardFooter variant={args.variant}><Button>Cancel</Button><Button>Save</Button><IconButton icon={<ArrowLeft size={16} />} />- </Footer>+ </CardFooter>),};diff --git a/frontend-sdk/packages/react-ui/src/components/Header/Header.tsx b/frontend-sdk/packages/react-ui/src/components/CardHeader/CardHeader.tsxsimilarity index 87%rename from frontend-sdk/packages/react-ui/src/components/Header/Header.tsxrename to frontend-sdk/packages/react-ui/src/components/CardHeader/CardHeader.tsxindex 287cba9bd..40f43f9f2 100644--- a/frontend-sdk/packages/react-ui/src/components/Header/Header.tsx+++ b/frontend-sdk/packages/react-ui/src/components/CardHeader/CardHeader.tsx@@ -3,7 +3,7 @@ import { cloneElement, CSSProperties, forwardRef, ReactElement, ReactNode } fromimport { ButtonProps } from "../Button";import { IconButtonProps } from "../IconButton";-export interface HeaderProps {+export interface CardHeaderProps {icon?: ReactNode;title?: ReactNode;subtitle?: ReactNode;@@ -14,7 +14,7 @@ export interface HeaderProps {styles?: CSSProperties;}-export const Header = forwardRef<HTMLDivElement, HeaderProps>((props, ref) => {+export const CardHeader = forwardRef<HTMLDivElement, CardHeaderProps>((props, ref) => {const { icon, title, subtitle, actions, className, styles, ...rest } = props;return (<div ref={ref} className={clsx("crayon-header", className)} style={styles} {...rest}>@@ -34,4 +34,4 @@ export const Header = forwardRef<HTMLDivElement, HeaderProps>((props, ref) => {);});-Header.displayName = "Header";+CardHeader.displayName = "CardHeader";diff --git a/frontend-sdk/packages/react-ui/src/components/Header/header.scss b/frontend-sdk/packages/react-ui/src/components/CardHeader/cardHeader.scsssimilarity index 100%rename from frontend-sdk/packages/react-ui/src/components/Header/header.scssrename to frontend-sdk/packages/react-ui/src/components/CardHeader/cardHeader.scssdiff --git a/frontend-sdk/packages/react-ui/src/components/CardHeader/dependencies.ts b/frontend-sdk/packages/react-ui/src/components/CardHeader/dependencies.tsnew file mode 100644index 000000000..8421d3847--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/CardHeader/dependencies.ts@@ -0,0 +1,2 @@+const dependencies = ["CardHeader"];+export default dependencies;diff --git a/frontend-sdk/packages/react-ui/src/components/CardHeader/index.ts b/frontend-sdk/packages/react-ui/src/components/CardHeader/index.tsnew file mode 100644index 000000000..0f559d478--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/CardHeader/index.ts@@ -0,0 +1 @@+export * from "./CardHeader";diff --git a/frontend-sdk/packages/react-ui/src/components/Header/stories/header.stories.tsx b/frontend-sdk/packages/react-ui/src/components/CardHeader/stories/cardHeader.stories.tsxsimilarity index 62%rename from frontend-sdk/packages/react-ui/src/components/Header/stories/header.stories.tsxrename to frontend-sdk/packages/react-ui/src/components/CardHeader/stories/cardHeader.stories.tsxindex cb49c7017..1cebc9e07 100644--- a/frontend-sdk/packages/react-ui/src/components/Header/stories/header.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/CardHeader/stories/cardHeader.stories.tsx@@ -2,14 +2,19 @@ import type { Meta, StoryObj } from "@storybook/react";import { ArrowRight, Download } from "lucide-react";import { IconButton } from "../../IconButton";import "../../IconButton/iconButton.scss";-import { Header } from "../Header";-import "../header.scss";+import { CardHeader } from "../CardHeader";+import "../cardHeader.scss";-const meta: Meta<typeof Header> = {- title: "Components/Header",- component: Header,+const meta: Meta<typeof CardHeader> = {+ title: "Components/CardHeader",+ component: CardHeader,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { CardHeader } from '@crayon-ui/react-ui';\n```",+ },+ },},decorators: [(Story) => (@@ -25,7 +30,6 @@ const meta: Meta<typeof Header> = {table: {category: "Content",type: { summary: "ReactNode" },- defaultValue: { summary: "undefined" },},},title: {@@ -34,7 +38,6 @@ const meta: Meta<typeof Header> = {table: {category: "Content",type: { summary: "ReactNode" },- defaultValue: { summary: "undefined" },},},subtitle: {@@ -43,7 +46,6 @@ const meta: Meta<typeof Header> = {table: {category: "Content",type: { summary: "ReactNode" },- defaultValue: { summary: "undefined" },},},actions: {@@ -52,7 +54,6 @@ const meta: Meta<typeof Header> = {table: {category: "Content",type: { summary: "ReactElement<ButtonProps | IconButtonProps>[]" },- defaultValue: { summary: "undefined" },},},className: {@@ -61,7 +62,6 @@ const meta: Meta<typeof Header> = {table: {category: "Styling",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},styles: {@@ -70,27 +70,43 @@ const meta: Meta<typeof Header> = {table: {category: "Styling",type: { summary: "CSSProperties" },- defaultValue: { summary: "undefined" },},},},- tags: ["autodocs"],+ tags: ["autodocs", "!dev"],};export default meta;-type Story = StoryObj<typeof Header>;+type Story = StoryObj<typeof CardHeader>;// Basic button storiesexport const HeaderStory: Story = {+ args: {+ icon: <ArrowRight />,+ title: "Thesys Crayon",+ subtitle: "Crayon UI is a set of React components.",+ actions: [<IconButton variant="tertiary" size="small" icon={<Download />} />],+ },+ render: (args) => <CardHeader {...args} />,+};++export const HeaderStoryWithMultipleActions: Story = {+ parameters: {+ docs: {+ description: {+ story:+ "Passing multiple actions to the header. The actions are displayed in the right corner of the header.",+ },+ },+ },args: {icon: <ArrowRight />,title: "Thesys Crayon",subtitle: "Crayon UI is a set of React components.",actions: [- <IconButton variant="tertiary" size="extra-small" icon={<Download />} />,- <IconButton variant="tertiary" size="extra-small" icon={<Download />} />,- <IconButton variant="tertiary" size="extra-small" icon={<Download />} />,+ <IconButton variant="tertiary" size="small" icon={<Download />} />,+ <IconButton variant="tertiary" size="small" icon={<Download />} />,],},- render: (args) => <Header {...args} />,+ render: (args) => <CardHeader {...args} />,};diff --git a/frontend-sdk/packages/react-ui/src/components/Carousel/Carousel.tsx b/frontend-sdk/packages/react-ui/src/components/Carousel/Carousel.tsxindex 1d5103c25..c8f43726d 100644--- a/frontend-sdk/packages/react-ui/src/components/Carousel/Carousel.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Carousel/Carousel.tsx@@ -75,7 +75,7 @@ export const Carousel = forwardRef<HTMLDivElement, CarouselProps>();export const CarouselContent = forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(- ({ className, children, ...props }, ref) => {+ ({ className, children, ...props }, _ref) => {const { scrollDivRef, noSnap } = useCarousel();const content = noSnap ? (@@ -134,7 +134,7 @@ export const CarouselPrevious = forwardRef<if (!show || !showButtons) return null;return (- <div className="crayon-carousel-button crayon-carousel-button-left">+ <div className={clsx("crayon-carousel-button crayon-carousel-button-left", className)}><IconButtonref={ref}shape="circle"@@ -179,7 +179,7 @@ export const CarouselNext = forwardRef<HTMLButtonElement, React.ComponentProps<tif (!show || !showButtons) return null;return (- <div className="crayon-carousel-button crayon-carousel-button-right">+ <div className={clsx("crayon-carousel-button crayon-carousel-button-right", className)}><IconButtonref={ref}shape="circle"diff --git a/frontend-sdk/packages/react-ui/src/components/Carousel/carousel.scss b/frontend-sdk/packages/react-ui/src/components/Carousel/carousel.scssindex cacdc53e5..de9726774 100644--- a/frontend-sdk/packages/react-ui/src/components/Carousel/carousel.scss+++ b/frontend-sdk/packages/react-ui/src/components/Carousel/carousel.scss@@ -9,7 +9,6 @@position: relative;display: flex;flex-direction: row;- width: 100%;gap: map.get(cssUtils.$spacing, "m");overflow-x: auto;scroll-snap-type: x mandatory;diff --git a/frontend-sdk/packages/react-ui/src/components/Carousel/stories/carousel.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Carousel/stories/carousel.stories.tsxindex 00050b5ef..c0bb39a21 100644--- a/frontend-sdk/packages/react-ui/src/components/Carousel/stories/carousel.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Carousel/stories/carousel.stories.tsx@@ -1,7 +1,20 @@import type { Meta, StoryObj } from "@storybook/react";-import { Bell, ChevronLeft, ChevronRight } from "lucide-react";-import { Header } from "../../Header";-import "../../Header/header.scss";+import {+ Building2,+ Camera,+ ChevronLeft,+ ChevronRight,+ Cpu,+ Dog,+ Music,+ Palette,+ Plane,+ Shirt,+ Trophy,+ UtensilsCrossed,+} from "lucide-react";+import { CardHeader } from "../../CardHeader";+import "../../CardHeader/cardHeader.scss";import { IconButton } from "../../IconButton";import "../../IconButton/iconButton.scss";import { Image } from "../../Image";@@ -15,19 +28,18 @@ import {} from "../Carousel";import "../carousel.scss";-interface CarouselStoryProps {- itemsToScroll: number;- noSnap?: boolean;- showButtons: boolean;-}--const meta: Meta<CarouselStoryProps> = {+const meta: Meta<typeof Carousel> = {title: "Components/Carousel",- component: Carousel as any,+ component: Carousel,parameters: {layout: "centered",+ docs: {+ description: {+ component:+ "```tsx\nimport { Carousel,CarouselContent,CarouselItem,CarouselNext,CarouselPrevious } from '@crayon-ui/react-ui';\n```",+ },+ },},- tags: ["autodocs"],decorators: [(Story) => (<div style={{ width: "100%", maxWidth: "28rem" }}>@@ -39,148 +51,170 @@ const meta: Meta<CarouselStoryProps> = {itemsToScroll: {control: "number",description: "Number of items to scroll when clicking navigation buttons",- defaultValue: 1,+ table: {+ category: "Behavior",+ type: { summary: "number" },+ defaultValue: { summary: "1" },+ },},noSnap: {control: "boolean",description: "Whether to disable snap scrolling",- defaultValue: false,+ table: {+ category: "Behavior",+ type: { summary: "boolean" },+ defaultValue: { summary: "false" },+ },},showButtons: {control: "boolean",description: "Whether to show the navigation buttons",- defaultValue: true,- },- },-};--export default meta;-type Story = StoryObj<CarouselStoryProps>;--const CarouselDemo = ({ itemsToScroll, noSnap, showButtons }: CarouselStoryProps) => {- const items = [- {- title: "Nature",- subtitle: "Beautiful landscapes",- imageWidth: 400,- imageHeight: 300,- },- {- title: "Architecture",- subtitle: "Modern buildings",- imageWidth: 500,- imageHeight: 400,- },- {- title: "Technology",- subtitle: "Digital innovation",- imageWidth: 600,- imageHeight: 500,+ table: {+ category: "Appearance",+ type: { summary: "boolean" },+ defaultValue: { summary: "true" },+ },},- {- title: "Art",- subtitle: "Creative expressions",- imageWidth: 700,- imageHeight: 600,+ children: {+ control: false,+ description: "The carousel content and navigation buttons",+ table: {+ category: "Content",+ type: { summary: "ReactNode" },+ },},- {- title: "Travel",- subtitle: "World exploration",- imageWidth: 800,- imageHeight: 700,+ className: {+ control: false,+ description: "Additional CSS class name for custom styling",+ table: {+ category: "Styling",+ type: { summary: "string" },+ },},- ];-- const repeatedItems = Array.from({ length: 20 }, (_, index) => ({- ...items[index % items.length],- id: `item-${index + 1}`,- }));-- const carouselItems = repeatedItems.map((item) => (- <CarouselItem key={item.id}>- <Header- title={item.title}- subtitle={item.subtitle}- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}- />- <Image- src={`https://picsum.photos/${item.imageWidth}/${item.imageHeight}`}- alt={`${item.title} image`}- scale="fill"- />- </CarouselItem>- ));-- return (- <Carousel itemsToScroll={itemsToScroll} noSnap={noSnap} showButtons={showButtons}>- <CarouselContent>{carouselItems}</CarouselContent>- <CarouselPrevious icon={<ChevronLeft />} />- <CarouselNext icon={<ChevronRight />} />- </Carousel>- );-};--export const Default: Story = {- args: {- itemsToScroll: 1,- noSnap: false,- showButtons: true,- },- parameters: {- docs: {- description: {- story: "Default carousel configuration with single item scrolling and navigation buttons.",+ style: {+ control: false,+ description: "Inline CSS styles for custom styling",+ table: {+ category: "Styling",+ type: { summary: "CSSProperties" },},},},- render: (args) => <CarouselDemo {...args} />,+ tags: ["autodocs", "!dev"],};-export const MultipleItems: Story = {- args: {- itemsToScroll: 2,- noSnap: false,- showButtons: true,+export default meta;+type Story = StoryObj<typeof Carousel>;++const items = [+ {+ title: "Nature",+ subtitle: "Beautiful landscapes",+ icon: <Camera />,+ imageUrl:+ "https://plus.unsplash.com/premium_photo-1719943510748-4b4354fbcf56?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",},- parameters: {- docs: {- description: {- story:- "Carousel configured to scroll multiple items at once when clicking navigation buttons.",- },- },+ {+ title: "Architecture",+ subtitle: "Modern buildings",+ icon: <Building2 />,+ imageUrl:+ "https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",},- render: (args) => <CarouselDemo {...args} />,-};+ {+ title: "Technology",+ subtitle: "Digital innovation",+ icon: <Cpu />,+ imageUrl:+ "https://plus.unsplash.com/premium_photo-1663050756824-165ee7eafdac?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",+ },+ {+ title: "Art",+ subtitle: "Creative expressions",+ icon: <Palette />,+ imageUrl:+ "https://images.unsplash.com/photo-1550532422-378e93ec379c?q=80&w=3024&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",+ },+ {+ title: "Travel",+ subtitle: "World exploration",+ icon: <Plane />,+ imageUrl:+ "https://images.unsplash.com/photo-1504598318550-17eba1008a68?q=80&w=2848&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",+ },+ {+ title: "Food",+ subtitle: "Culinary delights",+ icon: <UtensilsCrossed />,+ imageUrl:+ "https://plus.unsplash.com/premium_photo-1673108852141-e8c3c22a4a22?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",+ },+ {+ title: "Sports",+ subtitle: "Athletic moments",+ icon: <Trophy />,+ imageUrl:+ "https://images.unsplash.com/photo-1471295253337-3ceaaedca402?q=80&w=2992&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",+ },+ {+ title: "Wildlife",+ subtitle: "Animal kingdom",+ icon: <Dog />,+ imageUrl:+ "https://images.unsplash.com/photo-1600521605615-a8d3a23d8262?q=80&w=3874&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",+ },+ {+ title: "Fashion",+ subtitle: "Style trends",+ icon: <Shirt />,+ imageUrl:+ "https://images.unsplash.com/photo-1521335629791-ce4aec67dd15?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",+ },+ {+ title: "Music",+ subtitle: "Sonic experiences",+ icon: <Music />,+ imageUrl:+ "https://images.unsplash.com/photo-1511379938547-c1f69419868d?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",+ },+];-export const WithNoSnap: Story = {+export const Default: Story = {args: {itemsToScroll: 1,- noSnap: true,+ noSnap: false,showButtons: true,},parameters: {docs: {description: {- story: "Carousel with no snap scrolling, useful for custom layout requirements.",+ story: "Default carousel configuration with single item scrolling and navigation buttons.",},},},- render: (args) => <CarouselDemo {...args} />,-};+ render: ({ itemsToScroll, noSnap, showButtons }) => {+ const repeatedItems = Array.from({ length: items.length }, (_, index) => ({+ ...items[index % items.length],+ id: `item-${index + 1}`,+ }));-export const WithNoButtons: Story = {- args: {- itemsToScroll: 1,- noSnap: true,- showButtons: false,- },- parameters: {- docs: {- description: {- story: "Carousel without navigation buttons, relying on native scroll behavior.",- },- },+ return (+ <Carousel itemsToScroll={itemsToScroll} noSnap={noSnap} showButtons={showButtons}>+ <CarouselContent>+ {repeatedItems.map((item) => (+ <CarouselItem key={item.id}>+ <CardHeader+ title={item.title}+ subtitle={item.subtitle}+ actions={[<IconButton variant="tertiary" size="small" icon={item.icon} />]}+ />+ <Image src={item.imageUrl ?? ""} alt={`${item.title} image`} scale="fill" />+ </CarouselItem>+ ))}+ </CarouselContent>+ <CarouselPrevious icon={<ChevronLeft />} />+ <CarouselNext icon={<ChevronRight />} />+ </Carousel>+ );},- render: (args) => <CarouselDemo {...args} />,};diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/AreaChart/AreaChart.tsx b/frontend-sdk/packages/react-ui/src/components/Charts/AreaChart/AreaChart.tsxindex acd29ad9f..656b99511 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/AreaChart/AreaChart.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Charts/AreaChart/AreaChart.tsx@@ -11,7 +11,7 @@ import {import { cartesianGrid } from "../cartesianGrid";import { getDistributedColors, getPalette } from "../utils/PalletUtils";-type AreaChartData = Array<Record<string, string | number>>;+export type AreaChartData = Array<Record<string, string | number>>;export interface AreaChartProps<T extends AreaChartData> {data: T;diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/AreaChart/stories/areaChart.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Charts/AreaChart/stories/areaChart.stories.tsxindex 970484326..99a873453 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/AreaChart/stories/areaChart.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Charts/AreaChart/stories/areaChart.stories.tsx@@ -24,8 +24,13 @@ const meta: Meta<AreaChartProps<typeof areaChartData>> = {component: AreaChart,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { AreaChart } from '@crayon-ui/react-ui/Charts/AreaChart';\n```",+ },+ },},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],argTypes: {data: {description:@@ -34,6 +39,7 @@ const meta: Meta<AreaChartProps<typeof areaChartData>> = {table: {type: { summary: "Array<Record<string, string | number>>" },defaultValue: { summary: "[]" },+ category: "Data",},},categoryKey: {@@ -42,6 +48,7 @@ const meta: Meta<AreaChartProps<typeof areaChartData>> = {control: false,table: {type: { summary: "string" },+ category: "Data",},},width: {@@ -50,6 +57,7 @@ const meta: Meta<AreaChartProps<typeof areaChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "800" },+ category: "Dimensions",},},height: {@@ -58,6 +66,7 @@ const meta: Meta<AreaChartProps<typeof areaChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "400" },+ category: "Dimensions",},},theme: {@@ -67,6 +76,7 @@ const meta: Meta<AreaChartProps<typeof areaChartData>> = {options: ["ocean", "orchid", "emerald", "sunset", "spectrum", "vivid"],table: {defaultValue: { summary: "ocean" },+ category: "Appearance",},},icons: {@@ -76,6 +86,7 @@ const meta: Meta<AreaChartProps<typeof areaChartData>> = {table: {type: { summary: "Record<string, React.ComponentType>" },defaultValue: { summary: "{}" },+ category: "Appearance",},},variant: {@@ -85,6 +96,7 @@ const meta: Meta<AreaChartProps<typeof areaChartData>> = {options: ["linear", "natural", "step"],table: {defaultValue: { summary: "natural" },+ category: "Appearance",},},opacity: {@@ -94,6 +106,7 @@ const meta: Meta<AreaChartProps<typeof areaChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "0.5" },+ category: "Appearance",},},grid: {@@ -102,6 +115,7 @@ const meta: Meta<AreaChartProps<typeof areaChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},label: {@@ -110,6 +124,7 @@ const meta: Meta<AreaChartProps<typeof areaChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},legend: {@@ -119,6 +134,7 @@ const meta: Meta<AreaChartProps<typeof areaChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},},diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/BarChart/BarChart.tsx b/frontend-sdk/packages/react-ui/src/components/Charts/BarChart/BarChart.tsxindex 06560761a..2370124fb 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/BarChart/BarChart.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Charts/BarChart/BarChart.tsx@@ -11,7 +11,7 @@ import {import { cartesianGrid } from "../cartesianGrid";import { getDistributedColors, getPalette } from "../utils/PalletUtils";-type BarChartData = Array<Record<string, string | number>>;+export type BarChartData = Array<Record<string, string | number>>;export interface BarChartProps<T extends BarChartData> {data: T;diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/BarChart/stories/barChart.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Charts/BarChart/stories/barChart.stories.tsxindex f671908b1..591f55bc7 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/BarChart/stories/barChart.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Charts/BarChart/stories/barChart.stories.tsx@@ -24,8 +24,13 @@ const meta: Meta<BarChartProps<typeof barChartData>> = {component: BarChart,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { BarChart } from '@crayon-ui/react-ui/Charts/BarChart';\n```",+ },+ },},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],argTypes: {data: {description:@@ -34,6 +39,7 @@ const meta: Meta<BarChartProps<typeof barChartData>> = {table: {type: { summary: "Array<Record<string, string | number>>" },defaultValue: { summary: "[]" },+ category: "Data",},},categoryKey: {@@ -42,6 +48,7 @@ const meta: Meta<BarChartProps<typeof barChartData>> = {control: false,table: {type: { summary: "string" },+ category: "Data",},},width: {@@ -50,6 +57,7 @@ const meta: Meta<BarChartProps<typeof barChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "800" },+ category: "Dimensions",},},height: {@@ -58,6 +66,7 @@ const meta: Meta<BarChartProps<typeof barChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "400" },+ category: "Dimensions",},},theme: {@@ -67,6 +76,7 @@ const meta: Meta<BarChartProps<typeof barChartData>> = {options: ["ocean", "orchid", "emerald", "sunset", "spectrum", "vivid"],table: {defaultValue: { summary: "ocean" },+ category: "Appearance",},},icons: {@@ -76,6 +86,7 @@ const meta: Meta<BarChartProps<typeof barChartData>> = {table: {type: { summary: "Record<string, React.ComponentType>" },defaultValue: { summary: "{}" },+ category: "Appearance",},},variant: {@@ -85,6 +96,7 @@ const meta: Meta<BarChartProps<typeof barChartData>> = {options: ["grouped", "stacked"],table: {defaultValue: { summary: "grouped" },+ category: "Appearance",},},radius: {@@ -93,6 +105,7 @@ const meta: Meta<BarChartProps<typeof barChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "4" },+ category: "Appearance",},},grid: {@@ -101,6 +114,7 @@ const meta: Meta<BarChartProps<typeof barChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},label: {@@ -109,6 +123,7 @@ const meta: Meta<BarChartProps<typeof barChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},legend: {@@ -118,6 +133,7 @@ const meta: Meta<BarChartProps<typeof barChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},},diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/Charts.tsx b/frontend-sdk/packages/react-ui/src/components/Charts/Charts.tsxindex 781e5eddf..6a733d7bd 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/Charts.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Charts/Charts.tsx@@ -52,6 +52,40 @@ function useChart() {return context;}+/**+ * Component that generates theme-specific styles for chart elements+ */+const ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => {+ const colorConfig = Object.entries(config).filter(([_, config]) => config.theme || config.color);++ if (!colorConfig.length) {+ return null;+ }++ return (+ <style+ dangerouslySetInnerHTML={{+ __html: Object.entries(THEMES)+ .map(+ ([theme, prefix]) => `+ ${prefix} [data-chart=${id}] {+ ${colorConfig+ .map(([key, itemConfig]) => {+ const color =+ itemConfig.theme?.[theme as keyof typeof itemConfig.theme] || itemConfig.color;+ return color ? ` --color-${key}: ${color};` : null;+ })+ .filter(Boolean)+ .join("\n")}+ }+ `,+ )+ .join("\n"),+ }}+ />+ );+};+/*** Container component for charts that provides configuration context and styling*/@@ -81,39 +115,6 @@ const ChartContainer = forwardRef<});ChartContainer.displayName = "Chart";-/**- * Component that generates theme-specific styles for chart elements- */-const ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => {- const colorConfig = Object.entries(config).filter(([_, config]) => config.theme || config.color);-- if (!colorConfig.length) {- return null;- }-- return (- <style- dangerouslySetInnerHTML={{- __html: Object.entries(THEMES)- .map(- ([theme, prefix]) => `- ${prefix} [data-chart=${id}] {- ${colorConfig- .map(([key, itemConfig]) => {- const color = itemConfig.theme?.[theme as keyof typeof itemConfig.theme] || itemConfig.color;- return color ? ` --color-${key}: ${color};` : null;- })- .filter(Boolean)- .join("\n")}- }- `,- )- .join("\n"),- }}- />- );-};-/*** Re-exported Tooltip component from Recharts*/diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/LineChart/LineChart.tsx b/frontend-sdk/packages/react-ui/src/components/Charts/LineChart/LineChart.tsxindex cc4bcf8f0..c1c39e493 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/LineChart/LineChart.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Charts/LineChart/LineChart.tsx@@ -11,7 +11,7 @@ import {import { cartesianGrid } from "../cartesianGrid";import { getDistributedColors, getPalette } from "../utils/PalletUtils";-type LineChartData = Array<Record<string, string | number>>;+export type LineChartData = Array<Record<string, string | number>>;export interface LineChartProps<T extends LineChartData> {data: T;diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/LineChart/stories/lineChart.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Charts/LineChart/stories/lineChart.stories.tsxindex 9374c5488..3137bcc12 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/LineChart/stories/lineChart.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Charts/LineChart/stories/lineChart.stories.tsx@@ -24,8 +24,14 @@ const meta: Meta<LineChartProps<typeof lineChartData>> = {component: LineChart,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { LineChart } from '@crayon-ui/react-ui/Charts/LineChart';\n```",+ },+ },},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],+argTypes: {data: {description:@@ -34,6 +40,7 @@ const meta: Meta<LineChartProps<typeof lineChartData>> = {table: {type: { summary: "Array<Record<string, string | number>>" },defaultValue: { summary: "[]" },+ category: "Data",},},categoryKey: {@@ -42,6 +49,7 @@ const meta: Meta<LineChartProps<typeof lineChartData>> = {control: false,table: {type: { summary: "string" },+ category: "Data",},},width: {@@ -50,6 +58,7 @@ const meta: Meta<LineChartProps<typeof lineChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "800" },+ category: "Dimensions",},},height: {@@ -58,6 +67,7 @@ const meta: Meta<LineChartProps<typeof lineChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "400" },+ category: "Dimensions",},},theme: {@@ -67,6 +77,7 @@ const meta: Meta<LineChartProps<typeof lineChartData>> = {options: ["ocean", "orchid", "emerald", "sunset", "spectrum", "vivid"],table: {defaultValue: { summary: "ocean" },+ category: "Appearance",},},icons: {@@ -76,6 +87,7 @@ const meta: Meta<LineChartProps<typeof lineChartData>> = {table: {type: { summary: "Record<string, React.ComponentType>" },defaultValue: { summary: "{}" },+ category: "Appearance",},},variant: {@@ -85,6 +97,7 @@ const meta: Meta<LineChartProps<typeof lineChartData>> = {options: ["linear", "natural", "step"],table: {defaultValue: { summary: "natural" },+ category: "Appearance",},},strokeWidth: {@@ -93,6 +106,7 @@ const meta: Meta<LineChartProps<typeof lineChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "2" },+ category: "Appearance",},},grid: {@@ -101,6 +115,7 @@ const meta: Meta<LineChartProps<typeof lineChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},label: {@@ -109,6 +124,7 @@ const meta: Meta<LineChartProps<typeof lineChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},legend: {@@ -118,6 +134,7 @@ const meta: Meta<LineChartProps<typeof lineChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},},diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/PieChart/PieChart.tsx b/frontend-sdk/packages/react-ui/src/components/Charts/PieChart/PieChart.tsxindex 2845f2e89..d1be76c97 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/PieChart/PieChart.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Charts/PieChart/PieChart.tsx@@ -13,7 +13,7 @@ import {} from "../Charts";import { getDistributedColors, getPalette } from "../utils/PalletUtils";-type PieChartData = Array<Record<string, string | number>>;+export type PieChartData = Array<Record<string, string | number>>;export interface PieChartProps<T extends PieChartData> {data: T;diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/PieChart/stories/pieChart.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Charts/PieChart/stories/pieChart.stories.tsxindex 3d1cfd24a..e01cc72b9 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/PieChart/stories/pieChart.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Charts/PieChart/stories/pieChart.stories.tsx@@ -5,13 +5,13 @@ import "../../charts.scss";import { PieChart, PieChartProps } from "../PieChart";const pieChartData = [- { month: "January", value: 400 },- { month: "February", value: 300 },- { month: "March", value: 300 },- { month: "April", value: 400 },- { month: "May", value: 300 },- { month: "June", value: 300 },- { month: "July", value: 300 },+ { month: "January", value: 4250 },+ { month: "February", value: 3820 },+ { month: "March", value: 4680 },+ { month: "April", value: 4120 },+ { month: "May", value: 5340 },+ { month: "June", value: 6250 },+ { month: "July", value: 5890 },];const meta: Meta<PieChartProps<typeof pieChartData>> = {@@ -19,8 +19,14 @@ const meta: Meta<PieChartProps<typeof pieChartData>> = {component: PieChart,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { PieChart } from '@crayon-ui/react-ui/Charts/PieChart';\n```",+ },+ },},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],+argTypes: {data: {description:@@ -29,6 +35,7 @@ const meta: Meta<PieChartProps<typeof pieChartData>> = {table: {type: { summary: "Array<Record<string, string | number>>" },defaultValue: { summary: "[]" },+ category: "Data",},},categoryKey: {@@ -37,6 +44,7 @@ const meta: Meta<PieChartProps<typeof pieChartData>> = {control: false,table: {type: { summary: "string" },+ category: "Data",},},dataKey: {@@ -45,6 +53,7 @@ const meta: Meta<PieChartProps<typeof pieChartData>> = {control: false,table: {type: { summary: "string" },+ category: "Data",},},width: {@@ -53,6 +62,7 @@ const meta: Meta<PieChartProps<typeof pieChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "800" },+ category: "Dimensions",},},height: {@@ -61,6 +71,7 @@ const meta: Meta<PieChartProps<typeof pieChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "400" },+ category: "Dimensions",},},theme: {@@ -70,6 +81,7 @@ const meta: Meta<PieChartProps<typeof pieChartData>> = {options: ["ocean", "orchid", "emerald", "sunset", "spectrum", "vivid"],table: {defaultValue: { summary: "ocean" },+ category: "Appearance",},},variant: {@@ -79,6 +91,7 @@ const meta: Meta<PieChartProps<typeof pieChartData>> = {options: ["pie", "donut"],table: {defaultValue: { summary: "pie" },+ category: "Appearance",},},format: {@@ -88,6 +101,7 @@ const meta: Meta<PieChartProps<typeof pieChartData>> = {options: ["percentage", "number"],table: {defaultValue: { summary: "percentage" },+ category: "Display",},},legend: {@@ -96,6 +110,7 @@ const meta: Meta<PieChartProps<typeof pieChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},label: {@@ -104,6 +119,7 @@ const meta: Meta<PieChartProps<typeof pieChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},},diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/RadarChart/RadarChart.tsx b/frontend-sdk/packages/react-ui/src/components/Charts/RadarChart/RadarChart.tsxindex c023abebf..05f20f4ff 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/RadarChart/RadarChart.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Charts/RadarChart/RadarChart.tsx@@ -10,7 +10,7 @@ import {} from "../Charts";import { getDistributedColors, getPalette } from "../utils/PalletUtils";-type RadarChartData = Array<Record<string, string | number>>;+export type RadarChartData = Array<Record<string, string | number>>;export interface RadarChartProps<T extends RadarChartData> {data: T;diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/RadarChart/stories/raderChart.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Charts/RadarChart/stories/raderChart.stories.tsxindex 864577b34..e84fc578f 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/RadarChart/stories/raderChart.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Charts/RadarChart/stories/raderChart.stories.tsx@@ -24,8 +24,15 @@ const meta: Meta<RadarChartProps<typeof radarChartData>> = {component: RadarChart,parameters: {layout: "centered",+ docs: {+ description: {+ component:+ "```tsx\nimport { RadarChart } from '@crayon-ui/react-ui/Charts/RadarChart';\n```",+ },+ },},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],+argTypes: {data: {description:@@ -34,6 +41,7 @@ const meta: Meta<RadarChartProps<typeof radarChartData>> = {table: {type: { summary: "Array<Record<string, string | number>>" },defaultValue: { summary: "[]" },+ category: "Data",},},categoryKey: {@@ -42,6 +50,7 @@ const meta: Meta<RadarChartProps<typeof radarChartData>> = {control: false,table: {type: { summary: "string" },+ category: "Data",},},width: {@@ -50,6 +59,7 @@ const meta: Meta<RadarChartProps<typeof radarChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "800" },+ category: "Dimensions",},},height: {@@ -58,6 +68,7 @@ const meta: Meta<RadarChartProps<typeof radarChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "400" },+ category: "Dimensions",},},theme: {@@ -67,6 +78,7 @@ const meta: Meta<RadarChartProps<typeof radarChartData>> = {options: ["ocean", "orchid", "emerald", "sunset", "spectrum", "vivid"],table: {defaultValue: { summary: "ocean" },+ category: "Appearance",},},icons: {@@ -76,6 +88,7 @@ const meta: Meta<RadarChartProps<typeof radarChartData>> = {table: {type: { summary: "Record<string, React.ComponentType>" },defaultValue: { summary: "{}" },+ category: "Appearance",},},variant: {@@ -85,6 +98,7 @@ const meta: Meta<RadarChartProps<typeof radarChartData>> = {options: ["line", "area"],table: {defaultValue: { summary: "area" },+ category: "Appearance",},},strokeWidth: {@@ -93,6 +107,7 @@ const meta: Meta<RadarChartProps<typeof radarChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "2" },+ category: "Appearance",},},grid: {@@ -101,6 +116,7 @@ const meta: Meta<RadarChartProps<typeof radarChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},areaOpacity: {@@ -109,6 +125,7 @@ const meta: Meta<RadarChartProps<typeof radarChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "0.7" },+ category: "Appearance",},},legend: {@@ -118,6 +135,7 @@ const meta: Meta<RadarChartProps<typeof radarChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},},diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/RadialChart/RadialChart.tsx b/frontend-sdk/packages/react-ui/src/components/Charts/RadialChart/RadialChart.tsxindex 41521b2ac..1b9d99407 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/RadialChart/RadialChart.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Charts/RadialChart/RadialChart.tsx@@ -13,7 +13,7 @@ import {} from "../Charts";import { getDistributedColors, getPalette } from "../utils/PalletUtils";-type RadialChartData = Array<Record<string, string | number>>;+export type RadialChartData = Array<Record<string, string | number>>;export interface RadialChartProps<T extends RadialChartData> {data: T;@@ -72,7 +72,7 @@ export const RadialChart = <T extends RadialChartData>({if (layout === "mobile") {newOuterRadius = label ? (width > 300 ? 110 : 90) : width > 300 ? 95 : 80;} else if (layout === "fullscreen") {- newOuterRadius = 200;+ newOuterRadius = 160;} else if (layout === "tray" || layout === "copilot") {newOuterRadius = 130;} else {diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/RadialChart/stories/radialChart.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Charts/RadialChart/stories/radialChart.stories.tsxindex ab131215f..048f38ff2 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/RadialChart/stories/radialChart.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Charts/RadialChart/stories/radialChart.stories.tsx@@ -19,8 +19,15 @@ const meta: Meta<RadialChartProps<typeof radialChartData>> = {component: RadialChart,parameters: {layout: "centered",+ docs: {+ description: {+ component:+ "```tsx\nimport { RadialChart } from '@crayon-ui/react-ui/Charts/RadialChart';\n```",+ },+ },},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],+argTypes: {data: {description:@@ -29,6 +36,7 @@ const meta: Meta<RadialChartProps<typeof radialChartData>> = {table: {type: { summary: "Array<Record<string, string | number>>" },defaultValue: { summary: "[]" },+ category: "Data",},},categoryKey: {@@ -37,6 +45,7 @@ const meta: Meta<RadialChartProps<typeof radialChartData>> = {control: false,table: {type: { summary: "string" },+ category: "Data",},},dataKey: {@@ -45,6 +54,7 @@ const meta: Meta<RadialChartProps<typeof radialChartData>> = {control: false,table: {type: { summary: "string" },+ category: "Data",},},width: {@@ -53,6 +63,7 @@ const meta: Meta<RadialChartProps<typeof radialChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "800" },+ category: "Dimensions",},},height: {@@ -61,6 +72,7 @@ const meta: Meta<RadialChartProps<typeof radialChartData>> = {table: {type: { summary: "number" },defaultValue: { summary: "400" },+ category: "Dimensions",},},theme: {@@ -70,6 +82,7 @@ const meta: Meta<RadialChartProps<typeof radialChartData>> = {options: ["ocean", "orchid", "emerald", "sunset", "spectrum", "vivid"],table: {defaultValue: { summary: "ocean" },+ category: "Appearance",},},variant: {@@ -79,6 +92,7 @@ const meta: Meta<RadialChartProps<typeof radialChartData>> = {options: ["circular", "semicircle"],table: {defaultValue: { summary: "circular" },+ category: "Appearance",},},format: {@@ -88,6 +102,7 @@ const meta: Meta<RadialChartProps<typeof radialChartData>> = {options: ["percentage", "number"],table: {defaultValue: { summary: "percentage" },+ category: "Display",},},legend: {@@ -96,6 +111,7 @@ const meta: Meta<RadialChartProps<typeof radialChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},label: {@@ -104,6 +120,7 @@ const meta: Meta<RadialChartProps<typeof radialChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},grid: {@@ -112,6 +129,7 @@ const meta: Meta<RadialChartProps<typeof radialChartData>> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},},@@ -142,6 +160,10 @@ export const RadialChartStory: Story = {),parameters: {docs: {+ description: {+ story:+ "A radial chart that displays data in a circular or semicircular format, with customizable themes, labels, and grid options.",+ },source: {code: `const radialChartData = [diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/charts.scss b/frontend-sdk/packages/react-ui/src/components/Charts/charts.scssindex 3c7e764ad..f9815c5d5 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/charts.scss+++ b/frontend-sdk/packages/react-ui/src/components/Charts/charts.scss@@ -168,6 +168,7 @@justify-content: center;gap: 16px;text-transform: capitalize;+ flex-wrap: wrap;&--top {padding-bottom: map.get(cssUtils.$spacing, "s");diff --git a/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/stories/CheckBoxGroup.stories.tsx b/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/stories/CheckBoxGroup.stories.tsxindex b01f099bd..4e0d7e7f1 100644--- a/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/stories/CheckBoxGroup.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/stories/CheckBoxGroup.stories.tsx@@ -11,6 +11,12 @@ const meta = {subcomponents: { CheckBoxItem } as any,parameters: {layout: "centered",+ docs: {+ description: {+ component:+ "```tsx\nimport { CheckBoxGroup, CheckBoxItem } from '@crayon-ui/react-ui';\n```",+ },+ },},argTypes: {variant: {@@ -59,7 +65,7 @@ const meta = {},},},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],} satisfies Meta<typeof CheckBoxGroup>;export default meta;@@ -67,7 +73,7 @@ type Story = StoryObj<typeof meta>;export const ClearVariant: Story = {args: {- variant: "clear",+ variant: "card",children: [<CheckBoxItem key="1" label="Option 1" />,<CheckBoxItem key="2" label="Option 2" />,@@ -75,25 +81,3 @@ export const ClearVariant: Story = {],},};--export const CardVariant: Story = {- args: {- variant: "card",- children: [- <CheckBoxItem key="1" label="Card Option 1" />,- <CheckBoxItem key="2" label="Card Option 2" />,- <CheckBoxItem key="3" label="Card Option 3" />,- ],- },-};--export const SunkVariant: Story = {- args: {- variant: "sunk",- children: [- <CheckBoxItem key="1" label="Sunk Option 1" />,- <CheckBoxItem key="2" label="Sunk Option 2" />,- <CheckBoxItem key="3" label="Sunk Option 3" />,- ],- },-};diff --git a/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/CheckBoxItem.tsx b/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/CheckBoxItem.tsxindex 7f8aceb18..49a014bf2 100644--- a/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/CheckBoxItem.tsx+++ b/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/CheckBoxItem.tsx@@ -2,7 +2,7 @@ import * as Checkbox from "@radix-ui/react-checkbox";import clsx from "clsx";import { Check } from "lucide-react";import { CSSProperties, forwardRef, ReactNode, useId } from "react";-import { Label } from "../FormControl";+import { Label } from "../Label";export interface CheckBoxItemProps {label?: ReactNode;diff --git a/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/stories/CheckBoxItem.stories.tsx b/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/stories/CheckBoxItem.stories.tsxindex 3398b1196..ce722691d 100644--- a/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/stories/CheckBoxItem.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/stories/CheckBoxItem.stories.tsx@@ -8,6 +8,11 @@ const meta: Meta<typeof CheckBoxItem> = {component: CheckBoxItem,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { CheckBoxItem } from '@crayon-ui/react-ui';\n```",+ },+ },},argTypes: {label: {@@ -64,7 +69,6 @@ const meta: Meta<typeof CheckBoxItem> = {"The name of the checkbox. Submitted with its owning form as part of a name/value pair.",table: {type: { summary: "string" },- defaultValue: { summary: "undefined" },},},value: {@@ -104,7 +108,7 @@ const meta: Meta<typeof CheckBoxItem> = {},},},- tags: ["autodocs"],+ tags: ["!dev", "!autodocs"],};export default meta;diff --git a/frontend-sdk/packages/react-ui/src/components/DatePicker/helpers/components/FloatingDatePickerRenderer.tsx b/frontend-sdk/packages/react-ui/src/components/DatePicker/helpers/components/FloatingDatePickerRenderer.tsxindex fb29d0c14..3811036bd 100644--- a/frontend-sdk/packages/react-ui/src/components/DatePicker/helpers/components/FloatingDatePickerRenderer.tsx+++ b/frontend-sdk/packages/react-ui/src/components/DatePicker/helpers/components/FloatingDatePickerRenderer.tsx@@ -7,44 +7,6 @@ import { useDatePicker } from "../context/DatePickerContext";import { formatDateRange, formatSingleDate } from "../utils/helperFn";import { DatepickerRenderer } from "./DatePickerRenderer";-export const FloatingDatePickerRenderer = ({- className,- style,-}: {- className?: string;- style?: React.CSSProperties;-}) => {- const { isOpen, setIsOpen } = useDatePicker();- const menuRef = useRef<HTMLDivElement>(null);-- useEffect(() => {- if (!isOpen) return;-- const handleClick = (e: MouseEvent) => {- if (menuRef.current?.contains(e.target as Node)) {- return;- }- setIsOpen(false);- };-- document.body.addEventListener("click", handleClick);-- return () => {- document.body.removeEventListener("click", handleClick);- };- }, [isOpen, setIsOpen]);-- return (- <div- className={clsx("crayon-date-picker-renderer-floating-container", className)}- style={style}- >- <FloatingDateInput />- <FloatingDatePicker ref={menuRef} />- </div>- );-};-const FloatingDateInput = () => {const { mode, selectedDate, selectedRange, isOpen, setIsOpen } = useDatePicker();const hasSelectedDate =@@ -118,3 +80,41 @@ const FloatingDatePicker = forwardRef<HTMLDivElement>((_, ref) => {</>);});++export const FloatingDatePickerRenderer = ({+ className,+ style,+}: {+ className?: string;+ style?: React.CSSProperties;+}) => {+ const { isOpen, setIsOpen } = useDatePicker();+ const menuRef = useRef<HTMLDivElement>(null);++ useEffect(() => {+ if (!isOpen) return;++ const handleClick = (e: MouseEvent) => {+ if (menuRef.current?.contains(e.target as Node)) {+ return;+ }+ setIsOpen(false);+ };++ document.body.addEventListener("click", handleClick);++ return () => {+ document.body.removeEventListener("click", handleClick);+ };+ }, [isOpen, setIsOpen]);++ return (+ <div+ className={clsx("crayon-date-picker-renderer-floating-container", className)}+ style={style}+ >+ <FloatingDateInput />+ <FloatingDatePicker ref={menuRef} />+ </div>+ );+};diff --git a/frontend-sdk/packages/react-ui/src/components/DatePicker/helpers/context/DatePickerContext.tsx b/frontend-sdk/packages/react-ui/src/components/DatePicker/helpers/context/DatePickerContext.tsxindex c0ebf498f..52b9f5b07 100644--- a/frontend-sdk/packages/react-ui/src/components/DatePicker/helpers/context/DatePickerContext.tsx+++ b/frontend-sdk/packages/react-ui/src/components/DatePicker/helpers/context/DatePickerContext.tsx@@ -20,9 +20,9 @@ const defaultContext: DatePickerContextType = {mode: "single",botType: "fullscreen",- setSelectedDate: (date: Date | undefined) => {},- setSelectedRange: (range: DateRange | undefined) => {},- setIsOpen: (isOpen: boolean) => {},+ setSelectedDate: (_date: Date | undefined) => {},+ setSelectedRange: (_range: DateRange | undefined) => {},+ setIsOpen: (_isOpen: boolean) => {},};const DatePickerContext = createContext<DatePickerContextType>(defaultContext);diff --git a/frontend-sdk/packages/react-ui/src/components/DatePicker/stories/DatePicker.stories.tsx b/frontend-sdk/packages/react-ui/src/components/DatePicker/stories/DatePicker.stories.tsxindex e9b1b919e..bf8ecde9d 100644--- a/frontend-sdk/packages/react-ui/src/components/DatePicker/stories/DatePicker.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/DatePicker/stories/DatePicker.stories.tsx@@ -11,6 +11,11 @@ const meta: Meta<typeof DatePicker> = {component: DatePicker,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { DatePicker } from '@crayon-ui/react-ui';\n```",+ },+ },},decorators: [(Story) => (@@ -112,7 +117,7 @@ const meta: Meta<typeof DatePicker> = {},},},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],} satisfies Meta<typeof DatePicker>;export default meta;@@ -135,6 +140,13 @@ export const RangePicker: Story = {mode: "range",variant: "docked",},+ parameters: {+ docs: {+ description: {+ story: "Range picker with docked variant. Select dates by dragging across the calendar",+ },+ },+ },};// Single date picker with floating variantdiff --git a/frontend-sdk/packages/react-ui/src/components/FollowUpBlock/stories/FollowUpBlock.stories.tsx b/frontend-sdk/packages/react-ui/src/components/FollowUpBlock/stories/FollowUpBlock.stories.tsxindex 6ce1086dc..1effcd8a5 100644--- a/frontend-sdk/packages/react-ui/src/components/FollowUpBlock/stories/FollowUpBlock.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/FollowUpBlock/stories/FollowUpBlock.stories.tsx@@ -9,9 +9,15 @@ const meta: Meta<typeof FollowUpBlock> = {title: "Components/FollowUpBlock",component: FollowUpBlock,subcomponents: { FollowUpItem } as any,- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],parameters: {layout: "centered",+ docs: {+ description: {+ component:+ "```tsx\nimport { FollowUpBlock, FollowUpItem } from '@crayon-ui/react-ui';\n```",+ },+ },},argTypes: {children: {diff --git a/frontend-sdk/packages/react-ui/src/components/FollowUpItem/stories/FollowUpItem.stories.tsx b/frontend-sdk/packages/react-ui/src/components/FollowUpItem/stories/FollowUpItem.stories.tsxindex e149a804b..b37374263 100644--- a/frontend-sdk/packages/react-ui/src/components/FollowUpItem/stories/FollowUpItem.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/FollowUpItem/stories/FollowUpItem.stories.tsx@@ -8,8 +8,13 @@ const meta: Meta<typeof FollowUpItem> = {component: FollowUpItem,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { FollowUpItem } from '@crayon-ui/react-ui';\n```",+ },+ },},- tags: ["autodocs"],+ tags: ["!dev", "!autodocs"],argTypes: {text: {control: "text",@@ -17,7 +22,6 @@ const meta: Meta<typeof FollowUpItem> = {table: {category: "Content",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},icon: {@@ -26,7 +30,6 @@ const meta: Meta<typeof FollowUpItem> = {table: {category: "Content",type: { summary: "ReactNode" },- defaultValue: { summary: "undefined" },},},className: {@@ -35,7 +38,6 @@ const meta: Meta<typeof FollowUpItem> = {table: {category: "Styling",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},},diff --git a/frontend-sdk/packages/react-ui/src/components/Footer/dependencies.ts b/frontend-sdk/packages/react-ui/src/components/Footer/dependencies.tsdeleted file mode 100644index 206d4b0ec..000000000--- a/frontend-sdk/packages/react-ui/src/components/Footer/dependencies.ts+++ /dev/null@@ -1,2 +0,0 @@-const dependencies = ["Footer"];-export default dependencies;diff --git a/frontend-sdk/packages/react-ui/src/components/Footer/index.ts b/frontend-sdk/packages/react-ui/src/components/Footer/index.tsdeleted file mode 100644index 5fca53f7d..000000000--- a/frontend-sdk/packages/react-ui/src/components/Footer/index.ts+++ /dev/null@@ -1 +0,0 @@-export * from "./Footer";diff --git a/frontend-sdk/packages/react-ui/src/components/FormControl/index.ts b/frontend-sdk/packages/react-ui/src/components/FormControl/index.tsindex 37eda4e42..495b34148 100644--- a/frontend-sdk/packages/react-ui/src/components/FormControl/index.ts+++ b/frontend-sdk/packages/react-ui/src/components/FormControl/index.ts@@ -1,3 +1,2 @@-export * from "../Label";export * from "./FormControl";export * from "./Hint";diff --git a/frontend-sdk/packages/react-ui/src/components/FormControl/stories/FormControl.stories.tsx b/frontend-sdk/packages/react-ui/src/components/FormControl/stories/FormControl.stories.tsxindex 80c1f55ef..9d4810117 100644--- a/frontend-sdk/packages/react-ui/src/components/FormControl/stories/FormControl.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/FormControl/stories/FormControl.stories.tsx@@ -11,9 +11,14 @@ import "../Hint/hint.scss";const meta: Meta<typeof FormControl> = {title: "Components/FormControl",component: FormControl,- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { FormControl, Hint } from '@crayon-ui/react-ui';\n```",+ },+ },},argTypes: {children: {@@ -23,7 +28,6 @@ const meta: Meta<typeof FormControl> = {table: {category: "Content",type: { summary: "ReactNode[] | ReactNode" },- defaultValue: { summary: "undefined" },},},className: {@@ -32,7 +36,6 @@ const meta: Meta<typeof FormControl> = {table: {category: "Styling",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},style: {@@ -41,7 +44,6 @@ const meta: Meta<typeof FormControl> = {table: {category: "Styling",type: { summary: "CSSProperties" },- defaultValue: { summary: "undefined" },},},},@@ -51,19 +53,20 @@ export default meta;type Story = StoryObj<typeof FormControl>;export const WithLabelAndHint: Story = {- render: () => (+ render: (args) => (<FormControl>- <Label>Username</Label>- <Input placeholder="Enter username" />+ <Label htmlFor="username">Username</Label>+ <Input placeholder="Enter username" id="username" /><Hint>- <Info size={14} /> Must be at least 4 characters long+ <Info size={14} />+ <span>Must be at least 4 characters long</span></Hint></FormControl>),};export const WithMultipleChildren: Story = {- render: () => (+ render: (args) => (<FormControl><Label htmlFor="profile-information">Profile Information</Label><Input placeholder="Full name" id="profile-information" />diff --git a/frontend-sdk/packages/react-ui/src/components/Header/dependencies.ts b/frontend-sdk/packages/react-ui/src/components/Header/dependencies.tsdeleted file mode 100644index 247592e41..000000000--- a/frontend-sdk/packages/react-ui/src/components/Header/dependencies.ts+++ /dev/null@@ -1,2 +0,0 @@-const dependencies = ["Header"];-export default dependencies;diff --git a/frontend-sdk/packages/react-ui/src/components/Header/index.ts b/frontend-sdk/packages/react-ui/src/components/Header/index.tsdeleted file mode 100644index 9e08a64db..000000000--- a/frontend-sdk/packages/react-ui/src/components/Header/index.ts+++ /dev/null@@ -1 +0,0 @@-export * from "./Header";diff --git a/frontend-sdk/packages/react-ui/src/components/IconButton/stories/iconButton.stories.tsx b/frontend-sdk/packages/react-ui/src/components/IconButton/stories/iconButton.stories.tsxindex 7268dbf32..4769ce8e3 100644--- a/frontend-sdk/packages/react-ui/src/components/IconButton/stories/iconButton.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/IconButton/stories/iconButton.stories.tsx@@ -8,6 +8,11 @@ const meta: Meta<typeof IconButton> = {component: IconButton,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { IconButton } from '@crayon-ui/react-ui';\n```",+ },+ },},argTypes: {icon: {@@ -16,7 +21,6 @@ const meta: Meta<typeof IconButton> = {table: {category: "Content",type: { summary: "ReactNode" },- defaultValue: { summary: "undefined" },},},variant: {@@ -64,11 +68,10 @@ const meta: Meta<typeof IconButton> = {table: {category: "Styling",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],};export default meta;diff --git a/frontend-sdk/packages/react-ui/src/components/Image/stories/Image.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Image/stories/Image.stories.tsxindex 96cd9e88a..93d07d91f 100644--- a/frontend-sdk/packages/react-ui/src/components/Image/stories/Image.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Image/stories/Image.stories.tsx@@ -5,7 +5,7 @@ import "../image.scss";const meta: Meta<typeof Image> = {title: "Components/Image",component: Image,- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],decorators: [(Story) => (<div@@ -18,6 +18,13 @@ const meta: Meta<typeof Image> = {</div>),],+ parameters: {+ docs: {+ description: {+ component: "```tsx\nimport { Image } from '@crayon-ui/react-ui';\n```",+ },+ },+ },argTypes: {className: {control: false,diff --git a/frontend-sdk/packages/react-ui/src/components/Input/stories/Input.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Input/stories/Input.stories.tsxindex 35a301d9e..17d6a513b 100644--- a/frontend-sdk/packages/react-ui/src/components/Input/stories/Input.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Input/stories/Input.stories.tsx@@ -8,6 +8,11 @@ const meta: Meta<typeof Input> = {component: Input,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { Input } from '@crayon-ui/react-ui';\n```",+ },+ },},decorators: [(Story) => (@@ -42,7 +47,6 @@ const meta: Meta<typeof Input> = {table: {category: "Content",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},value: {@@ -51,7 +55,6 @@ const meta: Meta<typeof Input> = {table: {category: "Content",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},onChange: {@@ -77,7 +80,7 @@ const meta: Meta<typeof Input> = {},},},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],};export default meta;@@ -117,6 +120,10 @@ export const Controlled: Story = {render: () => <ControlledInput />,parameters: {docs: {+ description: {+ story:+ "This is a controlled input example. The input value is managed by the component's state.",+ },source: {code: `import { useState } from "react";diff --git a/frontend-sdk/packages/react-ui/src/components/ListBlock/stories/ListBlock.stories.tsx b/frontend-sdk/packages/react-ui/src/components/ListBlock/stories/ListBlock.stories.tsxindex f83d8dabb..dcf8d401a 100644--- a/frontend-sdk/packages/react-ui/src/components/ListBlock/stories/ListBlock.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/ListBlock/stories/ListBlock.stories.tsx@@ -12,6 +12,11 @@ const meta: Meta<typeof ListBlock> = {},parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { ListBlock, ListItem } from '@crayon-ui/react-ui';\n```",+ },+ },},decorators: [(Story) => (@@ -44,7 +49,7 @@ const meta: Meta<typeof ListBlock> = {},},},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],};export default meta;diff --git a/frontend-sdk/packages/react-ui/src/components/ListItem/stories/ListItem.stories.tsx b/frontend-sdk/packages/react-ui/src/components/ListItem/stories/ListItem.stories.tsxindex b49a5aef9..5adfe2596 100644--- a/frontend-sdk/packages/react-ui/src/components/ListItem/stories/ListItem.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/ListItem/stories/ListItem.stories.tsx@@ -6,9 +6,14 @@ import "../listItem.scss";const meta: Meta<typeof ListItem> = {title: "Components/ListItem",component: ListItem,- tags: ["autodocs"],+ tags: ["!dev", "!autodocs"],parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { ListItem } from '@crayon-ui/react-ui';\n```",+ },+ },},argTypes: {decorativeIcon: {diff --git a/frontend-sdk/packages/react-ui/src/components/RadioGroup/stories/RadioGroup.stories.tsx b/frontend-sdk/packages/react-ui/src/components/RadioGroup/stories/RadioGroup.stories.tsxindex 2787b66ac..e30754a29 100644--- a/frontend-sdk/packages/react-ui/src/components/RadioGroup/stories/RadioGroup.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/RadioGroup/stories/RadioGroup.stories.tsx@@ -13,17 +13,15 @@ const meta: Meta<typeof RadioGroup> = {},parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { RadioGroup, RadioItem } from '@crayon-ui/react-ui';\n```",+ },+ },},- decorators: [- (Story) => (- <div style={{ width: "350px" }}>- <Story />- </div>- ),- ],argTypes: {variant: {- control: "select",+ control: "radio",options: ["clear", "card", "sunk"],description: "The variant of the radio group",table: {@@ -55,7 +53,7 @@ const meta: Meta<typeof RadioGroup> = {},},},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],};export default meta;@@ -73,28 +71,3 @@ export const Default: Story = {</RadioGroup>),};-export const Card: Story = {- args: {- variant: "card",- },- render: (args) => (- <RadioGroup {...args}>- <RadioItem value="option1" label="Option 1" />- <RadioItem value="option2" label="Option 2" />- <RadioItem value="option3" label="Option 3" />- </RadioGroup>- ),-};--export const Sunk: Story = {- args: {- variant: "sunk",- },- render: (args) => (- <RadioGroup {...args}>- <RadioItem value="option1" label="Option 1" />- <RadioItem value="option2" label="Option 2" />- <RadioItem value="option3" label="Option 3" />- </RadioGroup>- ),-};diff --git a/frontend-sdk/packages/react-ui/src/components/RadioItem/stories/RadioItem.stories.tsx b/frontend-sdk/packages/react-ui/src/components/RadioItem/stories/RadioItem.stories.tsxindex 5c2ba14b9..aeee9c20f 100644--- a/frontend-sdk/packages/react-ui/src/components/RadioItem/stories/RadioItem.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/RadioItem/stories/RadioItem.stories.tsx@@ -24,7 +24,6 @@ const meta: Meta<typeof RadioItem> = {table: {category: "Property",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},label: {@@ -33,7 +32,6 @@ const meta: Meta<typeof RadioItem> = {table: {category: "Content",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},required: {@@ -59,7 +57,7 @@ const meta: Meta<typeof RadioItem> = {description: "Additional CSS class name for custom styling",table: {category: "Styling",- defaultValue: { summary: "undefined" },+type: { summary: "string" },},},@@ -68,12 +66,12 @@ const meta: Meta<typeof RadioItem> = {description: "Additional CSS style for custom styling",table: {category: "Styling",- defaultValue: { summary: "undefined" },+type: { summary: "CSSProperties" },},},},- tags: ["autodocs"],+ tags: ["!dev", "!autodocs"],};export default meta;diff --git a/frontend-sdk/packages/react-ui/src/components/Select/Select.tsx b/frontend-sdk/packages/react-ui/src/components/Select/Select.tsxindex 158f488a2..04fac7164 100644--- a/frontend-sdk/packages/react-ui/src/components/Select/Select.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Select/Select.tsx@@ -30,7 +30,7 @@ export const SelectTrigger = forwardRef<>(({ className, style, children, hideDropdownIcon, size = "md", ...props }, ref) => (<SelectPrimitive.Triggerref={ref}- className={clsx("crayon-select-trigger", `crayon-select-trigger-${size}`, className)}+ className={clsx("crayon-select-trigger", sizeMap[size], className)}style={style}{...props}>diff --git a/frontend-sdk/packages/react-ui/src/components/Select/stories/select.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Select/stories/select.stories.tsxindex a5706693e..ca067d846 100644--- a/frontend-sdk/packages/react-ui/src/components/Select/stories/select.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Select/stories/select.stories.tsx@@ -21,9 +21,15 @@ interface SelectStoryProps {const meta: Meta<SelectStoryProps> = {title: "Components/Select",component: Select as any,- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],parameters: {layout: "centered",+ docs: {+ description: {+ component:+ "```tsx\nimport { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue } from '@crayon-ui/react-ui';\n```",+ },+ },},decorators: [(Story) => (@@ -32,6 +38,7 @@ const meta: Meta<SelectStoryProps> = {</div>),],+argTypes: {size: {control: "radio",@@ -40,6 +47,7 @@ const meta: Meta<SelectStoryProps> = {table: {type: { summary: "string" },defaultValue: { summary: "md" },+ category: "Appearance",},},showTick: {@@ -48,6 +56,7 @@ const meta: Meta<SelectStoryProps> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "Display",},},hideDropdownIcon: {@@ -56,6 +65,7 @@ const meta: Meta<SelectStoryProps> = {table: {type: { summary: "boolean" },defaultValue: { summary: "false" },+ category: "Display",},},placeholder: {@@ -64,6 +74,7 @@ const meta: Meta<SelectStoryProps> = {table: {type: { summary: "string" },defaultValue: { summary: "undefined" },+ category: "Content",},},},diff --git a/frontend-sdk/packages/react-ui/src/components/Shell/Thread.tsx b/frontend-sdk/packages/react-ui/src/components/Shell/Thread.tsxindex fb93e13a2..bf1e895af 100644--- a/frontend-sdk/packages/react-ui/src/components/Shell/Thread.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Shell/Thread.tsx@@ -40,18 +40,6 @@ export const ScrollArea = ({);};-export const Messages = ({ className }: { className?: string }) => {- const { messages } = useThreadState();-- return (- <div className={clsx("crayon-shell-thread-messages", className)}>- {messages.map((message) => (- <RenderMessage key={message.id} message={message} />- ))}- </div>- );-};-const FallbackTemplate = () => {return <div>Unable to render the response</div>;};@@ -119,6 +107,18 @@ export const RenderMessage = ({ message, className }: { message: Message; classNreturn <MessageContainer>{message.message}</MessageContainer>;};+export const Messages = ({ className }: { className?: string }) => {+ const { messages } = useThreadState();++ return (+ <div className={clsx("crayon-shell-thread-messages", className)}>+ {messages.map((message) => (+ <RenderMessage key={message.id} message={message} />+ ))}+ </div>+ );+};+export const Composer = ({ className }: { className?: string }) => {const { textContent, setTextContent } = useComposerState();const { processMessage } = useThreadActions();diff --git a/frontend-sdk/packages/react-ui/src/components/Shell/ThreadList.tsx b/frontend-sdk/packages/react-ui/src/components/Shell/ThreadList.tsxindex b3d0f21ec..b70aa4b5e 100644--- a/frontend-sdk/packages/react-ui/src/components/Shell/ThreadList.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Shell/ThreadList.tsx@@ -2,6 +2,34 @@ import { Thread, useThreadListActions, useThreadListState } from "@crayonai/reacimport clsx from "clsx";import { Fragment, useEffect } from "react";+export const ThreadButton = ({+ id,+ title,+ className,+}: {+ id: string;+ title: string;+ className?: string;+}) => {+ const { selectThread } = useThreadListActions();+ const { selectedThreadId } = useThreadListState();++ return (+ <button+ onClick={() => selectThread(id)}+ className={clsx(+ "crayon-shell-thread-button",+ {+ "crayon-shell-thread-button--selected": selectedThreadId === id,+ },+ className,+ )}+ >+ {title}+ </button>+ );+};+export const ThreadList = ({ className }: { className?: string }) => {let { threads } = useThreadListState();const { load } = useThreadListActions();@@ -80,31 +108,3 @@ export const ThreadList = ({ className }: { className?: string }) => {</div>);};--export const ThreadButton = ({- id,- title,- className,-}: {- id: string;- title: string;- className?: string;-}) => {- const { selectThread } = useThreadListActions();- const { selectedThreadId } = useThreadListState();-- return (- <button- onClick={() => selectThread(id)}- className={clsx(- "crayon-shell-thread-button",- {- "crayon-shell-thread-button--selected": selectedThreadId === id,- },- className,- )}- >- {title}- </button>- );-};diff --git a/frontend-sdk/packages/react-ui/src/components/Shell/stories/Shell.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Shell/stories/Shell.stories.tsxindex f049cd9ba..0389b4e38 100644--- a/frontend-sdk/packages/react-ui/src/components/Shell/stories/Shell.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Shell/stories/Shell.stories.tsx@@ -17,10 +17,11 @@ import logoUrl from "./thesysdev_logo.jpeg";export default {title: "Shell",+ tags: ["dev", "!autodocs"],};export const Default = {- render: () => {+ render: (args: any) => {const threadListManager = useThreadListManager({fetchThreadList: async () => {await new Promise((resolve) => setTimeout(resolve, 1000));diff --git a/frontend-sdk/packages/react-ui/src/components/Slider/stories/slider.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Slider/stories/slider.stories.tsxindex 4dc5400d5..a41c6f748 100644--- a/frontend-sdk/packages/react-ui/src/components/Slider/stories/slider.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Slider/stories/slider.stories.tsx@@ -7,8 +7,14 @@ const meta: Meta<SliderProps> = {component: Slider,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { Slider } from '@crayon-ui/react-ui';\n```",+ },+ },},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],+argTypes: {variant: {control: "radio",@@ -16,21 +22,33 @@ const meta: Meta<SliderProps> = {description:"The type of slider - continuous for smooth sliding, discrete for stepped values, or range for selecting a range",defaultValue: "continuous",+ table: {+ category: "Appearance",+ },},min: {control: "number",description: "Minimum value of the slider",defaultValue: 0,+ table: {+ category: "Value",+ },},max: {control: "number",description: "Maximum value of the slider",defaultValue: 100,+ table: {+ category: "Value",+ },},step: {control: "number",description: "Step increment (required for discrete variant)",defaultValue: 1,+ table: {+ category: "Value",+ },},disabled: {control: "boolean",@@ -38,18 +56,23 @@ const meta: Meta<SliderProps> = {table: {type: { summary: "boolean" },defaultValue: { summary: "true" },+ category: "State",},},value: {control: false,description:"Current value(s) of the slider. Single number for continuous/discrete, array of two numbers for range",+ table: {+ category: "Value",+ },},className: {control: "text",description: "Additional CSS class names",table: {disable: true,+ category: "Appearance",},},style: {@@ -57,9 +80,11 @@ const meta: Meta<SliderProps> = {description: "Additional inline styles",table: {disable: true,+ category: "Appearance",},},},+decorators: [(Story) => (<div style={{ width: "400px", padding: "2rem" }}>@@ -127,58 +152,3 @@ export const Range: Story = {},},};--export const SmallSteps: Story = {- args: {- variant: "discrete",- min: 0,- max: 1,- step: 0.1,- value: [0.5],- onValueChange: (value) => console.log("Value changed:", value),- },- parameters: {- docs: {- description: {- story: "Slider configured with small decimal steps, useful for precise value selection.",- },- },- },-};--export const Disabled: Story = {- args: {- variant: "continuous",- min: 0,- max: 100,- step: 1,- disabled: true,- value: [50],- onValueChange: (value) => console.log("Value changed:", value),- },- parameters: {- docs: {- description: {- story: "A disabled slider prevents user interaction and shows a visual disabled state.",- },- },- },-};--export const CustomRange: Story = {- args: {- variant: "continuous",- min: -50,- max: 50,- step: 5,- value: [0],- onValueChange: (value) => console.log("Value changed:", value),- },- parameters: {- docs: {- description: {- story: "A slider with a custom range, including negative values.",- },- },- },-};diff --git a/frontend-sdk/packages/react-ui/src/components/SwitchGroup/stories/SwitchGroup.stories.tsx b/frontend-sdk/packages/react-ui/src/components/SwitchGroup/stories/SwitchGroup.stories.tsxindex b163cf2b6..2dfd11a2c 100644--- a/frontend-sdk/packages/react-ui/src/components/SwitchGroup/stories/SwitchGroup.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/SwitchGroup/stories/SwitchGroup.stories.tsx@@ -13,17 +13,15 @@ const meta: Meta<typeof SwitchGroup> = {},parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { SwitchGroup, SwitchItem } from '@crayon-ui/react-ui';\n```",+ },+ },},- decorators: [- (Story) => (- <div style={{ width: "350px" }}>- <Story />- </div>- ),- ],argTypes: {variant: {- control: "select",+ control: "radio",options: ["clear", "card", "sunk"],defaultValue: "clear",description: "The variant of the switch group",@@ -56,7 +54,7 @@ const meta: Meta<typeof SwitchGroup> = {},},},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],};export default meta;@@ -64,7 +62,7 @@ type Story = StoryObj<typeof SwitchGroup>;export const SwitchGroupStory: Story = {args: {- variant: "clear",+ variant: "card",},render: (args) => (<SwitchGroup {...args}>diff --git a/frontend-sdk/packages/react-ui/src/components/SwitchItem/SwitchItem.tsx b/frontend-sdk/packages/react-ui/src/components/SwitchItem/SwitchItem.tsxindex d4cd9c41a..9c1937d07 100644--- a/frontend-sdk/packages/react-ui/src/components/SwitchItem/SwitchItem.tsx+++ b/frontend-sdk/packages/react-ui/src/components/SwitchItem/SwitchItem.tsx@@ -1,7 +1,7 @@import * as Switch from "@radix-ui/react-switch";import clsx from "clsx";import { CSSProperties, forwardRef, ReactNode, useId } from "react";-import { Label } from "../FormControl";+import { Label } from "../Label";interface SwitchItemProps {label?: ReactNode;diff --git a/frontend-sdk/packages/react-ui/src/components/SwitchItem/stories/SwitchItem.stories.tsx b/frontend-sdk/packages/react-ui/src/components/SwitchItem/stories/SwitchItem.stories.tsxindex 8d78d6478..d13c080be 100644--- a/frontend-sdk/packages/react-ui/src/components/SwitchItem/stories/SwitchItem.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/SwitchItem/stories/SwitchItem.stories.tsx@@ -9,7 +9,7 @@ const meta = {parameters: {layout: "centered",},- tags: ["autodocs"],+ tags: ["!dev", "!autodocs"],argTypes: {label: {control: "text",@@ -17,7 +17,6 @@ const meta = {table: {category: "Content",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},disabled: {@@ -58,7 +57,6 @@ const meta = {table: {category: "Property",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},defaultChecked: {@@ -72,7 +70,6 @@ const meta = {table: {category: "Styling",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},style: {@@ -81,7 +78,6 @@ const meta = {table: {category: "Styling",type: { summary: "CSSProperties" },- defaultValue: { summary: "undefined" },},},onChange: {@@ -90,7 +86,6 @@ const meta = {table: {category: "Behavior",type: { summary: "function" },- defaultValue: { summary: "undefined" },},},},diff --git a/frontend-sdk/packages/react-ui/src/components/Table/stories/Table.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Table/stories/Table.stories.tsxindex 13683429d..559bd32e6 100644--- a/frontend-sdk/packages/react-ui/src/components/Table/stories/Table.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Table/stories/Table.stories.tsx@@ -15,7 +15,15 @@ import "../table.scss";const meta: Meta<typeof Table> = {title: "Components/Table",component: Table,- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],+ parameters: {+ docs: {+ description: {+ component:+ "```tsx\nimport { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from '@crayon-ui/react-ui';\n```",+ },+ },+ },};export default meta;diff --git a/frontend-sdk/packages/react-ui/src/components/Tabs/stories/tabs.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Tabs/stories/tabs.stories.tsxindex a5da17398..4714676bf 100644--- a/frontend-sdk/packages/react-ui/src/components/Tabs/stories/tabs.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Tabs/stories/tabs.stories.tsx@@ -1,7 +1,7 @@import type { Meta, StoryObj } from "@storybook/react";-import { Bell, Settings, ShieldCheck, UserRound } from "lucide-react";-import { Header } from "../../Header";-import "../../Header/header.scss";+import { BusFront, PlaneTakeoff, Ship } from "lucide-react";+import { CardHeader } from "../../CardHeader";+import "../../CardHeader/cardHeader.scss";import { IconButton } from "../../IconButton";import "../../IconButton/iconButton.scss";import { Image } from "../../Image";@@ -12,9 +12,15 @@ import "../tabs.scss";const meta: Meta<typeof Tabs> = {title: "Components/Tabs",component: Tabs,- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],parameters: {layout: "centered",+ docs: {+ description: {+ component:+ "```tsx\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from '@crayon-ui/react-ui';\n```",+ },+ },},decorators: [(Story) => (@@ -42,7 +48,6 @@ const meta: Meta<typeof Tabs> = {control: false,description: "The default value of the tabs which is used to determine which tab is selected",table: {- defaultValue: { summary: "undefined" },category: "Behavior",},},@@ -74,33 +79,45 @@ export const Default: Story = {render: (args) => (<Tabs {...args}><TabsList>- <TabsTrigger value="tab1" text="Account" />- <TabsTrigger value="tab2" text="Password" />- <TabsTrigger value="tab3" text="Settings" />+ <TabsTrigger value="tab1" text="Paris" />+ <TabsTrigger value="tab2" text="Tokyo" />+ <TabsTrigger value="tab3" text="New York" /></TabsList><TabsContent value="tab1">- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}+ <CardHeader+ title="Paris, France"+ subtitle="The City of Light"+ actions={[<IconButton variant="tertiary" size="small" icon={<PlaneTakeoff />} />]}+ />+ <Image+ src="https://images.unsplash.com/photo-1502602898657-3e91760cbb34"+ alt="Eiffel Tower in Paris"+ scale="fill"/>- <Image src="https://picsum.photos/700/700" alt="Image" scale="fill" /></TabsContent><TabsContent value="tab2">- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}+ <CardHeader+ title="Tokyo, Japan"+ subtitle="Where Tradition Meets Future"+ actions={[<IconButton variant="tertiary" size="small" icon={<Ship />} />]}+ />+ <Image+ src="https://images.unsplash.com/photo-1536098561742-ca998e48cbcc"+ alt="Tokyo cityscape with Mount Fuji"+ scale="fill"/>- <Image src="https://picsum.photos/700/750" alt="Image" scale="fill" /></TabsContent><TabsContent value="tab3">- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}+ <CardHeader+ title="New York City, USA"+ subtitle="The City That Never Sleeps"+ actions={[<IconButton variant="tertiary" size="small" icon={<BusFront />} />]}+ />+ <Image+ src="https://images.unsplash.com/photo-1496442226666-8d4d0e62e6e9"+ alt="New York City skyline"+ scale="fill"/>- <Image src="https://picsum.photos/700/760" alt="Image" scale="fill" /></TabsContent></Tabs>),@@ -114,33 +131,45 @@ export const WithIcon: Story = {render: (args) => (<Tabs {...args}><TabsList>- <TabsTrigger value="tab1" text="Account" icon={<UserRound />} />- <TabsTrigger value="tab2" text="Password" icon={<ShieldCheck />} />- <TabsTrigger value="tab3" text="Settings" icon={<Settings />} />+ <TabsTrigger value="tab1" text="Venice" icon={<PlaneTakeoff />} />+ <TabsTrigger value="tab2" text="Kyoto" icon={<Ship />} />+ <TabsTrigger value="tab3" text="Dubai" icon={<BusFront />} /></TabsList><TabsContent value="tab1">- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}+ <CardHeader+ title="Venice, Italy"+ subtitle="The Floating City"+ actions={[<IconButton variant="tertiary" size="small" icon={<PlaneTakeoff />} />]}+ />+ <Image+ src="https://images.unsplash.com/photo-1514890547357-a9ee288728e0"+ alt="Venice canals and gondolas"+ scale="fill"/>- <Image src="https://picsum.photos/200/300" alt="Image" scale="fill" /></TabsContent><TabsContent value="tab2">- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}+ <CardHeader+ title="Kyoto, Japan"+ subtitle="The Cultural Heart of Japan"+ actions={[<IconButton variant="tertiary" size="small" icon={<Ship />} />]}+ />+ <Image+ src="https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e"+ alt="Traditional temple in Kyoto"+ scale="fill"/>- <Image src="https://picsum.photos/300/400" alt="Image" scale="fill" /></TabsContent><TabsContent value="tab3">- <Header- title="Title"- subtitle="Subtitle"- actions={[<IconButton variant="tertiary" size="small" icon={<Bell />} />]}+ <CardHeader+ title="Dubai, UAE"+ subtitle="City of the Future"+ actions={[<IconButton variant="tertiary" size="small" icon={<BusFront />} />]}+ />+ <Image+ src="https://images.unsplash.com/photo-1512453979798-5ea266f8880c"+ alt="Dubai skyline"+ scale="fill"/>- <Image src="https://picsum.photos/400/500" alt="Image" scale="fill" /></TabsContent></Tabs>),diff --git a/frontend-sdk/packages/react-ui/src/components/Tag/stories/Tag.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Tag/stories/Tag.stories.tsxindex fa3eec942..56b4e5a3c 100644--- a/frontend-sdk/packages/react-ui/src/components/Tag/stories/Tag.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Tag/stories/Tag.stories.tsx@@ -8,6 +8,11 @@ const meta: Meta<typeof Tag> = {component: Tag,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { Tag } from '@crayon-ui/react-ui';\n```",+ },+ },},argTypes: {text: {@@ -16,7 +21,6 @@ const meta: Meta<typeof Tag> = {table: {category: "Content",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},icon: {@@ -25,7 +29,6 @@ const meta: Meta<typeof Tag> = {table: {category: "Content",type: { summary: "ReactNode" },- defaultValue: { summary: "undefined" },},},className: {@@ -34,7 +37,6 @@ const meta: Meta<typeof Tag> = {table: {category: "Styling",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},styles: {@@ -43,11 +45,10 @@ const meta: Meta<typeof Tag> = {table: {category: "Styling",type: { summary: "CSSProperties" },- defaultValue: { summary: "undefined" },},},},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],};export default meta;diff --git a/frontend-sdk/packages/react-ui/src/components/TagBlock/stories/TagBlock.stories.tsx b/frontend-sdk/packages/react-ui/src/components/TagBlock/stories/TagBlock.stories.tsxindex 73e430eb6..0c18b7f6a 100644--- a/frontend-sdk/packages/react-ui/src/components/TagBlock/stories/TagBlock.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/TagBlock/stories/TagBlock.stories.tsx@@ -8,8 +8,16 @@ import "../TagBlock.scss";const meta: Meta<typeof TagBlock> = {title: "Components/TagBlock",component: TagBlock,+ subcomponents: {+ Tag: Tag as any,+ },parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { TagBlock, Tag } from '@crayon-ui/react-ui';\n```",+ },+ },},argTypes: {children: {@@ -18,7 +26,6 @@ const meta: Meta<typeof TagBlock> = {table: {category: "Content",type: { summary: "ReactElement<typeof Tag> | ReactElement<typeof Tag>[]" },- defaultValue: { summary: "undefined" },},},className: {@@ -27,7 +34,6 @@ const meta: Meta<typeof TagBlock> = {table: {category: "Styling",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},styles: {@@ -36,11 +42,10 @@ const meta: Meta<typeof TagBlock> = {table: {category: "Styling",type: { summary: "CSSProperties" },- defaultValue: { summary: "undefined" },},},},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],};export default meta;diff --git a/frontend-sdk/packages/react-ui/src/components/TextArea/stories/TextArea.stories.tsx b/frontend-sdk/packages/react-ui/src/components/TextArea/stories/TextArea.stories.tsxindex 84d9ccbbf..8bdc89b8e 100644--- a/frontend-sdk/packages/react-ui/src/components/TextArea/stories/TextArea.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/TextArea/stories/TextArea.stories.tsx@@ -7,6 +7,11 @@ const meta = {component: TextArea,parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { TextArea } from '@crayon-ui/react-ui';\n```",+ },+ },},argTypes: {placeholder: {@@ -15,7 +20,6 @@ const meta = {table: {category: "Content",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},rows: {@@ -33,7 +37,6 @@ const meta = {table: {category: "Styling",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},style: {@@ -42,11 +45,10 @@ const meta = {table: {category: "Styling",type: { summary: "CSSProperties" },- defaultValue: { summary: "undefined" },},},},- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],} satisfies Meta<typeof TextArea>;export default meta;diff --git a/frontend-sdk/packages/react-ui/src/components/TextContent/stories/TextContent.stories.tsx b/frontend-sdk/packages/react-ui/src/components/TextContent/stories/TextContent.stories.tsxindex 16de84b97..c6640edc8 100644--- a/frontend-sdk/packages/react-ui/src/components/TextContent/stories/TextContent.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/TextContent/stories/TextContent.stories.tsx@@ -4,9 +4,14 @@ import "../textContent.scss";const meta: Meta<typeof TextContent> = {title: "Components/TextContent",component: TextContent,- tags: ["autodocs"],+ tags: ["!dev", "autodocs"],parameters: {layout: "centered",+ docs: {+ description: {+ component: "```tsx\nimport { TextContent } from '@crayon-ui/react-ui';\n```",+ },+ },},argTypes: {variant: {@@ -25,7 +30,6 @@ const meta: Meta<typeof TextContent> = {table: {category: "Content",type: { summary: "string | ReactNode" },- defaultValue: { summary: "undefined" },},},className: {@@ -34,7 +38,6 @@ const meta: Meta<typeof TextContent> = {table: {category: "Styling",type: { summary: "string" },- defaultValue: { summary: "undefined" },},},style: {@@ -43,7 +46,6 @@ const meta: Meta<typeof TextContent> = {table: {category: "Styling",type: { summary: "CSSProperties" },- defaultValue: { summary: "undefined" },},},},diff --git a/frontend-sdk/packages/react-ui/src/index.ts b/frontend-sdk/packages/react-ui/src/index.tsindex 0121fed8d..494611f84 100644--- a/frontend-sdk/packages/react-ui/src/index.ts+++ b/frontend-sdk/packages/react-ui/src/index.ts@@ -1,14 +1,14 @@export * from "./components/Accordion";export * from "./components/Button";export * from "./components/Card";+export * from "./components/CardFooter";+export * from "./components/CardHeader";export * from "./components/Carousel";export * from "./components/CheckBoxGroup";export * from "./components/CheckBoxItem";export * from "./components/FollowUpBlock";export * from "./components/FollowUpItem";-export * from "./components/Footer";export * from "./components/FormControl";-export * from "./components/Header";export * from "./components/IconButton";export * from "./components/Image";export * from "./components/Input";diff --git a/frontend-sdk/pnpm-lock.yaml b/frontend-sdk/pnpm-lock.yamlindex 397fd395f..eaee583b7 100644--- a/frontend-sdk/pnpm-lock.yaml+++ b/frontend-sdk/pnpm-lock.yaml@@ -135,6 +135,12 @@ importers:'@storybook/addon-styling-webpack':specifier: ^1.0.1+ '@storybook/manager-api':+ specifier: ^8.5.3+ version: 8.5.3([email protected]([email protected]))+ '@storybook/theming':+ specifier: ^8.5.3+ version: 8.5.3([email protected]([email protected]))clsx:specifier: ^2.1.1version: 2.1.1@@ -182,25 +188,28 @@ importers:specifier: ^3.2.4'@storybook/addon-essentials':- specifier: ^8.5.2+ specifier: ^8.5.3'@storybook/addon-interactions':- specifier: ^8.5.2+ specifier: ^8.5.3version: 8.5.3([email protected]([email protected]))'@storybook/addon-onboarding':- specifier: ^8.5.2+ specifier: ^8.5.3+ version: 8.5.3([email protected]([email protected]))+ '@storybook/addon-themes':+ specifier: ^8.5.3version: 8.5.3([email protected]([email protected]))'@storybook/blocks':- specifier: ^8.5.2+ specifier: ^8.5.3version: 8.5.3([email protected]([email protected]))([email protected])([email protected]([email protected]))'@storybook/react':- specifier: ^8.5.2+ specifier: ^8.5.3version: 8.5.3(@storybook/[email protected]([email protected]([email protected])))([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])'@storybook/react-vite':- specifier: ^8.5.2+ specifier: ^8.5.3version: 8.5.3(@storybook/[email protected]([email protected]([email protected])))([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected]))'@storybook/test':- specifier: ^8.5.2+ specifier: ^8.5.3version: 8.5.3([email protected]([email protected]))'@types/lodash-es':specifier: ^4.17.12@@ -248,7 +257,7 @@ importers:specifier: ^15.8.1version: 15.8.1storybook:- specifier: ^8.5.2+ specifier: ^8.5.3version: 8.5.3([email protected])tsx:specifier: ^4.19.2@@ -1572,6 +1581,11 @@ packages:peerDependencies:webpack: ^5.0.0+ '@storybook/[email protected]':+ resolution: {integrity: sha512-wGlrAxU/9WF/CA4EV9VDzWbi4fPKdUweHmAPcnuiU0xG/zEIIL4o2fDr0+9tTctjJfVHgkrsHk74BpP14j+p9g==}+ peerDependencies:+ storybook: ^8.5.3+'@storybook/[email protected]':resolution: {integrity: sha512-AWr9Per9WDrbFtNlbVlj6CiEwKOvOyoBt3bCuMHuRfTdqKwkwInEtyUi4//T8U+c1qs7KJBpsWV2vhIuc5sODg==}peerDependencies:@@ -4659,6 +4673,11 @@ snapshots:transitivePeerDependencies:- storybook+ dependencies:+ storybook: 8.5.3([email protected])+ ts-dedent: 2.2.0+dependencies:storybook: 8.5.3([email protected])