@webority/mobile-ui 0.149.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 -56714
- 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/BottomNavigation/BottomNavigation.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/FileViewer/fileSource.js +1 -1
- package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/commonjs/components/InlineSelect/InlineSelect.js +1 -1
- package/lib/commonjs/components/Input/Input.js +1 -1
- package/lib/commonjs/components/ListItem/ListItem.js +1 -1
- package/lib/commonjs/components/Markdown/Markdown.js +1 -1
- package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
- package/lib/commonjs/components/Menu/focusHost.js +1 -1
- package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/commonjs/components/OptionSheet/optionAccessors.js +1 -0
- package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/commonjs/components/ProgressRing/ProgressRing.js +1 -1
- package/lib/commonjs/components/Radio/RadioGroup.js +1 -1
- package/lib/commonjs/components/Rating/Rating.js +1 -1
- package/lib/commonjs/components/Repeater/Repeater.js +1 -1
- package/lib/commonjs/components/Screen/Screen.js +1 -1
- package/lib/commonjs/components/SearchBar/useRecentSearches.js +1 -1
- package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/commonjs/components/Select/Select.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonList.js +1 -1
- package/lib/commonjs/components/Slider/Slider.js +1 -1
- package/lib/commonjs/components/SliderField/SliderField.js +1 -1
- package/lib/commonjs/components/SortableList/SortableList.js +1 -1
- package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
- package/lib/commonjs/components/SquircleFill/SquircleFill.js +1 -1
- package/lib/commonjs/components/StatTile/StatTile.js +1 -1
- package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
- package/lib/commonjs/components/StatusBadge/statusMap.js +1 -1
- package/lib/commonjs/components/Stepper/Stepper.js +1 -1
- package/lib/commonjs/components/Text/Text.js +1 -1
- package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
- package/lib/commonjs/components/WheelPicker/WheelPicker.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/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/BottomNavigation/BottomNavigation.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/FileViewer/fileSource.js +1 -1
- package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
- package/lib/module/components/Input/Input.js +1 -1
- package/lib/module/components/ListItem/ListItem.js +1 -1
- package/lib/module/components/Markdown/Markdown.js +1 -1
- package/lib/module/components/Menu/MenuSurface.js +1 -1
- package/lib/module/components/Menu/focusHost.js +1 -1
- package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/module/components/OptionSheet/optionAccessors.js +1 -0
- package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/module/components/ProgressRing/ProgressRing.js +1 -1
- package/lib/module/components/Radio/RadioGroup.js +1 -1
- package/lib/module/components/Rating/Rating.js +1 -1
- package/lib/module/components/Repeater/Repeater.js +1 -1
- package/lib/module/components/Screen/Screen.js +1 -1
- package/lib/module/components/SearchBar/useRecentSearches.js +1 -1
- package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/module/components/Select/Select.js +1 -1
- package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/module/components/Skeleton/SkeletonList.js +1 -1
- package/lib/module/components/Slider/Slider.js +1 -1
- package/lib/module/components/SliderField/SliderField.js +1 -1
- package/lib/module/components/SortableList/SortableList.js +1 -1
- package/lib/module/components/Sparkline/Sparkline.js +1 -1
- package/lib/module/components/SquircleFill/SquircleFill.js +1 -1
- package/lib/module/components/StatTile/StatTile.js +1 -1
- package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
- package/lib/module/components/StatusBadge/statusMap.js +1 -1
- package/lib/module/components/Stepper/Stepper.js +1 -1
- package/lib/module/components/Text/Text.js +1 -1
- package/lib/module/components/TimePicker/TimePicker.js +1 -1
- package/lib/module/components/WheelPicker/WheelPicker.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/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 +32 -32
- 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 +14 -14
- package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +13 -13
- package/lib/typescript/commonjs/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
- package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +2 -2
- package/lib/typescript/commonjs/components/FieldBase/ChoiceText.d.ts +10 -10
- package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +54 -54
- package/lib/typescript/commonjs/components/FieldBase/useFloatingLabel.d.ts +8 -8
- package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +35 -35
- package/lib/typescript/commonjs/components/FileViewer/FileViewer.d.ts +10 -10
- package/lib/typescript/commonjs/components/FileViewer/fileSource.d.ts +3 -3
- package/lib/typescript/commonjs/components/FilterChipRow/FilterChipRow.d.ts +12 -12
- package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +35 -35
- package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +11 -11
- package/lib/typescript/commonjs/components/FormField/FormField.d.ts +15 -15
- package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +11 -11
- package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +14 -14
- package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +14 -14
- package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +36 -31
- package/lib/typescript/commonjs/components/Input/Input.d.ts +47 -47
- package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +7 -7
- package/lib/typescript/commonjs/components/KeyboardToolbar/KeyboardToolbar.d.ts +8 -8
- package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +44 -44
- package/lib/typescript/commonjs/components/ListSection/ListSection.d.ts +6 -6
- package/lib/typescript/commonjs/components/LoaderOverlay/LoaderOverlay.d.ts +17 -11
- package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +15 -15
- package/lib/typescript/commonjs/components/Menu/Menu.d.ts +17 -12
- package/lib/typescript/commonjs/components/Menu/MenuSurface.d.ts +8 -8
- package/lib/typescript/commonjs/components/Menu/menuModel.d.ts +11 -11
- package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +13 -13
- package/lib/typescript/commonjs/components/Menu/webOnly.d.ts +3 -3
- package/lib/typescript/commonjs/components/MessageBubble/MessageBubble.d.ts +20 -20
- package/lib/typescript/commonjs/components/MessageList/MessageList.d.ts +14 -14
- package/lib/typescript/commonjs/components/Modal/Modal.d.ts +19 -19
- package/lib/typescript/commonjs/components/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 +15 -15
- package/lib/typescript/commonjs/components/Switch/Switch.d.ts +19 -19
- package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +20 -20
- package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +19 -19
- package/lib/typescript/commonjs/components/Text/Text.d.ts +10 -10
- package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +14 -14
- package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +12 -12
- package/lib/typescript/commonjs/components/Toast/Toast.d.ts +17 -17
- package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +8 -8
- package/lib/typescript/commonjs/components/Tooltip/RichTooltipBody.d.ts +4 -4
- package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +24 -19
- package/lib/typescript/commonjs/components/Tour/Tour.d.ts +7 -7
- package/lib/typescript/commonjs/components/TypingIndicator/TypingIndicator.d.ts +6 -6
- package/lib/typescript/commonjs/components/WheelPicker/Wheel.d.ts +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 +3 -3
- package/lib/typescript/commonjs/hooks/useFieldErrorScroll.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/usePressAnimation.d.ts +4 -4
- package/lib/typescript/commonjs/hooks/useRefreshControl.d.ts +8 -8
- package/lib/typescript/commonjs/hooks/useResendCountdown.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/useScrollDirection.d.ts +1 -1
- package/lib/typescript/commonjs/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 +32 -32
- 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 +14 -14
- package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +13 -13
- package/lib/typescript/module/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
- package/lib/typescript/module/components/FieldBase/Chevron.d.ts +2 -2
- package/lib/typescript/module/components/FieldBase/ChoiceText.d.ts +10 -10
- package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +54 -54
- package/lib/typescript/module/components/FieldBase/useFloatingLabel.d.ts +8 -8
- package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +35 -35
- package/lib/typescript/module/components/FileViewer/FileViewer.d.ts +10 -10
- package/lib/typescript/module/components/FileViewer/fileSource.d.ts +3 -3
- package/lib/typescript/module/components/FilterChipRow/FilterChipRow.d.ts +12 -12
- package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +35 -35
- package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +11 -11
- package/lib/typescript/module/components/FormField/FormField.d.ts +15 -15
- package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +11 -11
- package/lib/typescript/module/components/IconButton/IconButton.d.ts +14 -14
- package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +14 -14
- package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +36 -31
- package/lib/typescript/module/components/Input/Input.d.ts +47 -47
- package/lib/typescript/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +7 -7
- package/lib/typescript/module/components/KeyboardToolbar/KeyboardToolbar.d.ts +8 -8
- package/lib/typescript/module/components/ListItem/ListItem.d.ts +44 -44
- package/lib/typescript/module/components/ListSection/ListSection.d.ts +6 -6
- package/lib/typescript/module/components/LoaderOverlay/LoaderOverlay.d.ts +17 -11
- package/lib/typescript/module/components/Markdown/Markdown.d.ts +15 -15
- package/lib/typescript/module/components/Menu/Menu.d.ts +17 -12
- package/lib/typescript/module/components/Menu/MenuSurface.d.ts +8 -8
- package/lib/typescript/module/components/Menu/menuModel.d.ts +11 -11
- package/lib/typescript/module/components/Menu/useContextMenu.d.ts +13 -13
- package/lib/typescript/module/components/Menu/webOnly.d.ts +3 -3
- package/lib/typescript/module/components/MessageBubble/MessageBubble.d.ts +20 -20
- package/lib/typescript/module/components/MessageList/MessageList.d.ts +14 -14
- package/lib/typescript/module/components/Modal/Modal.d.ts +19 -19
- package/lib/typescript/module/components/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 +15 -15
- package/lib/typescript/module/components/Switch/Switch.d.ts +19 -19
- package/lib/typescript/module/components/Tabs/Tabs.d.ts +20 -20
- package/lib/typescript/module/components/TagInput/TagInput.d.ts +19 -19
- package/lib/typescript/module/components/Text/Text.d.ts +10 -10
- package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +14 -14
- package/lib/typescript/module/components/Timeline/Timeline.d.ts +12 -12
- package/lib/typescript/module/components/Toast/Toast.d.ts +17 -17
- package/lib/typescript/module/components/Toast/ToastProvider.d.ts +8 -8
- package/lib/typescript/module/components/Tooltip/RichTooltipBody.d.ts +4 -4
- package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +24 -19
- package/lib/typescript/module/components/Tour/Tour.d.ts +7 -7
- package/lib/typescript/module/components/TypingIndicator/TypingIndicator.d.ts +6 -6
- package/lib/typescript/module/components/WheelPicker/Wheel.d.ts +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 +3 -3
- package/lib/typescript/module/hooks/useFieldErrorScroll.d.ts +1 -1
- package/lib/typescript/module/hooks/usePressAnimation.d.ts +4 -4
- package/lib/typescript/module/hooks/useRefreshControl.d.ts +8 -8
- package/lib/typescript/module/hooks/useResendCountdown.d.ts +1 -1
- package/lib/typescript/module/hooks/useScrollDirection.d.ts +1 -1
- package/lib/typescript/module/navigation/DiscardGuard.d.ts +2 -2
- package/lib/typescript/module/navigation/NavigationScreen.d.ts +3 -3
- package/lib/typescript/module/network/NetworkStatusBanner.d.ts +7 -7
- package/lib/typescript/module/theme/Gradient.d.ts +2 -2
- package/lib/typescript/module/theme/ThemeContext.d.ts +5 -5
- package/lib/typescript/module/theme/componentSizes.d.ts +15 -38
- package/lib/typescript/module/theme/types.d.ts +84 -84
- package/lib/typescript/module/utils/announce.d.ts +1 -1
- package/lib/typescript/module/utils/complete.d.ts +5 -0
- package/lib/typescript/module/utils/feedback.d.ts +3 -1
- package/lib/typescript/module/utils/guards.d.ts +9 -0
- package/lib/typescript/module/utils/placement.d.ts +3 -3
- package/lib/typescript/module/utils/squircle.d.ts +2 -2
- package/package.json +9 -9
- package/src/specs/NativePdfRasterizer.ts +1 -1
|
@@ -8,20 +8,20 @@ import type React from "react";
|
|
|
8
8
|
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
9
9
|
export interface ChoiceTextProps {
|
|
10
10
|
/** A string, or a node (a symbol with a subscript). */
|
|
11
|
-
label?: React.ReactNode;
|
|
11
|
+
label?: React.ReactNode | undefined;
|
|
12
12
|
/** A muted hint directly under the label. */
|
|
13
|
-
helperText?: string;
|
|
14
|
-
description?: string;
|
|
15
|
-
error?: string;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
style?: StyleProp<ViewStyle
|
|
18
|
-
labelStyle?: StyleProp<TextStyle
|
|
13
|
+
helperText?: string | undefined;
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
error?: string | undefined;
|
|
16
|
+
disabled?: boolean | undefined;
|
|
17
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
18
|
+
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
19
19
|
}
|
|
20
20
|
/** True when the control has a second line, so it aligns to the label's first line. */
|
|
21
21
|
export declare const hasChoiceDetail: ({ description, error, helperText, }: {
|
|
22
|
-
description?: string;
|
|
23
|
-
error?: string;
|
|
24
|
-
helperText?: string;
|
|
22
|
+
description?: string | undefined;
|
|
23
|
+
error?: string | undefined;
|
|
24
|
+
helperText?: string | undefined;
|
|
25
25
|
}) => boolean;
|
|
26
26
|
export declare const ChoiceText: React.FC<ChoiceTextProps>;
|
|
27
27
|
//# sourceMappingURL=ChoiceText.d.ts.map
|
|
@@ -39,30 +39,30 @@ type FieldSide = "top" | "right" | "bottom" | "left";
|
|
|
39
39
|
export declare const pickRepresentativeBorderColor: (sides: Record<FieldSide, string>) => string;
|
|
40
40
|
export interface FieldBaseProps {
|
|
41
41
|
/** Resolves to dimension tokens at `theme.components.field[size]`. Default `'md'`. */
|
|
42
|
-
size?: FieldBaseSize;
|
|
42
|
+
size?: FieldBaseSize | undefined;
|
|
43
43
|
/**
|
|
44
44
|
* Controls the resting fill + border treatment. Override the theme default
|
|
45
45
|
* (`theme.settings.components.field.defaultVariant`) via this prop. Default `'outline'`.
|
|
46
46
|
*/
|
|
47
|
-
variant?: FieldBaseVariant;
|
|
47
|
+
variant?: FieldBaseVariant | undefined;
|
|
48
48
|
/** Parent-controlled focus state — drives the border + fill animation. */
|
|
49
|
-
focused?: boolean;
|
|
49
|
+
focused?: boolean | undefined;
|
|
50
50
|
/** Disabled state — wins over `focused` / `error`. */
|
|
51
|
-
disabled?: boolean;
|
|
51
|
+
disabled?: boolean | undefined;
|
|
52
52
|
/** Error state — visually wins over `focused`. */
|
|
53
|
-
error?: boolean;
|
|
53
|
+
error?: boolean | undefined;
|
|
54
54
|
/** Whether the field currently holds a value. Affects idle-empty vs idle-filled fill. */
|
|
55
|
-
filled?: boolean;
|
|
55
|
+
filled?: boolean | undefined;
|
|
56
56
|
/** Slot to the left of `children`. Rendered inside the padded row. */
|
|
57
|
-
leading?: React.ReactNode;
|
|
57
|
+
leading?: React.ReactNode | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* Draw the spec's hairline rule between the leading slot and the content
|
|
60
60
|
* (icon | text). Only Input's leading icon wants it; SearchBar's magnifier,
|
|
61
61
|
* Select's prefix and the pickers leave it off. No-op without `leading`.
|
|
62
62
|
*/
|
|
63
|
-
leadingDivider?: boolean;
|
|
63
|
+
leadingDivider?: boolean | undefined;
|
|
64
64
|
/** Slot to the right of `children`. Rendered inside the padded row. */
|
|
65
|
-
trailing?: React.ReactNode;
|
|
65
|
+
trailing?: React.ReactNode | undefined;
|
|
66
66
|
/**
|
|
67
67
|
* Where the slots (and the divider) sit against the content. `'center'`
|
|
68
68
|
* (default) for a single-line field. `'top'` for a multi-line one, so the
|
|
@@ -70,9 +70,9 @@ export interface FieldBaseProps {
|
|
|
70
70
|
* `slotLineHeight` (the content's first-line height) so the icon is centred
|
|
71
71
|
* on that line rather than pinned to the padding edge.
|
|
72
72
|
*/
|
|
73
|
-
slotAlign?: "center" | "top";
|
|
73
|
+
slotAlign?: "center" | "top" | undefined;
|
|
74
74
|
/** First-line height of the content, used only with `slotAlign="top"`. */
|
|
75
|
-
slotLineHeight?: number;
|
|
75
|
+
slotLineHeight?: number | undefined;
|
|
76
76
|
/**
|
|
77
77
|
* Cut a gap in the top border, in the box's outer coordinates: a floated
|
|
78
78
|
* outline label sits in it so the rule never runs behind the text and the
|
|
@@ -82,14 +82,14 @@ export interface FieldBaseProps {
|
|
|
82
82
|
topNotch?: {
|
|
83
83
|
left: number;
|
|
84
84
|
width: number | Animated.AnimatedInterpolation<number>;
|
|
85
|
-
};
|
|
85
|
+
} | undefined;
|
|
86
86
|
/** The editable / displayed content. TextInput, Text, OTP, anything. */
|
|
87
|
-
children?: React.ReactNode;
|
|
87
|
+
children?: React.ReactNode | undefined;
|
|
88
88
|
/**
|
|
89
89
|
* When provided, the entire field becomes Pressable. Use for Select /
|
|
90
90
|
* PickerTrigger / any non-text-input field. Disabled when `disabled` is true.
|
|
91
91
|
*/
|
|
92
|
-
onPress?: () => void;
|
|
92
|
+
onPress?: (() => void) | undefined;
|
|
93
93
|
/**
|
|
94
94
|
* Whether a press reads as pressing a button: the pressed fill and the
|
|
95
95
|
* `button` role. Default `true`, the trigger fields (Select, PickerTrigger).
|
|
@@ -99,53 +99,53 @@ export interface FieldBaseProps {
|
|
|
99
99
|
* The accessibility props stay on the box, so the hosted input remains the
|
|
100
100
|
* element a screen reader lands on.
|
|
101
101
|
*/
|
|
102
|
-
pressFeedback?: boolean;
|
|
102
|
+
pressFeedback?: boolean | undefined;
|
|
103
103
|
/** Override `minHeight` (multiline Input). */
|
|
104
|
-
minHeight?: number;
|
|
104
|
+
minHeight?: number | undefined;
|
|
105
105
|
/** Override `maxHeight` (rarely needed). */
|
|
106
|
-
maxHeight?: number;
|
|
106
|
+
maxHeight?: number | undefined;
|
|
107
107
|
/** Fixed pixel width — used by OTP cells. Suppresses default `flex: 1`. */
|
|
108
|
-
width?: number;
|
|
108
|
+
width?: number | undefined;
|
|
109
109
|
/** Fixed pixel height — used by OTP cells. Wins over `minHeight`. */
|
|
110
|
-
height?: number;
|
|
110
|
+
height?: number | undefined;
|
|
111
111
|
/** Override horizontal padding. */
|
|
112
|
-
paddingHorizontal?: number;
|
|
112
|
+
paddingHorizontal?: number | undefined;
|
|
113
113
|
/** Override left padding. Wins over `paddingHorizontal`. */
|
|
114
|
-
paddingLeft?: number;
|
|
114
|
+
paddingLeft?: number | undefined;
|
|
115
115
|
/** Override right padding. Wins over `paddingHorizontal`. */
|
|
116
|
-
paddingRight?: number;
|
|
116
|
+
paddingRight?: number | undefined;
|
|
117
117
|
/** Override vertical padding (single-line). Multiline parents usually leave this default. */
|
|
118
|
-
paddingVertical?: number;
|
|
118
|
+
paddingVertical?: number | undefined;
|
|
119
119
|
/** Corner radius token (shorthand for all four corners), resolved through `theme.radius`. SearchBar pill uses `"pill"`. */
|
|
120
|
-
radius?: keyof Theme["radius"];
|
|
120
|
+
radius?: keyof Theme["radius"] | undefined;
|
|
121
121
|
/** Top-left corner radius. Wins over `radius`. */
|
|
122
|
-
borderTopLeftRadius?: number;
|
|
122
|
+
borderTopLeftRadius?: number | undefined;
|
|
123
123
|
/** Top-right corner radius. Wins over `radius`. */
|
|
124
|
-
borderTopRightRadius?: number;
|
|
124
|
+
borderTopRightRadius?: number | undefined;
|
|
125
125
|
/** Bottom-left corner radius. Wins over `radius`. */
|
|
126
|
-
borderBottomLeftRadius?: number;
|
|
126
|
+
borderBottomLeftRadius?: number | undefined;
|
|
127
127
|
/** Bottom-right corner radius. Wins over `radius`. */
|
|
128
|
-
borderBottomRightRadius?: number;
|
|
128
|
+
borderBottomRightRadius?: number | undefined;
|
|
129
129
|
/** Override border width (shorthand — all four sides). OTP uses 1.5; everything else inherits `size.border`. */
|
|
130
|
-
borderWidth?: number;
|
|
130
|
+
borderWidth?: number | undefined;
|
|
131
131
|
/** Top border width. Wins over `borderWidth`. */
|
|
132
|
-
borderTopWidth?: number;
|
|
132
|
+
borderTopWidth?: number | undefined;
|
|
133
133
|
/** Right border width. Wins over `borderWidth`. */
|
|
134
|
-
borderRightWidth?: number;
|
|
134
|
+
borderRightWidth?: number | undefined;
|
|
135
135
|
/** Bottom border width. Wins over `borderWidth`. */
|
|
136
|
-
borderBottomWidth?: number;
|
|
136
|
+
borderBottomWidth?: number | undefined;
|
|
137
137
|
/** Left border width. Wins over `borderWidth`. */
|
|
138
|
-
borderLeftWidth?: number;
|
|
138
|
+
borderLeftWidth?: number | undefined;
|
|
139
139
|
/** Gap between leading / children / trailing. Defaults to `theme.space.md` (the spec's 12px). */
|
|
140
|
-
gap?: number;
|
|
140
|
+
gap?: number | undefined;
|
|
141
141
|
/** Drop the room below the field, for a field that sits tight on the content under it. */
|
|
142
|
-
flushBottom?: boolean;
|
|
143
|
-
style?: StyleProp<ViewStyle
|
|
144
|
-
testID?: string;
|
|
145
|
-
accessibilityRole?: AccessibilityRole;
|
|
146
|
-
accessibilityLabel?: string;
|
|
147
|
-
accessibilityState?: AccessibilityState;
|
|
148
|
-
accessibilityHint?: string;
|
|
142
|
+
flushBottom?: boolean | undefined;
|
|
143
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
144
|
+
testID?: string | undefined;
|
|
145
|
+
accessibilityRole?: AccessibilityRole | undefined;
|
|
146
|
+
accessibilityLabel?: string | undefined;
|
|
147
|
+
accessibilityState?: AccessibilityState | undefined;
|
|
148
|
+
accessibilityHint?: string | undefined;
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
151
|
* Resolved text styling for the editable / displayed content inside a field.
|
|
@@ -157,7 +157,7 @@ export interface FieldBaseProps {
|
|
|
157
157
|
*/
|
|
158
158
|
export interface FieldTextStyleResolverOptions {
|
|
159
159
|
/** When true, returns the disabled foreground colour. */
|
|
160
|
-
disabled?: boolean;
|
|
160
|
+
disabled?: boolean | undefined;
|
|
161
161
|
}
|
|
162
162
|
export interface FieldTextStyle {
|
|
163
163
|
/** Foreground colour for the value text. */
|
|
@@ -195,10 +195,10 @@ export declare const RequiredPlaceholder: React.FC<{
|
|
|
195
195
|
fontSize: number;
|
|
196
196
|
weightStyle: TextStyle;
|
|
197
197
|
/** `'top'` for a multi-line field, whose text starts at the top of the box. */
|
|
198
|
-
align?: "center" | "top";
|
|
198
|
+
align?: "center" | "top" | undefined;
|
|
199
199
|
/** Vertical offset for the `'top'` case (the input's own optical nudge). */
|
|
200
|
-
paddingTop?: number;
|
|
201
|
-
textAlign?: TextStyle["textAlign"];
|
|
200
|
+
paddingTop?: number | undefined;
|
|
201
|
+
textAlign?: TextStyle["textAlign"] | undefined;
|
|
202
202
|
}>;
|
|
203
203
|
/**
|
|
204
204
|
* The circled-exclamation glyph that leads a field's error message. Uses the
|
|
@@ -235,13 +235,13 @@ export declare const fieldTextAsString: (value: React.ReactNode) => string | und
|
|
|
235
235
|
*/
|
|
236
236
|
export declare const FieldLabel: React.FC<{
|
|
237
237
|
children: React.ReactNode;
|
|
238
|
-
size?: FieldBaseSize;
|
|
239
|
-
required?: boolean;
|
|
238
|
+
size?: FieldBaseSize | undefined;
|
|
239
|
+
required?: boolean | undefined;
|
|
240
240
|
/** Drawn beside the label, after the required marker. */
|
|
241
|
-
help?: React.ReactNode;
|
|
241
|
+
help?: React.ReactNode | undefined;
|
|
242
242
|
/** Label ink; defaults to `colors["field-label"]`. */
|
|
243
|
-
color?: string;
|
|
244
|
-
style?: StyleProp<TextStyle
|
|
243
|
+
color?: string | undefined;
|
|
244
|
+
style?: StyleProp<TextStyle> | undefined;
|
|
245
245
|
}>;
|
|
246
246
|
/**
|
|
247
247
|
* The helper / error line under a field: the `message-text` size and
|
|
@@ -250,10 +250,10 @@ export declare const FieldLabel: React.FC<{
|
|
|
250
250
|
* node. Renders nothing without text.
|
|
251
251
|
*/
|
|
252
252
|
export declare const FieldMessage: React.FC<{
|
|
253
|
-
text?: React.ReactNode;
|
|
254
|
-
error?: boolean;
|
|
255
|
-
size?: FieldBaseSize;
|
|
256
|
-
style?: StyleProp<TextStyle
|
|
253
|
+
text?: React.ReactNode | undefined;
|
|
254
|
+
error?: boolean | undefined;
|
|
255
|
+
size?: FieldBaseSize | undefined;
|
|
256
|
+
style?: StyleProp<TextStyle> | undefined;
|
|
257
257
|
}>;
|
|
258
258
|
/**
|
|
259
259
|
* Strict, fully-resolved colour set used internally. Every border colour /
|
|
@@ -21,29 +21,29 @@ import type { FieldBaseProps, FieldBaseVariant } from "./FieldBase";
|
|
|
21
21
|
export declare const FLOATED_LABEL_SCALE = 0.85;
|
|
22
22
|
export interface UseFloatingLabelOptions {
|
|
23
23
|
/** A string or a node; a node needs the field's explicit `accessibilityLabel`. */
|
|
24
|
-
label?: React.ReactNode;
|
|
24
|
+
label?: React.ReactNode | undefined;
|
|
25
25
|
/** Render at all (label present and the consumer's labelMode is 'float'). */
|
|
26
26
|
enabled: boolean;
|
|
27
27
|
/** Whether the label is up on the border right now (focused or holding a value). */
|
|
28
28
|
floated: boolean;
|
|
29
|
-
required?: boolean;
|
|
29
|
+
required?: boolean | undefined;
|
|
30
30
|
variant: FieldBaseVariant;
|
|
31
31
|
sizeTokens: ReturnType<typeof resolveFieldSize>;
|
|
32
32
|
/** Where the text starts past the leading slot (icon, gaps, divider), px. */
|
|
33
33
|
leadingOffset: number;
|
|
34
34
|
/** Width the trailing slot takes, for a right-aligned label, px. */
|
|
35
|
-
trailingOffset?: number;
|
|
36
|
-
textAlign?: "left" | "right" | "center";
|
|
35
|
+
trailingOffset?: number | undefined;
|
|
36
|
+
textAlign?: "left" | "right" | "center" | undefined;
|
|
37
37
|
/** The field's left padding at rest; 0 for underline rows whose text is flush with the rule. */
|
|
38
38
|
paddingLeft: number;
|
|
39
39
|
/** Explicit line height of the field's text (textarea); the label box takes it too. */
|
|
40
|
-
lineHeight?: number;
|
|
40
|
+
lineHeight?: number | undefined;
|
|
41
41
|
/** Extra resting offset from the top padding (a textarea's optical nudge). */
|
|
42
|
-
restNudge?: number;
|
|
42
|
+
restNudge?: number | undefined;
|
|
43
43
|
/** Float a little less (a textarea's exact line box needs 2px). */
|
|
44
|
-
floatTrim?: number;
|
|
44
|
+
floatTrim?: number | undefined;
|
|
45
45
|
color: string;
|
|
46
|
-
style?: StyleProp<TextStyle
|
|
46
|
+
style?: StyleProp<TextStyle> | undefined;
|
|
47
47
|
}
|
|
48
48
|
export interface UseFloatingLabelResult {
|
|
49
49
|
/** The Animated.Text, or null when disabled. Place it beside FieldBase inside a relative wrapper. */
|
|
@@ -31,27 +31,27 @@ export interface FilePickerFile {
|
|
|
31
31
|
id: string;
|
|
32
32
|
name: string;
|
|
33
33
|
/** Local content URI (freshly picked files). */
|
|
34
|
-
uri?: string;
|
|
34
|
+
uri?: string | undefined;
|
|
35
35
|
/** Remote URL for already-uploaded files (edit screens). */
|
|
36
|
-
url?: string;
|
|
36
|
+
url?: string | undefined;
|
|
37
37
|
/** Remote thumbnail. Image files fall back to `uri` / `url`. */
|
|
38
|
-
thumbnailUrl?: string;
|
|
38
|
+
thumbnailUrl?: string | undefined;
|
|
39
39
|
/** Mime type, e.g. `image/jpeg`. */
|
|
40
|
-
type?: string;
|
|
40
|
+
type?: string | undefined;
|
|
41
41
|
/** Bytes. */
|
|
42
|
-
bytes?: number;
|
|
42
|
+
bytes?: number | undefined;
|
|
43
43
|
/** Display-only upload state — the app sets these, the library renders them. */
|
|
44
|
-
status?: FilePickerFileStatus;
|
|
44
|
+
status?: FilePickerFileStatus | undefined;
|
|
45
45
|
/** 0–1, rendered while `status === 'uploading'`. */
|
|
46
|
-
progress?: number;
|
|
46
|
+
progress?: number | undefined;
|
|
47
47
|
/** Shown on the file while `status === 'error'`. */
|
|
48
|
-
error?: string;
|
|
48
|
+
error?: string | undefined;
|
|
49
49
|
/** Consumer payload — preserved untouched through every operation. */
|
|
50
|
-
meta?: Record<string, unknown
|
|
50
|
+
meta?: Record<string, unknown> | undefined;
|
|
51
51
|
}
|
|
52
52
|
/** Launch native picking through `pick()`: resolve `[]` for user-cancel, throw for real failures. */
|
|
53
53
|
export interface FilePickerSource extends PickerSource {
|
|
54
|
-
icon?: React.ReactNode;
|
|
54
|
+
icon?: React.ReactNode | undefined;
|
|
55
55
|
}
|
|
56
56
|
/** Everything a custom `renderFile` template needs to paint one file. */
|
|
57
57
|
export interface FilePickerFileState {
|
|
@@ -59,7 +59,7 @@ export interface FilePickerFileState {
|
|
|
59
59
|
index: number;
|
|
60
60
|
disabled: boolean;
|
|
61
61
|
remove: () => void;
|
|
62
|
-
retry?: () => void;
|
|
62
|
+
retry?: (() => void) | undefined;
|
|
63
63
|
}
|
|
64
64
|
export interface FilePickerTriggerState {
|
|
65
65
|
/** Open a specific source, or the chooser sheet when omitted and >1 source. */
|
|
@@ -103,51 +103,51 @@ export interface FilePickerRef {
|
|
|
103
103
|
}
|
|
104
104
|
export interface FilePickerProps {
|
|
105
105
|
/** Controlled file list. */
|
|
106
|
-
files?: FilePickerFile[];
|
|
106
|
+
files?: FilePickerFile[] | undefined;
|
|
107
107
|
/** Uncontrolled initial list (edit screens can seed remote files here too). */
|
|
108
|
-
defaultFiles?: FilePickerFile[];
|
|
109
|
-
onChange?: (files: FilePickerFile[]) => void;
|
|
108
|
+
defaultFiles?: FilePickerFile[] | undefined;
|
|
109
|
+
onChange?: ((files: FilePickerFile[]) => void) | undefined;
|
|
110
110
|
/** Native picking adapters. One source launches directly; several open the chooser sheet. */
|
|
111
111
|
sources: ReadonlyArray<FilePickerSource>;
|
|
112
|
-
maxFiles?: number;
|
|
112
|
+
maxFiles?: number | undefined;
|
|
113
113
|
/** Per-file size cap — oversized picks are rejected with a visible error. */
|
|
114
|
-
maxSizeMB?: number;
|
|
114
|
+
maxSizeMB?: number | undefined;
|
|
115
115
|
/** Accepted mime globs, e.g. `['image/*', 'application/pdf']`. Unset = accept all. */
|
|
116
|
-
accept?: ReadonlyArray<string
|
|
116
|
+
accept?: ReadonlyArray<string> | undefined;
|
|
117
117
|
/** Custom per-file rule — return an error string to reject. */
|
|
118
|
-
validate?: (file: FilePickerFile) => string | null | undefined;
|
|
118
|
+
validate?: ((file: FilePickerFile) => string | null | undefined) | undefined;
|
|
119
119
|
/**
|
|
120
120
|
* Async per-file transform between pick and `files` (compression, local
|
|
121
121
|
* copy). The file shows `processing` while it runs; a throw rejects the
|
|
122
122
|
* file with the thrown message as the field error.
|
|
123
123
|
*/
|
|
124
|
-
process?: (file: FilePickerFile) => Promise<FilePickerFile
|
|
124
|
+
process?: ((file: FilePickerFile) => Promise<FilePickerFile>) | undefined;
|
|
125
125
|
/** `card`: dashed upload card → horizontal thumbnail strip. `list`: rows with name/size/status. */
|
|
126
|
-
variant?: FilePickerVariant;
|
|
126
|
+
variant?: FilePickerVariant | undefined;
|
|
127
127
|
/** Full custom per-file template. Library keeps remove/retry handlers + a11y wiring via the state object. */
|
|
128
|
-
renderFile?: (state: FilePickerFileState) => React.ReactNode;
|
|
128
|
+
renderFile?: ((state: FilePickerFileState) => React.ReactNode) | undefined;
|
|
129
129
|
/** Replace the built-in trigger entirely; behaviour arrives via the state object. */
|
|
130
|
-
renderTrigger?: (state: FilePickerTriggerState) => React.ReactNode;
|
|
131
|
-
disabled?: boolean;
|
|
130
|
+
renderTrigger?: ((state: FilePickerTriggerState) => React.ReactNode) | undefined;
|
|
131
|
+
disabled?: boolean | undefined;
|
|
132
132
|
/** Hint under the trigger (e.g. "Up to 5 files, max 100MB each."). */
|
|
133
|
-
helperText?: string;
|
|
133
|
+
helperText?: string | undefined;
|
|
134
134
|
/** External error — wins over internal validation errors (form binding). */
|
|
135
|
-
error?: React.ReactNode;
|
|
136
|
-
labels?: Partial<FilePickerLabels
|
|
135
|
+
error?: React.ReactNode | undefined;
|
|
136
|
+
labels?: Partial<FilePickerLabels> | undefined;
|
|
137
137
|
/** Haptics for pick/remove (selection) and rejections (error). Pass false to disable. */
|
|
138
|
-
haptic?: HapticType | false;
|
|
138
|
+
haptic?: HapticType | false | undefined;
|
|
139
139
|
/** Files accepted by a pick (post-validation, post-process). */
|
|
140
|
-
onPick?: (files: FilePickerFile[]) => void;
|
|
141
|
-
onRemove?: (file: FilePickerFile) => void;
|
|
140
|
+
onPick?: ((files: FilePickerFile[]) => void) | undefined;
|
|
141
|
+
onRemove?: ((file: FilePickerFile) => void) | undefined;
|
|
142
142
|
/** Each rejection message (also shown as the field error). */
|
|
143
|
-
onError?: (message: string, file?: FilePickerFile) => void;
|
|
143
|
+
onError?: ((message: string, file?: FilePickerFile) => void) | undefined;
|
|
144
144
|
/** Tap on a file tile/row — wire previews (ImageGallery) here. */
|
|
145
|
-
onFilePress?: (file: FilePickerFile) => void;
|
|
145
|
+
onFilePress?: ((file: FilePickerFile) => void) | undefined;
|
|
146
146
|
/** When set, files with `status 'error'` show a retry affordance that calls this. */
|
|
147
|
-
onRetry?: (file: FilePickerFile) => void;
|
|
148
|
-
style?: StyleProp<ViewStyle
|
|
149
|
-
accessibilityLabel?: string;
|
|
150
|
-
testID?: string;
|
|
147
|
+
onRetry?: ((file: FilePickerFile) => void) | undefined;
|
|
148
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
149
|
+
accessibilityLabel?: string | undefined;
|
|
150
|
+
testID?: string | undefined;
|
|
151
151
|
}
|
|
152
152
|
export declare const DEFAULT_FILE_PICKER_LABELS: FilePickerLabels;
|
|
153
153
|
export declare const formatFileSize: (bytes?: number) => string;
|
|
@@ -6,19 +6,19 @@ export type FileViewerKind = "auto" | "pdf" | "image";
|
|
|
6
6
|
export interface FileViewerProps {
|
|
7
7
|
source: FileViewerSource;
|
|
8
8
|
/** Default "auto": a picture when the file name ends in a picture extension, otherwise a PDF. Pass "image" for a signed link with no extension. */
|
|
9
|
-
kind?: FileViewerKind;
|
|
10
|
-
onLoadComplete?: (numberOfPages: number) => void;
|
|
11
|
-
onPageChanged?: (page: number, numberOfPages: number) => void;
|
|
12
|
-
onError?: (error: Error) => void;
|
|
9
|
+
kind?: FileViewerKind | undefined;
|
|
10
|
+
onLoadComplete?: ((numberOfPages: number) => void) | undefined;
|
|
11
|
+
onPageChanged?: ((page: number, numberOfPages: number) => void) | undefined;
|
|
12
|
+
onError?: ((error: Error) => void) | undefined;
|
|
13
13
|
/** Replaces the default themed spinner shown while the document loads. */
|
|
14
|
-
loadingIndicator?: () => React.ReactNode;
|
|
14
|
+
loadingIndicator?: (() => React.ReactNode) | undefined;
|
|
15
15
|
/** Pinch, double-tap zoom and pan while zoomed. Default true. */
|
|
16
|
-
zoomEnabled?: boolean;
|
|
16
|
+
zoomEnabled?: boolean | undefined;
|
|
17
17
|
/** Upper bound on pinch zoom, as a multiple of the page fitting the width. Default 4. */
|
|
18
|
-
maxZoom?: number;
|
|
19
|
-
style?: StyleProp<ViewStyle
|
|
20
|
-
testID?: string;
|
|
21
|
-
accessibilityLabel?: string;
|
|
18
|
+
maxZoom?: number | undefined;
|
|
19
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
20
|
+
testID?: string | undefined;
|
|
21
|
+
accessibilityLabel?: string | undefined;
|
|
22
22
|
}
|
|
23
23
|
export declare const FileViewer: React.FC<FileViewerProps>;
|
|
24
24
|
export default FileViewer;
|
|
@@ -2,15 +2,15 @@ import { type DownloadHttpClient } from "@webority/mobile-core/download";
|
|
|
2
2
|
import type { FileViewerKind } from "./FileViewer";
|
|
3
3
|
export interface FileViewerSource {
|
|
4
4
|
uri: string;
|
|
5
|
-
headers?: Record<string, string
|
|
5
|
+
headers?: Record<string, string> | undefined;
|
|
6
6
|
/**
|
|
7
7
|
* Fetches a remote `uri`. Pass the app's signed-in client (mobile-core's
|
|
8
8
|
* `userClient`, or its own) for a document behind sign-in; defaults to
|
|
9
9
|
* mobile-core's `publicClient`.
|
|
10
10
|
*/
|
|
11
|
-
client?: DownloadHttpClient;
|
|
11
|
+
client?: DownloadHttpClient | undefined;
|
|
12
12
|
/** Reuse a previously downloaded copy of this URL instead of re-fetching. Default true. */
|
|
13
|
-
cache?: boolean;
|
|
13
|
+
cache?: boolean | undefined;
|
|
14
14
|
}
|
|
15
15
|
export declare const HAS_SCHEME: RegExp;
|
|
16
16
|
/**
|
|
@@ -22,10 +22,10 @@ export interface FilterChipItem {
|
|
|
22
22
|
key: string;
|
|
23
23
|
label: string;
|
|
24
24
|
/** Shown after the label; leave it undefined while it loads and the label shows alone. */
|
|
25
|
-
count?: number | string;
|
|
26
|
-
disabled?: boolean;
|
|
25
|
+
count?: number | string | undefined;
|
|
26
|
+
disabled?: boolean | undefined;
|
|
27
27
|
/** Test selector of this chip's pressable; none when unset. */
|
|
28
|
-
testID?: string;
|
|
28
|
+
testID?: string | undefined;
|
|
29
29
|
}
|
|
30
30
|
export interface FilterChipRowProps {
|
|
31
31
|
items: ReadonlyArray<FilterChipItem>;
|
|
@@ -38,19 +38,19 @@ export interface FilterChipRowProps {
|
|
|
38
38
|
* both sides and pads its content by the same amount. The theme carries no
|
|
39
39
|
* screen gutter, so the default is 0 (the row stays inside its parent).
|
|
40
40
|
*/
|
|
41
|
-
bleed?: number;
|
|
42
|
-
size?: ChipSize;
|
|
43
|
-
variant?: ChipVariant;
|
|
44
|
-
tone?: ChipTone;
|
|
41
|
+
bleed?: number | undefined;
|
|
42
|
+
size?: ChipSize | undefined;
|
|
43
|
+
variant?: ChipVariant | undefined;
|
|
44
|
+
tone?: ChipTone | undefined;
|
|
45
45
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
46
|
-
haptic?: HapticType | false;
|
|
46
|
+
haptic?: HapticType | false | undefined;
|
|
47
47
|
/** Names the radiogroup for screen readers, e.g. "Filter by status". */
|
|
48
|
-
accessibilityLabel?: string;
|
|
48
|
+
accessibilityLabel?: string | undefined;
|
|
49
49
|
/** Style of the outer view, applied after the bleed margin. */
|
|
50
|
-
style?: StyleProp<ViewStyle
|
|
50
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
51
51
|
/** Style of the scrolling content, applied after the bleed padding and the chip gap. */
|
|
52
|
-
contentContainerStyle?: StyleProp<ViewStyle
|
|
53
|
-
testID?: string;
|
|
52
|
+
contentContainerStyle?: StyleProp<ViewStyle> | undefined;
|
|
53
|
+
testID?: string | undefined;
|
|
54
54
|
}
|
|
55
55
|
declare const FilterChipRow: ForwardRefExoticComponent<FilterChipRowProps & RefAttributes<HostInstance>>;
|
|
56
56
|
export { FilterChipRow };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { Size, Tone } from "../../types/vocabulary";
|
|
4
4
|
import type { HapticType } from "../../utils/hapticUtils";
|
|
5
5
|
import { type SlotIcon } from "../AppIcon/slotIcon";
|
|
@@ -14,36 +14,36 @@ export interface FloatingActionButtonProps {
|
|
|
14
14
|
icon: SlotIcon;
|
|
15
15
|
onPress: () => void;
|
|
16
16
|
/** Text beside the icon; makes the button extended (a pill). */
|
|
17
|
-
label?: string;
|
|
17
|
+
label?: string | undefined;
|
|
18
18
|
/**
|
|
19
19
|
* Folds an extended button to its round icon alone (the size's diameter) with
|
|
20
20
|
* the label fading out, and unfolds it when false. Drive it from scroll state
|
|
21
21
|
* to cover less of the rows moving underneath. Does nothing without a `label`;
|
|
22
22
|
* the accessibility label is unchanged. Independent of `hideOnScroll`.
|
|
23
23
|
*/
|
|
24
|
-
collapsed?: boolean;
|
|
25
|
-
size?: FloatingActionButtonSize;
|
|
26
|
-
tone?: FloatingActionButtonTone;
|
|
27
|
-
position?: FloatingActionButtonPosition;
|
|
28
|
-
bottomOffset?: number;
|
|
29
|
-
disabled?: boolean;
|
|
24
|
+
collapsed?: boolean | undefined;
|
|
25
|
+
size?: FloatingActionButtonSize | undefined;
|
|
26
|
+
tone?: FloatingActionButtonTone | undefined;
|
|
27
|
+
position?: FloatingActionButtonPosition | undefined;
|
|
28
|
+
bottomOffset?: number | undefined;
|
|
29
|
+
disabled?: boolean | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* Replaces the icon with a Spinner and ignores presses, for an action already in flight.
|
|
32
32
|
* The button keeps its colours and reports itself busy to assistive technology.
|
|
33
33
|
*/
|
|
34
|
-
loading?: boolean;
|
|
35
|
-
hideOnScroll?: boolean;
|
|
36
|
-
isScrolling?: boolean;
|
|
34
|
+
loading?: boolean | undefined;
|
|
35
|
+
hideOnScroll?: boolean | undefined;
|
|
36
|
+
isScrolling?: boolean | undefined;
|
|
37
37
|
accessibilityLabel: string;
|
|
38
|
-
accessibilityHint?: string;
|
|
38
|
+
accessibilityHint?: string | undefined;
|
|
39
39
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
40
|
-
haptic?: HapticType | false;
|
|
40
|
+
haptic?: HapticType | false | undefined;
|
|
41
41
|
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
42
|
-
style?: StyleProp<ViewStyle
|
|
42
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
43
43
|
/** Alias of style, applied before it on the same node. Use style. */
|
|
44
|
-
containerStyle?: StyleProp<ViewStyle
|
|
45
|
-
labelStyle?: StyleProp<
|
|
46
|
-
testID?: string;
|
|
44
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
45
|
+
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
46
|
+
testID?: string | undefined;
|
|
47
47
|
}
|
|
48
48
|
declare const FloatingActionButton: React.ForwardRefExoticComponent<FloatingActionButtonProps & React.RefAttributes<HostInstance>>;
|
|
49
49
|
export interface FloatingActionButtonGroupAction {
|
|
@@ -53,7 +53,7 @@ export interface FloatingActionButtonGroupAction {
|
|
|
53
53
|
/** Visible text beside the action. Required: an icon-only menu item is not allowed. */
|
|
54
54
|
label: string;
|
|
55
55
|
onPress: () => void;
|
|
56
|
-
tone?: FloatingActionButtonTone;
|
|
56
|
+
tone?: FloatingActionButtonTone | undefined;
|
|
57
57
|
accessibilityLabel: string;
|
|
58
58
|
}
|
|
59
59
|
/** The Group's screen-reader copy. The defaults are English; a consumer passes its own strings. */
|
|
@@ -67,33 +67,33 @@ export declare const DEFAULT_FLOATING_ACTION_BUTTON_GROUP_LABELS: FloatingAction
|
|
|
67
67
|
export interface FloatingActionButtonGroupProps {
|
|
68
68
|
/** Drawn in the primary's ink at the group's size; see `FloatingActionButtonProps.icon`. */
|
|
69
69
|
primaryIcon: SlotIcon;
|
|
70
|
-
primaryActiveIcon?: SlotIcon;
|
|
70
|
+
primaryActiveIcon?: SlotIcon | undefined;
|
|
71
71
|
/** 2 to 6 actions, each with a visible label. Only the first 6 are drawn. */
|
|
72
72
|
actions: FloatingActionButtonGroupAction[];
|
|
73
|
-
expanded?: boolean;
|
|
74
|
-
defaultExpanded?: boolean;
|
|
75
|
-
onExpandedChange?: (expanded: boolean) => void;
|
|
73
|
+
expanded?: boolean | undefined;
|
|
74
|
+
defaultExpanded?: boolean | undefined;
|
|
75
|
+
onExpandedChange?: ((expanded: boolean) => void) | undefined;
|
|
76
76
|
/** Screen-reader copy, merged over the English defaults. */
|
|
77
|
-
labels?: Partial<FloatingActionButtonGroupLabels
|
|
78
|
-
position?: FloatingActionButtonPosition;
|
|
79
|
-
bottomOffset?: number;
|
|
80
|
-
size?: FloatingActionButtonSize;
|
|
81
|
-
accessibilityLabel?: string;
|
|
77
|
+
labels?: Partial<FloatingActionButtonGroupLabels> | undefined;
|
|
78
|
+
position?: FloatingActionButtonPosition | undefined;
|
|
79
|
+
bottomOffset?: number | undefined;
|
|
80
|
+
size?: FloatingActionButtonSize | undefined;
|
|
81
|
+
accessibilityLabel?: string | undefined;
|
|
82
82
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
83
|
-
haptic?: HapticType | false;
|
|
83
|
+
haptic?: HapticType | false | undefined;
|
|
84
84
|
/**
|
|
85
85
|
* Slide the whole group off the bottom edge while `isScrolling` is true,
|
|
86
86
|
* the same way the single button does. An open group closes first.
|
|
87
87
|
*/
|
|
88
|
-
hideOnScroll?: boolean;
|
|
88
|
+
hideOnScroll?: boolean | undefined;
|
|
89
89
|
/** Whether the list behind the group is scrolling right now; wire to your scroll handler. */
|
|
90
|
-
isScrolling?: boolean;
|
|
90
|
+
isScrolling?: boolean | undefined;
|
|
91
91
|
/** Styles the group wrapper, not an alias of `style`. */
|
|
92
|
-
containerStyle?: StyleProp<ViewStyle
|
|
93
|
-
secondaryActionStyle?: StyleProp<ViewStyle
|
|
94
|
-
labelPillStyle?: StyleProp<ViewStyle
|
|
95
|
-
labelStyle?: StyleProp<
|
|
96
|
-
testID?: string;
|
|
92
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
93
|
+
secondaryActionStyle?: StyleProp<ViewStyle> | undefined;
|
|
94
|
+
labelPillStyle?: StyleProp<ViewStyle> | undefined;
|
|
95
|
+
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
96
|
+
testID?: string | undefined;
|
|
97
97
|
}
|
|
98
98
|
declare const FloatingActionButtonGroup: React.FC<FloatingActionButtonGroupProps>;
|
|
99
99
|
export { FloatingActionButton, FloatingActionButtonGroup };
|