@devalok/shilp-sutra 0.18.0 → 0.18.2

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 (214) hide show
  1. package/dist/_chunks/motion-provider.js +24 -0
  2. package/dist/_chunks/primitives.js +101 -101
  3. package/dist/_chunks/tree-view.js +12 -12
  4. package/dist/_chunks/use-calendar.js +1 -1
  5. package/dist/_chunks/vendor-utils.js +2 -2
  6. package/dist/composed/activity-feed.js +21 -21
  7. package/dist/composed/avatar-group.js +25 -25
  8. package/dist/composed/command-palette.js +3 -3
  9. package/dist/composed/confirm-dialog.js +1 -1
  10. package/dist/composed/content-card.js +1 -1
  11. package/dist/composed/empty-state.js +2 -2
  12. package/dist/composed/error-boundary.js +2 -2
  13. package/dist/composed/global-loading.js +10 -10
  14. package/dist/composed/lib/string-utils.d.ts +0 -1
  15. package/dist/composed/lib/string-utils.js +0 -1
  16. package/dist/composed/loading-skeleton.js +1 -1
  17. package/dist/composed/member-picker.js +6 -6
  18. package/dist/composed/page-header.js +1 -1
  19. package/dist/composed/page-skeletons.js +1 -1
  20. package/dist/composed/priority-indicator.js +6 -6
  21. package/dist/composed/rich-text-editor.js +1 -1
  22. package/dist/composed/schedule-view.js +15 -15
  23. package/dist/composed/simple-tooltip.js +8 -8
  24. package/dist/composed/status-badge.js +12 -12
  25. package/dist/motion/index.d.ts +1 -1
  26. package/dist/motion/index.d.ts.map +1 -1
  27. package/dist/motion/index.js +8 -6
  28. package/dist/motion/primitives-index.js +184 -8
  29. package/dist/shell/app-command-palette.js +1 -1
  30. package/dist/shell/bottom-navbar.js +3 -3
  31. package/dist/shell/notification-center.js +35 -35
  32. package/dist/shell/notification-preferences.js +29 -28
  33. package/dist/shell/sidebar.js +56 -56
  34. package/dist/shell/top-bar.js +25 -25
  35. package/dist/ui/accordion.js +11 -11
  36. package/dist/ui/alert-dialog.js +41 -41
  37. package/dist/ui/alert.js +10 -10
  38. package/dist/ui/aspect-ratio.js +5 -5
  39. package/dist/ui/autocomplete.js +15 -15
  40. package/dist/ui/avatar.js +4 -4
  41. package/dist/ui/badge.js +11 -11
  42. package/dist/ui/banner.js +3 -3
  43. package/dist/ui/breadcrumb.js +8 -8
  44. package/dist/ui/button-group.js +4 -4
  45. package/dist/ui/button.js +25 -25
  46. package/dist/ui/card.js +5 -5
  47. package/dist/ui/charts/index.js +4 -4
  48. package/dist/ui/checkbox.js +4 -4
  49. package/dist/ui/chip.js +14 -14
  50. package/dist/ui/code.js +1 -1
  51. package/dist/ui/collapsible.js +7 -7
  52. package/dist/ui/color-input.js +1 -1
  53. package/dist/ui/combobox.js +5 -5
  54. package/dist/ui/container.js +4 -4
  55. package/dist/ui/context-menu.js +4 -4
  56. package/dist/ui/data-table-toolbar.js +18 -18
  57. package/dist/ui/data-table.js +55 -55
  58. package/dist/ui/dialog.js +3 -3
  59. package/dist/ui/dropdown-menu.js +3 -3
  60. package/dist/ui/file-upload.js +10 -10
  61. package/dist/ui/form.js +1 -1
  62. package/dist/ui/hover-card.js +12 -12
  63. package/dist/ui/icon-button.js +9 -9
  64. package/dist/ui/index.js +322 -516
  65. package/dist/ui/input-otp.js +4 -4
  66. package/dist/ui/input.js +9 -9
  67. package/dist/ui/label.js +9 -9
  68. package/dist/ui/lib/date-utils.d.ts +0 -1
  69. package/dist/{_chunks → ui/lib}/date-utils.js +1 -2
  70. package/dist/{_chunks/motion2.js → ui/lib/motion.js} +13 -14
  71. package/dist/ui/lib/use-ripple.d.ts.map +1 -1
  72. package/dist/ui/lib/utils.js +1 -1
  73. package/dist/ui/link.js +1 -1
  74. package/dist/ui/menubar.js +66 -66
  75. package/dist/ui/navigation-menu.js +4 -4
  76. package/dist/ui/number-input.js +9 -9
  77. package/dist/ui/pagination.js +1 -1
  78. package/dist/ui/popover.js +18 -18
  79. package/dist/ui/progress.js +4 -4
  80. package/dist/ui/radio.js +11 -11
  81. package/dist/ui/search-input.js +2 -2
  82. package/dist/ui/segmented-control.d.ts +2 -0
  83. package/dist/ui/segmented-control.d.ts.map +1 -1
  84. package/dist/ui/segmented-control.js +59 -55
  85. package/dist/ui/select.js +19 -19
  86. package/dist/ui/separator.js +5 -5
  87. package/dist/ui/sheet.js +10 -10
  88. package/dist/ui/sidebar.js +574 -38
  89. package/dist/ui/skeleton.js +1 -1
  90. package/dist/ui/slider.js +9 -9
  91. package/dist/ui/spinner.js +2 -2
  92. package/dist/ui/stack.js +1 -1
  93. package/dist/ui/stat-card.js +35 -35
  94. package/dist/ui/stepper.d.ts +1 -3
  95. package/dist/ui/stepper.d.ts.map +1 -1
  96. package/dist/ui/stepper.js +74 -74
  97. package/dist/ui/switch.js +7 -7
  98. package/dist/ui/table.js +28 -28
  99. package/dist/ui/tabs.js +10 -10
  100. package/dist/ui/text.js +1 -1
  101. package/dist/ui/textarea.js +10 -10
  102. package/dist/ui/toast.js +12 -12
  103. package/dist/ui/toaster.js +11 -11
  104. package/dist/ui/toggle-group.js +2 -2
  105. package/dist/ui/toggle.js +8 -8
  106. package/dist/ui/tooltip.js +21 -21
  107. package/dist/ui/visually-hidden.js +3 -3
  108. package/docs/components/_header.md +83 -0
  109. package/docs/components/composed/activity-feed.md +43 -0
  110. package/docs/components/composed/avatar-group.md +32 -0
  111. package/docs/components/composed/command-palette.md +40 -0
  112. package/docs/components/composed/confirm-dialog.md +46 -0
  113. package/docs/components/composed/content-card.md +36 -0
  114. package/docs/components/composed/date-picker.md +130 -0
  115. package/docs/components/composed/empty-state.md +53 -0
  116. package/docs/components/composed/error-boundary.md +29 -0
  117. package/docs/components/composed/global-loading.md +27 -0
  118. package/docs/components/composed/loading-skeleton.md +51 -0
  119. package/docs/components/composed/member-picker.md +35 -0
  120. package/docs/components/composed/page-header.md +41 -0
  121. package/docs/components/composed/page-skeletons.md +32 -0
  122. package/docs/components/composed/priority-indicator.md +32 -0
  123. package/docs/components/composed/rich-text-editor.md +71 -0
  124. package/docs/components/composed/schedule-view.md +39 -0
  125. package/docs/components/composed/simple-tooltip.md +33 -0
  126. package/docs/components/composed/status-badge.md +41 -0
  127. package/docs/components/shell/app-command-palette.md +44 -0
  128. package/docs/components/shell/bottom-navbar.md +48 -0
  129. package/docs/components/shell/command-registry.md +48 -0
  130. package/docs/components/shell/link-context.md +41 -0
  131. package/docs/components/shell/notification-center.md +63 -0
  132. package/docs/components/shell/notification-preferences.md +42 -0
  133. package/docs/components/shell/sidebar.md +88 -0
  134. package/docs/components/shell/top-bar.md +63 -0
  135. package/docs/components/ui/accordion.md +48 -0
  136. package/docs/components/ui/alert-dialog.md +58 -0
  137. package/docs/components/ui/alert.md +43 -0
  138. package/docs/components/ui/aspect-ratio.md +25 -0
  139. package/docs/components/ui/autocomplete.md +48 -0
  140. package/docs/components/ui/avatar.md +34 -0
  141. package/docs/components/ui/badge.md +48 -0
  142. package/docs/components/ui/banner.md +35 -0
  143. package/docs/components/ui/breadcrumb.md +37 -0
  144. package/docs/components/ui/button-group.md +32 -0
  145. package/docs/components/ui/button.md +55 -0
  146. package/docs/components/ui/card.md +48 -0
  147. package/docs/components/ui/charts.md +43 -0
  148. package/docs/components/ui/checkbox.md +31 -0
  149. package/docs/components/ui/chip.md +43 -0
  150. package/docs/components/ui/code.md +28 -0
  151. package/docs/components/ui/collapsible.md +40 -0
  152. package/docs/components/ui/color-input.md +37 -0
  153. package/docs/components/ui/combobox.md +54 -0
  154. package/docs/components/ui/container.md +26 -0
  155. package/docs/components/ui/context-menu.md +43 -0
  156. package/docs/components/ui/data-table-toolbar.md +44 -0
  157. package/docs/components/ui/data-table.md +91 -0
  158. package/docs/components/ui/dialog.md +51 -0
  159. package/docs/components/ui/dropdown-menu.md +45 -0
  160. package/docs/components/ui/file-upload.md +41 -0
  161. package/docs/components/ui/form.md +51 -0
  162. package/docs/components/ui/hover-card.md +32 -0
  163. package/docs/components/ui/icon-button.md +33 -0
  164. package/docs/components/ui/input-otp.md +44 -0
  165. package/docs/components/ui/input.md +48 -0
  166. package/docs/components/ui/label.md +25 -0
  167. package/docs/components/ui/link.md +29 -0
  168. package/docs/components/ui/menubar.md +44 -0
  169. package/docs/components/ui/navigation-menu.md +46 -0
  170. package/docs/components/ui/number-input.md +44 -0
  171. package/docs/components/ui/pagination.md +48 -0
  172. package/docs/components/ui/popover.md +30 -0
  173. package/docs/components/ui/progress.md +29 -0
  174. package/docs/components/ui/radio.md +34 -0
  175. package/docs/components/ui/search-input.md +43 -0
  176. package/docs/components/ui/segmented-control.md +50 -0
  177. package/docs/components/ui/select.md +49 -0
  178. package/docs/components/ui/separator.md +29 -0
  179. package/docs/components/ui/sheet.md +47 -0
  180. package/docs/components/ui/sidebar.md +72 -0
  181. package/docs/components/ui/skeleton.md +77 -0
  182. package/docs/components/ui/slider.md +29 -0
  183. package/docs/components/ui/spinner.md +50 -0
  184. package/docs/components/ui/stack.md +39 -0
  185. package/docs/components/ui/stat-card.md +61 -0
  186. package/docs/components/ui/stepper.md +49 -0
  187. package/docs/components/ui/switch.md +34 -0
  188. package/docs/components/ui/table.md +47 -0
  189. package/docs/components/ui/tabs.md +56 -0
  190. package/docs/components/ui/text.md +37 -0
  191. package/docs/components/ui/textarea.md +39 -0
  192. package/docs/components/ui/toast.md +65 -0
  193. package/docs/components/ui/toaster.md +47 -0
  194. package/docs/components/ui/toggle-group.md +43 -0
  195. package/docs/components/ui/toggle.md +37 -0
  196. package/docs/components/ui/tooltip.md +33 -0
  197. package/docs/components/ui/tree-view.md +65 -0
  198. package/docs/components/ui/visually-hidden.md +21 -0
  199. package/llms-full.txt +3384 -1591
  200. package/llms.txt +4 -4
  201. package/package.json +28 -3
  202. package/dist/_chunks/avatar.js +0 -52
  203. package/dist/_chunks/button-group.js +0 -27
  204. package/dist/_chunks/button.js +0 -113
  205. package/dist/_chunks/card.js +0 -50
  206. package/dist/_chunks/checkbox.js +0 -16
  207. package/dist/_chunks/form.js +0 -27
  208. package/dist/_chunks/sidebar.js +0 -606
  209. package/dist/_chunks/spinner.js +0 -64
  210. package/dist/_chunks/tooltip.js +0 -30
  211. package/dist/_chunks/utils.js +0 -17
  212. package/dist/motion/motion-provider.js +0 -24
  213. package/dist/motion/primitives.js +0 -187
  214. /package/dist/_chunks/{motion.js → framer.js} +0 -0
@@ -3,7 +3,7 @@ import { jsx as r, jsxs as p } from "react/jsx-runtime";
3
3
  import * as a from "react";
4
4
  import { OTPInput as m, OTPInputContext as u } from "input-otp";
5
5
  import { IconMinus as f } from "@tabler/icons-react";
6
- import { c as o } from "../_chunks/utils.js";
6
+ import { cn as o } from "./lib/utils.js";
7
7
  const x = a.forwardRef(({ className: e, containerClassName: t, ...s }, n) => /* @__PURE__ */ r(
8
8
  m,
9
9
  {
@@ -20,20 +20,20 @@ x.displayName = "InputOTP";
20
20
  const b = a.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ r("div", { ref: s, className: o("flex items-center", e), ...t }));
21
21
  b.displayName = "InputOTPGroup";
22
22
  const I = a.forwardRef(({ index: e, className: t, ...s }, n) => {
23
- const i = a.useContext(u), { char: d, hasFakeCaret: c, isActive: l } = i.slots[e];
23
+ const i = a.useContext(u), { char: d, hasFakeCaret: l, isActive: c } = i.slots[e];
24
24
  return /* @__PURE__ */ p(
25
25
  "div",
26
26
  {
27
27
  ref: n,
28
28
  className: o(
29
29
  "relative flex h-ds-sm-plus w-ds-sm-plus items-center justify-center border-y border-r border-surface-border-strong text-ds-md shadow-01 transition-[box-shadow] first:rounded-l-ds-md first:border-l last:rounded-r-ds-md",
30
- l && "z-raised ring-2 ring-accent-9",
30
+ c && "z-raised ring-2 ring-accent-9",
31
31
  t
32
32
  ),
33
33
  ...s,
34
34
  children: [
35
35
  d,
36
- c && /* @__PURE__ */ r("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ r("div", { className: "animate-caret-blink h-[16px] w-px bg-surface-fg duration-slow-02" }) })
36
+ l && /* @__PURE__ */ r("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ r("div", { className: "animate-caret-blink h-[16px] w-px bg-surface-fg duration-slow-02" }) })
37
37
  ]
38
38
  }
39
39
  );
package/dist/ui/input.js CHANGED
@@ -2,10 +2,10 @@
2
2
  import { jsx as a, jsxs as b } from "react/jsx-runtime";
3
3
  import * as p from "react";
4
4
  import { ag as g } from "../_chunks/vendor-utils.js";
5
- import { c as v } from "../_chunks/utils.js";
6
- import { m as x } from "../_chunks/motion2.js";
7
- import { u as h } from "../_chunks/form.js";
8
- import { m as w } from "../_chunks/motion.js";
5
+ import { cn as v } from "./lib/utils.js";
6
+ import { motionProps as x } from "./lib/motion.js";
7
+ import { useFormField as h } from "./form.js";
8
+ import { m as w } from "../_chunks/framer.js";
9
9
  const y = g(
10
10
  [
11
11
  "flex w-full font-sans",
@@ -29,15 +29,15 @@ const y = g(
29
29
  defaultVariants: { size: "md" }
30
30
  }
31
31
  ), N = p.forwardRef(
32
- ({ className: d, type: n, state: c, size: l, startIcon: e, endIcon: s, ...t }, u) => {
33
- const r = h(), i = c ?? (r.state === "helper" ? void 0 : r.state), f = t["aria-describedby"] ?? r.helperTextId, m = t["aria-required"] ?? r.required, o = /* @__PURE__ */ a(
32
+ ({ className: d, type: n, state: c, size: l, startIcon: e, endIcon: r, ...t }, u) => {
33
+ const s = h(), i = c ?? (s.state === "helper" ? void 0 : s.state), f = t["aria-describedby"] ?? s.helperTextId, m = t["aria-required"] ?? s.required, o = /* @__PURE__ */ a(
34
34
  w.input,
35
35
  {
36
36
  type: n,
37
37
  className: v(
38
38
  y({ size: l }),
39
39
  e && "pl-ds-07",
40
- s && "pr-ds-07",
40
+ r && "pr-ds-07",
41
41
  i === "error" && "border-error-7 focus-visible:ring-error-7",
42
42
  i === "warning" && "border-warning-7 focus-visible:ring-warning-7",
43
43
  i === "success" && "border-success-7 focus-visible:ring-success-7",
@@ -50,10 +50,10 @@ const y = g(
50
50
  ...x(t)
51
51
  }
52
52
  );
53
- return !e && !s ? o : /* @__PURE__ */ b("div", { className: "relative flex items-center w-full", children: [
53
+ return !e && !r ? o : /* @__PURE__ */ b("div", { className: "relative flex items-center w-full", children: [
54
54
  e && /* @__PURE__ */ a("span", { className: "absolute left-ds-03 flex items-center text-surface-fg-muted pointer-events-none [&>svg]:h-ico-sm [&>svg]:w-ico-sm", children: e }),
55
55
  o,
56
- s && /* @__PURE__ */ a("span", { className: "absolute right-ds-03 flex items-center text-surface-fg-muted pointer-events-none [&>svg]:h-ico-sm [&>svg]:w-ico-sm", children: s })
56
+ r && /* @__PURE__ */ a("span", { className: "absolute right-ds-03 flex items-center text-surface-fg-muted pointer-events-none [&>svg]:h-ico-sm [&>svg]:w-ico-sm", children: r })
57
57
  ] });
58
58
  }
59
59
  );
package/dist/ui/label.js CHANGED
@@ -1,24 +1,24 @@
1
1
  "use client";
2
2
  import { jsxs as d, jsx as i } from "react/jsx-runtime";
3
3
  import * as m from "react";
4
- import { A as a } from "../_chunks/primitives.js";
5
- import { c as n } from "../_chunks/utils.js";
6
- const c = m.forwardRef(({ className: e, required: s, children: r, ...o }, t) => /* @__PURE__ */ d(
7
- a,
4
+ import { v as e } from "../_chunks/primitives.js";
5
+ import { cn as n } from "./lib/utils.js";
6
+ const l = m.forwardRef(({ className: a, required: r, children: s, ...o }, t) => /* @__PURE__ */ d(
7
+ e,
8
8
  {
9
9
  ref: t,
10
10
  className: n(
11
11
  "font-sans text-ds-md font-medium text-surface-fg leading-none peer-disabled:opacity-action-disabled",
12
- e
12
+ a
13
13
  ),
14
14
  ...o,
15
15
  children: [
16
- r,
17
- s && /* @__PURE__ */ i("span", { className: "text-error-11 ml-ds-01", "aria-hidden": "true", children: "*" })
16
+ s,
17
+ r && /* @__PURE__ */ i("span", { className: "text-error-11 ml-ds-01", "aria-hidden": "true", children: "*" })
18
18
  ]
19
19
  }
20
20
  ));
21
- c.displayName = a.displayName;
21
+ l.displayName = e.displayName;
22
22
  export {
23
- c as Label
23
+ l as Label
24
24
  };
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  /**
3
2
  * Shared relative-time formatting utility.
4
3
  */
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  function a(t) {
3
2
  const n = typeof t == "string" ? new Date(t) : t, f = (/* @__PURE__ */ new Date()).getTime() - n.getTime(), o = Math.floor(f / 6e4);
4
3
  if (o < 1) return "Just now";
@@ -9,5 +8,5 @@ function a(t) {
9
8
  return r < 7 ? `${r}d ago` : n.toLocaleDateString("en-IN", { month: "short", day: "numeric" });
10
9
  }
11
10
  export {
12
- a as f
11
+ a as formatRelativeTime
13
12
  };
@@ -1,5 +1,4 @@
1
- "use client";
2
- const n = {
1
+ const s = {
3
2
  /** Micro-interactions: buttons, hover, form inputs */
4
3
  snappy: { type: "spring", stiffness: 500, damping: 30, mass: 0.5 },
5
4
  /** Dialogs, sheets, panels, navigation */
@@ -14,22 +13,22 @@ const n = {
14
13
  /** Hover color, bg, border transitions */
15
14
  colorShift: { type: "tween", duration: 0.1, ease: "easeOut" }
16
15
  };
17
- function e(s = 0.04) {
16
+ function e(n = 0.04) {
18
17
  return {
19
- visible: { transition: { staggerChildren: s } },
20
- hidden: { transition: { staggerChildren: s } }
18
+ visible: { transition: { staggerChildren: n } },
19
+ hidden: { transition: { staggerChildren: n } }
21
20
  };
22
21
  }
23
- function i(s) {
24
- return { ...s, duration: 0 };
22
+ function i(n) {
23
+ return { ...n, duration: 0 };
25
24
  }
26
- function a(s) {
27
- return s;
25
+ function r(n) {
26
+ return n;
28
27
  }
29
28
  export {
30
- e as a,
31
- a as m,
32
- n as s,
33
- t,
34
- i as w
29
+ r as motionProps,
30
+ s as springs,
31
+ e as stagger,
32
+ t as tweens,
33
+ i as withReducedMotion
35
34
  };
@@ -1 +1 @@
1
- {"version":3,"file":"use-ripple.d.ts","sourceRoot":"","sources":["../../../src/ui/lib/use-ripple.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,UAAU,EAAE,MAAM,OAAO,CAAA;AAEjF,UAAU,MAAM;IACd,EAAE,EAAE,MAAM,CAAA;IACV,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,SAAS,CAAC,QAAQ,SAAM;;sBAQD,UAAU,CAAC,WAAW,CAAC;EAc7D"}
1
+ {"version":3,"file":"use-ripple.d.ts","sourceRoot":"","sources":["../../../src/ui/lib/use-ripple.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,UAAU,EAAE,MAAM,OAAO,CAAA;AAEjF,UAAU,MAAM;IACd,EAAE,EAAE,MAAM,CAAA;IACV,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,SAAS,CAAC,QAAQ,SAAM;;sBAQD,UAAU,CAAC,WAAW,CAAC;EAgB7D"}
@@ -1,4 +1,4 @@
1
- import { ai as d, ah as e } from "../../_chunks/vendor-utils.js";
1
+ import { ah as d, ai as e } from "../../_chunks/vendor-utils.js";
2
2
  const t = d({
3
3
  extend: {
4
4
  theme: {
package/dist/ui/link.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { jsx as r } from "react/jsx-runtime";
3
3
  import { S as s } from "../_chunks/primitives.js";
4
4
  import * as a from "react";
5
- import { c } from "../_chunks/utils.js";
5
+ import { cn as c } from "./lib/utils.js";
6
6
  const f = a.forwardRef(
7
7
  ({ className: o, inline: e = !0, asChild: n = !1, ...t }, i) => /* @__PURE__ */ r(
8
8
  n ? s : "a",
@@ -1,29 +1,29 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
+ import { jsx as r, jsxs as l } from "react/jsx-runtime";
3
3
  import * as o from "react";
4
- import { aP as p, aQ as f, aR as b, aS as y, aT as g, aU as N, aV as x, aW as h, aX as v, aY as M, aZ as w, a_ as R, a$ as T, b0 as _, b1 as j, b2 as G } from "../_chunks/primitives.js";
4
+ import { aW as p, aX as f, aY as b, aZ as y, a_ as g, a$ as N, b0 as x, b1 as h, b2 as v, b3 as M, b4 as w, b5 as R, b6 as j, b7 as G, b8 as P, b9 as T } from "../_chunks/primitives.js";
5
5
  import { IconChevronRight as z, IconCheck as A, IconCircle as L } from "@tabler/icons-react";
6
- import { c as n } from "../_chunks/utils.js";
7
- import { t as S, s as C } from "../_chunks/motion2.js";
8
- import { A as U, m as I } from "../_chunks/motion.js";
9
- const k = o.createContext(!1), Q = (e) => /* @__PURE__ */ t(j, { ...e });
10
- Q.displayName = "MenubarMenu";
11
- const te = T, re = g, V = ({
6
+ import { cn as n } from "./lib/utils.js";
7
+ import { tweens as C, springs as S } from "./lib/motion.js";
8
+ import { A as U, m as I } from "../_chunks/framer.js";
9
+ const k = o.createContext(!1), W = (e) => /* @__PURE__ */ r(P, { ...e });
10
+ W.displayName = "MenubarMenu";
11
+ const re = j, te = g, X = ({
12
12
  open: e,
13
13
  defaultOpen: a = !1,
14
14
  onOpenChange: s,
15
- ...r
15
+ ...t
16
16
  }) => {
17
- const [d, i] = o.useState(a), c = e !== void 0, u = c ? e : d, P = o.useCallback(
17
+ const [d, i] = o.useState(a), c = e !== void 0, u = c ? e : d, _ = o.useCallback(
18
18
  (m) => {
19
19
  c || i(m), s == null || s(m);
20
20
  },
21
21
  [c, s]
22
22
  );
23
- return /* @__PURE__ */ t(k.Provider, { value: u, children: /* @__PURE__ */ t(G, { open: u, onOpenChange: P, ...r }) });
23
+ return /* @__PURE__ */ r(k.Provider, { value: u, children: /* @__PURE__ */ r(T, { open: u, onOpenChange: _, ...t }) });
24
24
  };
25
- V.displayName = "MenubarSub";
26
- const oe = _, W = o.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
25
+ X.displayName = "MenubarSub";
26
+ const oe = G, Y = o.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ r(
27
27
  p,
28
28
  {
29
29
  ref: s,
@@ -34,8 +34,8 @@ const oe = _, W = o.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
34
34
  ...a
35
35
  }
36
36
  ));
37
- W.displayName = p.displayName;
38
- const X = o.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
37
+ Y.displayName = p.displayName;
38
+ const Z = o.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ r(
39
39
  f,
40
40
  {
41
41
  ref: s,
@@ -46,8 +46,8 @@ const X = o.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
46
46
  ...a
47
47
  }
48
48
  ));
49
- X.displayName = f.displayName;
50
- const Y = o.forwardRef(({ className: e, inset: a, children: s, ...r }, d) => /* @__PURE__ */ l(
49
+ Z.displayName = f.displayName;
50
+ const $ = o.forwardRef(({ className: e, inset: a, children: s, ...t }, d) => /* @__PURE__ */ l(
51
51
  b,
52
52
  {
53
53
  ref: d,
@@ -56,30 +56,30 @@ const Y = o.forwardRef(({ className: e, inset: a, children: s, ...r }, d) => /*
56
56
  a && "pl-ds-07",
57
57
  e
58
58
  ),
59
- ...r,
59
+ ...t,
60
60
  children: [
61
61
  s,
62
- /* @__PURE__ */ t(z, { className: "ml-auto" })
62
+ /* @__PURE__ */ r(z, { className: "ml-auto" })
63
63
  ]
64
64
  }
65
65
  ));
66
- Y.displayName = b.displayName;
67
- const Z = o.forwardRef(({ className: e, children: a, ...s }, r) => {
66
+ $.displayName = b.displayName;
67
+ const q = o.forwardRef(({ className: e, children: a, ...s }, t) => {
68
68
  const d = o.useContext(k);
69
- return /* @__PURE__ */ t(U, { children: d && /* @__PURE__ */ t(
69
+ return /* @__PURE__ */ r(U, { children: d && /* @__PURE__ */ r(
70
70
  y,
71
71
  {
72
- ref: r,
72
+ ref: t,
73
73
  forceMount: !0,
74
74
  asChild: !0,
75
75
  ...s,
76
- children: /* @__PURE__ */ t(
76
+ children: /* @__PURE__ */ r(
77
77
  I.div,
78
78
  {
79
79
  initial: { opacity: 0, scale: 0.95 },
80
80
  animate: { opacity: 1, scale: 1 },
81
81
  exit: { opacity: 0, scale: 0.95 },
82
- transition: { ...C.snappy, opacity: S.fade },
82
+ transition: { ...S.snappy, opacity: C.fade },
83
83
  className: n(
84
84
  "z-popover min-w-[8rem] overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-1 p-ds-02 text-surface-fg shadow-03",
85
85
  e
@@ -90,24 +90,24 @@ const Z = o.forwardRef(({ className: e, children: a, ...s }, r) => {
90
90
  }
91
91
  ) });
92
92
  });
93
- Z.displayName = y.displayName;
94
- const $ = o.forwardRef(
95
- ({ className: e, align: a = "start", alignOffset: s = -4, sideOffset: r = 8, children: d, ...i }, c) => /* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(
93
+ q.displayName = y.displayName;
94
+ const B = o.forwardRef(
95
+ ({ className: e, align: a = "start", alignOffset: s = -4, sideOffset: t = 8, children: d, ...i }, c) => /* @__PURE__ */ r(g, { children: /* @__PURE__ */ r(
96
96
  N,
97
97
  {
98
98
  ref: c,
99
99
  align: a,
100
100
  alignOffset: s,
101
- sideOffset: r,
101
+ sideOffset: t,
102
102
  asChild: !0,
103
103
  ...i,
104
- children: /* @__PURE__ */ t(
104
+ children: /* @__PURE__ */ r(
105
105
  I.div,
106
106
  {
107
107
  initial: { opacity: 0, scale: 0.95 },
108
108
  animate: { opacity: 1, scale: 1 },
109
109
  exit: { opacity: 0, scale: 0.95 },
110
- transition: { ...C.snappy, opacity: S.fade },
110
+ transition: { ...S.snappy, opacity: C.fade },
111
111
  className: n(
112
112
  "z-popover min-w-[12rem] rounded-ds-lg border border-surface-border-strong bg-surface-1 p-ds-02 text-surface-fg shadow-03",
113
113
  e
@@ -118,11 +118,11 @@ const $ = o.forwardRef(
118
118
  }
119
119
  ) })
120
120
  );
121
- $.displayName = N.displayName;
122
- const q = o.forwardRef(({ className: e, inset: a, ...s }, r) => /* @__PURE__ */ t(
121
+ B.displayName = N.displayName;
122
+ const D = o.forwardRef(({ className: e, inset: a, ...s }, t) => /* @__PURE__ */ r(
123
123
  x,
124
124
  {
125
- ref: r,
125
+ ref: t,
126
126
  className: n(
127
127
  "relative flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none transition-colors focus:bg-surface-2 focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
128
128
  a && "pl-ds-07",
@@ -131,8 +131,8 @@ const q = o.forwardRef(({ className: e, inset: a, ...s }, r) => /* @__PURE__ */
131
131
  ...s
132
132
  }
133
133
  ));
134
- q.displayName = x.displayName;
135
- const B = o.forwardRef(({ className: e, children: a, checked: s, ...r }, d) => /* @__PURE__ */ l(
134
+ D.displayName = x.displayName;
135
+ const E = o.forwardRef(({ className: e, children: a, checked: s, ...t }, d) => /* @__PURE__ */ l(
136
136
  h,
137
137
  {
138
138
  ref: d,
@@ -141,34 +141,34 @@ const B = o.forwardRef(({ className: e, children: a, checked: s, ...r }, d) => /
141
141
  e
142
142
  ),
143
143
  checked: s,
144
- ...r,
144
+ ...t,
145
145
  children: [
146
- /* @__PURE__ */ t("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ t(v, { children: /* @__PURE__ */ t(A, { className: "h-ico-sm w-ico-sm" }) }) }),
146
+ /* @__PURE__ */ r("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(A, { className: "h-ico-sm w-ico-sm" }) }) }),
147
147
  a
148
148
  ]
149
149
  }
150
150
  ));
151
- B.displayName = h.displayName;
152
- const D = o.forwardRef(({ className: e, children: a, ...s }, r) => /* @__PURE__ */ l(
151
+ E.displayName = h.displayName;
152
+ const F = o.forwardRef(({ className: e, children: a, ...s }, t) => /* @__PURE__ */ l(
153
153
  M,
154
154
  {
155
- ref: r,
155
+ ref: t,
156
156
  className: n(
157
157
  "relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none transition-colors focus:bg-surface-2 focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
158
158
  e
159
159
  ),
160
160
  ...s,
161
161
  children: [
162
- /* @__PURE__ */ t("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ t(v, { children: /* @__PURE__ */ t(L, { className: "h-2 w-2 fill-current" }) }) }),
162
+ /* @__PURE__ */ r("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(L, { className: "h-2 w-2 fill-current" }) }) }),
163
163
  a
164
164
  ]
165
165
  }
166
166
  ));
167
- D.displayName = M.displayName;
168
- const E = o.forwardRef(({ className: e, inset: a, ...s }, r) => /* @__PURE__ */ t(
167
+ F.displayName = M.displayName;
168
+ const H = o.forwardRef(({ className: e, inset: a, ...s }, t) => /* @__PURE__ */ r(
169
169
  w,
170
170
  {
171
- ref: r,
171
+ ref: t,
172
172
  className: n(
173
173
  "px-ds-03 py-ds-02b text-ds-md font-semibold",
174
174
  a && "pl-ds-07",
@@ -177,8 +177,8 @@ const E = o.forwardRef(({ className: e, inset: a, ...s }, r) => /* @__PURE__ */
177
177
  ...s
178
178
  }
179
179
  ));
180
- E.displayName = w.displayName;
181
- const F = o.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
180
+ H.displayName = w.displayName;
181
+ const J = o.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ r(
182
182
  R,
183
183
  {
184
184
  ref: s,
@@ -186,11 +186,11 @@ const F = o.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
186
186
  ...a
187
187
  }
188
188
  ));
189
- F.displayName = R.displayName;
190
- const H = ({
189
+ J.displayName = R.displayName;
190
+ const K = ({
191
191
  className: e,
192
192
  ...a
193
- }) => /* @__PURE__ */ t(
193
+ }) => /* @__PURE__ */ r(
194
194
  "span",
195
195
  {
196
196
  className: n(
@@ -200,22 +200,22 @@ const H = ({
200
200
  ...a
201
201
  }
202
202
  );
203
- H.displayName = "MenubarShortcut";
203
+ K.displayName = "MenubarShortcut";
204
204
  export {
205
- W as Menubar,
206
- B as MenubarCheckboxItem,
207
- $ as MenubarContent,
208
- te as MenubarGroup,
209
- q as MenubarItem,
210
- E as MenubarLabel,
211
- Q as MenubarMenu,
212
- re as MenubarPortal,
205
+ Y as Menubar,
206
+ E as MenubarCheckboxItem,
207
+ B as MenubarContent,
208
+ re as MenubarGroup,
209
+ D as MenubarItem,
210
+ H as MenubarLabel,
211
+ W as MenubarMenu,
212
+ te as MenubarPortal,
213
213
  oe as MenubarRadioGroup,
214
- D as MenubarRadioItem,
215
- F as MenubarSeparator,
216
- H as MenubarShortcut,
217
- V as MenubarSub,
218
- Z as MenubarSubContent,
219
- Y as MenubarSubTrigger,
220
- X as MenubarTrigger
214
+ F as MenubarRadioItem,
215
+ J as MenubarSeparator,
216
+ K as MenubarShortcut,
217
+ X as MenubarSub,
218
+ q as MenubarSubContent,
219
+ $ as MenubarSubTrigger,
220
+ Z as MenubarTrigger
221
221
  };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsxs as v, jsx as c } from "react/jsx-runtime";
3
3
  import * as a from "react";
4
- import { b3 as N, b4 as h, b5 as w, b6 as x, b7 as R, b8 as M, b9 as O, ba as V } from "../_chunks/primitives.js";
4
+ import { ba as N, bb as h, bc as w, bd as x, be as R, bf as M, bg as O, bh as V } from "../_chunks/primitives.js";
5
5
  import { IconChevronDown as E } from "@tabler/icons-react";
6
- import { c as u } from "../_chunks/utils.js";
7
- import { t as y, s as j } from "../_chunks/motion2.js";
8
- import { m as g } from "../_chunks/motion.js";
6
+ import { cn as u } from "./lib/utils.js";
7
+ import { tweens as y, springs as j } from "./lib/motion.js";
8
+ import { m as g } from "../_chunks/framer.js";
9
9
  const L = a.forwardRef(({ className: r, children: n, ...t }, o) => /* @__PURE__ */ v(
10
10
  N,
11
11
  {
@@ -2,8 +2,8 @@
2
2
  import { jsxs as y, jsx as i } from "react/jsx-runtime";
3
3
  import * as v from "react";
4
4
  import { IconMinus as E, IconPlus as j } from "@tabler/icons-react";
5
- import { c as M } from "../_chunks/utils.js";
6
- import { u as k } from "../_chunks/form.js";
5
+ import { cn as M } from "./lib/utils.js";
6
+ import { useFormField as k } from "./form.js";
7
7
  const D = v.forwardRef(
8
8
  ({
9
9
  value: s = 0,
@@ -14,17 +14,17 @@ const D = v.forwardRef(
14
14
  disabled: m = !1,
15
15
  className: n,
16
16
  "aria-label": l,
17
- ...a
17
+ ...b
18
18
  }, p) => {
19
- const b = k(), u = l ?? (a.id || b.helperTextId ? void 0 : "Numeric value"), N = (c) => {
19
+ const f = k(), u = l ?? (b.id || f.helperTextId ? void 0 : "Numeric value"), N = (c) => {
20
20
  const t = c.target.value.trim();
21
21
  if (t === "" || t === "-") {
22
22
  e == null || e(r >= 0 ? r : 0);
23
23
  return;
24
24
  }
25
- const f = Number(t);
26
- if (Number.isNaN(f)) return;
27
- const I = Math.min(Math.max(f, r), d);
25
+ const a = Number(t);
26
+ if (Number.isNaN(a)) return;
27
+ const I = Math.min(Math.max(a, r), d);
28
28
  e == null || e(I);
29
29
  }, x = (c) => {
30
30
  c.preventDefault();
@@ -66,9 +66,9 @@ const D = v.forwardRef(
66
66
  step: o,
67
67
  disabled: m,
68
68
  "aria-label": u,
69
- "aria-describedby": a["aria-describedby"] ?? b.helperTextId,
69
+ "aria-describedby": b["aria-describedby"] ?? f.helperTextId,
70
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
- ...a
71
+ ...b
72
72
  }
73
73
  ),
74
74
  /* @__PURE__ */ i(
@@ -3,7 +3,7 @@ import { jsx as a, jsxs as g } from "react/jsx-runtime";
3
3
  import * as o from "react";
4
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";
6
+ import { cn as r } from "./lib/utils.js";
7
7
  const w = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a(
8
8
  "nav",
9
9
  {
@@ -1,32 +1,32 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
3
  import * as t from "react";
4
- import { P as u, i as d, h as v, g as P, aM as y } from "../_chunks/primitives.js";
5
- import { c as g } from "../_chunks/utils.js";
6
- import { t as h, s as x } from "../_chunks/motion2.js";
7
- import { A as b, m as C } from "../_chunks/motion.js";
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
8
  const m = t.createContext(!1), w = ({
9
9
  open: s,
10
- defaultOpen: a = !1,
10
+ defaultOpen: n = !1,
11
11
  onOpenChange: o,
12
- ...n
12
+ ...a
13
13
  }) => {
14
- const [c, i] = t.useState(a), r = s !== void 0, p = r ? s : c, f = t.useCallback(
15
- (l) => {
16
- r || i(l), o == null || o(l);
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
17
  },
18
18
  [r, o]
19
19
  );
20
- return /* @__PURE__ */ e(m.Provider, { value: p, children: /* @__PURE__ */ e(P, { open: p, onOpenChange: f, ...n }) });
20
+ return /* @__PURE__ */ e(m.Provider, { value: p, children: /* @__PURE__ */ e(v, { open: p, onOpenChange: f, ...a }) });
21
21
  };
22
22
  w.displayName = "Popover";
23
- const k = v, z = y, A = t.forwardRef(({ className: s, align: a = "center", sideOffset: o = 4, children: n, ...c }, i) => {
23
+ const k = P, z = y, A = t.forwardRef(({ className: s, align: n = "center", sideOffset: o = 4, children: a, ...c }, i) => {
24
24
  const r = t.useContext(m);
25
- return /* @__PURE__ */ e(b, { children: r && /* @__PURE__ */ e(u, { forceMount: !0, children: /* @__PURE__ */ e(
26
- d,
25
+ return /* @__PURE__ */ e(h, { children: r && /* @__PURE__ */ e(u, { forceMount: !0, children: /* @__PURE__ */ e(
26
+ l,
27
27
  {
28
28
  ref: i,
29
- align: a,
29
+ align: n,
30
30
  sideOffset: o,
31
31
  forceMount: !0,
32
32
  asChild: !0,
@@ -37,18 +37,18 @@ const k = v, z = y, A = t.forwardRef(({ className: s, align: a = "center", sideO
37
37
  initial: { opacity: 0, scale: 0.95 },
38
38
  animate: { opacity: 1, scale: 1 },
39
39
  exit: { opacity: 0, scale: 0.95 },
40
- transition: { ...x.snappy, opacity: h.fade },
41
- className: g(
40
+ transition: { ...g.snappy, opacity: b.fade },
41
+ className: x(
42
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
43
  s
44
44
  ),
45
- children: n
45
+ children: a
46
46
  }
47
47
  )
48
48
  }
49
49
  ) }) });
50
50
  });
51
- A.displayName = d.displayName;
51
+ A.displayName = l.displayName;
52
52
  export {
53
53
  w as Popover,
54
54
  z as PopoverAnchor,
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsxs as o, jsx as r } from "react/jsx-runtime";
3
3
  import * as h from "react";
4
- import { aN as d, aO as l } from "../_chunks/primitives.js";
4
+ import { aQ as d, aR as l } from "../_chunks/primitives.js";
5
5
  import { ag as c } from "../_chunks/vendor-utils.js";
6
- import { c as a } from "../_chunks/utils.js";
7
- import { s as x } from "../_chunks/motion2.js";
8
- import { m as w } from "../_chunks/motion.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
9
  const N = c(
10
10
  "relative w-full overflow-hidden rounded-ds-full bg-surface-2",
11
11
  {