@zydon/common 2.2.47 → 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.d.ts +2 -2
- 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.d.ts +91 -91
- 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.d.ts +1 -1
- package/dist/hooks/useDatagrid.js +7 -43
- 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.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,46 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}) => {
|
|
13
|
-
return /* @__PURE__ */ jsxs(
|
|
14
|
-
Stack,
|
|
15
|
-
{
|
|
16
|
-
height: 1,
|
|
17
|
-
width: 1,
|
|
18
|
-
alignItems: "center",
|
|
19
|
-
justifyContent: "center",
|
|
20
|
-
textAlign: "center",
|
|
21
|
-
gap: 3,
|
|
22
|
-
children: [
|
|
23
|
-
/* @__PURE__ */ jsx(ImSorry, {}),
|
|
24
|
-
/* @__PURE__ */ jsxs(Stack, { children: [
|
|
25
|
-
/* @__PURE__ */ jsx(Typography, { variant: "h5", color: "grey.600", children: title }),
|
|
26
|
-
/* @__PURE__ */ jsx(Typography, { variant: "body1", color: "grey.600", children: description })
|
|
27
|
-
] }),
|
|
28
|
-
/* @__PURE__ */ jsx(
|
|
29
|
-
Button,
|
|
30
|
-
{
|
|
31
|
-
variant: "contained",
|
|
32
|
-
size: "large",
|
|
33
|
-
startIcon: /* @__PURE__ */ jsx(Icon, { icon: "REFRESH_CHANGE" }),
|
|
34
|
-
onClick: onClickButton,
|
|
35
|
-
children: textButton
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
var Error_default = Error;
|
|
43
|
-
export {
|
|
44
|
-
Error_default as default
|
|
45
|
-
};
|
|
1
|
+
import { a } from '../../chunk-FU42GMHJ.js';
|
|
2
|
+
import '../../chunk-ZK4R7GDN.js';
|
|
3
|
+
import f from '@mui/material/Button';
|
|
4
|
+
import l from '@mui/material/Stack';
|
|
5
|
+
import e from '@mui/material/Typography';
|
|
6
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var c=()=>jsxs("svg",{width:"270",height:"240",viewBox:"0 0 270 240",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M134.533 239.195C60.232 239.195 0 235.603 0 231.173C0 226.744 60.232 223.152 134.533 223.152C208.835 223.152 269.067 226.744 269.067 231.173C269.067 235.603 208.835 239.195 134.533 239.195Z",fill:"#989898"}),jsx("path",{d:"M3.30371 156.829V184.359C3.30371 186.993 5.45705 189.141 8.08905 189.141H260.978C263.614 189.141 265.764 186.993 265.764 184.359V156.829H3.30371Z",fill:"#CFCFCF"}),jsx("path",{d:"M265.764 4.78535C265.764 2.15202 263.615 0 260.979 0H8.08933C5.45599 0 3.30266 2.15202 3.30266 4.78535V156.829H265.764L265.764 4.78535Z",fill:"#989898"}),jsx("path",{d:"M180.226 216.856H89.9502V189.14H180.226V216.856Z",fill:"#D8D7D5"}),jsx("path",{d:"M200.68 229.833H68.2568V216.859H200.68V229.833Z",fill:"#CFCFCF"}),jsx("path",{d:"M180.226 199.157H89.9502V189.14H180.226V199.157Z",fill:"#BCBBB9"}),jsx("path",{d:"M16.872 13.652H252.247V142.804H16.872V13.652Z",fill:"white"}),jsx("ellipse",{cx:"95.0798",cy:"73.1186",rx:"5.56321",ry:"7.64941",fill:"#CFCFCF"}),jsx("ellipse",{cx:"88.8218",cy:"88.3312",rx:"11.8218",ry:"4.1724",fill:"#EFEFEF",fillOpacity:"0.59"}),jsx("ellipse",{cx:"180.614",cy:"88.3312",rx:"11.8218",ry:"4.1724",fill:"#EFEFEF",fillOpacity:"0.59"}),jsx("ellipse",{cx:"172.965",cy:"73.1186",rx:"5.56321",ry:"7.64941",fill:"#CFCFCF"}),jsx("path",{d:"M122.896 88.4174C128.459 99.5438 140.281 97.4576 145.148 88.4174",stroke:"#CFCFCF",strokeWidth:"2.7816",strokeLinecap:"round"}),jsx("path",{d:"M168.792 52.952C175.051 57.8198 175.746 58.5152 183.395 57.8198",stroke:"#CFCFCF",strokeWidth:"2.7816",strokeLinecap:"round"}),jsx("path",{d:"M99.9473 52.952C93.6887 57.8198 92.9933 58.5152 85.3439 57.8198",stroke:"#CFCFCF",strokeWidth:"2.7816",strokeLinecap:"round"})]}),i=c;var s=({title:C,description:a$1,onClickButton:n,textButton:F="Atualizar"})=>jsxs(l,{height:1,width:1,alignItems:"center",justifyContent:"center",textAlign:"center",gap:3,children:[jsx(i,{}),jsxs(l,{children:[jsx(e,{variant:"h5",color:"grey.600",children:C}),jsx(e,{variant:"body1",color:"grey.600",children:a$1})]}),jsx(f,{variant:"contained",size:"large",startIcon:jsx(a,{icon:"REFRESH_CHANGE"}),onClick:n,children:F})]}),x=s;
|
|
9
|
+
|
|
10
|
+
export { x as default };
|
|
11
|
+
//# sourceMappingURL=out.js.map
|
|
46
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Error/index.tsx"],"sourcesContent":["import Button from '@mui/material/Button';\nimport Stack from '@mui/material/Stack';\nimport Typography from '@mui/material/Typography';\n\nimport ImSorry from 'assets/illustrations/ImSorry';\n\nimport Icon from '../Icon';\n\nimport { ErrorProps } from './props';\n\nconst Error = ({\n title,\n description,\n onClickButton,\n textButton = 'Atualizar',\n}: ErrorProps) => {\n return (\n <Stack\n height={1}\n width={1}\n alignItems=\"center\"\n justifyContent=\"center\"\n textAlign=\"center\"\n gap={3}\n >\n <ImSorry />\n\n <Stack>\n <Typography variant=\"h5\" color=\"grey.600\">\n {title}\n </Typography>\n\n <Typography variant=\"body1\" color=\"grey.600\">\n {description}\n </Typography>\n </Stack>\n\n <Button\n variant=\"contained\"\n size=\"large\"\n startIcon={<Icon icon=\"REFRESH_CHANGE\" />}\n onClick={onClickButton}\n >\n {textButton}\n </Button>\n </Stack>\n );\n};\n\nexport default Error;\n"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Error/index.tsx","../../../src/assets/illustrations/ImSorry.tsx"],"names":["Button","Stack","Typography","jsx","jsxs","ImSorry","ImSorry_default","Error","title","description","onClickButton","textButton","Icon_default","Error_default"],"mappings":"4EAAA,OAAOA,MAAY,uBACnB,OAAOC,MAAW,sBAClB,OAAOC,MAAgB,2BCAnB,OAOE,OAAAC,EAPF,QAAAC,MAAA,oBAFJ,IAAMC,EAAU,IAEZD,EAAC,OACC,MAAM,MACN,OAAO,MACP,QAAQ,cACR,KAAK,OACL,MAAM,6BAEN,UAAAD,EAAC,QACC,EAAE,gMACF,KAAK,UACP,EACAA,EAAC,QACC,EAAE,oJACF,KAAK,UACP,EACAA,EAAC,QACC,EAAE,0IACF,KAAK,UACP,EACAA,EAAC,QACC,EAAE,mDACF,KAAK,UACP,EACAA,EAAC,QACC,EAAE,kDACF,KAAK,UACP,EACAA,EAAC,QACC,EAAE,mDACF,KAAK,UACP,EACAA,EAAC,QAAK,EAAE,gDAAgD,KAAK,QAAQ,EACrEA,EAAC,WACC,GAAG,UACH,GAAG,UACH,GAAG,UACH,GAAG,UACH,KAAK,UACP,EACAA,EAAC,WACC,GAAG,UACH,GAAG,UACH,GAAG,UACH,GAAG,SACH,KAAK,UACL,YAAY,OACd,EACAA,EAAC,WACC,GAAG,UACH,GAAG,UACH,GAAG,UACH,GAAG,SACH,KAAK,UACL,YAAY,OACd,EACAA,EAAC,WACC,GAAG,UACH,GAAG,UACH,GAAG,UACH,GAAG,UACH,KAAK,UACP,EACAA,EAAC,QACC,EAAE,mEACF,OAAO,UACP,YAAY,SACZ,cAAc,QAChB,EACAA,EAAC,QACC,EAAE,kEACF,OAAO,UACP,YAAY,SACZ,cAAc,QAChB,EACAA,EAAC,QACC,EAAE,kEACF,OAAO,UACP,YAAY,SACZ,cAAc,QAChB,GACF,EAIGG,EAAQD,ED7DT,cAAAF,EAEA,QAAAC,MAFA,oBAfN,IAAMG,EAAQ,CAAC,CACb,MAAAC,EACA,YAAAC,EACA,cAAAC,EACA,WAAAC,EAAa,WACf,IAEIP,EAACH,EAAA,CACC,OAAQ,EACR,MAAO,EACP,WAAW,SACX,eAAe,SACf,UAAU,SACV,IAAK,EAEL,UAAAE,EAACG,EAAA,EAAQ,EAETF,EAACH,EAAA,CACC,UAAAE,EAACD,EAAA,CAAW,QAAQ,KAAK,MAAM,WAC5B,SAAAM,EACH,EAEAL,EAACD,EAAA,CAAW,QAAQ,QAAQ,MAAM,WAC/B,SAAAO,EACH,GACF,EAEAN,EAACH,EAAA,CACC,QAAQ,YACR,KAAK,QACL,UAAWG,EAACS,EAAA,CAAK,KAAK,iBAAiB,EACvC,QAASF,EAER,SAAAC,EACH,GACF,EAIGE,EAAQN","sourcesContent":["import Button from '@mui/material/Button';\nimport Stack from '@mui/material/Stack';\nimport Typography from '@mui/material/Typography';\n\nimport ImSorry from 'assets/illustrations/ImSorry';\n\nimport Icon from '../Icon';\n\nimport { ErrorProps } from './props';\n\nconst Error = ({\n title,\n description,\n onClickButton,\n textButton = 'Atualizar',\n}: ErrorProps) => {\n return (\n <Stack\n height={1}\n width={1}\n alignItems=\"center\"\n justifyContent=\"center\"\n textAlign=\"center\"\n gap={3}\n >\n <ImSorry />\n\n <Stack>\n <Typography variant=\"h5\" color=\"grey.600\">\n {title}\n </Typography>\n\n <Typography variant=\"body1\" color=\"grey.600\">\n {description}\n </Typography>\n </Stack>\n\n <Button\n variant=\"contained\"\n size=\"large\"\n startIcon={<Icon icon=\"REFRESH_CHANGE\" />}\n onClick={onClickButton}\n >\n {textButton}\n </Button>\n </Stack>\n );\n};\n\nexport default Error;\n","const ImSorry = () => {\n return (\n <svg\n width=\"270\"\n height=\"240\"\n viewBox=\"0 0 270 240\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M134.533 239.195C60.232 239.195 0 235.603 0 231.173C0 226.744 60.232 223.152 134.533 223.152C208.835 223.152 269.067 226.744 269.067 231.173C269.067 235.603 208.835 239.195 134.533 239.195Z\"\n fill=\"#989898\"\n />\n <path\n d=\"M3.30371 156.829V184.359C3.30371 186.993 5.45705 189.141 8.08905 189.141H260.978C263.614 189.141 265.764 186.993 265.764 184.359V156.829H3.30371Z\"\n fill=\"#CFCFCF\"\n />\n <path\n d=\"M265.764 4.78535C265.764 2.15202 263.615 0 260.979 0H8.08933C5.45599 0 3.30266 2.15202 3.30266 4.78535V156.829H265.764L265.764 4.78535Z\"\n fill=\"#989898\"\n />\n <path\n d=\"M180.226 216.856H89.9502V189.14H180.226V216.856Z\"\n fill=\"#D8D7D5\"\n />\n <path\n d=\"M200.68 229.833H68.2568V216.859H200.68V229.833Z\"\n fill=\"#CFCFCF\"\n />\n <path\n d=\"M180.226 199.157H89.9502V189.14H180.226V199.157Z\"\n fill=\"#BCBBB9\"\n />\n <path d=\"M16.872 13.652H252.247V142.804H16.872V13.652Z\" fill=\"white\" />\n <ellipse\n cx=\"95.0798\"\n cy=\"73.1186\"\n rx=\"5.56321\"\n ry=\"7.64941\"\n fill=\"#CFCFCF\"\n />\n <ellipse\n cx=\"88.8218\"\n cy=\"88.3312\"\n rx=\"11.8218\"\n ry=\"4.1724\"\n fill=\"#EFEFEF\"\n fillOpacity=\"0.59\"\n />\n <ellipse\n cx=\"180.614\"\n cy=\"88.3312\"\n rx=\"11.8218\"\n ry=\"4.1724\"\n fill=\"#EFEFEF\"\n fillOpacity=\"0.59\"\n />\n <ellipse\n cx=\"172.965\"\n cy=\"73.1186\"\n rx=\"5.56321\"\n ry=\"7.64941\"\n fill=\"#CFCFCF\"\n />\n <path\n d=\"M122.896 88.4174C128.459 99.5438 140.281 97.4576 145.148 88.4174\"\n stroke=\"#CFCFCF\"\n strokeWidth=\"2.7816\"\n strokeLinecap=\"round\"\n />\n <path\n d=\"M168.792 52.952C175.051 57.8198 175.746 58.5152 183.395 57.8198\"\n stroke=\"#CFCFCF\"\n strokeWidth=\"2.7816\"\n strokeLinecap=\"round\"\n />\n <path\n d=\"M99.9473 52.952C93.6887 57.8198 92.9933 58.5152 85.3439 57.8198\"\n stroke=\"#CFCFCF\"\n strokeWidth=\"2.7816\"\n strokeLinecap=\"round\"\n />\n </svg>\n );\n};\n\nexport default ImSorry;\n"]}
|
|
@@ -1,33 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const [expanded, toggleExpanded] = useToggle(true);
|
|
16
|
-
return /* @__PURE__ */ jsxs(Container, { children: [
|
|
17
|
-
/* @__PURE__ */ jsxs(GroupTop, { direction: "row", children: [
|
|
18
|
-
/* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", gap: 1.5, flex: 1, children: [
|
|
19
|
-
/* @__PURE__ */ jsx(IconButton, { edge: "end", onClick: toggleExpanded, children: /* @__PURE__ */ jsx(Icon, { icon: expanded ? "CHEVRON_UP" : "CHEVRON_RIGHT" }) }),
|
|
20
|
-
/* @__PURE__ */ jsx(Typography, { variant: "overline", color: "text.primary", children: name }),
|
|
21
|
-
/* @__PURE__ */ jsx(Typography, { variant: "overline", color: "text.secondary", children: description }),
|
|
22
|
-
/* @__PURE__ */ jsx(Stack, { flex: 1, children: header })
|
|
23
|
-
] }),
|
|
24
|
-
/* @__PURE__ */ jsx(IconButton, { color: "error", onClick: onDelete, children: /* @__PURE__ */ jsx(Icon, { icon: "DELETE_MARK_BUTTON_02" }) })
|
|
25
|
-
] }),
|
|
26
|
-
/* @__PURE__ */ jsx(CollapseGroup, { in: expanded, timeout: "auto", unmountOnExit: true, children })
|
|
27
|
-
] });
|
|
28
|
-
};
|
|
29
|
-
var ExpandableGroup_default = ExpandableGroup;
|
|
30
|
-
export {
|
|
31
|
-
ExpandableGroup_default as default
|
|
32
|
-
};
|
|
1
|
+
import { a as a$1 } from '../../chunk-FU42GMHJ.js';
|
|
2
|
+
import '../../chunk-ZK4R7GDN.js';
|
|
3
|
+
import { a } from '../../chunk-E3R7W7GK.js';
|
|
4
|
+
import s from '@mui/material/IconButton';
|
|
5
|
+
import p from '@mui/material/Stack';
|
|
6
|
+
import g from '@mui/material/Typography';
|
|
7
|
+
import G from '@mui/material/Collapse';
|
|
8
|
+
import { styled, alpha } from '@mui/material/styles';
|
|
9
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
|
+
|
|
11
|
+
var d=styled(p)(({theme:r})=>({border:`1px solid ${alpha(r.palette.grey[500],.32)}`,borderRadius:8,alignItems:"center",overflow:"hidden"})),c=styled(p)(()=>({backgroundColor:"#F5F5F5",padding:8,width:"100%",justifyContent:"space-between",alignItems:"center",gap:12,"& .MuiInputBase-root":{backgroundColor:"#fff"}}));styled(p)(({theme:r})=>({border:`1px solid ${alpha(r.palette.grey[500],.32)}`,borderRadius:8,alignItems:"center"}));var m=styled(G)(()=>({width:"100%",padding:"12px 16px"}));var T=({description:r,name:f,children:x,header:C,onDelete:y})=>{let[i,h]=a(!0);return jsxs(d,{children:[jsxs(c,{direction:"row",children:[jsxs(p,{direction:"row",alignItems:"center",gap:1.5,flex:1,children:[jsx(s,{edge:"end",onClick:h,children:jsx(a$1,{icon:i?"CHEVRON_UP":"CHEVRON_RIGHT"})}),jsx(g,{variant:"overline",color:"text.primary",children:f}),jsx(g,{variant:"overline",color:"text.secondary",children:r}),jsx(p,{flex:1,children:C})]}),jsx(s,{color:"error",onClick:y,children:jsx(a$1,{icon:"DELETE_MARK_BUTTON_02"})})]}),jsx(m,{in:i,timeout:"auto",unmountOnExit:!0,children:x})]})},S=T;
|
|
12
|
+
|
|
13
|
+
export { S as default };
|
|
14
|
+
//# sourceMappingURL=out.js.map
|
|
33
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/ExpandableGroup/index.tsx"],"sourcesContent":["import { PropsWithChildren } from 'react';\nimport IconButton from '@mui/material/IconButton';\nimport Stack from '@mui/material/Stack';\nimport Typography from '@mui/material/Typography';\n\nimport useToggle from 'hooks/useToggle';\n\nimport Icon from '../Icon';\n\nimport { ExpandableGroupProps } from './props';\nimport { CollapseGroup, Container, GroupTop } from './styles';\n\nconst ExpandableGroup = ({\n description,\n name,\n children,\n header,\n onDelete,\n}: PropsWithChildren<ExpandableGroupProps>) => {\n const [expanded, toggleExpanded] = useToggle(true);\n\n return (\n <Container>\n <GroupTop direction=\"row\">\n <Stack direction=\"row\" alignItems=\"center\" gap={1.5} flex={1}>\n <IconButton edge=\"end\" onClick={toggleExpanded}>\n <Icon icon={expanded ? 'CHEVRON_UP' : 'CHEVRON_RIGHT'} />\n </IconButton>\n\n <Typography variant=\"overline\" color=\"text.primary\">\n {name}\n </Typography>\n\n <Typography variant=\"overline\" color=\"text.secondary\">\n {description}\n </Typography>\n\n <Stack flex={1}>{header}</Stack>\n </Stack>\n <IconButton color=\"error\" onClick={onDelete}>\n <Icon icon=\"DELETE_MARK_BUTTON_02\" />\n </IconButton>\n </GroupTop>\n\n <CollapseGroup in={expanded} timeout=\"auto\" unmountOnExit>\n {children}\n </CollapseGroup>\n </Container>\n );\n};\n\nexport default ExpandableGroup;\n"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ExpandableGroup/index.tsx","../../../src/components/ExpandableGroup/styles.ts"],"names":["IconButton","Stack","Typography","Collapse","alpha","styled","Container","theme","GroupTop","GroupContainer","CollapseGroup","jsx","jsxs","ExpandableGroup","description","name","children","header","onDelete","expanded","toggleExpanded","useToggle_default","Icon_default","ExpandableGroup_default"],"mappings":"mHACA,OAAOA,MAAgB,2BACvB,OAAOC,MAAW,sBAClB,OAAOC,MAAgB,2BCHvB,OAAOC,MAAc,yBACrB,OAAOF,MAAW,sBAClB,OAAS,SAAAG,EAAO,UAAAC,MAAc,uBAEvB,IAAMC,EAAYD,EAAOJ,CAAK,EAAE,CAAC,CAAE,MAAAM,CAAM,KAAO,CACrD,OAAQ,aAAaH,EAAMG,EAAM,QAAQ,KAAK,GAAG,EAAG,GAAI,IACxD,aAAc,EACd,WAAY,SACZ,SAAU,QACZ,EAAE,EAEWC,EAAWH,EAAOJ,CAAK,EAAE,KAAO,CAC3C,gBAAiB,UACjB,QAAS,EACT,MAAO,OACP,eAAgB,gBAChB,WAAY,SACZ,IAAK,GAEL,uBAAwB,CACtB,gBAAiB,MACnB,CACF,EAAE,EAEWQ,EAAiBJ,EAAOJ,CAAK,EAAE,CAAC,CAAE,MAAAM,CAAM,KAAO,CAC1D,OAAQ,aAAaH,EAAMG,EAAM,QAAQ,KAAK,GAAG,EAAG,GAAI,IACxD,aAAc,EACd,WAAY,QACd,EAAE,EAEWG,EAAgBL,EAAOF,CAAQ,EAAE,KAAO,CACnD,MAAO,OACP,QAAS,WACX,EAAE,EDTM,OAEI,OAAAQ,EAFJ,QAAAC,MAAA,oBAZR,IAAMC,EAAkB,CAAC,CACvB,YAAAC,EACA,KAAAC,EACA,SAAAC,EACA,OAAAC,EACA,SAAAC,CACF,IAA+C,CAC7C,GAAM,CAACC,EAAUC,CAAc,EAAIC,EAAU,EAAI,EAEjD,OACET,EAACN,EAAA,CACC,UAAAM,EAACJ,EAAA,CAAS,UAAU,MAClB,UAAAI,EAACX,EAAA,CAAM,UAAU,MAAM,WAAW,SAAS,IAAK,IAAK,KAAM,EACzD,UAAAU,EAACX,EAAA,CAAW,KAAK,MAAM,QAASoB,EAC9B,SAAAT,EAACW,EAAA,CAAK,KAAMH,EAAW,aAAe,gBAAiB,EACzD,EAEAR,EAACT,EAAA,CAAW,QAAQ,WAAW,MAAM,eAClC,SAAAa,EACH,EAEAJ,EAACT,EAAA,CAAW,QAAQ,WAAW,MAAM,iBAClC,SAAAY,EACH,EAEAH,EAACV,EAAA,CAAM,KAAM,EAAI,SAAAgB,EAAO,GAC1B,EACAN,EAACX,EAAA,CAAW,MAAM,QAAQ,QAASkB,EACjC,SAAAP,EAACW,EAAA,CAAK,KAAK,wBAAwB,EACrC,GACF,EAEAX,EAACD,EAAA,CAAc,GAAIS,EAAU,QAAQ,OAAO,cAAa,GACtD,SAAAH,EACH,GACF,CAEJ,EAEOO,EAAQV","sourcesContent":["import { PropsWithChildren } from 'react';\nimport IconButton from '@mui/material/IconButton';\nimport Stack from '@mui/material/Stack';\nimport Typography from '@mui/material/Typography';\n\nimport useToggle from 'hooks/useToggle';\n\nimport Icon from '../Icon';\n\nimport { ExpandableGroupProps } from './props';\nimport { CollapseGroup, Container, GroupTop } from './styles';\n\nconst ExpandableGroup = ({\n description,\n name,\n children,\n header,\n onDelete,\n}: PropsWithChildren<ExpandableGroupProps>) => {\n const [expanded, toggleExpanded] = useToggle(true);\n\n return (\n <Container>\n <GroupTop direction=\"row\">\n <Stack direction=\"row\" alignItems=\"center\" gap={1.5} flex={1}>\n <IconButton edge=\"end\" onClick={toggleExpanded}>\n <Icon icon={expanded ? 'CHEVRON_UP' : 'CHEVRON_RIGHT'} />\n </IconButton>\n\n <Typography variant=\"overline\" color=\"text.primary\">\n {name}\n </Typography>\n\n <Typography variant=\"overline\" color=\"text.secondary\">\n {description}\n </Typography>\n\n <Stack flex={1}>{header}</Stack>\n </Stack>\n <IconButton color=\"error\" onClick={onDelete}>\n <Icon icon=\"DELETE_MARK_BUTTON_02\" />\n </IconButton>\n </GroupTop>\n\n <CollapseGroup in={expanded} timeout=\"auto\" unmountOnExit>\n {children}\n </CollapseGroup>\n </Container>\n );\n};\n\nexport default ExpandableGroup;\n","import Collapse from '@mui/material/Collapse';\nimport Stack from '@mui/material/Stack';\nimport { alpha, styled } from '@mui/material/styles';\n\nexport const Container = styled(Stack)(({ theme }) => ({\n border: `1px solid ${alpha(theme.palette.grey[500], 0.32)}`,\n borderRadius: 8,\n alignItems: 'center',\n overflow: 'hidden',\n}));\n\nexport const GroupTop = styled(Stack)(() => ({\n backgroundColor: '#F5F5F5',\n padding: 8,\n width: '100%',\n justifyContent: 'space-between',\n alignItems: 'center',\n gap: 12,\n\n '& .MuiInputBase-root': {\n backgroundColor: '#fff',\n },\n}));\n\nexport const GroupContainer = styled(Stack)(({ theme }) => ({\n border: `1px solid ${alpha(theme.palette.grey[500], 0.32)}`,\n borderRadius: 8,\n alignItems: 'center',\n}));\n\nexport const CollapseGroup = styled(Collapse)(() => ({\n width: '100%',\n padding: '12px 16px',\n}));\n"]}
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const FixedProgressBar = ({ sx }) => {
|
|
4
|
-
return /* @__PURE__ */ jsx(
|
|
5
|
-
LinearProgress,
|
|
6
|
-
{
|
|
7
|
-
sx: {
|
|
8
|
-
position: "absolute",
|
|
9
|
-
top: 0,
|
|
10
|
-
left: 0,
|
|
11
|
-
width: 1,
|
|
12
|
-
zIndex: 9999,
|
|
13
|
-
...sx
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
};
|
|
18
|
-
var FixedProgressBar_default = FixedProgressBar;
|
|
19
|
-
export {
|
|
20
|
-
FixedProgressBar_default as default
|
|
21
|
-
};
|
|
1
|
+
export { a as default } from '../../chunk-6PNQMBJS.js';
|
|
2
|
+
//# sourceMappingURL=out.js.map
|
|
22
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,108 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
TopBox
|
|
19
|
-
} from "./style";
|
|
20
|
-
const FrameSkeleton = ({
|
|
21
|
-
title,
|
|
22
|
-
sections,
|
|
23
|
-
headerLeftContent,
|
|
24
|
-
headerRightContent,
|
|
25
|
-
onClickBack
|
|
26
|
-
}) => {
|
|
27
|
-
return /* @__PURE__ */ jsx(Stack, { children: /* @__PURE__ */ jsxs(Stack, { direction: "row", children: [
|
|
28
|
-
/* @__PURE__ */ jsx(LeftBox, { id: "frame-skeleton-left-box", children: /* @__PURE__ */ jsx(StyledScrollbar, { children: /* @__PURE__ */ jsxs(SideBarWrapper, { children: [
|
|
29
|
-
/* @__PURE__ */ jsx(
|
|
30
|
-
Typography,
|
|
31
|
-
{
|
|
32
|
-
variant: "overline",
|
|
33
|
-
color: "text.disabled",
|
|
34
|
-
fontWeight: 700,
|
|
35
|
-
children: "ACESSO R\xC1PIDO"
|
|
36
|
-
}
|
|
37
|
-
),
|
|
38
|
-
sections.map((section, index) => /* @__PURE__ */ jsxs(Stack, { children: [
|
|
39
|
-
/* @__PURE__ */ jsxs(
|
|
40
|
-
SectionTile,
|
|
41
|
-
{
|
|
42
|
-
onClick: () => {
|
|
43
|
-
if (section.ref.current)
|
|
44
|
-
section.ref.current.scrollIntoView({
|
|
45
|
-
block: "start",
|
|
46
|
-
behavior: "smooth"
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
children: [
|
|
50
|
-
section.title,
|
|
51
|
-
section.isRequired && /* @__PURE__ */ jsx("span", { children: "*" })
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
),
|
|
55
|
-
index < sections.length - 1 && /* @__PURE__ */ jsx(Divider, {})
|
|
56
|
-
] }, index))
|
|
57
|
-
] }) }) }),
|
|
58
|
-
/* @__PURE__ */ jsxs(Stack, { width: "100%", alignItems: "center", mb: 8, children: [
|
|
59
|
-
/* @__PURE__ */ jsx(TopBox, { children: /* @__PURE__ */ jsxs(FrameHeader, { children: [
|
|
60
|
-
/* @__PURE__ */ jsxs(Stack, { flexDirection: "row", gap: 2, alignItems: "center", children: [
|
|
61
|
-
/* @__PURE__ */ jsx(IconButton, { color: "primary", onClick: () => onClickBack(), children: /* @__PURE__ */ jsx(Icon, { icon: "CHEVRON_LEFT" }) }),
|
|
62
|
-
/* @__PURE__ */ jsx(Typography, { variant: "h4", children: title }),
|
|
63
|
-
headerLeftContent
|
|
64
|
-
] }),
|
|
65
|
-
/* @__PURE__ */ jsxs(
|
|
66
|
-
Stack,
|
|
67
|
-
{
|
|
68
|
-
direction: "row",
|
|
69
|
-
gap: 2,
|
|
70
|
-
alignItems: "center",
|
|
71
|
-
minWidth: "max-content",
|
|
72
|
-
children: [
|
|
73
|
-
/* @__PURE__ */ jsx(HelpButton, { disabled: true }),
|
|
74
|
-
headerRightContent
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
] }) }),
|
|
79
|
-
/* @__PURE__ */ jsx(Children, { children: sections.map((section, index) => /* @__PURE__ */ jsxs(
|
|
80
|
-
Stack,
|
|
81
|
-
{
|
|
82
|
-
paddingTop: 3,
|
|
83
|
-
paddingBottom: 2,
|
|
84
|
-
alignItems: "start",
|
|
85
|
-
width: "100%",
|
|
86
|
-
id: `section-${index}`,
|
|
87
|
-
children: [
|
|
88
|
-
/* @__PURE__ */ jsx(
|
|
89
|
-
SectionTitle,
|
|
90
|
-
{
|
|
91
|
-
ref: section.ref,
|
|
92
|
-
children: section.title
|
|
93
|
-
}
|
|
94
|
-
),
|
|
95
|
-
/* @__PURE__ */ jsx(SectionSubtitle, { children: section.subTitle }),
|
|
96
|
-
/* @__PURE__ */ jsx(WhiteBox, { width: "100%", borderRadius: 1, gap: 1.5, padding: 3, children: section.child })
|
|
97
|
-
]
|
|
98
|
-
},
|
|
99
|
-
section.title
|
|
100
|
-
)) })
|
|
101
|
-
] })
|
|
102
|
-
] }) });
|
|
103
|
-
};
|
|
104
|
-
var FrameSkeleton_default = FrameSkeleton;
|
|
105
|
-
export {
|
|
106
|
-
FrameSkeleton_default as default
|
|
107
|
-
};
|
|
1
|
+
import { a as a$3 } from '../../chunk-7SCNQBRZ.js';
|
|
2
|
+
import { a } from '../../chunk-LTMBAS4K.js';
|
|
3
|
+
import { a as a$2 } from '../../chunk-SY7GX7PZ.js';
|
|
4
|
+
import { a as a$1 } from '../../chunk-FU42GMHJ.js';
|
|
5
|
+
import '../../chunk-ZK4R7GDN.js';
|
|
6
|
+
import v from '@mui/material/Divider';
|
|
7
|
+
import F from '@mui/material/IconButton';
|
|
8
|
+
import n from '@mui/material/Stack';
|
|
9
|
+
import g from '@mui/material/Typography';
|
|
10
|
+
import C from '@mui/material/Button';
|
|
11
|
+
import { styled } from '@mui/material/styles';
|
|
12
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
13
|
+
|
|
14
|
+
var S=styled(n)(({theme:o})=>({backgroundColor:"#fff",minWidth:"250px",padding:24,minHeight:"100vh",borderRight:`1px solid ${o.palette.grey[300]}`})),h=styled(n)(({theme:o})=>({backgroundColor:"#fff",position:"sticky",top:0,zIndex:999,width:"100%",padding:24,gap:24,borderBottom:`1px solid ${o.palette.grey[300]}`})),s=styled(n)({flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:24}),x=styled(n)(({theme:o})=>({height:"100%",width:"50%",flex:1,[o.breakpoints.down(1680)]:{width:"70%"}})),b=styled(g)(({theme:o})=>({color:o.palette.grey[800],fontSize:18,fontWeight:700})),k=styled(g)(({theme:o})=>({color:o.palette.grey[500],fontSize:14,fontWeight:400,paddingBottom:24})),y=styled(C)(({theme:o})=>({paddingTop:6,paddingBottom:6,paddingLeft:0,margin:0,marginBottom:4,marginTop:4,width:"100%",display:"block",cursor:"pointer",color:o.palette.grey[600],textAlign:"left",fontWeight:400,fontSize:14,"> span":{color:o.palette.error.main}})),B=styled(a)(()=>({height:1,"& .simplebar-content":{height:1}})),T=styled(n)(()=>({position:"fixed",width:"202px"}));var H=({title:o,sections:l,headerLeftContent:w,headerRightContent:I,onClickBack:W})=>jsx(n,{children:jsxs(n,{direction:"row",children:[jsx(S,{id:"frame-skeleton-left-box",children:jsx(B,{children:jsxs(T,{children:[jsx(g,{variant:"overline",color:"text.disabled",fontWeight:700,children:"ACESSO R\xC1PIDO"}),l.map((e,p)=>jsxs(n,{children:[jsxs(y,{onClick:()=>{e.ref.current&&e.ref.current.scrollIntoView({block:"start",behavior:"smooth"});},children:[e.title,e.isRequired&&jsx("span",{children:"*"})]}),p<l.length-1&&jsx(v,{})]},p))]})})}),jsxs(n,{width:"100%",alignItems:"center",mb:8,children:[jsx(h,{children:jsxs(s,{children:[jsxs(n,{flexDirection:"row",gap:2,alignItems:"center",children:[jsx(F,{color:"primary",onClick:()=>W(),children:jsx(a$1,{icon:"CHEVRON_LEFT"})}),jsx(g,{variant:"h4",children:o}),w]}),jsxs(n,{direction:"row",gap:2,alignItems:"center",minWidth:"max-content",children:[jsx(a$2,{disabled:!0}),I]})]})}),jsx(x,{children:l.map((e,p)=>jsxs(n,{paddingTop:3,paddingBottom:2,alignItems:"start",width:"100%",id:`section-${p}`,children:[jsx(b,{ref:e.ref,children:e.title}),jsx(k,{children:e.subTitle}),jsx(a$3,{width:"100%",borderRadius:1,gap:1.5,padding:3,children:e.child})]},e.title))})]})]})}),_=H;
|
|
15
|
+
|
|
16
|
+
export { _ as default };
|
|
17
|
+
//# sourceMappingURL=out.js.map
|
|
108
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/FrameSkeleton/index.tsx"],"sourcesContent":["import Divider from '@mui/material/Divider';\nimport IconButton from '@mui/material/IconButton';\nimport Stack from '@mui/material/Stack';\nimport Typography from '@mui/material/Typography';\n\nimport HelpButton from 'components/HelpButton';\nimport WhiteBox from 'components/WhiteBox';\n\nimport Icon from '../Icon';\n\nimport { FrameSkeletonProps } from './props';\nimport {\n Children,\n FrameHeader,\n LeftBox,\n SectionSubtitle,\n SectionTile,\n SectionTitle,\n SideBarWrapper,\n StyledScrollbar,\n TopBox,\n} from './style';\n\nconst FrameSkeleton = ({\n title,\n sections,\n headerLeftContent,\n headerRightContent,\n onClickBack,\n}: FrameSkeletonProps) => {\n return (\n <Stack>\n <Stack direction=\"row\">\n <LeftBox id=\"frame-skeleton-left-box\">\n <StyledScrollbar>\n <SideBarWrapper>\n <Typography\n variant=\"overline\"\n color=\"text.disabled\"\n fontWeight={700}\n >\n ACESSO RÁPIDO\n </Typography>\n\n {sections.map((section, index) => (\n <Stack key={index}>\n <SectionTile\n onClick={() => {\n if (section.ref.current)\n section.ref.current.scrollIntoView({\n block: 'start',\n behavior: 'smooth',\n });\n }}\n >\n {section.title}\n {section.isRequired && <span>*</span>}\n </SectionTile>\n\n {index < sections.length - 1 && <Divider />}\n </Stack>\n ))}\n </SideBarWrapper>\n </StyledScrollbar>\n </LeftBox>\n\n <Stack width=\"100%\" alignItems=\"center\" mb={8}>\n <TopBox>\n <FrameHeader>\n <Stack flexDirection=\"row\" gap={2} alignItems=\"center\">\n <IconButton color=\"primary\" onClick={() => onClickBack()}>\n <Icon icon=\"CHEVRON_LEFT\" />\n </IconButton>\n\n <Typography variant=\"h4\">{title}</Typography>\n {headerLeftContent}\n </Stack>\n\n <Stack\n direction=\"row\"\n gap={2}\n alignItems=\"center\"\n minWidth=\"max-content\"\n >\n <HelpButton disabled />\n {headerRightContent}\n </Stack>\n </FrameHeader>\n </TopBox>\n\n <Children>\n {sections.map((section, index) => (\n <Stack\n key={section.title}\n paddingTop={3}\n paddingBottom={2}\n alignItems=\"start\"\n width=\"100%\"\n id={`section-${index}`}\n >\n <SectionTitle\n ref={section.ref as React.RefObject<HTMLDivElement>}\n >\n {section.title}\n </SectionTitle>\n <SectionSubtitle>{section.subTitle}</SectionSubtitle>\n\n <WhiteBox width=\"100%\" borderRadius={1} gap={1.5} padding={3}>\n {section.child}\n </WhiteBox>\n </Stack>\n ))}\n </Children>\n </Stack>\n </Stack>\n </Stack>\n );\n};\n\nexport default FrameSkeleton;\n"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/FrameSkeleton/index.tsx","../../../src/components/FrameSkeleton/style.ts"],"names":["Divider","IconButton","Stack","Typography","Button","styled","LeftBox","theme","TopBox","FrameHeader","Children","SectionTitle","SectionSubtitle","SectionTile","StyledScrollbar","Scrollbar_default","SideBarWrapper","jsx","jsxs","FrameSkeleton","title","sections","headerLeftContent","headerRightContent","onClickBack","section","index","Icon_default","HelpButton_default","WhiteBox_default","FrameSkeleton_default"],"mappings":"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","sourcesContent":["import Divider from '@mui/material/Divider';\nimport IconButton from '@mui/material/IconButton';\nimport Stack from '@mui/material/Stack';\nimport Typography from '@mui/material/Typography';\n\nimport HelpButton from 'components/HelpButton';\nimport WhiteBox from 'components/WhiteBox';\n\nimport Icon from '../Icon';\n\nimport { FrameSkeletonProps } from './props';\nimport {\n Children,\n FrameHeader,\n LeftBox,\n SectionSubtitle,\n SectionTile,\n SectionTitle,\n SideBarWrapper,\n StyledScrollbar,\n TopBox,\n} from './style';\n\nconst FrameSkeleton = ({\n title,\n sections,\n headerLeftContent,\n headerRightContent,\n onClickBack,\n}: FrameSkeletonProps) => {\n return (\n <Stack>\n <Stack direction=\"row\">\n <LeftBox id=\"frame-skeleton-left-box\">\n <StyledScrollbar>\n <SideBarWrapper>\n <Typography\n variant=\"overline\"\n color=\"text.disabled\"\n fontWeight={700}\n >\n ACESSO RÁPIDO\n </Typography>\n\n {sections.map((section, index) => (\n <Stack key={index}>\n <SectionTile\n onClick={() => {\n if (section.ref.current)\n section.ref.current.scrollIntoView({\n block: 'start',\n behavior: 'smooth',\n });\n }}\n >\n {section.title}\n {section.isRequired && <span>*</span>}\n </SectionTile>\n\n {index < sections.length - 1 && <Divider />}\n </Stack>\n ))}\n </SideBarWrapper>\n </StyledScrollbar>\n </LeftBox>\n\n <Stack width=\"100%\" alignItems=\"center\" mb={8}>\n <TopBox>\n <FrameHeader>\n <Stack flexDirection=\"row\" gap={2} alignItems=\"center\">\n <IconButton color=\"primary\" onClick={() => onClickBack()}>\n <Icon icon=\"CHEVRON_LEFT\" />\n </IconButton>\n\n <Typography variant=\"h4\">{title}</Typography>\n {headerLeftContent}\n </Stack>\n\n <Stack\n direction=\"row\"\n gap={2}\n alignItems=\"center\"\n minWidth=\"max-content\"\n >\n <HelpButton disabled />\n {headerRightContent}\n </Stack>\n </FrameHeader>\n </TopBox>\n\n <Children>\n {sections.map((section, index) => (\n <Stack\n key={section.title}\n paddingTop={3}\n paddingBottom={2}\n alignItems=\"start\"\n width=\"100%\"\n id={`section-${index}`}\n >\n <SectionTitle\n ref={section.ref as React.RefObject<HTMLDivElement>}\n >\n {section.title}\n </SectionTitle>\n <SectionSubtitle>{section.subTitle}</SectionSubtitle>\n\n <WhiteBox width=\"100%\" borderRadius={1} gap={1.5} padding={3}>\n {section.child}\n </WhiteBox>\n </Stack>\n ))}\n </Children>\n </Stack>\n </Stack>\n </Stack>\n );\n};\n\nexport default FrameSkeleton;\n","import Button from '@mui/material/Button';\nimport Stack from '@mui/material/Stack';\nimport { styled } from '@mui/material/styles';\nimport Typography from '@mui/material/Typography';\n\nimport Scrollbar from '../Scrollbar';\n\nexport const LeftBox = styled(Stack)(({ theme }) => ({\n backgroundColor: '#fff',\n minWidth: '250px',\n padding: 24,\n minHeight: '100vh',\n borderRight: `1px solid ${theme.palette.grey[300]}`,\n}));\n\nexport const TopBox = styled(Stack)(({ theme }) => ({\n backgroundColor: '#fff',\n position: 'sticky',\n top: 0,\n zIndex: 999,\n width: '100%',\n padding: 24,\n gap: 24,\n borderBottom: `1px solid ${theme.palette.grey[300]}`,\n}));\n\nexport const FrameHeader = styled(Stack)({\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 24,\n});\n\nexport const Children = styled(Stack)(({ theme }) => ({\n height: '100%',\n width: '50%',\n flex: 1,\n\n [theme.breakpoints.down(1680)]: {\n width: '70%',\n },\n}));\n\nexport const SectionTitle = styled(Typography)(({ theme }) => ({\n color: theme.palette.grey[800],\n fontSize: 18,\n fontWeight: 700,\n}));\n\nexport const SectionSubtitle = styled(Typography)(({ theme }) => ({\n color: theme.palette.grey[500],\n fontSize: 14,\n fontWeight: 400,\n paddingBottom: 24,\n}));\n\nexport const SectionTile = styled(Button)(({ theme }) => ({\n paddingTop: 6,\n paddingBottom: 6,\n paddingLeft: 0,\n margin: 0,\n marginBottom: 4,\n marginTop: 4,\n width: '100%',\n display: 'block',\n cursor: 'pointer',\n color: theme.palette.grey[600],\n textAlign: 'left',\n fontWeight: 400,\n fontSize: 14,\n\n '> span': {\n color: theme.palette.error.main,\n },\n}));\n\nexport const StyledScrollbar = styled(Scrollbar)(() => ({\n height: 1,\n '& .simplebar-content': {\n height: 1,\n },\n}));\n\nexport const SideBarWrapper = styled(Stack)(() => ({\n position: 'fixed',\n width: '202px',\n}));\n"]}
|
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const linkProps = link && { href: link, target: "_blank" };
|
|
6
|
-
return /* @__PURE__ */ jsx(
|
|
7
|
-
Button,
|
|
8
|
-
{
|
|
9
|
-
...props,
|
|
10
|
-
startIcon: /* @__PURE__ */ jsx(Icon, { icon: "HELP_CIRCLE" }),
|
|
11
|
-
variant: "outlined",
|
|
12
|
-
color: "inherit",
|
|
13
|
-
...linkProps,
|
|
14
|
-
children: "Ajuda"
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
};
|
|
18
|
-
var HelpButton_default = HelpButton;
|
|
19
|
-
export {
|
|
20
|
-
HelpButton_default as default
|
|
21
|
-
};
|
|
1
|
+
export { a as default } from '../../chunk-SY7GX7PZ.js';
|
|
2
|
+
import '../../chunk-FU42GMHJ.js';
|
|
3
|
+
import '../../chunk-ZK4R7GDN.js';
|
|
4
|
+
//# sourceMappingURL=out.js.map
|
|
22
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|