@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
@@ -1,18 +1,18 @@
1
1
  "use client";
2
- import { jsxs as s, jsx as e, Fragment as D } from "react/jsx-runtime";
2
+ import { jsxs as s, jsx as e, Fragment as I } from "react/jsx-runtime";
3
3
  import * as w from "react";
4
- import { useColorMode as I } from "../hooks/use-color-mode.js";
5
- import { A as j, a as K, b as F } from "../_chunks/avatar.js";
6
- import { DropdownMenu as U, DropdownMenuTrigger as B, DropdownMenuContent as E, DropdownMenuItem as d, DropdownMenuSeparator as N } from "../ui/dropdown-menu.js";
7
- import { a as t, b as n, c as i } from "../_chunks/tooltip.js";
8
- import { p as R } from "../_chunks/sidebar.js";
4
+ import { useColorMode as j } from "../hooks/use-color-mode.js";
5
+ import { Avatar as A, AvatarImage as K, AvatarFallback as F } from "../ui/avatar.js";
6
+ import { DropdownMenu as U, DropdownMenuTrigger as B, DropdownMenuContent as E, DropdownMenuItem as a, DropdownMenuSeparator as N } from "../ui/dropdown-menu.js";
7
+ import { Tooltip as t, TooltipTrigger as n, TooltipContent as i } from "../ui/tooltip.js";
8
+ import { SidebarTrigger as R } from "../ui/sidebar.js";
9
9
  import { IconSearch as z, IconSparkles as L, IconUser as O, IconSun as P, IconMoon as q, IconLogout as G } from "@tabler/icons-react";
10
- import { c as l } from "../_chunks/utils.js";
10
+ import { cn as l } from "../ui/lib/utils.js";
11
11
  const H = w.forwardRef(
12
12
  ({
13
13
  pageTitle: m = "",
14
- user: a,
15
- onNavigate: c,
14
+ user: c,
15
+ onNavigate: d,
16
16
  onLogout: f,
17
17
  onSearchClick: u,
18
18
  onAiChatClick: p,
@@ -23,7 +23,7 @@ const H = w.forwardRef(
23
23
  ...k
24
24
  }, v) => {
25
25
  var g;
26
- const { colorMode: b, toggleColorMode: M } = I(), S = () => {
26
+ const { colorMode: b, toggleColorMode: M } = j(), S = () => {
27
27
  u ? u() : document.dispatchEvent(
28
28
  new KeyboardEvent("keydown", {
29
29
  key: "k",
@@ -75,11 +75,11 @@ const H = w.forwardRef(
75
75
  ) }),
76
76
  /* @__PURE__ */ e(i, { side: "bottom", align: "center", children: "AI Chat" })
77
77
  ] }),
78
- a && /* @__PURE__ */ s(U, { children: [
78
+ c && /* @__PURE__ */ s(U, { children: [
79
79
  /* @__PURE__ */ s(t, { children: [
80
- /* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e(B, { asChild: !0, children: /* @__PURE__ */ e("button", { type: "button", className: "flex items-center gap-ds-03 outline-none", children: /* @__PURE__ */ s(j, { className: "h-ds-sm-plus w-ds-sm-plus cursor-pointer", children: [
81
- a.image ? /* @__PURE__ */ e(K, { src: a.image, alt: a.name }) : null,
82
- /* @__PURE__ */ e(F, { className: "bg-surface-2 text-surface-fg", children: (g = a.name) == null ? void 0 : g.charAt(0).toUpperCase() })
80
+ /* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e(B, { asChild: !0, children: /* @__PURE__ */ e("button", { type: "button", className: "flex items-center gap-ds-03 outline-none", children: /* @__PURE__ */ s(A, { className: "h-ds-sm-plus w-ds-sm-plus cursor-pointer", children: [
81
+ c.image ? /* @__PURE__ */ e(K, { src: c.image, alt: c.name }) : null,
82
+ /* @__PURE__ */ e(F, { className: "bg-surface-2 text-surface-fg", children: (g = c.name) == null ? void 0 : g.charAt(0).toUpperCase() })
83
83
  ] }) }) }) }),
84
84
  /* @__PURE__ */ e(i, { side: "bottom", align: "center", children: "User Menu" })
85
85
  ] }),
@@ -91,14 +91,14 @@ const H = w.forwardRef(
91
91
  align: "end",
92
92
  children: [
93
93
  /* @__PURE__ */ s("div", { className: "border-b border-surface-border-strong px-ds-05 py-ds-04", children: [
94
- /* @__PURE__ */ e("p", { className: "text-ds-md text-surface-fg", children: a.name }),
95
- a.email && /* @__PURE__ */ e("p", { className: "text-ds-sm text-surface-fg-subtle", children: a.email })
94
+ /* @__PURE__ */ e("p", { className: "text-ds-md text-surface-fg", children: c.name }),
95
+ c.email && /* @__PURE__ */ e("p", { className: "text-ds-sm text-surface-fg-subtle", children: c.email })
96
96
  ] }),
97
97
  /* @__PURE__ */ s(
98
- d,
98
+ a,
99
99
  {
100
100
  className: "flex w-full cursor-pointer items-center gap-ds-03 px-ds-05 py-ds-04 hover:bg-surface-2",
101
- onClick: () => c == null ? void 0 : c("/profile"),
101
+ onClick: () => d == null ? void 0 : d("/profile"),
102
102
  children: [
103
103
  /* @__PURE__ */ e(O, { className: "h-ico-sm w-ico-sm text-surface-fg-muted" }),
104
104
  /* @__PURE__ */ e("span", { className: "text-ds-md text-surface-fg-muted", children: "Profile" })
@@ -106,16 +106,16 @@ const H = w.forwardRef(
106
106
  }
107
107
  ),
108
108
  o == null ? void 0 : o.map((r, T) => {
109
- const A = {
109
+ const D = {
110
110
  error: "text-error-11",
111
111
  success: "text-success-11",
112
112
  warning: "text-warning-11",
113
113
  info: "text-info-11"
114
- }, x = r.color ? A[r.color] ?? "text-surface-fg-muted" : "text-surface-fg-muted";
114
+ }, x = r.color ? D[r.color] ?? "text-surface-fg-muted" : "text-surface-fg-muted";
115
115
  return /* @__PURE__ */ s(w.Fragment, { children: [
116
116
  r.separator && /* @__PURE__ */ e(N, { className: "bg-surface-border" }),
117
117
  /* @__PURE__ */ s(
118
- d,
118
+ a,
119
119
  {
120
120
  className: l(
121
121
  "flex w-full cursor-pointer items-center gap-ds-03 px-ds-05 py-ds-04 hover:bg-surface-2",
@@ -123,7 +123,7 @@ const H = w.forwardRef(
123
123
  ),
124
124
  disabled: r.disabled,
125
125
  onClick: () => {
126
- r.disabled || (r.onClick ? r.onClick() : r.href && (c == null || c(r.href)));
126
+ r.disabled || (r.onClick ? r.onClick() : r.href && (d == null || d(r.href)));
127
127
  },
128
128
  children: [
129
129
  r.icon && /* @__PURE__ */ e("span", { className: l("[&>svg]:h-ico-sm [&>svg]:w-ico-sm", x), children: r.icon }),
@@ -135,7 +135,7 @@ const H = w.forwardRef(
135
135
  ] }, r.label + T);
136
136
  }),
137
137
  /* @__PURE__ */ s(
138
- d,
138
+ a,
139
139
  {
140
140
  className: "flex w-full cursor-pointer items-center gap-ds-03 px-ds-05 py-ds-04 hover:bg-surface-2",
141
141
  onClick: M,
@@ -145,10 +145,10 @@ const H = w.forwardRef(
145
145
  ]
146
146
  }
147
147
  ),
148
- f && /* @__PURE__ */ s(D, { children: [
148
+ f && /* @__PURE__ */ s(I, { children: [
149
149
  /* @__PURE__ */ e(N, { className: "bg-surface-border" }),
150
150
  /* @__PURE__ */ s(
151
- d,
151
+ a,
152
152
  {
153
153
  className: "flex w-full cursor-pointer items-center gap-ds-03 px-ds-05 py-ds-04 hover:bg-surface-2",
154
154
  onClick: f,
@@ -1,25 +1,25 @@
1
1
  "use client";
2
2
  import { jsx as e, jsxs as d } from "react/jsx-runtime";
3
- import * as s from "react";
4
- import { c as m, H as f, T as n, d as c, e as l } from "../_chunks/primitives.js";
3
+ import * as i from "react";
4
+ import { I as m, H as f, T as n, C as c, R as l } from "../_chunks/primitives.js";
5
5
  import { IconChevronDown as p } from "@tabler/icons-react";
6
- import { c as i } from "../_chunks/utils.js";
7
- import { t as u } from "../_chunks/motion2.js";
8
- import { m as N } from "../_chunks/motion.js";
9
- const I = l, w = s.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
6
+ import { cn as s } from "./lib/utils.js";
7
+ import { tweens as u } from "./lib/motion.js";
8
+ import { m as N } from "../_chunks/framer.js";
9
+ const I = l, w = i.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
10
10
  m,
11
11
  {
12
12
  ref: t,
13
- className: i("border-b border-surface-border", o),
13
+ className: s("border-b border-surface-border", o),
14
14
  ...a
15
15
  }
16
16
  ));
17
17
  w.displayName = "AccordionItem";
18
- const x = s.forwardRef(({ className: o, children: a, ...t }, r) => /* @__PURE__ */ e(f, { className: "flex", children: /* @__PURE__ */ d(
18
+ const x = i.forwardRef(({ className: o, children: a, ...t }, r) => /* @__PURE__ */ e(f, { className: "flex", children: /* @__PURE__ */ d(
19
19
  n,
20
20
  {
21
21
  ref: r,
22
- className: i(
22
+ className: s(
23
23
  "group flex flex-1 items-center justify-between py-ds-05 text-left text-ds-md font-medium hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
24
24
  o
25
25
  ),
@@ -31,7 +31,7 @@ const x = s.forwardRef(({ className: o, children: a, ...t }, r) => /* @__PURE__
31
31
  }
32
32
  ) }));
33
33
  x.displayName = n.displayName;
34
- const b = s.forwardRef(({ className: o, children: a, ...t }, r) => /* @__PURE__ */ e(
34
+ const b = i.forwardRef(({ className: o, children: a, ...t }, r) => /* @__PURE__ */ e(
35
35
  c,
36
36
  {
37
37
  ref: r,
@@ -43,7 +43,7 @@ const b = s.forwardRef(({ className: o, children: a, ...t }, r) => /* @__PURE__
43
43
  initial: !1,
44
44
  animate: { opacity: 1 },
45
45
  transition: u.fade,
46
- children: /* @__PURE__ */ e("div", { className: i("pb-ds-05 pt-0", o), children: a })
46
+ children: /* @__PURE__ */ e("div", { className: s("pb-ds-05 pt-0", o), children: a })
47
47
  }
48
48
  )
49
49
  }
@@ -1,26 +1,26 @@
1
1
  "use client";
2
- import { jsx as a, jsxs as h } from "react/jsx-runtime";
2
+ import { jsx as s, jsxs as h } from "react/jsx-runtime";
3
3
  import * as o from "react";
4
- import { O as p, B as R, D as u, E as g, J as x, K as b, M as y, N as C, Q as j } from "../_chunks/primitives.js";
5
- import { c as i } from "../_chunks/utils.js";
6
- import { t as f, s as M } from "../_chunks/motion2.js";
7
- import { A as T, m } from "../_chunks/motion.js";
8
- const v = o.createContext({ open: !1 }), P = () => o.useContext(v), z = ({
4
+ import { O as p, w as R, x as u, y as g, D as x, A as y, z as b, B as C, E as j } from "../_chunks/primitives.js";
5
+ import { cn as i } from "./lib/utils.js";
6
+ import { tweens as f, springs as M } from "./lib/motion.js";
7
+ import { A as T, m } from "../_chunks/framer.js";
8
+ const v = o.createContext({ open: !1 }), z = () => o.useContext(v), P = ({
9
9
  open: t,
10
- defaultOpen: s,
10
+ defaultOpen: a,
11
11
  onOpenChange: e,
12
12
  ...r
13
13
  }) => {
14
- const [l, A] = o.useState(s ?? !1), n = t !== void 0, c = n ? t : l, D = o.useCallback(
15
- (d) => {
16
- n || A(d), e == null || e(d);
14
+ const [l, A] = o.useState(a ?? !1), n = t !== void 0, d = n ? t : l, D = o.useCallback(
15
+ (c) => {
16
+ n || A(c), e == null || e(c);
17
17
  },
18
18
  [n, e]
19
- ), w = o.useMemo(() => ({ open: c }), [c]);
20
- return /* @__PURE__ */ a(v.Provider, { value: w, children: /* @__PURE__ */ a(C, { open: c, onOpenChange: D, ...r }) });
19
+ ), w = o.useMemo(() => ({ open: d }), [d]);
20
+ return /* @__PURE__ */ s(v.Provider, { value: w, children: /* @__PURE__ */ s(C, { open: d, onOpenChange: D, ...r }) });
21
21
  };
22
- z.displayName = "AlertDialog";
23
- const G = j, F = R, N = o.forwardRef(({ className: t, ...s }, e) => /* @__PURE__ */ a(
22
+ P.displayName = "AlertDialog";
23
+ const L = j, F = R, N = o.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
24
24
  p,
25
25
  {
26
26
  ref: e,
@@ -29,14 +29,14 @@ const G = j, F = R, N = o.forwardRef(({ className: t, ...s }, e) => /* @__PURE__
29
29
  "fixed inset-0 z-modal bg-overlay",
30
30
  t
31
31
  ),
32
- ...s
32
+ ...a
33
33
  }
34
34
  ));
35
35
  N.displayName = p.displayName;
36
- const H = o.forwardRef(({ className: t, children: s, ...e }, r) => {
37
- const { open: l } = P();
38
- return /* @__PURE__ */ a(T, { children: l && /* @__PURE__ */ h(F, { forceMount: !0, children: [
39
- /* @__PURE__ */ a(N, { asChild: !0, children: /* @__PURE__ */ a(
36
+ const H = o.forwardRef(({ className: t, children: a, ...e }, r) => {
37
+ const { open: l } = z();
38
+ return /* @__PURE__ */ s(T, { children: l && /* @__PURE__ */ h(F, { forceMount: !0, children: [
39
+ /* @__PURE__ */ s(N, { asChild: !0, children: /* @__PURE__ */ s(
40
40
  m.div,
41
41
  {
42
42
  initial: { opacity: 0 },
@@ -45,14 +45,14 @@ const H = o.forwardRef(({ className: t, children: s, ...e }, r) => {
45
45
  transition: f.fade
46
46
  }
47
47
  ) }),
48
- /* @__PURE__ */ a(
48
+ /* @__PURE__ */ s(
49
49
  u,
50
50
  {
51
51
  ref: r,
52
52
  forceMount: !0,
53
53
  asChild: !0,
54
54
  ...e,
55
- children: /* @__PURE__ */ a(
55
+ children: /* @__PURE__ */ s(
56
56
  m.div,
57
57
  {
58
58
  initial: { opacity: 0, scale: 0.95 },
@@ -63,7 +63,7 @@ const H = o.forwardRef(({ className: t, children: s, ...e }, r) => {
63
63
  "fixed left-[50%] top-[50%] z-modal grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-ds-05 border border-surface-border-strong bg-surface-1 p-ds-06 shadow-04 rounded-ds-xl",
64
64
  t
65
65
  ),
66
- children: s
66
+ children: a
67
67
  }
68
68
  )
69
69
  }
@@ -72,7 +72,7 @@ const H = o.forwardRef(({ className: t, children: s, ...e }, r) => {
72
72
  });
73
73
  H.displayName = u.displayName;
74
74
  const O = o.forwardRef(
75
- ({ className: t, ...s }, e) => /* @__PURE__ */ a(
75
+ ({ className: t, ...a }, e) => /* @__PURE__ */ s(
76
76
  "div",
77
77
  {
78
78
  ref: e,
@@ -80,13 +80,13 @@ const O = o.forwardRef(
80
80
  "flex flex-col space-y-ds-02b text-center sm:text-left",
81
81
  t
82
82
  ),
83
- ...s
83
+ ...a
84
84
  }
85
85
  )
86
86
  );
87
87
  O.displayName = "AlertDialogHeader";
88
88
  const k = o.forwardRef(
89
- ({ className: t, ...s }, e) => /* @__PURE__ */ a(
89
+ ({ className: t, ...a }, e) => /* @__PURE__ */ s(
90
90
  "div",
91
91
  {
92
92
  ref: e,
@@ -94,12 +94,12 @@ const k = o.forwardRef(
94
94
  "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-ds-03",
95
95
  t
96
96
  ),
97
- ...s
97
+ ...a
98
98
  }
99
99
  )
100
100
  );
101
101
  k.displayName = "AlertDialogFooter";
102
- const B = o.forwardRef(({ className: t, ...s }, e) => /* @__PURE__ */ a(
102
+ const B = o.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
103
103
  g,
104
104
  {
105
105
  ref: e,
@@ -107,47 +107,47 @@ const B = o.forwardRef(({ className: t, ...s }, e) => /* @__PURE__ */ a(
107
107
  "text-ds-lg font-semibold",
108
108
  t
109
109
  ),
110
- ...s
110
+ ...a
111
111
  }
112
112
  ));
113
113
  B.displayName = g.displayName;
114
- const E = o.forwardRef(({ className: t, ...s }, e) => /* @__PURE__ */ a(
114
+ const E = o.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
115
115
  x,
116
116
  {
117
117
  ref: e,
118
118
  className: i("text-ds-md text-surface-fg-muted", t),
119
- ...s
119
+ ...a
120
120
  }
121
121
  ));
122
122
  E.displayName = x.displayName;
123
- const I = o.forwardRef(({ className: t, ...s }, e) => /* @__PURE__ */ a(
124
- b,
123
+ const I = o.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
124
+ y,
125
125
  {
126
126
  ref: e,
127
127
  className: i(
128
128
  "inline-flex h-ds-md items-center justify-center rounded-ds-md px-ds-05 text-ds-md font-semibold transition-colors bg-accent-9 text-accent-fg hover:bg-accent-10 active:bg-accent-10 shadow-01 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",
129
129
  t
130
130
  ),
131
- ...s
131
+ ...a
132
132
  }
133
133
  ));
134
- I.displayName = b.displayName;
135
- const J = o.forwardRef(({ className: t, ...s }, e) => /* @__PURE__ */ a(
136
- y,
134
+ I.displayName = y.displayName;
135
+ const S = o.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
136
+ b,
137
137
  {
138
138
  ref: e,
139
139
  className: i(
140
140
  "inline-flex h-ds-md items-center justify-center rounded-ds-md px-ds-05 text-ds-md font-semibold transition-colors bg-transparent text-surface-fg-muted border border-surface-border-strong hover:bg-surface-2 hover:text-surface-fg 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",
141
141
  t
142
142
  ),
143
- ...s
143
+ ...a
144
144
  }
145
145
  ));
146
- J.displayName = y.displayName;
146
+ S.displayName = b.displayName;
147
147
  export {
148
- z as AlertDialog,
148
+ P as AlertDialog,
149
149
  I as AlertDialogAction,
150
- J as AlertDialogCancel,
150
+ S as AlertDialogCancel,
151
151
  H as AlertDialogContent,
152
152
  E as AlertDialogDescription,
153
153
  k as AlertDialogFooter,
@@ -155,5 +155,5 @@ export {
155
155
  N as AlertDialogOverlay,
156
156
  F as AlertDialogPortal,
157
157
  B as AlertDialogTitle,
158
- G as AlertDialogTrigger
158
+ L as AlertDialogTrigger
159
159
  };
package/dist/ui/alert.js CHANGED
@@ -3,9 +3,9 @@ import { jsx as e, jsxs as n } from "react/jsx-runtime";
3
3
  import { IconInfoCircle as o, IconAlertCircle as x, IconAlertTriangle as v, IconCircleCheck as p, IconX as N } from "@tabler/icons-react";
4
4
  import * as r from "react";
5
5
  import { ag as w } from "../_chunks/vendor-utils.js";
6
- import { c as h } from "../_chunks/utils.js";
7
- import { s as y, m as I } from "../_chunks/motion2.js";
8
- import { A as C, m as A } from "../_chunks/motion.js";
6
+ import { cn as h } from "./lib/utils.js";
7
+ import { springs as y, motionProps as I } from "./lib/motion.js";
8
+ import { A as C, m as A } from "../_chunks/framer.js";
9
9
  const k = w(
10
10
  "relative flex gap-ds-04 rounded-ds-lg border p-ds-05",
11
11
  {
@@ -52,28 +52,28 @@ const k = w(
52
52
  error: x,
53
53
  neutral: o
54
54
  }, j = r.forwardRef(
55
- ({ className: c, variant: i = "subtle", color: s = "info", title: a, onDismiss: t, children: l, ...f }, m) => {
56
- const u = V[s ?? "info"], [d, g] = r.useState(!0), b = r.useCallback(() => {
55
+ ({ className: c, variant: i = "subtle", color: t = "info", title: a, onDismiss: s, children: l, ...f }, u) => {
56
+ const m = V[t ?? "info"], [d, g] = r.useState(!0), b = r.useCallback(() => {
57
57
  g(!1);
58
58
  }, []);
59
- return /* @__PURE__ */ e(C, { onExitComplete: t, children: d && /* @__PURE__ */ n(
59
+ return /* @__PURE__ */ e(C, { onExitComplete: s, children: d && /* @__PURE__ */ n(
60
60
  A.div,
61
61
  {
62
- ref: m,
62
+ ref: u,
63
63
  initial: { opacity: 1, y: 0 },
64
64
  animate: { opacity: 1, y: 0 },
65
65
  exit: { opacity: 0, y: -8 },
66
66
  transition: y.snappy,
67
- className: h(k({ variant: i, color: s }), c),
67
+ className: h(k({ variant: i, color: t }), c),
68
68
  role: "alert",
69
69
  ...I(f),
70
70
  children: [
71
- /* @__PURE__ */ e(u, { className: "mt-ds-01 h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
71
+ /* @__PURE__ */ e(m, { className: "mt-ds-01 h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
72
72
  /* @__PURE__ */ n("div", { className: "flex-1 min-w-0", children: [
73
73
  a && /* @__PURE__ */ e("p", { className: "text-ds-md font-semibold mb-ds-01", children: a }),
74
74
  /* @__PURE__ */ e("div", { className: "text-ds-md opacity-[0.9]", children: l })
75
75
  ] }),
76
- t && /* @__PURE__ */ e(
76
+ s && /* @__PURE__ */ e(
77
77
  "button",
78
78
  {
79
79
  type: "button",
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as r } from "react/jsx-runtime";
3
3
  import * as m from "react";
4
- import { f as s } from "../_chunks/primitives.js";
5
- import { c as p } from "../_chunks/utils.js";
6
- const c = m.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ r(
4
+ import { a as s } from "../_chunks/primitives.js";
5
+ import { cn as p } from "./lib/utils.js";
6
+ const e = m.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ r(
7
7
  s,
8
8
  {
9
9
  ref: a,
@@ -11,7 +11,7 @@ const c = m.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ r(
11
11
  ...t
12
12
  }
13
13
  ));
14
- c.displayName = "AspectRatio";
14
+ e.displayName = "AspectRatio";
15
15
  export {
16
- c as AspectRatio
16
+ e as AspectRatio
17
17
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsxs as T, jsx as f } from "react/jsx-runtime";
3
3
  import * as t from "react";
4
- import { c as b } from "../_chunks/utils.js";
5
- import { t as j, s as L } from "../_chunks/motion2.js";
6
- import { A as P, m as g } from "../_chunks/motion.js";
4
+ import { cn as b } from "./lib/utils.js";
5
+ import { tweens as j, springs as L } from "./lib/motion.js";
6
+ import { A as P, m as g } from "../_chunks/framer.js";
7
7
  const q = {
8
8
  hidden: {},
9
9
  visible: { transition: { staggerChildren: 0.03 } }
@@ -22,7 +22,7 @@ const q = {
22
22
  id: E,
23
23
  ...N
24
24
  }, c) => {
25
- const $ = t.useId(), k = E || $, v = `${k}-listbox`, D = `${k}-option`, [m, y] = t.useState((s == null ? void 0 : s.label) ?? ""), [l, i] = t.useState(!1), [r, a] = t.useState(-1), M = t.useRef(null), S = t.useRef(null), x = t.useRef(), C = t.useCallback(
25
+ const $ = t.useId(), k = E || $, v = `${k}-listbox`, D = `${k}-option`, [m, y] = t.useState((s == null ? void 0 : s.label) ?? ""), [l, i] = t.useState(!1), [r, n] = t.useState(-1), M = t.useRef(null), S = t.useRef(null), x = t.useRef(), C = t.useCallback(
26
26
  (e) => {
27
27
  M.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
28
28
  },
@@ -33,12 +33,12 @@ const q = {
33
33
  }, [s]), t.useEffect(() => () => {
34
34
  x.current && clearTimeout(x.current);
35
35
  }, []);
36
- const n = t.useMemo(
36
+ const a = t.useMemo(
37
37
  () => m ? h.filter((e) => e.label.toLowerCase().includes(m.toLowerCase())) : h,
38
38
  [h, m]
39
39
  ), p = t.useCallback(
40
40
  (e) => {
41
- y(e.label), i(!1), a(-1), u == null || u(e);
41
+ y(e.label), i(!1), n(-1), u == null || u(e);
42
42
  },
43
43
  [u]
44
44
  ), K = t.useCallback(
@@ -49,20 +49,20 @@ const q = {
49
49
  }
50
50
  switch (e.key) {
51
51
  case "ArrowDown":
52
- e.preventDefault(), a((o) => Math.min(o + 1, n.length - 1));
52
+ e.preventDefault(), n((o) => Math.min(o + 1, a.length - 1));
53
53
  break;
54
54
  case "ArrowUp":
55
- e.preventDefault(), a((o) => Math.max(o - 1, 0));
55
+ e.preventDefault(), n((o) => Math.max(o - 1, 0));
56
56
  break;
57
57
  case "Enter":
58
- e.preventDefault(), r >= 0 && n[r] && p(n[r]);
58
+ e.preventDefault(), r >= 0 && a[r] && p(a[r]);
59
59
  break;
60
60
  case "Escape":
61
- i(!1), a(-1);
61
+ i(!1), n(-1);
62
62
  break;
63
63
  }
64
64
  },
65
- [l, n, r, p]
65
+ [l, a, r, p]
66
66
  ), O = r >= 0 ? `${D}-${r}` : void 0;
67
67
  return /* @__PURE__ */ T("div", { className: b("relative", A), ...N, children: [
68
68
  /* @__PURE__ */ f(
@@ -85,7 +85,7 @@ const q = {
85
85
  w && "opacity-action-disabled cursor-not-allowed"
86
86
  ),
87
87
  onChange: (e) => {
88
- y(e.target.value), i(!0), a(-1);
88
+ y(e.target.value), i(!0), n(-1);
89
89
  },
90
90
  onFocus: () => i(!0),
91
91
  onBlur: () => {
@@ -108,7 +108,7 @@ const q = {
108
108
  "absolute z-popover mt-ds-02 w-full overflow-auto rounded-ds-md border border-surface-border-strong bg-surface-1 shadow-02",
109
109
  "max-h-60"
110
110
  ),
111
- children: n.length === 0 ? /* @__PURE__ */ f(
111
+ children: a.length === 0 ? /* @__PURE__ */ f(
112
112
  g.li,
113
113
  {
114
114
  initial: { opacity: 0 },
@@ -117,7 +117,7 @@ const q = {
117
117
  className: "px-ds-04 py-ds-03 text-ds-md text-surface-fg-muted",
118
118
  children: R
119
119
  }
120
- ) : n.map((e, o) => /* @__PURE__ */ f(
120
+ ) : a.map((e, o) => /* @__PURE__ */ f(
121
121
  g.li,
122
122
  {
123
123
  id: `${D}-${o}`,
@@ -134,7 +134,7 @@ const q = {
134
134
  onKeyDown: (d) => {
135
135
  (d.key === "Enter" || d.key === " ") && (d.preventDefault(), p(e));
136
136
  },
137
- onMouseEnter: () => a(o),
137
+ onMouseEnter: () => n(o),
138
138
  children: e.label
139
139
  },
140
140
  e.value
package/dist/ui/avatar.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsxs as p, jsx as l } from "react/jsx-runtime";
3
3
  import * as o from "react";
4
- import { R as i, I as n, F as t } from "../_chunks/primitives.js";
4
+ import { F as i, J as n, K as t } from "../_chunks/primitives.js";
5
5
  import { ag as u } from "../_chunks/vendor-utils.js";
6
- import { t as w } from "../_chunks/motion2.js";
7
- import { c as r } from "../_chunks/utils.js";
8
- import { m as h } from "../_chunks/motion.js";
6
+ import { tweens as w } from "./lib/motion.js";
7
+ import { cn as r } from "./lib/utils.js";
8
+ import { m as h } from "../_chunks/framer.js";
9
9
  const x = u(
10
10
  "relative flex shrink-0 overflow-hidden",
11
11
  {
package/dist/ui/badge.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { jsxs as r, jsx as a } from "react/jsx-runtime";
3
- import { IconX as g } from "@tabler/icons-react";
2
+ import { jsxs as t, jsx as a } from "react/jsx-runtime";
3
+ import { IconX as d } from "@tabler/icons-react";
4
4
  import * as b from "react";
5
5
  import { ag as m } from "../_chunks/vendor-utils.js";
6
- import { c as u } from "../_chunks/utils.js";
7
- import { m as f } from "../_chunks/motion.js";
6
+ import { cn as u } from "./lib/utils.js";
7
+ import { m as f } from "../_chunks/framer.js";
8
8
  const x = m(
9
9
  "inline-flex items-center gap-ds-02b font-sans font-medium rounded-ds-full border",
10
10
  {
@@ -100,8 +100,8 @@ const x = m(
100
100
  }
101
101
  }
102
102
  ), v = b.forwardRef(
103
- ({ className: t, variant: o, color: s, size: n, dot: c, onDismiss: e, children: l, ...i }, d) => /* @__PURE__ */ r("span", { ref: d, className: u(x({ variant: o, color: s, size: n }), t), ...i, children: [
104
- c && /* @__PURE__ */ r("span", { className: "relative inline-flex h-ds-02b w-ds-02b shrink-0", "aria-hidden": "true", children: [
103
+ ({ className: o, variant: s, color: n, size: c, dot: l, onDismiss: r, children: e, ...i }, g) => /* @__PURE__ */ t("span", { ref: g, className: u(x({ variant: s, color: n, size: c }), o), ...i, children: [
104
+ l && /* @__PURE__ */ t("span", { className: "relative inline-flex h-ds-02b w-ds-02b shrink-0", "aria-hidden": "true", children: [
105
105
  /* @__PURE__ */ a(
106
106
  f.span,
107
107
  {
@@ -112,15 +112,15 @@ const x = m(
112
112
  ),
113
113
  /* @__PURE__ */ a("span", { className: "relative h-ds-02b w-ds-02b rounded-ds-full bg-current" })
114
114
  ] }),
115
- l,
116
- e && /* @__PURE__ */ a(
115
+ e,
116
+ r && /* @__PURE__ */ a(
117
117
  "button",
118
118
  {
119
119
  type: "button",
120
- onClick: e,
120
+ onClick: r,
121
121
  className: "ml-ds-01 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-full text-surface-fg-subtle hover:rotate-90 transition-[color,transform] duration-fast-02 hover:text-surface-fg-muted hover:bg-surface-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
122
- "aria-label": "Remove",
123
- children: /* @__PURE__ */ a(g, { className: "h-ico-sm w-ico-sm" })
122
+ "aria-label": `Remove ${typeof e == "string" ? e : ""}`.trim() || "Remove",
123
+ children: /* @__PURE__ */ a(d, { className: "h-ico-sm w-ico-sm" })
124
124
  }
125
125
  )
126
126
  ] })
package/dist/ui/banner.js CHANGED
@@ -3,9 +3,9 @@ import { jsx as e, jsxs as b } from "react/jsx-runtime";
3
3
  import { IconInfoCircle as o, IconAlertCircle as g, IconAlertTriangle as p, IconCircleCheck as h, IconX as x } from "@tabler/icons-react";
4
4
  import * as r from "react";
5
5
  import { ag as v } from "../_chunks/vendor-utils.js";
6
- import { c as w } from "../_chunks/utils.js";
7
- import { s as N, m as I } from "../_chunks/motion2.js";
8
- import { A as C, m as y } from "../_chunks/motion.js";
6
+ import { cn as w } from "./lib/utils.js";
7
+ import { springs as N, motionProps as I } from "./lib/motion.js";
8
+ import { A as C, m as y } from "../_chunks/framer.js";
9
9
  const k = v(
10
10
  "flex items-center gap-ds-04 px-ds-06 py-ds-04 text-ds-md font-medium border-b",
11
11
  {