@szum-tech/design-system 3.15.0 → 3.17.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/{chunk-PTZVUZNQ.cjs → chunk-35H6T7OQ.cjs} +562 -5
- package/dist/{chunk-3MH6P44N.js → chunk-3DP3VMPN.js} +1 -1
- package/dist/{chunk-6X26XC6P.cjs → chunk-5B37TQYT.cjs} +4 -3
- package/dist/{chunk-XJIUGEPN.js → chunk-A72LE53B.js} +1 -1
- package/dist/{chunk-OH323B3O.js → chunk-AAPMLWYK.js} +537 -5
- package/dist/{chunk-UIOBJSKZ.cjs → chunk-DUAM4RTP.cjs} +1 -1
- package/dist/{chunk-XY3ZNUWR.cjs → chunk-F7NFSDOD.cjs} +17 -4
- package/dist/{chunk-DTYX7CYN.cjs → chunk-HPICKLBZ.cjs} +2 -2
- package/dist/chunk-I3E75OQX.js +16 -0
- package/dist/chunk-KTAIBRTH.cjs +10 -0
- package/dist/{chunk-KGGCA634.js → chunk-L2TRMQNN.js} +1 -1
- package/dist/chunk-NXEZE7LG.js +15 -0
- package/dist/chunk-OXZQGDTR.js +208 -0
- package/dist/{chunk-4IGU5SVP.js → chunk-P4IL77YC.js} +16 -4
- package/dist/{chunk-CAIAZGSW.cjs → chunk-RKFU4DS3.cjs} +2 -2
- package/dist/chunk-SHPJGB2L.cjs +19 -0
- package/dist/{chunk-CFJ44JVK.cjs → chunk-UNOMGKAZ.cjs} +2 -2
- package/dist/{chunk-Q2MJKFIE.js → chunk-WCQ5WKCQ.js} +1 -1
- package/dist/chunk-X7WREEFD.js +8 -0
- package/dist/chunk-YBFG2IRJ.cjs +225 -0
- package/dist/components/badge-overflow/index.cjs +2 -2
- package/dist/components/badge-overflow/index.js +1 -1
- package/dist/components/breadcrump/index.cjs +80 -0
- package/dist/components/breadcrump/index.d.cts +21 -0
- package/dist/components/breadcrump/index.d.ts +21 -0
- package/dist/components/breadcrump/index.js +72 -0
- package/dist/components/button/index.cjs +22 -19
- package/dist/components/button/index.js +21 -18
- package/dist/components/carousel/index.cjs +23 -20
- package/dist/components/carousel/index.js +21 -18
- package/dist/components/collapsible/index.cjs +18 -0
- package/dist/components/collapsible/index.d.cts +12 -0
- package/dist/components/collapsible/index.d.ts +12 -0
- package/dist/components/collapsible/index.js +1 -0
- package/dist/components/color-picker/index.cjs +32 -29
- package/dist/components/color-picker/index.js +21 -18
- package/dist/components/dropdown-menu/index.cjs +71 -0
- package/dist/components/dropdown-menu/index.d.cts +67 -0
- package/dist/components/dropdown-menu/index.d.ts +67 -0
- package/dist/components/dropdown-menu/index.js +2 -0
- package/dist/components/field/index.cjs +12 -12
- package/dist/components/field/index.js +2 -2
- package/dist/components/header/index.cjs +3 -2
- package/dist/components/header/index.d.cts +11 -2
- package/dist/components/header/index.d.ts +11 -2
- package/dist/components/header/index.js +2 -1
- package/dist/components/index.cjs +346 -163
- package/dist/components/index.d.cts +6 -1
- package/dist/components/index.d.ts +6 -1
- package/dist/components/index.js +21 -18
- package/dist/components/item/index.cjs +12 -12
- package/dist/components/item/index.js +2 -2
- package/dist/components/masonry/index.cjs +4 -4
- package/dist/components/masonry/index.js +2 -2
- package/dist/components/separator/index.cjs +2 -2
- package/dist/components/separator/index.js +1 -1
- package/dist/components/sidebar/index.cjs +148 -0
- package/dist/components/sidebar/index.d.cts +135 -0
- package/dist/components/sidebar/index.d.ts +135 -0
- package/dist/components/sidebar/index.js +43 -0
- package/dist/components/skeleton/index.cjs +11 -0
- package/dist/components/skeleton/index.d.cts +7 -0
- package/dist/components/skeleton/index.d.ts +7 -0
- package/dist/components/skeleton/index.js +2 -0
- package/dist/components/stepper/index.cjs +40 -37
- package/dist/components/stepper/index.js +21 -18
- package/dist/components/timeline/index.cjs +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toaster/index.cjs +23 -20
- package/dist/components/toaster/index.js +21 -18
- package/dist/components/tooltip/index.d.cts +2 -4
- package/dist/components/tooltip/index.d.ts +2 -4
- package/dist/hooks/index.cjs +8 -4
- package/dist/hooks/index.d.cts +3 -1
- package/dist/hooks/index.d.ts +3 -1
- package/dist/hooks/index.js +1 -1
- package/dist/tooltip-content-DqtogPBq.d.cts +8 -0
- package/dist/tooltip-content-DqtogPBq.d.ts +8 -0
- package/package.json +1 -1
- package/dist/chunk-VT5GDGZJ.js +0 -15
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tooltip, TooltipTrigger, TooltipContent } from './chunk-U7XZJQ4O.js';
|
|
2
2
|
import { Spinner } from './chunk-P5IUC7HJ.js';
|
|
3
|
-
import {
|
|
3
|
+
import { useDirection, useComposedRefs as useComposedRefs$1 } from './chunk-VK2FJ65F.js';
|
|
4
4
|
import { Select, SelectContent, SelectItem } from './chunk-XKCLVPUC.js';
|
|
5
|
+
import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetDescription } from './chunk-H5NHGMSQ.js';
|
|
6
|
+
import { Skeleton } from './chunk-X7WREEFD.js';
|
|
5
7
|
import { Input } from './chunk-S3ZUFD6U.js';
|
|
6
|
-
import {
|
|
8
|
+
import { Popover, PopoverTrigger, PopoverContent } from './chunk-IZU3KULT.js';
|
|
9
|
+
import { Separator } from './chunk-A72LE53B.js';
|
|
10
|
+
import { useComposedRefs, useIsMobile } from './chunk-P4IL77YC.js';
|
|
7
11
|
import { useLazyRef, useAsRef, useIsomorphicLayoutEffect } from './chunk-G24PWQKG.js';
|
|
8
12
|
import { cn } from './chunk-ZD2QRAOX.js';
|
|
9
13
|
import * as React16 from 'react';
|
|
10
14
|
import { Slot as Slot$1 } from '@radix-ui/react-slot';
|
|
11
15
|
import { Direction, Slot, Slider } from 'radix-ui';
|
|
12
16
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
13
|
-
import { PipetteIcon, OctagonXIcon, TriangleAlertIcon, InfoIcon, CircleCheckIcon } from 'lucide-react';
|
|
17
|
+
import { PipetteIcon, OctagonXIcon, TriangleAlertIcon, InfoIcon, CircleCheckIcon, PanelLeftIcon } from 'lucide-react';
|
|
14
18
|
import { cva } from 'class-variance-authority';
|
|
15
19
|
import { Toaster as Toaster$1 } from 'sonner';
|
|
16
20
|
export { toast } from 'sonner';
|
|
@@ -2183,6 +2187,534 @@ var Toaster = ({ theme = "system", ...props }) => {
|
|
|
2183
2187
|
}
|
|
2184
2188
|
);
|
|
2185
2189
|
};
|
|
2190
|
+
|
|
2191
|
+
// src/components/sidebar/sidebar.constants.ts
|
|
2192
|
+
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
2193
|
+
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
2194
|
+
var SIDEBAR_WIDTH = "16rem";
|
|
2195
|
+
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2196
|
+
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2197
|
+
var SIDEBAR_ROOT_NAME = "SidebarProvider";
|
|
2198
|
+
var SidebarContext = React16.createContext(null);
|
|
2199
|
+
function useSidebarContext(consumerName) {
|
|
2200
|
+
const context = React16.useContext(SidebarContext);
|
|
2201
|
+
if (!context) {
|
|
2202
|
+
throw new Error(`\`${consumerName}\` must be used within \`${SIDEBAR_ROOT_NAME}\``);
|
|
2203
|
+
}
|
|
2204
|
+
return context;
|
|
2205
|
+
}
|
|
2206
|
+
function useSidebar() {
|
|
2207
|
+
return useSidebarContext("useSidebar");
|
|
2208
|
+
}
|
|
2209
|
+
function SidebarProvider({
|
|
2210
|
+
defaultOpen = true,
|
|
2211
|
+
open: openProp,
|
|
2212
|
+
onOpenChange: setOpenProp,
|
|
2213
|
+
className,
|
|
2214
|
+
style,
|
|
2215
|
+
children,
|
|
2216
|
+
...props
|
|
2217
|
+
}) {
|
|
2218
|
+
const isMobile = useIsMobile();
|
|
2219
|
+
const [openMobile, setOpenMobile] = React16.useState(false);
|
|
2220
|
+
const [_open, _setOpen] = React16.useState(defaultOpen);
|
|
2221
|
+
const open = openProp ?? _open;
|
|
2222
|
+
const setOpen = React16.useCallback(
|
|
2223
|
+
(value) => {
|
|
2224
|
+
const openState = typeof value === "function" ? value(open) : value;
|
|
2225
|
+
if (setOpenProp) {
|
|
2226
|
+
setOpenProp(openState);
|
|
2227
|
+
} else {
|
|
2228
|
+
_setOpen(openState);
|
|
2229
|
+
}
|
|
2230
|
+
document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
|
2231
|
+
},
|
|
2232
|
+
[setOpenProp, open]
|
|
2233
|
+
);
|
|
2234
|
+
const toggleSidebar = React16.useCallback(() => {
|
|
2235
|
+
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
2236
|
+
}, [isMobile, setOpen, setOpenMobile]);
|
|
2237
|
+
React16.useEffect(() => {
|
|
2238
|
+
const handleKeyDown = (event) => {
|
|
2239
|
+
if (event.key === "b" && (event.metaKey || event.ctrlKey)) {
|
|
2240
|
+
event.preventDefault();
|
|
2241
|
+
toggleSidebar();
|
|
2242
|
+
}
|
|
2243
|
+
};
|
|
2244
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
2245
|
+
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
2246
|
+
}, [toggleSidebar]);
|
|
2247
|
+
const state = open ? "expanded" : "collapsed";
|
|
2248
|
+
const contextValue = React16.useMemo(
|
|
2249
|
+
() => ({ state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar }),
|
|
2250
|
+
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
2251
|
+
);
|
|
2252
|
+
return /* @__PURE__ */ jsx(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
2253
|
+
"div",
|
|
2254
|
+
{
|
|
2255
|
+
"data-slot": "sidebar-wrapper",
|
|
2256
|
+
style: {
|
|
2257
|
+
"--sidebar-width": SIDEBAR_WIDTH,
|
|
2258
|
+
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
2259
|
+
...style
|
|
2260
|
+
},
|
|
2261
|
+
className: cn("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", className),
|
|
2262
|
+
...props,
|
|
2263
|
+
children
|
|
2264
|
+
}
|
|
2265
|
+
) });
|
|
2266
|
+
}
|
|
2267
|
+
function Sidebar({
|
|
2268
|
+
side = "left",
|
|
2269
|
+
variant = "sidebar",
|
|
2270
|
+
collapsible = "offcanvas",
|
|
2271
|
+
className,
|
|
2272
|
+
children,
|
|
2273
|
+
dir,
|
|
2274
|
+
...props
|
|
2275
|
+
}) {
|
|
2276
|
+
const { isMobile, state, openMobile, setOpenMobile } = useSidebarContext("Sidebar");
|
|
2277
|
+
if (collapsible === "none") {
|
|
2278
|
+
return /* @__PURE__ */ jsx(
|
|
2279
|
+
"div",
|
|
2280
|
+
{
|
|
2281
|
+
"data-slot": "sidebar",
|
|
2282
|
+
className: cn("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className),
|
|
2283
|
+
...props,
|
|
2284
|
+
children
|
|
2285
|
+
}
|
|
2286
|
+
);
|
|
2287
|
+
}
|
|
2288
|
+
if (isMobile) {
|
|
2289
|
+
return /* @__PURE__ */ jsx(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs(
|
|
2290
|
+
SheetContent,
|
|
2291
|
+
{
|
|
2292
|
+
dir,
|
|
2293
|
+
"data-sidebar": "sidebar",
|
|
2294
|
+
"data-slot": "sidebar",
|
|
2295
|
+
"data-mobile": "true",
|
|
2296
|
+
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0",
|
|
2297
|
+
style: { "--sidebar-width": SIDEBAR_WIDTH_MOBILE },
|
|
2298
|
+
side,
|
|
2299
|
+
showCloseButton: false,
|
|
2300
|
+
children: [
|
|
2301
|
+
/* @__PURE__ */ jsxs(SheetHeader, { className: "sr-only", children: [
|
|
2302
|
+
/* @__PURE__ */ jsx(SheetTitle, { children: "Sidebar" }),
|
|
2303
|
+
/* @__PURE__ */ jsx(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
2304
|
+
] }),
|
|
2305
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-full w-full flex-col", children })
|
|
2306
|
+
]
|
|
2307
|
+
}
|
|
2308
|
+
) });
|
|
2309
|
+
}
|
|
2310
|
+
return /* @__PURE__ */ jsxs(
|
|
2311
|
+
"div",
|
|
2312
|
+
{
|
|
2313
|
+
className: "group peer text-sidebar-foreground hidden md:block",
|
|
2314
|
+
"data-state": state,
|
|
2315
|
+
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
2316
|
+
"data-variant": variant,
|
|
2317
|
+
"data-side": side,
|
|
2318
|
+
"data-slot": "sidebar",
|
|
2319
|
+
children: [
|
|
2320
|
+
/* @__PURE__ */ jsx(
|
|
2321
|
+
"div",
|
|
2322
|
+
{
|
|
2323
|
+
"data-slot": "sidebar-gap",
|
|
2324
|
+
className: cn(
|
|
2325
|
+
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
2326
|
+
"group-data-[collapsible=offcanvas]:w-0",
|
|
2327
|
+
"group-data-[side=right]:rotate-180",
|
|
2328
|
+
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
|
|
2329
|
+
)
|
|
2330
|
+
}
|
|
2331
|
+
),
|
|
2332
|
+
/* @__PURE__ */ jsx(
|
|
2333
|
+
"div",
|
|
2334
|
+
{
|
|
2335
|
+
"data-slot": "sidebar-container",
|
|
2336
|
+
"data-side": side,
|
|
2337
|
+
className: cn(
|
|
2338
|
+
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",
|
|
2339
|
+
variant === "floating" || variant === "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",
|
|
2340
|
+
className
|
|
2341
|
+
),
|
|
2342
|
+
...props,
|
|
2343
|
+
children: /* @__PURE__ */ jsx(
|
|
2344
|
+
"div",
|
|
2345
|
+
{
|
|
2346
|
+
"data-sidebar": "sidebar",
|
|
2347
|
+
"data-slot": "sidebar-inner",
|
|
2348
|
+
className: "bg-sidebar group-data-[variant=floating]:ring-sidebar-border flex size-full flex-col group-data-[variant=floating]:rounded group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1",
|
|
2349
|
+
children
|
|
2350
|
+
}
|
|
2351
|
+
)
|
|
2352
|
+
}
|
|
2353
|
+
)
|
|
2354
|
+
]
|
|
2355
|
+
}
|
|
2356
|
+
);
|
|
2357
|
+
}
|
|
2358
|
+
function SidebarTrigger({ className, onClick, ...props }) {
|
|
2359
|
+
const { toggleSidebar } = useSidebarContext("SidebarTrigger");
|
|
2360
|
+
return /* @__PURE__ */ jsxs(
|
|
2361
|
+
Button,
|
|
2362
|
+
{
|
|
2363
|
+
"data-sidebar": "trigger",
|
|
2364
|
+
"data-slot": "sidebar-trigger",
|
|
2365
|
+
variant: "ghost",
|
|
2366
|
+
size: "icon-sm",
|
|
2367
|
+
className: cn(className),
|
|
2368
|
+
onClick: (event) => {
|
|
2369
|
+
onClick?.(event);
|
|
2370
|
+
toggleSidebar();
|
|
2371
|
+
},
|
|
2372
|
+
...props,
|
|
2373
|
+
children: [
|
|
2374
|
+
/* @__PURE__ */ jsx(PanelLeftIcon, { className: "cn-rtl-flip" }),
|
|
2375
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
2376
|
+
]
|
|
2377
|
+
}
|
|
2378
|
+
);
|
|
2379
|
+
}
|
|
2380
|
+
function SidebarRail({ className, ...props }) {
|
|
2381
|
+
const { toggleSidebar } = useSidebarContext("SidebarRail");
|
|
2382
|
+
return /* @__PURE__ */ jsx(
|
|
2383
|
+
"button",
|
|
2384
|
+
{
|
|
2385
|
+
"data-sidebar": "rail",
|
|
2386
|
+
"data-slot": "sidebar-rail",
|
|
2387
|
+
"aria-label": "Toggle Sidebar",
|
|
2388
|
+
tabIndex: -1,
|
|
2389
|
+
onClick: toggleSidebar,
|
|
2390
|
+
title: "Toggle Sidebar",
|
|
2391
|
+
className: cn(
|
|
2392
|
+
"hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2",
|
|
2393
|
+
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
2394
|
+
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
2395
|
+
"hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",
|
|
2396
|
+
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
2397
|
+
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
2398
|
+
className
|
|
2399
|
+
),
|
|
2400
|
+
...props
|
|
2401
|
+
}
|
|
2402
|
+
);
|
|
2403
|
+
}
|
|
2404
|
+
function SidebarInset({ className, ...props }) {
|
|
2405
|
+
return /* @__PURE__ */ jsx(
|
|
2406
|
+
"main",
|
|
2407
|
+
{
|
|
2408
|
+
"data-slot": "sidebar-inset",
|
|
2409
|
+
className: cn(
|
|
2410
|
+
"bg-background relative flex w-full flex-1 flex-col md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
|
|
2411
|
+
className
|
|
2412
|
+
),
|
|
2413
|
+
...props
|
|
2414
|
+
}
|
|
2415
|
+
);
|
|
2416
|
+
}
|
|
2417
|
+
function SidebarInput({ className, ...props }) {
|
|
2418
|
+
return /* @__PURE__ */ jsx(
|
|
2419
|
+
Input,
|
|
2420
|
+
{
|
|
2421
|
+
"data-slot": "sidebar-input",
|
|
2422
|
+
"data-sidebar": "input",
|
|
2423
|
+
className: cn("bg-background h-8 w-full shadow-none", className),
|
|
2424
|
+
...props
|
|
2425
|
+
}
|
|
2426
|
+
);
|
|
2427
|
+
}
|
|
2428
|
+
function SidebarHeader({ className, ...props }) {
|
|
2429
|
+
return /* @__PURE__ */ jsx(
|
|
2430
|
+
"div",
|
|
2431
|
+
{
|
|
2432
|
+
"data-slot": "sidebar-header",
|
|
2433
|
+
"data-sidebar": "header",
|
|
2434
|
+
className: cn("flex flex-col gap-2 p-2", className),
|
|
2435
|
+
...props
|
|
2436
|
+
}
|
|
2437
|
+
);
|
|
2438
|
+
}
|
|
2439
|
+
function SidebarFooter({ className, ...props }) {
|
|
2440
|
+
return /* @__PURE__ */ jsx(
|
|
2441
|
+
"div",
|
|
2442
|
+
{
|
|
2443
|
+
"data-slot": "sidebar-footer",
|
|
2444
|
+
"data-sidebar": "footer",
|
|
2445
|
+
className: cn("flex flex-col gap-2 p-2", className),
|
|
2446
|
+
...props
|
|
2447
|
+
}
|
|
2448
|
+
);
|
|
2449
|
+
}
|
|
2450
|
+
function SidebarSeparator({ className, ...props }) {
|
|
2451
|
+
return /* @__PURE__ */ jsx(
|
|
2452
|
+
Separator,
|
|
2453
|
+
{
|
|
2454
|
+
"data-slot": "sidebar-separator",
|
|
2455
|
+
"data-sidebar": "separator",
|
|
2456
|
+
className: cn("bg-sidebar-border mx-2 w-auto", className),
|
|
2457
|
+
...props
|
|
2458
|
+
}
|
|
2459
|
+
);
|
|
2460
|
+
}
|
|
2461
|
+
function SidebarContent({ className, ...props }) {
|
|
2462
|
+
return /* @__PURE__ */ jsx(
|
|
2463
|
+
"div",
|
|
2464
|
+
{
|
|
2465
|
+
"data-slot": "sidebar-content",
|
|
2466
|
+
"data-sidebar": "content",
|
|
2467
|
+
className: cn(
|
|
2468
|
+
"no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
2469
|
+
className
|
|
2470
|
+
),
|
|
2471
|
+
...props
|
|
2472
|
+
}
|
|
2473
|
+
);
|
|
2474
|
+
}
|
|
2475
|
+
function SidebarGroup({ className, ...props }) {
|
|
2476
|
+
return /* @__PURE__ */ jsx(
|
|
2477
|
+
"div",
|
|
2478
|
+
{
|
|
2479
|
+
"data-slot": "sidebar-group",
|
|
2480
|
+
"data-sidebar": "group",
|
|
2481
|
+
className: cn("relative flex w-full min-w-0 flex-col p-2", className),
|
|
2482
|
+
...props
|
|
2483
|
+
}
|
|
2484
|
+
);
|
|
2485
|
+
}
|
|
2486
|
+
function SidebarGroupLabel({ className, asChild = false, ...props }) {
|
|
2487
|
+
const Comp = asChild ? Slot$1 : "div";
|
|
2488
|
+
return /* @__PURE__ */ jsx(
|
|
2489
|
+
Comp,
|
|
2490
|
+
{
|
|
2491
|
+
"data-slot": "sidebar-group-label",
|
|
2492
|
+
"data-sidebar": "group-label",
|
|
2493
|
+
className: cn(
|
|
2494
|
+
"text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2495
|
+
className
|
|
2496
|
+
),
|
|
2497
|
+
...props
|
|
2498
|
+
}
|
|
2499
|
+
);
|
|
2500
|
+
}
|
|
2501
|
+
function SidebarGroupAction({ className, asChild = false, ...props }) {
|
|
2502
|
+
const Comp = asChild ? Slot$1 : "button";
|
|
2503
|
+
return /* @__PURE__ */ jsx(
|
|
2504
|
+
Comp,
|
|
2505
|
+
{
|
|
2506
|
+
"data-slot": "sidebar-group-action",
|
|
2507
|
+
"data-sidebar": "group-action",
|
|
2508
|
+
className: cn(
|
|
2509
|
+
"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 p-0 outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2510
|
+
className
|
|
2511
|
+
),
|
|
2512
|
+
...props
|
|
2513
|
+
}
|
|
2514
|
+
);
|
|
2515
|
+
}
|
|
2516
|
+
function SidebarGroupContent({ className, ...props }) {
|
|
2517
|
+
return /* @__PURE__ */ jsx(
|
|
2518
|
+
"div",
|
|
2519
|
+
{
|
|
2520
|
+
"data-slot": "sidebar-group-content",
|
|
2521
|
+
"data-sidebar": "group-content",
|
|
2522
|
+
className: cn("w-full text-sm", className),
|
|
2523
|
+
...props
|
|
2524
|
+
}
|
|
2525
|
+
);
|
|
2526
|
+
}
|
|
2527
|
+
function SidebarMenu({ className, ...props }) {
|
|
2528
|
+
return /* @__PURE__ */ jsx(
|
|
2529
|
+
"ul",
|
|
2530
|
+
{
|
|
2531
|
+
"data-slot": "sidebar-menu",
|
|
2532
|
+
"data-sidebar": "menu",
|
|
2533
|
+
className: cn("flex w-full min-w-0 flex-col gap-0", className),
|
|
2534
|
+
...props
|
|
2535
|
+
}
|
|
2536
|
+
);
|
|
2537
|
+
}
|
|
2538
|
+
function SidebarMenuItem({ className, ...props }) {
|
|
2539
|
+
return /* @__PURE__ */ jsx(
|
|
2540
|
+
"li",
|
|
2541
|
+
{
|
|
2542
|
+
"data-slot": "sidebar-menu-item",
|
|
2543
|
+
"data-sidebar": "menu-item",
|
|
2544
|
+
className: cn("group/menu-item relative", className),
|
|
2545
|
+
...props
|
|
2546
|
+
}
|
|
2547
|
+
);
|
|
2548
|
+
}
|
|
2549
|
+
var sidebarMenuButtonVariants = cva(
|
|
2550
|
+
[
|
|
2551
|
+
"peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded p-2 text-left text-sm ring-sidebar-ring 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! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>span:last-child]:truncate",
|
|
2552
|
+
"disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50",
|
|
2553
|
+
"active:bg-sidebar-accent active:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground",
|
|
2554
|
+
"data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground",
|
|
2555
|
+
"[&_svg]:size-4 [&_svg]:shrink-0"
|
|
2556
|
+
],
|
|
2557
|
+
{
|
|
2558
|
+
variants: {
|
|
2559
|
+
variant: {
|
|
2560
|
+
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
2561
|
+
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))]"
|
|
2562
|
+
},
|
|
2563
|
+
size: {
|
|
2564
|
+
default: "h-8 text-sm",
|
|
2565
|
+
sm: "h-7 text-xs",
|
|
2566
|
+
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
|
|
2567
|
+
}
|
|
2568
|
+
},
|
|
2569
|
+
defaultVariants: {
|
|
2570
|
+
variant: "default",
|
|
2571
|
+
size: "default"
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
);
|
|
2575
|
+
function SidebarMenuButton({
|
|
2576
|
+
asChild = false,
|
|
2577
|
+
isActive = false,
|
|
2578
|
+
variant = "default",
|
|
2579
|
+
size = "default",
|
|
2580
|
+
tooltip,
|
|
2581
|
+
className,
|
|
2582
|
+
...props
|
|
2583
|
+
}) {
|
|
2584
|
+
const Comp = asChild ? Slot$1 : "button";
|
|
2585
|
+
const { isMobile, state } = useSidebarContext("SidebarMenuButton");
|
|
2586
|
+
const button = /* @__PURE__ */ jsx(
|
|
2587
|
+
Comp,
|
|
2588
|
+
{
|
|
2589
|
+
"data-slot": "sidebar-menu-button",
|
|
2590
|
+
"data-sidebar": "menu-button",
|
|
2591
|
+
"data-size": size,
|
|
2592
|
+
"data-active": isActive,
|
|
2593
|
+
className: cn(sidebarMenuButtonVariants({ variant, size }), className),
|
|
2594
|
+
...props
|
|
2595
|
+
}
|
|
2596
|
+
);
|
|
2597
|
+
if (!tooltip) {
|
|
2598
|
+
return button;
|
|
2599
|
+
}
|
|
2600
|
+
if (typeof tooltip === "string") {
|
|
2601
|
+
tooltip = { children: tooltip };
|
|
2602
|
+
}
|
|
2603
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
2604
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: button }),
|
|
2605
|
+
/* @__PURE__ */ jsx(TooltipContent, { side: "right", align: "center", hidden: state !== "collapsed" || isMobile, ...tooltip })
|
|
2606
|
+
] });
|
|
2607
|
+
}
|
|
2608
|
+
function SidebarMenuAction({
|
|
2609
|
+
className,
|
|
2610
|
+
asChild = false,
|
|
2611
|
+
showOnHover = false,
|
|
2612
|
+
...props
|
|
2613
|
+
}) {
|
|
2614
|
+
const Comp = asChild ? Slot$1 : "button";
|
|
2615
|
+
return /* @__PURE__ */ jsx(
|
|
2616
|
+
Comp,
|
|
2617
|
+
{
|
|
2618
|
+
"data-slot": "sidebar-menu-action",
|
|
2619
|
+
"data-sidebar": "menu-action",
|
|
2620
|
+
className: cn(
|
|
2621
|
+
"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 p-0 outline-hidden transition-transform group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2622
|
+
showOnHover && "peer-data-active/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 aria-expanded:opacity-100 md:opacity-0",
|
|
2623
|
+
className
|
|
2624
|
+
),
|
|
2625
|
+
...props
|
|
2626
|
+
}
|
|
2627
|
+
);
|
|
2628
|
+
}
|
|
2629
|
+
function SidebarMenuBadge({ className, ...props }) {
|
|
2630
|
+
return /* @__PURE__ */ jsx(
|
|
2631
|
+
"div",
|
|
2632
|
+
{
|
|
2633
|
+
"data-slot": "sidebar-menu-badge",
|
|
2634
|
+
"data-sidebar": "menu-badge",
|
|
2635
|
+
className: cn(
|
|
2636
|
+
"text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-active/menu-button:text-sidebar-accent-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 group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1",
|
|
2637
|
+
className
|
|
2638
|
+
),
|
|
2639
|
+
...props
|
|
2640
|
+
}
|
|
2641
|
+
);
|
|
2642
|
+
}
|
|
2643
|
+
function SidebarMenuSkeleton({ className, showIcon = false, ...props }) {
|
|
2644
|
+
const [width] = React16.useState(() => {
|
|
2645
|
+
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
2646
|
+
});
|
|
2647
|
+
return /* @__PURE__ */ jsxs(
|
|
2648
|
+
"div",
|
|
2649
|
+
{
|
|
2650
|
+
"data-slot": "sidebar-menu-skeleton",
|
|
2651
|
+
"data-sidebar": "menu-skeleton",
|
|
2652
|
+
className: cn("flex h-8 items-center gap-2 rounded px-2", className),
|
|
2653
|
+
...props,
|
|
2654
|
+
children: [
|
|
2655
|
+
showIcon && /* @__PURE__ */ jsx(Skeleton, { className: "size-4 rounded", "data-sidebar": "menu-skeleton-icon" }),
|
|
2656
|
+
/* @__PURE__ */ jsx(
|
|
2657
|
+
Skeleton,
|
|
2658
|
+
{
|
|
2659
|
+
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
2660
|
+
"data-sidebar": "menu-skeleton-text",
|
|
2661
|
+
style: {
|
|
2662
|
+
"--skeleton-width": width
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2665
|
+
)
|
|
2666
|
+
]
|
|
2667
|
+
}
|
|
2668
|
+
);
|
|
2669
|
+
}
|
|
2670
|
+
function SidebarMenuSub({ className, ...props }) {
|
|
2671
|
+
return /* @__PURE__ */ jsx(
|
|
2672
|
+
"ul",
|
|
2673
|
+
{
|
|
2674
|
+
"data-slot": "sidebar-menu-sub",
|
|
2675
|
+
"data-sidebar": "menu-sub",
|
|
2676
|
+
className: cn(
|
|
2677
|
+
"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 group-data-[collapsible=icon]:hidden",
|
|
2678
|
+
className
|
|
2679
|
+
),
|
|
2680
|
+
...props
|
|
2681
|
+
}
|
|
2682
|
+
);
|
|
2683
|
+
}
|
|
2684
|
+
function SidebarMenuSubItem({ className, ...props }) {
|
|
2685
|
+
return /* @__PURE__ */ jsx(
|
|
2686
|
+
"li",
|
|
2687
|
+
{
|
|
2688
|
+
"data-slot": "sidebar-menu-sub-item",
|
|
2689
|
+
"data-sidebar": "menu-sub-item",
|
|
2690
|
+
className: cn("group/menu-sub-item relative", className),
|
|
2691
|
+
...props
|
|
2692
|
+
}
|
|
2693
|
+
);
|
|
2694
|
+
}
|
|
2695
|
+
function SidebarMenuSubButton({
|
|
2696
|
+
asChild = false,
|
|
2697
|
+
size = "md",
|
|
2698
|
+
isActive = false,
|
|
2699
|
+
className,
|
|
2700
|
+
...props
|
|
2701
|
+
}) {
|
|
2702
|
+
const Comp = asChild ? Slot$1 : "a";
|
|
2703
|
+
return /* @__PURE__ */ jsx(
|
|
2704
|
+
Comp,
|
|
2705
|
+
{
|
|
2706
|
+
"data-slot": "sidebar-menu-sub-button",
|
|
2707
|
+
"data-sidebar": "menu-sub-button",
|
|
2708
|
+
"data-size": size,
|
|
2709
|
+
"data-active": isActive,
|
|
2710
|
+
className: cn(
|
|
2711
|
+
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-[state=active]:bg-sidebar-accent data-[state=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 px-2 outline-hidden group-data-[collapsible=icon]:hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2712
|
+
className
|
|
2713
|
+
),
|
|
2714
|
+
...props
|
|
2715
|
+
}
|
|
2716
|
+
);
|
|
2717
|
+
}
|
|
2186
2718
|
var buttonVariants = cva(
|
|
2187
2719
|
[
|
|
2188
2720
|
"inline-flex shrink-0 items-center justify-center gap-2 rounded text-sm font-medium whitespace-nowrap transition-all outline-none",
|
|
@@ -2296,4 +2828,4 @@ function ButtonContent({
|
|
|
2296
2828
|
] });
|
|
2297
2829
|
}
|
|
2298
2830
|
|
|
2299
|
-
export { Button, ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerContent, ColorPickerEyeDropper, ColorPickerFormatSelect, ColorPickerHueSlider, ColorPickerInput, ColorPickerSwatch, ColorPickerTrigger, Stepper, StepperActivationMode, StepperContent, StepperDataState, StepperDescription, StepperFocusIntent, StepperIndicator, StepperItem, StepperNav, StepperNavigationDirection, StepperNextTrigger, StepperOrientation, StepperPanel, StepperPrevTrigger, StepperTitle, StepperTrigger, Toaster, useColorPickerStore, useStepperContext, useStepperFocusContext, useStepperItemContext };
|
|
2831
|
+
export { Button, ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerContent, ColorPickerEyeDropper, ColorPickerFormatSelect, ColorPickerHueSlider, ColorPickerInput, ColorPickerSwatch, ColorPickerTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Stepper, StepperActivationMode, StepperContent, StepperDataState, StepperDescription, StepperFocusIntent, StepperIndicator, StepperItem, StepperNav, StepperNavigationDirection, StepperNextTrigger, StepperOrientation, StepperPanel, StepperPrevTrigger, StepperTitle, StepperTrigger, Toaster, useColorPickerStore, useSidebar, useSidebarContext, useStepperContext, useStepperFocusContext, useStepperItemContext };
|
|
@@ -12,7 +12,7 @@ function Separator({ className, orientation = "horizontal", decorative = false,
|
|
|
12
12
|
decorative,
|
|
13
13
|
orientation,
|
|
14
14
|
className: chunkH2BWO3SI_cjs.cn(
|
|
15
|
-
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:
|
|
15
|
+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
|
|
16
16
|
className
|
|
17
17
|
),
|
|
18
18
|
...props
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var React3 = require('react');
|
|
4
4
|
|
|
5
5
|
function _interopNamespace(e) {
|
|
6
6
|
if (e && e.__esModule) return e;
|
|
@@ -20,11 +20,11 @@ function _interopNamespace(e) {
|
|
|
20
20
|
return Object.freeze(n);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
|
|
24
24
|
|
|
25
25
|
// src/hooks/use-validation-log.tsx
|
|
26
26
|
function useValidationLog({ check, scope, message }) {
|
|
27
|
-
|
|
27
|
+
React3__namespace.useEffect(() => {
|
|
28
28
|
if (!check) {
|
|
29
29
|
console.error(
|
|
30
30
|
`%c[Szum Tech-Design System]%c
|
|
@@ -70,9 +70,22 @@ function composeRefs(...refs) {
|
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
function useComposedRefs(...refs) {
|
|
73
|
-
return
|
|
73
|
+
return React3__namespace.useCallback(composeRefs(...refs), refs);
|
|
74
|
+
}
|
|
75
|
+
var MOBILE_BREAKPOINT = 768;
|
|
76
|
+
function useIsMobile() {
|
|
77
|
+
const [isMobile, setIsMobile] = React3__namespace.useState(void 0);
|
|
78
|
+
React3__namespace.useEffect(() => {
|
|
79
|
+
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
80
|
+
const onChange = () => setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
81
|
+
mql.addEventListener("change", onChange);
|
|
82
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
83
|
+
return () => mql.removeEventListener("change", onChange);
|
|
84
|
+
}, []);
|
|
85
|
+
return !!isMobile;
|
|
74
86
|
}
|
|
75
87
|
|
|
76
88
|
exports.composeRefs = composeRefs;
|
|
77
89
|
exports.useComposedRefs = useComposedRefs;
|
|
90
|
+
exports.useIsMobile = useIsMobile;
|
|
78
91
|
exports.useValidationLog = useValidationLog;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDUAM4RTP_cjs = require('./chunk-DUAM4RTP.cjs');
|
|
4
4
|
var chunkS3ANEJJ7_cjs = require('./chunk-S3ANEJJ7.cjs');
|
|
5
5
|
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
6
6
|
var classVarianceAuthority = require('class-variance-authority');
|
|
@@ -151,7 +151,7 @@ function FieldSeparator({ children, className, ...props }) {
|
|
|
151
151
|
className: chunkH2BWO3SI_cjs.cn("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", className),
|
|
152
152
|
...props,
|
|
153
153
|
children: [
|
|
154
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
154
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkDUAM4RTP_cjs.Separator, { className: "absolute inset-0 top-1/2" }),
|
|
155
155
|
children ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
156
156
|
"span",
|
|
157
157
|
{
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { cn } from './chunk-ZD2QRAOX.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
function Header({ children, variant = "container", ...props }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(
|
|
6
|
+
"header",
|
|
7
|
+
{
|
|
8
|
+
"data-slot": "header",
|
|
9
|
+
className: "border-border/40 bg-background/95 supports-backdrop-filter:bg-background/60 sticky top-0 z-50 w-full border-b backdrop-blur",
|
|
10
|
+
...props,
|
|
11
|
+
children: /* @__PURE__ */ jsx("div", { className: cn("flex h-16 items-center", variant === "container" ? "container" : "w-full px-4 sm:px-8"), children })
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { Header };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
|
|
6
|
+
function Skeleton({ className, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "skeleton", className: chunkH2BWO3SI_cjs.cn("bg-muted animate-pulse rounded-md", className), ...props });
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
exports.Skeleton = Skeleton;
|