@webority/mobile-ui 0.148.0 → 0.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas-kit/kit.js +13 -56553
- package/dist/canvas-kit/manifest.json +20 -41
- package/dist/canvas-kit/release.json +6 -6
- package/lib/commonjs/components/Accordion/Accordion.js +1 -1
- package/lib/commonjs/components/AppIcon/AppIcon.js +1 -1
- package/lib/commonjs/components/AppIcon/glyphs.g.js +1 -1
- package/lib/commonjs/components/AsyncBlock/AsyncBlock.js +1 -1
- package/lib/commonjs/components/AuthedImage/AuthedImage.js +1 -1
- package/lib/commonjs/components/AuthedImage/authedImageCache.js +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +1 -1
- package/lib/commonjs/components/Badge/Badge.js +1 -1
- package/lib/commonjs/components/Banner/Banner.js +1 -1
- package/lib/commonjs/components/BarChart/BarChart.js +1 -1
- package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/commonjs/components/Box/Box.js +1 -1
- package/lib/commonjs/components/Card/Card.js +1 -1
- package/lib/commonjs/components/Carousel/Carousel.js +1 -1
- package/lib/commonjs/components/Chip/Chip.js +1 -1
- package/lib/commonjs/components/ChoiceGroup/ChoiceGroup.js +1 -1
- package/lib/commonjs/components/Confetti/Confetti.js +1 -1
- package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
- package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
- package/lib/commonjs/components/Dialog/Dialog.js +1 -1
- package/lib/commonjs/components/Drawer/Drawer.js +1 -1
- package/lib/commonjs/components/FieldBase/useFloatingLabel.js +1 -1
- package/lib/commonjs/components/FileViewer/fileSource.js +1 -1
- package/lib/commonjs/components/FileViewer/useFileViewerZoom.js +1 -1
- package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/commonjs/components/InlineSelect/InlineSelect.js +1 -1
- package/lib/commonjs/components/Input/Input.js +1 -1
- package/lib/commonjs/components/ListItem/ListItem.js +1 -1
- package/lib/commonjs/components/Markdown/Markdown.js +1 -1
- package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
- package/lib/commonjs/components/Menu/focusHost.js +1 -1
- package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/commonjs/components/OptionSheet/optionAccessors.js +1 -0
- package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/commonjs/components/ProgressRing/ProgressRing.js +1 -1
- package/lib/commonjs/components/Radio/RadioGroup.js +1 -1
- package/lib/commonjs/components/Rating/Rating.js +1 -1
- package/lib/commonjs/components/Repeater/Repeater.js +1 -1
- package/lib/commonjs/components/Screen/Screen.js +1 -1
- package/lib/commonjs/components/SearchBar/useRecentSearches.js +1 -1
- package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/commonjs/components/Select/Select.js +1 -1
- package/lib/commonjs/components/SignaturePad/SignaturePad.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonList.js +1 -1
- package/lib/commonjs/components/SlideToConfirm/SlideToConfirm.js +1 -1
- package/lib/commonjs/components/Slider/Slider.js +1 -1
- package/lib/commonjs/components/SliderField/SliderField.js +1 -1
- package/lib/commonjs/components/SortableList/SortableList.js +1 -1
- package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
- package/lib/commonjs/components/SquircleFill/SquircleFill.js +1 -1
- package/lib/commonjs/components/StatTile/StatTile.js +1 -1
- package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
- package/lib/commonjs/components/StatusBadge/statusMap.js +1 -1
- package/lib/commonjs/components/Stepper/Stepper.js +1 -1
- package/lib/commonjs/components/Swipeable/Swipeable.js +1 -1
- package/lib/commonjs/components/Text/Text.js +1 -1
- package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
- package/lib/commonjs/components/WheelPicker/Wheel.js +1 -1
- package/lib/commonjs/components/WheelPicker/WheelPicker.js +1 -1
- package/lib/commonjs/components/ZoomableImage/ZoomableImage.js +1 -1
- package/lib/commonjs/form/HookFormField.js +1 -1
- package/lib/commonjs/form/path.js +1 -1
- package/lib/commonjs/hooks/useControllableState.js +1 -1
- package/lib/commonjs/hooks/useDragToDismiss.js +1 -1
- package/lib/commonjs/navigation/NavigationScreen.js +1 -1
- package/lib/commonjs/specs/NativePdfRasterizer.js +1 -1
- package/lib/commonjs/theme/ThemeContext.js +1 -1
- package/lib/commonjs/theme/animatedValue.js +1 -1
- package/lib/commonjs/theme/componentSizes.js +1 -1
- package/lib/commonjs/theme/merge.js +1 -1
- package/lib/commonjs/theme/scale.js +1 -1
- package/lib/commonjs/utils/complete.js +1 -0
- package/lib/commonjs/utils/guards.js +1 -0
- package/lib/commonjs/utils/hapticUtils.js +1 -1
- package/lib/module/components/Accordion/Accordion.js +1 -1
- package/lib/module/components/AppIcon/AppIcon.js +1 -1
- package/lib/module/components/AppIcon/glyphs.g.js +1 -1
- package/lib/module/components/AsyncBlock/AsyncBlock.js +1 -1
- package/lib/module/components/AuthedImage/AuthedImage.js +1 -1
- package/lib/module/components/AuthedImage/authedImageCache.js +1 -1
- package/lib/module/components/Avatar/Avatar.js +1 -1
- package/lib/module/components/Badge/Badge.js +1 -1
- package/lib/module/components/Banner/Banner.js +1 -1
- package/lib/module/components/BarChart/BarChart.js +1 -1
- package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/module/components/Box/Box.js +1 -1
- package/lib/module/components/Card/Card.js +1 -1
- package/lib/module/components/Carousel/Carousel.js +1 -1
- package/lib/module/components/Chip/Chip.js +1 -1
- package/lib/module/components/ChoiceGroup/ChoiceGroup.js +1 -1
- package/lib/module/components/Confetti/Confetti.js +1 -1
- package/lib/module/components/DatePicker/DatePicker.js +1 -1
- package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/module/components/Descriptions/Descriptions.js +1 -1
- package/lib/module/components/Dialog/Dialog.js +1 -1
- package/lib/module/components/Drawer/Drawer.js +1 -1
- package/lib/module/components/FieldBase/useFloatingLabel.js +1 -1
- package/lib/module/components/FileViewer/fileSource.js +1 -1
- package/lib/module/components/FileViewer/useFileViewerZoom.js +1 -1
- package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
- package/lib/module/components/Input/Input.js +1 -1
- package/lib/module/components/ListItem/ListItem.js +1 -1
- package/lib/module/components/Markdown/Markdown.js +1 -1
- package/lib/module/components/Menu/MenuSurface.js +1 -1
- package/lib/module/components/Menu/focusHost.js +1 -1
- package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/module/components/OptionSheet/optionAccessors.js +1 -0
- package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/module/components/ProgressRing/ProgressRing.js +1 -1
- package/lib/module/components/Radio/RadioGroup.js +1 -1
- package/lib/module/components/Rating/Rating.js +1 -1
- package/lib/module/components/Repeater/Repeater.js +1 -1
- package/lib/module/components/Screen/Screen.js +1 -1
- package/lib/module/components/SearchBar/useRecentSearches.js +1 -1
- package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/module/components/Select/Select.js +1 -1
- package/lib/module/components/SignaturePad/SignaturePad.js +1 -1
- package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/module/components/Skeleton/SkeletonList.js +1 -1
- package/lib/module/components/SlideToConfirm/SlideToConfirm.js +1 -1
- package/lib/module/components/Slider/Slider.js +1 -1
- package/lib/module/components/SliderField/SliderField.js +1 -1
- package/lib/module/components/SortableList/SortableList.js +1 -1
- package/lib/module/components/Sparkline/Sparkline.js +1 -1
- package/lib/module/components/SquircleFill/SquircleFill.js +1 -1
- package/lib/module/components/StatTile/StatTile.js +1 -1
- package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
- package/lib/module/components/StatusBadge/statusMap.js +1 -1
- package/lib/module/components/Stepper/Stepper.js +1 -1
- package/lib/module/components/Swipeable/Swipeable.js +1 -1
- package/lib/module/components/Text/Text.js +1 -1
- package/lib/module/components/TimePicker/TimePicker.js +1 -1
- package/lib/module/components/WheelPicker/Wheel.js +1 -1
- package/lib/module/components/WheelPicker/WheelPicker.js +1 -1
- package/lib/module/components/ZoomableImage/ZoomableImage.js +1 -1
- package/lib/module/form/HookFormField.js +1 -1
- package/lib/module/form/path.js +1 -1
- package/lib/module/hooks/useControllableState.js +1 -1
- package/lib/module/hooks/useDragToDismiss.js +1 -1
- package/lib/module/navigation/NavigationScreen.js +1 -1
- package/lib/module/specs/NativePdfRasterizer.js +1 -1
- package/lib/module/theme/ThemeContext.js +1 -1
- package/lib/module/theme/animatedValue.js +1 -1
- package/lib/module/theme/componentSizes.js +1 -1
- package/lib/module/theme/merge.js +1 -1
- package/lib/module/theme/scale.js +1 -1
- package/lib/module/utils/complete.js +1 -0
- package/lib/module/utils/guards.js +1 -0
- package/lib/module/utils/hapticUtils.js +1 -1
- package/lib/typescript/commonjs/canvasKit/index.d.ts +12 -12
- package/lib/typescript/commonjs/canvasKit/meta.d.ts +5 -7
- package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +22 -22
- package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +23 -23
- package/lib/typescript/commonjs/components/AnimatePresence/AnimatePresence.d.ts +5 -5
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +39 -39
- package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +7 -7
- package/lib/typescript/commonjs/components/AppIcon/defaultIcons.d.ts +2 -1
- package/lib/typescript/commonjs/components/AppIcon/glyphs.g.d.ts +233 -233
- package/lib/typescript/commonjs/components/AppIcon/slotIcon.d.ts +1 -1
- package/lib/typescript/commonjs/components/AppLockOverlay/AppLockOverlay.d.ts +5 -5
- package/lib/typescript/commonjs/components/AsyncBlock/AsyncBlock.d.ts +22 -40
- package/lib/typescript/commonjs/components/AuthedImage/AuthedImage.d.ts +15 -15
- package/lib/typescript/commonjs/components/AuthedImage/authedImageCache.d.ts +2 -2
- package/lib/typescript/commonjs/components/Autocomplete/Autocomplete.d.ts +24 -24
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +36 -36
- package/lib/typescript/commonjs/components/Badge/Badge.d.ts +18 -18
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts +25 -25
- package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +21 -21
- package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +36 -36
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +33 -33
- package/lib/typescript/commonjs/components/Box/Box.d.ts +27 -27
- package/lib/typescript/commonjs/components/Button/Button.d.ts +22 -22
- package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +20 -20
- package/lib/typescript/commonjs/components/Calendar/CalendarDay.d.ts +4 -2
- package/lib/typescript/commonjs/components/Card/Card.d.ts +41 -41
- package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +21 -21
- package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +21 -21
- package/lib/typescript/commonjs/components/Chip/Chip.d.ts +23 -23
- package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +51 -46
- package/lib/typescript/commonjs/components/Composer/Composer.d.ts +27 -27
- package/lib/typescript/commonjs/components/Confetti/Confetti.d.ts +22 -21
- package/lib/typescript/commonjs/components/Confirm/confirm.d.ts +4 -4
- package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +20 -20
- package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +22 -22
- package/lib/typescript/commonjs/components/DateSeparator/DateSeparator.d.ts +9 -9
- package/lib/typescript/commonjs/components/DecimalInput/DecimalInput.d.ts +14 -14
- package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +13 -13
- package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +24 -24
- package/lib/typescript/commonjs/components/Dialog/OverlayActions.d.ts +5 -5
- package/lib/typescript/commonjs/components/Divider/Divider.d.ts +9 -9
- package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +15 -15
- package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +13 -13
- package/lib/typescript/commonjs/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
- package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +2 -2
- package/lib/typescript/commonjs/components/FieldBase/ChoiceText.d.ts +10 -10
- package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +54 -54
- package/lib/typescript/commonjs/components/FieldBase/useFloatingLabel.d.ts +8 -8
- package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +35 -35
- package/lib/typescript/commonjs/components/FileViewer/FileViewer.d.ts +10 -10
- package/lib/typescript/commonjs/components/FileViewer/fileSource.d.ts +3 -3
- package/lib/typescript/commonjs/components/FileViewer/useFileViewerZoom.d.ts +3 -3
- package/lib/typescript/commonjs/components/FilterChipRow/FilterChipRow.d.ts +12 -12
- package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +35 -35
- package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +11 -11
- package/lib/typescript/commonjs/components/FormField/FormField.d.ts +15 -15
- package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +11 -11
- package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +14 -14
- package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +14 -14
- package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +36 -31
- package/lib/typescript/commonjs/components/Input/Input.d.ts +47 -47
- package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +7 -7
- package/lib/typescript/commonjs/components/KeyboardToolbar/KeyboardToolbar.d.ts +8 -8
- package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +44 -44
- package/lib/typescript/commonjs/components/ListSection/ListSection.d.ts +6 -6
- package/lib/typescript/commonjs/components/LoaderOverlay/LoaderOverlay.d.ts +17 -11
- package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +15 -15
- package/lib/typescript/commonjs/components/Menu/Menu.d.ts +17 -12
- package/lib/typescript/commonjs/components/Menu/MenuSurface.d.ts +8 -8
- package/lib/typescript/commonjs/components/Menu/menuModel.d.ts +11 -11
- package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +13 -13
- package/lib/typescript/commonjs/components/Menu/webOnly.d.ts +3 -3
- package/lib/typescript/commonjs/components/MessageBubble/MessageBubble.d.ts +20 -20
- package/lib/typescript/commonjs/components/MessageList/MessageList.d.ts +14 -14
- package/lib/typescript/commonjs/components/Modal/Modal.d.ts +19 -19
- package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +27 -27
- package/lib/typescript/commonjs/components/OTPInput/OTPInput.d.ts +20 -20
- package/lib/typescript/commonjs/components/OTPInput/OTPResendRow.d.ts +9 -9
- package/lib/typescript/commonjs/components/OnboardingPager/OnboardingPager.d.ts +5 -5
- package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +33 -33
- package/lib/typescript/commonjs/components/OptionSheet/optionAccessors.d.ts +8 -0
- package/lib/typescript/commonjs/components/PagedListFooter/PagedListFooter.d.ts +2 -2
- package/lib/typescript/commonjs/components/PermissionPrompt/PermissionPrompt.d.ts +6 -6
- package/lib/typescript/commonjs/components/PermissionPrompt/usePermissionPrompt.d.ts +1 -1
- package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +43 -43
- package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +23 -23
- package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +23 -23
- package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +30 -30
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +21 -21
- package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +13 -13
- package/lib/typescript/commonjs/components/Radio/Radio.d.ts +18 -18
- package/lib/typescript/commonjs/components/Radio/RadioDot.d.ts +5 -5
- package/lib/typescript/commonjs/components/Radio/RadioGroup.d.ts +8 -8
- package/lib/typescript/commonjs/components/Rating/Rating.d.ts +15 -15
- package/lib/typescript/commonjs/components/Repeater/Repeater.d.ts +10 -10
- package/lib/typescript/commonjs/components/RichTextEditor/RichTextEditor.d.ts +15 -15
- package/lib/typescript/commonjs/components/ScannerOverlay/ScannerOverlay.d.ts +13 -13
- package/lib/typescript/commonjs/components/Screen/Screen.d.ts +43 -44
- package/lib/typescript/commonjs/components/Screen/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +31 -31
- package/lib/typescript/commonjs/components/SearchBar/SearchPanel.d.ts +6 -6
- package/lib/typescript/commonjs/components/SearchBar/useRecentSearches.d.ts +1 -1
- package/lib/typescript/commonjs/components/SectionHeader/SectionHeader.d.ts +10 -10
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +25 -24
- package/lib/typescript/commonjs/components/Select/Select.d.ts +50 -45
- package/lib/typescript/commonjs/components/SignaturePad/SignaturePad.d.ts +20 -20
- package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +13 -13
- package/lib/typescript/commonjs/components/Skeleton/SkeletonContent.d.ts +9 -9
- package/lib/typescript/commonjs/components/Skeleton/SkeletonList.d.ts +30 -8
- package/lib/typescript/commonjs/components/Skeleton/SkeletonProvider.d.ts +9 -9
- package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +14 -14
- package/lib/typescript/commonjs/components/Slider/Slider.d.ts +30 -30
- package/lib/typescript/commonjs/components/Slider/valueText.d.ts +9 -9
- package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +41 -41
- package/lib/typescript/commonjs/components/SortableList/SortableList.d.ts +5 -5
- package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +13 -13
- package/lib/typescript/commonjs/components/Sparkline/geometry.d.ts +3 -1
- package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +10 -10
- package/lib/typescript/commonjs/components/SquircleFill/SquircleFill.d.ts +3 -3
- package/lib/typescript/commonjs/components/SquircleImage/SquircleImage.d.ts +5 -12
- package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +14 -14
- package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +13 -13
- package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +21 -21
- package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +16 -16
- package/lib/typescript/commonjs/components/Switch/Switch.d.ts +19 -19
- package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +20 -20
- package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +19 -19
- package/lib/typescript/commonjs/components/Text/Text.d.ts +10 -10
- package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +14 -14
- package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +12 -12
- package/lib/typescript/commonjs/components/Toast/Toast.d.ts +17 -17
- package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +8 -8
- package/lib/typescript/commonjs/components/Tooltip/RichTooltipBody.d.ts +4 -4
- package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +24 -19
- package/lib/typescript/commonjs/components/Tour/Tour.d.ts +7 -7
- package/lib/typescript/commonjs/components/TypingIndicator/TypingIndicator.d.ts +6 -6
- package/lib/typescript/commonjs/components/WheelPicker/Wheel.d.ts +6 -6
- package/lib/typescript/commonjs/components/WheelPicker/WheelPicker.d.ts +20 -20
- package/lib/typescript/commonjs/components/ZoomableImage/ZoomableImage.d.ts +8 -8
- package/lib/typescript/commonjs/form/HookFormField.d.ts +5 -18
- package/lib/typescript/commonjs/form/path.d.ts +4 -2
- package/lib/typescript/commonjs/form/useFormCompletion.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/useControllableState.d.ts +2 -2
- package/lib/typescript/commonjs/hooks/useDragToDismiss.d.ts +8 -8
- package/lib/typescript/commonjs/hooks/useFieldErrorScroll.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/usePressAnimation.d.ts +4 -4
- package/lib/typescript/commonjs/hooks/useRefreshControl.d.ts +8 -8
- package/lib/typescript/commonjs/hooks/useResendCountdown.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/useScrollDirection.d.ts +1 -1
- package/lib/typescript/commonjs/navigation/DiscardGuard.d.ts +2 -2
- package/lib/typescript/commonjs/navigation/NavigationScreen.d.ts +3 -3
- package/lib/typescript/commonjs/network/NetworkStatusBanner.d.ts +7 -7
- package/lib/typescript/commonjs/theme/Gradient.d.ts +2 -2
- package/lib/typescript/commonjs/theme/ThemeContext.d.ts +5 -5
- package/lib/typescript/commonjs/theme/componentSizes.d.ts +15 -38
- package/lib/typescript/commonjs/theme/types.d.ts +84 -84
- package/lib/typescript/commonjs/utils/announce.d.ts +1 -1
- package/lib/typescript/commonjs/utils/complete.d.ts +5 -0
- package/lib/typescript/commonjs/utils/feedback.d.ts +3 -1
- package/lib/typescript/commonjs/utils/guards.d.ts +9 -0
- package/lib/typescript/commonjs/utils/placement.d.ts +3 -3
- package/lib/typescript/commonjs/utils/squircle.d.ts +2 -2
- package/lib/typescript/module/canvasKit/index.d.ts +12 -12
- package/lib/typescript/module/canvasKit/meta.d.ts +5 -7
- package/lib/typescript/module/components/Accordion/Accordion.d.ts +22 -22
- package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +23 -23
- package/lib/typescript/module/components/AnimatePresence/AnimatePresence.d.ts +5 -5
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +39 -39
- package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +7 -7
- package/lib/typescript/module/components/AppIcon/defaultIcons.d.ts +2 -1
- package/lib/typescript/module/components/AppIcon/glyphs.g.d.ts +233 -233
- package/lib/typescript/module/components/AppIcon/slotIcon.d.ts +1 -1
- package/lib/typescript/module/components/AppLockOverlay/AppLockOverlay.d.ts +5 -5
- package/lib/typescript/module/components/AsyncBlock/AsyncBlock.d.ts +22 -40
- package/lib/typescript/module/components/AuthedImage/AuthedImage.d.ts +15 -15
- package/lib/typescript/module/components/AuthedImage/authedImageCache.d.ts +2 -2
- package/lib/typescript/module/components/Autocomplete/Autocomplete.d.ts +24 -24
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +36 -36
- package/lib/typescript/module/components/Badge/Badge.d.ts +18 -18
- package/lib/typescript/module/components/Banner/Banner.d.ts +25 -25
- package/lib/typescript/module/components/BarChart/BarChart.d.ts +21 -21
- package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +36 -36
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +33 -33
- package/lib/typescript/module/components/Box/Box.d.ts +27 -27
- package/lib/typescript/module/components/Button/Button.d.ts +22 -22
- package/lib/typescript/module/components/Calendar/Calendar.d.ts +20 -20
- package/lib/typescript/module/components/Calendar/CalendarDay.d.ts +4 -2
- package/lib/typescript/module/components/Card/Card.d.ts +41 -41
- package/lib/typescript/module/components/Carousel/Carousel.d.ts +21 -21
- package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +21 -21
- package/lib/typescript/module/components/Chip/Chip.d.ts +23 -23
- package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +51 -46
- package/lib/typescript/module/components/Composer/Composer.d.ts +27 -27
- package/lib/typescript/module/components/Confetti/Confetti.d.ts +22 -21
- package/lib/typescript/module/components/Confirm/confirm.d.ts +4 -4
- package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +20 -20
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +22 -22
- package/lib/typescript/module/components/DateSeparator/DateSeparator.d.ts +9 -9
- package/lib/typescript/module/components/DecimalInput/DecimalInput.d.ts +14 -14
- package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +13 -13
- package/lib/typescript/module/components/Dialog/Dialog.d.ts +24 -24
- package/lib/typescript/module/components/Dialog/OverlayActions.d.ts +5 -5
- package/lib/typescript/module/components/Divider/Divider.d.ts +9 -9
- package/lib/typescript/module/components/Drawer/Drawer.d.ts +15 -15
- package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +13 -13
- package/lib/typescript/module/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
- package/lib/typescript/module/components/FieldBase/Chevron.d.ts +2 -2
- package/lib/typescript/module/components/FieldBase/ChoiceText.d.ts +10 -10
- package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +54 -54
- package/lib/typescript/module/components/FieldBase/useFloatingLabel.d.ts +8 -8
- package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +35 -35
- package/lib/typescript/module/components/FileViewer/FileViewer.d.ts +10 -10
- package/lib/typescript/module/components/FileViewer/fileSource.d.ts +3 -3
- package/lib/typescript/module/components/FileViewer/useFileViewerZoom.d.ts +3 -3
- package/lib/typescript/module/components/FilterChipRow/FilterChipRow.d.ts +12 -12
- package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +35 -35
- package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +11 -11
- package/lib/typescript/module/components/FormField/FormField.d.ts +15 -15
- package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +11 -11
- package/lib/typescript/module/components/IconButton/IconButton.d.ts +14 -14
- package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +14 -14
- package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +36 -31
- package/lib/typescript/module/components/Input/Input.d.ts +47 -47
- package/lib/typescript/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +7 -7
- package/lib/typescript/module/components/KeyboardToolbar/KeyboardToolbar.d.ts +8 -8
- package/lib/typescript/module/components/ListItem/ListItem.d.ts +44 -44
- package/lib/typescript/module/components/ListSection/ListSection.d.ts +6 -6
- package/lib/typescript/module/components/LoaderOverlay/LoaderOverlay.d.ts +17 -11
- package/lib/typescript/module/components/Markdown/Markdown.d.ts +15 -15
- package/lib/typescript/module/components/Menu/Menu.d.ts +17 -12
- package/lib/typescript/module/components/Menu/MenuSurface.d.ts +8 -8
- package/lib/typescript/module/components/Menu/menuModel.d.ts +11 -11
- package/lib/typescript/module/components/Menu/useContextMenu.d.ts +13 -13
- package/lib/typescript/module/components/Menu/webOnly.d.ts +3 -3
- package/lib/typescript/module/components/MessageBubble/MessageBubble.d.ts +20 -20
- package/lib/typescript/module/components/MessageList/MessageList.d.ts +14 -14
- package/lib/typescript/module/components/Modal/Modal.d.ts +19 -19
- package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +27 -27
- package/lib/typescript/module/components/OTPInput/OTPInput.d.ts +20 -20
- package/lib/typescript/module/components/OTPInput/OTPResendRow.d.ts +9 -9
- package/lib/typescript/module/components/OnboardingPager/OnboardingPager.d.ts +5 -5
- package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +33 -33
- package/lib/typescript/module/components/OptionSheet/optionAccessors.d.ts +8 -0
- package/lib/typescript/module/components/PagedListFooter/PagedListFooter.d.ts +2 -2
- package/lib/typescript/module/components/PermissionPrompt/PermissionPrompt.d.ts +6 -6
- package/lib/typescript/module/components/PermissionPrompt/usePermissionPrompt.d.ts +1 -1
- package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +43 -43
- package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +23 -23
- package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +23 -23
- package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +30 -30
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +21 -21
- package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +13 -13
- package/lib/typescript/module/components/Radio/Radio.d.ts +18 -18
- package/lib/typescript/module/components/Radio/RadioDot.d.ts +5 -5
- package/lib/typescript/module/components/Radio/RadioGroup.d.ts +8 -8
- package/lib/typescript/module/components/Rating/Rating.d.ts +15 -15
- package/lib/typescript/module/components/Repeater/Repeater.d.ts +10 -10
- package/lib/typescript/module/components/RichTextEditor/RichTextEditor.d.ts +15 -15
- package/lib/typescript/module/components/ScannerOverlay/ScannerOverlay.d.ts +13 -13
- package/lib/typescript/module/components/Screen/Screen.d.ts +43 -44
- package/lib/typescript/module/components/Screen/index.d.ts +1 -1
- package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +31 -31
- package/lib/typescript/module/components/SearchBar/SearchPanel.d.ts +6 -6
- package/lib/typescript/module/components/SearchBar/useRecentSearches.d.ts +1 -1
- package/lib/typescript/module/components/SectionHeader/SectionHeader.d.ts +10 -10
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +25 -24
- package/lib/typescript/module/components/Select/Select.d.ts +50 -45
- package/lib/typescript/module/components/SignaturePad/SignaturePad.d.ts +20 -20
- package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +13 -13
- package/lib/typescript/module/components/Skeleton/SkeletonContent.d.ts +9 -9
- package/lib/typescript/module/components/Skeleton/SkeletonList.d.ts +30 -8
- package/lib/typescript/module/components/Skeleton/SkeletonProvider.d.ts +9 -9
- package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +14 -14
- package/lib/typescript/module/components/Slider/Slider.d.ts +30 -30
- package/lib/typescript/module/components/Slider/valueText.d.ts +9 -9
- package/lib/typescript/module/components/SliderField/SliderField.d.ts +41 -41
- package/lib/typescript/module/components/SortableList/SortableList.d.ts +5 -5
- package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +13 -13
- package/lib/typescript/module/components/Sparkline/geometry.d.ts +3 -1
- package/lib/typescript/module/components/Spinner/Spinner.d.ts +10 -10
- package/lib/typescript/module/components/SquircleFill/SquircleFill.d.ts +3 -3
- package/lib/typescript/module/components/SquircleImage/SquircleImage.d.ts +5 -12
- package/lib/typescript/module/components/StatTile/StatTile.d.ts +14 -14
- package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +13 -13
- package/lib/typescript/module/components/Stepper/Stepper.d.ts +21 -21
- package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +16 -16
- package/lib/typescript/module/components/Switch/Switch.d.ts +19 -19
- package/lib/typescript/module/components/Tabs/Tabs.d.ts +20 -20
- package/lib/typescript/module/components/TagInput/TagInput.d.ts +19 -19
- package/lib/typescript/module/components/Text/Text.d.ts +10 -10
- package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +14 -14
- package/lib/typescript/module/components/Timeline/Timeline.d.ts +12 -12
- package/lib/typescript/module/components/Toast/Toast.d.ts +17 -17
- package/lib/typescript/module/components/Toast/ToastProvider.d.ts +8 -8
- package/lib/typescript/module/components/Tooltip/RichTooltipBody.d.ts +4 -4
- package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +24 -19
- package/lib/typescript/module/components/Tour/Tour.d.ts +7 -7
- package/lib/typescript/module/components/TypingIndicator/TypingIndicator.d.ts +6 -6
- package/lib/typescript/module/components/WheelPicker/Wheel.d.ts +6 -6
- package/lib/typescript/module/components/WheelPicker/WheelPicker.d.ts +20 -20
- package/lib/typescript/module/components/ZoomableImage/ZoomableImage.d.ts +8 -8
- package/lib/typescript/module/form/HookFormField.d.ts +5 -18
- package/lib/typescript/module/form/path.d.ts +4 -2
- package/lib/typescript/module/form/useFormCompletion.d.ts +1 -1
- package/lib/typescript/module/hooks/useControllableState.d.ts +2 -2
- package/lib/typescript/module/hooks/useDragToDismiss.d.ts +8 -8
- package/lib/typescript/module/hooks/useFieldErrorScroll.d.ts +1 -1
- package/lib/typescript/module/hooks/usePressAnimation.d.ts +4 -4
- package/lib/typescript/module/hooks/useRefreshControl.d.ts +8 -8
- package/lib/typescript/module/hooks/useResendCountdown.d.ts +1 -1
- package/lib/typescript/module/hooks/useScrollDirection.d.ts +1 -1
- package/lib/typescript/module/navigation/DiscardGuard.d.ts +2 -2
- package/lib/typescript/module/navigation/NavigationScreen.d.ts +3 -3
- package/lib/typescript/module/network/NetworkStatusBanner.d.ts +7 -7
- package/lib/typescript/module/theme/Gradient.d.ts +2 -2
- package/lib/typescript/module/theme/ThemeContext.d.ts +5 -5
- package/lib/typescript/module/theme/componentSizes.d.ts +15 -38
- package/lib/typescript/module/theme/types.d.ts +84 -84
- package/lib/typescript/module/utils/announce.d.ts +1 -1
- package/lib/typescript/module/utils/complete.d.ts +5 -0
- package/lib/typescript/module/utils/feedback.d.ts +3 -1
- package/lib/typescript/module/utils/guards.d.ts +9 -0
- package/lib/typescript/module/utils/placement.d.ts +3 -3
- package/lib/typescript/module/utils/squircle.d.ts +2 -2
- package/package.json +11 -11
- package/src/specs/NativePdfRasterizer.ts +1 -1
|
@@ -2,7 +2,7 @@ export interface UseResendCountdownOptions {
|
|
|
2
2
|
/** Seconds before a new code may be asked for. */
|
|
3
3
|
resendSeconds: number;
|
|
4
4
|
/** Seconds the code stays valid; null or undefined when the code has no known expiry. */
|
|
5
|
-
expirySeconds?: number | null;
|
|
5
|
+
expirySeconds?: number | null | undefined;
|
|
6
6
|
/** Wall-clock start (Date.now()) of the current challenge. Changing it restarts both timers. */
|
|
7
7
|
startedAtMs: number;
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import type { NativeScrollEvent, NativeSyntheticEvent } from "react-native";
|
|
|
2
2
|
export type ScrollDirection = "up" | "down" | "idle";
|
|
3
3
|
export type UseScrollDirectionOptions = {
|
|
4
4
|
/** Points of travel in one direction before the direction flips. Default 8. */
|
|
5
|
-
threshold?: number;
|
|
5
|
+
threshold?: number | undefined;
|
|
6
6
|
};
|
|
7
7
|
export type UseScrollDirectionResult = {
|
|
8
8
|
direction: ScrollDirection;
|
|
@@ -12,8 +12,8 @@ export interface DiscardGuardHandle {
|
|
|
12
12
|
export interface DiscardGuardProps {
|
|
13
13
|
/** While true, every way out of the screen is held and the person chooses Keep editing or Discard. */
|
|
14
14
|
when: boolean;
|
|
15
|
-
labels?: Partial<DiscardGuardLabels
|
|
16
|
-
testID?: string;
|
|
15
|
+
labels?: Partial<DiscardGuardLabels> | undefined;
|
|
16
|
+
testID?: string | undefined;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Asks before a form with unsaved changes is left. While `when` is true, every way out of the screen (the phone's
|
|
@@ -7,14 +7,14 @@ import { type ScreenProps } from "../components/Screen";
|
|
|
7
7
|
*/
|
|
8
8
|
export type NavigationScreenKind = "pushed" | "tab" | "root";
|
|
9
9
|
export interface NavigationScreenProps<ItemT = unknown> extends Omit<ScreenProps<ItemT>, "largeTitle" | "edges" | "bottomInset"> {
|
|
10
|
-
kind?: NavigationScreenKind;
|
|
10
|
+
kind?: NavigationScreenKind | undefined;
|
|
11
11
|
/** Safe-area edges of a "pushed" or "root" screen, as on Screen; a "tab" screen always uses the top edge only. */
|
|
12
|
-
edges?: SafeAreaEdge[];
|
|
12
|
+
edges?: SafeAreaEdge[] | undefined;
|
|
13
13
|
/**
|
|
14
14
|
* Draw the app bar. Default `true`. `false` draws no bar and no back arrow, and drops the title, subtitle,
|
|
15
15
|
* leading, trailing and right actions with it; the safe area, keyboard handling, refresh, footer and list mode stay.
|
|
16
16
|
*/
|
|
17
|
-
appBar?: boolean;
|
|
17
|
+
appBar?: boolean | undefined;
|
|
18
18
|
}
|
|
19
19
|
export declare function NavigationScreen<ItemT = unknown>({ kind, appBar, onBack, ...props }: NavigationScreenProps<ItemT>): React.ReactElement;
|
|
20
20
|
//# sourceMappingURL=NavigationScreen.d.ts.map
|
|
@@ -2,23 +2,23 @@ import type React from "react";
|
|
|
2
2
|
import type { ViewStyle } from "react-native";
|
|
3
3
|
export interface NetworkStatusBannerProps {
|
|
4
4
|
/** Override the default offline message. */
|
|
5
|
-
message?: string;
|
|
5
|
+
message?: string | undefined;
|
|
6
6
|
/** Shown on the success colour when the connection comes back, before the banner slides away. */
|
|
7
|
-
restoredMessage?: string;
|
|
7
|
+
restoredMessage?: string | undefined;
|
|
8
8
|
/** How long the restored message stays, in ms. Default 2000. */
|
|
9
|
-
restoredDuration?: number;
|
|
9
|
+
restoredDuration?: number | undefined;
|
|
10
10
|
/** Render at the top (default) or bottom of the screen. */
|
|
11
|
-
position?: "top" | "bottom";
|
|
11
|
+
position?: "top" | "bottom" | undefined;
|
|
12
12
|
/** Optional style override for the banner container. */
|
|
13
|
-
style?: ViewStyle;
|
|
13
|
+
style?: ViewStyle | undefined;
|
|
14
14
|
/** Hide the banner entirely (useful for screens that handle offline themselves). */
|
|
15
|
-
disabled?: boolean;
|
|
15
|
+
disabled?: boolean | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* Pad the banner clear of the status bar (top) or the home indicator
|
|
18
18
|
* (bottom) with the safe-area inset of its edge. Default true; turn it off
|
|
19
19
|
* when the banner sits below a header that already clears the inset.
|
|
20
20
|
*/
|
|
21
|
-
safeArea?: boolean;
|
|
21
|
+
safeArea?: boolean | undefined;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* A subtle animated banner that slides in when the device goes offline. When the
|
|
@@ -22,8 +22,8 @@ export declare const gradientAngle: (start?: GradientVector, end?: GradientVecto
|
|
|
22
22
|
export declare const toBackgroundImage: (gradient: GradientDefinition) => LinearGradientValue;
|
|
23
23
|
export interface GradientProps {
|
|
24
24
|
gradient: GradientDefinition;
|
|
25
|
-
style?: StyleProp<ViewStyle
|
|
26
|
-
children?: React.ReactNode;
|
|
25
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
26
|
+
children?: React.ReactNode | undefined;
|
|
27
27
|
}
|
|
28
28
|
export declare const Gradient: React.FC<GradientProps>;
|
|
29
29
|
export {};
|
|
@@ -4,23 +4,23 @@ export type ColorSchemePreference = "light" | "dark" | "system";
|
|
|
4
4
|
export interface ThemeProviderProps {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
/** The preference before a saved one is read (or when nothing is saved). Default `'system'`. */
|
|
7
|
-
initialPreference?: ColorSchemePreference;
|
|
7
|
+
initialPreference?: ColorSchemePreference | undefined;
|
|
8
8
|
/**
|
|
9
9
|
* Storage key under which the provider remembers the light / dark / system
|
|
10
10
|
* choice across launches, through mobile-core `Storage`. It reads the saved
|
|
11
11
|
* choice on mount and writes every change made with `setPreference` or
|
|
12
12
|
* `toggleColorMode`. Without a key nothing is read or written.
|
|
13
13
|
*/
|
|
14
|
-
persistKey?: string;
|
|
14
|
+
persistKey?: string | undefined;
|
|
15
15
|
/** Pass a module-level constant: a new object identity merges the theme again. */
|
|
16
|
-
brand?: BrandOverrides;
|
|
16
|
+
brand?: BrandOverrides | undefined;
|
|
17
17
|
/** Pass a module-level constant: a new object identity merges the theme again. */
|
|
18
|
-
settings?: ThemeSettings;
|
|
18
|
+
settings?: ThemeSettings | undefined;
|
|
19
19
|
}
|
|
20
20
|
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
21
21
|
export interface KitThemeBridgeProps {
|
|
22
22
|
mode: ColorMode;
|
|
23
|
-
brand?: BrandOverrides;
|
|
23
|
+
brand?: BrandOverrides | undefined;
|
|
24
24
|
children: React.ReactNode;
|
|
25
25
|
}
|
|
26
26
|
export declare const KitThemeBridge: React.FC<KitThemeBridgeProps>;
|
|
@@ -1,45 +1,22 @@
|
|
|
1
|
-
import type { Theme } from "./types";
|
|
1
|
+
import type { ComponentSizeTokens, Theme } from "./types";
|
|
2
2
|
/** A size token with every scale name turned into pixels. */
|
|
3
3
|
export type Resolved<T> = {
|
|
4
4
|
[K in keyof T]: number;
|
|
5
5
|
};
|
|
6
|
-
export declare const resolveButtonSize: (theme: Theme, size: "xs" | "sm" | "md" | "lg" | "xl") => Resolved<
|
|
7
|
-
export declare const resolveFieldSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<
|
|
8
|
-
export declare const resolveEmptyStateSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<
|
|
9
|
-
export declare const resolveListItemSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export declare const resolveRadioSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<{
|
|
21
|
-
outer: number;
|
|
22
|
-
inner: number;
|
|
23
|
-
}>;
|
|
24
|
-
export declare const resolveSwitchSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<{
|
|
25
|
-
"track-width": number;
|
|
26
|
-
"track-height": number;
|
|
27
|
-
"thumb-size": number;
|
|
28
|
-
padding: import("./tokens.generated").SpaceName;
|
|
29
|
-
}>;
|
|
30
|
-
export declare const resolveOtpInputSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<{
|
|
31
|
-
cell: number;
|
|
32
|
-
text: import("./tokens.generated").TextName;
|
|
33
|
-
radius: import("./tokens.generated").RadiusName;
|
|
34
|
-
gap: import("./tokens.generated").SpaceName;
|
|
35
|
-
}>;
|
|
36
|
-
export declare const resolveSegmentedControlSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<import("./tokens.generated").SegmentedControlSizeTokens>;
|
|
37
|
-
export declare const resolveTabsSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<import("./tokens.generated").TabsSizeTokens>;
|
|
38
|
-
export declare const resolveSliderSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<{
|
|
39
|
-
"track-height": number;
|
|
40
|
-
"thumb-diameter": number;
|
|
41
|
-
}>;
|
|
42
|
-
export declare const resolveFloatingActionButtonSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<import("./tokens.generated").FloatingActionButtonSizeTokens>;
|
|
6
|
+
export declare const resolveButtonSize: (theme: Theme, size: "xs" | "sm" | "md" | "lg" | "xl") => Resolved<ComponentSizeTokens<"button">>;
|
|
7
|
+
export declare const resolveFieldSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<ComponentSizeTokens<"field">>;
|
|
8
|
+
export declare const resolveEmptyStateSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<ComponentSizeTokens<"empty-state">>;
|
|
9
|
+
export declare const resolveListItemSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<ComponentSizeTokens<"list-item">>;
|
|
10
|
+
export declare const resolveBadgeSize: (theme: Theme, size: "sm" | "md") => Resolved<ComponentSizeTokens<"badge">>;
|
|
11
|
+
export declare const resolveChipSize: (theme: Theme, size: "sm" | "md") => Resolved<ComponentSizeTokens<"chip">>;
|
|
12
|
+
export declare const resolveCheckboxSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<ComponentSizeTokens<"checkbox">>;
|
|
13
|
+
export declare const resolveRadioSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<ComponentSizeTokens<"radio">>;
|
|
14
|
+
export declare const resolveSwitchSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<ComponentSizeTokens<"switch">>;
|
|
15
|
+
export declare const resolveOtpInputSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<ComponentSizeTokens<"otp-input">>;
|
|
16
|
+
export declare const resolveSegmentedControlSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<ComponentSizeTokens<"segmented-control">>;
|
|
17
|
+
export declare const resolveTabsSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<ComponentSizeTokens<"tabs">>;
|
|
18
|
+
export declare const resolveSliderSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<ComponentSizeTokens<"slider">>;
|
|
19
|
+
export declare const resolveFloatingActionButtonSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<ComponentSizeTokens<"floating-action-button">>;
|
|
43
20
|
/**
|
|
44
21
|
* Resolves every scale-named component token once, so a token that names a
|
|
45
22
|
* missing scale step stops the app where the theme is built, with the token's
|
|
@@ -16,23 +16,23 @@ export type ColorMode = TokenSet["mode"];
|
|
|
16
16
|
*/
|
|
17
17
|
export interface GradientDefinition {
|
|
18
18
|
colors: string[];
|
|
19
|
-
locations?: number[];
|
|
19
|
+
locations?: number[] | undefined;
|
|
20
20
|
start?: {
|
|
21
21
|
x: number;
|
|
22
22
|
y: number;
|
|
23
|
-
};
|
|
23
|
+
} | undefined;
|
|
24
24
|
end?: {
|
|
25
25
|
x: number;
|
|
26
26
|
y: number;
|
|
27
|
-
};
|
|
27
|
+
} | undefined;
|
|
28
28
|
}
|
|
29
29
|
export interface GradientScale {
|
|
30
30
|
/** Brand-primary gradient: used by `Button gradient` and `Card gradient="primary"`. */
|
|
31
|
-
primary?: GradientDefinition;
|
|
31
|
+
primary?: GradientDefinition | undefined;
|
|
32
32
|
/** Secondary brand gradient. */
|
|
33
|
-
secondary?: GradientDefinition;
|
|
33
|
+
secondary?: GradientDefinition | undefined;
|
|
34
34
|
/** Backdrop / banner gradient (for hero sections). */
|
|
35
|
-
surface?: GradientDefinition;
|
|
35
|
+
surface?: GradientDefinition | undefined;
|
|
36
36
|
/** Free-form named gradients. Consumer extends as needed. */
|
|
37
37
|
[key: string]: GradientDefinition | undefined;
|
|
38
38
|
}
|
|
@@ -57,139 +57,139 @@ export type IconRenderer = (props: {
|
|
|
57
57
|
*/
|
|
58
58
|
export interface IconRegistry {
|
|
59
59
|
/** Magnifier icon: SearchBar leading slot when no `leftIcon` prop. */
|
|
60
|
-
search?: IconRenderer;
|
|
60
|
+
search?: IconRenderer | undefined;
|
|
61
61
|
/** Close/dismiss icon: SearchBar clear, ImageGallery close, etc. */
|
|
62
|
-
close?: IconRenderer;
|
|
62
|
+
close?: IconRenderer | undefined;
|
|
63
63
|
/** Show-password icon: Input password toggle (visible state). */
|
|
64
|
-
eye?: IconRenderer;
|
|
64
|
+
eye?: IconRenderer | undefined;
|
|
65
65
|
/** Hide-password icon: Input password toggle (masked state). */
|
|
66
|
-
eyeOff?: IconRenderer;
|
|
66
|
+
eyeOff?: IconRenderer | undefined;
|
|
67
67
|
/** Paperclip/attachment icon: FilePicker trigger. Text-only trigger when unset. */
|
|
68
|
-
attachment?: IconRenderer;
|
|
68
|
+
attachment?: IconRenderer | undefined;
|
|
69
69
|
/**
|
|
70
70
|
* Circled-exclamation glyph drawn before a field's error message. When
|
|
71
71
|
* unset the field family draws a small ring-and-bang of its own, so the
|
|
72
72
|
* message never renders without the glyph.
|
|
73
73
|
*/
|
|
74
|
-
error?: IconRenderer;
|
|
74
|
+
error?: IconRenderer | undefined;
|
|
75
75
|
/**
|
|
76
76
|
* Dropdown indicator: Select, InlineSelect, PickerTrigger, PhoneNumberInput's
|
|
77
77
|
* country trigger and Accordion's header. The library's default is the
|
|
78
78
|
* icon set's line chevron (`chevron-down`).
|
|
79
79
|
*/
|
|
80
|
-
chevronDown?: IconRenderer;
|
|
80
|
+
chevronDown?: IconRenderer | undefined;
|
|
81
81
|
/** Trailing "goes somewhere" chevron on ListItem. Default `chevron-right`. */
|
|
82
|
-
chevronRight?: IconRenderer;
|
|
82
|
+
chevronRight?: IconRenderer | undefined;
|
|
83
83
|
/**
|
|
84
84
|
* Mark on the selected row of a single-choice option sheet when
|
|
85
85
|
* `components.optionSheet.selectedMarker` is `'icon'`. Default `tick-circle`, bulk.
|
|
86
86
|
*/
|
|
87
|
-
selectedTick?: IconRenderer;
|
|
87
|
+
selectedTick?: IconRenderer | undefined;
|
|
88
88
|
}
|
|
89
89
|
export interface TextVariantSpec {
|
|
90
90
|
size: TextName;
|
|
91
|
-
weight?: WeightName;
|
|
91
|
+
weight?: WeightName | undefined;
|
|
92
92
|
/** Line height in px; when unset the variant takes the heading leading when `heading` is set, else the body leading. */
|
|
93
|
-
lineHeight?: number;
|
|
93
|
+
lineHeight?: number | undefined;
|
|
94
94
|
/** A text role or tone, as the `color` prop takes (`secondary`), or a colour token (`text-muted`). */
|
|
95
|
-
color?: TextColor | ColorName;
|
|
96
|
-
uppercase?: boolean;
|
|
97
|
-
letterSpacing?: LetterSpacingName;
|
|
98
|
-
italic?: boolean;
|
|
99
|
-
fontVariant?: TextStyle["fontVariant"];
|
|
100
|
-
fontFamily?: "display";
|
|
101
|
-
heading?: boolean;
|
|
95
|
+
color?: TextColor | ColorName | undefined;
|
|
96
|
+
uppercase?: boolean | undefined;
|
|
97
|
+
letterSpacing?: LetterSpacingName | undefined;
|
|
98
|
+
italic?: boolean | undefined;
|
|
99
|
+
fontVariant?: TextStyle["fontVariant"] | undefined;
|
|
100
|
+
fontFamily?: "display" | undefined;
|
|
101
|
+
heading?: boolean | undefined;
|
|
102
102
|
}
|
|
103
103
|
export type { FieldVariant };
|
|
104
104
|
type ToneValue = "primary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
105
105
|
export interface ComponentSettings {
|
|
106
106
|
field?: {
|
|
107
|
-
defaultVariant?: FieldVariant;
|
|
108
|
-
requiredMarker?: string;
|
|
109
|
-
};
|
|
107
|
+
defaultVariant?: FieldVariant | undefined;
|
|
108
|
+
requiredMarker?: string | undefined;
|
|
109
|
+
} | undefined;
|
|
110
110
|
input?: {
|
|
111
|
-
defaultVariant?: FieldVariant;
|
|
112
|
-
defaultLabelMode?: "float" | "top";
|
|
113
|
-
tintLabelOnFocus?: boolean;
|
|
114
|
-
shakeOnError?: boolean;
|
|
115
|
-
};
|
|
111
|
+
defaultVariant?: FieldVariant | undefined;
|
|
112
|
+
defaultLabelMode?: "float" | "top" | undefined;
|
|
113
|
+
tintLabelOnFocus?: boolean | undefined;
|
|
114
|
+
shakeOnError?: boolean | undefined;
|
|
115
|
+
} | undefined;
|
|
116
116
|
"search-bar"?: {
|
|
117
|
-
defaultVariant?: FieldVariant;
|
|
118
|
-
};
|
|
117
|
+
defaultVariant?: FieldVariant | undefined;
|
|
118
|
+
} | undefined;
|
|
119
119
|
select?: {
|
|
120
|
-
defaultVariant?: FieldVariant;
|
|
121
|
-
};
|
|
120
|
+
defaultVariant?: FieldVariant | undefined;
|
|
121
|
+
} | undefined;
|
|
122
122
|
"otp-input"?: {
|
|
123
|
-
shakeOnError?: boolean;
|
|
124
|
-
};
|
|
123
|
+
shakeOnError?: boolean | undefined;
|
|
124
|
+
} | undefined;
|
|
125
125
|
"option-sheet"?: {
|
|
126
|
-
selectedMarker?: "dot" | "icon";
|
|
127
|
-
};
|
|
126
|
+
selectedMarker?: "dot" | "icon" | undefined;
|
|
127
|
+
} | undefined;
|
|
128
128
|
"profile-picker"?: {
|
|
129
|
-
defaultTone?: ToneValue;
|
|
130
|
-
defaultVariant?: "solid" | "soft" | "outline";
|
|
131
|
-
defaultAvatarTone?: ToneValue;
|
|
132
|
-
};
|
|
129
|
+
defaultTone?: ToneValue | undefined;
|
|
130
|
+
defaultVariant?: "solid" | "soft" | "outline" | undefined;
|
|
131
|
+
defaultAvatarTone?: ToneValue | undefined;
|
|
132
|
+
} | undefined;
|
|
133
133
|
slider?: {
|
|
134
|
-
thumbPressAnimation?: boolean;
|
|
135
|
-
};
|
|
134
|
+
thumbPressAnimation?: boolean | undefined;
|
|
135
|
+
} | undefined;
|
|
136
136
|
rating?: {
|
|
137
|
-
pulseOnPress?: boolean;
|
|
138
|
-
};
|
|
137
|
+
pulseOnPress?: boolean | undefined;
|
|
138
|
+
} | undefined;
|
|
139
139
|
stepper?: {
|
|
140
|
-
pulseAnimation?: boolean;
|
|
141
|
-
};
|
|
140
|
+
pulseAnimation?: boolean | undefined;
|
|
141
|
+
} | undefined;
|
|
142
142
|
tooltip?: {
|
|
143
|
-
enableScaleAnimation?: boolean;
|
|
144
|
-
};
|
|
143
|
+
enableScaleAnimation?: boolean | undefined;
|
|
144
|
+
} | undefined;
|
|
145
145
|
toast?: {
|
|
146
|
-
enableSwipeDismiss?: boolean;
|
|
147
|
-
defaultDurationMs?: number;
|
|
148
|
-
};
|
|
146
|
+
enableSwipeDismiss?: boolean | undefined;
|
|
147
|
+
defaultDurationMs?: number | undefined;
|
|
148
|
+
} | undefined;
|
|
149
149
|
/** House defaults for every Button that does not set the prop itself. */
|
|
150
150
|
button?: {
|
|
151
|
-
defaultVariant?: ButtonVariant;
|
|
152
|
-
defaultSize?: ButtonSize;
|
|
153
|
-
defaultPressAnimation?: PressAnimationPreset;
|
|
154
|
-
};
|
|
151
|
+
defaultVariant?: ButtonVariant | undefined;
|
|
152
|
+
defaultSize?: ButtonSize | undefined;
|
|
153
|
+
defaultPressAnimation?: PressAnimationPreset | undefined;
|
|
154
|
+
} | undefined;
|
|
155
155
|
card?: {
|
|
156
|
-
defaultVariant?: CardVariant;
|
|
157
|
-
defaultPadding?: CardPadding;
|
|
158
|
-
defaultRadius?: CardRadius;
|
|
159
|
-
defaultTitleFont?: CardTitleFont;
|
|
160
|
-
};
|
|
156
|
+
defaultVariant?: CardVariant | undefined;
|
|
157
|
+
defaultPadding?: CardPadding | undefined;
|
|
158
|
+
defaultRadius?: CardRadius | undefined;
|
|
159
|
+
defaultTitleFont?: CardTitleFont | undefined;
|
|
160
|
+
} | undefined;
|
|
161
161
|
"section-header"?: {
|
|
162
|
-
defaultVariant?: SectionHeaderVariant;
|
|
163
|
-
defaultFlush?: boolean;
|
|
164
|
-
};
|
|
162
|
+
defaultVariant?: SectionHeaderVariant | undefined;
|
|
163
|
+
defaultFlush?: boolean | undefined;
|
|
164
|
+
} | undefined;
|
|
165
165
|
"empty-state"?: {
|
|
166
|
-
defaultSize?: EmptyStateSize;
|
|
167
|
-
defaultVariant?: EmptyStateVariant;
|
|
168
|
-
};
|
|
166
|
+
defaultSize?: EmptyStateSize | undefined;
|
|
167
|
+
defaultVariant?: EmptyStateVariant | undefined;
|
|
168
|
+
} | undefined;
|
|
169
169
|
/**
|
|
170
170
|
* tabBarFloats: NavigationScreen with kind "tab" adds the tab bar's height under content and footer when the app's tab bar floats over the screens.
|
|
171
171
|
* headerShadowOnScroll: false stops every Screen's fixed app bar from showing a shadow once its content scrolls (default true); a Screen's own `headerShadowOnScroll` wins.
|
|
172
172
|
*/
|
|
173
173
|
screen?: {
|
|
174
|
-
tabBarFloats?: boolean;
|
|
175
|
-
headerShadowOnScroll?: boolean;
|
|
176
|
-
};
|
|
174
|
+
tabBarFloats?: boolean | undefined;
|
|
175
|
+
headerShadowOnScroll?: boolean | undefined;
|
|
176
|
+
} | undefined;
|
|
177
177
|
}
|
|
178
178
|
export interface ThemeSettings {
|
|
179
|
-
icons?: IconRegistry;
|
|
180
|
-
gradients?: GradientScale;
|
|
181
|
-
textVariants?: Record<string, TextVariantSpec
|
|
182
|
-
maxFontSizeMultiplier?: number;
|
|
183
|
-
components?: ComponentSettings;
|
|
179
|
+
icons?: IconRegistry | undefined;
|
|
180
|
+
gradients?: GradientScale | undefined;
|
|
181
|
+
textVariants?: Record<string, TextVariantSpec> | undefined;
|
|
182
|
+
maxFontSizeMultiplier?: number | undefined;
|
|
183
|
+
components?: ComponentSettings | undefined;
|
|
184
184
|
}
|
|
185
185
|
/** A product's brand, generated by `webority brand` as theme/generated/brand.phone.js. Never spacing, text or component sizes. */
|
|
186
186
|
export interface BrandOverrides {
|
|
187
187
|
colors?: {
|
|
188
|
-
light?: Partial<Record<ColorName, string
|
|
189
|
-
dark?: Partial<Record<ColorName, string
|
|
190
|
-
};
|
|
191
|
-
radius?: Partial<Record<Exclude<RadiusName, "none" | "pill">, number
|
|
192
|
-
font?: Partial<Record<FontName, FontFaces
|
|
188
|
+
light?: Partial<Record<ColorName, string>> | undefined;
|
|
189
|
+
dark?: Partial<Record<ColorName, string>> | undefined;
|
|
190
|
+
} | undefined;
|
|
191
|
+
radius?: Partial<Record<Exclude<RadiusName, "none" | "pill">, number>> | undefined;
|
|
192
|
+
font?: Partial<Record<FontName, FontFaces>> | undefined;
|
|
193
193
|
}
|
|
194
194
|
export interface Spring {
|
|
195
195
|
damping: number;
|
|
@@ -218,7 +218,7 @@ export interface Theme extends Omit<TokenSet, "motion"> {
|
|
|
218
218
|
icons: IconRegistry;
|
|
219
219
|
gradients: GradientScale;
|
|
220
220
|
textVariants: Record<string, TextVariantSpec>;
|
|
221
|
-
maxFontSizeMultiplier?: number;
|
|
221
|
+
maxFontSizeMultiplier?: number | undefined;
|
|
222
222
|
components: ComponentSettings;
|
|
223
223
|
};
|
|
224
224
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** T with every key present and no value undefined: the shape of a defaults object. `Required<T>` keeps `| undefined` on a `key?: V | undefined` property, so it cannot say this. */
|
|
2
|
+
export type Complete<T> = {
|
|
3
|
+
[K in keyof T]-?: Exclude<T[K], undefined>;
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=complete.d.ts.map
|
|
@@ -16,6 +16,7 @@ export declare const configureFeedback: (prefs: {
|
|
|
16
16
|
haptics: boolean;
|
|
17
17
|
}) => void;
|
|
18
18
|
export declare const isFeedbackEnabled: () => boolean;
|
|
19
|
+
declare const fire: (intent: FeedbackIntent) => void;
|
|
19
20
|
/** Resolve an intent to its haptic type without firing it. */
|
|
20
21
|
export declare const hapticForIntent: (intent: FeedbackIntent) => HapticType;
|
|
21
22
|
export declare const feedback: {
|
|
@@ -40,6 +41,7 @@ export declare const feedback: {
|
|
|
40
41
|
/** A failure. */
|
|
41
42
|
readonly failed: () => void;
|
|
42
43
|
/** Escape hatch for an intent held in a variable. */
|
|
43
|
-
readonly fire:
|
|
44
|
+
readonly fire: typeof fire;
|
|
44
45
|
};
|
|
46
|
+
export {};
|
|
45
47
|
//# sourceMappingURL=feedback.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** True when value is one of the listed values; narrows value to the list's member type. */
|
|
2
|
+
export declare function isOneOf<const T>(list: readonly T[], value: unknown): value is T;
|
|
3
|
+
/** True when key is an own key of the object; narrows key to the object's key type. */
|
|
4
|
+
export declare function hasKey<O extends object>(object: O, key: PropertyKey): key is keyof O;
|
|
5
|
+
/** True for a plain object value (not null, not an array). */
|
|
6
|
+
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
7
|
+
/** The object's own keys, each checked by hasKey, typed as the object's keys. */
|
|
8
|
+
export declare function keysOf<O extends object>(object: O): (keyof O)[];
|
|
9
|
+
//# sourceMappingURL=guards.d.ts.map
|
|
@@ -15,11 +15,11 @@ export interface PlacementViewport {
|
|
|
15
15
|
}
|
|
16
16
|
export interface PlacementOptions {
|
|
17
17
|
/** Space between the anchor and the surface. Default 8. */
|
|
18
|
-
gap?: number;
|
|
18
|
+
gap?: number | undefined;
|
|
19
19
|
/** Least distance from each safe edge of the viewport. Default 8. */
|
|
20
|
-
margin?: number;
|
|
20
|
+
margin?: number | undefined;
|
|
21
21
|
/** Horizontal alignment against the anchor, in left-to-right terms. Default `'center'`. */
|
|
22
|
-
align?: PlacementAlign;
|
|
22
|
+
align?: PlacementAlign | undefined;
|
|
23
23
|
}
|
|
24
24
|
export interface PlacementResult {
|
|
25
25
|
x: number;
|
|
@@ -21,12 +21,12 @@ export interface SquirclePathParams {
|
|
|
21
21
|
/** Corner radius of the outer edge, before `inset`. */
|
|
22
22
|
radius: number;
|
|
23
23
|
/** 0 is a plain rounded rectangle, 1 the fullest curve. Default `SQUIRCLE_SMOOTHING`. */
|
|
24
|
-
smoothing?: number;
|
|
24
|
+
smoothing?: number | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* Shrinks the path on every side, for a stroke: a stroke of width `w`
|
|
27
27
|
* drawn on a path inset by `w / 2` lands its outer edge on the bounds.
|
|
28
28
|
*/
|
|
29
|
-
inset?: number;
|
|
29
|
+
inset?: number | undefined;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Below this radius the curve is not worth an overlay: the squircle bulges
|
|
@@ -13,43 +13,43 @@ export declare const PHONE_CHROME_INSETS: {
|
|
|
13
13
|
};
|
|
14
14
|
export interface StatusBarProps {
|
|
15
15
|
os: PhoneChromeOs;
|
|
16
|
-
colorMode?: ColorMode;
|
|
16
|
+
colorMode?: ColorMode | undefined;
|
|
17
17
|
/** The clock as shown, such as 9:41. */
|
|
18
|
-
time?: string;
|
|
18
|
+
time?: string | undefined;
|
|
19
19
|
/** Signal strength in bars, 0 to 4. */
|
|
20
|
-
signal?: number;
|
|
20
|
+
signal?: number | undefined;
|
|
21
21
|
/** Battery level in percent, 0 to 100. */
|
|
22
|
-
battery?: number;
|
|
22
|
+
battery?: number | undefined;
|
|
23
23
|
}
|
|
24
24
|
export declare const StatusBar: ({ os, colorMode, time, signal, battery }: StatusBarProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
|
|
25
25
|
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
export interface HomeIndicatorProps {
|
|
28
28
|
os: PhoneChromeOs;
|
|
29
|
-
colorMode?: ColorMode;
|
|
29
|
+
colorMode?: ColorMode | undefined;
|
|
30
30
|
}
|
|
31
31
|
export declare const HomeIndicator: ({ os, colorMode }: HomeIndicatorProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
|
|
32
32
|
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
export interface NavigationBarProps {
|
|
35
35
|
os: PhoneChromeOs;
|
|
36
|
-
colorMode?: ColorMode;
|
|
36
|
+
colorMode?: ColorMode | undefined;
|
|
37
37
|
}
|
|
38
38
|
export declare const NavigationBar: ({ os, colorMode }: NavigationBarProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
|
|
39
39
|
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
40
40
|
}> | null;
|
|
41
41
|
export interface SafeAreaProps {
|
|
42
42
|
os: PhoneChromeOs;
|
|
43
|
-
children?: ReactNode;
|
|
43
|
+
children?: ReactNode | undefined;
|
|
44
44
|
}
|
|
45
45
|
export declare const SafeArea: ({ os, children }: SafeAreaProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
|
|
46
46
|
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
47
47
|
}>;
|
|
48
48
|
export type KeyboardPreviewOs = "ios" | "android";
|
|
49
49
|
export interface KeyboardFrameProps {
|
|
50
|
-
colorMode?: ColorMode;
|
|
51
|
-
previewOs?: KeyboardPreviewOs;
|
|
52
|
-
children?: ReactNode;
|
|
50
|
+
colorMode?: ColorMode | undefined;
|
|
51
|
+
previewOs?: KeyboardPreviewOs | undefined;
|
|
52
|
+
children?: ReactNode | undefined;
|
|
53
53
|
}
|
|
54
54
|
export declare const KeyboardFrame: ({ colorMode, previewOs, children }: KeyboardFrameProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
|
|
55
55
|
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
@@ -57,9 +57,9 @@ export declare const KeyboardFrame: ({ colorMode, previewOs, children }: Keyboar
|
|
|
57
57
|
export interface PhoneChromeManifestProp {
|
|
58
58
|
name: string;
|
|
59
59
|
type: "enum" | "string" | "number";
|
|
60
|
-
enum?: string[];
|
|
60
|
+
enum?: string[] | undefined;
|
|
61
61
|
required: boolean;
|
|
62
|
-
description?: string;
|
|
62
|
+
description?: string | undefined;
|
|
63
63
|
}
|
|
64
64
|
export interface PhoneChromeManifestComponent {
|
|
65
65
|
name: string;
|
|
@@ -10,7 +10,7 @@ export type KitPropKey<P> = {
|
|
|
10
10
|
type Literal<T> = [NonNullable<T>] extends [string] ? string extends NonNullable<T> ? never : NonNullable<T> : [NonNullable<T>] extends [number] ? number extends NonNullable<T> ? never : NonNullable<T> : never;
|
|
11
11
|
type IsIconName<T> = [NonNullable<T>] extends [AppIconName] ? ([AppIconName] extends [NonNullable<T>] ? true : false) : false;
|
|
12
12
|
type PropFor<T, Optional extends boolean> = MetaProp & (Optional extends true ? {
|
|
13
|
-
required?: false;
|
|
13
|
+
required?: false | undefined;
|
|
14
14
|
} : {
|
|
15
15
|
required: true;
|
|
16
16
|
}) & (IsIconName<T> extends true ? {
|
|
@@ -30,20 +30,18 @@ type ObjectKey<P> = {
|
|
|
30
30
|
}[KitPropKey<P>];
|
|
31
31
|
export interface PhoneMeta<P, O extends KitPropKey<P>, F extends KitPropKey<P> = never> extends Omit<ComponentMeta, "props" | "examples" | "omit" | "component" | "fixedProps" | "actions" | "takesAction" | "itemsTakeAction"> {
|
|
32
32
|
/** The export this description draws, when it is not `name`: one export described once per mode. */
|
|
33
|
-
component?: string;
|
|
33
|
+
component?: string | undefined;
|
|
34
34
|
/** Props the kit sets on every placement; they are neither shown nor set by an example. */
|
|
35
35
|
fixedProps?: {
|
|
36
36
|
readonly [K in F]: ExampleValue<P[K]>;
|
|
37
|
-
};
|
|
37
|
+
} | undefined;
|
|
38
38
|
props: {
|
|
39
39
|
[K in Exclude<KitPropKey<P>, O | F>]: PropFor<P[K], Partial<Pick<P, K>> extends Pick<P, K> ? true : false>;
|
|
40
40
|
};
|
|
41
|
-
/** The part's role in the manifest. */
|
|
42
|
-
role?: "title" | "navigation";
|
|
43
41
|
/** Object props that each carry one action; in play a tap on one runs the stored action. */
|
|
44
|
-
takesAction?: readonly ObjectKey<P>[];
|
|
42
|
+
takesAction?: readonly ObjectKey<P>[] | undefined;
|
|
45
43
|
/** Array props whose items each carry an action. */
|
|
46
|
-
itemsTakeAction?: readonly ListKey<P>[];
|
|
44
|
+
itemsTakeAction?: readonly ListKey<P>[] | undefined;
|
|
47
45
|
/** Kit props deliberately not shown, such as object or render props no kit type fits. */
|
|
48
46
|
omit: readonly O[];
|
|
49
47
|
examples: readonly (Omit<MetaExample, "id" | "props"> & {
|