@page-speed/forms 0.5.5 → 0.5.6
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-232KNGJI.js → chunk-A7R6GEMA.js} +4 -4
- package/dist/chunk-A7R6GEMA.js.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/{chunk-IFAYTPIF.js → chunk-QZ4PK62A.js} +3 -3
- package/dist/{chunk-IFAYTPIF.js.map → chunk-QZ4PK62A.js.map} +1 -1
- package/dist/{chunk-XNZHEEGT.cjs → chunk-WVSLOSNU.cjs} +121 -121
- package/dist/{chunk-XNZHEEGT.cjs.map → chunk-WVSLOSNU.cjs.map} +1 -1
- 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
|
@@ -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(chunkQQSBW6N3_cjs.Field, { className }, checkbox);
|
|
300
300
|
}
|
|
301
|
-
return /* @__PURE__ */ React21__namespace.createElement(
|
|
302
|
-
|
|
301
|
+
return /* @__PURE__ */ React21__namespace.createElement(chunkQQSBW6N3_cjs.Field, { className: "gap-0", invalid: Boolean(error) }, /* @__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(chunkQQSBW6N3_cjs.Field, { className: "flex-1 gap-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(chunkQQSBW6N3_cjs.Field, { className: chunkQQSBW6N3_cjs.cn("w-full", className), invalid: Boolean(error) }, (label || description) && /* @__PURE__ */ React21__namespace.createElement(chunkQQSBW6N3_cjs.Field, { className: "mb-3 gap-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,10 @@ function Radio({
|
|
|
593
593
|
)
|
|
594
594
|
},
|
|
595
595
|
/* @__PURE__ */ React21__namespace.createElement(
|
|
596
|
-
|
|
596
|
+
chunkQQSBW6N3_cjs.Field,
|
|
597
597
|
{
|
|
598
598
|
orientation: "horizontal",
|
|
599
|
-
className:
|
|
599
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
600
600
|
"flex w-full gap-3",
|
|
601
601
|
useChoiceCard ? "items-start" : "items-center"
|
|
602
602
|
)
|
|
@@ -611,8 +611,8 @@ function Radio({
|
|
|
611
611
|
"aria-describedby": hasDescription ? `${radioId}-description` : void 0
|
|
612
612
|
}
|
|
613
613
|
),
|
|
614
|
-
/* @__PURE__ */ React21__namespace.createElement(
|
|
615
|
-
|
|
614
|
+
/* @__PURE__ */ React21__namespace.createElement(chunkQQSBW6N3_cjs.Field, { className: "flex-1 gap-1" }, /* @__PURE__ */ React21__namespace.createElement("span", { className: "text-sm font-medium leading-none" }, option.label), option.description && /* @__PURE__ */ React21__namespace.createElement(
|
|
615
|
+
chunkQQSBW6N3_cjs.FieldDescription,
|
|
616
616
|
{
|
|
617
617
|
id: `${radioId}-description`,
|
|
618
618
|
className: "leading-snug"
|
|
@@ -635,7 +635,7 @@ function Switch({
|
|
|
635
635
|
{
|
|
636
636
|
"data-slot": "switch",
|
|
637
637
|
"data-size": size,
|
|
638
|
-
className:
|
|
638
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
639
639
|
// Core structure - uses CSS variables
|
|
640
640
|
"peer group/switch inline-flex shrink-0 items-center rounded-full",
|
|
641
641
|
"border border-transparent shadow-xs transition-all outline-none",
|
|
@@ -656,7 +656,7 @@ function Switch({
|
|
|
656
656
|
radixUi.Switch.Thumb,
|
|
657
657
|
{
|
|
658
658
|
"data-slot": "switch-thumb",
|
|
659
|
-
className:
|
|
659
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
660
660
|
// Thumb appearance - inherits from parent theme
|
|
661
661
|
"bg-background pointer-events-none block rounded-full ring-0 transition-transform",
|
|
662
662
|
// Size variants
|
|
@@ -707,21 +707,21 @@ function Switch2({
|
|
|
707
707
|
}
|
|
708
708
|
);
|
|
709
709
|
if (!label) {
|
|
710
|
-
return /* @__PURE__ */ React21__namespace.createElement(
|
|
710
|
+
return /* @__PURE__ */ React21__namespace.createElement(chunkQQSBW6N3_cjs.Field, { className }, switchElement);
|
|
711
711
|
}
|
|
712
|
-
return /* @__PURE__ */ React21__namespace.createElement(
|
|
713
|
-
|
|
712
|
+
return /* @__PURE__ */ React21__namespace.createElement(chunkQQSBW6N3_cjs.Field, { className: "gap-0", invalid: Boolean(error) }, /* @__PURE__ */ React21__namespace.createElement(
|
|
713
|
+
chunkQQSBW6N3_cjs.FieldLabel,
|
|
714
714
|
{
|
|
715
715
|
htmlFor: switchId,
|
|
716
|
-
className:
|
|
716
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
717
717
|
"flex items-center gap-3 cursor-pointer select-auto font-normal leading-normal",
|
|
718
718
|
disabled && "opacity-50 cursor-not-allowed",
|
|
719
719
|
className
|
|
720
720
|
)
|
|
721
721
|
},
|
|
722
722
|
switchElement,
|
|
723
|
-
/* @__PURE__ */ React21__namespace.createElement(
|
|
724
|
-
|
|
723
|
+
/* @__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(
|
|
724
|
+
chunkQQSBW6N3_cjs.FieldDescription,
|
|
725
725
|
{
|
|
726
726
|
id: `${switchId}-description`,
|
|
727
727
|
className: "leading-snug"
|
|
@@ -757,7 +757,7 @@ function SelectTrigger({
|
|
|
757
757
|
{
|
|
758
758
|
"data-slot": "select-trigger",
|
|
759
759
|
"data-size": size,
|
|
760
|
-
className:
|
|
760
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
761
761
|
// Core structure - uses CSS variables
|
|
762
762
|
"flex w-full items-center justify-between gap-2 rounded-md border border-input",
|
|
763
763
|
"bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs",
|
|
@@ -808,7 +808,7 @@ function SelectContent({
|
|
|
808
808
|
radixUi.Select.Content,
|
|
809
809
|
{
|
|
810
810
|
"data-slot": "select-content",
|
|
811
|
-
className:
|
|
811
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
812
812
|
"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
813
|
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
814
|
className
|
|
@@ -821,7 +821,7 @@ function SelectContent({
|
|
|
821
821
|
/* @__PURE__ */ React21__namespace.createElement(
|
|
822
822
|
radixUi.Select.Viewport,
|
|
823
823
|
{
|
|
824
|
-
className:
|
|
824
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
825
825
|
"p-1",
|
|
826
826
|
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
827
827
|
)
|
|
@@ -839,7 +839,7 @@ function SelectLabel({
|
|
|
839
839
|
radixUi.Select.Label,
|
|
840
840
|
{
|
|
841
841
|
"data-slot": "select-label",
|
|
842
|
-
className:
|
|
842
|
+
className: chunkQQSBW6N3_cjs.cn("px-2 py-1.5 text-xs opacity-70", className),
|
|
843
843
|
...props
|
|
844
844
|
}
|
|
845
845
|
);
|
|
@@ -853,7 +853,7 @@ function SelectItem({
|
|
|
853
853
|
radixUi.Select.Item,
|
|
854
854
|
{
|
|
855
855
|
"data-slot": "select-item",
|
|
856
|
-
className:
|
|
856
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
857
857
|
// Core structure - inherits text color
|
|
858
858
|
"relative flex w-full cursor-default items-center gap-2 rounded-sm",
|
|
859
859
|
"py-1.5 pr-8 pl-2 text-sm outline-hidden select-none",
|
|
@@ -900,7 +900,7 @@ function SelectScrollUpButton({
|
|
|
900
900
|
radixUi.Select.ScrollUpButton,
|
|
901
901
|
{
|
|
902
902
|
"data-slot": "select-scroll-up-button",
|
|
903
|
-
className:
|
|
903
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
904
904
|
"flex cursor-default items-center justify-center py-1",
|
|
905
905
|
className
|
|
906
906
|
),
|
|
@@ -929,7 +929,7 @@ function SelectScrollDownButton({
|
|
|
929
929
|
radixUi.Select.ScrollDownButton,
|
|
930
930
|
{
|
|
931
931
|
"data-slot": "select-scroll-down-button",
|
|
932
|
-
className:
|
|
932
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
933
933
|
"flex cursor-default items-center justify-center py-1",
|
|
934
934
|
className
|
|
935
935
|
),
|
|
@@ -1023,7 +1023,7 @@ function Select2({
|
|
|
1023
1023
|
/* @__PURE__ */ React21__namespace.createElement(
|
|
1024
1024
|
SelectTrigger,
|
|
1025
1025
|
{
|
|
1026
|
-
className:
|
|
1026
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1027
1027
|
// Valid value indicator - ring-2 when has value and no error
|
|
1028
1028
|
!error && hasValue && "ring-2 ring-ring",
|
|
1029
1029
|
// Error state - handled by SelectTrigger via aria-invalid
|
|
@@ -1082,7 +1082,7 @@ var DialogOverlay = React21__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1082
1082
|
{
|
|
1083
1083
|
ref,
|
|
1084
1084
|
"data-slot": "dialog-overlay",
|
|
1085
|
-
className:
|
|
1085
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1086
1086
|
"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
1087
|
className
|
|
1088
1088
|
),
|
|
@@ -1097,7 +1097,7 @@ var DialogContent = React21__namespace.forwardRef(({ className, children, showCl
|
|
|
1097
1097
|
{
|
|
1098
1098
|
ref,
|
|
1099
1099
|
"data-slot": "dialog-content",
|
|
1100
|
-
className:
|
|
1100
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1101
1101
|
"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
1102
|
className
|
|
1103
1103
|
),
|
|
@@ -1134,7 +1134,7 @@ function DialogHeader({ className, ...props }) {
|
|
|
1134
1134
|
"div",
|
|
1135
1135
|
{
|
|
1136
1136
|
"data-slot": "dialog-header",
|
|
1137
|
-
className:
|
|
1137
|
+
className: chunkQQSBW6N3_cjs.cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
1138
1138
|
...props
|
|
1139
1139
|
}
|
|
1140
1140
|
);
|
|
@@ -1147,7 +1147,7 @@ function DialogTitle({
|
|
|
1147
1147
|
radixUi.Dialog.Title,
|
|
1148
1148
|
{
|
|
1149
1149
|
"data-slot": "dialog-title",
|
|
1150
|
-
className:
|
|
1150
|
+
className: chunkQQSBW6N3_cjs.cn("text-lg leading-none font-semibold", className),
|
|
1151
1151
|
...props
|
|
1152
1152
|
}
|
|
1153
1153
|
);
|
|
@@ -1162,7 +1162,7 @@ function Command({
|
|
|
1162
1162
|
cmdk.Command,
|
|
1163
1163
|
{
|
|
1164
1164
|
"data-slot": "command",
|
|
1165
|
-
className:
|
|
1165
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1166
1166
|
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
1167
1167
|
className
|
|
1168
1168
|
),
|
|
@@ -1198,7 +1198,7 @@ function CommandInput({
|
|
|
1198
1198
|
cmdk.Command.Input,
|
|
1199
1199
|
{
|
|
1200
1200
|
"data-slot": "command-input",
|
|
1201
|
-
className:
|
|
1201
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1202
1202
|
"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
1203
1203
|
className
|
|
1204
1204
|
),
|
|
@@ -1215,7 +1215,7 @@ function CommandList({
|
|
|
1215
1215
|
cmdk.Command.List,
|
|
1216
1216
|
{
|
|
1217
1217
|
"data-slot": "command-list",
|
|
1218
|
-
className:
|
|
1218
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1219
1219
|
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
1220
1220
|
className
|
|
1221
1221
|
),
|
|
@@ -1243,7 +1243,7 @@ function CommandGroup({
|
|
|
1243
1243
|
cmdk.Command.Group,
|
|
1244
1244
|
{
|
|
1245
1245
|
"data-slot": "command-group",
|
|
1246
|
-
className:
|
|
1246
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1247
1247
|
"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
1248
|
className
|
|
1249
1249
|
),
|
|
@@ -1273,7 +1273,7 @@ function PopoverContent({
|
|
|
1273
1273
|
"data-slot": "popover-content",
|
|
1274
1274
|
align,
|
|
1275
1275
|
sideOffset,
|
|
1276
|
-
className:
|
|
1276
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1277
1277
|
"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
1278
|
className
|
|
1279
1279
|
),
|
|
@@ -1533,7 +1533,7 @@ function MultiSelect({
|
|
|
1533
1533
|
value
|
|
1534
1534
|
]
|
|
1535
1535
|
);
|
|
1536
|
-
const combinedClassName =
|
|
1536
|
+
const combinedClassName = chunkQQSBW6N3_cjs.cn("relative w-full", className);
|
|
1537
1537
|
return /* @__PURE__ */ React21__namespace.createElement("div", { className: combinedClassName }, /* @__PURE__ */ React21__namespace.createElement(
|
|
1538
1538
|
"select",
|
|
1539
1539
|
{
|
|
@@ -1554,7 +1554,7 @@ function MultiSelect({
|
|
|
1554
1554
|
"div",
|
|
1555
1555
|
{
|
|
1556
1556
|
ref: triggerRef,
|
|
1557
|
-
className:
|
|
1557
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1558
1558
|
"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
1559
|
"cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
1560
1560
|
!error && hasValue && "ring-2 ring-ring",
|
|
@@ -1623,7 +1623,7 @@ function MultiSelect({
|
|
|
1623
1623
|
CommandInput,
|
|
1624
1624
|
{
|
|
1625
1625
|
id: searchInputId,
|
|
1626
|
-
className:
|
|
1626
|
+
className: chunkQQSBW6N3_cjs.cn(chunkQQSBW6N3_cjs.INPUT_AUTOFILL_RESET_CLASSES),
|
|
1627
1627
|
placeholder: "Search...",
|
|
1628
1628
|
value: searchQuery,
|
|
1629
1629
|
onValueChange: (nextValue) => {
|
|
@@ -1684,7 +1684,7 @@ function MultiSelect({
|
|
|
1684
1684
|
handleToggleOption(option.value);
|
|
1685
1685
|
}
|
|
1686
1686
|
},
|
|
1687
|
-
className:
|
|
1687
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1688
1688
|
"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
1689
|
isFocused && "bg-accent",
|
|
1690
1690
|
isSelected && "bg-accent font-medium",
|
|
@@ -1715,7 +1715,7 @@ function MultiSelect({
|
|
|
1715
1715
|
handleToggleOption(option.value);
|
|
1716
1716
|
}
|
|
1717
1717
|
},
|
|
1718
|
-
className:
|
|
1718
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
1719
1719
|
"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
1720
|
isFocused && "bg-accent",
|
|
1721
1721
|
isSelected && "bg-accent font-medium",
|
|
@@ -1769,7 +1769,7 @@ function BaseFileIcon({
|
|
|
1769
1769
|
strokeWidth: "2",
|
|
1770
1770
|
strokeLinecap: "round",
|
|
1771
1771
|
strokeLinejoin: "round",
|
|
1772
|
-
className:
|
|
1772
|
+
className: chunkQQSBW6N3_cjs.cn("size-5", className),
|
|
1773
1773
|
"aria-hidden": "true"
|
|
1774
1774
|
},
|
|
1775
1775
|
children
|
|
@@ -2253,7 +2253,7 @@ function FileUpload(props) {
|
|
|
2253
2253
|
"data-slot": "file-upload",
|
|
2254
2254
|
dir,
|
|
2255
2255
|
...rootProps,
|
|
2256
|
-
className:
|
|
2256
|
+
className: chunkQQSBW6N3_cjs.cn("relative flex flex-col gap-2", className)
|
|
2257
2257
|
},
|
|
2258
2258
|
children,
|
|
2259
2259
|
/* @__PURE__ */ React21__namespace.createElement(
|
|
@@ -2425,7 +2425,7 @@ function FileUploadDropzone(props) {
|
|
|
2425
2425
|
dir: context.dir,
|
|
2426
2426
|
tabIndex: context.disabled ? -1 : 0,
|
|
2427
2427
|
...dropzoneProps,
|
|
2428
|
-
className:
|
|
2428
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
2429
2429
|
"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
2430
|
className
|
|
2431
2431
|
),
|
|
@@ -2463,7 +2463,7 @@ function FileUploadList(props) {
|
|
|
2463
2463
|
"data-state": shouldRender ? "active" : "inactive",
|
|
2464
2464
|
dir: context.dir,
|
|
2465
2465
|
...listProps,
|
|
2466
|
-
className:
|
|
2466
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
2467
2467
|
"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
2468
|
orientation === "horizontal" && "flex-row overflow-x-auto p-1.5",
|
|
2469
2469
|
className
|
|
@@ -2519,7 +2519,7 @@ function FileUploadItem(props) {
|
|
|
2519
2519
|
"data-slot": "file-upload-item",
|
|
2520
2520
|
dir: context.dir,
|
|
2521
2521
|
...itemProps,
|
|
2522
|
-
className:
|
|
2522
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
2523
2523
|
"relative flex items-center gap-2.5 rounded-md border p-3",
|
|
2524
2524
|
className
|
|
2525
2525
|
)
|
|
@@ -2566,7 +2566,7 @@ function FileUploadItemPreview(props) {
|
|
|
2566
2566
|
"aria-labelledby": itemContext.nameId,
|
|
2567
2567
|
"data-slot": "file-upload-preview",
|
|
2568
2568
|
...previewProps,
|
|
2569
|
-
className:
|
|
2569
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
2570
2570
|
"relative flex size-10 shrink-0 items-center justify-center overflow-hidden rounded border bg-accent/50 [&>svg]:size-10",
|
|
2571
2571
|
className
|
|
2572
2572
|
)
|
|
@@ -2593,13 +2593,13 @@ function FileUploadItemMetadata(props) {
|
|
|
2593
2593
|
"data-slot": "file-upload-metadata",
|
|
2594
2594
|
dir: context.dir,
|
|
2595
2595
|
...metadataProps,
|
|
2596
|
-
className:
|
|
2596
|
+
className: chunkQQSBW6N3_cjs.cn("flex min-w-0 flex-1 flex-col", className)
|
|
2597
2597
|
},
|
|
2598
2598
|
children ?? /* @__PURE__ */ React21__namespace.createElement(React21__namespace.Fragment, null, /* @__PURE__ */ React21__namespace.createElement(
|
|
2599
2599
|
"span",
|
|
2600
2600
|
{
|
|
2601
2601
|
id: itemContext.nameId,
|
|
2602
|
-
className:
|
|
2602
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
2603
2603
|
"truncate font-medium text-sm",
|
|
2604
2604
|
size === "sm" && "font-normal text-[13px] leading-snug"
|
|
2605
2605
|
)
|
|
@@ -2609,7 +2609,7 @@ function FileUploadItemMetadata(props) {
|
|
|
2609
2609
|
"span",
|
|
2610
2610
|
{
|
|
2611
2611
|
id: itemContext.sizeId,
|
|
2612
|
-
className:
|
|
2612
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
2613
2613
|
"truncate text-xs opacity-70",
|
|
2614
2614
|
size === "sm" && "text-[11px] leading-snug"
|
|
2615
2615
|
)
|
|
@@ -2951,7 +2951,7 @@ function FileInput({
|
|
|
2951
2951
|
required: required && normalizedValue.length === 0,
|
|
2952
2952
|
invalid: Boolean(error || props["aria-invalid"]),
|
|
2953
2953
|
label: "File upload",
|
|
2954
|
-
className:
|
|
2954
|
+
className: chunkQQSBW6N3_cjs.cn(className),
|
|
2955
2955
|
inputProps: {
|
|
2956
2956
|
...props,
|
|
2957
2957
|
onBlur: handleBlur,
|
|
@@ -2966,7 +2966,7 @@ function FileInput({
|
|
|
2966
2966
|
{
|
|
2967
2967
|
role: "button",
|
|
2968
2968
|
"aria-label": placeholder,
|
|
2969
|
-
className:
|
|
2969
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
2970
2970
|
"flex min-h-32 w-full cursor-pointer items-center justify-center border-input bg-transparent p-6 transition-colors",
|
|
2971
2971
|
"hover:bg-accent/50 hover:border-ring",
|
|
2972
2972
|
"data-[dragging]:bg-accent data-[dragging]:border-ring",
|
|
@@ -3022,7 +3022,7 @@ function FileInput({
|
|
|
3022
3022
|
)
|
|
3023
3023
|
), /* @__PURE__ */ React21__namespace.createElement("span", { className: "text-xs" }, progressValue, "%")) : null),
|
|
3024
3024
|
enableCropping && file.type.startsWith("image/") ? /* @__PURE__ */ React21__namespace.createElement(
|
|
3025
|
-
|
|
3025
|
+
chunkQQSBW6N3_cjs.Button,
|
|
3026
3026
|
{
|
|
3027
3027
|
type: "button",
|
|
3028
3028
|
variant: "ghost",
|
|
@@ -3053,7 +3053,7 @@ function FileInput({
|
|
|
3053
3053
|
)
|
|
3054
3054
|
) : null,
|
|
3055
3055
|
/* @__PURE__ */ React21__namespace.createElement(FileUploadItemDelete, { asChild: true }, /* @__PURE__ */ React21__namespace.createElement(
|
|
3056
|
-
|
|
3056
|
+
chunkQQSBW6N3_cjs.Button,
|
|
3057
3057
|
{
|
|
3058
3058
|
type: "button",
|
|
3059
3059
|
variant: "ghost",
|
|
@@ -3099,7 +3099,7 @@ function FileInput({
|
|
|
3099
3099
|
"aria-describedby": void 0
|
|
3100
3100
|
},
|
|
3101
3101
|
/* @__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
|
-
|
|
3102
|
+
chunkQQSBW6N3_cjs.Button,
|
|
3103
3103
|
{
|
|
3104
3104
|
type: "button",
|
|
3105
3105
|
variant: "ghost",
|
|
@@ -3215,7 +3215,7 @@ function FileInput({
|
|
|
3215
3215
|
"aria-label": "Zoom level"
|
|
3216
3216
|
}
|
|
3217
3217
|
))),
|
|
3218
|
-
/* @__PURE__ */ React21__namespace.createElement("div", { className: "flex items-center justify-end gap-2 border-t border-border p-4" }, /* @__PURE__ */ React21__namespace.createElement(
|
|
3218
|
+
/* @__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
3219
|
) : null
|
|
3220
3220
|
));
|
|
3221
3221
|
}
|
|
@@ -3235,7 +3235,7 @@ function Calendar({
|
|
|
3235
3235
|
reactDayPicker.DayPicker,
|
|
3236
3236
|
{
|
|
3237
3237
|
showOutsideDays,
|
|
3238
|
-
className:
|
|
3238
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
3239
3239
|
"bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
3240
3240
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
3241
3241
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
@@ -3247,86 +3247,86 @@ function Calendar({
|
|
|
3247
3247
|
...formatters
|
|
3248
3248
|
},
|
|
3249
3249
|
classNames: {
|
|
3250
|
-
root:
|
|
3251
|
-
months:
|
|
3250
|
+
root: chunkQQSBW6N3_cjs.cn("w-fit", defaultClassNames.root),
|
|
3251
|
+
months: chunkQQSBW6N3_cjs.cn(
|
|
3252
3252
|
"flex gap-4 flex-col md:flex-row relative",
|
|
3253
3253
|
defaultClassNames.months
|
|
3254
3254
|
),
|
|
3255
|
-
month:
|
|
3256
|
-
nav:
|
|
3255
|
+
month: chunkQQSBW6N3_cjs.cn("flex flex-col w-full gap-4", defaultClassNames.month),
|
|
3256
|
+
nav: chunkQQSBW6N3_cjs.cn(
|
|
3257
3257
|
"flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
3258
3258
|
defaultClassNames.nav
|
|
3259
3259
|
),
|
|
3260
|
-
button_previous:
|
|
3261
|
-
|
|
3260
|
+
button_previous: chunkQQSBW6N3_cjs.cn(
|
|
3261
|
+
chunkQQSBW6N3_cjs.buttonVariants({ variant: buttonVariant }),
|
|
3262
3262
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
3263
3263
|
defaultClassNames.button_previous
|
|
3264
3264
|
),
|
|
3265
|
-
button_next:
|
|
3266
|
-
|
|
3265
|
+
button_next: chunkQQSBW6N3_cjs.cn(
|
|
3266
|
+
chunkQQSBW6N3_cjs.buttonVariants({ variant: buttonVariant }),
|
|
3267
3267
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
3268
3268
|
defaultClassNames.button_next
|
|
3269
3269
|
),
|
|
3270
|
-
month_caption:
|
|
3270
|
+
month_caption: chunkQQSBW6N3_cjs.cn(
|
|
3271
3271
|
"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
3272
3272
|
defaultClassNames.month_caption
|
|
3273
3273
|
),
|
|
3274
|
-
dropdowns:
|
|
3274
|
+
dropdowns: chunkQQSBW6N3_cjs.cn(
|
|
3275
3275
|
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
3276
3276
|
defaultClassNames.dropdowns
|
|
3277
3277
|
),
|
|
3278
|
-
dropdown_root:
|
|
3278
|
+
dropdown_root: chunkQQSBW6N3_cjs.cn(
|
|
3279
3279
|
"relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
|
|
3280
3280
|
defaultClassNames.dropdown_root
|
|
3281
3281
|
),
|
|
3282
|
-
dropdown:
|
|
3282
|
+
dropdown: chunkQQSBW6N3_cjs.cn(
|
|
3283
3283
|
"absolute bg-popover inset-0 opacity-0",
|
|
3284
3284
|
defaultClassNames.dropdown
|
|
3285
3285
|
),
|
|
3286
|
-
caption_label:
|
|
3286
|
+
caption_label: chunkQQSBW6N3_cjs.cn(
|
|
3287
3287
|
"select-none font-medium",
|
|
3288
3288
|
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
3289
|
defaultClassNames.caption_label
|
|
3290
3290
|
),
|
|
3291
3291
|
table: "w-full border-collapse",
|
|
3292
|
-
weekdays:
|
|
3293
|
-
weekday:
|
|
3292
|
+
weekdays: chunkQQSBW6N3_cjs.cn("flex", defaultClassNames.weekdays),
|
|
3293
|
+
weekday: chunkQQSBW6N3_cjs.cn(
|
|
3294
3294
|
"opacity-70 rounded-md flex-1 font-normal text-[0.8rem] select-none",
|
|
3295
3295
|
defaultClassNames.weekday
|
|
3296
3296
|
),
|
|
3297
|
-
week:
|
|
3298
|
-
week_number_header:
|
|
3297
|
+
week: chunkQQSBW6N3_cjs.cn("flex w-full mt-2", defaultClassNames.week),
|
|
3298
|
+
week_number_header: chunkQQSBW6N3_cjs.cn(
|
|
3299
3299
|
"select-none w-(--cell-size)",
|
|
3300
3300
|
defaultClassNames.week_number_header
|
|
3301
3301
|
),
|
|
3302
|
-
week_number:
|
|
3302
|
+
week_number: chunkQQSBW6N3_cjs.cn(
|
|
3303
3303
|
"text-[0.8rem] select-none opacity-70",
|
|
3304
3304
|
defaultClassNames.week_number
|
|
3305
3305
|
),
|
|
3306
|
-
day:
|
|
3306
|
+
day: chunkQQSBW6N3_cjs.cn(
|
|
3307
3307
|
"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
3308
|
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md" : "[&:first-child[data-selected=true]_button]:rounded-l-md",
|
|
3309
3309
|
defaultClassNames.day
|
|
3310
3310
|
),
|
|
3311
|
-
range_start:
|
|
3311
|
+
range_start: chunkQQSBW6N3_cjs.cn(
|
|
3312
3312
|
"rounded-l-md bg-accent",
|
|
3313
3313
|
defaultClassNames.range_start
|
|
3314
3314
|
),
|
|
3315
|
-
range_middle:
|
|
3316
|
-
range_end:
|
|
3317
|
-
today:
|
|
3315
|
+
range_middle: chunkQQSBW6N3_cjs.cn("rounded-none", defaultClassNames.range_middle),
|
|
3316
|
+
range_end: chunkQQSBW6N3_cjs.cn("rounded-r-md bg-accent", defaultClassNames.range_end),
|
|
3317
|
+
today: chunkQQSBW6N3_cjs.cn(
|
|
3318
3318
|
"bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
|
|
3319
3319
|
defaultClassNames.today
|
|
3320
3320
|
),
|
|
3321
|
-
outside:
|
|
3321
|
+
outside: chunkQQSBW6N3_cjs.cn(
|
|
3322
3322
|
"opacity-50",
|
|
3323
3323
|
defaultClassNames.outside
|
|
3324
3324
|
),
|
|
3325
|
-
disabled:
|
|
3325
|
+
disabled: chunkQQSBW6N3_cjs.cn(
|
|
3326
3326
|
"opacity-50",
|
|
3327
3327
|
defaultClassNames.disabled
|
|
3328
3328
|
),
|
|
3329
|
-
hidden:
|
|
3329
|
+
hidden: chunkQQSBW6N3_cjs.cn("invisible", defaultClassNames.hidden),
|
|
3330
3330
|
...classNames
|
|
3331
3331
|
},
|
|
3332
3332
|
components: {
|
|
@@ -3336,7 +3336,7 @@ function Calendar({
|
|
|
3336
3336
|
{
|
|
3337
3337
|
"data-slot": "calendar",
|
|
3338
3338
|
ref: rootRef,
|
|
3339
|
-
className:
|
|
3339
|
+
className: chunkQQSBW6N3_cjs.cn(className2),
|
|
3340
3340
|
...props2
|
|
3341
3341
|
}
|
|
3342
3342
|
);
|
|
@@ -3346,7 +3346,7 @@ function Calendar({
|
|
|
3346
3346
|
return /* @__PURE__ */ React21__namespace.createElement(
|
|
3347
3347
|
"svg",
|
|
3348
3348
|
{
|
|
3349
|
-
className:
|
|
3349
|
+
className: chunkQQSBW6N3_cjs.cn("size-4", className2),
|
|
3350
3350
|
viewBox: "0 0 24 24",
|
|
3351
3351
|
fill: "none",
|
|
3352
3352
|
stroke: "currentColor",
|
|
@@ -3362,7 +3362,7 @@ function Calendar({
|
|
|
3362
3362
|
return /* @__PURE__ */ React21__namespace.createElement(
|
|
3363
3363
|
"svg",
|
|
3364
3364
|
{
|
|
3365
|
-
className:
|
|
3365
|
+
className: chunkQQSBW6N3_cjs.cn("size-4", className2),
|
|
3366
3366
|
viewBox: "0 0 24 24",
|
|
3367
3367
|
fill: "none",
|
|
3368
3368
|
stroke: "currentColor",
|
|
@@ -3377,7 +3377,7 @@ function Calendar({
|
|
|
3377
3377
|
return /* @__PURE__ */ React21__namespace.createElement(
|
|
3378
3378
|
"svg",
|
|
3379
3379
|
{
|
|
3380
|
-
className:
|
|
3380
|
+
className: chunkQQSBW6N3_cjs.cn("size-4", className2),
|
|
3381
3381
|
viewBox: "0 0 24 24",
|
|
3382
3382
|
fill: "none",
|
|
3383
3383
|
stroke: "currentColor",
|
|
@@ -3411,7 +3411,7 @@ function CalendarDayButton({
|
|
|
3411
3411
|
if (modifiers.focused) ref.current?.focus();
|
|
3412
3412
|
}, [modifiers.focused]);
|
|
3413
3413
|
return /* @__PURE__ */ React21__namespace.createElement(
|
|
3414
|
-
|
|
3414
|
+
chunkQQSBW6N3_cjs.Button,
|
|
3415
3415
|
{
|
|
3416
3416
|
ref,
|
|
3417
3417
|
variant: "ghost",
|
|
@@ -3421,7 +3421,7 @@ function CalendarDayButton({
|
|
|
3421
3421
|
"data-range-start": modifiers.range_start,
|
|
3422
3422
|
"data-range-end": modifiers.range_end,
|
|
3423
3423
|
"data-range-middle": modifiers.range_middle,
|
|
3424
|
-
className:
|
|
3424
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
3425
3425
|
// Core structure
|
|
3426
3426
|
"flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal",
|
|
3427
3427
|
// Selected states - uses CSS variables
|
|
@@ -3466,7 +3466,7 @@ function DatePickerDayButton({
|
|
|
3466
3466
|
"button",
|
|
3467
3467
|
{
|
|
3468
3468
|
type: "button",
|
|
3469
|
-
className:
|
|
3469
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
3470
3470
|
"flex items-center justify-center h-8 w-8 rounded-md border-none bg-transparent cursor-pointer text-sm transition-colors",
|
|
3471
3471
|
"hover:bg-accent",
|
|
3472
3472
|
modifiers.selected && "bg-primary text-primary-foreground font-semibold",
|
|
@@ -3576,7 +3576,7 @@ function DatePicker({
|
|
|
3576
3576
|
}, [hasInteracted]);
|
|
3577
3577
|
const hasValue = Boolean(value);
|
|
3578
3578
|
const displayValue = formatDate(value, format);
|
|
3579
|
-
const combinedClassName =
|
|
3579
|
+
const combinedClassName = chunkQQSBW6N3_cjs.cn("relative", className);
|
|
3580
3580
|
return /* @__PURE__ */ React21__namespace.createElement("div", { className: combinedClassName }, /* @__PURE__ */ React21__namespace.createElement(
|
|
3581
3581
|
"input",
|
|
3582
3582
|
{
|
|
@@ -3611,11 +3611,11 @@ function DatePicker({
|
|
|
3611
3611
|
ref: inputRef,
|
|
3612
3612
|
id: props.id,
|
|
3613
3613
|
type: "text",
|
|
3614
|
-
className:
|
|
3614
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
3615
3615
|
"flex h-9 w-full rounded-md border border-input bg-transparent py-1 text-base shadow-sm transition-colors",
|
|
3616
3616
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
3617
3617
|
"disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
3618
|
-
|
|
3618
|
+
chunkQQSBW6N3_cjs.INPUT_AUTOFILL_RESET_CLASSES,
|
|
3619
3619
|
showIcon ? "pl-10" : "pl-3",
|
|
3620
3620
|
clearable && value ? "pr-10" : "pr-3",
|
|
3621
3621
|
!error && hasValue && "ring-2 ring-ring",
|
|
@@ -3756,7 +3756,7 @@ function TimePicker({
|
|
|
3756
3756
|
};
|
|
3757
3757
|
const hasValue = Boolean(value);
|
|
3758
3758
|
const stepInSeconds = Math.max(1, minuteStep * 60);
|
|
3759
|
-
return /* @__PURE__ */ React21__namespace.createElement("div", { className:
|
|
3759
|
+
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
3760
|
"span",
|
|
3761
3761
|
{
|
|
3762
3762
|
className: "absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none",
|
|
@@ -3783,9 +3783,9 @@ function TimePicker({
|
|
|
3783
3783
|
{
|
|
3784
3784
|
ref: inputRef,
|
|
3785
3785
|
type: "time",
|
|
3786
|
-
className:
|
|
3786
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
3787
3787
|
"appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none",
|
|
3788
|
-
|
|
3788
|
+
chunkQQSBW6N3_cjs.INPUT_AUTOFILL_RESET_CLASSES,
|
|
3789
3789
|
showIcon ? "pl-10" : "pl-3",
|
|
3790
3790
|
clearable && value ? "pr-10" : "pr-3",
|
|
3791
3791
|
!error && hasValue && "ring-2 ring-ring",
|
|
@@ -3804,7 +3804,7 @@ function TimePicker({
|
|
|
3804
3804
|
...props
|
|
3805
3805
|
}
|
|
3806
3806
|
), clearable && value && !disabled && /* @__PURE__ */ React21__namespace.createElement(
|
|
3807
|
-
|
|
3807
|
+
chunkQQSBW6N3_cjs.Button,
|
|
3808
3808
|
{
|
|
3809
3809
|
type: "button",
|
|
3810
3810
|
variant: "ghost",
|
|
@@ -4004,7 +4004,7 @@ function DateRangePicker({
|
|
|
4004
4004
|
{
|
|
4005
4005
|
type: "button",
|
|
4006
4006
|
...rest,
|
|
4007
|
-
className:
|
|
4007
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
4008
4008
|
"flex items-center justify-center h-8 w-8 rounded-md border-none bg-transparent cursor-pointer text-sm transition-colors",
|
|
4009
4009
|
"hover:bg-accent",
|
|
4010
4010
|
isRangeEndpoint && "bg-primary text-primary-foreground font-semibold",
|
|
@@ -4042,7 +4042,7 @@ function DateRangePicker({
|
|
|
4042
4042
|
to: rangeEnd ?? void 0
|
|
4043
4043
|
} : void 0;
|
|
4044
4044
|
const displayValue = rangeStart && rangeEnd ? `${formatDate2(rangeStart, format)}${separator}${formatDate2(rangeEnd, format)}` : rangeStart ? formatDate2(rangeStart, format) : "";
|
|
4045
|
-
const combinedClassName =
|
|
4045
|
+
const combinedClassName = chunkQQSBW6N3_cjs.cn("relative", className);
|
|
4046
4046
|
return /* @__PURE__ */ React21__namespace.createElement("div", { className: combinedClassName }, /* @__PURE__ */ React21__namespace.createElement(
|
|
4047
4047
|
"input",
|
|
4048
4048
|
{
|
|
@@ -4084,11 +4084,11 @@ function DateRangePicker({
|
|
|
4084
4084
|
ref: inputRef,
|
|
4085
4085
|
id: props.id,
|
|
4086
4086
|
type: "text",
|
|
4087
|
-
className:
|
|
4087
|
+
className: chunkQQSBW6N3_cjs.cn(
|
|
4088
4088
|
"flex h-9 w-full rounded-md border border-input bg-transparent py-1 text-base shadow-sm transition-colors",
|
|
4089
4089
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
4090
4090
|
"disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
4091
|
-
|
|
4091
|
+
chunkQQSBW6N3_cjs.INPUT_AUTOFILL_RESET_CLASSES,
|
|
4092
4092
|
showIcon ? "pl-10" : "pl-3",
|
|
4093
4093
|
clearable && (rangeStart || rangeEnd) ? "pr-10" : "pr-3",
|
|
4094
4094
|
!error && hasValue && "ring-2 ring-ring",
|
|
@@ -4165,5 +4165,5 @@ exports.Switch = Switch2;
|
|
|
4165
4165
|
exports.TextArea = TextArea;
|
|
4166
4166
|
exports.TextInput = TextInput;
|
|
4167
4167
|
exports.TimePicker = TimePicker;
|
|
4168
|
-
//# sourceMappingURL=chunk-
|
|
4169
|
-
//# sourceMappingURL=chunk-
|
|
4168
|
+
//# sourceMappingURL=chunk-WVSLOSNU.cjs.map
|
|
4169
|
+
//# sourceMappingURL=chunk-WVSLOSNU.cjs.map
|