@m4l/components 9.1.8 → 9.1.10

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 (456) hide show
  1. package/@types/types.d.ts +274 -136
  2. package/components/AccountPopover/classes/index.d.ts +1 -1
  3. package/components/AccountPopover/subcomponents/PopOver/index.d.ts +1 -0
  4. package/components/AccountPopover/subcomponents/PopOver/index.js +2 -2
  5. package/components/AppBar/AppBar.d.ts +15 -20
  6. package/components/AppBar/AppBar.js +29 -31
  7. package/components/AppBar/constants.d.ts +2 -0
  8. package/components/AppBar/constants.js +6 -0
  9. package/components/AppBar/slots/AppBarEnum.d.ts +8 -0
  10. package/components/AppBar/slots/AppBarEnum.js +12 -0
  11. package/components/AppBar/slots/AppBarSlots.d.ts +18 -0
  12. package/components/AppBar/slots/AppBarSlots.js +39 -0
  13. package/components/AppBar/styles.d.ts +2 -1
  14. package/components/AppBar/styles.js +97 -5
  15. package/components/AppBar/tests/utils.d.ts +1 -2
  16. package/components/AppBar/tests/utils.js +2 -3
  17. package/components/AppBar/types.d.ts +20 -12
  18. package/components/CommonActions/classes/index.d.ts +1 -1
  19. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
  20. package/components/CommonActions/components/ActionCancel/types.d.ts +2 -2
  21. package/components/CommonActions/components/ActionFormCancel/index.js +1 -1
  22. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
  23. package/components/CommonActions/components/ActionIntro/types.d.ts +2 -2
  24. package/components/CommonActions/components/ActionsContainer/ActionsContainerStyles.js +1 -0
  25. package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
  26. package/components/ControlIncrement/slots/ControltrolIncrementSlots.d.ts +2 -2
  27. package/components/DataGrid/dictionary.d.ts +4 -0
  28. package/components/DataGrid/dictionary.js +1 -1
  29. package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +2 -2
  30. package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.js +3 -3
  31. package/components/DragResizeWindow/hooks/useDimensionEffects.d.ts +1 -1
  32. package/components/DragResizeWindow/hooks/useDimensionEffects.js +7 -2
  33. package/components/DragResizeWindow/hooks/useDragOptions.d.ts +2 -2
  34. package/components/DragResizeWindow/hooks/useDragOptions.js +14 -8
  35. package/components/DragResizeWindow/hooks/useResizeOptions.d.ts +1 -1
  36. package/components/DragResizeWindow/hooks/useResizeOptions.js +37 -26
  37. package/components/DragResizeWindow/slots/DragResizeWindowSlots.d.ts +2 -2
  38. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +12 -12
  39. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +12 -12
  40. package/components/GridLayout/classes/index.d.ts +1 -1
  41. package/components/Icon/Icon.d.ts +2 -2
  42. package/components/Icon/Icon.js +12 -4
  43. package/components/Icon/slots/IconSlots.d.ts +2 -2
  44. package/components/InputNumberSpinner/slots/InputNumberSpinnerSlots.d.ts +1 -1
  45. package/components/Label/slots/LabelSlots.d.ts +1 -1
  46. package/components/LanguagePopover/LanguagePopover.d.ts +1 -0
  47. package/components/LanguagePopover/LanguagePopover.js +2 -2
  48. package/components/MFIsolationApp/MFIsolationApp.js +16 -15
  49. package/components/ModalDialog/ModalDialog.d.ts +57 -0
  50. package/components/ModalDialog/ModalDialog.js +94 -0
  51. package/components/ModalDialog/ModalDialog.styles.d.ts +2 -0
  52. package/components/ModalDialog/ModalDialog.styles.js +44 -0
  53. package/components/ModalDialog/constants.d.ts +1 -0
  54. package/components/ModalDialog/constants.js +4 -0
  55. package/components/{modal/ModalDialog → ModalDialog}/dictionary.js +1 -1
  56. package/components/ModalDialog/index.d.ts +8 -0
  57. package/components/ModalDialog/index.js +1 -0
  58. package/components/ModalDialog/slots/ModalDialogEnum.d.ts +7 -0
  59. package/components/ModalDialog/slots/ModalDialogEnum.js +11 -0
  60. package/components/ModalDialog/slots/ModalDialogSlots.d.ts +9 -0
  61. package/components/ModalDialog/slots/ModalDialogSlots.js +34 -0
  62. package/components/ModalDialog/slots/index.d.ts +2 -0
  63. package/components/ModalDialog/slots/index.js +1 -0
  64. package/components/ModalDialog/subcomponents/ResizeHandle/index.js +4 -0
  65. package/components/ModalDialog/types.d.ts +16 -0
  66. package/components/ModalDialog/types.js +1 -0
  67. package/components/NavLink/NavLink.d.ts +2 -2
  68. package/components/NavLink/NavLink.js +4 -4
  69. package/components/ObjectLogs/components/DetailFormatter/index.js +1 -1
  70. package/components/PaperForm/PaperForm.d.ts +9 -1
  71. package/components/PaperForm/PaperForm.js +10 -10
  72. package/components/PaperForm/components/Header.d.ts +8 -1
  73. package/components/PaperForm/components/Header.js +20 -12
  74. package/components/PaperForm/constants.d.ts +1 -0
  75. package/components/PaperForm/constants.js +4 -0
  76. package/components/PaperForm/slots/PaperFormEnum.d.ts +7 -0
  77. package/components/PaperForm/slots/PaperFormEnum.js +11 -0
  78. package/components/PaperForm/slots/PaperFormSlots.d.ts +15 -0
  79. package/components/PaperForm/slots/PaperFormSlots.js +33 -0
  80. package/components/PaperForm/styles.d.ts +2 -6
  81. package/components/PaperForm/styles.js +97 -49
  82. package/components/PaperForm/types.d.ts +28 -4
  83. package/components/SideBar/SideBar.d.ts +25 -23
  84. package/components/SideBar/SideBar.js +36 -64
  85. package/components/SideBar/constants.d.ts +6 -2
  86. package/components/SideBar/constants.js +10 -4
  87. package/components/SideBar/context/sideBarContext/index.d.ts +5 -0
  88. package/components/SideBar/context/sideBarContext/index.js +18 -30
  89. package/components/SideBar/context/sideBarContext/types.d.ts +9 -5
  90. package/components/SideBar/dictionary.d.ts +1 -0
  91. package/components/SideBar/helpers/getDataToSkeleton/index.d.ts +15 -0
  92. package/components/SideBar/helpers/getDataToSkeleton/index.js +14 -0
  93. package/components/SideBar/helpers/getMenuDataWithState/index.d.ts +13 -0
  94. package/components/SideBar/helpers/getMenuDataWithState/index.js +27 -0
  95. package/components/SideBar/helpers/getMenuDataWithState/types.d.ts +6 -0
  96. package/components/SideBar/slots/SideBarEnum.d.ts +29 -0
  97. package/components/SideBar/slots/SideBarEnum.js +45 -0
  98. package/components/SideBar/slots/SideBarSlots.d.ts +45 -0
  99. package/components/SideBar/slots/SideBarSlots.js +80 -0
  100. package/components/SideBar/styles.d.ts +2 -15
  101. package/components/SideBar/styles.js +17 -19
  102. package/components/SideBar/subcomponents/ContentComponent/index.d.ts +10 -0
  103. package/components/SideBar/subcomponents/ContentComponent/index.js +27 -0
  104. package/components/SideBar/subcomponents/ContentComponent/style.d.ts +2 -0
  105. package/components/SideBar/subcomponents/ContentComponent/style.js +18 -0
  106. package/components/SideBar/subcomponents/ContentGroups/index.d.ts +4 -0
  107. package/components/SideBar/subcomponents/ContentGroups/index.js +33 -41
  108. package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +2 -3
  109. package/components/SideBar/subcomponents/ContentGroups/styles.js +70 -26
  110. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.d.ts +12 -0
  111. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.js +60 -0
  112. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.d.ts +2 -0
  113. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +44 -0
  114. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/subcomponents/ArrowIcon/index.d.ts +9 -0
  115. package/components/SideBar/subcomponents/ContentGroups/subcomponents/{ItemListRoot → ContainerMenuItemsMain}/subcomponents/ArrowIcon/index.js +8 -8
  116. package/components/SideBar/subcomponents/ContentGroups/subcomponents/{ItemListRoot → ContainerMenuItemsMain}/subcomponents/ArrowIcon/types.d.ts +1 -0
  117. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/types.d.ts +5 -0
  118. package/components/SideBar/subcomponents/FooterSidebar/index.d.ts +13 -0
  119. package/components/SideBar/subcomponents/FooterSidebar/index.js +33 -0
  120. package/components/SideBar/subcomponents/FooterSidebar/styles.d.ts +2 -0
  121. package/components/SideBar/subcomponents/FooterSidebar/styles.js +20 -0
  122. package/components/SideBar/subcomponents/FooterSidebar/types.d.ts +5 -0
  123. package/components/SideBar/subcomponents/HeaderSidebar/index.d.ts +10 -0
  124. package/components/SideBar/subcomponents/HeaderSidebar/index.js +25 -0
  125. package/components/SideBar/subcomponents/HeaderSidebar/styles.d.ts +2 -0
  126. package/components/SideBar/subcomponents/HeaderSidebar/styles.js +32 -0
  127. package/components/SideBar/subcomponents/HeaderSidebar/types.d.ts +5 -0
  128. package/components/SideBar/subcomponents/SideBarDesktop/index.d.ts +8 -0
  129. package/components/SideBar/subcomponents/SideBarDesktop/index.js +80 -0
  130. package/components/SideBar/subcomponents/SideBarDesktop/styles.d.ts +2 -0
  131. package/components/SideBar/subcomponents/SideBarDesktop/styles.js +73 -0
  132. package/components/SideBar/subcomponents/SideBarMobile/index.d.ts +8 -0
  133. package/components/SideBar/subcomponents/SideBarMobile/index.js +36 -0
  134. package/components/SideBar/subcomponents/SideBarMobile/styles.d.ts +2 -0
  135. package/components/SideBar/subcomponents/SideBarMobile/styles.js +15 -0
  136. package/components/SideBar/subcomponents/SideBarMobile/subcomponents/Drawer.d.ts +9 -0
  137. package/components/SideBar/tests/SideBar.integration.test.d.ts +0 -0
  138. package/components/SideBar/tests/SideBar.test.d.ts +0 -0
  139. package/components/SideBar/tests/utils.d.ts +34 -2
  140. package/components/SideBar/types.d.ts +34 -37
  141. package/components/ToastContainer/slots/toastContainerSlots.d.ts +4 -4
  142. package/components/WindowBase/WindowBase.d.ts +11 -0
  143. package/components/WindowBase/WindowBase.js +63 -0
  144. package/components/WindowBase/WindowBase.styles.d.ts +9 -0
  145. package/components/WindowBase/WindowBase.styles.js +204 -0
  146. package/components/WindowBase/constants.d.ts +1 -0
  147. package/components/WindowBase/constants.js +4 -0
  148. package/components/WindowBase/icons.d.ts +6 -0
  149. package/components/WindowBase/icons.js +9 -0
  150. package/components/WindowBase/index.d.ts +9 -0
  151. package/components/WindowBase/index.js +1 -0
  152. package/components/WindowBase/slots/WindowBaseEnum.d.ts +16 -0
  153. package/components/WindowBase/slots/WindowBaseEnum.js +20 -0
  154. package/components/WindowBase/slots/WindowBaseSlots.d.ts +95 -0
  155. package/components/WindowBase/slots/WindowBaseSlots.js +81 -0
  156. package/components/WindowBase/slots/index.d.ts +2 -0
  157. package/components/WindowBase/slots/index.js +1 -0
  158. package/components/WindowBase/subcomponents/Header/HeaderWindowBase.d.ts +46 -0
  159. package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +78 -0
  160. package/components/WindowBase/subcomponents/Header/index.d.ts +2 -0
  161. package/components/WindowBase/subcomponents/Header/index.js +1 -0
  162. package/components/WindowBase/subcomponents/Header/types.d.ts +90 -0
  163. package/components/WindowBase/subcomponents/Header/types.js +1 -0
  164. package/components/WindowBase/types.d.ts +136 -0
  165. package/components/WindowBase/types.js +1 -0
  166. package/components/WindowConfirm/WindowConfirm.d.ts +28 -0
  167. package/components/WindowConfirm/WindowConfirm.js +117 -0
  168. package/components/WindowConfirm/WindowConfirm.styles.d.ts +2 -0
  169. package/components/WindowConfirm/WindowConfirm.styles.js +202 -0
  170. package/components/WindowConfirm/constants.d.ts +1 -0
  171. package/components/WindowConfirm/constants.js +4 -0
  172. package/components/WindowConfirm/index.d.ts +9 -0
  173. package/components/WindowConfirm/slots/WindowConfirmEnum.d.ts +15 -0
  174. package/components/WindowConfirm/slots/WindowConfirmEnum.js +19 -0
  175. package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +39 -0
  176. package/components/WindowConfirm/slots/WindowConfirmSlots.js +77 -0
  177. package/components/WindowConfirm/slots/index.d.ts +2 -0
  178. package/components/WindowConfirm/slots/index.js +1 -0
  179. package/components/WindowConfirm/subcomponents/MessageIllustration/MessageIllustration.d.ts +10 -0
  180. package/components/WindowConfirm/subcomponents/MessageIllustration/MessageIllustration.js +47 -0
  181. package/components/WindowConfirm/subcomponents/MessageIllustration/index.d.ts +2 -0
  182. package/components/WindowConfirm/subcomponents/MessageIllustration/index.js +1 -0
  183. package/components/WindowConfirm/subcomponents/MessageIllustration/types.d.ts +2 -0
  184. package/components/WindowConfirm/subcomponents/MessageIllustration/types.js +1 -0
  185. package/components/WindowConfirm/types.d.ts +46 -0
  186. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  187. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index.d.ts +4 -0
  188. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index.js +1 -1
  189. package/components/commercial/HamburgerMenu/HamburgerMenu.d.ts +6 -0
  190. package/components/commercial/HamburgerMenu/HamburgerMenu.js +3 -7
  191. package/components/gclick/MyDevice/slots/MyDeviceSlots.d.ts +2 -2
  192. package/components/gclick/MyDeviceStatus/slots/MyDeviceStatusSlots.d.ts +2 -2
  193. package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +4 -0
  194. package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.js +5 -2
  195. package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeText/index.js +6 -3
  196. package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
  197. package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnerSlots.d.ts +1 -1
  198. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +4 -4
  199. package/components/index.d.ts +1 -0
  200. package/components/maps/components/Map/popups/MapPopupMyGps/slots/ MapPopupMyGpsSlots.d.ts +3 -3
  201. package/components/maps/components/Map/slots/MapSlots.d.ts +3 -3
  202. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +1 -1
  203. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +4 -0
  204. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.js +2 -2
  205. package/components/modal/classes/index.d.ts +9 -5
  206. package/components/modal/classes/index.js +4 -4
  207. package/components/modal/classes/types.d.ts +1 -0
  208. package/components/modal/index.d.ts +5 -5
  209. package/components/mui_extended/Accordion/Accordion.d.ts +4 -4
  210. package/components/mui_extended/Accordion/Accordion.js +48 -71
  211. package/components/mui_extended/Accordion/constants.d.ts +2 -1
  212. package/components/mui_extended/Accordion/constants.js +4 -2
  213. package/components/mui_extended/Accordion/slots/AccordionEnum.d.ts +8 -0
  214. package/components/mui_extended/Accordion/slots/AccordionEnum.js +12 -0
  215. package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +23 -0
  216. package/components/mui_extended/Accordion/slots/AccordionSlots.js +39 -0
  217. package/components/mui_extended/Accordion/styles.d.ts +2 -3
  218. package/components/mui_extended/Accordion/styles.js +109 -23
  219. package/components/mui_extended/Accordion/tests/Accordion.test.d.ts +1 -0
  220. package/components/mui_extended/Accordion/types.d.ts +12 -7
  221. package/components/mui_extended/Autocomplete/Autocomplete.d.ts +2 -0
  222. package/components/mui_extended/Autocomplete/AutocompleteStyles.d.ts +2 -0
  223. package/components/mui_extended/Autocomplete/constants.d.ts +9 -0
  224. package/components/mui_extended/Autocomplete/dictionary.d.ts +3 -0
  225. package/components/mui_extended/Autocomplete/index.d.ts +1 -0
  226. package/components/mui_extended/Autocomplete/renderOptions/index.d.ts +16 -0
  227. package/components/mui_extended/Autocomplete/slots /AutocompleteEnum.d.ts +14 -0
  228. package/components/mui_extended/Autocomplete/slots /AutocompleteSlots.d.ts +38 -0
  229. package/components/mui_extended/Autocomplete/slots /index.d.ts +2 -0
  230. package/components/mui_extended/Autocomplete/types.d.ts +67 -0
  231. package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
  232. package/components/mui_extended/Button/ButtonStyles.js +1 -0
  233. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
  234. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +2 -2
  235. package/components/mui_extended/Chip/Chip.d.ts +13 -0
  236. package/components/mui_extended/Chip/ChipStyles.d.ts +2 -0
  237. package/components/mui_extended/Chip/constants.d.ts +8 -0
  238. package/components/mui_extended/Chip/index copy.d.ts +2 -0
  239. package/components/mui_extended/Chip/index.d.ts +0 -0
  240. package/components/mui_extended/Chip/slots/ChipEnum.d.ts +7 -0
  241. package/components/mui_extended/Chip/slots/ChipSlots.d.ts +16 -0
  242. package/components/mui_extended/Chip/slots/index.d.ts +3 -0
  243. package/components/mui_extended/Chip/types.d.ts +49 -0
  244. package/components/mui_extended/CircularProgress/CircularProgress.d.ts +5 -0
  245. package/components/mui_extended/CircularProgress/CircularProgress.js +30 -0
  246. package/components/mui_extended/CircularProgress/CircularProgress.styles.d.ts +5 -0
  247. package/components/mui_extended/CircularProgress/CircularProgress.styles.js +57 -0
  248. package/components/mui_extended/CircularProgress/CircularProgress.test.d.ts +1 -0
  249. package/components/mui_extended/CircularProgress/constants.d.ts +13 -0
  250. package/components/mui_extended/CircularProgress/constants.js +6 -0
  251. package/components/mui_extended/CircularProgress/index.d.ts +1 -2
  252. package/components/mui_extended/CircularProgress/index.js +1 -8
  253. package/components/mui_extended/CircularProgress/slots/CircularProgressEnum.d.ts +4 -0
  254. package/components/mui_extended/CircularProgress/slots/CircularProgressEnum.js +8 -0
  255. package/components/mui_extended/CircularProgress/slots/CircularProgressSlots.d.ts +12 -0
  256. package/components/mui_extended/CircularProgress/slots/CircularProgressSlots.js +17 -0
  257. package/components/mui_extended/CircularProgress/types.d.ts +48 -0
  258. package/components/mui_extended/Dialog/Dialog.d.ts +54 -0
  259. package/components/mui_extended/Dialog/Dialog.js +38 -0
  260. package/components/mui_extended/Dialog/Dialog.styles.d.ts +2 -0
  261. package/components/mui_extended/Dialog/Dialog.styles.js +26 -0
  262. package/components/mui_extended/Dialog/constants.d.ts +1 -0
  263. package/components/mui_extended/Dialog/constants.js +4 -0
  264. package/components/mui_extended/Dialog/dictionary.d.ts +3 -0
  265. package/components/mui_extended/Dialog/dictionary.js +7 -0
  266. package/components/mui_extended/Dialog/index.d.ts +7 -0
  267. package/components/mui_extended/Dialog/index.js +1 -0
  268. package/components/mui_extended/Dialog/slots/DialogEnum.d.ts +5 -0
  269. package/components/mui_extended/Dialog/slots/DialogEnum.js +9 -0
  270. package/components/mui_extended/Dialog/slots/DialogSlots.d.ts +9 -0
  271. package/components/mui_extended/Dialog/slots/DialogSlots.js +20 -0
  272. package/components/mui_extended/Dialog/slots/index.d.ts +2 -0
  273. package/components/mui_extended/Dialog/slots/index.js +1 -0
  274. package/components/mui_extended/Dialog/tests/Dialog.test.d.ts +1 -0
  275. package/components/mui_extended/Dialog/types.d.ts +60 -0
  276. package/components/mui_extended/Dialog/types.js +1 -0
  277. package/components/mui_extended/IconButton/IconButton.js +79 -83
  278. package/components/mui_extended/IconButton/IconButton.styles.js +104 -189
  279. package/components/mui_extended/IconButton/slots/IconButtonEnum.d.ts +3 -1
  280. package/components/mui_extended/IconButton/slots/IconButtonEnum.js +2 -0
  281. package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +8 -2
  282. package/components/mui_extended/IconButton/slots/IconButtonSlots.js +14 -3
  283. package/components/mui_extended/IconButton/types.d.ts +25 -3
  284. package/components/mui_extended/MenuActions/MenuActions.js +7 -4
  285. package/components/mui_extended/MenuActions/MenuActions.styles.js +11 -2
  286. package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +1 -0
  287. package/components/mui_extended/MenuActions/slots/MenuActionsEnum.js +1 -0
  288. package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +16 -5
  289. package/components/mui_extended/MenuActions/slots/MenuActionsSlots.js +8 -2
  290. package/components/mui_extended/MenuActions/types.d.ts +38 -1
  291. package/components/mui_extended/MenuItem/MenuItem.d.ts +2 -2
  292. package/components/mui_extended/MenuItem/MenuItem.js +25 -17
  293. package/components/mui_extended/MenuItem/MenuItem.styles.js +18 -29
  294. package/components/mui_extended/MenuItem/slots/MenuItemEnum.d.ts +3 -3
  295. package/components/mui_extended/MenuItem/slots/MenuItemEnum.js +3 -3
  296. package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +5 -5
  297. package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +12 -12
  298. package/components/mui_extended/MenuItem/types.d.ts +3 -2
  299. package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
  300. package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
  301. package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
  302. package/components/mui_extended/Tabs/styles.d.ts +1 -1
  303. package/components/mui_extended/TextField/TextField.d.ts +2 -2
  304. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +3 -3
  305. package/components/mui_extended/Tooltip/slots/TooltipSlots.d.ts +1 -1
  306. package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
  307. package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +6 -6
  308. package/contexts/ModalContext/index.d.ts +1 -1
  309. package/contexts/ModalContext/index.js +4 -8
  310. package/contexts/ModalContext/types.d.ts +1 -1
  311. package/hooks/useFormAddEdit/index.d.ts +4 -0
  312. package/hooks/useFormAddEdit/index.js +2 -2
  313. package/index.js +114 -89
  314. package/package.json +1 -1
  315. package/storybook/components/ModalDialog/ModalDialog.stories.d.ts +7 -0
  316. package/storybook/components/ModalDialog/subcomponent/WithExtendedContainer.d.ts +37 -0
  317. package/storybook/components/SideBar/SideBar.stories.d.ts +24 -0
  318. package/storybook/components/SideBar/data/menuData.d.ts +2 -0
  319. package/storybook/components/SideBar/subcomponents/SibarDecorator.d.ts +3 -0
  320. package/storybook/components/WindowBase/windowBase.stories.d.ts +9 -0
  321. package/storybook/components/WindowConfirm/windowConfirm.stories.d.ts +8 -0
  322. package/storybook/components/appBar/AppBar.stories.d.ts +11 -0
  323. package/storybook/components/extended/mui/Autocomplete/AutoComple.stories.d.ts +17 -0
  324. package/storybook/components/extended/mui/Chip/Chip.stories.d.ts +29 -0
  325. package/storybook/components/extended/mui/CircularProgress/CircularProgress.default.stories.d.ts +14 -0
  326. package/storybook/components/extended/mui/CircularProgress/CircularProgress.sizes.stories.d.ts +18 -0
  327. package/storybook/components/extended/mui/Dialog/Dialog.stories.d.ts +7 -0
  328. package/storybook/components/extended/mui/Dialog/subcomponents/ContentExample.d.ts +12 -0
  329. package/storybook/components/extended/mui/Dialog/subcomponents/WithExtendedContainer.d.ts +38 -0
  330. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/DefaultIconButton/IconButton.containedDefault.stories.d.ts +1 -1
  331. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/DefaultIconButton/IconButton.textDefault.stories.d.ts +1 -1
  332. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/DefaultIconButton/iconButton.outlinedDefault.stories.d.ts +1 -1
  333. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/DisableIconButton/IconButton.containedDisable.stories.d.ts +1 -1
  334. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/DisableIconButton/IconButton.textDisable.stories.d.ts +1 -1
  335. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/DisableIconButton/iconButton.outlinedDisable.stories.d.ts +1 -1
  336. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/IconButton.stories.d.ts +9 -1
  337. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/PrimaryIconButton/IconButton.containedPrimary.stories.d.ts +1 -1
  338. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/PrimaryIconButton/IconButton.textPrimary.stories.d.ts +1 -1
  339. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/PrimaryIconButton/iconButton.outlinedPrimary.stories.d.ts +1 -1
  340. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/ErrorIconButton/IconButton.containedError.stories.d.ts +1 -1
  341. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/ErrorIconButton/IconButton.textError.stories.d.ts +1 -1
  342. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/ErrorIconButton/iconButton.outlinedError.stories.d.ts +1 -1
  343. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/InfoIconButton/IconButton.containedInfo.stories.d.ts +1 -1
  344. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/InfoIconButton/IconButton.textInfo.stories.d.ts +1 -1
  345. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/InfoIconButton/iconButton.outlinedInfo.stories.d.ts +1 -1
  346. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/SuccesIconButton/IconButton.containedSuccess.stories.d.ts +1 -1
  347. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/SuccesIconButton/IconButton.textSucces.stories.d.ts +1 -1
  348. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/SuccesIconButton/iconButton.outlinedSucces.stories.d.ts +1 -1
  349. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/WarningIconButton/IconButton.containedWarning.stories.d.ts +1 -1
  350. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/WarningIconButton/IconButton.textWarning.stories.d.ts +1 -1
  351. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/WarningIconButton/iconButton.outlinedWarning.stories.d.ts +1 -1
  352. package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SizesIconButton/IconButtonSizeMedium.stories.d.ts +1 -1
  353. package/{components/mui_extended/MenuActions/stories → storybook/components/extended/mui/MenuActions}/MenuActions.default.stories.d.ts +5 -1
  354. package/{components/mui_extended/MenuActions/stories → storybook/components/extended/mui/MenuActions}/MenuActions.othersProps.stories.d.ts +1 -1
  355. package/storybook/components/mui_extended/Accordion/Accordion.stories.d.ts +25 -0
  356. package/storybook/components/paperForm/PaperForm.stories.d.ts +18 -0
  357. package/utils/getComponentSlotRoot.d.ts +13 -0
  358. package/utils/getComponentSlotRoot.js +13 -0
  359. package/components/AppBar/classes/constants.d.ts +0 -1
  360. package/components/AppBar/classes/constants.js +0 -4
  361. package/components/AppBar/classes/index.d.ts +0 -27
  362. package/components/AppBar/classes/index.js +0 -33
  363. package/components/AppBar/classes/types.d.ts +0 -11
  364. package/components/AppBar/tests/constants.js +0 -4
  365. package/components/AppBar/tests/index.test.d.ts +0 -5
  366. package/components/CommonActions/tests/index.test.d.ts +0 -7
  367. package/components/PaperForm/classes/constants.d.ts +0 -1
  368. package/components/PaperForm/classes/constants.js +0 -4
  369. package/components/PaperForm/classes/index.d.ts +0 -15
  370. package/components/PaperForm/classes/index.js +0 -33
  371. package/components/PaperForm/classes/types.d.ts +0 -11
  372. package/components/SideBar/classes/constants.d.ts +0 -1
  373. package/components/SideBar/classes/constants.js +0 -4
  374. package/components/SideBar/classes/index.d.ts +0 -47
  375. package/components/SideBar/classes/index.js +0 -131
  376. package/components/SideBar/classes/types.d.ts +0 -42
  377. package/components/SideBar/subcomponents/ContentDesktop/index.d.ts +0 -4
  378. package/components/SideBar/subcomponents/ContentDesktop/index.js +0 -12
  379. package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/index.d.ts +0 -13
  380. package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/index.js +0 -29
  381. package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/styles.d.ts +0 -2
  382. package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/styles.js +0 -10
  383. package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/types.d.ts +0 -5
  384. package/components/SideBar/subcomponents/ContentDesktop/subcomponents/ContentComponent/index.d.ts +0 -4
  385. package/components/SideBar/subcomponents/ContentDesktop/subcomponents/ContentComponent/index.js +0 -74
  386. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/index.d.ts +0 -8
  387. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/index.js +0 -95
  388. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.d.ts +0 -1
  389. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.js +0 -9
  390. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/index.d.ts +0 -5
  391. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/styles.d.ts +0 -1
  392. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/styles.js +0 -9
  393. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/index.d.ts +0 -5
  394. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/index.js +0 -44
  395. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/styles.d.ts +0 -8
  396. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/styles.js +0 -29
  397. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/index.d.ts +0 -5
  398. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/index.js +0 -44
  399. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/type.d.ts +0 -8
  400. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/type.d.ts +0 -17
  401. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/index.d.ts +0 -5
  402. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/index.js +0 -78
  403. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/styles.d.ts +0 -1
  404. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/styles.js +0 -8
  405. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/index.d.ts +0 -5
  406. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/index.js +0 -20
  407. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/styles.d.ts +0 -7
  408. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/index.d.ts +0 -5
  409. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/index.js +0 -57
  410. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +0 -5
  411. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.js +0 -39
  412. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/types.d.ts +0 -8
  413. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/types.d.ts +0 -16
  414. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/type.d.ts +0 -11
  415. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/types.d.ts +0 -12
  416. package/components/SideBar/subcomponents/ContentGroups/type.d.ts +0 -5
  417. package/components/SideBar/subcomponents/ContentGroups/utils/index.d.ts +0 -2
  418. package/components/SideBar/subcomponents/ContentMobile/index.d.ts +0 -4
  419. package/components/SideBar/subcomponents/ContentMobile/index.js +0 -81
  420. package/components/SideBar/subcomponents/ContentMobile/styles.d.ts +0 -2
  421. package/components/SideBar/subcomponents/ContentMobile/styles.js +0 -18
  422. package/components/SideBar/subcomponents/ContentMobile/subcomponents/Drawer.d.ts +0 -5
  423. package/components/modal/ModalDialog/index.d.ts +0 -8
  424. package/components/modal/ModalDialog/index.js +0 -60
  425. package/components/modal/ModalDialog/styles.d.ts +0 -6
  426. package/components/modal/ModalDialog/types.d.ts +0 -7
  427. package/components/modal/WindowBase/index.d.ts +0 -7
  428. package/components/modal/WindowBase/index.js +0 -20
  429. package/components/modal/WindowBase/styles.d.ts +0 -1
  430. package/components/modal/WindowBase/subcomponents/Header/index.d.ts +0 -5
  431. package/components/modal/WindowBase/subcomponents/Header/index.js +0 -29
  432. package/components/modal/WindowBase/subcomponents/Header/styles.d.ts +0 -1
  433. package/components/modal/WindowBase/subcomponents/Header/types.d.ts +0 -5
  434. package/components/modal/WindowBase/types.d.ts +0 -11
  435. package/components/modal/WindowConfirm/index.d.ts +0 -16
  436. package/components/modal/WindowConfirm/index.js +0 -43
  437. package/components/modal/WindowConfirm/styles.d.ts +0 -1
  438. package/components/modal/WindowConfirm/subcomponents/MessageIlustration/index.d.ts +0 -5
  439. package/components/modal/WindowConfirm/subcomponents/MessageIlustration/index.js +0 -35
  440. package/components/modal/WindowConfirm/subcomponents/MessageIlustration/types.d.ts +0 -6
  441. package/components/modal/WindowConfirm/types.d.ts +0 -44
  442. package/components/mui_extended/Accordion/classes/constants.d.ts +0 -1
  443. package/components/mui_extended/Accordion/classes/constants.js +0 -4
  444. package/components/mui_extended/Accordion/classes/index.d.ts +0 -13
  445. package/components/mui_extended/Accordion/classes/index.js +0 -31
  446. package/components/mui_extended/Accordion/classes/types.d.ts +0 -10
  447. package/components/mui_extended/Accordion/tests/constants.d.ts +0 -1
  448. package/components/mui_extended/Accordion/tests/utils.d.ts +0 -2
  449. /package/components/{modal/ModalDialog → ModalDialog}/dictionary.d.ts +0 -0
  450. /package/components/{modal/ModalDialog → ModalDialog}/subcomponents/ResizeHandle/index.d.ts +0 -0
  451. /package/components/{hook-form/RHFTextFieldPassword/tests/index.test.d.ts → ModalDialog/tests/ModalDialog.test.d.ts} +0 -0
  452. /package/components/SideBar/subcomponents/{ContentMobile → SideBarMobile}/subcomponents/Drawer.js +0 -0
  453. /package/components/SideBar/subcomponents/{ContentMobile → SideBarMobile}/subcomponents/types.d.ts +0 -0
  454. /package/components/{modal/WindowConfirm → WindowConfirm}/dictionary.d.ts +0 -0
  455. /package/components/{modal/WindowConfirm → WindowConfirm}/dictionary.js +0 -0
  456. /package/components/{mui_extended/Accordion/tests/index.test.d.ts → WindowConfirm/test/WindowConfirm.test.d.ts} +0 -0
@@ -23,11 +23,12 @@ const iconButtonStyles = {
23
23
  * @updatedUser Bruce Escobar - automatic
24
24
  */
25
25
  styledMUIIconButton: ({ ownerState, theme }) => ({
26
+ overflow: "hidden",
26
27
  cursor: ownerState.disabled ? "not-allowed" : "pointer",
27
28
  color: theme.vars.palette.text.primary,
28
29
  borderRadius: theme.size.borderRadius.r1,
29
30
  pointerEvents: ownerState.disabled ? "none" : "auto",
30
- display: "flex",
31
+ display: ownerState.isSkeleton ? "none" : "flex",
31
32
  justifyContent: "center",
32
33
  // Override de estilos de Material UI
33
34
  padding: 0,
@@ -40,15 +41,6 @@ const iconButtonStyles = {
40
41
  } : {
41
42
  width: theme.vars.size.desktop.small.action,
42
43
  height: theme.vars.size.desktop.small.action
43
- },
44
- "& .icon": {
45
- ...theme.generalSettings.isMobile ? {
46
- width: theme.vars.size.mobile.small.base,
47
- height: theme.vars.size.mobile.small.base
48
- } : {
49
- width: theme.vars.size.desktop.small.base,
50
- height: theme.vars.size.desktop.small.base
51
- }
52
44
  }
53
45
  },
54
46
  // condiciones de tamaño Medium
@@ -59,222 +51,110 @@ const iconButtonStyles = {
59
51
  } : {
60
52
  width: theme.vars.size.desktop.medium.action,
61
53
  height: theme.vars.size.desktop.medium.action
62
- },
63
- "& .icon": {
64
- ...theme.generalSettings.isMobile ? {
65
- width: theme.vars.size.mobile.medium.action,
66
- height: theme.vars.size.mobile.medium.action
67
- } : {
68
- width: theme.vars.size.desktop.medium.base,
69
- height: theme.vars.size.desktop.medium.base
70
- }
71
54
  }
72
55
  },
73
- // Variantes contained
74
- ...ownerState.variant === "contained" && ownerState.disabled !== true && {
75
- backgroundColor: ownerState.paletteColor?.main,
76
- display: "flex",
77
- color: "white",
78
- '& [class*="M4LIcon-icon"]': {
79
- display: "flex",
80
- justifyContent: "center",
81
- backgroundColor: ownerState.paletteColor?.contrastText
82
- },
83
- //Estado Hover
84
- "&:hover": {
85
- background: ownerState.paletteColor?.hover,
56
+ // Variante text en Finalizado
57
+ ...ownerState.variant === "text" && {
58
+ ...ownerState.selected === true ? {
59
+ backgroundColor: ownerState.paletteColor?.activeOpacity,
86
60
  '& [class*="M4LIcon-icon"]': {
87
- display: "flex",
88
- justifyContent: "center",
89
- ...ownerState.componentPaletteColor !== "default" && {
90
- backgroundColor: ownerState.paletteColor?.contrastText
91
- //backgroundColor: 'white',
92
- }
61
+ backgroundColor: ownerState.componentPaletteColor === "default" ? ownerState.paletteColor?.contrastText : ownerState.paletteColor?.active
93
62
  }
94
- },
95
- //Estado Active
96
- "&:active": {
97
- background: ownerState.paletteColor?.active,
98
- '& [class*="M4LIcon-icon"]': {
99
- display: "flex",
100
- justifyContent: "center",
101
- ...ownerState.componentPaletteColor !== "default" && {
102
- backgroundColor: ownerState.paletteColor?.contrastText
63
+ } : {
64
+ "&:hover": {
65
+ backgroundColor: ownerState.paletteColor?.hoverOpacity
66
+ },
67
+ //FocusActive
68
+ "&:active": {
69
+ backgroundColor: ownerState.paletteColor?.activeOpacity,
70
+ '& [class*="M4LIcon-icon"]': {
71
+ backgroundColor: ownerState.componentPaletteColor === "default" ? ownerState.paletteColor?.contrastText : ownerState.paletteColor?.active
103
72
  }
104
73
  }
105
74
  },
106
- //FocusVisible
107
- "&:focus-visible": {
108
- background: ownerState.paletteColor?.main,
109
- outline: `1px solid ${ownerState.paletteColor?.focusVisible}`,
110
- outlineOffset: 1,
75
+ ":focus-visible": {
76
+ background: ownerState.paletteColor?.activeOpacity,
111
77
  '& [class*="M4LIcon-icon"]': {
112
- display: "flex",
113
- justifyContent: "center",
114
- ...ownerState.componentPaletteColor !== "default" && {
115
- backgroundColor: ownerState.paletteColor?.contrastText
116
- }
78
+ backgroundColor: ownerState.componentPaletteColor === "default" ? ownerState.paletteColor?.contrastText : ownerState.paletteColor?.active
117
79
  }
80
+ },
81
+ // Variantes text en disabled
82
+ ...ownerState.disabled === true && {
83
+ color: theme.vars.palette.action.disabled
118
84
  }
119
85
  },
120
- // Variantes contained en disabled
121
- ...ownerState.variant === "contained" && ownerState.disabled === true && {
122
- background: `${theme.vars.palette.action.disabledBackground} !important`,
123
- color: theme.vars.palette.action.disabled
124
- },
125
- // Variante outline
126
- ...ownerState.variant === "outline" && ownerState.disabled !== true && {
127
- display: "flex",
128
- justifyContent: "center",
129
- alignItems: "center",
86
+ // Variante outline en Finalizada
87
+ ...ownerState.variant === "outline" && {
130
88
  ...ownerState.componentPaletteColor !== "default" && {
131
89
  border: `1px solid ${ownerState.paletteColor?.main}`
132
90
  },
133
91
  ...ownerState.componentPaletteColor === "default" && {
134
- border: `1px solid ${ownerState.paletteColor?.main}`
135
- },
136
- "&:hover": {
137
- display: "flex",
138
- justifyContent: "center",
139
- alignItems: "center",
140
- border: `1px solid ${ownerState.paletteColor?.hover}`,
141
- background: ownerState.componentPaletteColor !== "default" ? ownerState.paletteColor?.hoverOpacity : ownerState.paletteColor?.hover,
142
- '& [class*="M4LIcon-icon"]': {
143
- display: "flex",
144
- justifyContent: "center",
145
- '& [class*="M4LIcon-icon"]': {
146
- display: "flex",
147
- justifyContent: "center",
148
- ...ownerState.componentPaletteColor !== "default" && {
149
- backgroundColor: ownerState.paletteColor?.contrastText
150
- }
151
- }
152
- }
92
+ border: `1px solid ${theme.vars.palette.border.default}`
153
93
  },
154
- "&:active": {
155
- display: "flex",
156
- justifyContent: "center",
157
- alignItems: "center",
158
- background: ownerState.componentPaletteColor !== "default" ? ownerState.paletteColor?.hoverOpacity : ownerState.paletteColor?.active,
94
+ ...ownerState.selected === true ? {
95
+ background: ownerState.paletteColor?.activeOpacity,
159
96
  border: `1px solid ${ownerState.paletteColor?.active}`,
160
97
  '& [class*="M4LIcon-icon"]': {
161
- display: "flex",
162
- justifyContent: "center",
163
- ...ownerState.componentPaletteColor !== "default" && {
164
- backgroundColor: ownerState.paletteColor?.active
165
- }
98
+ backgroundColor: ownerState.componentPaletteColor === "default" ? theme.vars.palette.text.primary : ownerState.paletteColor?.active
166
99
  }
167
- },
168
- "&:focus-visible": {
169
- display: "flex",
170
- justifyContent: "center",
171
- alignItems: "center",
172
- outlineOffset: 1,
173
- outline: `1px solid ${ownerState.paletteColor?.focusVisible}`,
174
- border: `1px solid ${ownerState.paletteColor?.main}`,
175
- "& .MuiButtonBase-root": {
176
- display: "flex",
177
- justifyContent: "center",
178
- alignItems: "center"
100
+ } : {
101
+ "&:hover": {
102
+ background: ownerState.paletteColor?.hoverOpacity
179
103
  },
180
- '& [class*="M4LIcon-icon"]': {
181
- display: "flex",
182
- justifyContent: "center",
104
+ "&:active": {
105
+ background: ownerState.paletteColor?.activeOpacity,
106
+ border: `1px solid ${ownerState.paletteColor?.active}`,
183
107
  '& [class*="M4LIcon-icon"]': {
184
- display: "flex",
185
- justifyContent: "center",
186
- ...ownerState.componentPaletteColor !== "default" && {
187
- backgroundColor: ownerState.paletteColor?.contrastText
188
- }
108
+ backgroundColor: ownerState.componentPaletteColor === "default" ? theme.vars.palette.text.primary : ownerState.paletteColor?.active
189
109
  }
190
110
  }
111
+ },
112
+ ...ownerState.disabled === true && {
113
+ border: `1px solid ${theme.vars.palette.border.default}`
191
114
  }
192
115
  },
193
- // Variantes outline en disabled
194
- ...ownerState.variant === "outline" && ownerState.disabled === true && {
195
- outline: `1px solid ${theme.vars.palette.action.disabled}`,
196
- color: ownerState.paletteColor?.main
197
- },
198
- // Variante text
199
- ...ownerState.variant === "text" && ownerState.disabled !== true && {
200
- "&:hover": {
201
- ...ownerState.componentPaletteColor !== "default" && {
202
- backgroundColor: ownerState.paletteColor?.hoverOpacity
203
- },
204
- ...ownerState.componentPaletteColor === "default" && {
205
- backgroundColor: ownerState.paletteColor?.hover
206
- },
207
- '& [class*="M4LIcon-icon"]': {
208
- display: "flex",
209
- justifyContent: "center",
210
- ...ownerState.componentPaletteColor !== "default" && {
211
- alignItems: "center"
212
- }
213
- }
116
+ // Variantes contained Finalizada
117
+ ...ownerState.variant === "contained" && {
118
+ backgroundColor: ownerState.paletteColor?.enabled,
119
+ //Color del icono que cambia
120
+ '& [class*="M4LIcon-icon"]': {
121
+ backgroundColor: ownerState.paletteColor?.contrastText
214
122
  },
215
- //FocusActive
216
- "&:active": {
217
- ...ownerState.componentPaletteColor !== "default" && {
218
- backgroundColor: ownerState.paletteColor?.opacity
219
- },
220
- ...ownerState.componentPaletteColor === "default" && {
221
- backgroundColor: ownerState.paletteColor?.active
123
+ // Cuando recibe en la prop `selected` un true se visualiza el modo :active
124
+ ...ownerState.selected === true ? {
125
+ background: ownerState.paletteColor?.active
126
+ } : {
127
+ //Estado Hover
128
+ "&:hover": {
129
+ background: ownerState.paletteColor?.hover
222
130
  },
223
- '& [class*="M4LIcon-icon"]': {
224
- display: "flex",
225
- justifyContent: "center",
226
- ...ownerState.componentPaletteColor !== "default" && {
227
- backgroundColor: ownerState.paletteColor?.active
228
- },
229
- ...ownerState.componentPaletteColor === "default" && {
230
- backgroundColor: ownerState.paletteColor?.contrastText
231
- }
131
+ //Estado Active
132
+ "&:active": {
133
+ background: ownerState.paletteColor?.active
232
134
  }
233
135
  },
234
- //FocusVisible
235
- "&:focus-visible": {
236
- outline: `1px solid ${ownerState.paletteColor?.focusVisible}`,
237
- // Cambiado a outline
238
- outlineOffset: 1,
239
- '& [class*="M4LIcon-icon"]': {
240
- display: "flex",
241
- justifyContent: "center",
242
- ...ownerState.componentPaletteColor !== "default" && {
243
- backgroundColor: ownerState.paletteColor?.main
244
- }
136
+ // Variantes contained en disabled
137
+ ...ownerState.disabled === true && {
138
+ background: `${ownerState.paletteColor?.main} !important`,
139
+ '& [class*="M4LIcon-icon"]': {
140
+ color: theme.vars.palette.action.disabled
245
141
  }
246
142
  }
247
143
  },
248
- // Variantes text en disabled
249
- ...ownerState.variant === "text" && ownerState.disabled === true && {
250
- color: theme.vars.palette.action.disabled
144
+ //FocusVisible
145
+ "&:focus-visible": {
146
+ outline: `1px solid ${ownerState.paletteColor?.focusVisible}`,
147
+ outlineOffset: 2
148
+ },
149
+ ...ownerState.selected === true && {
150
+ outline: `1px solid ${ownerState.paletteColor?.selected}`,
151
+ outlineOffset: 2
251
152
  }
252
153
  }),
253
154
  /**
254
155
  * TODO: Documentar
255
156
  */
256
- icon: ({ ownerState, theme }) => ({
257
- // condiciones de tamaño Small
258
- ...ownerState.size === "small" && {
259
- ...theme.generalSettings.isMobile ? {
260
- width: theme.vars.size.mobile.small.base,
261
- height: theme.vars.size.mobile.small.base
262
- } : {
263
- width: theme.vars.size.desktop.small.base,
264
- height: theme.vars.size.desktop.small.base
265
- }
266
- },
267
- // condiciones de tamaño Medium
268
- ...ownerState.size === "medium" && {
269
- ...theme.generalSettings.isMobile ? {
270
- width: theme.vars.size.mobile.medium.base,
271
- height: theme.vars.size.mobile.medium.base
272
- } : {
273
- width: theme.vars.size.desktop.medium.base,
274
- height: theme.vars.size.desktop.medium.base
275
- }
276
- }
277
- }),
157
+ icon: {},
278
158
  /**
279
159
  * Tooltip Styles
280
160
  * @author Bruce Escobar - automatic
@@ -323,6 +203,41 @@ const iconButtonStyles = {
323
203
  // }),
324
204
  // }),
325
205
  // },
206
+ }),
207
+ /**
208
+ * Slot de contenedor de reactNode
209
+ */
210
+ containReact: ({ isSkeleton }) => ({
211
+ display: isSkeleton ? "none" : "flex",
212
+ width: "100%",
213
+ height: "100%"
214
+ }),
215
+ /**
216
+ * Slot skeleton con sus estilos de tamaño
217
+ */
218
+ skeleton: ({ theme, ownerState }) => ({
219
+ "&.M4lclassCssSpecificity": {
220
+ // condiciones de tamaño Small
221
+ ...ownerState.size === "small" && {
222
+ ...theme.generalSettings.isMobile ? {
223
+ width: theme.vars.size.mobile.small.action,
224
+ height: theme.vars.size.mobile.small.action
225
+ } : {
226
+ width: theme.vars.size.desktop.small.action,
227
+ height: theme.vars.size.desktop.small.action
228
+ }
229
+ },
230
+ // condiciones de tamaño Medium
231
+ ...ownerState.size === "medium" && {
232
+ ...theme.generalSettings.isMobile ? {
233
+ width: theme.vars.size.mobile.medium.action,
234
+ height: theme.vars.size.mobile.medium.action
235
+ } : {
236
+ width: theme.vars.size.desktop.medium.action,
237
+ height: theme.vars.size.desktop.medium.action
238
+ }
239
+ }
240
+ }
326
241
  })
327
242
  };
328
243
  export {
@@ -1,6 +1,8 @@
1
1
  export declare enum IconButtonSlots {
2
2
  styledMUIIconButton = "styledMUIIconButton",
3
+ containReact = "containReact",
3
4
  icon = "icon",
4
5
  badgeIconButton = "badgeIconButton",
5
- tooltip = "tooltip"
6
+ tooltip = "tooltip",
7
+ skeleton = "skeleton"
6
8
  }
@@ -1,8 +1,10 @@
1
1
  var IconButtonSlots = /* @__PURE__ */ ((IconButtonSlots2) => {
2
2
  IconButtonSlots2["styledMUIIconButton"] = "styledMUIIconButton";
3
+ IconButtonSlots2["containReact"] = "containReact";
3
4
  IconButtonSlots2["icon"] = "icon";
4
5
  IconButtonSlots2["badgeIconButton"] = "badgeIconButton";
5
6
  IconButtonSlots2["tooltip"] = "tooltip";
7
+ IconButtonSlots2["skeleton"] = "skeleton";
6
8
  return IconButtonSlots2;
7
9
  })(IconButtonSlots || {});
8
10
  export {
@@ -1,16 +1,22 @@
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
- }, "children" | "size" | "action" | "color" | "style" | "disabled" | "sx" | "classes" | "className" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge">, "children" | "value" | "ref" | "title" | "size" | "name" | "id" | "type" | "action" | "hidden" | "color" | "content" | "style" | "disabled" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "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" | "onResize" | "onResizeCapture" | "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" | "form" | "key" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
3
+ }, "children" | "size" | "action" | "color" | "style" | "disabled" | "className" | "classes" | "sx" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge">, "children" | "value" | "ref" | "title" | "size" | "name" | "id" | "type" | "action" | "hidden" | "color" | "content" | "style" | "disabled" | "className" | "classes" | "onChange" | "sx" | "translate" | "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" | "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" | "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" | "onResize" | "onResizeCapture" | "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" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "disableFocusRipple" | "edge"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
4
4
  ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
5
5
  }, {}, {}>;
6
+ export declare const ContainReactStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
7
+ ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
8
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
6
9
  export declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
7
10
  ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
8
11
  }, {}, {}>;
9
12
  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"> & {
10
13
  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;
11
- }, "children" | "components" | "color" | "style" | "variant" | "sx" | "classes" | "className" | "componentsProps" | "slotProps" | "slots" | "badgeContent" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero">, "children" | "ref" | "title" | "id" | "components" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "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" | "onResize" | "onResizeCapture" | "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" | "slotProps" | "slots" | "key" | "badgeContent" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
14
+ }, "children" | "components" | "color" | "style" | "variant" | "className" | "classes" | "sx" | "slots" | "slotProps" | "componentsProps" | "invisible" | "max" | "anchorOrigin" | "badgeContent" | "overlap" | "showZero">, "children" | "ref" | "title" | "id" | "components" | "hidden" | "color" | "content" | "style" | "variant" | "className" | "classes" | "onChange" | "sx" | "translate" | "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" | "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" | "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" | "onResize" | "onResizeCapture" | "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" | "invisible" | "max" | "anchorOrigin" | "badgeContent" | "overlap" | "showZero"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
12
15
  ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
13
16
  }, {}, {}>;
14
17
  export declare const TooltipStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Tooltip').TooltipProps, keyof import('../../Tooltip').TooltipProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
15
18
  ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
16
19
  }, {}, {}>;
20
+ 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> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
21
+ ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
22
+ }, {}, {}>;
@@ -1,14 +1,19 @@
1
+ import { IconButton, Badge } from "@mui/material";
1
2
  import { styled } from "@mui/material/styles";
2
- import { I as ICON_BUTTON_KEY_COMPONENT } from "../constants.js";
3
3
  import { i as iconButtonStyles } from "../IconButton.styles.js";
4
+ import { I as ICON_BUTTON_KEY_COMPONENT } from "../constants.js";
4
5
  import { I as IconButtonSlots } from "./IconButtonEnum.js";
5
- import { IconButton, Badge } from "@mui/material";
6
6
  import { I as Icon } from "../../../Icon/Icon.js";
7
7
  import { T as Tooltip } from "../../Tooltip/Tooltip.js";
8
+ import { S as Skeleton } from "../../Skeleton/Skeleton.js";
8
9
  const StyledMUIIconButton = styled(IconButton, {
9
10
  name: ICON_BUTTON_KEY_COMPONENT,
10
11
  slot: IconButtonSlots.styledMUIIconButton
11
12
  })(iconButtonStyles?.styledMUIIconButton);
13
+ const ContainReactStyled = styled("div", {
14
+ name: ICON_BUTTON_KEY_COMPONENT,
15
+ slot: IconButtonSlots.containReact
16
+ })(iconButtonStyles?.containReact);
12
17
  const IconStyled = styled(Icon, {
13
18
  name: ICON_BUTTON_KEY_COMPONENT,
14
19
  slot: IconButtonSlots.icon
@@ -21,9 +26,15 @@ const TooltipStyled = styled(Tooltip, {
21
26
  name: ICON_BUTTON_KEY_COMPONENT,
22
27
  slot: IconButtonSlots.tooltip
23
28
  })(iconButtonStyles?.tooltip);
29
+ const SkeletonStyled = styled(Skeleton, {
30
+ name: ICON_BUTTON_KEY_COMPONENT,
31
+ slot: IconButtonSlots.skeleton
32
+ })(iconButtonStyles?.skeleton);
24
33
  export {
25
34
  BadgeStyled as B,
35
+ ContainReactStyled as C,
26
36
  IconStyled as I,
27
37
  StyledMUIIconButton as S,
28
- TooltipStyled as T
38
+ TooltipStyled as T,
39
+ SkeletonStyled as a
29
40
  };
@@ -8,7 +8,13 @@ import { IconButtonSlots } from './slots';
8
8
  import { BadgeProps } from '../Badge';
9
9
  import { TooltipProps } from '../../mui_extended';
10
10
  import { ReactNode } from 'react';
11
+ /**
12
+ * Tipo `IconButtonVariants` para definir sus variantes
13
+ */
11
14
  export type IconButtonVariants = 'contained' | 'outline' | 'text';
15
+ /**
16
+ * Tipo `IconButtonSize` para definir sus tamaños
17
+ */
12
18
  export type IconButtonSize = 'small' | 'medium';
13
19
  /**
14
20
  * Props for the IconButton component.
@@ -60,12 +66,28 @@ export interface IconButtonProps extends Omit<IconProps, 'size' | 'color'>, Omit
60
66
  * Es útil para realizar pruebas unitarias y de integración.
61
67
  */
62
68
  instaceDataTestId?: string;
69
+ /**
70
+ * Propiedad que sirve para cambiar al modo seleccionado
71
+ */
72
+ selected?: boolean;
73
+ /**
74
+ * Propiedad vara renderizar el icon
75
+ */
76
+ icon?: ReactNode;
63
77
  }
64
- export type OwnerState = Pick<IconButtonProps, 'size' | 'variant' | 'componentPaletteColor'> & {
78
+ /**
79
+ * Tipo `IconButtonOwnerState` que define los valores que tendra el ownerState
80
+ */
81
+ export type IconButtonOwnerState = Pick<IconButtonProps, 'size' | 'variant' | 'componentPaletteColor' | 'selected'> & {
65
82
  disabled?: boolean;
66
83
  paletteColor: PaletteColor;
84
+ isSkeleton: boolean;
67
85
  };
86
+ /**
87
+ * Tipo `IconButtonSlotsType` que tiene los slots de `IconButtonSlots`
88
+ */
68
89
  export type IconButtonSlotsType = keyof typeof IconButtonSlots;
69
- export interface IconButtonOwnerState extends IconButtonProps, OwnerState {
70
- }
90
+ /**
91
+ * Tipo `IconButtonStyles` que tiene un overrides de los estilos del tema
92
+ */
71
93
  export type IconButtonStyles = Partial<OverridesStyleRules<IconButtonSlotsType, typeof ICON_BUTTON_KEY_COMPONENT, Theme> | undefined> | undefined;
@@ -5,7 +5,7 @@ import { useTheme } from "@mui/material/styles";
5
5
  import { I as ICON_PATH, a as ICONS, M as MENU_ACTIONS_, b as MENU_ACTIONS_EMPTY } from "./constants.js";
6
6
  import { g as getMenuActionsDictionary, D as DICTIONARY } from "./dictionary.js";
7
7
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
8
- import { R as RootStyled, I as IconButtonStyled, P as PopoverStyled, M as MenuItemStyled } from "./slots/MenuActionsSlots.js";
8
+ import { R as RootStyled, I as IconButtonStyled, P as PopoverStyled, M as MenuListStyled, a as MenuItemStyled } from "./slots/MenuActionsSlots.js";
9
9
  function MenuActions(props) {
10
10
  const {
11
11
  menuActions,
@@ -25,6 +25,7 @@ function MenuActions(props) {
25
25
  externalOpen = null,
26
26
  externalClose,
27
27
  sizes = "medium",
28
+ disabled = false,
28
29
  ...other
29
30
  } = props;
30
31
  const { currentSize } = useComponentSize(sizes);
@@ -68,7 +69,9 @@ function MenuActions(props) {
68
69
  src: urlFinalIcon,
69
70
  onClick: () => handleOpenClose(),
70
71
  tooltip: toolTip,
71
- className: iconButtonClassName
72
+ className: iconButtonClassName,
73
+ selected: open,
74
+ disabled
72
75
  }
73
76
  ),
74
77
  /* @__PURE__ */ jsxs(
@@ -91,7 +94,7 @@ function MenuActions(props) {
91
94
  },
92
95
  ...other,
93
96
  children: [
94
- finalActions.length > 0 ? finalActions.map((menuAction, index) => /* @__PURE__ */ createElement(
97
+ finalActions.length > 0 ? /* @__PURE__ */ jsx(MenuListStyled, { ownerState: { OwnerState }, children: finalActions.map((menuAction, index) => /* @__PURE__ */ createElement(
95
98
  MenuItemStyled,
96
99
  {
97
100
  ownerState: { OwnerState },
@@ -102,7 +105,7 @@ function MenuActions(props) {
102
105
  ...menuAction,
103
106
  key: `${MENU_ACTIONS_}${index}`
104
107
  }
105
- )) : /* @__PURE__ */ jsx(
108
+ )) }) : /* @__PURE__ */ jsx(
106
109
  MenuItemStyled,
107
110
  {
108
111
  ownerState: { OwnerState },
@@ -5,10 +5,19 @@ const menuActionsStyles = {
5
5
  root: () => ({
6
6
  width: "fit-content"
7
7
  }),
8
- /***
9
- * Estilos para el Popover
8
+ /**
9
+ * Estilos para el Popover
10
10
  */
11
11
  popover: {},
12
+ /**
13
+ * Estilos para el MenuList
14
+ */
15
+ menuList: ({ theme }) => ({
16
+ padding: 0,
17
+ display: "flex",
18
+ flexDirection: "column",
19
+ gap: theme.vars.size.baseSpacings.sp1
20
+ }),
12
21
  /**
13
22
  * Estilos para el `IconButton` utilizado para abrir el menú.
14
23
  */
@@ -8,5 +8,6 @@ export declare enum MenuActionsSlots {
8
8
  root = "root",
9
9
  popover = "popover",
10
10
  iconButton = "iconButton",
11
+ menuList = "menuList",
11
12
  menuItem = "menuItem"
12
13
  }