@draftbit/core 46.10.3-47314f.2 → 46.10.3-6c7505.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/Checkbox/CheckboxGroupRow.js +5 -23
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +6 -23
- package/lib/commonjs/components/IconButton.js +19 -4
- package/lib/commonjs/components/Layout.js +40 -19
- package/package.json +3 -3
- package/lib/commonjs/components/DeprecatedCardWrapper.js +0 -40
- package/lib/commonjs/components/DeprecatedFAB.js +0 -157
- package/lib/commonjs/components/ProgressIndicator.js +0 -55
- package/lib/commonjs/components/ResizeMode.js +0 -5
- package/lib/commonjs/mappings/Accordion.js +0 -49
- package/lib/commonjs/mappings/AccordionItem.js +0 -24
- package/lib/commonjs/mappings/ActionSheet.js +0 -21
- package/lib/commonjs/mappings/ActionSheetCancel.js +0 -27
- package/lib/commonjs/mappings/ActionSheetItem.js +0 -31
- package/lib/commonjs/mappings/ActivityIndicator.js +0 -64
- package/lib/commonjs/mappings/AudioPlayer.js +0 -57
- package/lib/commonjs/mappings/AvatarEdit.js +0 -45
- package/lib/commonjs/mappings/Banner.js +0 -39
- package/lib/commonjs/mappings/BlurView.js +0 -49
- package/lib/commonjs/mappings/BottomSheet.js +0 -70
- package/lib/commonjs/mappings/Button.js +0 -95
- package/lib/commonjs/mappings/Card.js +0 -60
- package/lib/commonjs/mappings/CardBlock.js +0 -126
- package/lib/commonjs/mappings/CardContainer.js +0 -108
- package/lib/commonjs/mappings/CardContainerRating.js +0 -130
- package/lib/commonjs/mappings/CardContainerShortImage.js +0 -124
- package/lib/commonjs/mappings/CardInline.js +0 -59
- package/lib/commonjs/mappings/Carousel.js +0 -24
- package/lib/commonjs/mappings/Checkbox.js +0 -53
- package/lib/commonjs/mappings/CheckboxGroup.js +0 -33
- package/lib/commonjs/mappings/CheckboxRow.js +0 -64
- package/lib/commonjs/mappings/CircleImage.js +0 -32
- package/lib/commonjs/mappings/CustomCode.js +0 -15
- package/lib/commonjs/mappings/DatePicker.js +0 -181
- package/lib/commonjs/mappings/DeckSwiper.js +0 -55
- package/lib/commonjs/mappings/DeckSwiperCard.js +0 -23
- package/lib/commonjs/mappings/Divider.js +0 -32
- package/lib/commonjs/mappings/FAB.js +0 -44
- package/lib/commonjs/mappings/Fetch.js +0 -20
- package/lib/commonjs/mappings/FieldSearchBarFull.js +0 -56
- package/lib/commonjs/mappings/FlashList.js +0 -111
- package/lib/commonjs/mappings/FlatList.js +0 -58
- package/lib/commonjs/mappings/HeaderLarge.js +0 -34
- package/lib/commonjs/mappings/HeaderMedium.js +0 -60
- package/lib/commonjs/mappings/HeaderOverline.js +0 -60
- package/lib/commonjs/mappings/Icon.js +0 -33
- package/lib/commonjs/mappings/IconButton.js +0 -36
- package/lib/commonjs/mappings/Image.js +0 -36
- package/lib/commonjs/mappings/ImageBackground.js +0 -36
- package/lib/commonjs/mappings/KeyboardAvoidingView.js +0 -48
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js +0 -57
- package/lib/commonjs/mappings/Layout.js +0 -200
- package/lib/commonjs/mappings/LinearGradient.js +0 -88
- package/lib/commonjs/mappings/MapCallout.js +0 -29
- package/lib/commonjs/mappings/MapMarker.js +0 -55
- package/lib/commonjs/mappings/MapView.js +0 -142
- package/lib/commonjs/mappings/Markdown.js +0 -27
- package/lib/commonjs/mappings/Modal.js +0 -49
- package/lib/commonjs/mappings/NativeBase/Layout.js +0 -108
- package/lib/commonjs/mappings/NumberInput.js +0 -238
- package/lib/commonjs/mappings/Picker.js +0 -154
- package/lib/commonjs/mappings/ProgressBar.js +0 -106
- package/lib/commonjs/mappings/ProgressCircle.js +0 -116
- package/lib/commonjs/mappings/ProgressIndicator.js +0 -188
- package/lib/commonjs/mappings/RadioButton.js +0 -58
- package/lib/commonjs/mappings/RadioButtonGroup.js +0 -24
- package/lib/commonjs/mappings/RadioButtonRow.js +0 -45
- package/lib/commonjs/mappings/RowBodyIcon.js +0 -79
- package/lib/commonjs/mappings/RowHeadlineImageCaption.js +0 -169
- package/lib/commonjs/mappings/RowHeadlineImageIcon.js +0 -99
- package/lib/commonjs/mappings/SVG.js +0 -22
- package/lib/commonjs/mappings/SafeAreaView.js +0 -40
- package/lib/commonjs/mappings/ScrollView.js +0 -44
- package/lib/commonjs/mappings/Shadow.js +0 -102
- package/lib/commonjs/mappings/Slider.js +0 -67
- package/lib/commonjs/mappings/StarRating.js +0 -53
- package/lib/commonjs/mappings/Stepper.js +0 -38
- package/lib/commonjs/mappings/Surface.js +0 -21
- package/lib/commonjs/mappings/Swiper.js +0 -70
- package/lib/commonjs/mappings/SwiperItem.js +0 -16
- package/lib/commonjs/mappings/Switch.js +0 -81
- package/lib/commonjs/mappings/TabView.js +0 -74
- package/lib/commonjs/mappings/TabViewItem.js +0 -37
- package/lib/commonjs/mappings/Table.js +0 -140
- package/lib/commonjs/mappings/Text.js +0 -234
- package/lib/commonjs/mappings/TextArea.js +0 -254
- package/lib/commonjs/mappings/TextField.js +0 -360
- package/lib/commonjs/mappings/TextInput.js +0 -345
- package/lib/commonjs/mappings/ToggleButton.js +0 -53
- package/lib/commonjs/mappings/Touchable.js +0 -67
- package/lib/commonjs/mappings/Video.js +0 -82
- package/lib/commonjs/mappings/View.js +0 -186
- package/lib/commonjs/mappings/WebView.js +0 -93
- package/lib/commonjs/mappings/YoutubePlayer.js +0 -38
- package/lib/module/components/DeprecatedCardWrapper.js +0 -32
- package/lib/module/components/DeprecatedFAB.js +0 -147
- package/lib/module/components/ProgressIndicator.js +0 -45
- package/lib/module/components/ResizeMode.js +0 -1
- package/lib/module/mappings/Accordion.js +0 -42
- package/lib/module/mappings/AccordionItem.js +0 -17
- package/lib/module/mappings/ActionSheet.js +0 -14
- package/lib/module/mappings/ActionSheetCancel.js +0 -20
- package/lib/module/mappings/ActionSheetItem.js +0 -24
- package/lib/module/mappings/ActivityIndicator.js +0 -57
- package/lib/module/mappings/AudioPlayer.js +0 -50
- package/lib/module/mappings/AvatarEdit.js +0 -38
- package/lib/module/mappings/Banner.js +0 -32
- package/lib/module/mappings/BlurView.js +0 -42
- package/lib/module/mappings/BottomSheet.js +0 -63
- package/lib/module/mappings/Button.js +0 -88
- package/lib/module/mappings/Card.js +0 -53
- package/lib/module/mappings/CardBlock.js +0 -119
- package/lib/module/mappings/CardContainer.js +0 -101
- package/lib/module/mappings/CardContainerRating.js +0 -123
- package/lib/module/mappings/CardContainerShortImage.js +0 -117
- package/lib/module/mappings/CardInline.js +0 -52
- package/lib/module/mappings/Carousel.js +0 -17
- package/lib/module/mappings/Checkbox.js +0 -46
- package/lib/module/mappings/CheckboxGroup.js +0 -26
- package/lib/module/mappings/CheckboxRow.js +0 -57
- package/lib/module/mappings/CircleImage.js +0 -25
- package/lib/module/mappings/CustomCode.js +0 -8
- package/lib/module/mappings/DatePicker.js +0 -174
- package/lib/module/mappings/DeckSwiper.js +0 -48
- package/lib/module/mappings/DeckSwiperCard.js +0 -16
- package/lib/module/mappings/Divider.js +0 -25
- package/lib/module/mappings/FAB.js +0 -37
- package/lib/module/mappings/Fetch.js +0 -13
- package/lib/module/mappings/FieldSearchBarFull.js +0 -49
- package/lib/module/mappings/FlashList.js +0 -104
- package/lib/module/mappings/FlatList.js +0 -51
- package/lib/module/mappings/HeaderLarge.js +0 -27
- package/lib/module/mappings/HeaderMedium.js +0 -53
- package/lib/module/mappings/HeaderOverline.js +0 -53
- package/lib/module/mappings/Icon.js +0 -26
- package/lib/module/mappings/IconButton.js +0 -29
- package/lib/module/mappings/Image.js +0 -29
- package/lib/module/mappings/ImageBackground.js +0 -29
- package/lib/module/mappings/KeyboardAvoidingView.js +0 -41
- package/lib/module/mappings/KeyboardAwareScrollView.js +0 -50
- package/lib/module/mappings/Layout.js +0 -193
- package/lib/module/mappings/LinearGradient.js +0 -81
- package/lib/module/mappings/MapCallout.js +0 -22
- package/lib/module/mappings/MapMarker.js +0 -48
- package/lib/module/mappings/MapView.js +0 -135
- package/lib/module/mappings/Markdown.js +0 -20
- package/lib/module/mappings/Modal.js +0 -42
- package/lib/module/mappings/NativeBase/Layout.js +0 -101
- package/lib/module/mappings/NumberInput.js +0 -230
- package/lib/module/mappings/Picker.js +0 -147
- package/lib/module/mappings/ProgressBar.js +0 -99
- package/lib/module/mappings/ProgressCircle.js +0 -109
- package/lib/module/mappings/ProgressIndicator.js +0 -181
- package/lib/module/mappings/RadioButton.js +0 -51
- package/lib/module/mappings/RadioButtonGroup.js +0 -17
- package/lib/module/mappings/RadioButtonRow.js +0 -38
- package/lib/module/mappings/RowBodyIcon.js +0 -72
- package/lib/module/mappings/RowHeadlineImageCaption.js +0 -162
- package/lib/module/mappings/RowHeadlineImageIcon.js +0 -92
- package/lib/module/mappings/SVG.js +0 -15
- package/lib/module/mappings/SafeAreaView.js +0 -33
- package/lib/module/mappings/ScrollView.js +0 -37
- package/lib/module/mappings/Shadow.js +0 -95
- package/lib/module/mappings/Slider.js +0 -60
- package/lib/module/mappings/StarRating.js +0 -46
- package/lib/module/mappings/Stepper.js +0 -31
- package/lib/module/mappings/Surface.js +0 -14
- package/lib/module/mappings/Swiper.js +0 -63
- package/lib/module/mappings/SwiperItem.js +0 -9
- package/lib/module/mappings/Switch.js +0 -74
- package/lib/module/mappings/TabView.js +0 -67
- package/lib/module/mappings/TabViewItem.js +0 -30
- package/lib/module/mappings/Table.js +0 -133
- package/lib/module/mappings/Text.js +0 -227
- package/lib/module/mappings/TextArea.js +0 -247
- package/lib/module/mappings/TextField.js +0 -353
- package/lib/module/mappings/TextInput.js +0 -337
- package/lib/module/mappings/ToggleButton.js +0 -46
- package/lib/module/mappings/Touchable.js +0 -60
- package/lib/module/mappings/Video.js +0 -75
- package/lib/module/mappings/View.js +0 -179
- package/lib/module/mappings/WebView.js +0 -86
- package/lib/module/mappings/YoutubePlayer.js +0 -31
- package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +0 -15
- package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +0 -1
- package/lib/typescript/src/components/DeprecatedFAB.d.ts +0 -56
- package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +0 -1
- package/lib/typescript/src/components/ProgressIndicator.d.ts +0 -24
- package/lib/typescript/src/components/ProgressIndicator.d.ts.map +0 -1
- package/lib/typescript/src/components/ResizeMode.d.ts +0 -2
- package/lib/typescript/src/components/ResizeMode.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Accordion.d.ts +0 -90
- package/lib/typescript/src/mappings/Accordion.d.ts.map +0 -1
- package/lib/typescript/src/mappings/AccordionItem.d.ts +0 -31
- package/lib/typescript/src/mappings/AccordionItem.d.ts.map +0 -1
- package/lib/typescript/src/mappings/ActionSheet.d.ts +0 -20
- package/lib/typescript/src/mappings/ActionSheet.d.ts.map +0 -1
- package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +0 -32
- package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +0 -1
- package/lib/typescript/src/mappings/ActionSheetItem.d.ts +0 -35
- package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +0 -1
- package/lib/typescript/src/mappings/ActivityIndicator.d.ts +0 -57
- package/lib/typescript/src/mappings/ActivityIndicator.d.ts.map +0 -1
- package/lib/typescript/src/mappings/AudioPlayer.d.ts +0 -81
- package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +0 -1
- package/lib/typescript/src/mappings/AvatarEdit.d.ts +0 -38
- package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Banner.d.ts +0 -49
- package/lib/typescript/src/mappings/Banner.d.ts.map +0 -1
- package/lib/typescript/src/mappings/BlurView.d.ts +0 -42
- package/lib/typescript/src/mappings/BlurView.d.ts.map +0 -1
- package/lib/typescript/src/mappings/BottomSheet.d.ts +0 -115
- package/lib/typescript/src/mappings/BottomSheet.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Button.d.ts +0 -222
- package/lib/typescript/src/mappings/Button.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Card.d.ts +0 -114
- package/lib/typescript/src/mappings/Card.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CardBlock.d.ts +0 -289
- package/lib/typescript/src/mappings/CardBlock.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CardContainer.d.ts +0 -102
- package/lib/typescript/src/mappings/CardContainer.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CardContainerRating.d.ts +0 -108
- package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +0 -139
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CardInline.d.ts +0 -62
- package/lib/typescript/src/mappings/CardInline.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Carousel.d.ts +0 -34
- package/lib/typescript/src/mappings/Carousel.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Checkbox.d.ts +0 -83
- package/lib/typescript/src/mappings/Checkbox.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CheckboxGroup.d.ts +0 -35
- package/lib/typescript/src/mappings/CheckboxGroup.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CheckboxRow.d.ts +0 -108
- package/lib/typescript/src/mappings/CheckboxRow.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CircleImage.d.ts +0 -34
- package/lib/typescript/src/mappings/CircleImage.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CustomCode.d.ts +0 -8
- package/lib/typescript/src/mappings/CustomCode.d.ts.map +0 -1
- package/lib/typescript/src/mappings/DatePicker.d.ts +0 -168
- package/lib/typescript/src/mappings/DatePicker.d.ts.map +0 -1
- package/lib/typescript/src/mappings/DeckSwiper.d.ts +0 -86
- package/lib/typescript/src/mappings/DeckSwiper.d.ts.map +0 -1
- package/lib/typescript/src/mappings/DeckSwiperCard.d.ts +0 -16
- package/lib/typescript/src/mappings/DeckSwiperCard.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Divider.d.ts +0 -25
- package/lib/typescript/src/mappings/Divider.d.ts.map +0 -1
- package/lib/typescript/src/mappings/FAB.d.ts +0 -83
- package/lib/typescript/src/mappings/FAB.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Fetch.d.ts +0 -12
- package/lib/typescript/src/mappings/Fetch.d.ts.map +0 -1
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +0 -56
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +0 -1
- package/lib/typescript/src/mappings/FlashList.d.ts +0 -230
- package/lib/typescript/src/mappings/FlashList.d.ts.map +0 -1
- package/lib/typescript/src/mappings/FlatList.d.ts +0 -116
- package/lib/typescript/src/mappings/FlatList.d.ts.map +0 -1
- package/lib/typescript/src/mappings/HeaderLarge.d.ts +0 -34
- package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +0 -1
- package/lib/typescript/src/mappings/HeaderMedium.d.ts +0 -53
- package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +0 -1
- package/lib/typescript/src/mappings/HeaderOverline.d.ts +0 -53
- package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Icon.d.ts +0 -42
- package/lib/typescript/src/mappings/Icon.d.ts.map +0 -1
- package/lib/typescript/src/mappings/IconButton.d.ts +0 -72
- package/lib/typescript/src/mappings/IconButton.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Image.d.ts +0 -48
- package/lib/typescript/src/mappings/Image.d.ts.map +0 -1
- package/lib/typescript/src/mappings/ImageBackground.d.ts +0 -58
- package/lib/typescript/src/mappings/ImageBackground.d.ts.map +0 -1
- package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +0 -41
- package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts.map +0 -1
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +0 -105
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Layout.d.ts +0 -169
- package/lib/typescript/src/mappings/Layout.d.ts.map +0 -1
- package/lib/typescript/src/mappings/LinearGradient.d.ts +0 -99
- package/lib/typescript/src/mappings/LinearGradient.d.ts.map +0 -1
- package/lib/typescript/src/mappings/MapCallout.d.ts +0 -33
- package/lib/typescript/src/mappings/MapCallout.d.ts.map +0 -1
- package/lib/typescript/src/mappings/MapMarker.d.ts +0 -56
- package/lib/typescript/src/mappings/MapMarker.d.ts.map +0 -1
- package/lib/typescript/src/mappings/MapView.d.ts +0 -172
- package/lib/typescript/src/mappings/MapView.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Markdown.d.ts +0 -20
- package/lib/typescript/src/mappings/Markdown.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Modal.d.ts +0 -52
- package/lib/typescript/src/mappings/Modal.d.ts.map +0 -1
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +0 -133
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +0 -1
- package/lib/typescript/src/mappings/NumberInput.d.ts +0 -299
- package/lib/typescript/src/mappings/NumberInput.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Picker.d.ts +0 -170
- package/lib/typescript/src/mappings/Picker.d.ts.map +0 -1
- package/lib/typescript/src/mappings/ProgressBar.d.ts +0 -99
- package/lib/typescript/src/mappings/ProgressBar.d.ts.map +0 -1
- package/lib/typescript/src/mappings/ProgressCircle.d.ts +0 -109
- package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +0 -1
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts +0 -181
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +0 -1
- package/lib/typescript/src/mappings/RadioButton.d.ts +0 -72
- package/lib/typescript/src/mappings/RadioButton.d.ts.map +0 -1
- package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +0 -34
- package/lib/typescript/src/mappings/RadioButtonGroup.d.ts.map +0 -1
- package/lib/typescript/src/mappings/RadioButtonRow.d.ts +0 -43
- package/lib/typescript/src/mappings/RadioButtonRow.d.ts.map +0 -1
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts +0 -73
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +0 -1
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +0 -166
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +0 -1
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +0 -170
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +0 -1
- package/lib/typescript/src/mappings/SVG.d.ts +0 -24
- package/lib/typescript/src/mappings/SVG.d.ts.map +0 -1
- package/lib/typescript/src/mappings/SafeAreaView.d.ts +0 -33
- package/lib/typescript/src/mappings/SafeAreaView.d.ts.map +0 -1
- package/lib/typescript/src/mappings/ScrollView.d.ts +0 -72
- package/lib/typescript/src/mappings/ScrollView.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Shadow.d.ts +0 -173
- package/lib/typescript/src/mappings/Shadow.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Slider.d.ts +0 -110
- package/lib/typescript/src/mappings/Slider.d.ts.map +0 -1
- package/lib/typescript/src/mappings/StarRating.d.ts +0 -75
- package/lib/typescript/src/mappings/StarRating.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Stepper.d.ts +0 -67
- package/lib/typescript/src/mappings/Stepper.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Surface.d.ts +0 -24
- package/lib/typescript/src/mappings/Surface.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Swiper.d.ts +0 -119
- package/lib/typescript/src/mappings/Swiper.d.ts.map +0 -1
- package/lib/typescript/src/mappings/SwiperItem.d.ts +0 -9
- package/lib/typescript/src/mappings/SwiperItem.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Switch.d.ts +0 -164
- package/lib/typescript/src/mappings/Switch.d.ts.map +0 -1
- package/lib/typescript/src/mappings/TabView.d.ts +0 -123
- package/lib/typescript/src/mappings/TabView.d.ts.map +0 -1
- package/lib/typescript/src/mappings/TabViewItem.d.ts +0 -25
- package/lib/typescript/src/mappings/TabViewItem.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Table.d.ts +0 -337
- package/lib/typescript/src/mappings/Table.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Text.d.ts +0 -411
- package/lib/typescript/src/mappings/Text.d.ts.map +0 -1
- package/lib/typescript/src/mappings/TextArea.d.ts +0 -263
- package/lib/typescript/src/mappings/TextArea.d.ts.map +0 -1
- package/lib/typescript/src/mappings/TextField.d.ts +0 -629
- package/lib/typescript/src/mappings/TextField.d.ts.map +0 -1
- package/lib/typescript/src/mappings/TextInput.d.ts +0 -415
- package/lib/typescript/src/mappings/TextInput.d.ts.map +0 -1
- package/lib/typescript/src/mappings/ToggleButton.d.ts +0 -116
- package/lib/typescript/src/mappings/ToggleButton.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Touchable.d.ts +0 -96
- package/lib/typescript/src/mappings/Touchable.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Video.d.ts +0 -129
- package/lib/typescript/src/mappings/Video.d.ts.map +0 -1
- package/lib/typescript/src/mappings/View.d.ts +0 -179
- package/lib/typescript/src/mappings/View.d.ts.map +0 -1
- package/lib/typescript/src/mappings/WebView.d.ts +0 -135
- package/lib/typescript/src/mappings/WebView.d.ts.map +0 -1
- package/lib/typescript/src/mappings/YoutubePlayer.d.ts +0 -27
- package/lib/typescript/src/mappings/YoutubePlayer.d.ts.map +0 -1
- package/src/components/DeprecatedCardWrapper.js +0 -18
- package/src/components/DeprecatedCardWrapper.tsx +0 -46
- package/src/components/DeprecatedFAB.js +0 -114
- package/src/components/DeprecatedFAB.tsx +0 -231
- package/src/components/ProgressIndicator.js +0 -27
- package/src/components/ProgressIndicator.tsx +0 -71
- package/src/components/ResizeMode.js +0 -1
- package/src/components/ResizeMode.ts +0 -7
- package/src/mappings/Accordion.js +0 -50
- package/src/mappings/Accordion.ts +0 -60
- package/src/mappings/AccordionItem.js +0 -17
- package/src/mappings/AccordionItem.ts +0 -24
- package/src/mappings/ActionSheet.js +0 -17
- package/src/mappings/ActionSheet.ts +0 -23
- package/src/mappings/ActionSheetCancel.js +0 -23
- package/src/mappings/ActionSheetCancel.ts +0 -32
- package/src/mappings/ActionSheetItem.js +0 -27
- package/src/mappings/ActionSheetItem.ts +0 -36
- package/src/mappings/ActivityIndicator.js +0 -58
- package/src/mappings/ActivityIndicator.ts +0 -68
- package/src/mappings/AudioPlayer.js +0 -57
- package/src/mappings/AudioPlayer.ts +0 -67
- package/src/mappings/AvatarEdit.js +0 -38
- package/src/mappings/AvatarEdit.ts +0 -45
- package/src/mappings/Banner.js +0 -32
- package/src/mappings/Banner.ts +0 -40
- package/src/mappings/BlurView.js +0 -42
- package/src/mappings/BlurView.ts +0 -51
- package/src/mappings/BottomSheet.js +0 -63
- package/src/mappings/BottomSheet.ts +0 -77
- package/src/mappings/Button.js +0 -116
- package/src/mappings/Button.ts +0 -130
- package/src/mappings/Card.js +0 -52
- package/src/mappings/Card.ts +0 -64
- package/src/mappings/CardBlock.js +0 -123
- package/src/mappings/CardBlock.ts +0 -136
- package/src/mappings/CardContainer.js +0 -104
- package/src/mappings/CardContainer.ts +0 -116
- package/src/mappings/CardContainerRating.js +0 -126
- package/src/mappings/CardContainerRating.ts +0 -137
- package/src/mappings/CardContainerShortImage.js +0 -120
- package/src/mappings/CardContainerShortImage.ts +0 -130
- package/src/mappings/CardInline.js +0 -52
- package/src/mappings/CardInline.ts +0 -61
- package/src/mappings/Carousel.js +0 -19
- package/src/mappings/Carousel.ts +0 -25
- package/src/mappings/Checkbox.js +0 -46
- package/src/mappings/Checkbox.ts +0 -57
- package/src/mappings/CheckboxGroup.js +0 -26
- package/src/mappings/CheckboxGroup.ts +0 -37
- package/src/mappings/CheckboxRow.js +0 -61
- package/src/mappings/CheckboxRow.ts +0 -74
- package/src/mappings/CircleImage.js +0 -25
- package/src/mappings/CircleImage.ts +0 -33
- package/src/mappings/CustomCode.js +0 -8
- package/src/mappings/CustomCode.ts +0 -9
- package/src/mappings/DatePicker.js +0 -182
- package/src/mappings/DatePicker.ts +0 -197
- package/src/mappings/DeckSwiper.js +0 -48
- package/src/mappings/DeckSwiper.ts +0 -57
- package/src/mappings/DeckSwiperCard.js +0 -16
- package/src/mappings/DeckSwiperCard.ts +0 -20
- package/src/mappings/Divider.js +0 -27
- package/src/mappings/Divider.ts +0 -34
- package/src/mappings/FAB.js +0 -37
- package/src/mappings/FAB.ts +0 -48
- package/src/mappings/Fetch.js +0 -13
- package/src/mappings/Fetch.ts +0 -14
- package/src/mappings/FieldSearchBarFull.js +0 -50
- package/src/mappings/FieldSearchBarFull.ts +0 -59
- package/src/mappings/FlashList.js +0 -113
- package/src/mappings/FlashList.ts +0 -131
- package/src/mappings/FlatList.js +0 -51
- package/src/mappings/FlatList.ts +0 -64
- package/src/mappings/HeaderLarge.js +0 -29
- package/src/mappings/HeaderLarge.ts +0 -38
- package/src/mappings/HeaderMedium.js +0 -55
- package/src/mappings/HeaderMedium.ts +0 -63
- package/src/mappings/HeaderOverline.js +0 -55
- package/src/mappings/HeaderOverline.ts +0 -63
- package/src/mappings/Icon.js +0 -32
- package/src/mappings/Icon.ts +0 -40
- package/src/mappings/IconButton.js +0 -33
- package/src/mappings/IconButton.ts +0 -44
- package/src/mappings/Image.js +0 -35
- package/src/mappings/Image.ts +0 -44
- package/src/mappings/ImageBackground.js +0 -29
- package/src/mappings/ImageBackground.ts +0 -41
- package/src/mappings/KeyboardAvoidingView.js +0 -41
- package/src/mappings/KeyboardAvoidingView.ts +0 -50
- package/src/mappings/KeyboardAwareScrollView.js +0 -50
- package/src/mappings/KeyboardAwareScrollView.ts +0 -63
- package/src/mappings/Layout.js +0 -200
- package/src/mappings/Layout.ts +0 -207
- package/src/mappings/LinearGradient.js +0 -82
- package/src/mappings/LinearGradient.ts +0 -89
- package/src/mappings/MapCallout.js +0 -26
- package/src/mappings/MapCallout.ts +0 -36
- package/src/mappings/MapMarker.js +0 -52
- package/src/mappings/MapMarker.ts +0 -62
- package/src/mappings/MapView.js +0 -142
- package/src/mappings/MapView.ts +0 -155
- package/src/mappings/Markdown.js +0 -25
- package/src/mappings/Markdown.ts +0 -32
- package/src/mappings/Modal.js +0 -42
- package/src/mappings/Modal.ts +0 -51
- package/src/mappings/NativeBase/Layout.js +0 -124
- package/src/mappings/NativeBase/Layout.ts +0 -145
- package/src/mappings/NumberInput.js +0 -254
- package/src/mappings/NumberInput.ts +0 -274
- package/src/mappings/Picker.js +0 -153
- package/src/mappings/Picker.ts +0 -169
- package/src/mappings/ProgressBar.js +0 -101
- package/src/mappings/ProgressBar.ts +0 -110
- package/src/mappings/ProgressCircle.js +0 -109
- package/src/mappings/ProgressCircle.ts +0 -117
- package/src/mappings/ProgressIndicator.js +0 -181
- package/src/mappings/ProgressIndicator.ts +0 -190
- package/src/mappings/RadioButton.js +0 -51
- package/src/mappings/RadioButton.ts +0 -62
- package/src/mappings/RadioButtonGroup.js +0 -17
- package/src/mappings/RadioButtonGroup.ts +0 -24
- package/src/mappings/RadioButtonRow.js +0 -42
- package/src/mappings/RadioButtonRow.ts +0 -51
- package/src/mappings/RowBodyIcon.js +0 -75
- package/src/mappings/RowBodyIcon.ts +0 -82
- package/src/mappings/RowHeadlineImageCaption.js +0 -167
- package/src/mappings/RowHeadlineImageCaption.ts +0 -178
- package/src/mappings/RowHeadlineImageIcon.js +0 -99
- package/src/mappings/RowHeadlineImageIcon.ts +0 -116
- package/src/mappings/SVG.js +0 -20
- package/src/mappings/SVG.ts +0 -25
- package/src/mappings/SafeAreaView.js +0 -33
- package/src/mappings/SafeAreaView.ts +0 -39
- package/src/mappings/ScrollView.js +0 -37
- package/src/mappings/ScrollView.ts +0 -48
- package/src/mappings/Shadow.js +0 -95
- package/src/mappings/Shadow.ts +0 -104
- package/src/mappings/Slider.js +0 -60
- package/src/mappings/Slider.ts +0 -70
- package/src/mappings/StarRating.js +0 -43
- package/src/mappings/StarRating.ts +0 -52
- package/src/mappings/Stepper.js +0 -32
- package/src/mappings/Stepper.ts +0 -42
- package/src/mappings/Surface.js +0 -14
- package/src/mappings/Surface.ts +0 -19
- package/src/mappings/Swiper.js +0 -71
- package/src/mappings/Swiper.ts +0 -82
- package/src/mappings/SwiperItem.js +0 -9
- package/src/mappings/SwiperItem.ts +0 -13
- package/src/mappings/Switch.js +0 -81
- package/src/mappings/Switch.ts +0 -92
- package/src/mappings/TabView.js +0 -75
- package/src/mappings/TabView.ts +0 -85
- package/src/mappings/TabViewItem.js +0 -30
- package/src/mappings/TabViewItem.ts +0 -38
- package/src/mappings/Table.js +0 -150
- package/src/mappings/Table.ts +0 -170
- package/src/mappings/Text.js +0 -251
- package/src/mappings/Text.ts +0 -276
- package/src/mappings/TextArea.js +0 -283
- package/src/mappings/TextArea.ts +0 -300
- package/src/mappings/TextField.js +0 -400
- package/src/mappings/TextField.ts +0 -423
- package/src/mappings/TextInput.js +0 -402
- package/src/mappings/TextInput.ts +0 -431
- package/src/mappings/ToggleButton.js +0 -50
- package/src/mappings/ToggleButton.ts +0 -63
- package/src/mappings/Touchable.js +0 -67
- package/src/mappings/Touchable.ts +0 -80
- package/src/mappings/Video.js +0 -81
- package/src/mappings/Video.ts +0 -95
- package/src/mappings/View.js +0 -207
- package/src/mappings/View.ts +0 -229
- package/src/mappings/WebView.js +0 -88
- package/src/mappings/WebView.ts +0 -107
- package/src/mappings/YoutubePlayer.js +0 -31
- package/src/mappings/YoutubePlayer.ts +0 -37
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import {
|
|
3
|
-
ActivityIndicator,
|
|
4
|
-
View,
|
|
5
|
-
StyleSheet,
|
|
6
|
-
StyleProp,
|
|
7
|
-
ViewStyle,
|
|
8
|
-
TextStyle,
|
|
9
|
-
Pressable,
|
|
10
|
-
PressableProps,
|
|
11
|
-
} from "react-native";
|
|
12
|
-
import color from "color";
|
|
13
|
-
import Config from "./Config";
|
|
14
|
-
import Text from "./Text";
|
|
15
|
-
import Elevation from "./Elevation";
|
|
16
|
-
import { withTheme } from "../theming";
|
|
17
|
-
|
|
18
|
-
import type { Theme } from "../styles/DefaultTheme";
|
|
19
|
-
import type { IconSlot } from "../interfaces/Icon";
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* A floating action button represents the primary action in an application.
|
|
23
|
-
*
|
|
24
|
-
* <div class="screenshots">
|
|
25
|
-
* <img src="screenshots/fab-1.png" />
|
|
26
|
-
* <img src="screenshots/fab-2.png" />
|
|
27
|
-
* </div>
|
|
28
|
-
*
|
|
29
|
-
* ## Usage
|
|
30
|
-
* ```js
|
|
31
|
-
* import * as React from 'react';
|
|
32
|
-
* import { StyleSheet } from 'react-native';
|
|
33
|
-
* import { FAB } from '@draftbit/ui';
|
|
34
|
-
*
|
|
35
|
-
* const MyComponent = () => (
|
|
36
|
-
* <FAB
|
|
37
|
-
* style={styles.fab}
|
|
38
|
-
* type="outline"
|
|
39
|
-
* icon="add"
|
|
40
|
-
* onPress={() => console.log('Pressed')}
|
|
41
|
-
* />
|
|
42
|
-
* );
|
|
43
|
-
*
|
|
44
|
-
* const styles = StyleSheet.create({
|
|
45
|
-
* fab: {
|
|
46
|
-
* position: 'absolute',
|
|
47
|
-
* margin: 16,
|
|
48
|
-
* right: 0,
|
|
49
|
-
* bottom: 0,
|
|
50
|
-
* },
|
|
51
|
-
* })
|
|
52
|
-
*
|
|
53
|
-
* export default MyComponent;
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
type Props = {
|
|
58
|
-
disabled?: boolean;
|
|
59
|
-
type?: "solid" | "extended" | "outline" | "fixed" | "standard";
|
|
60
|
-
loading?: boolean;
|
|
61
|
-
icon?: string;
|
|
62
|
-
color?: string;
|
|
63
|
-
label?: string;
|
|
64
|
-
onPress: () => void;
|
|
65
|
-
elevation?: number;
|
|
66
|
-
theme: Theme;
|
|
67
|
-
style?: StyleProp<ViewStyle>;
|
|
68
|
-
} & PressableProps &
|
|
69
|
-
IconSlot;
|
|
70
|
-
|
|
71
|
-
const FAB: React.FC<React.PropsWithChildren<Props>> = ({
|
|
72
|
-
Icon,
|
|
73
|
-
icon,
|
|
74
|
-
disabled = false,
|
|
75
|
-
type = "solid",
|
|
76
|
-
loading = false,
|
|
77
|
-
color: colorOverride,
|
|
78
|
-
label,
|
|
79
|
-
onPress,
|
|
80
|
-
elevation = 0,
|
|
81
|
-
style,
|
|
82
|
-
theme: { colors, disabledOpacity, roundness, typography },
|
|
83
|
-
...rest
|
|
84
|
-
}) => {
|
|
85
|
-
let backgroundColor, borderColor, textColor, borderWidth;
|
|
86
|
-
const buttonColor = colorOverride || colors.primary;
|
|
87
|
-
|
|
88
|
-
if (type === "standard" || type === "extended" || type === "fixed") {
|
|
89
|
-
backgroundColor = buttonColor;
|
|
90
|
-
|
|
91
|
-
if (disabled) {
|
|
92
|
-
textColor = color(colors.surface).alpha(disabledOpacity).rgb().string();
|
|
93
|
-
} else {
|
|
94
|
-
textColor = colors.surface;
|
|
95
|
-
}
|
|
96
|
-
} else {
|
|
97
|
-
backgroundColor = "transparent";
|
|
98
|
-
|
|
99
|
-
if (disabled) {
|
|
100
|
-
textColor = color(buttonColor).alpha(disabledOpacity).rgb().string();
|
|
101
|
-
} else {
|
|
102
|
-
textColor = buttonColor;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
if (type === "outline") {
|
|
107
|
-
if (disabled) {
|
|
108
|
-
borderColor = color(buttonColor).alpha(disabledOpacity).rgb().string();
|
|
109
|
-
} else {
|
|
110
|
-
borderColor = buttonColor;
|
|
111
|
-
}
|
|
112
|
-
borderWidth = StyleSheet.hairlineWidth;
|
|
113
|
-
} else {
|
|
114
|
-
borderColor = "transparent";
|
|
115
|
-
borderWidth = 0;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
const buttonStyle: StyleProp<ViewStyle> = {
|
|
119
|
-
backgroundColor,
|
|
120
|
-
borderColor,
|
|
121
|
-
borderWidth,
|
|
122
|
-
borderRadius: roundness,
|
|
123
|
-
alignItems: "center",
|
|
124
|
-
justifyContent: "center",
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
const buttonStyles: StyleProp<ViewStyle>[] = [styles.button, buttonStyle];
|
|
128
|
-
|
|
129
|
-
const contentStyle: StyleProp<ViewStyle>[] = [styles.content];
|
|
130
|
-
|
|
131
|
-
const textStyle: StyleProp<TextStyle> = {
|
|
132
|
-
textAlign: "center",
|
|
133
|
-
color: textColor,
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
const iconStyle: StyleProp<ViewStyle>[] = [
|
|
137
|
-
styles.icon,
|
|
138
|
-
{
|
|
139
|
-
width: Config.buttonIconSize,
|
|
140
|
-
},
|
|
141
|
-
];
|
|
142
|
-
|
|
143
|
-
if (type === "standard" || type === "outline") {
|
|
144
|
-
buttonStyle.width = Config.FABSize;
|
|
145
|
-
buttonStyle.height = Config.FABSize;
|
|
146
|
-
buttonStyle.borderRadius = Config.FABBorderRadius;
|
|
147
|
-
|
|
148
|
-
contentStyle.push({
|
|
149
|
-
width: Config.FABSize,
|
|
150
|
-
height: Config.FABSize,
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
if (type === "extended" || type === "fixed") {
|
|
155
|
-
iconStyle.push({
|
|
156
|
-
marginLeft: 16,
|
|
157
|
-
marginRight: -8,
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
textStyle.margin = 16;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
if (type === "fixed") {
|
|
164
|
-
buttonStyles.push({
|
|
165
|
-
height: Config.FABFixedHeight,
|
|
166
|
-
alignSelf: "stretch",
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
return (
|
|
171
|
-
<Elevation style={[{ elevation }, style]}>
|
|
172
|
-
<Pressable
|
|
173
|
-
{...rest}
|
|
174
|
-
onPress={onPress}
|
|
175
|
-
accessibilityState={{ disabled }}
|
|
176
|
-
accessibilityRole="button"
|
|
177
|
-
disabled={disabled || loading}
|
|
178
|
-
style={buttonStyles}
|
|
179
|
-
>
|
|
180
|
-
<View style={styles.content}>
|
|
181
|
-
{icon && loading !== true ? (
|
|
182
|
-
<View style={iconStyle}>
|
|
183
|
-
<Icon
|
|
184
|
-
name={icon}
|
|
185
|
-
size={Config.buttonIconSize}
|
|
186
|
-
color={textColor}
|
|
187
|
-
/>
|
|
188
|
-
</View>
|
|
189
|
-
) : null}
|
|
190
|
-
{loading ? (
|
|
191
|
-
<ActivityIndicator
|
|
192
|
-
size="small"
|
|
193
|
-
color={textColor}
|
|
194
|
-
style={iconStyle}
|
|
195
|
-
/>
|
|
196
|
-
) : null}
|
|
197
|
-
{label ? (
|
|
198
|
-
<Text numberOfLines={1} style={[textStyle, typography.button]}>
|
|
199
|
-
{label}
|
|
200
|
-
</Text>
|
|
201
|
-
) : null}
|
|
202
|
-
</View>
|
|
203
|
-
</Pressable>
|
|
204
|
-
</Elevation>
|
|
205
|
-
);
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
const styles = StyleSheet.create({
|
|
209
|
-
button: {
|
|
210
|
-
borderStyle: "solid",
|
|
211
|
-
},
|
|
212
|
-
content: {
|
|
213
|
-
flexDirection: "row",
|
|
214
|
-
alignItems: "center",
|
|
215
|
-
justifyContent: "center",
|
|
216
|
-
},
|
|
217
|
-
icon: {
|
|
218
|
-
alignItems: "center",
|
|
219
|
-
justifyContent: "center",
|
|
220
|
-
width: Config.buttonIconSize,
|
|
221
|
-
},
|
|
222
|
-
fixed: {
|
|
223
|
-
left: 0,
|
|
224
|
-
right: 0,
|
|
225
|
-
bottom: 0,
|
|
226
|
-
height: 64,
|
|
227
|
-
borderRadius: 0,
|
|
228
|
-
},
|
|
229
|
-
});
|
|
230
|
-
|
|
231
|
-
export default withTheme(FAB);
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import StepIndicator from "./StepIndicator";
|
|
3
|
-
import { withTheme } from "../theming";
|
|
4
|
-
const ProgressIndicator = ({ numberOfSteps, currentStep, currentStepStrokeWidth = 3, stepStrokeCurrentColor = "primary", stepIndicatorSize, currentStepIndicatorSize, stepIndicatorCurrentColor, stepIndicatorLabelCurrentColor, stepIndicatorLabelFontSize = 12, stepNumberFinishedColor = "strongInverse", stepNumberUnfinishedColor = "primary", unfinishedColor = "light", finishedColor = "primary", theme, }) => {
|
|
5
|
-
const currentPosition = currentStep - 1;
|
|
6
|
-
return (React.createElement(StepIndicator, { stepCount: numberOfSteps, currentPosition: currentPosition, customStyles: {
|
|
7
|
-
stepIndicatorSize,
|
|
8
|
-
currentStepIndicatorSize: currentStepIndicatorSize
|
|
9
|
-
? currentStepIndicatorSize
|
|
10
|
-
: stepIndicatorSize,
|
|
11
|
-
stepStrokeFinishedColor: finishedColor,
|
|
12
|
-
stepStrokeUnFinishedColor: unfinishedColor,
|
|
13
|
-
separatorFinishedColor: finishedColor,
|
|
14
|
-
separatorUnFinishedColor: unfinishedColor,
|
|
15
|
-
stepIndicatorFinishedColor: finishedColor,
|
|
16
|
-
stepIndicatorUnFinishedColor: unfinishedColor,
|
|
17
|
-
currentStepStrokeWidth,
|
|
18
|
-
stepStrokeCurrentColor: stepStrokeCurrentColor || stepIndicatorCurrentColor,
|
|
19
|
-
stepIndicatorLabelUnFinishedColor: stepNumberUnfinishedColor,
|
|
20
|
-
stepIndicatorLabelFinishedColor: stepNumberFinishedColor,
|
|
21
|
-
stepIndicatorCurrentColor: stepIndicatorCurrentColor || unfinishedColor,
|
|
22
|
-
stepIndicatorLabelCurrentColor: stepIndicatorLabelCurrentColor || stepNumberUnfinishedColor,
|
|
23
|
-
stepIndicatorLabelFontSize,
|
|
24
|
-
labelFontFamily: theme.typography.body1.fontFamily,
|
|
25
|
-
} }));
|
|
26
|
-
};
|
|
27
|
-
export default withTheme(ProgressIndicator);
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import StepIndicator from "./StepIndicator";
|
|
3
|
-
import { withTheme } from "../theming";
|
|
4
|
-
import themeT from "../styles/DefaultTheme";
|
|
5
|
-
import { colorTypes } from "@draftbit/types";
|
|
6
|
-
|
|
7
|
-
type Props = {
|
|
8
|
-
numberOfSteps: number;
|
|
9
|
-
currentStep: number;
|
|
10
|
-
currentStepStrokeWidth?: number;
|
|
11
|
-
stepStrokeCurrentColor?: colorTypes;
|
|
12
|
-
stepIndicatorSize?: number;
|
|
13
|
-
currentStepIndicatorSize?: number;
|
|
14
|
-
stepIndicatorCurrentColor?: colorTypes;
|
|
15
|
-
stepIndicatorLabelCurrentColor?: colorTypes;
|
|
16
|
-
stepIndicatorLabelFontSize?: number;
|
|
17
|
-
stepNumberFinishedColor?: colorTypes;
|
|
18
|
-
stepNumberUnfinishedColor?: colorTypes;
|
|
19
|
-
unfinishedColor?: colorTypes;
|
|
20
|
-
finishedColor?: colorTypes;
|
|
21
|
-
theme: typeof themeT;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const ProgressIndicator: React.FC<React.PropsWithChildren<Props>> = ({
|
|
25
|
-
numberOfSteps,
|
|
26
|
-
currentStep,
|
|
27
|
-
currentStepStrokeWidth = 3,
|
|
28
|
-
stepStrokeCurrentColor = "primary",
|
|
29
|
-
stepIndicatorSize,
|
|
30
|
-
currentStepIndicatorSize,
|
|
31
|
-
stepIndicatorCurrentColor,
|
|
32
|
-
stepIndicatorLabelCurrentColor,
|
|
33
|
-
stepIndicatorLabelFontSize = 12,
|
|
34
|
-
stepNumberFinishedColor = "strongInverse",
|
|
35
|
-
stepNumberUnfinishedColor = "primary",
|
|
36
|
-
unfinishedColor = "light",
|
|
37
|
-
finishedColor = "primary",
|
|
38
|
-
theme,
|
|
39
|
-
}) => {
|
|
40
|
-
const currentPosition = currentStep - 1;
|
|
41
|
-
return (
|
|
42
|
-
<StepIndicator
|
|
43
|
-
stepCount={numberOfSteps}
|
|
44
|
-
currentPosition={currentPosition}
|
|
45
|
-
customStyles={{
|
|
46
|
-
stepIndicatorSize,
|
|
47
|
-
currentStepIndicatorSize: currentStepIndicatorSize
|
|
48
|
-
? currentStepIndicatorSize
|
|
49
|
-
: stepIndicatorSize,
|
|
50
|
-
stepStrokeFinishedColor: finishedColor,
|
|
51
|
-
stepStrokeUnFinishedColor: unfinishedColor,
|
|
52
|
-
separatorFinishedColor: finishedColor,
|
|
53
|
-
separatorUnFinishedColor: unfinishedColor,
|
|
54
|
-
stepIndicatorFinishedColor: finishedColor,
|
|
55
|
-
stepIndicatorUnFinishedColor: unfinishedColor,
|
|
56
|
-
currentStepStrokeWidth,
|
|
57
|
-
stepStrokeCurrentColor:
|
|
58
|
-
stepStrokeCurrentColor || stepIndicatorCurrentColor,
|
|
59
|
-
stepIndicatorLabelUnFinishedColor: stepNumberUnfinishedColor,
|
|
60
|
-
stepIndicatorLabelFinishedColor: stepNumberFinishedColor,
|
|
61
|
-
stepIndicatorCurrentColor: stepIndicatorCurrentColor || unfinishedColor,
|
|
62
|
-
stepIndicatorLabelCurrentColor:
|
|
63
|
-
stepIndicatorLabelCurrentColor || stepNumberUnfinishedColor,
|
|
64
|
-
stepIndicatorLabelFontSize,
|
|
65
|
-
labelFontFamily: theme.typography.body1.fontFamily,
|
|
66
|
-
}}
|
|
67
|
-
/>
|
|
68
|
-
);
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export default withTheme(ProgressIndicator);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createNumberProp, createIconProp, createTextProp, createStaticBoolProp, createColorProp, StylesPanelSections, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Accordion",
|
|
4
|
-
tag: "AccordionGroup",
|
|
5
|
-
description: "An expandable container containing components",
|
|
6
|
-
category: COMPONENT_TYPES.container,
|
|
7
|
-
stylesPanelSections: [
|
|
8
|
-
StylesPanelSections.LayoutSelectedItem,
|
|
9
|
-
StylesPanelSections.Background,
|
|
10
|
-
StylesPanelSections.Size,
|
|
11
|
-
StylesPanelSections.MarginsAndPaddings,
|
|
12
|
-
StylesPanelSections.Position,
|
|
13
|
-
StylesPanelSections.Borders,
|
|
14
|
-
StylesPanelSections.Effects,
|
|
15
|
-
],
|
|
16
|
-
layout: {
|
|
17
|
-
paddingTop: 8,
|
|
18
|
-
paddingRight: 8,
|
|
19
|
-
paddingBottom: 8,
|
|
20
|
-
paddingLeft: 8,
|
|
21
|
-
fontSize: 16,
|
|
22
|
-
},
|
|
23
|
-
props: {
|
|
24
|
-
label: createTextProp({
|
|
25
|
-
label: "Label",
|
|
26
|
-
}),
|
|
27
|
-
expanded: createStaticBoolProp({
|
|
28
|
-
label: "Expanded",
|
|
29
|
-
description: "Whether the AccordionGroup should be initaially expanded or not",
|
|
30
|
-
}),
|
|
31
|
-
openColor: createColorProp({
|
|
32
|
-
label: "Open text color",
|
|
33
|
-
}),
|
|
34
|
-
closedColor: createColorProp({
|
|
35
|
-
label: "Closed text color",
|
|
36
|
-
}),
|
|
37
|
-
caretColor: createColorProp({
|
|
38
|
-
label: "Caret color",
|
|
39
|
-
}),
|
|
40
|
-
caretSize: createNumberProp({
|
|
41
|
-
label: "Caret size",
|
|
42
|
-
defaultValue: 24,
|
|
43
|
-
}),
|
|
44
|
-
icon: createIconProp(),
|
|
45
|
-
iconSize: createNumberProp({
|
|
46
|
-
label: "Icon size",
|
|
47
|
-
defaultValue: 24,
|
|
48
|
-
}),
|
|
49
|
-
},
|
|
50
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
createNumberProp,
|
|
4
|
-
createIconProp,
|
|
5
|
-
createTextProp,
|
|
6
|
-
createStaticBoolProp,
|
|
7
|
-
createColorProp,
|
|
8
|
-
StylesPanelSections,
|
|
9
|
-
} from "@draftbit/types";
|
|
10
|
-
|
|
11
|
-
export const SEED_DATA = {
|
|
12
|
-
name: "Accordion",
|
|
13
|
-
tag: "AccordionGroup",
|
|
14
|
-
description: "An expandable container containing components",
|
|
15
|
-
category: COMPONENT_TYPES.container,
|
|
16
|
-
stylesPanelSections: [
|
|
17
|
-
StylesPanelSections.LayoutSelectedItem,
|
|
18
|
-
StylesPanelSections.Background,
|
|
19
|
-
StylesPanelSections.Size,
|
|
20
|
-
StylesPanelSections.MarginsAndPaddings,
|
|
21
|
-
StylesPanelSections.Position,
|
|
22
|
-
StylesPanelSections.Borders,
|
|
23
|
-
StylesPanelSections.Effects,
|
|
24
|
-
],
|
|
25
|
-
layout: {
|
|
26
|
-
paddingTop: 8,
|
|
27
|
-
paddingRight: 8,
|
|
28
|
-
paddingBottom: 8,
|
|
29
|
-
paddingLeft: 8,
|
|
30
|
-
fontSize: 16,
|
|
31
|
-
},
|
|
32
|
-
props: {
|
|
33
|
-
label: createTextProp({
|
|
34
|
-
label: "Label",
|
|
35
|
-
}),
|
|
36
|
-
expanded: createStaticBoolProp({
|
|
37
|
-
label: "Expanded",
|
|
38
|
-
description:
|
|
39
|
-
"Whether the AccordionGroup should be initaially expanded or not",
|
|
40
|
-
}),
|
|
41
|
-
openColor: createColorProp({
|
|
42
|
-
label: "Open text color",
|
|
43
|
-
}),
|
|
44
|
-
closedColor: createColorProp({
|
|
45
|
-
label: "Closed text color",
|
|
46
|
-
}),
|
|
47
|
-
caretColor: createColorProp({
|
|
48
|
-
label: "Caret color",
|
|
49
|
-
}),
|
|
50
|
-
caretSize: createNumberProp({
|
|
51
|
-
label: "Caret size",
|
|
52
|
-
defaultValue: 24,
|
|
53
|
-
}),
|
|
54
|
-
icon: createIconProp(),
|
|
55
|
-
iconSize: createNumberProp({
|
|
56
|
-
label: "Icon size",
|
|
57
|
-
defaultValue: 24,
|
|
58
|
-
}),
|
|
59
|
-
},
|
|
60
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createIconProp, createTextProp, createColorProp, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Accordion Item",
|
|
4
|
-
tag: "AccordionItem",
|
|
5
|
-
description: "Item to be used in Accordion",
|
|
6
|
-
category: COMPONENT_TYPES.deprecated,
|
|
7
|
-
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
|
-
props: {
|
|
9
|
-
icon: createIconProp(),
|
|
10
|
-
label: createTextProp({
|
|
11
|
-
label: "Item label",
|
|
12
|
-
}),
|
|
13
|
-
iconColor: createColorProp({
|
|
14
|
-
label: "Icon color",
|
|
15
|
-
}),
|
|
16
|
-
},
|
|
17
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
createIconProp,
|
|
4
|
-
createTextProp,
|
|
5
|
-
createColorProp,
|
|
6
|
-
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
7
|
-
} from "@draftbit/types";
|
|
8
|
-
|
|
9
|
-
export const SEED_DATA = {
|
|
10
|
-
name: "Accordion Item",
|
|
11
|
-
tag: "AccordionItem",
|
|
12
|
-
description: "Item to be used in Accordion",
|
|
13
|
-
category: COMPONENT_TYPES.deprecated,
|
|
14
|
-
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
15
|
-
props: {
|
|
16
|
-
icon: createIconProp(),
|
|
17
|
-
label: createTextProp({
|
|
18
|
-
label: "Item label",
|
|
19
|
-
}),
|
|
20
|
-
iconColor: createColorProp({
|
|
21
|
-
label: "Icon color",
|
|
22
|
-
}),
|
|
23
|
-
},
|
|
24
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createStaticBoolProp, GROUPS, StylesPanelSections, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Action Sheet",
|
|
4
|
-
tag: "ActionSheet",
|
|
5
|
-
description: "Action Sheet container",
|
|
6
|
-
category: COMPONENT_TYPES.actionsheet,
|
|
7
|
-
stylesPanelSections: [
|
|
8
|
-
StylesPanelSections.Margins,
|
|
9
|
-
StylesPanelSections.Effects,
|
|
10
|
-
],
|
|
11
|
-
props: {
|
|
12
|
-
visible: createStaticBoolProp({
|
|
13
|
-
group: GROUPS.data,
|
|
14
|
-
label: "Show Action Sheet",
|
|
15
|
-
}),
|
|
16
|
-
},
|
|
17
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
createStaticBoolProp,
|
|
4
|
-
GROUPS,
|
|
5
|
-
StylesPanelSections,
|
|
6
|
-
} from "@draftbit/types";
|
|
7
|
-
|
|
8
|
-
export const SEED_DATA = {
|
|
9
|
-
name: "Action Sheet",
|
|
10
|
-
tag: "ActionSheet",
|
|
11
|
-
description: "Action Sheet container",
|
|
12
|
-
category: COMPONENT_TYPES.actionsheet,
|
|
13
|
-
stylesPanelSections: [
|
|
14
|
-
StylesPanelSections.Margins,
|
|
15
|
-
StylesPanelSections.Effects,
|
|
16
|
-
],
|
|
17
|
-
props: {
|
|
18
|
-
visible: createStaticBoolProp({
|
|
19
|
-
group: GROUPS.data,
|
|
20
|
-
label: "Show Action Sheet",
|
|
21
|
-
}),
|
|
22
|
-
},
|
|
23
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createActionProp, createColorProp, createTextProp, GROUPS, Triggers, StylesPanelSections, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Action Sheet Cancel",
|
|
4
|
-
tag: "ActionSheetCancel",
|
|
5
|
-
description: "Action Sheet cancel",
|
|
6
|
-
stylesPanelSections: [
|
|
7
|
-
StylesPanelSections.Margins,
|
|
8
|
-
StylesPanelSections.Effects,
|
|
9
|
-
],
|
|
10
|
-
category: COMPONENT_TYPES.actionsheet,
|
|
11
|
-
triggers: [Triggers.OnPress],
|
|
12
|
-
props: {
|
|
13
|
-
onPress: createActionProp(),
|
|
14
|
-
label: createTextProp({
|
|
15
|
-
group: GROUPS.basic,
|
|
16
|
-
label: "Label",
|
|
17
|
-
defaultValue: "Cancel",
|
|
18
|
-
}),
|
|
19
|
-
color: createColorProp({
|
|
20
|
-
label: "Font Color",
|
|
21
|
-
}),
|
|
22
|
-
},
|
|
23
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
createActionProp,
|
|
4
|
-
createColorProp,
|
|
5
|
-
createTextProp,
|
|
6
|
-
GROUPS,
|
|
7
|
-
Triggers,
|
|
8
|
-
StylesPanelSections,
|
|
9
|
-
} from "@draftbit/types";
|
|
10
|
-
|
|
11
|
-
export const SEED_DATA = {
|
|
12
|
-
name: "Action Sheet Cancel",
|
|
13
|
-
tag: "ActionSheetCancel",
|
|
14
|
-
description: "Action Sheet cancel",
|
|
15
|
-
stylesPanelSections: [
|
|
16
|
-
StylesPanelSections.Margins,
|
|
17
|
-
StylesPanelSections.Effects,
|
|
18
|
-
],
|
|
19
|
-
category: COMPONENT_TYPES.actionsheet,
|
|
20
|
-
triggers: [Triggers.OnPress],
|
|
21
|
-
props: {
|
|
22
|
-
onPress: createActionProp(),
|
|
23
|
-
label: createTextProp({
|
|
24
|
-
group: GROUPS.basic,
|
|
25
|
-
label: "Label",
|
|
26
|
-
defaultValue: "Cancel",
|
|
27
|
-
}),
|
|
28
|
-
color: createColorProp({
|
|
29
|
-
label: "Font Color",
|
|
30
|
-
}),
|
|
31
|
-
},
|
|
32
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createActionProp, createColorProp, createTextProp, GROUPS, Triggers, StylesPanelSections, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Action Sheet Item",
|
|
4
|
-
tag: "ActionSheetItem",
|
|
5
|
-
description: "Action Sheet item",
|
|
6
|
-
category: COMPONENT_TYPES.actionsheet,
|
|
7
|
-
stylesPanelSections: [
|
|
8
|
-
StylesPanelSections.Margins,
|
|
9
|
-
StylesPanelSections.Effects,
|
|
10
|
-
],
|
|
11
|
-
triggers: [Triggers.OnPress],
|
|
12
|
-
layout: {
|
|
13
|
-
textAlign: "center",
|
|
14
|
-
},
|
|
15
|
-
props: {
|
|
16
|
-
onPress: createActionProp(),
|
|
17
|
-
label: createTextProp({
|
|
18
|
-
group: GROUPS.basic,
|
|
19
|
-
label: "Label",
|
|
20
|
-
defaultValue: "Option",
|
|
21
|
-
}),
|
|
22
|
-
color: createColorProp({
|
|
23
|
-
label: "Font Color",
|
|
24
|
-
defaultValue: "strong",
|
|
25
|
-
}),
|
|
26
|
-
},
|
|
27
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
createActionProp,
|
|
4
|
-
createColorProp,
|
|
5
|
-
createTextProp,
|
|
6
|
-
GROUPS,
|
|
7
|
-
Triggers,
|
|
8
|
-
StylesPanelSections,
|
|
9
|
-
} from "@draftbit/types";
|
|
10
|
-
|
|
11
|
-
export const SEED_DATA = {
|
|
12
|
-
name: "Action Sheet Item",
|
|
13
|
-
tag: "ActionSheetItem",
|
|
14
|
-
description: "Action Sheet item",
|
|
15
|
-
category: COMPONENT_TYPES.actionsheet,
|
|
16
|
-
stylesPanelSections: [
|
|
17
|
-
StylesPanelSections.Margins,
|
|
18
|
-
StylesPanelSections.Effects,
|
|
19
|
-
],
|
|
20
|
-
triggers: [Triggers.OnPress],
|
|
21
|
-
layout: {
|
|
22
|
-
textAlign: "center",
|
|
23
|
-
},
|
|
24
|
-
props: {
|
|
25
|
-
onPress: createActionProp(),
|
|
26
|
-
label: createTextProp({
|
|
27
|
-
group: GROUPS.basic,
|
|
28
|
-
label: "Label",
|
|
29
|
-
defaultValue: "Option",
|
|
30
|
-
}),
|
|
31
|
-
color: createColorProp({
|
|
32
|
-
label: "Font Color",
|
|
33
|
-
defaultValue: "strong",
|
|
34
|
-
}),
|
|
35
|
-
},
|
|
36
|
-
};
|