@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,167 +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 SeoPreview = ({
|
|
16
|
-
titlePreview,
|
|
17
|
-
logoImage,
|
|
18
|
-
brandingName,
|
|
19
|
-
url,
|
|
20
|
-
title,
|
|
21
|
-
description,
|
|
22
|
-
keyWords,
|
|
23
|
-
customTitles,
|
|
24
|
-
productImage,
|
|
25
|
-
child,
|
|
26
|
-
previewLinkImage,
|
|
27
|
-
hasPreviewLink
|
|
28
|
-
}) => {
|
|
29
|
-
return /* @__PURE__ */ jsx(PreviewBox, { children: /* @__PURE__ */ jsxs(Stack, { gap: 3, display: "flex", flex: 1, children: [
|
|
30
|
-
/* @__PURE__ */ jsx(Typography, { variant: "overline", color: "text.disabled", children: titlePreview ?? "PR\xC9-VISUALIZA\xC7\xC3O" }),
|
|
31
|
-
/* @__PURE__ */ jsxs(InterBoxPreview, { children: [
|
|
32
|
-
/* @__PURE__ */ jsxs(Stack, { direction: "row", pb: 3, gap: 0.5, children: [
|
|
33
|
-
/* @__PURE__ */ jsx(Box, { height: 0, width: 10, children: /* @__PURE__ */ jsx(Icon, { icon: "CIRCLE", width: 30, color: "error.main" }) }),
|
|
34
|
-
/* @__PURE__ */ jsx(Box, { height: 0, width: 10, children: /* @__PURE__ */ jsx(Icon, { icon: "CIRCLE", width: 30, color: "warning.main" }) }),
|
|
35
|
-
/* @__PURE__ */ jsx(Box, { height: 0, width: 10, children: /* @__PURE__ */ jsx(Icon, { icon: "CIRCLE", width: 30, color: "success.main" }) })
|
|
36
|
-
] }),
|
|
37
|
-
/* @__PURE__ */ jsxs(Stack, { flexDirection: "row", gap: 2, justifyContent: "space-between", children: [
|
|
38
|
-
/* @__PURE__ */ jsxs(Stack, { gap: 1, width: "100%", children: [
|
|
39
|
-
/* @__PURE__ */ jsxs(Stack, { direction: "row", gap: 1.5, pb: 0.5, children: [
|
|
40
|
-
logoImage && /* @__PURE__ */ jsx(LogoImageBox, { children: /* @__PURE__ */ jsx("img", { alt: "Logo", src: logoImage }) }),
|
|
41
|
-
/* @__PURE__ */ jsxs(Stack, { children: [
|
|
42
|
-
/* @__PURE__ */ jsx(Typography, { variant: "overline", color: "grey.600", pb: 0.5, children: brandingName ?? "SUAEMPRESA" }),
|
|
43
|
-
/* @__PURE__ */ jsxs(Stack, { direction: "row", gap: 2, children: [
|
|
44
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "grey.600", children: url ?? "https://www.exemplo.com" }),
|
|
45
|
-
/* @__PURE__ */ jsx(
|
|
46
|
-
Icon,
|
|
47
|
-
{
|
|
48
|
-
icon: "MORE_OPTIONS_VERTICAL",
|
|
49
|
-
width: 15,
|
|
50
|
-
color: "grey.500"
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
] })
|
|
54
|
-
] })
|
|
55
|
-
] }),
|
|
56
|
-
/* @__PURE__ */ jsx(
|
|
57
|
-
TextMaxLine,
|
|
58
|
-
{
|
|
59
|
-
variant: "subtitle1",
|
|
60
|
-
color: "#4E5BEC",
|
|
61
|
-
overflow: "hidden",
|
|
62
|
-
textOverflow: "ellipsis",
|
|
63
|
-
line: 5,
|
|
64
|
-
children: title ?? "Suampresa | P\xE1scoa 2024: Ovos de chocolate? Que nada! Descontos em tecnologia!"
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
/* @__PURE__ */ jsx(
|
|
68
|
-
TextMaxLine,
|
|
69
|
-
{
|
|
70
|
-
variant: "caption",
|
|
71
|
-
color: "text.disabled",
|
|
72
|
-
overflow: "hidden",
|
|
73
|
-
textOverflow: "ellipsis",
|
|
74
|
-
line: 5,
|
|
75
|
-
children: description ?? "A P\xE1scoa chegou e a Sua Empresa est\xE1 com ofertas chocantes em tecnologia! Descontos de at\xE9 50% em notebooks, smartphones, tablets e muito mais!"
|
|
76
|
-
}
|
|
77
|
-
),
|
|
78
|
-
keyWords && /* @__PURE__ */ jsx(Stack, { direction: "row", gap: 1, alignItems: "center", children: keyWords.map((keyWord, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
79
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "text.disabled", children: keyWord }),
|
|
80
|
-
index < keyWords.length - 1 && /* @__PURE__ */ jsx(Box, { width: 4, height: 16, children: /* @__PURE__ */ jsx(
|
|
81
|
-
Icon,
|
|
82
|
-
{
|
|
83
|
-
icon: "CIRCLE",
|
|
84
|
-
color: "text.disabled",
|
|
85
|
-
width: 10
|
|
86
|
-
}
|
|
87
|
-
) })
|
|
88
|
-
] })) }),
|
|
89
|
-
customTitles && /* @__PURE__ */ jsx(Stack, { pt: 2, children: customTitles.map((customTitle, index) => /* @__PURE__ */ jsxs(Stack, { gap: 1, children: [
|
|
90
|
-
/* @__PURE__ */ jsx(Typography, { variant: "subtitle1", color: "#4E5BEC", children: customTitle.title }),
|
|
91
|
-
/* @__PURE__ */ jsx(
|
|
92
|
-
TextMaxLine,
|
|
93
|
-
{
|
|
94
|
-
variant: "caption",
|
|
95
|
-
color: "text.disabled",
|
|
96
|
-
overflow: "hidden",
|
|
97
|
-
textOverflow: "ellipsis",
|
|
98
|
-
line: 1,
|
|
99
|
-
children: customTitle.description ?? "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys stansince the 1500"
|
|
100
|
-
}
|
|
101
|
-
)
|
|
102
|
-
] }, index)) }),
|
|
103
|
-
child
|
|
104
|
-
] }),
|
|
105
|
-
productImage && /* @__PURE__ */ jsx(ProductImageBox, { children: /* @__PURE__ */ jsx("img", { alt: "ProductImage", src: productImage }) })
|
|
106
|
-
] })
|
|
107
|
-
] }),
|
|
108
|
-
hasPreviewLink && /* @__PURE__ */ jsxs(Stack, { gap: 3, display: "flex", flex: 1, width: "100%", children: [
|
|
109
|
-
/* @__PURE__ */ jsx(Typography, { variant: "overline", color: "text.disabled", children: "pr\xE9-visualiza\xE7\xE3o link de compartilhamento".toUpperCase() }),
|
|
110
|
-
/* @__PURE__ */ jsxs(InterBoxPreviewLink, { children: [
|
|
111
|
-
previewLinkImage && /* @__PURE__ */ jsx(ImageBoxPreviewLink, { children: /* @__PURE__ */ jsx(
|
|
112
|
-
"img",
|
|
113
|
-
{
|
|
114
|
-
alt: "PreviewLinkImage",
|
|
115
|
-
src: previewLinkImage,
|
|
116
|
-
style: {
|
|
117
|
-
width: "100%",
|
|
118
|
-
height: "100%",
|
|
119
|
-
objectFit: "cover",
|
|
120
|
-
borderRadius: 8
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
) }),
|
|
124
|
-
/* @__PURE__ */ jsxs(Stack, { gap: 0.2, p: 2, width: "100%", children: [
|
|
125
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", children: title ?? "Suampresa | P\xE1scoa 2024: Ovos de chocolate? Que nada! Descontos em tecnologia!" }),
|
|
126
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "grey.600", children: description ?? "A P\xE1scoa chegou e a Sua Empresa est\xE1 com ofertas chocantes em tecnologia! Descontos de at\xE9 50% em notebooks, smartphones, tablets e muito mais!" }),
|
|
127
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "grey.500", children: url ?? "https://www.exemplo.com" })
|
|
128
|
-
] })
|
|
129
|
-
] }),
|
|
130
|
-
/* @__PURE__ */ jsx(InterBoxPreviewLink, { children: /* @__PURE__ */ jsxs(Stack, { direction: "row", gap: 1, alignItems: "center", children: [
|
|
131
|
-
/* @__PURE__ */ jsx(
|
|
132
|
-
Box,
|
|
133
|
-
{
|
|
134
|
-
width: 100,
|
|
135
|
-
height: 95,
|
|
136
|
-
bgcolor: "grey.100",
|
|
137
|
-
p: 0.5,
|
|
138
|
-
alignItems: "center",
|
|
139
|
-
children: /* @__PURE__ */ jsx(
|
|
140
|
-
"img",
|
|
141
|
-
{
|
|
142
|
-
alt: "Logo",
|
|
143
|
-
src: logoImage,
|
|
144
|
-
style: {
|
|
145
|
-
width: "100%",
|
|
146
|
-
height: "100%",
|
|
147
|
-
objectFit: "contain",
|
|
148
|
-
borderRadius: 8
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
)
|
|
152
|
-
}
|
|
153
|
-
),
|
|
154
|
-
/* @__PURE__ */ jsxs(Stack, { padding: 1, gap: 0.2, width: "80%", children: [
|
|
155
|
-
/* @__PURE__ */ jsx(TextMaxLine, { variant: "caption", children: title ?? "Suampresa | P\xE1scoa 2024: Ovos de chocolate? Que nada! Descontos em tecnologia!" }),
|
|
156
|
-
/* @__PURE__ */ jsx(TextMaxLine, { variant: "caption", color: "grey.600", children: description ?? "A P\xE1scoa chegou e a Sua Empresa est\xE1 com ofertas chocantes em tecnologia! Descontos de at\xE9 50% em notebooks, smartphones, tablets e muito mais!" }),
|
|
157
|
-
/* @__PURE__ */ jsx(TextMaxLine, { variant: "caption", color: "grey.500", line: 1, children: url ?? "https://www.exemplo.com" })
|
|
158
|
-
] })
|
|
159
|
-
] }) })
|
|
160
|
-
] })
|
|
161
|
-
] }) });
|
|
162
|
-
};
|
|
163
|
-
var SeoPreview_default = SeoPreview;
|
|
164
|
-
export {
|
|
165
|
-
SeoPreview_default as default
|
|
166
|
-
};
|
|
1
|
+
import { a as a$1 } from '../../chunk-6LXCHHW2.js';
|
|
2
|
+
import { a } from '../../chunk-FU42GMHJ.js';
|
|
3
|
+
import '../../chunk-ZK4R7GDN.js';
|
|
4
|
+
import '../../chunk-RPO7AI5K.js';
|
|
5
|
+
import p from '@mui/material/Box';
|
|
6
|
+
import t from '@mui/material/Stack';
|
|
7
|
+
import i from '@mui/material/Typography';
|
|
8
|
+
import { styled } from '@mui/material/styles';
|
|
9
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
|
+
|
|
11
|
+
var k=styled(p)(({theme:a})=>({padding:24,borderRadius:8,height:"auto",maxWidth:800,backgroundColor:a.palette.background.default,border:`1px solid ${a.palette.grey[300]}`})),P=styled(t)(({theme:a})=>({minHeight:180,maxWidth:700,border:`4px dotted ${a.palette.grey[300]}`,borderRadius:8,backgroundColor:"#fff",padding:24})),I=styled(p)(()=>({maxWidth:70,maxHeight:40,alignItems:"center","&, img":{flex:1,display:"flex",objectFit:"cover",borderRadius:8}})),B=styled(p)(({theme:a})=>({backgroundColor:a.palette.background.default,maxWidth:90,maxHeight:80,alignItems:"center","&, img":{flex:1,display:"flex",objectFit:"cover",borderRadius:8}})),v=styled(t)(({theme:a})=>({border:`4px dotted ${a.palette.grey[300]}`,borderRadius:8,backgroundColor:"#fff"})),S=styled(p)(({theme:a})=>({width:"auto",height:120,overflow:"hidden",padding:2,borderBottom:`4px dotted ${a.palette.grey[300]}`}));var E=({titlePreview:a$2,logoImage:l,brandingName:L,url:g,title:m,description:x,keyWords:h,customTitles:y,productImage:u,child:C,previewLinkImage:b,hasPreviewLink:T})=>jsx(k,{children:jsxs(t,{gap:3,display:"flex",flex:1,children:[jsx(i,{variant:"overline",color:"text.disabled",children:a$2??"PR\xC9-VISUALIZA\xC7\xC3O"}),jsxs(P,{children:[jsxs(t,{direction:"row",pb:3,gap:.5,children:[jsx(p,{height:0,width:10,children:jsx(a,{icon:"CIRCLE",width:30,color:"error.main"})}),jsx(p,{height:0,width:10,children:jsx(a,{icon:"CIRCLE",width:30,color:"warning.main"})}),jsx(p,{height:0,width:10,children:jsx(a,{icon:"CIRCLE",width:30,color:"success.main"})})]}),jsxs(t,{flexDirection:"row",gap:2,justifyContent:"space-between",children:[jsxs(t,{gap:1,width:"100%",children:[jsxs(t,{direction:"row",gap:1.5,pb:.5,children:[l&&jsx(I,{children:jsx("img",{alt:"Logo",src:l})}),jsxs(t,{children:[jsx(i,{variant:"overline",color:"grey.600",pb:.5,children:L??"SUAEMPRESA"}),jsxs(t,{direction:"row",gap:2,children:[jsx(i,{variant:"caption",color:"grey.600",children:g??"https://www.exemplo.com"}),jsx(a,{icon:"MORE_OPTIONS_VERTICAL",width:15,color:"grey.500"})]})]})]}),jsx(a$1,{variant:"subtitle1",color:"#4E5BEC",overflow:"hidden",textOverflow:"ellipsis",line:5,children:m??"Suampresa | P\xE1scoa 2024: Ovos de chocolate? Que nada! Descontos em tecnologia!"}),jsx(a$1,{variant:"caption",color:"text.disabled",overflow:"hidden",textOverflow:"ellipsis",line:5,children:x??"A P\xE1scoa chegou e a Sua Empresa est\xE1 com ofertas chocantes em tecnologia! Descontos de at\xE9 50% em notebooks, smartphones, tablets e muito mais!"}),h&&jsx(t,{direction:"row",gap:1,alignItems:"center",children:h.map((s,w)=>jsxs(Fragment,{children:[jsx(i,{variant:"caption",color:"text.disabled",children:s}),w<h.length-1&&jsx(p,{width:4,height:16,children:jsx(a,{icon:"CIRCLE",color:"text.disabled",width:10})})]}))}),y&&jsx(t,{pt:2,children:y.map((s,w)=>jsxs(t,{gap:1,children:[jsx(i,{variant:"subtitle1",color:"#4E5BEC",children:s.title}),jsx(a$1,{variant:"caption",color:"text.disabled",overflow:"hidden",textOverflow:"ellipsis",line:1,children:s.description??"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys stansince the 1500"})]},w))}),C]}),u&&jsx(B,{children:jsx("img",{alt:"ProductImage",src:u})})]})]}),T&&jsxs(t,{gap:3,display:"flex",flex:1,width:"100%",children:[jsx(i,{variant:"overline",color:"text.disabled",children:"pr\xE9-visualiza\xE7\xE3o link de compartilhamento".toUpperCase()}),jsxs(v,{children:[b&&jsx(S,{children:jsx("img",{alt:"PreviewLinkImage",src:b,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:8}})}),jsxs(t,{gap:.2,p:2,width:"100%",children:[jsx(i,{variant:"caption",children:m??"Suampresa | P\xE1scoa 2024: Ovos de chocolate? Que nada! Descontos em tecnologia!"}),jsx(i,{variant:"caption",color:"grey.600",children:x??"A P\xE1scoa chegou e a Sua Empresa est\xE1 com ofertas chocantes em tecnologia! Descontos de at\xE9 50% em notebooks, smartphones, tablets e muito mais!"}),jsx(i,{variant:"caption",color:"grey.500",children:g??"https://www.exemplo.com"})]})]}),jsx(v,{children:jsxs(t,{direction:"row",gap:1,alignItems:"center",children:[jsx(p,{width:100,height:95,bgcolor:"grey.100",p:.5,alignItems:"center",children:jsx("img",{alt:"Logo",src:l,style:{width:"100%",height:"100%",objectFit:"contain",borderRadius:8}})}),jsxs(t,{padding:1,gap:.2,width:"80%",children:[jsx(a$1,{variant:"caption",children:m??"Suampresa | P\xE1scoa 2024: Ovos de chocolate? Que nada! Descontos em tecnologia!"}),jsx(a$1,{variant:"caption",color:"grey.600",children:x??"A P\xE1scoa chegou e a Sua Empresa est\xE1 com ofertas chocantes em tecnologia! Descontos de at\xE9 50% em notebooks, smartphones, tablets e muito mais!"}),jsx(a$1,{variant:"caption",color:"grey.500",line:1,children:g??"https://www.exemplo.com"})]})]})})]})]})}),V=E;
|
|
12
|
+
|
|
13
|
+
export { V as default };
|
|
14
|
+
//# sourceMappingURL=out.js.map
|
|
167
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/SeoPreview/index.tsx"],"sourcesContent":["import Box from '@mui/material/Box';\nimport Stack from '@mui/material/Stack';\nimport Typography from '@mui/material/Typography';\n\nimport Icon from '../Icon';\nimport TextMaxLine from '../TextMaxLine';\n\nimport { SeoPreviewProps } from './props';\nimport {\n ImageBoxPreviewLink,\n InterBoxPreview,\n InterBoxPreviewLink,\n LogoImageBox,\n PreviewBox,\n ProductImageBox,\n} from './styles';\n\nconst SeoPreview = ({\n titlePreview,\n logoImage,\n brandingName,\n url,\n title,\n description,\n keyWords,\n customTitles,\n productImage,\n child,\n previewLinkImage,\n hasPreviewLink,\n}: SeoPreviewProps) => {\n return (\n <PreviewBox>\n <Stack gap={3} display=\"flex\" flex={1}>\n <Typography variant=\"overline\" color=\"text.disabled\">\n {titlePreview ?? 'PRÉ-VISUALIZAÇÃO'}\n </Typography>\n\n <InterBoxPreview>\n <Stack direction=\"row\" pb={3} gap={0.5}>\n <Box height={0} width={10}>\n <Icon icon=\"CIRCLE\" width={30} color=\"error.main\" />\n </Box>\n <Box height={0} width={10}>\n <Icon icon=\"CIRCLE\" width={30} color=\"warning.main\" />\n </Box>\n <Box height={0} width={10}>\n <Icon icon=\"CIRCLE\" width={30} color=\"success.main\" />\n </Box>\n </Stack>\n\n <Stack flexDirection=\"row\" gap={2} justifyContent=\"space-between\">\n <Stack gap={1} width=\"100%\">\n <Stack direction=\"row\" gap={1.5} pb={0.5}>\n {logoImage && (\n <LogoImageBox>\n <img alt=\"Logo\" src={logoImage} />\n </LogoImageBox>\n )}\n <Stack>\n <Typography variant=\"overline\" color=\"grey.600\" pb={0.5}>\n {brandingName ?? 'SUAEMPRESA'}\n </Typography>\n\n <Stack direction=\"row\" gap={2}>\n <Typography variant=\"caption\" color=\"grey.600\">\n {url ?? 'https://www.exemplo.com'}\n </Typography>\n\n <Icon\n icon=\"MORE_OPTIONS_VERTICAL\"\n width={15}\n color={'grey.500'}\n />\n </Stack>\n </Stack>\n </Stack>\n\n <TextMaxLine\n variant=\"subtitle1\"\n color=\"#4E5BEC\"\n overflow=\"hidden\"\n textOverflow=\"ellipsis\"\n line={5}\n >\n {title ??\n 'Suampresa | Páscoa 2024: Ovos de chocolate? Que nada! Descontos em tecnologia!'}\n </TextMaxLine>\n\n <TextMaxLine\n variant=\"caption\"\n color=\"text.disabled\"\n overflow=\"hidden\"\n textOverflow=\"ellipsis\"\n line={5}\n >\n {description ??\n 'A Páscoa chegou e a Sua Empresa está com ofertas chocantes em tecnologia! Descontos de até 50% em notebooks, smartphones, tablets e muito mais!'}\n </TextMaxLine>\n\n {keyWords && (\n <Stack direction=\"row\" gap={1} alignItems=\"center\">\n {keyWords.map((keyWord, index) => (\n <>\n <Typography variant=\"caption\" color=\"text.disabled\">\n {keyWord}\n </Typography>\n\n {index < keyWords.length - 1 && (\n <Box width={4} height={16}>\n <Icon\n icon=\"CIRCLE\"\n color=\"text.disabled\"\n width={10}\n />\n </Box>\n )}\n </>\n ))}\n </Stack>\n )}\n\n {customTitles && (\n <Stack pt={2}>\n {customTitles.map((customTitle, index) => (\n <Stack key={index} gap={1}>\n <Typography variant=\"subtitle1\" color=\"#4E5BEC\">\n {customTitle.title}\n </Typography>\n <TextMaxLine\n variant=\"caption\"\n color=\"text.disabled\"\n overflow=\"hidden\"\n textOverflow=\"ellipsis\"\n line={1}\n >\n {customTitle.description ??\n 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys stansince the 1500'}\n </TextMaxLine>\n </Stack>\n ))}\n </Stack>\n )}\n {child}\n </Stack>\n\n {productImage && (\n <ProductImageBox>\n <img alt=\"ProductImage\" src={productImage} />\n </ProductImageBox>\n )}\n </Stack>\n </InterBoxPreview>\n {hasPreviewLink && (\n <Stack gap={3} display=\"flex\" flex={1} width=\"100%\">\n <Typography variant=\"overline\" color=\"text.disabled\">\n {'pré-visualização link de compartilhamento'.toUpperCase()}\n </Typography>\n\n <InterBoxPreviewLink>\n {previewLinkImage && (\n <ImageBoxPreviewLink>\n <img\n alt=\"PreviewLinkImage\"\n src={previewLinkImage}\n style={{\n width: '100%',\n height: '100%',\n objectFit: 'cover',\n borderRadius: 8,\n }}\n />\n </ImageBoxPreviewLink>\n )}\n\n <Stack gap={0.2} p={2} width=\"100%\">\n <Typography variant=\"caption\">\n {title ??\n 'Suampresa | Páscoa 2024: Ovos de chocolate? Que nada! Descontos em tecnologia!'}\n </Typography>\n\n <Typography variant=\"caption\" color={'grey.600'}>\n {description ??\n 'A Páscoa chegou e a Sua Empresa está com ofertas chocantes em tecnologia! Descontos de até 50% em notebooks, smartphones, tablets e muito mais!'}\n </Typography>\n\n <Typography variant=\"caption\" color={'grey.500'}>\n {url ?? 'https://www.exemplo.com'}\n </Typography>\n </Stack>\n </InterBoxPreviewLink>\n\n <InterBoxPreviewLink>\n <Stack direction=\"row\" gap={1} alignItems=\"center\">\n <Box\n width={100}\n height={95}\n bgcolor=\"grey.100\"\n p={0.5}\n alignItems=\"center\"\n >\n <img\n alt=\"Logo\"\n src={logoImage}\n style={{\n width: '100%',\n height: '100%',\n objectFit: 'contain',\n borderRadius: 8,\n }}\n />\n </Box>\n\n <Stack padding={1} gap={0.2} width=\"80%\">\n <TextMaxLine variant=\"caption\">\n {title ??\n 'Suampresa | Páscoa 2024: Ovos de chocolate? Que nada! Descontos em tecnologia!'}\n </TextMaxLine>\n\n <TextMaxLine variant=\"caption\" color={'grey.600'}>\n {description ??\n 'A Páscoa chegou e a Sua Empresa está com ofertas chocantes em tecnologia! Descontos de até 50% em notebooks, smartphones, tablets e muito mais!'}\n </TextMaxLine>\n\n <TextMaxLine variant=\"caption\" color={'grey.500'} line={1}>\n {url ?? 'https://www.exemplo.com'}\n </TextMaxLine>\n </Stack>\n </Stack>\n </InterBoxPreviewLink>\n </Stack>\n )}\n </Stack>\n </PreviewBox>\n );\n};\n\nexport default SeoPreview;\n"],"mappings":"AAkCQ,SAqEY,UArEZ,KAKE,YALF;AAlCR,OAAO,SAAS;AAChB,OAAO,WAAW;AAClB,OAAO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U,OAAO,YACnC,yBACC,4JACJ;AAAA,UAEA,oBAAC,eAAY,SAAQ,WAAU,OAAO,YAAY,MAAM,GACrD,iBAAO,2BACV;AAAA,WACF;AAAA,SACF,GACF;AAAA,OACF;AAAA,KAEJ,GACF;AAEJ;AAEA,IAAO,qBAAQ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/SeoPreview/index.tsx","../../../src/components/SeoPreview/styles.ts"],"names":["Box","Stack","Typography","styled","PreviewBox","theme","InterBoxPreview","LogoImageBox","ProductImageBox","InterBoxPreviewLink","ImageBoxPreviewLink","Fragment","jsx","jsxs","SeoPreview","titlePreview","logoImage","brandingName","url","title","description","keyWords","customTitles","productImage","child","previewLinkImage","hasPreviewLink","Icon_default","TextMaxLine_default","keyWord","index","customTitle","SeoPreview_default"],"mappings":"wJAAA,OAAOA,MAAS,oBAChB,OAAOC,MAAW,sBAClB,OAAOC,MAAgB,2BCFvB,OAAOF,MAAS,oBAChB,OAAOC,MAAW,sBAClB,OAAS,UAAAE,MAAc,uBAEhB,IAAMC,EAAaD,EAAOH,CAAG,EAAE,CAAC,CAAE,MAAAK,CAAM,KAAO,CACpD,QAAS,GACT,aAAc,EACd,OAAQ,OACR,SAAU,IACV,gBAAiBA,EAAM,QAAQ,WAAW,QAC1C,OAAQ,aAAaA,EAAM,QAAQ,KAAK,GAAG,GAC7C,EAAE,EAEWC,EAAkBH,EAAOF,CAAK,EAAE,CAAC,CAAE,MAAAI,CAAM,KAAO,CAC3D,UAAW,IACX,SAAU,IACV,OAAQ,cAAcA,EAAM,QAAQ,KAAK,GAAG,IAC5C,aAAc,EACd,gBAAiB,OACjB,QAAS,EACX,EAAE,EAEWE,EAAeJ,EAAOH,CAAG,EAAE,KAAO,CAC7C,SAAU,GACV,UAAW,GACX,WAAY,SAEZ,SAAU,CACR,KAAM,EACN,QAAS,OACT,UAAW,QACX,aAAc,CAChB,CACF,EAAE,EAEWQ,EAAkBL,EAAOH,CAAG,EAAE,CAAC,CAAE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AQ,OACR,UAAW,UACX,aAAc,CAChB,EACF,EACF,EAEAH,EAACZ,EAAA,CAAM,QAAS,EAAG,IAAK,GAAK,MAAM,MACjC,UAAAW,EAACgB,EAAA,CAAY,QAAQ,UAClB,SAAAT,GACC,oFACJ,EAEAP,EAACgB,EAAA,CAAY,QAAQ,UAAU,MAAO,WACnC,SAAAR,GACC,2JACJ,EAEAR,EAACgB,EAAA,CAAY,QAAQ,UAAU,MAAO,WAAY,KAAM,EACrD,SAAAV,GAAO,0BACV,GACF,GACF,EACF,GACF,GAEJ,EACF,EAIGc,EAAQlB","sourcesContent":["import Box from '@mui/material/Box';\nimport Stack from '@mui/material/Stack';\nimport Typography from '@mui/material/Typography';\n\nimport Icon from '../Icon';\nimport TextMaxLine from '../TextMaxLine';\n\nimport { SeoPreviewProps } from './props';\nimport {\n ImageBoxPreviewLink,\n InterBoxPreview,\n InterBoxPreviewLink,\n LogoImageBox,\n PreviewBox,\n ProductImageBox,\n} from './styles';\n\nconst SeoPreview = ({\n titlePreview,\n logoImage,\n brandingName,\n url,\n title,\n description,\n keyWords,\n customTitles,\n productImage,\n child,\n previewLinkImage,\n hasPreviewLink,\n}: SeoPreviewProps) => {\n return (\n <PreviewBox>\n <Stack gap={3} display=\"flex\" flex={1}>\n <Typography variant=\"overline\" color=\"text.disabled\">\n {titlePreview ?? 'PRÉ-VISUALIZAÇÃO'}\n </Typography>\n\n <InterBoxPreview>\n <Stack direction=\"row\" pb={3} gap={0.5}>\n <Box height={0} width={10}>\n <Icon icon=\"CIRCLE\" width={30} color=\"error.main\" />\n </Box>\n <Box height={0} width={10}>\n <Icon icon=\"CIRCLE\" width={30} color=\"warning.main\" />\n </Box>\n <Box height={0} width={10}>\n <Icon icon=\"CIRCLE\" width={30} color=\"success.main\" />\n </Box>\n </Stack>\n\n <Stack flexDirection=\"row\" gap={2} justifyContent=\"space-between\">\n <Stack gap={1} width=\"100%\">\n <Stack direction=\"row\" gap={1.5} pb={0.5}>\n {logoImage && (\n <LogoImageBox>\n <img alt=\"Logo\" src={logoImage} />\n </LogoImageBox>\n )}\n <Stack>\n <Typography variant=\"overline\" color=\"grey.600\" pb={0.5}>\n {brandingName ?? 'SUAEMPRESA'}\n </Typography>\n\n <Stack direction=\"row\" gap={2}>\n <Typography variant=\"caption\" color=\"grey.600\">\n {url ?? 'https://www.exemplo.com'}\n </Typography>\n\n <Icon\n icon=\"MORE_OPTIONS_VERTICAL\"\n width={15}\n color={'grey.500'}\n />\n </Stack>\n </Stack>\n </Stack>\n\n <TextMaxLine\n variant=\"subtitle1\"\n color=\"#4E5BEC\"\n overflow=\"hidden\"\n textOverflow=\"ellipsis\"\n line={5}\n >\n {title ??\n 'Suampresa | Páscoa 2024: Ovos de chocolate? Que nada! Descontos em tecnologia!'}\n </TextMaxLine>\n\n <TextMaxLine\n variant=\"caption\"\n color=\"text.disabled\"\n overflow=\"hidden\"\n textOverflow=\"ellipsis\"\n line={5}\n >\n {description ??\n 'A Páscoa chegou e a Sua Empresa está com ofertas chocantes em tecnologia! Descontos de até 50% em notebooks, smartphones, tablets e muito mais!'}\n </TextMaxLine>\n\n {keyWords && (\n <Stack direction=\"row\" gap={1} alignItems=\"center\">\n {keyWords.map((keyWord, index) => (\n <>\n <Typography variant=\"caption\" color=\"text.disabled\">\n {keyWord}\n </Typography>\n\n {index < keyWords.length - 1 && (\n <Box width={4} height={16}>\n <Icon\n icon=\"CIRCLE\"\n color=\"text.disabled\"\n width={10}\n />\n </Box>\n )}\n </>\n ))}\n </Stack>\n )}\n\n {customTitles && (\n <Stack pt={2}>\n {customTitles.map((customTitle, index) => (\n <Stack key={index} gap={1}>\n <Typography variant=\"subtitle1\" color=\"#4E5BEC\">\n {customTitle.title}\n </Typography>\n <TextMaxLine\n variant=\"caption\"\n color=\"text.disabled\"\n overflow=\"hidden\"\n textOverflow=\"ellipsis\"\n line={1}\n >\n {customTitle.description ??\n 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys stansince the 1500'}\n </TextMaxLine>\n </Stack>\n ))}\n </Stack>\n )}\n {child}\n </Stack>\n\n {productImage && (\n <ProductImageBox>\n <img alt=\"ProductImage\" src={productImage} />\n </ProductImageBox>\n )}\n </Stack>\n </InterBoxPreview>\n {hasPreviewLink && (\n <Stack gap={3} display=\"flex\" flex={1} width=\"100%\">\n <Typography variant=\"overline\" color=\"text.disabled\">\n {'pré-visualização link de compartilhamento'.toUpperCase()}\n </Typography>\n\n <InterBoxPreviewLink>\n {previewLinkImage && (\n <ImageBoxPreviewLink>\n <img\n alt=\"PreviewLinkImage\"\n src={previewLinkImage}\n style={{\n width: '100%',\n height: '100%',\n objectFit: 'cover',\n borderRadius: 8,\n }}\n />\n </ImageBoxPreviewLink>\n )}\n\n <Stack gap={0.2} p={2} width=\"100%\">\n <Typography variant=\"caption\">\n {title ??\n 'Suampresa | Páscoa 2024: Ovos de chocolate? Que nada! Descontos em tecnologia!'}\n </Typography>\n\n <Typography variant=\"caption\" color={'grey.600'}>\n {description ??\n 'A Páscoa chegou e a Sua Empresa está com ofertas chocantes em tecnologia! Descontos de até 50% em notebooks, smartphones, tablets e muito mais!'}\n </Typography>\n\n <Typography variant=\"caption\" color={'grey.500'}>\n {url ?? 'https://www.exemplo.com'}\n </Typography>\n </Stack>\n </InterBoxPreviewLink>\n\n <InterBoxPreviewLink>\n <Stack direction=\"row\" gap={1} alignItems=\"center\">\n <Box\n width={100}\n height={95}\n bgcolor=\"grey.100\"\n p={0.5}\n alignItems=\"center\"\n >\n <img\n alt=\"Logo\"\n src={logoImage}\n style={{\n width: '100%',\n height: '100%',\n objectFit: 'contain',\n borderRadius: 8,\n }}\n />\n </Box>\n\n <Stack padding={1} gap={0.2} width=\"80%\">\n <TextMaxLine variant=\"caption\">\n {title ??\n 'Suampresa | Páscoa 2024: Ovos de chocolate? Que nada! Descontos em tecnologia!'}\n </TextMaxLine>\n\n <TextMaxLine variant=\"caption\" color={'grey.600'}>\n {description ??\n 'A Páscoa chegou e a Sua Empresa está com ofertas chocantes em tecnologia! Descontos de até 50% em notebooks, smartphones, tablets e muito mais!'}\n </TextMaxLine>\n\n <TextMaxLine variant=\"caption\" color={'grey.500'} line={1}>\n {url ?? 'https://www.exemplo.com'}\n </TextMaxLine>\n </Stack>\n </Stack>\n </InterBoxPreviewLink>\n </Stack>\n )}\n </Stack>\n </PreviewBox>\n );\n};\n\nexport default SeoPreview;\n","import Box from '@mui/material/Box';\nimport Stack from '@mui/material/Stack';\nimport { styled } from '@mui/material/styles';\n\nexport const PreviewBox = styled(Box)(({ theme }) => ({\n padding: 24,\n borderRadius: 8,\n height: 'auto',\n maxWidth: 800,\n backgroundColor: theme.palette.background.default,\n border: `1px solid ${theme.palette.grey[300]}`,\n}));\n\nexport const InterBoxPreview = styled(Stack)(({ theme }) => ({\n minHeight: 180,\n maxWidth: 700,\n border: `4px dotted ${theme.palette.grey[300]}`,\n borderRadius: 8,\n backgroundColor: '#fff',\n padding: 24,\n}));\n\nexport const LogoImageBox = styled(Box)(() => ({\n maxWidth: 70,\n maxHeight: 40,\n alignItems: 'center',\n\n '&, img': {\n flex: 1,\n display: 'flex',\n objectFit: 'cover',\n borderRadius: 8,\n },\n}));\n\nexport const ProductImageBox = styled(Box)(({ theme }) => ({\n backgroundColor: theme.palette.background.default,\n maxWidth: 90,\n maxHeight: 80,\n alignItems: 'center',\n\n '&, img': {\n flex: 1,\n display: 'flex',\n objectFit: 'cover',\n borderRadius: 8,\n },\n}));\n\nexport const InterBoxPreviewLink = styled(Stack)(({ theme }) => ({\n border: `4px dotted ${theme.palette.grey[300]}`,\n borderRadius: 8,\n backgroundColor: '#fff',\n}));\n\nexport const ImageBoxPreviewLink = styled(Box)(({ theme }) => ({\n width: 'auto',\n height: 120,\n overflow: 'hidden',\n padding: 2,\n borderBottom: `4px dotted ${theme.palette.grey[300]}`,\n}));\n"]}
|
|
@@ -1,107 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { m } from
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return /* @__PURE__ */ jsx(Box, { sx: { overflow: "hidden" }, children: /* @__PURE__ */ jsx(
|
|
11
|
-
Box,
|
|
12
|
-
{
|
|
13
|
-
sx: {
|
|
14
|
-
right: 0,
|
|
15
|
-
width: 1,
|
|
16
|
-
bottom: 0,
|
|
17
|
-
height: 1,
|
|
18
|
-
zIndex: 9998,
|
|
19
|
-
display: "flex",
|
|
20
|
-
position: "fixed",
|
|
21
|
-
alignItems: "center",
|
|
22
|
-
justifyContent: "center",
|
|
23
|
-
bgcolor: "background.default",
|
|
24
|
-
...sx
|
|
25
|
-
},
|
|
26
|
-
...other,
|
|
27
|
-
children: /* @__PURE__ */ jsxs(
|
|
28
|
-
Box,
|
|
29
|
-
{
|
|
30
|
-
sx: {
|
|
31
|
-
width: 120,
|
|
32
|
-
height: 120,
|
|
33
|
-
alignItems: "center",
|
|
34
|
-
position: "relative",
|
|
35
|
-
display: "inline-flex",
|
|
36
|
-
justifyContent: "center",
|
|
37
|
-
...sx
|
|
38
|
-
},
|
|
39
|
-
...other,
|
|
40
|
-
children: [
|
|
41
|
-
/* @__PURE__ */ jsx(
|
|
42
|
-
Box,
|
|
43
|
-
{
|
|
44
|
-
component: m.div,
|
|
45
|
-
animate: {
|
|
46
|
-
scale: [1, 0.9, 0.9, 1, 1],
|
|
47
|
-
opacity: [1, 0.48, 0.48, 1, 1]
|
|
48
|
-
},
|
|
49
|
-
transition: {
|
|
50
|
-
duration: 2,
|
|
51
|
-
repeatDelay: 1,
|
|
52
|
-
repeat: Infinity,
|
|
53
|
-
ease: "easeInOut"
|
|
54
|
-
},
|
|
55
|
-
sx: { display: "inline-flex" },
|
|
56
|
-
children
|
|
57
|
-
}
|
|
58
|
-
),
|
|
59
|
-
/* @__PURE__ */ jsx(
|
|
60
|
-
Box,
|
|
61
|
-
{
|
|
62
|
-
component: m.div,
|
|
63
|
-
animate: {
|
|
64
|
-
scale: [1.6, 1, 1, 1.6, 1.6],
|
|
65
|
-
rotate: [270, 0, 0, 270, 270],
|
|
66
|
-
opacity: [0.25, 1, 1, 1, 0.25],
|
|
67
|
-
borderRadius: ["25%", "25%", "50%", "50%", "25%"]
|
|
68
|
-
},
|
|
69
|
-
transition: { ease: "linear", duration: 3.2, repeat: Infinity },
|
|
70
|
-
sx: {
|
|
71
|
-
position: "absolute",
|
|
72
|
-
width: "calc(100% - 20px)",
|
|
73
|
-
height: "calc(100% - 20px)",
|
|
74
|
-
border: (theme) => `solid 3px ${varAlpha(theme.vars.palette.primary.darkChannel, 0.24)}`
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
),
|
|
78
|
-
/* @__PURE__ */ jsx(
|
|
79
|
-
Box,
|
|
80
|
-
{
|
|
81
|
-
component: m.div,
|
|
82
|
-
animate: {
|
|
83
|
-
scale: [1, 1.2, 1.2, 1, 1],
|
|
84
|
-
rotate: [0, 270, 270, 0, 0],
|
|
85
|
-
opacity: [1, 0.25, 0.25, 0.25, 1],
|
|
86
|
-
borderRadius: ["25%", "25%", "50%", "50%", "25%"]
|
|
87
|
-
},
|
|
88
|
-
transition: { ease: "linear", duration: 3.2, repeat: Infinity },
|
|
89
|
-
sx: {
|
|
90
|
-
width: 1,
|
|
91
|
-
height: 1,
|
|
92
|
-
position: "absolute",
|
|
93
|
-
border: (theme) => `solid 8px ${varAlpha(theme.vars.palette.primary.darkChannel, 0.24)}`
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
)
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
)
|
|
100
|
-
}
|
|
101
|
-
) });
|
|
102
|
-
};
|
|
103
|
-
var SplashScreen_default = SplashScreen;
|
|
104
|
-
export {
|
|
105
|
-
SplashScreen_default as default
|
|
106
|
-
};
|
|
1
|
+
import { i } from '../../chunk-WHQGCQ6G.js';
|
|
2
|
+
import e from '@mui/material/Box';
|
|
3
|
+
import { m } from 'framer-motion';
|
|
4
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var p=({children:s,sx:r,...n})=>jsx(e,{sx:{overflow:"hidden"},children:jsx(e,{sx:{right:0,width:1,bottom:0,height:1,zIndex:9998,display:"flex",position:"fixed",alignItems:"center",justifyContent:"center",bgcolor:"background.default",...r},...n,children:jsxs(e,{sx:{width:120,height:120,alignItems:"center",position:"relative",display:"inline-flex",justifyContent:"center",...r},...n,children:[jsx(e,{component:m.div,animate:{scale:[1,.9,.9,1,1],opacity:[1,.48,.48,1,1]},transition:{duration:2,repeatDelay:1,repeat:1/0,ease:"easeInOut"},sx:{display:"inline-flex"},children:s}),jsx(e,{component:m.div,animate:{scale:[1.6,1,1,1.6,1.6],rotate:[270,0,0,270,270],opacity:[.25,1,1,1,.25],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{position:"absolute",width:"calc(100% - 20px)",height:"calc(100% - 20px)",border:i$1=>`solid 3px ${i(i$1.vars.palette.primary.darkChannel,.24)}`}}),jsx(e,{component:m.div,animate:{scale:[1,1.2,1.2,1,1],rotate:[0,270,270,0,0],opacity:[1,.25,.25,.25,1],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:1,height:1,position:"absolute",border:i$1=>`solid 8px ${i(i$1.vars.palette.primary.darkChannel,.24)}`}})]})})}),h=p;
|
|
7
|
+
|
|
8
|
+
export { h as default };
|
|
9
|
+
//# sourceMappingURL=out.js.map
|
|
107
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/SplashScreen/index.tsx"],"sourcesContent":["import { PropsWithChildren } from 'react';\nimport type { BoxProps } from '@mui/material/Box';\nimport Box from '@mui/material/Box';\nimport { m } from 'framer-motion';\n\nimport { varAlpha } from 'theme/styles';\n\nconst SplashScreen = ({\n children,\n sx,\n ...other\n}: PropsWithChildren<BoxProps>) => {\n return (\n <Box sx={{ overflow: 'hidden' }}>\n <Box\n sx={{\n right: 0,\n width: 1,\n bottom: 0,\n height: 1,\n zIndex: 9998,\n display: 'flex',\n position: 'fixed',\n alignItems: 'center',\n justifyContent: 'center',\n bgcolor: 'background.default',\n ...sx,\n }}\n {...other}\n >\n <Box\n sx={{\n width: 120,\n height: 120,\n alignItems: 'center',\n position: 'relative',\n display: 'inline-flex',\n justifyContent: 'center',\n ...sx,\n }}\n {...other}\n >\n <Box\n component={m.div}\n animate={{\n scale: [1, 0.9, 0.9, 1, 1],\n opacity: [1, 0.48, 0.48, 1, 1],\n }}\n transition={{\n duration: 2,\n repeatDelay: 1,\n repeat: Infinity,\n ease: 'easeInOut',\n }}\n sx={{ display: 'inline-flex' }}\n >\n {children}\n </Box>\n\n <Box\n component={m.div}\n animate={{\n scale: [1.6, 1, 1, 1.6, 1.6],\n rotate: [270, 0, 0, 270, 270],\n opacity: [0.25, 1, 1, 1, 0.25],\n borderRadius: ['25%', '25%', '50%', '50%', '25%'],\n }}\n transition={{ ease: 'linear', duration: 3.2, repeat: Infinity }}\n sx={{\n position: 'absolute',\n width: 'calc(100% - 20px)',\n height: 'calc(100% - 20px)',\n border: theme =>\n `solid 3px ${varAlpha(theme.vars.palette.primary.darkChannel, 0.24)}`,\n }}\n />\n\n <Box\n component={m.div}\n animate={{\n scale: [1, 1.2, 1.2, 1, 1],\n rotate: [0, 270, 270, 0, 0],\n opacity: [1, 0.25, 0.25, 0.25, 1],\n borderRadius: ['25%', '25%', '50%', '50%', '25%'],\n }}\n transition={{ ease: 'linear', duration: 3.2, repeat: Infinity }}\n sx={{\n width: 1,\n height: 1,\n position: 'absolute',\n border: theme =>\n `solid 8px ${varAlpha(theme.vars.palette.primary.darkChannel, 0.24)}`,\n }}\n />\n </Box>\n </Box>\n </Box>\n );\n};\n\nexport default SplashScreen;\n"]
|
|
1
|
+
{"version":3,"sources":["../../../src/components/SplashScreen/index.tsx"],"names":["Box","m","jsx","jsxs","SplashScreen","children","sx","other","theme","varAlpha","SplashScreen_default"],"mappings":"4CAEA,OAAOA,MAAS,oBAChB,OAAS,KAAAC,MAAS,gBA2BV,OAYE,OAAAC,EAZF,QAAAC,MAAA,oBAvBR,IAAMC,EAAe,CAAC,CACpB,SAAAC,EACA,GAAAC,EACA,GAAGC,CACL,IAEIL,EAACF,EAAA,CAAI,GAAI,CAAE,SAAU,QAAS,EAC5B,SAAAE,EAACF,EAAA,CACC,GAAI,CACF,MAAO,EACP,MAAO,EACP,OAAQ,EACR,OAAQ,EACR,OAAQ,KACR,QAAS,OACT,SAAU,QACV,WAAY,SACZ,eAAgB,SAChB,QAAS,qBACT,GAAGM,CACL,EACC,GAAGC,EAEJ,SAAAJ,EAACH,EAAA,CACC,GAAI,CACF,MAAO,IACP,OAAQ,IACR,WAAY,SACZ,SAAU,WACV,QAAS,cACT,eAAgB,SAChB,GAAGM,CACL,EACC,GAAGC,EAEJ,UAAAL,EAACF,EAAA,CACC,UAAWC,EAAE,IACb,QAAS,CACP,MAAO,CAAC,EAAG,GAAK,GAAK,EAAG,CAAC,EACzB,QAAS,CAAC,EAAG,IAAM,IAAM,EAAG,CAAC,CAC/B,EACA,WAAY,CACV,SAAU,EACV,YAAa,EACb,OAAQ,IACR,KAAM,WACR,EACA,GAAI,CAAE,QAAS,aAAc,EAE5B,SAAAI,EACH,EAEAH,EAACF,EAAA,CACC,UAAWC,EAAE,IACb,QAAS,CACP,MAAO,CAAC,IAAK,EAAG,EAAG,IAAK,GAAG,EAC3B,OAAQ,CAAC,IAAK,EAAG,EAAG,IAAK,GAAG,EAC5B,QAAS,CAAC,IAAM,EAAG,EAAG,EAAG,GAAI,EAC7B,aAAc,CAAC,MAAO,MAAO,MAAO,MAAO,KAAK,CAClD,EACA,WAAY,CAAE,KAAM,SAAU,SAAU,IAAK,OAAQ,GAAS,EAC9D,GAAI,CACF,SAAU,WACV,MAAO,oBACP,OAAQ,oBACR,OAAQO,GACN,aAAaC,EAASD,EAAM,KAAK,QAAQ,QAAQ,YAAa,GAAI,GACtE,EACF,EAEAN,EAACF,EAAA,CACC,UAAWC,EAAE,IACb,QAAS,CACP,MAAO,CAAC,EAAG,IAAK,IAAK,EAAG,CAAC,EACzB,OAAQ,CAAC,EAAG,IAAK,IAAK,EAAG,CAAC,EAC1B,QAAS,CAAC,EAAG,IAAM,IAAM,IAAM,CAAC,EAChC,aAAc,CAAC,MAAO,MAAO,MAAO,MAAO,KAAK,CAClD,EACA,WAAY,CAAE,KAAM,SAAU,SAAU,IAAK,OAAQ,GAAS,EAC9D,GAAI,CACF,MAAO,EACP,OAAQ,EACR,SAAU,WACV,OAAQO,GACN,aAAaC,EAASD,EAAM,KAAK,QAAQ,QAAQ,YAAa,GAAI,GACtE,EACF,GACF,EACF,EACF,EAIGE,EAAQN","sourcesContent":["import { PropsWithChildren } from 'react';\nimport type { BoxProps } from '@mui/material/Box';\nimport Box from '@mui/material/Box';\nimport { m } from 'framer-motion';\n\nimport { varAlpha } from 'theme/styles';\n\nconst SplashScreen = ({\n children,\n sx,\n ...other\n}: PropsWithChildren<BoxProps>) => {\n return (\n <Box sx={{ overflow: 'hidden' }}>\n <Box\n sx={{\n right: 0,\n width: 1,\n bottom: 0,\n height: 1,\n zIndex: 9998,\n display: 'flex',\n position: 'fixed',\n alignItems: 'center',\n justifyContent: 'center',\n bgcolor: 'background.default',\n ...sx,\n }}\n {...other}\n >\n <Box\n sx={{\n width: 120,\n height: 120,\n alignItems: 'center',\n position: 'relative',\n display: 'inline-flex',\n justifyContent: 'center',\n ...sx,\n }}\n {...other}\n >\n <Box\n component={m.div}\n animate={{\n scale: [1, 0.9, 0.9, 1, 1],\n opacity: [1, 0.48, 0.48, 1, 1],\n }}\n transition={{\n duration: 2,\n repeatDelay: 1,\n repeat: Infinity,\n ease: 'easeInOut',\n }}\n sx={{ display: 'inline-flex' }}\n >\n {children}\n </Box>\n\n <Box\n component={m.div}\n animate={{\n scale: [1.6, 1, 1, 1.6, 1.6],\n rotate: [270, 0, 0, 270, 270],\n opacity: [0.25, 1, 1, 1, 0.25],\n borderRadius: ['25%', '25%', '50%', '50%', '25%'],\n }}\n transition={{ ease: 'linear', duration: 3.2, repeat: Infinity }}\n sx={{\n position: 'absolute',\n width: 'calc(100% - 20px)',\n height: 'calc(100% - 20px)',\n border: theme =>\n `solid 3px ${varAlpha(theme.vars.palette.primary.darkChannel, 0.24)}`,\n }}\n />\n\n <Box\n component={m.div}\n animate={{\n scale: [1, 1.2, 1.2, 1, 1],\n rotate: [0, 270, 270, 0, 0],\n opacity: [1, 0.25, 0.25, 0.25, 1],\n borderRadius: ['25%', '25%', '50%', '50%', '25%'],\n }}\n transition={{ ease: 'linear', duration: 3.2, repeat: Infinity }}\n sx={{\n width: 1,\n height: 1,\n position: 'absolute',\n border: theme =>\n `solid 8px ${varAlpha(theme.vars.palette.primary.darkChannel, 0.24)}`,\n }}\n />\n </Box>\n </Box>\n </Box>\n );\n};\n\nexport default SplashScreen;\n"]}
|
|
@@ -1,71 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
width: 24,
|
|
17
|
-
height: 24,
|
|
18
|
-
color: "text.disabled",
|
|
19
|
-
...active && {
|
|
20
|
-
color: "primary.main"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
children: completed ? /* @__PURE__ */ jsx(Icon, { icon: "SIMPLE_CHECK", color: "primary.main" }) : /* @__PURE__ */ jsx(
|
|
24
|
-
Box,
|
|
25
|
-
{
|
|
26
|
-
sx: {
|
|
27
|
-
width: 8,
|
|
28
|
-
height: 8,
|
|
29
|
-
borderRadius: "50%",
|
|
30
|
-
backgroundColor: "currentColor"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
)
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
const Steps = ({
|
|
38
|
-
steps,
|
|
39
|
-
activeStep,
|
|
40
|
-
showLabels = true,
|
|
41
|
-
sx,
|
|
42
|
-
...other
|
|
43
|
-
}) => {
|
|
44
|
-
return /* @__PURE__ */ jsx(
|
|
45
|
-
Stepper,
|
|
46
|
-
{
|
|
47
|
-
alternativeLabel: true,
|
|
48
|
-
activeStep,
|
|
49
|
-
connector: /* @__PURE__ */ jsx(StepConnector, {}),
|
|
50
|
-
sx,
|
|
51
|
-
...other,
|
|
52
|
-
children: steps.map((label) => /* @__PURE__ */ jsx(Step, { children: /* @__PURE__ */ jsx(
|
|
53
|
-
StepLabel,
|
|
54
|
-
{
|
|
55
|
-
StepIconComponent: StepIcon,
|
|
56
|
-
sx: {
|
|
57
|
-
"& .MuiStepLabel-label": {
|
|
58
|
-
typography: "subtitle2"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
children: showLabels && label
|
|
62
|
-
}
|
|
63
|
-
) }, label))
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
};
|
|
67
|
-
var Steps_default = Steps;
|
|
68
|
-
export {
|
|
69
|
-
Steps_default as default
|
|
70
|
-
};
|
|
1
|
+
import { a } from '../../chunk-FU42GMHJ.js';
|
|
2
|
+
import '../../chunk-ZK4R7GDN.js';
|
|
3
|
+
import s from '@mui/material/Box';
|
|
4
|
+
import S from '@mui/material/Stack';
|
|
5
|
+
import d from '@mui/material/Step';
|
|
6
|
+
import f from '@mui/material/StepLabel';
|
|
7
|
+
import u from '@mui/material/Stepper';
|
|
8
|
+
import l from '@mui/material/StepConnector';
|
|
9
|
+
import { styled } from '@mui/material/styles';
|
|
10
|
+
import { jsx } from 'react/jsx-runtime';
|
|
11
|
+
|
|
12
|
+
var i=styled(l)(({theme:o})=>({top:10,left:"calc(-50% + 20px)",right:"calc(50% + 20px)","& .MuiStepConnector-line":{borderTopWidth:2,borderColor:o.palette.divider},"&.Mui-active, &.Mui-completed":{"& .MuiStepConnector-line":{borderColor:o.palette.primary.main}}}));var C=({active:o,completed:e})=>jsx(S,{alignItems:"center",justifyContent:"center",sx:{width:24,height:24,color:"text.disabled",...o&&{color:"primary.main"}},children:e?jsx(a,{icon:"SIMPLE_CHECK",color:"primary.main"}):jsx(s,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"currentColor"}})}),b=({steps:o,activeStep:e,showLabels:n=!0,sx:c,...a})=>jsx(u,{alternativeLabel:!0,activeStep:e,connector:jsx(i,{}),sx:c,...a,children:o.map(r=>jsx(d,{children:jsx(f,{StepIconComponent:C,sx:{"& .MuiStepLabel-label":{typography:"subtitle2"}},children:n&&r})},r))}),w=b;
|
|
13
|
+
|
|
14
|
+
export { w as default };
|
|
15
|
+
//# sourceMappingURL=out.js.map
|
|
71
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Steps/index.tsx"],"sourcesContent":["import Box from '@mui/material/Box';\nimport Stack from '@mui/material/Stack';\nimport Step from '@mui/material/Step';\nimport StepLabel from '@mui/material/StepLabel';\nimport Stepper from '@mui/material/Stepper';\n\nimport Icon from '../Icon';\n\nimport { StepIconProps, StepsProps } from './props';\nimport { StepConnector } from './styles';\n\nconst StepIcon = ({ active, completed }: StepIconProps) => {\n return (\n <Stack\n alignItems=\"center\"\n justifyContent=\"center\"\n sx={{\n width: 24,\n height: 24,\n color: 'text.disabled',\n ...(active && {\n color: 'primary.main',\n }),\n }}\n >\n {completed ? (\n <Icon icon=\"SIMPLE_CHECK\" color=\"primary.main\" />\n ) : (\n <Box\n sx={{\n width: 8,\n height: 8,\n borderRadius: '50%',\n backgroundColor: 'currentColor',\n }}\n />\n )}\n </Stack>\n );\n};\n\nconst Steps = ({\n steps,\n activeStep,\n showLabels = true,\n sx,\n ...other\n}: StepsProps) => {\n return (\n <Stepper\n alternativeLabel\n activeStep={activeStep}\n connector={<StepConnector />}\n sx={sx}\n {...other}\n >\n {steps.map(label => (\n <Step key={label}>\n <StepLabel\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n StepIconComponent={StepIcon as any}\n sx={{\n '& .MuiStepLabel-label': {\n typography: 'subtitle2',\n },\n }}\n >\n {showLabels && label}\n </StepLabel>\n </Step>\n ))}\n </Stepper>\n );\n};\n\nexport default Steps;\n"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Steps/index.tsx","../../../src/components/Steps/styles.ts"],"names":["Box","Stack","Step","StepLabel","Stepper","MUIStepConnector","styled","StepConnector","theme","jsx","StepIcon","active","completed","Icon_default","Steps","steps","activeStep","showLabels","sx","other","label","Steps_default"],"mappings":"4EAAA,OAAOA,MAAS,oBAChB,OAAOC,MAAW,sBAClB,OAAOC,MAAU,qBACjB,OAAOC,MAAe,0BACtB,OAAOC,MAAa,wBCJpB,OAAOC,MAAsB,8BAC7B,OAAS,UAAAC,MAAc,uBAEhB,IAAMC,EAAgBD,EAAOD,CAAgB,EAAE,CAAC,CAAE,MAAAG,CAAM,KAAO,CACpE,IAAK,GACL,KAAM,oBACN,MAAO,mBAEP,2BAA4B,CAC1B,eAAgB,EAChB,YAAaA,EAAM,QAAQ,OAC7B,EAEA,gCAAiC,CAC/B,2BAA4B,CAC1B,YAAaA,EAAM,QAAQ,QAAQ,IACrC,CACF,CACF,EAAE,EDQM,cAAAC,MAAA,oBAfR,IAAMC,EAAW,CAAC,CAAE,OAAAC,EAAQ,UAAAC,CAAU,IAElCH,EAACR,EAAA,CACC,WAAW,SACX,eAAe,SACf,GAAI,CACF,MAAO,GACP,OAAQ,GACR,MAAO,gBACP,GAAIU,GAAU,CACZ,MAAO,cACT,CACF,EAEC,SAAAC,EACCH,EAACI,EAAA,CAAK,KAAK,eAAe,MAAM,eAAe,EAE/CJ,EAACT,EAAA,CACC,GAAI,CACF,MAAO,EACP,OAAQ,EACR,aAAc,MACd,gBAAiB,cACnB,EACF,EAEJ,EAIEc,EAAQ,CAAC,CACb,MAAAC,EACA,WAAAC,EACA,WAAAC,EAAa,GACb,GAAAC,EACA,GAAGC,CACL,IAEIV,EAACL,EAAA,CACC,iBAAgB,GAChB,WAAYY,EACZ,UAAWP,EAACF,EAAA,EAAc,EAC1B,GAAIW,EACH,GAAGC,EAEH,SAAAJ,EAAM,IAAIK,GACTX,EAACP,EAAA,CACC,SAAAO,EAACN,EAAA,CAEC,kBAAmBO,EACnB,GAAI,CACF,wBAAyB,CACvB,WAAY,WACd,CACF,EAEC,SAAAO,GAAcG,EACjB,GAXSA,CAYX,CACD,EACH,EAIGC,EAAQP","sourcesContent":["import Box from '@mui/material/Box';\nimport Stack from '@mui/material/Stack';\nimport Step from '@mui/material/Step';\nimport StepLabel from '@mui/material/StepLabel';\nimport Stepper from '@mui/material/Stepper';\n\nimport Icon from '../Icon';\n\nimport { StepIconProps, StepsProps } from './props';\nimport { StepConnector } from './styles';\n\nconst StepIcon = ({ active, completed }: StepIconProps) => {\n return (\n <Stack\n alignItems=\"center\"\n justifyContent=\"center\"\n sx={{\n width: 24,\n height: 24,\n color: 'text.disabled',\n ...(active && {\n color: 'primary.main',\n }),\n }}\n >\n {completed ? (\n <Icon icon=\"SIMPLE_CHECK\" color=\"primary.main\" />\n ) : (\n <Box\n sx={{\n width: 8,\n height: 8,\n borderRadius: '50%',\n backgroundColor: 'currentColor',\n }}\n />\n )}\n </Stack>\n );\n};\n\nconst Steps = ({\n steps,\n activeStep,\n showLabels = true,\n sx,\n ...other\n}: StepsProps) => {\n return (\n <Stepper\n alternativeLabel\n activeStep={activeStep}\n connector={<StepConnector />}\n sx={sx}\n {...other}\n >\n {steps.map(label => (\n <Step key={label}>\n <StepLabel\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n StepIconComponent={StepIcon as any}\n sx={{\n '& .MuiStepLabel-label': {\n typography: 'subtitle2',\n },\n }}\n >\n {showLabels && label}\n </StepLabel>\n </Step>\n ))}\n </Stepper>\n );\n};\n\nexport default Steps;\n","import MUIStepConnector from '@mui/material/StepConnector';\nimport { styled } from '@mui/material/styles';\n\nexport const StepConnector = styled(MUIStepConnector)(({ theme }) => ({\n top: 10,\n left: 'calc(-50% + 20px)',\n right: 'calc(50% + 20px)',\n\n '& .MuiStepConnector-line': {\n borderTopWidth: 2,\n borderColor: theme.palette.divider,\n },\n\n '&.Mui-active, &.Mui-completed': {\n '& .MuiStepConnector-line': {\n borderColor: theme.palette.primary.main,\n },\n },\n}));\n"]}
|
|
@@ -1,90 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
...props,
|
|
13
|
-
label: /* @__PURE__ */ jsxs(
|
|
14
|
-
Stack,
|
|
15
|
-
{
|
|
16
|
-
position: "relative",
|
|
17
|
-
direction: "row",
|
|
18
|
-
alignItems: "center",
|
|
19
|
-
gap: 1.5,
|
|
20
|
-
sx: (theme) => ({
|
|
21
|
-
"> span": {
|
|
22
|
-
position: "absolute",
|
|
23
|
-
top: -14,
|
|
24
|
-
right: -10,
|
|
25
|
-
span: {
|
|
26
|
-
position: "fixed",
|
|
27
|
-
width: 10,
|
|
28
|
-
height: 10,
|
|
29
|
-
backgroundColor: theme.palette.warning.main,
|
|
30
|
-
border: "1px solid #fff",
|
|
31
|
-
borderRadius: "50%",
|
|
32
|
-
zIndex: 999
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}),
|
|
36
|
-
children: [
|
|
37
|
-
icon,
|
|
38
|
-
label,
|
|
39
|
-
/* @__PURE__ */ jsx(
|
|
40
|
-
Icon,
|
|
41
|
-
{
|
|
42
|
-
icon: "CLOSE_MARK_BUTTON",
|
|
43
|
-
width: 16,
|
|
44
|
-
onClick: (e) => {
|
|
45
|
-
onClose();
|
|
46
|
-
e.stopPropagation();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
),
|
|
50
|
-
hasChanges && /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx("span", {}) })
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
)(({ theme }) => ({
|
|
58
|
-
textTransform: "none",
|
|
59
|
-
fontSize: theme.typography.pxToRem(14),
|
|
60
|
-
margin: "0 !important",
|
|
61
|
-
color: `${theme.palette.primary.lighter} !important`,
|
|
62
|
-
minHeight: "initial",
|
|
63
|
-
padding: "10px 16px",
|
|
64
|
-
backgroundColor: theme.palette.primary.dark,
|
|
65
|
-
border: `1px solid ${alpha(theme.palette.primary.darker, 0.25)}`,
|
|
66
|
-
borderBottom: 0,
|
|
67
|
-
borderRadius: "8px 8px 0 0",
|
|
68
|
-
fontWeight: 600,
|
|
69
|
-
overflow: "initial !important",
|
|
70
|
-
lineHeight: 1,
|
|
71
|
-
"&.Mui-selected": {
|
|
72
|
-
color: `${theme.palette.text.primary} !important`,
|
|
73
|
-
backgroundColor: theme.palette.background.paper,
|
|
74
|
-
borderColor: theme.palette.primary.dark,
|
|
75
|
-
svg: {
|
|
76
|
-
color: theme.palette.text.disabled
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"&.Mui-focusVisible": {
|
|
80
|
-
backgroundColor: "rgba(100, 95, 228, 0.32)"
|
|
81
|
-
},
|
|
82
|
-
"svg:hover": {
|
|
83
|
-
opacity: 0.85
|
|
84
|
-
}
|
|
85
|
-
}));
|
|
86
|
-
var StyledTab_default = StyledTab;
|
|
87
|
-
export {
|
|
88
|
-
StyledTab_default as default
|
|
89
|
-
};
|
|
1
|
+
import { a } from '../../chunk-FU42GMHJ.js';
|
|
2
|
+
import '../../chunk-ZK4R7GDN.js';
|
|
3
|
+
import n from '@mui/material/Stack';
|
|
4
|
+
import { styled, alpha } from '@mui/material/styles';
|
|
5
|
+
import b from '@mui/material/Tab';
|
|
6
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var g=styled(({label:o,onClose:i,icon:p,hasChanges:e,...l})=>jsx(b,{disableRipple:!0,...l,label:jsxs(n,{position:"relative",direction:"row",alignItems:"center",gap:1.5,sx:t=>({"> span":{position:"absolute",top:-14,right:-10,span:{position:"fixed",width:10,height:10,backgroundColor:t.palette.warning.main,border:"1px solid #fff",borderRadius:"50%",zIndex:999}}}),children:[p,o,jsx(a,{icon:"CLOSE_MARK_BUTTON",width:16,onClick:t=>{i(),t.stopPropagation();}}),e&&jsx("span",{children:jsx("span",{})})]})}))(({theme:o})=>({textTransform:"none",fontSize:o.typography.pxToRem(14),margin:"0 !important",color:`${o.palette.primary.lighter} !important`,minHeight:"initial",padding:"10px 16px",backgroundColor:o.palette.primary.dark,border:`1px solid ${alpha(o.palette.primary.darker,.25)}`,borderBottom:0,borderRadius:"8px 8px 0 0",fontWeight:600,overflow:"initial !important",lineHeight:1,"&.Mui-selected":{color:`${o.palette.text.primary} !important`,backgroundColor:o.palette.background.paper,borderColor:o.palette.primary.dark,svg:{color:o.palette.text.disabled}},"&.Mui-focusVisible":{backgroundColor:"rgba(100, 95, 228, 0.32)"},"svg:hover":{opacity:.85}})),y=g;
|
|
9
|
+
|
|
10
|
+
export { y as default };
|
|
11
|
+
//# sourceMappingURL=out.js.map
|
|
90
12
|
//# sourceMappingURL=index.js.map
|