@zydon/common 2.2.48 → 2.2.50
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-23GJSDGU.js +10 -0
- package/dist/chunk-2MVQI7NJ.js +8 -0
- package/dist/chunk-3APKMSVD.js +5 -0
- package/dist/chunk-3E5A45HM.js +3 -0
- package/dist/chunk-4CNAGEPZ.js +13 -0
- package/dist/chunk-4INDXVIX.js +5 -0
- package/dist/chunk-56NARAT6.js +11 -0
- package/dist/chunk-5YJTSVA2.js +6 -0
- package/dist/chunk-7F56LFN2.js +17 -0
- package/dist/chunk-7KZ2UT76.js +8 -0
- package/dist/chunk-ANAHA3L6.js +3 -0
- package/dist/chunk-BA43A7R3.js +18 -0
- package/dist/chunk-BUYQKDFG.js +13 -0
- package/dist/chunk-BYAPKKGB.js +7 -0
- package/dist/chunk-CFVUZ4S5.js +5 -0
- package/dist/chunk-CFYNJQGN.js +43 -0
- package/dist/chunk-CQDKXUUX.js +3 -0
- package/dist/chunk-D27ND54J.js +16 -0
- package/dist/chunk-D2VRQ2K3.js +10 -0
- package/dist/chunk-DZ7YW2X6.js +18 -0
- package/dist/chunk-E5MGOPPQ.js +8 -0
- package/dist/chunk-EBTRMUBS.js +7 -0
- package/dist/chunk-EFUFJKJD.js +7 -0
- package/dist/chunk-F7CW3DXN.js +14 -0
- package/dist/chunk-GA4A5P3S.js +6 -0
- package/dist/chunk-GOC7PC2S.js +6 -0
- package/dist/chunk-ILHUUK4X.js +6 -0
- package/dist/chunk-KFZEM7KS.js +5 -0
- package/dist/chunk-KORVZU6L.js +17 -0
- package/dist/chunk-M6QHAL4V.js +7 -0
- package/dist/chunk-MCT77MRN.js +8 -0
- package/dist/chunk-NF42ENKE.js +9 -0
- package/dist/chunk-NHQNAQTD.js +7 -0
- package/dist/chunk-NQ32QBBI.js +7 -0
- package/dist/chunk-ORYAES3Q.js +5 -0
- package/dist/chunk-PMPALWRO.js +9 -0
- package/dist/chunk-QHVL5QNM.js +13 -0
- package/dist/chunk-QNAXGE5H.js +8 -0
- package/dist/chunk-QQB3DGHT.js +3 -0
- package/dist/chunk-RLMWIJKJ.js +10 -0
- package/dist/chunk-SEVJABAI.js +7 -0
- package/dist/chunk-T7I256S6.js +8 -0
- package/dist/chunk-TRI6XGH4.js +7 -0
- package/dist/chunk-TWGGHTU5.js +5 -0
- package/dist/chunk-UGH5FWZQ.js +13 -0
- package/dist/chunk-VTHBHXM2.js +7 -0
- package/dist/chunk-VVMQMROT.js +5 -0
- package/dist/chunk-W3MYAMTH.js +5 -0
- package/dist/chunk-WKD3OXUA.js +6 -0
- package/dist/chunk-YWEB6IAI.js +6 -0
- package/dist/chunk-YYKIC4EK.js +28 -0
- package/dist/chunk-Z2TDWMRU.js +6 -0
- package/dist/chunk-ZDHXW74M.js +5 -0
- package/dist/chunk-ZHP7IRS6.js +7 -0
- package/dist/chunk-ZODC2MGF.js +10 -0
- package/dist/components/ActionButton/index.js +3 -35
- package/dist/components/Autocomplete/index.js +3 -141
- package/dist/components/AutocompleteDetailed/index.js +3 -142
- package/dist/components/BuilderLayout/index.js +12 -26
- package/dist/components/BuilderSidebar/index.js +10 -20
- package/dist/components/ColorPickerInput/index.js +2 -101
- package/dist/components/ColoredLabel/index.js +7 -44
- package/dist/components/Common/index.js +22 -31
- package/dist/components/Confirm/index.js +11 -51
- package/dist/components/CustomAvatar/index.js +1 -62
- package/dist/components/CustomAvatarGroup/index.js +7 -76
- package/dist/components/DashedDivider/index.js +1 -10
- package/dist/components/DataCards/index.js +20 -60
- package/dist/components/DataGrid/index.js +15 -81
- package/dist/components/DatePicker/index.js +7 -42
- package/dist/components/DateRangePicker/index.js +7 -50
- package/dist/components/DateTimePicker/index.js +7 -40
- package/dist/components/Delayed/index.js +5 -17
- package/dist/components/Drawer/index.js +12 -39
- package/dist/components/EmptyContent/index.js +3 -80
- package/dist/components/EmptyView/index.js +2 -34
- package/dist/components/Error/index.js +10 -46
- package/dist/components/ExpandableGroup/index.js +13 -33
- package/dist/components/FixedProgressBar/index.js +1 -22
- package/dist/components/FrameSkeleton/index.js +16 -108
- package/dist/components/HelpButton/index.js +3 -22
- package/dist/components/Icon/index.js +2 -670
- package/dist/components/ImageCrop/index.js +1 -51
- package/dist/components/ImageCropModal/index.js +5 -130
- package/dist/components/Incrementer/index.js +5 -161
- package/dist/components/Label/index.js +9 -74
- package/dist/components/LoadingScreen/index.js +8 -11
- package/dist/components/MaskedInput/index.js +1 -55
- package/dist/components/MenuItem/index.js +11 -24
- package/dist/components/MenuPopover/index.js +1 -48
- package/dist/components/Modal/index.js +3 -33
- package/dist/components/ModalActions/index.js +6 -11
- package/dist/components/MoreMenu/index.js +11 -18
- package/dist/components/NumberInput/index.js +1 -109
- package/dist/components/PasswordRules/index.js +11 -78
- package/dist/components/PopoverSelect/index.js +13 -50
- package/dist/components/Portal/index.js +1 -28
- package/dist/components/Result/index.js +1 -28
- package/dist/components/SavedChanges/index.js +7 -42
- package/dist/components/Scrollbar/index.js +1 -45
- package/dist/components/SearchInput/index.js +3 -73
- package/dist/components/SelectableCards/index.js +8 -144
- package/dist/components/SeoPreview/index.js +13 -167
- package/dist/components/SplashScreen/index.js +8 -107
- package/dist/components/Steps/index.js +14 -71
- package/dist/components/StyledTab/index.js +10 -90
- package/dist/components/StyledTabs/index.js +7 -27
- package/dist/components/Summary/index.js +8 -15
- package/dist/components/SwapList/index.js +22 -249
- package/dist/components/TabPanel/index.js +6 -34
- package/dist/components/TextMaxLine/index.js +2 -49
- package/dist/components/TimePicker/index.js +7 -42
- package/dist/components/ToggleButtonGroup/index.js +7 -10
- package/dist/components/Tooltip/index.js +6 -8
- package/dist/components/WhiteBox/index.js +1 -8
- package/dist/components/animate/index.js +2 -16
- package/dist/components/carousel/index.js +16 -10
- package/dist/components/form/Address/index.js +15 -199
- package/dist/components/form/Autocomplete/index.js +4 -42
- package/dist/components/form/AutocompleteDetailed/index.js +9 -42
- package/dist/components/form/Checkbox/index.js +9 -51
- package/dist/components/form/Codes/index.js +11 -87
- package/dist/components/form/ColorPicker/index.js +8 -52
- package/dist/components/form/DatePicker/index.js +8 -63
- package/dist/components/form/DateRangePicker/index.js +10 -77
- package/dist/components/form/DateTimePicker/index.js +8 -61
- package/dist/components/form/Field/index.js +1 -49
- package/dist/components/form/Form/index.js +7 -29
- package/dist/components/form/Incrementer/index.js +11 -38
- package/dist/components/form/InputTags/index.js +9 -69
- package/dist/components/form/MaskedInput/index.js +2 -45
- package/dist/components/form/MultiCheckbox/index.js +12 -93
- package/dist/components/form/MultiChipField/index.js +8 -49
- package/dist/components/form/NumberInput/index.js +7 -43
- package/dist/components/form/Password/index.js +13 -91
- package/dist/components/form/RadioGroup/index.js +13 -127
- package/dist/components/form/SelectableCards/index.js +14 -22
- package/dist/components/form/Switch/index.js +9 -71
- package/dist/components/form/TimePicker/index.js +8 -64
- package/dist/components/form/UploadAvatarWithCrop/index.js +20 -59
- package/dist/components/form/UploadWithCrop/index.js +23 -59
- package/dist/components/form/Webhook/index.js +19 -146
- package/dist/components/lightbox/index.js +16 -3
- package/dist/components/table/index.js +21 -19
- package/dist/components/upload/index.js +23 -14
- package/dist/hooks/useActiveElement.js +5 -27
- package/dist/hooks/useApiMessage.js +5 -33
- package/dist/hooks/useAutocomplete.js +6 -61
- package/dist/hooks/useCopyToClipboard.js +5 -22
- package/dist/hooks/useDatagrid.js +6 -45
- package/dist/hooks/useDebounceValue.js +5 -18
- package/dist/hooks/useDeepCompareEffect.js +6 -16
- package/dist/hooks/useEventCallback.js +2 -17
- package/dist/hooks/useEventListener.js +1 -24
- package/dist/hooks/useIsMounting.js +5 -13
- package/dist/hooks/useIsomorphicLayoutEffect.js +1 -6
- package/dist/hooks/useLocalStorage.js +8 -88
- package/dist/hooks/useMount.js +5 -9
- package/dist/hooks/useOnClickOutside.js +5 -15
- package/dist/hooks/usePagination.js +5 -40
- package/dist/hooks/usePopover.js +1 -24
- package/dist/hooks/useResponsive.js +1 -35
- package/dist/hooks/useScrollOffSetTop.js +6 -32
- package/dist/hooks/useSnackbar.js +1 -13
- package/dist/hooks/useTabs.js +5 -16
- package/dist/hooks/useToggle.js +1 -11
- package/dist/hooks/useUpload.js +1 -57
- package/dist/hooks/useUploadImage.js +2 -79
- package/dist/index.css +10 -0
- package/dist/index.js +3 -6
- package/dist/locales/all-langs.js +1 -39
- package/dist/theme/core/index.js +3 -6
- package/dist/theme/styles/index.d.ts +1 -1
- package/dist/theme/styles/index.js +1 -3
- package/dist/theme/theme-provider.js +7 -45
- package/dist/theme/with-settings/index.js +4 -2
- package/dist/types/addressProps.js +1 -1
- package/dist/types/api.js +1 -1
- package/dist/types/autoComplete.js +1 -1
- package/dist/types/autoCompleteProps.js +1 -1
- package/dist/types/baseField.js +1 -1
- package/dist/types/dataGridProps.js +1 -1
- package/dist/types/datagrid.js +1 -1
- package/dist/types/datePickerProps.js +1 -1
- package/dist/types/dateRangePickerProps.js +1 -1
- package/dist/types/dateTimePickerProps.js +1 -1
- package/dist/types/fieldProps.js +1 -1
- package/dist/types/icon.js +1 -331
- package/dist/types/iconProps.js +1 -1
- package/dist/types/incrementerProps.js +1 -1
- package/dist/types/item.js +1 -1
- package/dist/types/multiCheckboxProps.js +1 -1
- package/dist/types/numberInputProps.js +1 -1
- package/dist/types/option.js +1 -1
- package/dist/types/radioGroupProps.js +1 -1
- package/dist/types/searchInputProps.js +1 -1
- package/dist/types/sectionProps.js +1 -1
- package/dist/types/switchProps.js +1 -1
- package/dist/types/timePickerProps.js +1 -1
- package/dist/types/upload.js +1 -1
- package/dist/types/webhook.js +3 -51
- package/dist/utils/color.js +1 -6
- package/dist/utils/compare.js +1 -6
- package/dist/utils/date.js +6 -23
- package/dist/utils/formatNumber.js +1 -94
- package/dist/utils/formatTime.js +1 -169
- package/dist/utils/loadable.js +7 -14
- package/dist/utils/mask.js +3 -44
- package/dist/utils/number.js +1 -15
- package/dist/utils/sort.js +3 -24
- package/dist/utils/uuidv4.js +3 -10
- package/dist/utils/validators.js +1 -86
- package/package.json +1 -1
- package/dist/components/ActionButton/index.js.map +0 -1
- package/dist/components/Autocomplete/index.js.map +0 -1
- package/dist/components/AutocompleteDetailed/index.js.map +0 -1
- package/dist/components/BuilderLayout/index.js.map +0 -1
- package/dist/components/BuilderSidebar/index.js.map +0 -1
- package/dist/components/ColorPickerInput/index.js.map +0 -1
- package/dist/components/ColoredLabel/index.js.map +0 -1
- package/dist/components/Common/index.js.map +0 -1
- package/dist/components/Confirm/index.js.map +0 -1
- package/dist/components/CustomAvatar/index.js.map +0 -1
- package/dist/components/CustomAvatarGroup/index.js.map +0 -1
- package/dist/components/DashedDivider/index.js.map +0 -1
- package/dist/components/DataCards/index.js.map +0 -1
- package/dist/components/DataGrid/index.js.map +0 -1
- package/dist/components/DatePicker/index.js.map +0 -1
- package/dist/components/DateRangePicker/index.js.map +0 -1
- package/dist/components/DateTimePicker/index.js.map +0 -1
- package/dist/components/Delayed/index.js.map +0 -1
- package/dist/components/Drawer/index.js.map +0 -1
- package/dist/components/EmptyContent/index.js.map +0 -1
- package/dist/components/EmptyView/index.js.map +0 -1
- package/dist/components/Error/index.js.map +0 -1
- package/dist/components/ExpandableGroup/index.js.map +0 -1
- package/dist/components/FixedProgressBar/index.js.map +0 -1
- package/dist/components/FrameSkeleton/index.js.map +0 -1
- package/dist/components/HelpButton/index.js.map +0 -1
- package/dist/components/Icon/index.js.map +0 -1
- package/dist/components/ImageCrop/index.js.map +0 -1
- package/dist/components/ImageCropModal/index.js.map +0 -1
- package/dist/components/Incrementer/index.js.map +0 -1
- package/dist/components/Label/index.js.map +0 -1
- package/dist/components/LoadingScreen/index.js.map +0 -1
- package/dist/components/MaskedInput/index.js.map +0 -1
- package/dist/components/MenuItem/index.js.map +0 -1
- package/dist/components/MenuPopover/index.js.map +0 -1
- package/dist/components/Modal/index.js.map +0 -1
- package/dist/components/ModalActions/index.js.map +0 -1
- package/dist/components/MoreMenu/index.js.map +0 -1
- package/dist/components/NumberInput/index.js.map +0 -1
- package/dist/components/PasswordRules/index.js.map +0 -1
- package/dist/components/PopoverSelect/index.js.map +0 -1
- package/dist/components/Portal/index.js.map +0 -1
- package/dist/components/Result/index.js.map +0 -1
- package/dist/components/SavedChanges/index.js.map +0 -1
- package/dist/components/Scrollbar/index.js.map +0 -1
- package/dist/components/SearchInput/index.js.map +0 -1
- package/dist/components/SelectableCards/index.js.map +0 -1
- package/dist/components/SeoPreview/index.js.map +0 -1
- package/dist/components/SplashScreen/index.js.map +0 -1
- package/dist/components/Steps/index.js.map +0 -1
- package/dist/components/StyledTab/index.js.map +0 -1
- package/dist/components/StyledTabs/index.js.map +0 -1
- package/dist/components/Summary/index.js.map +0 -1
- package/dist/components/SwapList/index.js.map +0 -1
- package/dist/components/TabPanel/index.js.map +0 -1
- package/dist/components/TextMaxLine/index.js.map +0 -1
- package/dist/components/TimePicker/index.js.map +0 -1
- package/dist/components/ToggleButtonGroup/index.js.map +0 -1
- package/dist/components/Tooltip/index.js.map +0 -1
- package/dist/components/WhiteBox/index.js.map +0 -1
- package/dist/components/animate/index.js.map +0 -1
- package/dist/components/carousel/index.js.map +0 -1
- package/dist/components/form/Address/index.js.map +0 -1
- package/dist/components/form/Autocomplete/index.js.map +0 -1
- package/dist/components/form/AutocompleteDetailed/index.js.map +0 -1
- package/dist/components/form/Checkbox/index.js.map +0 -1
- package/dist/components/form/Codes/index.js.map +0 -1
- package/dist/components/form/ColorPicker/index.js.map +0 -1
- package/dist/components/form/DatePicker/index.js.map +0 -1
- package/dist/components/form/DateRangePicker/index.js.map +0 -1
- package/dist/components/form/DateTimePicker/index.js.map +0 -1
- package/dist/components/form/Field/index.js.map +0 -1
- package/dist/components/form/Form/index.js.map +0 -1
- package/dist/components/form/Incrementer/index.js.map +0 -1
- package/dist/components/form/InputTags/index.js.map +0 -1
- package/dist/components/form/MaskedInput/index.js.map +0 -1
- package/dist/components/form/MultiCheckbox/index.js.map +0 -1
- package/dist/components/form/MultiChipField/index.js.map +0 -1
- package/dist/components/form/NumberInput/index.js.map +0 -1
- package/dist/components/form/Password/index.js.map +0 -1
- package/dist/components/form/RadioGroup/index.js.map +0 -1
- package/dist/components/form/SelectableCards/index.js.map +0 -1
- package/dist/components/form/Switch/index.js.map +0 -1
- package/dist/components/form/TimePicker/index.js.map +0 -1
- package/dist/components/form/UploadAvatarWithCrop/index.js.map +0 -1
- package/dist/components/form/UploadWithCrop/index.js.map +0 -1
- package/dist/components/form/Webhook/index.js.map +0 -1
- package/dist/components/lightbox/index.js.map +0 -1
- package/dist/components/table/index.js.map +0 -1
- package/dist/components/upload/index.js.map +0 -1
- package/dist/hooks/useActiveElement.js.map +0 -1
- package/dist/hooks/useApiMessage.js.map +0 -1
- package/dist/hooks/useAutocomplete.js.map +0 -1
- package/dist/hooks/useCopyToClipboard.js.map +0 -1
- package/dist/hooks/useDatagrid.js.map +0 -1
- package/dist/hooks/useDebounceValue.js.map +0 -1
- package/dist/hooks/useDeepCompareEffect.js.map +0 -1
- package/dist/hooks/useEventCallback.js.map +0 -1
- package/dist/hooks/useEventListener.js.map +0 -1
- package/dist/hooks/useIsMounting.js.map +0 -1
- package/dist/hooks/useIsomorphicLayoutEffect.js.map +0 -1
- package/dist/hooks/useLocalStorage.js.map +0 -1
- package/dist/hooks/useMount.js.map +0 -1
- package/dist/hooks/useOnClickOutside.js.map +0 -1
- package/dist/hooks/usePagination.js.map +0 -1
- package/dist/hooks/usePopover.js.map +0 -1
- package/dist/hooks/useResponsive.js.map +0 -1
- package/dist/hooks/useScrollOffSetTop.js.map +0 -1
- package/dist/hooks/useSnackbar.js.map +0 -1
- package/dist/hooks/useTabs.js.map +0 -1
- package/dist/hooks/useToggle.js.map +0 -1
- package/dist/hooks/useUpload.js.map +0 -1
- package/dist/hooks/useUploadImage.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/locales/all-langs.js.map +0 -1
- package/dist/theme/core/index.js.map +0 -1
- package/dist/theme/styles/index.js.map +0 -1
- package/dist/theme/theme-provider.js.map +0 -1
- package/dist/theme/with-settings/index.js.map +0 -1
- package/dist/types/addressProps.js.map +0 -1
- package/dist/types/api.js.map +0 -1
- package/dist/types/autoComplete.js.map +0 -1
- package/dist/types/autoCompleteProps.js.map +0 -1
- package/dist/types/baseField.js.map +0 -1
- package/dist/types/dataGridProps.js.map +0 -1
- package/dist/types/datagrid.js.map +0 -1
- package/dist/types/datePickerProps.js.map +0 -1
- package/dist/types/dateRangePickerProps.js.map +0 -1
- package/dist/types/dateTimePickerProps.js.map +0 -1
- package/dist/types/fieldProps.js.map +0 -1
- package/dist/types/icon.js.map +0 -1
- package/dist/types/iconProps.js.map +0 -1
- package/dist/types/incrementerProps.js.map +0 -1
- package/dist/types/item.js.map +0 -1
- package/dist/types/multiCheckboxProps.js.map +0 -1
- package/dist/types/numberInputProps.js.map +0 -1
- package/dist/types/option.js.map +0 -1
- package/dist/types/radioGroupProps.js.map +0 -1
- package/dist/types/searchInputProps.js.map +0 -1
- package/dist/types/sectionProps.js.map +0 -1
- package/dist/types/switchProps.js.map +0 -1
- package/dist/types/timePickerProps.js.map +0 -1
- package/dist/types/upload.js.map +0 -1
- package/dist/types/webhook.js.map +0 -1
- package/dist/utils/color.js.map +0 -1
- package/dist/utils/compare.js.map +0 -1
- package/dist/utils/date.js.map +0 -1
- package/dist/utils/formatNumber.js.map +0 -1
- package/dist/utils/formatTime.js.map +0 -1
- package/dist/utils/loadable.js.map +0 -1
- package/dist/utils/mask.js.map +0 -1
- package/dist/utils/number.js.map +0 -1
- package/dist/utils/sort.js.map +0 -1
- package/dist/utils/uuidv4.js.map +0 -1
- package/dist/utils/validators.js.map +0 -1
|
@@ -1,51 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import Cropper from "react-cropper";
|
|
3
|
-
import { Container } from "./styles";
|
|
4
|
-
const ImageCrop = ({
|
|
5
|
-
onInitialized,
|
|
6
|
-
aspectRatio = 1,
|
|
7
|
-
imageSrc = "",
|
|
8
|
-
zoom = 0.5,
|
|
9
|
-
onZoomChange
|
|
10
|
-
}) => {
|
|
11
|
-
const handleZoomChange = (event) => {
|
|
12
|
-
if (event.detail.ratio > 2) {
|
|
13
|
-
event.preventDefault();
|
|
14
|
-
onZoomChange(2);
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
if (event.detail.ratio < 0.1) {
|
|
18
|
-
event.preventDefault();
|
|
19
|
-
onZoomChange(0.1);
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
onZoomChange(event.detail.ratio);
|
|
23
|
-
};
|
|
24
|
-
return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(
|
|
25
|
-
Cropper,
|
|
26
|
-
{
|
|
27
|
-
zoomTo: zoom,
|
|
28
|
-
wheelZoomRatio: 0.2,
|
|
29
|
-
zoomOnWheel: true,
|
|
30
|
-
zoom: handleZoomChange,
|
|
31
|
-
src: imageSrc,
|
|
32
|
-
aspectRatio,
|
|
33
|
-
viewMode: 0,
|
|
34
|
-
responsive: true,
|
|
35
|
-
autoCropArea: 1,
|
|
36
|
-
guides: true,
|
|
37
|
-
background: false,
|
|
38
|
-
onInitialized,
|
|
39
|
-
dragMode: "move",
|
|
40
|
-
cropBoxMovable: false,
|
|
41
|
-
style: {
|
|
42
|
-
height: "25vw"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
) });
|
|
46
|
-
};
|
|
47
|
-
var ImageCrop_default = ImageCrop;
|
|
48
|
-
export {
|
|
49
|
-
ImageCrop_default as default
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { a as default } from '../../chunk-T7I256S6.js';
|
|
@@ -1,130 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import Stack from "@mui/material/Stack";
|
|
7
|
-
import Typography from "@mui/material/Typography";
|
|
8
|
-
import Icon from "../Icon";
|
|
9
|
-
import ImageCrop from "../ImageCrop";
|
|
10
|
-
import Modal from "../Modal";
|
|
11
|
-
const ImageCropModal = ({
|
|
12
|
-
id,
|
|
13
|
-
open,
|
|
14
|
-
onClose,
|
|
15
|
-
label,
|
|
16
|
-
onSave,
|
|
17
|
-
onRemove,
|
|
18
|
-
onPreview,
|
|
19
|
-
imageSrc,
|
|
20
|
-
aspectRatio,
|
|
21
|
-
onInitialized,
|
|
22
|
-
loading
|
|
23
|
-
}) => {
|
|
24
|
-
const [zoom, setZoom] = useState(0.5);
|
|
25
|
-
return /* @__PURE__ */ jsx(
|
|
26
|
-
Modal,
|
|
27
|
-
{
|
|
28
|
-
open,
|
|
29
|
-
onClose,
|
|
30
|
-
dialogTitle: label,
|
|
31
|
-
actions: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
32
|
-
/* @__PURE__ */ jsx(
|
|
33
|
-
Button,
|
|
34
|
-
{
|
|
35
|
-
variant: "outlined",
|
|
36
|
-
size: "medium",
|
|
37
|
-
onClick: onClose,
|
|
38
|
-
color: "inherit",
|
|
39
|
-
children: "Cancelar"
|
|
40
|
-
}
|
|
41
|
-
),
|
|
42
|
-
/* @__PURE__ */ jsx(
|
|
43
|
-
LoadingButton,
|
|
44
|
-
{
|
|
45
|
-
variant: "contained",
|
|
46
|
-
size: "medium",
|
|
47
|
-
onClick: onSave,
|
|
48
|
-
loading,
|
|
49
|
-
children: "Salvar"
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
] }),
|
|
53
|
-
fullWidth: true,
|
|
54
|
-
maxWidth: "sm",
|
|
55
|
-
keepMounted: true,
|
|
56
|
-
children: /* @__PURE__ */ jsxs(Stack, { gap: 2, children: [
|
|
57
|
-
/* @__PURE__ */ jsx(
|
|
58
|
-
ImageCrop,
|
|
59
|
-
{
|
|
60
|
-
imageSrc,
|
|
61
|
-
aspectRatio,
|
|
62
|
-
onInitialized,
|
|
63
|
-
zoom,
|
|
64
|
-
onZoomChange: setZoom
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
/* @__PURE__ */ jsxs(Stack, { gap: 1.5, children: [
|
|
68
|
-
/* @__PURE__ */ jsxs(Stack, { width: 1, direction: "row", gap: 3, flex: 1, alignItems: "center", children: [
|
|
69
|
-
/* @__PURE__ */ jsx(Typography, { variant: "body1", children: "Zoom" }),
|
|
70
|
-
/* @__PURE__ */ jsx(
|
|
71
|
-
Slider,
|
|
72
|
-
{
|
|
73
|
-
value: zoom,
|
|
74
|
-
onChange: (_, v) => setZoom(Array.isArray(v) ? v[0] : v),
|
|
75
|
-
min: 0.1,
|
|
76
|
-
max: 2,
|
|
77
|
-
size: "medium",
|
|
78
|
-
step: 0.0125
|
|
79
|
-
}
|
|
80
|
-
)
|
|
81
|
-
] }),
|
|
82
|
-
/* @__PURE__ */ jsxs(Stack, { direction: "row", gap: 2, children: [
|
|
83
|
-
/* @__PURE__ */ jsx(
|
|
84
|
-
Button,
|
|
85
|
-
{
|
|
86
|
-
variant: "outlined",
|
|
87
|
-
color: "inherit",
|
|
88
|
-
size: "large",
|
|
89
|
-
fullWidth: true,
|
|
90
|
-
startIcon: /* @__PURE__ */ jsx(Icon, { icon: "DELETE_MARK_BUTTON_02" }),
|
|
91
|
-
onClick: onRemove,
|
|
92
|
-
children: "Remover"
|
|
93
|
-
}
|
|
94
|
-
),
|
|
95
|
-
/* @__PURE__ */ jsx(
|
|
96
|
-
Button,
|
|
97
|
-
{
|
|
98
|
-
variant: "outlined",
|
|
99
|
-
color: "inherit",
|
|
100
|
-
size: "large",
|
|
101
|
-
fullWidth: true,
|
|
102
|
-
startIcon: /* @__PURE__ */ jsx(Icon, { icon: "PLAY_SIMPLE" }),
|
|
103
|
-
onClick: onPreview,
|
|
104
|
-
children: "Pr\xE9-visualizar"
|
|
105
|
-
}
|
|
106
|
-
),
|
|
107
|
-
/* @__PURE__ */ jsx(
|
|
108
|
-
Button,
|
|
109
|
-
{
|
|
110
|
-
variant: "outlined",
|
|
111
|
-
color: "inherit",
|
|
112
|
-
size: "large",
|
|
113
|
-
fullWidth: true,
|
|
114
|
-
startIcon: /* @__PURE__ */ jsx(Icon, { icon: "SEARCH_IMAGE" }),
|
|
115
|
-
component: "label",
|
|
116
|
-
htmlFor: id,
|
|
117
|
-
children: "Alterar"
|
|
118
|
-
}
|
|
119
|
-
)
|
|
120
|
-
] })
|
|
121
|
-
] })
|
|
122
|
-
] })
|
|
123
|
-
}
|
|
124
|
-
);
|
|
125
|
-
};
|
|
126
|
-
var ImageCropModal_default = ImageCropModal;
|
|
127
|
-
export {
|
|
128
|
-
ImageCropModal_default as default
|
|
129
|
-
};
|
|
130
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { a as default } from '../../chunk-F7CW3DXN.js';
|
|
2
|
+
import '../../chunk-QHVL5QNM.js';
|
|
3
|
+
import '../../chunk-T7I256S6.js';
|
|
4
|
+
import '../../chunk-PMPALWRO.js';
|
|
5
|
+
import '../../chunk-3E5A45HM.js';
|
|
@@ -1,161 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import Icon from "../Icon";
|
|
7
|
-
import NumberInput from "../NumberInput";
|
|
8
|
-
const Incrementer = forwardRef(
|
|
9
|
-
({
|
|
10
|
-
name,
|
|
11
|
-
increment = 1,
|
|
12
|
-
updadteForMultiple,
|
|
13
|
-
allowNegative = false,
|
|
14
|
-
value: originalValue = 0,
|
|
15
|
-
onChange,
|
|
16
|
-
minValue,
|
|
17
|
-
maxValue,
|
|
18
|
-
decimalScale,
|
|
19
|
-
disabled,
|
|
20
|
-
tabIndex,
|
|
21
|
-
labelIncrementer,
|
|
22
|
-
labelDecrementer,
|
|
23
|
-
...other
|
|
24
|
-
}, ref) => {
|
|
25
|
-
const [inputkey, setInputKey] = useState(`incrementer-input-${Date.now()}`);
|
|
26
|
-
const timer = useRef(null);
|
|
27
|
-
const value = Number(originalValue || 0);
|
|
28
|
-
const clearTimer = () => {
|
|
29
|
-
if (!timer.current)
|
|
30
|
-
return;
|
|
31
|
-
clearTimeout(timer.current);
|
|
32
|
-
timer.current = null;
|
|
33
|
-
};
|
|
34
|
-
const disableDecrement = useMemo(() => {
|
|
35
|
-
const nextValue = value - increment;
|
|
36
|
-
if (typeof minValue === "number" && nextValue < minValue)
|
|
37
|
-
return true;
|
|
38
|
-
return disabled || !allowNegative && nextValue < 0;
|
|
39
|
-
}, [disabled, value, increment, minValue, allowNegative]);
|
|
40
|
-
const disableIncrement = useMemo(() => {
|
|
41
|
-
const nextValue = value + increment;
|
|
42
|
-
if (typeof maxValue === "number" && nextValue > maxValue)
|
|
43
|
-
return true;
|
|
44
|
-
return disabled;
|
|
45
|
-
}, [disabled, value, increment, maxValue]);
|
|
46
|
-
const handleClickDecrement = useCallback(() => {
|
|
47
|
-
clearTimer();
|
|
48
|
-
if (!allowNegative && value - increment < 0)
|
|
49
|
-
return;
|
|
50
|
-
const valueMinusIncrement = value - increment;
|
|
51
|
-
const newValue = minValue !== void 0 && valueMinusIncrement < minValue ? minValue : fWithDecimalPlacesOrNot(valueMinusIncrement, decimalScale);
|
|
52
|
-
onChange(newValue);
|
|
53
|
-
}, [value, increment, minValue, decimalScale, onChange, allowNegative]);
|
|
54
|
-
const handleClickIncrement = useCallback(() => {
|
|
55
|
-
clearTimer();
|
|
56
|
-
const valuePlusIncrement = value + increment;
|
|
57
|
-
const newValue = maxValue !== void 0 && valuePlusIncrement > maxValue ? maxValue : fWithDecimalPlacesOrNot(valuePlusIncrement, decimalScale);
|
|
58
|
-
onChange(newValue);
|
|
59
|
-
}, [value, increment, maxValue, decimalScale, onChange]);
|
|
60
|
-
const handleChange = useCallback((e) => {
|
|
61
|
-
clearTimer();
|
|
62
|
-
let newValue = Number(e.target.value || 0);
|
|
63
|
-
if (increment !== 1 || updadteForMultiple) {
|
|
64
|
-
newValue = newValue + increment / 2;
|
|
65
|
-
newValue -= newValue % increment;
|
|
66
|
-
}
|
|
67
|
-
if (!allowNegative && newValue < 0) {
|
|
68
|
-
newValue = 0;
|
|
69
|
-
}
|
|
70
|
-
if (typeof minValue === "number" && newValue < minValue) {
|
|
71
|
-
newValue = minValue;
|
|
72
|
-
}
|
|
73
|
-
if (typeof maxValue === "number" && newValue > maxValue) {
|
|
74
|
-
newValue = maxValue;
|
|
75
|
-
}
|
|
76
|
-
newValue = fWithDecimalPlacesOrNot(newValue, decimalScale);
|
|
77
|
-
if (newValue === originalValue) {
|
|
78
|
-
timer.current = setTimeout(() => {
|
|
79
|
-
setInputKey(`incrementer-input-${Date.now()}`);
|
|
80
|
-
}, 600);
|
|
81
|
-
}
|
|
82
|
-
onChange(newValue);
|
|
83
|
-
return;
|
|
84
|
-
}, [
|
|
85
|
-
originalValue,
|
|
86
|
-
increment,
|
|
87
|
-
minValue,
|
|
88
|
-
maxValue,
|
|
89
|
-
decimalScale,
|
|
90
|
-
onChange,
|
|
91
|
-
updadteForMultiple,
|
|
92
|
-
allowNegative
|
|
93
|
-
]);
|
|
94
|
-
return /* @__PURE__ */ jsx(
|
|
95
|
-
NumberInput,
|
|
96
|
-
{
|
|
97
|
-
ref,
|
|
98
|
-
name,
|
|
99
|
-
value,
|
|
100
|
-
minValue,
|
|
101
|
-
maxValue,
|
|
102
|
-
allowNegative,
|
|
103
|
-
decimalScale,
|
|
104
|
-
InputProps: {
|
|
105
|
-
startAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx(
|
|
106
|
-
IconButton,
|
|
107
|
-
{
|
|
108
|
-
size: "medium",
|
|
109
|
-
onClick: handleClickDecrement,
|
|
110
|
-
disabled: disableDecrement,
|
|
111
|
-
"aria-label": labelDecrementer || "Decrementa",
|
|
112
|
-
children: /* @__PURE__ */ jsx(
|
|
113
|
-
Icon,
|
|
114
|
-
{
|
|
115
|
-
icon: "MINUS_SIGN",
|
|
116
|
-
width: 14,
|
|
117
|
-
height: 14,
|
|
118
|
-
color: "primary.main"
|
|
119
|
-
}
|
|
120
|
-
)
|
|
121
|
-
}
|
|
122
|
-
) }),
|
|
123
|
-
endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
|
|
124
|
-
IconButton,
|
|
125
|
-
{
|
|
126
|
-
size: "medium",
|
|
127
|
-
onClick: handleClickIncrement,
|
|
128
|
-
disabled: disableIncrement,
|
|
129
|
-
"aria-label": labelIncrementer || "Incrementa",
|
|
130
|
-
children: /* @__PURE__ */ jsx(
|
|
131
|
-
Icon,
|
|
132
|
-
{
|
|
133
|
-
icon: "SIMPLE_ADD",
|
|
134
|
-
width: 14,
|
|
135
|
-
height: 14,
|
|
136
|
-
color: "primary.main"
|
|
137
|
-
}
|
|
138
|
-
)
|
|
139
|
-
}
|
|
140
|
-
) }),
|
|
141
|
-
inputProps: {
|
|
142
|
-
style: {
|
|
143
|
-
textAlign: "center"
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
inputProps: { tabIndex },
|
|
148
|
-
onChange: handleChange,
|
|
149
|
-
disabled,
|
|
150
|
-
...other
|
|
151
|
-
},
|
|
152
|
-
inputkey
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
);
|
|
156
|
-
Incrementer.displayName = "Incrementer";
|
|
157
|
-
var Incrementer_default = Incrementer;
|
|
158
|
-
export {
|
|
159
|
-
Incrementer_default as default
|
|
160
|
-
};
|
|
161
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { a as default } from '../../chunk-56NARAT6.js';
|
|
2
|
+
import '../../chunk-ANAHA3L6.js';
|
|
3
|
+
import '../../chunk-7KZ2UT76.js';
|
|
4
|
+
import '../../chunk-PMPALWRO.js';
|
|
5
|
+
import '../../chunk-3E5A45HM.js';
|
|
@@ -1,74 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef } from
|
|
3
|
-
import
|
|
4
|
-
import { useTheme } from
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
const Label = forwardRef(
|
|
11
|
-
({
|
|
12
|
-
children,
|
|
13
|
-
color = "default",
|
|
14
|
-
variant = "soft",
|
|
15
|
-
startIcon,
|
|
16
|
-
endIcon,
|
|
17
|
-
sx,
|
|
18
|
-
...other
|
|
19
|
-
}, ref) => {
|
|
20
|
-
const theme = useTheme();
|
|
21
|
-
const iconStyles = {
|
|
22
|
-
width: 16,
|
|
23
|
-
height: 16,
|
|
24
|
-
"& svg, img": {
|
|
25
|
-
width: 1,
|
|
26
|
-
height: 1,
|
|
27
|
-
objectFit: "cover"
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
return /* @__PURE__ */ jsxs(
|
|
31
|
-
StyledLabel,
|
|
32
|
-
{
|
|
33
|
-
ref,
|
|
34
|
-
component: "span",
|
|
35
|
-
className: labelClasses.root,
|
|
36
|
-
ownerState: { color, variant },
|
|
37
|
-
sx: {
|
|
38
|
-
...startIcon && { pl: 0.75 },
|
|
39
|
-
...endIcon && { pr: 0.75 },
|
|
40
|
-
...sx
|
|
41
|
-
},
|
|
42
|
-
theme,
|
|
43
|
-
...other,
|
|
44
|
-
children: [
|
|
45
|
-
startIcon && /* @__PURE__ */ jsx(
|
|
46
|
-
Box,
|
|
47
|
-
{
|
|
48
|
-
component: "span",
|
|
49
|
-
className: labelClasses.icon,
|
|
50
|
-
sx: { mr: 0.75, ...iconStyles },
|
|
51
|
-
children: startIcon
|
|
52
|
-
}
|
|
53
|
-
),
|
|
54
|
-
typeof children === "string" ? sentenceCase(children) : children,
|
|
55
|
-
endIcon && /* @__PURE__ */ jsx(
|
|
56
|
-
Box,
|
|
57
|
-
{
|
|
58
|
-
component: "span",
|
|
59
|
-
className: labelClasses.icon,
|
|
60
|
-
sx: { ml: 0.75, ...iconStyles },
|
|
61
|
-
children: endIcon
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
Label.displayName = "Label";
|
|
70
|
-
var Label_default = Label;
|
|
71
|
-
export {
|
|
72
|
-
Label_default as default
|
|
73
|
-
};
|
|
74
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { a } from '../../chunk-D27ND54J.js';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import d from '@mui/material/Box';
|
|
4
|
+
import { styled, lighten, useTheme } from '@mui/material/styles';
|
|
5
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var l={root:"mnl__label__root",icon:"mnl__label__icon"};var i=styled(d)(({theme:o,ownerState:{color:t,variant:r}})=>{let e={...t==="default"&&{...r==="filled"&&{color:o.vars.palette.common.white,backgroundColor:o.vars.palette.text.primary,[a.dark]:{color:o.vars.palette.grey[800]}},...r==="outlined"&&{backgroundColor:"transparent",color:o.vars.palette.text.primary,border:`2px solid ${o.vars.palette.text.primary}`},...r==="soft"&&{color:o.vars.palette.text.secondary,border:`1px solid ${lighten(o.palette.grey[500],.32)}`},...r==="inverted"&&{color:o.vars.palette.grey[800],backgroundColor:o.vars.palette.grey[300]}}},a$1={...t!=="default"&&{...r==="filled"&&{color:o.vars.palette[t].contrastText,backgroundColor:o.vars.palette[t].main},...r==="outlined"&&{backgroundColor:"transparent",color:o.vars.palette[t].main,border:`2px solid ${o.vars.palette[t].main}`},...r==="soft"&&{color:o.vars.palette[t].dark,backgroundColor:lighten(o.palette[t].main,.84),[a.dark]:{color:o.vars.palette[t].light}},...r==="inverted"&&{color:o.vars.palette[t].darker,backgroundColor:o.vars.palette[t].lighter}}};return {height:24,minWidth:24,lineHeight:0,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",padding:o.spacing(0,.75),fontSize:o.typography.pxToRem(12),fontWeight:o.typography.fontWeightBold,borderRadius:o.shape.borderRadius*.75,transition:o.transitions.create("all",{duration:o.transitions.duration.shorter}),...e,...a$1}});var L=o=>o.charAt(0).toUpperCase()+o.slice(1),f=forwardRef(({children:o,color:t="default",variant:r="soft",startIcon:e,endIcon:a,sx:m,...b},g)=>{let y=useTheme(),p={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return jsxs(i,{ref:g,component:"span",className:l.root,ownerState:{color:t,variant:r},sx:{...e&&{pl:.75},...a&&{pr:.75},...m},theme:y,...b,children:[e&&jsx(d,{component:"span",className:l.icon,sx:{mr:.75,...p},children:e}),typeof o=="string"?L(o):o,a&&jsx(d,{component:"span",className:l.icon,sx:{ml:.75,...p},children:a})]})});f.displayName="Label";var H=f;
|
|
8
|
+
|
|
9
|
+
export { H as default };
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
LoadingScreen_default as default
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import i from '@mui/material/LinearProgress';
|
|
2
|
+
import t from '@mui/material/Box';
|
|
3
|
+
import { styled } from '@mui/material/styles';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var r=styled(t)({padding:"0 40px",width:"100%",minHeight:"100%",flexGrow:1,display:"flex",alignItems:"center",justifyContent:"center"});var n=()=>jsx(r,{children:jsx(i,{color:"primary",sx:{width:1,maxWidth:360}})}),s=n;
|
|
7
|
+
|
|
8
|
+
export { s as default };
|
|
@@ -1,55 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { forwardRef, useState } from "react";
|
|
3
|
-
import { IMaskMixin } from "react-imask";
|
|
4
|
-
import TextField from "@mui/material/TextField";
|
|
5
|
-
const MaskedStyledInput = IMaskMixin((props) => {
|
|
6
|
-
const {
|
|
7
|
-
inputRef,
|
|
8
|
-
"data-value": value,
|
|
9
|
-
defaultValue,
|
|
10
|
-
tabIndex,
|
|
11
|
-
...other
|
|
12
|
-
} = props;
|
|
13
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
-
TextField,
|
|
15
|
-
{
|
|
16
|
-
inputRef,
|
|
17
|
-
fullWidth: true,
|
|
18
|
-
...other,
|
|
19
|
-
inputProps: {
|
|
20
|
-
...other.inputProps,
|
|
21
|
-
tabIndex
|
|
22
|
-
},
|
|
23
|
-
value
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
});
|
|
27
|
-
const MaskedInput = forwardRef(
|
|
28
|
-
({ onChange, name, ...others }, ref) => {
|
|
29
|
-
const [maskedValue, setMaskedValue] = useState("");
|
|
30
|
-
return /* @__PURE__ */ jsx(
|
|
31
|
-
MaskedStyledInput,
|
|
32
|
-
{
|
|
33
|
-
inputRef: ref,
|
|
34
|
-
name,
|
|
35
|
-
"data-value": maskedValue,
|
|
36
|
-
...others,
|
|
37
|
-
onAccept: (v, mask) => {
|
|
38
|
-
setMaskedValue(v);
|
|
39
|
-
onChange({
|
|
40
|
-
target: {
|
|
41
|
-
name,
|
|
42
|
-
value: mask._unmaskedValue
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
MaskedInput.displayName = "MaskedInput";
|
|
51
|
-
var MaskedInput_default = MaskedInput;
|
|
52
|
-
export {
|
|
53
|
-
MaskedInput_default as default
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { a as default } from '../../chunk-QNAXGE5H.js';
|
|
@@ -1,24 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
...other
|
|
13
|
-
}) => {
|
|
14
|
-
return /* @__PURE__ */ jsx(MuiMenuItem, { ...other, disabled: disabled || loading, children: /* @__PURE__ */ jsxs(Stack, { direction: "row", color: "grey.600", alignItems: "center", children: [
|
|
15
|
-
icon && !loading && /* @__PURE__ */ jsx(Icon, { icon, color: "primary.main" }),
|
|
16
|
-
loading && /* @__PURE__ */ jsx(LoadingContainer, { children: /* @__PURE__ */ jsx(CircularProgress, { size: 20 }) }),
|
|
17
|
-
children
|
|
18
|
-
] }) });
|
|
19
|
-
};
|
|
20
|
-
var MenuItem_default = MenuItem;
|
|
21
|
-
export {
|
|
22
|
-
MenuItem_default as default
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { a } from '../../chunk-PMPALWRO.js';
|
|
2
|
+
import '../../chunk-3E5A45HM.js';
|
|
3
|
+
import f from '@mui/material/CircularProgress';
|
|
4
|
+
import s from '@mui/material/MenuItem';
|
|
5
|
+
import p from '@mui/material/Stack';
|
|
6
|
+
import { styled } from '@mui/material/styles';
|
|
7
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
var i=styled(p)({width:20,height:20,marginRight:16});var d=({icon:t,children:m,loading:o,disabled:n,...a$1})=>jsx(s,{...a$1,disabled:n||o,children:jsxs(p,{direction:"row",color:"grey.600",alignItems:"center",children:[t&&!o&&jsx(a,{icon:t,color:"primary.main"}),o&&jsx(i,{children:jsx(f,{size:20})}),m]})}),P=d;
|
|
10
|
+
|
|
11
|
+
export { P as default };
|
|
@@ -1,48 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import Popover from "@mui/material/Popover";
|
|
3
|
-
import getPosition from "./getPosition";
|
|
4
|
-
import { StyledArrow } from "./styles";
|
|
5
|
-
const MenuPopover = ({
|
|
6
|
-
open,
|
|
7
|
-
children,
|
|
8
|
-
arrow = "top-right",
|
|
9
|
-
disabledArrow,
|
|
10
|
-
sx,
|
|
11
|
-
...other
|
|
12
|
-
}) => {
|
|
13
|
-
const { style, anchorOrigin, transformOrigin } = getPosition(arrow);
|
|
14
|
-
return /* @__PURE__ */ jsxs(
|
|
15
|
-
Popover,
|
|
16
|
-
{
|
|
17
|
-
open: Boolean(open),
|
|
18
|
-
anchorEl: open,
|
|
19
|
-
anchorOrigin,
|
|
20
|
-
transformOrigin,
|
|
21
|
-
PaperProps: {
|
|
22
|
-
sx: {
|
|
23
|
-
p: 1,
|
|
24
|
-
width: "auto",
|
|
25
|
-
overflow: "inherit",
|
|
26
|
-
...style,
|
|
27
|
-
"& .MuiMenuItem-root": {
|
|
28
|
-
px: 1,
|
|
29
|
-
typography: "body2",
|
|
30
|
-
borderRadius: 0.75,
|
|
31
|
-
"& svg": { mr: 2, width: 20, height: 20, flexShrink: 0 }
|
|
32
|
-
},
|
|
33
|
-
...sx
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
...other,
|
|
37
|
-
children: [
|
|
38
|
-
!disabledArrow && /* @__PURE__ */ jsx(StyledArrow, { arrow }),
|
|
39
|
-
children
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
};
|
|
44
|
-
var MenuPopover_default = MenuPopover;
|
|
45
|
-
export {
|
|
46
|
-
MenuPopover_default as default
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { a as default } from '../../chunk-EFUFJKJD.js';
|
|
@@ -1,33 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import IconButton from "@mui/material/IconButton";
|
|
5
|
-
import Icon from "../Icon";
|
|
6
|
-
import Actions from "./Actions";
|
|
7
|
-
import { Content, Header } from "./styles";
|
|
8
|
-
const Modal = ({
|
|
9
|
-
actions,
|
|
10
|
-
actionsProps,
|
|
11
|
-
children,
|
|
12
|
-
dialogContentProps,
|
|
13
|
-
dialogTitle,
|
|
14
|
-
dialogTitleProps,
|
|
15
|
-
onClose,
|
|
16
|
-
id,
|
|
17
|
-
...other
|
|
18
|
-
}) => {
|
|
19
|
-
const MODAL_ACTIONS = id || "modal-actions";
|
|
20
|
-
return /* @__PURE__ */ jsxs(Dialog, { id, scroll: "body", ...other, onClose, children: [
|
|
21
|
-
/* @__PURE__ */ jsxs(Header, { children: [
|
|
22
|
-
dialogTitle && /* @__PURE__ */ jsx(DialogTitle, { variant: "subtitle1", ...dialogTitleProps, children: dialogTitle }),
|
|
23
|
-
/* @__PURE__ */ jsx(IconButton, { onClick: onClose, children: /* @__PURE__ */ jsx(Icon, { icon: "CLOSE_MARK_BUTTON" }) })
|
|
24
|
-
] }),
|
|
25
|
-
/* @__PURE__ */ jsx(Content, { ...dialogContentProps, children }),
|
|
26
|
-
actions && /* @__PURE__ */ jsx(Actions, { actionsProps: { ...actionsProps, id: MODAL_ACTIONS }, children: actions })
|
|
27
|
-
] });
|
|
28
|
-
};
|
|
29
|
-
var Modal_default = Modal;
|
|
30
|
-
export {
|
|
31
|
-
Modal_default as default
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { a as default } from '../../chunk-QHVL5QNM.js';
|
|
2
|
+
import '../../chunk-PMPALWRO.js';
|
|
3
|
+
import '../../chunk-3E5A45HM.js';
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var ModalActions_default = ModalActions;
|
|
8
|
-
export {
|
|
9
|
-
ModalActions_default as default
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { a } from '../../chunk-5YJTSVA2.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
var i=({children:r,id:t="modal-actions"})=>jsx(a,{container:t,children:r}),n=i;
|
|
5
|
+
|
|
6
|
+
export { n as default };
|