@draftbit/core 46.2.1-de631b.0 → 46.2.2-088abf.0
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/mappings/ActivityIndicator.js +1 -0
- package/lib/commonjs/mappings/ActivityIndicator.js.map +1 -1
- package/lib/commonjs/mappings/AvatarEdit.js +1 -0
- package/lib/commonjs/mappings/AvatarEdit.js.map +1 -1
- package/lib/commonjs/mappings/BlurView.js +1 -0
- package/lib/commonjs/mappings/BlurView.js.map +1 -1
- package/lib/commonjs/mappings/Button.js +2 -0
- package/lib/commonjs/mappings/Button.js.map +1 -1
- package/lib/commonjs/mappings/CardBlock.js +1 -0
- package/lib/commonjs/mappings/CardBlock.js.map +1 -1
- package/lib/commonjs/mappings/CardContainer.js +2 -0
- package/lib/commonjs/mappings/CardContainer.js.map +1 -1
- package/lib/commonjs/mappings/CardContainerRating.js +2 -0
- package/lib/commonjs/mappings/CardContainerRating.js.map +1 -1
- package/lib/commonjs/mappings/CardContainerShortImage.js +2 -0
- package/lib/commonjs/mappings/CardContainerShortImage.js.map +1 -1
- package/lib/commonjs/mappings/CardInline.js +1 -0
- package/lib/commonjs/mappings/CardInline.js.map +1 -1
- package/lib/commonjs/mappings/Carousel.js +1 -0
- package/lib/commonjs/mappings/Carousel.js.map +1 -1
- package/lib/commonjs/mappings/Checkbox.js +1 -0
- package/lib/commonjs/mappings/Checkbox.js.map +1 -1
- package/lib/commonjs/mappings/CheckboxGroup.js +1 -0
- package/lib/commonjs/mappings/CheckboxGroup.js.map +1 -1
- package/lib/commonjs/mappings/CheckboxRow.js +1 -0
- package/lib/commonjs/mappings/CheckboxRow.js.map +1 -1
- package/lib/commonjs/mappings/CircleImage.js +1 -0
- package/lib/commonjs/mappings/CircleImage.js.map +1 -1
- package/lib/commonjs/mappings/Container.js +1 -0
- package/lib/commonjs/mappings/Container.js.map +1 -1
- package/lib/commonjs/mappings/DatePicker.js +10 -0
- package/lib/commonjs/mappings/DatePicker.js.map +1 -1
- package/lib/commonjs/mappings/Divider.js +1 -0
- package/lib/commonjs/mappings/Divider.js.map +1 -1
- package/lib/commonjs/mappings/FAB.js +1 -0
- package/lib/commonjs/mappings/FAB.js.map +1 -1
- package/lib/commonjs/mappings/Fetch.js +1 -0
- package/lib/commonjs/mappings/Fetch.js.map +1 -1
- package/lib/commonjs/mappings/FieldSearchBarFull.js +1 -0
- package/lib/commonjs/mappings/FieldSearchBarFull.js.map +1 -1
- package/lib/commonjs/mappings/FlatList.js +5 -0
- package/lib/commonjs/mappings/FlatList.js.map +1 -1
- package/lib/commonjs/mappings/HeaderLarge.js +1 -0
- package/lib/commonjs/mappings/HeaderLarge.js.map +1 -1
- package/lib/commonjs/mappings/HeaderMedium.js +1 -0
- package/lib/commonjs/mappings/HeaderMedium.js.map +1 -1
- package/lib/commonjs/mappings/HeaderOverline.js +1 -0
- package/lib/commonjs/mappings/HeaderOverline.js.map +1 -1
- package/lib/commonjs/mappings/Icon.js +1 -0
- package/lib/commonjs/mappings/Icon.js.map +1 -1
- package/lib/commonjs/mappings/IconButton.js +1 -0
- package/lib/commonjs/mappings/IconButton.js.map +1 -1
- package/lib/commonjs/mappings/Image.js +1 -0
- package/lib/commonjs/mappings/Image.js.map +1 -1
- package/lib/commonjs/mappings/ImageBackground.js +1 -0
- package/lib/commonjs/mappings/ImageBackground.js.map +1 -1
- package/lib/commonjs/mappings/KeyboardAvoidingView.js +1 -0
- package/lib/commonjs/mappings/KeyboardAvoidingView.js.map +1 -1
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js +1 -0
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +1 -1
- package/lib/commonjs/mappings/Layout.js +5 -0
- package/lib/commonjs/mappings/Layout.js.map +1 -1
- package/lib/commonjs/mappings/Modal.js +1 -0
- package/lib/commonjs/mappings/Modal.js.map +1 -1
- package/lib/commonjs/mappings/NumberInput.js +1 -0
- package/lib/commonjs/mappings/NumberInput.js.map +1 -1
- package/lib/commonjs/mappings/Picker.js +1 -0
- package/lib/commonjs/mappings/Picker.js.map +1 -1
- package/lib/commonjs/mappings/ProgressBar.js +1 -0
- package/lib/commonjs/mappings/ProgressBar.js.map +1 -1
- package/lib/commonjs/mappings/ProgressCircle.js +1 -0
- package/lib/commonjs/mappings/ProgressCircle.js.map +1 -1
- package/lib/commonjs/mappings/ProgressIndicator.js +1 -0
- package/lib/commonjs/mappings/ProgressIndicator.js.map +1 -1
- package/lib/commonjs/mappings/RadioButton.js +1 -0
- package/lib/commonjs/mappings/RadioButton.js.map +1 -1
- package/lib/commonjs/mappings/RadioButtonGroup.js +1 -0
- package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
- package/lib/commonjs/mappings/RadioButtonRow.js +1 -0
- package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
- package/lib/commonjs/mappings/ScrollView.js +1 -0
- package/lib/commonjs/mappings/ScrollView.js.map +1 -1
- package/lib/commonjs/mappings/Slider.js +1 -0
- package/lib/commonjs/mappings/Slider.js.map +1 -1
- package/lib/commonjs/mappings/StarRating.js +1 -0
- package/lib/commonjs/mappings/StarRating.js.map +1 -1
- package/lib/commonjs/mappings/Stepper.js +1 -0
- package/lib/commonjs/mappings/Stepper.js.map +1 -1
- package/lib/commonjs/mappings/Surface.js +1 -0
- package/lib/commonjs/mappings/Surface.js.map +1 -1
- package/lib/commonjs/mappings/Switch.js +2 -0
- package/lib/commonjs/mappings/Switch.js.map +1 -1
- package/lib/commonjs/mappings/Text.js +35 -26
- package/lib/commonjs/mappings/Text.js.map +1 -1
- package/lib/commonjs/mappings/TextArea.js +11 -0
- package/lib/commonjs/mappings/TextArea.js.map +1 -1
- package/lib/commonjs/mappings/TextField.js +1 -0
- package/lib/commonjs/mappings/TextField.js.map +1 -1
- package/lib/commonjs/mappings/TextInput.js +1 -0
- package/lib/commonjs/mappings/TextInput.js.map +1 -1
- package/lib/commonjs/mappings/ToggleButton.js +1 -0
- package/lib/commonjs/mappings/ToggleButton.js.map +1 -1
- package/lib/commonjs/mappings/Touchable.js +1 -0
- package/lib/commonjs/mappings/Touchable.js.map +1 -1
- package/lib/commonjs/mappings/Video.js +1 -0
- package/lib/commonjs/mappings/Video.js.map +1 -1
- package/lib/commonjs/mappings/View.js +1 -0
- package/lib/commonjs/mappings/View.js.map +1 -1
- package/lib/commonjs/mappings/WebView.js +66 -0
- package/lib/commonjs/mappings/WebView.js.map +1 -1
- package/lib/module/mappings/ActivityIndicator.js +2 -1
- package/lib/module/mappings/ActivityIndicator.js.map +1 -1
- package/lib/module/mappings/AvatarEdit.js +2 -1
- package/lib/module/mappings/AvatarEdit.js.map +1 -1
- package/lib/module/mappings/BlurView.js +2 -1
- package/lib/module/mappings/BlurView.js.map +1 -1
- package/lib/module/mappings/Button.js +3 -1
- package/lib/module/mappings/Button.js.map +1 -1
- package/lib/module/mappings/CardBlock.js +2 -1
- package/lib/module/mappings/CardBlock.js.map +1 -1
- package/lib/module/mappings/CardContainer.js +3 -1
- package/lib/module/mappings/CardContainer.js.map +1 -1
- package/lib/module/mappings/CardContainerRating.js +3 -1
- package/lib/module/mappings/CardContainerRating.js.map +1 -1
- package/lib/module/mappings/CardContainerShortImage.js +3 -1
- package/lib/module/mappings/CardContainerShortImage.js.map +1 -1
- package/lib/module/mappings/CardInline.js +2 -1
- package/lib/module/mappings/CardInline.js.map +1 -1
- package/lib/module/mappings/Carousel.js +2 -1
- package/lib/module/mappings/Carousel.js.map +1 -1
- package/lib/module/mappings/Checkbox.js +2 -1
- package/lib/module/mappings/Checkbox.js.map +1 -1
- package/lib/module/mappings/CheckboxGroup.js +2 -1
- package/lib/module/mappings/CheckboxGroup.js.map +1 -1
- package/lib/module/mappings/CheckboxRow.js +2 -1
- package/lib/module/mappings/CheckboxRow.js.map +1 -1
- package/lib/module/mappings/CircleImage.js +2 -1
- package/lib/module/mappings/CircleImage.js.map +1 -1
- package/lib/module/mappings/Container.js +2 -1
- package/lib/module/mappings/Container.js.map +1 -1
- package/lib/module/mappings/DatePicker.js +10 -0
- package/lib/module/mappings/DatePicker.js.map +1 -1
- package/lib/module/mappings/Divider.js +2 -1
- package/lib/module/mappings/Divider.js.map +1 -1
- package/lib/module/mappings/FAB.js +2 -1
- package/lib/module/mappings/FAB.js.map +1 -1
- package/lib/module/mappings/Fetch.js +2 -1
- package/lib/module/mappings/Fetch.js.map +1 -1
- package/lib/module/mappings/FieldSearchBarFull.js +2 -1
- package/lib/module/mappings/FieldSearchBarFull.js.map +1 -1
- package/lib/module/mappings/FlatList.js +6 -1
- package/lib/module/mappings/FlatList.js.map +1 -1
- package/lib/module/mappings/HeaderLarge.js +2 -1
- package/lib/module/mappings/HeaderLarge.js.map +1 -1
- package/lib/module/mappings/HeaderMedium.js +2 -1
- package/lib/module/mappings/HeaderMedium.js.map +1 -1
- package/lib/module/mappings/HeaderOverline.js +2 -1
- package/lib/module/mappings/HeaderOverline.js.map +1 -1
- package/lib/module/mappings/Icon.js +2 -1
- package/lib/module/mappings/Icon.js.map +1 -1
- package/lib/module/mappings/IconButton.js +2 -1
- package/lib/module/mappings/IconButton.js.map +1 -1
- package/lib/module/mappings/Image.js +2 -1
- package/lib/module/mappings/Image.js.map +1 -1
- package/lib/module/mappings/ImageBackground.js +2 -1
- package/lib/module/mappings/ImageBackground.js.map +1 -1
- package/lib/module/mappings/KeyboardAvoidingView.js +2 -1
- package/lib/module/mappings/KeyboardAvoidingView.js.map +1 -1
- package/lib/module/mappings/KeyboardAwareScrollView.js +2 -1
- package/lib/module/mappings/KeyboardAwareScrollView.js.map +1 -1
- package/lib/module/mappings/Layout.js +6 -1
- package/lib/module/mappings/Layout.js.map +1 -1
- package/lib/module/mappings/Modal.js +2 -1
- package/lib/module/mappings/Modal.js.map +1 -1
- package/lib/module/mappings/NumberInput.js +2 -1
- package/lib/module/mappings/NumberInput.js.map +1 -1
- package/lib/module/mappings/Picker.js +2 -1
- package/lib/module/mappings/Picker.js.map +1 -1
- package/lib/module/mappings/ProgressBar.js +2 -1
- package/lib/module/mappings/ProgressBar.js.map +1 -1
- package/lib/module/mappings/ProgressCircle.js +2 -1
- package/lib/module/mappings/ProgressCircle.js.map +1 -1
- package/lib/module/mappings/ProgressIndicator.js +2 -1
- package/lib/module/mappings/ProgressIndicator.js.map +1 -1
- package/lib/module/mappings/RadioButton.js +2 -1
- package/lib/module/mappings/RadioButton.js.map +1 -1
- package/lib/module/mappings/RadioButtonGroup.js +2 -1
- package/lib/module/mappings/RadioButtonGroup.js.map +1 -1
- package/lib/module/mappings/RadioButtonRow.js +2 -1
- package/lib/module/mappings/RadioButtonRow.js.map +1 -1
- package/lib/module/mappings/ScrollView.js +2 -1
- package/lib/module/mappings/ScrollView.js.map +1 -1
- package/lib/module/mappings/Slider.js +2 -1
- package/lib/module/mappings/Slider.js.map +1 -1
- package/lib/module/mappings/StarRating.js +2 -1
- package/lib/module/mappings/StarRating.js.map +1 -1
- package/lib/module/mappings/Stepper.js +2 -1
- package/lib/module/mappings/Stepper.js.map +1 -1
- package/lib/module/mappings/Surface.js +2 -1
- package/lib/module/mappings/Surface.js.map +1 -1
- package/lib/module/mappings/Switch.js +3 -1
- package/lib/module/mappings/Switch.js.map +1 -1
- package/lib/module/mappings/Text.js +36 -27
- package/lib/module/mappings/Text.js.map +1 -1
- package/lib/module/mappings/TextArea.js +11 -0
- package/lib/module/mappings/TextArea.js.map +1 -1
- package/lib/module/mappings/TextField.js +2 -1
- package/lib/module/mappings/TextField.js.map +1 -1
- package/lib/module/mappings/TextInput.js +2 -1
- package/lib/module/mappings/TextInput.js.map +1 -1
- package/lib/module/mappings/ToggleButton.js +2 -1
- package/lib/module/mappings/ToggleButton.js.map +1 -1
- package/lib/module/mappings/Touchable.js +2 -1
- package/lib/module/mappings/Touchable.js.map +1 -1
- package/lib/module/mappings/Video.js +2 -1
- package/lib/module/mappings/Video.js.map +1 -1
- package/lib/module/mappings/View.js +2 -1
- package/lib/module/mappings/View.js.map +1 -1
- package/lib/module/mappings/WebView.js +67 -1
- package/lib/module/mappings/WebView.js.map +1 -1
- package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
- package/lib/typescript/src/mappings/AvatarEdit.d.ts +1 -0
- package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
- package/lib/typescript/src/mappings/Button.d.ts +2 -0
- package/lib/typescript/src/mappings/CardBlock.d.ts +101 -0
- package/lib/typescript/src/mappings/CardContainer.d.ts +1 -0
- package/lib/typescript/src/mappings/CardContainerRating.d.ts +1 -0
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +2 -0
- package/lib/typescript/src/mappings/CardInline.d.ts +1 -0
- package/lib/typescript/src/mappings/Carousel.d.ts +1 -0
- package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
- package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
- package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
- package/lib/typescript/src/mappings/CircleImage.d.ts +1 -0
- package/lib/typescript/src/mappings/Container.d.ts +1 -0
- package/lib/typescript/src/mappings/DatePicker.d.ts +10 -0
- package/lib/typescript/src/mappings/Divider.d.ts +1 -0
- package/lib/typescript/src/mappings/FAB.d.ts +1 -0
- package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +1 -0
- package/lib/typescript/src/mappings/FlatList.d.ts +11 -0
- package/lib/typescript/src/mappings/HeaderLarge.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderMedium.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderOverline.d.ts +1 -0
- package/lib/typescript/src/mappings/Icon.d.ts +1 -0
- package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
- package/lib/typescript/src/mappings/Image.d.ts +1 -0
- package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
- package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
- package/lib/typescript/src/mappings/Layout.d.ts +4 -0
- package/lib/typescript/src/mappings/Modal.d.ts +1 -0
- package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
- package/lib/typescript/src/mappings/Picker.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressBar.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressCircle.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
- package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
- package/lib/typescript/src/mappings/Slider.d.ts +1 -0
- package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
- package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
- package/lib/typescript/src/mappings/Surface.d.ts +1 -0
- package/lib/typescript/src/mappings/Switch.d.ts +2 -0
- package/lib/typescript/src/mappings/Text.d.ts +26 -10
- package/lib/typescript/src/mappings/TextArea.d.ts +11 -0
- package/lib/typescript/src/mappings/TextField.d.ts +2 -0
- package/lib/typescript/src/mappings/TextInput.d.ts +1 -0
- package/lib/typescript/src/mappings/ToggleButton.d.ts +1 -0
- package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
- package/lib/typescript/src/mappings/Video.d.ts +1 -0
- package/lib/typescript/src/mappings/View.d.ts +1 -0
- package/lib/typescript/src/mappings/WebView.d.ts +103 -0
- package/package.json +3 -3
- package/src/mappings/ActivityIndicator.js +6 -1
- package/src/mappings/ActivityIndicator.ts +6 -0
- package/src/mappings/AvatarEdit.js +2 -1
- package/src/mappings/AvatarEdit.ts +2 -0
- package/src/mappings/BlurView.js +2 -1
- package/src/mappings/BlurView.ts +2 -0
- package/src/mappings/Button.js +19 -1
- package/src/mappings/Button.ts +19 -0
- package/src/mappings/CardBlock.js +2 -1
- package/src/mappings/CardBlock.ts +2 -0
- package/src/mappings/CardContainer.js +3 -1
- package/src/mappings/CardContainer.ts +3 -0
- package/src/mappings/CardContainerRating.js +3 -1
- package/src/mappings/CardContainerRating.ts +3 -0
- package/src/mappings/CardContainerShortImage.js +3 -1
- package/src/mappings/CardContainerShortImage.ts +3 -0
- package/src/mappings/CardInline.js +2 -1
- package/src/mappings/CardInline.ts +2 -0
- package/src/mappings/Carousel.js +2 -1
- package/src/mappings/Carousel.ts +2 -0
- package/src/mappings/Checkbox.js +2 -1
- package/src/mappings/Checkbox.ts +2 -0
- package/src/mappings/CheckboxGroup.js +2 -1
- package/src/mappings/CheckboxGroup.ts +2 -0
- package/src/mappings/CheckboxRow.js +6 -1
- package/src/mappings/CheckboxRow.ts +6 -0
- package/src/mappings/CircleImage.js +2 -1
- package/src/mappings/CircleImage.ts +2 -0
- package/src/mappings/Container.js +2 -1
- package/src/mappings/Container.ts +2 -0
- package/src/mappings/DatePicker.js +10 -0
- package/src/mappings/DatePicker.ts +10 -0
- package/src/mappings/Divider.js +2 -1
- package/src/mappings/Divider.ts +2 -0
- package/src/mappings/FAB.js +2 -1
- package/src/mappings/FAB.ts +2 -0
- package/src/mappings/Fetch.js +2 -1
- package/src/mappings/Fetch.ts +2 -1
- package/src/mappings/FieldSearchBarFull.js +2 -1
- package/src/mappings/FieldSearchBarFull.ts +2 -0
- package/src/mappings/FlatList.js +6 -1
- package/src/mappings/FlatList.ts +6 -0
- package/src/mappings/HeaderLarge.js +2 -1
- package/src/mappings/HeaderLarge.ts +2 -0
- package/src/mappings/HeaderMedium.js +2 -1
- package/src/mappings/HeaderMedium.ts +2 -0
- package/src/mappings/HeaderOverline.js +2 -1
- package/src/mappings/HeaderOverline.ts +2 -0
- package/src/mappings/Icon.js +8 -1
- package/src/mappings/Icon.ts +8 -0
- package/src/mappings/IconButton.js +6 -1
- package/src/mappings/IconButton.ts +6 -0
- package/src/mappings/Image.js +7 -1
- package/src/mappings/Image.ts +7 -0
- package/src/mappings/ImageBackground.js +2 -1
- package/src/mappings/ImageBackground.ts +2 -0
- package/src/mappings/KeyboardAvoidingView.js +2 -1
- package/src/mappings/KeyboardAvoidingView.ts +2 -0
- package/src/mappings/KeyboardAwareScrollView.js +2 -1
- package/src/mappings/KeyboardAwareScrollView.ts +2 -0
- package/src/mappings/Layout.js +6 -1
- package/src/mappings/Layout.ts +6 -0
- package/src/mappings/Modal.js +2 -1
- package/src/mappings/Modal.ts +2 -0
- package/src/mappings/NumberInput.js +10 -1
- package/src/mappings/NumberInput.ts +10 -0
- package/src/mappings/Picker.js +10 -1
- package/src/mappings/Picker.ts +10 -0
- package/src/mappings/ProgressBar.js +2 -1
- package/src/mappings/ProgressBar.ts +2 -0
- package/src/mappings/ProgressCircle.js +2 -1
- package/src/mappings/ProgressCircle.ts +2 -0
- package/src/mappings/ProgressIndicator.js +2 -1
- package/src/mappings/ProgressIndicator.ts +2 -0
- package/src/mappings/RadioButton.js +2 -1
- package/src/mappings/RadioButton.ts +2 -0
- package/src/mappings/RadioButtonGroup.js +2 -1
- package/src/mappings/RadioButtonGroup.ts +2 -0
- package/src/mappings/RadioButtonRow.js +6 -1
- package/src/mappings/RadioButtonRow.ts +6 -0
- package/src/mappings/ScrollView.js +2 -1
- package/src/mappings/ScrollView.ts +6 -1
- package/src/mappings/Slider.js +2 -1
- package/src/mappings/Slider.ts +2 -0
- package/src/mappings/StarRating.js +2 -1
- package/src/mappings/StarRating.ts +2 -0
- package/src/mappings/Stepper.js +2 -1
- package/src/mappings/Stepper.ts +2 -0
- package/src/mappings/Surface.js +2 -1
- package/src/mappings/Surface.ts +6 -1
- package/src/mappings/Switch.js +7 -1
- package/src/mappings/Switch.ts +8 -0
- package/src/mappings/Text.js +46 -27
- package/src/mappings/Text.ts +47 -27
- package/src/mappings/TextArea.js +11 -0
- package/src/mappings/TextArea.ts +11 -0
- package/src/mappings/TextField.js +10 -1
- package/src/mappings/TextField.ts +10 -0
- package/src/mappings/TextInput.js +10 -1
- package/src/mappings/TextInput.ts +10 -0
- package/src/mappings/ToggleButton.js +6 -1
- package/src/mappings/ToggleButton.ts +6 -0
- package/src/mappings/Touchable.js +6 -1
- package/src/mappings/Touchable.ts +11 -1
- package/src/mappings/Video.js +8 -1
- package/src/mappings/Video.ts +8 -0
- package/src/mappings/View.js +2 -1
- package/src/mappings/View.ts +2 -0
- package/src/mappings/WebView.js +71 -1
- package/src/mappings/WebView.ts +83 -0
package/src/mappings/Slider.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, GROUPS, createNumberProp, createColorProp, createFieldNameProp, createIconProp, Triggers, } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, GROUPS, createNumberProp, createColorProp, createFieldNameProp, createIconProp, Triggers, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Slider",
|
|
4
4
|
tag: "Slider",
|
|
5
5
|
description: "A component used to set a value in a range",
|
|
6
6
|
category: COMPONENT_TYPES.input,
|
|
7
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
7
8
|
layout: {
|
|
8
9
|
marginLeft: 12,
|
|
9
10
|
marginRight: 12,
|
package/src/mappings/Slider.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
createFieldNameProp,
|
|
7
7
|
createIconProp,
|
|
8
8
|
Triggers,
|
|
9
|
+
BLOCK_STYLES_SECTIONS,
|
|
9
10
|
} from "@draftbit/types";
|
|
10
11
|
|
|
11
12
|
export const SEED_DATA = {
|
|
@@ -13,6 +14,7 @@ export const SEED_DATA = {
|
|
|
13
14
|
tag: "Slider",
|
|
14
15
|
description: "A component used to set a value in a range",
|
|
15
16
|
category: COMPONENT_TYPES.input,
|
|
17
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
16
18
|
layout: {
|
|
17
19
|
marginLeft: 12,
|
|
18
20
|
marginRight: 12,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createStaticNumberProp, createFieldNameProp, createStaticBoolProp, Triggers, createColorProp, } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createStaticNumberProp, createFieldNameProp, createStaticBoolProp, Triggers, createColorProp, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Star Rating",
|
|
4
4
|
tag: "StarRating",
|
|
5
5
|
description: "A star rating component",
|
|
6
6
|
category: COMPONENT_TYPES.button,
|
|
7
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
7
8
|
triggers: [Triggers.OnPress],
|
|
8
9
|
props: {
|
|
9
10
|
starSize: createStaticNumberProp({
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
createStaticBoolProp,
|
|
6
6
|
Triggers,
|
|
7
7
|
createColorProp,
|
|
8
|
+
BLOCK_STYLES_SECTIONS,
|
|
8
9
|
} from "@draftbit/types";
|
|
9
10
|
|
|
10
11
|
export const SEED_DATA = {
|
|
@@ -12,6 +13,7 @@ export const SEED_DATA = {
|
|
|
12
13
|
tag: "StarRating",
|
|
13
14
|
description: "A star rating component",
|
|
14
15
|
category: COMPONENT_TYPES.button,
|
|
16
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
15
17
|
triggers: [Triggers.OnPress],
|
|
16
18
|
props: {
|
|
17
19
|
starSize: createStaticNumberProp({
|
package/src/mappings/Stepper.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createIconSizeProp, createColorProp, createFieldNameProp, createStaticNumberProp, Triggers, } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createIconSizeProp, createColorProp, createFieldNameProp, createStaticNumberProp, Triggers, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = [
|
|
3
3
|
{
|
|
4
4
|
name: "Stepper",
|
|
5
5
|
tag: "Stepper",
|
|
6
6
|
description: "A component used to control the quantity of something",
|
|
7
7
|
category: COMPONENT_TYPES.input,
|
|
8
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
8
9
|
layout: {},
|
|
9
10
|
triggers: [Triggers.OnChange],
|
|
10
11
|
props: {
|
package/src/mappings/Stepper.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
createFieldNameProp,
|
|
6
6
|
createStaticNumberProp,
|
|
7
7
|
Triggers,
|
|
8
|
+
BLOCK_STYLES_SECTIONS,
|
|
8
9
|
} from "@draftbit/types";
|
|
9
10
|
|
|
10
11
|
export const SEED_DATA = [
|
|
@@ -13,6 +14,7 @@ export const SEED_DATA = [
|
|
|
13
14
|
tag: "Stepper",
|
|
14
15
|
description: "A component used to control the quantity of something",
|
|
15
16
|
category: COMPONENT_TYPES.input,
|
|
17
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
16
18
|
layout: {},
|
|
17
19
|
triggers: [Triggers.OnChange],
|
|
18
20
|
props: {
|
package/src/mappings/Surface.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createElevationType } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createElevationType, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Surface",
|
|
4
4
|
tag: "Surface",
|
|
5
5
|
description: "An elevated container",
|
|
6
6
|
category: COMPONENT_TYPES.layout,
|
|
7
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
7
8
|
layout: {
|
|
8
9
|
minHeight: 40,
|
|
9
10
|
},
|
package/src/mappings/Surface.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
createElevationType,
|
|
4
|
+
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
5
|
+
} from "@draftbit/types";
|
|
2
6
|
|
|
3
7
|
export const SEED_DATA = {
|
|
4
8
|
name: "Surface",
|
|
5
9
|
tag: "Surface",
|
|
6
10
|
description: "An elevated container",
|
|
7
11
|
category: COMPONENT_TYPES.layout,
|
|
12
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
13
|
layout: {
|
|
9
14
|
minHeight: 40,
|
|
10
15
|
},
|
package/src/mappings/Switch.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, GROUPS, createBoolProp, createColorProp, createFieldNameProp, createTextProp, createRowDirectionProp, Triggers, } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, GROUPS, createBoolProp, createColorProp, createFieldNameProp, createTextProp, createRowDirectionProp, Triggers, StylesPanelSections, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
const SEED_DATA_TRIGGERS = [Triggers.OnValueChange];
|
|
3
3
|
export const SEED_DATA = [
|
|
4
4
|
{
|
|
5
5
|
name: "Switch",
|
|
6
6
|
tag: "Switch",
|
|
7
7
|
category: COMPONENT_TYPES.input,
|
|
8
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
8
9
|
layout: {},
|
|
9
10
|
triggers: SEED_DATA_TRIGGERS,
|
|
10
11
|
props: {
|
|
@@ -35,6 +36,11 @@ export const SEED_DATA = [
|
|
|
35
36
|
name: "Switch Row",
|
|
36
37
|
tag: "SwitchRow",
|
|
37
38
|
category: COMPONENT_TYPES.input,
|
|
39
|
+
stylesPanelSections: [
|
|
40
|
+
StylesPanelSections.Typography,
|
|
41
|
+
StylesPanelSections.Margins,
|
|
42
|
+
StylesPanelSections.Effects,
|
|
43
|
+
],
|
|
38
44
|
layout: {
|
|
39
45
|
marginLeft: 0,
|
|
40
46
|
marginRight: 0,
|
package/src/mappings/Switch.ts
CHANGED
|
@@ -7,6 +7,8 @@ import {
|
|
|
7
7
|
createTextProp,
|
|
8
8
|
createRowDirectionProp,
|
|
9
9
|
Triggers,
|
|
10
|
+
StylesPanelSections,
|
|
11
|
+
BLOCK_STYLES_SECTIONS,
|
|
10
12
|
} from "@draftbit/types";
|
|
11
13
|
const SEED_DATA_TRIGGERS = [Triggers.OnValueChange];
|
|
12
14
|
export const SEED_DATA = [
|
|
@@ -14,6 +16,7 @@ export const SEED_DATA = [
|
|
|
14
16
|
name: "Switch",
|
|
15
17
|
tag: "Switch",
|
|
16
18
|
category: COMPONENT_TYPES.input,
|
|
19
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
17
20
|
layout: {},
|
|
18
21
|
triggers: SEED_DATA_TRIGGERS,
|
|
19
22
|
props: {
|
|
@@ -44,6 +47,11 @@ export const SEED_DATA = [
|
|
|
44
47
|
name: "Switch Row",
|
|
45
48
|
tag: "SwitchRow",
|
|
46
49
|
category: COMPONENT_TYPES.input,
|
|
50
|
+
stylesPanelSections: [
|
|
51
|
+
StylesPanelSections.Typography,
|
|
52
|
+
StylesPanelSections.Margins,
|
|
53
|
+
StylesPanelSections.Effects,
|
|
54
|
+
],
|
|
47
55
|
layout: {
|
|
48
56
|
marginLeft: 0,
|
|
49
57
|
marginRight: 0,
|
package/src/mappings/Text.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, Triggers, createActionProp, createTextProp, } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, Triggers, createActionProp, createTextProp, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
const SEED_DATA_PROPS = {
|
|
3
3
|
accessibilityLabel: {
|
|
4
4
|
group: GROUPS.accessibility,
|
|
5
5
|
name: "accessibilityLabel",
|
|
6
6
|
label: "accessibilityLabel",
|
|
7
7
|
description: "Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.",
|
|
8
|
-
editable:
|
|
8
|
+
editable: true,
|
|
9
|
+
required: false,
|
|
10
|
+
formType: FORM_TYPES.string,
|
|
11
|
+
propType: PROP_TYPES.STRING,
|
|
12
|
+
defaultValue: null,
|
|
13
|
+
},
|
|
14
|
+
accessibilityHint: {
|
|
15
|
+
group: GROUPS.accessibility,
|
|
16
|
+
name: "accessibilityHint",
|
|
17
|
+
label: "accessibilityHint",
|
|
18
|
+
description: "An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.",
|
|
19
|
+
editable: true,
|
|
9
20
|
required: false,
|
|
10
21
|
formType: FORM_TYPES.string,
|
|
11
22
|
propType: PROP_TYPES.STRING,
|
|
@@ -29,7 +40,7 @@ const SEED_DATA_PROPS = {
|
|
|
29
40
|
"imagebutton",
|
|
30
41
|
"adjustable",
|
|
31
42
|
],
|
|
32
|
-
editable:
|
|
43
|
+
editable: true,
|
|
33
44
|
required: false,
|
|
34
45
|
formType: FORM_TYPES.flatArray,
|
|
35
46
|
propType: PROP_TYPES.STRING,
|
|
@@ -39,8 +50,8 @@ const SEED_DATA_PROPS = {
|
|
|
39
50
|
group: GROUPS.accessibility,
|
|
40
51
|
name: "accessible",
|
|
41
52
|
label: "accessible",
|
|
42
|
-
description: "When set to true, indicates that the view is an accessibility element. The default value for a Text element is true.See the Accessibility guide for more information.",
|
|
43
|
-
editable:
|
|
53
|
+
description: "When set to true, indicates that the view is an accessibility element. The default value for a Text element is true. See the Accessibility guide for more information.",
|
|
54
|
+
editable: true,
|
|
44
55
|
required: false,
|
|
45
56
|
formType: FORM_TYPES.boolean,
|
|
46
57
|
propType: PROP_TYPES.BOOLEAN,
|
|
@@ -51,7 +62,7 @@ const SEED_DATA_PROPS = {
|
|
|
51
62
|
name: "adjustsFontSizeToFit",
|
|
52
63
|
label: "adjustsFontSizeToFit",
|
|
53
64
|
description: "Specifies whether fonts should be scaled down automatically to fit given style constraints.",
|
|
54
|
-
editable:
|
|
65
|
+
editable: true,
|
|
55
66
|
required: false,
|
|
56
67
|
formType: FORM_TYPES.boolean,
|
|
57
68
|
propType: PROP_TYPES.BOOLEAN,
|
|
@@ -62,7 +73,7 @@ const SEED_DATA_PROPS = {
|
|
|
62
73
|
name: "allowFontScaling",
|
|
63
74
|
label: "allowFontScaling",
|
|
64
75
|
description: "Specifies whether fonts should scale to respect Text Size accessibility settings. The default is true.",
|
|
65
|
-
editable:
|
|
76
|
+
editable: true,
|
|
66
77
|
required: false,
|
|
67
78
|
formType: FORM_TYPES.boolean,
|
|
68
79
|
propType: PROP_TYPES.BOOLEAN,
|
|
@@ -72,9 +83,9 @@ const SEED_DATA_PROPS = {
|
|
|
72
83
|
group: GROUPS.advanced,
|
|
73
84
|
name: "dataDetectorType",
|
|
74
85
|
label: "dataDetectorType",
|
|
75
|
-
description: "Determines the types of data converted to clickable URLs in the text element. By default no data types are detected.You can provide only one type.Possible values for dataDetectorType are:\n'phoneNumber'\n'link'\n'email'\n'none'\n'all'\n",
|
|
86
|
+
description: "Determines the types of data converted to clickable URLs in the text element. By default no data types are detected. You can provide only one type. Possible values for dataDetectorType are:\n'phoneNumber'\n'link'\n'email'\n'none'\n'all'\n",
|
|
76
87
|
options: ["phoneNumber", "link", "email", "none", "all"],
|
|
77
|
-
editable:
|
|
88
|
+
editable: true,
|
|
78
89
|
required: false,
|
|
79
90
|
formType: FORM_TYPES.flatArray,
|
|
80
91
|
propType: PROP_TYPES.STRING,
|
|
@@ -85,7 +96,7 @@ const SEED_DATA_PROPS = {
|
|
|
85
96
|
name: "disabled",
|
|
86
97
|
label: "disabled",
|
|
87
98
|
description: "Specifies the disabled state of the text view for testing purposes",
|
|
88
|
-
editable:
|
|
99
|
+
editable: true,
|
|
89
100
|
required: false,
|
|
90
101
|
formType: FORM_TYPES.boolean,
|
|
91
102
|
propType: PROP_TYPES.BOOLEAN,
|
|
@@ -108,25 +119,21 @@ const SEED_DATA_PROPS = {
|
|
|
108
119
|
name: "maxFontSizeMultiplier",
|
|
109
120
|
label: "maxFontSizeMultiplier",
|
|
110
121
|
description: "Specifies largest possible scale a font can reach when allowFontScaling is enabled. Possible values:\nnull/undefined (default): inherit from the parent node or the global default (0)\n0: no max, ignore parent/global default\n>= 1: sets the maxFontSizeMultiplier of this node to this value\n",
|
|
111
|
-
editable:
|
|
122
|
+
editable: true,
|
|
112
123
|
required: false,
|
|
113
124
|
formType: FORM_TYPES.number,
|
|
114
125
|
propType: PROP_TYPES.NUMBER,
|
|
115
126
|
defaultValue: null,
|
|
116
127
|
},
|
|
117
|
-
|
|
118
|
-
group: GROUPS.
|
|
119
|
-
name: "
|
|
120
|
-
label: "
|
|
121
|
-
description: "
|
|
122
|
-
editable:
|
|
128
|
+
nativeID: {
|
|
129
|
+
group: GROUPS.accessibility,
|
|
130
|
+
name: "nativeID",
|
|
131
|
+
label: "nativeID",
|
|
132
|
+
description: "Used to locate this view from native code.",
|
|
133
|
+
editable: true,
|
|
123
134
|
required: false,
|
|
124
|
-
formType: FORM_TYPES.
|
|
125
|
-
propType: PROP_TYPES.
|
|
126
|
-
min: 0.01,
|
|
127
|
-
step: 0.01,
|
|
128
|
-
precision: 2,
|
|
129
|
-
max: 1.0,
|
|
135
|
+
formType: FORM_TYPES.string,
|
|
136
|
+
propType: PROP_TYPES.STRING,
|
|
130
137
|
defaultValue: null,
|
|
131
138
|
},
|
|
132
139
|
numberOfLines: {
|
|
@@ -147,7 +154,7 @@ const SEED_DATA_PROPS = {
|
|
|
147
154
|
name: "selectable",
|
|
148
155
|
label: "selectable",
|
|
149
156
|
description: "Lets the user select text, to use the native copy and paste functionality.",
|
|
150
|
-
editable:
|
|
157
|
+
editable: true,
|
|
151
158
|
required: false,
|
|
152
159
|
formType: FORM_TYPES.boolean,
|
|
153
160
|
propType: PROP_TYPES.BOOLEAN,
|
|
@@ -158,7 +165,7 @@ const SEED_DATA_PROPS = {
|
|
|
158
165
|
name: "selectionColor",
|
|
159
166
|
label: "selectionColor",
|
|
160
167
|
description: "The highlight color of the text.",
|
|
161
|
-
editable:
|
|
168
|
+
editable: true,
|
|
162
169
|
required: false,
|
|
163
170
|
formType: FORM_TYPES.color,
|
|
164
171
|
propType: PROP_TYPES.THEME,
|
|
@@ -169,7 +176,7 @@ const SEED_DATA_PROPS = {
|
|
|
169
176
|
name: "suppressHighlighting",
|
|
170
177
|
label: "suppressHighlighting",
|
|
171
178
|
description: "When true, no visual change is made when text is pressed down. By default, a gray oval highlights the text on press down.",
|
|
172
|
-
editable:
|
|
179
|
+
editable: true,
|
|
173
180
|
required: false,
|
|
174
181
|
formType: FORM_TYPES.boolean,
|
|
175
182
|
propType: PROP_TYPES.BOOLEAN,
|
|
@@ -181,7 +188,7 @@ const SEED_DATA_PROPS = {
|
|
|
181
188
|
label: "textBreakStrategy",
|
|
182
189
|
description: "Set text break strategy on Android API Level 23+, possible values are simple, highQuality, balanced The default value is highQuality.",
|
|
183
190
|
options: ["simple", "highQuality", "balanced"],
|
|
184
|
-
editable:
|
|
191
|
+
editable: true,
|
|
185
192
|
required: false,
|
|
186
193
|
formType: FORM_TYPES.flatArray,
|
|
187
194
|
propType: PROP_TYPES.STRING,
|
|
@@ -194,6 +201,12 @@ export const SEED_DATA = [
|
|
|
194
201
|
tag: "Text",
|
|
195
202
|
description: "A basic Text component",
|
|
196
203
|
category: COMPONENT_TYPES.basic,
|
|
204
|
+
stylesPanelSections: [
|
|
205
|
+
StylesPanelSections.Typography,
|
|
206
|
+
StylesPanelSections.LayoutSelectedItem,
|
|
207
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
208
|
+
StylesPanelSections.Effects,
|
|
209
|
+
],
|
|
197
210
|
layout: {
|
|
198
211
|
color: "strong", // This is translated on collector script run by the extractValueAndType function
|
|
199
212
|
},
|
|
@@ -215,6 +228,12 @@ export const SEED_DATA = [
|
|
|
215
228
|
name: "Link",
|
|
216
229
|
tag: "Link",
|
|
217
230
|
category: COMPONENT_TYPES.button,
|
|
231
|
+
stylesPanelSections: [
|
|
232
|
+
StylesPanelSections.Typography,
|
|
233
|
+
StylesPanelSections.LayoutSelectedItem,
|
|
234
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
235
|
+
StylesPanelSections.Effects,
|
|
236
|
+
],
|
|
218
237
|
layout: {
|
|
219
238
|
color: "primary",
|
|
220
239
|
},
|
package/src/mappings/Text.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
Triggers,
|
|
7
7
|
createActionProp,
|
|
8
8
|
createTextProp,
|
|
9
|
+
StylesPanelSections,
|
|
9
10
|
} from "@draftbit/types";
|
|
10
11
|
|
|
11
12
|
const SEED_DATA_PROPS = {
|
|
@@ -15,7 +16,19 @@ const SEED_DATA_PROPS = {
|
|
|
15
16
|
label: "accessibilityLabel",
|
|
16
17
|
description:
|
|
17
18
|
"Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.",
|
|
18
|
-
editable:
|
|
19
|
+
editable: true,
|
|
20
|
+
required: false,
|
|
21
|
+
formType: FORM_TYPES.string,
|
|
22
|
+
propType: PROP_TYPES.STRING,
|
|
23
|
+
defaultValue: null,
|
|
24
|
+
},
|
|
25
|
+
accessibilityHint: {
|
|
26
|
+
group: GROUPS.accessibility,
|
|
27
|
+
name: "accessibilityHint",
|
|
28
|
+
label: "accessibilityHint",
|
|
29
|
+
description:
|
|
30
|
+
"An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.",
|
|
31
|
+
editable: true,
|
|
19
32
|
required: false,
|
|
20
33
|
formType: FORM_TYPES.string,
|
|
21
34
|
propType: PROP_TYPES.STRING,
|
|
@@ -40,7 +53,7 @@ const SEED_DATA_PROPS = {
|
|
|
40
53
|
"imagebutton",
|
|
41
54
|
"adjustable",
|
|
42
55
|
],
|
|
43
|
-
editable:
|
|
56
|
+
editable: true,
|
|
44
57
|
required: false,
|
|
45
58
|
formType: FORM_TYPES.flatArray,
|
|
46
59
|
propType: PROP_TYPES.STRING,
|
|
@@ -51,8 +64,8 @@ const SEED_DATA_PROPS = {
|
|
|
51
64
|
name: "accessible",
|
|
52
65
|
label: "accessible",
|
|
53
66
|
description:
|
|
54
|
-
"When set to true, indicates that the view is an accessibility element. The default value for a Text element is true.See the Accessibility guide for more information.",
|
|
55
|
-
editable:
|
|
67
|
+
"When set to true, indicates that the view is an accessibility element. The default value for a Text element is true. See the Accessibility guide for more information.",
|
|
68
|
+
editable: true,
|
|
56
69
|
required: false,
|
|
57
70
|
formType: FORM_TYPES.boolean,
|
|
58
71
|
propType: PROP_TYPES.BOOLEAN,
|
|
@@ -64,7 +77,7 @@ const SEED_DATA_PROPS = {
|
|
|
64
77
|
label: "adjustsFontSizeToFit",
|
|
65
78
|
description:
|
|
66
79
|
"Specifies whether fonts should be scaled down automatically to fit given style constraints.",
|
|
67
|
-
editable:
|
|
80
|
+
editable: true,
|
|
68
81
|
required: false,
|
|
69
82
|
formType: FORM_TYPES.boolean,
|
|
70
83
|
propType: PROP_TYPES.BOOLEAN,
|
|
@@ -76,7 +89,7 @@ const SEED_DATA_PROPS = {
|
|
|
76
89
|
label: "allowFontScaling",
|
|
77
90
|
description:
|
|
78
91
|
"Specifies whether fonts should scale to respect Text Size accessibility settings. The default is true.",
|
|
79
|
-
editable:
|
|
92
|
+
editable: true,
|
|
80
93
|
required: false,
|
|
81
94
|
formType: FORM_TYPES.boolean,
|
|
82
95
|
propType: PROP_TYPES.BOOLEAN,
|
|
@@ -87,9 +100,9 @@ const SEED_DATA_PROPS = {
|
|
|
87
100
|
name: "dataDetectorType",
|
|
88
101
|
label: "dataDetectorType",
|
|
89
102
|
description:
|
|
90
|
-
"Determines the types of data converted to clickable URLs in the text element. By default no data types are detected.You can provide only one type.Possible values for dataDetectorType are:\n'phoneNumber'\n'link'\n'email'\n'none'\n'all'\n",
|
|
103
|
+
"Determines the types of data converted to clickable URLs in the text element. By default no data types are detected. You can provide only one type. Possible values for dataDetectorType are:\n'phoneNumber'\n'link'\n'email'\n'none'\n'all'\n",
|
|
91
104
|
options: ["phoneNumber", "link", "email", "none", "all"],
|
|
92
|
-
editable:
|
|
105
|
+
editable: true,
|
|
93
106
|
required: false,
|
|
94
107
|
formType: FORM_TYPES.flatArray,
|
|
95
108
|
propType: PROP_TYPES.STRING,
|
|
@@ -101,7 +114,7 @@ const SEED_DATA_PROPS = {
|
|
|
101
114
|
label: "disabled",
|
|
102
115
|
description:
|
|
103
116
|
"Specifies the disabled state of the text view for testing purposes",
|
|
104
|
-
editable:
|
|
117
|
+
editable: true,
|
|
105
118
|
required: false,
|
|
106
119
|
formType: FORM_TYPES.boolean,
|
|
107
120
|
propType: PROP_TYPES.BOOLEAN,
|
|
@@ -126,26 +139,21 @@ const SEED_DATA_PROPS = {
|
|
|
126
139
|
label: "maxFontSizeMultiplier",
|
|
127
140
|
description:
|
|
128
141
|
"Specifies largest possible scale a font can reach when allowFontScaling is enabled. Possible values:\nnull/undefined (default): inherit from the parent node or the global default (0)\n0: no max, ignore parent/global default\n>= 1: sets the maxFontSizeMultiplier of this node to this value\n",
|
|
129
|
-
editable:
|
|
142
|
+
editable: true,
|
|
130
143
|
required: false,
|
|
131
144
|
formType: FORM_TYPES.number,
|
|
132
145
|
propType: PROP_TYPES.NUMBER,
|
|
133
146
|
defaultValue: null,
|
|
134
147
|
},
|
|
135
|
-
|
|
136
|
-
group: GROUPS.
|
|
137
|
-
name: "
|
|
138
|
-
label: "
|
|
139
|
-
description:
|
|
140
|
-
|
|
141
|
-
editable: false,
|
|
148
|
+
nativeID: {
|
|
149
|
+
group: GROUPS.accessibility,
|
|
150
|
+
name: "nativeID",
|
|
151
|
+
label: "nativeID",
|
|
152
|
+
description: "Used to locate this view from native code.",
|
|
153
|
+
editable: true,
|
|
142
154
|
required: false,
|
|
143
|
-
formType: FORM_TYPES.
|
|
144
|
-
propType: PROP_TYPES.
|
|
145
|
-
min: 0.01,
|
|
146
|
-
step: 0.01,
|
|
147
|
-
precision: 2,
|
|
148
|
-
max: 1.0,
|
|
155
|
+
formType: FORM_TYPES.string,
|
|
156
|
+
propType: PROP_TYPES.STRING,
|
|
149
157
|
defaultValue: null,
|
|
150
158
|
},
|
|
151
159
|
numberOfLines: {
|
|
@@ -168,7 +176,7 @@ const SEED_DATA_PROPS = {
|
|
|
168
176
|
label: "selectable",
|
|
169
177
|
description:
|
|
170
178
|
"Lets the user select text, to use the native copy and paste functionality.",
|
|
171
|
-
editable:
|
|
179
|
+
editable: true,
|
|
172
180
|
required: false,
|
|
173
181
|
formType: FORM_TYPES.boolean,
|
|
174
182
|
propType: PROP_TYPES.BOOLEAN,
|
|
@@ -179,7 +187,7 @@ const SEED_DATA_PROPS = {
|
|
|
179
187
|
name: "selectionColor",
|
|
180
188
|
label: "selectionColor",
|
|
181
189
|
description: "The highlight color of the text.",
|
|
182
|
-
editable:
|
|
190
|
+
editable: true,
|
|
183
191
|
required: false,
|
|
184
192
|
formType: FORM_TYPES.color,
|
|
185
193
|
propType: PROP_TYPES.THEME,
|
|
@@ -191,7 +199,7 @@ const SEED_DATA_PROPS = {
|
|
|
191
199
|
label: "suppressHighlighting",
|
|
192
200
|
description:
|
|
193
201
|
"When true, no visual change is made when text is pressed down. By default, a gray oval highlights the text on press down.",
|
|
194
|
-
editable:
|
|
202
|
+
editable: true,
|
|
195
203
|
required: false,
|
|
196
204
|
formType: FORM_TYPES.boolean,
|
|
197
205
|
propType: PROP_TYPES.BOOLEAN,
|
|
@@ -204,7 +212,7 @@ const SEED_DATA_PROPS = {
|
|
|
204
212
|
description:
|
|
205
213
|
"Set text break strategy on Android API Level 23+, possible values are simple, highQuality, balanced The default value is highQuality.",
|
|
206
214
|
options: ["simple", "highQuality", "balanced"],
|
|
207
|
-
editable:
|
|
215
|
+
editable: true,
|
|
208
216
|
required: false,
|
|
209
217
|
formType: FORM_TYPES.flatArray,
|
|
210
218
|
propType: PROP_TYPES.STRING,
|
|
@@ -218,6 +226,12 @@ export const SEED_DATA = [
|
|
|
218
226
|
tag: "Text",
|
|
219
227
|
description: "A basic Text component",
|
|
220
228
|
category: COMPONENT_TYPES.basic,
|
|
229
|
+
stylesPanelSections: [
|
|
230
|
+
StylesPanelSections.Typography,
|
|
231
|
+
StylesPanelSections.LayoutSelectedItem,
|
|
232
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
233
|
+
StylesPanelSections.Effects,
|
|
234
|
+
],
|
|
221
235
|
layout: {
|
|
222
236
|
color: "strong", // This is translated on collector script run by the extractValueAndType function
|
|
223
237
|
},
|
|
@@ -239,6 +253,12 @@ export const SEED_DATA = [
|
|
|
239
253
|
name: "Link",
|
|
240
254
|
tag: "Link",
|
|
241
255
|
category: COMPONENT_TYPES.button,
|
|
256
|
+
stylesPanelSections: [
|
|
257
|
+
StylesPanelSections.Typography,
|
|
258
|
+
StylesPanelSections.LayoutSelectedItem,
|
|
259
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
260
|
+
StylesPanelSections.Effects,
|
|
261
|
+
],
|
|
242
262
|
layout: {
|
|
243
263
|
color: "primary",
|
|
244
264
|
},
|
package/src/mappings/TextArea.js
CHANGED
|
@@ -205,6 +205,17 @@ const TEXT_AREA_PROPS = {
|
|
|
205
205
|
formType: FORM_TYPES.boolean,
|
|
206
206
|
propType: PROP_TYPES.BOOLEAN,
|
|
207
207
|
},
|
|
208
|
+
textAlignVertical: {
|
|
209
|
+
group: GROUPS.advanced,
|
|
210
|
+
label: "Aligns text on the vertical axis",
|
|
211
|
+
description: "Move the text around in the given component.",
|
|
212
|
+
options: ["auto", "top", "bottom", "center"],
|
|
213
|
+
editable: true,
|
|
214
|
+
required: false,
|
|
215
|
+
defaultValue: "top",
|
|
216
|
+
formType: FORM_TYPES.flatArray,
|
|
217
|
+
propType: PROP_TYPES.STRING,
|
|
218
|
+
},
|
|
208
219
|
};
|
|
209
220
|
export const SEED_DATA = {
|
|
210
221
|
name: "Text Area",
|
package/src/mappings/TextArea.ts
CHANGED
|
@@ -219,6 +219,17 @@ const TEXT_AREA_PROPS = {
|
|
|
219
219
|
formType: FORM_TYPES.boolean,
|
|
220
220
|
propType: PROP_TYPES.BOOLEAN,
|
|
221
221
|
},
|
|
222
|
+
textAlignVertical: {
|
|
223
|
+
group: GROUPS.advanced,
|
|
224
|
+
label: "Aligns text on the vertical axis",
|
|
225
|
+
description: "Move the text around in the given component.",
|
|
226
|
+
options: ["auto", "top", "bottom", "center"],
|
|
227
|
+
editable: true,
|
|
228
|
+
required: false,
|
|
229
|
+
defaultValue: "top",
|
|
230
|
+
formType: FORM_TYPES.flatArray,
|
|
231
|
+
propType: PROP_TYPES.STRING,
|
|
232
|
+
},
|
|
222
233
|
};
|
|
223
234
|
|
|
224
235
|
export const SEED_DATA = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, createColorProp, createNumberProp, createFieldNameProp, } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, createColorProp, createNumberProp, createFieldNameProp, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
const TEXT_FIELD_PROPS = {
|
|
3
3
|
allowFontScaling: {
|
|
4
4
|
group: GROUPS.advanced,
|
|
@@ -330,6 +330,15 @@ export const SEED_DATA = [
|
|
|
330
330
|
tag: "TextField",
|
|
331
331
|
description: "A text area with a solid border or underline",
|
|
332
332
|
category: COMPONENT_TYPES.input,
|
|
333
|
+
stylesPanelSections: [
|
|
334
|
+
StylesPanelSections.Typography,
|
|
335
|
+
StylesPanelSections.Background,
|
|
336
|
+
StylesPanelSections.Size,
|
|
337
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
338
|
+
StylesPanelSections.Position,
|
|
339
|
+
StylesPanelSections.Borders,
|
|
340
|
+
StylesPanelSections.Effects,
|
|
341
|
+
],
|
|
333
342
|
preview_image_url: "{CLOUDINARY_URL}/TextArea.png",
|
|
334
343
|
supports_list_render: false,
|
|
335
344
|
triggers: SEED_DATA_TRIGGERS,
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
createColorProp,
|
|
9
9
|
createNumberProp,
|
|
10
10
|
createFieldNameProp,
|
|
11
|
+
StylesPanelSections,
|
|
11
12
|
} from "@draftbit/types";
|
|
12
13
|
|
|
13
14
|
const TEXT_FIELD_PROPS = {
|
|
@@ -352,6 +353,15 @@ export const SEED_DATA = [
|
|
|
352
353
|
tag: "TextField",
|
|
353
354
|
description: "A text area with a solid border or underline",
|
|
354
355
|
category: COMPONENT_TYPES.input,
|
|
356
|
+
stylesPanelSections: [
|
|
357
|
+
StylesPanelSections.Typography,
|
|
358
|
+
StylesPanelSections.Background,
|
|
359
|
+
StylesPanelSections.Size,
|
|
360
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
361
|
+
StylesPanelSections.Position,
|
|
362
|
+
StylesPanelSections.Borders,
|
|
363
|
+
StylesPanelSections.Effects,
|
|
364
|
+
],
|
|
355
365
|
preview_image_url: "{CLOUDINARY_URL}/TextArea.png",
|
|
356
366
|
supports_list_render: false,
|
|
357
367
|
triggers: SEED_DATA_TRIGGERS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
const TEXT_INPUT_PROPS = {
|
|
3
3
|
allowFontScaling: {
|
|
4
4
|
group: GROUPS.advanced,
|
|
@@ -270,6 +270,15 @@ export const SEED_DATA = [
|
|
|
270
270
|
tag: "TextInput",
|
|
271
271
|
description: "An input field that allows users to type in data.",
|
|
272
272
|
category: COMPONENT_TYPES.input,
|
|
273
|
+
stylesPanelSections: [
|
|
274
|
+
StylesPanelSections.Typography,
|
|
275
|
+
StylesPanelSections.Background,
|
|
276
|
+
StylesPanelSections.Size,
|
|
277
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
278
|
+
StylesPanelSections.Position,
|
|
279
|
+
StylesPanelSections.Borders,
|
|
280
|
+
StylesPanelSections.Effects,
|
|
281
|
+
],
|
|
273
282
|
preview_image_url: "https://res.cloudinary.com/altos/image/upload/draftbit/Jigsaw/TextInput.png",
|
|
274
283
|
supports_list_render: false,
|
|
275
284
|
layout: {
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
PROP_TYPES,
|
|
6
6
|
FIELD_NAME,
|
|
7
7
|
Triggers,
|
|
8
|
+
StylesPanelSections,
|
|
8
9
|
} from "@draftbit/types";
|
|
9
10
|
|
|
10
11
|
const TEXT_INPUT_PROPS = {
|
|
@@ -290,6 +291,15 @@ export const SEED_DATA = [
|
|
|
290
291
|
tag: "TextInput",
|
|
291
292
|
description: "An input field that allows users to type in data.",
|
|
292
293
|
category: COMPONENT_TYPES.input,
|
|
294
|
+
stylesPanelSections: [
|
|
295
|
+
StylesPanelSections.Typography,
|
|
296
|
+
StylesPanelSections.Background,
|
|
297
|
+
StylesPanelSections.Size,
|
|
298
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
299
|
+
StylesPanelSections.Position,
|
|
300
|
+
StylesPanelSections.Borders,
|
|
301
|
+
StylesPanelSections.Effects,
|
|
302
|
+
],
|
|
293
303
|
preview_image_url:
|
|
294
304
|
"https://res.cloudinary.com/altos/image/upload/draftbit/Jigsaw/TextInput.png",
|
|
295
305
|
supports_list_render: false,
|