@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.
Files changed (213) hide show
  1. package/dist/design-system.css +1 -1
  2. package/dist/index.js +32 -29
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.mjs +8067 -7208
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/src/components/atoms/index.d.ts +46 -25
  7. package/dist/src/components/atoms/layout/Container/Container.d.ts +24 -0
  8. package/dist/src/components/atoms/layout/Container/Container.stories.d.ts +31 -0
  9. package/dist/src/components/atoms/layout/Container/index.d.ts +2 -0
  10. package/dist/src/components/atoms/layout/Grid/Grid.d.ts +24 -0
  11. package/dist/src/components/atoms/layout/Grid/Grid.stories.d.ts +46 -0
  12. package/dist/src/components/atoms/layout/Grid/index.d.ts +2 -0
  13. package/dist/src/components/atoms/layout/Section/Section.d.ts +24 -0
  14. package/dist/src/components/atoms/layout/Section/Section.stories.d.ts +31 -0
  15. package/dist/src/components/atoms/layout/Section/index.d.ts +2 -0
  16. package/dist/src/components/atoms/typography/Blockquote/Blockquote.d.ts +24 -0
  17. package/dist/src/components/atoms/typography/Blockquote/Blockquote.stories.d.ts +15 -0
  18. package/dist/src/components/atoms/typography/Blockquote/index.d.ts +2 -0
  19. package/dist/src/components/atoms/typography/Code/Code.d.ts +24 -0
  20. package/dist/src/components/atoms/typography/Code/Code.stories.d.ts +16 -0
  21. package/dist/src/components/atoms/typography/Code/index.d.ts +2 -0
  22. package/dist/src/components/atoms/typography/Em/Em.d.ts +20 -0
  23. package/dist/src/components/atoms/typography/Em/Em.stories.d.ts +14 -0
  24. package/dist/src/components/atoms/typography/Em/index.d.ts +2 -0
  25. package/dist/src/components/atoms/typography/Kbd/Kbd.d.ts +24 -0
  26. package/dist/src/components/atoms/typography/Kbd/Kbd.stories.d.ts +16 -0
  27. package/dist/src/components/atoms/typography/Kbd/index.d.ts +2 -0
  28. package/dist/src/components/atoms/typography/Label/Label.d.ts +14 -0
  29. package/dist/src/components/atoms/{Label → typography/Label}/Label.stories.d.ts +0 -15
  30. package/dist/src/components/atoms/typography/Label/index.d.ts +2 -0
  31. package/dist/src/components/atoms/typography/Link/Link.d.ts +10 -0
  32. package/dist/src/components/atoms/typography/Link/Link.stories.d.ts +15 -0
  33. package/dist/src/components/atoms/typography/Link/index.d.ts +2 -0
  34. package/dist/src/components/atoms/typography/Quote/Quote.d.ts +20 -0
  35. package/dist/src/components/atoms/typography/Quote/Quote.stories.d.ts +14 -0
  36. package/dist/src/components/atoms/typography/Quote/index.d.ts +2 -0
  37. package/dist/src/components/atoms/typography/Strong/Strong.d.ts +20 -0
  38. package/dist/src/components/atoms/typography/Strong/Strong.stories.d.ts +15 -0
  39. package/dist/src/components/atoms/typography/Strong/index.d.ts +2 -0
  40. package/dist/src/components/atoms/ui-components/Accordion/Accordion.d.ts +23 -0
  41. package/dist/src/components/atoms/ui-components/Accordion/Accordion.stories.d.ts +19 -0
  42. package/dist/src/components/atoms/ui-components/Accordion/index.d.ts +2 -0
  43. package/dist/src/components/atoms/ui-components/Alert/Alert.d.ts +49 -0
  44. package/dist/src/components/atoms/ui-components/Alert/Alert.stories.d.ts +17 -0
  45. package/dist/src/components/atoms/ui-components/Alert/index.d.ts +2 -0
  46. package/dist/src/components/atoms/ui-components/AlertDialog/AlertDialog.d.ts +18 -0
  47. package/dist/src/components/atoms/ui-components/AlertDialog/AlertDialog.stories.d.ts +23 -0
  48. package/dist/src/components/atoms/ui-components/AlertDialog/index.d.ts +2 -0
  49. package/dist/src/components/atoms/ui-components/AspectRatio/AspectRatio.d.ts +10 -0
  50. package/dist/src/components/atoms/ui-components/AspectRatio/AspectRatio.stories.d.ts +14 -0
  51. package/dist/src/components/atoms/ui-components/AspectRatio/index.d.ts +2 -0
  52. package/dist/src/components/atoms/ui-components/Avatar/Avatar.d.ts +15 -0
  53. package/dist/src/components/atoms/{Avatar → ui-components/Avatar}/Avatar.stories.d.ts +8 -0
  54. package/dist/src/components/atoms/ui-components/Avatar/index.d.ts +2 -0
  55. package/dist/src/components/atoms/ui-components/Badge/Badge.d.ts +12 -0
  56. package/dist/src/components/atoms/{Select/Select.stories.d.ts → ui-components/Badge/Badge.stories.d.ts} +27 -43
  57. package/dist/src/components/atoms/ui-components/Badge/index.d.ts +2 -0
  58. package/dist/src/components/atoms/ui-components/Button/Button.d.ts +16 -0
  59. package/dist/src/components/atoms/{Switch/Switch.stories.d.ts → ui-components/Button/Button.stories.d.ts} +26 -43
  60. package/dist/src/components/atoms/ui-components/Button/index.d.ts +3 -0
  61. package/dist/src/components/atoms/ui-components/Callout/Callout.d.ts +14 -0
  62. package/dist/src/components/atoms/ui-components/Callout/Callout.stories.d.ts +17 -0
  63. package/dist/src/components/atoms/ui-components/Callout/index.d.ts +2 -0
  64. package/dist/src/components/atoms/ui-components/Card/Card.d.ts +12 -0
  65. package/dist/src/components/atoms/ui-components/Card/index.d.ts +2 -0
  66. package/dist/src/components/atoms/ui-components/Checkbox/Checkbox.d.ts +11 -0
  67. package/dist/src/components/atoms/{Popover/Popover.stories.d.ts → ui-components/Checkbox/Checkbox.stories.d.ts} +26 -43
  68. package/dist/src/components/atoms/ui-components/ContextMenu/ContextMenu.d.ts +17 -0
  69. package/dist/src/components/atoms/ui-components/ContextMenu/ContextMenu.stories.d.ts +21 -0
  70. package/dist/src/components/atoms/ui-components/ContextMenu/index.d.ts +2 -0
  71. package/dist/src/components/atoms/ui-components/DataList/DataList.d.ts +11 -0
  72. package/dist/src/components/atoms/ui-components/DataList/DataList.stories.d.ts +17 -0
  73. package/dist/src/components/atoms/ui-components/DataList/index.d.ts +2 -0
  74. package/dist/src/components/atoms/ui-components/Dialog/Dialog.d.ts +20 -0
  75. package/dist/src/components/atoms/ui-components/Dialog/Dialog.stories.d.ts +25 -0
  76. package/dist/src/components/atoms/ui-components/Dialog/index.d.ts +2 -0
  77. package/dist/src/components/atoms/ui-components/DropdownMenu/DropdownMenu.d.ts +21 -0
  78. package/dist/src/components/atoms/ui-components/DropdownMenu/DropdownMenu.stories.d.ts +26 -0
  79. package/dist/src/components/atoms/ui-components/DropdownMenu/index.d.ts +2 -0
  80. package/dist/src/components/atoms/ui-components/HoverCard/HoverCard.d.ts +14 -0
  81. package/dist/src/components/atoms/ui-components/HoverCard/HoverCard.stories.d.ts +19 -0
  82. package/dist/src/components/atoms/ui-components/HoverCard/index.d.ts +2 -0
  83. package/dist/src/components/atoms/ui-components/IconButton/IconButton.d.ts +7 -0
  84. package/dist/src/components/atoms/ui-components/IconButton/IconButton.stories.d.ts +15 -0
  85. package/dist/src/components/atoms/ui-components/IconButton/index.d.ts +2 -0
  86. package/dist/src/components/atoms/ui-components/Inset/Inset.d.ts +7 -0
  87. package/dist/src/components/atoms/ui-components/Inset/Inset.stories.d.ts +13 -0
  88. package/dist/src/components/atoms/ui-components/Inset/index.d.ts +2 -0
  89. package/dist/src/components/atoms/ui-components/Popover/Popover.d.ts +15 -0
  90. package/dist/src/components/atoms/ui-components/Popover/Popover.stories.d.ts +20 -0
  91. package/dist/src/components/atoms/ui-components/Popover/index.d.ts +2 -0
  92. package/dist/src/components/atoms/ui-components/Progress/Progress.d.ts +11 -0
  93. package/dist/src/components/atoms/ui-components/Progress/index.d.ts +2 -0
  94. package/dist/src/components/atoms/ui-components/ProgressBar/ProgressBar.d.ts +11 -0
  95. package/dist/src/components/atoms/ui-components/ProgressBar/ProgressBar.stories.d.ts +59 -0
  96. package/dist/src/components/atoms/ui-components/ProgressBar/index.d.ts +2 -0
  97. package/dist/src/components/atoms/ui-components/RadioGroup/RadioGroup.d.ts +13 -0
  98. package/dist/src/components/atoms/ui-components/RadioGroup/RadioGroup.stories.d.ts +49 -0
  99. package/dist/src/components/atoms/ui-components/RadioGroup/index.d.ts +2 -0
  100. package/dist/src/components/atoms/ui-components/ScrollArea/ScrollArea.d.ts +10 -0
  101. package/dist/src/components/atoms/ui-components/ScrollArea/index.d.ts +2 -0
  102. package/dist/src/components/atoms/ui-components/Select/Select.d.ts +19 -0
  103. package/dist/src/components/atoms/ui-components/Select/Select.stories.d.ts +23 -0
  104. package/dist/src/components/atoms/ui-components/Select/index.d.ts +2 -0
  105. package/dist/src/components/atoms/ui-components/Separator/Separator.d.ts +10 -0
  106. package/dist/src/components/atoms/ui-components/Separator/index.d.ts +2 -0
  107. package/dist/src/components/atoms/ui-components/Skeleton/Skeleton.d.ts +7 -0
  108. package/dist/src/components/atoms/ui-components/Skeleton/Skeleton.stories.d.ts +14 -0
  109. package/dist/src/components/atoms/ui-components/Skeleton/index.d.ts +2 -0
  110. package/dist/src/components/atoms/ui-components/Slider/Slider.d.ts +11 -0
  111. package/dist/src/components/atoms/{Slider → ui-components/Slider}/Slider.stories.d.ts +24 -58
  112. package/dist/src/components/atoms/ui-components/Slider/index.d.ts +2 -0
  113. package/dist/src/components/atoms/ui-components/Spinner/Spinner.d.ts +7 -0
  114. package/dist/src/components/atoms/ui-components/Spinner/Spinner.stories.d.ts +14 -0
  115. package/dist/src/components/atoms/ui-components/Spinner/index.d.ts +2 -0
  116. package/dist/src/components/atoms/ui-components/Stepper/Stepper.d.ts +49 -0
  117. package/dist/src/components/atoms/ui-components/Stepper/Stepper.stories.d.ts +64 -0
  118. package/dist/src/components/atoms/ui-components/Stepper/index.d.ts +2 -0
  119. package/dist/src/components/atoms/ui-components/Switch/Switch.d.ts +11 -0
  120. package/dist/src/components/atoms/ui-components/Switch/Switch.stories.d.ts +61 -0
  121. package/dist/src/components/atoms/ui-components/Table/Table.d.ts +14 -0
  122. package/dist/src/components/atoms/ui-components/Table/Table.stories.d.ts +20 -0
  123. package/dist/src/components/atoms/ui-components/Table/index.d.ts +2 -0
  124. package/dist/src/components/atoms/ui-components/Tabs/Tabs.d.ts +15 -0
  125. package/dist/src/components/atoms/ui-components/Tabs/Tabs.stories.d.ts +20 -0
  126. package/dist/src/components/atoms/ui-components/Tabs/index.d.ts +2 -0
  127. package/dist/src/components/atoms/ui-components/TextArea/TextArea.d.ts +12 -0
  128. package/dist/src/components/atoms/ui-components/TextArea/TextArea.stories.d.ts +68 -0
  129. package/dist/src/components/atoms/ui-components/TextField/TextField.d.ts +11 -0
  130. package/dist/src/components/atoms/ui-components/TextField/TextField.stories.d.ts +14 -0
  131. package/dist/src/components/atoms/ui-components/TextField/index.d.ts +2 -0
  132. package/dist/src/components/atoms/ui-components/Tooltip/Tooltip.d.ts +11 -0
  133. package/dist/src/components/atoms/ui-components/Tooltip/Tooltip.stories.d.ts +38 -0
  134. package/dist/src/components/templates/CancellationFlowTemplate/CancellationFlow.config.d.ts +2 -0
  135. package/dist/src/components/templates/CancellationFlowTemplate/CancellationFlow.types.d.ts +85 -0
  136. package/dist/src/components/templates/CancellationFlowTemplate/CancellationFlowManager.d.ts +30 -0
  137. package/dist/src/components/templates/CancellationFlowTemplate/CancellationFlowTemplate.d.ts +4 -0
  138. package/dist/src/components/templates/CancellationFlowTemplate/CancellationFlowTemplate.stories.d.ts +47 -0
  139. package/dist/src/components/templates/CancellationFlowTemplate/index.d.ts +4 -0
  140. package/dist/src/components/templates/index.d.ts +4 -0
  141. package/package.json +3 -2
  142. package/dist/src/components/atoms/Accordion/Accordion.d.ts +0 -52
  143. package/dist/src/components/atoms/Accordion/Accordion.stories.d.ts +0 -109
  144. package/dist/src/components/atoms/Accordion/index.d.ts +0 -2
  145. package/dist/src/components/atoms/AlertDialog/AlertDialog.d.ts +0 -66
  146. package/dist/src/components/atoms/AlertDialog/AlertDialog.stories.d.ts +0 -144
  147. package/dist/src/components/atoms/AlertDialog/index.d.ts +0 -2
  148. package/dist/src/components/atoms/Avatar/Avatar.d.ts +0 -54
  149. package/dist/src/components/atoms/Avatar/index.d.ts +0 -2
  150. package/dist/src/components/atoms/Badge/Badge.d.ts +0 -58
  151. package/dist/src/components/atoms/Badge/Badge.stories.d.ts +0 -706
  152. package/dist/src/components/atoms/Badge/index.d.ts +0 -2
  153. package/dist/src/components/atoms/Button/Button.d.ts +0 -63
  154. package/dist/src/components/atoms/Button/Button.stories.d.ts +0 -763
  155. package/dist/src/components/atoms/Button/index.d.ts +0 -2
  156. package/dist/src/components/atoms/Card/Card.d.ts +0 -44
  157. package/dist/src/components/atoms/Card/index.d.ts +0 -2
  158. package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +0 -52
  159. package/dist/src/components/atoms/Checkbox/Checkbox.stories.d.ts +0 -168
  160. package/dist/src/components/atoms/Dialog/Dialog.d.ts +0 -53
  161. package/dist/src/components/atoms/Dialog/Dialog.stories.d.ts +0 -122
  162. package/dist/src/components/atoms/Dialog/index.d.ts +0 -2
  163. package/dist/src/components/atoms/DropdownMenu/DropdownMenu.d.ts +0 -61
  164. package/dist/src/components/atoms/DropdownMenu/DropdownMenu.stories.d.ts +0 -109
  165. package/dist/src/components/atoms/DropdownMenu/index.d.ts +0 -2
  166. package/dist/src/components/atoms/HoverCard/HoverCard.d.ts +0 -38
  167. package/dist/src/components/atoms/HoverCard/HoverCard.stories.d.ts +0 -86
  168. package/dist/src/components/atoms/HoverCard/index.d.ts +0 -2
  169. package/dist/src/components/atoms/Label/Label.d.ts +0 -19
  170. package/dist/src/components/atoms/Label/index.d.ts +0 -2
  171. package/dist/src/components/atoms/Popover/Popover.d.ts +0 -44
  172. package/dist/src/components/atoms/Popover/index.d.ts +0 -2
  173. package/dist/src/components/atoms/Progress/Progress.d.ts +0 -45
  174. package/dist/src/components/atoms/Progress/index.d.ts +0 -2
  175. package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +0 -66
  176. package/dist/src/components/atoms/ProgressBar/ProgressBar.stories.d.ts +0 -439
  177. package/dist/src/components/atoms/ProgressBar/index.d.ts +0 -2
  178. package/dist/src/components/atoms/RadioGroup/RadioGroup.d.ts +0 -46
  179. package/dist/src/components/atoms/RadioGroup/RadioGroup.stories.d.ts +0 -104
  180. package/dist/src/components/atoms/RadioGroup/index.d.ts +0 -2
  181. package/dist/src/components/atoms/ScrollArea/ScrollArea.d.ts +0 -36
  182. package/dist/src/components/atoms/ScrollArea/index.d.ts +0 -2
  183. package/dist/src/components/atoms/Select/Select.d.ts +0 -55
  184. package/dist/src/components/atoms/Select/index.d.ts +0 -2
  185. package/dist/src/components/atoms/Separator/Separator.d.ts +0 -17
  186. package/dist/src/components/atoms/Separator/index.d.ts +0 -2
  187. package/dist/src/components/atoms/Slider/Slider.d.ts +0 -55
  188. package/dist/src/components/atoms/Slider/index.d.ts +0 -2
  189. package/dist/src/components/atoms/Stepper/Stepper.d.ts +0 -100
  190. package/dist/src/components/atoms/Stepper/Stepper.stories.d.ts +0 -496
  191. package/dist/src/components/atoms/Stepper/index.d.ts +0 -2
  192. package/dist/src/components/atoms/Switch/Switch.d.ts +0 -49
  193. package/dist/src/components/atoms/Tabs/Tabs.d.ts +0 -35
  194. package/dist/src/components/atoms/Tabs/Tabs.stories.d.ts +0 -83
  195. package/dist/src/components/atoms/Tabs/index.d.ts +0 -2
  196. package/dist/src/components/atoms/TextArea/TextArea.d.ts +0 -62
  197. package/dist/src/components/atoms/TextArea/TextArea.stories.d.ts +0 -178
  198. package/dist/src/components/atoms/Toast/Toast.d.ts +0 -59
  199. package/dist/src/components/atoms/Toast/Toast.stories.d.ts +0 -118
  200. package/dist/src/components/atoms/Toast/index.d.ts +0 -2
  201. package/dist/src/components/atoms/Toggle/Toggle.d.ts +0 -20
  202. package/dist/src/components/atoms/Toggle/Toggle.stories.d.ts +0 -118
  203. package/dist/src/components/atoms/Toggle/index.d.ts +0 -2
  204. package/dist/src/components/atoms/Tooltip/Tooltip.d.ts +0 -32
  205. package/dist/src/components/atoms/Tooltip/Tooltip.stories.d.ts +0 -87
  206. /package/dist/src/components/atoms/{Card → ui-components/Card}/Card.stories.d.ts +0 -0
  207. /package/dist/src/components/atoms/{Checkbox → ui-components/Checkbox}/index.d.ts +0 -0
  208. /package/dist/src/components/atoms/{Progress → ui-components/Progress}/Progress.stories.d.ts +0 -0
  209. /package/dist/src/components/atoms/{ScrollArea → ui-components/ScrollArea}/ScrollArea.stories.d.ts +0 -0
  210. /package/dist/src/components/atoms/{Separator → ui-components/Separator}/Separator.stories.d.ts +0 -0
  211. /package/dist/src/components/atoms/{Switch → ui-components/Switch}/index.d.ts +0 -0
  212. /package/dist/src/components/atoms/{TextArea → ui-components/TextArea}/index.d.ts +0 -0
  213. /package/dist/src/components/atoms/{Tooltip → ui-components/Tooltip}/index.d.ts +0 -0
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import type { StoryObj } from "@storybook/react-vite";
3
+ declare const meta: {
4
+ title: string;
5
+ component: React.ForwardRefExoticComponent<import("./Accordion").AccordionProps & React.RefAttributes<HTMLDivElement>> & {
6
+ Item: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-accordion").AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ Header: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-accordion").AccordionHeaderProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
8
+ Trigger: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-accordion").AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
9
+ Content: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-accordion").AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ };
11
+ parameters: {
12
+ layout: string;
13
+ };
14
+ tags: string[];
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof meta>;
18
+ export declare const Default: Story;
19
+ export declare const Multiple: Story;
@@ -0,0 +1,2 @@
1
+ export { Accordion } from "./Accordion";
2
+ export type { AccordionProps, ColorToken } from "./Accordion";
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Alert Component
3
+ * A static alert/banner component (different from AlertDialog)
4
+ * Built on top of Radix UI Callout
5
+ */
6
+ import React from "react";
7
+ import { Callout } from "@radix-ui/themes";
8
+ import { type ColorToken } from "../../../../tokens";
9
+ import "./Alert.scss";
10
+ export type { ColorToken } from "../../../../tokens";
11
+ export type AlertVariant = "soft" | "surface" | "outline";
12
+ export type AlertColor = "blue" | "green" | "yellow" | "red" | "gray";
13
+ export interface AlertProps extends Omit<React.ComponentPropsWithoutRef<typeof Callout.Root>, "size" | "variant" | "color" | "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
14
+ /**
15
+ * Alert variant
16
+ * @default 'soft'
17
+ */
18
+ variant?: AlertVariant;
19
+ /**
20
+ * Alert color
21
+ * @default 'blue'
22
+ */
23
+ color?: AlertColor;
24
+ /**
25
+ * Alert title
26
+ */
27
+ title?: string;
28
+ /**
29
+ * Alert message
30
+ */
31
+ message?: string;
32
+ /**
33
+ * Icon element
34
+ */
35
+ icon?: React.ReactNode;
36
+ /**
37
+ * Color token for background
38
+ */
39
+ backgroundColorToken?: ColorToken;
40
+ /**
41
+ * Color token for text
42
+ */
43
+ textColorToken?: ColorToken;
44
+ /**
45
+ * Custom className
46
+ */
47
+ className?: string;
48
+ }
49
+ export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import type { StoryObj } from "@storybook/react-vite";
3
+ declare const meta: {
4
+ title: string;
5
+ component: React.ForwardRefExoticComponent<import("./Alert").AlertProps & React.RefAttributes<HTMLDivElement>>;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Info: Story;
14
+ export declare const Success: Story;
15
+ export declare const Warning: Story;
16
+ export declare const Error: Story;
17
+ export declare const Variants: Story;
@@ -0,0 +1,2 @@
1
+ export { Alert } from "./Alert";
2
+ export type { AlertProps } from "./Alert";
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { AlertDialog as RadixAlertDialog } from "@radix-ui/themes";
3
+ import { type ColorToken } from "../../../../tokens";
4
+ import "./AlertDialog.scss";
5
+ export type { ColorToken } from "../../../../tokens";
6
+ export interface AlertDialogContentProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixAlertDialog.Content>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
7
+ backgroundColorToken?: ColorToken;
8
+ textColorToken?: ColorToken;
9
+ className?: string;
10
+ }
11
+ export declare const AlertDialog: React.FC<RadixAlertDialog.RootProps> & {
12
+ Trigger: React.ForwardRefExoticComponent<RadixAlertDialog.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
13
+ Content: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
14
+ Title: React.ForwardRefExoticComponent<RadixAlertDialog.TitleProps & React.RefAttributes<HTMLHeadingElement>>;
15
+ Description: React.ForwardRefExoticComponent<RadixAlertDialog.DescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
16
+ Action: React.ForwardRefExoticComponent<RadixAlertDialog.ActionProps & React.RefAttributes<HTMLButtonElement>>;
17
+ Cancel: React.ForwardRefExoticComponent<RadixAlertDialog.CancelProps & React.RefAttributes<HTMLButtonElement>>;
18
+ };
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ import type { StoryObj } from "@storybook/react-vite";
3
+ declare const meta: {
4
+ title: string;
5
+ component: React.FC<import("@radix-ui/themes/components/alert-dialog").RootProps> & {
6
+ Trigger: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/alert-dialog").TriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
+ Content: React.ForwardRefExoticComponent<import("./AlertDialog").AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
8
+ Title: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/alert-dialog").TitleProps & React.RefAttributes<HTMLHeadingElement>>;
9
+ Description: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/alert-dialog").DescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
10
+ Action: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/alert-dialog").ActionProps & React.RefAttributes<HTMLButtonElement>>;
11
+ Cancel: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/alert-dialog").CancelProps & React.RefAttributes<HTMLButtonElement>>;
12
+ };
13
+ parameters: {
14
+ layout: string;
15
+ };
16
+ tags: string[];
17
+ argTypes: {};
18
+ };
19
+ export default meta;
20
+ type Story = StoryObj<typeof meta>;
21
+ export declare const Default: Story;
22
+ export declare const CustomButtons: Story;
23
+ export declare const WithCustomColors: Story;
@@ -0,0 +1,2 @@
1
+ export { AlertDialog } from "./AlertDialog";
2
+ export type { AlertDialogContentProps, ColorToken } from "./AlertDialog";
@@ -0,0 +1,10 @@
1
+ /**
2
+ * AspectRatio Component
3
+ */
4
+ import React from "react";
5
+ import type { AspectRatioProps as RadixAspectRatioProps } from "@radix-ui/themes";
6
+ import "./AspectRatio.scss";
7
+ export interface AspectRatioProps extends Omit<RadixAspectRatioProps, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
8
+ className?: string;
9
+ }
10
+ export declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
@@ -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("./AspectRatio").AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Square: Story;
14
+ export declare const Video: Story;
@@ -0,0 +1,2 @@
1
+ export { AspectRatio } from "./AspectRatio";
2
+ export type { AspectRatioProps } from "./AspectRatio";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Avatar Component
3
+ * An avatar component that extends Radix UI Avatar with custom color tokens
4
+ */
5
+ import React from "react";
6
+ import { Avatar as RadixAvatar } from "@radix-ui/themes";
7
+ import { type ColorToken } from "../../../../tokens";
8
+ import "./Avatar.scss";
9
+ export type { ColorToken } from "../../../../tokens";
10
+ export interface AvatarProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixAvatar>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
11
+ backgroundColorToken?: ColorToken;
12
+ textColorToken?: ColorToken;
13
+ className?: string;
14
+ }
15
+ export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
@@ -33,6 +33,14 @@ declare const meta: {
33
33
  category: string;
34
34
  };
35
35
  };
36
+ color: {
37
+ control: "select";
38
+ options: string[];
39
+ description: string;
40
+ table: {
41
+ category: string;
42
+ };
43
+ };
36
44
  src: {
37
45
  control: "text";
38
46
  description: string;
@@ -0,0 +1,2 @@
1
+ export { Avatar } from "./Avatar";
2
+ export type { AvatarProps, ColorToken } from "./Avatar";
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { Badge as RadixBadge } from "@radix-ui/themes";
3
+ import { type ColorToken } from "../../../../tokens";
4
+ import "./Badge.scss";
5
+ export type { ColorToken } from "../../../../tokens";
6
+ export interface BadgeProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixBadge>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
7
+ backgroundColorToken?: ColorToken;
8
+ textColorToken?: ColorToken;
9
+ borderColorToken?: ColorToken;
10
+ className?: string;
11
+ }
12
+ export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
@@ -1,17 +1,15 @@
1
1
  import React from "react";
2
2
  import type { StoryObj } from "@storybook/react-vite";
3
- import type { ColorToken } from "./Select";
4
3
  declare const meta: {
5
4
  title: string;
6
- component: React.ForwardRefExoticComponent<import("./Select").SelectProps & React.RefAttributes<HTMLButtonElement>>;
5
+ component: React.ForwardRefExoticComponent<import("./Badge").BadgeProps & React.RefAttributes<HTMLSpanElement>>;
7
6
  parameters: {
8
7
  layout: string;
9
8
  };
10
9
  tags: string[];
11
10
  argTypes: {
12
- size: {
13
- control: "select";
14
- options: string[];
11
+ children: {
12
+ control: "text";
15
13
  description: string;
16
14
  table: {
17
15
  category: string;
@@ -25,69 +23,56 @@ declare const meta: {
25
23
  category: string;
26
24
  };
27
25
  };
28
- placeholder: {
29
- control: "text";
26
+ color: {
27
+ control: "select";
28
+ options: string[];
30
29
  description: string;
31
30
  table: {
32
31
  category: string;
33
32
  };
34
33
  };
35
- options: {
36
- control: "object";
34
+ size: {
35
+ control: "select";
36
+ options: string[];
37
37
  description: string;
38
38
  table: {
39
39
  category: string;
40
40
  };
41
41
  };
42
- backgroundColorToken: {
43
- control: "select";
44
- options: ColorToken[];
42
+ highContrast: {
43
+ control: "boolean";
45
44
  description: string;
46
45
  table: {
47
46
  category: string;
48
47
  };
49
48
  };
50
- textColorToken: {
49
+ radius: {
51
50
  control: "select";
52
- options: ColorToken[];
51
+ options: string[];
53
52
  description: string;
54
53
  table: {
55
54
  category: string;
56
55
  };
57
56
  };
58
- m: {
59
- table: {
60
- disable: boolean;
61
- };
62
- };
63
- mx: {
64
- table: {
65
- disable: boolean;
66
- };
67
- };
68
- my: {
69
- table: {
70
- disable: boolean;
71
- };
72
- };
73
- mt: {
74
- table: {
75
- disable: boolean;
76
- };
77
- };
78
- mr: {
57
+ backgroundColorToken: {
58
+ control: false;
59
+ description: string;
79
60
  table: {
80
- disable: boolean;
61
+ category: string;
81
62
  };
82
63
  };
83
- mb: {
64
+ textColorToken: {
65
+ control: false;
66
+ description: string;
84
67
  table: {
85
- disable: boolean;
68
+ category: string;
86
69
  };
87
70
  };
88
- ml: {
71
+ borderColorToken: {
72
+ control: false;
73
+ description: string;
89
74
  table: {
90
- disable: boolean;
75
+ category: string;
91
76
  };
92
77
  };
93
78
  };
@@ -95,7 +80,6 @@ declare const meta: {
95
80
  export default meta;
96
81
  type Story = StoryObj<typeof meta>;
97
82
  export declare const Default: Story;
98
- export declare const Sizes: Story;
99
83
  export declare const Variants: Story;
100
- export declare const WithDisabled: Story;
101
- export declare const InteractiveColorPicker: Story;
84
+ export declare const Colors: Story;
85
+ export declare const WithCustomColors: Story;
@@ -0,0 +1,2 @@
1
+ export { Badge } from "./Badge";
2
+ export type { BadgeProps, ColorToken } from "./Badge";
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Button Component
3
+ * A flexible button component that extends Radix UI with custom color tokens
4
+ */
5
+ import React from "react";
6
+ import { Button as RadixButton } from "@radix-ui/themes";
7
+ import { type ColorToken } from "../../../../tokens";
8
+ import "./Button.scss";
9
+ export type { ColorToken } from "../../../../tokens";
10
+ export interface ButtonProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixButton>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
11
+ backgroundColorToken?: ColorToken;
12
+ textColorToken?: ColorToken;
13
+ borderColorToken?: ColorToken;
14
+ className?: string;
15
+ }
16
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,32 +1,24 @@
1
1
  import React from "react";
2
2
  import type { StoryObj } from "@storybook/react-vite";
3
- import type { ColorToken } from "./Switch";
3
+ import type { ColorToken } from "./Button";
4
4
  declare const meta: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<import("./Switch").SwitchProps & React.RefAttributes<HTMLButtonElement>>;
6
+ component: React.ForwardRefExoticComponent<import("./Button").ButtonProps & React.RefAttributes<HTMLButtonElement>>;
7
7
  parameters: {
8
8
  layout: string;
9
9
  };
10
10
  tags: string[];
11
11
  argTypes: {
12
- label: {
12
+ children: {
13
13
  control: "text";
14
14
  description: string;
15
15
  table: {
16
16
  category: string;
17
17
  };
18
18
  };
19
- helperText: {
20
- control: "text";
21
- description: string;
22
- table: {
23
- category: string;
24
- };
25
- };
26
- size: {
19
+ variant: {
27
20
  control: "select";
28
21
  options: string[];
29
- description: string;
30
22
  table: {
31
23
  category: string;
32
24
  };
@@ -39,10 +31,9 @@ declare const meta: {
39
31
  category: string;
40
32
  };
41
33
  };
42
- variant: {
34
+ size: {
43
35
  control: "select";
44
36
  options: string[];
45
- description: string;
46
37
  table: {
47
38
  category: string;
48
39
  };
@@ -62,36 +53,23 @@ declare const meta: {
62
53
  category: string;
63
54
  };
64
55
  };
65
- disabled: {
66
- control: "boolean";
67
- description: string;
68
- table: {
69
- category: string;
70
- };
71
- };
72
- defaultChecked: {
73
- control: "boolean";
74
- description: string;
75
- table: {
76
- category: string;
77
- };
78
- };
79
- checked: {
80
- control: "boolean";
56
+ backgroundColorToken: {
57
+ control: "select";
58
+ options: ColorToken[];
81
59
  description: string;
82
60
  table: {
83
61
  category: string;
84
62
  };
85
63
  };
86
- labelPosition: {
64
+ textColorToken: {
87
65
  control: "select";
88
- options: string[];
66
+ options: ColorToken[];
89
67
  description: string;
90
68
  table: {
91
69
  category: string;
92
70
  };
93
71
  };
94
- backgroundColorToken: {
72
+ borderColorToken: {
95
73
  control: "select";
96
74
  options: ColorToken[];
97
75
  description: string;
@@ -99,17 +77,16 @@ declare const meta: {
99
77
  category: string;
100
78
  };
101
79
  };
102
- checkedColorToken: {
103
- control: "select";
104
- options: ColorToken[];
80
+ disabled: {
81
+ control: "boolean";
105
82
  description: string;
106
83
  table: {
107
84
  category: string;
108
85
  };
109
86
  };
110
- thumbColorToken: {
87
+ type: {
111
88
  control: "select";
112
- options: ColorToken[];
89
+ options: string[];
113
90
  description: string;
114
91
  table: {
115
92
  category: string;
@@ -150,16 +127,22 @@ declare const meta: {
150
127
  disable: boolean;
151
128
  };
152
129
  };
130
+ asChild: {
131
+ table: {
132
+ disable: true;
133
+ };
134
+ };
153
135
  };
154
136
  };
155
137
  export default meta;
156
138
  type Story = StoryObj<typeof meta>;
157
139
  export declare const Default: Story;
158
- export declare const WithLabel: Story;
159
- export declare const WithHelperText: Story;
160
- export declare const LabelLeft: Story;
140
+ export declare const SoftVariant: Story;
141
+ export declare const OutlineVariant: Story;
142
+ export declare const GhostVariant: Story;
161
143
  export declare const Disabled: Story;
162
- export declare const DisabledChecked: Story;
163
144
  export declare const Sizes: Story;
164
- export declare const Colors: Story;
145
+ export declare const AllVariants: Story;
146
+ export declare const RadixColors: Story;
147
+ export declare const TokenCustomization: Story;
165
148
  export declare const InteractiveColorPicker: Story;
@@ -0,0 +1,3 @@
1
+ export { Button } from "./Button";
2
+ export type { ButtonProps, ColorToken } from "./Button";
3
+ export { Button as default } from "./Button";
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { Callout as RadixCallout } from "@radix-ui/themes";
3
+ import { type ColorToken } from "../../../../tokens";
4
+ import "./Callout.scss";
5
+ export type { ColorToken } from "../../../../tokens";
6
+ export interface CalloutProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixCallout.Root>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
7
+ backgroundColorToken?: ColorToken;
8
+ textColorToken?: ColorToken;
9
+ className?: string;
10
+ }
11
+ export declare const Callout: React.ForwardRefExoticComponent<CalloutProps & React.RefAttributes<HTMLDivElement>> & {
12
+ Icon: React.ForwardRefExoticComponent<RadixCallout.IconProps & React.RefAttributes<HTMLDivElement>>;
13
+ Text: React.ForwardRefExoticComponent<RadixCallout.TextProps & React.RefAttributes<HTMLParagraphElement>>;
14
+ };
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import type { StoryObj } from "@storybook/react-vite";
3
+ declare const meta: {
4
+ title: string;
5
+ component: React.ForwardRefExoticComponent<import("./Callout").CalloutProps & React.RefAttributes<HTMLDivElement>> & {
6
+ Icon: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/callout").IconProps & React.RefAttributes<HTMLDivElement>>;
7
+ Text: React.ForwardRefExoticComponent<import("@radix-ui/themes/components/callout").TextProps & React.RefAttributes<HTMLParagraphElement>>;
8
+ };
9
+ parameters: {
10
+ layout: string;
11
+ };
12
+ tags: string[];
13
+ };
14
+ export default meta;
15
+ type Story = StoryObj<typeof meta>;
16
+ export declare const Default: Story;
17
+ export declare const Colors: Story;
@@ -0,0 +1,2 @@
1
+ export { Callout } from "./Callout";
2
+ export type { CalloutProps } from "./Callout";
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { Card as RadixCard } from "@radix-ui/themes";
3
+ import { type ColorToken } from "../../../../tokens";
4
+ import "./Card.scss";
5
+ export type { ColorToken } from "../../../../tokens";
6
+ export interface CardProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixCard>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
7
+ backgroundColorToken?: ColorToken;
8
+ textColorToken?: ColorToken;
9
+ borderColorToken?: ColorToken;
10
+ className?: string;
11
+ }
12
+ export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ export { Card } from "./Card";
2
+ export type { CardProps, ColorToken } from "./Card";
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { Checkbox as RadixCheckbox } from "@radix-ui/themes";
3
+ import { type ColorToken } from "../../../../tokens";
4
+ import "./Checkbox.scss";
5
+ export type { ColorToken } from "../../../../tokens";
6
+ export interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<typeof RadixCheckbox>, "m" | "mx" | "my" | "mt" | "mr" | "mb" | "ml"> {
7
+ backgroundColorToken?: ColorToken;
8
+ borderColorToken?: ColorToken;
9
+ className?: string;
10
+ }
11
+ export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;