@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
|
@@ -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"> & {
|
|
@@ -5,40 +5,40 @@ export type AccordionVariant = "plain" | "card";
|
|
|
5
5
|
export interface AccordionProps {
|
|
6
6
|
title: string;
|
|
7
7
|
children: React.ReactNode;
|
|
8
|
-
id?: string;
|
|
9
|
-
expanded?: boolean;
|
|
10
|
-
defaultExpanded?: boolean;
|
|
11
|
-
onChange?: (expanded: boolean) => void;
|
|
12
|
-
icon?: React.ReactNode;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
variant?: AccordionVariant;
|
|
15
|
-
accessibilityLabel?: string;
|
|
8
|
+
id?: string | undefined;
|
|
9
|
+
expanded?: boolean | undefined;
|
|
10
|
+
defaultExpanded?: boolean | undefined;
|
|
11
|
+
onChange?: ((expanded: boolean) => void) | undefined;
|
|
12
|
+
icon?: React.ReactNode | undefined;
|
|
13
|
+
disabled?: boolean | undefined;
|
|
14
|
+
variant?: AccordionVariant | undefined;
|
|
15
|
+
accessibilityLabel?: string | undefined;
|
|
16
16
|
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
17
|
-
style?: StyleProp<ViewStyle
|
|
18
|
-
headerStyle?: StyleProp<ViewStyle
|
|
19
|
-
contentStyle?: StyleProp<ViewStyle
|
|
17
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
18
|
+
headerStyle?: StyleProp<ViewStyle> | undefined;
|
|
19
|
+
contentStyle?: StyleProp<ViewStyle> | undefined;
|
|
20
20
|
/** Style applied to the animated wrapper around the expandable content. */
|
|
21
|
-
contentWrapperStyle?: StyleProp<ViewStyle
|
|
21
|
+
contentWrapperStyle?: StyleProp<ViewStyle> | undefined;
|
|
22
22
|
/** Alias of style, applied before it on the same node. Use style. */
|
|
23
|
-
containerStyle?: StyleProp<ViewStyle
|
|
24
|
-
testID?: string;
|
|
23
|
+
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
24
|
+
testID?: string | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* When true, renders the accordion as its authored skeleton placeholder
|
|
27
27
|
* shape (header row, collapsed body). Footprint matches the closed live
|
|
28
28
|
* accordion so the layout doesn't shift when data arrives.
|
|
29
29
|
*/
|
|
30
|
-
loading?: boolean;
|
|
30
|
+
loading?: boolean | undefined;
|
|
31
31
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
32
|
-
haptic?: HapticType | false;
|
|
32
|
+
haptic?: HapticType | false | undefined;
|
|
33
33
|
}
|
|
34
34
|
export interface AccordionGroupProps {
|
|
35
35
|
children: React.ReactNode;
|
|
36
|
-
allowMultiple?: boolean;
|
|
37
|
-
defaultExpandedKeys?: string[];
|
|
38
|
-
expandedKeys?: string[];
|
|
39
|
-
onChange?: (keys: string[]) => void;
|
|
40
|
-
style?: StyleProp<ViewStyle
|
|
41
|
-
testID?: string;
|
|
36
|
+
allowMultiple?: boolean | undefined;
|
|
37
|
+
defaultExpandedKeys?: string[] | undefined;
|
|
38
|
+
expandedKeys?: string[] | undefined;
|
|
39
|
+
onChange?: ((keys: string[]) => void) | undefined;
|
|
40
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
41
|
+
testID?: string | undefined;
|
|
42
42
|
}
|
|
43
43
|
declare const AccordionGroup: React.FC<AccordionGroupProps>;
|
|
44
44
|
declare const Accordion: React.FC<AccordionProps> & {
|
|
@@ -13,47 +13,47 @@ export interface AmountSliderLabels {
|
|
|
13
13
|
}
|
|
14
14
|
export declare const DEFAULT_AMOUNT_SLIDER_LABELS: Readonly<AmountSliderLabels>;
|
|
15
15
|
export interface AmountSliderProps {
|
|
16
|
-
value?: number;
|
|
17
|
-
defaultValue?: number;
|
|
18
|
-
onChange?: (value: number) => void;
|
|
19
|
-
min?: number;
|
|
20
|
-
max?: number;
|
|
21
|
-
step?: number;
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
tone?: SliderTone;
|
|
24
|
-
size?: SliderSize;
|
|
16
|
+
value?: number | undefined;
|
|
17
|
+
defaultValue?: number | undefined;
|
|
18
|
+
onChange?: ((value: number) => void) | undefined;
|
|
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
|
/** The slider's look. Default `'inset'`, the design this component comes from. */
|
|
26
|
-
variant?: SliderVariant;
|
|
26
|
+
variant?: SliderVariant | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* Whether the large amount reads in Thousand, Lakh and Crore or in Thousand,
|
|
29
29
|
* Million and Billion. Default: the grouping of the configured locale.
|
|
30
30
|
*/
|
|
31
|
-
units?: ScaleUnits;
|
|
31
|
+
units?: ScaleUnits | undefined;
|
|
32
32
|
/** ISO 4217 code of the amount; the symbol drawn before it comes from this. */
|
|
33
33
|
currency: string;
|
|
34
34
|
/** Unit words and the input box's label. Omitted keys keep the English defaults. */
|
|
35
|
-
labels?: Partial<AmountSliderLabels
|
|
35
|
+
labels?: Partial<AmountSliderLabels> | undefined;
|
|
36
36
|
/**
|
|
37
37
|
* Text of the input box when it is not being edited. Default: the currency
|
|
38
38
|
* with no decimals.
|
|
39
39
|
*/
|
|
40
|
-
formatInput?: (value: number) => string;
|
|
40
|
+
formatInput?: ((value: number) => string) | undefined;
|
|
41
41
|
/**
|
|
42
42
|
* Duration in ms of one digit roll. Default `theme.motion.duration.default`,
|
|
43
43
|
* which the ThemeProvider collapses to 0 when the OS asks for reduced
|
|
44
44
|
* motion.
|
|
45
45
|
*/
|
|
46
|
-
animationDuration?: number;
|
|
47
|
-
haptic?: HapticType | false;
|
|
46
|
+
animationDuration?: number | undefined;
|
|
47
|
+
haptic?: HapticType | false | undefined;
|
|
48
48
|
/** Read out for the slider. The input box reads `labels.inputLabel`. */
|
|
49
|
-
accessibilityLabel?: string;
|
|
50
|
-
style?: StyleProp<ViewStyle
|
|
51
|
-
headerStyle?: StyleProp<ViewStyle
|
|
52
|
-
valueStyle?: StyleProp<TextStyle
|
|
53
|
-
unitStyle?: StyleProp<TextStyle
|
|
54
|
-
inputStyle?: StyleProp<ViewStyle
|
|
55
|
-
sliderStyle?: StyleProp<ViewStyle
|
|
56
|
-
testID?: string;
|
|
49
|
+
accessibilityLabel?: string | undefined;
|
|
50
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
51
|
+
headerStyle?: StyleProp<ViewStyle> | undefined;
|
|
52
|
+
valueStyle?: StyleProp<TextStyle> | undefined;
|
|
53
|
+
unitStyle?: StyleProp<TextStyle> | undefined;
|
|
54
|
+
inputStyle?: StyleProp<ViewStyle> | undefined;
|
|
55
|
+
sliderStyle?: StyleProp<ViewStyle> | undefined;
|
|
56
|
+
testID?: string | undefined;
|
|
57
57
|
}
|
|
58
58
|
interface Scaled {
|
|
59
59
|
amount: number;
|