@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
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
createNumColumnsType,
|
|
4
|
+
createStaticBoolProp,
|
|
5
|
+
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
6
|
+
Triggers,
|
|
7
|
+
createActionProp,
|
|
8
|
+
createStaticNumberProp,
|
|
9
|
+
createColorProp,
|
|
10
|
+
} from "@draftbit/types";
|
|
11
|
+
|
|
12
|
+
export const SEED_DATA = {
|
|
13
|
+
name: "List",
|
|
14
|
+
tag: "FlatList",
|
|
15
|
+
description: "A basic List component",
|
|
16
|
+
category: COMPONENT_TYPES.data,
|
|
17
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
18
|
+
layout: {
|
|
19
|
+
flex: 1,
|
|
20
|
+
},
|
|
21
|
+
triggers: [Triggers.OnRefresh, Triggers.OnEndReached],
|
|
22
|
+
props: {
|
|
23
|
+
onRefresh: createActionProp(),
|
|
24
|
+
onEndReached: createActionProp(),
|
|
25
|
+
horizontal: createStaticBoolProp({
|
|
26
|
+
label: "Horizontal",
|
|
27
|
+
description: "Render list horizontally",
|
|
28
|
+
}),
|
|
29
|
+
inverted: createStaticBoolProp({
|
|
30
|
+
label: "Inverted",
|
|
31
|
+
description: "If true, reverses the direction.",
|
|
32
|
+
}),
|
|
33
|
+
numColumns: createNumColumnsType({
|
|
34
|
+
editable: true,
|
|
35
|
+
}),
|
|
36
|
+
initialNumToRender: createStaticNumberProp({
|
|
37
|
+
label: "Initial Num To Render",
|
|
38
|
+
description: "How many items to render in the initial batch",
|
|
39
|
+
defaultValue: null,
|
|
40
|
+
}),
|
|
41
|
+
onEndReachedThreshold: createStaticNumberProp({
|
|
42
|
+
label: "End Reached Threshold",
|
|
43
|
+
description:
|
|
44
|
+
"How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
|
|
45
|
+
defaultValue: 0.5,
|
|
46
|
+
}),
|
|
47
|
+
refreshColor: createColorProp({
|
|
48
|
+
label: "Refreshing Color",
|
|
49
|
+
description: "Color of the refresh indicator",
|
|
50
|
+
}),
|
|
51
|
+
showsHorizontalScrollIndicator: createStaticBoolProp({
|
|
52
|
+
label: "Show Horizontal Scroll Indicator",
|
|
53
|
+
description:
|
|
54
|
+
"When true, shows a horizontal scroll indicator. The default value is true.",
|
|
55
|
+
defaultValue: true,
|
|
56
|
+
}),
|
|
57
|
+
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
58
|
+
label: "Show Vertical Scroll Indicator",
|
|
59
|
+
description:
|
|
60
|
+
"When true, shows a vertical scroll indicator. The default value is true.",
|
|
61
|
+
defaultValue: true,
|
|
62
|
+
}),
|
|
63
|
+
},
|
|
64
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, GROUPS, createNumberProp, createColorProp, createIconProp, StylesPanelSections, } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Icon",
|
|
4
|
+
tag: "Icon",
|
|
5
|
+
description: "An icon",
|
|
6
|
+
category: COMPONENT_TYPES.basic,
|
|
7
|
+
stylesPanelSections: [
|
|
8
|
+
StylesPanelSections.Size,
|
|
9
|
+
StylesPanelSections.Margins,
|
|
10
|
+
StylesPanelSections.Background,
|
|
11
|
+
StylesPanelSections.Position,
|
|
12
|
+
StylesPanelSections.Effects,
|
|
13
|
+
],
|
|
14
|
+
layout: {},
|
|
15
|
+
props: {
|
|
16
|
+
name: {
|
|
17
|
+
...createIconProp(),
|
|
18
|
+
group: GROUPS.data,
|
|
19
|
+
},
|
|
20
|
+
color: createColorProp(),
|
|
21
|
+
size: createNumberProp({
|
|
22
|
+
group: GROUPS.basic,
|
|
23
|
+
label: "Size",
|
|
24
|
+
description: "Width and height of your icon",
|
|
25
|
+
defaultValue: 24,
|
|
26
|
+
min: 1,
|
|
27
|
+
max: 128,
|
|
28
|
+
step: 1,
|
|
29
|
+
precision: 0,
|
|
30
|
+
}),
|
|
31
|
+
},
|
|
32
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
GROUPS,
|
|
4
|
+
createNumberProp,
|
|
5
|
+
createColorProp,
|
|
6
|
+
createIconProp,
|
|
7
|
+
StylesPanelSections,
|
|
8
|
+
} from "@draftbit/types";
|
|
9
|
+
|
|
10
|
+
export const SEED_DATA = {
|
|
11
|
+
name: "Icon",
|
|
12
|
+
tag: "Icon",
|
|
13
|
+
description: "An icon",
|
|
14
|
+
category: COMPONENT_TYPES.basic,
|
|
15
|
+
stylesPanelSections: [
|
|
16
|
+
StylesPanelSections.Size,
|
|
17
|
+
StylesPanelSections.Margins,
|
|
18
|
+
StylesPanelSections.Background,
|
|
19
|
+
StylesPanelSections.Position,
|
|
20
|
+
StylesPanelSections.Effects,
|
|
21
|
+
],
|
|
22
|
+
layout: {},
|
|
23
|
+
props: {
|
|
24
|
+
name: {
|
|
25
|
+
...createIconProp(),
|
|
26
|
+
group: GROUPS.data,
|
|
27
|
+
},
|
|
28
|
+
color: createColorProp(),
|
|
29
|
+
size: createNumberProp({
|
|
30
|
+
group: GROUPS.basic,
|
|
31
|
+
label: "Size",
|
|
32
|
+
description: "Width and height of your icon",
|
|
33
|
+
defaultValue: 24,
|
|
34
|
+
min: 1,
|
|
35
|
+
max: 128,
|
|
36
|
+
step: 1,
|
|
37
|
+
precision: 0,
|
|
38
|
+
}),
|
|
39
|
+
},
|
|
40
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, GROUPS, createIconProp, createColorProp, createNumberProp, createActionProp, Triggers, StylesPanelSections, createDisabledProp, } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Icon Button",
|
|
4
|
+
tag: "IconButton",
|
|
5
|
+
category: COMPONENT_TYPES.button,
|
|
6
|
+
layout: {},
|
|
7
|
+
triggers: [Triggers.OnPress, Triggers.OnLongPress],
|
|
8
|
+
stylesPanelSections: [
|
|
9
|
+
StylesPanelSections.Margins,
|
|
10
|
+
StylesPanelSections.Effects,
|
|
11
|
+
StylesPanelSections.Position,
|
|
12
|
+
],
|
|
13
|
+
props: {
|
|
14
|
+
onPress: createActionProp(),
|
|
15
|
+
onLongPress: createActionProp(),
|
|
16
|
+
disabled: createDisabledProp(),
|
|
17
|
+
icon: createIconProp(),
|
|
18
|
+
color: createColorProp({
|
|
19
|
+
label: "Color",
|
|
20
|
+
group: GROUPS.basic,
|
|
21
|
+
}),
|
|
22
|
+
size: createNumberProp({
|
|
23
|
+
group: GROUPS.basic,
|
|
24
|
+
label: "Size",
|
|
25
|
+
description: "Width and height of your icon",
|
|
26
|
+
defaultValue: 32,
|
|
27
|
+
min: 16,
|
|
28
|
+
max: 256,
|
|
29
|
+
step: 1,
|
|
30
|
+
precision: 0,
|
|
31
|
+
}),
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
GROUPS,
|
|
4
|
+
createIconProp,
|
|
5
|
+
createColorProp,
|
|
6
|
+
createNumberProp,
|
|
7
|
+
createActionProp,
|
|
8
|
+
Triggers,
|
|
9
|
+
StylesPanelSections,
|
|
10
|
+
createDisabledProp,
|
|
11
|
+
} from "@draftbit/types";
|
|
12
|
+
|
|
13
|
+
export const SEED_DATA = {
|
|
14
|
+
name: "Icon Button",
|
|
15
|
+
tag: "IconButton",
|
|
16
|
+
category: COMPONENT_TYPES.button,
|
|
17
|
+
layout: {},
|
|
18
|
+
triggers: [Triggers.OnPress, Triggers.OnLongPress],
|
|
19
|
+
stylesPanelSections: [
|
|
20
|
+
StylesPanelSections.Margins,
|
|
21
|
+
StylesPanelSections.Effects,
|
|
22
|
+
StylesPanelSections.Position,
|
|
23
|
+
],
|
|
24
|
+
props: {
|
|
25
|
+
onPress: createActionProp(),
|
|
26
|
+
onLongPress: createActionProp(),
|
|
27
|
+
disabled: createDisabledProp(),
|
|
28
|
+
icon: createIconProp(),
|
|
29
|
+
color: createColorProp({
|
|
30
|
+
label: "Color",
|
|
31
|
+
group: GROUPS.basic,
|
|
32
|
+
}),
|
|
33
|
+
size: createNumberProp({
|
|
34
|
+
group: GROUPS.basic,
|
|
35
|
+
label: "Size",
|
|
36
|
+
description: "Width and height of your icon",
|
|
37
|
+
defaultValue: 32,
|
|
38
|
+
min: 16,
|
|
39
|
+
max: 256,
|
|
40
|
+
step: 1,
|
|
41
|
+
precision: 0,
|
|
42
|
+
}),
|
|
43
|
+
},
|
|
44
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createImageProp, createResizeModeProp, StylesPanelSections, FORM_TYPES, PROP_TYPES, GROUPS, } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Image",
|
|
4
|
+
tag: "Image",
|
|
5
|
+
description: "A basic Image Component",
|
|
6
|
+
category: COMPONENT_TYPES.media,
|
|
7
|
+
stylesPanelSections: [
|
|
8
|
+
StylesPanelSections.Size,
|
|
9
|
+
StylesPanelSections.Margins,
|
|
10
|
+
StylesPanelSections.Position,
|
|
11
|
+
StylesPanelSections.Effects,
|
|
12
|
+
StylesPanelSections.Borders,
|
|
13
|
+
],
|
|
14
|
+
layout: {
|
|
15
|
+
width: 100,
|
|
16
|
+
height: 100,
|
|
17
|
+
},
|
|
18
|
+
props: {
|
|
19
|
+
source: createImageProp(),
|
|
20
|
+
resizeMode: createResizeModeProp(),
|
|
21
|
+
blurRadius: {
|
|
22
|
+
group: GROUPS.basic,
|
|
23
|
+
name: "blurRadius",
|
|
24
|
+
label: "Blur Radius",
|
|
25
|
+
defaultValue: null,
|
|
26
|
+
description: "The blur radius of the blur filter added to the image.",
|
|
27
|
+
editable: true,
|
|
28
|
+
required: false,
|
|
29
|
+
formType: FORM_TYPES.number,
|
|
30
|
+
propType: PROP_TYPES.NUMBER,
|
|
31
|
+
step: 5,
|
|
32
|
+
precision: 1,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
createImageProp,
|
|
4
|
+
createResizeModeProp,
|
|
5
|
+
StylesPanelSections,
|
|
6
|
+
FORM_TYPES,
|
|
7
|
+
PROP_TYPES,
|
|
8
|
+
GROUPS,
|
|
9
|
+
} from "@draftbit/types";
|
|
10
|
+
|
|
11
|
+
export const SEED_DATA = {
|
|
12
|
+
name: "Image",
|
|
13
|
+
tag: "Image",
|
|
14
|
+
description: "A basic Image Component",
|
|
15
|
+
category: COMPONENT_TYPES.media,
|
|
16
|
+
stylesPanelSections: [
|
|
17
|
+
StylesPanelSections.Size,
|
|
18
|
+
StylesPanelSections.Margins,
|
|
19
|
+
StylesPanelSections.Position,
|
|
20
|
+
StylesPanelSections.Effects,
|
|
21
|
+
StylesPanelSections.Borders,
|
|
22
|
+
],
|
|
23
|
+
layout: {
|
|
24
|
+
width: 100,
|
|
25
|
+
height: 100,
|
|
26
|
+
},
|
|
27
|
+
props: {
|
|
28
|
+
source: createImageProp(),
|
|
29
|
+
resizeMode: createResizeModeProp(),
|
|
30
|
+
blurRadius: {
|
|
31
|
+
group: GROUPS.basic,
|
|
32
|
+
name: "blurRadius",
|
|
33
|
+
label: "Blur Radius",
|
|
34
|
+
defaultValue: null,
|
|
35
|
+
description: "The blur radius of the blur filter added to the image.",
|
|
36
|
+
editable: true,
|
|
37
|
+
required: false,
|
|
38
|
+
formType: FORM_TYPES.number,
|
|
39
|
+
propType: PROP_TYPES.NUMBER,
|
|
40
|
+
step: 5,
|
|
41
|
+
precision: 1,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createImageProp, createResizeModeProp, createTextEnumProp, createColorProp, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Image Background",
|
|
4
|
+
tag: "ImageBackground",
|
|
5
|
+
doc_link: "https://docs.expo.io/versions/latest/react-native/imagebackground/",
|
|
6
|
+
code_link: "https://github.com/facebook/react-native/blob/master/Libraries/Image/ImageBackground.js",
|
|
7
|
+
description: "A very simple drop-in replacement for Image that allows you to use an Image as a background.",
|
|
8
|
+
category: COMPONENT_TYPES.media,
|
|
9
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
10
|
+
layout: {
|
|
11
|
+
width: "100%",
|
|
12
|
+
height: "100%",
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
source: createImageProp({
|
|
16
|
+
defaultValue: "https://static.draftbit.com/images/placeholder-image-background.png",
|
|
17
|
+
}),
|
|
18
|
+
resizeMode: createResizeModeProp(),
|
|
19
|
+
backgroundColor: createColorProp({
|
|
20
|
+
label: "Background Color",
|
|
21
|
+
description: "If no image is chosen render a colored background.",
|
|
22
|
+
}),
|
|
23
|
+
backfaceVisibility: createTextEnumProp({
|
|
24
|
+
label: "Backface Visibility",
|
|
25
|
+
description: "When animating a card, show the back face of it",
|
|
26
|
+
options: ["visible", "hidden"],
|
|
27
|
+
}),
|
|
28
|
+
},
|
|
29
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
createImageProp,
|
|
4
|
+
createResizeModeProp,
|
|
5
|
+
createTextEnumProp,
|
|
6
|
+
createColorProp,
|
|
7
|
+
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
|
+
} from "@draftbit/types";
|
|
9
|
+
|
|
10
|
+
export const SEED_DATA = {
|
|
11
|
+
name: "Image Background",
|
|
12
|
+
tag: "ImageBackground",
|
|
13
|
+
doc_link:
|
|
14
|
+
"https://docs.expo.io/versions/latest/react-native/imagebackground/",
|
|
15
|
+
code_link:
|
|
16
|
+
"https://github.com/facebook/react-native/blob/master/Libraries/Image/ImageBackground.js",
|
|
17
|
+
description:
|
|
18
|
+
"A very simple drop-in replacement for Image that allows you to use an Image as a background.",
|
|
19
|
+
category: COMPONENT_TYPES.media,
|
|
20
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
21
|
+
layout: {
|
|
22
|
+
width: "100%",
|
|
23
|
+
height: "100%",
|
|
24
|
+
},
|
|
25
|
+
props: {
|
|
26
|
+
source: createImageProp({
|
|
27
|
+
defaultValue:
|
|
28
|
+
"https://static.draftbit.com/images/placeholder-image-background.png",
|
|
29
|
+
}),
|
|
30
|
+
resizeMode: createResizeModeProp(),
|
|
31
|
+
backgroundColor: createColorProp({
|
|
32
|
+
label: "Background Color",
|
|
33
|
+
description: "If no image is chosen render a colored background.",
|
|
34
|
+
}),
|
|
35
|
+
backfaceVisibility: createTextEnumProp({
|
|
36
|
+
label: "Backface Visibility",
|
|
37
|
+
description: "When animating a card, show the back face of it",
|
|
38
|
+
options: ["visible", "hidden"],
|
|
39
|
+
}),
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, GROUPS, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Keyboard Avoiding View",
|
|
4
|
+
tag: "KeyboardAvoidingView",
|
|
5
|
+
description: "View that moves out of the way of the virtual keyboard. ",
|
|
6
|
+
category: COMPONENT_TYPES.view,
|
|
7
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
|
+
props: {
|
|
9
|
+
enabled: {
|
|
10
|
+
label: "Enabled",
|
|
11
|
+
description: "Enable the keyboard avoiding view",
|
|
12
|
+
editable: true,
|
|
13
|
+
required: true,
|
|
14
|
+
defaultValue: true,
|
|
15
|
+
formType: FORM_TYPES.boolean,
|
|
16
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
17
|
+
group: GROUPS.basic,
|
|
18
|
+
},
|
|
19
|
+
behavior: {
|
|
20
|
+
label: "Resizing Behavior",
|
|
21
|
+
description: "The behavior for how the keyboard resizing interacts with the rest of the screen. (Default: padding).",
|
|
22
|
+
editable: true,
|
|
23
|
+
required: true,
|
|
24
|
+
defaultValue: "padding",
|
|
25
|
+
options: ["padding", "position", "height"],
|
|
26
|
+
formType: FORM_TYPES.flatArray,
|
|
27
|
+
propType: PROP_TYPES.STRING,
|
|
28
|
+
group: GROUPS.basic,
|
|
29
|
+
},
|
|
30
|
+
keyboardVerticalOffset: {
|
|
31
|
+
label: "Keyboard Vertical Offset",
|
|
32
|
+
description: "The distance between the bottom of the view and the keyboard",
|
|
33
|
+
editable: true,
|
|
34
|
+
required: false,
|
|
35
|
+
defaultValue: 0,
|
|
36
|
+
formType: FORM_TYPES.number,
|
|
37
|
+
propType: PROP_TYPES.NUMBER,
|
|
38
|
+
group: GROUPS.basic,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
FORM_TYPES,
|
|
4
|
+
PROP_TYPES,
|
|
5
|
+
GROUPS,
|
|
6
|
+
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
7
|
+
} from "@draftbit/types";
|
|
8
|
+
|
|
9
|
+
export const SEED_DATA = {
|
|
10
|
+
name: "Keyboard Avoiding View",
|
|
11
|
+
tag: "KeyboardAvoidingView",
|
|
12
|
+
description: "View that moves out of the way of the virtual keyboard. ",
|
|
13
|
+
category: COMPONENT_TYPES.view,
|
|
14
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
15
|
+
props: {
|
|
16
|
+
enabled: {
|
|
17
|
+
label: "Enabled",
|
|
18
|
+
description: "Enable the keyboard avoiding view",
|
|
19
|
+
editable: true,
|
|
20
|
+
required: true,
|
|
21
|
+
defaultValue: true,
|
|
22
|
+
formType: FORM_TYPES.boolean,
|
|
23
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
24
|
+
group: GROUPS.basic,
|
|
25
|
+
},
|
|
26
|
+
behavior: {
|
|
27
|
+
label: "Resizing Behavior",
|
|
28
|
+
description:
|
|
29
|
+
"The behavior for how the keyboard resizing interacts with the rest of the screen. (Default: padding).",
|
|
30
|
+
editable: true,
|
|
31
|
+
required: true,
|
|
32
|
+
defaultValue: "padding",
|
|
33
|
+
options: ["padding", "position", "height"],
|
|
34
|
+
formType: FORM_TYPES.flatArray,
|
|
35
|
+
propType: PROP_TYPES.STRING,
|
|
36
|
+
group: GROUPS.basic,
|
|
37
|
+
},
|
|
38
|
+
keyboardVerticalOffset: {
|
|
39
|
+
label: "Keyboard Vertical Offset",
|
|
40
|
+
description:
|
|
41
|
+
"The distance between the bottom of the view and the keyboard",
|
|
42
|
+
editable: true,
|
|
43
|
+
required: false,
|
|
44
|
+
defaultValue: 0,
|
|
45
|
+
formType: FORM_TYPES.number,
|
|
46
|
+
propType: PROP_TYPES.NUMBER,
|
|
47
|
+
group: GROUPS.basic,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createStaticBoolProp, createStaticNumberProp, createTextEnumProp, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Keyboard Aware Scroll View",
|
|
4
|
+
tag: "KeyboardAwareScrollView",
|
|
5
|
+
description: "View that moves pushes the content when virtual keyboard is open.",
|
|
6
|
+
category: COMPONENT_TYPES.view,
|
|
7
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
|
+
layout: {},
|
|
9
|
+
props: {
|
|
10
|
+
viewIsInsideTabBar: createStaticBoolProp({
|
|
11
|
+
label: "View Is Inside TabBar",
|
|
12
|
+
description: "Adds an extra offset that represents the TabBarIOS height.",
|
|
13
|
+
}),
|
|
14
|
+
enableAutomaticScroll: createStaticBoolProp({
|
|
15
|
+
label: "Enable Automatic Scroll",
|
|
16
|
+
description: "When focus in TextInput will scroll the position, default is enabled",
|
|
17
|
+
}),
|
|
18
|
+
extraHeight: createStaticNumberProp({
|
|
19
|
+
label: "Extra Height",
|
|
20
|
+
description: "Adds an extra offset when focusing the TextInputs",
|
|
21
|
+
}),
|
|
22
|
+
extraScrollHeight: createStaticNumberProp({
|
|
23
|
+
label: "Extra Scroll Height",
|
|
24
|
+
description: "Adds an extra offset to the keyboard. Useful if you want to stick elements above the keyboard",
|
|
25
|
+
}),
|
|
26
|
+
enableResetScrollToCoords: createStaticBoolProp({
|
|
27
|
+
label: "Enable Reset Scroll To Coordinates",
|
|
28
|
+
description: "Lets the user enable or disable automatic resetScrollToCoords",
|
|
29
|
+
}),
|
|
30
|
+
keyboardOpeningTime: createStaticNumberProp({
|
|
31
|
+
label: "Opening Time",
|
|
32
|
+
description: "Sets the delay time before scrolling to new position after keyboard opening, default is 250",
|
|
33
|
+
}),
|
|
34
|
+
enableOnAndroid: createStaticBoolProp({
|
|
35
|
+
label: "Enable On Android",
|
|
36
|
+
description: "Enable Android Support",
|
|
37
|
+
}),
|
|
38
|
+
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
39
|
+
label: "Shows Vertical Scroll Indicator",
|
|
40
|
+
description: "Show or hide the vertical scroll indicator",
|
|
41
|
+
defaultValue: true,
|
|
42
|
+
}),
|
|
43
|
+
keyboardShouldPersistTaps: createTextEnumProp({
|
|
44
|
+
label: "Allow Touch Events",
|
|
45
|
+
description: "Allows touch events on visible components to be processed while the keyboard is open",
|
|
46
|
+
defaultValue: "never",
|
|
47
|
+
options: ["never", "always"],
|
|
48
|
+
}),
|
|
49
|
+
},
|
|
50
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
createStaticBoolProp,
|
|
4
|
+
createStaticNumberProp,
|
|
5
|
+
createTextEnumProp,
|
|
6
|
+
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
7
|
+
} from "@draftbit/types";
|
|
8
|
+
|
|
9
|
+
export const SEED_DATA = {
|
|
10
|
+
name: "Keyboard Aware Scroll View",
|
|
11
|
+
tag: "KeyboardAwareScrollView",
|
|
12
|
+
description:
|
|
13
|
+
"View that moves pushes the content when virtual keyboard is open.",
|
|
14
|
+
category: COMPONENT_TYPES.view,
|
|
15
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
16
|
+
layout: {},
|
|
17
|
+
props: {
|
|
18
|
+
viewIsInsideTabBar: createStaticBoolProp({
|
|
19
|
+
label: "View Is Inside TabBar",
|
|
20
|
+
description: "Adds an extra offset that represents the TabBarIOS height.",
|
|
21
|
+
}),
|
|
22
|
+
enableAutomaticScroll: createStaticBoolProp({
|
|
23
|
+
label: "Enable Automatic Scroll",
|
|
24
|
+
description:
|
|
25
|
+
"When focus in TextInput will scroll the position, default is enabled",
|
|
26
|
+
}),
|
|
27
|
+
extraHeight: createStaticNumberProp({
|
|
28
|
+
label: "Extra Height",
|
|
29
|
+
description: "Adds an extra offset when focusing the TextInputs",
|
|
30
|
+
}),
|
|
31
|
+
extraScrollHeight: createStaticNumberProp({
|
|
32
|
+
label: "Extra Scroll Height",
|
|
33
|
+
description:
|
|
34
|
+
"Adds an extra offset to the keyboard. Useful if you want to stick elements above the keyboard",
|
|
35
|
+
}),
|
|
36
|
+
enableResetScrollToCoords: createStaticBoolProp({
|
|
37
|
+
label: "Enable Reset Scroll To Coordinates",
|
|
38
|
+
description:
|
|
39
|
+
"Lets the user enable or disable automatic resetScrollToCoords",
|
|
40
|
+
}),
|
|
41
|
+
keyboardOpeningTime: createStaticNumberProp({
|
|
42
|
+
label: "Opening Time",
|
|
43
|
+
description:
|
|
44
|
+
"Sets the delay time before scrolling to new position after keyboard opening, default is 250",
|
|
45
|
+
}),
|
|
46
|
+
enableOnAndroid: createStaticBoolProp({
|
|
47
|
+
label: "Enable On Android",
|
|
48
|
+
description: "Enable Android Support",
|
|
49
|
+
}),
|
|
50
|
+
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
51
|
+
label: "Shows Vertical Scroll Indicator",
|
|
52
|
+
description: "Show or hide the vertical scroll indicator",
|
|
53
|
+
defaultValue: true,
|
|
54
|
+
}),
|
|
55
|
+
keyboardShouldPersistTaps: createTextEnumProp({
|
|
56
|
+
label: "Allow Touch Events",
|
|
57
|
+
description:
|
|
58
|
+
"Allows touch events on visible components to be processed while the keyboard is open",
|
|
59
|
+
defaultValue: "never",
|
|
60
|
+
options: ["never", "always"],
|
|
61
|
+
}),
|
|
62
|
+
},
|
|
63
|
+
};
|