@m4l/components 9.1.9 → 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/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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').InputNumberSpinnerOwnerState> & Record<string, unknown> & {
|
|
2
2
|
ownerState: Partial<import('../types').InputNumberSpinnerOwnerState> & 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 InputStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').InputNumberSpinnerOwnerState> & Record<string, unknown> & {
|
|
5
5
|
ownerState: Partial<import('../types').InputNumberSpinnerOwnerState> & Record<string, unknown>;
|
|
6
6
|
}, Pick<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof import('react').ClassAttributes<HTMLInputElement> | keyof import('react').InputHTMLAttributes<HTMLInputElement>>, {}>;
|
|
@@ -12,6 +12,6 @@ export declare const IconHelperMessageStyled: import('@emotion/styled').StyledCo
|
|
|
12
12
|
}, {}, {}>;
|
|
13
13
|
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"> & {
|
|
14
14
|
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;
|
|
15
|
-
}, "children" | "style" | "variant" | "width" | "height" | "
|
|
15
|
+
}, "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').LabelOwnerState> & Record<string, unknown> & {
|
|
16
16
|
ownerState: Partial<import('../types').LabelOwnerState> & Record<string, unknown>;
|
|
17
17
|
}, {}, {}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LanguagePopoverProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Provee un componente que le permite al usuario cambiar la configuración del idioma en la plataforma.
|
|
4
|
+
* Se debe refactorizar el componente LangueagePopover para recibir la propr de size.
|
|
4
5
|
* @param props
|
|
5
6
|
* @returns
|
|
6
7
|
*/
|
|
@@ -3,7 +3,6 @@ import { useState, useEffect } from "react";
|
|
|
3
3
|
import { Stack, MenuItem } from "@mui/material";
|
|
4
4
|
import { I as Image } from "../Image/Image.js";
|
|
5
5
|
import { useLocales } from "@m4l/graphics";
|
|
6
|
-
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.js";
|
|
7
6
|
import { L as LanguagePopoverRoot, C as ContainerMenuItems, a as ContainerProgress, b as ContainerImage, c as LabelItem } from "./styles.js";
|
|
8
7
|
import { I as ImageButton } from "../mui_extended/ImageButton/ImageButton.js";
|
|
9
8
|
import { useEnvironment, useNetwork } from "@m4l/core";
|
|
@@ -12,6 +11,7 @@ import { T as TEST_PROP_ID } from "../../test/constants_no_mock.js";
|
|
|
12
11
|
import { L as LANGUAGEPOPOVER_KEY_COMPONENT } from "./tests/constants.js";
|
|
13
12
|
import { g as getNameDataTestId } from "../../test/getNameDataTestId.js";
|
|
14
13
|
import { P as Popover } from "../mui_extended/Popover/Popover.js";
|
|
14
|
+
import { C as CircularProgress } from "../mui_extended/CircularProgress/CircularProgress.js";
|
|
15
15
|
function LanguagePopover(props) {
|
|
16
16
|
const { testingProps, dataTestId } = props;
|
|
17
17
|
const { currentLocale, onChangeLocale } = useLocales();
|
|
@@ -105,7 +105,7 @@ function LanguagePopover(props) {
|
|
|
105
105
|
{
|
|
106
106
|
className: classes.containerProgress,
|
|
107
107
|
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId(LANGUAGEPOPOVER_KEY_COMPONENT, "containerProgress", dataTestId) } : {},
|
|
108
|
-
children: /* @__PURE__ */ jsx(CircularProgress, { size: "
|
|
108
|
+
children: /* @__PURE__ */ jsx(CircularProgress, { size: "small" })
|
|
109
109
|
}
|
|
110
110
|
),
|
|
111
111
|
allLocales.length > 0 && /* Stack, MenuItem, Image, LabelItem: El grupo de componentes conforma las opciones del menú de idioma,
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ModalDialog Component
|
|
3
|
+
*
|
|
4
|
+
* This component is a customizable modal dialog that supports draggable and resizable windows
|
|
5
|
+
* for non-mobile and non-fullscreen modes. It renders a basic fullscreen view for mobile and fullscreen scenarios.
|
|
6
|
+
*
|
|
7
|
+
* ### Features:
|
|
8
|
+
* - **Fullscreen Support:** Renders a fullscreen modal dialog when `fullScreen` is enabled or when viewed on a mobile device.
|
|
9
|
+
* - **Draggable and Resizable:** For non-mobile and non-fullscreen modes, the modal is draggable and resizable.
|
|
10
|
+
* - **Dynamic Sizing:** Accepts initial width, height, and maximum constraints for the dialog's dimensions.
|
|
11
|
+
* - **Custom Content:** The dialog's content is dynamically rendered using the `window` prop.
|
|
12
|
+
*
|
|
13
|
+
* ### Props:
|
|
14
|
+
* The component leverages the `useModal` hook for the following properties:
|
|
15
|
+
* - **open** (`boolean`): Controls the visibility of the modal dialog.
|
|
16
|
+
* - **initialWidth** (`number`): Initial width of the dialog in pixels. Default is `600px`.
|
|
17
|
+
* - **initialHeight** (`number`): Initial height of the dialog in pixels. Default is `400px`.
|
|
18
|
+
* - **maxWidth** (`number` | `undefined`): Maximum width of the dialog.
|
|
19
|
+
* - **maxHeight** (`number` | `undefined`): Maximum height of the dialog.
|
|
20
|
+
* - **fullScreen** (`boolean`): Enables fullscreen mode.
|
|
21
|
+
* - **variant** (`string`): Defines the style variant for the modal dialog.
|
|
22
|
+
* - **window** (`ReactNode` | `() => ReactNode`): Content to display inside the modal dialog.
|
|
23
|
+
* - **closeModal** (`VoidFunction`): Callback to close the modal dialog.
|
|
24
|
+
*
|
|
25
|
+
* ### Dependencies:
|
|
26
|
+
* - **useModal**: Supplies the modal dialog properties.
|
|
27
|
+
* - **useIsMobile**: Determines if the current environment is mobile.
|
|
28
|
+
* - **useStateRef**: Provides a mutable reference to the modal dialog for resizing and dragging.
|
|
29
|
+
* - **BaseProvider**: Supplies dimension properties (`initialWidth`, `initialHeight`, etc.) to the children.
|
|
30
|
+
*
|
|
31
|
+
* ### Behavior:
|
|
32
|
+
* - Selects `PaperComponent` for fullscreen and mobile views.
|
|
33
|
+
* - Selects `DraggablePaperComponent` for non-mobile, non-fullscreen views.
|
|
34
|
+
* - Dynamically updates the fullscreen mode when the `fullScreen` prop changes.
|
|
35
|
+
*
|
|
36
|
+
* ### Example Usage:
|
|
37
|
+
* ```tsx
|
|
38
|
+
* import { ModalDialog } from './ModalDialog';
|
|
39
|
+
* import { useModal } from './hooks/useModal';
|
|
40
|
+
*
|
|
41
|
+
* const App = () => {
|
|
42
|
+
* const { openModal } = useModal();
|
|
43
|
+
*
|
|
44
|
+
* return (
|
|
45
|
+
* <div>
|
|
46
|
+
* <button onClick={() => openModal({ fullScreen: false })}>Open Modal</button>
|
|
47
|
+
* <ModalDialog />
|
|
48
|
+
* </div>
|
|
49
|
+
* );
|
|
50
|
+
* };
|
|
51
|
+
* ```
|
|
52
|
+
* @author cesar - automatic
|
|
53
|
+
* @createdAt 2024-11-28 08:35:15 - automatic
|
|
54
|
+
* @updatedAt 2024-12-02 17:50:36 - automatic
|
|
55
|
+
* @updatedUser cesar - automatic
|
|
56
|
+
*/
|
|
57
|
+
export declare const ModalDialog: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { u as useModal } from "../../hooks/useModal/index.js";
|
|
3
|
+
import { useIsMobile } from "@m4l/graphics";
|
|
4
|
+
import { useState, useEffect } from "react";
|
|
5
|
+
import { u as useStateRef } from "../../hooks/useStateRef/index.js";
|
|
6
|
+
import { BaseProvider, useBase } from "@m4l/core";
|
|
7
|
+
import { C as ContentComponent, D as DialogRootStyled, a as DragResizeWindowStyled, P as PaperModalDialogStyled, M as ModalDialogRootStyled } from "./slots/ModalDialogSlots.js";
|
|
8
|
+
const DraggablePaperComponent = (ref, setRef) => {
|
|
9
|
+
return (props) => {
|
|
10
|
+
const { initialWidth, initialHeight, maxWidth, maxHeight } = useBase();
|
|
11
|
+
if (!ref) {
|
|
12
|
+
return props.children;
|
|
13
|
+
}
|
|
14
|
+
const topPosition = Math.max(0, window.innerHeight / 2 - (initialHeight ?? 100) / 2);
|
|
15
|
+
const leftPosition = Math.max(0, window.innerWidth / 2 - (initialWidth ?? 100) / 2);
|
|
16
|
+
return /* @__PURE__ */ jsx(
|
|
17
|
+
DragResizeWindowStyled,
|
|
18
|
+
{
|
|
19
|
+
containerElement: ref,
|
|
20
|
+
minWindowWidth: maxWidth,
|
|
21
|
+
minWindowHeight: maxHeight,
|
|
22
|
+
bounds: { left: 0, top: 0, right: 0, bottom: 0 },
|
|
23
|
+
resizeHandles: ["se", "nw", "sw", "ne", "n", "e", "s", "w"],
|
|
24
|
+
defaultPosition: {
|
|
25
|
+
vertical: { top: topPosition, height: initialHeight ?? 100 },
|
|
26
|
+
horizontal: { left: leftPosition, width: initialWidth ?? 100 }
|
|
27
|
+
},
|
|
28
|
+
children: /* @__PURE__ */ jsx(PaperModalDialogStyled, { ref: setRef, ...props, children: props.children })
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
const PaperComponent = (props) => {
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
35
|
+
ModalDialogRootStyled,
|
|
36
|
+
{
|
|
37
|
+
...props
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
const ModalDialog = () => {
|
|
42
|
+
const {
|
|
43
|
+
open,
|
|
44
|
+
initialWidth = 600,
|
|
45
|
+
initialHeight = 400,
|
|
46
|
+
maxWidth,
|
|
47
|
+
maxHeight,
|
|
48
|
+
window: window2,
|
|
49
|
+
fullScreen,
|
|
50
|
+
variant,
|
|
51
|
+
closeModal
|
|
52
|
+
} = useModal();
|
|
53
|
+
const isMobile = useIsMobile();
|
|
54
|
+
const [isFullScreenMode, setIsFullScreenMode] = useState(fullScreen);
|
|
55
|
+
const [ref, setRef] = useStateRef(null);
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
setIsFullScreenMode(fullScreen);
|
|
58
|
+
}, [fullScreen]);
|
|
59
|
+
const ownerState = {
|
|
60
|
+
windowConfirmVariant: variant
|
|
61
|
+
};
|
|
62
|
+
const contentComponent = /* @__PURE__ */ jsx(ContentComponent, { children: typeof window2 === "function" ? window2() : window2 });
|
|
63
|
+
const SelectedPaperComponent = isFullScreenMode || isMobile ? PaperComponent : DraggablePaperComponent(ref, setRef);
|
|
64
|
+
return /* @__PURE__ */ jsx(
|
|
65
|
+
BaseProvider,
|
|
66
|
+
{
|
|
67
|
+
value: {
|
|
68
|
+
initialWidth,
|
|
69
|
+
initialHeight,
|
|
70
|
+
maxWidth,
|
|
71
|
+
maxHeight
|
|
72
|
+
},
|
|
73
|
+
children: /* @__PURE__ */ jsx(
|
|
74
|
+
DialogRootStyled,
|
|
75
|
+
{
|
|
76
|
+
ref: setRef,
|
|
77
|
+
role: "dialog-modal",
|
|
78
|
+
"data-fullscreen": isFullScreenMode || isMobile ? "true" : "false",
|
|
79
|
+
ownerState,
|
|
80
|
+
open,
|
|
81
|
+
onClose: closeModal,
|
|
82
|
+
fullScreen: isFullScreenMode || isMobile,
|
|
83
|
+
"aria-labelledby": "child-modal-title",
|
|
84
|
+
PaperComponent: SelectedPaperComponent,
|
|
85
|
+
disableEnforceFocus: true,
|
|
86
|
+
children: contentComponent
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
ModalDialog as M
|
|
94
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const modalDialogStyles = {
|
|
2
|
+
/**
|
|
3
|
+
* Modal Dialog Root style
|
|
4
|
+
* @author cesar - automatic
|
|
5
|
+
* @createdAt 2024-11-26 08:22:10 - automatic
|
|
6
|
+
* @updatedAt 2024-11-29 09:50:22 - automatic
|
|
7
|
+
* @updatedUser cesar - automatic
|
|
8
|
+
*/
|
|
9
|
+
modalDialogRoot: () => ({
|
|
10
|
+
position: "absolute",
|
|
11
|
+
left: "10px",
|
|
12
|
+
top: "10px",
|
|
13
|
+
right: "10px",
|
|
14
|
+
bottom: "10px"
|
|
15
|
+
}),
|
|
16
|
+
/**
|
|
17
|
+
* Modal Dialog Content style
|
|
18
|
+
* @author cesar - automatic
|
|
19
|
+
* @createdAt 2024-11-29 07:54:20 - automatic
|
|
20
|
+
* @updatedAt 2024-11-29 09:50:22 - automatic
|
|
21
|
+
* @updatedUser cesar - automatic
|
|
22
|
+
*/
|
|
23
|
+
contentComponent: () => ({
|
|
24
|
+
width: "100%",
|
|
25
|
+
height: "100%"
|
|
26
|
+
}),
|
|
27
|
+
/**
|
|
28
|
+
* Modal Dialog Paper style
|
|
29
|
+
* @author cesar - automatic
|
|
30
|
+
* @createdAt 2024-11-27 15:21:40 - automatic
|
|
31
|
+
* @updatedAt 2024-11-29 09:50:22 - automatic
|
|
32
|
+
* @updatedUser cesar - automatic
|
|
33
|
+
*/
|
|
34
|
+
paperModalDialog: () => ({
|
|
35
|
+
height: "100%",
|
|
36
|
+
padding: 0,
|
|
37
|
+
margin: "0 !important",
|
|
38
|
+
position: "absolute",
|
|
39
|
+
background: "transparent"
|
|
40
|
+
})
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
modalDialogStyles as m
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MODAL_DIALOG_KEY_COMPONENT = "M4LModalDialog";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getCommonActionsDictionary } from "
|
|
1
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/dictionary.js";
|
|
2
2
|
function getModalDialogComponentsDictionary() {
|
|
3
3
|
return ["modal_dialog"].concat(getCommonActionsDictionary());
|
|
4
4
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './ModalDialog.styles';
|
|
2
|
+
export * from './ModalDialog';
|
|
3
|
+
export * from './constants';
|
|
4
|
+
export * from './dictionary';
|
|
5
|
+
export * from './slots/ModalDialogEnum';
|
|
6
|
+
export * from './slots/ModalDialogSlots';
|
|
7
|
+
export * from './subcomponents/ResizeHandle/index';
|
|
8
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var ModalDialogSlots = /* @__PURE__ */ ((ModalDialogSlots2) => {
|
|
2
|
+
ModalDialogSlots2["modalDialogRoot"] = "modalDialogRoot";
|
|
3
|
+
ModalDialogSlots2["dialogRoot"] = "dialogRoot";
|
|
4
|
+
ModalDialogSlots2["contentComponent"] = "contentComponent";
|
|
5
|
+
ModalDialogSlots2["dragResizeWindow"] = "dragResizeWindow";
|
|
6
|
+
ModalDialogSlots2["paperModalDialog"] = "paperModalDialog";
|
|
7
|
+
return ModalDialogSlots2;
|
|
8
|
+
})(ModalDialogSlots || {});
|
|
9
|
+
export {
|
|
10
|
+
ModalDialogSlots as M
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const ModalDialogRootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').PaperOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, "children" | "style" | "square" | "variant" | "className" | "classes" | "elevation" | "sx">, "children" | "ref" | "title" | "id" | "hidden" | "color" | "content" | "style" | "square" | "variant" | "className" | "classes" | "onChange" | "elevation" | "sx" | "translate" | "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> & Record<string, unknown>, {}, {}>;
|
|
4
|
+
export declare const DialogRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/Dialog').DialogProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "children" | "onClose" | "title" | "component" | "scroll" | "id" | "container" | "components" | "hidden" | "color" | "content" | "style" | "open" | "variant" | "maxWidth" | "className" | "classes" | "onChange" | "sx" | "transitionDuration" | "translate" | "TransitionComponent" | "TransitionProps" | "slots" | "slotProps" | "slot" | "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" | "dataTestId" | "fullScreen" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "onTransitionEnter" | "onTransitionExited" | "fullWidth" | "PaperComponent" | "PaperProps" | keyof import('react').RefAttributes<HTMLDivElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, {}, {}>;
|
|
5
|
+
export declare const ContentComponent: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
6
|
+
export declare const DragResizeWindowStyled: import('@emotion/styled').StyledComponent<Pick<import('../../DragResizeWindow/types').DragResizeWindowProps & import('react').RefAttributes<HTMLDivElement>, keyof import('../../DragResizeWindow/types').DragResizeWindowProps | keyof import('react').RefAttributes<HTMLDivElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, {}, {}>;
|
|
7
|
+
export declare const PaperModalDialogStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').PaperOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
|
+
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
9
|
+
}, "children" | "style" | "square" | "variant" | "className" | "classes" | "elevation" | "sx">, "children" | "ref" | "title" | "id" | "hidden" | "color" | "content" | "style" | "square" | "variant" | "className" | "classes" | "onChange" | "elevation" | "sx" | "translate" | "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> & Record<string, unknown>, {}, {}>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { M as MODAL_DIALOG_KEY_COMPONENT } from "../constants.js";
|
|
3
|
+
import { M as ModalDialogSlots } from "./ModalDialogEnum.js";
|
|
4
|
+
import { m as modalDialogStyles } from "../ModalDialog.styles.js";
|
|
5
|
+
import { Paper } from "@mui/material";
|
|
6
|
+
import { D as Dialog } from "../../mui_extended/Dialog/Dialog.js";
|
|
7
|
+
import { D as DragResizeWindow } from "../../DragResizeWindow/DragResizeWindow.js";
|
|
8
|
+
const ModalDialogRootStyled = styled(Paper, {
|
|
9
|
+
name: MODAL_DIALOG_KEY_COMPONENT,
|
|
10
|
+
slot: ModalDialogSlots.modalDialogRoot
|
|
11
|
+
})(modalDialogStyles?.modalDialogRoot);
|
|
12
|
+
const DialogRootStyled = styled(Dialog, {
|
|
13
|
+
name: MODAL_DIALOG_KEY_COMPONENT,
|
|
14
|
+
slot: ModalDialogSlots.dialogRoot
|
|
15
|
+
})(modalDialogStyles?.dialogRoot);
|
|
16
|
+
const ContentComponent = styled("div", {
|
|
17
|
+
name: MODAL_DIALOG_KEY_COMPONENT,
|
|
18
|
+
slot: ModalDialogSlots.contentComponent
|
|
19
|
+
})(modalDialogStyles?.contentComponent);
|
|
20
|
+
const DragResizeWindowStyled = styled(DragResizeWindow, {
|
|
21
|
+
name: MODAL_DIALOG_KEY_COMPONENT,
|
|
22
|
+
slot: ModalDialogSlots.dragResizeWindow
|
|
23
|
+
})(modalDialogStyles?.dragResizeWindow);
|
|
24
|
+
const PaperModalDialogStyled = styled(Paper, {
|
|
25
|
+
name: MODAL_DIALOG_KEY_COMPONENT,
|
|
26
|
+
slot: ModalDialogSlots.paperModalDialog
|
|
27
|
+
})(modalDialogStyles?.paperModalDialog);
|
|
28
|
+
export {
|
|
29
|
+
ContentComponent as C,
|
|
30
|
+
DialogRootStyled as D,
|
|
31
|
+
ModalDialogRootStyled as M,
|
|
32
|
+
PaperModalDialogStyled as P,
|
|
33
|
+
DragResizeWindowStyled as a
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
2
|
+
import { VariantColor } from '../../utils/types';
|
|
3
|
+
import { MODAL_DIALOG_KEY_COMPONENT } from './constants';
|
|
4
|
+
import { Theme } from '@mui/material';
|
|
5
|
+
import { ModalDialogSlots } from './slots';
|
|
6
|
+
export type ModalDialogType = keyof typeof ModalDialogSlots;
|
|
7
|
+
export interface DialogProperties {
|
|
8
|
+
initialWidth: number;
|
|
9
|
+
initialHeight: number;
|
|
10
|
+
maxWidth?: number;
|
|
11
|
+
maxHeight?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface VariantProps {
|
|
14
|
+
variant?: VariantColor;
|
|
15
|
+
}
|
|
16
|
+
export type ModalDialogStyles = Partial<OverridesStyleRules<ModalDialogType, typeof MODAL_DIALOG_KEY_COMPONENT, Theme> | undefined> | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -3,7 +3,7 @@ import { NavLinkProps } from './types';
|
|
|
3
3
|
* TODO: Documentar
|
|
4
4
|
* @author Bruce Escobar - automatic
|
|
5
5
|
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
6
|
-
* @updatedAt 2024-
|
|
7
|
-
* @updatedUser
|
|
6
|
+
* @updatedAt 2024-11-25 09:34:36 - automatic
|
|
7
|
+
* @updatedUser cesar - automatic
|
|
8
8
|
*/
|
|
9
9
|
export declare const NavLink: (props: NavLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx, jsxs
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { NavLink as NavLink$1 } from "react-router-dom";
|
|
3
3
|
import { u as useUtilityClasses } from "./classes/index.js";
|
|
4
4
|
import { N as NavLinkRoot } from "./styles.js";
|
|
@@ -13,7 +13,7 @@ const NavLink = (props) => {
|
|
|
13
13
|
{
|
|
14
14
|
className: classes.root,
|
|
15
15
|
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("root") } : {},
|
|
16
|
-
children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ jsxs(NavLink$1, { ...others, children: [
|
|
17
17
|
/* @__PURE__ */ jsx(
|
|
18
18
|
Typography,
|
|
19
19
|
{
|
|
@@ -22,8 +22,8 @@ const NavLink = (props) => {
|
|
|
22
22
|
children: text
|
|
23
23
|
}
|
|
24
24
|
),
|
|
25
|
-
children
|
|
26
|
-
] })
|
|
25
|
+
typeof children === "function" ? children({ isActive: false }) : children
|
|
26
|
+
] })
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
29
|
};
|
|
@@ -6,7 +6,7 @@ import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
|
6
6
|
import { I as Icon } from "../../../Icon/Icon.js";
|
|
7
7
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
8
8
|
import { S as Stack } from "../../../mui_extended/Stack/Stack.js";
|
|
9
|
-
import { W as WindowBase } from "../../../
|
|
9
|
+
import { W as WindowBase } from "../../../WindowBase/WindowBase.js";
|
|
10
10
|
function DetailFormatter(props) {
|
|
11
11
|
const { log_id } = props;
|
|
12
12
|
const { openModal } = useModal();
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { PaperFormProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* **********************************************************************
|
|
4
|
+
* PaperForm Component representa un contenedor para agrupar secciones
|
|
5
|
+
* con un encabezado, icono y children tipo ReactNode para representar
|
|
6
|
+
* un formulario o cualquier otro contenido.
|
|
7
|
+
* **********************************************************************
|
|
8
|
+
* @author Andrés Quintero - automatic
|
|
9
|
+
* @createdAt 2024-11-20 14:00:24 - automatic
|
|
10
|
+
* @updatedAt 2024-11-22 11:15:45 - automatic
|
|
11
|
+
* @updatedUser Andrés Quintero - automatic
|
|
4
12
|
*/
|
|
5
13
|
export declare function PaperForm(props: PaperFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { P as PaperFormRoot, C as Content } from "./styles.js";
|
|
3
2
|
import { H as Header } from "./components/Header.js";
|
|
4
|
-
import {
|
|
3
|
+
import { P as PaperFormRootStyled, C as ContentStyled } from "./slots/PaperFormSlots.js";
|
|
4
|
+
import { useRef } from "react";
|
|
5
|
+
import { g as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
6
|
+
import { P as PAPER_FORM_KEY } from "./constants.js";
|
|
5
7
|
function PaperForm(props) {
|
|
6
|
-
const { urlIcon, title, children,
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/* @__PURE__ */ jsx(Header, { urlIcon, title, classes }),
|
|
13
|
-
/* @__PURE__ */ jsx(Content, { className: classes.content, children })
|
|
8
|
+
const { urlIcon, title, children, dataTestId, color = "default", size } = props;
|
|
9
|
+
const paperFormRef = useRef(null);
|
|
10
|
+
const rootClass = getComponentSlotRoot(PAPER_FORM_KEY);
|
|
11
|
+
return /* @__PURE__ */ jsxs(PaperFormRootStyled, { className: rootClass, ref: paperFormRef, ownerState: {}, ...process.env.NODE_ENV !== "production" ? { "data-testid": dataTestId } : {}, children: [
|
|
12
|
+
/* @__PURE__ */ jsx(Header, { urlIcon, title, color, size }),
|
|
13
|
+
/* @__PURE__ */ jsx(ContentStyled, { ownerState: {}, children })
|
|
14
14
|
] });
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { HeaderProps } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Componente que representa el encabezado del PaperForm
|
|
4
|
+
* este encabezado contiene un icono y un título
|
|
5
|
+
* @author Andrés Quintero - automatic
|
|
6
|
+
* @param props - Propiedades del componente
|
|
7
|
+
* @returns JSX.Element
|
|
8
|
+
* @createdAt 2024-11-21 11:29:19 - automatic
|
|
9
|
+
* @updatedAt 2024-12-03 11:01:24 - automatic
|
|
10
|
+
* @updatedUser Andrés Quintero - automatic
|
|
4
11
|
*/
|
|
5
12
|
export declare const Header: (props: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useModuleSkeleton } from "@m4l/core";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { H as HeaderContainer, I as IconTitleContainer, a as IconHeader, S as SkTPaperFormHeader } from "../styles.js";
|
|
3
|
+
import { H as HeaderStyled, I as IconStyled, T as TitleStyled } from "../slots/PaperFormSlots.js";
|
|
4
|
+
import { S as Skeleton } from "../../mui_extended/Skeleton/Skeleton.js";
|
|
6
5
|
const Header = (props) => {
|
|
7
|
-
const { urlIcon, title,
|
|
6
|
+
const { urlIcon, title, size, dataTestId, color } = props;
|
|
8
7
|
const isSkeleton = useModuleSkeleton();
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
const ownerState = {
|
|
9
|
+
color
|
|
10
|
+
};
|
|
11
|
+
const renderSkeleton = () => {
|
|
12
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
13
|
+
urlIcon ? /* @__PURE__ */ jsx(Skeleton, { variant: "circular", width: 16, height: 16 }) : null,
|
|
14
|
+
/* @__PURE__ */ jsx(Skeleton, { variant: "text", width: 80, height: 16 })
|
|
15
|
+
] });
|
|
16
|
+
};
|
|
17
|
+
const renderContentHeader = () => {
|
|
18
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19
|
+
urlIcon ? /* @__PURE__ */ jsx(IconStyled, { ownerState: {}, src: urlIcon, size }) : null,
|
|
20
|
+
/* @__PURE__ */ jsx(TitleStyled, { ownerState: {}, variant: "bodyDens", size, children: title })
|
|
21
|
+
] });
|
|
22
|
+
};
|
|
23
|
+
return /* @__PURE__ */ jsx(HeaderStyled, { role: "heading", ownerState, ...process.env.NODE_ENV !== "production" ? { "data-testid": dataTestId } : {}, children: isSkeleton ? renderSkeleton() : renderContentHeader() });
|
|
16
24
|
};
|
|
17
25
|
export {
|
|
18
26
|
Header as H
|