@dynamic-mockups/design-system 0.2.14 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/design-system.css +1 -1
- package/dist/index.js +32 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8067 -7208
- package/dist/index.mjs.map +1 -1
- package/dist/src/components/atoms/index.d.ts +46 -25
- package/dist/src/components/atoms/layout/Container/Container.d.ts +24 -0
- package/dist/src/components/atoms/layout/Container/Container.stories.d.ts +31 -0
- package/dist/src/components/atoms/layout/Container/index.d.ts +2 -0
- package/dist/src/components/atoms/layout/Grid/Grid.d.ts +24 -0
- package/dist/src/components/atoms/layout/Grid/Grid.stories.d.ts +46 -0
- package/dist/src/components/atoms/layout/Grid/index.d.ts +2 -0
- package/dist/src/components/atoms/layout/Section/Section.d.ts +24 -0
- package/dist/src/components/atoms/layout/Section/Section.stories.d.ts +31 -0
- package/dist/src/components/atoms/layout/Section/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Blockquote/Blockquote.d.ts +24 -0
- package/dist/src/components/atoms/typography/Blockquote/Blockquote.stories.d.ts +15 -0
- package/dist/src/components/atoms/typography/Blockquote/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Code/Code.d.ts +24 -0
- package/dist/src/components/atoms/typography/Code/Code.stories.d.ts +16 -0
- package/dist/src/components/atoms/typography/Code/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Em/Em.d.ts +20 -0
- package/dist/src/components/atoms/typography/Em/Em.stories.d.ts +14 -0
- package/dist/src/components/atoms/typography/Em/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Kbd/Kbd.d.ts +24 -0
- package/dist/src/components/atoms/typography/Kbd/Kbd.stories.d.ts +16 -0
- package/dist/src/components/atoms/typography/Kbd/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Label/Label.d.ts +14 -0
- package/dist/src/components/atoms/{Label → typography/Label}/Label.stories.d.ts +0 -15
- package/dist/src/components/atoms/typography/Label/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Link/Link.d.ts +10 -0
- package/dist/src/components/atoms/typography/Link/Link.stories.d.ts +15 -0
- package/dist/src/components/atoms/typography/Link/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Quote/Quote.d.ts +20 -0
- package/dist/src/components/atoms/typography/Quote/Quote.stories.d.ts +14 -0
- package/dist/src/components/atoms/typography/Quote/index.d.ts +2 -0
- package/dist/src/components/atoms/typography/Strong/Strong.d.ts +20 -0
- package/dist/src/components/atoms/typography/Strong/Strong.stories.d.ts +15 -0
- package/dist/src/components/atoms/typography/Strong/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Accordion/Accordion.d.ts +23 -0
- package/dist/src/components/atoms/ui-components/Accordion/Accordion.stories.d.ts +19 -0
- package/dist/src/components/atoms/ui-components/Accordion/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Alert/Alert.d.ts +49 -0
- package/dist/src/components/atoms/ui-components/Alert/Alert.stories.d.ts +17 -0
- package/dist/src/components/atoms/ui-components/Alert/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/AlertDialog/AlertDialog.d.ts +18 -0
- package/dist/src/components/atoms/ui-components/AlertDialog/AlertDialog.stories.d.ts +23 -0
- package/dist/src/components/atoms/ui-components/AlertDialog/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/AspectRatio/AspectRatio.d.ts +10 -0
- package/dist/src/components/atoms/ui-components/AspectRatio/AspectRatio.stories.d.ts +14 -0
- package/dist/src/components/atoms/ui-components/AspectRatio/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Avatar/Avatar.d.ts +15 -0
- package/dist/src/components/atoms/{Avatar → ui-components/Avatar}/Avatar.stories.d.ts +8 -0
- package/dist/src/components/atoms/ui-components/Avatar/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Badge/Badge.d.ts +12 -0
- package/dist/src/components/atoms/{Select/Select.stories.d.ts → ui-components/Badge/Badge.stories.d.ts} +27 -43
- package/dist/src/components/atoms/ui-components/Badge/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Button/Button.d.ts +16 -0
- package/dist/src/components/atoms/{Switch/Switch.stories.d.ts → ui-components/Button/Button.stories.d.ts} +26 -43
- package/dist/src/components/atoms/ui-components/Button/index.d.ts +3 -0
- package/dist/src/components/atoms/ui-components/Callout/Callout.d.ts +14 -0
- package/dist/src/components/atoms/ui-components/Callout/Callout.stories.d.ts +17 -0
- package/dist/src/components/atoms/ui-components/Callout/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Card/Card.d.ts +12 -0
- package/dist/src/components/atoms/ui-components/Card/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Checkbox/Checkbox.d.ts +11 -0
- package/dist/src/components/atoms/{Popover/Popover.stories.d.ts → ui-components/Checkbox/Checkbox.stories.d.ts} +26 -43
- package/dist/src/components/atoms/ui-components/ContextMenu/ContextMenu.d.ts +17 -0
- package/dist/src/components/atoms/ui-components/ContextMenu/ContextMenu.stories.d.ts +21 -0
- package/dist/src/components/atoms/ui-components/ContextMenu/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/DataList/DataList.d.ts +11 -0
- package/dist/src/components/atoms/ui-components/DataList/DataList.stories.d.ts +17 -0
- package/dist/src/components/atoms/ui-components/DataList/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Dialog/Dialog.d.ts +20 -0
- package/dist/src/components/atoms/ui-components/Dialog/Dialog.stories.d.ts +25 -0
- package/dist/src/components/atoms/ui-components/Dialog/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/DropdownMenu/DropdownMenu.d.ts +21 -0
- package/dist/src/components/atoms/ui-components/DropdownMenu/DropdownMenu.stories.d.ts +26 -0
- package/dist/src/components/atoms/ui-components/DropdownMenu/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/HoverCard/HoverCard.d.ts +14 -0
- package/dist/src/components/atoms/ui-components/HoverCard/HoverCard.stories.d.ts +19 -0
- package/dist/src/components/atoms/ui-components/HoverCard/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/IconButton/IconButton.d.ts +7 -0
- package/dist/src/components/atoms/ui-components/IconButton/IconButton.stories.d.ts +15 -0
- package/dist/src/components/atoms/ui-components/IconButton/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Inset/Inset.d.ts +7 -0
- package/dist/src/components/atoms/ui-components/Inset/Inset.stories.d.ts +13 -0
- package/dist/src/components/atoms/ui-components/Inset/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Popover/Popover.d.ts +15 -0
- package/dist/src/components/atoms/ui-components/Popover/Popover.stories.d.ts +20 -0
- package/dist/src/components/atoms/ui-components/Popover/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Progress/Progress.d.ts +11 -0
- package/dist/src/components/atoms/ui-components/Progress/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/ProgressBar/ProgressBar.d.ts +11 -0
- package/dist/src/components/atoms/ui-components/ProgressBar/ProgressBar.stories.d.ts +59 -0
- package/dist/src/components/atoms/ui-components/ProgressBar/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/RadioGroup/RadioGroup.d.ts +13 -0
- package/dist/src/components/atoms/ui-components/RadioGroup/RadioGroup.stories.d.ts +49 -0
- package/dist/src/components/atoms/ui-components/RadioGroup/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/ScrollArea/ScrollArea.d.ts +10 -0
- package/dist/src/components/atoms/ui-components/ScrollArea/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Select/Select.d.ts +19 -0
- package/dist/src/components/atoms/ui-components/Select/Select.stories.d.ts +23 -0
- package/dist/src/components/atoms/ui-components/Select/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Separator/Separator.d.ts +10 -0
- package/dist/src/components/atoms/ui-components/Separator/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Skeleton/Skeleton.d.ts +7 -0
- package/dist/src/components/atoms/ui-components/Skeleton/Skeleton.stories.d.ts +14 -0
- package/dist/src/components/atoms/ui-components/Skeleton/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Slider/Slider.d.ts +11 -0
- package/dist/src/components/atoms/{Slider → ui-components/Slider}/Slider.stories.d.ts +24 -58
- package/dist/src/components/atoms/ui-components/Slider/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Spinner/Spinner.d.ts +7 -0
- package/dist/src/components/atoms/ui-components/Spinner/Spinner.stories.d.ts +14 -0
- package/dist/src/components/atoms/ui-components/Spinner/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Stepper/Stepper.d.ts +49 -0
- package/dist/src/components/atoms/ui-components/Stepper/Stepper.stories.d.ts +64 -0
- package/dist/src/components/atoms/ui-components/Stepper/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Switch/Switch.d.ts +11 -0
- package/dist/src/components/atoms/ui-components/Switch/Switch.stories.d.ts +61 -0
- package/dist/src/components/atoms/ui-components/Table/Table.d.ts +14 -0
- package/dist/src/components/atoms/ui-components/Table/Table.stories.d.ts +20 -0
- package/dist/src/components/atoms/ui-components/Table/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Tabs/Tabs.d.ts +15 -0
- package/dist/src/components/atoms/ui-components/Tabs/Tabs.stories.d.ts +20 -0
- package/dist/src/components/atoms/ui-components/Tabs/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/TextArea/TextArea.d.ts +12 -0
- package/dist/src/components/atoms/ui-components/TextArea/TextArea.stories.d.ts +68 -0
- package/dist/src/components/atoms/ui-components/TextField/TextField.d.ts +11 -0
- package/dist/src/components/atoms/ui-components/TextField/TextField.stories.d.ts +14 -0
- package/dist/src/components/atoms/ui-components/TextField/index.d.ts +2 -0
- package/dist/src/components/atoms/ui-components/Tooltip/Tooltip.d.ts +11 -0
- package/dist/src/components/atoms/ui-components/Tooltip/Tooltip.stories.d.ts +38 -0
- package/dist/src/components/templates/CancellationFlowTemplate/CancellationFlow.config.d.ts +2 -0
- package/dist/src/components/templates/CancellationFlowTemplate/CancellationFlow.types.d.ts +85 -0
- package/dist/src/components/templates/CancellationFlowTemplate/CancellationFlowManager.d.ts +30 -0
- package/dist/src/components/templates/CancellationFlowTemplate/CancellationFlowTemplate.d.ts +4 -0
- package/dist/src/components/templates/CancellationFlowTemplate/CancellationFlowTemplate.stories.d.ts +47 -0
- package/dist/src/components/templates/CancellationFlowTemplate/index.d.ts +4 -0
- package/dist/src/components/templates/index.d.ts +4 -0
- package/package.json +3 -2
- package/dist/src/components/atoms/Accordion/Accordion.d.ts +0 -52
- package/dist/src/components/atoms/Accordion/Accordion.stories.d.ts +0 -109
- package/dist/src/components/atoms/Accordion/index.d.ts +0 -2
- package/dist/src/components/atoms/AlertDialog/AlertDialog.d.ts +0 -66
- package/dist/src/components/atoms/AlertDialog/AlertDialog.stories.d.ts +0 -144
- package/dist/src/components/atoms/AlertDialog/index.d.ts +0 -2
- package/dist/src/components/atoms/Avatar/Avatar.d.ts +0 -54
- package/dist/src/components/atoms/Avatar/index.d.ts +0 -2
- package/dist/src/components/atoms/Badge/Badge.d.ts +0 -58
- package/dist/src/components/atoms/Badge/Badge.stories.d.ts +0 -706
- package/dist/src/components/atoms/Badge/index.d.ts +0 -2
- package/dist/src/components/atoms/Button/Button.d.ts +0 -63
- package/dist/src/components/atoms/Button/Button.stories.d.ts +0 -763
- package/dist/src/components/atoms/Button/index.d.ts +0 -2
- package/dist/src/components/atoms/Card/Card.d.ts +0 -44
- package/dist/src/components/atoms/Card/index.d.ts +0 -2
- package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +0 -52
- package/dist/src/components/atoms/Checkbox/Checkbox.stories.d.ts +0 -168
- package/dist/src/components/atoms/Dialog/Dialog.d.ts +0 -53
- package/dist/src/components/atoms/Dialog/Dialog.stories.d.ts +0 -122
- package/dist/src/components/atoms/Dialog/index.d.ts +0 -2
- package/dist/src/components/atoms/DropdownMenu/DropdownMenu.d.ts +0 -61
- package/dist/src/components/atoms/DropdownMenu/DropdownMenu.stories.d.ts +0 -109
- package/dist/src/components/atoms/DropdownMenu/index.d.ts +0 -2
- package/dist/src/components/atoms/HoverCard/HoverCard.d.ts +0 -38
- package/dist/src/components/atoms/HoverCard/HoverCard.stories.d.ts +0 -86
- package/dist/src/components/atoms/HoverCard/index.d.ts +0 -2
- package/dist/src/components/atoms/Label/Label.d.ts +0 -19
- package/dist/src/components/atoms/Label/index.d.ts +0 -2
- package/dist/src/components/atoms/Popover/Popover.d.ts +0 -44
- package/dist/src/components/atoms/Popover/index.d.ts +0 -2
- package/dist/src/components/atoms/Progress/Progress.d.ts +0 -45
- package/dist/src/components/atoms/Progress/index.d.ts +0 -2
- package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +0 -66
- package/dist/src/components/atoms/ProgressBar/ProgressBar.stories.d.ts +0 -439
- package/dist/src/components/atoms/ProgressBar/index.d.ts +0 -2
- package/dist/src/components/atoms/RadioGroup/RadioGroup.d.ts +0 -46
- package/dist/src/components/atoms/RadioGroup/RadioGroup.stories.d.ts +0 -104
- package/dist/src/components/atoms/RadioGroup/index.d.ts +0 -2
- package/dist/src/components/atoms/ScrollArea/ScrollArea.d.ts +0 -36
- package/dist/src/components/atoms/ScrollArea/index.d.ts +0 -2
- package/dist/src/components/atoms/Select/Select.d.ts +0 -55
- package/dist/src/components/atoms/Select/index.d.ts +0 -2
- package/dist/src/components/atoms/Separator/Separator.d.ts +0 -17
- package/dist/src/components/atoms/Separator/index.d.ts +0 -2
- package/dist/src/components/atoms/Slider/Slider.d.ts +0 -55
- package/dist/src/components/atoms/Slider/index.d.ts +0 -2
- package/dist/src/components/atoms/Stepper/Stepper.d.ts +0 -100
- package/dist/src/components/atoms/Stepper/Stepper.stories.d.ts +0 -496
- package/dist/src/components/atoms/Stepper/index.d.ts +0 -2
- package/dist/src/components/atoms/Switch/Switch.d.ts +0 -49
- package/dist/src/components/atoms/Tabs/Tabs.d.ts +0 -35
- package/dist/src/components/atoms/Tabs/Tabs.stories.d.ts +0 -83
- package/dist/src/components/atoms/Tabs/index.d.ts +0 -2
- package/dist/src/components/atoms/TextArea/TextArea.d.ts +0 -62
- package/dist/src/components/atoms/TextArea/TextArea.stories.d.ts +0 -178
- package/dist/src/components/atoms/Toast/Toast.d.ts +0 -59
- package/dist/src/components/atoms/Toast/Toast.stories.d.ts +0 -118
- package/dist/src/components/atoms/Toast/index.d.ts +0 -2
- package/dist/src/components/atoms/Toggle/Toggle.d.ts +0 -20
- package/dist/src/components/atoms/Toggle/Toggle.stories.d.ts +0 -118
- package/dist/src/components/atoms/Toggle/index.d.ts +0 -2
- package/dist/src/components/atoms/Tooltip/Tooltip.d.ts +0 -32
- package/dist/src/components/atoms/Tooltip/Tooltip.stories.d.ts +0 -87
- /package/dist/src/components/atoms/{Card → ui-components/Card}/Card.stories.d.ts +0 -0
- /package/dist/src/components/atoms/{Checkbox → ui-components/Checkbox}/index.d.ts +0 -0
- /package/dist/src/components/atoms/{Progress → ui-components/Progress}/Progress.stories.d.ts +0 -0
- /package/dist/src/components/atoms/{ScrollArea → ui-components/ScrollArea}/ScrollArea.stories.d.ts +0 -0
- /package/dist/src/components/atoms/{Separator → ui-components/Separator}/Separator.stories.d.ts +0 -0
- /package/dist/src/components/atoms/{Switch → ui-components/Switch}/index.d.ts +0 -0
- /package/dist/src/components/atoms/{TextArea → ui-components/TextArea}/index.d.ts +0 -0
- /package/dist/src/components/atoms/{Tooltip → ui-components/Tooltip}/index.d.ts +0 -0
|
@@ -1,29 +1,50 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Atoms
|
|
3
3
|
* Basic building blocks of the design system
|
|
4
|
+
* Organized by: Layout, Typography, UI Components
|
|
4
5
|
*/
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
17
|
-
export * from "./
|
|
18
|
-
export * from "./
|
|
19
|
-
export * from "./
|
|
20
|
-
export * from "./
|
|
21
|
-
export * from "./
|
|
22
|
-
export * from "./
|
|
23
|
-
export * from "./
|
|
24
|
-
export * from "./
|
|
25
|
-
export * from "./
|
|
26
|
-
export * from "./
|
|
27
|
-
export * from "./
|
|
28
|
-
export * from "./
|
|
29
|
-
export * from "./
|
|
6
|
+
export * from "./layout/Grid";
|
|
7
|
+
export * from "./layout/Container";
|
|
8
|
+
export * from "./layout/Section";
|
|
9
|
+
export * from "./typography/Blockquote";
|
|
10
|
+
export * from "./typography/Code";
|
|
11
|
+
export * from "./typography/Em";
|
|
12
|
+
export * from "./typography/Kbd";
|
|
13
|
+
export * from "./typography/Quote";
|
|
14
|
+
export * from "./typography/Strong";
|
|
15
|
+
export * from "./typography/Label";
|
|
16
|
+
export * from "./typography/Link";
|
|
17
|
+
export * from "./ui-components/Accordion";
|
|
18
|
+
export * from "./ui-components/Alert";
|
|
19
|
+
export * from "./ui-components/AlertDialog";
|
|
20
|
+
export * from "./ui-components/AspectRatio";
|
|
21
|
+
export * from "./ui-components/Avatar";
|
|
22
|
+
export * from "./ui-components/Badge";
|
|
23
|
+
export * from "./ui-components/Button";
|
|
24
|
+
export * from "./ui-components/Callout";
|
|
25
|
+
export * from "./ui-components/Card";
|
|
26
|
+
export * from "./ui-components/Checkbox";
|
|
27
|
+
export * from "./ui-components/ContextMenu";
|
|
28
|
+
export * from "./ui-components/DataList";
|
|
29
|
+
export * from "./ui-components/Dialog";
|
|
30
|
+
export * from "./ui-components/DropdownMenu";
|
|
31
|
+
export * from "./ui-components/HoverCard";
|
|
32
|
+
export * from "./ui-components/IconButton";
|
|
33
|
+
export * from "./ui-components/Inset";
|
|
34
|
+
export * from "./ui-components/Popover";
|
|
35
|
+
export * from "./ui-components/Progress";
|
|
36
|
+
export * from "./ui-components/ProgressBar";
|
|
37
|
+
export * from "./ui-components/RadioGroup";
|
|
38
|
+
export * from "./ui-components/ScrollArea";
|
|
39
|
+
export * from "./ui-components/Select";
|
|
40
|
+
export * from "./ui-components/Separator";
|
|
41
|
+
export * from "./ui-components/Skeleton";
|
|
42
|
+
export * from "./ui-components/Slider";
|
|
43
|
+
export * from "./ui-components/Spinner";
|
|
44
|
+
export * from "./ui-components/Stepper";
|
|
45
|
+
export * from "./ui-components/Switch";
|
|
46
|
+
export * from "./ui-components/Table";
|
|
47
|
+
export * from "./ui-components/Tabs";
|
|
48
|
+
export * from "./ui-components/TextArea";
|
|
49
|
+
export * from "./ui-components/TextField";
|
|
50
|
+
export * from "./ui-components/Tooltip";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Container Component
|
|
3
|
+
* A container component that extends Radix UI Container
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import type { ContainerProps as RadixContainerProps } from "@radix-ui/themes";
|
|
7
|
+
import { type ColorToken } from "../../../../tokens";
|
|
8
|
+
import "./Container.scss";
|
|
9
|
+
export type { ColorToken } from "../../../../tokens";
|
|
10
|
+
export interface ContainerProps extends Omit<RadixContainerProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
11
|
+
/**
|
|
12
|
+
* Color token for background
|
|
13
|
+
*/
|
|
14
|
+
backgroundColorToken?: ColorToken;
|
|
15
|
+
/**
|
|
16
|
+
* Color token for text
|
|
17
|
+
*/
|
|
18
|
+
textColorToken?: ColorToken;
|
|
19
|
+
/**
|
|
20
|
+
* Custom className
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
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("./Container").ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
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
|
+
backgroundColorToken: {
|
|
20
|
+
control: "text";
|
|
21
|
+
description: string;
|
|
22
|
+
table: {
|
|
23
|
+
category: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default meta;
|
|
29
|
+
type Story = StoryObj<typeof meta>;
|
|
30
|
+
export declare const Default: Story;
|
|
31
|
+
export declare const Sizes: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grid Component
|
|
3
|
+
* A grid layout component that extends Radix UI Grid
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import type { GridProps as RadixGridProps } from "@radix-ui/themes";
|
|
7
|
+
import { type ColorToken } from "../../../../tokens";
|
|
8
|
+
import "./Grid.scss";
|
|
9
|
+
export type { ColorToken } from "../../../../tokens";
|
|
10
|
+
export interface GridProps extends Omit<RadixGridProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
11
|
+
/**
|
|
12
|
+
* Color token for background
|
|
13
|
+
*/
|
|
14
|
+
backgroundColorToken?: ColorToken;
|
|
15
|
+
/**
|
|
16
|
+
* Color token for text
|
|
17
|
+
*/
|
|
18
|
+
textColorToken?: ColorToken;
|
|
19
|
+
/**
|
|
20
|
+
* Custom className
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,46 @@
|
|
|
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("./Grid").GridProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
columns: {
|
|
12
|
+
control: "text";
|
|
13
|
+
description: string;
|
|
14
|
+
table: {
|
|
15
|
+
category: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
rows: {
|
|
19
|
+
control: "text";
|
|
20
|
+
description: string;
|
|
21
|
+
table: {
|
|
22
|
+
category: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
gap: {
|
|
26
|
+
control: "select";
|
|
27
|
+
options: string[];
|
|
28
|
+
description: string;
|
|
29
|
+
table: {
|
|
30
|
+
category: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
backgroundColorToken: {
|
|
34
|
+
control: "text";
|
|
35
|
+
description: string;
|
|
36
|
+
table: {
|
|
37
|
+
category: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export default meta;
|
|
43
|
+
type Story = StoryObj<typeof meta>;
|
|
44
|
+
export declare const Default: Story;
|
|
45
|
+
export declare const Responsive: Story;
|
|
46
|
+
export declare const CustomTemplate: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Section Component
|
|
3
|
+
* A section component that extends Radix UI Section
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import type { SectionProps as RadixSectionProps } from "@radix-ui/themes";
|
|
7
|
+
import { type ColorToken } from "../../../../tokens";
|
|
8
|
+
import "./Section.scss";
|
|
9
|
+
export type { ColorToken } from "../../../../tokens";
|
|
10
|
+
export interface SectionProps extends Omit<RadixSectionProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
11
|
+
/**
|
|
12
|
+
* Color token for background
|
|
13
|
+
*/
|
|
14
|
+
backgroundColorToken?: ColorToken;
|
|
15
|
+
/**
|
|
16
|
+
* Color token for text
|
|
17
|
+
*/
|
|
18
|
+
textColorToken?: ColorToken;
|
|
19
|
+
/**
|
|
20
|
+
* Custom className
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const Section: React.ForwardRefExoticComponent<SectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
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("./Section").SectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
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
|
+
backgroundColorToken: {
|
|
20
|
+
control: "text";
|
|
21
|
+
description: string;
|
|
22
|
+
table: {
|
|
23
|
+
category: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default meta;
|
|
29
|
+
type Story = StoryObj<typeof meta>;
|
|
30
|
+
export declare const Default: Story;
|
|
31
|
+
export declare const Sizes: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blockquote Component
|
|
3
|
+
* A blockquote component that extends Radix UI Blockquote
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import type { BlockquoteProps as RadixBlockquoteProps } from "@radix-ui/themes";
|
|
7
|
+
import { type ColorToken } from "../../../../tokens";
|
|
8
|
+
import "./Blockquote.scss";
|
|
9
|
+
export type { ColorToken } from "../../../../tokens";
|
|
10
|
+
export interface BlockquoteProps extends Omit<RadixBlockquoteProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
11
|
+
/**
|
|
12
|
+
* Color token for text
|
|
13
|
+
*/
|
|
14
|
+
textColorToken?: ColorToken;
|
|
15
|
+
/**
|
|
16
|
+
* Color token for border
|
|
17
|
+
*/
|
|
18
|
+
borderColorToken?: ColorToken;
|
|
19
|
+
/**
|
|
20
|
+
* Custom className
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const Blockquote: React.ForwardRefExoticComponent<BlockquoteProps & React.RefAttributes<HTMLQuoteElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<import("./Blockquote").BlockquoteProps & React.RefAttributes<HTMLQuoteElement>>;
|
|
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 WithAuthor: Story;
|
|
15
|
+
export declare const Sizes: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code Component
|
|
3
|
+
* A code component that extends Radix UI Code
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import type { CodeProps as RadixCodeProps } from "@radix-ui/themes";
|
|
7
|
+
import { type ColorToken } from "../../../../tokens";
|
|
8
|
+
import "./Code.scss";
|
|
9
|
+
export type { ColorToken } from "../../../../tokens";
|
|
10
|
+
export interface CodeProps extends Omit<RadixCodeProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
11
|
+
/**
|
|
12
|
+
* Color token for text
|
|
13
|
+
*/
|
|
14
|
+
textColorToken?: ColorToken;
|
|
15
|
+
/**
|
|
16
|
+
* Color token for background
|
|
17
|
+
*/
|
|
18
|
+
backgroundColorToken?: ColorToken;
|
|
19
|
+
/**
|
|
20
|
+
* Custom className
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const Code: React.ForwardRefExoticComponent<CodeProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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("./Code").CodeProps & React.RefAttributes<HTMLElement>>;
|
|
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 InSentence: Story;
|
|
15
|
+
export declare const Variants: Story;
|
|
16
|
+
export declare const Colors: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Em Component
|
|
3
|
+
* An emphasis component that extends Radix UI Em
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import type { EmProps as RadixEmProps } from "@radix-ui/themes";
|
|
7
|
+
import { type ColorToken } from "../../../../tokens";
|
|
8
|
+
import "./Em.scss";
|
|
9
|
+
export type { ColorToken } from "../../../../tokens";
|
|
10
|
+
export interface EmProps extends Omit<RadixEmProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
11
|
+
/**
|
|
12
|
+
* Color token for text
|
|
13
|
+
*/
|
|
14
|
+
textColorToken?: ColorToken;
|
|
15
|
+
/**
|
|
16
|
+
* Custom className
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const Em: React.ForwardRefExoticComponent<EmProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -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("./Em").EmProps & React.RefAttributes<HTMLElement>>;
|
|
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 Standalone: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kbd Component
|
|
3
|
+
* A keyboard shortcut component that extends Radix UI Kbd
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import type { KbdProps as RadixKbdProps } from "@radix-ui/themes";
|
|
7
|
+
import { type ColorToken } from "../../../../tokens";
|
|
8
|
+
import "./Kbd.scss";
|
|
9
|
+
export type { ColorToken } from "../../../../tokens";
|
|
10
|
+
export interface KbdProps extends Omit<RadixKbdProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
11
|
+
/**
|
|
12
|
+
* Color token for text
|
|
13
|
+
*/
|
|
14
|
+
textColorToken?: ColorToken;
|
|
15
|
+
/**
|
|
16
|
+
* Color token for background
|
|
17
|
+
*/
|
|
18
|
+
backgroundColorToken?: ColorToken;
|
|
19
|
+
/**
|
|
20
|
+
* Custom className
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const Kbd: React.ForwardRefExoticComponent<KbdProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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("./Kbd").KbdProps & React.RefAttributes<HTMLElement>>;
|
|
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 InSentence: Story;
|
|
15
|
+
export declare const Shortcuts: Story;
|
|
16
|
+
export declare const Sizes: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Label Component
|
|
3
|
+
* A label component that extends Radix UI Text with as="label" and custom color tokens
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { Text } from "@radix-ui/themes";
|
|
7
|
+
import { type ColorToken } from "../../../../tokens";
|
|
8
|
+
import "./Label.scss";
|
|
9
|
+
export type { ColorToken } from "../../../../tokens";
|
|
10
|
+
export interface LabelProps extends Omit<React.ComponentPropsWithoutRef<typeof Text>, "as" | "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
11
|
+
textColorToken?: ColorToken;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -32,20 +32,6 @@ declare const meta: {
|
|
|
32
32
|
category: string;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
htmlFor: {
|
|
36
|
-
control: "text";
|
|
37
|
-
description: string;
|
|
38
|
-
table: {
|
|
39
|
-
category: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
required: {
|
|
43
|
-
control: "boolean";
|
|
44
|
-
description: string;
|
|
45
|
-
table: {
|
|
46
|
-
category: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
35
|
textColorToken: {
|
|
50
36
|
control: "select";
|
|
51
37
|
options: ColorToken[];
|
|
@@ -94,7 +80,6 @@ declare const meta: {
|
|
|
94
80
|
export default meta;
|
|
95
81
|
type Story = StoryObj<typeof meta>;
|
|
96
82
|
export declare const Default: Story;
|
|
97
|
-
export declare const Required: Story;
|
|
98
83
|
export declare const Sizes: Story;
|
|
99
84
|
export declare const Weights: Story;
|
|
100
85
|
export declare const InteractiveColorPicker: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { LinkProps as RadixLinkProps } from "@radix-ui/themes";
|
|
3
|
+
import { type ColorToken } from "../../../../tokens";
|
|
4
|
+
import "./Link.scss";
|
|
5
|
+
export type { ColorToken } from "../../../../tokens";
|
|
6
|
+
export interface LinkProps extends Omit<RadixLinkProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
7
|
+
textColorToken?: ColorToken;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<import("./Link").LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
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 InSentence: Story;
|
|
15
|
+
export declare const Underline: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quote Component
|
|
3
|
+
* A quote component that extends Radix UI Quote
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import type { QuoteProps as RadixQuoteProps } from "@radix-ui/themes";
|
|
7
|
+
import { type ColorToken } from "../../../../tokens";
|
|
8
|
+
import "./Quote.scss";
|
|
9
|
+
export type { ColorToken } from "../../../../tokens";
|
|
10
|
+
export interface QuoteProps extends Omit<RadixQuoteProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
11
|
+
/**
|
|
12
|
+
* Color token for text
|
|
13
|
+
*/
|
|
14
|
+
textColorToken?: ColorToken;
|
|
15
|
+
/**
|
|
16
|
+
* Custom className
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const Quote: React.ForwardRefExoticComponent<QuoteProps & React.RefAttributes<HTMLQuoteElement>>;
|
|
@@ -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("./Quote").QuoteProps & React.RefAttributes<HTMLQuoteElement>>;
|
|
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 Nested: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Strong Component
|
|
3
|
+
* A strong emphasis component that extends Radix UI Strong
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import type { StrongProps as RadixStrongProps } from "@radix-ui/themes";
|
|
7
|
+
import { type ColorToken } from "../../../../tokens";
|
|
8
|
+
import "./Strong.scss";
|
|
9
|
+
export type { ColorToken } from "../../../../tokens";
|
|
10
|
+
export interface StrongProps extends Omit<RadixStrongProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
|
|
11
|
+
/**
|
|
12
|
+
* Color token for text
|
|
13
|
+
*/
|
|
14
|
+
textColorToken?: ColorToken;
|
|
15
|
+
/**
|
|
16
|
+
* Custom className
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const Strong: React.ForwardRefExoticComponent<StrongProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<import("./Strong").StrongProps & React.RefAttributes<HTMLElement>>;
|
|
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 Standalone: Story;
|
|
15
|
+
export declare const Multiple: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accordion Component
|
|
3
|
+
* A collapsible accordion component using Radix UI primitives
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import * as RadixAccordion from "@radix-ui/react-accordion";
|
|
7
|
+
import type { AccordionSingleProps, AccordionMultipleProps } from "@radix-ui/react-accordion";
|
|
8
|
+
import { type ColorToken } from "../../../../tokens";
|
|
9
|
+
import "./Accordion.scss";
|
|
10
|
+
export type { ColorToken } from "../../../../tokens";
|
|
11
|
+
type BaseAccordionProps = {
|
|
12
|
+
backgroundColorToken?: ColorToken;
|
|
13
|
+
textColorToken?: ColorToken;
|
|
14
|
+
borderColorToken?: ColorToken;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export type AccordionProps = BaseAccordionProps & (Omit<AccordionSingleProps, "className"> | Omit<AccordionMultipleProps, "className">);
|
|
18
|
+
export declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>> & {
|
|
19
|
+
Item: React.ForwardRefExoticComponent<Omit<RadixAccordion.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
Header: React.ForwardRefExoticComponent<Omit<RadixAccordion.AccordionHeaderProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
21
|
+
Trigger: React.ForwardRefExoticComponent<Omit<RadixAccordion.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
Content: React.ForwardRefExoticComponent<Omit<RadixAccordion.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
};
|