@devalok/shilp-sutra 0.17.2 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/dist/_chunks/framer.js +1376 -0
  2. package/dist/_chunks/link-context.js +19 -0
  3. package/dist/_chunks/motion-provider.js +24 -0
  4. package/dist/_chunks/primitives.js +3499 -3920
  5. package/dist/_chunks/tiptap.js +1 -1
  6. package/dist/_chunks/tree-view.js +183 -181
  7. package/dist/_chunks/use-calendar.js +531 -515
  8. package/dist/_chunks/vendor-client.js +1792 -1049
  9. package/dist/_chunks/vendor-utils.js +5123 -1169
  10. package/dist/composed/activity-feed.d.ts.map +1 -1
  11. package/dist/composed/activity-feed.js +75 -78
  12. package/dist/composed/avatar-group.js +33 -33
  13. package/dist/composed/command-palette.d.ts +1 -1
  14. package/dist/composed/command-palette.d.ts.map +1 -1
  15. package/dist/composed/command-palette.js +207 -158
  16. package/dist/composed/confirm-dialog.d.ts +3 -5
  17. package/dist/composed/confirm-dialog.d.ts.map +1 -1
  18. package/dist/composed/confirm-dialog.js +47 -42
  19. package/dist/composed/content-card.d.ts +1 -1
  20. package/dist/composed/content-card.js +30 -30
  21. package/dist/composed/date-picker/calendar-grid.d.ts +1 -1
  22. package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -1
  23. package/dist/composed/date-picker/date-picker.d.ts +1 -1
  24. package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
  25. package/dist/composed/date-picker/date-range-picker.d.ts +1 -1
  26. package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -1
  27. package/dist/composed/date-picker/date-time-picker.d.ts +1 -1
  28. package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -1
  29. package/dist/composed/date-picker/month-picker.d.ts +1 -1
  30. package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
  31. package/dist/composed/date-picker/presets.d.ts +1 -1
  32. package/dist/composed/date-picker/presets.d.ts.map +1 -1
  33. package/dist/composed/date-picker/time-picker.d.ts +1 -1
  34. package/dist/composed/date-picker/time-picker.d.ts.map +1 -1
  35. package/dist/composed/date-picker/year-picker.d.ts +1 -1
  36. package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
  37. package/dist/composed/empty-state.d.ts +1 -0
  38. package/dist/composed/empty-state.d.ts.map +1 -1
  39. package/dist/composed/empty-state.js +51 -47
  40. package/dist/composed/error-boundary.d.ts +1 -1
  41. package/dist/composed/error-boundary.d.ts.map +1 -1
  42. package/dist/composed/error-boundary.js +48 -48
  43. package/dist/composed/extensions/mention-suggestion.d.ts +1 -1
  44. package/dist/composed/extensions/mention-suggestion.d.ts.map +1 -1
  45. package/dist/composed/global-loading.d.ts +1 -1
  46. package/dist/composed/global-loading.d.ts.map +1 -1
  47. package/dist/composed/global-loading.js +22 -19
  48. package/dist/composed/index.d.ts +2 -4
  49. package/dist/composed/index.d.ts.map +1 -1
  50. package/dist/composed/index.js +26 -29
  51. package/dist/composed/lib/string-utils.d.ts +0 -1
  52. package/dist/composed/lib/string-utils.js +0 -1
  53. package/dist/composed/loading-skeleton.d.ts +1 -1
  54. package/dist/composed/loading-skeleton.d.ts.map +1 -1
  55. package/dist/composed/loading-skeleton.js +92 -87
  56. package/dist/composed/member-picker.d.ts +1 -1
  57. package/dist/composed/member-picker.d.ts.map +1 -1
  58. package/dist/composed/member-picker.js +47 -43
  59. package/dist/composed/page-header.js +36 -36
  60. package/dist/composed/page-skeletons.d.ts +9 -3
  61. package/dist/composed/page-skeletons.d.ts.map +1 -1
  62. package/dist/composed/page-skeletons.js +58 -58
  63. package/dist/composed/priority-indicator.js +24 -24
  64. package/dist/composed/rich-text-editor.d.ts +3 -3
  65. package/dist/composed/rich-text-editor.d.ts.map +1 -1
  66. package/dist/composed/rich-text-editor.js +317 -310
  67. package/dist/composed/schedule-view.js +84 -84
  68. package/dist/composed/simple-tooltip.d.ts +2 -5
  69. package/dist/composed/simple-tooltip.d.ts.map +1 -1
  70. package/dist/composed/simple-tooltip.js +19 -14
  71. package/dist/composed/status-badge.d.ts +2 -1
  72. package/dist/composed/status-badge.d.ts.map +1 -1
  73. package/dist/composed/status-badge.js +81 -68
  74. package/dist/hooks/index.d.ts +2 -1
  75. package/dist/hooks/index.d.ts.map +1 -1
  76. package/dist/hooks/index.js +3 -4
  77. package/dist/hooks/use-toast.d.ts +15 -45
  78. package/dist/hooks/use-toast.d.ts.map +1 -1
  79. package/dist/hooks/use-toast.js +2 -95
  80. package/dist/motion/index.d.ts +4 -0
  81. package/dist/motion/index.d.ts.map +1 -0
  82. package/dist/motion/index.js +12 -0
  83. package/dist/motion/motion-provider.d.ts +18 -0
  84. package/dist/motion/motion-provider.d.ts.map +1 -0
  85. package/dist/motion/primitives-index.d.ts +3 -0
  86. package/dist/motion/primitives-index.d.ts.map +1 -0
  87. package/dist/motion/primitives-index.js +187 -0
  88. package/dist/motion/primitives.d.ts +38 -0
  89. package/dist/motion/primitives.d.ts.map +1 -0
  90. package/dist/shell/app-command-palette.d.ts +14 -5
  91. package/dist/shell/app-command-palette.d.ts.map +1 -1
  92. package/dist/shell/app-command-palette.js +152 -130
  93. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  94. package/dist/shell/bottom-navbar.js +90 -92
  95. package/dist/shell/command-registry.d.ts +23 -0
  96. package/dist/shell/command-registry.d.ts.map +1 -0
  97. package/dist/shell/command-registry.js +18 -0
  98. package/dist/shell/index.d.ts +2 -1
  99. package/dist/shell/index.d.ts.map +1 -1
  100. package/dist/shell/index.js +14 -11
  101. package/dist/shell/link-context.d.ts +6 -10
  102. package/dist/shell/link-context.d.ts.map +1 -1
  103. package/dist/shell/link-context.js +3 -16
  104. package/dist/shell/notification-center.d.ts.map +1 -1
  105. package/dist/shell/notification-center.js +129 -124
  106. package/dist/shell/notification-preferences.d.ts +10 -5
  107. package/dist/shell/notification-preferences.d.ts.map +1 -1
  108. package/dist/shell/notification-preferences.js +169 -165
  109. package/dist/shell/sidebar.js +104 -104
  110. package/dist/shell/top-bar.js +67 -67
  111. package/dist/tailwind/index.cjs +118 -297
  112. package/dist/tailwind/preset.d.ts.map +1 -1
  113. package/dist/tailwind/preset.js +118 -297
  114. package/dist/tokens/generate-scale.d.ts +86 -0
  115. package/dist/tokens/generate-scale.d.ts.map +1 -0
  116. package/dist/tokens/primitives.css +415 -187
  117. package/dist/tokens/semantic.css +244 -270
  118. package/dist/tokens/typography.css +6 -6
  119. package/dist/ui/accordion.d.ts.map +1 -1
  120. package/dist/ui/accordion.js +34 -24
  121. package/dist/ui/alert-dialog.d.ts +4 -1
  122. package/dist/ui/alert-dialog.d.ts.map +1 -1
  123. package/dist/ui/alert-dialog.js +115 -74
  124. package/dist/ui/alert.d.ts +6 -1
  125. package/dist/ui/alert.d.ts.map +1 -1
  126. package/dist/ui/alert.js +65 -50
  127. package/dist/ui/aspect-ratio.d.ts +2 -1
  128. package/dist/ui/aspect-ratio.d.ts.map +1 -1
  129. package/dist/ui/aspect-ratio.js +14 -4
  130. package/dist/ui/autocomplete.d.ts +11 -2
  131. package/dist/ui/autocomplete.d.ts.map +1 -1
  132. package/dist/ui/autocomplete.js +85 -60
  133. package/dist/ui/avatar.d.ts.map +1 -1
  134. package/dist/ui/avatar.js +46 -35
  135. package/dist/ui/badge.d.ts +1 -1
  136. package/dist/ui/badge.d.ts.map +1 -1
  137. package/dist/ui/badge.js +72 -67
  138. package/dist/ui/banner.d.ts.map +1 -1
  139. package/dist/ui/banner.js +54 -40
  140. package/dist/ui/breadcrumb.d.ts +2 -0
  141. package/dist/ui/breadcrumb.d.ts.map +1 -1
  142. package/dist/ui/breadcrumb.js +19 -19
  143. package/dist/ui/button-group.js +4 -4
  144. package/dist/ui/button.d.ts +10 -1
  145. package/dist/ui/button.d.ts.map +1 -1
  146. package/dist/ui/button.js +102 -66
  147. package/dist/ui/card.d.ts +2 -2
  148. package/dist/ui/card.d.ts.map +1 -1
  149. package/dist/ui/card.js +61 -53
  150. package/dist/ui/charts/_internal/animation.d.ts +1 -1
  151. package/dist/ui/charts/_internal/animation.d.ts.map +1 -1
  152. package/dist/ui/charts/area-chart.d.ts +3 -5
  153. package/dist/ui/charts/area-chart.d.ts.map +1 -1
  154. package/dist/ui/charts/bar-chart.d.ts +3 -5
  155. package/dist/ui/charts/bar-chart.d.ts.map +1 -1
  156. package/dist/ui/charts/chart-container.d.ts +2 -5
  157. package/dist/ui/charts/chart-container.d.ts.map +1 -1
  158. package/dist/ui/charts/gauge-chart.d.ts +3 -5
  159. package/dist/ui/charts/gauge-chart.d.ts.map +1 -1
  160. package/dist/ui/charts/index.js +1204 -1095
  161. package/dist/ui/charts/line-chart.d.ts +3 -5
  162. package/dist/ui/charts/line-chart.d.ts.map +1 -1
  163. package/dist/ui/charts/pie-chart.d.ts +2 -5
  164. package/dist/ui/charts/pie-chart.d.ts.map +1 -1
  165. package/dist/ui/charts/radar-chart.d.ts +3 -5
  166. package/dist/ui/charts/radar-chart.d.ts.map +1 -1
  167. package/dist/ui/charts/sparkline.d.ts +5 -5
  168. package/dist/ui/charts/sparkline.d.ts.map +1 -1
  169. package/dist/ui/checkbox.d.ts.map +1 -1
  170. package/dist/ui/checkbox.js +31 -19
  171. package/dist/ui/chip.d.ts +3 -2
  172. package/dist/ui/chip.d.ts.map +1 -1
  173. package/dist/ui/chip.js +58 -50
  174. package/dist/ui/code.js +16 -16
  175. package/dist/ui/collapsible.d.ts.map +1 -1
  176. package/dist/ui/collapsible.js +23 -15
  177. package/dist/ui/color-input.d.ts +1 -1
  178. package/dist/ui/color-input.d.ts.map +1 -1
  179. package/dist/ui/color-input.js +27 -27
  180. package/dist/ui/combobox.d.ts +2 -0
  181. package/dist/ui/combobox.d.ts.map +1 -1
  182. package/dist/ui/combobox.js +177 -166
  183. package/dist/ui/container.js +4 -4
  184. package/dist/ui/context-menu.d.ts +4 -2
  185. package/dist/ui/context-menu.d.ts.map +1 -1
  186. package/dist/ui/context-menu.js +147 -87
  187. package/dist/ui/data-table-toolbar.d.ts +3 -2
  188. package/dist/ui/data-table-toolbar.d.ts.map +1 -1
  189. package/dist/ui/data-table-toolbar.js +65 -63
  190. package/dist/ui/data-table.d.ts.map +1 -1
  191. package/dist/ui/data-table.js +275 -240
  192. package/dist/ui/dialog.d.ts +3 -1
  193. package/dist/ui/dialog.d.ts.map +1 -1
  194. package/dist/ui/dialog.js +114 -74
  195. package/dist/ui/dropdown-menu.d.ts +5 -3
  196. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  197. package/dist/ui/dropdown-menu.js +151 -90
  198. package/dist/ui/file-upload.d.ts.map +1 -1
  199. package/dist/ui/file-upload.js +170 -128
  200. package/dist/ui/form.d.ts.map +1 -1
  201. package/dist/ui/form.js +30 -27
  202. package/dist/ui/hover-card.d.ts +1 -1
  203. package/dist/ui/hover-card.d.ts.map +1 -1
  204. package/dist/ui/hover-card.js +53 -21
  205. package/dist/ui/icon-button.js +9 -9
  206. package/dist/ui/index.d.ts +18 -18
  207. package/dist/ui/index.d.ts.map +1 -1
  208. package/dist/ui/index.js +322 -533
  209. package/dist/ui/input-otp.d.ts +2 -0
  210. package/dist/ui/input-otp.d.ts.map +1 -1
  211. package/dist/ui/input-otp.js +8 -8
  212. package/dist/ui/input.d.ts.map +1 -1
  213. package/dist/ui/input.js +35 -33
  214. package/dist/ui/label.js +12 -12
  215. package/dist/ui/lib/date-utils.d.ts +5 -0
  216. package/dist/ui/lib/date-utils.d.ts.map +1 -0
  217. package/dist/ui/lib/date-utils.js +12 -0
  218. package/dist/ui/lib/index.d.ts +7 -0
  219. package/dist/ui/lib/index.d.ts.map +1 -0
  220. package/dist/ui/lib/link-context.d.ts +13 -0
  221. package/dist/ui/lib/link-context.d.ts.map +1 -0
  222. package/dist/ui/lib/motion.d.ts +44 -9
  223. package/dist/ui/lib/motion.d.ts.map +1 -1
  224. package/dist/ui/lib/motion.js +34 -0
  225. package/dist/ui/lib/use-ripple.d.ts.map +1 -1
  226. package/dist/ui/lib/utils.js +1 -1
  227. package/dist/ui/link.js +11 -11
  228. package/dist/ui/menubar.d.ts +4 -2
  229. package/dist/ui/menubar.d.ts.map +1 -1
  230. package/dist/ui/menubar.js +142 -98
  231. package/dist/ui/navigation-menu.d.ts +2 -0
  232. package/dist/ui/navigation-menu.d.ts.map +1 -1
  233. package/dist/ui/navigation-menu.js +176 -73
  234. package/dist/ui/number-input.d.ts.map +1 -1
  235. package/dist/ui/number-input.js +58 -51
  236. package/dist/ui/pagination.js +23 -23
  237. package/dist/ui/popover.d.ts +2 -1
  238. package/dist/ui/popover.d.ts.map +1 -1
  239. package/dist/ui/popover.js +54 -22
  240. package/dist/ui/progress.d.ts.map +1 -1
  241. package/dist/ui/progress.js +58 -42
  242. package/dist/ui/radio.js +15 -15
  243. package/dist/ui/search-input.d.ts.map +1 -1
  244. package/dist/ui/search-input.js +28 -33
  245. package/dist/ui/segmented-control.d.ts +4 -2
  246. package/dist/ui/segmented-control.d.ts.map +1 -1
  247. package/dist/ui/segmented-control.js +146 -123
  248. package/dist/ui/select.d.ts.map +1 -1
  249. package/dist/ui/select.js +75 -64
  250. package/dist/ui/separator.js +12 -12
  251. package/dist/ui/sheet.d.ts +1 -1
  252. package/dist/ui/sheet.d.ts.map +1 -1
  253. package/dist/ui/sheet.js +111 -75
  254. package/dist/ui/sidebar.d.ts +6 -1
  255. package/dist/ui/sidebar.d.ts.map +1 -1
  256. package/dist/ui/sidebar.js +574 -36
  257. package/dist/ui/skeleton.js +2 -2
  258. package/dist/ui/slider.d.ts +9 -0
  259. package/dist/ui/slider.d.ts.map +1 -1
  260. package/dist/ui/slider.js +33 -27
  261. package/dist/ui/spinner.d.ts +32 -25
  262. package/dist/ui/spinner.d.ts.map +1 -1
  263. package/dist/ui/spinner.js +199 -40
  264. package/dist/ui/stack.js +1 -1
  265. package/dist/ui/stat-card.d.ts.map +1 -1
  266. package/dist/ui/stat-card.js +181 -114
  267. package/dist/ui/stepper.d.ts +23 -4
  268. package/dist/ui/stepper.d.ts.map +1 -1
  269. package/dist/ui/stepper.js +126 -48
  270. package/dist/ui/switch.d.ts.map +1 -1
  271. package/dist/ui/switch.js +39 -26
  272. package/dist/ui/table.d.ts +3 -0
  273. package/dist/ui/table.d.ts.map +1 -1
  274. package/dist/ui/table.js +29 -29
  275. package/dist/ui/tabs.d.ts +4 -1
  276. package/dist/ui/tabs.d.ts.map +1 -1
  277. package/dist/ui/tabs.js +94 -44
  278. package/dist/ui/text.d.ts +3 -3
  279. package/dist/ui/text.js +2 -2
  280. package/dist/ui/textarea.d.ts.map +1 -1
  281. package/dist/ui/textarea.js +27 -25
  282. package/dist/ui/toast-types.d.ts +43 -0
  283. package/dist/ui/toast-types.d.ts.map +1 -0
  284. package/dist/ui/toast-types.js +2 -0
  285. package/dist/ui/toast.d.ts +60 -26
  286. package/dist/ui/toast.d.ts.map +1 -1
  287. package/dist/ui/toast.js +535 -89
  288. package/dist/ui/toaster.d.ts +19 -23
  289. package/dist/ui/toaster.d.ts.map +1 -1
  290. package/dist/ui/toaster.js +31 -21
  291. package/dist/ui/toggle-group.d.ts +2 -2
  292. package/dist/ui/toggle-group.d.ts.map +1 -1
  293. package/dist/ui/toggle-group.js +29 -26
  294. package/dist/ui/toggle.d.ts +2 -2
  295. package/dist/ui/toggle.d.ts.map +1 -1
  296. package/dist/ui/toggle.js +21 -17
  297. package/dist/ui/tooltip.d.ts +2 -1
  298. package/dist/ui/tooltip.d.ts.map +1 -1
  299. package/dist/ui/tooltip.js +58 -21
  300. package/dist/ui/tree-view/tree-view.d.ts +1 -1
  301. package/dist/ui/tree-view/tree-view.d.ts.map +1 -1
  302. package/dist/ui/visually-hidden.js +3 -3
  303. package/llms-full.txt +3440 -1528
  304. package/llms.txt +67 -14
  305. package/package.json +50 -9
  306. package/dist/_chunks/avatar.js +0 -50
  307. package/dist/_chunks/button.js +0 -95
  308. package/dist/_chunks/checkbox.js +0 -14
  309. package/dist/_chunks/form.js +0 -27
  310. package/dist/_chunks/sidebar.js +0 -592
  311. package/dist/_chunks/spinner.js +0 -34
  312. package/dist/_chunks/switch.js +0 -10
  313. package/dist/_chunks/tooltip.js +0 -13
  314. package/dist/_chunks/utils.js +0 -17
  315. package/dist/composed/upload-progress.d.ts +0 -33
  316. package/dist/composed/upload-progress.d.ts.map +0 -1
  317. package/dist/composed/upload-progress.js +0 -386
  318. package/dist/ui/lib/use-reduced-motion.d.ts +0 -4
  319. package/dist/ui/lib/use-reduced-motion.d.ts.map +0 -1
  320. package/dist/ui/transitions.d.ts +0 -17
  321. package/dist/ui/transitions.d.ts.map +0 -1
  322. package/dist/ui/transitions.js +0 -111
@@ -1,78 +1,85 @@
1
1
  "use client";
2
- import { jsxs as I, jsx as c } from "react/jsx-runtime";
3
- import * as w from "react";
4
- import { IconMinus as y, IconPlus as v } from "@tabler/icons-react";
5
- import { c as E } from "../_chunks/utils.js";
6
- import { u as j } from "../_chunks/form.js";
7
- const h = w.forwardRef(
2
+ import { jsxs as y, jsx as i } from "react/jsx-runtime";
3
+ import * as v from "react";
4
+ import { IconMinus as E, IconPlus as j } from "@tabler/icons-react";
5
+ import { cn as M } from "./lib/utils.js";
6
+ import { useFormField as k } from "./form.js";
7
+ const D = v.forwardRef(
8
8
  ({
9
- value: r = 0,
9
+ value: s = 0,
10
10
  onValueChange: e,
11
- min: i = Number.MIN_SAFE_INTEGER,
12
- max: o = Number.MAX_SAFE_INTEGER,
13
- step: n = 1,
14
- disabled: d = !1,
15
- className: m,
16
- "aria-label": b,
17
- ...a
11
+ min: r = Number.MIN_SAFE_INTEGER,
12
+ max: d = Number.MAX_SAFE_INTEGER,
13
+ step: o = 1,
14
+ disabled: m = !1,
15
+ className: n,
16
+ "aria-label": l,
17
+ ...b
18
18
  }, p) => {
19
- const l = j(), f = b ?? (a.id || l.helperTextId ? void 0 : "Numeric value"), u = (s) => {
20
- const t = parseInt(s.target.value, 10) || 0;
21
- t >= i && t <= o && (e == null || e(t));
22
- }, x = (s) => {
23
- s.preventDefault();
24
- const t = r + n;
25
- t <= o && (e == null || e(t));
26
- }, N = (s) => {
27
- s.preventDefault();
28
- const t = r - n;
29
- t >= i && (e == null || e(t));
19
+ const f = k(), u = l ?? (b.id || f.helperTextId ? void 0 : "Numeric value"), N = (c) => {
20
+ const t = c.target.value.trim();
21
+ if (t === "" || t === "-") {
22
+ e == null || e(r >= 0 ? r : 0);
23
+ return;
24
+ }
25
+ const a = Number(t);
26
+ if (Number.isNaN(a)) return;
27
+ const I = Math.min(Math.max(a, r), d);
28
+ e == null || e(I);
29
+ }, x = (c) => {
30
+ c.preventDefault();
31
+ const t = s + o;
32
+ t <= d && (e == null || e(t));
33
+ }, w = (c) => {
34
+ c.preventDefault();
35
+ const t = s - o;
36
+ t >= r && (e == null || e(t));
30
37
  };
31
- return /* @__PURE__ */ I(
38
+ return /* @__PURE__ */ y(
32
39
  "div",
33
40
  {
34
- className: E(
35
- "flex items-center justify-between rounded-ds-full border border-border",
36
- m
41
+ className: M(
42
+ "flex items-center justify-between rounded-ds-full border border-surface-border-strong",
43
+ n
37
44
  ),
38
45
  children: [
39
- /* @__PURE__ */ c(
46
+ /* @__PURE__ */ i(
40
47
  "button",
41
48
  {
42
49
  type: "button",
43
- onClick: N,
44
- disabled: d || r <= i,
50
+ onClick: w,
51
+ disabled: m || s <= r,
45
52
  "aria-label": "Decrease value",
46
- className: "flex h-ds-sm w-ds-sm items-center justify-center border-0 text-text-placeholder transition-colors hover:text-text-secondary",
47
- children: /* @__PURE__ */ c(y, { className: "h-ico-sm w-ico-sm" })
53
+ className: "flex h-ds-sm w-ds-sm items-center justify-center border-0 text-surface-fg-subtle transition-colors hover:text-surface-fg-muted",
54
+ children: /* @__PURE__ */ i(E, { className: "h-ico-sm w-ico-sm" })
48
55
  }
49
56
  ),
50
- /* @__PURE__ */ c(
57
+ /* @__PURE__ */ i(
51
58
  "input",
52
59
  {
53
60
  ref: p,
54
61
  type: "number",
55
- value: r,
56
- onChange: u,
57
- min: i,
58
- max: o,
59
- step: n,
60
- disabled: d,
61
- "aria-label": f,
62
- "aria-describedby": a["aria-describedby"] ?? l.helperTextId,
63
- className: "bg-transparent text-ds-md font-semibold w-ds-sm-plus border-0 text-center text-text-secondary [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
64
- ...a
62
+ value: s,
63
+ onChange: N,
64
+ min: r,
65
+ max: d,
66
+ step: o,
67
+ disabled: m,
68
+ "aria-label": u,
69
+ "aria-describedby": b["aria-describedby"] ?? f.helperTextId,
70
+ className: "bg-transparent text-ds-md font-semibold w-ds-sm-plus border-0 text-center text-surface-fg-muted [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
71
+ ...b
65
72
  }
66
73
  ),
67
- /* @__PURE__ */ c(
74
+ /* @__PURE__ */ i(
68
75
  "button",
69
76
  {
70
77
  type: "button",
71
78
  onClick: x,
72
- disabled: d || r >= o,
79
+ disabled: m || s >= d,
73
80
  "aria-label": "Increase value",
74
- className: "flex h-ds-sm w-ds-sm items-center justify-center border-0 text-text-placeholder transition-colors hover:text-text-secondary",
75
- children: /* @__PURE__ */ c(v, { className: "h-ico-sm w-ico-sm" })
81
+ className: "flex h-ds-sm w-ds-sm items-center justify-center border-0 text-surface-fg-subtle transition-colors hover:text-surface-fg-muted",
82
+ children: /* @__PURE__ */ i(j, { className: "h-ico-sm w-ico-sm" })
76
83
  }
77
84
  )
78
85
  ]
@@ -80,7 +87,7 @@ const h = w.forwardRef(
80
87
  );
81
88
  }
82
89
  );
83
- h.displayName = "NumberInput";
90
+ D.displayName = "NumberInput";
84
91
  export {
85
- h as NumberInput
92
+ D as NumberInput
86
93
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsx as a, jsxs as g } from "react/jsx-runtime";
3
3
  import * as o from "react";
4
- import { S as b } from "../_chunks/primitives.js";
4
+ import { S as R } from "../_chunks/primitives.js";
5
5
  import { IconChevronLeft as j, IconChevronRight as k, IconDots as C } from "@tabler/icons-react";
6
- import { c as r } from "../_chunks/utils.js";
7
- const x = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a(
6
+ import { cn as r } from "./lib/utils.js";
7
+ const w = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a(
8
8
  "nav",
9
9
  {
10
10
  ref: s,
@@ -14,8 +14,8 @@ const x = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a(
14
14
  ...i
15
15
  }
16
16
  ));
17
- x.displayName = "PaginationRoot";
18
- const w = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a(
17
+ w.displayName = "PaginationRoot";
18
+ const x = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a(
19
19
  "ul",
20
20
  {
21
21
  ref: s,
@@ -23,18 +23,18 @@ const w = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a(
23
23
  ...i
24
24
  }
25
25
  ));
26
- w.displayName = "PaginationContent";
26
+ x.displayName = "PaginationContent";
27
27
  const f = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a("li", { ref: s, className: r("", e), ...i }));
28
28
  f.displayName = "PaginationItem";
29
29
  const u = o.forwardRef(
30
30
  ({ className: e, isActive: i = !1, asChild: s = !1, ...c }, t) => /* @__PURE__ */ a(
31
- s ? b : "button",
31
+ s ? R : "button",
32
32
  {
33
33
  ref: t,
34
34
  "aria-current": i ? "page" : void 0,
35
35
  className: r(
36
- "inline-flex items-center justify-center h-ds-sm-plus w-ds-sm-plus rounded-ds-md text-ds-md font-medium transition-colors 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]",
37
- i ? "bg-interactive text-text-on-color" : "hover:bg-field text-text-primary",
36
+ "inline-flex items-center justify-center h-ds-sm-plus w-ds-sm-plus rounded-ds-md text-ds-md font-medium transition-colors 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",
37
+ i ? "bg-accent-9 text-accent-fg" : "hover:bg-surface-3 text-surface-fg",
38
38
  e
39
39
  ),
40
40
  ...c
@@ -42,7 +42,7 @@ const u = o.forwardRef(
42
42
  )
43
43
  );
44
44
  u.displayName = "PaginationLink";
45
- const y = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ g(
45
+ const v = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ g(
46
46
  u,
47
47
  {
48
48
  ref: s,
@@ -55,8 +55,8 @@ const y = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ g(
55
55
  ]
56
56
  }
57
57
  ));
58
- y.displayName = "PaginationPrevious";
59
- const v = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ g(
58
+ v.displayName = "PaginationPrevious";
59
+ const y = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ g(
60
60
  u,
61
61
  {
62
62
  ref: s,
@@ -69,14 +69,14 @@ const v = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ g(
69
69
  ]
70
70
  }
71
71
  ));
72
- v.displayName = "PaginationNext";
72
+ y.displayName = "PaginationNext";
73
73
  const P = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ g(
74
74
  "span",
75
75
  {
76
76
  ref: s,
77
77
  "aria-hidden": "true",
78
78
  className: r(
79
- "flex h-ds-sm-plus w-ds-sm-plus items-center justify-center text-text-secondary",
79
+ "flex h-ds-sm-plus w-ds-sm-plus items-center justify-center text-surface-fg-muted",
80
80
  e
81
81
  ),
82
82
  ...i,
@@ -94,13 +94,13 @@ function I(e, i, s) {
94
94
  const t = Math.max(e - s, 1), d = Math.min(e + s, i), p = t > 2, h = d < i - 1;
95
95
  if (!p && h) {
96
96
  const n = s * 2 + 3;
97
- return [...Array.from({ length: n }, (R, N) => N + 1), "ellipsis", i];
97
+ return [...Array.from({ length: n }, (b, N) => N + 1), "ellipsis", i];
98
98
  }
99
99
  if (p && !h) {
100
100
  const n = s * 2 + 3;
101
101
  return [1, "ellipsis", ...Array.from(
102
102
  { length: n },
103
- (R, N) => i - n + 1 + N
103
+ (b, N) => i - n + 1 + N
104
104
  )];
105
105
  }
106
106
  return [1, "ellipsis", ...Array.from(
@@ -118,9 +118,9 @@ const M = o.forwardRef(
118
118
  ...d
119
119
  }, p) => {
120
120
  const h = I(i, e, c);
121
- return /* @__PURE__ */ a(x, { ref: p, className: t, ...d, children: /* @__PURE__ */ g(w, { children: [
121
+ return /* @__PURE__ */ a(w, { ref: p, className: t, ...d, children: /* @__PURE__ */ g(x, { children: [
122
122
  /* @__PURE__ */ a(f, { children: /* @__PURE__ */ a(
123
- y,
123
+ v,
124
124
  {
125
125
  onClick: () => s(Math.max(1, i - 1)),
126
126
  disabled: i <= 1
@@ -137,7 +137,7 @@ const M = o.forwardRef(
137
137
  ) }, l)
138
138
  ),
139
139
  /* @__PURE__ */ a(f, { children: /* @__PURE__ */ a(
140
- v,
140
+ y,
141
141
  {
142
142
  onClick: () => s(Math.min(e, i + 1)),
143
143
  disabled: i >= e
@@ -148,13 +148,13 @@ const M = o.forwardRef(
148
148
  );
149
149
  M.displayName = "PaginationNav";
150
150
  export {
151
- w as PaginationContent,
151
+ x as PaginationContent,
152
152
  P as PaginationEllipsis,
153
153
  f as PaginationItem,
154
154
  u as PaginationLink,
155
155
  M as PaginationNav,
156
- v as PaginationNext,
157
- y as PaginationPrevious,
158
- x as PaginationRoot,
156
+ y as PaginationNext,
157
+ v as PaginationPrevious,
158
+ w as PaginationRoot,
159
159
  I as generatePagination
160
160
  };
@@ -1,9 +1,10 @@
1
1
  "use client";
2
2
  import * as React from 'react';
3
3
  import * as PopoverPrimitive from '../primitives/react-popover';
4
- declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
4
+ declare const Popover: React.FC<React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>>;
5
5
  declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
6
  declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
7
7
  declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ export type PopoverContentProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>;
8
9
  export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
9
10
  //# sourceMappingURL=popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/ui/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAA;AAI7D,QAAA,MAAM,OAAO,yCAAwB,CAAA;AAErC,QAAA,MAAM,cAAc,gHAA2B,CAAA;AAE/C,QAAA,MAAM,aAAa,4GAA0B,CAAA;AAE7C,QAAA,MAAM,cAAc,gKAgBlB,CAAA;AAGF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/ui/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAA;AAU7D,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAuBnF,CAAA;AAGD,QAAA,MAAM,cAAc,gHAA2B,CAAA;AAE/C,QAAA,MAAM,aAAa,4GAA0B,CAAA;AAE7C,QAAA,MAAM,cAAc,gKAmClB,CAAA;AAGF,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAA;AAEjG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,CAAA"}
@@ -1,25 +1,57 @@
1
1
  "use client";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import * as i from "react";
4
- import { P as n, i as t, g as m, h as p, aV as l } from "../_chunks/primitives.js";
5
- import { c } from "../_chunks/utils.js";
6
- const P = m, u = p, v = l, f = i.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...s }, d) => /* @__PURE__ */ o(n, { children: /* @__PURE__ */ o(
7
- t,
8
- {
9
- ref: d,
10
- align: a,
11
- sideOffset: r,
12
- className: c(
13
- "z-popover w-72 rounded-ds-lg border border-border bg-layer-01 p-ds-05 text-text-primary shadow-03 outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
14
- e
15
- ),
16
- ...s
17
- }
18
- ) }));
19
- f.displayName = t.displayName;
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ import * as t from "react";
4
+ import { P as u, d as l, c as P, b as v, aP as y } from "../_chunks/primitives.js";
5
+ import { cn as x } from "./lib/utils.js";
6
+ import { tweens as b, springs as g } from "./lib/motion.js";
7
+ import { A as h, m as C } from "../_chunks/framer.js";
8
+ const m = t.createContext(!1), w = ({
9
+ open: s,
10
+ defaultOpen: n = !1,
11
+ onOpenChange: o,
12
+ ...a
13
+ }) => {
14
+ const [c, i] = t.useState(n), r = s !== void 0, p = r ? s : c, f = t.useCallback(
15
+ (d) => {
16
+ r || i(d), o == null || o(d);
17
+ },
18
+ [r, o]
19
+ );
20
+ return /* @__PURE__ */ e(m.Provider, { value: p, children: /* @__PURE__ */ e(v, { open: p, onOpenChange: f, ...a }) });
21
+ };
22
+ w.displayName = "Popover";
23
+ const k = P, z = y, A = t.forwardRef(({ className: s, align: n = "center", sideOffset: o = 4, children: a, ...c }, i) => {
24
+ const r = t.useContext(m);
25
+ return /* @__PURE__ */ e(h, { children: r && /* @__PURE__ */ e(u, { forceMount: !0, children: /* @__PURE__ */ e(
26
+ l,
27
+ {
28
+ ref: i,
29
+ align: n,
30
+ sideOffset: o,
31
+ forceMount: !0,
32
+ asChild: !0,
33
+ ...c,
34
+ children: /* @__PURE__ */ e(
35
+ C.div,
36
+ {
37
+ initial: { opacity: 0, scale: 0.95 },
38
+ animate: { opacity: 1, scale: 1 },
39
+ exit: { opacity: 0, scale: 0.95 },
40
+ transition: { ...g.snappy, opacity: b.fade },
41
+ className: x(
42
+ "z-popover w-72 rounded-ds-lg border border-surface-border-strong bg-surface-1 p-ds-05 text-surface-fg shadow-03 outline-none",
43
+ s
44
+ ),
45
+ children: a
46
+ }
47
+ )
48
+ }
49
+ ) }) });
50
+ });
51
+ A.displayName = l.displayName;
20
52
  export {
21
- P as Popover,
22
- v as PopoverAnchor,
23
- f as PopoverContent,
24
- u as PopoverTrigger
53
+ w as Popover,
54
+ z as PopoverAnchor,
55
+ A as PopoverContent,
56
+ k as PopoverTrigger
25
57
  };
@@ -1 +1 @@
1
- {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/ui/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,iBAAiB,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAQjE,QAAA,MAAM,qBAAqB;;8EAY1B,CAAA;AAED,QAAA,MAAM,yBAAyB;;8EAa9B,CAAA;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,UAAU,aACR,SAAQ,IAAI,CACR,KAAK,CAAC,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,EAC7D,OAAO,CACR,EACD,YAAY,CAAC,OAAO,qBAAqB,CAAC,EAC1C,YAAY,CAAC,OAAO,yBAAyB,CAAC;IAChD,uDAAuD;IACvD,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,4DAA4D;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAMD,QAAA,MAAM,QAAQ,sFAiDb,CAAA;AAGD,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,CAAA;AACrE,YAAY,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/ui/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,iBAAiB,MAAM,4BAA4B,CAAA;AAE/D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AASjE,QAAA,MAAM,qBAAqB;;8EAY1B,CAAA;AAED,QAAA,MAAM,yBAAyB;;8EAa9B,CAAA;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,UAAU,aACR,SAAQ,IAAI,CACR,KAAK,CAAC,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,EAC7D,OAAO,CACR,EACD,YAAY,CAAC,OAAO,qBAAqB,CAAC,EAC1C,YAAY,CAAC,OAAO,yBAAyB,CAAC;IAChD,uDAAuD;IACvD,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,4DAA4D;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAMD,QAAA,MAAM,QAAQ,sFAyDb,CAAA;AAGD,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,CAAA;AACrE,YAAY,EAAE,aAAa,EAAE,CAAA"}
@@ -1,11 +1,13 @@
1
1
  "use client";
2
- import { jsxs as t, jsx as n } from "react/jsx-runtime";
3
- import * as u from "react";
4
- import { aW as i, aX as g } from "../_chunks/primitives.js";
5
- import { e as o } from "../_chunks/vendor-utils.js";
6
- import { c as e } from "../_chunks/utils.js";
7
- const x = o(
8
- "relative w-full overflow-hidden rounded-ds-full bg-layer-02",
2
+ import { jsxs as o, jsx as r } from "react/jsx-runtime";
3
+ import * as h from "react";
4
+ import { aQ as d, aR as l } from "../_chunks/primitives.js";
5
+ import { ag as c } from "../_chunks/vendor-utils.js";
6
+ import { cn as a } from "./lib/utils.js";
7
+ import { springs as x } from "./lib/motion.js";
8
+ import { m as w } from "../_chunks/framer.js";
9
+ const N = c(
10
+ "relative w-full overflow-hidden rounded-ds-full bg-surface-2",
9
11
  {
10
12
  variants: {
11
13
  size: {
@@ -16,61 +18,75 @@ const x = o(
16
18
  },
17
19
  defaultVariants: { size: "md" }
18
20
  }
19
- ), h = o(
21
+ ), m = c(
20
22
  "h-full w-full flex-1 transition-all duration-moderate-02 ease-expressive-standard",
21
23
  {
22
24
  variants: {
23
25
  color: {
24
- default: "bg-interactive",
25
- success: "bg-success",
26
- warning: "bg-warning",
27
- error: "bg-error"
26
+ default: "bg-accent-9",
27
+ success: "bg-success-9",
28
+ warning: "bg-warning-9",
29
+ error: "bg-error-9"
28
30
  }
29
31
  },
30
32
  defaultVariants: { color: "default" }
31
33
  }
32
- ), v = u.forwardRef(
34
+ ), v = h.forwardRef(
33
35
  ({
34
- className: l,
35
- value: r,
36
- size: d,
37
- color: c,
38
- indicatorClassName: m,
39
- showLabel: s,
40
- ...f
41
- }, p) => {
42
- const a = r == null;
43
- return /* @__PURE__ */ t("div", { className: e("flex items-center gap-ds-03", s && "w-full"), children: [
44
- /* @__PURE__ */ n(
45
- i,
36
+ className: f,
37
+ value: s,
38
+ size: u,
39
+ color: t,
40
+ indicatorClassName: i,
41
+ showLabel: n,
42
+ ...p
43
+ }, g) => {
44
+ const e = s == null;
45
+ return /* @__PURE__ */ o("div", { className: a("flex items-center gap-ds-03", n && "w-full"), children: [
46
+ /* @__PURE__ */ r(
47
+ d,
46
48
  {
47
- ref: p,
48
- value: a ? null : r,
49
- className: e(x({ size: d }), l),
50
- ...f,
51
- children: /* @__PURE__ */ n(
52
- g,
49
+ ref: g,
50
+ value: e ? null : s,
51
+ className: a(N({ size: u }), f),
52
+ ...p,
53
+ children: e ? /* @__PURE__ */ r(
54
+ l,
53
55
  {
54
- className: e(
55
- h({ color: c }),
56
- a && "w-2/5 animate-progress-indeterminate motion-reduce:animate-none",
57
- m
58
- ),
59
- style: a ? void 0 : { transform: `translateX(-${100 - (r || 0)}%)` }
56
+ className: a(
57
+ m({ color: t }),
58
+ "w-2/5 animate-progress-indeterminate motion-reduce:animate-none",
59
+ i
60
+ )
61
+ }
62
+ ) : /* @__PURE__ */ r(
63
+ l,
64
+ {
65
+ className: a("h-full", i),
66
+ asChild: !0,
67
+ children: /* @__PURE__ */ r(
68
+ w.div,
69
+ {
70
+ className: a(m({ color: t })),
71
+ initial: !1,
72
+ animate: { width: `${s || 0}%` },
73
+ transition: x.smooth
74
+ }
75
+ )
60
76
  }
61
77
  )
62
78
  }
63
79
  ),
64
- s && !a && /* @__PURE__ */ t("span", { className: "shrink-0 text-ds-xs text-text-secondary", children: [
65
- r,
80
+ n && !e && /* @__PURE__ */ o("span", { className: "shrink-0 text-ds-xs text-surface-fg-muted", children: [
81
+ s,
66
82
  "%"
67
83
  ] })
68
84
  ] });
69
85
  }
70
86
  );
71
- v.displayName = i.displayName;
87
+ v.displayName = d.displayName;
72
88
  export {
73
89
  v as Progress,
74
- h as progressIndicatorVariants,
75
- x as progressTrackVariants
90
+ m as progressIndicatorVariants,
91
+ N as progressTrackVariants
76
92
  };
package/dist/ui/radio.js CHANGED
@@ -1,29 +1,29 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { ai as a, aj as s, ak as c } from "../_chunks/primitives.js";
3
+ import { aj as s, ak as i, al as d } from "../_chunks/primitives.js";
4
4
  import { IconCircle as l } from "@tabler/icons-react";
5
5
  import * as t from "react";
6
- import { c as d } from "../_chunks/utils.js";
7
- const n = t.forwardRef(({ className: r, ...i }, o) => /* @__PURE__ */ e(a, { className: d("grid gap-ds-03", r), ...i, ref: o }));
8
- n.displayName = a.displayName;
9
- const m = t.forwardRef(({ className: r, ...i }, o) => /* @__PURE__ */ e(
10
- s,
6
+ import { cn as c } from "./lib/utils.js";
7
+ const n = t.forwardRef(({ className: a, ...r }, o) => /* @__PURE__ */ e(s, { className: c("grid gap-ds-03", a), ...r, ref: o }));
8
+ n.displayName = s.displayName;
9
+ const m = t.forwardRef(({ className: a, ...r }, o) => /* @__PURE__ */ e(
10
+ i,
11
11
  {
12
12
  ref: o,
13
- className: d(
13
+ className: c(
14
14
  "aspect-square h-ico-md w-ico-md rounded-ds-full",
15
- "border border-border-strong bg-field",
15
+ "border border-surface-border-strong bg-surface-3",
16
16
  "transition-colors duration-fast-01",
17
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2",
18
- "disabled:cursor-not-allowed disabled:opacity-[0.38]",
19
- "data-[state=checked]:border-interactive",
20
- r
17
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2",
18
+ "disabled:cursor-not-allowed disabled:opacity-action-disabled",
19
+ "data-[state=checked]:border-accent-7",
20
+ a
21
21
  ),
22
- ...i,
23
- children: /* @__PURE__ */ e(c, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(l, { className: "h-ds-03 w-ds-03 fill-interactive text-interactive" }) })
22
+ ...r,
23
+ children: /* @__PURE__ */ e(d, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(l, { className: "h-ds-03 w-ds-03 fill-accent-9 text-accent-11" }) })
24
24
  }
25
25
  ));
26
- m.displayName = s.displayName;
26
+ m.displayName = i.displayName;
27
27
  export {
28
28
  n as RadioGroup,
29
29
  m as RadioGroupItem
@@ -1 +1 @@
1
- {"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../src/ui/search-input.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,KAAK,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAQzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACjG,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oBAAoB;IACpB,IAAI,CAAC,EAAE,eAAe,CAAA;CACvB;AAED,QAAA,MAAM,WAAW,2FA8ChB,CAAA;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../src/ui/search-input.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,KAAK,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAQzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACjG,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oBAAoB;IACpB,IAAI,CAAC,EAAE,eAAe,CAAA;CACvB;AAED,QAAA,MAAM,WAAW,2FA6ChB,CAAA;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}