fina-react-ds 1.0.25 → 1.0.28

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.
@@ -1,59 +1,59 @@
1
1
  var I = Object.defineProperty;
2
- var c = (a, e) => I(a, "name", { value: e, configurable: !0 });
2
+ var r = (a, e) => I(a, "name", { value: e, configurable: !0 });
3
3
  import { jsx as t, jsxs as g } from "react/jsx-runtime";
4
- import * as l from "react";
4
+ import * as c from "react";
5
5
  import { cva as C } from "class-variance-authority";
6
6
  import { PanelLeftIcon as E } from "lucide-react";
7
7
  import { Slot as v } from "radix-ui";
8
8
  import { useIsMobile as D } from "../hooks/use-mobile.js";
9
- import { cn as r } from "../lib/utils.js";
9
+ import { cn as i } from "../lib/utils.js";
10
10
  import { Button as R } from "./button.js";
11
11
  import { Input as T } from "./input.js";
12
12
  import { Separator as B } from "./separator.js";
13
13
  import { Sheet as A, SheetContent as O, SheetHeader as H, SheetTitle as K, SheetDescription as j } from "./sheet.js";
14
14
  import { Skeleton as _ } from "./skeleton.js";
15
15
  import { Tooltip as G, TooltipTrigger as L, TooltipContent as $, TooltipProvider as P } from "./tooltip.js";
16
- const V = "sidebar_state", W = 60 * 60 * 24 * 7, q = "16rem", F = "18rem", U = "3rem", X = "b", M = l.createContext(null);
16
+ const V = "sidebar_state", W = 60 * 60 * 24 * 7, q = "16rem", F = "18rem", U = "3rem", X = "b", M = c.createContext(null);
17
17
  function N() {
18
- const a = l.useContext(M);
18
+ const a = c.useContext(M);
19
19
  if (!a)
20
20
  throw new Error("useSidebar must be used within a SidebarProvider.");
21
21
  return a;
22
22
  }
23
- c(N, "useSidebar");
24
- function se({
23
+ r(N, "useSidebar");
24
+ function ue({
25
25
  defaultOpen: a = !0,
26
26
  open: e,
27
- onOpenChange: i,
28
- className: n,
29
- style: o,
30
- children: d,
27
+ onOpenChange: n,
28
+ className: o,
29
+ style: d,
30
+ children: l,
31
31
  ...m
32
32
  }) {
33
- const s = D(), [p, u] = l.useState(!1), [x, k] = l.useState(a), h = e ?? x, w = l.useCallback(
34
- (f) => {
35
- const b = typeof f == "function" ? f(h) : f;
36
- i ? i(b) : k(b), document.cookie = `${V}=${b}; path=/; max-age=${W}`;
33
+ const u = D(), [p, b] = c.useState(!1), [x, k] = c.useState(a), h = e ?? x, w = c.useCallback(
34
+ (s) => {
35
+ const f = typeof s == "function" ? s(h) : s;
36
+ n ? n(f) : k(f), document.cookie = `${V}=${f}; path=/; max-age=${W}`;
37
37
  },
38
- [i, h]
39
- ), S = l.useCallback(() => s ? u((f) => !f) : w((f) => !f), [s, w, u]);
40
- l.useEffect(() => {
41
- const f = /* @__PURE__ */ c((b) => {
42
- b.key === X && (b.metaKey || b.ctrlKey) && (b.preventDefault(), S());
38
+ [n, h]
39
+ ), S = c.useCallback(() => u ? b((s) => !s) : w((s) => !s), [u, w, b]);
40
+ c.useEffect(() => {
41
+ const s = /* @__PURE__ */ r((f) => {
42
+ f.key === X && (f.metaKey || f.ctrlKey) && (f.preventDefault(), S());
43
43
  }, "handleKeyDown");
44
- return window.addEventListener("keydown", f), () => window.removeEventListener("keydown", f);
44
+ return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
45
45
  }, [S]);
46
- const y = h ? "expanded" : "collapsed", z = l.useMemo(
46
+ const y = h ? "expanded" : "collapsed", z = c.useMemo(
47
47
  () => ({
48
48
  state: y,
49
49
  open: h,
50
50
  setOpen: w,
51
- isMobile: s,
51
+ isMobile: u,
52
52
  openMobile: p,
53
- setOpenMobile: u,
53
+ setOpenMobile: b,
54
54
  toggleSidebar: S
55
55
  }),
56
- [y, h, w, s, p, u, S]
56
+ [y, h, w, u, p, b, S]
57
57
  );
58
58
  return /* @__PURE__ */ t(M.Provider, { value: z, children: /* @__PURE__ */ t(P, { delayDuration: 0, children: /* @__PURE__ */ t(
59
59
  "div",
@@ -62,63 +62,63 @@ function se({
62
62
  style: {
63
63
  "--sidebar-width": q,
64
64
  "--sidebar-width-icon": U,
65
- ...o
65
+ ...d
66
66
  },
67
- className: r(
68
- "fc:group/sidebar-wrapper fc:has-data-[variant=inset]:bg-sidebar fc:flex fc:min-h-svh fc:w-full",
69
- n
67
+ className: i(
68
+ "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
69
+ o
70
70
  ),
71
71
  ...m,
72
- children: d
72
+ children: l
73
73
  }
74
74
  ) }) });
75
75
  }
76
- c(se, "SidebarProvider");
77
- function le({
76
+ r(ue, "SidebarProvider");
77
+ function ce({
78
78
  side: a = "left",
79
79
  variant: e = "sidebar",
80
- collapsible: i = "offcanvas",
81
- className: n,
82
- children: o,
83
- ...d
80
+ collapsible: n = "offcanvas",
81
+ className: o,
82
+ children: d,
83
+ ...l
84
84
  }) {
85
- const { isMobile: m, state: s, openMobile: p, setOpenMobile: u } = N();
86
- return i === "none" ? /* @__PURE__ */ t(
85
+ const { isMobile: m, state: u, openMobile: p, setOpenMobile: b } = N();
86
+ return n === "none" ? /* @__PURE__ */ t(
87
87
  "div",
88
88
  {
89
89
  "data-slot": "sidebar",
90
- className: r(
91
- "fc:bg-sidebar fc:text-sidebar-foreground fc:flex fc:h-full fc:w-(--sidebar-width) fc:flex-col",
92
- n
90
+ className: i(
91
+ "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
92
+ o
93
93
  ),
94
- ...d,
95
- children: o
94
+ ...l,
95
+ children: d
96
96
  }
97
- ) : m ? /* @__PURE__ */ t(A, { open: p, onOpenChange: u, ...d, children: /* @__PURE__ */ g(
97
+ ) : m ? /* @__PURE__ */ t(A, { open: p, onOpenChange: b, ...l, children: /* @__PURE__ */ g(
98
98
  O,
99
99
  {
100
100
  "data-sidebar": "sidebar",
101
101
  "data-slot": "sidebar",
102
102
  "data-mobile": "true",
103
- className: "fc:bg-sidebar fc:text-sidebar-foreground fc:w-(--sidebar-width) fc:p-0 fc:[&>button]:hidden",
103
+ className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
104
104
  style: {
105
105
  "--sidebar-width": F
106
106
  },
107
107
  side: a,
108
108
  children: [
109
- /* @__PURE__ */ g(H, { className: "fc:sr-only", children: [
109
+ /* @__PURE__ */ g(H, { className: "sr-only", children: [
110
110
  /* @__PURE__ */ t(K, { children: "Sidebar" }),
111
111
  /* @__PURE__ */ t(j, { children: "Displays the mobile sidebar." })
112
112
  ] }),
113
- /* @__PURE__ */ t("div", { className: "fc:flex fc:h-full fc:w-full fc:flex-col", children: o })
113
+ /* @__PURE__ */ t("div", { className: "flex h-full w-full flex-col", children: d })
114
114
  ]
115
115
  }
116
116
  ) }) : /* @__PURE__ */ g(
117
117
  "div",
118
118
  {
119
- className: "fc:group fc:peer fc:text-sidebar-foreground fc:hidden fc:md:block",
120
- "data-state": s,
121
- "data-collapsible": s === "collapsed" ? i : "",
119
+ className: "group peer text-sidebar-foreground hidden md:block",
120
+ "data-state": u,
121
+ "data-collapsible": u === "collapsed" ? n : "",
122
122
  "data-variant": e,
123
123
  "data-side": a,
124
124
  "data-slot": "sidebar",
@@ -127,11 +127,11 @@ function le({
127
127
  "div",
128
128
  {
129
129
  "data-slot": "sidebar-gap",
130
- className: r(
131
- "fc:relative fc:w-(--sidebar-width) fc:bg-transparent fc:transition-[width] fc:duration-200 fc:ease-linear",
132
- "fc:group-data-[collapsible=offcanvas]:w-0",
133
- "fc:group-data-[side=right]:rotate-180",
134
- e === "floating" || e === "inset" ? "fc:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "fc:group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
130
+ className: i(
131
+ "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
132
+ "group-data-[collapsible=offcanvas]:w-0",
133
+ "group-data-[side=right]:rotate-180",
134
+ e === "floating" || e === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
135
135
  )
136
136
  }
137
137
  ),
@@ -139,21 +139,21 @@ function le({
139
139
  "div",
140
140
  {
141
141
  "data-slot": "sidebar-container",
142
- className: r(
143
- "fc:fixed fc:inset-y-0 fc:z-10 fc:hidden fc:h-svh fc:w-(--sidebar-width) fc:transition-[left,right,width] fc:duration-200 fc:ease-linear fc:md:flex",
144
- a === "left" ? "fc:left-0 fc:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "fc:right-0 fc:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
142
+ className: i(
143
+ "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
144
+ 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)]",
145
145
  // Adjust the padding for floating and inset variants.
146
- e === "floating" || e === "inset" ? "fc:p-2 fc:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "fc:group-data-[collapsible=icon]:w-(--sidebar-width-icon) fc:group-data-[side=left]:border-r group-data-[side=right]:border-l",
147
- n
146
+ 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=left]:border-r group-data-[side=right]:border-l",
147
+ o
148
148
  ),
149
- ...d,
149
+ ...l,
150
150
  children: /* @__PURE__ */ t(
151
151
  "div",
152
152
  {
153
153
  "data-sidebar": "sidebar",
154
154
  "data-slot": "sidebar-inner",
155
- className: "fc:bg-sidebar fc:group-data-[variant=floating]:border-sidebar-border fc:flex fc:h-full fc:w-full fc:flex-col fc:group-data-[variant=floating]:rounded-lg fc:group-data-[variant=floating]:border fc:group-data-[variant=floating]:shadow-sm",
156
- children: o
155
+ className: "bg-sidebar 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",
156
+ children: d
157
157
  }
158
158
  )
159
159
  }
@@ -162,13 +162,13 @@ function le({
162
162
  }
163
163
  );
164
164
  }
165
- c(le, "Sidebar");
166
- function ue({
165
+ r(ce, "Sidebar");
166
+ function be({
167
167
  className: a,
168
168
  onClick: e,
169
- ...i
169
+ ...n
170
170
  }) {
171
- const { toggleSidebar: n } = N();
171
+ const { toggleSidebar: o } = N();
172
172
  return /* @__PURE__ */ g(
173
173
  R,
174
174
  {
@@ -177,21 +177,21 @@ function ue({
177
177
  variant: "ghost",
178
178
  color: "dark",
179
179
  size: "icon",
180
- className: r("fc:size-7", a),
181
- onClick: /* @__PURE__ */ c((o) => {
182
- e == null || e(o), n();
180
+ className: i("size-7", a),
181
+ onClick: /* @__PURE__ */ r((d) => {
182
+ e == null || e(d), o();
183
183
  }, "onClick"),
184
- ...i,
184
+ ...n,
185
185
  children: [
186
186
  /* @__PURE__ */ t(E, {}),
187
- /* @__PURE__ */ t("span", { className: "fc:sr-only", children: "Toggle Sidebar" })
187
+ /* @__PURE__ */ t("span", { className: "sr-only", children: "Toggle Sidebar" })
188
188
  ]
189
189
  }
190
190
  );
191
191
  }
192
- c(ue, "SidebarTrigger");
193
- function be({ className: a, ...e }) {
194
- const { toggleSidebar: i } = N();
192
+ r(be, "SidebarTrigger");
193
+ function fe({ className: a, ...e }) {
194
+ const { toggleSidebar: n } = N();
195
195
  return /* @__PURE__ */ t(
196
196
  "button",
197
197
  {
@@ -199,37 +199,37 @@ function be({ className: a, ...e }) {
199
199
  "data-slot": "sidebar-rail",
200
200
  "aria-label": "Toggle Sidebar",
201
201
  tabIndex: -1,
202
- onClick: i,
202
+ onClick: n,
203
203
  title: "Toggle Sidebar",
204
- className: r(
205
- "fc:hover:after:bg-sidebar-border fc:absolute fc:inset-y-0 fc:z-20 fc:hidden fc:w-4 fc:-translate-x-1/2 fc:transition-all fc:ease-linear fc:group-data-[side=left]:-right-4 fc:group-data-[side=right]:left-0 fc:after:absolute fc:after:inset-y-0 fc:after:left-1/2 fc:after:w-[2px] fc:sm:flex",
206
- "fc:in-data-[side=left]:cursor-w-resize fc:in-data-[side=right]:cursor-e-resize",
207
- "fc:[[data-side=left][data-state=collapsed]_&]:cursor-e-resize fc:[[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
208
- "fc:hover:group-data-[collapsible=offcanvas]:bg-sidebar fc:group-data-[collapsible=offcanvas]:translate-x-0 fc:group-data-[collapsible=offcanvas]:after:left-full",
209
- "fc:[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
210
- "fc:[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
204
+ className: i(
205
+ "hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
206
+ "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
207
+ "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
208
+ "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",
209
+ "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
210
+ "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
211
211
  a
212
212
  ),
213
213
  ...e
214
214
  }
215
215
  );
216
216
  }
217
- c(be, "SidebarRail");
217
+ r(fe, "SidebarRail");
218
218
  function pe({ className: a, ...e }) {
219
219
  return /* @__PURE__ */ t(
220
220
  "main",
221
221
  {
222
222
  "data-slot": "sidebar-inset",
223
- className: r(
224
- "fc:bg-background fc:relative fc:flex fc:w-full fc:flex-1 fc:flex-col",
225
- "fc:md:peer-data-[variant=inset]:m-2 fc:md:peer-data-[variant=inset]:ml-0 fc:md:peer-data-[variant=inset]:rounded-xl fc:md:peer-data-[variant=inset]:shadow-sm fc:md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
223
+ className: i(
224
+ "bg-background relative flex w-full flex-1 flex-col",
225
+ "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",
226
226
  a
227
227
  ),
228
228
  ...e
229
229
  }
230
230
  );
231
231
  }
232
- c(pe, "SidebarInset");
232
+ r(pe, "SidebarInset");
233
233
  function ge({
234
234
  className: a,
235
235
  ...e
@@ -239,36 +239,36 @@ function ge({
239
239
  {
240
240
  "data-slot": "sidebar-input",
241
241
  "data-sidebar": "input",
242
- className: r("fc:bg-background fc:h-8 fc:w-full fc:shadow-none", a),
242
+ className: i("bg-background h-8 w-full shadow-none", a),
243
243
  ...e
244
244
  }
245
245
  );
246
246
  }
247
- c(ge, "SidebarInput");
247
+ r(ge, "SidebarInput");
248
248
  function me({ className: a, ...e }) {
249
249
  return /* @__PURE__ */ t(
250
250
  "div",
251
251
  {
252
252
  "data-slot": "sidebar-header",
253
253
  "data-sidebar": "header",
254
- className: r("fc:flex fc:flex-col fc:gap-2 fc:p-2", a),
254
+ className: i("flex flex-col gap-2 p-2", a),
255
255
  ...e
256
256
  }
257
257
  );
258
258
  }
259
- c(me, "SidebarHeader");
259
+ r(me, "SidebarHeader");
260
260
  function he({ className: a, ...e }) {
261
261
  return /* @__PURE__ */ t(
262
262
  "div",
263
263
  {
264
264
  "data-slot": "sidebar-footer",
265
265
  "data-sidebar": "footer",
266
- className: r("fc:flex fc:flex-col fc:gap-2 fc:p-2", a),
266
+ className: i("flex flex-col gap-2 p-2", a),
267
267
  ...e
268
268
  }
269
269
  );
270
270
  }
271
- c(he, "SidebarFooter");
271
+ r(he, "SidebarFooter");
272
272
  function ve({
273
273
  className: a,
274
274
  ...e
@@ -278,83 +278,83 @@ function ve({
278
278
  {
279
279
  "data-slot": "sidebar-separator",
280
280
  "data-sidebar": "separator",
281
- className: r("fc:bg-sidebar-border fc:mx-2 fc:w-auto", a),
281
+ className: i("bg-sidebar-border mx-2 w-auto", a),
282
282
  ...e
283
283
  }
284
284
  );
285
285
  }
286
- c(ve, "SidebarSeparator");
286
+ r(ve, "SidebarSeparator");
287
287
  function xe({ className: a, ...e }) {
288
288
  return /* @__PURE__ */ t(
289
289
  "div",
290
290
  {
291
291
  "data-slot": "sidebar-content",
292
292
  "data-sidebar": "content",
293
- className: r(
294
- "fc:flex fc:min-h-0 fc:flex-1 fc:flex-col fc:gap-2 fc:overflow-auto fc:group-data-[collapsible=icon]:overflow-hidden",
293
+ className: i(
294
+ "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
295
295
  a
296
296
  ),
297
297
  ...e
298
298
  }
299
299
  );
300
300
  }
301
- c(xe, "SidebarContent");
301
+ r(xe, "SidebarContent");
302
302
  function we({ className: a, ...e }) {
303
303
  return /* @__PURE__ */ t(
304
304
  "div",
305
305
  {
306
306
  "data-slot": "sidebar-group",
307
307
  "data-sidebar": "group",
308
- className: r("fc:relative fc:flex fc:w-full fc:min-w-0 fc:flex-col fc:p-2", a),
308
+ className: i("relative flex w-full min-w-0 flex-col p-2", a),
309
309
  ...e
310
310
  }
311
311
  );
312
312
  }
313
- c(we, "SidebarGroup");
313
+ r(we, "SidebarGroup");
314
314
  function Se({
315
315
  className: a,
316
316
  asChild: e = !1,
317
- ...i
317
+ ...n
318
318
  }) {
319
- const n = e ? v.Root : "div";
319
+ const o = e ? v.Root : "div";
320
320
  return /* @__PURE__ */ t(
321
- n,
321
+ o,
322
322
  {
323
323
  "data-slot": "sidebar-group-label",
324
324
  "data-sidebar": "group-label",
325
- className: r(
326
- "fc:text-sidebar-foreground/70 fc:ring-sidebar-ring fc:flex fc:h-8 fc:shrink-0 fc:items-center fc:rounded-md fc:px-2 fc:text-xs fc:font-medium fc:outline-hidden fc:transition-[margin,opacity] fc:duration-200 fc:ease-linear fc:focus-visible:ring-2 fc:[&>svg]:size-4 fc:[&>svg]:shrink-0",
327
- "fc:group-data-[collapsible=icon]:-mt-8 fc:group-data-[collapsible=icon]:opacity-0",
325
+ className: i(
326
+ "text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
327
+ "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
328
328
  a
329
329
  ),
330
- ...i
330
+ ...n
331
331
  }
332
332
  );
333
333
  }
334
- c(Se, "SidebarGroupLabel");
334
+ r(Se, "SidebarGroupLabel");
335
335
  function Ne({
336
336
  className: a,
337
337
  asChild: e = !1,
338
- ...i
338
+ ...n
339
339
  }) {
340
- const n = e ? v.Root : "button";
340
+ const o = e ? v.Root : "button";
341
341
  return /* @__PURE__ */ t(
342
- n,
342
+ o,
343
343
  {
344
344
  "data-slot": "sidebar-group-action",
345
345
  "data-sidebar": "group-action",
346
- className: r(
347
- "fc:text-sidebar-foreground fc:ring-sidebar-ring fc:hover:bg-sidebar-accent fc:hover:text-sidebar-accent-foreground fc:absolute fc:top-3.5 fc:right-3 fc:flex fc:aspect-square fc:w-5 fc:items-center fc:justify-center fc:rounded-md fc:p-0 fc:outline-hidden fc:transition-transform fc:focus-visible:ring-2 [&>svg]:size-4 fc:[&>svg]:shrink-0",
346
+ className: i(
347
+ "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",
348
348
  // Increases the hit area of the button on mobile.
349
- "fc:after:absolute fc:after:-inset-2 fc:md:after:hidden",
350
- "fc:group-data-[collapsible=icon]:hidden",
349
+ "after:absolute after:-inset-2 md:after:hidden",
350
+ "group-data-[collapsible=icon]:hidden",
351
351
  a
352
352
  ),
353
- ...i
353
+ ...n
354
354
  }
355
355
  );
356
356
  }
357
- c(Ne, "SidebarGroupAction");
357
+ r(Ne, "SidebarGroupAction");
358
358
  function ye({
359
359
  className: a,
360
360
  ...e
@@ -364,48 +364,48 @@ function ye({
364
364
  {
365
365
  "data-slot": "sidebar-group-content",
366
366
  "data-sidebar": "group-content",
367
- className: r("fc:w-full fc:text-sm", a),
367
+ className: i("w-full text-sm", a),
368
368
  ...e
369
369
  }
370
370
  );
371
371
  }
372
- c(ye, "SidebarGroupContent");
372
+ r(ye, "SidebarGroupContent");
373
373
  function _e({ className: a, ...e }) {
374
374
  return /* @__PURE__ */ t(
375
375
  "ul",
376
376
  {
377
377
  "data-slot": "sidebar-menu",
378
378
  "data-sidebar": "menu",
379
- className: r("flex w-full min-w-0 flex-col gap-1", a),
379
+ className: i("flex w-full min-w-0 flex-col gap-1", a),
380
380
  ...e
381
381
  }
382
382
  );
383
383
  }
384
- c(_e, "SidebarMenu");
384
+ r(_e, "SidebarMenu");
385
385
  function Me({ className: a, ...e }) {
386
386
  return /* @__PURE__ */ t(
387
387
  "li",
388
388
  {
389
389
  "data-slot": "sidebar-menu-item",
390
390
  "data-sidebar": "menu-item",
391
- className: r("fc:group/menu-item fc:relative", a),
391
+ className: i("group/menu-item relative", a),
392
392
  ...e
393
393
  }
394
394
  );
395
395
  }
396
- c(Me, "SidebarMenuItem");
396
+ r(Me, "SidebarMenuItem");
397
397
  const Y = C(
398
- "fc:peer/menu-button fc:flex fc:w-full fc:items-center fc:gap-2 fc:overflow-hidden fc:rounded-md fc:p-2 fc:text-left fc:text-sm fc:outline-hidden fc:ring-sidebar-ring fc:transition-[width,height,padding] fc:hover:bg-sidebar-accent fc:hover:text-sidebar-accent-foreground fc:focus-visible:ring-2 fc:active:bg-sidebar-accent fc:active:text-sidebar-accent-foreground fc:disabled:pointer-events-none fc:disabled:opacity-50 fc:group-has-data-[sidebar=menu-action]/menu-item:pr-8 fc:aria-disabled:pointer-events-none fc:aria-disabled:opacity-50 fc:data-[active=true]:bg-sidebar-accent fc:data-[active=true]:font-medium fc:data-[active=true]:text-sidebar-accent-foreground fc:data-[state=open]:hover:bg-sidebar-accent fc:data-[state=open]:hover:text-sidebar-accent-foreground fc:group-data-[collapsible=icon]:size-8! fc:group-data-[collapsible=icon]:p-2! fc:[&>span:last-child]:truncate fc:[&>svg]:size-4 fc:[&>svg]:shrink-0",
398
+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
399
399
  {
400
400
  variants: {
401
401
  variant: {
402
- default: "fc:hover:bg-sidebar-accent fc:hover:text-sidebar-accent-foreground",
403
- outline: "fc:bg-background fc:shadow-[0_0_0_1px_hsl(var(--sidebar-border))] fc:hover:bg-sidebar-accent fc:hover:text-sidebar-accent-foreground fc:hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
402
+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
403
+ outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
404
404
  },
405
405
  size: {
406
- default: "fc:h-8 fc:text-sm",
407
- sm: "fc:h-7 fc:text-xs",
408
- lg: "fc:h-12 fc:text-sm fc:group-data-[collapsible=icon]:p-0!"
406
+ default: "h-8 text-sm",
407
+ sm: "h-7 text-xs",
408
+ lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
409
409
  }
410
410
  },
411
411
  defaultVariants: {
@@ -417,25 +417,25 @@ const Y = C(
417
417
  function ke({
418
418
  asChild: a = !1,
419
419
  isActive: e = !1,
420
- variant: i = "default",
421
- size: n = "default",
422
- tooltip: o,
423
- className: d,
420
+ variant: n = "default",
421
+ size: o = "default",
422
+ tooltip: d,
423
+ className: l,
424
424
  ...m
425
425
  }) {
426
- const s = a ? v.Root : "button", { isMobile: p, state: u } = N(), x = /* @__PURE__ */ t(
427
- s,
426
+ const u = a ? v.Root : "button", { isMobile: p, state: b } = N(), x = /* @__PURE__ */ t(
427
+ u,
428
428
  {
429
429
  "data-slot": "sidebar-menu-button",
430
430
  "data-sidebar": "menu-button",
431
- "data-size": n,
431
+ "data-size": o,
432
432
  "data-active": e,
433
- className: r(Y({ variant: i, size: n }), d),
433
+ className: i(Y({ variant: n, size: o }), l),
434
434
  ...m
435
435
  }
436
436
  );
437
- return o ? (typeof o == "string" && (o = {
438
- children: o
437
+ return d ? (typeof d == "string" && (d = {
438
+ children: d
439
439
  }), /* @__PURE__ */ g(G, { children: [
440
440
  /* @__PURE__ */ t(L, { asChild: !0, children: x }),
441
441
  /* @__PURE__ */ t(
@@ -443,41 +443,41 @@ function ke({
443
443
  {
444
444
  side: "right",
445
445
  align: "center",
446
- hidden: u !== "collapsed" || p,
447
- ...o
446
+ hidden: b !== "collapsed" || p,
447
+ ...d
448
448
  }
449
449
  )
450
450
  ] })) : x;
451
451
  }
452
- c(ke, "SidebarMenuButton");
452
+ r(ke, "SidebarMenuButton");
453
453
  function ze({
454
454
  className: a,
455
455
  asChild: e = !1,
456
- showOnHover: i = !1,
457
- ...n
456
+ showOnHover: n = !1,
457
+ ...o
458
458
  }) {
459
- const o = e ? v.Root : "button";
459
+ const d = e ? v.Root : "button";
460
460
  return /* @__PURE__ */ t(
461
- o,
461
+ d,
462
462
  {
463
463
  "data-slot": "sidebar-menu-action",
464
464
  "data-sidebar": "menu-action",
465
- className: r(
466
- "fc:text-sidebar-foreground fc:ring-sidebar-ring fc:hover:bg-sidebar-accent fc:hover:text-sidebar-accent-foreground fc:peer-hover/menu-button:text-sidebar-accent-foreground fc:absolute fc:top-1.5 fc:right-1 fc:flex fc:aspect-square fc:w-5 fc:items-center fc:justify-center fc:rounded-md fc:p-0 fc:outline-hidden fc:transition-transform fc:focus-visible:ring-2 fc:[&>svg]:size-4 fc:[&>svg]:shrink-0",
465
+ className: i(
466
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button: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",
467
467
  // Increases the hit area of the button on mobile.
468
- "fc:after:absolute after:-inset-2 fc:md:after:hidden",
469
- "fc:peer-data-[size=sm]/menu-button:top-1",
470
- "fc:peer-data-[size=default]/menu-button:top-1.5",
471
- "fc:peer-data-[size=lg]/menu-button:top-2.5",
472
- "fc:group-data-[collapsible=icon]:hidden",
473
- i && "fc:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground fc:group-focus-within/menu-item:opacity-100 fc:group-hover/menu-item:opacity-100 fc:data-[state=open]:opacity-100 fc:md:opacity-0",
468
+ "after:absolute after:-inset-2 md:after:hidden",
469
+ "peer-data-[size=sm]/menu-button:top-1",
470
+ "peer-data-[size=default]/menu-button:top-1.5",
471
+ "peer-data-[size=lg]/menu-button:top-2.5",
472
+ "group-data-[collapsible=icon]:hidden",
473
+ n && "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",
474
474
  a
475
475
  ),
476
- ...n
476
+ ...o
477
477
  }
478
478
  );
479
479
  }
480
- c(ze, "SidebarMenuAction");
480
+ r(ze, "SidebarMenuAction");
481
481
  function Ie({
482
482
  className: a,
483
483
  ...e
@@ -487,48 +487,48 @@ function Ie({
487
487
  {
488
488
  "data-slot": "sidebar-menu-badge",
489
489
  "data-sidebar": "menu-badge",
490
- className: r(
491
- "fc:text-sidebar-foreground fc:pointer-events-none fc:absolute fc:right-1 fc:flex fc:h-5 fc:min-w-5 fc:items-center fc:justify-center fc:rounded-md fc:px-1 fc:text-xs fc:font-medium fc:tabular-nums fc:select-none",
492
- "fc:peer-hover/menu-button:text-sidebar-accent-foreground fc:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
493
- "fc:peer-data-[size=sm]/menu-button:top-1",
494
- "fc:peer-data-[size=default]/menu-button:top-1.5",
495
- "fc:peer-data-[size=lg]/menu-button:top-2.5",
496
- "fc:group-data-[collapsible=icon]:hidden",
490
+ className: i(
491
+ "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",
492
+ "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
493
+ "peer-data-[size=sm]/menu-button:top-1",
494
+ "peer-data-[size=default]/menu-button:top-1.5",
495
+ "peer-data-[size=lg]/menu-button:top-2.5",
496
+ "group-data-[collapsible=icon]:hidden",
497
497
  a
498
498
  ),
499
499
  ...e
500
500
  }
501
501
  );
502
502
  }
503
- c(Ie, "SidebarMenuBadge");
503
+ r(Ie, "SidebarMenuBadge");
504
504
  function Ce({
505
505
  className: a,
506
506
  showIcon: e = !1,
507
- ...i
507
+ ...n
508
508
  }) {
509
- const n = l.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
509
+ const o = c.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
510
510
  return /* @__PURE__ */ g(
511
511
  "div",
512
512
  {
513
513
  "data-slot": "sidebar-menu-skeleton",
514
514
  "data-sidebar": "menu-skeleton",
515
- className: r("fc:flex fc:h-8 fc:items-center fc:gap-2 fc:rounded-md fc:px-2", a),
516
- ...i,
515
+ className: i("flex h-8 items-center gap-2 rounded-md px-2", a),
516
+ ...n,
517
517
  children: [
518
518
  e && /* @__PURE__ */ t(
519
519
  _,
520
520
  {
521
- className: "fc:size-4 fc:rounded-md",
521
+ className: "size-4 rounded-md",
522
522
  "data-sidebar": "menu-skeleton-icon"
523
523
  }
524
524
  ),
525
525
  /* @__PURE__ */ t(
526
526
  _,
527
527
  {
528
- className: "fc:h-4 fc:max-w-(--skeleton-width) fc:flex-1",
528
+ className: "h-4 max-w-(--skeleton-width) flex-1",
529
529
  "data-sidebar": "menu-skeleton-text",
530
530
  style: {
531
- "--skeleton-width": n
531
+ "--skeleton-width": o
532
532
  }
533
533
  }
534
534
  )
@@ -536,23 +536,23 @@ function Ce({
536
536
  }
537
537
  );
538
538
  }
539
- c(Ce, "SidebarMenuSkeleton");
539
+ r(Ce, "SidebarMenuSkeleton");
540
540
  function Ee({ className: a, ...e }) {
541
541
  return /* @__PURE__ */ t(
542
542
  "ul",
543
543
  {
544
544
  "data-slot": "sidebar-menu-sub",
545
545
  "data-sidebar": "menu-sub",
546
- className: r(
547
- "fc:border-sidebar-border fc:mx-3.5 fc:flex fc:min-w-0 fc:translate-x-px fc:flex-col fc:gap-1 fc:border-l fc:px-2.5 fc:py-0.5",
548
- "fc:group-data-[collapsible=icon]:hidden",
546
+ className: i(
547
+ "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",
548
+ "group-data-[collapsible=icon]:hidden",
549
549
  a
550
550
  ),
551
551
  ...e
552
552
  }
553
553
  );
554
554
  }
555
- c(Ee, "SidebarMenuSub");
555
+ r(Ee, "SidebarMenuSub");
556
556
  function De({
557
557
  className: a,
558
558
  ...e
@@ -562,42 +562,42 @@ function De({
562
562
  {
563
563
  "data-slot": "sidebar-menu-sub-item",
564
564
  "data-sidebar": "menu-sub-item",
565
- className: r("fc:group/menu-sub-item fc:relative", a),
565
+ className: i("group/menu-sub-item relative", a),
566
566
  ...e
567
567
  }
568
568
  );
569
569
  }
570
- c(De, "SidebarMenuSubItem");
570
+ r(De, "SidebarMenuSubItem");
571
571
  function Re({
572
572
  asChild: a = !1,
573
573
  size: e = "md",
574
- isActive: i = !1,
575
- className: n,
576
- ...o
574
+ isActive: n = !1,
575
+ className: o,
576
+ ...d
577
577
  }) {
578
- const d = a ? v.Root : "a";
578
+ const l = a ? v.Root : "a";
579
579
  return /* @__PURE__ */ t(
580
- d,
580
+ l,
581
581
  {
582
582
  "data-slot": "sidebar-menu-sub-button",
583
583
  "data-sidebar": "menu-sub-button",
584
584
  "data-size": e,
585
- "data-active": i,
586
- className: r(
587
- "fc:text-sidebar-foreground fc:ring-sidebar-ring fc:hover:bg-sidebar-accent fc:hover:text-sidebar-accent-foreground fc:active:bg-sidebar-accent fc:active:text-sidebar-accent-foreground fc:[&>svg]:text-sidebar-accent-foreground fc:flex fc:h-7 fc:min-w-0 fc:-translate-x-px fc:items-center fc:gap-2 fc:overflow-hidden fc:rounded-md fc:px-2 fc:outline-hidden fc:focus-visible:ring-2 fc:disabled:pointer-events-none fc:disabled:opacity-50 fc:aria-disabled:pointer-events-none fc:aria-disabled:opacity-50 fc:[&>span:last-child]:truncate fc:[&>svg]:size-4 fc:[&>svg]:shrink-0",
588
- "fc:data-[active=true]:bg-sidebar-accent fc:data-[active=true]:text-sidebar-accent-foreground",
589
- e === "sm" && "fc:text-xs",
590
- e === "md" && "fc:text-sm",
591
- "fc:group-data-[collapsible=icon]:hidden",
592
- n
585
+ "data-active": n,
586
+ className: i(
587
+ "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",
588
+ "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
589
+ e === "sm" && "text-xs",
590
+ e === "md" && "text-sm",
591
+ "group-data-[collapsible=icon]:hidden",
592
+ o
593
593
  ),
594
- ...o
594
+ ...d
595
595
  }
596
596
  );
597
597
  }
598
- c(Re, "SidebarMenuSubButton");
598
+ r(Re, "SidebarMenuSubButton");
599
599
  export {
600
- le as Sidebar,
600
+ ce as Sidebar,
601
601
  xe as SidebarContent,
602
602
  he as SidebarFooter,
603
603
  we as SidebarGroup,
@@ -616,9 +616,9 @@ export {
616
616
  Ee as SidebarMenuSub,
617
617
  Re as SidebarMenuSubButton,
618
618
  De as SidebarMenuSubItem,
619
- se as SidebarProvider,
620
- be as SidebarRail,
619
+ ue as SidebarProvider,
620
+ fe as SidebarRail,
621
621
  ve as SidebarSeparator,
622
- ue as SidebarTrigger,
622
+ be as SidebarTrigger,
623
623
  N as useSidebar
624
624
  };