@m4l/components 9.2.55 → 9.2.56-beta.2

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 (350) hide show
  1. package/.storybook/utils/flattenDeep.d.ts +8 -0
  2. package/.storybook/utils/getStylesColorsByMode.d.ts +4 -4
  3. package/@types/augmentations.d.ts +1 -1
  4. package/@types/types.d.ts +10 -9
  5. package/components/AccountPopover/AccountPopover.js +3 -4
  6. package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +32 -32
  7. package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +13 -14
  8. package/components/AccountPopover/types.d.ts +2 -2
  9. package/components/AppBar/AppBar.js +6 -9
  10. package/components/AppBar/slots/AppBarSlots.d.ts +16 -16
  11. package/components/AppBar/styles.js +2 -1
  12. package/components/AppBar/types.d.ts +2 -2
  13. package/components/Chip/ChipStyles.js +12 -12
  14. package/components/Chip/slots/ChipSlots.d.ts +6 -6
  15. package/components/Color/Color.styles.js +11 -11
  16. package/components/Color/slots/ColorSlots.d.ts +5 -5
  17. package/components/CommonActions/components/ActionFormIntro/ActionFormIntro.js +0 -1
  18. package/components/CommonActions/components/ActionFormIntro/slots/ActionFormIntroSlots.d.ts +2 -2
  19. package/components/CommonActions/components/ActionFormIntro/types.d.ts +2 -2
  20. package/components/DataGrid/DataGrid.js +29 -7
  21. package/components/DataGrid/Datagrid.styles.js +598 -0
  22. package/components/DataGrid/constants.d.ts +1 -0
  23. package/components/DataGrid/constants.js +2 -0
  24. package/components/DataGrid/contexts/DataGridContext/index.js +23 -5
  25. package/components/DataGrid/contexts/DataGridContext/types.d.ts +4 -0
  26. package/components/DataGrid/formatters/ColumnIconFormatter/formatter.js +0 -2
  27. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/formatter.js +2 -2
  28. package/components/DataGrid/icons.d.ts +1 -0
  29. package/components/DataGrid/icons.js +4 -3
  30. package/components/DataGrid/slots/DataGridEnum.d.ts +6 -0
  31. package/components/DataGrid/slots/DataGridEnum.js +10 -2
  32. package/components/DataGrid/slots/DataGridSlot.d.ts +9 -0
  33. package/components/DataGrid/slots/DataGridSlot.js +35 -14
  34. package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.d.ts +5 -0
  35. package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.js +30 -0
  36. package/components/DataGrid/subcomponents/ControlNavigate/index.d.ts +2 -0
  37. package/components/DataGrid/subcomponents/ControlNavigate/types.d.ts +7 -0
  38. package/components/DataGrid/subcomponents/HeaderActions/index.d.ts +5 -0
  39. package/components/DataGrid/subcomponents/HeaderActions/index.js +39 -0
  40. package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Density/index.js +4 -3
  41. package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/MobileMenuActions/index.js +3 -2
  42. package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/RowsCount/index.js +4 -4
  43. package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/index.js +5 -2
  44. package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +33 -23
  45. package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +4 -1
  46. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettings/index.d.ts +7 -0
  47. package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/hooks/useModalSettings/index.js +12 -7
  48. package/components/DataGrid/subcomponents/HeaderActions/types.d.ts +4 -0
  49. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +5 -3
  50. package/components/DataGrid/subcomponents/Table/index.js +4 -4
  51. package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +12 -3
  52. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +28 -13
  53. package/components/DataGrid/subcomponents/Table/subcomponents/SelectColumn.js +2 -2
  54. package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/index.js +4 -2
  55. package/components/DataGrid/subcomponents/editors/TextEditor/index.js +1 -1
  56. package/components/DataGrid/types.d.ts +20 -3
  57. package/components/DragResizeWindowRND/DragResizeWindowRND.styles.js +1 -1
  58. package/components/DragResizeWindowRND/slots/DragResizeWindowRNDSlots.d.ts +3 -5
  59. package/components/DynamicFilter/DynamicFilter.styles.js +13 -13
  60. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +19 -19
  61. package/components/DynamicFilter/store/DynamicFilterStore.js +2 -2
  62. package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.js +2 -2
  63. package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.js +1 -1
  64. package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +2 -3
  65. package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +2 -2
  66. package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +3 -4
  67. package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +0 -1
  68. package/components/DynamicSort/DynamicSort.styles.js +13 -13
  69. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +19 -19
  70. package/components/DynamicSort/store/DynamicSortStore.js +2 -2
  71. package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +2 -2
  72. package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +0 -1
  73. package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +4 -5
  74. package/components/DynamicSort/subcomponents/SortActions/SortActions.js +2 -3
  75. package/components/DynamicSort/subcomponents/SortActions/useSortActions.js +2 -2
  76. package/components/GridLayout/styles.js +4 -82
  77. package/components/HelperError/HelperError.styles.js +4 -4
  78. package/components/Icon/Icon.js +1 -1
  79. package/components/Icon/Icon.styles.js +10 -10
  80. package/components/Image/Image.js +1 -1
  81. package/components/Image/image.styles.js +1 -1
  82. package/components/Image/slots/ImageSlots.d.ts +12 -12
  83. package/components/Image/subcomponents/IntersectComponent/index.js +0 -1
  84. package/components/Image/types.d.ts +2 -2
  85. package/components/Label/Label.styles.js +11 -11
  86. package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.styles.js +3 -3
  87. package/components/LoadingError/LoadingError.js +1 -2
  88. package/components/MenuActions/MenuActions.js +4 -4
  89. package/components/MenuActions/MenuActions.styles.js +4 -4
  90. package/components/MenuActions/slots/MenuActionsSlots.d.ts +12 -12
  91. package/components/MenuActions/types.d.ts +3 -3
  92. package/components/NoItemSelected/NoItemSelected.js +3 -5
  93. package/components/NoItemSelected/NoItemSelected.styles.js +4 -4
  94. package/components/NoItemSelected/slots/NoItemSelectedSlots.d.ts +7 -7
  95. package/components/NumberInput/NumberInput.styles.js +20 -20
  96. package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
  97. package/components/ObjectLogs/hooks/useDetailFormatter.js +3 -2
  98. package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +20 -20
  99. package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +1 -3
  100. package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +1 -3
  101. package/components/ObjectLogs/types.d.ts +2 -2
  102. package/components/Pager/Pager.js +2 -3
  103. package/components/Pager/Pager.styles.js +13 -12
  104. package/components/Pager/index.d.ts +2 -0
  105. package/components/Pager/slots/PagerEnum.d.ts +2 -1
  106. package/components/Pager/slots/PagerEnum.js +1 -0
  107. package/components/Pager/slots/PagerSlots.d.ts +1 -0
  108. package/components/Pager/slots/PagerSlots.js +7 -2
  109. package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.js +16 -18
  110. package/components/Pager/subcomponents/PagerActions/PagerActions.js +4 -2
  111. package/components/Pager/subcomponents/PagerActions/types.d.ts +1 -0
  112. package/components/PaperForm/components/Header.js +2 -2
  113. package/components/PaperForm/slots/PaperFormSlots.d.ts +10 -10
  114. package/components/PaperForm/styles.js +7 -7
  115. package/components/PaperForm/types.d.ts +2 -2
  116. package/components/PrintingSystem/slots/PrintingSystemSlots.d.ts +42 -42
  117. package/components/PrintingSystem/subcomponents/BodyNode/index.js +0 -1
  118. package/components/PrintingSystem/subcomponents/ChartNode/index.js +0 -1
  119. package/components/PrintingSystem/subcomponents/DividerNode/index.js +0 -1
  120. package/components/PrintingSystem/subcomponents/FooterNode/index.js +0 -1
  121. package/components/PrintingSystem/subcomponents/GridNode/index.js +0 -5
  122. package/components/PrintingSystem/subcomponents/HeaderNode/index.js +0 -1
  123. package/components/PrintingSystem/subcomponents/PageNode/index.js +0 -1
  124. package/components/PrintingSystem/subcomponents/PaperNode/index.js +0 -5
  125. package/components/PrintingSystem/subcomponents/PropertyValueNode/index.js +0 -2
  126. package/components/PrintingSystem/subcomponents/SectionNode/index.js +0 -1
  127. package/components/PrintingSystem/types.d.ts +2 -2
  128. package/components/PropertyValue/PropertyValue.js +3 -4
  129. package/components/PropertyValue/PropertyValue.styles.js +3 -3
  130. package/components/PropertyValue/slots/PropertyValueSlots.d.ts +3 -3
  131. package/components/ScrollBar/ScrollBar.d.ts +3 -3
  132. package/components/ScrollBar/ScrollBar.js +5 -45
  133. package/components/ScrollBar/ScrollBar.styles.js +5 -52
  134. package/components/ScrollBar/constants.d.ts +4 -2
  135. package/components/ScrollBar/constants.js +2 -5
  136. package/components/ScrollBar/index.d.ts +2 -0
  137. package/components/ScrollBar/index.js +1 -0
  138. package/components/ScrollBar/slots/ScrollBarSlots.d.ts +1 -6
  139. package/components/ScrollBar/slots/ScrollBarSlots.js +7 -13
  140. package/components/ScrollBar/slots/ScrollbarEnum.d.ts +3 -0
  141. package/components/ScrollBar/slots/ScrollbarEnum.js +7 -0
  142. package/components/ScrollBar/types.d.ts +12 -42
  143. package/components/SideBar/slots/SideBarSlots.d.ts +34 -34
  144. package/components/SideBar/subcomponents/ContentComponent/style.d.ts +2 -2
  145. package/components/SideBar/subcomponents/ContentComponent/style.js +4 -4
  146. package/components/SideBar/subcomponents/ContentGroups/index.js +3 -3
  147. package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +2 -2
  148. package/components/SideBar/subcomponents/ContentGroups/styles.js +11 -2
  149. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.d.ts +2 -2
  150. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +1 -10
  151. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/subcomponents/ArrowIcon/index.js +0 -1
  152. package/components/SideBar/subcomponents/FooterSidebar/styles.d.ts +2 -2
  153. package/components/SideBar/subcomponents/HeaderSidebar/index.js +2 -2
  154. package/components/SideBar/subcomponents/HeaderSidebar/styles.d.ts +2 -2
  155. package/components/SideBar/subcomponents/SideBarDesktop/styles.d.ts +2 -2
  156. package/components/SideBar/subcomponents/SideBarDesktop/styles.js +2 -2
  157. package/components/SideBar/subcomponents/SideBarMobile/index.js +0 -1
  158. package/components/SideBar/subcomponents/SideBarMobile/styles.d.ts +2 -2
  159. package/components/SideBar/types.d.ts +9 -2
  160. package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
  161. package/components/WindowBase/WindowBase.js +8 -6
  162. package/components/WindowBase/WindowBase.styles.js +208 -107
  163. package/components/WindowBase/icons.js +2 -2
  164. package/components/WindowBase/slots/WindowBaseEnum.d.ts +3 -3
  165. package/components/WindowBase/slots/WindowBaseEnum.js +2 -2
  166. package/components/WindowBase/slots/WindowBaseSlots.d.ts +18 -23
  167. package/components/WindowBase/slots/WindowBaseSlots.js +13 -12
  168. package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +22 -12
  169. package/components/WindowBase/subcomponents/Header/types.d.ts +1 -1
  170. package/components/WindowBase/subcomponents/Header/useButtonActions.js +5 -2
  171. package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.d.ts +1 -1
  172. package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.js +1 -1
  173. package/components/WindowBase/subcomponents/MemoizedIconButton/types.d.ts +9 -0
  174. package/components/WindowBase/types.d.ts +10 -0
  175. package/components/WindowConfirm/WindowConfirm.js +2 -3
  176. package/components/WindowConfirm/WindowConfirm.styles.js +4 -4
  177. package/components/areas/components/AreasAdmin/AreasAdmin.js +12 -17
  178. package/components/areas/components/AreasAdmin/AreasAdmin.styles.js +13 -21
  179. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +22 -22
  180. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +1 -4
  181. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +3 -4
  182. package/components/areas/components/AreasAdmin/types.d.ts +1 -1
  183. package/components/areas/components/AreasViewer/AreasViewer.js +1 -1
  184. package/components/areas/components/AreasViewer/AreasViewer.styles.js +2 -2
  185. package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +5 -5
  186. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.js +1 -1
  187. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +8 -1
  188. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +7 -3
  189. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/WindowModal.js +0 -1
  190. package/components/areas/contexts/AreasContext/index.js +1 -1
  191. package/components/areas/contexts/AreasContext/store.js +1 -1
  192. package/components/areas/contexts/AreasContext/types.d.ts +1 -1
  193. package/components/areas/icons.d.ts +2 -2
  194. package/components/areas/icons.js +4 -4
  195. package/components/commercial/SectionCommercial/classes/index.d.ts +2 -2
  196. package/components/commercial/SectionCommercial/classes/index.js +3 -3
  197. package/components/commercial/SectionCommercial/types.d.ts +1 -1
  198. package/components/extended/React-Resizable/helpers.d.ts +2 -9
  199. package/components/extended/React-Resizable/helpers.js +15 -13
  200. package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.js +0 -1
  201. package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.styles.js +1 -1
  202. package/components/extended/React-Spinners/PropagateLoaderSpinner/slots/PropagateLoaderSpinnerSlots.d.ts +4 -4
  203. package/components/extended/React-Spinners/PropagateLoaderSpinner/types.d.ts +2 -2
  204. package/components/extended/React-Splitter-Layout/slots/SplitLayoutSlots.d.ts +3 -3
  205. package/components/extended/React-resizable-panels/SplitLayout.styles.js +6 -6
  206. package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +7 -7
  207. package/components/formatters/ChipStatusFormatter/slots/ChipStatusFormatterSlots.d.ts +2 -2
  208. package/components/formatters/PeriodFormatter/PeriodFormatter.styles.js +1 -1
  209. package/components/hook-form/RHFAutocomplete/RFHAutocompleteStyles.js +1 -1
  210. package/components/hook-form/RHFDateTime/types.d.ts +1 -1
  211. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +2 -2
  212. package/components/hook-form/RHFSelect/RHFSelect.js +1 -1
  213. package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
  214. package/components/hook-form/RHFSelect/slots/RHFSlots.js +1 -1
  215. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  216. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +1 -1
  217. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.styles.js +2 -2
  218. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +8 -8
  219. package/components/hook-form/RHFTextFieldPassword/types.d.ts +2 -2
  220. package/components/hook-form/RHFTimePicker/types.d.ts +1 -1
  221. package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js +1 -1
  222. package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.styles.js +3 -3
  223. package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +22 -22
  224. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +9 -10
  225. package/components/hook-form/RHFUpload/RHFUploadImage/types.d.ts +2 -2
  226. package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.styles.js +2 -2
  227. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +21 -21
  228. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/BlockContent/BlockContent.js +2 -7
  229. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/Preview.js +5 -6
  230. package/components/index.d.ts +2 -0
  231. package/components/mui_extended/Accordion/Accordion.js +31 -21
  232. package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +12 -12
  233. package/components/mui_extended/Accordion/styles.js +56 -33
  234. package/components/mui_extended/Accordion/types.d.ts +39 -6
  235. package/components/mui_extended/Autocomplete/Autocomplete.styles.js +3 -3
  236. package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +1 -1
  237. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +16 -16
  238. package/components/mui_extended/Avatar/Avatar.js +1 -1
  239. package/components/mui_extended/Avatar/styles.js +3 -3
  240. package/components/mui_extended/Badge/Badge.js +14 -8
  241. package/components/mui_extended/Badge/Badge.styles.js +23 -33
  242. package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +2 -2
  243. package/components/mui_extended/Badge/slots/BadgeSlots.js +2 -2
  244. package/components/mui_extended/Badge/types.d.ts +4 -3
  245. package/components/mui_extended/Button/ButtonStyles.js +25 -25
  246. package/components/mui_extended/CheckBox/CheckBox.js +2 -2
  247. package/components/mui_extended/CheckBox/CheckBox.styles.js +12 -12
  248. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +12 -12
  249. package/components/mui_extended/CheckBox/types.d.ts +2 -2
  250. package/components/mui_extended/CircularProgress/CircularProgress.styles.js +5 -5
  251. package/components/mui_extended/DateTimePicker/DateTimePicker.styles.js +49 -49
  252. package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +10 -10
  253. package/components/mui_extended/Divider/Divider.js +1 -2
  254. package/components/mui_extended/Divider/Divider.styles.js +9 -9
  255. package/components/mui_extended/IconButton/IconButton.js +39 -12
  256. package/components/mui_extended/IconButton/IconButton.styles.js +64 -54
  257. package/components/mui_extended/IconButton/helpers/evalIconColor.d.ts +1 -1
  258. package/components/mui_extended/IconButton/helpers/getIconButtonColors.d.ts +1 -1
  259. package/components/mui_extended/IconButton/helpers/getIconButtonColors.js +4 -4
  260. package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +5 -7
  261. package/components/mui_extended/IconButton/slots/IconButtonSlots.js +4 -3
  262. package/components/mui_extended/IconButton/types.d.ts +10 -8
  263. package/components/mui_extended/LoadingButton/LoadingButton.styles.js +5 -5
  264. package/components/mui_extended/MenuDivider/MenuDivider.js +1 -2
  265. package/components/mui_extended/MenuDivider/MenuDivider.styles.js +9 -9
  266. package/components/mui_extended/MenuItem/MenuItem.styles.js +10 -10
  267. package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +6 -6
  268. package/components/mui_extended/MenuItem/types.d.ts +8 -3
  269. package/components/mui_extended/NavLink/NavLink.js +1 -2
  270. package/components/mui_extended/NavLink/NavLink.styles.js +9 -9
  271. package/components/mui_extended/NavLink/slots/NavLinkSlots.d.ts +4 -4
  272. package/components/mui_extended/Popover/Popover.js +0 -1
  273. package/components/mui_extended/Popover/slots/PopoverSlots.d.ts +2 -2
  274. package/components/mui_extended/Popover/types.d.ts +3 -3
  275. package/components/mui_extended/Popper/PopperStyles.js +1 -1
  276. package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
  277. package/components/mui_extended/Select/Select.js +2 -3
  278. package/components/mui_extended/Select/Select.styles.js +10 -10
  279. package/components/mui_extended/Select/slots/SelectSlots.d.ts +12 -12
  280. package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
  281. package/components/mui_extended/Skeleton/skeleton.styles.js +4 -4
  282. package/components/mui_extended/Stack/Stack.js +4 -2
  283. package/components/mui_extended/Stack/Stack.styles.js +7 -4
  284. package/components/mui_extended/Stack/slots/StackSlot.d.ts +1 -1
  285. package/components/mui_extended/Tab/Tab.js +2 -0
  286. package/components/mui_extended/Tab/Tab.styles.js +26 -48
  287. package/components/mui_extended/Tab/types.d.ts +4 -0
  288. package/components/mui_extended/TabContent/TabContent.js +1 -1
  289. package/components/mui_extended/TabContent/TabContent.styles.js +2 -4
  290. package/components/mui_extended/TabContent/slots/TabContentSlots.d.ts +2 -2
  291. package/components/mui_extended/TabContent/types.d.ts +2 -2
  292. package/components/mui_extended/Tabs/Tabs.styles.js +2 -1
  293. package/components/mui_extended/TextField/TextField.styles.js +22 -22
  294. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +3 -3
  295. package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +8 -8
  296. package/components/mui_extended/ToggleIconButton/ToggleIconButton.js +12 -5
  297. package/components/mui_extended/ToggleIconButton/ToggleIconButton.styles.js +21 -11
  298. package/components/mui_extended/ToggleIconButton/constants.d.ts +7 -0
  299. package/components/mui_extended/ToggleIconButton/constants.js +3 -1
  300. package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
  301. package/components/mui_extended/ToggleIconButton/types.d.ts +9 -3
  302. package/components/mui_extended/Tooltip/Tooltip.styles.js +1 -1
  303. package/components/mui_extended/Tooltip/slots/TooltipSlots.d.ts +3 -3
  304. package/components/mui_extended/Typography/typography.styles.js +7 -7
  305. package/components/mui_extended/index.d.ts +0 -2
  306. package/components/popups/components/PopupsViewer/PopupsViewer.styles.js +2 -2
  307. package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +7 -9
  308. package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +2 -0
  309. package/hooks/useComponentSize/useComponentSize.d.ts +3 -3
  310. package/hooks/useComponentSize/useComponentSize.js +5 -2
  311. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +6 -6
  312. package/hooks/useDynamicFilterAndSort/styles.js +7 -13
  313. package/hooks/useDynamicFilterAndSort/types.d.ts +2 -2
  314. package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +4 -21
  315. package/index.js +43 -42
  316. package/package.json +3 -3
  317. package/storybook/components/Chip/Chip.stories.d.ts +4 -0
  318. package/storybook/components/DataGrid/DataGrid.stories.d.ts +16 -0
  319. package/storybook/components/Icon/Icon.stories.d.ts +4 -0
  320. package/storybook/components/WindowBase/windowBase.stories.d.ts +60 -7
  321. package/storybook/components/extended/mui/Accordion/Accordion.stories.d.ts +72 -20
  322. package/storybook/components/extended/mui/Badge/Badge.stories.d.ts +4 -0
  323. package/storybook/components/extended/mui/IconButton/IconButton.stories.d.ts +12 -0
  324. package/storybook/components/extended/mui/Tab/Tab.stories.d.ts +24 -24
  325. package/storybook/components/extended/mui/ToggleIconButton/ToggleIconButton.stories.d.ts +12 -0
  326. package/storybook/tootls/WrapperLineGuide/WrapperLineGuide.d.ts +9 -0
  327. package/storybook/tootls/WrapperLineGuide/styles.d.ts +1 -0
  328. package/storybook/tootls/WrapperLineGuide/types.d.ts +5 -0
  329. package/components/DataGrid/styles.js +0 -484
  330. package/components/DataGrid/subcomponents/Actions/index.d.ts +0 -5
  331. package/components/DataGrid/subcomponents/Actions/index.js +0 -48
  332. package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +0 -6
  333. package/components/DataGrid/subcomponents/Actions/types.d.ts +0 -13
  334. package/components/ScrollBar/slots/ScrollBarEnum.d.ts +0 -4
  335. package/components/ScrollBar/slots/ScrollBarEnum.js +0 -8
  336. package/components/ScrollBar/slots/index.d.ts +0 -2
  337. package/storybook/components/extended/scrollBar/ScrollBar.stories.d.ts +0 -7
  338. package/storybook/components/extended/scrollBar/ScrollBarDecorator.d.ts +0 -11
  339. /package/components/DataGrid/{styles.d.ts → Datagrid.styles.d.ts} +0 -0
  340. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Density/index.d.ts +0 -0
  341. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Density/types.d.ts +0 -0
  342. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Filter/index.d.ts +0 -0
  343. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Filter/index.js +0 -0
  344. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/MobileMenuActions/index.d.ts +0 -0
  345. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/RowsCount/index.d.ts +0 -0
  346. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/index.d.ts +0 -0
  347. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts +0 -0
  348. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/hooks/useModalSettings/types.d.ts +0 -0
  349. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/types.d.ts +0 -0
  350. /package/components/{ScrollBar/slots → Pager}/index.js +0 -0
@@ -1,11 +1,11 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import React, { forwardRef, useMemo, cloneElement } from "react";
3
2
  import { useModuleSkeleton } from "@m4l/core";
4
- import { e as evalIconColor } from "./helpers/evalIconColor.js";
5
- import { I as ICON_BUTTON_CLASSES } from "./constants.js";
6
3
  import clsx from "clsx";
4
+ import React, { forwardRef, useMemo, cloneElement } from "react";
5
+ import { I as ICON_BUTTON_CLASSES } from "./constants.js";
6
+ import { e as evalIconColor } from "./helpers/evalIconColor.js";
7
7
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
8
- import { I as IconStyled, S as StyledMUIIconButton, B as BadgeStyled, a as SkeletonStyled } from "./slots/IconButtonSlots.js";
8
+ import { I as IconStyled, S as SkeletonStyled, B as BadgeStyled, a as StyledMUIIconButton } from "./slots/IconButtonSlots.js";
9
9
  import { T as Tooltip } from "../Tooltip/Tooltip.js";
10
10
  const IconButton = forwardRef((props, ref) => {
11
11
  const {
@@ -15,13 +15,13 @@ const IconButton = forwardRef((props, ref) => {
15
15
  variant = "text",
16
16
  disabled,
17
17
  onClick,
18
- badgeContent,
19
18
  color = "default",
20
19
  selected = false,
21
20
  icon,
22
21
  src,
23
22
  rotationAngle,
24
23
  className,
24
+ badgeProps = {},
25
25
  ...other
26
26
  } = props;
27
27
  const { currentSize } = useComponentSize(size);
@@ -39,6 +39,7 @@ const IconButton = forwardRef((props, ref) => {
39
39
  () => evalIconColor(color, variant),
40
40
  [color, variant]
41
41
  );
42
+ const { variant: badgeVariant, color: badgeColor, invisible, badgeContent = "", ...restBadgeProps } = badgeProps;
42
43
  const renderIcon = useMemo(() => (arg) => {
43
44
  if (!arg || typeof arg === "boolean" || typeof arg === "number") {
44
45
  return null;
@@ -63,11 +64,39 @@ const IconButton = forwardRef((props, ref) => {
63
64
  }
64
65
  return null;
65
66
  }, [adjustedSize, disabled, iconColor, rotationAngle, ownerState]);
66
- const buttonContent = useMemo(() => /* @__PURE__ */ jsx(
67
+ if (isSkeleton) {
68
+ return /* @__PURE__ */ jsx(SkeletonStyled, { ownerState: { ...ownerState } });
69
+ }
70
+ const buttonContent = badgeVariant || badgeContent ? /* @__PURE__ */ jsx(
71
+ BadgeStyled,
72
+ {
73
+ ownerState,
74
+ badgeContent: badgeVariant === "dot" ? "" : badgeContent,
75
+ invisible,
76
+ variant: badgeVariant,
77
+ color: badgeColor,
78
+ ...restBadgeProps,
79
+ children: /* @__PURE__ */ jsx(
80
+ StyledMUIIconButton,
81
+ {
82
+ ref,
83
+ ownerState,
84
+ onClick: !disabled ? onClick : void 0,
85
+ disableRipple: true,
86
+ disabled,
87
+ "data-testid": "IconButtonRoot",
88
+ color,
89
+ role: "button",
90
+ ...other,
91
+ className: clsx(ICON_BUTTON_CLASSES[variant], ICON_BUTTON_CLASSES.styledMUIIconButton, className),
92
+ children: renderIcon(icon || src)
93
+ }
94
+ )
95
+ }
96
+ ) : /* @__PURE__ */ jsx(
67
97
  StyledMUIIconButton,
68
98
  {
69
99
  ref,
70
- className: clsx(ICON_BUTTON_CLASSES.root, ICON_BUTTON_CLASSES[variant], className),
71
100
  ownerState,
72
101
  onClick: !disabled ? onClick : void 0,
73
102
  disableRipple: true,
@@ -75,12 +104,10 @@ const IconButton = forwardRef((props, ref) => {
75
104
  "data-testid": "IconButtonRoot",
76
105
  color,
77
106
  ...other,
78
- children: badgeContent ? /* @__PURE__ */ jsx(BadgeStyled, { ownerState, badgeContent, color, children: renderIcon(icon || src) }) : renderIcon(icon || src)
107
+ className: clsx(ICON_BUTTON_CLASSES[variant], ICON_BUTTON_CLASSES.styledMUIIconButton, className),
108
+ children: renderIcon(icon || src)
79
109
  }
80
- ), [ref, variant, className, ownerState, disabled, onClick, color, other, badgeContent, renderIcon, icon, src]);
81
- if (isSkeleton) {
82
- return /* @__PURE__ */ jsx(SkeletonStyled, { ownerState: { ...ownerState } });
83
- }
110
+ );
84
111
  return tooltip ? /* @__PURE__ */ jsx(Tooltip, { title: tooltip, placement, children: buttonContent }) : buttonContent;
85
112
  });
86
113
  export {
@@ -6,39 +6,65 @@ const iconButtonStyles = {
6
6
  * Define la apariencia base y todos los estados interactivos
7
7
  */
8
8
  styledMUIIconButton: ({ ownerState, theme }) => {
9
- const paletteColor = ownerState.disabled ? theme.vars.palette["default"] : theme.vars.palette[ownerState.color || "default"];
9
+ const paletteColor = ownerState?.disabled ? theme.vars.palette["default"] : theme.vars.palette[ownerState?.color || "default"];
10
10
  return {
11
11
  "&&&": {
12
12
  // 🔧 Triple & para aumentar la especificidad CSS
13
13
  overflow: "hidden",
14
- cursor: ownerState.disabled ? "not-allowed" : "pointer",
14
+ cursor: ownerState?.disabled ? "not-allowed" : "pointer",
15
15
  color: theme.vars.palette.text.primary,
16
16
  borderRadius: theme.size.borderRadius.r1,
17
- pointerEvents: ownerState.disabled ? "none" : "auto",
18
- display: ownerState.isSkeleton ? "none" : "flex",
17
+ pointerEvents: ownerState?.disabled ? "none" : "auto",
18
+ display: ownerState?.isSkeleton ? "none" : "flex",
19
19
  justifyContent: "center",
20
20
  padding: 0,
21
21
  // 🖼️ Estilos para el icono dentro del botón
22
22
  "&&& .M4LIcon-icon": {
23
- backgroundColor: ownerState.variant === "contained" ? paletteColor.contrastText : paletteColor.semanticText
23
+ backgroundColor: ownerState?.variant === "contained" ? paletteColor.contrastText : paletteColor.semanticText
24
+ },
25
+ // 🔍 Estado Focus-visible
26
+ "&:focus-visible": {
27
+ outline: theme.vars.size.borderStroke.container,
28
+ outlineColor: theme.vars.palette.default.focusVisible,
29
+ outlineOffset: "-1px",
30
+ ...ownerState?.variant === "outline" && {
31
+ backgroundColor: paletteColor.hoverOpacity
32
+ },
33
+ ...ownerState?.variant === "text" && {
34
+ backgroundColor: paletteColor.hoverOpacity
35
+ }
36
+ },
37
+ "&:-webkit-any-link:focus-visible": {
38
+ outline: theme.vars.size.borderStroke.container,
39
+ outlineColor: theme.vars.palette.default.focusVisible,
40
+ outlineOffset: "-1px"
24
41
  },
25
42
  /**
26
43
  * ✅ ESTADO SELECCIONADO
27
44
  * Maneja la apariencia cuando el botón está seleccionado (selected=true)
28
45
  */
29
- ...ownerState.selected === true ? {
30
- // 🎯 Color de fondo según variante y color del componente
31
- backgroundColor: ownerState.variant === "contained" ? ownerState.color === "error" ? paletteColor.active : paletteColor.selected : ownerState.color === "error" ? paletteColor.activeOpacity : paletteColor.selectedOpacity,
32
- // 🔲 Ajuste de bordes para la variante outline cuando está seleccionado
46
+ ...ownerState?.selected === true ? {
47
+ // Estilos para la variante contained
48
+ ...ownerState?.variant === "contained" && {
49
+ // 🎯 Color de fondo según variante y color del componente
50
+ backgroundColor: ownerState?.variant === "contained" ? ownerState?.color === "error" ? paletteColor.active : ownerState?.color === "default" ? theme.vars.palette.primary.selected : paletteColor.selected : ownerState?.color === "error" ? paletteColor.activeOpacity : paletteColor.selectedOpacity,
51
+ "&&& .M4LIcon-icon": {
52
+ backgroundColor: ownerState?.variant === "contained" ? theme.vars.palette.primary.contrastText : paletteColor.semanticText
53
+ }
54
+ },
55
+ // Estilos para la variante text
33
56
  ...ownerState.variant === "outline" && {
34
- // Para primary y error, usar borde especial
35
- ...["primary", "error"].includes(ownerState.color || "") && {
36
- border: theme.vars.size.borderStroke.actionInput,
37
- borderColor: paletteColor.active
38
- },
39
- // Para default, usar borde específico solicitado
40
- ...ownerState.color === "default" && {
41
- border: `1px solid ${theme.vars.palette.border.default}`
57
+ backgroundColor: ownerState.color === "default" ? theme.vars.palette.primary.activeOpacity : paletteColor.activeOpacity,
58
+ border: theme.vars.size.borderStroke.actionInput,
59
+ borderColor: ownerState.color === "default" ? theme.vars.palette.primary.active : paletteColor.active,
60
+ "&&& .M4LIcon-icon": {
61
+ backgroundColor: ownerState.color === "default" ? theme.vars.palette.primary.semanticText : paletteColor.selected
62
+ }
63
+ },
64
+ ...ownerState.variant === "text" && {
65
+ backgroundColor: ownerState.color === "default" ? theme.vars.palette.primary.activeOpacity : paletteColor.activeOpacity,
66
+ "&&& .M4LIcon-icon": {
67
+ backgroundColor: ownerState.color === "default" ? theme.vars.palette.primary.semanticText : paletteColor.selected
42
68
  }
43
69
  }
44
70
  } : {
@@ -50,30 +76,20 @@ const iconButtonStyles = {
50
76
  * 📝 VARIANTE TEXT
51
77
  * Apariencia base y estados interactivos para la variante text
52
78
  */
53
- ...ownerState.variant === "text" && {
79
+ ...ownerState?.variant === "text" && {
54
80
  "&&& .M4LIcon-icon": {
55
81
  backgroundColor: paletteColor.semanticText
56
82
  },
57
83
  // 🖱️ Estado Hover
58
84
  "&:hover": {
59
85
  backgroundColor: paletteColor.hoverOpacity,
60
- "&&& .M4LIcon-icon": {
61
- backgroundColor: ownerState.color === "default" ? paletteColor.semanticText : paletteColor.hover
62
- }
86
+ "&&& .M4LIcon-icon": {}
63
87
  },
64
88
  // 👇 Estado Active
65
89
  "&:active": {
66
90
  backgroundColor: paletteColor.activeOpacity,
67
91
  "&&& .M4LIcon-icon": {
68
- backgroundColor: ownerState.color === "default" ? paletteColor.semanticText : paletteColor.active
69
- }
70
- },
71
- // 🔍 Estado Focus-visible
72
- "&:focus-visible": {
73
- border: theme.vars.size.borderStroke.actionInput,
74
- borderColor: theme.vars.palette.default.focusVisible,
75
- "&&& .M4LIcon-icon": {
76
- backgroundColor: ownerState.color === "default" ? paletteColor.semanticText : paletteColor.active
92
+ backgroundColor: ownerState?.color === "default" ? paletteColor.semanticText : paletteColor.active
77
93
  }
78
94
  }
79
95
  },
@@ -81,33 +97,26 @@ const iconButtonStyles = {
81
97
  * ⚪ VARIANTE OUTLINE
82
98
  * Apariencia base y estados interactivos para la variante outline
83
99
  */
84
- ...ownerState.variant === "outline" && {
100
+ ...ownerState?.variant === "outline" && {
85
101
  // 🖋️ Borde diferente según el color del componente
86
- ...ownerState.color !== "default" && {
102
+ ...ownerState?.color !== "default" && {
87
103
  border: `1px solid ${paletteColor.enabled}`
88
104
  },
89
- ...ownerState.color === "default" && {
105
+ ...ownerState?.color === "default" && {
90
106
  border: `1px solid ${theme.vars.palette.border.default}`
91
107
  },
92
108
  // 🖱️ Estado Hover
93
109
  "&:hover": {
94
110
  background: paletteColor.hoverOpacity,
95
- border: `1px solid ${theme.vars.palette.border.default}`,
96
- "&&& .M4LIcon-icon": {
97
- backgroundColor: ownerState.color === "default" ? paletteColor.semanticText : paletteColor.hover
98
- }
99
- },
100
- // 🔍 Estado Focus-visible
101
- "&:focus-visible": {
102
- border: theme.vars.size.borderStroke.actionInput,
103
- borderColor: theme.vars.palette.default.focusVisible
111
+ border: ownerState.color === "default" ? `1px solid ${theme.vars.palette.border.default}` : `1px solid ${paletteColor.hover}`,
112
+ "&&& .M4LIcon-icon": {}
104
113
  },
105
114
  // 👇 Estado Active
106
115
  "&:active": {
107
116
  background: paletteColor.activeOpacity,
108
- border: `1px solid ${theme.vars.palette.border.default}`,
117
+ border: ownerState.color === "default" ? `1px solid ${theme.vars.palette.border.default}` : `1px solid ${paletteColor.active}`,
109
118
  "&&& .M4LIcon-icon": {
110
- backgroundColor: ownerState.color === "default" ? paletteColor.semanticText : paletteColor.active
119
+ backgroundColor: ownerState?.color === "default" ? paletteColor.semanticText : paletteColor.active
111
120
  }
112
121
  }
113
122
  },
@@ -115,7 +124,7 @@ const iconButtonStyles = {
115
124
  * 🔵 VARIANTE CONTAINED
116
125
  * Apariencia base y estados interactivos para la variante contained
117
126
  */
118
- ...ownerState.variant === "contained" && {
127
+ ...ownerState?.variant === "contained" && {
119
128
  backgroundColor: paletteColor.enabled,
120
129
  // 🖼️ Color del icono
121
130
  "&&& .M4LIcon-icon": {
@@ -128,11 +137,6 @@ const iconButtonStyles = {
128
137
  // 👇 Estado Active
129
138
  "&:active": {
130
139
  background: paletteColor.active
131
- },
132
- // 🔍 Estado Focus-visible
133
- "&:focus-visible": {
134
- border: theme.vars.size.borderStroke.actionInput,
135
- borderColor: theme.vars.palette.default.focusVisible
136
140
  }
137
141
  }
138
142
  },
@@ -140,7 +144,7 @@ const iconButtonStyles = {
140
144
  * 🚫 ESTADO DISABLED
141
145
  * Estilos específicos para cuando el botón está deshabilitado
142
146
  */
143
- ...ownerState.disabled === true && {
147
+ ...ownerState?.disabled === true && {
144
148
  "&&& .M4LIcon-icon": {
145
149
  color: theme.vars.palette.text.disabled
146
150
  }
@@ -151,7 +155,7 @@ const iconButtonStyles = {
151
155
  */
152
156
  ...getSizeStyles(
153
157
  theme,
154
- ownerState.size || "medium",
158
+ ownerState?.size || "medium",
155
159
  "action",
156
160
  (size) => {
157
161
  return {
@@ -159,7 +163,13 @@ const iconButtonStyles = {
159
163
  height: size
160
164
  };
161
165
  }
162
- )
166
+ ),
167
+ // 🔲 Estilos para el imagen dentro del botón
168
+ "&&& .M4LImage-root": {
169
+ width: "100%",
170
+ height: "100%",
171
+ objectFit: "cover"
172
+ }
163
173
  }
164
174
  };
165
175
  },
@@ -176,7 +186,7 @@ const iconButtonStyles = {
176
186
  "&.M4lclassCssSpecificity": {
177
187
  ...getSizeStyles(
178
188
  theme,
179
- ownerState.size || "medium",
189
+ ownerState?.size || "medium",
180
190
  "action",
181
191
  (size) => {
182
192
  return {
@@ -1,6 +1,6 @@
1
1
  import { ComponentPalletColor } from '@m4l/styles';
2
- import { IconButtonVariants } from '../types';
3
2
  import { IconProps } from '../../../Icon/types';
3
+ import { IconButtonVariants } from '../types';
4
4
  /**
5
5
  * Evalúa el color correcto según figma para ser usado en el slot icon.
6
6
  */
@@ -3,7 +3,7 @@ import { IconButtonOwnerState } from '../types';
3
3
  /**
4
4
  * Obtiene los colores del icon button
5
5
  */
6
- export declare const getIconButtonColors: (theme: Theme, ownerState: Partial<IconButtonOwnerState>) => {
6
+ export declare const getIconButtonColors: (theme: Theme, ownerState?: Partial<IconButtonOwnerState>) => {
7
7
  bgColor: string;
8
8
  bgColorHover: string;
9
9
  bgColorActive: string;
@@ -1,12 +1,12 @@
1
1
  const getIconButtonColors = (theme, ownerState) => {
2
- const paletteColor = ownerState.disabled ? theme.vars.palette["default"] : theme.vars.palette[ownerState.color || "default"];
3
- const isSelected = ownerState.disabled ? false : ownerState.selected;
2
+ const paletteColor = ownerState?.disabled ? theme.vars.palette["default"] : theme.vars.palette[ownerState?.color || "default"];
3
+ const isSelected = ownerState?.disabled ? false : ownerState?.selected;
4
4
  let bgColor = paletteColor.enabled;
5
5
  let bgColorHover = paletteColor.hoverOpacity;
6
6
  let bgColorActive = paletteColor.activeOpacity;
7
7
  let iconColor = paletteColor.semanticText;
8
8
  const borderColor = paletteColor.enabled;
9
- if (ownerState.variant === "contained") {
9
+ if (ownerState?.variant === "contained") {
10
10
  if (isSelected) {
11
11
  bgColor = paletteColor.selected;
12
12
  }
@@ -20,7 +20,7 @@ const getIconButtonColors = (theme, ownerState) => {
20
20
  bgColor = "unset";
21
21
  }
22
22
  }
23
- if (ownerState.disabled) {
23
+ if (ownerState?.disabled) {
24
24
  iconColor = theme.vars.palette.text.disabled;
25
25
  }
26
26
  return { bgColor, bgColorHover, bgColorActive, iconColor, borderColor, bgFocusVisible: paletteColor.focusVisible };
@@ -1,16 +1,14 @@
1
1
  export declare const StyledMUIIconButton: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').IconButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
2
2
  ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
3
3
  }, "size" | "children" | "disabled" | "action" | "color" | "style" | "className" | "classes" | "sx" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge">, "value" | "size" | "children" | "ref" | "title" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "translate" | "className" | "classes" | "sx" | "form" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "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" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
4
- ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
4
+ ownerState?: (Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>) | undefined;
5
5
  }, {}, {}>;
6
- export declare const BadgeStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').BadgeOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
7
- ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
8
- }, "children" | "components" | "color" | "style" | "variant" | "className" | "classes" | "sx" | "slots" | "slotProps" | "componentsProps" | "badgeContent" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero">, "children" | "ref" | "title" | "id" | "components" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "slots" | "slotProps" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "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" | "componentsProps" | "badgeContent" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
9
- ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
6
+ export declare const BadgeStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Badge').BadgeProps, keyof import('../../Badge').BadgeProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
7
+ ownerState?: (Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>) | undefined;
10
8
  }, {}, {}>;
11
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> & {
12
- ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
10
+ ownerState?: (Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>) | undefined;
13
11
  }, {}, {}>;
14
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> & {
15
- ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
13
+ ownerState?: (Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>) | undefined;
16
14
  }, {}, {}>;
@@ -1,10 +1,11 @@
1
- import { IconButton, Badge } from "@mui/material";
1
+ import { IconButton } from "@mui/material";
2
2
  import { styled } from "@mui/material/styles";
3
3
  import { i as iconButtonStyles } from "../IconButton.styles.js";
4
4
  import { a as ICON_BUTTON_KEY_COMPONENT } from "../constants.js";
5
5
  import { I as IconButtonSlots } from "./IconButtonEnum.js";
6
6
  import { I as Icon } from "../../../Icon/Icon.js";
7
7
  import { S as Skeleton } from "../../Skeleton/Skeleton.js";
8
+ import { B as Badge } from "../../Badge/Badge.js";
8
9
  const StyledMUIIconButton = styled(IconButton, {
9
10
  name: ICON_BUTTON_KEY_COMPONENT,
10
11
  slot: IconButtonSlots.styledMUIIconButton
@@ -24,6 +25,6 @@ const IconStyled = styled(Icon, {
24
25
  export {
25
26
  BadgeStyled as B,
26
27
  IconStyled as I,
27
- StyledMUIIconButton as S,
28
- SkeletonStyled as a
28
+ SkeletonStyled as S,
29
+ StyledMUIIconButton as a
29
30
  };
@@ -1,18 +1,18 @@
1
+ import { ComponentPalletColor, Sizes } from '@m4l/styles';
2
+ import { IconButtonProps as MUIIconButtonProps } from '@mui/material';
1
3
  import { Theme } from '@mui/material/styles';
4
+ import { ReactNode } from 'react';
5
+ import { M4LOverridesStyleRules } from '../../../@types/augmentations';
2
6
  import { IconProps } from '../../Icon/types';
3
- import { IconButtonProps as MUIIconButtonProps } from '@mui/material';
4
- import { ComponentPalletColor, Sizes } from '@m4l/styles';
7
+ import { TooltipProps } from '../../mui_extended/Tooltip/types';
8
+ import { BadgeProps } from '../Badge';
5
9
  import { ICON_BUTTON_KEY_COMPONENT } from './constants';
6
10
  import { IconButtonSlots } from './slots';
7
- import { BadgeProps } from '../Badge';
8
- import { TooltipProps } from '../../mui_extended/Tooltip/types';
9
- import { ReactNode } from 'react';
10
- import { M4LOverridesStyleRules } from '../../../@types/augmentations';
11
11
  /** Tipo `IconButtonVariants` para definir sus variantes */
12
12
  export type IconButtonVariants = 'contained' | 'outline' | 'text';
13
13
  /** Tipo `IconButtonSize` para definir sus tamaños */
14
14
  export type IconButtonSize = 'small' | 'medium';
15
- export interface IconButtonProps extends Omit<IconProps, 'size' | 'color' | 'src' | 'selected' | 'enabledSelected' | 'onClick'>, Omit<MUIIconButtonProps, 'size' | 'color' | 'disabled' | 'src'>, Pick<BadgeProps, 'badgeContent'>, Pick<TooltipProps, 'placement'> {
15
+ export interface IconButtonProps extends Omit<IconProps, 'size' | 'color' | 'src' | 'selected' | 'enabledSelected' | 'onClick' | 'tooltipContent'>, Omit<MUIIconButtonProps, 'size' | 'color' | 'disabled' | 'src'>, Pick<TooltipProps, 'placement'> {
16
16
  /** Variante del componente, modifica la apariencia gráfica */
17
17
  variant?: IconButtonVariants;
18
18
  /**
@@ -24,7 +24,7 @@ export interface IconButtonProps extends Omit<IconProps, 'size' | 'color' | 'src
24
24
  */
25
25
  tooltip?: string;
26
26
  /** Opciones de color del componente */
27
- color?: Extract<ComponentPalletColor, 'primary' | 'default' | 'error'>;
27
+ color?: Extract<ComponentPalletColor, 'primary' | 'default' | 'error' | 'success' | 'warning' | 'info'>;
28
28
  /** Representa si el componente se encuentra deshabilitado */
29
29
  disabled?: boolean;
30
30
  /** 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. */
@@ -35,6 +35,8 @@ export interface IconButtonProps extends Omit<IconProps, 'size' | 'color' | 'src
35
35
  icon?: ReactNode;
36
36
  /** URL del icono */
37
37
  src?: string;
38
+ /** Propiedades para el componente badge */
39
+ badgeProps?: BadgeProps;
38
40
  }
39
41
  /** Tipo `IconButtonOwnerState` que define los valores que tendrá el ownerState */
40
42
  export type IconButtonOwnerState = Pick<IconButtonProps, 'size' | 'variant' | 'selected' | 'color'> & {
@@ -4,7 +4,7 @@ const loadingButtonStyles = {
4
4
  * Componente boton con variantes y paletas de colores.
5
5
  */
6
6
  root: ({ ownerState }) => ({
7
- ...ownerState.loading && {
7
+ ...ownerState?.loading && {
8
8
  "&>.MuiTypography-root": {
9
9
  visibility: "hidden"
10
10
  },
@@ -19,9 +19,9 @@ const loadingButtonStyles = {
19
19
  */
20
20
  skeletonLoadingButton: ({ theme, ownerState }) => ({
21
21
  width: "100%",
22
- background: theme.vars.palette.skeleton.transition,
22
+ background: theme.vars.palette.skeleton.default,
23
23
  // Styles for small size skeleton
24
- ...ownerState.size === "small" && {
24
+ ...ownerState?.size === "small" && {
25
25
  ...theme.generalSettings.isMobile ? {
26
26
  height: theme.vars.size.mobile.small.action,
27
27
  minHeight: theme.vars.size.mobile.small.action
@@ -31,7 +31,7 @@ const loadingButtonStyles = {
31
31
  }
32
32
  },
33
33
  // Styles for medium size skeleton
34
- ...ownerState.size === "medium" && {
34
+ ...ownerState?.size === "medium" && {
35
35
  ...theme.generalSettings.isMobile ? {
36
36
  height: theme.vars.size.mobile.medium.action,
37
37
  minHeight: theme.vars.size.mobile.medium.action
@@ -47,7 +47,7 @@ const loadingButtonStyles = {
47
47
  */
48
48
  circularProgress: ({ theme, ownerState }) => ({
49
49
  position: "absolute",
50
- color: ownerState.color === "default" ? theme.vars.palette.text.disabled : theme.vars.palette[ownerState.color || "default"].enabled
50
+ color: ownerState?.color === "default" ? theme.vars.palette.text.disabled : theme.vars.palette[ownerState?.color || "default"].enabled
51
51
  })
52
52
  };
53
53
  export {
@@ -16,11 +16,10 @@ const MenuDivider = (props) => {
16
16
  ...other
17
17
  } = props;
18
18
  const { currentSize } = useComponentSize(size);
19
- const normalizedSize = currentSize === "large" ? "medium" : currentSize;
20
19
  const ownerState = {
21
20
  MenuDividerVariant: variant,
22
21
  MenuDividerOrientation: orientation,
23
- MenuDividerSize: normalizedSize
22
+ MenuDividerSize: currentSize
24
23
  };
25
24
  return /* @__PURE__ */ jsx(
26
25
  MenuDividerRootStyled,
@@ -10,14 +10,14 @@ const menuDividerStyles = {
10
10
  position: "relative",
11
11
  ...getHeightSizeStyles(
12
12
  theme.generalSettings.isMobile,
13
- ownerState.MenuDividerSize || "medium",
13
+ ownerState?.MenuDividerSize || "medium",
14
14
  "action",
15
15
  (dynamicSize) => ({
16
- ...ownerState.MenuDividerOrientation === "horizontal" && {
16
+ ...ownerState?.MenuDividerOrientation === "horizontal" && {
17
17
  height: dynamicSize,
18
18
  width: "100%"
19
19
  },
20
- ...ownerState.MenuDividerOrientation === "vertical" && {
20
+ ...ownerState?.MenuDividerOrientation === "vertical" && {
21
21
  width: dynamicSize,
22
22
  height: "100%"
23
23
  }
@@ -29,13 +29,13 @@ const menuDividerStyles = {
29
29
  */
30
30
  divider: ({ theme, ownerState }) => ({
31
31
  position: "absolute",
32
- top: ownerState.MenuDividerOrientation === "horizontal" ? "50%" : "0",
33
- left: ownerState.MenuDividerOrientation === "vertical" ? "50%" : "0",
34
- transform: ownerState.MenuDividerOrientation === "horizontal" ? "translateY(-50%)" : "translateX(-50%)",
35
- width: ownerState.MenuDividerOrientation === "horizontal" ? "100%" : "1px",
36
- height: ownerState.MenuDividerOrientation === "vertical" ? "100%" : "1px",
32
+ top: ownerState?.MenuDividerOrientation === "horizontal" ? "50%" : "0",
33
+ left: ownerState?.MenuDividerOrientation === "vertical" ? "50%" : "0",
34
+ transform: ownerState?.MenuDividerOrientation === "horizontal" ? "translateY(-50%)" : "translateX(-50%)",
35
+ width: ownerState?.MenuDividerOrientation === "horizontal" ? "100%" : "1px",
36
+ height: ownerState?.MenuDividerOrientation === "vertical" ? "100%" : "1px",
37
37
  borderColor: theme.vars.palette.border.secondary,
38
- borderStyle: ownerState.MenuDividerVariant === "dash" ? "dashed" : "solid"
38
+ borderStyle: ownerState?.MenuDividerVariant === "dash" ? "dashed" : "solid"
39
39
  })
40
40
  };
41
41
  export {