@webority/mobile-ui 0.9.1 → 0.11.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/android/src/newarch/java/com/webority/mobileui/pdfrasterizer/PdfRasterizerModule.kt +6 -7
- package/ios/PdfRasterizer.mm +36 -9
- package/lib/commonjs/components/BarChart/BarChart.js +1 -0
- package/lib/commonjs/components/BarChart/index.js +1 -0
- package/lib/commonjs/components/BarChart/scale.js +1 -0
- package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/commonjs/components/BottomNavigation/useScreenReaderEnabled.js +1 -0
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/commonjs/components/BottomSheet/index.js +1 -1
- package/lib/commonjs/components/BottomSheet/useSheetSwap.js +1 -0
- package/lib/commonjs/components/Card/Card.js +1 -1
- package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
- package/lib/commonjs/components/Composer/Composer.js +1 -0
- package/lib/commonjs/components/Composer/index.js +1 -0
- package/lib/commonjs/components/DateSeparator/DateSeparator.js +1 -0
- package/lib/commonjs/components/DateSeparator/index.js +1 -0
- package/lib/commonjs/components/FieldBase/ChoiceText.js +1 -1
- package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
- package/lib/commonjs/components/FieldBase/useFloatingLabel.js +1 -1
- package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/commonjs/components/FormField/FormField.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/Menu/Menu.js +1 -0
- package/lib/commonjs/components/Menu/MenuSurface.js +1 -0
- package/lib/commonjs/components/Menu/focusHost.js +1 -0
- package/lib/commonjs/components/Menu/index.js +1 -0
- package/lib/commonjs/components/Menu/menuModel.js +1 -0
- package/lib/commonjs/components/Menu/useContextMenu.js +1 -0
- package/lib/commonjs/components/Menu/webOnly.js +1 -0
- package/lib/commonjs/components/MessageBubble/MessageBubble.js +1 -0
- package/lib/commonjs/components/MessageBubble/index.js +1 -0
- package/lib/commonjs/components/MessageList/MessageList.js +1 -0
- package/lib/commonjs/components/MessageList/index.js +1 -0
- package/lib/commonjs/components/Notation/Notation.js +1 -1
- package/lib/commonjs/components/OnboardingPager/OnboardingPager.js +1 -0
- package/lib/commonjs/components/OnboardingPager/index.js +1 -0
- package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/commonjs/components/PaymentResult/PaymentResult.js +1 -0
- package/lib/commonjs/components/PaymentResult/index.js +1 -0
- package/lib/commonjs/components/PermissionPrompt/PermissionPrompt.js +1 -0
- package/lib/commonjs/components/PermissionPrompt/index.js +1 -0
- package/lib/commonjs/components/PermissionPrompt/usePermissionPrompt.js +1 -0
- package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/commonjs/components/Radio/Radio.js +1 -1
- package/lib/commonjs/components/Radio/RadioGroup.js +1 -1
- package/lib/commonjs/components/ScannerOverlay/ScannerOverlay.js +1 -0
- package/lib/commonjs/components/ScannerOverlay/index.js +1 -0
- package/lib/commonjs/components/SearchBar/SearchBar.js +1 -1
- package/lib/commonjs/components/SearchBar/SearchPanel.js +1 -0
- package/lib/commonjs/components/SearchBar/highlight.js +1 -0
- package/lib/commonjs/components/SearchBar/index.js +1 -1
- package/lib/commonjs/components/SearchBar/useRecentSearches.js +1 -0
- 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 -0
- package/lib/commonjs/components/SignaturePad/index.js +1 -0
- package/lib/commonjs/components/SignaturePad/signatureGeometry.js +1 -0
- package/lib/commonjs/components/SignaturePad/writePng.js +1 -0
- package/lib/commonjs/components/SignaturePad/writePng.web.js +1 -0
- package/lib/commonjs/components/Sparkline/Sparkline.js +1 -0
- package/lib/commonjs/components/Sparkline/geometry.js +1 -0
- package/lib/commonjs/components/Sparkline/index.js +1 -0
- package/lib/commonjs/components/Spinner/Spinner.js +1 -1
- package/lib/commonjs/components/StatTile/StatTile.js +1 -1
- package/lib/commonjs/components/Switch/Switch.js +1 -1
- package/lib/commonjs/components/TagInput/TagInput.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/Toast/ToastProvider.js +1 -1
- package/lib/commonjs/components/Tooltip/RichTooltipBody.js +1 -0
- package/lib/commonjs/components/Tooltip/Tooltip.js +1 -1
- package/lib/commonjs/components/Tooltip/tooltipPosition.js +1 -0
- package/lib/commonjs/components/TypingIndicator/TypingIndicator.js +1 -0
- package/lib/commonjs/components/TypingIndicator/index.js +1 -0
- package/lib/commonjs/components/WheelPicker/Wheel.js +1 -0
- package/lib/commonjs/components/WheelPicker/WheelPicker.js +1 -0
- package/lib/commonjs/components/WheelPicker/index.js +1 -0
- package/lib/commonjs/components/index.js +1 -1
- package/lib/commonjs/hooks/index.js +1 -1
- package/lib/commonjs/hooks/useRefreshControl.js +1 -0
- package/lib/commonjs/hooks/useScrollDirection.js +1 -0
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/utils/announce.js +1 -0
- package/lib/commonjs/utils/hapticUtils.js +1 -1
- package/lib/commonjs/utils/index.js +1 -1
- package/lib/commonjs/utils/placement.js +1 -0
- package/lib/module/components/BarChart/BarChart.js +1 -0
- package/lib/module/components/BarChart/index.js +1 -0
- package/lib/module/components/BarChart/scale.js +1 -0
- package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/module/components/BottomNavigation/useScreenReaderEnabled.js +1 -0
- package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/module/components/BottomSheet/index.js +1 -1
- package/lib/module/components/BottomSheet/useSheetSwap.js +1 -0
- package/lib/module/components/Card/Card.js +1 -1
- package/lib/module/components/Checkbox/Checkbox.js +1 -1
- package/lib/module/components/Composer/Composer.js +1 -0
- package/lib/module/components/Composer/index.js +1 -0
- package/lib/module/components/DateSeparator/DateSeparator.js +1 -0
- package/lib/module/components/DateSeparator/index.js +1 -0
- package/lib/module/components/FieldBase/ChoiceText.js +1 -1
- package/lib/module/components/FieldBase/FieldBase.js +1 -1
- package/lib/module/components/FieldBase/useFloatingLabel.js +1 -1
- package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/module/components/FormField/FormField.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/Menu/Menu.js +1 -0
- package/lib/module/components/Menu/MenuSurface.js +1 -0
- package/lib/module/components/Menu/focusHost.js +1 -0
- package/lib/module/components/Menu/index.js +1 -0
- package/lib/module/components/Menu/menuModel.js +1 -0
- package/lib/module/components/Menu/useContextMenu.js +1 -0
- package/lib/module/components/Menu/webOnly.js +1 -0
- package/lib/module/components/MessageBubble/MessageBubble.js +1 -0
- package/lib/module/components/MessageBubble/index.js +1 -0
- package/lib/module/components/MessageList/MessageList.js +1 -0
- package/lib/module/components/MessageList/index.js +1 -0
- package/lib/module/components/Notation/Notation.js +1 -1
- package/lib/module/components/OnboardingPager/OnboardingPager.js +1 -0
- package/lib/module/components/OnboardingPager/index.js +1 -0
- package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/module/components/PaymentResult/PaymentResult.js +1 -0
- package/lib/module/components/PaymentResult/index.js +1 -0
- package/lib/module/components/PermissionPrompt/PermissionPrompt.js +1 -0
- package/lib/module/components/PermissionPrompt/index.js +1 -0
- package/lib/module/components/PermissionPrompt/usePermissionPrompt.js +1 -0
- package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/module/components/Radio/Radio.js +1 -1
- package/lib/module/components/Radio/RadioGroup.js +1 -1
- package/lib/module/components/ScannerOverlay/ScannerOverlay.js +1 -0
- package/lib/module/components/ScannerOverlay/index.js +1 -0
- package/lib/module/components/SearchBar/SearchBar.js +1 -1
- package/lib/module/components/SearchBar/SearchPanel.js +1 -0
- package/lib/module/components/SearchBar/highlight.js +1 -0
- package/lib/module/components/SearchBar/index.js +1 -1
- package/lib/module/components/SearchBar/useRecentSearches.js +1 -0
- 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 -0
- package/lib/module/components/SignaturePad/index.js +1 -0
- package/lib/module/components/SignaturePad/signatureGeometry.js +1 -0
- package/lib/module/components/SignaturePad/writePng.js +1 -0
- package/lib/module/components/SignaturePad/writePng.web.js +1 -0
- package/lib/module/components/Sparkline/Sparkline.js +1 -0
- package/lib/module/components/Sparkline/geometry.js +1 -0
- package/lib/module/components/Sparkline/index.js +1 -0
- package/lib/module/components/Spinner/Spinner.js +1 -1
- package/lib/module/components/StatTile/StatTile.js +1 -1
- package/lib/module/components/Switch/Switch.js +1 -1
- package/lib/module/components/TagInput/TagInput.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/Toast/ToastProvider.js +1 -1
- package/lib/module/components/Tooltip/RichTooltipBody.js +1 -0
- package/lib/module/components/Tooltip/Tooltip.js +1 -1
- package/lib/module/components/Tooltip/tooltipPosition.js +1 -0
- package/lib/module/components/TypingIndicator/TypingIndicator.js +1 -0
- package/lib/module/components/TypingIndicator/index.js +1 -0
- package/lib/module/components/WheelPicker/Wheel.js +1 -0
- package/lib/module/components/WheelPicker/WheelPicker.js +1 -0
- package/lib/module/components/WheelPicker/index.js +1 -0
- package/lib/module/components/index.js +1 -1
- package/lib/module/hooks/index.js +1 -1
- package/lib/module/hooks/useRefreshControl.js +1 -0
- package/lib/module/hooks/useScrollDirection.js +1 -0
- package/lib/module/index.js +1 -1
- package/lib/module/utils/announce.js +1 -0
- package/lib/module/utils/hapticUtils.js +1 -1
- package/lib/module/utils/index.js +1 -1
- package/lib/module/utils/placement.js +1 -0
- package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +62 -0
- package/lib/typescript/commonjs/components/BarChart/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/BarChart/scale.d.ts +15 -0
- package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +32 -0
- package/lib/typescript/commonjs/components/BottomNavigation/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/BottomNavigation/useScreenReaderEnabled.d.ts +8 -0
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +34 -3
- package/lib/typescript/commonjs/components/BottomSheet/index.d.ts +2 -0
- package/lib/typescript/commonjs/components/BottomSheet/useSheetSwap.d.ts +24 -0
- package/lib/typescript/commonjs/components/Card/Card.d.ts +9 -0
- package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +4 -1
- package/lib/typescript/commonjs/components/Composer/Composer.d.ts +61 -0
- package/lib/typescript/commonjs/components/Composer/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/DateSeparator/DateSeparator.d.ts +37 -0
- package/lib/typescript/commonjs/components/DateSeparator/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/FileViewer/FileViewer.d.ts +1 -1
- package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +3 -1
- package/lib/typescript/commonjs/components/Input/Input.d.ts +2 -2
- package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +9 -0
- package/lib/typescript/commonjs/components/Menu/Menu.d.ts +46 -0
- package/lib/typescript/commonjs/components/Menu/MenuSurface.d.ts +30 -0
- package/lib/typescript/commonjs/components/Menu/focusHost.d.ts +9 -0
- package/lib/typescript/commonjs/components/Menu/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/Menu/menuModel.d.ts +68 -0
- package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +58 -0
- package/lib/typescript/commonjs/components/Menu/webOnly.d.ts +7 -0
- package/lib/typescript/commonjs/components/MessageBubble/MessageBubble.d.ts +87 -0
- package/lib/typescript/commonjs/components/MessageBubble/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/MessageList/MessageList.d.ts +68 -0
- package/lib/typescript/commonjs/components/MessageList/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Notation/Notation.d.ts +10 -4
- package/lib/typescript/commonjs/components/OnboardingPager/OnboardingPager.d.ts +53 -0
- package/lib/typescript/commonjs/components/OnboardingPager/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +2 -0
- package/lib/typescript/commonjs/components/PaymentResult/PaymentResult.d.ts +71 -0
- package/lib/typescript/commonjs/components/PaymentResult/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/PermissionPrompt/PermissionPrompt.d.ts +39 -0
- package/lib/typescript/commonjs/components/PermissionPrompt/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/PermissionPrompt/usePermissionPrompt.d.ts +44 -0
- package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +5 -2
- package/lib/typescript/commonjs/components/Radio/Radio.d.ts +13 -4
- package/lib/typescript/commonjs/components/Radio/RadioGroup.d.ts +5 -0
- package/lib/typescript/commonjs/components/ScannerOverlay/ScannerOverlay.d.ts +74 -0
- package/lib/typescript/commonjs/components/ScannerOverlay/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +35 -0
- package/lib/typescript/commonjs/components/SearchBar/SearchPanel.d.ts +49 -0
- package/lib/typescript/commonjs/components/SearchBar/highlight.d.ts +14 -0
- package/lib/typescript/commonjs/components/SearchBar/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/SearchBar/useRecentSearches.d.ts +24 -0
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +5 -1
- package/lib/typescript/commonjs/components/Select/Select.d.ts +4 -1
- package/lib/typescript/commonjs/components/SignaturePad/SignaturePad.d.ts +94 -0
- package/lib/typescript/commonjs/components/SignaturePad/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/SignaturePad/signatureGeometry.d.ts +36 -0
- package/lib/typescript/commonjs/components/SignaturePad/writePng.d.ts +7 -0
- package/lib/typescript/commonjs/components/SignaturePad/writePng.web.d.ts +3 -0
- package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +41 -0
- package/lib/typescript/commonjs/components/Sparkline/geometry.d.ts +20 -0
- package/lib/typescript/commonjs/components/Sparkline/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +7 -1
- package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +24 -1
- package/lib/typescript/commonjs/components/StatTile/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/Switch/Switch.d.ts +11 -4
- package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +4 -0
- package/lib/typescript/commonjs/components/Toast/Toast.d.ts +21 -0
- package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +21 -0
- package/lib/typescript/commonjs/components/Toast/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/Tooltip/RichTooltipBody.d.ts +27 -0
- package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +24 -0
- package/lib/typescript/commonjs/components/Tooltip/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/Tooltip/tooltipPosition.d.ts +35 -0
- package/lib/typescript/commonjs/components/TypingIndicator/TypingIndicator.d.ts +21 -0
- package/lib/typescript/commonjs/components/TypingIndicator/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/WheelPicker/Wheel.d.ts +34 -0
- package/lib/typescript/commonjs/components/WheelPicker/WheelPicker.d.ts +73 -0
- package/lib/typescript/commonjs/components/WheelPicker/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/index.d.ts +36 -8
- package/lib/typescript/commonjs/hooks/index.d.ts +4 -0
- package/lib/typescript/commonjs/hooks/useRefreshControl.d.ts +75 -0
- package/lib/typescript/commonjs/hooks/useScrollDirection.d.ts +21 -0
- package/lib/typescript/commonjs/index.d.ts +4 -4
- package/lib/typescript/commonjs/specs/NativePdfRasterizer.d.ts +1 -1
- package/lib/typescript/commonjs/utils/announce.d.ts +14 -0
- package/lib/typescript/commonjs/utils/hapticUtils.d.ts +1 -1
- package/lib/typescript/commonjs/utils/index.d.ts +2 -0
- package/lib/typescript/commonjs/utils/placement.d.ts +55 -0
- package/lib/typescript/module/components/BarChart/BarChart.d.ts +62 -0
- package/lib/typescript/module/components/BarChart/index.d.ts +3 -0
- package/lib/typescript/module/components/BarChart/scale.d.ts +15 -0
- package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +32 -0
- package/lib/typescript/module/components/BottomNavigation/index.d.ts +1 -1
- package/lib/typescript/module/components/BottomNavigation/useScreenReaderEnabled.d.ts +8 -0
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +34 -3
- package/lib/typescript/module/components/BottomSheet/index.d.ts +2 -0
- package/lib/typescript/module/components/BottomSheet/useSheetSwap.d.ts +24 -0
- package/lib/typescript/module/components/Card/Card.d.ts +9 -0
- package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +4 -1
- package/lib/typescript/module/components/Composer/Composer.d.ts +61 -0
- package/lib/typescript/module/components/Composer/index.d.ts +3 -0
- package/lib/typescript/module/components/DateSeparator/DateSeparator.d.ts +37 -0
- package/lib/typescript/module/components/DateSeparator/index.d.ts +3 -0
- package/lib/typescript/module/components/FileViewer/FileViewer.d.ts +1 -1
- package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +3 -1
- package/lib/typescript/module/components/Input/Input.d.ts +2 -2
- package/lib/typescript/module/components/ListItem/ListItem.d.ts +9 -0
- package/lib/typescript/module/components/Menu/Menu.d.ts +46 -0
- package/lib/typescript/module/components/Menu/MenuSurface.d.ts +30 -0
- package/lib/typescript/module/components/Menu/focusHost.d.ts +9 -0
- package/lib/typescript/module/components/Menu/index.d.ts +5 -0
- package/lib/typescript/module/components/Menu/menuModel.d.ts +68 -0
- package/lib/typescript/module/components/Menu/useContextMenu.d.ts +58 -0
- package/lib/typescript/module/components/Menu/webOnly.d.ts +7 -0
- package/lib/typescript/module/components/MessageBubble/MessageBubble.d.ts +87 -0
- package/lib/typescript/module/components/MessageBubble/index.d.ts +3 -0
- package/lib/typescript/module/components/MessageList/MessageList.d.ts +68 -0
- package/lib/typescript/module/components/MessageList/index.d.ts +3 -0
- package/lib/typescript/module/components/Notation/Notation.d.ts +10 -4
- package/lib/typescript/module/components/OnboardingPager/OnboardingPager.d.ts +53 -0
- package/lib/typescript/module/components/OnboardingPager/index.d.ts +3 -0
- package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +2 -0
- package/lib/typescript/module/components/PaymentResult/PaymentResult.d.ts +71 -0
- package/lib/typescript/module/components/PaymentResult/index.d.ts +3 -0
- package/lib/typescript/module/components/PermissionPrompt/PermissionPrompt.d.ts +39 -0
- package/lib/typescript/module/components/PermissionPrompt/index.d.ts +5 -0
- package/lib/typescript/module/components/PermissionPrompt/usePermissionPrompt.d.ts +44 -0
- package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +5 -2
- package/lib/typescript/module/components/Radio/Radio.d.ts +13 -4
- package/lib/typescript/module/components/Radio/RadioGroup.d.ts +5 -0
- package/lib/typescript/module/components/ScannerOverlay/ScannerOverlay.d.ts +74 -0
- package/lib/typescript/module/components/ScannerOverlay/index.d.ts +3 -0
- package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +35 -0
- package/lib/typescript/module/components/SearchBar/SearchPanel.d.ts +49 -0
- package/lib/typescript/module/components/SearchBar/highlight.d.ts +14 -0
- package/lib/typescript/module/components/SearchBar/index.d.ts +3 -0
- package/lib/typescript/module/components/SearchBar/useRecentSearches.d.ts +24 -0
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +5 -1
- package/lib/typescript/module/components/Select/Select.d.ts +4 -1
- package/lib/typescript/module/components/SignaturePad/SignaturePad.d.ts +94 -0
- package/lib/typescript/module/components/SignaturePad/index.d.ts +4 -0
- package/lib/typescript/module/components/SignaturePad/signatureGeometry.d.ts +36 -0
- package/lib/typescript/module/components/SignaturePad/writePng.d.ts +7 -0
- package/lib/typescript/module/components/SignaturePad/writePng.web.d.ts +3 -0
- package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +41 -0
- package/lib/typescript/module/components/Sparkline/geometry.d.ts +20 -0
- package/lib/typescript/module/components/Sparkline/index.d.ts +3 -0
- package/lib/typescript/module/components/Spinner/Spinner.d.ts +7 -1
- package/lib/typescript/module/components/StatTile/StatTile.d.ts +24 -1
- package/lib/typescript/module/components/StatTile/index.d.ts +1 -1
- package/lib/typescript/module/components/Switch/Switch.d.ts +11 -4
- package/lib/typescript/module/components/TagInput/TagInput.d.ts +4 -0
- package/lib/typescript/module/components/Toast/Toast.d.ts +21 -0
- package/lib/typescript/module/components/Toast/ToastProvider.d.ts +21 -0
- package/lib/typescript/module/components/Toast/index.d.ts +1 -1
- package/lib/typescript/module/components/Tooltip/RichTooltipBody.d.ts +27 -0
- package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +24 -0
- package/lib/typescript/module/components/Tooltip/index.d.ts +1 -1
- package/lib/typescript/module/components/Tooltip/tooltipPosition.d.ts +35 -0
- package/lib/typescript/module/components/TypingIndicator/TypingIndicator.d.ts +21 -0
- package/lib/typescript/module/components/TypingIndicator/index.d.ts +3 -0
- package/lib/typescript/module/components/WheelPicker/Wheel.d.ts +34 -0
- package/lib/typescript/module/components/WheelPicker/WheelPicker.d.ts +73 -0
- package/lib/typescript/module/components/WheelPicker/index.d.ts +3 -0
- package/lib/typescript/module/components/index.d.ts +36 -8
- package/lib/typescript/module/hooks/index.d.ts +4 -0
- package/lib/typescript/module/hooks/useRefreshControl.d.ts +75 -0
- package/lib/typescript/module/hooks/useScrollDirection.d.ts +21 -0
- package/lib/typescript/module/index.d.ts +4 -4
- package/lib/typescript/module/specs/NativePdfRasterizer.d.ts +1 -1
- package/lib/typescript/module/utils/announce.d.ts +14 -0
- package/lib/typescript/module/utils/hapticUtils.d.ts +1 -1
- package/lib/typescript/module/utils/index.d.ts +2 -0
- package/lib/typescript/module/utils/placement.d.ts +55 -0
- package/package.json +3 -3
- package/src/specs/NativePdfRasterizer.ts +1 -1
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { View as RNView, StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
export type SpinnerSize = 'sm' | 'md' | 'lg';
|
|
4
|
-
export type SpinnerVariant = 'circular' | 'dots';
|
|
4
|
+
export type SpinnerVariant = 'circular' | 'dots' | 'contained';
|
|
5
5
|
export interface SpinnerProps {
|
|
6
6
|
size?: SpinnerSize;
|
|
7
7
|
color?: string;
|
|
8
8
|
message?: string;
|
|
9
|
+
/** Ignored by `variant="contained"`, which fills its own parent instead. */
|
|
9
10
|
overlay?: boolean;
|
|
10
11
|
backdropColor?: string;
|
|
12
|
+
/**
|
|
13
|
+
* `'contained'` draws the indicator on a tinted round container and fills
|
|
14
|
+
* the card or section it sits in (no backdrop, no elevation), so one slow
|
|
15
|
+
* section can load without a full-screen spinner. Library default: `'circular'`.
|
|
16
|
+
*/
|
|
11
17
|
variant?: SpinnerVariant;
|
|
12
18
|
accessibilityLabel?: string;
|
|
13
19
|
style?: StyleProp<ViewStyle>;
|
|
@@ -3,6 +3,19 @@ import type { View as RNView, StyleProp, ViewStyle } from 'react-native';
|
|
|
3
3
|
import type { IconVariant } from '../AppIcon/AppIcon.js';
|
|
4
4
|
import type { SlotIcon } from '../AppIcon/slotIcon.js';
|
|
5
5
|
import type { IconBadgeTone } from '../IconBadge/index.js';
|
|
6
|
+
export interface StatTileTrend {
|
|
7
|
+
/**
|
|
8
|
+
* The change. A number is a percentage (12.4 for 12.4%) and is drawn without its own sign,
|
|
9
|
+
* because `direction` carries it; a string ("12 more") is drawn as given.
|
|
10
|
+
*/
|
|
11
|
+
value: number | string;
|
|
12
|
+
/** Which way the figure moved. `'flat'` draws a dash and no sign. */
|
|
13
|
+
direction: 'up' | 'down' | 'flat';
|
|
14
|
+
/** Which direction is good news. Colours the change green or red. Default `'up'`. */
|
|
15
|
+
goodWhen?: 'up' | 'down';
|
|
16
|
+
/** What the change is measured against, written in full: "vs last month". */
|
|
17
|
+
period?: string;
|
|
18
|
+
}
|
|
6
19
|
export interface StatTileProps {
|
|
7
20
|
/** What the figure measures, drawn small above it. */
|
|
8
21
|
label: string;
|
|
@@ -16,11 +29,21 @@ export interface StatTileProps {
|
|
|
16
29
|
tone?: IconBadgeTone;
|
|
17
30
|
/** A small line under the figure (a period, a delta). */
|
|
18
31
|
caption?: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* How the figure changed. Drawn under the figure as an arrow, a sign and the change, so the
|
|
34
|
+
* direction never rests on colour alone: "+12.4% vs last month".
|
|
35
|
+
*/
|
|
36
|
+
trend?: StatTileTrend;
|
|
37
|
+
/** A small chart under the tile's text, usually a `Sparkline`. */
|
|
38
|
+
sparkline?: ReactNode;
|
|
19
39
|
/** Makes the tile pressable, with the button role. */
|
|
20
40
|
onPress?: () => void;
|
|
21
41
|
/** Draws a placeholder of the same footprint while the figure loads. */
|
|
22
42
|
loading?: boolean;
|
|
23
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Announced instead of the label and figure. Defaults to `"label, value"` for a text figure,
|
|
45
|
+
* with the change after it ("up 12.4% vs last month") when there is a `trend`.
|
|
46
|
+
*/
|
|
24
47
|
accessibilityLabel?: string;
|
|
25
48
|
style?: StyleProp<ViewStyle>;
|
|
26
49
|
testID?: string;
|
|
@@ -12,10 +12,17 @@ export interface SwitchProps extends Omit<PressableProps, 'style' | 'children' |
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
size?: SwitchSize;
|
|
14
14
|
tone?: SwitchTone;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
/**
|
|
16
|
+
* A string, or a node for a symbol with a subscript. A node label needs an
|
|
17
|
+
* explicit `accessibilityLabel` (the switch's screen-reader name).
|
|
18
|
+
*/
|
|
19
|
+
label?: ReactNode;
|
|
20
|
+
/** Secondary line under the label. A string or a node; a node description adds nothing to the accessibility hint. */
|
|
21
|
+
description?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Error line under the label (and description); also outlines the off track in the error colour.
|
|
24
|
+
* A string or a node; `true` shows the error state without a message.
|
|
25
|
+
*/
|
|
19
26
|
error?: ReactNode;
|
|
20
27
|
/**
|
|
21
28
|
* Lines the label (and the description) may take before truncating with an
|
|
@@ -10,6 +10,10 @@ export interface TagInputProps {
|
|
|
10
10
|
placeholder?: string;
|
|
11
11
|
label?: string;
|
|
12
12
|
helperText?: string;
|
|
13
|
+
/**
|
|
14
|
+
* A string or a node puts the field in the error state and shows it below in place of the
|
|
15
|
+
* helper; `true` shows the error state without a message.
|
|
16
|
+
*/
|
|
13
17
|
error?: ReactNode;
|
|
14
18
|
required?: boolean;
|
|
15
19
|
disabled?: boolean;
|
|
@@ -29,10 +29,30 @@ export interface ToastOptions {
|
|
|
29
29
|
/** Style applied to the trailing action Pressable. */
|
|
30
30
|
actionButtonStyle?: StyleProp<ViewStyle>;
|
|
31
31
|
testID?: string;
|
|
32
|
+
/**
|
|
33
|
+
* A toast shown with the same key replaces the one on screen. A pending
|
|
34
|
+
* `toast.undo` commit of the replaced toast runs first.
|
|
35
|
+
*/
|
|
36
|
+
key?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Draws a thin bar along the bottom edge that empties over the duration. It is
|
|
39
|
+
* drawn full and still under reduced motion, and not drawn when the toast does
|
|
40
|
+
* not time out.
|
|
41
|
+
*/
|
|
42
|
+
countdown?: boolean;
|
|
32
43
|
}
|
|
33
44
|
export interface ToastItem extends ToastOptions {
|
|
34
45
|
id: string;
|
|
35
46
|
}
|
|
47
|
+
/** What the provider shares with every toast it draws. */
|
|
48
|
+
export interface ToastRuntime {
|
|
49
|
+
/** A screen reader is on (always false on web, where it cannot be detected). */
|
|
50
|
+
screenReaderOn: boolean;
|
|
51
|
+
/** The time left for a toast that was on screen before it moved to another host. */
|
|
52
|
+
readRemaining: (id: string) => number | undefined;
|
|
53
|
+
/** Stores the time left when a running toast unmounts, so its next host resumes it. */
|
|
54
|
+
writeRemaining: (id: string, remainingMs: number) => void;
|
|
55
|
+
}
|
|
36
56
|
export interface ToastProps {
|
|
37
57
|
toast: ToastItem;
|
|
38
58
|
index: number;
|
|
@@ -43,6 +63,7 @@ export interface ToastProps {
|
|
|
43
63
|
* keeps its remaining time. Defaults to the moment this component mounts.
|
|
44
64
|
*/
|
|
45
65
|
shownAt?: number;
|
|
66
|
+
runtime?: ToastRuntime;
|
|
46
67
|
}
|
|
47
68
|
declare const Toast: React.FC<ToastProps>;
|
|
48
69
|
export { Toast };
|
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { HapticType } from '../../utils/hapticUtils.js';
|
|
3
3
|
import type { ToastOptions, ToastPosition, ToastVariant } from './Toast.js';
|
|
4
|
+
export interface ToastUndoOptions extends Omit<ToastOptions, 'message' | 'variant' | 'action' | 'countdown' | 'duration'> {
|
|
5
|
+
/** Runs when Undo is pressed. The toast closes and `onCommit` never runs. */
|
|
6
|
+
onUndo: () => void;
|
|
7
|
+
/**
|
|
8
|
+
* Runs once when the toast ends any other way: it times out, is swiped away,
|
|
9
|
+
* is hidden, is pushed out by newer toasts, is replaced by a toast with the
|
|
10
|
+
* same `key`, or the provider unmounts. Do the irreversible part here.
|
|
11
|
+
*/
|
|
12
|
+
onCommit?: () => void;
|
|
13
|
+
/** Label of the action button. Default `Undo`. */
|
|
14
|
+
undoLabel?: string;
|
|
15
|
+
/**
|
|
16
|
+
* How long Undo stays, in ms. Default `6000`, never shorter than `6000`; `0`
|
|
17
|
+
* keeps it until dismissed. With a screen reader on the toast waits to be
|
|
18
|
+
* dismissed whatever this is, so keep the item recoverable some other way.
|
|
19
|
+
*/
|
|
20
|
+
duration?: number;
|
|
21
|
+
}
|
|
4
22
|
export interface ToastApi {
|
|
5
23
|
show: (opts: ToastOptions) => string;
|
|
24
|
+
/** A toast with an Undo action and a countdown bar; see `ToastUndoOptions`. */
|
|
25
|
+
undo: (message: string, opts: ToastUndoOptions) => string;
|
|
6
26
|
hide: (id: string) => void;
|
|
7
27
|
hideAll: () => void;
|
|
8
28
|
}
|
|
@@ -38,6 +58,7 @@ export declare const ToastHost: React.FC;
|
|
|
38
58
|
export declare const useToast: () => ToastApi;
|
|
39
59
|
interface ToastGlobal {
|
|
40
60
|
show: (opts: ToastOptions) => string;
|
|
61
|
+
undo: (message: string, opts: ToastUndoOptions) => string;
|
|
41
62
|
success: (message: string, opts?: Omit<ToastOptions, 'message' | 'variant'>) => string;
|
|
42
63
|
error: (message: string, opts?: Omit<ToastOptions, 'message' | 'variant'>) => string;
|
|
43
64
|
warning: (message: string, opts?: Omit<ToastOptions, 'message' | 'variant'>) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { ToastAction, ToastItem, ToastOptions, ToastPosition, ToastProps, ToastVariant } from './Toast.js';
|
|
2
2
|
export { default, Toast } from './Toast.js';
|
|
3
|
-
export type { ToastApi, ToastHaptics, ToastProviderProps } from './ToastProvider.js';
|
|
3
|
+
export type { ToastApi, ToastHaptics, ToastProviderProps, ToastUndoOptions } from './ToastProvider.js';
|
|
4
4
|
export { ToastHost, ToastProvider, toast, useToast } from './ToastProvider.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { Text as RNText, View as RNView, StyleProp, TextStyle } from 'react-native';
|
|
3
|
+
/** The one text button of a rich tooltip. */
|
|
4
|
+
export interface TooltipAction {
|
|
5
|
+
label: string;
|
|
6
|
+
onPress: () => void;
|
|
7
|
+
accessibilityLabel?: string;
|
|
8
|
+
}
|
|
9
|
+
interface RichTooltipBodyProps {
|
|
10
|
+
title?: string;
|
|
11
|
+
content: string | React.ReactNode;
|
|
12
|
+
action?: TooltipAction;
|
|
13
|
+
onAction: () => void;
|
|
14
|
+
/** Takes screen reader focus on open: the title, or the text when there is none. */
|
|
15
|
+
focusRef: React.Ref<RNText>;
|
|
16
|
+
/** Takes keyboard focus on open on the web. */
|
|
17
|
+
actionRef: React.Ref<RNView>;
|
|
18
|
+
messageStyle?: StyleProp<TextStyle>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The card of `variant="rich"`: a light surface with a title, the content and
|
|
22
|
+
* one action. Not a child of the close area, so every part is reachable by a
|
|
23
|
+
* screen reader on its own.
|
|
24
|
+
*/
|
|
25
|
+
export declare const RichTooltipBody: React.FC<RichTooltipBodyProps>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=RichTooltipBody.d.ts.map
|
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import type { TooltipAction } from './RichTooltipBody.js';
|
|
4
|
+
export type { TooltipAction } from './RichTooltipBody.js';
|
|
3
5
|
export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right' | 'auto';
|
|
4
6
|
export type TooltipTrigger = 'longPress' | 'press' | 'manual';
|
|
7
|
+
/**
|
|
8
|
+
* `plain` is a short dark hint. `rich` is a light card with a `title`, the
|
|
9
|
+
* `content` and one `action`, the Material rich tooltip: it opens on press by
|
|
10
|
+
* default, stays until a tap outside, Back, Escape or its action, moves
|
|
11
|
+
* screen reader focus into itself and back to the trigger on close, and sits
|
|
12
|
+
* only above or below its trigger. Anything with inputs, a list or more than
|
|
13
|
+
* one action belongs in a BottomSheet.
|
|
14
|
+
*/
|
|
15
|
+
export type TooltipVariant = 'plain' | 'rich';
|
|
5
16
|
export interface TooltipProps {
|
|
6
17
|
content: string | React.ReactNode;
|
|
7
18
|
children: React.ReactElement;
|
|
19
|
+
/** Default `'plain'`. */
|
|
20
|
+
variant?: TooltipVariant;
|
|
21
|
+
/** Rich only: one line over the content. */
|
|
22
|
+
title?: string;
|
|
23
|
+
/** Rich only: one text button. It runs after the tooltip has closed. */
|
|
24
|
+
action?: TooltipAction;
|
|
25
|
+
/** `left` and `right` read as `auto` on a rich tooltip. */
|
|
8
26
|
placement?: TooltipPlacement;
|
|
27
|
+
/**
|
|
28
|
+
* Default `'longPress'`, or `'press'` for a rich tooltip. A long press is
|
|
29
|
+
* never attached to a child with its own `contextMenu`: the menu wins.
|
|
30
|
+
*/
|
|
9
31
|
trigger?: TooltipTrigger;
|
|
10
32
|
visible?: boolean;
|
|
11
33
|
onVisibleChange?: (visible: boolean) => void;
|
|
@@ -20,6 +42,8 @@ export interface TooltipProps {
|
|
|
20
42
|
arrowStyle?: StyleProp<ViewStyle>;
|
|
21
43
|
/** Style override applied to the message Text (only when `content` is a string). */
|
|
22
44
|
messageStyle?: StyleProp<TextStyle>;
|
|
45
|
+
/** Accessible name of the tap-outside area. Default `'Close tooltip'`. */
|
|
46
|
+
closeLabel?: string;
|
|
23
47
|
testID?: string;
|
|
24
48
|
}
|
|
25
49
|
declare const Tooltip: React.FC<TooltipProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { TooltipPlacement, TooltipProps, TooltipTrigger } from './Tooltip.js';
|
|
1
|
+
export type { TooltipAction, TooltipPlacement, TooltipProps, TooltipTrigger, TooltipVariant } from './Tooltip.js';
|
|
2
2
|
export { default, Tooltip } from './Tooltip.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { LayoutRectangle } from 'react-native';
|
|
2
|
+
import type { PlacementViewport } from '../../utils/placement.js';
|
|
3
|
+
export type TooltipSide = 'top' | 'bottom' | 'left' | 'right';
|
|
4
|
+
export interface TooltipPosition {
|
|
5
|
+
top: number;
|
|
6
|
+
left: number;
|
|
7
|
+
placement: TooltipSide;
|
|
8
|
+
/** Distance of the arrow tip along the edge that faces the trigger. */
|
|
9
|
+
arrowOffset: number;
|
|
10
|
+
}
|
|
11
|
+
export interface TooltipLayout {
|
|
12
|
+
/** The trigger in window coordinates; null until measured. */
|
|
13
|
+
anchor: LayoutRectangle | null;
|
|
14
|
+
/** The bubble's measured size; zeros until its first layout. */
|
|
15
|
+
size: {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
};
|
|
19
|
+
placement: TooltipSide | 'auto';
|
|
20
|
+
/** A rich tooltip only goes above or below its trigger. */
|
|
21
|
+
rich: boolean;
|
|
22
|
+
viewport: PlacementViewport;
|
|
23
|
+
maxWidth: number;
|
|
24
|
+
gap: number;
|
|
25
|
+
/** Least distance from each safe edge. */
|
|
26
|
+
padding: number;
|
|
27
|
+
arrowCornerPadding: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Where a tooltip bubble sits. Above and below go through the shared
|
|
31
|
+
* placement engine (the one Menu uses), so both flip and clamp alike; left
|
|
32
|
+
* and right stay a tooltip's own.
|
|
33
|
+
*/
|
|
34
|
+
export declare const resolveTooltipPosition: (layout: TooltipLayout) => TooltipPosition;
|
|
35
|
+
//# sourceMappingURL=tooltipPosition.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export interface TypingIndicatorProps {
|
|
4
|
+
/** Shown beside the dots and read by screen readers, e.g. "Shannon is typing". */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Screen-reader name when there is no visible `label`. Default 'Typing'. */
|
|
7
|
+
accessibilityLabel?: string;
|
|
8
|
+
/** Draw the dots inside a `theirs` bubble. Default true. */
|
|
9
|
+
bubble?: boolean;
|
|
10
|
+
style?: StyleProp<ViewStyle>;
|
|
11
|
+
testID?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Three pulsing dots, with an optional line such as "Shannon is typing", for
|
|
15
|
+
* the bottom of a `MessageList` (its `typing` slot). The pulse runs on the UI
|
|
16
|
+
* thread and stops under Reduce Motion. It is not announced: a person hears
|
|
17
|
+
* the reply when it arrives.
|
|
18
|
+
*/
|
|
19
|
+
export declare const TypingIndicator: React.FC<TypingIndicatorProps>;
|
|
20
|
+
export default TypingIndicator;
|
|
21
|
+
//# sourceMappingURL=TypingIndicator.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { Theme } from '../../theme/types.js';
|
|
3
|
+
import type { HapticType } from '../../utils/hapticUtils.js';
|
|
4
|
+
export interface WheelItem {
|
|
5
|
+
value: string | number;
|
|
6
|
+
/** Text drawn in the row. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** What a screen reader says for this value, such as "2 hours". Defaults to `label`. */
|
|
9
|
+
accessibilityLabel?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const WHEEL_VISIBLE_ITEMS = 5;
|
|
12
|
+
export declare const WHEEL_CENTER_OFFSET: number;
|
|
13
|
+
interface WheelProps {
|
|
14
|
+
label: string;
|
|
15
|
+
items: ReadonlyArray<WheelItem>;
|
|
16
|
+
selectedIndex: number;
|
|
17
|
+
onIndexChange: (index: number) => void;
|
|
18
|
+
itemHeight: number;
|
|
19
|
+
width?: number;
|
|
20
|
+
theme: Theme;
|
|
21
|
+
haptic?: HapticType | false;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
reducedMotion: boolean;
|
|
24
|
+
testID?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* One scrolling column. It commits `onIndexChange` once the column rests on an
|
|
28
|
+
* item (momentum end on native, a short idle on web, where the browser has no
|
|
29
|
+
* snap-to-interval or momentum events), when a screen reader adjusts it, or
|
|
30
|
+
* when a key moves it. The caller owns `selectedIndex`.
|
|
31
|
+
*/
|
|
32
|
+
export declare const Wheel: React.FC<WheelProps>;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=Wheel.d.ts.map
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { HapticType } from '../../utils/hapticUtils.js';
|
|
4
|
+
import type { WheelItem } from './Wheel.js';
|
|
5
|
+
export type { WheelItem } from './Wheel.js';
|
|
6
|
+
export type WheelDurationStep = 1 | 5 | 15 | 30;
|
|
7
|
+
export interface WheelPickerColumn {
|
|
8
|
+
/** Passed back to `onChange` in columns mode. */
|
|
9
|
+
key: string;
|
|
10
|
+
/** Names the column for a screen reader, such as "Hour". */
|
|
11
|
+
label: string;
|
|
12
|
+
items: ReadonlyArray<WheelItem>;
|
|
13
|
+
/** The selected item's `value`. A value that is not in `items` shows the first item. */
|
|
14
|
+
value: string | number;
|
|
15
|
+
/** Fixed width in points. Default 64 in columns mode; the list mode column fills the row. */
|
|
16
|
+
width?: number;
|
|
17
|
+
/** Text drawn after the column, such as ":" between hours and minutes. */
|
|
18
|
+
separator?: string;
|
|
19
|
+
/** Small unit label drawn beside the selected row, such as "min". */
|
|
20
|
+
unit?: string;
|
|
21
|
+
/** Empty space after the column (and its unit or separator), in points. */
|
|
22
|
+
gapAfter?: number;
|
|
23
|
+
testID?: string;
|
|
24
|
+
}
|
|
25
|
+
interface WheelPickerBaseProps {
|
|
26
|
+
/** Tick at each detent. `false` is silent; a `HapticType` replaces the default `denseTick`. */
|
|
27
|
+
haptic?: HapticType | false;
|
|
28
|
+
/** Locks scrolling and screen reader adjustment and dims the wheels. */
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
testID?: string;
|
|
31
|
+
/** Style of the row that holds the wheels. */
|
|
32
|
+
style?: StyleProp<ViewStyle>;
|
|
33
|
+
}
|
|
34
|
+
/** Several wheels side by side, each with its own items. */
|
|
35
|
+
export interface WheelPickerColumnsProps extends WheelPickerBaseProps {
|
|
36
|
+
mode?: 'columns';
|
|
37
|
+
columns: ReadonlyArray<WheelPickerColumn>;
|
|
38
|
+
/** Fired with the column's `key` and the picked item's `value` once a wheel rests. */
|
|
39
|
+
onChange?: (key: string, value: string | number) => void;
|
|
40
|
+
}
|
|
41
|
+
/** One wheel over a short list of choices. */
|
|
42
|
+
export interface WheelPickerListProps extends WheelPickerBaseProps {
|
|
43
|
+
mode: 'list';
|
|
44
|
+
items: ReadonlyArray<WheelItem | string | number>;
|
|
45
|
+
value?: string | number | null;
|
|
46
|
+
onChange?: (value: string | number) => void;
|
|
47
|
+
/** Names the wheel for a screen reader. Default "Value". */
|
|
48
|
+
label?: string;
|
|
49
|
+
/** Fixed width in points. Default fills the row. */
|
|
50
|
+
width?: number;
|
|
51
|
+
}
|
|
52
|
+
export interface WheelPickerDurationLabels {
|
|
53
|
+
hours?: string;
|
|
54
|
+
minutes?: string;
|
|
55
|
+
hourUnit?: string;
|
|
56
|
+
minuteUnit?: string;
|
|
57
|
+
}
|
|
58
|
+
/** Hours and minutes, up to 23 h 59 min, with the value as a whole number of minutes. */
|
|
59
|
+
export interface WheelPickerDurationProps extends WheelPickerBaseProps {
|
|
60
|
+
mode: 'duration';
|
|
61
|
+
/** Duration in minutes. Clamped to `maxMinutes` and rounded to `minuteStep`. */
|
|
62
|
+
value: number;
|
|
63
|
+
onChange?: (minutes: number) => void;
|
|
64
|
+
minuteStep?: WheelDurationStep;
|
|
65
|
+
/** Upper bound in minutes. Default and ceiling 1439 (23 h 59 min). */
|
|
66
|
+
maxMinutes?: number;
|
|
67
|
+
labels?: WheelPickerDurationLabels;
|
|
68
|
+
}
|
|
69
|
+
export type WheelPickerProps = WheelPickerColumnsProps | WheelPickerListProps | WheelPickerDurationProps;
|
|
70
|
+
declare const WheelPicker: React.FC<WheelPickerProps>;
|
|
71
|
+
export { WheelPicker };
|
|
72
|
+
export default WheelPicker;
|
|
73
|
+
//# sourceMappingURL=WheelPicker.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { WheelDurationStep, WheelItem, WheelPickerColumn, WheelPickerColumnsProps, WheelPickerDurationLabels, WheelPickerDurationProps, WheelPickerListProps, WheelPickerProps } from './WheelPicker.js';
|
|
2
|
+
export { default, WheelPicker } from './WheelPicker.js';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -18,10 +18,12 @@ export type { BadgeAnchor, BadgeProps, BadgeTone, BadgeVariant } from './Badge/i
|
|
|
18
18
|
export { Badge } from './Badge/index.js';
|
|
19
19
|
export type { BannerAction, BannerActionSize, BannerActionTone, BannerActionVariant, BannerProps, BannerRole, BannerVariant } from './Banner/index.js';
|
|
20
20
|
export { Banner } from './Banner/index.js';
|
|
21
|
-
export type {
|
|
21
|
+
export type { BarChartDatum, BarChartProps, BarChartTone } from './BarChart/index.js';
|
|
22
|
+
export { BarChart } from './BarChart/index.js';
|
|
23
|
+
export type { BottomNavigationAccessoryState, BottomNavigationCenterAction, BottomNavigationElevation, BottomNavigationIndicatorPosition, BottomNavigationIndicatorRadius, BottomNavigationProps, BottomNavigationRadius, BottomNavigationVariant, TabBadge, TabConfig, TabIcon, TabIconProps } from './BottomNavigation/index.js';
|
|
22
24
|
export { BottomNavigation } from './BottomNavigation/index.js';
|
|
23
|
-
export type { BottomSheetContextValue, BottomSheetPresentation, BottomSheetProps, BottomSheetRef } from './BottomSheet/index.js';
|
|
24
|
-
export { BottomSheet, useBottomSheet } from './BottomSheet/index.js';
|
|
25
|
+
export type { BottomSheetContextValue, BottomSheetPresentation, BottomSheetProps, BottomSheetRef, SheetSwap, SheetSwapOptions } from './BottomSheet/index.js';
|
|
26
|
+
export { BottomSheet, useBottomSheet, useSheetSwap } from './BottomSheet/index.js';
|
|
25
27
|
export type { BoxProps, RowProps, SpacerProps, StackProps } from './Box/index.js';
|
|
26
28
|
export { Box, Row, Spacer, Stack } from './Box/index.js';
|
|
27
29
|
export type { ButtonProps, ButtonSize, ButtonTone, ButtonVariant } from './Button/index.js';
|
|
@@ -38,12 +40,16 @@ export type { ChipProps, ChipSelectionMode, ChipSize, ChipTone, ChipVariant } fr
|
|
|
38
40
|
export { Chip } from './Chip/index.js';
|
|
39
41
|
export type { ChoiceGroupDirection, ChoiceGroupIndicatorPosition, ChoiceGroupProps, ChoiceGroupSelectionMode, ChoiceGroupSize, ChoiceGroupVariant, ChoiceOption, ChoiceOptionState } from './ChoiceGroup/index.js';
|
|
40
42
|
export { ChoiceGroup } from './ChoiceGroup/index.js';
|
|
43
|
+
export type { ComposerProps } from './Composer/index.js';
|
|
44
|
+
export { Composer } from './Composer/index.js';
|
|
41
45
|
export type { ConfettiHandle, ConfettiOrigin, ConfettiPhysics, ConfettiPreset, ConfettiProps, ConfettiShape, ConfettiSpeed } from './Confetti/index.js';
|
|
42
46
|
export { Confetti } from './Confetti/index.js';
|
|
43
47
|
export type { DatePickerMode, DatePickerProps } from './DatePicker/index.js';
|
|
44
48
|
export { DatePicker } from './DatePicker/index.js';
|
|
45
49
|
export type { DateRange, DateRangePickerProps } from './DateRangePicker/index.js';
|
|
46
50
|
export { DateRangePicker } from './DateRangePicker/index.js';
|
|
51
|
+
export type { DateSeparatorLabels, DateSeparatorProps } from './DateSeparator/index.js';
|
|
52
|
+
export { DateSeparator, DEFAULT_DATE_SEPARATOR_LABELS, dayLabel } from './DateSeparator/index.js';
|
|
47
53
|
export type { DecimalInputProps, DecimalRules } from './DecimalInput/index.js';
|
|
48
54
|
export { cleanDecimalText, DecimalInput, parseDecimalText } from './DecimalInput/index.js';
|
|
49
55
|
export type { DescriptionItem, DescriptionsProps, DescriptionsSize, DescriptionsVariant } from './Descriptions/index.js';
|
|
@@ -88,16 +94,28 @@ export type { LoaderOverlayProps } from './LoaderOverlay/index.js';
|
|
|
88
94
|
export { LoaderOverlay, loader, useLoader } from './LoaderOverlay/index.js';
|
|
89
95
|
export type { MarkdownProps } from './Markdown/index.js';
|
|
90
96
|
export { Markdown } from './Markdown/index.js';
|
|
97
|
+
export type { ContextMenuConfig, MenuItem, MenuItems, MenuPresentation, MenuProps, MenuUnavailable } from './Menu/index.js';
|
|
98
|
+
export { Menu } from './Menu/index.js';
|
|
99
|
+
export type { MessageAction, MessageBubbleLabels, MessageBubbleProps, MessageGroupPosition, MessageReply, MessageSide, MessageStatus } from './MessageBubble/index.js';
|
|
100
|
+
export { DEFAULT_MESSAGE_BUBBLE_LABELS, MessageBubble } from './MessageBubble/index.js';
|
|
101
|
+
export type { MessageListLabels, MessageListProps, MessageRenderInfo } from './MessageList/index.js';
|
|
102
|
+
export { DEFAULT_MESSAGE_LIST_LABELS, MessageList } from './MessageList/index.js';
|
|
91
103
|
export type { ModalPresentation, ModalProps } from './Modal/index.js';
|
|
92
104
|
export { MODAL_DISMISS_GRACE_MS, Modal } from './Modal/index.js';
|
|
93
105
|
export type { NotationProps, NotationRun, NotationTextRun } from './Notation/index.js';
|
|
94
106
|
export { Notation, parseNotation, sym } from './Notation/index.js';
|
|
95
107
|
export type { NumberInputProps, NumberInputRef, NumberInputSize, NumberInputVariant } from './NumberInput/index.js';
|
|
96
108
|
export { NumberInput } from './NumberInput/index.js';
|
|
109
|
+
export type { OnboardingPage, OnboardingPagerLabels, OnboardingPagerProps } from './OnboardingPager/index.js';
|
|
110
|
+
export { OnboardingPager } from './OnboardingPager/index.js';
|
|
97
111
|
export type { OptionSheetProps, OptionSheetRowState, OptionSheetSection } from './OptionSheet/index.js';
|
|
98
112
|
export { OptionSheet } from './OptionSheet/index.js';
|
|
99
113
|
export type { OTPInputProps, OTPInputRef, OTPInputSize } from './OTPInput/index.js';
|
|
100
114
|
export { OTPInput } from './OTPInput/index.js';
|
|
115
|
+
export type { PaymentResultProps, PaymentResultStatus } from './PaymentResult/index.js';
|
|
116
|
+
export { PaymentResult } from './PaymentResult/index.js';
|
|
117
|
+
export type { PermissionPromptFallback, PermissionPromptProps, PermissionPromptView, UsePermissionPromptOptions, UsePermissionPromptResult } from './PermissionPrompt/index.js';
|
|
118
|
+
export { PermissionPrompt, usePermissionPrompt } from './PermissionPrompt/index.js';
|
|
101
119
|
export type { CallingCode, PhoneNumberInfo, PhoneNumberInputLabelMode, PhoneNumberInputProps, PhoneNumberInputRef, PhoneNumberValidation, PhoneNumberValue } from './PhoneNumberInput/index.js';
|
|
102
120
|
export { ALL_CALLING_CODES, DEFAULT_CALLING_CODES, formatE164, PhoneNumberInput, parseE164 } from './PhoneNumberInput/index.js';
|
|
103
121
|
export type { PickerTriggerProps, PickerTriggerSize, PickerTriggerVariant } from './PickerTrigger/index.js';
|
|
@@ -118,14 +136,18 @@ export type { RepeaterProps, RepeaterRenderArgs } from './Repeater/index.js';
|
|
|
118
136
|
export { Repeater } from './Repeater/index.js';
|
|
119
137
|
export type { BlockMarkdownAction, EditorSelection, EditorState, InlineMarkdownAction, MarkdownAction, RichTextEditorProps } from './RichTextEditor/index.js';
|
|
120
138
|
export { applyMarkdownAction, RichTextEditor } from './RichTextEditor/index.js';
|
|
121
|
-
export type {
|
|
122
|
-
export {
|
|
139
|
+
export type { ScannerOverlayLabels, ScannerOverlayProps, ScannerOverlayState } from './ScannerOverlay/index.js';
|
|
140
|
+
export { ScannerOverlay } from './ScannerOverlay/index.js';
|
|
141
|
+
export type { SearchBarProps, SearchBarSize, SearchBarVariant, SearchScope, SearchSuggestion, UseRecentSearchesOptions, UseRecentSearchesResult } from './SearchBar/index.js';
|
|
142
|
+
export { SearchBar, useRecentSearches } from './SearchBar/index.js';
|
|
123
143
|
export type { SectionHeaderProps, SectionHeaderVariant } from './SectionHeader/index.js';
|
|
124
144
|
export { SectionHeader } from './SectionHeader/index.js';
|
|
125
145
|
export type { SegmentedControlProps, SegmentedControlRadius, SegmentedControlSize, SegmentedControlTone, SegmentedControlVariant, SegmentIcon, SegmentIconState, SegmentItem, SegmentValue } from './SegmentedControl/index.js';
|
|
126
146
|
export { SegmentedControl } from './SegmentedControl/index.js';
|
|
127
147
|
export type { SelectOption, SelectProps, SelectSize, SelectValue } from './Select/index.js';
|
|
128
148
|
export { Select } from './Select/index.js';
|
|
149
|
+
export type { SignatureMode, SignaturePadLabels, SignaturePadProps, SignaturePadRef, SignaturePoint, SignatureStroke } from './SignaturePad/index.js';
|
|
150
|
+
export { SignaturePad } from './SignaturePad/index.js';
|
|
129
151
|
export type { SkeletonCircleProps, SkeletonClockProviderProps, SkeletonClockValue, SkeletonColors, SkeletonContentProps, SkeletonListProps, SkeletonProps, SkeletonProviderDefaults, SkeletonProviderProps, SkeletonRadius, SkeletonShape, SkeletonSkipProps, SkeletonSpeed, SkeletonStaticOf, SkeletonTextProps, SkeletonVariant, SkeletonWidth } from './Skeleton/index.js';
|
|
130
152
|
export { Skeleton, SkeletonCircle, SkeletonClockProvider, SkeletonContent, SkeletonList, SkeletonProvider, SkeletonSkip, SkeletonText, useReduceMotion, useSkeletonClock, useSkeletonDefaults } from './Skeleton/index.js';
|
|
131
153
|
export type { SliderProps, SliderSize, SliderTone, SliderVariant } from './Slider/index.js';
|
|
@@ -134,9 +156,11 @@ export type { SliderFieldProps } from './SliderField/index.js';
|
|
|
134
156
|
export { SliderField } from './SliderField/index.js';
|
|
135
157
|
export type { SlideToConfirmProps, SlideToConfirmSize, SlideToConfirmTone } from './SlideToConfirm/index.js';
|
|
136
158
|
export { SlideToConfirm } from './SlideToConfirm/index.js';
|
|
159
|
+
export type { SparklineProps, SparklineTone } from './Sparkline/index.js';
|
|
160
|
+
export { Sparkline } from './Sparkline/index.js';
|
|
137
161
|
export type { SpinnerProps, SpinnerSize, SpinnerVariant } from './Spinner/index.js';
|
|
138
162
|
export { Spinner } from './Spinner/index.js';
|
|
139
|
-
export type { StatTileProps } from './StatTile/index.js';
|
|
163
|
+
export type { StatTileProps, StatTileTrend } from './StatTile/index.js';
|
|
140
164
|
export { StatTile } from './StatTile/index.js';
|
|
141
165
|
export type { StatusBadgeProps, StatusBadgeSize, StatusBadgeTone, StatusBadgeVariant } from './StatusBadge/index.js';
|
|
142
166
|
export { StatusBadge } from './StatusBadge/index.js';
|
|
@@ -156,12 +180,16 @@ export type { TimelineItem, TimelineOrientation, TimelineProps, TimelineStatus,
|
|
|
156
180
|
export { Timeline } from './Timeline/index.js';
|
|
157
181
|
export type { MinuteStep, Period, TimeFormat, TimePickerProps, TimeValue } from './TimePicker/index.js';
|
|
158
182
|
export { TimePicker } from './TimePicker/index.js';
|
|
159
|
-
export type { ToastApi, ToastHaptics, ToastOptions, ToastPosition, ToastProps, ToastProviderProps, ToastVariant } from './Toast/index.js';
|
|
183
|
+
export type { ToastApi, ToastHaptics, ToastOptions, ToastPosition, ToastProps, ToastProviderProps, ToastUndoOptions, ToastVariant } from './Toast/index.js';
|
|
160
184
|
export { Toast, ToastHost, ToastProvider, toast, useToast } from './Toast/index.js';
|
|
161
|
-
export type { TooltipPlacement, TooltipProps, TooltipTrigger } from './Tooltip/index.js';
|
|
185
|
+
export type { TooltipAction, TooltipPlacement, TooltipProps, TooltipTrigger, TooltipVariant } from './Tooltip/index.js';
|
|
162
186
|
export { Tooltip } from './Tooltip/index.js';
|
|
163
187
|
export type { TourCloseReason, TourLabels, TourProps, TourSeenStore, TourStep } from './Tour/index.js';
|
|
164
188
|
export { Tour } from './Tour/index.js';
|
|
189
|
+
export type { TypingIndicatorProps } from './TypingIndicator/index.js';
|
|
190
|
+
export { TypingIndicator } from './TypingIndicator/index.js';
|
|
191
|
+
export type { WheelDurationStep, WheelItem, WheelPickerColumn, WheelPickerColumnsProps, WheelPickerDurationLabels, WheelPickerDurationProps, WheelPickerListProps, WheelPickerProps } from './WheelPicker/index.js';
|
|
192
|
+
export { WheelPicker } from './WheelPicker/index.js';
|
|
165
193
|
export type { ZoomableImageProps } from './ZoomableImage/index.js';
|
|
166
194
|
export { ZoomableImage } from './ZoomableImage/index.js';
|
|
167
195
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -7,6 +7,10 @@ export { FLICK_TOLERANCE, useFlickGuard } from './useFlickGuard.js';
|
|
|
7
7
|
export type { PressAnimationPreset, UsePressAnimationOptions, UsePressAnimationResult } from './usePressAnimation.js';
|
|
8
8
|
export { PRESS_ANIMATION_PRESETS, usePressAnimation } from './usePressAnimation.js';
|
|
9
9
|
export { useReducedMotion } from './useReducedMotion.js';
|
|
10
|
+
export type { UseRefreshControlLabels, UseRefreshControlOptions, UseRefreshControlResult } from './useRefreshControl.js';
|
|
11
|
+
export { useRefreshControl } from './useRefreshControl.js';
|
|
12
|
+
export type { ScrollDirection, UseScrollDirectionOptions, UseScrollDirectionResult } from './useScrollDirection.js';
|
|
13
|
+
export { useScrollDirection } from './useScrollDirection.js';
|
|
10
14
|
export type { UseToggleResult } from './useToggle.js';
|
|
11
15
|
export { useToggle } from './useToggle.js';
|
|
12
16
|
//# sourceMappingURL=index.d.ts.map
|