@draftbit/core 46.2.1-327d47.2 → 46.2.1-39f6d9.3
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/ActionSheet/ActionSheetCancel.js.map +1 -1
- package/lib/commonjs/components/CardBlock.js +5 -15
- package/lib/commonjs/components/CardBlock.js.map +1 -1
- package/lib/commonjs/components/Checkbox/Checkbox.js +4 -2
- package/lib/commonjs/components/Checkbox/Checkbox.js.map +1 -1
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +6 -23
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js.map +1 -1
- package/lib/commonjs/components/Checkbox/context.js +1 -1
- package/lib/commonjs/components/Checkbox/context.js.map +1 -1
- package/lib/commonjs/components/CircleImage.js +3 -17
- package/lib/commonjs/components/CircleImage.js.map +1 -1
- package/lib/commonjs/components/Config.js.map +1 -1
- package/lib/commonjs/components/DatePicker/DatePicker.js +8 -7
- package/lib/commonjs/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js.map +1 -1
- package/lib/commonjs/components/DeprecatedButton.js +20 -4
- package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
- package/lib/commonjs/components/DeprecatedFAB.js +4 -21
- package/lib/commonjs/components/DeprecatedFAB.js.map +1 -1
- package/lib/commonjs/components/HeaderLarge.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +5 -17
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +1 -1
- package/lib/commonjs/components/Swiper/SwiperItem.js.map +1 -1
- package/lib/commonjs/components/Text.js +11 -38
- package/lib/commonjs/components/Text.js.map +1 -1
- package/lib/commonjs/mappings/ActivityIndicator.js +1 -0
- package/lib/commonjs/mappings/ActivityIndicator.js.map +1 -1
- package/lib/commonjs/mappings/AvatarEdit.js +1 -0
- package/lib/commonjs/mappings/AvatarEdit.js.map +1 -1
- package/lib/commonjs/mappings/BlurView.js +1 -0
- package/lib/commonjs/mappings/BlurView.js.map +1 -1
- package/lib/commonjs/mappings/Button.js +2 -0
- package/lib/commonjs/mappings/Button.js.map +1 -1
- package/lib/commonjs/mappings/CardBlock.js +1 -0
- package/lib/commonjs/mappings/CardBlock.js.map +1 -1
- package/lib/commonjs/mappings/CardContainer.js +2 -0
- package/lib/commonjs/mappings/CardContainer.js.map +1 -1
- package/lib/commonjs/mappings/CardContainerRating.js +2 -0
- package/lib/commonjs/mappings/CardContainerRating.js.map +1 -1
- package/lib/commonjs/mappings/CardContainerShortImage.js +2 -0
- package/lib/commonjs/mappings/CardContainerShortImage.js.map +1 -1
- package/lib/commonjs/mappings/CardInline.js +1 -0
- package/lib/commonjs/mappings/CardInline.js.map +1 -1
- package/lib/commonjs/mappings/Carousel.js +1 -0
- package/lib/commonjs/mappings/Carousel.js.map +1 -1
- package/lib/commonjs/mappings/Checkbox.js +1 -0
- package/lib/commonjs/mappings/Checkbox.js.map +1 -1
- package/lib/commonjs/mappings/CheckboxGroup.js +1 -0
- package/lib/commonjs/mappings/CheckboxGroup.js.map +1 -1
- package/lib/commonjs/mappings/CheckboxRow.js +1 -0
- package/lib/commonjs/mappings/CheckboxRow.js.map +1 -1
- package/lib/commonjs/mappings/CircleImage.js +1 -0
- package/lib/commonjs/mappings/CircleImage.js.map +1 -1
- package/lib/commonjs/mappings/Container.js +1 -0
- package/lib/commonjs/mappings/Container.js.map +1 -1
- package/lib/commonjs/mappings/Divider.js +1 -0
- package/lib/commonjs/mappings/Divider.js.map +1 -1
- package/lib/commonjs/mappings/FAB.js +1 -0
- package/lib/commonjs/mappings/FAB.js.map +1 -1
- package/lib/commonjs/mappings/Fetch.js +1 -0
- package/lib/commonjs/mappings/Fetch.js.map +1 -1
- package/lib/commonjs/mappings/FieldSearchBarFull.js +1 -0
- package/lib/commonjs/mappings/FieldSearchBarFull.js.map +1 -1
- package/lib/commonjs/mappings/FlatList.js +1 -0
- package/lib/commonjs/mappings/FlatList.js.map +1 -1
- package/lib/commonjs/mappings/HeaderLarge.js +1 -0
- package/lib/commonjs/mappings/HeaderLarge.js.map +1 -1
- package/lib/commonjs/mappings/HeaderMedium.js +1 -0
- package/lib/commonjs/mappings/HeaderMedium.js.map +1 -1
- package/lib/commonjs/mappings/HeaderOverline.js +1 -0
- package/lib/commonjs/mappings/HeaderOverline.js.map +1 -1
- package/lib/commonjs/mappings/Icon.js +1 -0
- package/lib/commonjs/mappings/Icon.js.map +1 -1
- package/lib/commonjs/mappings/IconButton.js +1 -0
- package/lib/commonjs/mappings/IconButton.js.map +1 -1
- package/lib/commonjs/mappings/Image.js +1 -0
- package/lib/commonjs/mappings/Image.js.map +1 -1
- package/lib/commonjs/mappings/ImageBackground.js +1 -0
- package/lib/commonjs/mappings/ImageBackground.js.map +1 -1
- package/lib/commonjs/mappings/KeyboardAvoidingView.js +1 -0
- package/lib/commonjs/mappings/KeyboardAvoidingView.js.map +1 -1
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js +1 -0
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +1 -1
- package/lib/commonjs/mappings/Layout.js +5 -0
- package/lib/commonjs/mappings/Layout.js.map +1 -1
- package/lib/commonjs/mappings/Modal.js +1 -0
- package/lib/commonjs/mappings/Modal.js.map +1 -1
- package/lib/commonjs/mappings/NumberInput.js +1 -0
- package/lib/commonjs/mappings/NumberInput.js.map +1 -1
- package/lib/commonjs/mappings/Picker.js +1 -0
- package/lib/commonjs/mappings/Picker.js.map +1 -1
- package/lib/commonjs/mappings/ProgressBar.js +1 -0
- package/lib/commonjs/mappings/ProgressBar.js.map +1 -1
- package/lib/commonjs/mappings/ProgressCircle.js +1 -0
- package/lib/commonjs/mappings/ProgressCircle.js.map +1 -1
- package/lib/commonjs/mappings/ProgressIndicator.js +1 -0
- package/lib/commonjs/mappings/ProgressIndicator.js.map +1 -1
- package/lib/commonjs/mappings/RadioButton.js +1 -0
- package/lib/commonjs/mappings/RadioButton.js.map +1 -1
- package/lib/commonjs/mappings/RadioButtonGroup.js +1 -0
- package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
- package/lib/commonjs/mappings/RadioButtonRow.js +1 -0
- package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
- package/lib/commonjs/mappings/ScrollView.js +1 -0
- package/lib/commonjs/mappings/ScrollView.js.map +1 -1
- package/lib/commonjs/mappings/Slider.js +1 -0
- package/lib/commonjs/mappings/Slider.js.map +1 -1
- package/lib/commonjs/mappings/StarRating.js +1 -0
- package/lib/commonjs/mappings/StarRating.js.map +1 -1
- package/lib/commonjs/mappings/Stepper.js +1 -0
- package/lib/commonjs/mappings/Stepper.js.map +1 -1
- package/lib/commonjs/mappings/Surface.js +1 -0
- package/lib/commonjs/mappings/Surface.js.map +1 -1
- package/lib/commonjs/mappings/Switch.js +2 -0
- package/lib/commonjs/mappings/Switch.js.map +1 -1
- package/lib/commonjs/mappings/Text.js +2 -0
- package/lib/commonjs/mappings/Text.js.map +1 -1
- package/lib/commonjs/mappings/TextField.js +1 -0
- package/lib/commonjs/mappings/TextField.js.map +1 -1
- package/lib/commonjs/mappings/TextInput.js +1 -0
- package/lib/commonjs/mappings/TextInput.js.map +1 -1
- package/lib/commonjs/mappings/ToggleButton.js +1 -0
- package/lib/commonjs/mappings/ToggleButton.js.map +1 -1
- package/lib/commonjs/mappings/Touchable.js +1 -0
- package/lib/commonjs/mappings/Touchable.js.map +1 -1
- package/lib/commonjs/mappings/Video.js +1 -0
- package/lib/commonjs/mappings/Video.js.map +1 -1
- package/lib/commonjs/mappings/View.js +1 -0
- package/lib/commonjs/mappings/View.js.map +1 -1
- package/lib/commonjs/mappings/WebView.js +1 -0
- package/lib/commonjs/mappings/WebView.js.map +1 -1
- package/lib/commonjs/styles/DarkTheme.js.map +1 -1
- package/lib/module/components/DatePicker/DatePickerComponent.js.map +1 -1
- package/lib/module/mappings/ActivityIndicator.js +2 -1
- package/lib/module/mappings/ActivityIndicator.js.map +1 -1
- package/lib/module/mappings/AvatarEdit.js +2 -1
- package/lib/module/mappings/AvatarEdit.js.map +1 -1
- package/lib/module/mappings/BlurView.js +2 -1
- package/lib/module/mappings/BlurView.js.map +1 -1
- package/lib/module/mappings/Button.js +3 -1
- package/lib/module/mappings/Button.js.map +1 -1
- package/lib/module/mappings/CardBlock.js +2 -1
- package/lib/module/mappings/CardBlock.js.map +1 -1
- package/lib/module/mappings/CardContainer.js +3 -1
- package/lib/module/mappings/CardContainer.js.map +1 -1
- package/lib/module/mappings/CardContainerRating.js +3 -1
- package/lib/module/mappings/CardContainerRating.js.map +1 -1
- package/lib/module/mappings/CardContainerShortImage.js +3 -1
- package/lib/module/mappings/CardContainerShortImage.js.map +1 -1
- package/lib/module/mappings/CardInline.js +2 -1
- package/lib/module/mappings/CardInline.js.map +1 -1
- package/lib/module/mappings/Carousel.js +2 -1
- package/lib/module/mappings/Carousel.js.map +1 -1
- package/lib/module/mappings/Checkbox.js +2 -1
- package/lib/module/mappings/Checkbox.js.map +1 -1
- package/lib/module/mappings/CheckboxGroup.js +2 -1
- package/lib/module/mappings/CheckboxGroup.js.map +1 -1
- package/lib/module/mappings/CheckboxRow.js +2 -1
- package/lib/module/mappings/CheckboxRow.js.map +1 -1
- package/lib/module/mappings/CircleImage.js +2 -1
- package/lib/module/mappings/CircleImage.js.map +1 -1
- package/lib/module/mappings/Container.js +2 -1
- package/lib/module/mappings/Container.js.map +1 -1
- package/lib/module/mappings/Divider.js +2 -1
- package/lib/module/mappings/Divider.js.map +1 -1
- package/lib/module/mappings/FAB.js +2 -1
- package/lib/module/mappings/FAB.js.map +1 -1
- package/lib/module/mappings/Fetch.js +2 -1
- package/lib/module/mappings/Fetch.js.map +1 -1
- package/lib/module/mappings/FieldSearchBarFull.js +2 -1
- package/lib/module/mappings/FieldSearchBarFull.js.map +1 -1
- package/lib/module/mappings/FlatList.js +2 -1
- package/lib/module/mappings/FlatList.js.map +1 -1
- package/lib/module/mappings/HeaderLarge.js +2 -1
- package/lib/module/mappings/HeaderLarge.js.map +1 -1
- package/lib/module/mappings/HeaderMedium.js +2 -1
- package/lib/module/mappings/HeaderMedium.js.map +1 -1
- package/lib/module/mappings/HeaderOverline.js +2 -1
- package/lib/module/mappings/HeaderOverline.js.map +1 -1
- package/lib/module/mappings/Icon.js +2 -1
- package/lib/module/mappings/Icon.js.map +1 -1
- package/lib/module/mappings/IconButton.js +2 -1
- package/lib/module/mappings/IconButton.js.map +1 -1
- package/lib/module/mappings/Image.js +2 -1
- package/lib/module/mappings/Image.js.map +1 -1
- package/lib/module/mappings/ImageBackground.js +2 -1
- package/lib/module/mappings/ImageBackground.js.map +1 -1
- package/lib/module/mappings/KeyboardAvoidingView.js +2 -1
- package/lib/module/mappings/KeyboardAvoidingView.js.map +1 -1
- package/lib/module/mappings/KeyboardAwareScrollView.js +2 -1
- package/lib/module/mappings/KeyboardAwareScrollView.js.map +1 -1
- package/lib/module/mappings/Layout.js +6 -1
- package/lib/module/mappings/Layout.js.map +1 -1
- package/lib/module/mappings/Modal.js +2 -1
- package/lib/module/mappings/Modal.js.map +1 -1
- package/lib/module/mappings/NumberInput.js +2 -1
- package/lib/module/mappings/NumberInput.js.map +1 -1
- package/lib/module/mappings/Picker.js +2 -1
- package/lib/module/mappings/Picker.js.map +1 -1
- package/lib/module/mappings/ProgressBar.js +2 -1
- package/lib/module/mappings/ProgressBar.js.map +1 -1
- package/lib/module/mappings/ProgressCircle.js +2 -1
- package/lib/module/mappings/ProgressCircle.js.map +1 -1
- package/lib/module/mappings/ProgressIndicator.js +2 -1
- package/lib/module/mappings/ProgressIndicator.js.map +1 -1
- package/lib/module/mappings/RadioButton.js +2 -1
- package/lib/module/mappings/RadioButton.js.map +1 -1
- package/lib/module/mappings/RadioButtonGroup.js +2 -1
- package/lib/module/mappings/RadioButtonGroup.js.map +1 -1
- package/lib/module/mappings/RadioButtonRow.js +2 -1
- package/lib/module/mappings/RadioButtonRow.js.map +1 -1
- package/lib/module/mappings/ScrollView.js +2 -1
- package/lib/module/mappings/ScrollView.js.map +1 -1
- package/lib/module/mappings/Slider.js +2 -1
- package/lib/module/mappings/Slider.js.map +1 -1
- package/lib/module/mappings/StarRating.js +2 -1
- package/lib/module/mappings/StarRating.js.map +1 -1
- package/lib/module/mappings/Stepper.js +2 -1
- package/lib/module/mappings/Stepper.js.map +1 -1
- package/lib/module/mappings/Surface.js +2 -1
- package/lib/module/mappings/Surface.js.map +1 -1
- package/lib/module/mappings/Switch.js +3 -1
- package/lib/module/mappings/Switch.js.map +1 -1
- package/lib/module/mappings/Text.js +3 -1
- package/lib/module/mappings/Text.js.map +1 -1
- package/lib/module/mappings/TextField.js +2 -1
- package/lib/module/mappings/TextField.js.map +1 -1
- package/lib/module/mappings/TextInput.js +2 -1
- package/lib/module/mappings/TextInput.js.map +1 -1
- package/lib/module/mappings/ToggleButton.js +2 -1
- package/lib/module/mappings/ToggleButton.js.map +1 -1
- package/lib/module/mappings/Touchable.js +2 -1
- package/lib/module/mappings/Touchable.js.map +1 -1
- package/lib/module/mappings/Video.js +2 -1
- package/lib/module/mappings/Video.js.map +1 -1
- package/lib/module/mappings/View.js +2 -1
- package/lib/module/mappings/View.js.map +1 -1
- package/lib/module/mappings/WebView.js +2 -1
- package/lib/module/mappings/WebView.js.map +1 -1
- package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
- package/lib/typescript/src/mappings/AvatarEdit.d.ts +1 -0
- package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
- package/lib/typescript/src/mappings/Button.d.ts +2 -0
- package/lib/typescript/src/mappings/CardBlock.d.ts +101 -0
- package/lib/typescript/src/mappings/CardContainer.d.ts +1 -0
- package/lib/typescript/src/mappings/CardContainerRating.d.ts +1 -0
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +2 -0
- package/lib/typescript/src/mappings/CardInline.d.ts +1 -0
- package/lib/typescript/src/mappings/Carousel.d.ts +1 -0
- package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
- package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
- package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
- package/lib/typescript/src/mappings/CircleImage.d.ts +1 -0
- package/lib/typescript/src/mappings/Container.d.ts +1 -0
- package/lib/typescript/src/mappings/Divider.d.ts +1 -0
- package/lib/typescript/src/mappings/FAB.d.ts +1 -0
- package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +1 -0
- package/lib/typescript/src/mappings/FlatList.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderLarge.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderMedium.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderOverline.d.ts +1 -0
- package/lib/typescript/src/mappings/Icon.d.ts +1 -0
- package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
- package/lib/typescript/src/mappings/Image.d.ts +1 -0
- package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
- package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
- package/lib/typescript/src/mappings/Layout.d.ts +4 -0
- package/lib/typescript/src/mappings/Modal.d.ts +1 -0
- package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
- package/lib/typescript/src/mappings/Picker.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressBar.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressCircle.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
- package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
- package/lib/typescript/src/mappings/Slider.d.ts +1 -0
- package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
- package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
- package/lib/typescript/src/mappings/Surface.d.ts +1 -0
- package/lib/typescript/src/mappings/Switch.d.ts +2 -0
- package/lib/typescript/src/mappings/Text.d.ts +2 -0
- package/lib/typescript/src/mappings/TextField.d.ts +2 -0
- package/lib/typescript/src/mappings/TextInput.d.ts +1 -0
- package/lib/typescript/src/mappings/ToggleButton.d.ts +1 -0
- package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
- package/lib/typescript/src/mappings/Video.d.ts +1 -0
- package/lib/typescript/src/mappings/View.d.ts +1 -0
- package/lib/typescript/src/mappings/WebView.d.ts +1 -0
- package/package.json +3 -3
- package/src/mappings/ActivityIndicator.js +6 -1
- package/src/mappings/ActivityIndicator.ts +6 -0
- package/src/mappings/AvatarEdit.js +2 -1
- package/src/mappings/AvatarEdit.ts +2 -0
- package/src/mappings/BlurView.js +2 -1
- package/src/mappings/BlurView.ts +2 -0
- package/src/mappings/Button.js +19 -1
- package/src/mappings/Button.ts +19 -0
- package/src/mappings/CardBlock.js +2 -1
- package/src/mappings/CardBlock.ts +2 -0
- package/src/mappings/CardContainer.js +3 -1
- package/src/mappings/CardContainer.ts +3 -0
- package/src/mappings/CardContainerRating.js +3 -1
- package/src/mappings/CardContainerRating.ts +3 -0
- package/src/mappings/CardContainerShortImage.js +3 -1
- package/src/mappings/CardContainerShortImage.ts +3 -0
- package/src/mappings/CardInline.js +2 -1
- package/src/mappings/CardInline.ts +2 -0
- package/src/mappings/Carousel.js +2 -1
- package/src/mappings/Carousel.ts +2 -0
- package/src/mappings/Checkbox.js +2 -1
- package/src/mappings/Checkbox.ts +2 -0
- package/src/mappings/CheckboxGroup.js +2 -1
- package/src/mappings/CheckboxGroup.ts +2 -0
- package/src/mappings/CheckboxRow.js +6 -1
- package/src/mappings/CheckboxRow.ts +6 -0
- package/src/mappings/CircleImage.js +2 -1
- package/src/mappings/CircleImage.ts +2 -0
- package/src/mappings/Container.js +2 -1
- package/src/mappings/Container.ts +2 -0
- package/src/mappings/Divider.js +2 -1
- package/src/mappings/Divider.ts +2 -0
- package/src/mappings/FAB.js +2 -1
- package/src/mappings/FAB.ts +2 -0
- package/src/mappings/Fetch.js +2 -1
- package/src/mappings/Fetch.ts +2 -1
- package/src/mappings/FieldSearchBarFull.js +2 -1
- package/src/mappings/FieldSearchBarFull.ts +2 -0
- package/src/mappings/FlatList.js +2 -1
- package/src/mappings/FlatList.ts +2 -0
- package/src/mappings/HeaderLarge.js +2 -1
- package/src/mappings/HeaderLarge.ts +2 -0
- package/src/mappings/HeaderMedium.js +2 -1
- package/src/mappings/HeaderMedium.ts +2 -0
- package/src/mappings/HeaderOverline.js +2 -1
- package/src/mappings/HeaderOverline.ts +2 -0
- package/src/mappings/Icon.js +8 -1
- package/src/mappings/Icon.ts +8 -0
- package/src/mappings/IconButton.js +6 -1
- package/src/mappings/IconButton.ts +6 -0
- package/src/mappings/Image.js +7 -1
- package/src/mappings/Image.ts +7 -0
- package/src/mappings/ImageBackground.js +2 -1
- package/src/mappings/ImageBackground.ts +2 -0
- package/src/mappings/KeyboardAvoidingView.js +2 -1
- package/src/mappings/KeyboardAvoidingView.ts +2 -0
- package/src/mappings/KeyboardAwareScrollView.js +2 -1
- package/src/mappings/KeyboardAwareScrollView.ts +2 -0
- package/src/mappings/Layout.js +6 -1
- package/src/mappings/Layout.ts +6 -0
- package/src/mappings/Modal.js +2 -1
- package/src/mappings/Modal.ts +2 -0
- package/src/mappings/NumberInput.js +10 -1
- package/src/mappings/NumberInput.ts +10 -0
- package/src/mappings/Picker.js +10 -1
- package/src/mappings/Picker.ts +10 -0
- package/src/mappings/ProgressBar.js +2 -1
- package/src/mappings/ProgressBar.ts +2 -0
- package/src/mappings/ProgressCircle.js +2 -1
- package/src/mappings/ProgressCircle.ts +2 -0
- package/src/mappings/ProgressIndicator.js +2 -1
- package/src/mappings/ProgressIndicator.ts +2 -0
- package/src/mappings/RadioButton.js +2 -1
- package/src/mappings/RadioButton.ts +2 -0
- package/src/mappings/RadioButtonGroup.js +2 -1
- package/src/mappings/RadioButtonGroup.ts +2 -0
- package/src/mappings/RadioButtonRow.js +6 -1
- package/src/mappings/RadioButtonRow.ts +6 -0
- package/src/mappings/ScrollView.js +2 -1
- package/src/mappings/ScrollView.ts +6 -1
- package/src/mappings/Slider.js +2 -1
- package/src/mappings/Slider.ts +2 -0
- package/src/mappings/StarRating.js +2 -1
- package/src/mappings/StarRating.ts +2 -0
- package/src/mappings/Stepper.js +2 -1
- package/src/mappings/Stepper.ts +2 -0
- package/src/mappings/Surface.js +2 -1
- package/src/mappings/Surface.ts +6 -1
- package/src/mappings/Switch.js +7 -1
- package/src/mappings/Switch.ts +8 -0
- package/src/mappings/Text.js +13 -1
- package/src/mappings/Text.ts +13 -0
- package/src/mappings/TextField.js +10 -1
- package/src/mappings/TextField.ts +10 -0
- package/src/mappings/TextInput.js +10 -1
- package/src/mappings/TextInput.ts +10 -0
- package/src/mappings/ToggleButton.js +6 -1
- package/src/mappings/ToggleButton.ts +6 -0
- package/src/mappings/Touchable.js +6 -1
- package/src/mappings/Touchable.ts +11 -1
- package/src/mappings/Video.js +8 -1
- package/src/mappings/Video.ts +8 -0
- package/src/mappings/View.js +2 -1
- package/src/mappings/View.ts +2 -0
- package/src/mappings/WebView.js +6 -1
- package/src/mappings/WebView.ts +6 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DatePickerComponent","value","onChange","mode","toggleVisibility","isVisible","theme","internalTheme","createMuiTheme","palette","primary","main","colors","Theme","secondary","Picker","DatePicker","TimePicker","DateTimePicker","
|
|
1
|
+
{"version":3,"names":["DatePickerComponent","value","onChange","mode","toggleVisibility","isVisible","theme","internalTheme","createMuiTheme","palette","primary","main","colors","Theme","secondary","Picker","DatePicker","TimePicker","DateTimePicker","DateFnsUtils","d","withTheme"],"sources":["DatePickerComponent.web.tsx"],"sourcesContent":["import React from \"react\";\nimport DateFnsUtils from \"@date-io/date-fns\";\nimport {\n MuiPickersUtilsProvider,\n DatePicker,\n TimePicker,\n DateTimePicker,\n} from \"@material-ui/pickers\";\nimport { createMuiTheme, ThemeProvider } from \"@material-ui/core/styles\";\nimport { DatePickerComponentProps as Props } from \"./DatePickerComponentType\";\nimport { withTheme } from \"../../theming\";\nimport Theme from \"../../styles/DefaultTheme\";\n\nconst DatePickerComponent: React.FC<Props & { theme: typeof Theme }> = ({\n value,\n onChange,\n mode,\n toggleVisibility,\n isVisible,\n theme,\n}) => {\n const internalTheme = createMuiTheme({\n palette: {\n primary: {\n main: theme.colors.primary || Theme.colors.primary,\n },\n secondary: {\n main: theme.colors.secondary || Theme.colors.secondary,\n },\n },\n });\n\n const Picker =\n mode === \"date\"\n ? DatePicker\n : mode === \"time\"\n ? TimePicker\n : DateTimePicker;\n\n return (\n <MuiPickersUtilsProvider utils={DateFnsUtils}>\n <ThemeProvider theme={internalTheme}>\n <Picker\n value={value}\n open={isVisible}\n onChange={(d) => {\n toggleVisibility();\n onChange(null, d);\n }}\n onClose={() => toggleVisibility()}\n variant=\"dialog\"\n TextFieldComponent={() => null}\n />\n </ThemeProvider>\n </MuiPickersUtilsProvider>\n );\n};\n\nexport default withTheme(DatePickerComponent);\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AAMA;;AAEA;;AACA;;;;AAEA,MAAMA,mBAA8D,GAAG,QAOjE;EAAA,IAPkE;IACtEC,KADsE;IAEtEC,QAFsE;IAGtEC,IAHsE;IAItEC,gBAJsE;IAKtEC,SALsE;IAMtEC;EANsE,CAOlE;EACJ,MAAMC,aAAa,GAAG,IAAAC,sBAAA,EAAe;IACnCC,OAAO,EAAE;MACPC,OAAO,EAAE;QACPC,IAAI,EAAEL,KAAK,CAACM,MAAN,CAAaF,OAAb,IAAwBG,qBAAA,CAAMD,MAAN,CAAaF;MADpC,CADF;MAIPI,SAAS,EAAE;QACTH,IAAI,EAAEL,KAAK,CAACM,MAAN,CAAaE,SAAb,IAA0BD,qBAAA,CAAMD,MAAN,CAAaE;MADpC;IAJJ;EAD0B,CAAf,CAAtB;EAWA,MAAMC,MAAM,GACVZ,IAAI,KAAK,MAAT,GACIa,mBADJ,GAEIb,IAAI,KAAK,MAAT,GACAc,mBADA,GAEAC,uBALN;EAOA,oBACE,6BAAC,gCAAD;IAAyB,KAAK,EAAEC;EAAhC,gBACE,6BAAC,qBAAD;IAAe,KAAK,EAAEZ;EAAtB,gBACE,6BAAC,MAAD;IACE,KAAK,EAAEN,KADT;IAEE,IAAI,EAAEI,SAFR;IAGE,QAAQ,EAAGe,CAAD,IAAO;MACfhB,gBAAgB;MAChBF,QAAQ,CAAC,IAAD,EAAOkB,CAAP,CAAR;IACD,CANH;IAOE,OAAO,EAAE,MAAMhB,gBAAgB,EAPjC;IAQE,OAAO,EAAC,QARV;IASE,kBAAkB,EAAE,MAAM;EAT5B,EADF,CADF,CADF;AAiBD,CA3CD;;eA6Ce,IAAAiB,kBAAA,EAAUrB,mBAAV,C"}
|
|
@@ -25,8 +25,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
27
|
|
|
28
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
|
-
|
|
30
28
|
const Button = _ref => {
|
|
31
29
|
let {
|
|
32
30
|
Icon,
|
|
@@ -128,7 +126,7 @@ const Button = _ref => {
|
|
|
128
126
|
alignSelf: "stretch",
|
|
129
127
|
...margins
|
|
130
128
|
}
|
|
131
|
-
}, /*#__PURE__*/React.createElement(_Touchable.default,
|
|
129
|
+
}, /*#__PURE__*/React.createElement(_Touchable.default, { ...rest,
|
|
132
130
|
onPress: onPress,
|
|
133
131
|
accessibilityState: {
|
|
134
132
|
disabled
|
|
@@ -136,7 +134,7 @@ const Button = _ref => {
|
|
|
136
134
|
accessibilityRole: "button",
|
|
137
135
|
disabled: disabled || loading,
|
|
138
136
|
style: [styles.button, buttonStyle, innerStyles]
|
|
139
|
-
}
|
|
137
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
140
138
|
style: styles.content
|
|
141
139
|
}, icon && loading !== true ? /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
142
140
|
style: iconStyle
|
|
@@ -171,5 +169,23 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
171
169
|
|
|
172
170
|
var _default = (0, _theming.withTheme)(Button);
|
|
173
171
|
|
|
172
|
+
exports.default = _default;
|
|
173
|
+
//# sourceMappingURL=DeprecatedButton.js.mapt.create({
|
|
174
|
+
button: {
|
|
175
|
+
minWidth: 64,
|
|
176
|
+
borderStyle: "solid"
|
|
177
|
+
},
|
|
178
|
+
content: {
|
|
179
|
+
flexDirection: "row",
|
|
180
|
+
alignItems: "center",
|
|
181
|
+
justifyContent: "center"
|
|
182
|
+
},
|
|
183
|
+
icon: {
|
|
184
|
+
width: _Config.default.buttonIconSize
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
var _default = (0, _theming.withTheme)(Button);
|
|
189
|
+
|
|
174
190
|
exports.default = _default;
|
|
175
191
|
//# sourceMappingURL=DeprecatedButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Button","Icon","icon","disabled","type","loading","labelColor","color","colorOverride","children","onPress","elevation","style","theme","colors","disabledOpacity","roundness","typography","rest","backgroundColor","borderColor","textColor","borderWidth","buttonColor","primary","surface","alpha","rgb","string","StyleSheet","hairlineWidth","buttonStyle","borderRadius","textStyle","textAlign","marginVertical","marginHorizontal","iconStyle","styles","marginLeft","marginRight","width","Config","buttonIconSize","margin","marginEnd","marginTop","marginBottom","innerStyles","flatten","margins","alignSelf","button","content","create","minWidth","borderStyle","flexDirection","alignItems","justifyContent","withTheme"],"sources":["DeprecatedButton.
|
|
1
|
+
{"version":3,"names":["Button","Icon","icon","disabled","type","loading","labelColor","color","colorOverride","children","onPress","elevation","style","theme","colors","disabledOpacity","roundness","typography","rest","backgroundColor","borderColor","textColor","borderWidth","buttonColor","primary","surface","alpha","rgb","string","StyleSheet","hairlineWidth","buttonStyle","borderRadius","textStyle","textAlign","marginVertical","marginHorizontal","iconStyle","styles","marginLeft","marginRight","width","Config","buttonIconSize","margin","marginEnd","marginTop","marginBottom","innerStyles","flatten","margins","React","createElement","Elevation","alignSelf","Touchable","accessibilityState","accessibilityRole","button","View","content","name","size","ActivityIndicator","Text","numberOfLines","create","minWidth","borderStyle","flexDirection","alignItems","justifyContent","withTheme"],"sources":["DeprecatedButton.js"],"sourcesContent":["import * as React from \"react\";\nimport { ActivityIndicator, View, Text, StyleSheet, } from \"react-native\";\nimport color from \"color\";\nimport Config from \"./Config\";\nimport Touchable from \"./Touchable\";\nimport Elevation from \"./Elevation\";\nimport { withTheme } from \"../theming\";\nconst Button = ({ Icon, icon, disabled = false, type = \"solid\", loading = false, labelColor, color: colorOverride, children, onPress, elevation = 0, style, theme: { colors, disabledOpacity, roundness, typography }, ...rest }) => {\n let backgroundColor, borderColor, textColor, borderWidth;\n const buttonColor = colorOverride || colors.primary;\n if (type === \"solid\") {\n backgroundColor = buttonColor;\n if (disabled) {\n textColor = color(colors.surface).alpha(disabledOpacity).rgb().string();\n }\n else {\n textColor = labelColor || colors.surface;\n }\n }\n else {\n backgroundColor = \"transparent\";\n if (disabled) {\n textColor = color(buttonColor).alpha(disabledOpacity).rgb().string();\n }\n else {\n textColor = labelColor || buttonColor;\n }\n }\n if (type === \"outline\") {\n if (disabled) {\n borderColor = color(buttonColor).alpha(disabledOpacity).rgb().string();\n }\n else {\n borderColor = buttonColor;\n }\n borderWidth = StyleSheet.hairlineWidth;\n }\n else {\n borderColor = \"transparent\";\n borderWidth = 0;\n }\n const buttonStyle = {\n backgroundColor,\n borderColor,\n borderWidth,\n borderRadius: roundness,\n };\n const textStyle = {\n textAlign: \"center\",\n color: textColor,\n marginVertical: 16,\n marginHorizontal: 16,\n };\n const iconStyle = [\n styles.icon,\n {\n marginLeft: 16,\n marginRight: -8,\n width: Config.buttonIconSize,\n },\n ];\n const { margin, marginEnd, marginTop, marginLeft, marginRight, marginBottom, marginHorizontal, marginVertical, ...innerStyles } = StyleSheet.flatten(style || {});\n const margins = {\n margin,\n marginEnd,\n marginTop,\n marginLeft,\n marginRight,\n marginBottom,\n marginHorizontal,\n marginVertical,\n };\n return (React.createElement(Elevation, { style: { elevation, alignSelf: \"stretch\", ...margins } },\n React.createElement(Touchable, { ...rest, onPress: onPress, accessibilityState: { disabled }, accessibilityRole: \"button\", disabled: disabled || loading, style: [styles.button, buttonStyle, innerStyles] },\n React.createElement(View, { style: styles.content },\n icon && loading !== true ? (React.createElement(View, { style: iconStyle },\n React.createElement(Icon, { name: icon, size: Config.buttonIconSize, color: textColor }))) : null,\n loading ? (React.createElement(ActivityIndicator, { size: \"small\", color: textColor, style: iconStyle })) : null,\n React.createElement(Text, { numberOfLines: 1, style: [textStyle, typography.button] }, children)))));\n};\nconst styles = StyleSheet.create({\n button: {\n minWidth: 64,\n borderStyle: \"solid\",\n },\n content: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n icon: {\n width: Config.buttonIconSize,\n },\n});\nexport default withTheme(Button);\n"],"mappings":";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E;EAHX,CALoB;EAU7BrE,IAAI,EAAE;IACFuC,KAAK,EAAEC,eAAA,CAAOC;EADZ;AAVuB,CAAlB,CAAf;;eAce,IAAA6B,kBAAA,EAAUxE,MAAV,C"}
|
|
@@ -27,6 +27,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
27
27
|
|
|
28
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
29
|
|
|
30
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
|
+
|
|
30
32
|
const FAB = _ref => {
|
|
31
33
|
let {
|
|
32
34
|
Icon,
|
|
@@ -128,7 +130,7 @@ const FAB = _ref => {
|
|
|
128
130
|
style: [{
|
|
129
131
|
elevation
|
|
130
132
|
}, style]
|
|
131
|
-
}, /*#__PURE__*/React.createElement(_Touchable.default, {
|
|
133
|
+
}, /*#__PURE__*/React.createElement(_Touchable.default, _extends({}, rest, {
|
|
132
134
|
onPress: onPress,
|
|
133
135
|
accessibilityState: {
|
|
134
136
|
disabled
|
|
@@ -136,7 +138,7 @@ const FAB = _ref => {
|
|
|
136
138
|
accessibilityRole: "button",
|
|
137
139
|
disabled: disabled || loading,
|
|
138
140
|
style: buttonStyles
|
|
139
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
141
|
+
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
140
142
|
style: styles.content
|
|
141
143
|
}, icon && loading !== true ? /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
142
144
|
style: iconStyle
|
|
@@ -179,24 +181,5 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
179
181
|
|
|
180
182
|
var _default = (0, _theming.withTheme)(FAB);
|
|
181
183
|
|
|
182
|
-
exports.default = _default;
|
|
183
|
-
//# sourceMappingURL=DeprecatedFAB.js.mapifyContent: "center"
|
|
184
|
-
},
|
|
185
|
-
icon: {
|
|
186
|
-
alignItems: "center",
|
|
187
|
-
justifyContent: "center",
|
|
188
|
-
width: _Config.default.buttonIconSize
|
|
189
|
-
},
|
|
190
|
-
fixed: {
|
|
191
|
-
left: 0,
|
|
192
|
-
right: 0,
|
|
193
|
-
bottom: 0,
|
|
194
|
-
height: 64,
|
|
195
|
-
borderRadius: 0
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
|
|
199
|
-
var _default = (0, _theming.withTheme)(FAB);
|
|
200
|
-
|
|
201
184
|
exports.default = _default;
|
|
202
185
|
//# sourceMappingURL=DeprecatedFAB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FAB","Icon","icon","disabled","type","loading","color","colorOverride","label","onPress","elevation","style","theme","colors","disabledOpacity","roundness","typography","rest","backgroundColor","borderColor","textColor","borderWidth","buttonColor","primary","surface","alpha","rgb","string","StyleSheet","hairlineWidth","buttonStyle","borderRadius","alignItems","justifyContent","buttonStyles","styles","button","contentStyle","content","textStyle","textAlign","iconStyle","width","Config","buttonIconSize","FABSize","height","FABBorderRadius","push","marginLeft","marginRight","margin","FABFixedHeight","alignSelf","
|
|
1
|
+
{"version":3,"names":["FAB","Icon","icon","disabled","type","loading","color","colorOverride","label","onPress","elevation","style","theme","colors","disabledOpacity","roundness","typography","rest","backgroundColor","borderColor","textColor","borderWidth","buttonColor","primary","surface","alpha","rgb","string","StyleSheet","hairlineWidth","buttonStyle","borderRadius","alignItems","justifyContent","buttonStyles","styles","button","contentStyle","content","textStyle","textAlign","iconStyle","width","Config","buttonIconSize","FABSize","height","FABBorderRadius","push","marginLeft","marginRight","margin","FABFixedHeight","alignSelf","create","borderStyle","flexDirection","fixed","left","right","bottom","withTheme"],"sources":["DeprecatedFAB.tsx"],"sourcesContent":["import * as React from \"react\";\nimport {\n ActivityIndicator,\n View,\n StyleSheet,\n TouchableHighlightProps,\n StyleProp,\n ViewStyle,\n TextStyle,\n} from \"react-native\";\nimport color from \"color\";\nimport Config from \"./Config\";\nimport Text from \"./Text\";\nimport Touchable from \"./Touchable\";\nimport Elevation from \"./Elevation\";\nimport { withTheme } from \"../theming\";\n\nimport type { Theme } from \"../styles/DefaultTheme\";\nimport type { IconSlot } from \"../interfaces/Icon\";\n\n/**\n * A floating action button represents the primary action in an application.\n *\n * <div class=\"screenshots\">\n * <img src=\"screenshots/fab-1.png\" />\n * <img src=\"screenshots/fab-2.png\" />\n * </div>\n *\n * ## Usage\n * ```js\n * import * as React from 'react';\n * import { StyleSheet } from 'react-native';\n * import { FAB } from '@draftbit/ui';\n *\n * const MyComponent = () => (\n * <FAB\n * style={styles.fab}\n * type=\"outline\"\n * icon=\"add\"\n * onPress={() => console.log('Pressed')}\n * />\n * );\n *\n * const styles = StyleSheet.create({\n * fab: {\n * position: 'absolute',\n * margin: 16,\n * right: 0,\n * bottom: 0,\n * },\n * })\n *\n * export default MyComponent;\n * ```\n */\n\ntype Props = {\n disabled?: boolean;\n type?: \"solid\" | \"extended\" | \"outline\" | \"fixed\" | \"standard\";\n loading?: boolean;\n icon?: string;\n color?: string;\n label?: string;\n onPress: () => void;\n elevation?: number;\n theme: Theme;\n style?: StyleProp<ViewStyle>;\n} & TouchableHighlightProps &\n IconSlot;\n\nconst FAB: React.FC<React.PropsWithChildren<Props>> = ({\n Icon,\n icon,\n disabled = false,\n type = \"solid\",\n loading = false,\n color: colorOverride,\n label,\n onPress,\n elevation = 0,\n style,\n theme: { colors, disabledOpacity, roundness, typography },\n ...rest\n}) => {\n let backgroundColor, borderColor, textColor, borderWidth;\n const buttonColor = colorOverride || colors.primary;\n\n if (type === \"standard\" || type === \"extended\" || type === \"fixed\") {\n backgroundColor = buttonColor;\n\n if (disabled) {\n textColor = color(colors.surface).alpha(disabledOpacity).rgb().string();\n } else {\n textColor = colors.surface;\n }\n } else {\n backgroundColor = \"transparent\";\n\n if (disabled) {\n textColor = color(buttonColor).alpha(disabledOpacity).rgb().string();\n } else {\n textColor = buttonColor;\n }\n }\n\n if (type === \"outline\") {\n if (disabled) {\n borderColor = color(buttonColor).alpha(disabledOpacity).rgb().string();\n } else {\n borderColor = buttonColor;\n }\n borderWidth = StyleSheet.hairlineWidth;\n } else {\n borderColor = \"transparent\";\n borderWidth = 0;\n }\n\n const buttonStyle: StyleProp<ViewStyle> = {\n backgroundColor,\n borderColor,\n borderWidth,\n borderRadius: roundness,\n alignItems: \"center\",\n justifyContent: \"center\",\n };\n\n const buttonStyles: StyleProp<ViewStyle>[] = [styles.button, buttonStyle];\n\n const contentStyle: StyleProp<ViewStyle>[] = [styles.content];\n\n const textStyle: StyleProp<TextStyle> = {\n textAlign: \"center\",\n color: textColor,\n };\n\n const iconStyle: StyleProp<ViewStyle>[] = [\n styles.icon,\n {\n width: Config.buttonIconSize,\n },\n ];\n\n if (type === \"standard\" || type === \"outline\") {\n buttonStyle.width = Config.FABSize;\n buttonStyle.height = Config.FABSize;\n buttonStyle.borderRadius = Config.FABBorderRadius;\n\n contentStyle.push({\n width: Config.FABSize,\n height: Config.FABSize,\n });\n }\n\n if (type === \"extended\" || type === \"fixed\") {\n iconStyle.push({\n marginLeft: 16,\n marginRight: -8,\n });\n\n textStyle.margin = 16;\n }\n\n if (type === \"fixed\") {\n buttonStyles.push({\n height: Config.FABFixedHeight,\n alignSelf: \"stretch\",\n });\n }\n\n return (\n <Elevation style={[{ elevation }, style]}>\n <Touchable\n {...rest}\n onPress={onPress}\n accessibilityState={{ disabled }}\n accessibilityRole=\"button\"\n disabled={disabled || loading}\n style={buttonStyles}\n >\n <View style={styles.content}>\n {icon && loading !== true ? (\n <View style={iconStyle}>\n <Icon\n name={icon}\n size={Config.buttonIconSize}\n color={textColor}\n />\n </View>\n ) : null}\n {loading ? (\n <ActivityIndicator\n size=\"small\"\n color={textColor}\n style={iconStyle}\n />\n ) : null}\n {label ? (\n <Text numberOfLines={1} style={[textStyle, typography.button]}>\n {label}\n </Text>\n ) : null}\n </View>\n </Touchable>\n </Elevation>\n );\n};\n\nconst styles = StyleSheet.create({\n button: {\n borderStyle: \"solid\",\n },\n content: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n icon: {\n alignItems: \"center\",\n justifyContent: \"center\",\n width: Config.buttonIconSize,\n },\n fixed: {\n left: 0,\n right: 0,\n bottom: 0,\n height: 64,\n borderRadius: 0,\n },\n});\n\nexport default withTheme(FAB);\n"],"mappings":";;;;;;;AAAA;;AACA;;AASA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAuDA,MAAMA,GAA6C,GAAG,QAahD;EAAA,IAbiD;IACrDC,IADqD;IAErDC,IAFqD;IAGrDC,QAAQ,GAAG,KAH0C;IAIrDC,IAAI,GAAG,OAJ8C;IAKrDC,OAAO,GAAG,KAL2C;IAMrDC,KAAK,EAAEC,aAN8C;IAOrDC,KAPqD;IAQrDC,OARqD;IASrDC,SAAS,GAAG,CATyC;IAUrDC,KAVqD;IAWrDC,KAAK,EAAE;MAAEC,MAAF;MAAUC,eAAV;MAA2BC,SAA3B;MAAsCC;IAAtC,CAX8C;IAYrD,GAAGC;EAZkD,CAajD;EACJ,IAAIC,eAAJ,EAAqBC,WAArB,EAAkCC,SAAlC,EAA6CC,WAA7C;EACA,MAAMC,WAAW,GAAGf,aA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AM,KAAK,EAAEC,MAAM,CAACG;EAApB,GACGpC,IAAI,IAAIG,OAAO,KAAK,IAApB,gBACC,oBAAC,iBAAD;IAAM,KAAK,EAAEoC;EAAb,gBACE,oBAAC,IAAD;IACE,IAAI,EAAEvC,IADR;IAEE,IAAI,EAAEyC,eAAA,CAAOC,cAFf;IAGE,KAAK,EAAExB;EAHT,EADF,CADD,GAQG,IATN,EAUGf,OAAO,gBACN,oBAAC,8BAAD;IACE,IAAI,EAAC,OADP;IAEE,KAAK,EAAEe,SAFT;IAGE,KAAK,EAAEqB;EAHT,EADM,GAMJ,IAhBN,EAiBGjC,KAAK,gBACJ,oBAAC,aAAD;IAAM,aAAa,EAAE,CAArB;IAAwB,KAAK,EAAE,CAAC+B,SAAD,EAAYvB,UAAU,CAACoB,MAAvB;EAA/B,GACG5B,KADH,CADI,GAIF,IArBN,CARF,CADF,CADF;AAoCD,CAvID;;AAyIA,MAAM2B,MAAM,GAAGP,uBAAA,CAAW0B,MAAX,CAAkB;EAC/BlB,MAAM,EAAE;IACNmB,WAAW,EAAE;EADP,CADuB;EAI/BjB,OAAO,EAAE;IACPkB,aAAa,EAAE,KADR;IAEPxB,UAAU,EAAE,QAFL;IAGPC,cAAc,EAAE;EAHT,CAJsB;EAS/B/B,IAAI,EAAE;IACJ8B,UAAU,EAAE,QADR;IAEJC,cAAc,EAAE,QAFZ;IAGJS,KAAK,EAAEC,eAAA,CAAOC;EAHV,CATyB;EAc/Ba,KAAK,EAAE;IACLC,IAAI,EAAE,CADD;IAELC,KAAK,EAAE,CAFF;IAGLC,MAAM,EAAE,CAHH;IAILd,MAAM,EAAE,EAJH;IAKLf,YAAY,EAAE;EALT;AAdwB,CAAlB,CAAf;;eAuBe,IAAA8B,kBAAA,EAAU7D,GAAV,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HeaderLarge","Icon","title","buttonText","icon","onPress","style","theme","colors","typography","
|
|
1
|
+
{"version":3,"names":["HeaderLarge","Icon","title","buttonText","icon","onPress","style","theme","colors","typography","headline4","strong","withTheme"],"sources":["HeaderLarge.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { withTheme } from \"../theming\";\nimport type { Theme } from \"../styles/DefaultTheme\";\nimport type { IconSlot } from \"../interfaces/Icon\";\nimport Header from \"./Header\";\nimport { StyleProp, ViewStyle } from \"react-native\";\n\ntype Props = {\n title: string;\n buttonText: string;\n icon: string;\n onPress?: () => void;\n style?: StyleProp<ViewStyle>;\n theme: Theme;\n} & IconSlot;\n\nconst HeaderLarge: React.FC<React.PropsWithChildren<Props>> = ({\n Icon,\n title,\n buttonText,\n icon,\n onPress = () => {},\n style,\n theme: { colors, typography },\n}) => {\n return (\n <Header\n Icon={Icon}\n titleTypeStyle={typography.headline4}\n titleColor={colors.strong}\n title={title}\n buttonText={buttonText}\n icon={icon}\n onPress={onPress}\n style={style}\n />\n );\n};\n\nexport default withTheme(HeaderLarge);\n"],"mappings":";;;;;;;AAAA;;AACA;;AAGA;;;;;;;;AAYA,MAAMA,WAAqD,GAAG,QAQxD;EAAA,IARyD;IAC7DC,IAD6D;IAE7DC,KAF6D;IAG7DC,UAH6D;IAI7DC,IAJ6D;IAK7DC,OAAO,GAAG,MAAM,CAAE,CAL2C;IAM7DC,KAN6D;IAO7DC,KAAK,EAAE;MAAEC,MAAF;MAAUC;IAAV;EAPsD,CAQzD;EACJ,oBACE,oBAAC,eAAD;IACE,IAAI,EAAER,IADR;IAEE,cAAc,EAAEQ,UAAU,CAACC,SAF7B;IAGE,UAAU,EAAEF,MAAM,CAACG,MAHrB;IAIE,KAAK,EAAET,KAJT;IAKE,UAAU,EAAEC,UALd;IAME,IAAI,EAAEC,IANR;IAOE,OAAO,EAAEC,OAPX;IAQE,KAAK,EAAEC;EART,EADF;AAYD,CArBD;;eAuBe,IAAAM,kBAAA,EAAUZ,WAAV,C"}
|
|
@@ -17,6 +17,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
19
|
|
|
20
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
|
+
|
|
20
22
|
const {
|
|
21
23
|
Provider
|
|
22
24
|
} = _context.radioButtonGroupContext;
|
|
@@ -61,25 +63,11 @@ const RadioButtonGroup = _ref => {
|
|
|
61
63
|
});
|
|
62
64
|
}
|
|
63
65
|
|
|
64
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
66
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
65
67
|
style: [{
|
|
66
68
|
minHeight: 40
|
|
67
|
-
}, style]
|
|
68
|
-
|
|
69
|
-
}, /*#__PURE__*/React.createElement(Provider, {
|
|
70
|
-
value: {
|
|
71
|
-
value: internalValue,
|
|
72
|
-
onValueChange: handleValueChange,
|
|
73
|
-
direction
|
|
74
|
-
}
|
|
75
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
76
|
-
style: _containerStyle
|
|
77
|
-
}, children)));
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
var _default = RadioButtonGroup;
|
|
81
|
-
exports.default = _default;
|
|
82
|
-
//# sourceMappingURL=RadioButtonGroup.js.mapt.createElement(Provider, {
|
|
69
|
+
}, style]
|
|
70
|
+
}, rest), /*#__PURE__*/React.createElement(Provider, {
|
|
83
71
|
value: {
|
|
84
72
|
value: internalValue,
|
|
85
73
|
onValueChange: handleValueChange,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Provider","radioButtonGroupContext","RadioButtonGroup","direction","Direction","Vertical","value","onValueChange","defaultValue","style","children","rest","internalValue","setInternalValue","React","useState","useEffect","realValue","getValueForRadioButton","realDefaultValue","handleValueChange","newValue","realNewValue","_containerStyle","flexDirection","Horizontal","push","alignItems","
|
|
1
|
+
{"version":3,"names":["Provider","radioButtonGroupContext","RadioButtonGroup","direction","Direction","Vertical","value","onValueChange","defaultValue","style","children","rest","internalValue","setInternalValue","React","useState","useEffect","realValue","getValueForRadioButton","realDefaultValue","handleValueChange","newValue","realNewValue","_containerStyle","flexDirection","Horizontal","push","alignItems","minHeight"],"sources":["RadioButtonGroup.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { View, StyleProp, ViewStyle } from \"react-native\";\nimport type { Theme } from \"../../styles/DefaultTheme\";\nimport { getValueForRadioButton } from \"../../utilities\";\nimport { radioButtonGroupContext, Direction } from \"./context\";\nexport interface RadioButtonGroupProps {\n direction?: Direction;\n style?: StyleProp<ViewStyle>;\n value: string | number;\n onValueChange?: (value: string) => void;\n defaultValue?: string | number;\n theme: Theme;\n children: React.ReactNode;\n}\n\nconst { Provider } = radioButtonGroupContext;\n\nconst RadioButtonGroup: React.FC<RadioButtonGroupProps> = ({\n direction = Direction.Vertical,\n value = \"\",\n onValueChange,\n defaultValue,\n style,\n children,\n ...rest\n}) => {\n const [internalValue, setInternalValue] = React.useState(\"\");\n\n React.useEffect(() => {\n if (value != null) {\n const realValue = getValueForRadioButton(value);\n\n setInternalValue(realValue);\n }\n }, [value]);\n\n React.useEffect(() => {\n if (defaultValue != null) {\n const realDefaultValue = getValueForRadioButton(defaultValue);\n\n setInternalValue(realDefaultValue);\n }\n }, [defaultValue]);\n\n const handleValueChange = (newValue: string | number) => {\n const realNewValue = getValueForRadioButton(newValue);\n\n setInternalValue(realNewValue);\n onValueChange?.(realNewValue);\n };\n\n const _containerStyle: StyleProp<ViewStyle> = [\n {\n flexDirection: direction === Direction.Horizontal ? \"row\" : \"column\",\n },\n ];\n\n if (direction !== Direction.Vertical) {\n _containerStyle.push({\n alignItems: \"center\",\n });\n }\n\n return (\n <View style={[{ minHeight: 40 }, style]} {...rest}>\n <Provider\n value={{\n value: internalValue,\n onValueChange: handleValueChange,\n direction,\n }}\n >\n <View style={_containerStyle}>{children}</View>\n </Provider>\n </View>\n );\n};\n\nexport default RadioButtonGroup;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;AAWA,MAAM;EAAEA;AAAF,IAAeC,gCAArB;;AAEA,MAAMC,gBAAiD,GAAG,QAQpD;EAAA,IARqD;IACzDC,SAAS,GAAGC,kBAAA,CAAUC,QADmC;IAEzDC,KAAK,GAAG,EAFiD;IAGzDC,aAHyD;IAIzDC,YAJyD;IAKzDC,KALyD;IAMzDC,QANyD;IAOzD,GAAGC;EAPsD,CAQrD;EACJ,MAAM,CAACC,aAAD,EAAgBC,gBAAhB,IAAoCC,KAAK,CAACC,QAAN,CAAe,EAAf,CAA1C;EAEAD,KAAK,CAACE,SAAN,CAAgB,MAAM;IACpB,IAAIV,KAAK,IAAI,IAAb,EAAmB;MACjB,MAAMW,SAAS,GAAG,IAAAC,iCAAA,EAAuBZ,KAAvB,CAAlB;MAEAO,gBAAgB,CAACI,SAAD,CAAhB;IACD;EACF,CAND,EAMG,CAACX,KAAD,CANH;EAQAQ,KAAK,CAACE,SAAN,CAAgB,MAAM;IACpB,IAAIR,YAAY,IAAI,IAApB,EAA0B;MACxB,MAAMW,gBAAgB,GAAG,IAAAD,iCAAA,EAAuBV,YAAvB,CAAzB;MAEAK,gBAAgB,CAACM,gBAAD,CAAhB;IACD;EACF,CAND,EAMG,CAACX,YAAD,CANH;;EAQA,MAAMY,iBAAiB,GAAIC,QAAD,IAA+B;IACvD,MAAMC,YAAY,GAAG,IAAAJ,iCAAA,EAAuBG,QAAvB,CAArB;IAEAR,gBAAgB,CAACS,YAAD,CAAhB;IACAf,aAAa,SAAb,IAAAA,aAAa,WAAb,YAAAA,aAAa,CAAGe,YAAH,CAAb;EACD,CALD;;EAOA,MAAMC,eAAqC,GAAG,CAC5C;IACEC,aAAa,EAAErB,SAAS,KAAKC,kBAAA,CAAUqB,UAAxB,GAAqC,KAArC,GAA6C;EAD9D,CAD4C,CAA9C;;EAMA,IAAItB,SAAS,KAAKC,kBAAA,CAAUC,QAA5B,EAAsC;IACpCkB,eAAe,CAACG,IAAhB,CAAqB;MACnBC,UAAU,EAAE;IADO,CAArB;EAGD;;EAED,oBACE,oBAAC,iBAAD;IAAM,KAAK,EAAE,CAAC;MAAEC,SAAS,EAAE;IAAb,CAAD,EAAoBnB,KAApB;EAAb,GAA6CE,IAA7C,gBACE,oBAAC,QAAD;IACE,KAAK,EAAE;MACLL,KAAK,EAAEM,aADF;MAELL,aAAa,EAAEa,iBAFV;MAGLjB;IAHK;EADT,gBAOE,oBAAC,iBAAD;IAAM,KAAK,EAAEoB;EAAb,GAA+Bb,QAA/B,CAPF,CADF,CADF;AAaD,CA3DD;;eA6DeR,gB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["styles","StyleSheet","create","wrapper","flex","SwiperItem","children","style"
|
|
1
|
+
{"version":3,"names":["styles","StyleSheet","create","wrapper","flex","SwiperItem","children","style"],"sources":["SwiperItem.tsx"],"sourcesContent":["import React from \"react\";\nimport { View, StyleSheet, StyleProp, ViewStyle } from \"react-native\";\n\nconst styles = StyleSheet.create({\n wrapper: {\n flex: 1,\n },\n});\n\nexport interface SwiperProps {\n children: React.ReactNode;\n style?: StyleProp<ViewStyle>;\n}\n\nconst SwiperItem = ({ children, style }: SwiperProps) => (\n <View style={[styles.wrapper, style]}>{children}</View>\n);\n\nexport default SwiperItem;\n"],"mappings":";;;;;;;AAAA;;AACA;;;;AAEA,MAAMA,MAAM,GAAGC,uBAAA,CAAWC,MAAX,CAAkB;EAC/BC,OAAO,EAAE;IACPC,IAAI,EAAE;EADC;AADsB,CAAlB,CAAf;;AAWA,MAAMC,UAAU,GAAG;EAAA,IAAC;IAAEC,QAAF;IAAYC;EAAZ,CAAD;EAAA,oBACjB,6BAAC,iBAAD;IAAM,KAAK,EAAE,CAACP,MAAM,CAACG,OAAR,EAAiBI,KAAjB;EAAb,GAAuCD,QAAvC,CADiB;AAAA,CAAnB;;eAIeD,U"}
|
|
@@ -15,7 +15,17 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
|
|
18
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
|
+
|
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
|
|
18
22
|
class Text extends React.Component {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
|
|
26
|
+
_defineProperty(this, "_root", void 0);
|
|
27
|
+
}
|
|
28
|
+
|
|
19
29
|
setNativeProps(args) {
|
|
20
30
|
return this._root && this._root.setNativeProps(args);
|
|
21
31
|
}
|
|
@@ -26,44 +36,7 @@ class Text extends React.Component {
|
|
|
26
36
|
...rest
|
|
27
37
|
} = this.props;
|
|
28
38
|
const writingDirection = _reactNative.I18nManager.isRTL ? "rtl" : "ltr";
|
|
29
|
-
return /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
30
|
-
ref: c => {
|
|
31
|
-
this._root = c;
|
|
32
|
-
},
|
|
33
|
-
style: [{
|
|
34
|
-
textAlign: "left",
|
|
35
|
-
writingDirection
|
|
36
|
-
}, style]
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const BaseLink = _ref => {
|
|
43
|
-
let {
|
|
44
|
-
style,
|
|
45
|
-
theme,
|
|
46
|
-
title,
|
|
47
|
-
...props
|
|
48
|
-
} = _ref;
|
|
49
|
-
return /*#__PURE__*/React.createElement(Text, {
|
|
50
|
-
hitSlop: 8,
|
|
51
|
-
style: [{
|
|
52
|
-
color: theme.colors.primary
|
|
53
|
-
}, style],
|
|
54
|
-
theme: theme,
|
|
55
|
-
...props
|
|
56
|
-
}, title);
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
exports.BaseLink = BaseLink;
|
|
60
|
-
const Link = (0, _theming.withTheme)(BaseLink);
|
|
61
|
-
exports.Link = Link;
|
|
62
|
-
|
|
63
|
-
var _default = (0, _theming.withTheme)(Text);
|
|
64
|
-
|
|
65
|
-
exports.default = _default;
|
|
66
|
-
//# sourceMappingURL=Text.js.map.Text, _extends({}, rest, {
|
|
39
|
+
return /*#__PURE__*/React.createElement(_reactNative.Text, _extends({}, rest, {
|
|
67
40
|
ref: c => {
|
|
68
41
|
this._root = c;
|
|
69
42
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Text","React","Component","setNativeProps","args","_root","render","style","rest","props","writingDirection","I18nManager","isRTL","
|
|
1
|
+
{"version":3,"names":["Text","React","Component","setNativeProps","args","_root","render","style","rest","props","writingDirection","I18nManager","isRTL","c","textAlign","BaseLink","theme","title","color","colors","primary","Link","withTheme"],"sources":["Text.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Text as NativeText, I18nManager, TextProps } from \"react-native\";\nimport { withTheme } from \"../theming\";\nimport type { Theme } from \"../styles/DefaultTheme\";\n\ntype Props = {\n theme: Theme;\n} & TextProps;\n\nclass Text extends React.Component<Props> {\n _root: any;\n\n setNativeProps(args: TextProps) {\n return this._root && this._root.setNativeProps(args);\n }\n\n render() {\n const { style, ...rest } = this.props;\n const writingDirection = I18nManager.isRTL ? \"rtl\" : \"ltr\";\n\n return (\n <NativeText\n {...rest}\n ref={(c) => {\n this._root = c;\n }}\n style={[\n {\n textAlign: \"left\",\n writingDirection,\n },\n style,\n ]}\n />\n );\n }\n}\n\nexport const BaseLink = ({\n style,\n theme,\n title,\n ...props\n}: any): JSX.Element => {\n return (\n <Text\n hitSlop={8}\n style={[{ color: theme.colors.primary }, style]}\n theme={theme}\n {...props}\n >\n {title}\n </Text>\n );\n};\n\nconst Link: any = withTheme(BaseLink);\nexport { Link };\n\nexport default withTheme(Text);\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;AAOA,MAAMA,IAAN,SAAmBC,KAAK,CAACC,SAAzB,CAA0C;EAAA;IAAA;;IAAA;EAAA;;EAGxCC,cAAc,CAACC,IAAD,EAAkB;IAC9B,OAAO,KAAKC,KAAL,IAAc,KAAKA,KAAL,CAAWF,cAAX,CAA0BC,IAA1B,CAArB;EACD;;EAEDE,MAAM,GAAG;IACP,MAAM;MAAEC,KAAF;MAAS,GAAGC;IAAZ,IAAqB,KAAKC,KAAhC;IACA,MAAMC,gBAAgB,GAAGC,wBAAA,CAAYC,KAAZ,GAAoB,KAApB,GAA4B,KAArD;IAEA,oBACE,oBAAC,iBAAD,eACMJ,IADN;MAEE,GAAG,EAAGK,CAAD,IAAO;QACV,KAAKR,KAAL,GAAaQ,CAAb;MACD,CAJH;MAKE,KAAK,EAAE,CACL;QACEC,SAAS,EAAE,MADb;QAEEJ;MAFF,CADK,EAKLH,KALK;IALT,GADF;EAeD;;AA1BuC;;AA6BnC,MAAMQ,QAAQ,GAAG,QAKA;EAAA,IALC;IACvBR,KADuB;IAEvBS,KAFuB;IAGvBC,KAHuB;IAIvB,GAAGR;EAJoB,CAKD;EACtB,oBACE,oBAAC,IAAD;IACE,OAAO,EAAE,CADX;IAEE,KAAK,EAAE,CAAC;MAAES,KAAK,EAAEF,KAAK,CAACG,MAAN,CAAaC;IAAtB,CAAD,EAAkCb,KAAlC,CAFT;IAGE,KAAK,EAAES;EAHT,GAIMP,KAJN,GAMGQ,KANH,CADF;AAUD,CAhBM;;;AAkBP,MAAMI,IAAS,GAAG,IAAAC,kBAAA,EAAUP,QAAV,CAAlB;;;eAGe,IAAAO,kBAAA,EAAUtB,IAAV,C"}
|
|
@@ -14,6 +14,7 @@ const SEED_DATA = {
|
|
|
14
14
|
doc_link: "https://docs.expo.io/versions/latest/react-native/activityindicator/",
|
|
15
15
|
code_link: "https://github.com/expo/expo/blob/master/ios/versioned-react-native/ABI32_0_0/Libraries/Components/ActivityIndicator/ActivityIndicator.js",
|
|
16
16
|
category: _types.COMPONENT_TYPES.input,
|
|
17
|
+
stylesPanelSections: [_types.StylesPanelSections.Size, _types.StylesPanelSections.Margins, _types.StylesPanelSections.Borders],
|
|
17
18
|
layout: {
|
|
18
19
|
width: 36,
|
|
19
20
|
height: 36
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SEED_DATA","name","tag","description","doc_link","code_link","category","COMPONENT_TYPES","input","layout","width","height","props","size","label","options","formType","FORM_TYPES","flatArray","propType","PROP_TYPES","STRING","editable","required","defaultValue","group","GROUPS","basic","animating","boolean","BOOLEAN","hidesWhenStopped","color","THEME"],"sources":["ActivityIndicator.ts"],"sourcesContent":["import {\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n GROUPS,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Activity Indicator\",\n tag: \"ActivityIndicator\",\n description: \"Displays a circular loading indicator.\",\n doc_link:\n \"https://docs.expo.io/versions/latest/react-native/activityindicator/\",\n code_link:\n \"https://github.com/expo/expo/blob/master/ios/versioned-react-native/ABI32_0_0/Libraries/Components/ActivityIndicator/ActivityIndicator.js\",\n category: COMPONENT_TYPES.input,\n layout: { width: 36, height: 36 },\n props: {\n size: {\n label: \"Size\",\n description: \"The size of the loading indicator (Default: small)\",\n options: [\"small\", \"large\"],\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n editable: true,\n required: false,\n defaultValue: \"small\",\n group: GROUPS.basic,\n },\n animating: {\n label: \"Spinning\",\n description: \"Whether to show the loading indicator (Default: true)\",\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n editable: true,\n required: false,\n defaultValue: true,\n group: GROUPS.basic,\n },\n hidesWhenStopped: {\n label: \"Hide When Stopped\",\n description:\n \"Whether the indicator should hide when not animating (Default: true)\",\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n editable: true,\n required: false,\n defaultValue: true,\n group: GROUPS.basic,\n },\n color: {\n label: \"Color\",\n description: \"The color of the loading indicator (Default: gray)\",\n formType: FORM_TYPES.color,\n propType: PROP_TYPES.THEME,\n editable: true,\n required: false,\n defaultValue: null,\n group: GROUPS.basic,\n },\n },\n};\n"],"mappings":";;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"names":["SEED_DATA","name","tag","description","doc_link","code_link","category","COMPONENT_TYPES","input","stylesPanelSections","StylesPanelSections","Size","Margins","Borders","layout","width","height","props","size","label","options","formType","FORM_TYPES","flatArray","propType","PROP_TYPES","STRING","editable","required","defaultValue","group","GROUPS","basic","animating","boolean","BOOLEAN","hidesWhenStopped","color","THEME"],"sources":["ActivityIndicator.ts"],"sourcesContent":["import {\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n GROUPS,\n StylesPanelSections,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Activity Indicator\",\n tag: \"ActivityIndicator\",\n description: \"Displays a circular loading indicator.\",\n doc_link:\n \"https://docs.expo.io/versions/latest/react-native/activityindicator/\",\n code_link:\n \"https://github.com/expo/expo/blob/master/ios/versioned-react-native/ABI32_0_0/Libraries/Components/ActivityIndicator/ActivityIndicator.js\",\n category: COMPONENT_TYPES.input,\n stylesPanelSections: [\n StylesPanelSections.Size,\n StylesPanelSections.Margins,\n StylesPanelSections.Borders,\n ],\n layout: { width: 36, height: 36 },\n props: {\n size: {\n label: \"Size\",\n description: \"The size of the loading indicator (Default: small)\",\n options: [\"small\", \"large\"],\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n editable: true,\n required: false,\n defaultValue: \"small\",\n group: GROUPS.basic,\n },\n animating: {\n label: \"Spinning\",\n description: \"Whether to show the loading indicator (Default: true)\",\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n editable: true,\n required: false,\n defaultValue: true,\n group: GROUPS.basic,\n },\n hidesWhenStopped: {\n label: \"Hide When Stopped\",\n description:\n \"Whether the indicator should hide when not animating (Default: true)\",\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n editable: true,\n required: false,\n defaultValue: true,\n group: GROUPS.basic,\n },\n color: {\n label: \"Color\",\n description: \"The color of the loading indicator (Default: gray)\",\n formType: FORM_TYPES.color,\n propType: PROP_TYPES.THEME,\n editable: true,\n required: false,\n defaultValue: null,\n group: GROUPS.basic,\n },\n },\n};\n"],"mappings":";;;;;;;AAAA;;A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MAQhBC,YAAY,EAAE,IARE;MAShBC,KAAK,EAAEC,aAAA,CAAOC;IATE,CAtBb;IAiCLK,KAAK,EAAE;MACLlB,KAAK,EAAE,OADF;MAELhB,WAAW,EAAE,oDAFR;MAGLkB,QAAQ,EAAEC,iBAAA,CAAWe,KAHhB;MAILb,QAAQ,EAAEC,iBAAA,CAAWa,KAJhB;MAKLX,QAAQ,EAAE,IALL;MAMLC,QAAQ,EAAE,KANL;MAOLC,YAAY,EAAE,IAPT;MAQLC,KAAK,EAAEC,aAAA,CAAOC;IART;EAjCF;AAfgB,CAAlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","deprecated","layout","width","height","props","size","group","GROUPS","basic","label","editable","required","formType","FORM_TYPES","number","propType","PROP_TYPES","NUMBER","min","max","precision","step","defaultValue","image","data","ASSET"],"sources":["AvatarEdit.ts"],"sourcesContent":["import {\n GROUPS,\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Avatar Edit\",\n tag: \"AvatarEdit\",\n description: \"An avatar with an edit icon in the top right\",\n category: COMPONENT_TYPES.deprecated,\n layout: {\n width: 64,\n height: 64,\n },\n props: {\n size: {\n group: GROUPS.basic,\n label: \"Size\",\n description: \"Size of avatar / width, height\",\n editable: true,\n required: false,\n formType: FORM_TYPES.number,\n propType: PROP_TYPES.NUMBER,\n min: 0,\n max: 300,\n precision: 0,\n step: 1,\n defaultValue: 80,\n },\n image: {\n group: GROUPS.data,\n label: \"Image\",\n description: \"Name of the image\",\n editable: true,\n required: true,\n formType: FORM_TYPES.image,\n propType: PROP_TYPES.ASSET,\n defaultValue: \"brightness-5\",\n },\n },\n};\n"],"mappings":";;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","deprecated","stylesPanelSections","BLOCK_STYLES_SECTIONS","layout","width","height","props","size","group","GROUPS","basic","label","editable","required","formType","FORM_TYPES","number","propType","PROP_TYPES","NUMBER","min","max","precision","step","defaultValue","image","data","ASSET"],"sources":["AvatarEdit.ts"],"sourcesContent":["import {\n GROUPS,\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n BLOCK_STYLES_SECTIONS,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Avatar Edit\",\n tag: \"AvatarEdit\",\n description: \"An avatar with an edit icon in the top right\",\n category: COMPONENT_TYPES.deprecated,\n stylesPanelSections: BLOCK_STYLES_SECTIONS,\n layout: {\n width: 64,\n height: 64,\n },\n props: {\n size: {\n group: GROUPS.basic,\n label: \"Size\",\n description: \"Size of avatar / width, height\",\n editable: true,\n required: false,\n formType: FORM_TYPES.number,\n propType: PROP_TYPES.NUMBER,\n min: 0,\n max: 300,\n precision: 0,\n step: 1,\n defaultValue: 80,\n },\n image: {\n group: GROUPS.data,\n label: \"Image\",\n description: \"Name of the image\",\n editable: true,\n required: true,\n formType: FORM_TYPES.image,\n propType: PROP_TYPES.ASSET,\n defaultValue: \"brightness-5\",\n },\n },\n};\n"],"mappings":";;;;;;;AAAA;;AAQO,MAAMA,SAAS,GAAG;EACvBC,IAAI,EAAE,aADiB;EAEvBC,GAAG,EAAE,YAFkB;EAGvBC,WAAW,EAAE,8CAHU;EAIvBC,QAAQ,EAAEC,sBAAA,CAAgBC,UAJH;EAKvBC,mBAAmB,EAAEC,4BALE;EAMvBC,MAAM,EAAE;IACNC,KAAK,EAAE,EADD;IAENC,MAAM,EAAE;EAFF,CANe;EAUvBC,KAAK,EAAE;IACLC,IAAI,EAAE;MACJC,KAAK,EAAEC,aAAA,CAAOC,KADV;MAEJC,KAAK,EAAE,MAFH;MAGJd,WAAW,EAAE,gCAHT;MAIJe,QAAQ,EAAE,IAJN;MAKJC,QAAQ,EAAE,KALN;MAMJC,QAAQ,EAAEC,iBAAA,CAAWC,MANjB;MAOJC,QAAQ,EAAEC,iBAAA,CAAWC,MAPjB;MAQJC,GAAG,EAAE,CARD;MASJC,GAAG,EAAE,GATD;MAUJC,SAAS,EAAE,CAVP;MAWJC,IAAI,EAAE,CAXF;MAYJC,YAAY,EAAE;IAZV,CADD;IAeLC,KAAK,EAAE;MACLjB,KAAK,EAAEC,aAAA,CAAOiB,IADT;MAELf,KAAK,EAAE,OAFF;MAGLd,WAAW,EAAE,mBAHR;MAILe,QAAQ,EAAE,IAJL;MAKLC,QAAQ,EAAE,IALL;MAMLC,QAAQ,EAAEC,iBAAA,CAAWU,KANhB;MAOLR,QAAQ,EAAEC,iBAAA,CAAWS,KAPhB;MAQLH,YAAY,EAAE;IART;EAfF;AAVgB,CAAlB"}
|
|
@@ -14,6 +14,7 @@ const SEED_DATA = {
|
|
|
14
14
|
doc_link: "https://docs.expo.io/versions/latest/sdk/blur-view/",
|
|
15
15
|
code_link: "https://github.com/expo/expo/blob/master/packages/expo/src/effects/BlurView.d.ts",
|
|
16
16
|
category: _types.COMPONENT_TYPES.layout,
|
|
17
|
+
stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
17
18
|
layout: {
|
|
18
19
|
flexGrow: 1,
|
|
19
20
|
flexShrink: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SEED_DATA","name","tag","description","doc_link","code_link","category","COMPONENT_TYPES","layout","flexGrow","flexShrink","flexBasis","props","tint","label","editable","required","defaultValue","formType","FORM_TYPES","flatArray","propType","PROP_TYPES","STRING","options","group","GROUPS","basic","intensity","number","NUMBER","min","max","step","precision"],"sources":["BlurView.ts"],"sourcesContent":["import {\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n GROUPS,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Blur View\",\n tag: \"BlurView\",\n description: \"Expo Blur View\",\n doc_link: \"https://docs.expo.io/versions/latest/sdk/blur-view/\",\n code_link:\n \"https://github.com/expo/expo/blob/master/packages/expo/src/effects/BlurView.d.ts\",\n category: COMPONENT_TYPES.layout,\n layout: {\n flexGrow: 1,\n flexShrink: 1,\n flexBasis: 0,\n },\n props: {\n tint: {\n label: \"Tint\",\n description: \"The tint of the blur view\",\n editable: true,\n required: true,\n defaultValue: \"default\",\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n options: [\"default\", \"light\", \"dark\"],\n group: GROUPS.basic,\n },\n intensity: {\n label: \"Intensity\",\n description:\n \"A number from 1 to 100 that controls the intensity of the blur effect\",\n editable: true,\n required: true,\n defaultValue: 50,\n formType: FORM_TYPES.number,\n propType: PROP_TYPES.NUMBER,\n min: 0,\n max: 100,\n step: 1,\n precision: 0,\n group: GROUPS.basic,\n },\n },\n};\n"],"mappings":";;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"names":["SEED_DATA","name","tag","description","doc_link","code_link","category","COMPONENT_TYPES","layout","stylesPanelSections","CONTAINER_COMPONENT_STYLES_SECTIONS","flexGrow","flexShrink","flexBasis","props","tint","label","editable","required","defaultValue","formType","FORM_TYPES","flatArray","propType","PROP_TYPES","STRING","options","group","GROUPS","basic","intensity","number","NUMBER","min","max","step","precision"],"sources":["BlurView.ts"],"sourcesContent":["import {\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n GROUPS,\n CONTAINER_COMPONENT_STYLES_SECTIONS,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Blur View\",\n tag: \"BlurView\",\n description: \"Expo Blur View\",\n doc_link: \"https://docs.expo.io/versions/latest/sdk/blur-view/\",\n code_link:\n \"https://github.com/expo/expo/blob/master/packages/expo/src/effects/BlurView.d.ts\",\n category: COMPONENT_TYPES.layout,\n stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,\n layout: {\n flexGrow: 1,\n flexShrink: 1,\n flexBasis: 0,\n },\n props: {\n tint: {\n label: \"Tint\",\n description: \"The tint of the blur view\",\n editable: true,\n required: true,\n defaultValue: \"default\",\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n options: [\"default\", \"light\", \"dark\"],\n group: GROUPS.basic,\n },\n intensity: {\n label: \"Intensity\",\n description:\n \"A number from 1 to 100 that controls the intensity of the blur effect\",\n editable: true,\n required: true,\n defaultValue: 50,\n formType: FORM_TYPES.number,\n propType: PROP_TYPES.NUMBER,\n min: 0,\n max: 100,\n step: 1,\n precision: 0,\n group: GROUPS.basic,\n },\n },\n};\n"],"mappings":";;;;;;;AAAA;;AAQO,MAAMA,SAAS,GAAG;EACvBC,IAAI,EAAE,WADiB;EAEvBC,GAAG,EAAE,UAFkB;EAGvBC,WAAW,EAAE,gBAHU;EAIvBC,QAAQ,EAAE,qDAJa;EAKvBC,SAAS,EACP,kFANqB;EAOvBC,QAAQ,EAAEC,sBAAA,CAAgBC,MAPH;EAQvBC,mBAAmB,EAAEC,0CARE;EASvBF,MAAM,EAAE;IACNG,QAAQ,EAAE,CADJ;IAENC,UAAU,EAAE,CAFN;IAGNC,SAAS,EAAE;EAHL,CATe;EAcvBC,KAAK,EAAE;IACLC,IAAI,EAAE;MACJC,KAAK,EAAE,MADH;MAEJb,WAAW,EAAE,2BAFT;MAGJc,QAAQ,EAAE,IAHN;MAIJC,QAAQ,EAAE,IAJN;MAKJC,YAAY,EAAE,SALV;MAMJC,QAAQ,EAAEC,iBAAA,CAAWC,SANjB;MAOJC,QAAQ,EAAEC,iBAAA,CAAWC,MAPjB;MAQJC,OAAO,EAAE,CAAC,SAAD,EAAY,OAAZ,EAAqB,MAArB,CARL;MASJC,KAAK,EAAEC,aAAA,CAAOC;IATV,CADD;IAYLC,SAAS,EAAE;MACTd,KAAK,EAAE,WADE;MAETb,WAAW,EACT,uEAHO;MAITc,QAAQ,EAAE,IAJD;MAKTC,QAAQ,EAAE,IALD;MAMTC,YAAY,EAAE,EANL;MAOTC,QAAQ,EAAEC,iBAAA,CAAWU,MAPZ;MAQTR,QAAQ,EAAEC,iBAAA,CAAWQ,MARZ;MASTC,GAAG,EAAE,CATI;MAUTC,GAAG,EAAE,GAVI;MAWTC,IAAI,EAAE,CAXG;MAYTC,SAAS,EAAE,CAZF;MAaTT,KAAK,EAAEC,aAAA,CAAOC;IAbL;EAZN;AAdgB,CAAlB"}
|
|
@@ -39,6 +39,7 @@ const SEED_DATA = [{
|
|
|
39
39
|
name: "Button Outline",
|
|
40
40
|
tag: "ButtonOutline",
|
|
41
41
|
category: _types.COMPONENT_TYPES.button,
|
|
42
|
+
stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Effects],
|
|
42
43
|
layout: { ...LAYOUT,
|
|
43
44
|
backgroundColor: "transparent",
|
|
44
45
|
borderWidth: 1,
|
|
@@ -50,6 +51,7 @@ const SEED_DATA = [{
|
|
|
50
51
|
name: "Button Solid",
|
|
51
52
|
tag: "ButtonSolid",
|
|
52
53
|
category: _types.COMPONENT_TYPES.button,
|
|
54
|
+
stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Effects],
|
|
53
55
|
layout: { ...LAYOUT,
|
|
54
56
|
backgroundColor: "primary",
|
|
55
57
|
textAlign: "center"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SEED_DATA_TRIGGERS","Triggers","OnPress","SEED_DATA_PROPS","onPress","createActionProp","icon","createIconProp","defaultValue","required","title","createTextProp","label","description","disabled","createBoolProp","group","GROUPS","basic","loading","LAYOUT","backgroundColor","borderRadius","fontFamily","SEED_DATA","name","tag","category","COMPONENT_TYPES","button","layout","borderWidth","textAlign","triggers","props"],"sources":["Button.ts"],"sourcesContent":["import {\n COMPONENT_TYPES,\n createIconProp,\n createBoolProp,\n createTextProp,\n GROUPS,\n createActionProp,\n Triggers,\n} from \"@draftbit/types\";\n\nconst SEED_DATA_TRIGGERS = [Triggers.OnPress];\nconst SEED_DATA_PROPS = {\n onPress: createActionProp(),\n icon: createIconProp({\n defaultValue: null,\n required: false,\n }),\n title: createTextProp({\n label: \"Label\",\n description: \"Button Label\",\n defaultValue: \"Get Started\",\n }),\n disabled: createBoolProp({\n group: GROUPS.basic,\n label: \"Disabled\",\n description: \"Whether the button should be disabled\",\n }),\n loading: createBoolProp({\n group: GROUPS.basic,\n label: \"Loading\",\n description: \"Whether to show a loading indicator\",\n }),\n};\n\nconst LAYOUT = {\n backgroundColor: \"transparent\",\n borderRadius: 8,\n fontFamily: \"system-700\",\n};\n\nexport const SEED_DATA = [\n {\n name: \"Button Outline\",\n tag: \"ButtonOutline\",\n category: COMPONENT_TYPES.button,\n layout: {\n ...LAYOUT,\n backgroundColor: \"transparent\",\n borderWidth: 1,\n textAlign: \"center\",\n },\n triggers: SEED_DATA_TRIGGERS,\n props: SEED_DATA_PROPS,\n },\n {\n name: \"Button Solid\",\n tag: \"ButtonSolid\",\n category: COMPONENT_TYPES.button,\n layout: {\n ...LAYOUT,\n backgroundColor: \"primary\",\n textAlign: \"center\",\n },\n triggers: SEED_DATA_TRIGGERS,\n props: SEED_DATA_PROPS,\n },\n];\n"],"mappings":";;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"names":["SEED_DATA_TRIGGERS","Triggers","OnPress","SEED_DATA_PROPS","onPress","createActionProp","icon","createIconProp","defaultValue","required","title","createTextProp","label","description","disabled","createBoolProp","group","GROUPS","basic","loading","LAYOUT","backgroundColor","borderRadius","fontFamily","SEED_DATA","name","tag","category","COMPONENT_TYPES","button","stylesPanelSections","StylesPanelSections","Typography","Background","Borders","Size","MarginsAndPaddings","Position","Effects","layout","borderWidth","textAlign","triggers","props"],"sources":["Button.ts"],"sourcesContent":["import {\n COMPONENT_TYPES,\n createIconProp,\n createBoolProp,\n createTextProp,\n GROUPS,\n createActionProp,\n Triggers,\n StylesPanelSections,\n} from \"@draftbit/types\";\n\nconst SEED_DATA_TRIGGERS = [Triggers.OnPress];\nconst SEED_DATA_PROPS = {\n onPress: createActionProp(),\n icon: createIconProp({\n defaultValue: null,\n required: false,\n }),\n title: createTextProp({\n label: \"Label\",\n description: \"Button Label\",\n defaultValue: \"Get Started\",\n }),\n disabled: createBoolProp({\n group: GROUPS.basic,\n label: \"Disabled\",\n description: \"Whether the button should be disabled\",\n }),\n loading: createBoolProp({\n group: GROUPS.basic,\n label: \"Loading\",\n description: \"Whether to show a loading indicator\",\n }),\n};\n\nconst LAYOUT = {\n backgroundColor: \"transparent\",\n borderRadius: 8,\n fontFamily: \"system-700\",\n};\n\nexport const SEED_DATA = [\n {\n name: \"Button Outline\",\n tag: \"ButtonOutline\",\n category: COMPONENT_TYPES.button,\n stylesPanelSections: [\n StylesPanelSections.Typography,\n StylesPanelSections.Background,\n StylesPanelSections.Borders,\n StylesPanelSections.Size,\n StylesPanelSections.MarginsAndPaddings,\n StylesPanelSections.Position,\n StylesPanelSections.Effects,\n ],\n layout: {\n ...LAYOUT,\n backgroundColor: \"transparent\",\n borderWidth: 1,\n textAlign: \"center\",\n },\n triggers: SEED_DATA_TRIGGERS,\n props: SEED_DATA_PROPS,\n },\n {\n name: \"Button Solid\",\n tag: \"ButtonSolid\",\n category: COMPONENT_TYPES.button,\n stylesPanelSections: [\n StylesPanelSections.Typography,\n StylesPanelSections.Background,\n StylesPanelSections.Borders,\n StylesPanelSections.Size,\n StylesPanelSections.MarginsAndPaddings,\n StylesPanelSections.Position,\n StylesPanelSections.Effects,\n ],\n layout: {\n ...LAYOUT,\n backgroundColor: \"primary\",\n textAlign: \"center\",\n },\n triggers: SEED_DATA_TRIGGERS,\n props: SEED_DATA_PROPS,\n },\n];\n"],"mappings":";;;;;;;AAAA;;AAWA,MAAMA,kBAAkB,GAAG,CAACC,eAAA,CAASC,OAAV,CAA3B;AACA,MAAMC,eAAe,GAAG;EACtBC,OAAO,E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IAAI,EAAE,cADR;EAEEC,GAAG,EAAE,aAFP;EAGEC,QAAQ,EAAEC,sBAAA,CAAgBC,MAH5B;EAIEC,mBAAmB,EAAE,CACnBC,0BAAA,CAAoBC,UADD,EAEnBD,0BAAA,CAAoBE,UAFD,EAGnBF,0BAAA,CAAoBG,OAHD,EAInBH,0BAAA,CAAoBI,IAJD,EAKnBJ,0BAAA,CAAoBK,kBALD,EAMnBL,0BAAA,CAAoBM,QAND,EAOnBN,0BAAA,CAAoBO,OAPD,CAJvB;EAaEC,MAAM,EAAE,EACN,GAAGnB,MADG;IAENC,eAAe,EAAE,SAFX;IAGNoB,SAAS,EAAE;EAHL,CAbV;EAkBEC,QAAQ,EAAE1C,kBAlBZ;EAmBE2C,KAAK,EAAExC;AAnBT,CAvBuB,CAAlB"}
|
|
@@ -105,6 +105,7 @@ const SEED_DATA = [{
|
|
|
105
105
|
tag: "CardBlock",
|
|
106
106
|
description: "An elevated card with a title and description, that takes up the full width its container.",
|
|
107
107
|
category: _types.COMPONENT_TYPES.card,
|
|
108
|
+
stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
|
|
108
109
|
props: { ...SEED_DATA_PROPS,
|
|
109
110
|
icon: {
|
|
110
111
|
group: _types.GROUPS.basic,
|