@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,7 +1,7 @@
|
|
|
1
|
-
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, Label, DialogFooter } from './chunk-
|
|
1
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, Label, DialogFooter } from './chunk-T2INZOCM.js';
|
|
2
2
|
import { useUiLabels } from './chunk-5AJFQ6C4.js';
|
|
3
|
-
import { Input } from './chunk-
|
|
4
|
-
import { elevatedSurface, cn, panelSurface, glassControl, controlFill, focusRing, nestedSurfaceReset, fieldSurface, Button, buttonVariants, modalSurface, menuSurface } from './chunk-
|
|
3
|
+
import { Input } from './chunk-XZCC6MTE.js';
|
|
4
|
+
import { elevatedSurface, cn, panelSurface, glassControl, controlFill, focusRing, nestedSurfaceReset, fieldSurface, Button, buttonVariants, modalSurface, menuSurface } from './chunk-ODYCBCKS.js';
|
|
5
5
|
import { Minus, AlertCircle, ChevronRight, ChevronLeftIcon, ChevronRightIcon, ChevronDownIcon, SearchIcon, SearchXIcon, CheckIcon, ChevronUpIcon, ArrowLeftIcon, XIcon } from 'lucide-react';
|
|
6
6
|
import * as React6 from 'react';
|
|
7
7
|
import { useId, useState, useEffect } from 'react';
|
|
@@ -35,7 +35,8 @@ function ConfirmDialog({
|
|
|
35
35
|
requiredValue,
|
|
36
36
|
requiredValueLabel = "Type {{value}} to confirm",
|
|
37
37
|
onConfirm,
|
|
38
|
-
onCancel
|
|
38
|
+
onCancel,
|
|
39
|
+
slotName = "confirm-dialog"
|
|
39
40
|
}) {
|
|
40
41
|
const labels = useUiLabels("confirmDialog", confirmDialogDefaultLabels, {
|
|
41
42
|
title,
|
|
@@ -65,7 +66,7 @@ function ConfirmDialog({
|
|
|
65
66
|
onCancel?.();
|
|
66
67
|
onOpenChange(false);
|
|
67
68
|
};
|
|
68
|
-
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-w-md p-0",
|
|
69
|
+
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-w-md p-0", slotName, children: [
|
|
69
70
|
/* @__PURE__ */ jsxs(DialogHeader, { className: "p-6 md:p-8", children: [
|
|
70
71
|
/* @__PURE__ */ jsx("div", { className: "mb-6 flex justify-center", children: /* @__PURE__ */ jsx(
|
|
71
72
|
"div",
|
|
@@ -147,44 +148,50 @@ var alertVariants = cva(
|
|
|
147
148
|
function Alert({
|
|
148
149
|
className,
|
|
149
150
|
variant,
|
|
151
|
+
slotName = "alert",
|
|
150
152
|
...props
|
|
151
153
|
}) {
|
|
152
154
|
return /* @__PURE__ */ jsx(
|
|
153
155
|
"div",
|
|
154
156
|
{
|
|
155
|
-
"data-slot": "alert",
|
|
156
157
|
role: "alert",
|
|
157
158
|
className: cn(alertVariants({ variant }), className),
|
|
158
|
-
...props
|
|
159
|
+
...props,
|
|
160
|
+
"data-slot": slotName
|
|
159
161
|
}
|
|
160
162
|
);
|
|
161
163
|
}
|
|
162
|
-
function AlertTitle({
|
|
164
|
+
function AlertTitle({
|
|
165
|
+
className,
|
|
166
|
+
slotName = "alert-title",
|
|
167
|
+
...props
|
|
168
|
+
}) {
|
|
163
169
|
return /* @__PURE__ */ jsx(
|
|
164
170
|
"div",
|
|
165
171
|
{
|
|
166
|
-
"data-slot": "alert-title",
|
|
167
172
|
className: cn(
|
|
168
173
|
"min-h-4 font-medium tracking-tight col-start-2 line-clamp-1",
|
|
169
174
|
className
|
|
170
175
|
),
|
|
171
|
-
...props
|
|
176
|
+
...props,
|
|
177
|
+
"data-slot": slotName
|
|
172
178
|
}
|
|
173
179
|
);
|
|
174
180
|
}
|
|
175
181
|
function AlertDescription({
|
|
176
182
|
className,
|
|
183
|
+
slotName = "alert-description",
|
|
177
184
|
...props
|
|
178
185
|
}) {
|
|
179
186
|
return /* @__PURE__ */ jsx(
|
|
180
187
|
"div",
|
|
181
188
|
{
|
|
182
|
-
"data-slot": "alert-description",
|
|
183
189
|
className: cn(
|
|
184
190
|
"gap-1 text-sm [&_p]:leading-relaxed col-start-2 grid justify-items-start text-muted-foreground",
|
|
185
191
|
className
|
|
186
192
|
),
|
|
187
|
-
...props
|
|
193
|
+
...props,
|
|
194
|
+
"data-slot": slotName
|
|
188
195
|
}
|
|
189
196
|
);
|
|
190
197
|
}
|
|
@@ -196,6 +203,7 @@ function Calendar({
|
|
|
196
203
|
buttonVariant = "ghost",
|
|
197
204
|
formatters,
|
|
198
205
|
components,
|
|
206
|
+
slotName = "calendar",
|
|
199
207
|
...props
|
|
200
208
|
}) {
|
|
201
209
|
const defaultClassNames = getDefaultClassNames();
|
|
@@ -316,10 +324,10 @@ function Calendar({
|
|
|
316
324
|
return /* @__PURE__ */ jsx(
|
|
317
325
|
"div",
|
|
318
326
|
{
|
|
319
|
-
"data-slot": "calendar",
|
|
320
327
|
ref: rootRef,
|
|
321
328
|
className: cn(className2),
|
|
322
|
-
...props2
|
|
329
|
+
...props2,
|
|
330
|
+
"data-slot": slotName
|
|
323
331
|
}
|
|
324
332
|
);
|
|
325
333
|
},
|
|
@@ -393,19 +401,20 @@ function CalendarDayButton({
|
|
|
393
401
|
}
|
|
394
402
|
function Command({
|
|
395
403
|
className,
|
|
404
|
+
slotName = "command",
|
|
396
405
|
...props
|
|
397
406
|
}) {
|
|
398
407
|
return /* @__PURE__ */ jsx(
|
|
399
408
|
Command$1,
|
|
400
409
|
{
|
|
401
|
-
"data-slot": "command",
|
|
402
410
|
className: cn(
|
|
403
411
|
elevatedSurface,
|
|
404
412
|
nestedSurfaceReset,
|
|
405
413
|
"flex h-full w-full flex-col overflow-hidden bg-card text-card-foreground",
|
|
406
414
|
className
|
|
407
415
|
),
|
|
408
|
-
...props
|
|
416
|
+
...props,
|
|
417
|
+
"data-slot": slotName
|
|
409
418
|
}
|
|
410
419
|
);
|
|
411
420
|
}
|
|
@@ -437,6 +446,7 @@ function CommandDialog({
|
|
|
437
446
|
}
|
|
438
447
|
function CommandInput({
|
|
439
448
|
className,
|
|
449
|
+
slotName = "command-input",
|
|
440
450
|
...props
|
|
441
451
|
}) {
|
|
442
452
|
return /* @__PURE__ */ jsx("div", { className: "shrink-0 border-b border-border", children: /* @__PURE__ */ jsxs(
|
|
@@ -452,12 +462,12 @@ function CommandInput({
|
|
|
452
462
|
/* @__PURE__ */ jsx(
|
|
453
463
|
Command$1.Input,
|
|
454
464
|
{
|
|
455
|
-
"data-slot": "command-input",
|
|
456
465
|
className: cn(
|
|
457
466
|
"h-11 text-sm font-medium flex w-full bg-transparent outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
458
467
|
className
|
|
459
468
|
),
|
|
460
|
-
...props
|
|
469
|
+
...props,
|
|
470
|
+
"data-slot": slotName
|
|
461
471
|
}
|
|
462
472
|
)
|
|
463
473
|
]
|
|
@@ -466,34 +476,36 @@ function CommandInput({
|
|
|
466
476
|
}
|
|
467
477
|
function CommandList({
|
|
468
478
|
className,
|
|
479
|
+
slotName = "command-list",
|
|
469
480
|
...props
|
|
470
481
|
}) {
|
|
471
482
|
return /* @__PURE__ */ jsx(
|
|
472
483
|
Command$1.List,
|
|
473
484
|
{
|
|
474
|
-
"data-slot": "command-list",
|
|
475
485
|
className: cn(
|
|
476
486
|
"scroll-py-1 max-h-[300px] overflow-x-hidden overflow-y-auto",
|
|
477
487
|
className
|
|
478
488
|
),
|
|
479
|
-
...props
|
|
489
|
+
...props,
|
|
490
|
+
"data-slot": slotName
|
|
480
491
|
}
|
|
481
492
|
);
|
|
482
493
|
}
|
|
483
494
|
function CommandEmpty({
|
|
484
495
|
className,
|
|
485
496
|
children,
|
|
497
|
+
slotName = "command-empty",
|
|
486
498
|
...props
|
|
487
499
|
}) {
|
|
488
500
|
return /* @__PURE__ */ jsxs(
|
|
489
501
|
Command$1.Empty,
|
|
490
502
|
{
|
|
491
|
-
"data-slot": "command-empty",
|
|
492
503
|
className: cn(
|
|
493
504
|
"gap-3 px-6 py-10 flex flex-col items-center justify-center text-center",
|
|
494
505
|
className
|
|
495
506
|
),
|
|
496
507
|
...props,
|
|
508
|
+
"data-slot": slotName,
|
|
497
509
|
children: [
|
|
498
510
|
/* @__PURE__ */ jsx("span", { className: "size-10 flex items-center justify-center rounded-full bg-surface-recessed text-muted-foreground", children: /* @__PURE__ */ jsx(SearchXIcon, { className: "size-5" }) }),
|
|
499
511
|
/* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children })
|
|
@@ -503,112 +515,128 @@ function CommandEmpty({
|
|
|
503
515
|
}
|
|
504
516
|
function CommandGroup({
|
|
505
517
|
className,
|
|
518
|
+
slotName = "command-group",
|
|
506
519
|
...props
|
|
507
520
|
}) {
|
|
508
521
|
return /* @__PURE__ */ jsx(
|
|
509
522
|
Command$1.Group,
|
|
510
523
|
{
|
|
511
|
-
"data-slot": "command-group",
|
|
512
524
|
className: cn(
|
|
513
525
|
"p-3 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium overflow-hidden text-foreground [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
514
526
|
className
|
|
515
527
|
),
|
|
516
|
-
...props
|
|
528
|
+
...props,
|
|
529
|
+
"data-slot": slotName
|
|
517
530
|
}
|
|
518
531
|
);
|
|
519
532
|
}
|
|
520
533
|
function CommandSeparator({
|
|
521
534
|
className,
|
|
535
|
+
slotName = "command-separator",
|
|
522
536
|
...props
|
|
523
537
|
}) {
|
|
524
538
|
return /* @__PURE__ */ jsx(
|
|
525
539
|
Command$1.Separator,
|
|
526
540
|
{
|
|
527
|
-
"data-slot": "command-separator",
|
|
528
541
|
className: cn("mx-3 h-px bg-border", className),
|
|
529
|
-
...props
|
|
542
|
+
...props,
|
|
543
|
+
"data-slot": slotName
|
|
530
544
|
}
|
|
531
545
|
);
|
|
532
546
|
}
|
|
533
547
|
function CommandItem({
|
|
534
548
|
className,
|
|
549
|
+
slotName = "command-item",
|
|
535
550
|
...props
|
|
536
551
|
}) {
|
|
537
552
|
return /* @__PURE__ */ jsx(
|
|
538
553
|
Command$1.Item,
|
|
539
554
|
{
|
|
540
|
-
"data-slot": "command-item",
|
|
541
555
|
className: cn(
|
|
542
556
|
"gap-2 px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 rounded-xl relative flex cursor-default items-center outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
543
557
|
className
|
|
544
558
|
),
|
|
545
|
-
...props
|
|
559
|
+
...props,
|
|
560
|
+
"data-slot": slotName
|
|
546
561
|
}
|
|
547
562
|
);
|
|
548
563
|
}
|
|
549
564
|
function CommandShortcut({
|
|
550
565
|
className,
|
|
566
|
+
slotName = "command-shortcut",
|
|
551
567
|
...props
|
|
552
568
|
}) {
|
|
553
569
|
return /* @__PURE__ */ jsx(
|
|
554
570
|
"span",
|
|
555
571
|
{
|
|
556
|
-
"data-slot": "command-shortcut",
|
|
557
572
|
className: cn(
|
|
558
573
|
"text-xs tracking-widest ml-auto text-muted-foreground",
|
|
559
574
|
className
|
|
560
575
|
),
|
|
561
|
-
...props
|
|
576
|
+
...props,
|
|
577
|
+
"data-slot": slotName
|
|
562
578
|
}
|
|
563
579
|
);
|
|
564
580
|
}
|
|
565
581
|
var Popover = Popover$1.Root;
|
|
566
582
|
var PopoverTrigger = Popover$1.Trigger;
|
|
567
583
|
var PopoverAnchor = Popover$1.Anchor;
|
|
568
|
-
var PopoverContent = React6.forwardRef(
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
sideOffset,
|
|
575
|
-
className: cn(
|
|
576
|
-
`${panelSurface} p-4 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 z-50 w-full origin-[--radix-popover-content-transform-origin] bg-popover/90 outline-none`,
|
|
577
|
-
className
|
|
578
|
-
),
|
|
584
|
+
var PopoverContent = React6.forwardRef(
|
|
585
|
+
({
|
|
586
|
+
className,
|
|
587
|
+
align = "center",
|
|
588
|
+
sideOffset = 4,
|
|
589
|
+
slotName = "popover-content",
|
|
579
590
|
...props
|
|
580
|
-
}
|
|
581
|
-
|
|
591
|
+
}, ref) => /* @__PURE__ */ jsx(Popover$1.Portal, { children: /* @__PURE__ */ jsx(
|
|
592
|
+
Popover$1.Content,
|
|
593
|
+
{
|
|
594
|
+
ref,
|
|
595
|
+
align,
|
|
596
|
+
sideOffset,
|
|
597
|
+
className: cn(
|
|
598
|
+
`${panelSurface} p-4 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 z-50 w-full origin-[--radix-popover-content-transform-origin] bg-popover/90 outline-none`,
|
|
599
|
+
className
|
|
600
|
+
),
|
|
601
|
+
...props,
|
|
602
|
+
"data-slot": slotName
|
|
603
|
+
}
|
|
604
|
+
) })
|
|
605
|
+
);
|
|
582
606
|
PopoverContent.displayName = Popover$1.Content.displayName;
|
|
583
607
|
function Select({
|
|
608
|
+
slotName = "select",
|
|
584
609
|
...props
|
|
585
610
|
}) {
|
|
586
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Root, { "data-slot":
|
|
611
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Root, { ...props, "data-slot": slotName });
|
|
587
612
|
}
|
|
588
613
|
function SelectGroup({
|
|
614
|
+
slotName = "select-group",
|
|
589
615
|
...props
|
|
590
616
|
}) {
|
|
591
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Group, { "data-slot":
|
|
617
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Group, { ...props, "data-slot": slotName });
|
|
592
618
|
}
|
|
593
619
|
function SelectValue({
|
|
620
|
+
slotName = "select-value",
|
|
594
621
|
...props
|
|
595
622
|
}) {
|
|
596
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Value, { "data-slot":
|
|
623
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Value, { ...props, "data-slot": slotName });
|
|
597
624
|
}
|
|
598
625
|
function SelectTrigger({
|
|
599
626
|
className,
|
|
600
627
|
children,
|
|
628
|
+
slotName = "select-trigger",
|
|
601
629
|
...props
|
|
602
630
|
}) {
|
|
603
631
|
return /* @__PURE__ */ jsxs(
|
|
604
632
|
SelectPrimitive.Trigger,
|
|
605
633
|
{
|
|
606
|
-
"data-slot": "select-trigger",
|
|
607
634
|
className: cn(
|
|
608
635
|
`${fieldSurface} h-11 px-4 text-sm font-medium *:data-[slot=select-value]:gap-2 [&_svg:not([class*='size-'])]:size-4 flex w-full items-center justify-between transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0 [&>span]:line-clamp-1 ${focusRing}`,
|
|
609
636
|
className
|
|
610
637
|
),
|
|
611
638
|
...props,
|
|
639
|
+
"data-slot": slotName,
|
|
612
640
|
children: [
|
|
613
641
|
children,
|
|
614
642
|
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 opacity-50" }) })
|
|
@@ -620,12 +648,12 @@ function SelectContent({
|
|
|
620
648
|
className,
|
|
621
649
|
children,
|
|
622
650
|
position = "popper",
|
|
651
|
+
slotName = "select-content",
|
|
623
652
|
...props
|
|
624
653
|
}) {
|
|
625
654
|
return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
626
655
|
SelectPrimitive.Content,
|
|
627
656
|
{
|
|
628
|
-
"data-slot": "select-content",
|
|
629
657
|
className: cn(
|
|
630
658
|
`${menuSurface} max-h-96 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 relative z-50 min-w-[8rem] overflow-hidden bg-popover/95`,
|
|
631
659
|
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
@@ -633,6 +661,7 @@ function SelectContent({
|
|
|
633
661
|
),
|
|
634
662
|
position,
|
|
635
663
|
...props,
|
|
664
|
+
"data-slot": slotName,
|
|
636
665
|
children: [
|
|
637
666
|
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
638
667
|
/* @__PURE__ */ jsx(
|
|
@@ -652,34 +681,36 @@ function SelectContent({
|
|
|
652
681
|
}
|
|
653
682
|
function SelectLabel({
|
|
654
683
|
className,
|
|
684
|
+
slotName = "select-label",
|
|
655
685
|
...props
|
|
656
686
|
}) {
|
|
657
687
|
return /* @__PURE__ */ jsx(
|
|
658
688
|
SelectPrimitive.Label,
|
|
659
689
|
{
|
|
660
|
-
"data-slot": "select-label",
|
|
661
690
|
className: cn(
|
|
662
691
|
"px-2 py-1.5 text-xs font-medium tracking-wider text-muted-foreground uppercase",
|
|
663
692
|
className
|
|
664
693
|
),
|
|
665
|
-
...props
|
|
694
|
+
...props,
|
|
695
|
+
"data-slot": slotName
|
|
666
696
|
}
|
|
667
697
|
);
|
|
668
698
|
}
|
|
669
699
|
function SelectItem({
|
|
670
700
|
className,
|
|
671
701
|
children,
|
|
702
|
+
slotName = "select-item",
|
|
672
703
|
...props
|
|
673
704
|
}) {
|
|
674
705
|
return /* @__PURE__ */ jsxs(
|
|
675
706
|
SelectPrimitive.Item,
|
|
676
707
|
{
|
|
677
|
-
"data-slot": "select-item",
|
|
678
708
|
className: cn(
|
|
679
709
|
"gap-2 rounded-xl py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:gap-2 focus:font-semibold relative flex w-full 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 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center",
|
|
680
710
|
className
|
|
681
711
|
),
|
|
682
712
|
...props,
|
|
713
|
+
"data-slot": slotName,
|
|
683
714
|
children: [
|
|
684
715
|
/* @__PURE__ */ jsx("span", { className: "right-2 size-3.5 absolute flex items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
|
|
685
716
|
/* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
|
|
@@ -689,50 +720,53 @@ function SelectItem({
|
|
|
689
720
|
}
|
|
690
721
|
function SelectSeparator({
|
|
691
722
|
className,
|
|
723
|
+
slotName = "select-separator",
|
|
692
724
|
...props
|
|
693
725
|
}) {
|
|
694
726
|
return /* @__PURE__ */ jsx(
|
|
695
727
|
SelectPrimitive.Separator,
|
|
696
728
|
{
|
|
697
|
-
"data-slot": "select-separator",
|
|
698
729
|
className: cn(
|
|
699
730
|
"-mx-1 my-1 pointer-events-none h-px bg-border",
|
|
700
731
|
className
|
|
701
732
|
),
|
|
702
|
-
...props
|
|
733
|
+
...props,
|
|
734
|
+
"data-slot": slotName
|
|
703
735
|
}
|
|
704
736
|
);
|
|
705
737
|
}
|
|
706
738
|
function SelectScrollUpButton({
|
|
707
739
|
className,
|
|
740
|
+
slotName = "select-scroll-up-button",
|
|
708
741
|
...props
|
|
709
742
|
}) {
|
|
710
743
|
return /* @__PURE__ */ jsx(
|
|
711
744
|
SelectPrimitive.ScrollUpButton,
|
|
712
745
|
{
|
|
713
|
-
"data-slot": "select-scroll-up-button",
|
|
714
746
|
className: cn(
|
|
715
747
|
"py-1 flex cursor-default items-center justify-center",
|
|
716
748
|
className
|
|
717
749
|
),
|
|
718
750
|
...props,
|
|
751
|
+
"data-slot": slotName,
|
|
719
752
|
children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
|
|
720
753
|
}
|
|
721
754
|
);
|
|
722
755
|
}
|
|
723
756
|
function SelectScrollDownButton({
|
|
724
757
|
className,
|
|
758
|
+
slotName = "select-scroll-down-button",
|
|
725
759
|
...props
|
|
726
760
|
}) {
|
|
727
761
|
return /* @__PURE__ */ jsx(
|
|
728
762
|
SelectPrimitive.ScrollDownButton,
|
|
729
763
|
{
|
|
730
|
-
"data-slot": "select-scroll-down-button",
|
|
731
764
|
className: cn(
|
|
732
765
|
"py-1 flex cursor-default items-center justify-center",
|
|
733
766
|
className
|
|
734
767
|
),
|
|
735
768
|
...props,
|
|
769
|
+
"data-slot": slotName,
|
|
736
770
|
children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
|
|
737
771
|
}
|
|
738
772
|
);
|
|
@@ -748,7 +782,12 @@ function useField() {
|
|
|
748
782
|
}
|
|
749
783
|
return field;
|
|
750
784
|
}
|
|
751
|
-
function FieldError({
|
|
785
|
+
function FieldError({
|
|
786
|
+
message,
|
|
787
|
+
className,
|
|
788
|
+
slotName = "field-error",
|
|
789
|
+
...props
|
|
790
|
+
}) {
|
|
752
791
|
const field = useOptionalField();
|
|
753
792
|
if (!message) {
|
|
754
793
|
return null;
|
|
@@ -761,8 +800,8 @@ function FieldError({ message, className, ...props }) {
|
|
|
761
800
|
"ml-1 text-xs font-medium text-destructive group-data-[orientation=horizontal]/field:col-span-2 group-data-[orientation=horizontal]/field:row-start-3",
|
|
762
801
|
className
|
|
763
802
|
),
|
|
764
|
-
"data-slot": "field-error",
|
|
765
803
|
...props,
|
|
804
|
+
"data-slot": slotName,
|
|
766
805
|
children: message
|
|
767
806
|
}
|
|
768
807
|
);
|
|
@@ -784,7 +823,8 @@ function useFloatingSheetStack() {
|
|
|
784
823
|
}
|
|
785
824
|
function FloatingSheetStack({
|
|
786
825
|
children,
|
|
787
|
-
labels
|
|
826
|
+
labels,
|
|
827
|
+
slotName = "floating-sheet-stack"
|
|
788
828
|
}) {
|
|
789
829
|
const { backLabel, closeLabel } = useUiLabels(
|
|
790
830
|
"floatingSheet",
|
|
@@ -848,7 +888,6 @@ function FloatingSheetStack({
|
|
|
848
888
|
/* @__PURE__ */ jsxs(
|
|
849
889
|
DialogPrimitive.Content,
|
|
850
890
|
{
|
|
851
|
-
"data-slot": "floating-sheet-stack",
|
|
852
891
|
"aria-describedby": void 0,
|
|
853
892
|
onEscapeKeyDown: (event) => {
|
|
854
893
|
event.preventDefault();
|
|
@@ -864,6 +903,7 @@ function FloatingSheetStack({
|
|
|
864
903
|
onOpenAutoFocus: (event) => event.preventDefault(),
|
|
865
904
|
onCloseAutoFocus: (event) => event.preventDefault(),
|
|
866
905
|
className: "inset-y-0 right-0 sm:inset-y-4 sm:right-4 sm:w-[calc(100vw-2rem)] sm:max-w-lg fixed z-50 w-full outline-none",
|
|
906
|
+
"data-slot": slotName,
|
|
867
907
|
children: [
|
|
868
908
|
/* @__PURE__ */ jsx(DialogPrimitive.Title, { className: "sr-only", children: top?.title }),
|
|
869
909
|
/* @__PURE__ */ jsx(
|
|
@@ -890,6 +930,7 @@ function FloatingSheet({
|
|
|
890
930
|
persistent = false,
|
|
891
931
|
className,
|
|
892
932
|
children,
|
|
933
|
+
slotName = "floating-sheet",
|
|
893
934
|
...props
|
|
894
935
|
}) {
|
|
895
936
|
const { labels, container, entries, register, unregister, closeAll } = useFloatingSheetStack();
|
|
@@ -958,7 +999,6 @@ function FloatingSheet({
|
|
|
958
999
|
"section",
|
|
959
1000
|
{
|
|
960
1001
|
ref: panelRef,
|
|
961
|
-
"data-slot": "floating-sheet",
|
|
962
1002
|
"data-depth": depth,
|
|
963
1003
|
role: "dialog",
|
|
964
1004
|
"aria-labelledby": titleId,
|
|
@@ -976,6 +1016,7 @@ function FloatingSheet({
|
|
|
976
1016
|
className
|
|
977
1017
|
),
|
|
978
1018
|
...props,
|
|
1019
|
+
"data-slot": slotName,
|
|
979
1020
|
children: [
|
|
980
1021
|
/* @__PURE__ */ jsxs(
|
|
981
1022
|
"header",
|
|
@@ -1043,30 +1084,32 @@ function FloatingSheet({
|
|
|
1043
1084
|
}
|
|
1044
1085
|
function FloatingSheetBody({
|
|
1045
1086
|
className,
|
|
1087
|
+
slotName = "floating-sheet-body",
|
|
1046
1088
|
...props
|
|
1047
1089
|
}) {
|
|
1048
1090
|
return /* @__PURE__ */ jsx(
|
|
1049
1091
|
"div",
|
|
1050
1092
|
{
|
|
1051
|
-
"data-slot": "floating-sheet-body",
|
|
1052
1093
|
className: cn("p-5 flex-1 overflow-y-auto", className),
|
|
1053
|
-
...props
|
|
1094
|
+
...props,
|
|
1095
|
+
"data-slot": slotName
|
|
1054
1096
|
}
|
|
1055
1097
|
);
|
|
1056
1098
|
}
|
|
1057
1099
|
function FloatingSheetFooter({
|
|
1058
1100
|
className,
|
|
1101
|
+
slotName = "floating-sheet-footer",
|
|
1059
1102
|
...props
|
|
1060
1103
|
}) {
|
|
1061
1104
|
return /* @__PURE__ */ jsx(
|
|
1062
1105
|
"div",
|
|
1063
1106
|
{
|
|
1064
|
-
"data-slot": "floating-sheet-footer",
|
|
1065
1107
|
className: cn(
|
|
1066
1108
|
"gap-2 p-5 mt-auto flex items-center justify-end border-t border-border",
|
|
1067
1109
|
className
|
|
1068
1110
|
),
|
|
1069
|
-
...props
|
|
1111
|
+
...props,
|
|
1112
|
+
"data-slot": slotName
|
|
1070
1113
|
}
|
|
1071
1114
|
);
|
|
1072
1115
|
}
|
|
@@ -1085,14 +1128,13 @@ var InputOTP = React6.forwardRef(({ className, containerClassName, ...props }, r
|
|
|
1085
1128
|
InputOTP.displayName = "InputOTP";
|
|
1086
1129
|
var InputOTPGroup = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
1087
1130
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
1088
|
-
var InputOTPSlot = React6.forwardRef(({ index, className, ...props }, ref) => {
|
|
1131
|
+
var InputOTPSlot = React6.forwardRef(({ index, className, slotName = "input-otp-slot", ...props }, ref) => {
|
|
1089
1132
|
const inputOTPContext = React6.useContext(OTPInputContext);
|
|
1090
1133
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
1091
1134
|
return /* @__PURE__ */ jsxs(
|
|
1092
1135
|
"div",
|
|
1093
1136
|
{
|
|
1094
1137
|
ref,
|
|
1095
|
-
"data-slot": "input-otp-slot",
|
|
1096
1138
|
className: cn(
|
|
1097
1139
|
glassControl,
|
|
1098
1140
|
controlFill,
|
|
@@ -1101,6 +1143,7 @@ var InputOTPSlot = React6.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
1101
1143
|
className
|
|
1102
1144
|
),
|
|
1103
1145
|
...props,
|
|
1146
|
+
"data-slot": slotName,
|
|
1104
1147
|
children: [
|
|
1105
1148
|
char,
|
|
1106
1149
|
hasFakeCaret && /* @__PURE__ */ jsx("div", { className: "inset-0 pointer-events-none absolute flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "h-4 animate-caret-blink w-px bg-foreground duration-1000" }) })
|
|
@@ -1111,16 +1154,16 @@ var InputOTPSlot = React6.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
1111
1154
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
1112
1155
|
var InputOTPSeparator = React6.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx(Minus, {}) }));
|
|
1113
1156
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
1114
|
-
var Switch = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1157
|
+
var Switch = React6.forwardRef(({ className, slotName = "switch", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1115
1158
|
SwitchPrimitives.Root,
|
|
1116
1159
|
{
|
|
1117
|
-
"data-slot": "switch",
|
|
1118
1160
|
className: cn(
|
|
1119
1161
|
`peer h-6 w-11 shadow-sm inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent transition-colors disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input ${focusRing}`,
|
|
1120
1162
|
className
|
|
1121
1163
|
),
|
|
1122
1164
|
...props,
|
|
1123
1165
|
ref,
|
|
1166
|
+
"data-slot": slotName,
|
|
1124
1167
|
children: /* @__PURE__ */ jsx(
|
|
1125
1168
|
SwitchPrimitives.Thumb,
|
|
1126
1169
|
{
|
|
@@ -1133,38 +1176,37 @@ var Switch = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1133
1176
|
}
|
|
1134
1177
|
));
|
|
1135
1178
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
1136
|
-
var Tabs = React6.forwardRef((props, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Root, { "data-slot":
|
|
1179
|
+
var Tabs = React6.forwardRef(({ slotName = "tabs", ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Root, { ref, ...props, "data-slot": slotName }));
|
|
1137
1180
|
Tabs.displayName = TabsPrimitive.Root.displayName;
|
|
1138
|
-
var TabsList = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1181
|
+
var TabsList = React6.forwardRef(({ className, slotName = "tabs-list", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1139
1182
|
TabsPrimitive.List,
|
|
1140
1183
|
{
|
|
1141
|
-
"data-slot": "tabs-list",
|
|
1142
1184
|
ref,
|
|
1143
1185
|
className: cn(
|
|
1144
1186
|
"h-11 p-1.5 rounded-2xl inline-flex items-center justify-center bg-muted text-muted-foreground",
|
|
1145
1187
|
className
|
|
1146
1188
|
),
|
|
1147
|
-
...props
|
|
1189
|
+
...props,
|
|
1190
|
+
"data-slot": slotName
|
|
1148
1191
|
}
|
|
1149
1192
|
));
|
|
1150
1193
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
1151
|
-
var TabsTrigger = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1194
|
+
var TabsTrigger = React6.forwardRef(({ className, slotName = "tabs-trigger", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1152
1195
|
TabsPrimitive.Trigger,
|
|
1153
1196
|
{
|
|
1154
|
-
"data-slot": "tabs-trigger",
|
|
1155
1197
|
ref,
|
|
1156
1198
|
className: cn(
|
|
1157
1199
|
`px-4 text-sm font-medium data-[state=active]:shadow-sm h-8 rounded-xl data-[state=active]:font-semibold inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground ${focusRing}`,
|
|
1158
1200
|
className
|
|
1159
1201
|
),
|
|
1160
|
-
...props
|
|
1202
|
+
...props,
|
|
1203
|
+
"data-slot": slotName
|
|
1161
1204
|
}
|
|
1162
1205
|
));
|
|
1163
1206
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
1164
|
-
var TabsContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1207
|
+
var TabsContent = React6.forwardRef(({ className, slotName = "tabs-content", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1165
1208
|
TabsPrimitive.Content,
|
|
1166
1209
|
{
|
|
1167
|
-
"data-slot": "tabs-content",
|
|
1168
1210
|
ref,
|
|
1169
1211
|
className: cn(
|
|
1170
1212
|
elevatedSurface,
|
|
@@ -1172,15 +1214,15 @@ var TabsContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1172
1214
|
`mt-2 p-5 bg-card ${focusRing}`,
|
|
1173
1215
|
className
|
|
1174
1216
|
),
|
|
1175
|
-
...props
|
|
1217
|
+
...props,
|
|
1218
|
+
"data-slot": slotName
|
|
1176
1219
|
}
|
|
1177
1220
|
));
|
|
1178
1221
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
1179
|
-
var Textarea = React6.forwardRef(({ className, ...props }, ref) => {
|
|
1222
|
+
var Textarea = React6.forwardRef(({ className, slotName = "textarea", ...props }, ref) => {
|
|
1180
1223
|
return /* @__PURE__ */ jsx(
|
|
1181
1224
|
"textarea",
|
|
1182
1225
|
{
|
|
1183
|
-
"data-slot": "textarea",
|
|
1184
1226
|
className: cn(
|
|
1185
1227
|
fieldSurface,
|
|
1186
1228
|
"px-4 py-3 text-sm font-medium min-h-24 flex w-full resize-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -1189,12 +1231,13 @@ var Textarea = React6.forwardRef(({ className, ...props }, ref) => {
|
|
|
1189
1231
|
className
|
|
1190
1232
|
),
|
|
1191
1233
|
ref,
|
|
1192
|
-
...props
|
|
1234
|
+
...props,
|
|
1235
|
+
"data-slot": slotName
|
|
1193
1236
|
}
|
|
1194
1237
|
);
|
|
1195
1238
|
});
|
|
1196
1239
|
Textarea.displayName = "Textarea";
|
|
1197
1240
|
|
|
1198
1241
|
export { Alert, AlertDescription, AlertTitle, Calendar, CalendarDayButton, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmDialog, FieldContext, FieldError, FloatingSheet, FloatingSheetBody, FloatingSheetFooter, FloatingSheetStack, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, confirmDialogDefaultLabels, floatingSheetDefaultLabels, useField };
|
|
1199
|
-
//# sourceMappingURL=chunk-
|
|
1200
|
-
//# sourceMappingURL=chunk-
|
|
1242
|
+
//# sourceMappingURL=chunk-CFDDAFPJ.js.map
|
|
1243
|
+
//# sourceMappingURL=chunk-CFDDAFPJ.js.map
|