@page-speed/forms 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-AI5Q4N6D.js → chunk-5BAN5ICD.js} +3 -3
- package/dist/{chunk-AI5Q4N6D.js.map → chunk-5BAN5ICD.js.map} +1 -1
- package/dist/{chunk-6TCB3X5J.js → chunk-BW752X33.js} +3 -3
- package/dist/{chunk-6TCB3X5J.js.map → chunk-BW752X33.js.map} +1 -1
- package/dist/{chunk-33XRILGQ.cjs → chunk-DKLPYENR.cjs} +20 -20
- package/dist/{chunk-33XRILGQ.cjs.map → chunk-DKLPYENR.cjs.map} +1 -1
- package/dist/{chunk-I4EKHIVF.cjs → chunk-ER3C5JAE.cjs} +113 -113
- package/dist/{chunk-I4EKHIVF.cjs.map → chunk-ER3C5JAE.cjs.map} +1 -1
- package/dist/{chunk-J37BGNM6.js → chunk-SUF7WJS6.js} +8 -3
- package/dist/chunk-SUF7WJS6.js.map +1 -0
- package/dist/{chunk-QMWZLGON.cjs → chunk-WQ4HD5UD.cjs} +8 -2
- package/dist/chunk-WQ4HD5UD.cjs.map +1 -0
- 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 +23 -22
- package/dist/integration.cjs.map +1 -1
- package/dist/integration.js +5 -4
- package/dist/integration.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-J37BGNM6.js.map +0 -1
- package/dist/chunk-QMWZLGON.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWQ4HD5UD_cjs = require('./chunk-WQ4HD5UD.cjs');
|
|
4
4
|
var React19 = require('react');
|
|
5
5
|
var radixUi = require('radix-ui');
|
|
6
6
|
var cmdk = require('cmdk');
|
|
@@ -33,7 +33,7 @@ function Textarea({ className, ...props }) {
|
|
|
33
33
|
"textarea",
|
|
34
34
|
{
|
|
35
35
|
"data-slot": "textarea",
|
|
36
|
-
className:
|
|
36
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
37
37
|
// Core structure - uses CSS variables only
|
|
38
38
|
"flex field-sizing-content min-h-16 w-full rounded-md border border-input",
|
|
39
39
|
"bg-transparent px-3 py-2 text-base shadow-xs",
|
|
@@ -86,7 +86,7 @@ function TextArea({
|
|
|
86
86
|
placeholder,
|
|
87
87
|
disabled,
|
|
88
88
|
required,
|
|
89
|
-
className:
|
|
89
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
90
90
|
// Valid value indicator - ring-2 when has value and no error
|
|
91
91
|
!error && hasValue && "ring-2 ring-ring",
|
|
92
92
|
// Error state - handled by Textarea component via aria-invalid
|
|
@@ -113,7 +113,7 @@ function Checkbox({
|
|
|
113
113
|
radixUi.Checkbox.Root,
|
|
114
114
|
{
|
|
115
115
|
"data-slot": "checkbox",
|
|
116
|
-
className:
|
|
116
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
117
117
|
// Core structure - uses CSS variables
|
|
118
118
|
"peer size-4 shrink-0 rounded-[4px] border border-input bg-transparent shadow-xs",
|
|
119
119
|
"transition-shadow outline-none",
|
|
@@ -218,10 +218,10 @@ function Checkbox2({
|
|
|
218
218
|
return /* @__PURE__ */ React19__namespace.createElement("div", { className }, checkbox);
|
|
219
219
|
}
|
|
220
220
|
return /* @__PURE__ */ React19__namespace.createElement("div", { className: "space-y-0", "data-invalid": error || void 0 }, /* @__PURE__ */ React19__namespace.createElement(
|
|
221
|
-
|
|
221
|
+
chunkWQ4HD5UD_cjs.FieldLabel,
|
|
222
222
|
{
|
|
223
223
|
htmlFor: checkboxId,
|
|
224
|
-
className:
|
|
224
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
225
225
|
"flex gap-3 p-3 duration-200 select-auto font-normal leading-normal",
|
|
226
226
|
showChoiceCard && "border rounded-lg hover:ring-2 hover:ring-ring/50",
|
|
227
227
|
showChoiceCard && value && "ring-2 ring-ring",
|
|
@@ -233,14 +233,14 @@ function Checkbox2({
|
|
|
233
233
|
/* @__PURE__ */ React19__namespace.createElement(
|
|
234
234
|
"div",
|
|
235
235
|
{
|
|
236
|
-
className:
|
|
236
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
237
237
|
"flex w-full gap-3",
|
|
238
238
|
showChoiceCard ? "items-start" : "items-center"
|
|
239
239
|
)
|
|
240
240
|
},
|
|
241
241
|
checkbox,
|
|
242
242
|
/* @__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(
|
|
243
|
-
|
|
243
|
+
chunkWQ4HD5UD_cjs.FieldDescription,
|
|
244
244
|
{
|
|
245
245
|
id: `${checkboxId}-description`,
|
|
246
246
|
className: "leading-snug"
|
|
@@ -309,7 +309,7 @@ function CheckboxGroup({
|
|
|
309
309
|
};
|
|
310
310
|
const maxReached = Boolean(maxSelections && countableValue >= maxSelections);
|
|
311
311
|
const containerClass = React19__namespace.useMemo(() => {
|
|
312
|
-
return
|
|
312
|
+
return chunkWQ4HD5UD_cjs.cn(
|
|
313
313
|
"w-full grid grid-cols-1 border-0 m-0 p-0 min-w-0",
|
|
314
314
|
(layout === "grid" || layout === "inline") && "md:grid-cols-2",
|
|
315
315
|
layout === "grid" && "gap-3",
|
|
@@ -330,7 +330,7 @@ function CheckboxGroup({
|
|
|
330
330
|
"aria-label": typeof label === "string" ? label : props["aria-label"]
|
|
331
331
|
},
|
|
332
332
|
/* @__PURE__ */ React19__namespace.createElement(
|
|
333
|
-
|
|
333
|
+
chunkWQ4HD5UD_cjs.LabelGroup,
|
|
334
334
|
{
|
|
335
335
|
labelHtmlFor: name,
|
|
336
336
|
required,
|
|
@@ -377,9 +377,9 @@ function CheckboxGroup({
|
|
|
377
377
|
);
|
|
378
378
|
}),
|
|
379
379
|
(minSelections || maxSelections) && /* @__PURE__ */ React19__namespace.createElement(
|
|
380
|
-
|
|
380
|
+
chunkWQ4HD5UD_cjs.FieldDescription,
|
|
381
381
|
{
|
|
382
|
-
className:
|
|
382
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
383
383
|
"p-2 rounded-lg border font-semibold mt-2 leading-snug",
|
|
384
384
|
minSelections && countableValue < minSelections ? "border-destructive bg-destructive/80 text-destructive-foreground" : "border-border bg-card text-card-foreground"
|
|
385
385
|
),
|
|
@@ -399,7 +399,7 @@ function RadioGroup({
|
|
|
399
399
|
radixUi.RadioGroup.Root,
|
|
400
400
|
{
|
|
401
401
|
"data-slot": "radio-group",
|
|
402
|
-
className:
|
|
402
|
+
className: chunkWQ4HD5UD_cjs.cn("grid gap-3", className),
|
|
403
403
|
...props
|
|
404
404
|
}
|
|
405
405
|
);
|
|
@@ -412,7 +412,7 @@ function RadioGroupItem({
|
|
|
412
412
|
radixUi.RadioGroup.Item,
|
|
413
413
|
{
|
|
414
414
|
"data-slot": "radio-group-item",
|
|
415
|
-
className:
|
|
415
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
416
416
|
// Core structure - uses CSS variables
|
|
417
417
|
"aspect-square size-4 shrink-0 rounded-full border border-input bg-transparent shadow-xs",
|
|
418
418
|
"text-primary transition-[color,box-shadow] outline-none",
|
|
@@ -470,7 +470,7 @@ function Radio({
|
|
|
470
470
|
return options.some((option) => option.description);
|
|
471
471
|
}, [options]);
|
|
472
472
|
const groupDescriptionId = description ? `${name}-description` : void 0;
|
|
473
|
-
return /* @__PURE__ */ React19__namespace.createElement("div", { className:
|
|
473
|
+
return /* @__PURE__ */ React19__namespace.createElement("div", { className: chunkWQ4HD5UD_cjs.cn("w-full", className), "data-invalid": error || void 0 }, (label || description) && /* @__PURE__ */ React19__namespace.createElement("div", { className: "mb-3 space-y-1" }, label && /* @__PURE__ */ React19__namespace.createElement("div", { className: "text-base font-medium leading-none" }, label), description && /* @__PURE__ */ React19__namespace.createElement(chunkWQ4HD5UD_cjs.FieldDescription, { id: groupDescriptionId, className: "leading-snug" }, description)), /* @__PURE__ */ React19__namespace.createElement(
|
|
474
474
|
RadioGroup,
|
|
475
475
|
{
|
|
476
476
|
name,
|
|
@@ -479,7 +479,7 @@ function Radio({
|
|
|
479
479
|
onBlur: handleBlur,
|
|
480
480
|
disabled,
|
|
481
481
|
required,
|
|
482
|
-
className:
|
|
482
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
483
483
|
layout === "grid" && "grid grid-cols-1 md:grid-cols-2 gap-3",
|
|
484
484
|
layout === "inline" && "flex flex-wrap gap-0"
|
|
485
485
|
),
|
|
@@ -493,11 +493,11 @@ function Radio({
|
|
|
493
493
|
const radioId = `${name}-${option.value}`;
|
|
494
494
|
const hasDescription = !!option.description;
|
|
495
495
|
return /* @__PURE__ */ React19__namespace.createElement(
|
|
496
|
-
|
|
496
|
+
chunkWQ4HD5UD_cjs.FieldLabel,
|
|
497
497
|
{
|
|
498
498
|
key: option.value,
|
|
499
499
|
htmlFor: radioId,
|
|
500
|
-
className:
|
|
500
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
501
501
|
"flex gap-3 p-3 duration-200 select-auto font-normal leading-normal",
|
|
502
502
|
useChoiceCard && "border rounded-lg hover:ring-2 hover:ring-ring/50",
|
|
503
503
|
useChoiceCard && isSelected && "ring-2 ring-ring",
|
|
@@ -508,7 +508,7 @@ function Radio({
|
|
|
508
508
|
/* @__PURE__ */ React19__namespace.createElement(
|
|
509
509
|
"div",
|
|
510
510
|
{
|
|
511
|
-
className:
|
|
511
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
512
512
|
"flex w-full gap-3",
|
|
513
513
|
useChoiceCard ? "items-start" : "items-center"
|
|
514
514
|
)
|
|
@@ -524,7 +524,7 @@ function Radio({
|
|
|
524
524
|
}
|
|
525
525
|
),
|
|
526
526
|
/* @__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(
|
|
527
|
-
|
|
527
|
+
chunkWQ4HD5UD_cjs.FieldDescription,
|
|
528
528
|
{
|
|
529
529
|
id: `${radioId}-description`,
|
|
530
530
|
className: "leading-snug"
|
|
@@ -547,7 +547,7 @@ function Switch({
|
|
|
547
547
|
{
|
|
548
548
|
"data-slot": "switch",
|
|
549
549
|
"data-size": size,
|
|
550
|
-
className:
|
|
550
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
551
551
|
// Core structure - uses CSS variables
|
|
552
552
|
"peer group/switch inline-flex shrink-0 items-center rounded-full",
|
|
553
553
|
"border border-transparent shadow-xs transition-all outline-none",
|
|
@@ -568,7 +568,7 @@ function Switch({
|
|
|
568
568
|
radixUi.Switch.Thumb,
|
|
569
569
|
{
|
|
570
570
|
"data-slot": "switch-thumb",
|
|
571
|
-
className:
|
|
571
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
572
572
|
// Thumb appearance - inherits from parent theme
|
|
573
573
|
"bg-background pointer-events-none block rounded-full ring-0 transition-transform",
|
|
574
574
|
// Size variants
|
|
@@ -619,21 +619,21 @@ function Switch2({
|
|
|
619
619
|
}
|
|
620
620
|
);
|
|
621
621
|
if (!label) {
|
|
622
|
-
return /* @__PURE__ */ React19__namespace.createElement(
|
|
622
|
+
return /* @__PURE__ */ React19__namespace.createElement(chunkWQ4HD5UD_cjs.Field, { className }, switchElement);
|
|
623
623
|
}
|
|
624
|
-
return /* @__PURE__ */ React19__namespace.createElement(
|
|
625
|
-
|
|
624
|
+
return /* @__PURE__ */ React19__namespace.createElement(chunkWQ4HD5UD_cjs.Field, { className: "gap-0", invalid: Boolean(error) }, /* @__PURE__ */ React19__namespace.createElement(
|
|
625
|
+
chunkWQ4HD5UD_cjs.FieldLabel,
|
|
626
626
|
{
|
|
627
627
|
htmlFor: switchId,
|
|
628
|
-
className:
|
|
628
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
629
629
|
"flex items-center gap-3 cursor-pointer select-auto font-normal leading-normal",
|
|
630
630
|
disabled && "opacity-50 cursor-not-allowed",
|
|
631
631
|
className
|
|
632
632
|
)
|
|
633
633
|
},
|
|
634
634
|
switchElement,
|
|
635
|
-
/* @__PURE__ */ React19__namespace.createElement(
|
|
636
|
-
|
|
635
|
+
/* @__PURE__ */ React19__namespace.createElement(chunkWQ4HD5UD_cjs.Field, { className: "gap-1" }, /* @__PURE__ */ React19__namespace.createElement("span", { className: "text-sm font-medium leading-none" }, label), description && /* @__PURE__ */ React19__namespace.createElement(
|
|
636
|
+
chunkWQ4HD5UD_cjs.FieldDescription,
|
|
637
637
|
{
|
|
638
638
|
id: `${switchId}-description`,
|
|
639
639
|
className: "leading-snug"
|
|
@@ -669,7 +669,7 @@ function SelectTrigger({
|
|
|
669
669
|
{
|
|
670
670
|
"data-slot": "select-trigger",
|
|
671
671
|
"data-size": size,
|
|
672
|
-
className:
|
|
672
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
673
673
|
// Core structure - uses CSS variables
|
|
674
674
|
"flex w-full items-center justify-between gap-2 rounded-md border border-input",
|
|
675
675
|
"bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs",
|
|
@@ -720,7 +720,7 @@ function SelectContent({
|
|
|
720
720
|
radixUi.Select.Content,
|
|
721
721
|
{
|
|
722
722
|
"data-slot": "select-content",
|
|
723
|
-
className:
|
|
723
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
724
724
|
"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",
|
|
725
725
|
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",
|
|
726
726
|
className
|
|
@@ -733,7 +733,7 @@ function SelectContent({
|
|
|
733
733
|
/* @__PURE__ */ React19__namespace.createElement(
|
|
734
734
|
radixUi.Select.Viewport,
|
|
735
735
|
{
|
|
736
|
-
className:
|
|
736
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
737
737
|
"p-1",
|
|
738
738
|
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
739
739
|
)
|
|
@@ -751,7 +751,7 @@ function SelectLabel({
|
|
|
751
751
|
radixUi.Select.Label,
|
|
752
752
|
{
|
|
753
753
|
"data-slot": "select-label",
|
|
754
|
-
className:
|
|
754
|
+
className: chunkWQ4HD5UD_cjs.cn("px-2 py-1.5 text-xs opacity-70", className),
|
|
755
755
|
...props
|
|
756
756
|
}
|
|
757
757
|
);
|
|
@@ -765,7 +765,7 @@ function SelectItem({
|
|
|
765
765
|
radixUi.Select.Item,
|
|
766
766
|
{
|
|
767
767
|
"data-slot": "select-item",
|
|
768
|
-
className:
|
|
768
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
769
769
|
// Core structure - inherits text color
|
|
770
770
|
"relative flex w-full cursor-default items-center gap-2 rounded-sm",
|
|
771
771
|
"py-1.5 pr-8 pl-2 text-sm outline-hidden select-none",
|
|
@@ -812,7 +812,7 @@ function SelectScrollUpButton({
|
|
|
812
812
|
radixUi.Select.ScrollUpButton,
|
|
813
813
|
{
|
|
814
814
|
"data-slot": "select-scroll-up-button",
|
|
815
|
-
className:
|
|
815
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
816
816
|
"flex cursor-default items-center justify-center py-1",
|
|
817
817
|
className
|
|
818
818
|
),
|
|
@@ -841,7 +841,7 @@ function SelectScrollDownButton({
|
|
|
841
841
|
radixUi.Select.ScrollDownButton,
|
|
842
842
|
{
|
|
843
843
|
"data-slot": "select-scroll-down-button",
|
|
844
|
-
className:
|
|
844
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
845
845
|
"flex cursor-default items-center justify-center py-1",
|
|
846
846
|
className
|
|
847
847
|
),
|
|
@@ -935,7 +935,7 @@ function Select2({
|
|
|
935
935
|
/* @__PURE__ */ React19__namespace.createElement(
|
|
936
936
|
SelectTrigger,
|
|
937
937
|
{
|
|
938
|
-
className:
|
|
938
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
939
939
|
// Valid value indicator - ring-2 when has value and no error
|
|
940
940
|
!error && hasValue && "ring-2 ring-ring",
|
|
941
941
|
// Error state - handled by SelectTrigger via aria-invalid
|
|
@@ -994,7 +994,7 @@ var DialogOverlay = React19__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
994
994
|
{
|
|
995
995
|
ref,
|
|
996
996
|
"data-slot": "dialog-overlay",
|
|
997
|
-
className:
|
|
997
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
998
998
|
"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",
|
|
999
999
|
className
|
|
1000
1000
|
),
|
|
@@ -1009,7 +1009,7 @@ var DialogContent = React19__namespace.forwardRef(({ className, children, showCl
|
|
|
1009
1009
|
{
|
|
1010
1010
|
ref,
|
|
1011
1011
|
"data-slot": "dialog-content",
|
|
1012
|
-
className:
|
|
1012
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
1013
1013
|
"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",
|
|
1014
1014
|
className
|
|
1015
1015
|
),
|
|
@@ -1046,7 +1046,7 @@ function DialogHeader({ className, ...props }) {
|
|
|
1046
1046
|
"div",
|
|
1047
1047
|
{
|
|
1048
1048
|
"data-slot": "dialog-header",
|
|
1049
|
-
className:
|
|
1049
|
+
className: chunkWQ4HD5UD_cjs.cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
1050
1050
|
...props
|
|
1051
1051
|
}
|
|
1052
1052
|
);
|
|
@@ -1059,7 +1059,7 @@ function DialogTitle({
|
|
|
1059
1059
|
radixUi.Dialog.Title,
|
|
1060
1060
|
{
|
|
1061
1061
|
"data-slot": "dialog-title",
|
|
1062
|
-
className:
|
|
1062
|
+
className: chunkWQ4HD5UD_cjs.cn("text-lg leading-none font-semibold", className),
|
|
1063
1063
|
...props
|
|
1064
1064
|
}
|
|
1065
1065
|
);
|
|
@@ -1074,7 +1074,7 @@ function Command({
|
|
|
1074
1074
|
cmdk.Command,
|
|
1075
1075
|
{
|
|
1076
1076
|
"data-slot": "command",
|
|
1077
|
-
className:
|
|
1077
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
1078
1078
|
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
1079
1079
|
className
|
|
1080
1080
|
),
|
|
@@ -1110,7 +1110,7 @@ function CommandInput({
|
|
|
1110
1110
|
cmdk.Command.Input,
|
|
1111
1111
|
{
|
|
1112
1112
|
"data-slot": "command-input",
|
|
1113
|
-
className:
|
|
1113
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
1114
1114
|
"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
1115
1115
|
className
|
|
1116
1116
|
),
|
|
@@ -1127,7 +1127,7 @@ function CommandList({
|
|
|
1127
1127
|
cmdk.Command.List,
|
|
1128
1128
|
{
|
|
1129
1129
|
"data-slot": "command-list",
|
|
1130
|
-
className:
|
|
1130
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
1131
1131
|
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
1132
1132
|
className
|
|
1133
1133
|
),
|
|
@@ -1155,7 +1155,7 @@ function CommandGroup({
|
|
|
1155
1155
|
cmdk.Command.Group,
|
|
1156
1156
|
{
|
|
1157
1157
|
"data-slot": "command-group",
|
|
1158
|
-
className:
|
|
1158
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
1159
1159
|
"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",
|
|
1160
1160
|
className
|
|
1161
1161
|
),
|
|
@@ -1185,7 +1185,7 @@ function PopoverContent({
|
|
|
1185
1185
|
"data-slot": "popover-content",
|
|
1186
1186
|
align,
|
|
1187
1187
|
sideOffset,
|
|
1188
|
-
className:
|
|
1188
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
1189
1189
|
"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",
|
|
1190
1190
|
className
|
|
1191
1191
|
),
|
|
@@ -1445,7 +1445,7 @@ function MultiSelect({
|
|
|
1445
1445
|
value
|
|
1446
1446
|
]
|
|
1447
1447
|
);
|
|
1448
|
-
const combinedClassName =
|
|
1448
|
+
const combinedClassName = chunkWQ4HD5UD_cjs.cn("relative w-full", className);
|
|
1449
1449
|
return /* @__PURE__ */ React19__namespace.createElement("div", { className: combinedClassName }, /* @__PURE__ */ React19__namespace.createElement(
|
|
1450
1450
|
"select",
|
|
1451
1451
|
{
|
|
@@ -1466,7 +1466,7 @@ function MultiSelect({
|
|
|
1466
1466
|
"div",
|
|
1467
1467
|
{
|
|
1468
1468
|
ref: triggerRef,
|
|
1469
|
-
className:
|
|
1469
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
1470
1470
|
"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",
|
|
1471
1471
|
"cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
1472
1472
|
!error && hasValue && "ring-2 ring-ring",
|
|
@@ -1535,7 +1535,7 @@ function MultiSelect({
|
|
|
1535
1535
|
CommandInput,
|
|
1536
1536
|
{
|
|
1537
1537
|
id: searchInputId,
|
|
1538
|
-
className:
|
|
1538
|
+
className: chunkWQ4HD5UD_cjs.cn(chunkWQ4HD5UD_cjs.INPUT_AUTOFILL_RESET_CLASSES),
|
|
1539
1539
|
placeholder: "Search...",
|
|
1540
1540
|
value: searchQuery,
|
|
1541
1541
|
onValueChange: (nextValue) => {
|
|
@@ -1596,7 +1596,7 @@ function MultiSelect({
|
|
|
1596
1596
|
handleToggleOption(option.value);
|
|
1597
1597
|
}
|
|
1598
1598
|
},
|
|
1599
|
-
className:
|
|
1599
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
1600
1600
|
"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",
|
|
1601
1601
|
isFocused && "bg-accent",
|
|
1602
1602
|
isSelected && "bg-accent font-medium",
|
|
@@ -1627,7 +1627,7 @@ function MultiSelect({
|
|
|
1627
1627
|
handleToggleOption(option.value);
|
|
1628
1628
|
}
|
|
1629
1629
|
},
|
|
1630
|
-
className:
|
|
1630
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
1631
1631
|
"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",
|
|
1632
1632
|
isFocused && "bg-accent",
|
|
1633
1633
|
isSelected && "bg-accent font-medium",
|
|
@@ -1681,7 +1681,7 @@ function BaseFileIcon({
|
|
|
1681
1681
|
strokeWidth: "2",
|
|
1682
1682
|
strokeLinecap: "round",
|
|
1683
1683
|
strokeLinejoin: "round",
|
|
1684
|
-
className:
|
|
1684
|
+
className: chunkWQ4HD5UD_cjs.cn("size-5", className),
|
|
1685
1685
|
"aria-hidden": "true"
|
|
1686
1686
|
},
|
|
1687
1687
|
children
|
|
@@ -2165,7 +2165,7 @@ function FileUpload(props) {
|
|
|
2165
2165
|
"data-slot": "file-upload",
|
|
2166
2166
|
dir,
|
|
2167
2167
|
...rootProps,
|
|
2168
|
-
className:
|
|
2168
|
+
className: chunkWQ4HD5UD_cjs.cn("relative flex flex-col gap-2", className)
|
|
2169
2169
|
},
|
|
2170
2170
|
children,
|
|
2171
2171
|
/* @__PURE__ */ React19__namespace.createElement(
|
|
@@ -2337,7 +2337,7 @@ function FileUploadDropzone(props) {
|
|
|
2337
2337
|
dir: context.dir,
|
|
2338
2338
|
tabIndex: context.disabled ? -1 : 0,
|
|
2339
2339
|
...dropzoneProps,
|
|
2340
|
-
className:
|
|
2340
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
2341
2341
|
"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",
|
|
2342
2342
|
className
|
|
2343
2343
|
),
|
|
@@ -2375,7 +2375,7 @@ function FileUploadList(props) {
|
|
|
2375
2375
|
"data-state": shouldRender ? "active" : "inactive",
|
|
2376
2376
|
dir: context.dir,
|
|
2377
2377
|
...listProps,
|
|
2378
|
-
className:
|
|
2378
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
2379
2379
|
"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",
|
|
2380
2380
|
orientation === "horizontal" && "flex-row overflow-x-auto p-1.5",
|
|
2381
2381
|
className
|
|
@@ -2431,7 +2431,7 @@ function FileUploadItem(props) {
|
|
|
2431
2431
|
"data-slot": "file-upload-item",
|
|
2432
2432
|
dir: context.dir,
|
|
2433
2433
|
...itemProps,
|
|
2434
|
-
className:
|
|
2434
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
2435
2435
|
"relative flex items-center gap-2.5 rounded-md border p-3",
|
|
2436
2436
|
className
|
|
2437
2437
|
)
|
|
@@ -2478,7 +2478,7 @@ function FileUploadItemPreview(props) {
|
|
|
2478
2478
|
"aria-labelledby": itemContext.nameId,
|
|
2479
2479
|
"data-slot": "file-upload-preview",
|
|
2480
2480
|
...previewProps,
|
|
2481
|
-
className:
|
|
2481
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
2482
2482
|
"relative flex size-10 shrink-0 items-center justify-center overflow-hidden rounded border bg-accent/50 [&>svg]:size-10",
|
|
2483
2483
|
className
|
|
2484
2484
|
)
|
|
@@ -2505,13 +2505,13 @@ function FileUploadItemMetadata(props) {
|
|
|
2505
2505
|
"data-slot": "file-upload-metadata",
|
|
2506
2506
|
dir: context.dir,
|
|
2507
2507
|
...metadataProps,
|
|
2508
|
-
className:
|
|
2508
|
+
className: chunkWQ4HD5UD_cjs.cn("flex min-w-0 flex-1 flex-col", className)
|
|
2509
2509
|
},
|
|
2510
2510
|
children ?? /* @__PURE__ */ React19__namespace.createElement(React19__namespace.Fragment, null, /* @__PURE__ */ React19__namespace.createElement(
|
|
2511
2511
|
"span",
|
|
2512
2512
|
{
|
|
2513
2513
|
id: itemContext.nameId,
|
|
2514
|
-
className:
|
|
2514
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
2515
2515
|
"truncate font-medium text-sm",
|
|
2516
2516
|
size === "sm" && "font-normal text-[13px] leading-snug"
|
|
2517
2517
|
)
|
|
@@ -2521,7 +2521,7 @@ function FileUploadItemMetadata(props) {
|
|
|
2521
2521
|
"span",
|
|
2522
2522
|
{
|
|
2523
2523
|
id: itemContext.sizeId,
|
|
2524
|
-
className:
|
|
2524
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
2525
2525
|
"truncate text-xs opacity-70",
|
|
2526
2526
|
size === "sm" && "text-[11px] leading-snug"
|
|
2527
2527
|
)
|
|
@@ -2863,7 +2863,7 @@ function FileInput({
|
|
|
2863
2863
|
required: required && normalizedValue.length === 0,
|
|
2864
2864
|
invalid: Boolean(error || props["aria-invalid"]),
|
|
2865
2865
|
label: "File upload",
|
|
2866
|
-
className:
|
|
2866
|
+
className: chunkWQ4HD5UD_cjs.cn(className),
|
|
2867
2867
|
inputProps: {
|
|
2868
2868
|
...props,
|
|
2869
2869
|
onBlur: handleBlur,
|
|
@@ -2878,7 +2878,7 @@ function FileInput({
|
|
|
2878
2878
|
{
|
|
2879
2879
|
role: "button",
|
|
2880
2880
|
"aria-label": placeholder,
|
|
2881
|
-
className:
|
|
2881
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
2882
2882
|
"flex min-h-32 w-full cursor-pointer items-center justify-center border-input bg-transparent p-6 transition-colors",
|
|
2883
2883
|
"hover:bg-accent/50 hover:border-ring",
|
|
2884
2884
|
"data-[dragging]:bg-accent data-[dragging]:border-ring",
|
|
@@ -2934,7 +2934,7 @@ function FileInput({
|
|
|
2934
2934
|
)
|
|
2935
2935
|
), /* @__PURE__ */ React19__namespace.createElement("span", { className: "text-xs" }, progressValue, "%")) : null),
|
|
2936
2936
|
enableCropping && file.type.startsWith("image/") ? /* @__PURE__ */ React19__namespace.createElement(
|
|
2937
|
-
|
|
2937
|
+
chunkWQ4HD5UD_cjs.Button,
|
|
2938
2938
|
{
|
|
2939
2939
|
type: "button",
|
|
2940
2940
|
variant: "ghost",
|
|
@@ -2965,7 +2965,7 @@ function FileInput({
|
|
|
2965
2965
|
)
|
|
2966
2966
|
) : null,
|
|
2967
2967
|
/* @__PURE__ */ React19__namespace.createElement(FileUploadItemDelete, { asChild: true }, /* @__PURE__ */ React19__namespace.createElement(
|
|
2968
|
-
|
|
2968
|
+
chunkWQ4HD5UD_cjs.Button,
|
|
2969
2969
|
{
|
|
2970
2970
|
type: "button",
|
|
2971
2971
|
variant: "ghost",
|
|
@@ -3011,7 +3011,7 @@ function FileInput({
|
|
|
3011
3011
|
"aria-describedby": void 0
|
|
3012
3012
|
},
|
|
3013
3013
|
/* @__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(
|
|
3014
|
-
|
|
3014
|
+
chunkWQ4HD5UD_cjs.Button,
|
|
3015
3015
|
{
|
|
3016
3016
|
type: "button",
|
|
3017
3017
|
variant: "ghost",
|
|
@@ -3127,7 +3127,7 @@ function FileInput({
|
|
|
3127
3127
|
"aria-label": "Zoom level"
|
|
3128
3128
|
}
|
|
3129
3129
|
))),
|
|
3130
|
-
/* @__PURE__ */ React19__namespace.createElement("div", { className: "flex items-center justify-end gap-2 border-t border-border p-4" }, /* @__PURE__ */ React19__namespace.createElement(
|
|
3130
|
+
/* @__PURE__ */ React19__namespace.createElement("div", { className: "flex items-center justify-end gap-2 border-t border-border p-4" }, /* @__PURE__ */ React19__namespace.createElement(chunkWQ4HD5UD_cjs.Button, { type: "button", variant: "outline", onClick: handleCropCancel }, "Cancel"), /* @__PURE__ */ React19__namespace.createElement(chunkWQ4HD5UD_cjs.Button, { type: "button", onClick: handleCropSave }, "Save"))
|
|
3131
3131
|
) : null
|
|
3132
3132
|
));
|
|
3133
3133
|
}
|
|
@@ -3147,7 +3147,7 @@ function Calendar({
|
|
|
3147
3147
|
reactDayPicker.DayPicker,
|
|
3148
3148
|
{
|
|
3149
3149
|
showOutsideDays,
|
|
3150
|
-
className:
|
|
3150
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
3151
3151
|
"bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
3152
3152
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
3153
3153
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
@@ -3159,86 +3159,86 @@ function Calendar({
|
|
|
3159
3159
|
...formatters
|
|
3160
3160
|
},
|
|
3161
3161
|
classNames: {
|
|
3162
|
-
root:
|
|
3163
|
-
months:
|
|
3162
|
+
root: chunkWQ4HD5UD_cjs.cn("w-fit", defaultClassNames.root),
|
|
3163
|
+
months: chunkWQ4HD5UD_cjs.cn(
|
|
3164
3164
|
"flex gap-4 flex-col md:flex-row relative",
|
|
3165
3165
|
defaultClassNames.months
|
|
3166
3166
|
),
|
|
3167
|
-
month:
|
|
3168
|
-
nav:
|
|
3167
|
+
month: chunkWQ4HD5UD_cjs.cn("flex flex-col w-full gap-4", defaultClassNames.month),
|
|
3168
|
+
nav: chunkWQ4HD5UD_cjs.cn(
|
|
3169
3169
|
"flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
3170
3170
|
defaultClassNames.nav
|
|
3171
3171
|
),
|
|
3172
|
-
button_previous:
|
|
3173
|
-
|
|
3172
|
+
button_previous: chunkWQ4HD5UD_cjs.cn(
|
|
3173
|
+
chunkWQ4HD5UD_cjs.buttonVariants({ variant: buttonVariant }),
|
|
3174
3174
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
3175
3175
|
defaultClassNames.button_previous
|
|
3176
3176
|
),
|
|
3177
|
-
button_next:
|
|
3178
|
-
|
|
3177
|
+
button_next: chunkWQ4HD5UD_cjs.cn(
|
|
3178
|
+
chunkWQ4HD5UD_cjs.buttonVariants({ variant: buttonVariant }),
|
|
3179
3179
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
3180
3180
|
defaultClassNames.button_next
|
|
3181
3181
|
),
|
|
3182
|
-
month_caption:
|
|
3182
|
+
month_caption: chunkWQ4HD5UD_cjs.cn(
|
|
3183
3183
|
"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
3184
3184
|
defaultClassNames.month_caption
|
|
3185
3185
|
),
|
|
3186
|
-
dropdowns:
|
|
3186
|
+
dropdowns: chunkWQ4HD5UD_cjs.cn(
|
|
3187
3187
|
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
3188
3188
|
defaultClassNames.dropdowns
|
|
3189
3189
|
),
|
|
3190
|
-
dropdown_root:
|
|
3190
|
+
dropdown_root: chunkWQ4HD5UD_cjs.cn(
|
|
3191
3191
|
"relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
|
|
3192
3192
|
defaultClassNames.dropdown_root
|
|
3193
3193
|
),
|
|
3194
|
-
dropdown:
|
|
3194
|
+
dropdown: chunkWQ4HD5UD_cjs.cn(
|
|
3195
3195
|
"absolute bg-popover inset-0 opacity-0",
|
|
3196
3196
|
defaultClassNames.dropdown
|
|
3197
3197
|
),
|
|
3198
|
-
caption_label:
|
|
3198
|
+
caption_label: chunkWQ4HD5UD_cjs.cn(
|
|
3199
3199
|
"select-none font-medium",
|
|
3200
3200
|
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",
|
|
3201
3201
|
defaultClassNames.caption_label
|
|
3202
3202
|
),
|
|
3203
3203
|
table: "w-full border-collapse",
|
|
3204
|
-
weekdays:
|
|
3205
|
-
weekday:
|
|
3204
|
+
weekdays: chunkWQ4HD5UD_cjs.cn("flex", defaultClassNames.weekdays),
|
|
3205
|
+
weekday: chunkWQ4HD5UD_cjs.cn(
|
|
3206
3206
|
"opacity-70 rounded-md flex-1 font-normal text-[0.8rem] select-none",
|
|
3207
3207
|
defaultClassNames.weekday
|
|
3208
3208
|
),
|
|
3209
|
-
week:
|
|
3210
|
-
week_number_header:
|
|
3209
|
+
week: chunkWQ4HD5UD_cjs.cn("flex w-full mt-2", defaultClassNames.week),
|
|
3210
|
+
week_number_header: chunkWQ4HD5UD_cjs.cn(
|
|
3211
3211
|
"select-none w-(--cell-size)",
|
|
3212
3212
|
defaultClassNames.week_number_header
|
|
3213
3213
|
),
|
|
3214
|
-
week_number:
|
|
3214
|
+
week_number: chunkWQ4HD5UD_cjs.cn(
|
|
3215
3215
|
"text-[0.8rem] select-none opacity-70",
|
|
3216
3216
|
defaultClassNames.week_number
|
|
3217
3217
|
),
|
|
3218
|
-
day:
|
|
3218
|
+
day: chunkWQ4HD5UD_cjs.cn(
|
|
3219
3219
|
"relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
|
|
3220
3220
|
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md" : "[&:first-child[data-selected=true]_button]:rounded-l-md",
|
|
3221
3221
|
defaultClassNames.day
|
|
3222
3222
|
),
|
|
3223
|
-
range_start:
|
|
3223
|
+
range_start: chunkWQ4HD5UD_cjs.cn(
|
|
3224
3224
|
"rounded-l-md bg-accent",
|
|
3225
3225
|
defaultClassNames.range_start
|
|
3226
3226
|
),
|
|
3227
|
-
range_middle:
|
|
3228
|
-
range_end:
|
|
3229
|
-
today:
|
|
3227
|
+
range_middle: chunkWQ4HD5UD_cjs.cn("rounded-none", defaultClassNames.range_middle),
|
|
3228
|
+
range_end: chunkWQ4HD5UD_cjs.cn("rounded-r-md bg-accent", defaultClassNames.range_end),
|
|
3229
|
+
today: chunkWQ4HD5UD_cjs.cn(
|
|
3230
3230
|
"bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
|
|
3231
3231
|
defaultClassNames.today
|
|
3232
3232
|
),
|
|
3233
|
-
outside:
|
|
3233
|
+
outside: chunkWQ4HD5UD_cjs.cn(
|
|
3234
3234
|
"opacity-50",
|
|
3235
3235
|
defaultClassNames.outside
|
|
3236
3236
|
),
|
|
3237
|
-
disabled:
|
|
3237
|
+
disabled: chunkWQ4HD5UD_cjs.cn(
|
|
3238
3238
|
"opacity-50",
|
|
3239
3239
|
defaultClassNames.disabled
|
|
3240
3240
|
),
|
|
3241
|
-
hidden:
|
|
3241
|
+
hidden: chunkWQ4HD5UD_cjs.cn("invisible", defaultClassNames.hidden),
|
|
3242
3242
|
...classNames
|
|
3243
3243
|
},
|
|
3244
3244
|
components: {
|
|
@@ -3248,7 +3248,7 @@ function Calendar({
|
|
|
3248
3248
|
{
|
|
3249
3249
|
"data-slot": "calendar",
|
|
3250
3250
|
ref: rootRef,
|
|
3251
|
-
className:
|
|
3251
|
+
className: chunkWQ4HD5UD_cjs.cn(className2),
|
|
3252
3252
|
...props2
|
|
3253
3253
|
}
|
|
3254
3254
|
);
|
|
@@ -3258,7 +3258,7 @@ function Calendar({
|
|
|
3258
3258
|
return /* @__PURE__ */ React19__namespace.createElement(
|
|
3259
3259
|
"svg",
|
|
3260
3260
|
{
|
|
3261
|
-
className:
|
|
3261
|
+
className: chunkWQ4HD5UD_cjs.cn("size-4", className2),
|
|
3262
3262
|
viewBox: "0 0 24 24",
|
|
3263
3263
|
fill: "none",
|
|
3264
3264
|
stroke: "currentColor",
|
|
@@ -3274,7 +3274,7 @@ function Calendar({
|
|
|
3274
3274
|
return /* @__PURE__ */ React19__namespace.createElement(
|
|
3275
3275
|
"svg",
|
|
3276
3276
|
{
|
|
3277
|
-
className:
|
|
3277
|
+
className: chunkWQ4HD5UD_cjs.cn("size-4", className2),
|
|
3278
3278
|
viewBox: "0 0 24 24",
|
|
3279
3279
|
fill: "none",
|
|
3280
3280
|
stroke: "currentColor",
|
|
@@ -3289,7 +3289,7 @@ function Calendar({
|
|
|
3289
3289
|
return /* @__PURE__ */ React19__namespace.createElement(
|
|
3290
3290
|
"svg",
|
|
3291
3291
|
{
|
|
3292
|
-
className:
|
|
3292
|
+
className: chunkWQ4HD5UD_cjs.cn("size-4", className2),
|
|
3293
3293
|
viewBox: "0 0 24 24",
|
|
3294
3294
|
fill: "none",
|
|
3295
3295
|
stroke: "currentColor",
|
|
@@ -3323,7 +3323,7 @@ function CalendarDayButton({
|
|
|
3323
3323
|
if (modifiers.focused) ref.current?.focus();
|
|
3324
3324
|
}, [modifiers.focused]);
|
|
3325
3325
|
return /* @__PURE__ */ React19__namespace.createElement(
|
|
3326
|
-
|
|
3326
|
+
chunkWQ4HD5UD_cjs.Button,
|
|
3327
3327
|
{
|
|
3328
3328
|
ref,
|
|
3329
3329
|
variant: "ghost",
|
|
@@ -3333,7 +3333,7 @@ function CalendarDayButton({
|
|
|
3333
3333
|
"data-range-start": modifiers.range_start,
|
|
3334
3334
|
"data-range-end": modifiers.range_end,
|
|
3335
3335
|
"data-range-middle": modifiers.range_middle,
|
|
3336
|
-
className:
|
|
3336
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
3337
3337
|
// Core structure
|
|
3338
3338
|
"flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal",
|
|
3339
3339
|
// Selected states - uses CSS variables
|
|
@@ -3378,7 +3378,7 @@ function DatePickerDayButton({
|
|
|
3378
3378
|
"button",
|
|
3379
3379
|
{
|
|
3380
3380
|
type: "button",
|
|
3381
|
-
className:
|
|
3381
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
3382
3382
|
"flex items-center justify-center h-8 w-8 rounded-md border-none bg-transparent cursor-pointer text-sm transition-colors",
|
|
3383
3383
|
"hover:bg-accent",
|
|
3384
3384
|
modifiers.selected && "bg-primary text-primary-foreground font-semibold",
|
|
@@ -3488,7 +3488,7 @@ function DatePicker({
|
|
|
3488
3488
|
}, [hasInteracted]);
|
|
3489
3489
|
const hasValue = Boolean(value);
|
|
3490
3490
|
const displayValue = formatDate(value, format);
|
|
3491
|
-
const combinedClassName =
|
|
3491
|
+
const combinedClassName = chunkWQ4HD5UD_cjs.cn("relative", className);
|
|
3492
3492
|
return /* @__PURE__ */ React19__namespace.createElement("div", { className: combinedClassName }, /* @__PURE__ */ React19__namespace.createElement(
|
|
3493
3493
|
"input",
|
|
3494
3494
|
{
|
|
@@ -3523,11 +3523,11 @@ function DatePicker({
|
|
|
3523
3523
|
ref: inputRef,
|
|
3524
3524
|
id: props.id,
|
|
3525
3525
|
type: "text",
|
|
3526
|
-
className:
|
|
3526
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
3527
3527
|
"flex h-9 w-full rounded-md border border-input bg-transparent py-1 text-base shadow-sm transition-colors",
|
|
3528
3528
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
3529
3529
|
"disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
3530
|
-
|
|
3530
|
+
chunkWQ4HD5UD_cjs.INPUT_AUTOFILL_RESET_CLASSES,
|
|
3531
3531
|
showIcon ? "pl-10" : "pl-3",
|
|
3532
3532
|
clearable && value ? "pr-10" : "pr-3",
|
|
3533
3533
|
!error && hasValue && "ring-2 ring-ring",
|
|
@@ -3668,7 +3668,7 @@ function TimePicker({
|
|
|
3668
3668
|
};
|
|
3669
3669
|
const hasValue = Boolean(value);
|
|
3670
3670
|
const stepInSeconds = Math.max(1, minuteStep * 60);
|
|
3671
|
-
return /* @__PURE__ */ React19__namespace.createElement("div", { className:
|
|
3671
|
+
return /* @__PURE__ */ React19__namespace.createElement("div", { className: chunkWQ4HD5UD_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(
|
|
3672
3672
|
"span",
|
|
3673
3673
|
{
|
|
3674
3674
|
className: "absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none",
|
|
@@ -3691,13 +3691,13 @@ function TimePicker({
|
|
|
3691
3691
|
/* @__PURE__ */ React19__namespace.createElement("path", { d: "M12 6v6l4 2" })
|
|
3692
3692
|
)
|
|
3693
3693
|
), /* @__PURE__ */ React19__namespace.createElement(
|
|
3694
|
-
|
|
3694
|
+
chunkWQ4HD5UD_cjs.Input,
|
|
3695
3695
|
{
|
|
3696
3696
|
ref: inputRef,
|
|
3697
3697
|
type: "time",
|
|
3698
|
-
className:
|
|
3698
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
3699
3699
|
"appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none",
|
|
3700
|
-
|
|
3700
|
+
chunkWQ4HD5UD_cjs.INPUT_AUTOFILL_RESET_CLASSES,
|
|
3701
3701
|
showIcon ? "pl-10" : "pl-3",
|
|
3702
3702
|
clearable && value ? "pr-10" : "pr-3",
|
|
3703
3703
|
!error && hasValue && "ring-2 ring-ring",
|
|
@@ -3716,7 +3716,7 @@ function TimePicker({
|
|
|
3716
3716
|
...props
|
|
3717
3717
|
}
|
|
3718
3718
|
), clearable && value && !disabled && /* @__PURE__ */ React19__namespace.createElement(
|
|
3719
|
-
|
|
3719
|
+
chunkWQ4HD5UD_cjs.Button,
|
|
3720
3720
|
{
|
|
3721
3721
|
type: "button",
|
|
3722
3722
|
variant: "ghost",
|
|
@@ -3916,7 +3916,7 @@ function DateRangePicker({
|
|
|
3916
3916
|
{
|
|
3917
3917
|
type: "button",
|
|
3918
3918
|
...rest,
|
|
3919
|
-
className:
|
|
3919
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
3920
3920
|
"flex items-center justify-center h-8 w-8 rounded-md border-none bg-transparent cursor-pointer text-sm transition-colors",
|
|
3921
3921
|
"hover:bg-accent",
|
|
3922
3922
|
isRangeEndpoint && "bg-primary text-primary-foreground font-semibold",
|
|
@@ -3954,7 +3954,7 @@ function DateRangePicker({
|
|
|
3954
3954
|
to: rangeEnd ?? void 0
|
|
3955
3955
|
} : void 0;
|
|
3956
3956
|
const displayValue = rangeStart && rangeEnd ? `${formatDate2(rangeStart, format)}${separator}${formatDate2(rangeEnd, format)}` : rangeStart ? formatDate2(rangeStart, format) : "";
|
|
3957
|
-
const combinedClassName =
|
|
3957
|
+
const combinedClassName = chunkWQ4HD5UD_cjs.cn("relative", className);
|
|
3958
3958
|
return /* @__PURE__ */ React19__namespace.createElement("div", { className: combinedClassName }, /* @__PURE__ */ React19__namespace.createElement(
|
|
3959
3959
|
"input",
|
|
3960
3960
|
{
|
|
@@ -3996,11 +3996,11 @@ function DateRangePicker({
|
|
|
3996
3996
|
ref: inputRef,
|
|
3997
3997
|
id: props.id,
|
|
3998
3998
|
type: "text",
|
|
3999
|
-
className:
|
|
3999
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
4000
4000
|
"flex h-9 w-full rounded-md border border-input bg-transparent py-1 text-base shadow-sm transition-colors",
|
|
4001
4001
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
4002
4002
|
"disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
4003
|
-
|
|
4003
|
+
chunkWQ4HD5UD_cjs.INPUT_AUTOFILL_RESET_CLASSES,
|
|
4004
4004
|
showIcon ? "pl-10" : "pl-3",
|
|
4005
4005
|
clearable && (rangeStart || rangeEnd) ? "pr-10" : "pr-3",
|
|
4006
4006
|
!error && hasValue && "ring-2 ring-ring",
|
|
@@ -4076,5 +4076,5 @@ exports.Select = Select2;
|
|
|
4076
4076
|
exports.Switch = Switch2;
|
|
4077
4077
|
exports.TextArea = TextArea;
|
|
4078
4078
|
exports.TimePicker = TimePicker;
|
|
4079
|
-
//# sourceMappingURL=chunk-
|
|
4080
|
-
//# sourceMappingURL=chunk-
|
|
4079
|
+
//# sourceMappingURL=chunk-ER3C5JAE.cjs.map
|
|
4080
|
+
//# sourceMappingURL=chunk-ER3C5JAE.cjs.map
|