@draftbit/core 47.0.0-df8093.2 → 47.0.1-9fd6f2.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 +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 +5 -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 +5 -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 +1 -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 +1 -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.js +43 -0
- package/src/components/AnimatedCircularProgress.tsx +101 -0
- package/src/components/AspectRatio.js +18 -0
- package/src/components/AspectRatio.tsx +40 -0
- package/src/components/AvatarEdit.js +30 -0
- package/src/components/AvatarEdit.tsx +64 -0
- package/src/components/Card.js +57 -0
- package/src/components/Card.tsx +161 -0
- package/src/components/CardBlock.js +54 -0
- package/src/components/CardBlock.tsx +127 -0
- package/src/components/CardContainer.js +69 -0
- package/src/components/CardContainer.tsx +165 -0
- package/src/components/CardContainerRating.js +79 -0
- package/src/components/CardContainerRating.tsx +175 -0
- package/src/components/CardContainerShortImage.js +33 -0
- package/src/components/CardContainerShortImage.tsx +101 -0
- package/src/components/CardInline.js +36 -0
- package/src/components/CardInline.tsx +93 -0
- package/src/components/Carousel.js +68 -0
- package/src/components/Carousel.tsx +134 -0
- package/src/components/CircleImage.js +8 -0
- package/src/components/CircleImage.tsx +33 -0
- package/src/components/CircularProgress.js +81 -0
- package/src/components/CircularProgress.tsx +188 -0
- package/src/components/Container.js +43 -0
- package/src/components/Container.tsx +116 -0
- package/src/components/DatePicker/DatePicker.js +19 -10
- package/src/components/DatePicker/DatePicker.tsx +29 -11
- package/src/components/DeprecatedCardWrapper.js +18 -0
- package/src/components/DeprecatedCardWrapper.tsx +46 -0
- package/src/components/DeprecatedFAB.js +115 -0
- package/src/components/DeprecatedFAB.tsx +231 -0
- package/src/components/Divider.js +13 -0
- package/src/components/Divider.tsx +32 -0
- package/src/components/FAB.js +46 -0
- package/src/components/FAB.tsx +108 -0
- package/src/components/FieldSearchBarFull.js +53 -0
- package/src/components/FieldSearchBarFull.tsx +126 -0
- package/src/components/Header.js +44 -0
- package/src/components/Header.tsx +105 -0
- package/src/components/HeaderLarge.js +7 -0
- package/src/components/HeaderLarge.tsx +40 -0
- package/src/components/HeaderMedium.js +7 -0
- package/src/components/HeaderMedium.tsx +41 -0
- package/src/components/HeaderOverline.js +7 -0
- package/src/components/HeaderOverline.tsx +42 -0
- package/src/components/Image.js +47 -0
- package/src/components/Image.tsx +91 -0
- package/src/components/Justification.js +1 -0
- package/src/components/Justification.ts +8 -0
- package/src/components/Picker/Picker.js +1 -1
- package/src/components/Picker/Picker.tsx +2 -2
- package/src/components/ProgressBar.js +118 -0
- package/src/components/ProgressBar.tsx +191 -0
- package/src/components/ProgressCircle.js +13 -0
- package/src/components/ProgressCircle.tsx +64 -0
- package/src/components/ProgressIndicator.js +27 -0
- package/src/components/ProgressIndicator.tsx +71 -0
- package/src/components/ResizeMode.js +1 -0
- package/src/components/ResizeMode.ts +7 -0
- package/src/components/Row.js +48 -0
- package/src/components/Row.tsx +108 -0
- package/src/components/RowBodyIcon.js +8 -0
- package/src/components/RowBodyIcon.tsx +47 -0
- package/src/components/RowHeadlineImageCaption.js +12 -0
- package/src/components/RowHeadlineImageCaption.tsx +49 -0
- package/src/components/RowHeadlineImageIcon.js +14 -0
- package/src/components/RowHeadlineImageIcon.tsx +61 -0
- package/src/components/StepIndicator.js +346 -0
- package/src/components/StepIndicator.tsx +494 -0
- package/src/components/Stepper.js +5 -3
- package/src/components/Stepper.tsx +5 -5
- package/src/components/ToggleButton.js +39 -0
- package/src/components/ToggleButton.tsx +94 -0
- package/src/components/Typography.js +36 -0
- package/src/components/Typography.tsx +67 -0
- package/src/components/useAuthState.js +31 -0
- package/src/components/useAuthState.tsx +38 -0
- package/src/index.js +41 -24
- package/src/index.tsx +51 -38
- package/src/mappings/AudioPlayer.js +39 -2
- package/src/mappings/AudioPlayer.ts +41 -1
- package/src/mappings/AvatarEdit.js +38 -0
- package/src/mappings/AvatarEdit.ts +45 -0
- package/src/mappings/Banner.js +32 -0
- package/src/mappings/Banner.ts +40 -0
- package/src/mappings/Card.js +52 -0
- package/src/mappings/Card.ts +64 -0
- package/src/mappings/CardBlock.js +123 -0
- package/src/mappings/CardBlock.ts +136 -0
- package/src/mappings/CardContainer.js +104 -0
- package/src/mappings/CardContainer.ts +116 -0
- package/src/mappings/CardContainerRating.js +126 -0
- package/src/mappings/CardContainerRating.ts +137 -0
- package/src/mappings/CardContainerShortImage.js +120 -0
- package/src/mappings/CardContainerShortImage.ts +130 -0
- package/src/mappings/CardInline.js +52 -0
- package/src/mappings/CardInline.ts +61 -0
- package/src/mappings/Carousel.js +19 -0
- package/src/mappings/Carousel.ts +25 -0
- package/src/mappings/CircleImage.js +25 -0
- package/src/mappings/CircleImage.ts +33 -0
- package/src/mappings/Container.js +30 -0
- package/src/mappings/Container.ts +41 -0
- package/src/mappings/DatePicker.js +30 -11
- package/src/mappings/DatePicker.ts +32 -10
- package/src/mappings/Divider.js +27 -0
- package/src/mappings/Divider.ts +34 -0
- package/src/mappings/FAB.js +37 -0
- package/src/mappings/FAB.ts +48 -0
- package/src/mappings/FieldSearchBarFull.js +50 -0
- package/src/mappings/FieldSearchBarFull.ts +59 -0
- package/src/mappings/HeaderLarge.js +29 -0
- package/src/mappings/HeaderLarge.ts +38 -0
- package/src/mappings/HeaderMedium.js +55 -0
- package/src/mappings/HeaderMedium.ts +63 -0
- package/src/mappings/HeaderOverline.js +55 -0
- package/src/mappings/HeaderOverline.ts +63 -0
- package/src/mappings/ProgressBar.js +101 -0
- package/src/mappings/ProgressBar.ts +110 -0
- package/src/mappings/ProgressCircle.js +109 -0
- package/src/mappings/ProgressCircle.ts +117 -0
- package/src/mappings/ProgressIndicator.js +181 -0
- package/src/mappings/ProgressIndicator.ts +190 -0
- package/src/mappings/RowBodyIcon.js +75 -0
- package/src/mappings/RowBodyIcon.ts +82 -0
- package/src/mappings/RowHeadlineImageCaption.js +167 -0
- package/src/mappings/RowHeadlineImageCaption.ts +178 -0
- package/src/mappings/RowHeadlineImageIcon.js +99 -0
- package/src/mappings/RowHeadlineImageIcon.ts +116 -0
- 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/src/mappings/ToggleButton.js +50 -0
- package/src/mappings/ToggleButton.ts +63 -0
- package/src/mappings/Touchable.js +1 -1
- 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
|
@@ -0,0 +1,93 @@
|
|
|
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 _Elevation = _interopRequireDefault(require("./Elevation"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
14
|
+
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); }
|
|
15
|
+
const Container = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
useThemeGutterPadding,
|
|
18
|
+
borderColor,
|
|
19
|
+
borderWidth,
|
|
20
|
+
backgroundColor,
|
|
21
|
+
backgroundImage,
|
|
22
|
+
backgroundImageResizeMode,
|
|
23
|
+
elevation,
|
|
24
|
+
style,
|
|
25
|
+
children,
|
|
26
|
+
theme,
|
|
27
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
28
|
+
...rest
|
|
29
|
+
} = _ref;
|
|
30
|
+
const {
|
|
31
|
+
flex,
|
|
32
|
+
flexGrow,
|
|
33
|
+
flexWrap,
|
|
34
|
+
flexBasis,
|
|
35
|
+
flexShrink,
|
|
36
|
+
flexDirection,
|
|
37
|
+
alignContent,
|
|
38
|
+
justifyContent,
|
|
39
|
+
alignItems,
|
|
40
|
+
padding,
|
|
41
|
+
paddingTop,
|
|
42
|
+
paddingBottom,
|
|
43
|
+
paddingLeft,
|
|
44
|
+
paddingRight,
|
|
45
|
+
paddingVertical,
|
|
46
|
+
paddingHorizontal,
|
|
47
|
+
...styleProp
|
|
48
|
+
} = _reactNative.StyleSheet.flatten(style) || {};
|
|
49
|
+
const containerStyle = {
|
|
50
|
+
backgroundColor,
|
|
51
|
+
borderColor,
|
|
52
|
+
borderWidth,
|
|
53
|
+
width: "100%",
|
|
54
|
+
...styleProp
|
|
55
|
+
};
|
|
56
|
+
const innerStyle = {
|
|
57
|
+
flex,
|
|
58
|
+
flexGrow,
|
|
59
|
+
flexWrap,
|
|
60
|
+
flexBasis,
|
|
61
|
+
flexShrink,
|
|
62
|
+
flexDirection,
|
|
63
|
+
alignContent,
|
|
64
|
+
justifyContent,
|
|
65
|
+
alignItems,
|
|
66
|
+
padding,
|
|
67
|
+
paddingTop,
|
|
68
|
+
paddingBottom,
|
|
69
|
+
paddingLeft,
|
|
70
|
+
paddingRight,
|
|
71
|
+
paddingVertical,
|
|
72
|
+
paddingHorizontal: paddingHorizontal || useThemeGutterPadding ? 16 : 0
|
|
73
|
+
};
|
|
74
|
+
const Wrap = elevation ? _Elevation.default : _reactNative.View;
|
|
75
|
+
if (elevation) containerStyle.elevation = elevation;
|
|
76
|
+
return /*#__PURE__*/React.createElement(Wrap, _extends({
|
|
77
|
+
style: [containerStyle, style]
|
|
78
|
+
}, rest), backgroundImage ? /*#__PURE__*/React.createElement(_reactNative.ImageBackground, {
|
|
79
|
+
source: typeof backgroundImage === "string" ? {
|
|
80
|
+
uri: backgroundImage
|
|
81
|
+
} : backgroundImage,
|
|
82
|
+
resizeMode: backgroundImageResizeMode,
|
|
83
|
+
style: {
|
|
84
|
+
flex: 1
|
|
85
|
+
}
|
|
86
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
87
|
+
style: innerStyle
|
|
88
|
+
}, children)) : /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
89
|
+
style: innerStyle
|
|
90
|
+
}, children));
|
|
91
|
+
};
|
|
92
|
+
var _default = (0, _theming.withTheme)(Container);
|
|
93
|
+
exports.default = _default;
|
|
@@ -12,6 +12,7 @@ var _theming = require("../../theming");
|
|
|
12
12
|
var _Portal = _interopRequireDefault(require("../Portal/Portal"));
|
|
13
13
|
var _Touchable = _interopRequireDefault(require("../Touchable"));
|
|
14
14
|
var _DatePickerComponent = _interopRequireDefault(require("./DatePickerComponent"));
|
|
15
|
+
var _utilities = require("../../utilities");
|
|
15
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
17
|
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); }
|
|
17
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -42,7 +43,11 @@ const DatePicker = _ref => {
|
|
|
42
43
|
rightIconName,
|
|
43
44
|
leftIconMode = "inset",
|
|
44
45
|
label,
|
|
46
|
+
labelSize,
|
|
47
|
+
labelColor,
|
|
45
48
|
placeholder,
|
|
49
|
+
borderColor: inputBorderColor,
|
|
50
|
+
borderColorActive: inputBorderColorActive,
|
|
46
51
|
...props
|
|
47
52
|
} = _ref;
|
|
48
53
|
const [value, setValue] = React.useState(date || defaultValue);
|
|
@@ -59,6 +64,10 @@ const DatePicker = _ref => {
|
|
|
59
64
|
measured: false,
|
|
60
65
|
width: 0
|
|
61
66
|
});
|
|
67
|
+
const {
|
|
68
|
+
viewStyles,
|
|
69
|
+
textStyles
|
|
70
|
+
} = (0, _utilities.extractStyles)(style);
|
|
62
71
|
const getValidDate = () => {
|
|
63
72
|
if (!value) {
|
|
64
73
|
return new Date();
|
|
@@ -70,12 +79,12 @@ const DatePicker = _ref => {
|
|
|
70
79
|
let newDate = getValidDate();
|
|
71
80
|
if (format) return (0, _dateformat.default)(newDate, format);
|
|
72
81
|
if (mode === "time") {
|
|
73
|
-
return
|
|
82
|
+
return "".concat(newDate.toLocaleTimeString());
|
|
74
83
|
}
|
|
75
84
|
if (mode === "datetime") {
|
|
76
|
-
return
|
|
85
|
+
return "".concat(newDate.toLocaleString());
|
|
77
86
|
}
|
|
78
|
-
return
|
|
87
|
+
return "".concat(MONTHS[newDate.getMonth()], " ").concat(newDate.getDate(), ", ").concat(newDate.getFullYear());
|
|
79
88
|
};
|
|
80
89
|
const toggleVisibility = async () => {
|
|
81
90
|
setPickerVisible(!pickerVisible);
|
|
@@ -148,8 +157,8 @@ const DatePicker = _ref => {
|
|
|
148
157
|
};
|
|
149
158
|
const MINIMIZED_LABEL_Y_OFFSET = -(typography.caption.lineHeight + 4);
|
|
150
159
|
const OUTLINE_MINIMIZED_LABEL_Y_OFFSET = -(16 * 0.5 + 4);
|
|
151
|
-
const MAXIMIZED_LABEL_FONT_SIZE = typography.subtitle1.fontSize;
|
|
152
|
-
const MINIMIZED_LABEL_FONT_SIZE = typography.caption.fontSize;
|
|
160
|
+
const MAXIMIZED_LABEL_FONT_SIZE = textStyles.fontSize || typography.subtitle1.fontSize;
|
|
161
|
+
const MINIMIZED_LABEL_FONT_SIZE = labelSize ? labelSize : typography.caption.fontSize;
|
|
153
162
|
const hasActiveOutline = focused;
|
|
154
163
|
let inputTextColor, activeColor, underlineColor, borderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
|
|
155
164
|
inputTextColor = colors.strong;
|
|
@@ -160,9 +169,9 @@ const DatePicker = _ref => {
|
|
|
160
169
|
underlineColor = "transparent";
|
|
161
170
|
backgroundColor = colors.divider;
|
|
162
171
|
} else {
|
|
163
|
-
activeColor = colors.primary;
|
|
164
|
-
placeholderColor =
|
|
165
|
-
underlineColor = colors.light;
|
|
172
|
+
activeColor = inputBorderColorActive || colors.primary;
|
|
173
|
+
placeholderColor = inputBorderColor || colors.light;
|
|
174
|
+
underlineColor = inputBorderColor || colors.light;
|
|
166
175
|
backgroundColor = colors.background;
|
|
167
176
|
}
|
|
168
177
|
const {
|
|
@@ -217,6 +226,7 @@ const DatePicker = _ref => {
|
|
|
217
226
|
const labelStyle = {
|
|
218
227
|
...typography.subtitle1,
|
|
219
228
|
top: type === "solid" ? 16 : 0,
|
|
229
|
+
fontFamily: textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontFamily,
|
|
220
230
|
left: leftIconName && leftIconMode === "inset" ? ICON_SIZE + (type === "solid" ? 16 : 12) : 0,
|
|
221
231
|
transform: [{
|
|
222
232
|
// Move label to top
|
|
@@ -258,7 +268,7 @@ const DatePicker = _ref => {
|
|
|
258
268
|
})) : null, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
259
269
|
style: [containerStyle, style ? {
|
|
260
270
|
height: style.height
|
|
261
|
-
} : {}]
|
|
271
|
+
} : {}, viewStyles]
|
|
262
272
|
}, type === "underline" ?
|
|
263
273
|
/*#__PURE__*/
|
|
264
274
|
// When type === 'flat', render an underline
|
|
@@ -289,7 +299,7 @@ const DatePicker = _ref => {
|
|
|
289
299
|
style: [styles.placeholder, type === "solid" ? {
|
|
290
300
|
paddingHorizontal: 12
|
|
291
301
|
} : {}, labelStyle, {
|
|
292
|
-
color: colors.light,
|
|
302
|
+
color: labelColor || colors.light,
|
|
293
303
|
opacity: labeled.interpolate({
|
|
294
304
|
inputRange: [0, 1],
|
|
295
305
|
outputRange: [hasActiveOutline ? 1 : 0, 0]
|
|
@@ -300,7 +310,7 @@ const DatePicker = _ref => {
|
|
|
300
310
|
style: [styles.placeholder, type === "solid" ? {
|
|
301
311
|
paddingHorizontal: 12
|
|
302
312
|
} : {}, labelStyle, {
|
|
303
|
-
color: placeholderColor,
|
|
313
|
+
color: labelColor || placeholderColor,
|
|
304
314
|
opacity: hasActiveOutline ? labeled : 1
|
|
305
315
|
}],
|
|
306
316
|
numberOfLines: 1
|
|
@@ -318,7 +328,7 @@ const DatePicker = _ref => {
|
|
|
318
328
|
onFocus: _handleFocus,
|
|
319
329
|
onBlur: _handleBlur,
|
|
320
330
|
underlineColorAndroid: "transparent",
|
|
321
|
-
style: inputStyles
|
|
331
|
+
style: [inputStyles, textStyles]
|
|
322
332
|
}, props))), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
323
333
|
name: rightIconName,
|
|
324
334
|
size: ICON_SIZE,
|
|
@@ -391,5 +401,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
391
401
|
}
|
|
392
402
|
});
|
|
393
403
|
var _default = (0, _theming.withTheme)(DatePicker);
|
|
394
|
-
exports.default = _default;
|
|
395
|
-
//# sourceMappingURL=DatePicker.js.map
|
|
404
|
+
exports.default = _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 _theming = require("../theming");
|
|
9
|
+
var _Touchable = _interopRequireDefault(require("./Touchable"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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
|
+
const getWidth = numColumns => {
|
|
13
|
+
switch (numColumns) {
|
|
14
|
+
case 1:
|
|
15
|
+
return "33%";
|
|
16
|
+
case 2:
|
|
17
|
+
return "50%";
|
|
18
|
+
default:
|
|
19
|
+
return "100%";
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const Card = _ref => {
|
|
23
|
+
let {
|
|
24
|
+
numColumns = 3,
|
|
25
|
+
children,
|
|
26
|
+
onPress,
|
|
27
|
+
style,
|
|
28
|
+
...rest
|
|
29
|
+
} = _ref;
|
|
30
|
+
const width = getWidth(numColumns);
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_Touchable.default, _extends({
|
|
32
|
+
disabled: !onPress,
|
|
33
|
+
onPress: onPress,
|
|
34
|
+
style: [style, {
|
|
35
|
+
width
|
|
36
|
+
}]
|
|
37
|
+
}, rest), children);
|
|
38
|
+
};
|
|
39
|
+
var _default = (0, _theming.withTheme)(Card);
|
|
40
|
+
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
|
+
var _color = _interopRequireDefault(require("color"));
|
|
10
|
+
var _Config = _interopRequireDefault(require("./Config"));
|
|
11
|
+
var _Text = _interopRequireDefault(require("./Text"));
|
|
12
|
+
var _Touchable = _interopRequireDefault(require("./Touchable"));
|
|
13
|
+
var _Elevation = _interopRequireDefault(require("./Elevation"));
|
|
14
|
+
var _theming = require("../theming");
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
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); }
|
|
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
|
+
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
|
+
const FAB = _ref => {
|
|
20
|
+
let {
|
|
21
|
+
Icon,
|
|
22
|
+
icon,
|
|
23
|
+
disabled = false,
|
|
24
|
+
type = "solid",
|
|
25
|
+
loading = false,
|
|
26
|
+
color: colorOverride,
|
|
27
|
+
label,
|
|
28
|
+
onPress,
|
|
29
|
+
elevation = 0,
|
|
30
|
+
style,
|
|
31
|
+
theme: {
|
|
32
|
+
colors,
|
|
33
|
+
disabledOpacity,
|
|
34
|
+
roundness,
|
|
35
|
+
typography
|
|
36
|
+
},
|
|
37
|
+
...rest
|
|
38
|
+
} = _ref;
|
|
39
|
+
let backgroundColor, borderColor, textColor, borderWidth;
|
|
40
|
+
const buttonColor = colorOverride || colors.primary;
|
|
41
|
+
if (type === "standard" || type === "extended" || type === "fixed") {
|
|
42
|
+
backgroundColor = buttonColor;
|
|
43
|
+
if (disabled) {
|
|
44
|
+
textColor = (0, _color.default)(colors.surface).alpha(disabledOpacity).rgb().string();
|
|
45
|
+
} else {
|
|
46
|
+
textColor = colors.surface;
|
|
47
|
+
}
|
|
48
|
+
} else {
|
|
49
|
+
backgroundColor = "transparent";
|
|
50
|
+
if (disabled) {
|
|
51
|
+
textColor = (0, _color.default)(buttonColor).alpha(disabledOpacity).rgb().string();
|
|
52
|
+
} else {
|
|
53
|
+
textColor = buttonColor;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (type === "outline") {
|
|
57
|
+
if (disabled) {
|
|
58
|
+
borderColor = (0, _color.default)(buttonColor).alpha(disabledOpacity).rgb().string();
|
|
59
|
+
} else {
|
|
60
|
+
borderColor = buttonColor;
|
|
61
|
+
}
|
|
62
|
+
borderWidth = _reactNative.StyleSheet.hairlineWidth;
|
|
63
|
+
} else {
|
|
64
|
+
borderColor = "transparent";
|
|
65
|
+
borderWidth = 0;
|
|
66
|
+
}
|
|
67
|
+
const buttonStyle = {
|
|
68
|
+
backgroundColor,
|
|
69
|
+
borderColor,
|
|
70
|
+
borderWidth,
|
|
71
|
+
borderRadius: roundness,
|
|
72
|
+
alignItems: "center",
|
|
73
|
+
justifyContent: "center"
|
|
74
|
+
};
|
|
75
|
+
const buttonStyles = [styles.button, buttonStyle];
|
|
76
|
+
const contentStyle = [styles.content];
|
|
77
|
+
const textStyle = {
|
|
78
|
+
textAlign: "center",
|
|
79
|
+
color: textColor
|
|
80
|
+
};
|
|
81
|
+
const iconStyle = [styles.icon, {
|
|
82
|
+
width: _Config.default.buttonIconSize
|
|
83
|
+
}];
|
|
84
|
+
if (type === "standard" || type === "outline") {
|
|
85
|
+
buttonStyle.width = _Config.default.FABSize;
|
|
86
|
+
buttonStyle.height = _Config.default.FABSize;
|
|
87
|
+
buttonStyle.borderRadius = _Config.default.FABBorderRadius;
|
|
88
|
+
contentStyle.push({
|
|
89
|
+
width: _Config.default.FABSize,
|
|
90
|
+
height: _Config.default.FABSize
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
if (type === "extended" || type === "fixed") {
|
|
94
|
+
iconStyle.push({
|
|
95
|
+
marginLeft: 16,
|
|
96
|
+
marginRight: -8
|
|
97
|
+
});
|
|
98
|
+
textStyle.margin = 16;
|
|
99
|
+
}
|
|
100
|
+
if (type === "fixed") {
|
|
101
|
+
buttonStyles.push({
|
|
102
|
+
height: _Config.default.FABFixedHeight,
|
|
103
|
+
alignSelf: "stretch"
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
return /*#__PURE__*/React.createElement(_Elevation.default, {
|
|
107
|
+
style: [{
|
|
108
|
+
elevation
|
|
109
|
+
}, style]
|
|
110
|
+
}, /*#__PURE__*/React.createElement(_Touchable.default, _extends({}, rest, {
|
|
111
|
+
onPress: onPress,
|
|
112
|
+
accessibilityState: {
|
|
113
|
+
disabled
|
|
114
|
+
},
|
|
115
|
+
accessibilityRole: "button",
|
|
116
|
+
disabled: disabled || loading,
|
|
117
|
+
style: buttonStyles
|
|
118
|
+
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
119
|
+
style: styles.content
|
|
120
|
+
}, icon && loading !== true ? /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
121
|
+
style: iconStyle
|
|
122
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
123
|
+
name: icon,
|
|
124
|
+
size: _Config.default.buttonIconSize,
|
|
125
|
+
color: textColor
|
|
126
|
+
})) : null, loading ? /*#__PURE__*/React.createElement(_reactNative.ActivityIndicator, {
|
|
127
|
+
size: "small",
|
|
128
|
+
color: textColor,
|
|
129
|
+
style: iconStyle
|
|
130
|
+
}) : null, label ? /*#__PURE__*/React.createElement(_Text.default, {
|
|
131
|
+
numberOfLines: 1,
|
|
132
|
+
style: [textStyle, typography.button]
|
|
133
|
+
}, label) : null)));
|
|
134
|
+
};
|
|
135
|
+
const styles = _reactNative.StyleSheet.create({
|
|
136
|
+
button: {
|
|
137
|
+
borderStyle: "solid"
|
|
138
|
+
},
|
|
139
|
+
content: {
|
|
140
|
+
flexDirection: "row",
|
|
141
|
+
alignItems: "center",
|
|
142
|
+
justifyContent: "center"
|
|
143
|
+
},
|
|
144
|
+
icon: {
|
|
145
|
+
alignItems: "center",
|
|
146
|
+
justifyContent: "center",
|
|
147
|
+
width: _Config.default.buttonIconSize
|
|
148
|
+
},
|
|
149
|
+
fixed: {
|
|
150
|
+
left: 0,
|
|
151
|
+
right: 0,
|
|
152
|
+
bottom: 0,
|
|
153
|
+
height: 64,
|
|
154
|
+
borderRadius: 0
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
var _default = (0, _theming.withTheme)(FAB);
|
|
158
|
+
exports.default = _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
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); }
|
|
11
|
+
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; }
|
|
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 Divider = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
style,
|
|
16
|
+
color,
|
|
17
|
+
theme: {
|
|
18
|
+
colors
|
|
19
|
+
},
|
|
20
|
+
...rest
|
|
21
|
+
} = _ref;
|
|
22
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
23
|
+
style: [{
|
|
24
|
+
backgroundColor: color || colors.divider,
|
|
25
|
+
height: _reactNative.StyleSheet.hairlineWidth
|
|
26
|
+
}, style]
|
|
27
|
+
}, rest));
|
|
28
|
+
};
|
|
29
|
+
var _default = (0, _theming.withTheme)(Divider);
|
|
30
|
+
exports.default = _default;
|
|
@@ -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
|
+
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); }
|
|
11
|
+
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; }
|
|
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 FAB = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
onPress,
|
|
16
|
+
disabled,
|
|
17
|
+
loading,
|
|
18
|
+
iconName = "MaterialIcons/add",
|
|
19
|
+
style,
|
|
20
|
+
theme,
|
|
21
|
+
iconColor,
|
|
22
|
+
bgColor,
|
|
23
|
+
size = 50,
|
|
24
|
+
Icon,
|
|
25
|
+
...props
|
|
26
|
+
} = _ref;
|
|
27
|
+
const backgroundColor = bgColor || theme.colors.primary;
|
|
28
|
+
const color = iconColor || "#FFF";
|
|
29
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
30
|
+
style: [{
|
|
31
|
+
width: size,
|
|
32
|
+
height: size,
|
|
33
|
+
borderRadius: size / 2,
|
|
34
|
+
overflow: "hidden"
|
|
35
|
+
}, style]
|
|
36
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
|
|
37
|
+
onPress: onPress,
|
|
38
|
+
disabled: loading || disabled,
|
|
39
|
+
android_ripple: {
|
|
40
|
+
color: "#333",
|
|
41
|
+
radius: size / 4
|
|
42
|
+
},
|
|
43
|
+
style: _ref2 => {
|
|
44
|
+
let {
|
|
45
|
+
pressed
|
|
46
|
+
} = _ref2;
|
|
47
|
+
return [styles.button, {
|
|
48
|
+
opacity: pressed || disabled ? 0.75 : 1,
|
|
49
|
+
width: size,
|
|
50
|
+
height: size,
|
|
51
|
+
borderRadius: size / 2,
|
|
52
|
+
backgroundColor
|
|
53
|
+
}];
|
|
54
|
+
}
|
|
55
|
+
}, props), /*#__PURE__*/React.createElement(_reactNative.View, null, loading ? /*#__PURE__*/React.createElement(_reactNative.ActivityIndicator, {
|
|
56
|
+
style: size > 50 ? {
|
|
57
|
+
marginTop: 2,
|
|
58
|
+
marginLeft: 2
|
|
59
|
+
} : undefined,
|
|
60
|
+
size: size <= 50 ? "small" : "large",
|
|
61
|
+
color: color
|
|
62
|
+
}) : /*#__PURE__*/React.createElement(Icon, {
|
|
63
|
+
name: iconName,
|
|
64
|
+
size: size,
|
|
65
|
+
color: color
|
|
66
|
+
}))));
|
|
67
|
+
};
|
|
68
|
+
const styles = _reactNative.StyleSheet.create({
|
|
69
|
+
button: {
|
|
70
|
+
backgroundColor: "#5a45ff",
|
|
71
|
+
justifyContent: "center",
|
|
72
|
+
alignItems: "center",
|
|
73
|
+
..._reactNative.Platform.select({
|
|
74
|
+
web: {
|
|
75
|
+
cursor: "pointer",
|
|
76
|
+
userSelect: "none"
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
var _default = (0, _theming.withTheme)(FAB);
|
|
82
|
+
exports.default = _default;
|
|
@@ -0,0 +1,97 @@
|
|
|
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 _Config = _interopRequireDefault(require("./Config"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
14
|
+
const FieldSearchBarFull = _ref => {
|
|
15
|
+
let {
|
|
16
|
+
showIcon,
|
|
17
|
+
Icon,
|
|
18
|
+
icon = "search",
|
|
19
|
+
placeholder = "",
|
|
20
|
+
style,
|
|
21
|
+
theme: {
|
|
22
|
+
colors,
|
|
23
|
+
typography
|
|
24
|
+
},
|
|
25
|
+
onChange: changeOverride,
|
|
26
|
+
onSubmit: submitOverride,
|
|
27
|
+
value,
|
|
28
|
+
defaultValue
|
|
29
|
+
} = _ref;
|
|
30
|
+
const [focused, setIsFocused] = React.useState(false);
|
|
31
|
+
const onBlur = () => {
|
|
32
|
+
setIsFocused(false);
|
|
33
|
+
};
|
|
34
|
+
const [internalValue, setInternalValue] = React.useState(value || defaultValue);
|
|
35
|
+
React.useEffect(() => {
|
|
36
|
+
if (value != null) {
|
|
37
|
+
setInternalValue(value);
|
|
38
|
+
}
|
|
39
|
+
}, [value]);
|
|
40
|
+
React.useEffect(() => {
|
|
41
|
+
if (defaultValue != null) {
|
|
42
|
+
setInternalValue(defaultValue);
|
|
43
|
+
}
|
|
44
|
+
}, [defaultValue]);
|
|
45
|
+
const onChange = React.useCallback(text => {
|
|
46
|
+
changeOverride && changeOverride(text);
|
|
47
|
+
}, [changeOverride]);
|
|
48
|
+
const onFocus = () => {
|
|
49
|
+
setIsFocused(true);
|
|
50
|
+
};
|
|
51
|
+
const onSubmit = e => {
|
|
52
|
+
submitOverride && submitOverride(e);
|
|
53
|
+
};
|
|
54
|
+
const {
|
|
55
|
+
lineHeight,
|
|
56
|
+
...typeStyles
|
|
57
|
+
} = typography.body2; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
58
|
+
|
|
59
|
+
const handleChangeText = newValue => {
|
|
60
|
+
setInternalValue(newValue);
|
|
61
|
+
if (onChange) {
|
|
62
|
+
onChange(newValue);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
66
|
+
style: [styles.container, style]
|
|
67
|
+
}, showIcon && /*#__PURE__*/React.createElement(Icon, {
|
|
68
|
+
name: icon,
|
|
69
|
+
size: _Config.default.fieldSearchBarFullIconSize,
|
|
70
|
+
color: focused ? colors.primary : colors.light
|
|
71
|
+
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
72
|
+
style: {
|
|
73
|
+
marginLeft: showIcon ? 12 : 0,
|
|
74
|
+
flex: 1
|
|
75
|
+
}
|
|
76
|
+
}, /*#__PURE__*/React.createElement(_reactNative.TextInput, {
|
|
77
|
+
clearButtonMode: "while-editing",
|
|
78
|
+
placeholder: placeholder,
|
|
79
|
+
value: internalValue,
|
|
80
|
+
onBlur: onBlur,
|
|
81
|
+
onFocus: onFocus,
|
|
82
|
+
onChangeText: handleChangeText,
|
|
83
|
+
onSubmitEditing: onSubmit,
|
|
84
|
+
placeholderTextColor: colors.light,
|
|
85
|
+
style: [{
|
|
86
|
+
color: colors.medium
|
|
87
|
+
}, typeStyles]
|
|
88
|
+
})));
|
|
89
|
+
};
|
|
90
|
+
const styles = _reactNative.StyleSheet.create({
|
|
91
|
+
container: {
|
|
92
|
+
flexDirection: "row",
|
|
93
|
+
alignItems: "center"
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
var _default = (0, _theming.withTheme)(FieldSearchBarFull);
|
|
97
|
+
exports.default = _default;
|