@dimasbaguspm/versaur 0.0.0

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 (260) hide show
  1. package/README.md +81 -0
  2. package/dist/alert-DzSPXqwS.js +167 -0
  3. package/dist/app-bar-B4nQkgdL.js +92 -0
  4. package/dist/avatar-Bsn24V6g.js +91 -0
  5. package/dist/badge-DqLCHm9q.js +184 -0
  6. package/dist/bottom-bar-DOQ3gVwW.js +73 -0
  7. package/dist/breadcrumbs-PJV3izUu.js +59 -0
  8. package/dist/button-C8OibEPE.js +81 -0
  9. package/dist/button-float-B8tdLJkX.js +107 -0
  10. package/dist/button-icon-CWji4cBA.js +89 -0
  11. package/dist/calendar-CkLj89o2.js +112 -0
  12. package/dist/checkbox-input-CSboebwt.js +167 -0
  13. package/dist/chip-input-C1PJPDFq.js +189 -0
  14. package/dist/cn-Ca4KprQ1.js +2730 -0
  15. package/dist/components/alert/alert.atoms.d.ts +6 -0
  16. package/dist/components/alert/alert.d.ts +31 -0
  17. package/dist/components/alert/alert.stories.d.ts +42 -0
  18. package/dist/components/alert/helpers.d.ts +14 -0
  19. package/dist/components/alert/index.d.ts +2 -0
  20. package/dist/components/alert/types.d.ts +50 -0
  21. package/dist/components/alert.js +4 -0
  22. package/dist/components/app-bar/app-bar.atoms.d.ts +21 -0
  23. package/dist/components/app-bar/app-bar.d.ts +8 -0
  24. package/dist/components/app-bar/app-bar.stories.d.ts +19 -0
  25. package/dist/components/app-bar/helpers.d.ts +6 -0
  26. package/dist/components/app-bar/index.d.ts +2 -0
  27. package/dist/components/app-bar/types.d.ts +39 -0
  28. package/dist/components/app-bar.js +4 -0
  29. package/dist/components/avatar/avatar.atoms.d.ts +13 -0
  30. package/dist/components/avatar/avatar.d.ts +24 -0
  31. package/dist/components/avatar/avatar.stories.d.ts +42 -0
  32. package/dist/components/avatar/helpers.d.ts +14 -0
  33. package/dist/components/avatar/index.d.ts +2 -0
  34. package/dist/components/avatar/types.d.ts +46 -0
  35. package/dist/components/avatar.js +4 -0
  36. package/dist/components/badge/badge.d.ts +24 -0
  37. package/dist/components/badge/badge.stories.d.ts +46 -0
  38. package/dist/components/badge/helpers.d.ts +10 -0
  39. package/dist/components/badge/index.d.ts +2 -0
  40. package/dist/components/badge/types.d.ts +44 -0
  41. package/dist/components/badge.js +4 -0
  42. package/dist/components/bottom-bar/bottom-bar.atoms.d.ts +2 -0
  43. package/dist/components/bottom-bar/bottom-bar.d.ts +4 -0
  44. package/dist/components/bottom-bar/bottom-bar.stories.d.ts +6 -0
  45. package/dist/components/bottom-bar/helpers.d.ts +7 -0
  46. package/dist/components/bottom-bar/index.d.ts +2 -0
  47. package/dist/components/bottom-bar/types.d.ts +32 -0
  48. package/dist/components/bottom-bar.js +4 -0
  49. package/dist/components/breadcrumbs/breadcrumbs.atoms.d.ts +9 -0
  50. package/dist/components/breadcrumbs/breadcrumbs.d.ts +16 -0
  51. package/dist/components/breadcrumbs/breadcrumbs.stories.d.ts +7 -0
  52. package/dist/components/breadcrumbs/helpers.d.ts +7 -0
  53. package/dist/components/breadcrumbs/index.d.ts +2 -0
  54. package/dist/components/breadcrumbs/types.d.ts +21 -0
  55. package/dist/components/breadcrumbs.js +4 -0
  56. package/dist/components/button/button.d.ts +3 -0
  57. package/dist/components/button/button.stories.d.ts +50 -0
  58. package/dist/components/button/index.d.ts +2 -0
  59. package/dist/components/button/types.d.ts +30 -0
  60. package/dist/components/button-float/button-float.d.ts +8 -0
  61. package/dist/components/button-float/button-float.stories.d.ts +27 -0
  62. package/dist/components/button-float/helpers.d.ts +4 -0
  63. package/dist/components/button-float/index.d.ts +2 -0
  64. package/dist/components/button-float/types.d.ts +31 -0
  65. package/dist/components/button-float.js +4 -0
  66. package/dist/components/button-icon/button-icon.d.ts +3 -0
  67. package/dist/components/button-icon/button-icon.stories.d.ts +45 -0
  68. package/dist/components/button-icon/index.d.ts +2 -0
  69. package/dist/components/button-icon/types.d.ts +48 -0
  70. package/dist/components/button-icon.js +4 -0
  71. package/dist/components/button.js +4 -0
  72. package/dist/components/calendar/calendar.d.ts +8 -0
  73. package/dist/components/calendar/calendar.stories.d.ts +6 -0
  74. package/dist/components/calendar/index.d.ts +2 -0
  75. package/dist/components/calendar/types.d.ts +20 -0
  76. package/dist/components/calendar.js +4 -0
  77. package/dist/components/checkbox-input/checkbox-input.atoms.d.ts +9 -0
  78. package/dist/components/checkbox-input/checkbox-input.d.ts +5 -0
  79. package/dist/components/checkbox-input/checkbox-input.stories.d.ts +44 -0
  80. package/dist/components/checkbox-input/context.d.ts +10 -0
  81. package/dist/components/checkbox-input/helpers.d.ts +11 -0
  82. package/dist/components/checkbox-input/index.d.ts +2 -0
  83. package/dist/components/checkbox-input/types.d.ts +46 -0
  84. package/dist/components/checkbox-input.js +4 -0
  85. package/dist/components/chip-input/chip-input.atoms.d.ts +10 -0
  86. package/dist/components/chip-input/chip-input.d.ts +5 -0
  87. package/dist/components/chip-input/chip-input.stories.d.ts +12 -0
  88. package/dist/components/chip-input/context.d.ts +11 -0
  89. package/dist/components/chip-input/helpers.d.ts +4 -0
  90. package/dist/components/chip-input/index.d.ts +2 -0
  91. package/dist/components/chip-input/types.d.ts +51 -0
  92. package/dist/components/chip-input.js +4 -0
  93. package/dist/components/date-single-picker-input/date-single-picker-input.atoms.d.ts +13 -0
  94. package/dist/components/date-single-picker-input/date-single-picker-input.d.ts +10 -0
  95. package/dist/components/date-single-picker-input/date-single-picker-input.docked.d.ts +14 -0
  96. package/dist/components/date-single-picker-input/date-single-picker-input.docked.stories.d.ts +10 -0
  97. package/dist/components/date-single-picker-input/date-single-picker-input.modal.d.ts +15 -0
  98. package/dist/components/date-single-picker-input/date-single-picker-input.modal.stories.d.ts +10 -0
  99. package/dist/components/date-single-picker-input/helpers.d.ts +3 -0
  100. package/dist/components/date-single-picker-input/index.d.ts +2 -0
  101. package/dist/components/date-single-picker-input/types.d.ts +75 -0
  102. package/dist/components/date-single-picker-input/use-date-single-picker.d.ts +10 -0
  103. package/dist/components/date-single-picker-input.js +4 -0
  104. package/dist/components/drawer/context.d.ts +11 -0
  105. package/dist/components/drawer/drawer.atoms.d.ts +23 -0
  106. package/dist/components/drawer/drawer.d.ts +16 -0
  107. package/dist/components/drawer/drawer.stories.d.ts +41 -0
  108. package/dist/components/drawer/helpers.d.ts +39 -0
  109. package/dist/components/drawer/index.d.ts +10 -0
  110. package/dist/components/drawer/types.d.ts +93 -0
  111. package/dist/components/drawer.js +9 -0
  112. package/dist/components/icon/helpers.d.ts +4 -0
  113. package/dist/components/icon/icon.d.ts +8 -0
  114. package/dist/components/icon/icon.stories.d.ts +39 -0
  115. package/dist/components/icon/index.d.ts +2 -0
  116. package/dist/components/icon/types.d.ts +13 -0
  117. package/dist/components/icon.js +4 -0
  118. package/dist/components/index.d.ts +29 -0
  119. package/dist/components/loading-indicator/helpers.d.ts +9 -0
  120. package/dist/components/loading-indicator/index.d.ts +1 -0
  121. package/dist/components/loading-indicator/loading-indicator.atoms.d.ts +10 -0
  122. package/dist/components/loading-indicator/loading-indicator.d.ts +7 -0
  123. package/dist/components/loading-indicator/loading-indicator.stories.d.ts +16 -0
  124. package/dist/components/loading-indicator/types.d.ts +29 -0
  125. package/dist/components/loading-indicator.js +4 -0
  126. package/dist/components/menu/context.d.ts +13 -0
  127. package/dist/components/menu/helpers.d.ts +8 -0
  128. package/dist/components/menu/index.d.ts +2 -0
  129. package/dist/components/menu/menu.atoms.d.ts +14 -0
  130. package/dist/components/menu/menu.d.ts +7 -0
  131. package/dist/components/menu/menu.stories.d.ts +22 -0
  132. package/dist/components/menu/types.d.ts +36 -0
  133. package/dist/components/menu/use-menu.d.ts +3 -0
  134. package/dist/components/menu.js +4 -0
  135. package/dist/components/modal/helpers.d.ts +7 -0
  136. package/dist/components/modal/index.d.ts +2 -0
  137. package/dist/components/modal/modal.atoms.d.ts +8 -0
  138. package/dist/components/modal/modal.d.ts +7 -0
  139. package/dist/components/modal/modal.stories.d.ts +13 -0
  140. package/dist/components/modal/types.d.ts +48 -0
  141. package/dist/components/modal/use-escape-close.d.ts +6 -0
  142. package/dist/components/modal/use-focus-trap.d.ts +6 -0
  143. package/dist/components/modal.js +4 -0
  144. package/dist/components/radio-input/context.d.ts +11 -0
  145. package/dist/components/radio-input/helpers.d.ts +11 -0
  146. package/dist/components/radio-input/index.d.ts +2 -0
  147. package/dist/components/radio-input/radio-input.atoms.d.ts +9 -0
  148. package/dist/components/radio-input/radio-input.d.ts +5 -0
  149. package/dist/components/radio-input/radio-input.stories.d.ts +74 -0
  150. package/dist/components/radio-input/types.d.ts +54 -0
  151. package/dist/components/radio-input.js +4 -0
  152. package/dist/components/segment-multiple-input/context.d.ts +12 -0
  153. package/dist/components/segment-multiple-input/helpers.d.ts +15 -0
  154. package/dist/components/segment-multiple-input/index.d.ts +2 -0
  155. package/dist/components/segment-multiple-input/segment-multiple-input.atoms.d.ts +12 -0
  156. package/dist/components/segment-multiple-input/segment-multiple-input.d.ts +7 -0
  157. package/dist/components/segment-multiple-input/segment-multiple-input.stories.d.ts +66 -0
  158. package/dist/components/segment-multiple-input/types.d.ts +55 -0
  159. package/dist/components/segment-multiple-input.js +4 -0
  160. package/dist/components/segment-single-input/context.d.ts +12 -0
  161. package/dist/components/segment-single-input/helpers.d.ts +15 -0
  162. package/dist/components/segment-single-input/index.d.ts +2 -0
  163. package/dist/components/segment-single-input/segment-single-input.atoms.d.ts +11 -0
  164. package/dist/components/segment-single-input/segment-single-input.d.ts +7 -0
  165. package/dist/components/segment-single-input/segment-single-input.stories.d.ts +57 -0
  166. package/dist/components/segment-single-input/types.d.ts +55 -0
  167. package/dist/components/segment-single-input.js +4 -0
  168. package/dist/components/select-input/helpers.d.ts +3 -0
  169. package/dist/components/select-input/index.d.ts +2 -0
  170. package/dist/components/select-input/select-input.d.ts +9 -0
  171. package/dist/components/select-input/select-input.stories.d.ts +50 -0
  172. package/dist/components/select-input/types.d.ts +29 -0
  173. package/dist/components/select-input.js +4 -0
  174. package/dist/components/skeleton/helpers.d.ts +6 -0
  175. package/dist/components/skeleton/index.d.ts +2 -0
  176. package/dist/components/skeleton/skeleton.d.ts +6 -0
  177. package/dist/components/skeleton/skeleton.stories.d.ts +25 -0
  178. package/dist/components/skeleton/types.d.ts +17 -0
  179. package/dist/components/skeleton.js +4 -0
  180. package/dist/components/snackbar/helpers.d.ts +8 -0
  181. package/dist/components/snackbar/index.d.ts +2 -0
  182. package/dist/components/snackbar/snackbar.atoms.d.ts +10 -0
  183. package/dist/components/snackbar/snackbar.d.ts +6 -0
  184. package/dist/components/snackbar/snackbar.stories.d.ts +8 -0
  185. package/dist/components/snackbar/types.d.ts +40 -0
  186. package/dist/components/snackbar.js +4 -0
  187. package/dist/components/switch-input/helpers.d.ts +18 -0
  188. package/dist/components/switch-input/index.d.ts +3 -0
  189. package/dist/components/switch-input/switch-input.atoms.d.ts +28 -0
  190. package/dist/components/switch-input/switch-input.d.ts +6 -0
  191. package/dist/components/switch-input/switch-input.stories.d.ts +10 -0
  192. package/dist/components/switch-input/types.d.ts +49 -0
  193. package/dist/components/switch-input.js +7 -0
  194. package/dist/components/tabs/context.d.ts +3 -0
  195. package/dist/components/tabs/helpers.d.ts +8 -0
  196. package/dist/components/tabs/index.d.ts +2 -0
  197. package/dist/components/tabs/tabs.atoms.d.ts +10 -0
  198. package/dist/components/tabs/tabs.d.ts +5 -0
  199. package/dist/components/tabs/tabs.stories.d.ts +17 -0
  200. package/dist/components/tabs/types.d.ts +41 -0
  201. package/dist/components/tabs/use-tab-indicator.d.ts +13 -0
  202. package/dist/components/tabs.js +4 -0
  203. package/dist/components/text/helpers.d.ts +18 -0
  204. package/dist/components/text/index.d.ts +2 -0
  205. package/dist/components/text/text.d.ts +7 -0
  206. package/dist/components/text/text.stories.d.ts +14 -0
  207. package/dist/components/text/types.d.ts +30 -0
  208. package/dist/components/text-input/helpers.d.ts +3 -0
  209. package/dist/components/text-input/index.d.ts +2 -0
  210. package/dist/components/text-input/text-input.d.ts +9 -0
  211. package/dist/components/text-input/text-input.stories.d.ts +20 -0
  212. package/dist/components/text-input/types.d.ts +33 -0
  213. package/dist/components/text-input.js +4 -0
  214. package/dist/components/text.js +4 -0
  215. package/dist/components/textarea-input/helpers.d.ts +4 -0
  216. package/dist/components/textarea-input/index.d.ts +2 -0
  217. package/dist/components/textarea-input/textarea-input.d.ts +10 -0
  218. package/dist/components/textarea-input/textarea-input.stories.d.ts +50 -0
  219. package/dist/components/textarea-input/types.d.ts +40 -0
  220. package/dist/components/textarea-input.js +4 -0
  221. package/dist/components/tile/helpers.d.ts +8 -0
  222. package/dist/components/tile/index.d.ts +2 -0
  223. package/dist/components/tile/tile.d.ts +11 -0
  224. package/dist/components/tile/tile.stories.d.ts +35 -0
  225. package/dist/components/tile/types.d.ts +23 -0
  226. package/dist/components/tile.js +4 -0
  227. package/dist/components/top-bar/helpers.d.ts +26 -0
  228. package/dist/components/top-bar/index.d.ts +2 -0
  229. package/dist/components/top-bar/top-bar.atoms.d.ts +6 -0
  230. package/dist/components/top-bar/top-bar.d.ts +8 -0
  231. package/dist/components/top-bar/top-bar.stories.d.ts +15 -0
  232. package/dist/components/top-bar/types.d.ts +38 -0
  233. package/dist/components/top-bar.js +4 -0
  234. package/dist/date-single-picker-input--Ew0O9NQ.js +252 -0
  235. package/dist/drawer-DrnAR2a4.js +218 -0
  236. package/dist/helpers-CEDtBUGM.js +37 -0
  237. package/dist/hooks/index.d.ts +1 -0
  238. package/dist/hooks/index.js +1 -0
  239. package/dist/icon-D-lTZMHY.js +44 -0
  240. package/dist/index-DU1SCUkk.js +329 -0
  241. package/dist/index.d.ts +2 -0
  242. package/dist/index.js +68 -0
  243. package/dist/loading-indicator-BZMnT5PA.js +168 -0
  244. package/dist/menu-BZvilMF7.js +174 -0
  245. package/dist/modal-BGAtqMl9.js +149 -0
  246. package/dist/radio-input-BRGoevZY.js +173 -0
  247. package/dist/segment-multiple-input-VwHCqFd6.js +229 -0
  248. package/dist/segment-single-input-Cqoo7-C2.js +228 -0
  249. package/dist/select-input-DCb0usvK.js +108 -0
  250. package/dist/skeleton-D4X5USf_.js +59 -0
  251. package/dist/snackbar-CYias-fJ.js +79 -0
  252. package/dist/styles.css +115 -0
  253. package/dist/switch-input-C5s1lvYh.js +186 -0
  254. package/dist/tabs-C8aRKfxS.js +216 -0
  255. package/dist/text-B7e-au41.js +120 -0
  256. package/dist/text-input-BsWvUk_H.js +73 -0
  257. package/dist/textarea-input-DZExXEE8.js +102 -0
  258. package/dist/tile-Du7YciCG.js +51 -0
  259. package/dist/top-bar-ErHvwR4K.js +62 -0
  260. package/package.json +97 -0
@@ -0,0 +1,8 @@
1
+ export declare const tabsTriggerVariants: (props?: ({
2
+ active?: boolean | null | undefined;
3
+ color?: "primary" | "secondary" | "tertiary" | "ghost" | "neutral" | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ export declare const tabsContainerVariants: (props?: ({} & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export declare const tabsIndicatorVariants: (props?: ({
7
+ color?: "primary" | "secondary" | "tertiary" | "ghost" | "neutral" | null | undefined;
8
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,2 @@
1
+ export { Tabs } from './tabs';
2
+ export * from './types';
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { TabsTriggerProps, TabsIndicatorProps } from './types';
3
+ /**
4
+ * TabsTrigger: Individual tab button
5
+ */
6
+ export declare const TabsTrigger: React.FC<TabsTriggerProps>;
7
+ /**
8
+ * TabsIndicator: Animated underline indicator for active tab
9
+ */
10
+ export declare const TabsIndicator: React.FC<TabsIndicatorProps>;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { TabsRootProps } from './types';
3
+ export declare const Tabs: React.FC<TabsRootProps> & {
4
+ Trigger: React.FC<import('./types').TabsTriggerProps>;
5
+ };
@@ -0,0 +1,17 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Tabs } from './tabs';
3
+ declare const meta: Meta<typeof Tabs>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Tabs>;
6
+ /**
7
+ * Basic vertical tabs
8
+ */
9
+ export declare const Basic: Story;
10
+ /**
11
+ * Tabs with color variants
12
+ */
13
+ export declare const ColorVariants: Story;
14
+ /**
15
+ * Tabs with scroll behavior
16
+ */
17
+ export declare const ScrollBehavior: Story;
@@ -0,0 +1,41 @@
1
+ import { ReactNode, HTMLAttributes } from 'react';
2
+ /**
3
+ * TabsContextValue: Shared state for compound/context Tabs
4
+ */
5
+ export interface TabsContextValue {
6
+ /** Currently active tab value */
7
+ activeTab: string;
8
+ /** Set active tab */
9
+ setActiveTab: (tab: string) => void;
10
+ /** Default color for triggers */
11
+ color?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'neutral';
12
+ }
13
+ /**
14
+ * TabsRootProps: Props for Tabs root
15
+ */
16
+ export interface TabsRootProps extends HTMLAttributes<HTMLDivElement> {
17
+ /** Controlled tab value */
18
+ value: string;
19
+ /** Callback when tab changes */
20
+ onValueChange: (tab: string) => void;
21
+ /** Color for triggers */
22
+ color?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'neutral';
23
+ /** Children: Tabs.Trigger */
24
+ children: ReactNode;
25
+ }
26
+ /**
27
+ * TabsTriggerProps: Individual tab button
28
+ */
29
+ export interface TabsTriggerProps extends HTMLAttributes<HTMLButtonElement> {
30
+ /** Tab value (unique string) */
31
+ value: string;
32
+ /** Children: tab label */
33
+ children: ReactNode;
34
+ }
35
+ /**
36
+ * TabsIndicatorProps: Animated underline indicator for active tab
37
+ */
38
+ export interface TabsIndicatorProps extends HTMLAttributes<HTMLDivElement> {
39
+ left: number;
40
+ width: number;
41
+ }
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * useTabIndicatorAndFocus
4
+ * Handles indicator position and focusing the active tab in a tablist
5
+ * @param value - active tab value
6
+ * @param containerRef - ref to the tablist container
7
+ * @param children - tablist children (for effect dependency)
8
+ * @returns { left: number, width: number }
9
+ */
10
+ export declare function useTabIndicatorAndFocus(value: string, containerRef: React.RefObject<HTMLDivElement | null>, children: React.ReactNode): {
11
+ left: number;
12
+ width: number;
13
+ };
@@ -0,0 +1,4 @@
1
+ import { T as r } from "../tabs-C8aRKfxS.js";
2
+ export {
3
+ r as Tabs
4
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Text variants for Versaur design system
3
+ * Supports color, underline, and capitalization
4
+ */
5
+ /**
6
+ * Extended text variants for Versaur design system
7
+ * Adds support for align, italic, clamp, ellipsis, fontWeight, fontSize, lineHeight
8
+ */
9
+ export declare const textVariants: (props?: ({
10
+ color?: "primary" | "secondary" | "tertiary" | "ghost" | "neutral" | "success" | "info" | "warning" | "danger" | null | undefined;
11
+ hasUnderline?: boolean | null | undefined;
12
+ isCapitalize?: boolean | null | undefined;
13
+ align?: "center" | "right" | "left" | "justify" | null | undefined;
14
+ italic?: boolean | null | undefined;
15
+ clamp?: 2 | 1 | "none" | 3 | 4 | 5 | null | undefined;
16
+ ellipsis?: boolean | null | undefined;
17
+ as?: "span" | "label" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | null | undefined;
18
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,2 @@
1
+ export { Text } from './text';
2
+ export type * from './types';
@@ -0,0 +1,7 @@
1
+ import { TextProps } from './types';
2
+ /**
3
+ * Text component for Versaur UI
4
+ * Provides semantic typography, color, underline, and capitalization support
5
+ * @example <Text as="h1" color="primary" hasUnderline isCapitalize>bar</Text>
6
+ */
7
+ export declare const Text: import('react').ForwardRefExoticComponent<TextProps & import('react').RefAttributes<HTMLElement>>;
@@ -0,0 +1,14 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Text } from './text';
3
+ declare const meta: Meta<typeof Text>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Text>;
6
+ export declare const Default: Story;
7
+ export declare const Heading: Story;
8
+ export declare const SubHeading: Story;
9
+ export declare const Paragraph: Story;
10
+ export declare const ItalicText: Story;
11
+ export declare const UnderlineCapitalize: Story;
12
+ export declare const ClampEllipsis: Story;
13
+ export declare const ColorVariants: Story;
14
+ export declare const AsVariants: Story;
@@ -0,0 +1,30 @@
1
+ import { HTMLAttributes, ElementType, ReactNode } from 'react';
2
+ /**
3
+ * TextProps defines the props for the Text component
4
+ * @property as - HTML element to render (e.g., 'span', 'h1', 'p')
5
+ * @property color - Versaur color system (primary, secondary, tertiary, ghost, neutral, success, info, warning, danger)
6
+ * @property hasUnderline - Whether to underline the text
7
+ * @property isCapitalize - Whether to capitalize the text
8
+ * @property className - Additional CSS classes
9
+ * @property children - Text content
10
+ */
11
+ export interface TextProps extends HTMLAttributes<HTMLElement> {
12
+ /** HTML element to render (e.g., 'span', 'h1', 'p') */
13
+ as?: ElementType;
14
+ /** Versaur color system */
15
+ color?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'neutral' | 'success' | 'info' | 'warning' | 'danger';
16
+ /** Underline text */
17
+ hasUnderline?: boolean;
18
+ /** Capitalize text */
19
+ isCapitalize?: boolean;
20
+ /** Text alignment */
21
+ align?: 'left' | 'center' | 'right' | 'justify';
22
+ /** Italic text */
23
+ italic?: boolean;
24
+ /** Clamp lines (1-5) or none */
25
+ clamp?: 1 | 2 | 3 | 4 | 5 | 'none';
26
+ /** Ellipsis (truncate) */
27
+ ellipsis?: boolean;
28
+ /** Text content */
29
+ children: ReactNode;
30
+ }
@@ -0,0 +1,3 @@
1
+ export declare const textInputVariants: (props?: ({
2
+ variant?: "primary" | "secondary" | "tertiary" | "ghost" | "neutral" | "success" | "info" | "warning" | "danger" | "primary-outline" | "secondary-outline" | "tertiary-outline" | "ghost-outline" | "neutral-outline" | "success-outline" | "info-outline" | "warning-outline" | "danger-outline" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,2 @@
1
+ export { TextInput } from './text-input';
2
+ export type { TextInputProps } from './types';
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { TextInputProps } from './types';
3
+ /**
4
+ * TextInput component for Versaur UI
5
+ *
6
+ * Provides a styled input field with semantic color, variant, error, and disabled support
7
+ * Follows browser standards and accessibility best practices
8
+ */
9
+ export declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,20 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { TextInput } from './text-input';
3
+ declare const meta: Meta<typeof TextInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TextInput>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
9
+ export declare const Tertiary: Story;
10
+ export declare const WithLeftContent: Story;
11
+ export declare const WithRightContent: Story;
12
+ export declare const WithBothContent: Story;
13
+ export declare const Outline: Story;
14
+ export declare const Success: Story;
15
+ export declare const Warning: Story;
16
+ export declare const Error: Story;
17
+ export declare const Disabled: Story;
18
+ export declare const AllVariants: Story;
19
+ export declare const WithLabelAndCustomId: Story;
20
+ export declare const LabelWithError: Story;
@@ -0,0 +1,33 @@
1
+ import { InputHTMLAttributes, ReactNode } from 'react';
2
+ /**
3
+ * Props for the TextInput component
4
+ */
5
+ export interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
6
+ /**
7
+ * Visual style variant supporting Versaur color system
8
+ * Core variants: primary (coral), secondary (sage), tertiary (mist), ghost (slate), neutral (light gray)
9
+ * Semantic variants: success, info, warning, danger
10
+ * Each variant supports outline form for flexible design expression
11
+ */
12
+ variant?: 'primary' | 'primary-outline' | 'secondary' | 'secondary-outline' | 'tertiary' | 'tertiary-outline' | 'ghost' | 'ghost-outline' | 'neutral' | 'neutral-outline' | 'success' | 'success-outline' | 'info' | 'info-outline' | 'warning' | 'warning-outline' | 'danger' | 'danger-outline';
13
+ /**
14
+ * Label text to display above the input
15
+ */
16
+ label: ReactNode;
17
+ /**
18
+ * Optional content to display inside the input (left)
19
+ */
20
+ leftContent?: ReactNode;
21
+ /**
22
+ * Optional content to display inside the input (right)
23
+ */
24
+ rightContent?: ReactNode;
25
+ /**
26
+ * Helper text to display below the input
27
+ */
28
+ helperText?: ReactNode;
29
+ /**
30
+ * Error message for invalid state
31
+ */
32
+ error?: ReactNode;
33
+ }
@@ -0,0 +1,4 @@
1
+ import { T as o } from "../text-input-BsWvUk_H.js";
2
+ export {
3
+ o as TextInput
4
+ };
@@ -0,0 +1,4 @@
1
+ import { T as r } from "../text-B7e-au41.js";
2
+ export {
3
+ r as Text
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare const textAreaInputVariants: (props?: ({
2
+ variant?: "primary" | "secondary" | "tertiary" | "ghost" | "neutral" | "success" | "info" | "warning" | "danger" | "primary-outline" | "secondary-outline" | "tertiary-outline" | "ghost-outline" | "neutral-outline" | "success-outline" | "info-outline" | "warning-outline" | "danger-outline" | null | undefined;
3
+ fieldSizing?: "content" | "fixed" | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,2 @@
1
+ export { TextAreaInput } from './textarea-input';
2
+ export type { TextAreaInputProps } from './types';
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { TextAreaInputProps } from './types';
3
+ /**
4
+ * TextAreaInput component for Versaur UI
5
+ *
6
+ * Provides a styled textarea field with semantic color, variant, error, and disabled support
7
+ * Supports field-sizing for auto-resizing and configurable rows
8
+ * Follows browser standards and accessibility best practices
9
+ */
10
+ export declare const TextAreaInput: React.ForwardRefExoticComponent<TextAreaInputProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1,50 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { TextAreaInput } from './textarea-input';
3
+ /**
4
+ * TextAreaInput provides a styled textarea field for multi-line text input.
5
+ * It supports field-sizing for auto-resizing, configurable minimum height,
6
+ * and all the variant styles from the Versaur design system.
7
+ */
8
+ declare const meta: Meta<typeof TextAreaInput>;
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ /**
12
+ * Default textarea with primary variant and fixed sizing
13
+ */
14
+ export declare const Default: Story;
15
+ /**
16
+ * Auto-resizing textarea that grows with content using field-sizing: content
17
+ */
18
+ export declare const AutoResize: Story;
19
+ /**
20
+ * Custom row configuration for larger text areas
21
+ */
22
+ export declare const CustomRows: Story;
23
+ /**
24
+ * All color variants showcasing the Versaur design system
25
+ */
26
+ export declare const Variants: Story;
27
+ /**
28
+ * Outline variants for subtle styling
29
+ */
30
+ export declare const OutlineVariants: Story;
31
+ /**
32
+ * Semantic variants for different states and contexts
33
+ */
34
+ export declare const SemanticVariants: Story;
35
+ /**
36
+ * Error state with validation message
37
+ */
38
+ export declare const WithError: Story;
39
+ /**
40
+ * With helper text for additional guidance
41
+ */
42
+ export declare const WithHelperText: Story;
43
+ /**
44
+ * Disabled state for read-only scenarios
45
+ */
46
+ export declare const Disabled: Story;
47
+ /**
48
+ * Form example showing practical usage in a contact form
49
+ */
50
+ export declare const ContactForm: Story;
@@ -0,0 +1,40 @@
1
+ import { TextareaHTMLAttributes, ReactNode } from 'react';
2
+ /**
3
+ * Props for the TextAreaInput component
4
+ */
5
+ export interface TextAreaInputProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> {
6
+ /**
7
+ * Visual style variant supporting Versaur color system
8
+ * Core variants: primary (coral), secondary (sage), tertiary (mist), ghost (slate), neutral (light gray)
9
+ * Semantic variants: success, info, warning, danger
10
+ * Each variant supports outline form for flexible design expression
11
+ */
12
+ variant?: 'primary' | 'primary-outline' | 'secondary' | 'secondary-outline' | 'tertiary' | 'tertiary-outline' | 'ghost' | 'ghost-outline' | 'neutral' | 'neutral-outline' | 'success' | 'success-outline' | 'info' | 'info-outline' | 'warning' | 'warning-outline' | 'danger' | 'danger-outline';
13
+ /**
14
+ * Label text to display above the textarea
15
+ */
16
+ label: ReactNode;
17
+ /**
18
+ * Helper text to display below the textarea
19
+ */
20
+ helperText?: ReactNode;
21
+ /**
22
+ * Error message for invalid state
23
+ */
24
+ error?: ReactNode;
25
+ /**
26
+ * Minimum number of rows for the textarea
27
+ */
28
+ minRows?: number;
29
+ /**
30
+ * Maximum number of rows for the textarea
31
+ * Only applies when fieldSizing is 'fixed'
32
+ */
33
+ maxRows?: number;
34
+ /**
35
+ * Enable field-sizing CSS property for auto-resizing
36
+ * 'content' - Auto-resize to fit content (ignores maxRows)
37
+ * 'fixed' - Fixed size with manual resize handle (respects minRows/maxRows)
38
+ */
39
+ fieldSizing?: 'content' | 'fixed';
40
+ }
@@ -0,0 +1,4 @@
1
+ import { T as t } from "../textarea-input-DZExXEE8.js";
2
+ export {
3
+ t as TextAreaInput
4
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Tile component variants using class-variance-authority
3
+ */
4
+ export declare const tileVariants: (props?: ({
5
+ variant?: "primary" | "secondary" | "tertiary" | "ghost" | "neutral" | "success" | "info" | "warning" | "danger" | "white" | null | undefined;
6
+ size?: "sm" | "md" | "lg" | "xs" | "xl" | null | undefined;
7
+ shape?: "square" | "rounded" | null | undefined;
8
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,2 @@
1
+ export { Tile } from './tile';
2
+ export type { TileProps } from './types';
@@ -0,0 +1,11 @@
1
+ import { TileProps } from './types';
2
+ /**
3
+ * Tile component - A flexible box container with various styling options
4
+ *
5
+ * Features:
6
+ * - Multiple color variants with soft backgrounds
7
+ * - Configurable padding sizes
8
+ * - Rounded or square shapes
9
+ * - Accessible and semantic
10
+ */
11
+ export declare const Tile: import('react').ForwardRefExoticComponent<TileProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,35 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Tile } from './tile';
3
+ /**
4
+ * The Tile component is a flexible box container that provides a foundation for
5
+ * content layouts. It offers multiple color variants with soft backgrounds,
6
+ * configurable padding sizes, and shape options for rounded or square corners.
7
+ * Perfect for creating cards, panels, sections, and other content containers.
8
+ */
9
+ declare const meta: Meta<typeof Tile>;
10
+ export default meta;
11
+ type Story = StoryObj<typeof meta>;
12
+ /**
13
+ * Default tile with white background and medium padding
14
+ */
15
+ export declare const Default: Story;
16
+ /**
17
+ * All available color variants demonstrating the soft color palette
18
+ */
19
+ export declare const Variants: Story;
20
+ /**
21
+ * Different padding sizes from extra small to extra large
22
+ */
23
+ export declare const Sizes: Story;
24
+ /**
25
+ * Shape options: rounded corners (default) vs square corners
26
+ */
27
+ export declare const Shapes: Story;
28
+ /**
29
+ * Practical use case: Information card with content and styling
30
+ */
31
+ export declare const InfoCard: Story;
32
+ /**
33
+ * Dashboard-style layout using multiple tiles
34
+ */
35
+ export declare const Dashboard: Story;
@@ -0,0 +1,23 @@
1
+ import { HTMLAttributes } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { tileVariants } from './helpers';
4
+ /**
5
+ * Props for the Tile component
6
+ */
7
+ export interface TileProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof tileVariants> {
8
+ /**
9
+ * Visual appearance variant
10
+ * @default 'white'
11
+ */
12
+ variant?: 'white' | 'neutral' | 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'success' | 'info' | 'warning' | 'danger';
13
+ /**
14
+ * Size variant affecting padding
15
+ * @default 'md'
16
+ */
17
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
18
+ /**
19
+ * Shape variant for border radius
20
+ * @default 'rounded'
21
+ */
22
+ shape?: 'rounded' | 'square';
23
+ }
@@ -0,0 +1,4 @@
1
+ import { T as r } from "../tile-Du7YciCG.js";
2
+ export {
3
+ r as Tile
4
+ };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * TopBarRoot styles
3
+ */
4
+ export declare const topBarRootStyles: (props?: ({} & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ /**
6
+ * TopBarLeading styles
7
+ */
8
+ export declare const topBarLeadingStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
9
+ /**
10
+ * TopBarTrailing styles
11
+ */
12
+ export declare const topBarTrailingStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
13
+ /**
14
+ * TopBarNavItem styles
15
+ */
16
+ export declare const topBarNavItemStyles: (props?: ({
17
+ active?: boolean | null | undefined;
18
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
19
+ /**
20
+ * TopBarNav styles (container for navigation items)
21
+ */
22
+ export declare const topBarNavStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
23
+ /**
24
+ * TopBarActions styles (container for action items)
25
+ */
26
+ export declare const topBarActionsStyles: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
@@ -0,0 +1,2 @@
1
+ export { TopBar } from './top-bar';
2
+ export * from './types';
@@ -0,0 +1,6 @@
1
+ import { TopBarLeadingProps, TopBarTrailingProps, TopBarNavItemProps } from './types';
2
+ export declare const TopBarNav: import('react').ForwardRefExoticComponent<TopBarLeadingProps & import('react').RefAttributes<HTMLDivElement>>;
3
+ export declare const TopBarActions: import('react').ForwardRefExoticComponent<TopBarTrailingProps & import('react').RefAttributes<HTMLDivElement>>;
4
+ export declare const TopBarLeading: import('react').ForwardRefExoticComponent<TopBarLeadingProps & import('react').RefAttributes<HTMLDivElement>>;
5
+ export declare const TopBarTrailing: import('react').ForwardRefExoticComponent<TopBarTrailingProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ export declare const TopBarNavItem: import('react').ForwardRefExoticComponent<TopBarNavItemProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
1
+ import { TopBarProps } from './types';
2
+ export declare const TopBar: import('react').ForwardRefExoticComponent<TopBarProps & import('react').RefAttributes<HTMLDivElement>> & {
3
+ Leading: import('react').ForwardRefExoticComponent<import('./types').TopBarLeadingProps & import('react').RefAttributes<HTMLDivElement>>;
4
+ Trailing: import('react').ForwardRefExoticComponent<import('./types').TopBarTrailingProps & import('react').RefAttributes<HTMLDivElement>>;
5
+ NavItem: import('react').ForwardRefExoticComponent<import('./types').TopBarNavItemProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ Nav: import('react').ForwardRefExoticComponent<import('./types').TopBarLeadingProps & import('react').RefAttributes<HTMLDivElement>>;
7
+ Actions: import('react').ForwardRefExoticComponent<import('./types').TopBarTrailingProps & import('react').RefAttributes<HTMLDivElement>>;
8
+ };
@@ -0,0 +1,15 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: import('react').ForwardRefExoticComponent<import('./types').TopBarProps & import('react').RefAttributes<HTMLDivElement>> & {
4
+ Leading: import('react').ForwardRefExoticComponent<import('./types').TopBarLeadingProps & import('react').RefAttributes<HTMLDivElement>>;
5
+ Trailing: import('react').ForwardRefExoticComponent<import('./types').TopBarTrailingProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ NavItem: import('react').ForwardRefExoticComponent<import('./types').TopBarNavItemProps & import('react').RefAttributes<HTMLDivElement>>;
7
+ Nav: import('react').ForwardRefExoticComponent<import('./types').TopBarLeadingProps & import('react').RefAttributes<HTMLDivElement>>;
8
+ Actions: import('react').ForwardRefExoticComponent<import('./types').TopBarTrailingProps & import('react').RefAttributes<HTMLDivElement>>;
9
+ };
10
+ parameters: {
11
+ layout: string;
12
+ };
13
+ };
14
+ export default _default;
15
+ export declare const Default: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,38 @@
1
+ import { HTMLAttributes } from 'react';
2
+ /**
3
+ * TopBarRoot - main container for TopBar layout
4
+ * Provides horizontal layout for desktop navigation/header
5
+ * Compound pattern: Leading, Trailing, NavItem
6
+ */
7
+ export type TopBarProps = HTMLAttributes<HTMLDivElement>;
8
+ /**
9
+ * TopBarLeading - left section (logo, brand, nav)
10
+ */
11
+ export interface TopBarLeadingProps extends HTMLAttributes<HTMLDivElement> {
12
+ /**
13
+ * Custom class for leading section
14
+ */
15
+ className?: string;
16
+ }
17
+ /**
18
+ * TopBarTrailing - right section (actions, profile, etc)
19
+ */
20
+ export interface TopBarTrailingProps extends HTMLAttributes<HTMLDivElement> {
21
+ /**
22
+ * Custom class for trailing section
23
+ */
24
+ className?: string;
25
+ }
26
+ /**
27
+ * TopBarNavItem - navigation item (link, button, etc)
28
+ */
29
+ export interface TopBarNavItemProps extends HTMLAttributes<HTMLDivElement> {
30
+ /**
31
+ * Whether the nav item is active
32
+ */
33
+ active?: boolean;
34
+ /**
35
+ * Custom class for nav item
36
+ */
37
+ className?: string;
38
+ }
@@ -0,0 +1,4 @@
1
+ import { T as a } from "../top-bar-ErHvwR4K.js";
2
+ export {
3
+ a as TopBar
4
+ };