@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
package/dist/ui/radio.js CHANGED
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { ai as o, aj as i, ak as d } from "../_chunks/primitives.js";
4
- import { IconCircle as n } from "@tabler/icons-react";
5
- import * as c from "react";
6
- import { c as t } from "../_chunks/utils.js";
7
- const l = c.forwardRef(({ className: a, ...r }, s) => /* @__PURE__ */ e(o, { className: t("grid gap-ds-03", a), ...r, ref: s }));
8
- l.displayName = o.displayName;
9
- const m = c.forwardRef(({ className: a, ...r }, s) => /* @__PURE__ */ e(
3
+ import { aj as s, ak as i, al as d } from "../_chunks/primitives.js";
4
+ import { IconCircle as l } from "@tabler/icons-react";
5
+ import * as t from "react";
6
+ import { cn as c } from "./lib/utils.js";
7
+ const n = t.forwardRef(({ className: a, ...r }, o) => /* @__PURE__ */ e(s, { className: c("grid gap-ds-03", a), ...r, ref: o }));
8
+ n.displayName = s.displayName;
9
+ const m = t.forwardRef(({ className: a, ...r }, o) => /* @__PURE__ */ e(
10
10
  i,
11
11
  {
12
- ref: s,
13
- className: t(
12
+ ref: o,
13
+ className: c(
14
14
  "aspect-square h-ico-md w-ico-md rounded-ds-full",
15
15
  "border border-surface-border-strong bg-surface-3",
16
16
  "transition-colors duration-fast-01",
@@ -20,11 +20,11 @@ const m = c.forwardRef(({ className: a, ...r }, s) => /* @__PURE__ */ e(
20
20
  a
21
21
  ),
22
22
  ...r,
23
- children: /* @__PURE__ */ e(d, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(n, { className: "h-ds-03 w-ds-03 fill-accent-9 text-accent-11" }) })
23
+ children: /* @__PURE__ */ e(d, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(l, { className: "h-ds-03 w-ds-03 fill-accent-9 text-accent-11" }) })
24
24
  }
25
25
  ));
26
26
  m.displayName = i.displayName;
27
27
  export {
28
- l as RadioGroup,
28
+ n as RadioGroup,
29
29
  m as RadioGroupItem
30
30
  };
@@ -2,8 +2,8 @@
2
2
  import { jsxs as d, jsx as e } from "react/jsx-runtime";
3
3
  import { IconSearch as l, IconX as m } from "@tabler/icons-react";
4
4
  import * as u from "react";
5
- import { c as f } from "../_chunks/utils.js";
6
- import { S as p } from "../_chunks/spinner.js";
5
+ import { cn as f } from "./lib/utils.js";
6
+ import { Spinner as p } from "./spinner.js";
7
7
  const b = {
8
8
  sm: "h-ds-sm text-ds-sm pl-ds-08 pr-ds-07",
9
9
  md: "h-ds-md text-ds-md pl-[2.5rem] pr-[2.25rem]",
@@ -117,6 +117,8 @@ export interface SegmentedControlItemProps {
117
117
  isFocused: boolean;
118
118
  onFocus: () => void;
119
119
  onBlur: () => void;
120
+ /** @internal Unique layout animation ID — provided by the parent SegmentedControl. */
121
+ layoutId?: string;
120
122
  }
121
123
  declare const SegmentedControlItem: React.ForwardRefExoticComponent<SegmentedControlItemProps & React.RefAttributes<HTMLButtonElement>>;
122
124
  export { SegmentedControl, SegmentedControlItem, segmentedControlItemVariants };
@@ -1 +1 @@
1
- {"version":3,"file":"segmented-control.d.ts","sourceRoot":"","sources":["../../src/ui/segmented-control.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2B,MAAM,OAAO,CAAA;AAQ/C,QAAA,MAAM,4BAA4B;;;;;;8EAmGjC,CAAA;AAqBD,MAAM,MAAM,oBAAoB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;AAClF,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,OAAO,CAAA;AAExD;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,8DAA8D;IAC9D,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS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AAM,CAAA;KAAE,CAAC,CAAA;IAClD,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,sFAAsF;IACtF,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,QAAA,MAAM,oBAAoB,qGA6GzB,CAAA;AAGD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,CAAA"}
@@ -1,24 +1,26 @@
1
1
  "use client";
2
2
  import { jsx as d, jsxs as z } from "react/jsx-runtime";
3
- import N, { useState as D, useRef as C, useEffect as I, useCallback as R } from "react";
4
- import { ag as S } from "../_chunks/vendor-utils.js";
5
- import { c as _ } from "../_chunks/utils.js";
6
- import { s as H } from "../_chunks/motion2.js";
7
- import { L, m as k, A as E } from "../_chunks/motion.js";
8
- function T(u = 600) {
9
- const [b, l] = D([]), s = C();
10
- I(() => () => {
11
- clearTimeout(s.current);
3
+ import D, { useState as k, useRef as I, useEffect as S, useCallback as R, useId as E } from "react";
4
+ import { ag as H } from "../_chunks/vendor-utils.js";
5
+ import { cn as w } from "./lib/utils.js";
6
+ import { springs as L } from "./lib/motion.js";
7
+ import { L as T, m as C, A } from "../_chunks/framer.js";
8
+ function j(u = 600) {
9
+ const [b, l] = k([]), s = I(/* @__PURE__ */ new Set());
10
+ S(() => () => {
11
+ s.current.forEach(clearTimeout);
12
12
  }, []);
13
13
  const m = R((n) => {
14
- const a = n.currentTarget.getBoundingClientRect(), t = Math.max(a.width, a.height) * 2, h = n.clientX - a.left - t / 2, o = n.clientY - a.top - t / 2, x = Date.now();
15
- l((i) => [...i, { id: x, x: h, y: o, size: t }]), s.current = setTimeout(() => {
16
- l((i) => i.filter((f) => f.id !== x));
14
+ const a = n.currentTarget.getBoundingClientRect(), t = Math.max(a.width, a.height) * 2, v = n.clientX - a.left - t / 2, o = n.clientY - a.top - t / 2, x = Date.now();
15
+ l((i) => [...i, { id: x, x: v, y: o, size: t }]);
16
+ const g = setTimeout(() => {
17
+ l((i) => i.filter((f) => f.id !== x)), s.current.delete(g);
17
18
  }, u);
19
+ s.current.add(g);
18
20
  }, [u]);
19
21
  return { ripples: b, createRipple: m };
20
22
  }
21
- const A = S(
23
+ const B = H(
22
24
  [
23
25
  "inline-flex items-center gap-ds-03 rounded-ds-full border-none outline-none cursor-pointer",
24
26
  "transition-[color,background-color,border-color,box-shadow] duration-moderate-02 ease-productive-standard",
@@ -117,18 +119,18 @@ const A = S(
117
119
  isDisabled: !1
118
120
  }
119
121
  }
120
- ), j = {
122
+ ), F = {
121
123
  filled: "bg-surface-overlay-light",
122
124
  tonal: "bg-surface-overlay-dark"
123
- }, B = {
125
+ }, V = {
124
126
  small: "sm",
125
127
  medium: "md",
126
128
  big: "lg"
127
129
  };
128
- function F(u) {
129
- return B[u] ?? u;
130
+ function K(u) {
131
+ return V[u] ?? u;
130
132
  }
131
- const V = N.forwardRef(
133
+ const U = D.forwardRef(
132
134
  function({
133
135
  size: b,
134
136
  variant: l,
@@ -137,11 +139,11 @@ const V = N.forwardRef(
137
139
  onSelect: n,
138
140
  disabled: a = !1,
139
141
  className: t = "",
140
- ...h
142
+ ...v
141
143
  }, o) {
142
- const x = F(b), [i, f] = D(null), g = C(null), w = N.useCallback((e) => {
143
- g.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
144
- }, [o]), y = (e) => {
144
+ const x = K(b), g = E(), [i, f] = k(null), h = I(null), y = D.useCallback((e) => {
145
+ h.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
146
+ }, [o]), N = (e) => {
145
147
  if (a) return;
146
148
  const p = s.findIndex((r) => r.id === i);
147
149
  let c = p;
@@ -161,25 +163,25 @@ const V = N.forwardRef(
161
163
  default:
162
164
  return;
163
165
  }
164
- const v = s[c];
165
- f(v.id), n(v.id);
166
+ const _ = s[c];
167
+ f(_.id), n(_.id);
166
168
  };
167
169
  return /* @__PURE__ */ d(
168
170
  "div",
169
171
  {
170
- ref: w,
171
- className: _(
172
+ ref: y,
173
+ className: w(
172
174
  "inline-flex gap-0 p-0 rounded-ds-full",
173
175
  "bg-surface-2",
174
176
  "border border-solid border-surface-border-strong",
175
177
  t
176
178
  ),
177
179
  role: "tablist",
178
- onKeyDown: y,
180
+ onKeyDown: N,
179
181
  tabIndex: -1,
180
182
  "aria-label": "Segmented control options",
181
- ...h,
182
- children: /* @__PURE__ */ d(L, { children: s.map((e) => /* @__PURE__ */ d(
183
+ ...v,
184
+ children: /* @__PURE__ */ d(T, { children: s.map((e) => /* @__PURE__ */ d(
183
185
  M,
184
186
  {
185
187
  size: x,
@@ -191,7 +193,8 @@ const V = N.forwardRef(
191
193
  disabled: a,
192
194
  isFocused: e.id === i,
193
195
  onFocus: () => f(e.id),
194
- onBlur: () => f(null)
196
+ onBlur: () => f(null),
197
+ layoutId: `${g}-segment-indicator`
195
198
  },
196
199
  e.id
197
200
  )) })
@@ -199,8 +202,8 @@ const V = N.forwardRef(
199
202
  );
200
203
  }
201
204
  );
202
- V.displayName = "SegmentedControl";
203
- const M = N.forwardRef(
205
+ U.displayName = "SegmentedControl";
206
+ const M = D.forwardRef(
204
207
  function({
205
208
  size: b,
206
209
  variant: l,
@@ -209,25 +212,26 @@ const M = N.forwardRef(
209
212
  isSelected: n,
210
213
  onClick: a,
211
214
  disabled: t = !1,
212
- isFocused: h,
215
+ isFocused: v,
213
216
  onFocus: o,
214
- onBlur: x
217
+ onBlur: x,
218
+ layoutId: g = "segment-indicator"
215
219
  }, i) {
216
- const [f, g] = D("default"), { ripples: w, createRipple: y } = T(), e = () => {
217
- !t && !h && g("hover");
220
+ const [f, h] = k("default"), { ripples: y, createRipple: N } = j(), e = () => {
221
+ !t && !v && h("hover");
218
222
  }, p = () => {
219
- t || g("default");
223
+ t || h("default");
220
224
  }, c = () => {
221
- t || g("pressed");
222
- }, v = () => {
223
- t || g("hover");
225
+ t || h("pressed");
226
+ }, _ = () => {
227
+ t || h("hover");
224
228
  };
225
229
  return /* @__PURE__ */ z(
226
230
  "button",
227
231
  {
228
232
  ref: i,
229
- className: _(
230
- A({
233
+ className: w(
234
+ B({
231
235
  size: b,
232
236
  variant: l,
233
237
  selected: n,
@@ -236,7 +240,7 @@ const M = N.forwardRef(
236
240
  })
237
241
  ),
238
242
  onClick: (r) => {
239
- y(r), a();
243
+ N(r), a();
240
244
  },
241
245
  disabled: t,
242
246
  type: "button",
@@ -246,29 +250,29 @@ const M = N.forwardRef(
246
250
  onMouseEnter: e,
247
251
  onMouseLeave: p,
248
252
  onMouseDown: c,
249
- onMouseUp: v,
253
+ onMouseUp: _,
250
254
  onTouchStart: c,
251
- onTouchEnd: v,
255
+ onTouchEnd: _,
252
256
  onFocus: o,
253
257
  onBlur: x,
254
258
  children: [
255
259
  n && /* @__PURE__ */ d(
256
- k.span,
260
+ C.span,
257
261
  {
258
- layoutId: "segment-indicator",
259
- className: _(
262
+ layoutId: g,
263
+ className: w(
260
264
  "absolute inset-0 rounded-ds-full pointer-events-none",
261
265
  l === "filled" ? "bg-accent-9 shadow-[0px_1px_3px_0.05px_var(--color-accent-10),inset_0px_8px_16px_0px_var(--color-inset-glow-strong),inset_0px_2px_0px_0px_var(--color-inset-glow-subtle)]" : "bg-surface-3"
262
266
  ),
263
- transition: H.smooth
267
+ transition: L.smooth
264
268
  }
265
269
  ),
266
- /* @__PURE__ */ d(E, { children: w.map((r) => /* @__PURE__ */ d(
267
- k.span,
270
+ /* @__PURE__ */ d(A, { children: y.map((r) => /* @__PURE__ */ d(
271
+ C.span,
268
272
  {
269
- className: _(
273
+ className: w(
270
274
  "absolute rounded-ds-full -translate-x-1/2 -translate-y-1/2 pointer-events-none",
271
- j[l]
275
+ F[l]
272
276
  ),
273
277
  style: {
274
278
  left: r.x,
@@ -291,7 +295,7 @@ const M = N.forwardRef(
291
295
  );
292
296
  M.displayName = "SegmentedControlItem";
293
297
  export {
294
- V as SegmentedControl,
298
+ U as SegmentedControl,
295
299
  M as SegmentedControlItem,
296
- A as segmentedControlItemVariants
300
+ B as segmentedControlItemVariants
297
301
  };
package/dist/ui/select.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
3
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(
4
+ import { ao as c, ap as w, aq as n, ar as m, as as x, at as p, au as N, av as f, aw as u, ax as v, ay as S, az as h, aA as I, aB as R, aC as C } from "../_chunks/primitives.js";
5
+ import { IconChevronDown as y, IconChevronUp as j, IconCheck as B } from "@tabler/icons-react";
6
+ import { ag as V } from "../_chunks/vendor-utils.js";
7
+ import { cn as r } from "./lib/utils.js";
8
+ import { tweens as z, springs as T } from "./lib/motion.js";
9
+ import { m as D } from "../_chunks/framer.js";
10
+ const O = I, Q = C, W = R, U = V(
11
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",
12
12
  {
13
13
  variants: {
@@ -19,10 +19,10 @@ const O = I, Q = C, W = R, U = z(
19
19
  },
20
20
  defaultVariants: { size: "md" }
21
21
  }
22
- ), G = o.forwardRef(({ className: s, children: t, size: a, ...d }, l) => /* @__PURE__ */ i(
22
+ ), G = o.forwardRef(({ className: s, children: t, size: a, ...d }, i) => /* @__PURE__ */ l(
23
23
  c,
24
24
  {
25
- ref: l,
25
+ ref: i,
26
26
  className: r(U({ size: a }), s),
27
27
  ...d,
28
28
  children: [
@@ -58,19 +58,19 @@ const g = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
58
58
  }
59
59
  ));
60
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(
61
+ const L = o.forwardRef(({ className: s, children: t, position: a = "popper", ...d }, i) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(
62
62
  p,
63
63
  {
64
- ref: l,
64
+ ref: i,
65
65
  position: a,
66
66
  asChild: !0,
67
67
  ...d,
68
- children: /* @__PURE__ */ i(
68
+ children: /* @__PURE__ */ l(
69
69
  D.div,
70
70
  {
71
71
  initial: { opacity: 0, scale: 0.95 },
72
72
  animate: { opacity: 1, scale: 1 },
73
- transition: { ...T.snappy, opacity: B.fade },
73
+ transition: { ...T.snappy, opacity: z.fade },
74
74
  className: r(
75
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
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",
@@ -104,7 +104,7 @@ const k = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
104
104
  }
105
105
  ));
106
106
  k.displayName = f.displayName;
107
- const q = o.forwardRef(({ className: s, children: t, ...a }, d) => /* @__PURE__ */ i(
107
+ const q = o.forwardRef(({ className: s, children: t, ...a }, d) => /* @__PURE__ */ l(
108
108
  u,
109
109
  {
110
110
  ref: d,
@@ -114,13 +114,13 @@ const q = o.forwardRef(({ className: s, children: t, ...a }, d) => /* @__PURE__
114
114
  ),
115
115
  ...a,
116
116
  children: [
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" }) }) }),
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(B, { className: "h-ico-sm w-ico-sm" }) }) }),
118
118
  /* @__PURE__ */ e(S, { children: t })
119
119
  ]
120
120
  }
121
121
  ));
122
122
  q.displayName = u.displayName;
123
- const P = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
123
+ const A = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
124
124
  h,
125
125
  {
126
126
  ref: a,
@@ -128,7 +128,7 @@ const P = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
128
128
  ...t
129
129
  }
130
130
  ));
131
- P.displayName = h.displayName;
131
+ A.displayName = h.displayName;
132
132
  export {
133
133
  O as Select,
134
134
  L as SelectContent,
@@ -137,7 +137,7 @@ export {
137
137
  k as SelectLabel,
138
138
  g as SelectScrollDownButton,
139
139
  b as SelectScrollUpButton,
140
- P as SelectSeparator,
140
+ A as SelectSeparator,
141
141
  G as SelectTrigger,
142
142
  W as SelectValue,
143
143
  U as selectTriggerVariants
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import * as e from "react";
4
- import { bb as o } from "../_chunks/primitives.js";
5
- import { c as f } from "../_chunks/utils.js";
4
+ import { ai as o } from "../_chunks/primitives.js";
5
+ import { cn as f } from "./lib/utils.js";
6
6
  const l = e.forwardRef(
7
- ({ className: a, orientation: r = "horizontal", decorative: m = !0, ...s }, p) => /* @__PURE__ */ t(
7
+ ({ className: a, orientation: r = "horizontal", decorative: m = !0, ...p }, s) => /* @__PURE__ */ t(
8
8
  o,
9
9
  {
10
- ref: p,
10
+ ref: s,
11
11
  decorative: m,
12
12
  orientation: r,
13
13
  className: f(
@@ -15,7 +15,7 @@ const l = e.forwardRef(
15
15
  r === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
16
16
  a
17
17
  ),
18
- ...s
18
+ ...p
19
19
  }
20
20
  )
21
21
  );
package/dist/ui/sheet.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { jsx as o, jsxs as d } from "react/jsx-runtime";
2
+ import { jsx as o, jsxs as c } from "react/jsx-runtime";
3
3
  import * as r from "react";
4
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
5
  import { ag as T } from "../_chunks/vendor-utils.js";
6
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";
7
+ import { cn as a } from "./lib/utils.js";
8
+ import { tweens as M, motionProps as g, springs as z } from "./lib/motion.js";
9
+ import { m as N, A as D } from "../_chunks/framer.js";
10
10
  const v = r.createContext(!1), F = ({
11
11
  open: e,
12
12
  defaultOpen: s = !1,
@@ -14,11 +14,11 @@ const v = r.createContext(!1), F = ({
14
14
  children: i,
15
15
  ...n
16
16
  }) => {
17
- const [l, S] = r.useState(s), c = e !== void 0, m = c ? e : l, C = r.useCallback(
17
+ const [l, S] = r.useState(s), d = e !== void 0, m = d ? e : l, C = r.useCallback(
18
18
  (f) => {
19
- c || S(f), t == null || t(f);
19
+ d || S(f), t == null || t(f);
20
20
  },
21
- [c, t]
21
+ [d, t]
22
22
  );
23
23
  return /* @__PURE__ */ o(v.Provider, { value: m, children: /* @__PURE__ */ o(P, { open: m, onOpenChange: C, ...n, children: i }) });
24
24
  };
@@ -63,9 +63,9 @@ const p = {
63
63
  }
64
64
  ), k = r.forwardRef(({ side: e = "right", className: s, children: t, ...i }, n) => {
65
65
  const l = r.useContext(v);
66
- return /* @__PURE__ */ o(D, { children: l && /* @__PURE__ */ d(H, { forceMount: !0, children: [
66
+ return /* @__PURE__ */ o(D, { children: l && /* @__PURE__ */ c(H, { forceMount: !0, children: [
67
67
  /* @__PURE__ */ o(w, {}),
68
- /* @__PURE__ */ o(u, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ d(
68
+ /* @__PURE__ */ o(u, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ c(
69
69
  N.div,
70
70
  {
71
71
  ref: n,
@@ -76,7 +76,7 @@ const p = {
76
76
  transition: z.smooth,
77
77
  ...g(i),
78
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: [
79
+ /* @__PURE__ */ c(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
80
  /* @__PURE__ */ o(A, { className: "h-ico-sm w-ico-sm" }),
81
81
  /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
82
82
  ] }),