@webority/mobile-ui 0.148.0 → 0.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas-kit/kit.js +13 -56553
- package/dist/canvas-kit/manifest.json +20 -41
- package/dist/canvas-kit/release.json +6 -6
- package/lib/commonjs/components/Accordion/Accordion.js +1 -1
- package/lib/commonjs/components/AppIcon/AppIcon.js +1 -1
- package/lib/commonjs/components/AppIcon/glyphs.g.js +1 -1
- package/lib/commonjs/components/AsyncBlock/AsyncBlock.js +1 -1
- package/lib/commonjs/components/AuthedImage/AuthedImage.js +1 -1
- package/lib/commonjs/components/AuthedImage/authedImageCache.js +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +1 -1
- package/lib/commonjs/components/Badge/Badge.js +1 -1
- package/lib/commonjs/components/Banner/Banner.js +1 -1
- package/lib/commonjs/components/BarChart/BarChart.js +1 -1
- package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/commonjs/components/Box/Box.js +1 -1
- package/lib/commonjs/components/Card/Card.js +1 -1
- package/lib/commonjs/components/Carousel/Carousel.js +1 -1
- package/lib/commonjs/components/Chip/Chip.js +1 -1
- package/lib/commonjs/components/ChoiceGroup/ChoiceGroup.js +1 -1
- package/lib/commonjs/components/Confetti/Confetti.js +1 -1
- package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
- package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
- package/lib/commonjs/components/Dialog/Dialog.js +1 -1
- package/lib/commonjs/components/Drawer/Drawer.js +1 -1
- package/lib/commonjs/components/FieldBase/useFloatingLabel.js +1 -1
- package/lib/commonjs/components/FileViewer/fileSource.js +1 -1
- package/lib/commonjs/components/FileViewer/useFileViewerZoom.js +1 -1
- package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/commonjs/components/InlineSelect/InlineSelect.js +1 -1
- package/lib/commonjs/components/Input/Input.js +1 -1
- package/lib/commonjs/components/ListItem/ListItem.js +1 -1
- package/lib/commonjs/components/Markdown/Markdown.js +1 -1
- package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
- package/lib/commonjs/components/Menu/focusHost.js +1 -1
- package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/commonjs/components/OptionSheet/optionAccessors.js +1 -0
- package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/commonjs/components/ProgressRing/ProgressRing.js +1 -1
- package/lib/commonjs/components/Radio/RadioGroup.js +1 -1
- package/lib/commonjs/components/Rating/Rating.js +1 -1
- package/lib/commonjs/components/Repeater/Repeater.js +1 -1
- package/lib/commonjs/components/Screen/Screen.js +1 -1
- package/lib/commonjs/components/SearchBar/useRecentSearches.js +1 -1
- package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/commonjs/components/Select/Select.js +1 -1
- package/lib/commonjs/components/SignaturePad/SignaturePad.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonList.js +1 -1
- package/lib/commonjs/components/SlideToConfirm/SlideToConfirm.js +1 -1
- package/lib/commonjs/components/Slider/Slider.js +1 -1
- package/lib/commonjs/components/SliderField/SliderField.js +1 -1
- package/lib/commonjs/components/SortableList/SortableList.js +1 -1
- package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
- package/lib/commonjs/components/SquircleFill/SquircleFill.js +1 -1
- package/lib/commonjs/components/StatTile/StatTile.js +1 -1
- package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
- package/lib/commonjs/components/StatusBadge/statusMap.js +1 -1
- package/lib/commonjs/components/Stepper/Stepper.js +1 -1
- package/lib/commonjs/components/Swipeable/Swipeable.js +1 -1
- package/lib/commonjs/components/Text/Text.js +1 -1
- package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
- package/lib/commonjs/components/WheelPicker/Wheel.js +1 -1
- package/lib/commonjs/components/WheelPicker/WheelPicker.js +1 -1
- package/lib/commonjs/components/ZoomableImage/ZoomableImage.js +1 -1
- package/lib/commonjs/form/HookFormField.js +1 -1
- package/lib/commonjs/form/path.js +1 -1
- package/lib/commonjs/hooks/useControllableState.js +1 -1
- package/lib/commonjs/hooks/useDragToDismiss.js +1 -1
- package/lib/commonjs/navigation/NavigationScreen.js +1 -1
- package/lib/commonjs/specs/NativePdfRasterizer.js +1 -1
- package/lib/commonjs/theme/ThemeContext.js +1 -1
- package/lib/commonjs/theme/animatedValue.js +1 -1
- package/lib/commonjs/theme/componentSizes.js +1 -1
- package/lib/commonjs/theme/merge.js +1 -1
- package/lib/commonjs/theme/scale.js +1 -1
- package/lib/commonjs/utils/complete.js +1 -0
- package/lib/commonjs/utils/guards.js +1 -0
- package/lib/commonjs/utils/hapticUtils.js +1 -1
- package/lib/module/components/Accordion/Accordion.js +1 -1
- package/lib/module/components/AppIcon/AppIcon.js +1 -1
- package/lib/module/components/AppIcon/glyphs.g.js +1 -1
- package/lib/module/components/AsyncBlock/AsyncBlock.js +1 -1
- package/lib/module/components/AuthedImage/AuthedImage.js +1 -1
- package/lib/module/components/AuthedImage/authedImageCache.js +1 -1
- package/lib/module/components/Avatar/Avatar.js +1 -1
- package/lib/module/components/Badge/Badge.js +1 -1
- package/lib/module/components/Banner/Banner.js +1 -1
- package/lib/module/components/BarChart/BarChart.js +1 -1
- package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/module/components/Box/Box.js +1 -1
- package/lib/module/components/Card/Card.js +1 -1
- package/lib/module/components/Carousel/Carousel.js +1 -1
- package/lib/module/components/Chip/Chip.js +1 -1
- package/lib/module/components/ChoiceGroup/ChoiceGroup.js +1 -1
- package/lib/module/components/Confetti/Confetti.js +1 -1
- package/lib/module/components/DatePicker/DatePicker.js +1 -1
- package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/module/components/Descriptions/Descriptions.js +1 -1
- package/lib/module/components/Dialog/Dialog.js +1 -1
- package/lib/module/components/Drawer/Drawer.js +1 -1
- package/lib/module/components/FieldBase/useFloatingLabel.js +1 -1
- package/lib/module/components/FileViewer/fileSource.js +1 -1
- package/lib/module/components/FileViewer/useFileViewerZoom.js +1 -1
- package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
- package/lib/module/components/Input/Input.js +1 -1
- package/lib/module/components/ListItem/ListItem.js +1 -1
- package/lib/module/components/Markdown/Markdown.js +1 -1
- package/lib/module/components/Menu/MenuSurface.js +1 -1
- package/lib/module/components/Menu/focusHost.js +1 -1
- package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/module/components/OptionSheet/optionAccessors.js +1 -0
- package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/module/components/ProgressRing/ProgressRing.js +1 -1
- package/lib/module/components/Radio/RadioGroup.js +1 -1
- package/lib/module/components/Rating/Rating.js +1 -1
- package/lib/module/components/Repeater/Repeater.js +1 -1
- package/lib/module/components/Screen/Screen.js +1 -1
- package/lib/module/components/SearchBar/useRecentSearches.js +1 -1
- package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/module/components/Select/Select.js +1 -1
- package/lib/module/components/SignaturePad/SignaturePad.js +1 -1
- package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/module/components/Skeleton/SkeletonList.js +1 -1
- package/lib/module/components/SlideToConfirm/SlideToConfirm.js +1 -1
- package/lib/module/components/Slider/Slider.js +1 -1
- package/lib/module/components/SliderField/SliderField.js +1 -1
- package/lib/module/components/SortableList/SortableList.js +1 -1
- package/lib/module/components/Sparkline/Sparkline.js +1 -1
- package/lib/module/components/SquircleFill/SquircleFill.js +1 -1
- package/lib/module/components/StatTile/StatTile.js +1 -1
- package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
- package/lib/module/components/StatusBadge/statusMap.js +1 -1
- package/lib/module/components/Stepper/Stepper.js +1 -1
- package/lib/module/components/Swipeable/Swipeable.js +1 -1
- package/lib/module/components/Text/Text.js +1 -1
- package/lib/module/components/TimePicker/TimePicker.js +1 -1
- package/lib/module/components/WheelPicker/Wheel.js +1 -1
- package/lib/module/components/WheelPicker/WheelPicker.js +1 -1
- package/lib/module/components/ZoomableImage/ZoomableImage.js +1 -1
- package/lib/module/form/HookFormField.js +1 -1
- package/lib/module/form/path.js +1 -1
- package/lib/module/hooks/useControllableState.js +1 -1
- package/lib/module/hooks/useDragToDismiss.js +1 -1
- package/lib/module/navigation/NavigationScreen.js +1 -1
- package/lib/module/specs/NativePdfRasterizer.js +1 -1
- package/lib/module/theme/ThemeContext.js +1 -1
- package/lib/module/theme/animatedValue.js +1 -1
- package/lib/module/theme/componentSizes.js +1 -1
- package/lib/module/theme/merge.js +1 -1
- package/lib/module/theme/scale.js +1 -1
- package/lib/module/utils/complete.js +1 -0
- package/lib/module/utils/guards.js +1 -0
- package/lib/module/utils/hapticUtils.js +1 -1
- package/lib/typescript/commonjs/canvasKit/index.d.ts +12 -12
- package/lib/typescript/commonjs/canvasKit/meta.d.ts +5 -7
- package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +22 -22
- package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +23 -23
- package/lib/typescript/commonjs/components/AnimatePresence/AnimatePresence.d.ts +5 -5
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +39 -39
- package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +7 -7
- package/lib/typescript/commonjs/components/AppIcon/defaultIcons.d.ts +2 -1
- package/lib/typescript/commonjs/components/AppIcon/glyphs.g.d.ts +233 -233
- package/lib/typescript/commonjs/components/AppIcon/slotIcon.d.ts +1 -1
- package/lib/typescript/commonjs/components/AppLockOverlay/AppLockOverlay.d.ts +5 -5
- package/lib/typescript/commonjs/components/AsyncBlock/AsyncBlock.d.ts +22 -40
- package/lib/typescript/commonjs/components/AuthedImage/AuthedImage.d.ts +15 -15
- package/lib/typescript/commonjs/components/AuthedImage/authedImageCache.d.ts +2 -2
- package/lib/typescript/commonjs/components/Autocomplete/Autocomplete.d.ts +24 -24
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +36 -36
- package/lib/typescript/commonjs/components/Badge/Badge.d.ts +18 -18
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts +25 -25
- package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +21 -21
- package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +36 -36
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +33 -33
- package/lib/typescript/commonjs/components/Box/Box.d.ts +27 -27
- package/lib/typescript/commonjs/components/Button/Button.d.ts +22 -22
- package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +20 -20
- package/lib/typescript/commonjs/components/Calendar/CalendarDay.d.ts +4 -2
- package/lib/typescript/commonjs/components/Card/Card.d.ts +41 -41
- package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +21 -21
- package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +21 -21
- package/lib/typescript/commonjs/components/Chip/Chip.d.ts +23 -23
- package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +51 -46
- package/lib/typescript/commonjs/components/Composer/Composer.d.ts +27 -27
- package/lib/typescript/commonjs/components/Confetti/Confetti.d.ts +22 -21
- package/lib/typescript/commonjs/components/Confirm/confirm.d.ts +4 -4
- package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +20 -20
- package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +22 -22
- package/lib/typescript/commonjs/components/DateSeparator/DateSeparator.d.ts +9 -9
- package/lib/typescript/commonjs/components/DecimalInput/DecimalInput.d.ts +14 -14
- package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +13 -13
- package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +24 -24
- package/lib/typescript/commonjs/components/Dialog/OverlayActions.d.ts +5 -5
- package/lib/typescript/commonjs/components/Divider/Divider.d.ts +9 -9
- package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +15 -15
- package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +13 -13
- package/lib/typescript/commonjs/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
- package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +2 -2
- package/lib/typescript/commonjs/components/FieldBase/ChoiceText.d.ts +10 -10
- package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +54 -54
- package/lib/typescript/commonjs/components/FieldBase/useFloatingLabel.d.ts +8 -8
- package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +35 -35
- package/lib/typescript/commonjs/components/FileViewer/FileViewer.d.ts +10 -10
- package/lib/typescript/commonjs/components/FileViewer/fileSource.d.ts +3 -3
- package/lib/typescript/commonjs/components/FileViewer/useFileViewerZoom.d.ts +3 -3
- package/lib/typescript/commonjs/components/FilterChipRow/FilterChipRow.d.ts +12 -12
- package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +35 -35
- package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +11 -11
- package/lib/typescript/commonjs/components/FormField/FormField.d.ts +15 -15
- package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +11 -11
- package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +14 -14
- package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +14 -14
- package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +36 -31
- package/lib/typescript/commonjs/components/Input/Input.d.ts +47 -47
- package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +7 -7
- package/lib/typescript/commonjs/components/KeyboardToolbar/KeyboardToolbar.d.ts +8 -8
- package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +44 -44
- package/lib/typescript/commonjs/components/ListSection/ListSection.d.ts +6 -6
- package/lib/typescript/commonjs/components/LoaderOverlay/LoaderOverlay.d.ts +17 -11
- package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +15 -15
- package/lib/typescript/commonjs/components/Menu/Menu.d.ts +17 -12
- package/lib/typescript/commonjs/components/Menu/MenuSurface.d.ts +8 -8
- package/lib/typescript/commonjs/components/Menu/menuModel.d.ts +11 -11
- package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +13 -13
- package/lib/typescript/commonjs/components/Menu/webOnly.d.ts +3 -3
- package/lib/typescript/commonjs/components/MessageBubble/MessageBubble.d.ts +20 -20
- package/lib/typescript/commonjs/components/MessageList/MessageList.d.ts +14 -14
- package/lib/typescript/commonjs/components/Modal/Modal.d.ts +19 -19
- package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +27 -27
- package/lib/typescript/commonjs/components/OTPInput/OTPInput.d.ts +20 -20
- package/lib/typescript/commonjs/components/OTPInput/OTPResendRow.d.ts +9 -9
- package/lib/typescript/commonjs/components/OnboardingPager/OnboardingPager.d.ts +5 -5
- package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +33 -33
- package/lib/typescript/commonjs/components/OptionSheet/optionAccessors.d.ts +8 -0
- package/lib/typescript/commonjs/components/PagedListFooter/PagedListFooter.d.ts +2 -2
- package/lib/typescript/commonjs/components/PermissionPrompt/PermissionPrompt.d.ts +6 -6
- package/lib/typescript/commonjs/components/PermissionPrompt/usePermissionPrompt.d.ts +1 -1
- package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +43 -43
- package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +23 -23
- package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +23 -23
- package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +30 -30
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +21 -21
- package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +13 -13
- package/lib/typescript/commonjs/components/Radio/Radio.d.ts +18 -18
- package/lib/typescript/commonjs/components/Radio/RadioDot.d.ts +5 -5
- package/lib/typescript/commonjs/components/Radio/RadioGroup.d.ts +8 -8
- package/lib/typescript/commonjs/components/Rating/Rating.d.ts +15 -15
- package/lib/typescript/commonjs/components/Repeater/Repeater.d.ts +10 -10
- package/lib/typescript/commonjs/components/RichTextEditor/RichTextEditor.d.ts +15 -15
- package/lib/typescript/commonjs/components/ScannerOverlay/ScannerOverlay.d.ts +13 -13
- package/lib/typescript/commonjs/components/Screen/Screen.d.ts +43 -44
- package/lib/typescript/commonjs/components/Screen/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +31 -31
- package/lib/typescript/commonjs/components/SearchBar/SearchPanel.d.ts +6 -6
- package/lib/typescript/commonjs/components/SearchBar/useRecentSearches.d.ts +1 -1
- package/lib/typescript/commonjs/components/SectionHeader/SectionHeader.d.ts +10 -10
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +25 -24
- package/lib/typescript/commonjs/components/Select/Select.d.ts +50 -45
- package/lib/typescript/commonjs/components/SignaturePad/SignaturePad.d.ts +20 -20
- package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +13 -13
- package/lib/typescript/commonjs/components/Skeleton/SkeletonContent.d.ts +9 -9
- package/lib/typescript/commonjs/components/Skeleton/SkeletonList.d.ts +30 -8
- package/lib/typescript/commonjs/components/Skeleton/SkeletonProvider.d.ts +9 -9
- package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +14 -14
- package/lib/typescript/commonjs/components/Slider/Slider.d.ts +30 -30
- package/lib/typescript/commonjs/components/Slider/valueText.d.ts +9 -9
- package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +41 -41
- package/lib/typescript/commonjs/components/SortableList/SortableList.d.ts +5 -5
- package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +13 -13
- package/lib/typescript/commonjs/components/Sparkline/geometry.d.ts +3 -1
- package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +10 -10
- package/lib/typescript/commonjs/components/SquircleFill/SquircleFill.d.ts +3 -3
- package/lib/typescript/commonjs/components/SquircleImage/SquircleImage.d.ts +5 -12
- package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +14 -14
- package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +13 -13
- package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +21 -21
- package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +16 -16
- package/lib/typescript/commonjs/components/Switch/Switch.d.ts +19 -19
- package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +20 -20
- package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +19 -19
- package/lib/typescript/commonjs/components/Text/Text.d.ts +10 -10
- package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +14 -14
- package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +12 -12
- package/lib/typescript/commonjs/components/Toast/Toast.d.ts +17 -17
- package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +8 -8
- package/lib/typescript/commonjs/components/Tooltip/RichTooltipBody.d.ts +4 -4
- package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +24 -19
- package/lib/typescript/commonjs/components/Tour/Tour.d.ts +7 -7
- package/lib/typescript/commonjs/components/TypingIndicator/TypingIndicator.d.ts +6 -6
- package/lib/typescript/commonjs/components/WheelPicker/Wheel.d.ts +6 -6
- package/lib/typescript/commonjs/components/WheelPicker/WheelPicker.d.ts +20 -20
- package/lib/typescript/commonjs/components/ZoomableImage/ZoomableImage.d.ts +8 -8
- package/lib/typescript/commonjs/form/HookFormField.d.ts +5 -18
- package/lib/typescript/commonjs/form/path.d.ts +4 -2
- package/lib/typescript/commonjs/form/useFormCompletion.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/useControllableState.d.ts +2 -2
- package/lib/typescript/commonjs/hooks/useDragToDismiss.d.ts +8 -8
- package/lib/typescript/commonjs/hooks/useFieldErrorScroll.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/usePressAnimation.d.ts +4 -4
- package/lib/typescript/commonjs/hooks/useRefreshControl.d.ts +8 -8
- package/lib/typescript/commonjs/hooks/useResendCountdown.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/useScrollDirection.d.ts +1 -1
- package/lib/typescript/commonjs/navigation/DiscardGuard.d.ts +2 -2
- package/lib/typescript/commonjs/navigation/NavigationScreen.d.ts +3 -3
- package/lib/typescript/commonjs/network/NetworkStatusBanner.d.ts +7 -7
- package/lib/typescript/commonjs/theme/Gradient.d.ts +2 -2
- package/lib/typescript/commonjs/theme/ThemeContext.d.ts +5 -5
- package/lib/typescript/commonjs/theme/componentSizes.d.ts +15 -38
- package/lib/typescript/commonjs/theme/types.d.ts +84 -84
- package/lib/typescript/commonjs/utils/announce.d.ts +1 -1
- package/lib/typescript/commonjs/utils/complete.d.ts +5 -0
- package/lib/typescript/commonjs/utils/feedback.d.ts +3 -1
- package/lib/typescript/commonjs/utils/guards.d.ts +9 -0
- package/lib/typescript/commonjs/utils/placement.d.ts +3 -3
- package/lib/typescript/commonjs/utils/squircle.d.ts +2 -2
- package/lib/typescript/module/canvasKit/index.d.ts +12 -12
- package/lib/typescript/module/canvasKit/meta.d.ts +5 -7
- package/lib/typescript/module/components/Accordion/Accordion.d.ts +22 -22
- package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +23 -23
- package/lib/typescript/module/components/AnimatePresence/AnimatePresence.d.ts +5 -5
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +39 -39
- package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +7 -7
- package/lib/typescript/module/components/AppIcon/defaultIcons.d.ts +2 -1
- package/lib/typescript/module/components/AppIcon/glyphs.g.d.ts +233 -233
- package/lib/typescript/module/components/AppIcon/slotIcon.d.ts +1 -1
- package/lib/typescript/module/components/AppLockOverlay/AppLockOverlay.d.ts +5 -5
- package/lib/typescript/module/components/AsyncBlock/AsyncBlock.d.ts +22 -40
- package/lib/typescript/module/components/AuthedImage/AuthedImage.d.ts +15 -15
- package/lib/typescript/module/components/AuthedImage/authedImageCache.d.ts +2 -2
- package/lib/typescript/module/components/Autocomplete/Autocomplete.d.ts +24 -24
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +36 -36
- package/lib/typescript/module/components/Badge/Badge.d.ts +18 -18
- package/lib/typescript/module/components/Banner/Banner.d.ts +25 -25
- package/lib/typescript/module/components/BarChart/BarChart.d.ts +21 -21
- package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +36 -36
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +33 -33
- package/lib/typescript/module/components/Box/Box.d.ts +27 -27
- package/lib/typescript/module/components/Button/Button.d.ts +22 -22
- package/lib/typescript/module/components/Calendar/Calendar.d.ts +20 -20
- package/lib/typescript/module/components/Calendar/CalendarDay.d.ts +4 -2
- package/lib/typescript/module/components/Card/Card.d.ts +41 -41
- package/lib/typescript/module/components/Carousel/Carousel.d.ts +21 -21
- package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +21 -21
- package/lib/typescript/module/components/Chip/Chip.d.ts +23 -23
- package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +51 -46
- package/lib/typescript/module/components/Composer/Composer.d.ts +27 -27
- package/lib/typescript/module/components/Confetti/Confetti.d.ts +22 -21
- package/lib/typescript/module/components/Confirm/confirm.d.ts +4 -4
- package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +20 -20
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +22 -22
- package/lib/typescript/module/components/DateSeparator/DateSeparator.d.ts +9 -9
- package/lib/typescript/module/components/DecimalInput/DecimalInput.d.ts +14 -14
- package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +13 -13
- package/lib/typescript/module/components/Dialog/Dialog.d.ts +24 -24
- package/lib/typescript/module/components/Dialog/OverlayActions.d.ts +5 -5
- package/lib/typescript/module/components/Divider/Divider.d.ts +9 -9
- package/lib/typescript/module/components/Drawer/Drawer.d.ts +15 -15
- package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +13 -13
- package/lib/typescript/module/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
- package/lib/typescript/module/components/FieldBase/Chevron.d.ts +2 -2
- package/lib/typescript/module/components/FieldBase/ChoiceText.d.ts +10 -10
- package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +54 -54
- package/lib/typescript/module/components/FieldBase/useFloatingLabel.d.ts +8 -8
- package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +35 -35
- package/lib/typescript/module/components/FileViewer/FileViewer.d.ts +10 -10
- package/lib/typescript/module/components/FileViewer/fileSource.d.ts +3 -3
- package/lib/typescript/module/components/FileViewer/useFileViewerZoom.d.ts +3 -3
- package/lib/typescript/module/components/FilterChipRow/FilterChipRow.d.ts +12 -12
- package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +35 -35
- package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +11 -11
- package/lib/typescript/module/components/FormField/FormField.d.ts +15 -15
- package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +11 -11
- package/lib/typescript/module/components/IconButton/IconButton.d.ts +14 -14
- package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +14 -14
- package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +36 -31
- package/lib/typescript/module/components/Input/Input.d.ts +47 -47
- package/lib/typescript/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +7 -7
- package/lib/typescript/module/components/KeyboardToolbar/KeyboardToolbar.d.ts +8 -8
- package/lib/typescript/module/components/ListItem/ListItem.d.ts +44 -44
- package/lib/typescript/module/components/ListSection/ListSection.d.ts +6 -6
- package/lib/typescript/module/components/LoaderOverlay/LoaderOverlay.d.ts +17 -11
- package/lib/typescript/module/components/Markdown/Markdown.d.ts +15 -15
- package/lib/typescript/module/components/Menu/Menu.d.ts +17 -12
- package/lib/typescript/module/components/Menu/MenuSurface.d.ts +8 -8
- package/lib/typescript/module/components/Menu/menuModel.d.ts +11 -11
- package/lib/typescript/module/components/Menu/useContextMenu.d.ts +13 -13
- package/lib/typescript/module/components/Menu/webOnly.d.ts +3 -3
- package/lib/typescript/module/components/MessageBubble/MessageBubble.d.ts +20 -20
- package/lib/typescript/module/components/MessageList/MessageList.d.ts +14 -14
- package/lib/typescript/module/components/Modal/Modal.d.ts +19 -19
- package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +27 -27
- package/lib/typescript/module/components/OTPInput/OTPInput.d.ts +20 -20
- package/lib/typescript/module/components/OTPInput/OTPResendRow.d.ts +9 -9
- package/lib/typescript/module/components/OnboardingPager/OnboardingPager.d.ts +5 -5
- package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +33 -33
- package/lib/typescript/module/components/OptionSheet/optionAccessors.d.ts +8 -0
- package/lib/typescript/module/components/PagedListFooter/PagedListFooter.d.ts +2 -2
- package/lib/typescript/module/components/PermissionPrompt/PermissionPrompt.d.ts +6 -6
- package/lib/typescript/module/components/PermissionPrompt/usePermissionPrompt.d.ts +1 -1
- package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +43 -43
- package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +23 -23
- package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +23 -23
- package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +30 -30
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +21 -21
- package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +13 -13
- package/lib/typescript/module/components/Radio/Radio.d.ts +18 -18
- package/lib/typescript/module/components/Radio/RadioDot.d.ts +5 -5
- package/lib/typescript/module/components/Radio/RadioGroup.d.ts +8 -8
- package/lib/typescript/module/components/Rating/Rating.d.ts +15 -15
- package/lib/typescript/module/components/Repeater/Repeater.d.ts +10 -10
- package/lib/typescript/module/components/RichTextEditor/RichTextEditor.d.ts +15 -15
- package/lib/typescript/module/components/ScannerOverlay/ScannerOverlay.d.ts +13 -13
- package/lib/typescript/module/components/Screen/Screen.d.ts +43 -44
- package/lib/typescript/module/components/Screen/index.d.ts +1 -1
- package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +31 -31
- package/lib/typescript/module/components/SearchBar/SearchPanel.d.ts +6 -6
- package/lib/typescript/module/components/SearchBar/useRecentSearches.d.ts +1 -1
- package/lib/typescript/module/components/SectionHeader/SectionHeader.d.ts +10 -10
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +25 -24
- package/lib/typescript/module/components/Select/Select.d.ts +50 -45
- package/lib/typescript/module/components/SignaturePad/SignaturePad.d.ts +20 -20
- package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +13 -13
- package/lib/typescript/module/components/Skeleton/SkeletonContent.d.ts +9 -9
- package/lib/typescript/module/components/Skeleton/SkeletonList.d.ts +30 -8
- package/lib/typescript/module/components/Skeleton/SkeletonProvider.d.ts +9 -9
- package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +14 -14
- package/lib/typescript/module/components/Slider/Slider.d.ts +30 -30
- package/lib/typescript/module/components/Slider/valueText.d.ts +9 -9
- package/lib/typescript/module/components/SliderField/SliderField.d.ts +41 -41
- package/lib/typescript/module/components/SortableList/SortableList.d.ts +5 -5
- package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +13 -13
- package/lib/typescript/module/components/Sparkline/geometry.d.ts +3 -1
- package/lib/typescript/module/components/Spinner/Spinner.d.ts +10 -10
- package/lib/typescript/module/components/SquircleFill/SquircleFill.d.ts +3 -3
- package/lib/typescript/module/components/SquircleImage/SquircleImage.d.ts +5 -12
- package/lib/typescript/module/components/StatTile/StatTile.d.ts +14 -14
- package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +13 -13
- package/lib/typescript/module/components/Stepper/Stepper.d.ts +21 -21
- package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +16 -16
- package/lib/typescript/module/components/Switch/Switch.d.ts +19 -19
- package/lib/typescript/module/components/Tabs/Tabs.d.ts +20 -20
- package/lib/typescript/module/components/TagInput/TagInput.d.ts +19 -19
- package/lib/typescript/module/components/Text/Text.d.ts +10 -10
- package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +14 -14
- package/lib/typescript/module/components/Timeline/Timeline.d.ts +12 -12
- package/lib/typescript/module/components/Toast/Toast.d.ts +17 -17
- package/lib/typescript/module/components/Toast/ToastProvider.d.ts +8 -8
- package/lib/typescript/module/components/Tooltip/RichTooltipBody.d.ts +4 -4
- package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +24 -19
- package/lib/typescript/module/components/Tour/Tour.d.ts +7 -7
- package/lib/typescript/module/components/TypingIndicator/TypingIndicator.d.ts +6 -6
- package/lib/typescript/module/components/WheelPicker/Wheel.d.ts +6 -6
- package/lib/typescript/module/components/WheelPicker/WheelPicker.d.ts +20 -20
- package/lib/typescript/module/components/ZoomableImage/ZoomableImage.d.ts +8 -8
- package/lib/typescript/module/form/HookFormField.d.ts +5 -18
- package/lib/typescript/module/form/path.d.ts +4 -2
- package/lib/typescript/module/form/useFormCompletion.d.ts +1 -1
- package/lib/typescript/module/hooks/useControllableState.d.ts +2 -2
- package/lib/typescript/module/hooks/useDragToDismiss.d.ts +8 -8
- package/lib/typescript/module/hooks/useFieldErrorScroll.d.ts +1 -1
- package/lib/typescript/module/hooks/usePressAnimation.d.ts +4 -4
- package/lib/typescript/module/hooks/useRefreshControl.d.ts +8 -8
- package/lib/typescript/module/hooks/useResendCountdown.d.ts +1 -1
- package/lib/typescript/module/hooks/useScrollDirection.d.ts +1 -1
- package/lib/typescript/module/navigation/DiscardGuard.d.ts +2 -2
- package/lib/typescript/module/navigation/NavigationScreen.d.ts +3 -3
- package/lib/typescript/module/network/NetworkStatusBanner.d.ts +7 -7
- package/lib/typescript/module/theme/Gradient.d.ts +2 -2
- package/lib/typescript/module/theme/ThemeContext.d.ts +5 -5
- package/lib/typescript/module/theme/componentSizes.d.ts +15 -38
- package/lib/typescript/module/theme/types.d.ts +84 -84
- package/lib/typescript/module/utils/announce.d.ts +1 -1
- package/lib/typescript/module/utils/complete.d.ts +5 -0
- package/lib/typescript/module/utils/feedback.d.ts +3 -1
- package/lib/typescript/module/utils/guards.d.ts +9 -0
- package/lib/typescript/module/utils/placement.d.ts +3 -3
- package/lib/typescript/module/utils/squircle.d.ts +2 -2
- package/package.json +11 -11
- package/src/specs/NativePdfRasterizer.ts +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
import type { Complete } from "../../utils/complete";
|
|
3
4
|
export type ConfettiPreset = "pop" | "rain" | "fireworks";
|
|
4
5
|
export type ConfettiShape = "strip" | "square" | "circle" | "triangle" | "star" | "streamer";
|
|
5
6
|
export type ConfettiSpeed = "slow" | "normal" | "fast";
|
|
@@ -14,13 +15,13 @@ export interface ConfettiOrigin {
|
|
|
14
15
|
*/
|
|
15
16
|
export interface ConfettiPhysics {
|
|
16
17
|
/** Launch speed. Above 1 throws pieces further from the origin. */
|
|
17
|
-
velocity?: number;
|
|
18
|
+
velocity?: number | undefined;
|
|
18
19
|
/** Air resistance. Above 1 makes pieces give up their launch speed sooner. */
|
|
19
|
-
drag?: number;
|
|
20
|
+
drag?: number | undefined;
|
|
20
21
|
/** Steady falling speed once the launch speed is spent. */
|
|
21
|
-
fallSpeed?: number;
|
|
22
|
+
fallSpeed?: number | undefined;
|
|
22
23
|
/** Burst arc in degrees, for `'pop'` and `'fireworks'`. Ignored by `'rain'`. */
|
|
23
|
-
spread?: number;
|
|
24
|
+
spread?: number | undefined;
|
|
24
25
|
}
|
|
25
26
|
export interface ConfettiHandle {
|
|
26
27
|
/** Fire a burst. Re-seeds the pieces so each call looks different. */
|
|
@@ -30,9 +31,9 @@ export interface ConfettiHandle {
|
|
|
30
31
|
}
|
|
31
32
|
export interface ConfettiProps {
|
|
32
33
|
/** Number of pieces. Default 80. */
|
|
33
|
-
count?: number;
|
|
34
|
+
count?: number | undefined;
|
|
34
35
|
/** Piece colours. Defaults to a vibrant set drawn from the theme palette. */
|
|
35
|
-
colors?: string[];
|
|
36
|
+
colors?: string[] | undefined;
|
|
36
37
|
/**
|
|
37
38
|
* Which animation to run. Default `'pop'`.
|
|
38
39
|
*
|
|
@@ -40,29 +41,29 @@ export interface ConfettiProps {
|
|
|
40
41
|
* - `'rain'` falls from the top edge.
|
|
41
42
|
* - `'fireworks'` fires several staggered bursts at random points.
|
|
42
43
|
*/
|
|
43
|
-
preset?: ConfettiPreset;
|
|
44
|
+
preset?: ConfettiPreset | undefined;
|
|
44
45
|
/** Which shapes appear. Defaults to a mix chosen per preset. */
|
|
45
|
-
shapes?: ConfettiShape[];
|
|
46
|
+
shapes?: ConfettiShape[] | undefined;
|
|
46
47
|
/** Scales `duration`: slow is 1.6x, fast is 0.6x. Default `'normal'`. */
|
|
47
|
-
speed?: ConfettiSpeed;
|
|
48
|
+
speed?: ConfettiSpeed | undefined;
|
|
48
49
|
/** Tune the preset's motion. Each value multiplies the preset's own. */
|
|
49
|
-
physics?: ConfettiPhysics;
|
|
50
|
+
physics?: ConfettiPhysics | undefined;
|
|
50
51
|
/** Burst origin for `'pop'` (defaults to the centre of the container). */
|
|
51
|
-
origin?: ConfettiOrigin;
|
|
52
|
+
origin?: ConfettiOrigin | undefined;
|
|
52
53
|
/** Base animation duration in ms, before `speed` scales it. Default 2800. */
|
|
53
|
-
duration?: number;
|
|
54
|
+
duration?: number | undefined;
|
|
54
55
|
/** Fade pieces out near the end. Default true. */
|
|
55
|
-
fadeOut?: boolean;
|
|
56
|
+
fadeOut?: boolean | undefined;
|
|
56
57
|
/** Fire automatically on mount. Default false. */
|
|
57
|
-
autoStart?: boolean;
|
|
58
|
+
autoStart?: boolean | undefined;
|
|
58
59
|
/** Loop continuously (ongoing celebration). Default false. */
|
|
59
|
-
recycle?: boolean;
|
|
60
|
+
recycle?: boolean | undefined;
|
|
60
61
|
/** Base piece size in px (varied ±40% per piece). Default 10. */
|
|
61
|
-
size?: number;
|
|
62
|
+
size?: number | undefined;
|
|
62
63
|
/** Called once when a non-recycling burst finishes (or immediately if reduce-motion is on). */
|
|
63
|
-
onComplete?: () => void;
|
|
64
|
-
style?: StyleProp<ViewStyle
|
|
65
|
-
testID?: string;
|
|
64
|
+
onComplete?: (() => void) | undefined;
|
|
65
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
66
|
+
testID?: string | undefined;
|
|
66
67
|
}
|
|
67
68
|
/**
|
|
68
69
|
* A piece carries its whole trajectory, so every preset is data rather than a
|
|
@@ -93,13 +94,13 @@ export interface Piece {
|
|
|
93
94
|
swayFreq: number;
|
|
94
95
|
flutterFreq: number;
|
|
95
96
|
}
|
|
96
|
-
export declare const DEFAULT_PHYSICS:
|
|
97
|
+
export declare const DEFAULT_PHYSICS: Complete<ConfettiPhysics>;
|
|
97
98
|
export interface Seed {
|
|
98
99
|
colors: string[];
|
|
99
100
|
baseSize: number;
|
|
100
101
|
originXFrac: number;
|
|
101
102
|
originYFrac: number;
|
|
102
|
-
physics:
|
|
103
|
+
physics: Complete<ConfettiPhysics>;
|
|
103
104
|
shapes: ConfettiShape[];
|
|
104
105
|
}
|
|
105
106
|
/**
|
|
@@ -2,15 +2,15 @@ import type React from "react";
|
|
|
2
2
|
import type { Tone } from "../../types/vocabulary";
|
|
3
3
|
export interface ConfirmOptions {
|
|
4
4
|
title: string;
|
|
5
|
-
message?: string;
|
|
5
|
+
message?: string | undefined;
|
|
6
6
|
confirmLabel: string;
|
|
7
|
-
tone?: Tone;
|
|
7
|
+
tone?: Tone | undefined;
|
|
8
8
|
}
|
|
9
9
|
export interface ConfirmHostProps {
|
|
10
10
|
labels?: Partial<{
|
|
11
11
|
cancel: string;
|
|
12
|
-
}
|
|
13
|
-
testID?: string;
|
|
12
|
+
}> | undefined;
|
|
13
|
+
testID?: string | undefined;
|
|
14
14
|
}
|
|
15
15
|
export declare function confirm(options: ConfirmOptions): Promise<boolean>;
|
|
16
16
|
export declare function ConfirmHost({ labels: labelOverrides, testID }: ConfirmHostProps): React.ReactElement | null;
|
|
@@ -36,32 +36,32 @@ export declare const DEFAULT_DATE_PICKER_LABELS: Readonly<DatePickerLabels>;
|
|
|
36
36
|
* they remain semantically required.
|
|
37
37
|
*/
|
|
38
38
|
export interface DatePickerProps extends PickerTriggerPassThroughProps {
|
|
39
|
-
open?: boolean;
|
|
40
|
-
value?: Date | null;
|
|
41
|
-
onChange?: (date: Date) => void;
|
|
42
|
-
onClose?: () => void;
|
|
43
|
-
minDate?: Date;
|
|
44
|
-
maxDate?: Date;
|
|
45
|
-
disabledDates?: Date[];
|
|
46
|
-
inline?: boolean;
|
|
47
|
-
locale?: string;
|
|
48
|
-
weekStartsOn?: WeekStart;
|
|
49
|
-
title?: string;
|
|
50
|
-
labels?: Partial<DatePickerLabels
|
|
39
|
+
open?: boolean | undefined;
|
|
40
|
+
value?: Date | null | undefined;
|
|
41
|
+
onChange?: ((date: Date) => void) | undefined;
|
|
42
|
+
onClose?: (() => void) | undefined;
|
|
43
|
+
minDate?: Date | undefined;
|
|
44
|
+
maxDate?: Date | undefined;
|
|
45
|
+
disabledDates?: Date[] | undefined;
|
|
46
|
+
inline?: boolean | undefined;
|
|
47
|
+
locale?: string | undefined;
|
|
48
|
+
weekStartsOn?: WeekStart | undefined;
|
|
49
|
+
title?: string | undefined;
|
|
50
|
+
labels?: Partial<DatePickerLabels> | undefined;
|
|
51
51
|
/** The outer box. Applied last on that node, so it wins over containerStyle. Applied to the calendar card. */
|
|
52
|
-
style?: StyleProp<ViewStyle
|
|
52
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
53
53
|
/** Alias of style, applied before it on the same node. Use style. Applied to the calendar card. */
|
|
54
|
-
containerStyle?: StyleProp<ViewStyle
|
|
54
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
55
55
|
/** Style override for the header label text wrapper (month/year). */
|
|
56
|
-
headerLabelStyle?: StyleProp<ViewStyle
|
|
56
|
+
headerLabelStyle?: StyleProp<ViewStyle> | undefined;
|
|
57
57
|
/** Style override for the previous/next navigation buttons. */
|
|
58
|
-
navButtonStyle?: StyleProp<ViewStyle
|
|
58
|
+
navButtonStyle?: StyleProp<ViewStyle> | undefined;
|
|
59
59
|
/** Style override for the cancel/confirm footer buttons. */
|
|
60
|
-
footerButtonStyle?: StyleProp<ViewStyle
|
|
60
|
+
footerButtonStyle?: StyleProp<ViewStyle> | undefined;
|
|
61
61
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
62
|
-
haptic?: HapticType | false;
|
|
63
|
-
testID?: string;
|
|
64
|
-
formatValue?: (date: Date) => string;
|
|
62
|
+
haptic?: HapticType | false | undefined;
|
|
63
|
+
testID?: string | undefined;
|
|
64
|
+
formatValue?: ((date: Date) => string) | undefined;
|
|
65
65
|
}
|
|
66
66
|
declare const DatePicker: React.FC<DatePickerProps>;
|
|
67
67
|
export { DatePicker };
|
|
@@ -26,44 +26,44 @@ export declare const DEFAULT_DATE_RANGE_PICKER_LABELS: Readonly<DateRangePickerL
|
|
|
26
26
|
* `onChange?.(...)` and closes.
|
|
27
27
|
*/
|
|
28
28
|
export interface DateRangePickerProps extends PickerTriggerPassThroughProps {
|
|
29
|
-
open?: boolean;
|
|
29
|
+
open?: boolean | undefined;
|
|
30
30
|
value: DateRange;
|
|
31
|
-
onChange?: (range: {
|
|
31
|
+
onChange?: ((range: {
|
|
32
32
|
start: Date;
|
|
33
33
|
end: Date;
|
|
34
|
-
}) => void;
|
|
35
|
-
onClose?: () => void;
|
|
36
|
-
formatValue?: (range: {
|
|
34
|
+
}) => void) | undefined;
|
|
35
|
+
onClose?: (() => void) | undefined;
|
|
36
|
+
formatValue?: ((range: {
|
|
37
37
|
start: Date;
|
|
38
38
|
end: Date;
|
|
39
|
-
}) => string;
|
|
40
|
-
minDate?: Date;
|
|
41
|
-
maxDate?: Date;
|
|
42
|
-
disabledDates?: Date[];
|
|
39
|
+
}) => string) | undefined;
|
|
40
|
+
minDate?: Date | undefined;
|
|
41
|
+
maxDate?: Date | undefined;
|
|
42
|
+
disabledDates?: Date[] | undefined;
|
|
43
43
|
/** Holidays, events and pending requests drawn on the grid; see `Calendar`. */
|
|
44
|
-
marks?: CalendarMark[];
|
|
45
|
-
locale?: string;
|
|
46
|
-
weekStartsOn?: WeekStart;
|
|
44
|
+
marks?: CalendarMark[] | undefined;
|
|
45
|
+
locale?: string | undefined;
|
|
46
|
+
weekStartsOn?: WeekStart | undefined;
|
|
47
47
|
/** Overrides `labels.title`. */
|
|
48
|
-
title?: string;
|
|
49
|
-
labels?: Partial<DateRangePickerLabels
|
|
50
|
-
maxRange?: number;
|
|
48
|
+
title?: string | undefined;
|
|
49
|
+
labels?: Partial<DateRangePickerLabels> | undefined;
|
|
50
|
+
maxRange?: number | undefined;
|
|
51
51
|
/**
|
|
52
52
|
* Haptic feedback for interactions. Pass false to disable; pass a HapticType
|
|
53
53
|
* to override the default.
|
|
54
54
|
*/
|
|
55
|
-
haptic?: HapticType | false;
|
|
55
|
+
haptic?: HapticType | false | undefined;
|
|
56
56
|
/** The outer box, applied to the calendar card. Applied last on that node, so it wins over containerStyle. */
|
|
57
|
-
style?: StyleProp<ViewStyle
|
|
57
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
58
58
|
/** Applied to the calendar card. Alias of style, applied before it on the same node. Use style. */
|
|
59
|
-
containerStyle?: StyleProp<ViewStyle
|
|
59
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
60
60
|
/** Style override for the header label (month/year) wrapper. */
|
|
61
|
-
headerLabelStyle?: StyleProp<ViewStyle
|
|
61
|
+
headerLabelStyle?: StyleProp<ViewStyle> | undefined;
|
|
62
62
|
/** Style override for the previous/next navigation buttons. */
|
|
63
|
-
navButtonStyle?: StyleProp<ViewStyle
|
|
63
|
+
navButtonStyle?: StyleProp<ViewStyle> | undefined;
|
|
64
64
|
/** Style override for the cancel/confirm footer buttons. */
|
|
65
|
-
footerButtonStyle?: StyleProp<ViewStyle
|
|
66
|
-
testID?: string;
|
|
65
|
+
footerButtonStyle?: StyleProp<ViewStyle> | undefined;
|
|
66
|
+
testID?: string | undefined;
|
|
67
67
|
}
|
|
68
68
|
declare const DateRangePicker: ForwardRefExoticComponent<DateRangePickerProps & RefAttributes<HostInstance>>;
|
|
69
69
|
export { DateRangePicker };
|
|
@@ -8,24 +8,24 @@ export interface DateSeparatorLabels {
|
|
|
8
8
|
export declare const DEFAULT_DATE_SEPARATOR_LABELS: Readonly<DateSeparatorLabels>;
|
|
9
9
|
export interface DateSeparatorProps {
|
|
10
10
|
/** The day to name. An instant is read in the configured zone (IST by default). */
|
|
11
|
-
date?: DateValue;
|
|
11
|
+
date?: DateValue | undefined;
|
|
12
12
|
/** Draws this text instead of a day, e.g. "New messages" above the first unread. */
|
|
13
|
-
label?: string;
|
|
13
|
+
label?: string | undefined;
|
|
14
14
|
/** Draws the text and rules in the brand colour, for an unread divider. */
|
|
15
|
-
emphasis?: boolean;
|
|
16
|
-
labels?: Partial<DateSeparatorLabels
|
|
15
|
+
emphasis?: boolean | undefined;
|
|
16
|
+
labels?: Partial<DateSeparatorLabels> | undefined;
|
|
17
17
|
/** The reference for Today and Yesterday. Default: now. */
|
|
18
|
-
now?: Date;
|
|
19
|
-
style?: StyleProp<ViewStyle
|
|
20
|
-
testID?: string;
|
|
18
|
+
now?: Date | undefined;
|
|
19
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
20
|
+
testID?: string | undefined;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* "Today", "Yesterday" or "10-Oct-2026" for a day, in the configured zone.
|
|
24
24
|
* Exported so a list can key its separators on the same text it shows.
|
|
25
25
|
*/
|
|
26
26
|
export declare const dayLabel: (date: DateValue, options?: {
|
|
27
|
-
now?: Date;
|
|
28
|
-
labels?: Partial<DateSeparatorLabels
|
|
27
|
+
now?: Date | undefined;
|
|
28
|
+
labels?: Partial<DateSeparatorLabels> | undefined;
|
|
29
29
|
}) => string;
|
|
30
30
|
/**
|
|
31
31
|
* A centred day name between two hairlines, for a message list. With `label`
|
|
@@ -3,13 +3,13 @@ import type { TextInputInstance } from "react-native";
|
|
|
3
3
|
import type { InputProps } from "../Input";
|
|
4
4
|
export interface DecimalRules {
|
|
5
5
|
/** Digits only: no point, no minus. */
|
|
6
|
-
whole?: boolean;
|
|
6
|
+
whole?: boolean | undefined;
|
|
7
7
|
/** Allow one leading minus. */
|
|
8
|
-
signed?: boolean;
|
|
8
|
+
signed?: boolean | undefined;
|
|
9
9
|
/** Most fraction digits kept after the point. */
|
|
10
|
-
decimals?: number;
|
|
10
|
+
decimals?: number | undefined;
|
|
11
11
|
/** Keep only digits and `. e E + -`, so `1e-5` can be typed. */
|
|
12
|
-
allowExponent?: boolean;
|
|
12
|
+
allowExponent?: boolean | undefined;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* What a figure typed or pasted into the field is cleaned to. In exponent mode only the characters
|
|
@@ -36,25 +36,25 @@ export interface DecimalInputLabels {
|
|
|
36
36
|
export declare const DEFAULT_DECIMAL_INPUT_LABELS: DecimalInputLabels;
|
|
37
37
|
export interface DecimalInputProps extends Omit<InputProps, "value" | "onChange" | "onChangeText" | "keyboardType" | "labels"> {
|
|
38
38
|
/** The quantity's symbol, drawn in the prefix box before the value. Passed to Input as `prefix`. */
|
|
39
|
-
symbol?: InputProps["prefix"];
|
|
39
|
+
symbol?: InputProps["prefix"] | undefined;
|
|
40
40
|
/** The figure as a number, or null for an empty field. */
|
|
41
|
-
value?: number | null;
|
|
41
|
+
value?: number | null | undefined;
|
|
42
42
|
/** A number, or null while the field is cleared or half-typed ('12.', a lone '-', an unclear comma figure). */
|
|
43
|
-
onChange?: (value: number | null) => void;
|
|
43
|
+
onChange?: ((value: number | null) => void) | undefined;
|
|
44
44
|
/** A keystroke or paste that would pass this is refused; a figure already past it can still be edited down. */
|
|
45
|
-
max?: number;
|
|
45
|
+
max?: number | undefined;
|
|
46
46
|
/** Lower bound, refused the same way as `max`. */
|
|
47
|
-
min?: number;
|
|
47
|
+
min?: number | undefined;
|
|
48
48
|
/** Digits only. Number-pad keyboard. */
|
|
49
|
-
whole?: boolean;
|
|
49
|
+
whole?: boolean | undefined;
|
|
50
50
|
/** Allow a leading minus. Numeric keyboard. */
|
|
51
|
-
signed?: boolean;
|
|
51
|
+
signed?: boolean | undefined;
|
|
52
52
|
/** Most fraction digits kept. */
|
|
53
|
-
decimals?: number;
|
|
53
|
+
decimals?: number | undefined;
|
|
54
54
|
/** Allow exponent notation such as `1e-5`. */
|
|
55
|
-
allowExponent?: boolean;
|
|
55
|
+
allowExponent?: boolean | undefined;
|
|
56
56
|
/** Copy for the field's own message. Each key overrides its default in DEFAULT_DECIMAL_INPUT_LABELS. */
|
|
57
|
-
labels?: Partial<DecimalInputLabels
|
|
57
|
+
labels?: Partial<DecimalInputLabels> | undefined;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* A figure typed on a number keyboard, over Input. Every Input prop passes through; the value may be
|
|
@@ -15,33 +15,33 @@ export interface DescriptionItem {
|
|
|
15
15
|
* size, weight and colour (`strong`, `tone`). Any other node (a badge, a
|
|
16
16
|
* Text of your own) renders as-is in a View and owns its type. Empty renders as a plain hyphen, "-".
|
|
17
17
|
*/
|
|
18
|
-
value?: React.ReactNode;
|
|
18
|
+
value?: React.ReactNode | undefined;
|
|
19
19
|
/** Make this row span both columns. Ignored when `columns` is 1. */
|
|
20
|
-
full?: boolean;
|
|
20
|
+
full?: boolean | undefined;
|
|
21
21
|
/** React key. Defaults to the label and index for a string label, and to the index for a node label. */
|
|
22
|
-
key?: string;
|
|
22
|
+
key?: string | undefined;
|
|
23
23
|
/** Draw a string value in the semibold weight. */
|
|
24
|
-
strong?: boolean;
|
|
24
|
+
strong?: boolean | undefined;
|
|
25
25
|
/** Colour of a string value: a text role, a semantic tone or a raw colour. Empty values stay muted. */
|
|
26
|
-
tone?: TextColor;
|
|
26
|
+
tone?: TextColor | undefined;
|
|
27
27
|
/** Test id for this row. */
|
|
28
|
-
testID?: string;
|
|
28
|
+
testID?: string | undefined;
|
|
29
29
|
}
|
|
30
30
|
export interface DescriptionsProps {
|
|
31
31
|
items: ReadonlyArray<DescriptionItem>;
|
|
32
32
|
/** 1 stacks label above value; 2 puts them side by side. Default 1 — phone widths are narrow. */
|
|
33
|
-
columns?: 1 | 2;
|
|
34
|
-
size?: DescriptionsSize;
|
|
33
|
+
columns?: 1 | 2 | undefined;
|
|
34
|
+
size?: DescriptionsSize | undefined;
|
|
35
35
|
/** Hairlines between rows. */
|
|
36
|
-
bordered?: boolean;
|
|
37
|
-
title?: string;
|
|
36
|
+
bordered?: boolean | undefined;
|
|
37
|
+
title?: string | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* 'list' (default) is the record-detail layout. 'summary' is a compact analysis table: one line per
|
|
40
40
|
* row, label left, value right-aligned, a hairline rule under every row.
|
|
41
41
|
*/
|
|
42
|
-
variant?: DescriptionsVariant;
|
|
43
|
-
style?: StyleProp<ViewStyle
|
|
44
|
-
testID?: string;
|
|
42
|
+
variant?: DescriptionsVariant | undefined;
|
|
43
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
44
|
+
testID?: string | undefined;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* A labelled key-value list for record detail — the "what are this thing's
|
|
@@ -8,52 +8,52 @@ export type DialogActionTone = Tone;
|
|
|
8
8
|
export interface DialogAction {
|
|
9
9
|
label: string;
|
|
10
10
|
onPress: () => void;
|
|
11
|
-
tone?: DialogActionTone;
|
|
11
|
+
tone?: DialogActionTone | undefined;
|
|
12
12
|
/** Icon before the label, drawn in the label's colour; the same icon contract as Button `leftIcon`. */
|
|
13
|
-
icon?: SlotIcon;
|
|
14
|
-
loading?: boolean;
|
|
13
|
+
icon?: SlotIcon | undefined;
|
|
14
|
+
loading?: boolean | undefined;
|
|
15
15
|
/** Dims the action and blocks its press (a confirm waiting on a typed phrase, say). */
|
|
16
|
-
disabled?: boolean;
|
|
16
|
+
disabled?: boolean | undefined;
|
|
17
17
|
}
|
|
18
18
|
export interface DialogProps {
|
|
19
19
|
open: boolean;
|
|
20
20
|
onClose: () => void;
|
|
21
|
-
title?: string;
|
|
22
|
-
message?: string;
|
|
21
|
+
title?: string | undefined;
|
|
22
|
+
message?: string | undefined;
|
|
23
23
|
/** Custom content (a short form, a summary) drawn after the message and before the actions. */
|
|
24
|
-
children?: React.ReactNode;
|
|
25
|
-
icon?: React.ReactNode;
|
|
24
|
+
children?: React.ReactNode | undefined;
|
|
25
|
+
icon?: React.ReactNode | undefined;
|
|
26
26
|
/** Art drawn above the disc and title: an image source, or an element. */
|
|
27
|
-
illustration?: ImageSourcePropType | React.ReactElement;
|
|
27
|
+
illustration?: ImageSourcePropType | React.ReactElement | undefined;
|
|
28
28
|
/** Tints the disc and draws its status mark (check, alert or info) unless `icon` or `illustration` is set. */
|
|
29
|
-
tone?: Tone;
|
|
30
|
-
actions?: DialogAction[];
|
|
29
|
+
tone?: Tone | undefined;
|
|
30
|
+
actions?: DialogAction[] | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* How the action buttons are laid out. `'auto'` (default) stacks them into a column when a
|
|
33
33
|
* label wraps; `'row'` never stacks; `'stacked'` is always a column of full-width buttons, in the order given.
|
|
34
34
|
*/
|
|
35
|
-
actionsLayout?: ActionsLayout;
|
|
36
|
-
dismissOnAction?: boolean;
|
|
37
|
-
accessibilityLabel?: string;
|
|
35
|
+
actionsLayout?: ActionsLayout | undefined;
|
|
36
|
+
dismissOnAction?: boolean | undefined;
|
|
37
|
+
accessibilityLabel?: string | undefined;
|
|
38
38
|
/** Style applied to the underlying Modal sheet (consumer may override radius, padding, etc.). */
|
|
39
|
-
contentStyle?: StyleProp<ViewStyle
|
|
39
|
+
contentStyle?: StyleProp<ViewStyle> | undefined;
|
|
40
40
|
/** Style applied to the dialog inner container (above icon/title/message). */
|
|
41
|
-
containerStyle?: StyleProp<ViewStyle
|
|
41
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
42
42
|
/** Style override for the title text. */
|
|
43
|
-
titleStyle?: StyleProp<TextStyle
|
|
43
|
+
titleStyle?: StyleProp<TextStyle> | undefined;
|
|
44
44
|
/** Style override for the message text. */
|
|
45
|
-
messageStyle?: StyleProp<TextStyle
|
|
45
|
+
messageStyle?: StyleProp<TextStyle> | undefined;
|
|
46
46
|
/** Style override for the icon wrapper view. */
|
|
47
|
-
iconWrapperStyle?: StyleProp<ViewStyle
|
|
47
|
+
iconWrapperStyle?: StyleProp<ViewStyle> | undefined;
|
|
48
48
|
/** Style override for the actions row container. */
|
|
49
|
-
actionsRowStyle?: StyleProp<ViewStyle
|
|
49
|
+
actionsRowStyle?: StyleProp<ViewStyle> | undefined;
|
|
50
50
|
/** Style override applied to every action button pressable. */
|
|
51
|
-
actionButtonStyle?: StyleProp<ViewStyle
|
|
51
|
+
actionButtonStyle?: StyleProp<ViewStyle> | undefined;
|
|
52
52
|
/** Style override applied to every action button label text. */
|
|
53
|
-
actionTextStyle?: StyleProp<TextStyle
|
|
53
|
+
actionTextStyle?: StyleProp<TextStyle> | undefined;
|
|
54
54
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
55
|
-
haptic?: HapticType | false;
|
|
56
|
-
testID?: string;
|
|
55
|
+
haptic?: HapticType | false | undefined;
|
|
56
|
+
testID?: string | undefined;
|
|
57
57
|
}
|
|
58
58
|
declare const Dialog: React.FC<DialogProps>;
|
|
59
59
|
export { Dialog };
|
|
@@ -7,12 +7,12 @@ export type ActionsLayout = (typeof ACTIONS_LAYOUTS)[number];
|
|
|
7
7
|
interface OverlayActionsProps {
|
|
8
8
|
actions: DialogAction[];
|
|
9
9
|
layout: ActionsLayout;
|
|
10
|
-
testID?: string;
|
|
10
|
+
testID?: string | undefined;
|
|
11
11
|
/** The measured-stacked state, owned by a parent that outlives this row's unmount. */
|
|
12
|
-
stackedLabels?: [string | null, (key: string | null) => void];
|
|
13
|
-
rowStyle?: StyleProp<ViewStyle
|
|
14
|
-
buttonStyle?: StyleProp<ViewStyle
|
|
15
|
-
textStyle?: StyleProp<TextStyle
|
|
12
|
+
stackedLabels?: [string | null, (key: string | null) => void] | undefined;
|
|
13
|
+
rowStyle?: StyleProp<ViewStyle> | undefined;
|
|
14
|
+
buttonStyle?: StyleProp<ViewStyle> | undefined;
|
|
15
|
+
textStyle?: StyleProp<TextStyle> | undefined;
|
|
16
16
|
}
|
|
17
17
|
declare const OverlayActions: React.FC<OverlayActionsProps>;
|
|
18
18
|
export { OverlayActions };
|
|
@@ -4,15 +4,15 @@ export type DividerOrientation = "horizontal" | "vertical";
|
|
|
4
4
|
export type DividerSpacing = "none" | "sm" | "md" | "lg";
|
|
5
5
|
export type DividerLabelPosition = "start" | "center" | "end";
|
|
6
6
|
export interface DividerProps {
|
|
7
|
-
orientation?: DividerOrientation;
|
|
8
|
-
thickness?: number;
|
|
9
|
-
color?: string;
|
|
10
|
-
spacing?: DividerSpacing;
|
|
11
|
-
inset?: number;
|
|
12
|
-
label?: string;
|
|
13
|
-
labelPosition?: DividerLabelPosition;
|
|
14
|
-
style?: StyleProp<ViewStyle
|
|
15
|
-
testID?: string;
|
|
7
|
+
orientation?: DividerOrientation | undefined;
|
|
8
|
+
thickness?: number | undefined;
|
|
9
|
+
color?: string | undefined;
|
|
10
|
+
spacing?: DividerSpacing | undefined;
|
|
11
|
+
inset?: number | undefined;
|
|
12
|
+
label?: string | undefined;
|
|
13
|
+
labelPosition?: DividerLabelPosition | undefined;
|
|
14
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
15
|
+
testID?: string | undefined;
|
|
16
16
|
}
|
|
17
17
|
declare const Divider: ForwardRefExoticComponent<DividerProps & RefAttributes<HostInstance>>;
|
|
18
18
|
export { Divider };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Drawer — slide-in side drawer (left / right / top / bottom).
|
|
3
3
|
*
|
|
4
|
-
* Built on Reanimated
|
|
4
|
+
* Built on Reanimated 4 and Gesture Handler 3's hooks: gestures and animations run on the
|
|
5
5
|
* UI thread for buttery 60/120fps motion. Mirrors the BottomSheet ergonomics:
|
|
6
6
|
* imperative ref API, controlled/uncontrolled visibility, swipe-to-dismiss,
|
|
7
7
|
* tap-backdrop-to-dismiss, full a11y (modal dialog).
|
|
@@ -28,29 +28,29 @@ export interface DrawerLabels {
|
|
|
28
28
|
export declare const DEFAULT_DRAWER_LABELS: DrawerLabels;
|
|
29
29
|
export interface DrawerProps {
|
|
30
30
|
/** Controlled open state. Omit to use internal state. */
|
|
31
|
-
open?: boolean;
|
|
31
|
+
open?: boolean | undefined;
|
|
32
32
|
/** Initial visibility for uncontrolled usage. */
|
|
33
|
-
defaultOpen?: boolean;
|
|
33
|
+
defaultOpen?: boolean | undefined;
|
|
34
34
|
/** Fired whenever the drawer transitions open/closed. */
|
|
35
|
-
onOpenChange?: (open: boolean) => void;
|
|
35
|
+
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
36
36
|
/** Edge the drawer slides in from. */
|
|
37
|
-
side?: DrawerSide;
|
|
37
|
+
side?: DrawerSide | undefined;
|
|
38
38
|
/** Drawer dimension along the slide axis (width for left/right, height for top/bottom). */
|
|
39
|
-
width?: number | `${number}
|
|
39
|
+
width?: number | `${number}%` | undefined;
|
|
40
40
|
/** Allow drag-to-dismiss in the natural close direction. */
|
|
41
|
-
enableSwipe?: boolean;
|
|
41
|
+
enableSwipe?: boolean | undefined;
|
|
42
42
|
/** Allow tapping the backdrop to dismiss. */
|
|
43
|
-
enableBackdropPress?: boolean;
|
|
43
|
+
enableBackdropPress?: boolean | undefined;
|
|
44
44
|
/** Backdrop opacity at fully-open state (0..1). */
|
|
45
|
-
backdropOpacity?: number;
|
|
45
|
+
backdropOpacity?: number | undefined;
|
|
46
46
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
47
|
-
haptic?: HapticType | false;
|
|
48
|
-
containerStyle?: StyleProp<ViewStyle
|
|
49
|
-
children?: React.ReactNode;
|
|
50
|
-
accessibilityLabel?: string;
|
|
47
|
+
haptic?: HapticType | false | undefined;
|
|
48
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
49
|
+
children?: React.ReactNode | undefined;
|
|
50
|
+
accessibilityLabel?: string | undefined;
|
|
51
51
|
/** Screen-reader names for the drawer panel and its backdrop button. */
|
|
52
|
-
labels?: Partial<DrawerLabels
|
|
53
|
-
testID?: string;
|
|
52
|
+
labels?: Partial<DrawerLabels> | undefined;
|
|
53
|
+
testID?: string | undefined;
|
|
54
54
|
}
|
|
55
55
|
export interface DrawerRef {
|
|
56
56
|
open: () => void;
|
|
@@ -7,31 +7,31 @@ export type EmptyStateVariant = "block" | "inline";
|
|
|
7
7
|
export interface EmptyStateAction {
|
|
8
8
|
label: string;
|
|
9
9
|
onPress: () => void;
|
|
10
|
-
accessibilityLabel?: string;
|
|
11
|
-
accessibilityHint?: string;
|
|
12
|
-
testID?: string;
|
|
10
|
+
accessibilityLabel?: string | undefined;
|
|
11
|
+
accessibilityHint?: string | undefined;
|
|
12
|
+
testID?: string | undefined;
|
|
13
13
|
}
|
|
14
14
|
export interface EmptyStateProps {
|
|
15
|
-
icon?: React.ReactNode;
|
|
15
|
+
icon?: React.ReactNode | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* Drawn instead of `icon` at the size's illustration-size token (sm 96, md 160, lg 240). Wins over `icon` when both are given.
|
|
18
18
|
*/
|
|
19
|
-
illustration?: ImageSourcePropType | React.ReactElement;
|
|
19
|
+
illustration?: ImageSourcePropType | React.ReactElement | undefined;
|
|
20
20
|
title: string;
|
|
21
|
-
description?: string;
|
|
22
|
-
action?: EmptyStateAction;
|
|
23
|
-
secondaryAction?: EmptyStateAction;
|
|
24
|
-
size?: EmptyStateSize;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
action?: EmptyStateAction | undefined;
|
|
23
|
+
secondaryAction?: EmptyStateAction | undefined;
|
|
24
|
+
size?: EmptyStateSize | undefined;
|
|
25
25
|
/** Default `'block'`. See {@link EmptyStateVariant}. */
|
|
26
|
-
variant?: EmptyStateVariant;
|
|
26
|
+
variant?: EmptyStateVariant | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* Grows to fill the space it is given and centres its content, so it sits in
|
|
29
29
|
* the middle of an empty list: pass it as `ListEmptyComponent` and give the
|
|
30
30
|
* FlatList `contentContainerStyle={{ flexGrow: 1 }}`.
|
|
31
31
|
*/
|
|
32
|
-
fill?: boolean;
|
|
33
|
-
style?: StyleProp<ViewStyle
|
|
34
|
-
testID?: string;
|
|
32
|
+
fill?: boolean | undefined;
|
|
33
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
34
|
+
testID?: string | undefined;
|
|
35
35
|
}
|
|
36
36
|
declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HostInstance>>;
|
|
37
37
|
export { EmptyState };
|
|
@@ -11,19 +11,19 @@ export interface ErrorBoundaryInfo {
|
|
|
11
11
|
export interface ErrorBoundaryProps {
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
/** Custom fallback. Receives the error and a reset callback. Defaults to a themed EmptyState with a retry action. */
|
|
14
|
-
fallback?: React.ReactNode | ((error: Error, reset: () => void) => React.ReactNode);
|
|
14
|
+
fallback?: React.ReactNode | ((error: Error, reset: () => void) => React.ReactNode) | undefined;
|
|
15
15
|
/** Called on every caught error, after the error is recorded to the Logger. */
|
|
16
|
-
onError?: (error: Error, info: ErrorBoundaryInfo) => void;
|
|
16
|
+
onError?: ((error: Error, info: ErrorBoundaryInfo) => void) | undefined;
|
|
17
17
|
/** Changing any value in this array resets the boundary. Standard escape hatch for route changes. */
|
|
18
|
-
resetKeys?: unknown[];
|
|
18
|
+
resetKeys?: unknown[] | undefined;
|
|
19
19
|
/** Called when the boundary resets, however it was triggered. */
|
|
20
|
-
onReset?: () => void;
|
|
20
|
+
onReset?: (() => void) | undefined;
|
|
21
21
|
/** Title and message for the default fallback. */
|
|
22
|
-
title?: string;
|
|
23
|
-
message?: string;
|
|
22
|
+
title?: string | undefined;
|
|
23
|
+
message?: string | undefined;
|
|
24
24
|
/** Copy for the default fallback: title, message and the retry label. */
|
|
25
|
-
labels?: Partial<ErrorBoundaryLabels
|
|
26
|
-
testID?: string;
|
|
25
|
+
labels?: Partial<ErrorBoundaryLabels> | undefined;
|
|
26
|
+
testID?: string | undefined;
|
|
27
27
|
}
|
|
28
28
|
interface ErrorBoundaryState {
|
|
29
29
|
error: Error | null;
|
|
@@ -14,8 +14,8 @@ export interface ChevronProps {
|
|
|
14
14
|
color: string;
|
|
15
15
|
size: number;
|
|
16
16
|
/** When provided, the chevron animates between 0° (closed) and 180° (open). */
|
|
17
|
-
open?: boolean;
|
|
18
|
-
style?: StyleProp<ViewStyle
|
|
17
|
+
open?: boolean | undefined;
|
|
18
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
19
19
|
}
|
|
20
20
|
export declare const Chevron: React.FC<ChevronProps>;
|
|
21
21
|
export default Chevron;
|