@draftbit/core 46.10.3-6c7505.2 → 46.10.3-7476ab.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/AnimatedCircularProgress.js +12 -1
- package/lib/commonjs/components/AspectRatio.js +17 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +22 -4
- package/lib/commonjs/components/Button.js +33 -10
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +23 -5
- package/lib/commonjs/components/Checkbox/context.js +1 -1
- package/lib/commonjs/components/CircleImage.js +15 -1
- package/lib/commonjs/components/CircularProgress.js +26 -8
- package/lib/commonjs/components/DatePicker/DatePicker.js +26 -13
- package/lib/commonjs/components/Divider.js +14 -1
- package/lib/commonjs/components/Elevation.js +14 -2
- package/lib/commonjs/components/IconButton.js +4 -19
- package/lib/commonjs/components/Image.js +17 -2
- package/lib/commonjs/components/Layout.js +19 -40
- package/lib/commonjs/components/Picker/PickerComponent.android.js +20 -3
- package/lib/commonjs/components/Portal/PortalHost.js +44 -15
- package/lib/commonjs/components/RadioButton/RadioButton.js +13 -2
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js +23 -5
- package/lib/commonjs/components/RadioButton/context.js +1 -1
- package/lib/commonjs/components/Shadow.js +15 -2
- package/lib/commonjs/components/StarRating.js +23 -4
- package/lib/commonjs/components/Switch.js +19 -10
- package/lib/commonjs/components/TabView/TabView.js +13 -7
- package/lib/commonjs/components/Table/Table.js +5 -5
- package/lib/commonjs/constants.js +1 -1
- package/lib/commonjs/mappings/Accordion.js +49 -0
- package/lib/commonjs/mappings/AccordionItem.js +24 -0
- package/lib/commonjs/mappings/ActionSheet.js +21 -0
- package/lib/commonjs/mappings/ActionSheetCancel.js +27 -0
- package/lib/commonjs/mappings/ActionSheetItem.js +31 -0
- package/lib/commonjs/mappings/ActivityIndicator.js +64 -0
- package/lib/commonjs/mappings/AudioPlayer.js +57 -0
- package/lib/commonjs/mappings/AvatarEdit.js +45 -0
- package/lib/commonjs/mappings/Banner.js +39 -0
- package/lib/commonjs/mappings/BlurView.js +49 -0
- package/lib/commonjs/mappings/BottomSheet.js +70 -0
- package/lib/commonjs/mappings/Button.js +95 -0
- package/lib/commonjs/mappings/Card.js +60 -0
- package/lib/commonjs/mappings/Carousel.js +24 -0
- package/lib/commonjs/mappings/Checkbox.js +53 -0
- package/lib/commonjs/mappings/CheckboxGroup.js +33 -0
- package/lib/commonjs/mappings/CheckboxRow.js +64 -0
- package/lib/commonjs/mappings/CircleImage.js +32 -0
- package/lib/commonjs/mappings/CustomCode.js +15 -0
- package/lib/commonjs/mappings/DatePicker.js +181 -0
- package/lib/commonjs/mappings/DeckSwiper.js +55 -0
- package/lib/commonjs/mappings/DeckSwiperCard.js +23 -0
- package/lib/commonjs/mappings/Divider.js +32 -0
- package/lib/commonjs/mappings/FAB.js +44 -0
- package/lib/commonjs/mappings/Fetch.js +20 -0
- package/lib/commonjs/mappings/FieldSearchBarFull.js +58 -0
- package/lib/commonjs/mappings/FlashList.js +111 -0
- package/lib/commonjs/mappings/FlatList.js +58 -0
- package/lib/commonjs/mappings/Icon.js +33 -0
- package/lib/commonjs/mappings/IconButton.js +36 -0
- package/lib/commonjs/mappings/Image.js +36 -0
- package/lib/commonjs/mappings/ImageBackground.js +36 -0
- package/lib/commonjs/mappings/KeyboardAvoidingView.js +48 -0
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js +57 -0
- package/lib/commonjs/mappings/Layout.js +200 -0
- package/lib/commonjs/mappings/LinearGradient.js +88 -0
- package/lib/commonjs/mappings/MapCallout.js +29 -0
- package/lib/commonjs/mappings/MapMarker.js +55 -0
- package/lib/commonjs/mappings/MapView.js +142 -0
- package/lib/commonjs/mappings/Markdown.js +27 -0
- package/lib/commonjs/mappings/Modal.js +49 -0
- package/lib/commonjs/mappings/NativeBase/Layout.js +108 -0
- package/lib/commonjs/mappings/NumberInput.js +238 -0
- package/lib/commonjs/mappings/Picker.js +154 -0
- package/lib/commonjs/mappings/ProgressBar.js +106 -0
- package/lib/commonjs/mappings/ProgressCircle.js +116 -0
- package/lib/commonjs/mappings/RadioButton.js +58 -0
- package/lib/commonjs/mappings/RadioButtonGroup.js +24 -0
- package/lib/commonjs/mappings/RadioButtonRow.js +45 -0
- package/lib/commonjs/mappings/RowBodyIcon.js +79 -0
- package/lib/commonjs/mappings/RowHeadlineImageCaption.js +169 -0
- package/lib/commonjs/mappings/RowHeadlineImageIcon.js +99 -0
- package/lib/commonjs/mappings/SVG.js +22 -0
- package/lib/commonjs/mappings/SafeAreaView.js +40 -0
- package/lib/commonjs/mappings/ScrollView.js +44 -0
- package/lib/commonjs/mappings/Shadow.js +102 -0
- package/lib/commonjs/mappings/Slider.js +67 -0
- package/lib/commonjs/mappings/StarRating.js +57 -0
- package/lib/commonjs/mappings/Stepper.js +38 -0
- package/lib/commonjs/mappings/Surface.js +21 -0
- package/lib/commonjs/mappings/Swiper.js +70 -0
- package/lib/commonjs/mappings/SwiperItem.js +16 -0
- package/lib/commonjs/mappings/Switch.js +81 -0
- package/lib/commonjs/mappings/TabView.js +74 -0
- package/lib/commonjs/mappings/TabViewItem.js +37 -0
- package/lib/commonjs/mappings/Table.js +140 -0
- package/lib/commonjs/mappings/Text.js +234 -0
- package/lib/commonjs/mappings/TextArea.js +254 -0
- package/lib/commonjs/mappings/TextField.js +360 -0
- package/lib/commonjs/mappings/TextInput.js +345 -0
- package/lib/commonjs/mappings/ToggleButton.js +53 -0
- package/lib/commonjs/mappings/Touchable.js +67 -0
- package/lib/commonjs/mappings/Video.js +82 -0
- package/lib/commonjs/mappings/View.js +186 -0
- package/lib/commonjs/mappings/WebView.js +93 -0
- package/lib/commonjs/mappings/YoutubePlayer.js +38 -0
- package/lib/module/components/AspectRatio.js +18 -1
- package/lib/module/components/BottomSheet/BottomSheet.js +24 -4
- package/lib/module/components/Button.js +33 -10
- package/lib/module/components/Checkbox/Checkbox.js +3 -4
- package/lib/module/components/Checkbox/CheckboxRow.js +24 -6
- package/lib/module/components/Checkbox/context.js +1 -1
- package/lib/module/components/DatePicker/DatePicker.js +27 -13
- package/lib/module/components/DeckSwiper/DeckSwiper.js +1 -4
- package/lib/module/components/DeprecatedButton.js +21 -3
- package/lib/module/components/Divider.js +18 -1
- package/lib/module/components/FormRow.js +17 -2
- package/lib/module/components/NumberInput.js +11 -3
- package/lib/module/components/Picker/PickerComponent.android.js +21 -3
- package/lib/module/components/Portal/PortalHost.js +45 -15
- package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +10 -1
- package/lib/module/components/Shadow.js +15 -2
- package/lib/module/components/StarRating.js +24 -4
- package/lib/module/components/StepIndicator.js +58 -18
- package/lib/module/components/TabView/TabView.js +17 -7
- package/lib/module/components/Table/Table.js +6 -5
- package/lib/module/components/Table/TableRow.js +1 -2
- package/lib/module/constants.js +1 -0
- package/lib/module/mappings/Accordion.js +42 -0
- package/lib/module/mappings/AccordionItem.js +17 -0
- package/lib/module/mappings/ActionSheet.js +14 -0
- package/lib/module/mappings/ActionSheetCancel.js +20 -0
- package/lib/module/mappings/ActionSheetItem.js +24 -0
- package/lib/module/mappings/ActivityIndicator.js +57 -0
- package/lib/module/mappings/AudioPlayer.js +50 -0
- package/lib/module/mappings/AvatarEdit.js +38 -0
- package/lib/module/mappings/Banner.js +32 -0
- package/lib/module/mappings/BlurView.js +42 -0
- package/lib/module/mappings/BottomSheet.js +63 -0
- package/lib/module/mappings/Button.js +88 -0
- package/lib/module/mappings/Card.js +53 -0
- package/lib/module/mappings/Carousel.js +17 -0
- package/lib/module/mappings/Checkbox.js +46 -0
- package/lib/module/mappings/CheckboxGroup.js +26 -0
- package/lib/module/mappings/CheckboxRow.js +57 -0
- package/lib/module/mappings/CircleImage.js +25 -0
- package/lib/module/mappings/CustomCode.js +8 -0
- package/lib/module/mappings/DatePicker.js +174 -0
- package/lib/module/mappings/DeckSwiper.js +48 -0
- package/lib/module/mappings/DeckSwiperCard.js +16 -0
- package/lib/module/mappings/Divider.js +25 -0
- package/lib/module/mappings/FAB.js +37 -0
- package/lib/module/mappings/Fetch.js +13 -0
- package/lib/module/mappings/FieldSearchBarFull.js +52 -0
- package/lib/module/mappings/FlashList.js +104 -0
- package/lib/module/mappings/FlatList.js +51 -0
- package/lib/module/mappings/Icon.js +26 -0
- package/lib/module/mappings/IconButton.js +29 -0
- package/lib/module/mappings/Image.js +29 -0
- package/lib/module/mappings/ImageBackground.js +29 -0
- package/lib/module/mappings/KeyboardAvoidingView.js +41 -0
- package/lib/module/mappings/KeyboardAwareScrollView.js +50 -0
- package/lib/module/mappings/Layout.js +193 -0
- package/lib/module/mappings/LinearGradient.js +81 -0
- package/lib/module/mappings/MapCallout.js +22 -0
- package/lib/module/mappings/MapMarker.js +48 -0
- package/lib/module/mappings/MapView.js +135 -0
- package/lib/module/mappings/Markdown.js +20 -0
- package/lib/module/mappings/Modal.js +42 -0
- package/lib/module/mappings/NativeBase/Layout.js +101 -0
- package/lib/module/mappings/NumberInput.js +230 -0
- package/lib/module/mappings/Picker.js +147 -0
- package/lib/module/mappings/ProgressBar.js +99 -0
- package/lib/module/mappings/ProgressCircle.js +109 -0
- package/lib/module/mappings/RadioButton.js +51 -0
- package/lib/module/mappings/RadioButtonGroup.js +17 -0
- package/lib/module/mappings/RadioButtonRow.js +38 -0
- package/lib/module/mappings/RowBodyIcon.js +72 -0
- package/lib/module/mappings/RowHeadlineImageCaption.js +162 -0
- package/lib/module/mappings/RowHeadlineImageIcon.js +92 -0
- package/lib/module/mappings/SVG.js +15 -0
- package/lib/module/mappings/SafeAreaView.js +33 -0
- package/lib/module/mappings/ScrollView.js +37 -0
- package/lib/module/mappings/Shadow.js +95 -0
- package/lib/module/mappings/Slider.js +60 -0
- package/lib/module/mappings/StarRating.js +51 -0
- package/lib/module/mappings/Stepper.js +31 -0
- package/lib/module/mappings/Surface.js +14 -0
- package/lib/module/mappings/Swiper.js +63 -0
- package/lib/module/mappings/SwiperItem.js +9 -0
- package/lib/module/mappings/Switch.js +74 -0
- package/lib/module/mappings/TabView.js +67 -0
- package/lib/module/mappings/TabViewItem.js +30 -0
- package/lib/module/mappings/Table.js +133 -0
- package/lib/module/mappings/Text.js +227 -0
- package/lib/module/mappings/TextArea.js +247 -0
- package/lib/module/mappings/TextField.js +353 -0
- package/lib/module/mappings/TextInput.js +337 -0
- package/lib/module/mappings/ToggleButton.js +46 -0
- package/lib/module/mappings/Touchable.js +60 -0
- package/lib/module/mappings/Video.js +75 -0
- package/lib/module/mappings/View.js +179 -0
- package/lib/module/mappings/WebView.js +86 -0
- package/lib/module/mappings/YoutubePlayer.js +31 -0
- package/lib/module/utilities.js +1 -2
- package/lib/typescript/src/mappings/Accordion.d.ts +90 -0
- package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -0
- package/lib/typescript/src/mappings/AccordionItem.d.ts +31 -0
- package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActionSheet.d.ts +20 -0
- package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +32 -0
- package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActionSheetItem.d.ts +35 -0
- package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActivityIndicator.d.ts +57 -0
- package/lib/typescript/src/mappings/ActivityIndicator.d.ts.map +1 -0
- package/lib/typescript/src/mappings/AudioPlayer.d.ts +81 -0
- package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -0
- package/lib/typescript/src/mappings/AvatarEdit.d.ts +38 -0
- package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Banner.d.ts +49 -0
- package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
- package/lib/typescript/src/mappings/BlurView.d.ts +42 -0
- package/lib/typescript/src/mappings/BlurView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/BottomSheet.d.ts +115 -0
- package/lib/typescript/src/mappings/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Button.d.ts +222 -0
- package/lib/typescript/src/mappings/Button.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Card.d.ts +114 -0
- package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Carousel.d.ts +34 -0
- package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Checkbox.d.ts +83 -0
- package/lib/typescript/src/mappings/Checkbox.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CheckboxGroup.d.ts +35 -0
- package/lib/typescript/src/mappings/CheckboxGroup.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CheckboxRow.d.ts +108 -0
- package/lib/typescript/src/mappings/CheckboxRow.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CircleImage.d.ts +34 -0
- package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CustomCode.d.ts +8 -0
- package/lib/typescript/src/mappings/CustomCode.d.ts.map +1 -0
- package/lib/typescript/src/mappings/DatePicker.d.ts +168 -0
- package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/DeckSwiper.d.ts +86 -0
- package/lib/typescript/src/mappings/DeckSwiper.d.ts.map +1 -0
- package/lib/typescript/src/mappings/DeckSwiperCard.d.ts +16 -0
- package/lib/typescript/src/mappings/DeckSwiperCard.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Divider.d.ts +25 -0
- package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FAB.d.ts +83 -0
- package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Fetch.d.ts +12 -0
- package/lib/typescript/src/mappings/Fetch.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +56 -0
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FlashList.d.ts +230 -0
- package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FlatList.d.ts +116 -0
- package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Icon.d.ts +42 -0
- package/lib/typescript/src/mappings/Icon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/IconButton.d.ts +72 -0
- package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Image.d.ts +48 -0
- package/lib/typescript/src/mappings/Image.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ImageBackground.d.ts +58 -0
- package/lib/typescript/src/mappings/ImageBackground.d.ts.map +1 -0
- package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +41 -0
- package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +105 -0
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Layout.d.ts +169 -0
- package/lib/typescript/src/mappings/Layout.d.ts.map +1 -0
- package/lib/typescript/src/mappings/LinearGradient.d.ts +99 -0
- package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -0
- package/lib/typescript/src/mappings/MapCallout.d.ts +33 -0
- package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -0
- package/lib/typescript/src/mappings/MapMarker.d.ts +56 -0
- package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/MapView.d.ts +172 -0
- package/lib/typescript/src/mappings/MapView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Markdown.d.ts +20 -0
- package/lib/typescript/src/mappings/Markdown.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Modal.d.ts +52 -0
- package/lib/typescript/src/mappings/Modal.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +133 -0
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NumberInput.d.ts +299 -0
- package/lib/typescript/src/mappings/NumberInput.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Picker.d.ts +170 -0
- package/lib/typescript/src/mappings/Picker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressBar.d.ts +99 -0
- package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressCircle.d.ts +109 -0
- package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RadioButton.d.ts +72 -0
- package/lib/typescript/src/mappings/RadioButton.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +34 -0
- package/lib/typescript/src/mappings/RadioButtonGroup.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RadioButtonRow.d.ts +43 -0
- package/lib/typescript/src/mappings/RadioButtonRow.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts +73 -0
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +166 -0
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +170 -0
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/SVG.d.ts +24 -0
- package/lib/typescript/src/mappings/SVG.d.ts.map +1 -0
- package/lib/typescript/src/mappings/SafeAreaView.d.ts +33 -0
- package/lib/typescript/src/mappings/SafeAreaView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ScrollView.d.ts +72 -0
- package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Shadow.d.ts +173 -0
- package/lib/typescript/src/mappings/Shadow.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Slider.d.ts +110 -0
- package/lib/typescript/src/mappings/Slider.d.ts.map +1 -0
- package/lib/typescript/src/mappings/StarRating.d.ts +75 -0
- package/lib/typescript/src/mappings/StarRating.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Stepper.d.ts +67 -0
- package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Surface.d.ts +24 -0
- package/lib/typescript/src/mappings/Surface.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Swiper.d.ts +119 -0
- package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -0
- package/lib/typescript/src/mappings/SwiperItem.d.ts +9 -0
- package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Switch.d.ts +164 -0
- package/lib/typescript/src/mappings/Switch.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TabView.d.ts +123 -0
- package/lib/typescript/src/mappings/TabView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TabViewItem.d.ts +25 -0
- package/lib/typescript/src/mappings/TabViewItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Table.d.ts +337 -0
- package/lib/typescript/src/mappings/Table.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Text.d.ts +411 -0
- package/lib/typescript/src/mappings/Text.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TextArea.d.ts +263 -0
- package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TextField.d.ts +629 -0
- package/lib/typescript/src/mappings/TextField.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TextInput.d.ts +415 -0
- package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ToggleButton.d.ts +116 -0
- package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Touchable.d.ts +96 -0
- package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Video.d.ts +129 -0
- package/lib/typescript/src/mappings/Video.d.ts.map +1 -0
- package/lib/typescript/src/mappings/View.d.ts +179 -0
- package/lib/typescript/src/mappings/View.d.ts.map +1 -0
- package/lib/typescript/src/mappings/WebView.d.ts +135 -0
- package/lib/typescript/src/mappings/WebView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/YoutubePlayer.d.ts +27 -0
- package/lib/typescript/src/mappings/YoutubePlayer.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/mappings/Accordion.js +50 -0
- package/src/mappings/Accordion.ts +60 -0
- package/src/mappings/AccordionItem.js +17 -0
- package/src/mappings/AccordionItem.ts +24 -0
- package/src/mappings/ActionSheet.js +17 -0
- package/src/mappings/ActionSheet.ts +23 -0
- package/src/mappings/ActionSheetCancel.js +23 -0
- package/src/mappings/ActionSheetCancel.ts +32 -0
- package/src/mappings/ActionSheetItem.js +27 -0
- package/src/mappings/ActionSheetItem.ts +36 -0
- package/src/mappings/ActivityIndicator.js +58 -0
- package/src/mappings/ActivityIndicator.ts +68 -0
- package/src/mappings/AudioPlayer.js +57 -0
- package/src/mappings/AudioPlayer.ts +67 -0
- package/src/mappings/AvatarEdit.js +38 -0
- package/src/mappings/AvatarEdit.ts +45 -0
- package/src/mappings/Banner.js +32 -0
- package/src/mappings/Banner.ts +40 -0
- package/src/mappings/BlurView.js +42 -0
- package/src/mappings/BlurView.ts +51 -0
- package/src/mappings/BottomSheet.js +63 -0
- package/src/mappings/BottomSheet.ts +77 -0
- package/src/mappings/Button.js +116 -0
- package/src/mappings/Button.ts +130 -0
- package/src/mappings/Card.js +52 -0
- package/src/mappings/Card.ts +64 -0
- package/src/mappings/Carousel.js +19 -0
- package/src/mappings/Carousel.ts +25 -0
- package/src/mappings/Checkbox.js +46 -0
- package/src/mappings/Checkbox.ts +57 -0
- package/src/mappings/CheckboxGroup.js +26 -0
- package/src/mappings/CheckboxGroup.ts +37 -0
- package/src/mappings/CheckboxRow.js +61 -0
- package/src/mappings/CheckboxRow.ts +74 -0
- package/src/mappings/CircleImage.js +25 -0
- package/src/mappings/CircleImage.ts +33 -0
- package/src/mappings/CustomCode.js +8 -0
- package/src/mappings/CustomCode.ts +9 -0
- package/src/mappings/DatePicker.js +182 -0
- package/src/mappings/DatePicker.ts +197 -0
- package/src/mappings/DeckSwiper.js +48 -0
- package/src/mappings/DeckSwiper.ts +57 -0
- package/src/mappings/DeckSwiperCard.js +16 -0
- package/src/mappings/DeckSwiperCard.ts +20 -0
- package/src/mappings/Divider.js +27 -0
- package/src/mappings/Divider.ts +34 -0
- package/src/mappings/FAB.js +37 -0
- package/src/mappings/FAB.ts +48 -0
- package/src/mappings/Fetch.js +13 -0
- package/src/mappings/Fetch.ts +14 -0
- package/src/mappings/FieldSearchBarFull.js +50 -0
- package/src/mappings/FieldSearchBarFull.ts +59 -0
- package/src/mappings/FlashList.js +113 -0
- package/src/mappings/FlashList.ts +131 -0
- package/src/mappings/FlatList.js +51 -0
- package/src/mappings/FlatList.ts +64 -0
- package/src/mappings/Icon.js +32 -0
- package/src/mappings/Icon.ts +40 -0
- package/src/mappings/IconButton.js +33 -0
- package/src/mappings/IconButton.ts +44 -0
- package/src/mappings/Image.js +35 -0
- package/src/mappings/Image.ts +44 -0
- package/src/mappings/ImageBackground.js +29 -0
- package/src/mappings/ImageBackground.ts +41 -0
- package/src/mappings/KeyboardAvoidingView.js +41 -0
- package/src/mappings/KeyboardAvoidingView.ts +50 -0
- package/src/mappings/KeyboardAwareScrollView.js +50 -0
- package/src/mappings/KeyboardAwareScrollView.ts +63 -0
- package/src/mappings/Layout.js +200 -0
- package/src/mappings/Layout.ts +207 -0
- package/src/mappings/LinearGradient.js +82 -0
- package/src/mappings/LinearGradient.ts +89 -0
- package/src/mappings/MapCallout.js +26 -0
- package/src/mappings/MapCallout.ts +36 -0
- package/src/mappings/MapMarker.js +52 -0
- package/src/mappings/MapMarker.ts +62 -0
- package/src/mappings/MapView.js +142 -0
- package/src/mappings/MapView.ts +155 -0
- package/src/mappings/Markdown.js +25 -0
- package/src/mappings/Markdown.ts +32 -0
- package/src/mappings/Modal.js +42 -0
- package/src/mappings/Modal.ts +51 -0
- package/src/mappings/NativeBase/Layout.js +124 -0
- package/src/mappings/NativeBase/Layout.ts +145 -0
- package/src/mappings/NumberInput.js +254 -0
- package/src/mappings/NumberInput.ts +274 -0
- package/src/mappings/Picker.js +153 -0
- package/src/mappings/Picker.ts +169 -0
- package/src/mappings/ProgressBar.js +101 -0
- package/src/mappings/ProgressBar.ts +110 -0
- package/src/mappings/ProgressCircle.js +109 -0
- package/src/mappings/ProgressCircle.ts +117 -0
- package/src/mappings/RadioButton.js +51 -0
- package/src/mappings/RadioButton.ts +62 -0
- package/src/mappings/RadioButtonGroup.js +17 -0
- package/src/mappings/RadioButtonGroup.ts +24 -0
- package/src/mappings/RadioButtonRow.js +42 -0
- package/src/mappings/RadioButtonRow.ts +51 -0
- package/src/mappings/RowBodyIcon.js +75 -0
- package/src/mappings/RowBodyIcon.ts +82 -0
- package/src/mappings/RowHeadlineImageCaption.js +167 -0
- package/src/mappings/RowHeadlineImageCaption.ts +178 -0
- package/src/mappings/RowHeadlineImageIcon.js +99 -0
- package/src/mappings/RowHeadlineImageIcon.ts +116 -0
- package/src/mappings/SVG.js +20 -0
- package/src/mappings/SVG.ts +25 -0
- package/src/mappings/SafeAreaView.js +33 -0
- package/src/mappings/SafeAreaView.ts +39 -0
- package/src/mappings/ScrollView.js +37 -0
- package/src/mappings/ScrollView.ts +48 -0
- package/src/mappings/Shadow.js +95 -0
- package/src/mappings/Shadow.ts +104 -0
- package/src/mappings/Slider.js +60 -0
- package/src/mappings/Slider.ts +70 -0
- package/src/mappings/StarRating.js +43 -0
- package/src/mappings/StarRating.ts +52 -0
- package/src/mappings/Stepper.js +32 -0
- package/src/mappings/Stepper.ts +42 -0
- package/src/mappings/Surface.js +14 -0
- package/src/mappings/Surface.ts +19 -0
- package/src/mappings/Swiper.js +71 -0
- package/src/mappings/Swiper.ts +82 -0
- package/src/mappings/SwiperItem.js +9 -0
- package/src/mappings/SwiperItem.ts +13 -0
- package/src/mappings/Switch.js +81 -0
- package/src/mappings/Switch.ts +92 -0
- package/src/mappings/TabView.js +75 -0
- package/src/mappings/TabView.ts +85 -0
- package/src/mappings/TabViewItem.js +30 -0
- package/src/mappings/TabViewItem.ts +38 -0
- package/src/mappings/Table.js +150 -0
- package/src/mappings/Table.ts +170 -0
- package/src/mappings/Text.js +251 -0
- package/src/mappings/Text.ts +276 -0
- package/src/mappings/TextArea.js +283 -0
- package/src/mappings/TextArea.ts +300 -0
- package/src/mappings/TextField.js +400 -0
- package/src/mappings/TextField.ts +423 -0
- package/src/mappings/TextInput.js +402 -0
- package/src/mappings/TextInput.ts +431 -0
- package/src/mappings/ToggleButton.js +50 -0
- package/src/mappings/ToggleButton.ts +63 -0
- package/src/mappings/Touchable.js +67 -0
- package/src/mappings/Touchable.ts +80 -0
- package/src/mappings/Video.js +81 -0
- package/src/mappings/Video.ts +95 -0
- package/src/mappings/View.js +207 -0
- package/src/mappings/View.ts +229 -0
- package/src/mappings/WebView.js +88 -0
- package/src/mappings/WebView.ts +107 -0
- package/src/mappings/YoutubePlayer.js +31 -0
- package/src/mappings/YoutubePlayer.ts +37 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SEED_DATA = {
|
|
9
|
+
name: "Accordion",
|
|
10
|
+
tag: "AccordionGroup",
|
|
11
|
+
description: "An expandable container containing components",
|
|
12
|
+
category: _types.COMPONENT_TYPES.container,
|
|
13
|
+
stylesPanelSections: [_types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Effects],
|
|
14
|
+
layout: {
|
|
15
|
+
paddingTop: 8,
|
|
16
|
+
paddingRight: 8,
|
|
17
|
+
paddingBottom: 8,
|
|
18
|
+
paddingLeft: 8,
|
|
19
|
+
fontSize: 16
|
|
20
|
+
},
|
|
21
|
+
props: {
|
|
22
|
+
label: (0, _types.createTextProp)({
|
|
23
|
+
label: "Label"
|
|
24
|
+
}),
|
|
25
|
+
expanded: (0, _types.createStaticBoolProp)({
|
|
26
|
+
label: "Expanded",
|
|
27
|
+
description: "Whether the AccordionGroup should be initaially expanded or not"
|
|
28
|
+
}),
|
|
29
|
+
openColor: (0, _types.createColorProp)({
|
|
30
|
+
label: "Open text color"
|
|
31
|
+
}),
|
|
32
|
+
closedColor: (0, _types.createColorProp)({
|
|
33
|
+
label: "Closed text color"
|
|
34
|
+
}),
|
|
35
|
+
caretColor: (0, _types.createColorProp)({
|
|
36
|
+
label: "Caret color"
|
|
37
|
+
}),
|
|
38
|
+
caretSize: (0, _types.createNumberProp)({
|
|
39
|
+
label: "Caret size",
|
|
40
|
+
defaultValue: 24
|
|
41
|
+
}),
|
|
42
|
+
icon: (0, _types.createIconProp)(),
|
|
43
|
+
iconSize: (0, _types.createNumberProp)({
|
|
44
|
+
label: "Icon size",
|
|
45
|
+
defaultValue: 24
|
|
46
|
+
})
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SEED_DATA = {
|
|
9
|
+
name: "Accordion Item",
|
|
10
|
+
tag: "AccordionItem",
|
|
11
|
+
description: "Item to be used in Accordion",
|
|
12
|
+
category: _types.COMPONENT_TYPES.deprecated,
|
|
13
|
+
stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
14
|
+
props: {
|
|
15
|
+
icon: (0, _types.createIconProp)(),
|
|
16
|
+
label: (0, _types.createTextProp)({
|
|
17
|
+
label: "Item label"
|
|
18
|
+
}),
|
|
19
|
+
iconColor: (0, _types.createColorProp)({
|
|
20
|
+
label: "Icon color"
|
|
21
|
+
})
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SEED_DATA = {
|
|
9
|
+
name: "Action Sheet",
|
|
10
|
+
tag: "ActionSheet",
|
|
11
|
+
description: "Action Sheet container",
|
|
12
|
+
category: _types.COMPONENT_TYPES.actionsheet,
|
|
13
|
+
stylesPanelSections: [_types.StylesPanelSections.Margins, _types.StylesPanelSections.Effects],
|
|
14
|
+
props: {
|
|
15
|
+
visible: (0, _types.createStaticBoolProp)({
|
|
16
|
+
group: _types.GROUPS.data,
|
|
17
|
+
label: "Show Action Sheet"
|
|
18
|
+
})
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SEED_DATA = {
|
|
9
|
+
name: "Action Sheet Cancel",
|
|
10
|
+
tag: "ActionSheetCancel",
|
|
11
|
+
description: "Action Sheet cancel",
|
|
12
|
+
stylesPanelSections: [_types.StylesPanelSections.Margins, _types.StylesPanelSections.Effects],
|
|
13
|
+
category: _types.COMPONENT_TYPES.actionsheet,
|
|
14
|
+
triggers: [_types.Triggers.OnPress],
|
|
15
|
+
props: {
|
|
16
|
+
onPress: (0, _types.createActionProp)(),
|
|
17
|
+
label: (0, _types.createTextProp)({
|
|
18
|
+
group: _types.GROUPS.basic,
|
|
19
|
+
label: "Label",
|
|
20
|
+
defaultValue: "Cancel"
|
|
21
|
+
}),
|
|
22
|
+
color: (0, _types.createColorProp)({
|
|
23
|
+
label: "Font Color"
|
|
24
|
+
})
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SEED_DATA = {
|
|
9
|
+
name: "Action Sheet Item",
|
|
10
|
+
tag: "ActionSheetItem",
|
|
11
|
+
description: "Action Sheet item",
|
|
12
|
+
category: _types.COMPONENT_TYPES.actionsheet,
|
|
13
|
+
stylesPanelSections: [_types.StylesPanelSections.Margins, _types.StylesPanelSections.Effects],
|
|
14
|
+
triggers: [_types.Triggers.OnPress],
|
|
15
|
+
layout: {
|
|
16
|
+
textAlign: "center"
|
|
17
|
+
},
|
|
18
|
+
props: {
|
|
19
|
+
onPress: (0, _types.createActionProp)(),
|
|
20
|
+
label: (0, _types.createTextProp)({
|
|
21
|
+
group: _types.GROUPS.basic,
|
|
22
|
+
label: "Label",
|
|
23
|
+
defaultValue: "Option"
|
|
24
|
+
}),
|
|
25
|
+
color: (0, _types.createColorProp)({
|
|
26
|
+
label: "Font Color",
|
|
27
|
+
defaultValue: "strong"
|
|
28
|
+
})
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SEED_DATA = {
|
|
9
|
+
name: "Activity Indicator",
|
|
10
|
+
tag: "ActivityIndicator",
|
|
11
|
+
description: "Displays a circular loading indicator.",
|
|
12
|
+
doc_link: "https://docs.expo.io/versions/latest/react-native/activityindicator/",
|
|
13
|
+
code_link: "https://github.com/expo/expo/blob/master/ios/versioned-react-native/ABI32_0_0/Libraries/Components/ActivityIndicator/ActivityIndicator.js",
|
|
14
|
+
category: _types.COMPONENT_TYPES.utility,
|
|
15
|
+
stylesPanelSections: [_types.StylesPanelSections.Size, _types.StylesPanelSections.Margins, _types.StylesPanelSections.Borders],
|
|
16
|
+
layout: {
|
|
17
|
+
width: 36,
|
|
18
|
+
height: 36
|
|
19
|
+
},
|
|
20
|
+
props: {
|
|
21
|
+
size: {
|
|
22
|
+
label: "Size",
|
|
23
|
+
description: "The size of the loading indicator (Default: small)",
|
|
24
|
+
options: ["small", "large"],
|
|
25
|
+
formType: _types.FORM_TYPES.flatArray,
|
|
26
|
+
propType: _types.PROP_TYPES.STRING,
|
|
27
|
+
editable: true,
|
|
28
|
+
required: false,
|
|
29
|
+
defaultValue: "small",
|
|
30
|
+
group: _types.GROUPS.basic
|
|
31
|
+
},
|
|
32
|
+
animating: {
|
|
33
|
+
label: "Spinning",
|
|
34
|
+
description: "Whether to show the loading indicator (Default: true)",
|
|
35
|
+
formType: _types.FORM_TYPES.boolean,
|
|
36
|
+
propType: _types.PROP_TYPES.BOOLEAN,
|
|
37
|
+
editable: true,
|
|
38
|
+
required: false,
|
|
39
|
+
defaultValue: true,
|
|
40
|
+
group: _types.GROUPS.basic
|
|
41
|
+
},
|
|
42
|
+
hidesWhenStopped: {
|
|
43
|
+
label: "Hide When Stopped",
|
|
44
|
+
description: "Whether the indicator should hide when not animating (Default: true)",
|
|
45
|
+
formType: _types.FORM_TYPES.boolean,
|
|
46
|
+
propType: _types.PROP_TYPES.BOOLEAN,
|
|
47
|
+
editable: true,
|
|
48
|
+
required: false,
|
|
49
|
+
defaultValue: true,
|
|
50
|
+
group: _types.GROUPS.basic
|
|
51
|
+
},
|
|
52
|
+
color: {
|
|
53
|
+
label: "Color",
|
|
54
|
+
description: "The color of the loading indicator (Default: gray)",
|
|
55
|
+
formType: _types.FORM_TYPES.color,
|
|
56
|
+
propType: _types.PROP_TYPES.THEME,
|
|
57
|
+
editable: true,
|
|
58
|
+
required: false,
|
|
59
|
+
defaultValue: null,
|
|
60
|
+
group: _types.GROUPS.basic
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SEED_DATA = {
|
|
9
|
+
name: "Audio Player",
|
|
10
|
+
tag: "AudioPlayer",
|
|
11
|
+
description: "Given a source URL, plays sounds & audio!",
|
|
12
|
+
category: _types.COMPONENT_TYPES.media,
|
|
13
|
+
stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position],
|
|
14
|
+
layout: {
|
|
15
|
+
backgroundColor: "#eee",
|
|
16
|
+
paddingLeft: 16,
|
|
17
|
+
paddingRight: 16,
|
|
18
|
+
paddingTop: 8,
|
|
19
|
+
paddingBottom: 8,
|
|
20
|
+
borderRadius: 24,
|
|
21
|
+
flexDirection: "row",
|
|
22
|
+
alignItems: "center"
|
|
23
|
+
},
|
|
24
|
+
props: {
|
|
25
|
+
source: {
|
|
26
|
+
group: _types.GROUPS.data,
|
|
27
|
+
label: "Source",
|
|
28
|
+
description: "The source URL for the audio file.",
|
|
29
|
+
editable: true,
|
|
30
|
+
required: true,
|
|
31
|
+
defaultValue: "https://static.draftbit.com/audio/intro-to-draftbit-audio.mp3",
|
|
32
|
+
formType: _types.FORM_TYPES.sourceUrl,
|
|
33
|
+
propType: _types.PROP_TYPES.OBJECT
|
|
34
|
+
},
|
|
35
|
+
sliderColor: (0, _types.createColorProp)({
|
|
36
|
+
label: "Thumb Color",
|
|
37
|
+
defaultValue: "strong"
|
|
38
|
+
}),
|
|
39
|
+
completedTrackColor: (0, _types.createColorProp)({
|
|
40
|
+
label: "Completed Track Color",
|
|
41
|
+
defaultValue: "background"
|
|
42
|
+
}),
|
|
43
|
+
remainingTrackColor: (0, _types.createColorProp)({
|
|
44
|
+
label: "Remaining Track Color",
|
|
45
|
+
defaultValue: "light"
|
|
46
|
+
}),
|
|
47
|
+
trackThumbSize: (0, _types.createNumberProp)({
|
|
48
|
+
label: "Thumb Size",
|
|
49
|
+
defaultValue: 24
|
|
50
|
+
}),
|
|
51
|
+
playIconColor: (0, _types.createColorProp)({
|
|
52
|
+
label: "Play Icon Color",
|
|
53
|
+
defaultValue: "strong"
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SEED_DATA = {
|
|
9
|
+
name: "Avatar Edit",
|
|
10
|
+
tag: "AvatarEdit",
|
|
11
|
+
description: "An avatar with an edit icon in the top right",
|
|
12
|
+
category: _types.COMPONENT_TYPES.deprecated,
|
|
13
|
+
stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
|
|
14
|
+
layout: {
|
|
15
|
+
width: 64,
|
|
16
|
+
height: 64
|
|
17
|
+
},
|
|
18
|
+
props: {
|
|
19
|
+
size: {
|
|
20
|
+
group: _types.GROUPS.basic,
|
|
21
|
+
label: "Size",
|
|
22
|
+
description: "Size of avatar / width, height",
|
|
23
|
+
editable: true,
|
|
24
|
+
required: false,
|
|
25
|
+
formType: _types.FORM_TYPES.number,
|
|
26
|
+
propType: _types.PROP_TYPES.NUMBER,
|
|
27
|
+
min: 0,
|
|
28
|
+
max: 300,
|
|
29
|
+
precision: 0,
|
|
30
|
+
step: 1,
|
|
31
|
+
defaultValue: 80
|
|
32
|
+
},
|
|
33
|
+
image: {
|
|
34
|
+
group: _types.GROUPS.data,
|
|
35
|
+
label: "Image",
|
|
36
|
+
description: "Name of the image",
|
|
37
|
+
editable: true,
|
|
38
|
+
required: true,
|
|
39
|
+
formType: _types.FORM_TYPES.image,
|
|
40
|
+
propType: _types.PROP_TYPES.ASSET,
|
|
41
|
+
defaultValue: "brightness-5"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SEED_DATA = {
|
|
9
|
+
name: "Banner",
|
|
10
|
+
tag: "Banner",
|
|
11
|
+
category: _types.COMPONENT_TYPES.deprecated,
|
|
12
|
+
props: {
|
|
13
|
+
icon: (0, _types.createIconProp)({
|
|
14
|
+
defaultValue: null,
|
|
15
|
+
required: false
|
|
16
|
+
}),
|
|
17
|
+
content: (0, _types.createTextProp)({
|
|
18
|
+
label: "Content",
|
|
19
|
+
description: "Banner text content"
|
|
20
|
+
}),
|
|
21
|
+
initiallyVisible: (0, _types.createBoolProp)({
|
|
22
|
+
group: _types.GROUPS.basic,
|
|
23
|
+
label: "Initially visible",
|
|
24
|
+
description: "Whether the banner should be visible",
|
|
25
|
+
defaultValue: true
|
|
26
|
+
}),
|
|
27
|
+
dismissable: (0, _types.createBoolProp)({
|
|
28
|
+
group: _types.GROUPS.basic,
|
|
29
|
+
label: "Dismissable",
|
|
30
|
+
description: "Whether the banner should be able to be closed",
|
|
31
|
+
defaultValue: true
|
|
32
|
+
}),
|
|
33
|
+
buttonColor: (0, _types.createColorProp)({
|
|
34
|
+
label: "Button color",
|
|
35
|
+
defaultValue: "primary"
|
|
36
|
+
})
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SEED_DATA = {
|
|
9
|
+
name: "Blur View",
|
|
10
|
+
tag: "BlurView",
|
|
11
|
+
description: "Expo Blur View",
|
|
12
|
+
doc_link: "https://docs.expo.io/versions/latest/sdk/blur-view/",
|
|
13
|
+
code_link: "https://github.com/expo/expo/blob/master/packages/expo/src/effects/BlurView.d.ts",
|
|
14
|
+
category: _types.COMPONENT_TYPES.view,
|
|
15
|
+
stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
16
|
+
layout: {
|
|
17
|
+
flexGrow: 1,
|
|
18
|
+
flexShrink: 1,
|
|
19
|
+
flexBasis: 0
|
|
20
|
+
},
|
|
21
|
+
props: {
|
|
22
|
+
tint: {
|
|
23
|
+
label: "Tint",
|
|
24
|
+
description: "The tint of the blur view",
|
|
25
|
+
editable: true,
|
|
26
|
+
required: true,
|
|
27
|
+
defaultValue: "default",
|
|
28
|
+
formType: _types.FORM_TYPES.flatArray,
|
|
29
|
+
propType: _types.PROP_TYPES.STRING,
|
|
30
|
+
options: ["default", "light", "dark"],
|
|
31
|
+
group: _types.GROUPS.basic
|
|
32
|
+
},
|
|
33
|
+
intensity: {
|
|
34
|
+
label: "Intensity",
|
|
35
|
+
description: "A number from 1 to 100 that controls the intensity of the blur effect",
|
|
36
|
+
editable: true,
|
|
37
|
+
required: true,
|
|
38
|
+
defaultValue: 50,
|
|
39
|
+
formType: _types.FORM_TYPES.number,
|
|
40
|
+
propType: _types.PROP_TYPES.NUMBER,
|
|
41
|
+
min: 0,
|
|
42
|
+
max: 100,
|
|
43
|
+
step: 1,
|
|
44
|
+
precision: 0,
|
|
45
|
+
group: _types.GROUPS.basic
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SEED_DATA = {
|
|
9
|
+
name: "Bottom Sheet",
|
|
10
|
+
tag: "BottomSheet",
|
|
11
|
+
description: "A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
|
|
12
|
+
category: _types.COMPONENT_TYPES.bottomsheet,
|
|
13
|
+
stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
14
|
+
triggers: [_types.Triggers.OnSettle],
|
|
15
|
+
props: {
|
|
16
|
+
onSettle: (0, _types.createActionProp)({
|
|
17
|
+
label: "On settle",
|
|
18
|
+
description: "Action to execute when sheet settles on a snap point"
|
|
19
|
+
}),
|
|
20
|
+
snapPoints: (0, _types.createArrayProp)({
|
|
21
|
+
label: "Snap points",
|
|
22
|
+
description: "An array of numerical values (that represent distance from the top) where bottom sheet can snap to place. Accepts numbers and percentages (minimum 2 snap points)",
|
|
23
|
+
defaultValue: ["10%", "50%", "80%"]
|
|
24
|
+
}),
|
|
25
|
+
initialSnapIndex: (0, _types.createStaticNumberProp)({
|
|
26
|
+
label: "Initial snap index",
|
|
27
|
+
description: "Index of the snap point to be used as the initial point",
|
|
28
|
+
defaultValue: 0,
|
|
29
|
+
required: false
|
|
30
|
+
}),
|
|
31
|
+
showHandle: (0, _types.createStaticBoolProp)({
|
|
32
|
+
label: "Show handle",
|
|
33
|
+
description: "Whether to show the top sheet handle or not",
|
|
34
|
+
defaultValue: true
|
|
35
|
+
}),
|
|
36
|
+
handleColor: (0, _types.createColorProp)({
|
|
37
|
+
label: "Handle color",
|
|
38
|
+
description: "Color of the top handle",
|
|
39
|
+
defaultValue: "divider"
|
|
40
|
+
}),
|
|
41
|
+
topBorderRadius: (0, _types.createStaticNumberProp)({
|
|
42
|
+
label: "Top border radius",
|
|
43
|
+
description: "Border radius of top corners",
|
|
44
|
+
defaultValue: 20,
|
|
45
|
+
required: false
|
|
46
|
+
}),
|
|
47
|
+
borderWidth: (0, _types.createStaticNumberProp)({
|
|
48
|
+
label: "Border width",
|
|
49
|
+
description: "Width of bottom sheet borders",
|
|
50
|
+
defaultValue: 1,
|
|
51
|
+
required: false
|
|
52
|
+
}),
|
|
53
|
+
borderColor: (0, _types.createColorProp)({
|
|
54
|
+
label: "Border color",
|
|
55
|
+
description: "Color of bottom sheet borders",
|
|
56
|
+
defaultValue: "divider"
|
|
57
|
+
}),
|
|
58
|
+
showsVerticalScrollIndicator: (0, _types.createStaticBoolProp)({
|
|
59
|
+
label: "Show Vertical Scroll Indicator",
|
|
60
|
+
description: "When true, shows a vertical scroll indicator. The default value is true.",
|
|
61
|
+
defaultValue: true
|
|
62
|
+
}),
|
|
63
|
+
bounces: (0, _types.createStaticBoolProp)({
|
|
64
|
+
label: "Bounce",
|
|
65
|
+
description: "When true, the scroll view bounces when it reaches the end of the content if the content is larger then the scroll view along the axis of the scroll direction.",
|
|
66
|
+
defaultValue: true
|
|
67
|
+
})
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SEED_DATA_TRIGGERS = [_types.Triggers.OnPress, _types.Triggers.OnLongPress];
|
|
9
|
+
const SEED_DATA_PROPS = {
|
|
10
|
+
onPress: (0, _types.createActionProp)(),
|
|
11
|
+
onLongPress: (0, _types.createActionProp)(),
|
|
12
|
+
icon: (0, _types.createIconProp)({
|
|
13
|
+
defaultValue: null,
|
|
14
|
+
required: false
|
|
15
|
+
}),
|
|
16
|
+
title: (0, _types.createTextProp)({
|
|
17
|
+
label: "Label",
|
|
18
|
+
description: "Button Label",
|
|
19
|
+
defaultValue: "Get Started"
|
|
20
|
+
}),
|
|
21
|
+
disabled: (0, _types.createDisabledProp)(),
|
|
22
|
+
loading: (0, _types.createLoadingProp)(),
|
|
23
|
+
activeOpacity: (0, _types.createStaticNumberProp)({
|
|
24
|
+
label: "Active Opacity",
|
|
25
|
+
description: "Opacity of the button when active.",
|
|
26
|
+
defaultValue: null,
|
|
27
|
+
min: 0,
|
|
28
|
+
max: 1,
|
|
29
|
+
step: 0.01,
|
|
30
|
+
precision: 2,
|
|
31
|
+
required: false
|
|
32
|
+
}),
|
|
33
|
+
disabledOpacity: (0, _types.createStaticNumberProp)({
|
|
34
|
+
label: "Disabled Opacity",
|
|
35
|
+
description: "Opacity of the button when disabled.",
|
|
36
|
+
defaultValue: null,
|
|
37
|
+
min: 0,
|
|
38
|
+
max: 1,
|
|
39
|
+
step: 0.01,
|
|
40
|
+
precision: 2,
|
|
41
|
+
required: false
|
|
42
|
+
}),
|
|
43
|
+
delayLongPress: (0, _types.createStaticNumberProp)({
|
|
44
|
+
label: "Delay Long Press",
|
|
45
|
+
description: "Duration (in milliseconds) from onPressIn before onLongPress is called.",
|
|
46
|
+
required: false
|
|
47
|
+
}),
|
|
48
|
+
hitSlop: (0, _types.createStaticNumberProp)({
|
|
49
|
+
label: "Hit Slop",
|
|
50
|
+
description: "Sets additional distance outside of element in which a press can be detected",
|
|
51
|
+
required: false
|
|
52
|
+
})
|
|
53
|
+
};
|
|
54
|
+
const SEED_DATA = [{
|
|
55
|
+
name: "Button Outline",
|
|
56
|
+
tag: "ButtonOutline",
|
|
57
|
+
category: _types.COMPONENT_TYPES.deprecated,
|
|
58
|
+
stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Effects],
|
|
59
|
+
layout: {
|
|
60
|
+
borderRadius: 8,
|
|
61
|
+
fontFamily: "system-700",
|
|
62
|
+
backgroundColor: "transparent",
|
|
63
|
+
borderWidth: 1,
|
|
64
|
+
textAlign: "center"
|
|
65
|
+
},
|
|
66
|
+
triggers: SEED_DATA_TRIGGERS,
|
|
67
|
+
props: SEED_DATA_PROPS
|
|
68
|
+
}, {
|
|
69
|
+
name: "Button Solid",
|
|
70
|
+
tag: "ButtonSolid",
|
|
71
|
+
category: _types.COMPONENT_TYPES.deprecated,
|
|
72
|
+
stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Effects],
|
|
73
|
+
layout: {
|
|
74
|
+
borderRadius: 8,
|
|
75
|
+
fontFamily: "system-700",
|
|
76
|
+
backgroundColor: "primary",
|
|
77
|
+
textAlign: "center"
|
|
78
|
+
},
|
|
79
|
+
triggers: SEED_DATA_TRIGGERS,
|
|
80
|
+
props: SEED_DATA_PROPS
|
|
81
|
+
}, {
|
|
82
|
+
name: "Button",
|
|
83
|
+
tag: "Button",
|
|
84
|
+
category: _types.COMPONENT_TYPES.button,
|
|
85
|
+
stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Effects],
|
|
86
|
+
layout: {
|
|
87
|
+
borderRadius: 8,
|
|
88
|
+
fontFamily: "system-700",
|
|
89
|
+
backgroundColor: "primary",
|
|
90
|
+
textAlign: "center"
|
|
91
|
+
},
|
|
92
|
+
triggers: SEED_DATA_TRIGGERS,
|
|
93
|
+
props: SEED_DATA_PROPS
|
|
94
|
+
}];
|
|
95
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SEED_DATA = {
|
|
9
|
+
name: "Card",
|
|
10
|
+
tag: "Card",
|
|
11
|
+
description: "A card you can customize however you'd like",
|
|
12
|
+
category: _types.COMPONENT_TYPES.card,
|
|
13
|
+
triggers: [_types.Triggers.OnPress, _types.Triggers.OnPressIcon],
|
|
14
|
+
props: {
|
|
15
|
+
onPress: (0, _types.createActionProp)(),
|
|
16
|
+
onPressIcon: (0, _types.createActionProp)({
|
|
17
|
+
handlerPropName: "onPressIcon"
|
|
18
|
+
}),
|
|
19
|
+
elevation: (0, _types.createElevationType)(3),
|
|
20
|
+
image: (0, _types.createImageProp)(),
|
|
21
|
+
title: (0, _types.createTextProp)({
|
|
22
|
+
label: "Title",
|
|
23
|
+
description: "Large title text",
|
|
24
|
+
// defaultValue: "Title",
|
|
25
|
+
defaultValue: null
|
|
26
|
+
}),
|
|
27
|
+
titleStyle: (0, _types.createTextStyle)({
|
|
28
|
+
label: "Title Style"
|
|
29
|
+
}),
|
|
30
|
+
subtitle: (0, _types.createTextProp)({
|
|
31
|
+
label: "Subtitle",
|
|
32
|
+
description: "Text underneath the title",
|
|
33
|
+
defaultValue: null
|
|
34
|
+
// defaultValue: "Edit me in the props panel on the right",
|
|
35
|
+
}),
|
|
36
|
+
|
|
37
|
+
subtitleStyle: (0, _types.createTextStyle)({
|
|
38
|
+
label: "Subtitle Style"
|
|
39
|
+
}),
|
|
40
|
+
description: (0, _types.createTextProp)({
|
|
41
|
+
label: "Description",
|
|
42
|
+
description: "Smallest text underneath subtitle",
|
|
43
|
+
// defaultValue:
|
|
44
|
+
// "This bottom text is optional, but shows up to make your life a little easier!",
|
|
45
|
+
defaultValue: null
|
|
46
|
+
}),
|
|
47
|
+
descriptionStyle: (0, _types.createTextStyle)({
|
|
48
|
+
label: "Description Style"
|
|
49
|
+
}),
|
|
50
|
+
icon: (0, _types.createIconProp)(),
|
|
51
|
+
aspectRatio: (0, _types.createAspectRatioProp)({
|
|
52
|
+
defaultValue: 1.5
|
|
53
|
+
}),
|
|
54
|
+
textCentered: (0, _types.createStaticBoolProp)({
|
|
55
|
+
label: "Centered Text",
|
|
56
|
+
description: "Places your title and subtitle in the center"
|
|
57
|
+
})
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
var _types = require("@draftbit/types");
|
|
8
|
+
const SEED_DATA = [{
|
|
9
|
+
name: "Carousel",
|
|
10
|
+
tag: "Carousel",
|
|
11
|
+
category: _types.COMPONENT_TYPES.deprecated,
|
|
12
|
+
stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
|
|
13
|
+
description: "A horizontal scrolling carousel of images",
|
|
14
|
+
layout: {
|
|
15
|
+
height: 250
|
|
16
|
+
},
|
|
17
|
+
props: {
|
|
18
|
+
resizeMode: (0, _types.createResizeModeProp)(),
|
|
19
|
+
dotColor: (0, _types.createColorProp)({
|
|
20
|
+
label: "Dot color"
|
|
21
|
+
})
|
|
22
|
+
}
|
|
23
|
+
}];
|
|
24
|
+
exports.SEED_DATA = SEED_DATA;
|