@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
|
@@ -25,51 +25,51 @@ export interface PickerTriggerLabels {
|
|
|
25
25
|
export declare const DEFAULT_PICKER_TRIGGER_LABELS: Readonly<PickerTriggerLabels>;
|
|
26
26
|
export interface PickerTriggerProps {
|
|
27
27
|
/** The currently selected value rendered as the trigger's primary text. */
|
|
28
|
-
value?: string;
|
|
28
|
+
value?: string | undefined;
|
|
29
29
|
/** Shown when `value` is empty. Falls back to "Select…". */
|
|
30
|
-
placeholder?: string;
|
|
30
|
+
placeholder?: string | undefined;
|
|
31
31
|
/** Static label rendered above the field. A string, or a node (a node needs an explicit `accessibilityLabel`). */
|
|
32
|
-
label?: React.ReactNode;
|
|
32
|
+
label?: React.ReactNode | undefined;
|
|
33
33
|
/** Drawn beside the label, right after it (a glossary info button, say); outside the trigger, so pressing it does not open the picker. */
|
|
34
|
-
help?: React.ReactNode;
|
|
34
|
+
help?: React.ReactNode | undefined;
|
|
35
35
|
/** Helper text shown below the field. Hidden when `error` is set. A string or a node. */
|
|
36
|
-
helperText?: React.ReactNode;
|
|
36
|
+
helperText?: React.ReactNode | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* Error message shown below the field (and red-borders the field). A string or a node; `true`
|
|
39
39
|
* shows the error state without a message.
|
|
40
40
|
*/
|
|
41
|
-
error?: React.ReactNode;
|
|
41
|
+
error?: React.ReactNode | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* Appends the required marker to the label. Marker text comes from
|
|
44
44
|
* `theme.settings.components.field.requiredMarker` (default `'*'`).
|
|
45
45
|
*/
|
|
46
|
-
required?: boolean;
|
|
46
|
+
required?: boolean | undefined;
|
|
47
47
|
/** Tap handler — typically opens the modal picker. */
|
|
48
48
|
onPress: () => void;
|
|
49
49
|
/** Render a clear (×) affordance when `value` is non-empty. */
|
|
50
|
-
clearable?: boolean;
|
|
50
|
+
clearable?: boolean | undefined;
|
|
51
51
|
/** Called when the clear affordance is pressed. */
|
|
52
|
-
onClear?: () => void;
|
|
52
|
+
onClear?: (() => void) | undefined;
|
|
53
53
|
/** Left icon slot (e.g. calendar / clock). */
|
|
54
|
-
leftIcon?: React.ReactNode;
|
|
54
|
+
leftIcon?: React.ReactNode | undefined;
|
|
55
55
|
/** Trailing slot — defaults to a chevron when unset. Pass `null` to suppress. */
|
|
56
|
-
trailing?: React.ReactNode;
|
|
57
|
-
disabled?: boolean;
|
|
58
|
-
size?: PickerTriggerSize;
|
|
59
|
-
variant?: PickerTriggerVariant;
|
|
60
|
-
style?: StyleProp<ViewStyle
|
|
61
|
-
triggerStyle?: StyleProp<ViewStyle
|
|
62
|
-
valueStyle?: StyleProp<TextStyle
|
|
63
|
-
labelStyle?: StyleProp<TextStyle
|
|
64
|
-
messageStyle?: StyleProp<TextStyle
|
|
65
|
-
accessibilityLabel?: string;
|
|
66
|
-
labels?: Partial<PickerTriggerLabels
|
|
67
|
-
testID?: string;
|
|
56
|
+
trailing?: React.ReactNode | undefined;
|
|
57
|
+
disabled?: boolean | undefined;
|
|
58
|
+
size?: PickerTriggerSize | undefined;
|
|
59
|
+
variant?: PickerTriggerVariant | undefined;
|
|
60
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
61
|
+
triggerStyle?: StyleProp<ViewStyle> | undefined;
|
|
62
|
+
valueStyle?: StyleProp<TextStyle> | undefined;
|
|
63
|
+
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
64
|
+
messageStyle?: StyleProp<TextStyle> | undefined;
|
|
65
|
+
accessibilityLabel?: string | undefined;
|
|
66
|
+
labels?: Partial<PickerTriggerLabels> | undefined;
|
|
67
|
+
testID?: string | undefined;
|
|
68
68
|
}
|
|
69
69
|
/** The PickerTrigger props a picker forwards to its built-in trigger field. */
|
|
70
70
|
export type PickerTriggerPassThroughProps = Pick<PickerTriggerProps, "label" | "help" | "placeholder" | "helperText" | "error" | "required" | "disabled" | "size" | "variant" | "clearable" | "onClear" | "leftIcon" | "trailing" | "triggerStyle" | "valueStyle" | "labelStyle" | "messageStyle" | "accessibilityLabel"> & {
|
|
71
71
|
/** Copy for the trigger field (placeholder, selection, noSelection, clear). Named apart from labels, which is the copy of the picker sheet. */
|
|
72
|
-
triggerLabels?: Partial<PickerTriggerLabels
|
|
72
|
+
triggerLabels?: Partial<PickerTriggerLabels> | undefined;
|
|
73
73
|
};
|
|
74
74
|
declare const PickerTrigger: React.ForwardRefExoticComponent<PickerTriggerProps & React.RefAttributes<(props: Omit<import("react-native").ViewProps, "ref"> & {
|
|
75
75
|
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
@@ -32,58 +32,58 @@ export interface ProfileCompletionProps {
|
|
|
32
32
|
/** The profile's name. */
|
|
33
33
|
title: string;
|
|
34
34
|
/** A second line under the title: a type, a role, a tenure. Drawn small and uppercase. */
|
|
35
|
-
subtitle?: string;
|
|
35
|
+
subtitle?: string | undefined;
|
|
36
36
|
/** A sentence under the subtitle. */
|
|
37
|
-
description?: string;
|
|
37
|
+
description?: string | undefined;
|
|
38
38
|
/** Avatar image; falls back to the title's initials. */
|
|
39
|
-
source?: ImageSourcePropType;
|
|
39
|
+
source?: ImageSourcePropType | undefined;
|
|
40
40
|
/** Custom image renderer, the Avatar's own `ImageComponent` contract. */
|
|
41
|
-
ImageComponent?: React.ComponentType<AvatarImageProps
|
|
41
|
+
ImageComponent?: React.ComponentType<AvatarImageProps> | undefined;
|
|
42
42
|
/** Avatar size: sm, md, lg or xl. Default md. The ring wraps it with `ringGap` of air. */
|
|
43
|
-
size?: ProfileCompletionSize;
|
|
43
|
+
size?: ProfileCompletionSize | undefined;
|
|
44
44
|
/**
|
|
45
45
|
* Colour scheme of the initials circle: a soft tinted fill with the tone's
|
|
46
46
|
* ink, the same recipe as the soft Button. `'neutral'` (default) is the
|
|
47
47
|
* quiet grey on primary text, so the ring carries the colour. The
|
|
48
48
|
* Avatar's per-name palette colour is not used here.
|
|
49
49
|
*/
|
|
50
|
-
avatarTone?: ProfileCompletionAvatarTone;
|
|
50
|
+
avatarTone?: ProfileCompletionAvatarTone | undefined;
|
|
51
51
|
/** Fill behind the initials; wins over `avatarTone`. */
|
|
52
|
-
avatarBackgroundColor?: string;
|
|
52
|
+
avatarBackgroundColor?: string | undefined;
|
|
53
53
|
/** Colour of the initials; wins over `avatarTone`. */
|
|
54
|
-
avatarColor?: string;
|
|
54
|
+
avatarColor?: string | undefined;
|
|
55
55
|
/** Ring stroke width. Default `3`. */
|
|
56
|
-
ringWidth?: number;
|
|
56
|
+
ringWidth?: number | undefined;
|
|
57
57
|
/** Air between the avatar's edge and the ring's inner edge. Default `1`. */
|
|
58
|
-
ringGap?: number;
|
|
58
|
+
ringGap?: number | undefined;
|
|
59
59
|
/**
|
|
60
60
|
* `'banded'` (default) colours the ring by progress: `danger` below a
|
|
61
61
|
* third, `warning` to two thirds, `success` from there. `'single'` draws it in one
|
|
62
62
|
* colour, `tone` (default `'primary'`), at every progress.
|
|
63
63
|
*/
|
|
64
|
-
ringVariant?: ProfileCompletionRingVariant;
|
|
64
|
+
ringVariant?: ProfileCompletionRingVariant | undefined;
|
|
65
65
|
/** A fixed ring colour; also turns the bands off. Default `'primary'` in the single variant. */
|
|
66
|
-
tone?: Tone;
|
|
66
|
+
tone?: Tone | undefined;
|
|
67
67
|
/** Explicit ring colour; wins over `tone` and the progress bands. */
|
|
68
|
-
ringColor?: string;
|
|
68
|
+
ringColor?: string | undefined;
|
|
69
69
|
/** Sweep the ring to a new progress. Default `true`. */
|
|
70
|
-
animated?: boolean;
|
|
70
|
+
animated?: boolean | undefined;
|
|
71
71
|
/**
|
|
72
72
|
* At 100%, a round tick badge on the ring's bottom right, in the ring's own
|
|
73
73
|
* colour: green in the banded variant, `tone` or `ringColor` otherwise.
|
|
74
74
|
* Default `true`; `false` leaves the full ring on its own.
|
|
75
75
|
*/
|
|
76
|
-
showCompleteBadge?: boolean;
|
|
76
|
+
showCompleteBadge?: boolean | undefined;
|
|
77
77
|
/** Content at the right edge: an Edit link, a percent badge. Stays its own accessibility element. */
|
|
78
|
-
trailing?: React.ReactNode;
|
|
78
|
+
trailing?: React.ReactNode | undefined;
|
|
79
79
|
/** Spoken text overrides; each key falls back to the English default. */
|
|
80
|
-
labels?: Partial<ProfileCompletionLabels
|
|
81
|
-
accessibilityLabel?: string;
|
|
82
|
-
style?: StyleProp<ViewStyle
|
|
83
|
-
titleStyle?: StyleProp<TextStyle
|
|
84
|
-
subtitleStyle?: StyleProp<TextStyle
|
|
85
|
-
descriptionStyle?: StyleProp<TextStyle
|
|
86
|
-
testID?: string;
|
|
80
|
+
labels?: Partial<ProfileCompletionLabels> | undefined;
|
|
81
|
+
accessibilityLabel?: string | undefined;
|
|
82
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
83
|
+
titleStyle?: StyleProp<TextStyle> | undefined;
|
|
84
|
+
subtitleStyle?: StyleProp<TextStyle> | undefined;
|
|
85
|
+
descriptionStyle?: StyleProp<TextStyle> | undefined;
|
|
86
|
+
testID?: string | undefined;
|
|
87
87
|
}
|
|
88
88
|
declare const ProfileCompletion: React.ForwardRefExoticComponent<ProfileCompletionProps & React.RefAttributes<HostInstance>>;
|
|
89
89
|
export { ProfileCompletion };
|
|
@@ -49,42 +49,42 @@ export interface ProfilePickerLabels {
|
|
|
49
49
|
export declare const DEFAULT_PROFILE_PICKER_LABELS: Readonly<ProfilePickerLabels>;
|
|
50
50
|
export interface ProfilePickerProps {
|
|
51
51
|
/** Current photo URL or local URI, or null for none. */
|
|
52
|
-
value?: string | null;
|
|
52
|
+
value?: string | null | undefined;
|
|
53
53
|
/** Person's name: drives the initials shown when there is no photo. */
|
|
54
|
-
name?: string;
|
|
54
|
+
name?: string | undefined;
|
|
55
55
|
/** Native picking adapters (same shape as FilePicker's). One launches directly; several open a chooser. */
|
|
56
56
|
sources: ReadonlyArray<FilePickerSource>;
|
|
57
57
|
/** Receives the validated pick. Upload it and pass the resulting URL back as `value`. */
|
|
58
|
-
onPick?: (file: PickedFile) => void;
|
|
58
|
+
onPick?: ((file: PickedFile) => void) | undefined;
|
|
59
59
|
/**
|
|
60
60
|
* Clears the photo. Removal is a row at the end of the sheet: a just-picked
|
|
61
61
|
* photo always offers it; an existing `value` offers it only when this is
|
|
62
62
|
* wired (the app owns removal). While it is offered, tapping the photo opens
|
|
63
63
|
* the sheet even with a single source.
|
|
64
64
|
*/
|
|
65
|
-
onRemove?: () => void;
|
|
65
|
+
onRemove?: (() => void) | undefined;
|
|
66
66
|
/** Spinner over the photo and no interaction, while the pick uploads. */
|
|
67
|
-
loading?: boolean;
|
|
68
|
-
disabled?: boolean;
|
|
67
|
+
loading?: boolean | undefined;
|
|
68
|
+
disabled?: boolean | undefined;
|
|
69
69
|
/** Accepted mime globs. Default `['image/*']`. A pick with no type passes. */
|
|
70
|
-
accept?: ReadonlyArray<string
|
|
70
|
+
accept?: ReadonlyArray<string> | undefined;
|
|
71
71
|
/** Size cap in MB, enforced when the source reports a size. */
|
|
72
|
-
maxSizeMB?: number;
|
|
72
|
+
maxSizeMB?: number | undefined;
|
|
73
73
|
/** A preset: sm 72, md 120, lg 160. Default 'md'. */
|
|
74
|
-
size?: ProfilePickerSize;
|
|
75
|
-
shape?: ProfilePickerShape;
|
|
74
|
+
size?: ProfilePickerSize | undefined;
|
|
75
|
+
shape?: ProfilePickerShape | undefined;
|
|
76
76
|
/** Badge icon at the bottom-right: a name, or `{ name, variant }` for another Iconsax style. Default 'camera'. */
|
|
77
|
-
badgeIcon?: IconName | SlotIconRef;
|
|
77
|
+
badgeIcon?: IconName | SlotIconRef | undefined;
|
|
78
78
|
/**
|
|
79
79
|
* Theme colour of the badge. Default `theme.settings.components["profile-picker"].defaultTone`,
|
|
80
80
|
* else 'primary'.
|
|
81
81
|
*/
|
|
82
|
-
tone?: Tone;
|
|
82
|
+
tone?: Tone | undefined;
|
|
83
83
|
/**
|
|
84
84
|
* Look of the badge: `solid` (default), `soft` or `outline`. Default
|
|
85
85
|
* `theme.settings.components["profile-picker"].defaultVariant`, else 'solid'.
|
|
86
86
|
*/
|
|
87
|
-
variant?: ProfilePickerVariant;
|
|
87
|
+
variant?: ProfilePickerVariant | undefined;
|
|
88
88
|
/**
|
|
89
89
|
* Theme colour of the photo area when there is no photo: the initials disc
|
|
90
90
|
* and the empty person placeholder take a soft tint of the tone with the
|
|
@@ -92,31 +92,31 @@ export interface ProfilePickerProps {
|
|
|
92
92
|
* Avatar's per-name palette and the grey placeholder. Default
|
|
93
93
|
* `theme.settings.components["profile-picker"].defaultAvatarTone`.
|
|
94
94
|
*/
|
|
95
|
-
avatarTone?: AvatarTone;
|
|
95
|
+
avatarTone?: AvatarTone | undefined;
|
|
96
96
|
/** Fill behind the initials or the placeholder icon; wins over `avatarTone`. */
|
|
97
|
-
avatarBackgroundColor?: string;
|
|
97
|
+
avatarBackgroundColor?: string | undefined;
|
|
98
98
|
/** Colour of the initials or the placeholder icon; wins over `avatarTone`. */
|
|
99
|
-
avatarColor?: string;
|
|
100
|
-
label?: string;
|
|
101
|
-
required?: boolean;
|
|
102
|
-
helperText?: string;
|
|
99
|
+
avatarColor?: string | undefined;
|
|
100
|
+
label?: string | undefined;
|
|
101
|
+
required?: boolean | undefined;
|
|
102
|
+
helperText?: string | undefined;
|
|
103
103
|
/** App-supplied error; wins over a rejected pick's own message. */
|
|
104
|
-
error?: React.ReactNode;
|
|
105
|
-
layout?: ProfilePickerLayout;
|
|
104
|
+
error?: React.ReactNode | undefined;
|
|
105
|
+
layout?: ProfilePickerLayout | undefined;
|
|
106
106
|
/** Bold primary text beside / beneath the photo (inline and profile layouts). */
|
|
107
|
-
title?: string;
|
|
107
|
+
title?: string | undefined;
|
|
108
108
|
/** Muted secondary text beside / beneath the photo (inline and profile layouts). */
|
|
109
|
-
subtitle?: string;
|
|
109
|
+
subtitle?: string | undefined;
|
|
110
110
|
/** Renders the photo, e.g. an authenticated image loader (see Avatar). */
|
|
111
|
-
ImageComponent?: React.ComponentType<AvatarImageProps
|
|
112
|
-
labels?: Partial<ProfilePickerLabels
|
|
111
|
+
ImageComponent?: React.ComponentType<AvatarImageProps> | undefined;
|
|
112
|
+
labels?: Partial<ProfilePickerLabels> | undefined;
|
|
113
113
|
/** Haptic on an accepted pick and on remove; errors use `notificationError`. Pass false to disable. */
|
|
114
|
-
haptic?: HapticType | false;
|
|
114
|
+
haptic?: HapticType | false | undefined;
|
|
115
115
|
/** Called with the message of a rejected or failed pick. */
|
|
116
|
-
onError?: (message: string) => void;
|
|
117
|
-
accessibilityLabel?: string;
|
|
118
|
-
style?: StyleProp<ViewStyle
|
|
119
|
-
testID?: string;
|
|
116
|
+
onError?: ((message: string) => void) | undefined;
|
|
117
|
+
accessibilityLabel?: string | undefined;
|
|
118
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
119
|
+
testID?: string | undefined;
|
|
120
120
|
}
|
|
121
121
|
declare const ProfilePicker: React.ForwardRefExoticComponent<ProfilePickerProps & React.RefAttributes<HostInstance>>;
|
|
122
122
|
export { ProfilePicker };
|
|
@@ -10,36 +10,36 @@ export interface ProgressBarSegment {
|
|
|
10
10
|
/** Fraction of the full track (0–1). */
|
|
11
11
|
value: number;
|
|
12
12
|
/** Explicit colour; falls back to `tone`. */
|
|
13
|
-
color?: string;
|
|
14
|
-
tone?: Tone;
|
|
13
|
+
color?: string | undefined;
|
|
14
|
+
tone?: Tone | undefined;
|
|
15
15
|
}
|
|
16
16
|
export interface ProgressBarProps {
|
|
17
|
-
progress?: number;
|
|
17
|
+
progress?: number | undefined;
|
|
18
18
|
/** Text or node drawn above the bar. */
|
|
19
|
-
label?: ReactNode;
|
|
19
|
+
label?: ReactNode | undefined;
|
|
20
20
|
/** Shows the percent (`Math.round(progress * 100)%`) at the right of the label row. Determinate only. */
|
|
21
|
-
showPercent?: boolean;
|
|
21
|
+
showPercent?: boolean | undefined;
|
|
22
22
|
/** Text or node at the right of the label row, in place of the percent. A string is drawn like the percent. */
|
|
23
|
-
valueLabel?: ReactNode;
|
|
24
|
-
indeterminate?: boolean;
|
|
25
|
-
height?: number;
|
|
26
|
-
radius?: number;
|
|
27
|
-
tone?: Tone;
|
|
28
|
-
trackColor?: string;
|
|
29
|
-
barColor?: string;
|
|
23
|
+
valueLabel?: ReactNode | undefined;
|
|
24
|
+
indeterminate?: boolean | undefined;
|
|
25
|
+
height?: number | undefined;
|
|
26
|
+
radius?: number | undefined;
|
|
27
|
+
tone?: Tone | undefined;
|
|
28
|
+
trackColor?: string | undefined;
|
|
29
|
+
barColor?: string | undefined;
|
|
30
30
|
/** Gradient fill for the determinate bar: a GradientDefinition or a theme gradient token name. An unknown token name throws a RangeError. */
|
|
31
|
-
gradient?: GradientDefinition | string;
|
|
31
|
+
gradient?: GradientDefinition | string | undefined;
|
|
32
32
|
/** Render a multi-colour breakdown bar (usage split) instead of a single progress fill. */
|
|
33
|
-
segments?: ProgressBarSegment[];
|
|
34
|
-
animated?: boolean;
|
|
33
|
+
segments?: ProgressBarSegment[] | undefined;
|
|
34
|
+
animated?: boolean | undefined;
|
|
35
35
|
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
36
|
-
style?: StyleProp<ViewStyle
|
|
36
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
37
37
|
/** Alias of style, applied before it on the same node. Use style. */
|
|
38
|
-
containerStyle?: StyleProp<ViewStyle
|
|
39
|
-
barStyle?: StyleProp<ViewStyle
|
|
40
|
-
accessibilityLabel?: string;
|
|
41
|
-
labels?: Partial<ProgressBarLabels
|
|
42
|
-
testID?: string;
|
|
38
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
39
|
+
barStyle?: StyleProp<ViewStyle> | undefined;
|
|
40
|
+
accessibilityLabel?: string | undefined;
|
|
41
|
+
labels?: Partial<ProgressBarLabels> | undefined;
|
|
42
|
+
testID?: string | undefined;
|
|
43
43
|
}
|
|
44
44
|
declare const ProgressBar: ForwardRefExoticComponent<ProgressBarProps & RefAttributes<HostInstance>>;
|
|
45
45
|
export { ProgressBar };
|
|
@@ -15,36 +15,36 @@ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
|
15
15
|
import type { Tone } from "../../types/vocabulary.js";
|
|
16
16
|
export interface ProgressRingProps {
|
|
17
17
|
/** Fraction of the ring filled, 0 to 1, clamped. Default `0`. */
|
|
18
|
-
progress?: number;
|
|
18
|
+
progress?: number | undefined;
|
|
19
19
|
/** Outer diameter in pixels. Default `48`. */
|
|
20
|
-
size?: number;
|
|
20
|
+
size?: number | undefined;
|
|
21
21
|
/** Stroke width of the track and the fill. Default 4. */
|
|
22
|
-
strokeWidth?: number;
|
|
22
|
+
strokeWidth?: number | undefined;
|
|
23
23
|
/** Fill colour when no `ringColor` is set. Default `'primary'`. */
|
|
24
|
-
tone?: Tone;
|
|
24
|
+
tone?: Tone | undefined;
|
|
25
25
|
/** Track colour override. Default the surface-disabled colour. */
|
|
26
|
-
trackColor?: string;
|
|
26
|
+
trackColor?: string | undefined;
|
|
27
27
|
/** Fill colour override; wins over `tone`. */
|
|
28
|
-
ringColor?: string;
|
|
28
|
+
ringColor?: string | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* Colour the fill by how far it has got: `danger` below the first stop,
|
|
31
31
|
* `warning` to the second, `success` from there (stops default to a third
|
|
32
32
|
* and two thirds). The colour rides the same animated value as the arc,
|
|
33
33
|
* so it flips exactly when the sweep crosses a stop. Ignored when `ringColor` is set. Default `false`.
|
|
34
34
|
*/
|
|
35
|
-
colorByProgress?: boolean;
|
|
35
|
+
colorByProgress?: boolean | undefined;
|
|
36
36
|
/**
|
|
37
37
|
* Animate progress changes. Default `true`. A reduced-motion setting on
|
|
38
38
|
* the device snaps the ring to the new value regardless.
|
|
39
39
|
*/
|
|
40
|
-
animated?: boolean;
|
|
40
|
+
animated?: boolean | undefined;
|
|
41
41
|
/** Rounded ends on the fill arc. Default `true`. */
|
|
42
|
-
rounded?: boolean;
|
|
42
|
+
rounded?: boolean | undefined;
|
|
43
43
|
/** Content centred inside the ring. */
|
|
44
|
-
children?: React.ReactNode;
|
|
45
|
-
accessibilityLabel?: string;
|
|
46
|
-
style?: StyleProp<ViewStyle
|
|
47
|
-
testID?: string;
|
|
44
|
+
children?: React.ReactNode | undefined;
|
|
45
|
+
accessibilityLabel?: string | undefined;
|
|
46
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
47
|
+
testID?: string | undefined;
|
|
48
48
|
}
|
|
49
49
|
declare const ProgressRing: React.ForwardRefExoticComponent<ProgressRingProps & React.RefAttributes<HostInstance>>;
|
|
50
50
|
export { ProgressRing };
|
|
@@ -10,41 +10,41 @@ export interface RadioGroupContextValue {
|
|
|
10
10
|
onChange: (value: RadioValue) => void;
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
/** The group is in error: every radio draws its empty ring in the error colour. */
|
|
13
|
-
error?: boolean;
|
|
13
|
+
error?: boolean | undefined;
|
|
14
14
|
}
|
|
15
15
|
export declare const RadioGroupContext: import("react").Context<RadioGroupContextValue | null>;
|
|
16
16
|
export declare const useRadioGroup: () => RadioGroupContextValue | null;
|
|
17
17
|
export interface RadioProps extends Omit<PressableProps, "style" | "children" | "onPress"> {
|
|
18
18
|
value: RadioValue;
|
|
19
|
-
selected?: boolean;
|
|
20
|
-
onChange?: (value: RadioValue) => void;
|
|
21
|
-
disabled?: boolean;
|
|
19
|
+
selected?: boolean | undefined;
|
|
20
|
+
onChange?: ((value: RadioValue) => void) | undefined;
|
|
21
|
+
disabled?: boolean | undefined;
|
|
22
22
|
/**
|
|
23
23
|
* A string, or a node for a symbol with a subscript. A node label needs an
|
|
24
24
|
* explicit `accessibilityLabel` (the radio's screen-reader name).
|
|
25
25
|
*/
|
|
26
|
-
label?: ReactNode;
|
|
26
|
+
label?: ReactNode | undefined;
|
|
27
27
|
/** A muted hint directly under the label. It is the accessibility hint when set. */
|
|
28
|
-
helperText?: string;
|
|
28
|
+
helperText?: string | undefined;
|
|
29
29
|
/** Secondary line under the helper text. */
|
|
30
|
-
description?: string;
|
|
30
|
+
description?: string | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* Error line under the label, helper text and description; also draws the empty ring in the error colour.
|
|
33
33
|
* `true` shows the error state without a message.
|
|
34
34
|
*/
|
|
35
|
-
error?: string | boolean;
|
|
36
|
-
size?: RadioSize;
|
|
37
|
-
tone?: RadioTone;
|
|
38
|
-
accessibilityLabel?: string;
|
|
39
|
-
haptic?: HapticType | false;
|
|
35
|
+
error?: string | boolean | undefined;
|
|
36
|
+
size?: RadioSize | undefined;
|
|
37
|
+
tone?: RadioTone | undefined;
|
|
38
|
+
accessibilityLabel?: string | undefined;
|
|
39
|
+
haptic?: HapticType | false | undefined;
|
|
40
40
|
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
41
|
-
style?: StyleProp<ViewStyle
|
|
41
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
42
42
|
/** Alias of style, applied before it on the same node. Use style. */
|
|
43
|
-
containerStyle?: StyleProp<ViewStyle
|
|
44
|
-
circleStyle?: StyleProp<ViewStyle
|
|
45
|
-
dotStyle?: StyleProp<ViewStyle
|
|
46
|
-
labelStyle?: StyleProp<TextStyle
|
|
47
|
-
testID?: string;
|
|
43
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
44
|
+
circleStyle?: StyleProp<ViewStyle> | undefined;
|
|
45
|
+
dotStyle?: StyleProp<ViewStyle> | undefined;
|
|
46
|
+
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
47
|
+
testID?: string | undefined;
|
|
48
48
|
}
|
|
49
49
|
declare const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<HostInstance>>;
|
|
50
50
|
export { Radio };
|
|
@@ -12,12 +12,12 @@ export type RadioDotSize = "sm" | "md" | "lg";
|
|
|
12
12
|
export interface RadioDotProps {
|
|
13
13
|
selected: boolean;
|
|
14
14
|
/** Fill colour of the inner dot + selected ring. Default `colors.primary`. */
|
|
15
|
-
color?: string;
|
|
16
|
-
disabled?: boolean;
|
|
15
|
+
color?: string | undefined;
|
|
16
|
+
disabled?: boolean | undefined;
|
|
17
17
|
/** Named size reads `theme.components.radio[size]`; a number is the outer diameter in px (inner = half). */
|
|
18
|
-
size?: RadioDotSize | number;
|
|
19
|
-
style?: StyleProp<ViewStyle
|
|
20
|
-
dotStyle?: StyleProp<ViewStyle
|
|
18
|
+
size?: RadioDotSize | number | undefined;
|
|
19
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
20
|
+
dotStyle?: StyleProp<ViewStyle> | undefined;
|
|
21
21
|
}
|
|
22
22
|
export declare const RadioDot: React.FC<RadioDotProps>;
|
|
23
23
|
export default RadioDot;
|
|
@@ -2,19 +2,19 @@ import type React from "react";
|
|
|
2
2
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { RadioValue } from "./Radio.js";
|
|
4
4
|
export interface RadioGroupProps {
|
|
5
|
-
value?: RadioValue;
|
|
6
|
-
defaultValue?: RadioValue;
|
|
7
|
-
onChange?: (value: RadioValue) => void;
|
|
5
|
+
value?: RadioValue | undefined;
|
|
6
|
+
defaultValue?: RadioValue | undefined;
|
|
7
|
+
onChange?: ((value: RadioValue) => void) | undefined;
|
|
8
8
|
children: React.ReactNode;
|
|
9
|
-
disabled?: boolean;
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
10
|
/**
|
|
11
11
|
* One error line under the group, and every radio's empty ring in the error colour. `true` shows
|
|
12
12
|
* the error state without a message.
|
|
13
13
|
*/
|
|
14
|
-
error?: string | boolean;
|
|
15
|
-
accessibilityLabel?: string;
|
|
16
|
-
style?: StyleProp<ViewStyle
|
|
17
|
-
testID?: string;
|
|
14
|
+
error?: string | boolean | undefined;
|
|
15
|
+
accessibilityLabel?: string | undefined;
|
|
16
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
17
|
+
testID?: string | undefined;
|
|
18
18
|
}
|
|
19
19
|
declare const RadioGroup: React.FC<RadioGroupProps>;
|
|
20
20
|
export { RadioGroup };
|
|
@@ -10,32 +10,32 @@ export interface RatingLabels {
|
|
|
10
10
|
export declare const DEFAULT_RATING_LABELS: Readonly<RatingLabels>;
|
|
11
11
|
export interface RatingProps {
|
|
12
12
|
value: number;
|
|
13
|
-
onChange?: (value: number) => void;
|
|
14
|
-
max?: number;
|
|
15
|
-
allowHalf?: boolean;
|
|
16
|
-
readonly?: boolean;
|
|
17
|
-
size?: RatingSize;
|
|
18
|
-
tone?: RatingTone;
|
|
19
|
-
label?: string;
|
|
13
|
+
onChange?: ((value: number) => void) | undefined;
|
|
14
|
+
max?: number | undefined;
|
|
15
|
+
allowHalf?: boolean | undefined;
|
|
16
|
+
readonly?: boolean | undefined;
|
|
17
|
+
size?: RatingSize | undefined;
|
|
18
|
+
tone?: RatingTone | undefined;
|
|
19
|
+
label?: string | undefined;
|
|
20
20
|
/**
|
|
21
21
|
* When true, renders the component as its authored skeleton placeholder shape.
|
|
22
22
|
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
23
23
|
* when data arrives. Use this while the data driving the component is being fetched.
|
|
24
24
|
*/
|
|
25
|
-
loading?: boolean;
|
|
25
|
+
loading?: boolean | undefined;
|
|
26
26
|
/**
|
|
27
27
|
* Haptic feedback for interactions. Pass false to disable; pass a HapticType
|
|
28
28
|
* to override the default.
|
|
29
29
|
*/
|
|
30
|
-
haptic?: HapticType | false;
|
|
31
|
-
labels?: Partial<RatingLabels
|
|
32
|
-
accessibilityLabel?: string;
|
|
30
|
+
haptic?: HapticType | false | undefined;
|
|
31
|
+
labels?: Partial<RatingLabels> | undefined;
|
|
32
|
+
accessibilityLabel?: string | undefined;
|
|
33
33
|
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
34
|
-
style?: StyleProp<ViewStyle
|
|
34
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
35
35
|
/** Alias of style, applied before it on the same node. Use style. */
|
|
36
|
-
containerStyle?: StyleProp<ViewStyle
|
|
37
|
-
starContainerStyle?: StyleProp<ViewStyle
|
|
38
|
-
testID?: string;
|
|
36
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
37
|
+
starContainerStyle?: StyleProp<ViewStyle> | undefined;
|
|
38
|
+
testID?: string | undefined;
|
|
39
39
|
}
|
|
40
40
|
declare const Rating: React.ForwardRefExoticComponent<RatingProps & React.RefAttributes<HostInstance>> & {
|
|
41
41
|
Skeleton: React.FC<RatingProps>;
|
|
@@ -30,31 +30,31 @@ export interface RepeaterProps<T> {
|
|
|
30
30
|
createRow: () => T;
|
|
31
31
|
renderRow: (args: RepeaterRenderArgs<T>) => React.ReactNode;
|
|
32
32
|
/** Copy for the add button, the empty text, the per-row heading (`labels.row`) and the remove button. */
|
|
33
|
-
labels?: Partial<RepeaterLabels
|
|
33
|
+
labels?: Partial<RepeaterLabels> | undefined;
|
|
34
34
|
/**
|
|
35
35
|
* Draws your own header above each row's content, in place of the built-in
|
|
36
36
|
* one (the `labels.row` heading and the remove button), so a card-style row can
|
|
37
37
|
* carry a title, a summary and its own remove control. Call `remove()` from
|
|
38
38
|
* it; it does nothing when `canRemove` is false.
|
|
39
39
|
*/
|
|
40
|
-
renderRowHeader?: (args: RepeaterRenderArgs<T>) => React.ReactNode;
|
|
40
|
+
renderRowHeader?: ((args: RepeaterRenderArgs<T>) => React.ReactNode) | undefined;
|
|
41
41
|
/**
|
|
42
42
|
* Called with the row's index and value when a row is removed, by the
|
|
43
43
|
* built-in button or by `remove()`, immediately BEFORE `onChange` with the
|
|
44
44
|
* shortened array. Use it to drop state you keep for that row. Not called
|
|
45
45
|
* when the removal is refused (`minRows`, `removable`, `disabled`).
|
|
46
46
|
*/
|
|
47
|
-
onRemove?: (index: number, item: T) => void;
|
|
47
|
+
onRemove?: ((index: number, item: T) => void) | undefined;
|
|
48
48
|
/** Rows below this cannot be removed. Default 0. */
|
|
49
|
-
minRows?: number;
|
|
49
|
+
minRows?: number | undefined;
|
|
50
50
|
/** Add is hidden at this count. Omit for unlimited. */
|
|
51
|
-
maxRows?: number;
|
|
51
|
+
maxRows?: number | undefined;
|
|
52
52
|
/** Remove affordance. Default true. */
|
|
53
|
-
removable?: boolean;
|
|
54
|
-
disabled?: boolean;
|
|
55
|
-
haptic?: HapticType | false;
|
|
56
|
-
style?: StyleProp<ViewStyle
|
|
57
|
-
testID?: string;
|
|
53
|
+
removable?: boolean | undefined;
|
|
54
|
+
disabled?: boolean | undefined;
|
|
55
|
+
haptic?: HapticType | false | undefined;
|
|
56
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
57
|
+
testID?: string | undefined;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* Add / remove / edit a list of form rows — line items, phone numbers,
|
|
@@ -6,38 +6,38 @@ export type RichTextEditorLabels = Record<MarkdownAction, string>;
|
|
|
6
6
|
export declare const DEFAULT_RICH_TEXT_EDITOR_LABELS: Readonly<RichTextEditorLabels>;
|
|
7
7
|
export interface RichTextEditorProps {
|
|
8
8
|
/** The markdown source. Controlled, like any other input. */
|
|
9
|
-
value?: string;
|
|
9
|
+
value?: string | undefined;
|
|
10
10
|
/** Fires with the full markdown source after typing or a toolbar action. */
|
|
11
|
-
onChangeText?: (text: string) => void;
|
|
12
|
-
placeholder?: string;
|
|
11
|
+
onChangeText?: ((text: string) => void) | undefined;
|
|
12
|
+
placeholder?: string | undefined;
|
|
13
13
|
/**
|
|
14
14
|
* Which toolbar actions to show, in the order given. Defaults to the full
|
|
15
15
|
* set the paired `<Markdown>` renderer can read.
|
|
16
16
|
*/
|
|
17
|
-
actions?: MarkdownAction[];
|
|
17
|
+
actions?: MarkdownAction[] | undefined;
|
|
18
18
|
/** Blocks typing and every toolbar action, and dims the editor. */
|
|
19
|
-
disabled?: boolean;
|
|
19
|
+
disabled?: boolean | undefined;
|
|
20
20
|
/**
|
|
21
21
|
* When true, renders the component as its authored skeleton placeholder shape.
|
|
22
22
|
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
23
23
|
* when data arrives. Use this while the data driving the component is being fetched.
|
|
24
24
|
*/
|
|
25
|
-
loading?: boolean;
|
|
25
|
+
loading?: boolean | undefined;
|
|
26
26
|
/** Minimum height of the text area in pixels. Default 160. */
|
|
27
|
-
minHeight?: number;
|
|
28
|
-
autoFocus?: boolean;
|
|
29
|
-
accessibilityLabel?: string;
|
|
27
|
+
minHeight?: number | undefined;
|
|
28
|
+
autoFocus?: boolean | undefined;
|
|
29
|
+
accessibilityLabel?: string | undefined;
|
|
30
30
|
/** Haptic feedback for toolbar presses. Pass false to disable; pass a HapticType to override. */
|
|
31
|
-
haptic?: HapticType | false;
|
|
31
|
+
haptic?: HapticType | false | undefined;
|
|
32
32
|
/** Spoken and tooltip names of the toolbar actions. Merged over the English defaults. */
|
|
33
|
-
labels?: Partial<RichTextEditorLabels
|
|
33
|
+
labels?: Partial<RichTextEditorLabels> | undefined;
|
|
34
34
|
/** Style for the outer bordered box. */
|
|
35
|
-
style?: StyleProp<ViewStyle
|
|
35
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
36
36
|
/** Style for the toolbar row. */
|
|
37
|
-
toolbarStyle?: StyleProp<ViewStyle
|
|
37
|
+
toolbarStyle?: StyleProp<ViewStyle> | undefined;
|
|
38
38
|
/** Style for the multiline TextInput. */
|
|
39
|
-
inputStyle?: StyleProp<TextStyle
|
|
40
|
-
testID?: string;
|
|
39
|
+
inputStyle?: StyleProp<TextStyle> | undefined;
|
|
40
|
+
testID?: string | undefined;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* A markdown editor: a themed multiline field plus a toolbar that wraps the
|