@page-speed/forms 0.5.5 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-IFAYTPIF.js → chunk-5WWMVS2I.js} +9 -10
- package/dist/chunk-5WWMVS2I.js.map +1 -0
- package/dist/{chunk-232KNGJI.js → chunk-A7R6GEMA.js} +4 -4
- package/dist/chunk-A7R6GEMA.js.map +1 -0
- package/dist/{chunk-XNZHEEGT.cjs → chunk-FIDKDYT7.cjs} +121 -122
- package/dist/chunk-FIDKDYT7.cjs.map +1 -0
- package/dist/{chunk-EX6CRLKG.cjs → chunk-KPHMVGTU.cjs} +6 -6
- package/dist/{chunk-EX6CRLKG.cjs.map → chunk-KPHMVGTU.cjs.map} +1 -1
- package/dist/{chunk-VLGZG2VP.js → chunk-N2HOVRRN.js} +4 -4
- package/dist/{chunk-VLGZG2VP.js.map → chunk-N2HOVRRN.js.map} +1 -1
- package/dist/{chunk-27JUYRDE.cjs → chunk-O4ZLR7AN.cjs} +10 -10
- package/dist/{chunk-27JUYRDE.cjs.map → chunk-O4ZLR7AN.cjs.map} +1 -1
- package/dist/{chunk-24RPM43T.js → chunk-Q7VR374Y.js} +3 -3
- package/dist/{chunk-24RPM43T.js.map → chunk-Q7VR374Y.js.map} +1 -1
- package/dist/{chunk-DKLLPKZN.cjs → chunk-QQSBW6N3.cjs} +4 -4
- package/dist/chunk-QQSBW6N3.cjs.map +1 -0
- package/dist/core.cjs +9 -9
- package/dist/core.js +3 -3
- package/dist/index.cjs +14 -14
- package/dist/index.js +3 -3
- package/dist/inputs.cjs +14 -14
- package/dist/inputs.js +2 -2
- package/dist/integration.cjs +17 -17
- package/dist/integration.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-232KNGJI.js.map +0 -1
- package/dist/chunk-DKLLPKZN.cjs.map +0 -1
- package/dist/chunk-IFAYTPIF.js.map +0 -1
- package/dist/chunk-XNZHEEGT.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQQSBW6N3_cjs = require('./chunk-QQSBW6N3.cjs');
|
|
4
4
|
var React21 = require('react');
|
|
5
5
|
var radixUi = require('radix-ui');
|
|
6
6
|
var cmdk = require('cmdk');
|
|
@@ -36,7 +36,7 @@ var Input = React21__namespace.forwardRef(
|
|
|
36
36
|
ref,
|
|
37
37
|
type,
|
|
38
38
|
"data-slot": "input",
|
|
39
|
-
className:
|
|
39
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
40
40
|
// Core structure - no hardcoded colors, uses CSS variables
|
|
41
41
|
"flex h-9 w-full min-w-0 rounded-md border border-input",
|
|
42
42
|
"bg-transparent px-3 py-1 text-base shadow-sm",
|
|
@@ -51,7 +51,7 @@ var Input = React21__namespace.forwardRef(
|
|
|
51
51
|
"file:inline-flex file:h-7 file:border-0 file:bg-transparent",
|
|
52
52
|
"file:text-sm file:font-medium",
|
|
53
53
|
// Autofill reset - prevents browser from overriding our dynamic colors
|
|
54
|
-
|
|
54
|
+
chunkQQSBW6N3_cjs.INPUT_AUTOFILL_RESET_CLASSES,
|
|
55
55
|
className
|
|
56
56
|
),
|
|
57
57
|
...props
|
|
@@ -95,7 +95,7 @@ function TextInput({
|
|
|
95
95
|
placeholder,
|
|
96
96
|
disabled,
|
|
97
97
|
required,
|
|
98
|
-
className:
|
|
98
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
99
99
|
// Valid value indicator - ring-2 when has value and no error
|
|
100
100
|
!error && hasValue && "ring-2 ring-ring",
|
|
101
101
|
// Error state - handled by Input component via aria-invalid
|
|
@@ -114,7 +114,7 @@ function Textarea({ className, ...props }) {
|
|
|
114
114
|
"textarea",
|
|
115
115
|
{
|
|
116
116
|
"data-slot": "textarea",
|
|
117
|
-
className:
|
|
117
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
118
118
|
// Core structure - uses CSS variables only
|
|
119
119
|
"flex field-sizing-content min-h-16 w-full rounded-md border border-input",
|
|
120
120
|
"bg-transparent px-3 py-2 text-base shadow-xs",
|
|
@@ -167,7 +167,7 @@ function TextArea({
|
|
|
167
167
|
placeholder,
|
|
168
168
|
disabled,
|
|
169
169
|
required,
|
|
170
|
-
className:
|
|
170
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
171
171
|
// Valid value indicator - ring-2 when has value and no error
|
|
172
172
|
!error && hasValue && "ring-2 ring-ring",
|
|
173
173
|
// Error state - handled by Textarea component via aria-invalid
|
|
@@ -194,7 +194,7 @@ function Checkbox({
|
|
|
194
194
|
radixUi.Checkbox.Root,
|
|
195
195
|
{
|
|
196
196
|
"data-slot": "checkbox",
|
|
197
|
-
className:
|
|
197
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
198
198
|
// Core structure - uses CSS variables
|
|
199
199
|
"peer size-4 shrink-0 rounded-[4px] border border-input bg-transparent shadow-xs",
|
|
200
200
|
"transition-shadow outline-none",
|
|
@@ -296,13 +296,13 @@ function Checkbox2({
|
|
|
296
296
|
}
|
|
297
297
|
));
|
|
298
298
|
if (!label) {
|
|
299
|
-
return /* @__PURE__ */ React21__namespace.createElement(
|
|
299
|
+
return /* @__PURE__ */ React21__namespace.createElement("div", { className }, checkbox);
|
|
300
300
|
}
|
|
301
|
-
return /* @__PURE__ */ React21__namespace.createElement(
|
|
302
|
-
|
|
301
|
+
return /* @__PURE__ */ React21__namespace.createElement("div", { className: "space-y-0", "data-invalid": error || void 0 }, /* @__PURE__ */ React21__namespace.createElement(
|
|
302
|
+
chunkQQSBW6N3_cjs.FieldLabel,
|
|
303
303
|
{
|
|
304
304
|
htmlFor: checkboxId,
|
|
305
|
-
className:
|
|
305
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
306
306
|
"flex gap-3 p-3 duration-200 select-auto font-normal leading-normal",
|
|
307
307
|
showChoiceCard && "border rounded-lg hover:ring-2 hover:ring-ring/50",
|
|
308
308
|
showChoiceCard && value && "ring-2 ring-ring",
|
|
@@ -314,14 +314,14 @@ function Checkbox2({
|
|
|
314
314
|
/* @__PURE__ */ React21__namespace.createElement(
|
|
315
315
|
"div",
|
|
316
316
|
{
|
|
317
|
-
className:
|
|
317
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
318
318
|
"flex w-full gap-3",
|
|
319
319
|
showChoiceCard ? "items-start" : "items-center"
|
|
320
320
|
)
|
|
321
321
|
},
|
|
322
322
|
checkbox,
|
|
323
|
-
/* @__PURE__ */ React21__namespace.createElement(
|
|
324
|
-
|
|
323
|
+
/* @__PURE__ */ React21__namespace.createElement("div", { className: "flex-1 space-y-1" }, /* @__PURE__ */ React21__namespace.createElement("span", { className: "text-sm font-medium leading-none" }, label), description && /* @__PURE__ */ React21__namespace.createElement(
|
|
324
|
+
chunkQQSBW6N3_cjs.FieldDescription,
|
|
325
325
|
{
|
|
326
326
|
id: `${checkboxId}-description`,
|
|
327
327
|
className: "leading-snug"
|
|
@@ -390,7 +390,7 @@ function CheckboxGroup({
|
|
|
390
390
|
};
|
|
391
391
|
const maxReached = Boolean(maxSelections && countableValue >= maxSelections);
|
|
392
392
|
const containerClass = React21__namespace.useMemo(() => {
|
|
393
|
-
return
|
|
393
|
+
return chunkQQSBW6N3_cjs.cn(
|
|
394
394
|
"w-full gap-3 grid grid-cols-1 border-0 m-0 p-0 min-w-0",
|
|
395
395
|
(layout === "grid" || layout === "inline") && "md:grid-cols-2",
|
|
396
396
|
className
|
|
@@ -409,7 +409,7 @@ function CheckboxGroup({
|
|
|
409
409
|
"aria-label": typeof label === "string" ? label : props["aria-label"]
|
|
410
410
|
},
|
|
411
411
|
/* @__PURE__ */ React21__namespace.createElement(
|
|
412
|
-
|
|
412
|
+
chunkQQSBW6N3_cjs.LabelGroup,
|
|
413
413
|
{
|
|
414
414
|
labelHtmlFor: name,
|
|
415
415
|
required,
|
|
@@ -456,9 +456,9 @@ function CheckboxGroup({
|
|
|
456
456
|
);
|
|
457
457
|
}),
|
|
458
458
|
(minSelections || maxSelections) && /* @__PURE__ */ React21__namespace.createElement(
|
|
459
|
-
|
|
459
|
+
chunkQQSBW6N3_cjs.FieldDescription,
|
|
460
460
|
{
|
|
461
|
-
className:
|
|
461
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
462
462
|
"p-2 rounded-lg border font-semibold mt-2 leading-snug",
|
|
463
463
|
minSelections && countableValue < minSelections ? "border-destructive bg-destructive/80 text-destructive-foreground" : "border-border bg-card text-card-foreground"
|
|
464
464
|
),
|
|
@@ -478,7 +478,7 @@ function RadioGroup({
|
|
|
478
478
|
radixUi.RadioGroup.Root,
|
|
479
479
|
{
|
|
480
480
|
"data-slot": "radio-group",
|
|
481
|
-
className:
|
|
481
|
+
className: chunkQQSBW6N3_cjs.cn("grid gap-3", className),
|
|
482
482
|
...props
|
|
483
483
|
}
|
|
484
484
|
);
|
|
@@ -491,7 +491,7 @@ function RadioGroupItem({
|
|
|
491
491
|
radixUi.RadioGroup.Item,
|
|
492
492
|
{
|
|
493
493
|
"data-slot": "radio-group-item",
|
|
494
|
-
className:
|
|
494
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
495
495
|
// Core structure - uses CSS variables
|
|
496
496
|
"aspect-square size-4 shrink-0 rounded-full border border-input bg-transparent shadow-xs",
|
|
497
497
|
"text-primary transition-[color,box-shadow] outline-none",
|
|
@@ -549,8 +549,8 @@ function Radio({
|
|
|
549
549
|
return options.some((option) => option.description);
|
|
550
550
|
}, [options]);
|
|
551
551
|
const groupDescriptionId = description ? `${name}-description` : void 0;
|
|
552
|
-
return /* @__PURE__ */ React21__namespace.createElement(
|
|
553
|
-
|
|
552
|
+
return /* @__PURE__ */ React21__namespace.createElement("div", { className: chunkQQSBW6N3_cjs.cn("w-full", className), "data-invalid": error || void 0 }, (label || description) && /* @__PURE__ */ React21__namespace.createElement("div", { className: "mb-3 space-y-1" }, label && /* @__PURE__ */ React21__namespace.createElement("div", { className: "text-base font-medium leading-none" }, label), description && /* @__PURE__ */ React21__namespace.createElement(
|
|
553
|
+
chunkQQSBW6N3_cjs.FieldDescription,
|
|
554
554
|
{
|
|
555
555
|
id: groupDescriptionId,
|
|
556
556
|
className: "leading-snug"
|
|
@@ -565,7 +565,7 @@ function Radio({
|
|
|
565
565
|
onBlur: handleBlur,
|
|
566
566
|
disabled,
|
|
567
567
|
required,
|
|
568
|
-
className:
|
|
568
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
569
569
|
"gap-3",
|
|
570
570
|
layout === "grid" && "grid grid-cols-1 md:grid-cols-2",
|
|
571
571
|
layout === "inline" && "flex flex-wrap"
|
|
@@ -580,11 +580,11 @@ function Radio({
|
|
|
580
580
|
const radioId = `${name}-${option.value}`;
|
|
581
581
|
const hasDescription = !!option.description;
|
|
582
582
|
return /* @__PURE__ */ React21__namespace.createElement(
|
|
583
|
-
|
|
583
|
+
chunkQQSBW6N3_cjs.FieldLabel,
|
|
584
584
|
{
|
|
585
585
|
key: option.value,
|
|
586
586
|
htmlFor: radioId,
|
|
587
|
-
className:
|
|
587
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
588
588
|
"flex gap-3 p-3 duration-200 select-auto font-normal leading-normal",
|
|
589
589
|
useChoiceCard && "border rounded-lg hover:ring-2 hover:ring-ring/50",
|
|
590
590
|
useChoiceCard && isSelected && "ring-2 ring-ring",
|
|
@@ -593,10 +593,9 @@ function Radio({
|
|
|
593
593
|
)
|
|
594
594
|
},
|
|
595
595
|
/* @__PURE__ */ React21__namespace.createElement(
|
|
596
|
-
|
|
596
|
+
"div",
|
|
597
597
|
{
|
|
598
|
-
|
|
599
|
-
className: chunkDKLLPKZN_cjs.cn(
|
|
598
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
600
599
|
"flex w-full gap-3",
|
|
601
600
|
useChoiceCard ? "items-start" : "items-center"
|
|
602
601
|
)
|
|
@@ -611,8 +610,8 @@ function Radio({
|
|
|
611
610
|
"aria-describedby": hasDescription ? `${radioId}-description` : void 0
|
|
612
611
|
}
|
|
613
612
|
),
|
|
614
|
-
/* @__PURE__ */ React21__namespace.createElement(
|
|
615
|
-
|
|
613
|
+
/* @__PURE__ */ React21__namespace.createElement("div", { className: "flex-1 space-y-1" }, /* @__PURE__ */ React21__namespace.createElement("span", { className: "text-sm font-medium leading-none" }, option.label), option.description && /* @__PURE__ */ React21__namespace.createElement(
|
|
614
|
+
chunkQQSBW6N3_cjs.FieldDescription,
|
|
616
615
|
{
|
|
617
616
|
id: `${radioId}-description`,
|
|
618
617
|
className: "leading-snug"
|
|
@@ -635,7 +634,7 @@ function Switch({
|
|
|
635
634
|
{
|
|
636
635
|
"data-slot": "switch",
|
|
637
636
|
"data-size": size,
|
|
638
|
-
className:
|
|
637
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
639
638
|
// Core structure - uses CSS variables
|
|
640
639
|
"peer group/switch inline-flex shrink-0 items-center rounded-full",
|
|
641
640
|
"border border-transparent shadow-xs transition-all outline-none",
|
|
@@ -656,7 +655,7 @@ function Switch({
|
|
|
656
655
|
radixUi.Switch.Thumb,
|
|
657
656
|
{
|
|
658
657
|
"data-slot": "switch-thumb",
|
|
659
|
-
className:
|
|
658
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
660
659
|
// Thumb appearance - inherits from parent theme
|
|
661
660
|
"bg-background pointer-events-none block rounded-full ring-0 transition-transform",
|
|
662
661
|
// Size variants
|
|
@@ -707,21 +706,21 @@ function Switch2({
|
|
|
707
706
|
}
|
|
708
707
|
);
|
|
709
708
|
if (!label) {
|
|
710
|
-
return /* @__PURE__ */ React21__namespace.createElement(
|
|
709
|
+
return /* @__PURE__ */ React21__namespace.createElement(chunkQQSBW6N3_cjs.Field, { className }, switchElement);
|
|
711
710
|
}
|
|
712
|
-
return /* @__PURE__ */ React21__namespace.createElement(
|
|
713
|
-
|
|
711
|
+
return /* @__PURE__ */ React21__namespace.createElement(chunkQQSBW6N3_cjs.Field, { className: "gap-0", invalid: Boolean(error) }, /* @__PURE__ */ React21__namespace.createElement(
|
|
712
|
+
chunkQQSBW6N3_cjs.FieldLabel,
|
|
714
713
|
{
|
|
715
714
|
htmlFor: switchId,
|
|
716
|
-
className:
|
|
715
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
717
716
|
"flex items-center gap-3 cursor-pointer select-auto font-normal leading-normal",
|
|
718
717
|
disabled && "opacity-50 cursor-not-allowed",
|
|
719
718
|
className
|
|
720
719
|
)
|
|
721
720
|
},
|
|
722
721
|
switchElement,
|
|
723
|
-
/* @__PURE__ */ React21__namespace.createElement(
|
|
724
|
-
|
|
722
|
+
/* @__PURE__ */ React21__namespace.createElement(chunkQQSBW6N3_cjs.Field, { className: "gap-1" }, /* @__PURE__ */ React21__namespace.createElement("span", { className: "text-sm font-medium leading-none" }, label), description && /* @__PURE__ */ React21__namespace.createElement(
|
|
723
|
+
chunkQQSBW6N3_cjs.FieldDescription,
|
|
725
724
|
{
|
|
726
725
|
id: `${switchId}-description`,
|
|
727
726
|
className: "leading-snug"
|
|
@@ -757,7 +756,7 @@ function SelectTrigger({
|
|
|
757
756
|
{
|
|
758
757
|
"data-slot": "select-trigger",
|
|
759
758
|
"data-size": size,
|
|
760
|
-
className:
|
|
759
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
761
760
|
// Core structure - uses CSS variables
|
|
762
761
|
"flex w-full items-center justify-between gap-2 rounded-md border border-input",
|
|
763
762
|
"bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs",
|
|
@@ -808,7 +807,7 @@ function SelectContent({
|
|
|
808
807
|
radixUi.Select.Content,
|
|
809
808
|
{
|
|
810
809
|
"data-slot": "select-content",
|
|
811
|
-
className:
|
|
810
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
812
811
|
"bg-popover text-popover-foreground 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
813
812
|
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",
|
|
814
813
|
className
|
|
@@ -821,7 +820,7 @@ function SelectContent({
|
|
|
821
820
|
/* @__PURE__ */ React21__namespace.createElement(
|
|
822
821
|
radixUi.Select.Viewport,
|
|
823
822
|
{
|
|
824
|
-
className:
|
|
823
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
825
824
|
"p-1",
|
|
826
825
|
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
827
826
|
)
|
|
@@ -839,7 +838,7 @@ function SelectLabel({
|
|
|
839
838
|
radixUi.Select.Label,
|
|
840
839
|
{
|
|
841
840
|
"data-slot": "select-label",
|
|
842
|
-
className:
|
|
841
|
+
className: chunkQQSBW6N3_cjs.cn("px-2 py-1.5 text-xs opacity-70", className),
|
|
843
842
|
...props
|
|
844
843
|
}
|
|
845
844
|
);
|
|
@@ -853,7 +852,7 @@ function SelectItem({
|
|
|
853
852
|
radixUi.Select.Item,
|
|
854
853
|
{
|
|
855
854
|
"data-slot": "select-item",
|
|
856
|
-
className:
|
|
855
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
857
856
|
// Core structure - inherits text color
|
|
858
857
|
"relative flex w-full cursor-default items-center gap-2 rounded-sm",
|
|
859
858
|
"py-1.5 pr-8 pl-2 text-sm outline-hidden select-none",
|
|
@@ -900,7 +899,7 @@ function SelectScrollUpButton({
|
|
|
900
899
|
radixUi.Select.ScrollUpButton,
|
|
901
900
|
{
|
|
902
901
|
"data-slot": "select-scroll-up-button",
|
|
903
|
-
className:
|
|
902
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
904
903
|
"flex cursor-default items-center justify-center py-1",
|
|
905
904
|
className
|
|
906
905
|
),
|
|
@@ -929,7 +928,7 @@ function SelectScrollDownButton({
|
|
|
929
928
|
radixUi.Select.ScrollDownButton,
|
|
930
929
|
{
|
|
931
930
|
"data-slot": "select-scroll-down-button",
|
|
932
|
-
className:
|
|
931
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
933
932
|
"flex cursor-default items-center justify-center py-1",
|
|
934
933
|
className
|
|
935
934
|
),
|
|
@@ -1023,7 +1022,7 @@ function Select2({
|
|
|
1023
1022
|
/* @__PURE__ */ React21__namespace.createElement(
|
|
1024
1023
|
SelectTrigger,
|
|
1025
1024
|
{
|
|
1026
|
-
className:
|
|
1025
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1027
1026
|
// Valid value indicator - ring-2 when has value and no error
|
|
1028
1027
|
!error && hasValue && "ring-2 ring-ring",
|
|
1029
1028
|
// Error state - handled by SelectTrigger via aria-invalid
|
|
@@ -1082,7 +1081,7 @@ var DialogOverlay = React21__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1082
1081
|
{
|
|
1083
1082
|
ref,
|
|
1084
1083
|
"data-slot": "dialog-overlay",
|
|
1085
|
-
className:
|
|
1084
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1086
1085
|
"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-black/50",
|
|
1087
1086
|
className
|
|
1088
1087
|
),
|
|
@@ -1097,7 +1096,7 @@ var DialogContent = React21__namespace.forwardRef(({ className, children, showCl
|
|
|
1097
1096
|
{
|
|
1098
1097
|
ref,
|
|
1099
1098
|
"data-slot": "dialog-content",
|
|
1100
|
-
className:
|
|
1099
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1101
1100
|
"bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",
|
|
1102
1101
|
className
|
|
1103
1102
|
),
|
|
@@ -1134,7 +1133,7 @@ function DialogHeader({ className, ...props }) {
|
|
|
1134
1133
|
"div",
|
|
1135
1134
|
{
|
|
1136
1135
|
"data-slot": "dialog-header",
|
|
1137
|
-
className:
|
|
1136
|
+
className: chunkQQSBW6N3_cjs.cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
1138
1137
|
...props
|
|
1139
1138
|
}
|
|
1140
1139
|
);
|
|
@@ -1147,7 +1146,7 @@ function DialogTitle({
|
|
|
1147
1146
|
radixUi.Dialog.Title,
|
|
1148
1147
|
{
|
|
1149
1148
|
"data-slot": "dialog-title",
|
|
1150
|
-
className:
|
|
1149
|
+
className: chunkQQSBW6N3_cjs.cn("text-lg leading-none font-semibold", className),
|
|
1151
1150
|
...props
|
|
1152
1151
|
}
|
|
1153
1152
|
);
|
|
@@ -1162,7 +1161,7 @@ function Command({
|
|
|
1162
1161
|
cmdk.Command,
|
|
1163
1162
|
{
|
|
1164
1163
|
"data-slot": "command",
|
|
1165
|
-
className:
|
|
1164
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1166
1165
|
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
1167
1166
|
className
|
|
1168
1167
|
),
|
|
@@ -1198,7 +1197,7 @@ function CommandInput({
|
|
|
1198
1197
|
cmdk.Command.Input,
|
|
1199
1198
|
{
|
|
1200
1199
|
"data-slot": "command-input",
|
|
1201
|
-
className:
|
|
1200
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1202
1201
|
"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
1203
1202
|
className
|
|
1204
1203
|
),
|
|
@@ -1215,7 +1214,7 @@ function CommandList({
|
|
|
1215
1214
|
cmdk.Command.List,
|
|
1216
1215
|
{
|
|
1217
1216
|
"data-slot": "command-list",
|
|
1218
|
-
className:
|
|
1217
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1219
1218
|
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
1220
1219
|
className
|
|
1221
1220
|
),
|
|
@@ -1243,7 +1242,7 @@ function CommandGroup({
|
|
|
1243
1242
|
cmdk.Command.Group,
|
|
1244
1243
|
{
|
|
1245
1244
|
"data-slot": "command-group",
|
|
1246
|
-
className:
|
|
1245
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1247
1246
|
"overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:opacity-70",
|
|
1248
1247
|
className
|
|
1249
1248
|
),
|
|
@@ -1273,7 +1272,7 @@ function PopoverContent({
|
|
|
1273
1272
|
"data-slot": "popover-content",
|
|
1274
1273
|
align,
|
|
1275
1274
|
sideOffset,
|
|
1276
|
-
className:
|
|
1275
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1277
1276
|
"bg-popover text-popover-foreground 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-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
1278
1277
|
className
|
|
1279
1278
|
),
|
|
@@ -1533,7 +1532,7 @@ function MultiSelect({
|
|
|
1533
1532
|
value
|
|
1534
1533
|
]
|
|
1535
1534
|
);
|
|
1536
|
-
const combinedClassName =
|
|
1535
|
+
const combinedClassName = chunkQQSBW6N3_cjs.cn("relative w-full", className);
|
|
1537
1536
|
return /* @__PURE__ */ React21__namespace.createElement("div", { className: combinedClassName }, /* @__PURE__ */ React21__namespace.createElement(
|
|
1538
1537
|
"select",
|
|
1539
1538
|
{
|
|
@@ -1554,7 +1553,7 @@ function MultiSelect({
|
|
|
1554
1553
|
"div",
|
|
1555
1554
|
{
|
|
1556
1555
|
ref: triggerRef,
|
|
1557
|
-
className:
|
|
1556
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1558
1557
|
"flex min-h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm",
|
|
1559
1558
|
"cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
1560
1559
|
!error && hasValue && "ring-2 ring-ring",
|
|
@@ -1623,7 +1622,7 @@ function MultiSelect({
|
|
|
1623
1622
|
CommandInput,
|
|
1624
1623
|
{
|
|
1625
1624
|
id: searchInputId,
|
|
1626
|
-
className:
|
|
1625
|
+
className: chunkQQSBW6N3_cjs.cn(chunkQQSBW6N3_cjs.INPUT_AUTOFILL_RESET_CLASSES),
|
|
1627
1626
|
placeholder: "Search...",
|
|
1628
1627
|
value: searchQuery,
|
|
1629
1628
|
onValueChange: (nextValue) => {
|
|
@@ -1684,7 +1683,7 @@ function MultiSelect({
|
|
|
1684
1683
|
handleToggleOption(option.value);
|
|
1685
1684
|
}
|
|
1686
1685
|
},
|
|
1687
|
-
className:
|
|
1686
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1688
1687
|
"relative flex w-full cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent",
|
|
1689
1688
|
isFocused && "bg-accent",
|
|
1690
1689
|
isSelected && "bg-accent font-medium",
|
|
@@ -1715,7 +1714,7 @@ function MultiSelect({
|
|
|
1715
1714
|
handleToggleOption(option.value);
|
|
1716
1715
|
}
|
|
1717
1716
|
},
|
|
1718
|
-
className:
|
|
1717
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1719
1718
|
"relative flex w-full cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent",
|
|
1720
1719
|
isFocused && "bg-accent",
|
|
1721
1720
|
isSelected && "bg-accent font-medium",
|
|
@@ -1769,7 +1768,7 @@ function BaseFileIcon({
|
|
|
1769
1768
|
strokeWidth: "2",
|
|
1770
1769
|
strokeLinecap: "round",
|
|
1771
1770
|
strokeLinejoin: "round",
|
|
1772
|
-
className:
|
|
1771
|
+
className: chunkQQSBW6N3_cjs.cn("size-5", className),
|
|
1773
1772
|
"aria-hidden": "true"
|
|
1774
1773
|
},
|
|
1775
1774
|
children
|
|
@@ -2253,7 +2252,7 @@ function FileUpload(props) {
|
|
|
2253
2252
|
"data-slot": "file-upload",
|
|
2254
2253
|
dir,
|
|
2255
2254
|
...rootProps,
|
|
2256
|
-
className:
|
|
2255
|
+
className: chunkQQSBW6N3_cjs.cn("relative flex flex-col gap-2", className)
|
|
2257
2256
|
},
|
|
2258
2257
|
children,
|
|
2259
2258
|
/* @__PURE__ */ React21__namespace.createElement(
|
|
@@ -2425,7 +2424,7 @@ function FileUploadDropzone(props) {
|
|
|
2425
2424
|
dir: context.dir,
|
|
2426
2425
|
tabIndex: context.disabled ? -1 : 0,
|
|
2427
2426
|
...dropzoneProps,
|
|
2428
|
-
className:
|
|
2427
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
2429
2428
|
"relative flex select-none flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed p-6 outline-none transition-colors hover:bg-accent/30 focus-visible:border-ring/50 data-disabled:pointer-events-none data-dragging:border-primary/30 data-dragging:bg-accent/30 data-invalid:ring-destructive/20",
|
|
2430
2429
|
className
|
|
2431
2430
|
),
|
|
@@ -2463,7 +2462,7 @@ function FileUploadList(props) {
|
|
|
2463
2462
|
"data-state": shouldRender ? "active" : "inactive",
|
|
2464
2463
|
dir: context.dir,
|
|
2465
2464
|
...listProps,
|
|
2466
|
-
className:
|
|
2465
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
2467
2466
|
"data-[state=inactive]:fade-out-0 data-[state=active]:fade-in-0 data-[state=inactive]:slide-out-to-top-2 data-[state=active]:slide-in-from-top-2 flex flex-col gap-2 data-[state=active]:animate-in data-[state=inactive]:animate-out",
|
|
2468
2467
|
orientation === "horizontal" && "flex-row overflow-x-auto p-1.5",
|
|
2469
2468
|
className
|
|
@@ -2519,7 +2518,7 @@ function FileUploadItem(props) {
|
|
|
2519
2518
|
"data-slot": "file-upload-item",
|
|
2520
2519
|
dir: context.dir,
|
|
2521
2520
|
...itemProps,
|
|
2522
|
-
className:
|
|
2521
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
2523
2522
|
"relative flex items-center gap-2.5 rounded-md border p-3",
|
|
2524
2523
|
className
|
|
2525
2524
|
)
|
|
@@ -2566,7 +2565,7 @@ function FileUploadItemPreview(props) {
|
|
|
2566
2565
|
"aria-labelledby": itemContext.nameId,
|
|
2567
2566
|
"data-slot": "file-upload-preview",
|
|
2568
2567
|
...previewProps,
|
|
2569
|
-
className:
|
|
2568
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
2570
2569
|
"relative flex size-10 shrink-0 items-center justify-center overflow-hidden rounded border bg-accent/50 [&>svg]:size-10",
|
|
2571
2570
|
className
|
|
2572
2571
|
)
|
|
@@ -2593,13 +2592,13 @@ function FileUploadItemMetadata(props) {
|
|
|
2593
2592
|
"data-slot": "file-upload-metadata",
|
|
2594
2593
|
dir: context.dir,
|
|
2595
2594
|
...metadataProps,
|
|
2596
|
-
className:
|
|
2595
|
+
className: chunkQQSBW6N3_cjs.cn("flex min-w-0 flex-1 flex-col", className)
|
|
2597
2596
|
},
|
|
2598
2597
|
children ?? /* @__PURE__ */ React21__namespace.createElement(React21__namespace.Fragment, null, /* @__PURE__ */ React21__namespace.createElement(
|
|
2599
2598
|
"span",
|
|
2600
2599
|
{
|
|
2601
2600
|
id: itemContext.nameId,
|
|
2602
|
-
className:
|
|
2601
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
2603
2602
|
"truncate font-medium text-sm",
|
|
2604
2603
|
size === "sm" && "font-normal text-[13px] leading-snug"
|
|
2605
2604
|
)
|
|
@@ -2609,7 +2608,7 @@ function FileUploadItemMetadata(props) {
|
|
|
2609
2608
|
"span",
|
|
2610
2609
|
{
|
|
2611
2610
|
id: itemContext.sizeId,
|
|
2612
|
-
className:
|
|
2611
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
2613
2612
|
"truncate text-xs opacity-70",
|
|
2614
2613
|
size === "sm" && "text-[11px] leading-snug"
|
|
2615
2614
|
)
|
|
@@ -2951,7 +2950,7 @@ function FileInput({
|
|
|
2951
2950
|
required: required && normalizedValue.length === 0,
|
|
2952
2951
|
invalid: Boolean(error || props["aria-invalid"]),
|
|
2953
2952
|
label: "File upload",
|
|
2954
|
-
className:
|
|
2953
|
+
className: chunkQQSBW6N3_cjs.cn(className),
|
|
2955
2954
|
inputProps: {
|
|
2956
2955
|
...props,
|
|
2957
2956
|
onBlur: handleBlur,
|
|
@@ -2966,7 +2965,7 @@ function FileInput({
|
|
|
2966
2965
|
{
|
|
2967
2966
|
role: "button",
|
|
2968
2967
|
"aria-label": placeholder,
|
|
2969
|
-
className:
|
|
2968
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
2970
2969
|
"flex min-h-32 w-full cursor-pointer items-center justify-center border-input bg-transparent p-6 transition-colors",
|
|
2971
2970
|
"hover:bg-accent/50 hover:border-ring",
|
|
2972
2971
|
"data-[dragging]:bg-accent data-[dragging]:border-ring",
|
|
@@ -3022,7 +3021,7 @@ function FileInput({
|
|
|
3022
3021
|
)
|
|
3023
3022
|
), /* @__PURE__ */ React21__namespace.createElement("span", { className: "text-xs" }, progressValue, "%")) : null),
|
|
3024
3023
|
enableCropping && file.type.startsWith("image/") ? /* @__PURE__ */ React21__namespace.createElement(
|
|
3025
|
-
|
|
3024
|
+
chunkQQSBW6N3_cjs.Button,
|
|
3026
3025
|
{
|
|
3027
3026
|
type: "button",
|
|
3028
3027
|
variant: "ghost",
|
|
@@ -3053,7 +3052,7 @@ function FileInput({
|
|
|
3053
3052
|
)
|
|
3054
3053
|
) : null,
|
|
3055
3054
|
/* @__PURE__ */ React21__namespace.createElement(FileUploadItemDelete, { asChild: true }, /* @__PURE__ */ React21__namespace.createElement(
|
|
3056
|
-
|
|
3055
|
+
chunkQQSBW6N3_cjs.Button,
|
|
3057
3056
|
{
|
|
3058
3057
|
type: "button",
|
|
3059
3058
|
variant: "ghost",
|
|
@@ -3099,7 +3098,7 @@ function FileInput({
|
|
|
3099
3098
|
"aria-describedby": void 0
|
|
3100
3099
|
},
|
|
3101
3100
|
/* @__PURE__ */ React21__namespace.createElement(DialogHeader, { className: "flex-row items-center justify-between border-b border-border px-4 py-3" }, /* @__PURE__ */ React21__namespace.createElement(DialogTitle, null, "Crop Image"), /* @__PURE__ */ React21__namespace.createElement(DialogClose, { asChild: true }, /* @__PURE__ */ React21__namespace.createElement(
|
|
3102
|
-
|
|
3101
|
+
chunkQQSBW6N3_cjs.Button,
|
|
3103
3102
|
{
|
|
3104
3103
|
type: "button",
|
|
3105
3104
|
variant: "ghost",
|
|
@@ -3215,7 +3214,7 @@ function FileInput({
|
|
|
3215
3214
|
"aria-label": "Zoom level"
|
|
3216
3215
|
}
|
|
3217
3216
|
))),
|
|
3218
|
-
/* @__PURE__ */ React21__namespace.createElement("div", { className: "flex items-center justify-end gap-2 border-t border-border p-4" }, /* @__PURE__ */ React21__namespace.createElement(
|
|
3217
|
+
/* @__PURE__ */ React21__namespace.createElement("div", { className: "flex items-center justify-end gap-2 border-t border-border p-4" }, /* @__PURE__ */ React21__namespace.createElement(chunkQQSBW6N3_cjs.Button, { type: "button", variant: "outline", onClick: handleCropCancel }, "Cancel"), /* @__PURE__ */ React21__namespace.createElement(chunkQQSBW6N3_cjs.Button, { type: "button", onClick: handleCropSave }, "Save"))
|
|
3219
3218
|
) : null
|
|
3220
3219
|
));
|
|
3221
3220
|
}
|
|
@@ -3235,7 +3234,7 @@ function Calendar({
|
|
|
3235
3234
|
reactDayPicker.DayPicker,
|
|
3236
3235
|
{
|
|
3237
3236
|
showOutsideDays,
|
|
3238
|
-
className:
|
|
3237
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
3239
3238
|
"bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
3240
3239
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
3241
3240
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
@@ -3247,86 +3246,86 @@ function Calendar({
|
|
|
3247
3246
|
...formatters
|
|
3248
3247
|
},
|
|
3249
3248
|
classNames: {
|
|
3250
|
-
root:
|
|
3251
|
-
months:
|
|
3249
|
+
root: chunkQQSBW6N3_cjs.cn("w-fit", defaultClassNames.root),
|
|
3250
|
+
months: chunkQQSBW6N3_cjs.cn(
|
|
3252
3251
|
"flex gap-4 flex-col md:flex-row relative",
|
|
3253
3252
|
defaultClassNames.months
|
|
3254
3253
|
),
|
|
3255
|
-
month:
|
|
3256
|
-
nav:
|
|
3254
|
+
month: chunkQQSBW6N3_cjs.cn("flex flex-col w-full gap-4", defaultClassNames.month),
|
|
3255
|
+
nav: chunkQQSBW6N3_cjs.cn(
|
|
3257
3256
|
"flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
3258
3257
|
defaultClassNames.nav
|
|
3259
3258
|
),
|
|
3260
|
-
button_previous:
|
|
3261
|
-
|
|
3259
|
+
button_previous: chunkQQSBW6N3_cjs.cn(
|
|
3260
|
+
chunkQQSBW6N3_cjs.buttonVariants({ variant: buttonVariant }),
|
|
3262
3261
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
3263
3262
|
defaultClassNames.button_previous
|
|
3264
3263
|
),
|
|
3265
|
-
button_next:
|
|
3266
|
-
|
|
3264
|
+
button_next: chunkQQSBW6N3_cjs.cn(
|
|
3265
|
+
chunkQQSBW6N3_cjs.buttonVariants({ variant: buttonVariant }),
|
|
3267
3266
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
3268
3267
|
defaultClassNames.button_next
|
|
3269
3268
|
),
|
|
3270
|
-
month_caption:
|
|
3269
|
+
month_caption: chunkQQSBW6N3_cjs.cn(
|
|
3271
3270
|
"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
3272
3271
|
defaultClassNames.month_caption
|
|
3273
3272
|
),
|
|
3274
|
-
dropdowns:
|
|
3273
|
+
dropdowns: chunkQQSBW6N3_cjs.cn(
|
|
3275
3274
|
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
3276
3275
|
defaultClassNames.dropdowns
|
|
3277
3276
|
),
|
|
3278
|
-
dropdown_root:
|
|
3277
|
+
dropdown_root: chunkQQSBW6N3_cjs.cn(
|
|
3279
3278
|
"relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
|
|
3280
3279
|
defaultClassNames.dropdown_root
|
|
3281
3280
|
),
|
|
3282
|
-
dropdown:
|
|
3281
|
+
dropdown: chunkQQSBW6N3_cjs.cn(
|
|
3283
3282
|
"absolute bg-popover inset-0 opacity-0",
|
|
3284
3283
|
defaultClassNames.dropdown
|
|
3285
3284
|
),
|
|
3286
|
-
caption_label:
|
|
3285
|
+
caption_label: chunkQQSBW6N3_cjs.cn(
|
|
3287
3286
|
"select-none font-medium",
|
|
3288
3287
|
captionLayout === "label" ? "text-sm" : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:opacity-70 [&>svg]:size-3.5",
|
|
3289
3288
|
defaultClassNames.caption_label
|
|
3290
3289
|
),
|
|
3291
3290
|
table: "w-full border-collapse",
|
|
3292
|
-
weekdays:
|
|
3293
|
-
weekday:
|
|
3291
|
+
weekdays: chunkQQSBW6N3_cjs.cn("flex", defaultClassNames.weekdays),
|
|
3292
|
+
weekday: chunkQQSBW6N3_cjs.cn(
|
|
3294
3293
|
"opacity-70 rounded-md flex-1 font-normal text-[0.8rem] select-none",
|
|
3295
3294
|
defaultClassNames.weekday
|
|
3296
3295
|
),
|
|
3297
|
-
week:
|
|
3298
|
-
week_number_header:
|
|
3296
|
+
week: chunkQQSBW6N3_cjs.cn("flex w-full mt-2", defaultClassNames.week),
|
|
3297
|
+
week_number_header: chunkQQSBW6N3_cjs.cn(
|
|
3299
3298
|
"select-none w-(--cell-size)",
|
|
3300
3299
|
defaultClassNames.week_number_header
|
|
3301
3300
|
),
|
|
3302
|
-
week_number:
|
|
3301
|
+
week_number: chunkQQSBW6N3_cjs.cn(
|
|
3303
3302
|
"text-[0.8rem] select-none opacity-70",
|
|
3304
3303
|
defaultClassNames.week_number
|
|
3305
3304
|
),
|
|
3306
|
-
day:
|
|
3305
|
+
day: chunkQQSBW6N3_cjs.cn(
|
|
3307
3306
|
"relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
|
|
3308
3307
|
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md" : "[&:first-child[data-selected=true]_button]:rounded-l-md",
|
|
3309
3308
|
defaultClassNames.day
|
|
3310
3309
|
),
|
|
3311
|
-
range_start:
|
|
3310
|
+
range_start: chunkQQSBW6N3_cjs.cn(
|
|
3312
3311
|
"rounded-l-md bg-accent",
|
|
3313
3312
|
defaultClassNames.range_start
|
|
3314
3313
|
),
|
|
3315
|
-
range_middle:
|
|
3316
|
-
range_end:
|
|
3317
|
-
today:
|
|
3314
|
+
range_middle: chunkQQSBW6N3_cjs.cn("rounded-none", defaultClassNames.range_middle),
|
|
3315
|
+
range_end: chunkQQSBW6N3_cjs.cn("rounded-r-md bg-accent", defaultClassNames.range_end),
|
|
3316
|
+
today: chunkQQSBW6N3_cjs.cn(
|
|
3318
3317
|
"bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
|
|
3319
3318
|
defaultClassNames.today
|
|
3320
3319
|
),
|
|
3321
|
-
outside:
|
|
3320
|
+
outside: chunkQQSBW6N3_cjs.cn(
|
|
3322
3321
|
"opacity-50",
|
|
3323
3322
|
defaultClassNames.outside
|
|
3324
3323
|
),
|
|
3325
|
-
disabled:
|
|
3324
|
+
disabled: chunkQQSBW6N3_cjs.cn(
|
|
3326
3325
|
"opacity-50",
|
|
3327
3326
|
defaultClassNames.disabled
|
|
3328
3327
|
),
|
|
3329
|
-
hidden:
|
|
3328
|
+
hidden: chunkQQSBW6N3_cjs.cn("invisible", defaultClassNames.hidden),
|
|
3330
3329
|
...classNames
|
|
3331
3330
|
},
|
|
3332
3331
|
components: {
|
|
@@ -3336,7 +3335,7 @@ function Calendar({
|
|
|
3336
3335
|
{
|
|
3337
3336
|
"data-slot": "calendar",
|
|
3338
3337
|
ref: rootRef,
|
|
3339
|
-
className:
|
|
3338
|
+
className: chunkQQSBW6N3_cjs.cn(className2),
|
|
3340
3339
|
...props2
|
|
3341
3340
|
}
|
|
3342
3341
|
);
|
|
@@ -3346,7 +3345,7 @@ function Calendar({
|
|
|
3346
3345
|
return /* @__PURE__ */ React21__namespace.createElement(
|
|
3347
3346
|
"svg",
|
|
3348
3347
|
{
|
|
3349
|
-
className:
|
|
3348
|
+
className: chunkQQSBW6N3_cjs.cn("size-4", className2),
|
|
3350
3349
|
viewBox: "0 0 24 24",
|
|
3351
3350
|
fill: "none",
|
|
3352
3351
|
stroke: "currentColor",
|
|
@@ -3362,7 +3361,7 @@ function Calendar({
|
|
|
3362
3361
|
return /* @__PURE__ */ React21__namespace.createElement(
|
|
3363
3362
|
"svg",
|
|
3364
3363
|
{
|
|
3365
|
-
className:
|
|
3364
|
+
className: chunkQQSBW6N3_cjs.cn("size-4", className2),
|
|
3366
3365
|
viewBox: "0 0 24 24",
|
|
3367
3366
|
fill: "none",
|
|
3368
3367
|
stroke: "currentColor",
|
|
@@ -3377,7 +3376,7 @@ function Calendar({
|
|
|
3377
3376
|
return /* @__PURE__ */ React21__namespace.createElement(
|
|
3378
3377
|
"svg",
|
|
3379
3378
|
{
|
|
3380
|
-
className:
|
|
3379
|
+
className: chunkQQSBW6N3_cjs.cn("size-4", className2),
|
|
3381
3380
|
viewBox: "0 0 24 24",
|
|
3382
3381
|
fill: "none",
|
|
3383
3382
|
stroke: "currentColor",
|
|
@@ -3411,7 +3410,7 @@ function CalendarDayButton({
|
|
|
3411
3410
|
if (modifiers.focused) ref.current?.focus();
|
|
3412
3411
|
}, [modifiers.focused]);
|
|
3413
3412
|
return /* @__PURE__ */ React21__namespace.createElement(
|
|
3414
|
-
|
|
3413
|
+
chunkQQSBW6N3_cjs.Button,
|
|
3415
3414
|
{
|
|
3416
3415
|
ref,
|
|
3417
3416
|
variant: "ghost",
|
|
@@ -3421,7 +3420,7 @@ function CalendarDayButton({
|
|
|
3421
3420
|
"data-range-start": modifiers.range_start,
|
|
3422
3421
|
"data-range-end": modifiers.range_end,
|
|
3423
3422
|
"data-range-middle": modifiers.range_middle,
|
|
3424
|
-
className:
|
|
3423
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
3425
3424
|
// Core structure
|
|
3426
3425
|
"flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal",
|
|
3427
3426
|
// Selected states - uses CSS variables
|
|
@@ -3466,7 +3465,7 @@ function DatePickerDayButton({
|
|
|
3466
3465
|
"button",
|
|
3467
3466
|
{
|
|
3468
3467
|
type: "button",
|
|
3469
|
-
className:
|
|
3468
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
3470
3469
|
"flex items-center justify-center h-8 w-8 rounded-md border-none bg-transparent cursor-pointer text-sm transition-colors",
|
|
3471
3470
|
"hover:bg-accent",
|
|
3472
3471
|
modifiers.selected && "bg-primary text-primary-foreground font-semibold",
|
|
@@ -3576,7 +3575,7 @@ function DatePicker({
|
|
|
3576
3575
|
}, [hasInteracted]);
|
|
3577
3576
|
const hasValue = Boolean(value);
|
|
3578
3577
|
const displayValue = formatDate(value, format);
|
|
3579
|
-
const combinedClassName =
|
|
3578
|
+
const combinedClassName = chunkQQSBW6N3_cjs.cn("relative", className);
|
|
3580
3579
|
return /* @__PURE__ */ React21__namespace.createElement("div", { className: combinedClassName }, /* @__PURE__ */ React21__namespace.createElement(
|
|
3581
3580
|
"input",
|
|
3582
3581
|
{
|
|
@@ -3611,11 +3610,11 @@ function DatePicker({
|
|
|
3611
3610
|
ref: inputRef,
|
|
3612
3611
|
id: props.id,
|
|
3613
3612
|
type: "text",
|
|
3614
|
-
className:
|
|
3613
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
3615
3614
|
"flex h-9 w-full rounded-md border border-input bg-transparent py-1 text-base shadow-sm transition-colors",
|
|
3616
3615
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
3617
3616
|
"disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
3618
|
-
|
|
3617
|
+
chunkQQSBW6N3_cjs.INPUT_AUTOFILL_RESET_CLASSES,
|
|
3619
3618
|
showIcon ? "pl-10" : "pl-3",
|
|
3620
3619
|
clearable && value ? "pr-10" : "pr-3",
|
|
3621
3620
|
!error && hasValue && "ring-2 ring-ring",
|
|
@@ -3756,7 +3755,7 @@ function TimePicker({
|
|
|
3756
3755
|
};
|
|
3757
3756
|
const hasValue = Boolean(value);
|
|
3758
3757
|
const stepInSeconds = Math.max(1, minuteStep * 60);
|
|
3759
|
-
return /* @__PURE__ */ React21__namespace.createElement("div", { className:
|
|
3758
|
+
return /* @__PURE__ */ React21__namespace.createElement("div", { className: chunkQQSBW6N3_cjs.cn("relative", className) }, /* @__PURE__ */ React21__namespace.createElement("input", { type: "hidden", name, value }), /* @__PURE__ */ React21__namespace.createElement("div", { className: "relative" }, showIcon && /* @__PURE__ */ React21__namespace.createElement(
|
|
3760
3759
|
"span",
|
|
3761
3760
|
{
|
|
3762
3761
|
className: "absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none",
|
|
@@ -3783,9 +3782,9 @@ function TimePicker({
|
|
|
3783
3782
|
{
|
|
3784
3783
|
ref: inputRef,
|
|
3785
3784
|
type: "time",
|
|
3786
|
-
className:
|
|
3785
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
3787
3786
|
"appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none",
|
|
3788
|
-
|
|
3787
|
+
chunkQQSBW6N3_cjs.INPUT_AUTOFILL_RESET_CLASSES,
|
|
3789
3788
|
showIcon ? "pl-10" : "pl-3",
|
|
3790
3789
|
clearable && value ? "pr-10" : "pr-3",
|
|
3791
3790
|
!error && hasValue && "ring-2 ring-ring",
|
|
@@ -3804,7 +3803,7 @@ function TimePicker({
|
|
|
3804
3803
|
...props
|
|
3805
3804
|
}
|
|
3806
3805
|
), clearable && value && !disabled && /* @__PURE__ */ React21__namespace.createElement(
|
|
3807
|
-
|
|
3806
|
+
chunkQQSBW6N3_cjs.Button,
|
|
3808
3807
|
{
|
|
3809
3808
|
type: "button",
|
|
3810
3809
|
variant: "ghost",
|
|
@@ -4004,7 +4003,7 @@ function DateRangePicker({
|
|
|
4004
4003
|
{
|
|
4005
4004
|
type: "button",
|
|
4006
4005
|
...rest,
|
|
4007
|
-
className:
|
|
4006
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
4008
4007
|
"flex items-center justify-center h-8 w-8 rounded-md border-none bg-transparent cursor-pointer text-sm transition-colors",
|
|
4009
4008
|
"hover:bg-accent",
|
|
4010
4009
|
isRangeEndpoint && "bg-primary text-primary-foreground font-semibold",
|
|
@@ -4042,7 +4041,7 @@ function DateRangePicker({
|
|
|
4042
4041
|
to: rangeEnd ?? void 0
|
|
4043
4042
|
} : void 0;
|
|
4044
4043
|
const displayValue = rangeStart && rangeEnd ? `${formatDate2(rangeStart, format)}${separator}${formatDate2(rangeEnd, format)}` : rangeStart ? formatDate2(rangeStart, format) : "";
|
|
4045
|
-
const combinedClassName =
|
|
4044
|
+
const combinedClassName = chunkQQSBW6N3_cjs.cn("relative", className);
|
|
4046
4045
|
return /* @__PURE__ */ React21__namespace.createElement("div", { className: combinedClassName }, /* @__PURE__ */ React21__namespace.createElement(
|
|
4047
4046
|
"input",
|
|
4048
4047
|
{
|
|
@@ -4084,11 +4083,11 @@ function DateRangePicker({
|
|
|
4084
4083
|
ref: inputRef,
|
|
4085
4084
|
id: props.id,
|
|
4086
4085
|
type: "text",
|
|
4087
|
-
className:
|
|
4086
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
4088
4087
|
"flex h-9 w-full rounded-md border border-input bg-transparent py-1 text-base shadow-sm transition-colors",
|
|
4089
4088
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
4090
4089
|
"disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
4091
|
-
|
|
4090
|
+
chunkQQSBW6N3_cjs.INPUT_AUTOFILL_RESET_CLASSES,
|
|
4092
4091
|
showIcon ? "pl-10" : "pl-3",
|
|
4093
4092
|
clearable && (rangeStart || rangeEnd) ? "pr-10" : "pr-3",
|
|
4094
4093
|
!error && hasValue && "ring-2 ring-ring",
|
|
@@ -4165,5 +4164,5 @@ exports.Switch = Switch2;
|
|
|
4165
4164
|
exports.TextArea = TextArea;
|
|
4166
4165
|
exports.TextInput = TextInput;
|
|
4167
4166
|
exports.TimePicker = TimePicker;
|
|
4168
|
-
//# sourceMappingURL=chunk-
|
|
4169
|
-
//# sourceMappingURL=chunk-
|
|
4167
|
+
//# sourceMappingURL=chunk-FIDKDYT7.cjs.map
|
|
4168
|
+
//# sourceMappingURL=chunk-FIDKDYT7.cjs.map
|