@dynamic-mockups/design-system 0.2.14 → 0.2.17
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 +8067 -7208
- 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 +85 -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
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
-
import type { ColorToken } from "./Popover";
|
|
4
3
|
declare const meta: {
|
|
5
4
|
title: string;
|
|
6
|
-
component: React.ForwardRefExoticComponent<import("./
|
|
5
|
+
component: React.ForwardRefExoticComponent<import("./Checkbox").CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
6
|
parameters: {
|
|
8
7
|
layout: string;
|
|
9
8
|
};
|
|
10
9
|
tags: string[];
|
|
11
10
|
argTypes: {
|
|
12
|
-
|
|
13
|
-
control:
|
|
11
|
+
size: {
|
|
12
|
+
control: "select";
|
|
13
|
+
options: string[];
|
|
14
14
|
description: string;
|
|
15
15
|
table: {
|
|
16
16
|
category: string;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
control:
|
|
19
|
+
color: {
|
|
20
|
+
control: "select";
|
|
21
|
+
options: string[];
|
|
21
22
|
description: string;
|
|
22
23
|
table: {
|
|
23
24
|
category: string;
|
|
24
25
|
};
|
|
25
26
|
};
|
|
26
|
-
|
|
27
|
+
variant: {
|
|
27
28
|
control: "select";
|
|
28
29
|
options: string[];
|
|
29
30
|
description: string;
|
|
@@ -31,55 +32,39 @@ declare const meta: {
|
|
|
31
32
|
category: string;
|
|
32
33
|
};
|
|
33
34
|
};
|
|
34
|
-
|
|
35
|
-
control: "
|
|
36
|
-
options: ColorToken[];
|
|
35
|
+
highContrast: {
|
|
36
|
+
control: "boolean";
|
|
37
37
|
description: string;
|
|
38
38
|
table: {
|
|
39
39
|
category: string;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
control: "
|
|
44
|
-
options: ColorToken[];
|
|
42
|
+
disabled: {
|
|
43
|
+
control: "boolean";
|
|
45
44
|
description: string;
|
|
46
45
|
table: {
|
|
47
46
|
category: string;
|
|
48
47
|
};
|
|
49
48
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
mx: {
|
|
56
|
-
table: {
|
|
57
|
-
disable: boolean;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
my: {
|
|
61
|
-
table: {
|
|
62
|
-
disable: boolean;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
mt: {
|
|
66
|
-
table: {
|
|
67
|
-
disable: boolean;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
mr: {
|
|
49
|
+
defaultChecked: {
|
|
50
|
+
control: "boolean";
|
|
51
|
+
description: string;
|
|
71
52
|
table: {
|
|
72
|
-
|
|
53
|
+
category: string;
|
|
73
54
|
};
|
|
74
55
|
};
|
|
75
|
-
|
|
56
|
+
backgroundColorToken: {
|
|
57
|
+
control: false;
|
|
58
|
+
description: string;
|
|
76
59
|
table: {
|
|
77
|
-
|
|
60
|
+
category: string;
|
|
78
61
|
};
|
|
79
62
|
};
|
|
80
|
-
|
|
63
|
+
borderColorToken: {
|
|
64
|
+
control: false;
|
|
65
|
+
description: string;
|
|
81
66
|
table: {
|
|
82
|
-
|
|
67
|
+
category: string;
|
|
83
68
|
};
|
|
84
69
|
};
|
|
85
70
|
};
|
|
@@ -87,8 +72,6 @@ declare const meta: {
|
|
|
87
72
|
export default meta;
|
|
88
73
|
type Story = StoryObj<typeof meta>;
|
|
89
74
|
export declare const Default: Story;
|
|
75
|
+
export declare const Checked: Story;
|
|
90
76
|
export declare const Sizes: Story;
|
|
91
|
-
export declare const
|
|
92
|
-
export declare const ColorPicker: Story;
|
|
93
|
-
export declare const ShareDialog: Story;
|
|
94
|
-
export declare const InteractiveColorPicker: Story;
|
|
77
|
+
export declare const WithCustomColors: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ContextMenu as RadixContextMenu } from "@radix-ui/themes";
|
|
3
|
+
import "./ContextMenu.scss";
|
|
4
|
+
export interface ContextMenuProps {
|
|
5
|
+
trigger: React.ReactNode;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ContextMenu: {
|
|
10
|
+
({ trigger, children, className }: ContextMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
Item: React.ForwardRefExoticComponent<RadixContextMenu.ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Separator: React.ForwardRefExoticComponent<RadixContextMenu.SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Sub: React.FC<RadixContextMenu.SubProps>;
|
|
15
|
+
SubTrigger: React.ForwardRefExoticComponent<RadixContextMenu.SubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
SubContent: React.ForwardRefExoticComponent<RadixContextMenu.SubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: {
|
|
6
|
+
({ trigger, children, className }: import("./ContextMenu").ContextMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
Item: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/context-menu").ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Separator: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/context-menu").SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Sub: React.FC<import("@radix-ui/themes/components/context-menu").SubProps>;
|
|
11
|
+
SubTrigger: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/context-menu").SubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
SubContent: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/context-menu").SubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
};
|
|
14
|
+
parameters: {
|
|
15
|
+
layout: string;
|
|
16
|
+
};
|
|
17
|
+
tags: string[];
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DataList as RadixDataList } from "@radix-ui/themes";
|
|
3
|
+
import "./DataList.scss";
|
|
4
|
+
export interface DataListProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixDataList.Root>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const DataList: React.ForwardRefExoticComponent<DataListProps & React.RefAttributes<HTMLDListElement>> & {
|
|
8
|
+
Item: React.ForwardRefExoticComponent<RadixDataList.ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Label: React.ForwardRefExoticComponent<RadixDataList.LabelProps & React.RefAttributes<HTMLElement>>;
|
|
10
|
+
Value: React.ForwardRefExoticComponent<RadixDataList.ValueProps & React.RefAttributes<HTMLElement>>;
|
|
11
|
+
};
|
|
@@ -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("./DataList").DataListProps & React.RefAttributes<HTMLDListElement>> & {
|
|
6
|
+
Item: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/data-list").ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Label: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/data-list").LabelProps & React.RefAttributes<HTMLElement>>;
|
|
8
|
+
Value: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/data-list").ValueProps & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
};
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: string;
|
|
12
|
+
};
|
|
13
|
+
tags: string[];
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Dialog as RadixDialog } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./Dialog.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface DialogContentProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixDialog.Content>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
textColorToken?: ColorToken;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Dialog: React.FC<RadixDialog.RootProps> & {
|
|
12
|
+
Trigger: React.ForwardRefExoticComponent<RadixDialog.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
Content: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Title: React.ForwardRefExoticComponent<RadixDialog.TitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
15
|
+
Description: React.ForwardRefExoticComponent<RadixDialog.DescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
16
|
+
Close: React.ForwardRefExoticComponent<RadixDialog.CloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
Body: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
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/dialog").RootProps> & {
|
|
6
|
+
Trigger: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/dialog").TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
Content: React.ForwardRefExoticComponent<import("./Dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Title: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/dialog").TitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
9
|
+
Description: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/dialog").DescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
10
|
+
Close: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/dialog").CloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Body: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
};
|
|
15
|
+
parameters: {
|
|
16
|
+
layout: string;
|
|
17
|
+
};
|
|
18
|
+
tags: string[];
|
|
19
|
+
argTypes: {};
|
|
20
|
+
};
|
|
21
|
+
export default meta;
|
|
22
|
+
type Story = StoryObj<typeof meta>;
|
|
23
|
+
export declare const Default: Story;
|
|
24
|
+
export declare const WithForm: Story;
|
|
25
|
+
export declare const WithCustomColors: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DropdownMenu as RadixDropdownMenu } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./DropdownMenu.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface DropdownMenuContentProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixDropdownMenu.Content>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
textColorToken?: ColorToken;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const DropdownMenu: React.FC<RadixDropdownMenu.RootProps> & {
|
|
12
|
+
Trigger: React.ForwardRefExoticComponent<RadixDropdownMenu.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
Content: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Item: React.ForwardRefExoticComponent<RadixDropdownMenu.ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Group: React.ForwardRefExoticComponent<RadixDropdownMenu.GroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
Label: React.ForwardRefExoticComponent<RadixDropdownMenu.LabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Separator: React.ForwardRefExoticComponent<RadixDropdownMenu.SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
Sub: React.FC<RadixDropdownMenu.SubProps>;
|
|
19
|
+
SubTrigger: React.ForwardRefExoticComponent<RadixDropdownMenu.SubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
SubContent: React.ForwardRefExoticComponent<RadixDropdownMenu.SubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
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/dropdown-menu").RootProps> & {
|
|
6
|
+
Trigger: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/dropdown-menu").TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
Content: React.ForwardRefExoticComponent<import("./DropdownMenu").DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Item: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/dropdown-menu").ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Group: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/dropdown-menu").GroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Label: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/dropdown-menu").LabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Separator: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/dropdown-menu").SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Sub: React.FC<import("@radix-ui/themes/components/dropdown-menu").SubProps>;
|
|
13
|
+
SubTrigger: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/dropdown-menu").SubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
SubContent: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/dropdown-menu").SubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
};
|
|
16
|
+
parameters: {
|
|
17
|
+
layout: string;
|
|
18
|
+
};
|
|
19
|
+
tags: string[];
|
|
20
|
+
argTypes: {};
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
type Story = StoryObj<typeof meta>;
|
|
24
|
+
export declare const Default: Story;
|
|
25
|
+
export declare const WithColors: Story;
|
|
26
|
+
export declare const WithCustomColors: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { HoverCard as RadixHoverCard } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./HoverCard.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface HoverCardContentProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixHoverCard.Content>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
textColorToken?: ColorToken;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const HoverCard: React.FC<RadixHoverCard.RootProps> & {
|
|
12
|
+
Trigger: React.ForwardRefExoticComponent<RadixHoverCard.TriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
13
|
+
Content: React.ForwardRefExoticComponent<HoverCardContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
};
|
|
@@ -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.FC<import("@radix-ui/themes/components/hover-card").RootProps> & {
|
|
6
|
+
Trigger: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/hover-card").TriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
7
|
+
Content: React.ForwardRefExoticComponent<import("./HoverCard").HoverCardContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
};
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: string;
|
|
11
|
+
};
|
|
12
|
+
tags: string[];
|
|
13
|
+
argTypes: {};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Default: Story;
|
|
18
|
+
export declare const UserProfile: Story;
|
|
19
|
+
export declare const WithCustomColors: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IconButtonProps as RadixIconButtonProps } from "@radix-ui/themes";
|
|
3
|
+
import "./IconButton.scss";
|
|
4
|
+
export interface IconButtonProps extends Omit<RadixIconButtonProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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("./IconButton").IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const Variants: Story;
|
|
15
|
+
export declare const Sizes: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { InsetProps as RadixInsetProps } from "@radix-ui/themes";
|
|
3
|
+
import "./Inset.scss";
|
|
4
|
+
export interface InsetProps extends Omit<RadixInsetProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Inset: React.ForwardRefExoticComponent<InsetProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
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("./Inset").InsetProps & 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 Default: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Popover as RadixPopover } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./Popover.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface PopoverContentProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixPopover.Content>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
textColorToken?: ColorToken;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Popover: React.FC<RadixPopover.RootProps> & {
|
|
12
|
+
Trigger: React.ForwardRefExoticComponent<RadixPopover.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
Content: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Close: React.ForwardRefExoticComponent<RadixPopover.CloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
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/popover").RootProps> & {
|
|
6
|
+
Trigger: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/popover").TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
Content: React.ForwardRefExoticComponent<import("./Popover").PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Close: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/popover").CloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
};
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: string;
|
|
12
|
+
};
|
|
13
|
+
tags: string[];
|
|
14
|
+
argTypes: {};
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<typeof meta>;
|
|
18
|
+
export declare const Default: Story;
|
|
19
|
+
export declare const WithForm: Story;
|
|
20
|
+
export declare const WithCustomColors: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Progress as RadixProgress } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./Progress.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface ProgressProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixProgress>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
fillColorToken?: ColorToken;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Progress } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./ProgressBar.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface ProgressBarProps extends Omit<React.ComponentPropsWithoutRef<typeof Progress>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
fillColorToken?: ColorToken;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<import("./ProgressBar").ProgressBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
value: {
|
|
12
|
+
control: {
|
|
13
|
+
type: "range";
|
|
14
|
+
min: number;
|
|
15
|
+
max: number;
|
|
16
|
+
step: number;
|
|
17
|
+
};
|
|
18
|
+
description: string;
|
|
19
|
+
table: {
|
|
20
|
+
category: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
size: {
|
|
24
|
+
control: "select";
|
|
25
|
+
options: string[];
|
|
26
|
+
description: string;
|
|
27
|
+
table: {
|
|
28
|
+
category: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
variant: {
|
|
32
|
+
control: "select";
|
|
33
|
+
options: string[];
|
|
34
|
+
description: string;
|
|
35
|
+
table: {
|
|
36
|
+
category: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
backgroundColorToken: {
|
|
40
|
+
control: false;
|
|
41
|
+
description: string;
|
|
42
|
+
table: {
|
|
43
|
+
category: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
fillColorToken: {
|
|
47
|
+
control: false;
|
|
48
|
+
description: string;
|
|
49
|
+
table: {
|
|
50
|
+
category: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export default meta;
|
|
56
|
+
type Story = StoryObj<typeof meta>;
|
|
57
|
+
export declare const Default: Story;
|
|
58
|
+
export declare const Sizes: Story;
|
|
59
|
+
export declare const WithCustomColors: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { RadioGroup as RadixRadioGroup } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./RadioGroup.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface RadioGroupProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixRadioGroup.Root>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
textColorToken?: ColorToken;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>> & {
|
|
12
|
+
Item: React.ForwardRefExoticComponent<RadixRadioGroup.ItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<import("./RadioGroup").RadioGroupProps & React.RefAttributes<HTMLDivElement>> & {
|
|
6
|
+
Item: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/radio-group").ItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
};
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: string;
|
|
10
|
+
};
|
|
11
|
+
tags: string[];
|
|
12
|
+
argTypes: {
|
|
13
|
+
size: {
|
|
14
|
+
control: "select";
|
|
15
|
+
options: string[];
|
|
16
|
+
description: string;
|
|
17
|
+
table: {
|
|
18
|
+
category: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
variant: {
|
|
22
|
+
control: "select";
|
|
23
|
+
options: string[];
|
|
24
|
+
description: string;
|
|
25
|
+
table: {
|
|
26
|
+
category: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
backgroundColorToken: {
|
|
30
|
+
control: false;
|
|
31
|
+
description: string;
|
|
32
|
+
table: {
|
|
33
|
+
category: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
textColorToken: {
|
|
37
|
+
control: false;
|
|
38
|
+
description: string;
|
|
39
|
+
table: {
|
|
40
|
+
category: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export default meta;
|
|
46
|
+
type Story = StoryObj<typeof meta>;
|
|
47
|
+
export declare const Default: Story;
|
|
48
|
+
export declare const Sizes: Story;
|
|
49
|
+
export declare const WithCustomColors: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ScrollArea as RadixScrollArea } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./ScrollArea.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface ScrollAreaProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixScrollArea>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
scrollbarColorToken?: ColorToken;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ScrollArea: React.ForwardRefExoticComponent<ScrollAreaProps & React.RefAttributes<HTMLDivElement>>;
|