@page-speed/forms 0.7.7 → 0.7.9
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-MRGJTFGD.js → chunk-CZYQWVD5.js} +13 -5
- package/dist/chunk-CZYQWVD5.js.map +1 -0
- package/dist/{chunk-RNVK2DOS.js → chunk-EVBK5TLG.js} +15 -12
- package/dist/chunk-EVBK5TLG.js.map +1 -0
- package/dist/{chunk-DDPQKEUI.cjs → chunk-RACQRUM6.cjs} +129 -126
- package/dist/chunk-RACQRUM6.cjs.map +1 -0
- package/dist/{chunk-T2SLAP65.cjs → chunk-XE6H7L7E.cjs} +29 -21
- package/dist/chunk-XE6H7L7E.cjs.map +1 -0
- package/dist/{chunk-EQKN2OPX.js → chunk-ZBRU7R6C.js} +3 -3
- package/dist/{chunk-EQKN2OPX.js.map → chunk-ZBRU7R6C.js.map} +1 -1
- package/dist/{chunk-IGI4JJKE.cjs → chunk-ZLET7YJ2.cjs} +3 -3
- package/dist/{chunk-IGI4JJKE.cjs.map → chunk-ZLET7YJ2.cjs.map} +1 -1
- package/dist/core.cjs +9 -9
- package/dist/core.js +2 -2
- package/dist/index.cjs +13 -13
- package/dist/index.js +2 -2
- package/dist/inputs.cjs +14 -14
- package/dist/inputs.js +2 -2
- package/dist/integration.cjs +55 -44
- package/dist/integration.cjs.map +1 -1
- package/dist/integration.js +35 -24
- package/dist/integration.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-DDPQKEUI.cjs.map +0 -1
- package/dist/chunk-MRGJTFGD.js.map +0 -1
- package/dist/chunk-RNVK2DOS.js.map +0 -1
- package/dist/chunk-T2SLAP65.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZLET7YJ2_cjs = require('./chunk-ZLET7YJ2.cjs');
|
|
4
4
|
var React19 = require('react');
|
|
5
5
|
var radixUi = require('radix-ui');
|
|
6
6
|
var cmdk = require('cmdk');
|
|
@@ -34,7 +34,7 @@ function Textarea({ className, ...props }) {
|
|
|
34
34
|
"textarea",
|
|
35
35
|
{
|
|
36
36
|
"data-slot": "textarea",
|
|
37
|
-
className:
|
|
37
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
38
38
|
// Core structure - uses CSS variables only
|
|
39
39
|
"flex field-sizing-content min-h-32 w-full rounded-md border border-input",
|
|
40
40
|
"bg-transparent px-3 py-2 text-base shadow-xs",
|
|
@@ -87,7 +87,7 @@ function TextArea({
|
|
|
87
87
|
placeholder,
|
|
88
88
|
disabled,
|
|
89
89
|
required,
|
|
90
|
-
className:
|
|
90
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
91
91
|
// Valid value indicator - ring-2 when has value and no error
|
|
92
92
|
!error && hasValue && "ring-2 ring-primary",
|
|
93
93
|
// Error state - handled by Textarea component via aria-invalid
|
|
@@ -114,7 +114,7 @@ function Checkbox({
|
|
|
114
114
|
radixUi.Checkbox.Root,
|
|
115
115
|
{
|
|
116
116
|
"data-slot": "checkbox",
|
|
117
|
-
className:
|
|
117
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
118
118
|
// Core structure - uses CSS variables
|
|
119
119
|
"peer size-4 shrink-0 rounded-[4px] border border-input bg-transparent shadow-xs",
|
|
120
120
|
"transition-shadow outline-none",
|
|
@@ -220,11 +220,13 @@ function Checkbox2({
|
|
|
220
220
|
return /* @__PURE__ */ React19__namespace.createElement("div", { className }, checkbox);
|
|
221
221
|
}
|
|
222
222
|
return /* @__PURE__ */ React19__namespace.createElement("div", { className: "space-y-0", "data-invalid": error || void 0 }, /* @__PURE__ */ React19__namespace.createElement(
|
|
223
|
-
|
|
223
|
+
chunkZLET7YJ2_cjs.FieldLabel,
|
|
224
224
|
{
|
|
225
225
|
htmlFor: checkboxId,
|
|
226
|
-
className:
|
|
227
|
-
"flex
|
|
226
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
227
|
+
"flex duration-200 select-auto font-normal",
|
|
228
|
+
"tracking-tight leading-snug",
|
|
229
|
+
showChoiceCard ? "py-3 pl-3 pr-2" : "p1",
|
|
228
230
|
showChoiceCard && "border rounded-lg hover:ring-2 hover:ring-primary",
|
|
229
231
|
showChoiceCard && value && "ring-2 ring-primary",
|
|
230
232
|
showChoiceCard && error && "ring-2 ring-destructive",
|
|
@@ -235,14 +237,14 @@ function Checkbox2({
|
|
|
235
237
|
/* @__PURE__ */ React19__namespace.createElement(
|
|
236
238
|
"div",
|
|
237
239
|
{
|
|
238
|
-
className:
|
|
240
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
239
241
|
"flex w-full gap-3",
|
|
240
242
|
showChoiceCard ? "items-start" : "items-center"
|
|
241
243
|
)
|
|
242
244
|
},
|
|
243
245
|
checkbox,
|
|
244
246
|
/* @__PURE__ */ React19__namespace.createElement("div", { className: "flex-1 space-y-1" }, /* @__PURE__ */ React19__namespace.createElement("span", { className: "text-sm font-medium leading-none" }, label), description && /* @__PURE__ */ React19__namespace.createElement(
|
|
245
|
-
|
|
247
|
+
chunkZLET7YJ2_cjs.FieldDescription,
|
|
246
248
|
{
|
|
247
249
|
id: `${checkboxId}-description`,
|
|
248
250
|
className: "leading-snug"
|
|
@@ -311,7 +313,7 @@ function CheckboxGroup({
|
|
|
311
313
|
};
|
|
312
314
|
const maxReached = Boolean(maxSelections && countableValue >= maxSelections);
|
|
313
315
|
const containerClass = React19__namespace.useMemo(() => {
|
|
314
|
-
return
|
|
316
|
+
return chunkZLET7YJ2_cjs.cn(
|
|
315
317
|
"w-full grid grid-cols-1 border-0 m-0 p-0 min-w-0",
|
|
316
318
|
layout === "grid" && "grid grid-cols-1 md:grid-cols-2 ",
|
|
317
319
|
layout === "inline" && "flex flex-wrap",
|
|
@@ -332,7 +334,7 @@ function CheckboxGroup({
|
|
|
332
334
|
"aria-label": typeof label === "string" ? label : props["aria-label"]
|
|
333
335
|
},
|
|
334
336
|
/* @__PURE__ */ React19__namespace.createElement(
|
|
335
|
-
|
|
337
|
+
chunkZLET7YJ2_cjs.LabelGroup,
|
|
336
338
|
{
|
|
337
339
|
labelHtmlFor: name,
|
|
338
340
|
required,
|
|
@@ -379,9 +381,9 @@ function CheckboxGroup({
|
|
|
379
381
|
);
|
|
380
382
|
}),
|
|
381
383
|
(minSelections || maxSelections) && /* @__PURE__ */ React19__namespace.createElement(
|
|
382
|
-
|
|
384
|
+
chunkZLET7YJ2_cjs.FieldDescription,
|
|
383
385
|
{
|
|
384
|
-
className:
|
|
386
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
385
387
|
"p-2 rounded-lg border font-semibold mt-2 leading-snug",
|
|
386
388
|
minSelections && countableValue < minSelections ? "border-destructive bg-destructive/80 text-destructive-foreground" : "border-border bg-card text-card-foreground"
|
|
387
389
|
),
|
|
@@ -401,7 +403,7 @@ function RadioGroup({
|
|
|
401
403
|
radixUi.RadioGroup.Root,
|
|
402
404
|
{
|
|
403
405
|
"data-slot": "radio-group",
|
|
404
|
-
className:
|
|
406
|
+
className: chunkZLET7YJ2_cjs.cn("grid gap-3", className),
|
|
405
407
|
...props
|
|
406
408
|
}
|
|
407
409
|
);
|
|
@@ -414,7 +416,7 @@ function RadioGroupItem({
|
|
|
414
416
|
radixUi.RadioGroup.Item,
|
|
415
417
|
{
|
|
416
418
|
"data-slot": "radio-group-item",
|
|
417
|
-
className:
|
|
419
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
418
420
|
// Core structure - uses CSS variables
|
|
419
421
|
"aspect-square size-4 shrink-0 rounded-full border border-input bg-transparent shadow-xs",
|
|
420
422
|
"text-primary transition-[color,box-shadow] outline-none",
|
|
@@ -472,8 +474,8 @@ function Radio({
|
|
|
472
474
|
return options.some((option) => option.description);
|
|
473
475
|
}, [options]);
|
|
474
476
|
const groupDescriptionId = description ? `${name}-description` : void 0;
|
|
475
|
-
return /* @__PURE__ */ React19__namespace.createElement("div", { className:
|
|
476
|
-
|
|
477
|
+
return /* @__PURE__ */ React19__namespace.createElement("div", { className: chunkZLET7YJ2_cjs.cn("w-full", className), "data-invalid": error || void 0 }, /* @__PURE__ */ React19__namespace.createElement(
|
|
478
|
+
chunkZLET7YJ2_cjs.LabelGroup,
|
|
477
479
|
{
|
|
478
480
|
labelHtmlFor: name,
|
|
479
481
|
required,
|
|
@@ -491,7 +493,7 @@ function Radio({
|
|
|
491
493
|
onBlur: handleBlur,
|
|
492
494
|
disabled,
|
|
493
495
|
required,
|
|
494
|
-
className:
|
|
496
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
495
497
|
layout === "grid" && "grid grid-cols-1 md:grid-cols-2 ",
|
|
496
498
|
layout === "inline" && "flex flex-wrap",
|
|
497
499
|
useChoiceCard ? "gap-x-6 gap-y-4" : "gap-0"
|
|
@@ -506,16 +508,16 @@ function Radio({
|
|
|
506
508
|
const radioId = `${name}-${option.value}`;
|
|
507
509
|
const hasDescription = !!option.description;
|
|
508
510
|
return /* @__PURE__ */ React19__namespace.createElement(
|
|
509
|
-
|
|
511
|
+
chunkZLET7YJ2_cjs.FieldLabel,
|
|
510
512
|
{
|
|
511
513
|
key: option.value,
|
|
512
514
|
htmlFor: radioId,
|
|
513
|
-
className:
|
|
514
|
-
"flex
|
|
515
|
-
"
|
|
515
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
516
|
+
"flex duration-200 select-auto font-normal",
|
|
517
|
+
"tracking-tight leading-snug",
|
|
518
|
+
useChoiceCard ? "py-3 pl-3 pr-2" : "p1",
|
|
516
519
|
useChoiceCard && "hover:ring-2 hover:ring-primary",
|
|
517
520
|
useChoiceCard && "border rounded-lg py-3 pl-3 pr-2",
|
|
518
|
-
!useChoiceCard && "p-1",
|
|
519
521
|
useChoiceCard && isSelected && "ring-2 ring-primary",
|
|
520
522
|
useChoiceCard && error && "border-destructive",
|
|
521
523
|
isDisabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
|
|
@@ -524,7 +526,7 @@ function Radio({
|
|
|
524
526
|
/* @__PURE__ */ React19__namespace.createElement(
|
|
525
527
|
"div",
|
|
526
528
|
{
|
|
527
|
-
className:
|
|
529
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
528
530
|
"flex w-full gap-3",
|
|
529
531
|
useChoiceCard ? "items-start" : "items-center"
|
|
530
532
|
)
|
|
@@ -540,7 +542,7 @@ function Radio({
|
|
|
540
542
|
}
|
|
541
543
|
),
|
|
542
544
|
/* @__PURE__ */ React19__namespace.createElement("div", { className: "flex-1 space-y-1" }, /* @__PURE__ */ React19__namespace.createElement("span", { className: "text-sm font-medium leading-none" }, option.label), option.description && /* @__PURE__ */ React19__namespace.createElement(
|
|
543
|
-
|
|
545
|
+
chunkZLET7YJ2_cjs.FieldDescription,
|
|
544
546
|
{
|
|
545
547
|
id: `${radioId}-description`,
|
|
546
548
|
className: "leading-snug tracking-tight"
|
|
@@ -563,7 +565,7 @@ function Switch({
|
|
|
563
565
|
{
|
|
564
566
|
"data-slot": "switch",
|
|
565
567
|
"data-size": size,
|
|
566
|
-
className:
|
|
568
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
567
569
|
// Core structure - uses CSS variables
|
|
568
570
|
"peer group/switch inline-flex shrink-0 items-center rounded-full",
|
|
569
571
|
"border border-transparent shadow-xs transition-all outline-none",
|
|
@@ -584,7 +586,7 @@ function Switch({
|
|
|
584
586
|
radixUi.Switch.Thumb,
|
|
585
587
|
{
|
|
586
588
|
"data-slot": "switch-thumb",
|
|
587
|
-
className:
|
|
589
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
588
590
|
// Thumb appearance - inherits from parent theme
|
|
589
591
|
"bg-background pointer-events-none block rounded-full ring-0 transition-transform",
|
|
590
592
|
// Size variants
|
|
@@ -635,21 +637,21 @@ function Switch2({
|
|
|
635
637
|
}
|
|
636
638
|
);
|
|
637
639
|
if (!label) {
|
|
638
|
-
return /* @__PURE__ */ React19__namespace.createElement(
|
|
640
|
+
return /* @__PURE__ */ React19__namespace.createElement(chunkZLET7YJ2_cjs.Field, { className }, switchElement);
|
|
639
641
|
}
|
|
640
|
-
return /* @__PURE__ */ React19__namespace.createElement(
|
|
641
|
-
|
|
642
|
+
return /* @__PURE__ */ React19__namespace.createElement(chunkZLET7YJ2_cjs.Field, { className: "gap-0", invalid: Boolean(error) }, /* @__PURE__ */ React19__namespace.createElement(
|
|
643
|
+
chunkZLET7YJ2_cjs.FieldLabel,
|
|
642
644
|
{
|
|
643
645
|
htmlFor: switchId,
|
|
644
|
-
className:
|
|
646
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
645
647
|
"flex items-center gap-3 cursor-pointer select-auto font-normal leading-normal",
|
|
646
648
|
disabled && "opacity-50 cursor-not-allowed",
|
|
647
649
|
className
|
|
648
650
|
)
|
|
649
651
|
},
|
|
650
652
|
switchElement,
|
|
651
|
-
/* @__PURE__ */ React19__namespace.createElement(
|
|
652
|
-
|
|
653
|
+
/* @__PURE__ */ React19__namespace.createElement(chunkZLET7YJ2_cjs.Field, { className: "gap-1" }, /* @__PURE__ */ React19__namespace.createElement("span", { className: "text-sm font-medium leading-none" }, label), description && /* @__PURE__ */ React19__namespace.createElement(
|
|
654
|
+
chunkZLET7YJ2_cjs.FieldDescription,
|
|
653
655
|
{
|
|
654
656
|
id: `${switchId}-description`,
|
|
655
657
|
className: "leading-snug"
|
|
@@ -692,10 +694,11 @@ function SelectTrigger({
|
|
|
692
694
|
{
|
|
693
695
|
"data-slot": "select-trigger",
|
|
694
696
|
"data-size": size,
|
|
695
|
-
className:
|
|
696
|
-
// Core structure -
|
|
697
|
-
"flex w-full items-center justify-between gap-2
|
|
698
|
-
"bg-transparent px-3 py-1
|
|
697
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
698
|
+
// Core structure - matched to Input component
|
|
699
|
+
"flex h-9 w-full min-w-0 items-center justify-between gap-2",
|
|
700
|
+
"rounded-md border border-input bg-transparent px-3 py-1",
|
|
701
|
+
"text-base whitespace-nowrap shadow-sm",
|
|
699
702
|
"transition-colors outline-none md:text-sm",
|
|
700
703
|
// Focus state (matched to Input component)
|
|
701
704
|
"focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -703,8 +706,8 @@ function SelectTrigger({
|
|
|
703
706
|
"aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive",
|
|
704
707
|
// Disabled state
|
|
705
708
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
706
|
-
// Size
|
|
707
|
-
"data-[size=
|
|
709
|
+
// Size variant override
|
|
710
|
+
"data-[size=sm]:h-8",
|
|
708
711
|
// Placeholder styling (match native input ::placeholder appearance)
|
|
709
712
|
"data-[placeholder]:text-muted-foreground data-[placeholder]:font-normal",
|
|
710
713
|
// Value styling
|
|
@@ -745,7 +748,7 @@ function SelectContent({
|
|
|
745
748
|
radixUi.Select.Content,
|
|
746
749
|
{
|
|
747
750
|
"data-slot": "select-content",
|
|
748
|
-
className:
|
|
751
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
749
752
|
"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",
|
|
750
753
|
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",
|
|
751
754
|
className
|
|
@@ -758,7 +761,7 @@ function SelectContent({
|
|
|
758
761
|
/* @__PURE__ */ React19__namespace.createElement(
|
|
759
762
|
radixUi.Select.Viewport,
|
|
760
763
|
{
|
|
761
|
-
className:
|
|
764
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
762
765
|
"p-1",
|
|
763
766
|
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
764
767
|
)
|
|
@@ -776,7 +779,7 @@ function SelectLabel({
|
|
|
776
779
|
radixUi.Select.Label,
|
|
777
780
|
{
|
|
778
781
|
"data-slot": "select-label",
|
|
779
|
-
className:
|
|
782
|
+
className: chunkZLET7YJ2_cjs.cn("px-2 py-1.5 text-xs opacity-70", className),
|
|
780
783
|
...props
|
|
781
784
|
}
|
|
782
785
|
);
|
|
@@ -790,7 +793,7 @@ function SelectItem({
|
|
|
790
793
|
radixUi.Select.Item,
|
|
791
794
|
{
|
|
792
795
|
"data-slot": "select-item",
|
|
793
|
-
className:
|
|
796
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
794
797
|
// Core structure - inherits text color
|
|
795
798
|
"relative flex w-full cursor-default items-center gap-2 rounded-sm",
|
|
796
799
|
"py-1.5 pr-8 pl-2 text-sm outline-hidden select-none",
|
|
@@ -837,7 +840,7 @@ function SelectScrollUpButton({
|
|
|
837
840
|
radixUi.Select.ScrollUpButton,
|
|
838
841
|
{
|
|
839
842
|
"data-slot": "select-scroll-up-button",
|
|
840
|
-
className:
|
|
843
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
841
844
|
"flex cursor-default items-center justify-center py-1",
|
|
842
845
|
className
|
|
843
846
|
),
|
|
@@ -866,7 +869,7 @@ function SelectScrollDownButton({
|
|
|
866
869
|
radixUi.Select.ScrollDownButton,
|
|
867
870
|
{
|
|
868
871
|
"data-slot": "select-scroll-down-button",
|
|
869
|
-
className:
|
|
872
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
870
873
|
"flex cursor-default items-center justify-center py-1",
|
|
871
874
|
className
|
|
872
875
|
),
|
|
@@ -960,7 +963,7 @@ function Select2({
|
|
|
960
963
|
/* @__PURE__ */ React19__namespace.createElement(
|
|
961
964
|
SelectTrigger,
|
|
962
965
|
{
|
|
963
|
-
className:
|
|
966
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
964
967
|
// Valid value indicator - ring-2 when has value and no error
|
|
965
968
|
!error && hasValue && "ring-2 ring-primary",
|
|
966
969
|
// Error state - handled by SelectTrigger via aria-invalid
|
|
@@ -1019,7 +1022,7 @@ var DialogOverlay = React19__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1019
1022
|
{
|
|
1020
1023
|
ref,
|
|
1021
1024
|
"data-slot": "dialog-overlay",
|
|
1022
|
-
className:
|
|
1025
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
1023
1026
|
"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",
|
|
1024
1027
|
className
|
|
1025
1028
|
),
|
|
@@ -1034,7 +1037,7 @@ var DialogContent = React19__namespace.forwardRef(({ className, children, showCl
|
|
|
1034
1037
|
{
|
|
1035
1038
|
ref,
|
|
1036
1039
|
"data-slot": "dialog-content",
|
|
1037
|
-
className:
|
|
1040
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
1038
1041
|
"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",
|
|
1039
1042
|
className
|
|
1040
1043
|
),
|
|
@@ -1071,7 +1074,7 @@ function DialogHeader({ className, ...props }) {
|
|
|
1071
1074
|
"div",
|
|
1072
1075
|
{
|
|
1073
1076
|
"data-slot": "dialog-header",
|
|
1074
|
-
className:
|
|
1077
|
+
className: chunkZLET7YJ2_cjs.cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
1075
1078
|
...props
|
|
1076
1079
|
}
|
|
1077
1080
|
);
|
|
@@ -1084,7 +1087,7 @@ function DialogTitle({
|
|
|
1084
1087
|
radixUi.Dialog.Title,
|
|
1085
1088
|
{
|
|
1086
1089
|
"data-slot": "dialog-title",
|
|
1087
|
-
className:
|
|
1090
|
+
className: chunkZLET7YJ2_cjs.cn("text-lg leading-none font-semibold", className),
|
|
1088
1091
|
...props
|
|
1089
1092
|
}
|
|
1090
1093
|
);
|
|
@@ -1099,7 +1102,7 @@ function Command({
|
|
|
1099
1102
|
cmdk.Command,
|
|
1100
1103
|
{
|
|
1101
1104
|
"data-slot": "command",
|
|
1102
|
-
className:
|
|
1105
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
1103
1106
|
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
1104
1107
|
className
|
|
1105
1108
|
),
|
|
@@ -1135,7 +1138,7 @@ function CommandInput({
|
|
|
1135
1138
|
cmdk.Command.Input,
|
|
1136
1139
|
{
|
|
1137
1140
|
"data-slot": "command-input",
|
|
1138
|
-
className:
|
|
1141
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
1139
1142
|
"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
1140
1143
|
className
|
|
1141
1144
|
),
|
|
@@ -1152,7 +1155,7 @@ function CommandList({
|
|
|
1152
1155
|
cmdk.Command.List,
|
|
1153
1156
|
{
|
|
1154
1157
|
"data-slot": "command-list",
|
|
1155
|
-
className:
|
|
1158
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
1156
1159
|
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
1157
1160
|
className
|
|
1158
1161
|
),
|
|
@@ -1180,7 +1183,7 @@ function CommandGroup({
|
|
|
1180
1183
|
cmdk.Command.Group,
|
|
1181
1184
|
{
|
|
1182
1185
|
"data-slot": "command-group",
|
|
1183
|
-
className:
|
|
1186
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
1184
1187
|
"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",
|
|
1185
1188
|
className
|
|
1186
1189
|
),
|
|
@@ -1210,7 +1213,7 @@ function PopoverContent({
|
|
|
1210
1213
|
"data-slot": "popover-content",
|
|
1211
1214
|
align,
|
|
1212
1215
|
sideOffset,
|
|
1213
|
-
className:
|
|
1216
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
1214
1217
|
"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",
|
|
1215
1218
|
className
|
|
1216
1219
|
),
|
|
@@ -1472,7 +1475,7 @@ function MultiSelect({
|
|
|
1472
1475
|
value
|
|
1473
1476
|
]
|
|
1474
1477
|
);
|
|
1475
|
-
const combinedClassName =
|
|
1478
|
+
const combinedClassName = chunkZLET7YJ2_cjs.cn("relative w-full", className);
|
|
1476
1479
|
return /* @__PURE__ */ React19__namespace.createElement("div", { className: combinedClassName }, /* @__PURE__ */ React19__namespace.createElement(
|
|
1477
1480
|
"select",
|
|
1478
1481
|
{
|
|
@@ -1493,7 +1496,7 @@ function MultiSelect({
|
|
|
1493
1496
|
"div",
|
|
1494
1497
|
{
|
|
1495
1498
|
ref: triggerRef,
|
|
1496
|
-
className:
|
|
1499
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
1497
1500
|
"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",
|
|
1498
1501
|
"cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
1499
1502
|
!error && hasValue && "ring-2 ring-primary",
|
|
@@ -1562,7 +1565,7 @@ function MultiSelect({
|
|
|
1562
1565
|
CommandInput,
|
|
1563
1566
|
{
|
|
1564
1567
|
id: searchInputId,
|
|
1565
|
-
className:
|
|
1568
|
+
className: chunkZLET7YJ2_cjs.cn(chunkZLET7YJ2_cjs.INPUT_AUTOFILL_RESET_CLASSES),
|
|
1566
1569
|
placeholder: "Search...",
|
|
1567
1570
|
value: searchQuery,
|
|
1568
1571
|
onValueChange: (nextValue) => {
|
|
@@ -1623,7 +1626,7 @@ function MultiSelect({
|
|
|
1623
1626
|
handleToggleOption(option.value);
|
|
1624
1627
|
}
|
|
1625
1628
|
},
|
|
1626
|
-
className:
|
|
1629
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
1627
1630
|
"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",
|
|
1628
1631
|
isFocused && "bg-accent",
|
|
1629
1632
|
isSelected && "bg-accent font-medium",
|
|
@@ -1654,7 +1657,7 @@ function MultiSelect({
|
|
|
1654
1657
|
handleToggleOption(option.value);
|
|
1655
1658
|
}
|
|
1656
1659
|
},
|
|
1657
|
-
className:
|
|
1660
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
1658
1661
|
"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",
|
|
1659
1662
|
isFocused && "bg-accent",
|
|
1660
1663
|
isSelected && "bg-accent font-medium",
|
|
@@ -1708,7 +1711,7 @@ function BaseFileIcon({
|
|
|
1708
1711
|
strokeWidth: "2",
|
|
1709
1712
|
strokeLinecap: "round",
|
|
1710
1713
|
strokeLinejoin: "round",
|
|
1711
|
-
className:
|
|
1714
|
+
className: chunkZLET7YJ2_cjs.cn("size-5", className),
|
|
1712
1715
|
"aria-hidden": "true"
|
|
1713
1716
|
},
|
|
1714
1717
|
children
|
|
@@ -2192,7 +2195,7 @@ function FileUpload(props) {
|
|
|
2192
2195
|
"data-slot": "file-upload",
|
|
2193
2196
|
dir,
|
|
2194
2197
|
...rootProps,
|
|
2195
|
-
className:
|
|
2198
|
+
className: chunkZLET7YJ2_cjs.cn("relative flex flex-col gap-2", className)
|
|
2196
2199
|
},
|
|
2197
2200
|
children,
|
|
2198
2201
|
/* @__PURE__ */ React19__namespace.createElement(
|
|
@@ -2364,7 +2367,7 @@ function FileUploadDropzone(props) {
|
|
|
2364
2367
|
dir: context.dir,
|
|
2365
2368
|
tabIndex: context.disabled ? -1 : 0,
|
|
2366
2369
|
...dropzoneProps,
|
|
2367
|
-
className:
|
|
2370
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
2368
2371
|
"relative flex select-none flex-col items-center",
|
|
2369
2372
|
"justify-center gap-2 rounded-lg border border-dashed p-6",
|
|
2370
2373
|
"outline-none transition-colors hover:ring-2 hover:ring-primary",
|
|
@@ -2408,7 +2411,7 @@ function FileUploadList(props) {
|
|
|
2408
2411
|
"data-state": shouldRender ? "active" : "inactive",
|
|
2409
2412
|
dir: context.dir,
|
|
2410
2413
|
...listProps,
|
|
2411
|
-
className:
|
|
2414
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
2412
2415
|
"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",
|
|
2413
2416
|
orientation === "horizontal" && "flex-row overflow-x-auto p-1.5",
|
|
2414
2417
|
className
|
|
@@ -2464,7 +2467,7 @@ function FileUploadItem(props) {
|
|
|
2464
2467
|
"data-slot": "file-upload-item",
|
|
2465
2468
|
dir: context.dir,
|
|
2466
2469
|
...itemProps,
|
|
2467
|
-
className:
|
|
2470
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
2468
2471
|
"relative flex items-center gap-2.5 rounded-md border p-3",
|
|
2469
2472
|
className
|
|
2470
2473
|
)
|
|
@@ -2511,7 +2514,7 @@ function FileUploadItemPreview(props) {
|
|
|
2511
2514
|
"aria-labelledby": itemContext.nameId,
|
|
2512
2515
|
"data-slot": "file-upload-preview",
|
|
2513
2516
|
...previewProps,
|
|
2514
|
-
className:
|
|
2517
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
2515
2518
|
"relative flex size-10 shrink-0 items-center justify-center overflow-hidden rounded border bg-accent/50 [&>svg]:size-10",
|
|
2516
2519
|
className
|
|
2517
2520
|
)
|
|
@@ -2538,13 +2541,13 @@ function FileUploadItemMetadata(props) {
|
|
|
2538
2541
|
"data-slot": "file-upload-metadata",
|
|
2539
2542
|
dir: context.dir,
|
|
2540
2543
|
...metadataProps,
|
|
2541
|
-
className:
|
|
2544
|
+
className: chunkZLET7YJ2_cjs.cn("flex min-w-0 flex-1 flex-col", className)
|
|
2542
2545
|
},
|
|
2543
2546
|
children ?? /* @__PURE__ */ React19__namespace.createElement(React19__namespace.Fragment, null, /* @__PURE__ */ React19__namespace.createElement(
|
|
2544
2547
|
"span",
|
|
2545
2548
|
{
|
|
2546
2549
|
id: itemContext.nameId,
|
|
2547
|
-
className:
|
|
2550
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
2548
2551
|
"truncate font-medium text-sm",
|
|
2549
2552
|
size === "sm" && "font-normal text-[13px] leading-snug"
|
|
2550
2553
|
)
|
|
@@ -2554,7 +2557,7 @@ function FileUploadItemMetadata(props) {
|
|
|
2554
2557
|
"span",
|
|
2555
2558
|
{
|
|
2556
2559
|
id: itemContext.sizeId,
|
|
2557
|
-
className:
|
|
2560
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
2558
2561
|
"truncate text-xs opacity-70",
|
|
2559
2562
|
size === "sm" && "text-[11px] leading-snug"
|
|
2560
2563
|
)
|
|
@@ -2920,7 +2923,7 @@ function FileInput({
|
|
|
2920
2923
|
required: required && normalizedValue.length === 0,
|
|
2921
2924
|
invalid: Boolean(error || props["aria-invalid"]),
|
|
2922
2925
|
label: "File upload",
|
|
2923
|
-
className:
|
|
2926
|
+
className: chunkZLET7YJ2_cjs.cn(className),
|
|
2924
2927
|
inputProps: {
|
|
2925
2928
|
...props,
|
|
2926
2929
|
onBlur: handleBlur,
|
|
@@ -2935,7 +2938,7 @@ function FileInput({
|
|
|
2935
2938
|
{
|
|
2936
2939
|
role: "button",
|
|
2937
2940
|
"aria-label": dynamicPlaceholder,
|
|
2938
|
-
className:
|
|
2941
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
2939
2942
|
"flex min-h-32 w-full cursor-pointer",
|
|
2940
2943
|
"items-center justify-center border-input",
|
|
2941
2944
|
"bg-transparent p-6 transition-colors",
|
|
@@ -2970,7 +2973,7 @@ function FileInput({
|
|
|
2970
2973
|
{
|
|
2971
2974
|
key: `${file.name}-${index}`,
|
|
2972
2975
|
value: file,
|
|
2973
|
-
className:
|
|
2976
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
2974
2977
|
"flex items-center gap-3",
|
|
2975
2978
|
"border-border bg-card text-card-foreground"
|
|
2976
2979
|
)
|
|
@@ -2995,7 +2998,7 @@ function FileInput({
|
|
|
2995
2998
|
)
|
|
2996
2999
|
), /* @__PURE__ */ React19__namespace.createElement("span", { className: "text-xs" }, progressValue, "%")) : /* @__PURE__ */ React19__namespace.createElement("span", { className: "text-xs" }, formatFileSize(file.size))),
|
|
2997
3000
|
enableCropping && file.type.startsWith("image/") ? /* @__PURE__ */ React19__namespace.createElement(
|
|
2998
|
-
|
|
3001
|
+
chunkZLET7YJ2_cjs.Button,
|
|
2999
3002
|
{
|
|
3000
3003
|
type: "button",
|
|
3001
3004
|
variant: "ghost",
|
|
@@ -3026,7 +3029,7 @@ function FileInput({
|
|
|
3026
3029
|
)
|
|
3027
3030
|
) : null,
|
|
3028
3031
|
/* @__PURE__ */ React19__namespace.createElement(FileUploadItemDelete, { asChild: true }, /* @__PURE__ */ React19__namespace.createElement(
|
|
3029
|
-
|
|
3032
|
+
chunkZLET7YJ2_cjs.Button,
|
|
3030
3033
|
{
|
|
3031
3034
|
type: "button",
|
|
3032
3035
|
variant: "outline",
|
|
@@ -3072,7 +3075,7 @@ function FileInput({
|
|
|
3072
3075
|
"aria-describedby": void 0
|
|
3073
3076
|
},
|
|
3074
3077
|
/* @__PURE__ */ React19__namespace.createElement(DialogHeader, { className: "flex-row items-center justify-between border-b border-border px-4 py-3" }, /* @__PURE__ */ React19__namespace.createElement(DialogTitle, null, "Crop Image"), /* @__PURE__ */ React19__namespace.createElement(DialogClose, { asChild: true }, /* @__PURE__ */ React19__namespace.createElement(
|
|
3075
|
-
|
|
3078
|
+
chunkZLET7YJ2_cjs.Button,
|
|
3076
3079
|
{
|
|
3077
3080
|
type: "button",
|
|
3078
3081
|
variant: "ghost",
|
|
@@ -3189,14 +3192,14 @@ function FileInput({
|
|
|
3189
3192
|
}
|
|
3190
3193
|
))),
|
|
3191
3194
|
/* @__PURE__ */ React19__namespace.createElement("div", { className: "flex items-center justify-end gap-2 border-t border-border p-4" }, /* @__PURE__ */ React19__namespace.createElement(
|
|
3192
|
-
|
|
3195
|
+
chunkZLET7YJ2_cjs.Button,
|
|
3193
3196
|
{
|
|
3194
3197
|
type: "button",
|
|
3195
3198
|
variant: "outline",
|
|
3196
3199
|
onClick: handleCropCancel
|
|
3197
3200
|
},
|
|
3198
3201
|
"Cancel"
|
|
3199
|
-
), /* @__PURE__ */ React19__namespace.createElement(
|
|
3202
|
+
), /* @__PURE__ */ React19__namespace.createElement(chunkZLET7YJ2_cjs.Button, { type: "button", onClick: handleCropSave }, "Save"))
|
|
3200
3203
|
) : null
|
|
3201
3204
|
));
|
|
3202
3205
|
}
|
|
@@ -3216,7 +3219,7 @@ function Calendar({
|
|
|
3216
3219
|
reactDayPicker.DayPicker,
|
|
3217
3220
|
{
|
|
3218
3221
|
showOutsideDays,
|
|
3219
|
-
className:
|
|
3222
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
3220
3223
|
"bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
3221
3224
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
3222
3225
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
@@ -3228,18 +3231,18 @@ function Calendar({
|
|
|
3228
3231
|
...formatters
|
|
3229
3232
|
},
|
|
3230
3233
|
classNames: {
|
|
3231
|
-
root:
|
|
3232
|
-
months:
|
|
3234
|
+
root: chunkZLET7YJ2_cjs.cn("w-fit", defaultClassNames.root),
|
|
3235
|
+
months: chunkZLET7YJ2_cjs.cn(
|
|
3233
3236
|
"flex gap-4 flex-col md:flex-row relative",
|
|
3234
3237
|
defaultClassNames.months
|
|
3235
3238
|
),
|
|
3236
|
-
month:
|
|
3237
|
-
nav:
|
|
3239
|
+
month: chunkZLET7YJ2_cjs.cn("flex flex-col w-full gap-4", defaultClassNames.month),
|
|
3240
|
+
nav: chunkZLET7YJ2_cjs.cn(
|
|
3238
3241
|
"flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
3239
3242
|
defaultClassNames.nav
|
|
3240
3243
|
),
|
|
3241
|
-
button_previous:
|
|
3242
|
-
|
|
3244
|
+
button_previous: chunkZLET7YJ2_cjs.cn(
|
|
3245
|
+
chunkZLET7YJ2_cjs.buttonVariants({ variant: buttonVariant }),
|
|
3243
3246
|
"size-(--cell-size) aria-disabled:opacity-50 select-none",
|
|
3244
3247
|
"rounded-full text-sm font-medium transition-all",
|
|
3245
3248
|
"hover:ring-2 hover:ring-primary",
|
|
@@ -3247,8 +3250,8 @@ function Calendar({
|
|
|
3247
3250
|
"p-0 size-6",
|
|
3248
3251
|
defaultClassNames.button_previous
|
|
3249
3252
|
),
|
|
3250
|
-
button_next:
|
|
3251
|
-
|
|
3253
|
+
button_next: chunkZLET7YJ2_cjs.cn(
|
|
3254
|
+
chunkZLET7YJ2_cjs.buttonVariants({ variant: buttonVariant }),
|
|
3252
3255
|
"size-(--cell-size) aria-disabled:opacity-50 select-none",
|
|
3253
3256
|
"rounded-full text-sm font-medium transition-all",
|
|
3254
3257
|
"hover:ring-2 hover:ring-ring",
|
|
@@ -3256,64 +3259,64 @@ function Calendar({
|
|
|
3256
3259
|
"p-0 size-6",
|
|
3257
3260
|
defaultClassNames.button_next
|
|
3258
3261
|
),
|
|
3259
|
-
month_caption:
|
|
3262
|
+
month_caption: chunkZLET7YJ2_cjs.cn(
|
|
3260
3263
|
"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
3261
3264
|
defaultClassNames.month_caption
|
|
3262
3265
|
),
|
|
3263
|
-
dropdowns:
|
|
3266
|
+
dropdowns: chunkZLET7YJ2_cjs.cn(
|
|
3264
3267
|
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
3265
3268
|
defaultClassNames.dropdowns
|
|
3266
3269
|
),
|
|
3267
|
-
dropdown_root:
|
|
3270
|
+
dropdown_root: chunkZLET7YJ2_cjs.cn(
|
|
3268
3271
|
"relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
|
|
3269
3272
|
defaultClassNames.dropdown_root
|
|
3270
3273
|
),
|
|
3271
|
-
dropdown:
|
|
3274
|
+
dropdown: chunkZLET7YJ2_cjs.cn(
|
|
3272
3275
|
"absolute bg-popover inset-0 opacity-0",
|
|
3273
3276
|
defaultClassNames.dropdown
|
|
3274
3277
|
),
|
|
3275
|
-
caption_label:
|
|
3278
|
+
caption_label: chunkZLET7YJ2_cjs.cn(
|
|
3276
3279
|
"select-none font-medium",
|
|
3277
3280
|
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",
|
|
3278
3281
|
defaultClassNames.caption_label
|
|
3279
3282
|
),
|
|
3280
3283
|
table: "w-full border-collapse",
|
|
3281
|
-
weekdays:
|
|
3282
|
-
weekday:
|
|
3284
|
+
weekdays: chunkZLET7YJ2_cjs.cn("flex", defaultClassNames.weekdays),
|
|
3285
|
+
weekday: chunkZLET7YJ2_cjs.cn(
|
|
3283
3286
|
"opacity-70 rounded-md flex-1 font-normal text-[0.8rem] select-none",
|
|
3284
3287
|
defaultClassNames.weekday
|
|
3285
3288
|
),
|
|
3286
|
-
week:
|
|
3287
|
-
week_number_header:
|
|
3289
|
+
week: chunkZLET7YJ2_cjs.cn("flex w-full mt-2", defaultClassNames.week),
|
|
3290
|
+
week_number_header: chunkZLET7YJ2_cjs.cn(
|
|
3288
3291
|
"select-none w-(--cell-size)",
|
|
3289
3292
|
defaultClassNames.week_number_header
|
|
3290
3293
|
),
|
|
3291
|
-
week_number:
|
|
3294
|
+
week_number: chunkZLET7YJ2_cjs.cn(
|
|
3292
3295
|
"text-[0.8rem] select-none opacity-70",
|
|
3293
3296
|
defaultClassNames.week_number
|
|
3294
3297
|
),
|
|
3295
|
-
day:
|
|
3298
|
+
day: chunkZLET7YJ2_cjs.cn(
|
|
3296
3299
|
"relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
|
|
3297
3300
|
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md" : "[&:first-child[data-selected=true]_button]:rounded-l-md",
|
|
3298
3301
|
defaultClassNames.day
|
|
3299
3302
|
),
|
|
3300
|
-
range_start:
|
|
3303
|
+
range_start: chunkZLET7YJ2_cjs.cn(
|
|
3301
3304
|
"rounded-l-md bg-primary text-primary-foreground",
|
|
3302
3305
|
defaultClassNames.range_start
|
|
3303
3306
|
),
|
|
3304
|
-
range_middle:
|
|
3305
|
-
range_end:
|
|
3307
|
+
range_middle: chunkZLET7YJ2_cjs.cn("rounded-none", defaultClassNames.range_middle),
|
|
3308
|
+
range_end: chunkZLET7YJ2_cjs.cn(
|
|
3306
3309
|
"rounded-r-md bg-primary text-primary-foreground",
|
|
3307
3310
|
defaultClassNames.range_end
|
|
3308
3311
|
),
|
|
3309
|
-
today:
|
|
3312
|
+
today: chunkZLET7YJ2_cjs.cn(
|
|
3310
3313
|
"bg-muted text-muted-foreground",
|
|
3311
3314
|
"rounded-md",
|
|
3312
3315
|
defaultClassNames.today
|
|
3313
3316
|
),
|
|
3314
|
-
outside:
|
|
3315
|
-
disabled:
|
|
3316
|
-
hidden:
|
|
3317
|
+
outside: chunkZLET7YJ2_cjs.cn("opacity-50", defaultClassNames.outside),
|
|
3318
|
+
disabled: chunkZLET7YJ2_cjs.cn("opacity-50", defaultClassNames.disabled),
|
|
3319
|
+
hidden: chunkZLET7YJ2_cjs.cn("invisible", defaultClassNames.hidden),
|
|
3317
3320
|
...classNames
|
|
3318
3321
|
},
|
|
3319
3322
|
components: {
|
|
@@ -3323,7 +3326,7 @@ function Calendar({
|
|
|
3323
3326
|
{
|
|
3324
3327
|
"data-slot": "calendar",
|
|
3325
3328
|
ref: rootRef,
|
|
3326
|
-
className:
|
|
3329
|
+
className: chunkZLET7YJ2_cjs.cn(className2),
|
|
3327
3330
|
...props2
|
|
3328
3331
|
}
|
|
3329
3332
|
);
|
|
@@ -3333,7 +3336,7 @@ function Calendar({
|
|
|
3333
3336
|
return /* @__PURE__ */ React19__namespace.createElement(
|
|
3334
3337
|
"svg",
|
|
3335
3338
|
{
|
|
3336
|
-
className:
|
|
3339
|
+
className: chunkZLET7YJ2_cjs.cn("size-4", className2),
|
|
3337
3340
|
viewBox: "0 0 24 24",
|
|
3338
3341
|
fill: "none",
|
|
3339
3342
|
stroke: "currentColor",
|
|
@@ -3349,7 +3352,7 @@ function Calendar({
|
|
|
3349
3352
|
return /* @__PURE__ */ React19__namespace.createElement(
|
|
3350
3353
|
"svg",
|
|
3351
3354
|
{
|
|
3352
|
-
className:
|
|
3355
|
+
className: chunkZLET7YJ2_cjs.cn("size-4", className2),
|
|
3353
3356
|
viewBox: "0 0 24 24",
|
|
3354
3357
|
fill: "none",
|
|
3355
3358
|
stroke: "currentColor",
|
|
@@ -3364,7 +3367,7 @@ function Calendar({
|
|
|
3364
3367
|
return /* @__PURE__ */ React19__namespace.createElement(
|
|
3365
3368
|
"svg",
|
|
3366
3369
|
{
|
|
3367
|
-
className:
|
|
3370
|
+
className: chunkZLET7YJ2_cjs.cn("size-4", className2),
|
|
3368
3371
|
viewBox: "0 0 24 24",
|
|
3369
3372
|
fill: "none",
|
|
3370
3373
|
stroke: "currentColor",
|
|
@@ -3398,7 +3401,7 @@ function CalendarDayButton({
|
|
|
3398
3401
|
if (modifiers.focused) ref.current?.focus();
|
|
3399
3402
|
}, [modifiers.focused]);
|
|
3400
3403
|
return /* @__PURE__ */ React19__namespace.createElement(
|
|
3401
|
-
|
|
3404
|
+
chunkZLET7YJ2_cjs.Button,
|
|
3402
3405
|
{
|
|
3403
3406
|
ref,
|
|
3404
3407
|
variant: "ghost",
|
|
@@ -3408,7 +3411,7 @@ function CalendarDayButton({
|
|
|
3408
3411
|
"data-range-start": modifiers.range_start,
|
|
3409
3412
|
"data-range-end": modifiers.range_end,
|
|
3410
3413
|
"data-range-middle": modifiers.range_middle,
|
|
3411
|
-
className:
|
|
3414
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
3412
3415
|
// Core structure
|
|
3413
3416
|
"flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal",
|
|
3414
3417
|
// Selected states - uses CSS variables
|
|
@@ -3451,7 +3454,7 @@ function DatePickerDayButton({
|
|
|
3451
3454
|
"button",
|
|
3452
3455
|
{
|
|
3453
3456
|
type: "button",
|
|
3454
|
-
className:
|
|
3457
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
3455
3458
|
"flex items-center justify-center h-8 w-8 rounded-md border-none bg-transparent cursor-pointer text-sm transition-colors",
|
|
3456
3459
|
"hover:bg-accent",
|
|
3457
3460
|
modifiers.selected && "bg-primary text-primary-foreground font-semibold",
|
|
@@ -3561,7 +3564,7 @@ function DatePicker({
|
|
|
3561
3564
|
}, [hasInteracted]);
|
|
3562
3565
|
const hasValue = Boolean(value);
|
|
3563
3566
|
const displayValue = formatDate(value, format);
|
|
3564
|
-
const combinedClassName =
|
|
3567
|
+
const combinedClassName = chunkZLET7YJ2_cjs.cn("relative", className);
|
|
3565
3568
|
return /* @__PURE__ */ React19__namespace.createElement("div", { className: combinedClassName }, /* @__PURE__ */ React19__namespace.createElement(
|
|
3566
3569
|
"input",
|
|
3567
3570
|
{
|
|
@@ -3572,7 +3575,7 @@ function DatePicker({
|
|
|
3572
3575
|
), /* @__PURE__ */ React19__namespace.createElement(Popover, { open: isOpen, onOpenChange: handleOpenChange }, /* @__PURE__ */ React19__namespace.createElement("div", { className: "relative" }, showIcon && /* @__PURE__ */ React19__namespace.createElement(
|
|
3573
3576
|
"span",
|
|
3574
3577
|
{
|
|
3575
|
-
className:
|
|
3578
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
3576
3579
|
"absolute left-3 top-1/2 -translate-y-1/2",
|
|
3577
3580
|
"pointer-events-none flex items-center justify-center",
|
|
3578
3581
|
"pointer-events-none"
|
|
@@ -3593,7 +3596,7 @@ function DatePicker({
|
|
|
3593
3596
|
ref: inputRef,
|
|
3594
3597
|
id: props.id,
|
|
3595
3598
|
type: "text",
|
|
3596
|
-
className:
|
|
3599
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
3597
3600
|
"flex h-9 w-full rounded-md border",
|
|
3598
3601
|
"border-input bg-transparent py-1 text-base",
|
|
3599
3602
|
"shadow-sm transition-colors",
|
|
@@ -3601,7 +3604,7 @@ function DatePicker({
|
|
|
3601
3604
|
"focus-visible:ring-ring",
|
|
3602
3605
|
"disabled:cursor-not-allowed",
|
|
3603
3606
|
"disabled:opacity-50 md:text-sm",
|
|
3604
|
-
|
|
3607
|
+
chunkZLET7YJ2_cjs.INPUT_AUTOFILL_RESET_CLASSES,
|
|
3605
3608
|
showIcon ? "pl-10" : "pl-3",
|
|
3606
3609
|
clearable && value ? "pr-10" : "pr-3",
|
|
3607
3610
|
!error && hasValue && "ring-2 ring-primary",
|
|
@@ -3742,7 +3745,7 @@ function TimePicker({
|
|
|
3742
3745
|
};
|
|
3743
3746
|
const hasValue = Boolean(value);
|
|
3744
3747
|
const stepInSeconds = Math.max(1, minuteStep * 60);
|
|
3745
|
-
return /* @__PURE__ */ React19__namespace.createElement("div", { className:
|
|
3748
|
+
return /* @__PURE__ */ React19__namespace.createElement("div", { className: chunkZLET7YJ2_cjs.cn("relative", className) }, /* @__PURE__ */ React19__namespace.createElement("input", { type: "hidden", name, value }), /* @__PURE__ */ React19__namespace.createElement("div", { className: "relative" }, showIcon && /* @__PURE__ */ React19__namespace.createElement(
|
|
3746
3749
|
"span",
|
|
3747
3750
|
{
|
|
3748
3751
|
className: "absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none",
|
|
@@ -3765,13 +3768,13 @@ function TimePicker({
|
|
|
3765
3768
|
/* @__PURE__ */ React19__namespace.createElement("path", { d: "M12 6v6l4 2" })
|
|
3766
3769
|
)
|
|
3767
3770
|
), /* @__PURE__ */ React19__namespace.createElement(
|
|
3768
|
-
|
|
3771
|
+
chunkZLET7YJ2_cjs.Input,
|
|
3769
3772
|
{
|
|
3770
3773
|
ref: inputRef,
|
|
3771
3774
|
type: "time",
|
|
3772
|
-
className:
|
|
3775
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
3773
3776
|
"appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none",
|
|
3774
|
-
|
|
3777
|
+
chunkZLET7YJ2_cjs.INPUT_AUTOFILL_RESET_CLASSES,
|
|
3775
3778
|
showIcon ? "pl-10" : "pl-3",
|
|
3776
3779
|
clearable && value ? "pr-10" : "pr-3",
|
|
3777
3780
|
!error && hasValue && "ring-2 ring-primary",
|
|
@@ -3790,7 +3793,7 @@ function TimePicker({
|
|
|
3790
3793
|
...props
|
|
3791
3794
|
}
|
|
3792
3795
|
), clearable && value && !disabled && /* @__PURE__ */ React19__namespace.createElement(
|
|
3793
|
-
|
|
3796
|
+
chunkZLET7YJ2_cjs.Button,
|
|
3794
3797
|
{
|
|
3795
3798
|
type: "button",
|
|
3796
3799
|
variant: "ghost",
|
|
@@ -3994,7 +3997,7 @@ function DateRangePicker({
|
|
|
3994
3997
|
{
|
|
3995
3998
|
type: "button",
|
|
3996
3999
|
...rest,
|
|
3997
|
-
className:
|
|
4000
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
3998
4001
|
"flex items-center justify-center h-8 w-8 rounded-md border-none bg-transparent cursor-pointer text-sm transition-colors",
|
|
3999
4002
|
"hover:bg-accent",
|
|
4000
4003
|
isRangeEndpoint && "bg-primary text-primary-foreground font-semibold",
|
|
@@ -4032,7 +4035,7 @@ function DateRangePicker({
|
|
|
4032
4035
|
to: rangeEnd ?? void 0
|
|
4033
4036
|
} : void 0;
|
|
4034
4037
|
const displayValue = rangeStart && rangeEnd ? `${formatDate2(rangeStart, format)}${separator}${formatDate2(rangeEnd, format)}` : rangeStart ? formatDate2(rangeStart, format) : "";
|
|
4035
|
-
const combinedClassName =
|
|
4038
|
+
const combinedClassName = chunkZLET7YJ2_cjs.cn("relative", className);
|
|
4036
4039
|
return /* @__PURE__ */ React19__namespace.createElement("div", { className: combinedClassName }, /* @__PURE__ */ React19__namespace.createElement(
|
|
4037
4040
|
"input",
|
|
4038
4041
|
{
|
|
@@ -4074,11 +4077,11 @@ function DateRangePicker({
|
|
|
4074
4077
|
ref: inputRef,
|
|
4075
4078
|
id: props.id,
|
|
4076
4079
|
type: "text",
|
|
4077
|
-
className:
|
|
4080
|
+
className: chunkZLET7YJ2_cjs.cn(
|
|
4078
4081
|
"flex h-9 w-full rounded-md border border-input bg-transparent py-1 text-base shadow-sm transition-colors",
|
|
4079
4082
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
4080
4083
|
"disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
4081
|
-
|
|
4084
|
+
chunkZLET7YJ2_cjs.INPUT_AUTOFILL_RESET_CLASSES,
|
|
4082
4085
|
showIcon ? "pl-10" : "pl-3",
|
|
4083
4086
|
clearable && (rangeStart || rangeEnd) ? "pr-10" : "pr-3",
|
|
4084
4087
|
!error && hasValue && "ring-2 ring-primary",
|
|
@@ -4154,5 +4157,5 @@ exports.Select = Select2;
|
|
|
4154
4157
|
exports.Switch = Switch2;
|
|
4155
4158
|
exports.TextArea = TextArea;
|
|
4156
4159
|
exports.TimePicker = TimePicker;
|
|
4157
|
-
//# sourceMappingURL=chunk-
|
|
4158
|
-
//# sourceMappingURL=chunk-
|
|
4160
|
+
//# sourceMappingURL=chunk-RACQRUM6.cjs.map
|
|
4161
|
+
//# sourceMappingURL=chunk-RACQRUM6.cjs.map
|