@mesob/ui 0.2.0 → 0.2.1
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/components/alert-dialog.js +22 -22
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/alert.js +1 -1
- package/dist/components/alert.js.map +1 -1
- package/dist/components/animated-tabs.js +1 -1
- package/dist/components/animated-tabs.js.map +1 -1
- package/dist/components/app-header-actions.js +118 -103
- package/dist/components/app-header-actions.js.map +1 -1
- package/dist/components/app-sidebar.js +69 -69
- package/dist/components/app-sidebar.js.map +1 -1
- package/dist/components/button-group.js +1 -1
- package/dist/components/button-group.js.map +1 -1
- package/dist/components/button.d.ts +6 -3
- package/dist/components/button.js +16 -8
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar.js +24 -16
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/card.js +1 -1
- package/dist/components/card.js.map +1 -1
- package/dist/components/carousel.js +28 -20
- package/dist/components/carousel.js.map +1 -1
- package/dist/components/command.js +5 -5
- package/dist/components/command.js.map +1 -1
- package/dist/components/context-menu.js +2 -2
- package/dist/components/context-menu.js.map +1 -1
- package/dist/components/data-table/index.js +162 -153
- package/dist/components/data-table/index.js.map +1 -1
- package/dist/components/dialog.js +2 -2
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/drawer.js +2 -2
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.js +2 -2
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/entity/index.js +261 -256
- package/dist/components/entity/index.js.map +1 -1
- package/dist/components/hover-card.js +1 -1
- package/dist/components/hover-card.js.map +1 -1
- package/dist/components/input-group.js +27 -19
- package/dist/components/input-group.js.map +1 -1
- package/dist/components/item.d.ts +1 -1
- package/dist/components/menubar.js +3 -3
- package/dist/components/menubar.js.map +1 -1
- package/dist/components/navigation-menu.js +1 -1
- package/dist/components/navigation-menu.js.map +1 -1
- package/dist/components/page/index.js +36 -28
- package/dist/components/page/index.js.map +1 -1
- package/dist/components/pagination.js +20 -20
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/popover.js.map +1 -1
- package/dist/components/section/index.js +29 -21
- package/dist/components/section/index.js.map +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/select.js.map +1 -1
- package/dist/components/sheet.js +2 -2
- package/dist/components/sheet.js.map +1 -1
- package/dist/components/shell.js +44 -36
- package/dist/components/shell.js.map +1 -1
- package/dist/components/sidebar.js +83 -75
- package/dist/components/sidebar.js.map +1 -1
- package/dist/components/spotlight-search.js +67 -59
- package/dist/components/spotlight-search.js.map +1 -1
- package/dist/components/theme-toggle.js +21 -13
- package/dist/components/theme-toggle.js.map +1 -1
- package/dist/hooks/use-translation.js +3 -2
- package/dist/hooks/use-translation.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +94 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/theme-schema.d.ts +21 -0
- package/dist/lib/theme-schema.js +95 -0
- package/dist/lib/theme-schema.js.map +1 -0
- package/package.json +2 -5
- package/src/styles/globals.css +0 -130
|
@@ -10,18 +10,18 @@ function cn(...inputs) {
|
|
|
10
10
|
// src/components/button.tsx
|
|
11
11
|
import { Slot } from "@radix-ui/react-slot";
|
|
12
12
|
import { cva } from "class-variance-authority";
|
|
13
|
-
import {
|
|
13
|
+
import { jsxs } from "react/jsx-runtime";
|
|
14
14
|
var buttonVariants = cva(
|
|
15
15
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
16
16
|
{
|
|
17
17
|
variants: {
|
|
18
18
|
variant: {
|
|
19
|
-
default: "bg-primary text-primary-foreground hover:bg-primary
|
|
20
|
-
destructive: "bg-destructive text-
|
|
21
|
-
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
22
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary
|
|
19
|
+
default: "bg-primary text-primary-foreground hover:bg-primary-600 dark:hover:bg-primary-400",
|
|
20
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
|
|
21
|
+
outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
22
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary-600 dark:hover:bg-secondary-400",
|
|
23
23
|
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
24
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
24
|
+
link: "text-primary underline-offset-4 hover:text-primary-600 dark:hover:text-primary-400 hover:underline"
|
|
25
25
|
},
|
|
26
26
|
size: {
|
|
27
27
|
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
@@ -43,23 +43,31 @@ function Button({
|
|
|
43
43
|
variant,
|
|
44
44
|
size,
|
|
45
45
|
asChild = false,
|
|
46
|
+
leftIcon,
|
|
47
|
+
rightIcon,
|
|
48
|
+
children,
|
|
46
49
|
...props
|
|
47
50
|
}) {
|
|
48
51
|
const Comp = asChild ? Slot : "button";
|
|
49
|
-
return /* @__PURE__ */
|
|
52
|
+
return /* @__PURE__ */ jsxs(
|
|
50
53
|
Comp,
|
|
51
54
|
{
|
|
52
55
|
"data-slot": "button",
|
|
53
56
|
className: cn(buttonVariants({ variant, size, className })),
|
|
54
|
-
...props
|
|
57
|
+
...props,
|
|
58
|
+
children: [
|
|
59
|
+
leftIcon,
|
|
60
|
+
children,
|
|
61
|
+
rightIcon
|
|
62
|
+
]
|
|
55
63
|
}
|
|
56
64
|
);
|
|
57
65
|
}
|
|
58
66
|
|
|
59
67
|
// src/components/input.tsx
|
|
60
|
-
import { jsx
|
|
68
|
+
import { jsx } from "react/jsx-runtime";
|
|
61
69
|
function Input({ className, type, ...props }) {
|
|
62
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ jsx(
|
|
63
71
|
"input",
|
|
64
72
|
{
|
|
65
73
|
type,
|
|
@@ -77,14 +85,14 @@ function Input({ className, type, ...props }) {
|
|
|
77
85
|
|
|
78
86
|
// src/components/separator.tsx
|
|
79
87
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
80
|
-
import { jsx as
|
|
88
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
81
89
|
function Separator({
|
|
82
90
|
className,
|
|
83
91
|
orientation = "horizontal",
|
|
84
92
|
decorative = true,
|
|
85
93
|
...props
|
|
86
94
|
}) {
|
|
87
|
-
return /* @__PURE__ */
|
|
95
|
+
return /* @__PURE__ */ jsx2(
|
|
88
96
|
SeparatorPrimitive.Root,
|
|
89
97
|
{
|
|
90
98
|
"data-slot": "separator",
|
|
@@ -102,25 +110,25 @@ function Separator({
|
|
|
102
110
|
// src/components/sheet.tsx
|
|
103
111
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
104
112
|
import { IconX } from "@tabler/icons-react";
|
|
105
|
-
import { jsx as
|
|
113
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
106
114
|
function Sheet({ ...props }) {
|
|
107
|
-
return /* @__PURE__ */
|
|
115
|
+
return /* @__PURE__ */ jsx3(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
108
116
|
}
|
|
109
117
|
function SheetPortal({
|
|
110
118
|
...props
|
|
111
119
|
}) {
|
|
112
|
-
return /* @__PURE__ */
|
|
120
|
+
return /* @__PURE__ */ jsx3(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
113
121
|
}
|
|
114
122
|
function SheetOverlay({
|
|
115
123
|
className,
|
|
116
124
|
...props
|
|
117
125
|
}) {
|
|
118
|
-
return /* @__PURE__ */
|
|
126
|
+
return /* @__PURE__ */ jsx3(
|
|
119
127
|
SheetPrimitive.Overlay,
|
|
120
128
|
{
|
|
121
129
|
"data-slot": "sheet-overlay",
|
|
122
130
|
className: cn(
|
|
123
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-
|
|
131
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=open]:opacity-100 fixed inset-0 z-50 bg-[var(--overlay,oklch(0_0_0/0.5))]",
|
|
124
132
|
className
|
|
125
133
|
),
|
|
126
134
|
...props
|
|
@@ -133,14 +141,14 @@ function SheetContent({
|
|
|
133
141
|
side = "right",
|
|
134
142
|
...props
|
|
135
143
|
}) {
|
|
136
|
-
return /* @__PURE__ */
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
/* @__PURE__ */
|
|
144
|
+
return /* @__PURE__ */ jsxs2(SheetPortal, { children: [
|
|
145
|
+
/* @__PURE__ */ jsx3(SheetOverlay, {}),
|
|
146
|
+
/* @__PURE__ */ jsxs2(
|
|
139
147
|
SheetPrimitive.Content,
|
|
140
148
|
{
|
|
141
149
|
"data-slot": "sheet-content",
|
|
142
150
|
className: cn(
|
|
143
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-
|
|
151
|
+
"bg-background text-foreground border-border data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:opacity-100 fixed z-[51] flex min-w-0 flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
144
152
|
side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
145
153
|
side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
146
154
|
side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
@@ -150,9 +158,9 @@ function SheetContent({
|
|
|
150
158
|
...props,
|
|
151
159
|
children: [
|
|
152
160
|
children,
|
|
153
|
-
/* @__PURE__ */
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ jsxs2(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
162
|
+
/* @__PURE__ */ jsx3(IconX, { className: "size-4" }),
|
|
163
|
+
/* @__PURE__ */ jsx3("span", { className: "sr-only", children: "Close" })
|
|
156
164
|
] })
|
|
157
165
|
]
|
|
158
166
|
}
|
|
@@ -160,7 +168,7 @@ function SheetContent({
|
|
|
160
168
|
] });
|
|
161
169
|
}
|
|
162
170
|
function SheetHeader({ className, ...props }) {
|
|
163
|
-
return /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ jsx3(
|
|
164
172
|
"div",
|
|
165
173
|
{
|
|
166
174
|
"data-slot": "sheet-header",
|
|
@@ -173,7 +181,7 @@ function SheetTitle({
|
|
|
173
181
|
className,
|
|
174
182
|
...props
|
|
175
183
|
}) {
|
|
176
|
-
return /* @__PURE__ */
|
|
184
|
+
return /* @__PURE__ */ jsx3(
|
|
177
185
|
SheetPrimitive.Title,
|
|
178
186
|
{
|
|
179
187
|
"data-slot": "sheet-title",
|
|
@@ -186,7 +194,7 @@ function SheetDescription({
|
|
|
186
194
|
className,
|
|
187
195
|
...props
|
|
188
196
|
}) {
|
|
189
|
-
return /* @__PURE__ */
|
|
197
|
+
return /* @__PURE__ */ jsx3(
|
|
190
198
|
SheetPrimitive.Description,
|
|
191
199
|
{
|
|
192
200
|
"data-slot": "sheet-description",
|
|
@@ -197,9 +205,9 @@ function SheetDescription({
|
|
|
197
205
|
}
|
|
198
206
|
|
|
199
207
|
// src/components/skeleton.tsx
|
|
200
|
-
import { jsx as
|
|
208
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
201
209
|
function Skeleton({ className, ...props }) {
|
|
202
|
-
return /* @__PURE__ */
|
|
210
|
+
return /* @__PURE__ */ jsx4(
|
|
203
211
|
"div",
|
|
204
212
|
{
|
|
205
213
|
"data-slot": "skeleton",
|
|
@@ -211,12 +219,12 @@ function Skeleton({ className, ...props }) {
|
|
|
211
219
|
|
|
212
220
|
// src/components/tooltip.tsx
|
|
213
221
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
214
|
-
import { jsx as
|
|
222
|
+
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
215
223
|
function TooltipProvider({
|
|
216
224
|
delayDuration = 0,
|
|
217
225
|
...props
|
|
218
226
|
}) {
|
|
219
|
-
return /* @__PURE__ */
|
|
227
|
+
return /* @__PURE__ */ jsx5(
|
|
220
228
|
TooltipPrimitive.Provider,
|
|
221
229
|
{
|
|
222
230
|
"data-slot": "tooltip-provider",
|
|
@@ -229,12 +237,12 @@ function Tooltip({
|
|
|
229
237
|
children,
|
|
230
238
|
...props
|
|
231
239
|
}) {
|
|
232
|
-
return /* @__PURE__ */
|
|
240
|
+
return /* @__PURE__ */ jsx5(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props, children });
|
|
233
241
|
}
|
|
234
242
|
function TooltipTrigger({
|
|
235
243
|
...props
|
|
236
244
|
}) {
|
|
237
|
-
return /* @__PURE__ */
|
|
245
|
+
return /* @__PURE__ */ jsx5(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
238
246
|
}
|
|
239
247
|
function TooltipContent({
|
|
240
248
|
className,
|
|
@@ -242,7 +250,7 @@ function TooltipContent({
|
|
|
242
250
|
children,
|
|
243
251
|
...props
|
|
244
252
|
}) {
|
|
245
|
-
return /* @__PURE__ */
|
|
253
|
+
return /* @__PURE__ */ jsx5(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs3(
|
|
246
254
|
TooltipPrimitive.Content,
|
|
247
255
|
{
|
|
248
256
|
"data-slot": "tooltip-content",
|
|
@@ -254,7 +262,7 @@ function TooltipContent({
|
|
|
254
262
|
...props,
|
|
255
263
|
children: [
|
|
256
264
|
children,
|
|
257
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ jsx5(TooltipPrimitive.Arrow, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
258
266
|
]
|
|
259
267
|
}
|
|
260
268
|
) });
|
|
@@ -284,7 +292,7 @@ import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
|
284
292
|
import { IconMenu2 } from "@tabler/icons-react";
|
|
285
293
|
import { cva as cva2 } from "class-variance-authority";
|
|
286
294
|
import * as React2 from "react";
|
|
287
|
-
import { jsx as
|
|
295
|
+
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
288
296
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
289
297
|
var SIDEBAR_WIDTH_COOKIE = "sidebar_width";
|
|
290
298
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
@@ -375,7 +383,7 @@ function SidebarProvider({
|
|
|
375
383
|
maxWidth: SIDEBAR_WIDTH_MAX
|
|
376
384
|
};
|
|
377
385
|
const sidebarWidthValue = open ? `${width}px` : SIDEBAR_WIDTH;
|
|
378
|
-
return /* @__PURE__ */
|
|
386
|
+
return /* @__PURE__ */ jsx6(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx6(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx6(
|
|
379
387
|
"div",
|
|
380
388
|
{
|
|
381
389
|
"data-slot": "sidebar-wrapper",
|
|
@@ -403,7 +411,7 @@ function Sidebar({
|
|
|
403
411
|
}) {
|
|
404
412
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
405
413
|
if (collapsible === "none") {
|
|
406
|
-
return /* @__PURE__ */
|
|
414
|
+
return /* @__PURE__ */ jsx6(
|
|
407
415
|
"div",
|
|
408
416
|
{
|
|
409
417
|
"data-slot": "sidebar",
|
|
@@ -417,7 +425,7 @@ function Sidebar({
|
|
|
417
425
|
);
|
|
418
426
|
}
|
|
419
427
|
if (isMobile) {
|
|
420
|
-
return /* @__PURE__ */
|
|
428
|
+
return /* @__PURE__ */ jsx6(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs4(
|
|
421
429
|
SheetContent,
|
|
422
430
|
{
|
|
423
431
|
"data-sidebar": "sidebar",
|
|
@@ -429,16 +437,16 @@ function Sidebar({
|
|
|
429
437
|
},
|
|
430
438
|
side,
|
|
431
439
|
children: [
|
|
432
|
-
/* @__PURE__ */
|
|
433
|
-
/* @__PURE__ */
|
|
434
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ jsxs4(SheetHeader, { className: "sr-only", children: [
|
|
441
|
+
/* @__PURE__ */ jsx6(SheetTitle, { children: "Sidebar" }),
|
|
442
|
+
/* @__PURE__ */ jsx6(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
435
443
|
] }),
|
|
436
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ jsx6("div", { className: "flex h-full w-full flex-col", children })
|
|
437
445
|
]
|
|
438
446
|
}
|
|
439
447
|
) });
|
|
440
448
|
}
|
|
441
|
-
return /* @__PURE__ */
|
|
449
|
+
return /* @__PURE__ */ jsxs4(
|
|
442
450
|
"div",
|
|
443
451
|
{
|
|
444
452
|
className: "group peer text-sidebar-foreground hidden md:block",
|
|
@@ -448,7 +456,7 @@ function Sidebar({
|
|
|
448
456
|
"data-side": side,
|
|
449
457
|
"data-slot": "sidebar",
|
|
450
458
|
children: [
|
|
451
|
-
/* @__PURE__ */
|
|
459
|
+
/* @__PURE__ */ jsx6(
|
|
452
460
|
"div",
|
|
453
461
|
{
|
|
454
462
|
"data-slot": "sidebar-gap",
|
|
@@ -460,7 +468,7 @@ function Sidebar({
|
|
|
460
468
|
)
|
|
461
469
|
}
|
|
462
470
|
),
|
|
463
|
-
/* @__PURE__ */
|
|
471
|
+
/* @__PURE__ */ jsx6(
|
|
464
472
|
"div",
|
|
465
473
|
{
|
|
466
474
|
"data-slot": "sidebar-container",
|
|
@@ -472,7 +480,7 @@ function Sidebar({
|
|
|
472
480
|
className
|
|
473
481
|
),
|
|
474
482
|
...props,
|
|
475
|
-
children: /* @__PURE__ */
|
|
483
|
+
children: /* @__PURE__ */ jsx6(
|
|
476
484
|
"div",
|
|
477
485
|
{
|
|
478
486
|
"data-sidebar": "sidebar",
|
|
@@ -493,7 +501,7 @@ function SidebarTrigger({
|
|
|
493
501
|
...props
|
|
494
502
|
}) {
|
|
495
503
|
const { toggleSidebar } = useSidebar();
|
|
496
|
-
return /* @__PURE__ */
|
|
504
|
+
return /* @__PURE__ */ jsxs4(
|
|
497
505
|
Button,
|
|
498
506
|
{
|
|
499
507
|
"data-sidebar": "trigger",
|
|
@@ -507,15 +515,15 @@ function SidebarTrigger({
|
|
|
507
515
|
},
|
|
508
516
|
...props,
|
|
509
517
|
children: [
|
|
510
|
-
/* @__PURE__ */
|
|
511
|
-
/* @__PURE__ */
|
|
518
|
+
/* @__PURE__ */ jsx6(IconMenu2, {}),
|
|
519
|
+
/* @__PURE__ */ jsx6("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
512
520
|
]
|
|
513
521
|
}
|
|
514
522
|
);
|
|
515
523
|
}
|
|
516
524
|
function SidebarRail({ className, ...props }) {
|
|
517
525
|
const { toggleSidebar } = useSidebar();
|
|
518
|
-
return /* @__PURE__ */
|
|
526
|
+
return /* @__PURE__ */ jsx6(
|
|
519
527
|
"button",
|
|
520
528
|
{
|
|
521
529
|
"data-sidebar": "rail",
|
|
@@ -538,7 +546,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
538
546
|
);
|
|
539
547
|
}
|
|
540
548
|
function SidebarInset({ className, ...props }) {
|
|
541
|
-
return /* @__PURE__ */
|
|
549
|
+
return /* @__PURE__ */ jsx6(
|
|
542
550
|
"main",
|
|
543
551
|
{
|
|
544
552
|
"data-slot": "sidebar-inset",
|
|
@@ -555,7 +563,7 @@ function SidebarInput({
|
|
|
555
563
|
className,
|
|
556
564
|
...props
|
|
557
565
|
}) {
|
|
558
|
-
return /* @__PURE__ */
|
|
566
|
+
return /* @__PURE__ */ jsx6(
|
|
559
567
|
Input,
|
|
560
568
|
{
|
|
561
569
|
"data-slot": "sidebar-input",
|
|
@@ -566,7 +574,7 @@ function SidebarInput({
|
|
|
566
574
|
);
|
|
567
575
|
}
|
|
568
576
|
function SidebarHeader({ className, ...props }) {
|
|
569
|
-
return /* @__PURE__ */
|
|
577
|
+
return /* @__PURE__ */ jsx6(
|
|
570
578
|
"div",
|
|
571
579
|
{
|
|
572
580
|
"data-slot": "sidebar-header",
|
|
@@ -577,7 +585,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
577
585
|
);
|
|
578
586
|
}
|
|
579
587
|
function SidebarFooter({ className, ...props }) {
|
|
580
|
-
return /* @__PURE__ */
|
|
588
|
+
return /* @__PURE__ */ jsx6(
|
|
581
589
|
"div",
|
|
582
590
|
{
|
|
583
591
|
"data-slot": "sidebar-footer",
|
|
@@ -591,7 +599,7 @@ function SidebarSeparator({
|
|
|
591
599
|
className,
|
|
592
600
|
...props
|
|
593
601
|
}) {
|
|
594
|
-
return /* @__PURE__ */
|
|
602
|
+
return /* @__PURE__ */ jsx6(
|
|
595
603
|
Separator,
|
|
596
604
|
{
|
|
597
605
|
"data-slot": "sidebar-separator",
|
|
@@ -602,7 +610,7 @@ function SidebarSeparator({
|
|
|
602
610
|
);
|
|
603
611
|
}
|
|
604
612
|
function SidebarContent({ className, ...props }) {
|
|
605
|
-
return /* @__PURE__ */
|
|
613
|
+
return /* @__PURE__ */ jsx6(
|
|
606
614
|
"div",
|
|
607
615
|
{
|
|
608
616
|
"data-slot": "sidebar-content",
|
|
@@ -616,7 +624,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
616
624
|
);
|
|
617
625
|
}
|
|
618
626
|
function SidebarGroup({ className, ...props }) {
|
|
619
|
-
return /* @__PURE__ */
|
|
627
|
+
return /* @__PURE__ */ jsx6(
|
|
620
628
|
"div",
|
|
621
629
|
{
|
|
622
630
|
"data-slot": "sidebar-group",
|
|
@@ -632,7 +640,7 @@ function SidebarGroupLabel({
|
|
|
632
640
|
...props
|
|
633
641
|
}) {
|
|
634
642
|
const Comp = asChild ? Slot2 : "div";
|
|
635
|
-
return /* @__PURE__ */
|
|
643
|
+
return /* @__PURE__ */ jsx6(
|
|
636
644
|
Comp,
|
|
637
645
|
{
|
|
638
646
|
"data-slot": "sidebar-group-label",
|
|
@@ -652,7 +660,7 @@ function SidebarGroupAction({
|
|
|
652
660
|
...props
|
|
653
661
|
}) {
|
|
654
662
|
const Comp = asChild ? Slot2 : "button";
|
|
655
|
-
return /* @__PURE__ */
|
|
663
|
+
return /* @__PURE__ */ jsx6(
|
|
656
664
|
Comp,
|
|
657
665
|
{
|
|
658
666
|
"data-slot": "sidebar-group-action",
|
|
@@ -672,7 +680,7 @@ function SidebarGroupContent({
|
|
|
672
680
|
className,
|
|
673
681
|
...props
|
|
674
682
|
}) {
|
|
675
|
-
return /* @__PURE__ */
|
|
683
|
+
return /* @__PURE__ */ jsx6(
|
|
676
684
|
"div",
|
|
677
685
|
{
|
|
678
686
|
"data-slot": "sidebar-group-content",
|
|
@@ -683,7 +691,7 @@ function SidebarGroupContent({
|
|
|
683
691
|
);
|
|
684
692
|
}
|
|
685
693
|
function SidebarMenu({ className, ...props }) {
|
|
686
|
-
return /* @__PURE__ */
|
|
694
|
+
return /* @__PURE__ */ jsx6(
|
|
687
695
|
"ul",
|
|
688
696
|
{
|
|
689
697
|
"data-slot": "sidebar-menu",
|
|
@@ -694,7 +702,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
694
702
|
);
|
|
695
703
|
}
|
|
696
704
|
function SidebarMenuItem({ className, ...props }) {
|
|
697
|
-
return /* @__PURE__ */
|
|
705
|
+
return /* @__PURE__ */ jsx6(
|
|
698
706
|
"li",
|
|
699
707
|
{
|
|
700
708
|
"data-slot": "sidebar-menu-item",
|
|
@@ -735,7 +743,7 @@ function SidebarMenuButton({
|
|
|
735
743
|
}) {
|
|
736
744
|
const Comp = asChild ? Slot2 : "button";
|
|
737
745
|
const { isMobile, state } = useSidebar();
|
|
738
|
-
const button = /* @__PURE__ */
|
|
746
|
+
const button = /* @__PURE__ */ jsx6(
|
|
739
747
|
Comp,
|
|
740
748
|
{
|
|
741
749
|
"data-slot": "sidebar-menu-button",
|
|
@@ -754,9 +762,9 @@ function SidebarMenuButton({
|
|
|
754
762
|
children: tooltip
|
|
755
763
|
};
|
|
756
764
|
}
|
|
757
|
-
return /* @__PURE__ */
|
|
758
|
-
/* @__PURE__ */
|
|
759
|
-
/* @__PURE__ */
|
|
765
|
+
return /* @__PURE__ */ jsxs4(Tooltip, { children: [
|
|
766
|
+
/* @__PURE__ */ jsx6(TooltipTrigger, { asChild: true, children: button }),
|
|
767
|
+
/* @__PURE__ */ jsx6(
|
|
760
768
|
TooltipContent,
|
|
761
769
|
{
|
|
762
770
|
side: "right",
|
|
@@ -774,7 +782,7 @@ function SidebarMenuAction({
|
|
|
774
782
|
...props
|
|
775
783
|
}) {
|
|
776
784
|
const Comp = asChild ? Slot2 : "button";
|
|
777
|
-
return /* @__PURE__ */
|
|
785
|
+
return /* @__PURE__ */ jsx6(
|
|
778
786
|
Comp,
|
|
779
787
|
{
|
|
780
788
|
"data-slot": "sidebar-menu-action",
|
|
@@ -798,7 +806,7 @@ function SidebarMenuBadge({
|
|
|
798
806
|
className,
|
|
799
807
|
...props
|
|
800
808
|
}) {
|
|
801
|
-
return /* @__PURE__ */
|
|
809
|
+
return /* @__PURE__ */ jsx6(
|
|
802
810
|
"div",
|
|
803
811
|
{
|
|
804
812
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -824,7 +832,7 @@ function SidebarMenuSkeleton({
|
|
|
824
832
|
const [width] = React2.useState(
|
|
825
833
|
() => `${Math.floor(Math.random() * 40) + 50}%`
|
|
826
834
|
);
|
|
827
|
-
return /* @__PURE__ */
|
|
835
|
+
return /* @__PURE__ */ jsxs4(
|
|
828
836
|
"div",
|
|
829
837
|
{
|
|
830
838
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -832,14 +840,14 @@ function SidebarMenuSkeleton({
|
|
|
832
840
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
833
841
|
...props,
|
|
834
842
|
children: [
|
|
835
|
-
showIcon && /* @__PURE__ */
|
|
843
|
+
showIcon && /* @__PURE__ */ jsx6(
|
|
836
844
|
Skeleton,
|
|
837
845
|
{
|
|
838
846
|
className: "size-4 rounded-md",
|
|
839
847
|
"data-sidebar": "menu-skeleton-icon"
|
|
840
848
|
}
|
|
841
849
|
),
|
|
842
|
-
/* @__PURE__ */
|
|
850
|
+
/* @__PURE__ */ jsx6(
|
|
843
851
|
Skeleton,
|
|
844
852
|
{
|
|
845
853
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -854,7 +862,7 @@ function SidebarMenuSkeleton({
|
|
|
854
862
|
);
|
|
855
863
|
}
|
|
856
864
|
function SidebarMenuSub({ className, ...props }) {
|
|
857
|
-
return /* @__PURE__ */
|
|
865
|
+
return /* @__PURE__ */ jsx6(
|
|
858
866
|
"ul",
|
|
859
867
|
{
|
|
860
868
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -872,7 +880,7 @@ function SidebarMenuSubItem({
|
|
|
872
880
|
className,
|
|
873
881
|
...props
|
|
874
882
|
}) {
|
|
875
|
-
return /* @__PURE__ */
|
|
883
|
+
return /* @__PURE__ */ jsx6(
|
|
876
884
|
"li",
|
|
877
885
|
{
|
|
878
886
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -890,7 +898,7 @@ function SidebarMenuSubButton({
|
|
|
890
898
|
...props
|
|
891
899
|
}) {
|
|
892
900
|
const Comp = asChild ? Slot2 : "a";
|
|
893
|
-
return /* @__PURE__ */
|
|
901
|
+
return /* @__PURE__ */ jsx6(
|
|
894
902
|
Comp,
|
|
895
903
|
{
|
|
896
904
|
"data-slot": "sidebar-menu-sub-button",
|