@draftbit/core 46.4.4-80a666.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/Provider.js +10 -2
- package/lib/commonjs/components/Accordion/AccordionGroup.js +15 -2
- package/lib/commonjs/components/Accordion/AccordionItem.js +14 -2
- package/lib/commonjs/components/Accordion/index.js +4 -2
- package/lib/commonjs/components/ActionSheet/ActionSheet.js +10 -2
- package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js +6 -2
- package/lib/commonjs/components/ActionSheet/ActionSheetItem.js +8 -2
- package/lib/commonjs/components/ActionSheet/index.js +5 -2
- package/lib/commonjs/components/AnimatedCircularProgress.js +16 -2
- package/lib/commonjs/components/AspectRatio.js +13 -18
- package/lib/commonjs/components/AvatarEdit.js +13 -2
- package/lib/commonjs/components/Banner.js +27 -33
- package/lib/commonjs/components/Button.js +30 -36
- package/lib/commonjs/components/Card.js +15 -2
- package/lib/commonjs/components/CardBlock.js +20 -15
- package/lib/commonjs/components/CardContainer.js +23 -16
- package/lib/commonjs/components/CardContainerRating.js +21 -4
- package/lib/commonjs/components/CardContainerShortImage.js +17 -18
- package/lib/commonjs/components/CardInline.js +15 -3
- package/lib/commonjs/components/Carousel.js +24 -7
- package/lib/commonjs/components/Checkbox/Checkbox.js +19 -5
- package/lib/commonjs/components/Checkbox/CheckboxGroup.js +12 -2
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +21 -2
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +25 -5
- package/lib/commonjs/components/Checkbox/context.js +6 -2
- package/lib/commonjs/components/Checkbox/index.js +5 -2
- package/lib/commonjs/components/CircleImage.js +12 -18
- package/lib/commonjs/components/CircularProgress.js +14 -5
- package/lib/commonjs/components/Config.js +14 -7
- package/lib/commonjs/components/Container.js +12 -2
- package/lib/commonjs/components/DatePicker/DatePicker.js +56 -34
- package/lib/commonjs/components/DatePicker/DatePickerComponent.js +8 -2
- package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js +11 -2
- package/lib/commonjs/components/DatePicker/DatePickerComponentType.js +1 -2
- package/lib/commonjs/components/DeprecatedButton.js +27 -21
- package/lib/commonjs/components/DeprecatedCardWrapper.js +12 -2
- package/lib/commonjs/components/DeprecatedFAB.js +27 -2
- package/lib/commonjs/components/Divider.js +11 -14
- package/lib/commonjs/components/Elevation.js +14 -15
- package/lib/commonjs/components/FAB.js +15 -21
- package/lib/commonjs/components/FieldSearchBarFull.js +19 -2
- package/lib/commonjs/components/FormRow.js +11 -2
- package/lib/commonjs/components/Header.js +14 -2
- package/lib/commonjs/components/HeaderLarge.js +10 -2
- package/lib/commonjs/components/HeaderMedium.js +10 -2
- package/lib/commonjs/components/HeaderOverline.js +10 -2
- package/lib/commonjs/components/IconButton.js +11 -2
- package/lib/commonjs/components/Image.js +18 -2
- package/lib/commonjs/components/Justification.js +1 -2
- package/lib/commonjs/components/Layout.js +13 -4
- package/lib/commonjs/components/NumberInput.js +22 -10
- package/lib/commonjs/components/Picker/Picker.js +41 -9
- package/lib/commonjs/components/Picker/PickerComponent.android.js +24 -8
- package/lib/commonjs/components/Picker/PickerComponent.ios.js +35 -36
- package/lib/commonjs/components/Picker/PickerComponent.web.js +26 -25
- package/lib/commonjs/components/Picker/PickerTypes.js +1 -2
- package/lib/commonjs/components/Portal/Portal.js +15 -6
- package/lib/commonjs/components/Portal/PortalConsumer.js +16 -7
- package/lib/commonjs/components/Portal/PortalHost.js +32 -6
- package/lib/commonjs/components/Portal/PortalManager.js +25 -40
- package/lib/commonjs/components/ProgressBar.js +26 -7
- package/lib/commonjs/components/ProgressCircle.js +11 -2
- package/lib/commonjs/components/ProgressIndicator.js +10 -2
- package/lib/commonjs/components/RadioButton/RadioButton.js +15 -3
- package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +11 -2
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +15 -2
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js +22 -3
- package/lib/commonjs/components/RadioButton/context.js +6 -2
- package/lib/commonjs/components/RadioButton/index.js +6 -2
- package/lib/commonjs/components/ResizeMode.js +1 -2
- package/lib/commonjs/components/Row.js +12 -2
- package/lib/commonjs/components/RowBodyIcon.js +11 -2
- package/lib/commonjs/components/RowHeadlineImageCaption.js +12 -4
- package/lib/commonjs/components/RowHeadlineImageIcon.js +11 -2
- package/lib/commonjs/components/SVG.js +10 -2
- package/lib/commonjs/components/ScreenContainer.js +19 -22
- package/lib/commonjs/components/Slider.js +22 -2
- package/lib/commonjs/components/StarRating.js +11 -2
- package/lib/commonjs/components/StepIndicator.js +40 -7
- package/lib/commonjs/components/Stepper.js +27 -10
- package/lib/commonjs/components/Surface.js +15 -2
- package/lib/commonjs/components/Swiper/Swiper.js +9 -2
- package/lib/commonjs/components/Swiper/SwiperItem.js +7 -2
- package/lib/commonjs/components/Swiper/index.js +4 -2
- package/lib/commonjs/components/Switch.js +27 -24
- package/lib/commonjs/components/Text.js +19 -5
- package/lib/commonjs/components/TextField.js +87 -86
- package/lib/commonjs/components/ToggleButton.js +17 -16
- package/lib/commonjs/components/Touchable.js +6 -2
- package/lib/commonjs/components/Touchable.web.js +3 -2
- package/lib/commonjs/components/Typography.js +6 -2
- package/lib/commonjs/components/useAuthState.js +10 -2
- package/lib/commonjs/constants.js +5 -2
- package/lib/commonjs/hooks.js +8 -6
- package/lib/commonjs/index.js +53 -2
- package/lib/commonjs/interfaces/Icon.js +6 -5
- package/lib/commonjs/mappings/Accordion.js +3 -2
- package/lib/commonjs/mappings/AccordionItem.js +3 -2
- package/lib/commonjs/mappings/ActionSheet.js +3 -2
- package/lib/commonjs/mappings/ActionSheetCancel.js +3 -2
- package/lib/commonjs/mappings/ActionSheetItem.js +3 -2
- package/lib/commonjs/mappings/ActivityIndicator.js +3 -2
- package/lib/commonjs/mappings/AudioPlayer.js +35 -4
- package/lib/commonjs/mappings/AvatarEdit.js +3 -2
- package/lib/commonjs/mappings/Banner.js +3 -2
- package/lib/commonjs/mappings/BlurView.js +3 -2
- package/lib/commonjs/mappings/Button.js +6 -8
- package/lib/commonjs/mappings/Card.js +5 -5
- package/lib/commonjs/mappings/CardBlock.js +6 -8
- package/lib/commonjs/mappings/CardContainer.js +8 -7
- package/lib/commonjs/mappings/CardContainerRating.js +5 -6
- package/lib/commonjs/mappings/CardContainerShortImage.js +3 -2
- package/lib/commonjs/mappings/CardInline.js +3 -2
- package/lib/commonjs/mappings/Carousel.js +3 -2
- package/lib/commonjs/mappings/Checkbox.js +3 -2
- package/lib/commonjs/mappings/CheckboxGroup.js +3 -2
- package/lib/commonjs/mappings/CheckboxRow.js +3 -2
- package/lib/commonjs/mappings/CircleImage.js +3 -2
- package/lib/commonjs/mappings/Container.js +3 -2
- package/lib/commonjs/mappings/CustomCode.js +3 -2
- package/lib/commonjs/mappings/DatePicker.js +5 -19
- package/lib/commonjs/mappings/Divider.js +3 -2
- package/lib/commonjs/mappings/FAB.js +3 -2
- package/lib/commonjs/mappings/Fetch.js +3 -2
- package/lib/commonjs/mappings/FieldSearchBarFull.js +5 -5
- package/lib/commonjs/mappings/FlashList.js +3 -2
- package/lib/commonjs/mappings/FlatList.js +3 -2
- package/lib/commonjs/mappings/HeaderLarge.js +3 -2
- package/lib/commonjs/mappings/HeaderMedium.js +3 -2
- package/lib/commonjs/mappings/HeaderOverline.js +3 -2
- package/lib/commonjs/mappings/Icon.js +4 -4
- package/lib/commonjs/mappings/IconButton.js +3 -2
- package/lib/commonjs/mappings/Image.js +3 -2
- package/lib/commonjs/mappings/ImageBackground.js +3 -2
- package/lib/commonjs/mappings/KeyboardAvoidingView.js +3 -2
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js +3 -2
- package/lib/commonjs/mappings/Layout.js +3 -2
- package/lib/commonjs/mappings/LinearGradient.js +3 -2
- package/lib/commonjs/mappings/MapCallout.js +3 -2
- package/lib/commonjs/mappings/MapMarker.js +3 -2
- package/lib/commonjs/mappings/MapView.js +3 -2
- package/lib/commonjs/mappings/Modal.js +3 -2
- package/lib/commonjs/mappings/NumberInput.js +5 -6
- package/lib/commonjs/mappings/Picker.js +5 -6
- package/lib/commonjs/mappings/ProgressBar.js +3 -2
- package/lib/commonjs/mappings/ProgressCircle.js +3 -2
- package/lib/commonjs/mappings/ProgressIndicator.js +3 -2
- package/lib/commonjs/mappings/RadioButton.js +3 -2
- package/lib/commonjs/mappings/RadioButtonGroup.js +3 -2
- package/lib/commonjs/mappings/RadioButtonRow.js +3 -2
- package/lib/commonjs/mappings/RowBodyIcon.js +3 -2
- package/lib/commonjs/mappings/RowHeadlineImageCaption.js +3 -2
- package/lib/commonjs/mappings/RowHeadlineImageIcon.js +9 -14
- package/lib/commonjs/mappings/SVG.js +3 -2
- package/lib/commonjs/mappings/SafeAreaView.js +3 -2
- package/lib/commonjs/mappings/ScrollView.js +3 -2
- package/lib/commonjs/mappings/Slider.js +3 -2
- package/lib/commonjs/mappings/StarRating.js +4 -3
- package/lib/commonjs/mappings/Stepper.js +4 -3
- package/lib/commonjs/mappings/Surface.js +3 -2
- package/lib/commonjs/mappings/Swiper.js +3 -2
- package/lib/commonjs/mappings/SwiperItem.js +3 -2
- package/lib/commonjs/mappings/Switch.js +3 -2
- package/lib/commonjs/mappings/Text.js +6 -7
- package/lib/commonjs/mappings/TextArea.js +18 -7
- package/lib/commonjs/mappings/TextField.js +23 -13
- package/lib/commonjs/mappings/TextInput.js +18 -7
- package/lib/commonjs/mappings/ToggleButton.js +3 -2
- package/lib/commonjs/mappings/Touchable.js +3 -2
- package/lib/commonjs/mappings/Video.js +3 -2
- package/lib/commonjs/mappings/View.js +3 -2
- package/lib/commonjs/mappings/WebView.js +3 -2
- package/lib/commonjs/styles/DarkTheme.js +7 -7
- package/lib/commonjs/styles/DefaultTheme.js +18 -28
- package/lib/commonjs/styles/fonts.js +6 -5
- package/lib/commonjs/styles/overlay.js +15 -7
- package/lib/commonjs/styles/shadow.js +10 -2
- package/lib/commonjs/theming.js +5 -2
- package/lib/commonjs/utilities.js +15 -4
- package/lib/module/Provider.js +2 -2
- package/lib/module/components/Accordion/AccordionGroup.js +5 -2
- package/lib/module/components/Accordion/AccordionItem.js +8 -25
- package/lib/module/components/Accordion/index.js +1 -2
- package/lib/module/components/ActionSheet/ActionSheet.js +3 -2
- package/lib/module/components/ActionSheet/ActionSheetCancel.js +3 -2
- package/lib/module/components/ActionSheet/ActionSheetItem.js +3 -2
- package/lib/module/components/ActionSheet/index.js +1 -2
- package/lib/module/components/AnimatedCircularProgress.js +7 -2
- package/lib/module/components/AspectRatio.js +8 -20
- package/lib/module/components/AvatarEdit.js +4 -2
- package/lib/module/components/Banner.js +14 -33
- package/lib/module/components/Button.js +11 -4
- package/lib/module/components/Card.js +3 -2
- package/lib/module/components/CardBlock.js +7 -2
- package/lib/module/components/CardContainer.js +12 -16
- package/lib/module/components/CardContainerRating.js +13 -18
- package/lib/module/components/CardContainerShortImage.js +4 -2
- package/lib/module/components/CardInline.js +3 -2
- package/lib/module/components/Carousel.js +12 -7
- package/lib/module/components/Checkbox/Checkbox.js +13 -26
- package/lib/module/components/Checkbox/CheckboxGroup.js +6 -2
- package/lib/module/components/Checkbox/CheckboxGroupRow.js +9 -2
- package/lib/module/components/Checkbox/CheckboxRow.js +12 -5
- package/lib/module/components/Checkbox/context.js +4 -3
- package/lib/module/components/Checkbox/index.js +1 -2
- package/lib/module/components/CircleImage.js +5 -17
- package/lib/module/components/CircularProgress.js +10 -5
- package/lib/module/components/Config.js +12 -7
- package/lib/module/components/Container.js +4 -2
- package/lib/module/components/DatePicker/DatePicker.js +51 -58
- package/lib/module/components/DatePicker/DatePickerComponent.js +3 -2
- package/lib/module/components/DatePicker/DatePickerComponent.web.js +3 -2
- package/lib/module/components/DatePicker/DatePickerComponentType.js +1 -2
- package/lib/module/components/DeprecatedButton.js +10 -2
- package/lib/module/components/DeprecatedCardWrapper.js +7 -2
- package/lib/module/components/DeprecatedFAB.js +14 -2
- package/lib/module/components/Divider.js +5 -19
- package/lib/module/components/Elevation.js +6 -17
- package/lib/module/components/FAB.js +4 -2
- package/lib/module/components/FieldSearchBarFull.js +11 -2
- package/lib/module/components/FormRow.js +4 -19
- package/lib/module/components/Header.js +3 -2
- package/lib/module/components/HeaderLarge.js +3 -2
- package/lib/module/components/HeaderMedium.js +3 -2
- package/lib/module/components/HeaderOverline.js +3 -2
- package/lib/module/components/IconButton.js +4 -2
- package/lib/module/components/Image.js +11 -2
- package/lib/module/components/Justification.js +1 -2
- package/lib/module/components/Layout.js +4 -6
- package/lib/module/components/NumberInput.js +20 -22
- package/lib/module/components/Picker/Picker.js +24 -8
- package/lib/module/components/Picker/PickerComponent.android.js +13 -25
- package/lib/module/components/Picker/PickerComponent.ios.js +12 -10
- package/lib/module/components/Picker/PickerComponent.web.js +11 -8
- package/lib/module/components/Picker/PickerTypes.js +1 -2
- package/lib/module/components/Portal/Portal.js +7 -6
- package/lib/module/components/Portal/PortalConsumer.js +11 -7
- package/lib/module/components/Portal/PortalHost.js +23 -6
- package/lib/module/components/Portal/PortalManager.js +19 -40
- package/lib/module/components/ProgressBar.js +22 -42
- package/lib/module/components/ProgressCircle.js +3 -2
- package/lib/module/components/ProgressIndicator.js +3 -2
- package/lib/module/components/RadioButton/RadioButton.js +8 -15
- package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +5 -12
- package/lib/module/components/RadioButton/RadioButtonGroup.js +11 -17
- package/lib/module/components/RadioButton/RadioButtonRow.js +10 -3
- package/lib/module/components/RadioButton/context.js +3 -2
- package/lib/module/components/RadioButton/index.js +1 -2
- package/lib/module/components/ResizeMode.js +1 -2
- package/lib/module/components/Row.js +3 -2
- package/lib/module/components/RowBodyIcon.js +3 -2
- package/lib/module/components/RowHeadlineImageCaption.js +4 -4
- package/lib/module/components/RowHeadlineImageIcon.js +3 -2
- package/lib/module/components/SVG.js +3 -2
- package/lib/module/components/ScreenContainer.js +11 -22
- package/lib/module/components/Slider.js +15 -24
- package/lib/module/components/StarRating.js +4 -2
- package/lib/module/components/StepIndicator.js +30 -7
- package/lib/module/components/Stepper.js +17 -10
- package/lib/module/components/Surface.js +7 -17
- package/lib/module/components/Swiper/Swiper.js +5 -2
- package/lib/module/components/Swiper/SwiperItem.js +3 -2
- package/lib/module/components/Swiper/index.js +1 -2
- package/lib/module/components/Switch.js +8 -7
- package/lib/module/components/Text.js +12 -52
- package/lib/module/components/TextField.js +51 -14
- package/lib/module/components/ToggleButton.js +6 -2
- package/lib/module/components/Touchable.js +2 -2
- package/lib/module/components/Touchable.web.js +1 -2
- package/lib/module/components/Typography.js +1 -2
- package/lib/module/components/useAuthState.js +5 -2
- package/lib/module/constants.js +2 -4
- package/lib/module/hooks.js +3 -6
- package/lib/module/index.js +2 -5
- package/lib/module/interfaces/Icon.js +2 -4
- package/lib/module/mappings/Accordion.js +1 -2
- package/lib/module/mappings/AccordionItem.js +1 -2
- package/lib/module/mappings/ActionSheet.js +1 -2
- package/lib/module/mappings/ActionSheetCancel.js +1 -2
- package/lib/module/mappings/ActionSheetItem.js +1 -2
- package/lib/module/mappings/ActivityIndicator.js +1 -2
- package/lib/module/mappings/AudioPlayer.js +34 -5
- package/lib/module/mappings/AvatarEdit.js +1 -2
- package/lib/module/mappings/Banner.js +1 -2
- package/lib/module/mappings/BlurView.js +1 -2
- package/lib/module/mappings/Button.js +4 -8
- package/lib/module/mappings/Card.js +3 -5
- package/lib/module/mappings/CardBlock.js +4 -8
- package/lib/module/mappings/CardContainer.js +6 -7
- package/lib/module/mappings/CardContainerRating.js +3 -6
- package/lib/module/mappings/CardContainerShortImage.js +1 -2
- package/lib/module/mappings/CardInline.js +1 -2
- package/lib/module/mappings/Carousel.js +1 -2
- package/lib/module/mappings/Checkbox.js +1 -2
- package/lib/module/mappings/CheckboxGroup.js +1 -2
- package/lib/module/mappings/CheckboxRow.js +1 -2
- package/lib/module/mappings/CircleImage.js +1 -2
- package/lib/module/mappings/Container.js +1 -2
- package/lib/module/mappings/CustomCode.js +1 -2
- package/lib/module/mappings/DatePicker.js +4 -20
- package/lib/module/mappings/Divider.js +1 -2
- package/lib/module/mappings/FAB.js +1 -2
- package/lib/module/mappings/Fetch.js +2 -2
- package/lib/module/mappings/FieldSearchBarFull.js +2 -4
- package/lib/module/mappings/FlashList.js +1 -2
- package/lib/module/mappings/FlatList.js +1 -2
- package/lib/module/mappings/HeaderLarge.js +1 -2
- package/lib/module/mappings/HeaderMedium.js +1 -2
- package/lib/module/mappings/HeaderOverline.js +1 -2
- package/lib/module/mappings/Icon.js +2 -4
- package/lib/module/mappings/IconButton.js +1 -2
- package/lib/module/mappings/Image.js +1 -2
- package/lib/module/mappings/ImageBackground.js +1 -2
- package/lib/module/mappings/KeyboardAvoidingView.js +1 -2
- package/lib/module/mappings/KeyboardAwareScrollView.js +1 -2
- package/lib/module/mappings/Layout.js +1 -2
- package/lib/module/mappings/LinearGradient.js +1 -2
- package/lib/module/mappings/MapCallout.js +1 -2
- package/lib/module/mappings/MapMarker.js +1 -2
- package/lib/module/mappings/MapView.js +1 -2
- package/lib/module/mappings/Modal.js +1 -2
- package/lib/module/mappings/NumberInput.js +3 -6
- package/lib/module/mappings/Picker.js +3 -6
- package/lib/module/mappings/ProgressBar.js +1 -2
- package/lib/module/mappings/ProgressCircle.js +1 -2
- package/lib/module/mappings/ProgressIndicator.js +1 -2
- package/lib/module/mappings/RadioButton.js +1 -2
- package/lib/module/mappings/RadioButtonGroup.js +1 -2
- package/lib/module/mappings/RadioButtonRow.js +1 -2
- package/lib/module/mappings/RowBodyIcon.js +1 -2
- package/lib/module/mappings/RowHeadlineImageCaption.js +1 -2
- package/lib/module/mappings/RowHeadlineImageIcon.js +7 -14
- package/lib/module/mappings/SVG.js +1 -2
- package/lib/module/mappings/SafeAreaView.js +1 -2
- package/lib/module/mappings/ScrollView.js +1 -2
- package/lib/module/mappings/Slider.js +1 -2
- package/lib/module/mappings/StarRating.js +2 -3
- package/lib/module/mappings/Stepper.js +3 -4
- package/lib/module/mappings/Surface.js +1 -2
- package/lib/module/mappings/Swiper.js +1 -2
- package/lib/module/mappings/SwiperItem.js +1 -2
- package/lib/module/mappings/Switch.js +1 -2
- package/lib/module/mappings/Text.js +4 -7
- package/lib/module/mappings/TextArea.js +17 -8
- package/lib/module/mappings/TextField.js +21 -13
- package/lib/module/mappings/TextInput.js +17 -8
- package/lib/module/mappings/ToggleButton.js +1 -2
- package/lib/module/mappings/Touchable.js +1 -2
- package/lib/module/mappings/Video.js +1 -2
- package/lib/module/mappings/View.js +1 -2
- package/lib/module/mappings/WebView.js +1 -2
- package/lib/module/styles/DarkTheme.js +3 -6
- package/lib/module/styles/DefaultTheme.js +14 -28
- package/lib/module/styles/fonts.js +2 -4
- package/lib/module/styles/overlay.js +11 -6
- package/lib/module/styles/shadow.js +7 -2
- package/lib/module/theming.js +1 -2
- package/lib/module/utilities.js +6 -3
- package/lib/typescript/src/Provider.d.ts +1 -1
- package/lib/typescript/src/Provider.d.ts.map +1 -1
- package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts +1 -1
- package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts.map +1 -1
- package/lib/typescript/src/components/Accordion/AccordionItem.d.ts +1 -1
- package/lib/typescript/src/components/Accordion/AccordionItem.d.ts.map +1 -1
- package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +1 -1
- package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts.map +1 -1
- package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +1 -1
- package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts.map +1 -1
- package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +1 -1
- package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +1 -1
- package/lib/typescript/src/components/AspectRatio.d.ts +1 -1
- package/lib/typescript/src/components/AspectRatio.d.ts.map +1 -1
- package/lib/typescript/src/components/AvatarEdit.d.ts +1 -1
- package/lib/typescript/src/components/AvatarEdit.d.ts.map +1 -1
- package/lib/typescript/src/components/Banner.d.ts +1 -1
- package/lib/typescript/src/components/Banner.d.ts.map +1 -1
- package/lib/typescript/src/components/Card.d.ts +1 -1
- package/lib/typescript/src/components/Card.d.ts.map +1 -1
- package/lib/typescript/src/components/CardBlock.d.ts +1 -1
- package/lib/typescript/src/components/CardBlock.d.ts.map +1 -1
- package/lib/typescript/src/components/CardContainer.d.ts +1 -1
- package/lib/typescript/src/components/CardContainer.d.ts.map +1 -1
- package/lib/typescript/src/components/CardContainerRating.d.ts +1 -1
- package/lib/typescript/src/components/CardContainerRating.d.ts.map +1 -1
- package/lib/typescript/src/components/CardContainerShortImage.d.ts +1 -1
- package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +1 -1
- package/lib/typescript/src/components/CardInline.d.ts +1 -1
- package/lib/typescript/src/components/CardInline.d.ts.map +1 -1
- package/lib/typescript/src/components/Carousel.d.ts +1 -1
- package/lib/typescript/src/components/Carousel.d.ts.map +1 -1
- package/lib/typescript/src/components/CircularProgress.d.ts +1 -1
- package/lib/typescript/src/components/CircularProgress.d.ts.map +1 -1
- package/lib/typescript/src/components/Container.d.ts +1 -1
- package/lib/typescript/src/components/Container.d.ts.map +1 -1
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +1 -5
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/lib/typescript/src/components/DeprecatedButton.d.ts +1 -1
- package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -1
- package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +1 -1
- package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -1
- package/lib/typescript/src/components/DeprecatedFAB.d.ts +1 -1
- package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -1
- package/lib/typescript/src/components/Divider.d.ts +1 -1
- package/lib/typescript/src/components/Divider.d.ts.map +1 -1
- package/lib/typescript/src/components/Elevation.d.ts +1 -1
- package/lib/typescript/src/components/Elevation.d.ts.map +1 -1
- package/lib/typescript/src/components/FAB.d.ts +1 -1
- package/lib/typescript/src/components/FAB.d.ts.map +1 -1
- package/lib/typescript/src/components/FieldSearchBarFull.d.ts +1 -1
- package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +1 -1
- package/lib/typescript/src/components/FormRow.d.ts +1 -1
- package/lib/typescript/src/components/FormRow.d.ts.map +1 -1
- package/lib/typescript/src/components/Header.d.ts +1 -1
- package/lib/typescript/src/components/Header.d.ts.map +1 -1
- package/lib/typescript/src/components/HeaderLarge.d.ts +1 -1
- package/lib/typescript/src/components/HeaderLarge.d.ts.map +1 -1
- package/lib/typescript/src/components/HeaderMedium.d.ts +1 -1
- package/lib/typescript/src/components/HeaderMedium.d.ts.map +1 -1
- package/lib/typescript/src/components/HeaderOverline.d.ts +1 -1
- package/lib/typescript/src/components/HeaderOverline.d.ts.map +1 -1
- package/lib/typescript/src/components/IconButton.d.ts +1 -1
- package/lib/typescript/src/components/IconButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Justification.d.ts +1 -1
- package/lib/typescript/src/components/Justification.d.ts.map +1 -1
- package/lib/typescript/src/components/Picker/Picker.d.ts +1 -1
- package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
- package/lib/typescript/src/components/Portal/Portal.d.ts +1 -1
- package/lib/typescript/src/components/Portal/Portal.d.ts.map +1 -1
- package/lib/typescript/src/components/Portal/PortalConsumer.d.ts +1 -1
- package/lib/typescript/src/components/Portal/PortalConsumer.d.ts.map +1 -1
- package/lib/typescript/src/components/Portal/PortalHost.d.ts +2 -2
- package/lib/typescript/src/components/Portal/PortalHost.d.ts.map +1 -1
- package/lib/typescript/src/components/Portal/PortalManager.d.ts +1 -1
- package/lib/typescript/src/components/Portal/PortalManager.d.ts.map +1 -1
- package/lib/typescript/src/components/ProgressBar.d.ts +1 -1
- package/lib/typescript/src/components/ProgressBar.d.ts.map +1 -1
- package/lib/typescript/src/components/ProgressCircle.d.ts +1 -1
- package/lib/typescript/src/components/ProgressCircle.d.ts.map +1 -1
- package/lib/typescript/src/components/ProgressIndicator.d.ts +1 -1
- package/lib/typescript/src/components/ProgressIndicator.d.ts.map +1 -1
- package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +1 -1
- package/lib/typescript/src/components/RadioButton/RadioButton.d.ts.map +1 -1
- package/lib/typescript/src/components/ResizeMode.d.ts +1 -1
- package/lib/typescript/src/components/ResizeMode.d.ts.map +1 -1
- package/lib/typescript/src/components/Row.d.ts +1 -1
- package/lib/typescript/src/components/Row.d.ts.map +1 -1
- package/lib/typescript/src/components/RowBodyIcon.d.ts +1 -1
- package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +1 -1
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -1
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +1 -1
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/SVG.d.ts +1 -1
- package/lib/typescript/src/components/SVG.d.ts.map +1 -1
- package/lib/typescript/src/components/ScreenContainer.d.ts +1 -1
- package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -1
- package/lib/typescript/src/components/Slider.d.ts +1 -1
- package/lib/typescript/src/components/Slider.d.ts.map +1 -1
- package/lib/typescript/src/components/StarRating.d.ts +1 -1
- package/lib/typescript/src/components/StarRating.d.ts.map +1 -1
- package/lib/typescript/src/components/StepIndicator.d.ts +2 -2
- package/lib/typescript/src/components/StepIndicator.d.ts.map +1 -1
- package/lib/typescript/src/components/Stepper.d.ts +2 -3
- package/lib/typescript/src/components/Stepper.d.ts.map +1 -1
- package/lib/typescript/src/components/Surface.d.ts +1 -1
- package/lib/typescript/src/components/Surface.d.ts.map +1 -1
- package/lib/typescript/src/components/Switch.d.ts +2 -2
- package/lib/typescript/src/components/Switch.d.ts.map +1 -1
- package/lib/typescript/src/components/Text.d.ts +1 -1
- package/lib/typescript/src/components/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/TextField.d.ts +1 -1
- package/lib/typescript/src/components/TextField.d.ts.map +1 -1
- package/lib/typescript/src/components/ToggleButton.d.ts +1 -1
- package/lib/typescript/src/components/ToggleButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Touchable.d.ts +1 -1
- package/lib/typescript/src/components/Touchable.d.ts.map +1 -1
- package/lib/typescript/src/components/Typography.d.ts +1 -1
- package/lib/typescript/src/components/Typography.d.ts.map +1 -1
- package/lib/typescript/src/interfaces/Icon.d.ts +2 -2
- package/lib/typescript/src/interfaces/Icon.d.ts.map +1 -1
- package/lib/typescript/src/mappings/AudioPlayer.d.ts +62 -1
- package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -1
- package/lib/typescript/src/mappings/DatePicker.d.ts +0 -42
- package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -1
- package/lib/typescript/src/mappings/TextArea.d.ts +21 -1
- package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -1
- package/lib/typescript/src/mappings/TextField.d.ts +22 -2
- package/lib/typescript/src/mappings/TextField.d.ts.map +1 -1
- package/lib/typescript/src/mappings/TextInput.d.ts +21 -1
- package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -1
- package/lib/typescript/src/styles/DefaultTheme.d.ts +1 -1
- package/lib/typescript/src/styles/DefaultTheme.d.ts.map +1 -1
- package/package.json +15 -5
- package/src/components/Carousel.js +2 -2
- package/src/components/Carousel.tsx +2 -2
- package/src/components/DatePicker/DatePicker.js +8 -14
- package/src/components/DatePicker/DatePicker.tsx +7 -23
- package/src/components/Stepper.js +5 -4
- package/src/components/Stepper.tsx +6 -6
- package/src/mappings/AudioPlayer.js +39 -2
- package/src/mappings/AudioPlayer.ts +41 -1
- package/src/mappings/DatePicker.js +1 -21
- package/src/mappings/DatePicker.ts +0 -23
- 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 +14 -4
- package/src/mappings/TextField.ts +14 -4
- package/src/mappings/TextInput.js +15 -4
- package/src/mappings/TextInput.ts +15 -3
- package/lib/commonjs/Provider.js.map +0 -1
- package/lib/commonjs/components/Accordion/AccordionGroup.js.map +0 -1
- package/lib/commonjs/components/Accordion/AccordionItem.js.map +0 -1
- package/lib/commonjs/components/Accordion/index.js.map +0 -1
- package/lib/commonjs/components/ActionSheet/ActionSheet.js.map +0 -1
- package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js.map +0 -1
- package/lib/commonjs/components/ActionSheet/ActionSheetItem.js.map +0 -1
- package/lib/commonjs/components/ActionSheet/index.js.map +0 -1
- package/lib/commonjs/components/AnimatedCircularProgress.js.map +0 -1
- package/lib/commonjs/components/AspectRatio.js.map +0 -1
- package/lib/commonjs/components/AvatarEdit.js.map +0 -1
- package/lib/commonjs/components/Banner.js.map +0 -1
- package/lib/commonjs/components/Button.js.map +0 -1
- package/lib/commonjs/components/Card.js.map +0 -1
- package/lib/commonjs/components/CardBlock.js.map +0 -1
- package/lib/commonjs/components/CardContainer.js.map +0 -1
- package/lib/commonjs/components/CardContainerRating.js.map +0 -1
- package/lib/commonjs/components/CardContainerShortImage.js.map +0 -1
- package/lib/commonjs/components/CardInline.js.map +0 -1
- package/lib/commonjs/components/Carousel.js.map +0 -1
- package/lib/commonjs/components/Checkbox/Checkbox.js.map +0 -1
- package/lib/commonjs/components/Checkbox/CheckboxGroup.js.map +0 -1
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js.map +0 -1
- package/lib/commonjs/components/Checkbox/CheckboxRow.js.map +0 -1
- package/lib/commonjs/components/Checkbox/context.js.map +0 -1
- package/lib/commonjs/components/Checkbox/index.js.map +0 -1
- package/lib/commonjs/components/CircleImage.js.map +0 -1
- package/lib/commonjs/components/CircularProgress.js.map +0 -1
- package/lib/commonjs/components/Config.js.map +0 -1
- package/lib/commonjs/components/Container.js.map +0 -1
- package/lib/commonjs/components/DatePicker/DatePicker.js.map +0 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponent.js.map +0 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js.map +0 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponentType.js.map +0 -1
- package/lib/commonjs/components/DeprecatedButton.js.map +0 -1
- package/lib/commonjs/components/DeprecatedCardWrapper.js.map +0 -1
- package/lib/commonjs/components/DeprecatedFAB.js.map +0 -1
- package/lib/commonjs/components/Divider.js.map +0 -1
- package/lib/commonjs/components/Elevation.js.map +0 -1
- package/lib/commonjs/components/FAB.js.map +0 -1
- package/lib/commonjs/components/FieldSearchBarFull.js.map +0 -1
- package/lib/commonjs/components/FormRow.js.map +0 -1
- package/lib/commonjs/components/Header.js.map +0 -1
- package/lib/commonjs/components/HeaderLarge.js.map +0 -1
- package/lib/commonjs/components/HeaderMedium.js.map +0 -1
- package/lib/commonjs/components/HeaderOverline.js.map +0 -1
- package/lib/commonjs/components/IconButton.js.map +0 -1
- package/lib/commonjs/components/Image.js.map +0 -1
- package/lib/commonjs/components/Justification.js.map +0 -1
- package/lib/commonjs/components/Layout.js.map +0 -1
- package/lib/commonjs/components/NumberInput.js.map +0 -1
- package/lib/commonjs/components/Picker/Picker.js.map +0 -1
- package/lib/commonjs/components/Picker/PickerComponent.android.js.map +0 -1
- package/lib/commonjs/components/Picker/PickerComponent.ios.js.map +0 -1
- package/lib/commonjs/components/Picker/PickerComponent.web.js.map +0 -1
- package/lib/commonjs/components/Picker/PickerTypes.js.map +0 -1
- package/lib/commonjs/components/Portal/Portal.js.map +0 -1
- package/lib/commonjs/components/Portal/PortalConsumer.js.map +0 -1
- package/lib/commonjs/components/Portal/PortalHost.js.map +0 -1
- package/lib/commonjs/components/Portal/PortalManager.js.map +0 -1
- package/lib/commonjs/components/ProgressBar.js.map +0 -1
- package/lib/commonjs/components/ProgressCircle.js.map +0 -1
- package/lib/commonjs/components/ProgressIndicator.js.map +0 -1
- package/lib/commonjs/components/RadioButton/RadioButton.js.map +0 -1
- package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js.map +0 -1
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +0 -1
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js.map +0 -1
- package/lib/commonjs/components/RadioButton/context.js.map +0 -1
- package/lib/commonjs/components/RadioButton/index.js.map +0 -1
- package/lib/commonjs/components/ResizeMode.js.map +0 -1
- package/lib/commonjs/components/Row.js.map +0 -1
- package/lib/commonjs/components/RowBodyIcon.js.map +0 -1
- package/lib/commonjs/components/RowHeadlineImageCaption.js.map +0 -1
- package/lib/commonjs/components/RowHeadlineImageIcon.js.map +0 -1
- package/lib/commonjs/components/SVG.js.map +0 -1
- package/lib/commonjs/components/ScreenContainer.js.map +0 -1
- package/lib/commonjs/components/Slider.js.map +0 -1
- package/lib/commonjs/components/StarRating.js.map +0 -1
- package/lib/commonjs/components/StepIndicator.js.map +0 -1
- package/lib/commonjs/components/Stepper.js.map +0 -1
- package/lib/commonjs/components/Surface.js.map +0 -1
- package/lib/commonjs/components/Swiper/Swiper.js.map +0 -1
- package/lib/commonjs/components/Swiper/SwiperItem.js.map +0 -1
- package/lib/commonjs/components/Swiper/index.js.map +0 -1
- package/lib/commonjs/components/Switch.js.map +0 -1
- package/lib/commonjs/components/Text.js.map +0 -1
- package/lib/commonjs/components/TextField.js.map +0 -1
- package/lib/commonjs/components/ToggleButton.js.map +0 -1
- package/lib/commonjs/components/Touchable.js.map +0 -1
- package/lib/commonjs/components/Touchable.web.js.map +0 -1
- package/lib/commonjs/components/Typography.js.map +0 -1
- package/lib/commonjs/components/useAuthState.js.map +0 -1
- package/lib/commonjs/constants.js.map +0 -1
- package/lib/commonjs/hooks.js.map +0 -1
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/interfaces/Icon.js.map +0 -1
- package/lib/commonjs/mappings/Accordion.js.map +0 -1
- package/lib/commonjs/mappings/AccordionItem.js.map +0 -1
- package/lib/commonjs/mappings/ActionSheet.js.map +0 -1
- package/lib/commonjs/mappings/ActionSheetCancel.js.map +0 -1
- package/lib/commonjs/mappings/ActionSheetItem.js.map +0 -1
- package/lib/commonjs/mappings/ActivityIndicator.js.map +0 -1
- package/lib/commonjs/mappings/AudioPlayer.js.map +0 -1
- package/lib/commonjs/mappings/AvatarEdit.js.map +0 -1
- package/lib/commonjs/mappings/Banner.js.map +0 -1
- package/lib/commonjs/mappings/BlurView.js.map +0 -1
- package/lib/commonjs/mappings/Button.js.map +0 -1
- package/lib/commonjs/mappings/Card.js.map +0 -1
- package/lib/commonjs/mappings/CardBlock.js.map +0 -1
- package/lib/commonjs/mappings/CardContainer.js.map +0 -1
- package/lib/commonjs/mappings/CardContainerRating.js.map +0 -1
- package/lib/commonjs/mappings/CardContainerShortImage.js.map +0 -1
- package/lib/commonjs/mappings/CardInline.js.map +0 -1
- package/lib/commonjs/mappings/Carousel.js.map +0 -1
- package/lib/commonjs/mappings/Checkbox.js.map +0 -1
- package/lib/commonjs/mappings/CheckboxGroup.js.map +0 -1
- package/lib/commonjs/mappings/CheckboxRow.js.map +0 -1
- package/lib/commonjs/mappings/CircleImage.js.map +0 -1
- package/lib/commonjs/mappings/Container.js.map +0 -1
- package/lib/commonjs/mappings/CustomCode.js.map +0 -1
- package/lib/commonjs/mappings/DatePicker.js.map +0 -1
- package/lib/commonjs/mappings/Divider.js.map +0 -1
- package/lib/commonjs/mappings/FAB.js.map +0 -1
- package/lib/commonjs/mappings/Fetch.js.map +0 -1
- package/lib/commonjs/mappings/FieldSearchBarFull.js.map +0 -1
- package/lib/commonjs/mappings/FlashList.js.map +0 -1
- package/lib/commonjs/mappings/FlatList.js.map +0 -1
- package/lib/commonjs/mappings/HeaderLarge.js.map +0 -1
- package/lib/commonjs/mappings/HeaderMedium.js.map +0 -1
- package/lib/commonjs/mappings/HeaderOverline.js.map +0 -1
- package/lib/commonjs/mappings/Icon.js.map +0 -1
- package/lib/commonjs/mappings/IconButton.js.map +0 -1
- package/lib/commonjs/mappings/Image.js.map +0 -1
- package/lib/commonjs/mappings/ImageBackground.js.map +0 -1
- package/lib/commonjs/mappings/KeyboardAvoidingView.js.map +0 -1
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +0 -1
- package/lib/commonjs/mappings/Layout.js.map +0 -1
- package/lib/commonjs/mappings/LinearGradient.js.map +0 -1
- package/lib/commonjs/mappings/MapCallout.js.map +0 -1
- package/lib/commonjs/mappings/MapMarker.js.map +0 -1
- package/lib/commonjs/mappings/MapView.js.map +0 -1
- package/lib/commonjs/mappings/Modal.js.map +0 -1
- package/lib/commonjs/mappings/NumberInput.js.map +0 -1
- package/lib/commonjs/mappings/Picker.js.map +0 -1
- package/lib/commonjs/mappings/ProgressBar.js.map +0 -1
- package/lib/commonjs/mappings/ProgressCircle.js.map +0 -1
- package/lib/commonjs/mappings/ProgressIndicator.js.map +0 -1
- package/lib/commonjs/mappings/RadioButton.js.map +0 -1
- package/lib/commonjs/mappings/RadioButtonGroup.js.map +0 -1
- package/lib/commonjs/mappings/RadioButtonRow.js.map +0 -1
- package/lib/commonjs/mappings/RowBodyIcon.js.map +0 -1
- package/lib/commonjs/mappings/RowHeadlineImageCaption.js.map +0 -1
- package/lib/commonjs/mappings/RowHeadlineImageIcon.js.map +0 -1
- package/lib/commonjs/mappings/SVG.js.map +0 -1
- package/lib/commonjs/mappings/SafeAreaView.js.map +0 -1
- package/lib/commonjs/mappings/ScrollView.js.map +0 -1
- package/lib/commonjs/mappings/Slider.js.map +0 -1
- package/lib/commonjs/mappings/StarRating.js.map +0 -1
- package/lib/commonjs/mappings/Stepper.js.map +0 -1
- package/lib/commonjs/mappings/Surface.js.map +0 -1
- package/lib/commonjs/mappings/Swiper.js.map +0 -1
- package/lib/commonjs/mappings/SwiperItem.js.map +0 -1
- package/lib/commonjs/mappings/Switch.js.map +0 -1
- package/lib/commonjs/mappings/Text.js.map +0 -1
- package/lib/commonjs/mappings/TextArea.js.map +0 -1
- package/lib/commonjs/mappings/TextField.js.map +0 -1
- package/lib/commonjs/mappings/TextInput.js.map +0 -1
- package/lib/commonjs/mappings/ToggleButton.js.map +0 -1
- package/lib/commonjs/mappings/Touchable.js.map +0 -1
- package/lib/commonjs/mappings/Video.js.map +0 -1
- package/lib/commonjs/mappings/View.js.map +0 -1
- package/lib/commonjs/mappings/WebView.js.map +0 -1
- package/lib/commonjs/styles/DarkTheme.js.map +0 -1
- package/lib/commonjs/styles/DefaultTheme.js.map +0 -1
- package/lib/commonjs/styles/fonts.js.map +0 -1
- package/lib/commonjs/styles/overlay.js.map +0 -1
- package/lib/commonjs/styles/shadow.js.map +0 -1
- package/lib/commonjs/theming.js.map +0 -1
- package/lib/commonjs/utilities.js.map +0 -1
- package/lib/module/Provider.js.map +0 -1
- package/lib/module/components/Accordion/AccordionGroup.js.map +0 -1
- package/lib/module/components/Accordion/AccordionItem.js.map +0 -1
- package/lib/module/components/Accordion/index.js.map +0 -1
- package/lib/module/components/ActionSheet/ActionSheet.js.map +0 -1
- package/lib/module/components/ActionSheet/ActionSheetCancel.js.map +0 -1
- package/lib/module/components/ActionSheet/ActionSheetItem.js.map +0 -1
- package/lib/module/components/ActionSheet/index.js.map +0 -1
- package/lib/module/components/AnimatedCircularProgress.js.map +0 -1
- package/lib/module/components/AspectRatio.js.map +0 -1
- package/lib/module/components/AvatarEdit.js.map +0 -1
- package/lib/module/components/Banner.js.map +0 -1
- package/lib/module/components/Button.js.map +0 -1
- package/lib/module/components/Card.js.map +0 -1
- package/lib/module/components/CardBlock.js.map +0 -1
- package/lib/module/components/CardContainer.js.map +0 -1
- package/lib/module/components/CardContainerRating.js.map +0 -1
- package/lib/module/components/CardContainerShortImage.js.map +0 -1
- package/lib/module/components/CardInline.js.map +0 -1
- package/lib/module/components/Carousel.js.map +0 -1
- package/lib/module/components/Checkbox/Checkbox.js.map +0 -1
- package/lib/module/components/Checkbox/CheckboxGroup.js.map +0 -1
- package/lib/module/components/Checkbox/CheckboxGroupRow.js.map +0 -1
- package/lib/module/components/Checkbox/CheckboxRow.js.map +0 -1
- package/lib/module/components/Checkbox/context.js.map +0 -1
- package/lib/module/components/Checkbox/index.js.map +0 -1
- package/lib/module/components/CircleImage.js.map +0 -1
- package/lib/module/components/CircularProgress.js.map +0 -1
- package/lib/module/components/Config.js.map +0 -1
- package/lib/module/components/Container.js.map +0 -1
- package/lib/module/components/DatePicker/DatePicker.js.map +0 -1
- package/lib/module/components/DatePicker/DatePickerComponent.js.map +0 -1
- package/lib/module/components/DatePicker/DatePickerComponent.web.js.map +0 -1
- package/lib/module/components/DatePicker/DatePickerComponentType.js.map +0 -1
- package/lib/module/components/DeprecatedButton.js.map +0 -1
- package/lib/module/components/DeprecatedCardWrapper.js.map +0 -1
- package/lib/module/components/DeprecatedFAB.js.map +0 -1
- package/lib/module/components/Divider.js.map +0 -1
- package/lib/module/components/Elevation.js.map +0 -1
- package/lib/module/components/FAB.js.map +0 -1
- package/lib/module/components/FieldSearchBarFull.js.map +0 -1
- package/lib/module/components/FormRow.js.map +0 -1
- package/lib/module/components/Header.js.map +0 -1
- package/lib/module/components/HeaderLarge.js.map +0 -1
- package/lib/module/components/HeaderMedium.js.map +0 -1
- package/lib/module/components/HeaderOverline.js.map +0 -1
- package/lib/module/components/IconButton.js.map +0 -1
- package/lib/module/components/Image.js.map +0 -1
- package/lib/module/components/Justification.js.map +0 -1
- package/lib/module/components/Layout.js.map +0 -1
- package/lib/module/components/NumberInput.js.map +0 -1
- package/lib/module/components/Picker/Picker.js.map +0 -1
- package/lib/module/components/Picker/PickerComponent.android.js.map +0 -1
- package/lib/module/components/Picker/PickerComponent.ios.js.map +0 -1
- package/lib/module/components/Picker/PickerComponent.web.js.map +0 -1
- package/lib/module/components/Picker/PickerTypes.js.map +0 -1
- package/lib/module/components/Portal/Portal.js.map +0 -1
- package/lib/module/components/Portal/PortalConsumer.js.map +0 -1
- package/lib/module/components/Portal/PortalHost.js.map +0 -1
- package/lib/module/components/Portal/PortalManager.js.map +0 -1
- package/lib/module/components/ProgressBar.js.map +0 -1
- package/lib/module/components/ProgressCircle.js.map +0 -1
- package/lib/module/components/ProgressIndicator.js.map +0 -1
- package/lib/module/components/RadioButton/RadioButton.js.map +0 -1
- package/lib/module/components/RadioButton/RadioButtonFieldGroup.js.map +0 -1
- package/lib/module/components/RadioButton/RadioButtonGroup.js.map +0 -1
- package/lib/module/components/RadioButton/RadioButtonRow.js.map +0 -1
- package/lib/module/components/RadioButton/context.js.map +0 -1
- package/lib/module/components/RadioButton/index.js.map +0 -1
- package/lib/module/components/ResizeMode.js.map +0 -1
- package/lib/module/components/Row.js.map +0 -1
- package/lib/module/components/RowBodyIcon.js.map +0 -1
- package/lib/module/components/RowHeadlineImageCaption.js.map +0 -1
- package/lib/module/components/RowHeadlineImageIcon.js.map +0 -1
- package/lib/module/components/SVG.js.map +0 -1
- package/lib/module/components/ScreenContainer.js.map +0 -1
- package/lib/module/components/Slider.js.map +0 -1
- package/lib/module/components/StarRating.js.map +0 -1
- package/lib/module/components/StepIndicator.js.map +0 -1
- package/lib/module/components/Stepper.js.map +0 -1
- package/lib/module/components/Surface.js.map +0 -1
- package/lib/module/components/Swiper/Swiper.js.map +0 -1
- package/lib/module/components/Swiper/SwiperItem.js.map +0 -1
- package/lib/module/components/Swiper/index.js.map +0 -1
- package/lib/module/components/Switch.js.map +0 -1
- package/lib/module/components/Text.js.map +0 -1
- package/lib/module/components/TextField.js.map +0 -1
- package/lib/module/components/ToggleButton.js.map +0 -1
- package/lib/module/components/Touchable.js.map +0 -1
- package/lib/module/components/Touchable.web.js.map +0 -1
- package/lib/module/components/Typography.js.map +0 -1
- package/lib/module/components/useAuthState.js.map +0 -1
- package/lib/module/constants.js.map +0 -1
- package/lib/module/hooks.js.map +0 -1
- package/lib/module/index.js.map +0 -1
- package/lib/module/interfaces/Icon.js.map +0 -1
- package/lib/module/mappings/Accordion.js.map +0 -1
- package/lib/module/mappings/AccordionItem.js.map +0 -1
- package/lib/module/mappings/ActionSheet.js.map +0 -1
- package/lib/module/mappings/ActionSheetCancel.js.map +0 -1
- package/lib/module/mappings/ActionSheetItem.js.map +0 -1
- package/lib/module/mappings/ActivityIndicator.js.map +0 -1
- package/lib/module/mappings/AudioPlayer.js.map +0 -1
- package/lib/module/mappings/AvatarEdit.js.map +0 -1
- package/lib/module/mappings/Banner.js.map +0 -1
- package/lib/module/mappings/BlurView.js.map +0 -1
- package/lib/module/mappings/Button.js.map +0 -1
- package/lib/module/mappings/Card.js.map +0 -1
- package/lib/module/mappings/CardBlock.js.map +0 -1
- package/lib/module/mappings/CardContainer.js.map +0 -1
- package/lib/module/mappings/CardContainerRating.js.map +0 -1
- package/lib/module/mappings/CardContainerShortImage.js.map +0 -1
- package/lib/module/mappings/CardInline.js.map +0 -1
- package/lib/module/mappings/Carousel.js.map +0 -1
- package/lib/module/mappings/Checkbox.js.map +0 -1
- package/lib/module/mappings/CheckboxGroup.js.map +0 -1
- package/lib/module/mappings/CheckboxRow.js.map +0 -1
- package/lib/module/mappings/CircleImage.js.map +0 -1
- package/lib/module/mappings/Container.js.map +0 -1
- package/lib/module/mappings/CustomCode.js.map +0 -1
- package/lib/module/mappings/DatePicker.js.map +0 -1
- package/lib/module/mappings/Divider.js.map +0 -1
- package/lib/module/mappings/FAB.js.map +0 -1
- package/lib/module/mappings/Fetch.js.map +0 -1
- package/lib/module/mappings/FieldSearchBarFull.js.map +0 -1
- package/lib/module/mappings/FlashList.js.map +0 -1
- package/lib/module/mappings/FlatList.js.map +0 -1
- package/lib/module/mappings/HeaderLarge.js.map +0 -1
- package/lib/module/mappings/HeaderMedium.js.map +0 -1
- package/lib/module/mappings/HeaderOverline.js.map +0 -1
- package/lib/module/mappings/Icon.js.map +0 -1
- package/lib/module/mappings/IconButton.js.map +0 -1
- package/lib/module/mappings/Image.js.map +0 -1
- package/lib/module/mappings/ImageBackground.js.map +0 -1
- package/lib/module/mappings/KeyboardAvoidingView.js.map +0 -1
- package/lib/module/mappings/KeyboardAwareScrollView.js.map +0 -1
- package/lib/module/mappings/Layout.js.map +0 -1
- package/lib/module/mappings/LinearGradient.js.map +0 -1
- package/lib/module/mappings/MapCallout.js.map +0 -1
- package/lib/module/mappings/MapMarker.js.map +0 -1
- package/lib/module/mappings/MapView.js.map +0 -1
- package/lib/module/mappings/Modal.js.map +0 -1
- package/lib/module/mappings/NumberInput.js.map +0 -1
- package/lib/module/mappings/Picker.js.map +0 -1
- package/lib/module/mappings/ProgressBar.js.map +0 -1
- package/lib/module/mappings/ProgressCircle.js.map +0 -1
- package/lib/module/mappings/ProgressIndicator.js.map +0 -1
- package/lib/module/mappings/RadioButton.js.map +0 -1
- package/lib/module/mappings/RadioButtonGroup.js.map +0 -1
- package/lib/module/mappings/RadioButtonRow.js.map +0 -1
- package/lib/module/mappings/RowBodyIcon.js.map +0 -1
- package/lib/module/mappings/RowHeadlineImageCaption.js.map +0 -1
- package/lib/module/mappings/RowHeadlineImageIcon.js.map +0 -1
- package/lib/module/mappings/SVG.js.map +0 -1
- package/lib/module/mappings/SafeAreaView.js.map +0 -1
- package/lib/module/mappings/ScrollView.js.map +0 -1
- package/lib/module/mappings/Slider.js.map +0 -1
- package/lib/module/mappings/StarRating.js.map +0 -1
- package/lib/module/mappings/Stepper.js.map +0 -1
- package/lib/module/mappings/Surface.js.map +0 -1
- package/lib/module/mappings/Swiper.js.map +0 -1
- package/lib/module/mappings/SwiperItem.js.map +0 -1
- package/lib/module/mappings/Switch.js.map +0 -1
- package/lib/module/mappings/Text.js.map +0 -1
- package/lib/module/mappings/TextArea.js.map +0 -1
- package/lib/module/mappings/TextField.js.map +0 -1
- package/lib/module/mappings/TextInput.js.map +0 -1
- package/lib/module/mappings/ToggleButton.js.map +0 -1
- package/lib/module/mappings/Touchable.js.map +0 -1
- package/lib/module/mappings/Video.js.map +0 -1
- package/lib/module/mappings/View.js.map +0 -1
- package/lib/module/mappings/WebView.js.map +0 -1
- package/lib/module/styles/DarkTheme.js.map +0 -1
- package/lib/module/styles/DefaultTheme.js.map +0 -1
- package/lib/module/styles/fonts.js.map +0 -1
- package/lib/module/styles/overlay.js.map +0 -1
- package/lib/module/styles/shadow.js.map +0 -1
- package/lib/module/theming.js.map +0 -1
- package/lib/module/utilities.js.map +0 -1
|
@@ -8,16 +8,19 @@ import Portal from "../Portal/Portal";
|
|
|
8
8
|
import Button from "../DeprecatedButton";
|
|
9
9
|
import Touchable from "../Touchable";
|
|
10
10
|
import { extractStyles, extractBorderAndMarginStyles, borderStyleNames, marginStyleNames } from "../../utilities";
|
|
11
|
+
|
|
11
12
|
function normalizeOptions(options) {
|
|
12
13
|
if (options.length === 0) {
|
|
13
14
|
return [];
|
|
14
15
|
}
|
|
16
|
+
|
|
15
17
|
if (typeof options[0] === ("string" || "number")) {
|
|
16
18
|
return options.map(option => ({
|
|
17
19
|
label: String(option),
|
|
18
20
|
value: String(option)
|
|
19
21
|
}));
|
|
20
22
|
}
|
|
23
|
+
|
|
21
24
|
if (isObject(options[0]) && options[0].value !== null && options[0].label !== null) {
|
|
22
25
|
return options.map(option => {
|
|
23
26
|
return {
|
|
@@ -26,8 +29,10 @@ function normalizeOptions(options) {
|
|
|
26
29
|
};
|
|
27
30
|
});
|
|
28
31
|
}
|
|
32
|
+
|
|
29
33
|
throw new Error('Picker options must be either an array of strings or array of { "label": string; "value": string; } objects.');
|
|
30
34
|
}
|
|
35
|
+
|
|
31
36
|
const {
|
|
32
37
|
width: deviceWidth,
|
|
33
38
|
height: deviceHeight
|
|
@@ -36,8 +41,10 @@ const isIos = Platform.OS === "ios";
|
|
|
36
41
|
const unstyledColor = "rgba(165, 173, 183, 1)";
|
|
37
42
|
const disabledColor = "rgb(240, 240, 240)";
|
|
38
43
|
const errorColor = "rgba(255, 69, 100, 1)";
|
|
44
|
+
|
|
39
45
|
const Picker = _ref => {
|
|
40
|
-
var _find;
|
|
46
|
+
var _find$label, _find;
|
|
47
|
+
|
|
41
48
|
let {
|
|
42
49
|
error,
|
|
43
50
|
options = [],
|
|
@@ -62,9 +69,11 @@ const Picker = _ref => {
|
|
|
62
69
|
const androidPickerRef = React.useRef(undefined);
|
|
63
70
|
const [internalValue, setInternalValue] = React.useState(value || defaultValue);
|
|
64
71
|
const [pickerVisible, setPickerVisible] = React.useState(false);
|
|
72
|
+
|
|
65
73
|
const togglePickerVisible = () => {
|
|
66
74
|
setPickerVisible(!pickerVisible);
|
|
67
75
|
};
|
|
76
|
+
|
|
68
77
|
React.useEffect(() => {
|
|
69
78
|
if (value != null) {
|
|
70
79
|
setInternalValue(value);
|
|
@@ -78,6 +87,7 @@ const Picker = _ref => {
|
|
|
78
87
|
React.useEffect(() => {
|
|
79
88
|
if (pickerVisible && androidPickerRef.current) {
|
|
80
89
|
var _androidPickerRef$cur;
|
|
90
|
+
|
|
81
91
|
androidPickerRef === null || androidPickerRef === void 0 ? void 0 : (_androidPickerRef$cur = androidPickerRef.current) === null || _androidPickerRef$cur === void 0 ? void 0 : _androidPickerRef$cur.focus();
|
|
82
92
|
}
|
|
83
93
|
}, [pickerVisible, androidPickerRef]);
|
|
@@ -99,9 +109,7 @@ const Picker = _ref => {
|
|
|
99
109
|
borderStyles: extractedBorderStyles,
|
|
100
110
|
marginStyles: extractedMarginStyles
|
|
101
111
|
} = extractBorderAndMarginStyles(viewStyles, additionalBorderStyles, additionalMarginStyles);
|
|
102
|
-
const borderStyles = {
|
|
103
|
-
...{
|
|
104
|
-
...(type === "solid" ? {
|
|
112
|
+
const borderStyles = { ...{ ...(type === "solid" ? {
|
|
105
113
|
borderTopLeftRadius: 5,
|
|
106
114
|
borderTopRightRadius: 5,
|
|
107
115
|
borderBottomRightRadius: 5,
|
|
@@ -128,7 +136,7 @@ const Picker = _ref => {
|
|
|
128
136
|
...extractedMarginStyles
|
|
129
137
|
};
|
|
130
138
|
const stylesWithoutBordersAndMargins = omit(viewStyles, [...borderStyleNames, ...marginStyleNames, ...additionalBorderStyles, ...additionalMarginStyles]);
|
|
131
|
-
const selectedLabel = internalValue && (((_find = pickerOptions.find(option => option.value === internalValue)) === null || _find === void 0 ? void 0 : _find.label)
|
|
139
|
+
const selectedLabel = internalValue && ((_find$label = (_find = pickerOptions.find(option => option.value === internalValue)) === null || _find === void 0 ? void 0 : _find.label) !== null && _find$label !== void 0 ? _find$label : internalValue);
|
|
132
140
|
const labelText = label ? /*#__PURE__*/React.createElement(Text, {
|
|
133
141
|
style: {
|
|
134
142
|
textAlign: textStyles.textAlign,
|
|
@@ -157,15 +165,19 @@ const Picker = _ref => {
|
|
|
157
165
|
}
|
|
158
166
|
}) : null;
|
|
159
167
|
const textAlign = textStyles === null || textStyles === void 0 ? void 0 : textStyles.textAlign;
|
|
168
|
+
|
|
160
169
|
const calculateLeftPadding = () => {
|
|
161
170
|
if (leftIconOutset) {
|
|
162
171
|
if (textAlign === "center") {
|
|
163
172
|
return iconSize - Math.abs(8 - iconSize);
|
|
164
173
|
}
|
|
174
|
+
|
|
165
175
|
return iconSize + 8;
|
|
166
176
|
}
|
|
177
|
+
|
|
167
178
|
return 0;
|
|
168
179
|
};
|
|
180
|
+
|
|
169
181
|
const assistiveTextLabel = assistiveText ? /*#__PURE__*/React.createElement(Text, {
|
|
170
182
|
style: {
|
|
171
183
|
textAlign,
|
|
@@ -187,14 +199,18 @@ const Picker = _ref => {
|
|
|
187
199
|
color: unstyledColor
|
|
188
200
|
} : {})
|
|
189
201
|
};
|
|
202
|
+
|
|
190
203
|
const handleValueChange = (newValue, itemIndex) => {
|
|
191
204
|
if (!placeholder || itemIndex > 0) {
|
|
192
205
|
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(newValue, itemIndex);
|
|
193
206
|
}
|
|
207
|
+
|
|
194
208
|
setInternalValue(newValue);
|
|
195
209
|
};
|
|
210
|
+
|
|
196
211
|
return (
|
|
197
212
|
/*#__PURE__*/
|
|
213
|
+
|
|
198
214
|
/* marginsContainer */
|
|
199
215
|
React.createElement(View, {
|
|
200
216
|
style: [styles.marginsContainer, marginStyles]
|
|
@@ -211,7 +227,7 @@ const Picker = _ref => {
|
|
|
211
227
|
style: styles.primaryTextContainer
|
|
212
228
|
}, labelText, /*#__PURE__*/React.createElement(Text, {
|
|
213
229
|
style: primaryTextStyle
|
|
214
|
-
}, String(selectedLabel
|
|
230
|
+
}, String(selectedLabel !== null && selectedLabel !== void 0 ? selectedLabel : placeholder))), rightIcon)), assistiveTextLabel), isIos && pickerVisible ? /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(View, {
|
|
215
231
|
style: [styles.iosPicker, {
|
|
216
232
|
backgroundColor: colors.divider
|
|
217
233
|
}]
|
|
@@ -244,6 +260,7 @@ const Picker = _ref => {
|
|
|
244
260
|
}))) : null)
|
|
245
261
|
);
|
|
246
262
|
};
|
|
263
|
+
|
|
247
264
|
const styles = StyleSheet.create({
|
|
248
265
|
marginsContainer: {
|
|
249
266
|
alignSelf: "stretch",
|
|
@@ -314,5 +331,4 @@ const styles = StyleSheet.create({
|
|
|
314
331
|
maxHeight: deviceHeight
|
|
315
332
|
}
|
|
316
333
|
});
|
|
317
|
-
export default withTheme(Picker);
|
|
318
|
-
//# sourceMappingURL=Picker.js.map
|
|
334
|
+
export default withTheme(Picker);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
|
|
1
3
|
import * as React from "react";
|
|
2
4
|
import { View, StyleSheet } from "react-native";
|
|
3
5
|
import omit from "lodash.omit";
|
|
@@ -6,7 +8,10 @@ import { Picker as NativePicker } from "@react-native-picker/picker";
|
|
|
6
8
|
import { extractStyles } from "../../utilities";
|
|
7
9
|
import TextField from "../TextField";
|
|
8
10
|
import Touchable from "../Touchable";
|
|
11
|
+
|
|
9
12
|
const Picker = _ref => {
|
|
13
|
+
var _options$find$label, _options$find;
|
|
14
|
+
|
|
10
15
|
let {
|
|
11
16
|
style,
|
|
12
17
|
options,
|
|
@@ -16,7 +21,6 @@ const Picker = _ref => {
|
|
|
16
21
|
onValueChange: onValueChangeOverride = () => {},
|
|
17
22
|
...props
|
|
18
23
|
} = _ref;
|
|
19
|
-
var _a, _b;
|
|
20
24
|
const {
|
|
21
25
|
viewStyles: {
|
|
22
26
|
borderRadius,
|
|
@@ -49,10 +53,12 @@ const Picker = _ref => {
|
|
|
49
53
|
}
|
|
50
54
|
} = extractStyles(style);
|
|
51
55
|
const textField = React.useRef(undefined);
|
|
56
|
+
|
|
52
57
|
const onValueChange = (itemValue, itemIndex) => {
|
|
53
58
|
toggleFocus();
|
|
54
59
|
onValueChangeOverride(itemValue, itemIndex);
|
|
55
60
|
};
|
|
61
|
+
|
|
56
62
|
const toggleFocus = () => {
|
|
57
63
|
if (!disabled) {
|
|
58
64
|
// @ts-ignore
|
|
@@ -61,7 +67,7 @@ const Picker = _ref => {
|
|
|
61
67
|
};
|
|
62
68
|
|
|
63
69
|
const stylesWithoutMargin = style && omit(StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
|
|
64
|
-
const selectedLabel = selectedValue && ((
|
|
70
|
+
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);
|
|
65
71
|
return /*#__PURE__*/React.createElement(Touchable, {
|
|
66
72
|
disabled: disabled,
|
|
67
73
|
onPress: toggleFocus,
|
|
@@ -85,39 +91,21 @@ const Picker = _ref => {
|
|
|
85
91
|
key: o.value
|
|
86
92
|
}))), /*#__PURE__*/React.createElement(View, {
|
|
87
93
|
pointerEvents: "none"
|
|
88
|
-
}, /*#__PURE__*/React.createElement(TextField, {
|
|
89
|
-
...props,
|
|
94
|
+
}, /*#__PURE__*/React.createElement(TextField, _extends({}, props, {
|
|
90
95
|
value: selectedLabel,
|
|
91
|
-
placeholder: placeholder
|
|
92
|
-
// @ts-ignore
|
|
93
|
-
ref: textField,
|
|
94
|
-
disabled: disabled,
|
|
95
|
-
// @ts-expect-error
|
|
96
|
-
style: stylesWithoutMargin
|
|
97
|
-
}))));
|
|
98
|
-
};
|
|
99
|
-
const styles = StyleSheet.create({
|
|
100
|
-
container: {
|
|
101
|
-
alignSelf: "stretch"
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
export default withTheme(Picker);
|
|
105
|
-
//# sourceMappingURL=PickerComponent.android.js.map value: selectedLabel,
|
|
106
|
-
placeholder: placeholder
|
|
107
|
-
// @ts-ignore
|
|
96
|
+
placeholder: placeholder // @ts-ignore
|
|
108
97
|
,
|
|
109
98
|
ref: textField // cannot determine if ref is of correct type due to component being wrapped in a withTheme()
|
|
110
99
|
,
|
|
111
|
-
disabled: disabled
|
|
112
|
-
// @ts-expect-error
|
|
100
|
+
disabled: disabled // @ts-expect-error
|
|
113
101
|
,
|
|
114
102
|
style: stylesWithoutMargin
|
|
115
103
|
})))));
|
|
116
104
|
};
|
|
105
|
+
|
|
117
106
|
const styles = StyleSheet.create({
|
|
118
107
|
container: {
|
|
119
108
|
alignSelf: "stretch"
|
|
120
109
|
}
|
|
121
110
|
});
|
|
122
|
-
export default withTheme(Picker);
|
|
123
|
-
//# sourceMappingURL=PickerComponent.android.js.map
|
|
111
|
+
export default withTheme(Picker);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
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); }
|
|
2
|
+
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
import { View, StyleSheet } from "react-native";
|
|
4
5
|
import { SafeAreaView } from "react-native-safe-area-context";
|
|
@@ -10,8 +11,10 @@ import Button from "../DeprecatedButton";
|
|
|
10
11
|
import TextField from "../TextField";
|
|
11
12
|
import Touchable from "../Touchable";
|
|
12
13
|
import { extractStyles } from "../../utilities";
|
|
14
|
+
|
|
13
15
|
const Picker = _ref => {
|
|
14
|
-
var _options$find;
|
|
16
|
+
var _options$find$label, _options$find;
|
|
17
|
+
|
|
15
18
|
let {
|
|
16
19
|
Icon,
|
|
17
20
|
style,
|
|
@@ -58,14 +61,15 @@ const Picker = _ref => {
|
|
|
58
61
|
} = extractStyles(style);
|
|
59
62
|
const textField = React.useRef(undefined);
|
|
60
63
|
const [pickerVisible, setIsPickerVisible] = React.useState(false);
|
|
64
|
+
|
|
61
65
|
const toggleVisibility = () => {
|
|
62
|
-
setIsPickerVisible(!pickerVisible);
|
|
63
|
-
|
|
66
|
+
setIsPickerVisible(!pickerVisible); // @ts-ignore
|
|
67
|
+
|
|
64
68
|
textField.current.toggleFocus(); // cannot determine if method exists due to component being wrapped in a withTheme()
|
|
65
69
|
};
|
|
66
70
|
|
|
67
71
|
const stylesWithoutMargin = style && omit(StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
|
|
68
|
-
const selectedLabel = selectedValue && (((_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label)
|
|
72
|
+
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);
|
|
69
73
|
return /*#__PURE__*/React.createElement(View, {
|
|
70
74
|
style: [styles.container, viewStyles]
|
|
71
75
|
}, /*#__PURE__*/React.createElement(Touchable, {
|
|
@@ -73,14 +77,12 @@ const Picker = _ref => {
|
|
|
73
77
|
onPress: toggleVisibility
|
|
74
78
|
}, /*#__PURE__*/React.createElement(TextField, _extends({}, props, {
|
|
75
79
|
value: String(selectedLabel),
|
|
76
|
-
placeholder: placeholder
|
|
77
|
-
// @ts-ignore
|
|
80
|
+
placeholder: placeholder // @ts-ignore
|
|
78
81
|
,
|
|
79
82
|
ref: textField // cannot determine if ref is of correct type due to component being wrapped in a withTheme()
|
|
80
83
|
,
|
|
81
84
|
disabled: disabled,
|
|
82
|
-
pointerEvents: "none"
|
|
83
|
-
// @ts-expect-error
|
|
85
|
+
pointerEvents: "none" // @ts-expect-error
|
|
84
86
|
,
|
|
85
87
|
style: stylesWithoutMargin,
|
|
86
88
|
Icon: Icon
|
|
@@ -107,6 +109,7 @@ const Picker = _ref => {
|
|
|
107
109
|
key: o.value
|
|
108
110
|
})))))));
|
|
109
111
|
};
|
|
112
|
+
|
|
110
113
|
const styles = StyleSheet.create({
|
|
111
114
|
container: {
|
|
112
115
|
alignSelf: "stretch"
|
|
@@ -128,5 +131,4 @@ const styles = StyleSheet.create({
|
|
|
128
131
|
alignSelf: "flex-end"
|
|
129
132
|
}
|
|
130
133
|
});
|
|
131
|
-
export default withTheme(Picker);
|
|
132
|
-
//# sourceMappingURL=PickerComponent.ios.js.map
|
|
134
|
+
export default withTheme(Picker);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
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); }
|
|
2
|
+
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
import { View, StyleSheet } from "react-native";
|
|
4
5
|
import { Picker as NativePicker } from "@react-native-picker/picker";
|
|
@@ -7,8 +8,10 @@ import { withTheme } from "../../theming";
|
|
|
7
8
|
import { extractStyles } from "../../utilities";
|
|
8
9
|
import TextField from "../TextField";
|
|
9
10
|
import Touchable from "../Touchable";
|
|
11
|
+
|
|
10
12
|
const Picker = _ref => {
|
|
11
|
-
var _options$find;
|
|
13
|
+
var _options$find$label, _options$find;
|
|
14
|
+
|
|
12
15
|
let {
|
|
13
16
|
style,
|
|
14
17
|
options,
|
|
@@ -50,10 +53,12 @@ const Picker = _ref => {
|
|
|
50
53
|
}
|
|
51
54
|
} = extractStyles(style);
|
|
52
55
|
const textField = React.useRef(undefined);
|
|
56
|
+
|
|
53
57
|
const onValueChange = (itemValue, itemIndex) => {
|
|
54
58
|
toggleFocus();
|
|
55
59
|
onValueChangeOverride(itemValue, itemIndex);
|
|
56
60
|
};
|
|
61
|
+
|
|
57
62
|
const toggleFocus = () => {
|
|
58
63
|
if (!disabled) {
|
|
59
64
|
// @ts-ignore
|
|
@@ -62,7 +67,7 @@ const Picker = _ref => {
|
|
|
62
67
|
};
|
|
63
68
|
|
|
64
69
|
const stylesWithoutMargin = style && omit(StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
|
|
65
|
-
const selectedLabel = selectedValue && (((_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label)
|
|
70
|
+
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);
|
|
66
71
|
return /*#__PURE__*/React.createElement(Touchable, {
|
|
67
72
|
disabled: disabled,
|
|
68
73
|
onPress: toggleFocus,
|
|
@@ -89,21 +94,19 @@ const Picker = _ref => {
|
|
|
89
94
|
pointerEvents: "none"
|
|
90
95
|
}, /*#__PURE__*/React.createElement(TextField, _extends({}, props, {
|
|
91
96
|
value: selectedLabel,
|
|
92
|
-
placeholder: placeholder
|
|
93
|
-
// @ts-ignore
|
|
97
|
+
placeholder: placeholder // @ts-ignore
|
|
94
98
|
,
|
|
95
99
|
ref: textField // cannot determine if ref is of correct type due to component being wrapped in a withTheme()
|
|
96
100
|
,
|
|
97
|
-
disabled: disabled
|
|
98
|
-
// @ts-expect-error
|
|
101
|
+
disabled: disabled // @ts-expect-error
|
|
99
102
|
,
|
|
100
103
|
style: stylesWithoutMargin
|
|
101
104
|
})))));
|
|
102
105
|
};
|
|
106
|
+
|
|
103
107
|
const styles = StyleSheet.create({
|
|
104
108
|
container: {
|
|
105
109
|
alignSelf: "stretch"
|
|
106
110
|
}
|
|
107
111
|
});
|
|
108
|
-
export default withTheme(Picker);
|
|
109
|
-
//# sourceMappingURL=PickerComponent.web.js.map
|
|
112
|
+
export default withTheme(Picker);
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=PickerTypes.js.map
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) {
|
|
2
|
-
|
|
3
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1
|
+
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; }
|
|
2
|
+
|
|
4
3
|
import * as React from "react";
|
|
5
4
|
import PortalConsumer from "./PortalConsumer";
|
|
6
5
|
import PortalHost, { PortalContext } from "./PortalHost";
|
|
7
6
|
import { ThemeProvider, withTheme } from "../../theming";
|
|
7
|
+
|
|
8
8
|
/**
|
|
9
9
|
* Portal allows to render a component at a different place in the parent tree.
|
|
10
10
|
* You can use it to render content which should appear above other elements, similar to `Modal`.
|
|
@@ -28,7 +28,6 @@ import { ThemeProvider, withTheme } from "../../theming";
|
|
|
28
28
|
*/
|
|
29
29
|
class Portal extends React.Component {
|
|
30
30
|
// @component ./PortalHost.tsx
|
|
31
|
-
|
|
32
31
|
render() {
|
|
33
32
|
const {
|
|
34
33
|
children,
|
|
@@ -40,7 +39,9 @@ class Portal extends React.Component {
|
|
|
40
39
|
theme: theme
|
|
41
40
|
}, children)));
|
|
42
41
|
}
|
|
42
|
+
|
|
43
43
|
}
|
|
44
|
+
|
|
44
45
|
_defineProperty(Portal, "Host", PortalHost);
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
|
|
47
|
+
export default withTheme(Portal);
|
|
@@ -1,34 +1,38 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) {
|
|
2
|
-
|
|
3
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1
|
+
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; }
|
|
2
|
+
|
|
4
3
|
import * as React from "react";
|
|
5
4
|
export default class PortalConsumer extends React.Component {
|
|
6
5
|
constructor() {
|
|
7
6
|
super(...arguments);
|
|
7
|
+
|
|
8
8
|
_defineProperty(this, "key", void 0);
|
|
9
9
|
}
|
|
10
|
+
|
|
10
11
|
async componentDidMount() {
|
|
11
|
-
this.checkManager();
|
|
12
|
+
this.checkManager(); // Delay updating to prevent React from going to infinite loop
|
|
12
13
|
|
|
13
|
-
// Delay updating to prevent React from going to infinite loop
|
|
14
14
|
await Promise.resolve();
|
|
15
15
|
this.key = this.props.manager.mount(this.props.children);
|
|
16
16
|
}
|
|
17
|
+
|
|
17
18
|
componentDidUpdate() {
|
|
18
19
|
this.checkManager();
|
|
19
20
|
this.props.manager.update(this.key, this.props.children);
|
|
20
21
|
}
|
|
22
|
+
|
|
21
23
|
componentWillUnmount() {
|
|
22
24
|
this.checkManager();
|
|
23
25
|
this.props.manager.unmount(this.key);
|
|
24
26
|
}
|
|
27
|
+
|
|
25
28
|
checkManager() {
|
|
26
29
|
if (!this.props.manager) {
|
|
27
30
|
throw new Error("Looks like you forgot to wrap your root component with `Provider` 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");
|
|
28
31
|
}
|
|
29
32
|
}
|
|
33
|
+
|
|
30
34
|
render() {
|
|
31
35
|
return null;
|
|
32
36
|
}
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
|
|
38
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) {
|
|
2
|
-
|
|
3
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1
|
+
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; }
|
|
2
|
+
|
|
4
3
|
import * as React from "react";
|
|
5
4
|
import { View, StyleSheet } from "react-native";
|
|
6
5
|
import PortalManager from "./PortalManager";
|
|
7
6
|
export const PortalContext = /*#__PURE__*/React.createContext(null);
|
|
8
|
-
|
|
9
7
|
/**
|
|
10
8
|
* Portal host renders all of its children `Portal` elements.
|
|
11
9
|
* For example, you can wrap a screen in `Portal.Host` to render items above the screen.
|
|
@@ -30,14 +28,18 @@ export const PortalContext = /*#__PURE__*/React.createContext(null);
|
|
|
30
28
|
*
|
|
31
29
|
* Here any `Portal` elements under `<App />` are rendered alongside `<App />` and will appear above `<App />` like a `Modal`.
|
|
32
30
|
*/
|
|
31
|
+
|
|
33
32
|
export default class PortalHost extends React.Component {
|
|
34
33
|
constructor() {
|
|
35
34
|
super(...arguments);
|
|
35
|
+
|
|
36
36
|
_defineProperty(this, "setManager", manager => {
|
|
37
37
|
this.manager = manager;
|
|
38
38
|
});
|
|
39
|
+
|
|
39
40
|
_defineProperty(this, "mount", children => {
|
|
40
41
|
const key = this.nextKey++;
|
|
42
|
+
|
|
41
43
|
if (this.manager) {
|
|
42
44
|
this.manager.mount(key, children);
|
|
43
45
|
} else {
|
|
@@ -47,8 +49,10 @@ export default class PortalHost extends React.Component {
|
|
|
47
49
|
children
|
|
48
50
|
});
|
|
49
51
|
}
|
|
52
|
+
|
|
50
53
|
return key;
|
|
51
54
|
});
|
|
55
|
+
|
|
52
56
|
_defineProperty(this, "update", (key, children) => {
|
|
53
57
|
if (this.manager) {
|
|
54
58
|
this.manager.update(key, children);
|
|
@@ -59,6 +63,7 @@ export default class PortalHost extends React.Component {
|
|
|
59
63
|
children
|
|
60
64
|
};
|
|
61
65
|
const index = this.queue.findIndex(o => o.type === "mount" || o.type === "update" && o.key === key);
|
|
66
|
+
|
|
62
67
|
if (index > -1) {
|
|
63
68
|
// @ts-ignore
|
|
64
69
|
this.queue[index] = op;
|
|
@@ -67,6 +72,7 @@ export default class PortalHost extends React.Component {
|
|
|
67
72
|
}
|
|
68
73
|
}
|
|
69
74
|
});
|
|
75
|
+
|
|
70
76
|
_defineProperty(this, "unmount", key => {
|
|
71
77
|
if (this.manager) {
|
|
72
78
|
this.manager.unmount(key);
|
|
@@ -77,23 +83,31 @@ export default class PortalHost extends React.Component {
|
|
|
77
83
|
});
|
|
78
84
|
}
|
|
79
85
|
});
|
|
86
|
+
|
|
80
87
|
_defineProperty(this, "nextKey", 0);
|
|
88
|
+
|
|
81
89
|
_defineProperty(this, "queue", []);
|
|
90
|
+
|
|
82
91
|
_defineProperty(this, "manager", void 0);
|
|
83
92
|
}
|
|
93
|
+
|
|
84
94
|
componentDidMount() {
|
|
85
95
|
const manager = this.manager;
|
|
86
96
|
const queue = this.queue;
|
|
97
|
+
|
|
87
98
|
while (queue.length && manager) {
|
|
88
99
|
const action = queue.pop();
|
|
100
|
+
|
|
89
101
|
if (action) {
|
|
90
102
|
switch (action.type) {
|
|
91
103
|
case "mount":
|
|
92
104
|
manager.mount(action.key, action.children);
|
|
93
105
|
break;
|
|
106
|
+
|
|
94
107
|
case "update":
|
|
95
108
|
manager.update(action.key, action.children);
|
|
96
109
|
break;
|
|
110
|
+
|
|
97
111
|
case "unmount":
|
|
98
112
|
manager.unmount(action.key);
|
|
99
113
|
break;
|
|
@@ -101,6 +115,7 @@ export default class PortalHost extends React.Component {
|
|
|
101
115
|
}
|
|
102
116
|
}
|
|
103
117
|
}
|
|
118
|
+
|
|
104
119
|
render() {
|
|
105
120
|
return /*#__PURE__*/React.createElement(PortalContext.Provider, {
|
|
106
121
|
value: {
|
|
@@ -116,11 +131,13 @@ export default class PortalHost extends React.Component {
|
|
|
116
131
|
ref: this.setManager
|
|
117
132
|
}));
|
|
118
133
|
}
|
|
134
|
+
|
|
119
135
|
}
|
|
136
|
+
|
|
120
137
|
_defineProperty(PortalHost, "displayName", "Portal.Host");
|
|
138
|
+
|
|
121
139
|
const styles = StyleSheet.create({
|
|
122
140
|
container: {
|
|
123
141
|
flex: 1
|
|
124
142
|
}
|
|
125
|
-
});
|
|
126
|
-
//# sourceMappingURL=PortalHost.js.map
|
|
143
|
+
});
|
|
@@ -1,67 +1,45 @@
|
|
|
1
|
+
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; }
|
|
2
|
+
|
|
1
3
|
import * as React from "react";
|
|
2
4
|
import { View, StyleSheet } from "react-native";
|
|
5
|
+
|
|
3
6
|
/**
|
|
4
7
|
* Portal host is the component which actually renders all Portals.
|
|
5
8
|
*/
|
|
6
9
|
export default class PortalManager extends React.PureComponent {
|
|
7
10
|
constructor() {
|
|
8
11
|
super(...arguments);
|
|
9
|
-
|
|
12
|
+
|
|
13
|
+
_defineProperty(this, "state", {
|
|
10
14
|
portals: []
|
|
11
|
-
};
|
|
12
|
-
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
_defineProperty(this, "mount", (key, children) => {
|
|
13
18
|
this.setState(state => ({
|
|
14
19
|
portals: [...state.portals, {
|
|
15
20
|
key,
|
|
16
21
|
children
|
|
17
22
|
}]
|
|
18
23
|
}));
|
|
19
|
-
};
|
|
20
|
-
this.update = (key, children) => this.setState(state => ({
|
|
21
|
-
portals: state.portals.map(item => {
|
|
22
|
-
if (item.key === key) {
|
|
23
|
-
return {
|
|
24
|
-
...item,
|
|
25
|
-
children
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
return item;
|
|
29
|
-
})
|
|
30
|
-
}));
|
|
31
|
-
this.unmount = key => this.setState(state => ({
|
|
32
|
-
portals: state.portals.filter(item => item.key !== key)
|
|
33
|
-
}));
|
|
34
|
-
}
|
|
35
|
-
render() {
|
|
36
|
-
return this.state.portals.map(_ref => {
|
|
37
|
-
let {
|
|
38
|
-
key,
|
|
39
|
-
children
|
|
40
|
-
} = _ref;
|
|
41
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
42
|
-
key: key,
|
|
43
|
-
collapsable: false /* Need collapsable=false here to clip the elevations, otherwise they appear above sibling components */,
|
|
44
|
-
pointerEvents: "box-none",
|
|
45
|
-
style: StyleSheet.absoluteFill
|
|
46
|
-
}, children);
|
|
47
24
|
});
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
//# sourceMappingURL=PortalManager.js.map
|
|
25
|
+
|
|
26
|
+
_defineProperty(this, "update", (key, children) => this.setState(state => ({
|
|
51
27
|
portals: state.portals.map(item => {
|
|
52
28
|
if (item.key === key) {
|
|
53
|
-
return {
|
|
54
|
-
...item,
|
|
29
|
+
return { ...item,
|
|
55
30
|
children
|
|
56
31
|
};
|
|
57
32
|
}
|
|
33
|
+
|
|
58
34
|
return item;
|
|
59
35
|
})
|
|
60
36
|
})));
|
|
37
|
+
|
|
61
38
|
_defineProperty(this, "unmount", key => this.setState(state => ({
|
|
62
39
|
portals: state.portals.filter(item => item.key !== key)
|
|
63
40
|
})));
|
|
64
41
|
}
|
|
42
|
+
|
|
65
43
|
render() {
|
|
66
44
|
return this.state.portals.map(_ref => {
|
|
67
45
|
let {
|
|
@@ -70,12 +48,13 @@ export default class PortalManager extends React.PureComponent {
|
|
|
70
48
|
} = _ref;
|
|
71
49
|
return /*#__PURE__*/React.createElement(View, {
|
|
72
50
|
key: key,
|
|
73
|
-
collapsable: false
|
|
74
|
-
|
|
51
|
+
collapsable: false
|
|
52
|
+
/* Need collapsable=false here to clip the elevations, otherwise they appear above sibling components */
|
|
53
|
+
,
|
|
75
54
|
pointerEvents: "box-none",
|
|
76
55
|
style: StyleSheet.absoluteFill
|
|
77
56
|
}, children);
|
|
78
57
|
});
|
|
79
58
|
}
|
|
80
|
-
|
|
81
|
-
|
|
59
|
+
|
|
60
|
+
}
|