@codeleap/mobile 2.3.27-2 → 2.3.27-3
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/package.json +1 -1
- package/src/components/List/index.tsx +2 -7
- package/src/components/Scroll/index.tsx +1 -12
- package/dist/components/ActionIcon/index.d.ts +0 -13
- package/dist/components/ActionIcon/index.js +0 -55
- package/dist/components/ActionIcon/index.js.map +0 -1
- package/dist/components/ActionIcon/styles.d.ts +0 -65
- package/dist/components/ActionIcon/styles.js +0 -61
- package/dist/components/ActionIcon/styles.js.map +0 -1
- package/dist/components/ActivityIndicator/index.d.ts +0 -15
- package/dist/components/ActivityIndicator/index.js +0 -59
- package/dist/components/ActivityIndicator/index.js.map +0 -1
- package/dist/components/ActivityIndicator/styles.d.ts +0 -59
- package/dist/components/ActivityIndicator/styles.js +0 -52
- package/dist/components/ActivityIndicator/styles.js.map +0 -1
- package/dist/components/Animated.d.ts +0 -124
- package/dist/components/Animated.js +0 -59
- package/dist/components/Animated.js.map +0 -1
- package/dist/components/Autocomplete/index.d.ts +0 -34
- package/dist/components/Autocomplete/index.js +0 -130
- package/dist/components/Autocomplete/index.js.map +0 -1
- package/dist/components/Autocomplete/styles.d.ts +0 -57
- package/dist/components/Autocomplete/styles.js +0 -89
- package/dist/components/Autocomplete/styles.js.map +0 -1
- package/dist/components/Autocomplete/types.d.ts +0 -59
- package/dist/components/Autocomplete/types.js +0 -3
- package/dist/components/Autocomplete/types.js.map +0 -1
- package/dist/components/Avatar/index.d.ts +0 -23
- package/dist/components/Avatar/index.js +0 -95
- package/dist/components/Avatar/index.js.map +0 -1
- package/dist/components/Avatar/styles.d.ts +0 -4
- package/dist/components/Avatar/styles.js +0 -7
- package/dist/components/Avatar/styles.js.map +0 -1
- package/dist/components/AvatarGroup/index.d.ts +0 -18
- package/dist/components/AvatarGroup/index.js +0 -70
- package/dist/components/AvatarGroup/index.js.map +0 -1
- package/dist/components/AvatarGroup/styles.d.ts +0 -4
- package/dist/components/AvatarGroup/styles.js +0 -7
- package/dist/components/AvatarGroup/styles.js.map +0 -1
- package/dist/components/Backdrop/index.d.ts +0 -14
- package/dist/components/Backdrop/index.js +0 -63
- package/dist/components/Backdrop/index.js.map +0 -1
- package/dist/components/Backdrop/styles.d.ts +0 -53
- package/dist/components/Backdrop/styles.js +0 -28
- package/dist/components/Backdrop/styles.js.map +0 -1
- package/dist/components/Badge/index.d.ts +0 -31
- package/dist/components/Badge/index.js +0 -110
- package/dist/components/Badge/index.js.map +0 -1
- package/dist/components/Badge/styles.d.ts +0 -5
- package/dist/components/Badge/styles.js +0 -7
- package/dist/components/Badge/styles.js.map +0 -1
- package/dist/components/Button/index.d.ts +0 -246
- package/dist/components/Button/index.js +0 -119
- package/dist/components/Button/index.js.map +0 -1
- package/dist/components/Button/styles.d.ts +0 -65
- package/dist/components/Button/styles.js +0 -61
- package/dist/components/Button/styles.js.map +0 -1
- package/dist/components/Calendar/index.d.ts +0 -15
- package/dist/components/Calendar/index.js +0 -80
- package/dist/components/Calendar/index.js.map +0 -1
- package/dist/components/Calendar/style.d.ts +0 -4
- package/dist/components/Calendar/style.js +0 -36
- package/dist/components/Calendar/style.js.map +0 -1
- package/dist/components/Calendar/types.d.ts +0 -95
- package/dist/components/Calendar/types.js +0 -3
- package/dist/components/Calendar/types.js.map +0 -1
- package/dist/components/Checkbox/index.d.ts +0 -15
- package/dist/components/Checkbox/index.js +0 -85
- package/dist/components/Checkbox/index.js.map +0 -1
- package/dist/components/Checkbox/styles.d.ts +0 -56
- package/dist/components/Checkbox/styles.js +0 -53
- package/dist/components/Checkbox/styles.js.map +0 -1
- package/dist/components/ContentView/index.d.ts +0 -12
- package/dist/components/ContentView/index.js +0 -66
- package/dist/components/ContentView/index.js.map +0 -1
- package/dist/components/ContentView/styles.d.ts +0 -53
- package/dist/components/ContentView/styles.js +0 -26
- package/dist/components/ContentView/styles.js.map +0 -1
- package/dist/components/DatePickerModal/index.d.ts +0 -8
- package/dist/components/DatePickerModal/index.js +0 -153
- package/dist/components/DatePickerModal/index.js.map +0 -1
- package/dist/components/DatePickerModal/styles.d.ts +0 -5
- package/dist/components/DatePickerModal/styles.js +0 -7
- package/dist/components/DatePickerModal/styles.js.map +0 -1
- package/dist/components/DatePickerModal/types.d.ts +0 -40
- package/dist/components/DatePickerModal/types.js +0 -3
- package/dist/components/DatePickerModal/types.js.map +0 -1
- package/dist/components/Drawer/index.d.ts +0 -7
- package/dist/components/Drawer/index.js +0 -70
- package/dist/components/Drawer/index.js.map +0 -1
- package/dist/components/Drawer/styles.d.ts +0 -56
- package/dist/components/Drawer/styles.js +0 -39
- package/dist/components/Drawer/styles.js.map +0 -1
- package/dist/components/EmptyPlaceholder/index.d.ts +0 -25
- package/dist/components/EmptyPlaceholder/index.js +0 -92
- package/dist/components/EmptyPlaceholder/index.js.map +0 -1
- package/dist/components/EmptyPlaceholder/styles.d.ts +0 -55
- package/dist/components/EmptyPlaceholder/styles.js +0 -30
- package/dist/components/EmptyPlaceholder/styles.js.map +0 -1
- package/dist/components/FileInput/index.d.ts +0 -24
- package/dist/components/FileInput/index.js +0 -183
- package/dist/components/FileInput/index.js.map +0 -1
- package/dist/components/FileInput/styles.d.ts +0 -53
- package/dist/components/FileInput/styles.js +0 -19
- package/dist/components/FileInput/styles.js.map +0 -1
- package/dist/components/Grid/index.d.ts +0 -32
- package/dist/components/Grid/index.js +0 -84
- package/dist/components/Grid/index.js.map +0 -1
- package/dist/components/Grid/styles.d.ts +0 -54
- package/dist/components/Grid/styles.js +0 -19
- package/dist/components/Grid/styles.js.map +0 -1
- package/dist/components/Icon/index.d.ts +0 -14
- package/dist/components/Icon/index.js +0 -79
- package/dist/components/Icon/index.js.map +0 -1
- package/dist/components/Icon/styles.d.ts +0 -61
- package/dist/components/Icon/styles.js +0 -49
- package/dist/components/Icon/styles.js.map +0 -1
- package/dist/components/Image/index.d.ts +0 -21
- package/dist/components/Image/index.js +0 -109
- package/dist/components/Image/index.js.map +0 -1
- package/dist/components/Image/styles.d.ts +0 -54
- package/dist/components/Image/styles.js +0 -25
- package/dist/components/Image/styles.js.map +0 -1
- package/dist/components/ImageView/Spotlight.d.ts +0 -25
- package/dist/components/ImageView/Spotlight.js +0 -154
- package/dist/components/ImageView/Spotlight.js.map +0 -1
- package/dist/components/ImageView/component.d.ts +0 -5
- package/dist/components/ImageView/component.js +0 -54
- package/dist/components/ImageView/component.js.map +0 -1
- package/dist/components/ImageView/index.d.ts +0 -2
- package/dist/components/ImageView/index.js +0 -19
- package/dist/components/ImageView/index.js.map +0 -1
- package/dist/components/InputBase/index.d.ts +0 -37
- package/dist/components/InputBase/index.js +0 -90
- package/dist/components/InputBase/index.js.map +0 -1
- package/dist/components/InputBase/styles.d.ts +0 -27
- package/dist/components/InputBase/styles.js +0 -92
- package/dist/components/InputBase/styles.js.map +0 -1
- package/dist/components/InputBase/types.d.ts +0 -28
- package/dist/components/InputBase/types.js +0 -3
- package/dist/components/InputBase/types.js.map +0 -1
- package/dist/components/InputBase/utils.d.ts +0 -11
- package/dist/components/InputBase/utils.js +0 -41
- package/dist/components/InputBase/utils.js.map +0 -1
- package/dist/components/InputLabel/index.d.ts +0 -12
- package/dist/components/InputLabel/index.js +0 -62
- package/dist/components/InputLabel/index.js.map +0 -1
- package/dist/components/InputLabel/styles.d.ts +0 -4
- package/dist/components/InputLabel/styles.js +0 -26
- package/dist/components/InputLabel/styles.js.map +0 -1
- package/dist/components/List/PaginationIndicator.d.ts +0 -67
- package/dist/components/List/PaginationIndicator.js +0 -51
- package/dist/components/List/PaginationIndicator.js.map +0 -1
- package/dist/components/List/index.d.ts +0 -31
- package/dist/components/List/index.js +0 -86
- package/dist/components/List/index.js.map +0 -1
- package/dist/components/List/styles.d.ts +0 -54
- package/dist/components/List/styles.js +0 -28
- package/dist/components/List/styles.js.map +0 -1
- package/dist/components/LoadingOverlay/index.d.ts +0 -11
- package/dist/components/LoadingOverlay/index.js +0 -66
- package/dist/components/LoadingOverlay/index.js.map +0 -1
- package/dist/components/LoadingOverlay/styles.d.ts +0 -5
- package/dist/components/LoadingOverlay/styles.js +0 -7
- package/dist/components/LoadingOverlay/styles.js.map +0 -1
- package/dist/components/Modal/index.d.ts +0 -43
- package/dist/components/Modal/index.js +0 -146
- package/dist/components/Modal/index.js.map +0 -1
- package/dist/components/Modal/styles.d.ts +0 -58
- package/dist/components/Modal/styles.js +0 -74
- package/dist/components/Modal/styles.js.map +0 -1
- package/dist/components/MultiSelect/index.d.ts +0 -6
- package/dist/components/MultiSelect/index.js +0 -123
- package/dist/components/MultiSelect/index.js.map +0 -1
- package/dist/components/MultiSelect/styles.d.ts +0 -7
- package/dist/components/MultiSelect/styles.js +0 -84
- package/dist/components/MultiSelect/styles.js.map +0 -1
- package/dist/components/MultiSelect/types.d.ts +0 -43
- package/dist/components/MultiSelect/types.js +0 -3
- package/dist/components/MultiSelect/types.js.map +0 -1
- package/dist/components/Navigation/Navigation.d.ts +0 -3
- package/dist/components/Navigation/Navigation.js +0 -84
- package/dist/components/Navigation/Navigation.js.map +0 -1
- package/dist/components/Navigation/constants.d.ts +0 -5
- package/dist/components/Navigation/constants.js +0 -11
- package/dist/components/Navigation/constants.js.map +0 -1
- package/dist/components/Navigation/index.d.ts +0 -3
- package/dist/components/Navigation/index.js +0 -20
- package/dist/components/Navigation/index.js.map +0 -1
- package/dist/components/Navigation/types.d.ts +0 -26
- package/dist/components/Navigation/types.js +0 -8
- package/dist/components/Navigation/types.js.map +0 -1
- package/dist/components/Navigation/utils.d.ts +0 -3
- package/dist/components/Navigation/utils.js +0 -69
- package/dist/components/Navigation/utils.js.map +0 -1
- package/dist/components/NumberIncrement/index.d.ts +0 -31
- package/dist/components/NumberIncrement/index.js +0 -232
- package/dist/components/NumberIncrement/index.js.map +0 -1
- package/dist/components/NumberIncrement/styles.d.ts +0 -5
- package/dist/components/NumberIncrement/styles.js +0 -7
- package/dist/components/NumberIncrement/styles.js.map +0 -1
- package/dist/components/NumberIncrement/types.d.ts +0 -35
- package/dist/components/NumberIncrement/types.js +0 -3
- package/dist/components/NumberIncrement/types.js.map +0 -1
- package/dist/components/NumberIncrement/utils.d.ts +0 -5
- package/dist/components/NumberIncrement/utils.js +0 -27
- package/dist/components/NumberIncrement/utils.js.map +0 -1
- package/dist/components/Pager/index.d.ts +0 -26
- package/dist/components/Pager/index.js +0 -88
- package/dist/components/Pager/index.js.map +0 -1
- package/dist/components/Pager/styles.d.ts +0 -87
- package/dist/components/Pager/styles.js +0 -72
- package/dist/components/Pager/styles.js.map +0 -1
- package/dist/components/RadioInput/index.d.ts +0 -27
- package/dist/components/RadioInput/index.js +0 -76
- package/dist/components/RadioInput/index.js.map +0 -1
- package/dist/components/RadioInput/styles.d.ts +0 -58
- package/dist/components/RadioInput/styles.js +0 -50
- package/dist/components/RadioInput/styles.js.map +0 -1
- package/dist/components/RefreshControl/index.d.ts +0 -9
- package/dist/components/RefreshControl/index.js +0 -31
- package/dist/components/RefreshControl/index.js.map +0 -1
- package/dist/components/RefreshControl/styles.d.ts +0 -2
- package/dist/components/RefreshControl/styles.js +0 -7
- package/dist/components/RefreshControl/styles.js.map +0 -1
- package/dist/components/Scroll/index.d.ts +0 -20
- package/dist/components/Scroll/index.js +0 -102
- package/dist/components/Scroll/index.js.map +0 -1
- package/dist/components/Scroll/styles.d.ts +0 -53
- package/dist/components/Scroll/styles.js +0 -26
- package/dist/components/Scroll/styles.js.map +0 -1
- package/dist/components/Sections/index.d.ts +0 -11
- package/dist/components/Sections/index.js +0 -80
- package/dist/components/Sections/index.js.map +0 -1
- package/dist/components/Sections/styles.d.ts +0 -2
- package/dist/components/Sections/styles.js +0 -7
- package/dist/components/Sections/styles.js.map +0 -1
- package/dist/components/SegmentedControl/Option.d.ts +0 -16
- package/dist/components/SegmentedControl/Option.js +0 -38
- package/dist/components/SegmentedControl/Option.js.map +0 -1
- package/dist/components/SegmentedControl/index.d.ts +0 -52
- package/dist/components/SegmentedControl/index.js +0 -134
- package/dist/components/SegmentedControl/index.js.map +0 -1
- package/dist/components/SegmentedControl/styles.d.ts +0 -60
- package/dist/components/SegmentedControl/styles.js +0 -43
- package/dist/components/SegmentedControl/styles.js.map +0 -1
- package/dist/components/Select/index.d.ts +0 -16
- package/dist/components/Select/index.js +0 -126
- package/dist/components/Select/index.js.map +0 -1
- package/dist/components/Select/styles.d.ts +0 -60
- package/dist/components/Select/styles.js +0 -83
- package/dist/components/Select/styles.js.map +0 -1
- package/dist/components/Select/types.d.ts +0 -43
- package/dist/components/Select/types.js +0 -3
- package/dist/components/Select/types.js.map +0 -1
- package/dist/components/Slider/Mark.d.ts +0 -3
- package/dist/components/Slider/Mark.js +0 -32
- package/dist/components/Slider/Mark.js.map +0 -1
- package/dist/components/Slider/Thumb.d.ts +0 -7
- package/dist/components/Slider/Thumb.js +0 -30
- package/dist/components/Slider/Thumb.js.map +0 -1
- package/dist/components/Slider/index.d.ts +0 -4
- package/dist/components/Slider/index.js +0 -103
- package/dist/components/Slider/index.js.map +0 -1
- package/dist/components/Slider/styles.d.ts +0 -54
- package/dist/components/Slider/styles.js +0 -61
- package/dist/components/Slider/styles.js.map +0 -1
- package/dist/components/Slider/types.d.ts +0 -26
- package/dist/components/Slider/types.js +0 -3
- package/dist/components/Slider/types.js.map +0 -1
- package/dist/components/Switch/index.d.ts +0 -14
- package/dist/components/Switch/index.js +0 -85
- package/dist/components/Switch/index.js.map +0 -1
- package/dist/components/Switch/styles.d.ts +0 -55
- package/dist/components/Switch/styles.js +0 -34
- package/dist/components/Switch/styles.js.map +0 -1
- package/dist/components/Text/index.d.ts +0 -25
- package/dist/components/Text/index.js +0 -125
- package/dist/components/Text/index.js.map +0 -1
- package/dist/components/Text/styles.d.ts +0 -70
- package/dist/components/Text/styles.js +0 -34
- package/dist/components/Text/styles.js.map +0 -1
- package/dist/components/TextInput/index.d.ts +0 -181
- package/dist/components/TextInput/index.js +0 -217
- package/dist/components/TextInput/index.js.map +0 -1
- package/dist/components/TextInput/styles.d.ts +0 -63
- package/dist/components/TextInput/styles.js +0 -65
- package/dist/components/TextInput/styles.js.map +0 -1
- package/dist/components/Touchable/index.d.ts +0 -22
- package/dist/components/Touchable/index.js +0 -169
- package/dist/components/Touchable/index.js.map +0 -1
- package/dist/components/Touchable/styles.d.ts +0 -58
- package/dist/components/Touchable/styles.js +0 -24
- package/dist/components/Touchable/styles.js.map +0 -1
- package/dist/components/View/index.d.ts +0 -132
- package/dist/components/View/index.js +0 -108
- package/dist/components/View/index.js.map +0 -1
- package/dist/components/View/styles.d.ts +0 -54
- package/dist/components/View/styles.js +0 -29
- package/dist/components/View/styles.js.map +0 -1
- package/dist/components/components.d.ts +0 -38
- package/dist/components/components.js +0 -68
- package/dist/components/components.js.map +0 -1
- package/dist/components/defaultStyles.d.ts +0 -1465
- package/dist/components/defaultStyles.js +0 -65
- package/dist/components/defaultStyles.js.map +0 -1
- package/dist/components/legacy/Modal/index.d.ts +0 -28
- package/dist/components/legacy/Modal/index.js +0 -114
- package/dist/components/legacy/Modal/index.js.map +0 -1
- package/dist/components/legacy/Modal/styles.d.ts +0 -64
- package/dist/components/legacy/Modal/styles.js +0 -60
- package/dist/components/legacy/Modal/styles.js.map +0 -1
- package/dist/components/legacy/Pager/index.d.ts +0 -20
- package/dist/components/legacy/Pager/index.js +0 -168
- package/dist/components/legacy/Pager/index.js.map +0 -1
- package/dist/components/legacy/Pager/styles.d.ts +0 -54
- package/dist/components/legacy/Pager/styles.js +0 -44
- package/dist/components/legacy/Pager/styles.js.map +0 -1
- package/dist/components/legacy/index.d.ts +0 -2
- package/dist/components/legacy/index.js +0 -19
- package/dist/components/legacy/index.js.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -43
- package/dist/index.js.map +0 -1
- package/dist/modules/PressableRipple/index.d.ts +0 -2
- package/dist/modules/PressableRipple/index.js +0 -9
- package/dist/modules/PressableRipple/index.js.map +0 -1
- package/dist/modules/PressableRipple/ripple.d.ts +0 -30
- package/dist/modules/PressableRipple/ripple.js +0 -213
- package/dist/modules/PressableRipple/ripple.js.map +0 -1
- package/dist/modules/PressableRipple/styles.d.ts +0 -19
- package/dist/modules/PressableRipple/styles.js +0 -29
- package/dist/modules/PressableRipple/styles.js.map +0 -1
- package/dist/modules/PressableRipple/type.d.ts +0 -11
- package/dist/modules/PressableRipple/type.js +0 -3
- package/dist/modules/PressableRipple/type.js.map +0 -1
- package/dist/modules/documentPicker.d.ts +0 -3
- package/dist/modules/documentPicker.js +0 -12
- package/dist/modules/documentPicker.js.map +0 -1
- package/dist/modules/fastImage.d.ts +0 -1
- package/dist/modules/fastImage.js +0 -10
- package/dist/modules/fastImage.js.map +0 -1
- package/dist/modules/reactNavigation.d.ts +0 -5
- package/dist/modules/reactNavigation.js +0 -26
- package/dist/modules/reactNavigation.js.map +0 -1
- package/dist/modules/rnDeviceInfo.d.ts +0 -2
- package/dist/modules/rnDeviceInfo.js +0 -10
- package/dist/modules/rnDeviceInfo.js.map +0 -1
- package/dist/modules/textInputMask.d.ts +0 -10
- package/dist/modules/textInputMask.js +0 -23
- package/dist/modules/textInputMask.js.map +0 -1
- package/dist/modules/types/fileTypes.d.ts +0 -138
- package/dist/modules/types/fileTypes.js +0 -3
- package/dist/modules/types/fileTypes.js.map +0 -1
- package/dist/modules/types/textInputMask.d.ts +0 -7
- package/dist/modules/types/textInputMask.js +0 -3
- package/dist/modules/types/textInputMask.js.map +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +0 -18
- package/dist/types/index.js.map +0 -1
- package/dist/types/utility.d.ts +0 -8
- package/dist/types/utility.js +0 -3
- package/dist/types/utility.js.map +0 -1
- package/dist/utils/KeyboardAware/context.d.ts +0 -13
- package/dist/utils/KeyboardAware/context.js +0 -63
- package/dist/utils/KeyboardAware/context.js.map +0 -1
- package/dist/utils/KeyboardAware/index.d.ts +0 -8
- package/dist/utils/KeyboardAware/index.js +0 -33
- package/dist/utils/KeyboardAware/index.js.map +0 -1
- package/dist/utils/KeyboardAware/keyboardHooks.d.ts +0 -26
- package/dist/utils/KeyboardAware/keyboardHooks.js +0 -87
- package/dist/utils/KeyboardAware/keyboardHooks.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.d.ts +0 -3
- package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.js +0 -9
- package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.d.ts +0 -67
- package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js +0 -451
- package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.d.ts +0 -7
- package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.js +0 -4
- package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.d.ts +0 -3
- package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.js +0 -10
- package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.d.ts +0 -3
- package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.js +0 -10
- package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.js.map +0 -1
- package/dist/utils/KeyboardAware/types.d.ts +0 -1
- package/dist/utils/KeyboardAware/types.js +0 -7
- package/dist/utils/KeyboardAware/types.js.map +0 -1
- package/dist/utils/ModalManager/components.d.ts +0 -20
- package/dist/utils/ModalManager/components.js +0 -118
- package/dist/utils/ModalManager/components.js.map +0 -1
- package/dist/utils/ModalManager/context.d.ts +0 -48
- package/dist/utils/ModalManager/context.js +0 -205
- package/dist/utils/ModalManager/context.js.map +0 -1
- package/dist/utils/ModalManager/index.d.ts +0 -11
- package/dist/utils/ModalManager/index.js +0 -13
- package/dist/utils/ModalManager/index.js.map +0 -1
- package/dist/utils/OSAlert.d.ts +0 -32
- package/dist/utils/OSAlert.js +0 -143
- package/dist/utils/OSAlert.js.map +0 -1
- package/dist/utils/PermissionManager/context.d.ts +0 -53
- package/dist/utils/PermissionManager/context.js +0 -324
- package/dist/utils/PermissionManager/context.js.map +0 -1
- package/dist/utils/PermissionManager/index.d.ts +0 -4
- package/dist/utils/PermissionManager/index.js +0 -9
- package/dist/utils/PermissionManager/index.js.map +0 -1
- package/dist/utils/PermissionManager/types.d.ts +0 -13
- package/dist/utils/PermissionManager/types.js +0 -3
- package/dist/utils/PermissionManager/types.js.map +0 -1
- package/dist/utils/hooks.d.ts +0 -44
- package/dist/utils/hooks.js +0 -186
- package/dist/utils/hooks.js.map +0 -1
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/index.js +0 -40
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/input.d.ts +0 -35
- package/dist/utils/input.js +0 -49
- package/dist/utils/input.js.map +0 -1
- package/dist/utils/locale.d.ts +0 -1
- package/dist/utils/locale.js +0 -10
- package/dist/utils/locale.js.map +0 -1
- package/dist/utils/misc.d.ts +0 -6
- package/dist/utils/misc.js +0 -87
- package/dist/utils/misc.js.map +0 -1
- package/dist/utils/notifications.d.ts +0 -34
- package/dist/utils/notifications.js +0 -268
- package/dist/utils/notifications.js.map +0 -1
- package/dist/utils/theme.d.ts +0 -42
- package/dist/utils/theme.js +0 -50
- package/dist/utils/theme.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reactNavigation.js","sourceRoot":"","sources":["../../src/modules/reactNavigation.ts"],"names":[],"mappings":";;;;;;AAAA,cAAc;AACd,gDAAyB;AACzB,iDAA8D;AAArD,6GAAA,oBAAoB,OAAA;AAC7B,mDAAgE;AAAvD,+GAAA,qBAAqB,OAAA;AAC9B,6DAAwE;AAA/D,uHAAA,wBAAwB,OAAA;AACjC,+CAAyF;AACzF,mDAAuD;AAA9C,sGAAA,YAAY,OAAA;AAErB,SAAgB,oBAAoB;IAClC,IAAM,IAAI,GAAG,eAAK,CAAC,UAAU,CAAC,oCAA6B,CAAC,CAAA;IAC5D,IAAM,UAAU,GAAG,eAAK,CAAC,UAAU,CAAC,wBAAiB,CAAC,CAAA;IACtD,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAA;IAE1C,OAAO,CAAC,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,IAAI,CAAiB,CAAA;AAC7C,CAAC;AAND,oDAMC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DeviceInfo = void 0;
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
var react_native_device_info_1 = __importDefault(require("react-native-device-info"));
|
|
9
|
-
exports.DeviceInfo = react_native_device_info_1.default;
|
|
10
|
-
//# sourceMappingURL=rnDeviceInfo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rnDeviceInfo.js","sourceRoot":"","sources":["../../src/modules/rnDeviceInfo.ts"],"names":[],"mappings":";;;;;;AAAA,aAAa;AACb,sFAAiD;AAG7C,qBAHG,kCAAU,CAGH"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const MaskedTextInput: import("react").ForwardRefExoticComponent<Omit<import("react-native-masked-text").TextInputMaskProps, keyof import("react-native").TextInputProps> & {
|
|
3
|
-
masking: Partial<import("@codeleap/common/dist/types/third-party/react-native-masked-text").TextInputMaskProps> & {
|
|
4
|
-
saveFormatted?: boolean;
|
|
5
|
-
};
|
|
6
|
-
onChangeText: (text: string, rawText?: string) => void;
|
|
7
|
-
} & {
|
|
8
|
-
ref?: any;
|
|
9
|
-
}>;
|
|
10
|
-
export * from './types/textInputMask';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.MaskedTextInput = void 0;
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
// import MaskInput from 'react-native-mask-input'
|
|
20
|
-
var react_native_masked_text_1 = require("react-native-masked-text");
|
|
21
|
-
exports.MaskedTextInput = react_native_masked_text_1.TextInputMask;
|
|
22
|
-
__exportStar(require("./types/textInputMask"), exports);
|
|
23
|
-
//# sourceMappingURL=textInputMask.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textInputMask.js","sourceRoot":"","sources":["../../src/modules/textInputMask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,aAAa;AACb,kDAAkD;AAClD,qEAAwD;AAI3C,QAAA,eAAe,GAAG,wCAE7B,CAAA;AAEF,wDAAqC"}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
declare const mimeTypes: Readonly<{
|
|
2
|
-
readonly allFiles: '*/*';
|
|
3
|
-
readonly audio: 'audio/*';
|
|
4
|
-
readonly csv: 'text/csv';
|
|
5
|
-
readonly doc: 'application/msword';
|
|
6
|
-
readonly docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
|
|
7
|
-
readonly images: 'image/*';
|
|
8
|
-
readonly pdf: 'application/pdf';
|
|
9
|
-
readonly plainText: 'text/plain';
|
|
10
|
-
readonly ppt: 'application/vnd.ms-powerpoint';
|
|
11
|
-
readonly pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation';
|
|
12
|
-
readonly video: 'video/*';
|
|
13
|
-
readonly xls: 'application/vnd.ms-excel';
|
|
14
|
-
readonly xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
|
|
15
|
-
readonly zip: 'application/zip';
|
|
16
|
-
}>;
|
|
17
|
-
declare const utis: Readonly<{
|
|
18
|
-
readonly allFiles: 'public.item';
|
|
19
|
-
readonly audio: 'public.audio';
|
|
20
|
-
readonly csv: 'public.comma-separated-values-text';
|
|
21
|
-
readonly doc: 'com.microsoft.word.doc';
|
|
22
|
-
readonly docx: 'org.openxmlformats.wordprocessingml.document';
|
|
23
|
-
readonly images: 'public.image';
|
|
24
|
-
readonly pdf: 'com.adobe.pdf';
|
|
25
|
-
readonly plainText: 'public.plain-text';
|
|
26
|
-
readonly ppt: 'com.microsoft.powerpoint.ppt';
|
|
27
|
-
readonly pptx: 'org.openxmlformats.presentationml.presentation';
|
|
28
|
-
readonly video: 'public.movie';
|
|
29
|
-
readonly xls: 'com.microsoft.excel.xls';
|
|
30
|
-
readonly xlsx: 'org.openxmlformats.spreadsheetml.sheet';
|
|
31
|
-
readonly zip: 'public.zip-archive';
|
|
32
|
-
}>;
|
|
33
|
-
declare const extensions: Readonly<{
|
|
34
|
-
readonly allFiles: '*';
|
|
35
|
-
readonly audio: '.3g2 .3gp .aac .adt .adts .aif .aifc .aiff .asf .au .m3u .m4a .m4b .mid .midi .mp2 .mp3 .mp4 .rmi .snd .wav .wax .wma';
|
|
36
|
-
readonly csv: '.csv';
|
|
37
|
-
readonly doc: '.doc';
|
|
38
|
-
readonly docx: '.docx';
|
|
39
|
-
readonly images: '.jpeg .jpg .png';
|
|
40
|
-
readonly pdf: '.pdf';
|
|
41
|
-
readonly plainText: '.txt';
|
|
42
|
-
readonly ppt: '.ppt';
|
|
43
|
-
readonly pptx: '.pptx';
|
|
44
|
-
readonly video: '.mp4';
|
|
45
|
-
readonly xls: '.xls';
|
|
46
|
-
readonly xlsx: '.xlsx';
|
|
47
|
-
readonly zip: '.zip .gz';
|
|
48
|
-
}>;
|
|
49
|
-
export declare type PlatformTypes = {
|
|
50
|
-
android: typeof mimeTypes;
|
|
51
|
-
ios: typeof utis;
|
|
52
|
-
windows: typeof extensions;
|
|
53
|
-
};
|
|
54
|
-
export declare type SupportedPlatforms = 'ios' | 'android' | 'windows';
|
|
55
|
-
export declare const perPlatformTypes: {
|
|
56
|
-
android: Readonly<{
|
|
57
|
-
readonly allFiles: '*/*';
|
|
58
|
-
readonly audio: 'audio/*';
|
|
59
|
-
readonly csv: 'text/csv';
|
|
60
|
-
readonly doc: 'application/msword';
|
|
61
|
-
readonly docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
|
|
62
|
-
readonly images: 'image/*';
|
|
63
|
-
readonly pdf: 'application/pdf';
|
|
64
|
-
readonly plainText: 'text/plain';
|
|
65
|
-
readonly ppt: 'application/vnd.ms-powerpoint';
|
|
66
|
-
readonly pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation';
|
|
67
|
-
readonly video: 'video/*';
|
|
68
|
-
readonly xls: 'application/vnd.ms-excel';
|
|
69
|
-
readonly xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
|
|
70
|
-
readonly zip: 'application/zip';
|
|
71
|
-
}>;
|
|
72
|
-
ios: Readonly<{
|
|
73
|
-
readonly allFiles: 'public.item';
|
|
74
|
-
readonly audio: 'public.audio';
|
|
75
|
-
readonly csv: 'public.comma-separated-values-text';
|
|
76
|
-
readonly doc: 'com.microsoft.word.doc';
|
|
77
|
-
readonly docx: 'org.openxmlformats.wordprocessingml.document';
|
|
78
|
-
readonly images: 'public.image';
|
|
79
|
-
readonly pdf: 'com.adobe.pdf';
|
|
80
|
-
readonly plainText: 'public.plain-text';
|
|
81
|
-
readonly ppt: 'com.microsoft.powerpoint.ppt';
|
|
82
|
-
readonly pptx: 'org.openxmlformats.presentationml.presentation';
|
|
83
|
-
readonly video: 'public.movie';
|
|
84
|
-
readonly xls: 'com.microsoft.excel.xls';
|
|
85
|
-
readonly xlsx: 'org.openxmlformats.spreadsheetml.sheet';
|
|
86
|
-
readonly zip: 'public.zip-archive';
|
|
87
|
-
}>;
|
|
88
|
-
windows: Readonly<{
|
|
89
|
-
readonly allFiles: '*';
|
|
90
|
-
readonly audio: '.3g2 .3gp .aac .adt .adts .aif .aifc .aiff .asf .au .m3u .m4a .m4b .mid .midi .mp2 .mp3 .mp4 .rmi .snd .wav .wax .wma';
|
|
91
|
-
readonly csv: '.csv';
|
|
92
|
-
readonly doc: '.doc';
|
|
93
|
-
readonly docx: '.docx';
|
|
94
|
-
readonly images: '.jpeg .jpg .png';
|
|
95
|
-
readonly pdf: '.pdf';
|
|
96
|
-
readonly plainText: '.txt';
|
|
97
|
-
readonly ppt: '.ppt';
|
|
98
|
-
readonly pptx: '.pptx';
|
|
99
|
-
readonly video: '.mp4';
|
|
100
|
-
readonly xls: '.xls';
|
|
101
|
-
readonly xlsx: '.xlsx';
|
|
102
|
-
readonly zip: '.zip .gz';
|
|
103
|
-
}>;
|
|
104
|
-
macos: Readonly<{
|
|
105
|
-
readonly allFiles: '*';
|
|
106
|
-
readonly audio: '.3g2 .3gp .aac .adt .adts .aif .aifc .aiff .asf .au .m3u .m4a .m4b .mid .midi .mp2 .mp3 .mp4 .rmi .snd .wav .wax .wma';
|
|
107
|
-
readonly csv: '.csv';
|
|
108
|
-
readonly doc: '.doc';
|
|
109
|
-
readonly docx: '.docx';
|
|
110
|
-
readonly images: '.jpeg .jpg .png';
|
|
111
|
-
readonly pdf: '.pdf';
|
|
112
|
-
readonly plainText: '.txt';
|
|
113
|
-
readonly ppt: '.ppt';
|
|
114
|
-
readonly pptx: '.pptx';
|
|
115
|
-
readonly video: '.mp4';
|
|
116
|
-
readonly xls: '.xls';
|
|
117
|
-
readonly xlsx: '.xlsx';
|
|
118
|
-
readonly zip: '.zip .gz';
|
|
119
|
-
}>;
|
|
120
|
-
web: Readonly<{
|
|
121
|
-
readonly allFiles: '*';
|
|
122
|
-
readonly audio: '.3g2 .3gp .aac .adt .adts .aif .aifc .aiff .asf .au .m3u .m4a .m4b .mid .midi .mp2 .mp3 .mp4 .rmi .snd .wav .wax .wma';
|
|
123
|
-
readonly csv: '.csv';
|
|
124
|
-
readonly doc: '.doc';
|
|
125
|
-
readonly docx: '.docx';
|
|
126
|
-
readonly images: '.jpeg .jpg .png';
|
|
127
|
-
readonly pdf: '.pdf';
|
|
128
|
-
readonly plainText: '.txt';
|
|
129
|
-
readonly ppt: '.ppt';
|
|
130
|
-
readonly pptx: '.pptx';
|
|
131
|
-
readonly video: '.mp4';
|
|
132
|
-
readonly xls: '.xls';
|
|
133
|
-
readonly xlsx: '.xlsx';
|
|
134
|
-
readonly zip: '.zip .gz';
|
|
135
|
-
}>;
|
|
136
|
-
};
|
|
137
|
-
export declare const typesAreEqual: true;
|
|
138
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fileTypes.js","sourceRoot":"","sources":["../../../src/modules/types/fileTypes.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FormTypes } from '@codeleap/common';
|
|
2
|
-
import { TextInputProps } from 'react-native';
|
|
3
|
-
import { TextInputMaskProps as RNTextInputMaskProps } from 'react-native-masked-text';
|
|
4
|
-
export declare type TextInputMaskProps = Omit<RNTextInputMaskProps, keyof TextInputProps> & {
|
|
5
|
-
masking: FormTypes.TextField['masking'];
|
|
6
|
-
onChangeText: RNTextInputMaskProps['onChangeText'];
|
|
7
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textInputMask.js","sourceRoot":"","sources":["../../../src/modules/types/textInputMask.ts"],"names":[],"mappings":""}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './utility';
|
package/dist/types/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./utility"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB"}
|
package/dist/types/utility.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { StyleProp } from 'react-native';
|
|
2
|
-
import { EasingFunction } from 'react-native-animatable';
|
|
3
|
-
export declare type StylesOf<C extends string> = Partial<Record<C, StyleProp<any>>>;
|
|
4
|
-
export declare type TransitionConfig = {
|
|
5
|
-
easing?: EasingFunction;
|
|
6
|
-
type?: 'timing' | 'spring';
|
|
7
|
-
duration?: number;
|
|
8
|
-
};
|
package/dist/types/utility.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utility.js","sourceRoot":"","sources":["../../src/types/utility.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { KeyboardEvent } from 'react-native';
|
|
3
|
-
declare type TKeyboardCtx = {
|
|
4
|
-
event: KeyboardEvent;
|
|
5
|
-
isVisible: boolean;
|
|
6
|
-
height: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const KeyboardCtx: React.Context<TKeyboardCtx>;
|
|
9
|
-
export declare const KeyboardProvider: ({ children }: {
|
|
10
|
-
children: any;
|
|
11
|
-
}) => JSX.Element;
|
|
12
|
-
export declare const useKeyboard: () => TKeyboardCtx;
|
|
13
|
-
export {};
|
|
@@ -1,63 +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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.useKeyboard = exports.KeyboardProvider = exports.KeyboardCtx = void 0;
|
|
18
|
-
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var common_1 = require("@codeleap/common");
|
|
20
|
-
var react_native_1 = require("react-native");
|
|
21
|
-
exports.KeyboardCtx = react_1.default.createContext({});
|
|
22
|
-
var KeyboardProvider = function (_a) {
|
|
23
|
-
var _b, _c;
|
|
24
|
-
var children = _a.children;
|
|
25
|
-
var _d = (0, common_1.useState)(null), keyboardEvent = _d[0], setKeyboardEvent = _d[1];
|
|
26
|
-
var _e = (0, common_1.useState)(false), keyboardVisible = _e[0], setKeyboardVisible = _e[1];
|
|
27
|
-
(0, common_1.useEffect)(function () {
|
|
28
|
-
var eventNames = react_native_1.Platform.select({
|
|
29
|
-
ios: {
|
|
30
|
-
show: 'keyboardWillShow',
|
|
31
|
-
hide: 'keyboardWillHide',
|
|
32
|
-
},
|
|
33
|
-
android: {
|
|
34
|
-
show: 'keyboardDidShow',
|
|
35
|
-
hide: 'keyboardDidHide',
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
var events = [
|
|
39
|
-
react_native_1.Keyboard.addListener(eventNames.show, function (e) {
|
|
40
|
-
setKeyboardEvent(e);
|
|
41
|
-
setKeyboardVisible(true);
|
|
42
|
-
}),
|
|
43
|
-
react_native_1.Keyboard.addListener(eventNames.hide, function (e) {
|
|
44
|
-
setKeyboardEvent(e);
|
|
45
|
-
setKeyboardVisible(false);
|
|
46
|
-
}),
|
|
47
|
-
];
|
|
48
|
-
return function () {
|
|
49
|
-
events.forEach(function (e) { return e.remove(); });
|
|
50
|
-
};
|
|
51
|
-
}, []);
|
|
52
|
-
var height = (_c = (_b = keyboardEvent === null || keyboardEvent === void 0 ? void 0 : keyboardEvent.endCoordinates) === null || _b === void 0 ? void 0 : _b.height) !== null && _c !== void 0 ? _c : 0;
|
|
53
|
-
var _return = __assign({ event: keyboardEvent, isVisible: keyboardVisible, height: (!!height && keyboardVisible) ? height : 0 }, react_native_1.Keyboard);
|
|
54
|
-
return <exports.KeyboardCtx.Provider value={_return}>
|
|
55
|
-
{children}
|
|
56
|
-
</exports.KeyboardCtx.Provider>;
|
|
57
|
-
};
|
|
58
|
-
exports.KeyboardProvider = KeyboardProvider;
|
|
59
|
-
var useKeyboard = function () {
|
|
60
|
-
return (0, common_1.useContext)(exports.KeyboardCtx);
|
|
61
|
-
};
|
|
62
|
-
exports.useKeyboard = useKeyboard;
|
|
63
|
-
//# sourceMappingURL=context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/utils/KeyboardAware/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,2CAAsF;AACtF,6CAKqB;AAWR,QAAA,WAAW,GAAG,eAAK,CAAC,aAAa,CAAC,EAAkB,CAAC,CAAA;AAE3D,IAAM,gBAAgB,GAAG,UAAC,EAAY;;QAAV,QAAQ,cAAA;IACnC,IAAA,KAAoC,IAAA,iBAAQ,EAAgB,IAAI,CAAC,EAAhE,aAAa,QAAA,EAAE,gBAAgB,QAAiC,CAAA;IACjE,IAAA,KAAwC,IAAA,iBAAQ,EAAC,KAAK,CAAC,EAAtD,eAAe,QAAA,EAAE,kBAAkB,QAAmB,CAAA;IAE7D,IAAA,kBAAS,EAAC;QACR,IAAM,UAAU,GAAG,uBAAQ,CAAC,MAAM,CAA2B;YAC3D,GAAG,EAAE;gBACH,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,kBAAkB;aACzB;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,iBAAiB;aACxB;SACF,CAAC,CAAA;QACF,IAAM,MAAM,GAAG;YACb,uBAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,EAAE,UAAC,CAAC;gBAEtC,gBAAgB,CAAC,CAAC,CAAC,CAAA;gBACnB,kBAAkB,CAAC,IAAI,CAAC,CAAA;YAC1B,CAAC,CAAC;YACF,uBAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,EAAE,UAAC,CAAC;gBAEtC,gBAAgB,CAAC,CAAC,CAAC,CAAA;gBACnB,kBAAkB,CAAC,KAAK,CAAC,CAAA;YAC3B,CAAC,CAAC;SACH,CAAA;QACD,OAAO;YACL,MAAM,CAAC,OAAO,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,MAAM,EAAE,EAAV,CAAU,CAAC,CAAA;QACjC,CAAC,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,IAAM,MAAM,GAAG,MAAA,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,cAAc,0CAAE,MAAM,mCAAI,CAAC,CAAA;IAEzD,IAAM,OAAO,cACX,KAAK,EAAE,aAAa,EACpB,SAAS,EAAE,eAAe,EAC1B,MAAM,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAC/C,uBAAQ,CACZ,CAAA;IAED,OAAO,CAAC,mBAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAC1C;IAAA,CAAC,QAAQ,CACX;EAAA,EAAE,mBAAW,CAAC,QAAQ,CAAE,CAAA;AAE1B,CAAC,CAAA;AA7CY,QAAA,gBAAgB,oBA6C5B;AAEM,IAAM,WAAW,GAAG;IACzB,OAAO,IAAA,mBAAU,EAAC,mBAAW,CAAC,CAAA;AAChC,CAAC,CAAA;AAFY,QAAA,WAAW,eAEvB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import listenToKeyboardEvents from './lib/KeyboardAwareHOC';
|
|
2
|
-
import KeyboardAwareScrollView from './lib/KeyboardAwareScrollView';
|
|
3
|
-
import KeyboardAwareFlatList from './lib/KeyboardAwareFlatList';
|
|
4
|
-
import KeyboardAwareSectionList from './lib/KeyboardAwareSectionList';
|
|
5
|
-
export * from './keyboardHooks';
|
|
6
|
-
export * from './context';
|
|
7
|
-
export { listenToKeyboardEvents, KeyboardAwareFlatList, KeyboardAwareSectionList, KeyboardAwareScrollView, };
|
|
8
|
-
export * from './types';
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* @flow */
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
-
};
|
|
17
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.KeyboardAwareScrollView = exports.KeyboardAwareSectionList = exports.KeyboardAwareFlatList = exports.listenToKeyboardEvents = void 0;
|
|
22
|
-
var KeyboardAwareHOC_1 = __importDefault(require("./lib/KeyboardAwareHOC"));
|
|
23
|
-
exports.listenToKeyboardEvents = KeyboardAwareHOC_1.default;
|
|
24
|
-
var KeyboardAwareScrollView_1 = __importDefault(require("./lib/KeyboardAwareScrollView"));
|
|
25
|
-
exports.KeyboardAwareScrollView = KeyboardAwareScrollView_1.default;
|
|
26
|
-
var KeyboardAwareFlatList_1 = __importDefault(require("./lib/KeyboardAwareFlatList"));
|
|
27
|
-
exports.KeyboardAwareFlatList = KeyboardAwareFlatList_1.default;
|
|
28
|
-
var KeyboardAwareSectionList_1 = __importDefault(require("./lib/KeyboardAwareSectionList"));
|
|
29
|
-
exports.KeyboardAwareSectionList = KeyboardAwareSectionList_1.default;
|
|
30
|
-
__exportStar(require("./keyboardHooks"), exports);
|
|
31
|
-
__exportStar(require("./context"), exports);
|
|
32
|
-
__exportStar(require("./types"), exports);
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/KeyboardAware/index.ts"],"names":[],"mappings":";AAAA,WAAW;;;;;;;;;;;;;;;;;;;;AAEX,4EAA2D;AAQzD,iCARK,0BAAsB,CAQL;AAPxB,0FAAmE;AAUjE,kCAVK,iCAAuB,CAUL;AATzB,sFAA+D;AAO7D,gCAPK,+BAAqB,CAOL;AANvB,4FAAqE;AAOnE,mCAPK,kCAAwB,CAOL;AAN1B,kDAA+B;AAC/B,4CAAyB;AASzB,0CAAuB"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { PropsOf } from '@codeleap/common';
|
|
2
|
-
import { ScrollView } from 'react-native';
|
|
3
|
-
import { TransitionConfig } from '../../types';
|
|
4
|
-
declare type ScrollViewProps = Partial<Pick<PropsOf<typeof ScrollView>, 'horizontal' | 'contentContainerStyle' | 'style'>> & {
|
|
5
|
-
transition?: TransitionConfig;
|
|
6
|
-
};
|
|
7
|
-
export declare type GetKeyboardAwarePropsOptions = {
|
|
8
|
-
baseStyleProp?: 'style' | 'contentContainerStyle';
|
|
9
|
-
adapt?: 'height' | 'maxHeight' | 'paddingBottom' | 'marginBottom' | 'bottom';
|
|
10
|
-
enabled?: boolean;
|
|
11
|
-
animated?: boolean;
|
|
12
|
-
transition?: TransitionConfig;
|
|
13
|
-
enableOnAndroid?: boolean;
|
|
14
|
-
};
|
|
15
|
-
declare type UseKeyboardAwareViewParams = {
|
|
16
|
-
debugName?: string;
|
|
17
|
-
};
|
|
18
|
-
export declare const useKeyboardAwareView: (params?: UseKeyboardAwareViewParams) => {
|
|
19
|
-
keyboard: {
|
|
20
|
-
event: import("react-native").KeyboardEvent;
|
|
21
|
-
isVisible: boolean;
|
|
22
|
-
height: number;
|
|
23
|
-
};
|
|
24
|
-
getKeyboardAwareProps: <T extends ScrollViewProps>(props?: T, options?: GetKeyboardAwarePropsOptions) => T;
|
|
25
|
-
};
|
|
26
|
-
export {};
|
|
@@ -1,87 +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.useKeyboardAwareView = void 0;
|
|
15
|
-
var common_1 = require("@codeleap/common");
|
|
16
|
-
var react_native_1 = require("react-native");
|
|
17
|
-
var context_1 = require("./context");
|
|
18
|
-
var useKeyboardAwareView = function (params) {
|
|
19
|
-
var keyboard = (0, context_1.useKeyboard)();
|
|
20
|
-
var logger = (0, common_1.useCodeleapContext)().logger;
|
|
21
|
-
function getKeyboardAwareProps(props, options) {
|
|
22
|
-
var _a, _b;
|
|
23
|
-
var _options = __assign(__assign({ adapt: 'maxHeight', baseStyleProp: 'style', enabled: true, enableOnAndroid: false, animated: false }, options), { transition: {
|
|
24
|
-
easing: react_native_1.Easing.linear,
|
|
25
|
-
duration: 200,
|
|
26
|
-
type: 'timing',
|
|
27
|
-
} });
|
|
28
|
-
if (!_options.enabled || (props === null || props === void 0 ? void 0 : props.horizontal) || (react_native_1.Platform.OS === 'android' && !_options.enableOnAndroid))
|
|
29
|
-
return props;
|
|
30
|
-
if (!props) {
|
|
31
|
-
props = {};
|
|
32
|
-
}
|
|
33
|
-
var baseStyle = react_native_1.StyleSheet.flatten(props[_options.baseStyleProp] || {});
|
|
34
|
-
var baseValue = baseStyle[_options.adapt];
|
|
35
|
-
var valid = true;
|
|
36
|
-
var warnOnNotNumber = function () {
|
|
37
|
-
if (!common_1.TypeGuards.isNil(baseValue) && !common_1.TypeGuards.isNumber(baseValue)) {
|
|
38
|
-
valid = false;
|
|
39
|
-
var debugStr = (params === null || params === void 0 ? void 0 : params.debugName) ? 'at ' + (params === null || params === void 0 ? void 0 : params.debugName) + ' ' : '';
|
|
40
|
-
logger.warn("".concat(_options.baseStyleProp, ".").concat(_options.adapt, " must be a number or not be set at all"), { props: props, options: _options }, 'useKeyboardAwareView' + debugStr);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
var newStyleProp = _options.animated ? {} : __assign({}, baseStyle);
|
|
44
|
-
switch (_options.adapt) {
|
|
45
|
-
case 'height':
|
|
46
|
-
warnOnNotNumber();
|
|
47
|
-
var baseHeight = baseValue || 0;
|
|
48
|
-
newStyleProp.height = baseHeight - keyboard.height;
|
|
49
|
-
break;
|
|
50
|
-
case 'maxHeight':
|
|
51
|
-
warnOnNotNumber();
|
|
52
|
-
var baseMaxHeight = baseValue || react_native_1.Dimensions.get('window').height;
|
|
53
|
-
newStyleProp.maxHeight = baseMaxHeight - keyboard.height;
|
|
54
|
-
break;
|
|
55
|
-
case 'paddingBottom':
|
|
56
|
-
warnOnNotNumber();
|
|
57
|
-
var basePaddingBottom = baseValue || 0;
|
|
58
|
-
newStyleProp.paddingBottom = basePaddingBottom + keyboard.height;
|
|
59
|
-
break;
|
|
60
|
-
case 'marginBottom':
|
|
61
|
-
warnOnNotNumber();
|
|
62
|
-
var baseMarginBottom = baseValue || 0;
|
|
63
|
-
newStyleProp.marginBottom = baseMarginBottom + keyboard.height;
|
|
64
|
-
break;
|
|
65
|
-
case 'bottom':
|
|
66
|
-
warnOnNotNumber();
|
|
67
|
-
var baseBottom = baseValue || 0;
|
|
68
|
-
newStyleProp.bottom = baseBottom + keyboard.height;
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
if (!valid)
|
|
72
|
-
return props;
|
|
73
|
-
var _return = __assign(__assign({}, props), (_a = {}, _a[(_options === null || _options === void 0 ? void 0 : _options.animated) ? 'animate' : _options.baseStyleProp] = newStyleProp, _a));
|
|
74
|
-
if (_options.animated && !!(_options === null || _options === void 0 ? void 0 : _options.transition)) {
|
|
75
|
-
_return.transition = JSON.parse(JSON.stringify((_b = {},
|
|
76
|
-
_b[_options.adapt] = _options.transition,
|
|
77
|
-
_b)));
|
|
78
|
-
}
|
|
79
|
-
return _return;
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
keyboard: keyboard,
|
|
83
|
-
getKeyboardAwareProps: getKeyboardAwareProps,
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
exports.useKeyboardAwareView = useKeyboardAwareView;
|
|
87
|
-
//# sourceMappingURL=keyboardHooks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyboardHooks.js","sourceRoot":"","sources":["../../../src/utils/KeyboardAware/keyboardHooks.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var react_native_1 = require("react-native");
|
|
7
|
-
var KeyboardAwareHOC_1 = __importDefault(require("./KeyboardAwareHOC"));
|
|
8
|
-
exports.default = (0, KeyboardAwareHOC_1.default)(react_native_1.FlatList);
|
|
9
|
-
//# sourceMappingURL=KeyboardAwareFlatList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardAwareFlatList.js","sourceRoot":"","sources":["../../../../src/utils/KeyboardAware/lib/KeyboardAwareFlatList.ts"],"names":[],"mappings":";;;;;AAAA,6CAAuC;AACvC,wEAAuD;AAEvD,kBAAe,IAAA,0BAAsB,EAAC,uBAAQ,CAAC,CAAA"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/// <reference types="chai" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export declare function isIphoneX(): boolean;
|
|
4
|
-
declare const keyboardAwareHOCTypeEvents: {
|
|
5
|
-
constructor: Function;
|
|
6
|
-
toString(): string;
|
|
7
|
-
toLocaleString(): string;
|
|
8
|
-
valueOf(): Object;
|
|
9
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
10
|
-
isPrototypeOf(v: Object): boolean;
|
|
11
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
12
|
-
should: Chai.Assertion;
|
|
13
|
-
};
|
|
14
|
-
export declare type KeyboardAwareHOCProps = {
|
|
15
|
-
viewIsInsideTabBar?: boolean;
|
|
16
|
-
resetScrollToCoords?: {
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
};
|
|
20
|
-
enableResetScrollToCoords?: boolean;
|
|
21
|
-
enableAutomaticScroll?: boolean;
|
|
22
|
-
extraHeight?: number;
|
|
23
|
-
extraScrollHeight?: number;
|
|
24
|
-
keyboardOpeningTime?: number;
|
|
25
|
-
onScroll?: Function;
|
|
26
|
-
update?: Function;
|
|
27
|
-
contentContainerStyle?: any;
|
|
28
|
-
enableOnAndroid?: boolean;
|
|
29
|
-
Scrollable: any;
|
|
30
|
-
innerRef?: Function;
|
|
31
|
-
hocOptions?: any;
|
|
32
|
-
} & typeof keyboardAwareHOCTypeEvents;
|
|
33
|
-
export declare type KeyboardAwareHOCState = {
|
|
34
|
-
keyboardSpace: number;
|
|
35
|
-
};
|
|
36
|
-
export declare type ElementLayout = {
|
|
37
|
-
x: number;
|
|
38
|
-
y: number;
|
|
39
|
-
width: number;
|
|
40
|
-
height: number;
|
|
41
|
-
};
|
|
42
|
-
export declare type ContentOffset = {
|
|
43
|
-
x: number;
|
|
44
|
-
y: number;
|
|
45
|
-
};
|
|
46
|
-
export declare type ScrollPosition = {
|
|
47
|
-
x: number;
|
|
48
|
-
y: number;
|
|
49
|
-
animated: boolean;
|
|
50
|
-
};
|
|
51
|
-
export declare type ScrollIntoViewOptions = {
|
|
52
|
-
getScrollPosition?: (parentLayout: ElementLayout, childLayout: ElementLayout, contentOffset: ContentOffset) => ScrollPosition;
|
|
53
|
-
};
|
|
54
|
-
export declare type KeyboardAwareHOCOptions = {
|
|
55
|
-
enableOnAndroid: boolean;
|
|
56
|
-
contentContainerStyle?: Object;
|
|
57
|
-
enableAutomaticScroll: boolean;
|
|
58
|
-
extraHeight: number;
|
|
59
|
-
extraScrollHeight: number;
|
|
60
|
-
enableResetScrollToCoords: boolean;
|
|
61
|
-
keyboardOpeningTime: number;
|
|
62
|
-
viewIsInsideTabBar: boolean;
|
|
63
|
-
refPropName: string;
|
|
64
|
-
extractNativeRef: Function;
|
|
65
|
-
};
|
|
66
|
-
declare const listenToKeyboardEvents: <C extends React.ComponentClass<{}, any> | React.ComponentType<{}>>(configOrComp: C) => C;
|
|
67
|
-
export default listenToKeyboardEvents;
|