@zydon/common 2.2.48 → 2.2.49
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/dist/chunk-22WZELUG.js +45 -0
- package/dist/chunk-22WZELUG.js.map +1 -0
- package/dist/chunk-45BEY3NY.js +9 -0
- package/dist/chunk-45BEY3NY.js.map +1 -0
- package/dist/chunk-4NMDUK5L.js +7 -0
- package/dist/chunk-4NMDUK5L.js.map +1 -0
- package/dist/chunk-53KG5GKX.js +19 -0
- package/dist/chunk-53KG5GKX.js.map +1 -0
- package/dist/chunk-5WTLLVTY.js +12 -0
- package/dist/chunk-5WTLLVTY.js.map +1 -0
- package/dist/chunk-62TZEUFR.js +9 -0
- package/dist/chunk-62TZEUFR.js.map +1 -0
- package/dist/chunk-62UHO7QG.js +7 -0
- package/dist/chunk-62UHO7QG.js.map +1 -0
- package/dist/chunk-6LXCHHW2.js +12 -0
- package/dist/chunk-6LXCHHW2.js.map +1 -0
- package/dist/chunk-6PNQMBJS.js +8 -0
- package/dist/chunk-6PNQMBJS.js.map +1 -0
- package/dist/chunk-7R6ZYEQS.js +11 -0
- package/dist/chunk-7R6ZYEQS.js.map +1 -0
- package/dist/chunk-7SCNQBRZ.js +9 -0
- package/dist/chunk-7SCNQBRZ.js.map +1 -0
- package/dist/chunk-ACUHIX2J.js +10 -0
- package/dist/chunk-ACUHIX2J.js.map +1 -0
- package/dist/chunk-ADI3SFX3.js +9 -0
- package/dist/chunk-ADI3SFX3.js.map +1 -0
- package/dist/chunk-BFD4OAPD.js +10 -0
- package/dist/chunk-BFD4OAPD.js.map +1 -0
- package/dist/chunk-DSQS6PJN.js +15 -0
- package/dist/chunk-DSQS6PJN.js.map +1 -0
- package/dist/chunk-E3R7W7GK.js +7 -0
- package/dist/chunk-E3R7W7GK.js.map +1 -0
- package/dist/chunk-ET3WPQIO.js +7 -0
- package/dist/chunk-ET3WPQIO.js.map +1 -0
- package/dist/chunk-FG2BVR7Y.js +5 -0
- package/dist/chunk-FG2BVR7Y.js.map +1 -0
- package/dist/chunk-FU42GMHJ.js +11 -0
- package/dist/chunk-FU42GMHJ.js.map +1 -0
- package/dist/chunk-GGHOJ7G5.js +8 -0
- package/dist/chunk-GGHOJ7G5.js.map +1 -0
- package/dist/chunk-IN7SP2ND.js +8 -0
- package/dist/chunk-IN7SP2ND.js.map +1 -0
- package/dist/chunk-KNQKOMWB.js +7 -0
- package/dist/chunk-KNQKOMWB.js.map +1 -0
- package/dist/chunk-KZQ3J2KO.js +20 -0
- package/dist/chunk-KZQ3J2KO.js.map +1 -0
- package/dist/chunk-L5URMM57.js +7 -0
- package/dist/chunk-L5URMM57.js.map +1 -0
- package/dist/chunk-LC6LNAQ2.js +8 -0
- package/dist/chunk-LC6LNAQ2.js.map +1 -0
- package/dist/chunk-LIKDCEDJ.js +20 -0
- package/dist/chunk-LIKDCEDJ.js.map +1 -0
- package/dist/chunk-LQRRMVFN.js +7 -0
- package/dist/chunk-LQRRMVFN.js.map +1 -0
- package/dist/chunk-LTMBAS4K.js +10 -0
- package/dist/chunk-LTMBAS4K.js.map +1 -0
- package/dist/chunk-M5UKNXG2.js +15 -0
- package/dist/chunk-M5UKNXG2.js.map +1 -0
- package/dist/chunk-MQAMSYYK.js +8 -0
- package/dist/chunk-MQAMSYYK.js.map +1 -0
- package/dist/chunk-N7IK5EUP.js +9 -0
- package/dist/chunk-N7IK5EUP.js.map +1 -0
- package/dist/chunk-OF6623HG.js +5 -0
- package/dist/chunk-OF6623HG.js.map +1 -0
- package/dist/chunk-OFASSEMM.js +15 -0
- package/dist/chunk-OFASSEMM.js.map +1 -0
- package/dist/chunk-OWUHSZYH.js +10 -0
- package/dist/chunk-OWUHSZYH.js.map +1 -0
- package/dist/chunk-P6Y6TTEH.js +13 -0
- package/dist/chunk-P6Y6TTEH.js.map +1 -0
- package/dist/chunk-PC5JAKC5.js +12 -0
- package/dist/chunk-PC5JAKC5.js.map +1 -0
- package/dist/chunk-QQRH32JC.js +7 -0
- package/dist/chunk-QQRH32JC.js.map +1 -0
- package/dist/chunk-RJASLUEG.js +9 -0
- package/dist/chunk-RJASLUEG.js.map +1 -0
- package/dist/chunk-RMQCDH5X.js +9 -0
- package/dist/chunk-RMQCDH5X.js.map +1 -0
- package/dist/chunk-ROVD7OGE.js +7 -0
- package/dist/chunk-ROVD7OGE.js.map +1 -0
- package/dist/chunk-RPO7AI5K.js +8 -0
- package/dist/chunk-RPO7AI5K.js.map +1 -0
- package/dist/chunk-RWCM5G5D.js +19 -0
- package/dist/chunk-RWCM5G5D.js.map +1 -0
- package/dist/chunk-SBIOG3DH.js +10 -0
- package/dist/chunk-SBIOG3DH.js.map +1 -0
- package/dist/chunk-SBSJC4QO.js +12 -0
- package/dist/chunk-SBSJC4QO.js.map +1 -0
- package/dist/chunk-SY7GX7PZ.js +9 -0
- package/dist/chunk-SY7GX7PZ.js.map +1 -0
- package/dist/chunk-W242ZHSJ.js +15 -0
- package/dist/chunk-W242ZHSJ.js.map +1 -0
- package/dist/chunk-WHQGCQ6G.js +18 -0
- package/dist/chunk-WHQGCQ6G.js.map +1 -0
- package/dist/chunk-WLZBPHBP.js +30 -0
- package/dist/chunk-WLZBPHBP.js.map +1 -0
- package/dist/chunk-X2NG6VDB.js +9 -0
- package/dist/chunk-X2NG6VDB.js.map +1 -0
- package/dist/chunk-Y5SERFBJ.js +5 -0
- package/dist/chunk-Y5SERFBJ.js.map +1 -0
- package/dist/chunk-YC7ED3PY.js +10 -0
- package/dist/chunk-YC7ED3PY.js.map +1 -0
- package/dist/chunk-YCEQDXLR.js +8 -0
- package/dist/chunk-YCEQDXLR.js.map +1 -0
- package/dist/chunk-ZC5X4X5U.js +16 -0
- package/dist/chunk-ZC5X4X5U.js.map +1 -0
- package/dist/chunk-ZK4R7GDN.js +5 -0
- package/dist/chunk-ZK4R7GDN.js.map +1 -0
- package/dist/chunk-ZZCWCOYO.js +9 -0
- package/dist/chunk-ZZCWCOYO.js.map +1 -0
- package/dist/components/ActionButton/index.js +4 -34
- package/dist/components/ActionButton/index.js.map +1 -1
- package/dist/components/Autocomplete/index.js +4 -140
- package/dist/components/Autocomplete/index.js.map +1 -1
- package/dist/components/AutocompleteDetailed/index.js +4 -141
- package/dist/components/AutocompleteDetailed/index.js.map +1 -1
- package/dist/components/BuilderLayout/index.js +13 -25
- package/dist/components/BuilderLayout/index.js.map +1 -1
- package/dist/components/BuilderSidebar/index.js +11 -19
- package/dist/components/BuilderSidebar/index.js.map +1 -1
- package/dist/components/ColorPickerInput/index.js +3 -100
- package/dist/components/ColorPickerInput/index.js.map +1 -1
- package/dist/components/ColoredLabel/index.js +8 -43
- package/dist/components/ColoredLabel/index.js.map +1 -1
- package/dist/components/Common/index.js +23 -30
- package/dist/components/Common/index.js.map +1 -1
- package/dist/components/Confirm/index.js +12 -50
- package/dist/components/Confirm/index.js.map +1 -1
- package/dist/components/CustomAvatar/index.js +2 -61
- package/dist/components/CustomAvatar/index.js.map +1 -1
- package/dist/components/CustomAvatarGroup/index.js +8 -75
- package/dist/components/CustomAvatarGroup/index.js.map +1 -1
- package/dist/components/DashedDivider/index.js +2 -9
- package/dist/components/DashedDivider/index.js.map +1 -1
- package/dist/components/DataCards/index.js +21 -59
- package/dist/components/DataCards/index.js.map +1 -1
- package/dist/components/DataGrid/index.js +16 -80
- package/dist/components/DataGrid/index.js.map +1 -1
- package/dist/components/DatePicker/index.js +8 -41
- package/dist/components/DatePicker/index.js.map +1 -1
- package/dist/components/DateRangePicker/index.js +8 -49
- package/dist/components/DateRangePicker/index.js.map +1 -1
- package/dist/components/DateTimePicker/index.js +8 -39
- package/dist/components/DateTimePicker/index.js.map +1 -1
- package/dist/components/Delayed/index.js +6 -16
- package/dist/components/Delayed/index.js.map +1 -1
- package/dist/components/Drawer/index.js +13 -38
- package/dist/components/Drawer/index.js.map +1 -1
- package/dist/components/EmptyContent/index.js +4 -79
- package/dist/components/EmptyContent/index.js.map +1 -1
- package/dist/components/EmptyView/index.js +3 -33
- package/dist/components/EmptyView/index.js.map +1 -1
- package/dist/components/Error/index.js +11 -45
- package/dist/components/Error/index.js.map +1 -1
- package/dist/components/ExpandableGroup/index.js +14 -32
- package/dist/components/ExpandableGroup/index.js.map +1 -1
- package/dist/components/FixedProgressBar/index.js +2 -21
- package/dist/components/FixedProgressBar/index.js.map +1 -1
- package/dist/components/FrameSkeleton/index.js +17 -107
- package/dist/components/FrameSkeleton/index.js.map +1 -1
- package/dist/components/HelpButton/index.js +4 -21
- package/dist/components/HelpButton/index.js.map +1 -1
- package/dist/components/Icon/index.js +3 -669
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/ImageCrop/index.js +2 -50
- package/dist/components/ImageCrop/index.js.map +1 -1
- package/dist/components/ImageCropModal/index.js +6 -129
- package/dist/components/ImageCropModal/index.js.map +1 -1
- package/dist/components/Incrementer/index.js +6 -160
- package/dist/components/Incrementer/index.js.map +1 -1
- package/dist/components/Label/index.js +10 -73
- package/dist/components/Label/index.js.map +1 -1
- package/dist/components/LoadingScreen/index.js +9 -10
- package/dist/components/LoadingScreen/index.js.map +1 -1
- package/dist/components/MaskedInput/index.js +2 -54
- package/dist/components/MaskedInput/index.js.map +1 -1
- package/dist/components/MenuItem/index.js +12 -23
- package/dist/components/MenuItem/index.js.map +1 -1
- package/dist/components/MenuPopover/index.js +2 -47
- package/dist/components/MenuPopover/index.js.map +1 -1
- package/dist/components/Modal/index.js +4 -32
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/ModalActions/index.js +7 -10
- package/dist/components/ModalActions/index.js.map +1 -1
- package/dist/components/MoreMenu/index.js +12 -17
- package/dist/components/MoreMenu/index.js.map +1 -1
- package/dist/components/NumberInput/index.js +2 -108
- package/dist/components/NumberInput/index.js.map +1 -1
- package/dist/components/PasswordRules/index.js +12 -77
- package/dist/components/PasswordRules/index.js.map +1 -1
- package/dist/components/PopoverSelect/index.js +14 -49
- package/dist/components/PopoverSelect/index.js.map +1 -1
- package/dist/components/Portal/index.js +2 -27
- package/dist/components/Portal/index.js.map +1 -1
- package/dist/components/Result/index.js +2 -27
- package/dist/components/Result/index.js.map +1 -1
- package/dist/components/SavedChanges/index.js +8 -41
- package/dist/components/SavedChanges/index.js.map +1 -1
- package/dist/components/Scrollbar/index.js +2 -44
- package/dist/components/Scrollbar/index.js.map +1 -1
- package/dist/components/SearchInput/index.js +4 -72
- package/dist/components/SearchInput/index.js.map +1 -1
- package/dist/components/SelectableCards/index.js +9 -143
- package/dist/components/SelectableCards/index.js.map +1 -1
- package/dist/components/SeoPreview/index.js +14 -166
- package/dist/components/SeoPreview/index.js.map +1 -1
- package/dist/components/SplashScreen/index.js +9 -106
- package/dist/components/SplashScreen/index.js.map +1 -1
- package/dist/components/Steps/index.js +15 -70
- package/dist/components/Steps/index.js.map +1 -1
- package/dist/components/StyledTab/index.js +11 -89
- package/dist/components/StyledTab/index.js.map +1 -1
- package/dist/components/StyledTabs/index.js +8 -26
- package/dist/components/StyledTabs/index.js.map +1 -1
- package/dist/components/Summary/index.js +9 -14
- package/dist/components/Summary/index.js.map +1 -1
- package/dist/components/SwapList/index.js +23 -248
- package/dist/components/SwapList/index.js.map +1 -1
- package/dist/components/TabPanel/index.js +7 -33
- package/dist/components/TabPanel/index.js.map +1 -1
- package/dist/components/TextMaxLine/index.js +3 -48
- package/dist/components/TextMaxLine/index.js.map +1 -1
- package/dist/components/TimePicker/index.js +8 -41
- package/dist/components/TimePicker/index.js.map +1 -1
- package/dist/components/ToggleButtonGroup/index.js +8 -9
- package/dist/components/ToggleButtonGroup/index.js.map +1 -1
- package/dist/components/Tooltip/index.js +7 -7
- package/dist/components/Tooltip/index.js.map +1 -1
- package/dist/components/WhiteBox/index.js +2 -7
- package/dist/components/WhiteBox/index.js.map +1 -1
- package/dist/components/animate/index.js +3 -15
- package/dist/components/animate/index.js.map +1 -1
- package/dist/components/carousel/index.js +17 -9
- package/dist/components/carousel/index.js.map +1 -1
- package/dist/components/form/Address/index.js +16 -198
- package/dist/components/form/Address/index.js.map +1 -1
- package/dist/components/form/Autocomplete/index.js +5 -41
- package/dist/components/form/Autocomplete/index.js.map +1 -1
- package/dist/components/form/AutocompleteDetailed/index.js +10 -41
- package/dist/components/form/AutocompleteDetailed/index.js.map +1 -1
- package/dist/components/form/Checkbox/index.js +10 -50
- package/dist/components/form/Checkbox/index.js.map +1 -1
- package/dist/components/form/Codes/index.js +12 -86
- package/dist/components/form/Codes/index.js.map +1 -1
- package/dist/components/form/ColorPicker/index.js +9 -51
- package/dist/components/form/ColorPicker/index.js.map +1 -1
- package/dist/components/form/DatePicker/index.js +9 -62
- package/dist/components/form/DatePicker/index.js.map +1 -1
- package/dist/components/form/DateRangePicker/index.js +11 -76
- package/dist/components/form/DateRangePicker/index.js.map +1 -1
- package/dist/components/form/DateTimePicker/index.js +9 -60
- package/dist/components/form/DateTimePicker/index.js.map +1 -1
- package/dist/components/form/Field/index.js +2 -48
- package/dist/components/form/Field/index.js.map +1 -1
- package/dist/components/form/Form/index.js +8 -28
- package/dist/components/form/Form/index.js.map +1 -1
- package/dist/components/form/Incrementer/index.js +12 -37
- package/dist/components/form/Incrementer/index.js.map +1 -1
- package/dist/components/form/InputTags/index.js +10 -68
- package/dist/components/form/InputTags/index.js.map +1 -1
- package/dist/components/form/MaskedInput/index.js +3 -44
- package/dist/components/form/MaskedInput/index.js.map +1 -1
- package/dist/components/form/MultiCheckbox/index.js +13 -92
- package/dist/components/form/MultiCheckbox/index.js.map +1 -1
- package/dist/components/form/MultiChipField/index.js +9 -48
- package/dist/components/form/MultiChipField/index.js.map +1 -1
- package/dist/components/form/NumberInput/index.js +8 -42
- package/dist/components/form/NumberInput/index.js.map +1 -1
- package/dist/components/form/Password/index.js +14 -90
- package/dist/components/form/Password/index.js.map +1 -1
- package/dist/components/form/RadioGroup/index.js +14 -126
- package/dist/components/form/RadioGroup/index.js.map +1 -1
- package/dist/components/form/SelectableCards/index.js +15 -21
- package/dist/components/form/SelectableCards/index.js.map +1 -1
- package/dist/components/form/Switch/index.js +10 -70
- package/dist/components/form/Switch/index.js.map +1 -1
- package/dist/components/form/TimePicker/index.js +9 -63
- package/dist/components/form/TimePicker/index.js.map +1 -1
- package/dist/components/form/UploadAvatarWithCrop/index.js +21 -58
- package/dist/components/form/UploadAvatarWithCrop/index.js.map +1 -1
- package/dist/components/form/UploadWithCrop/index.js +24 -58
- package/dist/components/form/UploadWithCrop/index.js.map +1 -1
- package/dist/components/form/Webhook/index.js +20 -145
- package/dist/components/form/Webhook/index.js.map +1 -1
- package/dist/components/lightbox/index.js +17 -2
- package/dist/components/lightbox/index.js.map +1 -1
- package/dist/components/table/index.js +22 -18
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/upload/index.js +24 -13
- package/dist/components/upload/index.js.map +1 -1
- package/dist/hooks/useActiveElement.js +6 -26
- package/dist/hooks/useActiveElement.js.map +1 -1
- package/dist/hooks/useApiMessage.js +6 -32
- package/dist/hooks/useApiMessage.js.map +1 -1
- package/dist/hooks/useAutocomplete.js +7 -60
- package/dist/hooks/useAutocomplete.js.map +1 -1
- package/dist/hooks/useCopyToClipboard.js +6 -21
- package/dist/hooks/useCopyToClipboard.js.map +1 -1
- package/dist/hooks/useDatagrid.js +7 -44
- package/dist/hooks/useDatagrid.js.map +1 -1
- package/dist/hooks/useDebounceValue.js +6 -17
- package/dist/hooks/useDebounceValue.js.map +1 -1
- package/dist/hooks/useDeepCompareEffect.js +7 -15
- package/dist/hooks/useDeepCompareEffect.js.map +1 -1
- package/dist/hooks/useEventCallback.js +3 -16
- package/dist/hooks/useEventCallback.js.map +1 -1
- package/dist/hooks/useEventListener.js +2 -23
- package/dist/hooks/useEventListener.js.map +1 -1
- package/dist/hooks/useIsMounting.js +6 -12
- package/dist/hooks/useIsMounting.js.map +1 -1
- package/dist/hooks/useIsomorphicLayoutEffect.js +2 -5
- package/dist/hooks/useIsomorphicLayoutEffect.js.map +1 -1
- package/dist/hooks/useLocalStorage.js +9 -87
- package/dist/hooks/useLocalStorage.js.map +1 -1
- package/dist/hooks/useMount.js +6 -8
- package/dist/hooks/useMount.js.map +1 -1
- package/dist/hooks/useOnClickOutside.js +6 -14
- package/dist/hooks/useOnClickOutside.js.map +1 -1
- package/dist/hooks/usePagination.js +6 -39
- package/dist/hooks/usePagination.js.map +1 -1
- package/dist/hooks/usePopover.js +2 -23
- package/dist/hooks/usePopover.js.map +1 -1
- package/dist/hooks/useResponsive.js +2 -34
- package/dist/hooks/useResponsive.js.map +1 -1
- package/dist/hooks/useScrollOffSetTop.js +7 -31
- package/dist/hooks/useScrollOffSetTop.js.map +1 -1
- package/dist/hooks/useSnackbar.js +2 -12
- package/dist/hooks/useSnackbar.js.map +1 -1
- package/dist/hooks/useTabs.js +6 -15
- package/dist/hooks/useTabs.js.map +1 -1
- package/dist/hooks/useToggle.js +2 -10
- package/dist/hooks/useToggle.js.map +1 -1
- package/dist/hooks/useUpload.js +2 -56
- package/dist/hooks/useUpload.js.map +1 -1
- package/dist/hooks/useUploadImage.js +3 -78
- package/dist/hooks/useUploadImage.js.map +1 -1
- package/dist/index.css +11 -0
- package/dist/index.css.map +1 -0
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/locales/all-langs.js +2 -38
- package/dist/locales/all-langs.js.map +1 -1
- package/dist/theme/core/index.js +4 -5
- package/dist/theme/core/index.js.map +1 -1
- package/dist/theme/styles/index.d.ts +1 -1
- package/dist/theme/styles/index.js +2 -2
- package/dist/theme/styles/index.js.map +1 -1
- package/dist/theme/theme-provider.js +8 -44
- package/dist/theme/theme-provider.js.map +1 -1
- package/dist/theme/with-settings/index.js +5 -1
- package/dist/theme/with-settings/index.js.map +1 -1
- package/dist/types/addressProps.js +2 -0
- package/dist/types/addressProps.js.map +1 -1
- package/dist/types/api.js +2 -0
- package/dist/types/api.js.map +1 -1
- package/dist/types/autoComplete.js +2 -0
- package/dist/types/autoComplete.js.map +1 -1
- package/dist/types/autoCompleteProps.js +2 -0
- package/dist/types/autoCompleteProps.js.map +1 -1
- package/dist/types/baseField.js +2 -0
- package/dist/types/baseField.js.map +1 -1
- package/dist/types/dataGridProps.js +2 -0
- package/dist/types/dataGridProps.js.map +1 -1
- package/dist/types/datagrid.js +2 -0
- package/dist/types/datagrid.js.map +1 -1
- package/dist/types/datePickerProps.js +2 -0
- package/dist/types/datePickerProps.js.map +1 -1
- package/dist/types/dateRangePickerProps.js +2 -0
- package/dist/types/dateRangePickerProps.js.map +1 -1
- package/dist/types/dateTimePickerProps.js +2 -0
- package/dist/types/dateTimePickerProps.js.map +1 -1
- package/dist/types/fieldProps.js +2 -0
- package/dist/types/fieldProps.js.map +1 -1
- package/dist/types/icon.js +2 -330
- package/dist/types/icon.js.map +1 -1
- package/dist/types/iconProps.js +2 -0
- package/dist/types/iconProps.js.map +1 -1
- package/dist/types/incrementerProps.js +2 -0
- package/dist/types/incrementerProps.js.map +1 -1
- package/dist/types/item.js +2 -0
- package/dist/types/item.js.map +1 -1
- package/dist/types/multiCheckboxProps.js +2 -0
- package/dist/types/multiCheckboxProps.js.map +1 -1
- package/dist/types/numberInputProps.js +2 -0
- package/dist/types/numberInputProps.js.map +1 -1
- package/dist/types/option.js +2 -0
- package/dist/types/option.js.map +1 -1
- package/dist/types/radioGroupProps.js +2 -0
- package/dist/types/radioGroupProps.js.map +1 -1
- package/dist/types/searchInputProps.js +2 -0
- package/dist/types/searchInputProps.js.map +1 -1
- package/dist/types/sectionProps.js +2 -0
- package/dist/types/sectionProps.js.map +1 -1
- package/dist/types/switchProps.js +2 -0
- package/dist/types/switchProps.js.map +1 -1
- package/dist/types/timePickerProps.js +2 -0
- package/dist/types/timePickerProps.js.map +1 -1
- package/dist/types/upload.js +2 -0
- package/dist/types/upload.js.map +1 -1
- package/dist/types/webhook.js +4 -50
- package/dist/types/webhook.js.map +1 -1
- package/dist/utils/color.js +2 -5
- package/dist/utils/color.js.map +1 -1
- package/dist/utils/compare.js +2 -5
- package/dist/utils/compare.js.map +1 -1
- package/dist/utils/date.js +7 -22
- package/dist/utils/date.js.map +1 -1
- package/dist/utils/formatNumber.js +2 -93
- package/dist/utils/formatNumber.js.map +1 -1
- package/dist/utils/formatTime.js +2 -168
- package/dist/utils/formatTime.js.map +1 -1
- package/dist/utils/loadable.js +8 -13
- package/dist/utils/loadable.js.map +1 -1
- package/dist/utils/mask.js +4 -43
- package/dist/utils/mask.js.map +1 -1
- package/dist/utils/number.js +2 -14
- package/dist/utils/number.js.map +1 -1
- package/dist/utils/sort.js +4 -23
- package/dist/utils/sort.js.map +1 -1
- package/dist/utils/uuidv4.js +4 -9
- package/dist/utils/uuidv4.js.map +1 -1
- package/dist/utils/validators.js +2 -85
- package/dist/utils/validators.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
};
|
|
1
|
+
import i from '@mui/material/LinearProgress';
|
|
2
|
+
import t from '@mui/material/Box';
|
|
3
|
+
import { styled } from '@mui/material/styles';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var r=styled(t)({padding:"0 40px",width:"100%",minHeight:"100%",flexGrow:1,display:"flex",alignItems:"center",justifyContent:"center"});var n=()=>jsx(r,{children:jsx(i,{color:"primary",sx:{width:1,maxWidth:360}})}),s=n;
|
|
7
|
+
|
|
8
|
+
export { s as default };
|
|
9
|
+
//# sourceMappingURL=out.js.map
|
|
11
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/LoadingScreen/index.tsx"],"sourcesContent":["import LinearProgress from '@mui/material/LinearProgress';\n\nimport { Container } from './styles';\n\nconst LoadingScreen = () => {\n return (\n <Container>\n <LinearProgress color=\"primary\" sx={{ width: 1, maxWidth: 360 }} />\n </Container>\n );\n};\n\nexport default LoadingScreen;\n"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/LoadingScreen/index.tsx","../../../src/components/LoadingScreen/styles.ts"],"names":["LinearProgress","Box","styled","Container","jsx","LoadingScreen","LoadingScreen_default"],"mappings":"AAAA,OAAOA,MAAoB,+BCA3B,OAAOC,MAAS,oBAChB,OAAS,UAAAC,MAAc,uBAEhB,IAAMC,EAAYD,EAAOD,CAAG,EAAE,CACnC,QAAS,SACT,MAAO,OACP,UAAW,OACX,SAAU,EACV,QAAS,OACT,WAAY,SACZ,eAAgB,QAClB,CAAC,EDJK,cAAAG,MAAA,oBAHN,IAAMC,EAAgB,IAElBD,EAACD,EAAA,CACC,SAAAC,EAACJ,EAAA,CAAe,MAAM,UAAU,GAAI,CAAE,MAAO,EAAG,SAAU,GAAI,EAAG,EACnE,EAIGM,EAAQD","sourcesContent":["import LinearProgress from '@mui/material/LinearProgress';\n\nimport { Container } from './styles';\n\nconst LoadingScreen = () => {\n return (\n <Container>\n <LinearProgress color=\"primary\" sx={{ width: 1, maxWidth: 360 }} />\n </Container>\n );\n};\n\nexport default LoadingScreen;\n","import Box from '@mui/material/Box';\nimport { styled } from '@mui/material/styles';\n\nexport const Container = styled(Box)({\n padding: '0 40px',\n width: '100%',\n minHeight: '100%',\n flexGrow: 1,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n});\n"]}
|
|
@@ -1,55 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { IMaskMixin } from "react-imask";
|
|
4
|
-
import TextField from "@mui/material/TextField";
|
|
5
|
-
const MaskedStyledInput = IMaskMixin((props) => {
|
|
6
|
-
const {
|
|
7
|
-
inputRef,
|
|
8
|
-
"data-value": value,
|
|
9
|
-
defaultValue,
|
|
10
|
-
tabIndex,
|
|
11
|
-
...other
|
|
12
|
-
} = props;
|
|
13
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
-
TextField,
|
|
15
|
-
{
|
|
16
|
-
inputRef,
|
|
17
|
-
fullWidth: true,
|
|
18
|
-
...other,
|
|
19
|
-
inputProps: {
|
|
20
|
-
...other.inputProps,
|
|
21
|
-
tabIndex
|
|
22
|
-
},
|
|
23
|
-
value
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
});
|
|
27
|
-
const MaskedInput = forwardRef(
|
|
28
|
-
({ onChange, name, ...others }, ref) => {
|
|
29
|
-
const [maskedValue, setMaskedValue] = useState("");
|
|
30
|
-
return /* @__PURE__ */ jsx(
|
|
31
|
-
MaskedStyledInput,
|
|
32
|
-
{
|
|
33
|
-
inputRef: ref,
|
|
34
|
-
name,
|
|
35
|
-
"data-value": maskedValue,
|
|
36
|
-
...others,
|
|
37
|
-
onAccept: (v, mask) => {
|
|
38
|
-
setMaskedValue(v);
|
|
39
|
-
onChange({
|
|
40
|
-
target: {
|
|
41
|
-
name,
|
|
42
|
-
value: mask._unmaskedValue
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
MaskedInput.displayName = "MaskedInput";
|
|
51
|
-
var MaskedInput_default = MaskedInput;
|
|
52
|
-
export {
|
|
53
|
-
MaskedInput_default as default
|
|
54
|
-
};
|
|
1
|
+
export { a as default } from '../../chunk-BFD4OAPD.js';
|
|
2
|
+
//# sourceMappingURL=out.js.map
|
|
55
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,24 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}) => {
|
|
14
|
-
return /* @__PURE__ */ jsx(MuiMenuItem, { ...other, disabled: disabled || loading, children: /* @__PURE__ */ jsxs(Stack, { direction: "row", color: "grey.600", alignItems: "center", children: [
|
|
15
|
-
icon && !loading && /* @__PURE__ */ jsx(Icon, { icon, color: "primary.main" }),
|
|
16
|
-
loading && /* @__PURE__ */ jsx(LoadingContainer, { children: /* @__PURE__ */ jsx(CircularProgress, { size: 20 }) }),
|
|
17
|
-
children
|
|
18
|
-
] }) });
|
|
19
|
-
};
|
|
20
|
-
var MenuItem_default = MenuItem;
|
|
21
|
-
export {
|
|
22
|
-
MenuItem_default as default
|
|
23
|
-
};
|
|
1
|
+
import { a } from '../../chunk-FU42GMHJ.js';
|
|
2
|
+
import '../../chunk-ZK4R7GDN.js';
|
|
3
|
+
import f from '@mui/material/CircularProgress';
|
|
4
|
+
import s from '@mui/material/MenuItem';
|
|
5
|
+
import p from '@mui/material/Stack';
|
|
6
|
+
import { styled } from '@mui/material/styles';
|
|
7
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
var i=styled(p)({width:20,height:20,marginRight:16});var d=({icon:t,children:m,loading:o,disabled:n,...a$1})=>jsx(s,{...a$1,disabled:n||o,children:jsxs(p,{direction:"row",color:"grey.600",alignItems:"center",children:[t&&!o&&jsx(a,{icon:t,color:"primary.main"}),o&&jsx(i,{children:jsx(f,{size:20})}),m]})}),P=d;
|
|
10
|
+
|
|
11
|
+
export { P as default };
|
|
12
|
+
//# sourceMappingURL=out.js.map
|
|
24
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/MenuItem/index.tsx"],"sourcesContent":["import CircularProgress from '@mui/material/CircularProgress';\nimport MuiMenuItem from '@mui/material/MenuItem';\nimport Stack from '@mui/material/Stack';\n\nimport Icon from 'components/Icon';\n\nimport { MenuItemProps } from './props';\nimport { LoadingContainer } from './styles';\n\nconst MenuItem = ({\n icon,\n children,\n loading,\n disabled,\n ...other\n}: MenuItemProps) => {\n return (\n <MuiMenuItem {...other} disabled={disabled || loading}>\n <Stack direction=\"row\" color=\"grey.600\" alignItems=\"center\">\n {icon && !loading && <Icon icon={icon} color=\"primary.main\" />}\n {loading && (\n <LoadingContainer>\n <CircularProgress size={20} />\n </LoadingContainer>\n )}\n {children}\n </Stack>\n </MuiMenuItem>\n );\n};\n\nexport default MenuItem;\n"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/MenuItem/index.tsx","../../../src/components/MenuItem/styles.ts"],"names":["CircularProgress","MuiMenuItem","Stack","styled","LoadingContainer","jsx","jsxs","MenuItem","icon","children","loading","disabled","other","Icon_default","MenuItem_default"],"mappings":"4EAAA,OAAOA,MAAsB,iCAC7B,OAAOC,MAAiB,yBACxB,OAAOC,MAAW,sBCFlB,OAAOA,MAAW,sBAClB,OAAS,UAAAC,MAAc,uBAEhB,IAAMC,EAAmBD,EAAOD,CAAK,EAAE,CAC5C,MAAO,GACP,OAAQ,GACR,YAAa,EACf,CAAC,EDWK,OACuB,OAAAG,EADvB,QAAAC,MAAA,oBATN,IAAMC,EAAW,CAAC,CAChB,KAAAC,EACA,SAAAC,EACA,QAAAC,EACA,SAAAC,EACA,GAAGC,CACL,IAEIP,EAACJ,EAAA,CAAa,GAAGW,EAAO,SAAUD,GAAYD,EAC5C,SAAAJ,EAACJ,EAAA,CAAM,UAAU,MAAM,MAAM,WAAW,WAAW,SAChD,UAAAM,GAAQ,CAACE,GAAWL,EAACQ,EAAA,CAAK,KAAML,EAAM,MAAM,eAAe,EAC3DE,GACCL,EAACD,EAAA,CACC,SAAAC,EAACL,EAAA,CAAiB,KAAM,GAAI,EAC9B,EAEDS,GACH,EACF,EAIGK,EAAQP","sourcesContent":["import CircularProgress from '@mui/material/CircularProgress';\nimport MuiMenuItem from '@mui/material/MenuItem';\nimport Stack from '@mui/material/Stack';\n\nimport Icon from 'components/Icon';\n\nimport { MenuItemProps } from './props';\nimport { LoadingContainer } from './styles';\n\nconst MenuItem = ({\n icon,\n children,\n loading,\n disabled,\n ...other\n}: MenuItemProps) => {\n return (\n <MuiMenuItem {...other} disabled={disabled || loading}>\n <Stack direction=\"row\" color=\"grey.600\" alignItems=\"center\">\n {icon && !loading && <Icon icon={icon} color=\"primary.main\" />}\n {loading && (\n <LoadingContainer>\n <CircularProgress size={20} />\n </LoadingContainer>\n )}\n {children}\n </Stack>\n </MuiMenuItem>\n );\n};\n\nexport default MenuItem;\n","import Stack from '@mui/material/Stack';\nimport { styled } from '@mui/material/styles';\n\nexport const LoadingContainer = styled(Stack)({\n width: 20,\n height: 20,\n marginRight: 16,\n});\n"]}
|
|
@@ -1,48 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import getPosition from "./getPosition";
|
|
4
|
-
import { StyledArrow } from "./styles";
|
|
5
|
-
const MenuPopover = ({
|
|
6
|
-
open,
|
|
7
|
-
children,
|
|
8
|
-
arrow = "top-right",
|
|
9
|
-
disabledArrow,
|
|
10
|
-
sx,
|
|
11
|
-
...other
|
|
12
|
-
}) => {
|
|
13
|
-
const { style, anchorOrigin, transformOrigin } = getPosition(arrow);
|
|
14
|
-
return /* @__PURE__ */ jsxs(
|
|
15
|
-
Popover,
|
|
16
|
-
{
|
|
17
|
-
open: Boolean(open),
|
|
18
|
-
anchorEl: open,
|
|
19
|
-
anchorOrigin,
|
|
20
|
-
transformOrigin,
|
|
21
|
-
PaperProps: {
|
|
22
|
-
sx: {
|
|
23
|
-
p: 1,
|
|
24
|
-
width: "auto",
|
|
25
|
-
overflow: "inherit",
|
|
26
|
-
...style,
|
|
27
|
-
"& .MuiMenuItem-root": {
|
|
28
|
-
px: 1,
|
|
29
|
-
typography: "body2",
|
|
30
|
-
borderRadius: 0.75,
|
|
31
|
-
"& svg": { mr: 2, width: 20, height: 20, flexShrink: 0 }
|
|
32
|
-
},
|
|
33
|
-
...sx
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
...other,
|
|
37
|
-
children: [
|
|
38
|
-
!disabledArrow && /* @__PURE__ */ jsx(StyledArrow, { arrow }),
|
|
39
|
-
children
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
};
|
|
44
|
-
var MenuPopover_default = MenuPopover;
|
|
45
|
-
export {
|
|
46
|
-
MenuPopover_default as default
|
|
47
|
-
};
|
|
1
|
+
export { a as default } from '../../chunk-45BEY3NY.js';
|
|
2
|
+
//# sourceMappingURL=out.js.map
|
|
48
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,33 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import Icon from "../Icon";
|
|
6
|
-
import Actions from "./Actions";
|
|
7
|
-
import { Content, Header } from "./styles";
|
|
8
|
-
const Modal = ({
|
|
9
|
-
actions,
|
|
10
|
-
actionsProps,
|
|
11
|
-
children,
|
|
12
|
-
dialogContentProps,
|
|
13
|
-
dialogTitle,
|
|
14
|
-
dialogTitleProps,
|
|
15
|
-
onClose,
|
|
16
|
-
id,
|
|
17
|
-
...other
|
|
18
|
-
}) => {
|
|
19
|
-
const MODAL_ACTIONS = id || "modal-actions";
|
|
20
|
-
return /* @__PURE__ */ jsxs(Dialog, { id, scroll: "body", ...other, onClose, children: [
|
|
21
|
-
/* @__PURE__ */ jsxs(Header, { children: [
|
|
22
|
-
dialogTitle && /* @__PURE__ */ jsx(DialogTitle, { variant: "subtitle1", ...dialogTitleProps, children: dialogTitle }),
|
|
23
|
-
/* @__PURE__ */ jsx(IconButton, { onClick: onClose, children: /* @__PURE__ */ jsx(Icon, { icon: "CLOSE_MARK_BUTTON" }) })
|
|
24
|
-
] }),
|
|
25
|
-
/* @__PURE__ */ jsx(Content, { ...dialogContentProps, children }),
|
|
26
|
-
actions && /* @__PURE__ */ jsx(Actions, { actionsProps: { ...actionsProps, id: MODAL_ACTIONS }, children: actions })
|
|
27
|
-
] });
|
|
28
|
-
};
|
|
29
|
-
var Modal_default = Modal;
|
|
30
|
-
export {
|
|
31
|
-
Modal_default as default
|
|
32
|
-
};
|
|
1
|
+
export { a as default } from '../../chunk-DSQS6PJN.js';
|
|
2
|
+
import '../../chunk-FU42GMHJ.js';
|
|
3
|
+
import '../../chunk-ZK4R7GDN.js';
|
|
4
|
+
//# sourceMappingURL=out.js.map
|
|
33
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
ModalActions_default as default
|
|
10
|
-
};
|
|
1
|
+
import { a } from '../../chunk-IN7SP2ND.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
var i=({children:r,id:t="modal-actions"})=>jsx(a,{container:t,children:r}),n=i;
|
|
5
|
+
|
|
6
|
+
export { n as default };
|
|
7
|
+
//# sourceMappingURL=out.js.map
|
|
11
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/ModalActions/index.tsx"],"sourcesContent":["import { PropsWithChildren } from 'react';\n\nimport Portal from '../Portal';\n\nimport { ModalActionsProps } from './props';\n\nconst ModalActions = ({\n children,\n id = 'modal-actions',\n}: PropsWithChildren<ModalActionsProps>) => (\n <Portal container={id}>{children}</Portal>\n);\n\nexport default ModalActions;\n"]
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ModalActions/index.tsx"],"names":["jsx","ModalActions","children","id","Portal_default","ModalActions_default"],"mappings":"4CAUE,cAAAA,MAAA,oBAJF,IAAMC,EAAe,CAAC,CACpB,SAAAC,EACA,GAAAC,EAAK,eACP,IACEH,EAACI,EAAA,CAAO,UAAWD,EAAK,SAAAD,EAAS,EAG5BG,EAAQJ","sourcesContent":["import { PropsWithChildren } from 'react';\n\nimport Portal from '../Portal';\n\nimport { ModalActionsProps } from './props';\n\nconst ModalActions = ({\n children,\n id = 'modal-actions',\n}: PropsWithChildren<ModalActionsProps>) => (\n <Portal container={id}>{children}</Portal>\n);\n\nexport default ModalActions;\n"]}
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
var MoreMenu_default = MoreMenu;
|
|
15
|
-
export {
|
|
16
|
-
MoreMenu_default as default
|
|
17
|
-
};
|
|
1
|
+
import { a as a$2 } from '../../chunk-45BEY3NY.js';
|
|
2
|
+
import { a as a$1 } from '../../chunk-FU42GMHJ.js';
|
|
3
|
+
import '../../chunk-ZK4R7GDN.js';
|
|
4
|
+
import { a } from '../../chunk-LQRRMVFN.js';
|
|
5
|
+
import u from '@mui/material/IconButton';
|
|
6
|
+
import c from '@mui/material/Stack';
|
|
7
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
var M=({actions:p})=>{let{open:r,onClose:m,onOpen:i}=a();return jsxs(Fragment,{children:[jsx(u,{color:r?"inherit":"default",onClick:i,children:jsx(a$1,{icon:"MORE_BOLD"})}),jsx(a$2,{open:r,onClose:m,arrow:"right-top",children:jsx(c,{component:"ul",gap:.5,minWidth:160,children:p})})]})},k=M;
|
|
10
|
+
|
|
11
|
+
export { k as default };
|
|
12
|
+
//# sourceMappingURL=out.js.map
|
|
18
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/MoreMenu/index.tsx"],"sourcesContent":["import IconButton from '@mui/material/IconButton';\nimport Stack from '@mui/material/Stack';\n\nimport Icon from 'components/Icon';\nimport MenuPopover from 'components/MenuPopover';\nimport usePopover from 'hooks/usePopover';\n\nimport { MoreMenuProps } from './props';\n\nconst MoreMenu = ({ actions }: MoreMenuProps) => {\n const { open, onClose, onOpen } = usePopover();\n return (\n <>\n <IconButton color={open ? 'inherit' : 'default'} onClick={onOpen}>\n <Icon icon=\"MORE_BOLD\" />\n </IconButton>\n\n <MenuPopover open={open} onClose={onClose} arrow=\"right-top\">\n <Stack component=\"ul\" gap={0.5} minWidth={160}>\n {actions}\n </Stack>\n </MenuPopover>\n </>\n );\n};\n\nexport default MoreMenu;\n"]
|
|
1
|
+
{"version":3,"sources":["../../../src/components/MoreMenu/index.tsx"],"names":["IconButton","Stack","Fragment","jsx","jsxs","MoreMenu","actions","open","onClose","onOpen","usePopover_default","Icon_default","MenuPopover_default","MoreMenu_default"],"mappings":"oKAAA,OAAOA,MAAgB,2BACvB,OAAOC,MAAW,sBAWd,mBAAAC,EAEI,OAAAC,EAFJ,QAAAC,MAAA,oBAHJ,IAAMC,EAAW,CAAC,CAAE,QAAAC,CAAQ,IAAqB,CAC/C,GAAM,CAAE,KAAAC,EAAM,QAAAC,EAAS,OAAAC,CAAO,EAAIC,EAAW,EAC7C,OACEN,EAAAF,EAAA,CACE,UAAAC,EAACH,EAAA,CAAW,MAAOO,EAAO,UAAY,UAAW,QAASE,EACxD,SAAAN,EAACQ,EAAA,CAAK,KAAK,YAAY,EACzB,EAEAR,EAACS,EAAA,CAAY,KAAML,EAAM,QAASC,EAAS,MAAM,YAC/C,SAAAL,EAACF,EAAA,CAAM,UAAU,KAAK,IAAK,GAAK,SAAU,IACvC,SAAAK,EACH,EACF,GACF,CAEJ,EAEOO,EAAQR","sourcesContent":["import IconButton from '@mui/material/IconButton';\nimport Stack from '@mui/material/Stack';\n\nimport Icon from 'components/Icon';\nimport MenuPopover from 'components/MenuPopover';\nimport usePopover from 'hooks/usePopover';\n\nimport { MoreMenuProps } from './props';\n\nconst MoreMenu = ({ actions }: MoreMenuProps) => {\n const { open, onClose, onOpen } = usePopover();\n return (\n <>\n <IconButton color={open ? 'inherit' : 'default'} onClick={onOpen}>\n <Icon icon=\"MORE_BOLD\" />\n </IconButton>\n\n <MenuPopover open={open} onClose={onClose} arrow=\"right-top\">\n <Stack component=\"ul\" gap={0.5} minWidth={160}>\n {actions}\n </Stack>\n </MenuPopover>\n </>\n );\n};\n\nexport default MoreMenu;\n"]}
|
|
@@ -1,109 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
NumericFormat
|
|
5
|
-
} from "react-number-format";
|
|
6
|
-
import TextField from "@mui/material/TextField";
|
|
7
|
-
const NumberInput = forwardRef(
|
|
8
|
-
({
|
|
9
|
-
decimalScale = 0,
|
|
10
|
-
fixedDecimalScale = true,
|
|
11
|
-
prefix,
|
|
12
|
-
allowNegative,
|
|
13
|
-
minValue,
|
|
14
|
-
maxValue = Infinity,
|
|
15
|
-
maxLength,
|
|
16
|
-
value,
|
|
17
|
-
inputProps,
|
|
18
|
-
InputProps,
|
|
19
|
-
size,
|
|
20
|
-
disabled,
|
|
21
|
-
name,
|
|
22
|
-
helperText,
|
|
23
|
-
error,
|
|
24
|
-
fullWidth,
|
|
25
|
-
label,
|
|
26
|
-
required,
|
|
27
|
-
onChange,
|
|
28
|
-
tabIndex,
|
|
29
|
-
placeholder,
|
|
30
|
-
margin,
|
|
31
|
-
className
|
|
32
|
-
}, ref) => {
|
|
33
|
-
const [inputkey, setInputKey] = useState(Date.now());
|
|
34
|
-
const delayTimer = useRef(null);
|
|
35
|
-
const reRenderInput = () => setInputKey(Date.now());
|
|
36
|
-
const handleChange = (values, event) => {
|
|
37
|
-
if (!onChange)
|
|
38
|
-
return;
|
|
39
|
-
if (delayTimer.current)
|
|
40
|
-
clearTimeout(delayTimer.current);
|
|
41
|
-
delayTimer.current = setTimeout(() => {
|
|
42
|
-
const { floatValue } = values;
|
|
43
|
-
const comparisonValue = floatValue || 0;
|
|
44
|
-
if (minValue !== void 0 && minValue > comparisonValue) {
|
|
45
|
-
onChange({ target: { name, value: minValue }, event });
|
|
46
|
-
reRenderInput();
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
if (floatValue !== void 0 && maxValue < comparisonValue) {
|
|
50
|
-
onChange({ target: { name, value: maxValue }, event });
|
|
51
|
-
reRenderInput();
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
onChange({
|
|
55
|
-
target: {
|
|
56
|
-
name,
|
|
57
|
-
value: floatValue
|
|
58
|
-
},
|
|
59
|
-
event
|
|
60
|
-
});
|
|
61
|
-
}, 500);
|
|
62
|
-
};
|
|
63
|
-
useEffect(() => {
|
|
64
|
-
return () => {
|
|
65
|
-
if (delayTimer.current) {
|
|
66
|
-
clearTimeout(delayTimer.current);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
}, []);
|
|
70
|
-
return /* @__PURE__ */ jsx(
|
|
71
|
-
NumericFormat,
|
|
72
|
-
{
|
|
73
|
-
getInputRef: ref,
|
|
74
|
-
value,
|
|
75
|
-
prefix,
|
|
76
|
-
decimalSeparator: ",",
|
|
77
|
-
thousandSeparator: ".",
|
|
78
|
-
decimalScale,
|
|
79
|
-
fixedDecimalScale,
|
|
80
|
-
autoComplete: "off",
|
|
81
|
-
allowNegative,
|
|
82
|
-
maxLength,
|
|
83
|
-
onValueChange: handleChange,
|
|
84
|
-
customInput: TextField,
|
|
85
|
-
InputProps: {
|
|
86
|
-
...InputProps
|
|
87
|
-
},
|
|
88
|
-
inputProps: { ...inputProps, tabIndex },
|
|
89
|
-
disabled,
|
|
90
|
-
size,
|
|
91
|
-
helperText,
|
|
92
|
-
error,
|
|
93
|
-
fullWidth,
|
|
94
|
-
label,
|
|
95
|
-
required,
|
|
96
|
-
placeholder,
|
|
97
|
-
margin,
|
|
98
|
-
className
|
|
99
|
-
},
|
|
100
|
-
inputkey
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
);
|
|
104
|
-
NumberInput.displayName = "NumberInput";
|
|
105
|
-
var NumberInput_default = NumberInput;
|
|
106
|
-
export {
|
|
107
|
-
NumberInput_default as default
|
|
108
|
-
};
|
|
1
|
+
export { a as default } from '../../chunk-YC7ED3PY.js';
|
|
2
|
+
//# sourceMappingURL=out.js.map
|
|
109
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,78 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
specialCharacter = false,
|
|
14
|
-
upperCaseChar = false,
|
|
15
|
-
match
|
|
16
|
-
}) => {
|
|
17
|
-
const {
|
|
18
|
-
hasSpecialCharacter,
|
|
19
|
-
hasUpperCaseChar,
|
|
20
|
-
isLengthValid,
|
|
21
|
-
hasNumberChar
|
|
22
|
-
} = validatePassword(
|
|
23
|
-
password,
|
|
24
|
-
passwordSize,
|
|
25
|
-
numberChar,
|
|
26
|
-
specialCharacter,
|
|
27
|
-
upperCaseChar
|
|
28
|
-
);
|
|
29
|
-
return /* @__PURE__ */ jsxs(RulesContainer, { children: [
|
|
30
|
-
/* @__PURE__ */ jsx(Typography, { color: "text.secondary", variant: "body2", children: "Sua senha deve conter:" }),
|
|
31
|
-
/* @__PURE__ */ jsxs(Rules, { children: [
|
|
32
|
-
/* @__PURE__ */ jsxs(Rule, { children: [
|
|
33
|
-
/* @__PURE__ */ jsx(RuleIcon, { passed: isLengthValid }),
|
|
34
|
-
/* @__PURE__ */ jsxs(Typography, { component: "div", children: [
|
|
35
|
-
/* @__PURE__ */ jsxs("strong", { children: [
|
|
36
|
-
passwordSize[0],
|
|
37
|
-
"-",
|
|
38
|
-
passwordSize[1]
|
|
39
|
-
] }),
|
|
40
|
-
" ",
|
|
41
|
-
"caracteres"
|
|
42
|
-
] })
|
|
43
|
-
] }),
|
|
44
|
-
upperCaseChar && /* @__PURE__ */ jsxs(Rule, { children: [
|
|
45
|
-
/* @__PURE__ */ jsx(RuleIcon, { passed: hasUpperCaseChar }),
|
|
46
|
-
/* @__PURE__ */ jsxs(Typography, { component: "div", children: [
|
|
47
|
-
"Pelo menos uma ",
|
|
48
|
-
/* @__PURE__ */ jsx("strong", { children: "letra mai\xFAscula" })
|
|
49
|
-
] })
|
|
50
|
-
] }),
|
|
51
|
-
numberChar && /* @__PURE__ */ jsxs(Rule, { children: [
|
|
52
|
-
/* @__PURE__ */ jsx(RuleIcon, { passed: hasNumberChar }),
|
|
53
|
-
/* @__PURE__ */ jsxs(Typography, { component: "div", children: [
|
|
54
|
-
"Pelo menos ",
|
|
55
|
-
/* @__PURE__ */ jsx("strong", { children: "um n\xFAmero" })
|
|
56
|
-
] })
|
|
57
|
-
] }),
|
|
58
|
-
specialCharacter && /* @__PURE__ */ jsxs(Rule, { children: [
|
|
59
|
-
/* @__PURE__ */ jsx(RuleIcon, { passed: hasSpecialCharacter }),
|
|
60
|
-
/* @__PURE__ */ jsxs(Typography, { component: "div", children: [
|
|
61
|
-
"Pelo menos um ",
|
|
62
|
-
/* @__PURE__ */ jsx("strong", { children: "caracter especial" }),
|
|
63
|
-
" ",
|
|
64
|
-
/* @__PURE__ */ jsx("span", { children: "(#,@,!,?)" })
|
|
65
|
-
] })
|
|
66
|
-
] }),
|
|
67
|
-
match && /* @__PURE__ */ jsxs(Rule, { children: [
|
|
68
|
-
/* @__PURE__ */ jsx(RuleIcon, { passed: match.passwordMatch }),
|
|
69
|
-
/* @__PURE__ */ jsx(Typography, { component: "div", children: "Senha e confirma\xE7\xE3o de senha devem ser iguais" })
|
|
70
|
-
] })
|
|
71
|
-
] })
|
|
72
|
-
] });
|
|
73
|
-
};
|
|
74
|
-
var PasswordRules_default = PasswordRules;
|
|
75
|
-
export {
|
|
76
|
-
PasswordRules_default as default
|
|
77
|
-
};
|
|
1
|
+
import { d } from '../../chunk-Y5SERFBJ.js';
|
|
2
|
+
import { a as a$1 } from '../../chunk-FU42GMHJ.js';
|
|
3
|
+
import '../../chunk-ZK4R7GDN.js';
|
|
4
|
+
import a from '@mui/material/Typography';
|
|
5
|
+
import l from '@mui/material/Stack';
|
|
6
|
+
import { styled, alpha } from '@mui/material/styles';
|
|
7
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
var R=styled(l)(({theme:r})=>({width:"100%",border:`solid 1px ${alpha(r.palette.grey[500],.32)}`,padding:16,borderRadius:8,gap:8})),y=styled(l)(()=>({gap:4})),s=styled(l)(({theme:r})=>({flexDirection:"row",alignItems:"center",gap:8,color:r.palette.text.secondary,div:{fontSize:12},strong:{fontWeight:700,color:r.palette.text.primary}}));var n=({passed:r})=>r?jsx(a$1,{icon:"SIMPLE_CHECK",color:"success.main"}):jsx(a$1,{icon:"WARNING_TRIANGULE",color:"warning.main"}),I=({password:r,passwordSize:t,numberChar:c=!1,specialCharacter:d$1=!1,upperCaseChar:m=!1,match:u})=>{let{hasSpecialCharacter:h,hasUpperCaseChar:f,isLengthValid:P,hasNumberChar:v}=d(r,t,c,d$1,m);return jsxs(R,{children:[jsx(a,{color:"text.secondary",variant:"body2",children:"Sua senha deve conter:"}),jsxs(y,{children:[jsxs(s,{children:[jsx(n,{passed:P}),jsxs(a,{component:"div",children:[jsxs("strong",{children:[t[0],"-",t[1]]})," ","caracteres"]})]}),m&&jsxs(s,{children:[jsx(n,{passed:f}),jsxs(a,{component:"div",children:["Pelo menos uma ",jsx("strong",{children:"letra mai\xFAscula"})]})]}),c&&jsxs(s,{children:[jsx(n,{passed:v}),jsxs(a,{component:"div",children:["Pelo menos ",jsx("strong",{children:"um n\xFAmero"})]})]}),d$1&&jsxs(s,{children:[jsx(n,{passed:h}),jsxs(a,{component:"div",children:["Pelo menos um ",jsx("strong",{children:"caracter especial"})," ",jsx("span",{children:"(#,@,!,?)"})]})]}),u&&jsxs(s,{children:[jsx(n,{passed:u.passwordMatch}),jsx(a,{component:"div",children:"Senha e confirma\xE7\xE3o de senha devem ser iguais"})]})]})]})},L=I;
|
|
10
|
+
|
|
11
|
+
export { L as default };
|
|
12
|
+
//# sourceMappingURL=out.js.map
|
|
78
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PasswordRules/index.tsx"],"sourcesContent":["import Typography from '@mui/material/Typography';\n\nimport { validatePassword } from 'utils/validators';\n\nimport Icon from '../Icon';\n\nimport { PasswordRulesProps, RuleIconPros } from './props';\nimport { Rule, Rules, RulesContainer } from './styles';\n\nconst RuleIcon = ({ passed }: RuleIconPros) => {\n return passed ? (\n <Icon icon=\"SIMPLE_CHECK\" color=\"success.main\" />\n ) : (\n <Icon icon=\"WARNING_TRIANGULE\" color=\"warning.main\" />\n );\n};\n\nconst PasswordRules = ({\n password,\n passwordSize,\n numberChar = false,\n specialCharacter = false,\n upperCaseChar = false,\n match,\n}: PasswordRulesProps) => {\n const {\n hasSpecialCharacter,\n hasUpperCaseChar,\n isLengthValid,\n hasNumberChar,\n } = validatePassword(\n password,\n passwordSize,\n numberChar,\n specialCharacter,\n upperCaseChar,\n );\n\n return (\n <RulesContainer>\n <Typography color=\"text.secondary\" variant=\"body2\">\n Sua senha deve conter:\n </Typography>\n\n <Rules>\n <Rule>\n <RuleIcon passed={isLengthValid} />\n <Typography component=\"div\">\n <strong>\n {passwordSize[0]}-{passwordSize[1]}\n </strong>{' '}\n caracteres\n </Typography>\n </Rule>\n\n {upperCaseChar && (\n <Rule>\n <RuleIcon passed={hasUpperCaseChar} />\n <Typography component=\"div\">\n Pelo menos uma <strong>letra maiúscula</strong>\n </Typography>\n </Rule>\n )}\n\n {numberChar && (\n <Rule>\n <RuleIcon passed={hasNumberChar} />\n <Typography component=\"div\">\n Pelo menos <strong>um número</strong>\n </Typography>\n </Rule>\n )}\n\n {specialCharacter && (\n <Rule>\n <RuleIcon passed={hasSpecialCharacter} />\n <Typography component=\"div\">\n Pelo menos um <strong>caracter especial</strong>{' '}\n <span>(#,@,!,?)</span>\n </Typography>\n </Rule>\n )}\n\n {match && (\n <Rule>\n <RuleIcon passed={match.passwordMatch} />\n <Typography component=\"div\">\n Senha e confirmação de senha devem ser iguais\n </Typography>\n </Rule>\n )}\n </Rules>\n </RulesContainer>\n );\n};\n\nexport default PasswordRules;\n"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/PasswordRules/index.tsx","../../../src/components/PasswordRules/styles.ts"],"names":["Typography","Stack","alpha","styled","RulesContainer","theme","Rules","Rule","jsx","jsxs","RuleIcon","passed","Icon_default","PasswordRules","password","passwordSize","numberChar","specialCharacter","upperCaseChar","match","hasSpecialCharacter","hasUpperCaseChar","isLengthValid","hasNumberChar","validatePassword","PasswordRules_default"],"mappings":"wHAAA,OAAOA,MAAgB,2BCAvB,OAAOC,MAAW,sBAClB,OAAS,SAAAC,EAAO,UAAAC,MAAc,uBAEvB,IAAMC,EAAiBD,EAAOF,CAAK,EAAE,CAAC,CAAE,MAAAI,CAAM,KAAO,CAC1D,MAAO,OACP,OAAQ,aAAaH,EAAMG,EAAM,QAAQ,KAAK,GAAG,EAAG,GAAI,IACxD,QAAS,GACT,aAAc,EACd,IAAK,CACP,EAAE,EAEWC,EAAQH,EAAOF,CAAK,EAAE,KAAO,CACxC,IAAK,CACP,EAAE,EAEWM,EAAOJ,EAAOF,CAAK,EAAE,CAAC,CAAE,MAAAI,CAAM,KAAO,CAChD,cAAe,MACf,WAAY,SACZ,IAAK,EACL,MAAOA,EAAM,QAAQ,KAAK,UAE1B,IAAK,CACH,SAAU,EACZ,EAEA,OAAQ,CACN,WAAY,IACZ,MAAOA,EAAM,QAAQ,KAAK,OAC5B,CACF,EAAE,EDlBE,cAAAG,EAqCQ,QAAAC,MArCR,oBAFJ,IAAMC,EAAW,CAAC,CAAE,OAAAC,CAAO,IAClBA,EACLH,EAACI,EAAA,CAAK,KAAK,eAAe,MAAM,eAAe,EAE/CJ,EAACI,EAAA,CAAK,KAAK,oBAAoB,MAAM,eAAe,EAIlDC,EAAgB,CAAC,CACrB,SAAAC,EACA,aAAAC,EACA,WAAAC,EAAa,GACb,iBAAAC,EAAmB,GACnB,cAAAC,EAAgB,GAChB,MAAAC,CACF,IAA0B,CACxB,GAAM,CACJ,oBAAAC,EACA,iBAAAC,EACA,cAAAC,EACA,cAAAC,CACF,EAAIC,EACFV,EACAC,EACAC,EACAC,EACAC,CACF,EAEA,OACET,EAACL,EAAA,CACC,UAAAI,EAACR,EAAA,CAAW,MAAM,iBAAiB,QAAQ,QAAQ,kCAEnD,EAEAS,EAACH,EAAA,CACC,UAAAG,EAACF,EAAA,CACC,UAAAC,EAACE,EAAA,CAAS,OAAQY,EAAe,EACjCb,EAACT,EAAA,CAAW,UAAU,MACpB,UAAAS,EAAC,UACE,UAAAM,EAAa,CAAC,EAAE,IAAEA,EAAa,CAAC,GACnC,EAAU,IAAI,cAEhB,GACF,EAECG,GACCT,EAACF,EAAA,CACC,UAAAC,EAACE,EAAA,CAAS,OAAQW,EAAkB,EACpCZ,EAACT,EAAA,CAAW,UAAU,MAAM,4BACXQ,EAAC,UAAO,8BAAe,GACxC,GACF,EAGDQ,GACCP,EAACF,EAAA,CACC,UAAAC,EAACE,EAAA,CAAS,OAAQa,EAAe,EACjCd,EAACT,EAAA,CAAW,UAAU,MAAM,wBACfQ,EAAC,UAAO,wBAAS,GAC9B,GACF,EAGDS,GACCR,EAACF,EAAA,CACC,UAAAC,EAACE,EAAA,CAAS,OAAQU,EAAqB,EACvCX,EAACT,EAAA,CAAW,UAAU,MAAM,2BACZQ,EAAC,UAAO,6BAAiB,EAAU,IACjDA,EAAC,QAAK,qBAAS,GACjB,GACF,EAGDW,GACCV,EAACF,EAAA,CACC,UAAAC,EAACE,EAAA,CAAS,OAAQS,EAAM,cAAe,EACvCX,EAACR,EAAA,CAAW,UAAU,MAAM,+DAE5B,GACF,GAEJ,GACF,CAEJ,EAEOyB,EAAQZ","sourcesContent":["import Typography from '@mui/material/Typography';\n\nimport { validatePassword } from 'utils/validators';\n\nimport Icon from '../Icon';\n\nimport { PasswordRulesProps, RuleIconPros } from './props';\nimport { Rule, Rules, RulesContainer } from './styles';\n\nconst RuleIcon = ({ passed }: RuleIconPros) => {\n return passed ? (\n <Icon icon=\"SIMPLE_CHECK\" color=\"success.main\" />\n ) : (\n <Icon icon=\"WARNING_TRIANGULE\" color=\"warning.main\" />\n );\n};\n\nconst PasswordRules = ({\n password,\n passwordSize,\n numberChar = false,\n specialCharacter = false,\n upperCaseChar = false,\n match,\n}: PasswordRulesProps) => {\n const {\n hasSpecialCharacter,\n hasUpperCaseChar,\n isLengthValid,\n hasNumberChar,\n } = validatePassword(\n password,\n passwordSize,\n numberChar,\n specialCharacter,\n upperCaseChar,\n );\n\n return (\n <RulesContainer>\n <Typography color=\"text.secondary\" variant=\"body2\">\n Sua senha deve conter:\n </Typography>\n\n <Rules>\n <Rule>\n <RuleIcon passed={isLengthValid} />\n <Typography component=\"div\">\n <strong>\n {passwordSize[0]}-{passwordSize[1]}\n </strong>{' '}\n caracteres\n </Typography>\n </Rule>\n\n {upperCaseChar && (\n <Rule>\n <RuleIcon passed={hasUpperCaseChar} />\n <Typography component=\"div\">\n Pelo menos uma <strong>letra maiúscula</strong>\n </Typography>\n </Rule>\n )}\n\n {numberChar && (\n <Rule>\n <RuleIcon passed={hasNumberChar} />\n <Typography component=\"div\">\n Pelo menos <strong>um número</strong>\n </Typography>\n </Rule>\n )}\n\n {specialCharacter && (\n <Rule>\n <RuleIcon passed={hasSpecialCharacter} />\n <Typography component=\"div\">\n Pelo menos um <strong>caracter especial</strong>{' '}\n <span>(#,@,!,?)</span>\n </Typography>\n </Rule>\n )}\n\n {match && (\n <Rule>\n <RuleIcon passed={match.passwordMatch} />\n <Typography component=\"div\">\n Senha e confirmação de senha devem ser iguais\n </Typography>\n </Rule>\n )}\n </Rules>\n </RulesContainer>\n );\n};\n\nexport default PasswordRules;\n","import Stack from '@mui/material/Stack';\nimport { alpha, styled } from '@mui/material/styles';\n\nexport const RulesContainer = styled(Stack)(({ theme }) => ({\n width: '100%',\n border: `solid 1px ${alpha(theme.palette.grey[500], 0.32)}`,\n padding: 16,\n borderRadius: 8,\n gap: 8,\n}));\n\nexport const Rules = styled(Stack)(() => ({\n gap: 4,\n}));\n\nexport const Rule = styled(Stack)(({ theme }) => ({\n flexDirection: 'row',\n alignItems: 'center',\n gap: 8,\n color: theme.palette.text.secondary,\n\n div: {\n fontSize: 12,\n },\n\n strong: {\n fontWeight: 700,\n color: theme.palette.text.primary,\n },\n}));\n"]}
|
|
@@ -1,50 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const popover = usePopover();
|
|
16
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17
|
-
/* @__PURE__ */ jsx(
|
|
18
|
-
StyledButton,
|
|
19
|
-
{
|
|
20
|
-
disableRipple: true,
|
|
21
|
-
color: "inherit",
|
|
22
|
-
onClick: popover.onOpen,
|
|
23
|
-
endIcon: /* @__PURE__ */ jsx(
|
|
24
|
-
StyledIcon,
|
|
25
|
-
{
|
|
26
|
-
icon: popover.open ? "CHEVRON_UP" : "ARROW_DOWN_SIMPLE"
|
|
27
|
-
}
|
|
28
|
-
),
|
|
29
|
-
children: /* @__PURE__ */ jsx(StyledBox, { component: "span", children: selectedTitle.label })
|
|
30
|
-
}
|
|
31
|
-
),
|
|
32
|
-
/* @__PURE__ */ jsx(MenuPopover, { open: popover.open, onClose: popover.onClose, children: options.map((option) => /* @__PURE__ */ jsx(
|
|
33
|
-
MenuItem,
|
|
34
|
-
{
|
|
35
|
-
selected: option.value === selectedTitle.value,
|
|
36
|
-
onClick: () => {
|
|
37
|
-
popover.onClose();
|
|
38
|
-
onSelect(option.value);
|
|
39
|
-
},
|
|
40
|
-
children: option.label
|
|
41
|
-
},
|
|
42
|
-
option.value
|
|
43
|
-
)) })
|
|
44
|
-
] });
|
|
45
|
-
};
|
|
46
|
-
var PopoverSelect_default = PopoverSelect;
|
|
47
|
-
export {
|
|
48
|
-
PopoverSelect_default as default
|
|
49
|
-
};
|
|
1
|
+
import { a as a$3 } from '../../chunk-45BEY3NY.js';
|
|
2
|
+
import { a as a$1 } from '../../chunk-FU42GMHJ.js';
|
|
3
|
+
import '../../chunk-ZK4R7GDN.js';
|
|
4
|
+
import { a as a$2 } from '../../chunk-LQRRMVFN.js';
|
|
5
|
+
import S from '@mui/material/MenuItem';
|
|
6
|
+
import a from '@mui/material/Box';
|
|
7
|
+
import s from '@mui/material/Button';
|
|
8
|
+
import { styled } from '@mui/material/styles';
|
|
9
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
10
|
+
|
|
11
|
+
var i=styled(a)(()=>({marginLeft:"4px",fontWeight:"fontWeightBold"})),c=styled(s)(()=>({fontWeight:"fontWeightSemiBold"})),f=styled(a$1)(({theme:t})=>({color:t.palette.primary.main}));var v=({selectedTitle:t,onSelect:d,options:u})=>{let o=a$2();return jsxs(Fragment,{children:[jsx(c,{disableRipple:!0,color:"inherit",onClick:o.onOpen,endIcon:jsx(f,{icon:o.open?"CHEVRON_UP":"ARROW_DOWN_SIMPLE"}),children:jsx(i,{component:"span",children:t.label})}),jsx(a$3,{open:o.open,onClose:o.onClose,children:u.map(r=>jsx(S,{selected:r.value===t.value,onClick:()=>{o.onClose(),d(r.value);},children:r.label},r.value))})]})},R=v;
|
|
12
|
+
|
|
13
|
+
export { R as default };
|
|
14
|
+
//# sourceMappingURL=out.js.map
|
|
50
15
|
//# sourceMappingURL=index.js.map
|