@draftbit/core 46.2.1-f4deff.4 → 46.2.2-45fcc3.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/components/CardContainerRating.js +1 -0
- package/lib/commonjs/components/CardContainerRating.js.map +1 -1
- package/lib/commonjs/components/CardContainerShortImage.js +5 -18
- package/lib/commonjs/components/CardContainerShortImage.js.map +1 -1
- package/lib/commonjs/components/Picker/PickerComponent.android.js +25 -6
- package/lib/commonjs/components/Picker/PickerComponent.android.js.map +1 -1
- package/lib/commonjs/components/Portal/PortalManager.js +11 -19
- package/lib/commonjs/components/Portal/PortalManager.js.map +1 -1
- package/lib/commonjs/hooks.js.map +1 -1
- 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/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 +1 -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/SwiperItem.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 +2 -0
- package/lib/commonjs/mappings/Text.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/commonjs/styles/shadow.js.map +1 -1
- package/lib/module/components/CardContainerRating.js +2 -1
- package/lib/module/components/CardContainerRating.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/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 +2 -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 +3 -1
- package/lib/module/mappings/Text.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/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 +1 -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 +2 -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/components/CardContainerRating.js +1 -0
- package/src/components/CardContainerRating.tsx +2 -0
- 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/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 +2 -1
- package/src/mappings/FlatList.ts +2 -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 +13 -1
- package/src/mappings/Text.ts +13 -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
|
@@ -3,6 +3,7 @@ export declare const SEED_DATA: {
|
|
|
3
3
|
tag: string;
|
|
4
4
|
description: string;
|
|
5
5
|
category: string;
|
|
6
|
+
stylesPanelSections: string[];
|
|
6
7
|
layout: {
|
|
7
8
|
flex: number;
|
|
8
9
|
};
|
|
@@ -27,5 +28,107 @@ export declare const SEED_DATA: {
|
|
|
27
28
|
required: boolean;
|
|
28
29
|
group: string;
|
|
29
30
|
};
|
|
31
|
+
javaScriptEnabled: {
|
|
32
|
+
label: string;
|
|
33
|
+
description: string;
|
|
34
|
+
formType: string;
|
|
35
|
+
propType: string;
|
|
36
|
+
defaultValue: boolean;
|
|
37
|
+
editable: boolean;
|
|
38
|
+
required: boolean;
|
|
39
|
+
group: string;
|
|
40
|
+
};
|
|
41
|
+
javaScriptCanOpenWindowsAutomatically: {
|
|
42
|
+
label: string;
|
|
43
|
+
description: string;
|
|
44
|
+
formType: string;
|
|
45
|
+
propType: string;
|
|
46
|
+
defaultValue: boolean;
|
|
47
|
+
editable: boolean;
|
|
48
|
+
required: boolean;
|
|
49
|
+
group: string;
|
|
50
|
+
};
|
|
51
|
+
showsHorizontalScrollIndicator: {
|
|
52
|
+
label: string;
|
|
53
|
+
description: string;
|
|
54
|
+
formType: string;
|
|
55
|
+
propType: string;
|
|
56
|
+
defaultValue: boolean;
|
|
57
|
+
editable: boolean;
|
|
58
|
+
required: boolean;
|
|
59
|
+
group: string;
|
|
60
|
+
};
|
|
61
|
+
showsVerticalScrollIndicator: {
|
|
62
|
+
label: string;
|
|
63
|
+
description: string;
|
|
64
|
+
formType: string;
|
|
65
|
+
propType: string;
|
|
66
|
+
defaultValue: boolean;
|
|
67
|
+
editable: boolean;
|
|
68
|
+
required: boolean;
|
|
69
|
+
group: string;
|
|
70
|
+
};
|
|
71
|
+
mediaPlaybackRequiresUserAction: {
|
|
72
|
+
label: string;
|
|
73
|
+
description: string;
|
|
74
|
+
formType: string;
|
|
75
|
+
propType: string;
|
|
76
|
+
defaultValue: boolean;
|
|
77
|
+
editable: boolean;
|
|
78
|
+
required: boolean;
|
|
79
|
+
group: string;
|
|
80
|
+
};
|
|
81
|
+
startInLoadingState: {
|
|
82
|
+
label: string;
|
|
83
|
+
description: string;
|
|
84
|
+
formType: string;
|
|
85
|
+
propType: string;
|
|
86
|
+
defaultValue: boolean;
|
|
87
|
+
editable: boolean;
|
|
88
|
+
required: boolean;
|
|
89
|
+
group: string;
|
|
90
|
+
};
|
|
91
|
+
allowFileAccessFromFileURLs: {
|
|
92
|
+
label: string;
|
|
93
|
+
description: string;
|
|
94
|
+
formType: string;
|
|
95
|
+
propType: string;
|
|
96
|
+
defaultValue: boolean;
|
|
97
|
+
editable: boolean;
|
|
98
|
+
required: boolean;
|
|
99
|
+
group: string;
|
|
100
|
+
};
|
|
101
|
+
allowUniversalAccessFromFileURLs: {
|
|
102
|
+
label: string;
|
|
103
|
+
description: string;
|
|
104
|
+
formType: string;
|
|
105
|
+
propType: string;
|
|
106
|
+
defaultValue: boolean;
|
|
107
|
+
editable: boolean;
|
|
108
|
+
required: boolean;
|
|
109
|
+
group: string;
|
|
110
|
+
};
|
|
111
|
+
cacheEnabled: {
|
|
112
|
+
label: string;
|
|
113
|
+
description: string;
|
|
114
|
+
formType: string;
|
|
115
|
+
propType: string;
|
|
116
|
+
defaultValue: boolean;
|
|
117
|
+
editable: boolean;
|
|
118
|
+
required: boolean;
|
|
119
|
+
group: string;
|
|
120
|
+
};
|
|
121
|
+
incognito: {
|
|
122
|
+
label: string;
|
|
123
|
+
description: string;
|
|
124
|
+
formType: string;
|
|
125
|
+
propType: string;
|
|
126
|
+
defaultValue: boolean;
|
|
127
|
+
editable: boolean;
|
|
128
|
+
required: boolean;
|
|
129
|
+
group: string;
|
|
130
|
+
};
|
|
131
|
+
userAgent: any;
|
|
132
|
+
applicationNameForUserAgent: any;
|
|
30
133
|
};
|
|
31
134
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "46.2.
|
|
3
|
+
"version": "46.2.2-45fcc3.0+45fcc344",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@date-io/date-fns": "^1.3.13",
|
|
43
43
|
"@draftbit/react-theme-provider": "^2.1.1",
|
|
44
|
-
"@draftbit/types": "^46.1
|
|
44
|
+
"@draftbit/types": "^46.2.1",
|
|
45
45
|
"@material-ui/core": "^4.11.0",
|
|
46
46
|
"@material-ui/pickers": "^3.2.10",
|
|
47
47
|
"@react-native-community/slider": "4.2.3",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
]
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "45fcc344d2d454a14835da351f0f529674049a41"
|
|
83
83
|
}
|
|
@@ -7,6 +7,7 @@ import Elevation from "./Elevation";
|
|
|
7
7
|
import StarRating from "./StarRating";
|
|
8
8
|
import { withTheme } from "../theming";
|
|
9
9
|
import Config from "./Config";
|
|
10
|
+
// Hello! I'm a comment!
|
|
10
11
|
const ICON_CONTAINER_SIZE = Config.cardIconSize * 2;
|
|
11
12
|
const ICON_CONTAINER_PADDING = Config.cardIconSize / 2 - 1;
|
|
12
13
|
const CardContainerRating = ({ Icon, icon, image = Config.cardImageUrl, title, leftDescription, rightDescription, rating, aspectRatio = 1.5, elevation = 2, numColumns = 3, theme: { colors, roundness, typography }, style, onPress, ...rest }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, GROUPS, } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, GROUPS, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Activity Indicator",
|
|
4
4
|
tag: "ActivityIndicator",
|
|
@@ -6,6 +6,11 @@ export const SEED_DATA = {
|
|
|
6
6
|
doc_link: "https://docs.expo.io/versions/latest/react-native/activityindicator/",
|
|
7
7
|
code_link: "https://github.com/expo/expo/blob/master/ios/versioned-react-native/ABI32_0_0/Libraries/Components/ActivityIndicator/ActivityIndicator.js",
|
|
8
8
|
category: COMPONENT_TYPES.input,
|
|
9
|
+
stylesPanelSections: [
|
|
10
|
+
StylesPanelSections.Size,
|
|
11
|
+
StylesPanelSections.Margins,
|
|
12
|
+
StylesPanelSections.Borders,
|
|
13
|
+
],
|
|
9
14
|
layout: { width: 36, height: 36 },
|
|
10
15
|
props: {
|
|
11
16
|
size: {
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
FORM_TYPES,
|
|
4
4
|
PROP_TYPES,
|
|
5
5
|
GROUPS,
|
|
6
|
+
StylesPanelSections,
|
|
6
7
|
} from "@draftbit/types";
|
|
7
8
|
|
|
8
9
|
export const SEED_DATA = {
|
|
@@ -14,6 +15,11 @@ export const SEED_DATA = {
|
|
|
14
15
|
code_link:
|
|
15
16
|
"https://github.com/expo/expo/blob/master/ios/versioned-react-native/ABI32_0_0/Libraries/Components/ActivityIndicator/ActivityIndicator.js",
|
|
16
17
|
category: COMPONENT_TYPES.input,
|
|
18
|
+
stylesPanelSections: [
|
|
19
|
+
StylesPanelSections.Size,
|
|
20
|
+
StylesPanelSections.Margins,
|
|
21
|
+
StylesPanelSections.Borders,
|
|
22
|
+
],
|
|
17
23
|
layout: { width: 36, height: 36 },
|
|
18
24
|
props: {
|
|
19
25
|
size: {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Avatar Edit",
|
|
4
4
|
tag: "AvatarEdit",
|
|
5
5
|
description: "An avatar with an edit icon in the top right",
|
|
6
6
|
category: COMPONENT_TYPES.deprecated,
|
|
7
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
7
8
|
layout: {
|
|
8
9
|
width: 64,
|
|
9
10
|
height: 64,
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
COMPONENT_TYPES,
|
|
4
4
|
FORM_TYPES,
|
|
5
5
|
PROP_TYPES,
|
|
6
|
+
BLOCK_STYLES_SECTIONS,
|
|
6
7
|
} from "@draftbit/types";
|
|
7
8
|
|
|
8
9
|
export const SEED_DATA = {
|
|
@@ -10,6 +11,7 @@ export const SEED_DATA = {
|
|
|
10
11
|
tag: "AvatarEdit",
|
|
11
12
|
description: "An avatar with an edit icon in the top right",
|
|
12
13
|
category: COMPONENT_TYPES.deprecated,
|
|
14
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
13
15
|
layout: {
|
|
14
16
|
width: 64,
|
|
15
17
|
height: 64,
|
package/src/mappings/BlurView.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, GROUPS, } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, GROUPS, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Blur View",
|
|
4
4
|
tag: "BlurView",
|
|
@@ -6,6 +6,7 @@ export const SEED_DATA = {
|
|
|
6
6
|
doc_link: "https://docs.expo.io/versions/latest/sdk/blur-view/",
|
|
7
7
|
code_link: "https://github.com/expo/expo/blob/master/packages/expo/src/effects/BlurView.d.ts",
|
|
8
8
|
category: COMPONENT_TYPES.layout,
|
|
9
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
9
10
|
layout: {
|
|
10
11
|
flexGrow: 1,
|
|
11
12
|
flexShrink: 1,
|
package/src/mappings/BlurView.ts
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
FORM_TYPES,
|
|
4
4
|
PROP_TYPES,
|
|
5
5
|
GROUPS,
|
|
6
|
+
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
6
7
|
} from "@draftbit/types";
|
|
7
8
|
|
|
8
9
|
export const SEED_DATA = {
|
|
@@ -13,6 +14,7 @@ export const SEED_DATA = {
|
|
|
13
14
|
code_link:
|
|
14
15
|
"https://github.com/expo/expo/blob/master/packages/expo/src/effects/BlurView.d.ts",
|
|
15
16
|
category: COMPONENT_TYPES.layout,
|
|
17
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
16
18
|
layout: {
|
|
17
19
|
flexGrow: 1,
|
|
18
20
|
flexShrink: 1,
|
package/src/mappings/Button.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createIconProp, createBoolProp, createTextProp, GROUPS, createActionProp, Triggers, } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createIconProp, createBoolProp, createTextProp, GROUPS, createActionProp, Triggers, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
const SEED_DATA_TRIGGERS = [Triggers.OnPress];
|
|
3
3
|
const SEED_DATA_PROPS = {
|
|
4
4
|
onPress: createActionProp(),
|
|
@@ -32,6 +32,15 @@ export const SEED_DATA = [
|
|
|
32
32
|
name: "Button Outline",
|
|
33
33
|
tag: "ButtonOutline",
|
|
34
34
|
category: COMPONENT_TYPES.button,
|
|
35
|
+
stylesPanelSections: [
|
|
36
|
+
StylesPanelSections.Typography,
|
|
37
|
+
StylesPanelSections.Background,
|
|
38
|
+
StylesPanelSections.Borders,
|
|
39
|
+
StylesPanelSections.Size,
|
|
40
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
41
|
+
StylesPanelSections.Position,
|
|
42
|
+
StylesPanelSections.Effects,
|
|
43
|
+
],
|
|
35
44
|
layout: {
|
|
36
45
|
...LAYOUT,
|
|
37
46
|
backgroundColor: "transparent",
|
|
@@ -45,6 +54,15 @@ export const SEED_DATA = [
|
|
|
45
54
|
name: "Button Solid",
|
|
46
55
|
tag: "ButtonSolid",
|
|
47
56
|
category: COMPONENT_TYPES.button,
|
|
57
|
+
stylesPanelSections: [
|
|
58
|
+
StylesPanelSections.Typography,
|
|
59
|
+
StylesPanelSections.Background,
|
|
60
|
+
StylesPanelSections.Borders,
|
|
61
|
+
StylesPanelSections.Size,
|
|
62
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
63
|
+
StylesPanelSections.Position,
|
|
64
|
+
StylesPanelSections.Effects,
|
|
65
|
+
],
|
|
48
66
|
layout: {
|
|
49
67
|
...LAYOUT,
|
|
50
68
|
backgroundColor: "primary",
|
package/src/mappings/Button.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
GROUPS,
|
|
7
7
|
createActionProp,
|
|
8
8
|
Triggers,
|
|
9
|
+
StylesPanelSections,
|
|
9
10
|
} from "@draftbit/types";
|
|
10
11
|
|
|
11
12
|
const SEED_DATA_TRIGGERS = [Triggers.OnPress];
|
|
@@ -43,6 +44,15 @@ export const SEED_DATA = [
|
|
|
43
44
|
name: "Button Outline",
|
|
44
45
|
tag: "ButtonOutline",
|
|
45
46
|
category: COMPONENT_TYPES.button,
|
|
47
|
+
stylesPanelSections: [
|
|
48
|
+
StylesPanelSections.Typography,
|
|
49
|
+
StylesPanelSections.Background,
|
|
50
|
+
StylesPanelSections.Borders,
|
|
51
|
+
StylesPanelSections.Size,
|
|
52
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
53
|
+
StylesPanelSections.Position,
|
|
54
|
+
StylesPanelSections.Effects,
|
|
55
|
+
],
|
|
46
56
|
layout: {
|
|
47
57
|
...LAYOUT,
|
|
48
58
|
backgroundColor: "transparent",
|
|
@@ -56,6 +66,15 @@ export const SEED_DATA = [
|
|
|
56
66
|
name: "Button Solid",
|
|
57
67
|
tag: "ButtonSolid",
|
|
58
68
|
category: COMPONENT_TYPES.button,
|
|
69
|
+
stylesPanelSections: [
|
|
70
|
+
StylesPanelSections.Typography,
|
|
71
|
+
StylesPanelSections.Background,
|
|
72
|
+
StylesPanelSections.Borders,
|
|
73
|
+
StylesPanelSections.Size,
|
|
74
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
75
|
+
StylesPanelSections.Position,
|
|
76
|
+
StylesPanelSections.Effects,
|
|
77
|
+
],
|
|
59
78
|
layout: {
|
|
60
79
|
...LAYOUT,
|
|
61
80
|
backgroundColor: "primary",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, createNumColumnsType, } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, createNumColumnsType, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
const SEED_DATA_PROPS = {
|
|
3
3
|
image: {
|
|
4
4
|
group: GROUPS.data,
|
|
@@ -102,6 +102,7 @@ export const SEED_DATA = [
|
|
|
102
102
|
tag: "CardBlock",
|
|
103
103
|
description: "An elevated card with a title and description, that takes up the full width its container.",
|
|
104
104
|
category: COMPONENT_TYPES.card,
|
|
105
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
105
106
|
props: {
|
|
106
107
|
...SEED_DATA_PROPS,
|
|
107
108
|
icon: {
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
PROP_TYPES,
|
|
6
6
|
createElevationType,
|
|
7
7
|
createNumColumnsType,
|
|
8
|
+
BLOCK_STYLES_SECTIONS,
|
|
8
9
|
} from "@draftbit/types";
|
|
9
10
|
|
|
10
11
|
const SEED_DATA_PROPS = {
|
|
@@ -114,6 +115,7 @@ export const SEED_DATA = [
|
|
|
114
115
|
description:
|
|
115
116
|
"An elevated card with a title and description, that takes up the full width its container.",
|
|
116
117
|
category: COMPONENT_TYPES.card,
|
|
118
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
117
119
|
props: {
|
|
118
120
|
...SEED_DATA_PROPS,
|
|
119
121
|
icon: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GROUPS, FORM_TYPES, PROP_TYPES, COMPONENT_TYPES, createElevationType, createNumColumnsType, } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, FORM_TYPES, PROP_TYPES, COMPONENT_TYPES, createElevationType, createNumColumnsType, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
const SEED_DATA_PROPS = {
|
|
3
3
|
image: {
|
|
4
4
|
label: "Image",
|
|
@@ -78,6 +78,7 @@ export const SEED_DATA = [
|
|
|
78
78
|
tag: "CardContainer",
|
|
79
79
|
description: "An elevated card with a title and description, that takes up half of its container.",
|
|
80
80
|
category: COMPONENT_TYPES.card,
|
|
81
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
81
82
|
layout: null,
|
|
82
83
|
props: {
|
|
83
84
|
...SEED_DATA_PROPS,
|
|
@@ -91,6 +92,7 @@ export const SEED_DATA = [
|
|
|
91
92
|
tag: "CardContainer",
|
|
92
93
|
description: "An elevated card with a title and description, that takes up its full container.",
|
|
93
94
|
category: COMPONENT_TYPES.card,
|
|
95
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
94
96
|
layout: null,
|
|
95
97
|
props: {
|
|
96
98
|
...SEED_DATA_PROPS,
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
COMPONENT_TYPES,
|
|
6
6
|
createElevationType,
|
|
7
7
|
createNumColumnsType,
|
|
8
|
+
BLOCK_STYLES_SECTIONS,
|
|
8
9
|
} from "@draftbit/types";
|
|
9
10
|
|
|
10
11
|
const SEED_DATA_PROPS = {
|
|
@@ -88,6 +89,7 @@ export const SEED_DATA = [
|
|
|
88
89
|
description:
|
|
89
90
|
"An elevated card with a title and description, that takes up half of its container.",
|
|
90
91
|
category: COMPONENT_TYPES.card,
|
|
92
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
91
93
|
layout: null,
|
|
92
94
|
props: {
|
|
93
95
|
...SEED_DATA_PROPS,
|
|
@@ -102,6 +104,7 @@ export const SEED_DATA = [
|
|
|
102
104
|
description:
|
|
103
105
|
"An elevated card with a title and description, that takes up its full container.",
|
|
104
106
|
category: COMPONENT_TYPES.card,
|
|
107
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
105
108
|
layout: null,
|
|
106
109
|
props: {
|
|
107
110
|
...SEED_DATA_PROPS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GROUPS, FORM_TYPES, PROP_TYPES, COMPONENT_TYPES, createElevationType, } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, FORM_TYPES, PROP_TYPES, COMPONENT_TYPES, createElevationType, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
const SEED_DATA_PROPS = {
|
|
3
3
|
image: {
|
|
4
4
|
group: GROUPS.data,
|
|
@@ -82,6 +82,7 @@ export const SEED_DATA = [
|
|
|
82
82
|
tag: "CardContainerRating",
|
|
83
83
|
description: "An elevated card with a title and description, that takes up half of its container.",
|
|
84
84
|
category: COMPONENT_TYPES.card,
|
|
85
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
85
86
|
preview_image_url: "{CLOUDINARY_URL}/Card_ContainerRating_2col.png",
|
|
86
87
|
supports_list_render: true,
|
|
87
88
|
props: {
|
|
@@ -104,6 +105,7 @@ export const SEED_DATA = [
|
|
|
104
105
|
tag: "CardContainerRating",
|
|
105
106
|
description: "An elevated card with a title and description, that takes up its full container.",
|
|
106
107
|
category: COMPONENT_TYPES.card,
|
|
108
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
107
109
|
preview_image_url: "{CLOUDINARY_URL}/Card_ContainerRating_3col.png",
|
|
108
110
|
supports_list_render: true,
|
|
109
111
|
props: {
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
PROP_TYPES,
|
|
5
5
|
COMPONENT_TYPES,
|
|
6
6
|
createElevationType,
|
|
7
|
+
BLOCK_STYLES_SECTIONS,
|
|
7
8
|
} from "@draftbit/types";
|
|
8
9
|
|
|
9
10
|
const SEED_DATA_PROPS = {
|
|
@@ -91,6 +92,7 @@ export const SEED_DATA = [
|
|
|
91
92
|
description:
|
|
92
93
|
"An elevated card with a title and description, that takes up half of its container.",
|
|
93
94
|
category: COMPONENT_TYPES.card,
|
|
95
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
94
96
|
preview_image_url: "{CLOUDINARY_URL}/Card_ContainerRating_2col.png",
|
|
95
97
|
supports_list_render: true,
|
|
96
98
|
props: {
|
|
@@ -114,6 +116,7 @@ export const SEED_DATA = [
|
|
|
114
116
|
description:
|
|
115
117
|
"An elevated card with a title and description, that takes up its full container.",
|
|
116
118
|
category: COMPONENT_TYPES.card,
|
|
119
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
117
120
|
preview_image_url: "{CLOUDINARY_URL}/Card_ContainerRating_3col.png",
|
|
118
121
|
supports_list_render: true,
|
|
119
122
|
props: {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = [
|
|
3
3
|
{
|
|
4
4
|
name: "Short Card (Left)",
|
|
5
5
|
tag: "CardContainerShortImage",
|
|
6
6
|
description: "An elevated card with a left aligned image and a title and subtitle",
|
|
7
7
|
category: COMPONENT_TYPES.card,
|
|
8
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
8
9
|
preview_image_url: "{CLOUDINARY_URL}/Card_ContainerShortLeftImage.png",
|
|
9
10
|
supports_list_render: true,
|
|
10
11
|
props: {
|
|
@@ -68,6 +69,7 @@ export const SEED_DATA = [
|
|
|
68
69
|
tag: "CardContainerShortImage",
|
|
69
70
|
description: "An elevated card with a right aligned image and a title and subtitle",
|
|
70
71
|
category: COMPONENT_TYPES.card,
|
|
72
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
71
73
|
preview_image_url: "{CLOUDINARY_URL}/Card_ContainerShortRightImage.png",
|
|
72
74
|
supports_list_render: true,
|
|
73
75
|
props: {
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
FORM_TYPES,
|
|
5
5
|
PROP_TYPES,
|
|
6
6
|
createElevationType,
|
|
7
|
+
BLOCK_STYLES_SECTIONS,
|
|
7
8
|
} from "@draftbit/types";
|
|
8
9
|
|
|
9
10
|
export const SEED_DATA = [
|
|
@@ -13,6 +14,7 @@ export const SEED_DATA = [
|
|
|
13
14
|
description:
|
|
14
15
|
"An elevated card with a left aligned image and a title and subtitle",
|
|
15
16
|
category: COMPONENT_TYPES.card,
|
|
17
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
16
18
|
preview_image_url: "{CLOUDINARY_URL}/Card_ContainerShortLeftImage.png",
|
|
17
19
|
supports_list_render: true,
|
|
18
20
|
props: {
|
|
@@ -77,6 +79,7 @@ export const SEED_DATA = [
|
|
|
77
79
|
description:
|
|
78
80
|
"An elevated card with a right aligned image and a title and subtitle",
|
|
79
81
|
category: COMPONENT_TYPES.card,
|
|
82
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
80
83
|
preview_image_url: "{CLOUDINARY_URL}/Card_ContainerShortRightImage.png",
|
|
81
84
|
supports_list_render: true,
|
|
82
85
|
props: {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Inline Card",
|
|
4
4
|
tag: "CardInline",
|
|
5
5
|
description: "An elevated card with image and a title and description overlayed, that takes up the full width of its container.",
|
|
6
6
|
category: COMPONENT_TYPES.card,
|
|
7
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
7
8
|
layout: {},
|
|
8
9
|
props: {
|
|
9
10
|
image: {
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
FORM_TYPES,
|
|
5
5
|
PROP_TYPES,
|
|
6
6
|
createElevationType,
|
|
7
|
+
BLOCK_STYLES_SECTIONS,
|
|
7
8
|
} from "@draftbit/types";
|
|
8
9
|
|
|
9
10
|
export const SEED_DATA = {
|
|
@@ -12,6 +13,7 @@ export const SEED_DATA = {
|
|
|
12
13
|
description:
|
|
13
14
|
"An elevated card with image and a title and description overlayed, that takes up the full width of its container.",
|
|
14
15
|
category: COMPONENT_TYPES.card,
|
|
16
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
15
17
|
layout: {},
|
|
16
18
|
props: {
|
|
17
19
|
image: {
|
package/src/mappings/Carousel.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createResizeModeProp, createColorProp, } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createResizeModeProp, createColorProp, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = [
|
|
3
3
|
{
|
|
4
4
|
name: "Carousel",
|
|
5
5
|
tag: "Carousel",
|
|
6
6
|
category: COMPONENT_TYPES.deprecated,
|
|
7
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
7
8
|
description: "A horizontal scrolling carousel of images",
|
|
8
9
|
layout: {
|
|
9
10
|
height: 250,
|
package/src/mappings/Carousel.ts
CHANGED
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
COMPONENT_TYPES,
|
|
3
3
|
createResizeModeProp,
|
|
4
4
|
createColorProp,
|
|
5
|
+
BLOCK_STYLES_SECTIONS,
|
|
5
6
|
} from "@draftbit/types";
|
|
6
7
|
|
|
7
8
|
export const SEED_DATA = [
|
|
@@ -9,6 +10,7 @@ export const SEED_DATA = [
|
|
|
9
10
|
name: "Carousel",
|
|
10
11
|
tag: "Carousel",
|
|
11
12
|
category: COMPONENT_TYPES.deprecated,
|
|
13
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
12
14
|
description: "A horizontal scrolling carousel of images",
|
|
13
15
|
layout: {
|
|
14
16
|
height: 250,
|
package/src/mappings/Checkbox.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createBoolProp, createIconProp, createStaticNumberProp, createColorProp, createFieldNameProp, GROUPS, Triggers, } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createBoolProp, createIconProp, createStaticNumberProp, createColorProp, createFieldNameProp, GROUPS, Triggers, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Checkbox",
|
|
4
4
|
tag: "Checkbox",
|
|
5
5
|
category: COMPONENT_TYPES.input,
|
|
6
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
6
7
|
triggers: [Triggers.OnPress, Triggers.OnCheck, Triggers.OnUncheck],
|
|
7
8
|
props: {
|
|
8
9
|
fieldName: createFieldNameProp({
|
package/src/mappings/Checkbox.ts
CHANGED
|
@@ -7,12 +7,14 @@ import {
|
|
|
7
7
|
createFieldNameProp,
|
|
8
8
|
GROUPS,
|
|
9
9
|
Triggers,
|
|
10
|
+
BLOCK_STYLES_SECTIONS,
|
|
10
11
|
} from "@draftbit/types";
|
|
11
12
|
|
|
12
13
|
export const SEED_DATA = {
|
|
13
14
|
name: "Checkbox",
|
|
14
15
|
tag: "Checkbox",
|
|
15
16
|
category: COMPONENT_TYPES.input,
|
|
17
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
16
18
|
triggers: [Triggers.OnPress, Triggers.OnCheck, Triggers.OnUncheck],
|
|
17
19
|
props: {
|
|
18
20
|
fieldName: createFieldNameProp({
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, createTextProp, PROP_TYPES, createFieldNameProp, createDirectionProp, Triggers, } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, createTextProp, PROP_TYPES, createFieldNameProp, createDirectionProp, Triggers, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Checkbox Group",
|
|
4
4
|
tag: "CheckboxGroup",
|
|
5
5
|
category: COMPONENT_TYPES.deprecated,
|
|
6
6
|
layout: {},
|
|
7
7
|
triggers: [Triggers.OnValueChange],
|
|
8
|
+
stylesPanelSections: [StylesPanelSections.Margins],
|
|
8
9
|
props: {
|
|
9
10
|
direction: createDirectionProp(),
|
|
10
11
|
values: createTextProp({
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
createFieldNameProp,
|
|
8
8
|
createDirectionProp,
|
|
9
9
|
Triggers,
|
|
10
|
+
StylesPanelSections,
|
|
10
11
|
} from "@draftbit/types";
|
|
11
12
|
|
|
12
13
|
export const SEED_DATA = {
|
|
@@ -15,6 +16,7 @@ export const SEED_DATA = {
|
|
|
15
16
|
category: COMPONENT_TYPES.deprecated,
|
|
16
17
|
layout: {},
|
|
17
18
|
triggers: [Triggers.OnValueChange],
|
|
19
|
+
stylesPanelSections: [StylesPanelSections.Margins],
|
|
18
20
|
props: {
|
|
19
21
|
direction: createDirectionProp(),
|
|
20
22
|
values: createTextProp({
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { createBoolProp, createTextProp, createTextStyle, createRowDirectionProp, createFieldNameProp, createIconProp, createStaticNumberProp, COMPONENT_TYPES, Triggers, createColorProp, } from "@draftbit/types";
|
|
1
|
+
import { createBoolProp, createTextProp, createTextStyle, createRowDirectionProp, createFieldNameProp, createIconProp, createStaticNumberProp, COMPONENT_TYPES, Triggers, createColorProp, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Checkbox Row",
|
|
4
4
|
tag: "CheckboxRow",
|
|
5
5
|
category: COMPONENT_TYPES.input,
|
|
6
|
+
stylesPanelSections: [
|
|
7
|
+
StylesPanelSections.Typography,
|
|
8
|
+
StylesPanelSections.Margins,
|
|
9
|
+
StylesPanelSections.Effects,
|
|
10
|
+
],
|
|
6
11
|
layout: {
|
|
7
12
|
minHeight: 50,
|
|
8
13
|
},
|
|
@@ -9,12 +9,18 @@ import {
|
|
|
9
9
|
COMPONENT_TYPES,
|
|
10
10
|
Triggers,
|
|
11
11
|
createColorProp,
|
|
12
|
+
StylesPanelSections,
|
|
12
13
|
} from "@draftbit/types";
|
|
13
14
|
|
|
14
15
|
export const SEED_DATA = {
|
|
15
16
|
name: "Checkbox Row",
|
|
16
17
|
tag: "CheckboxRow",
|
|
17
18
|
category: COMPONENT_TYPES.input,
|
|
19
|
+
stylesPanelSections: [
|
|
20
|
+
StylesPanelSections.Typography,
|
|
21
|
+
StylesPanelSections.Margins,
|
|
22
|
+
StylesPanelSections.Effects,
|
|
23
|
+
],
|
|
18
24
|
layout: {
|
|
19
25
|
minHeight: 50,
|
|
20
26
|
},
|