@producteca/producteca-ui-kit 1.72.0 → 1.72.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.
@@ -57582,11 +57582,11 @@ const datePickerDayStyles = {
57582
57582
  backgroundColor: "white",
57583
57583
  color: "#252525",
57584
57584
  borderRadius: "4px",
57585
- "&.MuiPickersDay-root": {
57585
+ "&.MuiPickerDay-root": {
57586
57586
  fontSize: "14px",
57587
57587
  textTransform: "capitalize"
57588
57588
  },
57589
- "&.MuiPickersDay-today": {
57589
+ "&.MuiPickerDay-today": {
57590
57590
  backgroundColor: "white",
57591
57591
  color: "#252525",
57592
57592
  border: "1px solid #252525"
@@ -57644,34 +57644,34 @@ const datePickerDigitalClockStyles = {
57644
57644
  }
57645
57645
  };
57646
57646
  const datePickerYearStyles = {
57647
+ // MUI X v9 dropped the MuiPickersYear wrapper: year buttons are now
57648
+ // .MuiYearCalendar-button rendered directly inside .MuiYearCalendar-root
57647
57649
  "& .MuiYearCalendar-root": {
57648
- "& .MuiPickersYear-root": {
57649
- "& .MuiPickersYear-yearButton": {
57650
- fontFamily: "Poppins, Open Sans, Helvetica, Arial, sans-serif",
57651
- fontSize: "14px",
57652
- backgroundColor: "white",
57653
- color: "#252525",
57654
- borderRadius: "4px",
57655
- "&.Mui-selected": {
57656
- backgroundColor: "#0066ff",
57657
- color: "white",
57658
- "&:hover": {
57659
- backgroundColor: "#0066ff"
57660
- },
57661
- "&:focus": {
57662
- backgroundColor: "#0066ff"
57663
- }
57650
+ "& .MuiYearCalendar-button": {
57651
+ fontFamily: "Poppins, Open Sans, Helvetica, Arial, sans-serif",
57652
+ fontSize: "14px",
57653
+ backgroundColor: "white",
57654
+ color: "#252525",
57655
+ borderRadius: "4px",
57656
+ "&.Mui-selected": {
57657
+ backgroundColor: "#0066ff",
57658
+ color: "white",
57659
+ "&:hover": {
57660
+ backgroundColor: "#0066ff"
57664
57661
  },
57665
- "&:hover:not(.Mui-selected)": {
57666
- backgroundColor: "#EDEDED",
57667
- color: "#252525"
57662
+ "&:focus": {
57663
+ backgroundColor: "#0066ff"
57668
57664
  }
57665
+ },
57666
+ "&:hover:not(.Mui-selected)": {
57667
+ backgroundColor: "#EDEDED",
57668
+ color: "#252525"
57669
57669
  }
57670
57670
  }
57671
57671
  }
57672
57672
  };
57673
57673
  const datePickerPopperStyles = {
57674
- "& .MuiPickersPopper-paper": {
57674
+ "& .MuiPickerPopper-paper": {
57675
57675
  boxShadow: "0px 5px 5px -3px rgb(205 205 205 / 20%), 0px 8px 14px 1px rgb(165 165 165 / 14%), 0px 3px 14px 2px rgb(219 219 219 / 6%)"
57676
57676
  }
57677
57677
  };
@@ -57691,7 +57691,17 @@ const styles$w = {
57691
57691
  };
57692
57692
  dayjs.extend(customParseFormat);
57693
57693
  const ActionComponent = ({ showClearIcon, onClear, onOpen }) => /* @__PURE__ */ jsxs("div", { className: styles$w["calendar-icon-container"], "data-testid": "action-component", children: [
57694
- showClearIcon && /* @__PURE__ */ jsx$1("div", { onClick: onClear, className: styles$w["clear-icon"], children: /* @__PURE__ */ jsx$1(CustomIcon, { children: /* @__PURE__ */ jsx$1(CloseRoundedIcon, {}) }) }),
57694
+ showClearIcon && /* @__PURE__ */ jsx$1(
57695
+ "div",
57696
+ {
57697
+ onClick: (event) => {
57698
+ event.stopPropagation();
57699
+ onClear?.();
57700
+ },
57701
+ className: styles$w["clear-icon"],
57702
+ children: /* @__PURE__ */ jsx$1(CustomIcon, { children: /* @__PURE__ */ jsx$1(CloseRoundedIcon, {}) })
57703
+ }
57704
+ ),
57695
57705
  /* @__PURE__ */ jsx$1("div", { className: styles$w["divider-line"] }),
57696
57706
  /* @__PURE__ */ jsx$1("div", { onClick: onOpen, className: styles$w["calendar-icon"], children: /* @__PURE__ */ jsx$1(CustomIcon, { size: "12", children: /* @__PURE__ */ jsx$1(CalendarTodayIcon, {}) }) })
57697
57707
  ] });
@@ -57712,7 +57722,7 @@ const ReadOnlyDateField = ({
57712
57722
  return /* @__PURE__ */ jsx$1(
57713
57723
  TextField,
57714
57724
  {
57715
- ref: (element) => triggerRef(element),
57725
+ ref: triggerRef,
57716
57726
  value: displayValue,
57717
57727
  placeholder,
57718
57728
  name,
@@ -68446,8 +68456,7 @@ const MenuAction = ({
68446
68456
  onClose: handleClose,
68447
68457
  disableScrollLock: true,
68448
68458
  slotProps: {
68449
- list: { "aria-labelledby": id },
68450
- transition: Grow
68459
+ list: { "aria-labelledby": id }
68451
68460
  },
68452
68461
  anchorOrigin: {
68453
68462
  vertical: "bottom",