@codapet/design-system 0.5.7 → 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 +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -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,
|