@codeleap/mobile 2.3.27-2 → 2.3.27-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/List/index.tsx +2 -7
- package/src/components/Scroll/index.tsx +1 -12
- package/dist/components/ActionIcon/index.d.ts +0 -13
- package/dist/components/ActionIcon/index.js +0 -55
- package/dist/components/ActionIcon/index.js.map +0 -1
- package/dist/components/ActionIcon/styles.d.ts +0 -65
- package/dist/components/ActionIcon/styles.js +0 -61
- package/dist/components/ActionIcon/styles.js.map +0 -1
- package/dist/components/ActivityIndicator/index.d.ts +0 -15
- package/dist/components/ActivityIndicator/index.js +0 -59
- package/dist/components/ActivityIndicator/index.js.map +0 -1
- package/dist/components/ActivityIndicator/styles.d.ts +0 -59
- package/dist/components/ActivityIndicator/styles.js +0 -52
- package/dist/components/ActivityIndicator/styles.js.map +0 -1
- package/dist/components/Animated.d.ts +0 -124
- package/dist/components/Animated.js +0 -59
- package/dist/components/Animated.js.map +0 -1
- package/dist/components/Autocomplete/index.d.ts +0 -34
- package/dist/components/Autocomplete/index.js +0 -130
- package/dist/components/Autocomplete/index.js.map +0 -1
- package/dist/components/Autocomplete/styles.d.ts +0 -57
- package/dist/components/Autocomplete/styles.js +0 -89
- package/dist/components/Autocomplete/styles.js.map +0 -1
- package/dist/components/Autocomplete/types.d.ts +0 -59
- package/dist/components/Autocomplete/types.js +0 -3
- package/dist/components/Autocomplete/types.js.map +0 -1
- package/dist/components/Avatar/index.d.ts +0 -23
- package/dist/components/Avatar/index.js +0 -95
- package/dist/components/Avatar/index.js.map +0 -1
- package/dist/components/Avatar/styles.d.ts +0 -4
- package/dist/components/Avatar/styles.js +0 -7
- package/dist/components/Avatar/styles.js.map +0 -1
- package/dist/components/AvatarGroup/index.d.ts +0 -18
- package/dist/components/AvatarGroup/index.js +0 -70
- package/dist/components/AvatarGroup/index.js.map +0 -1
- package/dist/components/AvatarGroup/styles.d.ts +0 -4
- package/dist/components/AvatarGroup/styles.js +0 -7
- package/dist/components/AvatarGroup/styles.js.map +0 -1
- package/dist/components/Backdrop/index.d.ts +0 -14
- package/dist/components/Backdrop/index.js +0 -63
- package/dist/components/Backdrop/index.js.map +0 -1
- package/dist/components/Backdrop/styles.d.ts +0 -53
- package/dist/components/Backdrop/styles.js +0 -28
- package/dist/components/Backdrop/styles.js.map +0 -1
- package/dist/components/Badge/index.d.ts +0 -31
- package/dist/components/Badge/index.js +0 -110
- package/dist/components/Badge/index.js.map +0 -1
- package/dist/components/Badge/styles.d.ts +0 -5
- package/dist/components/Badge/styles.js +0 -7
- package/dist/components/Badge/styles.js.map +0 -1
- package/dist/components/Button/index.d.ts +0 -246
- package/dist/components/Button/index.js +0 -119
- package/dist/components/Button/index.js.map +0 -1
- package/dist/components/Button/styles.d.ts +0 -65
- package/dist/components/Button/styles.js +0 -61
- package/dist/components/Button/styles.js.map +0 -1
- package/dist/components/Calendar/index.d.ts +0 -15
- package/dist/components/Calendar/index.js +0 -80
- package/dist/components/Calendar/index.js.map +0 -1
- package/dist/components/Calendar/style.d.ts +0 -4
- package/dist/components/Calendar/style.js +0 -36
- package/dist/components/Calendar/style.js.map +0 -1
- package/dist/components/Calendar/types.d.ts +0 -95
- package/dist/components/Calendar/types.js +0 -3
- package/dist/components/Calendar/types.js.map +0 -1
- package/dist/components/Checkbox/index.d.ts +0 -15
- package/dist/components/Checkbox/index.js +0 -85
- package/dist/components/Checkbox/index.js.map +0 -1
- package/dist/components/Checkbox/styles.d.ts +0 -56
- package/dist/components/Checkbox/styles.js +0 -53
- package/dist/components/Checkbox/styles.js.map +0 -1
- package/dist/components/ContentView/index.d.ts +0 -12
- package/dist/components/ContentView/index.js +0 -66
- package/dist/components/ContentView/index.js.map +0 -1
- package/dist/components/ContentView/styles.d.ts +0 -53
- package/dist/components/ContentView/styles.js +0 -26
- package/dist/components/ContentView/styles.js.map +0 -1
- package/dist/components/DatePickerModal/index.d.ts +0 -8
- package/dist/components/DatePickerModal/index.js +0 -153
- package/dist/components/DatePickerModal/index.js.map +0 -1
- package/dist/components/DatePickerModal/styles.d.ts +0 -5
- package/dist/components/DatePickerModal/styles.js +0 -7
- package/dist/components/DatePickerModal/styles.js.map +0 -1
- package/dist/components/DatePickerModal/types.d.ts +0 -40
- package/dist/components/DatePickerModal/types.js +0 -3
- package/dist/components/DatePickerModal/types.js.map +0 -1
- package/dist/components/Drawer/index.d.ts +0 -7
- package/dist/components/Drawer/index.js +0 -70
- package/dist/components/Drawer/index.js.map +0 -1
- package/dist/components/Drawer/styles.d.ts +0 -56
- package/dist/components/Drawer/styles.js +0 -39
- package/dist/components/Drawer/styles.js.map +0 -1
- package/dist/components/EmptyPlaceholder/index.d.ts +0 -25
- package/dist/components/EmptyPlaceholder/index.js +0 -92
- package/dist/components/EmptyPlaceholder/index.js.map +0 -1
- package/dist/components/EmptyPlaceholder/styles.d.ts +0 -55
- package/dist/components/EmptyPlaceholder/styles.js +0 -30
- package/dist/components/EmptyPlaceholder/styles.js.map +0 -1
- package/dist/components/FileInput/index.d.ts +0 -24
- package/dist/components/FileInput/index.js +0 -183
- package/dist/components/FileInput/index.js.map +0 -1
- package/dist/components/FileInput/styles.d.ts +0 -53
- package/dist/components/FileInput/styles.js +0 -19
- package/dist/components/FileInput/styles.js.map +0 -1
- package/dist/components/Grid/index.d.ts +0 -32
- package/dist/components/Grid/index.js +0 -84
- package/dist/components/Grid/index.js.map +0 -1
- package/dist/components/Grid/styles.d.ts +0 -54
- package/dist/components/Grid/styles.js +0 -19
- package/dist/components/Grid/styles.js.map +0 -1
- package/dist/components/Icon/index.d.ts +0 -14
- package/dist/components/Icon/index.js +0 -79
- package/dist/components/Icon/index.js.map +0 -1
- package/dist/components/Icon/styles.d.ts +0 -61
- package/dist/components/Icon/styles.js +0 -49
- package/dist/components/Icon/styles.js.map +0 -1
- package/dist/components/Image/index.d.ts +0 -21
- package/dist/components/Image/index.js +0 -109
- package/dist/components/Image/index.js.map +0 -1
- package/dist/components/Image/styles.d.ts +0 -54
- package/dist/components/Image/styles.js +0 -25
- package/dist/components/Image/styles.js.map +0 -1
- package/dist/components/ImageView/Spotlight.d.ts +0 -25
- package/dist/components/ImageView/Spotlight.js +0 -154
- package/dist/components/ImageView/Spotlight.js.map +0 -1
- package/dist/components/ImageView/component.d.ts +0 -5
- package/dist/components/ImageView/component.js +0 -54
- package/dist/components/ImageView/component.js.map +0 -1
- package/dist/components/ImageView/index.d.ts +0 -2
- package/dist/components/ImageView/index.js +0 -19
- package/dist/components/ImageView/index.js.map +0 -1
- package/dist/components/InputBase/index.d.ts +0 -37
- package/dist/components/InputBase/index.js +0 -90
- package/dist/components/InputBase/index.js.map +0 -1
- package/dist/components/InputBase/styles.d.ts +0 -27
- package/dist/components/InputBase/styles.js +0 -92
- package/dist/components/InputBase/styles.js.map +0 -1
- package/dist/components/InputBase/types.d.ts +0 -28
- package/dist/components/InputBase/types.js +0 -3
- package/dist/components/InputBase/types.js.map +0 -1
- package/dist/components/InputBase/utils.d.ts +0 -11
- package/dist/components/InputBase/utils.js +0 -41
- package/dist/components/InputBase/utils.js.map +0 -1
- package/dist/components/InputLabel/index.d.ts +0 -12
- package/dist/components/InputLabel/index.js +0 -62
- package/dist/components/InputLabel/index.js.map +0 -1
- package/dist/components/InputLabel/styles.d.ts +0 -4
- package/dist/components/InputLabel/styles.js +0 -26
- package/dist/components/InputLabel/styles.js.map +0 -1
- package/dist/components/List/PaginationIndicator.d.ts +0 -67
- package/dist/components/List/PaginationIndicator.js +0 -51
- package/dist/components/List/PaginationIndicator.js.map +0 -1
- package/dist/components/List/index.d.ts +0 -31
- package/dist/components/List/index.js +0 -86
- package/dist/components/List/index.js.map +0 -1
- package/dist/components/List/styles.d.ts +0 -54
- package/dist/components/List/styles.js +0 -28
- package/dist/components/List/styles.js.map +0 -1
- package/dist/components/LoadingOverlay/index.d.ts +0 -11
- package/dist/components/LoadingOverlay/index.js +0 -66
- package/dist/components/LoadingOverlay/index.js.map +0 -1
- package/dist/components/LoadingOverlay/styles.d.ts +0 -5
- package/dist/components/LoadingOverlay/styles.js +0 -7
- package/dist/components/LoadingOverlay/styles.js.map +0 -1
- package/dist/components/Modal/index.d.ts +0 -43
- package/dist/components/Modal/index.js +0 -146
- package/dist/components/Modal/index.js.map +0 -1
- package/dist/components/Modal/styles.d.ts +0 -58
- package/dist/components/Modal/styles.js +0 -74
- package/dist/components/Modal/styles.js.map +0 -1
- package/dist/components/MultiSelect/index.d.ts +0 -6
- package/dist/components/MultiSelect/index.js +0 -123
- package/dist/components/MultiSelect/index.js.map +0 -1
- package/dist/components/MultiSelect/styles.d.ts +0 -7
- package/dist/components/MultiSelect/styles.js +0 -84
- package/dist/components/MultiSelect/styles.js.map +0 -1
- package/dist/components/MultiSelect/types.d.ts +0 -43
- package/dist/components/MultiSelect/types.js +0 -3
- package/dist/components/MultiSelect/types.js.map +0 -1
- package/dist/components/Navigation/Navigation.d.ts +0 -3
- package/dist/components/Navigation/Navigation.js +0 -84
- package/dist/components/Navigation/Navigation.js.map +0 -1
- package/dist/components/Navigation/constants.d.ts +0 -5
- package/dist/components/Navigation/constants.js +0 -11
- package/dist/components/Navigation/constants.js.map +0 -1
- package/dist/components/Navigation/index.d.ts +0 -3
- package/dist/components/Navigation/index.js +0 -20
- package/dist/components/Navigation/index.js.map +0 -1
- package/dist/components/Navigation/types.d.ts +0 -26
- package/dist/components/Navigation/types.js +0 -8
- package/dist/components/Navigation/types.js.map +0 -1
- package/dist/components/Navigation/utils.d.ts +0 -3
- package/dist/components/Navigation/utils.js +0 -69
- package/dist/components/Navigation/utils.js.map +0 -1
- package/dist/components/NumberIncrement/index.d.ts +0 -31
- package/dist/components/NumberIncrement/index.js +0 -232
- package/dist/components/NumberIncrement/index.js.map +0 -1
- package/dist/components/NumberIncrement/styles.d.ts +0 -5
- package/dist/components/NumberIncrement/styles.js +0 -7
- package/dist/components/NumberIncrement/styles.js.map +0 -1
- package/dist/components/NumberIncrement/types.d.ts +0 -35
- package/dist/components/NumberIncrement/types.js +0 -3
- package/dist/components/NumberIncrement/types.js.map +0 -1
- package/dist/components/NumberIncrement/utils.d.ts +0 -5
- package/dist/components/NumberIncrement/utils.js +0 -27
- package/dist/components/NumberIncrement/utils.js.map +0 -1
- package/dist/components/Pager/index.d.ts +0 -26
- package/dist/components/Pager/index.js +0 -88
- package/dist/components/Pager/index.js.map +0 -1
- package/dist/components/Pager/styles.d.ts +0 -87
- package/dist/components/Pager/styles.js +0 -72
- package/dist/components/Pager/styles.js.map +0 -1
- package/dist/components/RadioInput/index.d.ts +0 -27
- package/dist/components/RadioInput/index.js +0 -76
- package/dist/components/RadioInput/index.js.map +0 -1
- package/dist/components/RadioInput/styles.d.ts +0 -58
- package/dist/components/RadioInput/styles.js +0 -50
- package/dist/components/RadioInput/styles.js.map +0 -1
- package/dist/components/RefreshControl/index.d.ts +0 -9
- package/dist/components/RefreshControl/index.js +0 -31
- package/dist/components/RefreshControl/index.js.map +0 -1
- package/dist/components/RefreshControl/styles.d.ts +0 -2
- package/dist/components/RefreshControl/styles.js +0 -7
- package/dist/components/RefreshControl/styles.js.map +0 -1
- package/dist/components/Scroll/index.d.ts +0 -20
- package/dist/components/Scroll/index.js +0 -102
- package/dist/components/Scroll/index.js.map +0 -1
- package/dist/components/Scroll/styles.d.ts +0 -53
- package/dist/components/Scroll/styles.js +0 -26
- package/dist/components/Scroll/styles.js.map +0 -1
- package/dist/components/Sections/index.d.ts +0 -11
- package/dist/components/Sections/index.js +0 -80
- package/dist/components/Sections/index.js.map +0 -1
- package/dist/components/Sections/styles.d.ts +0 -2
- package/dist/components/Sections/styles.js +0 -7
- package/dist/components/Sections/styles.js.map +0 -1
- package/dist/components/SegmentedControl/Option.d.ts +0 -16
- package/dist/components/SegmentedControl/Option.js +0 -38
- package/dist/components/SegmentedControl/Option.js.map +0 -1
- package/dist/components/SegmentedControl/index.d.ts +0 -52
- package/dist/components/SegmentedControl/index.js +0 -134
- package/dist/components/SegmentedControl/index.js.map +0 -1
- package/dist/components/SegmentedControl/styles.d.ts +0 -60
- package/dist/components/SegmentedControl/styles.js +0 -43
- package/dist/components/SegmentedControl/styles.js.map +0 -1
- package/dist/components/Select/index.d.ts +0 -16
- package/dist/components/Select/index.js +0 -126
- package/dist/components/Select/index.js.map +0 -1
- package/dist/components/Select/styles.d.ts +0 -60
- package/dist/components/Select/styles.js +0 -83
- package/dist/components/Select/styles.js.map +0 -1
- package/dist/components/Select/types.d.ts +0 -43
- package/dist/components/Select/types.js +0 -3
- package/dist/components/Select/types.js.map +0 -1
- package/dist/components/Slider/Mark.d.ts +0 -3
- package/dist/components/Slider/Mark.js +0 -32
- package/dist/components/Slider/Mark.js.map +0 -1
- package/dist/components/Slider/Thumb.d.ts +0 -7
- package/dist/components/Slider/Thumb.js +0 -30
- package/dist/components/Slider/Thumb.js.map +0 -1
- package/dist/components/Slider/index.d.ts +0 -4
- package/dist/components/Slider/index.js +0 -103
- package/dist/components/Slider/index.js.map +0 -1
- package/dist/components/Slider/styles.d.ts +0 -54
- package/dist/components/Slider/styles.js +0 -61
- package/dist/components/Slider/styles.js.map +0 -1
- package/dist/components/Slider/types.d.ts +0 -26
- package/dist/components/Slider/types.js +0 -3
- package/dist/components/Slider/types.js.map +0 -1
- package/dist/components/Switch/index.d.ts +0 -14
- package/dist/components/Switch/index.js +0 -85
- package/dist/components/Switch/index.js.map +0 -1
- package/dist/components/Switch/styles.d.ts +0 -55
- package/dist/components/Switch/styles.js +0 -34
- package/dist/components/Switch/styles.js.map +0 -1
- package/dist/components/Text/index.d.ts +0 -25
- package/dist/components/Text/index.js +0 -125
- package/dist/components/Text/index.js.map +0 -1
- package/dist/components/Text/styles.d.ts +0 -70
- package/dist/components/Text/styles.js +0 -34
- package/dist/components/Text/styles.js.map +0 -1
- package/dist/components/TextInput/index.d.ts +0 -181
- package/dist/components/TextInput/index.js +0 -217
- package/dist/components/TextInput/index.js.map +0 -1
- package/dist/components/TextInput/styles.d.ts +0 -63
- package/dist/components/TextInput/styles.js +0 -65
- package/dist/components/TextInput/styles.js.map +0 -1
- package/dist/components/Touchable/index.d.ts +0 -22
- package/dist/components/Touchable/index.js +0 -169
- package/dist/components/Touchable/index.js.map +0 -1
- package/dist/components/Touchable/styles.d.ts +0 -58
- package/dist/components/Touchable/styles.js +0 -24
- package/dist/components/Touchable/styles.js.map +0 -1
- package/dist/components/View/index.d.ts +0 -132
- package/dist/components/View/index.js +0 -108
- package/dist/components/View/index.js.map +0 -1
- package/dist/components/View/styles.d.ts +0 -54
- package/dist/components/View/styles.js +0 -29
- package/dist/components/View/styles.js.map +0 -1
- package/dist/components/components.d.ts +0 -38
- package/dist/components/components.js +0 -68
- package/dist/components/components.js.map +0 -1
- package/dist/components/defaultStyles.d.ts +0 -1465
- package/dist/components/defaultStyles.js +0 -65
- package/dist/components/defaultStyles.js.map +0 -1
- package/dist/components/legacy/Modal/index.d.ts +0 -28
- package/dist/components/legacy/Modal/index.js +0 -114
- package/dist/components/legacy/Modal/index.js.map +0 -1
- package/dist/components/legacy/Modal/styles.d.ts +0 -64
- package/dist/components/legacy/Modal/styles.js +0 -60
- package/dist/components/legacy/Modal/styles.js.map +0 -1
- package/dist/components/legacy/Pager/index.d.ts +0 -20
- package/dist/components/legacy/Pager/index.js +0 -168
- package/dist/components/legacy/Pager/index.js.map +0 -1
- package/dist/components/legacy/Pager/styles.d.ts +0 -54
- package/dist/components/legacy/Pager/styles.js +0 -44
- package/dist/components/legacy/Pager/styles.js.map +0 -1
- package/dist/components/legacy/index.d.ts +0 -2
- package/dist/components/legacy/index.js +0 -19
- package/dist/components/legacy/index.js.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -43
- package/dist/index.js.map +0 -1
- package/dist/modules/PressableRipple/index.d.ts +0 -2
- package/dist/modules/PressableRipple/index.js +0 -9
- package/dist/modules/PressableRipple/index.js.map +0 -1
- package/dist/modules/PressableRipple/ripple.d.ts +0 -30
- package/dist/modules/PressableRipple/ripple.js +0 -213
- package/dist/modules/PressableRipple/ripple.js.map +0 -1
- package/dist/modules/PressableRipple/styles.d.ts +0 -19
- package/dist/modules/PressableRipple/styles.js +0 -29
- package/dist/modules/PressableRipple/styles.js.map +0 -1
- package/dist/modules/PressableRipple/type.d.ts +0 -11
- package/dist/modules/PressableRipple/type.js +0 -3
- package/dist/modules/PressableRipple/type.js.map +0 -1
- package/dist/modules/documentPicker.d.ts +0 -3
- package/dist/modules/documentPicker.js +0 -12
- package/dist/modules/documentPicker.js.map +0 -1
- package/dist/modules/fastImage.d.ts +0 -1
- package/dist/modules/fastImage.js +0 -10
- package/dist/modules/fastImage.js.map +0 -1
- package/dist/modules/reactNavigation.d.ts +0 -5
- package/dist/modules/reactNavigation.js +0 -26
- package/dist/modules/reactNavigation.js.map +0 -1
- package/dist/modules/rnDeviceInfo.d.ts +0 -2
- package/dist/modules/rnDeviceInfo.js +0 -10
- package/dist/modules/rnDeviceInfo.js.map +0 -1
- package/dist/modules/textInputMask.d.ts +0 -10
- package/dist/modules/textInputMask.js +0 -23
- package/dist/modules/textInputMask.js.map +0 -1
- package/dist/modules/types/fileTypes.d.ts +0 -138
- package/dist/modules/types/fileTypes.js +0 -3
- package/dist/modules/types/fileTypes.js.map +0 -1
- package/dist/modules/types/textInputMask.d.ts +0 -7
- package/dist/modules/types/textInputMask.js +0 -3
- package/dist/modules/types/textInputMask.js.map +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +0 -18
- package/dist/types/index.js.map +0 -1
- package/dist/types/utility.d.ts +0 -8
- package/dist/types/utility.js +0 -3
- package/dist/types/utility.js.map +0 -1
- package/dist/utils/KeyboardAware/context.d.ts +0 -13
- package/dist/utils/KeyboardAware/context.js +0 -63
- package/dist/utils/KeyboardAware/context.js.map +0 -1
- package/dist/utils/KeyboardAware/index.d.ts +0 -8
- package/dist/utils/KeyboardAware/index.js +0 -33
- package/dist/utils/KeyboardAware/index.js.map +0 -1
- package/dist/utils/KeyboardAware/keyboardHooks.d.ts +0 -26
- package/dist/utils/KeyboardAware/keyboardHooks.js +0 -87
- package/dist/utils/KeyboardAware/keyboardHooks.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.d.ts +0 -3
- package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.js +0 -9
- package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.d.ts +0 -67
- package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js +0 -451
- package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.d.ts +0 -7
- package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.js +0 -4
- package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.d.ts +0 -3
- package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.js +0 -10
- package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.d.ts +0 -3
- package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.js +0 -10
- package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.js.map +0 -1
- package/dist/utils/KeyboardAware/types.d.ts +0 -1
- package/dist/utils/KeyboardAware/types.js +0 -7
- package/dist/utils/KeyboardAware/types.js.map +0 -1
- package/dist/utils/ModalManager/components.d.ts +0 -20
- package/dist/utils/ModalManager/components.js +0 -118
- package/dist/utils/ModalManager/components.js.map +0 -1
- package/dist/utils/ModalManager/context.d.ts +0 -48
- package/dist/utils/ModalManager/context.js +0 -205
- package/dist/utils/ModalManager/context.js.map +0 -1
- package/dist/utils/ModalManager/index.d.ts +0 -11
- package/dist/utils/ModalManager/index.js +0 -13
- package/dist/utils/ModalManager/index.js.map +0 -1
- package/dist/utils/OSAlert.d.ts +0 -32
- package/dist/utils/OSAlert.js +0 -143
- package/dist/utils/OSAlert.js.map +0 -1
- package/dist/utils/PermissionManager/context.d.ts +0 -53
- package/dist/utils/PermissionManager/context.js +0 -324
- package/dist/utils/PermissionManager/context.js.map +0 -1
- package/dist/utils/PermissionManager/index.d.ts +0 -4
- package/dist/utils/PermissionManager/index.js +0 -9
- package/dist/utils/PermissionManager/index.js.map +0 -1
- package/dist/utils/PermissionManager/types.d.ts +0 -13
- package/dist/utils/PermissionManager/types.js +0 -3
- package/dist/utils/PermissionManager/types.js.map +0 -1
- package/dist/utils/hooks.d.ts +0 -44
- package/dist/utils/hooks.js +0 -186
- package/dist/utils/hooks.js.map +0 -1
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/index.js +0 -40
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/input.d.ts +0 -35
- package/dist/utils/input.js +0 -49
- package/dist/utils/input.js.map +0 -1
- package/dist/utils/locale.d.ts +0 -1
- package/dist/utils/locale.js +0 -10
- package/dist/utils/locale.js.map +0 -1
- package/dist/utils/misc.d.ts +0 -6
- package/dist/utils/misc.js +0 -87
- package/dist/utils/misc.js.map +0 -1
- package/dist/utils/notifications.d.ts +0 -34
- package/dist/utils/notifications.js +0 -268
- package/dist/utils/notifications.js.map +0 -1
- package/dist/utils/theme.d.ts +0 -42
- package/dist/utils/theme.js +0 -50
- package/dist/utils/theme.js.map +0 -1
|
@@ -1,103 +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.Slider = void 0;
|
|
41
|
-
var Mark_1 = require("./Mark");
|
|
42
|
-
var Thumb_1 = require("./Thumb");
|
|
43
|
-
var React = __importStar(require("react"));
|
|
44
|
-
var react_native_slider_1 = require("@miblanchard/react-native-slider");
|
|
45
|
-
var react_1 = require("react");
|
|
46
|
-
var react_native_1 = require("react-native");
|
|
47
|
-
var View_1 = require("../View");
|
|
48
|
-
var common_1 = require("@codeleap/common");
|
|
49
|
-
var InputLabel_1 = require("../InputLabel");
|
|
50
|
-
__exportStar(require("./styles"), exports);
|
|
51
|
-
var Slider = function (sliderProps) {
|
|
52
|
-
var _a;
|
|
53
|
-
var _b = React.useState(false), tooltipVisible = _b[0], setTooltipVisible = _b[1];
|
|
54
|
-
var debounce = sliderProps.debounce, onValueChange = sliderProps.onValueChange, labels = sliderProps.labels, value = sliderProps.value, label = sliderProps.label, valueOverThumb = sliderProps.valueOverThumb, formatTooltip = sliderProps.formatTooltip, _c = sliderProps.styles, styles = _c === void 0 ? {} : _c, style = sliderProps.style, _d = sliderProps.tooltipVisibilityWindow, tooltipVisibilityWindow = _d === void 0 ? 830 : _d, variants = sliderProps.variants, props = __rest(sliderProps, ["debounce", "onValueChange", "labels", "value", "label", "valueOverThumb", "formatTooltip", "styles", "style", "tooltipVisibilityWindow", "variants"]);
|
|
55
|
-
var changeDebounce = typeof debounce === 'number' ? debounce : 100;
|
|
56
|
-
var debounceTimeout = (0, react_1.useRef)(null);
|
|
57
|
-
var toggleTooltipTimeout = (0, react_1.useRef)(null);
|
|
58
|
-
var valueRef = (0, react_1.useRef)(value);
|
|
59
|
-
var variantStyles = (0, common_1.useDefaultComponentStyle)('u:Slider', {
|
|
60
|
-
variants: variants,
|
|
61
|
-
styles: styles,
|
|
62
|
-
transform: react_native_1.StyleSheet.flatten,
|
|
63
|
-
});
|
|
64
|
-
function setValue() {
|
|
65
|
-
onValueChange(valueRef.current);
|
|
66
|
-
}
|
|
67
|
-
function onChange(val) {
|
|
68
|
-
var eventValue = val;
|
|
69
|
-
if (Array.isArray(val) && typeof value === 'number') {
|
|
70
|
-
eventValue = val[0];
|
|
71
|
-
}
|
|
72
|
-
if (eventValue === value)
|
|
73
|
-
return;
|
|
74
|
-
valueRef.current = eventValue;
|
|
75
|
-
if (debounceTimeout.current)
|
|
76
|
-
clearTimeout(debounceTimeout.current);
|
|
77
|
-
debounceTimeout.current = setTimeout(function () {
|
|
78
|
-
setValue();
|
|
79
|
-
}, changeDebounce);
|
|
80
|
-
}
|
|
81
|
-
return (<View_1.View style={[variantStyles.wrapper, style]}>
|
|
82
|
-
<InputLabel_1.InputLabel label={label} styles={(0, common_1.getNestedStylesByKey)('label', variantStyles)}/>
|
|
83
|
-
<react_native_slider_1.Slider value={value} onSlidingStart={function () {
|
|
84
|
-
if (toggleTooltipTimeout.current) {
|
|
85
|
-
clearTimeout(toggleTooltipTimeout.current);
|
|
86
|
-
}
|
|
87
|
-
setTooltipVisible(true);
|
|
88
|
-
}} onSlidingComplete={function () {
|
|
89
|
-
toggleTooltipTimeout.current = setTimeout(function () { return setTooltipVisible(false); }, tooltipVisibilityWindow);
|
|
90
|
-
}} onValueChange={onChange} renderAboveThumbComponent={function (idx) {
|
|
91
|
-
if (!valueOverThumb)
|
|
92
|
-
return null;
|
|
93
|
-
var thisValue = Array.isArray(value) ? value[idx] : value;
|
|
94
|
-
return (<Thumb_1.ThumbTooltip visible={tooltipVisible} variantStyles={variantStyles} styles={styles}>
|
|
95
|
-
{formatTooltip ? formatTooltip(thisValue) : thisValue.toString()}
|
|
96
|
-
</Thumb_1.ThumbTooltip>);
|
|
97
|
-
}} renderTrackMarkComponent={function (idx) { return (<Mark_1.SliderMark index={idx} sliderProps={sliderProps} styles={styles} variantStyles={variantStyles}/>); }} maximumValue={labels ? labels.length - 1 : 10} trackMarks={labels ? Object.keys(labels).map(function (z) { return parseInt(z); }) : []} containerStyle={[variantStyles.inputContainer]} thumbStyle={react_native_1.StyleSheet.flatten([variantStyles.handle])} trackStyle={[variantStyles.track]} minimumTrackTintColor={(_a = react_native_1.StyleSheet.flatten([
|
|
98
|
-
variantStyles.selectedTrack,
|
|
99
|
-
])) === null || _a === void 0 ? void 0 : _a.backgroundColor} {...props}/>
|
|
100
|
-
</View_1.View>);
|
|
101
|
-
};
|
|
102
|
-
exports.Slider = Slider;
|
|
103
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Slider/index.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { InputLabelComposition } from '../InputLabel';
|
|
2
|
-
export declare type SliderComposition = 'wrapper' | 'handle' | 'track' | `label${Capitalize<InputLabelComposition>}` | 'selectedTrack' | 'inputContainer' | 'tooltip' | 'tooltip:visible' | 'tooltip:hidden' | 'trackLabels' | 'mark' | 'tooltipArrow' | 'tooltipText';
|
|
3
|
-
export declare const SliderStyles: {
|
|
4
|
-
default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
5
|
-
fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
6
|
-
hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
7
|
-
center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
8
|
-
flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
9
|
-
row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
10
|
-
column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
11
|
-
wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
12
|
-
absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
13
|
-
relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
14
|
-
blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
15
|
-
inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
16
|
-
block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
17
|
-
inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
18
|
-
sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
19
|
-
full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
20
|
-
noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
21
|
-
fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
22
|
-
fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
23
|
-
fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
24
|
-
fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
25
|
-
fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
26
|
-
whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
27
|
-
centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
28
|
-
listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
29
|
-
alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
30
|
-
alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
31
|
-
alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
32
|
-
alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
33
|
-
alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
34
|
-
alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
35
|
-
alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
36
|
-
alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
37
|
-
justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
38
|
-
justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
39
|
-
justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
40
|
-
justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
41
|
-
justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
42
|
-
textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
43
|
-
textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
44
|
-
textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
45
|
-
elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
46
|
-
neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
47
|
-
scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
48
|
-
scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
49
|
-
scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
50
|
-
debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
51
|
-
debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
52
|
-
debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
53
|
-
debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SliderComposition, any>>;
|
|
54
|
-
};
|
|
@@ -1,61 +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.SliderStyles = void 0;
|
|
15
|
-
var common_1 = require("@codeleap/common");
|
|
16
|
-
var createSliderStyle = (0, common_1.createDefaultVariantFactory)();
|
|
17
|
-
var presets = (0, common_1.includePresets)(function (styles) { return createSliderStyle(function () { return ({ wrapper: styles }); }); });
|
|
18
|
-
exports.SliderStyles = __assign(__assign({}, presets), { default: createSliderStyle(function (theme) { return ({
|
|
19
|
-
wrapper: {},
|
|
20
|
-
handle: {
|
|
21
|
-
backgroundColor: theme.colors.primary,
|
|
22
|
-
},
|
|
23
|
-
selectedTrack: {
|
|
24
|
-
backgroundColor: theme.colors.primary,
|
|
25
|
-
},
|
|
26
|
-
track: {
|
|
27
|
-
backgroundColor: theme.colors.gray,
|
|
28
|
-
},
|
|
29
|
-
tooltip: {
|
|
30
|
-
padding: theme.spacing.value(0.5),
|
|
31
|
-
backgroundColor: theme.colors.primary,
|
|
32
|
-
position: 'relative',
|
|
33
|
-
borderRadius: theme.borderRadius.small,
|
|
34
|
-
},
|
|
35
|
-
'tooltip:visible': {
|
|
36
|
-
opacity: 1,
|
|
37
|
-
},
|
|
38
|
-
'tooltip:hidden': {
|
|
39
|
-
opacity: 0,
|
|
40
|
-
},
|
|
41
|
-
mark: {
|
|
42
|
-
position: 'absolute',
|
|
43
|
-
backgroundColor: theme.colors.primary,
|
|
44
|
-
borderRadius: 29,
|
|
45
|
-
height: 10,
|
|
46
|
-
width: 10,
|
|
47
|
-
top: -5,
|
|
48
|
-
},
|
|
49
|
-
trackLabels: __assign({ position: 'absolute', top: 8 }, (0, common_1.assignTextStyle)('p3')(theme).text),
|
|
50
|
-
tooltipArrow: {
|
|
51
|
-
height: 6,
|
|
52
|
-
width: 6,
|
|
53
|
-
position: 'absolute',
|
|
54
|
-
backgroundColor: theme.colors.primary,
|
|
55
|
-
transform: [{ rotate: '45deg' }],
|
|
56
|
-
bottom: -3,
|
|
57
|
-
left: '50%',
|
|
58
|
-
},
|
|
59
|
-
tooltipText: __assign({ color: theme.colors.white }, (0, common_1.assignTextStyle)('p3')(theme).text),
|
|
60
|
-
}); }) });
|
|
61
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Slider/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAA+F;AAkB/F,IAAM,iBAAiB,GAAG,IAAA,oCAA2B,GAAqB,CAAA;AAE1E,IAAM,OAAO,GAAG,IAAA,uBAAc,EAAC,UAAC,MAAM,IAAK,OAAA,iBAAiB,CAAC,cAAM,OAAA,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAArB,CAAqB,CAAC,EAA9C,CAA8C,CACxF,CAAA;AAEY,QAAA,YAAY,yBACpB,OAAO,KACV,OAAO,EAAE,iBAAiB,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC;QACrC,OAAO,EAAE,EAAE;QACX,MAAM,EAAE;YACN,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;SACtC;QACD,aAAa,EAAE;YACb,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;SACtC;QACD,KAAK,EAAE;YACL,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI;SACnC;QACD,OAAO,EAAE;YACP,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;YACjC,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;YACrC,QAAQ,EAAE,UAAU;YACpB,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,KAAK;SACvC;QACD,iBAAiB,EAAE;YACjB,OAAO,EAAE,CAAC;SACX;QACD,gBAAgB,EAAE;YAChB,OAAO,EAAE,CAAC;SACX;QACD,IAAI,EAAE;YACJ,QAAQ,EAAE,UAAU;YACpB,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;YACrC,YAAY,EAAE,EAAE;YAChB,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,EAAE;YACT,GAAG,EAAE,CAAC,CAAC;SACR;QACD,WAAW,aACT,QAAQ,EAAE,UAAU,EACpB,GAAG,EAAE,CAAC,IACH,IAAA,wBAAe,EAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CACrC;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,CAAC;YACR,QAAQ,EAAE,UAAU;YACpB,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;YACrC,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;YAChC,MAAM,EAAE,CAAC,CAAC;YACV,IAAI,EAAE,KAAK;SACZ;QACD,WAAW,aACT,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,IACtB,IAAA,wBAAe,EAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CACrC;KACF,CAAC,EAjDoC,CAiDpC,CAAC,IACJ"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentVariants, Form } from '@codeleap/common';
|
|
3
|
-
import { SliderComposition, SliderStyles } from './styles';
|
|
4
|
-
import { SliderProps as RNSliderProps } from '@miblanchard/react-native-slider/lib/types';
|
|
5
|
-
import { StylesOf } from '../../types';
|
|
6
|
-
import { ViewProps } from '../View';
|
|
7
|
-
export declare type SliderProps = Partial<Omit<RNSliderProps, 'value' | 'onValueChange'>> & {
|
|
8
|
-
debounce?: number;
|
|
9
|
-
labels: string[];
|
|
10
|
-
value: number;
|
|
11
|
-
valueOverThumb?: boolean;
|
|
12
|
-
showMarks?: boolean;
|
|
13
|
-
onValueChange: (val: number) => void;
|
|
14
|
-
label: Form.Label;
|
|
15
|
-
formatTooltip?: (val: number) => React.ReactNode;
|
|
16
|
-
variants?: ComponentVariants<typeof SliderStyles>['variants'];
|
|
17
|
-
styles?: StylesOf<SliderComposition>;
|
|
18
|
-
style?: ViewProps['style'];
|
|
19
|
-
tooltipVisibilityWindow?: number;
|
|
20
|
-
};
|
|
21
|
-
export declare type SliderMarkProps = {
|
|
22
|
-
sliderProps: SliderProps;
|
|
23
|
-
index: number;
|
|
24
|
-
styles: SliderProps['styles'];
|
|
25
|
-
variantStyles: SliderProps['styles'];
|
|
26
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/Slider/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentVariants, StylesOf, FormTypes } from '@codeleap/common';
|
|
3
|
-
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
4
|
-
import { Switch as NativeSwitch } from 'react-native';
|
|
5
|
-
import { SwitchStyles, SwitchComposition } from './styles';
|
|
6
|
-
export * from './styles';
|
|
7
|
-
declare type NativeSwitchProps = Omit<ComponentPropsWithRef<typeof NativeSwitch>, 'thumbColor' | 'trackColor'>;
|
|
8
|
-
declare type SwitchProps = NativeSwitchProps & {
|
|
9
|
-
variants?: ComponentVariants<typeof SwitchStyles>['variants'];
|
|
10
|
-
label?: ReactNode;
|
|
11
|
-
styles?: StylesOf<SwitchComposition>;
|
|
12
|
-
validate?: FormTypes.ValidatorFunctionWithoutForm | string;
|
|
13
|
-
};
|
|
14
|
-
export declare const Switch: React.FC<SwitchProps>;
|
|
@@ -1,85 +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.Switch = void 0;
|
|
41
|
-
var React = __importStar(require("react"));
|
|
42
|
-
var common_1 = require("@codeleap/common");
|
|
43
|
-
var react_1 = require("react");
|
|
44
|
-
var react_native_1 = require("react-native");
|
|
45
|
-
var TextInput_1 = require("../TextInput");
|
|
46
|
-
var View_1 = require("../View");
|
|
47
|
-
var InputLabel_1 = require("../InputLabel");
|
|
48
|
-
__exportStar(require("./styles"), exports);
|
|
49
|
-
exports.Switch = (0, react_1.forwardRef)(function (switchProps, ref) {
|
|
50
|
-
var _a = switchProps.variants, variants = _a === void 0 ? [] : _a, _b = switchProps.style, style = _b === void 0 ? {} : _b, _c = switchProps.styles, styles = _c === void 0 ? {} : _c, validate = switchProps.validate, label = switchProps.label, value = switchProps.value, props = __rest(switchProps, ["variants", "style", "styles", "validate", "label", "value"]);
|
|
51
|
-
var variantStyles = (0, common_1.useDefaultComponentStyle)('Switch', {
|
|
52
|
-
variants: variants,
|
|
53
|
-
});
|
|
54
|
-
var _d = (0, common_1.useValidate)(switchProps.value, validate), error = _d.error, showError = _d.showError;
|
|
55
|
-
function getStyles(key) {
|
|
56
|
-
return [
|
|
57
|
-
variantStyles[key],
|
|
58
|
-
styles[key],
|
|
59
|
-
key === 'wrapper' ? style : {},
|
|
60
|
-
showError ? variantStyles[key + ':error'] : {},
|
|
61
|
-
showError ? styles[key + ':error'] : {},
|
|
62
|
-
value ? variantStyles[key + ':on'] : {},
|
|
63
|
-
value ? styles[key + ':on'] : {},
|
|
64
|
-
switchProps.disabled ? variantStyles[key + ':disabled'] : {},
|
|
65
|
-
switchProps.disabled ? styles[key + ':disabled'] : {},
|
|
66
|
-
];
|
|
67
|
-
}
|
|
68
|
-
var inputStyles = getStyles('input');
|
|
69
|
-
var _e = react_native_1.StyleSheet.flatten(inputStyles), color = _e.color, backgroundColor = _e.backgroundColor;
|
|
70
|
-
var Theme = (0, common_1.useCodeleapContext)().Theme;
|
|
71
|
-
var thumbColor = color || Theme.colors.primary;
|
|
72
|
-
var trackColor = backgroundColor || Theme.colors.gray;
|
|
73
|
-
return (<View_1.View style={getStyles('wrapper')}>
|
|
74
|
-
<View_1.View style={getStyles('inputWrapper')}>
|
|
75
|
-
<react_native_1.Switch thumbColor={thumbColor} trackColor={{ false: trackColor, true: trackColor }} ios_backgroundColor={trackColor} value={value} ref={ref} {...props}/>
|
|
76
|
-
<InputLabel_1.InputLabel label={label} styles={{
|
|
77
|
-
asterisk: getStyles('labelAsterisk'),
|
|
78
|
-
text: getStyles('labelText'),
|
|
79
|
-
wrapper: getStyles('labelWrapper'),
|
|
80
|
-
}}/>
|
|
81
|
-
</View_1.View>
|
|
82
|
-
<TextInput_1.FormError text={error.message} style={getStyles('error')}/>
|
|
83
|
-
</View_1.View>);
|
|
84
|
-
});
|
|
85
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Switch/index.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { InputLabelComposition } from '../InputLabel';
|
|
2
|
-
export declare type SwitchParts = 'wrapper' | `label${Capitalize<InputLabelComposition>}` | 'input' | 'error' | 'inputWrapper';
|
|
3
|
-
export declare type SwitchComposition = SwitchParts | `${SwitchParts}:disabled` | `${SwitchParts}:on`;
|
|
4
|
-
export declare const SwitchStyles: {
|
|
5
|
-
default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
6
|
-
fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
7
|
-
hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
8
|
-
center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
9
|
-
flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
10
|
-
row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
11
|
-
column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
12
|
-
wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
13
|
-
absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
14
|
-
relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
15
|
-
blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
16
|
-
inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
17
|
-
block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
18
|
-
inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
19
|
-
sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
20
|
-
full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
21
|
-
noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
22
|
-
fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
23
|
-
fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
24
|
-
fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
25
|
-
fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
26
|
-
fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
27
|
-
whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
28
|
-
centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
29
|
-
listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
30
|
-
alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
31
|
-
alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
32
|
-
alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
33
|
-
alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
34
|
-
alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
35
|
-
alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
36
|
-
alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
37
|
-
alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
38
|
-
justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
39
|
-
justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
40
|
-
justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
41
|
-
justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
42
|
-
justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
43
|
-
textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
44
|
-
textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
45
|
-
textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
46
|
-
elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
47
|
-
neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
48
|
-
scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
49
|
-
scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
50
|
-
scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
51
|
-
debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
52
|
-
debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
53
|
-
debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
54
|
-
debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SwitchComposition, any>>;
|
|
55
|
-
};
|
|
@@ -1,34 +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.SwitchStyles = void 0;
|
|
15
|
-
var common_1 = require("@codeleap/common");
|
|
16
|
-
var createSwitchStyle = (0, common_1.createDefaultVariantFactory)();
|
|
17
|
-
var presets = (0, common_1.includePresets)(function (styles) { return createSwitchStyle(function () { return ({ wrapper: styles }); }); });
|
|
18
|
-
exports.SwitchStyles = __assign(__assign({}, presets), { default: createSwitchStyle(function (theme) { return ({
|
|
19
|
-
wrapper: {},
|
|
20
|
-
inputWrapper: __assign(__assign({}, theme.presets.row), theme.presets.alignCenter),
|
|
21
|
-
labelWrapper: __assign({}, theme.spacing.marginLeft(0.5)),
|
|
22
|
-
input: {
|
|
23
|
-
color: theme.colors.white,
|
|
24
|
-
backgroundColor: theme.colors.gray,
|
|
25
|
-
},
|
|
26
|
-
'input:on': {
|
|
27
|
-
color: theme.colors.primary,
|
|
28
|
-
backgroundColor: theme.colors.gray,
|
|
29
|
-
},
|
|
30
|
-
error: {
|
|
31
|
-
color: theme.colors.negative,
|
|
32
|
-
},
|
|
33
|
-
}); }) });
|
|
34
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Switch/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAA8E;AAS9E,IAAM,iBAAiB,GAAG,IAAA,oCAA2B,GAAqB,CAAA;AAE1E,IAAM,OAAO,GAAG,IAAA,uBAAc,EAAC,UAAC,MAAM,IAAK,OAAA,iBAAiB,CAAC,cAAM,OAAA,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAArB,CAAqB,CAAC,EAA9C,CAA8C,CACxF,CAAA;AAEY,QAAA,YAAY,yBACpB,OAAO,KACV,OAAO,EAAE,iBAAiB,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC;QACrC,OAAO,EAAE,EAAE;QACX,YAAY,wBACP,KAAK,CAAC,OAAO,CAAC,GAAG,GACjB,KAAK,CAAC,OAAO,CAAC,WAAW,CAC7B;QACD,YAAY,eACP,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CACjC;QACD,KAAK,EAAE;YACL,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;YACzB,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI;SACnC;QACD,UAAU,EAAE;YACV,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;YAC3B,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI;SACnC;QACD,KAAK,EAAE;YACL,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ;SAC7B;KACF,CAAC,EApBoC,CAoBpC,CAAC,IACJ"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
-
import { ComponentVariants, BaseViewProps } from '@codeleap/common';
|
|
4
|
-
import { Animated, Text as NativeText } from 'react-native';
|
|
5
|
-
import { MotiProps } from 'moti';
|
|
6
|
-
import { TextStyles } from './styles';
|
|
7
|
-
export * from './styles';
|
|
8
|
-
export declare type TextProps = ComponentPropsWithoutRef<typeof NativeText> & {
|
|
9
|
-
text?: React.ReactNode;
|
|
10
|
-
variants?: ComponentVariants<typeof TextStyles>['variants'];
|
|
11
|
-
animated?: boolean;
|
|
12
|
-
colorChangeConfig?: Partial<Animated.TimingAnimationConfig>;
|
|
13
|
-
debugName?: string;
|
|
14
|
-
debounce?: number;
|
|
15
|
-
pressDisabled?: boolean;
|
|
16
|
-
} & BaseViewProps & MotiProps;
|
|
17
|
-
export declare const Text: React.ForwardRefExoticComponent<import("react-native").TextProps & {
|
|
18
|
-
text?: React.ReactNode;
|
|
19
|
-
variants?: ComponentVariants<typeof TextStyles>['variants'];
|
|
20
|
-
animated?: boolean;
|
|
21
|
-
colorChangeConfig?: Partial<Animated.TimingAnimationConfig>;
|
|
22
|
-
debugName?: string;
|
|
23
|
-
debounce?: number;
|
|
24
|
-
pressDisabled?: boolean;
|
|
25
|
-
} & BaseViewProps & MotiProps<any, import("moti").StyleValueWithReplacedTransforms<any>, Partial<import("moti").StyleValueWithSequenceArraysWithoutTransform<import("moti").StyleValueWithReplacedTransforms<any>, string | number | symbol, string | number | symbol> & import("moti").StyleValueWithSequenceArraysWithTransform>> & React.RefAttributes<NativeText>>;
|