@page-speed/forms 0.7.5 → 0.7.7

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.
@@ -315,7 +315,7 @@ function CheckboxGroup({
315
315
  "w-full grid grid-cols-1 border-0 m-0 p-0 min-w-0",
316
316
  layout === "grid" && "grid grid-cols-1 md:grid-cols-2 ",
317
317
  layout === "inline" && "flex flex-wrap",
318
- useChoiceCard ? "gap-x-6 space-y-4" : "gap-0",
318
+ useChoiceCard ? "gap-x-6 gap-y-4" : "gap-0",
319
319
  className
320
320
  );
321
321
  }, [layout, className, useChoiceCard]);
@@ -494,7 +494,7 @@ function Radio({
494
494
  className: chunkIGI4JJKE_cjs.cn(
495
495
  layout === "grid" && "grid grid-cols-1 md:grid-cols-2 ",
496
496
  layout === "inline" && "flex flex-wrap",
497
- useChoiceCard ? "gap-x-6 space-y-4" : "gap-0"
497
+ useChoiceCard ? "gap-x-6 gap-y-4" : "gap-0"
498
498
  ),
499
499
  "aria-invalid": error || props["aria-invalid"],
500
500
  "aria-describedby": groupDescriptionId || props["aria-describedby"],
@@ -514,7 +514,7 @@ function Radio({
514
514
  "flex gap-3 duration-200",
515
515
  "select-auto font-normal leading-normal",
516
516
  useChoiceCard && "hover:ring-2 hover:ring-primary",
517
- useChoiceCard && "border rounded-lg p-3",
517
+ useChoiceCard && "border rounded-lg py-3 pl-3 pr-2",
518
518
  !useChoiceCard && "p-1",
519
519
  useChoiceCard && isSelected && "ring-2 ring-primary",
520
520
  useChoiceCard && error && "border-destructive",
@@ -543,7 +543,7 @@ function Radio({
543
543
  chunkIGI4JJKE_cjs.FieldDescription,
544
544
  {
545
545
  id: `${radioId}-description`,
546
- className: "leading-snug"
546
+ className: "leading-snug tracking-tight"
547
547
  },
548
548
  option.description
549
549
  ))
@@ -693,18 +693,20 @@ function SelectTrigger({
693
693
  "data-slot": "select-trigger",
694
694
  "data-size": size,
695
695
  className: chunkIGI4JJKE_cjs.cn(
696
- // Core structure - uses CSS variables
696
+ // Core structure - uses CSS variables (matched to Input component)
697
697
  "flex w-full items-center justify-between gap-2 rounded-md border border-input",
698
- "bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs",
699
- "transition-[color,box-shadow] outline-none",
700
- // Focus state
701
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
702
- // Error state
703
- "aria-invalid:border-destructive aria-invalid:ring-destructive/20",
698
+ "bg-transparent px-3 py-1 text-base whitespace-nowrap shadow-sm",
699
+ "transition-colors outline-none md:text-sm",
700
+ // Focus state (matched to Input component)
701
+ "focus-visible:ring-1 focus-visible:ring-ring",
702
+ // Error state (matched to Input component)
703
+ "aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive",
704
704
  // Disabled state
705
705
  "disabled:cursor-not-allowed disabled:opacity-50",
706
706
  // Size variants
707
707
  "data-[size=default]:h-9 data-[size=sm]:h-8",
708
+ // Placeholder styling (match native input ::placeholder appearance)
709
+ "data-[placeholder]:text-muted-foreground data-[placeholder]:font-normal",
708
710
  // Value styling
709
711
  "*:data-[slot=select-value]:line-clamp-1",
710
712
  "*:data-[slot=select-value]:flex",
@@ -3238,12 +3240,20 @@ function Calendar({
3238
3240
  ),
3239
3241
  button_previous: chunkIGI4JJKE_cjs.cn(
3240
3242
  chunkIGI4JJKE_cjs.buttonVariants({ variant: buttonVariant }),
3241
- "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
3243
+ "size-(--cell-size) aria-disabled:opacity-50 select-none",
3244
+ "rounded-full text-sm font-medium transition-all",
3245
+ "hover:ring-2 hover:ring-primary",
3246
+ "text-primary-foreground bg-primary",
3247
+ "p-0 size-6",
3242
3248
  defaultClassNames.button_previous
3243
3249
  ),
3244
3250
  button_next: chunkIGI4JJKE_cjs.cn(
3245
3251
  chunkIGI4JJKE_cjs.buttonVariants({ variant: buttonVariant }),
3246
- "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
3252
+ "size-(--cell-size) aria-disabled:opacity-50 select-none",
3253
+ "rounded-full text-sm font-medium transition-all",
3254
+ "hover:ring-2 hover:ring-ring",
3255
+ "text-primary-foreground bg-primary",
3256
+ "p-0 size-6",
3247
3257
  defaultClassNames.button_next
3248
3258
  ),
3249
3259
  month_caption: chunkIGI4JJKE_cjs.cn(
@@ -3288,23 +3298,21 @@ function Calendar({
3288
3298
  defaultClassNames.day
3289
3299
  ),
3290
3300
  range_start: chunkIGI4JJKE_cjs.cn(
3291
- "rounded-l-md bg-accent",
3301
+ "rounded-l-md bg-primary text-primary-foreground",
3292
3302
  defaultClassNames.range_start
3293
3303
  ),
3294
3304
  range_middle: chunkIGI4JJKE_cjs.cn("rounded-none", defaultClassNames.range_middle),
3295
- range_end: chunkIGI4JJKE_cjs.cn("rounded-r-md bg-accent", defaultClassNames.range_end),
3305
+ range_end: chunkIGI4JJKE_cjs.cn(
3306
+ "rounded-r-md bg-primary text-primary-foreground",
3307
+ defaultClassNames.range_end
3308
+ ),
3296
3309
  today: chunkIGI4JJKE_cjs.cn(
3297
- "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
3310
+ "bg-muted text-muted-foreground",
3311
+ "rounded-md",
3298
3312
  defaultClassNames.today
3299
3313
  ),
3300
- outside: chunkIGI4JJKE_cjs.cn(
3301
- "opacity-50",
3302
- defaultClassNames.outside
3303
- ),
3304
- disabled: chunkIGI4JJKE_cjs.cn(
3305
- "opacity-50",
3306
- defaultClassNames.disabled
3307
- ),
3314
+ outside: chunkIGI4JJKE_cjs.cn("opacity-50", defaultClassNames.outside),
3315
+ disabled: chunkIGI4JJKE_cjs.cn("opacity-50", defaultClassNames.disabled),
3308
3316
  hidden: chunkIGI4JJKE_cjs.cn("invisible", defaultClassNames.hidden),
3309
3317
  ...classNames
3310
3318
  },
@@ -3650,7 +3658,7 @@ function DatePicker({
3650
3658
  DayButton: DatePickerDayButton
3651
3659
  },
3652
3660
  classNames: {
3653
- today: "border border-primary rounded-md bg-transparent"
3661
+ today: "ring-2 ring-primary rounded-md bg-transparent"
3654
3662
  }
3655
3663
  }
3656
3664
  )
@@ -4146,5 +4154,5 @@ exports.Select = Select2;
4146
4154
  exports.Switch = Switch2;
4147
4155
  exports.TextArea = TextArea;
4148
4156
  exports.TimePicker = TimePicker;
4149
- //# sourceMappingURL=chunk-K7ZHLPLX.cjs.map
4150
- //# sourceMappingURL=chunk-K7ZHLPLX.cjs.map
4157
+ //# sourceMappingURL=chunk-DDPQKEUI.cjs.map
4158
+ //# sourceMappingURL=chunk-DDPQKEUI.cjs.map