@devalok/shilp-sutra 0.17.2 → 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 (318) 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 +50 -0
  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 -165
  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 -449
  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 +26 -8
  310. package/dist/_chunks/switch.js +0 -10
  311. package/dist/composed/upload-progress.d.ts +0 -33
  312. package/dist/composed/upload-progress.d.ts.map +0 -1
  313. package/dist/composed/upload-progress.js +0 -386
  314. package/dist/ui/lib/use-reduced-motion.d.ts +0 -4
  315. package/dist/ui/lib/use-reduced-motion.d.ts.map +0 -1
  316. package/dist/ui/transitions.d.ts +0 -17
  317. package/dist/ui/transitions.d.ts.map +0 -1
  318. package/dist/ui/transitions.js +0 -111
package/dist/ui/select.js CHANGED
@@ -1,12 +1,14 @@
1
1
  "use client";
2
2
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
3
- import * as r from "react";
4
- import { an as c, ao as w, ap as n, aq as m, ar as N, as as p, at as g, au as f, av as u, aw as v, ax as S, ay as h, az as I, aA as R, aB as j } from "../_chunks/primitives.js";
5
- import { IconChevronDown as b, IconChevronUp as z, IconCheck as C } from "@tabler/icons-react";
6
- import { e as B } from "../_chunks/vendor-utils.js";
7
- import { c as o } from "../_chunks/utils.js";
8
- const F = I, H = R, J = j, V = B(
9
- "flex w-full items-center justify-between whitespace-nowrap rounded-ds-md border border-border bg-field placeholder:text-text-placeholder focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 focus-visible:border-border-interactive disabled:cursor-not-allowed disabled:opacity-[0.38] [&>span]:line-clamp-1",
3
+ import * as o from "react";
4
+ import { al as c, am as w, an as n, ao as m, ap as x, aq as p, ar as N, as as f, at as u, au as v, av as S, aw as h, ax as I, ay as R, az as C } from "../_chunks/primitives.js";
5
+ import { IconChevronDown as y, IconChevronUp as j, IconCheck as V } from "@tabler/icons-react";
6
+ import { ag as z } from "../_chunks/vendor-utils.js";
7
+ import { c as r } from "../_chunks/utils.js";
8
+ import { t as B, s as T } from "../_chunks/motion2.js";
9
+ import { m as D } from "../_chunks/motion.js";
10
+ const O = I, Q = C, W = R, U = z(
11
+ "flex w-full items-center justify-between whitespace-nowrap rounded-ds-md border border-surface-border-strong bg-surface-3 placeholder:text-surface-fg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 focus-visible:border-accent-7 disabled:cursor-not-allowed disabled:opacity-action-disabled [&>span]:line-clamp-1",
10
12
  {
11
13
  variants: {
12
14
  size: {
@@ -17,117 +19,126 @@ const F = I, H = R, J = j, V = B(
17
19
  },
18
20
  defaultVariants: { size: "md" }
19
21
  }
20
- ), T = r.forwardRef(({ className: s, children: t, size: a, ...d }, l) => /* @__PURE__ */ i(
22
+ ), G = o.forwardRef(({ className: s, children: t, size: a, ...d }, l) => /* @__PURE__ */ i(
21
23
  c,
22
24
  {
23
25
  ref: l,
24
- className: o(V({ size: a }), s),
26
+ className: r(U({ size: a }), s),
25
27
  ...d,
26
28
  children: [
27
29
  t,
28
- /* @__PURE__ */ e(w, { asChild: !0, children: /* @__PURE__ */ e(b, { className: "h-ico-sm w-ico-sm opacity-[0.5]" }) })
30
+ /* @__PURE__ */ e(w, { asChild: !0, children: /* @__PURE__ */ e(y, { className: "h-ico-sm w-ico-sm opacity-50" }) })
29
31
  ]
30
32
  }
31
33
  ));
32
- T.displayName = c.displayName;
33
- const y = r.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
34
+ G.displayName = c.displayName;
35
+ const b = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
34
36
  n,
35
37
  {
36
38
  ref: a,
37
- className: o(
39
+ className: r(
38
40
  "flex cursor-default items-center justify-center py-ds-02",
39
41
  s
40
42
  ),
41
43
  ...t,
42
- children: /* @__PURE__ */ e(z, { className: "h-ico-sm w-ico-sm" })
44
+ children: /* @__PURE__ */ e(j, { className: "h-ico-sm w-ico-sm" })
43
45
  }
44
46
  ));
45
- y.displayName = n.displayName;
46
- const x = r.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
47
+ b.displayName = n.displayName;
48
+ const g = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
47
49
  m,
48
50
  {
49
51
  ref: a,
50
- className: o(
52
+ className: r(
51
53
  "flex cursor-default items-center justify-center py-ds-02",
52
54
  s
53
55
  ),
54
56
  ...t,
55
- children: /* @__PURE__ */ e(b, { className: "h-ico-sm w-ico-sm" })
57
+ children: /* @__PURE__ */ e(y, { className: "h-ico-sm w-ico-sm" })
56
58
  }
57
59
  ));
58
- x.displayName = m.displayName;
59
- const D = r.forwardRef(({ className: s, children: t, position: a = "popper", ...d }, l) => /* @__PURE__ */ e(N, { children: /* @__PURE__ */ i(
60
+ g.displayName = m.displayName;
61
+ const L = o.forwardRef(({ className: s, children: t, position: a = "popper", ...d }, l) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(
60
62
  p,
61
63
  {
62
64
  ref: l,
63
- className: o(
64
- "relative z-popover max-h-96 min-w-[8rem] overflow-hidden rounded-ds-lg border border-border bg-layer-01 text-text-primary shadow-03 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",
65
- a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
66
- s
67
- ),
68
65
  position: a,
66
+ asChild: !0,
69
67
  ...d,
70
- children: [
71
- /* @__PURE__ */ e(y, {}),
72
- /* @__PURE__ */ e(
73
- g,
74
- {
75
- className: o(
76
- "p-ds-02",
77
- a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
68
+ children: /* @__PURE__ */ i(
69
+ D.div,
70
+ {
71
+ initial: { opacity: 0, scale: 0.95 },
72
+ animate: { opacity: 1, scale: 1 },
73
+ transition: { ...T.snappy, opacity: B.fade },
74
+ className: r(
75
+ "relative z-popover max-h-96 min-w-[8rem] overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-1 text-surface-fg shadow-03",
76
+ a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
77
+ s
78
+ ),
79
+ children: [
80
+ /* @__PURE__ */ e(b, {}),
81
+ /* @__PURE__ */ e(
82
+ N,
83
+ {
84
+ className: r(
85
+ "p-ds-02",
86
+ a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
87
+ ),
88
+ children: t
89
+ }
78
90
  ),
79
- children: t
80
- }
81
- ),
82
- /* @__PURE__ */ e(x, {})
83
- ]
91
+ /* @__PURE__ */ e(g, {})
92
+ ]
93
+ }
94
+ )
84
95
  }
85
96
  ) }));
86
- D.displayName = p.displayName;
87
- const U = r.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
97
+ L.displayName = p.displayName;
98
+ const k = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
88
99
  f,
89
100
  {
90
101
  ref: a,
91
- className: o("px-ds-03 py-ds-02b text-ds-md font-semibold", s),
102
+ className: r("px-ds-03 py-ds-02b text-ds-md font-semibold", s),
92
103
  ...t
93
104
  }
94
105
  ));
95
- U.displayName = f.displayName;
96
- const G = r.forwardRef(({ className: s, children: t, ...a }, d) => /* @__PURE__ */ i(
106
+ k.displayName = f.displayName;
107
+ const q = o.forwardRef(({ className: s, children: t, ...a }, d) => /* @__PURE__ */ i(
97
108
  u,
98
109
  {
99
110
  ref: d,
100
- className: o(
101
- "relative flex w-full cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-03 pr-ds-07 text-ds-md outline-none focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38]",
111
+ className: r(
112
+ "relative flex w-full cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-03 pr-ds-07 text-ds-md outline-none focus:bg-surface-2 focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
102
113
  s
103
114
  ),
104
115
  ...a,
105
116
  children: [
106
- /* @__PURE__ */ e("span", { className: "absolute right-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(C, { className: "h-ico-sm w-ico-sm" }) }) }),
117
+ /* @__PURE__ */ e("span", { className: "absolute right-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(V, { className: "h-ico-sm w-ico-sm" }) }) }),
107
118
  /* @__PURE__ */ e(S, { children: t })
108
119
  ]
109
120
  }
110
121
  ));
111
- G.displayName = u.displayName;
112
- const L = r.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
122
+ q.displayName = u.displayName;
123
+ const P = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
113
124
  h,
114
125
  {
115
126
  ref: a,
116
- className: o("-mx-ds-01 my-ds-02 h-px bg-border-subtle", s),
127
+ className: r("-mx-ds-01 my-ds-02 h-px bg-surface-border", s),
117
128
  ...t
118
129
  }
119
130
  ));
120
- L.displayName = h.displayName;
131
+ P.displayName = h.displayName;
121
132
  export {
122
- F as Select,
123
- D as SelectContent,
124
- H as SelectGroup,
125
- G as SelectItem,
126
- U as SelectLabel,
127
- x as SelectScrollDownButton,
128
- y as SelectScrollUpButton,
129
- L as SelectSeparator,
130
- T as SelectTrigger,
131
- J as SelectValue,
132
- V as selectTriggerVariants
133
+ O as Select,
134
+ L as SelectContent,
135
+ Q as SelectGroup,
136
+ q as SelectItem,
137
+ k as SelectLabel,
138
+ g as SelectScrollDownButton,
139
+ b as SelectScrollUpButton,
140
+ P as SelectSeparator,
141
+ G as SelectTrigger,
142
+ W as SelectValue,
143
+ U as selectTriggerVariants
133
144
  };
@@ -1,17 +1,17 @@
1
1
  "use client";
2
- import { jsx as l } from "react/jsx-runtime";
3
- import * as p from "react";
4
- import { bk as o } from "../_chunks/primitives.js";
5
- import { c as e } from "../_chunks/utils.js";
6
- const f = p.forwardRef(
7
- ({ className: a, orientation: r = "horizontal", decorative: m = !0, ...s }, t) => /* @__PURE__ */ l(
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import * as e from "react";
4
+ import { bb as o } from "../_chunks/primitives.js";
5
+ import { c as f } from "../_chunks/utils.js";
6
+ const l = e.forwardRef(
7
+ ({ className: a, orientation: r = "horizontal", decorative: m = !0, ...s }, p) => /* @__PURE__ */ t(
8
8
  o,
9
9
  {
10
- ref: t,
10
+ ref: p,
11
11
  decorative: m,
12
12
  orientation: r,
13
- className: e(
14
- "shrink-0 bg-border-subtle",
13
+ className: f(
14
+ "shrink-0 bg-surface-border",
15
15
  r === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
16
16
  a
17
17
  ),
@@ -19,7 +19,7 @@ const f = p.forwardRef(
19
19
  }
20
20
  )
21
21
  );
22
- f.displayName = o.displayName;
22
+ l.displayName = o.displayName;
23
23
  export {
24
- f as Separator
24
+ l as Separator
25
25
  };
@@ -48,7 +48,7 @@ import * as SheetPrimitive from '../primitives/react-dialog';
48
48
  * </SheetContent>
49
49
  * </Sheet>
50
50
  */
51
- declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
51
+ declare const Sheet: React.FC<React.ComponentPropsWithoutRef<typeof SheetPrimitive.Root>>;
52
52
  declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
53
53
  declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
54
54
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/ui/sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAKjE;;;;;;;;;;;;;;;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,6GAAyB,CAAA;AAE3C,QAAA,MAAM,UAAU,2GAAuB,CAAA;AAEvC,QAAA,MAAM,WAAW,4CAAwB,CAAA;AAEzC,QAAA,MAAM,YAAY,6JAehB,CAAA;AAmBF,QAAA,MAAM,aAAa;;8EAelB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,WAAW,iBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,EACnE,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,QAAA,MAAM,YAAY,0FAgChB,CAAA;AAGF,QAAA,MAAM,WAAW,6GAWhB,CAAA;AAGD,QAAA,MAAM,WAAW,6GAWhB,CAAA;AAGD,QAAA,MAAM,UAAU,mKASd,CAAA;AAGF,QAAA,MAAM,gBAAgB,6KASpB,CAAA;AAGF,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAA"}
package/dist/ui/sheet.js CHANGED
@@ -1,111 +1,147 @@
1
1
  "use client";
2
- import { jsx as s, jsxs as d } from "react/jsx-runtime";
3
- import * as o from "react";
4
- import { aa as i, ab as x, ac as l, ad as n, ae as m, af as c, ag as b, ah as y } from "../_chunks/primitives.js";
5
- import { e as u } from "../_chunks/vendor-utils.js";
6
- import { IconX as g } from "@tabler/icons-react";
7
- import { c as r } from "../_chunks/utils.js";
8
- const O = b, P = y, V = n, N = x, f = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
9
- i,
2
+ import { jsx as o, jsxs as d } from "react/jsx-runtime";
3
+ import * as r from "react";
4
+ import { aa as h, ab as R, ac as u, ad as x, ae as b, af as y, ag as P, ah as j } from "../_chunks/primitives.js";
5
+ import { ag as T } from "../_chunks/vendor-utils.js";
6
+ import { IconX as A } from "@tabler/icons-react";
7
+ import { c as a } from "../_chunks/utils.js";
8
+ import { t as M, m as g, s as z } from "../_chunks/motion2.js";
9
+ import { m as N, A as D } from "../_chunks/motion.js";
10
+ const v = r.createContext(!1), F = ({
11
+ open: e,
12
+ defaultOpen: s = !1,
13
+ onOpenChange: t,
14
+ children: i,
15
+ ...n
16
+ }) => {
17
+ const [l, S] = r.useState(s), c = e !== void 0, m = c ? e : l, C = r.useCallback(
18
+ (f) => {
19
+ c || S(f), t == null || t(f);
20
+ },
21
+ [c, t]
22
+ );
23
+ return /* @__PURE__ */ o(v.Provider, { value: m, children: /* @__PURE__ */ o(P, { open: m, onOpenChange: C, ...n, children: i }) });
24
+ };
25
+ F.displayName = "Sheet";
26
+ const W = j, Y = x, H = R, w = r.forwardRef(({ className: e, ...s }, t) => /* @__PURE__ */ o(h, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ o(
27
+ N.div,
10
28
  {
11
- className: r(
12
- "fixed inset-0 z-modal bg-overlay duration-moderate-02 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
13
- e
14
- ),
15
- ...t,
16
- ref: a
29
+ ref: t,
30
+ className: a("fixed inset-0 z-modal bg-overlay", e),
31
+ initial: { opacity: 0 },
32
+ animate: { opacity: 1 },
33
+ exit: { opacity: 0 },
34
+ transition: M.fade,
35
+ ...g(s)
17
36
  }
18
- ));
19
- f.displayName = i.displayName;
20
- const v = u(
21
- "fixed z-modal gap-ds-05 bg-layer-01 p-ds-06 shadow-05 transition ease-productive-standard duration-moderate-02 data-[state=open]:animate-in data-[state=closed]:animate-out",
37
+ ) }));
38
+ w.displayName = h.displayName;
39
+ const p = {
40
+ top: { y: "-100%" },
41
+ bottom: { y: "100%" },
42
+ left: { x: "-100%" },
43
+ right: { x: "100%" }
44
+ }, I = {
45
+ top: { y: 0 },
46
+ bottom: { y: 0 },
47
+ left: { x: 0 },
48
+ right: { x: 0 }
49
+ }, V = T(
50
+ "fixed z-modal gap-ds-05 bg-surface-1 p-ds-06 shadow-05",
22
51
  {
23
52
  variants: {
24
53
  side: {
25
- top: "inset-x-0 top-0 border-b border-border data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
26
- bottom: "inset-x-0 bottom-0 border-t border-border data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
27
- left: "inset-y-0 left-0 h-full w-3/4 border-r border-border data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
28
- right: "inset-y-0 right-0 h-full w-3/4 border-l border-border data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
54
+ top: "inset-x-0 top-0 border-b border-surface-border-strong",
55
+ bottom: "inset-x-0 bottom-0 border-t border-surface-border-strong",
56
+ left: "inset-y-0 left-0 h-full w-3/4 border-r border-surface-border-strong sm:max-w-sm",
57
+ right: "inset-y-0 right-0 h-full w-3/4 border-l border-surface-border-strong sm:max-w-sm"
29
58
  }
30
59
  },
31
60
  defaultVariants: {
32
61
  side: "right"
33
62
  }
34
63
  }
35
- ), w = o.forwardRef(({ side: e = "right", className: t, children: a, ...p }, h) => /* @__PURE__ */ d(N, { children: [
36
- /* @__PURE__ */ s(f, {}),
37
- /* @__PURE__ */ d(
38
- l,
39
- {
40
- ref: h,
41
- className: r(v({ side: e }), t),
42
- ...p,
43
- children: [
44
- /* @__PURE__ */ d(n, { className: "absolute right-ds-05 top-ds-05 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-icon-secondary transition-colors hover:text-icon-primary hover:bg-field focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus disabled:pointer-events-none", children: [
45
- /* @__PURE__ */ s(g, { className: "h-ico-sm w-ico-sm" }),
46
- /* @__PURE__ */ s("span", { className: "sr-only", children: "Close" })
47
- ] }),
48
- a
49
- ]
50
- }
51
- )
52
- ] }));
53
- w.displayName = l.displayName;
54
- const S = o.forwardRef(
55
- ({ className: e, ...t }, a) => /* @__PURE__ */ s(
64
+ ), k = r.forwardRef(({ side: e = "right", className: s, children: t, ...i }, n) => {
65
+ const l = r.useContext(v);
66
+ return /* @__PURE__ */ o(D, { children: l && /* @__PURE__ */ d(H, { forceMount: !0, children: [
67
+ /* @__PURE__ */ o(w, {}),
68
+ /* @__PURE__ */ o(u, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ d(
69
+ N.div,
70
+ {
71
+ ref: n,
72
+ className: a(V({ side: e }), s),
73
+ initial: p[e],
74
+ animate: I[e],
75
+ exit: p[e],
76
+ transition: z.smooth,
77
+ ...g(i),
78
+ children: [
79
+ /* @__PURE__ */ d(x, { className: "absolute right-ds-05 top-ds-05 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-surface-fg-subtle transition-colors hover:text-surface-fg-muted hover:bg-surface-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none", children: [
80
+ /* @__PURE__ */ o(A, { className: "h-ico-sm w-ico-sm" }),
81
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
82
+ ] }),
83
+ t
84
+ ]
85
+ }
86
+ ) })
87
+ ] }) });
88
+ });
89
+ k.displayName = u.displayName;
90
+ const O = r.forwardRef(
91
+ ({ className: e, ...s }, t) => /* @__PURE__ */ o(
56
92
  "div",
57
93
  {
58
- ref: a,
59
- className: r(
94
+ ref: t,
95
+ className: a(
60
96
  "flex flex-col space-y-ds-03 text-center sm:text-left",
61
97
  e
62
98
  ),
63
- ...t
99
+ ...s
64
100
  }
65
101
  )
66
102
  );
67
- S.displayName = "SheetHeader";
68
- const R = o.forwardRef(
69
- ({ className: e, ...t }, a) => /* @__PURE__ */ s(
103
+ O.displayName = "SheetHeader";
104
+ const U = r.forwardRef(
105
+ ({ className: e, ...s }, t) => /* @__PURE__ */ o(
70
106
  "div",
71
107
  {
72
- ref: a,
73
- className: r(
108
+ ref: t,
109
+ className: a(
74
110
  "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-ds-03",
75
111
  e
76
112
  ),
77
- ...t
113
+ ...s
78
114
  }
79
115
  )
80
116
  );
81
- R.displayName = "SheetFooter";
82
- const C = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
83
- m,
117
+ U.displayName = "SheetFooter";
118
+ const X = r.forwardRef(({ className: e, ...s }, t) => /* @__PURE__ */ o(
119
+ b,
84
120
  {
85
- ref: a,
86
- className: r("text-ds-lg font-semibold text-text-primary", e),
87
- ...t
121
+ ref: t,
122
+ className: a("text-ds-lg font-semibold text-surface-fg", e),
123
+ ...s
88
124
  }
89
125
  ));
90
- C.displayName = m.displayName;
91
- const j = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
92
- c,
126
+ X.displayName = b.displayName;
127
+ const q = r.forwardRef(({ className: e, ...s }, t) => /* @__PURE__ */ o(
128
+ y,
93
129
  {
94
- ref: a,
95
- className: r("text-ds-md text-text-secondary", e),
96
- ...t
130
+ ref: t,
131
+ className: a("text-ds-md text-surface-fg-muted", e),
132
+ ...s
97
133
  }
98
134
  ));
99
- j.displayName = c.displayName;
135
+ q.displayName = y.displayName;
100
136
  export {
101
- O as Sheet,
102
- V as SheetClose,
103
- w as SheetContent,
104
- j as SheetDescription,
105
- R as SheetFooter,
106
- S as SheetHeader,
107
- f as SheetOverlay,
108
- N as SheetPortal,
109
- C as SheetTitle,
110
- P as SheetTrigger
137
+ F as Sheet,
138
+ Y as SheetClose,
139
+ k as SheetContent,
140
+ q as SheetDescription,
141
+ U as SheetFooter,
142
+ O as SheetHeader,
143
+ w as SheetOverlay,
144
+ H as SheetPortal,
145
+ X as SheetTitle,
146
+ W as SheetTrigger
111
147
  };
@@ -46,7 +46,7 @@ declare const SidebarMenuButton: import('react').ForwardRefExoticComponent<Omit<
46
46
  isActive?: boolean;
47
47
  tooltip?: string | ComponentProps<typeof TooltipContent>;
48
48
  } & VariantProps<(props?: ({
49
- variant?: "default" | "outline" | null | undefined;
49
+ variant?: "outline" | "default" | null | undefined;
50
50
  size?: "sm" | "md" | "lg" | null | undefined;
51
51
  } & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
52
52
  declare const SidebarMenuAction: import('react').ForwardRefExoticComponent<Omit<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
@@ -64,5 +64,10 @@ declare const SidebarMenuSubButton: import('react').ForwardRefExoticComponent<Om
64
64
  size?: "sm" | "md";
65
65
  isActive?: boolean;
66
66
  }, "ref"> & import('react').RefAttributes<HTMLAnchorElement>>;
67
+ export type SidebarProps = React.ComponentPropsWithoutRef<'div'> & {
68
+ side?: 'left' | 'right';
69
+ variant?: 'sidebar' | 'floating' | 'inset';
70
+ collapsible?: 'offcanvas' | 'icon' | 'none';
71
+ };
67
72
  export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
68
73
  //# sourceMappingURL=sidebar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/ui/sidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAU5D,OAAO,EAEL,cAAc,EAGf,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,cAAc,EAUf,MAAM,OAAO,CAAA;AASd,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,UAAU,GAAG,WAAW,CAAA;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAChC,UAAU,EAAE,OAAO,CAAA;IACn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,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,CAAA;AAEvL,OAAO,EACL,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GACX,CAAA"}
@@ -4,36 +4,38 @@ import "../_chunks/primitives.js";
4
4
  import "../_chunks/vendor-utils.js";
5
5
  import "@tabler/icons-react";
6
6
  import "../hooks/use-mobile.js";
7
+ import "../_chunks/motion2.js";
7
8
  import "../_chunks/utils.js";
8
9
  import "../_chunks/button.js";
9
- import { S as m, c as M, i as g, d as l, f as G, g as I, e as c, a as B, r as f, s as k, h as v, t as A, l as C, k as h, j, u as w, m as x, o as y, n as F, v as H, w as L, b as P, p as R, y as T } from "../_chunks/sidebar.js";
10
+ import { S as g, c as l, i as G, d as I, f as c, g as B, e as f, a as k, r as v, s as A, h as C, t as h, l as j, k as w, j as x, u as y, m as F, o as H, n as L, v as P, w as R, b as T, p as q, y as z } from "../_chunks/sidebar.js";
10
11
  import "./sheet.js";
11
12
  import "./skeleton.js";
12
13
  import "../_chunks/tooltip.js";
13
14
  import "react";
15
+ import "../_chunks/motion.js";
14
16
  export {
15
- m as Sidebar,
16
- M as SidebarContent,
17
- g as SidebarFooter,
18
- l as SidebarGroup,
19
- G as SidebarGroupAction,
20
- I as SidebarGroupContent,
21
- c as SidebarGroupLabel,
22
- B as SidebarHeader,
23
- f as SidebarInput,
24
- k as SidebarInset,
25
- v as SidebarMenu,
26
- A as SidebarMenuAction,
27
- C as SidebarMenuBadge,
28
- h as SidebarMenuButton,
29
- j as SidebarMenuItem,
30
- w as SidebarMenuSkeleton,
31
- x as SidebarMenuSub,
32
- y as SidebarMenuSubButton,
33
- F as SidebarMenuSubItem,
34
- H as SidebarProvider,
35
- L as SidebarRail,
36
- P as SidebarSeparator,
37
- R as SidebarTrigger,
38
- T as useSidebar
17
+ g as Sidebar,
18
+ l as SidebarContent,
19
+ G as SidebarFooter,
20
+ I as SidebarGroup,
21
+ c as SidebarGroupAction,
22
+ B as SidebarGroupContent,
23
+ f as SidebarGroupLabel,
24
+ k as SidebarHeader,
25
+ v as SidebarInput,
26
+ A as SidebarInset,
27
+ C as SidebarMenu,
28
+ h as SidebarMenuAction,
29
+ j as SidebarMenuBadge,
30
+ w as SidebarMenuButton,
31
+ x as SidebarMenuItem,
32
+ y as SidebarMenuSkeleton,
33
+ F as SidebarMenuSub,
34
+ H as SidebarMenuSubButton,
35
+ L as SidebarMenuSubItem,
36
+ P as SidebarProvider,
37
+ R as SidebarRail,
38
+ T as SidebarSeparator,
39
+ q as SidebarTrigger,
40
+ z as useSidebar
39
41
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as l, jsxs as f } from "react/jsx-runtime";
2
2
  import * as o from "react";
3
- import { e as g } from "../_chunks/vendor-utils.js";
3
+ import { ag as g } from "../_chunks/vendor-utils.js";
4
4
  import { c as r } from "../_chunks/utils.js";
5
5
  const k = g("bg-skeleton-base", {
6
6
  variants: {
@@ -1,6 +1,15 @@
1
1
  "use client";
2
2
  import * as React from 'react';
3
3
  import * as SliderPrimitive from '../primitives/react-slider';
4
+ /**
5
+ * A Radix-powered slider supporting single or multiple thumbs.
6
+ *
7
+ * Pass `defaultValue={[50]}` for a single thumb, or `defaultValue={[25, 75]}`
8
+ * for a range slider with two thumbs. One `<Thumb>` is rendered per value entry.
9
+ *
10
+ * When using multiple thumbs, provide per-thumb labels via the `aria-label` array
11
+ * on the `value`/`defaultValue` entries, or wrap each in a labelled form field.
12
+ */
4
13
  declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
5
14
  export type SliderProps = React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>;
6
15
  export { Slider };
@@ -1 +1 @@
1
- {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../src/ui/slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,0BAA0B,CAAA;AAI3D,QAAA,MAAM,MAAM,yJAoBV,CAAA;AAGF,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAA;AAErF,OAAO,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../src/ui/slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,0BAA0B,CAAA;AAI3D;;;;;;;;GAQG;AACH,QAAA,MAAM,MAAM,yJA8BV,CAAA;AAGF,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAA;AAErF,OAAO,EAAE,MAAM,EAAE,CAAA"}