@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,42 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, GROUPS, CONTAINER_COMPONENT_STYLES_SECTIONS } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Blur View",
|
|
4
|
+
tag: "BlurView",
|
|
5
|
+
description: "Expo Blur View",
|
|
6
|
+
doc_link: "https://docs.expo.io/versions/latest/sdk/blur-view/",
|
|
7
|
+
code_link: "https://github.com/expo/expo/blob/master/packages/expo/src/effects/BlurView.d.ts",
|
|
8
|
+
category: COMPONENT_TYPES.view,
|
|
9
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
10
|
+
layout: {
|
|
11
|
+
flexGrow: 1,
|
|
12
|
+
flexShrink: 1,
|
|
13
|
+
flexBasis: 0
|
|
14
|
+
},
|
|
15
|
+
props: {
|
|
16
|
+
tint: {
|
|
17
|
+
label: "Tint",
|
|
18
|
+
description: "The tint of the blur view",
|
|
19
|
+
editable: true,
|
|
20
|
+
required: true,
|
|
21
|
+
defaultValue: "default",
|
|
22
|
+
formType: FORM_TYPES.flatArray,
|
|
23
|
+
propType: PROP_TYPES.STRING,
|
|
24
|
+
options: ["default", "light", "dark"],
|
|
25
|
+
group: GROUPS.basic
|
|
26
|
+
},
|
|
27
|
+
intensity: {
|
|
28
|
+
label: "Intensity",
|
|
29
|
+
description: "A number from 1 to 100 that controls the intensity of the blur effect",
|
|
30
|
+
editable: true,
|
|
31
|
+
required: true,
|
|
32
|
+
defaultValue: 50,
|
|
33
|
+
formType: FORM_TYPES.number,
|
|
34
|
+
propType: PROP_TYPES.NUMBER,
|
|
35
|
+
min: 0,
|
|
36
|
+
max: 100,
|
|
37
|
+
step: 1,
|
|
38
|
+
precision: 0,
|
|
39
|
+
group: GROUPS.basic
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp, createStaticNumberProp, createArrayProp } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Bottom Sheet",
|
|
4
|
+
tag: "BottomSheet",
|
|
5
|
+
description: "A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
|
|
6
|
+
category: COMPONENT_TYPES.bottomsheet,
|
|
7
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
|
+
triggers: [Triggers.OnSettle],
|
|
9
|
+
props: {
|
|
10
|
+
onSettle: createActionProp({
|
|
11
|
+
label: "On settle",
|
|
12
|
+
description: "Action to execute when sheet settles on a snap point"
|
|
13
|
+
}),
|
|
14
|
+
snapPoints: createArrayProp({
|
|
15
|
+
label: "Snap points",
|
|
16
|
+
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)",
|
|
17
|
+
defaultValue: ["10%", "50%", "80%"]
|
|
18
|
+
}),
|
|
19
|
+
initialSnapIndex: createStaticNumberProp({
|
|
20
|
+
label: "Initial snap index",
|
|
21
|
+
description: "Index of the snap point to be used as the initial point",
|
|
22
|
+
defaultValue: 0,
|
|
23
|
+
required: false
|
|
24
|
+
}),
|
|
25
|
+
showHandle: createStaticBoolProp({
|
|
26
|
+
label: "Show handle",
|
|
27
|
+
description: "Whether to show the top sheet handle or not",
|
|
28
|
+
defaultValue: true
|
|
29
|
+
}),
|
|
30
|
+
handleColor: createColorProp({
|
|
31
|
+
label: "Handle color",
|
|
32
|
+
description: "Color of the top handle",
|
|
33
|
+
defaultValue: "divider"
|
|
34
|
+
}),
|
|
35
|
+
topBorderRadius: createStaticNumberProp({
|
|
36
|
+
label: "Top border radius",
|
|
37
|
+
description: "Border radius of top corners",
|
|
38
|
+
defaultValue: 20,
|
|
39
|
+
required: false
|
|
40
|
+
}),
|
|
41
|
+
borderWidth: createStaticNumberProp({
|
|
42
|
+
label: "Border width",
|
|
43
|
+
description: "Width of bottom sheet borders",
|
|
44
|
+
defaultValue: 1,
|
|
45
|
+
required: false
|
|
46
|
+
}),
|
|
47
|
+
borderColor: createColorProp({
|
|
48
|
+
label: "Border color",
|
|
49
|
+
description: "Color of bottom sheet borders",
|
|
50
|
+
defaultValue: "divider"
|
|
51
|
+
}),
|
|
52
|
+
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
53
|
+
label: "Show Vertical Scroll Indicator",
|
|
54
|
+
description: "When true, shows a vertical scroll indicator. The default value is true.",
|
|
55
|
+
defaultValue: true
|
|
56
|
+
}),
|
|
57
|
+
bounces: createStaticBoolProp({
|
|
58
|
+
label: "Bounce",
|
|
59
|
+
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.",
|
|
60
|
+
defaultValue: true
|
|
61
|
+
})
|
|
62
|
+
}
|
|
63
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createIconProp, createTextProp, createDisabledProp, createLoadingProp, createActionProp, Triggers, StylesPanelSections, createStaticNumberProp } from "@draftbit/types";
|
|
2
|
+
const SEED_DATA_TRIGGERS = [Triggers.OnPress, Triggers.OnLongPress];
|
|
3
|
+
const SEED_DATA_PROPS = {
|
|
4
|
+
onPress: createActionProp(),
|
|
5
|
+
onLongPress: createActionProp(),
|
|
6
|
+
icon: createIconProp({
|
|
7
|
+
defaultValue: null,
|
|
8
|
+
required: false
|
|
9
|
+
}),
|
|
10
|
+
title: createTextProp({
|
|
11
|
+
label: "Label",
|
|
12
|
+
description: "Button Label",
|
|
13
|
+
defaultValue: "Get Started"
|
|
14
|
+
}),
|
|
15
|
+
disabled: createDisabledProp(),
|
|
16
|
+
loading: createLoadingProp(),
|
|
17
|
+
activeOpacity: createStaticNumberProp({
|
|
18
|
+
label: "Active Opacity",
|
|
19
|
+
description: "Opacity of the button when active.",
|
|
20
|
+
defaultValue: null,
|
|
21
|
+
min: 0,
|
|
22
|
+
max: 1,
|
|
23
|
+
step: 0.01,
|
|
24
|
+
precision: 2,
|
|
25
|
+
required: false
|
|
26
|
+
}),
|
|
27
|
+
disabledOpacity: createStaticNumberProp({
|
|
28
|
+
label: "Disabled Opacity",
|
|
29
|
+
description: "Opacity of the button when disabled.",
|
|
30
|
+
defaultValue: null,
|
|
31
|
+
min: 0,
|
|
32
|
+
max: 1,
|
|
33
|
+
step: 0.01,
|
|
34
|
+
precision: 2,
|
|
35
|
+
required: false
|
|
36
|
+
}),
|
|
37
|
+
delayLongPress: createStaticNumberProp({
|
|
38
|
+
label: "Delay Long Press",
|
|
39
|
+
description: "Duration (in milliseconds) from onPressIn before onLongPress is called.",
|
|
40
|
+
required: false
|
|
41
|
+
}),
|
|
42
|
+
hitSlop: createStaticNumberProp({
|
|
43
|
+
label: "Hit Slop",
|
|
44
|
+
description: "Sets additional distance outside of element in which a press can be detected",
|
|
45
|
+
required: false
|
|
46
|
+
})
|
|
47
|
+
};
|
|
48
|
+
export const SEED_DATA = [{
|
|
49
|
+
name: "Button Outline",
|
|
50
|
+
tag: "ButtonOutline",
|
|
51
|
+
category: COMPONENT_TYPES.deprecated,
|
|
52
|
+
stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Borders, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Effects],
|
|
53
|
+
layout: {
|
|
54
|
+
borderRadius: 8,
|
|
55
|
+
fontFamily: "system-700",
|
|
56
|
+
backgroundColor: "transparent",
|
|
57
|
+
borderWidth: 1,
|
|
58
|
+
textAlign: "center"
|
|
59
|
+
},
|
|
60
|
+
triggers: SEED_DATA_TRIGGERS,
|
|
61
|
+
props: SEED_DATA_PROPS
|
|
62
|
+
}, {
|
|
63
|
+
name: "Button Solid",
|
|
64
|
+
tag: "ButtonSolid",
|
|
65
|
+
category: COMPONENT_TYPES.deprecated,
|
|
66
|
+
stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Borders, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Effects],
|
|
67
|
+
layout: {
|
|
68
|
+
borderRadius: 8,
|
|
69
|
+
fontFamily: "system-700",
|
|
70
|
+
backgroundColor: "primary",
|
|
71
|
+
textAlign: "center"
|
|
72
|
+
},
|
|
73
|
+
triggers: SEED_DATA_TRIGGERS,
|
|
74
|
+
props: SEED_DATA_PROPS
|
|
75
|
+
}, {
|
|
76
|
+
name: "Button",
|
|
77
|
+
tag: "Button",
|
|
78
|
+
category: COMPONENT_TYPES.button,
|
|
79
|
+
stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Borders, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Effects],
|
|
80
|
+
layout: {
|
|
81
|
+
borderRadius: 8,
|
|
82
|
+
fontFamily: "system-700",
|
|
83
|
+
backgroundColor: "primary",
|
|
84
|
+
textAlign: "center"
|
|
85
|
+
},
|
|
86
|
+
triggers: SEED_DATA_TRIGGERS,
|
|
87
|
+
props: SEED_DATA_PROPS
|
|
88
|
+
}];
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createElevationType, createTextProp, createImageProp, createIconProp, createAspectRatioProp, createStaticBoolProp, createTextStyle, createActionProp, Triggers } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Card",
|
|
4
|
+
tag: "Card",
|
|
5
|
+
description: "A card you can customize however you'd like",
|
|
6
|
+
category: COMPONENT_TYPES.card,
|
|
7
|
+
triggers: [Triggers.OnPress, Triggers.OnPressIcon],
|
|
8
|
+
props: {
|
|
9
|
+
onPress: createActionProp(),
|
|
10
|
+
onPressIcon: createActionProp({
|
|
11
|
+
handlerPropName: "onPressIcon"
|
|
12
|
+
}),
|
|
13
|
+
elevation: createElevationType(3),
|
|
14
|
+
image: createImageProp(),
|
|
15
|
+
title: createTextProp({
|
|
16
|
+
label: "Title",
|
|
17
|
+
description: "Large title text",
|
|
18
|
+
// defaultValue: "Title",
|
|
19
|
+
defaultValue: null
|
|
20
|
+
}),
|
|
21
|
+
titleStyle: createTextStyle({
|
|
22
|
+
label: "Title Style"
|
|
23
|
+
}),
|
|
24
|
+
subtitle: createTextProp({
|
|
25
|
+
label: "Subtitle",
|
|
26
|
+
description: "Text underneath the title",
|
|
27
|
+
defaultValue: null
|
|
28
|
+
// defaultValue: "Edit me in the props panel on the right",
|
|
29
|
+
}),
|
|
30
|
+
|
|
31
|
+
subtitleStyle: createTextStyle({
|
|
32
|
+
label: "Subtitle Style"
|
|
33
|
+
}),
|
|
34
|
+
description: createTextProp({
|
|
35
|
+
label: "Description",
|
|
36
|
+
description: "Smallest text underneath subtitle",
|
|
37
|
+
// defaultValue:
|
|
38
|
+
// "This bottom text is optional, but shows up to make your life a little easier!",
|
|
39
|
+
defaultValue: null
|
|
40
|
+
}),
|
|
41
|
+
descriptionStyle: createTextStyle({
|
|
42
|
+
label: "Description Style"
|
|
43
|
+
}),
|
|
44
|
+
icon: createIconProp(),
|
|
45
|
+
aspectRatio: createAspectRatioProp({
|
|
46
|
+
defaultValue: 1.5
|
|
47
|
+
}),
|
|
48
|
+
textCentered: createStaticBoolProp({
|
|
49
|
+
label: "Centered Text",
|
|
50
|
+
description: "Places your title and subtitle in the center"
|
|
51
|
+
})
|
|
52
|
+
}
|
|
53
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createResizeModeProp, createColorProp, BLOCK_STYLES_SECTIONS } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = [{
|
|
3
|
+
name: "Carousel",
|
|
4
|
+
tag: "Carousel",
|
|
5
|
+
category: COMPONENT_TYPES.deprecated,
|
|
6
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
7
|
+
description: "A horizontal scrolling carousel of images",
|
|
8
|
+
layout: {
|
|
9
|
+
height: 250
|
|
10
|
+
},
|
|
11
|
+
props: {
|
|
12
|
+
resizeMode: createResizeModeProp(),
|
|
13
|
+
dotColor: createColorProp({
|
|
14
|
+
label: "Dot color"
|
|
15
|
+
})
|
|
16
|
+
}
|
|
17
|
+
}];
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createBoolProp, createIconProp, createStaticNumberProp, createColorProp, createFieldNameProp, GROUPS, Triggers, BLOCK_STYLES_SECTIONS } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Checkbox",
|
|
4
|
+
tag: "Checkbox",
|
|
5
|
+
category: COMPONENT_TYPES.control,
|
|
6
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
7
|
+
triggers: [Triggers.OnPress, Triggers.OnCheck, Triggers.OnUncheck],
|
|
8
|
+
props: {
|
|
9
|
+
fieldName: createFieldNameProp({
|
|
10
|
+
defaultValue: "checkboxValue",
|
|
11
|
+
valuePropName: "status",
|
|
12
|
+
handlerPropName: "onPress"
|
|
13
|
+
}),
|
|
14
|
+
color: createColorProp({
|
|
15
|
+
group: GROUPS.basic,
|
|
16
|
+
label: "Color",
|
|
17
|
+
description: "Color for the button (used when the checkbox is checked)",
|
|
18
|
+
defaultValue: null
|
|
19
|
+
}),
|
|
20
|
+
uncheckedColor: createColorProp({
|
|
21
|
+
group: GROUPS.basic,
|
|
22
|
+
label: "Unselected Color",
|
|
23
|
+
description: "Color for the button when the checkbox is unchecked",
|
|
24
|
+
defaultValue: null
|
|
25
|
+
}),
|
|
26
|
+
disabled: createBoolProp({
|
|
27
|
+
label: "Disabled",
|
|
28
|
+
description: "Whether the checkbox is disabled"
|
|
29
|
+
}),
|
|
30
|
+
size: createStaticNumberProp({
|
|
31
|
+
label: "Size",
|
|
32
|
+
description: "Specifies the size of the icon",
|
|
33
|
+
defaultValue: null
|
|
34
|
+
}),
|
|
35
|
+
checkedIcon: createIconProp({
|
|
36
|
+
label: "Checked Icon",
|
|
37
|
+
description: 'Icon to show when the checkbox status is "checked"',
|
|
38
|
+
defaultValue: null
|
|
39
|
+
}),
|
|
40
|
+
uncheckedIcon: createIconProp({
|
|
41
|
+
label: "Unchecked Icon",
|
|
42
|
+
description: 'Icon to show when the checkbox status is "unchecked"',
|
|
43
|
+
defaultValue: null
|
|
44
|
+
})
|
|
45
|
+
}
|
|
46
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, createTextProp, PROP_TYPES, createFieldNameProp, createDirectionProp, Triggers, StylesPanelSections } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Checkbox Group",
|
|
4
|
+
tag: "CheckboxGroup",
|
|
5
|
+
category: COMPONENT_TYPES.deprecated,
|
|
6
|
+
layout: {},
|
|
7
|
+
triggers: [Triggers.OnValueChange],
|
|
8
|
+
stylesPanelSections: [StylesPanelSections.Margins],
|
|
9
|
+
props: {
|
|
10
|
+
direction: createDirectionProp(),
|
|
11
|
+
values: createTextProp({
|
|
12
|
+
group: GROUPS.data,
|
|
13
|
+
formType: FORM_TYPES.flatArray,
|
|
14
|
+
propType: PROP_TYPES.ARRAY,
|
|
15
|
+
label: "Values",
|
|
16
|
+
description: "Currently selected values of the checkbox group",
|
|
17
|
+
required: true,
|
|
18
|
+
defaultValue: null
|
|
19
|
+
}),
|
|
20
|
+
fieldName: createFieldNameProp({
|
|
21
|
+
defaultValue: "checkboxGroupValue",
|
|
22
|
+
handlerPropName: "onValueChange",
|
|
23
|
+
valuePropName: "value"
|
|
24
|
+
})
|
|
25
|
+
}
|
|
26
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { createBoolProp, createTextProp, createTextStyle, createRowDirectionProp, createFieldNameProp, createIconProp, createStaticNumberProp, COMPONENT_TYPES, Triggers, createColorProp, StylesPanelSections } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Checkbox Row",
|
|
4
|
+
tag: "CheckboxRow",
|
|
5
|
+
category: COMPONENT_TYPES.control,
|
|
6
|
+
stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Margins, StylesPanelSections.Effects],
|
|
7
|
+
layout: {
|
|
8
|
+
minHeight: 50
|
|
9
|
+
},
|
|
10
|
+
triggers: [Triggers.OnPress, Triggers.OnCheck, Triggers.OnUncheck],
|
|
11
|
+
props: {
|
|
12
|
+
fieldName: createFieldNameProp({
|
|
13
|
+
defaultValue: "checkboxRowValue",
|
|
14
|
+
valuePropName: "value",
|
|
15
|
+
handlerPropName: "onPress"
|
|
16
|
+
}),
|
|
17
|
+
label: createTextProp({
|
|
18
|
+
label: "Label",
|
|
19
|
+
description: "Label to show with the checkbox",
|
|
20
|
+
required: true,
|
|
21
|
+
defaultValue: "First Option"
|
|
22
|
+
}),
|
|
23
|
+
labelStyle: createTextStyle({
|
|
24
|
+
label: "Label Style",
|
|
25
|
+
description: "Change the styles of the label",
|
|
26
|
+
required: false,
|
|
27
|
+
editable: false
|
|
28
|
+
}),
|
|
29
|
+
direction: createRowDirectionProp(),
|
|
30
|
+
color: createColorProp({
|
|
31
|
+
description: "Color for the button (used when the checkbox is checked)"
|
|
32
|
+
}),
|
|
33
|
+
uncheckedColor: createColorProp({
|
|
34
|
+
label: "Unselected Color",
|
|
35
|
+
description: "Color for the button when the checkbox is unchecked"
|
|
36
|
+
}),
|
|
37
|
+
disabled: createBoolProp({
|
|
38
|
+
label: "Disabled",
|
|
39
|
+
description: "Whether the checkbox is disabled"
|
|
40
|
+
}),
|
|
41
|
+
size: createStaticNumberProp({
|
|
42
|
+
label: "Size",
|
|
43
|
+
description: "Specifies the size of the icon",
|
|
44
|
+
defaultValue: null
|
|
45
|
+
}),
|
|
46
|
+
checkedIcon: createIconProp({
|
|
47
|
+
label: "Checked Icon",
|
|
48
|
+
description: 'Icon to show when the checkbox status is "checked"',
|
|
49
|
+
defaultValue: null
|
|
50
|
+
}),
|
|
51
|
+
uncheckedIcon: createIconProp({
|
|
52
|
+
label: "Unchecked Icon",
|
|
53
|
+
description: 'Icon to show when the checkbox status is "unchecked"',
|
|
54
|
+
defaultValue: null
|
|
55
|
+
})
|
|
56
|
+
}
|
|
57
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createImageProp, BLOCK_STYLES_SECTIONS } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Circle Image",
|
|
4
|
+
tag: "CircleImage",
|
|
5
|
+
description: "A circle image",
|
|
6
|
+
category: COMPONENT_TYPES.deprecated,
|
|
7
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
8
|
+
props: {
|
|
9
|
+
source: createImageProp(),
|
|
10
|
+
size: {
|
|
11
|
+
group: GROUPS.basic,
|
|
12
|
+
label: "Size",
|
|
13
|
+
description: "Size of your circle image",
|
|
14
|
+
editable: true,
|
|
15
|
+
required: false,
|
|
16
|
+
formType: FORM_TYPES.number,
|
|
17
|
+
propType: PROP_TYPES.NUMBER,
|
|
18
|
+
min: 0,
|
|
19
|
+
max: 300,
|
|
20
|
+
precision: 0,
|
|
21
|
+
step: 1,
|
|
22
|
+
defaultValue: 60
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, GROUPS, Triggers, StylesPanelSections, createNumberProp, createColorProp, createStaticBoolProp } from "@draftbit/types";
|
|
2
|
+
const SEED_DATA_PROPS = {
|
|
3
|
+
mode: {
|
|
4
|
+
label: "Mode",
|
|
5
|
+
description: "Choose between date, time and datetime",
|
|
6
|
+
defaultValue: "date",
|
|
7
|
+
editable: true,
|
|
8
|
+
required: true,
|
|
9
|
+
formType: FORM_TYPES.flatArray,
|
|
10
|
+
propType: PROP_TYPES.STRING,
|
|
11
|
+
options: ["date", "time", "datetime"],
|
|
12
|
+
group: GROUPS.basic
|
|
13
|
+
},
|
|
14
|
+
label: {
|
|
15
|
+
label: "Label",
|
|
16
|
+
description: "The label to be displayed on the picker",
|
|
17
|
+
formType: FORM_TYPES.string,
|
|
18
|
+
propType: PROP_TYPES.STRING,
|
|
19
|
+
defaultValue: "Date",
|
|
20
|
+
editable: true,
|
|
21
|
+
required: true,
|
|
22
|
+
group: GROUPS.data
|
|
23
|
+
},
|
|
24
|
+
labelSize: createNumberProp({
|
|
25
|
+
label: "Label Size"
|
|
26
|
+
}),
|
|
27
|
+
labelColor: createColorProp({
|
|
28
|
+
label: "Label Color"
|
|
29
|
+
}),
|
|
30
|
+
borderColor: createColorProp({
|
|
31
|
+
label: "Border Color"
|
|
32
|
+
}),
|
|
33
|
+
borderColorActive: createColorProp({
|
|
34
|
+
label: "Active Border Color",
|
|
35
|
+
description: "Color of border when date picker is active"
|
|
36
|
+
}),
|
|
37
|
+
format: {
|
|
38
|
+
label: "Format",
|
|
39
|
+
description: "Create an output format for the date.",
|
|
40
|
+
editable: true,
|
|
41
|
+
required: false,
|
|
42
|
+
formType: FORM_TYPES.string,
|
|
43
|
+
propType: PROP_TYPES.STRING,
|
|
44
|
+
defaultValue: null,
|
|
45
|
+
group: GROUPS.basic
|
|
46
|
+
},
|
|
47
|
+
assistiveText: {
|
|
48
|
+
label: "Assistive text",
|
|
49
|
+
description: "Helper text to display below the picker",
|
|
50
|
+
formType: FORM_TYPES.string,
|
|
51
|
+
propType: PROP_TYPES.STRING,
|
|
52
|
+
defaultValue: null,
|
|
53
|
+
editable: true,
|
|
54
|
+
required: false,
|
|
55
|
+
group: GROUPS.basic
|
|
56
|
+
},
|
|
57
|
+
// locale: {
|
|
58
|
+
// label: "Locale",
|
|
59
|
+
// description: "Locale for the datepicker. Must be a valid Locale",
|
|
60
|
+
// formType: FORM_TYPES.string,
|
|
61
|
+
// propType: PROP_TYPES.STRING,
|
|
62
|
+
// defaultValue: null,
|
|
63
|
+
// editable: true,
|
|
64
|
+
// required: false,
|
|
65
|
+
// group: GROUPS.basic,
|
|
66
|
+
// },
|
|
67
|
+
// minuteInterval: {
|
|
68
|
+
// label: "Minute Interval",
|
|
69
|
+
// description: "The interval at which minutes can be selected",
|
|
70
|
+
// formType: FORM_TYPES.flatArray,
|
|
71
|
+
// propType: PROP_TYPES.NUMBER,
|
|
72
|
+
// options: [1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30],
|
|
73
|
+
// defaultValue: null,
|
|
74
|
+
// editable: true,
|
|
75
|
+
// required: false,
|
|
76
|
+
// group: GROUPS.basic,
|
|
77
|
+
// },
|
|
78
|
+
// timeZoneOffsetInMinutes: {
|
|
79
|
+
// label: "Time zone offset",
|
|
80
|
+
// description:
|
|
81
|
+
// "By default, the datepicker uses the device's timezone. This will allow you to offset it",
|
|
82
|
+
// formType: FORM_TYPES.number,
|
|
83
|
+
// propType: PROP_TYPES.NUMBER,
|
|
84
|
+
// defaultValue: null,
|
|
85
|
+
// editable: true,
|
|
86
|
+
// required: false,
|
|
87
|
+
// group: GROUPS.basic,
|
|
88
|
+
// },
|
|
89
|
+
disabled: {
|
|
90
|
+
label: "Disabled",
|
|
91
|
+
description: "Whether the picker should be disabled. Will prevent selection and show a greyed out state.",
|
|
92
|
+
formType: FORM_TYPES.boolean,
|
|
93
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
94
|
+
defaultValue: false,
|
|
95
|
+
editable: true,
|
|
96
|
+
required: false,
|
|
97
|
+
group: GROUPS.basic
|
|
98
|
+
},
|
|
99
|
+
// error: {
|
|
100
|
+
// label: "Error",
|
|
101
|
+
// description: "Whether the picker should display the error state",
|
|
102
|
+
// formType: FORM_TYPES.boolean,
|
|
103
|
+
// propType: PROP_TYPES.BOOLEAN,
|
|
104
|
+
// defaultValue: false,
|
|
105
|
+
// editable: true,
|
|
106
|
+
// required: false,
|
|
107
|
+
// group: GROUPS.data,
|
|
108
|
+
// },
|
|
109
|
+
leftIconName: {
|
|
110
|
+
label: "Left icon name",
|
|
111
|
+
description: "The icon to display on the left",
|
|
112
|
+
formType: FORM_TYPES.icon,
|
|
113
|
+
propType: PROP_TYPES.STRING,
|
|
114
|
+
defaultValue: null,
|
|
115
|
+
editable: true,
|
|
116
|
+
required: false,
|
|
117
|
+
group: GROUPS.basic
|
|
118
|
+
},
|
|
119
|
+
leftIconMode: {
|
|
120
|
+
label: "Left icon mode",
|
|
121
|
+
description: "The mode of the icon to display on the left. 'inset' or 'outset'.",
|
|
122
|
+
formType: FORM_TYPES.flatArray,
|
|
123
|
+
propType: PROP_TYPES.STRING,
|
|
124
|
+
defaultValue: "inset",
|
|
125
|
+
options: ["inset", "outset"],
|
|
126
|
+
editable: true,
|
|
127
|
+
required: true,
|
|
128
|
+
group: GROUPS.basic
|
|
129
|
+
},
|
|
130
|
+
rightIconName: {
|
|
131
|
+
label: "Right icon name",
|
|
132
|
+
description: "The icon to display on the right",
|
|
133
|
+
formType: FORM_TYPES.icon,
|
|
134
|
+
propType: PROP_TYPES.STRING,
|
|
135
|
+
defaultValue: null,
|
|
136
|
+
editable: true,
|
|
137
|
+
required: false,
|
|
138
|
+
group: GROUPS.basic
|
|
139
|
+
},
|
|
140
|
+
fieldName: {
|
|
141
|
+
...FIELD_NAME,
|
|
142
|
+
handlerPropName: "onDateChange",
|
|
143
|
+
valuePropName: "date",
|
|
144
|
+
defaultValue: "date"
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
export const SEED_DATA = [{
|
|
148
|
+
name: "Date Picker",
|
|
149
|
+
tag: "DatePicker",
|
|
150
|
+
description: "A component used to select a date from a visual calendar",
|
|
151
|
+
category: COMPONENT_TYPES.input,
|
|
152
|
+
layout: null,
|
|
153
|
+
triggers: [Triggers.OnDateChange],
|
|
154
|
+
stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position],
|
|
155
|
+
props: {
|
|
156
|
+
...SEED_DATA_PROPS,
|
|
157
|
+
type: {
|
|
158
|
+
label: "Appearance",
|
|
159
|
+
description: "Type of Datepicker",
|
|
160
|
+
formType: FORM_TYPES.flatArray,
|
|
161
|
+
propType: PROP_TYPES.STRING,
|
|
162
|
+
defaultValue: "solid",
|
|
163
|
+
options: ["solid", "underline"],
|
|
164
|
+
editable: true,
|
|
165
|
+
required: true,
|
|
166
|
+
group: GROUPS.basic
|
|
167
|
+
},
|
|
168
|
+
autoDismissKeyboard: createStaticBoolProp({
|
|
169
|
+
label: "Auto dismiss keyboard",
|
|
170
|
+
description: "Automatically dismiss keyboard when DatePicker is opened",
|
|
171
|
+
defaultValue: true
|
|
172
|
+
})
|
|
173
|
+
}
|
|
174
|
+
}];
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, Triggers, createActionProp, createStaticNumberProp, createStaticBoolProp, BLOCK_STYLES_SECTIONS } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Deck Swiper",
|
|
4
|
+
tag: "DeckSwiper",
|
|
5
|
+
description: "Deck swiper container",
|
|
6
|
+
category: COMPONENT_TYPES.swiper,
|
|
7
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
8
|
+
layout: {
|
|
9
|
+
width: "100%"
|
|
10
|
+
},
|
|
11
|
+
triggers: [Triggers.OnIndexChanged, Triggers.OnEndReached],
|
|
12
|
+
props: {
|
|
13
|
+
onIndexChanged: createActionProp({
|
|
14
|
+
label: "On index changed",
|
|
15
|
+
description: "Action to execute when swipe to new index"
|
|
16
|
+
}),
|
|
17
|
+
onEndReached: createActionProp({
|
|
18
|
+
label: "On end reached",
|
|
19
|
+
description: "Action to execute when end of swiping reached"
|
|
20
|
+
}),
|
|
21
|
+
startCardIndex: createStaticNumberProp({
|
|
22
|
+
label: "Start card index",
|
|
23
|
+
description: "Index of card to start swiping from",
|
|
24
|
+
defaultValue: 0
|
|
25
|
+
}),
|
|
26
|
+
infiniteSwiping: createStaticBoolProp({
|
|
27
|
+
label: "Infinite swiping",
|
|
28
|
+
description: "Whether to infinitley loop through cards or not"
|
|
29
|
+
}),
|
|
30
|
+
verticalEnabled: createStaticBoolProp({
|
|
31
|
+
label: "Vertical swipe enabled",
|
|
32
|
+
description: "Whether cards should be swipeable vertically or not",
|
|
33
|
+
defaultValue: true
|
|
34
|
+
}),
|
|
35
|
+
horizontalEnabled: createStaticBoolProp({
|
|
36
|
+
label: "Horizontal swipe enabled",
|
|
37
|
+
description: "Whether cards should be swipeable horizontally or not",
|
|
38
|
+
defaultValue: true
|
|
39
|
+
}),
|
|
40
|
+
visibleCardCount: createStaticNumberProp({
|
|
41
|
+
label: "Visible card count",
|
|
42
|
+
description: "Number of cards visible behind (and including) the current card",
|
|
43
|
+
defaultValue: 1,
|
|
44
|
+
min: 1,
|
|
45
|
+
step: 1
|
|
46
|
+
})
|
|
47
|
+
}
|
|
48
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Deck Swiper Card",
|
|
4
|
+
tag: "DeckSwiperCard",
|
|
5
|
+
description: "Single Deck Swiper Card item to be used in DeckSwiper",
|
|
6
|
+
category: COMPONENT_TYPES.swiper,
|
|
7
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
|
+
layout: {
|
|
9
|
+
flex: 1,
|
|
10
|
+
alignItems: "center",
|
|
11
|
+
justifyContent: "center",
|
|
12
|
+
padding: 20,
|
|
13
|
+
borderWidth: 2
|
|
14
|
+
},
|
|
15
|
+
props: {}
|
|
16
|
+
};
|