@webority/mobile-ui 0.149.0 → 0.152.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 -56714
- package/dist/canvas-kit/manifest.json +157 -56
- package/dist/canvas-kit/release.json +6 -6
- package/lib/commonjs/components/Accordion/Accordion.js +1 -1
- package/lib/commonjs/components/AppBar/AppBar.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/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/commonjs/components/Box/Box.js +1 -1
- package/lib/commonjs/components/Button/Button.js +1 -1
- package/lib/commonjs/components/Calendar/calendarStyles.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/FilePicker/FilePicker.js +1 -1
- package/lib/commonjs/components/FileViewer/fileSource.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/NonModalBottomSheet/NonModalBottomSheet.js +1 -0
- package/lib/commonjs/components/NonModalBottomSheet/index.js +1 -0
- 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/Skeleton/SkeletonContent.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonList.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/Text/Text.js +1 -1
- package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
- package/lib/commonjs/components/Toast/Toast.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/index.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/index.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/theme/tokens.generated.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/AppBar/AppBar.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/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/module/components/Box/Box.js +1 -1
- package/lib/module/components/Button/Button.js +1 -1
- package/lib/module/components/Calendar/calendarStyles.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/FilePicker/FilePicker.js +1 -1
- package/lib/module/components/FileViewer/fileSource.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/NonModalBottomSheet/NonModalBottomSheet.js +1 -0
- package/lib/module/components/NonModalBottomSheet/index.js +1 -0
- 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/Skeleton/SkeletonContent.js +1 -1
- package/lib/module/components/Skeleton/SkeletonList.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/Text/Text.js +1 -1
- package/lib/module/components/TimePicker/TimePicker.js +1 -1
- package/lib/module/components/Toast/Toast.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/index.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/index.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/theme/tokens.generated.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 +41 -39
- 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 +32 -32
- package/lib/typescript/commonjs/components/Box/Box.d.ts +27 -27
- package/lib/typescript/commonjs/components/Button/Button.d.ts +29 -24
- 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 +14 -14
- 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/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/NonModalBottomSheet/NonModalBottomSheet.d.ts +52 -0
- package/lib/typescript/commonjs/components/NonModalBottomSheet/index.d.ts +3 -0
- 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 +39 -34
- package/lib/typescript/commonjs/components/OptionSheet/optionAccessors.d.ts +9 -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 +15 -15
- 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 +10 -6
- package/lib/typescript/commonjs/components/WheelPicker/WheelPicker.d.ts +22 -20
- package/lib/typescript/commonjs/components/ZoomableImage/ZoomableImage.d.ts +8 -8
- package/lib/typescript/commonjs/components/index.d.ts +2 -0
- 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 +3 -3
- 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/index.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 +41 -39
- 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 +32 -32
- package/lib/typescript/module/components/Box/Box.d.ts +27 -27
- package/lib/typescript/module/components/Button/Button.d.ts +29 -24
- 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 +14 -14
- 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/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/NonModalBottomSheet/NonModalBottomSheet.d.ts +52 -0
- package/lib/typescript/module/components/NonModalBottomSheet/index.d.ts +3 -0
- 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 +39 -34
- package/lib/typescript/module/components/OptionSheet/optionAccessors.d.ts +9 -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 +15 -15
- 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 +10 -6
- package/lib/typescript/module/components/WheelPicker/WheelPicker.d.ts +22 -20
- package/lib/typescript/module/components/ZoomableImage/ZoomableImage.d.ts +8 -8
- package/lib/typescript/module/components/index.d.ts +2 -0
- 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 +3 -3
- 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/index.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 +9 -9
- package/src/specs/NativePdfRasterizer.ts +1 -1
|
@@ -30,35 +30,35 @@ export type StatusBadgeSize = Extract<Size, "sm" | "md">;
|
|
|
30
30
|
export interface StatusBadgeProps {
|
|
31
31
|
/** The status as the reader should see it ("Active", "Pending review"). */
|
|
32
32
|
label: string;
|
|
33
|
-
tone?: StatusBadgeTone;
|
|
34
|
-
variant?: StatusBadgeVariant;
|
|
35
|
-
size?: StatusBadgeSize;
|
|
33
|
+
tone?: StatusBadgeTone | undefined;
|
|
34
|
+
variant?: StatusBadgeVariant | undefined;
|
|
35
|
+
size?: StatusBadgeSize | undefined;
|
|
36
36
|
/** Default `'tone'`. See {@link StatusBadgeInk}. */
|
|
37
|
-
ink?: StatusBadgeInk;
|
|
37
|
+
ink?: StatusBadgeInk | undefined;
|
|
38
38
|
/** Weight of the label. Default `'semibold'`. */
|
|
39
|
-
weight?: StatusBadgeWeight;
|
|
39
|
+
weight?: StatusBadgeWeight | undefined;
|
|
40
40
|
/** Default `'default'`. See {@link StatusBadgePadding}. */
|
|
41
|
-
padding?: StatusBadgePadding;
|
|
41
|
+
padding?: StatusBadgePadding | undefined;
|
|
42
42
|
/** A small disc before the label in the status colour. */
|
|
43
|
-
dot?: boolean;
|
|
43
|
+
dot?: boolean | undefined;
|
|
44
44
|
/**
|
|
45
45
|
* A status colour of the app's own, `#RRGGBB`, for a status the backend
|
|
46
46
|
* names with a colour rather than a tone (a pipeline stage, a category).
|
|
47
47
|
* Fill, border, text and dot all derive from it, so nothing else needs
|
|
48
48
|
* naming. Wins over `tone`. A non-hex value falls back to the tone.
|
|
49
49
|
*/
|
|
50
|
-
color?: string;
|
|
50
|
+
color?: string | undefined;
|
|
51
51
|
/**
|
|
52
52
|
* When true, renders the component as its authored skeleton placeholder shape.
|
|
53
53
|
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
54
54
|
* when data arrives. Use this while the data driving the component is being fetched.
|
|
55
55
|
*/
|
|
56
|
-
loading?: boolean;
|
|
56
|
+
loading?: boolean | undefined;
|
|
57
57
|
/** Defaults to the label. */
|
|
58
|
-
accessibilityLabel?: string;
|
|
59
|
-
style?: StyleProp<ViewStyle
|
|
60
|
-
textStyle?: StyleProp<TextStyle
|
|
61
|
-
testID?: string;
|
|
58
|
+
accessibilityLabel?: string | undefined;
|
|
59
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
60
|
+
textStyle?: StyleProp<TextStyle> | undefined;
|
|
61
|
+
testID?: string | undefined;
|
|
62
62
|
}
|
|
63
63
|
declare const StatusBadge: React.ForwardRefExoticComponent<StatusBadgeProps & React.RefAttributes<HostInstance>> & {
|
|
64
64
|
Skeleton: React.FC<StatusBadgeProps>;
|
|
@@ -21,8 +21,8 @@ export type StepperPressMode = "none" | "back" | "select";
|
|
|
21
21
|
export interface StepperStep {
|
|
22
22
|
key: string;
|
|
23
23
|
label: string;
|
|
24
|
-
description?: string;
|
|
25
|
-
icon?: React.ReactNode;
|
|
24
|
+
description?: string | undefined;
|
|
25
|
+
icon?: React.ReactNode | undefined;
|
|
26
26
|
}
|
|
27
27
|
export interface StepperLabels {
|
|
28
28
|
step: (index: number, total: number, label: string, status: string) => string;
|
|
@@ -44,53 +44,53 @@ export interface StepperProps {
|
|
|
44
44
|
* active step controlled; leave it out and the stepper keeps its own,
|
|
45
45
|
* starting at `defaultActiveStep`.
|
|
46
46
|
*/
|
|
47
|
-
activeStep?: number | null;
|
|
47
|
+
activeStep?: number | null | undefined;
|
|
48
48
|
/** Starting active step when `activeStep` is left out. Default 0. */
|
|
49
|
-
defaultActiveStep?: number | null;
|
|
49
|
+
defaultActiveStep?: number | null | undefined;
|
|
50
50
|
/** What a tap on a step does. Default `none`. */
|
|
51
|
-
pressMode?: StepperPressMode;
|
|
51
|
+
pressMode?: StepperPressMode | undefined;
|
|
52
52
|
/** Every accepted tap, with the step's index, before the state changes. */
|
|
53
|
-
onStepPress?: (index: number) => void;
|
|
53
|
+
onStepPress?: ((index: number) => void) | undefined;
|
|
54
54
|
/** The new active step after a tap; `null` for none. */
|
|
55
|
-
onActiveStepChange?: (index: number | null) => void;
|
|
56
|
-
variant?: StepperVariant;
|
|
57
|
-
tone?: StepperTone;
|
|
55
|
+
onActiveStepChange?: ((index: number | null) => void) | undefined;
|
|
56
|
+
variant?: StepperVariant | undefined;
|
|
57
|
+
tone?: StepperTone | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* `segmented` only: the caption above the bars. Receives the zero-based
|
|
60
60
|
* index of the active step (`null` when none is active), the step count
|
|
61
61
|
* and that step. Default `Step 2 of 3 · Billing`, or `1 of 3 done` with no
|
|
62
62
|
* active step.
|
|
63
63
|
*/
|
|
64
|
-
formatCaption?: (index: number | null, total: number, step: StepperStep | undefined) => string;
|
|
64
|
+
formatCaption?: ((index: number | null, total: number, step: StepperStep | undefined) => string) | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* `segmented` only: whether the caption above the bars is drawn. Pass false
|
|
67
67
|
* to show the bars alone, for a screen that already says which step it is
|
|
68
68
|
* on. The progressbar's accessibility label and value are unchanged.
|
|
69
69
|
* Default true.
|
|
70
70
|
*/
|
|
71
|
-
showCaption?: boolean;
|
|
71
|
+
showCaption?: boolean | undefined;
|
|
72
72
|
/** Overrides for the words the stepper speaks and draws, merged over the English defaults. */
|
|
73
|
-
labels?: Partial<StepperLabels
|
|
73
|
+
labels?: Partial<StepperLabels> | undefined;
|
|
74
74
|
/**
|
|
75
75
|
* When true, renders the component as its authored skeleton placeholder shape.
|
|
76
76
|
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
77
77
|
* when data arrives. Use this while the data driving the component is being fetched.
|
|
78
78
|
*/
|
|
79
|
-
loading?: boolean;
|
|
80
|
-
accessibilityLabel?: string;
|
|
79
|
+
loading?: boolean | undefined;
|
|
80
|
+
accessibilityLabel?: string | undefined;
|
|
81
81
|
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
82
|
-
style?: StyleProp<ViewStyle
|
|
82
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
83
83
|
/** Alias of style, applied before it on the same node. Use style. */
|
|
84
|
-
containerStyle?: StyleProp<ViewStyle
|
|
85
|
-
circleStyle?: StyleProp<ViewStyle
|
|
86
|
-
labelStyle?: StyleProp<TextStyle
|
|
87
|
-
connectorStyle?: StyleProp<ViewStyle
|
|
84
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
85
|
+
circleStyle?: StyleProp<ViewStyle> | undefined;
|
|
86
|
+
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
87
|
+
connectorStyle?: StyleProp<ViewStyle> | undefined;
|
|
88
88
|
/**
|
|
89
89
|
* Haptic feedback for interactions. Pass false to disable; pass a HapticType
|
|
90
90
|
* to override the default.
|
|
91
91
|
*/
|
|
92
|
-
haptic?: HapticType | false;
|
|
93
|
-
testID?: string;
|
|
92
|
+
haptic?: HapticType | false | undefined;
|
|
93
|
+
testID?: string | undefined;
|
|
94
94
|
}
|
|
95
95
|
declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HostInstance>> & {
|
|
96
96
|
Skeleton: React.FC<StepperProps>;
|
|
@@ -23,28 +23,28 @@ export type SwipeableTone = Tone;
|
|
|
23
23
|
export interface SwipeableAction {
|
|
24
24
|
key: string;
|
|
25
25
|
label: string;
|
|
26
|
-
icon?: SlotIcon;
|
|
26
|
+
icon?: SlotIcon | undefined;
|
|
27
27
|
onPress: () => void;
|
|
28
|
-
tone?: SwipeableTone;
|
|
28
|
+
tone?: SwipeableTone | undefined;
|
|
29
29
|
}
|
|
30
30
|
export interface SwipeableProps {
|
|
31
31
|
children: React.ReactNode;
|
|
32
|
-
leftActions?: SwipeableAction[];
|
|
33
|
-
rightActions?: SwipeableAction[];
|
|
32
|
+
leftActions?: SwipeableAction[] | undefined;
|
|
33
|
+
rightActions?: SwipeableAction[] | undefined;
|
|
34
34
|
/** px to fully reveal the row of actions; default 80 */
|
|
35
|
-
threshold?: number;
|
|
35
|
+
threshold?: number | undefined;
|
|
36
36
|
/** px past which the first action fires automatically + content slides off-screen; default 200 */
|
|
37
|
-
fullSwipeThreshold?: number;
|
|
38
|
-
onSwipeOpen?: (side: "left" | "right") => void;
|
|
39
|
-
onSwipeClose?: () => void;
|
|
40
|
-
disabled?: boolean;
|
|
37
|
+
fullSwipeThreshold?: number | undefined;
|
|
38
|
+
onSwipeOpen?: ((side: "left" | "right") => void) | undefined;
|
|
39
|
+
onSwipeClose?: (() => void) | undefined;
|
|
40
|
+
disabled?: boolean | undefined;
|
|
41
41
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
42
|
-
haptic?: HapticType | false;
|
|
43
|
-
containerStyle?: StyleProp<ViewStyle
|
|
44
|
-
contentStyle?: StyleProp<ViewStyle
|
|
45
|
-
actionStyle?: StyleProp<ViewStyle
|
|
46
|
-
accessibilityLabel?: string;
|
|
47
|
-
testID?: string;
|
|
42
|
+
haptic?: HapticType | false | undefined;
|
|
43
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
44
|
+
contentStyle?: StyleProp<ViewStyle> | undefined;
|
|
45
|
+
actionStyle?: StyleProp<ViewStyle> | undefined;
|
|
46
|
+
accessibilityLabel?: string | undefined;
|
|
47
|
+
testID?: string | undefined;
|
|
48
48
|
}
|
|
49
49
|
declare const Swipeable: React.FC<SwipeableProps>;
|
|
50
50
|
export { Swipeable };
|
|
@@ -7,26 +7,26 @@ export type SwitchTone = Tone;
|
|
|
7
7
|
/** `inline`: the control, then the text beside it. `row`: the text on the left, the control on the right, the whole row pressable. */
|
|
8
8
|
export type SwitchLayout = "inline" | "row";
|
|
9
9
|
export interface SwitchProps extends Omit<PressableProps, "style" | "children" | "onPress"> {
|
|
10
|
-
value?: boolean;
|
|
11
|
-
defaultValue?: boolean;
|
|
12
|
-
onChange?: (value: boolean) => void;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
size?: SwitchSize;
|
|
15
|
-
tone?: SwitchTone;
|
|
10
|
+
value?: boolean | undefined;
|
|
11
|
+
defaultValue?: boolean | undefined;
|
|
12
|
+
onChange?: ((value: boolean) => void) | undefined;
|
|
13
|
+
disabled?: boolean | undefined;
|
|
14
|
+
size?: SwitchSize | undefined;
|
|
15
|
+
tone?: SwitchTone | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* A string, or a node for a symbol with a subscript. A node label needs an
|
|
18
18
|
* explicit `accessibilityLabel` (the switch's screen-reader name).
|
|
19
19
|
*/
|
|
20
|
-
label?: ReactNode;
|
|
20
|
+
label?: ReactNode | undefined;
|
|
21
21
|
/** Secondary line under the label. */
|
|
22
|
-
description?: string;
|
|
22
|
+
description?: string | undefined;
|
|
23
23
|
/** A hint under the label, description and error. */
|
|
24
|
-
helperText?: string;
|
|
24
|
+
helperText?: string | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* Error line under the label (and description); also outlines the off track in the error colour.
|
|
27
27
|
* `true` shows the error state without a message.
|
|
28
28
|
*/
|
|
29
|
-
error?: string | boolean;
|
|
29
|
+
error?: string | boolean | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* `'inline'` (default): the control with the text beside it. `'row'`: the
|
|
32
32
|
* label and description on the left (taking the free width), the control on
|
|
@@ -34,21 +34,21 @@ export interface SwitchProps extends Omit<PressableProps, "style" | "children" |
|
|
|
34
34
|
* target and accessibility element. Without a label or description `'row'`
|
|
35
35
|
* draws the bare control, as `'inline'` does.
|
|
36
36
|
*/
|
|
37
|
-
layout?: SwitchLayout;
|
|
38
|
-
accessibilityLabel?: string;
|
|
39
|
-
haptic?: HapticType | false;
|
|
37
|
+
layout?: SwitchLayout | undefined;
|
|
38
|
+
accessibilityLabel?: string | undefined;
|
|
39
|
+
haptic?: HapticType | false | undefined;
|
|
40
40
|
/**
|
|
41
41
|
* When true, the thumb briefly scales up on value change (1 → 1.15 → 1).
|
|
42
42
|
* Use for playful/brand-flavored switches; default off for system feel.
|
|
43
43
|
*/
|
|
44
|
-
bounce?: boolean;
|
|
44
|
+
bounce?: boolean | undefined;
|
|
45
45
|
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
46
|
-
style?: StyleProp<ViewStyle
|
|
46
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
47
47
|
/** Alias of style, applied before it on the same node. Use style. With no label or text, it wraps the Pressable instead. */
|
|
48
|
-
containerStyle?: StyleProp<ViewStyle
|
|
49
|
-
trackStyle?: StyleProp<ViewStyle
|
|
50
|
-
thumbStyle?: StyleProp<ViewStyle
|
|
51
|
-
testID?: string;
|
|
48
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
49
|
+
trackStyle?: StyleProp<ViewStyle> | undefined;
|
|
50
|
+
thumbStyle?: StyleProp<ViewStyle> | undefined;
|
|
51
|
+
testID?: string | undefined;
|
|
52
52
|
}
|
|
53
53
|
declare const Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<HostInstance>>;
|
|
54
54
|
export { Switch };
|
|
@@ -40,45 +40,45 @@ export type TabItemIcon = SlotIcon<TabItemIconState>;
|
|
|
40
40
|
export interface TabItem {
|
|
41
41
|
key: string;
|
|
42
42
|
label: string;
|
|
43
|
-
icon?: TabItemIcon;
|
|
43
|
+
icon?: TabItemIcon | undefined;
|
|
44
44
|
/** Optional numeric/string badge — rendered inline after the label when provided. */
|
|
45
|
-
badge?: string | number;
|
|
46
|
-
disabled?: boolean;
|
|
45
|
+
badge?: string | number | undefined;
|
|
46
|
+
disabled?: boolean | undefined;
|
|
47
47
|
}
|
|
48
48
|
export interface TabsProps {
|
|
49
49
|
tabs: TabItem[];
|
|
50
50
|
activeKey: string;
|
|
51
51
|
onChange: (key: string) => void;
|
|
52
|
-
variant?: TabsVariant;
|
|
52
|
+
variant?: TabsVariant | undefined;
|
|
53
53
|
/**
|
|
54
54
|
* Corner radius, a theme token or a pixel number. Rounds the segmented
|
|
55
55
|
* track (the thumb nests inside it, its corner the track's minus the inset),
|
|
56
56
|
* the pill, and the ends of the underline. Unset, each variant keeps its own
|
|
57
57
|
* default: `md` track with an `sm` thumb, a `pill`-radius pill, a square underline.
|
|
58
58
|
*/
|
|
59
|
-
radius?: TabsRadius;
|
|
59
|
+
radius?: TabsRadius | undefined;
|
|
60
60
|
/**
|
|
61
61
|
* Scales the type, the tab padding and the icon together. `md` is the
|
|
62
62
|
* default look. On the segmented variant the size is SegmentedControl's
|
|
63
63
|
* size of the same name.
|
|
64
64
|
*/
|
|
65
|
-
size?: TabsSize;
|
|
66
|
-
scrollable?: boolean;
|
|
65
|
+
size?: TabsSize | undefined;
|
|
66
|
+
scrollable?: boolean | undefined;
|
|
67
67
|
/** One page per tab, swiped horizontally under the bar; the shown page follows `activeKey`, and a swipe calls `onChange` with the new tab's key. */
|
|
68
|
-
pages?: ReactNode[];
|
|
69
|
-
align?: TabsAlign;
|
|
70
|
-
style?: StyleProp<ViewStyle
|
|
71
|
-
tabStyle?: StyleProp<ViewStyle
|
|
68
|
+
pages?: ReactNode[] | undefined;
|
|
69
|
+
align?: TabsAlign | undefined;
|
|
70
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
71
|
+
tabStyle?: StyleProp<ViewStyle> | undefined;
|
|
72
72
|
/** Style override applied to each tab label Text. */
|
|
73
|
-
tabLabelStyle?: StyleProp<TextStyle
|
|
73
|
+
tabLabelStyle?: StyleProp<TextStyle> | undefined;
|
|
74
74
|
/** Style override applied to the per-tab icon wrapper. */
|
|
75
|
-
tabIconStyle?: StyleProp<ViewStyle
|
|
75
|
+
tabIconStyle?: StyleProp<ViewStyle> | undefined;
|
|
76
76
|
/** Style override applied to the per-tab badge wrapper. */
|
|
77
|
-
tabBadgeStyle?: StyleProp<ViewStyle
|
|
77
|
+
tabBadgeStyle?: StyleProp<ViewStyle> | undefined;
|
|
78
78
|
/** Style override applied to the bottom divider line (underline variant only). */
|
|
79
|
-
dividerStyle?: StyleProp<ViewStyle
|
|
79
|
+
dividerStyle?: StyleProp<ViewStyle> | undefined;
|
|
80
80
|
/** Style override applied to the animated indicator (underline or pill). */
|
|
81
|
-
indicatorStyle?: StyleProp<ViewStyle
|
|
81
|
+
indicatorStyle?: StyleProp<ViewStyle> | undefined;
|
|
82
82
|
/**
|
|
83
83
|
* Optional fractional active-index (0..tabs.length-1). When supplied and
|
|
84
84
|
* every tab has been measured, the indicator's translateX + width track
|
|
@@ -88,11 +88,11 @@ export interface TabsProps {
|
|
|
88
88
|
* the same way; consumers typically scroll the pager in response so the
|
|
89
89
|
* progress value catches up.
|
|
90
90
|
*/
|
|
91
|
-
progress?: Animated.AnimatedInterpolation<number> | Animated.Value;
|
|
91
|
+
progress?: Animated.AnimatedInterpolation<number> | Animated.Value | undefined;
|
|
92
92
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
93
|
-
haptic?: HapticType | false;
|
|
94
|
-
accessibilityLabel?: string;
|
|
95
|
-
testID?: string;
|
|
93
|
+
haptic?: HapticType | false | undefined;
|
|
94
|
+
accessibilityLabel?: string | undefined;
|
|
95
|
+
testID?: string | undefined;
|
|
96
96
|
}
|
|
97
97
|
declare const Tabs: ForwardRefExoticComponent<TabsProps & RefAttributes<HostInstance>>;
|
|
98
98
|
export { Tabs };
|
|
@@ -4,34 +4,34 @@ import type { HapticType } from "../../utils/index.js";
|
|
|
4
4
|
import type { FieldBaseSize, FieldBaseVariant } from "../FieldBase/index.js";
|
|
5
5
|
export interface TagInputProps {
|
|
6
6
|
/** Controlled tags. */
|
|
7
|
-
value?: string[];
|
|
8
|
-
defaultValue?: string[];
|
|
9
|
-
onChange?: (tags: string[]) => void;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
label?: string;
|
|
12
|
-
helperText?: string;
|
|
7
|
+
value?: string[] | undefined;
|
|
8
|
+
defaultValue?: string[] | undefined;
|
|
9
|
+
onChange?: ((tags: string[]) => void) | undefined;
|
|
10
|
+
placeholder?: string | undefined;
|
|
11
|
+
label?: string | undefined;
|
|
12
|
+
helperText?: string | undefined;
|
|
13
13
|
/**
|
|
14
14
|
* A string puts the field in the error state and shows it below in place of the helper; `true`
|
|
15
15
|
* shows the error state without a message.
|
|
16
16
|
*/
|
|
17
|
-
error?: string | boolean;
|
|
18
|
-
required?: boolean;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
size?: FieldBaseSize;
|
|
21
|
-
variant?: FieldBaseVariant;
|
|
17
|
+
error?: string | boolean | undefined;
|
|
18
|
+
required?: boolean | undefined;
|
|
19
|
+
disabled?: boolean | undefined;
|
|
20
|
+
size?: FieldBaseSize | undefined;
|
|
21
|
+
variant?: FieldBaseVariant | undefined;
|
|
22
22
|
/** Reject a tag past this count. Omit for unlimited. */
|
|
23
|
-
maxTags?: number;
|
|
23
|
+
maxTags?: number | undefined;
|
|
24
24
|
/** Reject a tag that already exists (case-insensitive). Default true. */
|
|
25
|
-
unique?: boolean;
|
|
25
|
+
unique?: boolean | undefined;
|
|
26
26
|
/** Validate or transform a candidate. Return null to reject it. */
|
|
27
|
-
transform?: (raw: string) => string | null;
|
|
27
|
+
transform?: ((raw: string) => string | null) | undefined;
|
|
28
28
|
/** Characters that commit the current draft in addition to submit. Default [',']. */
|
|
29
|
-
separators?: string[];
|
|
30
|
-
haptic?: HapticType | false;
|
|
29
|
+
separators?: string[] | undefined;
|
|
30
|
+
haptic?: HapticType | false | undefined;
|
|
31
31
|
/** Called when the text field takes focus. */
|
|
32
|
-
onFocus?: (e: FocusEvent) => void;
|
|
33
|
-
style?: StyleProp<ViewStyle
|
|
34
|
-
testID?: string;
|
|
32
|
+
onFocus?: ((e: FocusEvent) => void) | undefined;
|
|
33
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
34
|
+
testID?: string | undefined;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Chips as input — the "type a value, press enter, it becomes a tag" field.
|
|
@@ -9,20 +9,20 @@ export interface TextProps extends Omit<RNTextProps, "style"> {
|
|
|
9
9
|
* A built-in variant, or the name of one registered in `theme.settings.textVariants`.
|
|
10
10
|
* An unknown name warns in development and renders as `body`.
|
|
11
11
|
*/
|
|
12
|
-
variant?: TextVariant | (string & {});
|
|
12
|
+
variant?: TextVariant | (string & {}) | undefined;
|
|
13
13
|
/** A text role, a tone or brand. A raw colour string is refused: it warns in development and the variant's colour is drawn. */
|
|
14
|
-
color?: TextColor;
|
|
14
|
+
color?: TextColor | undefined;
|
|
15
15
|
/** Override the variant's weight. */
|
|
16
|
-
weight?: WeightName;
|
|
16
|
+
weight?: WeightName | undefined;
|
|
17
17
|
/** Override the variant's size with a text step name. */
|
|
18
|
-
size?: TextName;
|
|
19
|
-
align?: TextStyle["textAlign"];
|
|
20
|
-
italic?: boolean;
|
|
21
|
-
underline?: boolean;
|
|
18
|
+
size?: TextName | undefined;
|
|
19
|
+
align?: TextStyle["textAlign"] | undefined;
|
|
20
|
+
italic?: boolean | undefined;
|
|
21
|
+
underline?: boolean | undefined;
|
|
22
22
|
/** Draws a line through the text, for a done or reversed item. It joins with underline. */
|
|
23
|
-
strikethrough?: boolean;
|
|
24
|
-
children?: React.ReactNode;
|
|
25
|
-
style?: StyleProp<TextStyle
|
|
23
|
+
strikethrough?: boolean | undefined;
|
|
24
|
+
children?: React.ReactNode | undefined;
|
|
25
|
+
style?: StyleProp<TextStyle> | undefined;
|
|
26
26
|
}
|
|
27
27
|
export declare const resolveColor: (theme: Theme, color: string) => string;
|
|
28
28
|
declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HostInstance>>;
|
|
@@ -36,27 +36,27 @@ export declare const DEFAULT_TIME_PICKER_LABELS: Readonly<TimePickerLabels>;
|
|
|
36
36
|
*/
|
|
37
37
|
export interface TimePickerProps extends PickerTriggerPassThroughProps {
|
|
38
38
|
/** Controlled-modal visibility. When omitted, the component enters trigger mode. */
|
|
39
|
-
open?: boolean;
|
|
40
|
-
value?: TimeValue | null;
|
|
41
|
-
onChange?: (time: TimeValue) => void;
|
|
42
|
-
onClose?: () => void;
|
|
43
|
-
format?: TimeFormat;
|
|
44
|
-
minuteStep?: MinuteStep;
|
|
39
|
+
open?: boolean | undefined;
|
|
40
|
+
value?: TimeValue | null | undefined;
|
|
41
|
+
onChange?: ((time: TimeValue) => void) | undefined;
|
|
42
|
+
onClose?: (() => void) | undefined;
|
|
43
|
+
format?: TimeFormat | undefined;
|
|
44
|
+
minuteStep?: MinuteStep | undefined;
|
|
45
45
|
/** Chrome copy, merged over DEFAULT_TIME_PICKER_LABELS. */
|
|
46
|
-
labels?: Partial<TimePickerLabels
|
|
47
|
-
testID?: string;
|
|
46
|
+
labels?: Partial<TimePickerLabels> | undefined;
|
|
47
|
+
testID?: string | undefined;
|
|
48
48
|
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
49
|
-
style?: StyleProp<ViewStyle
|
|
49
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
50
50
|
/** Applied to the bottom sheet, before style on the same node. */
|
|
51
|
-
containerStyle?: StyleProp<ViewStyle
|
|
51
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
52
52
|
/** Style override for the title text container. */
|
|
53
|
-
headerLabelStyle?: StyleProp<ViewStyle
|
|
53
|
+
headerLabelStyle?: StyleProp<ViewStyle> | undefined;
|
|
54
54
|
/** Style override for the cancel/confirm footer buttons. */
|
|
55
|
-
footerButtonStyle?: StyleProp<ViewStyle
|
|
55
|
+
footerButtonStyle?: StyleProp<ViewStyle> | undefined;
|
|
56
56
|
/** Override the trigger field's value formatting. Defaults to `format`-aware h:mm/HH:mm. */
|
|
57
|
-
formatValue?: (time: TimeValue) => string;
|
|
57
|
+
formatValue?: ((time: TimeValue) => string) | undefined;
|
|
58
58
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
59
|
-
haptic?: HapticType | false;
|
|
59
|
+
haptic?: HapticType | false | undefined;
|
|
60
60
|
}
|
|
61
61
|
declare const TimePicker: React.FC<TimePickerProps>;
|
|
62
62
|
export { TimePicker };
|
|
@@ -23,36 +23,36 @@ export type TimelineVariant = "feed" | "progress";
|
|
|
23
23
|
export type TimelineOrientation = "vertical" | "horizontal";
|
|
24
24
|
export interface TimelineItem {
|
|
25
25
|
title: string;
|
|
26
|
-
description?: string;
|
|
26
|
+
description?: string | undefined;
|
|
27
27
|
/** Rendered under the title — a timestamp, an actor, a metadata line. */
|
|
28
|
-
meta?: string;
|
|
28
|
+
meta?: string | undefined;
|
|
29
29
|
/** `progress` variant: drives the dot colour. Defaults to 'done' in a feed. */
|
|
30
|
-
status?: TimelineStatus;
|
|
30
|
+
status?: TimelineStatus | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* Overrides the dot's colour; the halo follows it. For a stage the design
|
|
33
33
|
* paints in a colour no status produces, such as a brand-blue active dot.
|
|
34
34
|
*/
|
|
35
|
-
color?: string;
|
|
35
|
+
color?: string | undefined;
|
|
36
36
|
/** Replaces the dot and its halo entirely, centred in the dot's slot. */
|
|
37
|
-
icon?: React.ReactNode;
|
|
37
|
+
icon?: React.ReactNode | undefined;
|
|
38
38
|
/** Arbitrary content below the text block. */
|
|
39
|
-
children?: React.ReactNode;
|
|
40
|
-
key?: string;
|
|
39
|
+
children?: React.ReactNode | undefined;
|
|
40
|
+
key?: string | undefined;
|
|
41
41
|
/** Test id for this item's row. */
|
|
42
|
-
testID?: string;
|
|
42
|
+
testID?: string | undefined;
|
|
43
43
|
}
|
|
44
44
|
export interface TimelineProps {
|
|
45
45
|
items: ReadonlyArray<TimelineItem>;
|
|
46
46
|
/** 'feed' is an audit trail; 'progress' is a status tracker. */
|
|
47
|
-
variant?: TimelineVariant;
|
|
47
|
+
variant?: TimelineVariant | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* `vertical` (default) stacks entries top to bottom beside a rail;
|
|
50
50
|
* `horizontal` gives each entry an equal column with the dot above its
|
|
51
51
|
* centred text and a connector running from one halo's edge to the next.
|
|
52
52
|
*/
|
|
53
|
-
orientation?: TimelineOrientation;
|
|
54
|
-
style?: StyleProp<ViewStyle
|
|
55
|
-
testID?: string;
|
|
53
|
+
orientation?: TimelineOrientation | undefined;
|
|
54
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
55
|
+
testID?: string | undefined;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
58
|
* A chronological activity feed OR a status-progress tracker. Stepper covers a
|
|
@@ -9,36 +9,36 @@ export interface ToastAction {
|
|
|
9
9
|
}
|
|
10
10
|
export interface ToastOptions {
|
|
11
11
|
message: string;
|
|
12
|
-
description?: string;
|
|
12
|
+
description?: string | undefined;
|
|
13
13
|
/** Default `neutral`. */
|
|
14
|
-
tone?: Tone;
|
|
15
|
-
position?: ToastPosition;
|
|
16
|
-
duration?: number;
|
|
17
|
-
action?: ToastAction;
|
|
18
|
-
haptic?: HapticType | false;
|
|
19
|
-
icon?: React.ReactNode;
|
|
14
|
+
tone?: Tone | undefined;
|
|
15
|
+
position?: ToastPosition | undefined;
|
|
16
|
+
duration?: number | undefined;
|
|
17
|
+
action?: ToastAction | undefined;
|
|
18
|
+
haptic?: HapticType | false | undefined;
|
|
19
|
+
icon?: React.ReactNode | undefined;
|
|
20
20
|
/** Style applied to the toast container (override radius, padding, shadow per-toast). */
|
|
21
|
-
style?: StyleProp<ViewStyle
|
|
21
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
22
22
|
/** Style applied to the toast message Text. */
|
|
23
|
-
textStyle?: StyleProp<TextStyle
|
|
23
|
+
textStyle?: StyleProp<TextStyle> | undefined;
|
|
24
24
|
/** Style applied to the leading icon circle wrapper. */
|
|
25
|
-
iconCircleStyle?: StyleProp<ViewStyle
|
|
25
|
+
iconCircleStyle?: StyleProp<ViewStyle> | undefined;
|
|
26
26
|
/** Style applied to the message Text (alias-ish of `textStyle` but kept distinct for slot symmetry). */
|
|
27
|
-
messageStyle?: StyleProp<TextStyle
|
|
27
|
+
messageStyle?: StyleProp<TextStyle> | undefined;
|
|
28
28
|
/** Style applied to the trailing action Pressable. */
|
|
29
|
-
actionButtonStyle?: StyleProp<ViewStyle
|
|
30
|
-
testID?: string;
|
|
29
|
+
actionButtonStyle?: StyleProp<ViewStyle> | undefined;
|
|
30
|
+
testID?: string | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* A toast shown with the same key replaces the one on screen. A pending
|
|
33
33
|
* `toast.undo` commit of the replaced toast runs first.
|
|
34
34
|
*/
|
|
35
|
-
key?: string;
|
|
35
|
+
key?: string | undefined;
|
|
36
36
|
/**
|
|
37
37
|
* Draws a thin bar along the bottom edge that empties over the duration. It is
|
|
38
38
|
* drawn full and still under reduced motion, and not drawn when the toast does
|
|
39
39
|
* not time out.
|
|
40
40
|
*/
|
|
41
|
-
countdown?: boolean;
|
|
41
|
+
countdown?: boolean | undefined;
|
|
42
42
|
}
|
|
43
43
|
export interface ToastItem extends ToastOptions {
|
|
44
44
|
id: string;
|
|
@@ -68,8 +68,8 @@ export interface ToastProps {
|
|
|
68
68
|
* here, so a toast that remounts in another host (a modal opened or closed)
|
|
69
69
|
* keeps its remaining time. Defaults to the moment this component mounts.
|
|
70
70
|
*/
|
|
71
|
-
shownAt?: number;
|
|
72
|
-
runtime?: ToastRuntime;
|
|
71
|
+
shownAt?: number | undefined;
|
|
72
|
+
runtime?: ToastRuntime | undefined;
|
|
73
73
|
}
|
|
74
74
|
declare const Toast: React.FC<ToastProps>;
|
|
75
75
|
export { Toast };
|
|
@@ -10,13 +10,13 @@ export interface ToastUndoOptions extends Omit<ToastOptions, "message" | "tone"
|
|
|
10
10
|
* is hidden, is pushed out by newer toasts, is replaced by a toast with the
|
|
11
11
|
* same `key`, or the provider unmounts. Do the irreversible part here.
|
|
12
12
|
*/
|
|
13
|
-
onCommit?: () => void;
|
|
13
|
+
onCommit?: (() => void) | undefined;
|
|
14
14
|
/**
|
|
15
15
|
* How long Undo stays, in ms. Default `6000`, never shorter than `6000`; `0`
|
|
16
16
|
* keeps it until dismissed. With a screen reader on the toast waits to be
|
|
17
17
|
* dismissed whatever this is, so keep the item recoverable some other way.
|
|
18
18
|
*/
|
|
19
|
-
duration?: number;
|
|
19
|
+
duration?: number | undefined;
|
|
20
20
|
}
|
|
21
21
|
export interface ToastApi {
|
|
22
22
|
show: (opts: ToastOptions) => string;
|
|
@@ -27,15 +27,15 @@ export interface ToastApi {
|
|
|
27
27
|
}
|
|
28
28
|
export interface ToastProviderProps {
|
|
29
29
|
children: React.ReactNode;
|
|
30
|
-
maxVisible?: number;
|
|
31
|
-
topOffset?: number;
|
|
32
|
-
bottomOffset?: number;
|
|
30
|
+
maxVisible?: number | undefined;
|
|
31
|
+
topOffset?: number | undefined;
|
|
32
|
+
bottomOffset?: number | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* How long a toast stays, in milliseconds, when its own `duration` is left
|
|
35
35
|
* out. `0` keeps it until dismissed. Without it the theme's
|
|
36
36
|
* `settings.components.toast.defaultDurationMs` applies (3000 by default).
|
|
37
37
|
*/
|
|
38
|
-
defaultDuration?: number;
|
|
38
|
+
defaultDuration?: number | undefined;
|
|
39
39
|
/**
|
|
40
40
|
* Haptic per tone, for a toast whose own `haptic` is left out. A tone left out
|
|
41
41
|
* of the map keeps its built-in haptic (`notificationError` for `danger`,
|
|
@@ -43,9 +43,9 @@ export interface ToastProviderProps {
|
|
|
43
43
|
* `selection` otherwise). A tone set to `false` is silent, and `false` for the
|
|
44
44
|
* whole prop silences every toast.
|
|
45
45
|
*/
|
|
46
|
-
haptics?: ToastHaptics;
|
|
46
|
+
haptics?: ToastHaptics | undefined;
|
|
47
47
|
/** Replaces the spoken Dismiss action, the Undo button text and the countdown seconds. */
|
|
48
|
-
labels?: Partial<ToastLabels
|
|
48
|
+
labels?: Partial<ToastLabels> | undefined;
|
|
49
49
|
}
|
|
50
50
|
export type ToastHaptics = Partial<Record<Tone, HapticType | false>> | false;
|
|
51
51
|
export declare const ToastProvider: React.FC<ToastProviderProps>;
|
|
@@ -4,18 +4,18 @@ import type { HostInstance, StyleProp, TextStyle } from "react-native";
|
|
|
4
4
|
export interface TooltipAction {
|
|
5
5
|
label: string;
|
|
6
6
|
onPress: () => void;
|
|
7
|
-
accessibilityLabel?: string;
|
|
7
|
+
accessibilityLabel?: string | undefined;
|
|
8
8
|
}
|
|
9
9
|
interface RichTooltipBodyProps {
|
|
10
|
-
title?: string;
|
|
10
|
+
title?: string | undefined;
|
|
11
11
|
content: string | React.ReactNode;
|
|
12
|
-
action?: TooltipAction;
|
|
12
|
+
action?: TooltipAction | undefined;
|
|
13
13
|
onAction: () => void;
|
|
14
14
|
/** Takes screen reader focus on open: the title, or the text when there is none. */
|
|
15
15
|
focusRef: React.Ref<HostInstance>;
|
|
16
16
|
/** Takes keyboard focus on open on the web. */
|
|
17
17
|
actionRef: React.Ref<HostInstance>;
|
|
18
|
-
messageStyle?: StyleProp<TextStyle
|
|
18
|
+
messageStyle?: StyleProp<TextStyle> | undefined;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* The card of `variant="rich"`: a light surface with a title, the content and
|