@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,402 @@
|
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, StylesPanelSections, createDisabledProp, } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA_PROPS = {
|
|
3
|
+
style: {
|
|
4
|
+
group: GROUPS.basic,
|
|
5
|
+
label: "Style",
|
|
6
|
+
description: "Text Style",
|
|
7
|
+
editable: false,
|
|
8
|
+
required: false,
|
|
9
|
+
formType: FORM_TYPES.typeStyle,
|
|
10
|
+
propType: PROP_TYPES.THEME,
|
|
11
|
+
defaultValue: null,
|
|
12
|
+
},
|
|
13
|
+
clearButtonMode: {
|
|
14
|
+
group: GROUPS.basic,
|
|
15
|
+
label: "Clear Button Mode",
|
|
16
|
+
description: "Enables a button within the textInput to clear the data entered",
|
|
17
|
+
editable: true,
|
|
18
|
+
required: false,
|
|
19
|
+
options: ["never", "while-editing", "unless-editing", "always"],
|
|
20
|
+
defaultValue: null,
|
|
21
|
+
formType: FORM_TYPES.flatArray,
|
|
22
|
+
propType: PROP_TYPES.STRING,
|
|
23
|
+
},
|
|
24
|
+
clearTextOnFocus: {
|
|
25
|
+
group: GROUPS.basic,
|
|
26
|
+
label: "Clear Text on Focus",
|
|
27
|
+
description: "If true, clears the text field automatically when its focused.",
|
|
28
|
+
editable: true,
|
|
29
|
+
required: false,
|
|
30
|
+
defaultValue: null,
|
|
31
|
+
formType: FORM_TYPES.boolean,
|
|
32
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
33
|
+
},
|
|
34
|
+
enablesReturnKeyAutomatically: {
|
|
35
|
+
group: GROUPS.basic,
|
|
36
|
+
label: "Enables Return Key Automatically",
|
|
37
|
+
description: "If true, the keyboard disables the return key when there is no text and automatically enables it when there is (Default: false)",
|
|
38
|
+
editable: true,
|
|
39
|
+
required: false,
|
|
40
|
+
defaultValue: null,
|
|
41
|
+
formType: FORM_TYPES.boolean,
|
|
42
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
43
|
+
},
|
|
44
|
+
underlineColorAndroid: {
|
|
45
|
+
group: GROUPS.basic,
|
|
46
|
+
label: "Underline color",
|
|
47
|
+
description: "(Android Only) The color of the underline(the line underneath the text when finished typing.",
|
|
48
|
+
editable: true,
|
|
49
|
+
required: false,
|
|
50
|
+
defaultValue: null,
|
|
51
|
+
formType: FORM_TYPES.color,
|
|
52
|
+
propType: PROP_TYPES.THEME,
|
|
53
|
+
},
|
|
54
|
+
fieldName: {
|
|
55
|
+
...FIELD_NAME,
|
|
56
|
+
defaultValue: "textInputValue",
|
|
57
|
+
handlerPropName: "onChangeText",
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
export const SEED_DATA = [
|
|
61
|
+
{
|
|
62
|
+
name: "Text Input",
|
|
63
|
+
tag: "TextInput",
|
|
64
|
+
description: "An input field that allows users to type in data.",
|
|
65
|
+
category: COMPONENT_TYPES.input,
|
|
66
|
+
stylesPanelSections: [
|
|
67
|
+
StylesPanelSections.Typography,
|
|
68
|
+
StylesPanelSections.Background,
|
|
69
|
+
StylesPanelSections.Size,
|
|
70
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
71
|
+
StylesPanelSections.Position,
|
|
72
|
+
StylesPanelSections.Borders,
|
|
73
|
+
StylesPanelSections.Effects,
|
|
74
|
+
],
|
|
75
|
+
preview_image_url: "https://res.cloudinary.com/altos/image/upload/draftbit/Jigsaw/TextInput.png",
|
|
76
|
+
supports_list_render: false,
|
|
77
|
+
layout: {
|
|
78
|
+
borderLeftWidth: 1,
|
|
79
|
+
borderRightWidth: 1,
|
|
80
|
+
borderTopWidth: 1,
|
|
81
|
+
borderBottomWidth: 1,
|
|
82
|
+
borderColor: "divider",
|
|
83
|
+
paddingLeft: 8,
|
|
84
|
+
paddingRight: 8,
|
|
85
|
+
paddingTop: 8,
|
|
86
|
+
paddingBottom: 8,
|
|
87
|
+
borderRadius: 8,
|
|
88
|
+
},
|
|
89
|
+
triggers: [Triggers.OnChangeText],
|
|
90
|
+
props: {
|
|
91
|
+
allowFontScaling: {
|
|
92
|
+
group: GROUPS.advanced,
|
|
93
|
+
label: "Allow Font Scaling",
|
|
94
|
+
description: "Whether fonts should scale to respect Text Size in the user's accessibility settings. (Default: true)",
|
|
95
|
+
editable: true,
|
|
96
|
+
required: false,
|
|
97
|
+
defaultValue: null,
|
|
98
|
+
formType: FORM_TYPES.boolean,
|
|
99
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
100
|
+
},
|
|
101
|
+
autoCapitalize: {
|
|
102
|
+
group: GROUPS.advanced,
|
|
103
|
+
label: "Auto Capitalize",
|
|
104
|
+
description: "Can automatically capitalize sentences, words, and characters (Default: none).",
|
|
105
|
+
editable: true,
|
|
106
|
+
required: false,
|
|
107
|
+
defaultValue: "none",
|
|
108
|
+
options: ["none", "sentences", "words", "characters"],
|
|
109
|
+
formType: FORM_TYPES.flatArray,
|
|
110
|
+
propType: PROP_TYPES.STRING,
|
|
111
|
+
},
|
|
112
|
+
autoCorrect: {
|
|
113
|
+
group: GROUPS.advanced,
|
|
114
|
+
label: "Auto Correct",
|
|
115
|
+
description: "Enables auto correction",
|
|
116
|
+
editable: true,
|
|
117
|
+
required: false,
|
|
118
|
+
defaultValue: null,
|
|
119
|
+
formType: FORM_TYPES.boolean,
|
|
120
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
121
|
+
},
|
|
122
|
+
autoFocus: {
|
|
123
|
+
group: GROUPS.basic,
|
|
124
|
+
label: "Auto Focus",
|
|
125
|
+
description: "Focuses the input on load in and brings up the keyboard",
|
|
126
|
+
editable: true,
|
|
127
|
+
required: false,
|
|
128
|
+
defaultValue: null,
|
|
129
|
+
formType: FORM_TYPES.boolean,
|
|
130
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
131
|
+
},
|
|
132
|
+
caretHidden: {
|
|
133
|
+
group: GROUPS.advanced,
|
|
134
|
+
label: "Hide Caret",
|
|
135
|
+
description: "Hides the caret(the line small line underneath each showing where you're editing/typing",
|
|
136
|
+
editable: true,
|
|
137
|
+
required: false,
|
|
138
|
+
defaultValue: null,
|
|
139
|
+
formType: FORM_TYPES.boolean,
|
|
140
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
141
|
+
},
|
|
142
|
+
contextMenuHidden: {
|
|
143
|
+
group: GROUPS.advanced,
|
|
144
|
+
label: "Hide Context Menu",
|
|
145
|
+
description: "Hides the system context menu (Default: false)",
|
|
146
|
+
editable: true,
|
|
147
|
+
required: false,
|
|
148
|
+
defaultValue: null,
|
|
149
|
+
formType: FORM_TYPES.boolean,
|
|
150
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
151
|
+
},
|
|
152
|
+
editable: {
|
|
153
|
+
group: GROUPS.data,
|
|
154
|
+
label: "Editable?",
|
|
155
|
+
description: "If false, the text is not editable",
|
|
156
|
+
editable: true,
|
|
157
|
+
required: false,
|
|
158
|
+
defaultValue: null,
|
|
159
|
+
formType: FORM_TYPES.boolean,
|
|
160
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
161
|
+
},
|
|
162
|
+
keyboardAppearance: {
|
|
163
|
+
group: GROUPS.advanced,
|
|
164
|
+
label: "Keyboard Appearance",
|
|
165
|
+
description: "Determines the color of the keyboard.(iOS Only)",
|
|
166
|
+
editable: true,
|
|
167
|
+
required: false,
|
|
168
|
+
defaultValue: null,
|
|
169
|
+
options: ["default", "light", "dark"],
|
|
170
|
+
formType: FORM_TYPES.flatArray,
|
|
171
|
+
propType: PROP_TYPES.STRING,
|
|
172
|
+
},
|
|
173
|
+
keyboardType: {
|
|
174
|
+
group: GROUPS.advanced,
|
|
175
|
+
label: "Keyboard Type",
|
|
176
|
+
description: "Determines what keyboard is given to the user.",
|
|
177
|
+
editable: true,
|
|
178
|
+
required: false,
|
|
179
|
+
defaultValue: null,
|
|
180
|
+
options: [
|
|
181
|
+
"default",
|
|
182
|
+
"email-address",
|
|
183
|
+
"numeric",
|
|
184
|
+
"phone-pad",
|
|
185
|
+
"ascii-capable",
|
|
186
|
+
"numbers-and-punctuation",
|
|
187
|
+
"url",
|
|
188
|
+
"number-pad",
|
|
189
|
+
"name-phone-pad",
|
|
190
|
+
"decimal-pad",
|
|
191
|
+
"twitter",
|
|
192
|
+
"web-search",
|
|
193
|
+
"visible-password",
|
|
194
|
+
],
|
|
195
|
+
formType: FORM_TYPES.flatArray,
|
|
196
|
+
propType: PROP_TYPES.STRING,
|
|
197
|
+
},
|
|
198
|
+
maxLength: {
|
|
199
|
+
group: GROUPS.basic,
|
|
200
|
+
label: "Max Length",
|
|
201
|
+
description: "Limits the input to a set number of characters.",
|
|
202
|
+
editable: true,
|
|
203
|
+
required: false,
|
|
204
|
+
defaultValue: null,
|
|
205
|
+
min: 0,
|
|
206
|
+
step: 1,
|
|
207
|
+
precision: 0,
|
|
208
|
+
formType: FORM_TYPES.number,
|
|
209
|
+
propType: PROP_TYPES.NUMBER,
|
|
210
|
+
},
|
|
211
|
+
placeholder: {
|
|
212
|
+
group: GROUPS.data,
|
|
213
|
+
label: "Placeholder Text",
|
|
214
|
+
description: "The text that is shown on load when no value is available.",
|
|
215
|
+
editable: true,
|
|
216
|
+
required: false,
|
|
217
|
+
defaultValue: "Enter a value...",
|
|
218
|
+
formType: FORM_TYPES.string,
|
|
219
|
+
propType: PROP_TYPES.STRING,
|
|
220
|
+
},
|
|
221
|
+
placeholderTextColor: {
|
|
222
|
+
group: GROUPS.basic,
|
|
223
|
+
label: "Placeholder Text Color",
|
|
224
|
+
description: "The color of the placeholder text.",
|
|
225
|
+
editable: true,
|
|
226
|
+
required: false,
|
|
227
|
+
defaultValue: null,
|
|
228
|
+
formType: FORM_TYPES.color,
|
|
229
|
+
propType: PROP_TYPES.STRING,
|
|
230
|
+
},
|
|
231
|
+
returnKeyLabel: {
|
|
232
|
+
group: GROUPS.advanced,
|
|
233
|
+
label: "Return Key Label",
|
|
234
|
+
description: "(Android Only) Sets the label on the return key (use this instead of rewturnKeyType)",
|
|
235
|
+
editable: true,
|
|
236
|
+
required: false,
|
|
237
|
+
defaultValue: null,
|
|
238
|
+
formType: FORM_TYPES.string,
|
|
239
|
+
propType: PROP_TYPES.STRING,
|
|
240
|
+
},
|
|
241
|
+
blurOnSubmit: {
|
|
242
|
+
group: GROUPS.advanced,
|
|
243
|
+
label: "Blur On Submit",
|
|
244
|
+
description: "If true, the text field will blur when submitted. ",
|
|
245
|
+
editable: true,
|
|
246
|
+
required: false,
|
|
247
|
+
defaultValue: null,
|
|
248
|
+
formType: FORM_TYPES.boolean,
|
|
249
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
250
|
+
},
|
|
251
|
+
returnKeyType: {
|
|
252
|
+
group: GROUPS.advanced,
|
|
253
|
+
label: "Return Key Type",
|
|
254
|
+
description: "Determines how the return key should look like",
|
|
255
|
+
editable: true,
|
|
256
|
+
required: false,
|
|
257
|
+
defaultValue: null,
|
|
258
|
+
options: [
|
|
259
|
+
"done",
|
|
260
|
+
"go",
|
|
261
|
+
"next",
|
|
262
|
+
"search",
|
|
263
|
+
"send",
|
|
264
|
+
"none",
|
|
265
|
+
"previous",
|
|
266
|
+
"default",
|
|
267
|
+
"emergency-call",
|
|
268
|
+
"google",
|
|
269
|
+
"join",
|
|
270
|
+
"route",
|
|
271
|
+
"yahoo",
|
|
272
|
+
],
|
|
273
|
+
formType: FORM_TYPES.flatArray,
|
|
274
|
+
propType: PROP_TYPES.STRING,
|
|
275
|
+
},
|
|
276
|
+
secureTextEntry: {
|
|
277
|
+
group: GROUPS.basic,
|
|
278
|
+
label: "Password Input?",
|
|
279
|
+
description: "Hides the characters with a *, useful for passwords and other sensitive information.",
|
|
280
|
+
editable: true,
|
|
281
|
+
required: false,
|
|
282
|
+
defaultValue: null,
|
|
283
|
+
formType: FORM_TYPES.boolean,
|
|
284
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
285
|
+
},
|
|
286
|
+
selectionColor: {
|
|
287
|
+
group: GROUPS.advanced,
|
|
288
|
+
label: "Selection Color",
|
|
289
|
+
description: "Color of the highlighted portion when selecting.",
|
|
290
|
+
editable: true,
|
|
291
|
+
required: false,
|
|
292
|
+
defaultValue: null,
|
|
293
|
+
formType: FORM_TYPES.color,
|
|
294
|
+
propType: PROP_TYPES.STRING,
|
|
295
|
+
},
|
|
296
|
+
selectTextOnFocus: {
|
|
297
|
+
group: GROUPS.advanced,
|
|
298
|
+
label: "Select Text on Focus",
|
|
299
|
+
description: "If true, all the text will automatically be selected on focus",
|
|
300
|
+
editable: true,
|
|
301
|
+
required: false,
|
|
302
|
+
defaultValue: null,
|
|
303
|
+
formType: FORM_TYPES.boolean,
|
|
304
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
305
|
+
},
|
|
306
|
+
...SEED_DATA_PROPS,
|
|
307
|
+
multiline: {
|
|
308
|
+
group: GROUPS.basic,
|
|
309
|
+
label: "Multiple Lines",
|
|
310
|
+
description: "Allows multiple lines of input, useful for situations where the user may be typing in a lot of data.",
|
|
311
|
+
editable: true,
|
|
312
|
+
required: false,
|
|
313
|
+
defaultValue: null,
|
|
314
|
+
formType: FORM_TYPES.boolean,
|
|
315
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
316
|
+
},
|
|
317
|
+
numberOfLines: {
|
|
318
|
+
group: GROUPS.basic,
|
|
319
|
+
label: "Number of Lines",
|
|
320
|
+
description: "Sets the number of lines for the input (Multiple Lines needs to be true)",
|
|
321
|
+
editable: true,
|
|
322
|
+
required: false,
|
|
323
|
+
defaultValue: null,
|
|
324
|
+
min: 0,
|
|
325
|
+
step: 1,
|
|
326
|
+
precision: 0,
|
|
327
|
+
formType: FORM_TYPES.number,
|
|
328
|
+
propType: PROP_TYPES.NUMBER,
|
|
329
|
+
},
|
|
330
|
+
disabled: createDisabledProp(),
|
|
331
|
+
scrollEnabled: {
|
|
332
|
+
group: GROUPS.basic,
|
|
333
|
+
label: "Scroll Enabled",
|
|
334
|
+
description: "If false, scrolling of the input will be disabled. Only works when Multiple Lines is true",
|
|
335
|
+
editable: true,
|
|
336
|
+
required: false,
|
|
337
|
+
defaultValue: null,
|
|
338
|
+
formType: FORM_TYPES.boolean,
|
|
339
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
340
|
+
},
|
|
341
|
+
spellcheck: {
|
|
342
|
+
group: GROUPS.basic,
|
|
343
|
+
label: "Disable Spell Check",
|
|
344
|
+
description: "If false, disables spell-check style (red underlines). Default comes from Auto Correct",
|
|
345
|
+
editable: true,
|
|
346
|
+
required: false,
|
|
347
|
+
defaultValue: null,
|
|
348
|
+
formType: FORM_TYPES.boolean,
|
|
349
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
350
|
+
},
|
|
351
|
+
textContentType: {
|
|
352
|
+
group: GROUPS.advanced,
|
|
353
|
+
label: "Text Content Type",
|
|
354
|
+
description: "Give the keyboard and system about what it should do with the input. For example, if its an address, autofill from address book",
|
|
355
|
+
editable: true,
|
|
356
|
+
required: false,
|
|
357
|
+
defaultValue: null,
|
|
358
|
+
options: [
|
|
359
|
+
"none",
|
|
360
|
+
"URL",
|
|
361
|
+
"addressCity",
|
|
362
|
+
"addressCityAndState",
|
|
363
|
+
"addressState",
|
|
364
|
+
"countryName",
|
|
365
|
+
"creditCardNumber",
|
|
366
|
+
"emailAddress",
|
|
367
|
+
"familyName",
|
|
368
|
+
"fullStreetAddress",
|
|
369
|
+
"givenName",
|
|
370
|
+
"jobTitle",
|
|
371
|
+
"location",
|
|
372
|
+
"middleName",
|
|
373
|
+
"name",
|
|
374
|
+
"namePrefix",
|
|
375
|
+
"nameSuffix",
|
|
376
|
+
"nickname",
|
|
377
|
+
"organizationName",
|
|
378
|
+
"postalCode",
|
|
379
|
+
"streetAddressLine1",
|
|
380
|
+
"streetAddressLine2",
|
|
381
|
+
"sublocality",
|
|
382
|
+
"telephoneNumber",
|
|
383
|
+
"username",
|
|
384
|
+
"password",
|
|
385
|
+
],
|
|
386
|
+
formType: FORM_TYPES.flatArray,
|
|
387
|
+
propType: PROP_TYPES.STRING,
|
|
388
|
+
},
|
|
389
|
+
textBreakStrategy: {
|
|
390
|
+
group: GROUPS.advanced,
|
|
391
|
+
label: "Text Break Strategy",
|
|
392
|
+
description: "(Android Only) Set the text break strategy. (Default: simple)",
|
|
393
|
+
editable: true,
|
|
394
|
+
required: false,
|
|
395
|
+
defaultValue: null,
|
|
396
|
+
options: ["simple", "highQuality", "balanced"],
|
|
397
|
+
formType: FORM_TYPES.flatArray,
|
|
398
|
+
propType: PROP_TYPES.STRING,
|
|
399
|
+
},
|
|
400
|
+
},
|
|
401
|
+
},
|
|
402
|
+
];
|