@codapet/design-system 0.5.6 → 0.5.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.
package/dist/index.mjs CHANGED
@@ -712,7 +712,7 @@ function Calendar({
712
712
  classNames?.weekdays
713
713
  ),
714
714
  weekday: cn(
715
- "text-slate-700 font-medium rounded-full md:flex-1 size-6 mx-[6px] font-normal text-[0.8rem] select-none ",
715
+ "text-slate-700 font-medium rounded-full md:flex-1 size-6 mx-1 font-normal text-[0.8rem] select-none ",
716
716
  classNames?.weekday
717
717
  ),
718
718
  week: cn(
@@ -729,7 +729,7 @@ function Calendar({
729
729
  classNames?.week_number
730
730
  ),
731
731
  day: cn(
732
- "relative flex items-center justify-center md:w-full md:h-full p-0 text-center group/day aspect-square select-none size-7 md:mx-0 mx-[6px] rounded-full",
732
+ "relative flex items-center justify-center md:w-full md:h-full p-0 text-center group/day aspect-square select-none size-7 md:mx-0 mx-1 rounded-full",
733
733
  classNames?.day
734
734
  ),
735
735
  range_start: cn(" bg-accent", classNames?.range_start),
@@ -2284,6 +2284,8 @@ function DateInput({
2284
2284
  month: effectiveMonth,
2285
2285
  onMonthChange: onMonthChange ?? setMonthState,
2286
2286
  showOutsideDays,
2287
+ ...effectiveMinDate ? { startMonth: effectiveMinDate } : {},
2288
+ ...effectiveMaxDate ? { endMonth: effectiveMaxDate } : {},
2287
2289
  className: cn(
2288
2290
  "w-auto mx-auto overflow-y-auto h-auto m-2",
2289
2291
  calendarClassName
@@ -2536,6 +2538,8 @@ function DateRangeInput({
2536
2538
  month: effectiveMonth,
2537
2539
  onMonthChange: onMonthChange ?? setMonthState,
2538
2540
  showOutsideDays,
2541
+ ...effectiveMinDate ? { startMonth: effectiveMinDate } : {},
2542
+ ...effectiveMaxDate ? { endMonth: effectiveMaxDate } : {},
2539
2543
  className: cn("w-auto shrink-0 h-auto mt-2", calendarClassName),
2540
2544
  classNames,
2541
2545
  components,