componentes-sinco 1.2.2 → 1.2.3

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
@@ -337,6 +337,7 @@ declare const SCModal: ({ buttonModal, state, open, setOpen, title, description,
337
337
 
338
338
  interface MultiSelectProps<T> {
339
339
  textButton?: string;
340
+ background?: string;
340
341
  button?: {
341
342
  icon?: string;
342
343
  text?: string;
@@ -380,7 +381,7 @@ declare function useFilteredItems<T>(items: T[], filterValue: string, getItemLab
380
381
  sortedItems: T[];
381
382
  };
382
383
 
383
- declare function MultiSelect<T>({ textButton, button, items, topPanel, actions, dense, open, selectAll, getItemLabel }: MultiSelectProps<T>): React__default.JSX.Element;
384
+ declare function MultiSelect<T>({ textButton, background, button, items, topPanel, actions, dense, open, selectAll, getItemLabel }: MultiSelectProps<T>): React__default.JSX.Element;
384
385
 
385
386
  interface PageheaderProperties {
386
387
  title: string | React.ReactNode;
@@ -455,7 +456,7 @@ declare const SCTextField: ({ title, iconTitle, infoTitle, label, placeholder, i
455
456
  interface SCAccordionProps {
456
457
  title?: string;
457
458
  actions?: React__default.ReactNode;
458
- children?: React__default.ReactNode;
459
+ children?: any;
459
460
  }
460
461
  declare const SCAccordion: ({ title, actions, children, }: SCAccordionProps) => React__default.JSX.Element;
461
462
 
package/dist/index.d.ts CHANGED
@@ -337,6 +337,7 @@ declare const SCModal: ({ buttonModal, state, open, setOpen, title, description,
337
337
 
338
338
  interface MultiSelectProps<T> {
339
339
  textButton?: string;
340
+ background?: string;
340
341
  button?: {
341
342
  icon?: string;
342
343
  text?: string;
@@ -380,7 +381,7 @@ declare function useFilteredItems<T>(items: T[], filterValue: string, getItemLab
380
381
  sortedItems: T[];
381
382
  };
382
383
 
383
- declare function MultiSelect<T>({ textButton, button, items, topPanel, actions, dense, open, selectAll, getItemLabel }: MultiSelectProps<T>): React__default.JSX.Element;
384
+ declare function MultiSelect<T>({ textButton, background, button, items, topPanel, actions, dense, open, selectAll, getItemLabel }: MultiSelectProps<T>): React__default.JSX.Element;
384
385
 
385
386
  interface PageheaderProperties {
386
387
  title: string | React.ReactNode;
@@ -455,7 +456,7 @@ declare const SCTextField: ({ title, iconTitle, infoTitle, label, placeholder, i
455
456
  interface SCAccordionProps {
456
457
  title?: string;
457
458
  actions?: React__default.ReactNode;
458
- children?: React__default.ReactNode;
459
+ children?: any;
459
460
  }
460
461
  declare const SCAccordion: ({ title, actions, children, }: SCAccordionProps) => React__default.JSX.Element;
461
462
 
package/dist/index.js CHANGED
@@ -2289,7 +2289,7 @@ function SCSelect({
2289
2289
  width = "100%",
2290
2290
  size = "small",
2291
2291
  variant = "outlined",
2292
- background = "white",
2292
+ background,
2293
2293
  required,
2294
2294
  disabled,
2295
2295
  setState,
@@ -2344,7 +2344,8 @@ function SCSelect({
2344
2344
  {
2345
2345
  fullWidth: true,
2346
2346
  size: size ? size : "medium",
2347
- variant
2347
+ variant,
2348
+ sx: { background: background ? background : "transparent" }
2348
2349
  },
2349
2350
  /* @__PURE__ */ React14.createElement(
2350
2351
  InputLabel2,
@@ -2363,6 +2364,7 @@ function SCSelect({
2363
2364
  variant,
2364
2365
  disabled: disabled || false,
2365
2366
  error,
2367
+ sx: { height: "32px" },
2366
2368
  MenuProps: {
2367
2369
  sx: {
2368
2370
  zIndex: 1400
@@ -3002,16 +3004,18 @@ var SCDateRange = ({
3002
3004
  },
3003
3005
  sx: {
3004
3006
  flex: 1,
3005
- "& .MuiOutlinedInput-root": {
3006
- backgroundColor: background === "transparent" ? "transparent" : background
3007
+ "& .MuiPickersOutlinedInput-root": {
3008
+ height: "32px",
3009
+ backgroundColor: background != null ? background : "transparent"
3010
+ },
3011
+ "& .MuiPickersInputBase-sectionsContainer": {
3012
+ height: "32px",
3013
+ padding: "0px 8px",
3014
+ alignItems: "center"
3007
3015
  },
3008
3016
  "& .MuiInputLabel-asterisk": {
3009
3017
  color: "error.main"
3010
- },
3011
- "& .MuiPickersOutlinedInput-sectionsContainer": {
3012
- padding: "6px 0px"
3013
- },
3014
- background: background != null ? background : "transparent"
3018
+ }
3015
3019
  }
3016
3020
  };
3017
3021
  }
@@ -4306,6 +4310,7 @@ function useFilteredItems(items, filterValue, getItemLabel, selectedItems) {
4306
4310
  // src/Components/MultiSelect/MultiSelect.tsx
4307
4311
  function MultiSelect({
4308
4312
  textButton,
4313
+ background,
4309
4314
  button,
4310
4315
  items,
4311
4316
  topPanel,
@@ -4375,6 +4380,7 @@ function MultiSelect({
4375
4380
  /* @__PURE__ */ React34.createElement(Stack12, { minWidth: "320px", "data-testid": "multiselect-container", bgcolor: "white", boxShadow: 3, borderRadius: 1 }, /* @__PURE__ */ React34.createElement(Stack12, { py: 1, px: 2 }, topPanel != null ? topPanel : /* @__PURE__ */ React34.createElement(FormControl3, { fullWidth: true, size: "small" }, /* @__PURE__ */ React34.createElement(
4376
4381
  TextField4,
4377
4382
  {
4383
+ sx: { background: background ? background : "transparent" },
4378
4384
  "data-testid": "multiselect-input",
4379
4385
  fullWidth: true,
4380
4386
  size: "small",
@@ -4649,7 +4655,7 @@ var SCActivityCalendar = ({
4649
4655
  padding: "0px 16px"
4650
4656
  },
4651
4657
  fontSize: "12px !important",
4652
- height: "260px !important",
4658
+ height: "324px !important",
4653
4659
  background: background ? background : "white",
4654
4660
  "& .MuiDayCalendar-header": { justifyContent: "space-between" },
4655
4661
  "& .MuiDayCalendar-weekContainer": { justifyContent: "space-between" },
@@ -4659,7 +4665,7 @@ var SCActivityCalendar = ({
4659
4665
  },
4660
4666
  onChange: (newValue) => setFecha(newValue)
4661
4667
  }
4662
- ), /* @__PURE__ */ React38.createElement(Grid9, { container: true, justifyContent: "center" }, /* @__PURE__ */ React38.createElement(IconButton13, { "data-testid": "close-calendar-button", onClick: toggleCalendar(false) }, /* @__PURE__ */ React38.createElement(KeyboardDoubleArrowUpIcon, { color: "action" }))))), /* @__PURE__ */ React38.createElement(IconButton13, { onClick: handleClickPopoverFiltro, sx: { position: "fixed", right: "calc(100% - 96%)", top: openCalendar == false ? "220px" : "380px" } }, /* @__PURE__ */ React38.createElement(FilterListIcon, { color: "action" })), /* @__PURE__ */ React38.createElement(
4668
+ ), /* @__PURE__ */ React38.createElement(Grid9, { container: true, justifyContent: "center" }, /* @__PURE__ */ React38.createElement(IconButton13, { "data-testid": "close-calendar-button", onClick: toggleCalendar(false) }, /* @__PURE__ */ React38.createElement(KeyboardDoubleArrowUpIcon, { color: "action" }))))), /* @__PURE__ */ React38.createElement(IconButton13, { onClick: handleClickPopoverFiltro, sx: { position: "fixed", right: "calc(100% - 96%)", top: openCalendar == false ? "220px" : "444px" } }, /* @__PURE__ */ React38.createElement(FilterListIcon, { color: "action" })), /* @__PURE__ */ React38.createElement(
4663
4669
  Popover6,
4664
4670
  {
4665
4671
  open: openPopoverFiltro,
@@ -4935,7 +4941,7 @@ var SCCalendarSwipeable = ({
4935
4941
  padding: "0px 16px"
4936
4942
  },
4937
4943
  fontSize: "12px !important",
4938
- height: "260px !important",
4944
+ height: "324px !important",
4939
4945
  background: background ? background : "white",
4940
4946
  "& .MuiDayCalendar-header": { justifyContent: "space-between" },
4941
4947
  "& .MuiDayCalendar-weekContainer": { justifyContent: "space-between" },