reshaped 3.8.8 → 3.9.0-canary.1
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/bundle.css +1 -1
- package/dist/bundle.js +11 -11
- package/dist/components/Button/Button.module.css +1 -1
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Divider/Divider.js +3 -3
- package/dist/components/Divider/Divider.module.css +1 -1
- package/dist/components/Divider/Divider.types.d.ts +6 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.types.d.ts +1 -1
- package/dist/components/Flyout/Flyout.constants.d.ts +1 -3
- package/dist/components/Flyout/Flyout.constants.js +1 -3
- package/dist/components/Flyout/Flyout.types.d.ts +2 -0
- package/dist/components/Flyout/FlyoutControlled.js +10 -11
- package/dist/components/Flyout/utilities/cooldown.js +1 -2
- package/dist/components/Icon/Icon.module.css +1 -1
- package/dist/components/Popover/Popover.types.d.ts +1 -1
- package/dist/components/Progress/Progress.module.css +1 -1
- package/dist/components/Select/Select.module.css +1 -1
- package/dist/components/Select/Select.types.d.ts +16 -11
- package/dist/components/Select/SelectCustomControlled.js +27 -10
- package/dist/components/Select/SelectGroup.d.ts +4 -0
- package/dist/components/Select/SelectGroup.js +10 -0
- package/dist/components/Select/SelectTrigger.js +1 -1
- package/dist/components/Select/index.d.ts +3 -2
- package/dist/components/Select/index.js +3 -2
- package/dist/components/Tabs/TabsContext.d.ts +1 -1
- package/dist/components/TextArea/TextArea.module.css +1 -1
- package/dist/components/TextArea/TextArea.types.d.ts +1 -1
- package/dist/components/TextField/TextField.module.css +1 -1
- package/dist/components/TextField/TextField.types.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.types.d.ts +1 -1
- package/dist/config/tailwind.d.ts +1 -1
- package/package.json +31 -30
- package/dist/components/Accordion/tests/Accordion.stories.d.ts +0 -44
- package/dist/components/Accordion/tests/Accordion.stories.js +0 -204
- package/dist/components/ActionBar/tests/ActionBar.stories.d.ts +0 -40
- package/dist/components/ActionBar/tests/ActionBar.stories.js +0 -223
- package/dist/components/Actionable/tests/Actionable.stories.d.ts +0 -41
- package/dist/components/Actionable/tests/Actionable.stories.js +0 -220
- package/dist/components/Alert/tests/Alert.stories.d.ts +0 -24
- package/dist/components/Alert/tests/Alert.stories.js +0 -78
- package/dist/components/Autocomplete/tests/Autocomplete.stories.d.ts +0 -32
- package/dist/components/Autocomplete/tests/Autocomplete.stories.js +0 -246
- package/dist/components/Avatar/tests/Avatar.stories.d.ts +0 -31
- package/dist/components/Avatar/tests/Avatar.stories.js +0 -176
- package/dist/components/Badge/tests/Badge.stories.d.ts +0 -55
- package/dist/components/Badge/tests/Badge.stories.js +0 -328
- package/dist/components/Breadcrumbs/tests/Breadcrumbs.stories.d.ts +0 -40
- package/dist/components/Breadcrumbs/tests/Breadcrumbs.stories.js +0 -187
- package/dist/components/Button/tests/Button.stories.d.ts +0 -79
- package/dist/components/Button/tests/Button.stories.js +0 -789
- package/dist/components/Calendar/tests/Calendar.stories.d.ts +0 -29
- package/dist/components/Calendar/tests/Calendar.stories.js +0 -255
- package/dist/components/Card/tests/Card.stories.d.ts +0 -52
- package/dist/components/Card/tests/Card.stories.js +0 -125
- package/dist/components/Carousel/tests/Carousel.stories.d.ts +0 -34
- package/dist/components/Carousel/tests/Carousel.stories.js +0 -224
- package/dist/components/Checkbox/tests/Checkbox.stories.d.ts +0 -30
- package/dist/components/Checkbox/tests/Checkbox.stories.js +0 -171
- package/dist/components/CheckboxGroup/tests/CheckboxGroup.stories.d.ts +0 -19
- package/dist/components/CheckboxGroup/tests/CheckboxGroup.stories.js +0 -83
- package/dist/components/Container/tests/Container.stories.d.ts +0 -24
- package/dist/components/Container/tests/Container.stories.js +0 -75
- package/dist/components/ContextMenu/tests/ContextMenu.stories.d.ts +0 -26
- package/dist/components/ContextMenu/tests/ContextMenu.stories.js +0 -70
- package/dist/components/Dismissible/tests/Dismissible.stories.d.ts +0 -25
- package/dist/components/Dismissible/tests/Dismissible.stories.js +0 -97
- package/dist/components/Divider/tests/Divider.stories.d.ts +0 -18
- package/dist/components/Divider/tests/Divider.stories.js +0 -94
- package/dist/components/DropdownMenu/tests/DropdownMenu.stories.d.ts +0 -53
- package/dist/components/DropdownMenu/tests/DropdownMenu.stories.js +0 -278
- package/dist/components/FileUpload/tests/FileUpload.stories.d.ts +0 -31
- package/dist/components/FileUpload/tests/FileUpload.stories.js +0 -140
- package/dist/components/Flyout/tests/Flyout.stories.d.ts +0 -102
- package/dist/components/Flyout/tests/Flyout.stories.js +0 -708
- package/dist/components/FormControl/tests/FormControl.stories.d.ts +0 -31
- package/dist/components/FormControl/tests/FormControl.stories.js +0 -143
- package/dist/components/Grid/tests/Grid.stories.d.ts +0 -38
- package/dist/components/Grid/tests/Grid.stories.js +0 -245
- package/dist/components/Hidden/tests/Hidden.stories.d.ts +0 -16
- package/dist/components/Hidden/tests/Hidden.stories.js +0 -48
- package/dist/components/HiddenVisually/tests/HiddenVisually.stories.d.ts +0 -16
- package/dist/components/HiddenVisually/tests/HiddenVisually.stories.js +0 -28
- package/dist/components/Hotkey/tests/Hotkey.stories.d.ts +0 -13
- package/dist/components/Hotkey/tests/Hotkey.stories.js +0 -53
- package/dist/components/Icon/tests/Icon.stories.d.ts +0 -25
- package/dist/components/Icon/tests/Icon.stories.js +0 -113
- package/dist/components/Image/tests/Image.stories.d.ts +0 -41
- package/dist/components/Image/tests/Image.stories.js +0 -196
- package/dist/components/Link/tests/Link.stories.d.ts +0 -42
- package/dist/components/Link/tests/Link.stories.js +0 -155
- package/dist/components/Loader/tests/Loader.stories.d.ts +0 -21
- package/dist/components/Loader/tests/Loader.stories.js +0 -68
- package/dist/components/MenuItem/tests/MenuItem.stories.d.ts +0 -59
- package/dist/components/MenuItem/tests/MenuItem.stories.js +0 -236
- package/dist/components/Modal/tests/Modal.stories.d.ts +0 -64
- package/dist/components/Modal/tests/Modal.stories.js +0 -410
- package/dist/components/NumberField/tests/NumberField.stories.d.ts +0 -28
- package/dist/components/NumberField/tests/NumberField.stories.js +0 -258
- package/dist/components/Overlay/tests/Overlay.stories.d.ts +0 -28
- package/dist/components/Overlay/tests/Overlay.stories.js +0 -202
- package/dist/components/Pagination/tests/Pagination.stories.d.ts +0 -24
- package/dist/components/Pagination/tests/Pagination.stories.js +0 -105
- package/dist/components/PinField/tests/PinField.stories.d.ts +0 -34
- package/dist/components/PinField/tests/PinField.stories.js +0 -209
- package/dist/components/Popover/tests/Popover.stories.d.ts +0 -69
- package/dist/components/Popover/tests/Popover.stories.js +0 -340
- package/dist/components/Progress/tests/Progress.stories.d.ts +0 -30
- package/dist/components/Progress/tests/Progress.stories.js +0 -102
- package/dist/components/ProgressIndicator/tests/ProgressIndicator.stories.d.ts +0 -19
- package/dist/components/ProgressIndicator/tests/ProgressIndicator.stories.js +0 -92
- package/dist/components/Radio/tests/Radio.stories.d.ts +0 -35
- package/dist/components/Radio/tests/Radio.stories.js +0 -162
- package/dist/components/RadioGroup/tests/RadioGroup.stories.d.ts +0 -19
- package/dist/components/RadioGroup/tests/RadioGroup.stories.js +0 -77
- package/dist/components/Reshaped/tests/Reshaped.stories.d.ts +0 -34
- package/dist/components/Reshaped/tests/Reshaped.stories.js +0 -108
- package/dist/components/Resizable/tests/Resizable.stories.d.ts +0 -38
- package/dist/components/Resizable/tests/Resizable.stories.js +0 -185
- package/dist/components/Scrim/tests/Scrim.stories.d.ts +0 -20
- package/dist/components/Scrim/tests/Scrim.stories.js +0 -67
- package/dist/components/ScrollArea/tests/ScrollArea.stories.d.ts +0 -37
- package/dist/components/ScrollArea/tests/ScrollArea.stories.js +0 -244
- package/dist/components/Select/SelectOptionGroup.d.ts +0 -4
- package/dist/components/Select/SelectOptionGroup.js +0 -9
- package/dist/components/Select/tests/Select.stories.d.ts +0 -47
- package/dist/components/Select/tests/Select.stories.js +0 -520
- package/dist/components/Skeleton/tests/Skeleton.stories.d.ts +0 -20
- package/dist/components/Skeleton/tests/Skeleton.stories.js +0 -63
- package/dist/components/Slider/tests/Slider.stories.d.ts +0 -47
- package/dist/components/Slider/tests/Slider.stories.js +0 -279
- package/dist/components/Stepper/tests/Stepper.stories.d.ts +0 -31
- package/dist/components/Stepper/tests/Stepper.stories.js +0 -135
- package/dist/components/Switch/tests/Switch.stories.d.ts +0 -22
- package/dist/components/Switch/tests/Switch.stories.js +0 -137
- package/dist/components/Switch/tests/Switch.test.stories.d.ts +0 -13
- package/dist/components/Switch/tests/Switch.test.stories.js +0 -11
- package/dist/components/Table/tests/Table.stories.d.ts +0 -42
- package/dist/components/Table/tests/Table.stories.js +0 -348
- package/dist/components/Tabs/tests/Tabs.stories.d.ts +0 -62
- package/dist/components/Tabs/tests/Tabs.stories.js +0 -539
- package/dist/components/Text/tests/Text.stories.d.ts +0 -48
- package/dist/components/Text/tests/Text.stories.js +0 -201
- package/dist/components/TextArea/tests/TextArea.stories.d.ts +0 -53
- package/dist/components/TextArea/tests/TextArea.stories.js +0 -200
- package/dist/components/TextField/tests/TextField.stories.d.ts +0 -53
- package/dist/components/TextField/tests/TextField.stories.js +0 -237
- package/dist/components/Theme/tests/Theme.stories.d.ts +0 -25
- package/dist/components/Theme/tests/Theme.stories.js +0 -171
- package/dist/components/Timeline/tests/Timeline.stories.d.ts +0 -22
- package/dist/components/Timeline/tests/Timeline.stories.js +0 -86
- package/dist/components/Toast/tests/Toast.stories.d.ts +0 -41
- package/dist/components/Toast/tests/Toast.stories.js +0 -432
- package/dist/components/ToggleButton/tests/ToggleButton.stories.d.ts +0 -27
- package/dist/components/ToggleButton/tests/ToggleButton.stories.js +0 -97
- package/dist/components/ToggleButtonGroup/tests/ToggleButtonGroup.stories.d.ts +0 -27
- package/dist/components/ToggleButtonGroup/tests/ToggleButtonGroup.stories.js +0 -169
- package/dist/components/Tooltip/tests/Tooltip.stories.d.ts +0 -28
- package/dist/components/Tooltip/tests/Tooltip.stories.js +0 -182
- package/dist/components/View/tests/View.stories.d.ts +0 -141
- package/dist/components/View/tests/View.stories.js +0 -1329
- package/dist/components/_private/Portal/tests/Portal.stories.d.ts +0 -6
- package/dist/components/_private/Portal/tests/Portal.stories.js +0 -17
- package/dist/hooks/tests/useDrag.stories.d.ts +0 -31
- package/dist/hooks/tests/useDrag.stories.js +0 -147
- package/dist/hooks/tests/useElementId.stories.d.ts +0 -11
- package/dist/hooks/tests/useElementId.stories.js +0 -23
- package/dist/hooks/tests/useHandlerRef.stories.d.ts +0 -14
- package/dist/hooks/tests/useHandlerRef.stories.js +0 -44
- package/dist/hooks/tests/useHotkeys.stories.d.ts +0 -43
- package/dist/hooks/tests/useHotkeys.stories.js +0 -158
- package/dist/hooks/tests/useKeyboardArrowNavigation.stories.d.ts +0 -15
- package/dist/hooks/tests/useKeyboardArrowNavigation.stories.js +0 -128
- package/dist/hooks/tests/useKeyboardMode.stories.d.ts +0 -11
- package/dist/hooks/tests/useKeyboardMode.stories.js +0 -42
- package/dist/hooks/tests/useOnClickOutside.stories.d.ts +0 -23
- package/dist/hooks/tests/useOnClickOutside.stories.js +0 -111
- package/dist/hooks/tests/useRTL.stories.d.ts +0 -11
- package/dist/hooks/tests/useRTL.stories.js +0 -23
- package/dist/hooks/tests/useResponsiveClientValue.stories.d.ts +0 -18
- package/dist/hooks/tests/useResponsiveClientValue.stories.js +0 -30
- package/dist/hooks/tests/useScrollLock.stories.d.ts +0 -14
- package/dist/hooks/tests/useScrollLock.stories.js +0 -97
- package/dist/hooks/tests/useToggle.stories.d.ts +0 -13
- package/dist/hooks/tests/useToggle.stories.js +0 -59
- package/dist/tests/ShadowDOM.stories.d.ts +0 -6
- package/dist/tests/ShadowDOM.stories.js +0 -110
- package/dist/tests/themes.stories.d.ts +0 -16
- package/dist/tests/themes.stories.js +0 -327
- package/dist/utilities/a11y/tests/TrapFocus.stories.d.ts +0 -14
- package/dist/utilities/a11y/tests/TrapFocus.stories.js +0 -615
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from "@storybook/react-vite";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: import("react").FC<import("./..").FormControlProps> & {
|
|
5
|
-
Label: import("react").FC<import("../FormControl.types").LabelProps>;
|
|
6
|
-
Helper: import("react").FC<import("../FormControl.types").CaptionProps>;
|
|
7
|
-
Error: import("react").FC<import("../FormControl.types").CaptionProps>;
|
|
8
|
-
};
|
|
9
|
-
parameters: {
|
|
10
|
-
iframe: {
|
|
11
|
-
url: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default _default;
|
|
16
|
-
export declare const status: StoryObj;
|
|
17
|
-
export declare const size: {
|
|
18
|
-
name: string;
|
|
19
|
-
render: () => import("react").JSX.Element;
|
|
20
|
-
};
|
|
21
|
-
export declare const disabled: StoryObj;
|
|
22
|
-
export declare const required: {
|
|
23
|
-
name: string;
|
|
24
|
-
render: () => import("react").JSX.Element;
|
|
25
|
-
};
|
|
26
|
-
export declare const composition: {
|
|
27
|
-
name: string;
|
|
28
|
-
render: () => import("react").JSX.Element;
|
|
29
|
-
};
|
|
30
|
-
export declare const className: StoryObj;
|
|
31
|
-
export declare const group: StoryObj;
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { expect } from "storybook/test";
|
|
2
|
-
import { Example } from "../../../utilities/storybook/index.js";
|
|
3
|
-
import FormControl from "../index.js";
|
|
4
|
-
import TextField from "../../TextField/index.js";
|
|
5
|
-
import View from "../../View/index.js";
|
|
6
|
-
import RadioGroup from "../../RadioGroup/index.js";
|
|
7
|
-
import Radio from "../../Radio/index.js";
|
|
8
|
-
export default {
|
|
9
|
-
title: "Utility components/FormControl",
|
|
10
|
-
component: FormControl,
|
|
11
|
-
parameters: {
|
|
12
|
-
iframe: {
|
|
13
|
-
url: "https://reshaped.so/docs/utilities/form-control",
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
export const status = {
|
|
18
|
-
name: "status",
|
|
19
|
-
render: () => (<Example>
|
|
20
|
-
<Example.Item title="status: default">
|
|
21
|
-
<FormControl>
|
|
22
|
-
<FormControl.Label>Label</FormControl.Label>
|
|
23
|
-
<TextField name="name"/>
|
|
24
|
-
<FormControl.Helper>Caption</FormControl.Helper>
|
|
25
|
-
<FormControl.Error>Error</FormControl.Error>
|
|
26
|
-
</FormControl>
|
|
27
|
-
</Example.Item>
|
|
28
|
-
|
|
29
|
-
<Example.Item title="status: error">
|
|
30
|
-
<FormControl hasError>
|
|
31
|
-
<FormControl.Label>Label</FormControl.Label>
|
|
32
|
-
<TextField name="name"/>
|
|
33
|
-
<FormControl.Helper>Caption</FormControl.Helper>
|
|
34
|
-
<FormControl.Error>Error</FormControl.Error>
|
|
35
|
-
</FormControl>
|
|
36
|
-
</Example.Item>
|
|
37
|
-
</Example>),
|
|
38
|
-
play: ({ canvas }) => {
|
|
39
|
-
const inputs = canvas.getAllByRole("textbox");
|
|
40
|
-
expect(inputs[0]).toHaveAccessibleName("Label");
|
|
41
|
-
expect(inputs[0]).toHaveAccessibleDescription("Caption");
|
|
42
|
-
expect(inputs[1]).toHaveAccessibleName("Label");
|
|
43
|
-
expect(inputs[1]).toHaveAccessibleDescription("Caption Error");
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
export const size = {
|
|
47
|
-
name: "size",
|
|
48
|
-
render: () => (<Example>
|
|
49
|
-
<Example.Item title="size: medium">
|
|
50
|
-
<FormControl size="medium">
|
|
51
|
-
<FormControl.Label>Label</FormControl.Label>
|
|
52
|
-
<TextField name="name"/>
|
|
53
|
-
<FormControl.Helper>Caption</FormControl.Helper>
|
|
54
|
-
</FormControl>
|
|
55
|
-
</Example.Item>
|
|
56
|
-
|
|
57
|
-
<Example.Item title="size: large">
|
|
58
|
-
<FormControl size="large">
|
|
59
|
-
<FormControl.Label>Label</FormControl.Label>
|
|
60
|
-
<TextField name="name" size="large"/>
|
|
61
|
-
<FormControl.Helper>Caption</FormControl.Helper>
|
|
62
|
-
</FormControl>
|
|
63
|
-
</Example.Item>
|
|
64
|
-
</Example>),
|
|
65
|
-
};
|
|
66
|
-
export const disabled = {
|
|
67
|
-
name: "disabled",
|
|
68
|
-
render: () => (<Example>
|
|
69
|
-
<Example.Item title="disabled">
|
|
70
|
-
<FormControl disabled>
|
|
71
|
-
<FormControl.Label>Label</FormControl.Label>
|
|
72
|
-
<TextField name="name"/>
|
|
73
|
-
<FormControl.Helper>Caption</FormControl.Helper>
|
|
74
|
-
</FormControl>
|
|
75
|
-
</Example.Item>
|
|
76
|
-
</Example>),
|
|
77
|
-
play: ({ canvas }) => {
|
|
78
|
-
const input = canvas.getByRole("textbox");
|
|
79
|
-
expect(input).toBeDisabled();
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
export const required = {
|
|
83
|
-
name: "required",
|
|
84
|
-
render: () => (<Example>
|
|
85
|
-
<Example.Item title="required">
|
|
86
|
-
<FormControl required>
|
|
87
|
-
<FormControl.Label>Label</FormControl.Label>
|
|
88
|
-
<TextField name="name"/>
|
|
89
|
-
<FormControl.Helper>Caption</FormControl.Helper>
|
|
90
|
-
</FormControl>
|
|
91
|
-
</Example.Item>
|
|
92
|
-
</Example>),
|
|
93
|
-
};
|
|
94
|
-
export const composition = {
|
|
95
|
-
name: "test: composition",
|
|
96
|
-
render: () => (<Example>
|
|
97
|
-
<Example.Item title="horizontal">
|
|
98
|
-
<FormControl>
|
|
99
|
-
<View direction="row" gap={10} align="center">
|
|
100
|
-
<View width="100px">
|
|
101
|
-
<FormControl.Label>Label</FormControl.Label>
|
|
102
|
-
</View>
|
|
103
|
-
<View.Item grow>
|
|
104
|
-
<TextField name="name" placeholder="Enter value"/>
|
|
105
|
-
</View.Item>
|
|
106
|
-
</View>
|
|
107
|
-
</FormControl>
|
|
108
|
-
</Example.Item>
|
|
109
|
-
</Example>),
|
|
110
|
-
};
|
|
111
|
-
export const className = {
|
|
112
|
-
name: "className, attributes",
|
|
113
|
-
render: () => (<FormControl id="test-id" hasError>
|
|
114
|
-
<FormControl.Label>Label</FormControl.Label>
|
|
115
|
-
<TextField name="name"/>
|
|
116
|
-
<FormControl.Helper>Caption</FormControl.Helper>
|
|
117
|
-
<FormControl.Error>Error</FormControl.Error>
|
|
118
|
-
</FormControl>),
|
|
119
|
-
play: async ({ canvas }) => {
|
|
120
|
-
const input = canvas.getByRole("textbox");
|
|
121
|
-
const label = canvas.getByText("Label");
|
|
122
|
-
expect(input).toHaveAttribute("id", "test-id");
|
|
123
|
-
expect(input).toHaveAttribute("aria-describedby", `test-id-caption test-id-error`);
|
|
124
|
-
expect(label).toHaveAttribute("for", "test-id");
|
|
125
|
-
expect(label).toHaveAttribute("id", `test-id-label`);
|
|
126
|
-
},
|
|
127
|
-
};
|
|
128
|
-
export const group = {
|
|
129
|
-
name: "group",
|
|
130
|
-
render: () => (<FormControl group>
|
|
131
|
-
<FormControl.Label>Label</FormControl.Label>
|
|
132
|
-
<RadioGroup name="name">
|
|
133
|
-
<View gap={2}>
|
|
134
|
-
<Radio value="1">One</Radio>
|
|
135
|
-
<Radio value="2">Two</Radio>
|
|
136
|
-
</View>
|
|
137
|
-
</RadioGroup>
|
|
138
|
-
</FormControl>),
|
|
139
|
-
play: async ({ canvas }) => {
|
|
140
|
-
const group = canvas.getByRole("group");
|
|
141
|
-
expect(group).toBeInTheDocument();
|
|
142
|
-
},
|
|
143
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from "@storybook/react-vite";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: {
|
|
5
|
-
<As extends keyof React.JSX.IntrinsicElements = "div">(props: import("./..").GridProps<As>): import("react").JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
} & {
|
|
8
|
-
Item: typeof import("../Grid").GridItem;
|
|
9
|
-
};
|
|
10
|
-
parameters: {
|
|
11
|
-
iframe: {
|
|
12
|
-
url: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
17
|
-
export declare const base: {
|
|
18
|
-
name: string;
|
|
19
|
-
render: () => import("react").JSX.Element;
|
|
20
|
-
};
|
|
21
|
-
export declare const layout: {
|
|
22
|
-
name: string;
|
|
23
|
-
render: () => import("react").JSX.Element;
|
|
24
|
-
};
|
|
25
|
-
export declare const itemLayout: {
|
|
26
|
-
name: string;
|
|
27
|
-
render: () => import("react").JSX.Element;
|
|
28
|
-
};
|
|
29
|
-
export declare const areas: {
|
|
30
|
-
name: string;
|
|
31
|
-
render: () => import("react").JSX.Element;
|
|
32
|
-
};
|
|
33
|
-
export declare const auto: {
|
|
34
|
-
name: string;
|
|
35
|
-
render: () => import("react").JSX.Element;
|
|
36
|
-
};
|
|
37
|
-
export declare const as: StoryObj;
|
|
38
|
-
export declare const className: StoryObj;
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import { expect } from "storybook/test";
|
|
2
|
-
import { Example } from "../../../utilities/storybook/index.js";
|
|
3
|
-
import Grid from "../index.js";
|
|
4
|
-
import View from "../../View/index.js";
|
|
5
|
-
export default {
|
|
6
|
-
title: "Utility components/Grid",
|
|
7
|
-
component: Grid,
|
|
8
|
-
parameters: {
|
|
9
|
-
iframe: {
|
|
10
|
-
url: "https://reshaped.so/docs/utilities/grid",
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
export const base = {
|
|
15
|
-
name: "gap, columnGap, rowGap, align, justify, maxWidth, width, height",
|
|
16
|
-
render: () => (<Example>
|
|
17
|
-
<Example.Item title="gap: 2">
|
|
18
|
-
<Grid gap={2} columns={2}>
|
|
19
|
-
{[1, 2].map((i) => (<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} key={i}>
|
|
20
|
-
{i}
|
|
21
|
-
</View>))}
|
|
22
|
-
</Grid>
|
|
23
|
-
</Example.Item>
|
|
24
|
-
<Example.Item title="columnGap: 2, rowGap: 4">
|
|
25
|
-
<Grid columnGap={2} rowGap={4} columns={2}>
|
|
26
|
-
{[1, 2, 3, 4].map((i) => (<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} key={i}>
|
|
27
|
-
{i}
|
|
28
|
-
</View>))}
|
|
29
|
-
</Grid>
|
|
30
|
-
</Example.Item>
|
|
31
|
-
<Example.Item title="align: center">
|
|
32
|
-
<Grid gap={2} columns={2} align="center">
|
|
33
|
-
<View backgroundColor="neutral-faded" borderRadius="medium" padding={4}>
|
|
34
|
-
1
|
|
35
|
-
</View>
|
|
36
|
-
<View backgroundColor="neutral-faded" borderRadius="medium" padding={8}>
|
|
37
|
-
2
|
|
38
|
-
</View>
|
|
39
|
-
</Grid>
|
|
40
|
-
</Example.Item>
|
|
41
|
-
<Example.Item title="justify: center">
|
|
42
|
-
<Grid gap={2} columns="200px 200px" justify="center">
|
|
43
|
-
<View backgroundColor="neutral-faded" borderRadius="medium" padding={4}>
|
|
44
|
-
1
|
|
45
|
-
</View>
|
|
46
|
-
<View backgroundColor="neutral-faded" borderRadius="medium" padding={4}>
|
|
47
|
-
2
|
|
48
|
-
</View>
|
|
49
|
-
</Grid>
|
|
50
|
-
</Example.Item>
|
|
51
|
-
|
|
52
|
-
<Example.Item title="maxWidth: 400px">
|
|
53
|
-
<Grid gap={2} columns="200px 200px" maxWidth="400px">
|
|
54
|
-
<View backgroundColor="neutral-faded" borderRadius="medium" padding={4}>
|
|
55
|
-
1
|
|
56
|
-
</View>
|
|
57
|
-
<View backgroundColor="neutral-faded" borderRadius="medium" padding={4}>
|
|
58
|
-
2
|
|
59
|
-
</View>
|
|
60
|
-
</Grid>
|
|
61
|
-
</Example.Item>
|
|
62
|
-
|
|
63
|
-
<Example.Item title="width: 400px, height: 200px">
|
|
64
|
-
<Grid gap={2} columns={2} width="400px" height="200px">
|
|
65
|
-
<View backgroundColor="neutral-faded" borderRadius="medium" padding={4}>
|
|
66
|
-
1
|
|
67
|
-
</View>
|
|
68
|
-
<View backgroundColor="neutral-faded" borderRadius="medium" padding={4}>
|
|
69
|
-
2
|
|
70
|
-
</View>
|
|
71
|
-
</Grid>
|
|
72
|
-
</Example.Item>
|
|
73
|
-
</Example>),
|
|
74
|
-
};
|
|
75
|
-
export const layout = {
|
|
76
|
-
name: "rows, columns",
|
|
77
|
-
render: () => (<Example>
|
|
78
|
-
<Example.Item title="simple: 2 rows, 3 columns">
|
|
79
|
-
<Grid gap={4} columns={3} rows={2}>
|
|
80
|
-
{[1, 2, 3, 4, 5].map((i) => (<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} key={i}>
|
|
81
|
-
{i}
|
|
82
|
-
</View>))}
|
|
83
|
-
</Grid>
|
|
84
|
-
</Example.Item>
|
|
85
|
-
<Example.Item title="columns template, 1fr 2fr 1fr">
|
|
86
|
-
<Grid gap={4} columns="1fr 2fr 1fr" rows={2}>
|
|
87
|
-
{[1, 2, 3, 4, 5].map((i) => (<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} key={i}>
|
|
88
|
-
{i}
|
|
89
|
-
</View>))}
|
|
90
|
-
</Grid>
|
|
91
|
-
</Example.Item>
|
|
92
|
-
<Example.Item title="rows template, 1fr 2fr">
|
|
93
|
-
<Grid gap={4} columns={3} rows="1fr 2fr">
|
|
94
|
-
{[1, 2, 3, 4, 5].map((i) => (<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} key={i}>
|
|
95
|
-
{i}
|
|
96
|
-
</View>))}
|
|
97
|
-
</Grid>
|
|
98
|
-
</Example.Item>
|
|
99
|
-
<Example.Item title="responsive">
|
|
100
|
-
<Grid gap={4} columns={{ s: 3, m: "1fr 2fr 1fr" }} rows={{ s: 2, m: "1fr 2fr" }}>
|
|
101
|
-
{[1, 2, 3, 4, 5].map((i) => (<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} key={i}>
|
|
102
|
-
{i}
|
|
103
|
-
</View>))}
|
|
104
|
-
</Grid>
|
|
105
|
-
</Example.Item>
|
|
106
|
-
</Example>),
|
|
107
|
-
};
|
|
108
|
-
export const itemLayout = {
|
|
109
|
-
name: "colStart, colEnd, rowStart, rowEnd",
|
|
110
|
-
render: () => (<Example>
|
|
111
|
-
<Example.Item title="column, start 1, end 3">
|
|
112
|
-
<Grid gap={4} columns={3} rows={2}>
|
|
113
|
-
<Grid.Item colStart={1} colEnd={3}>
|
|
114
|
-
<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} height="100%">
|
|
115
|
-
1
|
|
116
|
-
</View>
|
|
117
|
-
</Grid.Item>
|
|
118
|
-
{[2, 3, 4, 5].map((i) => (<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} key={i}>
|
|
119
|
-
{i}
|
|
120
|
-
</View>))}
|
|
121
|
-
</Grid>
|
|
122
|
-
</Example.Item>
|
|
123
|
-
<Example.Item title="column, start 1, span 2">
|
|
124
|
-
<Grid gap={4} columns={3} rows={2}>
|
|
125
|
-
<Grid.Item colStart={1} colSpan={2}>
|
|
126
|
-
<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} height="100%">
|
|
127
|
-
1
|
|
128
|
-
</View>
|
|
129
|
-
</Grid.Item>
|
|
130
|
-
{[2, 3, 4, 5].map((i) => (<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} key={i}>
|
|
131
|
-
{i}
|
|
132
|
-
</View>))}
|
|
133
|
-
</Grid>
|
|
134
|
-
</Example.Item>
|
|
135
|
-
|
|
136
|
-
<Example.Item title="row, start 1, end 3">
|
|
137
|
-
<Grid gap={4} columns={3} rows={2}>
|
|
138
|
-
<Grid.Item rowStart={1} rowEnd={3}>
|
|
139
|
-
<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} height="100%">
|
|
140
|
-
1
|
|
141
|
-
</View>
|
|
142
|
-
</Grid.Item>
|
|
143
|
-
{[2, 3, 4, 5].map((i) => (<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} key={i}>
|
|
144
|
-
{i}
|
|
145
|
-
</View>))}
|
|
146
|
-
</Grid>
|
|
147
|
-
</Example.Item>
|
|
148
|
-
|
|
149
|
-
<Example.Item title="row, start 1, span 2">
|
|
150
|
-
<Grid gap={4} columns={3} rows={2}>
|
|
151
|
-
<Grid.Item rowStart={1} rowSpan={2}>
|
|
152
|
-
<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} height="100%">
|
|
153
|
-
1
|
|
154
|
-
</View>
|
|
155
|
-
</Grid.Item>
|
|
156
|
-
{[2, 3, 4, 5].map((i) => (<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} key={i}>
|
|
157
|
-
{i}
|
|
158
|
-
</View>))}
|
|
159
|
-
</Grid>
|
|
160
|
-
</Example.Item>
|
|
161
|
-
|
|
162
|
-
<Example.Item title="responsive">
|
|
163
|
-
<Grid gap={4} columns={3} rows={2}>
|
|
164
|
-
<Grid.Item rowStart={1} rowSpan={{ s: 1, m: 2 }} colStart={1} colSpan={{ s: 1, m: 2 }}>
|
|
165
|
-
<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} height="100%">
|
|
166
|
-
1
|
|
167
|
-
</View>
|
|
168
|
-
</Grid.Item>
|
|
169
|
-
{[2, 3, 4, 5].map((i) => (<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} key={i}>
|
|
170
|
-
{i}
|
|
171
|
-
</View>))}
|
|
172
|
-
</Grid>
|
|
173
|
-
</Example.Item>
|
|
174
|
-
</Example>),
|
|
175
|
-
};
|
|
176
|
-
export const areas = {
|
|
177
|
-
name: "areas",
|
|
178
|
-
render: () => (<Example>
|
|
179
|
-
<Example.Item title="simple: 2 rows, 3 columns">
|
|
180
|
-
<Grid gap={4} rows={2} areas={["a .", "a b"]}>
|
|
181
|
-
{["a", "b"].map((area) => (<Grid.Item area={area} key={area}>
|
|
182
|
-
<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} height="100%">
|
|
183
|
-
{area}
|
|
184
|
-
</View>
|
|
185
|
-
</Grid.Item>))}
|
|
186
|
-
</Grid>
|
|
187
|
-
</Example.Item>
|
|
188
|
-
</Example>),
|
|
189
|
-
};
|
|
190
|
-
export const auto = {
|
|
191
|
-
name: "autoFlow, autoColumns, autoRows",
|
|
192
|
-
render: () => (<Example>
|
|
193
|
-
<Example.Item title="auto flow: column">
|
|
194
|
-
<Grid gap={4} autoFlow="column" rows={2} columns={2}>
|
|
195
|
-
{[1, 2, 3].map((i) => (<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} key={i}>
|
|
196
|
-
{i}
|
|
197
|
-
</View>))}
|
|
198
|
-
</Grid>
|
|
199
|
-
</Example.Item>
|
|
200
|
-
<Example.Item title="auto rows">
|
|
201
|
-
<Grid gap={4} autoRows="100px" columns={2}>
|
|
202
|
-
{[1, 2, 3].map((i) => (<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} key={i}>
|
|
203
|
-
{i}
|
|
204
|
-
</View>))}
|
|
205
|
-
</Grid>
|
|
206
|
-
</Example.Item>
|
|
207
|
-
<Example.Item title="auto columns">
|
|
208
|
-
<Grid gap={4} autoColumns="100px" autoFlow="column">
|
|
209
|
-
{[1, 2, 3].map((i) => (<View backgroundColor="neutral-faded" borderRadius="medium" padding={4} key={i}>
|
|
210
|
-
{i}
|
|
211
|
-
</View>))}
|
|
212
|
-
</Grid>
|
|
213
|
-
</Example.Item>
|
|
214
|
-
</Example>),
|
|
215
|
-
};
|
|
216
|
-
export const as = {
|
|
217
|
-
name: "as",
|
|
218
|
-
render: () => (<Grid as="ul">
|
|
219
|
-
<Grid.Item as="li">Content</Grid.Item>
|
|
220
|
-
</Grid>),
|
|
221
|
-
play: ({ canvas }) => {
|
|
222
|
-
const ul = canvas.getByRole("list");
|
|
223
|
-
const li = canvas.getByRole("listitem");
|
|
224
|
-
expect(ul).toBeInTheDocument();
|
|
225
|
-
expect(li).toBeInTheDocument();
|
|
226
|
-
},
|
|
227
|
-
};
|
|
228
|
-
export const className = {
|
|
229
|
-
name: "className, attributes",
|
|
230
|
-
render: () => (<div data-testid="root">
|
|
231
|
-
<Grid className="test-class" attributes={{ id: "test-id" }}>
|
|
232
|
-
<Grid.Item className="test-item-class" attributes={{ id: "test-item-id" }}>
|
|
233
|
-
Content
|
|
234
|
-
</Grid.Item>
|
|
235
|
-
</Grid>
|
|
236
|
-
</div>),
|
|
237
|
-
play: async ({ canvas }) => {
|
|
238
|
-
const root = canvas.getByTestId("root").firstChild;
|
|
239
|
-
const item = root?.firstChild;
|
|
240
|
-
expect(root).toHaveAttribute("id", "test-id");
|
|
241
|
-
expect(root).toHaveClass("test-class");
|
|
242
|
-
expect(item).toHaveAttribute("id", "test-item-id");
|
|
243
|
-
expect(item).toHaveClass("test-item-class");
|
|
244
|
-
},
|
|
245
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from "@storybook/react-vite";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: import("react").FC<import("./..").HiddenProps>;
|
|
5
|
-
parameters: {
|
|
6
|
-
iframe: {
|
|
7
|
-
url: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
12
|
-
export declare const visibility: {
|
|
13
|
-
name: string;
|
|
14
|
-
render: () => import("react").JSX.Element;
|
|
15
|
-
};
|
|
16
|
-
export declare const as: StoryObj;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Example } from "../../../utilities/storybook/index.js";
|
|
2
|
-
import Hidden from "../index.js";
|
|
3
|
-
import { expect } from "storybook/test";
|
|
4
|
-
export default {
|
|
5
|
-
title: "Utility components/Hidden",
|
|
6
|
-
component: Hidden,
|
|
7
|
-
parameters: {
|
|
8
|
-
iframe: {
|
|
9
|
-
url: "https://reshaped.so/docs/utilities/hidden",
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
export const visibility = {
|
|
14
|
-
name: "visibility",
|
|
15
|
-
render: () => (<Example>
|
|
16
|
-
<Example.Item title="hide: always">
|
|
17
|
-
<Hidden hide={true}>Content</Hidden>
|
|
18
|
-
</Example.Item>
|
|
19
|
-
<Example.Item title="shown on s">
|
|
20
|
-
<Hidden hide={{ s: false, m: true }}>Content</Hidden>
|
|
21
|
-
</Example.Item>
|
|
22
|
-
<Example.Item title="shown on l/xl">
|
|
23
|
-
<Hidden hide={{ s: true, l: false }}>Content</Hidden>
|
|
24
|
-
</Example.Item>
|
|
25
|
-
<Example.Item title="shown on m/l/xl">
|
|
26
|
-
<Hidden hide={{ s: true, m: false }}>Content</Hidden>
|
|
27
|
-
</Example.Item>
|
|
28
|
-
<Example.Item title="shown on m">
|
|
29
|
-
<Hidden hide={{ s: true, m: false, l: true }}>Content</Hidden>
|
|
30
|
-
</Example.Item>
|
|
31
|
-
<Example.Item title="shown on s/xl">
|
|
32
|
-
<Hidden hide={{ s: false, m: true, xl: false }}>Content</Hidden>
|
|
33
|
-
</Example.Item>
|
|
34
|
-
<Example.Item title="hide: always, visibility">
|
|
35
|
-
<Hidden hide visibility>
|
|
36
|
-
Content
|
|
37
|
-
</Hidden>
|
|
38
|
-
</Example.Item>
|
|
39
|
-
</Example>),
|
|
40
|
-
};
|
|
41
|
-
export const as = {
|
|
42
|
-
name: "as",
|
|
43
|
-
render: () => <Hidden as="span">Content</Hidden>,
|
|
44
|
-
play: ({ canvas }) => {
|
|
45
|
-
const el = canvas.getByText("Content");
|
|
46
|
-
expect(el.tagName).toEqual("SPAN");
|
|
47
|
-
},
|
|
48
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from "@storybook/react-vite";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: import("react").FC<import("./..").HiddenVisuallyProps>;
|
|
5
|
-
parameters: {
|
|
6
|
-
iframe: {
|
|
7
|
-
url: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
12
|
-
export declare const visibility: {
|
|
13
|
-
name: string;
|
|
14
|
-
render: () => import("react").JSX.Element;
|
|
15
|
-
};
|
|
16
|
-
export declare const children: StoryObj;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Example } from "../../../utilities/storybook/index.js";
|
|
2
|
-
import HiddenVisually from "../index.js";
|
|
3
|
-
import { expect } from "storybook/test";
|
|
4
|
-
export default {
|
|
5
|
-
title: "Utility components/HiddenVisually",
|
|
6
|
-
component: HiddenVisually,
|
|
7
|
-
parameters: {
|
|
8
|
-
iframe: {
|
|
9
|
-
url: "https://reshaped.so/docs/utilities/hidden-visually",
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
export const visibility = {
|
|
14
|
-
name: "visibility",
|
|
15
|
-
render: () => (<Example>
|
|
16
|
-
<Example.Item title="pronounced by screen readers">
|
|
17
|
-
<HiddenVisually>Screen-reader only</HiddenVisually>
|
|
18
|
-
</Example.Item>
|
|
19
|
-
</Example>),
|
|
20
|
-
};
|
|
21
|
-
export const children = {
|
|
22
|
-
name: "children",
|
|
23
|
-
render: () => <HiddenVisually>Content</HiddenVisually>,
|
|
24
|
-
play: ({ canvas }) => {
|
|
25
|
-
const el = canvas.getByText("Content");
|
|
26
|
-
expect(el).toBeInTheDocument();
|
|
27
|
-
},
|
|
28
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from "@storybook/react-vite";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: import("react").FC<import("..").HotkeyProps>;
|
|
5
|
-
parameters: {
|
|
6
|
-
iframe: {
|
|
7
|
-
url: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
12
|
-
export declare const base: () => import("react").JSX.Element;
|
|
13
|
-
export declare const className: StoryObj;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { Example } from "../../../utilities/storybook/index.js";
|
|
2
|
-
import useHotkeys from "../../../hooks/useHotkeys.js";
|
|
3
|
-
import View from "../../View/index.js";
|
|
4
|
-
import TextField from "../../TextField/index.js";
|
|
5
|
-
import Hotkey from "../Hotkey.js";
|
|
6
|
-
import { expect } from "storybook/test";
|
|
7
|
-
export default {
|
|
8
|
-
title: "Components/Hotkey",
|
|
9
|
-
component: Hotkey,
|
|
10
|
-
parameters: {
|
|
11
|
-
iframe: {
|
|
12
|
-
url: "https://reshaped.so/docs/components/hotkey",
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
const Demo = () => {
|
|
17
|
-
const { checkHotkeyState } = useHotkeys({
|
|
18
|
-
"Meta+v": () => {
|
|
19
|
-
console.log("meta v");
|
|
20
|
-
},
|
|
21
|
-
"Mod+v": () => {
|
|
22
|
-
console.log("mod v");
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
return <Hotkey active={checkHotkeyState("k")}>⌘K</Hotkey>;
|
|
26
|
-
};
|
|
27
|
-
export const base = () => (<Example>
|
|
28
|
-
<Example.Item title="Base">
|
|
29
|
-
<Demo />
|
|
30
|
-
</Example.Item>
|
|
31
|
-
<Example.Item title="Active">
|
|
32
|
-
<Hotkey active>⌘K</Hotkey>
|
|
33
|
-
</Example.Item>
|
|
34
|
-
<Example.Item title="Inside input slot">
|
|
35
|
-
<View width="300px">
|
|
36
|
-
<TextField name="hey" endSlot={<Demo />} inputAttributes={{ "aria-label": "hotkey test" }}/>
|
|
37
|
-
</View>
|
|
38
|
-
</Example.Item>
|
|
39
|
-
</Example>);
|
|
40
|
-
export const className = {
|
|
41
|
-
name: "className, attributes",
|
|
42
|
-
render: () => (<div data-testid="root">
|
|
43
|
-
<Hotkey className="test-classname" attributes={{ id: "test-id" }}>
|
|
44
|
-
⌘K
|
|
45
|
-
</Hotkey>
|
|
46
|
-
</div>),
|
|
47
|
-
play: async ({ canvas }) => {
|
|
48
|
-
const root = canvas.getByTestId("root").firstChild;
|
|
49
|
-
expect(root).toHaveClass("test-classname");
|
|
50
|
-
expect(root).toHaveAttribute("id", "test-id");
|
|
51
|
-
expect(root?.tagName).toBe("KBD");
|
|
52
|
-
},
|
|
53
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from "@storybook/react-vite";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: import("react").FC<import("./..").IconProps>;
|
|
5
|
-
parameters: {
|
|
6
|
-
iframe: {
|
|
7
|
-
url: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
12
|
-
export declare const size: {
|
|
13
|
-
name: string;
|
|
14
|
-
render: () => import("react").JSX.Element;
|
|
15
|
-
};
|
|
16
|
-
export declare const color: {
|
|
17
|
-
name: string;
|
|
18
|
-
render: () => import("react").JSX.Element;
|
|
19
|
-
};
|
|
20
|
-
export declare const autoWidth: {
|
|
21
|
-
name: string;
|
|
22
|
-
render: () => import("react").JSX.Element;
|
|
23
|
-
};
|
|
24
|
-
export declare const className: StoryObj;
|
|
25
|
-
export declare const render: StoryObj;
|