@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.
- package/@types/types.d.ts +274 -136
- package/components/AccountPopover/classes/index.d.ts +1 -1
- package/components/AccountPopover/subcomponents/PopOver/index.d.ts +1 -0
- package/components/AccountPopover/subcomponents/PopOver/index.js +2 -2
- package/components/AppBar/AppBar.d.ts +15 -20
- package/components/AppBar/AppBar.js +29 -31
- package/components/AppBar/constants.d.ts +2 -0
- package/components/AppBar/constants.js +6 -0
- package/components/AppBar/slots/AppBarEnum.d.ts +8 -0
- package/components/AppBar/slots/AppBarEnum.js +12 -0
- package/components/AppBar/slots/AppBarSlots.d.ts +18 -0
- package/components/AppBar/slots/AppBarSlots.js +39 -0
- package/components/AppBar/styles.d.ts +2 -1
- package/components/AppBar/styles.js +97 -5
- package/components/AppBar/tests/utils.d.ts +1 -2
- package/components/AppBar/tests/utils.js +2 -3
- package/components/AppBar/types.d.ts +20 -12
- package/components/CommonActions/classes/index.d.ts +1 -1
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionCancel/types.d.ts +2 -2
- package/components/CommonActions/components/ActionFormCancel/index.js +1 -1
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionIntro/types.d.ts +2 -2
- package/components/CommonActions/components/ActionsContainer/ActionsContainerStyles.js +1 -0
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
- package/components/ControlIncrement/slots/ControltrolIncrementSlots.d.ts +2 -2
- package/components/DataGrid/dictionary.d.ts +4 -0
- package/components/DataGrid/dictionary.js +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +2 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.js +3 -3
- package/components/DragResizeWindow/hooks/useDimensionEffects.d.ts +1 -1
- package/components/DragResizeWindow/hooks/useDimensionEffects.js +7 -2
- package/components/DragResizeWindow/hooks/useDragOptions.d.ts +2 -2
- package/components/DragResizeWindow/hooks/useDragOptions.js +14 -8
- package/components/DragResizeWindow/hooks/useResizeOptions.d.ts +1 -1
- package/components/DragResizeWindow/hooks/useResizeOptions.js +37 -26
- package/components/DragResizeWindow/slots/DragResizeWindowSlots.d.ts +2 -2
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +12 -12
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +12 -12
- package/components/GridLayout/classes/index.d.ts +1 -1
- package/components/Icon/Icon.d.ts +2 -2
- package/components/Icon/Icon.js +12 -4
- package/components/Icon/slots/IconSlots.d.ts +2 -2
- package/components/InputNumberSpinner/slots/InputNumberSpinnerSlots.d.ts +1 -1
- package/components/Label/slots/LabelSlots.d.ts +1 -1
- package/components/LanguagePopover/LanguagePopover.d.ts +1 -0
- package/components/LanguagePopover/LanguagePopover.js +2 -2
- package/components/MFIsolationApp/MFIsolationApp.js +16 -15
- package/components/ModalDialog/ModalDialog.d.ts +57 -0
- package/components/ModalDialog/ModalDialog.js +94 -0
- package/components/ModalDialog/ModalDialog.styles.d.ts +2 -0
- package/components/ModalDialog/ModalDialog.styles.js +44 -0
- package/components/ModalDialog/constants.d.ts +1 -0
- package/components/ModalDialog/constants.js +4 -0
- package/components/{modal/ModalDialog → ModalDialog}/dictionary.js +1 -1
- package/components/ModalDialog/index.d.ts +8 -0
- package/components/ModalDialog/index.js +1 -0
- package/components/ModalDialog/slots/ModalDialogEnum.d.ts +7 -0
- package/components/ModalDialog/slots/ModalDialogEnum.js +11 -0
- package/components/ModalDialog/slots/ModalDialogSlots.d.ts +9 -0
- package/components/ModalDialog/slots/ModalDialogSlots.js +34 -0
- package/components/ModalDialog/slots/index.d.ts +2 -0
- package/components/ModalDialog/slots/index.js +1 -0
- package/components/ModalDialog/subcomponents/ResizeHandle/index.js +4 -0
- package/components/ModalDialog/types.d.ts +16 -0
- package/components/ModalDialog/types.js +1 -0
- package/components/NavLink/NavLink.d.ts +2 -2
- package/components/NavLink/NavLink.js +4 -4
- package/components/ObjectLogs/components/DetailFormatter/index.js +1 -1
- package/components/PaperForm/PaperForm.d.ts +9 -1
- package/components/PaperForm/PaperForm.js +10 -10
- package/components/PaperForm/components/Header.d.ts +8 -1
- package/components/PaperForm/components/Header.js +20 -12
- package/components/PaperForm/constants.d.ts +1 -0
- package/components/PaperForm/constants.js +4 -0
- package/components/PaperForm/slots/PaperFormEnum.d.ts +7 -0
- package/components/PaperForm/slots/PaperFormEnum.js +11 -0
- package/components/PaperForm/slots/PaperFormSlots.d.ts +15 -0
- package/components/PaperForm/slots/PaperFormSlots.js +33 -0
- package/components/PaperForm/styles.d.ts +2 -6
- package/components/PaperForm/styles.js +97 -49
- package/components/PaperForm/types.d.ts +28 -4
- package/components/SideBar/SideBar.d.ts +25 -23
- package/components/SideBar/SideBar.js +36 -64
- package/components/SideBar/constants.d.ts +6 -2
- package/components/SideBar/constants.js +10 -4
- package/components/SideBar/context/sideBarContext/index.d.ts +5 -0
- package/components/SideBar/context/sideBarContext/index.js +18 -30
- package/components/SideBar/context/sideBarContext/types.d.ts +9 -5
- package/components/SideBar/dictionary.d.ts +1 -0
- package/components/SideBar/helpers/getDataToSkeleton/index.d.ts +15 -0
- package/components/SideBar/helpers/getDataToSkeleton/index.js +14 -0
- package/components/SideBar/helpers/getMenuDataWithState/index.d.ts +13 -0
- package/components/SideBar/helpers/getMenuDataWithState/index.js +27 -0
- package/components/SideBar/helpers/getMenuDataWithState/types.d.ts +6 -0
- package/components/SideBar/slots/SideBarEnum.d.ts +29 -0
- package/components/SideBar/slots/SideBarEnum.js +45 -0
- package/components/SideBar/slots/SideBarSlots.d.ts +45 -0
- package/components/SideBar/slots/SideBarSlots.js +80 -0
- package/components/SideBar/styles.d.ts +2 -15
- package/components/SideBar/styles.js +17 -19
- package/components/SideBar/subcomponents/ContentComponent/index.d.ts +10 -0
- package/components/SideBar/subcomponents/ContentComponent/index.js +27 -0
- package/components/SideBar/subcomponents/ContentComponent/style.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentComponent/style.js +18 -0
- package/components/SideBar/subcomponents/ContentGroups/index.d.ts +4 -0
- package/components/SideBar/subcomponents/ContentGroups/index.js +33 -41
- package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +2 -3
- package/components/SideBar/subcomponents/ContentGroups/styles.js +70 -26
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.d.ts +12 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.js +60 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +44 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/subcomponents/ArrowIcon/index.d.ts +9 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/{ItemListRoot → ContainerMenuItemsMain}/subcomponents/ArrowIcon/index.js +8 -8
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/{ItemListRoot → ContainerMenuItemsMain}/subcomponents/ArrowIcon/types.d.ts +1 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/types.d.ts +5 -0
- package/components/SideBar/subcomponents/FooterSidebar/index.d.ts +13 -0
- package/components/SideBar/subcomponents/FooterSidebar/index.js +33 -0
- package/components/SideBar/subcomponents/FooterSidebar/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/FooterSidebar/styles.js +20 -0
- package/components/SideBar/subcomponents/FooterSidebar/types.d.ts +5 -0
- package/components/SideBar/subcomponents/HeaderSidebar/index.d.ts +10 -0
- package/components/SideBar/subcomponents/HeaderSidebar/index.js +25 -0
- package/components/SideBar/subcomponents/HeaderSidebar/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/HeaderSidebar/styles.js +32 -0
- package/components/SideBar/subcomponents/HeaderSidebar/types.d.ts +5 -0
- package/components/SideBar/subcomponents/SideBarDesktop/index.d.ts +8 -0
- package/components/SideBar/subcomponents/SideBarDesktop/index.js +80 -0
- package/components/SideBar/subcomponents/SideBarDesktop/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/SideBarDesktop/styles.js +73 -0
- package/components/SideBar/subcomponents/SideBarMobile/index.d.ts +8 -0
- package/components/SideBar/subcomponents/SideBarMobile/index.js +36 -0
- package/components/SideBar/subcomponents/SideBarMobile/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/SideBarMobile/styles.js +15 -0
- package/components/SideBar/subcomponents/SideBarMobile/subcomponents/Drawer.d.ts +9 -0
- package/components/SideBar/tests/SideBar.integration.test.d.ts +0 -0
- package/components/SideBar/tests/SideBar.test.d.ts +0 -0
- package/components/SideBar/tests/utils.d.ts +34 -2
- package/components/SideBar/types.d.ts +34 -37
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +4 -4
- package/components/WindowBase/WindowBase.d.ts +11 -0
- package/components/WindowBase/WindowBase.js +63 -0
- package/components/WindowBase/WindowBase.styles.d.ts +9 -0
- package/components/WindowBase/WindowBase.styles.js +204 -0
- package/components/WindowBase/constants.d.ts +1 -0
- package/components/WindowBase/constants.js +4 -0
- package/components/WindowBase/icons.d.ts +6 -0
- package/components/WindowBase/icons.js +9 -0
- package/components/WindowBase/index.d.ts +9 -0
- package/components/WindowBase/index.js +1 -0
- package/components/WindowBase/slots/WindowBaseEnum.d.ts +16 -0
- package/components/WindowBase/slots/WindowBaseEnum.js +20 -0
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +95 -0
- package/components/WindowBase/slots/WindowBaseSlots.js +81 -0
- package/components/WindowBase/slots/index.d.ts +2 -0
- package/components/WindowBase/slots/index.js +1 -0
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.d.ts +46 -0
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +78 -0
- package/components/WindowBase/subcomponents/Header/index.d.ts +2 -0
- package/components/WindowBase/subcomponents/Header/index.js +1 -0
- package/components/WindowBase/subcomponents/Header/types.d.ts +90 -0
- package/components/WindowBase/subcomponents/Header/types.js +1 -0
- package/components/WindowBase/types.d.ts +136 -0
- package/components/WindowBase/types.js +1 -0
- package/components/WindowConfirm/WindowConfirm.d.ts +28 -0
- package/components/WindowConfirm/WindowConfirm.js +117 -0
- package/components/WindowConfirm/WindowConfirm.styles.d.ts +2 -0
- package/components/WindowConfirm/WindowConfirm.styles.js +202 -0
- package/components/WindowConfirm/constants.d.ts +1 -0
- package/components/WindowConfirm/constants.js +4 -0
- package/components/WindowConfirm/index.d.ts +9 -0
- package/components/WindowConfirm/slots/WindowConfirmEnum.d.ts +15 -0
- package/components/WindowConfirm/slots/WindowConfirmEnum.js +19 -0
- package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +39 -0
- package/components/WindowConfirm/slots/WindowConfirmSlots.js +77 -0
- package/components/WindowConfirm/slots/index.d.ts +2 -0
- package/components/WindowConfirm/slots/index.js +1 -0
- package/components/WindowConfirm/subcomponents/MessageIllustration/MessageIllustration.d.ts +10 -0
- package/components/WindowConfirm/subcomponents/MessageIllustration/MessageIllustration.js +47 -0
- package/components/WindowConfirm/subcomponents/MessageIllustration/index.d.ts +2 -0
- package/components/WindowConfirm/subcomponents/MessageIllustration/index.js +1 -0
- package/components/WindowConfirm/subcomponents/MessageIllustration/types.d.ts +2 -0
- package/components/WindowConfirm/subcomponents/MessageIllustration/types.js +1 -0
- package/components/WindowConfirm/types.d.ts +46 -0
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index.d.ts +4 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index.js +1 -1
- package/components/commercial/HamburgerMenu/HamburgerMenu.d.ts +6 -0
- package/components/commercial/HamburgerMenu/HamburgerMenu.js +3 -7
- package/components/gclick/MyDevice/slots/MyDeviceSlots.d.ts +2 -2
- package/components/gclick/MyDeviceStatus/slots/MyDeviceStatusSlots.d.ts +2 -2
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +4 -0
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.js +5 -2
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeText/index.js +6 -3
- package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
- package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnerSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +4 -4
- package/components/index.d.ts +1 -0
- package/components/maps/components/Map/popups/MapPopupMyGps/slots/ MapPopupMyGpsSlots.d.ts +3 -3
- package/components/maps/components/Map/slots/MapSlots.d.ts +3 -3
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +4 -0
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.js +2 -2
- package/components/modal/classes/index.d.ts +9 -5
- package/components/modal/classes/index.js +4 -4
- package/components/modal/classes/types.d.ts +1 -0
- package/components/modal/index.d.ts +5 -5
- package/components/mui_extended/Accordion/Accordion.d.ts +4 -4
- package/components/mui_extended/Accordion/Accordion.js +48 -71
- package/components/mui_extended/Accordion/constants.d.ts +2 -1
- package/components/mui_extended/Accordion/constants.js +4 -2
- package/components/mui_extended/Accordion/slots/AccordionEnum.d.ts +8 -0
- package/components/mui_extended/Accordion/slots/AccordionEnum.js +12 -0
- package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +23 -0
- package/components/mui_extended/Accordion/slots/AccordionSlots.js +39 -0
- package/components/mui_extended/Accordion/styles.d.ts +2 -3
- package/components/mui_extended/Accordion/styles.js +109 -23
- package/components/mui_extended/Accordion/tests/Accordion.test.d.ts +1 -0
- package/components/mui_extended/Accordion/types.d.ts +12 -7
- package/components/mui_extended/Autocomplete/Autocomplete.d.ts +2 -0
- package/components/mui_extended/Autocomplete/AutocompleteStyles.d.ts +2 -0
- package/components/mui_extended/Autocomplete/constants.d.ts +9 -0
- package/components/mui_extended/Autocomplete/dictionary.d.ts +3 -0
- package/components/mui_extended/Autocomplete/index.d.ts +1 -0
- package/components/mui_extended/Autocomplete/renderOptions/index.d.ts +16 -0
- package/components/mui_extended/Autocomplete/slots /AutocompleteEnum.d.ts +14 -0
- package/components/mui_extended/Autocomplete/slots /AutocompleteSlots.d.ts +38 -0
- package/components/mui_extended/Autocomplete/slots /index.d.ts +2 -0
- package/components/mui_extended/Autocomplete/types.d.ts +67 -0
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
- package/components/mui_extended/Button/ButtonStyles.js +1 -0
- package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +2 -2
- package/components/mui_extended/Chip/Chip.d.ts +13 -0
- package/components/mui_extended/Chip/ChipStyles.d.ts +2 -0
- package/components/mui_extended/Chip/constants.d.ts +8 -0
- package/components/mui_extended/Chip/index copy.d.ts +2 -0
- package/components/mui_extended/Chip/index.d.ts +0 -0
- package/components/mui_extended/Chip/slots/ChipEnum.d.ts +7 -0
- package/components/mui_extended/Chip/slots/ChipSlots.d.ts +16 -0
- package/components/mui_extended/Chip/slots/index.d.ts +3 -0
- package/components/mui_extended/Chip/types.d.ts +49 -0
- package/components/mui_extended/CircularProgress/CircularProgress.d.ts +5 -0
- package/components/mui_extended/CircularProgress/CircularProgress.js +30 -0
- package/components/mui_extended/CircularProgress/CircularProgress.styles.d.ts +5 -0
- package/components/mui_extended/CircularProgress/CircularProgress.styles.js +57 -0
- package/components/mui_extended/CircularProgress/CircularProgress.test.d.ts +1 -0
- package/components/mui_extended/CircularProgress/constants.d.ts +13 -0
- package/components/mui_extended/CircularProgress/constants.js +6 -0
- package/components/mui_extended/CircularProgress/index.d.ts +1 -2
- package/components/mui_extended/CircularProgress/index.js +1 -8
- package/components/mui_extended/CircularProgress/slots/CircularProgressEnum.d.ts +4 -0
- package/components/mui_extended/CircularProgress/slots/CircularProgressEnum.js +8 -0
- package/components/mui_extended/CircularProgress/slots/CircularProgressSlots.d.ts +12 -0
- package/components/mui_extended/CircularProgress/slots/CircularProgressSlots.js +17 -0
- package/components/mui_extended/CircularProgress/types.d.ts +48 -0
- package/components/mui_extended/Dialog/Dialog.d.ts +54 -0
- package/components/mui_extended/Dialog/Dialog.js +38 -0
- package/components/mui_extended/Dialog/Dialog.styles.d.ts +2 -0
- package/components/mui_extended/Dialog/Dialog.styles.js +26 -0
- package/components/mui_extended/Dialog/constants.d.ts +1 -0
- package/components/mui_extended/Dialog/constants.js +4 -0
- package/components/mui_extended/Dialog/dictionary.d.ts +3 -0
- package/components/mui_extended/Dialog/dictionary.js +7 -0
- package/components/mui_extended/Dialog/index.d.ts +7 -0
- package/components/mui_extended/Dialog/index.js +1 -0
- package/components/mui_extended/Dialog/slots/DialogEnum.d.ts +5 -0
- package/components/mui_extended/Dialog/slots/DialogEnum.js +9 -0
- package/components/mui_extended/Dialog/slots/DialogSlots.d.ts +9 -0
- package/components/mui_extended/Dialog/slots/DialogSlots.js +20 -0
- package/components/mui_extended/Dialog/slots/index.d.ts +2 -0
- package/components/mui_extended/Dialog/slots/index.js +1 -0
- package/components/mui_extended/Dialog/tests/Dialog.test.d.ts +1 -0
- package/components/mui_extended/Dialog/types.d.ts +60 -0
- package/components/mui_extended/Dialog/types.js +1 -0
- package/components/mui_extended/IconButton/IconButton.js +79 -83
- package/components/mui_extended/IconButton/IconButton.styles.js +104 -189
- package/components/mui_extended/IconButton/slots/IconButtonEnum.d.ts +3 -1
- package/components/mui_extended/IconButton/slots/IconButtonEnum.js +2 -0
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +8 -2
- package/components/mui_extended/IconButton/slots/IconButtonSlots.js +14 -3
- package/components/mui_extended/IconButton/types.d.ts +25 -3
- package/components/mui_extended/MenuActions/MenuActions.js +7 -4
- package/components/mui_extended/MenuActions/MenuActions.styles.js +11 -2
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +1 -0
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.js +1 -0
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +16 -5
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.js +8 -2
- package/components/mui_extended/MenuActions/types.d.ts +38 -1
- package/components/mui_extended/MenuItem/MenuItem.d.ts +2 -2
- package/components/mui_extended/MenuItem/MenuItem.js +25 -17
- package/components/mui_extended/MenuItem/MenuItem.styles.js +18 -29
- package/components/mui_extended/MenuItem/slots/MenuItemEnum.d.ts +3 -3
- package/components/mui_extended/MenuItem/slots/MenuItemEnum.js +3 -3
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +5 -5
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +12 -12
- package/components/mui_extended/MenuItem/types.d.ts +3 -2
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
- package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
- package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
- package/components/mui_extended/Tabs/styles.d.ts +1 -1
- package/components/mui_extended/TextField/TextField.d.ts +2 -2
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +3 -3
- package/components/mui_extended/Tooltip/slots/TooltipSlots.d.ts +1 -1
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +6 -6
- package/contexts/ModalContext/index.d.ts +1 -1
- package/contexts/ModalContext/index.js +4 -8
- package/contexts/ModalContext/types.d.ts +1 -1
- package/hooks/useFormAddEdit/index.d.ts +4 -0
- package/hooks/useFormAddEdit/index.js +2 -2
- package/index.js +114 -89
- package/package.json +1 -1
- package/storybook/components/ModalDialog/ModalDialog.stories.d.ts +7 -0
- package/storybook/components/ModalDialog/subcomponent/WithExtendedContainer.d.ts +37 -0
- package/storybook/components/SideBar/SideBar.stories.d.ts +24 -0
- package/storybook/components/SideBar/data/menuData.d.ts +2 -0
- package/storybook/components/SideBar/subcomponents/SibarDecorator.d.ts +3 -0
- package/storybook/components/WindowBase/windowBase.stories.d.ts +9 -0
- package/storybook/components/WindowConfirm/windowConfirm.stories.d.ts +8 -0
- package/storybook/components/appBar/AppBar.stories.d.ts +11 -0
- package/storybook/components/extended/mui/Autocomplete/AutoComple.stories.d.ts +17 -0
- package/storybook/components/extended/mui/Chip/Chip.stories.d.ts +29 -0
- package/storybook/components/extended/mui/CircularProgress/CircularProgress.default.stories.d.ts +14 -0
- package/storybook/components/extended/mui/CircularProgress/CircularProgress.sizes.stories.d.ts +18 -0
- package/storybook/components/extended/mui/Dialog/Dialog.stories.d.ts +7 -0
- package/storybook/components/extended/mui/Dialog/subcomponents/ContentExample.d.ts +12 -0
- package/storybook/components/extended/mui/Dialog/subcomponents/WithExtendedContainer.d.ts +38 -0
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/DefaultIconButton/IconButton.containedDefault.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/DefaultIconButton/IconButton.textDefault.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/DefaultIconButton/iconButton.outlinedDefault.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/DisableIconButton/IconButton.containedDisable.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/DisableIconButton/IconButton.textDisable.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/DisableIconButton/iconButton.outlinedDisable.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/IconButton.stories.d.ts +9 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/PrimaryIconButton/IconButton.containedPrimary.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/PrimaryIconButton/IconButton.textPrimary.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/PrimaryIconButton/iconButton.outlinedPrimary.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/ErrorIconButton/IconButton.containedError.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/ErrorIconButton/IconButton.textError.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/ErrorIconButton/iconButton.outlinedError.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/InfoIconButton/IconButton.containedInfo.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/InfoIconButton/IconButton.textInfo.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/InfoIconButton/iconButton.outlinedInfo.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/SuccesIconButton/IconButton.containedSuccess.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/SuccesIconButton/IconButton.textSucces.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/SuccesIconButton/iconButton.outlinedSucces.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/WarningIconButton/IconButton.containedWarning.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/WarningIconButton/IconButton.textWarning.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SemanticIconButton/WarningIconButton/iconButton.outlinedWarning.stories.d.ts +1 -1
- package/{components/mui_extended/IconButton/stories → storybook/components/extended/mui/IconButton}/SizesIconButton/IconButtonSizeMedium.stories.d.ts +1 -1
- package/{components/mui_extended/MenuActions/stories → storybook/components/extended/mui/MenuActions}/MenuActions.default.stories.d.ts +5 -1
- package/{components/mui_extended/MenuActions/stories → storybook/components/extended/mui/MenuActions}/MenuActions.othersProps.stories.d.ts +1 -1
- package/storybook/components/mui_extended/Accordion/Accordion.stories.d.ts +25 -0
- package/storybook/components/paperForm/PaperForm.stories.d.ts +18 -0
- package/utils/getComponentSlotRoot.d.ts +13 -0
- package/utils/getComponentSlotRoot.js +13 -0
- package/components/AppBar/classes/constants.d.ts +0 -1
- package/components/AppBar/classes/constants.js +0 -4
- package/components/AppBar/classes/index.d.ts +0 -27
- package/components/AppBar/classes/index.js +0 -33
- package/components/AppBar/classes/types.d.ts +0 -11
- package/components/AppBar/tests/constants.js +0 -4
- package/components/AppBar/tests/index.test.d.ts +0 -5
- package/components/CommonActions/tests/index.test.d.ts +0 -7
- package/components/PaperForm/classes/constants.d.ts +0 -1
- package/components/PaperForm/classes/constants.js +0 -4
- package/components/PaperForm/classes/index.d.ts +0 -15
- package/components/PaperForm/classes/index.js +0 -33
- package/components/PaperForm/classes/types.d.ts +0 -11
- package/components/SideBar/classes/constants.d.ts +0 -1
- package/components/SideBar/classes/constants.js +0 -4
- package/components/SideBar/classes/index.d.ts +0 -47
- package/components/SideBar/classes/index.js +0 -131
- package/components/SideBar/classes/types.d.ts +0 -42
- package/components/SideBar/subcomponents/ContentDesktop/index.d.ts +0 -4
- package/components/SideBar/subcomponents/ContentDesktop/index.js +0 -12
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/index.d.ts +0 -13
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/index.js +0 -29
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/styles.js +0 -10
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/types.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/ContentComponent/index.d.ts +0 -4
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/ContentComponent/index.js +0 -74
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/index.d.ts +0 -8
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/index.js +0 -95
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.d.ts +0 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.js +0 -9
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/index.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/styles.d.ts +0 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/styles.js +0 -9
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/index.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/index.js +0 -44
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/styles.d.ts +0 -8
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/styles.js +0 -29
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/index.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/index.js +0 -44
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/type.d.ts +0 -8
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/type.d.ts +0 -17
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/index.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/index.js +0 -78
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/styles.d.ts +0 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/styles.js +0 -8
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/index.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/index.js +0 -20
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/styles.d.ts +0 -7
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/index.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/index.js +0 -57
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.js +0 -39
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/types.d.ts +0 -8
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/types.d.ts +0 -16
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/type.d.ts +0 -11
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/types.d.ts +0 -12
- package/components/SideBar/subcomponents/ContentGroups/type.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentGroups/utils/index.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentMobile/index.d.ts +0 -4
- package/components/SideBar/subcomponents/ContentMobile/index.js +0 -81
- package/components/SideBar/subcomponents/ContentMobile/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentMobile/styles.js +0 -18
- package/components/SideBar/subcomponents/ContentMobile/subcomponents/Drawer.d.ts +0 -5
- package/components/modal/ModalDialog/index.d.ts +0 -8
- package/components/modal/ModalDialog/index.js +0 -60
- package/components/modal/ModalDialog/styles.d.ts +0 -6
- package/components/modal/ModalDialog/types.d.ts +0 -7
- package/components/modal/WindowBase/index.d.ts +0 -7
- package/components/modal/WindowBase/index.js +0 -20
- package/components/modal/WindowBase/styles.d.ts +0 -1
- package/components/modal/WindowBase/subcomponents/Header/index.d.ts +0 -5
- package/components/modal/WindowBase/subcomponents/Header/index.js +0 -29
- package/components/modal/WindowBase/subcomponents/Header/styles.d.ts +0 -1
- package/components/modal/WindowBase/subcomponents/Header/types.d.ts +0 -5
- package/components/modal/WindowBase/types.d.ts +0 -11
- package/components/modal/WindowConfirm/index.d.ts +0 -16
- package/components/modal/WindowConfirm/index.js +0 -43
- package/components/modal/WindowConfirm/styles.d.ts +0 -1
- package/components/modal/WindowConfirm/subcomponents/MessageIlustration/index.d.ts +0 -5
- package/components/modal/WindowConfirm/subcomponents/MessageIlustration/index.js +0 -35
- package/components/modal/WindowConfirm/subcomponents/MessageIlustration/types.d.ts +0 -6
- package/components/modal/WindowConfirm/types.d.ts +0 -44
- package/components/mui_extended/Accordion/classes/constants.d.ts +0 -1
- package/components/mui_extended/Accordion/classes/constants.js +0 -4
- package/components/mui_extended/Accordion/classes/index.d.ts +0 -13
- package/components/mui_extended/Accordion/classes/index.js +0 -31
- package/components/mui_extended/Accordion/classes/types.d.ts +0 -10
- package/components/mui_extended/Accordion/tests/constants.d.ts +0 -1
- package/components/mui_extended/Accordion/tests/utils.d.ts +0 -2
- /package/components/{modal/ModalDialog → ModalDialog}/dictionary.d.ts +0 -0
- /package/components/{modal/ModalDialog → ModalDialog}/subcomponents/ResizeHandle/index.d.ts +0 -0
- /package/components/{hook-form/RHFTextFieldPassword/tests/index.test.d.ts → ModalDialog/tests/ModalDialog.test.d.ts} +0 -0
- /package/components/SideBar/subcomponents/{ContentMobile → SideBarMobile}/subcomponents/Drawer.js +0 -0
- /package/components/SideBar/subcomponents/{ContentMobile → SideBarMobile}/subcomponents/types.d.ts +0 -0
- /package/components/{modal/WindowConfirm → WindowConfirm}/dictionary.d.ts +0 -0
- /package/components/{modal/WindowConfirm → WindowConfirm}/dictionary.js +0 -0
- /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
|
-
//
|
|
74
|
-
...ownerState.variant === "
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
107
|
-
|
|
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
|
-
|
|
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
|
-
//
|
|
121
|
-
...ownerState.variant === "
|
|
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 ${
|
|
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
|
-
|
|
155
|
-
|
|
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
|
-
|
|
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
|
-
|
|
169
|
-
|
|
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
|
-
|
|
181
|
-
|
|
182
|
-
|
|
104
|
+
"&:active": {
|
|
105
|
+
background: ownerState.paletteColor?.activeOpacity,
|
|
106
|
+
border: `1px solid ${ownerState.paletteColor?.active}`,
|
|
183
107
|
'& [class*="M4LIcon-icon"]': {
|
|
184
|
-
|
|
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
|
|
194
|
-
...ownerState.variant === "
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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
|
-
//
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
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
|
-
|
|
224
|
-
|
|
225
|
-
|
|
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
|
-
//
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
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
|
-
//
|
|
249
|
-
|
|
250
|
-
|
|
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:
|
|
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,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" | "
|
|
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" | "
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
*
|
|
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
|
*/
|