@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
|
@@ -53,31 +53,31 @@ export interface SignaturePadRef {
|
|
|
53
53
|
}
|
|
54
54
|
export interface SignaturePadProps {
|
|
55
55
|
/** A signature kept from before: each stroke a list of [x, y] points in the pad's own dp. Read once, at mount. */
|
|
56
|
-
initialStrokes?: ReadonlyArray<SignatureStroke
|
|
56
|
+
initialStrokes?: ReadonlyArray<SignatureStroke> | undefined;
|
|
57
57
|
/** Answers the whole signature after each stroke, Undo and Clear, in the shape of `initialStrokes`. */
|
|
58
|
-
onChange?: (strokes: SignatureStroke[]) => void;
|
|
58
|
+
onChange?: ((strokes: SignatureStroke[]) => void) | undefined;
|
|
59
59
|
/** A typed name kept from before. Read once, at mount. */
|
|
60
|
-
initialTypedName?: string;
|
|
60
|
+
initialTypedName?: string | undefined;
|
|
61
61
|
/** Answers the typed name on each edit and on Clear. */
|
|
62
|
-
onTypedNameChange?: (name: string) => void;
|
|
62
|
+
onTypedNameChange?: ((name: string) => void) | undefined;
|
|
63
63
|
/** The mode to start in. Under a screen reader an untouched pad starts in `'type'`. Default `'draw'`. */
|
|
64
|
-
defaultMode?: SignatureMode;
|
|
65
|
-
onModeChange?: (mode: SignatureMode) => void;
|
|
64
|
+
defaultMode?: SignatureMode | undefined;
|
|
65
|
+
onModeChange?: ((mode: SignatureMode) => void) | undefined;
|
|
66
66
|
/**
|
|
67
67
|
* Answers whether the active mode holds a signature, once at mount and on each change. Gate the
|
|
68
68
|
* submit button on this; the ref's `isEmpty()` cannot re-render a screen.
|
|
69
69
|
*/
|
|
70
|
-
onEmptyChange?: (isEmpty: boolean) => void;
|
|
70
|
+
onEmptyChange?: ((isEmpty: boolean) => void) | undefined;
|
|
71
71
|
/** Offers the type-your-name path. Turn it off only where a typed signature is not acceptable. Default `true`. */
|
|
72
|
-
allowTyped?: boolean;
|
|
72
|
+
allowTyped?: boolean | undefined;
|
|
73
73
|
/** The signer's name for the line under the pad ("Signed by Alex Morgan, 11-Oct-2026, 3:42 PM"). */
|
|
74
|
-
signedBy?: string;
|
|
74
|
+
signedBy?: string | undefined;
|
|
75
75
|
/** When it was signed, shown in the time zone set through `configureFormatters`. Defaults to the time of the last change made in this session; a kept signature shows no time. */
|
|
76
|
-
signedAt?: Date | string | number;
|
|
76
|
+
signedAt?: Date | string | number | undefined;
|
|
77
77
|
/** Pad height in dp. Default 180. */
|
|
78
|
-
height?: number;
|
|
78
|
+
height?: number | undefined;
|
|
79
79
|
/** Longest typed name. Default 100. */
|
|
80
|
-
maxNameLength?: number;
|
|
80
|
+
maxNameLength?: number | undefined;
|
|
81
81
|
/**
|
|
82
82
|
* Ink of the strokes and the typed name, on the pad and in `toFile()` and `toSvg()`. With neither
|
|
83
83
|
* `inkColor` nor `paperColor` set, the pad follows the active theme (primary text on the elevated
|
|
@@ -85,21 +85,21 @@ export interface SignaturePadProps {
|
|
|
85
85
|
* colour scheme so the file is ready for a document. Set one and the other keeps the light
|
|
86
86
|
* theme's colour.
|
|
87
87
|
*/
|
|
88
|
-
inkColor?: string;
|
|
88
|
+
inkColor?: string | undefined;
|
|
89
89
|
/** Ground of the pad and of the PNG. See `inkColor` for the defaults. */
|
|
90
|
-
paperColor?: string;
|
|
90
|
+
paperColor?: string | undefined;
|
|
91
91
|
/**
|
|
92
92
|
* Font family of the typed name. Default a system script face: Snell Roundhand on iOS, `cursive`
|
|
93
93
|
* on Android and web. Register a script font in the app and pass its family name to use it.
|
|
94
94
|
*/
|
|
95
|
-
scriptFontFamily?: string;
|
|
95
|
+
scriptFontFamily?: string | undefined;
|
|
96
96
|
/** Texts, for localisation. Any key left out keeps its English default. */
|
|
97
|
-
labels?: Partial<SignaturePadLabels
|
|
97
|
+
labels?: Partial<SignaturePadLabels> | undefined;
|
|
98
98
|
/** Haptic on Undo, Clear and the mode switch; never while drawing. Pass `false` to disable. Default `'selection'`. */
|
|
99
|
-
haptic?: HapticType | false;
|
|
100
|
-
disabled?: boolean;
|
|
101
|
-
style?: StyleProp<ViewStyle
|
|
102
|
-
testID?: string;
|
|
99
|
+
haptic?: HapticType | false | undefined;
|
|
100
|
+
disabled?: boolean | undefined;
|
|
101
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
102
|
+
testID?: string | undefined;
|
|
103
103
|
}
|
|
104
104
|
declare const SignaturePad: import("react").ForwardRefExoticComponent<SignaturePadProps & import("react").RefAttributes<SignaturePadRef>>;
|
|
105
105
|
export { SignaturePad };
|
|
@@ -51,31 +51,31 @@ export interface SkeletonProps {
|
|
|
51
51
|
* - `'text'`: small radius + roughly text-line height. `height` becomes
|
|
52
52
|
* `1.15× fontSize` if a `fontSize` would have been passed.
|
|
53
53
|
*/
|
|
54
|
-
shape?: SkeletonShape;
|
|
55
|
-
width?: SkeletonWidth;
|
|
56
|
-
height?: number;
|
|
57
|
-
radius?: SkeletonRadius;
|
|
54
|
+
shape?: SkeletonShape | undefined;
|
|
55
|
+
width?: SkeletonWidth | undefined;
|
|
56
|
+
height?: number | undefined;
|
|
57
|
+
radius?: SkeletonRadius | undefined;
|
|
58
58
|
/** Animation pattern. */
|
|
59
|
-
variant?: SkeletonVariant;
|
|
59
|
+
variant?: SkeletonVariant | undefined;
|
|
60
60
|
/**
|
|
61
61
|
* Per-instance color override. Falls back to provider defaults, then theme.
|
|
62
62
|
* Use for one-off contrast adjustments (dark shimmer on a light banner);
|
|
63
63
|
* prefer `<SkeletonProvider colors={...}>` for app-wide overrides.
|
|
64
64
|
*/
|
|
65
|
-
colors?: SkeletonColors;
|
|
65
|
+
colors?: SkeletonColors | undefined;
|
|
66
66
|
/** Screen-reader copy, merged over the English defaults. */
|
|
67
|
-
labels?: Partial<SkeletonLabels
|
|
68
|
-
style?: StyleProp<ViewStyle
|
|
69
|
-
testID?: string;
|
|
67
|
+
labels?: Partial<SkeletonLabels> | undefined;
|
|
68
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
69
|
+
testID?: string | undefined;
|
|
70
70
|
}
|
|
71
71
|
export interface SkeletonCircleProps extends Omit<SkeletonProps, "width" | "height" | "shape"> {
|
|
72
72
|
size: number;
|
|
73
73
|
}
|
|
74
74
|
export interface SkeletonTextProps extends Omit<SkeletonProps, "height" | "shape"> {
|
|
75
|
-
lines?: number;
|
|
76
|
-
lastLineWidth?: SkeletonWidth;
|
|
77
|
-
spacing?: number;
|
|
78
|
-
fontSize?: number;
|
|
75
|
+
lines?: number | undefined;
|
|
76
|
+
lastLineWidth?: SkeletonWidth | undefined;
|
|
77
|
+
spacing?: number | undefined;
|
|
78
|
+
fontSize?: number | undefined;
|
|
79
79
|
}
|
|
80
80
|
declare const Skeleton: React.FC<SkeletonProps>;
|
|
81
81
|
declare const SkeletonCircle: React.FC<SkeletonCircleProps>;
|
|
@@ -57,7 +57,7 @@ import type { SkeletonColors } from "./SkeletonProvider";
|
|
|
57
57
|
* dimensions (size, count, etc.) carry through to the placeholder.
|
|
58
58
|
*/
|
|
59
59
|
export type SkeletonStaticOf<P> = ComponentType<P> & {
|
|
60
|
-
Skeleton?: ComponentType<P
|
|
60
|
+
Skeleton?: ComponentType<P> | undefined;
|
|
61
61
|
};
|
|
62
62
|
export interface SkeletonContentProps {
|
|
63
63
|
/** When true, render the placeholder (or walker output) instead of `children`. */
|
|
@@ -69,32 +69,32 @@ export interface SkeletonContentProps {
|
|
|
69
69
|
* the recommended path for any non-trivial layout — most precise and most
|
|
70
70
|
* predictable. Combine with `count` to repeat the shape.
|
|
71
71
|
*/
|
|
72
|
-
placeholder?: ReactNode;
|
|
72
|
+
placeholder?: ReactNode | undefined;
|
|
73
73
|
/** Animation style forwarded to walker-produced `<Skeleton>` blocks. */
|
|
74
|
-
variant?: SkeletonVariant;
|
|
74
|
+
variant?: SkeletonVariant | undefined;
|
|
75
75
|
/**
|
|
76
76
|
* Repeat `placeholder` (or `children`, when no placeholder is provided)
|
|
77
77
|
* this many times while loading. Useful for list layouts where the
|
|
78
78
|
* placeholder shape should appear N times (e.g. 3 site cards, 5 list rows).
|
|
79
79
|
* Ignored when `loading` is false. Default: `1`.
|
|
80
80
|
*/
|
|
81
|
-
count?: number;
|
|
81
|
+
count?: number | undefined;
|
|
82
82
|
/**
|
|
83
83
|
* Colour override forwarded to every walker-produced `<Skeleton>`. Either
|
|
84
84
|
* or both keys can be set; missing keys fall back to provider defaults /
|
|
85
85
|
* theme. Has no effect when `placeholder` is provided — author colours
|
|
86
86
|
* directly on the placeholder JSX instead.
|
|
87
87
|
*/
|
|
88
|
-
colors?: SkeletonColors;
|
|
88
|
+
colors?: SkeletonColors | undefined;
|
|
89
89
|
/** Screen-reader copy, merged over the English defaults. */
|
|
90
|
-
labels?: Partial<SkeletonLabels
|
|
90
|
+
labels?: Partial<SkeletonLabels> | undefined;
|
|
91
91
|
/**
|
|
92
92
|
* Duration in ms for the load→content cross-fade. Default `300`. Set `0`
|
|
93
93
|
* to disable. Per-instance overrides the provider's `fadeDuration`.
|
|
94
94
|
*/
|
|
95
|
-
fadeDuration?: number;
|
|
96
|
-
style?: StyleProp<ViewStyle
|
|
97
|
-
testID?: string;
|
|
95
|
+
fadeDuration?: number | undefined;
|
|
96
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
97
|
+
testID?: string | undefined;
|
|
98
98
|
}
|
|
99
99
|
declare const SkeletonContent: React.FC<SkeletonContentProps>;
|
|
100
100
|
export { SkeletonContent };
|
|
@@ -13,18 +13,40 @@ export interface SkeletonListProps<ItemT> extends Omit<FlatListProps<ItemT>, "da
|
|
|
13
13
|
* Renders one placeholder row. Index is provided so callers may vary
|
|
14
14
|
* placeholder shape per slot if desired. Defaults to `null`.
|
|
15
15
|
*/
|
|
16
|
-
renderPlaceholder?: (index: number) => ReactNode;
|
|
16
|
+
renderPlaceholder?: ((index: number) => ReactNode) | undefined;
|
|
17
17
|
/** How many placeholder rows to render while loading. Default: 3. */
|
|
18
|
-
placeholderCount?: number;
|
|
18
|
+
placeholderCount?: number | undefined;
|
|
19
19
|
/** Animation style — same as Skeleton. */
|
|
20
|
-
variant?: SkeletonVariant;
|
|
20
|
+
variant?: SkeletonVariant | undefined;
|
|
21
21
|
/** Colour override forwarded to the placeholder skeletons. */
|
|
22
|
-
colors?: SkeletonColors;
|
|
22
|
+
colors?: SkeletonColors | undefined;
|
|
23
23
|
/** Screen-reader copy for the placeholder state, merged over the English defaults. */
|
|
24
|
-
labels?: Partial<SkeletonLabels
|
|
24
|
+
labels?: Partial<SkeletonLabels> | undefined;
|
|
25
25
|
/** Style applied to the wrapper View around the placeholders. */
|
|
26
|
-
placeholderContainerStyle?: StyleProp<ViewStyle
|
|
27
|
-
testID?: string;
|
|
26
|
+
placeholderContainerStyle?: StyleProp<ViewStyle> | undefined;
|
|
27
|
+
testID?: string | undefined;
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Drop-in FlatList replacement that renders `placeholderCount` skeleton rows while
|
|
31
|
+
* `loading` is true, then transitions to a real `<FlatList>` of `data` once loaded.
|
|
32
|
+
*
|
|
33
|
+
* Solves the "FlatList with empty data renders nothing" problem so consumer screens
|
|
34
|
+
* don't have to maintain a separate placeholder branch.
|
|
35
|
+
*
|
|
36
|
+
* Inside a vertical ScrollView, pass `scrollEnabled={false}` and let the outer
|
|
37
|
+
* view scroll: once `loading` flips false a real VirtualizedList mounts, and RN
|
|
38
|
+
* logs a nesting error for a same-orientation list — which only shows up after
|
|
39
|
+
* the data arrives, never on first render.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* <SkeletonList
|
|
43
|
+
* loading={isLoading}
|
|
44
|
+
* data={sites}
|
|
45
|
+
* renderItem={({ item }) => <SiteCard item={item} />}
|
|
46
|
+
* renderPlaceholder={() => <SiteCard loading />}
|
|
47
|
+
* placeholderCount={3}
|
|
48
|
+
* horizontal
|
|
49
|
+
* />
|
|
50
|
+
*/
|
|
51
|
+
export declare function SkeletonList<ItemT>(props: SkeletonListProps<ItemT>): ReactElement;
|
|
30
52
|
//# sourceMappingURL=SkeletonList.d.ts.map
|
|
@@ -20,30 +20,30 @@ import type { SkeletonRadius, SkeletonSpeed, SkeletonVariant } from "./Skeleton"
|
|
|
20
20
|
* fade). Either can be omitted — missing keys fall back to the active theme.
|
|
21
21
|
*/
|
|
22
22
|
export interface SkeletonColors {
|
|
23
|
-
background?: string;
|
|
24
|
-
highlight?: string;
|
|
23
|
+
background?: string | undefined;
|
|
24
|
+
highlight?: string | undefined;
|
|
25
25
|
}
|
|
26
26
|
export interface SkeletonProviderDefaults {
|
|
27
|
-
variant?: SkeletonVariant;
|
|
28
|
-
speed?: SkeletonSpeed;
|
|
27
|
+
variant?: SkeletonVariant | undefined;
|
|
28
|
+
speed?: SkeletonSpeed | undefined;
|
|
29
29
|
/** Default `placeholderCount` for `<SkeletonList>` when not specified per-instance. */
|
|
30
|
-
placeholderCount?: number;
|
|
30
|
+
placeholderCount?: number | undefined;
|
|
31
31
|
/** Default `radius` for `<Skeleton>` when not specified per-instance. */
|
|
32
|
-
radius?: SkeletonRadius;
|
|
32
|
+
radius?: SkeletonRadius | undefined;
|
|
33
33
|
/** App-wide colour overrides for the shimmer base + highlight. */
|
|
34
|
-
colors?: SkeletonColors;
|
|
34
|
+
colors?: SkeletonColors | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* Fade duration in ms for the `loading → loaded` cross-fade inside
|
|
37
37
|
* `SkeletonContent`. Default `300`. Set to `0` to disable.
|
|
38
38
|
*/
|
|
39
|
-
fadeDuration?: number;
|
|
39
|
+
fadeDuration?: number | undefined;
|
|
40
40
|
/**
|
|
41
41
|
* Hard override for animation. `'auto'` (default) follows the OS
|
|
42
42
|
* "Reduce Motion" preference: shimmer when off, pulse when on. `'always'`
|
|
43
43
|
* forces shimmer regardless. `'never'` forces static — useful for tests or
|
|
44
44
|
* battery-sensitive screens.
|
|
45
45
|
*/
|
|
46
|
-
animation?: "auto" | "always" | "never";
|
|
46
|
+
animation?: "auto" | "always" | "never" | undefined;
|
|
47
47
|
}
|
|
48
48
|
export interface SkeletonProviderProps extends SkeletonProviderDefaults {
|
|
49
49
|
children: ReactNode;
|
|
@@ -14,25 +14,25 @@ export interface SlideToConfirmProps {
|
|
|
14
14
|
/** Fired once the handle is dragged past the threshold. */
|
|
15
15
|
onConfirm: () => void;
|
|
16
16
|
/** Resting label (centred). Default `labels.slide`. */
|
|
17
|
-
label?: string;
|
|
18
|
-
tone?: SlideToConfirmTone;
|
|
19
|
-
size?: SlideToConfirmSize;
|
|
20
|
-
disabled?: boolean;
|
|
17
|
+
label?: string | undefined;
|
|
18
|
+
tone?: SlideToConfirmTone | undefined;
|
|
19
|
+
size?: SlideToConfirmSize | undefined;
|
|
20
|
+
disabled?: boolean | undefined;
|
|
21
21
|
/** Fraction of the track (0–1) the handle must cross to confirm. Default 0.9. */
|
|
22
|
-
threshold?: number;
|
|
22
|
+
threshold?: number | undefined;
|
|
23
23
|
/** Auto-reset this many ms after confirm, or `false` to stay confirmed. Default `false`. */
|
|
24
|
-
resetAfter?: number | false;
|
|
24
|
+
resetAfter?: number | false | undefined;
|
|
25
25
|
/** Haptic on confirm. Pass `false` to disable or a `HapticType` to override. Default `'notificationSuccess'`. */
|
|
26
|
-
haptic?: HapticType | false;
|
|
26
|
+
haptic?: HapticType | false | undefined;
|
|
27
27
|
/** Handle glyph. Defaults to a right-chevron. */
|
|
28
|
-
icon?: React.ReactNode;
|
|
28
|
+
icon?: React.ReactNode | undefined;
|
|
29
29
|
/** Replaces the resting, confirmed and action texts. */
|
|
30
|
-
labels?: Partial<SlideToConfirmLabels
|
|
31
|
-
style?: StyleProp<ViewStyle
|
|
32
|
-
trackStyle?: StyleProp<ViewStyle
|
|
33
|
-
handleStyle?: StyleProp<ViewStyle
|
|
34
|
-
labelStyle?: StyleProp<TextStyle
|
|
35
|
-
testID?: string;
|
|
30
|
+
labels?: Partial<SlideToConfirmLabels> | undefined;
|
|
31
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
32
|
+
trackStyle?: StyleProp<ViewStyle> | undefined;
|
|
33
|
+
handleStyle?: StyleProp<ViewStyle> | undefined;
|
|
34
|
+
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
35
|
+
testID?: string | undefined;
|
|
36
36
|
}
|
|
37
37
|
declare const SlideToConfirm: React.ForwardRefExoticComponent<SlideToConfirmProps & React.RefAttributes<HostInstance>>;
|
|
38
38
|
export { SlideToConfirm };
|
|
@@ -16,23 +16,23 @@ export type SliderSize = Extract<Size, "sm" | "md" | "lg">;
|
|
|
16
16
|
*/
|
|
17
17
|
export type SliderVariant = "default" | "inset" | "minimal" | "bar";
|
|
18
18
|
interface SliderCommonProps {
|
|
19
|
-
min?: number;
|
|
20
|
-
max?: number;
|
|
21
|
-
step?: number;
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
tone?: SliderTone;
|
|
24
|
-
size?: SliderSize;
|
|
19
|
+
min?: number | undefined;
|
|
20
|
+
max?: number | undefined;
|
|
21
|
+
step?: number | undefined;
|
|
22
|
+
disabled?: boolean | undefined;
|
|
23
|
+
tone?: SliderTone | undefined;
|
|
24
|
+
size?: SliderSize | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* Visual style. Default `'default'`. The library's per-size track-height and
|
|
27
27
|
* thumb-diameter tokens size the `default` variant only: the other variants
|
|
28
28
|
* carry their own proportions, which a single pair of numbers would break.
|
|
29
29
|
*/
|
|
30
|
-
variant?: SliderVariant;
|
|
30
|
+
variant?: SliderVariant | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* A value bubble above the thumb. `true` shows it while the thumb is being
|
|
33
33
|
* dragged; `'always'` keeps it up. Default `false`.
|
|
34
34
|
*/
|
|
35
|
-
showLabel?: boolean | "always";
|
|
35
|
+
showLabel?: boolean | "always" | undefined;
|
|
36
36
|
/**
|
|
37
37
|
* Keep the thumb on the step positions while it is dragged. Default
|
|
38
38
|
* `false`: the thumb follows the finger and settles on the nearest step
|
|
@@ -40,14 +40,14 @@ interface SliderCommonProps {
|
|
|
40
40
|
* thumb pinned to the steps stands still for a few frames and then hops a
|
|
41
41
|
* step, which reads as a stutter on a fine step and a jerk on a coarse one.
|
|
42
42
|
*/
|
|
43
|
-
snapThumb?: boolean;
|
|
44
|
-
formatLabel?: (value: number) => string;
|
|
43
|
+
snapThumb?: boolean | undefined;
|
|
44
|
+
formatLabel?: ((value: number) => string) | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* Draws the bubble's content in place of `formatLabel`'s text, for a
|
|
47
47
|
* counting number or any richer node. Its container is the bubble itself.
|
|
48
48
|
*/
|
|
49
|
-
renderLabel?: (value: number) => React.ReactNode;
|
|
50
|
-
accessibilityLabel?: string;
|
|
49
|
+
renderLabel?: ((value: number) => React.ReactNode) | undefined;
|
|
50
|
+
accessibilityLabel?: string | undefined;
|
|
51
51
|
/**
|
|
52
52
|
* Haptic feedback: once when a drag starts and once when it arrives at
|
|
53
53
|
* `min` or `max`, plus every accessibility step and track tap. Never on
|
|
@@ -55,34 +55,34 @@ interface SliderCommonProps {
|
|
|
55
55
|
* hundred late, bunched pulses under the finger feel like the thumb
|
|
56
56
|
* catching. Pass false to disable; pass a HapticType to override.
|
|
57
57
|
*/
|
|
58
|
-
haptic?: HapticType | false;
|
|
58
|
+
haptic?: HapticType | false | undefined;
|
|
59
59
|
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
60
|
-
style?: StyleProp<ViewStyle
|
|
60
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
61
61
|
/** Alias of style, applied before it on the same node. Use style. */
|
|
62
|
-
containerStyle?: StyleProp<ViewStyle
|
|
63
|
-
trackStyle?: StyleProp<ViewStyle
|
|
64
|
-
fillStyle?: StyleProp<ViewStyle
|
|
65
|
-
thumbStyle?: StyleProp<ViewStyle
|
|
66
|
-
labelStyle?: StyleProp<TextStyle
|
|
62
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
63
|
+
trackStyle?: StyleProp<ViewStyle> | undefined;
|
|
64
|
+
fillStyle?: StyleProp<ViewStyle> | undefined;
|
|
65
|
+
thumbStyle?: StyleProp<ViewStyle> | undefined;
|
|
66
|
+
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
67
67
|
/** Override the thumb press-scale target (default 1.1). */
|
|
68
|
-
thumbPressScale?: number;
|
|
68
|
+
thumbPressScale?: number | undefined;
|
|
69
69
|
/** Override the label fade duration (default theme.motion.duration.fast). */
|
|
70
|
-
labelShowDuration?: number;
|
|
70
|
+
labelShowDuration?: number | undefined;
|
|
71
71
|
/** Override the label final opacity when visible (default 1). */
|
|
72
|
-
labelOpacity?: number;
|
|
73
|
-
testID?: string;
|
|
72
|
+
labelOpacity?: number | undefined;
|
|
73
|
+
testID?: string | undefined;
|
|
74
74
|
}
|
|
75
75
|
export interface SliderSingleProps extends SliderCommonProps {
|
|
76
|
-
range?: false;
|
|
77
|
-
value?: number;
|
|
78
|
-
defaultValue?: number;
|
|
79
|
-
onChange?: (value: number) => void;
|
|
76
|
+
range?: false | undefined;
|
|
77
|
+
value?: number | undefined;
|
|
78
|
+
defaultValue?: number | undefined;
|
|
79
|
+
onChange?: ((value: number) => void) | undefined;
|
|
80
80
|
}
|
|
81
81
|
export interface SliderRangeProps extends SliderCommonProps {
|
|
82
82
|
range: true;
|
|
83
|
-
value?: [number, number];
|
|
84
|
-
defaultValue?: [number, number];
|
|
85
|
-
onChange?: (value: [number, number]) => void;
|
|
83
|
+
value?: [number, number] | undefined;
|
|
84
|
+
defaultValue?: [number, number] | undefined;
|
|
85
|
+
onChange?: ((value: [number, number]) => void) | undefined;
|
|
86
86
|
}
|
|
87
87
|
export type SliderProps = SliderSingleProps | SliderRangeProps;
|
|
88
88
|
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HostInstance>>;
|
|
@@ -17,16 +17,16 @@ export interface CountingTextProps {
|
|
|
17
17
|
/** Turns the (rounded) shown value into text. */
|
|
18
18
|
format: (value: number) => string;
|
|
19
19
|
/** Decimals the shown value is rounded to before formatting, so a step of 1 never shows `70.5` mid-count. */
|
|
20
|
-
decimals?: number;
|
|
20
|
+
decimals?: number | undefined;
|
|
21
21
|
/** Length of the count in ms. `0` jumps. */
|
|
22
22
|
duration: number;
|
|
23
23
|
/**
|
|
24
24
|
* When this changes the number jumps instead of counting: a unit change
|
|
25
25
|
* (Lakh to Crore) would otherwise read `99.5` sliding to `1.0`.
|
|
26
26
|
*/
|
|
27
|
-
jumpKey?: string;
|
|
28
|
-
style?: StyleProp<TextStyle
|
|
29
|
-
testID?: string;
|
|
27
|
+
jumpKey?: string | undefined;
|
|
28
|
+
style?: StyleProp<TextStyle> | undefined;
|
|
29
|
+
testID?: string | undefined;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* A number that counts from its last shown value to the new one. It lives in
|
|
@@ -41,7 +41,7 @@ export interface UseValueDraftOptions {
|
|
|
41
41
|
/** Text of the box when it is not being edited. */
|
|
42
42
|
format: (value: number) => string;
|
|
43
43
|
/** Turns the box text into a number; `null` for nothing typed yet. */
|
|
44
|
-
parse?: (text: string) => number | null;
|
|
44
|
+
parse?: ((text: string) => number | null) | undefined;
|
|
45
45
|
/** Receives the clamped value on every keystroke that parses, and the snapped one on blur. */
|
|
46
46
|
onChange: (value: number) => void;
|
|
47
47
|
}
|
|
@@ -68,16 +68,16 @@ export interface RollingTextProps {
|
|
|
68
68
|
* `up` for a value that grew: the old character leaves upward and the new
|
|
69
69
|
* one rises in from below, like an odometer. `down` reverses it.
|
|
70
70
|
*/
|
|
71
|
-
direction?: RollDirection;
|
|
71
|
+
direction?: RollDirection | undefined;
|
|
72
72
|
/** Length of one roll in ms. `0` swaps in place. */
|
|
73
73
|
duration: number;
|
|
74
74
|
/**
|
|
75
75
|
* `true` rolls each character on its own (digits). `false` treats the
|
|
76
76
|
* whole text as one piece that crossfades (a unit word).
|
|
77
77
|
*/
|
|
78
|
-
perCharacter?: boolean;
|
|
79
|
-
style?: StyleProp<TextStyle
|
|
80
|
-
testID?: string;
|
|
78
|
+
perCharacter?: boolean | undefined;
|
|
79
|
+
style?: StyleProp<TextStyle> | undefined;
|
|
80
|
+
testID?: string | undefined;
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Text whose characters roll vertically to their new values, the way a
|
|
@@ -15,80 +15,80 @@ export interface SliderFieldLabels {
|
|
|
15
15
|
export declare const DEFAULT_SLIDER_FIELD_LABELS: Readonly<SliderFieldLabels>;
|
|
16
16
|
interface SliderFieldCommonProps {
|
|
17
17
|
/** Field label above the slider. */
|
|
18
|
-
label?: string;
|
|
18
|
+
label?: string | undefined;
|
|
19
19
|
/** Muted text after the label, such as `(%)`. */
|
|
20
|
-
unit?: string;
|
|
20
|
+
unit?: string | undefined;
|
|
21
21
|
/** Opens in a tooltip from an info icon after the label. */
|
|
22
|
-
info?: string;
|
|
22
|
+
info?: string | undefined;
|
|
23
23
|
/** Appends the required marker to the label. */
|
|
24
|
-
required?: boolean;
|
|
25
|
-
helperText?: string;
|
|
24
|
+
required?: boolean | undefined;
|
|
25
|
+
helperText?: string | undefined;
|
|
26
26
|
/**
|
|
27
27
|
* A string shows in place of `helperText`, in the error colour; `true` shows the error state without a
|
|
28
28
|
* message. The value box turns red with an icon either way.
|
|
29
29
|
*/
|
|
30
|
-
error?: string | boolean;
|
|
31
|
-
min?: number;
|
|
32
|
-
max?: number;
|
|
33
|
-
step?: number;
|
|
34
|
-
disabled?: boolean;
|
|
35
|
-
tone?: SliderTone;
|
|
36
|
-
size?: SliderSize;
|
|
30
|
+
error?: string | boolean | undefined;
|
|
31
|
+
min?: number | undefined;
|
|
32
|
+
max?: number | undefined;
|
|
33
|
+
step?: number | undefined;
|
|
34
|
+
disabled?: boolean | undefined;
|
|
35
|
+
tone?: SliderTone | undefined;
|
|
36
|
+
size?: SliderSize | undefined;
|
|
37
37
|
/** The Slider's look. Default `'default'`. */
|
|
38
|
-
variant?: SliderVariant;
|
|
39
|
-
haptic?: HapticType | false;
|
|
38
|
+
variant?: SliderVariant | undefined;
|
|
39
|
+
haptic?: HapticType | false | undefined;
|
|
40
40
|
/** A value bubble that stays up above each thumb and counts to the new value. Default `true`. */
|
|
41
|
-
showBubble?: boolean;
|
|
41
|
+
showBubble?: boolean | undefined;
|
|
42
42
|
/** The `min` and `max` values at the ends of the track. Default `true`. */
|
|
43
|
-
showBounds?: boolean;
|
|
43
|
+
showBounds?: boolean | undefined;
|
|
44
44
|
/**
|
|
45
45
|
* An editable value box: to the right of the track, or one at each end in
|
|
46
46
|
* `range` mode (where they replace the bounds). Default `false`.
|
|
47
47
|
*/
|
|
48
|
-
showInput?: boolean;
|
|
48
|
+
showInput?: boolean | undefined;
|
|
49
49
|
/** Minus and plus buttons at the ends of the track, stepping by `step`. Single mode only. Default `false`. */
|
|
50
|
-
showStepper?: boolean;
|
|
50
|
+
showStepper?: boolean | undefined;
|
|
51
51
|
/** Icon at the start of the row, outside the bounds. */
|
|
52
|
-
leftIcon?: SlotIcon;
|
|
52
|
+
leftIcon?: SlotIcon | undefined;
|
|
53
53
|
/** Icon at the end of the row, outside the bounds. */
|
|
54
|
-
rightIcon?: SlotIcon;
|
|
54
|
+
rightIcon?: SlotIcon | undefined;
|
|
55
55
|
/** Replaces the formatted `min` at the start of the track. */
|
|
56
|
-
startLabel?: string;
|
|
56
|
+
startLabel?: string | undefined;
|
|
57
57
|
/** Replaces the formatted `max` at the end of the track. */
|
|
58
|
-
endLabel?: string;
|
|
58
|
+
endLabel?: string | undefined;
|
|
59
59
|
/** One formatter for the bubble, the bounds and the box: `70%`, `$2,500`, `Very Bright`. */
|
|
60
|
-
formatValue?: (value: number) => string;
|
|
60
|
+
formatValue?: ((value: number) => string) | undefined;
|
|
61
61
|
/** Turns the box text back into a number; `null` for nothing typed yet. Default: digits and one point. */
|
|
62
|
-
parseInput?: (text: string) => number | null;
|
|
62
|
+
parseInput?: ((text: string) => number | null) | undefined;
|
|
63
63
|
/**
|
|
64
64
|
* Length in ms of the bubble's count. Default `theme.motion.duration.fast`,
|
|
65
65
|
* which the ThemeProvider collapses to 0 under reduced motion.
|
|
66
66
|
*/
|
|
67
|
-
animationDuration?: number;
|
|
67
|
+
animationDuration?: number | undefined;
|
|
68
68
|
/** Width of each value box. Default 72. */
|
|
69
|
-
inputWidth?: number;
|
|
69
|
+
inputWidth?: number | undefined;
|
|
70
70
|
/** Replaces the spoken names of the stepper buttons and value boxes. */
|
|
71
|
-
labels?: Partial<SliderFieldLabels
|
|
71
|
+
labels?: Partial<SliderFieldLabels> | undefined;
|
|
72
72
|
/** Read out for the slider. Defaults to `label`. */
|
|
73
|
-
accessibilityLabel?: string;
|
|
74
|
-
style?: StyleProp<ViewStyle
|
|
75
|
-
labelStyle?: StyleProp<TextStyle
|
|
76
|
-
boundStyle?: StyleProp<TextStyle
|
|
77
|
-
sliderStyle?: StyleProp<ViewStyle
|
|
78
|
-
inputStyle?: StyleProp<ViewStyle
|
|
79
|
-
testID?: string;
|
|
73
|
+
accessibilityLabel?: string | undefined;
|
|
74
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
75
|
+
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
76
|
+
boundStyle?: StyleProp<TextStyle> | undefined;
|
|
77
|
+
sliderStyle?: StyleProp<ViewStyle> | undefined;
|
|
78
|
+
inputStyle?: StyleProp<ViewStyle> | undefined;
|
|
79
|
+
testID?: string | undefined;
|
|
80
80
|
}
|
|
81
81
|
interface SliderFieldSingleProps extends SliderFieldCommonProps {
|
|
82
|
-
range?: false;
|
|
83
|
-
value?: number;
|
|
84
|
-
defaultValue?: number;
|
|
85
|
-
onChange?: (value: number) => void;
|
|
82
|
+
range?: false | undefined;
|
|
83
|
+
value?: number | undefined;
|
|
84
|
+
defaultValue?: number | undefined;
|
|
85
|
+
onChange?: ((value: number) => void) | undefined;
|
|
86
86
|
}
|
|
87
87
|
interface SliderFieldRangeProps extends SliderFieldCommonProps {
|
|
88
88
|
range: true;
|
|
89
|
-
value?: [number, number];
|
|
90
|
-
defaultValue?: [number, number];
|
|
91
|
-
onChange?: (value: [number, number]) => void;
|
|
89
|
+
value?: [number, number] | undefined;
|
|
90
|
+
defaultValue?: [number, number] | undefined;
|
|
91
|
+
onChange?: ((value: [number, number]) => void) | undefined;
|
|
92
92
|
}
|
|
93
93
|
export type SliderFieldProps = SliderFieldSingleProps | SliderFieldRangeProps;
|
|
94
94
|
declare const SliderField: React.ForwardRefExoticComponent<SliderFieldProps & React.RefAttributes<HostInstance>>;
|
|
@@ -30,11 +30,11 @@ export interface SortableListProps<T> {
|
|
|
30
30
|
/** Called with the keys in their new order after a drop or a "Move up" or "Move down" action. */
|
|
31
31
|
onReorder: (keys: string[]) => void;
|
|
32
32
|
/** Only the drag handle lifts a row; by default a long press on the row does. */
|
|
33
|
-
handle?: boolean;
|
|
34
|
-
disabled?: boolean;
|
|
35
|
-
accessibilityLabel?: string;
|
|
36
|
-
labels?: Partial<SortableListLabels
|
|
37
|
-
testID?: string;
|
|
33
|
+
handle?: boolean | undefined;
|
|
34
|
+
disabled?: boolean | undefined;
|
|
35
|
+
accessibilityLabel?: string | undefined;
|
|
36
|
+
labels?: Partial<SortableListLabels> | undefined;
|
|
37
|
+
testID?: string | undefined;
|
|
38
38
|
}
|
|
39
39
|
export declare function moveItem<T>(items: readonly T[], from: number, to: number): T[];
|
|
40
40
|
/** Top edge of row `index` when the rows stack at their own heights. */
|
|
@@ -20,29 +20,29 @@ export interface SparklineProps {
|
|
|
20
20
|
/** The series, oldest first. Values that are not finite numbers are dropped. */
|
|
21
21
|
data: ReadonlyArray<number>;
|
|
22
22
|
/** Colour of the line. Default `'primary'`. Drawn in the tone's text ink so it holds 3:1 on the page in light and dark. */
|
|
23
|
-
tone?: SparklineTone;
|
|
23
|
+
tone?: SparklineTone | undefined;
|
|
24
24
|
/** Line colour override; wins over `tone`. */
|
|
25
|
-
color?: string;
|
|
25
|
+
color?: string | undefined;
|
|
26
26
|
/** Tint the area under the line. Default `false`. */
|
|
27
|
-
fill?: boolean;
|
|
27
|
+
fill?: boolean | undefined;
|
|
28
28
|
/** Mark the last point with a dot. Default `true`. */
|
|
29
|
-
highlightLast?: boolean;
|
|
29
|
+
highlightLast?: boolean | undefined;
|
|
30
30
|
/** Height in points. Default `32`. */
|
|
31
|
-
height?: number;
|
|
31
|
+
height?: number | undefined;
|
|
32
32
|
/** Width in points. Default: the full width of a column parent; in a row, give a width or `flex: 1` through `style`. */
|
|
33
|
-
width?: number;
|
|
33
|
+
width?: number | undefined;
|
|
34
34
|
/** Line thickness in points. Default `2`. */
|
|
35
|
-
strokeWidth?: number;
|
|
35
|
+
strokeWidth?: number | undefined;
|
|
36
36
|
/** What the series is, read first by a screen reader: "Signups, last 30 days". */
|
|
37
|
-
label?: string;
|
|
37
|
+
label?: string | undefined;
|
|
38
38
|
/** Writes a value into the default accessibility label. Default: mobile-core formatNumber, which follows the configured locale. */
|
|
39
|
-
formatLabel?: (value: number) => string;
|
|
39
|
+
formatLabel?: ((value: number) => string) | undefined;
|
|
40
40
|
/** Replaces the whole accessibility label. */
|
|
41
|
-
accessibilityLabel?: string;
|
|
41
|
+
accessibilityLabel?: string | undefined;
|
|
42
42
|
/** Overrides the words of the default accessibility label; omitted keys keep the defaults. */
|
|
43
|
-
labels?: Partial<SparklineLabels
|
|
44
|
-
style?: StyleProp<ViewStyle
|
|
45
|
-
testID?: string;
|
|
43
|
+
labels?: Partial<SparklineLabels> | undefined;
|
|
44
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
45
|
+
testID?: string | undefined;
|
|
46
46
|
}
|
|
47
47
|
declare const Sparkline: ForwardRefExoticComponent<SparklineProps & RefAttributes<HostInstance>>;
|
|
48
48
|
export { Sparkline };
|