@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
|
@@ -61,10 +61,10 @@ export interface TabConfig {
|
|
|
61
61
|
* the tab on its own, while `label` still names the tab for a screen
|
|
62
62
|
* reader. Default true; `showLabels` on the bar hides every label.
|
|
63
63
|
*/
|
|
64
|
-
showLabel?: boolean;
|
|
64
|
+
showLabel?: boolean | undefined;
|
|
65
65
|
icon: TabIcon;
|
|
66
|
-
activeIcon?: TabIcon;
|
|
67
|
-
badge?: TabBadge;
|
|
66
|
+
activeIcon?: TabIcon | undefined;
|
|
67
|
+
badge?: TabBadge | undefined;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* A button in the middle of the bar that is not a tab: pressing it runs its
|
|
@@ -86,28 +86,28 @@ export interface BottomNavigationCenterAction {
|
|
|
86
86
|
* name, `{ name, variant }`, a render function or a node). Default `'add'`.
|
|
87
87
|
* Ignored when `content` is set.
|
|
88
88
|
*/
|
|
89
|
-
icon?: SlotIcon;
|
|
89
|
+
icon?: SlotIcon | undefined;
|
|
90
90
|
/**
|
|
91
91
|
* Replaces the filled circle entirely: an image, a gradient, any node,
|
|
92
92
|
* drawn as is and pressable as a whole. Size it yourself; `size` then only
|
|
93
93
|
* sets the fallback box.
|
|
94
94
|
*/
|
|
95
|
-
content?: React.ReactNode;
|
|
95
|
+
content?: React.ReactNode | undefined;
|
|
96
96
|
/** Diameter of the filled circle, in pixels. Default 48. */
|
|
97
|
-
size?: number;
|
|
97
|
+
size?: number | undefined;
|
|
98
98
|
/** Fill of the circle. Default the theme's `primary`. */
|
|
99
|
-
color?: string;
|
|
99
|
+
color?: string | undefined;
|
|
100
100
|
/** Ink of the icon in the circle. Default the theme's `on-primary`. */
|
|
101
|
-
iconColor?: string;
|
|
101
|
+
iconColor?: string | undefined;
|
|
102
102
|
/** Pixel size of the icon in the circle. Default 24. */
|
|
103
|
-
iconSize?: number;
|
|
103
|
+
iconSize?: number | undefined;
|
|
104
104
|
/**
|
|
105
105
|
* How far the button rises above the centre of the row, in pixels. Default
|
|
106
106
|
* 0 keeps it level with the tabs; a positive value lets it poke above the
|
|
107
107
|
* bar, and the component grows by the overhang so the raised part stays
|
|
108
108
|
* inside its own box (and so stays pressable on both platforms).
|
|
109
109
|
*/
|
|
110
|
-
lift?: number;
|
|
110
|
+
lift?: number | undefined;
|
|
111
111
|
/**
|
|
112
112
|
* Space between the button and the tab cells either side of it, in
|
|
113
113
|
* pixels. Set, the button's cell hugs the button and the tabs share the
|
|
@@ -115,10 +115,10 @@ export interface BottomNavigationCenterAction {
|
|
|
115
115
|
* button gets a cell as wide as a tab's, spaced evenly with the tabs.
|
|
116
116
|
* Negative values count as 0.
|
|
117
117
|
*/
|
|
118
|
-
gap?: number;
|
|
118
|
+
gap?: number | undefined;
|
|
119
119
|
/** Haptic on press, or `false`. Default the bar's own `haptic`. */
|
|
120
|
-
haptic?: HapticType | false;
|
|
121
|
-
testID?: string;
|
|
120
|
+
haptic?: HapticType | false | undefined;
|
|
121
|
+
testID?: string | undefined;
|
|
122
122
|
}
|
|
123
123
|
/** What the bar tells a function `accessory` when it draws. */
|
|
124
124
|
export interface BottomNavigationAccessoryState {
|
|
@@ -134,23 +134,23 @@ export declare const DEFAULT_BOTTOM_NAVIGATION_LABELS: Readonly<BottomNavigation
|
|
|
134
134
|
export interface BottomNavigationProps {
|
|
135
135
|
tabs: TabConfig[];
|
|
136
136
|
/** A pressable button in the middle of the bar, between the tabs. */
|
|
137
|
-
centerAction?: BottomNavigationCenterAction;
|
|
137
|
+
centerAction?: BottomNavigationCenterAction | undefined;
|
|
138
138
|
activeTab: string;
|
|
139
139
|
onChange: (tabKey: string) => void;
|
|
140
|
-
haptic?: HapticType | false;
|
|
140
|
+
haptic?: HapticType | false | undefined;
|
|
141
141
|
/**
|
|
142
142
|
* Show the text label under each icon, and under a centre action's button.
|
|
143
143
|
* `expand` only ever labels the active tab, and `false` hides that one
|
|
144
144
|
* too.
|
|
145
145
|
*/
|
|
146
|
-
showLabels?: boolean;
|
|
147
|
-
variant?: BottomNavigationVariant;
|
|
146
|
+
showLabels?: boolean | undefined;
|
|
147
|
+
variant?: BottomNavigationVariant | undefined;
|
|
148
148
|
/**
|
|
149
149
|
* Where the active-tab line sits, for variants that draw a line
|
|
150
150
|
* (currently `underline`). Default `'bottom'` preserves the legacy look;
|
|
151
151
|
* `'top'` flips the line to sit just above the tab row.
|
|
152
152
|
*/
|
|
153
|
-
indicatorPosition?: BottomNavigationIndicatorPosition;
|
|
153
|
+
indicatorPosition?: BottomNavigationIndicatorPosition | undefined;
|
|
154
154
|
/**
|
|
155
155
|
* Corner radius of the bar's own surface: the docked bar for every variant
|
|
156
156
|
* but `floating` and `tile`, where it rounds the detached capsule instead.
|
|
@@ -165,7 +165,7 @@ export interface BottomNavigationProps {
|
|
|
165
165
|
* a radius the component cannot see leaves the line hanging past the
|
|
166
166
|
* corners.
|
|
167
167
|
*/
|
|
168
|
-
radius?: BottomNavigationRadius;
|
|
168
|
+
radius?: BottomNavigationRadius | undefined;
|
|
169
169
|
/**
|
|
170
170
|
* Corner radius of the active tab's background on the `pill`, `floating`,
|
|
171
171
|
* `solid`, `tile` and `expand` variants. `auto` (default) takes the bar's
|
|
@@ -174,22 +174,22 @@ export interface BottomNavigationProps {
|
|
|
174
174
|
* radius whatever the bar's. Capped at half the background's height, since
|
|
175
175
|
* Android squares off a larger radius, so a large number is fully round.
|
|
176
176
|
*/
|
|
177
|
-
indicatorRadius?: BottomNavigationIndicatorRadius;
|
|
177
|
+
indicatorRadius?: BottomNavigationIndicatorRadius | undefined;
|
|
178
178
|
/**
|
|
179
179
|
* Shadow under the bar surface, as a theme shadow level. `none` unless set.
|
|
180
180
|
* Drawn as a `boxShadow` where the platform supports one, so Android and
|
|
181
181
|
* iOS match.
|
|
182
182
|
*/
|
|
183
|
-
elevation?: BottomNavigationElevation;
|
|
183
|
+
elevation?: BottomNavigationElevation | undefined;
|
|
184
184
|
/**
|
|
185
185
|
* Size of every tab icon in pixels. Default 18. The active pill follows it.
|
|
186
186
|
*/
|
|
187
|
-
iconSize?: number;
|
|
187
|
+
iconSize?: number | undefined;
|
|
188
188
|
/**
|
|
189
189
|
* Air between the bar surface and the screen's left and right edges, in
|
|
190
190
|
* pixels, on every variant. Default 16.
|
|
191
191
|
*/
|
|
192
|
-
marginHorizontal?: number;
|
|
192
|
+
marginHorizontal?: number | undefined;
|
|
193
193
|
/**
|
|
194
194
|
* Air above and below the bar surface, in pixels. Default 16 for the
|
|
195
195
|
* `floating` and `tile` capsules and 0 for a docked bar. Above zero it
|
|
@@ -197,26 +197,26 @@ export interface BottomNavigationProps {
|
|
|
197
197
|
* indicator or Android's system buttons) the lift is the inset plus
|
|
198
198
|
* `theme.space.sm`, never less than this margin.
|
|
199
199
|
*/
|
|
200
|
-
marginVertical?: number;
|
|
200
|
+
marginVertical?: number | undefined;
|
|
201
201
|
/**
|
|
202
202
|
* Air inside the bar surface between its left and right edges and the tab
|
|
203
203
|
* row, in pixels. Default 4 for a docked bar and 8 for the `floating` and
|
|
204
204
|
* `tile` capsules. The `underline` variant still insets its row by at least
|
|
205
205
|
* the bar's radius, so its line never crosses a rounded corner.
|
|
206
206
|
*/
|
|
207
|
-
paddingHorizontal?: number;
|
|
207
|
+
paddingHorizontal?: number | undefined;
|
|
208
208
|
/**
|
|
209
209
|
* Air inside the bar surface above and below the tab row, in pixels.
|
|
210
210
|
* Default 8 (`theme.space.sm`). On a docked bar that is not lifted
|
|
211
211
|
* by `marginVertical`, the bottom takes the safe-area inset instead when
|
|
212
212
|
* that is larger. The `underline` line sits on this padding's outer edge.
|
|
213
213
|
*/
|
|
214
|
-
paddingVertical?: number;
|
|
214
|
+
paddingVertical?: number | undefined;
|
|
215
215
|
/**
|
|
216
216
|
* Hairline border on all four sides of the bar surface, on every variant.
|
|
217
217
|
* Off unless set.
|
|
218
218
|
*/
|
|
219
|
-
border?: boolean;
|
|
219
|
+
border?: boolean | undefined;
|
|
220
220
|
/**
|
|
221
221
|
* Opt in to minimising the bar while the person scrolls down: the labels go
|
|
222
222
|
* and the bar shrinks to its icons (it never hides), and it restores on
|
|
@@ -225,7 +225,7 @@ export interface BottomNavigationProps {
|
|
|
225
225
|
* expanded while a screen reader is on, and snaps with no animation under
|
|
226
226
|
* Reduce Motion. Off by default.
|
|
227
227
|
*/
|
|
228
|
-
minimizeOnScroll?: boolean;
|
|
228
|
+
minimizeOnScroll?: boolean | undefined;
|
|
229
229
|
/**
|
|
230
230
|
* The scroll view's direction, from `useScrollDirection().direction`. Only
|
|
231
231
|
* read while `minimizeOnScroll` is set: `down` minimises, `up` and `idle`
|
|
@@ -234,7 +234,7 @@ export interface BottomNavigationProps {
|
|
|
234
234
|
* across tab screens leaves `down` unchanged when the person returns to
|
|
235
235
|
* the top of another.
|
|
236
236
|
*/
|
|
237
|
-
scrollDirection?: ScrollDirection;
|
|
237
|
+
scrollDirection?: ScrollDirection | undefined;
|
|
238
238
|
/**
|
|
239
239
|
* A compact strip tied to the bar, such as a "clocked in" status. Expanded,
|
|
240
240
|
* it sits above the tabs across the bar's width; minimised, it moves inline
|
|
@@ -242,20 +242,20 @@ export interface BottomNavigationProps {
|
|
|
242
242
|
* a smaller version when `minimized`. Drawn whether or not
|
|
243
243
|
* `minimizeOnScroll` is set; `testID` gives it `${testID}-accessory`.
|
|
244
244
|
*/
|
|
245
|
-
accessory?: React.ReactNode | ((state: BottomNavigationAccessoryState) => React.ReactNode);
|
|
246
|
-
style?: StyleProp<ViewStyle
|
|
245
|
+
accessory?: React.ReactNode | ((state: BottomNavigationAccessoryState) => React.ReactNode) | undefined;
|
|
246
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
247
247
|
/** Style applied to the active indicator of every variant (pill, line, bubble or expanded pill). */
|
|
248
|
-
indicatorStyle?: StyleProp<ViewStyle
|
|
249
|
-
labelStyle?: StyleProp<TextStyle
|
|
248
|
+
indicatorStyle?: StyleProp<ViewStyle> | undefined;
|
|
249
|
+
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
250
250
|
/**
|
|
251
251
|
* Largest font scale the tab label follows (React Native's
|
|
252
252
|
* `maxFontSizeMultiplier`). The icon and the badge keep their size. Default
|
|
253
253
|
* 1.2, or the theme's `maxFontSizeMultiplier` when that is set.
|
|
254
254
|
*/
|
|
255
|
-
labelMaxFontScale?: number;
|
|
255
|
+
labelMaxFontScale?: number | undefined;
|
|
256
256
|
/** Overrides the built-in English strings for the screen reader; each key you omit keeps its default. */
|
|
257
|
-
labels?: Partial<BottomNavigationLabels
|
|
258
|
-
testID?: string;
|
|
257
|
+
labels?: Partial<BottomNavigationLabels> | undefined;
|
|
258
|
+
testID?: string | undefined;
|
|
259
259
|
}
|
|
260
260
|
declare const BottomNavigation: React.ForwardRefExoticComponent<BottomNavigationProps & React.RefAttributes<HostInstance>>;
|
|
261
261
|
export { BottomNavigation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* BottomSheet — Reanimated 3 + Gesture Handler
|
|
2
|
+
* BottomSheet — Reanimated 3 + Gesture Handler 3 implementation.
|
|
3
3
|
*
|
|
4
4
|
* A polished, theme-aware bottom sheet with multi-snap-point support,
|
|
5
5
|
* UI-thread driven pan gestures, and native-driver spring animations.
|
|
@@ -36,7 +36,7 @@ export interface BottomSheetProps {
|
|
|
36
36
|
* content, `['content', '90%']` adds a taller one the handle drags up to.
|
|
37
37
|
* Content taller than the cap is clipped, or scrolls with `scrollable`.
|
|
38
38
|
*/
|
|
39
|
-
snapPoints?: SnapPoint[];
|
|
39
|
+
snapPoints?: SnapPoint[] | undefined;
|
|
40
40
|
/** Whether the sheet is open. Set it to false in `onClose`; a sheet closed by the person stays closed until this goes false and true again. */
|
|
41
41
|
open: boolean;
|
|
42
42
|
/**
|
|
@@ -44,24 +44,24 @@ export interface BottomSheetProps {
|
|
|
44
44
|
*/
|
|
45
45
|
onClose: () => void;
|
|
46
46
|
/** The snap point to open at, and the one to move to when it changes. Omitted, the sheet opens at its first snap point. A drag does not move it: follow the position with `onSnapChange`. */
|
|
47
|
-
snapIndex?: number;
|
|
47
|
+
snapIndex?: number | undefined;
|
|
48
48
|
/** Called with the snap index the person dragged the sheet to. Never called for a close: that is `onClose`. */
|
|
49
|
-
onSnapChange?: (index: number) => void;
|
|
50
|
-
onAnimate?: (from: number, to: number) => void;
|
|
49
|
+
onSnapChange?: ((index: number) => void) | undefined;
|
|
50
|
+
onAnimate?: ((from: number, to: number) => void) | undefined;
|
|
51
51
|
/**
|
|
52
52
|
* Called once after a close has finished: the exit animation is over and
|
|
53
53
|
* the host is gone (on iOS, once the native Modal's window has been
|
|
54
54
|
* dismissed). Present anything native (an image picker, the share sheet)
|
|
55
55
|
* from here; presented earlier, iOS attaches it to the closing window.
|
|
56
56
|
*/
|
|
57
|
-
onAfterClose?: () => void;
|
|
58
|
-
enablePanDownToClose?: boolean;
|
|
57
|
+
onAfterClose?: (() => void) | undefined;
|
|
58
|
+
enablePanDownToClose?: boolean | undefined;
|
|
59
59
|
/**
|
|
60
60
|
* Whether a tap on the scrim closes the sheet. Android Back and web Escape
|
|
61
61
|
* follow it: when off, they do nothing either, so a sheet that must be
|
|
62
62
|
* answered stays open.
|
|
63
63
|
*/
|
|
64
|
-
enableBackdropPress?: boolean;
|
|
64
|
+
enableBackdropPress?: boolean | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* Asked before the person dismisses the sheet: a handle drag past the close
|
|
67
67
|
* threshold or a fast swipe down, the context's `requestClose`, and, while
|
|
@@ -80,28 +80,28 @@ export interface BottomSheetProps {
|
|
|
80
80
|
* The context's `close` is the app's own decision (a Save button, say) and
|
|
81
81
|
* never asks.
|
|
82
82
|
*/
|
|
83
|
-
onBeforeClose?: () => boolean | Promise<boolean
|
|
83
|
+
onBeforeClose?: (() => boolean | Promise<boolean>) | undefined;
|
|
84
84
|
/** Text the sheet speaks for its own controls. Override only what the app's language needs. */
|
|
85
|
-
labels?: Partial<BottomSheetLabels
|
|
85
|
+
labels?: Partial<BottomSheetLabels> | undefined;
|
|
86
86
|
/** A title drawn above `header`, as a heading for screen readers. */
|
|
87
|
-
title?: string;
|
|
87
|
+
title?: string | undefined;
|
|
88
88
|
/**
|
|
89
89
|
* Wrap `children` in a vertical ScrollView sized to the space between header
|
|
90
90
|
* and footer. Off by default; a plain View then holds the content. The sheet
|
|
91
91
|
* itself is only ever dragged from its handle, so a drag on the content never
|
|
92
92
|
* moves or closes the sheet, whichever value this has.
|
|
93
93
|
*/
|
|
94
|
-
scrollable?: boolean;
|
|
94
|
+
scrollable?: boolean | undefined;
|
|
95
95
|
/** Ref to the inner ScrollView. Used only with `scrollable`. */
|
|
96
|
-
scrollRef?: React.Ref<ScrollViewInstance
|
|
96
|
+
scrollRef?: React.Ref<ScrollViewInstance> | undefined;
|
|
97
97
|
/** Forwarded to the inner ScrollView. Used only with `scrollable`. */
|
|
98
|
-
onScroll?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
|
|
98
|
+
onScroll?: ((event: NativeSyntheticEvent<NativeScrollEvent>) => void) | undefined;
|
|
99
99
|
/** Forwarded to the inner ScrollView. Used only with `scrollable`. */
|
|
100
|
-
onContentSizeChange?: (width: number, height: number) => void;
|
|
100
|
+
onContentSizeChange?: ((width: number, height: number) => void) | undefined;
|
|
101
101
|
/** Forwarded to the inner ScrollView's `onLayout`. Used only with `scrollable`. */
|
|
102
|
-
onScrollLayout?: (event: LayoutChangeEvent) => void;
|
|
102
|
+
onScrollLayout?: ((event: LayoutChangeEvent) => void) | undefined;
|
|
103
103
|
/** Forwarded to the inner ScrollView. Used only with `scrollable`. */
|
|
104
|
-
scrollEventThrottle?: number;
|
|
104
|
+
scrollEventThrottle?: number | undefined;
|
|
105
105
|
/**
|
|
106
106
|
* How the sheet reacts to the soft keyboard.
|
|
107
107
|
* - `'shift'` (default): the sheet rides up with the keyboard and its body
|
|
@@ -110,7 +110,7 @@ export interface BottomSheetProps {
|
|
|
110
110
|
* and the footer pins above the keyboard. Nothing sits behind the keyboard.
|
|
111
111
|
* - `'none'`: the sheet stays put; the keyboard may cover content.
|
|
112
112
|
*/
|
|
113
|
-
keyboardBehavior?: KeyboardBehavior;
|
|
113
|
+
keyboardBehavior?: KeyboardBehavior | undefined;
|
|
114
114
|
/**
|
|
115
115
|
* How the sheet is mounted in the view tree. Off (default): rendered inside a
|
|
116
116
|
* native `<Modal>` so the backdrop covers the entire screen (status bar,
|
|
@@ -118,7 +118,7 @@ export interface BottomSheetProps {
|
|
|
118
118
|
* `absoluteFill` overlay inside the parent component, for a sheet embedded
|
|
119
119
|
* within a bounded area.
|
|
120
120
|
*/
|
|
121
|
-
inline?: boolean;
|
|
121
|
+
inline?: boolean | undefined;
|
|
122
122
|
/**
|
|
123
123
|
* How the sheet is drawn.
|
|
124
124
|
* - `'sheet'` (default): full width, anchored to the bottom edge, dragged
|
|
@@ -129,41 +129,41 @@ export interface BottomSheetProps {
|
|
|
129
129
|
* - `'auto'`: `'dialog'` on a tablet (the window's shorter side is 600 or
|
|
130
130
|
* more), `'sheet'` on a phone.
|
|
131
131
|
*/
|
|
132
|
-
presentation?: BottomSheetPresentation;
|
|
132
|
+
presentation?: BottomSheetPresentation | undefined;
|
|
133
133
|
/**
|
|
134
134
|
* Whether a sheet that opens as it mounts (`open` on the first render)
|
|
135
135
|
* slides up into place. When false it is drawn at its snap
|
|
136
136
|
* point at once, and a re-measured host moves it without a spring, until
|
|
137
137
|
* its first close; later opens slide as usual. Default true.
|
|
138
138
|
*/
|
|
139
|
-
animateMount?: boolean;
|
|
140
|
-
handleIndicatorStyle?: StyleProp<ViewStyle
|
|
141
|
-
containerStyle?: StyleProp<ViewStyle
|
|
139
|
+
animateMount?: boolean | undefined;
|
|
140
|
+
handleIndicatorStyle?: StyleProp<ViewStyle> | undefined;
|
|
141
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
142
142
|
/**
|
|
143
143
|
* Sticky region rendered between the drag handle and the scrollable content.
|
|
144
144
|
* Does not scroll with `children`. Can call `useBottomSheet()` to read sheet
|
|
145
145
|
* state.
|
|
146
146
|
*/
|
|
147
|
-
header?: React.ReactNode;
|
|
147
|
+
header?: React.ReactNode | undefined;
|
|
148
148
|
/** Action buttons drawn in the footer, above `footer`. Laid out by `actionsLayout`. */
|
|
149
|
-
actions?: DialogAction[];
|
|
149
|
+
actions?: DialogAction[] | undefined;
|
|
150
150
|
/** How `actions` are laid out: `'auto'` (default) stacks them when a label wraps, `'row'` never stacks, `'stacked'` is a column of full-width buttons in the order given. */
|
|
151
|
-
actionsLayout?: ActionsLayout;
|
|
151
|
+
actionsLayout?: ActionsLayout | undefined;
|
|
152
152
|
/**
|
|
153
153
|
* Sticky region pinned to the bottom of the sheet, above the safe-area
|
|
154
154
|
* inset. Does not scroll with `children`, and rides up with the keyboard
|
|
155
155
|
* when `keyboardBehavior='shift'` (no extra wiring needed — the whole sheet
|
|
156
156
|
* shifts). Typical use: action button rows.
|
|
157
157
|
*/
|
|
158
|
-
footer?: React.ReactNode;
|
|
158
|
+
footer?: React.ReactNode | undefined;
|
|
159
159
|
/** Style applied to the header region wrapper. */
|
|
160
|
-
headerStyle?: StyleProp<ViewStyle
|
|
160
|
+
headerStyle?: StyleProp<ViewStyle> | undefined;
|
|
161
161
|
/** Style applied to the footer region wrapper. */
|
|
162
|
-
footerStyle?: StyleProp<ViewStyle
|
|
163
|
-
children?: React.ReactNode;
|
|
164
|
-
accessibilityLabel?: string;
|
|
165
|
-
accessibilityViewIsModal?: boolean;
|
|
166
|
-
testID?: string;
|
|
162
|
+
footerStyle?: StyleProp<ViewStyle> | undefined;
|
|
163
|
+
children?: React.ReactNode | undefined;
|
|
164
|
+
accessibilityLabel?: string | undefined;
|
|
165
|
+
accessibilityViewIsModal?: boolean | undefined;
|
|
166
|
+
testID?: string | undefined;
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
169
|
* State + actions exposed to anything rendered inside a `<BottomSheet>` —
|
|
@@ -4,36 +4,36 @@ import type { RadiusName, SpaceName, Theme } from "../../theme/types.js";
|
|
|
4
4
|
export type BackgroundToken = "bg" | "bg-subtle" | "bg-muted" | "surface" | "scrim" | "surface-inverse" | "primary-wash";
|
|
5
5
|
export interface BoxProps extends ViewProps {
|
|
6
6
|
/** padding (all sides) */
|
|
7
|
-
p?: SpaceName;
|
|
7
|
+
p?: SpaceName | undefined;
|
|
8
8
|
/** paddingHorizontal */
|
|
9
|
-
px?: SpaceName;
|
|
9
|
+
px?: SpaceName | undefined;
|
|
10
10
|
/** paddingVertical */
|
|
11
|
-
py?: SpaceName;
|
|
12
|
-
pt?: SpaceName;
|
|
13
|
-
pr?: SpaceName;
|
|
14
|
-
pb?: SpaceName;
|
|
15
|
-
pl?: SpaceName;
|
|
11
|
+
py?: SpaceName | undefined;
|
|
12
|
+
pt?: SpaceName | undefined;
|
|
13
|
+
pr?: SpaceName | undefined;
|
|
14
|
+
pb?: SpaceName | undefined;
|
|
15
|
+
pl?: SpaceName | undefined;
|
|
16
16
|
/** margin (all sides) */
|
|
17
|
-
m?: SpaceName;
|
|
18
|
-
mx?: SpaceName;
|
|
19
|
-
my?: SpaceName;
|
|
20
|
-
mt?: SpaceName;
|
|
21
|
-
mr?: SpaceName;
|
|
22
|
-
mb?: SpaceName;
|
|
23
|
-
ml?: SpaceName;
|
|
17
|
+
m?: SpaceName | undefined;
|
|
18
|
+
mx?: SpaceName | undefined;
|
|
19
|
+
my?: SpaceName | undefined;
|
|
20
|
+
mt?: SpaceName | undefined;
|
|
21
|
+
mr?: SpaceName | undefined;
|
|
22
|
+
mb?: SpaceName | undefined;
|
|
23
|
+
ml?: SpaceName | undefined;
|
|
24
24
|
/** Flexbox gap between children (spacing token). */
|
|
25
|
-
gap?: SpaceName;
|
|
25
|
+
gap?: SpaceName | undefined;
|
|
26
26
|
/** Background: a colour name (bg, bg-subtle, bg-muted, surface, scrim, surface-inverse, primary-wash) or a raw colour string. */
|
|
27
|
-
bg?: BackgroundToken | (string & {});
|
|
28
|
-
radius?: RadiusName;
|
|
27
|
+
bg?: BackgroundToken | (string & {}) | undefined;
|
|
28
|
+
radius?: RadiusName | undefined;
|
|
29
29
|
/** Draw a hairline border in `colors.border`. */
|
|
30
|
-
border?: boolean;
|
|
31
|
-
flex?: number;
|
|
32
|
-
align?: ViewStyle["alignItems"];
|
|
33
|
-
justify?: ViewStyle["justifyContent"];
|
|
34
|
-
direction?: ViewStyle["flexDirection"];
|
|
35
|
-
wrap?: boolean;
|
|
36
|
-
style?: StyleProp<ViewStyle
|
|
30
|
+
border?: boolean | undefined;
|
|
31
|
+
flex?: number | undefined;
|
|
32
|
+
align?: ViewStyle["alignItems"] | undefined;
|
|
33
|
+
justify?: ViewStyle["justifyContent"] | undefined;
|
|
34
|
+
direction?: ViewStyle["flexDirection"] | undefined;
|
|
35
|
+
wrap?: boolean | undefined;
|
|
36
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
37
37
|
}
|
|
38
38
|
type LayoutProps = Omit<BoxProps, "style" | "children">;
|
|
39
39
|
export declare const resolveBoxStyle: (theme: Theme, p: LayoutProps) => ViewStyle;
|
|
@@ -46,9 +46,9 @@ export type RowProps = Omit<BoxProps, "direction">;
|
|
|
46
46
|
declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HostInstance>>;
|
|
47
47
|
export interface SpacerProps {
|
|
48
48
|
/** Fixed spacer of this spacing token. Omit for a flexible spacer (`flex: 1`). */
|
|
49
|
-
size?: SpaceName;
|
|
50
|
-
style?: StyleProp<ViewStyle
|
|
51
|
-
testID?: string;
|
|
49
|
+
size?: SpaceName | undefined;
|
|
50
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
51
|
+
testID?: string | undefined;
|
|
52
52
|
}
|
|
53
53
|
/** Fixed gap (`size`) or a flexible push (`flex: 1`) between siblings. */
|
|
54
54
|
declare const Spacer: React.FC<SpacerProps>;
|
|
@@ -28,31 +28,31 @@ export declare const DEFAULT_BUTTON_LABELS: Readonly<ButtonLabels>;
|
|
|
28
28
|
export interface ButtonProps extends Omit<PressableProps, "style" | "children"> {
|
|
29
29
|
/** The label, and the button's accessible name unless `accessibilityLabel` is set. */
|
|
30
30
|
label: string;
|
|
31
|
-
variant?: ButtonVariant;
|
|
32
|
-
tone?: ButtonTone;
|
|
33
|
-
size?: ButtonSize;
|
|
31
|
+
variant?: ButtonVariant | undefined;
|
|
32
|
+
tone?: ButtonTone | undefined;
|
|
33
|
+
size?: ButtonSize | undefined;
|
|
34
34
|
/**
|
|
35
35
|
* When true, the button is disabled and shows a Spinner in front of the title, in the leading
|
|
36
36
|
* icon slot, and the title stays readable. Use for in-flight submissions. This is **not**
|
|
37
37
|
* SkeletonContent. Interactive controls signal pending action with an inline spinner, not a
|
|
38
38
|
* placeholder shimmer.
|
|
39
39
|
*/
|
|
40
|
-
loading?: boolean;
|
|
41
|
-
disabled?: boolean;
|
|
42
|
-
fullWidth?: boolean;
|
|
40
|
+
loading?: boolean | undefined;
|
|
41
|
+
disabled?: boolean | undefined;
|
|
42
|
+
fullWidth?: boolean | undefined;
|
|
43
43
|
/**
|
|
44
44
|
* Icon before the title. An icon name (`leftIcon="add"`) is drawn in the
|
|
45
45
|
* label colour at the size's icon size; `{ name, variant }`, a render
|
|
46
46
|
* function or any node also work.
|
|
47
47
|
*/
|
|
48
|
-
leftIcon?: SlotIcon;
|
|
48
|
+
leftIcon?: SlotIcon | undefined;
|
|
49
49
|
/** Icon after the title; same contract as `leftIcon`. */
|
|
50
|
-
rightIcon?: SlotIcon;
|
|
50
|
+
rightIcon?: SlotIcon | undefined;
|
|
51
51
|
/**
|
|
52
52
|
* Iconsax style for `leftIcon` and `rightIcon` given as a name. A
|
|
53
53
|
* `{ name, variant }` icon keeps its own variant. Default `'linear'`.
|
|
54
54
|
*/
|
|
55
|
-
iconVariant?: IconVariant;
|
|
55
|
+
iconVariant?: IconVariant | undefined;
|
|
56
56
|
/**
|
|
57
57
|
* Draws `leftIcon` inside its own opaque disc, sitting at the pill's left
|
|
58
58
|
* edge, so the icon reads as a badge rather than a glyph in the label. The
|
|
@@ -62,30 +62,30 @@ export interface ButtonProps extends Omit<PressableProps, "style" | "children">
|
|
|
62
62
|
* `rounded` for the pill shape. Ignored on a `link` and without a
|
|
63
63
|
* `leftIcon`.
|
|
64
64
|
*/
|
|
65
|
-
leftIconBadge?: boolean;
|
|
65
|
+
leftIconBadge?: boolean | undefined;
|
|
66
66
|
/**
|
|
67
67
|
* Haptic on press. Defaults to a light tap (`impactLight`); a `HapticType` changes it and `false` switches it off. The app-wide switch (`configureFeedback`) silences it too.
|
|
68
68
|
*/
|
|
69
|
-
haptic?: HapticType | false;
|
|
70
|
-
rounded?: boolean;
|
|
69
|
+
haptic?: HapticType | false | undefined;
|
|
70
|
+
rounded?: boolean | undefined;
|
|
71
71
|
/**
|
|
72
72
|
* Optional gradient background. Pass either a key from `theme.settings.gradients`
|
|
73
73
|
* (e.g. `"primary"`) or a `GradientDefinition` literal.
|
|
74
74
|
*/
|
|
75
|
-
gradient?: string | GradientDefinition;
|
|
76
|
-
style?: StyleProp<ViewStyle
|
|
75
|
+
gradient?: string | GradientDefinition | undefined;
|
|
76
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
77
77
|
/** Style for the outer wrapper, outside the pressed area: margins go here so the tap target keeps its size. */
|
|
78
|
-
containerStyle?: StyleProp<ViewStyle
|
|
79
|
-
textStyle?: StyleProp<TextStyle
|
|
78
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
79
|
+
textStyle?: StyleProp<TextStyle> | undefined;
|
|
80
80
|
/**
|
|
81
81
|
* Press feedback by name: `'scale'` (default), `'bounce'`, `'fade'`,
|
|
82
82
|
* `'sink'` or `'pulse'`, or `false` for none. Same shape as `haptic`.
|
|
83
83
|
* A `link` defaults to none: its underline sweeping in is its feedback.
|
|
84
84
|
*/
|
|
85
|
-
pressAnimation?: PressAnimationPreset | false;
|
|
86
|
-
testID?: string;
|
|
85
|
+
pressAnimation?: PressAnimationPreset | false | undefined;
|
|
86
|
+
testID?: string | undefined;
|
|
87
87
|
/** Overrides the text the Button draws for its own states; a key left out keeps its default. */
|
|
88
|
-
labels?: Partial<ButtonLabels
|
|
88
|
+
labels?: Partial<ButtonLabels> | undefined;
|
|
89
89
|
}
|
|
90
90
|
declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HostInstance>>;
|
|
91
91
|
/**
|
|
@@ -93,9 +93,9 @@ declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<Host
|
|
|
93
93
|
* the Button itself uses, so a renderer that draws a Button's label (Canvas) never keeps its own copy of the rules.
|
|
94
94
|
*/
|
|
95
95
|
export declare function buttonLabelInk(props: {
|
|
96
|
-
variant?: ButtonVariant;
|
|
97
|
-
tone?: ButtonTone;
|
|
98
|
-
disabled?: boolean;
|
|
96
|
+
variant?: ButtonVariant | undefined;
|
|
97
|
+
tone?: ButtonTone | undefined;
|
|
98
|
+
disabled?: boolean | undefined;
|
|
99
99
|
}, theme: Theme): string;
|
|
100
100
|
export { Button };
|
|
101
101
|
export default Button;
|
|
@@ -15,12 +15,12 @@ export interface CalendarMark {
|
|
|
15
15
|
date: string;
|
|
16
16
|
tone: Tone;
|
|
17
17
|
/** What the day is ("Closed", "Casual leave"); read aloud with the day. */
|
|
18
|
-
label?: string;
|
|
18
|
+
label?: string | undefined;
|
|
19
19
|
}
|
|
20
20
|
/** A selection. Single mode uses `start` only; a range in progress has no `end` yet. */
|
|
21
21
|
export interface CalendarRange {
|
|
22
22
|
start: Date;
|
|
23
|
-
end?: Date;
|
|
23
|
+
end?: Date | undefined;
|
|
24
24
|
}
|
|
25
25
|
export interface CalendarLabels {
|
|
26
26
|
previousMonth: string;
|
|
@@ -31,7 +31,7 @@ export interface CalendarLabels {
|
|
|
31
31
|
export declare const DEFAULT_CALENDAR_LABELS: Readonly<CalendarLabels>;
|
|
32
32
|
export interface CalendarProps {
|
|
33
33
|
/** `single` picks one day; `range` picks a start, then an end. Default `single`. */
|
|
34
|
-
selectionMode?: CalendarSelectionMode;
|
|
34
|
+
selectionMode?: CalendarSelectionMode | undefined;
|
|
35
35
|
/** The selection; `null` when nothing is picked. */
|
|
36
36
|
value: CalendarRange | null;
|
|
37
37
|
/**
|
|
@@ -41,38 +41,38 @@ export interface CalendarProps {
|
|
|
41
41
|
*/
|
|
42
42
|
onChange: (range: CalendarRange) => void;
|
|
43
43
|
/** The month shown (any day in it). Omit to let the calendar own it. */
|
|
44
|
-
month?: Date;
|
|
44
|
+
month?: Date | undefined;
|
|
45
45
|
/** Fires when the shown month changes, by the arrows or a tap on a neighbouring month's day. */
|
|
46
|
-
onMonthChange?: (month: Date) => void;
|
|
47
|
-
minDate?: Date;
|
|
48
|
-
maxDate?: Date;
|
|
46
|
+
onMonthChange?: ((month: Date) => void) | undefined;
|
|
47
|
+
minDate?: Date | undefined;
|
|
48
|
+
maxDate?: Date | undefined;
|
|
49
49
|
/** Days that cannot be picked, besides those outside `minDate` and `maxDate`. */
|
|
50
|
-
disabledDates?: Date[];
|
|
50
|
+
disabledDates?: Date[] | undefined;
|
|
51
51
|
/** First weekday of the grid: 0 Sunday, 1 Monday, 6 Saturday. Default 0. */
|
|
52
|
-
weekStartsOn?: CalendarWeekStart;
|
|
52
|
+
weekStartsOn?: CalendarWeekStart | undefined;
|
|
53
53
|
/** BCP 47 locale for month, weekday and day names. Default `'en-IN'`. */
|
|
54
|
-
locale?: string;
|
|
54
|
+
locale?: string | undefined;
|
|
55
55
|
/** Days drawn with a dot in their tone and read aloud with each day. */
|
|
56
|
-
marks?: CalendarMark[];
|
|
56
|
+
marks?: CalendarMark[] | undefined;
|
|
57
57
|
/**
|
|
58
58
|
* Fixed width and height of each day, at least 44. Unset, days share the
|
|
59
59
|
* width equally and stay at least 44 tall.
|
|
60
60
|
*/
|
|
61
|
-
cellSize?: number;
|
|
61
|
+
cellSize?: number | undefined;
|
|
62
62
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
63
|
-
haptic?: HapticType | false;
|
|
63
|
+
haptic?: HapticType | false | undefined;
|
|
64
64
|
/** Names the calendar; read with the month heading ("Leave dates, October 2026"). */
|
|
65
|
-
accessibilityLabel?: string;
|
|
65
|
+
accessibilityLabel?: string | undefined;
|
|
66
66
|
/** When set, the month title is a button. */
|
|
67
|
-
onTitlePress?: () => void;
|
|
67
|
+
onTitlePress?: (() => void) | undefined;
|
|
68
68
|
/** Spoken text overrides: the arrow names and the read for a mark with no label. */
|
|
69
|
-
labels?: Partial<CalendarLabels
|
|
70
|
-
style?: StyleProp<ViewStyle
|
|
69
|
+
labels?: Partial<CalendarLabels> | undefined;
|
|
70
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
71
71
|
/** Style override for the month and year heading wrapper. */
|
|
72
|
-
headerLabelStyle?: StyleProp<ViewStyle
|
|
72
|
+
headerLabelStyle?: StyleProp<ViewStyle> | undefined;
|
|
73
73
|
/** Style override for the previous and next month buttons. */
|
|
74
|
-
navButtonStyle?: StyleProp<ViewStyle
|
|
75
|
-
testID?: string;
|
|
74
|
+
navButtonStyle?: StyleProp<ViewStyle> | undefined;
|
|
75
|
+
testID?: string | undefined;
|
|
76
76
|
}
|
|
77
77
|
declare const Calendar: ForwardRefExoticComponent<CalendarProps & RefAttributes<HostInstance>>;
|
|
78
78
|
export { Calendar };
|
|
@@ -16,12 +16,14 @@ export interface CalendarDayProps {
|
|
|
16
16
|
barLeft: boolean;
|
|
17
17
|
barRight: boolean;
|
|
18
18
|
today: boolean;
|
|
19
|
-
dots?: readonly CalendarDot[];
|
|
19
|
+
dots?: readonly CalendarDot[] | undefined;
|
|
20
20
|
cellStyle: StyleProp<ViewStyle>;
|
|
21
21
|
styles: CalendarStyles;
|
|
22
22
|
maxFontSizeMultiplier: number;
|
|
23
23
|
onPressDay: (cell: CalendarCell) => void;
|
|
24
24
|
}
|
|
25
|
+
declare const CalendarDayBase: ({ cell, accessibilityLabel, disabled, edge, mid, barLeft, barRight, today, dots, cellStyle, styles, maxFontSizeMultiplier, onPressDay, }: CalendarDayProps) => import("react").JSX.Element;
|
|
25
26
|
/** One day of the grid; memoised so a tap re-renders only the days whose state changed. */
|
|
26
|
-
export declare const CalendarDay: import("react").MemoExoticComponent<
|
|
27
|
+
export declare const CalendarDay: import("react").MemoExoticComponent<typeof CalendarDayBase>;
|
|
28
|
+
export {};
|
|
27
29
|
//# sourceMappingURL=CalendarDay.d.ts.map
|