@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
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { AutocompleteChangeReason, AutocompleteCloseReason, AutocompleteFreeSoloValueMapping, AutocompleteInputChangeReason, AutocompleteValue, AutocompleteProps as MUIAutocompleteProps, Theme, PaletteColor } from '@mui/material';
|
|
2
|
+
import { ComponentPalletColor, Sizes } from '@m4l/styles';
|
|
3
|
+
import { ChangeEvent } from 'react';
|
|
4
|
+
import { TextFieldProps } from '../TextField/types';
|
|
5
|
+
import { AUTOCOMPLETE_KEY_COMPONENT } from './constants';
|
|
6
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
7
|
+
import { AutocompleteSlots } from './slots ';
|
|
8
|
+
export type GetOptionString<T> = (option: T | null) => string;
|
|
9
|
+
export type AutocompleteVariants = 'outlined' | 'text';
|
|
10
|
+
export type AutocompleteType = 'text' | 'image';
|
|
11
|
+
/**
|
|
12
|
+
* Props for the unified Autocomplete component.
|
|
13
|
+
* Supports both single and multiple selection, and two types: `text` and `image`.
|
|
14
|
+
* @createdAt 2024-11-28 17:06:36 - automatic
|
|
15
|
+
*/
|
|
16
|
+
export interface AutocompleteProps<T, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = true, FreeSolo extends boolean | undefined = false> extends Omit<MUIAutocompleteProps<T, Multiple, DisableClearable, FreeSolo>, 'variant' | 'color' | 'size' | 'onChange' | 'value' | 'classes' | 'defaultValue' | 'onBlur' | 'onFocus' | 'autoComplete'>, Omit<TextFieldProps, 'label' | 'variant' | 'defaultValue' | 'classes' | 'onBlur' | 'onFocus' | 'onKeyDown' | 'ref' | 'onChange'> {
|
|
17
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
18
|
+
autoComplete?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The value of the autocomplete, supports single or multiple selection.
|
|
21
|
+
* Extended to include `null` for controlled components.
|
|
22
|
+
* @createdAt 2024-11-28 17:06:36 - automatic
|
|
23
|
+
*/
|
|
24
|
+
value: AutocompleteValue<T, Multiple, DisableClearable, FreeSolo> | null | undefined;
|
|
25
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
26
|
+
variant?: AutocompleteVariants;
|
|
27
|
+
color?: Extract<ComponentPalletColor, 'primary'>;
|
|
28
|
+
dataTestid?: string;
|
|
29
|
+
options: Array<T>;
|
|
30
|
+
getOptionLabel: (option: T | AutocompleteFreeSoloValueMapping<FreeSolo>) => string;
|
|
31
|
+
isOptionEqualToValue: (option: T, value: T) => boolean;
|
|
32
|
+
skeletonWidth?: string | number;
|
|
33
|
+
skeletonHeight?: string | number;
|
|
34
|
+
loading?: boolean;
|
|
35
|
+
refresh?: () => void;
|
|
36
|
+
helperMessage?: string;
|
|
37
|
+
onOpen?: (event: React.SyntheticEvent) => void;
|
|
38
|
+
onClose?: (event: React.SyntheticEvent, reason: AutocompleteCloseReason) => void;
|
|
39
|
+
onChangeFilterParmsLocal?: (newValue: string, reason: AutocompleteInputChangeReason) => void;
|
|
40
|
+
multiple?: Multiple;
|
|
41
|
+
type?: AutocompleteType;
|
|
42
|
+
getOptionUrlImage?: (option: T) => string;
|
|
43
|
+
imageScale?: boolean;
|
|
44
|
+
imageRepeat?: boolean;
|
|
45
|
+
customError?: {
|
|
46
|
+
message: string;
|
|
47
|
+
};
|
|
48
|
+
onChange: (event: ChangeEvent<{}> | undefined, value: T | T[] | null, reason: AutocompleteChangeReason) => void;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Represents the owner state of the Autocomplete component for styling purposes.
|
|
52
|
+
*/
|
|
53
|
+
export interface AutocompleteOwnerState extends Pick<AutocompleteProps<any>, 'size' | 'disabled' | 'variant' | 'color'> {
|
|
54
|
+
disabled?: boolean;
|
|
55
|
+
multiple: boolean;
|
|
56
|
+
imageScale?: boolean;
|
|
57
|
+
imageRepeat?: boolean;
|
|
58
|
+
paletteColor: PaletteColor;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Defines the types of Slots available for the Autocomplete.
|
|
62
|
+
*/
|
|
63
|
+
export type AutocompleteSlotsType = keyof typeof AutocompleteSlots;
|
|
64
|
+
/**
|
|
65
|
+
* Styles applicable to the Autocomplete using themes and custom slots.
|
|
66
|
+
*/
|
|
67
|
+
export type AutocompleteStyles = Partial<OverridesStyleRules<AutocompleteSlotsType, typeof AUTOCOMPLETE_KEY_COMPONENT, Theme>> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const BadgeRootStyled: 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"> & {
|
|
2
2
|
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;
|
|
3
|
-
}, "children" | "components" | "color" | "style" | "variant" | "
|
|
3
|
+
}, "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').BadgeOwnerState> & Record<string, unknown> & {
|
|
4
4
|
ownerState: Partial<import('../types').BadgeOwnerState> & Record<string, unknown>;
|
|
5
5
|
}, {}, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const ButtonRootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').ButtonOwnProps & 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" | "variant" | "
|
|
3
|
+
}, "children" | "size" | "action" | "color" | "style" | "disabled" | "variant" | "className" | "classes" | "sx" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "fullWidth" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon">, "children" | "value" | "ref" | "title" | "size" | "name" | "id" | "type" | "action" | "hidden" | "color" | "content" | "style" | "disabled" | "variant" | "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" | "href" | "fullWidth" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').ButtonOwnerState> & Record<string, unknown> & {
|
|
4
4
|
ownerState: Partial<import('..').ButtonOwnerState> & Record<string, unknown>;
|
|
5
5
|
}, {}, {}>;
|
|
6
6
|
declare const SkeletonButtonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').ButtonOwnerState> & Record<string, unknown> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const CheckBoxRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown> & {
|
|
2
2
|
ownerState: Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>;
|
|
3
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').
|
|
3
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
4
|
export declare const MUICheckboxStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').CheckboxProps, keyof import('@mui/material').CheckboxProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown> & {
|
|
5
5
|
ownerState: Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>;
|
|
6
6
|
}, {}, {}>;
|
|
@@ -9,6 +9,6 @@ export declare const LabelCheckBoxStyled: import('@emotion/styled').StyledCompon
|
|
|
9
9
|
}, {}, {}>;
|
|
10
10
|
export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').SkeletonOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
11
11
|
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;
|
|
12
|
-
}, "children" | "style" | "variant" | "width" | "height" | "
|
|
12
|
+
}, "children" | "style" | "variant" | "width" | "height" | "className" | "classes" | "sx" | "animation">, "children" | "ref" | "title" | "id" | "hidden" | "color" | "content" | "style" | "variant" | "width" | "height" | "className" | "classes" | "onChange" | "sx" | "translate" | "animation" | "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"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown> & {
|
|
13
13
|
ownerState: Partial<import('../types').CheckBoxOwnerState> & Record<string, unknown>;
|
|
14
14
|
}, {}, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ChipProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* The Button component renders a button with an optional icon and label.
|
|
4
|
+
* It supports different sizes, colors, and states such as disabled.
|
|
5
|
+
* If the module is in skeleton mode, it renders a skeleton button instead.
|
|
6
|
+
* @param props
|
|
7
|
+
* @returns
|
|
8
|
+
* @author SebastianM - automatic
|
|
9
|
+
* @createdAt 2024-12-02 13:49:12 - automatic
|
|
10
|
+
* @updatedAt 2024-12-03 09:46:12 - automatic
|
|
11
|
+
* @updatedUser SebastianM - automatic
|
|
12
|
+
*/
|
|
13
|
+
export declare const Chip: import('react').ForwardRefExoticComponent<Omit<ChipProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clave de identificación del componente Chip dentro del sistema.
|
|
3
|
+
*
|
|
4
|
+
* Esta constante se utiliza como identificador único para asociar y personalizar estilos y configuraciones
|
|
5
|
+
* relacionadas con el componente `Chip` dentro del sistema de temas y estilos.
|
|
6
|
+
* @default 'M4LChip'
|
|
7
|
+
*/
|
|
8
|
+
export declare const CHIP_KEY_COMPONENT = "M4LChip";
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const ChipRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').ChipOwnerState> & Record<string, unknown> & {
|
|
2
|
+
ownerState: Partial<import('../types').ChipOwnerState> & Record<string, unknown>;
|
|
3
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
|
+
declare const SkeletonChipStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').ChipOwnerState> & Record<string, unknown> & {
|
|
5
|
+
ownerState: Partial<import('../types').ChipOwnerState> & Record<string, unknown>;
|
|
6
|
+
}, {}, {}>;
|
|
7
|
+
declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').ChipOwnerState> & Record<string, unknown> & {
|
|
8
|
+
ownerState: Partial<import('../types').ChipOwnerState> & Record<string, unknown>;
|
|
9
|
+
}, {}, {}>;
|
|
10
|
+
declare const TextChipStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Typography/types').TypographyProps, keyof import('../../Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').ChipOwnerState> & Record<string, unknown> & {
|
|
11
|
+
ownerState: Partial<import('../types').ChipOwnerState> & Record<string, unknown>;
|
|
12
|
+
}, {}, {}>;
|
|
13
|
+
declare const IconButtonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../IconButton/types').IconButtonProps, keyof import('../../IconButton/types').IconButtonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').ChipOwnerState> & Record<string, unknown> & {
|
|
14
|
+
ownerState: Partial<import('../types').ChipOwnerState> & Record<string, unknown>;
|
|
15
|
+
}, {}, {}>;
|
|
16
|
+
export { ChipRootStyled, SkeletonChipStyled, IconStyled, TextChipStyled, IconButtonStyled };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { PaletteColor, Theme } from '@mui/material';
|
|
2
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
3
|
+
import { ChipProps as MUIChipProps } from '@mui/material/Chip';
|
|
4
|
+
import { ComponentPalletColor, Sizes } from '@m4l/styles';
|
|
5
|
+
import { ReactNode } from 'react';
|
|
6
|
+
import { ChipSlots } from './slots';
|
|
7
|
+
import { CHIP_KEY_COMPONENT } from './constants';
|
|
8
|
+
type ChipVariants = 'contained' | 'outlined';
|
|
9
|
+
/**
|
|
10
|
+
* Props for the `Chip` component, extending the original properties of Material UI.
|
|
11
|
+
* [startIcon] - Optional prop for the icon on the left in the `Chip`.
|
|
12
|
+
* [endIcon] - Optional prop for the icon on the right in the `Chip`.
|
|
13
|
+
* label - Text describing the `Chip`.
|
|
14
|
+
* [componentPaletteColor] - Customization of the component's palette color.
|
|
15
|
+
* [disabled] - Indicates if the `Chip` is disabled.
|
|
16
|
+
* [size] - Size of the `Chip` (default 'medium').
|
|
17
|
+
* [error] - Indicates if the `Chip` is in an error state.
|
|
18
|
+
* [variant] - Defines the variant of the `Chip` (default 'contained').
|
|
19
|
+
* [color] - Defines the color of the `Chip`.
|
|
20
|
+
*/
|
|
21
|
+
export interface ChipProps extends Omit<MUIChipProps, 'color' | 'size' | 'variant'> {
|
|
22
|
+
startIcon?: ReactNode;
|
|
23
|
+
endIcon?: ReactNode;
|
|
24
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
label: string;
|
|
27
|
+
variant?: ChipVariants;
|
|
28
|
+
color?: Exclude<ComponentPalletColor, 'primary'>;
|
|
29
|
+
skeletonWidth?: string | number;
|
|
30
|
+
hasIconClose?: boolean;
|
|
31
|
+
opacity?: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Owner state of the `Chip` used to define internal style and behavior properties.
|
|
35
|
+
*/
|
|
36
|
+
export interface ChipOwnerState extends Pick<ChipProps, 'size' | 'variant' | 'color' | 'disabled'> {
|
|
37
|
+
opacity?: boolean;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
paletteColor: PaletteColor;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Defines the types of Slots available for the `Chip`.
|
|
43
|
+
*/
|
|
44
|
+
export type ChipSlotsType = keyof typeof ChipSlots;
|
|
45
|
+
/**
|
|
46
|
+
* Styles applicable to the `Chip` using themes and custom slots.
|
|
47
|
+
*/
|
|
48
|
+
export type ChipStyles = Partial<OverridesStyleRules<ChipSlotsType, typeof CHIP_KEY_COMPONENT, Theme> | undefined> | undefined;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useModuleSkeleton } from "@m4l/core";
|
|
3
|
+
import { a as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
4
|
+
import { S as SkeletonStyled, R as RootStyled } from "./slots/CircularProgressSlots.js";
|
|
5
|
+
import { C as CircularProgressSlots } from "./slots/CircularProgressEnum.js";
|
|
6
|
+
import { C as CIRCULAR_PROGRESS_PREFIX } from "./constants.js";
|
|
7
|
+
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
8
|
+
const CircularProgress = (props) => {
|
|
9
|
+
const { size = "medium", color = "primary", instaceDataTestId, ...others } = props;
|
|
10
|
+
const { currentSize } = useComponentSize(size);
|
|
11
|
+
const isSkeleton = useModuleSkeleton();
|
|
12
|
+
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
13
|
+
const OwnerState = {
|
|
14
|
+
color,
|
|
15
|
+
size: adjustedSize
|
|
16
|
+
};
|
|
17
|
+
if (isSkeleton) {
|
|
18
|
+
return /* @__PURE__ */ jsx(
|
|
19
|
+
SkeletonStyled,
|
|
20
|
+
{
|
|
21
|
+
ownerState: { ...OwnerState },
|
|
22
|
+
...getPropDataTestId(CIRCULAR_PROGRESS_PREFIX, CircularProgressSlots.root, instaceDataTestId)
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
return /* @__PURE__ */ jsx(RootStyled, { ownerState: { ...OwnerState }, ...others });
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
CircularProgress as C
|
|
30
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const circularProgressStyles = {
|
|
2
|
+
/**
|
|
3
|
+
* Slots para estilizar el `root` del componente
|
|
4
|
+
*/
|
|
5
|
+
root: ({ theme, ownerState }) => ({
|
|
6
|
+
//overrides
|
|
7
|
+
color: theme.vars.palette[ownerState.color || "primary"].main,
|
|
8
|
+
//Sizes
|
|
9
|
+
...ownerState.size === "small" && {
|
|
10
|
+
...theme.generalSettings.isMobile ? {
|
|
11
|
+
height: `${theme.vars.size.mobile.small.base} !important`,
|
|
12
|
+
width: `${theme.vars.size.mobile.small.base} !important`
|
|
13
|
+
} : {
|
|
14
|
+
height: `${theme.vars.size.desktop.small.base} !important`,
|
|
15
|
+
width: `${theme.vars.size.desktop.small.base} !important`
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
...ownerState.size === "medium" && {
|
|
19
|
+
...theme.generalSettings.isMobile ? {
|
|
20
|
+
height: `${theme.vars.size.mobile.medium.base} !important`,
|
|
21
|
+
width: `${theme.vars.size.mobile.medium.base} !important`
|
|
22
|
+
} : {
|
|
23
|
+
height: `${theme.vars.size.desktop.medium.base} !important`,
|
|
24
|
+
width: `${theme.vars.size.desktop.medium.base} !important`
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}),
|
|
28
|
+
/**
|
|
29
|
+
* Slots para estilar el `skeleton` del componente
|
|
30
|
+
*/
|
|
31
|
+
skeleton: ({ theme, ownerState }) => ({
|
|
32
|
+
"&.M4lclassCssSpecificity": {
|
|
33
|
+
//Sizes
|
|
34
|
+
...ownerState.size === "small" && {
|
|
35
|
+
...theme.generalSettings.isMobile ? {
|
|
36
|
+
height: theme.vars.size.mobile.small.base,
|
|
37
|
+
width: theme.vars.size.mobile.small.base
|
|
38
|
+
} : {
|
|
39
|
+
height: theme.vars.size.desktop.small.base,
|
|
40
|
+
width: theme.vars.size.desktop.small.base
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
...ownerState.size === "medium" && {
|
|
44
|
+
...theme.generalSettings.isMobile ? {
|
|
45
|
+
height: theme.vars.size.mobile.medium.base,
|
|
46
|
+
width: theme.vars.size.mobile.medium.base
|
|
47
|
+
} : {
|
|
48
|
+
height: theme.vars.size.desktop.medium.base,
|
|
49
|
+
width: theme.vars.size.desktop.medium.base
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
circularProgressStyles as c
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clave de identificación del componente CircularProgress dentro del sistema.
|
|
3
|
+
*
|
|
4
|
+
* Esta constante se utiliza como identificador único para asociar y personalizar estilos y configuraciones
|
|
5
|
+
* relacionadas con el componente `CircularProgress` dentro del sistema de temas y estilos.
|
|
6
|
+
* @default 'M4LCircularProgress'
|
|
7
|
+
*/
|
|
8
|
+
export declare const CIRCULAR_PROGRESS_KEY_COMPONENT = "M4LCircularProgress";
|
|
9
|
+
/**
|
|
10
|
+
* Nombre de clase creado para aportar especificidad a los estilos del componente. Es usado para sobreescribir los estilos de MUI sin
|
|
11
|
+
* tener la necesidad de agregar valores en !important.
|
|
12
|
+
*/
|
|
13
|
+
export declare const CIRCULAR_PROGRESS_PREFIX = "CircularProgress";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const CircularProgress: (props: CircularProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export * from './CircularProgress';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var CircularProgressSlots = /* @__PURE__ */ ((CircularProgressSlots2) => {
|
|
2
|
+
CircularProgressSlots2["root"] = "root";
|
|
3
|
+
CircularProgressSlots2["skeleton"] = "skeleton";
|
|
4
|
+
return CircularProgressSlots2;
|
|
5
|
+
})(CircularProgressSlots || {});
|
|
6
|
+
export {
|
|
7
|
+
CircularProgressSlots as C
|
|
8
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slot root para el componente CircularProgress que extiende de `MUICircularProgress`
|
|
3
|
+
*/
|
|
4
|
+
export declare const RootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').CircularProgressProps, keyof import('@mui/material').CircularProgressProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').CircularProgressOwnerState> & Record<string, unknown> & {
|
|
5
|
+
ownerState: Partial<import('../types').CircularProgressOwnerState> & Record<string, unknown>;
|
|
6
|
+
}, {}, {}>;
|
|
7
|
+
/**
|
|
8
|
+
* Slot skeleton para el componente CircularProgress que es un `Skeleton`
|
|
9
|
+
*/
|
|
10
|
+
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').CircularProgressOwnerState> & Record<string, unknown> & {
|
|
11
|
+
ownerState: Partial<import('../types').CircularProgressOwnerState> & Record<string, unknown>;
|
|
12
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { styled, CircularProgress } from "@mui/material";
|
|
2
|
+
import { c as circularProgressStyles } from "../CircularProgress.styles.js";
|
|
3
|
+
import { a as CIRCULAR_PROGRESS_KEY_COMPONENT } from "../constants.js";
|
|
4
|
+
import { C as CircularProgressSlots } from "./CircularProgressEnum.js";
|
|
5
|
+
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
6
|
+
const RootStyled = styled(CircularProgress, {
|
|
7
|
+
name: CIRCULAR_PROGRESS_KEY_COMPONENT,
|
|
8
|
+
slot: CircularProgressSlots.root
|
|
9
|
+
})(circularProgressStyles?.root);
|
|
10
|
+
const SkeletonStyled = styled(Skeleton, {
|
|
11
|
+
name: CIRCULAR_PROGRESS_KEY_COMPONENT,
|
|
12
|
+
slot: CircularProgressSlots.skeleton
|
|
13
|
+
})(circularProgressStyles?.skeleton);
|
|
14
|
+
export {
|
|
15
|
+
RootStyled as R,
|
|
16
|
+
SkeletonStyled as S
|
|
17
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Sizes, ComponentPalletColor } from '@m4l/styles';
|
|
2
|
+
import { Theme } from '@mui/material';
|
|
3
|
+
import { CircularProgressProps as MUICircularProgressProps } from '@mui/material/CircularProgress';
|
|
4
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
5
|
+
import { CircularProgressSlots } from './slots/CircularProgressEnum';
|
|
6
|
+
import { CIRCULAR_PROGRESS_KEY_COMPONENT } from './constants';
|
|
7
|
+
/**
|
|
8
|
+
* Props del componente `CircularProgress`.
|
|
9
|
+
*
|
|
10
|
+
* Extiende las propiedades del componente de Material-UI (`MUICircularProgressProps`),
|
|
11
|
+
* eliminando las propiedades nativas de HTML mediante `OmitHTMLProps`
|
|
12
|
+
* y omitiendo las propiedades `color` y `size` para redefinirlas con valores personalizados.
|
|
13
|
+
*/
|
|
14
|
+
export interface CircularProgressProps extends Omit<MUICircularProgressProps, 'color' | 'size'> {
|
|
15
|
+
/**
|
|
16
|
+
* Define el color del componente `CircularProgress`.
|
|
17
|
+
* Este debe ser un valor de la paleta de colores personalizada (`ComponentPalletColor`),
|
|
18
|
+
* restringido actualmente al color `primary`.
|
|
19
|
+
*/
|
|
20
|
+
color?: Extract<ComponentPalletColor, 'primary'>;
|
|
21
|
+
/**
|
|
22
|
+
* Tamaño del componente.
|
|
23
|
+
* Solo se aceptan los valores `small` y `medium`, que representan tamaños predefinidos.
|
|
24
|
+
*/
|
|
25
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
26
|
+
/**
|
|
27
|
+
* Identificador opcional para pruebas unitarias.
|
|
28
|
+
* Este valor puede ser utilizado para localizar el componente en el DOM durante pruebas automatizadas.
|
|
29
|
+
*/
|
|
30
|
+
instaceDataTestId?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Estado propietario del componente `CircularProgress`.
|
|
34
|
+
* Contiene una de las props principales.
|
|
35
|
+
*/
|
|
36
|
+
export type CircularProgressOwnerState = Pick<CircularProgressProps, 'size' | 'color'>;
|
|
37
|
+
/**
|
|
38
|
+
* Define los tipos de `slots` disponibles para el componente `CircularProgress`.
|
|
39
|
+
*
|
|
40
|
+
* Los valores corresponden a las claves definidas en `CircularProgressSlots`.
|
|
41
|
+
*/
|
|
42
|
+
export type CircularProgressSlotsType = keyof typeof CircularProgressSlots;
|
|
43
|
+
/**
|
|
44
|
+
* Estilos aplicables al componente `CircularProgress` utilizando el tema y `slots` personalizados.
|
|
45
|
+
*
|
|
46
|
+
* Basado en las reglas de sobrescritura de Material-UI (`OverridesStyleRules`).
|
|
47
|
+
*/
|
|
48
|
+
export type CircularProgressStyles = Partial<OverridesStyleRules<CircularProgressSlotsType, typeof CIRCULAR_PROGRESS_KEY_COMPONENT, Theme>> | undefined;
|