@alfadocs/ui-kit-debug 1.39.0 → 1.41.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 (201) hide show
  1. package/dist/_chunks/{ai-consent-banner-DvtaM3yg.js → ai-consent-banner-D7I2U-cz.js} +37 -36
  2. package/dist/_chunks/ai-consent-banner-D7I2U-cz.js.map +1 -0
  3. package/dist/_chunks/arrow-left-BfaGqVam.js +15 -0
  4. package/dist/_chunks/arrow-left-BfaGqVam.js.map +1 -0
  5. package/dist/_chunks/{booking-Dn3jvv3K.js → booking-D43ASl8y.js} +1109 -1103
  6. package/dist/_chunks/booking-D43ASl8y.js.map +1 -0
  7. package/dist/_chunks/{calendar-workspace-B-fUbm62.js → calendar-workspace-UllCER2k.js} +2170 -2163
  8. package/dist/_chunks/calendar-workspace-UllCER2k.js.map +1 -0
  9. package/dist/_chunks/{contact-profile-card-Zt6WNg1u.js → contact-profile-card-C0WpwpVV.js} +38 -33
  10. package/dist/_chunks/contact-profile-card-C0WpwpVV.js.map +1 -0
  11. package/dist/_chunks/editor-overlay-DwNKaI22.js +93 -0
  12. package/dist/_chunks/editor-overlay-DwNKaI22.js.map +1 -0
  13. package/dist/_chunks/format-price-DAbh61Lz.js +51 -0
  14. package/dist/_chunks/format-price-DAbh61Lz.js.map +1 -0
  15. package/dist/_chunks/help-me-write-templates-GB70jnV9.js +764 -0
  16. package/dist/_chunks/help-me-write-templates-GB70jnV9.js.map +1 -0
  17. package/dist/_chunks/{marketplace-app-shell-d2EtcUbe.js → marketplace-app-shell-D_g9BaDI.js} +2 -2
  18. package/dist/_chunks/{marketplace-app-shell-d2EtcUbe.js.map → marketplace-app-shell-D_g9BaDI.js.map} +1 -1
  19. package/dist/_chunks/{money-BY-HmKhZ.js → money-BXLBIRVO.js} +2 -2
  20. package/dist/_chunks/{money-BY-HmKhZ.js.map → money-BXLBIRVO.js.map} +1 -1
  21. package/dist/_chunks/{notes-panel-CAD1Ytcj.js → notes-panel-_diLt8Cj.js} +76 -73
  22. package/dist/_chunks/notes-panel-_diLt8Cj.js.map +1 -0
  23. package/dist/_chunks/{panel-subview-Cc2Wtt7D.js → panel-subview-PMBRPFOa.js} +49 -59
  24. package/dist/_chunks/panel-subview-PMBRPFOa.js.map +1 -0
  25. package/dist/_chunks/{practice-results-D_jjzwgf.js → practice-results-D11Zpt27.js} +50 -45
  26. package/dist/_chunks/practice-results-D11Zpt27.js.map +1 -0
  27. package/dist/_chunks/rich-text-editor-D7AKKAQ2.js +3119 -0
  28. package/dist/_chunks/rich-text-editor-D7AKKAQ2.js.map +1 -0
  29. package/dist/_chunks/{sidebar-C-Gr2LL-.js → sidebar-ClTY9lLI.js} +160 -169
  30. package/dist/_chunks/sidebar-ClTY9lLI.js.map +1 -0
  31. package/dist/_chunks/{treatment-receipt-dUm99mdn.js → treatment-receipt-DU0OewqH.js} +2 -2
  32. package/dist/_chunks/{treatment-receipt-dUm99mdn.js.map → treatment-receipt-DU0OewqH.js.map} +1 -1
  33. package/dist/_chunks/trending-up-C_luYBzS.js +15 -0
  34. package/dist/_chunks/trending-up-C_luYBzS.js.map +1 -0
  35. package/dist/_chunks/wand-sparkles-DAjKyhz7.js +27 -0
  36. package/dist/_chunks/wand-sparkles-DAjKyhz7.js.map +1 -0
  37. package/dist/agent-catalog.json +87 -1
  38. package/dist/agent-i18n/en.json +7 -0
  39. package/dist/components/_shared/format-price.d.ts +6 -0
  40. package/dist/components/_shared/format-price.d.ts.map +1 -1
  41. package/dist/components/_shared/index.d.ts +1 -1
  42. package/dist/components/_shared/index.d.ts.map +1 -1
  43. package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +9 -0
  44. package/dist/components/ai-consent-banner/ai-consent-banner.d.ts.map +1 -1
  45. package/dist/components/ai-consent-banner/index.d.ts +1 -1
  46. package/dist/components/ai-consent-banner/index.d.ts.map +1 -1
  47. package/dist/components/ai-consent-banner/index.js +1 -1
  48. package/dist/components/booking/booking-types.d.ts +6 -0
  49. package/dist/components/booking/booking-types.d.ts.map +1 -1
  50. package/dist/components/booking/booking.d.ts.map +1 -1
  51. package/dist/components/booking/cascade.d.ts +6 -0
  52. package/dist/components/booking/cascade.d.ts.map +1 -1
  53. package/dist/components/booking/index.js +1 -1
  54. package/dist/components/contact-profile-card/contact-profile-card.d.ts +2 -2
  55. package/dist/components/contact-profile-card/contact-profile-card.d.ts.map +1 -1
  56. package/dist/components/contact-profile-card/index.js +1 -1
  57. package/dist/components/editor-overlay/editor-overlay.d.ts.map +1 -1
  58. package/dist/components/editor-overlay/index.js +1 -1
  59. package/dist/components/index.d.ts +1 -0
  60. package/dist/components/index.d.ts.map +1 -1
  61. package/dist/components/money/index.js +1 -1
  62. package/dist/components/notes-panel/index.d.ts +1 -0
  63. package/dist/components/notes-panel/index.d.ts.map +1 -1
  64. package/dist/components/notes-panel/index.js +1 -1
  65. package/dist/components/notes-panel/notes-panel.d.ts +8 -1
  66. package/dist/components/notes-panel/notes-panel.d.ts.map +1 -1
  67. package/dist/components/panel-subview/index.js +1 -1
  68. package/dist/components/practice-results/index.js +1 -1
  69. package/dist/components/practice-results/practice-results.d.ts +2 -1
  70. package/dist/components/practice-results/practice-results.d.ts.map +1 -1
  71. package/dist/components/rich-text-editor/editor-toolbar.d.ts +6 -1
  72. package/dist/components/rich-text-editor/editor-toolbar.d.ts.map +1 -1
  73. package/dist/components/rich-text-editor/index.d.ts +1 -1
  74. package/dist/components/rich-text-editor/index.d.ts.map +1 -1
  75. package/dist/components/rich-text-editor/index.js +1 -1
  76. package/dist/components/rich-text-editor/rich-text-editor.d.ts +122 -0
  77. package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
  78. package/dist/components/sidebar/index.js +1 -1
  79. package/dist/components/treatment-receipt/index.js +1 -1
  80. package/dist/host-compat.css +13 -1
  81. package/dist/i18n/locales/ar.d.ts +92 -11
  82. package/dist/i18n/locales/ar.d.ts.map +1 -1
  83. package/dist/i18n/locales/ar.js +94 -13
  84. package/dist/i18n/locales/ar.js.map +1 -1
  85. package/dist/i18n/locales/de.d.ts +92 -11
  86. package/dist/i18n/locales/de.d.ts.map +1 -1
  87. package/dist/i18n/locales/de.js +94 -13
  88. package/dist/i18n/locales/de.js.map +1 -1
  89. package/dist/i18n/locales/el.d.ts +92 -11
  90. package/dist/i18n/locales/el.d.ts.map +1 -1
  91. package/dist/i18n/locales/el.js +94 -13
  92. package/dist/i18n/locales/el.js.map +1 -1
  93. package/dist/i18n/locales/en.d.ts +81 -0
  94. package/dist/i18n/locales/en.d.ts.map +1 -1
  95. package/dist/i18n/locales/en.js +83 -2
  96. package/dist/i18n/locales/en.js.map +1 -1
  97. package/dist/i18n/locales/es.d.ts +92 -11
  98. package/dist/i18n/locales/es.d.ts.map +1 -1
  99. package/dist/i18n/locales/es.js +94 -13
  100. package/dist/i18n/locales/es.js.map +1 -1
  101. package/dist/i18n/locales/fr.d.ts +92 -11
  102. package/dist/i18n/locales/fr.d.ts.map +1 -1
  103. package/dist/i18n/locales/fr.js +94 -13
  104. package/dist/i18n/locales/fr.js.map +1 -1
  105. package/dist/i18n/locales/hi.d.ts +92 -11
  106. package/dist/i18n/locales/hi.d.ts.map +1 -1
  107. package/dist/i18n/locales/hi.js +94 -13
  108. package/dist/i18n/locales/hi.js.map +1 -1
  109. package/dist/i18n/locales/it.d.ts +92 -11
  110. package/dist/i18n/locales/it.d.ts.map +1 -1
  111. package/dist/i18n/locales/it.js +94 -13
  112. package/dist/i18n/locales/it.js.map +1 -1
  113. package/dist/i18n/locales/ja.d.ts +92 -11
  114. package/dist/i18n/locales/ja.d.ts.map +1 -1
  115. package/dist/i18n/locales/ja.js +94 -13
  116. package/dist/i18n/locales/ja.js.map +1 -1
  117. package/dist/i18n/locales/nl.d.ts +92 -11
  118. package/dist/i18n/locales/nl.d.ts.map +1 -1
  119. package/dist/i18n/locales/nl.js +94 -13
  120. package/dist/i18n/locales/nl.js.map +1 -1
  121. package/dist/i18n/locales/pl.d.ts +92 -11
  122. package/dist/i18n/locales/pl.d.ts.map +1 -1
  123. package/dist/i18n/locales/pl.js +94 -13
  124. package/dist/i18n/locales/pl.js.map +1 -1
  125. package/dist/i18n/locales/pt.d.ts +92 -11
  126. package/dist/i18n/locales/pt.d.ts.map +1 -1
  127. package/dist/i18n/locales/pt.js +94 -13
  128. package/dist/i18n/locales/pt.js.map +1 -1
  129. package/dist/i18n/locales/ro.d.ts +92 -11
  130. package/dist/i18n/locales/ro.d.ts.map +1 -1
  131. package/dist/i18n/locales/ro.js +94 -13
  132. package/dist/i18n/locales/ro.js.map +1 -1
  133. package/dist/i18n/locales/ru.d.ts +92 -11
  134. package/dist/i18n/locales/ru.d.ts.map +1 -1
  135. package/dist/i18n/locales/ru.js +94 -13
  136. package/dist/i18n/locales/ru.js.map +1 -1
  137. package/dist/i18n/locales/sq.d.ts +92 -11
  138. package/dist/i18n/locales/sq.d.ts.map +1 -1
  139. package/dist/i18n/locales/sq.js +94 -13
  140. package/dist/i18n/locales/sq.js.map +1 -1
  141. package/dist/i18n/locales/sv.d.ts +92 -11
  142. package/dist/i18n/locales/sv.d.ts.map +1 -1
  143. package/dist/i18n/locales/sv.js +94 -13
  144. package/dist/i18n/locales/sv.js.map +1 -1
  145. package/dist/i18n/locales/tr.d.ts +92 -11
  146. package/dist/i18n/locales/tr.d.ts.map +1 -1
  147. package/dist/i18n/locales/tr.js +94 -13
  148. package/dist/i18n/locales/tr.js.map +1 -1
  149. package/dist/i18n/locales/zh.d.ts +92 -11
  150. package/dist/i18n/locales/zh.d.ts.map +1 -1
  151. package/dist/i18n/locales/zh.js +94 -13
  152. package/dist/i18n/locales/zh.js.map +1 -1
  153. package/dist/index.js +143 -136
  154. package/dist/index.js.map +1 -1
  155. package/dist/locales/ar.json +94 -13
  156. package/dist/locales/de.json +94 -13
  157. package/dist/locales/el.json +94 -13
  158. package/dist/locales/en.json +83 -2
  159. package/dist/locales/es.json +94 -13
  160. package/dist/locales/fr.json +94 -13
  161. package/dist/locales/hi.json +94 -13
  162. package/dist/locales/it.json +94 -13
  163. package/dist/locales/ja.json +94 -13
  164. package/dist/locales/nl.json +94 -13
  165. package/dist/locales/pl.json +94 -13
  166. package/dist/locales/pt.json +94 -13
  167. package/dist/locales/ro.json +94 -13
  168. package/dist/locales/ru.json +94 -13
  169. package/dist/locales/sq.json +94 -13
  170. package/dist/locales/sv.json +94 -13
  171. package/dist/locales/tr.json +94 -13
  172. package/dist/locales/zh.json +94 -13
  173. package/dist/patterns/calendar/calendar-workspace.d.ts.map +1 -1
  174. package/dist/patterns/calendar/calendar.journey.d.ts +9 -1
  175. package/dist/patterns/calendar/calendar.journey.d.ts.map +1 -1
  176. package/dist/patterns/calendar/calendar.sheets.d.ts +6 -1
  177. package/dist/patterns/calendar/calendar.sheets.d.ts.map +1 -1
  178. package/dist/patterns/calendar/index.js +1 -1
  179. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +164 -0
  180. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts.map +1 -0
  181. package/dist/patterns/help-me-write-templates/index.d.ts +3 -0
  182. package/dist/patterns/help-me-write-templates/index.d.ts.map +1 -0
  183. package/dist/patterns/help-me-write-templates/index.js +10 -0
  184. package/dist/patterns/help-me-write-templates/index.js.map +1 -0
  185. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  186. package/dist/tokens.css +51 -42
  187. package/package.json +5 -1
  188. package/dist/_chunks/ai-consent-banner-DvtaM3yg.js.map +0 -1
  189. package/dist/_chunks/booking-Dn3jvv3K.js.map +0 -1
  190. package/dist/_chunks/calendar-workspace-B-fUbm62.js.map +0 -1
  191. package/dist/_chunks/contact-profile-card-Zt6WNg1u.js.map +0 -1
  192. package/dist/_chunks/editor-overlay-9tcPXNWt.js +0 -89
  193. package/dist/_chunks/editor-overlay-9tcPXNWt.js.map +0 -1
  194. package/dist/_chunks/format-price-BkMEbeW3.js +0 -47
  195. package/dist/_chunks/format-price-BkMEbeW3.js.map +0 -1
  196. package/dist/_chunks/notes-panel-CAD1Ytcj.js.map +0 -1
  197. package/dist/_chunks/panel-subview-Cc2Wtt7D.js.map +0 -1
  198. package/dist/_chunks/practice-results-D_jjzwgf.js.map +0 -1
  199. package/dist/_chunks/rich-text-editor-C6fE-uP4.js +0 -2627
  200. package/dist/_chunks/rich-text-editor-C6fE-uP4.js.map +0 -1
  201. package/dist/_chunks/sidebar-C-Gr2LL-.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { jsx as s, jsxs as u, Fragment as X } from "react/jsx-runtime";
2
- import { forwardRef as b, useState as B, useEffect as L, useCallback as ss, useRef as G, useMemo as $, useId as ds, useContext as q, createContext as Z } from "react";
2
+ import { forwardRef as b, useState as B, useEffect as L, useCallback as Q, useRef as G, useMemo as O, useId as ns, useContext as q, createContext as Z } from "react";
3
3
  import * as R from "@radix-ui/react-dialog";
4
- import * as K from "@radix-ui/react-collapsible";
4
+ import * as M from "@radix-ui/react-collapsible";
5
5
  import * as E from "@radix-ui/react-accordion";
6
6
  import * as h from "@radix-ui/react-tooltip";
7
7
  import { a as ts } from "./accordion-C11v9ouP.js";
@@ -14,42 +14,33 @@ import { u as us } from "./use-edge-resize-ZnGG7gyO.js";
14
14
  import { c as ms } from "./compose-refs-C0k0tdqF.js";
15
15
  import { a as vs, b as ps, d as fs } from "./input-surface-xyERuLU_.js";
16
16
  import { X as gs } from "./x-B5YnXwCz.js";
17
- import { c as W } from "./createLucideIcon-DhHxpK9K.js";
17
+ import { c as ss } from "./createLucideIcon-DhHxpK9K.js";
18
18
  import { G as bs } from "./grip-vertical-onSb1JXO.js";
19
19
  import { C as H } from "./chevron-right-I9AeSxH2.js";
20
20
  import { S as hs } from "./star-Bf9L2Uot.js";
21
+ import { T as xs } from "./trending-up-C_luYBzS.js";
21
22
  /**
22
23
  * @license lucide-react v1.22.0 - ISC
23
24
  *
24
25
  * This source code is licensed under the ISC license.
25
26
  * See the LICENSE file in the root directory of this source tree.
26
27
  */
27
- const xs = [
28
+ const ys = [
28
29
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
29
30
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
30
31
  ["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
31
- ], ys = W("panel-left-close", xs);
32
+ ], Ns = ss("panel-left-close", ys);
32
33
  /**
33
34
  * @license lucide-react v1.22.0 - ISC
34
35
  *
35
36
  * This source code is licensed under the ISC license.
36
37
  * See the LICENSE file in the root directory of this source tree.
37
38
  */
38
- const Ns = [
39
+ const ws = [
39
40
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
40
41
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
41
42
  ["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
42
- ], ws = W("panel-left-open", Ns);
43
- /**
44
- * @license lucide-react v1.22.0 - ISC
45
- *
46
- * This source code is licensed under the ISC license.
47
- * See the LICENSE file in the root directory of this source tree.
48
- */
49
- const zs = [
50
- ["path", { d: "M16 7h6v6", key: "box55l" }],
51
- ["path", { d: "m22 7-8.5 8.5-5-5L2 17", key: "1t1m79" }]
52
- ], Ss = W("trending-up", zs), js = {
43
+ ], zs = ss("panel-left-open", ws), Ss = {
53
44
  id: "sidebar",
54
45
  capabilities: ["expand"],
55
46
  state: {
@@ -84,11 +75,11 @@ const zs = [
84
75
  description: "Each Sidebar.Item emits its `navId` prop as data-nav-id. Agents activate a nav item via native click on the matching anchor."
85
76
  }
86
77
  }
87
- }, O = Z({
78
+ }, $ = Z({
88
79
  mode: "expanded",
89
80
  density: "default"
90
- }), N = () => q(O), es = "ui.sidebar.state";
91
- function Cs(e) {
81
+ }), N = () => q($), es = "ui.sidebar.state";
82
+ function js(e) {
92
83
  if (typeof window > "u") return e;
93
84
  try {
94
85
  const a = window.localStorage.getItem(es);
@@ -97,14 +88,14 @@ function Cs(e) {
97
88
  }
98
89
  return e;
99
90
  }
100
- function ks(e) {
91
+ function Cs(e) {
101
92
  if (!(typeof window > "u"))
102
93
  try {
103
94
  window.localStorage.setItem(es, e);
104
95
  } catch {
105
96
  }
106
97
  }
107
- const J = T(
98
+ const Y = T(
108
99
  [
109
100
  "ds:flex ds:flex-col",
110
101
  // Sidebar sits at the page background in light mode (white-on-white
@@ -150,7 +141,7 @@ const J = T(
150
141
  },
151
142
  defaultVariants: { mode: "expanded", density: "default" }
152
143
  }
153
- ), Ts = 192, Is = 384, Rs = 248, Bs = [
144
+ ), ks = 192, Ts = 384, Is = 248, Rs = [
154
145
  "ds:absolute ds:[inset-block:0] ds:end-0 ds:z-[2]",
155
146
  "ds:w-[var(--resizable-handle-size)]",
156
147
  "ds:cursor-col-resize ds:select-none ds:touch-none",
@@ -164,13 +155,13 @@ const J = T(
164
155
  "ds:before:[inset-block:0]",
165
156
  "ds:before:[inline-size:var(--min-target-size)]",
166
157
  "ds:before:[inset-inline:calc(0px_-_(var(--min-target-size)_-_var(--resizable-handle-size))_/_2)]"
167
- ].join(" "), As = b(
158
+ ].join(" "), Bs = b(
168
159
  ({
169
160
  state: e,
170
161
  defaultState: a = "expanded",
171
162
  onStateChange: r,
172
- density: n = "default",
173
- open: d,
163
+ density: d = "default",
164
+ open: n,
174
165
  onOpenChange: o,
175
166
  resizable: t = !1,
176
167
  "aria-label": l,
@@ -180,12 +171,12 @@ const J = T(
180
171
  ...g
181
172
  }, y) => {
182
173
  const { t: x } = A(), i = e !== void 0, [w, z] = B(
183
- () => i ? e : Cs(a)
174
+ () => i ? e : js(a)
184
175
  ), v = i ? e : w;
185
176
  L(() => {
186
- i || ks(w);
177
+ i || Cs(w);
187
178
  }, [w, i]);
188
- const S = ss(
179
+ const S = Q(
189
180
  (k) => {
190
181
  i || z(k), r == null || r(k);
191
182
  },
@@ -194,7 +185,7 @@ const J = T(
194
185
  L(() => {
195
186
  C.current = v;
196
187
  }, [v]);
197
- const F = $(
188
+ const F = O(
198
189
  () => ({
199
190
  getIsCollapsed: () => C.current !== "expanded",
200
191
  toggleCollapsed: () => {
@@ -204,21 +195,21 @@ const J = T(
204
195
  }),
205
196
  [S]
206
197
  );
207
- cs(js, F, f);
208
- const D = G(null), _ = $(() => ms(y, D), [y]), { separatorProps: U, isResizing: P } = us({
198
+ cs(Ss, F, f);
199
+ const D = G(null), _ = O(() => ms(y, D), [y]), { separatorProps: U, isResizing: P } = us({
209
200
  edge: "inline-end",
210
201
  targetRef: D,
211
202
  cssProperty: "--sidebar-modern-expanded-size",
212
- minSize: Ts,
213
- maxSize: Is,
214
- defaultSize: Rs,
203
+ minSize: ks,
204
+ maxSize: Ts,
205
+ defaultSize: Is,
215
206
  disabled: !t || v !== "expanded"
216
- }), M = t && v === "expanded";
207
+ }), V = t && v === "expanded";
217
208
  return v === "overlay" ? /* @__PURE__ */ s(
218
- O.Provider,
209
+ $.Provider,
219
210
  {
220
- value: { mode: "overlay", density: n, transitionTo: S },
221
- children: /* @__PURE__ */ s(R.Root, { open: d, onOpenChange: o, children: /* @__PURE__ */ u(R.Portal, { children: [
211
+ value: { mode: "overlay", density: d, transitionTo: S },
212
+ children: /* @__PURE__ */ s(R.Root, { open: n, onOpenChange: o, children: /* @__PURE__ */ u(R.Portal, { children: [
222
213
  /* @__PURE__ */ s(
223
214
  R.Overlay,
224
215
  {
@@ -242,7 +233,7 @@ const J = T(
242
233
  // utilities and compiled to nothing.
243
234
  "ds:start-0 ds:top-0",
244
235
  "ds:h-dvh",
245
- J({ mode: "overlay", density: n }),
236
+ Y({ mode: "overlay", density: d }),
246
237
  "ds:shadow-[var(--shadow-xl)]",
247
238
  "ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
248
239
  "ds:data-[state=open]:slide-in-from-left ds:data-[state=closed]:slide-out-to-left",
@@ -288,9 +279,9 @@ const J = T(
288
279
  ] }) })
289
280
  }
290
281
  ) : /* @__PURE__ */ s(
291
- O.Provider,
282
+ $.Provider,
292
283
  {
293
- value: { mode: v, density: n, transitionTo: S },
284
+ value: { mode: v, density: d, transitionTo: S },
294
285
  children: /* @__PURE__ */ s(h.Provider, { delayDuration: 300, children: /* @__PURE__ */ u(
295
286
  "nav",
296
287
  {
@@ -300,23 +291,23 @@ const J = T(
300
291
  "data-component": "sidebar",
301
292
  "data-component-id": f,
302
293
  "data-mode": v,
303
- "data-density": n,
294
+ "data-density": d,
304
295
  "data-resizing": P ? "" : void 0,
305
296
  className: [
306
- J({ mode: v, density: n }),
307
- n === "compact" ? "ds:density-compact" : "",
297
+ Y({ mode: v, density: d }),
298
+ d === "compact" ? "ds:density-compact" : "",
308
299
  c ?? ""
309
300
  ].filter(Boolean).join(" "),
310
301
  ...g,
311
302
  children: [
312
303
  m,
313
- M ? /* @__PURE__ */ s(
304
+ V ? /* @__PURE__ */ s(
314
305
  "div",
315
306
  {
316
307
  ...U,
317
308
  "aria-label": x("navigation.sidebar.resize"),
318
309
  "data-resizing": P ? "" : void 0,
319
- className: Bs
310
+ className: Rs
320
311
  }
321
312
  ) : null
322
313
  ]
@@ -326,9 +317,9 @@ const J = T(
326
317
  );
327
318
  }
328
319
  );
329
- As.displayName = "Sidebar";
330
- const Ds = b(({ className: e, ...a }, r) => {
331
- const { mode: n } = N();
320
+ Bs.displayName = "Sidebar";
321
+ const As = b(({ className: e, ...a }, r) => {
322
+ const { mode: d } = N();
332
323
  return /* @__PURE__ */ s(
333
324
  "div",
334
325
  {
@@ -343,7 +334,7 @@ const Ds = b(({ className: e, ...a }, r) => {
343
334
  // `justify-center` centres the control exactly as the nav icons
344
335
  // centre. Header content therefore tracks the nav column in both
345
336
  // modes instead of sitting on its own axis.
346
- n === "icon" ? "ds:justify-center ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]",
337
+ d === "icon" ? "ds:justify-center ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]",
347
338
  "ds:py-[var(--spacing-sm)]",
348
339
  // Hairline border + downward chrome shadow cast the header as a
349
340
  // sticky top band above the scrolling body.
@@ -355,9 +346,9 @@ const Ds = b(({ className: e, ...a }, r) => {
355
346
  }
356
347
  );
357
348
  });
358
- Ds.displayName = "SidebarHeader";
359
- const _s = b(
360
- ({ className: e, children: a, ...r }, n) => (
349
+ As.displayName = "SidebarHeader";
350
+ const Ds = b(
351
+ ({ className: e, children: a, ...r }, d) => (
361
352
  // Scroll the nav sections through the kit `ScrollArea` (8px tokenised
362
353
  // scrollbar) instead of native `overflow-auto` (the OS scrollbar), so the
363
354
  // sidebar matches the Control Room rail and the kit's trays. `flex-1 min-h-0`
@@ -372,7 +363,7 @@ const _s = b(
372
363
  children: /* @__PURE__ */ s(
373
364
  "div",
374
365
  {
375
- ref: n,
366
+ ref: d,
376
367
  className: "ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:py-[var(--spacing-sm)]",
377
368
  ...r,
378
369
  children: a
@@ -382,9 +373,9 @@ const _s = b(
382
373
  )
383
374
  )
384
375
  );
385
- _s.displayName = "SidebarBody";
386
- const Ps = b(({ className: e, ...a }, r) => {
387
- const { mode: n } = N();
376
+ Ds.displayName = "SidebarBody";
377
+ const _s = b(({ className: e, ...a }, r) => {
378
+ const { mode: d } = N();
388
379
  return /* @__PURE__ */ s(
389
380
  "div",
390
381
  {
@@ -393,7 +384,7 @@ const Ps = b(({ className: e, ...a }, r) => {
393
384
  "ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
394
385
  // Icon-rail is 64px — two 44×44 controls can't sit side-by-side,
395
386
  // so switch to a vertical stack and let each row self-centre.
396
- n === "icon" ? "ds:flex-col ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
387
+ d === "icon" ? "ds:flex-col ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
397
388
  "ds:min-h-[var(--min-target-size)]",
398
389
  "ds:py-[var(--spacing-sm)]",
399
390
  // Hairline border + upward chrome shadow cast the footer as a
@@ -406,8 +397,8 @@ const Ps = b(({ className: e, ...a }, r) => {
406
397
  }
407
398
  );
408
399
  });
409
- Ps.displayName = "SidebarFooter";
410
- const Es = [
400
+ _s.displayName = "SidebarFooter";
401
+ const Ps = [
411
402
  "ds:group/section-label ds:flex ds:w-full ds:items-center",
412
403
  "type-eyebrow",
413
404
  "ds:text-[var(--muted-foreground)]",
@@ -417,7 +408,7 @@ const Es = [
417
408
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
418
409
  "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
419
410
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
420
- ].join(" "), Q = [
411
+ ].join(" "), J = [
421
412
  "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
422
413
  "ds:size-4",
423
414
  "ds:text-[var(--accent)]",
@@ -427,8 +418,8 @@ const Es = [
427
418
  label: e,
428
419
  icon: a,
429
420
  collapsible: r = !0,
430
- defaultOpen: n = !0,
431
- open: d,
421
+ defaultOpen: d = !0,
422
+ open: n,
432
423
  onOpenChange: o,
433
424
  className: t,
434
425
  children: l,
@@ -454,7 +445,7 @@ const Es = [
454
445
  g && !a ? "ds:sr-only" : ""
455
446
  ].filter(Boolean).join(" "),
456
447
  children: [
457
- a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: Q, children: a }) : null,
448
+ a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: J, children: a }) : null,
458
449
  e ? /* @__PURE__ */ s("span", { className: g ? "ds:sr-only" : "", children: e }) : null
459
450
  ]
460
451
  }
@@ -467,13 +458,13 @@ const Es = [
467
458
  {
468
459
  type: "single",
469
460
  collapsible: !0,
470
- defaultValue: d === void 0 && n ? i : void 0,
471
- value: d === void 0 ? void 0 : d ? i : "",
461
+ defaultValue: n === void 0 && d ? i : void 0,
462
+ value: n === void 0 ? void 0 : n ? i : "",
472
463
  onValueChange: o ? (w) => o(w === i) : void 0,
473
464
  asChild: !0,
474
465
  children: /* @__PURE__ */ s("div", { ref: m, className: x, ...c, children: /* @__PURE__ */ u(E.Item, { value: i, children: [
475
- /* @__PURE__ */ s(E.Header, { className: "ds:flex", children: /* @__PURE__ */ u(E.Trigger, { className: Es, children: [
476
- a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: Q, children: a }) : null,
466
+ /* @__PURE__ */ s(E.Header, { className: "ds:flex", children: /* @__PURE__ */ u(E.Trigger, { className: Ps, children: [
467
+ a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: J, children: a }) : null,
477
468
  /* @__PURE__ */ s("span", { className: "ds:flex-1 ds:text-start", children: e }),
478
469
  /* @__PURE__ */ s(
479
470
  H,
@@ -497,7 +488,7 @@ const Es = [
497
488
  }
498
489
  );
499
490
  as.displayName = "SidebarSection";
500
- const Hs = [
491
+ const Es = [
501
492
  "ds:group ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]",
502
493
  "ds:min-h-[var(--min-target-size)]",
503
494
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
@@ -508,29 +499,29 @@ const Hs = [
508
499
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
509
500
  "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
510
501
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
511
- ].join(" "), Fs = b(
502
+ ].join(" "), Hs = b(
512
503
  ({
513
504
  label: e,
514
505
  icon: a,
515
506
  children: r,
516
- className: n,
517
- defaultOpen: d,
507
+ className: d,
508
+ defaultOpen: n,
518
509
  open: o,
519
510
  onOpenChange: t,
520
511
  ...l
521
512
  }, c) => {
522
513
  const { mode: m } = N();
523
514
  return /* @__PURE__ */ u(
524
- K.Root,
515
+ M.Root,
525
516
  {
526
517
  ref: c,
527
- defaultOpen: d,
518
+ defaultOpen: n,
528
519
  open: o,
529
520
  onOpenChange: t,
530
- className: n,
521
+ className: d,
531
522
  ...l,
532
523
  children: [
533
- /* @__PURE__ */ u(K.Trigger, { className: Hs, children: [
524
+ /* @__PURE__ */ u(M.Trigger, { className: Es, children: [
534
525
  a ? /* @__PURE__ */ s(
535
526
  "span",
536
527
  {
@@ -558,7 +549,7 @@ const Hs = [
558
549
  ) : null
559
550
  ] }),
560
551
  /* @__PURE__ */ s(
561
- K.Content,
552
+ M.Content,
562
553
  {
563
554
  className: [
564
555
  "ds:overflow-hidden",
@@ -574,8 +565,8 @@ const Hs = [
574
565
  );
575
566
  }
576
567
  );
577
- Fs.displayName = "SidebarGroup";
578
- const Us = T(
568
+ Hs.displayName = "SidebarGroup";
569
+ const Fs = T(
579
570
  [
580
571
  // Every row is a pin-hover parent so inline pin / reorder affordances can
581
572
  // fade in on hover of the whole row — keep `group/item` on this selector.
@@ -641,22 +632,22 @@ const Us = T(
641
632
  asChild: e = !1,
642
633
  isActive: a = !1,
643
634
  navId: r,
644
- isPinned: n = !1,
645
- onPinChange: d,
635
+ isPinned: d = !1,
636
+ onPinChange: n,
646
637
  pinLabel: o,
647
638
  className: t,
648
639
  children: l,
649
640
  "aria-label": c,
650
641
  ...m
651
642
  }, f) => {
652
- const { mode: g, density: y } = N(), x = e ? ls : "a", i = d !== void 0 && g !== "icon", [w, z] = B(null), v = g === "icon" && c != null && w ? `${c}, ${w}` : c, S = /* @__PURE__ */ s(
643
+ const { mode: g, density: y } = N(), x = e ? ls : "a", i = n !== void 0 && g !== "icon", [w, z] = B(null), v = g === "icon" && c != null && w ? `${c}, ${w}` : c, S = /* @__PURE__ */ s(
653
644
  x,
654
645
  {
655
646
  ref: f,
656
647
  "aria-current": a ? "page" : void 0,
657
648
  "aria-label": v,
658
649
  "data-nav-id": r,
659
- className: Us({
650
+ className: Fs({
660
651
  mode: g,
661
652
  density: y,
662
653
  isActive: a,
@@ -675,11 +666,11 @@ const Us = T(
675
666
  children: [
676
667
  S,
677
668
  /* @__PURE__ */ s(
678
- Y,
669
+ W,
679
670
  {
680
- isPinned: n,
671
+ isPinned: d,
681
672
  label: o ?? c ?? "",
682
- onPinChange: d
673
+ onPinChange: n
683
674
  }
684
675
  )
685
676
  ]
@@ -709,10 +700,10 @@ const Us = T(
709
700
  }
710
701
  );
711
702
  is.displayName = "SidebarItem";
712
- const Ms = b(({ className: e, children: a, ...r }, n) => /* @__PURE__ */ s(
703
+ const Us = b(({ className: e, children: a, ...r }, d) => /* @__PURE__ */ s(
713
704
  "span",
714
705
  {
715
- ref: n,
706
+ ref: d,
716
707
  "aria-hidden": "true",
717
708
  className: [
718
709
  "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
@@ -730,18 +721,18 @@ const Ms = b(({ className: e, children: a, ...r }, n) => /* @__PURE__ */ s(
730
721
  children: a
731
722
  }
732
723
  ));
733
- Ms.displayName = "SidebarItemIcon";
734
- const Vs = b(({ className: e, children: a, ...r }, n) => {
735
- const { mode: d } = N();
724
+ Us.displayName = "SidebarItemIcon";
725
+ const Vs = b(({ className: e, children: a, ...r }, d) => {
726
+ const { mode: n } = N();
736
727
  return /* @__PURE__ */ s(
737
728
  "span",
738
729
  {
739
- ref: n,
730
+ ref: d,
740
731
  className: [
741
732
  "ds:flex-1",
742
733
  "ds:overflow-hidden ds:text-ellipsis ds:whitespace-nowrap ds:break-normal",
743
734
  "ds:text-start",
744
- d === "icon" ? "ds:sr-only" : "",
735
+ n === "icon" ? "ds:sr-only" : "",
745
736
  e ?? ""
746
737
  ].filter(Boolean).join(" "),
747
738
  ...r,
@@ -750,8 +741,8 @@ const Vs = b(({ className: e, children: a, ...r }, n) => {
750
741
  );
751
742
  });
752
743
  Vs.displayName = "SidebarItemLabel";
753
- const Ks = b(({ className: e, children: a, ...r }, n) => {
754
- const { mode: d } = N(), o = d === "icon", t = q(rs);
744
+ const Ks = b(({ className: e, children: a, ...r }, d) => {
745
+ const { mode: n } = N(), o = n === "icon", t = q(rs);
755
746
  return L(() => {
756
747
  if (!t || !o) return;
757
748
  const l = a == null || a === !1 ? null : String(a).trim() || null;
@@ -759,7 +750,7 @@ const Ks = b(({ className: e, children: a, ...r }, n) => {
759
750
  }, [t, a, o]), /* @__PURE__ */ s(
760
751
  "span",
761
752
  {
762
- ref: n,
753
+ ref: d,
763
754
  "aria-hidden": o ? "true" : void 0,
764
755
  className: [
765
756
  "ds:inline-flex ds:items-center ds:justify-center",
@@ -786,7 +777,7 @@ const Ks = b(({ className: e, children: a, ...r }, n) => {
786
777
  );
787
778
  });
788
779
  Ks.displayName = "SidebarItemBadge";
789
- const Ls = T(
780
+ const Ms = T(
790
781
  [
791
782
  "ds:flex ds:items-center",
792
783
  "ds:text-[var(--foreground)]",
@@ -833,8 +824,8 @@ const Ls = T(
833
824
  },
834
825
  defaultVariants: { variant: "ghost" }
835
826
  }
836
- ), Gs = b(
837
- ({ logo: e, name: a, showChevron: r = !0, variant: n = "ghost", className: d, ...o }, t) => {
827
+ ), Ls = b(
828
+ ({ logo: e, name: a, showChevron: r = !0, variant: d = "ghost", className: n, ...o }, t) => {
838
829
  const { mode: l } = N(), c = l !== "icon";
839
830
  return /* @__PURE__ */ u(
840
831
  "button",
@@ -842,7 +833,7 @@ const Ls = T(
842
833
  ref: t,
843
834
  type: "button",
844
835
  "aria-label": a,
845
- className: [Ls({ variant: n }), d].filter(Boolean).join(" "),
836
+ className: [Ms({ variant: d }), n].filter(Boolean).join(" "),
846
837
  ...o,
847
838
  children: [
848
839
  /* @__PURE__ */ s(
@@ -868,8 +859,8 @@ const Ls = T(
868
859
  );
869
860
  }
870
861
  );
871
- Gs.displayName = "SidebarWorkspaceSwitcher";
872
- const $s = T(
862
+ Ls.displayName = "SidebarWorkspaceSwitcher";
863
+ const Gs = T(
873
864
  [
874
865
  "ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
875
866
  "ds:min-h-[var(--min-target-size)]",
@@ -892,7 +883,7 @@ const $s = T(
892
883
  },
893
884
  defaultVariants: { mode: "expanded" }
894
885
  }
895
- ), Os = b(({ icon: e, label: a, shortcut: r, className: n, ...d }, o) => {
886
+ ), Os = b(({ icon: e, label: a, shortcut: r, className: d, ...n }, o) => {
896
887
  const { mode: t } = N(), l = t !== "icon";
897
888
  return /* @__PURE__ */ u(
898
889
  "button",
@@ -901,8 +892,8 @@ const $s = T(
901
892
  type: "button",
902
893
  "aria-label": a,
903
894
  "aria-keyshortcuts": r,
904
- className: [$s({ mode: t }), n].filter(Boolean).join(" "),
905
- ...d,
895
+ className: [Gs({ mode: t }), d].filter(Boolean).join(" "),
896
+ ...n,
906
897
  children: [
907
898
  /* @__PURE__ */ s(
908
899
  "span",
@@ -921,7 +912,7 @@ const $s = T(
921
912
  );
922
913
  });
923
914
  Os.displayName = "SidebarPrimaryAction";
924
- const Xs = [
915
+ const $s = [
925
916
  "ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
926
917
  "ds:size-6 ds:rounded-[var(--radius-sm)]",
927
918
  // Lift above the Sidebar's opt-in resize handle (z-[2]). When `resizable`,
@@ -945,8 +936,8 @@ const Xs = [
945
936
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
946
937
  "ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)]",
947
938
  "ds:motion-reduce:transition-none"
948
- ].join(" "), Y = b(
949
- ({ isPinned: e, onPinChange: a, label: r, className: n, onClick: d, ...o }, t) => {
939
+ ].join(" "), W = b(
940
+ ({ isPinned: e, onPinChange: a, label: r, className: d, onClick: n, ...o }, t) => {
950
941
  const { t: l } = A(), { mode: c } = N();
951
942
  if (c === "icon") return null;
952
943
  const m = e ? l("navigation.sidebar.unpinItem", "Unpin {{label}}", { label: r }) : l("navigation.sidebar.pinItem", "Pin {{label}}", { label: r });
@@ -957,9 +948,9 @@ const Xs = [
957
948
  type: "button",
958
949
  "aria-label": m,
959
950
  "aria-pressed": e,
960
- className: [Xs, n].filter(Boolean).join(" "),
951
+ className: [$s, d].filter(Boolean).join(" "),
961
952
  onClick: (f) => {
962
- f.preventDefault(), f.stopPropagation(), a == null || a(!e), d == null || d(f);
953
+ f.preventDefault(), f.stopPropagation(), a == null || a(!e), n == null || n(f);
963
954
  },
964
955
  ...o,
965
956
  children: /* @__PURE__ */ s(
@@ -974,21 +965,21 @@ const Xs = [
974
965
  );
975
966
  }
976
967
  );
977
- Y.displayName = "SidebarPinButton";
978
- const ns = Z(null), qs = () => q(ns), Zs = b(
979
- ({ heading: e, emptyMessage: a, onReorder: r, className: n, children: d, ...o }, t) => {
980
- const { t: l } = A(), c = e ?? l("navigation.sidebar.favorites", "Favourites"), m = Array.isArray(d) ? d.filter(Boolean) : d ? [d] : [], f = m.length, g = f > 0, [y, x] = B(null), [i, w] = B(""), z = G(!1), v = ss((j) => {
968
+ W.displayName = "SidebarPinButton";
969
+ const ds = Z(null), Xs = () => q(ds), qs = b(
970
+ ({ heading: e, emptyMessage: a, onReorder: r, className: d, children: n, ...o }, t) => {
971
+ const { t: l } = A(), c = e ?? l("navigation.sidebar.favorites", "Favourites"), m = Array.isArray(n) ? n.filter(Boolean) : n ? [n] : [], f = m.length, g = f > 0, [y, x] = B(null), [i, w] = B(""), z = G(!1), v = Q((j) => {
981
972
  z.current = !z.current, w(z.current ? j : `${j}​`);
982
- }, []), S = $(
973
+ }, []), S = O(
983
974
  () => ({ onReorder: r, count: f, dragSource: y, setDragSource: x, announce: v }),
984
975
  [r, f, y, v]
985
976
  );
986
- return !g && !a ? null : /* @__PURE__ */ s(ns.Provider, { value: S, children: /* @__PURE__ */ u(
977
+ return !g && !a ? null : /* @__PURE__ */ s(ds.Provider, { value: S, children: /* @__PURE__ */ u(
987
978
  as,
988
979
  {
989
980
  ref: t,
990
981
  label: c,
991
- className: n,
982
+ className: d,
992
983
  ...o,
993
984
  children: [
994
985
  g ? m : /* @__PURE__ */ s("p", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] type-meta ds:text-[color:var(--muted-foreground)]", children: a }),
@@ -998,8 +989,8 @@ const ns = Z(null), qs = () => q(ns), Zs = b(
998
989
  ) });
999
990
  }
1000
991
  );
1001
- Zs.displayName = "SidebarFavorites";
1002
- const Ws = T(
992
+ qs.displayName = "SidebarFavorites";
993
+ const Zs = T(
1003
994
  [
1004
995
  "ds:group/item ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
1005
996
  "ds:rounded-[var(--radius-sm)]",
@@ -1018,7 +1009,7 @@ const Ws = T(
1018
1009
  },
1019
1010
  defaultVariants: { dragging: !1, dropTarget: !1 }
1020
1011
  }
1021
- ), Ys = [
1012
+ ), Ws = [
1022
1013
  "ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
1023
1014
  "ds:size-6 ds:rounded-[var(--radius-sm)]",
1024
1015
  "ds:cursor-grab ds:active:cursor-grabbing",
@@ -1032,13 +1023,13 @@ const Ws = T(
1032
1023
  "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1033
1024
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
1034
1025
  "ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
1035
- ].join(" "), Js = b(
1026
+ ].join(" "), Ys = b(
1036
1027
  ({
1037
1028
  index: e,
1038
1029
  isActive: a = !1,
1039
1030
  asChild: r = !1,
1040
- reorderLabel: n,
1041
- isPinned: d = !1,
1031
+ reorderLabel: d,
1032
+ isPinned: n = !1,
1042
1033
  onPinChange: o,
1043
1034
  pinLabel: t,
1044
1035
  "aria-label": l,
@@ -1046,14 +1037,14 @@ const Ws = T(
1046
1037
  children: m,
1047
1038
  ...f
1048
1039
  }, g) => {
1049
- const { t: y } = A(), { mode: x } = N(), i = qs(), [w, z] = B(!1), v = !!(i != null && i.onReorder) && x !== "icon", S = n ?? l ?? "", j = ds(), C = (p, I) => {
1040
+ const { t: y } = A(), { mode: x } = N(), i = Xs(), [w, z] = B(!1), v = !!(i != null && i.onReorder) && x !== "icon", S = d ?? l ?? "", j = ns(), C = (p, I) => {
1050
1041
  if (!(i != null && i.onReorder)) return;
1051
- const V = Math.max(0, Math.min(i.count - 1, I));
1052
- V !== p && (i.onReorder(p, V), i.announce(
1042
+ const K = Math.max(0, Math.min(i.count - 1, I));
1043
+ K !== p && (i.onReorder(p, K), i.announce(
1053
1044
  y(
1054
1045
  "navigation.sidebar.reorderAnnounce",
1055
1046
  "{{label}} moved to position {{to}} of {{total}}",
1056
- { label: S, to: V + 1, total: i.count }
1047
+ { label: S, to: K + 1, total: i.count }
1057
1048
  )
1058
1049
  ));
1059
1050
  }, F = (p) => {
@@ -1064,7 +1055,7 @@ const Ws = T(
1064
1055
  i == null || i.setDragSource(null), z(!1);
1065
1056
  }, U = (p) => {
1066
1057
  !v || (i == null ? void 0 : i.dragSource) === null || (p.preventDefault(), p.dataTransfer && (p.dataTransfer.dropEffect = "move"), z(!0));
1067
- }, P = () => z(!1), M = (p) => {
1058
+ }, P = () => z(!1), V = (p) => {
1068
1059
  if (!v) return;
1069
1060
  p.preventDefault();
1070
1061
  const I = i == null ? void 0 : i.dragSource;
@@ -1073,7 +1064,7 @@ const Ws = T(
1073
1064
  return /* @__PURE__ */ u(
1074
1065
  "div",
1075
1066
  {
1076
- className: Ws({
1067
+ className: Zs({
1077
1068
  dragging: k,
1078
1069
  dropTarget: w && !k
1079
1070
  }),
@@ -1082,7 +1073,7 @@ const Ws = T(
1082
1073
  onDragEnd: v ? _ : void 0,
1083
1074
  onDragOver: U,
1084
1075
  onDragLeave: P,
1085
- onDrop: M,
1076
+ onDrop: V,
1086
1077
  children: [
1087
1078
  /* @__PURE__ */ s(
1088
1079
  is,
@@ -1108,15 +1099,15 @@ const Ws = T(
1108
1099
  "Reorder {{label}}. Press Alt + Up or Alt + Down to move.",
1109
1100
  { label: S }
1110
1101
  ),
1111
- className: Ys,
1102
+ className: Ws,
1112
1103
  onKeyDown: F,
1113
1104
  children: /* @__PURE__ */ s(bs, { "aria-hidden": "true", className: "ds:size-4" })
1114
1105
  }
1115
1106
  ) : null,
1116
1107
  o && x !== "icon" ? /* @__PURE__ */ s(
1117
- Y,
1108
+ W,
1118
1109
  {
1119
- isPinned: d,
1110
+ isPinned: n,
1120
1111
  label: t ?? l ?? "",
1121
1112
  onPinChange: o
1122
1113
  }
@@ -1126,8 +1117,8 @@ const Ws = T(
1126
1117
  );
1127
1118
  }
1128
1119
  );
1129
- Js.displayName = "SidebarFavoriteItem";
1130
- const Qs = T(
1120
+ Ys.displayName = "SidebarFavoriteItem";
1121
+ const Js = T(
1131
1122
  [
1132
1123
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
1133
1124
  "ds:min-h-[var(--min-target-size)]",
@@ -1140,15 +1131,15 @@ const Qs = T(
1140
1131
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
1141
1132
  "ds:no-underline"
1142
1133
  ].join(" ")
1143
- ), se = b(({ avatar: e, name: a, subtitle: r, subtitleLabel: n, className: d, ...o }, t) => {
1144
- const { mode: l } = N(), c = l !== "icon", m = typeof r == "string" ? r : n;
1134
+ ), Qs = b(({ avatar: e, name: a, subtitle: r, subtitleLabel: d, className: n, ...o }, t) => {
1135
+ const { mode: l } = N(), c = l !== "icon", m = typeof r == "string" ? r : d;
1145
1136
  return /* @__PURE__ */ u(
1146
1137
  "button",
1147
1138
  {
1148
1139
  ref: t,
1149
1140
  type: "button",
1150
1141
  "aria-label": m ? `${a}, ${m}` : a,
1151
- className: [Qs(), d].filter(Boolean).join(" "),
1142
+ className: [Js(), n].filter(Boolean).join(" "),
1152
1143
  ...o,
1153
1144
  children: [
1154
1145
  /* @__PURE__ */ s(
@@ -1167,8 +1158,8 @@ const Qs = T(
1167
1158
  }
1168
1159
  );
1169
1160
  });
1170
- se.displayName = "SidebarProfilePill";
1171
- const ee = [
1161
+ Qs.displayName = "SidebarProfilePill";
1162
+ const se = [
1172
1163
  "ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
1173
1164
  "ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
1174
1165
  "ds:rounded-[var(--radius-sm)]",
@@ -1178,7 +1169,7 @@ const ee = [
1178
1169
  "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1179
1170
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
1180
1171
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
1181
- ].join(" "), ae = b(({ className: e, "aria-label": a, onClick: r, ...n }, d) => {
1172
+ ].join(" "), ee = b(({ className: e, "aria-label": a, onClick: r, ...d }, n) => {
1182
1173
  const { t: o } = A(), { mode: t, density: l, transitionTo: c } = N();
1183
1174
  if (t === "overlay") return null;
1184
1175
  const m = t === "expanded", f = m ? [
@@ -1187,23 +1178,23 @@ const ee = [
1187
1178
  ].join(" ") : "ds:justify-center", g = a ?? (m ? o("navigation.sidebar.collapse", "Collapse sidebar") : o("navigation.sidebar.expand", "Expand sidebar")), y = /* @__PURE__ */ s(
1188
1179
  "button",
1189
1180
  {
1190
- ref: d,
1181
+ ref: n,
1191
1182
  type: "button",
1192
1183
  "aria-label": g,
1193
1184
  "aria-expanded": m,
1194
1185
  onClick: (x) => {
1195
1186
  c == null || c(m ? "icon" : "expanded"), r == null || r(x);
1196
1187
  },
1197
- className: [ee, f, e].filter(Boolean).join(" "),
1198
- ...n,
1188
+ className: [se, f, e].filter(Boolean).join(" "),
1189
+ ...d,
1199
1190
  children: /* @__PURE__ */ s("span", { className: "ds:inline-flex ds:size-5 ds:shrink-0 ds:items-center ds:justify-center", children: m ? /* @__PURE__ */ s(
1200
- ys,
1191
+ Ns,
1201
1192
  {
1202
1193
  "aria-hidden": "true",
1203
1194
  className: "ds:size-4 ds:rtl:-scale-x-100"
1204
1195
  }
1205
1196
  ) : /* @__PURE__ */ s(
1206
- ws,
1197
+ zs,
1207
1198
  {
1208
1199
  "aria-hidden": "true",
1209
1200
  className: "ds:size-4 ds:rtl:-scale-x-100"
@@ -1233,8 +1224,8 @@ const ee = [
1233
1224
  ) })
1234
1225
  ] });
1235
1226
  });
1236
- ae.displayName = "SidebarCollapseTrigger";
1237
- const re = T(
1227
+ ee.displayName = "SidebarCollapseTrigger";
1228
+ const ae = T(
1238
1229
  [
1239
1230
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
1240
1231
  "ds:rounded-[var(--radius-md)]",
@@ -1265,7 +1256,7 @@ const re = T(
1265
1256
  },
1266
1257
  defaultVariants: { mode: "expanded" }
1267
1258
  }
1268
- ), ie = b(({ title: e, description: a, icon: r, className: n, ...d }, o) => {
1259
+ ), re = b(({ title: e, description: a, icon: r, className: d, ...n }, o) => {
1269
1260
  const { mode: t } = N(), l = t === "icon", c = (
1270
1261
  // aria-label only in icon mode (where the copy is hidden) — in
1271
1262
  // expanded mode the accessible name comes from the visible contents
@@ -1275,8 +1266,8 @@ const re = T(
1275
1266
  {
1276
1267
  ref: o,
1277
1268
  "aria-label": l ? e : void 0,
1278
- className: re({ mode: t, className: n }),
1279
- ...d,
1269
+ className: ae({ mode: t, className: d }),
1270
+ ...n,
1280
1271
  children: [
1281
1272
  /* @__PURE__ */ s(
1282
1273
  "span",
@@ -1287,7 +1278,7 @@ const re = T(
1287
1278
  "ds:rounded-[var(--radius-sm)]",
1288
1279
  "ds:bg-[var(--accent)] ds:text-[var(--accent-foreground)]"
1289
1280
  ].join(" "),
1290
- children: r ?? /* @__PURE__ */ s(Ss, { className: "ds:size-4" })
1281
+ children: r ?? /* @__PURE__ */ s(xs, { className: "ds:size-4" })
1291
1282
  }
1292
1283
  ),
1293
1284
  l ? null : /* @__PURE__ */ u(X, { children: [
@@ -1333,27 +1324,27 @@ const re = T(
1333
1324
  ) })
1334
1325
  ] }) : c;
1335
1326
  });
1336
- ie.displayName = "SidebarUpgradeChip";
1327
+ re.displayName = "SidebarUpgradeChip";
1337
1328
  export {
1338
- As as S,
1339
- _s as a,
1340
- ae as b,
1341
- Js as c,
1342
- Zs as d,
1343
- Ps as e,
1344
- Fs as f,
1345
- Ds as g,
1329
+ Bs as S,
1330
+ Ds as a,
1331
+ ee as b,
1332
+ Ys as c,
1333
+ qs as d,
1334
+ _s as e,
1335
+ Hs as f,
1336
+ As as g,
1346
1337
  is as h,
1347
1338
  Ks as i,
1348
- Ms as j,
1339
+ Us as j,
1349
1340
  Vs as k,
1350
- Y as l,
1341
+ W as l,
1351
1342
  Os as m,
1352
- se as n,
1343
+ Qs as n,
1353
1344
  as as o,
1354
- ie as p,
1355
- Gs as q,
1356
- js as s,
1345
+ re as p,
1346
+ Ls as q,
1347
+ Ss as s,
1357
1348
  N as u
1358
1349
  };
1359
- //# sourceMappingURL=sidebar-C-Gr2LL-.js.map
1350
+ //# sourceMappingURL=sidebar-ClTY9lLI.js.map