@draftbit/core 46.4.4-c96c31.2 → 46.4.4-ca1193.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/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 +2 -2
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +6 -24
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +6 -24
- package/lib/commonjs/components/CircularProgress.js +7 -15
- package/lib/commonjs/components/DatePicker/DatePicker.js +8 -18
- package/lib/commonjs/components/DeprecatedCardWrapper.js +2 -17
- package/lib/commonjs/components/Elevation.js +3 -15
- package/lib/commonjs/components/Picker/PickerComponent.android.js +5 -24
- package/lib/commonjs/components/Picker/PickerComponent.web.js +5 -24
- package/lib/commonjs/components/ProgressBar.js +7 -23
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js +6 -24
- package/lib/commonjs/components/ScreenContainer.js +5 -23
- package/lib/commonjs/components/StepIndicator.js +16 -34
- package/lib/commonjs/components/Stepper.js +1 -2
- package/lib/commonjs/components/Text.js +10 -40
- package/lib/commonjs/components/TextField.js +30 -63
- package/lib/commonjs/mappings/AudioPlayer.js +32 -2
- package/lib/commonjs/mappings/DatePicker.js +0 -13
- package/lib/commonjs/mappings/DatePickerInput.js +91 -0
- package/lib/commonjs/mappings/StarRating.js +2 -6
- 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/module/components/Accordion/AccordionItem.js +5 -26
- package/lib/module/components/Banner.js +4 -24
- package/lib/module/components/Button.js +11 -32
- package/lib/module/components/CardBlock.js +5 -15
- package/lib/module/components/Carousel.js +12 -36
- package/lib/module/components/Checkbox/CheckboxGroupRow.js +6 -24
- package/lib/module/components/Checkbox/CheckboxRow.js +6 -24
- package/lib/module/components/Checkbox/context.js +1 -1
- package/lib/module/components/CircularProgress.js +7 -15
- package/lib/module/components/DatePicker/DatePicker.js +16 -42
- package/lib/module/components/DeprecatedFAB.js +4 -22
- package/lib/module/components/Image.js +3 -18
- package/lib/module/components/Layout.js +21 -43
- package/lib/module/components/Picker/Picker.js +6 -13
- package/lib/module/components/Portal/PortalConsumer.js +8 -8
- package/lib/module/components/Portal/PortalHost.js +15 -26
- package/lib/module/components/RadioButton/RadioButton.js +2 -15
- package/lib/module/components/RadioButton/RadioButtonGroup.js +3 -17
- package/lib/module/components/RadioButton/RadioButtonRow.js +6 -24
- package/lib/module/components/RadioButton/context.js +1 -1
- package/lib/module/components/Stepper.js +1 -2
- package/lib/module/components/Surface.js +2 -16
- package/lib/module/components/Switch.js +10 -23
- package/lib/module/components/TextField.js +30 -62
- package/lib/module/mappings/AudioPlayer.js +33 -3
- package/lib/module/mappings/DatePicker.js +1 -14
- package/lib/module/mappings/DatePickerInput.js +82 -0
- package/lib/module/mappings/FieldSearchBarFull.js +1 -4
- package/lib/module/mappings/StarRating.js +2 -7
- 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/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 -4
- 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 +1 -0
- 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 +1 -42
- package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -0
- package/lib/typescript/src/mappings/DatePickerInput.d.ts +87 -0
- package/lib/typescript/src/mappings/DatePickerInput.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/Carousel.js +2 -2
- package/src/components/Carousel.tsx +2 -2
- package/src/components/DatePicker/DatePicker.js +8 -14
- package/src/components/DatePicker/DatePicker.tsx +7 -23
- package/src/components/Stepper.js +0 -1
- package/src/components/Stepper.tsx +1 -1
- package/src/mappings/AudioPlayer.js +39 -2
- package/src/mappings/AudioPlayer.ts +41 -1
- package/src/mappings/DatePicker.js +1 -21
- package/src/mappings/DatePicker.ts +0 -23
- package/src/mappings/DatePickerInput.js +93 -0
- package/src/mappings/DatePickerInput.ts +104 -0
- 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
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA = void 0;
|
|
7
|
+
|
|
8
|
+
var _types = require("@draftbit/types");
|
|
9
|
+
|
|
10
|
+
const SEED_DATA_PROPS = {
|
|
11
|
+
locale: {
|
|
12
|
+
label: "Locale",
|
|
13
|
+
description: "Locale for the datepicker. Must be a valid Locale",
|
|
14
|
+
formType: _types.FORM_TYPES.string,
|
|
15
|
+
propType: _types.PROP_TYPES.STRING,
|
|
16
|
+
defaultValue: "en",
|
|
17
|
+
editable: true,
|
|
18
|
+
required: false,
|
|
19
|
+
group: _types.GROUPS.basic
|
|
20
|
+
},
|
|
21
|
+
label: {
|
|
22
|
+
label: "Label",
|
|
23
|
+
description: "The label to be displayed on the picker",
|
|
24
|
+
formType: _types.FORM_TYPES.string,
|
|
25
|
+
propType: _types.PROP_TYPES.STRING,
|
|
26
|
+
defaultValue: "Date",
|
|
27
|
+
editable: true,
|
|
28
|
+
required: true,
|
|
29
|
+
group: _types.GROUPS.data
|
|
30
|
+
},
|
|
31
|
+
calendarIcon: {
|
|
32
|
+
label: "Icon",
|
|
33
|
+
description: "The icon to display on the right",
|
|
34
|
+
formType: _types.FORM_TYPES.icon,
|
|
35
|
+
propType: _types.PROP_TYPES.STRING,
|
|
36
|
+
defaultValue: "calendar",
|
|
37
|
+
editable: true,
|
|
38
|
+
required: false,
|
|
39
|
+
group: _types.GROUPS.basic
|
|
40
|
+
},
|
|
41
|
+
mode: {
|
|
42
|
+
label: "Mode",
|
|
43
|
+
description: "Choose between date, time and datetime",
|
|
44
|
+
defaultValue: "date",
|
|
45
|
+
editable: true,
|
|
46
|
+
required: true,
|
|
47
|
+
formType: _types.FORM_TYPES.flatArray,
|
|
48
|
+
propType: _types.PROP_TYPES.STRING,
|
|
49
|
+
options: ["date", "time", "datetime"],
|
|
50
|
+
group: _types.GROUPS.basic
|
|
51
|
+
},
|
|
52
|
+
disabled: {
|
|
53
|
+
label: "Disabled",
|
|
54
|
+
description: "Whether the picker should be disabled. Will prevent selection and show a greyed out state.",
|
|
55
|
+
formType: _types.FORM_TYPES.boolean,
|
|
56
|
+
propType: _types.PROP_TYPES.BOOLEAN,
|
|
57
|
+
defaultValue: false,
|
|
58
|
+
editable: true,
|
|
59
|
+
required: false,
|
|
60
|
+
group: _types.GROUPS.data
|
|
61
|
+
},
|
|
62
|
+
fieldName: { ..._types.FIELD_NAME,
|
|
63
|
+
handlerPropName: "onDateChange",
|
|
64
|
+
valuePropName: "date",
|
|
65
|
+
defaultValue: "date"
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
const SEED_DATA = [{
|
|
69
|
+
name: "Date Picker",
|
|
70
|
+
tag: "DatePickerInput",
|
|
71
|
+
packageName: "react-native-paper-dates",
|
|
72
|
+
description: "A component used to select a date from a visual calendar",
|
|
73
|
+
category: _types.COMPONENT_TYPES.input,
|
|
74
|
+
layout: null,
|
|
75
|
+
triggers: [_types.Triggers.OnDateChange],
|
|
76
|
+
StylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Borders, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Size],
|
|
77
|
+
props: { ...SEED_DATA_PROPS,
|
|
78
|
+
type: {
|
|
79
|
+
label: "Appearance",
|
|
80
|
+
description: "Type of Datepicker",
|
|
81
|
+
formType: _types.FORM_TYPES.flatArray,
|
|
82
|
+
propType: _types.PROP_TYPES.STRING,
|
|
83
|
+
defaultValue: "solid",
|
|
84
|
+
options: ["solid", "underline"],
|
|
85
|
+
editable: true,
|
|
86
|
+
required: true,
|
|
87
|
+
group: _types.GROUPS.basic
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}];
|
|
91
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -25,7 +25,9 @@ const SEED_DATA = {
|
|
|
25
25
|
}),
|
|
26
26
|
fieldName: (0, _types.createFieldNameProp)({
|
|
27
27
|
defaultValue: "ratingValue",
|
|
28
|
+
// this is the name of the variable declared on the screen in Draftbit
|
|
28
29
|
handlerPropName: "onPress",
|
|
30
|
+
// the change handler prop in this component
|
|
29
31
|
valuePropName: "rating" // the value prop in this component
|
|
30
32
|
|
|
31
33
|
}),
|
|
@@ -50,10 +52,4 @@ const SEED_DATA = {
|
|
|
50
52
|
})
|
|
51
53
|
}
|
|
52
54
|
};
|
|
53
|
-
exports.SEED_DATA = SEED_DATA;pes.createColorProp)({
|
|
54
|
-
label: "Inactive Color",
|
|
55
|
-
defaultValue: "divider"
|
|
56
|
-
})
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
55
|
exports.SEED_DATA = SEED_DATA;
|
|
@@ -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
|
},
|
|
@@ -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
|
},
|
|
@@ -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",
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import * as React from "react";
|
|
2
4
|
import { Pressable, StyleSheet, View } from "react-native";
|
|
3
5
|
import Text from "../Text";
|
|
@@ -18,10 +20,9 @@ const AccordionItem = _ref => {
|
|
|
18
20
|
textStyles,
|
|
19
21
|
viewStyles
|
|
20
22
|
} = extractStyles(style);
|
|
21
|
-
return /*#__PURE__*/React.createElement(Pressable, {
|
|
22
|
-
style: [styles.container, viewStyles]
|
|
23
|
-
|
|
24
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
23
|
+
return /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
24
|
+
style: [styles.container, viewStyles]
|
|
25
|
+
}, rest), /*#__PURE__*/React.createElement(View, {
|
|
25
26
|
style: styles.row
|
|
26
27
|
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
27
28
|
name: icon,
|
|
@@ -35,28 +36,6 @@ const AccordionItem = _ref => {
|
|
|
35
36
|
}, label))));
|
|
36
37
|
};
|
|
37
38
|
|
|
38
|
-
const styles = StyleSheet.create({
|
|
39
|
-
container: {
|
|
40
|
-
padding: 8
|
|
41
|
-
},
|
|
42
|
-
row: {
|
|
43
|
-
flexDirection: "row",
|
|
44
|
-
alignItems: "center",
|
|
45
|
-
paddingLeft: 8
|
|
46
|
-
},
|
|
47
|
-
item: {
|
|
48
|
-
marginVertical: 6,
|
|
49
|
-
paddingLeft: 8
|
|
50
|
-
},
|
|
51
|
-
content: {
|
|
52
|
-
flex: 1,
|
|
53
|
-
justifyContent: "center"
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
export default withTheme(AccordionItem);xtStyles
|
|
57
|
-
}, label))));
|
|
58
|
-
};
|
|
59
|
-
|
|
60
39
|
const styles = StyleSheet.create({
|
|
61
40
|
container: {
|
|
62
41
|
padding: 8
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import * as React from "react";
|
|
2
4
|
import { Button, Text, View, StyleSheet, Animated } from "react-native";
|
|
3
5
|
import Surface from "./Surface";
|
|
@@ -72,9 +74,9 @@ const Banner = _ref => {
|
|
|
72
74
|
|
|
73
75
|
const height = Animated.multiply(position, layout.height);
|
|
74
76
|
const translateY = Animated.multiply(Animated.add(position, -1), layout.height);
|
|
75
|
-
return /*#__PURE__*/React.createElement(Surface, {
|
|
77
|
+
return /*#__PURE__*/React.createElement(Surface, _extends({}, rest, {
|
|
76
78
|
style: [styles.container, shadow(ELEVATION), style]
|
|
77
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
79
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
78
80
|
style: [styles.wrapper, contentStyle]
|
|
79
81
|
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
80
82
|
style: {
|
|
@@ -153,26 +155,4 @@ const styles = StyleSheet.create({
|
|
|
153
155
|
margin: 8
|
|
154
156
|
}
|
|
155
157
|
});
|
|
156
|
-
export default withTheme(Banner);00%"
|
|
157
|
-
},
|
|
158
|
-
content: {
|
|
159
|
-
flexDirection: "row",
|
|
160
|
-
justifyContent: "flex-start",
|
|
161
|
-
marginHorizontal: 8,
|
|
162
|
-
marginTop: 16,
|
|
163
|
-
marginBottom: 0
|
|
164
|
-
},
|
|
165
|
-
icon: {
|
|
166
|
-
margin: 8
|
|
167
|
-
},
|
|
168
|
-
message: {
|
|
169
|
-
flex: 1,
|
|
170
|
-
margin: 8
|
|
171
|
-
},
|
|
172
|
-
actions: {
|
|
173
|
-
flexDirection: "row",
|
|
174
|
-
justifyContent: "flex-end",
|
|
175
|
-
margin: 8
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
158
|
export default withTheme(Banner);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import * as React from "react";
|
|
2
4
|
import { Text, Pressable, Platform, StyleSheet, ActivityIndicator } from "react-native";
|
|
3
5
|
import { withTheme } from "../theming";
|
|
@@ -55,7 +57,7 @@ function Base(_ref) {
|
|
|
55
57
|
buttonStyles.justifyContent = "flex-end";
|
|
56
58
|
}
|
|
57
59
|
|
|
58
|
-
return /*#__PURE__*/React.createElement(Pressable, {
|
|
60
|
+
return /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
59
61
|
onPress: onPress,
|
|
60
62
|
disabled: disabled || loading,
|
|
61
63
|
style: _ref2 => {
|
|
@@ -65,9 +67,8 @@ function Base(_ref) {
|
|
|
65
67
|
return [styles.base, {
|
|
66
68
|
opacity: pressed || disabled ? 0.75 : 1
|
|
67
69
|
}, buttonStyles];
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
}, loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
70
|
+
}
|
|
71
|
+
}, props), loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
71
72
|
size: "small",
|
|
72
73
|
color: color,
|
|
73
74
|
style: styles.loading
|
|
@@ -87,14 +88,13 @@ const Solid = _ref3 => {
|
|
|
87
88
|
theme,
|
|
88
89
|
...props
|
|
89
90
|
} = _ref3;
|
|
90
|
-
return /*#__PURE__*/React.createElement(Base, {
|
|
91
|
+
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
91
92
|
style: [{
|
|
92
93
|
color: "#FFF",
|
|
93
94
|
borderRadius: theme.roundness,
|
|
94
95
|
backgroundColor: theme.colors.primary
|
|
95
|
-
}, style]
|
|
96
|
-
|
|
97
|
-
});
|
|
96
|
+
}, style]
|
|
97
|
+
}, props));
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
const ButtonSolid = withTheme(Solid);
|
|
@@ -108,14 +108,13 @@ const Outline = _ref4 => {
|
|
|
108
108
|
theme,
|
|
109
109
|
...props
|
|
110
110
|
} = _ref4;
|
|
111
|
-
return /*#__PURE__*/React.createElement(Base, {
|
|
111
|
+
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
112
112
|
style: [styles.outline, {
|
|
113
113
|
borderRadius: theme.roundness,
|
|
114
114
|
borderColor: theme.colors.primary,
|
|
115
115
|
color: theme.colors.primary
|
|
116
|
-
}, style]
|
|
117
|
-
|
|
118
|
-
});
|
|
116
|
+
}, style]
|
|
117
|
+
}, props));
|
|
119
118
|
};
|
|
120
119
|
|
|
121
120
|
const ButtonOutline = withTheme(Outline);
|
|
@@ -162,24 +161,4 @@ const styles = StyleSheet.create({
|
|
|
162
161
|
}
|
|
163
162
|
})
|
|
164
163
|
}
|
|
165
|
-
});ndColor: "transparent",
|
|
166
|
-
padding: 0,
|
|
167
|
-
minHeight: undefined
|
|
168
|
-
},
|
|
169
|
-
loading: {
|
|
170
|
-
marginRight: 6
|
|
171
|
-
},
|
|
172
|
-
icon: { ...Platform.select({
|
|
173
|
-
web: {
|
|
174
|
-
marginTop: 1,
|
|
175
|
-
marginRight: 4,
|
|
176
|
-
alignSelf: "center"
|
|
177
|
-
},
|
|
178
|
-
default: {
|
|
179
|
-
marginBottom: 2,
|
|
180
|
-
marginRight: 4,
|
|
181
|
-
alignSelf: "center"
|
|
182
|
-
}
|
|
183
|
-
})
|
|
184
|
-
}
|
|
185
164
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from "react";
|
|
2
4
|
import { View, Text } from "react-native";
|
|
3
5
|
import Image from "./Image";
|
|
@@ -45,12 +47,11 @@ const CardBlock = _ref => {
|
|
|
45
47
|
const rightDescriptionStyles = [typography.subtitle2, {
|
|
46
48
|
color: colors.light
|
|
47
49
|
}];
|
|
48
|
-
return /*#__PURE__*/React.createElement(Card, {
|
|
50
|
+
return /*#__PURE__*/React.createElement(Card, _extends({
|
|
49
51
|
style: style,
|
|
50
52
|
onPress: onPress,
|
|
51
|
-
numColumns: numColumns
|
|
52
|
-
|
|
53
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
53
|
+
numColumns: numColumns
|
|
54
|
+
}, rest), /*#__PURE__*/React.createElement(View, {
|
|
54
55
|
style: {
|
|
55
56
|
backgroundColor: colors.background
|
|
56
57
|
}
|
|
@@ -100,15 +101,4 @@ const CardBlock = _ref => {
|
|
|
100
101
|
}, rightDescription) : null) : null));
|
|
101
102
|
};
|
|
102
103
|
|
|
103
|
-
export default withTheme(CardBlock);PURE__*/React.createElement(Text, {
|
|
104
|
-
numberOfLines: 1,
|
|
105
|
-
style: [typography.body2, {
|
|
106
|
-
color: colors.medium
|
|
107
|
-
}]
|
|
108
|
-
}, leftDescription), rightDescription ? /*#__PURE__*/React.createElement(Text, {
|
|
109
|
-
numberOfLines: 1,
|
|
110
|
-
style: rightDescriptionStyles
|
|
111
|
-
}, rightDescription) : null) : null));
|
|
112
|
-
};
|
|
113
|
-
|
|
114
104
|
export default withTheme(CardBlock);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import * as React from "react";
|
|
2
4
|
import { withTheme } from "../theming";
|
|
3
5
|
import { ScrollView, View, StyleSheet, Dimensions } from "react-native";
|
|
@@ -31,6 +33,8 @@ function Pager(_ref) {
|
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
function Carousel(_ref2) {
|
|
36
|
+
var _data$length;
|
|
37
|
+
|
|
34
38
|
let {
|
|
35
39
|
data,
|
|
36
40
|
children,
|
|
@@ -38,12 +42,9 @@ function Carousel(_ref2) {
|
|
|
38
42
|
style,
|
|
39
43
|
...rest
|
|
40
44
|
} = _ref2;
|
|
41
|
-
|
|
42
|
-
var _a;
|
|
43
|
-
|
|
44
45
|
const [index, setIndex] = React.useState(0);
|
|
45
46
|
const length = React.Children.count(children);
|
|
46
|
-
const itemsLength = ((
|
|
47
|
+
const itemsLength = ((_data$length = data === null || data === void 0 ? void 0 : data.length) !== null && _data$length !== void 0 ? _data$length : 0) + length;
|
|
47
48
|
const slides = Array.isArray(data) ? data : [];
|
|
48
49
|
const {
|
|
49
50
|
width,
|
|
@@ -51,10 +52,9 @@ function Carousel(_ref2) {
|
|
|
51
52
|
} = StyleSheet.flatten(style || {});
|
|
52
53
|
const slideWidth = width || screenWidth;
|
|
53
54
|
const slideHeight = height || 250;
|
|
54
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
55
|
-
style: [styles.container, style]
|
|
56
|
-
|
|
57
|
-
}, /*#__PURE__*/React.createElement(ScrollView, {
|
|
55
|
+
return /*#__PURE__*/React.createElement(View, _extends({
|
|
56
|
+
style: [styles.container, style]
|
|
57
|
+
}, rest), /*#__PURE__*/React.createElement(ScrollView, {
|
|
58
58
|
pagingEnabled: true,
|
|
59
59
|
horizontal: true,
|
|
60
60
|
decelerationRate: "fast",
|
|
@@ -82,9 +82,9 @@ function Carousel(_ref2) {
|
|
|
82
82
|
}]
|
|
83
83
|
});
|
|
84
84
|
}) : null, React.Children.map(children, child => {
|
|
85
|
-
var
|
|
85
|
+
var _child$props;
|
|
86
86
|
|
|
87
|
-
const s = (
|
|
87
|
+
const s = (child === null || child === void 0 ? void 0 : (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.style) || {};
|
|
88
88
|
return /*#__PURE__*/React.createElement(View, {
|
|
89
89
|
style: {
|
|
90
90
|
width: slideWidth
|
|
@@ -103,31 +103,7 @@ function Carousel(_ref2) {
|
|
|
103
103
|
|
|
104
104
|
const styles = StyleSheet.create({
|
|
105
105
|
container: {
|
|
106
|
-
backgroundColor: "#
|
|
107
|
-
},
|
|
108
|
-
pager: {
|
|
109
|
-
position: "absolute",
|
|
110
|
-
bottom: 12,
|
|
111
|
-
left: 0,
|
|
112
|
-
right: 0,
|
|
113
|
-
flexDirection: "row",
|
|
114
|
-
justifyContent: "center",
|
|
115
|
-
alignItems: "center"
|
|
116
|
-
},
|
|
117
|
-
bullet: {
|
|
118
|
-
marginHorizontal: 2,
|
|
119
|
-
width: 10,
|
|
120
|
-
height: 10,
|
|
121
|
-
borderRadius: 20,
|
|
122
|
-
backgroundColor: "#000000"
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
export default withTheme(Carousel);));
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
const styles = StyleSheet.create({
|
|
129
|
-
container: {
|
|
130
|
-
backgroundColor: "#eeeeee"
|
|
106
|
+
backgroundColor: "#eee"
|
|
131
107
|
},
|
|
132
108
|
pager: {
|
|
133
109
|
position: "absolute",
|
|
@@ -143,7 +119,7 @@ const styles = StyleSheet.create({
|
|
|
143
119
|
width: 10,
|
|
144
120
|
height: 10,
|
|
145
121
|
borderRadius: 20,
|
|
146
|
-
backgroundColor: "#
|
|
122
|
+
backgroundColor: "#000"
|
|
147
123
|
}
|
|
148
124
|
});
|
|
149
125
|
export default withTheme(Carousel);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import * as React from "react";
|
|
2
4
|
import { StyleSheet, View, Platform } from "react-native";
|
|
3
5
|
import Checkbox from "./Checkbox";
|
|
@@ -6,7 +8,7 @@ import { useCheckboxGroupContext } from "./context";
|
|
|
6
8
|
import { Direction as GroupDirection } from "./context";
|
|
7
9
|
import Touchable from "../Touchable";
|
|
8
10
|
import { extractStyles } from "../../utilities";
|
|
9
|
-
export
|
|
11
|
+
export let Direction;
|
|
10
12
|
|
|
11
13
|
(function (Direction) {
|
|
12
14
|
Direction["Row"] = "row";
|
|
@@ -69,14 +71,13 @@ const CheckboxGroupRow = _ref => {
|
|
|
69
71
|
textStyles,
|
|
70
72
|
viewStyles
|
|
71
73
|
} = extractStyles(style);
|
|
72
|
-
return /*#__PURE__*/React.createElement(Touchable, {
|
|
74
|
+
return /*#__PURE__*/React.createElement(Touchable, _extends({
|
|
73
75
|
onPress: handlePress,
|
|
74
76
|
style: [styles.mainParent, {
|
|
75
77
|
flexDirection: direction
|
|
76
78
|
}, viewStyles],
|
|
77
|
-
disabled: disabled
|
|
78
|
-
|
|
79
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
79
|
+
disabled: disabled
|
|
80
|
+
}, rest), /*#__PURE__*/React.createElement(View, {
|
|
80
81
|
style: [styles.label, {
|
|
81
82
|
alignItems: direction === Direction.Row ? "flex-start" : "flex-end"
|
|
82
83
|
}, labelContainerStyle]
|
|
@@ -115,23 +116,4 @@ const styles = StyleSheet.create({
|
|
|
115
116
|
flex: 3
|
|
116
117
|
}
|
|
117
118
|
});
|
|
118
|
-
export default CheckboxGroupRow;create({
|
|
119
|
-
mainParent: {
|
|
120
|
-
alignItems: "center",
|
|
121
|
-
justifyContent: "space-around",
|
|
122
|
-
paddingStart: 20,
|
|
123
|
-
minHeight: 50,
|
|
124
|
-
paddingEnd: 20,
|
|
125
|
-
display: "flex",
|
|
126
|
-
...Platform.select({
|
|
127
|
-
web: {
|
|
128
|
-
cursor: "pointer",
|
|
129
|
-
userSelect: "none"
|
|
130
|
-
}
|
|
131
|
-
})
|
|
132
|
-
},
|
|
133
|
-
label: {
|
|
134
|
-
flex: 3
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
119
|
export default CheckboxGroupRow;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import * as React from "react";
|
|
2
4
|
import { StyleSheet, View, Platform } from "react-native";
|
|
3
5
|
import { isString } from "lodash";
|
|
@@ -6,7 +8,7 @@ import { usePrevious } from "../../hooks";
|
|
|
6
8
|
import Text from "../Text";
|
|
7
9
|
import Touchable from "../Touchable";
|
|
8
10
|
import Checkbox from "./Checkbox";
|
|
9
|
-
export
|
|
11
|
+
export let Direction;
|
|
10
12
|
|
|
11
13
|
(function (Direction) {
|
|
12
14
|
Direction["Row"] = "row";
|
|
@@ -78,14 +80,13 @@ const CheckboxRow = _ref => {
|
|
|
78
80
|
textStyles,
|
|
79
81
|
viewStyles
|
|
80
82
|
} = extractStyles(style);
|
|
81
|
-
return /*#__PURE__*/React.createElement(Touchable, {
|
|
83
|
+
return /*#__PURE__*/React.createElement(Touchable, _extends({
|
|
82
84
|
onPress: handlePress,
|
|
83
85
|
style: [viewStyles, styles.mainParent, {
|
|
84
86
|
flexDirection: direction
|
|
85
87
|
}],
|
|
86
|
-
disabled: disabled
|
|
87
|
-
|
|
88
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
88
|
+
disabled: disabled
|
|
89
|
+
}, rest), /*#__PURE__*/React.createElement(View, {
|
|
89
90
|
style: [styles.label, {
|
|
90
91
|
alignItems: direction === Direction.Row ? "flex-start" : "flex-end"
|
|
91
92
|
}, labelContainerStyle]
|
|
@@ -122,23 +123,4 @@ const styles = StyleSheet.create({
|
|
|
122
123
|
flex: 3
|
|
123
124
|
}
|
|
124
125
|
});
|
|
125
|
-
export default CheckboxRow;heet.create({
|
|
126
|
-
mainParent: {
|
|
127
|
-
alignItems: "center",
|
|
128
|
-
justifyContent: "space-around",
|
|
129
|
-
paddingStart: 20,
|
|
130
|
-
minHeight: 50,
|
|
131
|
-
paddingEnd: 20,
|
|
132
|
-
display: "flex",
|
|
133
|
-
...Platform.select({
|
|
134
|
-
web: {
|
|
135
|
-
cursor: "pointer",
|
|
136
|
-
userSelect: "none"
|
|
137
|
-
}
|
|
138
|
-
})
|
|
139
|
-
},
|
|
140
|
-
label: {
|
|
141
|
-
flex: 3
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
126
|
export default CheckboxRow;
|