@codeleap/mobile 2.3.27-1 → 2.3.27-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/List/index.tsx +2 -7
- package/src/components/Scroll/index.tsx +1 -12
- package/dist/components/ActionIcon/index.d.ts +0 -13
- package/dist/components/ActionIcon/index.js +0 -55
- package/dist/components/ActionIcon/index.js.map +0 -1
- package/dist/components/ActionIcon/styles.d.ts +0 -65
- package/dist/components/ActionIcon/styles.js +0 -61
- package/dist/components/ActionIcon/styles.js.map +0 -1
- package/dist/components/ActivityIndicator/index.d.ts +0 -15
- package/dist/components/ActivityIndicator/index.js +0 -59
- package/dist/components/ActivityIndicator/index.js.map +0 -1
- package/dist/components/ActivityIndicator/styles.d.ts +0 -59
- package/dist/components/ActivityIndicator/styles.js +0 -52
- package/dist/components/ActivityIndicator/styles.js.map +0 -1
- package/dist/components/Animated.d.ts +0 -124
- package/dist/components/Animated.js +0 -59
- package/dist/components/Animated.js.map +0 -1
- package/dist/components/Autocomplete/index.d.ts +0 -34
- package/dist/components/Autocomplete/index.js +0 -130
- package/dist/components/Autocomplete/index.js.map +0 -1
- package/dist/components/Autocomplete/styles.d.ts +0 -57
- package/dist/components/Autocomplete/styles.js +0 -89
- package/dist/components/Autocomplete/styles.js.map +0 -1
- package/dist/components/Autocomplete/types.d.ts +0 -59
- package/dist/components/Autocomplete/types.js +0 -3
- package/dist/components/Autocomplete/types.js.map +0 -1
- package/dist/components/Avatar/index.d.ts +0 -23
- package/dist/components/Avatar/index.js +0 -95
- package/dist/components/Avatar/index.js.map +0 -1
- package/dist/components/Avatar/styles.d.ts +0 -4
- package/dist/components/Avatar/styles.js +0 -7
- package/dist/components/Avatar/styles.js.map +0 -1
- package/dist/components/AvatarGroup/index.d.ts +0 -18
- package/dist/components/AvatarGroup/index.js +0 -70
- package/dist/components/AvatarGroup/index.js.map +0 -1
- package/dist/components/AvatarGroup/styles.d.ts +0 -4
- package/dist/components/AvatarGroup/styles.js +0 -7
- package/dist/components/AvatarGroup/styles.js.map +0 -1
- package/dist/components/Backdrop/index.d.ts +0 -14
- package/dist/components/Backdrop/index.js +0 -63
- package/dist/components/Backdrop/index.js.map +0 -1
- package/dist/components/Backdrop/styles.d.ts +0 -53
- package/dist/components/Backdrop/styles.js +0 -28
- package/dist/components/Backdrop/styles.js.map +0 -1
- package/dist/components/Badge/index.d.ts +0 -31
- package/dist/components/Badge/index.js +0 -110
- package/dist/components/Badge/index.js.map +0 -1
- package/dist/components/Badge/styles.d.ts +0 -5
- package/dist/components/Badge/styles.js +0 -7
- package/dist/components/Badge/styles.js.map +0 -1
- package/dist/components/Button/index.d.ts +0 -246
- package/dist/components/Button/index.js +0 -119
- package/dist/components/Button/index.js.map +0 -1
- package/dist/components/Button/styles.d.ts +0 -65
- package/dist/components/Button/styles.js +0 -61
- package/dist/components/Button/styles.js.map +0 -1
- package/dist/components/Calendar/index.d.ts +0 -15
- package/dist/components/Calendar/index.js +0 -80
- package/dist/components/Calendar/index.js.map +0 -1
- package/dist/components/Calendar/style.d.ts +0 -4
- package/dist/components/Calendar/style.js +0 -36
- package/dist/components/Calendar/style.js.map +0 -1
- package/dist/components/Calendar/types.d.ts +0 -95
- package/dist/components/Calendar/types.js +0 -3
- package/dist/components/Calendar/types.js.map +0 -1
- package/dist/components/Checkbox/index.d.ts +0 -15
- package/dist/components/Checkbox/index.js +0 -85
- package/dist/components/Checkbox/index.js.map +0 -1
- package/dist/components/Checkbox/styles.d.ts +0 -56
- package/dist/components/Checkbox/styles.js +0 -53
- package/dist/components/Checkbox/styles.js.map +0 -1
- package/dist/components/ContentView/index.d.ts +0 -12
- package/dist/components/ContentView/index.js +0 -66
- package/dist/components/ContentView/index.js.map +0 -1
- package/dist/components/ContentView/styles.d.ts +0 -53
- package/dist/components/ContentView/styles.js +0 -26
- package/dist/components/ContentView/styles.js.map +0 -1
- package/dist/components/DatePickerModal/index.d.ts +0 -8
- package/dist/components/DatePickerModal/index.js +0 -153
- package/dist/components/DatePickerModal/index.js.map +0 -1
- package/dist/components/DatePickerModal/styles.d.ts +0 -5
- package/dist/components/DatePickerModal/styles.js +0 -7
- package/dist/components/DatePickerModal/styles.js.map +0 -1
- package/dist/components/DatePickerModal/types.d.ts +0 -40
- package/dist/components/DatePickerModal/types.js +0 -3
- package/dist/components/DatePickerModal/types.js.map +0 -1
- package/dist/components/Drawer/index.d.ts +0 -7
- package/dist/components/Drawer/index.js +0 -70
- package/dist/components/Drawer/index.js.map +0 -1
- package/dist/components/Drawer/styles.d.ts +0 -56
- package/dist/components/Drawer/styles.js +0 -39
- package/dist/components/Drawer/styles.js.map +0 -1
- package/dist/components/EmptyPlaceholder/index.d.ts +0 -25
- package/dist/components/EmptyPlaceholder/index.js +0 -92
- package/dist/components/EmptyPlaceholder/index.js.map +0 -1
- package/dist/components/EmptyPlaceholder/styles.d.ts +0 -55
- package/dist/components/EmptyPlaceholder/styles.js +0 -30
- package/dist/components/EmptyPlaceholder/styles.js.map +0 -1
- package/dist/components/FileInput/index.d.ts +0 -24
- package/dist/components/FileInput/index.js +0 -183
- package/dist/components/FileInput/index.js.map +0 -1
- package/dist/components/FileInput/styles.d.ts +0 -53
- package/dist/components/FileInput/styles.js +0 -19
- package/dist/components/FileInput/styles.js.map +0 -1
- package/dist/components/Grid/index.d.ts +0 -32
- package/dist/components/Grid/index.js +0 -84
- package/dist/components/Grid/index.js.map +0 -1
- package/dist/components/Grid/styles.d.ts +0 -54
- package/dist/components/Grid/styles.js +0 -19
- package/dist/components/Grid/styles.js.map +0 -1
- package/dist/components/Icon/index.d.ts +0 -14
- package/dist/components/Icon/index.js +0 -79
- package/dist/components/Icon/index.js.map +0 -1
- package/dist/components/Icon/styles.d.ts +0 -61
- package/dist/components/Icon/styles.js +0 -49
- package/dist/components/Icon/styles.js.map +0 -1
- package/dist/components/Image/index.d.ts +0 -21
- package/dist/components/Image/index.js +0 -109
- package/dist/components/Image/index.js.map +0 -1
- package/dist/components/Image/styles.d.ts +0 -54
- package/dist/components/Image/styles.js +0 -25
- package/dist/components/Image/styles.js.map +0 -1
- package/dist/components/ImageView/Spotlight.d.ts +0 -25
- package/dist/components/ImageView/Spotlight.js +0 -154
- package/dist/components/ImageView/Spotlight.js.map +0 -1
- package/dist/components/ImageView/component.d.ts +0 -5
- package/dist/components/ImageView/component.js +0 -54
- package/dist/components/ImageView/component.js.map +0 -1
- package/dist/components/ImageView/index.d.ts +0 -2
- package/dist/components/ImageView/index.js +0 -19
- package/dist/components/ImageView/index.js.map +0 -1
- package/dist/components/InputBase/index.d.ts +0 -37
- package/dist/components/InputBase/index.js +0 -90
- package/dist/components/InputBase/index.js.map +0 -1
- package/dist/components/InputBase/styles.d.ts +0 -27
- package/dist/components/InputBase/styles.js +0 -92
- package/dist/components/InputBase/styles.js.map +0 -1
- package/dist/components/InputBase/types.d.ts +0 -28
- package/dist/components/InputBase/types.js +0 -3
- package/dist/components/InputBase/types.js.map +0 -1
- package/dist/components/InputBase/utils.d.ts +0 -11
- package/dist/components/InputBase/utils.js +0 -41
- package/dist/components/InputBase/utils.js.map +0 -1
- package/dist/components/InputLabel/index.d.ts +0 -12
- package/dist/components/InputLabel/index.js +0 -62
- package/dist/components/InputLabel/index.js.map +0 -1
- package/dist/components/InputLabel/styles.d.ts +0 -4
- package/dist/components/InputLabel/styles.js +0 -26
- package/dist/components/InputLabel/styles.js.map +0 -1
- package/dist/components/List/PaginationIndicator.d.ts +0 -67
- package/dist/components/List/PaginationIndicator.js +0 -51
- package/dist/components/List/PaginationIndicator.js.map +0 -1
- package/dist/components/List/index.d.ts +0 -31
- package/dist/components/List/index.js +0 -81
- package/dist/components/List/index.js.map +0 -1
- package/dist/components/List/styles.d.ts +0 -54
- package/dist/components/List/styles.js +0 -28
- package/dist/components/List/styles.js.map +0 -1
- package/dist/components/LoadingOverlay/index.d.ts +0 -11
- package/dist/components/LoadingOverlay/index.js +0 -66
- package/dist/components/LoadingOverlay/index.js.map +0 -1
- package/dist/components/LoadingOverlay/styles.d.ts +0 -5
- package/dist/components/LoadingOverlay/styles.js +0 -7
- package/dist/components/LoadingOverlay/styles.js.map +0 -1
- package/dist/components/Modal/index.d.ts +0 -43
- package/dist/components/Modal/index.js +0 -146
- package/dist/components/Modal/index.js.map +0 -1
- package/dist/components/Modal/styles.d.ts +0 -58
- package/dist/components/Modal/styles.js +0 -74
- package/dist/components/Modal/styles.js.map +0 -1
- package/dist/components/MultiSelect/index.d.ts +0 -6
- package/dist/components/MultiSelect/index.js +0 -123
- package/dist/components/MultiSelect/index.js.map +0 -1
- package/dist/components/MultiSelect/styles.d.ts +0 -7
- package/dist/components/MultiSelect/styles.js +0 -84
- package/dist/components/MultiSelect/styles.js.map +0 -1
- package/dist/components/MultiSelect/types.d.ts +0 -43
- package/dist/components/MultiSelect/types.js +0 -3
- package/dist/components/MultiSelect/types.js.map +0 -1
- package/dist/components/Navigation/Navigation.d.ts +0 -3
- package/dist/components/Navigation/Navigation.js +0 -84
- package/dist/components/Navigation/Navigation.js.map +0 -1
- package/dist/components/Navigation/constants.d.ts +0 -5
- package/dist/components/Navigation/constants.js +0 -11
- package/dist/components/Navigation/constants.js.map +0 -1
- package/dist/components/Navigation/index.d.ts +0 -3
- package/dist/components/Navigation/index.js +0 -20
- package/dist/components/Navigation/index.js.map +0 -1
- package/dist/components/Navigation/types.d.ts +0 -26
- package/dist/components/Navigation/types.js +0 -8
- package/dist/components/Navigation/types.js.map +0 -1
- package/dist/components/Navigation/utils.d.ts +0 -3
- package/dist/components/Navigation/utils.js +0 -69
- package/dist/components/Navigation/utils.js.map +0 -1
- package/dist/components/NumberIncrement/index.d.ts +0 -31
- package/dist/components/NumberIncrement/index.js +0 -232
- package/dist/components/NumberIncrement/index.js.map +0 -1
- package/dist/components/NumberIncrement/styles.d.ts +0 -5
- package/dist/components/NumberIncrement/styles.js +0 -7
- package/dist/components/NumberIncrement/styles.js.map +0 -1
- package/dist/components/NumberIncrement/types.d.ts +0 -35
- package/dist/components/NumberIncrement/types.js +0 -3
- package/dist/components/NumberIncrement/types.js.map +0 -1
- package/dist/components/NumberIncrement/utils.d.ts +0 -5
- package/dist/components/NumberIncrement/utils.js +0 -27
- package/dist/components/NumberIncrement/utils.js.map +0 -1
- package/dist/components/Pager/index.d.ts +0 -26
- package/dist/components/Pager/index.js +0 -88
- package/dist/components/Pager/index.js.map +0 -1
- package/dist/components/Pager/styles.d.ts +0 -87
- package/dist/components/Pager/styles.js +0 -72
- package/dist/components/Pager/styles.js.map +0 -1
- package/dist/components/RadioInput/index.d.ts +0 -27
- package/dist/components/RadioInput/index.js +0 -76
- package/dist/components/RadioInput/index.js.map +0 -1
- package/dist/components/RadioInput/styles.d.ts +0 -58
- package/dist/components/RadioInput/styles.js +0 -50
- package/dist/components/RadioInput/styles.js.map +0 -1
- package/dist/components/RefreshControl/index.d.ts +0 -9
- package/dist/components/RefreshControl/index.js +0 -31
- package/dist/components/RefreshControl/index.js.map +0 -1
- package/dist/components/RefreshControl/styles.d.ts +0 -2
- package/dist/components/RefreshControl/styles.js +0 -7
- package/dist/components/RefreshControl/styles.js.map +0 -1
- package/dist/components/Scroll/index.d.ts +0 -20
- package/dist/components/Scroll/index.js +0 -101
- package/dist/components/Scroll/index.js.map +0 -1
- package/dist/components/Scroll/styles.d.ts +0 -53
- package/dist/components/Scroll/styles.js +0 -26
- package/dist/components/Scroll/styles.js.map +0 -1
- package/dist/components/Sections/index.d.ts +0 -11
- package/dist/components/Sections/index.js +0 -80
- package/dist/components/Sections/index.js.map +0 -1
- package/dist/components/Sections/styles.d.ts +0 -2
- package/dist/components/Sections/styles.js +0 -7
- package/dist/components/Sections/styles.js.map +0 -1
- package/dist/components/SegmentedControl/Option.d.ts +0 -16
- package/dist/components/SegmentedControl/Option.js +0 -38
- package/dist/components/SegmentedControl/Option.js.map +0 -1
- package/dist/components/SegmentedControl/index.d.ts +0 -52
- package/dist/components/SegmentedControl/index.js +0 -134
- package/dist/components/SegmentedControl/index.js.map +0 -1
- package/dist/components/SegmentedControl/styles.d.ts +0 -60
- package/dist/components/SegmentedControl/styles.js +0 -43
- package/dist/components/SegmentedControl/styles.js.map +0 -1
- package/dist/components/Select/index.d.ts +0 -16
- package/dist/components/Select/index.js +0 -126
- package/dist/components/Select/index.js.map +0 -1
- package/dist/components/Select/styles.d.ts +0 -60
- package/dist/components/Select/styles.js +0 -83
- package/dist/components/Select/styles.js.map +0 -1
- package/dist/components/Select/types.d.ts +0 -43
- package/dist/components/Select/types.js +0 -3
- package/dist/components/Select/types.js.map +0 -1
- package/dist/components/Slider/Mark.d.ts +0 -3
- package/dist/components/Slider/Mark.js +0 -32
- package/dist/components/Slider/Mark.js.map +0 -1
- package/dist/components/Slider/Thumb.d.ts +0 -7
- package/dist/components/Slider/Thumb.js +0 -30
- package/dist/components/Slider/Thumb.js.map +0 -1
- package/dist/components/Slider/index.d.ts +0 -4
- package/dist/components/Slider/index.js +0 -103
- package/dist/components/Slider/index.js.map +0 -1
- package/dist/components/Slider/styles.d.ts +0 -54
- package/dist/components/Slider/styles.js +0 -61
- package/dist/components/Slider/styles.js.map +0 -1
- package/dist/components/Slider/types.d.ts +0 -26
- package/dist/components/Slider/types.js +0 -3
- package/dist/components/Slider/types.js.map +0 -1
- package/dist/components/Switch/index.d.ts +0 -14
- package/dist/components/Switch/index.js +0 -85
- package/dist/components/Switch/index.js.map +0 -1
- package/dist/components/Switch/styles.d.ts +0 -55
- package/dist/components/Switch/styles.js +0 -34
- package/dist/components/Switch/styles.js.map +0 -1
- package/dist/components/Text/index.d.ts +0 -25
- package/dist/components/Text/index.js +0 -125
- package/dist/components/Text/index.js.map +0 -1
- package/dist/components/Text/styles.d.ts +0 -70
- package/dist/components/Text/styles.js +0 -34
- package/dist/components/Text/styles.js.map +0 -1
- package/dist/components/TextInput/index.d.ts +0 -181
- package/dist/components/TextInput/index.js +0 -217
- package/dist/components/TextInput/index.js.map +0 -1
- package/dist/components/TextInput/styles.d.ts +0 -63
- package/dist/components/TextInput/styles.js +0 -65
- package/dist/components/TextInput/styles.js.map +0 -1
- package/dist/components/Touchable/index.d.ts +0 -22
- package/dist/components/Touchable/index.js +0 -169
- package/dist/components/Touchable/index.js.map +0 -1
- package/dist/components/Touchable/styles.d.ts +0 -58
- package/dist/components/Touchable/styles.js +0 -24
- package/dist/components/Touchable/styles.js.map +0 -1
- package/dist/components/View/index.d.ts +0 -132
- package/dist/components/View/index.js +0 -108
- package/dist/components/View/index.js.map +0 -1
- package/dist/components/View/styles.d.ts +0 -54
- package/dist/components/View/styles.js +0 -29
- package/dist/components/View/styles.js.map +0 -1
- package/dist/components/components.d.ts +0 -38
- package/dist/components/components.js +0 -68
- package/dist/components/components.js.map +0 -1
- package/dist/components/defaultStyles.d.ts +0 -1465
- package/dist/components/defaultStyles.js +0 -65
- package/dist/components/defaultStyles.js.map +0 -1
- package/dist/components/legacy/Modal/index.d.ts +0 -28
- package/dist/components/legacy/Modal/index.js +0 -114
- package/dist/components/legacy/Modal/index.js.map +0 -1
- package/dist/components/legacy/Modal/styles.d.ts +0 -64
- package/dist/components/legacy/Modal/styles.js +0 -60
- package/dist/components/legacy/Modal/styles.js.map +0 -1
- package/dist/components/legacy/Pager/index.d.ts +0 -20
- package/dist/components/legacy/Pager/index.js +0 -168
- package/dist/components/legacy/Pager/index.js.map +0 -1
- package/dist/components/legacy/Pager/styles.d.ts +0 -54
- package/dist/components/legacy/Pager/styles.js +0 -44
- package/dist/components/legacy/Pager/styles.js.map +0 -1
- package/dist/components/legacy/index.d.ts +0 -2
- package/dist/components/legacy/index.js +0 -19
- package/dist/components/legacy/index.js.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -43
- package/dist/index.js.map +0 -1
- package/dist/modules/PressableRipple/index.d.ts +0 -2
- package/dist/modules/PressableRipple/index.js +0 -9
- package/dist/modules/PressableRipple/index.js.map +0 -1
- package/dist/modules/PressableRipple/ripple.d.ts +0 -30
- package/dist/modules/PressableRipple/ripple.js +0 -213
- package/dist/modules/PressableRipple/ripple.js.map +0 -1
- package/dist/modules/PressableRipple/styles.d.ts +0 -19
- package/dist/modules/PressableRipple/styles.js +0 -29
- package/dist/modules/PressableRipple/styles.js.map +0 -1
- package/dist/modules/PressableRipple/type.d.ts +0 -11
- package/dist/modules/PressableRipple/type.js +0 -3
- package/dist/modules/PressableRipple/type.js.map +0 -1
- package/dist/modules/documentPicker.d.ts +0 -3
- package/dist/modules/documentPicker.js +0 -12
- package/dist/modules/documentPicker.js.map +0 -1
- package/dist/modules/fastImage.d.ts +0 -1
- package/dist/modules/fastImage.js +0 -10
- package/dist/modules/fastImage.js.map +0 -1
- package/dist/modules/reactNavigation.d.ts +0 -5
- package/dist/modules/reactNavigation.js +0 -26
- package/dist/modules/reactNavigation.js.map +0 -1
- package/dist/modules/rnDeviceInfo.d.ts +0 -2
- package/dist/modules/rnDeviceInfo.js +0 -10
- package/dist/modules/rnDeviceInfo.js.map +0 -1
- package/dist/modules/textInputMask.d.ts +0 -10
- package/dist/modules/textInputMask.js +0 -23
- package/dist/modules/textInputMask.js.map +0 -1
- package/dist/modules/types/fileTypes.d.ts +0 -138
- package/dist/modules/types/fileTypes.js +0 -3
- package/dist/modules/types/fileTypes.js.map +0 -1
- package/dist/modules/types/textInputMask.d.ts +0 -7
- package/dist/modules/types/textInputMask.js +0 -3
- package/dist/modules/types/textInputMask.js.map +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +0 -18
- package/dist/types/index.js.map +0 -1
- package/dist/types/utility.d.ts +0 -8
- package/dist/types/utility.js +0 -3
- package/dist/types/utility.js.map +0 -1
- package/dist/utils/KeyboardAware/context.d.ts +0 -13
- package/dist/utils/KeyboardAware/context.js +0 -63
- package/dist/utils/KeyboardAware/context.js.map +0 -1
- package/dist/utils/KeyboardAware/index.d.ts +0 -8
- package/dist/utils/KeyboardAware/index.js +0 -33
- package/dist/utils/KeyboardAware/index.js.map +0 -1
- package/dist/utils/KeyboardAware/keyboardHooks.d.ts +0 -26
- package/dist/utils/KeyboardAware/keyboardHooks.js +0 -87
- package/dist/utils/KeyboardAware/keyboardHooks.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.d.ts +0 -3
- package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.js +0 -9
- package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.d.ts +0 -67
- package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js +0 -451
- package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.d.ts +0 -7
- package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.js +0 -4
- package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.d.ts +0 -3
- package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.js +0 -10
- package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.d.ts +0 -3
- package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.js +0 -10
- package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.js.map +0 -1
- package/dist/utils/KeyboardAware/types.d.ts +0 -1
- package/dist/utils/KeyboardAware/types.js +0 -7
- package/dist/utils/KeyboardAware/types.js.map +0 -1
- package/dist/utils/ModalManager/components.d.ts +0 -20
- package/dist/utils/ModalManager/components.js +0 -118
- package/dist/utils/ModalManager/components.js.map +0 -1
- package/dist/utils/ModalManager/context.d.ts +0 -48
- package/dist/utils/ModalManager/context.js +0 -205
- package/dist/utils/ModalManager/context.js.map +0 -1
- package/dist/utils/ModalManager/index.d.ts +0 -11
- package/dist/utils/ModalManager/index.js +0 -13
- package/dist/utils/ModalManager/index.js.map +0 -1
- package/dist/utils/OSAlert.d.ts +0 -32
- package/dist/utils/OSAlert.js +0 -143
- package/dist/utils/OSAlert.js.map +0 -1
- package/dist/utils/PermissionManager/context.d.ts +0 -53
- package/dist/utils/PermissionManager/context.js +0 -324
- package/dist/utils/PermissionManager/context.js.map +0 -1
- package/dist/utils/PermissionManager/index.d.ts +0 -4
- package/dist/utils/PermissionManager/index.js +0 -9
- package/dist/utils/PermissionManager/index.js.map +0 -1
- package/dist/utils/PermissionManager/types.d.ts +0 -13
- package/dist/utils/PermissionManager/types.js +0 -3
- package/dist/utils/PermissionManager/types.js.map +0 -1
- package/dist/utils/hooks.d.ts +0 -42
- package/dist/utils/hooks.js +0 -174
- package/dist/utils/hooks.js.map +0 -1
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/index.js +0 -40
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/input.d.ts +0 -35
- package/dist/utils/input.js +0 -49
- package/dist/utils/input.js.map +0 -1
- package/dist/utils/locale.d.ts +0 -1
- package/dist/utils/locale.js +0 -10
- package/dist/utils/locale.js.map +0 -1
- package/dist/utils/misc.d.ts +0 -6
- package/dist/utils/misc.js +0 -87
- package/dist/utils/misc.js.map +0 -1
- package/dist/utils/notifications.d.ts +0 -34
- package/dist/utils/notifications.js +0 -268
- package/dist/utils/notifications.js.map +0 -1
- package/dist/utils/theme.d.ts +0 -42
- package/dist/utils/theme.js +0 -50
- package/dist/utils/theme.js.map +0 -1
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { StylesOf } from '@codeleap/common';
|
|
2
|
-
import { InputLabelComposition } from '../InputLabel';
|
|
3
|
-
import { TouchableStylesGen } from '../Touchable';
|
|
4
|
-
export declare type SegmentedControlStates = 'selected';
|
|
5
|
-
export declare type SegmentedControlComposition = 'selectedBubble' | 'wrapper' | 'innerWrapper' | 'scroll' | 'scrollContent' | 'text' | `text:${SegmentedControlStates}` | 'button' | 'buttonFeedback' | `button:${SegmentedControlStates}` | `label${Capitalize<InputLabelComposition>}`;
|
|
6
|
-
export declare type SegmentedControlStylesGen<TCSS = any> = StylesOf<Exclude<SegmentedControlComposition, 'buttonFeedback'>> & {
|
|
7
|
-
buttonFeedback?: TouchableStylesGen['feedback'];
|
|
8
|
-
};
|
|
9
|
-
export declare const SegmentedControlStyles: {
|
|
10
|
-
default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
11
|
-
fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
12
|
-
blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
13
|
-
center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
14
|
-
hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
15
|
-
flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
16
|
-
row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
17
|
-
column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
18
|
-
wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
19
|
-
absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
20
|
-
relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
21
|
-
inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
22
|
-
block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
23
|
-
inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
24
|
-
sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
25
|
-
full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
26
|
-
noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
27
|
-
fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
28
|
-
fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
29
|
-
fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
30
|
-
fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
31
|
-
fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
32
|
-
whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
33
|
-
centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
34
|
-
listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
35
|
-
alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
36
|
-
alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
37
|
-
alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
38
|
-
alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
39
|
-
alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
40
|
-
alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
41
|
-
alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
42
|
-
alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
43
|
-
justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
44
|
-
justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
45
|
-
justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
46
|
-
justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
47
|
-
justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
48
|
-
textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
49
|
-
textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
50
|
-
textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
51
|
-
elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
52
|
-
neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
53
|
-
scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
54
|
-
scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
55
|
-
scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
56
|
-
debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
57
|
-
debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
58
|
-
debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
59
|
-
debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
|
|
60
|
-
};
|
|
@@ -1,43 +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.SegmentedControlStyles = void 0;
|
|
15
|
-
var common_1 = require("@codeleap/common");
|
|
16
|
-
var createSegmentedControlStyle = (0, common_1.createDefaultVariantFactory)();
|
|
17
|
-
var presets = (0, common_1.includePresets)(function (style) { return createSegmentedControlStyle(function () { return ({ wrapper: style }); }); });
|
|
18
|
-
exports.SegmentedControlStyles = __assign(__assign({}, presets), { default: createSegmentedControlStyle(function (theme) {
|
|
19
|
-
return {
|
|
20
|
-
buttonFeedback: {
|
|
21
|
-
type: 'opacity',
|
|
22
|
-
value: 0.5,
|
|
23
|
-
},
|
|
24
|
-
text: {
|
|
25
|
-
color: theme.colors.text,
|
|
26
|
-
},
|
|
27
|
-
'text:selected': {
|
|
28
|
-
color: theme.colors.white,
|
|
29
|
-
},
|
|
30
|
-
wrapper: {
|
|
31
|
-
height: 'auto',
|
|
32
|
-
},
|
|
33
|
-
scroll: {
|
|
34
|
-
height: theme.values.buttons.default.height,
|
|
35
|
-
maxHeight: theme.values.buttons.default.height,
|
|
36
|
-
},
|
|
37
|
-
scrollContent: __assign(__assign(__assign({}, theme.presets.row), theme.presets.alignStretch), { height: theme.values.buttons.default.height }),
|
|
38
|
-
button: __assign(__assign(__assign(__assign(__assign({ backgroundColor: 'transparent' }, theme.presets.alignCenter), theme.presets.justifyCenter), { borderRadius: theme.borderRadius.medium }), theme.spacing.padding(1)), { minHeight: '100%' }),
|
|
39
|
-
selectedBubble: __assign(__assign({ position: 'absolute', zIndex: -1 }, theme.spacing.padding(2)), { top: 0, bottom: 0, borderRadius: theme.borderRadius.medium, backgroundColor: theme.colors.primary }),
|
|
40
|
-
innerWrapper: __assign(__assign({ borderRadius: theme.borderRadius.medium, backgroundColor: theme.colors.backgroundSecondary }, theme.presets.row), { position: 'relative', height: theme.values.buttons.default.height }),
|
|
41
|
-
};
|
|
42
|
-
}) });
|
|
43
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/SegmentedControl/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAAwF;AA0BxF,IAAM,2BAA2B,GAAG,IAAA,oCAA2B,GAG5D,CAAA;AAEH,IAAM,OAAO,GAAG,IAAA,uBAAc,EAAC,UAAC,KAAK,IAAK,OAAA,2BAA2B,CAAC,cAAM,OAAA,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAApB,CAAoB,CAAC,EAAvD,CAAuD,CAAC,CAAA;AAErF,QAAA,sBAAsB,yBAC9B,OAAO,KACV,OAAO,EAAE,2BAA2B,CAAC,UAAC,KAAK;QAEzC,OAAO;YACL,cAAc,EAAE;gBACd,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,GAAG;aACX;YACD,IAAI,EAAE;gBACJ,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI;aACzB;YACD,eAAe,EAAE;gBACf,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;aAC1B;YACD,OAAO,EAAE;gBACP,MAAM,EAAE,MAAM;aACf;YACD,MAAM,EAAE;gBACN,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM;gBAC3C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM;aAC/C;YACD,aAAa,iCACR,KAAK,CAAC,OAAO,CAAC,GAAG,GACjB,KAAK,CAAC,OAAO,CAAC,YAAY,KAC7B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,GAE5C;YACD,MAAM,iDACJ,eAAe,EAAE,aAAa,IAC3B,KAAK,CAAC,OAAO,CAAC,WAAW,GACzB,KAAK,CAAC,OAAO,CAAC,aAAa,KAE9B,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,MAAM,KACpC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,KAC3B,SAAS,EAAE,MAAM,GAElB;YACD,cAAc,sBACZ,QAAQ,EAAE,UAAU,EACpB,MAAM,EAAE,CAAC,CAAC,IACP,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,KAC3B,GAAG,EAAE,CAAC,EACN,MAAM,EAAE,CAAC,EACT,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,MAAM,EACvC,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,GACtC;YACD,YAAY,sBACV,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,MAAM,EACvC,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,mBAAmB,IAC9C,KAAK,CAAC,OAAO,CAAC,GAAG,KACpB,QAAQ,EAAE,UAAU,EACpB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,GAC5C;SAEF,CAAA;IAEH,CAAC,CAAC,IACH"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CustomSelectProps } from './types';
|
|
3
|
-
export declare const SelectItem: ({ item, icon, isSelected, styles, onPress, iconProps, textProps, ...touchableProps }: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
item: any;
|
|
6
|
-
icon?: any;
|
|
7
|
-
isSelected: any;
|
|
8
|
-
styles: any;
|
|
9
|
-
onPress: any;
|
|
10
|
-
iconProps?: {};
|
|
11
|
-
textProps?: {};
|
|
12
|
-
}) => JSX.Element;
|
|
13
|
-
export * from './styles';
|
|
14
|
-
export declare const Select: <T extends string | number = string>(selectProps: CustomSelectProps<T>) => JSX.Element;
|
|
15
|
-
export * from './styles';
|
|
16
|
-
export * from './types';
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
-
};
|
|
28
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
-
var t = {};
|
|
30
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
-
t[p] = s[p];
|
|
32
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
-
t[p[i]] = s[p[i]];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.Select = exports.SelectItem = void 0;
|
|
41
|
-
var common_1 = require("@codeleap/common");
|
|
42
|
-
var react_1 = __importStar(require("react"));
|
|
43
|
-
var react_native_1 = require("react-native");
|
|
44
|
-
var List_1 = require("../List");
|
|
45
|
-
var Text_1 = require("../Text");
|
|
46
|
-
var TextInput_1 = require("../TextInput");
|
|
47
|
-
var Touchable_1 = require("../Touchable");
|
|
48
|
-
var utils_1 = require("../../utils");
|
|
49
|
-
var Icon_1 = require("../Icon");
|
|
50
|
-
var SelectItem = function (_a) {
|
|
51
|
-
var item = _a.item, _b = _a.icon, icon = _b === void 0 ? null : _b, isSelected = _a.isSelected, styles = _a.styles, onPress = _a.onPress, _c = _a.iconProps, iconProps = _c === void 0 ? {} : _c, _d = _a.textProps, textProps = _d === void 0 ? {} : _d, touchableProps = __rest(_a, ["item", "icon", "isSelected", "styles", "onPress", "iconProps", "textProps"]);
|
|
52
|
-
return <Touchable_1.Touchable style={[
|
|
53
|
-
styles.itemWrapper,
|
|
54
|
-
isSelected && styles['itemWrapper:selected'],
|
|
55
|
-
]} onPress={onPress} debugName={"Select ".concat(item.value)} debounce={null} {...touchableProps}>
|
|
56
|
-
<Text_1.Text text={item.label} style={[
|
|
57
|
-
styles.itemText,
|
|
58
|
-
isSelected && styles['itemText:selected'],
|
|
59
|
-
]} {...textProps}/>
|
|
60
|
-
{icon ? <Icon_1.Icon name={icon} style={[styles === null || styles === void 0 ? void 0 : styles.itemIcon, isSelected && (styles === null || styles === void 0 ? void 0 : styles['itemIcon:selected'])]} {...iconProps}/> : null}
|
|
61
|
-
</Touchable_1.Touchable>;
|
|
62
|
-
};
|
|
63
|
-
exports.SelectItem = SelectItem;
|
|
64
|
-
__exportStar(require("./styles"), exports);
|
|
65
|
-
var Select = function (selectProps) {
|
|
66
|
-
var value = selectProps.value, onValueChange = selectProps.onValueChange, label = selectProps.label, _a = selectProps.styles, styles = _a === void 0 ? {} : _a, options = selectProps.options, style = selectProps.style, variants = selectProps.variants, renderItem = selectProps.renderItem, _b = selectProps.closeOnSelect, closeOnSelect = _b === void 0 ? true : _b, listProps = selectProps.listProps, _c = selectProps.placeholder, placeholder = _c === void 0 ? 'Select' : _c, _d = selectProps.arrowIconName, arrowIconName = _d === void 0 ? 'selectArrow' : _d, _e = selectProps.clearIconName, clearIconName = _e === void 0 ? 'close' : _e, _f = selectProps.clearable, clearable = _f === void 0 ? false : _f, _g = selectProps.selectedIcon, selectedIcon = _g === void 0 ? 'selectMarker' : _g, _h = selectProps.inputProps, inputProps = _h === void 0 ? {} : _h, _j = selectProps.hideInput, hideInput = _j === void 0 ? false : _j, _k = selectProps.itemProps, itemProps = _k === void 0 ? {} : _k, drawerProps = __rest(selectProps, ["value", "onValueChange", "label", "styles", "options", "style", "variants", "renderItem", "closeOnSelect", "listProps", "placeholder", "arrowIconName", "clearIconName", "clearable", "selectedIcon", "inputProps", "hideInput", "itemProps"]);
|
|
67
|
-
var variantStyles = (0, common_1.useDefaultComponentStyle)('u:Select', {
|
|
68
|
-
transform: react_native_1.StyleSheet.flatten,
|
|
69
|
-
rootElement: 'inputWrapper',
|
|
70
|
-
styles: styles,
|
|
71
|
-
variants: variants,
|
|
72
|
-
});
|
|
73
|
-
var inputStyles = (0, react_1.useMemo)(function () { return (0, common_1.getNestedStylesByKey)('input', variantStyles); }, [variantStyles]);
|
|
74
|
-
var close = function () { var _a; return (_a = drawerProps === null || drawerProps === void 0 ? void 0 : drawerProps.toggle) === null || _a === void 0 ? void 0 : _a.call(drawerProps); };
|
|
75
|
-
var select = function (value) {
|
|
76
|
-
onValueChange(value);
|
|
77
|
-
if (closeOnSelect) {
|
|
78
|
-
close === null || close === void 0 ? void 0 : close();
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
var selectedLabel = (0, react_1.useMemo)(function () {
|
|
82
|
-
var _a;
|
|
83
|
-
var current = options.find(function (o) { return o.value === value; });
|
|
84
|
-
var display = (_a = current === null || current === void 0 ? void 0 : current.label) !== null && _a !== void 0 ? _a : placeholder;
|
|
85
|
-
return common_1.TypeGuards.isString(display) ? display : '';
|
|
86
|
-
}, [value, placeholder, options]);
|
|
87
|
-
var Item = renderItem || exports.SelectItem;
|
|
88
|
-
var renderListItem = (0, react_1.useCallback)(function (_a) {
|
|
89
|
-
var item = _a.item;
|
|
90
|
-
return <Item isSelected={value === item.value} item={item} onPress={function () { return select(item.value); }} icon={selectedIcon} styles={variantStyles} {...itemProps}/>;
|
|
91
|
-
}, [value, select]);
|
|
92
|
-
var isEmpty = common_1.TypeGuards.isNil(value);
|
|
93
|
-
var showClearIcon = !isEmpty && clearable;
|
|
94
|
-
var inputIcon = showClearIcon ? clearIconName : arrowIconName;
|
|
95
|
-
var onPressInputIcon = function () {
|
|
96
|
-
if (showClearIcon) {
|
|
97
|
-
onValueChange(null);
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
close === null || close === void 0 ? void 0 : close();
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
return <>
|
|
104
|
-
{!hideInput && (<TextInput_1.TextInput caretHidden value={selectedLabel} rightIcon={{
|
|
105
|
-
icon: inputIcon,
|
|
106
|
-
onPress: onPressInputIcon,
|
|
107
|
-
noFeedback: true,
|
|
108
|
-
}} editable={false} touchableWrapper onPress={close} wrapperProps={{
|
|
109
|
-
debugName: 'Select',
|
|
110
|
-
}} pointerEvents={'none'} label={label} debugName={'Select input'} styles={inputStyles} style={style} {...inputProps}/>)}
|
|
111
|
-
|
|
112
|
-
<utils_1.ModalManager.Modal title={label} keyboardAware={{
|
|
113
|
-
enabled: false,
|
|
114
|
-
}} {...drawerProps} styles={variantStyles} id={null}>
|
|
115
|
-
<List_1.List data={options} scrollEnabled={false} showsHorizontalScrollIndicator={false} styles={(0, common_1.getNestedStylesByKey)('list', variantStyles)} keyExtractor={function (i) { return i.value; }} renderItem={renderListItem} keyboardAware={{
|
|
116
|
-
enabled: false,
|
|
117
|
-
enableOnAndroid: false,
|
|
118
|
-
}} separators {...listProps}/>
|
|
119
|
-
</utils_1.ModalManager.Modal>
|
|
120
|
-
|
|
121
|
-
</>;
|
|
122
|
-
};
|
|
123
|
-
exports.Select = Select;
|
|
124
|
-
__exportStar(require("./styles"), exports);
|
|
125
|
-
__exportStar(require("./types"), exports);
|
|
126
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAGsC;AACtC,6CAAmD;AACnD,6CAAyC;AACzC,gCAA8B;AAC9B,gCAA8B;AAC9B,0CAAwC;AACxC,0CAAwC;AAGxC,qCAA0C;AAC1C,gCAA8B;AAEvB,IAAM,UAAU,GAAG,UAAC,EAS1B;IARC,IAAA,IAAI,UAAA,EACJ,YAAW,EAAX,IAAI,mBAAG,IAAI,KAAA,EACX,UAAU,gBAAA,EACV,MAAM,YAAA,EACN,OAAO,aAAA,EACP,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACX,cAAc,cARQ,6EAS1B,CADkB;IAEjB,OA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ACV,IAAI,SAAS,CAAC,EAElB;IAAA,EAAE,oBAAY,CAAC,KAAK,CAEtB;;EAAA,GAAG,CAAA;AACL,CAAC,CAAA;AAtIY,QAAA,MAAM,UAsIlB;AAED,2CAAwB;AACxB,0CAAuB"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { TextInputComposition } from '@codeleap/common';
|
|
2
|
-
import { ListComposition } from '../List';
|
|
3
|
-
import { ModalComposition } from '../Modal';
|
|
4
|
-
declare type ItemStates = '' | ':selected';
|
|
5
|
-
export declare type SelectComposition = ModalComposition | `input${TextInputComposition}` | `list${Capitalize<ListComposition>}` | 'listContent' | `itemWrapper${ItemStates}` | `itemText${ItemStates}` | `itemIcon${ItemStates}`;
|
|
6
|
-
export declare const SelectStyles: {
|
|
7
|
-
default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SelectComposition, any>>;
|
|
8
|
-
popup: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
9
|
-
fullscreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
10
|
-
fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
11
|
-
blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
12
|
-
center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
13
|
-
hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
14
|
-
flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
15
|
-
row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
16
|
-
column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
17
|
-
wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
18
|
-
absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
19
|
-
relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
20
|
-
inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
21
|
-
block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
22
|
-
inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
23
|
-
sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
24
|
-
full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
25
|
-
noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
26
|
-
fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
27
|
-
fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
28
|
-
fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
29
|
-
fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
30
|
-
fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
31
|
-
whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
32
|
-
centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
33
|
-
listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
34
|
-
alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
35
|
-
alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
36
|
-
alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
37
|
-
alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
38
|
-
alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
39
|
-
alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
40
|
-
alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
41
|
-
alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
42
|
-
justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
43
|
-
justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
44
|
-
justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
45
|
-
justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
46
|
-
justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
47
|
-
textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
48
|
-
textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
49
|
-
textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
50
|
-
elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
51
|
-
neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
52
|
-
scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
53
|
-
scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
54
|
-
scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
55
|
-
debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
56
|
-
debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
57
|
-
debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
58
|
-
debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
59
|
-
};
|
|
60
|
-
export {};
|
|
@@ -1,83 +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.SelectStyles = void 0;
|
|
15
|
-
var common_1 = require("@codeleap/common");
|
|
16
|
-
var Drawer_1 = require("../Drawer");
|
|
17
|
-
var createSelectStyle = (0, common_1.createDefaultVariantFactory)();
|
|
18
|
-
exports.SelectStyles = __assign(__assign({}, Drawer_1.DrawerStyles), { default: createSelectStyle(function (theme) {
|
|
19
|
-
return {
|
|
20
|
-
wrapper: __assign(__assign(__assign({}, theme.presets.absolute), theme.presets.fullHeight), theme.presets.fullWidth),
|
|
21
|
-
'box:transition': {
|
|
22
|
-
scale: {
|
|
23
|
-
duration: theme.values.transitions.modal.duration,
|
|
24
|
-
type: 'timing',
|
|
25
|
-
},
|
|
26
|
-
opacity: {
|
|
27
|
-
duration: theme.values.transitions.modal.duration,
|
|
28
|
-
type: 'timing',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
'backdrop:transition': {
|
|
32
|
-
opacity: {
|
|
33
|
-
duration: theme.values.transitions.modal.duration,
|
|
34
|
-
type: 'timing',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
backdrop: __assign(__assign(__assign({}, theme.presets.absolute), theme.presets.whole), { backgroundColor: theme.colors.black }),
|
|
38
|
-
backdropTouchable: __assign(__assign({}, theme.presets.absolute), theme.presets.whole),
|
|
39
|
-
'backdrop:visible': {
|
|
40
|
-
opacity: 0.5,
|
|
41
|
-
},
|
|
42
|
-
'backdrop:hidden': {
|
|
43
|
-
opacity: 0,
|
|
44
|
-
},
|
|
45
|
-
innerWrapper: {},
|
|
46
|
-
scroll: {
|
|
47
|
-
flex: 1,
|
|
48
|
-
// maxHeight: theme.values.height,
|
|
49
|
-
},
|
|
50
|
-
scrollContent: __assign(__assign(__assign(__assign(__assign({}, theme.presets.alignCenter), theme.presets.justifyCenter), { minHeight: '100%' }), theme.presets.safeAreaTop(theme.values.innerSpacing.Y)), theme.presets.safeAreaBottom(theme.values.innerSpacing.Y)),
|
|
51
|
-
box: __assign(__assign({ backgroundColor: theme.colors.background, width: theme.values.width - theme.spacing.value(theme.values.innerSpacing.X * 2), borderRadius: theme.borderRadius.modalOuter }, theme.spacing.paddingHorizontal(theme.values.innerSpacing.X)), theme.spacing.paddingVertical(theme.values.innerSpacing.Y)),
|
|
52
|
-
'box:hidden': {
|
|
53
|
-
opacity: 0,
|
|
54
|
-
scale: 0.8,
|
|
55
|
-
},
|
|
56
|
-
'box:visible': {
|
|
57
|
-
opacity: 1,
|
|
58
|
-
scale: 1,
|
|
59
|
-
},
|
|
60
|
-
header: __assign(__assign({ flexDirection: 'row' }, theme.presets.justifySpaceBetween), theme.presets.alignCenter),
|
|
61
|
-
closeButtonTouchableWrapper: __assign({ alignSelf: 'center' }, theme.spacing.marginLeft('auto')),
|
|
62
|
-
closeButtonIcon: {
|
|
63
|
-
color: theme.colors.text,
|
|
64
|
-
},
|
|
65
|
-
title: __assign({}, (0, common_1.assignTextStyle)('h3')(theme).text),
|
|
66
|
-
listWrapper: {
|
|
67
|
-
height: 'auto',
|
|
68
|
-
},
|
|
69
|
-
itemWrapper: __assign(__assign(__assign(__assign(__assign(__assign({}, theme.presets.row), theme.presets.justifySpaceBetween), theme.presets.alignCenter), { borderRadius: theme.borderRadius.medium }), theme.spacing.padding(1)), { backgroundColor: theme.colors.backgroundSecondary }),
|
|
70
|
-
'itemWrapper:selected': {
|
|
71
|
-
backgroundColor: theme.colors.primary,
|
|
72
|
-
},
|
|
73
|
-
'itemIcon:selected': __assign({ color: theme.colors.backgroundSecondary }, theme.sized(2)),
|
|
74
|
-
'itemText:selected': {
|
|
75
|
-
color: theme.colors.backgroundSecondary,
|
|
76
|
-
},
|
|
77
|
-
itemIcon: {
|
|
78
|
-
height: 0,
|
|
79
|
-
width: 0,
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
}) });
|
|
83
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Select/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAAqG;AACrG,oCAA2D;AAa3D,IAAM,iBAAiB,GAAG,IAAA,oCAA2B,GAAqB,CAAA;AAE7D,QA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AO,CAAC,WAAW,KAC5B,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,MAAM,KACpC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,KAC3B,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,mBAAmB,GAClD;YACD,sBAAsB,EAAE;gBACtB,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;aACtC;YACD,mBAAmB,aACjB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,mBAAmB,IACpC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAElB;YACD,mBAAmB,EAAE;gBACnB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,mBAAmB;aAExC;YACD,QAAQ,EAAE;gBACR,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,CAAC;aAET;SACF,CAAA;IACH,CAAC,CAAC,IACH"}
|
|
@@ -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 { GetKeyboardAwarePropsOptions } from '../../utils';
|
|
5
|
-
import { DrawerProps } from '../Drawer';
|
|
6
|
-
import { Icon } from '../Icon';
|
|
7
|
-
import { FlatListProps } from '../List';
|
|
8
|
-
import { Text } from '../Text';
|
|
9
|
-
import { TextInputProps } from '../TextInput';
|
|
10
|
-
import { Touchable } from '../Touchable';
|
|
11
|
-
import { SelectComposition, SelectStyles } from './styles';
|
|
12
|
-
export declare type SelectRenderFNProps<T> = {
|
|
13
|
-
styles: StylesOf<SelectComposition>;
|
|
14
|
-
onPress: () => void;
|
|
15
|
-
isSelected?: boolean;
|
|
16
|
-
item: FormTypes.Options<T>[number];
|
|
17
|
-
touchableProps?: Partial<PropsOf<typeof Touchable>>;
|
|
18
|
-
textProps?: Partial<PropsOf<typeof Text>>;
|
|
19
|
-
iconProps?: Partial<PropsOf<typeof Icon>>;
|
|
20
|
-
};
|
|
21
|
-
export declare type SelectRenderFN<T> = (props: SelectRenderFNProps<T>) => JSX.Element;
|
|
22
|
-
declare type SelectDrawerProps = Omit<DrawerProps, 'variants' | 'styles'>;
|
|
23
|
-
export declare type CustomSelectProps<T> = SelectDrawerProps & {
|
|
24
|
-
value: T;
|
|
25
|
-
placeholder?: FormTypes.Label;
|
|
26
|
-
label?: FormTypes.Label;
|
|
27
|
-
options?: FormTypes.Options<T>;
|
|
28
|
-
onValueChange?: (value: T) => void;
|
|
29
|
-
renderItem?: SelectRenderFN<T>;
|
|
30
|
-
styles?: StylesOf<SelectComposition>;
|
|
31
|
-
style?: any;
|
|
32
|
-
hideInput?: boolean;
|
|
33
|
-
selectedIcon?: IconPlaceholder;
|
|
34
|
-
arrowIconName?: IconPlaceholder;
|
|
35
|
-
closeOnSelect?: boolean;
|
|
36
|
-
inputProps?: Partial<TextInputProps>;
|
|
37
|
-
listProps?: Partial<FlatListProps>;
|
|
38
|
-
clearable?: boolean;
|
|
39
|
-
clearIconName?: IconPlaceholder;
|
|
40
|
-
keyboardAware?: GetKeyboardAwarePropsOptions;
|
|
41
|
-
itemProps?: Partial<Pick<SelectRenderFNProps<any>, 'iconProps' | 'textProps' | 'touchableProps'>>;
|
|
42
|
-
} & ComponentVariants<typeof SelectStyles>;
|
|
43
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/Select/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SliderMark = void 0;
|
|
7
|
-
var react_1 = __importDefault(require("react"));
|
|
8
|
-
var Text_1 = require("../Text");
|
|
9
|
-
var View_1 = require("../View");
|
|
10
|
-
var SliderMark = function (_a) {
|
|
11
|
-
var index = _a.index, sliderProps = _a.sliderProps, styles = _a.styles, variantStyles = _a.variantStyles;
|
|
12
|
-
var _b = sliderProps.labels, labels = _b === void 0 ? [] : _b, showMarks = sliderProps.showMarks;
|
|
13
|
-
var l = (labels === null || labels === void 0 ? void 0 : labels[index]) || '';
|
|
14
|
-
var isFirst = index === 0;
|
|
15
|
-
var isLast = index === labels.length - 1;
|
|
16
|
-
var centerAdjustWord = -(l.length * 2);
|
|
17
|
-
var markStyles = {};
|
|
18
|
-
var labelStyles = {};
|
|
19
|
-
if (!isFirst && !isLast) {
|
|
20
|
-
labelStyles.left = centerAdjustWord;
|
|
21
|
-
}
|
|
22
|
-
if (isLast) {
|
|
23
|
-
labelStyles.right = -20;
|
|
24
|
-
markStyles.right = -10;
|
|
25
|
-
}
|
|
26
|
-
return (<>
|
|
27
|
-
{showMarks ? (<View_1.View style={[markStyles, variantStyles.mark, styles.mark]}/>) : null}
|
|
28
|
-
{l ? (<Text_1.Text style={[labelStyles, variantStyles.trackLabels, styles.trackLabels]} text={l}/>) : null}
|
|
29
|
-
</>);
|
|
30
|
-
};
|
|
31
|
-
exports.SliderMark = SliderMark;
|
|
32
|
-
//# sourceMappingURL=Mark.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Mark.js","sourceRoot":"","sources":["../../../src/components/Slider/Mark.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAAyB;AAEzB,gCAA8B;AAC9B,gCAA8B;AAEvB,IAAM,UAAU,GAA8B,UAAC,EAKrD;QAJC,KAAK,WAAA,EACL,WAAW,iBAAA,EACX,MAAM,YAAA,EACN,aAAa,mBAAA;IAEL,IAAA,KAA2B,WAAW,OAA3B,EAAX,MAAM,mBAAG,EAAE,KAAA,EAAE,SAAS,GAAK,WAAW,UAAhB,CAAgB;IAE9C,IAAM,CAAC,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,KAAK,CAAC,KAAI,EAAE,CAAA;IAE/B,IAAM,OAAO,GAAG,KAAK,KAAK,CAAC,CAAA;IAC3B,IAAM,MAAM,GAAG,KAAK,KAAK,MAAM,CAAC,MAAM,GAAG,CAAC,CAAA;IAE1C,IAAM,gBAAgB,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IAExC,IAAM,UAAU,GAAmB,EAAE,CAAA;IAErC,IAAM,WAAW,GAAmB,EAAE,CAAA;IAEtC,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE;QACvB,WAAW,CAAC,IAAI,GAAG,gBAAgB,CAAA;KACpC;IAED,IAAI,MAAM,EAAE;QACV,WAAW,CAAC,KAAK,GAAG,CAAC,EAAE,CAAA;QACvB,UAAU,CAAC,KAAK,GAAG,CAAC,EAAE,CAAA;KACvB;IACD,OAAO,CACL,EACE;MAAA,CAAC,SAAS,CAAC,CAAC,CAAC,CACX,CAAC,WAAI,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,EAAE,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,EAAG,CAC/D,CAAC,CAAC,CAAC,IAAI,CACR;MAAA,CAAC,CAAC,CAAC,CAAC,CAAC,CACH,CAAC,WAAI,CACH,KAAK,CAAC,CAAC,CAAC,WAAW,EAAE,aAAa,CAAC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CACpE,IAAI,CAAC,CAAC,CAAC,CAAC,EACR,CACH,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,GAAG,CACJ,CAAA;AACH,CAAC,CAAA;AAxCY,QAAA,UAAU,cAwCtB"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ThumbTooltip = void 0;
|
|
7
|
-
var react_1 = __importDefault(require("react"));
|
|
8
|
-
var react_native_1 = require("react-native");
|
|
9
|
-
var Text_1 = require("../Text");
|
|
10
|
-
var View_1 = require("../View");
|
|
11
|
-
var ThumbTooltip = function (_a) {
|
|
12
|
-
var children = _a.children, visible = _a.visible, styles = _a.styles, variantStyles = _a.variantStyles;
|
|
13
|
-
return (<View_1.View style={[
|
|
14
|
-
react_native_1.StyleSheet.flatten([variantStyles.tooltip, styles.tooltip]),
|
|
15
|
-
visible
|
|
16
|
-
? react_native_1.StyleSheet.flatten([
|
|
17
|
-
variantStyles['tooltip:visible'],
|
|
18
|
-
styles['tooltip:visible'],
|
|
19
|
-
])
|
|
20
|
-
: react_native_1.StyleSheet.flatten([
|
|
21
|
-
variantStyles['tooltip:hidden'],
|
|
22
|
-
styles['tooltip:hidden'],
|
|
23
|
-
]),
|
|
24
|
-
]}>
|
|
25
|
-
<Text_1.Text style={[variantStyles.tooltipText, styles.tooltipText]} text={children}/>
|
|
26
|
-
<View_1.View style={[variantStyles.tooltipArrow, styles.tooltipArrow]}/>
|
|
27
|
-
</View_1.View>);
|
|
28
|
-
};
|
|
29
|
-
exports.ThumbTooltip = ThumbTooltip;
|
|
30
|
-
//# sourceMappingURL=Thumb.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Thumb.js","sourceRoot":"","sources":["../../../src/components/Slider/Thumb.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAAyB;AACzB,6CAAyC;AACzC,gCAA8B;AAC9B,gCAA8B;AACvB,IAAM,YAAY,GAAG,UAAC,EAA4C;QAA1C,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,MAAM,YAAA,EAAE,aAAa,mBAAA;IACrE,OAAO,CACL,CAAC,WAAI,CACH,KAAK,CAAC,CAAC;YACL,yBAAU,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;YAC3D,OAAO;gBACL,CAAC,CAAC,yBAAU,CAAC,OAAO,CAAC;oBACnB,aAAa,CAAC,iBAAiB,CAAC;oBAChC,MAAM,CAAC,iBAAiB,CAAC;iBAC1B,CAAC;gBACF,CAAC,CAAC,yBAAU,CAAC,OAAO,CAAC;oBACnB,aAAa,CAAC,gBAAgB,CAAC;oBAC/B,MAAM,CAAC,gBAAgB,CAAC;iBACzB,CAAC;SACL,CAAC,CAEF;MAAA,CAAC,WAAI,CACH,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CACvD,IAAI,CAAC,CAAC,QAAQ,CAAC,EAEjB;MAAA,CAAC,WAAI,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,EACjE;IAAA,EAAE,WAAI,CAAC,CACR,CAAA;AACH,CAAC,CAAA;AAvBY,QAAA,YAAY,gBAuBxB"}
|