@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.
@@ -1,4 +1,4 @@
1
- import { cn, FieldLabel, FieldDescription, LabelGroup, Field, INPUT_AUTOFILL_RESET_CLASSES, Button, Input, buttonVariants } from './chunk-EQKN2OPX.js';
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 gap-3 p-3 duration-200 select-auto font-normal leading-normal",
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 gap-3 duration-200",
493
- "select-auto font-normal leading-normal",
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 - uses CSS variables (matched to Input component)
675
- "flex w-full items-center justify-between gap-2 rounded-md border border-input",
676
- "bg-transparent px-3 py-1 text-base whitespace-nowrap shadow-sm",
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 variants
685
- "data-[size=default]:h-9 data-[size=sm]:h-8",
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-RNVK2DOS.js.map
4126
- //# sourceMappingURL=chunk-RNVK2DOS.js.map
4128
+ //# sourceMappingURL=chunk-EVBK5TLG.js.map
4129
+ //# sourceMappingURL=chunk-EVBK5TLG.js.map