@dynamic-mockups/design-system 0.2.15 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/design-system.css +1 -1
- package/dist/index.js +32 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8207 -7370
- package/dist/index.mjs.map +1 -1
- package/dist/src/components/atoms/index.d.ts +46 -25
- package/dist/src/components/atoms/layout/Container/Container.d.ts +24 -0
- package/dist/src/components/atoms/layout/Container/Container.stories.d.ts +31 -0
- package/dist/src/components/atoms/layout/Container/index.d.ts +2 -0
- package/dist/src/components/atoms/layout/Grid/Grid.d.ts +24 -0
- package/dist/src/components/atoms/layout/Grid/Grid.stories.d.ts +46 -0
- package/dist/src/components/atoms/layout/Grid/index.d.ts +2 -0
- package/dist/src/components/atoms/layout/Section/Section.d.ts +24 -0
- package/dist/src/components/atoms/layout/Section/Section.stories.d.ts +31 -0
- package/dist/src/components/atoms/layout/Section/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Blockquote/Blockquote.d.ts +24 -0
- package/dist/src/components/atoms/typography/Blockquote/Blockquote.stories.d.ts +15 -0
- package/dist/src/components/atoms/typography/Blockquote/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Code/Code.d.ts +24 -0
- package/dist/src/components/atoms/typography/Code/Code.stories.d.ts +16 -0
- package/dist/src/components/atoms/typography/Code/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Em/Em.d.ts +20 -0
- package/dist/src/components/atoms/typography/Em/Em.stories.d.ts +14 -0
- package/dist/src/components/atoms/typography/Em/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Kbd/Kbd.d.ts +24 -0
- package/dist/src/components/atoms/typography/Kbd/Kbd.stories.d.ts +16 -0
- package/dist/src/components/atoms/typography/Kbd/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Label/Label.d.ts +14 -0
- package/dist/src/components/atoms/{Label → typography/Label}/Label.stories.d.ts +0 -15
- package/dist/src/components/atoms/typography/Label/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Link/Link.d.ts +10 -0
- package/dist/src/components/atoms/typography/Link/Link.stories.d.ts +15 -0
- package/dist/src/components/atoms/typography/Link/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Quote/Quote.d.ts +20 -0
- package/dist/src/components/atoms/typography/Quote/Quote.stories.d.ts +14 -0
- package/dist/src/components/atoms/typography/Quote/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Strong/Strong.d.ts +20 -0
- package/dist/src/components/atoms/typography/Strong/Strong.stories.d.ts +15 -0
- package/dist/src/components/atoms/typography/Strong/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Accordion/Accordion.d.ts +23 -0
- package/dist/src/components/atoms/ui-components/Accordion/Accordion.stories.d.ts +19 -0
- package/dist/src/components/atoms/ui-components/Accordion/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Alert/Alert.d.ts +49 -0
- package/dist/src/components/atoms/ui-components/Alert/Alert.stories.d.ts +17 -0
- package/dist/src/components/atoms/ui-components/Alert/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/AlertDialog/AlertDialog.d.ts +18 -0
- package/dist/src/components/atoms/ui-components/AlertDialog/AlertDialog.stories.d.ts +23 -0
- package/dist/src/components/atoms/ui-components/AlertDialog/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/AspectRatio/AspectRatio.d.ts +10 -0
- package/dist/src/components/atoms/ui-components/AspectRatio/AspectRatio.stories.d.ts +14 -0
- package/dist/src/components/atoms/ui-components/AspectRatio/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Avatar/Avatar.d.ts +15 -0
- package/dist/src/components/atoms/{Avatar → ui-components/Avatar}/Avatar.stories.d.ts +8 -0
- package/dist/src/components/atoms/ui-components/Avatar/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Badge/Badge.d.ts +12 -0
- package/dist/src/components/atoms/{Select/Select.stories.d.ts → ui-components/Badge/Badge.stories.d.ts} +27 -43
- package/dist/src/components/atoms/ui-components/Badge/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Button/Button.d.ts +16 -0
- package/dist/src/components/atoms/{Switch/Switch.stories.d.ts → ui-components/Button/Button.stories.d.ts} +26 -43
- package/dist/src/components/atoms/ui-components/Button/index.d.ts +3 -0
- package/dist/src/components/atoms/ui-components/Callout/Callout.d.ts +14 -0
- package/dist/src/components/atoms/ui-components/Callout/Callout.stories.d.ts +17 -0
- package/dist/src/components/atoms/ui-components/Callout/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Card/Card.d.ts +12 -0
- package/dist/src/components/atoms/ui-components/Card/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Checkbox/Checkbox.d.ts +11 -0
- package/dist/src/components/atoms/{Popover/Popover.stories.d.ts → ui-components/Checkbox/Checkbox.stories.d.ts} +26 -43
- package/dist/src/components/atoms/ui-components/ContextMenu/ContextMenu.d.ts +17 -0
- package/dist/src/components/atoms/ui-components/ContextMenu/ContextMenu.stories.d.ts +21 -0
- package/dist/src/components/atoms/ui-components/ContextMenu/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/DataList/DataList.d.ts +11 -0
- package/dist/src/components/atoms/ui-components/DataList/DataList.stories.d.ts +17 -0
- package/dist/src/components/atoms/ui-components/DataList/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Dialog/Dialog.d.ts +20 -0
- package/dist/src/components/atoms/ui-components/Dialog/Dialog.stories.d.ts +25 -0
- package/dist/src/components/atoms/ui-components/Dialog/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/DropdownMenu/DropdownMenu.d.ts +21 -0
- package/dist/src/components/atoms/ui-components/DropdownMenu/DropdownMenu.stories.d.ts +26 -0
- package/dist/src/components/atoms/ui-components/DropdownMenu/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/HoverCard/HoverCard.d.ts +14 -0
- package/dist/src/components/atoms/ui-components/HoverCard/HoverCard.stories.d.ts +19 -0
- package/dist/src/components/atoms/ui-components/HoverCard/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/IconButton/IconButton.d.ts +7 -0
- package/dist/src/components/atoms/ui-components/IconButton/IconButton.stories.d.ts +15 -0
- package/dist/src/components/atoms/ui-components/IconButton/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Inset/Inset.d.ts +7 -0
- package/dist/src/components/atoms/ui-components/Inset/Inset.stories.d.ts +13 -0
- package/dist/src/components/atoms/ui-components/Inset/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Popover/Popover.d.ts +15 -0
- package/dist/src/components/atoms/ui-components/Popover/Popover.stories.d.ts +20 -0
- package/dist/src/components/atoms/ui-components/Popover/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Progress/Progress.d.ts +11 -0
- package/dist/src/components/atoms/ui-components/Progress/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/ProgressBar/ProgressBar.d.ts +11 -0
- package/dist/src/components/atoms/ui-components/ProgressBar/ProgressBar.stories.d.ts +59 -0
- package/dist/src/components/atoms/ui-components/ProgressBar/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/RadioGroup/RadioGroup.d.ts +13 -0
- package/dist/src/components/atoms/ui-components/RadioGroup/RadioGroup.stories.d.ts +49 -0
- package/dist/src/components/atoms/ui-components/RadioGroup/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/ScrollArea/ScrollArea.d.ts +10 -0
- package/dist/src/components/atoms/ui-components/ScrollArea/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Select/Select.d.ts +19 -0
- package/dist/src/components/atoms/ui-components/Select/Select.stories.d.ts +23 -0
- package/dist/src/components/atoms/ui-components/Select/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Separator/Separator.d.ts +10 -0
- package/dist/src/components/atoms/ui-components/Separator/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Skeleton/Skeleton.d.ts +7 -0
- package/dist/src/components/atoms/ui-components/Skeleton/Skeleton.stories.d.ts +14 -0
- package/dist/src/components/atoms/ui-components/Skeleton/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Slider/Slider.d.ts +11 -0
- package/dist/src/components/atoms/{Slider → ui-components/Slider}/Slider.stories.d.ts +24 -58
- package/dist/src/components/atoms/ui-components/Slider/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Spinner/Spinner.d.ts +7 -0
- package/dist/src/components/atoms/ui-components/Spinner/Spinner.stories.d.ts +14 -0
- package/dist/src/components/atoms/ui-components/Spinner/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Stepper/Stepper.d.ts +49 -0
- package/dist/src/components/atoms/ui-components/Stepper/Stepper.stories.d.ts +64 -0
- package/dist/src/components/atoms/ui-components/Stepper/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Switch/Switch.d.ts +11 -0
- package/dist/src/components/atoms/ui-components/Switch/Switch.stories.d.ts +61 -0
- package/dist/src/components/atoms/ui-components/Table/Table.d.ts +14 -0
- package/dist/src/components/atoms/ui-components/Table/Table.stories.d.ts +20 -0
- package/dist/src/components/atoms/ui-components/Table/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Tabs/Tabs.d.ts +15 -0
- package/dist/src/components/atoms/ui-components/Tabs/Tabs.stories.d.ts +20 -0
- package/dist/src/components/atoms/ui-components/Tabs/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/TextArea/TextArea.d.ts +12 -0
- package/dist/src/components/atoms/ui-components/TextArea/TextArea.stories.d.ts +68 -0
- package/dist/src/components/atoms/ui-components/TextField/TextField.d.ts +11 -0
- package/dist/src/components/atoms/ui-components/TextField/TextField.stories.d.ts +14 -0
- package/dist/src/components/atoms/ui-components/TextField/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Tooltip/Tooltip.d.ts +11 -0
- package/dist/src/components/atoms/ui-components/Tooltip/Tooltip.stories.d.ts +38 -0
- package/dist/src/components/templates/CancellationFlowTemplate/CancellationFlow.config.d.ts +2 -0
- package/dist/src/components/templates/CancellationFlowTemplate/CancellationFlow.types.d.ts +86 -0
- package/dist/src/components/templates/CancellationFlowTemplate/CancellationFlowManager.d.ts +30 -0
- package/dist/src/components/templates/CancellationFlowTemplate/CancellationFlowTemplate.d.ts +4 -0
- package/dist/src/components/templates/CancellationFlowTemplate/CancellationFlowTemplate.stories.d.ts +47 -0
- package/dist/src/components/templates/CancellationFlowTemplate/index.d.ts +4 -0
- package/dist/src/components/templates/index.d.ts +4 -0
- package/package.json +3 -2
- package/dist/src/components/atoms/Accordion/Accordion.d.ts +0 -52
- package/dist/src/components/atoms/Accordion/Accordion.stories.d.ts +0 -109
- package/dist/src/components/atoms/Accordion/index.d.ts +0 -2
- package/dist/src/components/atoms/AlertDialog/AlertDialog.d.ts +0 -66
- package/dist/src/components/atoms/AlertDialog/AlertDialog.stories.d.ts +0 -144
- package/dist/src/components/atoms/AlertDialog/index.d.ts +0 -2
- package/dist/src/components/atoms/Avatar/Avatar.d.ts +0 -54
- package/dist/src/components/atoms/Avatar/index.d.ts +0 -2
- package/dist/src/components/atoms/Badge/Badge.d.ts +0 -58
- package/dist/src/components/atoms/Badge/Badge.stories.d.ts +0 -706
- package/dist/src/components/atoms/Badge/index.d.ts +0 -2
- package/dist/src/components/atoms/Button/Button.d.ts +0 -63
- package/dist/src/components/atoms/Button/Button.stories.d.ts +0 -763
- package/dist/src/components/atoms/Button/index.d.ts +0 -2
- package/dist/src/components/atoms/Card/Card.d.ts +0 -44
- package/dist/src/components/atoms/Card/index.d.ts +0 -2
- package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +0 -52
- package/dist/src/components/atoms/Checkbox/Checkbox.stories.d.ts +0 -168
- package/dist/src/components/atoms/Dialog/Dialog.d.ts +0 -53
- package/dist/src/components/atoms/Dialog/Dialog.stories.d.ts +0 -122
- package/dist/src/components/atoms/Dialog/index.d.ts +0 -2
- package/dist/src/components/atoms/DropdownMenu/DropdownMenu.d.ts +0 -61
- package/dist/src/components/atoms/DropdownMenu/DropdownMenu.stories.d.ts +0 -109
- package/dist/src/components/atoms/DropdownMenu/index.d.ts +0 -2
- package/dist/src/components/atoms/HoverCard/HoverCard.d.ts +0 -38
- package/dist/src/components/atoms/HoverCard/HoverCard.stories.d.ts +0 -86
- package/dist/src/components/atoms/HoverCard/index.d.ts +0 -2
- package/dist/src/components/atoms/Label/Label.d.ts +0 -19
- package/dist/src/components/atoms/Label/index.d.ts +0 -2
- package/dist/src/components/atoms/Popover/Popover.d.ts +0 -44
- package/dist/src/components/atoms/Popover/index.d.ts +0 -2
- package/dist/src/components/atoms/Progress/Progress.d.ts +0 -45
- package/dist/src/components/atoms/Progress/index.d.ts +0 -2
- package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +0 -66
- package/dist/src/components/atoms/ProgressBar/ProgressBar.stories.d.ts +0 -439
- package/dist/src/components/atoms/ProgressBar/index.d.ts +0 -2
- package/dist/src/components/atoms/RadioGroup/RadioGroup.d.ts +0 -46
- package/dist/src/components/atoms/RadioGroup/RadioGroup.stories.d.ts +0 -104
- package/dist/src/components/atoms/RadioGroup/index.d.ts +0 -2
- package/dist/src/components/atoms/ScrollArea/ScrollArea.d.ts +0 -36
- package/dist/src/components/atoms/ScrollArea/index.d.ts +0 -2
- package/dist/src/components/atoms/Select/Select.d.ts +0 -55
- package/dist/src/components/atoms/Select/index.d.ts +0 -2
- package/dist/src/components/atoms/Separator/Separator.d.ts +0 -17
- package/dist/src/components/atoms/Separator/index.d.ts +0 -2
- package/dist/src/components/atoms/Slider/Slider.d.ts +0 -55
- package/dist/src/components/atoms/Slider/index.d.ts +0 -2
- package/dist/src/components/atoms/Stepper/Stepper.d.ts +0 -100
- package/dist/src/components/atoms/Stepper/Stepper.stories.d.ts +0 -496
- package/dist/src/components/atoms/Stepper/index.d.ts +0 -2
- package/dist/src/components/atoms/Switch/Switch.d.ts +0 -49
- package/dist/src/components/atoms/Tabs/Tabs.d.ts +0 -35
- package/dist/src/components/atoms/Tabs/Tabs.stories.d.ts +0 -83
- package/dist/src/components/atoms/Tabs/index.d.ts +0 -2
- package/dist/src/components/atoms/TextArea/TextArea.d.ts +0 -62
- package/dist/src/components/atoms/TextArea/TextArea.stories.d.ts +0 -178
- package/dist/src/components/atoms/Toast/Toast.d.ts +0 -59
- package/dist/src/components/atoms/Toast/Toast.stories.d.ts +0 -118
- package/dist/src/components/atoms/Toast/index.d.ts +0 -2
- package/dist/src/components/atoms/Toggle/Toggle.d.ts +0 -20
- package/dist/src/components/atoms/Toggle/Toggle.stories.d.ts +0 -118
- package/dist/src/components/atoms/Toggle/index.d.ts +0 -2
- package/dist/src/components/atoms/Tooltip/Tooltip.d.ts +0 -32
- package/dist/src/components/atoms/Tooltip/Tooltip.stories.d.ts +0 -87
- /package/dist/src/components/atoms/{Card → ui-components/Card}/Card.stories.d.ts +0 -0
- /package/dist/src/components/atoms/{Checkbox → ui-components/Checkbox}/index.d.ts +0 -0
- /package/dist/src/components/atoms/{Progress → ui-components/Progress}/Progress.stories.d.ts +0 -0
- /package/dist/src/components/atoms/{ScrollArea → ui-components/ScrollArea}/ScrollArea.stories.d.ts +0 -0
- /package/dist/src/components/atoms/{Separator → ui-components/Separator}/Separator.stories.d.ts +0 -0
- /package/dist/src/components/atoms/{Switch → ui-components/Switch}/index.d.ts +0 -0
- /package/dist/src/components/atoms/{TextArea → ui-components/TextArea}/index.d.ts +0 -0
- /package/dist/src/components/atoms/{Tooltip → ui-components/Tooltip}/index.d.ts +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<import("./Accordion").AccordionProps & React.RefAttributes<HTMLDivElement>> & {
|
|
6
|
+
Item: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-accordion").AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Header: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-accordion").AccordionHeaderProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
8
|
+
Trigger: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-accordion").AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
Content: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-accordion").AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
};
|
|
11
|
+
parameters: {
|
|
12
|
+
layout: string;
|
|
13
|
+
};
|
|
14
|
+
tags: string[];
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<typeof meta>;
|
|
18
|
+
export declare const Default: Story;
|
|
19
|
+
export declare const Multiple: Story;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alert Component
|
|
3
|
+
* A static alert/banner component (different from AlertDialog)
|
|
4
|
+
* Built on top of Radix UI Callout
|
|
5
|
+
*/
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { Callout } from "@radix-ui/themes";
|
|
8
|
+
import { type ColorToken } from "../../../../tokens";
|
|
9
|
+
import "./Alert.scss";
|
|
10
|
+
export type { ColorToken } from "../../../../tokens";
|
|
11
|
+
export type AlertVariant = "soft" | "surface" | "outline";
|
|
12
|
+
export type AlertColor = "blue" | "green" | "yellow" | "red" | "gray";
|
|
13
|
+
export interface AlertProps extends Omit<React.ComponentPropsWithoutRef<typeof Callout.Root>, "size" | "variant" | "color" | "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
14
|
+
/**
|
|
15
|
+
* Alert variant
|
|
16
|
+
* @default 'soft'
|
|
17
|
+
*/
|
|
18
|
+
variant?: AlertVariant;
|
|
19
|
+
/**
|
|
20
|
+
* Alert color
|
|
21
|
+
* @default 'blue'
|
|
22
|
+
*/
|
|
23
|
+
color?: AlertColor;
|
|
24
|
+
/**
|
|
25
|
+
* Alert title
|
|
26
|
+
*/
|
|
27
|
+
title?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Alert message
|
|
30
|
+
*/
|
|
31
|
+
message?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Icon element
|
|
34
|
+
*/
|
|
35
|
+
icon?: React.ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Color token for background
|
|
38
|
+
*/
|
|
39
|
+
backgroundColorToken?: ColorToken;
|
|
40
|
+
/**
|
|
41
|
+
* Color token for text
|
|
42
|
+
*/
|
|
43
|
+
textColorToken?: ColorToken;
|
|
44
|
+
/**
|
|
45
|
+
* Custom className
|
|
46
|
+
*/
|
|
47
|
+
className?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<import("./Alert").AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Info: Story;
|
|
14
|
+
export declare const Success: Story;
|
|
15
|
+
export declare const Warning: Story;
|
|
16
|
+
export declare const Error: Story;
|
|
17
|
+
export declare const Variants: Story;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AlertDialog as RadixAlertDialog } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./AlertDialog.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface AlertDialogContentProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixAlertDialog.Content>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
textColorToken?: ColorToken;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const AlertDialog: React.FC<RadixAlertDialog.RootProps> & {
|
|
12
|
+
Trigger: React.ForwardRefExoticComponent<RadixAlertDialog.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
Content: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Title: React.ForwardRefExoticComponent<RadixAlertDialog.TitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
15
|
+
Description: React.ForwardRefExoticComponent<RadixAlertDialog.DescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
16
|
+
Action: React.ForwardRefExoticComponent<RadixAlertDialog.ActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
Cancel: React.ForwardRefExoticComponent<RadixAlertDialog.CancelProps & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.FC<import("@radix-ui/themes/components/alert-dialog").RootProps> & {
|
|
6
|
+
Trigger: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/alert-dialog").TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
Content: React.ForwardRefExoticComponent<import("./AlertDialog").AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Title: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/alert-dialog").TitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
9
|
+
Description: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/alert-dialog").DescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
10
|
+
Action: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/alert-dialog").ActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
Cancel: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/alert-dialog").CancelProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
};
|
|
13
|
+
parameters: {
|
|
14
|
+
layout: string;
|
|
15
|
+
};
|
|
16
|
+
tags: string[];
|
|
17
|
+
argTypes: {};
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
export declare const Default: Story;
|
|
22
|
+
export declare const CustomButtons: Story;
|
|
23
|
+
export declare const WithCustomColors: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AspectRatio Component
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import type { AspectRatioProps as RadixAspectRatioProps } from "@radix-ui/themes";
|
|
6
|
+
import "./AspectRatio.scss";
|
|
7
|
+
export interface AspectRatioProps extends Omit<RadixAspectRatioProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<import("./AspectRatio").AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Square: Story;
|
|
14
|
+
export declare const Video: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Avatar Component
|
|
3
|
+
* An avatar component that extends Radix UI Avatar with custom color tokens
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { Avatar as RadixAvatar } from "@radix-ui/themes";
|
|
7
|
+
import { type ColorToken } from "../../../../tokens";
|
|
8
|
+
import "./Avatar.scss";
|
|
9
|
+
export type { ColorToken } from "../../../../tokens";
|
|
10
|
+
export interface AvatarProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixAvatar>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
11
|
+
backgroundColorToken?: ColorToken;
|
|
12
|
+
textColorToken?: ColorToken;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Badge as RadixBadge } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./Badge.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface BadgeProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixBadge>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
textColorToken?: ColorToken;
|
|
9
|
+
borderColorToken?: ColorToken;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
-
import type { ColorToken } from "./Select";
|
|
4
3
|
declare const meta: {
|
|
5
4
|
title: string;
|
|
6
|
-
component: React.ForwardRefExoticComponent<import("./
|
|
5
|
+
component: React.ForwardRefExoticComponent<import("./Badge").BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
7
6
|
parameters: {
|
|
8
7
|
layout: string;
|
|
9
8
|
};
|
|
10
9
|
tags: string[];
|
|
11
10
|
argTypes: {
|
|
12
|
-
|
|
13
|
-
control: "
|
|
14
|
-
options: string[];
|
|
11
|
+
children: {
|
|
12
|
+
control: "text";
|
|
15
13
|
description: string;
|
|
16
14
|
table: {
|
|
17
15
|
category: string;
|
|
@@ -25,69 +23,56 @@ declare const meta: {
|
|
|
25
23
|
category: string;
|
|
26
24
|
};
|
|
27
25
|
};
|
|
28
|
-
|
|
29
|
-
control: "
|
|
26
|
+
color: {
|
|
27
|
+
control: "select";
|
|
28
|
+
options: string[];
|
|
30
29
|
description: string;
|
|
31
30
|
table: {
|
|
32
31
|
category: string;
|
|
33
32
|
};
|
|
34
33
|
};
|
|
35
|
-
|
|
36
|
-
control: "
|
|
34
|
+
size: {
|
|
35
|
+
control: "select";
|
|
36
|
+
options: string[];
|
|
37
37
|
description: string;
|
|
38
38
|
table: {
|
|
39
39
|
category: string;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
control: "
|
|
44
|
-
options: ColorToken[];
|
|
42
|
+
highContrast: {
|
|
43
|
+
control: "boolean";
|
|
45
44
|
description: string;
|
|
46
45
|
table: {
|
|
47
46
|
category: string;
|
|
48
47
|
};
|
|
49
48
|
};
|
|
50
|
-
|
|
49
|
+
radius: {
|
|
51
50
|
control: "select";
|
|
52
|
-
options:
|
|
51
|
+
options: string[];
|
|
53
52
|
description: string;
|
|
54
53
|
table: {
|
|
55
54
|
category: string;
|
|
56
55
|
};
|
|
57
56
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
mx: {
|
|
64
|
-
table: {
|
|
65
|
-
disable: boolean;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
my: {
|
|
69
|
-
table: {
|
|
70
|
-
disable: boolean;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
mt: {
|
|
74
|
-
table: {
|
|
75
|
-
disable: boolean;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
mr: {
|
|
57
|
+
backgroundColorToken: {
|
|
58
|
+
control: false;
|
|
59
|
+
description: string;
|
|
79
60
|
table: {
|
|
80
|
-
|
|
61
|
+
category: string;
|
|
81
62
|
};
|
|
82
63
|
};
|
|
83
|
-
|
|
64
|
+
textColorToken: {
|
|
65
|
+
control: false;
|
|
66
|
+
description: string;
|
|
84
67
|
table: {
|
|
85
|
-
|
|
68
|
+
category: string;
|
|
86
69
|
};
|
|
87
70
|
};
|
|
88
|
-
|
|
71
|
+
borderColorToken: {
|
|
72
|
+
control: false;
|
|
73
|
+
description: string;
|
|
89
74
|
table: {
|
|
90
|
-
|
|
75
|
+
category: string;
|
|
91
76
|
};
|
|
92
77
|
};
|
|
93
78
|
};
|
|
@@ -95,7 +80,6 @@ declare const meta: {
|
|
|
95
80
|
export default meta;
|
|
96
81
|
type Story = StoryObj<typeof meta>;
|
|
97
82
|
export declare const Default: Story;
|
|
98
|
-
export declare const Sizes: Story;
|
|
99
83
|
export declare const Variants: Story;
|
|
100
|
-
export declare const
|
|
101
|
-
export declare const
|
|
84
|
+
export declare const Colors: Story;
|
|
85
|
+
export declare const WithCustomColors: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Button Component
|
|
3
|
+
* A flexible button component that extends Radix UI with custom color tokens
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { Button as RadixButton } from "@radix-ui/themes";
|
|
7
|
+
import { type ColorToken } from "../../../../tokens";
|
|
8
|
+
import "./Button.scss";
|
|
9
|
+
export type { ColorToken } from "../../../../tokens";
|
|
10
|
+
export interface ButtonProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixButton>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
11
|
+
backgroundColorToken?: ColorToken;
|
|
12
|
+
textColorToken?: ColorToken;
|
|
13
|
+
borderColorToken?: ColorToken;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,32 +1,24 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
-
import type { ColorToken } from "./
|
|
3
|
+
import type { ColorToken } from "./Button";
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.ForwardRefExoticComponent<import("./
|
|
6
|
+
component: React.ForwardRefExoticComponent<import("./Button").ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: string;
|
|
9
9
|
};
|
|
10
10
|
tags: string[];
|
|
11
11
|
argTypes: {
|
|
12
|
-
|
|
12
|
+
children: {
|
|
13
13
|
control: "text";
|
|
14
14
|
description: string;
|
|
15
15
|
table: {
|
|
16
16
|
category: string;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
control: "text";
|
|
21
|
-
description: string;
|
|
22
|
-
table: {
|
|
23
|
-
category: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
size: {
|
|
19
|
+
variant: {
|
|
27
20
|
control: "select";
|
|
28
21
|
options: string[];
|
|
29
|
-
description: string;
|
|
30
22
|
table: {
|
|
31
23
|
category: string;
|
|
32
24
|
};
|
|
@@ -39,10 +31,9 @@ declare const meta: {
|
|
|
39
31
|
category: string;
|
|
40
32
|
};
|
|
41
33
|
};
|
|
42
|
-
|
|
34
|
+
size: {
|
|
43
35
|
control: "select";
|
|
44
36
|
options: string[];
|
|
45
|
-
description: string;
|
|
46
37
|
table: {
|
|
47
38
|
category: string;
|
|
48
39
|
};
|
|
@@ -62,36 +53,23 @@ declare const meta: {
|
|
|
62
53
|
category: string;
|
|
63
54
|
};
|
|
64
55
|
};
|
|
65
|
-
|
|
66
|
-
control: "
|
|
67
|
-
|
|
68
|
-
table: {
|
|
69
|
-
category: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
defaultChecked: {
|
|
73
|
-
control: "boolean";
|
|
74
|
-
description: string;
|
|
75
|
-
table: {
|
|
76
|
-
category: string;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
checked: {
|
|
80
|
-
control: "boolean";
|
|
56
|
+
backgroundColorToken: {
|
|
57
|
+
control: "select";
|
|
58
|
+
options: ColorToken[];
|
|
81
59
|
description: string;
|
|
82
60
|
table: {
|
|
83
61
|
category: string;
|
|
84
62
|
};
|
|
85
63
|
};
|
|
86
|
-
|
|
64
|
+
textColorToken: {
|
|
87
65
|
control: "select";
|
|
88
|
-
options:
|
|
66
|
+
options: ColorToken[];
|
|
89
67
|
description: string;
|
|
90
68
|
table: {
|
|
91
69
|
category: string;
|
|
92
70
|
};
|
|
93
71
|
};
|
|
94
|
-
|
|
72
|
+
borderColorToken: {
|
|
95
73
|
control: "select";
|
|
96
74
|
options: ColorToken[];
|
|
97
75
|
description: string;
|
|
@@ -99,17 +77,16 @@ declare const meta: {
|
|
|
99
77
|
category: string;
|
|
100
78
|
};
|
|
101
79
|
};
|
|
102
|
-
|
|
103
|
-
control: "
|
|
104
|
-
options: ColorToken[];
|
|
80
|
+
disabled: {
|
|
81
|
+
control: "boolean";
|
|
105
82
|
description: string;
|
|
106
83
|
table: {
|
|
107
84
|
category: string;
|
|
108
85
|
};
|
|
109
86
|
};
|
|
110
|
-
|
|
87
|
+
type: {
|
|
111
88
|
control: "select";
|
|
112
|
-
options:
|
|
89
|
+
options: string[];
|
|
113
90
|
description: string;
|
|
114
91
|
table: {
|
|
115
92
|
category: string;
|
|
@@ -150,16 +127,22 @@ declare const meta: {
|
|
|
150
127
|
disable: boolean;
|
|
151
128
|
};
|
|
152
129
|
};
|
|
130
|
+
asChild: {
|
|
131
|
+
table: {
|
|
132
|
+
disable: true;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
153
135
|
};
|
|
154
136
|
};
|
|
155
137
|
export default meta;
|
|
156
138
|
type Story = StoryObj<typeof meta>;
|
|
157
139
|
export declare const Default: Story;
|
|
158
|
-
export declare const
|
|
159
|
-
export declare const
|
|
160
|
-
export declare const
|
|
140
|
+
export declare const SoftVariant: Story;
|
|
141
|
+
export declare const OutlineVariant: Story;
|
|
142
|
+
export declare const GhostVariant: Story;
|
|
161
143
|
export declare const Disabled: Story;
|
|
162
|
-
export declare const DisabledChecked: Story;
|
|
163
144
|
export declare const Sizes: Story;
|
|
164
|
-
export declare const
|
|
145
|
+
export declare const AllVariants: Story;
|
|
146
|
+
export declare const RadixColors: Story;
|
|
147
|
+
export declare const TokenCustomization: Story;
|
|
165
148
|
export declare const InteractiveColorPicker: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Callout as RadixCallout } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./Callout.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface CalloutProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixCallout.Root>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
textColorToken?: ColorToken;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Callout: React.ForwardRefExoticComponent<CalloutProps & React.RefAttributes<HTMLDivElement>> & {
|
|
12
|
+
Icon: React.ForwardRefExoticComponent<RadixCallout.IconProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Text: React.ForwardRefExoticComponent<RadixCallout.TextProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<import("./Callout").CalloutProps & React.RefAttributes<HTMLDivElement>> & {
|
|
6
|
+
Icon: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/callout").IconProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Text: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/callout").TextProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
};
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: string;
|
|
11
|
+
};
|
|
12
|
+
tags: string[];
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof meta>;
|
|
16
|
+
export declare const Default: Story;
|
|
17
|
+
export declare const Colors: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Card as RadixCard } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./Card.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface CardProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixCard>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
textColorToken?: ColorToken;
|
|
9
|
+
borderColorToken?: ColorToken;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Checkbox as RadixCheckbox } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./Checkbox.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixCheckbox>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
borderColorToken?: ColorToken;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|