@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
|
@@ -19,6 +19,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
19
19
|
|
|
20
20
|
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; }
|
|
21
21
|
|
|
22
|
+
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); }
|
|
23
|
+
|
|
22
24
|
const Container = _ref => {
|
|
23
25
|
let {
|
|
24
26
|
useThemeGutterPadding,
|
|
@@ -80,10 +82,9 @@ const Container = _ref => {
|
|
|
80
82
|
};
|
|
81
83
|
const Wrap = elevation ? _Elevation.default : _reactNative.View;
|
|
82
84
|
if (elevation) containerStyle.elevation = elevation;
|
|
83
|
-
return /*#__PURE__*/React.createElement(Wrap, {
|
|
84
|
-
style: [containerStyle, style]
|
|
85
|
-
|
|
86
|
-
}, backgroundImage ? /*#__PURE__*/React.createElement(_reactNative.ImageBackground, {
|
|
85
|
+
return /*#__PURE__*/React.createElement(Wrap, _extends({
|
|
86
|
+
style: [containerStyle, style]
|
|
87
|
+
}, rest), backgroundImage ? /*#__PURE__*/React.createElement(_reactNative.ImageBackground, {
|
|
87
88
|
source: typeof backgroundImage === "string" ? {
|
|
88
89
|
uri: backgroundImage
|
|
89
90
|
} : backgroundImage,
|
|
@@ -100,17 +101,4 @@ const Container = _ref => {
|
|
|
100
101
|
|
|
101
102
|
var _default = (0, _theming.withTheme)(Container);
|
|
102
103
|
|
|
103
|
-
exports.default = _default;izeMode: backgroundImageResizeMode,
|
|
104
|
-
style: {
|
|
105
|
-
flex: 1
|
|
106
|
-
}
|
|
107
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
108
|
-
style: innerStyle
|
|
109
|
-
}, children)) : /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
110
|
-
style: innerStyle
|
|
111
|
-
}, children));
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
var _default = (0, _theming.withTheme)(Container);
|
|
115
|
-
|
|
116
104
|
exports.default = _default;
|
|
@@ -13,6 +13,8 @@ var _Touchable = _interopRequireDefault(require("./Touchable"));
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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
|
+
|
|
16
18
|
const getWidth = numColumns => {
|
|
17
19
|
switch (numColumns) {
|
|
18
20
|
case 1:
|
|
@@ -35,23 +37,6 @@ const Card = _ref => {
|
|
|
35
37
|
...rest
|
|
36
38
|
} = _ref;
|
|
37
39
|
const width = getWidth(numColumns);
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement(_Touchable.default, {
|
|
39
|
-
disabled: !onPress,
|
|
40
|
-
onPress: onPress,
|
|
41
|
-
style: [style, {
|
|
42
|
-
width
|
|
43
|
-
}],
|
|
44
|
-
...rest
|
|
45
|
-
}, children);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
var _default = (0, _theming.withTheme)(Card);
|
|
49
|
-
|
|
50
|
-
exports.default = _default;,
|
|
51
|
-
style,
|
|
52
|
-
...rest
|
|
53
|
-
} = _ref;
|
|
54
|
-
const width = getWidth(numColumns);
|
|
55
40
|
return /*#__PURE__*/_react.default.createElement(_Touchable.default, _extends({
|
|
56
41
|
disabled: !onPress,
|
|
57
42
|
onPress: onPress,
|
|
@@ -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,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
179
181
|
|
|
180
182
|
var _default = (0, _theming.withTheme)(FAB);
|
|
181
183
|
|
|
182
|
-
exports.default = _default; "row",
|
|
183
|
-
alignItems: "center",
|
|
184
|
-
justifyContent: "center"
|
|
185
|
-
},
|
|
186
|
-
icon: {
|
|
187
|
-
alignItems: "center",
|
|
188
|
-
justifyContent: "center",
|
|
189
|
-
width: _Config.default.buttonIconSize
|
|
190
|
-
},
|
|
191
|
-
fixed: {
|
|
192
|
-
left: 0,
|
|
193
|
-
right: 0,
|
|
194
|
-
bottom: 0,
|
|
195
|
-
height: 64,
|
|
196
|
-
borderRadius: 0
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
var _default = (0, _theming.withTheme)(FAB);
|
|
201
|
-
|
|
202
184
|
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 Divider = _ref => {
|
|
19
21
|
let {
|
|
20
22
|
style,
|
|
@@ -24,22 +26,6 @@ const Divider = _ref => {
|
|
|
24
26
|
},
|
|
25
27
|
...rest
|
|
26
28
|
} = _ref;
|
|
27
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
28
|
-
style: [{
|
|
29
|
-
backgroundColor: color || colors.divider,
|
|
30
|
-
height: _reactNative.StyleSheet.hairlineWidth
|
|
31
|
-
}, style],
|
|
32
|
-
...rest
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
var _default = (0, _theming.withTheme)(Divider);
|
|
37
|
-
|
|
38
|
-
exports.default = _default;me: {
|
|
39
|
-
colors
|
|
40
|
-
},
|
|
41
|
-
...rest
|
|
42
|
-
} = _ref;
|
|
43
29
|
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
44
30
|
style: [{
|
|
45
31
|
backgroundColor: color || colors.divider,
|
|
@@ -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 FAB = _ref => {
|
|
19
21
|
let {
|
|
20
22
|
onPress,
|
|
@@ -38,7 +40,7 @@ const FAB = _ref => {
|
|
|
38
40
|
borderRadius: size / 2,
|
|
39
41
|
overflow: "hidden"
|
|
40
42
|
}, style]
|
|
41
|
-
}, /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
43
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
|
|
42
44
|
onPress: onPress,
|
|
43
45
|
disabled: loading || disabled,
|
|
44
46
|
android_ripple: {
|
|
@@ -56,9 +58,8 @@ const FAB = _ref => {
|
|
|
56
58
|
borderRadius: size / 2,
|
|
57
59
|
backgroundColor
|
|
58
60
|
}];
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, null, loading ? /*#__PURE__*/React.createElement(_reactNative.ActivityIndicator, {
|
|
61
|
+
}
|
|
62
|
+
}, props), /*#__PURE__*/React.createElement(_reactNative.View, null, loading ? /*#__PURE__*/React.createElement(_reactNative.ActivityIndicator, {
|
|
62
63
|
style: size > 50 ? {
|
|
63
64
|
marginTop: 2,
|
|
64
65
|
marginLeft: 2
|
|
@@ -88,20 +89,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
88
89
|
|
|
89
90
|
var _default = (0, _theming.withTheme)(FAB);
|
|
90
91
|
|
|
91
|
-
exports.default = _default;styles = _reactNative.StyleSheet.create({
|
|
92
|
-
button: {
|
|
93
|
-
backgroundColor: "#5a45ff",
|
|
94
|
-
justifyContent: "center",
|
|
95
|
-
alignItems: "center",
|
|
96
|
-
..._reactNative.Platform.select({
|
|
97
|
-
web: {
|
|
98
|
-
cursor: "pointer",
|
|
99
|
-
userSelect: "none"
|
|
100
|
-
}
|
|
101
|
-
})
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
var _default = (0, _theming.withTheme)(FAB);
|
|
106
|
-
|
|
107
92
|
exports.default = _default;
|
|
@@ -19,6 +19,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
19
19
|
|
|
20
20
|
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; }
|
|
21
21
|
|
|
22
|
+
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); }
|
|
23
|
+
|
|
22
24
|
function FormRow(_ref) {
|
|
23
25
|
let {
|
|
24
26
|
disabled,
|
|
@@ -33,27 +35,11 @@ function FormRow(_ref) {
|
|
|
33
35
|
textStyles,
|
|
34
36
|
viewStyles
|
|
35
37
|
} = (0, _utilities.extractStyles)(style);
|
|
36
|
-
return /*#__PURE__*/React.createElement(_Touchable.default, {
|
|
38
|
+
return /*#__PURE__*/React.createElement(_Touchable.default, _extends({
|
|
37
39
|
disabled: disabled,
|
|
38
40
|
onPress: onPress,
|
|
39
41
|
style: [styles.row, {
|
|
40
42
|
flexDirection: direction
|
|
41
|
-
}, viewStyles],
|
|
42
|
-
...rest
|
|
43
|
-
}, /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
44
|
-
style: textStyles
|
|
45
|
-
}, label), children);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const styles = _reactNative.StyleSheet.create({
|
|
49
|
-
row: {
|
|
50
|
-
marginLeft: 8,
|
|
51
|
-
marginRight: 8,
|
|
52
|
-
flexDirection: "row",
|
|
53
|
-
justifyContent: "space-between",
|
|
54
|
-
alignItems: "center"
|
|
55
|
-
}
|
|
56
|
-
});rection: direction
|
|
57
43
|
}, viewStyles]
|
|
58
44
|
}, rest), /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
59
45
|
style: textStyles
|
|
@@ -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 IconButton = _ref => {
|
|
19
21
|
let {
|
|
20
22
|
Icon,
|
|
@@ -29,7 +31,7 @@ const IconButton = _ref => {
|
|
|
29
31
|
...props
|
|
30
32
|
} = _ref;
|
|
31
33
|
const iconColor = customColor || theme.colors.primary;
|
|
32
|
-
return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
34
|
+
return /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
|
|
33
35
|
onPress: onPress,
|
|
34
36
|
disabled: disabled || loading,
|
|
35
37
|
style: _ref2 => {
|
|
@@ -43,9 +45,8 @@ const IconButton = _ref => {
|
|
|
43
45
|
alignItems: "center",
|
|
44
46
|
justifyContent: "center"
|
|
45
47
|
}, style];
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, null, icon && !loading ? /*#__PURE__*/React.createElement(Icon, {
|
|
48
|
+
}
|
|
49
|
+
}, props), /*#__PURE__*/React.createElement(_reactNative.View, null, icon && !loading ? /*#__PURE__*/React.createElement(Icon, {
|
|
49
50
|
name: icon,
|
|
50
51
|
size: size - 2,
|
|
51
52
|
color: iconColor
|
|
@@ -70,22 +71,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
70
71
|
|
|
71
72
|
var _default = (0, _theming.withTheme)(IconButton);
|
|
72
73
|
|
|
73
|
-
exports.default = _default;) : null));
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
const styles = _reactNative.StyleSheet.create({
|
|
77
|
-
container: {
|
|
78
|
-
alignItems: "center",
|
|
79
|
-
justifyContent: "center",
|
|
80
|
-
..._reactNative.Platform.select({
|
|
81
|
-
web: {
|
|
82
|
-
cursor: "pointer",
|
|
83
|
-
userSelect: "none"
|
|
84
|
-
}
|
|
85
|
-
})
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
var _default = (0, _theming.withTheme)(IconButton);
|
|
90
|
-
|
|
91
74
|
exports.default = _default;
|
|
@@ -18,6 +18,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
18
18
|
|
|
19
19
|
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; }
|
|
20
20
|
|
|
21
|
+
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); }
|
|
22
|
+
|
|
21
23
|
function Center(_ref) {
|
|
22
24
|
let {
|
|
23
25
|
width = 240,
|
|
@@ -27,16 +29,15 @@ function Center(_ref) {
|
|
|
27
29
|
style,
|
|
28
30
|
...rest
|
|
29
31
|
} = _ref;
|
|
30
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
32
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
31
33
|
style: [{
|
|
32
34
|
justifyContent: "center",
|
|
33
35
|
alignItems: "center",
|
|
34
36
|
width,
|
|
35
37
|
height,
|
|
36
38
|
backgroundColor: bgColor
|
|
37
|
-
}, style]
|
|
38
|
-
|
|
39
|
-
}, children);
|
|
39
|
+
}, style]
|
|
40
|
+
}, rest), children);
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
function Circle(_ref2) {
|
|
@@ -48,7 +49,7 @@ function Circle(_ref2) {
|
|
|
48
49
|
...rest
|
|
49
50
|
} = _ref2;
|
|
50
51
|
const borderRadius = 1000;
|
|
51
|
-
return /*#__PURE__*/React.createElement(Center, {
|
|
52
|
+
return /*#__PURE__*/React.createElement(Center, _extends({
|
|
52
53
|
width: size,
|
|
53
54
|
height: size,
|
|
54
55
|
bgColor: bgColor,
|
|
@@ -56,9 +57,8 @@ function Circle(_ref2) {
|
|
|
56
57
|
backgroundColor: bgColor,
|
|
57
58
|
borderRadius,
|
|
58
59
|
overflow: "hidden"
|
|
59
|
-
}]
|
|
60
|
-
|
|
61
|
-
}, children);
|
|
60
|
+
}]
|
|
61
|
+
}, rest), children);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
function Square(_ref3) {
|
|
@@ -69,13 +69,12 @@ function Square(_ref3) {
|
|
|
69
69
|
style,
|
|
70
70
|
...rest
|
|
71
71
|
} = _ref3;
|
|
72
|
-
return /*#__PURE__*/React.createElement(Center, {
|
|
72
|
+
return /*#__PURE__*/React.createElement(Center, _extends({
|
|
73
73
|
style: style,
|
|
74
74
|
width: size,
|
|
75
75
|
height: size,
|
|
76
|
-
bgColor: bgColor
|
|
77
|
-
|
|
78
|
-
}, children);
|
|
76
|
+
bgColor: bgColor
|
|
77
|
+
}, rest), children);
|
|
79
78
|
}
|
|
80
79
|
|
|
81
80
|
function Row(_ref4) {
|
|
@@ -86,14 +85,14 @@ function Row(_ref4) {
|
|
|
86
85
|
style,
|
|
87
86
|
...rest
|
|
88
87
|
} = _ref4;
|
|
89
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
90
|
-
style: [style,
|
|
88
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
89
|
+
style: [style, // style goes first b/c we can't override these
|
|
90
|
+
{
|
|
91
91
|
alignItems,
|
|
92
92
|
flexDirection: "row",
|
|
93
93
|
justifyContent: justifyContent
|
|
94
|
-
}]
|
|
95
|
-
|
|
96
|
-
}, children);
|
|
94
|
+
}]
|
|
95
|
+
}, rest), children);
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
function Spacer(_ref5) {
|
|
@@ -106,37 +105,17 @@ function Spacer(_ref5) {
|
|
|
106
105
|
style,
|
|
107
106
|
...rest
|
|
108
107
|
} = _ref5;
|
|
109
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
108
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
110
109
|
style: [style, {
|
|
111
110
|
paddingRight: right,
|
|
112
111
|
paddingTop: top,
|
|
113
112
|
paddingLeft: left,
|
|
114
113
|
paddingBottom: bottom
|
|
115
|
-
}]
|
|
116
|
-
|
|
117
|
-
}, children);
|
|
114
|
+
}]
|
|
115
|
+
}, rest), children);
|
|
118
116
|
}
|
|
119
117
|
|
|
120
118
|
function Stack(_ref6) {
|
|
121
|
-
let {
|
|
122
|
-
children,
|
|
123
|
-
justifyContent = "flex-start",
|
|
124
|
-
alignItems = "flex-start",
|
|
125
|
-
style,
|
|
126
|
-
...rest
|
|
127
|
-
} = _ref6;
|
|
128
|
-
return (
|
|
129
|
-
/*#__PURE__*/
|
|
130
|
-
// style must go first since we don't want justifyContent, alignItems overridden
|
|
131
|
-
React.createElement(_reactNative.View, {
|
|
132
|
-
style: [style, {
|
|
133
|
-
justifyContent,
|
|
134
|
-
alignItems
|
|
135
|
-
}],
|
|
136
|
-
...rest
|
|
137
|
-
}, children)
|
|
138
|
-
);
|
|
139
|
-
}ck(_ref6) {
|
|
140
119
|
let {
|
|
141
120
|
children,
|
|
142
121
|
justifyContent = "flex-start",
|
|
@@ -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 NumberInput = _ref => {
|
|
19
21
|
let {
|
|
20
22
|
onChangeText,
|
|
@@ -67,19 +69,6 @@ const NumberInput = _ref => {
|
|
|
67
69
|
handleChangeText(nextStringNumberValue);
|
|
68
70
|
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
69
71
|
|
|
70
|
-
}, [value]);
|
|
71
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, {
|
|
72
|
-
keyboardType: "numeric",
|
|
73
|
-
value: currentStringNumberValue,
|
|
74
|
-
onChangeText: handleChangeText,
|
|
75
|
-
...props
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
var _default = NumberInput;
|
|
80
|
-
exports.default = _default;lue);
|
|
81
|
-
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
82
|
-
|
|
83
72
|
}, [value]);
|
|
84
73
|
return /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, _extends({
|
|
85
74
|
keyboardType: "numeric",
|
|
@@ -284,10 +284,6 @@ const Picker = _ref => {
|
|
|
284
284
|
);
|
|
285
285
|
};
|
|
286
286
|
|
|
287
|
-
var _default = (0, _theming.withTheme)(Picker);
|
|
288
|
-
|
|
289
|
-
exports.default = _default;
|
|
290
|
-
|
|
291
287
|
const styles = _reactNative.StyleSheet.create({
|
|
292
288
|
marginsContainer: {
|
|
293
289
|
alignSelf: "stretch",
|
|
@@ -357,4 +353,8 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
357
353
|
maxWidth: deviceWidth,
|
|
358
354
|
maxHeight: deviceHeight
|
|
359
355
|
}
|
|
360
|
-
});
|
|
356
|
+
});
|
|
357
|
+
|
|
358
|
+
var _default = (0, _theming.withTheme)(Picker);
|
|
359
|
+
|
|
360
|
+
exports.default = _default;
|
|
@@ -27,7 +27,11 @@ 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 Picker = _ref => {
|
|
33
|
+
var _options$find$label, _options$find;
|
|
34
|
+
|
|
31
35
|
let {
|
|
32
36
|
style,
|
|
33
37
|
options,
|
|
@@ -37,9 +41,6 @@ const Picker = _ref => {
|
|
|
37
41
|
onValueChange: onValueChangeOverride = () => {},
|
|
38
42
|
...props
|
|
39
43
|
} = _ref;
|
|
40
|
-
|
|
41
|
-
var _a, _b;
|
|
42
|
-
|
|
43
44
|
const {
|
|
44
45
|
viewStyles: {
|
|
45
46
|
borderRadius,
|
|
@@ -86,7 +87,7 @@ const Picker = _ref => {
|
|
|
86
87
|
};
|
|
87
88
|
|
|
88
89
|
const stylesWithoutMargin = style && (0, _lodash.default)(_reactNative.StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
|
|
89
|
-
const selectedLabel = selectedValue && ((
|
|
90
|
+
const selectedLabel = selectedValue && ((_options$find$label = (_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label) !== null && _options$find$label !== void 0 ? _options$find$label : selectedValue);
|
|
90
91
|
return /*#__PURE__*/React.createElement(_Touchable.default, {
|
|
91
92
|
disabled: disabled,
|
|
92
93
|
onPress: toggleFocus,
|
|
@@ -111,26 +112,6 @@ const Picker = _ref => {
|
|
|
111
112
|
key: o.value
|
|
112
113
|
}))), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
113
114
|
pointerEvents: "none"
|
|
114
|
-
}, /*#__PURE__*/React.createElement(_TextField.default, { ...props,
|
|
115
|
-
value: selectedLabel,
|
|
116
|
-
placeholder: placeholder,
|
|
117
|
-
// @ts-ignore
|
|
118
|
-
ref: textField,
|
|
119
|
-
disabled: disabled,
|
|
120
|
-
// @ts-expect-error
|
|
121
|
-
style: stylesWithoutMargin
|
|
122
|
-
}))));
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
const styles = _reactNative.StyleSheet.create({
|
|
126
|
-
container: {
|
|
127
|
-
alignSelf: "stretch"
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
var _default = (0, _theming.withTheme)(Picker);
|
|
132
|
-
|
|
133
|
-
exports.default = _default; pointerEvents: "none"
|
|
134
115
|
}, /*#__PURE__*/React.createElement(_TextField.default, _extends({}, props, {
|
|
135
116
|
value: selectedLabel,
|
|
136
117
|
placeholder: placeholder // @ts-ignore
|
|
@@ -11,7 +11,15 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
11
11
|
|
|
12
12
|
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; }
|
|
13
13
|
|
|
14
|
+
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; }
|
|
15
|
+
|
|
14
16
|
class PortalConsumer extends React.Component {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
|
|
20
|
+
_defineProperty(this, "key", void 0);
|
|
21
|
+
}
|
|
22
|
+
|
|
15
23
|
async componentDidMount() {
|
|
16
24
|
this.checkManager(); // Delay updating to prevent React from going to infinite loop
|
|
17
25
|
|
|
@@ -41,14 +49,4 @@ class PortalConsumer extends React.Component {
|
|
|
41
49
|
|
|
42
50
|
}
|
|
43
51
|
|
|
44
|
-
exports.default = PortalConsumer;er` component from `react-native-paper`.\n\n" + "Please read our getting-started guide and make sure you've followed all the required steps.\n\n" + "https://callstack.github.io/react-native-paper/getting-started.html");
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
render() {
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
52
|
exports.default = PortalConsumer;
|
|
@@ -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 _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
|
+
|
|
20
22
|
const PortalContext = /*#__PURE__*/React.createContext(null);
|
|
21
23
|
/**
|
|
22
24
|
* Portal host renders all of its children `Portal` elements.
|
|
@@ -49,11 +51,11 @@ class PortalHost extends React.Component {
|
|
|
49
51
|
constructor() {
|
|
50
52
|
super(...arguments);
|
|
51
53
|
|
|
52
|
-
this
|
|
54
|
+
_defineProperty(this, "setManager", manager => {
|
|
53
55
|
this.manager = manager;
|
|
54
|
-
};
|
|
56
|
+
});
|
|
55
57
|
|
|
56
|
-
this
|
|
58
|
+
_defineProperty(this, "mount", children => {
|
|
57
59
|
const key = this.nextKey++;
|
|
58
60
|
|
|
59
61
|
if (this.manager) {
|
|
@@ -67,9 +69,9 @@ class PortalHost extends React.Component {
|
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
return key;
|
|
70
|
-
};
|
|
72
|
+
});
|
|
71
73
|
|
|
72
|
-
this
|
|
74
|
+
_defineProperty(this, "update", (key, children) => {
|
|
73
75
|
if (this.manager) {
|
|
74
76
|
this.manager.update(key, children);
|
|
75
77
|
} else {
|
|
@@ -87,9 +89,9 @@ class PortalHost extends React.Component {
|
|
|
87
89
|
this.queue.push(op);
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
|
-
};
|
|
92
|
+
});
|
|
91
93
|
|
|
92
|
-
this
|
|
94
|
+
_defineProperty(this, "unmount", key => {
|
|
93
95
|
if (this.manager) {
|
|
94
96
|
this.manager.unmount(key);
|
|
95
97
|
} else {
|
|
@@ -98,10 +100,13 @@ class PortalHost extends React.Component {
|
|
|
98
100
|
key
|
|
99
101
|
});
|
|
100
102
|
}
|
|
101
|
-
};
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
_defineProperty(this, "nextKey", 0);
|
|
106
|
+
|
|
107
|
+
_defineProperty(this, "queue", []);
|
|
102
108
|
|
|
103
|
-
this
|
|
104
|
-
this.queue = [];
|
|
109
|
+
_defineProperty(this, "manager", void 0);
|
|
105
110
|
}
|
|
106
111
|
|
|
107
112
|
componentDidMount() {
|
|
@@ -147,23 +152,6 @@ class PortalHost extends React.Component {
|
|
|
147
152
|
|
|
148
153
|
}
|
|
149
154
|
|
|
150
|
-
exports.default = PortalHost;
|
|
151
|
-
PortalHost.displayName = "Portal.Host";
|
|
152
|
-
|
|
153
|
-
const styles = _reactNative.StyleSheet.create({
|
|
154
|
-
container: {
|
|
155
|
-
flex: 1
|
|
156
|
-
}
|
|
157
|
-
}); style: styles.container,
|
|
158
|
-
collapsable: false,
|
|
159
|
-
pointerEvents: "box-none"
|
|
160
|
-
}, this.props.children), /*#__PURE__*/React.createElement(_PortalManager.default, {
|
|
161
|
-
ref: this.setManager
|
|
162
|
-
}));
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
|
|
167
155
|
exports.default = PortalHost;
|
|
168
156
|
|
|
169
157
|
_defineProperty(PortalHost, "displayName", "Portal.Host");
|