@draftbit/core 46.4.4-fe82de.2 → 46.5.1-c6140a.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Accordion/AccordionItem.js +23 -4
- package/lib/commonjs/components/AnimatedCircularProgress.js +1 -12
- package/lib/commonjs/components/AspectRatio.js +1 -17
- package/lib/commonjs/components/Button.js +33 -10
- package/lib/commonjs/components/Carousel.js +2 -1
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +23 -6
- package/lib/commonjs/components/CircleImage.js +15 -1
- package/lib/commonjs/components/CircularProgress.js +26 -8
- package/lib/commonjs/components/Config.js +3 -3
- package/lib/commonjs/components/Container.js +15 -4
- package/lib/commonjs/components/DatePicker/DatePicker.js +10 -9
- package/lib/commonjs/components/Elevation.js +14 -2
- package/lib/commonjs/components/Picker/Picker.js +8 -8
- package/lib/commonjs/components/Picker/PickerComponent.android.js +20 -3
- package/lib/commonjs/components/Picker/PickerComponent.ios.js +2 -2
- package/lib/commonjs/components/Picker/PickerComponent.web.js +20 -3
- package/lib/commonjs/components/Portal/PortalManager.js +34 -8
- package/lib/commonjs/components/RadioButton/RadioButton.js +1 -1
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js +1 -1
- package/lib/commonjs/components/StepIndicator.js +1 -1
- package/lib/commonjs/components/Stepper.js +8 -5
- package/lib/commonjs/hooks.js +1 -2
- package/lib/commonjs/mappings/AudioPlayer.js +32 -2
- package/lib/commonjs/mappings/DatePicker.js +12 -12
- package/lib/commonjs/mappings/Stepper.js +1 -1
- package/lib/commonjs/mappings/TextArea.js +14 -3
- package/lib/commonjs/mappings/TextField.js +14 -4
- package/lib/commonjs/mappings/TextInput.js +14 -3
- package/lib/commonjs/utilities.js +1 -1
- package/lib/module/components/CardBlock.js +14 -4
- package/lib/module/components/CardContainer.js +14 -4
- package/lib/module/components/Carousel.js +6 -1
- package/lib/module/components/Config.js +3 -3
- package/lib/module/components/DatePicker/DatePicker.js +10 -9
- package/lib/module/components/FieldSearchBarFull.js +1 -2
- package/lib/module/components/FormRow.js +17 -2
- package/lib/module/components/IconButton.js +21 -4
- package/lib/module/components/Image.js +18 -2
- package/lib/module/components/Picker/Picker.js +5 -5
- package/lib/module/components/Picker/PickerComponent.android.js +2 -2
- package/lib/module/components/Picker/PickerComponent.ios.js +2 -2
- package/lib/module/components/Picker/PickerComponent.web.js +2 -2
- package/lib/module/components/RadioButton/RadioButton.js +1 -1
- package/lib/module/components/RadioButton/RadioButtonRow.js +1 -1
- package/lib/module/components/StepIndicator.js +1 -1
- package/lib/module/components/Stepper.js +8 -7
- package/lib/module/mappings/AudioPlayer.js +33 -3
- package/lib/module/mappings/DatePicker.js +12 -12
- package/lib/module/mappings/Stepper.js +2 -2
- package/lib/module/mappings/TextArea.js +15 -4
- package/lib/module/mappings/TextField.js +14 -4
- package/lib/module/mappings/TextInput.js +15 -4
- package/lib/module/utilities.js +1 -1
- package/lib/typescript/src/Provider.d.ts +1 -0
- package/lib/typescript/src/Provider.d.ts.map +1 -0
- package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts +1 -0
- package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/Accordion/AccordionItem.d.ts +1 -0
- package/lib/typescript/src/components/Accordion/AccordionItem.d.ts.map +1 -0
- package/lib/typescript/src/components/Accordion/index.d.ts +1 -0
- package/lib/typescript/src/components/Accordion/index.d.ts.map +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts.map +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts.map +1 -0
- package/lib/typescript/src/components/ActionSheet/index.d.ts +1 -0
- package/lib/typescript/src/components/ActionSheet/index.d.ts.map +1 -0
- package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +1 -0
- package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +1 -0
- package/lib/typescript/src/components/AspectRatio.d.ts +1 -0
- package/lib/typescript/src/components/AspectRatio.d.ts.map +1 -0
- package/lib/typescript/src/components/AvatarEdit.d.ts +1 -0
- package/lib/typescript/src/components/AvatarEdit.d.ts.map +1 -0
- package/lib/typescript/src/components/Banner.d.ts +1 -0
- package/lib/typescript/src/components/Banner.d.ts.map +1 -0
- package/lib/typescript/src/components/Button.d.ts +1 -0
- package/lib/typescript/src/components/Button.d.ts.map +1 -0
- package/lib/typescript/src/components/Card.d.ts +1 -0
- package/lib/typescript/src/components/Card.d.ts.map +1 -0
- package/lib/typescript/src/components/CardBlock.d.ts +1 -0
- package/lib/typescript/src/components/CardBlock.d.ts.map +1 -0
- package/lib/typescript/src/components/CardContainer.d.ts +1 -0
- package/lib/typescript/src/components/CardContainer.d.ts.map +1 -0
- package/lib/typescript/src/components/CardContainerRating.d.ts +1 -0
- package/lib/typescript/src/components/CardContainerRating.d.ts.map +1 -0
- package/lib/typescript/src/components/CardContainerShortImage.d.ts +1 -0
- package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +1 -0
- package/lib/typescript/src/components/CardInline.d.ts +1 -0
- package/lib/typescript/src/components/CardInline.d.ts.map +1 -0
- package/lib/typescript/src/components/Carousel.d.ts +1 -0
- package/lib/typescript/src/components/Carousel.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/context.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/context.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/index.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/index.d.ts.map +1 -0
- package/lib/typescript/src/components/CircleImage.d.ts +1 -0
- package/lib/typescript/src/components/CircleImage.d.ts.map +1 -0
- package/lib/typescript/src/components/CircularProgress.d.ts +1 -0
- package/lib/typescript/src/components/CircularProgress.d.ts.map +1 -0
- package/lib/typescript/src/components/Config.d.ts +1 -0
- package/lib/typescript/src/components/Config.d.ts.map +1 -0
- package/lib/typescript/src/components/Container.d.ts +1 -0
- package/lib/typescript/src/components/Container.d.ts.map +1 -0
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +4 -3
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts.map +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts.map +1 -0
- package/lib/typescript/src/components/DeprecatedButton.d.ts +1 -0
- package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -0
- package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +1 -0
- package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -0
- package/lib/typescript/src/components/DeprecatedFAB.d.ts +1 -0
- package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -0
- package/lib/typescript/src/components/Divider.d.ts +1 -0
- package/lib/typescript/src/components/Divider.d.ts.map +1 -0
- package/lib/typescript/src/components/Elevation.d.ts +1 -0
- package/lib/typescript/src/components/Elevation.d.ts.map +1 -0
- package/lib/typescript/src/components/FAB.d.ts +1 -0
- package/lib/typescript/src/components/FAB.d.ts.map +1 -0
- package/lib/typescript/src/components/FieldSearchBarFull.d.ts +1 -0
- package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +1 -0
- package/lib/typescript/src/components/FormRow.d.ts +1 -0
- package/lib/typescript/src/components/FormRow.d.ts.map +1 -0
- package/lib/typescript/src/components/Header.d.ts +1 -0
- package/lib/typescript/src/components/Header.d.ts.map +1 -0
- package/lib/typescript/src/components/HeaderLarge.d.ts +1 -0
- package/lib/typescript/src/components/HeaderLarge.d.ts.map +1 -0
- package/lib/typescript/src/components/HeaderMedium.d.ts +1 -0
- package/lib/typescript/src/components/HeaderMedium.d.ts.map +1 -0
- package/lib/typescript/src/components/HeaderOverline.d.ts +1 -0
- package/lib/typescript/src/components/HeaderOverline.d.ts.map +1 -0
- package/lib/typescript/src/components/IconButton.d.ts +1 -0
- package/lib/typescript/src/components/IconButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Image.d.ts +1 -0
- package/lib/typescript/src/components/Image.d.ts.map +1 -0
- package/lib/typescript/src/components/Justification.d.ts +1 -0
- package/lib/typescript/src/components/Justification.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout.d.ts +1 -0
- package/lib/typescript/src/components/Layout.d.ts.map +1 -0
- package/lib/typescript/src/components/NumberInput.d.ts +1 -0
- package/lib/typescript/src/components/NumberInput.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
- package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/PickerTypes.d.ts +1 -0
- package/lib/typescript/src/components/Picker/PickerTypes.d.ts.map +1 -0
- package/lib/typescript/src/components/Portal/Portal.d.ts +1 -0
- package/lib/typescript/src/components/Portal/Portal.d.ts.map +1 -0
- package/lib/typescript/src/components/Portal/PortalConsumer.d.ts +1 -0
- package/lib/typescript/src/components/Portal/PortalConsumer.d.ts.map +1 -0
- package/lib/typescript/src/components/Portal/PortalHost.d.ts +1 -0
- package/lib/typescript/src/components/Portal/PortalHost.d.ts.map +1 -0
- package/lib/typescript/src/components/Portal/PortalManager.d.ts +1 -0
- package/lib/typescript/src/components/Portal/PortalManager.d.ts.map +1 -0
- package/lib/typescript/src/components/ProgressBar.d.ts +1 -0
- package/lib/typescript/src/components/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/src/components/ProgressCircle.d.ts +1 -0
- package/lib/typescript/src/components/ProgressCircle.d.ts.map +1 -0
- package/lib/typescript/src/components/ProgressIndicator.d.ts +1 -0
- package/lib/typescript/src/components/ProgressIndicator.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButton.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/context.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/context.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/index.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/index.d.ts.map +1 -0
- package/lib/typescript/src/components/ResizeMode.d.ts +1 -0
- package/lib/typescript/src/components/ResizeMode.d.ts.map +1 -0
- package/lib/typescript/src/components/Row.d.ts +1 -0
- package/lib/typescript/src/components/Row.d.ts.map +1 -0
- package/lib/typescript/src/components/RowBodyIcon.d.ts +1 -0
- package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +1 -0
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +1 -0
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/SVG.d.ts +1 -0
- package/lib/typescript/src/components/SVG.d.ts.map +1 -0
- package/lib/typescript/src/components/ScreenContainer.d.ts +1 -0
- package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -0
- package/lib/typescript/src/components/Slider.d.ts +1 -0
- package/lib/typescript/src/components/Slider.d.ts.map +1 -0
- package/lib/typescript/src/components/StarRating.d.ts +1 -0
- package/lib/typescript/src/components/StarRating.d.ts.map +1 -0
- package/lib/typescript/src/components/StepIndicator.d.ts +1 -0
- package/lib/typescript/src/components/StepIndicator.d.ts.map +1 -0
- package/lib/typescript/src/components/Stepper.d.ts +2 -2
- package/lib/typescript/src/components/Stepper.d.ts.map +1 -0
- package/lib/typescript/src/components/Surface.d.ts +1 -0
- package/lib/typescript/src/components/Surface.d.ts.map +1 -0
- package/lib/typescript/src/components/Swiper/Swiper.d.ts +1 -0
- package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -0
- package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +1 -0
- package/lib/typescript/src/components/Swiper/SwiperItem.d.ts.map +1 -0
- package/lib/typescript/src/components/Swiper/index.d.ts +1 -0
- package/lib/typescript/src/components/Swiper/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Switch.d.ts +1 -0
- package/lib/typescript/src/components/Switch.d.ts.map +1 -0
- package/lib/typescript/src/components/Text.d.ts +1 -0
- package/lib/typescript/src/components/Text.d.ts.map +1 -0
- package/lib/typescript/src/components/TextField.d.ts +1 -0
- package/lib/typescript/src/components/TextField.d.ts.map +1 -0
- package/lib/typescript/src/components/ToggleButton.d.ts +1 -0
- package/lib/typescript/src/components/ToggleButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Touchable.d.ts +1 -0
- package/lib/typescript/src/components/Touchable.d.ts.map +1 -0
- package/lib/typescript/src/components/Touchable.web.d.ts +1 -0
- package/lib/typescript/src/components/Touchable.web.d.ts.map +1 -0
- package/lib/typescript/src/components/Typography.d.ts +1 -0
- package/lib/typescript/src/components/Typography.d.ts.map +1 -0
- package/lib/typescript/src/components/useAuthState.d.ts +1 -0
- package/lib/typescript/src/components/useAuthState.d.ts.map +1 -0
- package/lib/typescript/src/constants.d.ts +1 -0
- package/lib/typescript/src/constants.d.ts.map +1 -0
- package/lib/typescript/src/hooks.d.ts +1 -0
- package/lib/typescript/src/hooks.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/interfaces/Icon.d.ts +1 -0
- package/lib/typescript/src/interfaces/Icon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
- package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -0
- package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
- package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
- package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
- package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
- package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
- package/lib/typescript/src/mappings/ActivityIndicator.d.ts.map +1 -0
- package/lib/typescript/src/mappings/AudioPlayer.d.ts +63 -1
- package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -0
- package/lib/typescript/src/mappings/AvatarEdit.d.ts +1 -0
- package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Banner.d.ts +1 -0
- package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
- package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
- package/lib/typescript/src/mappings/BlurView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Button.d.ts +1 -0
- package/lib/typescript/src/mappings/Button.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Card.d.ts +1 -0
- package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardBlock.d.ts +1 -0
- package/lib/typescript/src/mappings/CardBlock.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardContainer.d.ts +1 -0
- package/lib/typescript/src/mappings/CardContainer.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardContainerRating.d.ts +1 -0
- package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +1 -0
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardInline.d.ts +1 -0
- package/lib/typescript/src/mappings/CardInline.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Carousel.d.ts +1 -0
- package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
- package/lib/typescript/src/mappings/Checkbox.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
- package/lib/typescript/src/mappings/CheckboxGroup.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
- package/lib/typescript/src/mappings/CheckboxRow.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CircleImage.d.ts +1 -0
- package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Container.d.ts +1 -0
- package/lib/typescript/src/mappings/Container.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CustomCode.d.ts +1 -0
- package/lib/typescript/src/mappings/CustomCode.d.ts.map +1 -0
- package/lib/typescript/src/mappings/DatePicker.d.ts +12 -11
- package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Divider.d.ts +1 -0
- package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FAB.d.ts +1 -0
- package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
- package/lib/typescript/src/mappings/Fetch.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +1 -0
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FlashList.d.ts +1 -0
- package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FlatList.d.ts +1 -0
- package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -0
- package/lib/typescript/src/mappings/HeaderLarge.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +1 -0
- package/lib/typescript/src/mappings/HeaderMedium.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +1 -0
- package/lib/typescript/src/mappings/HeaderOverline.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Icon.d.ts +1 -0
- package/lib/typescript/src/mappings/Icon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
- package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Image.d.ts +1 -0
- package/lib/typescript/src/mappings/Image.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
- package/lib/typescript/src/mappings/ImageBackground.d.ts.map +1 -0
- package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
- package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Layout.d.ts +1 -0
- package/lib/typescript/src/mappings/Layout.d.ts.map +1 -0
- package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
- package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -0
- package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
- package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -0
- package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
- package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/MapView.d.ts +1 -0
- package/lib/typescript/src/mappings/MapView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Modal.d.ts +1 -0
- package/lib/typescript/src/mappings/Modal.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
- package/lib/typescript/src/mappings/NumberInput.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Picker.d.ts +1 -0
- package/lib/typescript/src/mappings/Picker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressBar.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressCircle.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButton.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButtonGroup.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButtonRow.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts +1 -0
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/SVG.d.ts +1 -0
- package/lib/typescript/src/mappings/SVG.d.ts.map +1 -0
- package/lib/typescript/src/mappings/SafeAreaView.d.ts +1 -0
- package/lib/typescript/src/mappings/SafeAreaView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
- package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Slider.d.ts +1 -0
- package/lib/typescript/src/mappings/Slider.d.ts.map +1 -0
- package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
- package/lib/typescript/src/mappings/StarRating.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
- package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Surface.d.ts +1 -0
- package/lib/typescript/src/mappings/Surface.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
- package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -0
- package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
- package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Switch.d.ts +1 -0
- package/lib/typescript/src/mappings/Switch.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Text.d.ts +1 -0
- package/lib/typescript/src/mappings/Text.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TextArea.d.ts +22 -1
- package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TextField.d.ts +23 -2
- package/lib/typescript/src/mappings/TextField.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TextInput.d.ts +22 -1
- package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ToggleButton.d.ts +1 -0
- package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
- package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Video.d.ts +1 -0
- package/lib/typescript/src/mappings/Video.d.ts.map +1 -0
- package/lib/typescript/src/mappings/View.d.ts +1 -0
- package/lib/typescript/src/mappings/View.d.ts.map +1 -0
- package/lib/typescript/src/mappings/WebView.d.ts +1 -0
- package/lib/typescript/src/mappings/WebView.d.ts.map +1 -0
- package/lib/typescript/src/styles/DarkTheme.d.ts +1 -0
- package/lib/typescript/src/styles/DarkTheme.d.ts.map +1 -0
- package/lib/typescript/src/styles/DefaultTheme.d.ts +1 -0
- package/lib/typescript/src/styles/DefaultTheme.d.ts.map +1 -0
- package/lib/typescript/src/styles/fonts.d.ts +1 -0
- package/lib/typescript/src/styles/fonts.d.ts.map +1 -0
- package/lib/typescript/src/styles/overlay.d.ts +1 -0
- package/lib/typescript/src/styles/overlay.d.ts.map +1 -0
- package/lib/typescript/src/styles/shadow.d.ts +1 -0
- package/lib/typescript/src/styles/shadow.d.ts.map +1 -0
- package/lib/typescript/src/theming.d.ts +1 -0
- package/lib/typescript/src/theming.d.ts.map +1 -0
- package/lib/typescript/src/utilities.d.ts +1 -0
- package/lib/typescript/src/utilities.d.ts.map +1 -0
- package/package.json +15 -5
- package/src/components/DatePicker/DatePicker.js +10 -7
- package/src/components/DatePicker/DatePicker.tsx +12 -10
- package/src/components/Picker/Picker.js +1 -1
- package/src/components/Picker/Picker.tsx +2 -2
- package/src/components/Stepper.js +5 -3
- package/src/components/Stepper.tsx +5 -5
- package/src/mappings/AudioPlayer.js +39 -2
- package/src/mappings/AudioPlayer.ts +41 -1
- package/src/mappings/DatePicker.js +13 -14
- package/src/mappings/DatePicker.ts +13 -14
- 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
|
@@ -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, {
|
|
@@ -15,9 +15,7 @@ var _Touchable = _interopRequireDefault(require("../Touchable"));
|
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
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
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
18
|
const Picker = _ref => {
|
|
20
|
-
var _options$find;
|
|
21
19
|
let {
|
|
22
20
|
style,
|
|
23
21
|
options,
|
|
@@ -27,6 +25,7 @@ const Picker = _ref => {
|
|
|
27
25
|
onValueChange: onValueChangeOverride = () => {},
|
|
28
26
|
...props
|
|
29
27
|
} = _ref;
|
|
28
|
+
var _a, _b;
|
|
30
29
|
const {
|
|
31
30
|
viewStyles: {
|
|
32
31
|
borderRadius,
|
|
@@ -71,7 +70,7 @@ const Picker = _ref => {
|
|
|
71
70
|
};
|
|
72
71
|
|
|
73
72
|
const stylesWithoutMargin = style && (0, _lodash.default)(_reactNative.StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
|
|
74
|
-
const selectedLabel = selectedValue && (((
|
|
73
|
+
const selectedLabel = selectedValue && ((_b = (_a = options.find(o => o.value === selectedValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : selectedValue);
|
|
75
74
|
return /*#__PURE__*/React.createElement(_Touchable.default, {
|
|
76
75
|
disabled: disabled,
|
|
77
76
|
onPress: toggleFocus,
|
|
@@ -96,6 +95,24 @@ const Picker = _ref => {
|
|
|
96
95
|
key: o.value
|
|
97
96
|
}))), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
98
97
|
pointerEvents: "none"
|
|
98
|
+
}, /*#__PURE__*/React.createElement(_TextField.default, {
|
|
99
|
+
...props,
|
|
100
|
+
value: selectedLabel,
|
|
101
|
+
placeholder: placeholder,
|
|
102
|
+
// @ts-ignore
|
|
103
|
+
ref: textField,
|
|
104
|
+
disabled: disabled,
|
|
105
|
+
// @ts-expect-error
|
|
106
|
+
style: stylesWithoutMargin
|
|
107
|
+
}))));
|
|
108
|
+
};
|
|
109
|
+
const styles = _reactNative.StyleSheet.create({
|
|
110
|
+
container: {
|
|
111
|
+
alignSelf: "stretch"
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
var _default = (0, _theming.withTheme)(Picker);
|
|
115
|
+
exports.default = _default;pointerEvents: "none"
|
|
99
116
|
}, /*#__PURE__*/React.createElement(_TextField.default, _extends({}, props, {
|
|
100
117
|
value: selectedLabel,
|
|
101
118
|
placeholder: placeholder
|
|
@@ -8,27 +8,24 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
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
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 _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; }
|
|
12
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
13
|
-
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); }
|
|
14
11
|
/**
|
|
15
12
|
* Portal host is the component which actually renders all Portals.
|
|
16
13
|
*/
|
|
17
14
|
class PortalManager extends React.PureComponent {
|
|
18
15
|
constructor() {
|
|
19
16
|
super(...arguments);
|
|
20
|
-
|
|
17
|
+
this.state = {
|
|
21
18
|
portals: []
|
|
22
|
-
}
|
|
23
|
-
|
|
19
|
+
};
|
|
20
|
+
this.mount = (key, children) => {
|
|
24
21
|
this.setState(state => ({
|
|
25
22
|
portals: [...state.portals, {
|
|
26
23
|
key,
|
|
27
24
|
children
|
|
28
25
|
}]
|
|
29
26
|
}));
|
|
30
|
-
}
|
|
31
|
-
|
|
27
|
+
};
|
|
28
|
+
this.update = (key, children) => this.setState(state => ({
|
|
32
29
|
portals: state.portals.map(item => {
|
|
33
30
|
if (item.key === key) {
|
|
34
31
|
return {
|
|
@@ -38,6 +35,35 @@ class PortalManager extends React.PureComponent {
|
|
|
38
35
|
}
|
|
39
36
|
return item;
|
|
40
37
|
})
|
|
38
|
+
}));
|
|
39
|
+
this.unmount = key => this.setState(state => ({
|
|
40
|
+
portals: state.portals.filter(item => item.key !== key)
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
return this.state.portals.map(_ref => {
|
|
45
|
+
let {
|
|
46
|
+
key,
|
|
47
|
+
children
|
|
48
|
+
} = _ref;
|
|
49
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
50
|
+
key: key,
|
|
51
|
+
collapsable: false /* Need collapsable=false here to clip the elevations, otherwise they appear above sibling components */,
|
|
52
|
+
pointerEvents: "box-none",
|
|
53
|
+
style: _reactNative.StyleSheet.absoluteFill
|
|
54
|
+
}, children);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.default = PortalManager;tate.portals.map(item => {
|
|
59
|
+
if (item.key === key) {
|
|
60
|
+
return {
|
|
61
|
+
...item,
|
|
62
|
+
children
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
return item;
|
|
66
|
+
})
|
|
41
67
|
})));
|
|
42
68
|
_defineProperty(this, "unmount", key => this.setState(state => ({
|
|
43
69
|
portals: state.portals.filter(item => item.key !== key)
|
|
@@ -34,7 +34,7 @@ const RadioButton = _ref => {
|
|
|
34
34
|
} = (0, _context.useRadioButtonGroupContext)();
|
|
35
35
|
const realValue = (0, _utilities.getValueForRadioButton)(value);
|
|
36
36
|
const realContextValue = (0, _utilities.getValueForRadioButton)(contextValue);
|
|
37
|
-
const isSelected = selected
|
|
37
|
+
const isSelected = selected !== null && selected !== void 0 ? selected : realContextValue === realValue;
|
|
38
38
|
const handlePress = () => {
|
|
39
39
|
onPress === null || onPress === void 0 ? void 0 : onPress(realValue);
|
|
40
40
|
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(realValue);
|
|
@@ -63,7 +63,7 @@ const RadioButtonRow = _ref => {
|
|
|
63
63
|
} = (0, _context.useRadioButtonGroupContext)();
|
|
64
64
|
const realValue = (0, _utilities.getValueForRadioButton)(value);
|
|
65
65
|
const realContextValue = (0, _utilities.getValueForRadioButton)(contextValue);
|
|
66
|
-
const isSelected = selected
|
|
66
|
+
const isSelected = selected !== null && selected !== void 0 ? selected : realContextValue === realValue;
|
|
67
67
|
const handlePress = () => {
|
|
68
68
|
onPress === null || onPress === void 0 ? void 0 : onPress(realValue);
|
|
69
69
|
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(realValue);
|
|
@@ -235,7 +235,7 @@ class StepIndicator extends _react.Component {
|
|
|
235
235
|
stepStatus: this.getStepStatus(position)
|
|
236
236
|
}) : /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
237
237
|
style: indicatorLabelStyle
|
|
238
|
-
},
|
|
238
|
+
}, "".concat(position + 1)));
|
|
239
239
|
});
|
|
240
240
|
_defineProperty(this, "getStepStatus", stepPosition => {
|
|
241
241
|
const {
|
|
@@ -9,6 +9,7 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _lodash = require("lodash");
|
|
10
10
|
var _theming = require("../theming");
|
|
11
11
|
var _IconButton = _interopRequireDefault(require("./IconButton"));
|
|
12
|
+
var _utilities = require("../utilities");
|
|
12
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
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); }
|
|
14
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; }
|
|
@@ -19,7 +20,6 @@ const Stepper = _ref => {
|
|
|
19
20
|
value: valueProp,
|
|
20
21
|
defaultValue,
|
|
21
22
|
style,
|
|
22
|
-
typeStyle,
|
|
23
23
|
iconSize = 24,
|
|
24
24
|
iconColor,
|
|
25
25
|
onChange,
|
|
@@ -29,7 +29,11 @@ const Stepper = _ref => {
|
|
|
29
29
|
},
|
|
30
30
|
Icon
|
|
31
31
|
} = _ref;
|
|
32
|
-
const
|
|
32
|
+
const {
|
|
33
|
+
viewStyles,
|
|
34
|
+
textStyles
|
|
35
|
+
} = (0, _utilities.extractStyles)(style);
|
|
36
|
+
const [value, setValue] = (0, _react.useState)(defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0);
|
|
33
37
|
const isValidValue = valueArg => valueArg >= min && valueArg <= max;
|
|
34
38
|
const handlePlusOrMinus = type => {
|
|
35
39
|
const newValue = type === "plus" ? value + 1 : value - 1;
|
|
@@ -47,7 +51,7 @@ const Stepper = _ref => {
|
|
|
47
51
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
48
52
|
style: [{
|
|
49
53
|
flexDirection: "row"
|
|
50
|
-
},
|
|
54
|
+
}, viewStyles]
|
|
51
55
|
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
52
56
|
Icon: Icon,
|
|
53
57
|
icon: "MaterialIcons/remove",
|
|
@@ -64,7 +68,7 @@ const Stepper = _ref => {
|
|
|
64
68
|
alignSelf: "center",
|
|
65
69
|
color: colors.medium,
|
|
66
70
|
marginHorizontal: 8
|
|
67
|
-
},
|
|
71
|
+
}, textStyles]
|
|
68
72
|
}, value), /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
69
73
|
Icon: Icon,
|
|
70
74
|
icon: "MaterialIcons/add",
|
|
@@ -78,5 +82,4 @@ const Stepper = _ref => {
|
|
|
78
82
|
}));
|
|
79
83
|
};
|
|
80
84
|
var _default = (0, _theming.withTheme)(Stepper);
|
|
81
|
-
exports.default = _default;g.withTheme)(Stepper);
|
|
82
85
|
exports.default = _default;
|
package/lib/commonjs/hooks.js
CHANGED
|
@@ -10,12 +10,11 @@ function usePrevious(value) {
|
|
|
10
10
|
// The ref object is a generic container whose current property is mutable
|
|
11
11
|
// and can hold any value, similar to an instance property on a class
|
|
12
12
|
const ref = _react.default.useRef();
|
|
13
|
-
|
|
14
13
|
// Store current value in ref
|
|
15
14
|
_react.default.useEffect(() => {
|
|
16
15
|
ref.current = value;
|
|
17
16
|
}, [value]);
|
|
18
|
-
|
|
19
17
|
// Return previous value (happens before update in useEffect above)
|
|
20
18
|
return ref.current;
|
|
19
|
+
}
|
|
21
20
|
}
|
|
@@ -10,7 +10,17 @@ const SEED_DATA = {
|
|
|
10
10
|
tag: "AudioPlayer",
|
|
11
11
|
description: "Given a source URL, plays sounds & audio!",
|
|
12
12
|
category: _types.COMPONENT_TYPES.media,
|
|
13
|
-
|
|
13
|
+
stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position],
|
|
14
|
+
layout: {
|
|
15
|
+
backgroundColor: "#eee",
|
|
16
|
+
paddingLeft: 16,
|
|
17
|
+
paddingRight: 16,
|
|
18
|
+
paddingTop: 8,
|
|
19
|
+
paddingBottom: 8,
|
|
20
|
+
borderRadius: 24,
|
|
21
|
+
flexDirection: "row",
|
|
22
|
+
alignItems: "center"
|
|
23
|
+
},
|
|
14
24
|
props: {
|
|
15
25
|
source: {
|
|
16
26
|
group: _types.GROUPS.data,
|
|
@@ -21,7 +31,27 @@ const SEED_DATA = {
|
|
|
21
31
|
defaultValue: "https://static.draftbit.com/audio/intro-to-draftbit-audio.mp3",
|
|
22
32
|
formType: _types.FORM_TYPES.sourceUrl,
|
|
23
33
|
propType: _types.PROP_TYPES.OBJECT
|
|
24
|
-
}
|
|
34
|
+
},
|
|
35
|
+
sliderColor: (0, _types.createColorProp)({
|
|
36
|
+
label: "Thumb Color",
|
|
37
|
+
defaultValue: "strong"
|
|
38
|
+
}),
|
|
39
|
+
completedTrackColor: (0, _types.createColorProp)({
|
|
40
|
+
label: "Completed Track Color",
|
|
41
|
+
defaultValue: "background"
|
|
42
|
+
}),
|
|
43
|
+
remainingTrackColor: (0, _types.createColorProp)({
|
|
44
|
+
label: "Remaining Track Color",
|
|
45
|
+
defaultValue: "light"
|
|
46
|
+
}),
|
|
47
|
+
trackThumbSize: (0, _types.createNumberProp)({
|
|
48
|
+
label: "Thumb Size",
|
|
49
|
+
defaultValue: 24
|
|
50
|
+
}),
|
|
51
|
+
playIconColor: (0, _types.createColorProp)({
|
|
52
|
+
label: "Play Icon Color",
|
|
53
|
+
defaultValue: "strong"
|
|
54
|
+
})
|
|
25
55
|
}
|
|
26
56
|
};
|
|
27
57
|
exports.SEED_DATA = SEED_DATA;
|
|
@@ -6,6 +6,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SEED_DATA = void 0;
|
|
7
7
|
var _types = require("@draftbit/types");
|
|
8
8
|
const SEED_DATA_PROPS = {
|
|
9
|
+
mode: {
|
|
10
|
+
label: "Mode",
|
|
11
|
+
description: "Choose between date, time and datetime",
|
|
12
|
+
defaultValue: "date",
|
|
13
|
+
editable: true,
|
|
14
|
+
required: true,
|
|
15
|
+
formType: _types.FORM_TYPES.flatArray,
|
|
16
|
+
propType: _types.PROP_TYPES.STRING,
|
|
17
|
+
options: ["date", "time", "datetime"],
|
|
18
|
+
group: _types.GROUPS.basic
|
|
19
|
+
},
|
|
9
20
|
label: {
|
|
10
21
|
label: "Label",
|
|
11
22
|
description: "The label to be displayed on the picker",
|
|
@@ -22,17 +33,6 @@ const SEED_DATA_PROPS = {
|
|
|
22
33
|
labelColor: (0, _types.createColorProp)({
|
|
23
34
|
label: "Label Color"
|
|
24
35
|
}),
|
|
25
|
-
mode: {
|
|
26
|
-
label: "Mode",
|
|
27
|
-
description: "Choose between date, time and datetime",
|
|
28
|
-
defaultValue: "date",
|
|
29
|
-
editable: true,
|
|
30
|
-
required: true,
|
|
31
|
-
formType: _types.FORM_TYPES.flatArray,
|
|
32
|
-
propType: _types.PROP_TYPES.STRING,
|
|
33
|
-
options: ["date", "time", "datetime"],
|
|
34
|
-
group: _types.GROUPS.basic
|
|
35
|
-
},
|
|
36
36
|
borderColor: (0, _types.createColorProp)({
|
|
37
37
|
label: "Border Color"
|
|
38
38
|
}),
|
|
@@ -156,7 +156,7 @@ const SEED_DATA = [{
|
|
|
156
156
|
category: _types.COMPONENT_TYPES.input,
|
|
157
157
|
layout: null,
|
|
158
158
|
triggers: [_types.Triggers.OnDateChange],
|
|
159
|
-
StylesPanelSections: [_types.StylesPanelSections.
|
|
159
|
+
StylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position],
|
|
160
160
|
props: {
|
|
161
161
|
...SEED_DATA_PROPS,
|
|
162
162
|
type: {
|
|
@@ -10,7 +10,7 @@ const SEED_DATA = [{
|
|
|
10
10
|
tag: "Stepper",
|
|
11
11
|
description: "A component used to control the quantity of something",
|
|
12
12
|
category: _types.COMPONENT_TYPES.control,
|
|
13
|
-
stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
|
|
13
|
+
stylesPanelSections: [_types.StylesPanelSections.Typography, ..._types.BLOCK_STYLES_SECTIONS],
|
|
14
14
|
layout: {},
|
|
15
15
|
triggers: [_types.Triggers.OnChange],
|
|
16
16
|
props: {
|
|
@@ -65,6 +65,17 @@ const SEED_DATA = {
|
|
|
65
65
|
formType: _types.FORM_TYPES.boolean,
|
|
66
66
|
propType: _types.PROP_TYPES.BOOLEAN
|
|
67
67
|
},
|
|
68
|
+
blurOnSubmit: {
|
|
69
|
+
group: _types.GROUPS.advanced,
|
|
70
|
+
label: "Blur On Submit",
|
|
71
|
+
description: "If true, the text field will blur when submitted. ",
|
|
72
|
+
editable: true,
|
|
73
|
+
required: false,
|
|
74
|
+
defaultValue: null,
|
|
75
|
+
formType: _types.FORM_TYPES.boolean,
|
|
76
|
+
propType: _types.PROP_TYPES.BOOLEAN
|
|
77
|
+
},
|
|
78
|
+
disabled: (0, _types.createDisabledProp)(),
|
|
68
79
|
caretHidden: {
|
|
69
80
|
group: _types.GROUPS.advanced,
|
|
70
81
|
label: "Hide Caret",
|
|
@@ -86,12 +97,12 @@ const SEED_DATA = {
|
|
|
86
97
|
propType: _types.PROP_TYPES.BOOLEAN
|
|
87
98
|
},
|
|
88
99
|
editable: {
|
|
89
|
-
group: _types.GROUPS.
|
|
90
|
-
label: "Editable",
|
|
100
|
+
group: _types.GROUPS.data,
|
|
101
|
+
label: "Editable?",
|
|
91
102
|
description: "If false, the text is not editable",
|
|
92
103
|
editable: true,
|
|
93
104
|
required: false,
|
|
94
|
-
defaultValue:
|
|
105
|
+
defaultValue: null,
|
|
95
106
|
formType: _types.FORM_TYPES.boolean,
|
|
96
107
|
propType: _types.PROP_TYPES.BOOLEAN
|
|
97
108
|
},
|
|
@@ -68,7 +68,7 @@ const SEED_DATA_PROPS = {
|
|
|
68
68
|
propType: _types.PROP_TYPES.BOOLEAN
|
|
69
69
|
},
|
|
70
70
|
disabled: {
|
|
71
|
-
group: _types.GROUPS.
|
|
71
|
+
group: _types.GROUPS.data,
|
|
72
72
|
label: "Disabled",
|
|
73
73
|
description: "Whether the input should be disabled. Will prevent input and show a greyed out state.",
|
|
74
74
|
formType: _types.FORM_TYPES.boolean,
|
|
@@ -78,12 +78,22 @@ const SEED_DATA_PROPS = {
|
|
|
78
78
|
required: false
|
|
79
79
|
},
|
|
80
80
|
editable: {
|
|
81
|
-
group: _types.GROUPS.
|
|
82
|
-
label: "Editable",
|
|
81
|
+
group: _types.GROUPS.data,
|
|
82
|
+
label: "Editable?",
|
|
83
83
|
description: "If false, the text is not editable",
|
|
84
84
|
editable: true,
|
|
85
85
|
required: false,
|
|
86
|
-
defaultValue:
|
|
86
|
+
defaultValue: null,
|
|
87
|
+
formType: _types.FORM_TYPES.boolean,
|
|
88
|
+
propType: _types.PROP_TYPES.BOOLEAN
|
|
89
|
+
},
|
|
90
|
+
blurOnSubmit: {
|
|
91
|
+
group: _types.GROUPS.advanced,
|
|
92
|
+
label: "Blur On Submit",
|
|
93
|
+
description: "If true, the text field will blur when submitted. ",
|
|
94
|
+
editable: true,
|
|
95
|
+
required: false,
|
|
96
|
+
defaultValue: null,
|
|
87
97
|
formType: _types.FORM_TYPES.boolean,
|
|
88
98
|
propType: _types.PROP_TYPES.BOOLEAN
|
|
89
99
|
},
|
|
@@ -148,12 +148,12 @@ const SEED_DATA = [{
|
|
|
148
148
|
propType: _types.PROP_TYPES.BOOLEAN
|
|
149
149
|
},
|
|
150
150
|
editable: {
|
|
151
|
-
group: _types.GROUPS.
|
|
152
|
-
label: "Editable",
|
|
151
|
+
group: _types.GROUPS.data,
|
|
152
|
+
label: "Editable?",
|
|
153
153
|
description: "If false, the text is not editable",
|
|
154
154
|
editable: true,
|
|
155
155
|
required: false,
|
|
156
|
-
defaultValue:
|
|
156
|
+
defaultValue: null,
|
|
157
157
|
formType: _types.FORM_TYPES.boolean,
|
|
158
158
|
propType: _types.PROP_TYPES.BOOLEAN
|
|
159
159
|
},
|
|
@@ -222,6 +222,16 @@ const SEED_DATA = [{
|
|
|
222
222
|
formType: _types.FORM_TYPES.string,
|
|
223
223
|
propType: _types.PROP_TYPES.STRING
|
|
224
224
|
},
|
|
225
|
+
blurOnSubmit: {
|
|
226
|
+
group: _types.GROUPS.advanced,
|
|
227
|
+
label: "Blur On Submit",
|
|
228
|
+
description: "If true, the text field will blur when submitted. ",
|
|
229
|
+
editable: true,
|
|
230
|
+
required: false,
|
|
231
|
+
defaultValue: null,
|
|
232
|
+
formType: _types.FORM_TYPES.boolean,
|
|
233
|
+
propType: _types.PROP_TYPES.BOOLEAN
|
|
234
|
+
},
|
|
225
235
|
returnKeyType: {
|
|
226
236
|
group: _types.GROUPS.advanced,
|
|
227
237
|
label: "Return Key Type",
|
|
@@ -287,6 +297,7 @@ const SEED_DATA = [{
|
|
|
287
297
|
formType: _types.FORM_TYPES.number,
|
|
288
298
|
propType: _types.PROP_TYPES.NUMBER
|
|
289
299
|
},
|
|
300
|
+
disabled: (0, _types.createDisabledProp)(),
|
|
290
301
|
scrollEnabled: {
|
|
291
302
|
group: _types.GROUPS.basic,
|
|
292
303
|
label: "Scroll Enabled",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { View, Text } from "react-native";
|
|
4
3
|
import Image from "./Image";
|
|
@@ -42,11 +41,12 @@ const CardBlock = _ref => {
|
|
|
42
41
|
const rightDescriptionStyles = [typography.subtitle2, {
|
|
43
42
|
color: colors.light
|
|
44
43
|
}];
|
|
45
|
-
return /*#__PURE__*/React.createElement(Card,
|
|
44
|
+
return /*#__PURE__*/React.createElement(Card, {
|
|
46
45
|
style: style,
|
|
47
46
|
onPress: onPress,
|
|
48
|
-
numColumns: numColumns
|
|
49
|
-
|
|
47
|
+
numColumns: numColumns,
|
|
48
|
+
...rest
|
|
49
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
50
50
|
style: {
|
|
51
51
|
backgroundColor: colors.background
|
|
52
52
|
}
|
|
@@ -95,4 +95,14 @@ const CardBlock = _ref => {
|
|
|
95
95
|
style: rightDescriptionStyles
|
|
96
96
|
}, rightDescription) : null) : null));
|
|
97
97
|
};
|
|
98
|
+
export default withTheme(CardBlock);PURE__*/React.createElement(Text, {
|
|
99
|
+
numberOfLines: 1,
|
|
100
|
+
style: [typography.body2, {
|
|
101
|
+
color: colors.medium
|
|
102
|
+
}]
|
|
103
|
+
}, leftDescription), rightDescription ? /*#__PURE__*/React.createElement(Text, {
|
|
104
|
+
numberOfLines: 1,
|
|
105
|
+
style: rightDescriptionStyles
|
|
106
|
+
}, rightDescription) : null) : null));
|
|
107
|
+
};
|
|
98
108
|
export default withTheme(CardBlock);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { View, Text } from "react-native";
|
|
4
3
|
import color from "color";
|
|
@@ -45,11 +44,12 @@ const CardContainer = _ref => {
|
|
|
45
44
|
titleStyle = typography.headline5;
|
|
46
45
|
break;
|
|
47
46
|
}
|
|
48
|
-
return /*#__PURE__*/React.createElement(Card,
|
|
47
|
+
return /*#__PURE__*/React.createElement(Card, {
|
|
49
48
|
style: style,
|
|
50
49
|
onPress: onPress,
|
|
51
|
-
numColumns: numColumns
|
|
52
|
-
|
|
50
|
+
numColumns: numColumns,
|
|
51
|
+
...rest
|
|
52
|
+
}, /*#__PURE__*/React.createElement(Elevation, {
|
|
53
53
|
style: {
|
|
54
54
|
elevation,
|
|
55
55
|
borderRadius: roundness
|
|
@@ -118,4 +118,14 @@ const CardContainer = _ref => {
|
|
|
118
118
|
color: colors.surface
|
|
119
119
|
})) : null)));
|
|
120
120
|
};
|
|
121
|
+
export default withTheme(CardContainer);ONTAINER_PADDING,
|
|
122
|
+
borderRadius: ICON_CONTAINER_SIZE,
|
|
123
|
+
backgroundColor: color(colors.strong).alpha(Config.cardIconBackgroundOpacity).rgb().string()
|
|
124
|
+
}
|
|
125
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
126
|
+
name: icon,
|
|
127
|
+
size: Config.cardIconSize,
|
|
128
|
+
color: colors.surface
|
|
129
|
+
})) : null)));
|
|
130
|
+
};
|
|
121
131
|
export default withTheme(CardContainer);
|
|
@@ -117,7 +117,12 @@ const styles = StyleSheet.create({
|
|
|
117
117
|
backgroundColor: "#000"
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
-
export default withTheme(Carousel)
|
|
120
|
+
export default withTheme(Carousel);gth
|
|
121
|
+
}));
|
|
122
|
+
}
|
|
123
|
+
const styles = StyleSheet.create({
|
|
124
|
+
container: {
|
|
125
|
+
backgroundColor: "#eee"
|
|
121
126
|
},
|
|
122
127
|
pager: {
|
|
123
128
|
position: "absolute",
|
|
@@ -19,13 +19,13 @@ const getFilters = options => {
|
|
|
19
19
|
height
|
|
20
20
|
} = options;
|
|
21
21
|
const filters = ["c_scale", "q_auto", "dpr_auto"];
|
|
22
|
-
if (width) filters.push(
|
|
23
|
-
if (height) filters.push(
|
|
22
|
+
if (width) filters.push("w_".concat(width));
|
|
23
|
+
if (height) filters.push("h_".concat(height));
|
|
24
24
|
return filters.join(",");
|
|
25
25
|
};
|
|
26
26
|
const buildImageUrl = (options, name) => {
|
|
27
27
|
const filters = getFilters(options);
|
|
28
|
-
return ["https://res.cloudinary.com/altos/image/upload", filters,
|
|
28
|
+
return ["https://res.cloudinary.com/altos/image/upload", filters, "".concat(name, ".png")].join("/");
|
|
29
29
|
};
|
|
30
30
|
const getExtension = () => {
|
|
31
31
|
return Platform.OS === "web" ? ".svg" : ".png";
|
|
@@ -56,6 +56,7 @@ const DatePicker = _ref => {
|
|
|
56
56
|
width: 0
|
|
57
57
|
});
|
|
58
58
|
const {
|
|
59
|
+
viewStyles,
|
|
59
60
|
textStyles
|
|
60
61
|
} = extractStyles(style);
|
|
61
62
|
const getValidDate = () => {
|
|
@@ -69,12 +70,12 @@ const DatePicker = _ref => {
|
|
|
69
70
|
let newDate = getValidDate();
|
|
70
71
|
if (format) return dateFormat(newDate, format);
|
|
71
72
|
if (mode === "time") {
|
|
72
|
-
return
|
|
73
|
+
return "".concat(newDate.toLocaleTimeString());
|
|
73
74
|
}
|
|
74
75
|
if (mode === "datetime") {
|
|
75
|
-
return
|
|
76
|
+
return "".concat(newDate.toLocaleString());
|
|
76
77
|
}
|
|
77
|
-
return
|
|
78
|
+
return "".concat(MONTHS[newDate.getMonth()], " ").concat(newDate.getDate(), ", ").concat(newDate.getFullYear());
|
|
78
79
|
};
|
|
79
80
|
const toggleVisibility = async () => {
|
|
80
81
|
setPickerVisible(!pickerVisible);
|
|
@@ -147,7 +148,7 @@ const DatePicker = _ref => {
|
|
|
147
148
|
};
|
|
148
149
|
const MINIMIZED_LABEL_Y_OFFSET = -(typography.caption.lineHeight + 4);
|
|
149
150
|
const OUTLINE_MINIMIZED_LABEL_Y_OFFSET = -(16 * 0.5 + 4);
|
|
150
|
-
const MAXIMIZED_LABEL_FONT_SIZE =
|
|
151
|
+
const MAXIMIZED_LABEL_FONT_SIZE = textStyles.fontSize || typography.subtitle1.fontSize;
|
|
151
152
|
const MINIMIZED_LABEL_FONT_SIZE = labelSize ? labelSize : typography.caption.fontSize;
|
|
152
153
|
const hasActiveOutline = focused;
|
|
153
154
|
let inputTextColor, activeColor, underlineColor, borderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
|
|
@@ -160,7 +161,7 @@ const DatePicker = _ref => {
|
|
|
160
161
|
backgroundColor = colors.divider;
|
|
161
162
|
} else {
|
|
162
163
|
activeColor = inputBorderColorActive || colors.primary;
|
|
163
|
-
placeholderColor =
|
|
164
|
+
placeholderColor = inputBorderColor || colors.light;
|
|
164
165
|
underlineColor = inputBorderColor || colors.light;
|
|
165
166
|
backgroundColor = colors.background;
|
|
166
167
|
}
|
|
@@ -240,7 +241,7 @@ const DatePicker = _ref => {
|
|
|
240
241
|
};
|
|
241
242
|
const inputStyles = [styles.input, inputStyle, type === "solid" ? {
|
|
242
243
|
marginHorizontal: 12
|
|
243
|
-
} : {}
|
|
244
|
+
} : {}];
|
|
244
245
|
|
|
245
246
|
// const render = (props) => <NativeTextInput {...props} />;
|
|
246
247
|
|
|
@@ -258,7 +259,7 @@ const DatePicker = _ref => {
|
|
|
258
259
|
})) : null, /*#__PURE__*/React.createElement(View, {
|
|
259
260
|
style: [containerStyle, style ? {
|
|
260
261
|
height: style.height
|
|
261
|
-
} : {}]
|
|
262
|
+
} : {}, viewStyles]
|
|
262
263
|
}, type === "underline" ?
|
|
263
264
|
/*#__PURE__*/
|
|
264
265
|
// When type === 'flat', render an underline
|
|
@@ -300,7 +301,7 @@ const DatePicker = _ref => {
|
|
|
300
301
|
style: [styles.placeholder, type === "solid" ? {
|
|
301
302
|
paddingHorizontal: 12
|
|
302
303
|
} : {}, labelStyle, {
|
|
303
|
-
color: labelColor ||
|
|
304
|
+
color: labelColor || placeholderColor,
|
|
304
305
|
opacity: hasActiveOutline ? labeled : 1
|
|
305
306
|
}],
|
|
306
307
|
numberOfLines: 1
|
|
@@ -318,7 +319,7 @@ const DatePicker = _ref => {
|
|
|
318
319
|
onFocus: _handleFocus,
|
|
319
320
|
onBlur: _handleBlur,
|
|
320
321
|
underlineColorAndroid: "transparent",
|
|
321
|
-
style: inputStyles
|
|
322
|
+
style: [inputStyles, textStyles]
|
|
322
323
|
}, props))), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
323
324
|
name: rightIconName,
|
|
324
325
|
size: ICON_SIZE,
|
|
@@ -46,7 +46,6 @@ const FieldSearchBarFull = _ref => {
|
|
|
46
46
|
lineHeight,
|
|
47
47
|
...typeStyles
|
|
48
48
|
} = typography.body2; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
49
|
-
|
|
50
49
|
const handleChangeText = newValue => {
|
|
51
50
|
setInternalValue(newValue);
|
|
52
51
|
if (onChange) {
|
|
@@ -84,4 +83,4 @@ const styles = StyleSheet.create({
|
|
|
84
83
|
alignItems: "center"
|
|
85
84
|
}
|
|
86
85
|
});
|
|
87
|
-
export default withTheme(FieldSearchBarFull)
|
|
86
|
+
export default withTheme(FieldSearchBarFull);;
|