@draftbit/core 47.0.0-df8093.2 → 47.0.0
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 +1 -2
- package/lib/commonjs/components/Accordion/AccordionGroup.js +1 -2
- package/lib/commonjs/components/Accordion/AccordionItem.js +1 -2
- package/lib/commonjs/components/Accordion/index.js +1 -2
- package/lib/commonjs/components/ActionSheet/ActionSheet.js +1 -2
- package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js +1 -2
- package/lib/commonjs/components/ActionSheet/ActionSheetItem.js +1 -2
- package/lib/commonjs/components/ActionSheet/index.js +1 -2
- package/lib/commonjs/components/AnimatedCircularProgress.js +66 -0
- package/lib/commonjs/components/AspectRatio.js +50 -0
- package/lib/commonjs/components/AvatarEdit.js +59 -0
- package/lib/commonjs/components/Banner.js +1 -2
- package/lib/commonjs/components/Button.js +1 -2
- package/lib/commonjs/components/Card.js +137 -0
- package/lib/commonjs/components/CardBlock.js +106 -0
- package/lib/commonjs/components/CardContainer.js +129 -0
- package/lib/commonjs/components/CardContainerRating.js +133 -0
- package/lib/commonjs/components/CardContainerShortImage.js +84 -0
- package/lib/commonjs/components/CardInline.js +91 -0
- package/lib/commonjs/components/Carousel.js +130 -0
- package/lib/commonjs/components/Checkbox/Checkbox.js +1 -2
- package/lib/commonjs/components/Checkbox/CheckboxGroup.js +1 -2
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +1 -2
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -2
- package/lib/commonjs/components/Checkbox/context.js +1 -2
- package/lib/commonjs/components/Checkbox/index.js +1 -2
- package/lib/commonjs/components/CircleImage.js +35 -0
- package/lib/commonjs/components/CircularProgress.js +112 -0
- package/lib/commonjs/components/Config.js +4 -5
- package/lib/commonjs/components/Container.js +93 -0
- package/lib/commonjs/components/DatePicker/DatePicker.js +23 -14
- package/lib/commonjs/components/DatePicker/DatePickerComponent.js +1 -2
- package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js +1 -2
- package/lib/commonjs/components/DatePicker/DatePickerComponentType.js +1 -2
- package/lib/commonjs/components/DeprecatedButton.js +1 -2
- package/lib/commonjs/components/DeprecatedCardWrapper.js +40 -0
- package/lib/commonjs/components/DeprecatedFAB.js +158 -0
- package/lib/commonjs/components/Divider.js +30 -0
- package/lib/commonjs/components/Elevation.js +1 -2
- package/lib/commonjs/components/FAB.js +82 -0
- package/lib/commonjs/components/FieldSearchBarFull.js +97 -0
- package/lib/commonjs/components/FormRow.js +1 -2
- package/lib/commonjs/components/Header.js +82 -0
- package/lib/commonjs/components/HeaderLarge.js +38 -0
- package/lib/commonjs/components/HeaderMedium.js +38 -0
- package/lib/commonjs/components/HeaderOverline.js +39 -0
- package/lib/commonjs/components/IconButton.js +1 -2
- package/lib/commonjs/components/Image.js +81 -0
- package/lib/commonjs/components/Justification.js +1 -0
- package/lib/commonjs/components/Layout.js +1 -2
- package/lib/commonjs/components/NumberInput.js +1 -2
- package/lib/commonjs/components/Picker/Picker.js +5 -6
- package/lib/commonjs/components/Picker/PickerComponent.android.js +3 -4
- package/lib/commonjs/components/Picker/PickerComponent.ios.js +3 -4
- package/lib/commonjs/components/Picker/PickerComponent.web.js +3 -4
- package/lib/commonjs/components/Picker/PickerTypes.js +1 -2
- package/lib/commonjs/components/Portal/Portal.js +1 -2
- package/lib/commonjs/components/Portal/PortalConsumer.js +1 -2
- package/lib/commonjs/components/Portal/PortalHost.js +1 -2
- package/lib/commonjs/components/Portal/PortalManager.js +1 -2
- package/lib/commonjs/components/ProgressBar.js +158 -0
- package/lib/commonjs/components/ProgressCircle.js +48 -0
- package/lib/commonjs/components/ProgressIndicator.js +55 -0
- package/lib/commonjs/components/RadioButton/RadioButton.js +2 -3
- package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +1 -2
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +1 -2
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js +2 -3
- package/lib/commonjs/components/RadioButton/context.js +1 -2
- package/lib/commonjs/components/RadioButton/index.js +1 -2
- package/lib/commonjs/components/ResizeMode.js +1 -0
- package/lib/commonjs/components/Row.js +73 -0
- package/lib/commonjs/components/RowBodyIcon.js +45 -0
- package/lib/commonjs/components/RowHeadlineImageCaption.js +45 -0
- package/lib/commonjs/components/RowHeadlineImageIcon.js +51 -0
- package/lib/commonjs/components/SVG.js +1 -2
- package/lib/commonjs/components/ScreenContainer.js +1 -2
- package/lib/commonjs/components/Slider.js +1 -2
- package/lib/commonjs/components/StarRating.js +1 -2
- package/lib/commonjs/components/StepIndicator.js +385 -0
- package/lib/commonjs/components/Stepper.js +9 -7
- package/lib/commonjs/components/Surface.js +1 -2
- package/lib/commonjs/components/Swiper/Swiper.js +1 -2
- package/lib/commonjs/components/Swiper/SwiperItem.js +1 -2
- package/lib/commonjs/components/Swiper/index.js +1 -2
- package/lib/commonjs/components/Switch.js +1 -2
- package/lib/commonjs/components/Text.js +1 -2
- package/lib/commonjs/components/TextField.js +1 -2
- package/lib/commonjs/components/ToggleButton.js +71 -0
- package/lib/commonjs/components/Touchable.js +1 -2
- package/lib/commonjs/components/Touchable.web.js +1 -2
- package/lib/commonjs/components/Typography.js +58 -0
- package/lib/commonjs/components/useAuthState.js +28 -0
- package/lib/commonjs/constants.js +1 -2
- package/lib/commonjs/hooks.js +1 -2
- package/lib/commonjs/index.js +194 -16
- package/lib/commonjs/interfaces/Icon.js +1 -2
- package/lib/commonjs/mappings/Accordion.js +1 -2
- package/lib/commonjs/mappings/AccordionItem.js +1 -2
- package/lib/commonjs/mappings/ActionSheet.js +1 -2
- package/lib/commonjs/mappings/ActionSheetCancel.js +1 -2
- package/lib/commonjs/mappings/ActionSheetItem.js +1 -2
- package/lib/commonjs/mappings/ActivityIndicator.js +1 -2
- package/lib/commonjs/mappings/AudioPlayer.js +33 -4
- package/lib/commonjs/mappings/AvatarEdit.js +45 -0
- package/lib/commonjs/mappings/Banner.js +39 -0
- package/lib/commonjs/mappings/BlurView.js +1 -2
- package/lib/commonjs/mappings/Button.js +1 -2
- package/lib/commonjs/mappings/Card.js +60 -0
- package/lib/commonjs/mappings/CardBlock.js +126 -0
- package/lib/commonjs/mappings/CardContainer.js +108 -0
- package/lib/commonjs/mappings/CardContainerRating.js +130 -0
- package/lib/commonjs/mappings/CardContainerShortImage.js +124 -0
- package/lib/commonjs/mappings/CardInline.js +59 -0
- package/lib/commonjs/mappings/Carousel.js +24 -0
- package/lib/commonjs/mappings/Checkbox.js +1 -2
- package/lib/commonjs/mappings/CheckboxGroup.js +1 -2
- package/lib/commonjs/mappings/CheckboxRow.js +1 -2
- package/lib/commonjs/mappings/CircleImage.js +32 -0
- package/lib/commonjs/mappings/Container.js +37 -0
- package/lib/commonjs/mappings/CustomCode.js +1 -2
- package/lib/commonjs/mappings/DatePicker.js +24 -12
- package/lib/commonjs/mappings/Divider.js +32 -0
- package/lib/commonjs/mappings/FAB.js +44 -0
- package/lib/commonjs/mappings/Fetch.js +1 -2
- package/lib/commonjs/mappings/FieldSearchBarFull.js +56 -0
- package/lib/commonjs/mappings/FlashList.js +1 -2
- package/lib/commonjs/mappings/FlatList.js +1 -2
- package/lib/commonjs/mappings/HeaderLarge.js +34 -0
- package/lib/commonjs/mappings/HeaderMedium.js +60 -0
- package/lib/commonjs/mappings/HeaderOverline.js +60 -0
- package/lib/commonjs/mappings/Icon.js +1 -2
- package/lib/commonjs/mappings/IconButton.js +1 -2
- package/lib/commonjs/mappings/Image.js +1 -2
- package/lib/commonjs/mappings/ImageBackground.js +1 -2
- package/lib/commonjs/mappings/KeyboardAvoidingView.js +1 -2
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js +1 -2
- package/lib/commonjs/mappings/Layout.js +1 -2
- package/lib/commonjs/mappings/LinearGradient.js +1 -2
- package/lib/commonjs/mappings/MapCallout.js +1 -2
- package/lib/commonjs/mappings/MapMarker.js +1 -2
- package/lib/commonjs/mappings/MapView.js +1 -2
- package/lib/commonjs/mappings/Modal.js +1 -2
- package/lib/commonjs/mappings/NumberInput.js +1 -2
- package/lib/commonjs/mappings/Picker.js +1 -2
- package/lib/commonjs/mappings/ProgressBar.js +106 -0
- package/lib/commonjs/mappings/ProgressCircle.js +116 -0
- package/lib/commonjs/mappings/ProgressIndicator.js +188 -0
- package/lib/commonjs/mappings/RadioButton.js +1 -2
- package/lib/commonjs/mappings/RadioButtonGroup.js +1 -2
- package/lib/commonjs/mappings/RadioButtonRow.js +1 -2
- package/lib/commonjs/mappings/RowBodyIcon.js +79 -0
- package/lib/commonjs/mappings/RowHeadlineImageCaption.js +169 -0
- package/lib/commonjs/mappings/RowHeadlineImageIcon.js +99 -0
- package/lib/commonjs/mappings/SVG.js +1 -2
- package/lib/commonjs/mappings/SafeAreaView.js +1 -2
- package/lib/commonjs/mappings/ScrollView.js +1 -2
- package/lib/commonjs/mappings/Slider.js +1 -2
- package/lib/commonjs/mappings/StarRating.js +1 -2
- package/lib/commonjs/mappings/Stepper.js +2 -3
- package/lib/commonjs/mappings/Surface.js +1 -2
- package/lib/commonjs/mappings/Swiper.js +1 -2
- package/lib/commonjs/mappings/SwiperItem.js +1 -2
- package/lib/commonjs/mappings/Switch.js +1 -2
- package/lib/commonjs/mappings/Text.js +1 -2
- package/lib/commonjs/mappings/TextArea.js +15 -5
- package/lib/commonjs/mappings/TextField.js +15 -6
- package/lib/commonjs/mappings/TextInput.js +15 -5
- package/lib/commonjs/mappings/ToggleButton.js +53 -0
- package/lib/commonjs/mappings/Touchable.js +2 -3
- package/lib/commonjs/mappings/Video.js +1 -2
- package/lib/commonjs/mappings/View.js +1 -2
- package/lib/commonjs/mappings/WebView.js +1 -2
- package/lib/commonjs/styles/DarkTheme.js +1 -2
- package/lib/commonjs/styles/DefaultTheme.js +1 -2
- package/lib/commonjs/styles/fonts.js +1 -2
- package/lib/commonjs/styles/overlay.js +1 -2
- package/lib/commonjs/styles/shadow.js +1 -2
- package/lib/commonjs/theming.js +1 -2
- package/lib/commonjs/utilities.js +2 -3
- package/lib/module/Provider.js +1 -2
- package/lib/module/components/Accordion/AccordionGroup.js +1 -2
- package/lib/module/components/Accordion/AccordionItem.js +1 -2
- package/lib/module/components/Accordion/index.js +1 -2
- package/lib/module/components/ActionSheet/ActionSheet.js +1 -2
- package/lib/module/components/ActionSheet/ActionSheetCancel.js +1 -2
- package/lib/module/components/ActionSheet/ActionSheetItem.js +1 -2
- package/lib/module/components/ActionSheet/index.js +1 -2
- package/lib/module/components/AnimatedCircularProgress.js +56 -0
- package/lib/module/components/AspectRatio.js +42 -0
- package/lib/module/components/AvatarEdit.js +49 -0
- package/lib/module/components/Banner.js +1 -2
- package/lib/module/components/Button.js +1 -2
- package/lib/module/components/Card.js +128 -0
- package/lib/module/components/CardBlock.js +98 -0
- package/lib/module/components/CardContainer.js +121 -0
- package/lib/module/components/CardContainerRating.js +125 -0
- package/lib/module/components/CardContainerShortImage.js +76 -0
- package/lib/module/components/CardInline.js +82 -0
- package/lib/module/components/Carousel.js +120 -0
- package/lib/module/components/Checkbox/Checkbox.js +1 -2
- package/lib/module/components/Checkbox/CheckboxGroup.js +1 -2
- package/lib/module/components/Checkbox/CheckboxGroupRow.js +1 -2
- package/lib/module/components/Checkbox/CheckboxRow.js +1 -2
- package/lib/module/components/Checkbox/context.js +1 -2
- package/lib/module/components/Checkbox/index.js +1 -2
- package/lib/module/components/CircleImage.js +25 -0
- package/lib/module/components/CircularProgress.js +104 -0
- package/lib/module/components/Config.js +4 -5
- package/lib/module/components/Container.js +83 -0
- package/lib/module/components/DatePicker/DatePicker.js +23 -14
- package/lib/module/components/DatePicker/DatePickerComponent.js +1 -2
- package/lib/module/components/DatePicker/DatePickerComponent.web.js +1 -2
- package/lib/module/components/DatePicker/DatePickerComponentType.js +1 -2
- package/lib/module/components/DeprecatedButton.js +1 -2
- package/lib/module/components/DeprecatedCardWrapper.js +32 -0
- package/lib/module/components/DeprecatedFAB.js +148 -0
- package/lib/module/components/Divider.js +21 -0
- package/lib/module/components/Elevation.js +1 -2
- package/lib/module/components/FAB.js +73 -0
- package/lib/module/components/FieldSearchBarFull.js +87 -0
- package/lib/module/components/FormRow.js +1 -2
- package/lib/module/components/Header.js +72 -0
- package/lib/module/components/HeaderLarge.js +28 -0
- package/lib/module/components/HeaderMedium.js +28 -0
- package/lib/module/components/HeaderOverline.js +29 -0
- package/lib/module/components/IconButton.js +1 -2
- package/lib/module/components/Image.js +74 -0
- package/lib/module/components/Justification.js +0 -0
- package/lib/module/components/Layout.js +1 -2
- package/lib/module/components/NumberInput.js +1 -2
- package/lib/module/components/Picker/Picker.js +4 -5
- package/lib/module/components/Picker/PickerComponent.android.js +3 -4
- package/lib/module/components/Picker/PickerComponent.ios.js +3 -4
- package/lib/module/components/Picker/PickerComponent.web.js +3 -4
- package/lib/module/components/Picker/PickerTypes.js +1 -2
- package/lib/module/components/Portal/Portal.js +1 -2
- package/lib/module/components/Portal/PortalConsumer.js +1 -2
- package/lib/module/components/Portal/PortalHost.js +1 -2
- package/lib/module/components/Portal/PortalManager.js +1 -2
- package/lib/module/components/ProgressBar.js +149 -0
- package/lib/module/components/ProgressCircle.js +38 -0
- package/lib/module/components/ProgressIndicator.js +45 -0
- package/lib/module/components/RadioButton/RadioButton.js +2 -3
- package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +1 -2
- package/lib/module/components/RadioButton/RadioButtonGroup.js +1 -2
- package/lib/module/components/RadioButton/RadioButtonRow.js +2 -3
- package/lib/module/components/RadioButton/context.js +1 -2
- package/lib/module/components/RadioButton/index.js +1 -2
- package/lib/module/components/ResizeMode.js +0 -0
- package/lib/module/components/Row.js +63 -0
- package/lib/module/components/RowBodyIcon.js +35 -0
- package/lib/module/components/RowHeadlineImageCaption.js +35 -0
- package/lib/module/components/RowHeadlineImageIcon.js +41 -0
- package/lib/module/components/SVG.js +1 -2
- package/lib/module/components/ScreenContainer.js +1 -2
- package/lib/module/components/Slider.js +1 -2
- package/lib/module/components/StarRating.js +1 -2
- package/lib/module/components/StepIndicator.js +377 -0
- package/lib/module/components/Stepper.js +9 -7
- package/lib/module/components/Surface.js +1 -2
- package/lib/module/components/Swiper/Swiper.js +1 -2
- package/lib/module/components/Swiper/SwiperItem.js +1 -2
- package/lib/module/components/Swiper/index.js +1 -2
- package/lib/module/components/Switch.js +1 -2
- package/lib/module/components/Text.js +1 -2
- package/lib/module/components/TextField.js +1 -2
- package/lib/module/components/ToggleButton.js +61 -0
- package/lib/module/components/Touchable.js +1 -2
- package/lib/module/components/Touchable.web.js +1 -2
- package/lib/module/components/Typography.js +48 -0
- package/lib/module/components/useAuthState.js +19 -0
- package/lib/module/constants.js +1 -2
- package/lib/module/hooks.js +1 -2
- package/lib/module/index.js +41 -32
- package/lib/module/interfaces/Icon.js +1 -2
- 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 +38 -0
- package/lib/module/mappings/Banner.js +32 -0
- package/lib/module/mappings/BlurView.js +1 -2
- package/lib/module/mappings/Button.js +1 -2
- package/lib/module/mappings/Card.js +53 -0
- package/lib/module/mappings/CardBlock.js +119 -0
- package/lib/module/mappings/CardContainer.js +101 -0
- package/lib/module/mappings/CardContainerRating.js +123 -0
- package/lib/module/mappings/CardContainerShortImage.js +117 -0
- package/lib/module/mappings/CardInline.js +52 -0
- package/lib/module/mappings/Carousel.js +17 -0
- 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 +25 -0
- package/lib/module/mappings/Container.js +30 -0
- package/lib/module/mappings/CustomCode.js +1 -2
- package/lib/module/mappings/DatePicker.js +25 -13
- package/lib/module/mappings/Divider.js +25 -0
- package/lib/module/mappings/FAB.js +37 -0
- package/lib/module/mappings/Fetch.js +1 -2
- package/lib/module/mappings/FieldSearchBarFull.js +49 -0
- package/lib/module/mappings/FlashList.js +1 -2
- package/lib/module/mappings/FlatList.js +1 -2
- package/lib/module/mappings/HeaderLarge.js +27 -0
- package/lib/module/mappings/HeaderMedium.js +53 -0
- package/lib/module/mappings/HeaderOverline.js +53 -0
- package/lib/module/mappings/Icon.js +1 -2
- 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 +1 -2
- package/lib/module/mappings/Picker.js +1 -2
- package/lib/module/mappings/ProgressBar.js +99 -0
- package/lib/module/mappings/ProgressCircle.js +109 -0
- package/lib/module/mappings/ProgressIndicator.js +181 -0
- 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 +72 -0
- package/lib/module/mappings/RowHeadlineImageCaption.js +162 -0
- package/lib/module/mappings/RowHeadlineImageIcon.js +92 -0
- 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 +1 -2
- 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 +1 -2
- package/lib/module/mappings/TextArea.js +16 -6
- package/lib/module/mappings/TextField.js +15 -6
- package/lib/module/mappings/TextInput.js +16 -6
- package/lib/module/mappings/ToggleButton.js +46 -0
- package/lib/module/mappings/Touchable.js +2 -3
- 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 +1 -2
- package/lib/module/styles/DefaultTheme.js +1 -2
- package/lib/module/styles/fonts.js +1 -2
- package/lib/module/styles/overlay.js +1 -2
- package/lib/module/styles/shadow.js +1 -2
- package/lib/module/theming.js +1 -2
- package/lib/module/utilities.js +2 -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 +14 -0
- package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +1 -0
- package/lib/typescript/src/components/AspectRatio.d.ts +9 -0
- package/lib/typescript/src/components/AspectRatio.d.ts.map +1 -0
- package/lib/typescript/src/components/AvatarEdit.d.ts +16 -0
- package/lib/typescript/src/components/AvatarEdit.d.ts.map +1 -0
- 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 +43 -0
- package/lib/typescript/src/components/Card.d.ts.map +1 -0
- package/lib/typescript/src/components/CardBlock.d.ts +21 -0
- package/lib/typescript/src/components/CardBlock.d.ts.map +1 -0
- package/lib/typescript/src/components/CardContainer.d.ts +23 -0
- package/lib/typescript/src/components/CardContainer.d.ts.map +1 -0
- package/lib/typescript/src/components/CardContainerRating.d.ts +24 -0
- package/lib/typescript/src/components/CardContainerRating.d.ts.map +1 -0
- package/lib/typescript/src/components/CardContainerShortImage.d.ts +19 -0
- package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +1 -0
- package/lib/typescript/src/components/CardInline.d.ts +20 -0
- package/lib/typescript/src/components/CardInline.d.ts.map +1 -0
- package/lib/typescript/src/components/Carousel.d.ts +15 -0
- package/lib/typescript/src/components/Carousel.d.ts.map +1 -0
- package/lib/typescript/src/components/CircleImage.d.ts +10 -0
- package/lib/typescript/src/components/CircleImage.d.ts.map +1 -0
- package/lib/typescript/src/components/CircularProgress.d.ts +43 -0
- package/lib/typescript/src/components/CircularProgress.d.ts.map +1 -0
- package/lib/typescript/src/components/Container.d.ts +21 -0
- package/lib/typescript/src/components/Container.d.ts.map +1 -0
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +7 -3
- 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 +15 -0
- package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -0
- package/lib/typescript/src/components/DeprecatedFAB.d.ts +56 -0
- package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -0
- package/lib/typescript/src/components/Divider.d.ts +13 -0
- package/lib/typescript/src/components/Divider.d.ts.map +1 -0
- 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 +20 -0
- package/lib/typescript/src/components/FAB.d.ts.map +1 -0
- package/lib/typescript/src/components/FieldSearchBarFull.d.ts +20 -0
- package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +1 -0
- 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 +20 -0
- package/lib/typescript/src/components/Header.d.ts.map +1 -0
- package/lib/typescript/src/components/HeaderLarge.d.ts +17 -0
- package/lib/typescript/src/components/HeaderLarge.d.ts.map +1 -0
- package/lib/typescript/src/components/HeaderMedium.d.ts +17 -0
- package/lib/typescript/src/components/HeaderMedium.d.ts.map +1 -0
- package/lib/typescript/src/components/HeaderOverline.d.ts +17 -0
- package/lib/typescript/src/components/HeaderOverline.d.ts.map +1 -0
- 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/Image.d.ts +5 -0
- package/lib/typescript/src/components/Image.d.ts.map +1 -0
- package/lib/typescript/src/components/Justification.d.ts +2 -0
- package/lib/typescript/src/components/Justification.d.ts.map +1 -0
- 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 +35 -0
- package/lib/typescript/src/components/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/src/components/ProgressCircle.d.ts +21 -0
- package/lib/typescript/src/components/ProgressCircle.d.ts.map +1 -0
- package/lib/typescript/src/components/ProgressIndicator.d.ts +24 -0
- package/lib/typescript/src/components/ProgressIndicator.d.ts.map +1 -0
- 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 +2 -0
- package/lib/typescript/src/components/ResizeMode.d.ts.map +1 -0
- package/lib/typescript/src/components/Row.d.ts +21 -0
- package/lib/typescript/src/components/Row.d.ts.map +1 -0
- package/lib/typescript/src/components/RowBodyIcon.d.ts +16 -0
- package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +16 -0
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +18 -0
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
- 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 +54 -0
- package/lib/typescript/src/components/StepIndicator.d.ts.map +1 -0
- 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 +25 -0
- package/lib/typescript/src/components/ToggleButton.d.ts.map +1 -0
- 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 +22 -0
- package/lib/typescript/src/components/Typography.d.ts.map +1 -0
- package/lib/typescript/src/components/useAuthState.d.ts +2 -0
- package/lib/typescript/src/components/useAuthState.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +39 -15
- package/lib/typescript/src/index.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/AvatarEdit.d.ts +38 -0
- package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Banner.d.ts +49 -0
- package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Card.d.ts +114 -0
- package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardBlock.d.ts +289 -0
- package/lib/typescript/src/mappings/CardBlock.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardContainer.d.ts +102 -0
- package/lib/typescript/src/mappings/CardContainer.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardContainerRating.d.ts +108 -0
- package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +139 -0
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardInline.d.ts +62 -0
- package/lib/typescript/src/mappings/CardInline.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Carousel.d.ts +34 -0
- package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CircleImage.d.ts +34 -0
- package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Container.d.ts +55 -0
- package/lib/typescript/src/mappings/Container.d.ts.map +1 -0
- package/lib/typescript/src/mappings/DatePicker.d.ts +45 -3
- package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Divider.d.ts +25 -0
- package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FAB.d.ts +83 -0
- package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +56 -0
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
- package/lib/typescript/src/mappings/HeaderLarge.d.ts +34 -0
- package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +1 -0
- package/lib/typescript/src/mappings/HeaderMedium.d.ts +53 -0
- package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +1 -0
- package/lib/typescript/src/mappings/HeaderOverline.d.ts +53 -0
- package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressBar.d.ts +99 -0
- package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressCircle.d.ts +109 -0
- package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts +181 -0
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts +73 -0
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +166 -0
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +170 -0
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
- 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/mappings/ToggleButton.d.ts +116 -0
- package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
- package/lib/typescript/src/styles/DefaultTheme.d.ts +1 -1
- package/lib/typescript/src/styles/DefaultTheme.d.ts.map +1 -1
- package/lib/typescript/src/styles/overlay.d.ts +1 -1
- package/lib/typescript/src/styles/overlay.d.ts.map +1 -1
- package/lib/typescript/src/styles/shadow.d.ts +2 -2
- package/package.json +19 -9
- package/src/components/AnimatedCircularProgress.tsx +101 -0
- package/src/components/AspectRatio.tsx +40 -0
- package/src/components/AvatarEdit.tsx +64 -0
- package/src/components/Card.tsx +161 -0
- package/src/components/CardBlock.tsx +127 -0
- package/src/components/CardContainer.tsx +165 -0
- package/src/components/CardContainerRating.tsx +175 -0
- package/src/components/CardContainerShortImage.tsx +101 -0
- package/src/components/CardInline.tsx +93 -0
- package/src/components/Carousel.tsx +134 -0
- package/src/components/CircleImage.tsx +33 -0
- package/src/components/CircularProgress.tsx +188 -0
- package/src/components/Container.tsx +116 -0
- package/src/components/DatePicker/DatePicker.tsx +29 -11
- package/src/components/DeprecatedCardWrapper.tsx +46 -0
- package/src/components/DeprecatedFAB.tsx +231 -0
- package/src/components/Divider.tsx +32 -0
- package/src/components/FAB.tsx +108 -0
- package/src/components/FieldSearchBarFull.tsx +126 -0
- package/src/components/Header.tsx +105 -0
- package/src/components/HeaderLarge.tsx +40 -0
- package/src/components/HeaderMedium.tsx +41 -0
- package/src/components/HeaderOverline.tsx +42 -0
- package/src/components/Image.tsx +91 -0
- package/src/components/Justification.ts +8 -0
- package/src/components/Picker/Picker.tsx +2 -2
- package/src/components/ProgressBar.tsx +191 -0
- package/src/components/ProgressCircle.tsx +64 -0
- package/src/components/ProgressIndicator.tsx +71 -0
- package/src/components/ResizeMode.ts +7 -0
- package/src/components/Row.tsx +108 -0
- package/src/components/RowBodyIcon.tsx +47 -0
- package/src/components/RowHeadlineImageCaption.tsx +49 -0
- package/src/components/RowHeadlineImageIcon.tsx +61 -0
- package/src/components/StepIndicator.tsx +494 -0
- package/src/components/Stepper.tsx +5 -5
- package/src/components/ToggleButton.tsx +94 -0
- package/src/components/Typography.tsx +67 -0
- package/src/components/useAuthState.tsx +38 -0
- package/src/index.tsx +51 -38
- package/src/mappings/AudioPlayer.ts +41 -1
- package/src/mappings/AvatarEdit.ts +45 -0
- package/src/mappings/Banner.ts +40 -0
- package/src/mappings/Card.ts +64 -0
- package/src/mappings/CardBlock.ts +136 -0
- package/src/mappings/CardContainer.ts +116 -0
- package/src/mappings/CardContainerRating.ts +137 -0
- package/src/mappings/CardContainerShortImage.ts +130 -0
- package/src/mappings/CardInline.ts +61 -0
- package/src/mappings/Carousel.ts +25 -0
- package/src/mappings/CircleImage.ts +33 -0
- package/src/mappings/Container.ts +41 -0
- package/src/mappings/DatePicker.ts +32 -10
- package/src/mappings/Divider.ts +34 -0
- package/src/mappings/FAB.ts +48 -0
- package/src/mappings/FieldSearchBarFull.ts +59 -0
- package/src/mappings/HeaderLarge.ts +38 -0
- package/src/mappings/HeaderMedium.ts +63 -0
- package/src/mappings/HeaderOverline.ts +63 -0
- package/src/mappings/ProgressBar.ts +110 -0
- package/src/mappings/ProgressCircle.ts +117 -0
- package/src/mappings/ProgressIndicator.ts +190 -0
- package/src/mappings/RowBodyIcon.ts +82 -0
- package/src/mappings/RowHeadlineImageCaption.ts +178 -0
- package/src/mappings/RowHeadlineImageIcon.ts +116 -0
- package/src/mappings/Stepper.ts +5 -1
- package/src/mappings/TextArea.ts +15 -3
- package/src/mappings/TextField.ts +14 -4
- package/src/mappings/TextInput.ts +15 -3
- package/src/mappings/ToggleButton.ts +63 -0
- package/src/mappings/Touchable.ts +1 -1
- package/src/styles/overlay.tsx +2 -2
- 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/Banner.js.map +0 -1
- package/lib/commonjs/components/Button.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/Config.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/Elevation.js.map +0 -1
- package/lib/commonjs/components/FormRow.js.map +0 -1
- package/lib/commonjs/components/IconButton.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/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/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/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/Touchable.js.map +0 -1
- package/lib/commonjs/components/Touchable.web.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/BlurView.js.map +0 -1
- package/lib/commonjs/mappings/Button.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/CustomCode.js.map +0 -1
- package/lib/commonjs/mappings/DatePicker.js.map +0 -1
- package/lib/commonjs/mappings/Fetch.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/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/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/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/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/Banner.js.map +0 -1
- package/lib/module/components/Button.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/Config.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/Elevation.js.map +0 -1
- package/lib/module/components/FormRow.js.map +0 -1
- package/lib/module/components/IconButton.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/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/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/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/Touchable.js.map +0 -1
- package/lib/module/components/Touchable.web.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/BlurView.js.map +0 -1
- package/lib/module/mappings/Button.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/CustomCode.js.map +0 -1
- package/lib/module/mappings/DatePicker.js.map +0 -1
- package/lib/module/mappings/Fetch.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/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/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/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/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
- package/src/Provider.js +0 -9
- package/src/components/Accordion/AccordionGroup.js +0 -44
- package/src/components/Accordion/AccordionItem.js +0 -32
- package/src/components/Accordion/index.js +0 -2
- package/src/components/ActionSheet/ActionSheet.js +0 -45
- package/src/components/ActionSheet/ActionSheetCancel.js +0 -6
- package/src/components/ActionSheet/ActionSheetItem.js +0 -30
- package/src/components/ActionSheet/index.js +0 -3
- package/src/components/Banner.js +0 -109
- package/src/components/Button.js +0 -114
- package/src/components/Checkbox/Checkbox.js +0 -63
- package/src/components/Checkbox/CheckboxGroup.js +0 -21
- package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
- package/src/components/Checkbox/CheckboxRow.js +0 -78
- package/src/components/Checkbox/context.js +0 -14
- package/src/components/Checkbox/index.js +0 -3
- package/src/components/Config.js +0 -64
- package/src/components/DatePicker/DatePicker.js +0 -368
- package/src/components/DatePicker/DatePickerComponent.js +0 -13
- package/src/components/DatePicker/DatePickerComponent.web.js +0 -30
- package/src/components/DatePicker/DatePickerComponentType.js +0 -1
- package/src/components/DeprecatedButton.js +0 -95
- package/src/components/Elevation.js +0 -20
- package/src/components/FormRow.js +0 -19
- package/src/components/IconButton.js +0 -35
- package/src/components/Layout.js +0 -50
- package/src/components/NumberInput.js +0 -49
- package/src/components/Picker/Picker.js +0 -267
- package/src/components/Picker/PickerComponent.android.js +0 -69
- package/src/components/Picker/PickerComponent.ios.js +0 -79
- package/src/components/Picker/PickerComponent.web.js +0 -70
- package/src/components/Picker/PickerTypes.js +0 -1
- package/src/components/Portal/Portal.js +0 -35
- package/src/components/Portal/PortalConsumer.js +0 -27
- package/src/components/Portal/PortalHost.js +0 -107
- package/src/components/Portal/PortalManager.js +0 -32
- package/src/components/RadioButton/RadioButton.js +0 -17
- package/src/components/RadioButton/RadioButtonFieldGroup.js +0 -17
- package/src/components/RadioButton/RadioButtonGroup.js +0 -43
- package/src/components/RadioButton/RadioButtonRow.js +0 -76
- package/src/components/RadioButton/context.js +0 -14
- package/src/components/RadioButton/index.js +0 -4
- package/src/components/SVG.js +0 -13
- package/src/components/ScreenContainer.js +0 -34
- package/src/components/Slider.js +0 -63
- package/src/components/StarRating.js +0 -50
- package/src/components/Stepper.js +0 -39
- package/src/components/Surface.js +0 -32
- package/src/components/Swiper/Swiper.js +0 -29
- package/src/components/Swiper/SwiperItem.js +0 -9
- package/src/components/Swiper/index.js +0 -2
- package/src/components/Switch.js +0 -56
- package/src/components/Text.js +0 -33
- package/src/components/TextField.js +0 -428
- package/src/components/Touchable.js +0 -12
- package/src/components/Touchable.web.js +0 -2
- package/src/constants.js +0 -10
- package/src/hooks.js +0 -12
- package/src/index.js +0 -35
- package/src/interfaces/Icon.js +0 -8
- package/src/mappings/Accordion.js +0 -41
- package/src/mappings/AccordionItem.js +0 -16
- package/src/mappings/ActionSheet.js +0 -13
- package/src/mappings/ActionSheetCancel.js +0 -19
- package/src/mappings/ActionSheetItem.js +0 -23
- package/src/mappings/ActivityIndicator.js +0 -58
- package/src/mappings/AudioPlayer.js +0 -20
- package/src/mappings/BlurView.js +0 -42
- package/src/mappings/Button.js +0 -87
- package/src/mappings/Checkbox.js +0 -46
- package/src/mappings/CheckboxGroup.js +0 -26
- package/src/mappings/CheckboxRow.js +0 -61
- package/src/mappings/CustomCode.js +0 -8
- package/src/mappings/DatePicker.js +0 -157
- package/src/mappings/Fetch.js +0 -13
- package/src/mappings/FlashList.js +0 -33
- package/src/mappings/FlatList.js +0 -24
- package/src/mappings/Icon.js +0 -32
- package/src/mappings/IconButton.js +0 -35
- package/src/mappings/Image.js +0 -35
- package/src/mappings/ImageBackground.js +0 -29
- package/src/mappings/KeyboardAvoidingView.js +0 -41
- package/src/mappings/KeyboardAwareScrollView.js +0 -50
- package/src/mappings/Layout.js +0 -200
- package/src/mappings/LinearGradient.js +0 -77
- package/src/mappings/MapCallout.js +0 -21
- package/src/mappings/MapMarker.js +0 -47
- package/src/mappings/MapView.js +0 -139
- package/src/mappings/Modal.js +0 -42
- package/src/mappings/NumberInput.js +0 -254
- package/src/mappings/Picker.js +0 -148
- package/src/mappings/RadioButton.js +0 -51
- package/src/mappings/RadioButtonGroup.js +0 -17
- package/src/mappings/RadioButtonRow.js +0 -42
- package/src/mappings/SVG.js +0 -20
- package/src/mappings/SafeAreaView.js +0 -33
- package/src/mappings/ScrollView.js +0 -31
- package/src/mappings/Slider.js +0 -60
- package/src/mappings/StarRating.js +0 -43
- package/src/mappings/Stepper.js +0 -29
- package/src/mappings/Surface.js +0 -14
- package/src/mappings/Swiper.js +0 -60
- package/src/mappings/SwiperItem.js +0 -8
- package/src/mappings/Switch.js +0 -81
- package/src/mappings/Text.js +0 -251
- package/src/mappings/TextArea.js +0 -263
- package/src/mappings/TextField.js +0 -381
- package/src/mappings/TextInput.js +0 -391
- package/src/mappings/Touchable.js +0 -17
- package/src/mappings/Video.js +0 -81
- package/src/mappings/View.js +0 -207
- package/src/mappings/WebView.js +0 -88
- package/src/styles/DarkTheme.js +0 -26
- package/src/styles/DefaultTheme.js +0 -111
- package/src/styles/fonts.js +0 -62
- package/src/styles/overlay.js +0 -60
- package/src/styles/shadow.js +0 -51
- package/src/theming.js +0 -3
- package/src/utilities.js +0 -102
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _theming = require("../theming");
|
|
10
|
+
var _Divider = _interopRequireDefault(require("./Divider"));
|
|
11
|
+
var _Touchable = _interopRequireDefault(require("./Touchable"));
|
|
12
|
+
var _Config = _interopRequireDefault(require("./Config"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
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; }
|
|
16
|
+
const Header = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
Icon,
|
|
19
|
+
titleTypeStyle,
|
|
20
|
+
titleColor,
|
|
21
|
+
title,
|
|
22
|
+
buttonText,
|
|
23
|
+
dividerTopMargin,
|
|
24
|
+
icon,
|
|
25
|
+
onPress,
|
|
26
|
+
style,
|
|
27
|
+
theme: {
|
|
28
|
+
colors,
|
|
29
|
+
typography
|
|
30
|
+
}
|
|
31
|
+
} = _ref;
|
|
32
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
33
|
+
style: [styles.container, style]
|
|
34
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
35
|
+
style: styles.topContainer
|
|
36
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
37
|
+
style: [titleTypeStyle, {
|
|
38
|
+
color: titleColor,
|
|
39
|
+
flex: 1
|
|
40
|
+
}],
|
|
41
|
+
numberOfLines: 1
|
|
42
|
+
}, title), onPress && /*#__PURE__*/React.createElement(_Touchable.default, {
|
|
43
|
+
style: {
|
|
44
|
+
alignSelf: "center",
|
|
45
|
+
marginLeft: 12
|
|
46
|
+
},
|
|
47
|
+
onPress: onPress
|
|
48
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
49
|
+
style: styles.buttonContainer
|
|
50
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
51
|
+
style: [typography.subtitle2, {
|
|
52
|
+
color: colors.light,
|
|
53
|
+
marginRight: 8
|
|
54
|
+
}],
|
|
55
|
+
numberOfLines: 1
|
|
56
|
+
}, buttonText), /*#__PURE__*/React.createElement(Icon, {
|
|
57
|
+
name: icon,
|
|
58
|
+
size: _Config.default.headerIconSize,
|
|
59
|
+
color: colors.light
|
|
60
|
+
})))), /*#__PURE__*/React.createElement(_Divider.default, {
|
|
61
|
+
style: {
|
|
62
|
+
marginTop: dividerTopMargin || 16
|
|
63
|
+
}
|
|
64
|
+
}));
|
|
65
|
+
};
|
|
66
|
+
const styles = _reactNative.StyleSheet.create({
|
|
67
|
+
container: {
|
|
68
|
+
alignSelf: "stretch"
|
|
69
|
+
},
|
|
70
|
+
topContainer: {
|
|
71
|
+
flexDirection: "row",
|
|
72
|
+
justifyContent: "space-between",
|
|
73
|
+
alignItems: "center"
|
|
74
|
+
},
|
|
75
|
+
buttonContainer: {
|
|
76
|
+
flexDirection: "row",
|
|
77
|
+
justifyContent: "center",
|
|
78
|
+
alignItems: "center"
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
var _default = (0, _theming.withTheme)(Header);
|
|
82
|
+
exports.default = _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _theming = require("../theming");
|
|
9
|
+
var _Header = _interopRequireDefault(require("./Header"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
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
|
+
const HeaderLarge = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
Icon,
|
|
16
|
+
title,
|
|
17
|
+
buttonText,
|
|
18
|
+
icon,
|
|
19
|
+
onPress = () => {},
|
|
20
|
+
style,
|
|
21
|
+
theme: {
|
|
22
|
+
colors,
|
|
23
|
+
typography
|
|
24
|
+
}
|
|
25
|
+
} = _ref;
|
|
26
|
+
return /*#__PURE__*/React.createElement(_Header.default, {
|
|
27
|
+
Icon: Icon,
|
|
28
|
+
titleTypeStyle: typography.headline4,
|
|
29
|
+
titleColor: colors.strong,
|
|
30
|
+
title: title,
|
|
31
|
+
buttonText: buttonText,
|
|
32
|
+
icon: icon,
|
|
33
|
+
onPress: onPress,
|
|
34
|
+
style: style
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var _default = (0, _theming.withTheme)(HeaderLarge);
|
|
38
|
+
exports.default = _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _theming = require("../theming");
|
|
9
|
+
var _Header = _interopRequireDefault(require("./Header"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
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
|
+
const HeaderMedium = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
Icon,
|
|
16
|
+
title,
|
|
17
|
+
buttonText,
|
|
18
|
+
icon,
|
|
19
|
+
onPress = () => {},
|
|
20
|
+
style,
|
|
21
|
+
theme: {
|
|
22
|
+
colors,
|
|
23
|
+
typography
|
|
24
|
+
}
|
|
25
|
+
} = _ref;
|
|
26
|
+
return /*#__PURE__*/React.createElement(_Header.default, {
|
|
27
|
+
Icon: Icon,
|
|
28
|
+
titleTypeStyle: typography.headline6,
|
|
29
|
+
titleColor: colors.strong,
|
|
30
|
+
title: title,
|
|
31
|
+
buttonText: buttonText,
|
|
32
|
+
icon: icon,
|
|
33
|
+
onPress: onPress,
|
|
34
|
+
style: style
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var _default = (0, _theming.withTheme)(HeaderMedium);
|
|
38
|
+
exports.default = _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _theming = require("../theming");
|
|
9
|
+
var _Header = _interopRequireDefault(require("./Header"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
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
|
+
const HeaderOverline = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
Icon,
|
|
16
|
+
title,
|
|
17
|
+
buttonText,
|
|
18
|
+
icon,
|
|
19
|
+
onPress = () => {},
|
|
20
|
+
style,
|
|
21
|
+
theme: {
|
|
22
|
+
colors,
|
|
23
|
+
typography
|
|
24
|
+
}
|
|
25
|
+
} = _ref;
|
|
26
|
+
return /*#__PURE__*/React.createElement(_Header.default, {
|
|
27
|
+
Icon: Icon,
|
|
28
|
+
titleTypeStyle: typography.overline,
|
|
29
|
+
titleColor: colors.light,
|
|
30
|
+
title: title && title.toUpperCase(),
|
|
31
|
+
buttonText: buttonText,
|
|
32
|
+
icon: icon,
|
|
33
|
+
dividerTopMargin: 12,
|
|
34
|
+
onPress: onPress,
|
|
35
|
+
style: style
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var _default = (0, _theming.withTheme)(HeaderOverline);
|
|
39
|
+
exports.default = _default;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _Config = _interopRequireDefault(require("./Config"));
|
|
10
|
+
var _AspectRatio = _interopRequireDefault(require("./AspectRatio"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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); }
|
|
13
|
+
const generateDimensions = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
aspectRatio,
|
|
16
|
+
width,
|
|
17
|
+
height
|
|
18
|
+
} = _ref;
|
|
19
|
+
if (aspectRatio && !width && !height) {
|
|
20
|
+
return {
|
|
21
|
+
aspectRatio,
|
|
22
|
+
width: "100%"
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
if (aspectRatio && height) {
|
|
26
|
+
return {
|
|
27
|
+
aspectRatio,
|
|
28
|
+
height,
|
|
29
|
+
width: aspectRatio * height
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
if (aspectRatio && width) {
|
|
33
|
+
return {
|
|
34
|
+
aspectRatio,
|
|
35
|
+
width,
|
|
36
|
+
height: width / aspectRatio
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
width,
|
|
41
|
+
height
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
const Image = _ref2 => {
|
|
45
|
+
let {
|
|
46
|
+
source,
|
|
47
|
+
resizeMode = "cover",
|
|
48
|
+
style,
|
|
49
|
+
...props
|
|
50
|
+
} = _ref2;
|
|
51
|
+
let imageSource = source === null || source === undefined ? _Config.default.placeholderImageURL : source;
|
|
52
|
+
const styles = _reactNative.StyleSheet.flatten(style || {});
|
|
53
|
+
const {
|
|
54
|
+
aspectRatio,
|
|
55
|
+
width,
|
|
56
|
+
height
|
|
57
|
+
} = generateDimensions(styles);
|
|
58
|
+
if (aspectRatio) {
|
|
59
|
+
return /*#__PURE__*/_react.default.createElement(_AspectRatio.default, {
|
|
60
|
+
style: [style, {
|
|
61
|
+
width,
|
|
62
|
+
height,
|
|
63
|
+
aspectRatio
|
|
64
|
+
}]
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Image, _extends({}, props, {
|
|
66
|
+
source: imageSource,
|
|
67
|
+
resizeMode: resizeMode,
|
|
68
|
+
style: [style, {
|
|
69
|
+
height: "100%",
|
|
70
|
+
width: "100%"
|
|
71
|
+
}]
|
|
72
|
+
})));
|
|
73
|
+
}
|
|
74
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Image, _extends({}, props, {
|
|
75
|
+
source: source,
|
|
76
|
+
resizeMode: resizeMode,
|
|
77
|
+
style: style
|
|
78
|
+
}));
|
|
79
|
+
};
|
|
80
|
+
var _default = Image;
|
|
81
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -46,7 +46,7 @@ const unstyledColor = "rgba(165, 173, 183, 1)";
|
|
|
46
46
|
const disabledColor = "rgb(240, 240, 240)";
|
|
47
47
|
const errorColor = "rgba(255, 69, 100, 1)";
|
|
48
48
|
const Picker = _ref => {
|
|
49
|
-
var _find;
|
|
49
|
+
var _find$label, _find;
|
|
50
50
|
let {
|
|
51
51
|
error,
|
|
52
52
|
options = [],
|
|
@@ -137,7 +137,7 @@ const Picker = _ref => {
|
|
|
137
137
|
...extractedMarginStyles
|
|
138
138
|
};
|
|
139
139
|
const stylesWithoutBordersAndMargins = (0, _lodash.omit)(viewStyles, [..._utilities.borderStyleNames, ..._utilities.marginStyleNames, ...additionalBorderStyles, ...additionalMarginStyles]);
|
|
140
|
-
const selectedLabel = internalValue && (((_find = pickerOptions.find(option => option.value === internalValue)) === null || _find === void 0 ? void 0 : _find.label)
|
|
140
|
+
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);
|
|
141
141
|
const labelText = label ? /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
142
142
|
style: {
|
|
143
143
|
textAlign: textStyles.textAlign,
|
|
@@ -220,7 +220,7 @@ const Picker = _ref => {
|
|
|
220
220
|
style: styles.primaryTextContainer
|
|
221
221
|
}, labelText, /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
222
222
|
style: primaryTextStyle
|
|
223
|
-
}, String(selectedLabel
|
|
223
|
+
}, String(selectedLabel !== null && selectedLabel !== void 0 ? selectedLabel : placeholder))), rightIcon)), assistiveTextLabel), isIos && pickerVisible ? /*#__PURE__*/React.createElement(_Portal.default, null, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
224
224
|
style: [styles.iosPicker, {
|
|
225
225
|
backgroundColor: colors.divider
|
|
226
226
|
}]
|
|
@@ -253,8 +253,6 @@ const Picker = _ref => {
|
|
|
253
253
|
}))) : null)
|
|
254
254
|
);
|
|
255
255
|
};
|
|
256
|
-
var _default = (0, _theming.withTheme)(Picker);
|
|
257
|
-
exports.default = _default;
|
|
258
256
|
const styles = _reactNative.StyleSheet.create({
|
|
259
257
|
marginsContainer: {
|
|
260
258
|
alignSelf: "stretch",
|
|
@@ -325,4 +323,5 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
325
323
|
maxHeight: deviceHeight
|
|
326
324
|
}
|
|
327
325
|
});
|
|
328
|
-
|
|
326
|
+
var _default = (0, _theming.withTheme)(Picker);
|
|
327
|
+
exports.default = _default;
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
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; }
|
|
18
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
19
|
const Picker = _ref => {
|
|
20
|
-
var _options$find;
|
|
20
|
+
var _options$find$label, _options$find;
|
|
21
21
|
let {
|
|
22
22
|
style,
|
|
23
23
|
options,
|
|
@@ -71,7 +71,7 @@ const Picker = _ref => {
|
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
const stylesWithoutMargin = style && (0, _lodash.default)(_reactNative.StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
|
|
74
|
-
const selectedLabel = selectedValue && (((_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label)
|
|
74
|
+
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);
|
|
75
75
|
return /*#__PURE__*/React.createElement(_Touchable.default, {
|
|
76
76
|
disabled: disabled,
|
|
77
77
|
onPress: toggleFocus,
|
|
@@ -114,5 +114,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
var _default = (0, _theming.withTheme)(Picker);
|
|
117
|
-
exports.default = _default;
|
|
118
|
-
//# sourceMappingURL=PickerComponent.android.js.map
|
|
117
|
+
exports.default = _default;
|
|
@@ -20,7 +20,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
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
|
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
22
|
const Picker = _ref => {
|
|
23
|
-
var _options$find;
|
|
23
|
+
var _options$find$label, _options$find;
|
|
24
24
|
let {
|
|
25
25
|
Icon,
|
|
26
26
|
style,
|
|
@@ -74,7 +74,7 @@ const Picker = _ref => {
|
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
const stylesWithoutMargin = style && (0, _lodash.default)(_reactNative.StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
|
|
77
|
-
const selectedLabel = selectedValue && (((_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label)
|
|
77
|
+
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);
|
|
78
78
|
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
79
79
|
style: [styles.container, viewStyles]
|
|
80
80
|
}, /*#__PURE__*/React.createElement(_Touchable.default, {
|
|
@@ -138,5 +138,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
140
|
var _default = (0, _theming.withTheme)(Picker);
|
|
141
|
-
exports.default = _default;
|
|
142
|
-
//# sourceMappingURL=PickerComponent.ios.js.map
|
|
141
|
+
exports.default = _default;
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
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; }
|
|
18
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
19
|
const Picker = _ref => {
|
|
20
|
-
var _options$find;
|
|
20
|
+
var _options$find$label, _options$find;
|
|
21
21
|
let {
|
|
22
22
|
style,
|
|
23
23
|
options,
|
|
@@ -71,7 +71,7 @@ const Picker = _ref => {
|
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
const stylesWithoutMargin = style && (0, _lodash.default)(_reactNative.StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
|
|
74
|
-
const selectedLabel = selectedValue && (((_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label)
|
|
74
|
+
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);
|
|
75
75
|
return /*#__PURE__*/React.createElement(_Touchable.default, {
|
|
76
76
|
disabled: disabled,
|
|
77
77
|
onPress: toggleFocus,
|
|
@@ -115,5 +115,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
var _default = (0, _theming.withTheme)(Picker);
|
|
118
|
-
exports.default = _default;
|
|
119
|
-
//# sourceMappingURL=PickerComponent.web.js.map
|
|
118
|
+
exports.default = _default;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
|
+
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; }
|
|
11
|
+
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); }
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
14
|
+
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); }
|
|
15
|
+
const INDETERMINATE_WIDTH_FACTOR = 0.3;
|
|
16
|
+
const BAR_WIDTH_ZERO_POSITION = INDETERMINATE_WIDTH_FACTOR / (1 + INDETERMINATE_WIDTH_FACTOR);
|
|
17
|
+
class ProgressBar extends _react.Component {
|
|
18
|
+
constructor(props) {
|
|
19
|
+
super(props);
|
|
20
|
+
_defineProperty(this, "handleLayout", event => {
|
|
21
|
+
const {
|
|
22
|
+
width = 150,
|
|
23
|
+
onLayout
|
|
24
|
+
} = this.props;
|
|
25
|
+
if (!width) {
|
|
26
|
+
this.setState({
|
|
27
|
+
width: event.nativeEvent.layout.width
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
if (onLayout) {
|
|
31
|
+
onLayout(event);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
const {
|
|
35
|
+
progress: progressP = 0,
|
|
36
|
+
indeterminate = false
|
|
37
|
+
} = props;
|
|
38
|
+
const progress = Math.min(Math.max(progressP, 0), 1);
|
|
39
|
+
this.state = {
|
|
40
|
+
width: 0,
|
|
41
|
+
progress: new _reactNative.Animated.Value(indeterminate ? INDETERMINATE_WIDTH_FACTOR : progress),
|
|
42
|
+
animationValue: new _reactNative.Animated.Value(BAR_WIDTH_ZERO_POSITION)
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
componentDidMount() {
|
|
46
|
+
const {
|
|
47
|
+
indeterminate = false
|
|
48
|
+
} = this.props;
|
|
49
|
+
if (indeterminate) {
|
|
50
|
+
this.animate();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
componentDidUpdate(prevProps) {
|
|
54
|
+
const {
|
|
55
|
+
indeterminate = false,
|
|
56
|
+
useNativeDriver = false,
|
|
57
|
+
progress: progressP = 0,
|
|
58
|
+
animationType = "spring",
|
|
59
|
+
animationConfig = {
|
|
60
|
+
bounciness: 0
|
|
61
|
+
},
|
|
62
|
+
animated = true
|
|
63
|
+
} = this.props;
|
|
64
|
+
if (prevProps.indeterminate !== indeterminate) {
|
|
65
|
+
if (indeterminate) {
|
|
66
|
+
this.animate();
|
|
67
|
+
} else {
|
|
68
|
+
_reactNative.Animated.spring(this.state.animationValue, {
|
|
69
|
+
toValue: BAR_WIDTH_ZERO_POSITION,
|
|
70
|
+
useNativeDriver
|
|
71
|
+
}).start();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (prevProps.indeterminate !== indeterminate || prevProps.progress !== progressP) {
|
|
75
|
+
const progress = this.props.indeterminate ? INDETERMINATE_WIDTH_FACTOR : Math.min(Math.max(progressP, 0), 1);
|
|
76
|
+
if (animated) {
|
|
77
|
+
_reactNative.Animated[animationType](this.state.progress, {
|
|
78
|
+
...animationConfig,
|
|
79
|
+
toValue: progress,
|
|
80
|
+
velocity: 0,
|
|
81
|
+
//adjust this value if animation fails - velocity is required
|
|
82
|
+
useNativeDriver
|
|
83
|
+
}).start();
|
|
84
|
+
} else {
|
|
85
|
+
this.state.progress.setValue(progress);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
animate() {
|
|
90
|
+
const {
|
|
91
|
+
useNativeDriver = false,
|
|
92
|
+
indeterminateAnimationDuration = 1000
|
|
93
|
+
} = this.props;
|
|
94
|
+
this.state.animationValue.setValue(0);
|
|
95
|
+
_reactNative.Animated.timing(this.state.animationValue, {
|
|
96
|
+
toValue: 1,
|
|
97
|
+
duration: indeterminateAnimationDuration,
|
|
98
|
+
easing: _reactNative.Easing.linear,
|
|
99
|
+
isInteraction: false,
|
|
100
|
+
useNativeDriver
|
|
101
|
+
}).start(endState => {
|
|
102
|
+
if (endState.finished) {
|
|
103
|
+
this.animate();
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
render() {
|
|
108
|
+
const {
|
|
109
|
+
borderColor,
|
|
110
|
+
borderRadius = 4,
|
|
111
|
+
borderWidth = 1,
|
|
112
|
+
children,
|
|
113
|
+
color = "rgba(0, 122, 255, 1)",
|
|
114
|
+
style,
|
|
115
|
+
unfilledColor,
|
|
116
|
+
width = 150,
|
|
117
|
+
...restProps
|
|
118
|
+
} = this.props;
|
|
119
|
+
const innerWidth = Math.max(0, width || this.state.width) - borderWidth * 2;
|
|
120
|
+
const containerStyle = {
|
|
121
|
+
width,
|
|
122
|
+
borderWidth,
|
|
123
|
+
borderColor: borderColor || color,
|
|
124
|
+
borderRadius,
|
|
125
|
+
overflow: "hidden",
|
|
126
|
+
backgroundColor: unfilledColor
|
|
127
|
+
};
|
|
128
|
+
const progressStyle = {
|
|
129
|
+
backgroundColor: color,
|
|
130
|
+
// Always take up full height of container.
|
|
131
|
+
height: "100%",
|
|
132
|
+
transform: [{
|
|
133
|
+
translateX: this.state.animationValue.interpolate({
|
|
134
|
+
inputRange: [0, 1],
|
|
135
|
+
outputRange: [innerWidth * -INDETERMINATE_WIDTH_FACTOR, innerWidth]
|
|
136
|
+
})
|
|
137
|
+
}, {
|
|
138
|
+
translateX: this.state.progress.interpolate({
|
|
139
|
+
inputRange: [0, 1],
|
|
140
|
+
outputRange: [innerWidth / (_reactNative.I18nManager.isRTL ? 2 : -2), 0]
|
|
141
|
+
})
|
|
142
|
+
}, {
|
|
143
|
+
// Interpolation a temp workaround for https://github.com/facebook/react-native/issues/6278
|
|
144
|
+
scaleX: this.state.progress.interpolate({
|
|
145
|
+
inputRange: [0, 1],
|
|
146
|
+
outputRange: [0.0001, 1]
|
|
147
|
+
})
|
|
148
|
+
}]
|
|
149
|
+
};
|
|
150
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
|
|
151
|
+
style: [containerStyle, style],
|
|
152
|
+
onLayout: this.handleLayout
|
|
153
|
+
}, restProps), /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
|
|
154
|
+
style: progressStyle
|
|
155
|
+
}), children);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
exports.default = ProgressBar;
|