@draftbit/core 46.10.3-6c7505.2 → 46.10.3-7476ab.2
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/lib/commonjs/components/AnimatedCircularProgress.js +12 -1
- package/lib/commonjs/components/AspectRatio.js +17 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +22 -4
- package/lib/commonjs/components/Button.js +33 -10
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +23 -5
- package/lib/commonjs/components/Checkbox/context.js +1 -1
- package/lib/commonjs/components/CircleImage.js +15 -1
- package/lib/commonjs/components/CircularProgress.js +26 -8
- package/lib/commonjs/components/DatePicker/DatePicker.js +26 -13
- package/lib/commonjs/components/Divider.js +14 -1
- package/lib/commonjs/components/Elevation.js +14 -2
- package/lib/commonjs/components/IconButton.js +4 -19
- package/lib/commonjs/components/Image.js +17 -2
- package/lib/commonjs/components/Layout.js +19 -40
- package/lib/commonjs/components/Picker/PickerComponent.android.js +20 -3
- package/lib/commonjs/components/Portal/PortalHost.js +44 -15
- package/lib/commonjs/components/RadioButton/RadioButton.js +13 -2
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js +23 -5
- package/lib/commonjs/components/RadioButton/context.js +1 -1
- package/lib/commonjs/components/Shadow.js +15 -2
- package/lib/commonjs/components/StarRating.js +23 -4
- package/lib/commonjs/components/Switch.js +19 -10
- package/lib/commonjs/components/TabView/TabView.js +13 -7
- package/lib/commonjs/components/Table/Table.js +5 -5
- package/lib/commonjs/constants.js +1 -1
- package/lib/commonjs/mappings/Accordion.js +49 -0
- package/lib/commonjs/mappings/AccordionItem.js +24 -0
- package/lib/commonjs/mappings/ActionSheet.js +21 -0
- package/lib/commonjs/mappings/ActionSheetCancel.js +27 -0
- package/lib/commonjs/mappings/ActionSheetItem.js +31 -0
- package/lib/commonjs/mappings/ActivityIndicator.js +64 -0
- package/lib/commonjs/mappings/AudioPlayer.js +57 -0
- package/lib/commonjs/mappings/AvatarEdit.js +45 -0
- package/lib/commonjs/mappings/Banner.js +39 -0
- package/lib/commonjs/mappings/BlurView.js +49 -0
- package/lib/commonjs/mappings/BottomSheet.js +70 -0
- package/lib/commonjs/mappings/Button.js +95 -0
- package/lib/commonjs/mappings/Card.js +60 -0
- package/lib/commonjs/mappings/Carousel.js +24 -0
- package/lib/commonjs/mappings/Checkbox.js +53 -0
- package/lib/commonjs/mappings/CheckboxGroup.js +33 -0
- package/lib/commonjs/mappings/CheckboxRow.js +64 -0
- package/lib/commonjs/mappings/CircleImage.js +32 -0
- package/lib/commonjs/mappings/CustomCode.js +15 -0
- package/lib/commonjs/mappings/DatePicker.js +181 -0
- package/lib/commonjs/mappings/DeckSwiper.js +55 -0
- package/lib/commonjs/mappings/DeckSwiperCard.js +23 -0
- package/lib/commonjs/mappings/Divider.js +32 -0
- package/lib/commonjs/mappings/FAB.js +44 -0
- package/lib/commonjs/mappings/Fetch.js +20 -0
- package/lib/commonjs/mappings/FieldSearchBarFull.js +58 -0
- package/lib/commonjs/mappings/FlashList.js +111 -0
- package/lib/commonjs/mappings/FlatList.js +58 -0
- package/lib/commonjs/mappings/Icon.js +33 -0
- package/lib/commonjs/mappings/IconButton.js +36 -0
- package/lib/commonjs/mappings/Image.js +36 -0
- package/lib/commonjs/mappings/ImageBackground.js +36 -0
- package/lib/commonjs/mappings/KeyboardAvoidingView.js +48 -0
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js +57 -0
- package/lib/commonjs/mappings/Layout.js +200 -0
- package/lib/commonjs/mappings/LinearGradient.js +88 -0
- package/lib/commonjs/mappings/MapCallout.js +29 -0
- package/lib/commonjs/mappings/MapMarker.js +55 -0
- package/lib/commonjs/mappings/MapView.js +142 -0
- package/lib/commonjs/mappings/Markdown.js +27 -0
- package/lib/commonjs/mappings/Modal.js +49 -0
- package/lib/commonjs/mappings/NativeBase/Layout.js +108 -0
- package/lib/commonjs/mappings/NumberInput.js +238 -0
- package/lib/commonjs/mappings/Picker.js +154 -0
- package/lib/commonjs/mappings/ProgressBar.js +106 -0
- package/lib/commonjs/mappings/ProgressCircle.js +116 -0
- package/lib/commonjs/mappings/RadioButton.js +58 -0
- package/lib/commonjs/mappings/RadioButtonGroup.js +24 -0
- package/lib/commonjs/mappings/RadioButtonRow.js +45 -0
- package/lib/commonjs/mappings/RowBodyIcon.js +79 -0
- package/lib/commonjs/mappings/RowHeadlineImageCaption.js +169 -0
- package/lib/commonjs/mappings/RowHeadlineImageIcon.js +99 -0
- package/lib/commonjs/mappings/SVG.js +22 -0
- package/lib/commonjs/mappings/SafeAreaView.js +40 -0
- package/lib/commonjs/mappings/ScrollView.js +44 -0
- package/lib/commonjs/mappings/Shadow.js +102 -0
- package/lib/commonjs/mappings/Slider.js +67 -0
- package/lib/commonjs/mappings/StarRating.js +57 -0
- package/lib/commonjs/mappings/Stepper.js +38 -0
- package/lib/commonjs/mappings/Surface.js +21 -0
- package/lib/commonjs/mappings/Swiper.js +70 -0
- package/lib/commonjs/mappings/SwiperItem.js +16 -0
- package/lib/commonjs/mappings/Switch.js +81 -0
- package/lib/commonjs/mappings/TabView.js +74 -0
- package/lib/commonjs/mappings/TabViewItem.js +37 -0
- package/lib/commonjs/mappings/Table.js +140 -0
- package/lib/commonjs/mappings/Text.js +234 -0
- package/lib/commonjs/mappings/TextArea.js +254 -0
- package/lib/commonjs/mappings/TextField.js +360 -0
- package/lib/commonjs/mappings/TextInput.js +345 -0
- package/lib/commonjs/mappings/ToggleButton.js +53 -0
- package/lib/commonjs/mappings/Touchable.js +67 -0
- package/lib/commonjs/mappings/Video.js +82 -0
- package/lib/commonjs/mappings/View.js +186 -0
- package/lib/commonjs/mappings/WebView.js +93 -0
- package/lib/commonjs/mappings/YoutubePlayer.js +38 -0
- package/lib/module/components/AspectRatio.js +18 -1
- package/lib/module/components/BottomSheet/BottomSheet.js +24 -4
- package/lib/module/components/Button.js +33 -10
- package/lib/module/components/Checkbox/Checkbox.js +3 -4
- package/lib/module/components/Checkbox/CheckboxRow.js +24 -6
- package/lib/module/components/Checkbox/context.js +1 -1
- package/lib/module/components/DatePicker/DatePicker.js +27 -13
- package/lib/module/components/DeckSwiper/DeckSwiper.js +1 -4
- package/lib/module/components/DeprecatedButton.js +21 -3
- package/lib/module/components/Divider.js +18 -1
- package/lib/module/components/FormRow.js +17 -2
- package/lib/module/components/NumberInput.js +11 -3
- package/lib/module/components/Picker/PickerComponent.android.js +21 -3
- package/lib/module/components/Portal/PortalHost.js +45 -15
- package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +10 -1
- package/lib/module/components/Shadow.js +15 -2
- package/lib/module/components/StarRating.js +24 -4
- package/lib/module/components/StepIndicator.js +58 -18
- package/lib/module/components/TabView/TabView.js +17 -7
- package/lib/module/components/Table/Table.js +6 -5
- package/lib/module/components/Table/TableRow.js +1 -2
- package/lib/module/constants.js +1 -0
- package/lib/module/mappings/Accordion.js +42 -0
- package/lib/module/mappings/AccordionItem.js +17 -0
- package/lib/module/mappings/ActionSheet.js +14 -0
- package/lib/module/mappings/ActionSheetCancel.js +20 -0
- package/lib/module/mappings/ActionSheetItem.js +24 -0
- package/lib/module/mappings/ActivityIndicator.js +57 -0
- package/lib/module/mappings/AudioPlayer.js +50 -0
- package/lib/module/mappings/AvatarEdit.js +38 -0
- package/lib/module/mappings/Banner.js +32 -0
- package/lib/module/mappings/BlurView.js +42 -0
- package/lib/module/mappings/BottomSheet.js +63 -0
- package/lib/module/mappings/Button.js +88 -0
- package/lib/module/mappings/Card.js +53 -0
- package/lib/module/mappings/Carousel.js +17 -0
- package/lib/module/mappings/Checkbox.js +46 -0
- package/lib/module/mappings/CheckboxGroup.js +26 -0
- package/lib/module/mappings/CheckboxRow.js +57 -0
- package/lib/module/mappings/CircleImage.js +25 -0
- package/lib/module/mappings/CustomCode.js +8 -0
- package/lib/module/mappings/DatePicker.js +174 -0
- package/lib/module/mappings/DeckSwiper.js +48 -0
- package/lib/module/mappings/DeckSwiperCard.js +16 -0
- package/lib/module/mappings/Divider.js +25 -0
- package/lib/module/mappings/FAB.js +37 -0
- package/lib/module/mappings/Fetch.js +13 -0
- package/lib/module/mappings/FieldSearchBarFull.js +52 -0
- package/lib/module/mappings/FlashList.js +104 -0
- package/lib/module/mappings/FlatList.js +51 -0
- package/lib/module/mappings/Icon.js +26 -0
- package/lib/module/mappings/IconButton.js +29 -0
- package/lib/module/mappings/Image.js +29 -0
- package/lib/module/mappings/ImageBackground.js +29 -0
- package/lib/module/mappings/KeyboardAvoidingView.js +41 -0
- package/lib/module/mappings/KeyboardAwareScrollView.js +50 -0
- package/lib/module/mappings/Layout.js +193 -0
- package/lib/module/mappings/LinearGradient.js +81 -0
- package/lib/module/mappings/MapCallout.js +22 -0
- package/lib/module/mappings/MapMarker.js +48 -0
- package/lib/module/mappings/MapView.js +135 -0
- package/lib/module/mappings/Markdown.js +20 -0
- package/lib/module/mappings/Modal.js +42 -0
- package/lib/module/mappings/NativeBase/Layout.js +101 -0
- package/lib/module/mappings/NumberInput.js +230 -0
- package/lib/module/mappings/Picker.js +147 -0
- package/lib/module/mappings/ProgressBar.js +99 -0
- package/lib/module/mappings/ProgressCircle.js +109 -0
- package/lib/module/mappings/RadioButton.js +51 -0
- package/lib/module/mappings/RadioButtonGroup.js +17 -0
- package/lib/module/mappings/RadioButtonRow.js +38 -0
- package/lib/module/mappings/RowBodyIcon.js +72 -0
- package/lib/module/mappings/RowHeadlineImageCaption.js +162 -0
- package/lib/module/mappings/RowHeadlineImageIcon.js +92 -0
- package/lib/module/mappings/SVG.js +15 -0
- package/lib/module/mappings/SafeAreaView.js +33 -0
- package/lib/module/mappings/ScrollView.js +37 -0
- package/lib/module/mappings/Shadow.js +95 -0
- package/lib/module/mappings/Slider.js +60 -0
- package/lib/module/mappings/StarRating.js +51 -0
- package/lib/module/mappings/Stepper.js +31 -0
- package/lib/module/mappings/Surface.js +14 -0
- package/lib/module/mappings/Swiper.js +63 -0
- package/lib/module/mappings/SwiperItem.js +9 -0
- package/lib/module/mappings/Switch.js +74 -0
- package/lib/module/mappings/TabView.js +67 -0
- package/lib/module/mappings/TabViewItem.js +30 -0
- package/lib/module/mappings/Table.js +133 -0
- package/lib/module/mappings/Text.js +227 -0
- package/lib/module/mappings/TextArea.js +247 -0
- package/lib/module/mappings/TextField.js +353 -0
- package/lib/module/mappings/TextInput.js +337 -0
- package/lib/module/mappings/ToggleButton.js +46 -0
- package/lib/module/mappings/Touchable.js +60 -0
- package/lib/module/mappings/Video.js +75 -0
- package/lib/module/mappings/View.js +179 -0
- package/lib/module/mappings/WebView.js +86 -0
- package/lib/module/mappings/YoutubePlayer.js +31 -0
- package/lib/module/utilities.js +1 -2
- package/lib/typescript/src/mappings/Accordion.d.ts +90 -0
- package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -0
- package/lib/typescript/src/mappings/AccordionItem.d.ts +31 -0
- package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActionSheet.d.ts +20 -0
- package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +32 -0
- package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActionSheetItem.d.ts +35 -0
- package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActivityIndicator.d.ts +57 -0
- package/lib/typescript/src/mappings/ActivityIndicator.d.ts.map +1 -0
- package/lib/typescript/src/mappings/AudioPlayer.d.ts +81 -0
- package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -0
- package/lib/typescript/src/mappings/AvatarEdit.d.ts +38 -0
- package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Banner.d.ts +49 -0
- package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
- package/lib/typescript/src/mappings/BlurView.d.ts +42 -0
- package/lib/typescript/src/mappings/BlurView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/BottomSheet.d.ts +115 -0
- package/lib/typescript/src/mappings/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Button.d.ts +222 -0
- package/lib/typescript/src/mappings/Button.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Card.d.ts +114 -0
- package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Carousel.d.ts +34 -0
- package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Checkbox.d.ts +83 -0
- package/lib/typescript/src/mappings/Checkbox.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CheckboxGroup.d.ts +35 -0
- package/lib/typescript/src/mappings/CheckboxGroup.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CheckboxRow.d.ts +108 -0
- package/lib/typescript/src/mappings/CheckboxRow.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CircleImage.d.ts +34 -0
- package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CustomCode.d.ts +8 -0
- package/lib/typescript/src/mappings/CustomCode.d.ts.map +1 -0
- package/lib/typescript/src/mappings/DatePicker.d.ts +168 -0
- package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/DeckSwiper.d.ts +86 -0
- package/lib/typescript/src/mappings/DeckSwiper.d.ts.map +1 -0
- package/lib/typescript/src/mappings/DeckSwiperCard.d.ts +16 -0
- package/lib/typescript/src/mappings/DeckSwiperCard.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Divider.d.ts +25 -0
- package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FAB.d.ts +83 -0
- package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Fetch.d.ts +12 -0
- package/lib/typescript/src/mappings/Fetch.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +56 -0
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FlashList.d.ts +230 -0
- package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FlatList.d.ts +116 -0
- package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Icon.d.ts +42 -0
- package/lib/typescript/src/mappings/Icon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/IconButton.d.ts +72 -0
- package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Image.d.ts +48 -0
- package/lib/typescript/src/mappings/Image.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ImageBackground.d.ts +58 -0
- package/lib/typescript/src/mappings/ImageBackground.d.ts.map +1 -0
- package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +41 -0
- package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +105 -0
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Layout.d.ts +169 -0
- package/lib/typescript/src/mappings/Layout.d.ts.map +1 -0
- package/lib/typescript/src/mappings/LinearGradient.d.ts +99 -0
- package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -0
- package/lib/typescript/src/mappings/MapCallout.d.ts +33 -0
- package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -0
- package/lib/typescript/src/mappings/MapMarker.d.ts +56 -0
- package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/MapView.d.ts +172 -0
- package/lib/typescript/src/mappings/MapView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Markdown.d.ts +20 -0
- package/lib/typescript/src/mappings/Markdown.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Modal.d.ts +52 -0
- package/lib/typescript/src/mappings/Modal.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +133 -0
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NumberInput.d.ts +299 -0
- package/lib/typescript/src/mappings/NumberInput.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Picker.d.ts +170 -0
- package/lib/typescript/src/mappings/Picker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressBar.d.ts +99 -0
- package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressCircle.d.ts +109 -0
- package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RadioButton.d.ts +72 -0
- package/lib/typescript/src/mappings/RadioButton.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +34 -0
- package/lib/typescript/src/mappings/RadioButtonGroup.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RadioButtonRow.d.ts +43 -0
- package/lib/typescript/src/mappings/RadioButtonRow.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts +73 -0
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +166 -0
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +170 -0
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/SVG.d.ts +24 -0
- package/lib/typescript/src/mappings/SVG.d.ts.map +1 -0
- package/lib/typescript/src/mappings/SafeAreaView.d.ts +33 -0
- package/lib/typescript/src/mappings/SafeAreaView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ScrollView.d.ts +72 -0
- package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Shadow.d.ts +173 -0
- package/lib/typescript/src/mappings/Shadow.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Slider.d.ts +110 -0
- package/lib/typescript/src/mappings/Slider.d.ts.map +1 -0
- package/lib/typescript/src/mappings/StarRating.d.ts +75 -0
- package/lib/typescript/src/mappings/StarRating.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Stepper.d.ts +67 -0
- package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Surface.d.ts +24 -0
- package/lib/typescript/src/mappings/Surface.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Swiper.d.ts +119 -0
- package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -0
- package/lib/typescript/src/mappings/SwiperItem.d.ts +9 -0
- package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Switch.d.ts +164 -0
- package/lib/typescript/src/mappings/Switch.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TabView.d.ts +123 -0
- package/lib/typescript/src/mappings/TabView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TabViewItem.d.ts +25 -0
- package/lib/typescript/src/mappings/TabViewItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Table.d.ts +337 -0
- package/lib/typescript/src/mappings/Table.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Text.d.ts +411 -0
- package/lib/typescript/src/mappings/Text.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TextArea.d.ts +263 -0
- package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TextField.d.ts +629 -0
- package/lib/typescript/src/mappings/TextField.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TextInput.d.ts +415 -0
- package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ToggleButton.d.ts +116 -0
- package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Touchable.d.ts +96 -0
- package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Video.d.ts +129 -0
- package/lib/typescript/src/mappings/Video.d.ts.map +1 -0
- package/lib/typescript/src/mappings/View.d.ts +179 -0
- package/lib/typescript/src/mappings/View.d.ts.map +1 -0
- package/lib/typescript/src/mappings/WebView.d.ts +135 -0
- package/lib/typescript/src/mappings/WebView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/YoutubePlayer.d.ts +27 -0
- package/lib/typescript/src/mappings/YoutubePlayer.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/mappings/Accordion.js +50 -0
- package/src/mappings/Accordion.ts +60 -0
- package/src/mappings/AccordionItem.js +17 -0
- package/src/mappings/AccordionItem.ts +24 -0
- package/src/mappings/ActionSheet.js +17 -0
- package/src/mappings/ActionSheet.ts +23 -0
- package/src/mappings/ActionSheetCancel.js +23 -0
- package/src/mappings/ActionSheetCancel.ts +32 -0
- package/src/mappings/ActionSheetItem.js +27 -0
- package/src/mappings/ActionSheetItem.ts +36 -0
- package/src/mappings/ActivityIndicator.js +58 -0
- package/src/mappings/ActivityIndicator.ts +68 -0
- package/src/mappings/AudioPlayer.js +57 -0
- package/src/mappings/AudioPlayer.ts +67 -0
- package/src/mappings/AvatarEdit.js +38 -0
- package/src/mappings/AvatarEdit.ts +45 -0
- package/src/mappings/Banner.js +32 -0
- package/src/mappings/Banner.ts +40 -0
- package/src/mappings/BlurView.js +42 -0
- package/src/mappings/BlurView.ts +51 -0
- package/src/mappings/BottomSheet.js +63 -0
- package/src/mappings/BottomSheet.ts +77 -0
- package/src/mappings/Button.js +116 -0
- package/src/mappings/Button.ts +130 -0
- package/src/mappings/Card.js +52 -0
- package/src/mappings/Card.ts +64 -0
- package/src/mappings/Carousel.js +19 -0
- package/src/mappings/Carousel.ts +25 -0
- package/src/mappings/Checkbox.js +46 -0
- package/src/mappings/Checkbox.ts +57 -0
- package/src/mappings/CheckboxGroup.js +26 -0
- package/src/mappings/CheckboxGroup.ts +37 -0
- package/src/mappings/CheckboxRow.js +61 -0
- package/src/mappings/CheckboxRow.ts +74 -0
- package/src/mappings/CircleImage.js +25 -0
- package/src/mappings/CircleImage.ts +33 -0
- package/src/mappings/CustomCode.js +8 -0
- package/src/mappings/CustomCode.ts +9 -0
- package/src/mappings/DatePicker.js +182 -0
- package/src/mappings/DatePicker.ts +197 -0
- package/src/mappings/DeckSwiper.js +48 -0
- package/src/mappings/DeckSwiper.ts +57 -0
- package/src/mappings/DeckSwiperCard.js +16 -0
- package/src/mappings/DeckSwiperCard.ts +20 -0
- package/src/mappings/Divider.js +27 -0
- package/src/mappings/Divider.ts +34 -0
- package/src/mappings/FAB.js +37 -0
- package/src/mappings/FAB.ts +48 -0
- package/src/mappings/Fetch.js +13 -0
- package/src/mappings/Fetch.ts +14 -0
- package/src/mappings/FieldSearchBarFull.js +50 -0
- package/src/mappings/FieldSearchBarFull.ts +59 -0
- package/src/mappings/FlashList.js +113 -0
- package/src/mappings/FlashList.ts +131 -0
- package/src/mappings/FlatList.js +51 -0
- package/src/mappings/FlatList.ts +64 -0
- package/src/mappings/Icon.js +32 -0
- package/src/mappings/Icon.ts +40 -0
- package/src/mappings/IconButton.js +33 -0
- package/src/mappings/IconButton.ts +44 -0
- package/src/mappings/Image.js +35 -0
- package/src/mappings/Image.ts +44 -0
- package/src/mappings/ImageBackground.js +29 -0
- package/src/mappings/ImageBackground.ts +41 -0
- package/src/mappings/KeyboardAvoidingView.js +41 -0
- package/src/mappings/KeyboardAvoidingView.ts +50 -0
- package/src/mappings/KeyboardAwareScrollView.js +50 -0
- package/src/mappings/KeyboardAwareScrollView.ts +63 -0
- package/src/mappings/Layout.js +200 -0
- package/src/mappings/Layout.ts +207 -0
- package/src/mappings/LinearGradient.js +82 -0
- package/src/mappings/LinearGradient.ts +89 -0
- package/src/mappings/MapCallout.js +26 -0
- package/src/mappings/MapCallout.ts +36 -0
- package/src/mappings/MapMarker.js +52 -0
- package/src/mappings/MapMarker.ts +62 -0
- package/src/mappings/MapView.js +142 -0
- package/src/mappings/MapView.ts +155 -0
- package/src/mappings/Markdown.js +25 -0
- package/src/mappings/Markdown.ts +32 -0
- package/src/mappings/Modal.js +42 -0
- package/src/mappings/Modal.ts +51 -0
- package/src/mappings/NativeBase/Layout.js +124 -0
- package/src/mappings/NativeBase/Layout.ts +145 -0
- package/src/mappings/NumberInput.js +254 -0
- package/src/mappings/NumberInput.ts +274 -0
- package/src/mappings/Picker.js +153 -0
- package/src/mappings/Picker.ts +169 -0
- package/src/mappings/ProgressBar.js +101 -0
- package/src/mappings/ProgressBar.ts +110 -0
- package/src/mappings/ProgressCircle.js +109 -0
- package/src/mappings/ProgressCircle.ts +117 -0
- package/src/mappings/RadioButton.js +51 -0
- package/src/mappings/RadioButton.ts +62 -0
- package/src/mappings/RadioButtonGroup.js +17 -0
- package/src/mappings/RadioButtonGroup.ts +24 -0
- package/src/mappings/RadioButtonRow.js +42 -0
- package/src/mappings/RadioButtonRow.ts +51 -0
- package/src/mappings/RowBodyIcon.js +75 -0
- package/src/mappings/RowBodyIcon.ts +82 -0
- package/src/mappings/RowHeadlineImageCaption.js +167 -0
- package/src/mappings/RowHeadlineImageCaption.ts +178 -0
- package/src/mappings/RowHeadlineImageIcon.js +99 -0
- package/src/mappings/RowHeadlineImageIcon.ts +116 -0
- package/src/mappings/SVG.js +20 -0
- package/src/mappings/SVG.ts +25 -0
- package/src/mappings/SafeAreaView.js +33 -0
- package/src/mappings/SafeAreaView.ts +39 -0
- package/src/mappings/ScrollView.js +37 -0
- package/src/mappings/ScrollView.ts +48 -0
- package/src/mappings/Shadow.js +95 -0
- package/src/mappings/Shadow.ts +104 -0
- package/src/mappings/Slider.js +60 -0
- package/src/mappings/Slider.ts +70 -0
- package/src/mappings/StarRating.js +43 -0
- package/src/mappings/StarRating.ts +52 -0
- package/src/mappings/Stepper.js +32 -0
- package/src/mappings/Stepper.ts +42 -0
- package/src/mappings/Surface.js +14 -0
- package/src/mappings/Surface.ts +19 -0
- package/src/mappings/Swiper.js +71 -0
- package/src/mappings/Swiper.ts +82 -0
- package/src/mappings/SwiperItem.js +9 -0
- package/src/mappings/SwiperItem.ts +13 -0
- package/src/mappings/Switch.js +81 -0
- package/src/mappings/Switch.ts +92 -0
- package/src/mappings/TabView.js +75 -0
- package/src/mappings/TabView.ts +85 -0
- package/src/mappings/TabViewItem.js +30 -0
- package/src/mappings/TabViewItem.ts +38 -0
- package/src/mappings/Table.js +150 -0
- package/src/mappings/Table.ts +170 -0
- package/src/mappings/Text.js +251 -0
- package/src/mappings/Text.ts +276 -0
- package/src/mappings/TextArea.js +283 -0
- package/src/mappings/TextArea.ts +300 -0
- package/src/mappings/TextField.js +400 -0
- package/src/mappings/TextField.ts +423 -0
- package/src/mappings/TextInput.js +402 -0
- package/src/mappings/TextInput.ts +431 -0
- package/src/mappings/ToggleButton.js +50 -0
- package/src/mappings/ToggleButton.ts +63 -0
- package/src/mappings/Touchable.js +67 -0
- package/src/mappings/Touchable.ts +80 -0
- package/src/mappings/Video.js +81 -0
- package/src/mappings/Video.ts +95 -0
- package/src/mappings/View.js +207 -0
- package/src/mappings/View.ts +229 -0
- package/src/mappings/WebView.js +88 -0
- package/src/mappings/WebView.ts +107 -0
- package/src/mappings/YoutubePlayer.js +31 -0
- package/src/mappings/YoutubePlayer.ts +37 -0
|
@@ -13,6 +13,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
var _reactNative = require("react-native");
|
|
14
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
17
|
function Center(_ref) {
|
|
17
18
|
let {
|
|
18
19
|
width = 240,
|
|
@@ -22,16 +23,15 @@ function Center(_ref) {
|
|
|
22
23
|
style,
|
|
23
24
|
...rest
|
|
24
25
|
} = _ref;
|
|
25
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
26
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
26
27
|
style: [{
|
|
27
28
|
justifyContent: "center",
|
|
28
29
|
alignItems: "center",
|
|
29
30
|
width,
|
|
30
31
|
height,
|
|
31
32
|
backgroundColor: bgColor
|
|
32
|
-
}, style]
|
|
33
|
-
|
|
34
|
-
}, children);
|
|
33
|
+
}, style]
|
|
34
|
+
}, rest), children);
|
|
35
35
|
}
|
|
36
36
|
function Circle(_ref2) {
|
|
37
37
|
let {
|
|
@@ -42,7 +42,7 @@ function Circle(_ref2) {
|
|
|
42
42
|
...rest
|
|
43
43
|
} = _ref2;
|
|
44
44
|
const borderRadius = 1000;
|
|
45
|
-
return /*#__PURE__*/React.createElement(Center, {
|
|
45
|
+
return /*#__PURE__*/React.createElement(Center, _extends({
|
|
46
46
|
width: size,
|
|
47
47
|
height: size,
|
|
48
48
|
bgColor: bgColor,
|
|
@@ -50,9 +50,8 @@ function Circle(_ref2) {
|
|
|
50
50
|
backgroundColor: bgColor,
|
|
51
51
|
borderRadius,
|
|
52
52
|
overflow: "hidden"
|
|
53
|
-
}]
|
|
54
|
-
|
|
55
|
-
}, children);
|
|
53
|
+
}]
|
|
54
|
+
}, rest), children);
|
|
56
55
|
}
|
|
57
56
|
function Square(_ref3) {
|
|
58
57
|
let {
|
|
@@ -62,13 +61,12 @@ function Square(_ref3) {
|
|
|
62
61
|
style,
|
|
63
62
|
...rest
|
|
64
63
|
} = _ref3;
|
|
65
|
-
return /*#__PURE__*/React.createElement(Center, {
|
|
64
|
+
return /*#__PURE__*/React.createElement(Center, _extends({
|
|
66
65
|
style: style,
|
|
67
66
|
width: size,
|
|
68
67
|
height: size,
|
|
69
|
-
bgColor: bgColor
|
|
70
|
-
|
|
71
|
-
}, children);
|
|
68
|
+
bgColor: bgColor
|
|
69
|
+
}, rest), children);
|
|
72
70
|
}
|
|
73
71
|
function Row(_ref4) {
|
|
74
72
|
let {
|
|
@@ -78,14 +76,15 @@ function Row(_ref4) {
|
|
|
78
76
|
style,
|
|
79
77
|
...rest
|
|
80
78
|
} = _ref4;
|
|
81
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
82
|
-
style: [style,
|
|
79
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
80
|
+
style: [style,
|
|
81
|
+
// style goes first b/c we can't override these
|
|
82
|
+
{
|
|
83
83
|
alignItems,
|
|
84
84
|
flexDirection: "row",
|
|
85
85
|
justifyContent: justifyContent
|
|
86
|
-
}]
|
|
87
|
-
|
|
88
|
-
}, children);
|
|
86
|
+
}]
|
|
87
|
+
}, rest), children);
|
|
89
88
|
}
|
|
90
89
|
function Spacer(_ref5) {
|
|
91
90
|
let {
|
|
@@ -97,36 +96,16 @@ function Spacer(_ref5) {
|
|
|
97
96
|
style,
|
|
98
97
|
...rest
|
|
99
98
|
} = _ref5;
|
|
100
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
99
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
101
100
|
style: [style, {
|
|
102
101
|
paddingRight: right,
|
|
103
102
|
paddingTop: top,
|
|
104
103
|
paddingLeft: left,
|
|
105
104
|
paddingBottom: bottom
|
|
106
|
-
}]
|
|
107
|
-
|
|
108
|
-
}, children);
|
|
105
|
+
}]
|
|
106
|
+
}, rest), children);
|
|
109
107
|
}
|
|
110
108
|
function Stack(_ref6) {
|
|
111
|
-
let {
|
|
112
|
-
children,
|
|
113
|
-
justifyContent = "flex-start",
|
|
114
|
-
alignItems = "flex-start",
|
|
115
|
-
style,
|
|
116
|
-
...rest
|
|
117
|
-
} = _ref6;
|
|
118
|
-
return (
|
|
119
|
-
/*#__PURE__*/
|
|
120
|
-
// style must go first since we don't want justifyContent, alignItems overridden
|
|
121
|
-
React.createElement(_reactNative.View, {
|
|
122
|
-
style: [style, {
|
|
123
|
-
justifyContent,
|
|
124
|
-
alignItems
|
|
125
|
-
}],
|
|
126
|
-
...rest
|
|
127
|
-
}, children)
|
|
128
|
-
);
|
|
129
|
-
}Stack(_ref6) {
|
|
130
109
|
let {
|
|
131
110
|
children,
|
|
132
111
|
justifyContent = "flex-start",
|
|
@@ -15,9 +15,7 @@ var _Touchable = _interopRequireDefault(require("../Touchable"));
|
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
18
|
const Picker = _ref => {
|
|
20
|
-
var _options$find$label, _options$find;
|
|
21
19
|
let {
|
|
22
20
|
style,
|
|
23
21
|
options,
|
|
@@ -27,6 +25,7 @@ const Picker = _ref => {
|
|
|
27
25
|
onValueChange: onValueChangeOverride = () => {},
|
|
28
26
|
...props
|
|
29
27
|
} = _ref;
|
|
28
|
+
var _a, _b;
|
|
30
29
|
const {
|
|
31
30
|
viewStyles: {
|
|
32
31
|
borderRadius,
|
|
@@ -71,7 +70,7 @@ const Picker = _ref => {
|
|
|
71
70
|
};
|
|
72
71
|
|
|
73
72
|
const stylesWithoutMargin = style && (0, _lodash.default)(_reactNative.StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
|
|
74
|
-
const selectedLabel = selectedValue && ((
|
|
73
|
+
const selectedLabel = selectedValue && ((_b = (_a = options.find(o => o.value === selectedValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : selectedValue);
|
|
75
74
|
return /*#__PURE__*/React.createElement(_Touchable.default, {
|
|
76
75
|
disabled: disabled,
|
|
77
76
|
onPress: toggleFocus,
|
|
@@ -95,6 +94,24 @@ const Picker = _ref => {
|
|
|
95
94
|
key: o.value
|
|
96
95
|
}))), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
97
96
|
pointerEvents: "none"
|
|
97
|
+
}, /*#__PURE__*/React.createElement(_TextField.default, {
|
|
98
|
+
...props,
|
|
99
|
+
value: selectedLabel,
|
|
100
|
+
placeholder: placeholder,
|
|
101
|
+
// @ts-ignore
|
|
102
|
+
ref: textField,
|
|
103
|
+
disabled: disabled,
|
|
104
|
+
// @ts-expect-error
|
|
105
|
+
style: stylesWithoutMargin
|
|
106
|
+
}))));
|
|
107
|
+
};
|
|
108
|
+
const styles = _reactNative.StyleSheet.create({
|
|
109
|
+
container: {
|
|
110
|
+
alignSelf: "stretch"
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
var _default = (0, _theming.withTheme)(Picker);
|
|
114
|
+
exports.default = _default;pointerEvents: "none"
|
|
98
115
|
}, /*#__PURE__*/React.createElement(_TextField.default, _extends({}, props, {
|
|
99
116
|
value: selectedLabel,
|
|
100
117
|
placeholder: placeholder
|
|
@@ -10,11 +10,7 @@ var _PortalManager = _interopRequireDefault(require("./PortalManager"));
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
15
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
16
13
|
const PortalContext = /*#__PURE__*/React.createContext(null);
|
|
17
|
-
|
|
18
14
|
/**
|
|
19
15
|
* Portal host renders all of its children `Portal` elements.
|
|
20
16
|
* For example, you can wrap a screen in `Portal.Host` to render items above the screen.
|
|
@@ -43,10 +39,10 @@ exports.PortalContext = PortalContext;
|
|
|
43
39
|
class PortalHost extends React.Component {
|
|
44
40
|
constructor() {
|
|
45
41
|
super(...arguments);
|
|
46
|
-
|
|
42
|
+
this.setManager = manager => {
|
|
47
43
|
this.manager = manager;
|
|
48
|
-
}
|
|
49
|
-
|
|
44
|
+
};
|
|
45
|
+
this.mount = children => {
|
|
50
46
|
const key = this.nextKey++;
|
|
51
47
|
if (this.manager) {
|
|
52
48
|
this.manager.mount(key, children);
|
|
@@ -58,8 +54,8 @@ class PortalHost extends React.Component {
|
|
|
58
54
|
});
|
|
59
55
|
}
|
|
60
56
|
return key;
|
|
61
|
-
}
|
|
62
|
-
|
|
57
|
+
};
|
|
58
|
+
this.update = (key, children) => {
|
|
63
59
|
if (this.manager) {
|
|
64
60
|
this.manager.update(key, children);
|
|
65
61
|
} else {
|
|
@@ -76,8 +72,8 @@ class PortalHost extends React.Component {
|
|
|
76
72
|
this.queue.push(op);
|
|
77
73
|
}
|
|
78
74
|
}
|
|
79
|
-
}
|
|
80
|
-
|
|
75
|
+
};
|
|
76
|
+
this.unmount = key => {
|
|
81
77
|
if (this.manager) {
|
|
82
78
|
this.manager.unmount(key);
|
|
83
79
|
} else {
|
|
@@ -86,10 +82,9 @@ class PortalHost extends React.Component {
|
|
|
86
82
|
key
|
|
87
83
|
});
|
|
88
84
|
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
_defineProperty(this, "manager", void 0);
|
|
85
|
+
};
|
|
86
|
+
this.nextKey = 0;
|
|
87
|
+
this.queue = [];
|
|
93
88
|
}
|
|
94
89
|
componentDidMount() {
|
|
95
90
|
const manager = this.manager;
|
|
@@ -128,6 +123,40 @@ class PortalHost extends React.Component {
|
|
|
128
123
|
}
|
|
129
124
|
}
|
|
130
125
|
exports.default = PortalHost;
|
|
126
|
+
PortalHost.displayName = "Portal.Host";
|
|
127
|
+
const styles = _reactNative.StyleSheet.create({
|
|
128
|
+
container: {
|
|
129
|
+
flex: 1
|
|
130
|
+
}
|
|
131
|
+
});nager.mount(action.key, action.children);
|
|
132
|
+
break;
|
|
133
|
+
case "update":
|
|
134
|
+
manager.update(action.key, action.children);
|
|
135
|
+
break;
|
|
136
|
+
case "unmount":
|
|
137
|
+
manager.unmount(action.key);
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
render() {
|
|
144
|
+
return /*#__PURE__*/React.createElement(PortalContext.Provider, {
|
|
145
|
+
value: {
|
|
146
|
+
mount: this.mount,
|
|
147
|
+
update: this.update,
|
|
148
|
+
unmount: this.unmount
|
|
149
|
+
}
|
|
150
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
151
|
+
style: styles.container,
|
|
152
|
+
collapsable: false,
|
|
153
|
+
pointerEvents: "box-none"
|
|
154
|
+
}, this.props.children), /*#__PURE__*/React.createElement(_PortalManager.default, {
|
|
155
|
+
ref: this.setManager
|
|
156
|
+
}));
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
exports.default = PortalHost;
|
|
131
160
|
_defineProperty(PortalHost, "displayName", "Portal.Host");
|
|
132
161
|
const styles = _reactNative.StyleSheet.create({
|
|
133
162
|
container: {
|
|
@@ -12,7 +12,6 @@ var _context = require("./context");
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
15
|
const RadioButton = _ref => {
|
|
17
16
|
let {
|
|
18
17
|
Icon,
|
|
@@ -39,7 +38,19 @@ const RadioButton = _ref => {
|
|
|
39
38
|
onPress === null || onPress === void 0 ? void 0 : onPress(realValue);
|
|
40
39
|
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(realValue);
|
|
41
40
|
};
|
|
42
|
-
return /*#__PURE__*/React.createElement(_IconButton.default,
|
|
41
|
+
return /*#__PURE__*/React.createElement(_IconButton.default, {
|
|
42
|
+
Icon: Icon,
|
|
43
|
+
icon: isSelected ? selectedIcon : unselectedIcon,
|
|
44
|
+
color: isSelected ? color : unselectedColor,
|
|
45
|
+
disabled: disabled,
|
|
46
|
+
onPress: handlePress,
|
|
47
|
+
size: size,
|
|
48
|
+
style: style,
|
|
49
|
+
...rest
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
var _default = RadioButton;
|
|
53
|
+
exports.default = _default;turn /*#__PURE__*/React.createElement(_IconButton.default, _extends({
|
|
43
54
|
Icon: Icon,
|
|
44
55
|
icon: isSelected ? selectedIcon : unselectedIcon,
|
|
45
56
|
color: isSelected ? color : unselectedColor,
|
|
@@ -14,8 +14,7 @@ var _utilities = require("../../utilities");
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
|
|
18
|
-
let Direction;
|
|
17
|
+
var Direction;
|
|
19
18
|
exports.Direction = Direction;
|
|
20
19
|
(function (Direction) {
|
|
21
20
|
Direction["Row"] = "row";
|
|
@@ -72,13 +71,14 @@ const RadioButtonRow = _ref => {
|
|
|
72
71
|
textStyles,
|
|
73
72
|
viewStyles
|
|
74
73
|
} = (0, _utilities.extractStyles)(style);
|
|
75
|
-
return /*#__PURE__*/React.createElement(_Touchable.default,
|
|
74
|
+
return /*#__PURE__*/React.createElement(_Touchable.default, {
|
|
76
75
|
onPress: handlePress,
|
|
77
76
|
style: [styles.mainParent, {
|
|
78
77
|
flexDirection: direction
|
|
79
78
|
}, viewStyles],
|
|
80
|
-
disabled: disabled
|
|
81
|
-
|
|
79
|
+
disabled: disabled,
|
|
80
|
+
...rest
|
|
81
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
82
82
|
style: [styles.label, {
|
|
83
83
|
alignItems: direction === Direction.Row ? "flex-start" : "flex-end"
|
|
84
84
|
}, labelContainerStyle]
|
|
@@ -116,4 +116,22 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
var _default = RadioButtonRow;
|
|
119
|
+
exports.default = _default; "center",
|
|
120
|
+
justifyContent: "space-around",
|
|
121
|
+
paddingStart: 20,
|
|
122
|
+
minHeight: 50,
|
|
123
|
+
paddingEnd: 20,
|
|
124
|
+
display: "flex",
|
|
125
|
+
..._reactNative.Platform.select({
|
|
126
|
+
web: {
|
|
127
|
+
cursor: "pointer",
|
|
128
|
+
userSelect: "none"
|
|
129
|
+
}
|
|
130
|
+
})
|
|
131
|
+
},
|
|
132
|
+
label: {
|
|
133
|
+
flex: 3
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
var _default = RadioButtonRow;
|
|
119
137
|
exports.default = _default;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.radioButtonGroupContext = exports.Direction = void 0;
|
|
7
7
|
exports.useRadioButtonGroupContext = useRadioButtonGroupContext;
|
|
8
8
|
var _react = require("react");
|
|
9
|
-
|
|
9
|
+
var Direction;
|
|
10
10
|
exports.Direction = Direction;
|
|
11
11
|
(function (Direction) {
|
|
12
12
|
Direction["Horizontal"] = "horizontal";
|
|
@@ -7,7 +7,6 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactNativeShadow = require("react-native-shadow-2");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
11
10
|
const Shadow = _ref => {
|
|
12
11
|
let {
|
|
13
12
|
offsetX = 0,
|
|
@@ -24,7 +23,7 @@ const Shadow = _ref => {
|
|
|
24
23
|
style,
|
|
25
24
|
...rest
|
|
26
25
|
} = _ref;
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement(_reactNativeShadow.Shadow,
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativeShadow.Shadow, {
|
|
28
27
|
offset: [offsetX, offsetY],
|
|
29
28
|
sides: {
|
|
30
29
|
start: showShadowSideStart,
|
|
@@ -39,6 +38,20 @@ const Shadow = _ref => {
|
|
|
39
38
|
bottomEnd: showShadowCornerBottomEnd
|
|
40
39
|
},
|
|
41
40
|
containerStyle: style,
|
|
41
|
+
paintInside: paintInside,
|
|
42
|
+
...rest
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var _default = Shadow;
|
|
46
|
+
exports.default = _default;showShadowSideBottom
|
|
47
|
+
},
|
|
48
|
+
corners: {
|
|
49
|
+
topStart: showShadowCornerTopStart,
|
|
50
|
+
topEnd: showShadowCornerTopEnd,
|
|
51
|
+
bottomStart: showShadowCornerBottomStart,
|
|
52
|
+
bottomEnd: showShadowCornerBottomEnd
|
|
53
|
+
},
|
|
54
|
+
containerStyle: style,
|
|
42
55
|
paintInside: paintInside
|
|
43
56
|
}, rest));
|
|
44
57
|
};
|
|
@@ -9,7 +9,6 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _theming = require("../theming");
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
12
|
const StarRating = _ref => {
|
|
14
13
|
let {
|
|
15
14
|
Icon,
|
|
@@ -40,9 +39,10 @@ const StarRating = _ref => {
|
|
|
40
39
|
!!onPress && onPress(r);
|
|
41
40
|
}, [onPress]);
|
|
42
41
|
const ratingRounded = Math.round(localRating * 2) / 2;
|
|
43
|
-
return /*#__PURE__*/React.createElement(_reactNative.View,
|
|
44
|
-
style: [styles.container, style]
|
|
45
|
-
|
|
42
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
43
|
+
style: [styles.container, style],
|
|
44
|
+
...rest
|
|
45
|
+
}, [...Array(maxStars)].map((_, i) => /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
46
46
|
key: i,
|
|
47
47
|
style: {
|
|
48
48
|
display: "flex"
|
|
@@ -83,4 +83,23 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
var _default = (0, _theming.withTheme)(StarRating);
|
|
86
|
+
exports.default = _default;lignItems: "center"
|
|
87
|
+
},
|
|
88
|
+
touchContainer: {
|
|
89
|
+
display: "flex",
|
|
90
|
+
flexDirection: "row",
|
|
91
|
+
position: "absolute",
|
|
92
|
+
top: 0,
|
|
93
|
+
right: 0,
|
|
94
|
+
left: 0,
|
|
95
|
+
bottom: 0,
|
|
96
|
+
zIndex: 1
|
|
97
|
+
},
|
|
98
|
+
pressable: {
|
|
99
|
+
flex: 1,
|
|
100
|
+
height: "100%",
|
|
101
|
+
width: "50%"
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
var _default = (0, _theming.withTheme)(StarRating);
|
|
86
105
|
exports.default = _default;
|
|
@@ -13,7 +13,6 @@ var _hooks = require("../hooks");
|
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
16
|
function Switch(_ref) {
|
|
18
17
|
let {
|
|
19
18
|
value,
|
|
@@ -38,7 +37,6 @@ function Switch(_ref) {
|
|
|
38
37
|
setChecked(value);
|
|
39
38
|
}
|
|
40
39
|
}, [value, checked]);
|
|
41
|
-
|
|
42
40
|
// This special logic is to handle weird APIs like Airtable that return
|
|
43
41
|
// true or undefined for a boolean
|
|
44
42
|
const previousDefaultValue = (0, _hooks.usePrevious)(defaultValue);
|
|
@@ -47,24 +45,24 @@ function Switch(_ref) {
|
|
|
47
45
|
setChecked(Boolean(defaultValue));
|
|
48
46
|
}
|
|
49
47
|
}, [defaultValue, previousDefaultValue]);
|
|
50
|
-
return /*#__PURE__*/React.createElement(_reactNative.Switch,
|
|
48
|
+
return /*#__PURE__*/React.createElement(_reactNative.Switch, {
|
|
51
49
|
value: checked,
|
|
52
50
|
disabled: disabled,
|
|
53
51
|
trackColor: {
|
|
54
52
|
false: inactiveTrackThemeColor,
|
|
55
53
|
true: activeTrackThemeColor
|
|
56
54
|
},
|
|
57
|
-
thumbColor: value ? activeThumbThemeColor : inactiveThumbThemeColor
|
|
55
|
+
thumbColor: value ? activeThumbThemeColor : inactiveThumbThemeColor,
|
|
58
56
|
// @ts-ignore react-native-web only
|
|
59
|
-
,
|
|
60
57
|
activeThumbColor: activeThumbThemeColor,
|
|
61
58
|
ios_backgroundColor: inactiveTrackThemeColor,
|
|
62
59
|
style: style,
|
|
63
60
|
onValueChange: bool => {
|
|
64
61
|
setChecked(bool);
|
|
65
62
|
onValueChange && onValueChange(bool);
|
|
66
|
-
}
|
|
67
|
-
|
|
63
|
+
},
|
|
64
|
+
...rest
|
|
65
|
+
});
|
|
68
66
|
}
|
|
69
67
|
function Row(_ref2) {
|
|
70
68
|
let {
|
|
@@ -93,7 +91,7 @@ function Row(_ref2) {
|
|
|
93
91
|
setChecked(defaultValue);
|
|
94
92
|
}
|
|
95
93
|
}, [defaultValue]);
|
|
96
|
-
return /*#__PURE__*/React.createElement(_FormRow.default,
|
|
94
|
+
return /*#__PURE__*/React.createElement(_FormRow.default, {
|
|
97
95
|
disabled: disabled,
|
|
98
96
|
onPress: () => {
|
|
99
97
|
setChecked(!checked);
|
|
@@ -101,8 +99,9 @@ function Row(_ref2) {
|
|
|
101
99
|
},
|
|
102
100
|
label: label,
|
|
103
101
|
direction: direction,
|
|
104
|
-
style: style
|
|
105
|
-
|
|
102
|
+
style: style,
|
|
103
|
+
...rest
|
|
104
|
+
}, /*#__PURE__*/React.createElement(Switch, {
|
|
106
105
|
theme: theme,
|
|
107
106
|
value: checked,
|
|
108
107
|
disabled: disabled,
|
|
@@ -116,4 +115,14 @@ function Row(_ref2) {
|
|
|
116
115
|
const SwitchRow = (0, _theming.withTheme)(Row);
|
|
117
116
|
exports.SwitchRow = SwitchRow;
|
|
118
117
|
var _default = (0, _theming.withTheme)(Switch);
|
|
118
|
+
exports.default = _default;hange: onValueChange,
|
|
119
|
+
activeTrackColor: activeTrackColor,
|
|
120
|
+
inactiveTrackColor: inactiveTrackColor,
|
|
121
|
+
activeThumbColor: activeThumbColor,
|
|
122
|
+
inactiveThumbColor: inactiveThumbColor
|
|
123
|
+
}));
|
|
124
|
+
}
|
|
125
|
+
const SwitchRow = (0, _theming.withTheme)(Row);
|
|
126
|
+
exports.SwitchRow = SwitchRow;
|
|
127
|
+
var _default = (0, _theming.withTheme)(Switch);
|
|
119
128
|
exports.default = _default;
|
|
@@ -10,7 +10,6 @@ var _theming = require("../../theming");
|
|
|
10
10
|
var _utilities = require("../../utilities");
|
|
11
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
13
|
const TabViewComponent = _ref => {
|
|
15
14
|
let {
|
|
16
15
|
Icon,
|
|
@@ -36,13 +35,11 @@ const TabViewComponent = _ref => {
|
|
|
36
35
|
textStyles,
|
|
37
36
|
viewStyles
|
|
38
37
|
} = (0, _utilities.extractStyles)(style);
|
|
39
|
-
|
|
40
38
|
//Check type of child using props
|
|
41
39
|
//Regular '.type' cannot work because Draftbit strips the type in Draft view
|
|
42
40
|
const instanceOfTabViewItemProps = object => {
|
|
43
41
|
return "title" in object;
|
|
44
42
|
};
|
|
45
|
-
|
|
46
43
|
//Populate routes and scenes based on children
|
|
47
44
|
React.useEffect(() => {
|
|
48
45
|
const newRoutes = [];
|
|
@@ -68,7 +65,8 @@ const TabViewComponent = _ref => {
|
|
|
68
65
|
}
|
|
69
66
|
};
|
|
70
67
|
const renderTabBar = props => {
|
|
71
|
-
return /*#__PURE__*/React.createElement(_reactNativeTabView.TabBar,
|
|
68
|
+
return /*#__PURE__*/React.createElement(_reactNativeTabView.TabBar, {
|
|
69
|
+
...props,
|
|
72
70
|
activeColor: activeColor || theme.colors.primary,
|
|
73
71
|
inactiveColor: inactiveColor || theme.colors.divider,
|
|
74
72
|
pressColor: pressColor || theme.colors.primary,
|
|
@@ -82,7 +80,7 @@ const TabViewComponent = _ref => {
|
|
|
82
80
|
route,
|
|
83
81
|
color
|
|
84
82
|
} = _ref2;
|
|
85
|
-
return route
|
|
83
|
+
return (route === null || route === void 0 ? void 0 : route.icon) ? /*#__PURE__*/React.createElement(Icon, {
|
|
86
84
|
name: route.icon,
|
|
87
85
|
color: color,
|
|
88
86
|
size: 16
|
|
@@ -91,9 +89,8 @@ const TabViewComponent = _ref => {
|
|
|
91
89
|
style: {
|
|
92
90
|
backgroundColor: tabsBackgroundColor || theme.colors.background
|
|
93
91
|
}
|
|
94
|
-
})
|
|
92
|
+
});
|
|
95
93
|
};
|
|
96
|
-
|
|
97
94
|
//Cannot render TabView without at least one tab
|
|
98
95
|
if (!routes.length) {
|
|
99
96
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
@@ -113,4 +110,13 @@ const TabViewComponent = _ref => {
|
|
|
113
110
|
});
|
|
114
111
|
};
|
|
115
112
|
var _default = (0, _theming.withTheme)(TabViewComponent);
|
|
113
|
+
exports.default = _default; renderScene: (0, _reactNativeTabView.SceneMap)(tabScenes),
|
|
114
|
+
renderTabBar: renderTabBar,
|
|
115
|
+
onIndexChange: indexChangeHandler,
|
|
116
|
+
tabBarPosition: tabBarPosition,
|
|
117
|
+
keyboardDismissMode: keyboardDismissMode,
|
|
118
|
+
swipeEnabled: swipeEnabled
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
var _default = (0, _theming.withTheme)(TabViewComponent);
|
|
116
122
|
exports.default = _default;
|
|
@@ -39,7 +39,6 @@ const Table = _ref => {
|
|
|
39
39
|
return object.isTableHeader;
|
|
40
40
|
}, []);
|
|
41
41
|
const isRenderItem = data && renderItem;
|
|
42
|
-
|
|
43
42
|
//Uses 'renderItem' and 'data' to create an array of children
|
|
44
43
|
const dataAsChildren = _react.default.useMemo(() => {
|
|
45
44
|
if (!isRenderItem) return [];
|
|
@@ -64,7 +63,7 @@ const Table = _ref => {
|
|
|
64
63
|
const nestedChildren = _react.default.Children.toArray(item.props.children);
|
|
65
64
|
//Header can be nested in React.Fragment when in renderItem
|
|
66
65
|
const nestedHeaders = nestedChildren.filter(child => isTableHeader(child.props));
|
|
67
|
-
if (nestedHeaders
|
|
66
|
+
if (nestedHeaders === null || nestedHeaders === void 0 ? void 0 : nestedHeaders.length) {
|
|
68
67
|
//New element excluding header children
|
|
69
68
|
return /*#__PURE__*/_react.default.cloneElement(item, {
|
|
70
69
|
children: nestedChildren.filter(child => !isTableHeader(child.props))
|
|
@@ -79,7 +78,7 @@ const Table = _ref => {
|
|
|
79
78
|
const nestedChildren = _react.default.Children.toArray(item.props.children);
|
|
80
79
|
//Header can be nested in React.Fragment when in renderItem
|
|
81
80
|
const nestedHeaders = nestedChildren.filter(child => isTableHeader(child.props));
|
|
82
|
-
if (nestedHeaders
|
|
81
|
+
if (nestedHeaders === null || nestedHeaders === void 0 ? void 0 : nestedHeaders.length) {
|
|
83
82
|
return nestedHeaders[0];
|
|
84
83
|
}
|
|
85
84
|
return item;
|
|
@@ -111,7 +110,9 @@ const Table = _ref => {
|
|
|
111
110
|
value: contextValue
|
|
112
111
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
113
112
|
style: [styles.container, borderViewStyle, style]
|
|
114
|
-
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, header), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView,
|
|
113
|
+
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, header), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
|
|
114
|
+
...rest
|
|
115
|
+
}, childrenWithoutHeader)));
|
|
115
116
|
};
|
|
116
117
|
const styles = _reactNative.StyleSheet.create({
|
|
117
118
|
container: {
|
|
@@ -119,5 +120,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
119
120
|
}
|
|
120
121
|
});
|
|
121
122
|
var _default = (0, _theming.withTheme)(Table);
|
|
122
|
-
exports.default = _default;
|
|
123
123
|
exports.default = _default;
|
|
@@ -12,4 +12,4 @@ const APPROX_STATUSBAR_HEIGHT = _reactNative.Platform.select({
|
|
|
12
12
|
android: DEFAULT_STATUSBAR_HEIGHT_EXPO,
|
|
13
13
|
ios: _reactNative.Platform.Version < 11 ? DEFAULT_STATUSBAR_HEIGHT_EXPO : 0
|
|
14
14
|
});
|
|
15
|
-
exports.APPROX_STATUSBAR_HEIGHT = APPROX_STATUSBAR_HEIGHT;
|
|
15
|
+
exports.APPROX_STATUSBAR_HEIGHT = APPROX_STATUSBAR_HEIGHT;AR_HEIGHT;
|