@teja-app/ui 0.0.16 → 0.0.17
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/theme/index.js
CHANGED
|
@@ -12513,6 +12513,8 @@ function DateInput({
|
|
|
12513
12513
|
const selected = parseDate(value);
|
|
12514
12514
|
const minDate = parseDate(min2 ?? null);
|
|
12515
12515
|
const maxDate = parseDate(max2 ?? null);
|
|
12516
|
+
const captionEnd = maxDate ?? /* @__PURE__ */ new Date();
|
|
12517
|
+
const captionStart = minDate ?? new Date(captionEnd.getFullYear() - 120, 0, 1);
|
|
12516
12518
|
const [month, setMonth2] = useState(() => parseDate(value) ?? /* @__PURE__ */ new Date());
|
|
12517
12519
|
const [lastValue, setLastValue] = useState(value);
|
|
12518
12520
|
if (value !== lastValue) {
|
|
@@ -12614,6 +12616,9 @@ function DateInput({
|
|
|
12614
12616
|
onSelect: handleSelect,
|
|
12615
12617
|
disabled: disabledMatcher,
|
|
12616
12618
|
showOutsideDays: true,
|
|
12619
|
+
captionLayout: "dropdown",
|
|
12620
|
+
startMonth: captionStart,
|
|
12621
|
+
endMonth: captionEnd,
|
|
12617
12622
|
style: RDP_STYLE,
|
|
12618
12623
|
components: {
|
|
12619
12624
|
Chevron: ({ orientation }) => /* @__PURE__ */ jsx(
|