@codeleap/web 6.2.3 → 6.8.0
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/components/ActivityIndicator/index.d.ts +6 -2
- package/dist/components/ActivityIndicator/index.d.ts.map +1 -0
- package/dist/components/ActivityIndicator/styles.d.ts +1 -0
- package/dist/components/ActivityIndicator/styles.d.ts.map +1 -0
- package/dist/components/ActivityIndicator/types.d.ts +13 -2
- package/dist/components/ActivityIndicator/types.d.ts.map +1 -0
- package/dist/components/Badge/index.d.ts +8 -1
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Badge/styles.d.ts +1 -0
- package/dist/components/Badge/styles.d.ts.map +1 -0
- package/dist/components/Badge/types.d.ts +17 -2
- package/dist/components/Badge/types.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +12 -9
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/styles.d.ts +7 -4
- package/dist/components/Button/styles.d.ts.map +1 -0
- package/dist/components/Button/types.d.ts +9 -5
- package/dist/components/Button/types.d.ts.map +1 -0
- package/dist/components/Calendar/index.d.ts +18 -0
- package/dist/components/Calendar/index.d.ts.map +1 -0
- package/dist/components/Calendar/styles.d.ts +3 -0
- package/dist/components/Calendar/styles.d.ts.map +1 -0
- package/dist/components/Calendar/types.d.ts +20 -0
- package/dist/components/Calendar/types.d.ts.map +1 -0
- package/dist/components/Carousel/index.d.ts +6 -0
- package/dist/components/Carousel/index.d.ts.map +1 -0
- package/dist/components/Carousel/styles.d.ts +1 -0
- package/dist/components/Carousel/styles.d.ts.map +1 -0
- package/dist/components/Carousel/types.d.ts +14 -2
- package/dist/components/Carousel/types.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +6 -2
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Checkbox/styles.d.ts +4 -6
- package/dist/components/Checkbox/styles.d.ts.map +1 -0
- package/dist/components/Checkbox/types.d.ts +20 -5
- package/dist/components/Checkbox/types.d.ts.map +1 -0
- package/dist/components/Collapse/index.d.ts +5 -0
- package/dist/components/Collapse/index.d.ts.map +1 -0
- package/dist/components/Collapse/styles.d.ts +1 -0
- package/dist/components/Collapse/styles.d.ts.map +1 -0
- package/dist/components/Collapse/types.d.ts +6 -2
- package/dist/components/Collapse/types.d.ts.map +1 -0
- package/dist/components/ColorPicker/index.d.ts +6 -0
- package/dist/components/ColorPicker/index.d.ts.map +1 -0
- package/dist/components/ColorPicker/styles.d.ts +1 -0
- package/dist/components/ColorPicker/styles.d.ts.map +1 -0
- package/dist/components/ColorPicker/types.d.ts +17 -4
- package/dist/components/ColorPicker/types.d.ts.map +1 -0
- package/dist/components/CropPicker/hooks.d.ts +49 -0
- package/dist/components/CropPicker/hooks.d.ts.map +1 -0
- package/dist/components/CropPicker/index.d.ts +8 -2
- package/dist/components/CropPicker/index.d.ts.map +1 -0
- package/dist/components/CropPicker/styles.d.ts +3 -3
- package/dist/components/CropPicker/styles.d.ts.map +1 -0
- package/dist/components/CropPicker/types.d.ts +18 -16
- package/dist/components/CropPicker/types.d.ts.map +1 -0
- package/dist/components/CropPicker/utils.d.ts +20 -0
- package/dist/components/CropPicker/utils.d.ts.map +1 -0
- package/dist/components/DatePicker/index.d.ts +7 -2
- package/dist/components/DatePicker/index.d.ts.map +1 -0
- package/dist/components/DatePicker/styles.d.ts +3 -6
- package/dist/components/DatePicker/styles.d.ts.map +1 -0
- package/dist/components/DatePicker/types.d.ts +46 -50
- package/dist/components/DatePicker/types.d.ts.map +1 -0
- package/dist/components/Drawer/index.d.ts +7 -1
- package/dist/components/Drawer/index.d.ts.map +1 -0
- package/dist/components/Drawer/styles.d.ts +2 -2
- package/dist/components/Drawer/styles.d.ts.map +1 -0
- package/dist/components/Drawer/types.d.ts +8 -17
- package/dist/components/Drawer/types.d.ts.map +1 -0
- package/dist/components/Dropzone/context.d.ts +17 -0
- package/dist/components/Dropzone/context.d.ts.map +1 -0
- package/dist/components/Dropzone/elements.d.ts +32 -0
- package/dist/components/Dropzone/elements.d.ts.map +1 -0
- package/dist/components/Dropzone/index.d.ts +21 -0
- package/dist/components/Dropzone/index.d.ts.map +1 -0
- package/dist/components/Dropzone/styles.d.ts +3 -2
- package/dist/components/Dropzone/styles.d.ts.map +1 -0
- package/dist/components/Dropzone/types.d.ts +69 -33
- package/dist/components/Dropzone/types.d.ts.map +1 -0
- package/dist/components/Dropzone/useDropzone.d.ts +14 -0
- package/dist/components/Dropzone/useDropzone.d.ts.map +1 -0
- package/dist/components/EmptyPlaceholder/index.d.ts +6 -0
- package/dist/components/EmptyPlaceholder/index.d.ts.map +1 -0
- package/dist/components/EmptyPlaceholder/styles.d.ts +1 -0
- package/dist/components/EmptyPlaceholder/styles.d.ts.map +1 -0
- package/dist/components/EmptyPlaceholder/types.d.ts +12 -2
- package/dist/components/EmptyPlaceholder/types.d.ts.map +1 -0
- package/dist/components/Field/context.d.ts +26 -0
- package/dist/components/Field/context.d.ts.map +1 -0
- package/dist/components/Field/elements.d.ts +63 -0
- package/dist/components/Field/elements.d.ts.map +1 -0
- package/dist/components/Field/index.d.ts +66 -0
- package/dist/components/Field/index.d.ts.map +1 -0
- package/dist/components/Field/styles.d.ts +15 -0
- package/dist/components/Field/styles.d.ts.map +1 -0
- package/dist/components/Field/types.d.ts +46 -0
- package/dist/components/Field/types.d.ts.map +1 -0
- package/dist/components/{InputBase/useInputBase.d.ts → Field/useFieldInput.d.ts} +17 -6
- package/dist/components/Field/useFieldInput.d.ts.map +1 -0
- package/dist/components/FileInput/index.d.ts +6 -0
- package/dist/components/FileInput/index.d.ts.map +1 -0
- package/dist/components/FileInput/types.d.ts +8 -0
- package/dist/components/FileInput/types.d.ts.map +1 -0
- package/dist/components/Icon/index.d.ts +8 -1
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/Icon/styles.d.ts +1 -0
- package/dist/components/Icon/styles.d.ts.map +1 -0
- package/dist/components/Icon/types.d.ts +13 -3
- package/dist/components/Icon/types.d.ts.map +1 -0
- package/dist/components/List/context.d.ts +44 -0
- package/dist/components/List/context.d.ts.map +1 -0
- package/dist/components/List/elements.d.ts +29 -0
- package/dist/components/List/elements.d.ts.map +1 -0
- package/dist/components/List/index.d.ts +18 -2
- package/dist/components/List/index.d.ts.map +1 -0
- package/dist/components/List/scroll.d.ts +14 -0
- package/dist/components/List/scroll.d.ts.map +1 -0
- package/dist/components/List/styles.d.ts +2 -1
- package/dist/components/List/styles.d.ts.map +1 -0
- package/dist/components/List/types.d.ts +73 -13
- package/dist/components/List/types.d.ts.map +1 -0
- package/dist/components/LoadingOverlay/index.d.ts +7 -0
- package/dist/components/LoadingOverlay/index.d.ts.map +1 -0
- package/dist/components/LoadingOverlay/styles.d.ts +1 -0
- package/dist/components/LoadingOverlay/styles.d.ts.map +1 -0
- package/dist/components/LoadingOverlay/types.d.ts +8 -2
- package/dist/components/LoadingOverlay/types.d.ts.map +1 -0
- package/dist/components/MaskedTextInput/index.d.ts +7 -5
- package/dist/components/MaskedTextInput/index.d.ts.map +1 -0
- package/dist/components/MaskedTextInput/mask.d.ts +1 -0
- package/dist/components/MaskedTextInput/mask.d.ts.map +1 -0
- package/dist/components/MaskedTextInput/types.d.ts +12 -0
- package/dist/components/MaskedTextInput/types.d.ts.map +1 -0
- package/dist/components/Modal/context.d.ts +59 -0
- package/dist/components/Modal/context.d.ts.map +1 -0
- package/dist/components/Modal/elements.d.ts +38 -0
- package/dist/components/Modal/elements.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts +19 -2
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Modal/styles.d.ts +3 -4
- package/dist/components/Modal/styles.d.ts.map +1 -0
- package/dist/components/Modal/types.d.ts +21 -36
- package/dist/components/Modal/types.d.ts.map +1 -0
- package/dist/components/NumberIncrement/index.d.ts +6 -2
- package/dist/components/NumberIncrement/index.d.ts.map +1 -0
- package/dist/components/NumberIncrement/styles.d.ts +4 -4
- package/dist/components/NumberIncrement/styles.d.ts.map +1 -0
- package/dist/components/NumberIncrement/types.d.ts +16 -4
- package/dist/components/NumberIncrement/types.d.ts.map +1 -0
- package/dist/components/NumberIncrement/useNumberIncrement.d.ts +10 -4
- package/dist/components/NumberIncrement/useNumberIncrement.d.ts.map +1 -0
- package/dist/components/Overlay/index.d.ts +7 -0
- package/dist/components/Overlay/index.d.ts.map +1 -0
- package/dist/components/Overlay/styles.d.ts +1 -0
- package/dist/components/Overlay/styles.d.ts.map +1 -0
- package/dist/components/Overlay/types.d.ts +8 -2
- package/dist/components/Overlay/types.d.ts.map +1 -0
- package/dist/components/PaginationButtons/index.d.ts +6 -0
- package/dist/components/PaginationButtons/index.d.ts.map +1 -0
- package/dist/components/PaginationButtons/styles.d.ts +1 -0
- package/dist/components/PaginationButtons/styles.d.ts.map +1 -0
- package/dist/components/PaginationButtons/types.d.ts +12 -2
- package/dist/components/PaginationButtons/types.d.ts.map +1 -0
- package/dist/components/PaginationIndicator/index.d.ts +6 -1
- package/dist/components/PaginationIndicator/index.d.ts.map +1 -0
- package/dist/components/PaginationIndicator/styles.d.ts +1 -0
- package/dist/components/PaginationIndicator/styles.d.ts.map +1 -0
- package/dist/components/PaginationIndicator/types.d.ts +11 -2
- package/dist/components/PaginationIndicator/types.d.ts.map +1 -0
- package/dist/components/Progress/Bar/Segmented.d.ts +16 -0
- package/dist/components/Progress/Bar/Segmented.d.ts.map +1 -0
- package/dist/components/Progress/Bar/index.d.ts +14 -0
- package/dist/components/Progress/Bar/index.d.ts.map +1 -0
- package/dist/components/Progress/Bar/styles.d.ts +3 -1
- package/dist/components/Progress/Bar/styles.d.ts.map +1 -0
- package/dist/components/Progress/Bar/types.d.ts +36 -6
- package/dist/components/Progress/Bar/types.d.ts.map +1 -0
- package/dist/components/Progress/Circle/Segmented.d.ts +16 -0
- package/dist/components/Progress/Circle/Segmented.d.ts.map +1 -0
- package/dist/components/Progress/Circle/index.d.ts +15 -0
- package/dist/components/Progress/Circle/index.d.ts.map +1 -0
- package/dist/components/Progress/Circle/styles.d.ts +3 -1
- package/dist/components/Progress/Circle/styles.d.ts.map +1 -0
- package/dist/components/Progress/Circle/types.d.ts +47 -7
- package/dist/components/Progress/Circle/types.d.ts.map +1 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.d.ts.map +1 -0
- package/dist/components/Progress/utils.d.ts +1 -0
- package/dist/components/Progress/utils.d.ts.map +1 -0
- package/dist/components/RadioInput/index.d.ts +6 -2
- package/dist/components/RadioInput/index.d.ts.map +1 -0
- package/dist/components/RadioInput/styles.d.ts +4 -5
- package/dist/components/RadioInput/styles.d.ts.map +1 -0
- package/dist/components/RadioInput/types.d.ts +16 -7
- package/dist/components/RadioInput/types.d.ts.map +1 -0
- package/dist/components/SearchInput/index.d.ts +17 -0
- package/dist/components/SearchInput/index.d.ts.map +1 -0
- package/dist/components/SectionFilters/index.d.ts +8 -1
- package/dist/components/SectionFilters/index.d.ts.map +1 -0
- package/dist/components/SectionFilters/styles.d.ts +1 -0
- package/dist/components/SectionFilters/styles.d.ts.map +1 -0
- package/dist/components/SectionFilters/types.d.ts +28 -5
- package/dist/components/SectionFilters/types.d.ts.map +1 -0
- package/dist/components/Select/context.d.ts +61 -0
- package/dist/components/Select/context.d.ts.map +1 -0
- package/dist/components/Select/elements.d.ts +26 -0
- package/dist/components/Select/elements.d.ts.map +1 -0
- package/dist/components/Select/index.d.ts +71 -3
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Select/styles.d.ts +4 -51
- package/dist/components/Select/styles.d.ts.map +1 -0
- package/dist/components/Select/types.d.ts +79 -101
- package/dist/components/Select/types.d.ts.map +1 -0
- package/dist/components/Select/useTriggerWidth.d.ts +8 -0
- package/dist/components/Select/useTriggerWidth.d.ts.map +1 -0
- package/dist/components/Slider/index.d.ts +6 -2
- package/dist/components/Slider/index.d.ts.map +1 -0
- package/dist/components/Slider/styles.d.ts +4 -4
- package/dist/components/Slider/styles.d.ts.map +1 -0
- package/dist/components/Slider/types.d.ts +18 -4
- package/dist/components/Slider/types.d.ts.map +1 -0
- package/dist/components/Switch/index.d.ts +6 -2
- package/dist/components/Switch/index.d.ts.map +1 -0
- package/dist/components/Switch/styles.d.ts +4 -6
- package/dist/components/Switch/styles.d.ts.map +1 -0
- package/dist/components/Switch/types.d.ts +20 -5
- package/dist/components/Switch/types.d.ts.map +1 -0
- package/dist/components/Tag/index.d.ts +6 -0
- package/dist/components/Tag/index.d.ts.map +1 -0
- package/dist/components/Tag/styles.d.ts +1 -0
- package/dist/components/Tag/styles.d.ts.map +1 -0
- package/dist/components/Tag/types.d.ts +15 -2
- package/dist/components/Tag/types.d.ts.map +1 -0
- package/dist/components/Text/index.d.ts +8 -0
- package/dist/components/Text/index.d.ts.map +1 -0
- package/dist/components/Text/styles.d.ts +2 -1
- package/dist/components/Text/styles.d.ts.map +1 -0
- package/dist/components/Text/types.d.ts +18 -2
- package/dist/components/Text/types.d.ts.map +1 -0
- package/dist/components/TextEditor/index.d.ts +7 -1
- package/dist/components/TextEditor/index.d.ts.map +1 -0
- package/dist/components/TextEditor/styles.d.ts +1 -0
- package/dist/components/TextEditor/styles.d.ts.map +1 -0
- package/dist/components/TextEditor/types.d.ts +10 -2
- package/dist/components/TextEditor/types.d.ts.map +1 -0
- package/dist/components/TextInput/index.d.ts +6 -0
- package/dist/components/TextInput/index.d.ts.map +1 -0
- package/dist/components/TextInput/styles.d.ts +4 -6
- package/dist/components/TextInput/styles.d.ts.map +1 -0
- package/dist/components/TextInput/types.d.ts +20 -11
- package/dist/components/TextInput/types.d.ts.map +1 -0
- package/dist/components/TextInput/useTextInput.d.ts +22 -14
- package/dist/components/TextInput/useTextInput.d.ts.map +1 -0
- package/dist/components/Tooltip/index.d.ts +6 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/components/Tooltip/styles.d.ts +1 -0
- package/dist/components/Tooltip/styles.d.ts.map +1 -0
- package/dist/components/Tooltip/types.d.ts +12 -2
- package/dist/components/Tooltip/types.d.ts.map +1 -0
- package/dist/components/Touchable/index.d.ts +13 -9
- package/dist/components/Touchable/index.d.ts.map +1 -0
- package/dist/components/Touchable/styles.d.ts +1 -0
- package/dist/components/Touchable/styles.d.ts.map +1 -0
- package/dist/components/Touchable/types.d.ts +14 -3
- package/dist/components/Touchable/types.d.ts.map +1 -0
- package/dist/components/View/index.d.ts +13 -9
- package/dist/components/View/index.d.ts.map +1 -0
- package/dist/components/View/styles.d.ts +1 -0
- package/dist/components/View/styles.d.ts.map +1 -0
- package/dist/components/View/types.d.ts +15 -2
- package/dist/components/View/types.d.ts.map +1 -0
- package/dist/components/components.d.ts +3 -4
- package/dist/components/components.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/ListMasonry.d.ts +1 -0
- package/dist/lib/ListMasonry.d.ts.map +1 -0
- package/dist/lib/ThemeVariables.d.ts +10 -0
- package/dist/lib/ThemeVariables.d.ts.map +1 -0
- package/dist/lib/WebStyleRegistry.d.ts +21 -0
- package/dist/lib/WebStyleRegistry.d.ts.map +1 -0
- package/dist/lib/hooks/index.d.ts +4 -1
- package/dist/lib/hooks/index.d.ts.map +1 -0
- package/dist/lib/hooks/useAnimatedStyle.d.ts +8 -0
- package/dist/lib/hooks/useAnimatedStyle.d.ts.map +1 -0
- package/dist/lib/hooks/useAnimatedVariantStyles.d.ts +7 -0
- package/dist/lib/hooks/useAnimatedVariantStyles.d.ts.map +1 -0
- package/dist/lib/hooks/useAsyncSelect.d.ts +71 -0
- package/dist/lib/hooks/useAsyncSelect.d.ts.map +1 -0
- package/dist/lib/hooks/useBreakpointMatch.d.ts +12 -0
- package/dist/lib/hooks/useBreakpointMatch.d.ts.map +1 -0
- package/dist/lib/hooks/useClick.d.ts +7 -0
- package/dist/lib/hooks/useClick.d.ts.map +1 -0
- package/dist/lib/hooks/useClickOutside.d.ts +10 -1
- package/dist/lib/hooks/useClickOutside.d.ts.map +1 -0
- package/dist/lib/hooks/useFileInput.d.ts +8 -2
- package/dist/lib/hooks/useFileInput.d.ts.map +1 -0
- package/dist/lib/hooks/useIsomorphicEffect.d.ts +5 -0
- package/dist/lib/hooks/useIsomorphicEffect.d.ts.map +1 -0
- package/dist/lib/hooks/useKeydown.d.ts +9 -0
- package/dist/lib/hooks/useKeydown.d.ts.map +1 -0
- package/dist/lib/hooks/useListFocus.d.ts +19 -0
- package/dist/lib/hooks/useListFocus.d.ts.map +1 -0
- package/dist/lib/hooks/useMediaQuery.d.ts +8 -0
- package/dist/lib/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/lib/hooks/usePageExitBlocker.d.ts +11 -0
- package/dist/lib/hooks/usePageExitBlocker.d.ts.map +1 -0
- package/dist/lib/hooks/usePagination.d.ts +20 -5
- package/dist/lib/hooks/usePagination.d.ts.map +1 -0
- package/dist/lib/hooks/usePopState.d.ts +12 -0
- package/dist/lib/hooks/usePopState.d.ts.map +1 -0
- package/dist/lib/hooks/usePopoverDismiss.d.ts +20 -0
- package/dist/lib/hooks/usePopoverDismiss.d.ts.map +1 -0
- package/dist/lib/hooks/useRefresh.d.ts +12 -2
- package/dist/lib/hooks/useRefresh.d.ts.map +1 -0
- package/dist/lib/hooks/useScrollEffect.d.ts +7 -1
- package/dist/lib/hooks/useScrollEffect.d.ts.map +1 -0
- package/dist/lib/hooks/useSearchParams.d.ts +14 -0
- package/dist/lib/hooks/useSearchParams.d.ts.map +1 -0
- package/dist/lib/hooks/useStaticAnimationStyles.d.ts +7 -0
- package/dist/lib/hooks/useStaticAnimationStyles.d.ts.map +1 -0
- package/dist/lib/hooks/useStylesFor.d.ts +12 -2
- package/dist/lib/hooks/useStylesFor.d.ts.map +1 -0
- package/dist/lib/hooks/useTouchableEvents.d.ts +19 -0
- package/dist/lib/hooks/useTouchableEvents.d.ts.map +1 -0
- package/dist/lib/hooks/useWindowFocus.d.ts +6 -0
- package/dist/lib/hooks/useWindowFocus.d.ts.map +1 -0
- package/dist/lib/hooks/useWindowSize.d.ts +8 -1
- package/dist/lib/hooks/useWindowSize.d.ts.map +1 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/tools/index.d.ts +1 -0
- package/dist/lib/tools/index.d.ts.map +1 -0
- package/dist/lib/tools/localStorage.d.ts +13 -0
- package/dist/lib/tools/localStorage.d.ts.map +1 -0
- package/dist/lib/tools/mediaQuery.d.ts +10 -3
- package/dist/lib/tools/mediaQuery.d.ts.map +1 -0
- package/dist/lib/tools/modal.d.ts +12 -0
- package/dist/lib/tools/modal.d.ts.map +1 -0
- package/dist/lib/utils/attributes.d.ts +15 -0
- package/dist/lib/utils/attributes.d.ts.map +1 -0
- package/dist/lib/utils/cache.d.ts +5 -2
- package/dist/lib/utils/cache.d.ts.map +1 -0
- package/dist/lib/utils/index.d.ts +2 -0
- package/dist/lib/utils/index.d.ts.map +1 -0
- package/dist/lib/utils/pollyfils/scroll.d.ts +7 -0
- package/dist/lib/utils/pollyfils/scroll.d.ts.map +1 -0
- package/dist/lib/utils/stopPropagation.d.ts +6 -0
- package/dist/lib/utils/stopPropagation.d.ts.map +1 -0
- package/dist/lib/utils/test.d.ts +6 -0
- package/dist/lib/utils/test.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/utility.d.ts +19 -0
- package/dist/types/utility.d.ts.map +1 -0
- package/package.json +37 -23
- package/src/components/ActivityIndicator/index.tsx +8 -12
- package/src/components/ActivityIndicator/types.ts +12 -2
- package/src/components/Badge/index.tsx +8 -2
- package/src/components/Badge/types.ts +16 -2
- package/src/components/Button/index.tsx +28 -14
- package/src/components/Button/styles.ts +8 -4
- package/src/components/Button/types.ts +11 -5
- package/src/components/Calendar/index.tsx +121 -0
- package/src/components/Calendar/styles.ts +14 -0
- package/src/components/Calendar/types.ts +23 -0
- package/src/components/Carousel/index.tsx +5 -0
- package/src/components/Carousel/types.ts +13 -2
- package/src/components/Checkbox/index.tsx +62 -134
- package/src/components/Checkbox/styles.ts +3 -15
- package/src/components/Checkbox/types.ts +21 -7
- package/src/components/Collapse/index.tsx +4 -1
- package/src/components/Collapse/types.ts +5 -2
- package/src/components/ColorPicker/index.tsx +11 -4
- package/src/components/ColorPicker/types.ts +16 -4
- package/src/components/CropPicker/hooks.ts +182 -0
- package/src/components/CropPicker/index.tsx +44 -81
- package/src/components/CropPicker/styles.ts +5 -6
- package/src/components/CropPicker/types.ts +15 -17
- package/src/components/CropPicker/utils.ts +104 -0
- package/src/components/DatePicker/index.tsx +77 -130
- package/src/components/DatePicker/styles.ts +2 -22
- package/src/components/DatePicker/types.ts +45 -57
- package/src/components/Drawer/index.tsx +55 -167
- package/src/components/Drawer/styles.ts +4 -7
- package/src/components/Drawer/types.ts +9 -21
- package/src/components/Dropzone/context.tsx +52 -0
- package/src/components/Dropzone/elements.tsx +79 -0
- package/src/components/Dropzone/index.tsx +67 -213
- package/src/components/Dropzone/styles.ts +7 -12
- package/src/components/Dropzone/types.ts +92 -39
- package/src/components/Dropzone/useDropzone.ts +18 -0
- package/src/components/EmptyPlaceholder/index.tsx +6 -1
- package/src/components/EmptyPlaceholder/types.ts +11 -2
- package/src/components/Field/context.tsx +66 -0
- package/src/components/Field/elements.tsx +159 -0
- package/src/components/Field/index.tsx +55 -0
- package/src/components/Field/styles.ts +18 -0
- package/src/components/Field/types.ts +51 -0
- package/src/components/{InputBase/useInputBase.ts → Field/useFieldInput.ts} +13 -10
- package/src/components/FileInput/index.tsx +7 -2
- package/src/components/FileInput/types.ts +9 -2
- package/src/components/Icon/index.tsx +33 -5
- package/src/components/Icon/types.ts +14 -5
- package/src/components/List/context.tsx +97 -0
- package/src/components/List/elements.tsx +173 -0
- package/src/components/List/index.tsx +37 -74
- package/src/components/List/scroll.ts +83 -0
- package/src/components/List/styles.ts +1 -1
- package/src/components/List/types.ts +83 -19
- package/src/components/LoadingOverlay/index.tsx +6 -0
- package/src/components/LoadingOverlay/types.ts +7 -2
- package/src/components/MaskedTextInput/index.tsx +6 -4
- package/src/components/MaskedTextInput/types.ts +11 -0
- package/src/components/Modal/context.tsx +48 -0
- package/src/components/Modal/elements.tsx +119 -0
- package/src/components/Modal/index.tsx +38 -325
- package/src/components/Modal/styles.ts +4 -14
- package/src/components/Modal/types.ts +23 -45
- package/src/components/NumberIncrement/index.tsx +87 -88
- package/src/components/NumberIncrement/styles.ts +3 -8
- package/src/components/NumberIncrement/types.ts +16 -4
- package/src/components/NumberIncrement/useNumberIncrement.ts +7 -2
- package/src/components/Overlay/index.tsx +20 -3
- package/src/components/Overlay/types.ts +7 -2
- package/src/components/PaginationButtons/index.tsx +5 -0
- package/src/components/PaginationButtons/types.ts +11 -2
- package/src/components/PaginationIndicator/index.tsx +4 -0
- package/src/components/PaginationIndicator/types.ts +11 -3
- package/src/components/Progress/Bar/Segmented.tsx +66 -0
- package/src/components/Progress/Bar/index.tsx +31 -15
- package/src/components/Progress/Bar/styles.ts +6 -1
- package/src/components/Progress/Bar/types.ts +39 -7
- package/src/components/Progress/Circle/Segmented.tsx +114 -0
- package/src/components/Progress/Circle/index.tsx +89 -39
- package/src/components/Progress/Circle/styles.ts +7 -1
- package/src/components/Progress/Circle/types.ts +49 -7
- package/src/components/Progress/index.tsx +1 -0
- package/src/components/RadioInput/index.tsx +63 -56
- package/src/components/RadioInput/styles.ts +3 -7
- package/src/components/RadioInput/types.ts +16 -8
- package/src/components/SearchInput/index.tsx +31 -10
- package/src/components/SectionFilters/index.tsx +6 -0
- package/src/components/SectionFilters/types.ts +27 -5
- package/src/components/Select/context.tsx +262 -0
- package/src/components/Select/elements.tsx +126 -0
- package/src/components/Select/index.tsx +64 -494
- package/src/components/Select/styles.ts +7 -169
- package/src/components/Select/types.ts +68 -101
- package/src/components/Select/useTriggerWidth.ts +29 -0
- package/src/components/Slider/index.tsx +118 -116
- package/src/components/Slider/styles.ts +4 -9
- package/src/components/Slider/types.ts +19 -6
- package/src/components/Switch/index.tsx +60 -96
- package/src/components/Switch/styles.ts +3 -14
- package/src/components/Switch/types.ts +22 -7
- package/src/components/Tag/index.tsx +18 -5
- package/src/components/Tag/types.ts +15 -2
- package/src/components/Text/index.tsx +35 -3
- package/src/components/Text/styles.ts +1 -1
- package/src/components/Text/types.ts +19 -2
- package/src/components/TextEditor/index.tsx +7 -1
- package/src/components/TextEditor/types.ts +9 -2
- package/src/components/TextInput/index.tsx +94 -109
- package/src/components/TextInput/styles.ts +4 -8
- package/src/components/TextInput/types.ts +24 -11
- package/src/components/TextInput/useTextInput.ts +33 -17
- package/src/components/Tooltip/index.tsx +5 -3
- package/src/components/Tooltip/types.ts +11 -2
- package/src/components/Touchable/index.tsx +23 -25
- package/src/components/Touchable/types.ts +31 -19
- package/src/components/View/index.tsx +8 -6
- package/src/components/View/types.ts +14 -2
- package/src/components/components.ts +3 -4
- package/src/css.d.ts +10 -0
- package/src/lib/ThemeVariables.tsx +38 -0
- package/src/lib/WebStyleRegistry.ts +27 -0
- package/src/lib/hooks/index.ts +4 -1
- package/src/lib/hooks/useAnimatedStyle.ts +7 -0
- package/src/lib/hooks/useAnimatedVariantStyles.ts +6 -0
- package/src/lib/hooks/useAsyncSelect.ts +126 -0
- package/src/lib/hooks/useBreakpointMatch.ts +11 -0
- package/src/lib/hooks/useClick.ts +7 -1
- package/src/lib/hooks/useClickOutside.ts +8 -0
- package/src/lib/hooks/useFileInput.ts +5 -0
- package/src/lib/hooks/useIsomorphicEffect.ts +4 -0
- package/src/lib/hooks/useKeydown.ts +8 -0
- package/src/lib/hooks/useListFocus.ts +59 -0
- package/src/lib/hooks/useMediaQuery.ts +7 -0
- package/src/lib/hooks/usePageExitBlocker.ts +10 -0
- package/src/lib/hooks/usePagination.ts +14 -0
- package/src/lib/hooks/usePopState.ts +11 -0
- package/src/lib/hooks/usePopoverDismiss.ts +42 -0
- package/src/lib/hooks/useRefresh.ts +9 -0
- package/src/lib/hooks/useScrollEffect.ts +5 -0
- package/src/lib/hooks/useSearchParams.ts +13 -0
- package/src/lib/hooks/useStaticAnimationStyles.ts +6 -0
- package/src/lib/hooks/useStylesFor.ts +32 -21
- package/src/lib/hooks/useTouchableEvents.ts +41 -0
- package/src/lib/hooks/useWindowFocus.ts +5 -0
- package/src/lib/hooks/useWindowSize.ts +21 -6
- package/src/lib/index.ts +1 -0
- package/src/lib/tools/localStorage.ts +12 -0
- package/src/lib/tools/mediaQuery.ts +9 -3
- package/src/lib/tools/modal.ts +11 -0
- package/src/lib/utils/attributes.ts +53 -0
- package/src/lib/utils/cache.ts +2 -0
- package/src/lib/utils/index.ts +1 -0
- package/src/lib/utils/pollyfils/scroll.ts +6 -0
- package/src/lib/utils/stopPropagation.ts +5 -0
- package/src/lib/utils/test.ts +5 -0
- package/src/types/utility.ts +18 -2
- package/dist/components/ActionIcon/index.d.ts +0 -12
- package/dist/components/ActionIcon/index.js +0 -88
- package/dist/components/ActionIcon/index.js.map +0 -1
- package/dist/components/ActionIcon/styles.d.ts +0 -5
- package/dist/components/ActionIcon/styles.js +0 -3
- package/dist/components/ActionIcon/styles.js.map +0 -1
- package/dist/components/ActionIcon/types.d.ts +0 -11
- package/dist/components/ActionIcon/types.js +0 -3
- package/dist/components/ActionIcon/types.js.map +0 -1
- package/dist/components/ActivityIndicator/index.js +0 -74
- package/dist/components/ActivityIndicator/index.js.map +0 -1
- package/dist/components/ActivityIndicator/styles.js +0 -3
- package/dist/components/ActivityIndicator/styles.js.map +0 -1
- package/dist/components/ActivityIndicator/types.js +0 -3
- package/dist/components/ActivityIndicator/types.js.map +0 -1
- package/dist/components/Badge/index.js +0 -100
- package/dist/components/Badge/index.js.map +0 -1
- package/dist/components/Badge/styles.js +0 -3
- package/dist/components/Badge/styles.js.map +0 -1
- package/dist/components/Badge/types.js +0 -3
- package/dist/components/Badge/types.js.map +0 -1
- package/dist/components/Button/index.js +0 -91
- package/dist/components/Button/index.js.map +0 -1
- package/dist/components/Button/styles.js +0 -3
- package/dist/components/Button/styles.js.map +0 -1
- package/dist/components/Button/types.js +0 -3
- package/dist/components/Button/types.js.map +0 -1
- package/dist/components/Carousel/index.js +0 -168
- package/dist/components/Carousel/index.js.map +0 -1
- package/dist/components/Carousel/styles.js +0 -3
- package/dist/components/Carousel/styles.js.map +0 -1
- package/dist/components/Carousel/types.js +0 -3
- package/dist/components/Carousel/types.js.map +0 -1
- package/dist/components/Checkbox/index.js +0 -129
- package/dist/components/Checkbox/index.js.map +0 -1
- package/dist/components/Checkbox/styles.js +0 -3
- package/dist/components/Checkbox/styles.js.map +0 -1
- package/dist/components/Checkbox/types.js +0 -3
- package/dist/components/Checkbox/types.js.map +0 -1
- package/dist/components/Collapse/index.js +0 -62
- package/dist/components/Collapse/index.js.map +0 -1
- package/dist/components/Collapse/styles.js +0 -3
- package/dist/components/Collapse/styles.js.map +0 -1
- package/dist/components/Collapse/types.js +0 -3
- package/dist/components/Collapse/types.js.map +0 -1
- package/dist/components/ColorPicker/index.js +0 -84
- package/dist/components/ColorPicker/index.js.map +0 -1
- package/dist/components/ColorPicker/styles.js +0 -3
- package/dist/components/ColorPicker/styles.js.map +0 -1
- package/dist/components/ColorPicker/types.js +0 -3
- package/dist/components/ColorPicker/types.js.map +0 -1
- package/dist/components/CropPicker/index.js +0 -79
- package/dist/components/CropPicker/index.js.map +0 -1
- package/dist/components/CropPicker/styles.js +0 -3
- package/dist/components/CropPicker/styles.js.map +0 -1
- package/dist/components/CropPicker/types.js +0 -3
- package/dist/components/CropPicker/types.js.map +0 -1
- package/dist/components/DatePicker/components/DayContent.d.ts +0 -11
- package/dist/components/DatePicker/components/DayContent.js +0 -43
- package/dist/components/DatePicker/components/DayContent.js.map +0 -1
- package/dist/components/DatePicker/components/Header.d.ts +0 -3
- package/dist/components/DatePicker/components/Header.js +0 -50
- package/dist/components/DatePicker/components/Header.js.map +0 -1
- package/dist/components/DatePicker/components/OuterInput.d.ts +0 -2
- package/dist/components/DatePicker/components/OuterInput.js +0 -36
- package/dist/components/DatePicker/components/OuterInput.js.map +0 -1
- package/dist/components/DatePicker/components/YearContent.d.ts +0 -9
- package/dist/components/DatePicker/components/YearContent.js +0 -33
- package/dist/components/DatePicker/components/YearContent.js.map +0 -1
- package/dist/components/DatePicker/components/index.d.ts +0 -4
- package/dist/components/DatePicker/components/index.js +0 -21
- package/dist/components/DatePicker/components/index.js.map +0 -1
- package/dist/components/DatePicker/index.js +0 -102
- package/dist/components/DatePicker/index.js.map +0 -1
- package/dist/components/DatePicker/styles.js +0 -3
- package/dist/components/DatePicker/styles.js.map +0 -1
- package/dist/components/DatePicker/types.js +0 -3
- package/dist/components/DatePicker/types.js.map +0 -1
- package/dist/components/Drawer/index.js +0 -139
- package/dist/components/Drawer/index.js.map +0 -1
- package/dist/components/Drawer/styles.js +0 -3
- package/dist/components/Drawer/styles.js.map +0 -1
- package/dist/components/Drawer/types.js +0 -3
- package/dist/components/Drawer/types.js.map +0 -1
- package/dist/components/Dropzone/index.js +0 -167
- package/dist/components/Dropzone/index.js.map +0 -1
- package/dist/components/Dropzone/styles.js +0 -3
- package/dist/components/Dropzone/styles.js.map +0 -1
- package/dist/components/Dropzone/types.js +0 -3
- package/dist/components/Dropzone/types.js.map +0 -1
- package/dist/components/EmptyPlaceholder/index.js +0 -86
- package/dist/components/EmptyPlaceholder/index.js.map +0 -1
- package/dist/components/EmptyPlaceholder/styles.js +0 -3
- package/dist/components/EmptyPlaceholder/styles.js.map +0 -1
- package/dist/components/EmptyPlaceholder/types.js +0 -3
- package/dist/components/EmptyPlaceholder/types.js.map +0 -1
- package/dist/components/FileInput/index.js +0 -136
- package/dist/components/FileInput/index.js.map +0 -1
- package/dist/components/FileInput/types.js +0 -3
- package/dist/components/FileInput/types.js.map +0 -1
- package/dist/components/Icon/index.js +0 -73
- package/dist/components/Icon/index.js.map +0 -1
- package/dist/components/Icon/styles.js +0 -3
- package/dist/components/Icon/styles.js.map +0 -1
- package/dist/components/Icon/types.js +0 -3
- package/dist/components/Icon/types.js.map +0 -1
- package/dist/components/InputBase/index.d.ts +0 -7
- package/dist/components/InputBase/index.js +0 -120
- package/dist/components/InputBase/index.js.map +0 -1
- package/dist/components/InputBase/styles.d.ts +0 -30
- package/dist/components/InputBase/styles.js +0 -73
- package/dist/components/InputBase/styles.js.map +0 -1
- package/dist/components/InputBase/types.d.ts +0 -37
- package/dist/components/InputBase/types.js +0 -3
- package/dist/components/InputBase/types.js.map +0 -1
- package/dist/components/InputBase/useInputBase.js +0 -54
- package/dist/components/InputBase/useInputBase.js.map +0 -1
- package/dist/components/InputBase/useInputBasePartialStyles.d.ts +0 -2
- package/dist/components/InputBase/useInputBasePartialStyles.js +0 -39
- package/dist/components/InputBase/useInputBasePartialStyles.js.map +0 -1
- package/dist/components/InputBase/utils.d.ts +0 -18
- package/dist/components/InputBase/utils.js +0 -63
- package/dist/components/InputBase/utils.js.map +0 -1
- package/dist/components/List/index.js +0 -138
- package/dist/components/List/index.js.map +0 -1
- package/dist/components/List/styles.js +0 -3
- package/dist/components/List/styles.js.map +0 -1
- package/dist/components/List/types.js +0 -3
- package/dist/components/List/types.js.map +0 -1
- package/dist/components/LoadingOverlay/index.js +0 -63
- package/dist/components/LoadingOverlay/index.js.map +0 -1
- package/dist/components/LoadingOverlay/styles.js +0 -3
- package/dist/components/LoadingOverlay/styles.js.map +0 -1
- package/dist/components/LoadingOverlay/types.js +0 -3
- package/dist/components/LoadingOverlay/types.js.map +0 -1
- package/dist/components/MaskedTextInput/index.js +0 -69
- package/dist/components/MaskedTextInput/index.js.map +0 -1
- package/dist/components/MaskedTextInput/mask.js +0 -37
- package/dist/components/MaskedTextInput/mask.js.map +0 -1
- package/dist/components/MaskedTextInput/types.js +0 -3
- package/dist/components/MaskedTextInput/types.js.map +0 -1
- package/dist/components/Modal/index.js +0 -217
- package/dist/components/Modal/index.js.map +0 -1
- package/dist/components/Modal/styles.js +0 -3
- package/dist/components/Modal/styles.js.map +0 -1
- package/dist/components/Modal/types.js +0 -3
- package/dist/components/Modal/types.js.map +0 -1
- package/dist/components/NumberIncrement/index.js +0 -102
- package/dist/components/NumberIncrement/index.js.map +0 -1
- package/dist/components/NumberIncrement/styles.js +0 -3
- package/dist/components/NumberIncrement/styles.js.map +0 -1
- package/dist/components/NumberIncrement/types.js +0 -3
- package/dist/components/NumberIncrement/types.js.map +0 -1
- package/dist/components/NumberIncrement/useNumberIncrement.js +0 -114
- package/dist/components/NumberIncrement/useNumberIncrement.js.map +0 -1
- package/dist/components/Overlay/index.js +0 -71
- package/dist/components/Overlay/index.js.map +0 -1
- package/dist/components/Overlay/styles.js +0 -3
- package/dist/components/Overlay/styles.js.map +0 -1
- package/dist/components/Overlay/types.js +0 -3
- package/dist/components/Overlay/types.js.map +0 -1
- package/dist/components/PaginationButtons/index.js +0 -131
- package/dist/components/PaginationButtons/index.js.map +0 -1
- package/dist/components/PaginationButtons/styles.js +0 -3
- package/dist/components/PaginationButtons/styles.js.map +0 -1
- package/dist/components/PaginationButtons/types.js +0 -3
- package/dist/components/PaginationButtons/types.js.map +0 -1
- package/dist/components/PaginationIndicator/index.js +0 -63
- package/dist/components/PaginationIndicator/index.js.map +0 -1
- package/dist/components/PaginationIndicator/styles.js +0 -3
- package/dist/components/PaginationIndicator/styles.js.map +0 -1
- package/dist/components/PaginationIndicator/types.js +0 -3
- package/dist/components/PaginationIndicator/types.js.map +0 -1
- package/dist/components/Progress/Bar/index.js +0 -76
- package/dist/components/Progress/Bar/index.js.map +0 -1
- package/dist/components/Progress/Bar/styles.js +0 -3
- package/dist/components/Progress/Bar/styles.js.map +0 -1
- package/dist/components/Progress/Bar/types.js +0 -3
- package/dist/components/Progress/Bar/types.js.map +0 -1
- package/dist/components/Progress/Circle/index.js +0 -82
- package/dist/components/Progress/Circle/index.js.map +0 -1
- package/dist/components/Progress/Circle/styles.js +0 -3
- package/dist/components/Progress/Circle/styles.js.map +0 -1
- package/dist/components/Progress/Circle/types.js +0 -3
- package/dist/components/Progress/Circle/types.js.map +0 -1
- package/dist/components/Progress/index.js +0 -19
- package/dist/components/Progress/index.js.map +0 -1
- package/dist/components/Progress/utils.js +0 -7
- package/dist/components/Progress/utils.js.map +0 -1
- package/dist/components/RadioInput/index.js +0 -83
- package/dist/components/RadioInput/index.js.map +0 -1
- package/dist/components/RadioInput/styles.js +0 -3
- package/dist/components/RadioInput/styles.js.map +0 -1
- package/dist/components/RadioInput/types.js +0 -3
- package/dist/components/RadioInput/types.js.map +0 -1
- package/dist/components/SearchInput/index.js +0 -101
- package/dist/components/SearchInput/index.js.map +0 -1
- package/dist/components/SectionFilters/index.js +0 -179
- package/dist/components/SectionFilters/index.js.map +0 -1
- package/dist/components/SectionFilters/styles.js +0 -3
- package/dist/components/SectionFilters/styles.js.map +0 -1
- package/dist/components/SectionFilters/types.js +0 -3
- package/dist/components/SectionFilters/types.js.map +0 -1
- package/dist/components/SegmentedControl/index.d.ts +0 -12
- package/dist/components/SegmentedControl/index.js +0 -149
- package/dist/components/SegmentedControl/index.js.map +0 -1
- package/dist/components/SegmentedControl/styles.d.ts +0 -4
- package/dist/components/SegmentedControl/styles.js +0 -3
- package/dist/components/SegmentedControl/styles.js.map +0 -1
- package/dist/components/SegmentedControl/types.d.ts +0 -39
- package/dist/components/SegmentedControl/types.js +0 -3
- package/dist/components/SegmentedControl/types.js.map +0 -1
- package/dist/components/Select/index.js +0 -383
- package/dist/components/Select/index.js.map +0 -1
- package/dist/components/Select/styles.js +0 -96
- package/dist/components/Select/styles.js.map +0 -1
- package/dist/components/Select/types.js +0 -3
- package/dist/components/Select/types.js.map +0 -1
- package/dist/components/Slider/index.js +0 -193
- package/dist/components/Slider/index.js.map +0 -1
- package/dist/components/Slider/styles.js +0 -3
- package/dist/components/Slider/styles.js.map +0 -1
- package/dist/components/Slider/types.js +0 -3
- package/dist/components/Slider/types.js.map +0 -1
- package/dist/components/Switch/index.js +0 -108
- package/dist/components/Switch/index.js.map +0 -1
- package/dist/components/Switch/styles.js +0 -3
- package/dist/components/Switch/styles.js.map +0 -1
- package/dist/components/Switch/types.js +0 -3
- package/dist/components/Switch/types.js.map +0 -1
- package/dist/components/Tag/index.js +0 -86
- package/dist/components/Tag/index.js.map +0 -1
- package/dist/components/Tag/styles.js +0 -3
- package/dist/components/Tag/styles.js.map +0 -1
- package/dist/components/Tag/types.js +0 -3
- package/dist/components/Tag/types.js.map +0 -1
- package/dist/components/Text/index.js +0 -102
- package/dist/components/Text/index.js.map +0 -1
- package/dist/components/Text/styles.js +0 -3
- package/dist/components/Text/styles.js.map +0 -1
- package/dist/components/Text/types.js +0 -3
- package/dist/components/Text/types.js.map +0 -1
- package/dist/components/TextEditor/index.js +0 -114
- package/dist/components/TextEditor/index.js.map +0 -1
- package/dist/components/TextEditor/styles.js +0 -3
- package/dist/components/TextEditor/styles.js.map +0 -1
- package/dist/components/TextEditor/types.js +0 -3
- package/dist/components/TextEditor/types.js.map +0 -1
- package/dist/components/TextInput/index.js +0 -141
- package/dist/components/TextInput/index.js.map +0 -1
- package/dist/components/TextInput/styles.js +0 -3
- package/dist/components/TextInput/styles.js.map +0 -1
- package/dist/components/TextInput/types.js +0 -3
- package/dist/components/TextInput/types.js.map +0 -1
- package/dist/components/TextInput/useTextInput.js +0 -65
- package/dist/components/TextInput/useTextInput.js.map +0 -1
- package/dist/components/Tooltip/index.js +0 -134
- package/dist/components/Tooltip/index.js.map +0 -1
- package/dist/components/Tooltip/styles.js +0 -3
- package/dist/components/Tooltip/styles.js.map +0 -1
- package/dist/components/Tooltip/types.js +0 -3
- package/dist/components/Tooltip/types.js.map +0 -1
- package/dist/components/Touchable/index.js +0 -125
- package/dist/components/Touchable/index.js.map +0 -1
- package/dist/components/Touchable/styles.js +0 -3
- package/dist/components/Touchable/styles.js.map +0 -1
- package/dist/components/Touchable/types.js +0 -3
- package/dist/components/Touchable/types.js.map +0 -1
- package/dist/components/View/index.js +0 -74
- package/dist/components/View/index.js.map +0 -1
- package/dist/components/View/styles.js +0 -3
- package/dist/components/View/styles.js.map +0 -1
- package/dist/components/View/types.js +0 -3
- package/dist/components/View/types.js.map +0 -1
- package/dist/components/VirtualList/context.d.ts +0 -3
- package/dist/components/VirtualList/context.js +0 -93
- package/dist/components/VirtualList/context.js.map +0 -1
- package/dist/components/VirtualList/index.d.ts +0 -5
- package/dist/components/VirtualList/index.js +0 -14
- package/dist/components/VirtualList/index.js.map +0 -1
- package/dist/components/VirtualList/list.d.ts +0 -3
- package/dist/components/VirtualList/list.js +0 -102
- package/dist/components/VirtualList/list.js.map +0 -1
- package/dist/components/VirtualList/types.d.ts +0 -33
- package/dist/components/VirtualList/types.js +0 -3
- package/dist/components/VirtualList/types.js.map +0 -1
- package/dist/components/components.js +0 -60
- package/dist/components/components.js.map +0 -1
- package/dist/index.js +0 -21
- package/dist/index.js.map +0 -1
- package/dist/lib/ListMasonry.js +0 -103
- package/dist/lib/ListMasonry.js.map +0 -1
- package/dist/lib/WebStyleRegistry.js +0 -70
- package/dist/lib/WebStyleRegistry.js.map +0 -1
- package/dist/lib/hooks/index.js +0 -37
- package/dist/lib/hooks/index.js.map +0 -1
- package/dist/lib/hooks/useAnimatedStyle.js +0 -20
- package/dist/lib/hooks/useAnimatedStyle.js.map +0 -1
- package/dist/lib/hooks/useAnimatedVariantStyles.js +0 -17
- package/dist/lib/hooks/useAnimatedVariantStyles.js.map +0 -1
- package/dist/lib/hooks/useBreakpointMatch.js +0 -124
- package/dist/lib/hooks/useBreakpointMatch.js.map +0 -1
- package/dist/lib/hooks/useClick.js +0 -36
- package/dist/lib/hooks/useClick.js.map +0 -1
- package/dist/lib/hooks/useClickOutside.js +0 -27
- package/dist/lib/hooks/useClickOutside.js.map +0 -1
- package/dist/lib/hooks/useCropPicker.d.ts +0 -36
- package/dist/lib/hooks/useCropPicker.js +0 -216
- package/dist/lib/hooks/useCropPicker.js.map +0 -1
- package/dist/lib/hooks/useFileInput.js +0 -17
- package/dist/lib/hooks/useFileInput.js.map +0 -1
- package/dist/lib/hooks/useIsomorphicEffect.js +0 -6
- package/dist/lib/hooks/useIsomorphicEffect.js.map +0 -1
- package/dist/lib/hooks/useKeydown.js +0 -37
- package/dist/lib/hooks/useKeydown.js.map +0 -1
- package/dist/lib/hooks/useMediaQuery.js +0 -21
- package/dist/lib/hooks/useMediaQuery.js.map +0 -1
- package/dist/lib/hooks/usePageExitBlocker.js +0 -41
- package/dist/lib/hooks/usePageExitBlocker.js.map +0 -1
- package/dist/lib/hooks/usePagination.js +0 -82
- package/dist/lib/hooks/usePagination.js.map +0 -1
- package/dist/lib/hooks/usePopState.js +0 -24
- package/dist/lib/hooks/usePopState.js.map +0 -1
- package/dist/lib/hooks/useRefresh.js +0 -115
- package/dist/lib/hooks/useRefresh.js.map +0 -1
- package/dist/lib/hooks/useScrollEffect.js +0 -27
- package/dist/lib/hooks/useScrollEffect.js.map +0 -1
- package/dist/lib/hooks/useSearchParams.js +0 -55
- package/dist/lib/hooks/useSearchParams.js.map +0 -1
- package/dist/lib/hooks/useStaticAnimationStyles.js +0 -24
- package/dist/lib/hooks/useStaticAnimationStyles.js.map +0 -1
- package/dist/lib/hooks/useStylesFor.js +0 -41
- package/dist/lib/hooks/useStylesFor.js.map +0 -1
- package/dist/lib/hooks/useWindowFocus.js +0 -31
- package/dist/lib/hooks/useWindowFocus.js.map +0 -1
- package/dist/lib/hooks/useWindowSize.js +0 -19
- package/dist/lib/hooks/useWindowSize.js.map +0 -1
- package/dist/lib/index.js +0 -22
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/tools/index.js +0 -20
- package/dist/lib/tools/index.js.map +0 -1
- package/dist/lib/tools/localStorage.js +0 -158
- package/dist/lib/tools/localStorage.js.map +0 -1
- package/dist/lib/tools/mediaQuery.js +0 -34
- package/dist/lib/tools/mediaQuery.js.map +0 -1
- package/dist/lib/tools/modal.js +0 -62
- package/dist/lib/tools/modal.js.map +0 -1
- package/dist/lib/utils/cache.js +0 -15
- package/dist/lib/utils/cache.js.map +0 -1
- package/dist/lib/utils/index.js +0 -21
- package/dist/lib/utils/index.js.map +0 -1
- package/dist/lib/utils/pollyfils/scroll.js +0 -66
- package/dist/lib/utils/pollyfils/scroll.js.map +0 -1
- package/dist/lib/utils/stopPropagation.js +0 -19
- package/dist/lib/utils/stopPropagation.js.map +0 -1
- package/dist/lib/utils/test.js +0 -13
- package/dist/lib/utils/test.js.map +0 -1
- package/dist/types/index.js +0 -18
- package/dist/types/index.js.map +0 -1
- package/dist/types/utility.js +0 -3
- package/dist/types/utility.js.map +0 -1
- package/package.json.bak +0 -65
- package/src/components/ActionIcon/index.tsx +0 -93
- package/src/components/ActionIcon/styles.ts +0 -8
- package/src/components/ActionIcon/types.ts +0 -15
- package/src/components/DatePicker/components/DayContent.tsx +0 -52
- package/src/components/DatePicker/components/Header.tsx +0 -79
- package/src/components/DatePicker/components/OuterInput.tsx +0 -17
- package/src/components/DatePicker/components/YearContent.tsx +0 -39
- package/src/components/DatePicker/components/index.tsx +0 -4
- package/src/components/InputBase/index.tsx +0 -138
- package/src/components/InputBase/styles.ts +0 -109
- package/src/components/InputBase/types.ts +0 -42
- package/src/components/InputBase/useInputBasePartialStyles.ts +0 -37
- package/src/components/InputBase/utils.ts +0 -84
- package/src/components/SegmentedControl/index.tsx +0 -223
- package/src/components/SegmentedControl/styles.ts +0 -12
- package/src/components/SegmentedControl/types.ts +0 -44
- package/src/components/VirtualList/context.tsx +0 -93
- package/src/components/VirtualList/index.tsx +0 -11
- package/src/components/VirtualList/list.tsx +0 -85
- package/src/components/VirtualList/types.ts +0 -38
- package/src/lib/hooks/useCropPicker.ts +0 -192
|
@@ -1,383 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
37
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
38
|
-
};
|
|
39
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
40
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
41
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
42
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
43
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
44
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
45
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
49
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
50
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
51
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
52
|
-
function step(op) {
|
|
53
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
54
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
55
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
56
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
57
|
-
switch (op[0]) {
|
|
58
|
-
case 0: case 1: t = op; break;
|
|
59
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
60
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
61
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
62
|
-
default:
|
|
63
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
64
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
65
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
66
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
67
|
-
if (t[2]) _.ops.pop();
|
|
68
|
-
_.trys.pop(); continue;
|
|
69
|
-
}
|
|
70
|
-
op = body.call(thisArg, _);
|
|
71
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
72
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
76
|
-
var t = {};
|
|
77
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
78
|
-
t[p] = s[p];
|
|
79
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
80
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
81
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
82
|
-
t[p[i]] = s[p[i]];
|
|
83
|
-
}
|
|
84
|
-
return t;
|
|
85
|
-
};
|
|
86
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
87
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
88
|
-
if (ar || !(i in from)) {
|
|
89
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
90
|
-
ar[i] = from[i];
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
94
|
-
};
|
|
95
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
96
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
97
|
-
};
|
|
98
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
99
|
-
exports.Select = void 0;
|
|
100
|
-
var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
101
|
-
var react_1 = __importStar(require("react"));
|
|
102
|
-
var hooks_1 = require("@codeleap/hooks");
|
|
103
|
-
var types_1 = require("@codeleap/types");
|
|
104
|
-
var react_select_1 = __importStar(require("react-select"));
|
|
105
|
-
var async_1 = __importDefault(require("react-select/async"));
|
|
106
|
-
var styles_1 = require("./styles");
|
|
107
|
-
var InputBase_1 = require("../InputBase");
|
|
108
|
-
var Button_1 = require("../Button");
|
|
109
|
-
var Text_1 = require("../Text");
|
|
110
|
-
var View_1 = require("../View");
|
|
111
|
-
var ActivityIndicator_1 = require("../ActivityIndicator");
|
|
112
|
-
var Icon_1 = require("../Icon");
|
|
113
|
-
var WebStyleRegistry_1 = require("../../lib/WebStyleRegistry");
|
|
114
|
-
var form_1 = require("@codeleap/form");
|
|
115
|
-
__exportStar(require("./styles"), exports);
|
|
116
|
-
__exportStar(require("./types"), exports);
|
|
117
|
-
var DefaultOption = function (props) {
|
|
118
|
-
var _a, _b, _c;
|
|
119
|
-
var isSelected = props.isSelected, optionsStyles = props.optionsStyles, label = props.label, selectedIcon = props.selectedIcon, _d = props.component, component = _d === void 0 ? null : _d, _e = props.itemProps, itemProps = _e === void 0 ? {} : _e, isFocused = props.isFocused, debugName = props.debugName;
|
|
120
|
-
var optionProps = (_a = props === null || props === void 0 ? void 0 : props.data) === null || _a === void 0 ? void 0 : _a.itemProps;
|
|
121
|
-
var styles = optionsStyles({ isSelected: isSelected, isFocused: isFocused, baseStyles: ((_c = (_b = optionProps === null || optionProps === void 0 ? void 0 : optionProps.style) !== null && _b !== void 0 ? _b : itemProps === null || itemProps === void 0 ? void 0 : itemProps.style) !== null && _c !== void 0 ? _c : {}) });
|
|
122
|
-
var _Component = null;
|
|
123
|
-
if (types_1.TypeGuards.isNil(component)) {
|
|
124
|
-
_Component = function () { return ((0, jsx_runtime_1.jsx)(Button_1.Button, __assign({ text: label,
|
|
125
|
-
// @ts-ignore
|
|
126
|
-
rightIcon: isSelected && selectedIcon, debugName: debugName }, itemProps, optionProps, { style: styles }))); };
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
_Component = component;
|
|
130
|
-
}
|
|
131
|
-
return ((0, jsx_runtime_1.jsx)(react_select_1.components.Option, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(_Component, __assign({}, props, { style: styles })) })));
|
|
132
|
-
};
|
|
133
|
-
var CustomMenu = function (props) {
|
|
134
|
-
var Footer = props.Footer, children = props.children;
|
|
135
|
-
return (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsxs)(react_select_1.components.Menu, __assign({}, props, { children: [children, !!Footer && (0, jsx_runtime_1.jsx)(Footer, {})] })) });
|
|
136
|
-
};
|
|
137
|
-
var CustomMenuList = function (props) {
|
|
138
|
-
var children = props.children, defaultStyles = props.defaultStyles;
|
|
139
|
-
return ((0, jsx_runtime_1.jsx)(react_select_1.components.MenuList, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(View_1.View, { style: defaultStyles.wrapper, children: children }) })));
|
|
140
|
-
};
|
|
141
|
-
var DefaultPlaceholder = function (props) {
|
|
142
|
-
var TextPlaceholder = props.text, defaultStyles = props.defaultStyles, _IconPlaceholder = props.icon, image = props.image, debugName = props.debugName;
|
|
143
|
-
var _Text = function () {
|
|
144
|
-
if (types_1.TypeGuards.isNil(TextPlaceholder))
|
|
145
|
-
return null;
|
|
146
|
-
if (types_1.TypeGuards.isString(TextPlaceholder)) {
|
|
147
|
-
return (0, jsx_runtime_1.jsx)(Text_1.Text, { debugName: debugName, text: TextPlaceholder, style: defaultStyles.text });
|
|
148
|
-
}
|
|
149
|
-
else if (react_1.default.isValidElement(TextPlaceholder)) {
|
|
150
|
-
return TextPlaceholder;
|
|
151
|
-
}
|
|
152
|
-
else if (types_1.TypeGuards.isFunction(TextPlaceholder)) {
|
|
153
|
-
return (0, jsx_runtime_1.jsx)(TextPlaceholder, __assign({}, props));
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
var imageContent = null;
|
|
157
|
-
if (react_1.default.isValidElement(image)) {
|
|
158
|
-
// @ts-ignore
|
|
159
|
-
imageContent = (0, jsx_runtime_1.jsx)("img", { src: image, css: defaultStyles.icon });
|
|
160
|
-
}
|
|
161
|
-
else if (types_1.TypeGuards.isString(_IconPlaceholder)) {
|
|
162
|
-
imageContent = (0, jsx_runtime_1.jsx)(Icon_1.Icon, { debugName: debugName, name: _IconPlaceholder, forceStyle: defaultStyles.icon });
|
|
163
|
-
}
|
|
164
|
-
else if (react_1.default.isValidElement(_IconPlaceholder)) {
|
|
165
|
-
// @ts-ignore
|
|
166
|
-
imageContent = (0, jsx_runtime_1.jsx)(View_1.View, { style: defaultStyles.icon, children: _IconPlaceholder });
|
|
167
|
-
}
|
|
168
|
-
else if (types_1.TypeGuards.isFunction(_IconPlaceholder)) {
|
|
169
|
-
imageContent = (0, jsx_runtime_1.jsx)(_IconPlaceholder, __assign({}, props));
|
|
170
|
-
}
|
|
171
|
-
return ((0, jsx_runtime_1.jsxs)(View_1.View, { style: defaultStyles.wrapper, children: [imageContent, (0, jsx_runtime_1.jsx)(_Text, {})] }));
|
|
172
|
-
};
|
|
173
|
-
var LoadingIndicator = function (props) {
|
|
174
|
-
var defaultStyles = props.defaultStyles, debugName = props.debugName;
|
|
175
|
-
return ((0, jsx_runtime_1.jsx)(View_1.View, { style: defaultStyles.wrapper, children: (0, jsx_runtime_1.jsx)(ActivityIndicator_1.ActivityIndicator, { debugName: debugName }) }));
|
|
176
|
-
};
|
|
177
|
-
var getMultiValue = function (values, separator, state) {
|
|
178
|
-
var value = '';
|
|
179
|
-
var hasMulti = (values === null || values === void 0 ? void 0 : values.length) > 1;
|
|
180
|
-
values.forEach(function (_a, i) {
|
|
181
|
-
var label = _a.label;
|
|
182
|
-
var isLast = (values === null || values === void 0 ? void 0 : values.length) - 1 === i;
|
|
183
|
-
var txt = (hasMulti && separator)
|
|
184
|
-
? label + (isLast && !(state === null || state === void 0 ? void 0 : state.searchable) ? '' : separator)
|
|
185
|
-
: label;
|
|
186
|
-
value = value + txt;
|
|
187
|
-
});
|
|
188
|
-
return value;
|
|
189
|
-
};
|
|
190
|
-
var CustomMultiValue = function (props) {
|
|
191
|
-
var selectProps = props.selectProps, index = props.index, defaultStyles = props.defaultStyles, separator = props.separator;
|
|
192
|
-
var searchable = selectProps === null || selectProps === void 0 ? void 0 : selectProps.isSearchable;
|
|
193
|
-
if (index !== 0 || selectProps.inputValue.length > 0)
|
|
194
|
-
return null;
|
|
195
|
-
// @ts-ignore
|
|
196
|
-
var text = getMultiValue(selectProps === null || selectProps === void 0 ? void 0 : selectProps.value, separator, { searchable: searchable });
|
|
197
|
-
return (0, jsx_runtime_1.jsx)(Text_1.Text, { text: text, style: defaultStyles.text });
|
|
198
|
-
};
|
|
199
|
-
var defaultFormatPlaceholderNoItems = function (props) {
|
|
200
|
-
return props.text + "\"".concat(props.selectProps.inputValue, "\"");
|
|
201
|
-
};
|
|
202
|
-
exports.Select = (0, react_1.forwardRef)(function (props, inputRef) {
|
|
203
|
-
var _a, _b;
|
|
204
|
-
var _c = (0, InputBase_1.selectInputBaseProps)(__assign(__assign({}, exports.Select.defaultProps), props)), inputBaseProps = _c.inputBaseProps, selectProps = _c.others;
|
|
205
|
-
var validate = selectProps.validate, style = selectProps.style, debugName = selectProps.debugName, onValueChange = selectProps.onValueChange, options = selectProps.options, value = selectProps.value, loadOptions = selectProps.loadOptions, multiple = selectProps.multiple, _d = selectProps.limit, limit = _d === void 0 ? null : _d, loadInitialValue = selectProps.loadInitialValue, focused = selectProps.focused, _error = selectProps._error, _e = selectProps.renderItem, OptionComponent = _e === void 0 ? null : _e, _f = selectProps.FooterComponent, FooterComponent = _f === void 0 ? null : _f, PlaceholderComponent = selectProps.PlaceholderComponent, PlaceholderNoItemsComponent = selectProps.PlaceholderNoItemsComponent, LoadingIndicatorComponent = selectProps.LoadingIndicatorComponent, noItemsText = selectProps.noItemsText, noItemsIcon = selectProps.noItemsIcon, noItemsImage = selectProps.noItemsImage, placeholderText = selectProps.placeholderText, placeholderIcon = selectProps.placeholderIcon, placeholderImage = selectProps.placeholderImage, showDropdownIcon = selectProps.showDropdownIcon, placeholder = selectProps.placeholder, clearable = selectProps.clearable, formatPlaceholderNoItems = selectProps.formatPlaceholderNoItems, _g = selectProps.closeOnSelect, closeOnSelect = _g === void 0 ? !multiple : _g, selectedIcon = selectProps.selectedIcon, onLoadOptionsError = selectProps.onLoadOptionsError, _h = selectProps.loadOptionsOnMount, loadOptionsOnMount = _h === void 0 ? (options === null || options === void 0 ? void 0 : options.length) === 0 : _h, searchable = selectProps.searchable, separatorMultiValue = selectProps.separatorMultiValue, _j = selectProps.filterItems, filterItems = _j === void 0 ? null : _j, _k = selectProps.itemProps, itemProps = _k === void 0 ? {} : _k, loadingIndicatorSize = selectProps.loadingIndicatorSize, _selectedOption = selectProps.selectedOption, _setSelectedOption = selectProps.setSelectedOption, loadingMessage = selectProps.loadingMessage, _l = selectProps.selectRef, selectRef = _l === void 0 ? null : _l, otherProps = __rest(selectProps, ["validate", "style", "debugName", "onValueChange", "options", "value", "loadOptions", "multiple", "limit", "loadInitialValue", "focused", "_error", "renderItem", "FooterComponent", "PlaceholderComponent", "PlaceholderNoItemsComponent", "LoadingIndicatorComponent", "noItemsText", "noItemsIcon", "noItemsImage", "placeholderText", "placeholderIcon", "placeholderImage", "showDropdownIcon", "placeholder", "clearable", "formatPlaceholderNoItems", "closeOnSelect", "selectedIcon", "onLoadOptionsError", "loadOptionsOnMount", "searchable", "separatorMultiValue", "filterItems", "itemProps", "loadingIndicatorSize", "selectedOption", "setSelectedOption", "loadingMessage", "selectRef"]);
|
|
206
|
-
var _innerInputRef = (0, react_1.useRef)(null);
|
|
207
|
-
var innerInputRef = selectRef || _innerInputRef;
|
|
208
|
-
var innerWrapperRef = (0, react_1.useRef)(null);
|
|
209
|
-
var hasSelectedOptionState = !types_1.TypeGuards.isNil(_selectedOption) && types_1.TypeGuards.isFunction(_setSelectedOption);
|
|
210
|
-
var initialValue = (loadInitialValue && !types_1.TypeGuards.isNil(options))
|
|
211
|
-
? options === null || options === void 0 ? void 0 : options.find(function (option) { return (option === null || option === void 0 ? void 0 : option.value) === value; })
|
|
212
|
-
: value;
|
|
213
|
-
var _m = hasSelectedOptionState ? [_selectedOption, _setSelectedOption] : (0, hooks_1.useState)(initialValue !== null && initialValue !== void 0 ? initialValue : value), selectedOption = _m[0], setSelectedOption = _m[1];
|
|
214
|
-
(0, hooks_1.useEffect)(function () {
|
|
215
|
-
if (loadInitialValue && !selectedOption && !!initialValue) {
|
|
216
|
-
setSelectedOption(initialValue);
|
|
217
|
-
}
|
|
218
|
-
}, [!!initialValue]);
|
|
219
|
-
var _o = (0, hooks_1.useState)(false), _isFocused = _o[0], setIsFocused = _o[1];
|
|
220
|
-
var _p = (0, hooks_1.useState)(false), loadedOptions = _p[0], setLoadedOptions = _p[1];
|
|
221
|
-
var _q = (0, hooks_1.useState)(false), keyDownActive = _q[0], setKeyDownActive = _q[1];
|
|
222
|
-
var isFocused = _isFocused || focused;
|
|
223
|
-
var validation = (0, form_1.useValidate)(value, validate);
|
|
224
|
-
var isDisabled = !!inputBaseProps.disabled;
|
|
225
|
-
var hasError = (validation === null || validation === void 0 ? void 0 : validation.showError) || _error;
|
|
226
|
-
var errorMessage = (validation === null || validation === void 0 ? void 0 : validation.message) || _error;
|
|
227
|
-
var _r = (0, styles_1.useSelectStyles)(__assign(__assign({}, props), { styleRegistryName: exports.Select.styleRegistryName }), {
|
|
228
|
-
error: !!hasError,
|
|
229
|
-
focused: isFocused,
|
|
230
|
-
disabled: isDisabled,
|
|
231
|
-
parentWidth: (_a = innerWrapperRef === null || innerWrapperRef === void 0 ? void 0 : innerWrapperRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth,
|
|
232
|
-
}), reactSelectStyles = _r.reactSelectStyles, styles = _r.styles, optionsStyles = _r.optionsStyles, placeholderStyles = _r.placeholderStyles, loadingStyles = _r.loadingStyles, inputMultiValueStyles = _r.inputMultiValueStyles, menuWrapperStyles = _r.menuWrapperStyles;
|
|
233
|
-
(0, react_1.useImperativeHandle)(inputRef, function () {
|
|
234
|
-
return __assign(__assign({}, innerInputRef.current), { focus: function () {
|
|
235
|
-
var _a, _b;
|
|
236
|
-
(_b = (_a = innerInputRef.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
237
|
-
} });
|
|
238
|
-
}, [!!((_b = innerInputRef === null || innerInputRef === void 0 ? void 0 : innerInputRef.current) === null || _b === void 0 ? void 0 : _b.focus)]);
|
|
239
|
-
var onLoadOptions = function (inputValue, cb) { return __awaiter(void 0, void 0, void 0, function () {
|
|
240
|
-
var _options, _initialValue, err_1;
|
|
241
|
-
var _a;
|
|
242
|
-
return __generator(this, function (_b) {
|
|
243
|
-
switch (_b.label) {
|
|
244
|
-
case 0:
|
|
245
|
-
if (!!!loadOptions) return [3 /*break*/, 5];
|
|
246
|
-
_b.label = 1;
|
|
247
|
-
case 1:
|
|
248
|
-
_b.trys.push([1, 3, , 4]);
|
|
249
|
-
return [4 /*yield*/, loadOptions(inputValue).then(function (options) {
|
|
250
|
-
cb(options);
|
|
251
|
-
return options;
|
|
252
|
-
})];
|
|
253
|
-
case 2:
|
|
254
|
-
_options = _b.sent();
|
|
255
|
-
if (loadInitialValue && !types_1.TypeGuards.isNil(_options) && !loadedOptions) {
|
|
256
|
-
_initialValue = (_a = _options === null || _options === void 0 ? void 0 : _options.find) === null || _a === void 0 ? void 0 : _a.call(_options, function (option) { return (option === null || option === void 0 ? void 0 : option.value) === value; });
|
|
257
|
-
if (!!_initialValue)
|
|
258
|
-
setSelectedOption(_initialValue);
|
|
259
|
-
}
|
|
260
|
-
setLoadedOptions(true);
|
|
261
|
-
return [2 /*return*/, _options];
|
|
262
|
-
case 3:
|
|
263
|
-
err_1 = _b.sent();
|
|
264
|
-
onLoadOptionsError === null || onLoadOptionsError === void 0 ? void 0 : onLoadOptionsError(err_1);
|
|
265
|
-
return [3 /*break*/, 4];
|
|
266
|
-
case 4: return [2 /*return*/];
|
|
267
|
-
case 5: return [2 /*return*/];
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
}); };
|
|
271
|
-
var handleChange = function (opt) {
|
|
272
|
-
if (types_1.TypeGuards.isArray(opt)) {
|
|
273
|
-
// @ts-ignore
|
|
274
|
-
if (types_1.TypeGuards.isNumber(limit) && (opt === null || opt === void 0 ? void 0 : opt.length) > limit && (opt === null || opt === void 0 ? void 0 : opt.length) > (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.length)) {
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
// @ts-ignore
|
|
278
|
-
setSelectedOption(opt);
|
|
279
|
-
// @ts-ignore
|
|
280
|
-
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(opt === null || opt === void 0 ? void 0 : opt.map(function (o) { return o === null || o === void 0 ? void 0 : o.value; }));
|
|
281
|
-
}
|
|
282
|
-
else {
|
|
283
|
-
// @ts-ignore
|
|
284
|
-
setSelectedOption(opt);
|
|
285
|
-
// @ts-ignore
|
|
286
|
-
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(opt === null || opt === void 0 ? void 0 : opt.value);
|
|
287
|
-
}
|
|
288
|
-
};
|
|
289
|
-
var handleBlur = react_1.default.useCallback(function (e) {
|
|
290
|
-
var _a;
|
|
291
|
-
validation === null || validation === void 0 ? void 0 : validation.onInputBlurred();
|
|
292
|
-
setIsFocused(false);
|
|
293
|
-
(_a = props === null || props === void 0 ? void 0 : props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
294
|
-
}, [validation === null || validation === void 0 ? void 0 : validation.onInputBlurred, props === null || props === void 0 ? void 0 : props.onBlur]);
|
|
295
|
-
var handleFocus = react_1.default.useCallback(function (e) {
|
|
296
|
-
var _a;
|
|
297
|
-
setIsFocused(true);
|
|
298
|
-
(_a = props === null || props === void 0 ? void 0 : props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
299
|
-
}, [props === null || props === void 0 ? void 0 : props.onFocus]);
|
|
300
|
-
var SelectComponent = !!loadOptions ? async_1.default : react_select_1.default;
|
|
301
|
-
var componentProps = {
|
|
302
|
-
focused: isFocused,
|
|
303
|
-
error: !!hasError,
|
|
304
|
-
disabled: isDisabled,
|
|
305
|
-
styles: styles,
|
|
306
|
-
debugName: debugName,
|
|
307
|
-
};
|
|
308
|
-
var _Placeholder = function (props) {
|
|
309
|
-
var hasInputValue = !!props.selectProps.inputValue;
|
|
310
|
-
var styles = placeholderStyles[hasInputValue ? 'noItems' : 'empty'];
|
|
311
|
-
var icon = hasInputValue ? noItemsIcon : placeholderIcon;
|
|
312
|
-
var image = hasInputValue ? noItemsImage : placeholderImage;
|
|
313
|
-
var placeholderProps = __assign(__assign(__assign({}, props), componentProps), { icon: icon, image: image, defaultStyles: styles });
|
|
314
|
-
if (!hasInputValue) {
|
|
315
|
-
return (0, jsx_runtime_1.jsx)(PlaceholderComponent, __assign({}, placeholderProps, { text: placeholderText }));
|
|
316
|
-
}
|
|
317
|
-
else {
|
|
318
|
-
var _Text = types_1.TypeGuards.isString(noItemsText) ? formatPlaceholderNoItems(__assign(__assign({}, placeholderProps), { text: noItemsText })) : noItemsText;
|
|
319
|
-
return (0, jsx_runtime_1.jsx)(PlaceholderNoItemsComponent, __assign({}, placeholderProps, { text: _Text }));
|
|
320
|
-
}
|
|
321
|
-
};
|
|
322
|
-
var _props = __assign({}, (!filterItems ? {} : { filterOption: filterItems }));
|
|
323
|
-
(0, hooks_1.onUpdate)(function () {
|
|
324
|
-
if (!_isFocused) {
|
|
325
|
-
setKeyDownActive(false);
|
|
326
|
-
}
|
|
327
|
-
}, [_isFocused]);
|
|
328
|
-
var handleKeyDown = function () {
|
|
329
|
-
setKeyDownActive(true);
|
|
330
|
-
};
|
|
331
|
-
var MenuComponent = react_1.default.useCallback(function (props) {
|
|
332
|
-
return (0, jsx_runtime_1.jsx)(CustomMenu, __assign({}, props, { Footer: FooterComponent }));
|
|
333
|
-
}, [FooterComponent]);
|
|
334
|
-
var MenuListComponent = react_1.default.useCallback(function (props) {
|
|
335
|
-
return (0, jsx_runtime_1.jsx)(CustomMenuList, __assign({}, props, { defaultStyles: menuWrapperStyles }));
|
|
336
|
-
}, []);
|
|
337
|
-
return ((0, jsx_runtime_1.jsx)(InputBase_1.InputBase, __assign({}, inputBaseProps, { debugName: debugName, error: hasError ? errorMessage : null, focused: isFocused, style: __assign(__assign({}, styles), { innerWrapper: __assign(__assign({}, styles.innerWrapper), (searchable ? styles['innerWrapper:searchable'] : {})) }), innerWrapperProps: __assign(__assign({}, (inputBaseProps.innerWrapperProps || {})), { onClick: function () {
|
|
338
|
-
var _a, _b;
|
|
339
|
-
(_b = (_a = innerInputRef.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
340
|
-
} }), innerWrapperRef: innerWrapperRef, children: (0, jsx_runtime_1.jsx)(SelectComponent, __assign({ openMenuOnFocus: true, hideSelectedOptions: false, tabSelectsValue: false, tabIndex: 0, backspaceRemovesValue: true, menuPortalTarget: typeof document === 'undefined' ? undefined : document.body }, otherProps, _props, { onKeyDown: isFocused ? handleKeyDown : null, onBlur: handleBlur, onFocus: handleFocus, onChange: handleChange, styles: reactSelectStyles, value: selectedOption, isMulti: multiple, options: options, loadOptions: onLoadOptions, defaultOptions: loadOptionsOnMount, ref: innerInputRef, closeMenuOnSelect: closeOnSelect, placeholder: (loadOptionsOnMount && !loadedOptions) ? loadingMessage : placeholder, isDisabled: isDisabled, isClearable: clearable, isSearchable: searchable, components: __assign(__assign({ LoadingIndicator: function () { return null; } }, otherProps.components), { MultiValueRemove: function () { return null; }, LoadingMessage: function (props) { return ((0, jsx_runtime_1.jsx)(LoadingIndicatorComponent, __assign({}, props, { defaultStyles: loadingStyles, size: loadingIndicatorSize, debugName: debugName }))); }, DropdownIndicator: function (props) { return showDropdownIcon ? (0, jsx_runtime_1.jsx)(react_select_1.components.DropdownIndicator, __assign({}, props)) : null; }, NoOptionsMessage: function (props) { return (0, jsx_runtime_1.jsx)(_Placeholder, __assign({}, props)); }, Menu: MenuComponent, MenuList: MenuListComponent, Option: function (props) { return ((0, jsx_runtime_1.jsx)(DefaultOption, __assign({}, props, componentProps, { itemProps: itemProps, selectedIcon: selectedIcon, optionsStyles: optionsStyles, component: OptionComponent, isFocused: (props === null || props === void 0 ? void 0 : props.isFocused) && keyDownActive }))); }, MultiValue: function (props) { return ((0, jsx_runtime_1.jsx)(CustomMultiValue, __assign({}, props, { separator: separatorMultiValue, defaultStyles: inputMultiValueStyles }))); } }) })) })));
|
|
341
|
-
});
|
|
342
|
-
exports.Select.styleRegistryName = 'Select';
|
|
343
|
-
exports.Select.elements = __spreadArray(__spreadArray([], InputBase_1.InputBase.elements, true), [
|
|
344
|
-
'item',
|
|
345
|
-
'listPortal',
|
|
346
|
-
'listHeader',
|
|
347
|
-
'listWrapper',
|
|
348
|
-
'list',
|
|
349
|
-
'inputContainer',
|
|
350
|
-
'input',
|
|
351
|
-
'placeholder',
|
|
352
|
-
'value',
|
|
353
|
-
'valueMultiple',
|
|
354
|
-
'valueWrapper',
|
|
355
|
-
'clearIcon',
|
|
356
|
-
'dropdownIcon',
|
|
357
|
-
], false);
|
|
358
|
-
exports.Select.rootElement = 'wrapper';
|
|
359
|
-
exports.Select.withVariantTypes = function (styles) {
|
|
360
|
-
return exports.Select;
|
|
361
|
-
};
|
|
362
|
-
exports.Select.defaultProps = {
|
|
363
|
-
PlaceholderComponent: DefaultPlaceholder,
|
|
364
|
-
PlaceholderNoItemsComponent: DefaultPlaceholder,
|
|
365
|
-
LoadingIndicatorComponent: LoadingIndicator,
|
|
366
|
-
noItemsText: 'No results for ',
|
|
367
|
-
placeholderText: 'Search items',
|
|
368
|
-
placeholderIcon: 'search',
|
|
369
|
-
showDropdownIcon: true,
|
|
370
|
-
placeholder: 'Select',
|
|
371
|
-
clearable: false,
|
|
372
|
-
formatPlaceholderNoItems: defaultFormatPlaceholderNoItems,
|
|
373
|
-
selectedIcon: 'check',
|
|
374
|
-
searchable: false,
|
|
375
|
-
separatorMultiValue: ', ',
|
|
376
|
-
itemProps: {},
|
|
377
|
-
loadingIndicatorSize: 20,
|
|
378
|
-
options: [],
|
|
379
|
-
loadInitialValue: false,
|
|
380
|
-
loadingMessage: 'loading...',
|
|
381
|
-
};
|
|
382
|
-
WebStyleRegistry_1.WebStyleRegistry.registerComponent(exports.Select);
|
|
383
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAsE;AACtE,yCAA+D;AAC/D,yCAAoD;AACpD,2DAA0G;AAC1G,6DAAsC;AACtC,mCAA0C;AAE1C,0CAA8D;AAC9D,oCAA+C;AAC/C,gCAA8B;AAC9B,gCAA8B;AAC9B,0DAAwD;AACxD,gCAA8B;AAC9B,+DAA6D;AAE7D,uCAA4C;AAE5C,2CAAwB;AACxB,0CAAuB;AAEvB,IAAM,aAAa,GAAG,UAAC,KAAkF;;IAErG,IAAA,UAAU,GAQR,KAAK,WARG,EACV,aAAa,GAOX,KAAK,cAPM,EACb,KAAK,GAMH,KAAK,MANF,EACL,YAAY,GAKV,KAAK,aALK,EACZ,KAIE,KAAK,UAJS,EAAhB,SAAS,mBAAG,IAAI,KAAA,EAChB,KAGE,KAAK,UAHqC,EAA5C,SAAS,mBAAG,EAAgC,KAAA,EAC5C,SAAS,GAEP,KAAK,UAFE,EACT,SAAS,GACP,KAAK,UADE,CACF;IAET,IAAM,WAAW,GAAG,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,0CAAE,SAAS,CAAA;IAE1C,IAAM,MAAM,GAAG,aAAa,CAAC,EAAE,UAAU,YAAA,EAAE,SAAS,WAAA,EAAE,UAAU,EAAE,CAAC,MAAA,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,mCAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,mCAAI,EAAE,CAAC,EAAE,CAA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AAO;IACrB,UAAU,EAAE,KAAK;IACjB,mBAAmB,EAAE,IAAI;IACzB,SAAS,EAAE,EAAiB;IAC5B,oBAAoB,EAAE,EAAE;IACxB,OAAO,EAAE,EAAE;IACX,gBAAgB,EAAE,KAAK;IACvB,cAAc,EAAE,YAAY;CACM,CAAA;AAEpC,mCAAgB,CAAC,iBAAiB,CAAC,cAAM,CAAC,CAAA"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.useSelectStyles = useSelectStyles;
|
|
15
|
-
var utils_1 = require("@codeleap/utils");
|
|
16
|
-
var styles_1 = require("@codeleap/styles");
|
|
17
|
-
var useStylesFor_1 = require("../../lib/hooks/useStylesFor");
|
|
18
|
-
function useSelectStyles(props, state) {
|
|
19
|
-
var style = props.style;
|
|
20
|
-
var error = state.error, focused = state.focused, disabled = state.disabled, parentWidth = state.parentWidth;
|
|
21
|
-
var styles = (0, useStylesFor_1.useStylesFor)(props === null || props === void 0 ? void 0 : props.styleRegistryName, style);
|
|
22
|
-
var stylesKey = function (key, _styles) {
|
|
23
|
-
if (_styles === void 0) { _styles = {}; }
|
|
24
|
-
return (__assign(__assign(__assign(__assign(__assign({}, _styles), styles[key]), (focused ? styles[key + ':focus'] : {})), (disabled ? styles[key + ':disabled'] : {})), (error ? styles[key + ':error'] : {})));
|
|
25
|
-
};
|
|
26
|
-
var optionNestedStyles = (0, styles_1.useNestedStylesByKey)('item', styles);
|
|
27
|
-
var optionStyleKey = function (key, state) {
|
|
28
|
-
var _a;
|
|
29
|
-
return __assign(__assign(__assign(__assign(__assign({}, stylesKey("item".concat((0, utils_1.capitalize)(key)))), ((state === null || state === void 0 ? void 0 : state.isSelected) ? optionNestedStyles["".concat(key, ":selected")] : {})), ((state === null || state === void 0 ? void 0 : state.isFocused) ? optionNestedStyles["".concat(key, ":focused")] : {})), ((state === null || state === void 0 ? void 0 : state.isFocused) && (state === null || state === void 0 ? void 0 : state.isSelected) ? optionNestedStyles["".concat(key, ":selectedFocused")] : {})), (_a = state.baseStyles) === null || _a === void 0 ? void 0 : _a[key]);
|
|
30
|
-
};
|
|
31
|
-
var optionsStyles = function (state) { return ({
|
|
32
|
-
wrapper: optionStyleKey('wrapper', state),
|
|
33
|
-
rightIcon: optionStyleKey('rightIcon', state),
|
|
34
|
-
text: optionStyleKey('text', state),
|
|
35
|
-
leftIcon: optionStyleKey('leftIcon', state),
|
|
36
|
-
icon: optionStyleKey('icon', state),
|
|
37
|
-
loaderWrapper: optionStyleKey('loaderWrapper', state),
|
|
38
|
-
}); };
|
|
39
|
-
var placeholderStyles = {
|
|
40
|
-
empty: {
|
|
41
|
-
wrapper: stylesKey('listPlaceholder'),
|
|
42
|
-
icon: stylesKey('listPlaceholderIcon'),
|
|
43
|
-
text: stylesKey('listPlaceholderText'),
|
|
44
|
-
},
|
|
45
|
-
noItems: {
|
|
46
|
-
wrapper: stylesKey('listPlaceholderNoItems'),
|
|
47
|
-
icon: stylesKey('listPlaceholderNoItemsIcon'),
|
|
48
|
-
text: stylesKey('listPlaceholderNoItemsText'),
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
var loadingStyles = {
|
|
52
|
-
wrapper: stylesKey('loadingIndicator'),
|
|
53
|
-
};
|
|
54
|
-
var inputMultiValueStyles = {
|
|
55
|
-
text: stylesKey('valueMultiple'),
|
|
56
|
-
};
|
|
57
|
-
var menuWrapperStyles = {
|
|
58
|
-
wrapper: stylesKey('itemsWrapper'),
|
|
59
|
-
};
|
|
60
|
-
var parseMenuPortalStyles = function (baseStyles) {
|
|
61
|
-
return __assign(__assign({}, baseStyles), { width: parentWidth, left: "calc(".concat(baseStyles.left, "px - ((").concat(parentWidth, "px - ").concat(baseStyles.width, "px) / 2))") });
|
|
62
|
-
};
|
|
63
|
-
var reactSelectStyles = {
|
|
64
|
-
container: function (baseStyles) { return stylesKey('inputContainer', baseStyles); },
|
|
65
|
-
control: function () { return stylesKey('inputContainer'); },
|
|
66
|
-
menuPortal: function (baseStyles) { return stylesKey('listPortal', parseMenuPortalStyles(baseStyles)); },
|
|
67
|
-
menu: function (baseStyles) { return stylesKey('listWrapper', baseStyles); },
|
|
68
|
-
menuList: function (baseStyles) { return stylesKey('list', baseStyles); },
|
|
69
|
-
group: function () { return ({}); },
|
|
70
|
-
indicatorSeparator: function () { return ({}); },
|
|
71
|
-
groupHeading: function (baseStyles) { return stylesKey('listHeader', baseStyles); },
|
|
72
|
-
clearIndicator: function () { return (__assign(__assign({}, stylesKey('iconIcon')), stylesKey('clearIcon'))); },
|
|
73
|
-
dropdownIndicator: function () { return (__assign(__assign({}, stylesKey('iconIcon')), stylesKey('dropdownIcon'))); },
|
|
74
|
-
indicatorsContainer: function (baseStyles) { return baseStyles; },
|
|
75
|
-
input: function (baseStyles) { return stylesKey('input', baseStyles); },
|
|
76
|
-
loadingIndicator: function () { return ({}); },
|
|
77
|
-
loadingMessage: function () { return ({}); },
|
|
78
|
-
multiValue: function () { return ({}); },
|
|
79
|
-
multiValueLabel: function () { return ({}); },
|
|
80
|
-
noOptionsMessage: function () { return ({}); },
|
|
81
|
-
option: function () { return ({}); },
|
|
82
|
-
placeholder: function () { return stylesKey('placeholder'); },
|
|
83
|
-
singleValue: function (baseStyles) { return stylesKey('value', baseStyles); },
|
|
84
|
-
valueContainer: function (baseStyles) { return stylesKey('valueWrapper', baseStyles); },
|
|
85
|
-
};
|
|
86
|
-
return {
|
|
87
|
-
styles: styles,
|
|
88
|
-
reactSelectStyles: reactSelectStyles,
|
|
89
|
-
optionsStyles: optionsStyles,
|
|
90
|
-
placeholderStyles: placeholderStyles,
|
|
91
|
-
loadingStyles: loadingStyles,
|
|
92
|
-
inputMultiValueStyles: inputMultiValueStyles,
|
|
93
|
-
menuWrapperStyles: menuWrapperStyles,
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Select/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;AA4DA,0CA+GC;AA3KD,yCAA4C;AAC5C,2CAA6D;AAK7D,6DAA2D;AAsD3D,SAAgB,eAAe,CAA2B,KAA2B,EAAE,KAAqB;IAClG,IAAA,KAAK,GAAK,KAAK,MAAV,CAAU;IAEf,IAAA,KAAK,GAAqC,KAAK,MAA1C,EAAE,OAAO,GAA4B,KAAK,QAAjC,EAAE,QAAQ,GAAkB,KAAK,SAAvB,EAAE,WAAW,GAAK,KAAK,YAAV,CAAU;IAEvD,IAAM,MAAM,GAAG,IAAA,2BAAY,EAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,iBAAiB,EAAE,KAAK,CAAC,CAAA;IAE5D,IAAM,SAAS,GAAG,UAAC,GAAsC,EAAE,OAAgC;QAAhC,wBAAA,EAAA,YAAgC;QAAK,OAAA,kDAC3F,OAAO,GACP,MAAM,CAAC,GAAG,CAAC,GACX,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GACvC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAC3C,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE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