@page-speed/forms 0.7.8 → 0.8.0
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/README.md +198 -114
- 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 +24 -24
- package/dist/integration.js +3 -3
- 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,4 +1,4 @@
|
|
|
1
|
-
import { cn, FieldLabel, FieldDescription, LabelGroup, Field, INPUT_AUTOFILL_RESET_CLASSES, Button, Input, buttonVariants } from './chunk-
|
|
1
|
+
import { cn, FieldLabel, FieldDescription, LabelGroup, Field, INPUT_AUTOFILL_RESET_CLASSES, Button, Input, buttonVariants } from './chunk-ZBRU7R6C.js';
|
|
2
2
|
import * as React19 from 'react';
|
|
3
3
|
import { Dialog as Dialog$1, Checkbox as Checkbox$1, RadioGroup as RadioGroup$1, Switch as Switch$1, Select as Select$1, Popover as Popover$1 } from 'radix-ui';
|
|
4
4
|
import { Command as Command$1 } from 'cmdk';
|
|
@@ -202,7 +202,9 @@ function Checkbox2({
|
|
|
202
202
|
{
|
|
203
203
|
htmlFor: checkboxId,
|
|
204
204
|
className: cn(
|
|
205
|
-
"flex
|
|
205
|
+
"flex duration-200 select-auto font-normal",
|
|
206
|
+
"tracking-tight leading-snug",
|
|
207
|
+
showChoiceCard ? "py-3 pl-3 pr-2" : "p1",
|
|
206
208
|
showChoiceCard && "border rounded-lg hover:ring-2 hover:ring-primary",
|
|
207
209
|
showChoiceCard && value && "ring-2 ring-primary",
|
|
208
210
|
showChoiceCard && error && "ring-2 ring-destructive",
|
|
@@ -489,11 +491,11 @@ function Radio({
|
|
|
489
491
|
key: option.value,
|
|
490
492
|
htmlFor: radioId,
|
|
491
493
|
className: cn(
|
|
492
|
-
"flex
|
|
493
|
-
"
|
|
494
|
+
"flex duration-200 select-auto font-normal",
|
|
495
|
+
"tracking-tight leading-snug",
|
|
496
|
+
useChoiceCard ? "py-3 pl-3 pr-2" : "p1",
|
|
494
497
|
useChoiceCard && "hover:ring-2 hover:ring-primary",
|
|
495
498
|
useChoiceCard && "border rounded-lg py-3 pl-3 pr-2",
|
|
496
|
-
!useChoiceCard && "p-1",
|
|
497
499
|
useChoiceCard && isSelected && "ring-2 ring-primary",
|
|
498
500
|
useChoiceCard && error && "border-destructive",
|
|
499
501
|
isDisabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
|
|
@@ -671,9 +673,10 @@ function SelectTrigger({
|
|
|
671
673
|
"data-slot": "select-trigger",
|
|
672
674
|
"data-size": size,
|
|
673
675
|
className: cn(
|
|
674
|
-
// Core structure -
|
|
675
|
-
"flex w-full items-center justify-between gap-2
|
|
676
|
-
"bg-transparent px-3 py-1
|
|
676
|
+
// Core structure - matched to Input component
|
|
677
|
+
"flex h-9 w-full min-w-0 items-center justify-between gap-2",
|
|
678
|
+
"rounded-md border border-input bg-transparent px-3 py-1",
|
|
679
|
+
"text-base whitespace-nowrap shadow-sm",
|
|
677
680
|
"transition-colors outline-none md:text-sm",
|
|
678
681
|
// Focus state (matched to Input component)
|
|
679
682
|
"focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -681,8 +684,8 @@ function SelectTrigger({
|
|
|
681
684
|
"aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive",
|
|
682
685
|
// Disabled state
|
|
683
686
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
684
|
-
// Size
|
|
685
|
-
"data-[size=
|
|
687
|
+
// Size variant override
|
|
688
|
+
"data-[size=sm]:h-8",
|
|
686
689
|
// Placeholder styling (match native input ::placeholder appearance)
|
|
687
690
|
"data-[placeholder]:text-muted-foreground data-[placeholder]:font-normal",
|
|
688
691
|
// Value styling
|
|
@@ -4122,5 +4125,5 @@ function DateRangePicker({
|
|
|
4122
4125
|
DateRangePicker.displayName = "DateRangePicker";
|
|
4123
4126
|
|
|
4124
4127
|
export { Checkbox2 as Checkbox, CheckboxGroup, DatePicker, DateRangePicker, FileInput, MultiSelect, Radio, Select2 as Select, Switch2 as Switch, TextArea, TimePicker };
|
|
4125
|
-
//# sourceMappingURL=chunk-
|
|
4126
|
-
//# sourceMappingURL=chunk-
|
|
4128
|
+
//# sourceMappingURL=chunk-EVBK5TLG.js.map
|
|
4129
|
+
//# sourceMappingURL=chunk-EVBK5TLG.js.map
|