@codeleap/mobile 2.4.7 → 3.1.1
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/mobile-packages.code-workspace +27 -0
- package/package.json +25 -33
- package/src/components/ActionIcon/index.tsx +16 -6
- package/src/components/ActionIcon/styles.ts +3 -90
- package/src/components/ActivityIndicator/index.tsx +28 -9
- package/src/components/ActivityIndicator/styles.ts +2 -59
- package/src/components/Autocomplete/index.tsx +235 -0
- package/src/components/Autocomplete/styles.ts +18 -0
- package/src/components/Autocomplete/types.ts +75 -0
- package/src/components/Avatar/index.tsx +126 -0
- package/src/components/Avatar/styles.ts +22 -0
- package/src/components/AvatarGroup/index.tsx +76 -0
- package/src/components/AvatarGroup/styles.ts +11 -0
- package/src/components/Backdrop/index.tsx +14 -13
- package/src/components/Backdrop/styles.ts +3 -24
- package/src/components/Badge/index.tsx +134 -0
- package/src/components/Badge/styles.ts +14 -0
- package/src/components/Button/index.tsx +39 -49
- package/src/components/Button/styles.ts +6 -107
- package/src/components/Calendar/index.tsx +3 -3
- package/src/components/Calendar/style.ts +2 -31
- package/src/components/Checkbox/index.tsx +137 -74
- package/src/components/Checkbox/styles.ts +13 -73
- package/src/components/ContentView/index.tsx +2 -2
- package/src/components/ContentView/styles.ts +1 -17
- package/src/components/DatePickerModal/index.tsx +240 -0
- package/src/components/DatePickerModal/styles.ts +15 -0
- package/src/components/DatePickerModal/types.ts +55 -0
- package/src/components/Drawer/index.tsx +2 -2
- package/src/components/Drawer/styles.ts +4 -39
- package/src/components/EmptyPlaceholder/index.tsx +3 -3
- package/src/components/EmptyPlaceholder/styles.ts +2 -47
- package/src/components/FileInput/styles.ts +1 -8
- package/src/components/Grid/index.tsx +76 -72
- package/src/components/Grid/styles.ts +4 -7
- package/src/components/Icon/index.tsx +46 -8
- package/src/components/Icon/styles.ts +3 -51
- package/src/components/Image/index.tsx +18 -22
- package/src/components/Image/styles.ts +1 -14
- package/src/components/ImageView/Spotlight.tsx +4 -2
- package/src/components/ImageView/component.tsx +0 -3
- package/src/components/InputBase/index.tsx +101 -0
- package/src/components/InputBase/styles.ts +135 -0
- package/src/components/InputBase/types.ts +28 -0
- package/src/components/InputBase/utils.ts +42 -0
- package/src/components/InputLabel/index.tsx +3 -3
- package/src/components/InputLabel/styles.ts +2 -14
- package/src/components/List/PaginationIndicator.tsx +4 -21
- package/src/components/List/index.tsx +84 -46
- package/src/components/List/styles.ts +8 -20
- package/src/components/LoadingOverlay/index.tsx +45 -45
- package/src/components/LoadingOverlay/styles.ts +5 -27
- package/src/components/Modal/index.tsx +56 -32
- package/src/components/Modal/styles.ts +3 -114
- package/src/components/NumberIncrement/index.tsx +318 -0
- package/src/components/NumberIncrement/styles.ts +14 -0
- package/src/components/NumberIncrement/types.ts +44 -0
- package/src/components/NumberIncrement/utils.ts +27 -0
- package/src/components/Pager/index.tsx +120 -67
- package/src/components/Pager/styles.ts +2 -69
- package/src/components/RadioInput/index.tsx +145 -68
- package/src/components/RadioInput/styles.ts +8 -61
- package/src/components/RefreshControl/index.tsx +28 -0
- package/src/components/RefreshControl/styles.ts +7 -0
- package/src/components/Scroll/index.tsx +22 -37
- package/src/components/Scroll/styles.ts +2 -16
- package/src/components/Sections/index.tsx +116 -54
- package/src/components/Sections/styles.ts +7 -0
- package/src/components/SegmentedControl/Option.tsx +51 -0
- package/src/components/SegmentedControl/index.tsx +51 -67
- package/src/components/SegmentedControl/styles.ts +7 -63
- package/src/components/Select/index.tsx +268 -95
- package/src/components/Select/styles.ts +11 -131
- package/src/components/Select/types.ts +47 -11
- package/src/components/Slider/index.tsx +151 -94
- package/src/components/Slider/styles.ts +7 -72
- package/src/components/Slider/types.ts +18 -20
- package/src/components/Switch/index.tsx +115 -63
- package/src/components/Switch/styles.ts +13 -30
- package/src/components/Text/index.tsx +14 -31
- package/src/components/Text/styles.ts +2 -41
- package/src/components/TextInput/index.tsx +237 -259
- package/src/components/TextInput/styles.ts +6 -120
- package/src/components/Touchable/index.tsx +74 -27
- package/src/components/Touchable/styles.ts +1 -12
- package/src/components/View/index.tsx +11 -26
- package/src/components/View/styles.ts +1 -17
- package/src/components/components.ts +9 -5
- package/src/components/defaultStyles.ts +74 -61
- package/src/index.ts +0 -1
- package/src/modules/PressableRipple/index.ts +5 -0
- package/src/modules/PressableRipple/ripple.js +258 -0
- package/src/modules/PressableRipple/styles.js +22 -0
- package/src/modules/PressableRipple/type.ts +17 -0
- package/src/modules/textInputMask.tsx +13 -0
- package/src/types/index.ts +5 -0
- package/src/types/utility.ts +2 -2
- package/src/utils/KeyboardAware/index.ts +0 -13
- package/src/utils/KeyboardAware/keyboardHooks.ts +69 -79
- package/src/utils/hooks.ts +63 -36
- package/src/utils/index.ts +1 -0
- package/src/utils/locale.ts +7 -0
- package/src/utils/theme.ts +1 -21
- package/dist/components/ActionIcon/index.d.ts +0 -13
- package/dist/components/ActionIcon/index.js +0 -51
- 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 -55
- 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 -15
- package/dist/components/Animated.js +0 -55
- package/dist/components/Animated.js.map +0 -1
- package/dist/components/AutoComplete/index.d.ts +0 -34
- package/dist/components/AutoComplete/index.js +0 -126
- 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/Backdrop/index.d.ts +0 -14
- package/dist/components/Backdrop/index.js +0 -59
- 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/Button/index.d.ts +0 -246
- package/dist/components/Button/index.js +0 -115
- 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 -76
- 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 -81
- 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 -62
- 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/Drawer/index.d.ts +0 -7
- package/dist/components/Drawer/index.js +0 -66
- 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 -88
- 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 -179
- 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 -80
- 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 -75
- 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 -25
- package/dist/components/Image/index.js +0 -130
- package/dist/components/Image/index.js.map +0 -1
- package/dist/components/Image/styles.d.ts +0 -55
- 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 -150
- 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 -50
- 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 -15
- package/dist/components/ImageView/index.js.map +0 -1
- package/dist/components/InputLabel/index.d.ts +0 -12
- package/dist/components/InputLabel/index.js +0 -58
- 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 -77
- 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 -60
- package/dist/components/LoadingOverlay/index.js.map +0 -1
- package/dist/components/LoadingOverlay/styles.d.ts +0 -7
- package/dist/components/LoadingOverlay/styles.js +0 -34
- 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 -147
- 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 -119
- 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 -80
- 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 -16
- 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/Pager/index.d.ts +0 -26
- package/dist/components/Pager/index.js +0 -84
- 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 -72
- 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/Scroll/index.d.ts +0 -124
- package/dist/components/Scroll/index.js +0 -97
- 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 -115
- package/dist/components/Sections/index.js +0 -76
- package/dist/components/Sections/index.js.map +0 -1
- package/dist/components/SegmentedControl/index.d.ts +0 -52
- package/dist/components/SegmentedControl/index.js +0 -131
- 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 -122
- 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 -99
- 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 -81
- 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 -121
- 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 -213
- 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 -165
- 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 -25
- package/dist/components/View/index.js +0 -107
- 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 -37
- package/dist/components/components.js +0 -50
- package/dist/components/components.js.map +0 -1
- package/dist/components/defaultStyles.d.ts +0 -1468
- package/dist/components/defaultStyles.js +0 -67
- package/dist/components/defaultStyles.js.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -39
- package/dist/index.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 -19
- 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 -14
- package/dist/types/index.js.map +0 -1
- package/dist/types/utility.d.ts +0 -14
- 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 -29
- 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 -439
- 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 -114
- 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 -201
- 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 -320
- 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 -61
- package/dist/utils/hooks.js +0 -233
- package/dist/utils/hooks.js.map +0 -1
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/index.js +0 -36
- 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/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
- package/src/components/Animated.tsx +0 -34
- package/src/components/AutoComplete/index.tsx +0 -167
- package/src/components/AutoComplete/styles.ts +0 -150
- package/src/components/MultiSelect/index.tsx +0 -148
- package/src/components/MultiSelect/styles.ts +0 -131
- package/src/components/MultiSelect/types.ts +0 -51
- package/src/components/Slider/Mark.tsx +0 -46
- package/src/components/Slider/Thumb.tsx +0 -29
- package/src/modules/textInputMask.ts +0 -11
- package/src/utils/KeyboardAware/lib/KeyboardAwareFlatList.ts +0 -4
- package/src/utils/KeyboardAware/lib/KeyboardAwareHOC.tsx +0 -592
- package/src/utils/KeyboardAware/lib/KeyboardAwareInterface.ts +0 -13
- package/src/utils/KeyboardAware/lib/KeyboardAwareScrollView.ts +0 -6
- package/src/utils/KeyboardAware/lib/KeyboardAwareSectionList.ts +0 -6
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentVariants, FormTypes, IconPlaceholder, PropsOf } from '@codeleap/common';
|
|
3
|
-
import { StylesOf } from '../../types/utility';
|
|
4
|
-
import { DrawerProps } from '../Drawer';
|
|
5
|
-
import { Icon } from '../Icon';
|
|
6
|
-
import { FlatListProps } from '../List';
|
|
7
|
-
import { Text } from '../Text';
|
|
8
|
-
import { TextInputProps } from '../TextInput';
|
|
9
|
-
import { Touchable } from '../Touchable';
|
|
10
|
-
import { MultiSelectComposition, MultiSelectStyles } from './styles';
|
|
11
|
-
export declare type MultiSelectRenderFNProps<T> = {
|
|
12
|
-
styles: StylesOf<MultiSelectComposition>;
|
|
13
|
-
onPress: () => void;
|
|
14
|
-
isSelected?: boolean;
|
|
15
|
-
item: FormTypes.Options<T>[number];
|
|
16
|
-
icon?: IconPlaceholder;
|
|
17
|
-
touchableProps?: Partial<PropsOf<typeof Touchable>>;
|
|
18
|
-
textProps?: Partial<PropsOf<typeof Text>>;
|
|
19
|
-
iconProps?: Partial<PropsOf<typeof Icon>>;
|
|
20
|
-
};
|
|
21
|
-
export declare type MultiSelectRenderFN<T> = (props: MultiSelectRenderFNProps<T>) => JSX.Element;
|
|
22
|
-
declare type MultiSelectDrawerProps = Omit<DrawerProps, 'variants' | 'styles'>;
|
|
23
|
-
export declare type MultiSelectProps<T> = MultiSelectDrawerProps & {
|
|
24
|
-
value: T[];
|
|
25
|
-
placeholder?: FormTypes.Label;
|
|
26
|
-
label?: FormTypes.Label;
|
|
27
|
-
options?: FormTypes.Options<T>;
|
|
28
|
-
onValueChange?: (value: T[]) => void;
|
|
29
|
-
renderItem?: MultiSelectRenderFN<T>;
|
|
30
|
-
styles?: StylesOf<MultiSelectComposition>;
|
|
31
|
-
style?: any;
|
|
32
|
-
arrowIconName?: IconPlaceholder;
|
|
33
|
-
inputProps?: Partial<TextInputProps>;
|
|
34
|
-
selectedIcon?: IconPlaceholder;
|
|
35
|
-
hideInput?: boolean;
|
|
36
|
-
limit?: number;
|
|
37
|
-
listProps?: Partial<FlatListProps>;
|
|
38
|
-
clearable?: boolean;
|
|
39
|
-
clearIconName?: IconPlaceholder;
|
|
40
|
-
validate?: TextInputProps['validate'];
|
|
41
|
-
itemProps?: Partial<Pick<MultiSelectRenderFNProps<any>, 'iconProps' | 'textProps' | 'touchableProps'>>;
|
|
42
|
-
} & ComponentVariants<typeof MultiSelectStyles>;
|
|
43
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/MultiSelect/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,80 +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
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
-
}) : (function(o, m, k, k2) {
|
|
17
|
-
if (k2 === undefined) k2 = k;
|
|
18
|
-
o[k2] = m[k];
|
|
19
|
-
}));
|
|
20
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
-
}) : function(o, v) {
|
|
23
|
-
o["default"] = v;
|
|
24
|
-
});
|
|
25
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
-
if (mod && mod.__esModule) return mod;
|
|
27
|
-
var result = {};
|
|
28
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
-
__setModuleDefault(result, mod);
|
|
30
|
-
return result;
|
|
31
|
-
};
|
|
32
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
33
|
-
var t = {};
|
|
34
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
35
|
-
t[p] = s[p];
|
|
36
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
37
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
38
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
39
|
-
t[p[i]] = s[p[i]];
|
|
40
|
-
}
|
|
41
|
-
return t;
|
|
42
|
-
};
|
|
43
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
-
exports.Navigation = void 0;
|
|
45
|
-
// @ts-nocheck
|
|
46
|
-
var React = __importStar(require("react"));
|
|
47
|
-
var common_1 = require("@codeleap/common");
|
|
48
|
-
var Icon_1 = require("../Icon");
|
|
49
|
-
var constants_1 = require("./constants");
|
|
50
|
-
var Navigation = function (_a) {
|
|
51
|
-
var type = _a.type, scenes = _a.scenes, props = __rest(_a, ["type", "scenes"]);
|
|
52
|
-
var NavigationComponent = constants_1.Navigators[type];
|
|
53
|
-
// console.log('render Navigation', { type, scenes, props, defaultProps })
|
|
54
|
-
return <NavigationComponent.Navigator {...props}>
|
|
55
|
-
{Object.entries(scenes).map(function (_a, idx) {
|
|
56
|
-
var _b;
|
|
57
|
-
var name = _a[0], content = _a[1];
|
|
58
|
-
var isFunction = common_1.TypeGuards.isFunction(content);
|
|
59
|
-
var screenProps = {
|
|
60
|
-
name: name,
|
|
61
|
-
};
|
|
62
|
-
if (isFunction) {
|
|
63
|
-
screenProps.component = content;
|
|
64
|
-
// console.log('Render NavigationScreen', { scenes, screenProps, content, isFunction }, 'PACKAGES')
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
screenProps.component = ((_b = content === null || content === void 0 ? void 0 : content.component) === null || _b === void 0 ? void 0 : _b.default) || (content === null || content === void 0 ? void 0 : content.component) || (content === null || content === void 0 ? void 0 : content.default);
|
|
68
|
-
var nameParts = name.split('.');
|
|
69
|
-
var title_1 = (content === null || content === void 0 ? void 0 : content.title) || nameParts[nameParts.length - 1] || name.replace('.', '');
|
|
70
|
-
screenProps = __assign(__assign({}, screenProps), { options: function (optionProps) { return (__assign({ title: title_1, tabBarIcon: function (style) { return <Icon_1.Icon name={content === null || content === void 0 ? void 0 : content.icon} style={style}/>; }, tabBarIconFocused: (content === null || content === void 0 ? void 0 : content.iconFocused) ? function (style) { return <Icon_1.Icon name={content === null || content === void 0 ? void 0 : content.iconFocused} style={style}/>; } : null }, (common_1.TypeGuards.isFunction(content.options) ? content.options(optionProps) : content.options))); } });
|
|
71
|
-
// console.log('Render NavigationScreen loop', { scenes, screenProps, content, title, isFunction, props }, 'PACKAGES')
|
|
72
|
-
}
|
|
73
|
-
return (
|
|
74
|
-
// @ts-ignore
|
|
75
|
-
<NavigationComponent.Screen key={idx} {...screenProps}/>);
|
|
76
|
-
})}
|
|
77
|
-
</NavigationComponent.Navigator>;
|
|
78
|
-
};
|
|
79
|
-
exports.Navigation = Navigation;
|
|
80
|
-
//# sourceMappingURL=Navigation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.js","sourceRoot":"","sources":["../../../src/components/Navigation/Navigation.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAc;AACd,2CAA8B;AAC9B,2CAEyB;AACzB,gCAA8B;AAE9B,yCAAwC;AAEjC,IAAM,UAAU,GAAG,UAA0B,EAA8C;IAA5C,IAAA,IAAI,UAAA,EAAE,MAAM,YAAA,EAAK,KAAK,cAAxB,kBAA0B,CAAF;IAC1E,IAAM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BAAiB,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,EAAC,CAAC,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC,WAAI,CAAC,IAAI,CAAC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EAAE,EAAjD,CAAiD,CAAC,CAAC,CAAC,IAAI,IAC1G,CAAC,mBAAU,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAC5F,EALwB,CAKxB,GACH,CAAA;gBACD,sHAAsH;aACvH;YAED,OAAO;YACL,aAAa;YACb,CAAC,mBAAmB,CAAC,MAAM,CACzB,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,IAAI,WAAW,CAAC,EAChB,CACH,CAAA;QACH,CAAC,CAAC,CAEN;EAAA,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAA;AAClC,CAAC,CAAA;AA5CY,QAAA,UAAU,cA4CtB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Navigators = void 0;
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
var reactNavigation_1 = require("../../modules/reactNavigation");
|
|
6
|
-
exports.Navigators = {
|
|
7
|
-
Drawer: (0, reactNavigation_1.createDrawerNavigator)(),
|
|
8
|
-
Stack: (0, reactNavigation_1.createStackNavigator)(),
|
|
9
|
-
Tab: (0, reactNavigation_1.createBottomTabNavigator)(),
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Navigation/constants.ts"],"names":[],"mappings":";;;AAAA,cAAc;AACd,iEAAqH;AAExG,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,IAAA,uCAAqB,GAAE;IAC/B,KAAK,EAAE,IAAA,sCAAoB,GAAE;IAC7B,GAAG,EAAE,IAAA,0CAAwB,GAAE;CAChC,CAAA"}
|
|
@@ -1,16 +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
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./Navigation"), exports);
|
|
14
|
-
__exportStar(require("./types"), exports);
|
|
15
|
-
__exportStar(require("./utils"), exports);
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Navigation/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA4B;AAC5B,0CAAuB;AACvB,0CAAuB"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IconPlaceholder } from '@codeleap/common';
|
|
3
|
-
import { Navigators } from './constants';
|
|
4
|
-
export declare type TNavigators = typeof Navigators;
|
|
5
|
-
export declare type NavigatorType = keyof TNavigators;
|
|
6
|
-
export declare type PropTypes = {
|
|
7
|
-
[P in NavigatorType]: {
|
|
8
|
-
Screen: Omit<React.ComponentPropsWithRef<TNavigators[P]['Screen']>, 'children' | 'name'>;
|
|
9
|
-
Navigator: Omit<React.ComponentPropsWithRef<TNavigators[P]['Navigator']>, 'children' | 'name'>;
|
|
10
|
-
Group: Omit<React.ComponentPropsWithRef<TNavigators[P]['Group']>, 'children' | 'name'>;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export declare type SceneComponent<K extends NavigatorType> = PropTypes[K]['Screen'];
|
|
14
|
-
export declare type SceneOptions<K extends NavigatorType> = {
|
|
15
|
-
icon?: IconPlaceholder;
|
|
16
|
-
default?: SceneComponent<K>;
|
|
17
|
-
} & PropTypes[K]['Screen'];
|
|
18
|
-
export declare type Scene<K extends NavigatorType> = SceneComponent<K> | SceneOptions<K>;
|
|
19
|
-
export declare type Scenes<K extends NavigatorType> = {
|
|
20
|
-
[x: string]: Scene<K>;
|
|
21
|
-
};
|
|
22
|
-
export declare type SceneProps = any;
|
|
23
|
-
export declare type NavigationProps<T extends NavigatorType> = {
|
|
24
|
-
type: T;
|
|
25
|
-
scenes: Scenes<T>;
|
|
26
|
-
} & PropTypes[T]['Navigator'];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/Navigation/types.ts"],"names":[],"mappings":";;AA6BA,uCAAuC;AACvC,0BAA0B;AAC1B,0BAA0B;AAE1B,QAAQ;AACR,IAAI"}
|
|
@@ -1,69 +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 __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
25
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
26
|
-
if (ar || !(i in from)) {
|
|
27
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
28
|
-
ar[i] = from[i];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
32
|
-
};
|
|
33
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
34
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
35
|
-
};
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.createAppNavigation = void 0;
|
|
38
|
-
var react_1 = __importDefault(require("react"));
|
|
39
|
-
var Navigation_1 = require("./Navigation");
|
|
40
|
-
function createAppNavigation(Scenes) {
|
|
41
|
-
var AllScenes = Object.entries(Scenes).reduce(function (allScenes, _a) {
|
|
42
|
-
var moduleName = _a[0], content = _a[1];
|
|
43
|
-
var subScenes = [];
|
|
44
|
-
for (var _i = 0, _b = Object.entries(content.scenes); _i < _b.length; _i++) {
|
|
45
|
-
var _c = _b[_i], name = _c[0], sceneContent = _c[1];
|
|
46
|
-
subScenes.push(["".concat(moduleName, ".").concat(name), sceneContent]);
|
|
47
|
-
}
|
|
48
|
-
return __spreadArray(__spreadArray([], allScenes, true), subScenes, true);
|
|
49
|
-
}, []);
|
|
50
|
-
var AppScenes = Object.fromEntries(AllScenes);
|
|
51
|
-
var SCENES_RESULT = Object.fromEntries(Object.entries(Scenes)
|
|
52
|
-
.map(function (_a) {
|
|
53
|
-
var _b = _a, S = _b[0], _c = _b[1], _ig_scenes = _c._ig_scenes, exclude = _c.exclude, type = _c.type, navigationProps = _c.navigationProps, otherProps = __rest(_c, ["_ig_scenes", "exclude", "type", "navigationProps"]);
|
|
54
|
-
var filterScenes = null;
|
|
55
|
-
if (exclude) {
|
|
56
|
-
filterScenes = Object.fromEntries(AllScenes.filter(function (_a) {
|
|
57
|
-
var path = _a[0];
|
|
58
|
-
return !exclude.some(function (param) { return path.startsWith(param); });
|
|
59
|
-
}));
|
|
60
|
-
}
|
|
61
|
-
var Component = function () { return <Navigation_1.Navigation type={type || 'Stack'} scenes={filterScenes || AppScenes} screenOptions={__assign({ headerShown: false }, navigationProps === null || navigationProps === void 0 ? void 0 : navigationProps.screenOptions)} {...navigationProps}/>; };
|
|
62
|
-
// console.log('SCENES_RESULT create', { _ig_scenes, exclude, type, navigationProps, otherProps })
|
|
63
|
-
return [S, __assign(__assign({}, otherProps), { component: Component })];
|
|
64
|
-
}));
|
|
65
|
-
// console.log('SCENES_RESULT', SCENES_RESULT)
|
|
66
|
-
return SCENES_RESULT;
|
|
67
|
-
}
|
|
68
|
-
exports.createAppNavigation = createAppNavigation;
|
|
69
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/Navigation/utils.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,2CAAyC;AAEzC,SAAgB,mBAAmB,CAAC,MAAU;IAE5C,IAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAM,MAAM,CAAC,CAAC,MAAM,CA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ClC,aAAa,CAAC,YACZ,WAAW,EAAE,KAAK,IACf,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,aAAa,EACjC,CACF,IAAI,eAAe,CAAC,EACpB,EARsB,CAQtB,CAAA;QACF,kGAAkG;QAElG,OAAO,CAAC,CAAC,wBACJ,UAAU,KACb,SAAS,EAAE,SAAS,IACpB,CAAA;IACJ,CAAC,CAAC,CACL,CAAA;IAED,8CAA8C;IAE9C,OAAO,aAAa,CAAA;AACtB,CAAC;AApDD,kDAoDC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ComponentVariants } from '@codeleap/common';
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
3
|
-
import { StylesOf } from '../../types/utility';
|
|
4
|
-
import { PagerStyles, PagerComposition } from './styles';
|
|
5
|
-
export * from './styles';
|
|
6
|
-
export declare type PageProps = {
|
|
7
|
-
isLast: boolean;
|
|
8
|
-
isFirst: boolean;
|
|
9
|
-
isActive: boolean;
|
|
10
|
-
isNext: boolean;
|
|
11
|
-
page: number;
|
|
12
|
-
index: number;
|
|
13
|
-
isPrevious: boolean;
|
|
14
|
-
};
|
|
15
|
-
export declare type PagerProps = {
|
|
16
|
-
variants?: ComponentVariants<typeof PagerStyles>['variants'];
|
|
17
|
-
styles?: StylesOf<PagerComposition>;
|
|
18
|
-
children?: (((pageData: PageProps) => ReactNode) | ReactNode)[];
|
|
19
|
-
page?: number;
|
|
20
|
-
style?: any;
|
|
21
|
-
setPage?: (page: number) => void;
|
|
22
|
-
returnEarly?: boolean;
|
|
23
|
-
renderPageWrapper?: React.FC<PageProps>;
|
|
24
|
-
pageWrapperProps?: any;
|
|
25
|
-
};
|
|
26
|
-
export declare const Pager: React.FC<PagerProps>;
|
|
@@ -1,84 +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
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
-
}) : (function(o, m, k, k2) {
|
|
17
|
-
if (k2 === undefined) k2 = k;
|
|
18
|
-
o[k2] = m[k];
|
|
19
|
-
}));
|
|
20
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
21
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22
|
-
};
|
|
23
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
24
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.Pager = void 0;
|
|
28
|
-
var common_1 = require("@codeleap/common");
|
|
29
|
-
var react_1 = __importDefault(require("react"));
|
|
30
|
-
var react_native_1 = require("react-native");
|
|
31
|
-
var View_1 = require("../View");
|
|
32
|
-
__exportStar(require("./styles"), exports);
|
|
33
|
-
var Pager = function (pagerProps) {
|
|
34
|
-
var styles = pagerProps.styles, variants = pagerProps.variants, page = pagerProps.page, _a = pagerProps.style, style = _a === void 0 ? {} : _a, _b = pagerProps.returnEarly, returnEarly = _b === void 0 ? true : _b, renderPageWrapper = pagerProps.renderPageWrapper, _c = pagerProps.pageWrapperProps, pageWrapperProps = _c === void 0 ? {} : _c, children = pagerProps.children;
|
|
35
|
-
var variantStyles = (0, common_1.useDefaultComponentStyle)('u:Pager', {
|
|
36
|
-
styles: styles,
|
|
37
|
-
transform: react_native_1.StyleSheet.flatten,
|
|
38
|
-
variants: variants,
|
|
39
|
-
});
|
|
40
|
-
var nChildren = react_1.default.Children.count(children);
|
|
41
|
-
var lastPage = nChildren - 1;
|
|
42
|
-
var childArr = react_1.default.Children.toArray(children);
|
|
43
|
-
var WrapperComponent = renderPageWrapper || View_1.View;
|
|
44
|
-
// Reamimated seems to glitch if this is not done
|
|
45
|
-
variantStyles = JSON.parse(JSON.stringify(variantStyles));
|
|
46
|
-
return (<View_1.View style={[variantStyles.wrapper, style]}>
|
|
47
|
-
{childArr.map(function (child, index) {
|
|
48
|
-
var isActive = index === page;
|
|
49
|
-
var isLast = index === lastPage;
|
|
50
|
-
var isFirst = index === 0;
|
|
51
|
-
var isNext = index === page + 1;
|
|
52
|
-
var isPrevious = index === page - 1;
|
|
53
|
-
var shouldRender = isActive || isNext || isPrevious;
|
|
54
|
-
if (!shouldRender && returnEarly)
|
|
55
|
-
return null;
|
|
56
|
-
var pos = 0;
|
|
57
|
-
if (isActive) {
|
|
58
|
-
pos = 1;
|
|
59
|
-
}
|
|
60
|
-
else if (index > page) {
|
|
61
|
-
pos = 2;
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
pos = 0;
|
|
65
|
-
}
|
|
66
|
-
var pageProps = {
|
|
67
|
-
isLast: isLast,
|
|
68
|
-
isActive: isActive,
|
|
69
|
-
isFirst: isFirst,
|
|
70
|
-
isNext: isNext,
|
|
71
|
-
isPrevious: isPrevious,
|
|
72
|
-
index: index,
|
|
73
|
-
page: page,
|
|
74
|
-
};
|
|
75
|
-
var content = typeof child === 'function' ? child(pageProps) : child;
|
|
76
|
-
var wrapperProps = __assign({ key: index, style: variantStyles.page, animated: true, transition: variantStyles['page:transition'], animate: [variantStyles['page:previous'], variantStyles['page:current'], variantStyles['page:next']][pos] }, pageWrapperProps);
|
|
77
|
-
return (<WrapperComponent {...wrapperProps}>
|
|
78
|
-
{content}
|
|
79
|
-
</WrapperComponent>);
|
|
80
|
-
})}
|
|
81
|
-
</View_1.View>);
|
|
82
|
-
};
|
|
83
|
-
exports.Pager = Pager;
|
|
84
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Pager/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAGyB;AACzB,gDAEc;AACd,6CAAyC;AAEzC,gCAA8B;AAE9B,2CAAwB;AAwBjB,IAAM,KAAK,GAAwB,UAAC,UAAU;IAGjD,IAAA,MAAM,GAQJ,UAAU,OARN,EACN,QAAQ,GAON,UAAU,SAPJ,EACR,IAAI,GAMF,UAAU,KANR,EACJ,KAKE,UAAU,MALF,EAAV,KAAK,mBAAG,EAAE,KAAA,EACV,KAIE,UAAU,YAJM,EAAlB,WAAW,mBAAG,IAAI,KAAA,EAClB,iBAAiB,GAGf,UAAU,kBAHK,EACjB,KAEE,UAAU,iBAFS,EAArB,gBAAgB,mBAAG,EAAE,KAAA,EACrB,QAAQ,GACN,UAAU,SADJ,CACI;IAEd,IAAI,aAAa,GAAG,IAAA,iCAAwB,EAC1C,SAAS,EACT;QACE,MAAM,QAAA;QACN,SAAS,EAAE,yBAAU,CAAC,OAAO;QAC7B,QAAQ,UAAA;KACT,CACF,CAAA;IACD,IAAM,SAAS,GAAG,eAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;IAEhD,IAAM,QAAQ,GAAG,SAAS,GAAG,CAAC,CAAA;IAG9B,IAAM,QAAQ,GAAG,eAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IAEjD,IAAM,gBAAgB,GAAG,iBAAiB,IAAI,WAAI,CAAA;IAElD,iDAAiD;IACjD,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAA;IAEzD,OAAO,CACL,CAAC,WAAI,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AAa,CAAC,cAAc,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,IACtG,gBAAgB,CACpB,CAAA;YAED,OAAO,CACL,CAAC,gBAAgB,CAAC,IAAI,YAAY,CAAC,CACjC;cAAA,CAAC,OAAO,CACV;YAAA,EAAE,gBAAgB,CAAC,CACpB,CAAA;QAEH,CAAC,CAAC,CAEN;IAAA,EAAE,WAAI,CAAC,CACR,CAAA;AACH,CAAC,CAAA;AAtFY,QAAA,KAAK,SAsFjB"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
export declare type PagerComposition = 'page' | 'page:transition' | 'page:previous' | 'page:next' | 'page:current' | 'wrapper';
|
|
2
|
-
export declare const defaultPagerTransition: {
|
|
3
|
-
type: string;
|
|
4
|
-
duration: number;
|
|
5
|
-
easing: import("react-native").EasingFunction;
|
|
6
|
-
};
|
|
7
|
-
export declare function pagerAnimation(height: any, width: any, translate?: string, transition?: {
|
|
8
|
-
type: string;
|
|
9
|
-
duration: number;
|
|
10
|
-
easing: import("react-native").EasingFunction;
|
|
11
|
-
}): {
|
|
12
|
-
wrapper: {
|
|
13
|
-
height: any;
|
|
14
|
-
width: any;
|
|
15
|
-
overflow: string;
|
|
16
|
-
};
|
|
17
|
-
'page:transition': {
|
|
18
|
-
[x: string]: {
|
|
19
|
-
type: string;
|
|
20
|
-
duration: number;
|
|
21
|
-
easing: import("react-native").EasingFunction;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
'page:next': {
|
|
25
|
-
[x: string]: any;
|
|
26
|
-
};
|
|
27
|
-
'page:current': {
|
|
28
|
-
[x: string]: number;
|
|
29
|
-
};
|
|
30
|
-
'page:previous': {
|
|
31
|
-
[x: string]: number;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export declare const PagerStyles: {
|
|
35
|
-
default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
36
|
-
horizontal: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
37
|
-
vertical: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
38
|
-
fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
39
|
-
flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
40
|
-
blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
41
|
-
center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
42
|
-
hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
43
|
-
row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
44
|
-
column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
45
|
-
wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
46
|
-
absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
47
|
-
relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
48
|
-
inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
49
|
-
block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
50
|
-
inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
51
|
-
sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
52
|
-
full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
53
|
-
noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
54
|
-
fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
55
|
-
fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
56
|
-
fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
57
|
-
fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
58
|
-
fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
59
|
-
whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
60
|
-
centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
61
|
-
listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
62
|
-
alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
63
|
-
alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
64
|
-
alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
65
|
-
alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
66
|
-
alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
67
|
-
alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
68
|
-
alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
69
|
-
alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
70
|
-
justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
71
|
-
justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
72
|
-
justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
73
|
-
justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
74
|
-
justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
75
|
-
textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
76
|
-
textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
77
|
-
textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
78
|
-
elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
79
|
-
neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
80
|
-
scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
81
|
-
scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
82
|
-
scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
83
|
-
debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
84
|
-
debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
85
|
-
debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
86
|
-
debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<PagerComposition, any>>;
|
|
87
|
-
};
|
|
@@ -1,72 +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.PagerStyles = exports.pagerAnimation = exports.defaultPagerTransition = void 0;
|
|
15
|
-
var common_1 = require("@codeleap/common");
|
|
16
|
-
var react_native_1 = require("react-native");
|
|
17
|
-
var createPagerStyle = (0, common_1.createDefaultVariantFactory)();
|
|
18
|
-
var presets = (0, common_1.includePresets)(function (style) { return createPagerStyle(function () { return ({ wrapper: style }); }); });
|
|
19
|
-
exports.defaultPagerTransition = {
|
|
20
|
-
type: 'timing',
|
|
21
|
-
duration: 300,
|
|
22
|
-
easing: react_native_1.Easing.linear,
|
|
23
|
-
};
|
|
24
|
-
function pagerAnimation(height, width, translate, transition) {
|
|
25
|
-
var _a, _b, _c, _d;
|
|
26
|
-
if (translate === void 0) { translate = 'X'; }
|
|
27
|
-
if (transition === void 0) { transition = exports.defaultPagerTransition; }
|
|
28
|
-
var translateProp = "translate".concat(translate);
|
|
29
|
-
var translateVal = translate === 'X' ? width : height;
|
|
30
|
-
return {
|
|
31
|
-
wrapper: {
|
|
32
|
-
height: height,
|
|
33
|
-
width: width,
|
|
34
|
-
overflow: 'hidden',
|
|
35
|
-
},
|
|
36
|
-
'page:transition': (_a = {},
|
|
37
|
-
_a[translateProp] = transition,
|
|
38
|
-
_a),
|
|
39
|
-
'page:next': (_b = {},
|
|
40
|
-
_b[translateProp] = translateVal,
|
|
41
|
-
_b),
|
|
42
|
-
'page:current': (_c = {},
|
|
43
|
-
_c[translateProp] = 0,
|
|
44
|
-
_c),
|
|
45
|
-
'page:previous': (_d = {},
|
|
46
|
-
_d[translateProp] = -translateVal,
|
|
47
|
-
_d),
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
exports.pagerAnimation = pagerAnimation;
|
|
51
|
-
exports.PagerStyles = __assign(__assign({}, presets), { default: createPagerStyle(function (theme) {
|
|
52
|
-
var width = theme.values.width;
|
|
53
|
-
var height = theme.values.window.height * 0.8;
|
|
54
|
-
return __assign(__assign({}, pagerAnimation(height, width, 'X')), { page: {
|
|
55
|
-
width: '100%',
|
|
56
|
-
height: '100%',
|
|
57
|
-
position: 'absolute',
|
|
58
|
-
left: 0,
|
|
59
|
-
right: 0,
|
|
60
|
-
bottom: 0,
|
|
61
|
-
top: 0,
|
|
62
|
-
} });
|
|
63
|
-
}), horizontal: createPagerStyle(function (theme) {
|
|
64
|
-
var width = theme.values.width;
|
|
65
|
-
var height = theme.values.window.height * 0.8;
|
|
66
|
-
return pagerAnimation(height, width, 'X');
|
|
67
|
-
}), vertical: createPagerStyle(function (theme) {
|
|
68
|
-
var height = theme.values.window.height * 0.8;
|
|
69
|
-
var width = theme.values.width;
|
|
70
|
-
return pagerAnimation(height, width, 'Y');
|
|
71
|
-
}) });
|
|
72
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Pager/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAGyB;AACzB,6CAAqC;AAUrC,IAAM,gBAAgB,GAAG,IAAA,oCAA2B,GAAoB,CAAA;AAExE,IAAM,OAAO,GAAG,IAAA,uBAAc,EAAC,UAAC,KAAK,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