@devalok/shilp-sutra 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/dist/composed/avatar-group.d.ts +1 -0
  2. package/dist/composed/avatar-group.d.ts.map +1 -1
  3. package/dist/composed/avatar-group.js +1 -0
  4. package/dist/composed/command-palette.d.ts +1 -0
  5. package/dist/composed/command-palette.js +4 -3
  6. package/dist/composed/date-picker/calendar-grid.d.ts +1 -0
  7. package/dist/composed/date-picker/calendar-grid.js +1 -0
  8. package/dist/composed/date-picker/date-picker.d.ts +1 -0
  9. package/dist/composed/date-picker/date-picker.js +1 -0
  10. package/dist/composed/date-picker/date-range-picker.d.ts +1 -0
  11. package/dist/composed/date-picker/date-range-picker.js +1 -0
  12. package/dist/composed/date-picker/date-time-picker.d.ts +1 -0
  13. package/dist/composed/date-picker/date-time-picker.js +1 -0
  14. package/dist/composed/date-picker/index.d.ts +1 -0
  15. package/dist/composed/date-picker/month-picker.d.ts +1 -0
  16. package/dist/composed/date-picker/month-picker.js +1 -0
  17. package/dist/composed/date-picker/presets.d.ts +1 -0
  18. package/dist/composed/date-picker/presets.js +1 -0
  19. package/dist/composed/date-picker/time-picker.d.ts +1 -0
  20. package/dist/composed/date-picker/time-picker.js +2 -1
  21. package/dist/composed/date-picker/use-calendar.d.ts +1 -0
  22. package/dist/composed/date-picker/use-calendar.d.ts.map +1 -1
  23. package/dist/composed/date-picker/use-calendar.js +1 -0
  24. package/dist/composed/date-picker/year-picker.d.ts +1 -0
  25. package/dist/composed/date-picker/year-picker.js +1 -0
  26. package/dist/composed/empty-state.js +1 -1
  27. package/dist/composed/error-boundary.d.ts +1 -0
  28. package/dist/composed/error-boundary.js +2 -1
  29. package/dist/composed/global-loading.d.ts +1 -0
  30. package/dist/composed/global-loading.js +1 -0
  31. package/dist/composed/index.d.ts +15 -0
  32. package/dist/composed/index.d.ts.map +1 -1
  33. package/dist/composed/index.js +1 -0
  34. package/dist/composed/lib/string-utils.d.ts +1 -0
  35. package/dist/composed/lib/string-utils.d.ts.map +1 -1
  36. package/dist/composed/lib/string-utils.js +7 -4
  37. package/dist/composed/loading-skeleton.js +32 -32
  38. package/dist/composed/member-picker.d.ts +1 -0
  39. package/dist/composed/member-picker.js +1 -0
  40. package/dist/composed/page-skeletons.js +38 -38
  41. package/dist/composed/rich-text-editor.d.ts +1 -0
  42. package/dist/composed/rich-text-editor.d.ts.map +1 -1
  43. package/dist/composed/rich-text-editor.js +47 -44
  44. package/dist/composed/status-badge.js +6 -6
  45. package/dist/hooks/index.d.ts +1 -0
  46. package/dist/hooks/index.js +10 -0
  47. package/dist/hooks/use-color-mode.d.ts +1 -0
  48. package/dist/hooks/use-color-mode.d.ts.map +1 -1
  49. package/dist/hooks/use-color-mode.js +9 -8
  50. package/dist/hooks/use-mobile.d.ts +1 -0
  51. package/dist/hooks/use-mobile.js +1 -0
  52. package/dist/hooks/use-toast.d.ts +1 -0
  53. package/dist/hooks/use-toast.d.ts.map +1 -1
  54. package/dist/hooks/use-toast.js +3 -2
  55. package/dist/primitives/react-accordion.d.ts +114 -0
  56. package/dist/primitives/react-alert-dialog.d.ts +51 -0
  57. package/dist/primitives/react-aspect-ratio.d.ts +11 -0
  58. package/dist/primitives/react-avatar.d.ts +24 -0
  59. package/dist/primitives/react-checkbox.d.ts +50 -0
  60. package/dist/primitives/react-collapsible.d.ts +33 -0
  61. package/dist/primitives/react-context-menu.d.ts +96 -0
  62. package/dist/primitives/react-dialog.d.ts +103 -0
  63. package/dist/primitives/react-dropdown-menu.d.ts +97 -0
  64. package/dist/primitives/react-hover-card.d.ts +79 -0
  65. package/dist/primitives/react-label.d.ts +10 -0
  66. package/dist/primitives/react-menu.d.ts +169 -0
  67. package/dist/primitives/react-menubar.d.ts +115 -0
  68. package/dist/primitives/react-navigation-menu.d.ts +126 -0
  69. package/dist/primitives/react-popover.d.ts +85 -0
  70. package/dist/primitives/react-progress.d.ts +19 -0
  71. package/dist/primitives/react-radio-group.d.ts +58 -0
  72. package/dist/primitives/react-roving-focus.d.ts +49 -0
  73. package/dist/primitives/react-select.d.ts +137 -0
  74. package/dist/primitives/react-separator.d.ts +21 -0
  75. package/dist/primitives/react-slider.d.ts +75 -0
  76. package/dist/primitives/react-switch.d.ts +21 -0
  77. package/dist/primitives/react-tabs.d.ts +56 -0
  78. package/dist/primitives/react-toast.d.ts +120 -0
  79. package/dist/primitives/react-toggle-group.d.ts +75 -0
  80. package/dist/primitives/react-toggle.d.ts +24 -0
  81. package/dist/primitives/react-tooltip.d.ts +101 -0
  82. package/dist/primitives/react-visually-hidden.d.ts +22 -0
  83. package/dist/shell/app-command-palette.d.ts +3 -3
  84. package/dist/shell/app-command-palette.d.ts.map +1 -1
  85. package/dist/shell/app-command-palette.js +2 -1
  86. package/dist/shell/bottom-navbar.d.ts +1 -0
  87. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  88. package/dist/shell/bottom-navbar.js +40 -37
  89. package/dist/shell/index.d.ts +14 -2
  90. package/dist/shell/index.d.ts.map +1 -1
  91. package/dist/shell/index.js +16 -12
  92. package/dist/shell/link-context.d.ts +12 -0
  93. package/dist/shell/link-context.d.ts.map +1 -0
  94. package/dist/shell/link-context.js +19 -0
  95. package/dist/shell/notification-center.d.ts +1 -0
  96. package/dist/shell/notification-center.d.ts.map +1 -1
  97. package/dist/shell/notification-center.js +21 -19
  98. package/dist/shell/notification-preferences.d.ts +3 -3
  99. package/dist/shell/notification-preferences.d.ts.map +1 -1
  100. package/dist/shell/notification-preferences.js +14 -13
  101. package/dist/shell/sidebar.d.ts +1 -0
  102. package/dist/shell/sidebar.d.ts.map +1 -1
  103. package/dist/shell/sidebar.js +32 -30
  104. package/dist/shell/top-bar.d.ts +1 -0
  105. package/dist/shell/top-bar.d.ts.map +1 -1
  106. package/dist/shell/top-bar.js +35 -30
  107. package/dist/tailwind/preset.d.ts.map +1 -1
  108. package/dist/tailwind/preset.js +32 -2
  109. package/dist/ui/accordion.d.ts +2 -1
  110. package/dist/ui/accordion.js +1 -0
  111. package/dist/ui/alert-dialog.d.ts +2 -1
  112. package/dist/ui/alert-dialog.js +1 -0
  113. package/dist/ui/alert.d.ts +1 -0
  114. package/dist/ui/alert.d.ts.map +1 -1
  115. package/dist/ui/alert.js +2 -1
  116. package/dist/ui/aspect-ratio.d.ts +2 -1
  117. package/dist/ui/aspect-ratio.js +1 -0
  118. package/dist/ui/autocomplete.d.ts +1 -0
  119. package/dist/ui/autocomplete.js +35 -34
  120. package/dist/ui/avatar.d.ts +2 -1
  121. package/dist/ui/avatar.js +13 -12
  122. package/dist/ui/badge.d.ts +1 -0
  123. package/dist/ui/badge.d.ts.map +1 -1
  124. package/dist/ui/badge.js +4 -3
  125. package/dist/ui/banner.d.ts +1 -0
  126. package/dist/ui/banner.d.ts.map +1 -1
  127. package/dist/ui/banner.js +1 -0
  128. package/dist/ui/breadcrumb.d.ts +1 -0
  129. package/dist/ui/breadcrumb.js +1 -0
  130. package/dist/ui/button-group.d.ts +1 -0
  131. package/dist/ui/button-group.js +1 -0
  132. package/dist/ui/button.d.ts +1 -0
  133. package/dist/ui/button.js +2 -1
  134. package/dist/ui/card.d.ts +1 -0
  135. package/dist/ui/card.d.ts.map +1 -1
  136. package/dist/ui/card.js +2 -1
  137. package/dist/ui/charts/_internal/animation.d.ts +1 -0
  138. package/dist/ui/charts/_internal/animation.d.ts.map +1 -1
  139. package/dist/ui/charts/_internal/animation.js +1 -0
  140. package/dist/ui/charts/_internal/axes.d.ts +1 -0
  141. package/dist/ui/charts/_internal/axes.d.ts.map +1 -1
  142. package/dist/ui/charts/_internal/axes.js +1 -0
  143. package/dist/ui/charts/_internal/colors.d.ts +1 -0
  144. package/dist/ui/charts/_internal/colors.js +1 -0
  145. package/dist/ui/charts/_internal/grid-lines.d.ts +1 -0
  146. package/dist/ui/charts/_internal/grid-lines.js +1 -0
  147. package/dist/ui/charts/_internal/legend.d.ts +1 -0
  148. package/dist/ui/charts/_internal/legend.js +1 -0
  149. package/dist/ui/charts/_internal/scales.d.ts +1 -0
  150. package/dist/ui/charts/_internal/tooltip.d.ts +1 -0
  151. package/dist/ui/charts/_internal/tooltip.d.ts.map +1 -1
  152. package/dist/ui/charts/_internal/tooltip.js +1 -0
  153. package/dist/ui/charts/_internal/types.d.ts +1 -0
  154. package/dist/ui/charts/_internal/types.js +1 -0
  155. package/dist/ui/charts/area-chart.d.ts +1 -0
  156. package/dist/ui/charts/area-chart.js +1 -0
  157. package/dist/ui/charts/bar-chart.d.ts +1 -0
  158. package/dist/ui/charts/bar-chart.js +2 -1
  159. package/dist/ui/charts/chart-container.d.ts +1 -0
  160. package/dist/ui/charts/chart-container.js +12 -11
  161. package/dist/ui/charts/gauge-chart.d.ts +1 -0
  162. package/dist/ui/charts/gauge-chart.js +1 -0
  163. package/dist/ui/charts/index.d.ts +1 -0
  164. package/dist/ui/charts/line-chart.d.ts +1 -0
  165. package/dist/ui/charts/line-chart.js +2 -1
  166. package/dist/ui/charts/pie-chart.d.ts +1 -0
  167. package/dist/ui/charts/pie-chart.js +1 -0
  168. package/dist/ui/charts/radar-chart.d.ts +1 -0
  169. package/dist/ui/charts/radar-chart.js +21 -20
  170. package/dist/ui/charts/sparkline.d.ts +1 -0
  171. package/dist/ui/charts/sparkline.js +1 -0
  172. package/dist/ui/checkbox.d.ts +2 -1
  173. package/dist/ui/checkbox.js +1 -0
  174. package/dist/ui/chip.d.ts +1 -0
  175. package/dist/ui/chip.d.ts.map +1 -1
  176. package/dist/ui/chip.js +35 -36
  177. package/dist/ui/code.js +13 -13
  178. package/dist/ui/collapsible.d.ts +2 -1
  179. package/dist/ui/collapsible.js +1 -0
  180. package/dist/ui/combobox.d.ts +1 -0
  181. package/dist/ui/combobox.js +2 -1
  182. package/dist/ui/context-menu.d.ts +2 -1
  183. package/dist/ui/context-menu.js +2 -1
  184. package/dist/ui/data-table-toolbar.d.ts +1 -0
  185. package/dist/ui/data-table-toolbar.js +1 -0
  186. package/dist/ui/data-table.d.ts +1 -0
  187. package/dist/ui/data-table.d.ts.map +1 -1
  188. package/dist/ui/data-table.js +79 -78
  189. package/dist/ui/dialog.d.ts +2 -1
  190. package/dist/ui/dialog.js +1 -0
  191. package/dist/ui/dropdown-menu.d.ts +2 -1
  192. package/dist/ui/dropdown-menu.js +23 -22
  193. package/dist/ui/file-upload.d.ts +1 -0
  194. package/dist/ui/file-upload.js +60 -59
  195. package/dist/ui/form.d.ts +1 -0
  196. package/dist/ui/form.js +1 -0
  197. package/dist/ui/hover-card.d.ts +2 -1
  198. package/dist/ui/hover-card.js +1 -0
  199. package/dist/ui/icon-button.d.ts +1 -0
  200. package/dist/ui/icon-button.d.ts.map +1 -1
  201. package/dist/ui/icon-button.js +1 -0
  202. package/dist/ui/index.d.ts +18 -0
  203. package/dist/ui/index.d.ts.map +1 -1
  204. package/dist/ui/index.js +1 -0
  205. package/dist/ui/input-otp.d.ts +1 -0
  206. package/dist/ui/input-otp.js +2 -1
  207. package/dist/ui/input.d.ts +2 -1
  208. package/dist/ui/input.d.ts.map +1 -1
  209. package/dist/ui/input.js +1 -0
  210. package/dist/ui/label.d.ts +2 -1
  211. package/dist/ui/label.js +1 -0
  212. package/dist/ui/lib/slot.d.ts +1 -0
  213. package/dist/ui/lib/use-reduced-motion.d.ts +1 -0
  214. package/dist/ui/lib/use-reduced-motion.js +1 -0
  215. package/dist/ui/lib/use-ripple.d.ts +1 -0
  216. package/dist/ui/lib/use-ripple.js +1 -0
  217. package/dist/ui/link.d.ts +1 -0
  218. package/dist/ui/link.js +1 -0
  219. package/dist/ui/menubar.d.ts +2 -1
  220. package/dist/ui/menubar.js +23 -22
  221. package/dist/ui/navigation-menu.d.ts +2 -1
  222. package/dist/ui/navigation-menu.js +7 -6
  223. package/dist/ui/number-input.d.ts +1 -0
  224. package/dist/ui/number-input.js +2 -1
  225. package/dist/ui/pagination.d.ts +1 -0
  226. package/dist/ui/pagination.js +1 -0
  227. package/dist/ui/popover.d.ts +2 -1
  228. package/dist/ui/popover.js +1 -0
  229. package/dist/ui/progress.d.ts +2 -1
  230. package/dist/ui/progress.js +1 -0
  231. package/dist/ui/radio.d.ts +2 -1
  232. package/dist/ui/radio.js +1 -0
  233. package/dist/ui/search-input.d.ts +6 -5
  234. package/dist/ui/search-input.d.ts.map +1 -1
  235. package/dist/ui/search-input.js +11 -10
  236. package/dist/ui/segmented-control.d.ts +1 -0
  237. package/dist/ui/segmented-control.d.ts.map +1 -1
  238. package/dist/ui/segmented-control.js +4 -4
  239. package/dist/ui/select.d.ts +2 -1
  240. package/dist/ui/select.js +3 -2
  241. package/dist/ui/separator.d.ts +2 -1
  242. package/dist/ui/separator.js +1 -0
  243. package/dist/ui/sheet.d.ts +2 -1
  244. package/dist/ui/sheet.js +1 -0
  245. package/dist/ui/sidebar.d.ts +1 -0
  246. package/dist/ui/sidebar.js +53 -52
  247. package/dist/ui/slider.d.ts +2 -1
  248. package/dist/ui/slider.js +1 -0
  249. package/dist/ui/stack.d.ts +2 -2
  250. package/dist/ui/stack.d.ts.map +1 -1
  251. package/dist/ui/stack.js +51 -21
  252. package/dist/ui/stat-card.d.ts +4 -1
  253. package/dist/ui/stat-card.d.ts.map +1 -1
  254. package/dist/ui/stat-card.js +22 -21
  255. package/dist/ui/stepper.d.ts +1 -0
  256. package/dist/ui/stepper.js +26 -25
  257. package/dist/ui/switch.d.ts +2 -1
  258. package/dist/ui/switch.js +1 -0
  259. package/dist/ui/table.js +12 -12
  260. package/dist/ui/tabs.d.ts +2 -1
  261. package/dist/ui/tabs.js +1 -0
  262. package/dist/ui/text.d.ts +1 -1
  263. package/dist/ui/text.d.ts.map +1 -1
  264. package/dist/ui/textarea.d.ts +1 -0
  265. package/dist/ui/textarea.d.ts.map +1 -1
  266. package/dist/ui/textarea.js +2 -0
  267. package/dist/ui/toast.d.ts +2 -1
  268. package/dist/ui/toast.js +2 -1
  269. package/dist/ui/toaster.d.ts +1 -0
  270. package/dist/ui/toaster.js +1 -0
  271. package/dist/ui/toggle-group.d.ts +2 -1
  272. package/dist/ui/toggle-group.js +1 -0
  273. package/dist/ui/toggle.d.ts +2 -1
  274. package/dist/ui/toggle.js +1 -0
  275. package/dist/ui/tooltip.d.ts +2 -1
  276. package/dist/ui/tooltip.js +1 -0
  277. package/dist/ui/transitions.d.ts +1 -0
  278. package/dist/ui/transitions.js +1 -0
  279. package/dist/ui/tree-view/index.d.ts +1 -0
  280. package/dist/ui/tree-view/tree-item.d.ts +1 -0
  281. package/dist/ui/tree-view/tree-item.js +2 -1
  282. package/dist/ui/tree-view/tree-view.d.ts +1 -0
  283. package/dist/ui/tree-view/tree-view.js +1 -0
  284. package/dist/ui/tree-view/use-tree.d.ts +1 -0
  285. package/dist/ui/tree-view/use-tree.js +1 -0
  286. package/package.json +97 -24
@@ -1,22 +1,24 @@
1
+ "use client";
1
2
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import * as v from "react";
3
- import o from "next/link";
4
- import { Sidebar as g, SidebarHeader as u, SidebarSeparator as c, SidebarContent as S, SidebarGroup as y, SidebarGroupLabel as w, SidebarGroupContent as A, SidebarMenu as C, SidebarFooter as M, SidebarMenuItem as j, SidebarMenuButton as G } from "../ui/sidebar.js";
5
- import { Avatar as L, AvatarImage as F, AvatarFallback as I } from "../ui/avatar.js";
6
- import { cn as m } from "../ui/lib/utils.js";
3
+ import * as g from "react";
4
+ import { useLink as m } from "./link-context.js";
5
+ import { Sidebar as u, SidebarHeader as S, SidebarSeparator as o, SidebarContent as y, SidebarGroup as w, SidebarGroupLabel as A, SidebarGroupContent as L, SidebarMenu as C, SidebarFooter as M, SidebarMenuItem as j, SidebarMenuButton as k } from "../ui/sidebar.js";
6
+ import { Avatar as G, AvatarImage as F, AvatarFallback as I } from "../ui/avatar.js";
7
+ import { cn as p } from "../ui/lib/utils.js";
7
8
  function R({ item: t, isActive: a }) {
9
+ const i = m();
8
10
  return /* @__PURE__ */ e(j, { children: /* @__PURE__ */ e(
9
- G,
11
+ k,
10
12
  {
11
13
  asChild: !0,
12
14
  isActive: a,
13
15
  tooltip: t.title,
14
- className: m(
16
+ className: p(
15
17
  "relative gap-ds-04 rounded-ds-lg px-ds-04 py-ds-03 transition-colors",
16
18
  a ? "bg-interactive-subtle text-interactive after:absolute after:right-0 after:top-0 after:h-full after:w-ds-01 after:rounded-l-ds-full after:bg-interactive after:content-['']" : "text-text-helper hover:bg-layer-02 hover:text-text-primary"
17
19
  ),
18
20
  children: /* @__PURE__ */ l(
19
- o,
21
+ i,
20
22
  {
21
23
  href: t.href,
22
24
  "aria-label": t.title,
@@ -30,59 +32,59 @@ function R({ item: t, isActive: a }) {
30
32
  }
31
33
  ) });
32
34
  }
33
- const k = v.forwardRef(
35
+ const z = g.forwardRef(
34
36
  ({
35
37
  currentPath: t = "/",
36
38
  user: a,
37
- navGroups: p = [],
39
+ navGroups: i = [],
38
40
  logo: h,
39
- footerLinks: i = [],
41
+ footerLinks: n = [],
40
42
  className: x,
41
43
  ...f
42
44
  }, b) => {
43
- var n;
44
- const N = (r, s = !1) => s || r === "/" ? t === r : t.startsWith(r);
45
+ var c;
46
+ const N = m(), v = (r, s = !1) => s || r === "/" ? t === r : t.startsWith(r);
45
47
  return /* @__PURE__ */ l(
46
- g,
48
+ u,
47
49
  {
48
50
  ...f,
49
51
  ref: b,
50
52
  "aria-label": "Main navigation",
51
- className: m(
53
+ className: p(
52
54
  "z-raised hidden h-full flex-col border-r border-border bg-layer-01 md:flex",
53
55
  x
54
56
  ),
55
57
  children: [
56
- /* @__PURE__ */ e(u, { className: "px-ds-06 py-ds-06", children: h ?? /* @__PURE__ */ e("span", { className: "text-ds-lg font-semibold text-text-primary", children: "Logo" }) }),
58
+ /* @__PURE__ */ e(S, { className: "px-ds-06 py-ds-06", children: h ?? /* @__PURE__ */ e("span", { className: "text-ds-lg font-semibold text-text-primary", children: "Logo" }) }),
57
59
  a && /* @__PURE__ */ l("div", { className: "flex items-center gap-ds-04 px-ds-06 pb-ds-05", children: [
58
- /* @__PURE__ */ l(L, { className: "h-ds-sm-plus w-ds-sm-plus", children: [
60
+ /* @__PURE__ */ l(G, { className: "h-ds-sm-plus w-ds-sm-plus", children: [
59
61
  a.image ? /* @__PURE__ */ e(F, { src: a.image, alt: a.name }) : null,
60
- /* @__PURE__ */ e(I, { className: "bg-layer-03 text-text-primary", children: (n = a.name) == null ? void 0 : n.charAt(0).toUpperCase() })
62
+ /* @__PURE__ */ e(I, { className: "bg-layer-03 text-text-primary", children: (c = a.name) == null ? void 0 : c.charAt(0).toUpperCase() })
61
63
  ] }),
62
64
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col", children: [
63
65
  /* @__PURE__ */ e("span", { className: "truncate text-ds-md text-text-primary", children: a.name }),
64
66
  /* @__PURE__ */ e("span", { className: "truncate text-ds-sm text-text-placeholder", children: a.designation || a.role })
65
67
  ] })
66
68
  ] }),
67
- /* @__PURE__ */ e(c, {}),
68
- /* @__PURE__ */ e(S, { className: "no-scrollbar px-ds-04", children: p.map((r, s) => /* @__PURE__ */ l("div", { children: [
69
- s > 0 && /* @__PURE__ */ e(c, {}),
70
- /* @__PURE__ */ l(y, { children: [
71
- /* @__PURE__ */ e(w, { className: "px-ds-04 text-ds-sm text-text-placeholder", children: r.label }),
72
- /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(C, { children: r.items.map((d) => /* @__PURE__ */ e(
69
+ /* @__PURE__ */ e(o, {}),
70
+ /* @__PURE__ */ e(y, { className: "no-scrollbar px-ds-04", children: i.map((r, s) => /* @__PURE__ */ l("div", { children: [
71
+ s > 0 && /* @__PURE__ */ e(o, {}),
72
+ /* @__PURE__ */ l(w, { children: [
73
+ /* @__PURE__ */ e(A, { className: "px-ds-04 text-ds-sm text-text-placeholder", children: r.label }),
74
+ /* @__PURE__ */ e(L, { children: /* @__PURE__ */ e(C, { children: r.items.map((d) => /* @__PURE__ */ e(
73
75
  R,
74
76
  {
75
77
  item: d,
76
- isActive: N(d.href, d.exact)
78
+ isActive: v(d.href, d.exact)
77
79
  },
78
80
  d.href
79
81
  )) }) })
80
82
  ] })
81
83
  ] }, r.label)) }),
82
- i.length > 0 && /* @__PURE__ */ e(M, { className: "px-ds-06 py-ds-05", children: /* @__PURE__ */ e("div", { className: "flex items-center justify-start gap-ds-03", children: i.map((r, s) => /* @__PURE__ */ l("div", { className: "flex items-center gap-ds-03", children: [
83
- s > 0 && /* @__PURE__ */ e("div", { className: "h-4 w-px bg-border" }),
84
+ n.length > 0 && /* @__PURE__ */ e(M, { className: "px-ds-06 py-ds-05", children: /* @__PURE__ */ e("div", { className: "flex items-center justify-start gap-ds-03", children: n.map((r, s) => /* @__PURE__ */ l("div", { className: "flex items-center gap-ds-03", children: [
85
+ s > 0 && /* @__PURE__ */ e("div", { className: "h-[16px] w-px bg-border" }),
84
86
  /* @__PURE__ */ e(
85
- o,
87
+ N,
86
88
  {
87
89
  className: "text-ds-md text-text-placeholder transition-colors hover:text-interactive",
88
90
  href: r.href,
@@ -95,7 +97,7 @@ const k = v.forwardRef(
95
97
  );
96
98
  }
97
99
  );
98
- k.displayName = "AppSidebar";
100
+ z.displayName = "AppSidebar";
99
101
  export {
100
- k as AppSidebar
102
+ z as AppSidebar
101
103
  };
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  /**
2
3
  * TopBar -- Application top bar with sidebar trigger, user menu, and action
3
4
  * buttons. All data is props-driven (no Zustand stores or Remix hooks).
@@ -1 +1 @@
1
- {"version":3,"file":"top-bar.d.ts","sourceRoot":"","sources":["../../src/shell/top-bar.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAuB9B,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5C,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,uDAAuD;IACvD,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;IACxB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,+CAA+C;IAC/C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,gDAAgD;IAChD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,mCAAmC;IACnC,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAClC,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAMD,QAAA,MAAM,MAAM,oFAqLX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"top-bar.d.ts","sourceRoot":"","sources":["../../src/shell/top-bar.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAuB9B,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5C,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,uDAAuD;IACvD,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;IACxB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,+CAA+C;IAC/C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,gDAAgD;IAChD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,mCAAmC;IACnC,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAClC,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAMD,QAAA,MAAM,MAAM,oFAyLX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,CAAA"}
@@ -1,27 +1,28 @@
1
+ "use client";
1
2
  import { jsxs as r, jsx as e, Fragment as w } from "react/jsx-runtime";
2
- import * as k from "react";
3
- import { useColorMode as C } from "../hooks/use-color-mode.js";
3
+ import * as C from "react";
4
+ import { useColorMode as k } from "../hooks/use-color-mode.js";
4
5
  import { Avatar as M, AvatarImage as v, AvatarFallback as I } from "../ui/avatar.js";
5
- import { DropdownMenu as T, DropdownMenuTrigger as D, DropdownMenuContent as S, DropdownMenuItem as d, DropdownMenuSeparator as j } from "../ui/dropdown-menu.js";
6
- import { Tooltip as o, TooltipTrigger as l, TooltipContent as a } from "../ui/tooltip.js";
7
- import { SidebarTrigger as A } from "../ui/sidebar.js";
6
+ import { DropdownMenu as S, DropdownMenuTrigger as T, DropdownMenuContent as D, DropdownMenuItem as d, DropdownMenuSeparator as A } from "../ui/dropdown-menu.js";
7
+ import { Tooltip as l, TooltipTrigger as o, TooltipContent as a } from "../ui/tooltip.js";
8
+ import { SidebarTrigger as j } from "../ui/sidebar.js";
8
9
  import { IconSearch as K, IconSparkles as U, IconUser as B, IconSun as E, IconMoon as F, IconLogout as R } from "@tabler/icons-react";
9
10
  import { cn as z } from "../ui/lib/utils.js";
10
- const L = k.forwardRef(
11
+ const L = C.forwardRef(
11
12
  ({
12
13
  pageTitle: c = "",
13
- user: s,
14
- onNavigate: t,
14
+ user: t,
15
+ onNavigate: s,
15
16
  onLogout: n,
16
17
  onSearchClick: i,
17
18
  onAiChatClick: m,
18
19
  mobileLogo: p,
19
20
  notificationSlot: b,
20
21
  className: u,
21
- ...f
22
- }, y) => {
22
+ ...y
23
+ }, f) => {
23
24
  var x;
24
- const { colorMode: h, toggleColorMode: g } = C(), N = () => {
25
+ const { colorMode: h, toggleColorMode: g } = k(), N = () => {
25
26
  i ? i() : document.dispatchEvent(
26
27
  new KeyboardEvent("keydown", {
27
28
  key: "k",
@@ -33,66 +34,70 @@ const L = k.forwardRef(
33
34
  return /* @__PURE__ */ r(
34
35
  "div",
35
36
  {
36
- ...f,
37
- ref: y,
37
+ ...y,
38
+ ref: f,
38
39
  className: z(
39
40
  "z-sticky flex w-full items-center border-b border-border bg-layer-01 px-ds-05 py-ds-04 md:px-ds-06",
40
41
  u
41
42
  ),
42
43
  children: [
43
44
  /* @__PURE__ */ r("div", { className: "flex items-center gap-ds-04", children: [
44
- /* @__PURE__ */ e(A, { className: "hidden text-text-secondary md:flex" }),
45
+ /* @__PURE__ */ e(j, { className: "hidden text-text-secondary md:flex" }),
45
46
  p && /* @__PURE__ */ e("div", { className: "md:hidden", children: p }),
46
47
  c && /* @__PURE__ */ e("h2", { className: "hidden text-ds-lg text-text-primary md:block", children: c })
47
48
  ] }),
48
49
  /* @__PURE__ */ r("div", { className: "ml-auto flex items-center gap-ds-03 md:gap-ds-05", children: [
49
- /* @__PURE__ */ r(o, { children: [
50
- /* @__PURE__ */ e(l, { asChild: !0, children: /* @__PURE__ */ e(
50
+ /* @__PURE__ */ r(l, { children: [
51
+ /* @__PURE__ */ e(o, { asChild: !0, children: /* @__PURE__ */ e(
51
52
  "button",
52
53
  {
54
+ type: "button",
53
55
  onClick: N,
56
+ "aria-label": "Search (Ctrl+K)",
54
57
  className: "flex h-ds-sm-plus w-ds-sm-plus items-center justify-center rounded-ds-full border border-border bg-layer-02 text-text-secondary transition-colors hover:bg-layer-03",
55
- children: /* @__PURE__ */ e(K, { className: "h-ico-sm w-ico-sm" })
58
+ children: /* @__PURE__ */ e(K, { className: "h-ico-sm w-ico-sm", "aria-hidden": "true" })
56
59
  }
57
60
  ) }),
58
61
  /* @__PURE__ */ e(a, { side: "bottom", align: "center", children: "Search (Ctrl+K)" })
59
62
  ] }),
60
63
  b,
61
- m && /* @__PURE__ */ r(o, { children: [
62
- /* @__PURE__ */ e(l, { asChild: !0, children: /* @__PURE__ */ e(
64
+ m && /* @__PURE__ */ r(l, { children: [
65
+ /* @__PURE__ */ e(o, { asChild: !0, children: /* @__PURE__ */ e(
63
66
  "button",
64
67
  {
68
+ type: "button",
65
69
  onClick: m,
70
+ "aria-label": "AI Chat",
66
71
  className: "flex h-ds-sm-plus w-ds-sm-plus items-center justify-center rounded-ds-full border border-border bg-layer-02 text-text-secondary transition-colors hover:bg-layer-03",
67
- children: /* @__PURE__ */ e(U, { className: "h-ico-sm w-ico-sm" })
72
+ children: /* @__PURE__ */ e(U, { className: "h-ico-sm w-ico-sm", "aria-hidden": "true" })
68
73
  }
69
74
  ) }),
70
75
  /* @__PURE__ */ e(a, { side: "bottom", align: "center", children: "AI Chat" })
71
76
  ] }),
72
- s && /* @__PURE__ */ r(T, { children: [
73
- /* @__PURE__ */ r(o, { children: [
74
- /* @__PURE__ */ e(l, { asChild: !0, children: /* @__PURE__ */ e(D, { asChild: !0, children: /* @__PURE__ */ e("button", { className: "flex items-center gap-ds-03 outline-none", children: /* @__PURE__ */ r(M, { className: "h-ds-sm-plus w-ds-sm-plus cursor-pointer", children: [
75
- s.image ? /* @__PURE__ */ e(v, { src: s.image, alt: s.name }) : null,
76
- /* @__PURE__ */ e(I, { className: "bg-layer-02 text-text-primary", children: (x = s.name) == null ? void 0 : x.charAt(0).toUpperCase() })
77
+ t && /* @__PURE__ */ r(S, { children: [
78
+ /* @__PURE__ */ r(l, { children: [
79
+ /* @__PURE__ */ e(o, { asChild: !0, children: /* @__PURE__ */ e(T, { asChild: !0, children: /* @__PURE__ */ e("button", { type: "button", className: "flex items-center gap-ds-03 outline-none", children: /* @__PURE__ */ r(M, { className: "h-ds-sm-plus w-ds-sm-plus cursor-pointer", children: [
80
+ t.image ? /* @__PURE__ */ e(v, { src: t.image, alt: t.name }) : null,
81
+ /* @__PURE__ */ e(I, { className: "bg-layer-02 text-text-primary", children: (x = t.name) == null ? void 0 : x.charAt(0).toUpperCase() })
77
82
  ] }) }) }) }),
78
83
  /* @__PURE__ */ e(a, { side: "bottom", align: "center", children: "User Menu" })
79
84
  ] }),
80
85
  /* @__PURE__ */ r(
81
- S,
86
+ D,
82
87
  {
83
88
  className: "w-[200px] rounded-ds-xl border border-border bg-layer-01 p-0 shadow-03",
84
89
  sideOffset: 8,
85
90
  align: "end",
86
91
  children: [
87
92
  /* @__PURE__ */ r("div", { className: "border-b border-border px-ds-05 py-ds-04", children: [
88
- /* @__PURE__ */ e("p", { className: "text-ds-md text-text-primary", children: s.name }),
89
- s.email && /* @__PURE__ */ e("p", { className: "text-ds-sm text-text-placeholder", children: s.email })
93
+ /* @__PURE__ */ e("p", { className: "text-ds-md text-text-primary", children: t.name }),
94
+ t.email && /* @__PURE__ */ e("p", { className: "text-ds-sm text-text-placeholder", children: t.email })
90
95
  ] }),
91
96
  /* @__PURE__ */ r(
92
97
  d,
93
98
  {
94
99
  className: "flex w-full cursor-pointer items-center gap-ds-03 px-ds-05 py-ds-04 hover:bg-layer-02",
95
- onClick: () => t == null ? void 0 : t("/profile"),
100
+ onClick: () => s == null ? void 0 : s("/profile"),
96
101
  children: [
97
102
  /* @__PURE__ */ e(B, { className: "h-ico-sm w-ico-sm text-text-secondary" }),
98
103
  /* @__PURE__ */ e("span", { className: "text-ds-md text-text-secondary", children: "Profile" })
@@ -111,7 +116,7 @@ const L = k.forwardRef(
111
116
  }
112
117
  ),
113
118
  n && /* @__PURE__ */ r(w, { children: [
114
- /* @__PURE__ */ e(j, { className: "bg-border" }),
119
+ /* @__PURE__ */ e(A, { className: "bg-border" }),
115
120
  /* @__PURE__ */ r(
116
121
  d,
117
122
  {
@@ -1 +1 @@
1
- {"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../../src/tailwind/preset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,QAAA,MAAM,MAAM,EAAE,OAAO,CAAC,MAAM,CAoT3B,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../../src/tailwind/preset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,QAAA,MAAM,MAAM,EAAE,OAAO,CAAC,MAAM,CAkV3B,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -26,6 +26,22 @@ const r = {
26
26
  semibold: "var(--font-weight-semibold)",
27
27
  bold: "var(--font-weight-bold)"
28
28
  },
29
+ letterSpacing: {
30
+ "ds-tighter": "var(--tracking-tighter)",
31
+ "ds-tight": "var(--tracking-tight)",
32
+ "ds-normal": "var(--tracking-normal)",
33
+ "ds-wide": "var(--tracking-wide)",
34
+ "ds-wider": "var(--tracking-wider)",
35
+ "ds-widest": "var(--tracking-widest)"
36
+ },
37
+ lineHeight: {
38
+ "ds-none": "var(--line-height-none)",
39
+ "ds-tight": "var(--line-height-tight)",
40
+ "ds-snug": "var(--line-height-snug)",
41
+ "ds-normal": "var(--line-height-normal)",
42
+ "ds-relaxed": "var(--line-height-relaxed)",
43
+ "ds-loose": "var(--line-height-loose)"
44
+ },
29
45
  fontSize: {
30
46
  "ds-xs": ["var(--font-size-xs)", { lineHeight: "var(--line-height-relaxed)" }],
31
47
  "ds-sm": ["var(--font-size-sm)", { lineHeight: "var(--line-height-relaxed)" }],
@@ -42,7 +58,8 @@ const r = {
42
58
  borderWidth: {
43
59
  "ds-sm": "var(--border-width-sm)",
44
60
  "ds-md": "var(--border-width-md)",
45
- "ds-lg": "var(--border-width-lg)"
61
+ "ds-lg": "var(--border-width-lg)",
62
+ focus: "var(--border-focus-width)"
46
63
  },
47
64
  borderRadius: {
48
65
  "ds-none": "0",
@@ -117,6 +134,13 @@ const r = {
117
134
  "ds-lg": "var(--size-lg)",
118
135
  "ds-xl": "var(--size-xl)"
119
136
  },
137
+ opacity: {
138
+ "action-hover": "var(--action-hover-opacity)",
139
+ "action-selected": "var(--action-selected-opacity)",
140
+ "action-disabled": "var(--action-disabled-opacity)",
141
+ "action-focus": "var(--action-focus-opacity)",
142
+ "action-active": "var(--action-active-opacity)"
143
+ },
120
144
  colors: {
121
145
  "text-interactive": "var(--color-text-interactive)",
122
146
  interactive: "var(--color-interactive)",
@@ -220,6 +244,7 @@ const r = {
220
244
  "surface-overlay-light": "var(--color-surface-overlay-light)",
221
245
  "surface-overlay-dark": "var(--color-surface-overlay-dark)",
222
246
  "layer-accent-subtle": "var(--color-layer-accent-subtle)",
247
+ "text-shadow": "var(--color-text-shadow)",
223
248
  "error-hover": "var(--color-error-hover)",
224
249
  "chart-1": "var(--chart-1)",
225
250
  "chart-2": "var(--chart-2)",
@@ -252,6 +277,10 @@ const r = {
252
277
  "skeleton-shimmer": {
253
278
  "0%": { backgroundPosition: "-200% 0" },
254
279
  "100%": { backgroundPosition: "200% 0" }
280
+ },
281
+ "caret-blink": {
282
+ "0%,70%,100%": { opacity: "1" },
283
+ "20%,50%": { opacity: "0" }
255
284
  }
256
285
  },
257
286
  animation: {
@@ -259,7 +288,8 @@ const r = {
259
288
  "ripple-icon": "ripple var(--duration-moderate-02) linear forwards",
260
289
  shake: "shake 1s var(--ease-productive-standard) infinite",
261
290
  "progress-indeterminate": "progress-indeterminate var(--duration-slow-02) var(--ease-productive-standard) infinite",
262
- "skeleton-shimmer": "skeleton-shimmer var(--duration-slow-02) var(--ease-linear) infinite"
291
+ "skeleton-shimmer": "skeleton-shimmer var(--duration-slow-02) var(--ease-linear) infinite",
292
+ "caret-blink": "caret-blink 1.25s ease-out infinite"
263
293
  },
264
294
  backgroundImage: {
265
295
  "gradient-brand": "var(--gradient-brand-light)",
@@ -1,5 +1,6 @@
1
+ "use client";
1
2
  import * as React from 'react';
2
- import * as AccordionPrimitive from '@primitives/react-accordion';
3
+ import * as AccordionPrimitive from '../primitives/react-accordion';
3
4
  /**
4
5
  * Accordion compound component — vertically stacked, collapsible content sections.
5
6
  *
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
3
  import * as s from "react";
3
4
  import { Root as m, Content as n, Item as l, Header as f, Trigger as d } from "../primitives/react-accordion.js";
@@ -1,5 +1,6 @@
1
+ "use client";
1
2
  import * as React from 'react';
2
- import * as AlertDialogPrimitive from '@primitives/react-alert-dialog';
3
+ import * as AlertDialogPrimitive from '../primitives/react-alert-dialog';
3
4
  declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
4
5
  declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
6
  declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as o, jsxs as p } from "react/jsx-runtime";
2
3
  import * as i from "react";
3
4
  import { Root as g, Portal as x, Trigger as y, Action as l, Cancel as r, Content as d, Description as n, Overlay as c, Title as m } from "../primitives/react-alert-dialog.js";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { VariantProps } from 'class-variance-authority';
2
3
  import * as React from 'react';
3
4
  declare const alertVariants: (props?: ({
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/ui/alert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,QAAA,MAAM,aAAa;;8EAmBlB,CAAA;AAUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED,QAAA,MAAM,KAAK,mFAwBV,CAAA;AAGD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/ui/alert.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,QAAA,MAAM,aAAa;;8EAmBlB,CAAA;AAUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED,QAAA,MAAM,KAAK,mFAwBV,CAAA;AAGD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
package/dist/ui/alert.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
3
  import { IconInfoCircle as i, IconAlertCircle as m, IconAlertTriangle as f, IconCircleCheck as b, IconX as u } from "@tabler/icons-react";
3
4
  import * as x from "react";
@@ -30,7 +31,7 @@ const v = g(
30
31
  /* @__PURE__ */ r(l, { className: "mt-ds-01 h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
31
32
  /* @__PURE__ */ t("div", { className: "flex-1 min-w-0", children: [
32
33
  o && /* @__PURE__ */ r("p", { className: "text-ds-md font-semibold mb-ds-01", children: o }),
33
- /* @__PURE__ */ r("div", { className: "text-ds-md opacity-90", children: a })
34
+ /* @__PURE__ */ r("div", { className: "text-ds-md opacity-[0.9]", children: a })
34
35
  ] }),
35
36
  s && /* @__PURE__ */ r(
36
37
  "button",
@@ -1,4 +1,5 @@
1
- import * as AspectRatioPrimitive from '@primitives/react-aspect-ratio';
1
+ "use client";
2
+ import * as AspectRatioPrimitive from '../primitives/react-aspect-ratio';
2
3
  declare const AspectRatio: import('react').ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & import('react').RefAttributes<HTMLDivElement>>;
3
4
  export { AspectRatio };
4
5
  //# sourceMappingURL=aspect-ratio.d.ts.map
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { Root as o } from "../primitives/react-aspect-ratio.js";
2
3
  const t = o;
3
4
  t.displayName = "AspectRatio";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import * as React from 'react';
2
3
  type AutocompleteOption = {
3
4
  label: string;
@@ -1,58 +1,59 @@
1
- import { jsxs as K, jsx as p } from "react/jsx-runtime";
1
+ "use client";
2
+ import { jsxs as O, jsx as p } from "react/jsx-runtime";
2
3
  import * as t from "react";
3
4
  import { cn as b } from "./lib/utils.js";
4
- const O = t.forwardRef(
5
+ const T = t.forwardRef(
5
6
  ({
6
7
  options: x,
7
- value: s,
8
+ value: o,
8
9
  onChange: u,
9
10
  placeholder: D,
10
11
  emptyText: I = "No options",
11
- disabled: y,
12
+ disabled: h,
12
13
  className: R,
13
14
  id: N
14
15
  }, i) => {
15
- const E = t.useId(), w = N || E, g = `${w}-listbox`, v = `${w}-option`, [f, k] = t.useState((s == null ? void 0 : s.label) ?? ""), [c, a] = t.useState(!1), [r, l] = t.useState(-1), $ = t.useRef(null), A = t.useRef(null), h = t.useRef(), M = t.useCallback(
16
+ const E = t.useId(), w = N || E, k = `${w}-listbox`, v = `${w}-option`, [f, g] = t.useState((o == null ? void 0 : o.label) ?? ""), [c, l] = t.useState(!1), [r, a] = t.useState(-1), $ = t.useRef(null), A = t.useRef(null), y = t.useRef(), M = t.useCallback(
16
17
  (e) => {
17
18
  $.current = e, typeof i == "function" ? i(e) : i && (i.current = e);
18
19
  },
19
20
  [i]
20
21
  );
21
22
  t.useEffect(() => () => {
22
- h.current && clearTimeout(h.current);
23
+ y.current && clearTimeout(y.current);
23
24
  }, []);
24
25
  const n = t.useMemo(
25
26
  () => f ? x.filter((e) => e.label.toLowerCase().includes(f.toLowerCase())) : x,
26
27
  [x, f]
27
28
  ), m = t.useCallback(
28
29
  (e) => {
29
- k(e.label), a(!1), l(-1), u == null || u(e);
30
+ g(e.label), l(!1), a(-1), u == null || u(e);
30
31
  },
31
32
  [u]
32
- ), z = t.useCallback(
33
+ ), S = t.useCallback(
33
34
  (e) => {
34
35
  if (!c) {
35
- (e.key === "ArrowDown" || e.key === "Enter") && a(!0);
36
+ (e.key === "ArrowDown" || e.key === "Enter") && l(!0);
36
37
  return;
37
38
  }
38
39
  switch (e.key) {
39
40
  case "ArrowDown":
40
- e.preventDefault(), l((o) => Math.min(o + 1, n.length - 1));
41
+ e.preventDefault(), a((s) => Math.min(s + 1, n.length - 1));
41
42
  break;
42
43
  case "ArrowUp":
43
- e.preventDefault(), l((o) => Math.max(o - 1, 0));
44
+ e.preventDefault(), a((s) => Math.max(s - 1, 0));
44
45
  break;
45
46
  case "Enter":
46
47
  e.preventDefault(), r >= 0 && n[r] && m(n[r]);
47
48
  break;
48
49
  case "Escape":
49
- a(!1), l(-1);
50
+ l(!1), a(-1);
50
51
  break;
51
52
  }
52
53
  },
53
54
  [c, n, r, m]
54
- ), S = r >= 0 ? `${v}-${r}` : void 0;
55
- return /* @__PURE__ */ K("div", { className: b("relative", R), children: [
55
+ ), K = r >= 0 ? `${v}-${r}` : void 0;
56
+ return /* @__PURE__ */ O("div", { className: b("relative", R), children: [
56
57
  /* @__PURE__ */ p(
57
58
  "input",
58
59
  {
@@ -61,54 +62,54 @@ const O = t.forwardRef(
61
62
  role: "combobox",
62
63
  "aria-expanded": c,
63
64
  "aria-autocomplete": "list",
64
- "aria-controls": c ? g : void 0,
65
- "aria-activedescendant": S,
65
+ "aria-controls": c ? k : void 0,
66
+ "aria-activedescendant": K,
66
67
  value: f,
67
68
  placeholder: D,
68
- disabled: y,
69
+ disabled: h,
69
70
  className: b(
70
- "flex h-ds-md w-full rounded-ds-md border border-border bg-field px-ds-04 py-ds-03 font-sans text-[length:var(--font-size-md)] text-text-primary placeholder:text-text-placeholder",
71
- "outline-none focus:ring-2 focus:ring-focus focus:ring-offset-[var(--border-focus-offset)]",
71
+ "flex h-ds-md w-full rounded-ds-md border border-border bg-field px-ds-04 py-ds-03 font-sans text-ds-md text-text-primary placeholder:text-text-placeholder",
72
+ "outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-[var(--border-focus-offset)]",
72
73
  "transition-colors duration-fast-01",
73
- y && "opacity-[var(--action-disabled-opacity,0.38)] cursor-not-allowed"
74
+ h && "opacity-[var(--action-disabled-opacity,0.38)] cursor-not-allowed"
74
75
  ),
75
76
  onChange: (e) => {
76
- k(e.target.value), a(!0), l(-1);
77
+ g(e.target.value), l(!0), a(-1);
77
78
  },
78
- onFocus: () => a(!0),
79
+ onFocus: () => l(!0),
79
80
  onBlur: () => {
80
- h.current = setTimeout(() => a(!1), 150);
81
+ y.current = setTimeout(() => l(!1), 150);
81
82
  },
82
- onKeyDown: z
83
+ onKeyDown: S
83
84
  }
84
85
  ),
85
86
  c && /* @__PURE__ */ p(
86
87
  "ul",
87
88
  {
88
- id: g,
89
+ id: k,
89
90
  ref: A,
90
91
  role: "listbox",
91
92
  className: b(
92
93
  "absolute z-dropdown mt-ds-02 w-full overflow-auto rounded-ds-md border border-border bg-layer-01 shadow-02",
93
94
  "max-h-60"
94
95
  ),
95
- children: n.length === 0 ? /* @__PURE__ */ p("li", { className: "px-ds-04 py-ds-03 text-[length:var(--font-size-md)] text-text-secondary", children: I }) : n.map((e, o) => /* @__PURE__ */ p(
96
+ children: n.length === 0 ? /* @__PURE__ */ p("li", { className: "px-ds-04 py-ds-03 text-ds-md text-text-secondary", children: I }) : n.map((e, s) => /* @__PURE__ */ p(
96
97
  "li",
97
98
  {
98
- id: `${v}-${o}`,
99
+ id: `${v}-${s}`,
99
100
  role: "option",
100
- "aria-selected": r === o,
101
+ "aria-selected": r === s,
101
102
  className: b(
102
- "cursor-pointer px-ds-04 py-ds-03 text-[length:var(--font-size-md)] text-text-primary transition-colors duration-fast-01",
103
- r === o && "bg-interactive-selected",
104
- (s == null ? void 0 : s.value) === e.value && "font-[number:var(--font-weight-semibold)]"
103
+ "cursor-pointer px-ds-04 py-ds-03 text-ds-md text-text-primary transition-colors duration-fast-01",
104
+ r === s && "bg-interactive-selected",
105
+ (o == null ? void 0 : o.value) === e.value && "font-semibold"
105
106
  ),
106
107
  onMouseDown: (d) => d.preventDefault(),
107
108
  onClick: () => m(e),
108
109
  onKeyDown: (d) => {
109
110
  (d.key === "Enter" || d.key === " ") && (d.preventDefault(), m(e));
110
111
  },
111
- onMouseEnter: () => l(o),
112
+ onMouseEnter: () => a(s),
112
113
  children: e.label
113
114
  },
114
115
  e.value
@@ -118,7 +119,7 @@ const O = t.forwardRef(
118
119
  ] });
119
120
  }
120
121
  );
121
- O.displayName = "Autocomplete";
122
+ T.displayName = "Autocomplete";
122
123
  export {
123
- O as Autocomplete
124
+ T as Autocomplete
124
125
  };
@@ -1,6 +1,7 @@
1
+ "use client";
1
2
  import { VariantProps } from 'class-variance-authority';
2
3
  import * as React from "react";
3
- import * as AvatarPrimitive from "@primitives/react-avatar";
4
+ import * as AvatarPrimitive from "../primitives/react-avatar";
4
5
  export declare const avatarVariants: (props?: ({
5
6
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
6
7
  shape?: "rounded" | "square" | "circle" | null | undefined;