@motor-hero/ui-kit 0.44.0 → 0.44.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
@@ -966,7 +966,7 @@ function DataTableWrapper({
966
966
  // src/components/date-picker.tsx
967
967
  import * as PopoverPrimitive3 from "@radix-ui/react-popover";
968
968
  import { InputMask } from "@react-input/mask";
969
- import { endOfYear, format, isValid, parse, subYears } from "date-fns";
969
+ import { addYears, endOfYear, format, isValid, parse, subYears } from "date-fns";
970
970
  import { ptBR } from "date-fns/locale";
971
971
  import { CalendarIcon, ChevronDown, ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight2, Clock } from "lucide-react";
972
972
  import * as React6 from "react";
@@ -1071,7 +1071,7 @@ function DatePickerImpl({
1071
1071
  const displayValue = displayFor(value, withTime);
1072
1072
  const matchers = toMatchers(minDate, maxDate, disabledDates);
1073
1073
  const startMonth = dateOnlyToDate(minDate) ?? subYears(/* @__PURE__ */ new Date(), 100);
1074
- const endMonth = dateOnlyToDate(maxDate) ?? endOfYear(/* @__PURE__ */ new Date());
1074
+ const endMonth = dateOnlyToDate(maxDate) ?? endOfYear(addYears(/* @__PURE__ */ new Date(), 20));
1075
1075
  const setOpen = (next) => {
1076
1076
  setOpenRaw(next);
1077
1077
  if (next) {