@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
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Select as RadixSelect } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./Select.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface SelectTriggerProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixSelect.Trigger>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
textColorToken?: ColorToken;
|
|
9
|
+
borderColorToken?: ColorToken;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const Select: React.FC<RadixSelect.RootProps> & {
|
|
13
|
+
Trigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
Content: React.ForwardRefExoticComponent<RadixSelect.ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Item: React.ForwardRefExoticComponent<RadixSelect.ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
Group: React.ForwardRefExoticComponent<RadixSelect.GroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Label: React.ForwardRefExoticComponent<RadixSelect.LabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
Separator: React.ForwardRefExoticComponent<RadixSelect.SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.FC<import("@radix-ui/themes/components/select").RootProps> & {
|
|
6
|
+
Trigger: React.ForwardRefExoticComponent<import("./Select").SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
Content: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/select").ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Item: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/select").ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Group: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/select").GroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Label: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/select").LabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Separator: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/select").SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
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 Sizes: Story;
|
|
23
|
+
export declare const WithCustomColors: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Separator as RadixSeparator } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./Separator.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface SeparatorProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixSeparator>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
colorToken?: ColorToken;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { SkeletonProps as RadixSkeletonProps } from "@radix-ui/themes";
|
|
3
|
+
import "./Skeleton.scss";
|
|
4
|
+
export interface SkeletonProps extends Omit<RadixSkeletonProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -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("./Skeleton").SkeletonProps & React.RefAttributes<HTMLSpanElement>>;
|
|
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 Card: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Slider as RadixSlider } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./Slider.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface SliderProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixSlider>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
fillColorToken?: ColorToken;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
-
import
|
|
2
|
+
import React from "react";
|
|
4
3
|
declare const meta: {
|
|
5
4
|
title: string;
|
|
6
5
|
component: React.ForwardRefExoticComponent<import("./Slider").SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -9,99 +8,68 @@ declare const meta: {
|
|
|
9
8
|
};
|
|
10
9
|
tags: string[];
|
|
11
10
|
argTypes: {
|
|
12
|
-
size: {
|
|
13
|
-
control: "select";
|
|
14
|
-
options: string[];
|
|
15
|
-
description: string;
|
|
16
|
-
table: {
|
|
17
|
-
category: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
variant: {
|
|
21
|
-
control: "select";
|
|
22
|
-
options: string[];
|
|
23
|
-
description: string;
|
|
24
|
-
table: {
|
|
25
|
-
category: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
11
|
defaultValue: {
|
|
29
|
-
control:
|
|
12
|
+
control: false;
|
|
30
13
|
description: string;
|
|
31
14
|
table: {
|
|
32
15
|
category: string;
|
|
33
16
|
};
|
|
34
17
|
};
|
|
35
18
|
min: {
|
|
36
|
-
control:
|
|
19
|
+
control: {
|
|
20
|
+
type: "number";
|
|
21
|
+
};
|
|
37
22
|
description: string;
|
|
38
23
|
table: {
|
|
39
24
|
category: string;
|
|
40
25
|
};
|
|
41
26
|
};
|
|
42
27
|
max: {
|
|
43
|
-
control:
|
|
28
|
+
control: {
|
|
29
|
+
type: "number";
|
|
30
|
+
};
|
|
44
31
|
description: string;
|
|
45
32
|
table: {
|
|
46
33
|
category: string;
|
|
47
34
|
};
|
|
48
35
|
};
|
|
49
36
|
step: {
|
|
50
|
-
control:
|
|
37
|
+
control: {
|
|
38
|
+
type: "number";
|
|
39
|
+
};
|
|
51
40
|
description: string;
|
|
52
41
|
table: {
|
|
53
42
|
category: string;
|
|
54
43
|
};
|
|
55
44
|
};
|
|
56
|
-
|
|
45
|
+
size: {
|
|
57
46
|
control: "select";
|
|
58
|
-
options:
|
|
47
|
+
options: string[];
|
|
59
48
|
description: string;
|
|
60
49
|
table: {
|
|
61
50
|
category: string;
|
|
62
51
|
};
|
|
63
52
|
};
|
|
64
|
-
|
|
53
|
+
variant: {
|
|
65
54
|
control: "select";
|
|
66
|
-
options:
|
|
55
|
+
options: string[];
|
|
67
56
|
description: string;
|
|
68
57
|
table: {
|
|
69
58
|
category: string;
|
|
70
59
|
};
|
|
71
60
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
mx: {
|
|
78
|
-
table: {
|
|
79
|
-
disable: boolean;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
my: {
|
|
83
|
-
table: {
|
|
84
|
-
disable: boolean;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
mt: {
|
|
88
|
-
table: {
|
|
89
|
-
disable: boolean;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
mr: {
|
|
93
|
-
table: {
|
|
94
|
-
disable: boolean;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
mb: {
|
|
61
|
+
backgroundColorToken: {
|
|
62
|
+
control: false;
|
|
63
|
+
description: string;
|
|
98
64
|
table: {
|
|
99
|
-
|
|
65
|
+
category: string;
|
|
100
66
|
};
|
|
101
67
|
};
|
|
102
|
-
|
|
68
|
+
fillColorToken: {
|
|
69
|
+
control: false;
|
|
70
|
+
description: string;
|
|
103
71
|
table: {
|
|
104
|
-
|
|
72
|
+
category: string;
|
|
105
73
|
};
|
|
106
74
|
};
|
|
107
75
|
};
|
|
@@ -110,6 +78,4 @@ export default meta;
|
|
|
110
78
|
type Story = StoryObj<typeof meta>;
|
|
111
79
|
export declare const Default: Story;
|
|
112
80
|
export declare const Sizes: Story;
|
|
113
|
-
export declare const
|
|
114
|
-
export declare const VolumeControl: Story;
|
|
115
|
-
export declare const InteractiveColorPicker: Story;
|
|
81
|
+
export declare const WithCustomColors: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { SpinnerProps as RadixSpinnerProps } from "@radix-ui/themes";
|
|
3
|
+
import "./Spinner.scss";
|
|
4
|
+
export interface SpinnerProps extends Omit<RadixSpinnerProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -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("./Spinner").SpinnerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
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 Sizes: Story;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stepper Component
|
|
3
|
+
* A step indicator/progress bar with customizable display options
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { type ColorToken } from "../../../../tokens";
|
|
7
|
+
import "./Stepper.scss";
|
|
8
|
+
export type { ColorToken } from "../../../../tokens";
|
|
9
|
+
export type StepperDisplayType = "progress" | "steps" | "both";
|
|
10
|
+
export type StepperTextPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right" | "none";
|
|
11
|
+
export type StepperSize = "1" | "2" | "3";
|
|
12
|
+
export interface StepperProps {
|
|
13
|
+
/**
|
|
14
|
+
* Current step number
|
|
15
|
+
*/
|
|
16
|
+
currentStep: number;
|
|
17
|
+
/**
|
|
18
|
+
* Total number of steps
|
|
19
|
+
*/
|
|
20
|
+
totalSteps: number;
|
|
21
|
+
/**
|
|
22
|
+
* Display type - progress bar, step numbers, or both
|
|
23
|
+
* @default 'both'
|
|
24
|
+
*/
|
|
25
|
+
displayType?: StepperDisplayType;
|
|
26
|
+
/**
|
|
27
|
+
* Position of the step text
|
|
28
|
+
* @default 'top-left'
|
|
29
|
+
*/
|
|
30
|
+
textPosition?: StepperTextPosition;
|
|
31
|
+
/**
|
|
32
|
+
* Size of the progress bar
|
|
33
|
+
* @default '2'
|
|
34
|
+
*/
|
|
35
|
+
size?: StepperSize;
|
|
36
|
+
/**
|
|
37
|
+
* Color token for background
|
|
38
|
+
*/
|
|
39
|
+
backgroundColorToken?: ColorToken;
|
|
40
|
+
/**
|
|
41
|
+
* Color token for fill
|
|
42
|
+
*/
|
|
43
|
+
fillColorToken?: ColorToken;
|
|
44
|
+
/**
|
|
45
|
+
* Custom className
|
|
46
|
+
*/
|
|
47
|
+
className?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,64 @@
|
|
|
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("./Stepper").StepperProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
currentStep: {
|
|
12
|
+
control: {
|
|
13
|
+
type: "number";
|
|
14
|
+
min: number;
|
|
15
|
+
max: number;
|
|
16
|
+
};
|
|
17
|
+
description: string;
|
|
18
|
+
table: {
|
|
19
|
+
category: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
totalSteps: {
|
|
23
|
+
control: {
|
|
24
|
+
type: "number";
|
|
25
|
+
min: number;
|
|
26
|
+
max: number;
|
|
27
|
+
};
|
|
28
|
+
description: string;
|
|
29
|
+
table: {
|
|
30
|
+
category: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
displayType: {
|
|
34
|
+
control: "select";
|
|
35
|
+
options: string[];
|
|
36
|
+
description: string;
|
|
37
|
+
table: {
|
|
38
|
+
category: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
textPosition: {
|
|
42
|
+
control: "select";
|
|
43
|
+
options: string[];
|
|
44
|
+
description: string;
|
|
45
|
+
table: {
|
|
46
|
+
category: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
size: {
|
|
50
|
+
control: "select";
|
|
51
|
+
options: string[];
|
|
52
|
+
description: string;
|
|
53
|
+
table: {
|
|
54
|
+
category: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export default meta;
|
|
60
|
+
type Story = StoryObj<typeof meta>;
|
|
61
|
+
export declare const Default: Story;
|
|
62
|
+
export declare const StepsOnly: Story;
|
|
63
|
+
export declare const ProgressOnly: Story;
|
|
64
|
+
export declare const DifferentPositions: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Switch as RadixSwitch } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./Switch.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface SwitchProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixSwitch>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
borderColorToken?: ColorToken;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,61 @@
|
|
|
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("./Switch").SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
size: {
|
|
12
|
+
control: "select";
|
|
13
|
+
options: string[];
|
|
14
|
+
description: string;
|
|
15
|
+
table: {
|
|
16
|
+
category: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
variant: {
|
|
20
|
+
control: "select";
|
|
21
|
+
options: string[];
|
|
22
|
+
description: string;
|
|
23
|
+
table: {
|
|
24
|
+
category: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
disabled: {
|
|
28
|
+
control: "boolean";
|
|
29
|
+
description: string;
|
|
30
|
+
table: {
|
|
31
|
+
category: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
defaultChecked: {
|
|
35
|
+
control: "boolean";
|
|
36
|
+
description: string;
|
|
37
|
+
table: {
|
|
38
|
+
category: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
backgroundColorToken: {
|
|
42
|
+
control: false;
|
|
43
|
+
description: string;
|
|
44
|
+
table: {
|
|
45
|
+
category: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
borderColorToken: {
|
|
49
|
+
control: false;
|
|
50
|
+
description: string;
|
|
51
|
+
table: {
|
|
52
|
+
category: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export default meta;
|
|
58
|
+
type Story = StoryObj<typeof meta>;
|
|
59
|
+
export declare const Default: Story;
|
|
60
|
+
export declare const Sizes: Story;
|
|
61
|
+
export declare const WithCustomColors: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Table as RadixTable } from "@radix-ui/themes";
|
|
3
|
+
import "./Table.scss";
|
|
4
|
+
export interface TableProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixTable.Root>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>> & {
|
|
8
|
+
Header: React.ForwardRefExoticComponent<RadixTable.HeaderProps & React.RefAttributes<HTMLTableSectionElement>>;
|
|
9
|
+
Body: React.ForwardRefExoticComponent<RadixTable.BodyProps & React.RefAttributes<HTMLTableSectionElement>>;
|
|
10
|
+
Row: React.ForwardRefExoticComponent<RadixTable.RowProps & React.RefAttributes<HTMLTableRowElement>>;
|
|
11
|
+
ColumnHeaderCell: React.ForwardRefExoticComponent<RadixTable.ColumnHeaderCellProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
|
|
12
|
+
Cell: React.ForwardRefExoticComponent<RadixTable.CellProps & React.RefAttributes<HTMLTableDataCellElement>>;
|
|
13
|
+
RowHeaderCell: React.ForwardRefExoticComponent<RadixTable.RowHeaderCellProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
|
|
14
|
+
};
|
|
@@ -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.ForwardRefExoticComponent<import("./Table").TableProps & React.RefAttributes<HTMLTableElement>> & {
|
|
6
|
+
Header: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/table").HeaderProps & React.RefAttributes<HTMLTableSectionElement>>;
|
|
7
|
+
Body: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/table").BodyProps & React.RefAttributes<HTMLTableSectionElement>>;
|
|
8
|
+
Row: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/table").RowProps & React.RefAttributes<HTMLTableRowElement>>;
|
|
9
|
+
ColumnHeaderCell: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/table").ColumnHeaderCellProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
|
|
10
|
+
Cell: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/table").CellProps & React.RefAttributes<HTMLTableDataCellElement>>;
|
|
11
|
+
RowHeaderCell: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/table").RowHeaderCellProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
|
|
12
|
+
};
|
|
13
|
+
parameters: {
|
|
14
|
+
layout: string;
|
|
15
|
+
};
|
|
16
|
+
tags: string[];
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof meta>;
|
|
20
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Tabs as RadixTabs } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./Tabs.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface TabsRootProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixTabs.Root>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
textColorToken?: ColorToken;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Tabs: React.ForwardRefExoticComponent<TabsRootProps & React.RefAttributes<HTMLDivElement>> & {
|
|
12
|
+
List: React.ForwardRefExoticComponent<RadixTabs.ListProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Trigger: React.ForwardRefExoticComponent<RadixTabs.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
Content: React.ForwardRefExoticComponent<RadixTabs.ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
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.ForwardRefExoticComponent<import("./Tabs").TabsRootProps & React.RefAttributes<HTMLDivElement>> & {
|
|
6
|
+
List: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/tabs").ListProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Trigger: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/tabs").TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
Content: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/tabs").ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
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 ProductInfo: Story;
|
|
20
|
+
export declare const WithCustomColors: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TextArea as RadixTextArea } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./TextArea.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface TextAreaProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixTextArea>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
textColorToken?: ColorToken;
|
|
9
|
+
borderColorToken?: ColorToken;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -0,0 +1,68 @@
|
|
|
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("./TextArea").TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
placeholder: {
|
|
12
|
+
control: "text";
|
|
13
|
+
description: string;
|
|
14
|
+
table: {
|
|
15
|
+
category: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
control: "select";
|
|
20
|
+
options: string[];
|
|
21
|
+
description: string;
|
|
22
|
+
table: {
|
|
23
|
+
category: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
variant: {
|
|
27
|
+
control: "select";
|
|
28
|
+
options: string[];
|
|
29
|
+
description: string;
|
|
30
|
+
table: {
|
|
31
|
+
category: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
disabled: {
|
|
35
|
+
control: "boolean";
|
|
36
|
+
description: string;
|
|
37
|
+
table: {
|
|
38
|
+
category: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
backgroundColorToken: {
|
|
42
|
+
control: false;
|
|
43
|
+
description: string;
|
|
44
|
+
table: {
|
|
45
|
+
category: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
textColorToken: {
|
|
49
|
+
control: false;
|
|
50
|
+
description: string;
|
|
51
|
+
table: {
|
|
52
|
+
category: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
borderColorToken: {
|
|
56
|
+
control: false;
|
|
57
|
+
description: string;
|
|
58
|
+
table: {
|
|
59
|
+
category: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export default meta;
|
|
65
|
+
type Story = StoryObj<typeof meta>;
|
|
66
|
+
export declare const Default: Story;
|
|
67
|
+
export declare const Sizes: Story;
|
|
68
|
+
export declare const WithCustomColors: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TextField as RadixTextField } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./TextField.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface TextFieldProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixTextField.Root>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
backgroundColorToken?: ColorToken;
|
|
8
|
+
textColorToken?: ColorToken;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|