@draftbit/core 46.4.4-808a01.2 → 46.4.4-82c62e.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/AnimatedCircularProgress.js +2 -12
- package/lib/commonjs/components/AspectRatio.js +2 -19
- package/lib/commonjs/components/AvatarEdit.js +5 -17
- package/lib/commonjs/components/Banner.js +4 -24
- package/lib/commonjs/components/Button.js +11 -32
- package/lib/commonjs/components/CardBlock.js +5 -15
- package/lib/commonjs/components/CardContainer.js +5 -15
- package/lib/commonjs/components/CardContainerRating.js +5 -15
- package/lib/commonjs/components/CardContainerShortImage.js +5 -17
- package/lib/commonjs/components/Carousel.js +10 -34
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +6 -24
- package/lib/commonjs/components/Checkbox/context.js +1 -1
- package/lib/commonjs/components/CircleImage.js +2 -16
- package/lib/commonjs/components/CircularProgress.js +7 -15
- package/lib/commonjs/components/Container.js +5 -17
- package/lib/commonjs/components/DeprecatedCardWrapper.js +2 -17
- package/lib/commonjs/components/DeprecatedFAB.js +4 -22
- package/lib/commonjs/components/Divider.js +2 -16
- package/lib/commonjs/components/FAB.js +5 -20
- package/lib/commonjs/components/FormRow.js +3 -17
- package/lib/commonjs/components/IconButton.js +5 -22
- package/lib/commonjs/components/Layout.js +19 -40
- package/lib/commonjs/components/NumberInput.js +2 -13
- package/lib/commonjs/components/Picker/Picker.js +5 -5
- package/lib/commonjs/components/Picker/PickerComponent.web.js +5 -24
- package/lib/commonjs/components/Portal/PortalConsumer.js +8 -10
- package/lib/commonjs/components/Portal/PortalHost.js +15 -27
- package/lib/commonjs/components/Portal/PortalManager.js +11 -19
- package/lib/commonjs/components/ProgressBar.js +7 -23
- package/lib/commonjs/components/RadioButton/RadioButton.js +3 -14
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js +6 -24
- package/lib/commonjs/components/ScreenContainer.js +5 -23
- package/lib/commonjs/components/Slider.js +5 -24
- package/lib/commonjs/components/StarRating.js +5 -25
- package/lib/commonjs/components/StepIndicator.js +16 -34
- package/lib/commonjs/components/Stepper.js +8 -3
- package/lib/commonjs/components/Surface.js +3 -14
- package/lib/commonjs/components/Text.js +16 -38
- package/lib/commonjs/components/TextField.js +35 -64
- package/lib/commonjs/components/ToggleButton.js +3 -18
- package/lib/commonjs/components/Touchable.js +2 -16
- package/lib/commonjs/mappings/AudioPlayer.js +7 -7
- package/lib/commonjs/mappings/Stepper.js +1 -1
- package/lib/commonjs/mappings/TextArea.js +14 -3
- package/lib/commonjs/mappings/TextField.js +15 -5
- package/lib/commonjs/mappings/TextInput.js +15 -4
- package/lib/module/components/Checkbox/context.js +1 -1
- package/lib/module/components/Picker/Picker.js +2 -2
- package/lib/module/components/Stepper.js +7 -3
- package/lib/module/components/Text.js +6 -2
- package/lib/module/components/TextField.js +5 -1
- package/lib/module/mappings/AudioPlayer.js +7 -7
- package/lib/module/mappings/Stepper.js +2 -2
- package/lib/module/mappings/TextArea.js +15 -4
- package/lib/module/mappings/TextField.js +15 -5
- package/lib/module/mappings/TextInput.js +16 -5
- package/lib/typescript/src/Provider.d.ts +1 -0
- package/lib/typescript/src/Provider.d.ts.map +1 -0
- package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts +1 -0
- package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/Accordion/AccordionItem.d.ts +1 -0
- package/lib/typescript/src/components/Accordion/AccordionItem.d.ts.map +1 -0
- package/lib/typescript/src/components/Accordion/index.d.ts +1 -0
- package/lib/typescript/src/components/Accordion/index.d.ts.map +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts.map +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts.map +1 -0
- package/lib/typescript/src/components/ActionSheet/index.d.ts +1 -0
- package/lib/typescript/src/components/ActionSheet/index.d.ts.map +1 -0
- package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +1 -0
- package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +1 -0
- package/lib/typescript/src/components/AspectRatio.d.ts +1 -0
- package/lib/typescript/src/components/AspectRatio.d.ts.map +1 -0
- package/lib/typescript/src/components/AvatarEdit.d.ts +1 -0
- package/lib/typescript/src/components/AvatarEdit.d.ts.map +1 -0
- package/lib/typescript/src/components/Banner.d.ts +1 -0
- package/lib/typescript/src/components/Banner.d.ts.map +1 -0
- package/lib/typescript/src/components/Button.d.ts +1 -0
- package/lib/typescript/src/components/Button.d.ts.map +1 -0
- package/lib/typescript/src/components/Card.d.ts +1 -0
- package/lib/typescript/src/components/Card.d.ts.map +1 -0
- package/lib/typescript/src/components/CardBlock.d.ts +1 -0
- package/lib/typescript/src/components/CardBlock.d.ts.map +1 -0
- package/lib/typescript/src/components/CardContainer.d.ts +1 -0
- package/lib/typescript/src/components/CardContainer.d.ts.map +1 -0
- package/lib/typescript/src/components/CardContainerRating.d.ts +1 -0
- package/lib/typescript/src/components/CardContainerRating.d.ts.map +1 -0
- package/lib/typescript/src/components/CardContainerShortImage.d.ts +1 -0
- package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +1 -0
- package/lib/typescript/src/components/CardInline.d.ts +1 -0
- package/lib/typescript/src/components/CardInline.d.ts.map +1 -0
- package/lib/typescript/src/components/Carousel.d.ts +1 -0
- package/lib/typescript/src/components/Carousel.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/context.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/context.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/index.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/index.d.ts.map +1 -0
- package/lib/typescript/src/components/CircleImage.d.ts +1 -0
- package/lib/typescript/src/components/CircleImage.d.ts.map +1 -0
- package/lib/typescript/src/components/CircularProgress.d.ts +1 -0
- package/lib/typescript/src/components/CircularProgress.d.ts.map +1 -0
- package/lib/typescript/src/components/Config.d.ts +1 -0
- package/lib/typescript/src/components/Config.d.ts.map +1 -0
- package/lib/typescript/src/components/Container.d.ts +1 -0
- package/lib/typescript/src/components/Container.d.ts.map +1 -0
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +1 -0
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts.map +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts.map +1 -0
- package/lib/typescript/src/components/DeprecatedButton.d.ts +1 -0
- package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -0
- package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +1 -0
- package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -0
- package/lib/typescript/src/components/DeprecatedFAB.d.ts +1 -0
- package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -0
- package/lib/typescript/src/components/Divider.d.ts +1 -0
- package/lib/typescript/src/components/Divider.d.ts.map +1 -0
- package/lib/typescript/src/components/Elevation.d.ts +1 -0
- package/lib/typescript/src/components/Elevation.d.ts.map +1 -0
- package/lib/typescript/src/components/FAB.d.ts +1 -0
- package/lib/typescript/src/components/FAB.d.ts.map +1 -0
- package/lib/typescript/src/components/FieldSearchBarFull.d.ts +1 -0
- package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +1 -0
- package/lib/typescript/src/components/FormRow.d.ts +1 -0
- package/lib/typescript/src/components/FormRow.d.ts.map +1 -0
- package/lib/typescript/src/components/Header.d.ts +1 -0
- package/lib/typescript/src/components/Header.d.ts.map +1 -0
- package/lib/typescript/src/components/HeaderLarge.d.ts +1 -0
- package/lib/typescript/src/components/HeaderLarge.d.ts.map +1 -0
- package/lib/typescript/src/components/HeaderMedium.d.ts +1 -0
- package/lib/typescript/src/components/HeaderMedium.d.ts.map +1 -0
- package/lib/typescript/src/components/HeaderOverline.d.ts +1 -0
- package/lib/typescript/src/components/HeaderOverline.d.ts.map +1 -0
- package/lib/typescript/src/components/IconButton.d.ts +1 -0
- package/lib/typescript/src/components/IconButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Image.d.ts +1 -0
- package/lib/typescript/src/components/Image.d.ts.map +1 -0
- package/lib/typescript/src/components/Justification.d.ts +1 -0
- package/lib/typescript/src/components/Justification.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout.d.ts +1 -0
- package/lib/typescript/src/components/Layout.d.ts.map +1 -0
- package/lib/typescript/src/components/NumberInput.d.ts +1 -0
- package/lib/typescript/src/components/NumberInput.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
- package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/PickerTypes.d.ts +1 -0
- package/lib/typescript/src/components/Picker/PickerTypes.d.ts.map +1 -0
- package/lib/typescript/src/components/Portal/Portal.d.ts +1 -0
- package/lib/typescript/src/components/Portal/Portal.d.ts.map +1 -0
- package/lib/typescript/src/components/Portal/PortalConsumer.d.ts +1 -0
- package/lib/typescript/src/components/Portal/PortalConsumer.d.ts.map +1 -0
- package/lib/typescript/src/components/Portal/PortalHost.d.ts +1 -0
- package/lib/typescript/src/components/Portal/PortalHost.d.ts.map +1 -0
- package/lib/typescript/src/components/Portal/PortalManager.d.ts +1 -0
- package/lib/typescript/src/components/Portal/PortalManager.d.ts.map +1 -0
- package/lib/typescript/src/components/ProgressBar.d.ts +1 -0
- package/lib/typescript/src/components/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/src/components/ProgressCircle.d.ts +1 -0
- package/lib/typescript/src/components/ProgressCircle.d.ts.map +1 -0
- package/lib/typescript/src/components/ProgressIndicator.d.ts +1 -0
- package/lib/typescript/src/components/ProgressIndicator.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButton.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/context.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/context.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/index.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/index.d.ts.map +1 -0
- package/lib/typescript/src/components/ResizeMode.d.ts +1 -0
- package/lib/typescript/src/components/ResizeMode.d.ts.map +1 -0
- package/lib/typescript/src/components/Row.d.ts +1 -0
- package/lib/typescript/src/components/Row.d.ts.map +1 -0
- package/lib/typescript/src/components/RowBodyIcon.d.ts +1 -0
- package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +1 -0
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +1 -0
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/SVG.d.ts +1 -0
- package/lib/typescript/src/components/SVG.d.ts.map +1 -0
- package/lib/typescript/src/components/ScreenContainer.d.ts +1 -0
- package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -0
- package/lib/typescript/src/components/Slider.d.ts +1 -0
- package/lib/typescript/src/components/Slider.d.ts.map +1 -0
- package/lib/typescript/src/components/StarRating.d.ts +1 -0
- package/lib/typescript/src/components/StarRating.d.ts.map +1 -0
- package/lib/typescript/src/components/StepIndicator.d.ts +1 -0
- package/lib/typescript/src/components/StepIndicator.d.ts.map +1 -0
- package/lib/typescript/src/components/Stepper.d.ts +2 -2
- package/lib/typescript/src/components/Stepper.d.ts.map +1 -0
- package/lib/typescript/src/components/Surface.d.ts +1 -0
- package/lib/typescript/src/components/Surface.d.ts.map +1 -0
- package/lib/typescript/src/components/Swiper/Swiper.d.ts +1 -0
- package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -0
- package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +1 -0
- package/lib/typescript/src/components/Swiper/SwiperItem.d.ts.map +1 -0
- package/lib/typescript/src/components/Swiper/index.d.ts +1 -0
- package/lib/typescript/src/components/Swiper/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Switch.d.ts +1 -0
- package/lib/typescript/src/components/Switch.d.ts.map +1 -0
- package/lib/typescript/src/components/Text.d.ts +3 -1
- package/lib/typescript/src/components/Text.d.ts.map +1 -0
- package/lib/typescript/src/components/TextField.d.ts +3 -1
- package/lib/typescript/src/components/TextField.d.ts.map +1 -0
- package/lib/typescript/src/components/ToggleButton.d.ts +1 -0
- package/lib/typescript/src/components/ToggleButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Touchable.d.ts +1 -0
- package/lib/typescript/src/components/Touchable.d.ts.map +1 -0
- package/lib/typescript/src/components/Touchable.web.d.ts +1 -0
- package/lib/typescript/src/components/Touchable.web.d.ts.map +1 -0
- package/lib/typescript/src/components/Typography.d.ts +1 -0
- package/lib/typescript/src/components/Typography.d.ts.map +1 -0
- package/lib/typescript/src/components/useAuthState.d.ts +1 -0
- package/lib/typescript/src/components/useAuthState.d.ts.map +1 -0
- package/lib/typescript/src/constants.d.ts +1 -0
- package/lib/typescript/src/constants.d.ts.map +1 -0
- package/lib/typescript/src/hooks.d.ts +1 -0
- package/lib/typescript/src/hooks.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/interfaces/Icon.d.ts +1 -0
- package/lib/typescript/src/interfaces/Icon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
- package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -0
- package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
- package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
- package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
- package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
- package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
- package/lib/typescript/src/mappings/ActivityIndicator.d.ts.map +1 -0
- package/lib/typescript/src/mappings/AudioPlayer.d.ts +1 -0
- package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -0
- package/lib/typescript/src/mappings/AvatarEdit.d.ts +1 -0
- package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Banner.d.ts +1 -0
- package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
- package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
- package/lib/typescript/src/mappings/BlurView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Button.d.ts +1 -0
- package/lib/typescript/src/mappings/Button.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Card.d.ts +1 -0
- package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardBlock.d.ts +1 -0
- package/lib/typescript/src/mappings/CardBlock.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardContainer.d.ts +1 -0
- package/lib/typescript/src/mappings/CardContainer.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardContainerRating.d.ts +1 -0
- package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +1 -0
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardInline.d.ts +1 -0
- package/lib/typescript/src/mappings/CardInline.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Carousel.d.ts +1 -0
- package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
- package/lib/typescript/src/mappings/Checkbox.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
- package/lib/typescript/src/mappings/CheckboxGroup.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
- package/lib/typescript/src/mappings/CheckboxRow.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CircleImage.d.ts +1 -0
- package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Container.d.ts +1 -0
- package/lib/typescript/src/mappings/Container.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CustomCode.d.ts +1 -0
- package/lib/typescript/src/mappings/CustomCode.d.ts.map +1 -0
- package/lib/typescript/src/mappings/DatePicker.d.ts +1 -0
- package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Divider.d.ts +1 -0
- package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FAB.d.ts +1 -0
- package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
- package/lib/typescript/src/mappings/Fetch.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +1 -0
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FlashList.d.ts +1 -0
- package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FlatList.d.ts +1 -0
- package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -0
- package/lib/typescript/src/mappings/HeaderLarge.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +1 -0
- package/lib/typescript/src/mappings/HeaderMedium.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +1 -0
- package/lib/typescript/src/mappings/HeaderOverline.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Icon.d.ts +1 -0
- package/lib/typescript/src/mappings/Icon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
- package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Image.d.ts +1 -0
- package/lib/typescript/src/mappings/Image.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
- package/lib/typescript/src/mappings/ImageBackground.d.ts.map +1 -0
- package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
- package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Layout.d.ts +1 -0
- package/lib/typescript/src/mappings/Layout.d.ts.map +1 -0
- package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
- package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -0
- package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
- package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -0
- package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
- package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/MapView.d.ts +1 -0
- package/lib/typescript/src/mappings/MapView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Modal.d.ts +1 -0
- package/lib/typescript/src/mappings/Modal.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
- package/lib/typescript/src/mappings/NumberInput.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Picker.d.ts +1 -0
- package/lib/typescript/src/mappings/Picker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressBar.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressCircle.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButton.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButtonGroup.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButtonRow.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts +1 -0
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/SVG.d.ts +1 -0
- package/lib/typescript/src/mappings/SVG.d.ts.map +1 -0
- package/lib/typescript/src/mappings/SafeAreaView.d.ts +1 -0
- package/lib/typescript/src/mappings/SafeAreaView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
- package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Slider.d.ts +1 -0
- package/lib/typescript/src/mappings/Slider.d.ts.map +1 -0
- package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
- package/lib/typescript/src/mappings/StarRating.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
- package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Surface.d.ts +1 -0
- package/lib/typescript/src/mappings/Surface.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
- package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -0
- package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
- package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Switch.d.ts +1 -0
- package/lib/typescript/src/mappings/Switch.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Text.d.ts +1 -0
- package/lib/typescript/src/mappings/Text.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TextArea.d.ts +22 -1
- package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TextField.d.ts +25 -4
- package/lib/typescript/src/mappings/TextField.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TextInput.d.ts +23 -2
- package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ToggleButton.d.ts +1 -0
- package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
- package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Video.d.ts +1 -0
- package/lib/typescript/src/mappings/Video.d.ts.map +1 -0
- package/lib/typescript/src/mappings/View.d.ts +1 -0
- package/lib/typescript/src/mappings/View.d.ts.map +1 -0
- package/lib/typescript/src/mappings/WebView.d.ts +1 -0
- package/lib/typescript/src/mappings/WebView.d.ts.map +1 -0
- package/lib/typescript/src/styles/DarkTheme.d.ts +1 -0
- package/lib/typescript/src/styles/DarkTheme.d.ts.map +1 -0
- package/lib/typescript/src/styles/DefaultTheme.d.ts +1 -0
- package/lib/typescript/src/styles/DefaultTheme.d.ts.map +1 -0
- package/lib/typescript/src/styles/fonts.d.ts +1 -0
- package/lib/typescript/src/styles/fonts.d.ts.map +1 -0
- package/lib/typescript/src/styles/overlay.d.ts +1 -0
- package/lib/typescript/src/styles/overlay.d.ts.map +1 -0
- package/lib/typescript/src/styles/shadow.d.ts +1 -0
- package/lib/typescript/src/styles/shadow.d.ts.map +1 -0
- package/lib/typescript/src/theming.d.ts +1 -0
- package/lib/typescript/src/theming.d.ts.map +1 -0
- package/lib/typescript/src/utilities.d.ts +1 -0
- package/lib/typescript/src/utilities.d.ts.map +1 -0
- package/package.json +15 -5
- package/src/components/Picker/Picker.js +1 -1
- package/src/components/Picker/Picker.tsx +2 -2
- package/src/components/Stepper.js +5 -3
- package/src/components/Stepper.tsx +5 -5
- package/src/components/Text.js +8 -2
- package/src/components/Text.tsx +6 -1
- package/src/components/TextField.js +6 -1
- package/src/components/TextField.tsx +7 -1
- package/src/mappings/AudioPlayer.js +7 -7
- package/src/mappings/AudioPlayer.ts +7 -7
- package/src/mappings/Stepper.js +5 -2
- package/src/mappings/Stepper.ts +5 -1
- package/src/mappings/TextArea.js +15 -4
- package/src/mappings/TextArea.ts +15 -3
- package/src/mappings/TextField.js +15 -5
- package/src/mappings/TextField.ts +15 -5
- package/src/mappings/TextInput.js +16 -5
- package/src/mappings/TextInput.ts +16 -4
|
@@ -13,26 +13,29 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
13
13
|
|
|
14
14
|
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; }
|
|
15
15
|
|
|
16
|
+
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; }
|
|
17
|
+
|
|
16
18
|
/**
|
|
17
19
|
* Portal host is the component which actually renders all Portals.
|
|
18
20
|
*/
|
|
19
21
|
class PortalManager extends React.PureComponent {
|
|
20
22
|
constructor() {
|
|
21
23
|
super(...arguments);
|
|
22
|
-
|
|
24
|
+
|
|
25
|
+
_defineProperty(this, "state", {
|
|
23
26
|
portals: []
|
|
24
|
-
};
|
|
27
|
+
});
|
|
25
28
|
|
|
26
|
-
this
|
|
29
|
+
_defineProperty(this, "mount", (key, children) => {
|
|
27
30
|
this.setState(state => ({
|
|
28
31
|
portals: [...state.portals, {
|
|
29
32
|
key,
|
|
30
33
|
children
|
|
31
34
|
}]
|
|
32
35
|
}));
|
|
33
|
-
};
|
|
36
|
+
});
|
|
34
37
|
|
|
35
|
-
this
|
|
38
|
+
_defineProperty(this, "update", (key, children) => this.setState(state => ({
|
|
36
39
|
portals: state.portals.map(item => {
|
|
37
40
|
if (item.key === key) {
|
|
38
41
|
return { ...item,
|
|
@@ -42,11 +45,11 @@ class PortalManager extends React.PureComponent {
|
|
|
42
45
|
|
|
43
46
|
return item;
|
|
44
47
|
})
|
|
45
|
-
}));
|
|
48
|
+
})));
|
|
46
49
|
|
|
47
|
-
this
|
|
50
|
+
_defineProperty(this, "unmount", key => this.setState(state => ({
|
|
48
51
|
portals: state.portals.filter(item => item.key !== key)
|
|
49
|
-
}));
|
|
52
|
+
})));
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
render() {
|
|
@@ -68,15 +71,4 @@ class PortalManager extends React.PureComponent {
|
|
|
68
71
|
|
|
69
72
|
}
|
|
70
73
|
|
|
71
|
-
exports.default = PortalManager;le: false
|
|
72
|
-
/* Need collapsable=false here to clip the elevations, otherwise they appear above sibling components */
|
|
73
|
-
,
|
|
74
|
-
pointerEvents: "box-none",
|
|
75
|
-
style: _reactNative.StyleSheet.absoluteFill
|
|
76
|
-
}, children);
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
|
|
82
74
|
exports.default = PortalManager;
|
|
@@ -13,6 +13,10 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
13
13
|
|
|
14
14
|
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; }
|
|
15
15
|
|
|
16
|
+
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); }
|
|
17
|
+
|
|
18
|
+
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; }
|
|
19
|
+
|
|
16
20
|
const INDETERMINATE_WIDTH_FACTOR = 0.3;
|
|
17
21
|
const BAR_WIDTH_ZERO_POSITION = INDETERMINATE_WIDTH_FACTOR / (1 + INDETERMINATE_WIDTH_FACTOR);
|
|
18
22
|
|
|
@@ -20,7 +24,7 @@ class ProgressBar extends _react.Component {
|
|
|
20
24
|
constructor(props) {
|
|
21
25
|
super(props);
|
|
22
26
|
|
|
23
|
-
this
|
|
27
|
+
_defineProperty(this, "handleLayout", event => {
|
|
24
28
|
const {
|
|
25
29
|
width = 150,
|
|
26
30
|
onLayout
|
|
@@ -35,7 +39,7 @@ class ProgressBar extends _react.Component {
|
|
|
35
39
|
if (onLayout) {
|
|
36
40
|
onLayout(event);
|
|
37
41
|
}
|
|
38
|
-
};
|
|
42
|
+
});
|
|
39
43
|
|
|
40
44
|
const {
|
|
41
45
|
progress: progressP = 0,
|
|
@@ -89,6 +93,7 @@ class ProgressBar extends _react.Component {
|
|
|
89
93
|
_reactNative.Animated[animationType](this.state.progress, { ...animationConfig,
|
|
90
94
|
toValue: progress,
|
|
91
95
|
velocity: 0,
|
|
96
|
+
//adjust this value if animation fails - velocity is required
|
|
92
97
|
useNativeDriver
|
|
93
98
|
}).start();
|
|
94
99
|
} else {
|
|
@@ -160,27 +165,6 @@ class ProgressBar extends _react.Component {
|
|
|
160
165
|
})
|
|
161
166
|
}]
|
|
162
167
|
};
|
|
163
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
164
|
-
style: [containerStyle, style],
|
|
165
|
-
onLayout: this.handleLayout,
|
|
166
|
-
...restProps
|
|
167
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
|
|
168
|
-
style: progressStyle
|
|
169
|
-
}), children);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
exports.default = ProgressBar;h / (_reactNative.I18nManager.isRTL ? 2 : -2), 0]
|
|
175
|
-
})
|
|
176
|
-
}, {
|
|
177
|
-
// Interpolation a temp workaround for https://github.com/facebook/react-native/issues/6278
|
|
178
|
-
scaleX: this.state.progress.interpolate({
|
|
179
|
-
inputRange: [0, 1],
|
|
180
|
-
outputRange: [0.0001, 1]
|
|
181
|
-
})
|
|
182
|
-
}]
|
|
183
|
-
};
|
|
184
168
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
|
|
185
169
|
style: [containerStyle, style],
|
|
186
170
|
onLayout: this.handleLayout
|
|
@@ -21,6 +21,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
21
21
|
|
|
22
22
|
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; }
|
|
23
23
|
|
|
24
|
+
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); }
|
|
25
|
+
|
|
24
26
|
const RadioButton = _ref => {
|
|
25
27
|
let {
|
|
26
28
|
Icon,
|
|
@@ -49,20 +51,7 @@ const RadioButton = _ref => {
|
|
|
49
51
|
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(realValue);
|
|
50
52
|
};
|
|
51
53
|
|
|
52
|
-
return /*#__PURE__*/React.createElement(_IconButton.default, {
|
|
53
|
-
Icon: Icon,
|
|
54
|
-
icon: isSelected ? selectedIcon : unselectedIcon,
|
|
55
|
-
color: isSelected ? color : unselectedColor,
|
|
56
|
-
disabled: disabled,
|
|
57
|
-
onPress: handlePress,
|
|
58
|
-
size: size,
|
|
59
|
-
style: style,
|
|
60
|
-
...rest
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
var _default = RadioButton;
|
|
65
|
-
exports.default = _default;turn /*#__PURE__*/React.createElement(_IconButton.default, _extends({
|
|
54
|
+
return /*#__PURE__*/React.createElement(_IconButton.default, _extends({
|
|
66
55
|
Icon: Icon,
|
|
67
56
|
icon: isSelected ? selectedIcon : unselectedIcon,
|
|
68
57
|
color: isSelected ? color : unselectedColor,
|
|
@@ -25,7 +25,9 @@ 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
|
-
var
|
|
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
|
+
let Direction;
|
|
29
31
|
exports.Direction = Direction;
|
|
30
32
|
|
|
31
33
|
(function (Direction) {
|
|
@@ -88,14 +90,13 @@ const RadioButtonRow = _ref => {
|
|
|
88
90
|
textStyles,
|
|
89
91
|
viewStyles
|
|
90
92
|
} = (0, _utilities.extractStyles)(style);
|
|
91
|
-
return /*#__PURE__*/React.createElement(_Touchable.default, {
|
|
93
|
+
return /*#__PURE__*/React.createElement(_Touchable.default, _extends({
|
|
92
94
|
onPress: handlePress,
|
|
93
95
|
style: [styles.mainParent, {
|
|
94
96
|
flexDirection: direction
|
|
95
97
|
}, viewStyles],
|
|
96
|
-
disabled: disabled
|
|
97
|
-
|
|
98
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
98
|
+
disabled: disabled
|
|
99
|
+
}, rest), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
99
100
|
style: [styles.label, {
|
|
100
101
|
alignItems: direction === Direction.Row ? "flex-start" : "flex-end"
|
|
101
102
|
}, labelContainerStyle]
|
|
@@ -134,24 +135,5 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
134
135
|
}
|
|
135
136
|
});
|
|
136
137
|
|
|
137
|
-
var _default = RadioButtonRow;
|
|
138
|
-
exports.default = _default; "center",
|
|
139
|
-
justifyContent: "space-around",
|
|
140
|
-
paddingStart: 20,
|
|
141
|
-
minHeight: 50,
|
|
142
|
-
paddingEnd: 20,
|
|
143
|
-
display: "flex",
|
|
144
|
-
..._reactNative.Platform.select({
|
|
145
|
-
web: {
|
|
146
|
-
cursor: "pointer",
|
|
147
|
-
userSelect: "none"
|
|
148
|
-
}
|
|
149
|
-
})
|
|
150
|
-
},
|
|
151
|
-
label: {
|
|
152
|
-
flex: 3
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
|
|
156
138
|
var _default = RadioButtonRow;
|
|
157
139
|
exports.default = _default;
|
|
@@ -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
|
function ScreenContainer(_ref) {
|
|
21
23
|
let {
|
|
22
24
|
scrollable = false,
|
|
@@ -39,13 +41,12 @@ function ScreenContainer(_ref) {
|
|
|
39
41
|
edges.push("bottom");
|
|
40
42
|
}
|
|
41
43
|
|
|
42
|
-
return /*#__PURE__*/React.createElement(_reactNativeSafeAreaContext.SafeAreaView, {
|
|
44
|
+
return /*#__PURE__*/React.createElement(_reactNativeSafeAreaContext.SafeAreaView, _extends({
|
|
43
45
|
edges: edges,
|
|
44
46
|
style: [styles.container, {
|
|
45
47
|
backgroundColor
|
|
46
|
-
}]
|
|
47
|
-
|
|
48
|
-
}, scrollable ? /*#__PURE__*/React.createElement(_reactNative.ScrollView, {
|
|
48
|
+
}]
|
|
49
|
+
}, rest), scrollable ? /*#__PURE__*/React.createElement(_reactNative.ScrollView, {
|
|
49
50
|
contentContainerStyle: [styles.scrollViewContainer, {
|
|
50
51
|
backgroundColor
|
|
51
52
|
}, style]
|
|
@@ -68,23 +69,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
68
69
|
|
|
69
70
|
var _default = (0, _theming.withTheme)(ScreenContainer);
|
|
70
71
|
|
|
71
|
-
exports.default = _default;reactNative.View, {
|
|
72
|
-
style: [styles.container, {
|
|
73
|
-
backgroundColor
|
|
74
|
-
}, style]
|
|
75
|
-
}, children));
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
const styles = _reactNative.StyleSheet.create({
|
|
79
|
-
container: {
|
|
80
|
-
flex: 1
|
|
81
|
-
},
|
|
82
|
-
scrollViewContainer: {
|
|
83
|
-
flexGrow: 1,
|
|
84
|
-
flex: undefined
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
var _default = (0, _theming.withTheme)(ScreenContainer);
|
|
89
|
-
|
|
90
72
|
exports.default = _default;
|
|
@@ -23,6 +23,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
23
|
|
|
24
24
|
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; }
|
|
25
25
|
|
|
26
|
+
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); }
|
|
27
|
+
|
|
26
28
|
function maybeParseValue(value) {
|
|
27
29
|
if (value === undefined) {
|
|
28
30
|
return undefined;
|
|
@@ -89,10 +91,9 @@ function Slider(_ref) {
|
|
|
89
91
|
onValueChange(newValue);
|
|
90
92
|
};
|
|
91
93
|
|
|
92
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
93
|
-
style: [styles.container, style]
|
|
94
|
-
|
|
95
|
-
}, leftIcon ? /*#__PURE__*/React.createElement(Icon, {
|
|
94
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
95
|
+
style: [styles.container, style]
|
|
96
|
+
}, rest), leftIcon ? /*#__PURE__*/React.createElement(Icon, {
|
|
96
97
|
color: leftIconThemeColor,
|
|
97
98
|
name: leftIcon,
|
|
98
99
|
size: 24
|
|
@@ -128,24 +129,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
128
129
|
|
|
129
130
|
var _default = (0, _theming.withTheme)(Slider);
|
|
130
131
|
|
|
131
|
-
exports.default = _default;: rightIconThemeColor,
|
|
132
|
-
name: rightIcon,
|
|
133
|
-
size: 24
|
|
134
|
-
}) : null);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
const styles = _reactNative.StyleSheet.create({
|
|
138
|
-
container: {
|
|
139
|
-
height: 40,
|
|
140
|
-
flexDirection: "row",
|
|
141
|
-
alignItems: "center"
|
|
142
|
-
},
|
|
143
|
-
slider: {
|
|
144
|
-
flex: 1,
|
|
145
|
-
marginHorizontal: 12
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
var _default = (0, _theming.withTheme)(Slider);
|
|
150
|
-
|
|
151
132
|
exports.default = _default;
|
|
@@ -15,6 +15,8 @@ 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
|
+
|
|
18
20
|
const StarRating = _ref => {
|
|
19
21
|
let {
|
|
20
22
|
Icon,
|
|
@@ -45,10 +47,9 @@ const StarRating = _ref => {
|
|
|
45
47
|
!!onPress && onPress(r);
|
|
46
48
|
}, [onPress]);
|
|
47
49
|
const ratingRounded = Math.round(localRating * 2) / 2;
|
|
48
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
49
|
-
style: [styles.container, style]
|
|
50
|
-
|
|
51
|
-
}, [...Array(maxStars)].map((_, i) => /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
50
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
51
|
+
style: [styles.container, style]
|
|
52
|
+
}, rest), [...Array(maxStars)].map((_, i) => /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
52
53
|
key: i,
|
|
53
54
|
style: {
|
|
54
55
|
display: "flex"
|
|
@@ -92,25 +93,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
92
93
|
|
|
93
94
|
var _default = (0, _theming.withTheme)(StarRating);
|
|
94
95
|
|
|
95
|
-
exports.default = _default;ignItems: "center"
|
|
96
|
-
},
|
|
97
|
-
touchContainer: {
|
|
98
|
-
display: "flex",
|
|
99
|
-
flexDirection: "row",
|
|
100
|
-
position: "absolute",
|
|
101
|
-
top: 0,
|
|
102
|
-
right: 0,
|
|
103
|
-
left: 0,
|
|
104
|
-
bottom: 0,
|
|
105
|
-
zIndex: 1
|
|
106
|
-
},
|
|
107
|
-
pressable: {
|
|
108
|
-
flex: 1,
|
|
109
|
-
height: "100%",
|
|
110
|
-
width: "50%"
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
var _default = (0, _theming.withTheme)(StarRating);
|
|
115
|
-
|
|
116
96
|
exports.default = _default;
|
|
@@ -13,7 +13,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
13
13
|
|
|
14
14
|
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; }
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
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; }
|
|
17
|
+
|
|
17
18
|
const STEP_STATUS = {
|
|
18
19
|
CURRENT: "current",
|
|
19
20
|
FINISHED: "finished",
|
|
@@ -24,7 +25,7 @@ class StepIndicator extends _react.Component {
|
|
|
24
25
|
constructor(props) {
|
|
25
26
|
super(props);
|
|
26
27
|
|
|
27
|
-
this
|
|
28
|
+
_defineProperty(this, "renderProgressBarBackground", () => {
|
|
28
29
|
const {
|
|
29
30
|
stepCount,
|
|
30
31
|
direction
|
|
@@ -69,9 +70,9 @@ class StepIndicator extends _react.Component {
|
|
|
69
70
|
},
|
|
70
71
|
style: progressBarBackgroundStyle
|
|
71
72
|
});
|
|
72
|
-
};
|
|
73
|
+
});
|
|
73
74
|
|
|
74
|
-
this
|
|
75
|
+
_defineProperty(this, "renderProgressBar", () => {
|
|
75
76
|
const {
|
|
76
77
|
stepCount,
|
|
77
78
|
direction
|
|
@@ -103,9 +104,9 @@ class StepIndicator extends _react.Component {
|
|
|
103
104
|
return /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
|
|
104
105
|
style: progressBarStyle
|
|
105
106
|
});
|
|
106
|
-
};
|
|
107
|
+
});
|
|
107
108
|
|
|
108
|
-
this
|
|
109
|
+
_defineProperty(this, "renderStepIndicator", () => {
|
|
109
110
|
let steps = [];
|
|
110
111
|
const {
|
|
111
112
|
stepCount,
|
|
@@ -138,9 +139,9 @@ class StepIndicator extends _react.Component {
|
|
|
138
139
|
height: this.state.customStyles.currentStepIndicatorSize
|
|
139
140
|
}]
|
|
140
141
|
}, steps);
|
|
141
|
-
};
|
|
142
|
+
});
|
|
142
143
|
|
|
143
|
-
this
|
|
144
|
+
_defineProperty(this, "renderStepLabels", () => {
|
|
144
145
|
const {
|
|
145
146
|
labels,
|
|
146
147
|
direction,
|
|
@@ -182,9 +183,9 @@ class StepIndicator extends _react.Component {
|
|
|
182
183
|
alignItems: this.state.customStyles.labelAlign
|
|
183
184
|
}]
|
|
184
185
|
}, labelViews);
|
|
185
|
-
};
|
|
186
|
+
});
|
|
186
187
|
|
|
187
|
-
this
|
|
188
|
+
_defineProperty(this, "renderStep", position => {
|
|
188
189
|
const {
|
|
189
190
|
renderStepIndicator
|
|
190
191
|
} = this.props;
|
|
@@ -256,9 +257,9 @@ class StepIndicator extends _react.Component {
|
|
|
256
257
|
}) : /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
257
258
|
style: indicatorLabelStyle
|
|
258
259
|
}, "".concat(position + 1)));
|
|
259
|
-
};
|
|
260
|
+
});
|
|
260
261
|
|
|
261
|
-
this
|
|
262
|
+
_defineProperty(this, "getStepStatus", stepPosition => {
|
|
262
263
|
const {
|
|
263
264
|
currentPosition
|
|
264
265
|
} = this.props;
|
|
@@ -270,9 +271,9 @@ class StepIndicator extends _react.Component {
|
|
|
270
271
|
} else {
|
|
271
272
|
return STEP_STATUS.UNFINISHED;
|
|
272
273
|
}
|
|
273
|
-
};
|
|
274
|
+
});
|
|
274
275
|
|
|
275
|
-
this
|
|
276
|
+
_defineProperty(this, "onCurrentPositionChanged", position => {
|
|
276
277
|
let {
|
|
277
278
|
stepCount
|
|
278
279
|
} = this.props;
|
|
@@ -295,7 +296,7 @@ class StepIndicator extends _react.Component {
|
|
|
295
296
|
toValue: this.state.customStyles.currentStepIndicatorSize / 2,
|
|
296
297
|
duration: 100
|
|
297
298
|
})])]).start();
|
|
298
|
-
};
|
|
299
|
+
});
|
|
299
300
|
|
|
300
301
|
const defaultStyles = {
|
|
301
302
|
stepIndicatorSize: 30,
|
|
@@ -410,25 +411,6 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
410
411
|
}
|
|
411
412
|
});
|
|
412
413
|
|
|
413
|
-
StepIndicator.defaultProps = {
|
|
414
|
-
currentPosition: 0,
|
|
415
|
-
stepCount: 5,
|
|
416
|
-
customStyles: {},
|
|
417
|
-
direction: "horizontal"
|
|
418
|
-
}; justifyContent: "center"
|
|
419
|
-
},
|
|
420
|
-
stepLabel: {
|
|
421
|
-
fontSize: 12,
|
|
422
|
-
textAlign: "center",
|
|
423
|
-
fontWeight: "500"
|
|
424
|
-
},
|
|
425
|
-
stepLabelItem: {
|
|
426
|
-
flex: 1,
|
|
427
|
-
alignItems: "center",
|
|
428
|
-
justifyContent: "center"
|
|
429
|
-
}
|
|
430
|
-
});
|
|
431
|
-
|
|
432
414
|
StepIndicator.defaultProps = {
|
|
433
415
|
currentPosition: 0,
|
|
434
416
|
stepCount: 5,
|
|
@@ -15,6 +15,8 @@ var _theming = require("../theming");
|
|
|
15
15
|
|
|
16
16
|
var _IconButton = _interopRequireDefault(require("./IconButton"));
|
|
17
17
|
|
|
18
|
+
var _utilities = require("../utilities");
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
21
|
|
|
20
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -28,7 +30,6 @@ const Stepper = _ref => {
|
|
|
28
30
|
value: valueProp,
|
|
29
31
|
defaultValue,
|
|
30
32
|
style,
|
|
31
|
-
typeStyle,
|
|
32
33
|
iconSize = 24,
|
|
33
34
|
iconColor,
|
|
34
35
|
onChange,
|
|
@@ -38,6 +39,10 @@ const Stepper = _ref => {
|
|
|
38
39
|
},
|
|
39
40
|
Icon
|
|
40
41
|
} = _ref;
|
|
42
|
+
const {
|
|
43
|
+
viewStyles,
|
|
44
|
+
textStyles
|
|
45
|
+
} = (0, _utilities.extractStyles)(style);
|
|
41
46
|
const [value, setValue] = (0, _react.useState)(defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0);
|
|
42
47
|
|
|
43
48
|
const isValidValue = valueArg => valueArg >= min && valueArg <= max;
|
|
@@ -60,7 +65,7 @@ const Stepper = _ref => {
|
|
|
60
65
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
61
66
|
style: [{
|
|
62
67
|
flexDirection: "row"
|
|
63
|
-
},
|
|
68
|
+
}, viewStyles]
|
|
64
69
|
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
65
70
|
Icon: Icon,
|
|
66
71
|
icon: "MaterialIcons/remove",
|
|
@@ -77,7 +82,7 @@ const Stepper = _ref => {
|
|
|
77
82
|
alignSelf: "center",
|
|
78
83
|
color: colors.medium,
|
|
79
84
|
marginHorizontal: 8
|
|
80
|
-
},
|
|
85
|
+
}, textStyles]
|
|
81
86
|
}, value), /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
82
87
|
Icon: Icon,
|
|
83
88
|
icon: "MaterialIcons/add",
|
|
@@ -21,7 +21,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
21
21
|
|
|
22
22
|
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; }
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
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); }
|
|
25
|
+
|
|
25
26
|
const Surface = _ref => {
|
|
26
27
|
let {
|
|
27
28
|
elevation: propElevation,
|
|
@@ -53,19 +54,7 @@ const Surface = _ref => {
|
|
|
53
54
|
}
|
|
54
55
|
};
|
|
55
56
|
|
|
56
|
-
return /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
|
|
57
|
-
style: [{
|
|
58
|
-
backgroundColor: getBackgroundColor(),
|
|
59
|
-
elevation,
|
|
60
|
-
...evalationStyles,
|
|
61
|
-
...restStyle
|
|
62
|
-
}]
|
|
63
|
-
}, children);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
var _default = (0, _theming.withTheme)(Surface);
|
|
67
|
-
|
|
68
|
-
exports.default = _default;, _extends({}, rest, {
|
|
57
|
+
return /*#__PURE__*/React.createElement(_reactNative.Animated.View, _extends({}, rest, {
|
|
69
58
|
style: [{
|
|
70
59
|
backgroundColor: getBackgroundColor(),
|
|
71
60
|
elevation,
|
|
@@ -15,9 +15,23 @@ 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
|
+
_defineProperty(this, "state", {
|
|
29
|
+
nativeProps: {}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
19
33
|
setNativeProps(args) {
|
|
20
|
-
|
|
34
|
+
this.state.nativeProps = args || {};
|
|
21
35
|
}
|
|
22
36
|
|
|
23
37
|
render() {
|
|
@@ -26,43 +40,7 @@ class Text extends React.Component {
|
|
|
26
40
|
...rest
|
|
27
41
|
} = this.props;
|
|
28
42
|
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;/React.createElement(_reactNative.Text, _extends({}, rest, {
|
|
43
|
+
return /*#__PURE__*/React.createElement(_reactNative.Text, _extends({}, rest, this.state.nativeProps, {
|
|
66
44
|
ref: c => {
|
|
67
45
|
this._root = c;
|
|
68
46
|
},
|