@devalok/shilp-sutra 0.31.0 → 0.33.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 (278) hide show
  1. package/LICENSE +21 -0
  2. package/dist/_chunks/badge-group.js +123 -172
  3. package/dist/_chunks/date-time-picker.js +851 -0
  4. package/dist/_chunks/document-preview.js +92 -0
  5. package/dist/_chunks/file-preview.js +511 -0
  6. package/dist/_chunks/image-preview.js +90 -0
  7. package/dist/_chunks/mention-suggestion.js +362 -0
  8. package/dist/_chunks/primitives.js +109 -109
  9. package/dist/_chunks/stat-row.js +144 -124
  10. package/dist/_chunks/tiptap.js +11595 -7731
  11. package/dist/_chunks/use-calendar.js +117 -890
  12. package/dist/_chunks/vendor-client.js +1055 -894
  13. package/dist/ai/block-renderer.d.ts +2 -1
  14. package/dist/ai/block-renderer.d.ts.map +1 -1
  15. package/dist/ai/block-renderer.js +30 -29
  16. package/dist/ai/blocks/block-table.d.ts.map +1 -1
  17. package/dist/ai/blocks/confirm.d.ts.map +1 -1
  18. package/dist/ai/blocks/divider.d.ts.map +1 -1
  19. package/dist/ai/blocks/error.d.ts.map +1 -1
  20. package/dist/ai/blocks/info.d.ts.map +1 -1
  21. package/dist/ai/blocks/loading.d.ts.map +1 -1
  22. package/dist/ai/blocks/stat-row.d.ts.map +1 -1
  23. package/dist/ai/blocks/success.d.ts.map +1 -1
  24. package/dist/ai/blocks/text.d.ts.map +1 -1
  25. package/dist/ai/command-bar.d.ts +18 -0
  26. package/dist/ai/command-bar.d.ts.map +1 -1
  27. package/dist/ai/command-bar.js +126 -125
  28. package/dist/ai/conversation.d.ts +13 -1
  29. package/dist/ai/conversation.d.ts.map +1 -1
  30. package/dist/ai/conversation.js +78 -78
  31. package/dist/ai/types.d.ts +0 -1
  32. package/dist/ai/types.d.ts.map +1 -1
  33. package/dist/ai/types.js +0 -1
  34. package/dist/composed/bulk-action-bar.d.ts +6 -4
  35. package/dist/composed/bulk-action-bar.d.ts.map +1 -1
  36. package/dist/composed/bulk-action-bar.js +102 -58
  37. package/dist/composed/command-palette.d.ts +9 -0
  38. package/dist/composed/command-palette.d.ts.map +1 -1
  39. package/dist/composed/command-palette.js +68 -68
  40. package/dist/composed/confirm-dialog.d.ts +1 -1
  41. package/dist/composed/confirm-dialog.d.ts.map +1 -1
  42. package/dist/composed/confirm-dialog.js +10 -10
  43. package/dist/composed/date-picker/date-picker.d.ts +11 -1
  44. package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
  45. package/dist/composed/date-picker/index.js +9 -8
  46. package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
  47. package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
  48. package/dist/composed/deadline-indicator.d.ts +1 -1
  49. package/dist/composed/deadline-indicator.d.ts.map +1 -1
  50. package/dist/composed/deadline-indicator.js +39 -36
  51. package/dist/composed/emoji-picker.d.ts +14 -2
  52. package/dist/composed/emoji-picker.d.ts.map +1 -1
  53. package/dist/composed/emoji-picker.js +66 -55
  54. package/dist/composed/error-boundary.d.ts +21 -1
  55. package/dist/composed/error-boundary.d.ts.map +1 -1
  56. package/dist/composed/error-boundary.js +47 -32
  57. package/dist/composed/extensions/emoji-data.d.ts +35 -0
  58. package/dist/composed/extensions/emoji-data.d.ts.map +1 -0
  59. package/dist/composed/extensions/emoji-node.d.ts +11 -0
  60. package/dist/composed/extensions/emoji-node.d.ts.map +1 -0
  61. package/dist/composed/extensions/emoji-suggestion.d.ts +4 -6
  62. package/dist/composed/extensions/emoji-suggestion.d.ts.map +1 -1
  63. package/dist/composed/extensions/slash-command.d.ts +35 -0
  64. package/dist/composed/extensions/slash-command.d.ts.map +1 -0
  65. package/dist/composed/file-preview/audio-preview.d.ts +7 -0
  66. package/dist/composed/file-preview/audio-preview.d.ts.map +1 -0
  67. package/dist/composed/file-preview/document-preview.d.ts +7 -0
  68. package/dist/composed/file-preview/document-preview.d.ts.map +1 -0
  69. package/dist/composed/file-preview/embed-preview.d.ts +7 -0
  70. package/dist/composed/file-preview/embed-preview.d.ts.map +1 -0
  71. package/dist/composed/file-preview/image-preview.d.ts +7 -0
  72. package/dist/composed/file-preview/image-preview.d.ts.map +1 -0
  73. package/dist/composed/file-preview/shared.d.ts +20 -0
  74. package/dist/composed/file-preview/shared.d.ts.map +1 -0
  75. package/dist/composed/file-preview/video-preview.d.ts +6 -0
  76. package/dist/composed/file-preview/video-preview.d.ts.map +1 -0
  77. package/dist/composed/file-preview.d.ts.map +1 -1
  78. package/dist/composed/file-preview.js +10 -662
  79. package/dist/composed/filter-bar.d.ts +10 -2
  80. package/dist/composed/filter-bar.d.ts.map +1 -1
  81. package/dist/composed/filter-bar.js +42 -43
  82. package/dist/composed/form-section.d.ts +1 -1
  83. package/dist/composed/form-section.d.ts.map +1 -1
  84. package/dist/composed/form-section.js +22 -21
  85. package/dist/composed/index.d.ts +9 -3
  86. package/dist/composed/index.d.ts.map +1 -1
  87. package/dist/composed/index.js +79 -69
  88. package/dist/composed/inline-edit.d.ts +1 -1
  89. package/dist/composed/inline-edit.d.ts.map +1 -1
  90. package/dist/composed/inline-edit.js +33 -32
  91. package/dist/composed/markdown-viewer.d.ts +1 -1
  92. package/dist/composed/markdown-viewer.d.ts.map +1 -1
  93. package/dist/composed/markdown-viewer.js +60 -59
  94. package/dist/composed/master-detail.d.ts +11 -7
  95. package/dist/composed/master-detail.d.ts.map +1 -1
  96. package/dist/composed/master-detail.js +123 -84
  97. package/dist/composed/responsive-overlay.d.ts +8 -0
  98. package/dist/composed/responsive-overlay.d.ts.map +1 -1
  99. package/dist/composed/rich-chat-input/attachment-strip.d.ts +15 -0
  100. package/dist/composed/rich-chat-input/attachment-strip.d.ts.map +1 -0
  101. package/dist/composed/rich-chat-input/audio-player.d.ts +11 -0
  102. package/dist/composed/rich-chat-input/audio-player.d.ts.map +1 -0
  103. package/dist/composed/rich-chat-input/audio-waveform.d.ts +24 -0
  104. package/dist/composed/rich-chat-input/audio-waveform.d.ts.map +1 -0
  105. package/dist/composed/rich-chat-input/chat-toolbar.d.ts +51 -0
  106. package/dist/composed/rich-chat-input/chat-toolbar.d.ts.map +1 -0
  107. package/dist/composed/rich-chat-input/recording-overlay.d.ts +15 -0
  108. package/dist/composed/rich-chat-input/recording-overlay.d.ts.map +1 -0
  109. package/dist/composed/rich-chat-input/reply-banner.d.ts +8 -0
  110. package/dist/composed/rich-chat-input/reply-banner.d.ts.map +1 -0
  111. package/dist/composed/rich-chat-input/schedule-send.d.ts +22 -0
  112. package/dist/composed/rich-chat-input/schedule-send.d.ts.map +1 -0
  113. package/dist/composed/rich-chat-input/use-voice-recorder.d.ts +18 -0
  114. package/dist/composed/rich-chat-input/use-voice-recorder.d.ts.map +1 -0
  115. package/dist/composed/rich-chat-input.d.ts +91 -0
  116. package/dist/composed/rich-chat-input.d.ts.map +1 -0
  117. package/dist/composed/rich-chat-input.js +1861 -0
  118. package/dist/composed/rich-text-editor.d.ts +14 -3
  119. package/dist/composed/rich-text-editor.d.ts.map +1 -1
  120. package/dist/composed/rich-text-editor.js +278 -447
  121. package/dist/composed/schedule-view.d.ts +9 -1
  122. package/dist/composed/schedule-view.d.ts.map +1 -1
  123. package/dist/hooks/index.d.ts +2 -0
  124. package/dist/hooks/index.d.ts.map +1 -1
  125. package/dist/hooks/index.js +8 -4
  126. package/dist/hooks/use-touch-device.d.ts +12 -0
  127. package/dist/hooks/use-touch-device.d.ts.map +1 -0
  128. package/dist/hooks/use-touch-device.js +13 -0
  129. package/dist/hooks/use-viewport-height.d.ts +11 -0
  130. package/dist/hooks/use-viewport-height.d.ts.map +1 -0
  131. package/dist/hooks/use-viewport-height.js +16 -0
  132. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  133. package/dist/shell/bottom-navbar.js +72 -63
  134. package/dist/shell/command-registry.d.ts.map +1 -1
  135. package/dist/shell/notification-center.d.ts.map +1 -1
  136. package/dist/shell/notification-center.js +77 -77
  137. package/dist/shell/top-bar.d.ts +2 -2
  138. package/dist/shell/top-bar.d.ts.map +1 -1
  139. package/dist/shell/top-bar.js +61 -60
  140. package/dist/tailwind/index.cjs +51 -7
  141. package/dist/tailwind/preset.d.ts.map +1 -1
  142. package/dist/tailwind/preset.js +51 -7
  143. package/dist/tokens/primitives.css +3 -1
  144. package/dist/tokens/semantic.css +16 -13
  145. package/dist/ui/autocomplete.d.ts.map +1 -1
  146. package/dist/ui/autocomplete.js +38 -39
  147. package/dist/ui/badge.d.ts +104 -2
  148. package/dist/ui/badge.d.ts.map +1 -1
  149. package/dist/ui/banner.d.ts.map +1 -1
  150. package/dist/ui/banner.js +8 -7
  151. package/dist/ui/button-group.d.ts +27 -37
  152. package/dist/ui/button-group.d.ts.map +1 -1
  153. package/dist/ui/button-group.js +95 -29
  154. package/dist/ui/button.d.ts +2 -2
  155. package/dist/ui/button.d.ts.map +1 -1
  156. package/dist/ui/button.js +118 -134
  157. package/dist/ui/card.js +24 -24
  158. package/dist/ui/charts/area-chart.d.ts +2 -0
  159. package/dist/ui/charts/area-chart.d.ts.map +1 -1
  160. package/dist/ui/charts/bar-chart.d.ts +2 -0
  161. package/dist/ui/charts/bar-chart.d.ts.map +1 -1
  162. package/dist/ui/charts/chart-container.d.ts +2 -0
  163. package/dist/ui/charts/chart-container.d.ts.map +1 -1
  164. package/dist/ui/charts/index.js +583 -577
  165. package/dist/ui/charts/line-chart.d.ts +2 -0
  166. package/dist/ui/charts/line-chart.d.ts.map +1 -1
  167. package/dist/ui/charts/pie-chart.d.ts +2 -0
  168. package/dist/ui/charts/pie-chart.d.ts.map +1 -1
  169. package/dist/ui/charts/radar-chart.d.ts +2 -0
  170. package/dist/ui/charts/radar-chart.d.ts.map +1 -1
  171. package/dist/ui/checkbox.d.ts +2 -0
  172. package/dist/ui/checkbox.d.ts.map +1 -1
  173. package/dist/ui/checkbox.js +36 -27
  174. package/dist/ui/color-input.js +5 -5
  175. package/dist/ui/combobox.d.ts +6 -1
  176. package/dist/ui/combobox.d.ts.map +1 -1
  177. package/dist/ui/combobox.js +1 -1
  178. package/dist/ui/context-menu.js +1 -1
  179. package/dist/ui/data-table-body.d.ts +12 -0
  180. package/dist/ui/data-table-body.d.ts.map +1 -0
  181. package/dist/ui/data-table-body.js +219 -0
  182. package/dist/ui/data-table-bulk-actions.d.ts +19 -0
  183. package/dist/ui/data-table-bulk-actions.d.ts.map +1 -0
  184. package/dist/ui/data-table-bulk-actions.js +61 -0
  185. package/dist/ui/data-table-card.d.ts +9 -0
  186. package/dist/ui/data-table-card.d.ts.map +1 -0
  187. package/dist/ui/data-table-card.js +73 -0
  188. package/dist/ui/data-table-context.d.ts +62 -0
  189. package/dist/ui/data-table-context.d.ts.map +1 -0
  190. package/dist/ui/data-table-context.js +48 -0
  191. package/dist/ui/data-table-header.d.ts +10 -0
  192. package/dist/ui/data-table-header.d.ts.map +1 -0
  193. package/dist/ui/data-table-header.js +141 -0
  194. package/dist/ui/data-table-pagination.d.ts +13 -0
  195. package/dist/ui/data-table-pagination.d.ts.map +1 -0
  196. package/dist/ui/data-table-pagination.js +84 -0
  197. package/dist/ui/data-table.d.ts +11 -9
  198. package/dist/ui/data-table.d.ts.map +1 -1
  199. package/dist/ui/data-table.js +258 -573
  200. package/dist/ui/dialog.d.ts +6 -2
  201. package/dist/ui/dialog.d.ts.map +1 -1
  202. package/dist/ui/dialog.js +84 -82
  203. package/dist/ui/dropdown-menu.js +1 -1
  204. package/dist/ui/hover-card.d.ts +7 -0
  205. package/dist/ui/hover-card.d.ts.map +1 -1
  206. package/dist/ui/hover-card.js +3 -3
  207. package/dist/ui/icon-group.d.ts +2 -4
  208. package/dist/ui/icon-group.d.ts.map +1 -1
  209. package/dist/ui/icon-group.js +22 -23
  210. package/dist/ui/index.d.ts +2 -2
  211. package/dist/ui/index.d.ts.map +1 -1
  212. package/dist/ui/index.js +324 -327
  213. package/dist/ui/label.js +1 -1
  214. package/dist/ui/lib/bottom-sheet.d.ts +16 -0
  215. package/dist/ui/lib/bottom-sheet.d.ts.map +1 -0
  216. package/dist/ui/menubar.d.ts.map +1 -1
  217. package/dist/ui/menubar.js +64 -73
  218. package/dist/ui/navigation-menu.d.ts.map +1 -1
  219. package/dist/ui/navigation-menu.js +40 -44
  220. package/dist/ui/number-input.d.ts.map +1 -1
  221. package/dist/ui/number-input.js +19 -17
  222. package/dist/ui/popover.d.ts.map +1 -1
  223. package/dist/ui/popover.js +107 -32
  224. package/dist/ui/progress-ring.d.ts.map +1 -1
  225. package/dist/ui/progress-ring.js +80 -80
  226. package/dist/ui/progress.js +4 -4
  227. package/dist/ui/radio.d.ts +5 -2
  228. package/dist/ui/radio.d.ts.map +1 -1
  229. package/dist/ui/radio.js +29 -20
  230. package/dist/ui/search-input.d.ts.map +1 -1
  231. package/dist/ui/search-input.js +13 -12
  232. package/dist/ui/segmented-control.d.ts +6 -108
  233. package/dist/ui/segmented-control.d.ts.map +1 -1
  234. package/dist/ui/segmented-control.js +86 -272
  235. package/dist/ui/select.js +5 -5
  236. package/dist/ui/separator.js +5 -5
  237. package/dist/ui/sheet.d.ts +2 -0
  238. package/dist/ui/sheet.d.ts.map +1 -1
  239. package/dist/ui/sheet.js +102 -84
  240. package/dist/ui/sidebar.d.ts.map +1 -1
  241. package/dist/ui/sidebar.js +200 -175
  242. package/dist/ui/slider.js +14 -14
  243. package/dist/ui/split-button.d.ts +45 -0
  244. package/dist/ui/split-button.d.ts.map +1 -0
  245. package/dist/ui/split-button.js +282 -0
  246. package/dist/ui/status-dot.js +8 -8
  247. package/dist/ui/stepper.d.ts.map +1 -1
  248. package/dist/ui/stepper.js +33 -31
  249. package/dist/ui/switch.js +3 -3
  250. package/dist/ui/tabs.js +6 -6
  251. package/dist/ui/toast-types.d.ts +0 -1
  252. package/dist/ui/toast-types.d.ts.map +1 -1
  253. package/dist/ui/toast-types.js +0 -1
  254. package/dist/ui/toast.d.ts.map +1 -1
  255. package/dist/ui/toast.js +156 -150
  256. package/dist/ui/toggle-group.js +1 -1
  257. package/dist/ui/toggle.js +1 -1
  258. package/dist/ui/tooltip.js +3 -3
  259. package/docs/components/composed/emoji-picker.md +9 -0
  260. package/docs/components/composed/rich-chat-input.md +88 -0
  261. package/docs/components/composed/rich-text-editor.md +5 -0
  262. package/docs/components/ui/button-group.md +9 -0
  263. package/docs/components/ui/button.md +4 -0
  264. package/docs/components/ui/data-table-body.md +13 -0
  265. package/docs/components/ui/data-table-bulk-actions.md +13 -0
  266. package/docs/components/ui/data-table-card.md +13 -0
  267. package/docs/components/ui/data-table-context.md +13 -0
  268. package/docs/components/ui/data-table-header.md +13 -0
  269. package/docs/components/ui/data-table-pagination.md +13 -0
  270. package/docs/components/ui/split-button.md +41 -0
  271. package/llms-full.txt +235 -48
  272. package/llms.txt +54 -2
  273. package/package.json +30 -31
  274. package/dist/ui/chip.d.ts +0 -19
  275. package/dist/ui/chip.d.ts.map +0 -1
  276. package/dist/ui/chip.js +0 -14
  277. package/dist/ui/lib/use-ripple.d.ts +0 -14
  278. package/dist/ui/lib/use-ripple.d.ts.map +0 -1
@@ -1,57 +1,132 @@
1
1
  "use client";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import * as r from "react";
4
- import { o as u, p as d, q as g, r as v, s as h } from "../_chunks/primitives.js";
5
- import { cn as y } from "./lib/utils.js";
6
- import { tweens as C, springs as P } from "./lib/motion.js";
7
- import { A as x, m as b } from "../_chunks/framer.js";
8
- const m = r.createContext(!1), w = ({
2
+ import { jsx as e, jsxs as h } from "react/jsx-runtime";
3
+ import * as n from "react";
4
+ import { ab as P, a6 as R, a5 as M, a7 as w, q as N, r as y, p as A, o as O, bh as j } from "../_chunks/primitives.js";
5
+ import { cn as g } from "./lib/utils.js";
6
+ import { tweens as v, springs as z } from "./lib/motion.js";
7
+ import { useIsMobile as E } from "../hooks/use-mobile.js";
8
+ import { u as k, A as b, m as p } from "../_chunks/framer.js";
9
+ function B({
10
+ open: t,
11
+ onOpenChange: s,
12
+ children: i,
13
+ className: l,
14
+ dragHandle: c = !0,
15
+ swipeable: d = !0,
16
+ title: a
17
+ }) {
18
+ const o = k(), r = n.useRef(null), u = n.useCallback(
19
+ (f, m) => {
20
+ const C = r.current?.getBoundingClientRect().height ?? 300;
21
+ (m.offset.y > C * 0.3 || m.velocity.y > 500) && s(!1);
22
+ },
23
+ [s]
24
+ );
25
+ return /* @__PURE__ */ e(P, { open: t, onOpenChange: s, children: /* @__PURE__ */ e(b, { children: t && /* @__PURE__ */ h(R, { forceMount: !0, children: [
26
+ /* @__PURE__ */ e(M, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ e(
27
+ p.div,
28
+ {
29
+ className: "fixed inset-0 z-modal bg-overlay",
30
+ initial: { opacity: 0 },
31
+ animate: { opacity: 1 },
32
+ exit: { opacity: 0 },
33
+ transition: v.fade
34
+ }
35
+ ) }),
36
+ /* @__PURE__ */ e(
37
+ w,
38
+ {
39
+ forceMount: !0,
40
+ asChild: !0,
41
+ "aria-label": a,
42
+ children: /* @__PURE__ */ h(
43
+ p.div,
44
+ {
45
+ ref: r,
46
+ className: g(
47
+ "fixed inset-x-0 bottom-0 z-modal max-h-[85vh] overflow-y-auto rounded-t-ds-xl border-t border-surface-border-strong bg-surface-overlay shadow-overlay outline-none",
48
+ l
49
+ ),
50
+ initial: { y: "100%" },
51
+ animate: { y: 0 },
52
+ exit: { y: "100%" },
53
+ transition: o ? { duration: 0 } : { type: "spring", damping: 30, stiffness: 300 },
54
+ drag: d && !o ? "y" : !1,
55
+ dragConstraints: { top: 0 },
56
+ dragElastic: 0.2,
57
+ onDragEnd: u,
58
+ children: [
59
+ c && /* @__PURE__ */ e("div", { className: "flex justify-center pt-ds-03 pb-ds-02", children: /* @__PURE__ */ e("div", { className: "h-1 w-8 rounded-ds-full bg-surface-border" }) }),
60
+ /* @__PURE__ */ e("div", { className: "px-ds-05 pb-ds-06", children: i })
61
+ ]
62
+ }
63
+ )
64
+ }
65
+ )
66
+ ] }) }) });
67
+ }
68
+ const x = n.createContext({ open: !1, onClose: () => {
69
+ } }), D = ({
9
70
  open: t,
10
71
  defaultOpen: s = !1,
11
- onOpenChange: n,
12
- ...a
72
+ onOpenChange: i,
73
+ ...l
13
74
  }) => {
14
- const [i, c] = r.useState(s), e = t !== void 0, p = e ? t : i, f = r.useCallback(
15
- (l) => {
16
- e || c(l), n?.(l);
75
+ const [c, d] = n.useState(s), a = t !== void 0, o = a ? t : c, r = n.useCallback(
76
+ (f) => {
77
+ a || d(f), i?.(f);
17
78
  },
18
- [e, n]
79
+ [a, i]
80
+ ), u = n.useMemo(
81
+ () => ({ open: o, onClose: () => r(!1) }),
82
+ [o, r]
19
83
  );
20
- return /* @__PURE__ */ o(m.Provider, { value: p, children: /* @__PURE__ */ o(v, { open: p, onOpenChange: f, ...a }) });
84
+ return /* @__PURE__ */ e(x.Provider, { value: u, children: /* @__PURE__ */ e(O, { open: o, onOpenChange: r, ...l }) });
21
85
  };
22
- w.displayName = "Popover";
23
- const j = g, k = h, A = r.forwardRef(({ className: t, align: s = "center", sideOffset: n = 4, children: a, ...i }, c) => {
24
- const e = r.useContext(m);
25
- return /* @__PURE__ */ o(x, { children: e && /* @__PURE__ */ o(u, { forceMount: !0, children: /* @__PURE__ */ o(
26
- d,
86
+ D.displayName = "Popover";
87
+ const _ = A, $ = j, S = n.forwardRef(({ className: t, align: s = "center", sideOffset: i = 4, children: l, ...c }, d) => {
88
+ const a = E(), { open: o, onClose: r } = n.useContext(x);
89
+ return a ? /* @__PURE__ */ e(
90
+ B,
91
+ {
92
+ open: o,
93
+ onOpenChange: (u) => {
94
+ u || r();
95
+ },
96
+ title: "Options",
97
+ className: t,
98
+ children: l
99
+ }
100
+ ) : /* @__PURE__ */ e(b, { children: o && /* @__PURE__ */ e(N, { forceMount: !0, children: /* @__PURE__ */ e(
101
+ y,
27
102
  {
28
- ref: c,
103
+ ref: d,
29
104
  align: s,
30
- sideOffset: n,
105
+ sideOffset: i,
31
106
  forceMount: !0,
32
107
  asChild: !0,
33
- ...i,
34
- children: /* @__PURE__ */ o(
35
- b.div,
108
+ ...c,
109
+ children: /* @__PURE__ */ e(
110
+ p.div,
36
111
  {
37
112
  initial: { opacity: 0, scale: 0.95 },
38
113
  animate: { opacity: 1, scale: 1 },
39
114
  exit: { opacity: 0, scale: 0.95 },
40
- transition: { ...P.snappy, opacity: C.fade },
41
- className: y(
115
+ transition: { ...z.snappy, opacity: v.fade },
116
+ className: g(
42
117
  "z-popover w-72 rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-05 text-surface-fg shadow-floating outline-none",
43
118
  t
44
119
  ),
45
- children: a
120
+ children: l
46
121
  }
47
122
  )
48
123
  }
49
124
  ) }) });
50
125
  });
51
- A.displayName = d.displayName;
126
+ S.displayName = y.displayName;
52
127
  export {
53
- w as Popover,
54
- k as PopoverAnchor,
55
- A as PopoverContent,
56
- j as PopoverTrigger
128
+ D as Popover,
129
+ $ as PopoverAnchor,
130
+ S as PopoverContent,
131
+ _ as PopoverTrigger
57
132
  };
@@ -1 +1 @@
1
- {"version":3,"file":"progress-ring.d.ts","sourceRoot":"","sources":["../../src/ui/progress-ring.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAmB9B;;;;;;GAMG;AACH,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IAC1F,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,iCAAiC;IACjC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,oBAAoB;IACpB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,yBAAyB;IACzB,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;IAC5D,qCAAqC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,QAAA,MAAM,YAAY,yFA2EjB,CAAA;AAGD;;;;;;;;GAQG;AACH,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IAC/F,KAAK,EAAE,KAAK,CAAC;QACX,KAAK,EAAE,MAAM,CAAA;QACb,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;QAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAC,CAAA;IACF,oBAAoB;IACpB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAC1B;AAED,QAAA,MAAM,iBAAiB,8FAsDtB,CAAA;AAGD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
1
+ {"version":3,"file":"progress-ring.d.ts","sourceRoot":"","sources":["../../src/ui/progress-ring.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAmB9B;;;;;;GAMG;AACH,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IAC1F,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,iCAAiC;IACjC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,oBAAoB;IACpB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,yBAAyB;IACzB,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;IAC5D,qCAAqC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,QAAA,MAAM,YAAY,yFA2EjB,CAAA;AAGD;;;;;;;;GAQG;AACH,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IAC/F,KAAK,EAAE,KAAK,CAAC;QACX,KAAK,EAAE,MAAM,CAAA;QACb,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;QAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAC,CAAA;IACF,oBAAoB;IACpB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAC1B;AAED,QAAA,MAAM,iBAAiB,8FAuDtB,CAAA;AAGD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { jsxs as W, jsx as a } from "react/jsx-runtime";
3
- import * as d from "react";
4
- import { springs as M } from "./lib/motion.js";
5
- import { cn as x } from "./lib/utils.js";
6
- import { a as R, b as D, c as b, m as v } from "../_chunks/framer.js";
7
- const y = {
2
+ import { jsxs as W, jsx as c } from "react/jsx-runtime";
3
+ import * as f from "react";
4
+ import { springs as y } from "./lib/motion.js";
5
+ import { cn as v } from "./lib/utils.js";
6
+ import { u as w, a as b, b as N, c as S, m as M } from "../_chunks/framer.js";
7
+ const R = {
8
8
  default: "var(--color-accent-9)",
9
9
  success: "var(--color-success-9)",
10
10
  warning: "var(--color-warning-9)",
@@ -14,68 +14,68 @@ const y = {
14
14
  sm: { size: 32, strokeWidth: 3, fontSize: "text-ds-xs" },
15
15
  md: { size: 48, strokeWidth: 3.5, fontSize: "text-ds-sm" },
16
16
  lg: { size: 64, strokeWidth: 4, fontSize: "text-ds-md" }
17
- }, N = d.forwardRef(
18
- ({ value: l, max: f = 100, size: m = "md", color: h = "default", showValue: u = !1, label: e, className: r, ...g }, c) => {
19
- const s = $[m], t = (s.size - s.strokeWidth) / 2, i = 2 * Math.PI * t, n = Math.min(Math.max(l / f, 0), 1), k = i * (1 - n), o = s.size / 2, w = Math.round(n * 100), p = R(0), P = D(p, (z) => `${Math.round(z)}%`);
20
- return d.useEffect(() => {
21
- const z = b(p, n * 100, {
22
- stiffness: 100,
23
- damping: 30,
24
- type: "spring"
25
- });
26
- return () => z.stop();
27
- }, [n, p]), /* @__PURE__ */ W(
17
+ }, B = f.forwardRef(
18
+ ({ value: l, max: d = 100, size: m = "md", color: h = "default", showValue: u = !1, label: g, className: s, ...r }, k) => {
19
+ const i = w(), e = $[m], o = (e.size - e.strokeWidth) / 2, a = 2 * Math.PI * o, n = Math.min(Math.max(l / d, 0), 1), p = a * (1 - n), t = e.size / 2, P = Math.round(n * 100), z = b(0), D = N(z, (x) => `${Math.round(x)}%`);
20
+ return f.useEffect(() => {
21
+ const x = S(
22
+ z,
23
+ n * 100,
24
+ i ? { type: "tween", duration: 0 } : { stiffness: 100, damping: 30, type: "spring" }
25
+ );
26
+ return () => x.stop();
27
+ }, [n, z, i]), /* @__PURE__ */ W(
28
28
  "svg",
29
29
  {
30
- ref: c,
31
- width: s.size,
32
- height: s.size,
33
- viewBox: `0 0 ${s.size} ${s.size}`,
30
+ ref: k,
31
+ width: e.size,
32
+ height: e.size,
33
+ viewBox: `0 0 ${e.size} ${e.size}`,
34
34
  role: "progressbar",
35
35
  "aria-valuenow": l,
36
36
  "aria-valuemin": 0,
37
- "aria-valuemax": f,
38
- "aria-label": e ?? `${w}% progress`,
39
- className: x("shrink-0", r),
40
- ...g,
37
+ "aria-valuemax": d,
38
+ "aria-label": g ?? `${P}% progress`,
39
+ className: v("shrink-0", s),
40
+ ...r,
41
41
  children: [
42
- /* @__PURE__ */ a(
42
+ /* @__PURE__ */ c(
43
43
  "circle",
44
44
  {
45
- cx: o,
46
- cy: o,
47
- r: t,
45
+ cx: t,
46
+ cy: t,
47
+ r: o,
48
48
  fill: "none",
49
- stroke: "var(--color-surface-sunken)",
50
- strokeWidth: s.strokeWidth
49
+ stroke: "var(--color-surface-raised-hover)",
50
+ strokeWidth: e.strokeWidth
51
51
  }
52
52
  ),
53
- /* @__PURE__ */ a(
54
- v.circle,
53
+ /* @__PURE__ */ c(
54
+ M.circle,
55
55
  {
56
- cx: o,
57
- cy: o,
58
- r: t,
56
+ cx: t,
57
+ cy: t,
58
+ r: o,
59
59
  fill: "none",
60
- stroke: y[h],
61
- strokeWidth: s.strokeWidth,
60
+ stroke: R[h],
61
+ strokeWidth: e.strokeWidth,
62
62
  strokeLinecap: "round",
63
- strokeDasharray: i,
64
- initial: { strokeDashoffset: i },
65
- animate: { strokeDashoffset: k },
66
- transition: M.smooth,
67
- transform: `rotate(-90 ${o} ${o})`
63
+ strokeDasharray: a,
64
+ initial: { strokeDashoffset: a },
65
+ animate: { strokeDashoffset: p },
66
+ transition: i ? { duration: 0 } : y.smooth,
67
+ transform: `rotate(-90 ${t} ${t})`
68
68
  }
69
69
  ),
70
- u && /* @__PURE__ */ a(
71
- v.text,
70
+ u && /* @__PURE__ */ c(
71
+ M.text,
72
72
  {
73
- x: o,
74
- y: o,
73
+ x: t,
74
+ y: t,
75
75
  textAnchor: "middle",
76
76
  dominantBaseline: "central",
77
- className: x(s.fontSize, "fill-surface-fg font-sans font-semibold"),
78
- children: P
77
+ className: v(e.fontSize, "fill-surface-fg font-sans font-semibold"),
78
+ children: D
79
79
  }
80
80
  )
81
81
  ]
@@ -83,62 +83,62 @@ const y = {
83
83
  );
84
84
  }
85
85
  );
86
- N.displayName = "ProgressRing";
87
- const S = d.forwardRef(
88
- ({ rings: l, size: f = "md", className: m, ...h }, u) => {
89
- const e = $[f], r = e.size / 2, g = e.strokeWidth + 2;
90
- return /* @__PURE__ */ a(
86
+ B.displayName = "ProgressRing";
87
+ const V = f.forwardRef(
88
+ ({ rings: l, size: d = "md", className: m, ...h }, u) => {
89
+ const g = w(), s = $[d], r = s.size / 2, k = s.strokeWidth + 2;
90
+ return /* @__PURE__ */ c(
91
91
  "svg",
92
92
  {
93
93
  ref: u,
94
- width: e.size,
95
- height: e.size,
96
- viewBox: `0 0 ${e.size} ${e.size}`,
94
+ width: s.size,
95
+ height: s.size,
96
+ viewBox: `0 0 ${s.size} ${s.size}`,
97
97
  role: "group",
98
98
  "aria-label": "Progress rings",
99
- className: x("shrink-0", m),
99
+ className: v("shrink-0", m),
100
100
  ...h,
101
- children: l.map((c, s) => {
102
- const t = (e.size - e.strokeWidth) / 2 - s * g;
103
- if (t <= 0) return null;
104
- const i = 2 * Math.PI * t, n = Math.min(Math.max(c.value / (c.max ?? 100), 0), 1), k = i * (1 - n);
105
- return /* @__PURE__ */ W(d.Fragment, { children: [
106
- /* @__PURE__ */ a(
101
+ children: l.map((i, e) => {
102
+ const o = (s.size - s.strokeWidth) / 2 - e * k;
103
+ if (o <= 0) return null;
104
+ const a = 2 * Math.PI * o, n = Math.min(Math.max(i.value / (i.max ?? 100), 0), 1), p = a * (1 - n);
105
+ return /* @__PURE__ */ W(f.Fragment, { children: [
106
+ /* @__PURE__ */ c(
107
107
  "circle",
108
108
  {
109
109
  cx: r,
110
110
  cy: r,
111
- r: t,
111
+ r: o,
112
112
  fill: "none",
113
- stroke: "var(--color-surface-sunken)",
114
- strokeWidth: e.strokeWidth
113
+ stroke: "var(--color-surface-raised-hover)",
114
+ strokeWidth: s.strokeWidth
115
115
  }
116
116
  ),
117
- /* @__PURE__ */ a(
118
- v.circle,
117
+ /* @__PURE__ */ c(
118
+ M.circle,
119
119
  {
120
120
  cx: r,
121
121
  cy: r,
122
- r: t,
122
+ r: o,
123
123
  fill: "none",
124
- stroke: y[c.color ?? "default"],
125
- strokeWidth: e.strokeWidth,
124
+ stroke: R[i.color ?? "default"],
125
+ strokeWidth: s.strokeWidth,
126
126
  strokeLinecap: "round",
127
- strokeDasharray: i,
128
- initial: { strokeDashoffset: i },
129
- animate: { strokeDashoffset: k },
130
- transition: M.smooth,
127
+ strokeDasharray: a,
128
+ initial: { strokeDashoffset: a },
129
+ animate: { strokeDashoffset: p },
130
+ transition: g ? { duration: 0 } : y.smooth,
131
131
  transform: `rotate(-90 ${r} ${r})`
132
132
  }
133
133
  )
134
- ] }, s);
134
+ ] }, e);
135
135
  })
136
136
  }
137
137
  );
138
138
  }
139
139
  );
140
- S.displayName = "MultiProgressRing";
140
+ V.displayName = "MultiProgressRing";
141
141
  export {
142
- S as MultiProgressRing,
143
- N as ProgressRing
142
+ V as MultiProgressRing,
143
+ B as ProgressRing
144
144
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsxs as n, jsx as a } from "react/jsx-runtime";
3
3
  import * as x from "react";
4
- import { aQ as c, aR as d } from "../_chunks/primitives.js";
4
+ import { aP as c, aQ as d } from "../_chunks/primitives.js";
5
5
  import { a as m } from "../_chunks/vendor-utils.js";
6
6
  import { cn as s } from "./lib/utils.js";
7
7
  import { springs as N } from "./lib/motion.js";
@@ -31,7 +31,7 @@ const v = m(
31
31
  },
32
32
  defaultVariants: { color: "default" }
33
33
  }
34
- ), R = x.forwardRef(
34
+ ), V = x.forwardRef(
35
35
  ({
36
36
  className: f,
37
37
  value: r,
@@ -88,9 +88,9 @@ const v = m(
88
88
  ] });
89
89
  }
90
90
  );
91
- R.displayName = c.displayName;
91
+ V.displayName = c.displayName;
92
92
  export {
93
- R as Progress,
93
+ V as Progress,
94
94
  l as progressIndicatorVariants,
95
95
  v as progressTrackVariants
96
96
  };
@@ -2,8 +2,11 @@
2
2
  import * as RadioGroupPrimitive from '../primitives/react-radio-group';
3
3
  import * as React from 'react';
4
4
  declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
- declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
+ export interface RadioGroupItemProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {
6
+ /** Control size — `sm` (20px), `md` (24px, default, WCAG compliant), `lg` (28px). */
7
+ size?: 'sm' | 'md' | 'lg';
8
+ }
9
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
6
10
  export type RadioGroupProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;
7
- export type RadioGroupItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;
8
11
  export { RadioGroup, RadioGroupItem };
9
12
  //# sourceMappingURL=radio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/ui/radio.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,mBAAmB,MAAM,+BAA+B,CAAA;AAGpE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,UAAU,+JAKd,CAAA;AAGF,QAAA,MAAM,cAAc,yKA+BlB,CAAA;AAGF,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAA;AAC7F,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAA;AAEjG,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA"}
1
+ {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/ui/radio.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,mBAAmB,MAAM,+BAA+B,CAAA;AAGpE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,UAAU,+JAKd,CAAA;AAGF,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC;IAC1G,qFAAqF;IACrF,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAC1B;AAcD,QAAA,MAAM,cAAc,+FAgClB,CAAA;AAGF,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAA;AAE7F,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA"}
package/dist/ui/radio.js CHANGED
@@ -1,19 +1,28 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { ak as o, al as i, am as n } from "../_chunks/primitives.js";
4
- import { IconCircle as d } from "@tabler/icons-react";
5
- import * as t from "react";
6
- import { springs as l } from "./lib/motion.js";
7
- import { cn as c } from "./lib/utils.js";
8
- import { m } from "../_chunks/framer.js";
9
- const f = t.forwardRef(({ className: r, ...a }, s) => /* @__PURE__ */ e(o, { className: c("grid gap-ds-03", r), ...a, ref: s }));
10
- f.displayName = o.displayName;
11
- const u = t.forwardRef(({ className: r, ...a }, s) => /* @__PURE__ */ e(
12
- i,
3
+ import { aj as i, ak as t, al as n } from "../_chunks/primitives.js";
4
+ import { IconCircle as l } from "@tabler/icons-react";
5
+ import * as c from "react";
6
+ import { springs as m } from "./lib/motion.js";
7
+ import { cn as o } from "./lib/utils.js";
8
+ import { m as f } from "../_chunks/framer.js";
9
+ const u = c.forwardRef(({ className: r, ...a }, s) => /* @__PURE__ */ e(i, { className: o("grid gap-ds-03", r), ...a, ref: s }));
10
+ u.displayName = i.displayName;
11
+ const p = {
12
+ sm: "h-5 w-5",
13
+ md: "h-6 w-6",
14
+ lg: "h-7 w-7"
15
+ }, b = {
16
+ sm: "h-1.5 w-1.5",
17
+ md: "h-ds-03 w-ds-03",
18
+ lg: "h-2.5 w-2.5"
19
+ }, h = c.forwardRef(({ className: r, size: a = "md", ...s }, d) => /* @__PURE__ */ e(
20
+ t,
13
21
  {
14
- ref: s,
15
- className: c(
16
- "aspect-square h-ico-md w-ico-md rounded-ds-full",
22
+ ref: d,
23
+ className: o(
24
+ "touch-target aspect-square rounded-ds-full",
25
+ p[a],
17
26
  "border border-surface-border-strong bg-surface-raised-hover",
18
27
  "transition-colors duration-fast-01",
19
28
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2",
@@ -22,21 +31,21 @@ const u = t.forwardRef(({ className: r, ...a }, s) => /* @__PURE__ */ e(
22
31
  "data-[state=checked]:border-accent-7",
23
32
  r
24
33
  ),
25
- ...a,
34
+ ...s,
26
35
  children: /* @__PURE__ */ e(n, { asChild: !0, className: "flex items-center justify-center", children: /* @__PURE__ */ e(
27
- m.span,
36
+ f.span,
28
37
  {
29
38
  className: "flex items-center justify-center",
30
39
  initial: { scale: 0 },
31
40
  animate: { scale: 1 },
32
- transition: l.bouncy,
33
- children: /* @__PURE__ */ e(d, { className: "h-ds-03 w-ds-03 fill-accent-9 text-accent-11" })
41
+ transition: m.bouncy,
42
+ children: /* @__PURE__ */ e(l, { className: o(b[a], "fill-accent-9 text-accent-11") })
34
43
  }
35
44
  ) })
36
45
  }
37
46
  ));
38
- u.displayName = i.displayName;
47
+ h.displayName = t.displayName;
39
48
  export {
40
- f as RadioGroup,
41
- u as RadioGroupItem
49
+ u as RadioGroup,
50
+ h as RadioGroupItem
42
51
  };
@@ -1 +1 @@
1
- {"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../src/ui/search-input.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,KAAK,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,2FA4ChB,CAAA;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../src/ui/search-input.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,KAAK,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import { IconX as d, IconSearch as l } from "@tabler/icons-react";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { IconX as f, IconSearch as d } from "@tabler/icons-react";
4
4
  import * as h from "react";
5
5
  import { springs as y } from "./lib/motion.js";
6
6
  import { Spinner as S } from "./spinner.js";
@@ -9,15 +9,15 @@ import { Input as u } from "./input.js";
9
9
  import { Button as I } from "./button.js";
10
10
  import { A as b, m as x } from "../_chunks/framer.js";
11
11
  const C = h.forwardRef(
12
- ({ className: a, value: t, onClear: r, loading: i, size: c = "md", placeholder: m, ...s }, p) => {
13
- const n = t !== void 0 && t !== "", f = i ? /* @__PURE__ */ o(S, { size: "sm" }) : /* @__PURE__ */ o(b, { children: n && r && /* @__PURE__ */ o(
12
+ ({ className: a, value: i, onClear: r, loading: o, size: c = "md", placeholder: m, ...s }, p) => {
13
+ const n = i !== void 0 && i !== "", l = o ? /* @__PURE__ */ t(S, { size: "sm" }) : /* @__PURE__ */ t(b, { children: n && r && /* @__PURE__ */ t(
14
14
  x.div,
15
15
  {
16
16
  initial: { opacity: 0, scale: 0.8 },
17
17
  animate: { opacity: 1, scale: 1 },
18
18
  exit: { opacity: 0, scale: 0.8 },
19
19
  transition: y.snappy,
20
- children: /* @__PURE__ */ o(
20
+ children: /* @__PURE__ */ t(
21
21
  I,
22
22
  {
23
23
  type: "button",
@@ -25,22 +25,23 @@ const C = h.forwardRef(
25
25
  size: "icon-xs",
26
26
  onClick: r,
27
27
  "aria-label": "Clear search",
28
- children: /* @__PURE__ */ o(e, { icon: d })
28
+ title: "Clear",
29
+ children: /* @__PURE__ */ t(e, { icon: f })
29
30
  }
30
31
  )
31
32
  }
32
33
  ) });
33
- return /* @__PURE__ */ o(
34
+ return /* @__PURE__ */ t(
34
35
  u,
35
36
  {
36
37
  ref: p,
37
38
  size: c,
38
- startSection: /* @__PURE__ */ o(e, { icon: l }),
39
- endSection: f,
40
- endSectionClickable: !!n && !i,
39
+ startSection: /* @__PURE__ */ t(e, { icon: d }),
40
+ endSection: l,
41
+ endSectionClickable: !!n && !o,
41
42
  placeholder: m,
42
- value: t,
43
- "aria-busy": i || void 0,
43
+ value: i,
44
+ "aria-busy": o || void 0,
44
45
  className: a,
45
46
  ...s
46
47
  }