@m4l/components 9.4.14 → 9.4.15-BE20260121-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.
Files changed (103) hide show
  1. package/components/AccountPopover/AccountPopover.styles.js +10 -5
  2. package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +2 -2
  3. package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +2 -2
  4. package/components/AppBar/slots/AppBarSlots.d.ts +1 -1
  5. package/components/CheckableList/slots/styled.d.ts +1 -1
  6. package/components/Chip/slots/ChipSlots.d.ts +2 -2
  7. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
  8. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
  9. package/components/EditLabel/slots/EditLabelSlots.d.ts +2 -2
  10. package/components/Icon/Icon.d.ts +3 -0
  11. package/components/Icon/Icon.js +52 -28
  12. package/components/Icon/Icon.styles.js +53 -61
  13. package/components/Icon/constants.d.ts +1 -0
  14. package/components/Icon/constants.js +5 -1
  15. package/components/Icon/slots/IconSlots.js +3 -3
  16. package/components/Icon/types.d.ts +44 -7
  17. package/components/Label/slots/LabelSlots.d.ts +1 -1
  18. package/components/MenuActions/MenuActions.js +17 -5
  19. package/components/MenuActions/constants.js +2 -8
  20. package/components/MenuActions/slots/MenuActionsSlots.d.ts +1 -1
  21. package/components/MenuActions/slots/MenuActionsSlots.js +1 -1
  22. package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +2 -0
  23. package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
  24. package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +3 -3
  25. package/components/PaperForm/slots/PaperFormSlots.d.ts +1 -1
  26. package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +2 -2
  27. package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
  28. package/components/Stepper/slots/StepperSlot.d.ts +1 -1
  29. package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +1 -1
  30. package/components/ToastContainer/slots/toastContainerSlots.d.ts +3 -3
  31. package/components/WindowBase/slots/WindowBaseSlots.d.ts +2 -2
  32. package/components/WindowBase/types.d.ts +2 -1
  33. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +1 -1
  34. package/components/datagrids/formatters/ColumnIconFormatter/types.d.ts +2 -1
  35. package/components/datagrids/formatters/ColumnNestedValueFormatter/formatter.d.ts +33 -1
  36. package/components/datagrids/formatters/ColumnNestedValueFormatter/formatter.js +3 -2
  37. package/components/datagrids/formatters/ColumnNestedValueFormatter/types.d.ts +19 -1
  38. package/components/datagrids/formatters/ColumnNestedValueFormatter/useColumnNestedValue.d.ts +34 -2
  39. package/components/datagrids/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js +23 -9
  40. package/components/datagrids/icons.js +0 -8
  41. package/components/datagrids/subcomponents/HeaderActions/subcomponents/Density/Density.js +11 -14
  42. package/components/datagrids/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.js +6 -5
  43. package/components/datagrids/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.js +9 -10
  44. package/components/datagrids/tests/helpers/types.d.ts +10 -0
  45. package/components/datagrids/views/CardsView/hooks/useCardContent/useCardContent.js +3 -4
  46. package/components/datagrids/views/CardsView/subcomponents/CardDetails/CardDetails.js +3 -4
  47. package/components/datagrids/views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/CardHeader.js +2 -4
  48. package/components/datagrids/views/CardsView/subcomponents/Settings/Settings.js +3 -4
  49. package/components/datagrids/views/CardsView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js +3 -4
  50. package/components/datagrids/views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +9 -10
  51. package/components/datagrids/views/TableView/hooks/useHeaderMenuActions/useHeaderMenuActions.js +35 -49
  52. package/components/datagrids/views/TableView/hooks/useSortColumnsRows/useSortColumnsRows.js +2 -0
  53. package/components/extended/React-resizable-panels/SplitLayout.styles.js +46 -37
  54. package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +1 -1
  55. package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +2 -2
  56. package/components/formatters/IconsFormatter/slots/IconsFormatterSlots.d.ts +2 -2
  57. package/components/formatters/IconsFormatter/types.d.ts +2 -1
  58. package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +5 -0
  59. package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.d.ts +1 -1
  60. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +1 -1
  61. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
  62. package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +1 -1
  63. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +1 -1
  64. package/components/mui_extended/Accordion/Accordion.js +3 -2
  65. package/components/mui_extended/Accordion/constants.d.ts +0 -1
  66. package/components/mui_extended/Accordion/constants.js +1 -3
  67. package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +2 -2
  68. package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +3 -5
  69. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
  70. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
  71. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +2 -2
  72. package/components/mui_extended/DatePicker/DatePicker.styles.js +2 -2
  73. package/components/mui_extended/DatePicker/hooks/useDatePicker/useDatePicker.js +10 -11
  74. package/components/mui_extended/DatePicker/slots/DatePickerSlots.d.ts +1 -1
  75. package/components/mui_extended/DateTimePicker/DateTimePicker.d.ts +0 -4
  76. package/components/mui_extended/DateTimePicker/DateTimePicker.js +10 -11
  77. package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +1 -1
  78. package/components/mui_extended/IconButton/IconButton.js +19 -8
  79. package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +1 -1
  80. package/components/mui_extended/IconButton/types.d.ts +3 -6
  81. package/components/mui_extended/MenuItem/MenuItem.js +14 -4
  82. package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +2 -2
  83. package/components/mui_extended/MenuItem/types.d.ts +3 -3
  84. package/components/mui_extended/Radio/Radio.js +4 -5
  85. package/components/mui_extended/Select/Select.d.ts +2 -1
  86. package/components/mui_extended/Select/Select.js +7 -5
  87. package/components/mui_extended/Select/slots/SelectSlots.d.ts +2 -2
  88. package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
  89. package/components/mui_extended/Tabs/Tabs.js +5 -9
  90. package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +1 -1
  91. package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
  92. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +1 -1
  93. package/not_recognized/index.js +100 -25
  94. package/package.json +2 -1
  95. package/components/hook-form/RHFDatePicker/icons.d.ts +0 -6
  96. package/components/mui_extended/Autocomplete/icons.js +0 -7
  97. package/components/mui_extended/DatePicker/icons.d.ts +0 -4
  98. package/components/mui_extended/DatePicker/icons.js +0 -10
  99. package/components/mui_extended/DateTimePicker/icons.d.ts +0 -4
  100. package/components/mui_extended/DateTimePicker/icons.js +0 -10
  101. package/components/mui_extended/Radio/icons.js +0 -7
  102. package/components/mui_extended/Tabs/icons.d.ts +0 -4
  103. package/components/mui_extended/Tabs/icons.js +0 -7
@@ -2,9 +2,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { I as IconButtonStyled, C as CalendarHeaderStyled, A as ActionsContainerStyled, P as PickersLayoutStyled, a as DesktopPaperStyled, T as TextFieldStyled } from "../../slots/DatePickerSlots.js";
3
3
  import { useFormatter, useIsMobile } from "@m4l/graphics";
4
4
  import React, { useMemo, useCallback } from "react";
5
- import { useEnvironment, useModuleDictionary } from "@m4l/core";
6
- import { c as chevron_left, a as chevron_right, b as chevron_down, d as calendar } from "../../icons.js";
5
+ import { useModuleDictionary } from "@m4l/core";
7
6
  import { d as datePickerStyles } from "../../DatePicker.styles.js";
7
+ import { ArrowChevronSmLeftOutlined, ArrowChevronSmRightOutlined, ArrowChevronSmDownOutlined, DateTimeCreatedOutlined } from "@m4l/icons";
8
8
  import { u as useComponentSize } from "../../../../../hooks/useComponentSize/useComponentSize.js";
9
9
  import { I as IconButton } from "../../../IconButton/IconButton.js";
10
10
  import { B as Button } from "../../../Button/Button.js";
@@ -19,7 +19,6 @@ const useDatePicker = (props) => {
19
19
  id
20
20
  } = props;
21
21
  const { dateFormatter } = useFormatter();
22
- const { host_static_assets, environment_assets } = useEnvironment();
23
22
  const { getLabel } = useModuleDictionary();
24
23
  const isMobile = useIsMobile();
25
24
  const { currentSize } = useComponentSize(size);
@@ -39,11 +38,11 @@ const useDatePicker = (props) => {
39
38
  ownerState,
40
39
  size: currentSize,
41
40
  disabled,
42
- icon: `${host_static_assets}/${environment_assets}/${chevron_left}`
41
+ icon: /* @__PURE__ */ jsx(ArrowChevronSmLeftOutlined, {})
43
42
  }
44
43
  );
45
44
  });
46
- }, [currentSize, disabled, environment_assets, host_static_assets, ownerState]);
45
+ }, [currentSize, disabled, ownerState]);
47
46
  const CustomNextIconButton = useMemo(() => {
48
47
  return React.forwardRef((iconButtonProps, ref) => {
49
48
  return /* @__PURE__ */ jsx(
@@ -54,11 +53,11 @@ const useDatePicker = (props) => {
54
53
  ownerState,
55
54
  size: currentSize,
56
55
  disabled,
57
- icon: `${host_static_assets}/${environment_assets}/${chevron_right}`
56
+ icon: /* @__PURE__ */ jsx(ArrowChevronSmRightOutlined, {})
58
57
  }
59
58
  );
60
59
  });
61
- }, [currentSize, disabled, environment_assets, host_static_assets, ownerState]);
60
+ }, [currentSize, disabled, ownerState]);
62
61
  const CustomSwitchViewButton = useMemo(() => {
63
62
  return React.forwardRef((iconButtonProps, ref) => {
64
63
  const currentView = iconButtonProps?.ownerState?.view;
@@ -73,11 +72,11 @@ const useDatePicker = (props) => {
73
72
  size: currentSize,
74
73
  disabled,
75
74
  rotationAngle,
76
- icon: `${host_static_assets}/${environment_assets}/${chevron_down}`
75
+ icon: /* @__PURE__ */ jsx(ArrowChevronSmDownOutlined, {})
77
76
  }
78
77
  );
79
78
  });
80
- }, [currentSize, disabled, environment_assets, host_static_assets, ownerState]);
79
+ }, [currentSize, disabled, ownerState]);
81
80
  const calendarHeaderCallback = useCallback((args) => {
82
81
  return /* @__PURE__ */ jsx(CalendarHeaderStyled, { ...args, ownerState });
83
82
  }, [ownerState]);
@@ -140,12 +139,12 @@ const useDatePicker = (props) => {
140
139
  IconButton,
141
140
  {
142
141
  ...args,
143
- icon: `${host_static_assets}/${environment_assets}/${calendar}`,
142
+ icon: /* @__PURE__ */ jsx(DateTimeCreatedOutlined, {}),
144
143
  size: currentSize,
145
144
  disabled: readOnly || disabled
146
145
  }
147
146
  );
148
- }, [currentSize, disabled, environment_assets, host_static_assets, readOnly]);
147
+ }, [currentSize, disabled, readOnly]);
149
148
  const defaultSlots = useMemo(() => ({
150
149
  textField: TextFieldStyled,
151
150
  openPickerButton,
@@ -27,7 +27,7 @@ export declare const CalendarHeaderStyled: import('@emotion/styled').StyledCompo
27
27
  /**
28
28
  * Componente estilizado de IconButton de M4L como slot del componente.
29
29
  */
30
- export declare const IconButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "tooltip" | "instaceDataTestId" | "placement" | "icon" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
30
+ export declare const IconButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "tooltip" | "instaceDataTestId" | "placement" | "icon" | "rotationAngle" | "ariaLabel" | "dataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
31
31
  ownerState?: (Partial<import('..').DatePickerOwnerState> & Record<string, unknown>) | undefined;
32
32
  }, {}, {}>;
33
33
  /**
@@ -1,10 +1,6 @@
1
1
  import { DateTimePickerProps } from './types';
2
2
  /**
3
3
  * DataTimePicker es un refactor del componente de material UI.
4
- * @author DanielEscobar - automatic
5
- * @createdAt 2025-01-27 14:53:37 - automatic
6
- * @updatedAt 2025-01-31 16:52:06 - automatic
7
- * @updatedUser cesar - automatic
8
4
  *
9
5
  * ```tsx *
10
6
  * const ExampleComponent = () => {
@@ -1,14 +1,14 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
3
  import { useMemo, useCallback } from "react";
4
- import { useEnvironment, useModuleSkeleton } from "@m4l/core";
4
+ import { useModuleSkeleton } from "@m4l/core";
5
5
  import { useIsMobile } from "@m4l/graphics";
6
6
  import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
7
7
  import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
8
8
  import { P as PopperStyled, a as PickersCalendarHeaderStyled, I as IconButtonStyled, b as PickersDayStyled, c as PaperStyled, S as SkeletonStyled, M as MobileDateTimePickerRootStyled, D as DesktopDateTimePickerRootStyled } from "./slots/DateTimePickerSlots.js";
9
- import { d as date, c as chevron_right, a as chevron_left, b as chevron_down } from "./icons.js";
10
9
  import { D as DateTimePickerEnum } from "./slots/DateTimePickerEnum.js";
11
10
  import { D as DATE_TIME_PICKER_KEY_COMPONENT } from "./constants.js";
11
+ import { DateTimeCreatedOutlined, ArrowChevronSmRightOutlined, ArrowChevronSmLeftOutlined, ArrowChevronSmDownOutlined } from "@m4l/icons";
12
12
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
13
13
  import { I as IconButton } from "../IconButton/IconButton.js";
14
14
  const DateTimePicker = (props) => {
@@ -25,7 +25,6 @@ const DateTimePicker = (props) => {
25
25
  ...others
26
26
  } = props;
27
27
  const isMobile = useIsMobile();
28
- const { host_static_assets, environment_assets } = useEnvironment();
29
28
  const { currentSize } = useComponentSize(size);
30
29
  const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
31
30
  const ownerState = useMemo(() => ({
@@ -39,12 +38,12 @@ const DateTimePicker = (props) => {
39
38
  IconButton,
40
39
  {
41
40
  ...args,
42
- icon: `${host_static_assets}/${environment_assets}/${date}`,
41
+ src: /* @__PURE__ */ jsx(DateTimeCreatedOutlined, {}),
43
42
  size: adjustedSize,
44
43
  disabled
45
44
  }
46
45
  );
47
- }, [adjustedSize, disabled, environment_assets, host_static_assets]);
46
+ }, [adjustedSize, disabled]);
48
47
  const popper = useCallback((args) => {
49
48
  return /* @__PURE__ */ jsx(PopperStyled, { ...args, ownerState, ...getPropDataTestId(DATE_TIME_PICKER_KEY_COMPONENT, DateTimePickerEnum.popper, dataTestId) });
50
49
  }, [ownerState]);
@@ -59,10 +58,10 @@ const DateTimePicker = (props) => {
59
58
  ownerState,
60
59
  size: adjustedSize,
61
60
  disabled,
62
- icon: `${host_static_assets}/${environment_assets}/${chevron_right}`
61
+ icon: /* @__PURE__ */ jsx(ArrowChevronSmRightOutlined, {})
63
62
  }
64
63
  );
65
- }, [adjustedSize, disabled, environment_assets, host_static_assets, ownerState]);
64
+ }, [adjustedSize, disabled, ownerState]);
66
65
  const previousIconButton = useCallback((args) => {
67
66
  return /* @__PURE__ */ jsx(
68
67
  IconButtonStyled,
@@ -71,10 +70,10 @@ const DateTimePicker = (props) => {
71
70
  ownerState,
72
71
  size: adjustedSize,
73
72
  disabled,
74
- icon: `${host_static_assets}/${environment_assets}/${chevron_left}`
73
+ icon: /* @__PURE__ */ jsx(ArrowChevronSmLeftOutlined, {})
75
74
  }
76
75
  );
77
- }, [adjustedSize, disabled, environment_assets, host_static_assets, ownerState]);
76
+ }, [adjustedSize, disabled, ownerState]);
78
77
  const switchViewButton = useCallback((args) => {
79
78
  return /* @__PURE__ */ jsx(
80
79
  IconButtonStyled,
@@ -83,10 +82,10 @@ const DateTimePicker = (props) => {
83
82
  ownerState,
84
83
  size: adjustedSize,
85
84
  disabled,
86
- icon: `${host_static_assets}/${environment_assets}/${chevron_down}`
85
+ icon: /* @__PURE__ */ jsx(ArrowChevronSmDownOutlined, {})
87
86
  }
88
87
  );
89
- }, [adjustedSize, disabled, environment_assets, host_static_assets, ownerState]);
88
+ }, [adjustedSize, disabled, ownerState]);
90
89
  const day = useCallback((args) => {
91
90
  return /* @__PURE__ */ jsx(PickersDayStyled, { ...args, disableRipple: true, ownerState, ...getPropDataTestId(DATE_TIME_PICKER_KEY_COMPONENT, DateTimePickerEnum.pickersDay, dataTestId) });
92
91
  }, [ownerState]);
@@ -15,7 +15,7 @@ export declare const PaperStyled: import('@emotion/styled').StyledComponent<Pick
15
15
  export declare const PickersCalendarHeaderStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/x-date-pickers').PickersCalendarHeaderProps<unknown> & import('react').RefAttributes<HTMLButtonElement>, keyof import('react').RefAttributes<HTMLButtonElement> | keyof import('@mui/x-date-pickers').PickersCalendarHeaderProps<unknown>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
16
16
  ownerState?: (Partial<import('../types').DateTimePickerOwnerState> & Record<string, unknown>) | undefined;
17
17
  }, {}, {}>;
18
- export declare const IconButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "tooltip" | "instaceDataTestId" | "placement" | "icon" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
18
+ export declare const IconButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "tooltip" | "instaceDataTestId" | "placement" | "icon" | "rotationAngle" | "ariaLabel" | "dataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
19
19
  ownerState?: (Partial<import('../types').DateTimePickerOwnerState> & Record<string, unknown>) | undefined;
20
20
  }, {}, {}>;
21
21
  export declare const PickersDayStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/x-date-pickers').PickersDayProps<unknown> & import('react').RefAttributes<HTMLButtonElement>, "value" | "children" | "ref" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "color" | "content" | "translate" | "className" | "style" | "classes" | "sx" | "form" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "day" | "disableHighlightToday" | "showDaysOutsideCurrentMonth" | "disableMargin" | "isAnimating" | "onDaySelect" | "outsideCurrentMonth" | "isFirstVisibleCell" | "isLastVisibleCell" | "today"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useModuleSkeleton } from "@m4l/core";
3
3
  import clsx from "clsx";
4
- import React, { forwardRef, useMemo, cloneElement } from "react";
4
+ import React, { forwardRef, useMemo } from "react";
5
5
  import { I as ICON_BUTTON_CLASSES } from "./constants.js";
6
6
  import { e as evalIconColor } from "./helpers/evalIconColor.js";
7
7
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
@@ -22,6 +22,7 @@ const IconButton = forwardRef((props, ref) => {
22
22
  rotationAngle,
23
23
  className,
24
24
  badgeProps = {},
25
+ dataTestId,
25
26
  ...other
26
27
  } = props;
27
28
  const { currentSize } = useComponentSize(size);
@@ -53,17 +54,27 @@ const IconButton = forwardRef((props, ref) => {
53
54
  size: adjustedSize,
54
55
  color: iconColor,
55
56
  disabled,
56
- rotationAngle
57
+ rotationAngle,
58
+ "data-testid": dataTestId ?? "IconButtonRoot"
57
59
  }
58
60
  );
59
61
  }
60
62
  if (React.isValidElement(arg)) {
61
- return cloneElement(arg, {
62
- disabled
63
- });
63
+ return /* @__PURE__ */ jsx(
64
+ IconStyled,
65
+ {
66
+ ownerState,
67
+ src: arg,
68
+ size: adjustedSize,
69
+ color: iconColor,
70
+ disabled,
71
+ rotationAngle,
72
+ "data-testid": dataTestId ?? "IconButtonRoot"
73
+ }
74
+ );
64
75
  }
65
76
  return null;
66
- }, [adjustedSize, disabled, iconColor, rotationAngle, ownerState]);
77
+ }, [ownerState, adjustedSize, iconColor, disabled, rotationAngle, dataTestId]);
67
78
  if (isSkeleton) {
68
79
  return /* @__PURE__ */ jsx(SkeletonStyled, { ownerState: { ...ownerState } });
69
80
  }
@@ -84,7 +95,7 @@ const IconButton = forwardRef((props, ref) => {
84
95
  onClick: !disabled ? onClick : void 0,
85
96
  disableRipple: true,
86
97
  disabled,
87
- "data-testid": "IconButtonRoot",
98
+ "data-testid": dataTestId ?? "IconButtonRoot",
88
99
  color,
89
100
  role: "button",
90
101
  ...other,
@@ -106,7 +117,7 @@ const IconButton = forwardRef((props, ref) => {
106
117
  onClick: !disabled ? onClick : void 0,
107
118
  disableRipple: true,
108
119
  disabled,
109
- "data-testid": "IconButtonRoot",
120
+ "data-testid": dataTestId ?? "IconButtonRoot",
110
121
  color,
111
122
  ...other,
112
123
  className: clsx(
@@ -9,6 +9,6 @@ export declare const BadgeStyled: import('@emotion/styled').StyledComponent<Pick
9
9
  export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
10
10
  ownerState?: (Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>) | undefined;
11
11
  }, {}, {}>;
12
- export declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
12
+ export declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, "src" | "icon" | keyof import('../../../Icon').IconBaseProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
13
13
  ownerState?: (Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>) | undefined;
14
14
  }, {}, {}>;
@@ -1,7 +1,6 @@
1
1
  import { ComponentPalletColor, Sizes } from '@m4l/styles';
2
2
  import { IconButtonProps as MUIIconButtonProps } from '@mui/material';
3
3
  import { Theme } from '@mui/material/styles';
4
- import { ReactNode } from 'react';
5
4
  import { M4LOverridesStyleRules } from '../../../@types/augmentations';
6
5
  import { IconProps } from '../../Icon/types';
7
6
  import { TooltipProps } from '../../mui_extended/Tooltip/types';
@@ -12,7 +11,7 @@ import { IconButtonSlots } from './slots';
12
11
  export type IconButtonVariants = 'contained' | 'outline' | 'text';
13
12
  /** Tipo `IconButtonSize` para definir sus tamaños */
14
13
  export type IconButtonSize = 'small' | 'medium';
15
- export interface IconButtonProps extends Omit<IconProps, 'size' | 'color' | 'src' | 'selected' | 'enabledSelected' | 'onClick' | 'tooltipContent'>, Omit<MUIIconButtonProps, 'size' | 'color' | 'disabled' | 'src'>, Pick<TooltipProps, 'placement'> {
14
+ export interface IconButtonProps extends Partial<Omit<IconProps, 'size' | 'color' | 'selected' | 'enabledSelected' | 'onClick' | 'tooltipContent'>>, Omit<MUIIconButtonProps, 'size' | 'color' | 'disabled' | 'src'>, Pick<TooltipProps, 'placement'> {
16
15
  /** Variante del componente, modifica la apariencia gráfica */
17
16
  variant?: IconButtonVariants;
18
17
  /**
@@ -29,12 +28,10 @@ export interface IconButtonProps extends Omit<IconProps, 'size' | 'color' | 'src
29
28
  disabled?: boolean;
30
29
  /** Propiedad que sirve para complementar el nombre del data-testid, aporta un identificador único del elemento html en toda aplicación. Es útil para realizar pruebas unitarias y de integración. */
31
30
  instaceDataTestId?: string;
31
+ /** Propiedad que define el data-testid del botón. Si no se proporciona, se usa 'IconButtonRoot' por defecto. */
32
+ dataTestId?: string;
32
33
  /** Propiedad que sirve para cambiar al modo seleccionado */
33
34
  selected?: boolean;
34
- /** Propiedad para renderizar el icon */
35
- icon?: ReactNode;
36
- /** URL del icono */
37
- src?: string;
38
35
  /** Propiedades para el componente badge */
39
36
  badgeProps?: BadgeProps;
40
37
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useModuleSkeleton, useEnvironment } from "@m4l/core";
3
3
  import clsx from "clsx";
4
- import React, { useMemo, cloneElement } from "react";
4
+ import React, { useMemo } from "react";
5
5
  import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
6
6
  import { M as MENUITEM_CLASSES } from "./constants.js";
7
7
  import { M as MenuItemIconStyled, a as MenuItemSkeletonStyled, b as MenuItemRootStyled, c as MenuItemIconCheckedStyled, d as MenuItemTypographyStyled } from "./slots/MenuItemSlots.js";
@@ -56,9 +56,19 @@ const MenuItem = (props) => {
56
56
  );
57
57
  }
58
58
  if (React.isValidElement(icon)) {
59
- return cloneElement(icon, {
60
- selected
61
- });
59
+ return /* @__PURE__ */ jsx(
60
+ MenuItemIconStyled,
61
+ {
62
+ ownerState: { ...ownerState },
63
+ selected,
64
+ enabledSelected: true,
65
+ src: icon,
66
+ size: adjustedSize,
67
+ disabled,
68
+ instaceDataTestId,
69
+ className: classNameIcon
70
+ }
71
+ );
62
72
  }
63
73
  return null;
64
74
  }, [ownerState, adjustedSize, disabled, selected]);
@@ -6,10 +6,10 @@ declare const MenuItemRootStyled: import('@emotion/styled').StyledComponent<Pick
6
6
  declare const MenuItemTypographyStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../Typography/types').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "size" | "children" | "title" | "component" | "zIndex" | "id" | "disabled" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "flex" | "variant" | "color" | "dataTestid" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "sx" | "p" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "htmlFor" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonWidth" | "skeletonRows" | "ellipsis" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
7
7
  ownerState?: (Partial<import('..').MenuItemOwnerState> & Record<string, unknown>) | undefined;
8
8
  }, {}, {}>;
9
- declare const MenuItemIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
9
+ declare const MenuItemIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, "src" | "icon" | keyof import('../../../Icon').IconBaseProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
10
10
  ownerState?: (Partial<import('..').MenuItemOwnerState> & Record<string, unknown>) | undefined;
11
11
  }, {}, {}>;
12
- declare const MenuItemIconCheckedStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
12
+ declare const MenuItemIconCheckedStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, "src" | "icon" | keyof import('../../../Icon').IconBaseProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
13
13
  ownerState?: (Partial<import('..').MenuItemOwnerState> & Record<string, unknown>) | undefined;
14
14
  }, {}, {}>;
15
15
  declare const MenuItemSkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
@@ -2,9 +2,9 @@ import { MenuItemProps as MUIMenuItemProps, Theme } from '@mui/material';
2
2
  import { Sizes } from '@m4l/styles';
3
3
  import { MenuItemSlots } from './slots';
4
4
  import { MENUITEM_KEY_COMPONENT } from './constants';
5
- import { ReactNode } from 'react';
6
5
  import { M4LOverridesStyleRules } from '../../../@types/augmentations';
7
6
  import { IconButtonProps } from '../IconButton/types';
7
+ import { IconProps } from '../../Icon/types';
8
8
  /**
9
9
  * Propiedades del componente `MenuItem`.
10
10
  */
@@ -12,11 +12,11 @@ export interface MenuItemProps extends Omit<MUIMenuItemProps, 'size' | 'color'>
12
12
  /**
13
13
  * Prop opcional para el ícono a la izquierda en el `MenuItem`
14
14
  */
15
- startIcon?: ReactNode;
15
+ startIcon?: IconProps['src'] | null;
16
16
  /**
17
17
  * Prop opcional para el ícono a la derecha en el `MenuItem`
18
18
  */
19
- endIcon?: ReactNode;
19
+ endIcon?: IconProps['src'] | null;
20
20
  /**
21
21
  * Texto que describe el `MenuItem`
22
22
  */
@@ -1,11 +1,11 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { forwardRef, useId } from "react";
3
- import { useModuleSkeleton, useEnvironment } from "@m4l/core";
3
+ import { useModuleSkeleton } from "@m4l/core";
4
4
  import { R as RadioRootStyled, M as MUIRadioStyled, I as InlineTextStyled, S as SkeletonStyled } from "./slots/styled.js";
5
5
  import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
6
6
  import { R as RADIO_CLASSES, a as RADIO_KEY_COMPONENT } from "./constants.js";
7
7
  import clsx from "clsx";
8
- import { p as pathIcons } from "./icons.js";
8
+ import { ActionsUncheckDuotone, ActionsRadioButtonCheckFill } from "@m4l/icons";
9
9
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
10
10
  import { I as Icon } from "../../Icon/Icon.js";
11
11
  const Radio = forwardRef(
@@ -26,7 +26,6 @@ const Radio = forwardRef(
26
26
  const { currentSize } = useComponentSize(size);
27
27
  const isSkeleton = useModuleSkeleton();
28
28
  const classRoot = getComponentSlotRoot(RADIO_KEY_COMPONENT);
29
- const { host_static_assets, environment_assets } = useEnvironment();
30
29
  const hookId = useId();
31
30
  const finalId = id || hookId;
32
31
  const ownerState = {
@@ -53,7 +52,7 @@ const Radio = forwardRef(
53
52
  checkedIcon: /* @__PURE__ */ jsx(
54
53
  Icon,
55
54
  {
56
- src: `${host_static_assets}/${environment_assets}/${pathIcons.checked}`,
55
+ src: /* @__PURE__ */ jsx(ActionsRadioButtonCheckFill, {}),
57
56
  size: currentSize,
58
57
  color: disabled ? "text.disabled" : error ? "error.enabled" : "primary.enabled"
59
58
  }
@@ -61,7 +60,7 @@ const Radio = forwardRef(
61
60
  icon: /* @__PURE__ */ jsx(
62
61
  Icon,
63
62
  {
64
- src: `${host_static_assets}/${environment_assets}/${pathIcons.unchecked}`,
63
+ src: /* @__PURE__ */ jsx(ActionsUncheckDuotone, {}),
65
64
  size: currentSize,
66
65
  color: disabled ? "text.disabled" : error ? "error.enabled" : "text.secondary"
67
66
  }
@@ -1,7 +1,8 @@
1
+ import { default as React } from 'react';
1
2
  import { SelectProps } from './types';
2
3
  /**
3
4
  * Select component for rendering a dropdown with various options.
4
5
  * @param {SelectProps} props - The properties for the Select component.
5
6
  * @returns {JSX.Element} The rendered Select component.
6
7
  */
7
- export declare const Select: import('react').ForwardRefExoticComponent<Omit<SelectProps<string | number, boolean | undefined>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
8
+ export declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps<string | number, boolean | undefined>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -3,7 +3,7 @@ import { useEnvironment, useModuleSkeleton, useModuleDictionary } from "@m4l/cor
3
3
  import { useTheme } from "@mui/material";
4
4
  import { useForkRef } from "@mui/material/utils";
5
5
  import clsx from "clsx";
6
- import { forwardRef, useMemo, useState, useRef, useCallback, useEffect } from "react";
6
+ import React, { forwardRef, useMemo, useState, useRef, useCallback, useEffect } from "react";
7
7
  import { A as ArrowDownStyled, a as AdormentStyled, S as SelectRootStyled, b as SkeletonSelectStyled, M as MenuItemListStyled, c as MenuItemNoOptionStyled, L as LabelPlaceholerStyled, R as RenderValueContainerStyled, d as RenderValueTypography } from "./slots/SelectSlots.js";
8
8
  import { I as ICON_ARROW_DOWN, S as SELECT_CLASSES, a as SELECT_KEY_COMPONENT } from "./constants.js";
9
9
  import { S as SELECT_DICTIONARY } from "./dictionary.js";
@@ -104,9 +104,7 @@ const Select = forwardRef(
104
104
  if (!icon) {
105
105
  return null;
106
106
  }
107
- if (typeof icon !== "string") {
108
- return icon;
109
- } else {
107
+ if (typeof icon === "string") {
110
108
  return /* @__PURE__ */ jsx(
111
109
  AdormentStyled,
112
110
  {
@@ -117,6 +115,10 @@ const Select = forwardRef(
117
115
  }
118
116
  );
119
117
  }
118
+ if (React.isValidElement(icon)) {
119
+ return icon;
120
+ }
121
+ return null;
120
122
  }, [disabled, adjustedSize]);
121
123
  const onMouseDownIconButtonChip = useCallback((e) => {
122
124
  e.stopPropagation();
@@ -234,7 +236,7 @@ const Select = forwardRef(
234
236
  disabled,
235
237
  selected: isSelected,
236
238
  label: option.label,
237
- startIcon: option.startAdornment
239
+ startIcon: RenderIcon(option.startAdornment)
238
240
  },
239
241
  String(option.id)
240
242
  );