@motor-hero/ui-kit 0.34.0 → 0.34.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/index.js CHANGED
@@ -1261,21 +1261,21 @@ function toMatchers(minDate, maxDate, disabledDates) {
1261
1261
  }
1262
1262
  var triggerInputClass = "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 pr-10 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:focus-visible:ring-destructive";
1263
1263
  var fieldInputClass = "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";
1264
+ var navButtonClass2 = "inline-flex size-(--cell-size) shrink-0 select-none items-center justify-center rounded-md p-0 transition-colors hover:bg-accent hover:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:opacity-50";
1264
1265
  var calendarClassNames = {
1265
- months: "flex flex-col",
1266
- month: "flex flex-col gap-4",
1267
- month_caption: "flex justify-center pt-1 relative items-center h-7",
1268
- caption_label: "text-sm font-medium",
1269
- nav: "flex items-center gap-1 absolute inset-x-0 top-0 justify-between px-1",
1270
- button_previous: "inline-flex size-7 items-center justify-center rounded-md border border-input bg-transparent p-0 opacity-50 hover:opacity-100",
1271
- button_next: "inline-flex size-7 items-center justify-center rounded-md border border-input bg-transparent p-0 opacity-50 hover:opacity-100",
1272
- month_grid: "w-full border-collapse space-y-1",
1266
+ months: "relative flex flex-col gap-4",
1267
+ month: "flex w-full flex-col gap-4",
1268
+ month_caption: "flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",
1269
+ caption_label: "text-sm font-medium select-none",
1270
+ nav: "absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
1271
+ button_previous: navButtonClass2,
1272
+ button_next: navButtonClass2,
1273
+ month_grid: "w-full border-collapse",
1273
1274
  weekdays: "flex",
1274
- weekday: "text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",
1275
- week: "flex w-full mt-2",
1276
- day: "relative p-0 text-center text-sm focus-within:relative focus-within:z-20",
1277
- day_button: "inline-flex size-8 items-center justify-center rounded-md p-0 font-normal hover:bg-accent hover:text-accent-foreground aria-selected:opacity-100",
1278
- selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground rounded-md [&>button]:bg-primary [&>button]:text-primary-foreground",
1275
+ weekday: "flex-1 select-none rounded-md text-[0.8rem] font-normal text-muted-foreground",
1276
+ week: "mt-2 flex w-full",
1277
+ day: "relative aspect-square h-full w-full select-none p-0 text-center aria-selected:[&>button]:bg-primary aria-selected:[&>button]:text-primary-foreground aria-selected:[&>button]:hover:bg-primary",
1278
+ day_button: "inline-flex aspect-square size-auto w-full min-w-(--cell-size) items-center justify-center rounded-md p-0 font-normal transition-colors hover:bg-accent hover:text-accent-foreground",
1279
1279
  today: "bg-accent text-accent-foreground rounded-md",
1280
1280
  outside: "text-muted-foreground opacity-50",
1281
1281
  disabled: "text-muted-foreground opacity-50 pointer-events-none",
@@ -1408,7 +1408,7 @@ function DatePickerImpl({
1408
1408
  defaultMonth: (withTime ? pendingDate : committedDate) ?? /* @__PURE__ */ new Date(),
1409
1409
  onSelect: (date) => date && handleCalendarSelect(date),
1410
1410
  disabled: matchers,
1411
- className: withTime ? "p-0" : "p-3",
1411
+ className: cn(withTime ? "p-0" : "p-3", "[--cell-size:2rem]"),
1412
1412
  classNames: calendarClassNames,
1413
1413
  components: calendarComponents
1414
1414
  }