@page-speed/forms 0.7.6 → 0.7.8

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.
@@ -293,7 +293,7 @@ function CheckboxGroup({
293
293
  "w-full grid grid-cols-1 border-0 m-0 p-0 min-w-0",
294
294
  layout === "grid" && "grid grid-cols-1 md:grid-cols-2 ",
295
295
  layout === "inline" && "flex flex-wrap",
296
- useChoiceCard ? "gap-x-6 space-y-4" : "gap-0",
296
+ useChoiceCard ? "gap-x-6 gap-y-4" : "gap-0",
297
297
  className
298
298
  );
299
299
  }, [layout, className, useChoiceCard]);
@@ -472,7 +472,7 @@ function Radio({
472
472
  className: cn(
473
473
  layout === "grid" && "grid grid-cols-1 md:grid-cols-2 ",
474
474
  layout === "inline" && "flex flex-wrap",
475
- useChoiceCard ? "gap-x-6 space-y-4" : "gap-0"
475
+ useChoiceCard ? "gap-x-6 gap-y-4" : "gap-0"
476
476
  ),
477
477
  "aria-invalid": error || props["aria-invalid"],
478
478
  "aria-describedby": groupDescriptionId || props["aria-describedby"],
@@ -492,7 +492,7 @@ function Radio({
492
492
  "flex gap-3 duration-200",
493
493
  "select-auto font-normal leading-normal",
494
494
  useChoiceCard && "hover:ring-2 hover:ring-primary",
495
- useChoiceCard && "border rounded-lg p-3",
495
+ useChoiceCard && "border rounded-lg py-3 pl-3 pr-2",
496
496
  !useChoiceCard && "p-1",
497
497
  useChoiceCard && isSelected && "ring-2 ring-primary",
498
498
  useChoiceCard && error && "border-destructive",
@@ -521,7 +521,7 @@ function Radio({
521
521
  FieldDescription,
522
522
  {
523
523
  id: `${radioId}-description`,
524
- className: "leading-snug"
524
+ className: "leading-snug tracking-tight"
525
525
  },
526
526
  option.description
527
527
  ))
@@ -671,18 +671,20 @@ function SelectTrigger({
671
671
  "data-slot": "select-trigger",
672
672
  "data-size": size,
673
673
  className: cn(
674
- // Core structure - uses CSS variables
674
+ // Core structure - uses CSS variables (matched to Input component)
675
675
  "flex w-full items-center justify-between gap-2 rounded-md border border-input",
676
- "bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs",
677
- "transition-[color,box-shadow] outline-none",
678
- // Focus state
679
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
680
- // Error state
681
- "aria-invalid:border-destructive aria-invalid:ring-destructive/20",
676
+ "bg-transparent px-3 py-1 text-base whitespace-nowrap shadow-sm",
677
+ "transition-colors outline-none md:text-sm",
678
+ // Focus state (matched to Input component)
679
+ "focus-visible:ring-1 focus-visible:ring-ring",
680
+ // Error state (matched to Input component)
681
+ "aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive",
682
682
  // Disabled state
683
683
  "disabled:cursor-not-allowed disabled:opacity-50",
684
684
  // Size variants
685
685
  "data-[size=default]:h-9 data-[size=sm]:h-8",
686
+ // Placeholder styling (match native input ::placeholder appearance)
687
+ "data-[placeholder]:text-muted-foreground data-[placeholder]:font-normal",
686
688
  // Value styling
687
689
  "*:data-[slot=select-value]:line-clamp-1",
688
690
  "*:data-[slot=select-value]:flex",
@@ -3216,12 +3218,20 @@ function Calendar({
3216
3218
  ),
3217
3219
  button_previous: cn(
3218
3220
  buttonVariants({ variant: buttonVariant }),
3219
- "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
3221
+ "size-(--cell-size) aria-disabled:opacity-50 select-none",
3222
+ "rounded-full text-sm font-medium transition-all",
3223
+ "hover:ring-2 hover:ring-primary",
3224
+ "text-primary-foreground bg-primary",
3225
+ "p-0 size-6",
3220
3226
  defaultClassNames.button_previous
3221
3227
  ),
3222
3228
  button_next: cn(
3223
3229
  buttonVariants({ variant: buttonVariant }),
3224
- "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
3230
+ "size-(--cell-size) aria-disabled:opacity-50 select-none",
3231
+ "rounded-full text-sm font-medium transition-all",
3232
+ "hover:ring-2 hover:ring-ring",
3233
+ "text-primary-foreground bg-primary",
3234
+ "p-0 size-6",
3225
3235
  defaultClassNames.button_next
3226
3236
  ),
3227
3237
  month_caption: cn(
@@ -3266,23 +3276,21 @@ function Calendar({
3266
3276
  defaultClassNames.day
3267
3277
  ),
3268
3278
  range_start: cn(
3269
- "rounded-l-md bg-accent",
3279
+ "rounded-l-md bg-primary text-primary-foreground",
3270
3280
  defaultClassNames.range_start
3271
3281
  ),
3272
3282
  range_middle: cn("rounded-none", defaultClassNames.range_middle),
3273
- range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
3283
+ range_end: cn(
3284
+ "rounded-r-md bg-primary text-primary-foreground",
3285
+ defaultClassNames.range_end
3286
+ ),
3274
3287
  today: cn(
3275
- "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
3288
+ "bg-muted text-muted-foreground",
3289
+ "rounded-md",
3276
3290
  defaultClassNames.today
3277
3291
  ),
3278
- outside: cn(
3279
- "opacity-50",
3280
- defaultClassNames.outside
3281
- ),
3282
- disabled: cn(
3283
- "opacity-50",
3284
- defaultClassNames.disabled
3285
- ),
3292
+ outside: cn("opacity-50", defaultClassNames.outside),
3293
+ disabled: cn("opacity-50", defaultClassNames.disabled),
3286
3294
  hidden: cn("invisible", defaultClassNames.hidden),
3287
3295
  ...classNames
3288
3296
  },
@@ -3628,7 +3636,7 @@ function DatePicker({
3628
3636
  DayButton: DatePickerDayButton
3629
3637
  },
3630
3638
  classNames: {
3631
- today: "border border-primary rounded-md bg-transparent"
3639
+ today: "ring-2 ring-primary rounded-md bg-transparent"
3632
3640
  }
3633
3641
  }
3634
3642
  )
@@ -4114,5 +4122,5 @@ function DateRangePicker({
4114
4122
  DateRangePicker.displayName = "DateRangePicker";
4115
4123
 
4116
4124
  export { Checkbox2 as Checkbox, CheckboxGroup, DatePicker, DateRangePicker, FileInput, MultiSelect, Radio, Select2 as Select, Switch2 as Switch, TextArea, TimePicker };
4117
- //# sourceMappingURL=chunk-DSK3VLIV.js.map
4118
- //# sourceMappingURL=chunk-DSK3VLIV.js.map
4125
+ //# sourceMappingURL=chunk-RNVK2DOS.js.map
4126
+ //# sourceMappingURL=chunk-RNVK2DOS.js.map