@fluid-app/fluid-cli-theme-dev 0.1.172 → 0.1.173

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 (92) hide show
  1. package/dist/dist-cli-preview/.vite/manifest.json +583 -181
  2. package/dist/dist-cli-preview/account-screens.css +1 -0
  3. package/dist/dist-cli-preview/account-screens.js +1 -1
  4. package/dist/dist-cli-preview/chunks/{Breadcrumb-BQKo8hPc.js → Breadcrumb-8-7shsB6.js} +1 -1
  5. package/dist/dist-cli-preview/chunks/Combobox-m3vSk0_A.js +521 -0
  6. package/dist/dist-cli-preview/chunks/{ContactsScreen-IsIZ_lQ0.js → ContactsScreen-CBjQOWmH.js} +1523 -1854
  7. package/dist/dist-cli-preview/chunks/MediaScreen-1akMnH12.js +17379 -0
  8. package/dist/dist-cli-preview/chunks/{MemberManagementProviders-DiQkiWzc.js → MemberManagementProviders-WSjb3a8B.js} +189 -199
  9. package/dist/dist-cli-preview/chunks/{MessagingScreen-B8ZxAE0L.js → MessagingScreen-By-jZq6v.js} +27645 -30195
  10. package/dist/dist-cli-preview/chunks/{MobileActionSheet-DMeTsLlK.js → MobileActionSheet-ERpw3qUF.js} +644 -589
  11. package/dist/dist-cli-preview/chunks/MySiteScreen-JAGvVMx-.js +1706 -0
  12. package/dist/dist-cli-preview/chunks/OrdersScreen-B1HQVMZC.js +9 -0
  13. package/dist/dist-cli-preview/chunks/{OrdersScreen-DrZ3SwEu.js → OrdersScreen-Cb32bBjd.js} +35 -35
  14. package/dist/dist-cli-preview/chunks/PortalTenantClientProvider-CguU_uRG.js +15 -0
  15. package/dist/dist-cli-preview/chunks/{ProfileScreen-Dxspc-6p.js → ProfileScreen-CCWM6TBs.js} +454 -463
  16. package/dist/dist-cli-preview/chunks/Select-5fzq5MB-.js +940 -0
  17. package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-Be0C29uw.js → SubscriptionsScreen-DLdsaVJK.js} +3 -3
  18. package/dist/dist-cli-preview/chunks/Textarea-xoKqLVgY.js +330 -0
  19. package/dist/dist-cli-preview/chunks/{account-screen-runtime-DYMunv0A.js → account-screen-runtime-CCBl8DXt.js} +866 -860
  20. package/dist/dist-cli-preview/chunks/ar-D6LJV1_E.js +679 -0
  21. package/dist/dist-cli-preview/chunks/{arrow-left-Bd7dJtIV.js → arrow-left-CTYaRdTX.js} +1 -1
  22. package/dist/dist-cli-preview/chunks/bg-C5Ldmily.js +679 -0
  23. package/dist/dist-cli-preview/chunks/bn-kfMPWNR6.js +679 -0
  24. package/dist/dist-cli-preview/chunks/{cli-preview-C7Db08Ij.js → cli-preview-HAt0Lt-9.js} +20 -13
  25. package/dist/dist-cli-preview/chunks/{client.gen-Ck6Pm2jV.js → client.gen-B7RMYGYu.js} +1 -1
  26. package/dist/dist-cli-preview/chunks/copy-DHN1DxE_.js +14 -0
  27. package/dist/dist-cli-preview/chunks/{countries-api-adapter-InKUzF1q.js → countries-api-adapter-B4TefdRP.js} +2 -2
  28. package/dist/dist-cli-preview/chunks/{create-card-entry-container-C9z7JILL.js → create-card-entry-container-5NqOQ4D_.js} +3612 -3932
  29. package/dist/dist-cli-preview/chunks/cs-DqEgtV8D.js +679 -0
  30. package/dist/dist-cli-preview/chunks/da-BbuvL7Gx.js +679 -0
  31. package/dist/dist-cli-preview/chunks/de-BfJ7rQig.js +679 -0
  32. package/dist/dist-cli-preview/chunks/el-BO0rLq6D.js +679 -0
  33. package/dist/dist-cli-preview/chunks/es-BEVtEUXk.js +679 -0
  34. package/dist/dist-cli-preview/chunks/eye-qMoMW7-Z.js +20 -0
  35. package/dist/dist-cli-preview/chunks/fi-DjISV3UN.js +679 -0
  36. package/dist/dist-cli-preview/chunks/fr-1fFd-aKy.js +679 -0
  37. package/dist/dist-cli-preview/chunks/he-CaT9bwVp.js +679 -0
  38. package/dist/dist-cli-preview/chunks/{hey-api-client-DGRBsZ7Y.js → hey-api-client-JMNyZwcF.js} +79 -39
  39. package/dist/dist-cli-preview/chunks/hi-DkzEm57l.js +679 -0
  40. package/dist/dist-cli-preview/chunks/hr-DqM5N_bj.js +679 -0
  41. package/dist/dist-cli-preview/chunks/hu-DiLqjo5c.js +679 -0
  42. package/dist/dist-cli-preview/chunks/id-DA1KmwgX.js +679 -0
  43. package/dist/dist-cli-preview/chunks/index-BS4PnEcu.js +353 -0
  44. package/dist/dist-cli-preview/chunks/index-BhMjUmAr.js +2572 -0
  45. package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-BDjSpDoe.js → index-Dor8vM2o.js} +2417 -3035
  46. package/dist/dist-cli-preview/chunks/it-CTEVWCRz.js +679 -0
  47. package/dist/dist-cli-preview/chunks/ja-fxqg1hhg.js +679 -0
  48. package/dist/dist-cli-preview/chunks/ko-Btp1_5YS.js +679 -0
  49. package/dist/dist-cli-preview/chunks/lock-DQTMeEw0.js +14 -0
  50. package/dist/dist-cli-preview/chunks/{log-out-CSPZjXTK.js → log-out-DUdRJX4l.js} +1 -1
  51. package/dist/dist-cli-preview/chunks/{map-pin-B2ScoijR.js → map-pin-DyIkpqP0.js} +1 -1
  52. package/dist/dist-cli-preview/chunks/media-vkLeBb90.js +4 -0
  53. package/dist/dist-cli-preview/chunks/member-permissions-ndhNmlOk.js +19 -0
  54. package/dist/dist-cli-preview/chunks/{mount-account-screen-5thBUz3X.js → mount-account-screen--gdc5WO_.js} +1869 -1884
  55. package/dist/dist-cli-preview/chunks/ms-DqRbmHx8.js +679 -0
  56. package/dist/dist-cli-preview/chunks/navigate-account-screen-AVNopuIP.js +38 -0
  57. package/dist/dist-cli-preview/chunks/nl-CkPNddxO.js +679 -0
  58. package/dist/dist-cli-preview/chunks/no-ftcy0RcQ.js +679 -0
  59. package/dist/dist-cli-preview/chunks/pl-wyJLqfip.js +679 -0
  60. package/dist/dist-cli-preview/chunks/{plus-CocoE5gC.js → plus-DZjrp536.js} +1 -1
  61. package/dist/dist-cli-preview/chunks/pt-7uHLacuI.js +679 -0
  62. package/dist/dist-cli-preview/chunks/ro-Dh12ghww.js +679 -0
  63. package/dist/dist-cli-preview/chunks/ru-DFM7xWFz.js +679 -0
  64. package/dist/dist-cli-preview/chunks/{schemas-D94nZk5x.js → schemas-BTblatUV.js} +1107 -1062
  65. package/dist/dist-cli-preview/chunks/screen-route-slug-utils-DozJp-uc.js +620 -0
  66. package/dist/dist-cli-preview/chunks/{sheet-haptics-context-iOjKcNDj.js → sheet-haptics-context-CYrEaGtf.js} +3 -3
  67. package/dist/dist-cli-preview/chunks/sidebar-9qopXeR1.js +598 -0
  68. package/dist/dist-cli-preview/chunks/sk-CsuNYa1k.js +679 -0
  69. package/dist/dist-cli-preview/chunks/sortable.esm-Dlen88Fc.js +3283 -0
  70. package/dist/dist-cli-preview/chunks/{store-api-context-B96Ip2FB.js → store-api-context-B9pW_xao.js} +1 -1
  71. package/dist/dist-cli-preview/chunks/sv-DVrPaJbh.js +679 -0
  72. package/dist/dist-cli-preview/chunks/th-BEkMpcVW.js +679 -0
  73. package/dist/dist-cli-preview/chunks/tl-CqwwplQC.js +679 -0
  74. package/dist/dist-cli-preview/chunks/tr-XEp4ekrM.js +679 -0
  75. package/dist/dist-cli-preview/chunks/{trash-2-wVweQZMw.js → trash-2-ClRyi9iY.js} +12 -12
  76. package/dist/dist-cli-preview/chunks/uk-DWdZFWBl.js +679 -0
  77. package/dist/dist-cli-preview/chunks/use-mobile-srOt50VV.js +254 -0
  78. package/dist/dist-cli-preview/chunks/{use-optional-store-lZUz976C.js → use-optional-store-BgrOjfZJ.js} +2 -2
  79. package/dist/dist-cli-preview/chunks/{use-store-DVmgsDXy.js → use-store-CUSQx1E-.js} +25 -36
  80. package/dist/dist-cli-preview/chunks/{useInfiniteQuery-Dtzov9uh.js → useInfiniteQuery-DGc8fotv.js} +1 -1
  81. package/dist/dist-cli-preview/chunks/user-Ca2sKJ-h.js +14 -0
  82. package/dist/dist-cli-preview/chunks/users-Dh7zTrKY.js +16 -0
  83. package/dist/dist-cli-preview/chunks/vi-H__PaPsC.js +679 -0
  84. package/dist/dist-cli-preview/chunks/zh_CN-B62j_w_1.js +679 -0
  85. package/dist/dist-cli-preview/chunks/zh_TW-CYUIGBvP.js +679 -0
  86. package/package.json +1 -1
  87. package/dist/dist-cli-preview/chunks/Combobox-cf11L_T-.js +0 -1455
  88. package/dist/dist-cli-preview/chunks/MySiteScreen-Dtw1rsF9.js +0 -4950
  89. package/dist/dist-cli-preview/chunks/OrdersScreen-DkltVCtr.js +0 -9
  90. package/dist/dist-cli-preview/chunks/sidebar-Ckzom4Xc.js +0 -848
  91. package/dist/dist-cli-preview/chunks/user-B81IrSgp.js +0 -31
  92. package/dist/dist-cli-preview/chunks/users-BXTjoCUz.js +0 -27
@@ -0,0 +1,598 @@
1
+ import { l as i, j as r, aU as A, aV as G, bH as h, a_ as H } from "./account-screen-runtime-CCBl8DXt.js";
2
+ import { u as O } from "./use-mobile-srOt50VV.js";
3
+ function s(...a) {
4
+ return A(G(a));
5
+ }
6
+ function T({
7
+ className: a,
8
+ orientation: e = "horizontal",
9
+ ...t
10
+ }) {
11
+ return /* @__PURE__ */ r.jsx(
12
+ "div",
13
+ {
14
+ role: "separator",
15
+ "aria-orientation": e,
16
+ className: s(
17
+ "bg-border shrink-0",
18
+ e === "horizontal" ? "h-px w-full" : "h-full w-px",
19
+ a
20
+ ),
21
+ ...t
22
+ }
23
+ );
24
+ }
25
+ function z({
26
+ className: a,
27
+ ...e
28
+ }) {
29
+ return /* @__PURE__ */ r.jsx(
30
+ "div",
31
+ {
32
+ className: s("bg-muted animate-pulse rounded-md", a),
33
+ ...e
34
+ }
35
+ );
36
+ }
37
+ const C = "13rem", L = "18rem", _ = "3rem", F = "b", I = i.createContext(null);
38
+ function R() {
39
+ const a = i.useContext(I);
40
+ if (!a)
41
+ throw new Error("useSidebar must be used within a SidebarProvider.");
42
+ return a;
43
+ }
44
+ const P = i.forwardRef(
45
+ ({
46
+ defaultOpen: a = !0,
47
+ open: e,
48
+ onOpenChange: t,
49
+ viewportWidth: o,
50
+ previewMode: d,
51
+ useBottomNav: n = !1,
52
+ className: u,
53
+ style: b,
54
+ children: p,
55
+ ...v
56
+ }, j) => {
57
+ const m = O(), f = o !== void 0 ? o < 768 : m, w = o !== void 0 || !!d, [g, S] = i.useState(!1), [B, E] = i.useState(a), x = e ?? B, N = i.useCallback(
58
+ (l) => {
59
+ const c = typeof l == "function" ? l(x) : l;
60
+ t ? t(c) : E(c);
61
+ },
62
+ [t, x]
63
+ ), y = i.useCallback(() => f ? S((l) => !l) : N((l) => !l), [f, N, S]);
64
+ i.useEffect(() => {
65
+ const l = (c) => {
66
+ if (c.key === F && (c.metaKey || c.ctrlKey)) {
67
+ const M = document.activeElement;
68
+ if (M?.closest(".group\\/composer") || M?.closest("[data-toolbar]") || M?.classList.contains("ProseMirror"))
69
+ return;
70
+ c.preventDefault(), y();
71
+ }
72
+ };
73
+ return window.addEventListener("keydown", l), () => window.removeEventListener("keydown", l);
74
+ }, [y]);
75
+ const k = x ? "expanded" : "collapsed", D = i.useMemo(
76
+ () => ({
77
+ state: k,
78
+ open: x,
79
+ setOpen: N,
80
+ isMobile: f,
81
+ openMobile: g,
82
+ setOpenMobile: S,
83
+ toggleSidebar: y,
84
+ isPreviewMode: w,
85
+ useBottomNav: n
86
+ }),
87
+ [
88
+ k,
89
+ x,
90
+ N,
91
+ f,
92
+ g,
93
+ S,
94
+ y,
95
+ w,
96
+ n
97
+ ]
98
+ );
99
+ return /* @__PURE__ */ r.jsx(I.Provider, { value: D, children: /* @__PURE__ */ r.jsx(
100
+ "div",
101
+ {
102
+ style: {
103
+ "--sidebar-width": C,
104
+ "--sidebar-width-icon": _,
105
+ ...b
106
+ },
107
+ className: s(
108
+ "group/sidebar-wrapper flex min-h-0 w-full flex-1",
109
+ u
110
+ ),
111
+ ref: j,
112
+ ...v,
113
+ children: p
114
+ }
115
+ ) });
116
+ }
117
+ );
118
+ P.displayName = "SidebarProvider";
119
+ const K = i.forwardRef(
120
+ ({
121
+ side: a = "left",
122
+ variant: e = "sidebar",
123
+ collapsible: t = "offcanvas",
124
+ className: o,
125
+ children: d,
126
+ ...n
127
+ }, u) => {
128
+ const {
129
+ isMobile: b,
130
+ state: p,
131
+ openMobile: v,
132
+ setOpenMobile: j,
133
+ isPreviewMode: m,
134
+ useBottomNav: f
135
+ } = R(), w = p === "expanded" ? C : _;
136
+ if (f && b)
137
+ return null;
138
+ if (t === "none")
139
+ return /* @__PURE__ */ r.jsx(
140
+ "div",
141
+ {
142
+ className: s(
143
+ "bg-sidebar text-sidebar-foreground flex w-(--sidebar-width) flex-col rounded-tl-lg",
144
+ m ? "h-full" : "h-[97vh]",
145
+ o
146
+ ),
147
+ ref: u,
148
+ ...n,
149
+ children: d
150
+ }
151
+ );
152
+ if (b) {
153
+ const g = m ? "absolute" : "fixed";
154
+ return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
155
+ v && /* @__PURE__ */ r.jsx(
156
+ "div",
157
+ {
158
+ className: s(g, "inset-0 z-40 bg-black/50"),
159
+ onClick: () => j(!1),
160
+ "aria-hidden": "true"
161
+ }
162
+ ),
163
+ /* @__PURE__ */ r.jsx(
164
+ "div",
165
+ {
166
+ "data-sidebar": "sidebar",
167
+ "data-mobile": "true",
168
+ className: s(
169
+ g,
170
+ "bg-sidebar text-sidebar-foreground top-0 left-0 z-50 h-full w-[--sidebar-width] p-0 transition-transform duration-300 ease-in-out",
171
+ v ? "translate-x-0" : "-translate-x-full",
172
+ o
173
+ ),
174
+ style: {
175
+ "--sidebar-width": L
176
+ },
177
+ ref: u,
178
+ ...n,
179
+ children: /* @__PURE__ */ r.jsx("div", { className: "flex h-full w-full flex-col", children: d })
180
+ }
181
+ )
182
+ ] });
183
+ }
184
+ return /* @__PURE__ */ r.jsxs(
185
+ "div",
186
+ {
187
+ ref: u,
188
+ className: "group peer bg-sidebar text-sidebar-foreground hidden md:block",
189
+ "data-state": p,
190
+ "data-collapsible": p === "collapsed" ? t : "",
191
+ "data-variant": e,
192
+ "data-side": a,
193
+ style: {
194
+ "--sidebar-width": w
195
+ },
196
+ children: [
197
+ /* @__PURE__ */ r.jsx(
198
+ "div",
199
+ {
200
+ className: s(
201
+ "relative bg-transparent transition-[width] duration-200 ease-linear",
202
+ "group-data-[collapsible=offcanvas]:w-0",
203
+ "group-data-[side=right]:rotate-180",
204
+ e === "floating" || e === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
205
+ )
206
+ }
207
+ ),
208
+ /* @__PURE__ */ r.jsx(
209
+ "div",
210
+ {
211
+ className: s(
212
+ "relative inset-y-0 z-[20] hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
213
+ m ? "h-full" : "h-svh",
214
+ a === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
215
+ // Adjust the padding for floating and inset variants.
216
+ e === "floating" || e === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=right]:border-l",
217
+ o
218
+ ),
219
+ ...n,
220
+ children: /* @__PURE__ */ r.jsx(
221
+ "div",
222
+ {
223
+ "data-sidebar": "sidebar",
224
+ className: "group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
225
+ children: d
226
+ }
227
+ )
228
+ }
229
+ )
230
+ ]
231
+ }
232
+ );
233
+ }
234
+ );
235
+ K.displayName = "Sidebar";
236
+ const V = i.forwardRef(
237
+ ({ className: a, ...e }, t) => {
238
+ const { toggleSidebar: o } = R();
239
+ return /* @__PURE__ */ r.jsx(
240
+ "button",
241
+ {
242
+ ref: t,
243
+ "data-sidebar": "rail",
244
+ "aria-label": "Toggle Sidebar",
245
+ tabIndex: -1,
246
+ onClick: o,
247
+ title: "Toggle Sidebar",
248
+ className: s(
249
+ "hover:after:bg-sidebar-border absolute inset-y-0 z-[10] hidden w-4 -translate-x-full transition-all ease-linear group-data-[side=left]:-right-[1.375rem] group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
250
+ "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
251
+ "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
252
+ "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",
253
+ "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
254
+ "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
255
+ a
256
+ ),
257
+ ...e
258
+ }
259
+ );
260
+ }
261
+ );
262
+ V.displayName = "SidebarRail";
263
+ const q = i.forwardRef(
264
+ ({ className: a, ...e }, t) => {
265
+ const { isPreviewMode: o } = R();
266
+ return /* @__PURE__ */ r.jsx(
267
+ "main",
268
+ {
269
+ ref: t,
270
+ className: s(
271
+ "relative flex flex-1 flex-col",
272
+ o ? "max-h-[calc(100svh-(--spacing(4)))]" : "min-h-svh peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))]",
273
+ "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
274
+ a
275
+ ),
276
+ ...e
277
+ }
278
+ );
279
+ }
280
+ );
281
+ q.displayName = "SidebarInset";
282
+ const U = i.forwardRef(
283
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r.jsx(
284
+ "input",
285
+ {
286
+ ref: t,
287
+ "data-sidebar": "input",
288
+ className: s(
289
+ "bg-background focus-visible:ring-sidebar-ring h-8 w-full rounded-md border px-3 text-sm shadow-none focus-visible:ring-2 focus-visible:outline-none",
290
+ a
291
+ ),
292
+ ...e
293
+ }
294
+ )
295
+ );
296
+ U.displayName = "SidebarInput";
297
+ const W = i.forwardRef(
298
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r.jsx(
299
+ "div",
300
+ {
301
+ ref: t,
302
+ "data-sidebar": "header",
303
+ className: s("flex flex-col gap-2 p-2", a),
304
+ ...e
305
+ }
306
+ )
307
+ );
308
+ W.displayName = "SidebarHeader";
309
+ const Y = i.forwardRef(
310
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r.jsx(
311
+ "div",
312
+ {
313
+ ref: t,
314
+ "data-sidebar": "footer",
315
+ className: s("flex flex-col gap-2 p-2", a),
316
+ ...e
317
+ }
318
+ )
319
+ );
320
+ Y.displayName = "SidebarFooter";
321
+ const $ = i.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r.jsx(
322
+ T,
323
+ {
324
+ ref: t,
325
+ "data-sidebar": "separator",
326
+ className: s("bg-sidebar-border mx-2 w-auto", a),
327
+ ...e
328
+ }
329
+ ));
330
+ $.displayName = "SidebarSeparator";
331
+ const J = i.forwardRef(
332
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r.jsx(
333
+ "div",
334
+ {
335
+ ref: t,
336
+ "data-sidebar": "content",
337
+ className: s(
338
+ "scrollbar-none flex min-h-0 flex-1 flex-col gap-2 overflow-auto rounded group-data-[collapsible=icon]:gap-0 group-data-[collapsible=icon]:overflow-hidden group-data-[collapsible=icon]:pt-3",
339
+ a
340
+ ),
341
+ ...e
342
+ }
343
+ )
344
+ );
345
+ J.displayName = "SidebarContent";
346
+ const Q = i.forwardRef(
347
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r.jsx(
348
+ "div",
349
+ {
350
+ ref: t,
351
+ "data-sidebar": "group",
352
+ className: s(
353
+ "relative flex w-full min-w-0 flex-col p-2 group-data-[collapsible=icon]:py-0 group-data-[collapsible=icon]:pt-4",
354
+ a
355
+ ),
356
+ ...e
357
+ }
358
+ )
359
+ );
360
+ Q.displayName = "SidebarGroup";
361
+ const X = i.forwardRef(({ className: a, asChild: e = !1, ...t }, o) => {
362
+ const d = e ? h : "div";
363
+ return /* @__PURE__ */ r.jsx(
364
+ d,
365
+ {
366
+ ref: o,
367
+ "data-sidebar": "group-label",
368
+ className: s(
369
+ // Whisper-style section divider: small, uppercase, tracking, muted.
370
+ "text-sidebar-foreground/50 ring-sidebar-ring flex shrink-0 items-center px-2 pt-4 pb-1.5 text-[11px] font-medium tracking-wider uppercase outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-3.5 [&>svg]:shrink-0",
371
+ "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:hidden",
372
+ a
373
+ ),
374
+ ...t
375
+ }
376
+ );
377
+ });
378
+ X.displayName = "SidebarGroupLabel";
379
+ const Z = i.forwardRef(({ className: a, asChild: e = !1, ...t }, o) => {
380
+ const d = e ? h : "button";
381
+ return /* @__PURE__ */ r.jsx(
382
+ d,
383
+ {
384
+ ref: o,
385
+ "data-sidebar": "group-action",
386
+ className: s(
387
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
388
+ // Increases the hit area of the button on mobile.
389
+ "after:absolute after:-inset-2 md:after:hidden",
390
+ "group-data-[collapsible=icon]:hidden",
391
+ a
392
+ ),
393
+ ...t
394
+ }
395
+ );
396
+ });
397
+ Z.displayName = "SidebarGroupAction";
398
+ const ee = i.forwardRef(
399
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r.jsx(
400
+ "div",
401
+ {
402
+ ref: t,
403
+ "data-sidebar": "group-content",
404
+ className: s("w-full text-sm", a),
405
+ ...e
406
+ }
407
+ )
408
+ );
409
+ ee.displayName = "SidebarGroupContent";
410
+ const ae = i.forwardRef(
411
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r.jsx(
412
+ "ul",
413
+ {
414
+ ref: t,
415
+ "data-sidebar": "menu",
416
+ className: s("flex w-full min-w-0 flex-col gap-1", a),
417
+ ...e
418
+ }
419
+ )
420
+ );
421
+ ae.displayName = "SidebarMenu";
422
+ const te = i.forwardRef(
423
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r.jsx(
424
+ "li",
425
+ {
426
+ ref: t,
427
+ "data-sidebar": "menu-item",
428
+ className: s("group/menu-item relative", a),
429
+ ...e
430
+ }
431
+ )
432
+ );
433
+ te.displayName = "SidebarMenuItem";
434
+ const re = H(
435
+ "peer/menu-button ring-sidebar-ring hover:bg-sidebar-foreground/5 active:bg-sidebar-foreground/5 data-[state=open]:hover:bg-sidebar-foreground/5 data-[active=true]:text-foreground flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-bold [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
436
+ {
437
+ variants: {
438
+ variant: {
439
+ default: "",
440
+ outline: "shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-primary)]"
441
+ },
442
+ size: {
443
+ default: "h-8 text-sm",
444
+ sm: "h-7 text-xs",
445
+ lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
446
+ }
447
+ },
448
+ defaultVariants: {
449
+ variant: "default",
450
+ size: "default"
451
+ }
452
+ }
453
+ ), ie = i.forwardRef(
454
+ ({
455
+ asChild: a = !1,
456
+ isActive: e = !1,
457
+ variant: t = "default",
458
+ size: o = "default",
459
+ className: d,
460
+ ...n
461
+ }, u) => {
462
+ const b = a ? h : "button";
463
+ return /* @__PURE__ */ r.jsx(
464
+ b,
465
+ {
466
+ ref: u,
467
+ "data-sidebar": "menu-button",
468
+ "data-size": o,
469
+ "data-active": e,
470
+ className: s(re({ variant: t, size: o }), d),
471
+ ...n
472
+ }
473
+ );
474
+ }
475
+ );
476
+ ie.displayName = "SidebarMenuButton";
477
+ const se = i.forwardRef(({ className: a, asChild: e = !1, showOnHover: t = !1, ...o }, d) => {
478
+ const n = e ? h : "button";
479
+ return /* @__PURE__ */ r.jsx(
480
+ n,
481
+ {
482
+ ref: d,
483
+ "data-sidebar": "menu-action",
484
+ className: s(
485
+ "text-sidebar-foreground ring-sidebar-ring peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
486
+ // Increases the hit area of the button on mobile.
487
+ "after:absolute after:-inset-2 md:after:hidden",
488
+ "peer-data-[size=sm]/menu-button:top-1",
489
+ "peer-data-[size=default]/menu-button:top-1.5",
490
+ "peer-data-[size=lg]/menu-button:top-2.5",
491
+ "group-data-[collapsible=icon]:hidden",
492
+ t && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",
493
+ a
494
+ ),
495
+ ...o
496
+ }
497
+ );
498
+ });
499
+ se.displayName = "SidebarMenuAction";
500
+ const oe = i.forwardRef(
501
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r.jsx(
502
+ "div",
503
+ {
504
+ ref: t,
505
+ "data-sidebar": "menu-badge",
506
+ className: s(
507
+ "text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
508
+ "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
509
+ "peer-data-[size=sm]/menu-button:top-1",
510
+ "peer-data-[size=default]/menu-button:top-1.5",
511
+ "peer-data-[size=lg]/menu-button:top-2.5",
512
+ "group-data-[collapsible=icon]:hidden",
513
+ a
514
+ ),
515
+ ...e
516
+ }
517
+ )
518
+ );
519
+ oe.displayName = "SidebarMenuBadge";
520
+ const de = i.forwardRef(({ className: a, showIcon: e = !1, ...t }, o) => {
521
+ const d = i.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
522
+ return /* @__PURE__ */ r.jsxs(
523
+ "div",
524
+ {
525
+ ref: o,
526
+ "data-sidebar": "menu-skeleton",
527
+ className: s("flex h-8 items-center gap-2 rounded-md px-2", a),
528
+ ...t,
529
+ children: [
530
+ e && /* @__PURE__ */ r.jsx(
531
+ z,
532
+ {
533
+ className: "size-4 rounded-md",
534
+ "data-sidebar": "menu-skeleton-icon"
535
+ }
536
+ ),
537
+ /* @__PURE__ */ r.jsx(
538
+ z,
539
+ {
540
+ className: "h-4 max-w-(--skeleton-width) flex-1",
541
+ "data-sidebar": "menu-skeleton-text",
542
+ style: {
543
+ "--skeleton-width": d
544
+ }
545
+ }
546
+ )
547
+ ]
548
+ }
549
+ );
550
+ });
551
+ de.displayName = "SidebarMenuSkeleton";
552
+ const ne = i.forwardRef(
553
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r.jsx(
554
+ "ul",
555
+ {
556
+ ref: t,
557
+ "data-sidebar": "menu-sub",
558
+ className: s(
559
+ "border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5",
560
+ "group-data-[collapsible=icon]:hidden",
561
+ a
562
+ ),
563
+ ...e
564
+ }
565
+ )
566
+ );
567
+ ne.displayName = "SidebarMenuSub";
568
+ const le = i.forwardRef(
569
+ ({ ...a }, e) => /* @__PURE__ */ r.jsx("li", { ref: e, ...a })
570
+ );
571
+ le.displayName = "SidebarMenuSubItem";
572
+ const ue = i.forwardRef(({ asChild: a = !1, size: e = "md", isActive: t, className: o, ...d }, n) => {
573
+ const u = a ? h : "a";
574
+ return /* @__PURE__ */ r.jsx(
575
+ u,
576
+ {
577
+ ref: n,
578
+ "data-sidebar": "menu-sub-button",
579
+ "data-size": e,
580
+ "data-active": t,
581
+ className: s(
582
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
583
+ "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
584
+ e === "sm" && "text-xs",
585
+ e === "md" && "text-sm",
586
+ "group-data-[collapsible=icon]:hidden",
587
+ o
588
+ ),
589
+ ...d
590
+ }
591
+ );
592
+ });
593
+ ue.displayName = "SidebarMenuSubButton";
594
+ export {
595
+ P as S,
596
+ I as a,
597
+ R as u
598
+ };