@draftbit/core 46.4.4-808a01.2 → 46.4.4-82c62e.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/AnimatedCircularProgress.js +2 -12
- package/lib/commonjs/components/AspectRatio.js +2 -19
- package/lib/commonjs/components/AvatarEdit.js +5 -17
- package/lib/commonjs/components/Banner.js +4 -24
- package/lib/commonjs/components/Button.js +11 -32
- package/lib/commonjs/components/CardBlock.js +5 -15
- package/lib/commonjs/components/CardContainer.js +5 -15
- package/lib/commonjs/components/CardContainerRating.js +5 -15
- package/lib/commonjs/components/CardContainerShortImage.js +5 -17
- package/lib/commonjs/components/Carousel.js +10 -34
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +6 -24
- package/lib/commonjs/components/Checkbox/context.js +1 -1
- package/lib/commonjs/components/CircleImage.js +2 -16
- package/lib/commonjs/components/CircularProgress.js +7 -15
- package/lib/commonjs/components/Container.js +5 -17
- package/lib/commonjs/components/DeprecatedCardWrapper.js +2 -17
- package/lib/commonjs/components/DeprecatedFAB.js +4 -22
- package/lib/commonjs/components/Divider.js +2 -16
- package/lib/commonjs/components/FAB.js +5 -20
- package/lib/commonjs/components/FormRow.js +3 -17
- package/lib/commonjs/components/IconButton.js +5 -22
- package/lib/commonjs/components/Layout.js +19 -40
- package/lib/commonjs/components/NumberInput.js +2 -13
- package/lib/commonjs/components/Picker/Picker.js +5 -5
- package/lib/commonjs/components/Picker/PickerComponent.web.js +5 -24
- package/lib/commonjs/components/Portal/PortalConsumer.js +8 -10
- package/lib/commonjs/components/Portal/PortalHost.js +15 -27
- package/lib/commonjs/components/Portal/PortalManager.js +11 -19
- package/lib/commonjs/components/ProgressBar.js +7 -23
- package/lib/commonjs/components/RadioButton/RadioButton.js +3 -14
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js +6 -24
- package/lib/commonjs/components/ScreenContainer.js +5 -23
- package/lib/commonjs/components/Slider.js +5 -24
- package/lib/commonjs/components/StarRating.js +5 -25
- package/lib/commonjs/components/StepIndicator.js +16 -34
- package/lib/commonjs/components/Stepper.js +8 -3
- package/lib/commonjs/components/Surface.js +3 -14
- package/lib/commonjs/components/Text.js +16 -38
- package/lib/commonjs/components/TextField.js +35 -64
- package/lib/commonjs/components/ToggleButton.js +3 -18
- package/lib/commonjs/components/Touchable.js +2 -16
- package/lib/commonjs/mappings/AudioPlayer.js +7 -7
- package/lib/commonjs/mappings/Stepper.js +1 -1
- package/lib/commonjs/mappings/TextArea.js +14 -3
- package/lib/commonjs/mappings/TextField.js +15 -5
- package/lib/commonjs/mappings/TextInput.js +15 -4
- package/lib/module/components/Checkbox/context.js +1 -1
- package/lib/module/components/Picker/Picker.js +2 -2
- package/lib/module/components/Stepper.js +7 -3
- package/lib/module/components/Text.js +6 -2
- package/lib/module/components/TextField.js +5 -1
- package/lib/module/mappings/AudioPlayer.js +7 -7
- package/lib/module/mappings/Stepper.js +2 -2
- package/lib/module/mappings/TextArea.js +15 -4
- package/lib/module/mappings/TextField.js +15 -5
- package/lib/module/mappings/TextInput.js +16 -5
- package/lib/typescript/src/Provider.d.ts +1 -0
- package/lib/typescript/src/Provider.d.ts.map +1 -0
- package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts +1 -0
- package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/Accordion/AccordionItem.d.ts +1 -0
- package/lib/typescript/src/components/Accordion/AccordionItem.d.ts.map +1 -0
- package/lib/typescript/src/components/Accordion/index.d.ts +1 -0
- package/lib/typescript/src/components/Accordion/index.d.ts.map +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts.map +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +1 -0
- package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts.map +1 -0
- package/lib/typescript/src/components/ActionSheet/index.d.ts +1 -0
- package/lib/typescript/src/components/ActionSheet/index.d.ts.map +1 -0
- package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +1 -0
- package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +1 -0
- package/lib/typescript/src/components/AspectRatio.d.ts +1 -0
- package/lib/typescript/src/components/AspectRatio.d.ts.map +1 -0
- package/lib/typescript/src/components/AvatarEdit.d.ts +1 -0
- package/lib/typescript/src/components/AvatarEdit.d.ts.map +1 -0
- package/lib/typescript/src/components/Banner.d.ts +1 -0
- package/lib/typescript/src/components/Banner.d.ts.map +1 -0
- package/lib/typescript/src/components/Button.d.ts +1 -0
- package/lib/typescript/src/components/Button.d.ts.map +1 -0
- package/lib/typescript/src/components/Card.d.ts +1 -0
- package/lib/typescript/src/components/Card.d.ts.map +1 -0
- package/lib/typescript/src/components/CardBlock.d.ts +1 -0
- package/lib/typescript/src/components/CardBlock.d.ts.map +1 -0
- package/lib/typescript/src/components/CardContainer.d.ts +1 -0
- package/lib/typescript/src/components/CardContainer.d.ts.map +1 -0
- package/lib/typescript/src/components/CardContainerRating.d.ts +1 -0
- package/lib/typescript/src/components/CardContainerRating.d.ts.map +1 -0
- package/lib/typescript/src/components/CardContainerShortImage.d.ts +1 -0
- package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +1 -0
- package/lib/typescript/src/components/CardInline.d.ts +1 -0
- package/lib/typescript/src/components/CardInline.d.ts.map +1 -0
- package/lib/typescript/src/components/Carousel.d.ts +1 -0
- package/lib/typescript/src/components/Carousel.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/context.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/context.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox/index.d.ts +1 -0
- package/lib/typescript/src/components/Checkbox/index.d.ts.map +1 -0
- package/lib/typescript/src/components/CircleImage.d.ts +1 -0
- package/lib/typescript/src/components/CircleImage.d.ts.map +1 -0
- package/lib/typescript/src/components/CircularProgress.d.ts +1 -0
- package/lib/typescript/src/components/CircularProgress.d.ts.map +1 -0
- package/lib/typescript/src/components/Config.d.ts +1 -0
- package/lib/typescript/src/components/Config.d.ts.map +1 -0
- package/lib/typescript/src/components/Container.d.ts +1 -0
- package/lib/typescript/src/components/Container.d.ts.map +1 -0
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +1 -0
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts.map +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +1 -0
- package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts.map +1 -0
- package/lib/typescript/src/components/DeprecatedButton.d.ts +1 -0
- package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -0
- package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +1 -0
- package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -0
- package/lib/typescript/src/components/DeprecatedFAB.d.ts +1 -0
- package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -0
- package/lib/typescript/src/components/Divider.d.ts +1 -0
- package/lib/typescript/src/components/Divider.d.ts.map +1 -0
- package/lib/typescript/src/components/Elevation.d.ts +1 -0
- package/lib/typescript/src/components/Elevation.d.ts.map +1 -0
- package/lib/typescript/src/components/FAB.d.ts +1 -0
- package/lib/typescript/src/components/FAB.d.ts.map +1 -0
- package/lib/typescript/src/components/FieldSearchBarFull.d.ts +1 -0
- package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +1 -0
- package/lib/typescript/src/components/FormRow.d.ts +1 -0
- package/lib/typescript/src/components/FormRow.d.ts.map +1 -0
- package/lib/typescript/src/components/Header.d.ts +1 -0
- package/lib/typescript/src/components/Header.d.ts.map +1 -0
- package/lib/typescript/src/components/HeaderLarge.d.ts +1 -0
- package/lib/typescript/src/components/HeaderLarge.d.ts.map +1 -0
- package/lib/typescript/src/components/HeaderMedium.d.ts +1 -0
- package/lib/typescript/src/components/HeaderMedium.d.ts.map +1 -0
- package/lib/typescript/src/components/HeaderOverline.d.ts +1 -0
- package/lib/typescript/src/components/HeaderOverline.d.ts.map +1 -0
- package/lib/typescript/src/components/IconButton.d.ts +1 -0
- package/lib/typescript/src/components/IconButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Image.d.ts +1 -0
- package/lib/typescript/src/components/Image.d.ts.map +1 -0
- package/lib/typescript/src/components/Justification.d.ts +1 -0
- package/lib/typescript/src/components/Justification.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout.d.ts +1 -0
- package/lib/typescript/src/components/Layout.d.ts.map +1 -0
- package/lib/typescript/src/components/NumberInput.d.ts +1 -0
- package/lib/typescript/src/components/NumberInput.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
- package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/PickerTypes.d.ts +1 -0
- package/lib/typescript/src/components/Picker/PickerTypes.d.ts.map +1 -0
- package/lib/typescript/src/components/Portal/Portal.d.ts +1 -0
- package/lib/typescript/src/components/Portal/Portal.d.ts.map +1 -0
- package/lib/typescript/src/components/Portal/PortalConsumer.d.ts +1 -0
- package/lib/typescript/src/components/Portal/PortalConsumer.d.ts.map +1 -0
- package/lib/typescript/src/components/Portal/PortalHost.d.ts +1 -0
- package/lib/typescript/src/components/Portal/PortalHost.d.ts.map +1 -0
- package/lib/typescript/src/components/Portal/PortalManager.d.ts +1 -0
- package/lib/typescript/src/components/Portal/PortalManager.d.ts.map +1 -0
- package/lib/typescript/src/components/ProgressBar.d.ts +1 -0
- package/lib/typescript/src/components/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/src/components/ProgressCircle.d.ts +1 -0
- package/lib/typescript/src/components/ProgressCircle.d.ts.map +1 -0
- package/lib/typescript/src/components/ProgressIndicator.d.ts +1 -0
- package/lib/typescript/src/components/ProgressIndicator.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButton.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/context.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/context.d.ts.map +1 -0
- package/lib/typescript/src/components/RadioButton/index.d.ts +1 -0
- package/lib/typescript/src/components/RadioButton/index.d.ts.map +1 -0
- package/lib/typescript/src/components/ResizeMode.d.ts +1 -0
- package/lib/typescript/src/components/ResizeMode.d.ts.map +1 -0
- package/lib/typescript/src/components/Row.d.ts +1 -0
- package/lib/typescript/src/components/Row.d.ts.map +1 -0
- package/lib/typescript/src/components/RowBodyIcon.d.ts +1 -0
- package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +1 -0
- package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +1 -0
- package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/SVG.d.ts +1 -0
- package/lib/typescript/src/components/SVG.d.ts.map +1 -0
- package/lib/typescript/src/components/ScreenContainer.d.ts +1 -0
- package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -0
- package/lib/typescript/src/components/Slider.d.ts +1 -0
- package/lib/typescript/src/components/Slider.d.ts.map +1 -0
- package/lib/typescript/src/components/StarRating.d.ts +1 -0
- package/lib/typescript/src/components/StarRating.d.ts.map +1 -0
- package/lib/typescript/src/components/StepIndicator.d.ts +1 -0
- package/lib/typescript/src/components/StepIndicator.d.ts.map +1 -0
- package/lib/typescript/src/components/Stepper.d.ts +2 -2
- package/lib/typescript/src/components/Stepper.d.ts.map +1 -0
- package/lib/typescript/src/components/Surface.d.ts +1 -0
- package/lib/typescript/src/components/Surface.d.ts.map +1 -0
- package/lib/typescript/src/components/Swiper/Swiper.d.ts +1 -0
- package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -0
- package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +1 -0
- package/lib/typescript/src/components/Swiper/SwiperItem.d.ts.map +1 -0
- package/lib/typescript/src/components/Swiper/index.d.ts +1 -0
- package/lib/typescript/src/components/Swiper/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Switch.d.ts +1 -0
- package/lib/typescript/src/components/Switch.d.ts.map +1 -0
- package/lib/typescript/src/components/Text.d.ts +3 -1
- package/lib/typescript/src/components/Text.d.ts.map +1 -0
- package/lib/typescript/src/components/TextField.d.ts +3 -1
- package/lib/typescript/src/components/TextField.d.ts.map +1 -0
- package/lib/typescript/src/components/ToggleButton.d.ts +1 -0
- package/lib/typescript/src/components/ToggleButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Touchable.d.ts +1 -0
- package/lib/typescript/src/components/Touchable.d.ts.map +1 -0
- package/lib/typescript/src/components/Touchable.web.d.ts +1 -0
- package/lib/typescript/src/components/Touchable.web.d.ts.map +1 -0
- package/lib/typescript/src/components/Typography.d.ts +1 -0
- package/lib/typescript/src/components/Typography.d.ts.map +1 -0
- package/lib/typescript/src/components/useAuthState.d.ts +1 -0
- package/lib/typescript/src/components/useAuthState.d.ts.map +1 -0
- package/lib/typescript/src/constants.d.ts +1 -0
- package/lib/typescript/src/constants.d.ts.map +1 -0
- package/lib/typescript/src/hooks.d.ts +1 -0
- package/lib/typescript/src/hooks.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/interfaces/Icon.d.ts +1 -0
- package/lib/typescript/src/interfaces/Icon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
- package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -0
- package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
- package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
- package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
- package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
- package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
- package/lib/typescript/src/mappings/ActivityIndicator.d.ts.map +1 -0
- package/lib/typescript/src/mappings/AudioPlayer.d.ts +1 -0
- package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -0
- package/lib/typescript/src/mappings/AvatarEdit.d.ts +1 -0
- package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Banner.d.ts +1 -0
- package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
- package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
- package/lib/typescript/src/mappings/BlurView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Button.d.ts +1 -0
- package/lib/typescript/src/mappings/Button.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Card.d.ts +1 -0
- package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardBlock.d.ts +1 -0
- package/lib/typescript/src/mappings/CardBlock.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardContainer.d.ts +1 -0
- package/lib/typescript/src/mappings/CardContainer.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardContainerRating.d.ts +1 -0
- package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +1 -0
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CardInline.d.ts +1 -0
- package/lib/typescript/src/mappings/CardInline.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Carousel.d.ts +1 -0
- package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
- package/lib/typescript/src/mappings/Checkbox.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
- package/lib/typescript/src/mappings/CheckboxGroup.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
- package/lib/typescript/src/mappings/CheckboxRow.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CircleImage.d.ts +1 -0
- package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Container.d.ts +1 -0
- package/lib/typescript/src/mappings/Container.d.ts.map +1 -0
- package/lib/typescript/src/mappings/CustomCode.d.ts +1 -0
- package/lib/typescript/src/mappings/CustomCode.d.ts.map +1 -0
- package/lib/typescript/src/mappings/DatePicker.d.ts +1 -0
- package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Divider.d.ts +1 -0
- package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FAB.d.ts +1 -0
- package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
- package/lib/typescript/src/mappings/Fetch.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +1 -0
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FlashList.d.ts +1 -0
- package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -0
- package/lib/typescript/src/mappings/FlatList.d.ts +1 -0
- package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -0
- package/lib/typescript/src/mappings/HeaderLarge.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +1 -0
- package/lib/typescript/src/mappings/HeaderMedium.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +1 -0
- package/lib/typescript/src/mappings/HeaderOverline.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Icon.d.ts +1 -0
- package/lib/typescript/src/mappings/Icon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
- package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Image.d.ts +1 -0
- package/lib/typescript/src/mappings/Image.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
- package/lib/typescript/src/mappings/ImageBackground.d.ts.map +1 -0
- package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
- package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Layout.d.ts +1 -0
- package/lib/typescript/src/mappings/Layout.d.ts.map +1 -0
- package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
- package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -0
- package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
- package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -0
- package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
- package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/MapView.d.ts +1 -0
- package/lib/typescript/src/mappings/MapView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Modal.d.ts +1 -0
- package/lib/typescript/src/mappings/Modal.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
- package/lib/typescript/src/mappings/NumberInput.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Picker.d.ts +1 -0
- package/lib/typescript/src/mappings/Picker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressBar.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressCircle.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButton.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButtonGroup.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButtonRow.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts +1 -0
- package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +1 -0
- package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
- package/lib/typescript/src/mappings/SVG.d.ts +1 -0
- package/lib/typescript/src/mappings/SVG.d.ts.map +1 -0
- package/lib/typescript/src/mappings/SafeAreaView.d.ts +1 -0
- package/lib/typescript/src/mappings/SafeAreaView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
- package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Slider.d.ts +1 -0
- package/lib/typescript/src/mappings/Slider.d.ts.map +1 -0
- package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
- package/lib/typescript/src/mappings/StarRating.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
- package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Surface.d.ts +1 -0
- package/lib/typescript/src/mappings/Surface.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
- package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -0
- package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
- package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Switch.d.ts +1 -0
- package/lib/typescript/src/mappings/Switch.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Text.d.ts +1 -0
- package/lib/typescript/src/mappings/Text.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TextArea.d.ts +22 -1
- package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TextField.d.ts +25 -4
- package/lib/typescript/src/mappings/TextField.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TextInput.d.ts +23 -2
- package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -0
- package/lib/typescript/src/mappings/ToggleButton.d.ts +1 -0
- package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
- package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Video.d.ts +1 -0
- package/lib/typescript/src/mappings/Video.d.ts.map +1 -0
- package/lib/typescript/src/mappings/View.d.ts +1 -0
- package/lib/typescript/src/mappings/View.d.ts.map +1 -0
- package/lib/typescript/src/mappings/WebView.d.ts +1 -0
- package/lib/typescript/src/mappings/WebView.d.ts.map +1 -0
- package/lib/typescript/src/styles/DarkTheme.d.ts +1 -0
- package/lib/typescript/src/styles/DarkTheme.d.ts.map +1 -0
- package/lib/typescript/src/styles/DefaultTheme.d.ts +1 -0
- package/lib/typescript/src/styles/DefaultTheme.d.ts.map +1 -0
- package/lib/typescript/src/styles/fonts.d.ts +1 -0
- package/lib/typescript/src/styles/fonts.d.ts.map +1 -0
- package/lib/typescript/src/styles/overlay.d.ts +1 -0
- package/lib/typescript/src/styles/overlay.d.ts.map +1 -0
- package/lib/typescript/src/styles/shadow.d.ts +1 -0
- package/lib/typescript/src/styles/shadow.d.ts.map +1 -0
- package/lib/typescript/src/theming.d.ts +1 -0
- package/lib/typescript/src/theming.d.ts.map +1 -0
- package/lib/typescript/src/utilities.d.ts +1 -0
- package/lib/typescript/src/utilities.d.ts.map +1 -0
- package/package.json +15 -5
- package/src/components/Picker/Picker.js +1 -1
- package/src/components/Picker/Picker.tsx +2 -2
- package/src/components/Stepper.js +5 -3
- package/src/components/Stepper.tsx +5 -5
- package/src/components/Text.js +8 -2
- package/src/components/Text.tsx +6 -1
- package/src/components/TextField.js +6 -1
- package/src/components/TextField.tsx +7 -1
- package/src/mappings/AudioPlayer.js +7 -7
- package/src/mappings/AudioPlayer.ts +7 -7
- package/src/mappings/Stepper.js +5 -2
- package/src/mappings/Stepper.ts +5 -1
- package/src/mappings/TextArea.js +15 -4
- package/src/mappings/TextArea.ts +15 -3
- package/src/mappings/TextField.js +15 -5
- package/src/mappings/TextField.ts +15 -5
- package/src/mappings/TextInput.js +16 -5
- package/src/mappings/TextInput.ts +16 -4
|
@@ -17,6 +17,10 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
19
|
|
|
20
|
+
function _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); }
|
|
21
|
+
|
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
|
|
20
24
|
const AnimatedText = _reactNative.Animated.createAnimatedComponent(_reactNative.Text);
|
|
21
25
|
|
|
22
26
|
const FOCUS_ANIMATION_DURATION = 150;
|
|
@@ -26,7 +30,9 @@ const ICON_SIZE = 24;
|
|
|
26
30
|
class TextField extends React.Component {
|
|
27
31
|
constructor() {
|
|
28
32
|
super(...arguments);
|
|
29
|
-
|
|
33
|
+
|
|
34
|
+
_defineProperty(this, "state", {
|
|
35
|
+
nativeProps: {},
|
|
30
36
|
labeled: new _reactNative.Animated.Value(this.props.value || this.props.error ? 0 : 1),
|
|
31
37
|
focused: false,
|
|
32
38
|
placeholder: this.props.error ? this.props.placeholder : "",
|
|
@@ -34,35 +40,36 @@ class TextField extends React.Component {
|
|
|
34
40
|
measured: false,
|
|
35
41
|
width: 0
|
|
36
42
|
}
|
|
37
|
-
};
|
|
38
|
-
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
_defineProperty(this, "_timer", setTimeout(() => {}, 0));
|
|
39
46
|
|
|
40
|
-
this
|
|
47
|
+
_defineProperty(this, "_showPlaceholder", () => {
|
|
41
48
|
clearTimeout(this._timer); // Set the placeholder in a delay to offset the label animation
|
|
42
49
|
// If we show it immediately, they'll overlap and look ugly
|
|
43
50
|
|
|
44
51
|
this._timer = setTimeout(() => this.setState({
|
|
45
52
|
placeholder: this.props.placeholder
|
|
46
53
|
}), 50);
|
|
47
|
-
};
|
|
54
|
+
});
|
|
48
55
|
|
|
49
|
-
this
|
|
56
|
+
_defineProperty(this, "_hidePlaceholder", () => this.setState({
|
|
50
57
|
placeholder: ""
|
|
51
|
-
});
|
|
58
|
+
}));
|
|
52
59
|
|
|
53
|
-
this
|
|
60
|
+
_defineProperty(this, "_restoreLabel", () => _reactNative.Animated.timing(this.state.labeled, {
|
|
54
61
|
toValue: 1,
|
|
55
62
|
duration: FOCUS_ANIMATION_DURATION,
|
|
56
63
|
useNativeDriver: true
|
|
57
|
-
}).start();
|
|
64
|
+
}).start());
|
|
58
65
|
|
|
59
|
-
this
|
|
66
|
+
_defineProperty(this, "_minmizeLabel", () => _reactNative.Animated.timing(this.state.labeled, {
|
|
60
67
|
toValue: 0,
|
|
61
68
|
duration: BLUR_ANIMATION_DURATION,
|
|
62
69
|
useNativeDriver: true
|
|
63
|
-
}).start();
|
|
70
|
+
}).start());
|
|
64
71
|
|
|
65
|
-
this
|
|
72
|
+
_defineProperty(this, "_handleFocus", () => {
|
|
66
73
|
if (this.props.disabled) {
|
|
67
74
|
return;
|
|
68
75
|
}
|
|
@@ -70,9 +77,9 @@ class TextField extends React.Component {
|
|
|
70
77
|
this.setState({
|
|
71
78
|
focused: true
|
|
72
79
|
});
|
|
73
|
-
};
|
|
80
|
+
});
|
|
74
81
|
|
|
75
|
-
this
|
|
82
|
+
_defineProperty(this, "_handleBlur", () => {
|
|
76
83
|
if (this.props.disabled) {
|
|
77
84
|
return;
|
|
78
85
|
}
|
|
@@ -80,9 +87,9 @@ class TextField extends React.Component {
|
|
|
80
87
|
this.setState({
|
|
81
88
|
focused: false
|
|
82
89
|
});
|
|
83
|
-
};
|
|
90
|
+
});
|
|
84
91
|
|
|
85
|
-
this
|
|
92
|
+
_defineProperty(this, "_handleChangeText", value => {
|
|
86
93
|
if (this.props.disabled) {
|
|
87
94
|
return;
|
|
88
95
|
}
|
|
@@ -98,9 +105,9 @@ class TextField extends React.Component {
|
|
|
98
105
|
});
|
|
99
106
|
this.props.onChangeText && this.props.onChangeText(value.nativeEvent.text);
|
|
100
107
|
}
|
|
101
|
-
};
|
|
108
|
+
});
|
|
102
109
|
|
|
103
|
-
this
|
|
110
|
+
_defineProperty(this, "_root", undefined);
|
|
104
111
|
}
|
|
105
112
|
|
|
106
113
|
static getDerivedStateFromProps(nextProps, prevState) {
|
|
@@ -151,13 +158,14 @@ class TextField extends React.Component {
|
|
|
151
158
|
focused: !prevState.focused
|
|
152
159
|
}));
|
|
153
160
|
}
|
|
161
|
+
|
|
154
162
|
/**
|
|
155
163
|
* @internal
|
|
156
164
|
*/
|
|
157
|
-
|
|
158
|
-
|
|
159
165
|
setNativeProps(args) {
|
|
160
|
-
|
|
166
|
+
this.setState(state => ({ ...state,
|
|
167
|
+
nativeState: args || {}
|
|
168
|
+
}));
|
|
161
169
|
}
|
|
162
170
|
|
|
163
171
|
isFocused() {
|
|
@@ -198,8 +206,7 @@ class TextField extends React.Component {
|
|
|
198
206
|
roundness,
|
|
199
207
|
disabledOpacity
|
|
200
208
|
},
|
|
201
|
-
render = props => /*#__PURE__*/React.createElement(_reactNative.TextInput,
|
|
202
|
-
}),
|
|
209
|
+
render = props => /*#__PURE__*/React.createElement(_reactNative.TextInput, props),
|
|
203
210
|
...rest
|
|
204
211
|
} = this.props;
|
|
205
212
|
const MINIMIZED_LABEL_Y_OFFSET = -(typography.caption.lineHeight + 4);
|
|
@@ -353,9 +360,9 @@ class TextField extends React.Component {
|
|
|
353
360
|
|
|
354
361
|
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
355
362
|
style: [styles.container, styleProp]
|
|
356
|
-
}, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon, {
|
|
363
|
+
}, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon, _extends({}, leftIconProps, {
|
|
357
364
|
style: leftIconStyle
|
|
358
|
-
}) : null, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
365
|
+
})) : null, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
359
366
|
style: (0, _utilities.applyStyles)([containerStyle], {
|
|
360
367
|
height: style === null || style === void 0 ? void 0 : style.height,
|
|
361
368
|
backgroundColor: bgColor,
|
|
@@ -422,9 +429,9 @@ class TextField extends React.Component {
|
|
|
422
429
|
style: {
|
|
423
430
|
justifyContent: type === "solid" ? "center" : undefined
|
|
424
431
|
}
|
|
425
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
432
|
+
}, /*#__PURE__*/React.createElement(Icon, _extends({}, leftIconProps, {
|
|
426
433
|
style: leftIconStyle
|
|
427
|
-
})) : null, render({
|
|
434
|
+
}))) : null, render({
|
|
428
435
|
ref: c => {
|
|
429
436
|
this._root = c;
|
|
430
437
|
},
|
|
@@ -440,6 +447,7 @@ class TextField extends React.Component {
|
|
|
440
447
|
underlineColorAndroid: "transparent",
|
|
441
448
|
style: inputStyles,
|
|
442
449
|
...rest,
|
|
450
|
+
...this.state.nativeProps,
|
|
443
451
|
value: this.state.value
|
|
444
452
|
})), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
445
453
|
name: rightIconName,
|
|
@@ -465,43 +473,6 @@ var _default = (0, _theming.withTheme)(TextField);
|
|
|
465
473
|
|
|
466
474
|
exports.default = _default;
|
|
467
475
|
|
|
468
|
-
const styles = _reactNative.StyleSheet.create({
|
|
469
|
-
container: {
|
|
470
|
-
alignSelf: "stretch"
|
|
471
|
-
},
|
|
472
|
-
placeholder: {
|
|
473
|
-
position: "absolute",
|
|
474
|
-
left: 0
|
|
475
|
-
},
|
|
476
|
-
underline: {
|
|
477
|
-
position: "absolute",
|
|
478
|
-
left: 0,
|
|
479
|
-
right: 0,
|
|
480
|
-
bottom: 0,
|
|
481
|
-
height: 2
|
|
482
|
-
},
|
|
483
|
-
input: {
|
|
484
|
-
flexGrow: 1,
|
|
485
|
-
justifyContent: "center",
|
|
486
|
-
textAlignVertical: "center",
|
|
487
|
-
margin: 0,
|
|
488
|
-
textAlign: _reactNative.I18nManager.isRTL ? "right" : "left"
|
|
489
|
-
}
|
|
490
|
-
});? /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
491
|
-
style: [{
|
|
492
|
-
color: error ? colors.error : colors.light,
|
|
493
|
-
marginTop: 8,
|
|
494
|
-
marginLeft: assistiveTextLeftMargin
|
|
495
|
-
}]
|
|
496
|
-
}, assistiveText) : null);
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
var _default = (0, _theming.withTheme)(TextField);
|
|
502
|
-
|
|
503
|
-
exports.default = _default;
|
|
504
|
-
|
|
505
476
|
const styles = _reactNative.StyleSheet.create({
|
|
506
477
|
container: {
|
|
507
478
|
alignSelf: "stretch"
|
|
@@ -19,6 +19,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
19
19
|
|
|
20
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
21
|
|
|
22
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
|
+
|
|
22
24
|
const ToggleButton = _ref => {
|
|
23
25
|
let {
|
|
24
26
|
Icon,
|
|
@@ -56,7 +58,7 @@ const ToggleButton = _ref => {
|
|
|
56
58
|
onPress(!internalValue);
|
|
57
59
|
};
|
|
58
60
|
|
|
59
|
-
return /*#__PURE__*/React.createElement(_IconButton.default, {
|
|
61
|
+
return /*#__PURE__*/React.createElement(_IconButton.default, _extends({
|
|
60
62
|
Icon: Icon,
|
|
61
63
|
icon: icon,
|
|
62
64
|
size: iconSize,
|
|
@@ -68,23 +70,6 @@ const ToggleButton = _ref => {
|
|
|
68
70
|
height,
|
|
69
71
|
backgroundColor: internalValue ? colors[colorSecondary] : colors[color],
|
|
70
72
|
borderColor: colors[borderColor]
|
|
71
|
-
}, style],
|
|
72
|
-
...rest
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
const styles = _reactNative.StyleSheet.create({
|
|
77
|
-
mainContainer: {
|
|
78
|
-
borderWidth: 1
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
var _default = (0, _theming.withTheme)(ToggleButton);
|
|
83
|
-
|
|
84
|
-
exports.default = _default;th,
|
|
85
|
-
height,
|
|
86
|
-
backgroundColor: internalValue ? colors[colorSecondary] : colors[color],
|
|
87
|
-
borderColor: colors[borderColor]
|
|
88
73
|
}, style]
|
|
89
74
|
}, rest));
|
|
90
75
|
};
|
|
@@ -11,6 +11,8 @@ var _reactNative = require("react-native");
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
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
|
+
|
|
14
16
|
function Touchable(_ref) {
|
|
15
17
|
let {
|
|
16
18
|
children,
|
|
@@ -19,22 +21,6 @@ function Touchable(_ref) {
|
|
|
19
21
|
style,
|
|
20
22
|
...props
|
|
21
23
|
} = _ref;
|
|
22
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
|
|
23
|
-
onPress: onPress,
|
|
24
|
-
disabled: disabled,
|
|
25
|
-
hitSlop: 8,
|
|
26
|
-
style: _ref2 => {
|
|
27
|
-
let {
|
|
28
|
-
pressed
|
|
29
|
-
} = _ref2;
|
|
30
|
-
return [{
|
|
31
|
-
opacity: pressed || disabled ? 0.75 : 1
|
|
32
|
-
}, style];
|
|
33
|
-
},
|
|
34
|
-
...props
|
|
35
|
-
}, children);
|
|
36
|
-
}rops
|
|
37
|
-
} = _ref;
|
|
38
24
|
return /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, _extends({
|
|
39
25
|
onPress: onPress,
|
|
40
26
|
disabled: disabled,
|
|
@@ -36,23 +36,23 @@ const SEED_DATA = {
|
|
|
36
36
|
},
|
|
37
37
|
sliderColor: (0, _types.createColorProp)({
|
|
38
38
|
label: "Thumb Color",
|
|
39
|
-
defaultValue: "
|
|
39
|
+
defaultValue: "strong"
|
|
40
40
|
}),
|
|
41
41
|
completedTrackColor: (0, _types.createColorProp)({
|
|
42
|
-
label: "Completed Track",
|
|
43
|
-
defaultValue: "
|
|
42
|
+
label: "Completed Track Color",
|
|
43
|
+
defaultValue: "background"
|
|
44
44
|
}),
|
|
45
45
|
remainingTrackColor: (0, _types.createColorProp)({
|
|
46
|
-
label: "Remaining Track",
|
|
47
|
-
defaultValue: "
|
|
46
|
+
label: "Remaining Track Color",
|
|
47
|
+
defaultValue: "light"
|
|
48
48
|
}),
|
|
49
49
|
trackThumbSize: (0, _types.createNumberProp)({
|
|
50
50
|
label: "Thumb Size",
|
|
51
51
|
defaultValue: 24
|
|
52
52
|
}),
|
|
53
53
|
playIconColor: (0, _types.createColorProp)({
|
|
54
|
-
label: "Play Icon",
|
|
55
|
-
defaultValue: "
|
|
54
|
+
label: "Play Icon Color",
|
|
55
|
+
defaultValue: "strong"
|
|
56
56
|
})
|
|
57
57
|
}
|
|
58
58
|
};
|
|
@@ -12,7 +12,7 @@ const SEED_DATA = [{
|
|
|
12
12
|
tag: "Stepper",
|
|
13
13
|
description: "A component used to control the quantity of something",
|
|
14
14
|
category: _types.COMPONENT_TYPES.control,
|
|
15
|
-
stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
|
|
15
|
+
stylesPanelSections: [_types.StylesPanelSections.Typography, ..._types.BLOCK_STYLES_SECTIONS],
|
|
16
16
|
layout: {},
|
|
17
17
|
triggers: [_types.Triggers.OnChange],
|
|
18
18
|
props: {
|
|
@@ -67,6 +67,17 @@ const SEED_DATA = {
|
|
|
67
67
|
formType: _types.FORM_TYPES.boolean,
|
|
68
68
|
propType: _types.PROP_TYPES.BOOLEAN
|
|
69
69
|
},
|
|
70
|
+
blurOnSubmit: {
|
|
71
|
+
group: _types.GROUPS.advanced,
|
|
72
|
+
label: "Blur On Submit",
|
|
73
|
+
description: "If true, the text field will blur when submitted. ",
|
|
74
|
+
editable: true,
|
|
75
|
+
required: false,
|
|
76
|
+
defaultValue: null,
|
|
77
|
+
formType: _types.FORM_TYPES.boolean,
|
|
78
|
+
propType: _types.PROP_TYPES.BOOLEAN
|
|
79
|
+
},
|
|
80
|
+
disabled: (0, _types.createDisabledProp)(),
|
|
70
81
|
caretHidden: {
|
|
71
82
|
group: _types.GROUPS.advanced,
|
|
72
83
|
label: "Hide Caret",
|
|
@@ -88,12 +99,12 @@ const SEED_DATA = {
|
|
|
88
99
|
propType: _types.PROP_TYPES.BOOLEAN
|
|
89
100
|
},
|
|
90
101
|
editable: {
|
|
91
|
-
group: _types.GROUPS.
|
|
92
|
-
label: "Editable",
|
|
102
|
+
group: _types.GROUPS.data,
|
|
103
|
+
label: "Editable?",
|
|
93
104
|
description: "If false, the text is not editable",
|
|
94
105
|
editable: true,
|
|
95
106
|
required: false,
|
|
96
|
-
defaultValue:
|
|
107
|
+
defaultValue: null,
|
|
97
108
|
formType: _types.FORM_TYPES.boolean,
|
|
98
109
|
propType: _types.PROP_TYPES.BOOLEAN
|
|
99
110
|
},
|
|
@@ -24,7 +24,7 @@ const SEED_DATA_PROPS = {
|
|
|
24
24
|
description: "Can automatically capitalize sentences, words, and characters (Default: none).",
|
|
25
25
|
editable: true,
|
|
26
26
|
required: false,
|
|
27
|
-
defaultValue:
|
|
27
|
+
defaultValue: "none",
|
|
28
28
|
options: ["none", "sentences", "words", "characters"],
|
|
29
29
|
formType: _types.FORM_TYPES.flatArray,
|
|
30
30
|
propType: _types.PROP_TYPES.STRING
|
|
@@ -70,7 +70,7 @@ const SEED_DATA_PROPS = {
|
|
|
70
70
|
propType: _types.PROP_TYPES.BOOLEAN
|
|
71
71
|
},
|
|
72
72
|
disabled: {
|
|
73
|
-
group: _types.GROUPS.
|
|
73
|
+
group: _types.GROUPS.data,
|
|
74
74
|
label: "Disabled",
|
|
75
75
|
description: "Whether the input should be disabled. Will prevent input and show a greyed out state.",
|
|
76
76
|
formType: _types.FORM_TYPES.boolean,
|
|
@@ -80,12 +80,22 @@ const SEED_DATA_PROPS = {
|
|
|
80
80
|
required: false
|
|
81
81
|
},
|
|
82
82
|
editable: {
|
|
83
|
-
group: _types.GROUPS.
|
|
84
|
-
label: "Editable",
|
|
83
|
+
group: _types.GROUPS.data,
|
|
84
|
+
label: "Editable?",
|
|
85
85
|
description: "If false, the text is not editable",
|
|
86
86
|
editable: true,
|
|
87
87
|
required: false,
|
|
88
|
-
defaultValue:
|
|
88
|
+
defaultValue: null,
|
|
89
|
+
formType: _types.FORM_TYPES.boolean,
|
|
90
|
+
propType: _types.PROP_TYPES.BOOLEAN
|
|
91
|
+
},
|
|
92
|
+
blurOnSubmit: {
|
|
93
|
+
group: _types.GROUPS.advanced,
|
|
94
|
+
label: "Blur On Submit",
|
|
95
|
+
description: "If true, the text field will blur when submitted. ",
|
|
96
|
+
editable: true,
|
|
97
|
+
required: false,
|
|
98
|
+
defaultValue: null,
|
|
89
99
|
formType: _types.FORM_TYPES.boolean,
|
|
90
100
|
propType: _types.PROP_TYPES.BOOLEAN
|
|
91
101
|
},
|
|
@@ -103,7 +103,7 @@ const SEED_DATA = [{
|
|
|
103
103
|
description: "Can automatically capitalize sentences, words, and characters (Default: none).",
|
|
104
104
|
editable: true,
|
|
105
105
|
required: false,
|
|
106
|
-
defaultValue:
|
|
106
|
+
defaultValue: "none",
|
|
107
107
|
options: ["none", "sentences", "words", "characters"],
|
|
108
108
|
formType: _types.FORM_TYPES.flatArray,
|
|
109
109
|
propType: _types.PROP_TYPES.STRING
|
|
@@ -149,12 +149,12 @@ const SEED_DATA = [{
|
|
|
149
149
|
propType: _types.PROP_TYPES.BOOLEAN
|
|
150
150
|
},
|
|
151
151
|
editable: {
|
|
152
|
-
group: _types.GROUPS.
|
|
153
|
-
label: "Editable",
|
|
152
|
+
group: _types.GROUPS.data,
|
|
153
|
+
label: "Editable?",
|
|
154
154
|
description: "If false, the text is not editable",
|
|
155
155
|
editable: true,
|
|
156
156
|
required: false,
|
|
157
|
-
defaultValue:
|
|
157
|
+
defaultValue: null,
|
|
158
158
|
formType: _types.FORM_TYPES.boolean,
|
|
159
159
|
propType: _types.PROP_TYPES.BOOLEAN
|
|
160
160
|
},
|
|
@@ -223,6 +223,16 @@ const SEED_DATA = [{
|
|
|
223
223
|
formType: _types.FORM_TYPES.string,
|
|
224
224
|
propType: _types.PROP_TYPES.STRING
|
|
225
225
|
},
|
|
226
|
+
blurOnSubmit: {
|
|
227
|
+
group: _types.GROUPS.advanced,
|
|
228
|
+
label: "Blur On Submit",
|
|
229
|
+
description: "If true, the text field will blur when submitted. ",
|
|
230
|
+
editable: true,
|
|
231
|
+
required: false,
|
|
232
|
+
defaultValue: null,
|
|
233
|
+
formType: _types.FORM_TYPES.boolean,
|
|
234
|
+
propType: _types.PROP_TYPES.BOOLEAN
|
|
235
|
+
},
|
|
226
236
|
returnKeyType: {
|
|
227
237
|
group: _types.GROUPS.advanced,
|
|
228
238
|
label: "Return Key Type",
|
|
@@ -288,6 +298,7 @@ const SEED_DATA = [{
|
|
|
288
298
|
formType: _types.FORM_TYPES.number,
|
|
289
299
|
propType: _types.PROP_TYPES.NUMBER
|
|
290
300
|
},
|
|
301
|
+
disabled: (0, _types.createDisabledProp)(),
|
|
291
302
|
scrollEnabled: {
|
|
292
303
|
group: _types.GROUPS.basic,
|
|
293
304
|
label: "Scroll Enabled",
|
|
@@ -261,7 +261,6 @@ const Picker = _ref => {
|
|
|
261
261
|
);
|
|
262
262
|
};
|
|
263
263
|
|
|
264
|
-
export default withTheme(Picker);
|
|
265
264
|
const styles = StyleSheet.create({
|
|
266
265
|
marginsContainer: {
|
|
267
266
|
alignSelf: "stretch",
|
|
@@ -331,4 +330,5 @@ const styles = StyleSheet.create({
|
|
|
331
330
|
maxWidth: deviceWidth,
|
|
332
331
|
maxHeight: deviceHeight
|
|
333
332
|
}
|
|
334
|
-
});
|
|
333
|
+
});
|
|
334
|
+
export default withTheme(Picker);
|
|
@@ -3,6 +3,7 @@ import { View, Text } from "react-native";
|
|
|
3
3
|
import { isNumber } from "lodash";
|
|
4
4
|
import { withTheme } from "../theming";
|
|
5
5
|
import IconButton from "./IconButton";
|
|
6
|
+
import { extractStyles } from "../utilities";
|
|
6
7
|
|
|
7
8
|
const Stepper = _ref => {
|
|
8
9
|
let {
|
|
@@ -11,7 +12,6 @@ const Stepper = _ref => {
|
|
|
11
12
|
value: valueProp,
|
|
12
13
|
defaultValue,
|
|
13
14
|
style,
|
|
14
|
-
typeStyle,
|
|
15
15
|
iconSize = 24,
|
|
16
16
|
iconColor,
|
|
17
17
|
onChange,
|
|
@@ -21,6 +21,10 @@ const Stepper = _ref => {
|
|
|
21
21
|
},
|
|
22
22
|
Icon
|
|
23
23
|
} = _ref;
|
|
24
|
+
const {
|
|
25
|
+
viewStyles,
|
|
26
|
+
textStyles
|
|
27
|
+
} = extractStyles(style);
|
|
24
28
|
const [value, setValue] = useState(defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0);
|
|
25
29
|
|
|
26
30
|
const isValidValue = valueArg => valueArg >= min && valueArg <= max;
|
|
@@ -43,7 +47,7 @@ const Stepper = _ref => {
|
|
|
43
47
|
return /*#__PURE__*/React.createElement(View, {
|
|
44
48
|
style: [{
|
|
45
49
|
flexDirection: "row"
|
|
46
|
-
},
|
|
50
|
+
}, viewStyles]
|
|
47
51
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
48
52
|
Icon: Icon,
|
|
49
53
|
icon: "MaterialIcons/remove",
|
|
@@ -60,7 +64,7 @@ const Stepper = _ref => {
|
|
|
60
64
|
alignSelf: "center",
|
|
61
65
|
color: colors.medium,
|
|
62
66
|
marginHorizontal: 8
|
|
63
|
-
},
|
|
67
|
+
}, textStyles]
|
|
64
68
|
}, value), /*#__PURE__*/React.createElement(IconButton, {
|
|
65
69
|
Icon: Icon,
|
|
66
70
|
icon: "MaterialIcons/add",
|
|
@@ -11,10 +11,14 @@ class Text extends React.Component {
|
|
|
11
11
|
super(...arguments);
|
|
12
12
|
|
|
13
13
|
_defineProperty(this, "_root", void 0);
|
|
14
|
+
|
|
15
|
+
_defineProperty(this, "state", {
|
|
16
|
+
nativeProps: {}
|
|
17
|
+
});
|
|
14
18
|
}
|
|
15
19
|
|
|
16
20
|
setNativeProps(args) {
|
|
17
|
-
|
|
21
|
+
this.state.nativeProps = args || {};
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
render() {
|
|
@@ -23,7 +27,7 @@ class Text extends React.Component {
|
|
|
23
27
|
...rest
|
|
24
28
|
} = this.props;
|
|
25
29
|
const writingDirection = I18nManager.isRTL ? "rtl" : "ltr";
|
|
26
|
-
return /*#__PURE__*/React.createElement(NativeText, _extends({}, rest, {
|
|
30
|
+
return /*#__PURE__*/React.createElement(NativeText, _extends({}, rest, this.state.nativeProps, {
|
|
27
31
|
ref: c => {
|
|
28
32
|
this._root = c;
|
|
29
33
|
},
|
|
@@ -16,6 +16,7 @@ class TextField extends React.Component {
|
|
|
16
16
|
super(...arguments);
|
|
17
17
|
|
|
18
18
|
_defineProperty(this, "state", {
|
|
19
|
+
nativeProps: {},
|
|
19
20
|
labeled: new Animated.Value(this.props.value || this.props.error ? 0 : 1),
|
|
20
21
|
focused: false,
|
|
21
22
|
placeholder: this.props.error ? this.props.placeholder : "",
|
|
@@ -146,7 +147,9 @@ class TextField extends React.Component {
|
|
|
146
147
|
* @internal
|
|
147
148
|
*/
|
|
148
149
|
setNativeProps(args) {
|
|
149
|
-
|
|
150
|
+
this.setState(state => ({ ...state,
|
|
151
|
+
nativeState: args || {}
|
|
152
|
+
}));
|
|
150
153
|
}
|
|
151
154
|
|
|
152
155
|
isFocused() {
|
|
@@ -426,6 +429,7 @@ class TextField extends React.Component {
|
|
|
426
429
|
underlineColorAndroid: "transparent",
|
|
427
430
|
style: inputStyles,
|
|
428
431
|
...rest,
|
|
432
|
+
...this.state.nativeProps,
|
|
429
433
|
value: this.state.value
|
|
430
434
|
})), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
431
435
|
name: rightIconName,
|
|
@@ -28,23 +28,23 @@ export const SEED_DATA = {
|
|
|
28
28
|
},
|
|
29
29
|
sliderColor: createColorProp({
|
|
30
30
|
label: "Thumb Color",
|
|
31
|
-
defaultValue: "
|
|
31
|
+
defaultValue: "strong"
|
|
32
32
|
}),
|
|
33
33
|
completedTrackColor: createColorProp({
|
|
34
|
-
label: "Completed Track",
|
|
35
|
-
defaultValue: "
|
|
34
|
+
label: "Completed Track Color",
|
|
35
|
+
defaultValue: "background"
|
|
36
36
|
}),
|
|
37
37
|
remainingTrackColor: createColorProp({
|
|
38
|
-
label: "Remaining Track",
|
|
39
|
-
defaultValue: "
|
|
38
|
+
label: "Remaining Track Color",
|
|
39
|
+
defaultValue: "light"
|
|
40
40
|
}),
|
|
41
41
|
trackThumbSize: createNumberProp({
|
|
42
42
|
label: "Thumb Size",
|
|
43
43
|
defaultValue: 24
|
|
44
44
|
}),
|
|
45
45
|
playIconColor: createColorProp({
|
|
46
|
-
label: "Play Icon",
|
|
47
|
-
defaultValue: "
|
|
46
|
+
label: "Play Icon Color",
|
|
47
|
+
defaultValue: "strong"
|
|
48
48
|
})
|
|
49
49
|
}
|
|
50
50
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createIconSizeProp, createColorProp, createFieldNameProp, createStaticNumberProp, Triggers, BLOCK_STYLES_SECTIONS } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createIconSizeProp, createColorProp, createFieldNameProp, createStaticNumberProp, Triggers, BLOCK_STYLES_SECTIONS, StylesPanelSections } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = [{
|
|
3
3
|
name: "Stepper",
|
|
4
4
|
tag: "Stepper",
|
|
5
5
|
description: "A component used to control the quantity of something",
|
|
6
6
|
category: COMPONENT_TYPES.control,
|
|
7
|
-
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
7
|
+
stylesPanelSections: [StylesPanelSections.Typography, ...BLOCK_STYLES_SECTIONS],
|
|
8
8
|
layout: {},
|
|
9
9
|
triggers: [Triggers.OnChange],
|
|
10
10
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, createDisabledProp } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Text Area",
|
|
4
4
|
tag: "TextInput",
|
|
@@ -59,6 +59,17 @@ export const SEED_DATA = {
|
|
|
59
59
|
formType: FORM_TYPES.boolean,
|
|
60
60
|
propType: PROP_TYPES.BOOLEAN
|
|
61
61
|
},
|
|
62
|
+
blurOnSubmit: {
|
|
63
|
+
group: GROUPS.advanced,
|
|
64
|
+
label: "Blur On Submit",
|
|
65
|
+
description: "If true, the text field will blur when submitted. ",
|
|
66
|
+
editable: true,
|
|
67
|
+
required: false,
|
|
68
|
+
defaultValue: null,
|
|
69
|
+
formType: FORM_TYPES.boolean,
|
|
70
|
+
propType: PROP_TYPES.BOOLEAN
|
|
71
|
+
},
|
|
72
|
+
disabled: createDisabledProp(),
|
|
62
73
|
caretHidden: {
|
|
63
74
|
group: GROUPS.advanced,
|
|
64
75
|
label: "Hide Caret",
|
|
@@ -80,12 +91,12 @@ export const SEED_DATA = {
|
|
|
80
91
|
propType: PROP_TYPES.BOOLEAN
|
|
81
92
|
},
|
|
82
93
|
editable: {
|
|
83
|
-
group: GROUPS.
|
|
84
|
-
label: "Editable",
|
|
94
|
+
group: GROUPS.data,
|
|
95
|
+
label: "Editable?",
|
|
85
96
|
description: "If false, the text is not editable",
|
|
86
97
|
editable: true,
|
|
87
98
|
required: false,
|
|
88
|
-
defaultValue:
|
|
99
|
+
defaultValue: null,
|
|
89
100
|
formType: FORM_TYPES.boolean,
|
|
90
101
|
propType: PROP_TYPES.BOOLEAN
|
|
91
102
|
},
|