componentes-sinco 1.1.12 → 1.1.13

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.d.cts CHANGED
@@ -603,7 +603,7 @@ interface SCTimeProps {
603
603
  timeStep?: number;
604
604
  state: Dayjs | null;
605
605
  setState: (value: Dayjs | null) => void;
606
- width?: string;
606
+ width?: number;
607
607
  error?: boolean;
608
608
  }
609
609
  declare const SCTime: ({ label, required, disabled, background, timeStep, state, setState, width, error, }: SCTimeProps) => React__default.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -603,7 +603,7 @@ interface SCTimeProps {
603
603
  timeStep?: number;
604
604
  state: Dayjs | null;
605
605
  setState: (value: Dayjs | null) => void;
606
- width?: string;
606
+ width?: number;
607
607
  error?: boolean;
608
608
  }
609
609
  declare const SCTime: ({ label, required, disabled, background, timeStep, state, setState, width, error, }: SCTimeProps) => React__default.JSX.Element;
package/dist/index.js CHANGED
@@ -4610,7 +4610,7 @@ var SCTime = ({
4610
4610
  setIsOpenPopover(false);
4611
4611
  setAnchorEl(null);
4612
4612
  };
4613
- return /* @__PURE__ */ React40.createElement(LocalizationProvider3, { dateAdapter: AdapterDayjs2 }, /* @__PURE__ */ React40.createElement(Box25, { sx: { position: "relative", width: width != null ? width : "99%" } }, /* @__PURE__ */ React40.createElement(
4613
+ return /* @__PURE__ */ React40.createElement(LocalizationProvider3, { dateAdapter: AdapterDayjs2 }, /* @__PURE__ */ React40.createElement(Box25, { sx: { position: "relative", width: width ? `${width}%` : "99%" } }, /* @__PURE__ */ React40.createElement(
4614
4614
  TimeField,
4615
4615
  {
4616
4616
  label,
@@ -4676,7 +4676,7 @@ var SCTime = ({
4676
4676
  border: "1px solid #e0e0e0",
4677
4677
  maxHeight: "300px",
4678
4678
  overflow: "visible",
4679
- width: width != null ? width : "100%"
4679
+ width: width ? `calc(${width}% - 15px)` : "97%"
4680
4680
  }
4681
4681
  }
4682
4682
  }
@@ -4693,6 +4693,7 @@ var SCTime = ({
4693
4693
  overflow: "auto"
4694
4694
  },
4695
4695
  "& .MuiMenuItem-root": {
4696
+ minHeight: 24,
4696
4697
  fontSize: "0.875rem",
4697
4698
  py: 0.5
4698
4699
  }
@@ -4898,7 +4899,7 @@ var SCActivityCalendar = ({
4898
4899
  },
4899
4900
  onChange: (newValue) => setFecha(newValue)
4900
4901
  }
4901
- ), /* @__PURE__ */ React42.createElement(Grid11, { container: true, justifyContent: "center" }, /* @__PURE__ */ React42.createElement(IconButton15, { "data-testid": "close-calendar-button", onClick: toggleCalendar(false) }, /* @__PURE__ */ React42.createElement(KeyboardDoubleArrowUpIcon2, { color: "action" }))))), /* @__PURE__ */ React42.createElement(IconButton15, { onClick: handleClickPopoverFiltro, sx: { position: "fixed", right: "calc(100% - 96%)", top: openCalendar == false ? "197px" : "357px" } }, /* @__PURE__ */ React42.createElement(FilterListIcon, { color: "action" })), /* @__PURE__ */ React42.createElement(
4902
+ ), /* @__PURE__ */ React42.createElement(Grid11, { container: true, justifyContent: "center" }, /* @__PURE__ */ React42.createElement(IconButton15, { "data-testid": "close-calendar-button", onClick: toggleCalendar(false) }, /* @__PURE__ */ React42.createElement(KeyboardDoubleArrowUpIcon2, { color: "action" }))))), /* @__PURE__ */ React42.createElement(IconButton15, { onClick: handleClickPopoverFiltro, sx: { position: "fixed", right: "calc(100% - 96%)", top: openCalendar == false ? "220px" : "380px" } }, /* @__PURE__ */ React42.createElement(FilterListIcon, { color: "action" })), /* @__PURE__ */ React42.createElement(
4902
4903
  Popover7,
4903
4904
  {
4904
4905
  open: openPopoverFiltro,