@codeleap/mobile 1.9.32 → 2.0.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/dist/components/ActionIcon/index.d.ts +13 -0
- package/dist/components/ActionIcon/index.js +54 -0
- package/dist/components/ActionIcon/index.js.map +1 -0
- package/dist/components/ActionIcon/styles.d.ts +64 -0
- package/dist/components/ActionIcon/styles.js +57 -0
- package/dist/components/ActionIcon/styles.js.map +1 -0
- package/dist/components/{ActivityIndicator.d.ts → ActivityIndicator/index.d.ts} +4 -2
- package/dist/components/{ActivityIndicator.js → ActivityIndicator/index.js} +5 -1
- package/dist/components/ActivityIndicator/index.js.map +1 -0
- package/dist/components/ActivityIndicator/styles.d.ts +59 -0
- package/dist/components/ActivityIndicator/styles.js +52 -0
- package/dist/components/ActivityIndicator/styles.js.map +1 -0
- package/dist/components/AutoComplete/index.d.ts +33 -0
- package/dist/components/AutoComplete/index.js +129 -0
- package/dist/components/AutoComplete/index.js.map +1 -0
- package/dist/components/AutoComplete/styles.d.ts +57 -0
- package/dist/components/AutoComplete/styles.js +28 -0
- package/dist/components/AutoComplete/styles.js.map +1 -0
- package/dist/components/Backdrop/index.d.ts +14 -0
- package/dist/components/{Backdrop.js → Backdrop/index.js} +23 -30
- package/dist/components/Backdrop/index.js.map +1 -0
- package/dist/components/{Backdrop.d.ts → Backdrop/styles.d.ts} +7 -20
- package/dist/components/Backdrop/styles.js +28 -0
- package/dist/components/Backdrop/styles.js.map +1 -0
- package/dist/components/Button/index.d.ts +247 -0
- package/dist/components/{Button.js → Button/index.js} +45 -11
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/{NewPager → Button}/styles.d.ts +59 -86
- package/dist/components/Button/styles.js +59 -0
- package/dist/components/Button/styles.js.map +1 -0
- package/dist/components/Calendar/index.d.ts +15 -0
- package/dist/components/Calendar/index.js +80 -0
- package/dist/components/Calendar/index.js.map +1 -0
- package/dist/components/Calendar/style.d.ts +4 -0
- package/dist/components/Calendar/style.js +36 -0
- package/dist/components/Calendar/style.js.map +1 -0
- package/dist/components/Calendar/types.d.ts +95 -0
- package/dist/components/Calendar/types.js +3 -0
- package/dist/components/Calendar/types.js.map +1 -0
- package/dist/components/Checkbox/index.d.ts +2 -2
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/Checkbox/styles.d.ts +52 -52
- package/dist/components/Checkbox/styles.js +2 -2
- package/dist/components/Checkbox/styles.js.map +1 -1
- package/dist/components/{ContentView.d.ts → ContentView/index.d.ts} +5 -3
- package/dist/components/{ContentView.js → ContentView/index.js} +19 -4
- package/dist/components/ContentView/index.js.map +1 -0
- package/dist/components/ContentView/styles.d.ts +53 -0
- package/dist/components/ContentView/styles.js +26 -0
- package/dist/components/ContentView/styles.js.map +1 -0
- package/dist/components/Drawer/index.d.ts +7 -0
- package/dist/components/{View.js → Drawer/index.js} +18 -15
- package/dist/components/Drawer/index.js.map +1 -0
- package/dist/components/{NewModal → Drawer}/styles.d.ts +55 -56
- package/dist/components/Drawer/styles.js +37 -0
- package/dist/components/Drawer/styles.js.map +1 -0
- package/dist/components/{EmptyPlaceholder.d.ts → EmptyPlaceholder/index.d.ts} +4 -2
- package/dist/components/{EmptyPlaceholder.js → EmptyPlaceholder/index.js} +9 -5
- package/dist/components/EmptyPlaceholder/index.js.map +1 -0
- package/dist/components/EmptyPlaceholder/styles.d.ts +55 -0
- package/dist/components/EmptyPlaceholder/styles.js +32 -0
- package/dist/components/EmptyPlaceholder/styles.js.map +1 -0
- package/dist/components/{FileInput.d.ts → FileInput/index.d.ts} +8 -6
- package/dist/components/{FileInput.js → FileInput/index.js} +13 -30
- package/dist/components/FileInput/index.js.map +1 -0
- package/dist/components/FileInput/styles.d.ts +53 -0
- package/dist/components/FileInput/styles.js +19 -0
- package/dist/components/FileInput/styles.js.map +1 -0
- package/dist/components/Grid/index.d.ts +30 -0
- package/dist/components/Grid/index.js +69 -0
- package/dist/components/Grid/index.js.map +1 -0
- package/dist/components/Grid/styles.d.ts +5 -0
- package/dist/components/Grid/styles.js +19 -0
- package/dist/components/Grid/styles.js.map +1 -0
- package/dist/components/{Icon.d.ts → Icon/index.d.ts} +3 -1
- package/dist/components/{Icon.js → Icon/index.js} +6 -2
- package/dist/components/Icon/index.js.map +1 -0
- package/dist/components/Icon/styles.d.ts +60 -0
- package/dist/components/Icon/styles.js +45 -0
- package/dist/components/Icon/styles.js.map +1 -0
- package/dist/components/{Image.d.ts → Image/index.d.ts} +6 -4
- package/dist/components/{Image.js → Image/index.js} +35 -7
- package/dist/components/Image/index.js.map +1 -0
- package/dist/components/Image/styles.d.ts +54 -0
- package/dist/components/Image/styles.js +25 -0
- package/dist/components/Image/styles.js.map +1 -0
- package/dist/components/ImageView/Spotlight.d.ts +25 -0
- package/dist/components/ImageView/Spotlight.js +155 -0
- package/dist/components/ImageView/Spotlight.js.map +1 -0
- package/dist/components/ImageView/component.d.ts +5 -0
- package/dist/components/ImageView/component.js +54 -0
- package/dist/components/ImageView/component.js.map +1 -0
- package/dist/components/ImageView/index.d.ts +2 -0
- package/dist/components/ImageView/index.js +19 -0
- package/dist/components/ImageView/index.js.map +1 -0
- package/dist/components/List/PaginationIndicator.d.ts +67 -0
- package/dist/components/List/PaginationIndicator.js +51 -0
- package/dist/components/List/PaginationIndicator.js.map +1 -0
- package/dist/components/{List.d.ts → List/index.d.ts} +12 -15
- package/dist/components/List/index.js +68 -0
- package/dist/components/List/index.js.map +1 -0
- package/dist/components/List/styles.d.ts +5 -0
- package/dist/components/List/styles.js +24 -0
- package/dist/components/List/styles.js.map +1 -0
- package/dist/components/Modal/index.d.ts +13 -3
- package/dist/components/Modal/index.js +23 -8
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/styles.d.ts +55 -55
- package/dist/components/Modal/styles.js +4 -3
- package/dist/components/Modal/styles.js.map +1 -1
- package/dist/components/MultiSelect/index.d.ts +6 -0
- package/dist/components/MultiSelect/index.js +106 -0
- package/dist/components/MultiSelect/index.js.map +1 -0
- package/dist/components/MultiSelect/styles.d.ts +58 -0
- package/dist/components/MultiSelect/styles.js +25 -0
- package/dist/components/MultiSelect/styles.js.map +1 -0
- package/dist/components/MultiSelect/types.d.ts +32 -0
- package/dist/components/MultiSelect/types.js +3 -0
- package/dist/components/MultiSelect/types.js.map +1 -0
- package/dist/components/Navigation/Navigation.js +1 -5
- package/dist/components/Navigation/Navigation.js.map +1 -1
- package/dist/components/Pager/index.d.ts +18 -12
- package/dist/components/Pager/index.js +54 -134
- package/dist/components/Pager/index.js.map +1 -1
- package/dist/components/Pager/styles.d.ts +42 -9
- package/dist/components/Pager/styles.js +53 -27
- package/dist/components/Pager/styles.js.map +1 -1
- package/dist/components/RadioInput/index.d.ts +4 -4
- package/dist/components/RadioInput/index.js.map +1 -1
- package/dist/components/RadioInput/styles.d.ts +53 -53
- package/dist/components/RadioInput/styles.js +11 -7
- package/dist/components/RadioInput/styles.js.map +1 -1
- package/dist/components/Scroll/index.d.ts +18 -0
- package/dist/components/{Scroll.js → Scroll/index.js} +14 -11
- package/dist/components/Scroll/index.js.map +1 -0
- package/dist/components/Scroll/styles.d.ts +4 -0
- package/dist/components/Scroll/styles.js +27 -0
- package/dist/components/Scroll/styles.js.map +1 -0
- package/dist/components/Sections/index.d.ts +11 -0
- package/dist/components/{Sections.js → Sections/index.js} +4 -5
- package/dist/components/Sections/index.js.map +1 -0
- package/dist/components/SegmentedControl/index.js.map +1 -1
- package/dist/components/SegmentedControl/styles.d.ts +6 -6
- package/dist/components/Select/index.d.ts +8 -0
- package/dist/components/Select/index.js +38 -80
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Select/styles.d.ts +57 -7
- package/dist/components/Select/styles.js +14 -41
- package/dist/components/Select/styles.js.map +1 -1
- package/dist/components/Select/types.d.ts +16 -25
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/Slider/index.js +4 -0
- package/dist/components/Slider/index.js.map +1 -1
- package/dist/components/Slider/styles.d.ts +53 -0
- package/dist/components/Slider/styles.js +61 -0
- package/dist/components/Slider/styles.js.map +1 -0
- package/dist/components/Slider/types.d.ts +3 -2
- package/dist/components/{Switch.d.ts → Switch/index.d.ts} +3 -2
- package/dist/components/{Switch.js → Switch/index.js} +8 -4
- package/dist/components/Switch/index.js.map +1 -0
- package/dist/components/Switch/styles.d.ts +54 -0
- package/dist/components/Switch/styles.js +34 -0
- package/dist/components/Switch/styles.js.map +1 -0
- package/dist/components/{Text.d.ts → Text/index.d.ts} +5 -3
- package/dist/components/{Text.js → Text/index.js} +7 -3
- package/dist/components/Text/index.js.map +1 -0
- package/dist/components/Text/styles.d.ts +65 -0
- package/dist/components/Text/styles.js +23 -0
- package/dist/components/Text/styles.js.map +1 -0
- package/dist/components/TextInput/Label.d.ts +9 -0
- package/dist/components/TextInput/Label.js +34 -0
- package/dist/components/TextInput/Label.js.map +1 -0
- package/dist/components/{TextInput.d.ts → TextInput/index.d.ts} +34 -41
- package/dist/components/{TextInput.js → TextInput/index.js} +51 -48
- package/dist/components/TextInput/index.js.map +1 -0
- package/dist/components/TextInput/styles.d.ts +62 -0
- package/dist/components/TextInput/styles.js +60 -0
- package/dist/components/TextInput/styles.js.map +1 -0
- package/dist/components/{Touchable.d.ts → Touchable/index.d.ts} +8 -4
- package/dist/components/{Touchable.js → Touchable/index.js} +59 -12
- package/dist/components/Touchable/index.js.map +1 -0
- package/dist/components/Touchable/styles.d.ts +53 -0
- package/dist/components/Touchable/styles.js +19 -0
- package/dist/components/Touchable/styles.js.map +1 -0
- package/dist/components/{View.d.ts → View/index.d.ts} +6 -0
- package/dist/components/View/index.js +99 -0
- package/dist/components/View/index.js.map +1 -0
- package/dist/components/View/styles.d.ts +54 -0
- package/dist/components/View/styles.js +29 -0
- package/dist/components/View/styles.js.map +1 -0
- package/dist/components/components.d.ts +10 -3
- package/dist/components/components.js +23 -3
- package/dist/components/components.js.map +1 -1
- package/dist/components/defaultStyles.d.ts +1364 -0
- package/dist/components/defaultStyles.js +63 -0
- package/dist/components/defaultStyles.js.map +1 -0
- package/dist/components/{_Modal → legacy/Modal}/index.d.ts +3 -3
- package/dist/components/{_Modal → legacy/Modal}/index.js +6 -6
- package/dist/components/legacy/Modal/index.js.map +1 -0
- package/dist/components/{_Modal → legacy/Modal}/styles.d.ts +6 -6
- package/dist/components/{_Modal → legacy/Modal}/styles.js +0 -0
- package/dist/components/legacy/Modal/styles.js.map +1 -0
- package/dist/components/legacy/Pager/index.d.ts +20 -0
- package/dist/components/legacy/Pager/index.js +168 -0
- package/dist/components/legacy/Pager/index.js.map +1 -0
- package/dist/components/legacy/Pager/styles.d.ts +54 -0
- package/dist/components/legacy/Pager/styles.js +44 -0
- package/dist/components/legacy/Pager/styles.js.map +1 -0
- package/dist/components/legacy/index.d.ts +2 -0
- package/dist/components/legacy/index.js +19 -0
- package/dist/components/legacy/index.js.map +1 -0
- package/dist/index.d.ts +4 -6
- package/dist/index.js +6 -9
- package/dist/index.js.map +1 -1
- package/dist/modules/reactNavigation.d.ts +2 -0
- package/dist/modules/reactNavigation.js +16 -1
- package/dist/modules/reactNavigation.js.map +1 -1
- package/dist/modules/textInputMask.d.ts +1 -0
- package/dist/modules/textInputMask.js +15 -0
- package/dist/modules/textInputMask.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +18 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/KeyboardAware/index.d.ts +6 -0
- package/dist/utils/KeyboardAware/index.js +31 -0
- package/dist/utils/KeyboardAware/index.js.map +1 -0
- package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.d.ts +3 -0
- package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.js +9 -0
- package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.js.map +1 -0
- package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.d.ts +65 -0
- package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js +450 -0
- package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js.map +1 -0
- package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.d.ts +7 -0
- package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.js +4 -0
- package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.js.map +1 -0
- package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.d.ts +3 -0
- package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.js +10 -0
- package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.js.map +1 -0
- package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.d.ts +3 -0
- package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.js +10 -0
- package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.js.map +1 -0
- package/dist/utils/KeyboardAware/types.d.ts +1 -0
- package/dist/utils/KeyboardAware/types.js +7 -0
- package/dist/utils/KeyboardAware/types.js.map +1 -0
- package/dist/utils/ModalManager/components.d.ts +10 -2
- package/dist/utils/ModalManager/components.js +39 -7
- package/dist/utils/ModalManager/components.js.map +1 -1
- package/dist/utils/ModalManager/context.d.ts +1 -0
- package/dist/utils/ModalManager/context.js +6 -0
- package/dist/utils/ModalManager/context.js.map +1 -1
- package/dist/utils/ModalManager/index.d.ts +3 -2
- package/dist/utils/ModalManager/index.js +1 -0
- package/dist/utils/ModalManager/index.js.map +1 -1
- package/dist/utils/PermissionManager/context.js +0 -7
- package/dist/utils/PermissionManager/context.js.map +1 -1
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.js +42 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/misc.d.ts +5 -1
- package/dist/utils/misc.js +62 -1
- package/dist/utils/misc.js.map +1 -1
- package/dist/utils/notifications.d.ts +34 -0
- package/dist/utils/notifications.js +268 -0
- package/dist/utils/notifications.js.map +1 -0
- package/package.json +13 -4
- package/src/components/ActionIcon/index.tsx +31 -0
- package/src/components/ActionIcon/styles.ts +92 -0
- package/src/components/{ActivityIndicator.tsx → ActivityIndicator/index.tsx} +7 -3
- package/src/components/ActivityIndicator/styles.ts +68 -0
- package/src/components/AutoComplete/index.tsx +158 -0
- package/src/components/AutoComplete/styles.ts +49 -0
- package/src/components/{Backdrop.tsx → Backdrop/index.tsx} +13 -42
- package/src/components/Backdrop/styles.ts +33 -0
- package/src/components/{Button.tsx → Button/index.tsx} +64 -11
- package/src/components/Button/styles.ts +105 -0
- package/src/components/Calendar/index.tsx +65 -0
- package/src/components/Calendar/style.ts +35 -0
- package/src/components/Calendar/types.ts +102 -0
- package/src/components/Checkbox/index.tsx +6 -4
- package/src/components/Checkbox/styles.ts +3 -3
- package/src/components/{ContentView.tsx → ContentView/index.tsx} +11 -6
- package/src/components/ContentView/styles.ts +25 -0
- package/src/components/Drawer/index.tsx +24 -0
- package/src/components/Drawer/styles.ts +38 -0
- package/src/components/{EmptyPlaceholder.tsx → EmptyPlaceholder/index.tsx} +14 -7
- package/src/components/EmptyPlaceholder/styles.ts +58 -0
- package/src/components/{FileInput.tsx → FileInput/index.tsx} +19 -28
- package/src/components/FileInput/styles.ts +15 -0
- package/src/components/Grid/index.tsx +107 -0
- package/src/components/Grid/styles.ts +11 -0
- package/src/components/{Icon.tsx → Icon/index.tsx} +8 -3
- package/src/components/Icon/styles.ts +52 -0
- package/src/components/Image/index.tsx +88 -0
- package/src/components/Image/styles.ts +20 -0
- package/src/components/ImageView/Spotlight.tsx +158 -0
- package/src/components/ImageView/component.tsx +38 -0
- package/src/components/ImageView/index.ts +2 -0
- package/src/components/List/PaginationIndicator.tsx +71 -0
- package/src/components/List/index.tsx +108 -0
- package/src/components/List/styles.ts +15 -0
- package/src/components/Modal/index.tsx +75 -39
- package/src/components/Modal/styles.ts +7 -5
- package/src/components/MultiSelect/index.tsx +120 -0
- package/src/components/MultiSelect/styles.ts +25 -0
- package/src/components/MultiSelect/types.ts +39 -0
- package/src/components/Navigation/Navigation.tsx +1 -5
- package/src/components/Pager/index.tsx +81 -202
- package/src/components/Pager/styles.ts +58 -33
- package/src/components/RadioInput/index.tsx +5 -6
- package/src/components/RadioInput/styles.ts +8 -10
- package/src/components/{Scroll.tsx → Scroll/index.tsx} +22 -24
- package/src/components/Scroll/styles.ts +18 -0
- package/src/components/{Sections.tsx → Sections/index.tsx} +5 -15
- package/src/components/SegmentedControl/index.tsx +1 -1
- package/src/components/Select/index.tsx +74 -139
- package/src/components/Select/styles.ts +42 -74
- package/src/components/Select/types.ts +16 -23
- package/src/components/Slider/index.tsx +2 -0
- package/src/components/Slider/styles.ts +75 -0
- package/src/components/Slider/types.ts +7 -2
- package/src/components/{Switch.tsx → Switch/index.tsx} +9 -4
- package/src/components/Switch/styles.ts +37 -0
- package/src/components/{Text.tsx → Text/index.tsx} +7 -3
- package/src/components/Text/styles.ts +34 -0
- package/src/components/TextInput/Label.tsx +26 -0
- package/src/components/{TextInput.tsx → TextInput/index.tsx} +84 -70
- package/src/components/TextInput/styles.ts +120 -0
- package/src/components/Touchable/index.tsx +133 -0
- package/src/components/Touchable/styles.ts +16 -0
- package/src/components/View/index.tsx +89 -0
- package/src/components/View/styles.ts +24 -0
- package/src/components/components.ts +14 -4
- package/src/components/defaultStyles.ts +60 -0
- package/src/components/{_Modal → legacy/Modal}/index.tsx +7 -7
- package/src/components/{_Modal → legacy/Modal}/styles.ts +0 -0
- package/src/components/legacy/Pager/index.tsx +242 -0
- package/src/components/legacy/Pager/styles.ts +51 -0
- package/src/components/legacy/index.ts +2 -0
- package/src/index.ts +4 -9
- package/src/modules/reactNavigation.ts +11 -0
- package/src/modules/textInputMask.ts +2 -0
- package/src/types/index.ts +1 -0
- package/src/utils/KeyboardAware/index.ts +15 -0
- package/src/utils/KeyboardAware/lib/KeyboardAwareFlatList.ts +4 -0
- package/src/utils/KeyboardAware/lib/KeyboardAwareHOC.tsx +608 -0
- package/src/utils/KeyboardAware/lib/KeyboardAwareInterface.ts +13 -0
- package/src/utils/KeyboardAware/lib/KeyboardAwareScrollView.ts +6 -0
- package/src/utils/KeyboardAware/lib/KeyboardAwareSectionList.ts +6 -0
- package/src/utils/KeyboardAware/types.ts +159 -0
- package/src/utils/ModalManager/components.tsx +57 -14
- package/src/utils/ModalManager/context.tsx +10 -0
- package/src/utils/ModalManager/index.ts +4 -1
- package/src/utils/PermissionManager/context.tsx +1 -7
- package/src/utils/index.ts +9 -0
- package/src/utils/misc.ts +61 -2
- package/src/utils/notifications.ts +206 -0
- package/dist/components/ActivityIndicator.js.map +0 -1
- package/dist/components/Backdrop.js.map +0 -1
- package/dist/components/Button.d.ts +0 -132
- package/dist/components/Button.js.map +0 -1
- package/dist/components/ContentView.js.map +0 -1
- package/dist/components/EmptyPlaceholder.js.map +0 -1
- package/dist/components/FileInput.js.map +0 -1
- package/dist/components/Gap.d.ts +0 -8
- package/dist/components/Gap.js +0 -60
- package/dist/components/Gap.js.map +0 -1
- package/dist/components/Icon.js.map +0 -1
- package/dist/components/Image.js.map +0 -1
- package/dist/components/List.js +0 -101
- package/dist/components/List.js.map +0 -1
- package/dist/components/NewModal/index.d.ts +0 -27
- package/dist/components/NewModal/index.js +0 -99
- package/dist/components/NewModal/index.js.map +0 -1
- package/dist/components/NewModal/styles.js +0 -58
- package/dist/components/NewModal/styles.js.map +0 -1
- package/dist/components/NewPager/index.d.ts +0 -26
- package/dist/components/NewPager/index.js +0 -88
- package/dist/components/NewPager/index.js.map +0 -1
- package/dist/components/NewPager/styles.js +0 -70
- package/dist/components/NewPager/styles.js.map +0 -1
- package/dist/components/Overlay.d.ts +0 -16
- package/dist/components/Overlay.js +0 -74
- package/dist/components/Overlay.js.map +0 -1
- package/dist/components/Scroll.d.ts +0 -15
- package/dist/components/Scroll.js.map +0 -1
- package/dist/components/Sections.d.ts +0 -11
- package/dist/components/Sections.js.map +0 -1
- package/dist/components/SegmentedControl.d.ts +0 -5
- package/dist/components/SegmentedControl.js +0 -32
- package/dist/components/SegmentedControl.js.map +0 -1
- package/dist/components/Switch.js.map +0 -1
- package/dist/components/Text.js.map +0 -1
- package/dist/components/TextInput.js.map +0 -1
- package/dist/components/Touchable.js.map +0 -1
- package/dist/components/View.js.map +0 -1
- package/dist/components/_Modal/index.js.map +0 -1
- package/dist/components/_Modal/styles.js.map +0 -1
- package/dist/utils/PermissionManager/components.d.ts +0 -18
- package/dist/utils/PermissionManager/components.js +0 -52
- package/dist/utils/PermissionManager/components.js.map +0 -1
- package/dist/utils/styles.d.ts +0 -1
- package/dist/utils/styles.js +0 -13
- package/dist/utils/styles.js.map +0 -1
- package/src/components/Gap.tsx +0 -40
- package/src/components/Image.tsx +0 -62
- package/src/components/List.tsx +0 -155
- package/src/components/NewPager/index.tsx +0 -121
- package/src/components/NewPager/styles.ts +0 -76
- package/src/components/Overlay.tsx +0 -86
- package/src/components/Touchable.tsx +0 -89
- package/src/components/View.tsx +0 -48
- package/src/utils/styles.ts +0 -14
|
@@ -0,0 +1,59 @@
|
|
|
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({ cursor: 'pointer', border: 'none', outline: 'none', display: 'flex', flexDirection: 'row', backgroundColor: theme.colors.primary }, theme.presets.alignCenter),
|
|
20
|
+
text: {
|
|
21
|
+
flex: 1,
|
|
22
|
+
textAlign: 'center',
|
|
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
|
+
}); }), negative: createButtonStyle(function (theme) { return ({
|
|
41
|
+
wrapper: {
|
|
42
|
+
backgroundColor: theme.colors.negative,
|
|
43
|
+
},
|
|
44
|
+
}); }), circle: createButtonStyle(function (theme) { return ({
|
|
45
|
+
wrapper: __assign({ borderRadius: 100 }, theme.spacing.padding(1)),
|
|
46
|
+
}); }), pill: createButtonStyle(function (theme) { return ({
|
|
47
|
+
wrapper: __assign(__assign({ borderRadius: theme.borderRadius.medium }, theme.spacing.paddingHorizontal(1)), theme.spacing.paddingVertical(0.5)),
|
|
48
|
+
}); }), icon: createButtonStyle(function (theme) { return ({
|
|
49
|
+
wrapper: __assign(__assign({ backgroundColor: 'transparent', aspectRatio: 1, display: 'flex' }, theme.presets.center), theme.spacing.padding(0)),
|
|
50
|
+
text: {
|
|
51
|
+
flex: 1,
|
|
52
|
+
textAlign: 'center',
|
|
53
|
+
},
|
|
54
|
+
loader: __assign({}, theme.spacing.margin(0)),
|
|
55
|
+
icon: __assign(__assign(__assign({}, theme.spacing.margin(0)), theme.presets.center), { height: null, width: null, color: theme.colors.icon }),
|
|
56
|
+
leftIcon: __assign({}, theme.spacing.marginRight(0)),
|
|
57
|
+
rightIcon: __assign({}, theme.spacing.marginRight(0)),
|
|
58
|
+
}); }) });
|
|
59
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Button/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAA8E;AAQ9E,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,CAAC,CAAA;AAE7E,QAAA,YAAY,yBACpB,OAAO,KACV,OAAO,EAAE,iBAAiB,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC;QACrC,OAAO,aACL,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,KAAK,EACpB,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,IAClC,KAAK,CAAC,OAAO,CAAC,WAAW,CAE7B;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,CAAC;YACP,SAAS,EAAE,QAAQ;SACpB;QACD,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,EAAE;SACV;QAED,iBAAiB,EAAE;YACjB,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;SACnC;QACD,kBAAkB,EAAE;YAClB,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ;YACtC,OAAO,EAAE,GAAG;YACZ,MAAM,EAAE,MAAM;SAEf;QACD,YAAY,aACV,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,EACtC,QAAQ,EAAE,UAAU,IACjB,KAAK,CAAC,OAAO,CAAC,O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,CAAC,MAAM,KACvB,MAAM,EAAE,IAAI,EACZ,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,GACzB;QACD,QAAQ,eACH,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAChC;QACD,SAAS,eACJ,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAChC;KACF,CAAC,EA7BiC,CA6BjC,CAAC,IACJ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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;
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
25
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
26
|
+
};
|
|
27
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
28
|
+
var t = {};
|
|
29
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
30
|
+
t[p] = s[p];
|
|
31
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
32
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
33
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
34
|
+
t[p[i]] = s[p[i]];
|
|
35
|
+
}
|
|
36
|
+
return t;
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.Calendar = void 0;
|
|
43
|
+
var react_1 = __importDefault(require("react"));
|
|
44
|
+
var common_1 = require("@codeleap/common");
|
|
45
|
+
var react_native_1 = require("react-native");
|
|
46
|
+
var date_fns_1 = require("date-fns");
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
var react_native_calendars_1 = require("react-native-calendars");
|
|
49
|
+
var View_1 = require("../View");
|
|
50
|
+
__exportStar(require("./style"), exports);
|
|
51
|
+
__exportStar(require("./types"), exports);
|
|
52
|
+
var Calendar = function (props) {
|
|
53
|
+
var _a;
|
|
54
|
+
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"]);
|
|
55
|
+
var variantStyles = (0, common_1.useDefaultComponentStyle)('u:Calendar', {
|
|
56
|
+
variants: variants,
|
|
57
|
+
styles: styles,
|
|
58
|
+
transform: react_native_1.StyleSheet.flatten,
|
|
59
|
+
rootElement: 'wrapper',
|
|
60
|
+
});
|
|
61
|
+
var isDateObject = common_1.TypeGuards.isInstance(value, Date);
|
|
62
|
+
var stringValue = isDateObject ? (0, date_fns_1.format)(value, 'yyyy/MM/dd') : value;
|
|
63
|
+
function handleChange(date) {
|
|
64
|
+
if (!onValueChange)
|
|
65
|
+
return;
|
|
66
|
+
if (isDateObject) {
|
|
67
|
+
onValueChange(new Date(date.timestamp));
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
onValueChange(date.dateString);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return <View_1.View style={[variantStyles.wrapper, style]} {...viewProps}>
|
|
74
|
+
<react_native_calendars_1.Calendar onDayPress={handleChange} current={new Date(value).toISOString()} monthFormat={'MMMM yyyy'} markedDates={_a = {},
|
|
75
|
+
_a[stringValue] = { selected: true },
|
|
76
|
+
_a} theme={__assign(__assign({}, variantStyles.theme), { stylesheet: __assign({}, variantStyles) })} {...calendarProps}/>
|
|
77
|
+
</View_1.View>;
|
|
78
|
+
};
|
|
79
|
+
exports.Calendar = Calendar;
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Calendar/index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I,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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/Calendar/types.ts"],"names":[],"mappings":""}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { ComponentVariants, StylesOf, Form } from '@codeleap/common';
|
|
3
3
|
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
4
4
|
import { Switch as NativeCheckbox } from 'react-native';
|
|
5
|
-
import {
|
|
5
|
+
import { CheckboxStyles, CheckboxComposition } from './styles';
|
|
6
6
|
export * from './styles';
|
|
7
7
|
declare type NativeCheckboxProps = Omit<ComponentPropsWithRef<typeof NativeCheckbox>, 'thumbColor' | 'trackColor'>;
|
|
8
8
|
declare type CheckboxProps = NativeCheckboxProps & {
|
|
@@ -12,4 +12,4 @@ declare type CheckboxProps = NativeCheckboxProps & {
|
|
|
12
12
|
validate?: Form.ValidatorFunctionWithoutForm | string;
|
|
13
13
|
required?: boolean;
|
|
14
14
|
};
|
|
15
|
-
export declare const Checkbox: React.ForwardRefExoticComponent<Pick<CheckboxProps, "children" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "style" | "testID" | "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" | "label" | "variants" | "key" | "
|
|
15
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<Pick<CheckboxProps, "disabled" | "children" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "style" | "testID" | "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" | "label" | "variants" | "key" | "value" | "styles" | "tintColor" | "onChange" | "required" | "validate" | "onValueChange" | "ios_backgroundColor" | "onTintColor" | "thumbTintColor"> & React.RefAttributes<unknown>>;
|
|
@@ -65,7 +65,7 @@ exports.Checkbox = (0, react_1.forwardRef)(function (checkboxProps, ref) {
|
|
|
65
65
|
checkboxProps.disabled ? styles[key + ':disabled'] : {},
|
|
66
66
|
];
|
|
67
67
|
}
|
|
68
|
-
return (<View_1.View style={getStyles('wrapper')} {...props}>
|
|
68
|
+
return (<View_1.View style={getStyles('wrapper')} ref={ref} {...props}>
|
|
69
69
|
<Touchable_1.Touchable debugName={"Set checkbox value to ".concat(!value)} style={getStyles('input')} onPress={function () { return onValueChange(!value); }}>
|
|
70
70
|
<View_1.View style={getStyles('checkmarkWrapper')}>
|
|
71
71
|
<View_1.View style={getStyles('checkmark')}/>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Checkbox/index.tsx"],"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AAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,EAC1E;UAAA,EAAE,WAAI,CACR;QAAA,EAAE,qBAAS,CACX;QAAA,CAAC,qBAAS,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,EAC/D;MAAA,EAAE,WAAI,CAAC,CACR,CAAA;AACH,CAAC,CACF,CAAA"}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
declare type CheckboxParts = 'wrapper' | 'label' | 'labelWrapper' | 'input' | 'checkmark' | 'checkmarkWrapper' | 'error';
|
|
2
|
-
export declare type
|
|
3
|
-
export declare const
|
|
4
|
-
default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<
|
|
51
|
-
debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<
|
|
52
|
-
debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<
|
|
53
|
-
debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<
|
|
2
|
+
export declare type CheckboxComposition = CheckboxParts | `${CheckboxParts}:checked` | `${CheckboxParts}:disabled` | `${CheckboxParts}:error`;
|
|
3
|
+
export declare const CheckboxStyles: {
|
|
4
|
+
default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
5
|
+
inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
6
|
+
block: (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
|
+
inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
9
|
+
absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
10
|
+
relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
11
|
+
fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
12
|
+
sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
13
|
+
hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
14
|
+
full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
15
|
+
noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
16
|
+
fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
17
|
+
fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
18
|
+
fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
19
|
+
fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
20
|
+
fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
21
|
+
whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
22
|
+
centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
23
|
+
row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
24
|
+
listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
25
|
+
column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
26
|
+
center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
27
|
+
alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
28
|
+
alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
29
|
+
alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
30
|
+
alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
31
|
+
alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
32
|
+
alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
33
|
+
alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
34
|
+
alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
35
|
+
justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
36
|
+
justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
37
|
+
justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
38
|
+
justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
39
|
+
justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
40
|
+
textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
41
|
+
textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
42
|
+
textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
43
|
+
blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
44
|
+
elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
45
|
+
neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
46
|
+
scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
47
|
+
scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
48
|
+
scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
49
|
+
wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
50
|
+
debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
51
|
+
debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
52
|
+
debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
53
|
+
debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
|
|
54
54
|
};
|
|
55
55
|
export {};
|
|
@@ -11,11 +11,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
14
|
+
exports.CheckboxStyles = void 0;
|
|
15
15
|
var common_1 = require("@codeleap/common");
|
|
16
16
|
var createCheckboxStyle = (0, common_1.createDefaultVariantFactory)();
|
|
17
17
|
var presets = (0, common_1.includePresets)(function (styles) { return createCheckboxStyle(function () { return ({ wrapper: styles }); }); });
|
|
18
|
-
exports.
|
|
18
|
+
exports.CheckboxStyles = __assign(__assign({}, presets), { default: createCheckboxStyle(function (theme) {
|
|
19
19
|
var size = theme.typography.baseFontSize * 1.2;
|
|
20
20
|
var markHeight = size * 0.5;
|
|
21
21
|
var markWidth = size * 0.25;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Checkbox/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAA8E;AAgB9E,IAAM,mBAAmB,GACvB,IAAA,oCAA2B,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Checkbox/styles.ts"],"names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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,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"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ComponentVariants
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { ComponentVariants } from '@codeleap/common';
|
|
3
|
+
import { ContentViewStyles } from './styles';
|
|
4
|
+
import { ViewProps, ViewComposition } from '../View';
|
|
5
|
+
import { StylesOf } from '../../types';
|
|
6
|
+
export * from './styles';
|
|
5
7
|
export declare type ContentViewProps = Omit<ViewProps, 'variants' | 'responsiveVariants'> & {
|
|
6
8
|
placeholderMsg: string;
|
|
7
9
|
loading?: boolean;
|
|
@@ -1,4 +1,18 @@
|
|
|
1
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
17
|
var t = {};
|
|
4
18
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -17,10 +31,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
31
|
exports.ContentView = void 0;
|
|
18
32
|
var react_1 = __importDefault(require("react"));
|
|
19
33
|
var common_1 = require("@codeleap/common");
|
|
20
|
-
var View_1 = require("
|
|
21
|
-
var Text_1 = require("
|
|
22
|
-
var ActivityIndicator_1 = require("
|
|
34
|
+
var View_1 = require("../View");
|
|
35
|
+
var Text_1 = require("../Text");
|
|
36
|
+
var ActivityIndicator_1 = require("../ActivityIndicator");
|
|
23
37
|
var react_native_1 = require("react-native");
|
|
38
|
+
__exportStar(require("./styles"), exports);
|
|
24
39
|
var WrapContent = function (_a) {
|
|
25
40
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
26
41
|
return (<View_1.View {...props}>{children}</View_1.View>);
|
|
@@ -48,4 +63,4 @@ var ContentView = function (rawProps) {
|
|
|
48
63
|
</WrapContent>);
|
|
49
64
|
};
|
|
50
65
|
exports.ContentView = ContentView;
|
|
51
|
-
//# sourceMappingURL=
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ContentView/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,2CAKyB;AAIzB,gCAA0D;AAC1D,gCAA8B;AAE9B,0DAAwD;AACxD,6CAAyC;AAEzC,2CAAwB;AAWxB,IAAM,WAAW,GAA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