@m4l/components 0.1.62 → 0.1.63
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/export.d.ts +45 -4
- package/components/AccountPopover/AccountPopover.d.ts +2 -0
- package/components/AccountPopover/classes/constants.d.ts +1 -0
- package/components/AccountPopover/classes/index.d.ts +7 -0
- package/components/AccountPopover/classes/types.d.ts +5 -0
- package/components/AccountPopover/index.d.ts +2 -0
- package/components/AccountPopover/style.d.ts +2 -0
- package/components/AccountPopover/subcomponents/PopOver/index.d.ts +2 -0
- package/components/AccountPopover/subcomponents/PopOver/styles.d.ts +8 -0
- package/components/AccountPopover/subcomponents/PopOver/types.d.ts +9 -0
- package/components/AccountPopover/types.d.ts +28 -0
- package/components/AppBar/AppBar.d.ts +2 -0
- package/components/AppBar/classes/constants.d.ts +1 -0
- package/components/AppBar/classes/index.d.ts +6 -0
- package/components/AppBar/classes/types.d.ts +4 -0
- package/components/AppBar/index.d.ts +1 -0
- package/components/AppBar/styles.d.ts +2 -0
- package/components/AppBar/subcomponents/MyAvatar/createAvatar.d.ts +4 -0
- package/components/AppBar/subcomponents/MyAvatar/index.d.ts +2 -0
- package/components/AppBar/tests/constants.d.ts +1 -0
- package/components/AppBar/tests/utils.d.ts +2 -0
- package/components/AppBar/types.d.ts +9 -0
- package/components/CommonActions/components/ActionCancel/{index.a81752ef.js → index.2eb2c1e1.js} +1 -1
- package/components/CommonActions/components/ActionCancel/index.d.ts +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.2124a98a.js → index.2864d574.js} +16 -17
- package/components/CommonActions/components/ActionFormIntro/index.d.ts +2 -2
- package/components/CommonActions/components/ActionFormIntro/{index.ca4d2674.js → index.e7f83ddd.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.3f75a205.js → index.0d138cb3.js} +2 -2
- package/components/CommonActions/components/ActionIntro/index.d.ts +2 -2
- package/components/CommonActions/components/Actions/{index.6eb24c0b.js → index.433cd345.js} +17 -15
- package/components/CommonActions/components/Actions/styles.d.ts +2 -0
- package/components/DataGrid/{index.58f35158.js → index.42521a55.js} +24 -22
- package/components/DataGrid/styles.d.ts +3 -0
- package/components/DataGrid/subcomponents/Actions/styles.d.ts +2 -0
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/styles.d.ts +3 -0
- package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/styles.d.ts +2 -0
- package/components/DataGrid/subcomponents/Actions/subcomponents/RowsCount/styles.d.ts +4 -0
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/styles.d.ts +2 -0
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +8 -0
- package/components/DataGrid/subcomponents/Table/styles.d.ts +3 -0
- package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/styles.d.ts +2 -0
- package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +6 -0
- package/components/DynamicFilter/{index.10f901c6.js → index.442bda79.js} +38 -37
- package/components/DynamicFilter/subcomponents/ApplyedFilters/styles.d.ts +3 -0
- package/components/DynamicFilter/subcomponents/ApplyedFilters/subcomponents/ApplyedFilter/styles.d.ts +6 -0
- package/components/DynamicFilter/subcomponents/ClearFilters/styles.d.ts +3 -0
- package/components/DynamicFilter/subcomponents/FilterButton/styles.d.ts +3 -0
- package/components/DynamicFilter/subcomponents/InnerForHooks/styles.d.ts +3 -0
- package/components/DynamicFilter/subcomponents/InputFilter/styles.d.ts +2 -0
- package/components/DynamicFilter/subcomponents/PopoverFilter/styles.d.ts +3 -0
- package/components/DynamicFilter/subcomponents/fieldstypes/BooleanFilter/styles.d.ts +2 -0
- package/components/DynamicFilter/subcomponents/fieldstypes/DateTimeFilter/styles.d.ts +2 -0
- package/components/DynamicFilter/subcomponents/fieldstypes/NumberFilter/styles.d.ts +2 -0
- package/components/DynamicFilter/subcomponents/fieldstypes/StringFilter/styles.d.ts +2 -0
- package/components/HelperText/index.3c07ca2a.js +70 -0
- package/components/HelperText/index.d.ts +10 -0
- package/components/HelperText/styles.d.ts +2 -0
- package/components/HelperText/types.d.ts +8 -0
- package/components/HelperText/utils/Clases/constant.d.ts +1 -0
- package/components/HelperText/utils/Clases/index.d.ts +7 -0
- package/components/HelperText/utils/Clases/types.d.ts +7 -0
- package/components/Icon/classes/index.d.ts +1 -1
- package/components/Icon/classes/types.d.ts +3 -8
- package/components/Icon/index.0f9b360e.js +200 -0
- package/components/Icon/styles.d.ts +4 -0
- package/components/Icon/tests/constants.d.ts +1 -0
- package/components/Icon/tests/utils.d.ts +2 -0
- package/components/Icon/types.d.ts +3 -4
- package/components/Image/{index.aa24e982.js → index.1a9c0327.js} +124 -56
- package/components/Image/styles.d.ts +3 -0
- package/components/Image/subcomponents/LazyLoadComponent/styles.d.ts +2 -0
- package/components/Image/subcomponents/Skeleton/styles.d.ts +2 -0
- package/components/Image/subcomponents/Skeleton/types.d.ts +2 -0
- package/components/Image/tests/constants.d.ts +1 -0
- package/components/Image/tests/utils.d.ts +2 -0
- package/components/Image/types.d.ts +9 -2
- package/components/Image/utils/classes/types.d.ts +1 -0
- package/components/Image/utils/getRatioValues.d.ts +5 -0
- package/components/LanguagePopover/classes/types.d.ts +1 -0
- package/components/LanguagePopover/{index.df9b47a6.js → index.68de7176.js} +49 -25
- package/components/LanguagePopover/styles.d.ts +6 -0
- package/components/LanguagePopover/tests/constants.d.ts +1 -0
- package/components/LanguagePopover/tests/utils.d.ts +2 -0
- package/components/ModalDialog/{index.dc7ebe06.js → index.3efe049b.js} +5 -5
- package/components/NavLink/NavLink.d.ts +2 -0
- package/components/NavLink/classes/constant.d.ts +1 -0
- package/components/NavLink/classes/index.d.ts +6 -0
- package/components/NavLink/classes/types.d.ts +4 -0
- package/components/NavLink/index.ae9f1cc9.js +74 -0
- package/components/NavLink/index.d.ts +1 -0
- package/components/NavLink/styles.d.ts +2 -0
- package/components/NavLink/tests/constants.d.ts +1 -0
- package/components/NavLink/tests/utils.d.ts +2 -0
- package/components/NavLink/types.d.ts +5 -0
- package/components/NoItemSelected/{index.9636ec8a.js → index.7cfd7613.js} +2 -4
- package/components/NoItemSelected/styles.d.ts +5 -0
- package/components/ObjectLogs/components/DetailDialog/styles.d.ts +3 -0
- package/components/ObjectLogs/{index.38c2ad18.js → index.b50726fb.js} +20 -18
- package/components/ObjectLogs/styles.d.ts +4 -0
- package/components/PaperForm/{index.3cdac885.js → index.44bf4469.js} +1 -1
- package/components/PaperForm/styles.d.ts +7 -0
- package/components/Period/{index.796b3af4.js → index.99feb99e.js} +18 -17
- package/components/Period/styles.d.ts +7 -0
- package/components/PropertyValue/styles.d.ts +6 -0
- package/components/Resizeable/{index.04fa8de5.js → index.b5d42efb.js} +1 -1
- package/components/ResizeableWindow/styles.d.ts +5 -0
- package/components/ScrollBar/{index.b77feabd.js → index.bbe48f4d.js} +7 -2
- package/components/ScrollBar/styles.d.ts +8 -0
- package/components/SideBar/SideBar.d.ts +2 -0
- package/components/SideBar/classes/constants.d.ts +1 -0
- package/components/SideBar/classes/index.d.ts +37 -0
- package/components/SideBar/classes/types.d.ts +37 -0
- package/components/SideBar/context/sideBarContext/index.d.ts +5 -0
- package/components/SideBar/context/sideBarContext/types.d.ts +9 -0
- package/components/SideBar/hooks/useSideBar/index.d.ts +2 -0
- package/components/SideBar/index.011880b6.js +1010 -0
- package/components/SideBar/index.d.ts +2 -0
- package/components/SideBar/styles.d.ts +5 -0
- package/components/SideBar/subcomponents/ContentDesktop/index.d.ts +1 -0
- package/components/SideBar/subcomponents/ContentDesktop/style.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/index.d.ts +6 -0
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/styles.d.ts +3 -0
- package/components/SideBar/subcomponents/ContentGroups/index.d.ts +1 -0
- package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +5 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/index.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/index.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/types.d.ts +3 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/index.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/styles.d.ts +9 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/index.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/styles.d.ts +3 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/type.d.ts +9 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/type.d.ts +14 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/index.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/index.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/index.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +22 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/types.d.ts +7 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/types.d.ts +13 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/type.d.ts +12 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/types.d.ts +13 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/index.d.ts +1 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/styles.d.ts +5 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/types.d.ts +3 -0
- package/components/SideBar/subcomponents/ContentGroups/type.d.ts +7 -0
- package/components/SideBar/subcomponents/ContentMobile/index.d.ts +1 -0
- package/components/SideBar/subcomponents/ContentMobile/styles.d.ts +3 -0
- package/components/SideBar/tests/constants.d.ts +5 -0
- package/components/SideBar/tests/utils.d.ts +2 -0
- package/components/SideBar/types.d.ts +29 -0
- package/components/SplitLayout/styles.d.ts +4 -0
- package/components/animate/LoadingScreen/styles.d.ts +3 -0
- package/components/animate/PropagateLoader/syles.d.ts +2 -0
- package/components/areas/components/Area/styles.d.ts +6 -0
- package/components/areas/components/AreasAdmin/{index.645bd2c7.js → index.51e28f63.js} +11 -10
- package/components/areas/components/AreasAdmin/styles.d.ts +2 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.d.ts +3 -0
- package/components/areas/components/AreasContainer/{index.3e74c849.js → index.1e5e6e91.js} +3 -3
- package/components/areas/components/AreasContainer/styles.d.ts +2 -0
- package/components/areas/components/GridLayout/{index.50810712.js → index.5bf8d5e4.js} +5 -5
- package/components/areas/components/GridLayout/styles.d.ts +7 -0
- package/components/areas/components/Window/{index.8040dbe4.js → index.416a874f.js} +49 -49
- package/components/areas/components/Window/styles.d.ts +6 -0
- package/components/areas/components/Window/subcomponents/InnerForHooks/styles.d.ts +2 -0
- package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/Header/styles.d.ts +9 -0
- package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/styles.d.ts +2 -0
- package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/styles.d.ts +2 -0
- package/components/areas/components/WindowModal/styles.d.ts +3 -0
- package/components/areas/components/WindowPopUp/{index.4514046e.js → index.f053fca7.js} +45 -42
- package/components/areas/components/WindowsPanel/styles.d.ts +10 -0
- package/components/areas/components/{index.9f62ca8e.js → index.eace295a.js} +10 -10
- package/components/areas/contexts/AreaContext/{index.368adb8d.js → index.7890e58d.js} +1 -1
- package/components/areas/contexts/AreasContext/{index.f3d6e728.js → index.0792a8d1.js} +1 -1
- package/components/areas/contexts/{index.3623b460.js → index.2a915acf.js} +1 -1
- package/components/areas/hooks/{index.18982960.js → index.f4d78492.js} +1 -1
- package/components/areas/hooks/useArea/{index.dab7ce20.js → index.d6263051.js} +2 -2
- package/components/areas/index.8fca0f8f.js +20 -0
- package/components/formatters/BooleanFormatter/{index.bf947220.js → index.cd00c8e1.js} +2 -3
- package/components/formatters/{index.acd3dcea.js → index.deae4701.js} +2 -3
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/classes/constant.d.ts +1 -0
- package/components/hook-form/RHFAutocomplete/classes/index.d.ts +10 -0
- package/components/hook-form/RHFAutocomplete/classes/types.d.ts +15 -0
- package/components/hook-form/RHFAutocomplete/index.083e23c1.js +400 -0
- package/components/hook-form/RHFAutocomplete/index.d.ts +1 -2
- package/components/hook-form/RHFAutocomplete/styles.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/styles.d.ts +4 -0
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/test/constants.d.ts +1 -0
- package/components/hook-form/RHFAutocomplete/test/utils.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/types.d.ts +9 -0
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.d.ts +7 -0
- package/components/hook-form/RHFAutocompleteAsync/classes/constant.d.ts +1 -0
- package/components/hook-form/RHFAutocompleteAsync/classes/index.d.ts +6 -0
- package/components/hook-form/RHFAutocompleteAsync/classes/types.d.ts +4 -0
- package/components/hook-form/RHFAutocompleteAsync/index.ba751be9.js +156 -0
- package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +5 -0
- package/components/hook-form/RHFAutocompleteAsync/tests/constants.d.ts +1 -0
- package/components/hook-form/RHFAutocompleteAsync/tests/utils.d.ts +2 -0
- package/components/hook-form/RHFCheckbox/classes/index.d.ts +3 -1
- package/components/hook-form/RHFCheckbox/classes/types.d.ts +4 -0
- package/components/hook-form/RHFCheckbox/index.c19393b1.js +152 -0
- package/components/hook-form/RHFCheckbox/styles.d.ts +15 -0
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/styles.d.ts +3 -0
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/types.d.ts +1 -0
- package/components/hook-form/RHFCheckbox/test/constants.d.ts +4 -0
- package/components/hook-form/RHFCheckbox/test/utils.d.ts +2 -0
- package/components/hook-form/RHFCheckbox/types.d.ts +1 -0
- package/components/hook-form/RHFDateTime/subcomponents/Skeleton/styles.d.ts +2 -0
- package/components/hook-form/RHFPeriod/{index.c4944f9c.js → index.c0a80aeb.js} +3 -3
- package/components/hook-form/RHFPeriod/styles.d.ts +2 -0
- package/components/hook-form/RHFTextField/RHFTextField.d.ts +1 -1
- package/components/hook-form/RHFTextField/classes/index.d.ts +3 -1
- package/components/hook-form/RHFTextField/classes/types.d.ts +9 -3
- package/components/hook-form/RHFTextField/index.97485ff2.js +341 -0
- package/components/hook-form/RHFTextField/styles.d.ts +3 -0
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +3 -0
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/types.d.ts +2 -2
- package/components/hook-form/RHFTextField/tests/{contants.d.ts → constants.d.ts} +1 -0
- package/components/hook-form/RHFTextField/tests/utils.d.ts +2 -0
- package/components/hook-form/RHFTextField/types.d.ts +15 -1
- package/components/hook-form/RHFTextFieldPassword/styles.d.ts +2 -0
- package/components/hook-form/RHFTextFieldPassword/tests/constants.d.ts +2 -0
- package/components/hook-form/RHFTextFieldPassword/tests/utils.d.ts +2 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/styles.d.ts +2 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.d.ts +12 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/styles.d.ts +2 -0
- package/components/hook-form/RHFUpload/{index.7fdff30f.js → index.798eb11d.js} +3 -5
- package/components/hook-form/index.d.ts +2 -2
- package/components/index.d.ts +9 -2
- package/components/modal/ModalDialog/styles.d.ts +9 -0
- package/components/modal/WindowBase/styles.d.ts +2 -0
- package/components/modal/WindowBase/subcomponents/Header/styles.d.ts +6 -0
- package/components/modal/{WindowBase.7828e042.js → WindowBase.59f50553.js} +3 -3
- package/components/modal/WindowConfirm/subcomponents/MessageIlustration/styles.d.ts +6 -0
- package/components/modal/{WindowConfirm.42ec4dcd.js → WindowConfirm.c1339cf8.js} +21 -19
- package/components/modal/index.7a84f64d.js +30 -0
- package/components/mui_extended/Accordion/{index.725a10af.js → index.b7487e37.js} +2 -2
- package/components/mui_extended/Accordion/styles.d.ts +4 -0
- package/components/mui_extended/Button/classes/index.d.ts +2 -1
- package/components/mui_extended/Button/classes/types.d.ts +7 -1
- package/components/mui_extended/Button/index.d9e0ae2e.js +208 -0
- package/components/mui_extended/Button/styles.d.ts +13 -0
- package/components/mui_extended/Button/types.d.ts +6 -1
- package/components/mui_extended/IconButton/IconButton.d.ts +1 -2
- package/components/mui_extended/IconButton/classes/index.d.ts +2 -1
- package/components/mui_extended/IconButton/classes/types.d.ts +8 -0
- package/components/mui_extended/IconButton/{index.afa201a7.js → index.be9c2ce5.js} +48 -22
- package/components/mui_extended/IconButton/styles.d.ts +2 -0
- package/components/mui_extended/IconButton/types.d.ts +13 -1
- package/components/mui_extended/ImageButton/ImageButton.d.ts +0 -3
- package/components/mui_extended/ImageButton/styles.d.ts +2 -0
- package/components/mui_extended/ImageButton/tests/constants.d.ts +1 -0
- package/components/mui_extended/ImageButton/tests/utils.d.ts +2 -0
- package/components/mui_extended/ImageButton/types.d.ts +1 -0
- package/components/mui_extended/ImageButton/utils/Clases/types.d.ts +1 -0
- package/components/mui_extended/LoadingButton/classes/constants.d.ts +1 -0
- package/components/mui_extended/LoadingButton/classes/index.d.ts +8 -0
- package/components/mui_extended/LoadingButton/classes/types.d.ts +11 -0
- package/components/mui_extended/LoadingButton/styles.d.ts +2 -0
- package/components/mui_extended/LoadingButton/tests/constants.d.ts +1 -0
- package/components/mui_extended/LoadingButton/tests/utils.d.ts +2 -0
- package/components/mui_extended/LoadingButton/types.d.ts +5 -0
- package/components/mui_extended/MenuActions/{index.1affe51a.js → index.ec654122.js} +2 -2
- package/components/mui_extended/MenuActions/styles.d.ts +30 -0
- package/components/mui_extended/Pager/components/PagerActions/styles.d.ts +2 -0
- package/components/mui_extended/Pager/{index.d4d1a1a0.js → index.9e123670.js} +1 -1
- package/components/mui_extended/Pager/styles.d.ts +6 -0
- package/components/mui_extended/Popover/{index.8ed52492.js → index.260aae81.js} +2 -3
- package/components/mui_extended/Popover/index.d.ts +2 -0
- package/components/mui_extended/Popover/styles.d.ts +1 -0
- package/components/mui_extended/Popover/subcomponts/ArrowIcon/index.d.ts +3 -0
- package/components/mui_extended/Tab/styles.d.ts +2 -0
- package/components/mui_extended/Typography/Typography.d.ts +2 -0
- package/components/mui_extended/Typography/{index.be3a279a.js → index.41b60a6b.js} +20 -15
- package/components/mui_extended/Typography/index.d.ts +1 -5
- package/components/mui_extended/Typography/styles.d.ts +2 -0
- package/components/mui_extended/Typography/tests/constants.d.ts +1 -0
- package/components/mui_extended/Typography/tests/utils.d.ts +2 -0
- package/components/mui_extended/Typography/utils/Clases/types.d.ts +1 -0
- package/components/mui_extended/index.459cbd6c.js +19 -0
- package/components/mui_extended/index.d.ts +1 -1
- package/contexts/ModalContext/{index.b4114066.js → index.ae8041f3.js} +1 -1
- package/contexts/RHFormContext/{index.3dc6e2f5.js → index.a7511399.js} +2 -8
- package/contexts/RHFormContext/styles.d.ts +2 -0
- package/hooks/useModal/{index.77b3415c.js → index.5c159ed2.js} +1 -1
- package/index.js +69 -65
- package/package.json +4 -4
- package/{react-draggable.6471b07e.js → react-draggable.1aa81436.js} +1 -1
- package/{react-resizable.b620abed.js → react-resizable.e86cb01e.js} +2 -2
- package/utils/{index.b6ae791a.js → index.e199226a.js} +7 -18
- package/vendor.a15d263e.js +458 -0
- package/components/ErrorLabel/index.d.ts +0 -10
- package/components/ErrorLabel/index.e140421c.js +0 -65
- package/components/ErrorLabel/types.d.ts +0 -4
- package/components/ErrorLabel/utils/Clases/index.d.ts +0 -6
- package/components/ErrorLabel/utils/Clases/types.d.ts +0 -3
- package/components/Icon/index.b29ff2d9.js +0 -200
- package/components/areas/index.a0456f95.js +0 -21
- package/components/hook-form/RHFAutocomplete/index.bb6cb5df.js +0 -289
- package/components/hook-form/RHFAutocomplete/test/contants.d.ts +0 -1
- package/components/hook-form/RHFAutocompleteAsync/index.815949a9.js +0 -87
- package/components/hook-form/RHFAutocompleteAsync/index.d.ts +0 -2
- package/components/hook-form/RHFCheckbox/index.6e80f572.js +0 -110
- package/components/hook-form/RHFTextField/index.d3544fa3.js +0 -228
- package/components/modal/index.3cc54b93.js +0 -29
- package/components/mui_extended/Button/index.8406ed5b.js +0 -150
- package/components/mui_extended/LoadingButton/subcomponents/Skeleton/index.d.ts +0 -1
- package/components/mui_extended/index.9ce0bca3.js +0 -19
- package/vendor.29969396.js +0 -145
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { useFormContext, Controller } from "react-hook-form";
|
|
2
|
+
import { styled, Skeleton, generateUtilityClasses, generateUtilityClass, Checkbox } from "@mui/material";
|
|
3
|
+
import { useModuleSkeleton } from "@m4l/core";
|
|
4
|
+
import { T as TEST_PROP_ID } from "../../../vendor.a15d263e.js";
|
|
5
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
6
|
+
import { styled as styled$1 } from "@mui/material/styles";
|
|
7
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
8
|
+
import { H as HelperText } from "../../HelperText/index.3c07ca2a.js";
|
|
9
|
+
import { T as Typography } from "../../mui_extended/Typography/index.41b60a6b.js";
|
|
10
|
+
const WrapperSkeletonCheckBox = styled("div")(() => ({
|
|
11
|
+
display: "flex",
|
|
12
|
+
justifyContent: "center",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
width: "36px",
|
|
15
|
+
height: "36px"
|
|
16
|
+
}));
|
|
17
|
+
const SkeletonRHFCheckBoxRoot = styled("div")(() => ({
|
|
18
|
+
display: "flex",
|
|
19
|
+
justifyContent: "flex-start",
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
gap: "8px",
|
|
22
|
+
width: "100%"
|
|
23
|
+
}));
|
|
24
|
+
const RHFCHEKCBOX_PREFIX = "RHFCheckbox";
|
|
25
|
+
const getNameDataTestId = (KEY) => {
|
|
26
|
+
return `${RHFCHEKCBOX_PREFIX}-${KEY}`;
|
|
27
|
+
};
|
|
28
|
+
const SkeletonRHFCheckBox = (props) => {
|
|
29
|
+
const {
|
|
30
|
+
classes,
|
|
31
|
+
hasLabel
|
|
32
|
+
} = props;
|
|
33
|
+
return /* @__PURE__ */ jsxs(SkeletonRHFCheckBoxRoot, {
|
|
34
|
+
children: [/* @__PURE__ */ jsx(WrapperSkeletonCheckBox, {
|
|
35
|
+
className: classes.skeleton,
|
|
36
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
37
|
+
[TEST_PROP_ID]: getNameDataTestId("skeleton")
|
|
38
|
+
} : {},
|
|
39
|
+
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
40
|
+
variant: "rounded",
|
|
41
|
+
width: "18px",
|
|
42
|
+
height: "18px"
|
|
43
|
+
})
|
|
44
|
+
}), hasLabel && /* @__PURE__ */ jsx(Skeleton, {
|
|
45
|
+
variant: "text",
|
|
46
|
+
width: "70px",
|
|
47
|
+
height: "18px"
|
|
48
|
+
})]
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
const RHFCheckboxRoot = styled$1("div")(({
|
|
52
|
+
theme
|
|
53
|
+
}) => ({
|
|
54
|
+
...theme.components?.M4LRHFCheckbox?.styleOverrides
|
|
55
|
+
}));
|
|
56
|
+
styled$1("div")(() => ({
|
|
57
|
+
display: "flex",
|
|
58
|
+
justifyContent: "center",
|
|
59
|
+
alignItems: "center",
|
|
60
|
+
padding: "8px"
|
|
61
|
+
}));
|
|
62
|
+
styled$1(Skeleton)(() => ({
|
|
63
|
+
width: "20px",
|
|
64
|
+
height: "20px",
|
|
65
|
+
borderRadius: "4px"
|
|
66
|
+
}));
|
|
67
|
+
const ContainerCheckTypography = styled$1("div")(() => ({
|
|
68
|
+
display: "flex",
|
|
69
|
+
alignItems: "center"
|
|
70
|
+
}));
|
|
71
|
+
generateUtilityClasses("M4LRHFCheckbox", [
|
|
72
|
+
"root",
|
|
73
|
+
"checkTypography",
|
|
74
|
+
"skeleton",
|
|
75
|
+
"small",
|
|
76
|
+
"medium",
|
|
77
|
+
"stateDisabled"
|
|
78
|
+
]);
|
|
79
|
+
function getRHFCheckboxUtilityClass(slot) {
|
|
80
|
+
return generateUtilityClass("M4LRHFCheckbox", slot);
|
|
81
|
+
}
|
|
82
|
+
const useUtilityClasses = (ownerState) => {
|
|
83
|
+
const slots = {
|
|
84
|
+
root: ["root", ownerState.sizeCheck === "small" && "small", ownerState.sizeCheck === "medium" && "medium", ownerState.disabled && "stateDisabled"],
|
|
85
|
+
skeleton: ["skeleton"],
|
|
86
|
+
checkTypography: ["checkTypography", ownerState.sizeCheck === "small" ? "small" : "medium", ownerState.disabled && "stateDisabled"]
|
|
87
|
+
};
|
|
88
|
+
const composedClasses = unstable_composeClasses(slots, getRHFCheckboxUtilityClass, {});
|
|
89
|
+
return {
|
|
90
|
+
...composedClasses
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
function RHFCheckbox(props) {
|
|
94
|
+
const {
|
|
95
|
+
name,
|
|
96
|
+
sizeCheck = "small",
|
|
97
|
+
label,
|
|
98
|
+
disabled = false
|
|
99
|
+
} = props;
|
|
100
|
+
const {
|
|
101
|
+
control
|
|
102
|
+
} = useFormContext();
|
|
103
|
+
const isSkeleton = useModuleSkeleton();
|
|
104
|
+
const ownerState = {
|
|
105
|
+
sizeCheck,
|
|
106
|
+
disabled
|
|
107
|
+
};
|
|
108
|
+
const classes = useUtilityClasses(ownerState);
|
|
109
|
+
return /* @__PURE__ */ jsx(RHFCheckboxRoot, {
|
|
110
|
+
className: classes.root,
|
|
111
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
112
|
+
[TEST_PROP_ID]: getNameDataTestId("root")
|
|
113
|
+
} : {},
|
|
114
|
+
children: /* @__PURE__ */ jsx(Controller, {
|
|
115
|
+
name,
|
|
116
|
+
control,
|
|
117
|
+
render: ({
|
|
118
|
+
field,
|
|
119
|
+
fieldState: {
|
|
120
|
+
error
|
|
121
|
+
}
|
|
122
|
+
}) => {
|
|
123
|
+
return !isSkeleton ? /* @__PURE__ */ jsxs(Fragment, {
|
|
124
|
+
children: [/* @__PURE__ */ jsxs(ContainerCheckTypography, {
|
|
125
|
+
className: classes.checkTypography,
|
|
126
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
127
|
+
[TEST_PROP_ID]: getNameDataTestId("checkTypography")
|
|
128
|
+
} : {},
|
|
129
|
+
children: [/* @__PURE__ */ jsx(Checkbox, {
|
|
130
|
+
size: sizeCheck,
|
|
131
|
+
...field,
|
|
132
|
+
checked: field.value,
|
|
133
|
+
disabled: disabled ? true : false,
|
|
134
|
+
disableRipple: true
|
|
135
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
136
|
+
skeletonWidth: "80px",
|
|
137
|
+
children: label
|
|
138
|
+
})]
|
|
139
|
+
}), error?.message && /* @__PURE__ */ jsx(HelperText, {
|
|
140
|
+
message: error?.message + ""
|
|
141
|
+
})]
|
|
142
|
+
}) : /* @__PURE__ */ jsx(SkeletonRHFCheckBox, {
|
|
143
|
+
classes,
|
|
144
|
+
hasLabel: !!label
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
})
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
export {
|
|
151
|
+
RHFCheckbox as R
|
|
152
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RHFCheckboxRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export declare const WrapperSKTRHFCheckbox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
|
+
export declare const SKTCheckSkeleton: import("@emotion/styled").StyledComponent<{
|
|
5
|
+
animation?: false | "pulse" | "wave" | undefined;
|
|
6
|
+
children?: import("react").ReactNode;
|
|
7
|
+
classes?: Partial<import("@mui/material").SkeletonClasses> | undefined;
|
|
8
|
+
height?: string | number | undefined;
|
|
9
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
10
|
+
variant?: "text" | "rectangular" | "rounded" | "circular" | undefined;
|
|
11
|
+
width?: string | number | undefined;
|
|
12
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
13
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
14
|
+
}, "children" | "width" | "height" | keyof import("@mui/material/OverridableComponent").CommonProps | "animation" | "sx" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
15
|
+
export declare const ContainerCheckTypography: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const WrapperSkeletonCheckBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export declare const SkeletonRHFCheckBoxRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SKTRHFWrapperTextField: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled } from "@mui/material";
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
|
-
import {
|
|
4
|
-
import { P as Period } from "../../Period/index.
|
|
3
|
+
import { H as HelperText } from "../../HelperText/index.3c07ca2a.js";
|
|
4
|
+
import { P as Period } from "../../Period/index.99feb99e.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
const Wrapper = styled("div")(({
|
|
7
7
|
theme
|
|
@@ -43,7 +43,7 @@ const RHFPeriod = (props) => {
|
|
|
43
43
|
readOnly,
|
|
44
44
|
skeletonWidth,
|
|
45
45
|
skeletonHeight
|
|
46
|
-
}), error && /* @__PURE__ */ jsx(
|
|
46
|
+
}), error && /* @__PURE__ */ jsx(HelperText, {
|
|
47
47
|
message: error.message || ""
|
|
48
48
|
})]
|
|
49
49
|
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Wrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -5,4 +5,4 @@ import { RHFTextFieldProps } from './types';
|
|
|
5
5
|
* @param props
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
export declare const RHFTextField: import("react").ForwardRefExoticComponent<
|
|
8
|
+
export declare const RHFTextField: import("react").ForwardRefExoticComponent<Omit<RHFTextFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { RHFTextFieldClassesType
|
|
1
|
+
import { RHFTextFieldClassesType } from './types';
|
|
2
|
+
import { RHFTextFieldState } from '../types';
|
|
2
3
|
export declare const RHFTextFieldClasses: RHFTextFieldClassesType;
|
|
3
4
|
export declare const getRHFTextFieldClassesByState: (ownerState: RHFTextFieldState) => {
|
|
5
|
+
label: string;
|
|
4
6
|
root: string;
|
|
5
7
|
skeleton: string;
|
|
6
8
|
};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
export interface RHFTextFieldClassesType {
|
|
2
2
|
root: string;
|
|
3
|
+
label: string;
|
|
3
4
|
skeleton: string;
|
|
4
5
|
variantText: string;
|
|
5
6
|
variantPassword: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
variantInfo: string;
|
|
8
|
+
variantSuccess: string;
|
|
9
|
+
variantWarning: string;
|
|
10
|
+
variantError: string;
|
|
11
|
+
sizeSmall: string;
|
|
12
|
+
sizeMedium: string;
|
|
13
|
+
isFocus: string;
|
|
14
|
+
isDisabled: string;
|
|
9
15
|
}
|
|
10
16
|
export declare type RHFTextFieldClassesKey = keyof RHFTextFieldClassesType;
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import { useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
2
|
+
import { styled, Skeleton, generateUtilityClasses, TextField, InputAdornment, generateUtilityClass } from "@mui/material";
|
|
3
|
+
import { forwardRef, useState, useEffect } from "react";
|
|
4
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.be9c2ce5.js";
|
|
5
|
+
import { T as TEST_PROP_ID } from "../../../vendor.a15d263e.js";
|
|
6
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
7
|
+
import "../../Icon/index.0f9b360e.js";
|
|
8
|
+
import { useFormContext, Controller } from "react-hook-form";
|
|
9
|
+
import { styled as styled$1 } from "@mui/material/styles";
|
|
10
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
11
|
+
import { g as getComponentUtilityClass } from "../../../utils/index.e199226a.js";
|
|
12
|
+
import { T as Typography } from "../../mui_extended/Typography/index.41b60a6b.js";
|
|
13
|
+
import { H as HelperText } from "../../HelperText/index.3c07ca2a.js";
|
|
14
|
+
const SkeletonTextFieldRoot = styled("div")(() => ({
|
|
15
|
+
display: "flex",
|
|
16
|
+
flexDirection: "column",
|
|
17
|
+
width: "100%",
|
|
18
|
+
gap: "4px"
|
|
19
|
+
}));
|
|
20
|
+
const WrapperSkeletonRHFTextField = styled("div")(({
|
|
21
|
+
theme
|
|
22
|
+
}) => ({
|
|
23
|
+
display: "flex",
|
|
24
|
+
width: "100%",
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
justifyContent: "space-between",
|
|
27
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
28
|
+
padding: "12px 14px",
|
|
29
|
+
borderRadius: theme.spacing(1),
|
|
30
|
+
gap: "4px"
|
|
31
|
+
}));
|
|
32
|
+
const RHFTEXTFIELD_ROOT_TEST_ID = "RHFTextFieldRoot";
|
|
33
|
+
const RHFTEXTFIELD_INPUT_TEST_ID = "RHFTextFieldInput";
|
|
34
|
+
const RHFTEXTFIELD_PREFIX = "RHFTextField";
|
|
35
|
+
const getNameDataTestId$1 = (KEY) => {
|
|
36
|
+
return `${RHFTEXTFIELD_PREFIX}-${KEY}`;
|
|
37
|
+
};
|
|
38
|
+
const SkeletonTextField = (props) => {
|
|
39
|
+
const {
|
|
40
|
+
skeletonWidth,
|
|
41
|
+
skeletonHeight,
|
|
42
|
+
ownerState,
|
|
43
|
+
classes,
|
|
44
|
+
hasLabel
|
|
45
|
+
} = props;
|
|
46
|
+
const {
|
|
47
|
+
type: variant
|
|
48
|
+
} = ownerState;
|
|
49
|
+
return /* @__PURE__ */ jsxs(SkeletonTextFieldRoot, {
|
|
50
|
+
children: [(hasLabel || hasLabel?.length === 0) && /* @__PURE__ */ jsx(Skeleton, {
|
|
51
|
+
variant: "text",
|
|
52
|
+
width: "30%",
|
|
53
|
+
height: "16px"
|
|
54
|
+
}), /* @__PURE__ */ jsx(WrapperSkeletonRHFTextField, {
|
|
55
|
+
className: classes.skeleton,
|
|
56
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
57
|
+
[TEST_PROP_ID]: getNameDataTestId$1("skeleton")
|
|
58
|
+
} : {},
|
|
59
|
+
children: variant === "text" ? /* @__PURE__ */ jsx(Skeleton, {
|
|
60
|
+
variant: "text",
|
|
61
|
+
width: skeletonWidth,
|
|
62
|
+
height: skeletonHeight
|
|
63
|
+
}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
64
|
+
children: [/* @__PURE__ */ jsx(Skeleton, {
|
|
65
|
+
variant: "text",
|
|
66
|
+
width: skeletonWidth,
|
|
67
|
+
height: skeletonHeight
|
|
68
|
+
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
69
|
+
variant: "circular",
|
|
70
|
+
width: "16px",
|
|
71
|
+
height: "16px"
|
|
72
|
+
})]
|
|
73
|
+
})
|
|
74
|
+
})]
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
const RHFTextFieldRoot = styled$1("div")(({
|
|
78
|
+
theme
|
|
79
|
+
}) => ({
|
|
80
|
+
...theme.components?.M4LRHFTextField?.styleOverrides
|
|
81
|
+
}));
|
|
82
|
+
styled$1("div")(({
|
|
83
|
+
theme
|
|
84
|
+
}) => ({
|
|
85
|
+
display: "flex",
|
|
86
|
+
width: "100%",
|
|
87
|
+
alignItems: "center",
|
|
88
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
89
|
+
padding: "12px 14px",
|
|
90
|
+
borderRadius: theme.spacing(1)
|
|
91
|
+
}));
|
|
92
|
+
const componentName = "M4LRHFTextField";
|
|
93
|
+
generateUtilityClasses(
|
|
94
|
+
componentName,
|
|
95
|
+
[
|
|
96
|
+
"root",
|
|
97
|
+
"label",
|
|
98
|
+
"skeleton",
|
|
99
|
+
"variantText",
|
|
100
|
+
"variantPassword",
|
|
101
|
+
"variantInfo",
|
|
102
|
+
"isDisabled",
|
|
103
|
+
"variantSuccess",
|
|
104
|
+
"variantWarning",
|
|
105
|
+
"variantError",
|
|
106
|
+
"sizeSmall",
|
|
107
|
+
"sizeMedium",
|
|
108
|
+
"isFocus"
|
|
109
|
+
]
|
|
110
|
+
);
|
|
111
|
+
const getRHFTextFieldClassesByState = (ownerState) => {
|
|
112
|
+
const slots = {
|
|
113
|
+
root: [
|
|
114
|
+
"root",
|
|
115
|
+
ownerState.type === "password" ? "variantPassword" : "variantText",
|
|
116
|
+
ownerState.size === "small" && "sizeSmall",
|
|
117
|
+
ownerState.size === "medium" && "sizeMedium",
|
|
118
|
+
ownerState.focus && "isFocus",
|
|
119
|
+
ownerState.disabled && "isDisabled",
|
|
120
|
+
ownerState.variant === "info" && "variantInfo",
|
|
121
|
+
ownerState.variant === "success" && "variantSuccess",
|
|
122
|
+
ownerState.variant === "warning" && "variantWarning",
|
|
123
|
+
ownerState.variant === "error" && "variantError"
|
|
124
|
+
],
|
|
125
|
+
label: ["label"],
|
|
126
|
+
skeleton: ["skeleton"]
|
|
127
|
+
};
|
|
128
|
+
const composedClasses = unstable_composeClasses(slots, getComponentUtilityClass(componentName), {});
|
|
129
|
+
return {
|
|
130
|
+
...composedClasses
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
const RHFTextField = forwardRef((props, ref) => {
|
|
134
|
+
const {
|
|
135
|
+
name: nameRHF,
|
|
136
|
+
autoComplete = "off",
|
|
137
|
+
skeletonWidth = "100%",
|
|
138
|
+
skeletonHeight = "18px",
|
|
139
|
+
type,
|
|
140
|
+
label,
|
|
141
|
+
size = "small",
|
|
142
|
+
startIcon,
|
|
143
|
+
endIcon,
|
|
144
|
+
variant,
|
|
145
|
+
helperMessage = "",
|
|
146
|
+
disabled,
|
|
147
|
+
...other
|
|
148
|
+
} = props;
|
|
149
|
+
const {
|
|
150
|
+
control,
|
|
151
|
+
formState: {
|
|
152
|
+
errors
|
|
153
|
+
}
|
|
154
|
+
} = useFormContext();
|
|
155
|
+
const [isFocus, setIsFocus] = useState(false);
|
|
156
|
+
const [currentVariant, setCurrentVariant] = useState(null);
|
|
157
|
+
useEffect(() => {
|
|
158
|
+
if (errors[nameRHF]) {
|
|
159
|
+
setCurrentVariant("error");
|
|
160
|
+
} else if (variant) {
|
|
161
|
+
setCurrentVariant(variant);
|
|
162
|
+
} else {
|
|
163
|
+
setCurrentVariant(null);
|
|
164
|
+
}
|
|
165
|
+
}, [errors[nameRHF], variant, control]);
|
|
166
|
+
const handleFocus = () => {
|
|
167
|
+
setIsFocus(true);
|
|
168
|
+
};
|
|
169
|
+
const handleBlur = () => {
|
|
170
|
+
setIsFocus(false);
|
|
171
|
+
};
|
|
172
|
+
const ownerState = {
|
|
173
|
+
type: type === "password" ? "password" : "text",
|
|
174
|
+
size,
|
|
175
|
+
focus: isFocus,
|
|
176
|
+
variant: currentVariant,
|
|
177
|
+
disabled
|
|
178
|
+
};
|
|
179
|
+
const classes = getRHFTextFieldClassesByState(ownerState);
|
|
180
|
+
const isSkeleton = useModuleSkeleton();
|
|
181
|
+
return /* @__PURE__ */ jsx(RHFTextFieldRoot, {
|
|
182
|
+
className: classes.root,
|
|
183
|
+
role: "textbox",
|
|
184
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
185
|
+
[TEST_PROP_ID]: getNameDataTestId$1("root")
|
|
186
|
+
} : {},
|
|
187
|
+
children: !isSkeleton ? /* @__PURE__ */ jsx(Controller, {
|
|
188
|
+
name: nameRHF,
|
|
189
|
+
control,
|
|
190
|
+
render: ({
|
|
191
|
+
field: {
|
|
192
|
+
onChange,
|
|
193
|
+
value,
|
|
194
|
+
name,
|
|
195
|
+
ref: inputRef
|
|
196
|
+
},
|
|
197
|
+
fieldState: {
|
|
198
|
+
error
|
|
199
|
+
}
|
|
200
|
+
}) => {
|
|
201
|
+
const onInternalChange = (event) => {
|
|
202
|
+
if (type === "number") {
|
|
203
|
+
if (event.target.value) {
|
|
204
|
+
onChange(Number(event.target.value));
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
onChange(event);
|
|
209
|
+
};
|
|
210
|
+
return /* @__PURE__ */ jsxs(Fragment, {
|
|
211
|
+
children: [label ? /* @__PURE__ */ jsx(Typography, {
|
|
212
|
+
variant: "body",
|
|
213
|
+
className: classes.label,
|
|
214
|
+
children: label
|
|
215
|
+
}) : null, /* @__PURE__ */ jsx(TextField, {
|
|
216
|
+
variant: "outlined",
|
|
217
|
+
disabled,
|
|
218
|
+
ref,
|
|
219
|
+
inputRef,
|
|
220
|
+
InputLabelProps: {
|
|
221
|
+
shrink: true
|
|
222
|
+
},
|
|
223
|
+
autoComplete,
|
|
224
|
+
onChange: onInternalChange,
|
|
225
|
+
onFocus: handleFocus,
|
|
226
|
+
onBlur: handleBlur,
|
|
227
|
+
value: value || "",
|
|
228
|
+
name,
|
|
229
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
230
|
+
[TEST_PROP_ID]: `${RHFTEXTFIELD_ROOT_TEST_ID}_${nameRHF}`
|
|
231
|
+
} : {},
|
|
232
|
+
fullWidth: true,
|
|
233
|
+
error: !!error,
|
|
234
|
+
type,
|
|
235
|
+
...startIcon || endIcon ? {
|
|
236
|
+
InputProps: {
|
|
237
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
238
|
+
[TEST_PROP_ID]: `${RHFTEXTFIELD_INPUT_TEST_ID}_${name}`
|
|
239
|
+
} : {},
|
|
240
|
+
...{
|
|
241
|
+
...startIcon ? {
|
|
242
|
+
startAdornment: /* @__PURE__ */ jsx(InputAdornment, {
|
|
243
|
+
position: "start",
|
|
244
|
+
children: startIcon
|
|
245
|
+
})
|
|
246
|
+
} : {},
|
|
247
|
+
...endIcon ? {
|
|
248
|
+
endAdornment: /* @__PURE__ */ jsx(InputAdornment, {
|
|
249
|
+
position: "end",
|
|
250
|
+
children: endIcon
|
|
251
|
+
})
|
|
252
|
+
} : {}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
} : {},
|
|
256
|
+
...other
|
|
257
|
+
}), currentVariant ? /* @__PURE__ */ jsx(HelperText, {
|
|
258
|
+
variant: currentVariant,
|
|
259
|
+
message: currentVariant !== "error" ? helperMessage : error?.message
|
|
260
|
+
}) : null]
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
}) : /* @__PURE__ */ jsx(SkeletonTextField, {
|
|
264
|
+
classes,
|
|
265
|
+
skeletonWidth,
|
|
266
|
+
skeletonHeight,
|
|
267
|
+
ownerState,
|
|
268
|
+
hasLabel: label
|
|
269
|
+
})
|
|
270
|
+
});
|
|
271
|
+
});
|
|
272
|
+
RHFTextField.displayName = "RHFTextField";
|
|
273
|
+
const RHFTextFieldPasswordRoot = styled$1("div")(({
|
|
274
|
+
theme
|
|
275
|
+
}) => ({
|
|
276
|
+
...theme.components?.M4LRHFTextFieldPassword?.styleOverrides
|
|
277
|
+
}));
|
|
278
|
+
generateUtilityClasses("M4LRHFTextFieldPassword", [
|
|
279
|
+
"root"
|
|
280
|
+
]);
|
|
281
|
+
function getRHFTextFieldPasswordUtilityClass(slot) {
|
|
282
|
+
return generateUtilityClass("M4LRHFTextFieldPassword", slot);
|
|
283
|
+
}
|
|
284
|
+
const useUtilityClasses = () => {
|
|
285
|
+
const slots = {
|
|
286
|
+
root: ["root"]
|
|
287
|
+
};
|
|
288
|
+
const composedClasses = unstable_composeClasses(slots, getRHFTextFieldPasswordUtilityClass, {});
|
|
289
|
+
return {
|
|
290
|
+
...composedClasses
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
const RHFTEXTFIELDPASSWORD_PREFIX = "RHFTextFieldPassword";
|
|
294
|
+
const getNameDataTestId = (KEY) => {
|
|
295
|
+
return `${RHFTEXTFIELDPASSWORD_PREFIX}-${KEY}`;
|
|
296
|
+
};
|
|
297
|
+
const RHFTextFieldPassword = (props) => {
|
|
298
|
+
const {
|
|
299
|
+
name,
|
|
300
|
+
label,
|
|
301
|
+
skeletonWidth,
|
|
302
|
+
skeletonHeight,
|
|
303
|
+
size
|
|
304
|
+
} = props;
|
|
305
|
+
const [showPassword, setShowPassword] = useState(false);
|
|
306
|
+
const {
|
|
307
|
+
host_static_assets,
|
|
308
|
+
environment_assets
|
|
309
|
+
} = useEnvironment();
|
|
310
|
+
const classes = useUtilityClasses();
|
|
311
|
+
console.log("label----", label);
|
|
312
|
+
return /* @__PURE__ */ jsx(RHFTextFieldPasswordRoot, {
|
|
313
|
+
className: classes.root,
|
|
314
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
315
|
+
[TEST_PROP_ID]: getNameDataTestId("root")
|
|
316
|
+
} : {},
|
|
317
|
+
children: /* @__PURE__ */ jsx(RHFTextField, {
|
|
318
|
+
name,
|
|
319
|
+
label,
|
|
320
|
+
type: showPassword ? "text" : "password",
|
|
321
|
+
autoComplete: "on",
|
|
322
|
+
skeletonWidth,
|
|
323
|
+
skeletonHeight,
|
|
324
|
+
size,
|
|
325
|
+
InputProps: {
|
|
326
|
+
endAdornment: /* @__PURE__ */ jsx(InputAdornment, {
|
|
327
|
+
position: "end",
|
|
328
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
329
|
+
onClick: () => setShowPassword(!showPassword),
|
|
330
|
+
variant: "line",
|
|
331
|
+
src: showPassword ? `${host_static_assets}/${environment_assets}/frontend/domain/host/login/assets/icons/eye.svg` : `${host_static_assets}/${environment_assets}/frontend/domain/host/login/assets/icons/eye_off.svg`
|
|
332
|
+
})
|
|
333
|
+
})
|
|
334
|
+
}
|
|
335
|
+
})
|
|
336
|
+
});
|
|
337
|
+
};
|
|
338
|
+
export {
|
|
339
|
+
RHFTextField as R,
|
|
340
|
+
RHFTextFieldPassword as a
|
|
341
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RHFTextFieldRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export declare const SKTRHFWrapperTextField: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SkeletonTextFieldRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export declare const WrapperSkeletonRHFTextField: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RHFTextFieldState } from '../../
|
|
2
|
-
import { RHFTextFieldProps } from '../../types';
|
|
1
|
+
import { RHFTextFieldProps, RHFTextFieldState } from '../../types';
|
|
3
2
|
export interface SkeletonTextFieldProps extends Pick<RHFTextFieldProps, 'skeletonWidth' | 'skeletonHeight'> {
|
|
4
3
|
ownerState: RHFTextFieldState;
|
|
5
4
|
classes: any;
|
|
5
|
+
hasLabel?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare type WrapperSkeletonRHFTextField = RHFTextFieldState;
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { TextFieldProps } from '@mui/material';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
export declare type RHFTextFieldVariants = 'info' | 'success' | 'warning';
|
|
4
|
+
export interface RHFTextFieldProps extends Omit<TextFieldProps, 'size' | 'inputProps' | 'variant' | 'label'> {
|
|
2
5
|
skeletonWidth?: string | number;
|
|
3
6
|
skeletonHeight?: string | number;
|
|
4
7
|
name: string;
|
|
8
|
+
size?: 'small' | 'medium';
|
|
9
|
+
startIcon?: ReactElement;
|
|
10
|
+
endIcon?: ReactElement;
|
|
11
|
+
variant?: RHFTextFieldVariants;
|
|
12
|
+
helperMessage?: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface RHFTextFieldState extends Pick<RHFTextFieldProps, 'size' | 'disabled'> {
|
|
16
|
+
type: 'password' | 'text';
|
|
17
|
+
focus: boolean;
|
|
18
|
+
variant: RHFTextFieldVariants | 'error' | null;
|
|
5
19
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RHFTextFieldPasswordRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|