@rafal.lemieszewski/tide-ui 0.85.1 → 0.87.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.
- package/dist/cjs/components/fundamental/breadcrumb.cjs +1 -1
- package/dist/cjs/components/fundamental/button.cjs +1 -1
- package/dist/cjs/components/fundamental/calendar.cjs +1 -1
- package/dist/cjs/components/fundamental/country-dropdown.cjs +1 -1
- package/dist/cjs/components/fundamental/custom-icons.cjs +1 -1
- package/dist/cjs/components/fundamental/dialog.cjs +1 -1
- package/dist/cjs/components/fundamental/file-upload.cjs +1 -1
- package/dist/cjs/components/fundamental/icon.cjs +1 -1
- package/dist/cjs/components/fundamental/month-picker.cjs +1 -1
- package/dist/cjs/components/fundamental/pagination.cjs +1 -1
- package/dist/cjs/components/fundamental/select.cjs +1 -1
- package/dist/cjs/components/fundamental/separator.cjs +1 -1
- package/dist/cjs/components/fundamental/sidebar.cjs +1 -1
- package/dist/cjs/components/fundamental/toast.cjs +1 -1
- package/dist/cjs/components/fundamental/tree.cjs +1 -1
- package/dist/cjs/components/product/app-frame.cjs +1 -1
- package/dist/cjs/components/product/attributes-list.cjs +1 -1
- package/dist/cjs/components/product/bookmarks.cjs +1 -1
- package/dist/cjs/components/product/data-table-settings-menu.cjs +1 -1
- package/dist/cjs/components/product/data-table.cjs +1 -1
- package/dist/cjs/components/product/filters.cjs +1 -1
- package/dist/cjs/components/product/fixture-status.cjs +1 -1
- package/dist/cjs/components/product/linked-chart.cjs +1 -1
- package/dist/cjs/components/product/view-mode-menu.cjs +1 -1
- package/dist/es/components/fundamental/button.js +10 -9
- package/dist/es/components/fundamental/calendar.js +18 -17
- package/dist/es/components/fundamental/custom-icons.js +283 -517
- package/dist/es/components/fundamental/dialog.js +25 -24
- package/dist/es/components/fundamental/file-upload.js +17 -16
- package/dist/es/components/fundamental/icon.js +68 -147
- package/dist/es/components/fundamental/month-picker.js +21 -20
- package/dist/es/components/fundamental/pagination.js +44 -43
- package/dist/es/components/fundamental/select.js +40 -39
- package/dist/es/components/fundamental/separator.js +11 -10
- package/dist/es/components/fundamental/sidebar.js +85 -84
- package/dist/es/components/fundamental/toast.js +8 -7
- package/dist/es/components/product/app-frame.js +83 -82
- package/dist/es/components/product/attributes-list.js +61 -60
- package/dist/es/components/product/bookmarks.js +170 -169
- package/dist/es/components/product/data-table-settings-menu.js +38 -37
- package/dist/es/components/product/data-table.js +374 -373
- package/dist/es/components/product/filters.js +93 -92
- package/dist/es/components/product/fixture-status.js +89 -87
- package/dist/es/components/product/linked-chart.js +54 -53
- package/dist/es/components/product/view-mode-menu.js +176 -175
- package/dist/types/components/core-index.d.cts +1 -1
- package/dist/types/components/core-index.d.ts +1 -1
- package/dist/types/components/fundamental/custom-icons.d.ts +32 -36
- package/dist/types/components/fundamental/dropdown-menu.d.ts +2 -1
- package/dist/types/components/fundamental/icon.d.ts +1 -3
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/product/fixture-status.d.ts +2 -2
- package/dist/types/lib/index.d.cts +1 -1
- package/dist/types/lib/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7,25 +7,26 @@ import { cn as s } from "../../lib/utils.js";
|
|
|
7
7
|
import { Button as O } from "./button.js";
|
|
8
8
|
import { Separator as F } from "./separator.js";
|
|
9
9
|
import { Icon as W } from "./icon.js";
|
|
10
|
-
|
|
10
|
+
import { PanelLeft as $ } from "lucide-react";
|
|
11
|
+
const V = "sidebar:state", q = 3600 * 24 * 7, U = "16rem", X = "18rem", Y = "3rem", A = "b", G = t.createContext(null);
|
|
11
12
|
function E() {
|
|
12
13
|
const r = t.useContext(G);
|
|
13
14
|
if (!r)
|
|
14
15
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
15
16
|
return r;
|
|
16
17
|
}
|
|
17
|
-
const
|
|
18
|
+
const J = /* @__PURE__ */ t.forwardRef(
|
|
18
19
|
({ defaultOpen: r = !0, open: e, onOpenChange: a, className: o, style: i, children: l, ...u }, f) => {
|
|
19
20
|
const [p, m] = t.useState(r), [v, h] = t.useState(!1), [y, R] = t.useState(!1), g = e ?? p, w = t.useCallback(
|
|
20
21
|
(n) => {
|
|
21
22
|
const c = typeof n == "function" ? n(g) : n;
|
|
22
|
-
a ? a(c) : m(c), typeof document < "u" && (document.cookie = `${
|
|
23
|
+
a ? a(c) : m(c), typeof document < "u" && (document.cookie = `${V}=${c}; path=/; max-age=${q}`);
|
|
23
24
|
},
|
|
24
25
|
[a, g]
|
|
25
26
|
), b = t.useCallback(() => y ? h((n) => !n) : w((n) => !n), [y, w, h]);
|
|
26
27
|
t.useEffect(() => {
|
|
27
28
|
const n = (c) => {
|
|
28
|
-
c.key ===
|
|
29
|
+
c.key === A && (c.metaKey || c.ctrlKey) && (c.preventDefault(), b());
|
|
29
30
|
};
|
|
30
31
|
return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
31
32
|
}, [b]), t.useEffect(() => {
|
|
@@ -51,8 +52,8 @@ const A = /* @__PURE__ */ t.forwardRef(
|
|
|
51
52
|
{
|
|
52
53
|
ref: f,
|
|
53
54
|
style: {
|
|
54
|
-
"--sidebar-width":
|
|
55
|
-
"--sidebar-width-icon":
|
|
55
|
+
"--sidebar-width": U,
|
|
56
|
+
"--sidebar-width-icon": Y,
|
|
56
57
|
...i
|
|
57
58
|
},
|
|
58
59
|
className: s(
|
|
@@ -65,8 +66,8 @@ const A = /* @__PURE__ */ t.forwardRef(
|
|
|
65
66
|
) }) });
|
|
66
67
|
}
|
|
67
68
|
);
|
|
68
|
-
|
|
69
|
-
const
|
|
69
|
+
J.displayName = "SidebarProvider";
|
|
70
|
+
const Q = /* @__PURE__ */ t.forwardRef(
|
|
70
71
|
({
|
|
71
72
|
variant: r = "sidebar",
|
|
72
73
|
collapsible: e = "offcanvas",
|
|
@@ -97,7 +98,7 @@ const J = /* @__PURE__ */ t.forwardRef(
|
|
|
97
98
|
"data-mobile": "true",
|
|
98
99
|
className: "fixed inset-y-0 z-50 h-auto w-[var(--sidebar-width-mobile)] bg-[var(--color-surface-primary)] p-0 text-[var(--color-text-primary)] shadow-md transition ease-in-out data-[state=open]:duration-300 data-[state=closed]:duration-200 data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",
|
|
99
100
|
style: {
|
|
100
|
-
"--sidebar-width":
|
|
101
|
+
"--sidebar-width": X
|
|
101
102
|
},
|
|
102
103
|
...l,
|
|
103
104
|
children: /* @__PURE__ */ d("div", { className: "flex h-full w-full flex-col", children: i })
|
|
@@ -138,8 +139,8 @@ const J = /* @__PURE__ */ t.forwardRef(
|
|
|
138
139
|
);
|
|
139
140
|
}
|
|
140
141
|
);
|
|
141
|
-
|
|
142
|
-
const
|
|
142
|
+
Q.displayName = "Sidebar";
|
|
143
|
+
const Z = /* @__PURE__ */ t.forwardRef(({ className: r, onClick: e, ...a }, o) => {
|
|
143
144
|
const { toggleSidebar: i } = E();
|
|
144
145
|
return /* @__PURE__ */ C(
|
|
145
146
|
O,
|
|
@@ -154,14 +155,14 @@ const Q = /* @__PURE__ */ t.forwardRef(({ className: r, onClick: e, ...a }, o) =
|
|
|
154
155
|
},
|
|
155
156
|
...a,
|
|
156
157
|
children: [
|
|
157
|
-
/* @__PURE__ */ d(W, { name:
|
|
158
|
+
/* @__PURE__ */ d(W, { name: $, size: "s" }),
|
|
158
159
|
/* @__PURE__ */ d("span", { className: "sr-only", children: "Toggle sidebar" })
|
|
159
160
|
]
|
|
160
161
|
}
|
|
161
162
|
);
|
|
162
163
|
});
|
|
163
|
-
|
|
164
|
-
const
|
|
164
|
+
Z.displayName = "SidebarTrigger";
|
|
165
|
+
const H = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => {
|
|
165
166
|
const { toggleSidebar: o } = E();
|
|
166
167
|
return /* @__PURE__ */ d(
|
|
167
168
|
"button",
|
|
@@ -185,8 +186,8 @@ const Z = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => {
|
|
|
185
186
|
}
|
|
186
187
|
);
|
|
187
188
|
});
|
|
188
|
-
|
|
189
|
-
const
|
|
189
|
+
H.displayName = "SidebarRail";
|
|
190
|
+
const ee = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
190
191
|
"main",
|
|
191
192
|
{
|
|
192
193
|
ref: a,
|
|
@@ -198,8 +199,8 @@ const H = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PURE
|
|
|
198
199
|
...e
|
|
199
200
|
}
|
|
200
201
|
));
|
|
201
|
-
|
|
202
|
-
const
|
|
202
|
+
ee.displayName = "SidebarInset";
|
|
203
|
+
const re = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
203
204
|
"input",
|
|
204
205
|
{
|
|
205
206
|
ref: a,
|
|
@@ -211,8 +212,8 @@ const ee = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
211
212
|
...e
|
|
212
213
|
}
|
|
213
214
|
));
|
|
214
|
-
|
|
215
|
-
const
|
|
215
|
+
re.displayName = "SidebarInput";
|
|
216
|
+
const ae = /* @__PURE__ */ t.forwardRef(({ className: r, children: e, onOpenChange: a, shortcuts: o = ["⌘", "K"], ...i }, l) => /* @__PURE__ */ C(
|
|
216
217
|
"button",
|
|
217
218
|
{
|
|
218
219
|
ref: l,
|
|
@@ -229,8 +230,8 @@ const re = /* @__PURE__ */ t.forwardRef(({ className: r, children: e, onOpenChan
|
|
|
229
230
|
]
|
|
230
231
|
}
|
|
231
232
|
));
|
|
232
|
-
|
|
233
|
-
const
|
|
233
|
+
ae.displayName = "SidebarSearchButton";
|
|
234
|
+
const te = /* @__PURE__ */ t.forwardRef(({ className: r, onOpenChange: e, shortcuts: a = ["⌘", "K"], ...o }, i) => /* @__PURE__ */ d(
|
|
234
235
|
"button",
|
|
235
236
|
{
|
|
236
237
|
ref: i,
|
|
@@ -244,8 +245,8 @@ const ae = /* @__PURE__ */ t.forwardRef(({ className: r, onOpenChange: e, shortc
|
|
|
244
245
|
...o
|
|
245
246
|
}
|
|
246
247
|
));
|
|
247
|
-
|
|
248
|
-
const
|
|
248
|
+
te.displayName = "SidebarSearchTrigger";
|
|
249
|
+
const oe = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
249
250
|
"div",
|
|
250
251
|
{
|
|
251
252
|
ref: a,
|
|
@@ -254,8 +255,8 @@ const te = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
254
255
|
...e
|
|
255
256
|
}
|
|
256
257
|
));
|
|
257
|
-
|
|
258
|
-
const
|
|
258
|
+
oe.displayName = "SidebarHeader";
|
|
259
|
+
const de = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
259
260
|
"div",
|
|
260
261
|
{
|
|
261
262
|
ref: a,
|
|
@@ -264,8 +265,8 @@ const oe = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
264
265
|
...e
|
|
265
266
|
}
|
|
266
267
|
));
|
|
267
|
-
|
|
268
|
-
const
|
|
268
|
+
de.displayName = "SidebarFooter";
|
|
269
|
+
const se = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
269
270
|
F,
|
|
270
271
|
{
|
|
271
272
|
ref: a,
|
|
@@ -274,8 +275,8 @@ const de = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
274
275
|
...e
|
|
275
276
|
}
|
|
276
277
|
));
|
|
277
|
-
|
|
278
|
-
const
|
|
278
|
+
se.displayName = "SidebarSeparator";
|
|
279
|
+
const le = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
279
280
|
"div",
|
|
280
281
|
{
|
|
281
282
|
ref: a,
|
|
@@ -287,8 +288,8 @@ const se = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
287
288
|
...e
|
|
288
289
|
}
|
|
289
290
|
));
|
|
290
|
-
|
|
291
|
-
const
|
|
291
|
+
le.displayName = "SidebarContent";
|
|
292
|
+
const ie = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
292
293
|
"div",
|
|
293
294
|
{
|
|
294
295
|
ref: a,
|
|
@@ -297,8 +298,8 @@ const le = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
297
298
|
...e
|
|
298
299
|
}
|
|
299
300
|
));
|
|
300
|
-
|
|
301
|
-
const
|
|
301
|
+
ie.displayName = "SidebarGroup";
|
|
302
|
+
const ne = /* @__PURE__ */ t.forwardRef(({ className: r, asChild: e = !1, ...a }, o) => /* @__PURE__ */ d(
|
|
302
303
|
"div",
|
|
303
304
|
{
|
|
304
305
|
ref: o,
|
|
@@ -311,8 +312,8 @@ const ie = /* @__PURE__ */ t.forwardRef(({ className: r, asChild: e = !1, ...a }
|
|
|
311
312
|
...a
|
|
312
313
|
}
|
|
313
314
|
));
|
|
314
|
-
|
|
315
|
-
const
|
|
315
|
+
ne.displayName = "SidebarGroupLabel";
|
|
316
|
+
const ce = /* @__PURE__ */ t.forwardRef(({ className: r, asChild: e = !1, ...a }, o) => /* @__PURE__ */ d(
|
|
316
317
|
"button",
|
|
317
318
|
{
|
|
318
319
|
ref: o,
|
|
@@ -326,8 +327,8 @@ const ne = /* @__PURE__ */ t.forwardRef(({ className: r, asChild: e = !1, ...a }
|
|
|
326
327
|
...a
|
|
327
328
|
}
|
|
328
329
|
));
|
|
329
|
-
|
|
330
|
-
const
|
|
330
|
+
ce.displayName = "SidebarGroupAction";
|
|
331
|
+
const ue = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
331
332
|
"div",
|
|
332
333
|
{
|
|
333
334
|
ref: a,
|
|
@@ -336,8 +337,8 @@ const ce = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
336
337
|
...e
|
|
337
338
|
}
|
|
338
339
|
));
|
|
339
|
-
|
|
340
|
-
const
|
|
340
|
+
ue.displayName = "SidebarGroupContent";
|
|
341
|
+
const be = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
341
342
|
"ul",
|
|
342
343
|
{
|
|
343
344
|
ref: a,
|
|
@@ -346,8 +347,8 @@ const ue = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
346
347
|
...e
|
|
347
348
|
}
|
|
348
349
|
));
|
|
349
|
-
|
|
350
|
-
const
|
|
350
|
+
be.displayName = "SidebarMenu";
|
|
351
|
+
const pe = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
351
352
|
"li",
|
|
352
353
|
{
|
|
353
354
|
ref: a,
|
|
@@ -356,8 +357,8 @@ const be = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
356
357
|
...e
|
|
357
358
|
}
|
|
358
359
|
));
|
|
359
|
-
|
|
360
|
-
const
|
|
360
|
+
pe.displayName = "SidebarMenuItem";
|
|
361
|
+
const ve = P(
|
|
361
362
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-m px-2 py-1.5 text-left text-body-medium-md outline-none ring-[var(--color-border-focused)] transition-all duration-150 ease-in-out focus-visible:ring-2 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-[var(--color-background-blue-subtle-selected)] data-[active=true]:text-[var(--color-text-brand-bold-selected)] data-[state=open]:bg-[var(--color-surface-secondary)] group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:justify-center [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 data-[active=true]:[&>svg]:text-[var(--color-text-brand-bold-selected)] cursor-pointer",
|
|
362
363
|
{
|
|
363
364
|
variants: {
|
|
@@ -376,7 +377,7 @@ const pe = P(
|
|
|
376
377
|
size: "default"
|
|
377
378
|
}
|
|
378
379
|
}
|
|
379
|
-
),
|
|
380
|
+
), fe = /* @__PURE__ */ t.forwardRef(
|
|
380
381
|
({
|
|
381
382
|
asChild: r = !1,
|
|
382
383
|
isActive: e = !1,
|
|
@@ -418,7 +419,7 @@ const pe = P(
|
|
|
418
419
|
l && z(!1), h?.(k);
|
|
419
420
|
},
|
|
420
421
|
[l, h]
|
|
421
|
-
), L = t.useMemo(() => a !== "enhanced" ?
|
|
422
|
+
), L = t.useMemo(() => a !== "enhanced" ? ve({ variant: "default", size: o }) : s(
|
|
422
423
|
// Base button styles
|
|
423
424
|
"relative peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-m px-2 py-1.5 text-left text-body-medium-md outline-none ring-[var(--color-border-focused)] transition-all duration-150 ease-in-out focus-visible:ring-2 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 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 cursor-pointer z-2",
|
|
424
425
|
// Size variants
|
|
@@ -488,8 +489,8 @@ const pe = P(
|
|
|
488
489
|
] })) : T;
|
|
489
490
|
}
|
|
490
491
|
);
|
|
491
|
-
|
|
492
|
-
const
|
|
492
|
+
fe.displayName = "SidebarMenuButton";
|
|
493
|
+
const me = /* @__PURE__ */ t.forwardRef(({ className: r, showOnHover: e = !1, size: a = "m", ...o }, i) => /* @__PURE__ */ d(
|
|
493
494
|
O,
|
|
494
495
|
{
|
|
495
496
|
ref: i,
|
|
@@ -529,8 +530,8 @@ const fe = /* @__PURE__ */ t.forwardRef(({ className: r, showOnHover: e = !1, si
|
|
|
529
530
|
...o
|
|
530
531
|
}
|
|
531
532
|
));
|
|
532
|
-
|
|
533
|
-
const
|
|
533
|
+
me.displayName = "SidebarMenuAction";
|
|
534
|
+
const ge = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
534
535
|
"div",
|
|
535
536
|
{
|
|
536
537
|
ref: a,
|
|
@@ -547,8 +548,8 @@ const me = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
547
548
|
...e
|
|
548
549
|
}
|
|
549
550
|
));
|
|
550
|
-
|
|
551
|
-
const
|
|
551
|
+
ge.displayName = "SidebarMenuBadge";
|
|
552
|
+
const xe = /* @__PURE__ */ t.forwardRef(({ className: r, showIcon: e = !1, ...a }, o) => {
|
|
552
553
|
const i = t.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
553
554
|
return /* @__PURE__ */ C(
|
|
554
555
|
"div",
|
|
@@ -572,8 +573,8 @@ const ge = /* @__PURE__ */ t.forwardRef(({ className: r, showIcon: e = !1, ...a
|
|
|
572
573
|
}
|
|
573
574
|
);
|
|
574
575
|
});
|
|
575
|
-
|
|
576
|
-
const
|
|
576
|
+
xe.displayName = "SidebarMenuSkeleton";
|
|
577
|
+
const he = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
577
578
|
"ul",
|
|
578
579
|
{
|
|
579
580
|
ref: a,
|
|
@@ -586,10 +587,10 @@ const xe = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
586
587
|
...e
|
|
587
588
|
}
|
|
588
589
|
));
|
|
589
|
-
|
|
590
|
-
const
|
|
591
|
-
|
|
592
|
-
const
|
|
590
|
+
he.displayName = "SidebarMenuSub";
|
|
591
|
+
const ye = /* @__PURE__ */ t.forwardRef(({ ...r }, e) => /* @__PURE__ */ d("li", { ref: e, ...r }));
|
|
592
|
+
ye.displayName = "SidebarMenuSubItem";
|
|
593
|
+
const we = /* @__PURE__ */ t.forwardRef(({
|
|
593
594
|
asChild: r = !1,
|
|
594
595
|
size: e = "m",
|
|
595
596
|
isActive: a = !1,
|
|
@@ -678,32 +679,32 @@ const ye = /* @__PURE__ */ t.forwardRef(({
|
|
|
678
679
|
}
|
|
679
680
|
);
|
|
680
681
|
});
|
|
681
|
-
|
|
682
|
+
we.displayName = "SidebarMenuSubButton";
|
|
682
683
|
export {
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
684
|
+
Q as Sidebar,
|
|
685
|
+
le as SidebarContent,
|
|
686
|
+
de as SidebarFooter,
|
|
687
|
+
ie as SidebarGroup,
|
|
688
|
+
ce as SidebarGroupAction,
|
|
689
|
+
ue as SidebarGroupContent,
|
|
690
|
+
ne as SidebarGroupLabel,
|
|
691
|
+
oe as SidebarHeader,
|
|
692
|
+
re as SidebarInput,
|
|
693
|
+
ee as SidebarInset,
|
|
694
|
+
be as SidebarMenu,
|
|
695
|
+
me as SidebarMenuAction,
|
|
696
|
+
ge as SidebarMenuBadge,
|
|
697
|
+
fe as SidebarMenuButton,
|
|
698
|
+
pe as SidebarMenuItem,
|
|
699
|
+
xe as SidebarMenuSkeleton,
|
|
700
|
+
he as SidebarMenuSub,
|
|
701
|
+
we as SidebarMenuSubButton,
|
|
702
|
+
ye as SidebarMenuSubItem,
|
|
703
|
+
J as SidebarProvider,
|
|
704
|
+
H as SidebarRail,
|
|
705
|
+
ae as SidebarSearchButton,
|
|
706
|
+
te as SidebarSearchTrigger,
|
|
707
|
+
se as SidebarSeparator,
|
|
708
|
+
Z as SidebarTrigger,
|
|
708
709
|
E as useSidebar
|
|
709
710
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { Toaster as s } from "sonner";
|
|
3
|
-
import { toast as
|
|
3
|
+
import { toast as C } from "sonner";
|
|
4
4
|
import { cn as r } from "../../lib/utils.js";
|
|
5
5
|
import { Spinner as n } from "./spinner.js";
|
|
6
6
|
import { Icon as i } from "./icon.js";
|
|
7
|
+
import { CircleAlert as d, TriangleAlert as m, CircleCheck as v } from "lucide-react";
|
|
7
8
|
const a = ({ name: e, color: t, blurColor: c }) => /* @__PURE__ */ l("div", { className: "relative", children: [
|
|
8
9
|
c && /* @__PURE__ */ o(
|
|
9
10
|
"div",
|
|
@@ -16,15 +17,15 @@ const a = ({ name: e, color: t, blurColor: c }) => /* @__PURE__ */ l("div", { cl
|
|
|
16
17
|
}
|
|
17
18
|
),
|
|
18
19
|
/* @__PURE__ */ o(i, { name: e, size: "m", className: t })
|
|
19
|
-
] }),
|
|
20
|
+
] }), h = ({ className: e, ...t }) => /* @__PURE__ */ o(
|
|
20
21
|
s,
|
|
21
22
|
{
|
|
22
23
|
className: r("toaster group", e),
|
|
23
24
|
icons: {
|
|
24
25
|
loading: /* @__PURE__ */ o(n, { size: "m", variant: "primary", className: "mt-1" }),
|
|
25
|
-
success: /* @__PURE__ */ o(a, { name:
|
|
26
|
-
error: /* @__PURE__ */ o(a, { name:
|
|
27
|
-
warning: /* @__PURE__ */ o(a, { name:
|
|
26
|
+
success: /* @__PURE__ */ o(a, { name: v, color: "text-[var(--color-icon-success-bold)]", blurColor: "#1C741F" }),
|
|
27
|
+
error: /* @__PURE__ */ o(a, { name: m, color: "text-[var(--color-icon-error-bold)]", blurColor: "#D9493E" }),
|
|
28
|
+
warning: /* @__PURE__ */ o(a, { name: d, color: "text-[var(--color-icon-warning-bold)]", blurColor: "#E57F19" }),
|
|
28
29
|
info: null
|
|
29
30
|
},
|
|
30
31
|
toastOptions: {
|
|
@@ -103,6 +104,6 @@ const a = ({ name: e, color: t, blurColor: c }) => /* @__PURE__ */ l("div", { cl
|
|
|
103
104
|
}
|
|
104
105
|
);
|
|
105
106
|
export {
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
h as Toaster,
|
|
108
|
+
C as toast
|
|
108
109
|
};
|