@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,127 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { InputLabelComposition } from '../InputLabel'
|
|
1
|
+
import { createDefaultVariantFactory, includePresets } from '@codeleap/common'
|
|
2
|
+
import { InputBaseComposition, InputBaseStates, InputBaseParts } from '../InputBase'
|
|
4
3
|
|
|
5
|
-
export type IconParts = Exclude<ActionIconParts, 'icon' | 'icon:disabled'>
|
|
6
|
-
type InputIcons = 'icon' | 'leftIcon' | 'rightIcon'
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
|
5
|
+
type TextInputParts = InputBaseParts | 'input' | 'placeholder' | 'selection'
|
|
6
|
+
export type TextInputStates = InputBaseStates | 'multiline' | 'hasMultipleLines' | 'pressable'
|
|
10
7
|
|
|
11
|
-
type TextInputParts
|
|
12
|
-
| 'wrapper'
|
|
13
|
-
| InputIconComposition
|
|
14
|
-
| 'textField'
|
|
15
|
-
| 'innerWrapper'
|
|
16
|
-
| 'error'
|
|
17
|
-
| 'subtitle'
|
|
18
|
-
| 'subtitleWrapper'
|
|
19
|
-
| 'placeholder'
|
|
20
|
-
| 'selection'
|
|
21
|
-
| `label${Capitalize<InputLabelComposition>}`
|
|
22
|
-
|
|
23
|
-
export type TextInputComposition =
|
|
24
|
-
| `${TextInputParts}:error`
|
|
25
|
-
| `${TextInputParts}:focus`
|
|
26
|
-
| TextInputParts
|
|
8
|
+
export type TextInputComposition = `${TextInputParts}:${TextInputStates}` | TextInputParts
|
|
27
9
|
|
|
28
10
|
const createTextInputStyle =
|
|
29
11
|
createDefaultVariantFactory<TextInputComposition>()
|
|
30
12
|
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
export const TextInputStyles = {
|
|
34
|
-
...presets,
|
|
35
|
-
default: createTextInputStyle((theme) => ({
|
|
36
|
-
textField: {
|
|
37
|
-
...theme.spacing.padding(0),
|
|
38
|
-
...theme.spacing.paddingHorizontal(1),
|
|
39
|
-
...assignTextStyle('p1')(theme).text,
|
|
40
|
-
minWidth: 1,
|
|
41
|
-
backgroundColor: 'transparent',
|
|
42
|
-
flex: 1,
|
|
43
|
-
},
|
|
44
|
-
placeholder: {
|
|
45
|
-
color: theme.colors.lightGray,
|
|
46
|
-
},
|
|
47
|
-
selection: {
|
|
48
|
-
color: theme.colors.primary,
|
|
49
|
-
},
|
|
50
|
-
wrapper: {
|
|
51
|
-
display: 'flex',
|
|
52
|
-
flexDirection: 'column',
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
innerWrapper: {
|
|
56
|
-
...theme.spacing.paddingVertical(0.5),
|
|
57
|
-
...theme.spacing.paddingHorizontal(1),
|
|
58
|
-
...theme.presets.row,
|
|
59
|
-
...theme.border.neutral(1),
|
|
60
|
-
display: 'flex',
|
|
61
|
-
alignItems: 'center',
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
labelWrapper: {
|
|
65
|
-
...theme.spacing.marginBottom(1),
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
labelText: {
|
|
69
|
-
...assignTextStyle('h5')(theme).text,
|
|
70
|
-
},
|
|
71
|
-
'icon': {
|
|
72
|
-
color: theme.colors.neutral,
|
|
73
|
-
},
|
|
74
|
-
'icon:error': {
|
|
75
|
-
color: theme.colors.negative,
|
|
76
|
-
},
|
|
77
|
-
'icon:focus': {
|
|
78
|
-
color: theme.colors.primary,
|
|
79
|
-
},
|
|
80
|
-
leftIconTouchableWrapper: {
|
|
81
|
-
// ...theme.spacing.marginRight(0.5),
|
|
82
|
-
},
|
|
83
|
-
rightIconTouchableWrapper: {
|
|
84
|
-
// ...theme.spacing.marginLeft(0.5),
|
|
85
|
-
},
|
|
86
|
-
error: {
|
|
87
|
-
color: theme.colors.negative,
|
|
88
|
-
|
|
89
|
-
},
|
|
90
|
-
subtitleWrapper: {
|
|
91
|
-
...theme.spacing.marginTop(0.2),
|
|
92
|
-
...theme.presets.row,
|
|
93
|
-
...theme.presets.justifySpaceBetween,
|
|
94
|
-
...theme.presets.alignCenter,
|
|
95
|
-
},
|
|
96
|
-
subtitle: {
|
|
97
|
-
...theme.presets.textRight,
|
|
98
|
-
},
|
|
99
|
-
'labelText:error': {
|
|
100
|
-
color: theme.colors.negative,
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
'innerWrapper:error': {
|
|
104
|
-
...theme.border.negative(1),
|
|
105
|
-
},
|
|
106
|
-
'innerWrapper:focus': {
|
|
107
|
-
...theme.border.primary(1),
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
})),
|
|
111
|
-
line: createTextInputStyle((theme) => ({
|
|
112
|
-
innerWrapper: {
|
|
113
|
-
...theme.border.neutral({ width: 1, directions: ['bottom'] }),
|
|
114
|
-
},
|
|
115
|
-
})),
|
|
116
|
-
box: createTextInputStyle((theme) => ({
|
|
117
|
-
innerWrapper: {
|
|
118
|
-
...theme.border.neutral(1),
|
|
119
|
-
},
|
|
120
|
-
})),
|
|
121
|
-
pill: createTextInputStyle((theme) => ({
|
|
122
|
-
innerWrapper: {
|
|
123
|
-
...theme.border.neutral(1),
|
|
124
|
-
borderRadius: 15,
|
|
125
|
-
},
|
|
126
|
-
})),
|
|
127
|
-
}
|
|
13
|
+
export const TextInputPresets = includePresets((styles) => createTextInputStyle(() => ({ wrapper: styles })))
|
|
@@ -10,19 +10,18 @@ import {
|
|
|
10
10
|
TypeGuards,
|
|
11
11
|
onMount,
|
|
12
12
|
} from '@codeleap/common'
|
|
13
|
-
import { Pressable, StyleSheet, View as RNView } from 'react-native'
|
|
14
|
-
|
|
15
|
-
import { createAnimatableComponent } from 'react-native-animatable'
|
|
16
|
-
import { TouchableComposition, TouchableStyles } from './styles'
|
|
13
|
+
import { Pressable, StyleSheet, View as RNView, Insets, Platform } from 'react-native'
|
|
14
|
+
import { TouchableComposition, TouchablePresets } from './styles'
|
|
17
15
|
import { StylesOf } from '../../types'
|
|
18
16
|
import { View } from '../View'
|
|
19
17
|
import { usePressableFeedback } from '../../utils'
|
|
18
|
+
import { PressableRipple } from '../../modules/PressableRipple'
|
|
20
19
|
export type TouchableProps = React.PropsWithChildren<
|
|
21
20
|
Omit<
|
|
22
21
|
ComponentPropsWithoutRef<typeof Pressable>,
|
|
23
22
|
'onPress'|'children'
|
|
24
23
|
> & {
|
|
25
|
-
variants?: ComponentVariants<typeof
|
|
24
|
+
variants?: ComponentVariants<typeof TouchablePresets>['variants']
|
|
26
25
|
component?: any
|
|
27
26
|
ref?: React.Ref<RNView>
|
|
28
27
|
debugName: string
|
|
@@ -33,6 +32,8 @@ export type TouchableProps = React.PropsWithChildren<
|
|
|
33
32
|
debounce?: number
|
|
34
33
|
leadingDebounce?: boolean
|
|
35
34
|
styles?: StylesOf<TouchableComposition>
|
|
35
|
+
setPressed?: (param: boolean) => void
|
|
36
|
+
rippleDisabled?: boolean
|
|
36
37
|
} & BaseViewProps
|
|
37
38
|
>
|
|
38
39
|
export * from './styles'
|
|
@@ -52,21 +53,22 @@ export const Touchable: React.FC<TouchableProps> = forwardRef<
|
|
|
52
53
|
leadingDebounce,
|
|
53
54
|
noFeedback = false,
|
|
54
55
|
styles,
|
|
56
|
+
setPressed,
|
|
57
|
+
rippleDisabled = false,
|
|
55
58
|
...props
|
|
56
59
|
} = touchableProps
|
|
57
60
|
|
|
58
|
-
|
|
59
61
|
const pressed = React.useRef(!!leadingDebounce)
|
|
60
62
|
|
|
61
63
|
onMount(() => {
|
|
62
|
-
if(!!leadingDebounce && !!debounce){
|
|
64
|
+
if (!!leadingDebounce && !!debounce) {
|
|
63
65
|
setTimeout(() => {
|
|
64
66
|
pressed.current = false
|
|
65
67
|
}, debounce)
|
|
66
68
|
}
|
|
67
69
|
})
|
|
68
70
|
|
|
69
|
-
const variantStyles = useDefaultComponentStyle<'u:Touchable', typeof
|
|
71
|
+
const variantStyles = useDefaultComponentStyle<'u:Touchable', typeof TouchablePresets>('u:Touchable', {
|
|
70
72
|
variants,
|
|
71
73
|
transform: StyleSheet.flatten,
|
|
72
74
|
rootElement: 'wrapper',
|
|
@@ -94,9 +96,11 @@ export const Touchable: React.FC<TouchableProps> = forwardRef<
|
|
|
94
96
|
if (pressed.current) {
|
|
95
97
|
return
|
|
96
98
|
}
|
|
99
|
+
setPressed?.(true)
|
|
97
100
|
pressed.current = true
|
|
98
101
|
_onPress()
|
|
99
102
|
setTimeout(() => {
|
|
103
|
+
setPressed?.(false)
|
|
100
104
|
pressed.current = false
|
|
101
105
|
}, debounce)
|
|
102
106
|
} else {
|
|
@@ -118,18 +122,23 @@ export const Touchable: React.FC<TouchableProps> = forwardRef<
|
|
|
118
122
|
|
|
119
123
|
const Wrapper = View
|
|
120
124
|
|
|
121
|
-
const { wrapperStyle, pressableStyle } = React.useMemo(() => {
|
|
125
|
+
const { radiusStyle, wrapperStyle, pressableStyle } = React.useMemo(() => {
|
|
122
126
|
const wrapperkeys = [
|
|
123
127
|
'margin',
|
|
124
128
|
'alignSelf',
|
|
125
|
-
'border',
|
|
126
129
|
'top!',
|
|
127
130
|
'left!',
|
|
128
131
|
'right!',
|
|
129
132
|
'bottom!',
|
|
130
133
|
'position!',
|
|
134
|
+
'transform!',
|
|
131
135
|
// 'flex!',
|
|
132
136
|
]
|
|
137
|
+
|
|
138
|
+
const radiusKey = [
|
|
139
|
+
'Radius#',
|
|
140
|
+
]
|
|
141
|
+
|
|
133
142
|
const sharedKeys = [
|
|
134
143
|
'width!',
|
|
135
144
|
'height!',
|
|
@@ -139,8 +148,12 @@ export const Touchable: React.FC<TouchableProps> = forwardRef<
|
|
|
139
148
|
|
|
140
149
|
const wrapperStyle = {} as any
|
|
141
150
|
const pressableStyle = {} as any
|
|
151
|
+
const radiusStyle = {} as any
|
|
152
|
+
|
|
142
153
|
const match = (k, key) => {
|
|
143
|
-
if (k.endsWith('
|
|
154
|
+
if (k.endsWith('#')) {
|
|
155
|
+
return key.includes(k.substring(0, k.length - 1))
|
|
156
|
+
} else if (k.endsWith('!')) {
|
|
144
157
|
return key === k.substring(0, k.length - 1)
|
|
145
158
|
} else {
|
|
146
159
|
|
|
@@ -148,6 +161,12 @@ export const Touchable: React.FC<TouchableProps> = forwardRef<
|
|
|
148
161
|
}
|
|
149
162
|
}
|
|
150
163
|
Object.entries(_styles).forEach(([key, value]) => {
|
|
164
|
+
if (radiusKey.some(k => match(k, key))) {
|
|
165
|
+
wrapperStyle[key] = value
|
|
166
|
+
pressableStyle[key] = value
|
|
167
|
+
radiusStyle[key] = value
|
|
168
|
+
return
|
|
169
|
+
}
|
|
151
170
|
|
|
152
171
|
if (wrapperkeys.some(k => match(k, key))) {
|
|
153
172
|
wrapperStyle[key] = value
|
|
@@ -163,30 +182,58 @@ export const Touchable: React.FC<TouchableProps> = forwardRef<
|
|
|
163
182
|
pressableStyle.width = '100%'
|
|
164
183
|
pressableStyle.height = '100%'
|
|
165
184
|
}
|
|
166
|
-
wrapperStyle.overflow = '
|
|
167
|
-
// wrapperStyle.flexDirection = 'row'
|
|
168
|
-
// wrapperStyle.alignItems = 'stretch'
|
|
185
|
+
wrapperStyle.overflow = 'visible'
|
|
169
186
|
|
|
170
187
|
return {
|
|
171
188
|
wrapperStyle,
|
|
172
189
|
pressableStyle,
|
|
190
|
+
radiusStyle,
|
|
173
191
|
}
|
|
174
192
|
}, [JSON.stringify(_styles)])
|
|
175
193
|
|
|
194
|
+
const hitSlop = TypeGuards.isNumber(props.hitSlop) ? {
|
|
195
|
+
top: props.hitSlop,
|
|
196
|
+
left: props.hitSlop,
|
|
197
|
+
right: props.hitSlop,
|
|
198
|
+
bottom: props.hitSlop,
|
|
199
|
+
} as Insets : props.hitSlop
|
|
200
|
+
|
|
201
|
+
const disableRipple = disableFeedback || rippleDisabled || Platform.OS !== 'android'
|
|
202
|
+
|
|
176
203
|
return (
|
|
177
|
-
<Wrapper style={[wrapperStyle]}>
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
204
|
+
<Wrapper style={[wrapperStyle]} hitSlop={hitSlop}>
|
|
205
|
+
{!disableRipple ? (
|
|
206
|
+
<PressableRipple
|
|
207
|
+
onPress={press}
|
|
208
|
+
style={[
|
|
209
|
+
pressableStyle,
|
|
210
|
+
variantStyles.pressable,
|
|
211
|
+
]}
|
|
212
|
+
{...props}
|
|
213
|
+
rippleFades={false}
|
|
214
|
+
rippleDuration={350}
|
|
215
|
+
rippleOpacity={0.1}
|
|
216
|
+
{...rippleConfig}
|
|
217
|
+
radiusStyles={radiusStyle}
|
|
218
|
+
// @ts-ignore
|
|
219
|
+
ref={ref}
|
|
220
|
+
>
|
|
221
|
+
{children}
|
|
222
|
+
</PressableRipple>
|
|
223
|
+
) : (
|
|
224
|
+
<Pressable
|
|
225
|
+
onPress={press}
|
|
226
|
+
style={({ pressed }) => ([
|
|
227
|
+
pressableStyle,
|
|
228
|
+
getFeedbackStyle(pressed),
|
|
229
|
+
variantStyles.pressable,
|
|
230
|
+
])}
|
|
231
|
+
{...props}
|
|
232
|
+
ref={ref}
|
|
233
|
+
>
|
|
234
|
+
{children}
|
|
235
|
+
</Pressable>
|
|
236
|
+
)}
|
|
188
237
|
</Wrapper>
|
|
189
238
|
)
|
|
190
239
|
})
|
|
191
|
-
|
|
192
|
-
export const AnimatedTouchable = createAnimatableComponent(Touchable) as unknown as typeof Touchable
|
|
@@ -13,16 +13,5 @@ const createTouchableStyle = createDefaultVariantFactory<
|
|
|
13
13
|
TouchableStylesGen
|
|
14
14
|
>()
|
|
15
15
|
|
|
16
|
-
const
|
|
17
|
-
)
|
|
16
|
+
export const TouchablePresets = includePresets((styles) => createTouchableStyle(() => ({ wrapper: styles, pressable: styles })))
|
|
18
17
|
|
|
19
|
-
export const TouchableStyles = {
|
|
20
|
-
...presets,
|
|
21
|
-
default: createTouchableStyle((t) => ({
|
|
22
|
-
feedback: {
|
|
23
|
-
type: 'opacity',
|
|
24
|
-
value: 0.5,
|
|
25
|
-
},
|
|
26
|
-
})),
|
|
27
|
-
|
|
28
|
-
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
-
import * as Animatable from 'react-native-animatable'
|
|
3
2
|
import { ComponentPropsWithoutRef, forwardRef } from 'react'
|
|
4
3
|
import {
|
|
5
4
|
ComponentVariants,
|
|
@@ -9,29 +8,29 @@ import {
|
|
|
9
8
|
useCodeleapContext,
|
|
10
9
|
useMemo,
|
|
11
10
|
} from '@codeleap/common'
|
|
12
|
-
import { View as NativeView } from 'react-native'
|
|
13
|
-
import { MotiView, MotiProps } from 'moti'
|
|
11
|
+
import { View as NativeView, ViewProps as RNViewProps } from 'react-native'
|
|
14
12
|
import { GetKeyboardAwarePropsOptions, useKeyboardAwareView } from '../../utils'
|
|
15
13
|
import {TransitionConfig} from '../../types'
|
|
16
14
|
import Animated from 'react-native-reanimated'
|
|
17
15
|
export * from './styles'
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
|
|
20
18
|
|
|
21
19
|
type NativeViewProps =Omit<ComponentPropsWithoutRef<typeof NativeView>, 'children'>
|
|
22
20
|
|
|
21
|
+
export type ViewRefType = NativeView | React.ForwardedRef<NativeView>
|
|
23
22
|
export type ViewProps = React.PropsWithChildren<{
|
|
24
|
-
ref?:
|
|
23
|
+
ref?: ViewRefType
|
|
25
24
|
component?: any
|
|
26
25
|
animated?: boolean
|
|
27
26
|
keyboardAware?: GetKeyboardAwarePropsOptions
|
|
28
27
|
transition?: Partial<TransitionConfig>
|
|
29
28
|
} &
|
|
30
|
-
NativeViewProps & ComponentVariants<typeof ViewStyles> & BaseViewProps
|
|
29
|
+
NativeViewProps & ComponentVariants<typeof ViewStyles> & BaseViewProps
|
|
31
30
|
>
|
|
32
31
|
|
|
33
32
|
|
|
34
|
-
export const View
|
|
33
|
+
export const View = forwardRef<NativeView,ViewProps>((viewProps, ref) => {
|
|
35
34
|
const {
|
|
36
35
|
responsiveVariants = {},
|
|
37
36
|
variants = [],
|
|
@@ -47,28 +46,14 @@ export const View: React.FC<ViewProps> = forwardRef<NativeView,ViewProps>((viewP
|
|
|
47
46
|
responsiveVariants,
|
|
48
47
|
variants,
|
|
49
48
|
})
|
|
50
|
-
const Component = animated ?
|
|
51
|
-
|
|
52
|
-
const _props = keyboard.getKeyboardAwareProps(
|
|
53
|
-
{
|
|
54
|
-
style: [variantStyles.wrapper, style], ref: ref, ...props,
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
adapt: 'paddingBottom',
|
|
58
|
-
baseStyleProp: 'style',
|
|
59
|
-
|
|
60
|
-
enabled: false,
|
|
61
|
-
...keyboardAware,
|
|
62
|
-
},
|
|
63
|
-
)
|
|
49
|
+
const Component = animated ? Animated.View : component || NativeView
|
|
50
|
+
|
|
64
51
|
return (
|
|
65
|
-
<Component
|
|
52
|
+
<Component {...props} style={[variantStyles.wrapper, style]}>
|
|
66
53
|
{children}
|
|
67
54
|
</Component>
|
|
68
55
|
)
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
export const AnimatedView = Animated.createAnimatedComponent(View)
|
|
56
|
+
}) as unknown as React.FC<ViewProps>
|
|
72
57
|
|
|
73
58
|
|
|
74
59
|
type GapProps = ViewProps & {
|
|
@@ -77,7 +62,7 @@ type GapProps = ViewProps & {
|
|
|
77
62
|
defaultProps?: any
|
|
78
63
|
}
|
|
79
64
|
|
|
80
|
-
export const Gap:React.FC<GapProps
|
|
65
|
+
export const Gap:React.FC<React.PropsWithChildren<GapProps>> = ({ children, value, defaultProps = {}, ...props }) => {
|
|
81
66
|
const { Theme } = useCodeleapContext()
|
|
82
67
|
const childArr = React.Children.toArray(children)
|
|
83
68
|
|
|
@@ -4,21 +4,5 @@ export type ViewComposition = 'wrapper'
|
|
|
4
4
|
|
|
5
5
|
const createViewStyle = createDefaultVariantFactory<ViewComposition>()
|
|
6
6
|
|
|
7
|
-
const
|
|
8
|
-
)
|
|
7
|
+
export const ViewPresets = includePresets((styles) => createViewStyle(() => ({ wrapper: styles })))
|
|
9
8
|
|
|
10
|
-
export const ViewStyles = {
|
|
11
|
-
...presets,
|
|
12
|
-
default: createViewStyle((t) => ({
|
|
13
|
-
// wrapper: {
|
|
14
|
-
// display: 'flex',
|
|
15
|
-
// },
|
|
16
|
-
})),
|
|
17
|
-
separator: createViewStyle((t) => ({
|
|
18
|
-
wrapper: {
|
|
19
|
-
width: '100%',
|
|
20
|
-
height: t.values.pixel,
|
|
21
|
-
backgroundColor: t.colors.borders,
|
|
22
|
-
},
|
|
23
|
-
})),
|
|
24
|
-
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './View'
|
|
2
|
-
export * from './Animated'
|
|
3
2
|
export * from './Icon'
|
|
4
3
|
export * from './Touchable'
|
|
5
4
|
export * from './Text'
|
|
@@ -28,13 +27,18 @@ export * from './Pager'
|
|
|
28
27
|
export * from './EmptyPlaceholder'
|
|
29
28
|
export * from './Backdrop'
|
|
30
29
|
export * from './Drawer'
|
|
31
|
-
export * from './
|
|
32
|
-
|
|
30
|
+
export * from './Autocomplete'
|
|
31
|
+
|
|
33
32
|
export * from './Grid'
|
|
34
33
|
export * from './InputLabel'
|
|
35
34
|
export * from './LoadingOverlay'
|
|
36
35
|
export * from './ActionIcon'
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
export * from './InputBase'
|
|
37
|
+
export * from './DatePickerModal'
|
|
38
|
+
export * from './RefreshControl'
|
|
39
|
+
export * from './Avatar'
|
|
40
|
+
export * from './AvatarGroup'
|
|
41
|
+
export * from './NumberIncrement'
|
|
42
|
+
export * from './Badge'
|
|
39
43
|
|
|
40
44
|
export * from './defaultStyles'
|
|
@@ -1,64 +1,77 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
1
|
+
import { ViewPresets } from './View'
|
|
2
|
+
import { IconPresets } from './Icon'
|
|
3
|
+
import { TouchablePresets } from './Touchable'
|
|
4
|
+
import { TextPresets } from './Text'
|
|
5
|
+
import { ImagePresets } from './Image'
|
|
6
|
+
import { CheckboxPresets } from './Checkbox'
|
|
7
|
+
import { TextInputPresets } from './TextInput'
|
|
8
|
+
import { RadioInputPresets } from './RadioInput'
|
|
9
|
+
import { SwitchPresets } from './Switch'
|
|
10
|
+
import { SelectPresets } from './Select'
|
|
11
|
+
import { FileInputPresets } from './FileInput'
|
|
12
|
+
import { SliderPresets } from './Slider'
|
|
13
|
+
import { SegmentedControlPresets } from './SegmentedControl'
|
|
14
|
+
import { ActivityIndicatorPresets } from './ActivityIndicator'
|
|
15
|
+
import { ButtonPresets } from './Button'
|
|
16
|
+
import { ContentViewPresets } from './ContentView'
|
|
17
|
+
import { ModalPresets } from './Modal'
|
|
18
|
+
import { EmptyPlaceholderPresets } from './EmptyPlaceholder'
|
|
19
|
+
import { BackdropPresets } from './Backdrop'
|
|
20
|
+
import { PagerPresets } from './Pager'
|
|
21
|
+
import { CalendarPresets } from './Calendar'
|
|
22
|
+
import { DrawerPresets } from './Drawer/styles'
|
|
23
|
+
import { ListPresets, PaginationIndicatorPresets } from './List'
|
|
24
|
+
|
|
25
|
+
import { ScrollPresets } from './Scroll'
|
|
26
|
+
import { ActionIconPresets } from './ActionIcon'
|
|
27
|
+
import { GridPresets } from './Grid'
|
|
28
|
+
import { InputLabelPresets } from './InputLabel'
|
|
29
|
+
import { LoadingOverlayPresets } from './LoadingOverlay'
|
|
30
|
+
import { InputBasePresets } from './InputBase'
|
|
31
|
+
import { RefreshControlPresets } from './RefreshControl'
|
|
32
|
+
import { AvatarPresets } from './Avatar'
|
|
33
|
+
import { AvatarGroupPresets } from './AvatarGroup'
|
|
34
|
+
import { SectionsPresets } from './Sections'
|
|
35
|
+
import { DatePickerModalPresets } from './DatePickerModal'
|
|
36
|
+
import { NumberIncrementPresets } from './NumberIncrement'
|
|
37
|
+
import { BadgePresets } from './Badge'
|
|
31
38
|
|
|
32
39
|
export const defaultStyles = {
|
|
33
|
-
View:
|
|
34
|
-
Icon:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
Scroll:
|
|
59
|
-
|
|
60
|
-
ActionIcon:
|
|
61
|
-
Grid:
|
|
62
|
-
LoadingOverlay:
|
|
63
|
-
InputLabel:
|
|
40
|
+
View: ViewPresets,
|
|
41
|
+
Icon: IconPresets,
|
|
42
|
+
Avatar: AvatarPresets,
|
|
43
|
+
AvatarGroup: AvatarGroupPresets,
|
|
44
|
+
Touchable: TouchablePresets,
|
|
45
|
+
Text: TextPresets,
|
|
46
|
+
Image: ImagePresets,
|
|
47
|
+
Checkbox: CheckboxPresets,
|
|
48
|
+
TextInput: TextInputPresets,
|
|
49
|
+
RadioInput: RadioInputPresets,
|
|
50
|
+
Switch: SwitchPresets,
|
|
51
|
+
Select: SelectPresets,
|
|
52
|
+
FileInput: FileInputPresets,
|
|
53
|
+
List: ListPresets,
|
|
54
|
+
Slider: SliderPresets,
|
|
55
|
+
SegmentedControl: SegmentedControlPresets,
|
|
56
|
+
ActivityIndicator: ActivityIndicatorPresets,
|
|
57
|
+
Button: ButtonPresets,
|
|
58
|
+
ContentView: ContentViewPresets,
|
|
59
|
+
Modal: ModalPresets,
|
|
60
|
+
EmptyPlaceholder: EmptyPlaceholderPresets,
|
|
61
|
+
Backdrop: BackdropPresets,
|
|
62
|
+
Calendar: CalendarPresets,
|
|
63
|
+
Pager: PagerPresets,
|
|
64
|
+
Drawer: DrawerPresets,
|
|
65
|
+
Scroll: ScrollPresets,
|
|
66
|
+
Sections: SectionsPresets,
|
|
67
|
+
ActionIcon: ActionIconPresets,
|
|
68
|
+
Grid: GridPresets,
|
|
69
|
+
LoadingOverlay: LoadingOverlayPresets,
|
|
70
|
+
InputLabel: InputLabelPresets,
|
|
71
|
+
InputBase: InputBasePresets,
|
|
72
|
+
DatePickerModal: DatePickerModalPresets,
|
|
73
|
+
RefreshControl: RefreshControlPresets,
|
|
74
|
+
PaginationIndicator: PaginationIndicatorPresets,
|
|
75
|
+
NumberIncrement: NumberIncrementPresets,
|
|
76
|
+
Badge: BadgePresets,
|
|
64
77
|
}
|
package/src/index.ts
CHANGED