@devalok/shilp-sutra 0.17.1 → 0.18.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 (317) hide show
  1. package/dist/_chunks/avatar.js +21 -19
  2. package/dist/_chunks/button-group.js +27 -0
  3. package/dist/_chunks/button.js +53 -35
  4. package/dist/_chunks/card.js +41 -31
  5. package/dist/_chunks/checkbox.js +11 -9
  6. package/dist/_chunks/date-utils.js +13 -0
  7. package/dist/_chunks/form.js +20 -20
  8. package/dist/_chunks/link-context.js +19 -0
  9. package/dist/_chunks/motion.js +1376 -0
  10. package/dist/_chunks/motion2.js +35 -0
  11. package/dist/_chunks/primitives.js +3499 -3920
  12. package/dist/_chunks/sidebar.js +225 -211
  13. package/dist/_chunks/spinner.js +58 -28
  14. package/dist/_chunks/tiptap.js +1 -1
  15. package/dist/_chunks/tooltip.js +27 -10
  16. package/dist/_chunks/tree-view.js +180 -178
  17. package/dist/_chunks/use-calendar.js +531 -515
  18. package/dist/_chunks/utils.js +3 -3
  19. package/dist/_chunks/vendor-client.js +1792 -1049
  20. package/dist/_chunks/vendor-utils.js +5123 -1169
  21. package/dist/composed/activity-feed.d.ts.map +1 -1
  22. package/dist/composed/activity-feed.js +71 -74
  23. package/dist/composed/avatar-group.js +36 -36
  24. package/dist/composed/command-palette.d.ts +1 -1
  25. package/dist/composed/command-palette.d.ts.map +1 -1
  26. package/dist/composed/command-palette.js +207 -158
  27. package/dist/composed/confirm-dialog.d.ts +3 -5
  28. package/dist/composed/confirm-dialog.d.ts.map +1 -1
  29. package/dist/composed/confirm-dialog.js +46 -41
  30. package/dist/composed/content-card.d.ts +1 -1
  31. package/dist/composed/content-card.js +29 -29
  32. package/dist/composed/date-picker/calendar-grid.d.ts +1 -1
  33. package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -1
  34. package/dist/composed/date-picker/date-picker.d.ts +1 -1
  35. package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
  36. package/dist/composed/date-picker/date-range-picker.d.ts +1 -1
  37. package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -1
  38. package/dist/composed/date-picker/date-time-picker.d.ts +1 -1
  39. package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -1
  40. package/dist/composed/date-picker/month-picker.d.ts +1 -1
  41. package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
  42. package/dist/composed/date-picker/presets.d.ts +1 -1
  43. package/dist/composed/date-picker/presets.d.ts.map +1 -1
  44. package/dist/composed/date-picker/time-picker.d.ts +1 -1
  45. package/dist/composed/date-picker/time-picker.d.ts.map +1 -1
  46. package/dist/composed/date-picker/year-picker.d.ts +1 -1
  47. package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
  48. package/dist/composed/empty-state.d.ts +1 -0
  49. package/dist/composed/empty-state.d.ts.map +1 -1
  50. package/dist/composed/empty-state.js +51 -47
  51. package/dist/composed/error-boundary.d.ts +1 -1
  52. package/dist/composed/error-boundary.d.ts.map +1 -1
  53. package/dist/composed/error-boundary.js +48 -48
  54. package/dist/composed/extensions/mention-suggestion.d.ts +1 -1
  55. package/dist/composed/extensions/mention-suggestion.d.ts.map +1 -1
  56. package/dist/composed/global-loading.d.ts +1 -1
  57. package/dist/composed/global-loading.d.ts.map +1 -1
  58. package/dist/composed/global-loading.js +23 -20
  59. package/dist/composed/index.d.ts +2 -4
  60. package/dist/composed/index.d.ts.map +1 -1
  61. package/dist/composed/index.js +26 -29
  62. package/dist/composed/loading-skeleton.d.ts +1 -1
  63. package/dist/composed/loading-skeleton.d.ts.map +1 -1
  64. package/dist/composed/loading-skeleton.js +92 -87
  65. package/dist/composed/member-picker.d.ts +1 -1
  66. package/dist/composed/member-picker.d.ts.map +1 -1
  67. package/dist/composed/member-picker.js +47 -43
  68. package/dist/composed/page-header.js +36 -36
  69. package/dist/composed/page-skeletons.d.ts +9 -3
  70. package/dist/composed/page-skeletons.d.ts.map +1 -1
  71. package/dist/composed/page-skeletons.js +58 -58
  72. package/dist/composed/priority-indicator.js +19 -19
  73. package/dist/composed/rich-text-editor.d.ts +3 -3
  74. package/dist/composed/rich-text-editor.d.ts.map +1 -1
  75. package/dist/composed/rich-text-editor.js +316 -309
  76. package/dist/composed/schedule-view.js +88 -88
  77. package/dist/composed/simple-tooltip.d.ts +2 -5
  78. package/dist/composed/simple-tooltip.d.ts.map +1 -1
  79. package/dist/composed/simple-tooltip.js +19 -14
  80. package/dist/composed/status-badge.d.ts +2 -1
  81. package/dist/composed/status-badge.d.ts.map +1 -1
  82. package/dist/composed/status-badge.js +76 -63
  83. package/dist/hooks/index.d.ts +2 -1
  84. package/dist/hooks/index.d.ts.map +1 -1
  85. package/dist/hooks/index.js +3 -4
  86. package/dist/hooks/use-toast.d.ts +15 -45
  87. package/dist/hooks/use-toast.d.ts.map +1 -1
  88. package/dist/hooks/use-toast.js +2 -95
  89. package/dist/motion/index.d.ts +4 -0
  90. package/dist/motion/index.d.ts.map +1 -0
  91. package/dist/motion/index.js +10 -0
  92. package/dist/motion/motion-provider.d.ts +18 -0
  93. package/dist/motion/motion-provider.d.ts.map +1 -0
  94. package/dist/motion/motion-provider.js +24 -0
  95. package/dist/motion/primitives-index.d.ts +3 -0
  96. package/dist/motion/primitives-index.d.ts.map +1 -0
  97. package/dist/motion/primitives-index.js +11 -0
  98. package/dist/motion/primitives.d.ts +38 -0
  99. package/dist/motion/primitives.d.ts.map +1 -0
  100. package/dist/motion/primitives.js +187 -0
  101. package/dist/shell/app-command-palette.d.ts +14 -5
  102. package/dist/shell/app-command-palette.d.ts.map +1 -1
  103. package/dist/shell/app-command-palette.js +152 -130
  104. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  105. package/dist/shell/bottom-navbar.js +90 -92
  106. package/dist/shell/command-registry.d.ts +23 -0
  107. package/dist/shell/command-registry.d.ts.map +1 -0
  108. package/dist/shell/command-registry.js +18 -0
  109. package/dist/shell/index.d.ts +2 -1
  110. package/dist/shell/index.d.ts.map +1 -1
  111. package/dist/shell/index.js +14 -11
  112. package/dist/shell/link-context.d.ts +6 -10
  113. package/dist/shell/link-context.d.ts.map +1 -1
  114. package/dist/shell/link-context.js +3 -16
  115. package/dist/shell/notification-center.d.ts.map +1 -1
  116. package/dist/shell/notification-center.js +137 -132
  117. package/dist/shell/notification-preferences.d.ts +10 -5
  118. package/dist/shell/notification-preferences.d.ts.map +1 -1
  119. package/dist/shell/notification-preferences.js +168 -164
  120. package/dist/shell/sidebar.js +119 -119
  121. package/dist/shell/top-bar.js +65 -65
  122. package/dist/tailwind/index.cjs +118 -297
  123. package/dist/tailwind/preset.d.ts.map +1 -1
  124. package/dist/tailwind/preset.js +118 -297
  125. package/dist/tokens/generate-scale.d.ts +86 -0
  126. package/dist/tokens/generate-scale.d.ts.map +1 -0
  127. package/dist/tokens/primitives.css +415 -187
  128. package/dist/tokens/semantic.css +244 -270
  129. package/dist/tokens/typography.css +6 -6
  130. package/dist/ui/accordion.d.ts.map +1 -1
  131. package/dist/ui/accordion.js +32 -22
  132. package/dist/ui/alert-dialog.d.ts +4 -1
  133. package/dist/ui/alert-dialog.d.ts.map +1 -1
  134. package/dist/ui/alert-dialog.js +114 -73
  135. package/dist/ui/alert.d.ts +6 -1
  136. package/dist/ui/alert.d.ts.map +1 -1
  137. package/dist/ui/alert.js +64 -49
  138. package/dist/ui/aspect-ratio.d.ts +2 -1
  139. package/dist/ui/aspect-ratio.d.ts.map +1 -1
  140. package/dist/ui/aspect-ratio.js +14 -4
  141. package/dist/ui/autocomplete.d.ts +11 -2
  142. package/dist/ui/autocomplete.d.ts.map +1 -1
  143. package/dist/ui/autocomplete.js +82 -57
  144. package/dist/ui/avatar.d.ts.map +1 -1
  145. package/dist/ui/avatar.js +45 -34
  146. package/dist/ui/badge.d.ts +1 -1
  147. package/dist/ui/badge.d.ts.map +1 -1
  148. package/dist/ui/badge.js +70 -65
  149. package/dist/ui/banner.d.ts.map +1 -1
  150. package/dist/ui/banner.js +53 -39
  151. package/dist/ui/breadcrumb.d.ts +2 -0
  152. package/dist/ui/breadcrumb.d.ts.map +1 -1
  153. package/dist/ui/breadcrumb.js +21 -21
  154. package/dist/ui/button.d.ts +10 -1
  155. package/dist/ui/button.d.ts.map +1 -1
  156. package/dist/ui/button.js +103 -67
  157. package/dist/ui/card.d.ts +2 -2
  158. package/dist/ui/card.d.ts.map +1 -1
  159. package/dist/ui/card.js +61 -53
  160. package/dist/ui/charts/_internal/animation.d.ts +1 -1
  161. package/dist/ui/charts/_internal/animation.d.ts.map +1 -1
  162. package/dist/ui/charts/area-chart.d.ts +3 -5
  163. package/dist/ui/charts/area-chart.d.ts.map +1 -1
  164. package/dist/ui/charts/bar-chart.d.ts +3 -5
  165. package/dist/ui/charts/bar-chart.d.ts.map +1 -1
  166. package/dist/ui/charts/chart-container.d.ts +2 -5
  167. package/dist/ui/charts/chart-container.d.ts.map +1 -1
  168. package/dist/ui/charts/gauge-chart.d.ts +3 -5
  169. package/dist/ui/charts/gauge-chart.d.ts.map +1 -1
  170. package/dist/ui/charts/index.js +1204 -1095
  171. package/dist/ui/charts/line-chart.d.ts +3 -5
  172. package/dist/ui/charts/line-chart.d.ts.map +1 -1
  173. package/dist/ui/charts/pie-chart.d.ts +2 -5
  174. package/dist/ui/charts/pie-chart.d.ts.map +1 -1
  175. package/dist/ui/charts/radar-chart.d.ts +3 -5
  176. package/dist/ui/charts/radar-chart.d.ts.map +1 -1
  177. package/dist/ui/charts/sparkline.d.ts +5 -5
  178. package/dist/ui/charts/sparkline.d.ts.map +1 -1
  179. package/dist/ui/checkbox.d.ts.map +1 -1
  180. package/dist/ui/checkbox.js +31 -19
  181. package/dist/ui/chip.d.ts +3 -2
  182. package/dist/ui/chip.d.ts.map +1 -1
  183. package/dist/ui/chip.js +62 -54
  184. package/dist/ui/code.js +16 -16
  185. package/dist/ui/collapsible.d.ts.map +1 -1
  186. package/dist/ui/collapsible.js +23 -15
  187. package/dist/ui/color-input.d.ts +1 -1
  188. package/dist/ui/color-input.d.ts.map +1 -1
  189. package/dist/ui/color-input.js +27 -27
  190. package/dist/ui/combobox.d.ts +2 -0
  191. package/dist/ui/combobox.d.ts.map +1 -1
  192. package/dist/ui/combobox.js +177 -166
  193. package/dist/ui/context-menu.d.ts +4 -2
  194. package/dist/ui/context-menu.d.ts.map +1 -1
  195. package/dist/ui/context-menu.js +146 -86
  196. package/dist/ui/data-table-toolbar.d.ts +3 -2
  197. package/dist/ui/data-table-toolbar.d.ts.map +1 -1
  198. package/dist/ui/data-table-toolbar.js +61 -59
  199. package/dist/ui/data-table.d.ts.map +1 -1
  200. package/dist/ui/data-table.js +289 -254
  201. package/dist/ui/dialog.d.ts +3 -1
  202. package/dist/ui/dialog.d.ts.map +1 -1
  203. package/dist/ui/dialog.js +114 -74
  204. package/dist/ui/dropdown-menu.d.ts +5 -3
  205. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  206. package/dist/ui/dropdown-menu.js +150 -89
  207. package/dist/ui/file-upload.d.ts.map +1 -1
  208. package/dist/ui/file-upload.js +169 -127
  209. package/dist/ui/form.d.ts.map +1 -1
  210. package/dist/ui/form.js +29 -26
  211. package/dist/ui/hover-card.d.ts +1 -1
  212. package/dist/ui/hover-card.d.ts.map +1 -1
  213. package/dist/ui/hover-card.js +53 -21
  214. package/dist/ui/index.d.ts +18 -18
  215. package/dist/ui/index.d.ts.map +1 -1
  216. package/dist/ui/index.js +432 -448
  217. package/dist/ui/input-otp.d.ts +2 -0
  218. package/dist/ui/input-otp.d.ts.map +1 -1
  219. package/dist/ui/input-otp.js +7 -7
  220. package/dist/ui/input.d.ts.map +1 -1
  221. package/dist/ui/input.js +36 -34
  222. package/dist/ui/label.js +12 -12
  223. package/dist/ui/lib/date-utils.d.ts +6 -0
  224. package/dist/ui/lib/date-utils.d.ts.map +1 -0
  225. package/dist/ui/lib/index.d.ts +7 -0
  226. package/dist/ui/lib/index.d.ts.map +1 -0
  227. package/dist/ui/lib/link-context.d.ts +13 -0
  228. package/dist/ui/lib/link-context.d.ts.map +1 -0
  229. package/dist/ui/lib/motion.d.ts +44 -9
  230. package/dist/ui/lib/motion.d.ts.map +1 -1
  231. package/dist/ui/lib/use-ripple.d.ts.map +1 -1
  232. package/dist/ui/lib/utils.js +1 -1
  233. package/dist/ui/link.js +11 -11
  234. package/dist/ui/menubar.d.ts +4 -2
  235. package/dist/ui/menubar.d.ts.map +1 -1
  236. package/dist/ui/menubar.js +141 -97
  237. package/dist/ui/navigation-menu.d.ts +2 -0
  238. package/dist/ui/navigation-menu.d.ts.map +1 -1
  239. package/dist/ui/navigation-menu.js +176 -73
  240. package/dist/ui/number-input.d.ts.map +1 -1
  241. package/dist/ui/number-input.js +56 -49
  242. package/dist/ui/pagination.js +22 -22
  243. package/dist/ui/popover.d.ts +2 -1
  244. package/dist/ui/popover.d.ts.map +1 -1
  245. package/dist/ui/popover.js +54 -22
  246. package/dist/ui/progress.d.ts.map +1 -1
  247. package/dist/ui/progress.js +58 -42
  248. package/dist/ui/radio.js +19 -19
  249. package/dist/ui/search-input.d.ts.map +1 -1
  250. package/dist/ui/search-input.js +28 -33
  251. package/dist/ui/segmented-control.d.ts +2 -2
  252. package/dist/ui/segmented-control.d.ts.map +1 -1
  253. package/dist/ui/segmented-control.js +143 -124
  254. package/dist/ui/select.d.ts.map +1 -1
  255. package/dist/ui/select.js +72 -61
  256. package/dist/ui/separator.js +11 -11
  257. package/dist/ui/sheet.d.ts +1 -1
  258. package/dist/ui/sheet.d.ts.map +1 -1
  259. package/dist/ui/sheet.js +111 -75
  260. package/dist/ui/sidebar.d.ts +6 -1
  261. package/dist/ui/sidebar.d.ts.map +1 -1
  262. package/dist/ui/sidebar.js +27 -25
  263. package/dist/ui/skeleton.js +1 -1
  264. package/dist/ui/slider.d.ts +9 -0
  265. package/dist/ui/slider.d.ts.map +1 -1
  266. package/dist/ui/slider.js +33 -27
  267. package/dist/ui/spinner.d.ts +32 -25
  268. package/dist/ui/spinner.d.ts.map +1 -1
  269. package/dist/ui/spinner.js +199 -40
  270. package/dist/ui/stat-card.d.ts.map +1 -1
  271. package/dist/ui/stat-card.js +183 -116
  272. package/dist/ui/stepper.d.ts +22 -1
  273. package/dist/ui/stepper.d.ts.map +1 -1
  274. package/dist/ui/stepper.js +121 -43
  275. package/dist/ui/switch.d.ts.map +1 -1
  276. package/dist/ui/switch.js +39 -26
  277. package/dist/ui/table.d.ts +3 -0
  278. package/dist/ui/table.d.ts.map +1 -1
  279. package/dist/ui/table.js +47 -47
  280. package/dist/ui/tabs.d.ts +4 -1
  281. package/dist/ui/tabs.d.ts.map +1 -1
  282. package/dist/ui/tabs.js +94 -44
  283. package/dist/ui/text.d.ts +3 -3
  284. package/dist/ui/text.js +1 -1
  285. package/dist/ui/textarea.d.ts.map +1 -1
  286. package/dist/ui/textarea.js +29 -27
  287. package/dist/ui/toast-types.d.ts +43 -0
  288. package/dist/ui/toast-types.d.ts.map +1 -0
  289. package/dist/ui/toast-types.js +2 -0
  290. package/dist/ui/toast.d.ts +60 -26
  291. package/dist/ui/toast.d.ts.map +1 -1
  292. package/dist/ui/toast.js +535 -89
  293. package/dist/ui/toaster.d.ts +19 -23
  294. package/dist/ui/toaster.d.ts.map +1 -1
  295. package/dist/ui/toaster.js +31 -21
  296. package/dist/ui/toggle-group.d.ts +2 -2
  297. package/dist/ui/toggle-group.d.ts.map +1 -1
  298. package/dist/ui/toggle-group.js +29 -26
  299. package/dist/ui/toggle.d.ts +2 -2
  300. package/dist/ui/toggle.d.ts.map +1 -1
  301. package/dist/ui/toggle.js +21 -17
  302. package/dist/ui/tooltip.d.ts +2 -1
  303. package/dist/ui/tooltip.d.ts.map +1 -1
  304. package/dist/ui/tooltip.js +58 -21
  305. package/dist/ui/tree-view/tree-view.d.ts +1 -1
  306. package/dist/ui/tree-view/tree-view.d.ts.map +1 -1
  307. package/llms-full.txt +221 -102
  308. package/llms.txt +65 -12
  309. package/package.json +674 -656
  310. package/dist/composed/upload-progress.d.ts +0 -33
  311. package/dist/composed/upload-progress.d.ts.map +0 -1
  312. package/dist/composed/upload-progress.js +0 -386
  313. package/dist/ui/lib/use-reduced-motion.d.ts +0 -4
  314. package/dist/ui/lib/use-reduced-motion.d.ts.map +0 -1
  315. package/dist/ui/transitions.d.ts +0 -17
  316. package/dist/ui/transitions.d.ts.map +0 -1
  317. package/dist/ui/transitions.js +0 -111
@@ -2,9 +2,11 @@
2
2
  import { jsxs as p, jsx as l } from "react/jsx-runtime";
3
3
  import * as i from "react";
4
4
  import { R as n, I as o, F as t } from "./primitives.js";
5
- import { e as u } from "./vendor-utils.js";
5
+ import { ag as u } from "./vendor-utils.js";
6
+ import { t as h } from "./motion2.js";
6
7
  import { c as r } from "./utils.js";
7
- const h = u("relative flex shrink-0 overflow-hidden", {
8
+ import { m as w } from "./motion.js";
9
+ const x = u("relative flex shrink-0 overflow-hidden", {
8
10
  variants: {
9
11
  size: {
10
12
  xs: "h-ds-xs w-ds-xs",
@@ -20,31 +22,31 @@ const h = u("relative flex shrink-0 overflow-hidden", {
20
22
  }
21
23
  },
22
24
  defaultVariants: { size: "md", shape: "circle" }
23
- }), w = {
24
- online: "bg-success",
25
- offline: "bg-layer-03",
26
- busy: "bg-error",
27
- away: "bg-warning"
28
- }, x = {
25
+ }), g = {
26
+ online: "bg-success-9",
27
+ offline: "bg-surface-3",
28
+ busy: "bg-error-9",
29
+ away: "bg-warning-9"
30
+ }, b = {
29
31
  online: "Online",
30
32
  offline: "Offline",
31
33
  busy: "Busy",
32
34
  away: "Away"
33
- }, b = {
35
+ }, y = {
34
36
  xs: "h-ds-02b w-ds-02b",
35
37
  sm: "h-[8px] w-[8px]",
36
38
  md: "h-ds-03 w-ds-03",
37
39
  lg: "h-[12px] w-[12px]",
38
40
  xl: "h-ds-04 w-ds-04"
39
- }, g = i.forwardRef(({ className: a, size: s, shape: e, status: d, children: m, ...f }, c) => p("span", { className: "relative inline-flex shrink-0", children: [l(n, { ref: c, className: r(h({ size: s, shape: e }), a), ...f, children: m }), d && l("span", { className: r("absolute bottom-0 right-0 rounded-ds-full ring-2 ring-layer-01", w[d], b[s ?? "md"]), role: "img", "aria-label": x[d] })] }));
40
- g.displayName = n.displayName;
41
- const y = i.forwardRef(({ className: a, ...s }, e) => l(o, { ref: e, className: r("aspect-square h-full w-full", a), ...s }));
42
- y.displayName = o.displayName;
43
- const v = i.forwardRef(({ className: a, ...s }, e) => l(t, { ref: e, className: r("flex h-full w-full items-center justify-center rounded-ds-full bg-interactive-subtle text-interactive", a), ...s }));
44
- v.displayName = t.displayName;
41
+ }, N = i.forwardRef(({ className: s, size: a, shape: e, status: d, children: m, ...c }, f) => p("span", { className: "relative inline-flex shrink-0", children: [l(n, { ref: f, className: r(x({ size: a, shape: e }), s), ...c, children: m }), d && l("span", { className: r("absolute bottom-0 right-0 rounded-ds-full ring-2 ring-surface-1", g[d], y[a ?? "md"]), role: "img", "aria-label": b[d] })] }));
42
+ N.displayName = n.displayName;
43
+ const v = i.forwardRef(({ className: s, ...a }, e) => l(w.span, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: h.fade, className: "h-full w-full", children: l(o, { ref: e, className: r("aspect-square h-full w-full", s), ...a }) }));
44
+ v.displayName = o.displayName;
45
+ const R = i.forwardRef(({ className: s, ...a }, e) => l(t, { ref: e, className: r("flex h-full w-full items-center justify-center rounded-ds-full bg-accent-2 text-accent-11", s), ...a }));
46
+ R.displayName = t.displayName;
45
47
  export {
46
- g as A,
47
- y as a,
48
- v as b,
49
- h as c
48
+ N as A,
49
+ v as a,
50
+ R as b,
51
+ x as c
50
52
  };
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import * as o from "react";
4
+ import { c as f } from "./utils.js";
5
+ const l = o.createContext({});
6
+ function h() {
7
+ return o.useContext(l);
8
+ }
9
+ const p = o.forwardRef(({ className: u, variant: t, color: n, size: e, orientation: i = "horizontal", children: d, ...s }, c) => {
10
+ const a = o.useMemo(() => ({ variant: t, color: n, size: e }), [t, n, e]);
11
+ return r(l.Provider, { value: a, children: r("div", { ref: c, role: "group", className: f("inline-flex", i === "horizontal" ? [
12
+ "flex-row",
13
+ "[&>*:not(:first-child)]:rounded-l-none",
14
+ "[&>*:not(:last-child)]:rounded-r-none",
15
+ "[&>*:not(:first-child)]:-ml-px"
16
+ ] : [
17
+ "flex-col",
18
+ "[&>*:not(:first-child)]:rounded-t-none",
19
+ "[&>*:not(:last-child)]:rounded-b-none",
20
+ "[&>*:not(:first-child)]:-mt-px"
21
+ ], u), ...s, children: d }) });
22
+ });
23
+ p.displayName = "ButtonGroup";
24
+ export {
25
+ p as B,
26
+ h as u
27
+ };
@@ -1,11 +1,15 @@
1
1
  "use client";
2
- import { jsx as r, jsxs as x } from "react/jsx-runtime";
3
- import { e as V } from "./vendor-utils.js";
4
- import { S as R, a as E } from "./primitives.js";
5
- import * as G from "react";
6
- import { u as M, S as q } from "./spinner.js";
7
- import { c as s } from "./utils.js";
8
- const p = V("inline-flex items-center justify-center gap-ds-03 whitespace-nowrap font-sans font-semibold select-none border border-transparent transition-[color,background-color,border-color,box-shadow,transform] duration-fast-01 ease-productive-standard active:translate-y-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-[0.38]", {
2
+ import { jsx as e, jsxs as C } from "react/jsx-runtime";
3
+ import { ag as K } from "./vendor-utils.js";
4
+ import { IconCheck as L, IconX as O } from "@tabler/icons-react";
5
+ import { S as P, a as Q } from "./primitives.js";
6
+ import * as n from "react";
7
+ import { u as U } from "./button-group.js";
8
+ import { s as Y } from "./motion2.js";
9
+ import { c as a } from "./utils.js";
10
+ import { S as Z } from "./spinner.js";
11
+ import { A as _, m as $ } from "./motion.js";
12
+ const R = K("inline-flex items-center justify-center gap-ds-03 whitespace-nowrap font-sans font-semibold select-none border border-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled", {
9
13
  variants: {
10
14
  variant: {
11
15
  solid: "",
@@ -15,7 +19,7 @@ const p = V("inline-flex items-center justify-center gap-ds-03 whitespace-nowrap
15
19
  ghost: "",
16
20
  destructive: "",
17
21
  // alias → solid + error
18
- link: "text-text-link underline-offset-4 hover:underline active:opacity-[0.8]"
22
+ link: "text-info-11 underline-offset-4 hover:underline active:opacity-80"
19
23
  },
20
24
  color: {
21
25
  default: "",
@@ -34,30 +38,30 @@ const p = V("inline-flex items-center justify-center gap-ds-03 whitespace-nowrap
34
38
  },
35
39
  compoundVariants: [
36
40
  // solid + default (primary)
37
- { variant: "solid", color: "default", className: "bg-interactive text-text-on-color hover:bg-interactive-hover active:bg-interactive-active shadow-01 hover:shadow-brand" },
41
+ { variant: "solid", color: "default", className: "bg-accent-9 text-accent-fg hover:bg-accent-10 active:bg-accent-10 shadow-01 hover:shadow-brand" },
38
42
  // "default" alias → same as solid + default
39
- { variant: "default", color: "default", className: "bg-interactive text-text-on-color hover:bg-interactive-hover active:bg-interactive-active shadow-01 hover:shadow-brand" },
40
- { variant: "default", color: "error", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
43
+ { variant: "default", color: "default", className: "bg-accent-9 text-accent-fg hover:bg-accent-10 active:bg-accent-10 shadow-01 hover:shadow-brand" },
44
+ { variant: "default", color: "error", className: "bg-error-9 text-accent-fg hover:bg-error-9 active:bg-error-9 shadow-01" },
41
45
  // "destructive" alias → solid + error
42
- { variant: "destructive", color: "default", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
43
- { variant: "destructive", color: "error", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
46
+ { variant: "destructive", color: "default", className: "bg-error-9 text-accent-fg hover:bg-error-9 active:bg-error-9 shadow-01" },
47
+ { variant: "destructive", color: "error", className: "bg-error-9 text-accent-fg hover:bg-error-9 active:bg-error-9 shadow-01" },
44
48
  // solid + error
45
- { variant: "solid", color: "error", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
49
+ { variant: "solid", color: "error", className: "bg-error-9 text-accent-fg hover:bg-error-9 active:bg-error-9 shadow-01" },
46
50
  // outline + default (secondary)
47
- { variant: "outline", color: "default", className: "bg-transparent text-interactive border-border-interactive hover:bg-interactive-subtle active:bg-layer-active" },
51
+ { variant: "outline", color: "default", className: "bg-transparent text-accent-11 border-accent-7 hover:bg-accent-2 active:bg-surface-4" },
48
52
  // outline + error (error-ghost)
49
- { variant: "outline", color: "error", className: "bg-transparent text-error border border-border-error hover:bg-error-surface active:bg-error-surface" },
53
+ { variant: "outline", color: "error", className: "bg-transparent text-error-11 border border-error-7 hover:bg-error-3 active:bg-error-3" },
50
54
  // ghost + default
51
- { variant: "ghost", color: "default", className: "bg-transparent text-text-secondary hover:bg-layer-02 hover:text-text-primary active:bg-layer-active" },
55
+ { variant: "ghost", color: "default", className: "bg-transparent text-surface-fg-muted hover:bg-surface-2 hover:text-surface-fg active:bg-surface-4" },
52
56
  // ghost + error
53
- { variant: "ghost", color: "error", className: "bg-transparent text-error hover:bg-error-surface hover:text-error active:bg-error-surface" }
57
+ { variant: "ghost", color: "error", className: "bg-transparent text-error-11 hover:bg-error-3 hover:text-error-11 active:bg-error-3" }
54
58
  ],
55
59
  defaultVariants: {
56
60
  variant: "solid",
57
61
  color: "default",
58
62
  size: "md"
59
63
  }
60
- }), A = {
64
+ }), W = {
61
65
  sm: "h-ico-sm w-ico-sm [&>svg]:h-ico-sm [&>svg]:w-ico-sm",
62
66
  md: "h-ico-sm w-ico-sm [&>svg]:h-ico-sm [&>svg]:w-ico-sm",
63
67
  lg: "h-ico-md w-ico-md [&>svg]:h-ico-md [&>svg]:w-ico-md",
@@ -65,7 +69,7 @@ const p = V("inline-flex items-center justify-center gap-ds-03 whitespace-nowrap
65
69
  "icon-sm": "h-ico-sm w-ico-sm [&>svg]:h-ico-sm [&>svg]:w-ico-sm",
66
70
  "icon-md": "h-ico-sm w-ico-sm [&>svg]:h-ico-sm [&>svg]:w-ico-sm",
67
71
  "icon-lg": "h-ico-md w-ico-md [&>svg]:h-ico-md [&>svg]:w-ico-md"
68
- }, D = {
72
+ }, ee = {
69
73
  sm: "sm",
70
74
  md: "sm",
71
75
  lg: "md",
@@ -73,23 +77,37 @@ const p = V("inline-flex items-center justify-center gap-ds-03 whitespace-nowrap
73
77
  "icon-sm": "sm",
74
78
  "icon-md": "sm",
75
79
  "icon-lg": "md"
76
- }, F = G.forwardRef(({ className: c, variant: w, color: N, size: y, asChild: S = !1, startIcon: d, endIcon: l, loading: e = !1, loadingPosition: t = "start", fullWidth: m = !1, disabled: v, children: a, ...u }, h) => {
77
- const i = M(), b = w ?? i.variant, f = N ?? i.color, o = y ?? i.size ?? "md", g = A[o], z = D[o], n = e ? r(q, { size: z }) : null;
78
- if (S) {
79
- const C = {
80
- className: s(p({ variant: b, color: f, size: o }), m && "w-full", c),
81
- ref: h,
82
- disabled: v || e,
83
- "aria-busy": e || void 0,
84
- ...u
80
+ }, re = n.forwardRef(({ className: h, variant: A, color: B, size: V, asChild: E = !1, startIcon: b, endIcon: p, loading: F = !1, loadingPosition: d = "start", fullWidth: w = !1, disabled: x, onClick: M, onClickAsync: m, asyncFeedbackDuration: T = 1500, children: c, ...N }, y) => {
81
+ const u = U(), S = A ?? u.variant, z = B ?? u.color, i = V ?? u.size ?? "md", f = W[i], G = ee[i], [t, l] = n.useState("idle"), j = n.useRef(), o = n.useRef(!0);
82
+ n.useEffect(() => () => {
83
+ o.current = !1, clearTimeout(j.current);
84
+ }, []);
85
+ const I = (v) => {
86
+ !m || t !== "idle" || (l("loading"), m(v).then(() => {
87
+ o.current && l("success");
88
+ }).catch(() => {
89
+ o.current && l("error");
90
+ }).finally(() => {
91
+ o.current && (j.current = setTimeout(() => {
92
+ o.current && l("idle");
93
+ }, T));
94
+ }));
95
+ }, k = !!m, r = k ? t === "loading" : F, s = t === "success" || t === "error", g = r ? e(Z, { size: G }) : null;
96
+ if (E) {
97
+ const v = {
98
+ className: a(R({ variant: S, color: z, size: i }), w && "w-full", h),
99
+ ref: y,
100
+ disabled: x || r,
101
+ "aria-busy": r || void 0,
102
+ ...N
85
103
  };
86
- return r(R, { ...C, children: r(E, { children: a }) });
104
+ return e(P, { ...v, children: e(Q, { children: c }) });
87
105
  }
88
- const j = () => e && t === "start" ? n : d ? r("span", { className: s("inline-flex shrink-0 items-center justify-center", g), children: d }) : null, k = () => e && t === "end" ? n : l ? r("span", { className: s("inline-flex shrink-0 items-center justify-center", g), children: l }) : null, B = () => e && t === "center" ? x("span", { className: "relative inline-flex items-center justify-center", children: [r("span", { className: "invisible", children: a }), r("span", { className: "absolute inset-0 flex items-center justify-center", children: n })] }) : a;
89
- return x("button", { className: s(p({ variant: b, color: f, size: o }), m && "w-full", c), ref: h, disabled: v || e, "aria-busy": e || void 0, ...u, children: [j(), B(), k()] });
106
+ const X = () => r && d === "start" ? g : b ? e("span", { className: a("inline-flex shrink-0 items-center justify-center", f), children: b }) : null, q = () => r && d === "end" ? g : p ? e("span", { className: a("inline-flex shrink-0 items-center justify-center", f), children: p }) : null, D = () => r && d === "center" ? C("span", { className: "relative inline-flex items-center justify-center", children: [e("span", { className: "invisible", children: c }), e("span", { className: "absolute inset-0 flex items-center justify-center", children: g })] }) : c, H = s ? t === "success" ? "bg-success-9 text-accent-fg border-transparent hover:bg-success-9" : "bg-error-9 text-accent-fg border-transparent hover:bg-error-9" : void 0, J = s ? e(_, { mode: "wait", children: e($.span, { initial: { opacity: 0, scale: 0.5 }, animate: { opacity: 1, scale: 1 }, exit: { opacity: 0, scale: 0.5 }, transition: Y.bouncy, className: a("inline-flex shrink-0 items-center justify-center", f), children: t === "success" ? e(L, { className: "h-full w-full" }) : e(O, { className: "h-full w-full" }) }, t) }) : null;
107
+ return C("button", { ...N, className: a(R({ variant: S, color: z, size: i }), w && "w-full", !r && !s && "active:scale-[0.97] transition-transform duration-100", H, s && "transition-colors duration-200", h), ref: y, disabled: x || r || s, "aria-busy": r || void 0, onClick: k ? I : M, children: [s ? J : X(), s ? c : D(), s ? null : q()] });
90
108
  });
91
- F.displayName = "Button";
109
+ re.displayName = "Button";
92
110
  export {
93
- F as B,
94
- p as b
111
+ re as B,
112
+ R as b
95
113
  };
@@ -1,40 +1,50 @@
1
1
  "use client";
2
- import { jsx as t } from "react/jsx-runtime";
2
+ import { jsx as s } from "react/jsx-runtime";
3
3
  import * as o from "react";
4
- import { bj as n, bk as c } from "./primitives.js";
5
- import { c as s } from "./utils.js";
6
- import { e as l } from "./vendor-utils.js";
7
- const f = o.forwardRef(({ className: e, error: r, ...a }, d) => t(n, { className: s("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-ds-full border-2 border-transparent shadow-01 transition-colors duration-fast-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-[0.38] data-[state=checked]:bg-interactive data-[state=unchecked]:bg-border-strong", r && "border-border-error data-[state=checked]:bg-error", e), ...a, ref: d, children: t(c, { className: s("pointer-events-none block h-ico-md w-ico-md rounded-ds-full bg-text-on-color shadow-02 ring-0 transition-transform duration-moderate-01 ease-bounce data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") }) }));
8
- f.displayName = n.displayName;
9
- const b = l("rounded-ds-lg text-text-primary", {
4
+ import { bc as f, bd as h } from "./primitives.js";
5
+ import { s as l, m as v } from "./motion2.js";
6
+ import { c as d } from "./utils.js";
7
+ import { m } from "./motion.js";
8
+ import { ag as N } from "./vendor-utils.js";
9
+ const C = o.forwardRef(({ className: e, error: a, checked: r, defaultChecked: n, onCheckedChange: t, ...i }, b) => {
10
+ const [u, p] = o.useState(n ?? !1), g = r !== void 0 ? r : u, w = o.useCallback((c) => {
11
+ r === void 0 && p(c), t == null || t(c);
12
+ }, [r, t]);
13
+ return s(f, { className: d("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-ds-full border-2 border-surface-border-strong shadow-01 transition-colors duration-fast-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-action-disabled data-[state=checked]:border-transparent data-[state=checked]:bg-accent-9 data-[state=unchecked]:bg-surface-border-strong", a && "border-error-7 data-[state=checked]:bg-error-9", e), checked: r, defaultChecked: n, onCheckedChange: w, ...i, ref: b, children: s(h, { asChild: !0, children: s(m.span, { className: "pointer-events-none block h-ico-md w-ico-md rounded-ds-full bg-accent-fg shadow-02 ring-0", animate: { x: g ? 20 : 0 }, transition: l.snappy }) }) });
14
+ });
15
+ C.displayName = f.displayName;
16
+ const y = N("rounded-ds-lg text-surface-fg", {
10
17
  variants: {
11
18
  variant: {
12
- default: "bg-layer-01 border border-border-subtle shadow-01",
13
- elevated: "bg-layer-01 border border-border-subtle shadow-02",
14
- outline: "bg-transparent border-2 border-border shadow-none",
15
- flat: "bg-layer-02 border-none shadow-none"
19
+ default: "bg-surface-1 border border-surface-border shadow-01",
20
+ elevated: "bg-surface-1 border border-surface-border shadow-02",
21
+ outline: "bg-transparent border-2 border-surface-border-strong shadow-none",
22
+ flat: "bg-surface-2 border-none shadow-none"
16
23
  }
17
24
  },
18
25
  defaultVariants: { variant: "default" }
19
- }), m = o.forwardRef(({ className: e, variant: r, interactive: a, ...d }, i) => t("div", { ref: i, className: s(b({ variant: r }), a && "hover:shadow-02 hover:border-border-strong hover:-translate-y-px active:scale-[0.98] cursor-pointer transition-all duration-fast-02 ease-productive-standard", e), ...d }));
20
- m.displayName = "Card";
21
- const p = o.forwardRef(({ className: e, ...r }, a) => t("div", { ref: a, className: s("flex flex-col space-y-ds-02b p-ds-06", e), ...r }));
22
- p.displayName = "CardHeader";
23
- const u = o.forwardRef(({ className: e, ...r }, a) => t("div", { ref: a, className: s("font-sans font-semibold leading-ds-none tracking-ds-tight text-text-primary", e), ...r }));
24
- u.displayName = "CardTitle";
25
- const h = o.forwardRef(({ className: e, ...r }, a) => t("div", { ref: a, className: s("text-ds-md text-text-secondary", e), ...r }));
26
- h.displayName = "CardDescription";
27
- const v = o.forwardRef(({ className: e, ...r }, a) => t("div", { ref: a, className: s("p-ds-06 pt-0", e), ...r }));
28
- v.displayName = "CardContent";
29
- const g = o.forwardRef(({ className: e, ...r }, a) => t("div", { ref: a, className: s("flex items-center p-ds-06 pt-0", e), ...r }));
30
- g.displayName = "CardFooter";
26
+ }), x = o.forwardRef(({ className: e, variant: a, interactive: r, ...n }, t) => {
27
+ const i = d(y({ variant: a }), r && "hover:shadow-02 hover:border-surface-border-strong cursor-pointer", e);
28
+ return r ? s(m.div, { ref: t, whileHover: { y: -2 }, whileTap: { scale: 0.98 }, transition: l.snappy, className: i, ...v(n) }) : s("div", { ref: t, className: i, ...n });
29
+ });
30
+ x.displayName = "Card";
31
+ const R = o.forwardRef(({ className: e, ...a }, r) => s("div", { ref: r, className: d("flex flex-col space-y-ds-02b p-ds-06", e), ...a }));
32
+ R.displayName = "CardHeader";
33
+ const k = o.forwardRef(({ className: e, ...a }, r) => s("div", { ref: r, className: d("font-sans font-semibold leading-ds-none tracking-ds-tight text-surface-fg", e), ...a }));
34
+ k.displayName = "CardTitle";
35
+ const T = o.forwardRef(({ className: e, ...a }, r) => s("div", { ref: r, className: d("text-ds-md text-surface-fg-muted", e), ...a }));
36
+ T.displayName = "CardDescription";
37
+ const H = o.forwardRef(({ className: e, ...a }, r) => s("div", { ref: r, className: d("p-ds-06 pt-0", e), ...a }));
38
+ H.displayName = "CardContent";
39
+ const S = o.forwardRef(({ className: e, ...a }, r) => s("div", { ref: r, className: d("flex items-center p-ds-06 pt-0", e), ...a }));
40
+ S.displayName = "CardFooter";
31
41
  export {
32
- m as C,
33
- f as S,
34
- p as a,
35
- u as b,
36
- v as c,
37
- h as d,
38
- g as e,
39
- b as f
42
+ x as C,
43
+ C as S,
44
+ R as a,
45
+ k as b,
46
+ H as c,
47
+ T as d,
48
+ S as e,
49
+ y as f
40
50
  };
@@ -1,14 +1,16 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { C as r, b as d } from "./primitives.js";
4
- import { IconMinus as m, IconCheck as l } from "@tabler/icons-react";
5
- import * as f from "react";
6
- import { c as b } from "./utils.js";
7
- const h = f.forwardRef(({ className: i, error: o, indeterminate: a, checked: c, ...s }, n) => {
8
- const t = a ? "indeterminate" : c;
9
- return e(r, { ref: n, checked: t, className: b("peer flex items-center justify-center h-ico-md w-ico-md shrink-0 rounded-ds-sm", "border border-border-strong", "bg-field", "transition-colors duration-fast-01", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2", "disabled:cursor-not-allowed disabled:opacity-[0.38]", "data-[state=checked]:bg-interactive data-[state=checked]:border-interactive data-[state=checked]:text-text-on-color", "data-[state=indeterminate]:bg-interactive data-[state=indeterminate]:border-interactive data-[state=indeterminate]:text-text-on-color", o && "border-border-error", i), ...s, children: e(d, { className: "flex items-center justify-center text-current animate-check-pop", children: t === "indeterminate" ? e(m, { className: "h-ico-sm w-ico-sm" }) : e(l, { className: "h-3 w-3" }) }) });
3
+ import { C as a, b as m } from "./primitives.js";
4
+ import { IconMinus as l, IconCheck as f } from "@tabler/icons-react";
5
+ import * as b from "react";
6
+ import { s as u } from "./motion2.js";
7
+ import { c as h } from "./utils.js";
8
+ import { A as p, m as x } from "./motion.js";
9
+ const g = b.forwardRef(({ className: c, error: i, indeterminate: r, checked: s, ...o }, n) => {
10
+ const t = r ? "indeterminate" : s, d = t === !0 || t === "indeterminate";
11
+ return e(a, { ref: n, checked: t, className: h("peer flex items-center justify-center h-ico-md w-ico-md shrink-0 rounded-ds-sm", "border border-surface-border-strong", "bg-surface-3", "transition-colors duration-fast-01", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2", "disabled:cursor-not-allowed disabled:opacity-action-disabled", "data-[state=checked]:bg-accent-9 data-[state=checked]:border-accent-7 data-[state=checked]:text-accent-fg", "data-[state=indeterminate]:bg-accent-9 data-[state=indeterminate]:border-accent-7 data-[state=indeterminate]:text-accent-fg", i && "border-error-7", c), ...o, children: e(p, { children: d && e(m, { forceMount: !0, asChild: !0, children: e(x.span, { className: "flex items-center justify-center text-current", initial: { scale: 0, opacity: 0 }, animate: { scale: 1, opacity: 1 }, exit: { scale: 0, opacity: 0 }, transition: u.bouncy, children: t === "indeterminate" ? e(l, { className: "h-ico-sm w-ico-sm" }) : e(f, { className: "h-ico-sm w-ico-sm" }) }) }) }) });
10
12
  });
11
- h.displayName = r.displayName;
13
+ g.displayName = a.displayName;
12
14
  export {
13
- h as C
15
+ g as C
14
16
  };
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ function a(t) {
3
+ const n = typeof t == "string" ? new Date(t) : t, f = (/* @__PURE__ */ new Date()).getTime() - n.getTime(), o = Math.floor(f / 6e4);
4
+ if (o < 1) return "Just now";
5
+ if (o < 60) return `${o}m ago`;
6
+ const e = Math.floor(o / 60);
7
+ if (e < 24) return `${e}h ago`;
8
+ const r = Math.floor(e / 24);
9
+ return r < 7 ? `${r}d ago` : n.toLocaleDateString("en-IN", { month: "short", day: "numeric" });
10
+ }
11
+ export {
12
+ a as f
13
+ };
@@ -1,27 +1,27 @@
1
1
  "use client";
2
- import { jsx as c } from "react/jsx-runtime";
2
+ import { jsx as d } from "react/jsx-runtime";
3
3
  import * as e from "react";
4
- import { c as i } from "./utils.js";
5
- const x = e.createContext({}), m = e.forwardRef(({ className: s, helperTextId: o, state: a = "helper", required: l, children: n, ...t }, r) => {
6
- const d = e.useId(), p = o || `${d}-helper`;
7
- return c(x.Provider, { value: { state: a, helperTextId: p, required: l }, children: c("div", { ref: r, className: i("flex flex-col gap-ds-02", s), ...t, children: n }) });
4
+ import { c as m } from "./utils.js";
5
+ const i = e.createContext({}), u = e.forwardRef(({ className: a, helperTextId: n, state: t = "helper", required: r, children: l, ...s }, o) => {
6
+ const c = e.useId(), x = n || `${c}-helper`, p = e.useMemo(() => ({ state: t, helperTextId: x, required: r }), [t, x, r]);
7
+ return d(i.Provider, { value: p, children: d("div", { ref: o, className: m("flex flex-col gap-ds-02", a), ...s, children: l }) });
8
8
  });
9
- m.displayName = "FormField";
10
- const u = {
11
- helper: "text-text-helper",
12
- error: "text-text-error",
13
- warning: "text-text-warning",
14
- success: "text-text-success"
15
- }, f = e.forwardRef(({ className: s, id: o, state: a, ...l }, n) => {
16
- const t = e.useContext(x), r = a ?? t.state ?? "helper", d = o ?? t.helperTextId;
17
- return c("p", { ref: n, id: d, role: r === "error" ? "alert" : void 0, className: i("text-ds-sm", u[r], s), ...l });
9
+ u.displayName = "FormField";
10
+ const f = {
11
+ helper: "text-surface-fg-subtle",
12
+ error: "text-error-11",
13
+ warning: "text-warning-11",
14
+ success: "text-success-11"
15
+ }, F = e.forwardRef(({ className: a, id: n, state: t, ...r }, l) => {
16
+ const s = e.useContext(i), o = t ?? s.state ?? "helper", c = n ?? s.helperTextId;
17
+ return d("p", { ref: l, id: c, role: o === "error" ? "alert" : void 0, className: m("text-ds-sm", f[o], a), ...r });
18
18
  });
19
- f.displayName = "FormHelperText";
20
- function C() {
21
- return e.useContext(x);
19
+ F.displayName = "FormHelperText";
20
+ function I() {
21
+ return e.useContext(i);
22
22
  }
23
23
  export {
24
- m as F,
25
- f as a,
26
- C as u
24
+ u as F,
25
+ F as a,
26
+ I as u
27
27
  };
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import * as n from "react";
4
+ const o = n.forwardRef(({ href: t, ...e }, i) => /* @__PURE__ */ r("a", { ref: i, href: t, ...e }));
5
+ o.displayName = "DefaultLink";
6
+ const a = n.createContext(o);
7
+ function s({
8
+ component: t,
9
+ children: e
10
+ }) {
11
+ return /* @__PURE__ */ r(a.Provider, { value: t, children: e });
12
+ }
13
+ function f() {
14
+ return n.useContext(a);
15
+ }
16
+ export {
17
+ s as L,
18
+ f as u
19
+ };