@devalok/shilp-sutra 0.17.2 → 0.18.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 (318) hide show
  1. package/dist/_chunks/avatar.js +21 -19
  2. package/dist/_chunks/button-group.js +27 -0
  3. package/dist/_chunks/button.js +53 -35
  4. package/dist/_chunks/card.js +50 -0
  5. package/dist/_chunks/checkbox.js +11 -9
  6. package/dist/_chunks/date-utils.js +13 -0
  7. package/dist/_chunks/form.js +20 -20
  8. package/dist/_chunks/link-context.js +19 -0
  9. package/dist/_chunks/motion.js +1376 -0
  10. package/dist/_chunks/motion2.js +35 -0
  11. package/dist/_chunks/primitives.js +3499 -3920
  12. package/dist/_chunks/sidebar.js +225 -211
  13. package/dist/_chunks/spinner.js +58 -28
  14. package/dist/_chunks/tiptap.js +1 -1
  15. package/dist/_chunks/tooltip.js +27 -10
  16. package/dist/_chunks/tree-view.js +180 -178
  17. package/dist/_chunks/use-calendar.js +531 -515
  18. package/dist/_chunks/utils.js +3 -3
  19. package/dist/_chunks/vendor-client.js +1792 -1049
  20. package/dist/_chunks/vendor-utils.js +5123 -1169
  21. package/dist/composed/activity-feed.d.ts.map +1 -1
  22. package/dist/composed/activity-feed.js +71 -74
  23. package/dist/composed/avatar-group.js +36 -36
  24. package/dist/composed/command-palette.d.ts +1 -1
  25. package/dist/composed/command-palette.d.ts.map +1 -1
  26. package/dist/composed/command-palette.js +207 -158
  27. package/dist/composed/confirm-dialog.d.ts +3 -5
  28. package/dist/composed/confirm-dialog.d.ts.map +1 -1
  29. package/dist/composed/confirm-dialog.js +46 -41
  30. package/dist/composed/content-card.d.ts +1 -1
  31. package/dist/composed/content-card.js +29 -29
  32. package/dist/composed/date-picker/calendar-grid.d.ts +1 -1
  33. package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -1
  34. package/dist/composed/date-picker/date-picker.d.ts +1 -1
  35. package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
  36. package/dist/composed/date-picker/date-range-picker.d.ts +1 -1
  37. package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -1
  38. package/dist/composed/date-picker/date-time-picker.d.ts +1 -1
  39. package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -1
  40. package/dist/composed/date-picker/month-picker.d.ts +1 -1
  41. package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
  42. package/dist/composed/date-picker/presets.d.ts +1 -1
  43. package/dist/composed/date-picker/presets.d.ts.map +1 -1
  44. package/dist/composed/date-picker/time-picker.d.ts +1 -1
  45. package/dist/composed/date-picker/time-picker.d.ts.map +1 -1
  46. package/dist/composed/date-picker/year-picker.d.ts +1 -1
  47. package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
  48. package/dist/composed/empty-state.d.ts +1 -0
  49. package/dist/composed/empty-state.d.ts.map +1 -1
  50. package/dist/composed/empty-state.js +51 -47
  51. package/dist/composed/error-boundary.d.ts +1 -1
  52. package/dist/composed/error-boundary.d.ts.map +1 -1
  53. package/dist/composed/error-boundary.js +48 -48
  54. package/dist/composed/extensions/mention-suggestion.d.ts +1 -1
  55. package/dist/composed/extensions/mention-suggestion.d.ts.map +1 -1
  56. package/dist/composed/global-loading.d.ts +1 -1
  57. package/dist/composed/global-loading.d.ts.map +1 -1
  58. package/dist/composed/global-loading.js +23 -20
  59. package/dist/composed/index.d.ts +2 -4
  60. package/dist/composed/index.d.ts.map +1 -1
  61. package/dist/composed/index.js +26 -29
  62. package/dist/composed/loading-skeleton.d.ts +1 -1
  63. package/dist/composed/loading-skeleton.d.ts.map +1 -1
  64. package/dist/composed/loading-skeleton.js +92 -87
  65. package/dist/composed/member-picker.d.ts +1 -1
  66. package/dist/composed/member-picker.d.ts.map +1 -1
  67. package/dist/composed/member-picker.js +47 -43
  68. package/dist/composed/page-header.js +36 -36
  69. package/dist/composed/page-skeletons.d.ts +9 -3
  70. package/dist/composed/page-skeletons.d.ts.map +1 -1
  71. package/dist/composed/page-skeletons.js +58 -58
  72. package/dist/composed/priority-indicator.js +19 -19
  73. package/dist/composed/rich-text-editor.d.ts +3 -3
  74. package/dist/composed/rich-text-editor.d.ts.map +1 -1
  75. package/dist/composed/rich-text-editor.js +316 -309
  76. package/dist/composed/schedule-view.js +88 -88
  77. package/dist/composed/simple-tooltip.d.ts +2 -5
  78. package/dist/composed/simple-tooltip.d.ts.map +1 -1
  79. package/dist/composed/simple-tooltip.js +19 -14
  80. package/dist/composed/status-badge.d.ts +2 -1
  81. package/dist/composed/status-badge.d.ts.map +1 -1
  82. package/dist/composed/status-badge.js +76 -63
  83. package/dist/hooks/index.d.ts +2 -1
  84. package/dist/hooks/index.d.ts.map +1 -1
  85. package/dist/hooks/index.js +3 -4
  86. package/dist/hooks/use-toast.d.ts +15 -45
  87. package/dist/hooks/use-toast.d.ts.map +1 -1
  88. package/dist/hooks/use-toast.js +2 -95
  89. package/dist/motion/index.d.ts +4 -0
  90. package/dist/motion/index.d.ts.map +1 -0
  91. package/dist/motion/index.js +10 -0
  92. package/dist/motion/motion-provider.d.ts +18 -0
  93. package/dist/motion/motion-provider.d.ts.map +1 -0
  94. package/dist/motion/motion-provider.js +24 -0
  95. package/dist/motion/primitives-index.d.ts +3 -0
  96. package/dist/motion/primitives-index.d.ts.map +1 -0
  97. package/dist/motion/primitives-index.js +11 -0
  98. package/dist/motion/primitives.d.ts +38 -0
  99. package/dist/motion/primitives.d.ts.map +1 -0
  100. package/dist/motion/primitives.js +187 -0
  101. package/dist/shell/app-command-palette.d.ts +14 -5
  102. package/dist/shell/app-command-palette.d.ts.map +1 -1
  103. package/dist/shell/app-command-palette.js +152 -130
  104. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  105. package/dist/shell/bottom-navbar.js +90 -92
  106. package/dist/shell/command-registry.d.ts +23 -0
  107. package/dist/shell/command-registry.d.ts.map +1 -0
  108. package/dist/shell/command-registry.js +18 -0
  109. package/dist/shell/index.d.ts +2 -1
  110. package/dist/shell/index.d.ts.map +1 -1
  111. package/dist/shell/index.js +14 -11
  112. package/dist/shell/link-context.d.ts +6 -10
  113. package/dist/shell/link-context.d.ts.map +1 -1
  114. package/dist/shell/link-context.js +3 -16
  115. package/dist/shell/notification-center.d.ts.map +1 -1
  116. package/dist/shell/notification-center.js +137 -132
  117. package/dist/shell/notification-preferences.d.ts +10 -5
  118. package/dist/shell/notification-preferences.d.ts.map +1 -1
  119. package/dist/shell/notification-preferences.js +168 -165
  120. package/dist/shell/sidebar.js +119 -119
  121. package/dist/shell/top-bar.js +65 -65
  122. package/dist/tailwind/index.cjs +118 -297
  123. package/dist/tailwind/preset.d.ts.map +1 -1
  124. package/dist/tailwind/preset.js +118 -297
  125. package/dist/tokens/generate-scale.d.ts +86 -0
  126. package/dist/tokens/generate-scale.d.ts.map +1 -0
  127. package/dist/tokens/primitives.css +415 -187
  128. package/dist/tokens/semantic.css +244 -270
  129. package/dist/tokens/typography.css +6 -6
  130. package/dist/ui/accordion.d.ts.map +1 -1
  131. package/dist/ui/accordion.js +32 -22
  132. package/dist/ui/alert-dialog.d.ts +4 -1
  133. package/dist/ui/alert-dialog.d.ts.map +1 -1
  134. package/dist/ui/alert-dialog.js +114 -73
  135. package/dist/ui/alert.d.ts +6 -1
  136. package/dist/ui/alert.d.ts.map +1 -1
  137. package/dist/ui/alert.js +64 -49
  138. package/dist/ui/aspect-ratio.d.ts +2 -1
  139. package/dist/ui/aspect-ratio.d.ts.map +1 -1
  140. package/dist/ui/aspect-ratio.js +14 -4
  141. package/dist/ui/autocomplete.d.ts +11 -2
  142. package/dist/ui/autocomplete.d.ts.map +1 -1
  143. package/dist/ui/autocomplete.js +82 -57
  144. package/dist/ui/avatar.d.ts.map +1 -1
  145. package/dist/ui/avatar.js +45 -34
  146. package/dist/ui/badge.d.ts +1 -1
  147. package/dist/ui/badge.d.ts.map +1 -1
  148. package/dist/ui/badge.js +70 -65
  149. package/dist/ui/banner.d.ts.map +1 -1
  150. package/dist/ui/banner.js +53 -39
  151. package/dist/ui/breadcrumb.d.ts +2 -0
  152. package/dist/ui/breadcrumb.d.ts.map +1 -1
  153. package/dist/ui/breadcrumb.js +21 -21
  154. package/dist/ui/button.d.ts +10 -1
  155. package/dist/ui/button.d.ts.map +1 -1
  156. package/dist/ui/button.js +103 -67
  157. package/dist/ui/card.d.ts +2 -2
  158. package/dist/ui/card.d.ts.map +1 -1
  159. package/dist/ui/card.js +61 -53
  160. package/dist/ui/charts/_internal/animation.d.ts +1 -1
  161. package/dist/ui/charts/_internal/animation.d.ts.map +1 -1
  162. package/dist/ui/charts/area-chart.d.ts +3 -5
  163. package/dist/ui/charts/area-chart.d.ts.map +1 -1
  164. package/dist/ui/charts/bar-chart.d.ts +3 -5
  165. package/dist/ui/charts/bar-chart.d.ts.map +1 -1
  166. package/dist/ui/charts/chart-container.d.ts +2 -5
  167. package/dist/ui/charts/chart-container.d.ts.map +1 -1
  168. package/dist/ui/charts/gauge-chart.d.ts +3 -5
  169. package/dist/ui/charts/gauge-chart.d.ts.map +1 -1
  170. package/dist/ui/charts/index.js +1204 -1095
  171. package/dist/ui/charts/line-chart.d.ts +3 -5
  172. package/dist/ui/charts/line-chart.d.ts.map +1 -1
  173. package/dist/ui/charts/pie-chart.d.ts +2 -5
  174. package/dist/ui/charts/pie-chart.d.ts.map +1 -1
  175. package/dist/ui/charts/radar-chart.d.ts +3 -5
  176. package/dist/ui/charts/radar-chart.d.ts.map +1 -1
  177. package/dist/ui/charts/sparkline.d.ts +5 -5
  178. package/dist/ui/charts/sparkline.d.ts.map +1 -1
  179. package/dist/ui/checkbox.d.ts.map +1 -1
  180. package/dist/ui/checkbox.js +31 -19
  181. package/dist/ui/chip.d.ts +3 -2
  182. package/dist/ui/chip.d.ts.map +1 -1
  183. package/dist/ui/chip.js +62 -54
  184. package/dist/ui/code.js +16 -16
  185. package/dist/ui/collapsible.d.ts.map +1 -1
  186. package/dist/ui/collapsible.js +23 -15
  187. package/dist/ui/color-input.d.ts +1 -1
  188. package/dist/ui/color-input.d.ts.map +1 -1
  189. package/dist/ui/color-input.js +27 -27
  190. package/dist/ui/combobox.d.ts +2 -0
  191. package/dist/ui/combobox.d.ts.map +1 -1
  192. package/dist/ui/combobox.js +177 -166
  193. package/dist/ui/context-menu.d.ts +4 -2
  194. package/dist/ui/context-menu.d.ts.map +1 -1
  195. package/dist/ui/context-menu.js +146 -86
  196. package/dist/ui/data-table-toolbar.d.ts +3 -2
  197. package/dist/ui/data-table-toolbar.d.ts.map +1 -1
  198. package/dist/ui/data-table-toolbar.js +61 -59
  199. package/dist/ui/data-table.d.ts.map +1 -1
  200. package/dist/ui/data-table.js +289 -254
  201. package/dist/ui/dialog.d.ts +3 -1
  202. package/dist/ui/dialog.d.ts.map +1 -1
  203. package/dist/ui/dialog.js +114 -74
  204. package/dist/ui/dropdown-menu.d.ts +5 -3
  205. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  206. package/dist/ui/dropdown-menu.js +150 -89
  207. package/dist/ui/file-upload.d.ts.map +1 -1
  208. package/dist/ui/file-upload.js +169 -127
  209. package/dist/ui/form.d.ts.map +1 -1
  210. package/dist/ui/form.js +29 -26
  211. package/dist/ui/hover-card.d.ts +1 -1
  212. package/dist/ui/hover-card.d.ts.map +1 -1
  213. package/dist/ui/hover-card.js +53 -21
  214. package/dist/ui/index.d.ts +18 -18
  215. package/dist/ui/index.d.ts.map +1 -1
  216. package/dist/ui/index.js +432 -449
  217. package/dist/ui/input-otp.d.ts +2 -0
  218. package/dist/ui/input-otp.d.ts.map +1 -1
  219. package/dist/ui/input-otp.js +7 -7
  220. package/dist/ui/input.d.ts.map +1 -1
  221. package/dist/ui/input.js +36 -34
  222. package/dist/ui/label.js +12 -12
  223. package/dist/ui/lib/date-utils.d.ts +6 -0
  224. package/dist/ui/lib/date-utils.d.ts.map +1 -0
  225. package/dist/ui/lib/index.d.ts +7 -0
  226. package/dist/ui/lib/index.d.ts.map +1 -0
  227. package/dist/ui/lib/link-context.d.ts +13 -0
  228. package/dist/ui/lib/link-context.d.ts.map +1 -0
  229. package/dist/ui/lib/motion.d.ts +44 -9
  230. package/dist/ui/lib/motion.d.ts.map +1 -1
  231. package/dist/ui/lib/use-ripple.d.ts.map +1 -1
  232. package/dist/ui/lib/utils.js +1 -1
  233. package/dist/ui/link.js +11 -11
  234. package/dist/ui/menubar.d.ts +4 -2
  235. package/dist/ui/menubar.d.ts.map +1 -1
  236. package/dist/ui/menubar.js +141 -97
  237. package/dist/ui/navigation-menu.d.ts +2 -0
  238. package/dist/ui/navigation-menu.d.ts.map +1 -1
  239. package/dist/ui/navigation-menu.js +176 -73
  240. package/dist/ui/number-input.d.ts.map +1 -1
  241. package/dist/ui/number-input.js +56 -49
  242. package/dist/ui/pagination.js +22 -22
  243. package/dist/ui/popover.d.ts +2 -1
  244. package/dist/ui/popover.d.ts.map +1 -1
  245. package/dist/ui/popover.js +54 -22
  246. package/dist/ui/progress.d.ts.map +1 -1
  247. package/dist/ui/progress.js +58 -42
  248. package/dist/ui/radio.js +19 -19
  249. package/dist/ui/search-input.d.ts.map +1 -1
  250. package/dist/ui/search-input.js +28 -33
  251. package/dist/ui/segmented-control.d.ts +2 -2
  252. package/dist/ui/segmented-control.d.ts.map +1 -1
  253. package/dist/ui/segmented-control.js +143 -124
  254. package/dist/ui/select.d.ts.map +1 -1
  255. package/dist/ui/select.js +72 -61
  256. package/dist/ui/separator.js +11 -11
  257. package/dist/ui/sheet.d.ts +1 -1
  258. package/dist/ui/sheet.d.ts.map +1 -1
  259. package/dist/ui/sheet.js +111 -75
  260. package/dist/ui/sidebar.d.ts +6 -1
  261. package/dist/ui/sidebar.d.ts.map +1 -1
  262. package/dist/ui/sidebar.js +27 -25
  263. package/dist/ui/skeleton.js +1 -1
  264. package/dist/ui/slider.d.ts +9 -0
  265. package/dist/ui/slider.d.ts.map +1 -1
  266. package/dist/ui/slider.js +33 -27
  267. package/dist/ui/spinner.d.ts +32 -25
  268. package/dist/ui/spinner.d.ts.map +1 -1
  269. package/dist/ui/spinner.js +199 -40
  270. package/dist/ui/stat-card.d.ts.map +1 -1
  271. package/dist/ui/stat-card.js +183 -116
  272. package/dist/ui/stepper.d.ts +22 -1
  273. package/dist/ui/stepper.d.ts.map +1 -1
  274. package/dist/ui/stepper.js +121 -43
  275. package/dist/ui/switch.d.ts.map +1 -1
  276. package/dist/ui/switch.js +39 -26
  277. package/dist/ui/table.d.ts +3 -0
  278. package/dist/ui/table.d.ts.map +1 -1
  279. package/dist/ui/table.js +47 -47
  280. package/dist/ui/tabs.d.ts +4 -1
  281. package/dist/ui/tabs.d.ts.map +1 -1
  282. package/dist/ui/tabs.js +94 -44
  283. package/dist/ui/text.d.ts +3 -3
  284. package/dist/ui/text.js +1 -1
  285. package/dist/ui/textarea.d.ts.map +1 -1
  286. package/dist/ui/textarea.js +29 -27
  287. package/dist/ui/toast-types.d.ts +43 -0
  288. package/dist/ui/toast-types.d.ts.map +1 -0
  289. package/dist/ui/toast-types.js +2 -0
  290. package/dist/ui/toast.d.ts +60 -26
  291. package/dist/ui/toast.d.ts.map +1 -1
  292. package/dist/ui/toast.js +535 -89
  293. package/dist/ui/toaster.d.ts +19 -23
  294. package/dist/ui/toaster.d.ts.map +1 -1
  295. package/dist/ui/toaster.js +31 -21
  296. package/dist/ui/toggle-group.d.ts +2 -2
  297. package/dist/ui/toggle-group.d.ts.map +1 -1
  298. package/dist/ui/toggle-group.js +29 -26
  299. package/dist/ui/toggle.d.ts +2 -2
  300. package/dist/ui/toggle.d.ts.map +1 -1
  301. package/dist/ui/toggle.js +21 -17
  302. package/dist/ui/tooltip.d.ts +2 -1
  303. package/dist/ui/tooltip.d.ts.map +1 -1
  304. package/dist/ui/tooltip.js +58 -21
  305. package/dist/ui/tree-view/tree-view.d.ts +1 -1
  306. package/dist/ui/tree-view/tree-view.d.ts.map +1 -1
  307. package/llms-full.txt +221 -102
  308. package/llms.txt +65 -12
  309. package/package.json +26 -8
  310. package/dist/_chunks/switch.js +0 -10
  311. package/dist/composed/upload-progress.d.ts +0 -33
  312. package/dist/composed/upload-progress.d.ts.map +0 -1
  313. package/dist/composed/upload-progress.js +0 -386
  314. package/dist/ui/lib/use-reduced-motion.d.ts +0 -4
  315. package/dist/ui/lib/use-reduced-motion.d.ts.map +0 -1
  316. package/dist/ui/transitions.d.ts +0 -17
  317. package/dist/ui/transitions.d.ts.map +0 -1
  318. package/dist/ui/transitions.js +0 -111
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { jsxs as t, jsx as e, Fragment as A } from "react/jsx-runtime";
2
+ import { jsxs as r, jsx as e, Fragment as A } from "react/jsx-runtime";
3
3
  import * as m from "react";
4
- import { useLink as R } from "./link-context.js";
5
- import { S as T, a as z, b, c as H, d as U, e as $, f as q, g as E, h as J, i as L, j as M, k as j, l as I, m as K, n as Q, o as V } from "../_chunks/sidebar.js";
4
+ import { u as R } from "../_chunks/link-context.js";
5
+ import { S as T, a as z, b as f, c as H, d as U, e as $, f as q, g as E, h as J, i as L, j as M, k as j, l as I, m as K, n as Q, o as V } from "../_chunks/sidebar.js";
6
6
  import { Collapsible as X, CollapsibleTrigger as Y, CollapsibleContent as Z } from "../ui/collapsible.js";
7
7
  import { A as _, a as P, b as ee } from "../_chunks/avatar.js";
8
- import { c as v } from "../_chunks/utils.js";
9
- function ae({ className: r }) {
8
+ import { c as b } from "../_chunks/utils.js";
9
+ function ae({ className: s }) {
10
10
  return /* @__PURE__ */ e(
11
11
  "svg",
12
12
  {
@@ -19,13 +19,13 @@ function ae({ className: r }) {
19
19
  strokeWidth: "2",
20
20
  strokeLinecap: "round",
21
21
  strokeLinejoin: "round",
22
- className: r,
22
+ className: s,
23
23
  children: /* @__PURE__ */ e("path", { d: "m9 18 6-6-6-6" })
24
24
  }
25
25
  );
26
26
  }
27
- function re({ className: r }) {
28
- return /* @__PURE__ */ t(
27
+ function se({ className: s }) {
28
+ return /* @__PURE__ */ r(
29
29
  "svg",
30
30
  {
31
31
  xmlns: "http://www.w3.org/2000/svg",
@@ -37,7 +37,7 @@ function re({ className: r }) {
37
37
  strokeWidth: "2",
38
38
  strokeLinecap: "round",
39
39
  strokeLinejoin: "round",
40
- className: r,
40
+ className: s,
41
41
  children: [
42
42
  /* @__PURE__ */ e("path", { d: "M18 6 6 18" }),
43
43
  /* @__PURE__ */ e("path", { d: "m6 6 12 12" })
@@ -45,38 +45,38 @@ function re({ className: r }) {
45
45
  }
46
46
  );
47
47
  }
48
- const B = "relative gap-ds-04 rounded-ds-lg px-ds-04 py-ds-03 transition-colors", F = "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-['']", G = "text-text-helper hover:bg-layer-02 hover:text-text-primary";
49
- function te({
50
- item: r,
51
- isActive: n,
52
- isPathActive: p
48
+ const B = "relative gap-ds-04 rounded-ds-lg px-ds-04 py-ds-03 transition-colors", F = "bg-accent-2 text-accent-11 after:absolute after:right-0 after:top-0 after:h-full after:w-ds-01 after:rounded-l-ds-full after:bg-accent-9 after:content-['']", G = "text-surface-fg-subtle hover:bg-surface-2 hover:text-surface-fg";
49
+ function re({
50
+ item: s,
51
+ isActive: t,
52
+ isPathActive: u
53
53
  }) {
54
- const h = R(), i = r.badge != null ? typeof r.badge == "number" && r.badge > 99 ? "99+" : String(r.badge) : null;
55
- if (r.children && r.children.length > 0) {
56
- const c = r.children.some(
57
- (l) => p(l.href, l.exact)
58
- ), u = c || n || (r.defaultOpen ?? !1);
59
- return /* @__PURE__ */ e(X, { defaultOpen: u, className: "group/collapsible", children: /* @__PURE__ */ t(M, { children: [
60
- /* @__PURE__ */ t("div", { className: "relative", children: [
54
+ const h = R(), i = s.badge != null ? typeof s.badge == "number" && s.badge > 99 ? "99+" : String(s.badge) : null;
55
+ if (s.children && s.children.length > 0) {
56
+ const d = s.children.some(
57
+ (l) => u(l.href, l.exact)
58
+ ), g = d || t || (s.defaultOpen ?? !1);
59
+ return /* @__PURE__ */ e(X, { defaultOpen: g, className: "group/collapsible", children: /* @__PURE__ */ r(M, { children: [
60
+ /* @__PURE__ */ r("div", { className: "relative", children: [
61
61
  /* @__PURE__ */ e(
62
62
  j,
63
63
  {
64
64
  asChild: !0,
65
- isActive: n || c,
66
- tooltip: r.title,
67
- className: v(
65
+ isActive: t || d,
66
+ tooltip: s.title,
67
+ className: b(
68
68
  B,
69
- n || c ? F : G
69
+ t || d ? F : G
70
70
  ),
71
- children: /* @__PURE__ */ t(
71
+ children: /* @__PURE__ */ r(
72
72
  h,
73
73
  {
74
- href: r.href,
75
- "aria-label": r.title,
76
- "aria-current": n ? "page" : void 0,
74
+ href: s.href,
75
+ "aria-label": s.title,
76
+ "aria-current": t ? "page" : void 0,
77
77
  children: [
78
- /* @__PURE__ */ e("span", { className: "[&>svg]:h-ico-md [&>svg]:w-ico-md shrink-0", "aria-hidden": "true", children: r.icon }),
79
- /* @__PURE__ */ e("span", { className: "text-ds-base", children: r.title })
78
+ /* @__PURE__ */ e("span", { className: "[&>svg]:h-ico-md [&>svg]:w-ico-md shrink-0", "aria-hidden": "true", children: s.icon }),
79
+ /* @__PURE__ */ e("span", { className: "text-ds-base", children: s.title })
80
80
  ]
81
81
  }
82
82
  )
@@ -86,20 +86,20 @@ function te({
86
86
  /* @__PURE__ */ e(Y, { asChild: !0, children: /* @__PURE__ */ e(
87
87
  "button",
88
88
  {
89
- className: "absolute right-ds-02 top-1/2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded-ds-md text-text-helper transition-colors hover:bg-layer-02 hover:text-text-primary group-data-[collapsible=icon]:hidden",
90
- "aria-label": `Toggle ${r.title}`,
89
+ className: "absolute right-ds-02 top-1/2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded-ds-md text-surface-fg-subtle transition-colors hover:bg-surface-2 hover:text-surface-fg group-data-[collapsible=icon]:hidden",
90
+ "aria-label": `Toggle ${s.title}`,
91
91
  children: /* @__PURE__ */ e(ae, { className: "h-4 w-4 transition-transform duration-fast-02 ease-productive-standard group-data-[state=open]/collapsible:rotate-90" })
92
92
  }
93
93
  ) })
94
94
  ] }),
95
- /* @__PURE__ */ e(Z, { className: "overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down", children: /* @__PURE__ */ e(K, { children: r.children.map((l) => {
96
- const a = p(l.href, l.exact);
95
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(K, { children: s.children.map((l) => {
96
+ const a = u(l.href, l.exact);
97
97
  return /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(
98
98
  V,
99
99
  {
100
100
  asChild: !0,
101
101
  isActive: a,
102
- children: /* @__PURE__ */ t(
102
+ children: /* @__PURE__ */ r(
103
103
  h,
104
104
  {
105
105
  href: l.href,
@@ -115,26 +115,26 @@ function te({
115
115
  }) }) })
116
116
  ] }) });
117
117
  }
118
- return /* @__PURE__ */ t(M, { children: [
118
+ return /* @__PURE__ */ r(M, { children: [
119
119
  /* @__PURE__ */ e(
120
120
  j,
121
121
  {
122
122
  asChild: !0,
123
- isActive: n,
124
- tooltip: r.title,
125
- className: v(
123
+ isActive: t,
124
+ tooltip: s.title,
125
+ className: b(
126
126
  B,
127
- n ? F : G
127
+ t ? F : G
128
128
  ),
129
- children: /* @__PURE__ */ t(
129
+ children: /* @__PURE__ */ r(
130
130
  h,
131
131
  {
132
- href: r.href,
133
- "aria-label": r.title,
134
- "aria-current": n ? "page" : void 0,
132
+ href: s.href,
133
+ "aria-label": s.title,
134
+ "aria-current": t ? "page" : void 0,
135
135
  children: [
136
- /* @__PURE__ */ e("span", { className: "[&>svg]:h-ico-md [&>svg]:w-ico-md shrink-0", "aria-hidden": "true", children: r.icon }),
137
- /* @__PURE__ */ e("span", { className: "text-ds-base", children: r.title })
136
+ /* @__PURE__ */ e("span", { className: "[&>svg]:h-ico-md [&>svg]:w-ico-md shrink-0", "aria-hidden": "true", children: s.icon }),
137
+ /* @__PURE__ */ e("span", { className: "text-ds-base", children: s.title })
138
138
  ]
139
139
  }
140
140
  )
@@ -143,144 +143,144 @@ function te({
143
143
  i && /* @__PURE__ */ e(I, { children: i })
144
144
  ] });
145
145
  }
146
- const se = m.forwardRef(
146
+ const ne = m.forwardRef(
147
147
  ({
148
- currentPath: r = "/",
149
- user: n,
150
- navGroups: p = [],
148
+ currentPath: s = "/",
149
+ user: t,
150
+ navGroups: u = [],
151
151
  logo: h,
152
152
  headerSlot: i,
153
- preFooterSlot: c,
154
- preFooterClassName: u,
153
+ preFooterSlot: d,
154
+ preFooterClassName: g,
155
155
  footerLinks: l = [],
156
156
  footer: a,
157
- renderItem: g,
157
+ renderItem: x,
158
158
  className: D,
159
159
  ...O
160
160
  }, W) => {
161
- var N, w, y, C;
162
- const x = R(), f = (s, d = !1) => d || s === "/" ? r === s : r.startsWith(s);
163
- return /* @__PURE__ */ t(
161
+ var N, w, C, S;
162
+ const p = R(), v = (n, c = !1) => c || n === "/" ? s === n : s.startsWith(n);
163
+ return /* @__PURE__ */ r(
164
164
  T,
165
165
  {
166
166
  ...O,
167
167
  ref: W,
168
168
  "aria-label": "Main navigation",
169
- className: v(
170
- "z-raised hidden h-full flex-col border-r border-border bg-layer-01 md:flex",
169
+ className: b(
170
+ "z-raised hidden h-full flex-col border-r border-surface-border-strong bg-surface-1 md:flex",
171
171
  D
172
172
  ),
173
173
  children: [
174
- /* @__PURE__ */ e(z, { className: "px-ds-06 py-ds-06", children: h ?? /* @__PURE__ */ e("span", { className: "text-ds-lg font-semibold text-text-primary", children: "Logo" }) }),
175
- n && /* @__PURE__ */ t("div", { className: "flex items-center gap-ds-04 px-ds-06 pb-ds-05", children: [
176
- /* @__PURE__ */ t(_, { className: "h-ds-sm-plus w-ds-sm-plus", children: [
177
- n.image ? /* @__PURE__ */ e(P, { src: n.image, alt: n.name }) : null,
178
- /* @__PURE__ */ e(ee, { className: "bg-layer-03 text-text-primary", children: (N = n.name) == null ? void 0 : N.charAt(0).toUpperCase() })
174
+ /* @__PURE__ */ e(z, { className: "px-ds-06 py-ds-06", children: h ?? /* @__PURE__ */ e("span", { className: "text-ds-lg font-semibold text-surface-fg", children: "Logo" }) }),
175
+ t && /* @__PURE__ */ r("div", { className: "flex items-center gap-ds-04 px-ds-06 pb-ds-05", children: [
176
+ /* @__PURE__ */ r(_, { className: "h-ds-sm-plus w-ds-sm-plus", children: [
177
+ t.image ? /* @__PURE__ */ e(P, { src: t.image, alt: t.name }) : null,
178
+ /* @__PURE__ */ e(ee, { className: "bg-surface-3 text-surface-fg", children: (N = t.name) == null ? void 0 : N.charAt(0).toUpperCase() })
179
179
  ] }),
180
- /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col", children: [
181
- /* @__PURE__ */ e("span", { className: "truncate text-ds-md text-text-primary", children: n.name }),
182
- /* @__PURE__ */ e("span", { className: "truncate text-ds-sm text-text-placeholder", children: n.designation || n.role })
180
+ /* @__PURE__ */ r("div", { className: "flex min-w-0 flex-col", children: [
181
+ /* @__PURE__ */ e("span", { className: "truncate text-ds-md text-surface-fg", children: t.name }),
182
+ /* @__PURE__ */ e("span", { className: "truncate text-ds-sm text-surface-fg-subtle", children: t.designation || t.role })
183
183
  ] })
184
184
  ] }),
185
- /* @__PURE__ */ e(b, {}),
186
- i && /* @__PURE__ */ t(A, { children: [
185
+ /* @__PURE__ */ e(f, {}),
186
+ i && /* @__PURE__ */ r(A, { children: [
187
187
  i,
188
- /* @__PURE__ */ e(b, {})
188
+ /* @__PURE__ */ e(f, {})
189
189
  ] }),
190
- /* @__PURE__ */ e(H, { className: "no-scrollbar px-ds-04", children: p.map((s, d) => /* @__PURE__ */ t("div", { children: [
191
- d > 0 && /* @__PURE__ */ e(b, {}),
192
- /* @__PURE__ */ t(U, { children: [
193
- /* @__PURE__ */ e($, { className: "px-ds-04 text-ds-sm text-text-placeholder", children: s.label }),
194
- s.action && /* @__PURE__ */ e(q, { asChild: !0, children: s.action }),
195
- /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(J, { children: s.items.map((o) => {
196
- const S = () => /* @__PURE__ */ e(
197
- te,
190
+ /* @__PURE__ */ e(H, { className: "no-scrollbar px-ds-04", children: u.map((n, c) => /* @__PURE__ */ r("div", { children: [
191
+ c > 0 && /* @__PURE__ */ e(f, {}),
192
+ /* @__PURE__ */ r(U, { children: [
193
+ /* @__PURE__ */ e($, { className: "px-ds-04 text-ds-sm text-surface-fg-subtle", children: n.label }),
194
+ n.action && /* @__PURE__ */ e(q, { asChild: !0, children: n.action }),
195
+ /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(J, { children: n.items.map((o) => {
196
+ const k = () => /* @__PURE__ */ e(
197
+ re,
198
198
  {
199
199
  item: o,
200
- isActive: f(o.href, o.exact),
201
- isPathActive: f
200
+ isActive: v(o.href, o.exact),
201
+ isPathActive: v
202
202
  }
203
203
  );
204
- if (g) {
205
- const k = g(o, S);
206
- if (k !== null)
207
- return /* @__PURE__ */ e(m.Fragment, { children: k }, o.href);
204
+ if (x) {
205
+ const y = x(o, k);
206
+ if (y !== null)
207
+ return /* @__PURE__ */ e(m.Fragment, { children: y }, o.href);
208
208
  }
209
- return /* @__PURE__ */ e(m.Fragment, { children: S() }, o.href);
209
+ return /* @__PURE__ */ e(m.Fragment, { children: k() }, o.href);
210
210
  }) }) })
211
211
  ] })
212
- ] }, s.label)) }),
213
- c && /* @__PURE__ */ t(A, { children: [
214
- /* @__PURE__ */ e(b, {}),
215
- /* @__PURE__ */ e("div", { className: u, children: c })
212
+ ] }, n.label)) }),
213
+ d && /* @__PURE__ */ r(A, { children: [
214
+ /* @__PURE__ */ e(f, {}),
215
+ /* @__PURE__ */ e("div", { className: g, children: d })
216
216
  ] }),
217
- a ? /* @__PURE__ */ t(L, { className: "gap-ds-03 px-ds-06 py-ds-05", children: [
217
+ a ? /* @__PURE__ */ r(L, { className: "gap-ds-03 px-ds-06 py-ds-05", children: [
218
218
  a.slot && /* @__PURE__ */ e("div", { children: a.slot }),
219
- a.promo && /* @__PURE__ */ t("div", { className: "relative rounded-ds-lg border border-border-subtle bg-layer-02 p-ds-04", children: [
219
+ a.promo && /* @__PURE__ */ r("div", { className: "relative rounded-ds-lg border border-surface-border bg-surface-2 p-ds-04", children: [
220
220
  a.promo.onDismiss && /* @__PURE__ */ e(
221
221
  "button",
222
222
  {
223
223
  onClick: a.promo.onDismiss,
224
224
  "aria-label": "Dismiss",
225
- className: "absolute right-ds-02 top-ds-02 flex h-5 w-5 items-center justify-center rounded-ds-md text-text-helper transition-colors hover:bg-layer-03 hover:text-text-primary",
226
- children: /* @__PURE__ */ e(re, { className: "h-3.5 w-3.5" })
225
+ className: "absolute right-ds-02 top-ds-02 flex h-5 w-5 items-center justify-center rounded-ds-md text-surface-fg-subtle transition-colors hover:bg-surface-3 hover:text-surface-fg",
226
+ children: /* @__PURE__ */ e(se, { className: "h-3.5 w-3.5" })
227
227
  }
228
228
  ),
229
- /* @__PURE__ */ t("div", { className: "flex flex-col gap-ds-03", children: [
230
- a.promo.icon && /* @__PURE__ */ e("span", { className: "text-interactive [&>svg]:h-ico-md [&>svg]:w-ico-md", "aria-hidden": "true", children: a.promo.icon }),
231
- /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-ds-03", children: [
232
- /* @__PURE__ */ e("p", { className: "text-ds-sm text-text-primary", children: a.promo.text }),
229
+ /* @__PURE__ */ r("div", { className: "flex flex-col gap-ds-03", children: [
230
+ a.promo.icon && /* @__PURE__ */ e("span", { className: "text-accent-11 [&>svg]:h-ico-md [&>svg]:w-ico-md", "aria-hidden": "true", children: a.promo.icon }),
231
+ /* @__PURE__ */ r("div", { className: "flex min-w-0 flex-col gap-ds-03", children: [
232
+ /* @__PURE__ */ e("p", { className: "text-ds-sm text-surface-fg", children: a.promo.text }),
233
233
  a.promo.action && (a.promo.action.href ? /* @__PURE__ */ e(
234
- x,
234
+ p,
235
235
  {
236
236
  href: a.promo.action.href,
237
237
  onClick: a.promo.action.onClick,
238
- className: "inline-flex self-start rounded-ds-md bg-interactive px-ds-04 py-ds-02 text-ds-sm font-medium text-text-on-color transition-colors hover:bg-interactive-hover",
238
+ className: "inline-flex self-start rounded-ds-md bg-accent-9 px-ds-04 py-ds-02 text-ds-sm font-medium text-accent-fg transition-colors hover:bg-accent-10",
239
239
  children: a.promo.action.label
240
240
  }
241
241
  ) : /* @__PURE__ */ e(
242
242
  "button",
243
243
  {
244
244
  onClick: a.promo.action.onClick,
245
- className: "inline-flex self-start rounded-ds-md bg-interactive px-ds-04 py-ds-02 text-ds-sm font-medium text-text-on-color transition-colors hover:bg-interactive-hover",
245
+ className: "inline-flex self-start rounded-ds-md bg-accent-9 px-ds-04 py-ds-02 text-ds-sm font-medium text-accent-fg transition-colors hover:bg-accent-10",
246
246
  children: a.promo.action.label
247
247
  }
248
248
  ))
249
249
  ] })
250
250
  ] })
251
251
  ] }),
252
- (((w = a.links) == null ? void 0 : w.length) || a.version) && /* @__PURE__ */ t("div", { className: "flex items-center gap-ds-03 text-ds-sm text-text-placeholder", children: [
253
- (y = a.links) == null ? void 0 : y.map((s, d) => /* @__PURE__ */ t(m.Fragment, { children: [
254
- d > 0 && /* @__PURE__ */ e("span", { children: "·" }),
252
+ (((w = a.links) == null ? void 0 : w.length) || a.version) && /* @__PURE__ */ r("div", { className: "flex items-center gap-ds-03 text-ds-sm text-surface-fg-subtle", children: [
253
+ (C = a.links) == null ? void 0 : C.map((n, c) => /* @__PURE__ */ r(m.Fragment, { children: [
254
+ c > 0 && /* @__PURE__ */ e("span", { children: "·" }),
255
255
  /* @__PURE__ */ e(
256
- x,
256
+ p,
257
257
  {
258
- className: "transition-colors hover:text-interactive",
259
- href: s.href,
260
- children: s.label
258
+ className: "transition-colors hover:text-accent-11",
259
+ href: n.href,
260
+ children: n.label
261
261
  }
262
262
  )
263
- ] }, s.href)),
264
- ((C = a.links) == null ? void 0 : C.length) && a.version && /* @__PURE__ */ e("span", { children: "·" }),
265
- a.version && (typeof a.version == "string" ? /* @__PURE__ */ e("span", { children: a.version }) : /* @__PURE__ */ e(x, { className: "transition-colors hover:text-interactive", href: a.version.href, children: a.version.label }))
263
+ ] }, n.href)),
264
+ ((S = a.links) == null ? void 0 : S.length) && a.version && /* @__PURE__ */ e("span", { children: "·" }),
265
+ a.version && (typeof a.version == "string" ? /* @__PURE__ */ e("span", { children: a.version }) : /* @__PURE__ */ e(p, { className: "transition-colors hover:text-accent-11", href: a.version.href, children: a.version.label }))
266
266
  ] })
267
- ] }) : l.length > 0 ? /* @__PURE__ */ e(L, { className: "px-ds-06 py-ds-05", children: /* @__PURE__ */ e("div", { className: "flex items-center gap-ds-03 text-ds-sm text-text-placeholder", children: l.map((s, d) => /* @__PURE__ */ t(m.Fragment, { children: [
268
- d > 0 && /* @__PURE__ */ e("span", { children: "·" }),
267
+ ] }) : l.length > 0 ? /* @__PURE__ */ e(L, { className: "px-ds-06 py-ds-05", children: /* @__PURE__ */ e("div", { className: "flex items-center gap-ds-03 text-ds-sm text-surface-fg-subtle", children: l.map((n, c) => /* @__PURE__ */ r(m.Fragment, { children: [
268
+ c > 0 && /* @__PURE__ */ e("span", { children: "·" }),
269
269
  /* @__PURE__ */ e(
270
- x,
270
+ p,
271
271
  {
272
- className: "transition-colors hover:text-interactive",
273
- href: s.href,
274
- children: s.label
272
+ className: "transition-colors hover:text-accent-11",
273
+ href: n.href,
274
+ children: n.label
275
275
  }
276
276
  )
277
- ] }, s.href)) }) }) : null
277
+ ] }, n.href)) }) }) : null
278
278
  ]
279
279
  }
280
280
  );
281
281
  }
282
282
  );
283
- se.displayName = "AppSidebar";
283
+ ne.displayName = "AppSidebar";
284
284
  export {
285
- se as AppSidebar
285
+ ne as AppSidebar
286
286
  };
@@ -1,30 +1,30 @@
1
1
  "use client";
2
2
  import { jsxs as s, jsx as e, Fragment as D } from "react/jsx-runtime";
3
- import * as g from "react";
3
+ import * as w from "react";
4
4
  import { useColorMode as I } from "../hooks/use-color-mode.js";
5
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 a, DropdownMenuSeparator as w } from "../ui/dropdown-menu.js";
7
- import { a as c, b as n, c as i } from "../_chunks/tooltip.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
8
  import { p as R } from "../_chunks/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 d } from "../_chunks/utils.js";
11
- const H = g.forwardRef(
10
+ import { c as l } from "../_chunks/utils.js";
11
+ const H = w.forwardRef(
12
12
  ({
13
13
  pageTitle: m = "",
14
- user: l,
15
- onNavigate: t,
16
- onLogout: p,
17
- onSearchClick: h,
18
- onAiChatClick: x,
19
- mobileLogo: b,
20
- notificationSlot: N,
14
+ user: a,
15
+ onNavigate: c,
16
+ onLogout: f,
17
+ onSearchClick: u,
18
+ onAiChatClick: p,
19
+ mobileLogo: h,
20
+ notificationSlot: y,
21
21
  userMenuItems: o,
22
22
  className: C,
23
23
  ...k
24
24
  }, v) => {
25
- var u;
26
- const { colorMode: f, toggleColorMode: M } = I(), S = () => {
27
- h ? h() : document.dispatchEvent(
25
+ var g;
26
+ const { colorMode: b, toggleColorMode: M } = I(), S = () => {
27
+ u ? u() : document.dispatchEvent(
28
28
  new KeyboardEvent("keydown", {
29
29
  key: "k",
30
30
  ctrlKey: !0,
@@ -37,124 +37,124 @@ const H = g.forwardRef(
37
37
  {
38
38
  ...k,
39
39
  ref: v,
40
- className: d(
41
- "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
+ className: l(
41
+ "z-sticky flex w-full items-center border-b border-surface-border-strong bg-surface-1 px-ds-05 py-ds-04 md:px-ds-06",
42
42
  C
43
43
  ),
44
44
  children: [
45
45
  /* @__PURE__ */ s("div", { className: "flex items-center gap-ds-04", children: [
46
- /* @__PURE__ */ e(R, { className: "hidden text-text-secondary md:flex" }),
47
- b && /* @__PURE__ */ e("div", { className: "md:hidden", children: b }),
48
- m && /* @__PURE__ */ e("h2", { className: "hidden text-ds-lg text-text-primary md:block", children: m })
46
+ /* @__PURE__ */ e(R, { className: "hidden text-surface-fg-muted md:flex" }),
47
+ h && /* @__PURE__ */ e("div", { className: "md:hidden", children: h }),
48
+ m && /* @__PURE__ */ e("h2", { className: "hidden text-ds-lg text-surface-fg md:block", children: m })
49
49
  ] }),
50
50
  /* @__PURE__ */ s("div", { className: "ml-auto flex items-center gap-ds-03 md:gap-ds-05", children: [
51
- /* @__PURE__ */ s(c, { children: [
51
+ /* @__PURE__ */ s(t, { children: [
52
52
  /* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e(
53
53
  "button",
54
54
  {
55
55
  type: "button",
56
56
  onClick: S,
57
57
  "aria-label": "Search (Ctrl+K)",
58
- 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",
58
+ className: "flex h-ds-sm-plus w-ds-sm-plus items-center justify-center rounded-ds-full border border-surface-border-strong bg-surface-2 text-surface-fg-muted transition-colors hover:bg-surface-3",
59
59
  children: /* @__PURE__ */ e(z, { className: "h-ico-sm w-ico-sm", "aria-hidden": "true" })
60
60
  }
61
61
  ) }),
62
62
  /* @__PURE__ */ e(i, { side: "bottom", align: "center", children: "Search (Ctrl+K)" })
63
63
  ] }),
64
- N,
65
- x && /* @__PURE__ */ s(c, { children: [
64
+ y,
65
+ p && /* @__PURE__ */ s(t, { children: [
66
66
  /* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e(
67
67
  "button",
68
68
  {
69
69
  type: "button",
70
- onClick: x,
70
+ onClick: p,
71
71
  "aria-label": "AI Chat",
72
- 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",
72
+ className: "flex h-ds-sm-plus w-ds-sm-plus items-center justify-center rounded-ds-full border border-surface-border-strong bg-surface-2 text-surface-fg-muted transition-colors hover:bg-surface-3",
73
73
  children: /* @__PURE__ */ e(L, { className: "h-ico-sm w-ico-sm", "aria-hidden": "true" })
74
74
  }
75
75
  ) }),
76
76
  /* @__PURE__ */ e(i, { side: "bottom", align: "center", children: "AI Chat" })
77
77
  ] }),
78
- l && /* @__PURE__ */ s(U, { children: [
79
- /* @__PURE__ */ s(c, { children: [
78
+ a && /* @__PURE__ */ s(U, { children: [
79
+ /* @__PURE__ */ s(t, { children: [
80
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
- l.image ? /* @__PURE__ */ e(K, { src: l.image, alt: l.name }) : null,
82
- /* @__PURE__ */ e(F, { className: "bg-layer-02 text-text-primary", children: (u = l.name) == null ? void 0 : u.charAt(0).toUpperCase() })
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() })
83
83
  ] }) }) }) }),
84
84
  /* @__PURE__ */ e(i, { side: "bottom", align: "center", children: "User Menu" })
85
85
  ] }),
86
86
  /* @__PURE__ */ s(
87
87
  E,
88
88
  {
89
- className: "w-[200px] rounded-ds-xl border border-border bg-layer-01 p-0 shadow-03",
89
+ className: "w-[200px] rounded-ds-xl border border-surface-border-strong bg-surface-1 p-0 shadow-03",
90
90
  sideOffset: 8,
91
91
  align: "end",
92
92
  children: [
93
- /* @__PURE__ */ s("div", { className: "border-b border-border px-ds-05 py-ds-04", children: [
94
- /* @__PURE__ */ e("p", { className: "text-ds-md text-text-primary", children: l.name }),
95
- l.email && /* @__PURE__ */ e("p", { className: "text-ds-sm text-text-placeholder", children: l.email })
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 })
96
96
  ] }),
97
97
  /* @__PURE__ */ s(
98
- a,
98
+ d,
99
99
  {
100
- className: "flex w-full cursor-pointer items-center gap-ds-03 px-ds-05 py-ds-04 hover:bg-layer-02",
101
- onClick: () => t == null ? void 0 : t("/profile"),
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"),
102
102
  children: [
103
- /* @__PURE__ */ e(O, { className: "h-ico-sm w-ico-sm text-text-secondary" }),
104
- /* @__PURE__ */ e("span", { className: "text-ds-md text-text-secondary", children: "Profile" })
103
+ /* @__PURE__ */ e(O, { className: "h-ico-sm w-ico-sm text-surface-fg-muted" }),
104
+ /* @__PURE__ */ e("span", { className: "text-ds-md text-surface-fg-muted", children: "Profile" })
105
105
  ]
106
106
  }
107
107
  ),
108
108
  o == null ? void 0 : o.map((r, T) => {
109
109
  const A = {
110
- error: "text-error",
111
- success: "text-success",
112
- warning: "text-warning",
113
- info: "text-info"
114
- }, y = r.color ? A[r.color] ?? "text-text-secondary" : "text-text-secondary";
115
- return /* @__PURE__ */ s(g.Fragment, { children: [
116
- r.separator && /* @__PURE__ */ e(w, { className: "bg-border" }),
110
+ error: "text-error-11",
111
+ success: "text-success-11",
112
+ warning: "text-warning-11",
113
+ info: "text-info-11"
114
+ }, x = r.color ? A[r.color] ?? "text-surface-fg-muted" : "text-surface-fg-muted";
115
+ return /* @__PURE__ */ s(w.Fragment, { children: [
116
+ r.separator && /* @__PURE__ */ e(N, { className: "bg-surface-border" }),
117
117
  /* @__PURE__ */ s(
118
- a,
118
+ d,
119
119
  {
120
- className: d(
121
- "flex w-full cursor-pointer items-center gap-ds-03 px-ds-05 py-ds-04 hover:bg-layer-02",
122
- r.disabled && "pointer-events-none opacity-[0.38]"
120
+ className: l(
121
+ "flex w-full cursor-pointer items-center gap-ds-03 px-ds-05 py-ds-04 hover:bg-surface-2",
122
+ r.disabled && "pointer-events-none opacity-action-disabled"
123
123
  ),
124
124
  disabled: r.disabled,
125
125
  onClick: () => {
126
- r.disabled || (r.onClick ? r.onClick() : r.href && (t == null || t(r.href)));
126
+ r.disabled || (r.onClick ? r.onClick() : r.href && (c == null || c(r.href)));
127
127
  },
128
128
  children: [
129
- r.icon && /* @__PURE__ */ e("span", { className: d("[&>svg]:h-ico-sm [&>svg]:w-ico-sm", y), children: r.icon }),
130
- /* @__PURE__ */ e("span", { className: d("text-ds-md", y), children: r.label }),
131
- r.badge != null && r.badge !== !1 && (typeof r.badge == "string" ? /* @__PURE__ */ e("span", { className: "ml-auto inline-flex h-[18px] min-w-[18px] items-center justify-center rounded-ds-full bg-error px-ds-02 text-[10px] font-semibold leading-none text-text-on-color", children: r.badge }) : /* @__PURE__ */ e("span", { className: "ml-auto h-[8px] w-[8px] rounded-ds-full bg-error" }))
129
+ r.icon && /* @__PURE__ */ e("span", { className: l("[&>svg]:h-ico-sm [&>svg]:w-ico-sm", x), children: r.icon }),
130
+ /* @__PURE__ */ e("span", { className: l("text-ds-md", x), children: r.label }),
131
+ r.badge != null && r.badge !== !1 && (typeof r.badge == "string" ? /* @__PURE__ */ e("span", { className: "ml-auto inline-flex h-[18px] min-w-[18px] items-center justify-center rounded-ds-full bg-error-9 px-ds-02 text-[10px] font-semibold leading-none text-accent-fg", children: r.badge }) : /* @__PURE__ */ e("span", { className: "ml-auto h-[8px] w-[8px] rounded-ds-full bg-error-9" }))
132
132
  ]
133
133
  }
134
134
  )
135
135
  ] }, r.label + T);
136
136
  }),
137
137
  /* @__PURE__ */ s(
138
- a,
138
+ d,
139
139
  {
140
- className: "flex w-full cursor-pointer items-center gap-ds-03 px-ds-05 py-ds-04 hover:bg-layer-02",
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,
142
142
  children: [
143
- f === "dark" ? /* @__PURE__ */ e(P, { className: "h-ico-sm w-ico-sm text-text-secondary" }) : /* @__PURE__ */ e(q, { className: "h-ico-sm w-ico-sm text-text-secondary" }),
144
- /* @__PURE__ */ e("span", { className: "text-ds-md text-text-secondary", children: f === "dark" ? "Light Mode" : "Dark Mode" })
143
+ b === "dark" ? /* @__PURE__ */ e(P, { className: "h-ico-sm w-ico-sm text-surface-fg-muted" }) : /* @__PURE__ */ e(q, { className: "h-ico-sm w-ico-sm text-surface-fg-muted" }),
144
+ /* @__PURE__ */ e("span", { className: "text-ds-md text-surface-fg-muted", children: b === "dark" ? "Light Mode" : "Dark Mode" })
145
145
  ]
146
146
  }
147
147
  ),
148
- p && /* @__PURE__ */ s(D, { children: [
149
- /* @__PURE__ */ e(w, { className: "bg-border" }),
148
+ f && /* @__PURE__ */ s(D, { children: [
149
+ /* @__PURE__ */ e(N, { className: "bg-surface-border" }),
150
150
  /* @__PURE__ */ s(
151
- a,
151
+ d,
152
152
  {
153
- className: "flex w-full cursor-pointer items-center gap-ds-03 px-ds-05 py-ds-04 hover:bg-layer-02",
154
- onClick: p,
153
+ className: "flex w-full cursor-pointer items-center gap-ds-03 px-ds-05 py-ds-04 hover:bg-surface-2",
154
+ onClick: f,
155
155
  children: [
156
- /* @__PURE__ */ e(G, { className: "h-ico-sm w-ico-sm text-error" }),
157
- /* @__PURE__ */ e("span", { className: "text-ds-md text-error", children: "Logout" })
156
+ /* @__PURE__ */ e(G, { className: "h-ico-sm w-ico-sm text-error-11" }),
157
+ /* @__PURE__ */ e("span", { className: "text-ds-md text-error-11", children: "Logout" })
158
158
  ]
159
159
  }
160
160
  )