@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
@@ -2,11 +2,11 @@
2
2
  import { jsx as s, jsxs as i } from "react/jsx-runtime";
3
3
  import { S as t } from "../_chunks/primitives.js";
4
4
  import { IconDots as n, IconChevronRight as d } from "@tabler/icons-react";
5
- import * as c from "react";
6
- import { c as m } from "../_chunks/utils.js";
7
- const l = c.forwardRef(({ ...e }, r) => /* @__PURE__ */ s("nav", { ref: r, "aria-label": "breadcrumb", ...e }));
5
+ import * as o from "react";
6
+ import { cn as m } from "./lib/utils.js";
7
+ const l = o.forwardRef(({ ...e }, r) => /* @__PURE__ */ s("nav", { ref: r, "aria-label": "breadcrumb", ...e }));
8
8
  l.displayName = "Breadcrumb";
9
- const f = c.forwardRef(
9
+ const f = o.forwardRef(
10
10
  ({ className: e, ...r }, a) => /* @__PURE__ */ s(
11
11
  "ol",
12
12
  {
@@ -20,14 +20,14 @@ const f = c.forwardRef(
20
20
  )
21
21
  );
22
22
  f.displayName = "BreadcrumbList";
23
- const p = c.forwardRef(
23
+ const p = o.forwardRef(
24
24
  ({ className: e, ...r }, a) => /* @__PURE__ */ s("li", { ref: a, className: m("inline-flex items-center gap-ds-02b", e), ...r })
25
25
  );
26
26
  p.displayName = "BreadcrumbItem";
27
- const u = c.forwardRef(({ className: e, asChild: r = !1, ...a }, o) => /* @__PURE__ */ s(
27
+ const u = o.forwardRef(({ className: e, asChild: r = !1, ...a }, c) => /* @__PURE__ */ s(
28
28
  r ? t : "a",
29
29
  {
30
- ref: o,
30
+ ref: c,
31
31
  className: m(
32
32
  "transition-colors hover:text-surface-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 rounded-ds-sm",
33
33
  e
@@ -36,7 +36,7 @@ const u = c.forwardRef(({ className: e, asChild: r = !1, ...a }, o) => /* @__PUR
36
36
  }
37
37
  ));
38
38
  u.displayName = "BreadcrumbLink";
39
- const b = c.forwardRef(
39
+ const b = o.forwardRef(
40
40
  ({ className: e, ...r }, a) => /* @__PURE__ */ s(
41
41
  "span",
42
42
  {
@@ -1,20 +1,20 @@
1
1
  "use client";
2
2
  import { jsx as r } from "react/jsx-runtime";
3
3
  import * as o from "react";
4
- import { c as f } from "../_chunks/utils.js";
4
+ import { cn as a } from "./lib/utils.js";
5
5
  const l = o.createContext({});
6
6
  function h() {
7
7
  return o.useContext(l);
8
8
  }
9
9
  const p = o.forwardRef(
10
10
  ({ className: u, variant: t, color: n, size: e, orientation: i = "horizontal", children: d, ...c }, s) => {
11
- const a = o.useMemo(() => ({ variant: t, color: n, size: e }), [t, n, e]);
12
- return /* @__PURE__ */ r(l.Provider, { value: a, children: /* @__PURE__ */ r(
11
+ const f = o.useMemo(() => ({ variant: t, color: n, size: e }), [t, n, e]);
12
+ return /* @__PURE__ */ r(l.Provider, { value: f, children: /* @__PURE__ */ r(
13
13
  "div",
14
14
  {
15
15
  ref: s,
16
16
  role: "group",
17
- className: f(
17
+ className: a(
18
18
  "inline-flex",
19
19
  i === "horizontal" ? [
20
20
  "flex-row",
package/dist/ui/button.js CHANGED
@@ -2,13 +2,13 @@
2
2
  import { jsx as e, jsxs as C } from "react/jsx-runtime";
3
3
  import { ag as K } from "../_chunks/vendor-utils.js";
4
4
  import { IconCheck as L, IconX as O } from "@tabler/icons-react";
5
- import { S as P, a as Q } from "../_chunks/primitives.js";
6
- import * as a from "react";
7
- import { u as U } from "../_chunks/button-group.js";
8
- import { s as Y } from "../_chunks/motion2.js";
9
- import { c as n } from "../_chunks/utils.js";
10
- import { S as Z } from "../_chunks/spinner.js";
11
- import { A as _, m as $ } from "../_chunks/motion.js";
5
+ import { S as P, M as Q } from "../_chunks/primitives.js";
6
+ import * as n from "react";
7
+ import { useButtonGroup as U } from "./button-group.js";
8
+ import { springs as Y } from "./lib/motion.js";
9
+ import { cn as c } from "./lib/utils.js";
10
+ import { Spinner as Z } from "./spinner.js";
11
+ import { A as _, m as $ } from "../_chunks/framer.js";
12
12
  const R = K(
13
13
  "inline-flex items-center justify-center gap-ds-03 whitespace-nowrap font-sans font-semibold select-none border border-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled",
14
14
  {
@@ -80,27 +80,27 @@ const R = K(
80
80
  "icon-sm": "sm",
81
81
  "icon-md": "sm",
82
82
  "icon-lg": "md"
83
- }, re = a.forwardRef(
83
+ }, re = n.forwardRef(
84
84
  ({
85
85
  className: b,
86
86
  variant: A,
87
87
  color: V,
88
88
  size: B,
89
- asChild: E = !1,
89
+ asChild: M = !1,
90
90
  startIcon: h,
91
91
  endIcon: p,
92
- loading: F = !1,
92
+ loading: E = !1,
93
93
  loadingPosition: d = "start",
94
94
  fullWidth: w = !1,
95
95
  disabled: x,
96
- onClick: M,
96
+ onClick: F,
97
97
  onClickAsync: m,
98
98
  asyncFeedbackDuration: T = 1500,
99
- children: c,
99
+ children: a,
100
100
  ...N
101
101
  }, y) => {
102
- const u = U(), S = A ?? u.variant, z = V ?? u.color, i = B ?? u.size ?? "md", f = W[i], G = ee[i], [t, l] = a.useState("idle"), j = a.useRef(), o = a.useRef(!0);
103
- a.useEffect(() => () => {
102
+ const u = U(), S = A ?? u.variant, z = V ?? u.color, i = B ?? u.size ?? "md", f = W[i], G = ee[i], [t, l] = n.useState("idle"), j = n.useRef(), o = n.useRef(!0);
103
+ n.useEffect(() => () => {
104
104
  o.current = !1, clearTimeout(j.current);
105
105
  }, []);
106
106
  const I = (v) => {
@@ -113,10 +113,10 @@ const R = K(
113
113
  o.current && l("idle");
114
114
  }, T));
115
115
  }));
116
- }, k = !!m, r = k ? t === "loading" : F, s = t === "success" || t === "error", g = r ? /* @__PURE__ */ e(Z, { size: G }) : null;
117
- if (E) {
116
+ }, k = !!m, r = k ? t === "loading" : E, s = t === "success" || t === "error", g = r ? /* @__PURE__ */ e(Z, { size: G }) : null;
117
+ if (M) {
118
118
  const v = {
119
- className: n(
119
+ className: c(
120
120
  R({ variant: S, color: z, size: i }),
121
121
  w && "w-full",
122
122
  b
@@ -126,19 +126,19 @@ const R = K(
126
126
  "aria-busy": r || void 0,
127
127
  ...N
128
128
  };
129
- return /* @__PURE__ */ e(P, { ...v, children: /* @__PURE__ */ e(Q, { children: c }) });
129
+ return /* @__PURE__ */ e(P, { ...v, children: /* @__PURE__ */ e(Q, { children: a }) });
130
130
  }
131
- const X = () => r && d === "start" ? g : h ? /* @__PURE__ */ e("span", { className: n("inline-flex shrink-0 items-center justify-center", f), children: h }) : null, q = () => r && d === "end" ? g : p ? /* @__PURE__ */ e("span", { className: n("inline-flex shrink-0 items-center justify-center", f), children: p }) : null, D = () => r && d === "center" ? /* @__PURE__ */ C("span", { className: "relative inline-flex items-center justify-center", children: [
132
- /* @__PURE__ */ e("span", { className: "invisible", children: c }),
131
+ const X = () => r && d === "start" ? g : h ? /* @__PURE__ */ e("span", { className: c("inline-flex shrink-0 items-center justify-center", f), children: h }) : null, q = () => r && d === "end" ? g : p ? /* @__PURE__ */ e("span", { className: c("inline-flex shrink-0 items-center justify-center", f), children: p }) : null, D = () => r && d === "center" ? /* @__PURE__ */ C("span", { className: "relative inline-flex items-center justify-center", children: [
132
+ /* @__PURE__ */ e("span", { className: "invisible", children: a }),
133
133
  /* @__PURE__ */ e("span", { className: "absolute inset-0 flex items-center justify-center", children: g })
134
- ] }) : c, H = s ? t === "success" ? "bg-success-9 text-accent-fg border-transparent hover:bg-success-9" : "bg-error-9 text-accent-fg border-transparent hover:bg-error-9" : void 0, J = s ? /* @__PURE__ */ e(_, { mode: "wait", children: /* @__PURE__ */ e(
134
+ ] }) : a, H = s ? t === "success" ? "bg-success-9 text-accent-fg border-transparent hover:bg-success-9" : "bg-error-9 text-accent-fg border-transparent hover:bg-error-9" : void 0, J = s ? /* @__PURE__ */ e(_, { mode: "wait", children: /* @__PURE__ */ e(
135
135
  $.span,
136
136
  {
137
137
  initial: { opacity: 0, scale: 0.5 },
138
138
  animate: { opacity: 1, scale: 1 },
139
139
  exit: { opacity: 0, scale: 0.5 },
140
140
  transition: Y.bouncy,
141
- className: n("inline-flex shrink-0 items-center justify-center", f),
141
+ className: c("inline-flex shrink-0 items-center justify-center", f),
142
142
  children: t === "success" ? /* @__PURE__ */ e(L, { className: "h-full w-full" }) : /* @__PURE__ */ e(O, { className: "h-full w-full" })
143
143
  },
144
144
  t
@@ -147,7 +147,7 @@ const R = K(
147
147
  "button",
148
148
  {
149
149
  ...N,
150
- className: n(
150
+ className: c(
151
151
  R({ variant: S, color: z, size: i }),
152
152
  w && "w-full",
153
153
  !r && !s && "active:scale-[0.97] transition-transform duration-100",
@@ -158,10 +158,10 @@ const R = K(
158
158
  ref: y,
159
159
  disabled: x || r || s,
160
160
  "aria-busy": r || void 0,
161
- onClick: k ? I : M,
161
+ onClick: k ? I : F,
162
162
  children: [
163
163
  s ? J : X(),
164
- s ? c : D(),
164
+ s ? a : D(),
165
165
  s ? null : q()
166
166
  ]
167
167
  }
package/dist/ui/card.js CHANGED
@@ -2,9 +2,9 @@
2
2
  import { jsx as s } from "react/jsx-runtime";
3
3
  import * as o from "react";
4
4
  import { ag as f } from "../_chunks/vendor-utils.js";
5
- import { s as c, m } from "../_chunks/motion2.js";
6
- import { c as d } from "../_chunks/utils.js";
7
- import { m as l } from "../_chunks/motion.js";
5
+ import { springs as c, motionProps as l } from "./lib/motion.js";
6
+ import { cn as d } from "./lib/utils.js";
7
+ import { m } from "../_chunks/framer.js";
8
8
  const p = f(
9
9
  "rounded-ds-lg text-surface-fg",
10
10
  {
@@ -26,14 +26,14 @@ const p = f(
26
26
  a
27
27
  );
28
28
  return r ? /* @__PURE__ */ s(
29
- l.div,
29
+ m.div,
30
30
  {
31
31
  ref: n,
32
32
  whileHover: { y: -2 },
33
33
  whileTap: { scale: 0.98 },
34
34
  transition: c.snappy,
35
35
  className: i,
36
- ...m(t)
36
+ ...l(t)
37
37
  }
38
38
  ) : /* @__PURE__ */ s("div", { ref: n, className: i, ...t });
39
39
  }
@@ -2,13 +2,13 @@
2
2
  import { jsx as t, jsxs as g, Fragment as et } from "react/jsx-runtime";
3
3
  import * as nt from "react";
4
4
  import { useRef as yt, useState as mt, useEffect as xt, useCallback as kt } from "react";
5
- import { c as H } from "../../_chunks/utils.js";
5
+ import { cn as H } from "../lib/utils.js";
6
6
  import { scaleBand as St, scaleLinear as ot, scalePoint as Ct } from "d3-scale";
7
- import { t as st, m as it } from "../../_chunks/motion2.js";
7
+ import { tweens as st, motionProps as it } from "../lib/motion.js";
8
8
  import { axisLeft as Xt, axisBottom as Dt, axisRight as Pt, axisTop as zt } from "d3-axis";
9
9
  import { select as Bt } from "d3-selection";
10
- import { useMotion as Vt } from "../../motion/motion-provider.js";
11
- import { m as rt } from "../../_chunks/motion.js";
10
+ import { u as Vt } from "../../_chunks/motion-provider.js";
11
+ import { m as rt } from "../../_chunks/framer.js";
12
12
  import { line as ft, curveMonotoneX as dt, curveLinear as At, stack as _t, stackOrderNone as jt, stackOffsetNone as Tt, area as Nt, pie as Yt, arc as vt, lineRadial as Ot, curveLinearClosed as Wt } from "d3-shape";
13
13
  const It = {
14
14
  top: 20,
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { C as a, b as m } from "../_chunks/primitives.js";
3
+ import { N as a, Q as m } from "../_chunks/primitives.js";
4
4
  import { IconMinus as l, IconCheck as f } from "@tabler/icons-react";
5
5
  import * as b from "react";
6
- import { s as u } from "../_chunks/motion2.js";
7
- import { c as h } from "../_chunks/utils.js";
8
- import { A as p, m as x } from "../_chunks/motion.js";
6
+ import { springs as u } from "./lib/motion.js";
7
+ import { cn as h } from "./lib/utils.js";
8
+ import { A as p, m as x } from "../_chunks/framer.js";
9
9
  const g = b.forwardRef(({ className: c, error: i, indeterminate: r, checked: s, ...o }, n) => {
10
10
  const t = r ? "indeterminate" : s, d = t === !0 || t === "indeterminate";
11
11
  return /* @__PURE__ */ e(
package/dist/ui/chip.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { jsxs as f, jsx as e } from "react/jsx-runtime";
2
+ import { jsxs as f, jsx as r } from "react/jsx-runtime";
3
3
  import * as v from "react";
4
4
  import { IconX as N } from "@tabler/icons-react";
5
5
  import { ag as h } from "../_chunks/vendor-utils.js";
6
- import { s as w, m as C } from "../_chunks/motion2.js";
7
- import { c as k } from "../_chunks/utils.js";
8
- import { m as n } from "../_chunks/motion.js";
9
- import { A as $ } from "../_chunks/motion.js";
6
+ import { springs as w, motionProps as C } from "./lib/motion.js";
7
+ import { cn as k } from "./lib/utils.js";
8
+ import { m as n } from "../_chunks/framer.js";
9
+ import { A as $ } from "../_chunks/framer.js";
10
10
  const j = h(
11
11
  "inline-flex items-center gap-ds-02 font-sans leading-ds-relaxed rounded-ds-full transition-colors duration-fast-01",
12
12
  {
@@ -69,8 +69,8 @@ const j = h(
69
69
  }
70
70
  }
71
71
  ), R = v.forwardRef(
72
- ({ label: t, variant: i, size: l, color: g, icon: o, onClick: s, onDismiss: c, disabled: r, className: d, ...m }, b) => {
73
- const a = !!s, u = a ? n.button : n.span, y = a && !r ? "cursor-pointer hover:bg-surface-4 active:scale-95" : "", x = r ? "opacity-action-disabled cursor-not-allowed" : "";
72
+ ({ label: t, variant: i, size: l, color: g, icon: o, onClick: s, onDismiss: c, disabled: a, className: d, ...m }, b) => {
73
+ const e = !!s, u = e ? n.button : n.span, y = e && !a ? "cursor-pointer hover:bg-surface-4 active:scale-95" : "", x = a ? "opacity-action-disabled cursor-not-allowed" : "";
74
74
  return /* @__PURE__ */ f(
75
75
  u,
76
76
  {
@@ -80,14 +80,14 @@ const j = h(
80
80
  exit: { opacity: 0, scale: 0.8 },
81
81
  transition: w.snappy,
82
82
  className: k(j({ variant: i, size: l, color: g }), y, x, d),
83
- onClick: a ? s : void 0,
84
- disabled: a ? r : void 0,
85
- type: a ? "button" : void 0,
83
+ onClick: e ? s : void 0,
84
+ disabled: e ? a : void 0,
85
+ type: e ? "button" : void 0,
86
86
  ...C(m),
87
87
  children: [
88
- o && /* @__PURE__ */ e("span", { className: "flex-shrink-0 [&>svg]:w-ico-sm [&>svg]:h-ico-sm", children: o }),
89
- /* @__PURE__ */ e("span", { children: t }),
90
- c && /* @__PURE__ */ e(
88
+ o && /* @__PURE__ */ r("span", { className: "flex-shrink-0 [&>svg]:w-ico-sm [&>svg]:h-ico-sm", children: o }),
89
+ /* @__PURE__ */ r("span", { children: t }),
90
+ c && /* @__PURE__ */ r(
91
91
  "button",
92
92
  {
93
93
  type: "button",
@@ -96,7 +96,7 @@ const j = h(
96
96
  onClick: (p) => {
97
97
  p.stopPropagation(), c();
98
98
  },
99
- children: /* @__PURE__ */ e(N, { className: "h-ico-sm w-ico-sm" })
99
+ children: /* @__PURE__ */ r(N, { className: "h-ico-sm w-ico-sm" })
100
100
  }
101
101
  )
102
102
  ]
package/dist/ui/code.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import * as f from "react";
3
- import { c as t } from "../_chunks/utils.js";
3
+ import { cn as t } from "./lib/utils.js";
4
4
  const m = f.forwardRef(
5
5
  ({ className: o, variant: a = "inline", children: r, ...d }, s) => a === "block" ? /* @__PURE__ */ e(
6
6
  "pre",
@@ -2,17 +2,17 @@
2
2
  import { jsx as a } from "react/jsx-runtime";
3
3
  import * as l from "react";
4
4
  import { U as o, V as r, W as m } from "../_chunks/primitives.js";
5
- import { c as n } from "../_chunks/utils.js";
6
- import { t as p } from "../_chunks/motion2.js";
7
- import { m as c } from "../_chunks/motion.js";
8
- const y = r, N = m, d = l.forwardRef(({ className: t, children: e, ...i }, s) => /* @__PURE__ */ a(
5
+ import { cn as n } from "./lib/utils.js";
6
+ import { tweens as p } from "./lib/motion.js";
7
+ import { m as d } from "../_chunks/framer.js";
8
+ const y = r, N = m, c = l.forwardRef(({ className: t, children: e, ...i }, s) => /* @__PURE__ */ a(
9
9
  o,
10
10
  {
11
11
  ref: s,
12
12
  className: n("overflow-hidden data-[state=open]:animate-collapsible-down data-[state=closed]:animate-collapsible-up", t),
13
13
  ...i,
14
14
  children: /* @__PURE__ */ a(
15
- c.div,
15
+ d.div,
16
16
  {
17
17
  initial: !1,
18
18
  animate: { opacity: 1 },
@@ -22,9 +22,9 @@ const y = r, N = m, d = l.forwardRef(({ className: t, children: e, ...i }, s) =>
22
22
  )
23
23
  }
24
24
  ));
25
- d.displayName = o.displayName;
25
+ c.displayName = o.displayName;
26
26
  export {
27
27
  y as Collapsible,
28
- d as CollapsibleContent,
28
+ c as CollapsibleContent,
29
29
  N as CollapsibleTrigger
30
30
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsxs as d, jsx as t } from "react/jsx-runtime";
3
3
  import * as m from "react";
4
- import { c } from "../_chunks/utils.js";
4
+ import { cn as c } from "./lib/utils.js";
5
5
  const b = m.forwardRef(
6
6
  ({ value: s = "#000000", onChange: l, presets: n, disabled: o = !1, className: i, ...u }, f) => {
7
7
  const a = (r) => {
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as a, jsxs as o, Fragment as G } from "react/jsx-runtime";
3
3
  import * as r from "react";
4
- import { g as U, h as q, P as J, i as Q } from "../_chunks/primitives.js";
4
+ import { b as U, c as q, P as J, d as Q } from "../_chunks/primitives.js";
5
5
  import { IconChevronDown as W, IconSearch as Y, IconCheck as Z, IconX as V } from "@tabler/icons-react";
6
- import { c as p } from "../_chunks/utils.js";
7
- import { t as ee, s as se } from "../_chunks/motion2.js";
8
- import { m as te } from "../_chunks/motion.js";
6
+ import { cn as p } from "./lib/utils.js";
7
+ import { tweens as ee, springs as se } from "./lib/motion.js";
8
+ import { m as te } from "../_chunks/framer.js";
9
9
  const P = 2, re = 36, ae = r.forwardRef(
10
10
  ({
11
11
  options: f,
@@ -149,7 +149,7 @@ const P = 2, re = 36, ae = r.forwardRef(
149
149
  onClick: (D) => K(D, t),
150
150
  "aria-label": `Remove ${l.label}`,
151
151
  tabIndex: -1,
152
- children: /* @__PURE__ */ a(V, { className: "h-3 w-3", "aria-hidden": "true" })
152
+ children: /* @__PURE__ */ a(V, { className: "h-ico-sm w-ico-sm", "aria-hidden": "true" })
153
153
  }
154
154
  )
155
155
  ]
@@ -1,10 +1,10 @@
1
1
  import * as a from "react";
2
- import { c as d } from "../_chunks/utils.js";
2
+ import { cn as d } from "./lib/utils.js";
3
3
  const f = {
4
4
  default: "max-w-layout",
5
5
  body: "max-w-layout-body",
6
6
  full: "max-w-full"
7
- }, s = a.forwardRef(
7
+ }, u = a.forwardRef(
8
8
  ({ as: t, maxWidth: o = "default", className: e, children: l, ...m }, n) => {
9
9
  const r = t || "div";
10
10
  return a.createElement(
@@ -18,7 +18,7 @@ const f = {
18
18
  );
19
19
  }
20
20
  );
21
- s.displayName = "Container";
21
+ u.displayName = "Container";
22
22
  export {
23
- s as Container
23
+ u as Container
24
24
  };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsxs as l, jsx as s } from "react/jsx-runtime";
3
3
  import * as n from "react";
4
- import { j as f, k as p, l as x, m as b, n as y, o as C, p as N, q as h, L as g, r as M, G, s as P, t as T, u as L, v as z } from "../_chunks/primitives.js";
4
+ import { e as f, f as p, g as x, h as b, i as y, j as C, k as N, l as h, L as g, m as M, G, n as P, o as T, p as L, q as z } from "../_chunks/primitives.js";
5
5
  import { IconChevronRight as A, IconCheck as q, IconCircle as U } from "@tabler/icons-react";
6
- import { c as d } from "../_chunks/utils.js";
7
- import { t as w, s as v } from "../_chunks/motion2.js";
8
- import { A as R, m as S } from "../_chunks/motion.js";
6
+ import { cn as d } from "./lib/utils.js";
7
+ import { tweens as w, springs as v } from "./lib/motion.js";
8
+ import { A as R, m as S } from "../_chunks/framer.js";
9
9
  const I = n.createContext(!1), k = n.createContext(!1), B = ({
10
10
  onOpenChange: e,
11
11
  ...a
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { jsxs as o, jsx as s } from "react/jsx-runtime";
2
+ import { jsxs as s, jsx as o } from "react/jsx-runtime";
3
3
  import { IconSearch as v, IconColumns3 as w, IconTextResize as D, IconDownload as N } from "@tabler/icons-react";
4
4
  import { DropdownMenu as y, DropdownMenuTrigger as T, DropdownMenuContent as k, DropdownMenuLabel as I, DropdownMenuSeparator as L, DropdownMenuCheckboxItem as j } from "./dropdown-menu.js";
5
- import { c as f } from "../_chunks/utils.js";
5
+ import { cn as f } from "./lib/utils.js";
6
6
  const b = {
7
7
  compact: "Compact",
8
8
  standard: "Standard",
@@ -45,9 +45,9 @@ function R({
45
45
  ...a
46
46
  }) {
47
47
  const i = n.getAllColumns().filter((e) => e.getCanHide() && e.id !== "_select");
48
- return /* @__PURE__ */ o("div", { className: f("flex items-center gap-ds-03 pb-ds-04", t), ...a, children: [
49
- m && /* @__PURE__ */ o("div", { className: "flex flex-1 items-center gap-ds-02", children: [
50
- /* @__PURE__ */ s(
48
+ return /* @__PURE__ */ s("div", { className: f("flex items-center gap-ds-03 pb-ds-04", t), ...a, children: [
49
+ m && /* @__PURE__ */ s("div", { className: "flex flex-1 items-center gap-ds-02", children: [
50
+ /* @__PURE__ */ o(
51
51
  v,
52
52
  {
53
53
  size: 16,
@@ -55,7 +55,7 @@ function R({
55
55
  "aria-hidden": "true"
56
56
  }
57
57
  ),
58
- /* @__PURE__ */ s(
58
+ /* @__PURE__ */ o(
59
59
  "input",
60
60
  {
61
61
  type: "text",
@@ -72,26 +72,26 @@ function R({
72
72
  }
73
73
  )
74
74
  ] }),
75
- /* @__PURE__ */ o("div", { className: "ml-auto flex items-center gap-ds-03", children: [
76
- i.length > 0 && /* @__PURE__ */ o(y, { children: [
77
- /* @__PURE__ */ s(T, { asChild: !0, children: /* @__PURE__ */ o(
75
+ /* @__PURE__ */ s("div", { className: "ml-auto flex items-center gap-ds-03", children: [
76
+ i.length > 0 && /* @__PURE__ */ s(y, { children: [
77
+ /* @__PURE__ */ o(T, { asChild: !0, children: /* @__PURE__ */ s(
78
78
  "button",
79
79
  {
80
80
  type: "button",
81
81
  className: g,
82
82
  "aria-label": "Toggle column visibility",
83
83
  children: [
84
- /* @__PURE__ */ s(w, { size: 16, className: d }),
84
+ /* @__PURE__ */ o(w, { size: 16, className: d }),
85
85
  "Columns"
86
86
  ]
87
87
  }
88
88
  ) }),
89
- /* @__PURE__ */ o(k, { align: "end", className: "w-40", children: [
90
- /* @__PURE__ */ s(I, { children: "Toggle columns" }),
91
- /* @__PURE__ */ s(L, {}),
89
+ /* @__PURE__ */ s(k, { align: "end", className: "w-40", children: [
90
+ /* @__PURE__ */ o(I, { children: "Toggle columns" }),
91
+ /* @__PURE__ */ o(L, {}),
92
92
  i.map((e) => {
93
93
  const h = e.columnDef.header, C = typeof h == "string" ? h : e.id;
94
- return /* @__PURE__ */ s(
94
+ return /* @__PURE__ */ o(
95
95
  j,
96
96
  {
97
97
  checked: e.getIsVisible(),
@@ -103,7 +103,7 @@ function R({
103
103
  })
104
104
  ] })
105
105
  ] }),
106
- /* @__PURE__ */ o(
106
+ /* @__PURE__ */ s(
107
107
  "button",
108
108
  {
109
109
  type: "button",
@@ -112,12 +112,12 @@ function R({
112
112
  "aria-label": `Table density: ${b[l]}. Click to change.`,
113
113
  title: `Density: ${b[l]}`,
114
114
  children: [
115
- /* @__PURE__ */ s(D, { size: 16, className: d }),
115
+ /* @__PURE__ */ o(D, { size: 16, className: d }),
116
116
  b[l]
117
117
  ]
118
118
  }
119
119
  ),
120
- r && /* @__PURE__ */ o(
120
+ r && /* @__PURE__ */ s(
121
121
  "button",
122
122
  {
123
123
  type: "button",
@@ -125,7 +125,7 @@ function R({
125
125
  onClick: () => S(n),
126
126
  "aria-label": "Export table as CSV",
127
127
  children: [
128
- /* @__PURE__ */ s(N, { size: 16, className: d }),
128
+ /* @__PURE__ */ o(N, { size: 16, className: d }),
129
129
  "Export"
130
130
  ]
131
131
  }