@codeleap/mobile 2.4.7 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mobile-packages.code-workspace +27 -0
- package/package.json +25 -33
- package/src/components/ActionIcon/index.tsx +16 -6
- package/src/components/ActionIcon/styles.ts +3 -90
- package/src/components/ActivityIndicator/index.tsx +28 -9
- package/src/components/ActivityIndicator/styles.ts +2 -59
- package/src/components/Autocomplete/index.tsx +235 -0
- package/src/components/Autocomplete/styles.ts +18 -0
- package/src/components/Autocomplete/types.ts +75 -0
- package/src/components/Avatar/index.tsx +126 -0
- package/src/components/Avatar/styles.ts +22 -0
- package/src/components/AvatarGroup/index.tsx +76 -0
- package/src/components/AvatarGroup/styles.ts +11 -0
- package/src/components/Backdrop/index.tsx +14 -13
- package/src/components/Backdrop/styles.ts +3 -24
- package/src/components/Badge/index.tsx +134 -0
- package/src/components/Badge/styles.ts +14 -0
- package/src/components/Button/index.tsx +39 -49
- package/src/components/Button/styles.ts +6 -107
- package/src/components/Calendar/index.tsx +3 -3
- package/src/components/Calendar/style.ts +2 -31
- package/src/components/Checkbox/index.tsx +137 -74
- package/src/components/Checkbox/styles.ts +13 -73
- package/src/components/ContentView/index.tsx +2 -2
- package/src/components/ContentView/styles.ts +1 -17
- package/src/components/DatePickerModal/index.tsx +240 -0
- package/src/components/DatePickerModal/styles.ts +15 -0
- package/src/components/DatePickerModal/types.ts +55 -0
- package/src/components/Drawer/index.tsx +2 -2
- package/src/components/Drawer/styles.ts +4 -39
- package/src/components/EmptyPlaceholder/index.tsx +3 -3
- package/src/components/EmptyPlaceholder/styles.ts +2 -47
- package/src/components/FileInput/styles.ts +1 -8
- package/src/components/Grid/index.tsx +76 -72
- package/src/components/Grid/styles.ts +4 -7
- package/src/components/Icon/index.tsx +46 -8
- package/src/components/Icon/styles.ts +3 -51
- package/src/components/Image/index.tsx +18 -22
- package/src/components/Image/styles.ts +1 -14
- package/src/components/ImageView/Spotlight.tsx +4 -2
- package/src/components/ImageView/component.tsx +0 -3
- package/src/components/InputBase/index.tsx +101 -0
- package/src/components/InputBase/styles.ts +135 -0
- package/src/components/InputBase/types.ts +28 -0
- package/src/components/InputBase/utils.ts +42 -0
- package/src/components/InputLabel/index.tsx +3 -3
- package/src/components/InputLabel/styles.ts +2 -14
- package/src/components/List/PaginationIndicator.tsx +4 -21
- package/src/components/List/index.tsx +84 -46
- package/src/components/List/styles.ts +8 -20
- package/src/components/LoadingOverlay/index.tsx +45 -45
- package/src/components/LoadingOverlay/styles.ts +5 -27
- package/src/components/Modal/index.tsx +56 -32
- package/src/components/Modal/styles.ts +3 -114
- package/src/components/NumberIncrement/index.tsx +318 -0
- package/src/components/NumberIncrement/styles.ts +14 -0
- package/src/components/NumberIncrement/types.ts +44 -0
- package/src/components/NumberIncrement/utils.ts +27 -0
- package/src/components/Pager/index.tsx +120 -67
- package/src/components/Pager/styles.ts +2 -69
- package/src/components/RadioInput/index.tsx +145 -68
- package/src/components/RadioInput/styles.ts +8 -61
- package/src/components/RefreshControl/index.tsx +28 -0
- package/src/components/RefreshControl/styles.ts +7 -0
- package/src/components/Scroll/index.tsx +22 -37
- package/src/components/Scroll/styles.ts +2 -16
- package/src/components/Sections/index.tsx +116 -54
- package/src/components/Sections/styles.ts +7 -0
- package/src/components/SegmentedControl/Option.tsx +51 -0
- package/src/components/SegmentedControl/index.tsx +51 -67
- package/src/components/SegmentedControl/styles.ts +7 -63
- package/src/components/Select/index.tsx +268 -95
- package/src/components/Select/styles.ts +11 -131
- package/src/components/Select/types.ts +47 -11
- package/src/components/Slider/index.tsx +151 -94
- package/src/components/Slider/styles.ts +7 -72
- package/src/components/Slider/types.ts +18 -20
- package/src/components/Switch/index.tsx +115 -63
- package/src/components/Switch/styles.ts +13 -30
- package/src/components/Text/index.tsx +14 -31
- package/src/components/Text/styles.ts +2 -41
- package/src/components/TextInput/index.tsx +237 -259
- package/src/components/TextInput/styles.ts +6 -120
- package/src/components/Touchable/index.tsx +74 -27
- package/src/components/Touchable/styles.ts +1 -12
- package/src/components/View/index.tsx +11 -26
- package/src/components/View/styles.ts +1 -17
- package/src/components/components.ts +9 -5
- package/src/components/defaultStyles.ts +74 -61
- package/src/index.ts +0 -1
- package/src/modules/PressableRipple/index.ts +5 -0
- package/src/modules/PressableRipple/ripple.js +258 -0
- package/src/modules/PressableRipple/styles.js +22 -0
- package/src/modules/PressableRipple/type.ts +17 -0
- package/src/modules/textInputMask.tsx +13 -0
- package/src/types/index.ts +5 -0
- package/src/types/utility.ts +2 -2
- package/src/utils/KeyboardAware/index.ts +0 -13
- package/src/utils/KeyboardAware/keyboardHooks.ts +69 -79
- package/src/utils/hooks.ts +63 -36
- package/src/utils/index.ts +1 -0
- package/src/utils/locale.ts +7 -0
- package/src/utils/theme.ts +1 -21
- package/dist/components/ActionIcon/index.d.ts +0 -13
- package/dist/components/ActionIcon/index.js +0 -51
- package/dist/components/ActionIcon/index.js.map +0 -1
- package/dist/components/ActionIcon/styles.d.ts +0 -65
- package/dist/components/ActionIcon/styles.js +0 -61
- package/dist/components/ActionIcon/styles.js.map +0 -1
- package/dist/components/ActivityIndicator/index.d.ts +0 -15
- package/dist/components/ActivityIndicator/index.js +0 -55
- package/dist/components/ActivityIndicator/index.js.map +0 -1
- package/dist/components/ActivityIndicator/styles.d.ts +0 -59
- package/dist/components/ActivityIndicator/styles.js +0 -52
- package/dist/components/ActivityIndicator/styles.js.map +0 -1
- package/dist/components/Animated.d.ts +0 -15
- package/dist/components/Animated.js +0 -55
- package/dist/components/Animated.js.map +0 -1
- package/dist/components/AutoComplete/index.d.ts +0 -34
- package/dist/components/AutoComplete/index.js +0 -126
- package/dist/components/AutoComplete/index.js.map +0 -1
- package/dist/components/AutoComplete/styles.d.ts +0 -57
- package/dist/components/AutoComplete/styles.js +0 -89
- package/dist/components/AutoComplete/styles.js.map +0 -1
- package/dist/components/Backdrop/index.d.ts +0 -14
- package/dist/components/Backdrop/index.js +0 -59
- package/dist/components/Backdrop/index.js.map +0 -1
- package/dist/components/Backdrop/styles.d.ts +0 -53
- package/dist/components/Backdrop/styles.js +0 -28
- package/dist/components/Backdrop/styles.js.map +0 -1
- package/dist/components/Button/index.d.ts +0 -246
- package/dist/components/Button/index.js +0 -115
- package/dist/components/Button/index.js.map +0 -1
- package/dist/components/Button/styles.d.ts +0 -65
- package/dist/components/Button/styles.js +0 -61
- package/dist/components/Button/styles.js.map +0 -1
- package/dist/components/Calendar/index.d.ts +0 -15
- package/dist/components/Calendar/index.js +0 -76
- package/dist/components/Calendar/index.js.map +0 -1
- package/dist/components/Calendar/style.d.ts +0 -4
- package/dist/components/Calendar/style.js +0 -36
- package/dist/components/Calendar/style.js.map +0 -1
- package/dist/components/Calendar/types.d.ts +0 -95
- package/dist/components/Calendar/types.js +0 -3
- package/dist/components/Calendar/types.js.map +0 -1
- package/dist/components/Checkbox/index.d.ts +0 -15
- package/dist/components/Checkbox/index.js +0 -81
- package/dist/components/Checkbox/index.js.map +0 -1
- package/dist/components/Checkbox/styles.d.ts +0 -56
- package/dist/components/Checkbox/styles.js +0 -53
- package/dist/components/Checkbox/styles.js.map +0 -1
- package/dist/components/ContentView/index.d.ts +0 -12
- package/dist/components/ContentView/index.js +0 -62
- package/dist/components/ContentView/index.js.map +0 -1
- package/dist/components/ContentView/styles.d.ts +0 -53
- package/dist/components/ContentView/styles.js +0 -26
- package/dist/components/ContentView/styles.js.map +0 -1
- package/dist/components/Drawer/index.d.ts +0 -7
- package/dist/components/Drawer/index.js +0 -66
- package/dist/components/Drawer/index.js.map +0 -1
- package/dist/components/Drawer/styles.d.ts +0 -56
- package/dist/components/Drawer/styles.js +0 -39
- package/dist/components/Drawer/styles.js.map +0 -1
- package/dist/components/EmptyPlaceholder/index.d.ts +0 -25
- package/dist/components/EmptyPlaceholder/index.js +0 -88
- package/dist/components/EmptyPlaceholder/index.js.map +0 -1
- package/dist/components/EmptyPlaceholder/styles.d.ts +0 -55
- package/dist/components/EmptyPlaceholder/styles.js +0 -30
- package/dist/components/EmptyPlaceholder/styles.js.map +0 -1
- package/dist/components/FileInput/index.d.ts +0 -24
- package/dist/components/FileInput/index.js +0 -179
- package/dist/components/FileInput/index.js.map +0 -1
- package/dist/components/FileInput/styles.d.ts +0 -53
- package/dist/components/FileInput/styles.js +0 -19
- package/dist/components/FileInput/styles.js.map +0 -1
- package/dist/components/Grid/index.d.ts +0 -32
- package/dist/components/Grid/index.js +0 -80
- package/dist/components/Grid/index.js.map +0 -1
- package/dist/components/Grid/styles.d.ts +0 -54
- package/dist/components/Grid/styles.js +0 -19
- package/dist/components/Grid/styles.js.map +0 -1
- package/dist/components/Icon/index.d.ts +0 -14
- package/dist/components/Icon/index.js +0 -75
- package/dist/components/Icon/index.js.map +0 -1
- package/dist/components/Icon/styles.d.ts +0 -61
- package/dist/components/Icon/styles.js +0 -49
- package/dist/components/Icon/styles.js.map +0 -1
- package/dist/components/Image/index.d.ts +0 -25
- package/dist/components/Image/index.js +0 -130
- package/dist/components/Image/index.js.map +0 -1
- package/dist/components/Image/styles.d.ts +0 -55
- package/dist/components/Image/styles.js +0 -25
- package/dist/components/Image/styles.js.map +0 -1
- package/dist/components/ImageView/Spotlight.d.ts +0 -25
- package/dist/components/ImageView/Spotlight.js +0 -150
- package/dist/components/ImageView/Spotlight.js.map +0 -1
- package/dist/components/ImageView/component.d.ts +0 -5
- package/dist/components/ImageView/component.js +0 -50
- package/dist/components/ImageView/component.js.map +0 -1
- package/dist/components/ImageView/index.d.ts +0 -2
- package/dist/components/ImageView/index.js +0 -15
- package/dist/components/ImageView/index.js.map +0 -1
- package/dist/components/InputLabel/index.d.ts +0 -12
- package/dist/components/InputLabel/index.js +0 -58
- package/dist/components/InputLabel/index.js.map +0 -1
- package/dist/components/InputLabel/styles.d.ts +0 -4
- package/dist/components/InputLabel/styles.js +0 -26
- package/dist/components/InputLabel/styles.js.map +0 -1
- package/dist/components/List/PaginationIndicator.d.ts +0 -67
- package/dist/components/List/PaginationIndicator.js +0 -51
- package/dist/components/List/PaginationIndicator.js.map +0 -1
- package/dist/components/List/index.d.ts +0 -31
- package/dist/components/List/index.js +0 -77
- package/dist/components/List/index.js.map +0 -1
- package/dist/components/List/styles.d.ts +0 -54
- package/dist/components/List/styles.js +0 -28
- package/dist/components/List/styles.js.map +0 -1
- package/dist/components/LoadingOverlay/index.d.ts +0 -11
- package/dist/components/LoadingOverlay/index.js +0 -60
- package/dist/components/LoadingOverlay/index.js.map +0 -1
- package/dist/components/LoadingOverlay/styles.d.ts +0 -7
- package/dist/components/LoadingOverlay/styles.js +0 -34
- package/dist/components/LoadingOverlay/styles.js.map +0 -1
- package/dist/components/Modal/index.d.ts +0 -43
- package/dist/components/Modal/index.js +0 -147
- package/dist/components/Modal/index.js.map +0 -1
- package/dist/components/Modal/styles.d.ts +0 -58
- package/dist/components/Modal/styles.js +0 -74
- package/dist/components/Modal/styles.js.map +0 -1
- package/dist/components/MultiSelect/index.d.ts +0 -6
- package/dist/components/MultiSelect/index.js +0 -119
- package/dist/components/MultiSelect/index.js.map +0 -1
- package/dist/components/MultiSelect/styles.d.ts +0 -7
- package/dist/components/MultiSelect/styles.js +0 -84
- package/dist/components/MultiSelect/styles.js.map +0 -1
- package/dist/components/MultiSelect/types.d.ts +0 -43
- package/dist/components/MultiSelect/types.js +0 -3
- package/dist/components/MultiSelect/types.js.map +0 -1
- package/dist/components/Navigation/Navigation.d.ts +0 -3
- package/dist/components/Navigation/Navigation.js +0 -80
- package/dist/components/Navigation/Navigation.js.map +0 -1
- package/dist/components/Navigation/constants.d.ts +0 -5
- package/dist/components/Navigation/constants.js +0 -11
- package/dist/components/Navigation/constants.js.map +0 -1
- package/dist/components/Navigation/index.d.ts +0 -3
- package/dist/components/Navigation/index.js +0 -16
- package/dist/components/Navigation/index.js.map +0 -1
- package/dist/components/Navigation/types.d.ts +0 -26
- package/dist/components/Navigation/types.js +0 -8
- package/dist/components/Navigation/types.js.map +0 -1
- package/dist/components/Navigation/utils.d.ts +0 -3
- package/dist/components/Navigation/utils.js +0 -69
- package/dist/components/Navigation/utils.js.map +0 -1
- package/dist/components/Pager/index.d.ts +0 -26
- package/dist/components/Pager/index.js +0 -84
- package/dist/components/Pager/index.js.map +0 -1
- package/dist/components/Pager/styles.d.ts +0 -87
- package/dist/components/Pager/styles.js +0 -72
- package/dist/components/Pager/styles.js.map +0 -1
- package/dist/components/RadioInput/index.d.ts +0 -27
- package/dist/components/RadioInput/index.js +0 -72
- package/dist/components/RadioInput/index.js.map +0 -1
- package/dist/components/RadioInput/styles.d.ts +0 -58
- package/dist/components/RadioInput/styles.js +0 -50
- package/dist/components/RadioInput/styles.js.map +0 -1
- package/dist/components/Scroll/index.d.ts +0 -124
- package/dist/components/Scroll/index.js +0 -97
- package/dist/components/Scroll/index.js.map +0 -1
- package/dist/components/Scroll/styles.d.ts +0 -53
- package/dist/components/Scroll/styles.js +0 -26
- package/dist/components/Scroll/styles.js.map +0 -1
- package/dist/components/Sections/index.d.ts +0 -115
- package/dist/components/Sections/index.js +0 -76
- package/dist/components/Sections/index.js.map +0 -1
- package/dist/components/SegmentedControl/index.d.ts +0 -52
- package/dist/components/SegmentedControl/index.js +0 -131
- package/dist/components/SegmentedControl/index.js.map +0 -1
- package/dist/components/SegmentedControl/styles.d.ts +0 -60
- package/dist/components/SegmentedControl/styles.js +0 -43
- package/dist/components/SegmentedControl/styles.js.map +0 -1
- package/dist/components/Select/index.d.ts +0 -16
- package/dist/components/Select/index.js +0 -122
- package/dist/components/Select/index.js.map +0 -1
- package/dist/components/Select/styles.d.ts +0 -60
- package/dist/components/Select/styles.js +0 -83
- package/dist/components/Select/styles.js.map +0 -1
- package/dist/components/Select/types.d.ts +0 -43
- package/dist/components/Select/types.js +0 -3
- package/dist/components/Select/types.js.map +0 -1
- package/dist/components/Slider/Mark.d.ts +0 -3
- package/dist/components/Slider/Mark.js +0 -32
- package/dist/components/Slider/Mark.js.map +0 -1
- package/dist/components/Slider/Thumb.d.ts +0 -7
- package/dist/components/Slider/Thumb.js +0 -30
- package/dist/components/Slider/Thumb.js.map +0 -1
- package/dist/components/Slider/index.d.ts +0 -4
- package/dist/components/Slider/index.js +0 -99
- package/dist/components/Slider/index.js.map +0 -1
- package/dist/components/Slider/styles.d.ts +0 -54
- package/dist/components/Slider/styles.js +0 -61
- package/dist/components/Slider/styles.js.map +0 -1
- package/dist/components/Slider/types.d.ts +0 -26
- package/dist/components/Slider/types.js +0 -3
- package/dist/components/Slider/types.js.map +0 -1
- package/dist/components/Switch/index.d.ts +0 -14
- package/dist/components/Switch/index.js +0 -81
- package/dist/components/Switch/index.js.map +0 -1
- package/dist/components/Switch/styles.d.ts +0 -55
- package/dist/components/Switch/styles.js +0 -34
- package/dist/components/Switch/styles.js.map +0 -1
- package/dist/components/Text/index.d.ts +0 -25
- package/dist/components/Text/index.js +0 -121
- package/dist/components/Text/index.js.map +0 -1
- package/dist/components/Text/styles.d.ts +0 -70
- package/dist/components/Text/styles.js +0 -34
- package/dist/components/Text/styles.js.map +0 -1
- package/dist/components/TextInput/index.d.ts +0 -181
- package/dist/components/TextInput/index.js +0 -213
- package/dist/components/TextInput/index.js.map +0 -1
- package/dist/components/TextInput/styles.d.ts +0 -63
- package/dist/components/TextInput/styles.js +0 -65
- package/dist/components/TextInput/styles.js.map +0 -1
- package/dist/components/Touchable/index.d.ts +0 -22
- package/dist/components/Touchable/index.js +0 -165
- package/dist/components/Touchable/index.js.map +0 -1
- package/dist/components/Touchable/styles.d.ts +0 -58
- package/dist/components/Touchable/styles.js +0 -24
- package/dist/components/Touchable/styles.js.map +0 -1
- package/dist/components/View/index.d.ts +0 -25
- package/dist/components/View/index.js +0 -107
- package/dist/components/View/index.js.map +0 -1
- package/dist/components/View/styles.d.ts +0 -54
- package/dist/components/View/styles.js +0 -29
- package/dist/components/View/styles.js.map +0 -1
- package/dist/components/components.d.ts +0 -37
- package/dist/components/components.js +0 -50
- package/dist/components/components.js.map +0 -1
- package/dist/components/defaultStyles.d.ts +0 -1468
- package/dist/components/defaultStyles.js +0 -67
- package/dist/components/defaultStyles.js.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -39
- package/dist/index.js.map +0 -1
- package/dist/modules/documentPicker.d.ts +0 -3
- package/dist/modules/documentPicker.js +0 -12
- package/dist/modules/documentPicker.js.map +0 -1
- package/dist/modules/fastImage.d.ts +0 -1
- package/dist/modules/fastImage.js +0 -10
- package/dist/modules/fastImage.js.map +0 -1
- package/dist/modules/reactNavigation.d.ts +0 -5
- package/dist/modules/reactNavigation.js +0 -26
- package/dist/modules/reactNavigation.js.map +0 -1
- package/dist/modules/rnDeviceInfo.d.ts +0 -2
- package/dist/modules/rnDeviceInfo.js +0 -10
- package/dist/modules/rnDeviceInfo.js.map +0 -1
- package/dist/modules/textInputMask.d.ts +0 -10
- package/dist/modules/textInputMask.js +0 -19
- package/dist/modules/textInputMask.js.map +0 -1
- package/dist/modules/types/fileTypes.d.ts +0 -138
- package/dist/modules/types/fileTypes.js +0 -3
- package/dist/modules/types/fileTypes.js.map +0 -1
- package/dist/modules/types/textInputMask.d.ts +0 -7
- package/dist/modules/types/textInputMask.js +0 -3
- package/dist/modules/types/textInputMask.js.map +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +0 -14
- package/dist/types/index.js.map +0 -1
- package/dist/types/utility.d.ts +0 -14
- package/dist/types/utility.js +0 -3
- package/dist/types/utility.js.map +0 -1
- package/dist/utils/KeyboardAware/context.d.ts +0 -13
- package/dist/utils/KeyboardAware/context.js +0 -63
- package/dist/utils/KeyboardAware/context.js.map +0 -1
- package/dist/utils/KeyboardAware/index.d.ts +0 -8
- package/dist/utils/KeyboardAware/index.js +0 -29
- package/dist/utils/KeyboardAware/index.js.map +0 -1
- package/dist/utils/KeyboardAware/keyboardHooks.d.ts +0 -26
- package/dist/utils/KeyboardAware/keyboardHooks.js +0 -87
- package/dist/utils/KeyboardAware/keyboardHooks.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.d.ts +0 -3
- package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.js +0 -9
- package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.d.ts +0 -67
- package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js +0 -439
- package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.d.ts +0 -7
- package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.js +0 -4
- package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.d.ts +0 -3
- package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.js +0 -10
- package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.js.map +0 -1
- package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.d.ts +0 -3
- package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.js +0 -10
- package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.js.map +0 -1
- package/dist/utils/KeyboardAware/types.d.ts +0 -1
- package/dist/utils/KeyboardAware/types.js +0 -7
- package/dist/utils/KeyboardAware/types.js.map +0 -1
- package/dist/utils/ModalManager/components.d.ts +0 -20
- package/dist/utils/ModalManager/components.js +0 -114
- package/dist/utils/ModalManager/components.js.map +0 -1
- package/dist/utils/ModalManager/context.d.ts +0 -48
- package/dist/utils/ModalManager/context.js +0 -201
- package/dist/utils/ModalManager/context.js.map +0 -1
- package/dist/utils/ModalManager/index.d.ts +0 -11
- package/dist/utils/ModalManager/index.js +0 -13
- package/dist/utils/ModalManager/index.js.map +0 -1
- package/dist/utils/OSAlert.d.ts +0 -32
- package/dist/utils/OSAlert.js +0 -143
- package/dist/utils/OSAlert.js.map +0 -1
- package/dist/utils/PermissionManager/context.d.ts +0 -53
- package/dist/utils/PermissionManager/context.js +0 -320
- package/dist/utils/PermissionManager/context.js.map +0 -1
- package/dist/utils/PermissionManager/index.d.ts +0 -4
- package/dist/utils/PermissionManager/index.js +0 -9
- package/dist/utils/PermissionManager/index.js.map +0 -1
- package/dist/utils/PermissionManager/types.d.ts +0 -13
- package/dist/utils/PermissionManager/types.js +0 -3
- package/dist/utils/PermissionManager/types.js.map +0 -1
- package/dist/utils/hooks.d.ts +0 -61
- package/dist/utils/hooks.js +0 -233
- package/dist/utils/hooks.js.map +0 -1
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/index.js +0 -36
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/input.d.ts +0 -35
- package/dist/utils/input.js +0 -49
- package/dist/utils/input.js.map +0 -1
- package/dist/utils/misc.d.ts +0 -6
- package/dist/utils/misc.js +0 -87
- package/dist/utils/misc.js.map +0 -1
- package/dist/utils/notifications.d.ts +0 -34
- package/dist/utils/notifications.js +0 -268
- package/dist/utils/notifications.js.map +0 -1
- package/dist/utils/theme.d.ts +0 -42
- package/dist/utils/theme.js +0 -50
- package/dist/utils/theme.js.map +0 -1
- package/src/components/Animated.tsx +0 -34
- package/src/components/AutoComplete/index.tsx +0 -167
- package/src/components/AutoComplete/styles.ts +0 -150
- package/src/components/MultiSelect/index.tsx +0 -148
- package/src/components/MultiSelect/styles.ts +0 -131
- package/src/components/MultiSelect/types.ts +0 -51
- package/src/components/Slider/Mark.tsx +0 -46
- package/src/components/Slider/Thumb.tsx +0 -29
- package/src/modules/textInputMask.ts +0 -11
- package/src/utils/KeyboardAware/lib/KeyboardAwareFlatList.ts +0 -4
- package/src/utils/KeyboardAware/lib/KeyboardAwareHOC.tsx +0 -592
- package/src/utils/KeyboardAware/lib/KeyboardAwareInterface.ts +0 -13
- package/src/utils/KeyboardAware/lib/KeyboardAwareScrollView.ts +0 -6
- package/src/utils/KeyboardAware/lib/KeyboardAwareSectionList.ts +0 -6
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { StylesOf } from '@codeleap/common';
|
|
2
|
-
import { ActivityIndicatorComposition } from '../ActivityIndicator';
|
|
3
|
-
import { TouchableStylesGen } from '../Touchable';
|
|
4
|
-
export declare type ButtonStates = 'disabled';
|
|
5
|
-
export declare type ButtonParts = 'text' | 'inner' | 'wrapper' | 'icon' | 'leftIcon' | 'rightIcon' | 'loader' | `loader${Capitalize<ActivityIndicatorComposition>}` | 'badgeText' | 'badgeWrapper';
|
|
6
|
-
export declare type ButtonComposition = `${ButtonParts}:${ButtonStates}` | ButtonParts;
|
|
7
|
-
export declare type ButtonStylesGen<TCSS = any> = StylesOf<ButtonComposition, TCSS> & {
|
|
8
|
-
feedback?: TouchableStylesGen['feedback'];
|
|
9
|
-
};
|
|
10
|
-
export declare const ButtonStyles: {
|
|
11
|
-
default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
12
|
-
negative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
13
|
-
circle: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
14
|
-
pill: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
15
|
-
icon: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
16
|
-
fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
17
|
-
flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
18
|
-
blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
19
|
-
center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
20
|
-
hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
21
|
-
row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
22
|
-
column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
23
|
-
wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
24
|
-
absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
25
|
-
relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
26
|
-
inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
27
|
-
block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
28
|
-
inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
29
|
-
sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
30
|
-
full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
31
|
-
noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
32
|
-
fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
33
|
-
fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
34
|
-
fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
35
|
-
fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
36
|
-
fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
37
|
-
whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
38
|
-
centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
39
|
-
listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
40
|
-
alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
41
|
-
alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
42
|
-
alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
43
|
-
alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
44
|
-
alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
45
|
-
alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
46
|
-
alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
47
|
-
alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
48
|
-
justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
49
|
-
justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
50
|
-
justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
51
|
-
justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
52
|
-
justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
53
|
-
textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
54
|
-
textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
55
|
-
textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
56
|
-
elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
57
|
-
neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
58
|
-
scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
59
|
-
scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
60
|
-
scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
61
|
-
debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
62
|
-
debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
63
|
-
debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
64
|
-
debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
|
|
65
|
-
};
|
|
@@ -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.ButtonStyles = void 0;
|
|
15
|
-
var common_1 = require("@codeleap/common");
|
|
16
|
-
var createButtonStyle = (0, common_1.createDefaultVariantFactory)();
|
|
17
|
-
var presets = (0, common_1.includePresets)(function (styles) { return createButtonStyle(function () { return ({ wrapper: styles }); }); });
|
|
18
|
-
exports.ButtonStyles = __assign(__assign({}, presets), { default: createButtonStyle(function (theme) { return ({
|
|
19
|
-
wrapper: __assign(__assign(__assign({ flexDirection: 'row', backgroundColor: theme.colors.primary }, theme.presets.justifyCenter), theme.presets.alignCenter), theme.spacing.paddingHorizontal(2.5)),
|
|
20
|
-
text: {
|
|
21
|
-
textAlign: 'center',
|
|
22
|
-
// ...theme.spacing.marginHorizontal(2.5),
|
|
23
|
-
},
|
|
24
|
-
loader: {
|
|
25
|
-
height: 20,
|
|
26
|
-
width: 20,
|
|
27
|
-
},
|
|
28
|
-
loaderFrontCircle: {
|
|
29
|
-
borderTopColor: theme.colors.white,
|
|
30
|
-
},
|
|
31
|
-
'wrapper:disabled': {
|
|
32
|
-
backgroundColor: theme.colors.disabled,
|
|
33
|
-
opacity: 0.9,
|
|
34
|
-
cursor: 'auto',
|
|
35
|
-
},
|
|
36
|
-
badgeWrapper: __assign({ backgroundColor: theme.colors.negative, position: 'absolute' }, theme.spacing.padding(2.5)),
|
|
37
|
-
badgeText: {
|
|
38
|
-
color: theme.colors.white,
|
|
39
|
-
},
|
|
40
|
-
leftIcon: __assign(__assign({}, theme.sized(4)), theme.spacing.marginRight('auto')),
|
|
41
|
-
rightIcon: __assign(__assign({}, theme.spacing.marginLeft('auto')), theme.sized(4)),
|
|
42
|
-
}); }), negative: createButtonStyle(function (theme) { return ({
|
|
43
|
-
wrapper: {
|
|
44
|
-
backgroundColor: theme.colors.negative,
|
|
45
|
-
},
|
|
46
|
-
}); }), circle: createButtonStyle(function (theme) { return ({
|
|
47
|
-
wrapper: __assign({ borderRadius: 100 }, theme.spacing.padding(1)),
|
|
48
|
-
}); }), pill: createButtonStyle(function (theme) { return ({
|
|
49
|
-
wrapper: __assign(__assign({ borderRadius: theme.borderRadius.medium }, theme.spacing.paddingHorizontal(1)), theme.spacing.paddingVertical(0.5)),
|
|
50
|
-
}); }), icon: createButtonStyle(function (theme) { return ({
|
|
51
|
-
wrapper: __assign(__assign({ backgroundColor: 'transparent', aspectRatio: 1, display: 'flex' }, theme.presets.center), theme.spacing.padding(0)),
|
|
52
|
-
text: {
|
|
53
|
-
flex: 1,
|
|
54
|
-
textAlign: 'center',
|
|
55
|
-
},
|
|
56
|
-
loader: __assign({}, theme.spacing.margin(0)),
|
|
57
|
-
icon: __assign(__assign(__assign({}, theme.spacing.margin(0)), theme.presets.center), { height: null, width: null, color: theme.colors.icon }),
|
|
58
|
-
leftIcon: __assign({}, theme.spacing.marginRight(0)),
|
|
59
|
-
rightIcon: __assign({}, theme.spacing.marginRight(0)),
|
|
60
|
-
}); }) });
|
|
61
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Button/styles.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentVariants, PropsOf } from '@codeleap/common';
|
|
3
|
-
import { CalendarProps as RNCalendarProps } from 'react-native-calendars';
|
|
4
|
-
import { View } from '../View';
|
|
5
|
-
import { CalendarStyles } from './style';
|
|
6
|
-
import { TCalendarStyles } from './types';
|
|
7
|
-
export declare type CalendarProps = PropsOf<typeof View> & {
|
|
8
|
-
styles?: TCalendarStyles;
|
|
9
|
-
onValueChange?: (date: Date | string) => any;
|
|
10
|
-
value?: Date | string;
|
|
11
|
-
calendarProps?: RNCalendarProps;
|
|
12
|
-
} & ComponentVariants<typeof CalendarStyles>;
|
|
13
|
-
export * from './style';
|
|
14
|
-
export * from './types';
|
|
15
|
-
export declare const Calendar: (props: CalendarProps) => JSX.Element;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
-
}) : (function(o, m, k, k2) {
|
|
17
|
-
if (k2 === undefined) k2 = k;
|
|
18
|
-
o[k2] = m[k];
|
|
19
|
-
}));
|
|
20
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
21
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22
|
-
};
|
|
23
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
24
|
-
var t = {};
|
|
25
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
26
|
-
t[p] = s[p];
|
|
27
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
28
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
29
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
30
|
-
t[p[i]] = s[p[i]];
|
|
31
|
-
}
|
|
32
|
-
return t;
|
|
33
|
-
};
|
|
34
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
-
};
|
|
37
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.Calendar = void 0;
|
|
39
|
-
var react_1 = __importDefault(require("react"));
|
|
40
|
-
var common_1 = require("@codeleap/common");
|
|
41
|
-
var react_native_1 = require("react-native");
|
|
42
|
-
var date_fns_1 = require("date-fns");
|
|
43
|
-
// @ts-ignore
|
|
44
|
-
var react_native_calendars_1 = require("react-native-calendars");
|
|
45
|
-
var View_1 = require("../View");
|
|
46
|
-
__exportStar(require("./style"), exports);
|
|
47
|
-
__exportStar(require("./types"), exports);
|
|
48
|
-
var Calendar = function (props) {
|
|
49
|
-
var _a;
|
|
50
|
-
var _b = props.variants, variants = _b === void 0 ? [] : _b, style = props.style, _c = props.styles, styles = _c === void 0 ? {} : _c, calendarProps = props.calendarProps, value = props.value, onValueChange = props.onValueChange, viewProps = __rest(props, ["variants", "style", "styles", "calendarProps", "value", "onValueChange"]);
|
|
51
|
-
var variantStyles = (0, common_1.useDefaultComponentStyle)('u:Calendar', {
|
|
52
|
-
variants: variants,
|
|
53
|
-
styles: styles,
|
|
54
|
-
transform: react_native_1.StyleSheet.flatten,
|
|
55
|
-
rootElement: 'wrapper',
|
|
56
|
-
});
|
|
57
|
-
var isDateObject = common_1.TypeGuards.isInstance(value, Date);
|
|
58
|
-
var stringValue = isDateObject ? (0, date_fns_1.format)(value, 'yyyy/MM/dd') : value;
|
|
59
|
-
function handleChange(date) {
|
|
60
|
-
if (!onValueChange)
|
|
61
|
-
return;
|
|
62
|
-
if (isDateObject) {
|
|
63
|
-
onValueChange(new Date(date.timestamp));
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
onValueChange(date.dateString);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return <View_1.View style={[variantStyles.wrapper, style]} {...viewProps}>
|
|
70
|
-
<react_native_calendars_1.Calendar onDayPress={handleChange} current={new Date(value).toISOString()} monthFormat={'MMMM yyyy'} markedDates={_a = {},
|
|
71
|
-
_a[stringValue] = { selected: true },
|
|
72
|
-
_a} theme={__assign(__assign({}, variantStyles.theme), { stylesheet: __assign({}, variantStyles) })} {...calendarProps}/>
|
|
73
|
-
</View_1.View>;
|
|
74
|
-
};
|
|
75
|
-
exports.Calendar = Calendar;
|
|
76
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Calendar/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,2CAAmG;AACnG,6CAAyC;AACzC,qCAA4C;AAC5C,aAAa;AACb,iEAA2G;AAE3G,gCAA8B;AAS9B,0CAAuB;AACvB,0CAAuB;AAEhB,IAAM,QAAQ,GAAG,UAAC,KAAmB;;IAExC,IAAA,KAOE,KAAK,SAPM,EAAb,QAAQ,mBAAG,EAAE,KAAA,EACb,KAAK,GAMH,KAAK,MANF,EACL,KAKE,KAAK,OALI,EAAX,MAAM,mBAAG,EAAE,KAAA,EACX,aAAa,GAIX,KAAK,cAJM,EACb,KAAK,GAGH,KAAK,MAHF,EACL,aAAa,GAEX,KAAK,cAFM,EACV,SAAS,UACV,KAAK,EARH,0EAQL,CADa,CACL;IACT,IAAM,aAAa,GAAG,IAAA,iCAAwB,EAAsC,YAAY,EAAE;QAChG,QAAQ,UAAA;QACR,MAAM,QAAA;QACN,SAAS,EAAE,yBAAU,CAAC,OAAO;QAC7B,WAAW,EAAE,SAAS;KACvB,CAAC,CAAA;IACF,IAAM,YAAY,GAAG,mBAAU,CAAC,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;IACvD,IAAM,WAAW,GAAU,YAAY,CAAC,CAAC,CAAC,IAAA,iBAAM,EAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;IAE7E,SAAS,YAAY,CAAC,IAAa;QACjC,IAAI,CAAC,aAAa;YAAE,OAAM;QAC1B,IAAI,YAAY,EAAE;YAChB,aAAa,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAA;SACxC;aAAM;YACL,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;SAC/B;IACH,CAAC;IAED,OAAO,CAAC,WAAI,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CAChE;IAAA,CAAC,iCAAU,CACT,UAAU,CAAC,CAAC,YAAY,CAAC,CACzB,OAAO,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC,CACvC,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,WAAW,CAAC;YACV,GAAC,WAAW,IAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;eACjC,CACF,KAAK,CAAC,uBACD,aAAa,CAAC,KAAK,KACtB,UAAU,eACL,aAAa,KAElB,CACF,IAAI,aAAa,CAAC,EAEtB;EAAA,EAAE,WAAI,CAAC,CAAA;AACT,CAAC,CAAA;AA7CY,QAAA,QAAQ,YA6CpB"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CalendarStyles = void 0;
|
|
4
|
-
var common_1 = require("@codeleap/common");
|
|
5
|
-
var createCalendarStyle = (0, common_1.createDefaultVariantFactory)();
|
|
6
|
-
exports.CalendarStyles = {
|
|
7
|
-
default: createCalendarStyle(function (theme) { return ({
|
|
8
|
-
theme: {
|
|
9
|
-
backgroundColor: '#0000',
|
|
10
|
-
calendarBackground: '#0000',
|
|
11
|
-
textSectionTitleColor: theme.colors.textH,
|
|
12
|
-
textSectionTitleDisabledColor: theme.colors.disabled,
|
|
13
|
-
selectedDayBackgroundColor: theme.colors.primary,
|
|
14
|
-
selectedDayTextColor: theme.colors.white,
|
|
15
|
-
todayTextColor: theme.colors.textH,
|
|
16
|
-
dayTextColor: theme.colors.textP,
|
|
17
|
-
textDisabledColor: theme.colors.disabled,
|
|
18
|
-
dotColor: theme.colors.primary,
|
|
19
|
-
selectedDotColor: theme.colors.primary,
|
|
20
|
-
arrowColor: theme.colors.primary,
|
|
21
|
-
disabledArrowColor: theme.colors.disabled,
|
|
22
|
-
monthTextColor: theme.colors.textH,
|
|
23
|
-
indicatorColor: theme.colors.backgroundSecondary,
|
|
24
|
-
textDayFontFamily: theme.typography.fontFamily,
|
|
25
|
-
textMonthFontFamily: theme.typography.fontFamily,
|
|
26
|
-
textDayHeaderFontFamily: theme.typography.fontFamily,
|
|
27
|
-
textDayFontWeight: '400',
|
|
28
|
-
textMonthFontWeight: 'bold',
|
|
29
|
-
textDayHeaderFontWeight: '400',
|
|
30
|
-
textDayFontSize: 16,
|
|
31
|
-
textMonthFontSize: 22,
|
|
32
|
-
textDayHeaderFontSize: 15,
|
|
33
|
-
},
|
|
34
|
-
}); }),
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=style.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../../src/components/Calendar/style.ts"],"names":[],"mappings":";;;AAAA,2CAA8D;AAG9D,IAAM,mBAAmB,GAAG,IAAA,oCAA2B,GAAwC,CAAA;AAElF,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,mBAAmB,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC;QACvC,KAAK,EAAE;YACL,eAAe,EAAE,OAAO;YACxB,kBAAkB,EAAE,OAAO;YAC3B,qBAAqB,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;YACzC,6BAA6B,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ;YACpD,0BAA0B,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;YAChD,oBAAoB,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;YACxC,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;YAClC,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;YAChC,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ;YACxC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;YAC9B,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;YACtC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;YAChC,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ;YACzC,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;YAClC,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,mBAAmB;YAChD,iBAAiB,EAAE,KAAK,CAAC,UAAU,CAAC,UAAU;YAC9C,mBAAmB,EAAE,KAAK,CAAC,UAAU,CAAC,UAAU;YAChD,uBAAuB,EAAE,KAAK,CAAC,UAAU,CAAC,UAAU;YACpD,iBAAiB,EAAE,KAAK;YACxB,mBAAmB,EAAE,MAAM;YAC3B,uBAAuB,EAAE,KAAK;YAC9B,eAAe,EAAE,EAAE;YACnB,iBAAiB,EAAE,EAAE;YACrB,qBAAqB,EAAE,EAAE;SAC1B;KACF,CAAC,EA3BsC,CA2BtC,CAAC;CACJ,CAAA"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { FilterKeys } from '@codeleap/common';
|
|
2
|
-
import { Paths } from '@codeleap/common/dist/types/pathMapping';
|
|
3
|
-
import { TextStyle, ViewStyle } from 'react-native';
|
|
4
|
-
declare type CalendarTheme = {
|
|
5
|
-
timelineContainer?: object;
|
|
6
|
-
contentStyle?: ViewStyle;
|
|
7
|
-
event?: object;
|
|
8
|
-
eventTitle?: object;
|
|
9
|
-
eventSummary?: object;
|
|
10
|
-
eventTimes?: object;
|
|
11
|
-
line?: object;
|
|
12
|
-
verticalLine?: object;
|
|
13
|
-
nowIndicatorLine?: object;
|
|
14
|
-
nowIndicatorKnob?: object;
|
|
15
|
-
timeLabel?: object;
|
|
16
|
-
todayTextColor?: string;
|
|
17
|
-
calendarBackground?: string;
|
|
18
|
-
indicatorColor?: string;
|
|
19
|
-
textSectionTitleColor?: string;
|
|
20
|
-
textSectionTitleDisabledColor?: string;
|
|
21
|
-
dayTextColor?: string;
|
|
22
|
-
selectedDayTextColor?: string;
|
|
23
|
-
monthTextColor?: string;
|
|
24
|
-
selectedDayBackgroundColor?: string;
|
|
25
|
-
arrowColor?: string;
|
|
26
|
-
textDisabledColor?: string;
|
|
27
|
-
textInactiveColor?: string;
|
|
28
|
-
backgroundColor?: string;
|
|
29
|
-
dotColor?: string;
|
|
30
|
-
selectedDotColor?: string;
|
|
31
|
-
disabledArrowColor?: string;
|
|
32
|
-
textDayFontFamily?: TextStyle['fontFamily'];
|
|
33
|
-
textMonthFontFamily?: TextStyle['fontFamily'];
|
|
34
|
-
textDayHeaderFontFamily?: TextStyle['fontFamily'];
|
|
35
|
-
textDayFontWeight?: TextStyle['fontWeight'];
|
|
36
|
-
textMonthFontWeight?: TextStyle['fontWeight'];
|
|
37
|
-
textDayHeaderFontWeight?: TextStyle['fontWeight'];
|
|
38
|
-
textDayFontSize?: number;
|
|
39
|
-
textMonthFontSize?: number;
|
|
40
|
-
textDayHeaderFontSize?: number;
|
|
41
|
-
agendaDayTextColor?: string;
|
|
42
|
-
agendaDayNumColor?: string;
|
|
43
|
-
agendaTodayColor?: string;
|
|
44
|
-
agendaKnobColor?: string;
|
|
45
|
-
todayButtonFontFamily?: TextStyle['fontFamily'];
|
|
46
|
-
todayButtonFontWeight?: TextStyle['fontWeight'];
|
|
47
|
-
todayButtonFontSize?: number;
|
|
48
|
-
textDayStyle?: TextStyle;
|
|
49
|
-
dotStyle?: object;
|
|
50
|
-
arrowStyle?: ViewStyle;
|
|
51
|
-
todayBackgroundColor?: string;
|
|
52
|
-
disabledDotColor?: string;
|
|
53
|
-
inactiveDotColor?: string;
|
|
54
|
-
todayDotColor?: string;
|
|
55
|
-
todayButtonTextColor?: string;
|
|
56
|
-
todayButtonPosition?: string;
|
|
57
|
-
arrowHeight?: number;
|
|
58
|
-
arrowWidth?: number;
|
|
59
|
-
weekVerticalMargin?: number;
|
|
60
|
-
stylesheet?: {
|
|
61
|
-
calendar?: {
|
|
62
|
-
main?: object;
|
|
63
|
-
header?: object;
|
|
64
|
-
};
|
|
65
|
-
day?: {
|
|
66
|
-
basic?: object;
|
|
67
|
-
period?: object;
|
|
68
|
-
};
|
|
69
|
-
dot?: object;
|
|
70
|
-
marking?: object;
|
|
71
|
-
'calendar-list'?: {
|
|
72
|
-
main?: object;
|
|
73
|
-
};
|
|
74
|
-
agenda?: {
|
|
75
|
-
main?: object;
|
|
76
|
-
list?: object;
|
|
77
|
-
};
|
|
78
|
-
expandable?: {
|
|
79
|
-
main?: object;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
declare type FlatStyleKeys = 'dot' | 'marking';
|
|
84
|
-
declare type StyleSheetKeys = Exclude<keyof CalendarTheme['stylesheet'], FlatStyleKeys>;
|
|
85
|
-
declare type ThemeObjPrimitiveKeys = FilterKeys<CalendarTheme, string | number>;
|
|
86
|
-
declare type ThemeObjCompositionKeys = Exclude<keyof CalendarTheme, ThemeObjPrimitiveKeys | 'stylesheet'>;
|
|
87
|
-
declare type StyleSheetObjKeys = Exclude<Paths<CalendarTheme['stylesheet']>, StyleSheetKeys>;
|
|
88
|
-
export declare type CalendarStyleGen<TCSS = any> = {
|
|
89
|
-
theme?: Partial<{
|
|
90
|
-
[P in ThemeObjPrimitiveKeys]: CalendarTheme[P];
|
|
91
|
-
}>;
|
|
92
|
-
} & Partial<Record<StyleSheetObjKeys | 'wrapper' | ThemeObjCompositionKeys, TCSS>>;
|
|
93
|
-
export declare type CalendarComposition = keyof CalendarStyleGen;
|
|
94
|
-
export declare type TCalendarStyles = CalendarStyleGen<any>;
|
|
95
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/Calendar/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentVariants, StylesOf, Form } from '@codeleap/common';
|
|
3
|
-
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
4
|
-
import { Switch as NativeCheckbox } from 'react-native';
|
|
5
|
-
import { CheckboxStyles, CheckboxComposition } from './styles';
|
|
6
|
-
export * from './styles';
|
|
7
|
-
declare type NativeCheckboxProps = Omit<ComponentPropsWithRef<typeof NativeCheckbox>, 'thumbColor' | 'trackColor'>;
|
|
8
|
-
declare type CheckboxProps = NativeCheckboxProps & {
|
|
9
|
-
variants?: ComponentVariants<typeof CheckboxStyles>['variants'];
|
|
10
|
-
label?: ReactNode;
|
|
11
|
-
styles?: StylesOf<CheckboxComposition>;
|
|
12
|
-
validate?: Form.ValidatorFunctionWithoutForm | string;
|
|
13
|
-
required?: boolean;
|
|
14
|
-
};
|
|
15
|
-
export declare const Checkbox: React.ForwardRefExoticComponent<Pick<CheckboxProps, "style" | "testID" | "disabled" | "value" | "key" | "children" | "label" | "removeClippedSubviews" | "hitSlop" | "onLayout" | "pointerEvents" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "variants" | "styles" | "tintColor" | "onChange" | "required" | "validate" | "onValueChange" | "ios_backgroundColor" | "onTintColor" | "thumbTintColor"> & React.RefAttributes<unknown>>;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
|
-
};
|
|
24
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
25
|
-
var t = {};
|
|
26
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
27
|
-
t[p] = s[p];
|
|
28
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
29
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
30
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
31
|
-
t[p[i]] = s[p[i]];
|
|
32
|
-
}
|
|
33
|
-
return t;
|
|
34
|
-
};
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.Checkbox = void 0;
|
|
37
|
-
var React = __importStar(require("react"));
|
|
38
|
-
var common_1 = require("@codeleap/common");
|
|
39
|
-
var react_1 = require("react");
|
|
40
|
-
var react_native_1 = require("react-native");
|
|
41
|
-
var TextInput_1 = require("../TextInput");
|
|
42
|
-
var View_1 = require("../View");
|
|
43
|
-
var Touchable_1 = require("../Touchable");
|
|
44
|
-
var InputLabel_1 = require("../InputLabel");
|
|
45
|
-
__exportStar(require("./styles"), exports);
|
|
46
|
-
exports.Checkbox = (0, react_1.forwardRef)(function (checkboxProps, ref) {
|
|
47
|
-
var _a = checkboxProps.variants, variants = _a === void 0 ? [] : _a, _b = checkboxProps.style, style = _b === void 0 ? {} : _b, _c = checkboxProps.styles, styles = _c === void 0 ? {} : _c, label = checkboxProps.label, value = checkboxProps.value, onValueChange = checkboxProps.onValueChange, validate = checkboxProps.validate, required = checkboxProps.required, props = __rest(checkboxProps, ["variants", "style", "styles", "label", "value", "onValueChange", "validate", "required"]);
|
|
48
|
-
var variantStyles = (0, common_1.useDefaultComponentStyle)('u:Checkbox', {
|
|
49
|
-
variants: variants,
|
|
50
|
-
styles: styles,
|
|
51
|
-
transform: react_native_1.StyleSheet.flatten,
|
|
52
|
-
});
|
|
53
|
-
var _d = (0, common_1.useValidate)(value, validate), error = _d.error, showError = _d.showError;
|
|
54
|
-
function getStyles(key, styleObj) {
|
|
55
|
-
if (styleObj === void 0) { styleObj = variantStyles; }
|
|
56
|
-
return [
|
|
57
|
-
styleObj[key],
|
|
58
|
-
value ? styleObj[key + ':checked'] : {},
|
|
59
|
-
showError ? styleObj[key + ':error'] : {},
|
|
60
|
-
checkboxProps.disabled ? styleObj[key + ':disabled'] : {},
|
|
61
|
-
];
|
|
62
|
-
}
|
|
63
|
-
return (<View_1.View style={[getStyles('wrapper'), style]} ref={ref} {...props}>
|
|
64
|
-
<Touchable_1.Touchable debugName={"Set checkbox value to ".concat(!value)} style={getStyles('input')} onPress={function () { return onValueChange(!value); }} styles={{
|
|
65
|
-
feedback: getStyles('inputFeedback'),
|
|
66
|
-
}}>
|
|
67
|
-
<View_1.View style={getStyles('checkmarkWrapper')}>
|
|
68
|
-
<View_1.View style={getStyles('checkmark')}/>
|
|
69
|
-
</View_1.View>
|
|
70
|
-
|
|
71
|
-
<InputLabel_1.InputLabel label={label} styles={{
|
|
72
|
-
asterisk: getStyles('labelAsterisk'),
|
|
73
|
-
wrapper: getStyles('labelWrapper'),
|
|
74
|
-
text: getStyles('labelText'),
|
|
75
|
-
}} required={required}/>
|
|
76
|
-
|
|
77
|
-
</Touchable_1.Touchable>
|
|
78
|
-
<TextInput_1.FormError text={error.message} style={getStyles('error')}/>
|
|
79
|
-
</View_1.View>);
|
|
80
|
-
});
|
|
81
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Checkbox/index.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { InputLabelComposition } from '../InputLabel';
|
|
2
|
-
declare type CheckboxParts = 'wrapper' | 'input' | 'inputFeedback' | 'checkmark' | 'checkmarkWrapper' | 'error' | `label${Capitalize<InputLabelComposition>}`;
|
|
3
|
-
export declare type CheckboxComposition = CheckboxParts | `${CheckboxParts}:checked` | `${CheckboxParts}:disabled` | `${CheckboxParts}:error`;
|
|
4
|
-
export declare const CheckboxStyles: {
|
|
5
|
-
default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
6
|
-
fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
7
|
-
flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
8
|
-
blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
9
|
-
center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
10
|
-
hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
11
|
-
row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
12
|
-
column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
13
|
-
wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
14
|
-
absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
15
|
-
relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
16
|
-
inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
17
|
-
block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
18
|
-
inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
19
|
-
sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
20
|
-
full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
21
|
-
noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
22
|
-
fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
23
|
-
fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
24
|
-
fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
25
|
-
fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
26
|
-
fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
27
|
-
whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
28
|
-
centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
29
|
-
listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
30
|
-
alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
31
|
-
alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
32
|
-
alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
33
|
-
alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
34
|
-
alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
35
|
-
alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
36
|
-
alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
37
|
-
alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
38
|
-
justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
39
|
-
justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
40
|
-
justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
41
|
-
justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
42
|
-
justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
43
|
-
textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
44
|
-
textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
45
|
-
textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
46
|
-
elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
47
|
-
neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
48
|
-
scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
49
|
-
scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
50
|
-
scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
51
|
-
debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
52
|
-
debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
53
|
-
debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
54
|
-
debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
55
|
-
};
|
|
56
|
-
export {};
|
|
@@ -1,53 +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.CheckboxStyles = void 0;
|
|
15
|
-
var common_1 = require("@codeleap/common");
|
|
16
|
-
var createCheckboxStyle = (0, common_1.createDefaultVariantFactory)();
|
|
17
|
-
var presets = (0, common_1.includePresets)(function (styles) { return createCheckboxStyle(function () { return ({ wrapper: styles }); }); });
|
|
18
|
-
exports.CheckboxStyles = __assign(__assign({}, presets), { default: createCheckboxStyle(function (theme) {
|
|
19
|
-
var size = theme.typography.baseFontSize * 1.2;
|
|
20
|
-
var markHeight = size * 0.5;
|
|
21
|
-
var markWidth = size * 0.25;
|
|
22
|
-
var translateX = -(markWidth / 2);
|
|
23
|
-
var translateY = -(markHeight / 2);
|
|
24
|
-
return {
|
|
25
|
-
wrapper: {},
|
|
26
|
-
input: __assign({ flexDirection: 'row' }, theme.presets.alignCenter),
|
|
27
|
-
labelWrapper: __assign({}, theme.spacing.marginLeft(1)),
|
|
28
|
-
inputFeedback: {
|
|
29
|
-
type: 'opacity',
|
|
30
|
-
value: 0.5,
|
|
31
|
-
},
|
|
32
|
-
checkmark: {
|
|
33
|
-
position: 'absolute',
|
|
34
|
-
top: '40%',
|
|
35
|
-
left: '50%',
|
|
36
|
-
height: markHeight,
|
|
37
|
-
width: markWidth,
|
|
38
|
-
transform: [{ translateX: translateX }, { translateY: translateY }, { rotate: '45deg' }],
|
|
39
|
-
},
|
|
40
|
-
'checkmark:checked': __assign({}, theme.border.white({
|
|
41
|
-
width: 2,
|
|
42
|
-
directions: ['right', 'bottom'],
|
|
43
|
-
})),
|
|
44
|
-
checkmarkWrapper: __assign({ position: 'relative', width: size, borderRadius: theme.borderRadius.small, height: size }, theme.border.neutral(1)),
|
|
45
|
-
'checkmarkWrapper:checked': {
|
|
46
|
-
backgroundColor: theme.colors.primary,
|
|
47
|
-
},
|
|
48
|
-
error: {
|
|
49
|
-
color: theme.colors.negative,
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
}) });
|
|
53
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Checkbox/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAA8E;AAiB9E,IAAM,mBAAmB,GACvB,IAAA,oCAA2B,GAAuB,CAAA;AAEpD,IAAM,OAAO,GAAG,IAAA,uBAAc,EAAC,UAAC,MAAM,IAAK,OAAA,mBAAmB,CAAC,cAAM,OAAA,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAArB,CAAqB,CAAC,EAAhD,CAAgD,CAC1F,CAAA;AAEY,QAAA,cAAc,yBACtB,OAAO,KACV,OAAO,EAAE,mBAAmB,CAAC,UAAC,KAAK;QACjC,IAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,GAAG,GAAG,CAAA;QAEhD,IAAM,UAAU,GAAG,IAAI,GAAG,GAAG,CAAA;QAC7B,IAAM,SAAS,GAAG,IAAI,GAAG,IAAI,CAAA;QAE7B,IAAM,UAAU,GAAG,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,CAAA;QACnC,IAAM,UAAU,GAAG,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,CAAA;QACpC,OAAO;YACL,OAAO,EAAE,EAAE;YACX,KAAK,aACH,aAAa,EAAE,KAAK,IACjB,KAAK,CAAC,OAAO,CAAC,WAAW,CAE7B;YACD,YAAY,eAEP,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAE/B;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,GAAG;aACX;YAED,SAAS,EAAE;gBACT,QAAQ,EAAE,UAAU;gBACpB,GAAG,EAAE,KAAK;gBACV,IAAI,EAAE,KAAK;gBAEX,MAAM,EAAE,UAAU;gBAClB,KAAK,EAAE,SAAS;gBAChB,SAAS,EAAE,CAAC,EAAE,UAAU,YAAA,EAAE,EAAE,EAAE,UAAU,YAAA,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;aACjE;YACD,mBAAmB,eACd,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;gBACpB,KAAK,EAAE,CAAC;gBACR,UAAU,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;aAChC,CAAC,CACH;YACD,gBAAgB,aACd,QAAQ,EAAE,UAAU,EACpB,KAAK,EAAE,IAAI,EACX,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,KAAK,EACtC,MAAM,EAAE,IAAI,IACT,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAC3B;YACD,0BAA0B,EAAE;gBAC1B,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;aACtC;YACD,KAAK,EAAE;gBACL,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ;aAC7B;SACF,CAAA;IACH,CAAC,CAAC,IACH"}
|