@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,88 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
if (options.serializer) {
|
|
10
|
-
return options.serializer(value);
|
|
11
|
-
}
|
|
12
|
-
return JSON.stringify(value);
|
|
13
|
-
},
|
|
14
|
-
[options]
|
|
15
|
-
);
|
|
16
|
-
const deserializer = useCallback(
|
|
17
|
-
(value) => {
|
|
18
|
-
if (options.deserializer) {
|
|
19
|
-
return options.deserializer(value);
|
|
20
|
-
}
|
|
21
|
-
if (value === "undefined") {
|
|
22
|
-
return void 0;
|
|
23
|
-
}
|
|
24
|
-
const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;
|
|
25
|
-
let parsed;
|
|
26
|
-
try {
|
|
27
|
-
parsed = JSON.parse(value);
|
|
28
|
-
} catch (error) {
|
|
29
|
-
return defaultValue;
|
|
30
|
-
}
|
|
31
|
-
return parsed;
|
|
32
|
-
},
|
|
33
|
-
[options, initialValue]
|
|
34
|
-
);
|
|
35
|
-
const readValue = useCallback(() => {
|
|
36
|
-
const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;
|
|
37
|
-
if (IS_SERVER) {
|
|
38
|
-
return initialValueToUse;
|
|
39
|
-
}
|
|
40
|
-
try {
|
|
41
|
-
const raw = window.localStorage.getItem(key);
|
|
42
|
-
return raw ? deserializer(raw) : initialValueToUse;
|
|
43
|
-
} catch (error) {
|
|
44
|
-
return initialValueToUse;
|
|
45
|
-
}
|
|
46
|
-
}, [initialValue, key, deserializer]);
|
|
47
|
-
const [storedValue, setStoredValue] = useState(() => {
|
|
48
|
-
if (initializeWithValue) {
|
|
49
|
-
return readValue();
|
|
50
|
-
}
|
|
51
|
-
return initialValue instanceof Function ? initialValue() : initialValue;
|
|
52
|
-
});
|
|
53
|
-
const setValue = useEventCallback((value) => {
|
|
54
|
-
try {
|
|
55
|
-
const newValue = value instanceof Function ? value(readValue()) : value;
|
|
56
|
-
window.localStorage.setItem(key, serializer(newValue));
|
|
57
|
-
setStoredValue(newValue);
|
|
58
|
-
window.dispatchEvent(new StorageEvent("local-storage", { key }));
|
|
59
|
-
} catch {
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
const removeValue = useEventCallback(() => {
|
|
63
|
-
const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;
|
|
64
|
-
window.localStorage.removeItem(key);
|
|
65
|
-
setStoredValue(defaultValue);
|
|
66
|
-
window.dispatchEvent(new StorageEvent("local-storage", { key }));
|
|
67
|
-
});
|
|
68
|
-
useEffect(() => {
|
|
69
|
-
setStoredValue(readValue());
|
|
70
|
-
}, [key]);
|
|
71
|
-
const handleStorageChange = useCallback(
|
|
72
|
-
(event) => {
|
|
73
|
-
if (event.key && event.key !== key) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
setStoredValue(readValue());
|
|
77
|
-
},
|
|
78
|
-
[key, readValue]
|
|
79
|
-
);
|
|
80
|
-
useEventListener("storage", handleStorageChange);
|
|
81
|
-
useEventListener("local-storage", handleStorageChange);
|
|
82
|
-
return [storedValue, setValue, removeValue];
|
|
83
|
-
};
|
|
84
|
-
var useLocalStorage_default = useLocalStorage;
|
|
85
|
-
export {
|
|
86
|
-
useLocalStorage_default as default
|
|
87
|
-
};
|
|
88
|
-
//# sourceMappingURL=useLocalStorage.js.map
|
|
1
|
+
import { a } from '../chunk-Z2TDWMRU.js';
|
|
2
|
+
import '../chunk-3APKMSVD.js';
|
|
3
|
+
import { a as a$1 } from '../chunk-4INDXVIX.js';
|
|
4
|
+
import { useCallback, useState, useEffect } from 'react';
|
|
5
|
+
|
|
6
|
+
var h=typeof window>"u",p=(r,t,o={})=>{let{initializeWithValue:l=!0}=o,S=useCallback(e=>o.serializer?o.serializer(e):JSON.stringify(e),[o]),d=useCallback(e=>{if(o.deserializer)return o.deserializer(e);if(e==="undefined")return;let n=t instanceof Function?t():t,g;try{g=JSON.parse(e);}catch{return n}return g},[o,t]),a$2=useCallback(()=>{let e=t instanceof Function?t():t;if(h)return e;try{let n=window.localStorage.getItem(r);return n?d(n):e}catch{return e}},[t,r,d]),[w,s]=useState(()=>l?a$2():t instanceof Function?t():t),T=a(e=>{try{let n=e instanceof Function?e(a$2()):e;window.localStorage.setItem(r,S(n)),s(n),window.dispatchEvent(new StorageEvent("local-storage",{key:r}));}catch{}}),m=a(()=>{let e=t instanceof Function?t():t;window.localStorage.removeItem(r),s(e),window.dispatchEvent(new StorageEvent("local-storage",{key:r}));});useEffect(()=>{s(a$2());},[r]);let f=useCallback(e=>{e.key&&e.key!==r||s(a$2());},[r,a$2]);return a$1("storage",f),a$1("local-storage",f),[w,T,m]},I=p;
|
|
7
|
+
|
|
8
|
+
export { I as default };
|
package/dist/hooks/useMount.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { useEffect } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
useMount_default as default
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=useMount.js.map
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
var e=o=>{useEffect(o,[]);},u=e;
|
|
4
|
+
|
|
5
|
+
export { u as default };
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return;
|
|
7
|
-
}
|
|
8
|
-
handler(event);
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var useOnClickOutside_default = useOnClickOutside;
|
|
12
|
-
export {
|
|
13
|
-
useOnClickOutside_default as default
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=useOnClickOutside.js.map
|
|
1
|
+
import { a } from '../chunk-4INDXVIX.js';
|
|
2
|
+
|
|
3
|
+
var u=(o,r,s="mousedown")=>{a(s,e=>{let t=o?.current;!t||t.contains(e.target)||r(e);});},m=u;
|
|
4
|
+
|
|
5
|
+
export { m as default };
|
|
@@ -1,40 +1,5 @@
|
|
|
1
|
-
import { useState } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const [currentPage, setCurrentPage] = useState(1);
|
|
7
|
-
const totalPages = Math.ceil(items.length / itemsPerPage);
|
|
8
|
-
const currentItems = items.slice(
|
|
9
|
-
(currentPage - 1) * itemsPerPage,
|
|
10
|
-
currentPage * itemsPerPage
|
|
11
|
-
);
|
|
12
|
-
const goToPage = (page) => {
|
|
13
|
-
if (page > 0 && page <= totalPages) {
|
|
14
|
-
setCurrentPage(page);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
const nextPage = () => {
|
|
18
|
-
if (currentPage < totalPages) {
|
|
19
|
-
setCurrentPage((prevPage2) => prevPage2 + 1);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
const prevPage = () => {
|
|
23
|
-
if (currentPage > 1) {
|
|
24
|
-
setCurrentPage((prevPage2) => prevPage2 - 1);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
return {
|
|
28
|
-
currentPage,
|
|
29
|
-
totalPages,
|
|
30
|
-
currentItems,
|
|
31
|
-
goToPage,
|
|
32
|
-
nextPage,
|
|
33
|
-
prevPage
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
var usePagination_default = usePagination;
|
|
37
|
-
export {
|
|
38
|
-
usePagination_default as default
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=usePagination.js.map
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
|
|
3
|
+
function s({items:r,itemsPerPage:n}){let[t,a]=useState(1),o=Math.ceil(r.length/n),g=r.slice((t-1)*n,t*n);return {currentPage:t,totalPages:o,currentItems:g,goToPage:e=>{e>0&&e<=o&&a(e);},nextPage:()=>{t<o&&a(e=>e+1);},prevPage:()=>{t>1&&a(e=>e-1);}}}var f=s;
|
|
4
|
+
|
|
5
|
+
export { f as default };
|
package/dist/hooks/usePopover.js
CHANGED
|
@@ -1,24 +1 @@
|
|
|
1
|
-
|
|
2
|
-
useCallback,
|
|
3
|
-
useState
|
|
4
|
-
} from "react";
|
|
5
|
-
const usePopover = () => {
|
|
6
|
-
const [open, setOpen] = useState(null);
|
|
7
|
-
const onOpen = useCallback((event) => {
|
|
8
|
-
setOpen(event.currentTarget);
|
|
9
|
-
}, []);
|
|
10
|
-
const onClose = useCallback(() => {
|
|
11
|
-
setOpen(null);
|
|
12
|
-
}, []);
|
|
13
|
-
return {
|
|
14
|
-
open,
|
|
15
|
-
onOpen,
|
|
16
|
-
onClose,
|
|
17
|
-
setOpen
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
var usePopover_default = usePopover;
|
|
21
|
-
export {
|
|
22
|
-
usePopover_default as default
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=usePopover.js.map
|
|
1
|
+
export { a as default } from '../chunk-ORYAES3Q.js';
|
|
@@ -1,35 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import useMediaQuery from "@mui/material/useMediaQuery";
|
|
3
|
-
const useResponsive = (query, start, end) => {
|
|
4
|
-
const theme = useTheme();
|
|
5
|
-
const mediaUp = useMediaQuery(theme.breakpoints.up(start));
|
|
6
|
-
const mediaDown = useMediaQuery(theme.breakpoints.down(start));
|
|
7
|
-
const mediaBetween = useMediaQuery(
|
|
8
|
-
theme.breakpoints.between(start, end)
|
|
9
|
-
);
|
|
10
|
-
const mediaOnly = useMediaQuery(theme.breakpoints.only(start));
|
|
11
|
-
if (query === "up") {
|
|
12
|
-
return mediaUp;
|
|
13
|
-
}
|
|
14
|
-
if (query === "down") {
|
|
15
|
-
return mediaDown;
|
|
16
|
-
}
|
|
17
|
-
if (query === "between") {
|
|
18
|
-
return mediaBetween;
|
|
19
|
-
}
|
|
20
|
-
return mediaOnly;
|
|
21
|
-
};
|
|
22
|
-
function useWidth() {
|
|
23
|
-
const theme = useTheme();
|
|
24
|
-
const keys = [...theme.breakpoints.keys].reverse();
|
|
25
|
-
return keys.reduce((output, key) => {
|
|
26
|
-
const matches = useMediaQuery(theme.breakpoints.up(key));
|
|
27
|
-
return !output && matches ? key : output;
|
|
28
|
-
}, null) || "xs";
|
|
29
|
-
}
|
|
30
|
-
var useResponsive_default = useResponsive;
|
|
31
|
-
export {
|
|
32
|
-
useResponsive_default as default,
|
|
33
|
-
useWidth
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=useResponsive.js.map
|
|
1
|
+
export { b as default, a as useWidth } from '../chunk-ILHUUK4X.js';
|
|
@@ -1,32 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const handleScrollChange = useCallback(
|
|
8
|
-
(val) => {
|
|
9
|
-
const scrollHeight = Math.round(val);
|
|
10
|
-
if (elementRef?.current) {
|
|
11
|
-
const rect = elementRef.current.getBoundingClientRect();
|
|
12
|
-
const elementTop = Math.round(rect.top);
|
|
13
|
-
setOffsetTop(elementTop < top);
|
|
14
|
-
} else {
|
|
15
|
-
setOffsetTop(scrollHeight > top);
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
[elementRef, top]
|
|
19
|
-
);
|
|
20
|
-
useMotionValueEvent(
|
|
21
|
-
scrollY,
|
|
22
|
-
"change",
|
|
23
|
-
useMemo(() => handleScrollChange, [handleScrollChange])
|
|
24
|
-
);
|
|
25
|
-
const memoizedValue = useMemo(() => ({ elementRef, offsetTop }), [offsetTop]);
|
|
26
|
-
return memoizedValue;
|
|
27
|
-
};
|
|
28
|
-
var useScrollOffSetTop_default = useScrollOffSetTop;
|
|
29
|
-
export {
|
|
30
|
-
useScrollOffSetTop_default as default
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=useScrollOffSetTop.js.map
|
|
1
|
+
import { useRef, useState, useCallback, useMemo } from 'react';
|
|
2
|
+
import { useScroll, useMotionValueEvent } from 'framer-motion';
|
|
3
|
+
|
|
4
|
+
var R=(t=0)=>{let e=useRef(null),{scrollY:r}=useScroll(),[o,l]=useState(!1),n=useCallback(c=>{let f=Math.round(c);if(e?.current){let u=e.current.getBoundingClientRect(),a=Math.round(u.top);l(a<t);}else l(f>t);},[e,t]);return useMotionValueEvent(r,"change",useMemo(()=>n,[n])),useMemo(()=>({elementRef:e,offsetTop:o}),[o])},g=R;
|
|
5
|
+
|
|
6
|
+
export { g as default };
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const useSnackbar = () => {
|
|
3
|
-
const success = (message, data) => toast.success(message, data);
|
|
4
|
-
const error = (message, data) => toast.error(message, data);
|
|
5
|
-
const warning = (message, data) => toast.warning(message, data);
|
|
6
|
-
const info = (message, data) => toast.info(message, data);
|
|
7
|
-
return { success, error, warning, info };
|
|
8
|
-
};
|
|
9
|
-
var useSnackbar_default = useSnackbar;
|
|
10
|
-
export {
|
|
11
|
-
useSnackbar_default as default
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=useSnackbar.js.map
|
|
1
|
+
export { a as default } from '../chunk-KFZEM7KS.js';
|
package/dist/hooks/useTabs.js
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import { useState } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
onChangeTab: (_, newValue) => {
|
|
7
|
-
setCurrentTab(newValue);
|
|
8
|
-
},
|
|
9
|
-
setCurrentTab
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
var useTabs_default = useTabs;
|
|
13
|
-
export {
|
|
14
|
-
useTabs_default as default
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=useTabs.js.map
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
|
|
3
|
+
var s=(e="")=>{let[n,t]=useState(e);return {currentTab:n,onChangeTab:(u,r)=>{t(r);},setCurrentTab:t}},b=s;
|
|
4
|
+
|
|
5
|
+
export { b as default };
|
package/dist/hooks/useToggle.js
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const useToggle = (initialState = false) => {
|
|
3
|
-
const [state, setState] = useState(initialState);
|
|
4
|
-
const toggle = useCallback(() => setState((currentState) => !currentState), []);
|
|
5
|
-
return [state, toggle, setState];
|
|
6
|
-
};
|
|
7
|
-
var useToggle_default = useToggle;
|
|
8
|
-
export {
|
|
9
|
-
useToggle_default as default
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=useToggle.js.map
|
|
1
|
+
export { a as default } from '../chunk-W3MYAMTH.js';
|
package/dist/hooks/useUpload.js
CHANGED
|
@@ -1,57 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { useFormContext } from "react-hook-form";
|
|
3
|
-
function useUpload(fieldName, urlImage) {
|
|
4
|
-
const { watch, setValue } = useFormContext();
|
|
5
|
-
const [fileValue, setFileValue] = useState(
|
|
6
|
-
urlImage
|
|
7
|
-
);
|
|
8
|
-
const filesValues = watch(fieldName) || [];
|
|
9
|
-
const uploadFile = async (file) => {
|
|
10
|
-
if (!file) {
|
|
11
|
-
setValue(fieldName, void 0);
|
|
12
|
-
setFileValue(void 0);
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
setValue(fieldName, file);
|
|
16
|
-
setFileValue(
|
|
17
|
-
Object.assign(file, {
|
|
18
|
-
preview: URL.createObjectURL(file)
|
|
19
|
-
})
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
const uploadFiles = async (files) => {
|
|
23
|
-
setValue(fieldName, [
|
|
24
|
-
...filesValues,
|
|
25
|
-
...files.map(
|
|
26
|
-
(file) => Object.assign(file, {
|
|
27
|
-
preview: URL.createObjectURL(file)
|
|
28
|
-
})
|
|
29
|
-
)
|
|
30
|
-
]);
|
|
31
|
-
};
|
|
32
|
-
const handleDeleteFile = () => {
|
|
33
|
-
setValue(fieldName, void 0);
|
|
34
|
-
setFileValue(void 0);
|
|
35
|
-
};
|
|
36
|
-
const handleRemoveAll = () => {
|
|
37
|
-
setValue(fieldName, void 0);
|
|
38
|
-
};
|
|
39
|
-
const handleRemove = (file) => {
|
|
40
|
-
const filteredItems = filesValues.filter((f) => f !== file);
|
|
41
|
-
setValue(fieldName, filteredItems);
|
|
42
|
-
};
|
|
43
|
-
return {
|
|
44
|
-
uploadFile,
|
|
45
|
-
uploadFiles,
|
|
46
|
-
handleDeleteFile,
|
|
47
|
-
handleRemoveAll,
|
|
48
|
-
handleRemove,
|
|
49
|
-
file: fileValue,
|
|
50
|
-
setFileValue
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
var useUpload_default = useUpload;
|
|
54
|
-
export {
|
|
55
|
-
useUpload_default as default
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=useUpload.js.map
|
|
1
|
+
export { a as default } from '../chunk-GA4A5P3S.js';
|
|
@@ -1,79 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import useToggle from "./useToggle";
|
|
4
|
-
const FIVE_MB = 5242880;
|
|
5
|
-
const useUploadImage = ({
|
|
6
|
-
onFileCropped,
|
|
7
|
-
onImageUploaded,
|
|
8
|
-
onCancel
|
|
9
|
-
}) => {
|
|
10
|
-
const id = useId();
|
|
11
|
-
const [cropper, setCropper] = useState();
|
|
12
|
-
const [cropModalOpen, toggleCropModalOpen, setCropModalOpen] = useToggle();
|
|
13
|
-
const [preview, setPreview] = useState();
|
|
14
|
-
const [saving, setSaving] = useState(false);
|
|
15
|
-
const cancelChanges = () => {
|
|
16
|
-
if (onCancel)
|
|
17
|
-
onCancel();
|
|
18
|
-
setCropModalOpen(false);
|
|
19
|
-
};
|
|
20
|
-
const previewImage = () => {
|
|
21
|
-
if (cropper === void 0)
|
|
22
|
-
return;
|
|
23
|
-
setPreview(cropper.getCroppedCanvas().toDataURL());
|
|
24
|
-
};
|
|
25
|
-
const closePreviewImage = () => setPreview(void 0);
|
|
26
|
-
const saveChanges = () => {
|
|
27
|
-
if (cropper === void 0)
|
|
28
|
-
return;
|
|
29
|
-
cropper.getCroppedCanvas().toBlob(
|
|
30
|
-
async (blob) => {
|
|
31
|
-
try {
|
|
32
|
-
if (!blob)
|
|
33
|
-
return;
|
|
34
|
-
setSaving(true);
|
|
35
|
-
const file = new File([blob], "imagem.png", { type: "image/png" });
|
|
36
|
-
console.log({ file });
|
|
37
|
-
if (file.size > FIVE_MB) {
|
|
38
|
-
const compressedFile = await imageCompression(file, {
|
|
39
|
-
maxSizeMB: 5
|
|
40
|
-
});
|
|
41
|
-
onFileCropped(compressedFile);
|
|
42
|
-
toggleCropModalOpen();
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
onFileCropped(file);
|
|
46
|
-
toggleCropModalOpen();
|
|
47
|
-
} finally {
|
|
48
|
-
setSaving(false);
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"image/png",
|
|
52
|
-
1
|
|
53
|
-
);
|
|
54
|
-
};
|
|
55
|
-
const handleRemove = () => {
|
|
56
|
-
onFileCropped(void 0);
|
|
57
|
-
onImageUploaded(void 0);
|
|
58
|
-
setCropModalOpen(false);
|
|
59
|
-
};
|
|
60
|
-
return {
|
|
61
|
-
id,
|
|
62
|
-
setCropModalOpen,
|
|
63
|
-
handleRemove,
|
|
64
|
-
toggleCropModalOpen,
|
|
65
|
-
cropModalOpen,
|
|
66
|
-
cancelChanges,
|
|
67
|
-
saveChanges,
|
|
68
|
-
previewImage,
|
|
69
|
-
setCropper,
|
|
70
|
-
preview,
|
|
71
|
-
closePreviewImage,
|
|
72
|
-
saving
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
var useUploadImage_default = useUploadImage;
|
|
76
|
-
export {
|
|
77
|
-
useUploadImage_default as default
|
|
78
|
-
};
|
|
79
|
-
//# sourceMappingURL=useUploadImage.js.map
|
|
1
|
+
export { a as default } from '../chunk-M6QHAL4V.js';
|
|
2
|
+
import '../chunk-W3MYAMTH.js';
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
.yarl__fullsize{height:100%;width:100%}.yarl__relative{position:relative}.yarl__portal{inset:0;opacity:0;overflow:hidden;position:fixed;transition:opacity var(--yarl__fade_animation_duration,.25s) var(--yarl__fade_animation_timing_function,ease);z-index:var(--yarl__portal_zindex,9999)}.yarl__portal_open{opacity:1}.yarl__container{background-color:var(--yarl__container_background_color,var(--yarl__color_backdrop,#000));inset:0;outline:none;overflow:hidden;overscroll-behavior:var(--yarl__controller_overscroll_behavior,contain);position:absolute;touch-action:var(--yarl__controller_touch_action,none);-webkit-user-select:none;-moz-user-select:none;user-select:none}.yarl__carousel{align-content:center;align-items:stretch;display:flex;flex:0 0 auto;height:100%;justify-content:center;opacity:var(--yarl__pull_opacity,1);transform:translate(var(--yarl__swipe_offset,0),var(--yarl__pull_offset,0));width:calc(100% + (var(--yarl__carousel_slides_count) - 1)*(100% + var(--yarl__carousel_spacing_px, 0)*1px + var(--yarl__carousel_spacing_percent, 0)*1%))}.yarl__carousel_with_slides{-moz-column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%);column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%)}.yarl__flex_center{align-content:center;align-items:center;display:flex;justify-content:center}.yarl__slide{flex:1;overflow:hidden;padding:calc(var(--yarl__carousel_padding_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_padding_percent, 0)*1%);position:relative}[dir=rtl] .yarl__slide{--yarl__direction:-1}.yarl__slide_image{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;touch-action:var(--yarl__controller_touch_action,none);-moz-user-select:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.yarl__slide_image_cover{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.yarl__slide_image_loading{opacity:0}@media screen and (min-width:800px){.yarl__slide_wrapper:not(.yarl__slide_wrapper_interactive) .yarl__slide_image{-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);-webkit-transform-style:preserve-3d}}.yarl__slide_placeholder{left:50%;line-height:0;position:absolute;top:50%;transform:translate(-50%) translateY(-50%)}.yarl__slide_loading{animation:yarl__delayed_fadein 1s linear;color:var(--yarl__slide_icon_loading_color,var(--yarl__color_button,hsla(0,0%,100%,.8)))}.yarl__slide_loading line{animation:yarl__stroke_opacity 1s linear infinite}.yarl__slide_loading line:first-of-type{animation-delay:-1.875s}.yarl__slide_loading line:nth-of-type(2){animation-delay:-1.75s}.yarl__slide_loading line:nth-of-type(3){animation-delay:-1.625s}.yarl__slide_loading line:nth-of-type(4){animation-delay:-1.5s}.yarl__slide_loading line:nth-of-type(5){animation-delay:-1.375s}.yarl__slide_loading line:nth-of-type(6){animation-delay:-1.25s}.yarl__slide_loading line:nth-of-type(7){animation-delay:-1.125s}.yarl__slide_loading line:nth-of-type(8){animation-delay:-1s}.yarl__slide_error{color:var(--yarl__slide_icon_error_color,red);height:var(--yarl__slide_icon_error_size,48px);width:var(--yarl__slide_icon_error_size,48px)}@media (prefers-reduced-motion){.yarl__portal,.yarl__slide{transition:unset}.yarl__slide_loading,.yarl__slide_loading line{animation:unset}}.yarl__toolbar{display:flex;justify-content:flex-end;inset:0 0 auto auto;padding:var(--yarl__toolbar_padding,8px);position:absolute}[dir=rtl] .yarl__toolbar{inset:0 auto auto 0}.yarl__icon{height:var(--yarl__icon_size,32px);width:var(--yarl__icon_size,32px)}.yarl__button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--yarl__button_background_color,transparent);border:var(--yarl__button_border,0);color:var(--yarl__color_button,hsla(0,0%,100%,.8));cursor:pointer;filter:var(--yarl__button_filter,drop-shadow(2px 2px 2px rgba(0,0,0,.8)));line-height:0;margin:var(--yarl__button_margin,0);outline:none;padding:var(--yarl__button_padding,8px);-webkit-tap-highlight-color:transparent}.yarl__button:focus{color:var(--yarl__color_button_active,#fff)}.yarl__button:focus:not(:focus-visible){color:var(--yarl__color_button,hsla(0,0%,100%,.8))}.yarl__button:focus-visible{color:var(--yarl__color_button_active,#fff)}@media (hover:hover){.yarl__button:focus-visible:hover,.yarl__button:focus:hover,.yarl__button:hover{color:var(--yarl__color_button_active,#fff)}}.yarl__button:disabled{color:var(--yarl__color_button_disabled,hsla(0,0%,100%,.4));cursor:default}.yarl__navigation_next,.yarl__navigation_prev{padding:var(--yarl__navigation_button_padding,24px 16px);position:absolute;top:50%;transform:translateY(-50%)}.yarl__navigation_prev{left:0}[dir=rtl] .yarl__navigation_prev{left:unset;right:0;transform:translateY(-50%) rotate(180deg)}.yarl__navigation_next{right:0}[dir=rtl] .yarl__navigation_next{left:0;right:unset;transform:translateY(-50%) rotate(180deg)}.yarl__no_scroll{height:100%;overflow:hidden;overscroll-behavior:none}@keyframes yarl__delayed_fadein{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes yarl__stroke_opacity{0%{stroke-opacity:1}to{stroke-opacity:.125}}.yarl__slide_captions_container{background:var(--yarl__slide_captions_container_background,rgba(0,0,0,.5));left:var(--yarl__slide_captions_container_left,0);padding:var(--yarl__slide_captions_container_padding,16px);position:absolute;right:var(--yarl__slide_captions_container_right,0);-webkit-transform:translateZ(0)}.yarl__slide_title{color:var(--yarl__slide_title_color,#fff);font-size:var(--yarl__slide_title_font_size,125%);font-weight:var(--yarl__slide_title_font_weight,bolder);max-width:calc(100% - var(--yarl__toolbar_width, 0px));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yarl__slide_title_container{top:var(--yarl__slide_title_container_top,0)}.yarl__slide_description{display:-webkit-box;-webkit-hyphens:auto;hyphens:auto;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:var(--yarl__slide_description_max_lines,3);color:var(--yarl__slide_description_color,#fff);text-align:var(--yarl__slide_description_text_align,start)}.yarl__slide_description_container{bottom:var(--yarl__slide_description_container_bottom,0)}.yarl__thumbnails{display:flex;height:100%}.yarl__thumbnails_bottom,.yarl__thumbnails_end .yarl__thumbnails_track,.yarl__thumbnails_start .yarl__thumbnails_track,.yarl__thumbnails_top{flex-direction:column}.yarl__thumbnails_wrapper{flex:1;position:relative}.yarl__thumbnails_container{background-color:var(--yarl__thumbnails_container_background_color,var(--yarl__color_backdrop,#000));flex:0 0 auto;overflow:hidden;padding:var(--yarl__thumbnails_container_padding,16px);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-touch-callout:none}.yarl__thumbnails_vignette{pointer-events:none;position:absolute;--yarl__thumbnails_vignette_size:12%}@media (min-width:1200px){.yarl__thumbnails_vignette{--yarl__thumbnails_vignette_size:8%}}@media (min-width:2000px){.yarl__thumbnails_vignette{--yarl__thumbnails_vignette_size:5%}}.yarl__thumbnails_bottom .yarl__thumbnails_vignette,.yarl__thumbnails_top .yarl__thumbnails_vignette{background:linear-gradient(to right,var(--yarl__color_backdrop,#000) 0,transparent var(--yarl__thumbnails_vignette_size,12%) calc(100% - var(--yarl__thumbnails_vignette_size, 12%)),var(--yarl__color_backdrop,#000) 100%);height:100%;left:0;right:0}.yarl__thumbnails_end .yarl__thumbnails_vignette,.yarl__thumbnails_start .yarl__thumbnails_vignette{background:linear-gradient(to bottom,var(--yarl__color_backdrop,#000) 0,transparent var(--yarl__thumbnails_vignette_size,12%) calc(100% - var(--yarl__thumbnails_vignette_size, 12%)),var(--yarl__color_backdrop,#000) 100%);bottom:0;top:0;width:100%}.yarl__thumbnails_track{gap:var(--yarl__thumbnails_thumbnail_gap,16px);outline:none}.yarl__thumbnails_thumbnail{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--yarl__thumbnails_thumbnail_background,#000);border-color:var(--yarl__thumbnails_thumbnail_border_color,var(--yarl__color_button,hsla(0,0%,100%,.8)));border-radius:var(--yarl__thumbnails_thumbnail_border_radius,4px);border-style:var(--yarl__thumbnails_thumbnail_border_style,solid);border-width:var(--yarl__thumbnails_thumbnail_border,1px);cursor:pointer;flex:0 0 auto;-webkit-tap-highlight-color:transparent;box-sizing:content-box;height:var(--yarl__thumbnails_thumbnail_height,80px);outline:none;overflow:hidden;padding:var(--yarl__thumbnails_thumbnail_padding,4px);position:relative;width:var(--yarl__thumbnails_thumbnail_width,120px)}.yarl__thumbnails_thumbnail_active{border-color:var(--yarl__thumbnails_thumbnail_active_border_color,var(--yarl__color_button_active,#fff))}.yarl__thumbnails_thumbnail_fadein{animation:yarl__thumbnails_thumbnail_fadein var(--yarl__thumbnails_thumbnail_fadein_duration,.5s) ease-in-out var(--yarl__thumbnails_thumbnail_fadein_delay,0s) forwards;opacity:0}.yarl__thumbnails_thumbnail_fadeout{animation:yarl__thumbnails_thumbnail_fadeout var(--yarl__thumbnails_thumbnail_fadeout_duration,.5s) ease-in-out var(--yarl__thumbnails_thumbnail_fadeout_delay,0s) forwards;cursor:unset}.yarl__thumbnails_thumbnail_placeholder{cursor:unset;visibility:hidden}.yarl__thumbnails_thumbnail:focus{box-shadow:var(--yarl__thumbnails_thumbnail_focus_box_shadow,#000 0 0 0 2px,var(--yarl__color_button,hsla(0,0%,100%,.8)) 0 0 0 4px)}.yarl__thumbnails_thumbnail:focus:not(:focus-visible){box-shadow:unset}.yarl__thumbnails_thumbnail:focus-visible{box-shadow:var(--yarl__thumbnails_thumbnail_focus_box_shadow,#000 0 0 0 2px,var(--yarl__color_button,hsla(0,0%,100%,.8)) 0 0 0 4px)}.yarl__thumbnails_thumbnail_icon{color:var(--yarl__thumbnails_thumbnail_icon_color,var(--yarl__color_button,hsla(0,0%,100%,.8)));filter:var(--yarl__thumbnails_thumbnail_icon_filter,drop-shadow(2px 2px 2px rgba(0,0,0,.8)));height:var(--yarl__thumbnails_thumbnail_icon_size,32px);left:50%;position:absolute;top:50%;transform:translate(-50%) translateY(-50%);width:var(--yarl__thumbnails_thumbnail_icon_size,32px)}@keyframes yarl__thumbnails_thumbnail_fadein{0%{opacity:0}to{opacity:1}}@keyframes yarl__thumbnails_thumbnail_fadeout{0%{opacity:1}to{opacity:0}}.yarl__root{--yarl__thumbnails_thumbnail_padding: 0;--yarl__thumbnails_thumbnail_border: transparent;--yarl__color_backdrop: rgba(var(--palette-grey-900Channel) / .9);--yarl__slide_captions_container_background: rgba(var(--palette-common-blackChannel) / .32)}.yarl__slide_title{font-size:20px;font-weight:600}.yarl__slide_description{font-size:14px}.yarl__button{filter:unset}.yarl__thumbnails_thumbnail{opacity:.48;border-radius:10px;border-color:transparent}.yarl__thumbnails_thumbnail_active{opacity:1;border-color:var(--palette-primary-main)}.yarl__thumbnails_vignette{--yarl__thumbnails_vignette_size: 0}.yarl__video_container{background:var(--palette-common-black)}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;inset:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;inset:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{inset:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{inset:0 auto 0 0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}.simplebar-scrollbar:before{background-color:#919eab}.simplebar-scrollbar.simplebar-visible:before{opacity:.48}.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cropper-container img{backface-visibility:hidden;display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{inset:0;position:absolute}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:calc(100% / 3);left:0;top:calc(100% / 3);width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:calc(100% / 3);top:0;width:calc(100% / 3)}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:before,.cropper-center:after{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width: 768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width: 992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width: 1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}html{height:100%;-webkit-overflow-scrolling:touch}body,#root,#root__layout{display:flex;flex:1 1 auto;min-height:100%;flex-direction:column}img{max-width:100%;vertical-align:middle}ul{margin:0;padding:0;list-style-type:none}input[type=number]{-moz-appearance:textfield;-webkit-appearance:none;appearance:none}input[type=number]::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}input[type=number]::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}#snackbar-container-provider section+section{display:none}
|
|
2
|
+
/*!
|
|
3
|
+
* Cropper.js v1.6.2
|
|
4
|
+
* https://fengyuanchen.github.io/cropperjs
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2015-present Chen Fengyuan
|
|
7
|
+
* Released under the MIT license
|
|
8
|
+
*
|
|
9
|
+
* Date: 2024-04-21T07:43:02.731Z
|
|
10
|
+
*/
|
package/dist/index.js
CHANGED
|
@@ -1,39 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
enUS as enUSDataGrid,
|
|
4
|
-
ptBR as ptBRDataGrid
|
|
5
|
-
} from "@mui/x-data-grid/locales";
|
|
6
|
-
import {
|
|
7
|
-
enUS as enUSDate,
|
|
8
|
-
ptBR as ptBRDate
|
|
9
|
-
} from "@mui/x-date-pickers-pro/locales";
|
|
10
|
-
const allLangs = [
|
|
11
|
-
{
|
|
12
|
-
value: "en",
|
|
13
|
-
label: "English",
|
|
14
|
-
countryCode: "GB",
|
|
15
|
-
adapterLocale: "en",
|
|
16
|
-
numberFormat: { code: "en-US", currency: "USD" },
|
|
17
|
-
systemValue: {
|
|
18
|
-
components: { ...enUSDate.components, ...enUSDataGrid.components }
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
value: "br",
|
|
23
|
-
label: "Portug\xEAs",
|
|
24
|
-
countryCode: "BR",
|
|
25
|
-
adapterLocale: "br",
|
|
26
|
-
numberFormat: { code: "pt-Br", currency: "R$" },
|
|
27
|
-
systemValue: {
|
|
28
|
-
components: {
|
|
29
|
-
...ptBRCore.components,
|
|
30
|
-
...ptBRDate.components,
|
|
31
|
-
...ptBRDataGrid.components
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
];
|
|
36
|
-
export {
|
|
37
|
-
allLangs
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=all-langs.js.map
|
|
1
|
+
export { a as allLangs } from '../chunk-WKD3OXUA.js';
|
package/dist/theme/core/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
export * from "./shadows";
|
|
5
|
-
export * from "./typography";
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from '../../chunk-GOC7PC2S.js';
|
|
2
|
+
export { m as action, k as background, l as baseAction, n as basePalette, q as colorSchemes, i as common, a as components, r as createShadowColor, s as customShadows, p as darkPalette, h as error, b as grey, e as info, o as lightPalette, c as primary, d as secondary, f as success, j as text, g as warning } from '../../chunk-CFYNJQGN.js';
|
|
3
|
+
import '../../chunk-D27ND54J.js';
|
|
@@ -443,7 +443,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
443
443
|
wordWrap?: csstype.Property.WordWrap | readonly NonNullable<csstype.Property.WordWrap | undefined>[] | readonly csstype.Property.WordWrap[] | undefined;
|
|
444
444
|
writingMode?: csstype.Property.WritingMode | readonly NonNullable<csstype.Property.WritingMode | undefined>[] | readonly csstype.Property.WritingMode[] | undefined;
|
|
445
445
|
zIndex?: csstype.Property.ZIndex | readonly NonNullable<csstype.Property.ZIndex | undefined>[] | readonly ((string & {}) | csstype.Globals | "auto")[] | undefined;
|
|
446
|
-
zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly (
|
|
446
|
+
zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reset")[] | undefined;
|
|
447
447
|
all?: csstype.Globals | readonly NonNullable<csstype.Globals | undefined>[] | readonly csstype.Globals[] | undefined;
|
|
448
448
|
animation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reverse" | "linear" | "none" | "auto" | "both" | "alternate" | "alternate-reverse" | "backwards" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start")[] | undefined;
|
|
449
449
|
animationRange?: csstype.Property.AnimationRange<string | number> | readonly NonNullable<csstype.Property.AnimationRange<string | number> | undefined>[] | readonly (string | (string & {}))[] | undefined;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from "./utils";
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { o as bgBlur, n as bgGradient, m as borderGradient, h as createPaletteChannel, g as hexToRgbChannel, j as hideScrollX, k as hideScrollY, p as maxLine, b as mediaQueries, r as menuItem, q as paper, e as pxToRem, d as remToPx, f as responsiveFontSizes, c as setFont, a as stylesMode, l as textGradient, i as varAlpha } from '../../chunk-D27ND54J.js';
|
|
@@ -1,45 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
primaryColor,
|
|
9
|
-
children,
|
|
10
|
-
colorScheme = "light",
|
|
11
|
-
contrast = "default",
|
|
12
|
-
cssVarPrefix
|
|
13
|
-
}) => {
|
|
14
|
-
const theme = createTheme(
|
|
15
|
-
allLangs[1].systemValue,
|
|
16
|
-
{
|
|
17
|
-
primaryColor,
|
|
18
|
-
colorScheme,
|
|
19
|
-
contrast,
|
|
20
|
-
navLayout: "vertical",
|
|
21
|
-
navColor: "integrate",
|
|
22
|
-
compactLayout: true,
|
|
23
|
-
fontFamily: "Public Sans"
|
|
24
|
-
},
|
|
25
|
-
cssVarPrefix
|
|
26
|
-
);
|
|
27
|
-
return /* @__PURE__ */ jsxs(
|
|
28
|
-
CssVarsProvider,
|
|
29
|
-
{
|
|
30
|
-
theme,
|
|
31
|
-
defaultMode: "light",
|
|
32
|
-
defaultColorScheme: "light",
|
|
33
|
-
modeStorageKey: schemeConfig.modeStorageKey,
|
|
34
|
-
children: [
|
|
35
|
-
/* @__PURE__ */ jsx(CssBaseline, {}),
|
|
36
|
-
children
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
var theme_provider_default = ThemeProvider;
|
|
42
|
-
export {
|
|
43
|
-
theme_provider_default as default
|
|
44
|
-
};
|
|
45
|
-
//# sourceMappingURL=theme-provider.js.map
|
|
1
|
+
export { a as default } from '../chunk-UGH5FWZQ.js';
|
|
2
|
+
import '../chunk-WKD3OXUA.js';
|
|
3
|
+
import '../chunk-GOC7PC2S.js';
|
|
4
|
+
import '../chunk-MCT77MRN.js';
|
|
5
|
+
import '../chunk-CFVUZ4S5.js';
|
|
6
|
+
import '../chunk-CFYNJQGN.js';
|
|
7
|
+
import '../chunk-D27ND54J.js';
|