@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,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TextArea Component
|
|
3
|
-
* A textarea component that extends Radix UI TextArea
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import type { TextAreaProps as RadixTextAreaProps } from "@radix-ui/themes";
|
|
7
|
-
import { type ColorToken } from "../../../tokens";
|
|
8
|
-
import "./TextArea.scss";
|
|
9
|
-
export type { ColorToken } from "../../../tokens";
|
|
10
|
-
export type TextAreaSize = "1" | "2" | "3";
|
|
11
|
-
export type TextAreaColor = "primary" | "secondary" | "accent" | "success" | "error" | "warning";
|
|
12
|
-
export type TextAreaResize = "none" | "vertical" | "horizontal" | "both";
|
|
13
|
-
export interface TextAreaProps extends Omit<RadixTextAreaProps, "size" | "color" | "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
14
|
-
/**
|
|
15
|
-
* TextArea size
|
|
16
|
-
* @default '2'
|
|
17
|
-
*/
|
|
18
|
-
size?: TextAreaSize;
|
|
19
|
-
/**
|
|
20
|
-
* TextArea color
|
|
21
|
-
* @default 'primary'
|
|
22
|
-
*/
|
|
23
|
-
color?: TextAreaColor;
|
|
24
|
-
/**
|
|
25
|
-
* Label text for the textarea
|
|
26
|
-
*/
|
|
27
|
-
label?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Helper text displayed below the textarea
|
|
30
|
-
*/
|
|
31
|
-
helperText?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Error message - when provided, textarea shows error state
|
|
34
|
-
*/
|
|
35
|
-
error?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Resize behavior
|
|
38
|
-
* @default 'vertical'
|
|
39
|
-
*/
|
|
40
|
-
resize?: TextAreaResize;
|
|
41
|
-
/**
|
|
42
|
-
* Color token for the textarea background
|
|
43
|
-
*/
|
|
44
|
-
backgroundColorToken?: ColorToken;
|
|
45
|
-
/**
|
|
46
|
-
* Color token for the textarea border
|
|
47
|
-
*/
|
|
48
|
-
borderColorToken?: ColorToken;
|
|
49
|
-
/**
|
|
50
|
-
* Color token for the textarea text
|
|
51
|
-
*/
|
|
52
|
-
textColorToken?: ColorToken;
|
|
53
|
-
/**
|
|
54
|
-
* Color token for the placeholder text
|
|
55
|
-
*/
|
|
56
|
-
placeholderColorToken?: ColorToken;
|
|
57
|
-
/**
|
|
58
|
-
* Color token for the focus border
|
|
59
|
-
*/
|
|
60
|
-
focusBorderColorToken?: ColorToken;
|
|
61
|
-
}
|
|
62
|
-
export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
-
import type { ColorToken } from "./TextArea";
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.ForwardRefExoticComponent<import("./TextArea").TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
7
|
-
parameters: {
|
|
8
|
-
layout: string;
|
|
9
|
-
};
|
|
10
|
-
tags: string[];
|
|
11
|
-
argTypes: {
|
|
12
|
-
label: {
|
|
13
|
-
control: "text";
|
|
14
|
-
description: string;
|
|
15
|
-
table: {
|
|
16
|
-
category: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
placeholder: {
|
|
20
|
-
control: "text";
|
|
21
|
-
description: string;
|
|
22
|
-
table: {
|
|
23
|
-
category: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
helperText: {
|
|
27
|
-
control: "text";
|
|
28
|
-
description: string;
|
|
29
|
-
table: {
|
|
30
|
-
category: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
error: {
|
|
34
|
-
control: "text";
|
|
35
|
-
description: string;
|
|
36
|
-
table: {
|
|
37
|
-
category: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
size: {
|
|
41
|
-
control: "select";
|
|
42
|
-
options: string[];
|
|
43
|
-
description: string;
|
|
44
|
-
table: {
|
|
45
|
-
category: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
color: {
|
|
49
|
-
control: "select";
|
|
50
|
-
options: string[];
|
|
51
|
-
description: string;
|
|
52
|
-
table: {
|
|
53
|
-
category: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
variant: {
|
|
57
|
-
control: "select";
|
|
58
|
-
options: string[];
|
|
59
|
-
description: string;
|
|
60
|
-
table: {
|
|
61
|
-
category: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
resize: {
|
|
65
|
-
control: "select";
|
|
66
|
-
options: string[];
|
|
67
|
-
description: string;
|
|
68
|
-
table: {
|
|
69
|
-
category: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
disabled: {
|
|
73
|
-
control: "boolean";
|
|
74
|
-
description: string;
|
|
75
|
-
table: {
|
|
76
|
-
category: string;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
rows: {
|
|
80
|
-
control: "number";
|
|
81
|
-
description: string;
|
|
82
|
-
table: {
|
|
83
|
-
category: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
backgroundColorToken: {
|
|
87
|
-
control: "select";
|
|
88
|
-
options: ColorToken[];
|
|
89
|
-
description: string;
|
|
90
|
-
table: {
|
|
91
|
-
category: string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
borderColorToken: {
|
|
95
|
-
control: "select";
|
|
96
|
-
options: ColorToken[];
|
|
97
|
-
description: string;
|
|
98
|
-
table: {
|
|
99
|
-
category: string;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
textColorToken: {
|
|
103
|
-
control: "select";
|
|
104
|
-
options: ColorToken[];
|
|
105
|
-
description: string;
|
|
106
|
-
table: {
|
|
107
|
-
category: string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
placeholderColorToken: {
|
|
111
|
-
control: "select";
|
|
112
|
-
options: ColorToken[];
|
|
113
|
-
description: string;
|
|
114
|
-
table: {
|
|
115
|
-
category: string;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
focusBorderColorToken: {
|
|
119
|
-
control: "select";
|
|
120
|
-
options: ColorToken[];
|
|
121
|
-
description: string;
|
|
122
|
-
table: {
|
|
123
|
-
category: string;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
m: {
|
|
127
|
-
table: {
|
|
128
|
-
disable: boolean;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
mx: {
|
|
132
|
-
table: {
|
|
133
|
-
disable: boolean;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
my: {
|
|
137
|
-
table: {
|
|
138
|
-
disable: boolean;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
mt: {
|
|
142
|
-
table: {
|
|
143
|
-
disable: boolean;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
mr: {
|
|
147
|
-
table: {
|
|
148
|
-
disable: boolean;
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
mb: {
|
|
152
|
-
table: {
|
|
153
|
-
disable: boolean;
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
ml: {
|
|
157
|
-
table: {
|
|
158
|
-
disable: boolean;
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
export default meta;
|
|
164
|
-
type Story = StoryObj<typeof meta>;
|
|
165
|
-
export declare const Default: Story;
|
|
166
|
-
export declare const WithLabel: Story;
|
|
167
|
-
export declare const WithHelperText: Story;
|
|
168
|
-
export declare const WithError: Story;
|
|
169
|
-
export declare const WithValue: Story;
|
|
170
|
-
export declare const Disabled: Story;
|
|
171
|
-
export declare const DisabledWithValue: Story;
|
|
172
|
-
export declare const Sizes: Story;
|
|
173
|
-
export declare const ResizeOptions: Story;
|
|
174
|
-
export declare const Colors: Story;
|
|
175
|
-
export declare const Variants: Story;
|
|
176
|
-
export declare const CustomRows: Story;
|
|
177
|
-
export declare const LongFormExample: Story;
|
|
178
|
-
export declare const InteractiveColorPicker: Story;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Toast Component
|
|
3
|
-
* A toast notification component using Radix UI Themes Callout for toast-like notifications
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { Callout } from "@radix-ui/themes";
|
|
7
|
-
import { type ColorToken } from "../../../tokens";
|
|
8
|
-
import "./Toast.scss";
|
|
9
|
-
export type { ColorToken } from "../../../tokens";
|
|
10
|
-
export type ToastSize = "1" | "2" | "3";
|
|
11
|
-
export type ToastVariant = "soft" | "surface" | "outline";
|
|
12
|
-
export type ToastColor = "blue" | "green" | "red" | "yellow" | "gray";
|
|
13
|
-
type CalloutRootProps = React.ComponentPropsWithoutRef<typeof Callout.Root>;
|
|
14
|
-
export interface ToastProps extends Omit<CalloutRootProps, "size" | "variant" | "color" | "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
15
|
-
/**
|
|
16
|
-
* Toast size
|
|
17
|
-
* @default '2'
|
|
18
|
-
*/
|
|
19
|
-
size?: ToastSize;
|
|
20
|
-
/**
|
|
21
|
-
* Toast variant
|
|
22
|
-
* @default 'soft'
|
|
23
|
-
*/
|
|
24
|
-
variant?: ToastVariant;
|
|
25
|
-
/**
|
|
26
|
-
* Toast color
|
|
27
|
-
* @default 'blue'
|
|
28
|
-
*/
|
|
29
|
-
color?: ToastColor;
|
|
30
|
-
/**
|
|
31
|
-
* Toast title
|
|
32
|
-
*/
|
|
33
|
-
title?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Toast message
|
|
36
|
-
*/
|
|
37
|
-
message?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Icon element
|
|
40
|
-
*/
|
|
41
|
-
icon?: React.ReactNode;
|
|
42
|
-
/**
|
|
43
|
-
* Color token for toast background
|
|
44
|
-
*/
|
|
45
|
-
backgroundColorToken?: ColorToken;
|
|
46
|
-
/**
|
|
47
|
-
* Color token for toast text
|
|
48
|
-
*/
|
|
49
|
-
textColorToken?: ColorToken;
|
|
50
|
-
/**
|
|
51
|
-
* Custom className
|
|
52
|
-
*/
|
|
53
|
-
className?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Content
|
|
56
|
-
*/
|
|
57
|
-
children?: React.ReactNode;
|
|
58
|
-
}
|
|
59
|
-
export declare const Toast: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
-
import type { ColorToken } from "./Toast";
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.ForwardRefExoticComponent<import("./Toast").ToastProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
parameters: {
|
|
8
|
-
layout: string;
|
|
9
|
-
};
|
|
10
|
-
tags: string[];
|
|
11
|
-
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
|
-
color: {
|
|
29
|
-
control: "select";
|
|
30
|
-
options: string[];
|
|
31
|
-
description: string;
|
|
32
|
-
table: {
|
|
33
|
-
category: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
title: {
|
|
37
|
-
control: "text";
|
|
38
|
-
description: string;
|
|
39
|
-
table: {
|
|
40
|
-
category: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
message: {
|
|
44
|
-
control: "text";
|
|
45
|
-
description: string;
|
|
46
|
-
table: {
|
|
47
|
-
category: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
icon: {
|
|
51
|
-
control: false;
|
|
52
|
-
description: string;
|
|
53
|
-
table: {
|
|
54
|
-
category: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
backgroundColorToken: {
|
|
58
|
-
control: "select";
|
|
59
|
-
options: ColorToken[];
|
|
60
|
-
description: string;
|
|
61
|
-
table: {
|
|
62
|
-
category: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
textColorToken: {
|
|
66
|
-
control: "select";
|
|
67
|
-
options: ColorToken[];
|
|
68
|
-
description: string;
|
|
69
|
-
table: {
|
|
70
|
-
category: string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
m: {
|
|
74
|
-
table: {
|
|
75
|
-
disable: boolean;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
mx: {
|
|
79
|
-
table: {
|
|
80
|
-
disable: boolean;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
my: {
|
|
84
|
-
table: {
|
|
85
|
-
disable: boolean;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
mt: {
|
|
89
|
-
table: {
|
|
90
|
-
disable: boolean;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
mr: {
|
|
94
|
-
table: {
|
|
95
|
-
disable: boolean;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
mb: {
|
|
99
|
-
table: {
|
|
100
|
-
disable: boolean;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
ml: {
|
|
104
|
-
table: {
|
|
105
|
-
disable: boolean;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
export default meta;
|
|
111
|
-
type Story = StoryObj<typeof meta>;
|
|
112
|
-
export declare const Success: Story;
|
|
113
|
-
export declare const Error: Story;
|
|
114
|
-
export declare const Warning: Story;
|
|
115
|
-
export declare const Info: Story;
|
|
116
|
-
export declare const Sizes: Story;
|
|
117
|
-
export declare const Variants: Story;
|
|
118
|
-
export declare const InteractiveColorPicker: Story;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Toggle Component
|
|
3
|
-
* A toggle button component that extends Radix UI Switch as a toggle
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import type { SwitchProps as RadixSwitchProps } from "@radix-ui/themes";
|
|
7
|
-
import { type ColorToken } from "../../../tokens";
|
|
8
|
-
import "./Toggle.scss";
|
|
9
|
-
export type { ColorToken } from "../../../tokens";
|
|
10
|
-
export type ToggleSize = "1" | "2" | "3";
|
|
11
|
-
export type ToggleColor = "primary" | "secondary" | "accent" | "success" | "error" | "warning";
|
|
12
|
-
export interface ToggleProps extends Omit<RadixSwitchProps, "size" | "color" | "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
13
|
-
size?: ToggleSize;
|
|
14
|
-
color?: ToggleColor;
|
|
15
|
-
label?: string;
|
|
16
|
-
backgroundColorToken?: ColorToken;
|
|
17
|
-
activeColorToken?: ColorToken;
|
|
18
|
-
textColorToken?: ColorToken;
|
|
19
|
-
}
|
|
20
|
-
export declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
-
import type { ColorToken } from "./Toggle";
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.ForwardRefExoticComponent<import("./Toggle").ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
parameters: {
|
|
8
|
-
layout: string;
|
|
9
|
-
};
|
|
10
|
-
tags: string[];
|
|
11
|
-
argTypes: {
|
|
12
|
-
label: {
|
|
13
|
-
control: "text";
|
|
14
|
-
description: string;
|
|
15
|
-
table: {
|
|
16
|
-
category: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
size: {
|
|
20
|
-
control: "select";
|
|
21
|
-
options: string[];
|
|
22
|
-
description: string;
|
|
23
|
-
table: {
|
|
24
|
-
category: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
color: {
|
|
28
|
-
control: "select";
|
|
29
|
-
options: string[];
|
|
30
|
-
description: string;
|
|
31
|
-
table: {
|
|
32
|
-
category: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
disabled: {
|
|
36
|
-
control: "boolean";
|
|
37
|
-
description: string;
|
|
38
|
-
table: {
|
|
39
|
-
category: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
defaultChecked: {
|
|
43
|
-
control: "boolean";
|
|
44
|
-
description: string;
|
|
45
|
-
table: {
|
|
46
|
-
category: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
backgroundColorToken: {
|
|
50
|
-
control: "select";
|
|
51
|
-
options: ColorToken[];
|
|
52
|
-
description: string;
|
|
53
|
-
table: {
|
|
54
|
-
category: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
activeColorToken: {
|
|
58
|
-
control: "select";
|
|
59
|
-
options: ColorToken[];
|
|
60
|
-
description: string;
|
|
61
|
-
table: {
|
|
62
|
-
category: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
textColorToken: {
|
|
66
|
-
control: "select";
|
|
67
|
-
options: ColorToken[];
|
|
68
|
-
description: string;
|
|
69
|
-
table: {
|
|
70
|
-
category: string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
m: {
|
|
74
|
-
table: {
|
|
75
|
-
disable: boolean;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
mx: {
|
|
79
|
-
table: {
|
|
80
|
-
disable: boolean;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
my: {
|
|
84
|
-
table: {
|
|
85
|
-
disable: boolean;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
mt: {
|
|
89
|
-
table: {
|
|
90
|
-
disable: boolean;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
mr: {
|
|
94
|
-
table: {
|
|
95
|
-
disable: boolean;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
mb: {
|
|
99
|
-
table: {
|
|
100
|
-
disable: boolean;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
ml: {
|
|
104
|
-
table: {
|
|
105
|
-
disable: boolean;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
export default meta;
|
|
111
|
-
type Story = StoryObj<typeof meta>;
|
|
112
|
-
export declare const Default: Story;
|
|
113
|
-
export declare const WithLabel: Story;
|
|
114
|
-
export declare const Checked: Story;
|
|
115
|
-
export declare const Disabled: Story;
|
|
116
|
-
export declare const Sizes: Story;
|
|
117
|
-
export declare const Colors: Story;
|
|
118
|
-
export declare const InteractiveColorPicker: Story;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tooltip Component
|
|
3
|
-
* A tooltip component that extends Radix UI Tooltip
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import type { TooltipProps as RadixTooltipProps } from "@radix-ui/themes";
|
|
7
|
-
import { type ColorToken } from "../../../tokens";
|
|
8
|
-
import "./Tooltip.scss";
|
|
9
|
-
export type { ColorToken } from "../../../tokens";
|
|
10
|
-
export interface TooltipProps extends Omit<RadixTooltipProps, "children" | "content"> {
|
|
11
|
-
/**
|
|
12
|
-
* Trigger element
|
|
13
|
-
*/
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* Tooltip content
|
|
17
|
-
*/
|
|
18
|
-
content: React.ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* Color token for tooltip background
|
|
21
|
-
*/
|
|
22
|
-
backgroundColorToken?: ColorToken;
|
|
23
|
-
/**
|
|
24
|
-
* Color token for tooltip text
|
|
25
|
-
*/
|
|
26
|
-
textColorToken?: ColorToken;
|
|
27
|
-
/**
|
|
28
|
-
* Custom className
|
|
29
|
-
*/
|
|
30
|
-
className?: string;
|
|
31
|
-
}
|
|
32
|
-
export declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
-
import type { ColorToken } from "./Tooltip";
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.ForwardRefExoticComponent<import("./Tooltip").TooltipProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
parameters: {
|
|
8
|
-
layout: string;
|
|
9
|
-
};
|
|
10
|
-
tags: string[];
|
|
11
|
-
argTypes: {
|
|
12
|
-
children: {
|
|
13
|
-
control: false;
|
|
14
|
-
description: string;
|
|
15
|
-
table: {
|
|
16
|
-
category: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
content: {
|
|
20
|
-
control: "text";
|
|
21
|
-
description: string;
|
|
22
|
-
table: {
|
|
23
|
-
category: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
backgroundColorToken: {
|
|
27
|
-
control: "select";
|
|
28
|
-
options: ColorToken[];
|
|
29
|
-
description: string;
|
|
30
|
-
table: {
|
|
31
|
-
category: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
textColorToken: {
|
|
35
|
-
control: "select";
|
|
36
|
-
options: ColorToken[];
|
|
37
|
-
description: string;
|
|
38
|
-
table: {
|
|
39
|
-
category: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
m: {
|
|
43
|
-
table: {
|
|
44
|
-
disable: boolean;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
mx: {
|
|
48
|
-
table: {
|
|
49
|
-
disable: boolean;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
my: {
|
|
53
|
-
table: {
|
|
54
|
-
disable: boolean;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
mt: {
|
|
58
|
-
table: {
|
|
59
|
-
disable: boolean;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
mr: {
|
|
63
|
-
table: {
|
|
64
|
-
disable: boolean;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
mb: {
|
|
68
|
-
table: {
|
|
69
|
-
disable: boolean;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
ml: {
|
|
73
|
-
table: {
|
|
74
|
-
disable: boolean;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
export default meta;
|
|
80
|
-
type Story = StoryObj<typeof meta>;
|
|
81
|
-
export declare const Default: Story;
|
|
82
|
-
export declare const OnIcon: Story;
|
|
83
|
-
export declare const LongText: Story;
|
|
84
|
-
export declare const OnDisabledButton: Story;
|
|
85
|
-
export declare const MultipleTooltips: Story;
|
|
86
|
-
export declare const WithKeyboardShortcut: Story;
|
|
87
|
-
export declare const InteractiveColorPicker: Story;
|
|
File without changes
|
|
File without changes
|
/package/dist/src/components/atoms/{Progress → ui-components/Progress}/Progress.stories.d.ts
RENAMED
|
File without changes
|
/package/dist/src/components/atoms/{ScrollArea → ui-components/ScrollArea}/ScrollArea.stories.d.ts
RENAMED
|
File without changes
|
/package/dist/src/components/atoms/{Separator → ui-components/Separator}/Separator.stories.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|