@webority/mobile-ui 0.149.0 → 0.152.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas-kit/kit.js +13 -56714
- package/dist/canvas-kit/manifest.json +157 -56
- package/dist/canvas-kit/release.json +6 -6
- package/lib/commonjs/components/Accordion/Accordion.js +1 -1
- package/lib/commonjs/components/AppBar/AppBar.js +1 -1
- package/lib/commonjs/components/AppIcon/AppIcon.js +1 -1
- package/lib/commonjs/components/AppIcon/glyphs.g.js +1 -1
- package/lib/commonjs/components/AsyncBlock/AsyncBlock.js +1 -1
- package/lib/commonjs/components/AuthedImage/AuthedImage.js +1 -1
- package/lib/commonjs/components/AuthedImage/authedImageCache.js +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +1 -1
- package/lib/commonjs/components/Badge/Badge.js +1 -1
- package/lib/commonjs/components/Banner/Banner.js +1 -1
- package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/commonjs/components/Box/Box.js +1 -1
- package/lib/commonjs/components/Button/Button.js +1 -1
- package/lib/commonjs/components/Calendar/calendarStyles.js +1 -1
- package/lib/commonjs/components/Card/Card.js +1 -1
- package/lib/commonjs/components/Carousel/Carousel.js +1 -1
- package/lib/commonjs/components/Chip/Chip.js +1 -1
- package/lib/commonjs/components/ChoiceGroup/ChoiceGroup.js +1 -1
- package/lib/commonjs/components/Confetti/Confetti.js +1 -1
- package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
- package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
- package/lib/commonjs/components/Dialog/Dialog.js +1 -1
- package/lib/commonjs/components/FilePicker/FilePicker.js +1 -1
- package/lib/commonjs/components/FileViewer/fileSource.js +1 -1
- package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/commonjs/components/InlineSelect/InlineSelect.js +1 -1
- package/lib/commonjs/components/Input/Input.js +1 -1
- package/lib/commonjs/components/ListItem/ListItem.js +1 -1
- package/lib/commonjs/components/Markdown/Markdown.js +1 -1
- package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
- package/lib/commonjs/components/Menu/focusHost.js +1 -1
- package/lib/commonjs/components/NonModalBottomSheet/NonModalBottomSheet.js +1 -0
- package/lib/commonjs/components/NonModalBottomSheet/index.js +1 -0
- package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/commonjs/components/OptionSheet/optionAccessors.js +1 -0
- package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/commonjs/components/ProgressRing/ProgressRing.js +1 -1
- package/lib/commonjs/components/Radio/RadioGroup.js +1 -1
- package/lib/commonjs/components/Rating/Rating.js +1 -1
- package/lib/commonjs/components/Repeater/Repeater.js +1 -1
- package/lib/commonjs/components/Screen/Screen.js +1 -1
- package/lib/commonjs/components/SearchBar/useRecentSearches.js +1 -1
- package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/commonjs/components/Select/Select.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonList.js +1 -1
- package/lib/commonjs/components/Slider/Slider.js +1 -1
- package/lib/commonjs/components/SliderField/SliderField.js +1 -1
- package/lib/commonjs/components/SortableList/SortableList.js +1 -1
- package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
- package/lib/commonjs/components/SquircleFill/SquircleFill.js +1 -1
- package/lib/commonjs/components/StatTile/StatTile.js +1 -1
- package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
- package/lib/commonjs/components/StatusBadge/statusMap.js +1 -1
- package/lib/commonjs/components/Stepper/Stepper.js +1 -1
- package/lib/commonjs/components/Text/Text.js +1 -1
- package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
- package/lib/commonjs/components/Toast/Toast.js +1 -1
- package/lib/commonjs/components/WheelPicker/Wheel.js +1 -1
- package/lib/commonjs/components/WheelPicker/WheelPicker.js +1 -1
- package/lib/commonjs/components/index.js +1 -1
- package/lib/commonjs/form/HookFormField.js +1 -1
- package/lib/commonjs/form/path.js +1 -1
- package/lib/commonjs/hooks/useControllableState.js +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/specs/NativePdfRasterizer.js +1 -1
- package/lib/commonjs/theme/ThemeContext.js +1 -1
- package/lib/commonjs/theme/animatedValue.js +1 -1
- package/lib/commonjs/theme/componentSizes.js +1 -1
- package/lib/commonjs/theme/merge.js +1 -1
- package/lib/commonjs/theme/scale.js +1 -1
- package/lib/commonjs/theme/tokens.generated.js +1 -1
- package/lib/commonjs/utils/complete.js +1 -0
- package/lib/commonjs/utils/guards.js +1 -0
- package/lib/commonjs/utils/hapticUtils.js +1 -1
- package/lib/module/components/Accordion/Accordion.js +1 -1
- package/lib/module/components/AppBar/AppBar.js +1 -1
- package/lib/module/components/AppIcon/AppIcon.js +1 -1
- package/lib/module/components/AppIcon/glyphs.g.js +1 -1
- package/lib/module/components/AsyncBlock/AsyncBlock.js +1 -1
- package/lib/module/components/AuthedImage/AuthedImage.js +1 -1
- package/lib/module/components/AuthedImage/authedImageCache.js +1 -1
- package/lib/module/components/Avatar/Avatar.js +1 -1
- package/lib/module/components/Badge/Badge.js +1 -1
- package/lib/module/components/Banner/Banner.js +1 -1
- package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/module/components/Box/Box.js +1 -1
- package/lib/module/components/Button/Button.js +1 -1
- package/lib/module/components/Calendar/calendarStyles.js +1 -1
- package/lib/module/components/Card/Card.js +1 -1
- package/lib/module/components/Carousel/Carousel.js +1 -1
- package/lib/module/components/Chip/Chip.js +1 -1
- package/lib/module/components/ChoiceGroup/ChoiceGroup.js +1 -1
- package/lib/module/components/Confetti/Confetti.js +1 -1
- package/lib/module/components/DatePicker/DatePicker.js +1 -1
- package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/module/components/Descriptions/Descriptions.js +1 -1
- package/lib/module/components/Dialog/Dialog.js +1 -1
- package/lib/module/components/FilePicker/FilePicker.js +1 -1
- package/lib/module/components/FileViewer/fileSource.js +1 -1
- package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
- package/lib/module/components/Input/Input.js +1 -1
- package/lib/module/components/ListItem/ListItem.js +1 -1
- package/lib/module/components/Markdown/Markdown.js +1 -1
- package/lib/module/components/Menu/MenuSurface.js +1 -1
- package/lib/module/components/Menu/focusHost.js +1 -1
- package/lib/module/components/NonModalBottomSheet/NonModalBottomSheet.js +1 -0
- package/lib/module/components/NonModalBottomSheet/index.js +1 -0
- package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/module/components/OptionSheet/optionAccessors.js +1 -0
- package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/module/components/ProgressRing/ProgressRing.js +1 -1
- package/lib/module/components/Radio/RadioGroup.js +1 -1
- package/lib/module/components/Rating/Rating.js +1 -1
- package/lib/module/components/Repeater/Repeater.js +1 -1
- package/lib/module/components/Screen/Screen.js +1 -1
- package/lib/module/components/SearchBar/useRecentSearches.js +1 -1
- package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/module/components/Select/Select.js +1 -1
- package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/module/components/Skeleton/SkeletonList.js +1 -1
- package/lib/module/components/Slider/Slider.js +1 -1
- package/lib/module/components/SliderField/SliderField.js +1 -1
- package/lib/module/components/SortableList/SortableList.js +1 -1
- package/lib/module/components/Sparkline/Sparkline.js +1 -1
- package/lib/module/components/SquircleFill/SquircleFill.js +1 -1
- package/lib/module/components/StatTile/StatTile.js +1 -1
- package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
- package/lib/module/components/StatusBadge/statusMap.js +1 -1
- package/lib/module/components/Stepper/Stepper.js +1 -1
- package/lib/module/components/Text/Text.js +1 -1
- package/lib/module/components/TimePicker/TimePicker.js +1 -1
- package/lib/module/components/Toast/Toast.js +1 -1
- package/lib/module/components/WheelPicker/Wheel.js +1 -1
- package/lib/module/components/WheelPicker/WheelPicker.js +1 -1
- package/lib/module/components/index.js +1 -1
- package/lib/module/form/HookFormField.js +1 -1
- package/lib/module/form/path.js +1 -1
- package/lib/module/hooks/useControllableState.js +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/specs/NativePdfRasterizer.js +1 -1
- package/lib/module/theme/ThemeContext.js +1 -1
- package/lib/module/theme/animatedValue.js +1 -1
- package/lib/module/theme/componentSizes.js +1 -1
- package/lib/module/theme/merge.js +1 -1
- package/lib/module/theme/scale.js +1 -1
- package/lib/module/theme/tokens.generated.js +1 -1
- package/lib/module/utils/complete.js +1 -0
- package/lib/module/utils/guards.js +1 -0
- package/lib/module/utils/hapticUtils.js +1 -1
- package/lib/typescript/commonjs/canvasKit/index.d.ts +12 -12
- package/lib/typescript/commonjs/canvasKit/meta.d.ts +5 -7
- package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +22 -22
- package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +23 -23
- package/lib/typescript/commonjs/components/AnimatePresence/AnimatePresence.d.ts +5 -5
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +39 -39
- package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +7 -7
- package/lib/typescript/commonjs/components/AppIcon/defaultIcons.d.ts +2 -1
- package/lib/typescript/commonjs/components/AppIcon/glyphs.g.d.ts +233 -233
- package/lib/typescript/commonjs/components/AppIcon/slotIcon.d.ts +1 -1
- package/lib/typescript/commonjs/components/AppLockOverlay/AppLockOverlay.d.ts +5 -5
- package/lib/typescript/commonjs/components/AsyncBlock/AsyncBlock.d.ts +22 -40
- package/lib/typescript/commonjs/components/AuthedImage/AuthedImage.d.ts +15 -15
- package/lib/typescript/commonjs/components/AuthedImage/authedImageCache.d.ts +2 -2
- package/lib/typescript/commonjs/components/Autocomplete/Autocomplete.d.ts +24 -24
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +41 -39
- package/lib/typescript/commonjs/components/Badge/Badge.d.ts +18 -18
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts +25 -25
- package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +21 -21
- package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +36 -36
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +32 -32
- package/lib/typescript/commonjs/components/Box/Box.d.ts +27 -27
- package/lib/typescript/commonjs/components/Button/Button.d.ts +29 -24
- package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +20 -20
- package/lib/typescript/commonjs/components/Calendar/CalendarDay.d.ts +4 -2
- package/lib/typescript/commonjs/components/Card/Card.d.ts +41 -41
- package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +21 -21
- package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +21 -21
- package/lib/typescript/commonjs/components/Chip/Chip.d.ts +23 -23
- package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +51 -46
- package/lib/typescript/commonjs/components/Composer/Composer.d.ts +27 -27
- package/lib/typescript/commonjs/components/Confetti/Confetti.d.ts +22 -21
- package/lib/typescript/commonjs/components/Confirm/confirm.d.ts +4 -4
- package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +20 -20
- package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +22 -22
- package/lib/typescript/commonjs/components/DateSeparator/DateSeparator.d.ts +9 -9
- package/lib/typescript/commonjs/components/DecimalInput/DecimalInput.d.ts +14 -14
- package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +13 -13
- package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +24 -24
- package/lib/typescript/commonjs/components/Dialog/OverlayActions.d.ts +5 -5
- package/lib/typescript/commonjs/components/Divider/Divider.d.ts +9 -9
- package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +14 -14
- package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +13 -13
- package/lib/typescript/commonjs/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
- package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +2 -2
- package/lib/typescript/commonjs/components/FieldBase/ChoiceText.d.ts +10 -10
- package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +54 -54
- package/lib/typescript/commonjs/components/FieldBase/useFloatingLabel.d.ts +8 -8
- package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +35 -35
- package/lib/typescript/commonjs/components/FileViewer/FileViewer.d.ts +10 -10
- package/lib/typescript/commonjs/components/FileViewer/fileSource.d.ts +3 -3
- package/lib/typescript/commonjs/components/FilterChipRow/FilterChipRow.d.ts +12 -12
- package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +35 -35
- package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +11 -11
- package/lib/typescript/commonjs/components/FormField/FormField.d.ts +15 -15
- package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +11 -11
- package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +14 -14
- package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +14 -14
- package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +36 -31
- package/lib/typescript/commonjs/components/Input/Input.d.ts +47 -47
- package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +7 -7
- package/lib/typescript/commonjs/components/KeyboardToolbar/KeyboardToolbar.d.ts +8 -8
- package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +44 -44
- package/lib/typescript/commonjs/components/ListSection/ListSection.d.ts +6 -6
- package/lib/typescript/commonjs/components/LoaderOverlay/LoaderOverlay.d.ts +17 -11
- package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +15 -15
- package/lib/typescript/commonjs/components/Menu/Menu.d.ts +17 -12
- package/lib/typescript/commonjs/components/Menu/MenuSurface.d.ts +8 -8
- package/lib/typescript/commonjs/components/Menu/menuModel.d.ts +11 -11
- package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +13 -13
- package/lib/typescript/commonjs/components/Menu/webOnly.d.ts +3 -3
- package/lib/typescript/commonjs/components/MessageBubble/MessageBubble.d.ts +20 -20
- package/lib/typescript/commonjs/components/MessageList/MessageList.d.ts +14 -14
- package/lib/typescript/commonjs/components/Modal/Modal.d.ts +19 -19
- package/lib/typescript/commonjs/components/NonModalBottomSheet/NonModalBottomSheet.d.ts +52 -0
- package/lib/typescript/commonjs/components/NonModalBottomSheet/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +27 -27
- package/lib/typescript/commonjs/components/OTPInput/OTPInput.d.ts +20 -20
- package/lib/typescript/commonjs/components/OTPInput/OTPResendRow.d.ts +9 -9
- package/lib/typescript/commonjs/components/OnboardingPager/OnboardingPager.d.ts +5 -5
- package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +39 -34
- package/lib/typescript/commonjs/components/OptionSheet/optionAccessors.d.ts +9 -0
- package/lib/typescript/commonjs/components/PagedListFooter/PagedListFooter.d.ts +2 -2
- package/lib/typescript/commonjs/components/PermissionPrompt/PermissionPrompt.d.ts +6 -6
- package/lib/typescript/commonjs/components/PermissionPrompt/usePermissionPrompt.d.ts +1 -1
- package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +43 -43
- package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +23 -23
- package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +23 -23
- package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +30 -30
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +21 -21
- package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +13 -13
- package/lib/typescript/commonjs/components/Radio/Radio.d.ts +18 -18
- package/lib/typescript/commonjs/components/Radio/RadioDot.d.ts +5 -5
- package/lib/typescript/commonjs/components/Radio/RadioGroup.d.ts +8 -8
- package/lib/typescript/commonjs/components/Rating/Rating.d.ts +15 -15
- package/lib/typescript/commonjs/components/Repeater/Repeater.d.ts +10 -10
- package/lib/typescript/commonjs/components/RichTextEditor/RichTextEditor.d.ts +15 -15
- package/lib/typescript/commonjs/components/ScannerOverlay/ScannerOverlay.d.ts +13 -13
- package/lib/typescript/commonjs/components/Screen/Screen.d.ts +43 -44
- package/lib/typescript/commonjs/components/Screen/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +31 -31
- package/lib/typescript/commonjs/components/SearchBar/SearchPanel.d.ts +6 -6
- package/lib/typescript/commonjs/components/SearchBar/useRecentSearches.d.ts +1 -1
- package/lib/typescript/commonjs/components/SectionHeader/SectionHeader.d.ts +10 -10
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +25 -24
- package/lib/typescript/commonjs/components/Select/Select.d.ts +50 -45
- package/lib/typescript/commonjs/components/SignaturePad/SignaturePad.d.ts +20 -20
- package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +13 -13
- package/lib/typescript/commonjs/components/Skeleton/SkeletonContent.d.ts +9 -9
- package/lib/typescript/commonjs/components/Skeleton/SkeletonList.d.ts +30 -8
- package/lib/typescript/commonjs/components/Skeleton/SkeletonProvider.d.ts +9 -9
- package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +14 -14
- package/lib/typescript/commonjs/components/Slider/Slider.d.ts +30 -30
- package/lib/typescript/commonjs/components/Slider/valueText.d.ts +9 -9
- package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +41 -41
- package/lib/typescript/commonjs/components/SortableList/SortableList.d.ts +5 -5
- package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +13 -13
- package/lib/typescript/commonjs/components/Sparkline/geometry.d.ts +3 -1
- package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +10 -10
- package/lib/typescript/commonjs/components/SquircleFill/SquircleFill.d.ts +3 -3
- package/lib/typescript/commonjs/components/SquircleImage/SquircleImage.d.ts +5 -12
- package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +14 -14
- package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +13 -13
- package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +21 -21
- package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +15 -15
- package/lib/typescript/commonjs/components/Switch/Switch.d.ts +19 -19
- package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +20 -20
- package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +19 -19
- package/lib/typescript/commonjs/components/Text/Text.d.ts +10 -10
- package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +14 -14
- package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +12 -12
- package/lib/typescript/commonjs/components/Toast/Toast.d.ts +17 -17
- package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +8 -8
- package/lib/typescript/commonjs/components/Tooltip/RichTooltipBody.d.ts +4 -4
- package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +24 -19
- package/lib/typescript/commonjs/components/Tour/Tour.d.ts +7 -7
- package/lib/typescript/commonjs/components/TypingIndicator/TypingIndicator.d.ts +6 -6
- package/lib/typescript/commonjs/components/WheelPicker/Wheel.d.ts +10 -6
- package/lib/typescript/commonjs/components/WheelPicker/WheelPicker.d.ts +22 -20
- package/lib/typescript/commonjs/components/ZoomableImage/ZoomableImage.d.ts +8 -8
- package/lib/typescript/commonjs/components/index.d.ts +2 -0
- package/lib/typescript/commonjs/form/HookFormField.d.ts +5 -18
- package/lib/typescript/commonjs/form/path.d.ts +4 -2
- package/lib/typescript/commonjs/form/useFormCompletion.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/useControllableState.d.ts +2 -2
- package/lib/typescript/commonjs/hooks/useDragToDismiss.d.ts +3 -3
- package/lib/typescript/commonjs/hooks/useFieldErrorScroll.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/usePressAnimation.d.ts +4 -4
- package/lib/typescript/commonjs/hooks/useRefreshControl.d.ts +8 -8
- package/lib/typescript/commonjs/hooks/useResendCountdown.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/useScrollDirection.d.ts +1 -1
- package/lib/typescript/commonjs/index.d.ts +1 -1
- package/lib/typescript/commonjs/navigation/DiscardGuard.d.ts +2 -2
- package/lib/typescript/commonjs/navigation/NavigationScreen.d.ts +3 -3
- package/lib/typescript/commonjs/network/NetworkStatusBanner.d.ts +7 -7
- package/lib/typescript/commonjs/theme/Gradient.d.ts +2 -2
- package/lib/typescript/commonjs/theme/ThemeContext.d.ts +5 -5
- package/lib/typescript/commonjs/theme/componentSizes.d.ts +15 -38
- package/lib/typescript/commonjs/theme/types.d.ts +84 -84
- package/lib/typescript/commonjs/utils/announce.d.ts +1 -1
- package/lib/typescript/commonjs/utils/complete.d.ts +5 -0
- package/lib/typescript/commonjs/utils/feedback.d.ts +3 -1
- package/lib/typescript/commonjs/utils/guards.d.ts +9 -0
- package/lib/typescript/commonjs/utils/placement.d.ts +3 -3
- package/lib/typescript/commonjs/utils/squircle.d.ts +2 -2
- package/lib/typescript/module/canvasKit/index.d.ts +12 -12
- package/lib/typescript/module/canvasKit/meta.d.ts +5 -7
- package/lib/typescript/module/components/Accordion/Accordion.d.ts +22 -22
- package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +23 -23
- package/lib/typescript/module/components/AnimatePresence/AnimatePresence.d.ts +5 -5
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +39 -39
- package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +7 -7
- package/lib/typescript/module/components/AppIcon/defaultIcons.d.ts +2 -1
- package/lib/typescript/module/components/AppIcon/glyphs.g.d.ts +233 -233
- package/lib/typescript/module/components/AppIcon/slotIcon.d.ts +1 -1
- package/lib/typescript/module/components/AppLockOverlay/AppLockOverlay.d.ts +5 -5
- package/lib/typescript/module/components/AsyncBlock/AsyncBlock.d.ts +22 -40
- package/lib/typescript/module/components/AuthedImage/AuthedImage.d.ts +15 -15
- package/lib/typescript/module/components/AuthedImage/authedImageCache.d.ts +2 -2
- package/lib/typescript/module/components/Autocomplete/Autocomplete.d.ts +24 -24
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +41 -39
- package/lib/typescript/module/components/Badge/Badge.d.ts +18 -18
- package/lib/typescript/module/components/Banner/Banner.d.ts +25 -25
- package/lib/typescript/module/components/BarChart/BarChart.d.ts +21 -21
- package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +36 -36
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +32 -32
- package/lib/typescript/module/components/Box/Box.d.ts +27 -27
- package/lib/typescript/module/components/Button/Button.d.ts +29 -24
- package/lib/typescript/module/components/Calendar/Calendar.d.ts +20 -20
- package/lib/typescript/module/components/Calendar/CalendarDay.d.ts +4 -2
- package/lib/typescript/module/components/Card/Card.d.ts +41 -41
- package/lib/typescript/module/components/Carousel/Carousel.d.ts +21 -21
- package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +21 -21
- package/lib/typescript/module/components/Chip/Chip.d.ts +23 -23
- package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +51 -46
- package/lib/typescript/module/components/Composer/Composer.d.ts +27 -27
- package/lib/typescript/module/components/Confetti/Confetti.d.ts +22 -21
- package/lib/typescript/module/components/Confirm/confirm.d.ts +4 -4
- package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +20 -20
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +22 -22
- package/lib/typescript/module/components/DateSeparator/DateSeparator.d.ts +9 -9
- package/lib/typescript/module/components/DecimalInput/DecimalInput.d.ts +14 -14
- package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +13 -13
- package/lib/typescript/module/components/Dialog/Dialog.d.ts +24 -24
- package/lib/typescript/module/components/Dialog/OverlayActions.d.ts +5 -5
- package/lib/typescript/module/components/Divider/Divider.d.ts +9 -9
- package/lib/typescript/module/components/Drawer/Drawer.d.ts +14 -14
- package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +13 -13
- package/lib/typescript/module/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
- package/lib/typescript/module/components/FieldBase/Chevron.d.ts +2 -2
- package/lib/typescript/module/components/FieldBase/ChoiceText.d.ts +10 -10
- package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +54 -54
- package/lib/typescript/module/components/FieldBase/useFloatingLabel.d.ts +8 -8
- package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +35 -35
- package/lib/typescript/module/components/FileViewer/FileViewer.d.ts +10 -10
- package/lib/typescript/module/components/FileViewer/fileSource.d.ts +3 -3
- package/lib/typescript/module/components/FilterChipRow/FilterChipRow.d.ts +12 -12
- package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +35 -35
- package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +11 -11
- package/lib/typescript/module/components/FormField/FormField.d.ts +15 -15
- package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +11 -11
- package/lib/typescript/module/components/IconButton/IconButton.d.ts +14 -14
- package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +14 -14
- package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +36 -31
- package/lib/typescript/module/components/Input/Input.d.ts +47 -47
- package/lib/typescript/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +7 -7
- package/lib/typescript/module/components/KeyboardToolbar/KeyboardToolbar.d.ts +8 -8
- package/lib/typescript/module/components/ListItem/ListItem.d.ts +44 -44
- package/lib/typescript/module/components/ListSection/ListSection.d.ts +6 -6
- package/lib/typescript/module/components/LoaderOverlay/LoaderOverlay.d.ts +17 -11
- package/lib/typescript/module/components/Markdown/Markdown.d.ts +15 -15
- package/lib/typescript/module/components/Menu/Menu.d.ts +17 -12
- package/lib/typescript/module/components/Menu/MenuSurface.d.ts +8 -8
- package/lib/typescript/module/components/Menu/menuModel.d.ts +11 -11
- package/lib/typescript/module/components/Menu/useContextMenu.d.ts +13 -13
- package/lib/typescript/module/components/Menu/webOnly.d.ts +3 -3
- package/lib/typescript/module/components/MessageBubble/MessageBubble.d.ts +20 -20
- package/lib/typescript/module/components/MessageList/MessageList.d.ts +14 -14
- package/lib/typescript/module/components/Modal/Modal.d.ts +19 -19
- package/lib/typescript/module/components/NonModalBottomSheet/NonModalBottomSheet.d.ts +52 -0
- package/lib/typescript/module/components/NonModalBottomSheet/index.d.ts +3 -0
- package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +27 -27
- package/lib/typescript/module/components/OTPInput/OTPInput.d.ts +20 -20
- package/lib/typescript/module/components/OTPInput/OTPResendRow.d.ts +9 -9
- package/lib/typescript/module/components/OnboardingPager/OnboardingPager.d.ts +5 -5
- package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +39 -34
- package/lib/typescript/module/components/OptionSheet/optionAccessors.d.ts +9 -0
- package/lib/typescript/module/components/PagedListFooter/PagedListFooter.d.ts +2 -2
- package/lib/typescript/module/components/PermissionPrompt/PermissionPrompt.d.ts +6 -6
- package/lib/typescript/module/components/PermissionPrompt/usePermissionPrompt.d.ts +1 -1
- package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +43 -43
- package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +23 -23
- package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +23 -23
- package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +30 -30
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +21 -21
- package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +13 -13
- package/lib/typescript/module/components/Radio/Radio.d.ts +18 -18
- package/lib/typescript/module/components/Radio/RadioDot.d.ts +5 -5
- package/lib/typescript/module/components/Radio/RadioGroup.d.ts +8 -8
- package/lib/typescript/module/components/Rating/Rating.d.ts +15 -15
- package/lib/typescript/module/components/Repeater/Repeater.d.ts +10 -10
- package/lib/typescript/module/components/RichTextEditor/RichTextEditor.d.ts +15 -15
- package/lib/typescript/module/components/ScannerOverlay/ScannerOverlay.d.ts +13 -13
- package/lib/typescript/module/components/Screen/Screen.d.ts +43 -44
- package/lib/typescript/module/components/Screen/index.d.ts +1 -1
- package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +31 -31
- package/lib/typescript/module/components/SearchBar/SearchPanel.d.ts +6 -6
- package/lib/typescript/module/components/SearchBar/useRecentSearches.d.ts +1 -1
- package/lib/typescript/module/components/SectionHeader/SectionHeader.d.ts +10 -10
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +25 -24
- package/lib/typescript/module/components/Select/Select.d.ts +50 -45
- package/lib/typescript/module/components/SignaturePad/SignaturePad.d.ts +20 -20
- package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +13 -13
- package/lib/typescript/module/components/Skeleton/SkeletonContent.d.ts +9 -9
- package/lib/typescript/module/components/Skeleton/SkeletonList.d.ts +30 -8
- package/lib/typescript/module/components/Skeleton/SkeletonProvider.d.ts +9 -9
- package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +14 -14
- package/lib/typescript/module/components/Slider/Slider.d.ts +30 -30
- package/lib/typescript/module/components/Slider/valueText.d.ts +9 -9
- package/lib/typescript/module/components/SliderField/SliderField.d.ts +41 -41
- package/lib/typescript/module/components/SortableList/SortableList.d.ts +5 -5
- package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +13 -13
- package/lib/typescript/module/components/Sparkline/geometry.d.ts +3 -1
- package/lib/typescript/module/components/Spinner/Spinner.d.ts +10 -10
- package/lib/typescript/module/components/SquircleFill/SquircleFill.d.ts +3 -3
- package/lib/typescript/module/components/SquircleImage/SquircleImage.d.ts +5 -12
- package/lib/typescript/module/components/StatTile/StatTile.d.ts +14 -14
- package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +13 -13
- package/lib/typescript/module/components/Stepper/Stepper.d.ts +21 -21
- package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +15 -15
- package/lib/typescript/module/components/Switch/Switch.d.ts +19 -19
- package/lib/typescript/module/components/Tabs/Tabs.d.ts +20 -20
- package/lib/typescript/module/components/TagInput/TagInput.d.ts +19 -19
- package/lib/typescript/module/components/Text/Text.d.ts +10 -10
- package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +14 -14
- package/lib/typescript/module/components/Timeline/Timeline.d.ts +12 -12
- package/lib/typescript/module/components/Toast/Toast.d.ts +17 -17
- package/lib/typescript/module/components/Toast/ToastProvider.d.ts +8 -8
- package/lib/typescript/module/components/Tooltip/RichTooltipBody.d.ts +4 -4
- package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +24 -19
- package/lib/typescript/module/components/Tour/Tour.d.ts +7 -7
- package/lib/typescript/module/components/TypingIndicator/TypingIndicator.d.ts +6 -6
- package/lib/typescript/module/components/WheelPicker/Wheel.d.ts +10 -6
- package/lib/typescript/module/components/WheelPicker/WheelPicker.d.ts +22 -20
- package/lib/typescript/module/components/ZoomableImage/ZoomableImage.d.ts +8 -8
- package/lib/typescript/module/components/index.d.ts +2 -0
- package/lib/typescript/module/form/HookFormField.d.ts +5 -18
- package/lib/typescript/module/form/path.d.ts +4 -2
- package/lib/typescript/module/form/useFormCompletion.d.ts +1 -1
- package/lib/typescript/module/hooks/useControllableState.d.ts +2 -2
- package/lib/typescript/module/hooks/useDragToDismiss.d.ts +3 -3
- package/lib/typescript/module/hooks/useFieldErrorScroll.d.ts +1 -1
- package/lib/typescript/module/hooks/usePressAnimation.d.ts +4 -4
- package/lib/typescript/module/hooks/useRefreshControl.d.ts +8 -8
- package/lib/typescript/module/hooks/useResendCountdown.d.ts +1 -1
- package/lib/typescript/module/hooks/useScrollDirection.d.ts +1 -1
- package/lib/typescript/module/index.d.ts +1 -1
- package/lib/typescript/module/navigation/DiscardGuard.d.ts +2 -2
- package/lib/typescript/module/navigation/NavigationScreen.d.ts +3 -3
- package/lib/typescript/module/network/NetworkStatusBanner.d.ts +7 -7
- package/lib/typescript/module/theme/Gradient.d.ts +2 -2
- package/lib/typescript/module/theme/ThemeContext.d.ts +5 -5
- package/lib/typescript/module/theme/componentSizes.d.ts +15 -38
- package/lib/typescript/module/theme/types.d.ts +84 -84
- package/lib/typescript/module/utils/announce.d.ts +1 -1
- package/lib/typescript/module/utils/complete.d.ts +5 -0
- package/lib/typescript/module/utils/feedback.d.ts +3 -1
- package/lib/typescript/module/utils/guards.d.ts +9 -0
- package/lib/typescript/module/utils/placement.d.ts +3 -3
- package/lib/typescript/module/utils/squircle.d.ts +2 -2
- package/package.json +9 -9
- package/src/specs/NativePdfRasterizer.ts +1 -1
|
@@ -13,18 +13,40 @@ export interface SkeletonListProps<ItemT> extends Omit<FlatListProps<ItemT>, "da
|
|
|
13
13
|
* Renders one placeholder row. Index is provided so callers may vary
|
|
14
14
|
* placeholder shape per slot if desired. Defaults to `null`.
|
|
15
15
|
*/
|
|
16
|
-
renderPlaceholder?: (index: number) => ReactNode;
|
|
16
|
+
renderPlaceholder?: ((index: number) => ReactNode) | undefined;
|
|
17
17
|
/** How many placeholder rows to render while loading. Default: 3. */
|
|
18
|
-
placeholderCount?: number;
|
|
18
|
+
placeholderCount?: number | undefined;
|
|
19
19
|
/** Animation style — same as Skeleton. */
|
|
20
|
-
variant?: SkeletonVariant;
|
|
20
|
+
variant?: SkeletonVariant | undefined;
|
|
21
21
|
/** Colour override forwarded to the placeholder skeletons. */
|
|
22
|
-
colors?: SkeletonColors;
|
|
22
|
+
colors?: SkeletonColors | undefined;
|
|
23
23
|
/** Screen-reader copy for the placeholder state, merged over the English defaults. */
|
|
24
|
-
labels?: Partial<SkeletonLabels
|
|
24
|
+
labels?: Partial<SkeletonLabels> | undefined;
|
|
25
25
|
/** Style applied to the wrapper View around the placeholders. */
|
|
26
|
-
placeholderContainerStyle?: StyleProp<ViewStyle
|
|
27
|
-
testID?: string;
|
|
26
|
+
placeholderContainerStyle?: StyleProp<ViewStyle> | undefined;
|
|
27
|
+
testID?: string | undefined;
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Drop-in FlatList replacement that renders `placeholderCount` skeleton rows while
|
|
31
|
+
* `loading` is true, then transitions to a real `<FlatList>` of `data` once loaded.
|
|
32
|
+
*
|
|
33
|
+
* Solves the "FlatList with empty data renders nothing" problem so consumer screens
|
|
34
|
+
* don't have to maintain a separate placeholder branch.
|
|
35
|
+
*
|
|
36
|
+
* Inside a vertical ScrollView, pass `scrollEnabled={false}` and let the outer
|
|
37
|
+
* view scroll: once `loading` flips false a real VirtualizedList mounts, and RN
|
|
38
|
+
* logs a nesting error for a same-orientation list — which only shows up after
|
|
39
|
+
* the data arrives, never on first render.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* <SkeletonList
|
|
43
|
+
* loading={isLoading}
|
|
44
|
+
* data={sites}
|
|
45
|
+
* renderItem={({ item }) => <SiteCard item={item} />}
|
|
46
|
+
* renderPlaceholder={() => <SiteCard loading />}
|
|
47
|
+
* placeholderCount={3}
|
|
48
|
+
* horizontal
|
|
49
|
+
* />
|
|
50
|
+
*/
|
|
51
|
+
export declare function SkeletonList<ItemT>(props: SkeletonListProps<ItemT>): ReactElement;
|
|
30
52
|
//# sourceMappingURL=SkeletonList.d.ts.map
|
|
@@ -20,30 +20,30 @@ import type { SkeletonRadius, SkeletonSpeed, SkeletonVariant } from "./Skeleton"
|
|
|
20
20
|
* fade). Either can be omitted — missing keys fall back to the active theme.
|
|
21
21
|
*/
|
|
22
22
|
export interface SkeletonColors {
|
|
23
|
-
background?: string;
|
|
24
|
-
highlight?: string;
|
|
23
|
+
background?: string | undefined;
|
|
24
|
+
highlight?: string | undefined;
|
|
25
25
|
}
|
|
26
26
|
export interface SkeletonProviderDefaults {
|
|
27
|
-
variant?: SkeletonVariant;
|
|
28
|
-
speed?: SkeletonSpeed;
|
|
27
|
+
variant?: SkeletonVariant | undefined;
|
|
28
|
+
speed?: SkeletonSpeed | undefined;
|
|
29
29
|
/** Default `placeholderCount` for `<SkeletonList>` when not specified per-instance. */
|
|
30
|
-
placeholderCount?: number;
|
|
30
|
+
placeholderCount?: number | undefined;
|
|
31
31
|
/** Default `radius` for `<Skeleton>` when not specified per-instance. */
|
|
32
|
-
radius?: SkeletonRadius;
|
|
32
|
+
radius?: SkeletonRadius | undefined;
|
|
33
33
|
/** App-wide colour overrides for the shimmer base + highlight. */
|
|
34
|
-
colors?: SkeletonColors;
|
|
34
|
+
colors?: SkeletonColors | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* Fade duration in ms for the `loading → loaded` cross-fade inside
|
|
37
37
|
* `SkeletonContent`. Default `300`. Set to `0` to disable.
|
|
38
38
|
*/
|
|
39
|
-
fadeDuration?: number;
|
|
39
|
+
fadeDuration?: number | undefined;
|
|
40
40
|
/**
|
|
41
41
|
* Hard override for animation. `'auto'` (default) follows the OS
|
|
42
42
|
* "Reduce Motion" preference: shimmer when off, pulse when on. `'always'`
|
|
43
43
|
* forces shimmer regardless. `'never'` forces static — useful for tests or
|
|
44
44
|
* battery-sensitive screens.
|
|
45
45
|
*/
|
|
46
|
-
animation?: "auto" | "always" | "never";
|
|
46
|
+
animation?: "auto" | "always" | "never" | undefined;
|
|
47
47
|
}
|
|
48
48
|
export interface SkeletonProviderProps extends SkeletonProviderDefaults {
|
|
49
49
|
children: ReactNode;
|
|
@@ -14,25 +14,25 @@ export interface SlideToConfirmProps {
|
|
|
14
14
|
/** Fired once the handle is dragged past the threshold. */
|
|
15
15
|
onConfirm: () => void;
|
|
16
16
|
/** Resting label (centred). Default `labels.slide`. */
|
|
17
|
-
label?: string;
|
|
18
|
-
tone?: SlideToConfirmTone;
|
|
19
|
-
size?: SlideToConfirmSize;
|
|
20
|
-
disabled?: boolean;
|
|
17
|
+
label?: string | undefined;
|
|
18
|
+
tone?: SlideToConfirmTone | undefined;
|
|
19
|
+
size?: SlideToConfirmSize | undefined;
|
|
20
|
+
disabled?: boolean | undefined;
|
|
21
21
|
/** Fraction of the track (0–1) the handle must cross to confirm. Default 0.9. */
|
|
22
|
-
threshold?: number;
|
|
22
|
+
threshold?: number | undefined;
|
|
23
23
|
/** Auto-reset this many ms after confirm, or `false` to stay confirmed. Default `false`. */
|
|
24
|
-
resetAfter?: number | false;
|
|
24
|
+
resetAfter?: number | false | undefined;
|
|
25
25
|
/** Haptic on confirm. Pass `false` to disable or a `HapticType` to override. Default `'notificationSuccess'`. */
|
|
26
|
-
haptic?: HapticType | false;
|
|
26
|
+
haptic?: HapticType | false | undefined;
|
|
27
27
|
/** Handle glyph. Defaults to a right-chevron. */
|
|
28
|
-
icon?: React.ReactNode;
|
|
28
|
+
icon?: React.ReactNode | undefined;
|
|
29
29
|
/** Replaces the resting, confirmed and action texts. */
|
|
30
|
-
labels?: Partial<SlideToConfirmLabels
|
|
31
|
-
style?: StyleProp<ViewStyle
|
|
32
|
-
trackStyle?: StyleProp<ViewStyle
|
|
33
|
-
handleStyle?: StyleProp<ViewStyle
|
|
34
|
-
labelStyle?: StyleProp<TextStyle
|
|
35
|
-
testID?: string;
|
|
30
|
+
labels?: Partial<SlideToConfirmLabels> | undefined;
|
|
31
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
32
|
+
trackStyle?: StyleProp<ViewStyle> | undefined;
|
|
33
|
+
handleStyle?: StyleProp<ViewStyle> | undefined;
|
|
34
|
+
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
35
|
+
testID?: string | undefined;
|
|
36
36
|
}
|
|
37
37
|
declare const SlideToConfirm: React.ForwardRefExoticComponent<SlideToConfirmProps & React.RefAttributes<HostInstance>>;
|
|
38
38
|
export { SlideToConfirm };
|
|
@@ -16,23 +16,23 @@ export type SliderSize = Extract<Size, "sm" | "md" | "lg">;
|
|
|
16
16
|
*/
|
|
17
17
|
export type SliderVariant = "default" | "inset" | "minimal" | "bar";
|
|
18
18
|
interface SliderCommonProps {
|
|
19
|
-
min?: number;
|
|
20
|
-
max?: number;
|
|
21
|
-
step?: number;
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
tone?: SliderTone;
|
|
24
|
-
size?: SliderSize;
|
|
19
|
+
min?: number | undefined;
|
|
20
|
+
max?: number | undefined;
|
|
21
|
+
step?: number | undefined;
|
|
22
|
+
disabled?: boolean | undefined;
|
|
23
|
+
tone?: SliderTone | undefined;
|
|
24
|
+
size?: SliderSize | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* Visual style. Default `'default'`. The library's per-size track-height and
|
|
27
27
|
* thumb-diameter tokens size the `default` variant only: the other variants
|
|
28
28
|
* carry their own proportions, which a single pair of numbers would break.
|
|
29
29
|
*/
|
|
30
|
-
variant?: SliderVariant;
|
|
30
|
+
variant?: SliderVariant | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* A value bubble above the thumb. `true` shows it while the thumb is being
|
|
33
33
|
* dragged; `'always'` keeps it up. Default `false`.
|
|
34
34
|
*/
|
|
35
|
-
showLabel?: boolean | "always";
|
|
35
|
+
showLabel?: boolean | "always" | undefined;
|
|
36
36
|
/**
|
|
37
37
|
* Keep the thumb on the step positions while it is dragged. Default
|
|
38
38
|
* `false`: the thumb follows the finger and settles on the nearest step
|
|
@@ -40,14 +40,14 @@ interface SliderCommonProps {
|
|
|
40
40
|
* thumb pinned to the steps stands still for a few frames and then hops a
|
|
41
41
|
* step, which reads as a stutter on a fine step and a jerk on a coarse one.
|
|
42
42
|
*/
|
|
43
|
-
snapThumb?: boolean;
|
|
44
|
-
formatLabel?: (value: number) => string;
|
|
43
|
+
snapThumb?: boolean | undefined;
|
|
44
|
+
formatLabel?: ((value: number) => string) | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* Draws the bubble's content in place of `formatLabel`'s text, for a
|
|
47
47
|
* counting number or any richer node. Its container is the bubble itself.
|
|
48
48
|
*/
|
|
49
|
-
renderLabel?: (value: number) => React.ReactNode;
|
|
50
|
-
accessibilityLabel?: string;
|
|
49
|
+
renderLabel?: ((value: number) => React.ReactNode) | undefined;
|
|
50
|
+
accessibilityLabel?: string | undefined;
|
|
51
51
|
/**
|
|
52
52
|
* Haptic feedback: once when a drag starts and once when it arrives at
|
|
53
53
|
* `min` or `max`, plus every accessibility step and track tap. Never on
|
|
@@ -55,34 +55,34 @@ interface SliderCommonProps {
|
|
|
55
55
|
* hundred late, bunched pulses under the finger feel like the thumb
|
|
56
56
|
* catching. Pass false to disable; pass a HapticType to override.
|
|
57
57
|
*/
|
|
58
|
-
haptic?: HapticType | false;
|
|
58
|
+
haptic?: HapticType | false | undefined;
|
|
59
59
|
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
60
|
-
style?: StyleProp<ViewStyle
|
|
60
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
61
61
|
/** Alias of style, applied before it on the same node. Use style. */
|
|
62
|
-
containerStyle?: StyleProp<ViewStyle
|
|
63
|
-
trackStyle?: StyleProp<ViewStyle
|
|
64
|
-
fillStyle?: StyleProp<ViewStyle
|
|
65
|
-
thumbStyle?: StyleProp<ViewStyle
|
|
66
|
-
labelStyle?: StyleProp<TextStyle
|
|
62
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
63
|
+
trackStyle?: StyleProp<ViewStyle> | undefined;
|
|
64
|
+
fillStyle?: StyleProp<ViewStyle> | undefined;
|
|
65
|
+
thumbStyle?: StyleProp<ViewStyle> | undefined;
|
|
66
|
+
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
67
67
|
/** Override the thumb press-scale target (default 1.1). */
|
|
68
|
-
thumbPressScale?: number;
|
|
68
|
+
thumbPressScale?: number | undefined;
|
|
69
69
|
/** Override the label fade duration (default theme.motion.duration.fast). */
|
|
70
|
-
labelShowDuration?: number;
|
|
70
|
+
labelShowDuration?: number | undefined;
|
|
71
71
|
/** Override the label final opacity when visible (default 1). */
|
|
72
|
-
labelOpacity?: number;
|
|
73
|
-
testID?: string;
|
|
72
|
+
labelOpacity?: number | undefined;
|
|
73
|
+
testID?: string | undefined;
|
|
74
74
|
}
|
|
75
75
|
export interface SliderSingleProps extends SliderCommonProps {
|
|
76
|
-
range?: false;
|
|
77
|
-
value?: number;
|
|
78
|
-
defaultValue?: number;
|
|
79
|
-
onChange?: (value: number) => void;
|
|
76
|
+
range?: false | undefined;
|
|
77
|
+
value?: number | undefined;
|
|
78
|
+
defaultValue?: number | undefined;
|
|
79
|
+
onChange?: ((value: number) => void) | undefined;
|
|
80
80
|
}
|
|
81
81
|
export interface SliderRangeProps extends SliderCommonProps {
|
|
82
82
|
range: true;
|
|
83
|
-
value?: [number, number];
|
|
84
|
-
defaultValue?: [number, number];
|
|
85
|
-
onChange?: (value: [number, number]) => void;
|
|
83
|
+
value?: [number, number] | undefined;
|
|
84
|
+
defaultValue?: [number, number] | undefined;
|
|
85
|
+
onChange?: ((value: [number, number]) => void) | undefined;
|
|
86
86
|
}
|
|
87
87
|
export type SliderProps = SliderSingleProps | SliderRangeProps;
|
|
88
88
|
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HostInstance>>;
|
|
@@ -17,16 +17,16 @@ export interface CountingTextProps {
|
|
|
17
17
|
/** Turns the (rounded) shown value into text. */
|
|
18
18
|
format: (value: number) => string;
|
|
19
19
|
/** Decimals the shown value is rounded to before formatting, so a step of 1 never shows `70.5` mid-count. */
|
|
20
|
-
decimals?: number;
|
|
20
|
+
decimals?: number | undefined;
|
|
21
21
|
/** Length of the count in ms. `0` jumps. */
|
|
22
22
|
duration: number;
|
|
23
23
|
/**
|
|
24
24
|
* When this changes the number jumps instead of counting: a unit change
|
|
25
25
|
* (Lakh to Crore) would otherwise read `99.5` sliding to `1.0`.
|
|
26
26
|
*/
|
|
27
|
-
jumpKey?: string;
|
|
28
|
-
style?: StyleProp<TextStyle
|
|
29
|
-
testID?: string;
|
|
27
|
+
jumpKey?: string | undefined;
|
|
28
|
+
style?: StyleProp<TextStyle> | undefined;
|
|
29
|
+
testID?: string | undefined;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* A number that counts from its last shown value to the new one. It lives in
|
|
@@ -41,7 +41,7 @@ export interface UseValueDraftOptions {
|
|
|
41
41
|
/** Text of the box when it is not being edited. */
|
|
42
42
|
format: (value: number) => string;
|
|
43
43
|
/** Turns the box text into a number; `null` for nothing typed yet. */
|
|
44
|
-
parse?: (text: string) => number | null;
|
|
44
|
+
parse?: ((text: string) => number | null) | undefined;
|
|
45
45
|
/** Receives the clamped value on every keystroke that parses, and the snapped one on blur. */
|
|
46
46
|
onChange: (value: number) => void;
|
|
47
47
|
}
|
|
@@ -68,16 +68,16 @@ export interface RollingTextProps {
|
|
|
68
68
|
* `up` for a value that grew: the old character leaves upward and the new
|
|
69
69
|
* one rises in from below, like an odometer. `down` reverses it.
|
|
70
70
|
*/
|
|
71
|
-
direction?: RollDirection;
|
|
71
|
+
direction?: RollDirection | undefined;
|
|
72
72
|
/** Length of one roll in ms. `0` swaps in place. */
|
|
73
73
|
duration: number;
|
|
74
74
|
/**
|
|
75
75
|
* `true` rolls each character on its own (digits). `false` treats the
|
|
76
76
|
* whole text as one piece that crossfades (a unit word).
|
|
77
77
|
*/
|
|
78
|
-
perCharacter?: boolean;
|
|
79
|
-
style?: StyleProp<TextStyle
|
|
80
|
-
testID?: string;
|
|
78
|
+
perCharacter?: boolean | undefined;
|
|
79
|
+
style?: StyleProp<TextStyle> | undefined;
|
|
80
|
+
testID?: string | undefined;
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Text whose characters roll vertically to their new values, the way a
|
|
@@ -15,80 +15,80 @@ export interface SliderFieldLabels {
|
|
|
15
15
|
export declare const DEFAULT_SLIDER_FIELD_LABELS: Readonly<SliderFieldLabels>;
|
|
16
16
|
interface SliderFieldCommonProps {
|
|
17
17
|
/** Field label above the slider. */
|
|
18
|
-
label?: string;
|
|
18
|
+
label?: string | undefined;
|
|
19
19
|
/** Muted text after the label, such as `(%)`. */
|
|
20
|
-
unit?: string;
|
|
20
|
+
unit?: string | undefined;
|
|
21
21
|
/** Opens in a tooltip from an info icon after the label. */
|
|
22
|
-
info?: string;
|
|
22
|
+
info?: string | undefined;
|
|
23
23
|
/** Appends the required marker to the label. */
|
|
24
|
-
required?: boolean;
|
|
25
|
-
helperText?: string;
|
|
24
|
+
required?: boolean | undefined;
|
|
25
|
+
helperText?: string | undefined;
|
|
26
26
|
/**
|
|
27
27
|
* A string shows in place of `helperText`, in the error colour; `true` shows the error state without a
|
|
28
28
|
* message. The value box turns red with an icon either way.
|
|
29
29
|
*/
|
|
30
|
-
error?: string | boolean;
|
|
31
|
-
min?: number;
|
|
32
|
-
max?: number;
|
|
33
|
-
step?: number;
|
|
34
|
-
disabled?: boolean;
|
|
35
|
-
tone?: SliderTone;
|
|
36
|
-
size?: SliderSize;
|
|
30
|
+
error?: string | boolean | undefined;
|
|
31
|
+
min?: number | undefined;
|
|
32
|
+
max?: number | undefined;
|
|
33
|
+
step?: number | undefined;
|
|
34
|
+
disabled?: boolean | undefined;
|
|
35
|
+
tone?: SliderTone | undefined;
|
|
36
|
+
size?: SliderSize | undefined;
|
|
37
37
|
/** The Slider's look. Default `'default'`. */
|
|
38
|
-
variant?: SliderVariant;
|
|
39
|
-
haptic?: HapticType | false;
|
|
38
|
+
variant?: SliderVariant | undefined;
|
|
39
|
+
haptic?: HapticType | false | undefined;
|
|
40
40
|
/** A value bubble that stays up above each thumb and counts to the new value. Default `true`. */
|
|
41
|
-
showBubble?: boolean;
|
|
41
|
+
showBubble?: boolean | undefined;
|
|
42
42
|
/** The `min` and `max` values at the ends of the track. Default `true`. */
|
|
43
|
-
showBounds?: boolean;
|
|
43
|
+
showBounds?: boolean | undefined;
|
|
44
44
|
/**
|
|
45
45
|
* An editable value box: to the right of the track, or one at each end in
|
|
46
46
|
* `range` mode (where they replace the bounds). Default `false`.
|
|
47
47
|
*/
|
|
48
|
-
showInput?: boolean;
|
|
48
|
+
showInput?: boolean | undefined;
|
|
49
49
|
/** Minus and plus buttons at the ends of the track, stepping by `step`. Single mode only. Default `false`. */
|
|
50
|
-
showStepper?: boolean;
|
|
50
|
+
showStepper?: boolean | undefined;
|
|
51
51
|
/** Icon at the start of the row, outside the bounds. */
|
|
52
|
-
leftIcon?: SlotIcon;
|
|
52
|
+
leftIcon?: SlotIcon | undefined;
|
|
53
53
|
/** Icon at the end of the row, outside the bounds. */
|
|
54
|
-
rightIcon?: SlotIcon;
|
|
54
|
+
rightIcon?: SlotIcon | undefined;
|
|
55
55
|
/** Replaces the formatted `min` at the start of the track. */
|
|
56
|
-
startLabel?: string;
|
|
56
|
+
startLabel?: string | undefined;
|
|
57
57
|
/** Replaces the formatted `max` at the end of the track. */
|
|
58
|
-
endLabel?: string;
|
|
58
|
+
endLabel?: string | undefined;
|
|
59
59
|
/** One formatter for the bubble, the bounds and the box: `70%`, `$2,500`, `Very Bright`. */
|
|
60
|
-
formatValue?: (value: number) => string;
|
|
60
|
+
formatValue?: ((value: number) => string) | undefined;
|
|
61
61
|
/** Turns the box text back into a number; `null` for nothing typed yet. Default: digits and one point. */
|
|
62
|
-
parseInput?: (text: string) => number | null;
|
|
62
|
+
parseInput?: ((text: string) => number | null) | undefined;
|
|
63
63
|
/**
|
|
64
64
|
* Length in ms of the bubble's count. Default `theme.motion.duration.fast`,
|
|
65
65
|
* which the ThemeProvider collapses to 0 under reduced motion.
|
|
66
66
|
*/
|
|
67
|
-
animationDuration?: number;
|
|
67
|
+
animationDuration?: number | undefined;
|
|
68
68
|
/** Width of each value box. Default 72. */
|
|
69
|
-
inputWidth?: number;
|
|
69
|
+
inputWidth?: number | undefined;
|
|
70
70
|
/** Replaces the spoken names of the stepper buttons and value boxes. */
|
|
71
|
-
labels?: Partial<SliderFieldLabels
|
|
71
|
+
labels?: Partial<SliderFieldLabels> | undefined;
|
|
72
72
|
/** Read out for the slider. Defaults to `label`. */
|
|
73
|
-
accessibilityLabel?: string;
|
|
74
|
-
style?: StyleProp<ViewStyle
|
|
75
|
-
labelStyle?: StyleProp<TextStyle
|
|
76
|
-
boundStyle?: StyleProp<TextStyle
|
|
77
|
-
sliderStyle?: StyleProp<ViewStyle
|
|
78
|
-
inputStyle?: StyleProp<ViewStyle
|
|
79
|
-
testID?: string;
|
|
73
|
+
accessibilityLabel?: string | undefined;
|
|
74
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
75
|
+
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
76
|
+
boundStyle?: StyleProp<TextStyle> | undefined;
|
|
77
|
+
sliderStyle?: StyleProp<ViewStyle> | undefined;
|
|
78
|
+
inputStyle?: StyleProp<ViewStyle> | undefined;
|
|
79
|
+
testID?: string | undefined;
|
|
80
80
|
}
|
|
81
81
|
interface SliderFieldSingleProps extends SliderFieldCommonProps {
|
|
82
|
-
range?: false;
|
|
83
|
-
value?: number;
|
|
84
|
-
defaultValue?: number;
|
|
85
|
-
onChange?: (value: number) => void;
|
|
82
|
+
range?: false | undefined;
|
|
83
|
+
value?: number | undefined;
|
|
84
|
+
defaultValue?: number | undefined;
|
|
85
|
+
onChange?: ((value: number) => void) | undefined;
|
|
86
86
|
}
|
|
87
87
|
interface SliderFieldRangeProps extends SliderFieldCommonProps {
|
|
88
88
|
range: true;
|
|
89
|
-
value?: [number, number];
|
|
90
|
-
defaultValue?: [number, number];
|
|
91
|
-
onChange?: (value: [number, number]) => void;
|
|
89
|
+
value?: [number, number] | undefined;
|
|
90
|
+
defaultValue?: [number, number] | undefined;
|
|
91
|
+
onChange?: ((value: [number, number]) => void) | undefined;
|
|
92
92
|
}
|
|
93
93
|
export type SliderFieldProps = SliderFieldSingleProps | SliderFieldRangeProps;
|
|
94
94
|
declare const SliderField: React.ForwardRefExoticComponent<SliderFieldProps & React.RefAttributes<HostInstance>>;
|
|
@@ -30,11 +30,11 @@ export interface SortableListProps<T> {
|
|
|
30
30
|
/** Called with the keys in their new order after a drop or a "Move up" or "Move down" action. */
|
|
31
31
|
onReorder: (keys: string[]) => void;
|
|
32
32
|
/** Only the drag handle lifts a row; by default a long press on the row does. */
|
|
33
|
-
handle?: boolean;
|
|
34
|
-
disabled?: boolean;
|
|
35
|
-
accessibilityLabel?: string;
|
|
36
|
-
labels?: Partial<SortableListLabels
|
|
37
|
-
testID?: string;
|
|
33
|
+
handle?: boolean | undefined;
|
|
34
|
+
disabled?: boolean | undefined;
|
|
35
|
+
accessibilityLabel?: string | undefined;
|
|
36
|
+
labels?: Partial<SortableListLabels> | undefined;
|
|
37
|
+
testID?: string | undefined;
|
|
38
38
|
}
|
|
39
39
|
export declare function moveItem<T>(items: readonly T[], from: number, to: number): T[];
|
|
40
40
|
/** Top edge of row `index` when the rows stack at their own heights. */
|
|
@@ -20,29 +20,29 @@ export interface SparklineProps {
|
|
|
20
20
|
/** The series, oldest first. Values that are not finite numbers are dropped. */
|
|
21
21
|
data: ReadonlyArray<number>;
|
|
22
22
|
/** Colour of the line. Default `'primary'`. Drawn in the tone's text ink so it holds 3:1 on the page in light and dark. */
|
|
23
|
-
tone?: SparklineTone;
|
|
23
|
+
tone?: SparklineTone | undefined;
|
|
24
24
|
/** Line colour override; wins over `tone`. */
|
|
25
|
-
color?: string;
|
|
25
|
+
color?: string | undefined;
|
|
26
26
|
/** Tint the area under the line. Default `false`. */
|
|
27
|
-
fill?: boolean;
|
|
27
|
+
fill?: boolean | undefined;
|
|
28
28
|
/** Mark the last point with a dot. Default `true`. */
|
|
29
|
-
highlightLast?: boolean;
|
|
29
|
+
highlightLast?: boolean | undefined;
|
|
30
30
|
/** Height in points. Default `32`. */
|
|
31
|
-
height?: number;
|
|
31
|
+
height?: number | undefined;
|
|
32
32
|
/** Width in points. Default: the full width of a column parent; in a row, give a width or `flex: 1` through `style`. */
|
|
33
|
-
width?: number;
|
|
33
|
+
width?: number | undefined;
|
|
34
34
|
/** Line thickness in points. Default `2`. */
|
|
35
|
-
strokeWidth?: number;
|
|
35
|
+
strokeWidth?: number | undefined;
|
|
36
36
|
/** What the series is, read first by a screen reader: "Signups, last 30 days". */
|
|
37
|
-
label?: string;
|
|
37
|
+
label?: string | undefined;
|
|
38
38
|
/** Writes a value into the default accessibility label. Default: mobile-core formatNumber, which follows the configured locale. */
|
|
39
|
-
formatLabel?: (value: number) => string;
|
|
39
|
+
formatLabel?: ((value: number) => string) | undefined;
|
|
40
40
|
/** Replaces the whole accessibility label. */
|
|
41
|
-
accessibilityLabel?: string;
|
|
41
|
+
accessibilityLabel?: string | undefined;
|
|
42
42
|
/** Overrides the words of the default accessibility label; omitted keys keep the defaults. */
|
|
43
|
-
labels?: Partial<SparklineLabels
|
|
44
|
-
style?: StyleProp<ViewStyle
|
|
45
|
-
testID?: string;
|
|
43
|
+
labels?: Partial<SparklineLabels> | undefined;
|
|
44
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
45
|
+
testID?: string | undefined;
|
|
46
46
|
}
|
|
47
47
|
declare const Sparkline: ForwardRefExoticComponent<SparklineProps & RefAttributes<HostInstance>>;
|
|
48
48
|
export { Sparkline };
|
|
@@ -9,6 +9,7 @@ export interface SparklineGeometry {
|
|
|
9
9
|
y: number;
|
|
10
10
|
} | null;
|
|
11
11
|
}
|
|
12
|
+
declare const finite: (data: ReadonlyArray<number>) => number[];
|
|
12
13
|
/**
|
|
13
14
|
* Lays the series out in real pixels. The range is the series' own (a
|
|
14
15
|
* dynamic range, not zero based: a sparkline shows shape, not size); a flat
|
|
@@ -16,5 +17,6 @@ export interface SparklineGeometry {
|
|
|
16
17
|
* that are not finite numbers are dropped.
|
|
17
18
|
*/
|
|
18
19
|
export declare const sparklineGeometry: (data: ReadonlyArray<number>, width: number, height: number, inset: number) => SparklineGeometry;
|
|
19
|
-
export declare const finiteValues:
|
|
20
|
+
export declare const finiteValues: typeof finite;
|
|
21
|
+
export {};
|
|
20
22
|
//# sourceMappingURL=geometry.d.ts.map
|
|
@@ -8,22 +8,22 @@ export interface SpinnerLabels {
|
|
|
8
8
|
}
|
|
9
9
|
export declare const DEFAULT_SPINNER_LABELS: Readonly<SpinnerLabels>;
|
|
10
10
|
export interface SpinnerProps {
|
|
11
|
-
size?: SpinnerSize;
|
|
12
|
-
color?: string;
|
|
13
|
-
message?: string;
|
|
11
|
+
size?: SpinnerSize | undefined;
|
|
12
|
+
color?: string | undefined;
|
|
13
|
+
message?: string | undefined;
|
|
14
14
|
/** Ignored by `variant="contained"`, which fills its own parent instead. */
|
|
15
|
-
overlay?: boolean;
|
|
16
|
-
backdropColor?: string;
|
|
15
|
+
overlay?: boolean | undefined;
|
|
16
|
+
backdropColor?: string | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* `'contained'` draws the indicator on a tinted round container and fills
|
|
19
19
|
* the card or section it sits in (no backdrop, no elevation), so one slow
|
|
20
20
|
* section can load without a full-screen spinner. Library default: `'circular'`.
|
|
21
21
|
*/
|
|
22
|
-
variant?: SpinnerVariant;
|
|
23
|
-
accessibilityLabel?: string;
|
|
24
|
-
labels?: Partial<SpinnerLabels
|
|
25
|
-
style?: StyleProp<ViewStyle
|
|
26
|
-
testID?: string;
|
|
22
|
+
variant?: SpinnerVariant | undefined;
|
|
23
|
+
accessibilityLabel?: string | undefined;
|
|
24
|
+
labels?: Partial<SpinnerLabels> | undefined;
|
|
25
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
26
|
+
testID?: string | undefined;
|
|
27
27
|
}
|
|
28
28
|
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HostInstance>>;
|
|
29
29
|
export { Spinner };
|
|
@@ -30,10 +30,10 @@ export interface SquircleFillProps {
|
|
|
30
30
|
/** Fill colour; an Animated interpolation follows the host's state animation. */
|
|
31
31
|
fill: SquircleColor;
|
|
32
32
|
/** Border colour; omitted or transparent draws no border. */
|
|
33
|
-
stroke?: SquircleColor;
|
|
33
|
+
stroke?: SquircleColor | undefined;
|
|
34
34
|
/** Border width; the path is inset by half of it so the outer edge meets the host's bounds. */
|
|
35
|
-
strokeWidth?: number;
|
|
36
|
-
testID?: string;
|
|
35
|
+
strokeWidth?: number | undefined;
|
|
36
|
+
testID?: string | undefined;
|
|
37
37
|
}
|
|
38
38
|
export declare function SquircleFill({ width, height, radius, fill, stroke, strokeWidth, testID }: SquircleFillProps): import("react").JSX.Element;
|
|
39
39
|
export declare namespace SquircleFill {
|
|
@@ -4,19 +4,12 @@ export interface SquircleImageProps extends ImageProps {
|
|
|
4
4
|
/** Corner radius token of the image: none, sm, md, lg, xl or pill. */
|
|
5
5
|
radius: RadiusName;
|
|
6
6
|
/** Paints the corners outside the smooth curve on Android. Default: the theme's base surface. */
|
|
7
|
-
cornerColor?: string;
|
|
7
|
+
cornerColor?: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
declare function SquircleImage({ radius, cornerColor, style, onLayout, ...imageProps }: SquircleImageProps): import("react").JSX.Element;
|
|
10
|
+
declare namespace SquircleImage {
|
|
11
|
+
var displayName: string;
|
|
8
12
|
}
|
|
9
|
-
/**
|
|
10
|
-
* An expo-image whose corners are smooth on both platforms. iOS clips the
|
|
11
|
-
* image to the continuous curve natively. Android clips to the native corner
|
|
12
|
-
* and paints `cornerColor` over the corners outside the squircle, so it
|
|
13
|
-
* matches the iOS shape without a separate clip. Every expo-image prop passes
|
|
14
|
-
* through.
|
|
15
|
-
*/
|
|
16
|
-
declare const SquircleImage: {
|
|
17
|
-
({ radius, cornerColor, style, onLayout, ...imageProps }: SquircleImageProps): import("react").JSX.Element;
|
|
18
|
-
displayName: string;
|
|
19
|
-
};
|
|
20
13
|
export { SquircleImage };
|
|
21
14
|
export default SquircleImage;
|
|
22
15
|
//# sourceMappingURL=SquircleImage.d.ts.map
|
|
@@ -12,9 +12,9 @@ export interface StatTileTrend {
|
|
|
12
12
|
/** Which way the figure moved. `'flat'` draws a dash and no sign. */
|
|
13
13
|
direction: "up" | "down" | "flat";
|
|
14
14
|
/** Which direction is good news. Colours the change green or red. Default `'up'`. */
|
|
15
|
-
goodWhen?: "up" | "down";
|
|
15
|
+
goodWhen?: "up" | "down" | undefined;
|
|
16
16
|
/** What the change is measured against, written in full: "vs last month". */
|
|
17
|
-
period?: string;
|
|
17
|
+
period?: string | undefined;
|
|
18
18
|
}
|
|
19
19
|
export interface StatTileLabels {
|
|
20
20
|
trendUp: string;
|
|
@@ -28,33 +28,33 @@ export interface StatTileProps {
|
|
|
28
28
|
/** The figure, always given. A string or number is drawn in the heading style; a node is drawn as is. */
|
|
29
29
|
value: NonNullable<ReactNode>;
|
|
30
30
|
/** Leading icon in a tinted circle: an AppIcon name, `{ name, variant }`, a render fn or any node. */
|
|
31
|
-
icon?: SlotIcon;
|
|
31
|
+
icon?: SlotIcon | undefined;
|
|
32
32
|
/** Iconsax style for `icon` given as a name. Default `'linear'`. */
|
|
33
|
-
iconVariant?: IconVariant;
|
|
33
|
+
iconVariant?: IconVariant | undefined;
|
|
34
34
|
/** Tone of the icon circle. Default `'primary'`. */
|
|
35
|
-
tone?: Tone;
|
|
35
|
+
tone?: Tone | undefined;
|
|
36
36
|
/** A small line under the figure (a period, a delta). */
|
|
37
|
-
caption?: ReactNode;
|
|
37
|
+
caption?: ReactNode | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* How the figure changed. Drawn under the figure as an arrow, a sign and the change, so the
|
|
40
40
|
* direction never rests on colour alone: "+12.4% vs last month".
|
|
41
41
|
*/
|
|
42
|
-
trend?: StatTileTrend;
|
|
42
|
+
trend?: StatTileTrend | undefined;
|
|
43
43
|
/** A small chart under the tile's text, usually a `Sparkline`. */
|
|
44
|
-
sparkline?: ReactNode;
|
|
44
|
+
sparkline?: ReactNode | undefined;
|
|
45
45
|
/** Makes the tile pressable, with the button role. */
|
|
46
|
-
onPress?: () => void;
|
|
46
|
+
onPress?: (() => void) | undefined;
|
|
47
47
|
/** Draws a placeholder of the same footprint while the figure loads. */
|
|
48
|
-
loading?: boolean;
|
|
48
|
+
loading?: boolean | undefined;
|
|
49
49
|
/**
|
|
50
50
|
* Announced instead of the label and figure. Defaults to `"label, value"` for a text figure,
|
|
51
51
|
* with the change after it ("up 12.4% vs last month") when there is a `trend`.
|
|
52
52
|
*/
|
|
53
|
-
accessibilityLabel?: string;
|
|
53
|
+
accessibilityLabel?: string | undefined;
|
|
54
54
|
/** The words the spoken trend uses for each direction. Give only the ones to change. */
|
|
55
|
-
labels?: Partial<StatTileLabels
|
|
56
|
-
style?: StyleProp<ViewStyle
|
|
57
|
-
testID?: string;
|
|
55
|
+
labels?: Partial<StatTileLabels> | undefined;
|
|
56
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
57
|
+
testID?: string | undefined;
|
|
58
58
|
}
|
|
59
59
|
declare const StatTile: ForwardRefExoticComponent<StatTileProps & RefAttributes<HostInstance>>;
|
|
60
60
|
export { StatTile };
|