@alfadocs/ui-kit-debug 0.50.1 → 0.51.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 (226) hide show
  1. package/dist/_chunks/{agenda-card-BaSfVfrL.js → agenda-card-Bl-SBiCh.js} +55 -45
  2. package/dist/_chunks/agenda-card-Bl-SBiCh.js.map +1 -0
  3. package/dist/_chunks/agenda-tray-DA6qj8BL.js +203 -0
  4. package/dist/_chunks/agenda-tray-DA6qj8BL.js.map +1 -0
  5. package/dist/_chunks/{ai-consent-banner-F2md5JD3.js → ai-consent-banner-DBKV27je.js} +2 -2
  6. package/dist/_chunks/{ai-consent-banner-F2md5JD3.js.map → ai-consent-banner-DBKV27je.js.map} +1 -1
  7. package/dist/_chunks/ai-tools-rail-7tC3GT4h.js +340 -0
  8. package/dist/_chunks/ai-tools-rail-7tC3GT4h.js.map +1 -0
  9. package/dist/_chunks/{alert-CUTxnym2.js → alert-_mUKLmwA.js} +54 -44
  10. package/dist/_chunks/alert-_mUKLmwA.js.map +1 -0
  11. package/dist/_chunks/{audio-recorder-DVJXV7_k.js → audio-recorder-D6OVfNiZ.js} +2 -2
  12. package/dist/_chunks/{audio-recorder-DVJXV7_k.js.map → audio-recorder-D6OVfNiZ.js.map} +1 -1
  13. package/dist/_chunks/{booking-DljH0JkS.js → booking-BUV9fspj.js} +2 -2
  14. package/dist/_chunks/{booking-DljH0JkS.js.map → booking-BUV9fspj.js.map} +1 -1
  15. package/dist/_chunks/{document-scanner-Cxqvq7GR.js → document-scanner-biBS_f6c.js} +2 -2
  16. package/dist/_chunks/{document-scanner-Cxqvq7GR.js.map → document-scanner-biBS_f6c.js.map} +1 -1
  17. package/dist/_chunks/dropdown-menu-DwwPovMZ.js +354 -0
  18. package/dist/_chunks/dropdown-menu-DwwPovMZ.js.map +1 -0
  19. package/dist/_chunks/{editable-currency-cell-renderer-Bh48OHRv.js → editable-currency-cell-renderer-D5C5tCfu.js} +3 -3
  20. package/dist/_chunks/{editable-currency-cell-renderer-Bh48OHRv.js.map → editable-currency-cell-renderer-D5C5tCfu.js.map} +1 -1
  21. package/dist/_chunks/{freemium-paywall-BWaLWje-.js → freemium-paywall-gHGA44dW.js} +2 -2
  22. package/dist/_chunks/{freemium-paywall-BWaLWje-.js.map → freemium-paywall-gHGA44dW.js.map} +1 -1
  23. package/dist/_chunks/{header-settings-Bx0Biimh.js → header-settings-D5Z2B_Yz.js} +3 -3
  24. package/dist/_chunks/{header-settings-Bx0Biimh.js.map → header-settings-D5Z2B_Yz.js.map} +1 -1
  25. package/dist/_chunks/{marketplace-app-shell-UKSLx9K_.js → marketplace-app-shell-Dmo1S9av.js} +6 -6
  26. package/dist/_chunks/{marketplace-app-shell-UKSLx9K_.js.map → marketplace-app-shell-Dmo1S9av.js.map} +1 -1
  27. package/dist/_chunks/{patient-search-BJOmTmDA.js → patient-search-CArmRKeg.js} +3 -3
  28. package/dist/_chunks/{patient-search-BJOmTmDA.js.map → patient-search-CArmRKeg.js.map} +1 -1
  29. package/dist/_chunks/{patient-shell-DUmhXnFq.js → patient-shell-c2YixkQw.js} +4 -4
  30. package/dist/_chunks/{patient-shell-DUmhXnFq.js.map → patient-shell-c2YixkQw.js.map} +1 -1
  31. package/dist/_chunks/{payment-form-xmeCkxas.js → payment-form-DJ9vnzrT.js} +2 -2
  32. package/dist/_chunks/{payment-form-xmeCkxas.js.map → payment-form-DJ9vnzrT.js.map} +1 -1
  33. package/dist/_chunks/{pdf-viewer-q1D3Uion.js → pdf-viewer-4odMFuFW.js} +2 -2
  34. package/dist/_chunks/{pdf-viewer-q1D3Uion.js.map → pdf-viewer-4odMFuFW.js.map} +1 -1
  35. package/dist/_chunks/{practice-results-Cq1y8JFD.js → practice-results-CtfciF2v.js} +3 -3
  36. package/dist/_chunks/{practice-results-Cq1y8JFD.js.map → practice-results-CtfciF2v.js.map} +1 -1
  37. package/dist/_chunks/{pregnancy-dating-DT_244bG.js → pregnancy-dating-BA37LSkF.js} +15 -15
  38. package/dist/_chunks/{pregnancy-dating-DT_244bG.js.map → pregnancy-dating-BA37LSkF.js.map} +1 -1
  39. package/dist/_chunks/{recaptcha-widget-CFYyLSEX.js → recaptcha-widget-BCNHsgqt.js} +2 -2
  40. package/dist/_chunks/{recaptcha-widget-CFYyLSEX.js.map → recaptcha-widget-BCNHsgqt.js.map} +1 -1
  41. package/dist/_chunks/{sidebar-h78cTNLh.js → sidebar-DPEHzxLZ.js} +397 -346
  42. package/dist/_chunks/sidebar-DPEHzxLZ.js.map +1 -0
  43. package/dist/_chunks/{sign-document-CZkAf28g.js → sign-document-Bzld9jVM.js} +2 -2
  44. package/dist/_chunks/{sign-document-CZkAf28g.js.map → sign-document-Bzld9jVM.js.map} +1 -1
  45. package/dist/_chunks/{task-card-CPyQ5AXC.js → task-card-BwY9jaV1.js} +48 -42
  46. package/dist/_chunks/task-card-BwY9jaV1.js.map +1 -0
  47. package/dist/_chunks/task-tray-Cb_hK4yb.js +234 -0
  48. package/dist/_chunks/task-tray-Cb_hK4yb.js.map +1 -0
  49. package/dist/_chunks/{theme-toggle-ClATnY4Q.js → theme-toggle-DAW7uC0B.js} +3 -3
  50. package/dist/_chunks/{theme-toggle-ClATnY4Q.js.map → theme-toggle-DAW7uC0B.js.map} +1 -1
  51. package/dist/_chunks/use-edge-resize-ZnGG7gyO.js +139 -0
  52. package/dist/_chunks/use-edge-resize-ZnGG7gyO.js.map +1 -0
  53. package/dist/_chunks/use-theme-CAuo6EYT.js +159 -0
  54. package/dist/_chunks/use-theme-CAuo6EYT.js.map +1 -0
  55. package/dist/_chunks/{warning-stack-CXfoAT-_.js → warning-stack-Cv4fr5zo.js} +2 -2
  56. package/dist/_chunks/{warning-stack-CXfoAT-_.js.map → warning-stack-Cv4fr5zo.js.map} +1 -1
  57. package/dist/_chunks/{workflow-map-DzX_LI4y.js → workflow-map-BJDUNYlX.js} +3 -3
  58. package/dist/_chunks/{workflow-map-DzX_LI4y.js.map → workflow-map-BJDUNYlX.js.map} +1 -1
  59. package/dist/agent-catalog.json +1 -1
  60. package/dist/components/agenda-card/agenda-card.d.ts +19 -2
  61. package/dist/components/agenda-card/agenda-card.d.ts.map +1 -1
  62. package/dist/components/agenda-card/index.js +1 -1
  63. package/dist/components/agenda-tray/agenda-tray.d.ts +24 -1
  64. package/dist/components/agenda-tray/agenda-tray.d.ts.map +1 -1
  65. package/dist/components/agenda-tray/index.js +1 -1
  66. package/dist/components/ai-consent-banner/index.js +1 -1
  67. package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +8 -0
  68. package/dist/components/ai-tools-rail/ai-tools-rail.d.ts.map +1 -1
  69. package/dist/components/ai-tools-rail/index.js +1 -1
  70. package/dist/components/alert/index.js +1 -1
  71. package/dist/components/audio-recorder/index.js +1 -1
  72. package/dist/components/booking/index.js +1 -1
  73. package/dist/components/button-group/button-group.d.ts +1 -1
  74. package/dist/components/checkbox-group/checkbox-group.d.ts +1 -1
  75. package/dist/components/data-table/index.js +1 -1
  76. package/dist/components/document-scanner/index.js +1 -1
  77. package/dist/components/dropdown-menu/dropdown-menu.d.ts +2 -0
  78. package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -1
  79. package/dist/components/dropdown-menu/index.js +1 -1
  80. package/dist/components/form-field/form-field.d.ts +1 -1
  81. package/dist/components/freemium-paywall/index.js +1 -1
  82. package/dist/components/header-settings/index.js +1 -1
  83. package/dist/components/icon-button-group/icon-button-group.d.ts +15 -15
  84. package/dist/components/key-value-pair/key-value-pair.d.ts +1 -1
  85. package/dist/components/patient-search/index.js +1 -1
  86. package/dist/components/payment-form/index.js +1 -1
  87. package/dist/components/pdf-viewer/index.js +1 -1
  88. package/dist/components/practice-results/index.js +1 -1
  89. package/dist/components/pregnancy-dating/index.js +1 -1
  90. package/dist/components/pregnancy-dating/pregnancy-dating.d.ts.map +1 -1
  91. package/dist/components/radio-group/radio-group.d.ts +1 -1
  92. package/dist/components/recaptcha-widget/index.js +1 -1
  93. package/dist/components/separator/separator.d.ts +1 -1
  94. package/dist/components/sidebar/index.js +1 -1
  95. package/dist/components/sidebar/sidebar.d.ts +8 -0
  96. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  97. package/dist/components/sign-document/index.js +1 -1
  98. package/dist/components/tabs/tabs.d.ts +2 -2
  99. package/dist/components/task-card/index.js +1 -1
  100. package/dist/components/task-card/task-card.d.ts +15 -1
  101. package/dist/components/task-card/task-card.d.ts.map +1 -1
  102. package/dist/components/task-tray/index.js +1 -1
  103. package/dist/components/task-tray/task-tray.d.ts +24 -1
  104. package/dist/components/task-tray/task-tray.d.ts.map +1 -1
  105. package/dist/components/theme-toggle/index.js +1 -1
  106. package/dist/components/warning-stack/index.js +1 -1
  107. package/dist/components/workflow/index.js +1 -1
  108. package/dist/components/workflow/workflow-map.d.ts +1 -1
  109. package/dist/hooks/index.d.ts +1 -0
  110. package/dist/hooks/index.d.ts.map +1 -1
  111. package/dist/hooks/index.js +12 -10
  112. package/dist/hooks/index.js.map +1 -1
  113. package/dist/hooks/use-edge-resize.d.ts +78 -0
  114. package/dist/hooks/use-edge-resize.d.ts.map +1 -0
  115. package/dist/hooks/use-theme.d.ts.map +1 -1
  116. package/dist/i18n/locales/ar.d.ts +4 -0
  117. package/dist/i18n/locales/ar.d.ts.map +1 -1
  118. package/dist/i18n/locales/ar.js +7 -3
  119. package/dist/i18n/locales/ar.js.map +1 -1
  120. package/dist/i18n/locales/de.d.ts +4 -0
  121. package/dist/i18n/locales/de.d.ts.map +1 -1
  122. package/dist/i18n/locales/de.js +7 -3
  123. package/dist/i18n/locales/de.js.map +1 -1
  124. package/dist/i18n/locales/el.d.ts +4 -0
  125. package/dist/i18n/locales/el.d.ts.map +1 -1
  126. package/dist/i18n/locales/el.js +7 -3
  127. package/dist/i18n/locales/el.js.map +1 -1
  128. package/dist/i18n/locales/en.d.ts +4 -0
  129. package/dist/i18n/locales/en.d.ts.map +1 -1
  130. package/dist/i18n/locales/en.js +7 -3
  131. package/dist/i18n/locales/en.js.map +1 -1
  132. package/dist/i18n/locales/es.d.ts +4 -0
  133. package/dist/i18n/locales/es.d.ts.map +1 -1
  134. package/dist/i18n/locales/es.js +7 -3
  135. package/dist/i18n/locales/es.js.map +1 -1
  136. package/dist/i18n/locales/fr.d.ts +4 -0
  137. package/dist/i18n/locales/fr.d.ts.map +1 -1
  138. package/dist/i18n/locales/fr.js +7 -3
  139. package/dist/i18n/locales/fr.js.map +1 -1
  140. package/dist/i18n/locales/hi.d.ts +4 -0
  141. package/dist/i18n/locales/hi.d.ts.map +1 -1
  142. package/dist/i18n/locales/hi.js +7 -3
  143. package/dist/i18n/locales/hi.js.map +1 -1
  144. package/dist/i18n/locales/it.d.ts +4 -0
  145. package/dist/i18n/locales/it.d.ts.map +1 -1
  146. package/dist/i18n/locales/it.js +7 -3
  147. package/dist/i18n/locales/it.js.map +1 -1
  148. package/dist/i18n/locales/ja.d.ts +4 -0
  149. package/dist/i18n/locales/ja.d.ts.map +1 -1
  150. package/dist/i18n/locales/ja.js +7 -3
  151. package/dist/i18n/locales/ja.js.map +1 -1
  152. package/dist/i18n/locales/nl.d.ts +4 -0
  153. package/dist/i18n/locales/nl.d.ts.map +1 -1
  154. package/dist/i18n/locales/nl.js +7 -3
  155. package/dist/i18n/locales/nl.js.map +1 -1
  156. package/dist/i18n/locales/pl.d.ts +4 -0
  157. package/dist/i18n/locales/pl.d.ts.map +1 -1
  158. package/dist/i18n/locales/pl.js +7 -3
  159. package/dist/i18n/locales/pl.js.map +1 -1
  160. package/dist/i18n/locales/pt.d.ts +4 -0
  161. package/dist/i18n/locales/pt.d.ts.map +1 -1
  162. package/dist/i18n/locales/pt.js +7 -3
  163. package/dist/i18n/locales/pt.js.map +1 -1
  164. package/dist/i18n/locales/ro.d.ts +4 -0
  165. package/dist/i18n/locales/ro.d.ts.map +1 -1
  166. package/dist/i18n/locales/ro.js +7 -3
  167. package/dist/i18n/locales/ro.js.map +1 -1
  168. package/dist/i18n/locales/ru.d.ts +4 -0
  169. package/dist/i18n/locales/ru.d.ts.map +1 -1
  170. package/dist/i18n/locales/ru.js +7 -3
  171. package/dist/i18n/locales/ru.js.map +1 -1
  172. package/dist/i18n/locales/sq.d.ts +4 -0
  173. package/dist/i18n/locales/sq.d.ts.map +1 -1
  174. package/dist/i18n/locales/sq.js +7 -3
  175. package/dist/i18n/locales/sq.js.map +1 -1
  176. package/dist/i18n/locales/sv.d.ts +4 -0
  177. package/dist/i18n/locales/sv.d.ts.map +1 -1
  178. package/dist/i18n/locales/sv.js +7 -3
  179. package/dist/i18n/locales/sv.js.map +1 -1
  180. package/dist/i18n/locales/tr.d.ts +4 -0
  181. package/dist/i18n/locales/tr.d.ts.map +1 -1
  182. package/dist/i18n/locales/tr.js +7 -3
  183. package/dist/i18n/locales/tr.js.map +1 -1
  184. package/dist/i18n/locales/zh.d.ts +4 -0
  185. package/dist/i18n/locales/zh.d.ts.map +1 -1
  186. package/dist/i18n/locales/zh.js +7 -3
  187. package/dist/i18n/locales/zh.js.map +1 -1
  188. package/dist/index.js +27 -27
  189. package/dist/locales/ar.json +7 -3
  190. package/dist/locales/de.json +7 -3
  191. package/dist/locales/el.json +7 -3
  192. package/dist/locales/en.json +7 -3
  193. package/dist/locales/es.json +7 -3
  194. package/dist/locales/fr.json +7 -3
  195. package/dist/locales/hi.json +7 -3
  196. package/dist/locales/it.json +7 -3
  197. package/dist/locales/ja.json +7 -3
  198. package/dist/locales/nl.json +7 -3
  199. package/dist/locales/pl.json +7 -3
  200. package/dist/locales/pt.json +7 -3
  201. package/dist/locales/ro.json +7 -3
  202. package/dist/locales/ru.json +7 -3
  203. package/dist/locales/sq.json +7 -3
  204. package/dist/locales/sv.json +7 -3
  205. package/dist/locales/tr.json +7 -3
  206. package/dist/locales/zh.json +7 -3
  207. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  208. package/dist/patterns/patient-shell/index.js +1 -1
  209. package/dist/tokens.css +1 -1
  210. package/package.json +1 -1
  211. package/dist/_chunks/agenda-card-BaSfVfrL.js.map +0 -1
  212. package/dist/_chunks/agenda-tray-DQayYmQ0.js +0 -165
  213. package/dist/_chunks/agenda-tray-DQayYmQ0.js.map +0 -1
  214. package/dist/_chunks/ai-tools-rail-CYLWrRmm.js +0 -280
  215. package/dist/_chunks/ai-tools-rail-CYLWrRmm.js.map +0 -1
  216. package/dist/_chunks/alert-CUTxnym2.js.map +0 -1
  217. package/dist/_chunks/circle-arrow-up-CC_85SuH.js +0 -16
  218. package/dist/_chunks/circle-arrow-up-CC_85SuH.js.map +0 -1
  219. package/dist/_chunks/dropdown-menu-CUEXqKis.js +0 -299
  220. package/dist/_chunks/dropdown-menu-CUEXqKis.js.map +0 -1
  221. package/dist/_chunks/sidebar-h78cTNLh.js.map +0 -1
  222. package/dist/_chunks/task-card-CPyQ5AXC.js.map +0 -1
  223. package/dist/_chunks/task-tray-B8jFv5FV.js +0 -196
  224. package/dist/_chunks/task-tray-B8jFv5FV.js.map +0 -1
  225. package/dist/_chunks/use-theme-C2dHKUAN.js +0 -145
  226. package/dist/_chunks/use-theme-C2dHKUAN.js.map +0 -1
@@ -1,42 +1,53 @@
1
- import { jsx as s, jsxs as u, Fragment as V } from "react/jsx-runtime";
2
- import { forwardRef as g, useState as R, useEffect as M, useCallback as U, useRef as G, useMemo as $, useId as is, useContext as q, createContext as W } from "react";
3
- import * as B from "@radix-ui/react-dialog";
4
- import * as F from "@radix-ui/react-collapsible";
5
- import * as A from "@radix-ui/react-accordion";
6
- import * as x from "@radix-ui/react-tooltip";
1
+ import { jsx as s, jsxs as c, Fragment as $ } from "react/jsx-runtime";
2
+ import { forwardRef as g, useState as _, useEffect as W, useCallback as J, useRef as U, useMemo as O, useId as is, useContext as Q, createContext as ss } from "react";
3
+ import * as R from "@radix-ui/react-dialog";
4
+ import * as K from "@radix-ui/react-collapsible";
5
+ import * as P from "@radix-ui/react-accordion";
6
+ import * as b from "@radix-ui/react-tooltip";
7
7
  import { a as ns } from "./accordion-9lJSMMsZ.js";
8
- import { Slot as ts } from "@radix-ui/react-slot";
9
- import { c as k } from "./index-D2ZczOXr.js";
10
- import { useTranslation as D } from "react-i18next";
11
- import { u as os } from "./registry-nPAVE19X.js";
12
- import { X as ls } from "./x-CCcI3eJp.js";
13
- import { c as X } from "./createLucideIcon-CrFbzy84.js";
14
- import { G as cs } from "./grip-vertical-Dlg0_k5C.js";
15
- import { C as P } from "./chevron-right-BrpYejk0.js";
16
- import { S as us } from "./star-vav0SJ9e.js";
17
- import { C as ms } from "./circle-arrow-up-CC_85SuH.js";
8
+ import { Slot as os } from "@radix-ui/react-slot";
9
+ import { c as T } from "./index-D2ZczOXr.js";
10
+ import { useTranslation as B } from "react-i18next";
11
+ import { u as ts } from "./use-edge-resize-ZnGG7gyO.js";
12
+ import { c as ls } from "./compose-refs-C0k0tdqF.js";
13
+ import { u as cs } from "./registry-nPAVE19X.js";
14
+ import { X as us } from "./x-CCcI3eJp.js";
15
+ import { c as q } from "./createLucideIcon-CrFbzy84.js";
16
+ import { G as ms } from "./grip-vertical-Dlg0_k5C.js";
17
+ import { C as H } from "./chevron-right-BrpYejk0.js";
18
+ import { S as vs } from "./star-vav0SJ9e.js";
18
19
  /**
19
20
  * @license lucide-react v1.8.0 - ISC
20
21
  *
21
22
  * This source code is licensed under the ISC license.
22
23
  * See the LICENSE file in the root directory of this source tree.
23
24
  */
24
- const ps = [
25
+ const fs = [
25
26
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
26
27
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
27
28
  ["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
28
- ], vs = X("panel-left-close", ps);
29
+ ], ps = q("panel-left-close", fs);
29
30
  /**
30
31
  * @license lucide-react v1.8.0 - ISC
31
32
  *
32
33
  * This source code is licensed under the ISC license.
33
34
  * See the LICENSE file in the root directory of this source tree.
34
35
  */
35
- const fs = [
36
+ const gs = [
36
37
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
37
38
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
38
39
  ["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
39
- ], gs = X("panel-left-open", fs), bs = {
40
+ ], bs = q("panel-left-open", gs);
41
+ /**
42
+ * @license lucide-react v1.8.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */
47
+ const hs = [
48
+ ["path", { d: "M16 7h6v6", key: "box55l" }],
49
+ ["path", { d: "m22 7-8.5 8.5-5-5L2 17", key: "1t1m79" }]
50
+ ], xs = q("trending-up", hs), ys = {
40
51
  id: "sidebar",
41
52
  capabilities: ["expand"],
42
53
  state: {
@@ -67,27 +78,27 @@ const fs = [
67
78
  description: "Each Sidebar.Item emits its key as data-nav-id."
68
79
  }
69
80
  }
70
- }, E = W({
81
+ }, G = ss({
71
82
  mode: "expanded",
72
83
  density: "default"
73
- }), w = () => q(E), Y = "ui.sidebar.state";
74
- function hs(e) {
84
+ }), y = () => Q(G), es = "ui.sidebar.state";
85
+ function ws(e) {
75
86
  if (typeof window > "u") return e;
76
87
  try {
77
- const a = window.localStorage.getItem(Y);
88
+ const a = window.localStorage.getItem(es);
78
89
  if (a === "expanded" || a === "icon" || a === "overlay") return a;
79
90
  } catch {
80
91
  }
81
92
  return e;
82
93
  }
83
- function xs(e) {
94
+ function Ns(e) {
84
95
  if (!(typeof window > "u"))
85
96
  try {
86
- window.localStorage.setItem(Y, e);
97
+ window.localStorage.setItem(es, e);
87
98
  } catch {
88
99
  }
89
100
  }
90
- const _ = k(
101
+ const X = T(
91
102
  [
92
103
  "ds:flex ds:flex-col",
93
104
  // Sidebar sits at the page background in light mode (white-on-white
@@ -110,7 +121,10 @@ const _ = k(
110
121
  "ds:relative ds:z-[1] ds:shadow-[var(--shadow-md)]",
111
122
  "ds:h-full",
112
123
  "ds:transition-[inline-size] ds:duration-[var(--animation-duration)]",
113
- "ds:motion-reduce:transition-none"
124
+ "ds:motion-reduce:transition-none",
125
+ // While the resize handle is dragging, the width must track the
126
+ // pointer 1:1 — the data attribute suppresses the width transition.
127
+ "ds:data-[resizing]:transition-none"
114
128
  ].join(" "),
115
129
  {
116
130
  variants: {
@@ -127,52 +141,77 @@ const _ = k(
127
141
  },
128
142
  defaultVariants: { mode: "expanded", density: "default" }
129
143
  }
130
- ), ys = g(
144
+ ), zs = 192, Ss = 384, js = 248, ks = [
145
+ "ds:absolute ds:[inset-block:0] ds:end-0 ds:z-[2]",
146
+ "ds:w-[var(--resizable-handle-size)]",
147
+ "ds:cursor-col-resize ds:select-none ds:touch-none",
148
+ "ds:hover:bg-[var(--accent)] ds:focus-visible:bg-[var(--accent)]",
149
+ "ds:data-[resizing]:bg-[var(--accent)]",
150
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
151
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
152
+ "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
153
+ "ds:forced-colors:focus-visible:outline-[CanvasText]",
154
+ "ds:before:absolute ds:before:content-['']",
155
+ "ds:before:[inset-block:0]",
156
+ "ds:before:[inline-size:var(--min-target-size)]",
157
+ "ds:before:[inset-inline:calc(0px_-_(var(--min-target-size)_-_var(--resizable-handle-size))_/_2)]"
158
+ ].join(" "), Cs = g(
131
159
  ({
132
160
  state: e,
133
161
  defaultState: a = "expanded",
134
162
  onStateChange: r,
135
163
  density: i = "default",
136
- open: t,
137
- onOpenChange: o,
138
- "aria-label": l,
139
- className: n,
140
- children: m,
141
- id: c,
142
- ...v
143
- }, y) => {
144
- const { t: N } = D(), b = e !== void 0, [d, S] = R(
145
- () => b ? e : hs(a)
146
- ), h = b ? e : d;
147
- M(() => {
148
- b || xs(d);
149
- }, [d, b]);
150
- const f = U(
151
- (T) => {
152
- b || S(T), r == null || r(T);
164
+ open: n,
165
+ onOpenChange: t,
166
+ resizable: l = !1,
167
+ "aria-label": o,
168
+ className: u,
169
+ children: f,
170
+ id: p,
171
+ ...h
172
+ }, N) => {
173
+ const { t: x } = B(), d = e !== void 0, [w, z] = _(
174
+ () => d ? e : ws(a)
175
+ ), v = d ? e : w;
176
+ W(() => {
177
+ d || Ns(w);
178
+ }, [w, d]);
179
+ const S = J(
180
+ (C) => {
181
+ d || z(C), r == null || r(C);
153
182
  },
154
- [b, r]
155
- ), j = l ?? N("navigation.sidebar.label"), z = G(h);
156
- M(() => {
157
- z.current = h;
158
- }, [h]);
159
- const C = $(
183
+ [d, r]
184
+ ), j = o ?? x("navigation.sidebar.label"), k = U(v);
185
+ W(() => {
186
+ k.current = v;
187
+ }, [v]);
188
+ const F = O(
160
189
  () => ({
161
- getIsCollapsed: () => z.current !== "expanded",
190
+ getIsCollapsed: () => k.current !== "expanded",
162
191
  toggleCollapsed: () => {
163
- const T = z.current === "expanded" ? "icon" : "expanded";
164
- f(T);
192
+ const C = k.current === "expanded" ? "icon" : "expanded";
193
+ S(C);
165
194
  }
166
195
  }),
167
- [f]
196
+ [S]
168
197
  );
169
- return os(bs, C, c), h === "overlay" ? /* @__PURE__ */ s(
170
- E.Provider,
198
+ cs(ys, F, p);
199
+ const D = U(null), A = O(() => ls(N, D), [N]), { separatorProps: L, isResizing: E } = ts({
200
+ edge: "inline-end",
201
+ targetRef: D,
202
+ cssProperty: "--sidebar-modern-expanded-size",
203
+ minSize: zs,
204
+ maxSize: Ss,
205
+ defaultSize: js,
206
+ disabled: !l || v !== "expanded"
207
+ }), M = l && v === "expanded";
208
+ return v === "overlay" ? /* @__PURE__ */ s(
209
+ G.Provider,
171
210
  {
172
- value: { mode: "overlay", density: i, transitionTo: f },
173
- children: /* @__PURE__ */ s(B.Root, { open: t, onOpenChange: o, children: /* @__PURE__ */ u(B.Portal, { children: [
211
+ value: { mode: "overlay", density: i, transitionTo: S },
212
+ children: /* @__PURE__ */ s(R.Root, { open: n, onOpenChange: t, children: /* @__PURE__ */ c(R.Portal, { children: [
174
213
  /* @__PURE__ */ s(
175
- B.Overlay,
214
+ R.Overlay,
176
215
  {
177
216
  className: [
178
217
  "ds:fixed ds:inset-0 ds:z-[var(--z-modal-backdrop)]",
@@ -183,42 +222,42 @@ const _ = k(
183
222
  ].join(" ")
184
223
  }
185
224
  ),
186
- /* @__PURE__ */ u(
187
- B.Content,
225
+ /* @__PURE__ */ c(
226
+ R.Content,
188
227
  {
189
228
  "aria-label": j,
190
229
  className: [
191
230
  "ds:fixed ds:z-[var(--z-modal)]",
192
231
  "ds:inset-inline-start-0 ds:inset-block-start-0",
193
232
  "ds:h-dvh",
194
- _({ mode: "overlay", density: i }),
233
+ X({ mode: "overlay", density: i }),
195
234
  "ds:shadow-[var(--shadow-xl)]",
196
235
  "ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
197
236
  "ds:data-[state=open]:slide-in-from-left ds:data-[state=closed]:slide-out-to-left",
198
237
  "ds:rtl:data-[state=open]:slide-in-from-right ds:rtl:data-[state=closed]:slide-out-to-right",
199
238
  "ds:motion-reduce:animate-none",
200
239
  "ds:focus:outline-none",
201
- n ?? ""
240
+ u ?? ""
202
241
  ].filter(Boolean).join(" "),
203
242
  children: [
204
243
  /* @__PURE__ */ s(
205
244
  "nav",
206
245
  {
207
- ref: y,
208
- id: c,
246
+ ref: A,
247
+ id: p,
209
248
  "aria-label": j,
210
249
  "data-component": "sidebar",
211
- "data-component-id": c,
250
+ "data-component-id": p,
212
251
  className: "ds:flex ds:flex-col ds:h-full",
213
- ...v,
214
- children: m
252
+ ...h,
253
+ children: f
215
254
  }
216
255
  ),
217
- /* @__PURE__ */ s(B.Close, { asChild: !0, children: /* @__PURE__ */ s(
256
+ /* @__PURE__ */ s(R.Close, { asChild: !0, children: /* @__PURE__ */ s(
218
257
  "button",
219
258
  {
220
259
  type: "button",
221
- "aria-label": N("navigation.sidebar.close"),
260
+ "aria-label": x("navigation.sidebar.close"),
222
261
  className: [
223
262
  "ds:absolute ds:top-[var(--spacing-sm)] ds:end-[var(--spacing-sm)]",
224
263
  "ds:inline-flex ds:items-center ds:justify-center",
@@ -228,7 +267,7 @@ const _ = k(
228
267
  "ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)]",
229
268
  "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
230
269
  ].join(" "),
231
- children: /* @__PURE__ */ s(ls, { "aria-hidden": "true", className: "ds:size-4" })
270
+ children: /* @__PURE__ */ s(us, { "aria-hidden": "true", className: "ds:size-4" })
232
271
  }
233
272
  ) })
234
273
  ]
@@ -237,35 +276,47 @@ const _ = k(
237
276
  ] }) })
238
277
  }
239
278
  ) : /* @__PURE__ */ s(
240
- E.Provider,
279
+ G.Provider,
241
280
  {
242
- value: { mode: h, density: i, transitionTo: f },
243
- children: /* @__PURE__ */ s(x.Provider, { delayDuration: 300, children: /* @__PURE__ */ s(
281
+ value: { mode: v, density: i, transitionTo: S },
282
+ children: /* @__PURE__ */ s(b.Provider, { delayDuration: 300, children: /* @__PURE__ */ c(
244
283
  "nav",
245
284
  {
246
- ref: y,
247
- id: c,
285
+ ref: A,
286
+ id: p,
248
287
  "aria-label": j,
249
288
  "data-component": "sidebar",
250
- "data-component-id": c,
251
- "data-mode": h,
289
+ "data-component-id": p,
290
+ "data-mode": v,
252
291
  "data-density": i,
292
+ "data-resizing": E ? "" : void 0,
253
293
  className: [
254
- _({ mode: h, density: i }),
294
+ X({ mode: v, density: i }),
255
295
  i === "compact" ? "ds:density-compact" : "",
256
- n ?? ""
296
+ u ?? ""
257
297
  ].filter(Boolean).join(" "),
258
- ...v,
259
- children: m
298
+ ...h,
299
+ children: [
300
+ f,
301
+ M ? /* @__PURE__ */ s(
302
+ "div",
303
+ {
304
+ ...L,
305
+ "aria-label": x("navigation.sidebar.resize"),
306
+ "data-resizing": E ? "" : void 0,
307
+ className: ks
308
+ }
309
+ ) : null
310
+ ]
260
311
  }
261
312
  ) })
262
313
  }
263
314
  );
264
315
  }
265
316
  );
266
- ys.displayName = "Sidebar";
267
- const ws = g(({ className: e, ...a }, r) => {
268
- const { mode: i } = w();
317
+ Cs.displayName = "Sidebar";
318
+ const Ts = g(({ className: e, ...a }, r) => {
319
+ const { mode: i } = y();
269
320
  return /* @__PURE__ */ s(
270
321
  "div",
271
322
  {
@@ -287,8 +338,8 @@ const ws = g(({ className: e, ...a }, r) => {
287
338
  }
288
339
  );
289
340
  });
290
- ws.displayName = "SidebarHeader";
291
- const Ns = g(
341
+ Ts.displayName = "SidebarHeader";
342
+ const Is = g(
292
343
  ({ className: e, ...a }, r) => /* @__PURE__ */ s(
293
344
  "div",
294
345
  {
@@ -303,9 +354,9 @@ const Ns = g(
303
354
  }
304
355
  )
305
356
  );
306
- Ns.displayName = "SidebarBody";
307
- const Ss = g(({ className: e, ...a }, r) => {
308
- const { mode: i } = w();
357
+ Is.displayName = "SidebarBody";
358
+ const Rs = g(({ className: e, ...a }, r) => {
359
+ const { mode: i } = y();
309
360
  return /* @__PURE__ */ s(
310
361
  "div",
311
362
  {
@@ -327,8 +378,8 @@ const Ss = g(({ className: e, ...a }, r) => {
327
378
  }
328
379
  );
329
380
  });
330
- Ss.displayName = "SidebarFooter";
331
- const zs = [
381
+ Rs.displayName = "SidebarFooter";
382
+ const Bs = [
332
383
  "ds:group/section-label ds:flex ds:w-full ds:items-center",
333
384
  "type-eyebrow",
334
385
  "ds:text-[var(--muted-foreground)]",
@@ -338,32 +389,32 @@ const zs = [
338
389
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
339
390
  "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
340
391
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
341
- ].join(" "), O = [
392
+ ].join(" "), Y = [
342
393
  "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
343
394
  "ds:size-4",
344
395
  "ds:text-[var(--accent)]",
345
396
  "ds:me-[var(--spacing-xs)]"
346
- ].join(" "), J = g(
397
+ ].join(" "), as = g(
347
398
  ({
348
399
  label: e,
349
400
  icon: a,
350
401
  collapsible: r = !0,
351
402
  defaultOpen: i = !0,
352
- open: t,
353
- onOpenChange: o,
403
+ open: n,
404
+ onOpenChange: t,
354
405
  className: l,
355
- children: n,
356
- ...m
357
- }, c) => {
358
- const { mode: v } = w(), y = v === "icon", N = r && !y && !!e, b = [
406
+ children: o,
407
+ ...u
408
+ }, f) => {
409
+ const { mode: p } = y(), h = p === "icon", N = r && !h && !!e, x = [
359
410
  "ds:flex ds:flex-col",
360
411
  "ds:gap-[var(--spacing-xs)]",
361
412
  "ds:mt-[var(--spacing-sm)]",
362
413
  l ?? ""
363
414
  ].filter(Boolean).join(" ");
364
415
  if (!N)
365
- return /* @__PURE__ */ u("div", { ref: c, className: b, ...m, children: [
366
- !!e || !!a ? /* @__PURE__ */ u(
416
+ return /* @__PURE__ */ c("div", { ref: f, className: x, ...u, children: [
417
+ !!e || !!a ? /* @__PURE__ */ c(
367
418
  "span",
368
419
  {
369
420
  className: [
@@ -372,32 +423,32 @@ const zs = [
372
423
  "ds:text-[var(--muted-foreground)]",
373
424
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
374
425
  "ds:py-[var(--spacing-xs)]",
375
- y && !a ? "ds:sr-only" : ""
426
+ h && !a ? "ds:sr-only" : ""
376
427
  ].filter(Boolean).join(" "),
377
428
  children: [
378
- a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: O, children: a }) : null,
379
- e ? /* @__PURE__ */ s("span", { className: y ? "ds:sr-only" : "", children: e }) : null
429
+ a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: Y, children: a }) : null,
430
+ e ? /* @__PURE__ */ s("span", { className: h ? "ds:sr-only" : "", children: e }) : null
380
431
  ]
381
432
  }
382
433
  ) : null,
383
- n
434
+ o
384
435
  ] });
385
436
  const d = "section";
386
437
  return /* @__PURE__ */ s(
387
- A.Root,
438
+ P.Root,
388
439
  {
389
440
  type: "single",
390
441
  collapsible: !0,
391
- defaultValue: t === void 0 && i ? d : void 0,
392
- value: t === void 0 ? void 0 : t ? d : "",
393
- onValueChange: o ? (S) => o(S === d) : void 0,
442
+ defaultValue: n === void 0 && i ? d : void 0,
443
+ value: n === void 0 ? void 0 : n ? d : "",
444
+ onValueChange: t ? (w) => t(w === d) : void 0,
394
445
  asChild: !0,
395
- children: /* @__PURE__ */ s("div", { ref: c, className: b, ...m, children: /* @__PURE__ */ u(A.Item, { value: d, children: [
396
- /* @__PURE__ */ s(A.Header, { className: "ds:flex", children: /* @__PURE__ */ u(A.Trigger, { className: zs, children: [
397
- a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: O, children: a }) : null,
446
+ children: /* @__PURE__ */ s("div", { ref: f, className: x, ...u, children: /* @__PURE__ */ c(P.Item, { value: d, children: [
447
+ /* @__PURE__ */ s(P.Header, { className: "ds:flex", children: /* @__PURE__ */ c(P.Trigger, { className: Bs, children: [
448
+ a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: Y, children: a }) : null,
398
449
  /* @__PURE__ */ s("span", { className: "ds:flex-1 ds:text-start", children: e }),
399
450
  /* @__PURE__ */ s(
400
- P,
451
+ H,
401
452
  {
402
453
  "aria-hidden": "true",
403
454
  className: "ds:size-3 ds:transition-transform ds:group-data-[state=open]/section-label:rotate-90 ds:rtl:-scale-x-100 ds:motion-reduce:transition-none"
@@ -409,7 +460,7 @@ const zs = [
409
460
  {
410
461
  "aria-label": e,
411
462
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:[&>div]:contents",
412
- children: n
463
+ children: o
413
464
  }
414
465
  )
415
466
  ] }) })
@@ -417,8 +468,8 @@ const zs = [
417
468
  );
418
469
  }
419
470
  );
420
- J.displayName = "SidebarSection";
421
- const js = [
471
+ as.displayName = "SidebarSection";
472
+ const Ds = [
422
473
  "ds:group ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]",
423
474
  "ds:min-h-[var(--min-target-size)]",
424
475
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
@@ -429,29 +480,29 @@ const js = [
429
480
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
430
481
  "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
431
482
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
432
- ].join(" "), Cs = g(
483
+ ].join(" "), As = g(
433
484
  ({
434
485
  label: e,
435
486
  icon: a,
436
487
  children: r,
437
488
  className: i,
438
- defaultOpen: t,
439
- open: o,
489
+ defaultOpen: n,
490
+ open: t,
440
491
  onOpenChange: l,
441
- ...n
442
- }, m) => {
443
- const { mode: c } = w();
444
- return /* @__PURE__ */ u(
445
- F.Root,
492
+ ...o
493
+ }, u) => {
494
+ const { mode: f } = y();
495
+ return /* @__PURE__ */ c(
496
+ K.Root,
446
497
  {
447
- ref: m,
448
- defaultOpen: t,
449
- open: o,
498
+ ref: u,
499
+ defaultOpen: n,
500
+ open: t,
450
501
  onOpenChange: l,
451
502
  className: i,
452
- ...n,
503
+ ...o,
453
504
  children: [
454
- /* @__PURE__ */ u(F.Trigger, { className: js, children: [
505
+ /* @__PURE__ */ c(K.Trigger, { className: Ds, children: [
455
506
  a ? /* @__PURE__ */ s(
456
507
  "span",
457
508
  {
@@ -465,13 +516,13 @@ const js = [
465
516
  {
466
517
  className: [
467
518
  "ds:flex-1 ds:text-start",
468
- c === "icon" ? "ds:sr-only" : ""
519
+ f === "icon" ? "ds:sr-only" : ""
469
520
  ].join(" "),
470
521
  children: e
471
522
  }
472
523
  ),
473
- c !== "icon" ? /* @__PURE__ */ s(
474
- P,
524
+ f !== "icon" ? /* @__PURE__ */ s(
525
+ H,
475
526
  {
476
527
  "aria-hidden": "true",
477
528
  className: "ds:size-4 ds:transition-transform ds:group-data-[state=open]:rotate-90 ds:rtl:-scale-x-100 ds:motion-reduce:transition-none"
@@ -479,7 +530,7 @@ const js = [
479
530
  ) : null
480
531
  ] }),
481
532
  /* @__PURE__ */ s(
482
- F.Content,
533
+ K.Content,
483
534
  {
484
535
  className: [
485
536
  "ds:overflow-hidden",
@@ -495,8 +546,8 @@ const js = [
495
546
  );
496
547
  }
497
548
  );
498
- Cs.displayName = "SidebarGroup";
499
- const ks = k(
549
+ As.displayName = "SidebarGroup";
550
+ const Es = T(
500
551
  [
501
552
  // Every row is a pin-hover parent so inline pin / reorder affordances can
502
553
  // fade in on hover of the whole row — keep `group/item` on this selector.
@@ -557,57 +608,57 @@ const ks = k(
557
608
  isActive: !1
558
609
  }
559
610
  }
560
- ), Q = g(
611
+ ), rs = g(
561
612
  ({
562
613
  asChild: e = !1,
563
614
  isActive: a = !1,
564
615
  isPinned: r = !1,
565
616
  onPinChange: i,
566
- pinLabel: t,
567
- className: o,
617
+ pinLabel: n,
618
+ className: t,
568
619
  children: l,
569
- "aria-label": n,
570
- ...m
571
- }, c) => {
572
- const { mode: v, density: y } = w(), N = e ? ts : "a", b = i !== void 0 && v !== "icon", d = /* @__PURE__ */ s(
620
+ "aria-label": o,
621
+ ...u
622
+ }, f) => {
623
+ const { mode: p, density: h } = y(), N = e ? os : "a", x = i !== void 0 && p !== "icon", d = /* @__PURE__ */ s(
573
624
  N,
574
625
  {
575
- ref: c,
626
+ ref: f,
576
627
  "aria-current": a ? "page" : void 0,
577
- "aria-label": n,
578
- className: ks({
579
- mode: v,
580
- density: y,
628
+ "aria-label": o,
629
+ className: Es({
630
+ mode: p,
631
+ density: h,
581
632
  isActive: a,
582
- className: b ? "ds:flex-1 ds:min-w-0" : o
633
+ className: x ? "ds:flex-1 ds:min-w-0" : t
583
634
  }),
584
- ...m,
635
+ ...u,
585
636
  children: l
586
637
  }
587
- ), S = b ? /* @__PURE__ */ u(
638
+ ), w = x ? /* @__PURE__ */ c(
588
639
  "div",
589
640
  {
590
641
  className: [
591
642
  "ds:group/item ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
592
- o ?? ""
643
+ t ?? ""
593
644
  ].filter(Boolean).join(" "),
594
645
  children: [
595
646
  d,
596
647
  /* @__PURE__ */ s(
597
- L,
648
+ Z,
598
649
  {
599
650
  isPinned: r,
600
- label: t ?? n ?? "",
651
+ label: n ?? o ?? "",
601
652
  onPinChange: i
602
653
  }
603
654
  )
604
655
  ]
605
656
  }
606
657
  ) : d;
607
- return v === "icon" && n ? /* @__PURE__ */ u(x.Root, { children: [
608
- /* @__PURE__ */ s(x.Trigger, { asChild: !0, children: S }),
609
- /* @__PURE__ */ s(x.Portal, { children: /* @__PURE__ */ u(
610
- x.Content,
658
+ return p === "icon" && o ? /* @__PURE__ */ c(b.Root, { children: [
659
+ /* @__PURE__ */ s(b.Trigger, { asChild: !0, children: w }),
660
+ /* @__PURE__ */ s(b.Portal, { children: /* @__PURE__ */ c(
661
+ b.Content,
611
662
  {
612
663
  side: "right",
613
664
  sideOffset: 6,
@@ -619,16 +670,16 @@ const ks = k(
619
670
  "ds:animate-in ds:fade-in ds:zoom-in-95 ds:motion-reduce:animate-none"
620
671
  ].join(" "),
621
672
  children: [
622
- n,
623
- /* @__PURE__ */ s(x.Arrow, { className: "ds:fill-[var(--foreground)]" })
673
+ o,
674
+ /* @__PURE__ */ s(b.Arrow, { className: "ds:fill-[var(--foreground)]" })
624
675
  ]
625
676
  }
626
677
  ) })
627
- ] }) : S;
678
+ ] }) : w;
628
679
  }
629
680
  );
630
- Q.displayName = "SidebarItem";
631
- const Ts = g(({ className: e, children: a, ...r }, i) => /* @__PURE__ */ s(
681
+ rs.displayName = "SidebarItem";
682
+ const Ps = g(({ className: e, children: a, ...r }, i) => /* @__PURE__ */ s(
632
683
  "span",
633
684
  {
634
685
  ref: i,
@@ -649,9 +700,9 @@ const Ts = g(({ className: e, children: a, ...r }, i) => /* @__PURE__ */ s(
649
700
  children: a
650
701
  }
651
702
  ));
652
- Ts.displayName = "SidebarItemIcon";
653
- const Is = g(({ className: e, children: a, ...r }, i) => {
654
- const { mode: t } = w();
703
+ Ps.displayName = "SidebarItemIcon";
704
+ const _s = g(({ className: e, children: a, ...r }, i) => {
705
+ const { mode: n } = y();
655
706
  return /* @__PURE__ */ s(
656
707
  "span",
657
708
  {
@@ -660,7 +711,7 @@ const Is = g(({ className: e, children: a, ...r }, i) => {
660
711
  "ds:flex-1",
661
712
  "ds:overflow-hidden ds:text-ellipsis ds:whitespace-nowrap ds:break-normal",
662
713
  "ds:text-start",
663
- t === "icon" ? "ds:sr-only" : "",
714
+ n === "icon" ? "ds:sr-only" : "",
664
715
  e ?? ""
665
716
  ].filter(Boolean).join(" "),
666
717
  ...r,
@@ -668,18 +719,18 @@ const Is = g(({ className: e, children: a, ...r }, i) => {
668
719
  }
669
720
  );
670
721
  });
671
- Is.displayName = "SidebarItemLabel";
672
- const Bs = g(({ className: e, children: a, ...r }, i) => {
673
- const { mode: t } = w(), o = t === "icon";
722
+ _s.displayName = "SidebarItemLabel";
723
+ const Hs = g(({ className: e, children: a, ...r }, i) => {
724
+ const { mode: n } = y(), t = n === "icon";
674
725
  return /* @__PURE__ */ s(
675
726
  "span",
676
727
  {
677
728
  ref: i,
678
- "aria-hidden": o ? "true" : void 0,
729
+ "aria-hidden": t ? "true" : void 0,
679
730
  className: [
680
731
  "ds:inline-flex ds:items-center ds:justify-center",
681
732
  "ds:font-[var(--font-weight-semibold)]",
682
- o ? [
733
+ t ? [
683
734
  "ds:absolute ds:top-[2px] ds:end-[2px]",
684
735
  "ds:min-w-0 ds:size-[10px] ds:ps-0 ds:pe-0",
685
736
  "ds:rounded-[var(--radius-full)]",
@@ -700,8 +751,8 @@ const Bs = g(({ className: e, children: a, ...r }, i) => {
700
751
  }
701
752
  );
702
753
  });
703
- Bs.displayName = "SidebarItemBadge";
704
- const Ds = k(
754
+ Hs.displayName = "SidebarItemBadge";
755
+ const Fs = T(
705
756
  [
706
757
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
707
758
  "ds:min-h-[var(--min-target-size)]",
@@ -714,16 +765,16 @@ const Ds = k(
714
765
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
715
766
  "ds:no-underline"
716
767
  ].join(" ")
717
- ), As = g(({ logo: e, name: a, showChevron: r = !0, className: i, ...t }, o) => {
718
- const { mode: l } = w(), n = l !== "icon";
719
- return /* @__PURE__ */ u(
768
+ ), Ls = g(({ logo: e, name: a, showChevron: r = !0, className: i, ...n }, t) => {
769
+ const { mode: l } = y(), o = l !== "icon";
770
+ return /* @__PURE__ */ c(
720
771
  "button",
721
772
  {
722
- ref: o,
773
+ ref: t,
723
774
  type: "button",
724
775
  "aria-label": a,
725
- className: [Ds(), i].filter(Boolean).join(" "),
726
- ...t,
776
+ className: [Fs(), i].filter(Boolean).join(" "),
777
+ ...n,
727
778
  children: [
728
779
  /* @__PURE__ */ s(
729
780
  "span",
@@ -733,10 +784,10 @@ const Ds = k(
733
784
  children: e
734
785
  }
735
786
  ),
736
- n ? /* @__PURE__ */ u(V, { children: [
787
+ o ? /* @__PURE__ */ c($, { children: [
737
788
  /* @__PURE__ */ s("span", { className: "ds:truncate ds:flex-1 ds:text-start ds:max-w-[var(--header-workspace-max-inline-size)]", children: a }),
738
789
  r ? /* @__PURE__ */ s(
739
- P,
790
+ H,
740
791
  {
741
792
  "aria-hidden": "true",
742
793
  className: "ds:size-4 ds:shrink-0 ds:rotate-90"
@@ -747,8 +798,8 @@ const Ds = k(
747
798
  }
748
799
  );
749
800
  });
750
- As.displayName = "SidebarWorkspaceSwitcher";
751
- const Rs = k(
801
+ Ls.displayName = "SidebarWorkspaceSwitcher";
802
+ const Ms = T(
752
803
  [
753
804
  "ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
754
805
  "ds:min-h-[var(--min-target-size)]",
@@ -771,17 +822,17 @@ const Rs = k(
771
822
  },
772
823
  defaultVariants: { mode: "expanded" }
773
824
  }
774
- ), Ps = g(({ icon: e, label: a, shortcut: r, className: i, ...t }, o) => {
775
- const { mode: l } = w(), n = l !== "icon";
776
- return /* @__PURE__ */ u(
825
+ ), Vs = g(({ icon: e, label: a, shortcut: r, className: i, ...n }, t) => {
826
+ const { mode: l } = y(), o = l !== "icon";
827
+ return /* @__PURE__ */ c(
777
828
  "button",
778
829
  {
779
- ref: o,
830
+ ref: t,
780
831
  type: "button",
781
832
  "aria-label": a,
782
833
  "aria-keyshortcuts": r,
783
- className: [Rs({ mode: l }), i].filter(Boolean).join(" "),
784
- ...t,
834
+ className: [Ms({ mode: l }), i].filter(Boolean).join(" "),
835
+ ...n,
785
836
  children: [
786
837
  /* @__PURE__ */ s(
787
838
  "span",
@@ -791,7 +842,7 @@ const Rs = k(
791
842
  children: e
792
843
  }
793
844
  ),
794
- n ? /* @__PURE__ */ u(V, { children: [
845
+ o ? /* @__PURE__ */ c($, { children: [
795
846
  /* @__PURE__ */ s("span", { className: "ds:truncate", children: a }),
796
847
  r ? /* @__PURE__ */ s("kbd", { className: "ds:ms-auto ds:text-[length:var(--font-size-xs)] ds:font-[family-name:var(--font-mono)] ds:opacity-80", children: r }) : null
797
848
  ] }) : null
@@ -799,8 +850,8 @@ const Rs = k(
799
850
  }
800
851
  );
801
852
  });
802
- Ps.displayName = "SidebarPrimaryAction";
803
- const Hs = [
853
+ Vs.displayName = "SidebarPrimaryAction";
854
+ const Ks = [
804
855
  "ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
805
856
  "ds:size-6 ds:rounded-[var(--radius-sm)]",
806
857
  // Pin stars carry the accent tint to match every other icon in the rail.
@@ -813,25 +864,25 @@ const Hs = [
813
864
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
814
865
  "ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)]",
815
866
  "ds:motion-reduce:transition-none"
816
- ].join(" "), L = g(
817
- ({ isPinned: e, onPinChange: a, label: r, className: i, onClick: t, ...o }, l) => {
818
- const { t: n } = D(), { mode: m } = w();
819
- if (m === "icon") return null;
820
- const c = e ? n("navigation.sidebar.unpinItem", "Unpin {{label}}", { label: r }) : n("navigation.sidebar.pinItem", "Pin {{label}}", { label: r });
867
+ ].join(" "), Z = g(
868
+ ({ isPinned: e, onPinChange: a, label: r, className: i, onClick: n, ...t }, l) => {
869
+ const { t: o } = B(), { mode: u } = y();
870
+ if (u === "icon") return null;
871
+ const f = e ? o("navigation.sidebar.unpinItem", "Unpin {{label}}", { label: r }) : o("navigation.sidebar.pinItem", "Pin {{label}}", { label: r });
821
872
  return /* @__PURE__ */ s(
822
873
  "button",
823
874
  {
824
875
  ref: l,
825
876
  type: "button",
826
- "aria-label": c,
877
+ "aria-label": f,
827
878
  "aria-pressed": e,
828
- className: [Hs, i].filter(Boolean).join(" "),
829
- onClick: (v) => {
830
- v.preventDefault(), v.stopPropagation(), a == null || a(!e), t == null || t(v);
879
+ className: [Ks, i].filter(Boolean).join(" "),
880
+ onClick: (p) => {
881
+ p.preventDefault(), p.stopPropagation(), a == null || a(!e), n == null || n(p);
831
882
  },
832
- ...o,
883
+ ...t,
833
884
  children: /* @__PURE__ */ s(
834
- us,
885
+ vs,
835
886
  {
836
887
  "aria-hidden": "true",
837
888
  className: "ds:size-4",
@@ -842,32 +893,32 @@ const Hs = [
842
893
  );
843
894
  }
844
895
  );
845
- L.displayName = "SidebarPinButton";
846
- const Z = W(null), Fs = () => q(Z), Es = g(
847
- ({ heading: e, emptyMessage: a, onReorder: r, className: i, children: t, ...o }, l) => {
848
- const { t: n } = D(), m = e ?? n("navigation.sidebar.favorites", "Favourites"), c = Array.isArray(t) ? t.filter(Boolean) : t ? [t] : [], v = c.length, y = v > 0, [N, b] = R(null), [d, S] = R(""), h = G(!1), f = U((z) => {
849
- h.current = !h.current, S(h.current ? z : `${z}​`);
850
- }, []), j = $(
851
- () => ({ onReorder: r, count: v, dragSource: N, setDragSource: b, announce: f }),
852
- [r, v, N, f]
896
+ Z.displayName = "SidebarPinButton";
897
+ const ds = ss(null), Us = () => Q(ds), Os = g(
898
+ ({ heading: e, emptyMessage: a, onReorder: r, className: i, children: n, ...t }, l) => {
899
+ const { t: o } = B(), u = e ?? o("navigation.sidebar.favorites", "Favourites"), f = Array.isArray(n) ? n.filter(Boolean) : n ? [n] : [], p = f.length, h = p > 0, [N, x] = _(null), [d, w] = _(""), z = U(!1), v = J((j) => {
900
+ z.current = !z.current, w(z.current ? j : `${j}​`);
901
+ }, []), S = O(
902
+ () => ({ onReorder: r, count: p, dragSource: N, setDragSource: x, announce: v }),
903
+ [r, p, N, v]
853
904
  );
854
- return !y && !a ? null : /* @__PURE__ */ s(Z.Provider, { value: j, children: /* @__PURE__ */ u(
855
- J,
905
+ return !h && !a ? null : /* @__PURE__ */ s(ds.Provider, { value: S, children: /* @__PURE__ */ c(
906
+ as,
856
907
  {
857
908
  ref: l,
858
- label: m,
909
+ label: u,
859
910
  className: i,
860
- ...o,
911
+ ...t,
861
912
  children: [
862
- y ? c : /* @__PURE__ */ s("p", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] type-meta ds:text-[color:var(--muted-foreground)]", children: a }),
913
+ h ? f : /* @__PURE__ */ s("p", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] type-meta ds:text-[color:var(--muted-foreground)]", children: a }),
863
914
  /* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: d })
864
915
  ]
865
916
  }
866
917
  ) });
867
918
  }
868
919
  );
869
- Es.displayName = "SidebarFavorites";
870
- const Vs = k(
920
+ Os.displayName = "SidebarFavorites";
921
+ const Gs = T(
871
922
  [
872
923
  "ds:group/item ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
873
924
  "ds:rounded-[var(--radius-sm)]",
@@ -886,7 +937,7 @@ const Vs = k(
886
937
  },
887
938
  defaultVariants: { dragging: !1, dropTarget: !1 }
888
939
  }
889
- ), Ls = [
940
+ ), $s = [
890
941
  "ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
891
942
  "ds:size-6 ds:rounded-[var(--radius-sm)]",
892
943
  "ds:cursor-grab ds:active:cursor-grabbing",
@@ -900,93 +951,93 @@ const Vs = k(
900
951
  "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
901
952
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
902
953
  "ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
903
- ].join(" "), Ks = g(
954
+ ].join(" "), qs = g(
904
955
  ({
905
956
  index: e,
906
957
  isActive: a = !1,
907
958
  asChild: r = !1,
908
959
  reorderLabel: i,
909
- isPinned: t = !1,
910
- onPinChange: o,
960
+ isPinned: n = !1,
961
+ onPinChange: t,
911
962
  pinLabel: l,
912
- "aria-label": n,
913
- className: m,
914
- children: c,
915
- ...v
916
- }, y) => {
917
- const { t: N } = D(), { mode: b } = w(), d = Fs(), [S, h] = R(!1), f = !!(d != null && d.onReorder) && b !== "icon", j = i ?? n ?? "", z = is(), C = (p, I) => {
963
+ "aria-label": o,
964
+ className: u,
965
+ children: f,
966
+ ...p
967
+ }, h) => {
968
+ const { t: N } = B(), { mode: x } = y(), d = Us(), [w, z] = _(!1), v = !!(d != null && d.onReorder) && x !== "icon", S = i ?? o ?? "", j = is(), k = (m, I) => {
918
969
  if (!(d != null && d.onReorder)) return;
919
- const H = Math.max(0, Math.min(d.count - 1, I));
920
- H !== p && (d.onReorder(p, H), d.announce(
970
+ const V = Math.max(0, Math.min(d.count - 1, I));
971
+ V !== m && (d.onReorder(m, V), d.announce(
921
972
  N(
922
973
  "navigation.sidebar.reorderAnnounce",
923
974
  "{{label}} moved to position {{to}} of {{total}}",
924
- { label: j, to: H + 1, total: d.count }
975
+ { label: S, to: V + 1, total: d.count }
925
976
  )
926
977
  ));
927
- }, T = (p) => {
928
- f && (p.altKey && p.key === "ArrowUp" ? (p.preventDefault(), C(e, e - 1)) : p.altKey && p.key === "ArrowDown" ? (p.preventDefault(), C(e, e + 1)) : p.key === "Home" && p.altKey ? (p.preventDefault(), C(e, 0)) : p.key === "End" && p.altKey && (p.preventDefault(), C(e, d.count - 1)));
929
- }, ss = (p) => {
930
- f && (d == null || d.setDragSource(e), p.dataTransfer && (p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("ds:text/plain", String(e))));
931
- }, es = () => {
932
- d == null || d.setDragSource(null), h(!1);
933
- }, as = (p) => {
934
- !f || (d == null ? void 0 : d.dragSource) === null || (p.preventDefault(), p.dataTransfer && (p.dataTransfer.dropEffect = "move"), h(!0));
935
- }, rs = () => h(!1), ds = (p) => {
936
- if (!f) return;
937
- p.preventDefault();
978
+ }, F = (m) => {
979
+ v && (m.altKey && m.key === "ArrowUp" ? (m.preventDefault(), k(e, e - 1)) : m.altKey && m.key === "ArrowDown" ? (m.preventDefault(), k(e, e + 1)) : m.key === "Home" && m.altKey ? (m.preventDefault(), k(e, 0)) : m.key === "End" && m.altKey && (m.preventDefault(), k(e, d.count - 1)));
980
+ }, D = (m) => {
981
+ v && (d == null || d.setDragSource(e), m.dataTransfer && (m.dataTransfer.effectAllowed = "move", m.dataTransfer.setData("ds:text/plain", String(e))));
982
+ }, A = () => {
983
+ d == null || d.setDragSource(null), z(!1);
984
+ }, L = (m) => {
985
+ !v || (d == null ? void 0 : d.dragSource) === null || (m.preventDefault(), m.dataTransfer && (m.dataTransfer.dropEffect = "move"), z(!0));
986
+ }, E = () => z(!1), M = (m) => {
987
+ if (!v) return;
988
+ m.preventDefault();
938
989
  const I = d == null ? void 0 : d.dragSource;
939
- h(!1), !(I == null || I === e) && C(I, e);
940
- }, K = (d == null ? void 0 : d.dragSource) === e;
941
- return /* @__PURE__ */ u(
990
+ z(!1), !(I == null || I === e) && k(I, e);
991
+ }, C = (d == null ? void 0 : d.dragSource) === e;
992
+ return /* @__PURE__ */ c(
942
993
  "div",
943
994
  {
944
- className: Vs({
945
- dragging: K,
946
- dropTarget: S && !K
995
+ className: Gs({
996
+ dragging: C,
997
+ dropTarget: w && !C
947
998
  }),
948
- draggable: f || void 0,
949
- onDragStart: f ? ss : void 0,
950
- onDragEnd: f ? es : void 0,
951
- onDragOver: as,
952
- onDragLeave: rs,
953
- onDrop: ds,
999
+ draggable: v || void 0,
1000
+ onDragStart: v ? D : void 0,
1001
+ onDragEnd: v ? A : void 0,
1002
+ onDragOver: L,
1003
+ onDragLeave: E,
1004
+ onDrop: M,
954
1005
  children: [
955
1006
  /* @__PURE__ */ s(
956
- Q,
1007
+ rs,
957
1008
  {
958
- ref: y,
1009
+ ref: h,
959
1010
  isActive: a,
960
1011
  asChild: r,
961
- "aria-label": n,
962
- "aria-describedby": f ? z : void 0,
963
- draggable: f ? !1 : void 0,
964
- className: [f ? "ds:flex-1 ds:min-w-0" : "", m ?? ""].filter(Boolean).join(" "),
965
- ...v,
966
- children: c
1012
+ "aria-label": o,
1013
+ "aria-describedby": v ? j : void 0,
1014
+ draggable: v ? !1 : void 0,
1015
+ className: [v ? "ds:flex-1 ds:min-w-0" : "", u ?? ""].filter(Boolean).join(" "),
1016
+ ...p,
1017
+ children: f
967
1018
  }
968
1019
  ),
969
- f ? /* @__PURE__ */ s(
1020
+ v ? /* @__PURE__ */ s(
970
1021
  "button",
971
1022
  {
972
1023
  type: "button",
973
- id: z,
1024
+ id: j,
974
1025
  "aria-label": N(
975
1026
  "navigation.sidebar.reorderHandle",
976
1027
  "Reorder {{label}}. Press Alt + Up or Alt + Down to move.",
977
- { label: j }
1028
+ { label: S }
978
1029
  ),
979
- className: Ls,
980
- onKeyDown: T,
981
- children: /* @__PURE__ */ s(cs, { "aria-hidden": "true", className: "ds:size-4" })
1030
+ className: $s,
1031
+ onKeyDown: F,
1032
+ children: /* @__PURE__ */ s(ms, { "aria-hidden": "true", className: "ds:size-4" })
982
1033
  }
983
1034
  ) : null,
984
- o && b !== "icon" ? /* @__PURE__ */ s(
985
- L,
1035
+ t && x !== "icon" ? /* @__PURE__ */ s(
1036
+ Z,
986
1037
  {
987
- isPinned: t,
988
- label: l ?? n ?? "",
989
- onPinChange: o
1038
+ isPinned: n,
1039
+ label: l ?? o ?? "",
1040
+ onPinChange: t
990
1041
  }
991
1042
  ) : null
992
1043
  ]
@@ -994,8 +1045,8 @@ const Vs = k(
994
1045
  );
995
1046
  }
996
1047
  );
997
- Ks.displayName = "SidebarFavoriteItem";
998
- const Ms = k(
1048
+ qs.displayName = "SidebarFavoriteItem";
1049
+ const Zs = T(
999
1050
  [
1000
1051
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
1001
1052
  "ds:min-h-[var(--min-target-size)]",
@@ -1008,16 +1059,16 @@ const Ms = k(
1008
1059
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
1009
1060
  "ds:no-underline"
1010
1061
  ].join(" ")
1011
- ), _s = g(({ avatar: e, name: a, subtitle: r, subtitleLabel: i, className: t, ...o }, l) => {
1012
- const { mode: n } = w(), m = n !== "icon", c = typeof r == "string" ? r : i;
1013
- return /* @__PURE__ */ u(
1062
+ ), Ws = g(({ avatar: e, name: a, subtitle: r, subtitleLabel: i, className: n, ...t }, l) => {
1063
+ const { mode: o } = y(), u = o !== "icon", f = typeof r == "string" ? r : i;
1064
+ return /* @__PURE__ */ c(
1014
1065
  "button",
1015
1066
  {
1016
1067
  ref: l,
1017
1068
  type: "button",
1018
- "aria-label": c ? `${a}, ${c}` : a,
1019
- className: [Ms(), t].filter(Boolean).join(" "),
1020
- ...o,
1069
+ "aria-label": f ? `${a}, ${f}` : a,
1070
+ className: [Zs(), n].filter(Boolean).join(" "),
1071
+ ...t,
1021
1072
  children: [
1022
1073
  /* @__PURE__ */ s(
1023
1074
  "span",
@@ -1027,7 +1078,7 @@ const Ms = k(
1027
1078
  children: e
1028
1079
  }
1029
1080
  ),
1030
- m ? /* @__PURE__ */ u("span", { className: "ds:flex-1 ds:min-w-0 ds:text-start", children: [
1081
+ u ? /* @__PURE__ */ c("span", { className: "ds:flex-1 ds:min-w-0 ds:text-start", children: [
1031
1082
  /* @__PURE__ */ s("span", { className: "ds:block ds:truncate type-label", children: a }),
1032
1083
  r ? typeof r == "string" ? /* @__PURE__ */ s("span", { className: "ds:block ds:truncate type-meta ds:text-[color:var(--muted-foreground)]", children: r }) : /* @__PURE__ */ s("span", { className: "ds:flex ds:items-center ds:gap-[length:var(--spacing-xs)] ds:min-w-0 type-meta ds:text-[color:var(--muted-foreground)]", children: r }) : null
1033
1084
  ] }) : null
@@ -1035,8 +1086,8 @@ const Ms = k(
1035
1086
  }
1036
1087
  );
1037
1088
  });
1038
- _s.displayName = "SidebarProfilePill";
1039
- const Os = [
1089
+ Ws.displayName = "SidebarProfilePill";
1090
+ const Xs = [
1040
1091
  "ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
1041
1092
  "ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
1042
1093
  "ds:rounded-[var(--radius-sm)]",
@@ -1046,29 +1097,29 @@ const Os = [
1046
1097
  "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1047
1098
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
1048
1099
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
1049
- ].join(" "), Us = g(({ className: e, "aria-label": a, onClick: r, ...i }, t) => {
1050
- const { t: o } = D(), { mode: l, transitionTo: n } = w();
1100
+ ].join(" "), Ys = g(({ className: e, "aria-label": a, onClick: r, ...i }, n) => {
1101
+ const { t } = B(), { mode: l, transitionTo: o } = y();
1051
1102
  if (l === "overlay") return null;
1052
- const m = l === "expanded", c = a ?? (m ? o("navigation.sidebar.collapse", "Collapse sidebar") : o("navigation.sidebar.expand", "Expand sidebar")), v = /* @__PURE__ */ s(
1103
+ const u = l === "expanded", f = a ?? (u ? t("navigation.sidebar.collapse", "Collapse sidebar") : t("navigation.sidebar.expand", "Expand sidebar")), p = /* @__PURE__ */ s(
1053
1104
  "button",
1054
1105
  {
1055
- ref: t,
1106
+ ref: n,
1056
1107
  type: "button",
1057
- "aria-label": c,
1058
- "aria-expanded": m,
1059
- onClick: (y) => {
1060
- n == null || n(m ? "icon" : "expanded"), r == null || r(y);
1108
+ "aria-label": f,
1109
+ "aria-expanded": u,
1110
+ onClick: (h) => {
1111
+ o == null || o(u ? "icon" : "expanded"), r == null || r(h);
1061
1112
  },
1062
- className: [Os, e].filter(Boolean).join(" "),
1113
+ className: [Xs, e].filter(Boolean).join(" "),
1063
1114
  ...i,
1064
- children: m ? /* @__PURE__ */ s(
1065
- vs,
1115
+ children: u ? /* @__PURE__ */ s(
1116
+ ps,
1066
1117
  {
1067
1118
  "aria-hidden": "true",
1068
1119
  className: "ds:size-4 ds:rtl:-scale-x-100"
1069
1120
  }
1070
1121
  ) : /* @__PURE__ */ s(
1071
- gs,
1122
+ bs,
1072
1123
  {
1073
1124
  "aria-hidden": "true",
1074
1125
  className: "ds:size-4 ds:rtl:-scale-x-100"
@@ -1076,10 +1127,10 @@ const Os = [
1076
1127
  )
1077
1128
  }
1078
1129
  );
1079
- return /* @__PURE__ */ u(x.Root, { children: [
1080
- /* @__PURE__ */ s(x.Trigger, { asChild: !0, children: v }),
1081
- /* @__PURE__ */ s(x.Portal, { children: /* @__PURE__ */ u(
1082
- x.Content,
1130
+ return /* @__PURE__ */ c(b.Root, { children: [
1131
+ /* @__PURE__ */ s(b.Trigger, { asChild: !0, children: p }),
1132
+ /* @__PURE__ */ s(b.Portal, { children: /* @__PURE__ */ c(
1133
+ b.Content,
1083
1134
  {
1084
1135
  side: l === "icon" ? "right" : "top",
1085
1136
  sideOffset: 6,
@@ -1091,15 +1142,15 @@ const Os = [
1091
1142
  "ds:animate-in ds:fade-in ds:zoom-in-95 ds:motion-reduce:animate-none"
1092
1143
  ].join(" "),
1093
1144
  children: [
1094
- c,
1095
- /* @__PURE__ */ s(x.Arrow, { className: "ds:fill-[var(--foreground)]" })
1145
+ f,
1146
+ /* @__PURE__ */ s(b.Arrow, { className: "ds:fill-[var(--foreground)]" })
1096
1147
  ]
1097
1148
  }
1098
1149
  ) })
1099
1150
  ] });
1100
1151
  });
1101
- Us.displayName = "SidebarCollapseTrigger";
1102
- const Gs = k(
1152
+ Ys.displayName = "SidebarCollapseTrigger";
1153
+ const Js = T(
1103
1154
  [
1104
1155
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
1105
1156
  "ds:rounded-[var(--radius-md)]",
@@ -1130,18 +1181,18 @@ const Gs = k(
1130
1181
  },
1131
1182
  defaultVariants: { mode: "expanded" }
1132
1183
  }
1133
- ), $s = g(({ title: e, description: a, icon: r, className: i, ...t }, o) => {
1134
- const { mode: l } = w(), n = l === "icon", m = (
1184
+ ), Qs = g(({ title: e, description: a, icon: r, className: i, ...n }, t) => {
1185
+ const { mode: l } = y(), o = l === "icon", u = (
1135
1186
  // aria-label only in icon mode (where the copy is hidden) — in
1136
1187
  // expanded mode the accessible name comes from the visible contents
1137
1188
  // so the description isn't excluded from it.
1138
- /* @__PURE__ */ u(
1189
+ /* @__PURE__ */ c(
1139
1190
  "a",
1140
1191
  {
1141
- ref: o,
1142
- "aria-label": n ? e : void 0,
1143
- className: Gs({ mode: l, className: i }),
1144
- ...t,
1192
+ ref: t,
1193
+ "aria-label": o ? e : void 0,
1194
+ className: Js({ mode: l, className: i }),
1195
+ ...n,
1145
1196
  children: [
1146
1197
  /* @__PURE__ */ s(
1147
1198
  "span",
@@ -1152,11 +1203,11 @@ const Gs = k(
1152
1203
  "ds:rounded-[var(--radius-sm)]",
1153
1204
  "ds:bg-[var(--accent)] ds:text-[var(--accent-foreground)]"
1154
1205
  ].join(" "),
1155
- children: r ?? /* @__PURE__ */ s(ms, { className: "ds:size-4" })
1206
+ children: r ?? /* @__PURE__ */ s(xs, { className: "ds:size-4" })
1156
1207
  }
1157
1208
  ),
1158
- n ? null : /* @__PURE__ */ u(V, { children: [
1159
- /* @__PURE__ */ u("span", { className: "ds:flex-1 ds:min-w-0 ds:text-start", children: [
1209
+ o ? null : /* @__PURE__ */ c($, { children: [
1210
+ /* @__PURE__ */ c("span", { className: "ds:flex-1 ds:min-w-0 ds:text-start", children: [
1160
1211
  /* @__PURE__ */ s("span", { className: "ds:block ds:line-clamp-2 type-label", children: e }),
1161
1212
  a ? (
1162
1213
  // Foreground (not muted) on the tinted surface — the gradient
@@ -1165,7 +1216,7 @@ const Gs = k(
1165
1216
  ) : null
1166
1217
  ] }),
1167
1218
  /* @__PURE__ */ s(
1168
- P,
1219
+ H,
1169
1220
  {
1170
1221
  "aria-hidden": "true",
1171
1222
  className: "ds:size-4 ds:shrink-0 ds:rtl:-scale-x-100"
@@ -1176,10 +1227,10 @@ const Gs = k(
1176
1227
  }
1177
1228
  )
1178
1229
  );
1179
- return n ? /* @__PURE__ */ u(x.Root, { children: [
1180
- /* @__PURE__ */ s(x.Trigger, { asChild: !0, children: m }),
1181
- /* @__PURE__ */ s(x.Portal, { children: /* @__PURE__ */ u(
1182
- x.Content,
1230
+ return o ? /* @__PURE__ */ c(b.Root, { children: [
1231
+ /* @__PURE__ */ s(b.Trigger, { asChild: !0, children: u }),
1232
+ /* @__PURE__ */ s(b.Portal, { children: /* @__PURE__ */ c(
1233
+ b.Content,
1183
1234
  {
1184
1235
  side: "right",
1185
1236
  sideOffset: 6,
@@ -1192,33 +1243,33 @@ const Gs = k(
1192
1243
  ].join(" "),
1193
1244
  children: [
1194
1245
  e,
1195
- /* @__PURE__ */ s(x.Arrow, { className: "ds:fill-[var(--foreground)]" })
1246
+ /* @__PURE__ */ s(b.Arrow, { className: "ds:fill-[var(--foreground)]" })
1196
1247
  ]
1197
1248
  }
1198
1249
  ) })
1199
- ] }) : m;
1250
+ ] }) : u;
1200
1251
  });
1201
- $s.displayName = "SidebarUpgradeChip";
1252
+ Qs.displayName = "SidebarUpgradeChip";
1202
1253
  export {
1203
- ys as S,
1204
- Ns as a,
1205
- Us as b,
1206
- Ks as c,
1207
- Es as d,
1208
- Ss as e,
1209
- Cs as f,
1210
- ws as g,
1211
- Q as h,
1212
- Bs as i,
1213
- Ts as j,
1214
- Is as k,
1215
- L as l,
1216
- Ps as m,
1217
- _s as n,
1218
- J as o,
1219
- $s as p,
1220
- As as q,
1221
- bs as s,
1222
- w as u
1254
+ Cs as S,
1255
+ Is as a,
1256
+ Ys as b,
1257
+ qs as c,
1258
+ Os as d,
1259
+ Rs as e,
1260
+ As as f,
1261
+ Ts as g,
1262
+ rs as h,
1263
+ Hs as i,
1264
+ Ps as j,
1265
+ _s as k,
1266
+ Z as l,
1267
+ Vs as m,
1268
+ Ws as n,
1269
+ as as o,
1270
+ Qs as p,
1271
+ Ls as q,
1272
+ ys as s,
1273
+ y as u
1223
1274
  };
1224
- //# sourceMappingURL=sidebar-h78cTNLh.js.map
1275
+ //# sourceMappingURL=sidebar-DPEHzxLZ.js.map