@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,18 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
] });
|
|
13
|
-
};
|
|
14
|
-
var MoreMenu_default = MoreMenu;
|
|
15
|
-
export {
|
|
16
|
-
MoreMenu_default as default
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { a as a$2 } from '../../chunk-EFUFJKJD.js';
|
|
2
|
+
import { a as a$1 } from '../../chunk-PMPALWRO.js';
|
|
3
|
+
import '../../chunk-3E5A45HM.js';
|
|
4
|
+
import { a } from '../../chunk-ORYAES3Q.js';
|
|
5
|
+
import u from '@mui/material/IconButton';
|
|
6
|
+
import c from '@mui/material/Stack';
|
|
7
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
var M=({actions:p})=>{let{open:r,onClose:m,onOpen:i}=a();return jsxs(Fragment,{children:[jsx(u,{color:r?"inherit":"default",onClick:i,children:jsx(a$1,{icon:"MORE_BOLD"})}),jsx(a$2,{open:r,onClose:m,arrow:"right-top",children:jsx(c,{component:"ul",gap:.5,minWidth:160,children:p})})]})},k=M;
|
|
10
|
+
|
|
11
|
+
export { k as default };
|
|
@@ -1,109 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { forwardRef, useEffect, useRef, useState } from "react";
|
|
3
|
-
import {
|
|
4
|
-
NumericFormat
|
|
5
|
-
} from "react-number-format";
|
|
6
|
-
import TextField from "@mui/material/TextField";
|
|
7
|
-
const NumberInput = forwardRef(
|
|
8
|
-
({
|
|
9
|
-
decimalScale = 0,
|
|
10
|
-
fixedDecimalScale = true,
|
|
11
|
-
prefix,
|
|
12
|
-
allowNegative,
|
|
13
|
-
minValue,
|
|
14
|
-
maxValue = Infinity,
|
|
15
|
-
maxLength,
|
|
16
|
-
value,
|
|
17
|
-
inputProps,
|
|
18
|
-
InputProps,
|
|
19
|
-
size,
|
|
20
|
-
disabled,
|
|
21
|
-
name,
|
|
22
|
-
helperText,
|
|
23
|
-
error,
|
|
24
|
-
fullWidth,
|
|
25
|
-
label,
|
|
26
|
-
required,
|
|
27
|
-
onChange,
|
|
28
|
-
tabIndex,
|
|
29
|
-
placeholder,
|
|
30
|
-
margin,
|
|
31
|
-
className
|
|
32
|
-
}, ref) => {
|
|
33
|
-
const [inputkey, setInputKey] = useState(Date.now());
|
|
34
|
-
const delayTimer = useRef(null);
|
|
35
|
-
const reRenderInput = () => setInputKey(Date.now());
|
|
36
|
-
const handleChange = (values, event) => {
|
|
37
|
-
if (!onChange)
|
|
38
|
-
return;
|
|
39
|
-
if (delayTimer.current)
|
|
40
|
-
clearTimeout(delayTimer.current);
|
|
41
|
-
delayTimer.current = setTimeout(() => {
|
|
42
|
-
const { floatValue } = values;
|
|
43
|
-
const comparisonValue = floatValue || 0;
|
|
44
|
-
if (minValue !== void 0 && minValue > comparisonValue) {
|
|
45
|
-
onChange({ target: { name, value: minValue }, event });
|
|
46
|
-
reRenderInput();
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
if (floatValue !== void 0 && maxValue < comparisonValue) {
|
|
50
|
-
onChange({ target: { name, value: maxValue }, event });
|
|
51
|
-
reRenderInput();
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
onChange({
|
|
55
|
-
target: {
|
|
56
|
-
name,
|
|
57
|
-
value: floatValue
|
|
58
|
-
},
|
|
59
|
-
event
|
|
60
|
-
});
|
|
61
|
-
}, 500);
|
|
62
|
-
};
|
|
63
|
-
useEffect(() => {
|
|
64
|
-
return () => {
|
|
65
|
-
if (delayTimer.current) {
|
|
66
|
-
clearTimeout(delayTimer.current);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
}, []);
|
|
70
|
-
return /* @__PURE__ */ jsx(
|
|
71
|
-
NumericFormat,
|
|
72
|
-
{
|
|
73
|
-
getInputRef: ref,
|
|
74
|
-
value,
|
|
75
|
-
prefix,
|
|
76
|
-
decimalSeparator: ",",
|
|
77
|
-
thousandSeparator: ".",
|
|
78
|
-
decimalScale,
|
|
79
|
-
fixedDecimalScale,
|
|
80
|
-
autoComplete: "off",
|
|
81
|
-
allowNegative,
|
|
82
|
-
maxLength,
|
|
83
|
-
onValueChange: handleChange,
|
|
84
|
-
customInput: TextField,
|
|
85
|
-
InputProps: {
|
|
86
|
-
...InputProps
|
|
87
|
-
},
|
|
88
|
-
inputProps: { ...inputProps, tabIndex },
|
|
89
|
-
disabled,
|
|
90
|
-
size,
|
|
91
|
-
helperText,
|
|
92
|
-
error,
|
|
93
|
-
fullWidth,
|
|
94
|
-
label,
|
|
95
|
-
required,
|
|
96
|
-
placeholder,
|
|
97
|
-
margin,
|
|
98
|
-
className
|
|
99
|
-
},
|
|
100
|
-
inputkey
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
);
|
|
104
|
-
NumberInput.displayName = "NumberInput";
|
|
105
|
-
var NumberInput_default = NumberInput;
|
|
106
|
-
export {
|
|
107
|
-
NumberInput_default as default
|
|
108
|
-
};
|
|
109
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { a as default } from '../../chunk-7KZ2UT76.js';
|
|
@@ -1,78 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
numberChar = false,
|
|
13
|
-
specialCharacter = false,
|
|
14
|
-
upperCaseChar = false,
|
|
15
|
-
match
|
|
16
|
-
}) => {
|
|
17
|
-
const {
|
|
18
|
-
hasSpecialCharacter,
|
|
19
|
-
hasUpperCaseChar,
|
|
20
|
-
isLengthValid,
|
|
21
|
-
hasNumberChar
|
|
22
|
-
} = validatePassword(
|
|
23
|
-
password,
|
|
24
|
-
passwordSize,
|
|
25
|
-
numberChar,
|
|
26
|
-
specialCharacter,
|
|
27
|
-
upperCaseChar
|
|
28
|
-
);
|
|
29
|
-
return /* @__PURE__ */ jsxs(RulesContainer, { children: [
|
|
30
|
-
/* @__PURE__ */ jsx(Typography, { color: "text.secondary", variant: "body2", children: "Sua senha deve conter:" }),
|
|
31
|
-
/* @__PURE__ */ jsxs(Rules, { children: [
|
|
32
|
-
/* @__PURE__ */ jsxs(Rule, { children: [
|
|
33
|
-
/* @__PURE__ */ jsx(RuleIcon, { passed: isLengthValid }),
|
|
34
|
-
/* @__PURE__ */ jsxs(Typography, { component: "div", children: [
|
|
35
|
-
/* @__PURE__ */ jsxs("strong", { children: [
|
|
36
|
-
passwordSize[0],
|
|
37
|
-
"-",
|
|
38
|
-
passwordSize[1]
|
|
39
|
-
] }),
|
|
40
|
-
" ",
|
|
41
|
-
"caracteres"
|
|
42
|
-
] })
|
|
43
|
-
] }),
|
|
44
|
-
upperCaseChar && /* @__PURE__ */ jsxs(Rule, { children: [
|
|
45
|
-
/* @__PURE__ */ jsx(RuleIcon, { passed: hasUpperCaseChar }),
|
|
46
|
-
/* @__PURE__ */ jsxs(Typography, { component: "div", children: [
|
|
47
|
-
"Pelo menos uma ",
|
|
48
|
-
/* @__PURE__ */ jsx("strong", { children: "letra mai\xFAscula" })
|
|
49
|
-
] })
|
|
50
|
-
] }),
|
|
51
|
-
numberChar && /* @__PURE__ */ jsxs(Rule, { children: [
|
|
52
|
-
/* @__PURE__ */ jsx(RuleIcon, { passed: hasNumberChar }),
|
|
53
|
-
/* @__PURE__ */ jsxs(Typography, { component: "div", children: [
|
|
54
|
-
"Pelo menos ",
|
|
55
|
-
/* @__PURE__ */ jsx("strong", { children: "um n\xFAmero" })
|
|
56
|
-
] })
|
|
57
|
-
] }),
|
|
58
|
-
specialCharacter && /* @__PURE__ */ jsxs(Rule, { children: [
|
|
59
|
-
/* @__PURE__ */ jsx(RuleIcon, { passed: hasSpecialCharacter }),
|
|
60
|
-
/* @__PURE__ */ jsxs(Typography, { component: "div", children: [
|
|
61
|
-
"Pelo menos um ",
|
|
62
|
-
/* @__PURE__ */ jsx("strong", { children: "caracter especial" }),
|
|
63
|
-
" ",
|
|
64
|
-
/* @__PURE__ */ jsx("span", { children: "(#,@,!,?)" })
|
|
65
|
-
] })
|
|
66
|
-
] }),
|
|
67
|
-
match && /* @__PURE__ */ jsxs(Rule, { children: [
|
|
68
|
-
/* @__PURE__ */ jsx(RuleIcon, { passed: match.passwordMatch }),
|
|
69
|
-
/* @__PURE__ */ jsx(Typography, { component: "div", children: "Senha e confirma\xE7\xE3o de senha devem ser iguais" })
|
|
70
|
-
] })
|
|
71
|
-
] })
|
|
72
|
-
] });
|
|
73
|
-
};
|
|
74
|
-
var PasswordRules_default = PasswordRules;
|
|
75
|
-
export {
|
|
76
|
-
PasswordRules_default as default
|
|
77
|
-
};
|
|
78
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { d } from '../../chunk-CQDKXUUX.js';
|
|
2
|
+
import { a as a$1 } from '../../chunk-PMPALWRO.js';
|
|
3
|
+
import '../../chunk-3E5A45HM.js';
|
|
4
|
+
import a from '@mui/material/Typography';
|
|
5
|
+
import l from '@mui/material/Stack';
|
|
6
|
+
import { styled, alpha } from '@mui/material/styles';
|
|
7
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
var R=styled(l)(({theme:r})=>({width:"100%",border:`solid 1px ${alpha(r.palette.grey[500],.32)}`,padding:16,borderRadius:8,gap:8})),y=styled(l)(()=>({gap:4})),s=styled(l)(({theme:r})=>({flexDirection:"row",alignItems:"center",gap:8,color:r.palette.text.secondary,div:{fontSize:12},strong:{fontWeight:700,color:r.palette.text.primary}}));var n=({passed:r})=>r?jsx(a$1,{icon:"SIMPLE_CHECK",color:"success.main"}):jsx(a$1,{icon:"WARNING_TRIANGULE",color:"warning.main"}),I=({password:r,passwordSize:t,numberChar:c=!1,specialCharacter:d$1=!1,upperCaseChar:m=!1,match:u})=>{let{hasSpecialCharacter:h,hasUpperCaseChar:f,isLengthValid:P,hasNumberChar:v}=d(r,t,c,d$1,m);return jsxs(R,{children:[jsx(a,{color:"text.secondary",variant:"body2",children:"Sua senha deve conter:"}),jsxs(y,{children:[jsxs(s,{children:[jsx(n,{passed:P}),jsxs(a,{component:"div",children:[jsxs("strong",{children:[t[0],"-",t[1]]})," ","caracteres"]})]}),m&&jsxs(s,{children:[jsx(n,{passed:f}),jsxs(a,{component:"div",children:["Pelo menos uma ",jsx("strong",{children:"letra mai\xFAscula"})]})]}),c&&jsxs(s,{children:[jsx(n,{passed:v}),jsxs(a,{component:"div",children:["Pelo menos ",jsx("strong",{children:"um n\xFAmero"})]})]}),d$1&&jsxs(s,{children:[jsx(n,{passed:h}),jsxs(a,{component:"div",children:["Pelo menos um ",jsx("strong",{children:"caracter especial"})," ",jsx("span",{children:"(#,@,!,?)"})]})]}),u&&jsxs(s,{children:[jsx(n,{passed:u.passwordMatch}),jsx(a,{component:"div",children:"Senha e confirma\xE7\xE3o de senha devem ser iguais"})]})]})]})},L=I;
|
|
10
|
+
|
|
11
|
+
export { L as default };
|
|
@@ -1,50 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}) => {
|
|
15
|
-
const popover = usePopover();
|
|
16
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17
|
-
/* @__PURE__ */ jsx(
|
|
18
|
-
StyledButton,
|
|
19
|
-
{
|
|
20
|
-
disableRipple: true,
|
|
21
|
-
color: "inherit",
|
|
22
|
-
onClick: popover.onOpen,
|
|
23
|
-
endIcon: /* @__PURE__ */ jsx(
|
|
24
|
-
StyledIcon,
|
|
25
|
-
{
|
|
26
|
-
icon: popover.open ? "CHEVRON_UP" : "ARROW_DOWN_SIMPLE"
|
|
27
|
-
}
|
|
28
|
-
),
|
|
29
|
-
children: /* @__PURE__ */ jsx(StyledBox, { component: "span", children: selectedTitle.label })
|
|
30
|
-
}
|
|
31
|
-
),
|
|
32
|
-
/* @__PURE__ */ jsx(MenuPopover, { open: popover.open, onClose: popover.onClose, children: options.map((option) => /* @__PURE__ */ jsx(
|
|
33
|
-
MenuItem,
|
|
34
|
-
{
|
|
35
|
-
selected: option.value === selectedTitle.value,
|
|
36
|
-
onClick: () => {
|
|
37
|
-
popover.onClose();
|
|
38
|
-
onSelect(option.value);
|
|
39
|
-
},
|
|
40
|
-
children: option.label
|
|
41
|
-
},
|
|
42
|
-
option.value
|
|
43
|
-
)) })
|
|
44
|
-
] });
|
|
45
|
-
};
|
|
46
|
-
var PopoverSelect_default = PopoverSelect;
|
|
47
|
-
export {
|
|
48
|
-
PopoverSelect_default as default
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { a as a$3 } from '../../chunk-EFUFJKJD.js';
|
|
2
|
+
import { a as a$1 } from '../../chunk-PMPALWRO.js';
|
|
3
|
+
import '../../chunk-3E5A45HM.js';
|
|
4
|
+
import { a as a$2 } from '../../chunk-ORYAES3Q.js';
|
|
5
|
+
import S from '@mui/material/MenuItem';
|
|
6
|
+
import a from '@mui/material/Box';
|
|
7
|
+
import s from '@mui/material/Button';
|
|
8
|
+
import { styled } from '@mui/material/styles';
|
|
9
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
10
|
+
|
|
11
|
+
var i=styled(a)(()=>({marginLeft:"4px",fontWeight:"fontWeightBold"})),c=styled(s)(()=>({fontWeight:"fontWeightSemiBold"})),f=styled(a$1)(({theme:t})=>({color:t.palette.primary.main}));var v=({selectedTitle:t,onSelect:d,options:u})=>{let o=a$2();return jsxs(Fragment,{children:[jsx(c,{disableRipple:!0,color:"inherit",onClick:o.onOpen,endIcon:jsx(f,{icon:o.open?"CHEVRON_UP":"ARROW_DOWN_SIMPLE"}),children:jsx(i,{component:"span",children:t.label})}),jsx(a$3,{open:o.open,onClose:o.onClose,children:u.map(r=>jsx(S,{selected:r.value===t.value,onClick:()=>{o.onClose(),d(r.value);},children:r.label},r.value))})]})},R=v;
|
|
12
|
+
|
|
13
|
+
export { R as default };
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { createPortal } from "react-dom";
|
|
3
|
-
const Portal = ({
|
|
4
|
-
children,
|
|
5
|
-
container,
|
|
6
|
-
waitBeforeShow = 50
|
|
7
|
-
}) => {
|
|
8
|
-
const [isShown, setIsShown] = useState(false);
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
const timer = setTimeout(() => setIsShown(true), waitBeforeShow);
|
|
11
|
-
return () => clearTimeout(timer);
|
|
12
|
-
}, [waitBeforeShow]);
|
|
13
|
-
if (!waitBeforeShow) {
|
|
14
|
-
return createPortal(
|
|
15
|
-
children,
|
|
16
|
-
document.getElementById(container) || document.body
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
return isShown ? createPortal(
|
|
20
|
-
children,
|
|
21
|
-
document.getElementById(container) || document.body
|
|
22
|
-
) : null;
|
|
23
|
-
};
|
|
24
|
-
var Portal_default = Portal;
|
|
25
|
-
export {
|
|
26
|
-
Portal_default as default
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { a as default } from '../../chunk-5YJTSVA2.js';
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const Result = ({
|
|
3
|
-
isFetching,
|
|
4
|
-
fetching,
|
|
5
|
-
isLoading,
|
|
6
|
-
loading,
|
|
7
|
-
anError,
|
|
8
|
-
error,
|
|
9
|
-
isEmpty,
|
|
10
|
-
empty,
|
|
11
|
-
children
|
|
12
|
-
}) => {
|
|
13
|
-
if (isLoading)
|
|
14
|
-
return loading || "Carregando...";
|
|
15
|
-
if (anError)
|
|
16
|
-
return error || "Error";
|
|
17
|
-
if (isEmpty)
|
|
18
|
-
return empty || "Nenhum resultado";
|
|
19
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20
|
-
isFetching && /* @__PURE__ */ jsx(Fragment, { children: fetching || "Carregando..." }),
|
|
21
|
-
children
|
|
22
|
-
] });
|
|
23
|
-
};
|
|
24
|
-
var Result_default = Result;
|
|
25
|
-
export {
|
|
26
|
-
Result_default as default
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { a as default } from '../../chunk-TWGGHTU5.js';
|
|
@@ -1,42 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
variant: "body2",
|
|
9
|
-
component: "span",
|
|
10
|
-
fontWeight: 600,
|
|
11
|
-
color: "text.primary",
|
|
12
|
-
children
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
};
|
|
16
|
-
const SavedChanges = ({ updatedAt }) => {
|
|
17
|
-
const today = /* @__PURE__ */ new Date();
|
|
18
|
-
const date = new Date(updatedAt);
|
|
19
|
-
const isToday = date.getDate() === today.getDate() && date.getMonth() === today.getMonth() && date.getFullYear() === today.getFullYear();
|
|
20
|
-
const lastSavedHour = fDate(date, "HH:mm");
|
|
21
|
-
if (isToday) {
|
|
22
|
-
return /* @__PURE__ */ jsxs(Typography, { variant: "body2", color: "text.disabled", children: [
|
|
23
|
-
"Altera\xE7\xF5es salvas ",
|
|
24
|
-
/* @__PURE__ */ jsx(HighlightText, { children: "Hoje" }),
|
|
25
|
-
" \xE0s",
|
|
26
|
-
" ",
|
|
27
|
-
/* @__PURE__ */ jsx(HighlightText, { children: lastSavedHour })
|
|
28
|
-
] });
|
|
29
|
-
}
|
|
30
|
-
return /* @__PURE__ */ jsxs(Typography, { variant: "body2", color: "text.disabled", children: [
|
|
31
|
-
"Altera\xE7\xF5es salvas em ",
|
|
32
|
-
/* @__PURE__ */ jsx(HighlightText, { children: fDate(date) }),
|
|
33
|
-
" \xE0s",
|
|
34
|
-
" ",
|
|
35
|
-
/* @__PURE__ */ jsx(HighlightText, { children: lastSavedHour })
|
|
36
|
-
] });
|
|
37
|
-
};
|
|
38
|
-
var SavedChanges_default = SavedChanges;
|
|
39
|
-
export {
|
|
40
|
-
SavedChanges_default as default
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { d } from '../../chunk-TRI6XGH4.js';
|
|
2
|
+
import s from '@mui/material/Typography';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var o=({children:a})=>jsx(s,{variant:"body2",component:"span",fontWeight:600,color:"text.primary",children:a}),l=({updatedAt:a})=>{let r=new Date,t=new Date(a),n=t.getDate()===r.getDate()&&t.getMonth()===r.getMonth()&&t.getFullYear()===r.getFullYear(),g=d(t,"HH:mm");return n?jsxs(s,{variant:"body2",color:"text.disabled",children:["Altera\xE7\xF5es salvas ",jsx(o,{children:"Hoje"})," \xE0s"," ",jsx(o,{children:g})]}):jsxs(s,{variant:"body2",color:"text.disabled",children:["Altera\xE7\xF5es salvas em ",jsx(o,{children:d(t)})," \xE0s"," ",jsx(o,{children:g})]})},y=l;
|
|
6
|
+
|
|
7
|
+
export { y as default };
|
|
@@ -1,45 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import Box from "@mui/material/Box";
|
|
4
|
-
import SimpleBar from "simplebar-react";
|
|
5
|
-
import { scrollbarClasses } from "./classes";
|
|
6
|
-
const Scrollbar = forwardRef(
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8
|
-
({ slotProps, children, fillContent, naturalScroll, sx, ...other }, ref) => /* @__PURE__ */ jsx(
|
|
9
|
-
Box,
|
|
10
|
-
{
|
|
11
|
-
component: SimpleBar,
|
|
12
|
-
scrollableNodeProps: { ref },
|
|
13
|
-
clickOnTrack: false,
|
|
14
|
-
className: scrollbarClasses.root,
|
|
15
|
-
sx: {
|
|
16
|
-
minWidth: 0,
|
|
17
|
-
minHeight: 0,
|
|
18
|
-
flexGrow: 1,
|
|
19
|
-
display: "flex",
|
|
20
|
-
flexDirection: "column",
|
|
21
|
-
"& .simplebar-wrapper": slotProps?.wrapper,
|
|
22
|
-
"& .simplebar-content-wrapper": slotProps?.contentWrapper,
|
|
23
|
-
"& .simplebar-content": {
|
|
24
|
-
...fillContent && {
|
|
25
|
-
minHeight: 1,
|
|
26
|
-
display: "flex",
|
|
27
|
-
flex: "1 1 auto",
|
|
28
|
-
flexDirection: "column"
|
|
29
|
-
},
|
|
30
|
-
...slotProps?.content
|
|
31
|
-
},
|
|
32
|
-
...sx
|
|
33
|
-
},
|
|
34
|
-
tabIndex: -1,
|
|
35
|
-
...other,
|
|
36
|
-
children
|
|
37
|
-
}
|
|
38
|
-
)
|
|
39
|
-
);
|
|
40
|
-
Scrollbar.displayName = "Scrollbar";
|
|
41
|
-
var Scrollbar_default = Scrollbar;
|
|
42
|
-
export {
|
|
43
|
-
Scrollbar_default as default
|
|
44
|
-
};
|
|
45
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { a as default } from '../../chunk-E5MGOPPQ.js';
|
|
@@ -1,73 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import InputAdornment from "@mui/material/InputAdornment";
|
|
5
|
-
import TextField from "@mui/material/TextField";
|
|
6
|
-
import Icon from "../Icon";
|
|
7
|
-
const SearchInput = ({
|
|
8
|
-
onSearch,
|
|
9
|
-
onChange,
|
|
10
|
-
trigger = "click",
|
|
11
|
-
iconPosition = "end",
|
|
12
|
-
tabIndex,
|
|
13
|
-
InputProps,
|
|
14
|
-
iconButtonAriaLabel = "Buscar",
|
|
15
|
-
...other
|
|
16
|
-
}) => {
|
|
17
|
-
const inputRef = useRef(null);
|
|
18
|
-
const seachIcon = /* @__PURE__ */ jsx(
|
|
19
|
-
IconButton,
|
|
20
|
-
{
|
|
21
|
-
color: "inherit",
|
|
22
|
-
onClick: () => {
|
|
23
|
-
onSearch(inputRef.current?.value);
|
|
24
|
-
},
|
|
25
|
-
"aria-label": iconButtonAriaLabel,
|
|
26
|
-
children: /* @__PURE__ */ jsx(Icon, { icon: "SEARCH_MAGNIFYING_GLASS", width: 20, height: 20 })
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
return /* @__PURE__ */ jsx(
|
|
30
|
-
TextField,
|
|
31
|
-
{
|
|
32
|
-
inputRef,
|
|
33
|
-
InputProps: {
|
|
34
|
-
...InputProps,
|
|
35
|
-
onKeyDown: (e) => {
|
|
36
|
-
if (e.key === "Enter")
|
|
37
|
-
onSearch(inputRef.current?.value);
|
|
38
|
-
},
|
|
39
|
-
...iconPosition === "start" ? {
|
|
40
|
-
startAdornment: /* @__PURE__ */ jsxs(InputAdornment, { position: iconPosition, children: [
|
|
41
|
-
seachIcon,
|
|
42
|
-
InputProps?.startAdornment
|
|
43
|
-
] })
|
|
44
|
-
} : {
|
|
45
|
-
endAdornment: /* @__PURE__ */ jsxs(InputAdornment, { position: iconPosition, children: [
|
|
46
|
-
seachIcon,
|
|
47
|
-
InputProps?.endAdornment
|
|
48
|
-
] })
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
inputProps: {
|
|
52
|
-
tabIndex,
|
|
53
|
-
...other.inputProps
|
|
54
|
-
},
|
|
55
|
-
onChange: (e) => {
|
|
56
|
-
if (trigger === "change") {
|
|
57
|
-
onSearch(e.target.value);
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
if (e.target.value === "")
|
|
61
|
-
onSearch("");
|
|
62
|
-
if (onChange)
|
|
63
|
-
onChange(e);
|
|
64
|
-
},
|
|
65
|
-
...other
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
};
|
|
69
|
-
var SearchInput_default = SearchInput;
|
|
70
|
-
export {
|
|
71
|
-
SearchInput_default as default
|
|
72
|
-
};
|
|
73
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { a as default } from '../../chunk-D2VRQ2K3.js';
|
|
2
|
+
import '../../chunk-PMPALWRO.js';
|
|
3
|
+
import '../../chunk-3E5A45HM.js';
|