@akira-io/ui 1.1.0 → 1.1.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/blocks.d.ts +25 -25
- package/dist/blocks.js +74 -59
- package/dist/blocks.js.map +1 -1
- package/dist/{button-B6wQRe7p.d.ts → button-Bj6My68b.d.ts} +2 -1
- package/dist/{chunk-JAHTUAQL.js → chunk-2WIIRDHT.js} +5 -4
- package/dist/chunk-2WIIRDHT.js.map +1 -0
- package/dist/{chunk-KYWA5UYN.js → chunk-4SOQAVUP.js} +5 -5
- package/dist/{chunk-KYWA5UYN.js.map → chunk-4SOQAVUP.js.map} +1 -1
- package/dist/{chunk-UUTXPPRN.js → chunk-CFDDAFPJ.js} +125 -82
- package/dist/chunk-CFDDAFPJ.js.map +1 -0
- package/dist/{chunk-LKSM3WLK.js → chunk-FWQFB37J.js} +6 -5
- package/dist/chunk-FWQFB37J.js.map +1 -0
- package/dist/{chunk-DSD7MVLL.js → chunk-ODYCBCKS.js} +10 -7
- package/dist/chunk-ODYCBCKS.js.map +1 -0
- package/dist/{chunk-MNGNBEYN.js → chunk-QHZWW55M.js} +245 -156
- package/dist/chunk-QHZWW55M.js.map +1 -0
- package/dist/{chunk-SA5LM2GD.js → chunk-RPCL7VFQ.js} +41 -20
- package/dist/chunk-RPCL7VFQ.js.map +1 -0
- package/dist/{chunk-6QM5BA7B.js → chunk-T2INZOCM.js} +40 -23
- package/dist/chunk-T2INZOCM.js.map +1 -0
- package/dist/{chunk-UUEWFCKT.js → chunk-TGF54WAO.js} +6 -5
- package/dist/chunk-TGF54WAO.js.map +1 -0
- package/dist/{chunk-6X4TKSF6.js → chunk-XZCC6MTE.js} +11 -6
- package/dist/chunk-XZCC6MTE.js.map +1 -0
- package/dist/code.d.ts +5 -2
- package/dist/code.js +51 -52
- package/dist/code.js.map +1 -1
- package/dist/{context-VgHq4U98.d.ts → context-YWbxMH0C.d.ts} +26 -27
- package/dist/editor.d.ts +8 -6
- package/dist/editor.js +32 -18
- package/dist/editor.js.map +1 -1
- package/dist/index.d.ts +229 -229
- package/dist/index.js +431 -325
- package/dist/index.js.map +1 -1
- package/dist/inertia.d.ts +1 -1
- package/dist/inertia.js +5 -5
- package/dist/input-Dpi7pXeR.d.ts +6 -0
- package/dist/{json-viewer-BTHBACj9.d.ts → json-viewer-BARA2RCW.d.ts} +3 -2
- package/dist/locales/pt.d.ts +8 -8
- package/dist/{password-input-r39y2pCT.d.ts → password-input-DcXX7SG9.d.ts} +8 -7
- package/dist/shells.d.ts +7 -7
- package/dist/shells.js +10 -9
- package/dist/shells.js.map +1 -1
- package/dist/sidebar-DqkFRUxQ.d.ts +81 -0
- package/dist/{types-CT0rBsFc.d.ts → types-B-eGPoFD.d.ts} +3 -2
- package/dist/{types-B4QS3h5p.d.ts → types-cmBL8zOc.d.ts} +4 -1
- package/package.json +3 -3
- package/dist/chunk-6QM5BA7B.js.map +0 -1
- package/dist/chunk-6X4TKSF6.js.map +0 -1
- package/dist/chunk-DSD7MVLL.js.map +0 -1
- package/dist/chunk-JAHTUAQL.js.map +0 -1
- package/dist/chunk-LKSM3WLK.js.map +0 -1
- package/dist/chunk-MNGNBEYN.js.map +0 -1
- package/dist/chunk-SA5LM2GD.js.map +0 -1
- package/dist/chunk-UUEWFCKT.js.map +0 -1
- package/dist/chunk-UUTXPPRN.js.map +0 -1
- package/dist/input-4uxAHW6y.d.ts +0 -5
- package/dist/sidebar-BhOIlSjt.d.ts +0 -80
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Separator } from './chunk-
|
|
2
|
-
import { Input } from './chunk-
|
|
3
|
-
import { cn, menuSurface, focusRing, floatingSurface, Button } from './chunk-
|
|
1
|
+
import { Separator } from './chunk-TGF54WAO.js';
|
|
2
|
+
import { Input } from './chunk-XZCC6MTE.js';
|
|
3
|
+
import { cn, menuSurface, focusRing, floatingSurface, Button } from './chunk-ODYCBCKS.js';
|
|
4
4
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
5
5
|
import { CheckIcon, CircleIcon, ChevronRightIcon, ChevronRight, MoreHorizontal, XIcon, PanelLeftIcon } from 'lucide-react';
|
|
6
6
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -15,85 +15,73 @@ import { cva } from 'class-variance-authority';
|
|
|
15
15
|
|
|
16
16
|
function DropdownMenu({
|
|
17
17
|
modal = false,
|
|
18
|
+
slotName = "dropdown-menu",
|
|
18
19
|
...props
|
|
19
20
|
}) {
|
|
20
21
|
return /* @__PURE__ */ jsx(
|
|
21
22
|
DropdownMenuPrimitive.Root,
|
|
22
23
|
{
|
|
23
|
-
"data-slot": "dropdown-menu",
|
|
24
24
|
modal,
|
|
25
|
-
...props
|
|
25
|
+
...props,
|
|
26
|
+
"data-slot": slotName
|
|
26
27
|
}
|
|
27
28
|
);
|
|
28
29
|
}
|
|
29
30
|
function DropdownMenuPortal({
|
|
31
|
+
slotName = "dropdown-menu-portal",
|
|
30
32
|
...props
|
|
31
33
|
}) {
|
|
32
|
-
return /* @__PURE__ */ jsx(
|
|
33
|
-
DropdownMenuPrimitive.Portal,
|
|
34
|
-
{
|
|
35
|
-
"data-slot": "dropdown-menu-portal",
|
|
36
|
-
...props
|
|
37
|
-
}
|
|
38
|
-
);
|
|
34
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { ...props, "data-slot": slotName });
|
|
39
35
|
}
|
|
40
36
|
function DropdownMenuTrigger({
|
|
37
|
+
slotName = "dropdown-menu-trigger",
|
|
41
38
|
...props
|
|
42
39
|
}) {
|
|
43
|
-
return /* @__PURE__ */ jsx(
|
|
44
|
-
DropdownMenuPrimitive.Trigger,
|
|
45
|
-
{
|
|
46
|
-
"data-slot": "dropdown-menu-trigger",
|
|
47
|
-
...props
|
|
48
|
-
}
|
|
49
|
-
);
|
|
40
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Trigger, { ...props, "data-slot": slotName });
|
|
50
41
|
}
|
|
51
42
|
function DropdownMenuContent({
|
|
52
43
|
className,
|
|
53
44
|
sideOffset = 4,
|
|
45
|
+
slotName = "dropdown-menu-content",
|
|
54
46
|
...props
|
|
55
47
|
}) {
|
|
56
48
|
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
57
49
|
DropdownMenuPrimitive.Content,
|
|
58
50
|
{
|
|
59
|
-
"data-slot": "dropdown-menu-content",
|
|
60
51
|
sideOffset,
|
|
61
52
|
className: cn(
|
|
62
53
|
`${menuSurface} data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 z-50 min-w-[8rem] overflow-hidden`,
|
|
63
54
|
className
|
|
64
55
|
),
|
|
65
|
-
...props
|
|
56
|
+
...props,
|
|
57
|
+
"data-slot": slotName
|
|
66
58
|
}
|
|
67
59
|
) });
|
|
68
60
|
}
|
|
69
61
|
function DropdownMenuGroup({
|
|
62
|
+
slotName = "dropdown-menu-group",
|
|
70
63
|
...props
|
|
71
64
|
}) {
|
|
72
|
-
return /* @__PURE__ */ jsx(
|
|
73
|
-
DropdownMenuPrimitive.Group,
|
|
74
|
-
{
|
|
75
|
-
"data-slot": "dropdown-menu-group",
|
|
76
|
-
...props
|
|
77
|
-
}
|
|
78
|
-
);
|
|
65
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Group, { ...props, "data-slot": slotName });
|
|
79
66
|
}
|
|
80
67
|
function DropdownMenuItem({
|
|
81
68
|
className,
|
|
82
69
|
inset,
|
|
83
70
|
variant = "default",
|
|
71
|
+
slotName = "dropdown-menu-item",
|
|
84
72
|
...props
|
|
85
73
|
}) {
|
|
86
74
|
return /* @__PURE__ */ jsx(
|
|
87
75
|
DropdownMenuPrimitive.Item,
|
|
88
76
|
{
|
|
89
|
-
"data-slot": "dropdown-menu-item",
|
|
90
77
|
"data-inset": inset,
|
|
91
78
|
"data-variant": variant,
|
|
92
79
|
className: cn(
|
|
93
80
|
"font-medium gap-2 rounded-xl px-2 py-2 text-sm data-[inset]:pl-8 [&_svg:not([class*='size-'])]:size-5 focus:font-semibold relative flex cursor-default items-center outline-hidden transition-all select-none focus:bg-primary/10 focus:text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:!text-destructive",
|
|
94
81
|
className
|
|
95
82
|
),
|
|
96
|
-
...props
|
|
83
|
+
...props,
|
|
84
|
+
"data-slot": slotName
|
|
97
85
|
}
|
|
98
86
|
);
|
|
99
87
|
}
|
|
@@ -101,18 +89,19 @@ function DropdownMenuCheckboxItem({
|
|
|
101
89
|
className,
|
|
102
90
|
children,
|
|
103
91
|
checked,
|
|
92
|
+
slotName = "dropdown-menu-checkbox-item",
|
|
104
93
|
...props
|
|
105
94
|
}) {
|
|
106
95
|
return /* @__PURE__ */ jsxs(
|
|
107
96
|
DropdownMenuPrimitive.CheckboxItem,
|
|
108
97
|
{
|
|
109
|
-
"data-slot": "dropdown-menu-checkbox-item",
|
|
110
98
|
className: cn(
|
|
111
99
|
"gap-2 py-1.5 pr-2 pl-8 text-sm [&_svg:not([class*='size-'])]:size-4 rounded-xl relative flex cursor-default items-center outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
112
100
|
className
|
|
113
101
|
),
|
|
114
102
|
checked,
|
|
115
103
|
...props,
|
|
104
|
+
"data-slot": slotName,
|
|
116
105
|
children: [
|
|
117
106
|
/* @__PURE__ */ jsx("span", { className: "left-2 size-3.5 pointer-events-none absolute flex items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
|
|
118
107
|
children
|
|
@@ -121,30 +110,26 @@ function DropdownMenuCheckboxItem({
|
|
|
121
110
|
);
|
|
122
111
|
}
|
|
123
112
|
function DropdownMenuRadioGroup({
|
|
113
|
+
slotName = "dropdown-menu-radio-group",
|
|
124
114
|
...props
|
|
125
115
|
}) {
|
|
126
|
-
return /* @__PURE__ */ jsx(
|
|
127
|
-
DropdownMenuPrimitive.RadioGroup,
|
|
128
|
-
{
|
|
129
|
-
"data-slot": "dropdown-menu-radio-group",
|
|
130
|
-
...props
|
|
131
|
-
}
|
|
132
|
-
);
|
|
116
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.RadioGroup, { ...props, "data-slot": slotName });
|
|
133
117
|
}
|
|
134
118
|
function DropdownMenuRadioItem({
|
|
135
119
|
className,
|
|
136
120
|
children,
|
|
121
|
+
slotName = "dropdown-menu-radio-item",
|
|
137
122
|
...props
|
|
138
123
|
}) {
|
|
139
124
|
return /* @__PURE__ */ jsxs(
|
|
140
125
|
DropdownMenuPrimitive.RadioItem,
|
|
141
126
|
{
|
|
142
|
-
"data-slot": "dropdown-menu-radio-item",
|
|
143
127
|
className: cn(
|
|
144
128
|
"gap-2 py-1.5 pr-2 pl-8 text-sm [&_svg:not([class*='size-'])]:size-4 rounded-xl relative flex cursor-default items-center outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
145
129
|
className
|
|
146
130
|
),
|
|
147
131
|
...props,
|
|
132
|
+
"data-slot": slotName,
|
|
148
133
|
children: [
|
|
149
134
|
/* @__PURE__ */ jsx("span", { className: "left-2 size-3.5 pointer-events-none absolute flex items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
150
135
|
children
|
|
@@ -155,71 +140,76 @@ function DropdownMenuRadioItem({
|
|
|
155
140
|
function DropdownMenuLabel({
|
|
156
141
|
className,
|
|
157
142
|
inset,
|
|
143
|
+
slotName = "dropdown-menu-label",
|
|
158
144
|
...props
|
|
159
145
|
}) {
|
|
160
146
|
return /* @__PURE__ */ jsx(
|
|
161
147
|
DropdownMenuPrimitive.Label,
|
|
162
148
|
{
|
|
163
|
-
"data-slot": "dropdown-menu-label",
|
|
164
149
|
"data-inset": inset,
|
|
165
150
|
className: cn(
|
|
166
151
|
"px-2 py-2 text-xs font-medium tracking-wider data-[inset]:pl-8 text-muted-foreground uppercase",
|
|
167
152
|
className
|
|
168
153
|
),
|
|
169
|
-
...props
|
|
154
|
+
...props,
|
|
155
|
+
"data-slot": slotName
|
|
170
156
|
}
|
|
171
157
|
);
|
|
172
158
|
}
|
|
173
159
|
function DropdownMenuSeparator({
|
|
174
160
|
className,
|
|
161
|
+
slotName = "dropdown-menu-separator",
|
|
175
162
|
...props
|
|
176
163
|
}) {
|
|
177
164
|
return /* @__PURE__ */ jsx(
|
|
178
165
|
DropdownMenuPrimitive.Separator,
|
|
179
166
|
{
|
|
180
|
-
"data-slot": "dropdown-menu-separator",
|
|
181
167
|
className: cn("-mx-1 my-1 h-px bg-border", className),
|
|
182
|
-
...props
|
|
168
|
+
...props,
|
|
169
|
+
"data-slot": slotName
|
|
183
170
|
}
|
|
184
171
|
);
|
|
185
172
|
}
|
|
186
173
|
function DropdownMenuShortcut({
|
|
187
174
|
className,
|
|
175
|
+
slotName = "dropdown-menu-shortcut",
|
|
188
176
|
...props
|
|
189
177
|
}) {
|
|
190
178
|
return /* @__PURE__ */ jsx(
|
|
191
179
|
"span",
|
|
192
180
|
{
|
|
193
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
194
181
|
className: cn(
|
|
195
182
|
"text-xs tracking-widest ml-auto text-muted-foreground",
|
|
196
183
|
className
|
|
197
184
|
),
|
|
198
|
-
...props
|
|
185
|
+
...props,
|
|
186
|
+
"data-slot": slotName
|
|
199
187
|
}
|
|
200
188
|
);
|
|
201
189
|
}
|
|
202
190
|
function DropdownMenuSub({
|
|
191
|
+
slotName = "dropdown-menu-sub",
|
|
203
192
|
...props
|
|
204
193
|
}) {
|
|
205
|
-
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Sub, { "data-slot":
|
|
194
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Sub, { ...props, "data-slot": slotName });
|
|
206
195
|
}
|
|
207
196
|
function DropdownMenuSubTrigger({
|
|
208
197
|
className,
|
|
209
198
|
inset,
|
|
210
199
|
children,
|
|
200
|
+
slotName = "dropdown-menu-sub-trigger",
|
|
211
201
|
...props
|
|
212
202
|
}) {
|
|
213
203
|
return /* @__PURE__ */ jsxs(
|
|
214
204
|
DropdownMenuPrimitive.SubTrigger,
|
|
215
205
|
{
|
|
216
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
217
206
|
"data-inset": inset,
|
|
218
207
|
className: cn(
|
|
219
208
|
"font-medium rounded-xl px-2 py-2 text-sm data-[inset]:pl-8 focus:font-semibold data-[state=open]:font-semibold flex cursor-default items-center outline-hidden transition-all select-none focus:bg-primary/10 focus:text-primary data-[state=open]:bg-primary/10 data-[state=open]:text-primary",
|
|
220
209
|
className
|
|
221
210
|
),
|
|
222
211
|
...props,
|
|
212
|
+
"data-slot": slotName,
|
|
223
213
|
children: [
|
|
224
214
|
children,
|
|
225
215
|
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-4 ml-auto" })
|
|
@@ -229,144 +219,165 @@ function DropdownMenuSubTrigger({
|
|
|
229
219
|
}
|
|
230
220
|
function DropdownMenuSubContent({
|
|
231
221
|
className,
|
|
222
|
+
slotName = "dropdown-menu-sub-content",
|
|
232
223
|
...props
|
|
233
224
|
}) {
|
|
234
225
|
return /* @__PURE__ */ jsx(
|
|
235
226
|
DropdownMenuPrimitive.SubContent,
|
|
236
227
|
{
|
|
237
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
238
228
|
className: cn(
|
|
239
229
|
`${menuSurface} data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 z-50 min-w-[8rem] overflow-hidden`,
|
|
240
230
|
className
|
|
241
231
|
),
|
|
242
|
-
...props
|
|
232
|
+
...props,
|
|
233
|
+
"data-slot": slotName
|
|
243
234
|
}
|
|
244
235
|
);
|
|
245
236
|
}
|
|
246
237
|
function Avatar({
|
|
247
238
|
className,
|
|
239
|
+
slotName = "avatar",
|
|
248
240
|
...props
|
|
249
241
|
}) {
|
|
250
242
|
return /* @__PURE__ */ jsx(
|
|
251
243
|
AvatarPrimitive.Root,
|
|
252
244
|
{
|
|
253
|
-
"data-slot": "avatar",
|
|
254
245
|
className: cn(
|
|
255
246
|
"size-8 relative flex shrink-0 overflow-hidden rounded-full",
|
|
256
247
|
className
|
|
257
248
|
),
|
|
258
|
-
...props
|
|
249
|
+
...props,
|
|
250
|
+
"data-slot": slotName
|
|
259
251
|
}
|
|
260
252
|
);
|
|
261
253
|
}
|
|
262
254
|
function AvatarImage({
|
|
263
255
|
className,
|
|
256
|
+
slotName = "avatar-image",
|
|
264
257
|
...props
|
|
265
258
|
}) {
|
|
266
259
|
return /* @__PURE__ */ jsx(
|
|
267
260
|
AvatarPrimitive.Image,
|
|
268
261
|
{
|
|
269
|
-
"data-slot": "avatar-image",
|
|
270
262
|
className: cn("aspect-square size-full", className),
|
|
271
|
-
...props
|
|
263
|
+
...props,
|
|
264
|
+
"data-slot": slotName
|
|
272
265
|
}
|
|
273
266
|
);
|
|
274
267
|
}
|
|
275
268
|
function AvatarFallback({
|
|
276
269
|
className,
|
|
270
|
+
slotName = "avatar-fallback",
|
|
277
271
|
...props
|
|
278
272
|
}) {
|
|
279
273
|
return /* @__PURE__ */ jsx(
|
|
280
274
|
AvatarPrimitive.Fallback,
|
|
281
275
|
{
|
|
282
|
-
"data-slot": "avatar-fallback",
|
|
283
276
|
className: cn(
|
|
284
277
|
"flex size-full items-center justify-center rounded-full bg-muted",
|
|
285
278
|
className
|
|
286
279
|
),
|
|
287
|
-
...props
|
|
280
|
+
...props,
|
|
281
|
+
"data-slot": slotName
|
|
288
282
|
}
|
|
289
283
|
);
|
|
290
284
|
}
|
|
291
|
-
function Breadcrumb({
|
|
292
|
-
|
|
285
|
+
function Breadcrumb({
|
|
286
|
+
slotName = "breadcrumb",
|
|
287
|
+
...props
|
|
288
|
+
}) {
|
|
289
|
+
return /* @__PURE__ */ jsx("nav", { "aria-label": "breadcrumb", ...props, "data-slot": slotName });
|
|
293
290
|
}
|
|
294
|
-
function BreadcrumbList({
|
|
291
|
+
function BreadcrumbList({
|
|
292
|
+
className,
|
|
293
|
+
slotName = "breadcrumb-list",
|
|
294
|
+
...props
|
|
295
|
+
}) {
|
|
295
296
|
return /* @__PURE__ */ jsx(
|
|
296
297
|
"ol",
|
|
297
298
|
{
|
|
298
|
-
"data-slot": "breadcrumb-list",
|
|
299
299
|
className: cn(
|
|
300
300
|
"gap-1.5 text-sm sm:gap-2.5 flex flex-wrap items-center break-words text-muted-foreground",
|
|
301
301
|
className
|
|
302
302
|
),
|
|
303
|
-
...props
|
|
303
|
+
...props,
|
|
304
|
+
"data-slot": slotName
|
|
304
305
|
}
|
|
305
306
|
);
|
|
306
307
|
}
|
|
307
|
-
function BreadcrumbItem({
|
|
308
|
+
function BreadcrumbItem({
|
|
309
|
+
className,
|
|
310
|
+
slotName = "breadcrumb-item",
|
|
311
|
+
...props
|
|
312
|
+
}) {
|
|
308
313
|
return /* @__PURE__ */ jsx(
|
|
309
314
|
"li",
|
|
310
315
|
{
|
|
311
|
-
"data-slot": "breadcrumb-item",
|
|
312
316
|
className: cn("gap-1.5 inline-flex items-center", className),
|
|
313
|
-
...props
|
|
317
|
+
...props,
|
|
318
|
+
"data-slot": slotName
|
|
314
319
|
}
|
|
315
320
|
);
|
|
316
321
|
}
|
|
317
322
|
function BreadcrumbLink({
|
|
318
323
|
asChild,
|
|
319
324
|
className,
|
|
325
|
+
slotName = "breadcrumb-link",
|
|
320
326
|
...props
|
|
321
327
|
}) {
|
|
322
328
|
const Comp = asChild ? Slot : "a";
|
|
323
329
|
return /* @__PURE__ */ jsx(
|
|
324
330
|
Comp,
|
|
325
331
|
{
|
|
326
|
-
"data-slot": "breadcrumb-link",
|
|
327
332
|
className: cn("transition-colors hover:text-foreground", className),
|
|
328
|
-
...props
|
|
333
|
+
...props,
|
|
334
|
+
"data-slot": slotName
|
|
329
335
|
}
|
|
330
336
|
);
|
|
331
337
|
}
|
|
332
|
-
function BreadcrumbPage({
|
|
338
|
+
function BreadcrumbPage({
|
|
339
|
+
className,
|
|
340
|
+
slotName = "breadcrumb-page",
|
|
341
|
+
...props
|
|
342
|
+
}) {
|
|
333
343
|
return /* @__PURE__ */ jsx(
|
|
334
344
|
"span",
|
|
335
345
|
{
|
|
336
|
-
"data-slot": "breadcrumb-page",
|
|
337
346
|
role: "link",
|
|
338
347
|
"aria-disabled": "true",
|
|
339
348
|
"aria-current": "page",
|
|
340
349
|
className: cn("font-semibold text-foreground", className),
|
|
341
|
-
...props
|
|
350
|
+
...props,
|
|
351
|
+
"data-slot": slotName
|
|
342
352
|
}
|
|
343
353
|
);
|
|
344
354
|
}
|
|
345
355
|
function BreadcrumbSeparator({
|
|
346
356
|
children,
|
|
347
357
|
className,
|
|
358
|
+
slotName = "breadcrumb-separator",
|
|
348
359
|
...props
|
|
349
360
|
}) {
|
|
350
361
|
return /* @__PURE__ */ jsx(
|
|
351
362
|
"li",
|
|
352
363
|
{
|
|
353
|
-
"data-slot": "breadcrumb-separator",
|
|
354
364
|
role: "presentation",
|
|
355
365
|
"aria-hidden": "true",
|
|
356
366
|
className: cn("[&>svg]:size-3.5", className),
|
|
357
367
|
...props,
|
|
368
|
+
"data-slot": slotName,
|
|
358
369
|
children: children ?? /* @__PURE__ */ jsx(ChevronRight, {})
|
|
359
370
|
}
|
|
360
371
|
);
|
|
361
372
|
}
|
|
362
373
|
function BreadcrumbEllipsis({
|
|
363
374
|
className,
|
|
375
|
+
slotName = "breadcrumb-ellipsis",
|
|
364
376
|
...props
|
|
365
377
|
}) {
|
|
366
378
|
return /* @__PURE__ */ jsxs(
|
|
367
379
|
"span",
|
|
368
380
|
{
|
|
369
|
-
"data-slot": "breadcrumb-ellipsis",
|
|
370
381
|
role: "presentation",
|
|
371
382
|
"aria-hidden": "true",
|
|
372
383
|
className: cn(
|
|
@@ -374,6 +385,7 @@ function BreadcrumbEllipsis({
|
|
|
374
385
|
className
|
|
375
386
|
),
|
|
376
387
|
...props,
|
|
388
|
+
"data-slot": slotName,
|
|
377
389
|
children: [
|
|
378
390
|
/* @__PURE__ */ jsx(MoreHorizontal, { className: "size-4" }),
|
|
379
391
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "More" })
|
|
@@ -382,29 +394,32 @@ function BreadcrumbEllipsis({
|
|
|
382
394
|
);
|
|
383
395
|
}
|
|
384
396
|
function Collapsible({
|
|
397
|
+
slotName = "collapsible",
|
|
385
398
|
...props
|
|
386
399
|
}) {
|
|
387
|
-
return /* @__PURE__ */ jsx(CollapsiblePrimitive.Root, { "data-slot":
|
|
400
|
+
return /* @__PURE__ */ jsx(CollapsiblePrimitive.Root, { ...props, "data-slot": slotName });
|
|
388
401
|
}
|
|
389
402
|
function CollapsibleTrigger2({
|
|
403
|
+
slotName = "collapsible-trigger",
|
|
390
404
|
...props
|
|
391
405
|
}) {
|
|
392
406
|
return /* @__PURE__ */ jsx(
|
|
393
407
|
CollapsiblePrimitive.CollapsibleTrigger,
|
|
394
408
|
{
|
|
395
|
-
|
|
396
|
-
|
|
409
|
+
...props,
|
|
410
|
+
"data-slot": slotName
|
|
397
411
|
}
|
|
398
412
|
);
|
|
399
413
|
}
|
|
400
414
|
function CollapsibleContent2({
|
|
415
|
+
slotName = "collapsible-content",
|
|
401
416
|
...props
|
|
402
417
|
}) {
|
|
403
418
|
return /* @__PURE__ */ jsx(
|
|
404
419
|
CollapsiblePrimitive.CollapsibleContent,
|
|
405
420
|
{
|
|
406
|
-
|
|
407
|
-
|
|
421
|
+
...props,
|
|
422
|
+
"data-slot": slotName
|
|
408
423
|
}
|
|
409
424
|
);
|
|
410
425
|
}
|
|
@@ -417,6 +432,7 @@ function Icon({ iconNode: IconComponent, className }) {
|
|
|
417
432
|
function Sheet({
|
|
418
433
|
preserveScroll = false,
|
|
419
434
|
onOpenChange: onOpenChangeProp,
|
|
435
|
+
slotName = "sheet",
|
|
420
436
|
...props
|
|
421
437
|
}) {
|
|
422
438
|
const scrollPosition = React2.useRef(0);
|
|
@@ -435,40 +451,44 @@ function Sheet({
|
|
|
435
451
|
return /* @__PURE__ */ jsx(
|
|
436
452
|
SheetPrimitive.Root,
|
|
437
453
|
{
|
|
438
|
-
"data-slot": "sheet",
|
|
439
454
|
...props,
|
|
440
|
-
onOpenChange
|
|
455
|
+
onOpenChange,
|
|
456
|
+
"data-slot": slotName
|
|
441
457
|
}
|
|
442
458
|
);
|
|
443
459
|
}
|
|
444
460
|
function SheetTrigger({
|
|
461
|
+
slotName = "sheet-trigger",
|
|
445
462
|
...props
|
|
446
463
|
}) {
|
|
447
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Trigger, { "data-slot":
|
|
464
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Trigger, { ...props, "data-slot": slotName });
|
|
448
465
|
}
|
|
449
466
|
function SheetClose({
|
|
467
|
+
slotName = "sheet-close",
|
|
450
468
|
...props
|
|
451
469
|
}) {
|
|
452
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Close, { "data-slot":
|
|
470
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Close, { ...props, "data-slot": slotName });
|
|
453
471
|
}
|
|
454
472
|
function SheetPortal({
|
|
473
|
+
slotName = "sheet-portal",
|
|
455
474
|
...props
|
|
456
475
|
}) {
|
|
457
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Portal, { "data-slot":
|
|
476
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Portal, { ...props, "data-slot": slotName });
|
|
458
477
|
}
|
|
459
478
|
function SheetOverlay({
|
|
460
479
|
className,
|
|
480
|
+
slotName = "sheet-overlay",
|
|
461
481
|
...props
|
|
462
482
|
}) {
|
|
463
483
|
return /* @__PURE__ */ jsx(
|
|
464
484
|
SheetPrimitive.Overlay,
|
|
465
485
|
{
|
|
466
|
-
"data-slot": "sheet-overlay",
|
|
467
486
|
className: cn(
|
|
468
487
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 inset-0 bg-black/60 backdrop-blur-sm fixed z-50",
|
|
469
488
|
className
|
|
470
489
|
),
|
|
471
|
-
...props
|
|
490
|
+
...props,
|
|
491
|
+
"data-slot": slotName
|
|
472
492
|
}
|
|
473
493
|
);
|
|
474
494
|
}
|
|
@@ -476,6 +496,7 @@ function SheetContent({
|
|
|
476
496
|
className,
|
|
477
497
|
children,
|
|
478
498
|
side = "right",
|
|
499
|
+
slotName = "sheet-content",
|
|
479
500
|
...props
|
|
480
501
|
}) {
|
|
481
502
|
return /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
@@ -483,7 +504,6 @@ function SheetContent({
|
|
|
483
504
|
/* @__PURE__ */ jsxs(
|
|
484
505
|
SheetPrimitive.Content,
|
|
485
506
|
{
|
|
486
|
-
"data-slot": "sheet-content",
|
|
487
507
|
className: cn(
|
|
488
508
|
`${floatingSurface} data-[state=open]:animate-in data-[state=closed]:animate-out gap-4 ease-in-out fixed z-50 flex flex-col transition data-[state=closed]:duration-300 data-[state=open]:duration-500`,
|
|
489
509
|
side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 sm:max-w-sm rounded-l-3xl h-full w-3/4 border-l border-border",
|
|
@@ -493,6 +513,7 @@ function SheetContent({
|
|
|
493
513
|
className
|
|
494
514
|
),
|
|
495
515
|
...props,
|
|
516
|
+
"data-slot": slotName,
|
|
496
517
|
children: [
|
|
497
518
|
children,
|
|
498
519
|
/* @__PURE__ */ jsxs(
|
|
@@ -513,101 +534,119 @@ function SheetContent({
|
|
|
513
534
|
)
|
|
514
535
|
] });
|
|
515
536
|
}
|
|
516
|
-
function SheetHeader({
|
|
537
|
+
function SheetHeader({
|
|
538
|
+
className,
|
|
539
|
+
slotName = "sheet-header",
|
|
540
|
+
...props
|
|
541
|
+
}) {
|
|
517
542
|
return /* @__PURE__ */ jsx(
|
|
518
543
|
"div",
|
|
519
544
|
{
|
|
520
|
-
"data-slot": "sheet-header",
|
|
521
545
|
className: cn("gap-1.5 p-4 flex flex-col", className),
|
|
522
|
-
...props
|
|
546
|
+
...props,
|
|
547
|
+
"data-slot": slotName
|
|
523
548
|
}
|
|
524
549
|
);
|
|
525
550
|
}
|
|
526
|
-
function SheetFooter({
|
|
551
|
+
function SheetFooter({
|
|
552
|
+
className,
|
|
553
|
+
slotName = "sheet-footer",
|
|
554
|
+
...props
|
|
555
|
+
}) {
|
|
527
556
|
return /* @__PURE__ */ jsx(
|
|
528
557
|
"div",
|
|
529
558
|
{
|
|
530
|
-
"data-slot": "sheet-footer",
|
|
531
559
|
className: cn("gap-2 p-4 mt-auto flex flex-col", className),
|
|
532
|
-
...props
|
|
560
|
+
...props,
|
|
561
|
+
"data-slot": slotName
|
|
533
562
|
}
|
|
534
563
|
);
|
|
535
564
|
}
|
|
536
565
|
function SheetTitle({
|
|
537
566
|
className,
|
|
567
|
+
slotName = "sheet-title",
|
|
538
568
|
...props
|
|
539
569
|
}) {
|
|
540
570
|
return /* @__PURE__ */ jsx(
|
|
541
571
|
SheetPrimitive.Title,
|
|
542
572
|
{
|
|
543
|
-
"data-slot": "sheet-title",
|
|
544
573
|
className: cn("font-semibold text-foreground", className),
|
|
545
|
-
...props
|
|
574
|
+
...props,
|
|
575
|
+
"data-slot": slotName
|
|
546
576
|
}
|
|
547
577
|
);
|
|
548
578
|
}
|
|
549
579
|
function SheetDescription({
|
|
550
580
|
className,
|
|
581
|
+
slotName = "sheet-description",
|
|
551
582
|
...props
|
|
552
583
|
}) {
|
|
553
584
|
return /* @__PURE__ */ jsx(
|
|
554
585
|
SheetPrimitive.Description,
|
|
555
586
|
{
|
|
556
|
-
"data-slot": "sheet-description",
|
|
557
587
|
className: cn("text-sm text-muted-foreground", className),
|
|
558
|
-
...props
|
|
588
|
+
...props,
|
|
589
|
+
"data-slot": slotName
|
|
559
590
|
}
|
|
560
591
|
);
|
|
561
592
|
}
|
|
562
|
-
function Skeleton({
|
|
593
|
+
function Skeleton({
|
|
594
|
+
className,
|
|
595
|
+
slotName = "skeleton",
|
|
596
|
+
...props
|
|
597
|
+
}) {
|
|
563
598
|
return /* @__PURE__ */ jsx(
|
|
564
599
|
"div",
|
|
565
600
|
{
|
|
566
|
-
"data-slot": "skeleton",
|
|
567
601
|
className: cn("animate-pulse rounded-xl bg-muted", className),
|
|
568
|
-
...props
|
|
602
|
+
...props,
|
|
603
|
+
"data-slot": slotName
|
|
569
604
|
}
|
|
570
605
|
);
|
|
571
606
|
}
|
|
572
607
|
function TooltipProvider({
|
|
573
608
|
delayDuration = 0,
|
|
609
|
+
slotName = "tooltip-provider",
|
|
574
610
|
...props
|
|
575
611
|
}) {
|
|
576
612
|
return /* @__PURE__ */ jsx(
|
|
577
613
|
TooltipPrimitive.Provider,
|
|
578
614
|
{
|
|
579
|
-
"data-slot": "tooltip-provider",
|
|
580
615
|
delayDuration,
|
|
581
|
-
...props
|
|
616
|
+
...props,
|
|
617
|
+
"data-slot": slotName
|
|
582
618
|
}
|
|
583
619
|
);
|
|
584
620
|
}
|
|
585
621
|
function Tooltip({
|
|
622
|
+
slotName = "tooltip",
|
|
586
623
|
...props
|
|
587
624
|
}) {
|
|
588
|
-
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, { "data-slot":
|
|
625
|
+
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, { ...props, "data-slot": slotName }) });
|
|
589
626
|
}
|
|
590
627
|
function TooltipTrigger({
|
|
628
|
+
slotName = "tooltip-trigger",
|
|
591
629
|
...props
|
|
592
630
|
}) {
|
|
593
|
-
return /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { "data-slot":
|
|
631
|
+
return /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { ...props, "data-slot": slotName });
|
|
594
632
|
}
|
|
595
633
|
function TooltipContent({
|
|
596
634
|
className,
|
|
597
635
|
sideOffset = 4,
|
|
598
636
|
children,
|
|
637
|
+
slotName = "tooltip-content",
|
|
599
638
|
...props
|
|
600
639
|
}) {
|
|
601
640
|
return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
602
641
|
TooltipPrimitive.Content,
|
|
603
642
|
{
|
|
604
|
-
"data-slot": "tooltip-content",
|
|
605
643
|
sideOffset,
|
|
606
644
|
className: cn(
|
|
607
645
|
"animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 max-w-sm px-3 py-1.5 text-xs shadow-2xl rounded-xl z-50 bg-primary text-primary-foreground",
|
|
608
646
|
className
|
|
609
647
|
),
|
|
610
648
|
...props,
|
|
649
|
+
"data-slot": slotName,
|
|
611
650
|
children: [
|
|
612
651
|
children,
|
|
613
652
|
/* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "size-2.5 z-50 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-primary fill-primary" })
|
|
@@ -652,6 +691,7 @@ function SidebarProvider({
|
|
|
652
691
|
className,
|
|
653
692
|
style,
|
|
654
693
|
children,
|
|
694
|
+
slotName = "sidebar-wrapper",
|
|
655
695
|
...props
|
|
656
696
|
}) {
|
|
657
697
|
const isMobile = useIsMobile();
|
|
@@ -707,7 +747,6 @@ function SidebarProvider({
|
|
|
707
747
|
return /* @__PURE__ */ jsx(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx(
|
|
708
748
|
"div",
|
|
709
749
|
{
|
|
710
|
-
"data-slot": "sidebar-wrapper",
|
|
711
750
|
style: {
|
|
712
751
|
"--sidebar-width": SIDEBAR_WIDTH,
|
|
713
752
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
@@ -718,6 +757,7 @@ function SidebarProvider({
|
|
|
718
757
|
className
|
|
719
758
|
),
|
|
720
759
|
...props,
|
|
760
|
+
"data-slot": slotName,
|
|
721
761
|
children
|
|
722
762
|
}
|
|
723
763
|
) }) });
|
|
@@ -728,6 +768,7 @@ function Sidebar({
|
|
|
728
768
|
collapsible = "offcanvas",
|
|
729
769
|
className,
|
|
730
770
|
children,
|
|
771
|
+
slotName = "sidebar",
|
|
731
772
|
...props
|
|
732
773
|
}) {
|
|
733
774
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
@@ -735,12 +776,12 @@ function Sidebar({
|
|
|
735
776
|
return /* @__PURE__ */ jsx(
|
|
736
777
|
"div",
|
|
737
778
|
{
|
|
738
|
-
"data-slot": "sidebar",
|
|
739
779
|
className: cn(
|
|
740
780
|
"flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",
|
|
741
781
|
className
|
|
742
782
|
),
|
|
743
783
|
...props,
|
|
784
|
+
"data-slot": slotName,
|
|
744
785
|
children
|
|
745
786
|
}
|
|
746
787
|
);
|
|
@@ -762,13 +803,13 @@ function Sidebar({
|
|
|
762
803
|
SheetContent,
|
|
763
804
|
{
|
|
764
805
|
"data-sidebar": "sidebar",
|
|
765
|
-
"data-slot": "sidebar",
|
|
766
806
|
"data-mobile": "true",
|
|
767
807
|
className: "p-0 w-(--sidebar-width) bg-sidebar text-sidebar-foreground [&>button]:hidden",
|
|
768
808
|
style: {
|
|
769
809
|
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
770
810
|
},
|
|
771
811
|
side,
|
|
812
|
+
slotName,
|
|
772
813
|
children: /* @__PURE__ */ jsx("div", { className: "flex h-full w-full flex-col", children })
|
|
773
814
|
}
|
|
774
815
|
)
|
|
@@ -784,7 +825,7 @@ function Sidebar({
|
|
|
784
825
|
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
785
826
|
"data-variant": variant,
|
|
786
827
|
"data-side": side,
|
|
787
|
-
"data-slot":
|
|
828
|
+
"data-slot": slotName,
|
|
788
829
|
children: [
|
|
789
830
|
/* @__PURE__ */ jsx(
|
|
790
831
|
"div",
|
|
@@ -825,6 +866,7 @@ function Sidebar({
|
|
|
825
866
|
function SidebarTrigger({
|
|
826
867
|
className,
|
|
827
868
|
onClick,
|
|
869
|
+
slotName = "sidebar-trigger",
|
|
828
870
|
...props
|
|
829
871
|
}) {
|
|
830
872
|
const { toggleSidebar } = useSidebar();
|
|
@@ -832,7 +874,6 @@ function SidebarTrigger({
|
|
|
832
874
|
Button,
|
|
833
875
|
{
|
|
834
876
|
"data-sidebar": "trigger",
|
|
835
|
-
"data-slot": "sidebar-trigger",
|
|
836
877
|
variant: "ghost",
|
|
837
878
|
size: "icon",
|
|
838
879
|
className: cn("h-7 w-7", className),
|
|
@@ -841,6 +882,7 @@ function SidebarTrigger({
|
|
|
841
882
|
toggleSidebar();
|
|
842
883
|
},
|
|
843
884
|
...props,
|
|
885
|
+
slotName,
|
|
844
886
|
children: [
|
|
845
887
|
/* @__PURE__ */ jsx(PanelLeftIcon, {}),
|
|
846
888
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
@@ -848,13 +890,16 @@ function SidebarTrigger({
|
|
|
848
890
|
}
|
|
849
891
|
);
|
|
850
892
|
}
|
|
851
|
-
function SidebarRail({
|
|
893
|
+
function SidebarRail({
|
|
894
|
+
className,
|
|
895
|
+
slotName = "sidebar-rail",
|
|
896
|
+
...props
|
|
897
|
+
}) {
|
|
852
898
|
const { toggleSidebar } = useSidebar();
|
|
853
899
|
return /* @__PURE__ */ jsx(
|
|
854
900
|
"button",
|
|
855
901
|
{
|
|
856
902
|
"data-sidebar": "rail",
|
|
857
|
-
"data-slot": "sidebar-rail",
|
|
858
903
|
"aria-label": "Toggle Sidebar",
|
|
859
904
|
tabIndex: -1,
|
|
860
905
|
onClick: toggleSidebar,
|
|
@@ -868,132 +913,156 @@ function SidebarRail({ className, ...props }) {
|
|
|
868
913
|
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
869
914
|
className
|
|
870
915
|
),
|
|
871
|
-
...props
|
|
916
|
+
...props,
|
|
917
|
+
"data-slot": slotName
|
|
872
918
|
}
|
|
873
919
|
);
|
|
874
920
|
}
|
|
875
|
-
function SidebarInset({
|
|
921
|
+
function SidebarInset({
|
|
922
|
+
className,
|
|
923
|
+
slotName = "sidebar-inset",
|
|
924
|
+
...props
|
|
925
|
+
}) {
|
|
876
926
|
return /* @__PURE__ */ jsx(
|
|
877
927
|
"main",
|
|
878
928
|
{
|
|
879
|
-
"data-slot": "sidebar-inset",
|
|
880
929
|
className: cn(
|
|
881
930
|
"relative flex min-h-svh max-w-full flex-1 flex-col bg-background",
|
|
882
931
|
"peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] 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-0",
|
|
883
932
|
className
|
|
884
933
|
),
|
|
885
|
-
...props
|
|
934
|
+
...props,
|
|
935
|
+
"data-slot": slotName
|
|
886
936
|
}
|
|
887
937
|
);
|
|
888
938
|
}
|
|
889
939
|
function SidebarInput({
|
|
890
940
|
className,
|
|
941
|
+
slotName = "sidebar-input",
|
|
891
942
|
...props
|
|
892
943
|
}) {
|
|
893
944
|
return /* @__PURE__ */ jsx(
|
|
894
945
|
Input,
|
|
895
946
|
{
|
|
896
|
-
"data-slot": "sidebar-input",
|
|
897
947
|
"data-sidebar": "input",
|
|
898
948
|
className: cn("h-11 w-full bg-background shadow-none", className),
|
|
899
|
-
...props
|
|
949
|
+
...props,
|
|
950
|
+
slotName
|
|
900
951
|
}
|
|
901
952
|
);
|
|
902
953
|
}
|
|
903
|
-
function SidebarHeader({
|
|
954
|
+
function SidebarHeader({
|
|
955
|
+
className,
|
|
956
|
+
slotName = "sidebar-header",
|
|
957
|
+
...props
|
|
958
|
+
}) {
|
|
904
959
|
return /* @__PURE__ */ jsx(
|
|
905
960
|
"div",
|
|
906
961
|
{
|
|
907
|
-
"data-slot": "sidebar-header",
|
|
908
962
|
"data-sidebar": "header",
|
|
909
963
|
className: cn("gap-2 p-2 flex flex-col", className),
|
|
910
|
-
...props
|
|
964
|
+
...props,
|
|
965
|
+
"data-slot": slotName
|
|
911
966
|
}
|
|
912
967
|
);
|
|
913
968
|
}
|
|
914
|
-
function SidebarFooter({
|
|
969
|
+
function SidebarFooter({
|
|
970
|
+
className,
|
|
971
|
+
slotName = "sidebar-footer",
|
|
972
|
+
...props
|
|
973
|
+
}) {
|
|
915
974
|
return /* @__PURE__ */ jsx(
|
|
916
975
|
"div",
|
|
917
976
|
{
|
|
918
|
-
"data-slot": "sidebar-footer",
|
|
919
977
|
"data-sidebar": "footer",
|
|
920
978
|
className: cn("gap-2 p-2 flex flex-col", className),
|
|
921
|
-
...props
|
|
979
|
+
...props,
|
|
980
|
+
"data-slot": slotName
|
|
922
981
|
}
|
|
923
982
|
);
|
|
924
983
|
}
|
|
925
984
|
function SidebarSeparator({
|
|
926
985
|
className,
|
|
986
|
+
slotName = "sidebar-separator",
|
|
927
987
|
...props
|
|
928
988
|
}) {
|
|
929
989
|
return /* @__PURE__ */ jsx(
|
|
930
990
|
Separator,
|
|
931
991
|
{
|
|
932
|
-
"data-slot": "sidebar-separator",
|
|
933
992
|
"data-sidebar": "separator",
|
|
934
993
|
className: cn("mx-2 w-auto bg-sidebar-border", className),
|
|
935
|
-
...props
|
|
994
|
+
...props,
|
|
995
|
+
slotName
|
|
936
996
|
}
|
|
937
997
|
);
|
|
938
998
|
}
|
|
939
|
-
function SidebarContent({
|
|
999
|
+
function SidebarContent({
|
|
1000
|
+
className,
|
|
1001
|
+
slotName = "sidebar-content",
|
|
1002
|
+
...props
|
|
1003
|
+
}) {
|
|
940
1004
|
return /* @__PURE__ */ jsx(
|
|
941
1005
|
"div",
|
|
942
1006
|
{
|
|
943
|
-
"data-slot": "sidebar-content",
|
|
944
1007
|
"data-sidebar": "content",
|
|
945
1008
|
className: cn(
|
|
946
1009
|
"min-h-0 gap-2 flex flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
947
1010
|
className
|
|
948
1011
|
),
|
|
949
|
-
...props
|
|
1012
|
+
...props,
|
|
1013
|
+
"data-slot": slotName
|
|
950
1014
|
}
|
|
951
1015
|
);
|
|
952
1016
|
}
|
|
953
|
-
function SidebarGroup({
|
|
1017
|
+
function SidebarGroup({
|
|
1018
|
+
className,
|
|
1019
|
+
slotName = "sidebar-group",
|
|
1020
|
+
...props
|
|
1021
|
+
}) {
|
|
954
1022
|
return /* @__PURE__ */ jsx(
|
|
955
1023
|
"div",
|
|
956
1024
|
{
|
|
957
|
-
"data-slot": "sidebar-group",
|
|
958
1025
|
"data-sidebar": "group",
|
|
959
1026
|
className: cn(
|
|
960
1027
|
"min-w-0 p-2 relative flex w-full flex-col",
|
|
961
1028
|
className
|
|
962
1029
|
),
|
|
963
|
-
...props
|
|
1030
|
+
...props,
|
|
1031
|
+
"data-slot": slotName
|
|
964
1032
|
}
|
|
965
1033
|
);
|
|
966
1034
|
}
|
|
967
1035
|
function SidebarGroupLabel({
|
|
968
1036
|
className,
|
|
969
1037
|
asChild = false,
|
|
1038
|
+
slotName = "sidebar-group-label",
|
|
970
1039
|
...props
|
|
971
1040
|
}) {
|
|
972
1041
|
const Comp = asChild ? Slot : "div";
|
|
973
1042
|
return /* @__PURE__ */ jsx(
|
|
974
1043
|
Comp,
|
|
975
1044
|
{
|
|
976
|
-
"data-slot": "sidebar-group-label",
|
|
977
1045
|
"data-sidebar": "group-label",
|
|
978
1046
|
className: cn(
|
|
979
1047
|
"h-8 rounded-xl px-2 text-xs font-medium tracking-wider [&>svg]:size-4 flex shrink-0 items-center text-sidebar-foreground/70 uppercase ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-[3px] focus-visible:ring-ring/50 [&>svg]:shrink-0",
|
|
980
1048
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:pointer-events-none group-data-[collapsible=icon]:opacity-0 group-data-[collapsible=icon]:select-none",
|
|
981
1049
|
className
|
|
982
1050
|
),
|
|
983
|
-
...props
|
|
1051
|
+
...props,
|
|
1052
|
+
"data-slot": slotName
|
|
984
1053
|
}
|
|
985
1054
|
);
|
|
986
1055
|
}
|
|
987
1056
|
function SidebarGroupAction({
|
|
988
1057
|
className,
|
|
989
1058
|
asChild = false,
|
|
1059
|
+
slotName = "sidebar-group-action",
|
|
990
1060
|
...props
|
|
991
1061
|
}) {
|
|
992
1062
|
const Comp = asChild ? Slot : "button";
|
|
993
1063
|
return /* @__PURE__ */ jsx(
|
|
994
1064
|
Comp,
|
|
995
1065
|
{
|
|
996
|
-
"data-slot": "sidebar-group-action",
|
|
997
1066
|
"data-sidebar": "group-action",
|
|
998
1067
|
className: cn(
|
|
999
1068
|
"top-3.5 right-3 w-5 p-0 [&>svg]:size-4 rounded-xl absolute flex aspect-square items-center justify-center text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 [&>svg]:shrink-0",
|
|
@@ -1002,43 +1071,53 @@ function SidebarGroupAction({
|
|
|
1002
1071
|
"group-data-[collapsible=icon]:hidden",
|
|
1003
1072
|
className
|
|
1004
1073
|
),
|
|
1005
|
-
...props
|
|
1074
|
+
...props,
|
|
1075
|
+
"data-slot": slotName
|
|
1006
1076
|
}
|
|
1007
1077
|
);
|
|
1008
1078
|
}
|
|
1009
1079
|
function SidebarGroupContent({
|
|
1010
1080
|
className,
|
|
1081
|
+
slotName = "sidebar-group-content",
|
|
1011
1082
|
...props
|
|
1012
1083
|
}) {
|
|
1013
1084
|
return /* @__PURE__ */ jsx(
|
|
1014
1085
|
"div",
|
|
1015
1086
|
{
|
|
1016
|
-
"data-slot": "sidebar-group-content",
|
|
1017
1087
|
"data-sidebar": "group-content",
|
|
1018
1088
|
className: cn("text-sm w-full", className),
|
|
1019
|
-
...props
|
|
1089
|
+
...props,
|
|
1090
|
+
"data-slot": slotName
|
|
1020
1091
|
}
|
|
1021
1092
|
);
|
|
1022
1093
|
}
|
|
1023
|
-
function SidebarMenu({
|
|
1094
|
+
function SidebarMenu({
|
|
1095
|
+
className,
|
|
1096
|
+
slotName = "sidebar-menu",
|
|
1097
|
+
...props
|
|
1098
|
+
}) {
|
|
1024
1099
|
return /* @__PURE__ */ jsx(
|
|
1025
1100
|
"ul",
|
|
1026
1101
|
{
|
|
1027
|
-
"data-slot": "sidebar-menu",
|
|
1028
1102
|
"data-sidebar": "menu",
|
|
1029
1103
|
className: cn("min-w-0 gap-1 flex w-full flex-col", className),
|
|
1030
|
-
...props
|
|
1104
|
+
...props,
|
|
1105
|
+
"data-slot": slotName
|
|
1031
1106
|
}
|
|
1032
1107
|
);
|
|
1033
1108
|
}
|
|
1034
|
-
function SidebarMenuItem({
|
|
1109
|
+
function SidebarMenuItem({
|
|
1110
|
+
className,
|
|
1111
|
+
slotName = "sidebar-menu-item",
|
|
1112
|
+
...props
|
|
1113
|
+
}) {
|
|
1035
1114
|
return /* @__PURE__ */ jsx(
|
|
1036
1115
|
"li",
|
|
1037
1116
|
{
|
|
1038
|
-
"data-slot": "sidebar-menu-item",
|
|
1039
1117
|
"data-sidebar": "menu-item",
|
|
1040
1118
|
className: cn("group/menu-item relative", className),
|
|
1041
|
-
...props
|
|
1119
|
+
...props,
|
|
1120
|
+
"data-slot": slotName
|
|
1042
1121
|
}
|
|
1043
1122
|
);
|
|
1044
1123
|
}
|
|
@@ -1069,6 +1148,7 @@ function SidebarMenuButton({
|
|
|
1069
1148
|
size = "default",
|
|
1070
1149
|
tooltip,
|
|
1071
1150
|
className,
|
|
1151
|
+
slotName = "sidebar-menu-button",
|
|
1072
1152
|
...props
|
|
1073
1153
|
}) {
|
|
1074
1154
|
const Comp = asChild ? Slot : "button";
|
|
@@ -1076,7 +1156,6 @@ function SidebarMenuButton({
|
|
|
1076
1156
|
const button = /* @__PURE__ */ jsx(
|
|
1077
1157
|
Comp,
|
|
1078
1158
|
{
|
|
1079
|
-
"data-slot": "sidebar-menu-button",
|
|
1080
1159
|
"data-sidebar": "menu-button",
|
|
1081
1160
|
"data-size": size,
|
|
1082
1161
|
"data-active": isActive,
|
|
@@ -1084,7 +1163,8 @@ function SidebarMenuButton({
|
|
|
1084
1163
|
sidebarMenuButtonVariants({ variant, size }),
|
|
1085
1164
|
className
|
|
1086
1165
|
),
|
|
1087
|
-
...props
|
|
1166
|
+
...props,
|
|
1167
|
+
"data-slot": slotName
|
|
1088
1168
|
}
|
|
1089
1169
|
);
|
|
1090
1170
|
if (!tooltip) {
|
|
@@ -1112,13 +1192,13 @@ function SidebarMenuAction({
|
|
|
1112
1192
|
className,
|
|
1113
1193
|
asChild = false,
|
|
1114
1194
|
showOnHover = false,
|
|
1195
|
+
slotName = "sidebar-menu-action",
|
|
1115
1196
|
...props
|
|
1116
1197
|
}) {
|
|
1117
1198
|
const Comp = asChild ? Slot : "button";
|
|
1118
1199
|
return /* @__PURE__ */ jsx(
|
|
1119
1200
|
Comp,
|
|
1120
1201
|
{
|
|
1121
|
-
"data-slot": "sidebar-menu-action",
|
|
1122
1202
|
"data-sidebar": "menu-action",
|
|
1123
1203
|
className: cn(
|
|
1124
1204
|
"top-1.5 right-1 w-5 p-0 [&>svg]:size-4 rounded-xl absolute flex aspect-square items-center justify-center text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 [&>svg]:shrink-0",
|
|
@@ -1131,18 +1211,19 @@ function SidebarMenuAction({
|
|
|
1131
1211
|
showOnHover && "md:opacity-0 group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground data-[state=open]:opacity-100",
|
|
1132
1212
|
className
|
|
1133
1213
|
),
|
|
1134
|
-
...props
|
|
1214
|
+
...props,
|
|
1215
|
+
"data-slot": slotName
|
|
1135
1216
|
}
|
|
1136
1217
|
);
|
|
1137
1218
|
}
|
|
1138
1219
|
function SidebarMenuBadge({
|
|
1139
1220
|
className,
|
|
1221
|
+
slotName = "sidebar-menu-badge",
|
|
1140
1222
|
...props
|
|
1141
1223
|
}) {
|
|
1142
1224
|
return /* @__PURE__ */ jsx(
|
|
1143
1225
|
"div",
|
|
1144
1226
|
{
|
|
1145
|
-
"data-slot": "sidebar-menu-badge",
|
|
1146
1227
|
"data-sidebar": "menu-badge",
|
|
1147
1228
|
className: cn(
|
|
1148
1229
|
"right-1 h-5 min-w-5 px-1 text-xs font-medium rounded-xl pointer-events-none absolute flex items-center justify-center text-sidebar-foreground tabular-nums select-none",
|
|
@@ -1153,13 +1234,15 @@ function SidebarMenuBadge({
|
|
|
1153
1234
|
"group-data-[collapsible=icon]:hidden",
|
|
1154
1235
|
className
|
|
1155
1236
|
),
|
|
1156
|
-
...props
|
|
1237
|
+
...props,
|
|
1238
|
+
"data-slot": slotName
|
|
1157
1239
|
}
|
|
1158
1240
|
);
|
|
1159
1241
|
}
|
|
1160
1242
|
function SidebarMenuSkeleton({
|
|
1161
1243
|
className,
|
|
1162
1244
|
showIcon = false,
|
|
1245
|
+
slotName = "sidebar-menu-skeleton",
|
|
1163
1246
|
...props
|
|
1164
1247
|
}) {
|
|
1165
1248
|
const width = React2.useMemo(() => {
|
|
@@ -1168,13 +1251,13 @@ function SidebarMenuSkeleton({
|
|
|
1168
1251
|
return /* @__PURE__ */ jsxs(
|
|
1169
1252
|
"div",
|
|
1170
1253
|
{
|
|
1171
|
-
"data-slot": "sidebar-menu-skeleton",
|
|
1172
1254
|
"data-sidebar": "menu-skeleton",
|
|
1173
1255
|
className: cn(
|
|
1174
1256
|
"h-8 gap-2 px-2 rounded-xl flex items-center",
|
|
1175
1257
|
className
|
|
1176
1258
|
),
|
|
1177
1259
|
...props,
|
|
1260
|
+
"data-slot": slotName,
|
|
1178
1261
|
children: [
|
|
1179
1262
|
showIcon && /* @__PURE__ */ jsx(
|
|
1180
1263
|
Skeleton,
|
|
@@ -1197,32 +1280,37 @@ function SidebarMenuSkeleton({
|
|
|
1197
1280
|
}
|
|
1198
1281
|
);
|
|
1199
1282
|
}
|
|
1200
|
-
function SidebarMenuSub({
|
|
1283
|
+
function SidebarMenuSub({
|
|
1284
|
+
className,
|
|
1285
|
+
slotName = "sidebar-menu-sub",
|
|
1286
|
+
...props
|
|
1287
|
+
}) {
|
|
1201
1288
|
return /* @__PURE__ */ jsx(
|
|
1202
1289
|
"ul",
|
|
1203
1290
|
{
|
|
1204
|
-
"data-slot": "sidebar-menu-sub",
|
|
1205
1291
|
"data-sidebar": "menu-sub",
|
|
1206
1292
|
className: cn(
|
|
1207
1293
|
"mx-3.5 min-w-0 gap-1 px-2.5 py-0.5 flex translate-x-px flex-col border-l border-sidebar-border",
|
|
1208
1294
|
"group-data-[collapsible=icon]:hidden",
|
|
1209
1295
|
className
|
|
1210
1296
|
),
|
|
1211
|
-
...props
|
|
1297
|
+
...props,
|
|
1298
|
+
"data-slot": slotName
|
|
1212
1299
|
}
|
|
1213
1300
|
);
|
|
1214
1301
|
}
|
|
1215
1302
|
function SidebarMenuSubItem({
|
|
1216
1303
|
className,
|
|
1304
|
+
slotName = "sidebar-menu-sub-item",
|
|
1217
1305
|
...props
|
|
1218
1306
|
}) {
|
|
1219
1307
|
return /* @__PURE__ */ jsx(
|
|
1220
1308
|
"li",
|
|
1221
1309
|
{
|
|
1222
|
-
"data-slot": "sidebar-menu-sub-item",
|
|
1223
1310
|
"data-sidebar": "menu-sub-item",
|
|
1224
1311
|
className: cn("group/menu-sub-item relative", className),
|
|
1225
|
-
...props
|
|
1312
|
+
...props,
|
|
1313
|
+
"data-slot": slotName
|
|
1226
1314
|
}
|
|
1227
1315
|
);
|
|
1228
1316
|
}
|
|
@@ -1231,13 +1319,13 @@ function SidebarMenuSubButton({
|
|
|
1231
1319
|
size = "md",
|
|
1232
1320
|
isActive = false,
|
|
1233
1321
|
className,
|
|
1322
|
+
slotName = "sidebar-menu-sub-button",
|
|
1234
1323
|
...props
|
|
1235
1324
|
}) {
|
|
1236
1325
|
const Comp = asChild ? Slot : "a";
|
|
1237
1326
|
return /* @__PURE__ */ jsx(
|
|
1238
1327
|
Comp,
|
|
1239
1328
|
{
|
|
1240
|
-
"data-slot": "sidebar-menu-sub-button",
|
|
1241
1329
|
"data-sidebar": "menu-sub-button",
|
|
1242
1330
|
"data-size": size,
|
|
1243
1331
|
"data-active": isActive,
|
|
@@ -1249,11 +1337,12 @@ function SidebarMenuSubButton({
|
|
|
1249
1337
|
"group-data-[collapsible=icon]:hidden",
|
|
1250
1338
|
className
|
|
1251
1339
|
),
|
|
1252
|
-
...props
|
|
1340
|
+
...props,
|
|
1341
|
+
"data-slot": slotName
|
|
1253
1342
|
}
|
|
1254
1343
|
);
|
|
1255
1344
|
}
|
|
1256
1345
|
|
|
1257
1346
|
export { Avatar, AvatarFallback, AvatarImage, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Icon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, useIsMobile, useSidebar };
|
|
1258
|
-
//# sourceMappingURL=chunk-
|
|
1259
|
-
//# sourceMappingURL=chunk-
|
|
1347
|
+
//# sourceMappingURL=chunk-QHZWW55M.js.map
|
|
1348
|
+
//# sourceMappingURL=chunk-QHZWW55M.js.map
|