@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
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { AccessibilityActionEvent, RefreshControlProps } from 'react-native';
|
|
3
|
+
import type { HapticType } from '../utils/hapticUtils';
|
|
4
|
+
export type UseRefreshControlLabels = {
|
|
5
|
+
/** Name of the refresh accessibility action. Default `'Refresh'`. */
|
|
6
|
+
refresh?: string;
|
|
7
|
+
/** Spoken when a button or accessibility-action refresh starts. Default `'Refreshing'`. */
|
|
8
|
+
refreshing?: string;
|
|
9
|
+
/** Spoken when that refresh ends. Default `'Updated'`. */
|
|
10
|
+
refreshed?: string;
|
|
11
|
+
};
|
|
12
|
+
export type UseRefreshControlOptions = {
|
|
13
|
+
/**
|
|
14
|
+
* Reloads the data. Return the promise (an RTK Query `refetch` already does)
|
|
15
|
+
* and the spinner stays until it settles. A rejection is logged and ends the
|
|
16
|
+
* spinner; show the user a curated message from the call itself.
|
|
17
|
+
*/
|
|
18
|
+
onRefresh: () => unknown;
|
|
19
|
+
/**
|
|
20
|
+
* The screen's own loading flag, when the data is already tracked elsewhere.
|
|
21
|
+
* The spinner shows while this is true or a refresh started here is running.
|
|
22
|
+
*/
|
|
23
|
+
refreshing?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Haptic when a pull starts the refresh. Default: `'gestureStart'` on Android
|
|
26
|
+
* and none on iOS or web (no iOS haptic until a device check shows whether the
|
|
27
|
+
* system already taps). `false` turns it off; a type fires on every native
|
|
28
|
+
* platform.
|
|
29
|
+
*/
|
|
30
|
+
haptic?: HapticType | false;
|
|
31
|
+
/**
|
|
32
|
+
* iOS only: the line under the spinner, for what changed ("Updated 2 minutes
|
|
33
|
+
* ago"). Never use it to explain how to refresh.
|
|
34
|
+
*/
|
|
35
|
+
title?: string;
|
|
36
|
+
/** A refresh started here keeps the spinner at least this long. Default 400. */
|
|
37
|
+
minVisibleMs?: number;
|
|
38
|
+
labels?: UseRefreshControlLabels;
|
|
39
|
+
};
|
|
40
|
+
export type UseRefreshControlResult = {
|
|
41
|
+
/** Pass as `refreshControl` to a FlatList, SectionList, ScrollView or KeyboardAwareScrollView. */
|
|
42
|
+
refreshControl: React.ReactElement<RefreshControlProps>;
|
|
43
|
+
/** True while the spinner shows. Give an AppBar action or IconButton this as `loading`. */
|
|
44
|
+
refreshing: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Starts a refresh without a pull: the single-pointer path for an AppBar
|
|
47
|
+
* action or a button. Ignored while one is running. Fires no haptic (the
|
|
48
|
+
* button gives its own) and announces the start and the end. Never rejects.
|
|
49
|
+
*/
|
|
50
|
+
refresh: () => Promise<void>;
|
|
51
|
+
/** Spread on a focusable element so a screen reader offers Refresh in its actions menu. */
|
|
52
|
+
accessibilityProps: {
|
|
53
|
+
accessibilityActions: {
|
|
54
|
+
name: 'refresh';
|
|
55
|
+
label: string;
|
|
56
|
+
}[];
|
|
57
|
+
onAccessibilityAction: (event: AccessibilityActionEvent) => void;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Themed pull to refresh plus the way to refresh without pulling.
|
|
62
|
+
*
|
|
63
|
+
* React Native's RefreshControl reports only that a refresh started, never that
|
|
64
|
+
* the pull crossed the trigger, so the haptic fires at that start. Web draws no
|
|
65
|
+
* pull at all, and a swipe is not available to everyone: pair the control with
|
|
66
|
+
* an AppBar action that calls `refresh()` so a person on any platform, or with a
|
|
67
|
+
* screen reader or keyboard, can reload.
|
|
68
|
+
*
|
|
69
|
+
* const { refreshControl, refresh, refreshing } = useRefreshControl({ onRefresh: refetch });
|
|
70
|
+
* <FlatList refreshControl={refreshControl} ... />
|
|
71
|
+
* <AppBar rightActions={[{ icon: <AppIcon name="refresh" />, onPress: refresh,
|
|
72
|
+
* accessibilityLabel: 'Refresh' }]} />
|
|
73
|
+
*/
|
|
74
|
+
export declare const useRefreshControl: (options: UseRefreshControlOptions) => UseRefreshControlResult;
|
|
75
|
+
//# sourceMappingURL=useRefreshControl.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { NativeScrollEvent, NativeSyntheticEvent } from 'react-native';
|
|
2
|
+
export type ScrollDirection = 'up' | 'down' | 'idle';
|
|
3
|
+
export type UseScrollDirectionOptions = {
|
|
4
|
+
/** Points of travel in one direction before the direction flips. Default 8. */
|
|
5
|
+
threshold?: number;
|
|
6
|
+
};
|
|
7
|
+
export type UseScrollDirectionResult = {
|
|
8
|
+
direction: ScrollDirection;
|
|
9
|
+
onScroll: (e: NativeSyntheticEvent<NativeScrollEvent>) => void;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Direction of the user's scroll, for bars that hide on scroll down and return
|
|
13
|
+
* on scroll up. `'idle'` until the list has moved past the top; it returns to
|
|
14
|
+
* `'idle'` when the offset reaches the top. Rubber-band overscroll at either
|
|
15
|
+
* end is clamped away, so a bounce never reads as a reversal. State changes
|
|
16
|
+
* only when the direction changes, not on every scroll event.
|
|
17
|
+
*
|
|
18
|
+
* Pass `onScroll` to a ScrollView or FlatList with `scrollEventThrottle={16}`.
|
|
19
|
+
*/
|
|
20
|
+
export declare const useScrollDirection: (options?: UseScrollDirectionOptions) => UseScrollDirectionResult;
|
|
21
|
+
//# sourceMappingURL=useScrollDirection.d.ts.map
|
|
@@ -3,14 +3,14 @@ export type { AppIconName, AppIconProps, AppIconSize, CuratedIconName, IconName,
|
|
|
3
3
|
export { APP_ICON_SIZES, AppIcon, CURATED_ICON_NAMES, defaultIcons, ICON_NAMES, ICONSAX_SUFFIX, renderSlotIcon } from './components/AppIcon';
|
|
4
4
|
export type { FieldArrayApi, FieldInputProps, FieldRules, FieldState, FocusableNode, FormApi, FormCompletion, FormConfig, FormErrors, FormTouched, FormValidateFn, FormValues, HookFieldProps, HookFormFieldProps, SubmitHelpers, UseFormCompletionOptions, ValidateOn, ValidationResult, ValidationRule, ValidationSchema } from './form';
|
|
5
5
|
export { deletePath, Form, getPath, HookFormField, isFieldFilled, rules, setPath, useField, useFieldArray, useForm, useFormCompletion, useFormContext, useHookFormField, useOptionalFormContext } from './form';
|
|
6
|
-
export type { PressAnimationPreset, UseControllableStateOptions, UsePressAnimationOptions, UsePressAnimationResult, UseToggleResult } from './hooks';
|
|
7
|
-
export { FLICK_TOLERANCE, PRESS_ANIMATION_PRESETS, useControllableState, useDebounce, useFlickGuard, usePressAnimation, useReducedMotion, useToggle } from './hooks';
|
|
6
|
+
export type { PressAnimationPreset, ScrollDirection, UseControllableStateOptions, UsePressAnimationOptions, UsePressAnimationResult, UseRefreshControlLabels, UseRefreshControlOptions, UseRefreshControlResult, UseScrollDirectionOptions, UseScrollDirectionResult, UseToggleResult } from './hooks';
|
|
7
|
+
export { FLICK_TOLERANCE, PRESS_ANIMATION_PRESETS, useControllableState, useDebounce, useFlickGuard, usePressAnimation, useReducedMotion, useRefreshControl, useScrollDirection, useToggle } from './hooks';
|
|
8
8
|
export type { InitUIOptions } from './initUI';
|
|
9
9
|
export { initUI } from './initUI';
|
|
10
10
|
export type { NetworkStatusBannerProps } from './network';
|
|
11
11
|
export { NetworkStatusBanner } from './network';
|
|
12
12
|
export type { ColorMode, ColorPalette, ColorSchemePreference, DeepPartial, IconRegistry, IconRenderer, MotionScale, RadiusScale, ShadowDefinition, ShadowScale, SpacingScale, TextVariantSpec, Theme, ThemeOverrides, ThemeProviderProps, TypographyScale } from './theme';
|
|
13
13
|
export { darkTheme, getColorMode, getTheme, lightTheme, mergeTheme, resetTheme, setColorMode, setTheme, subscribeTheme, ThemeProvider, useTheme, useThemeMode } from './theme';
|
|
14
|
-
export type { BreakpointKey, FeedbackIntent, HapticType, ResponsiveScales, ScreenInfo, SpacingToken, SquirclePathParams } from './utils';
|
|
15
|
-
export { Breakpoints, configureFeedback, feedback, hapticForIntent, isFeedbackEnabled, isScreenSize, isTablet, Margin, Padding, Responsive, ScreenDimensions, Spacing, SQUIRCLE_MIN_RADIUS, SQUIRCLE_SMOOTHING, setHapticImplementation, shadowStyle, smoothCorners, squircleApplies, squircleHostRadius, squirclePath, triggerHaptic, useScreenDimensions, warnUnknownProps } from './utils';
|
|
14
|
+
export type { AnnounceOptions, BreakpointKey, FeedbackIntent, HapticType, ResponsiveScales, ScreenInfo, SpacingToken, SquirclePathParams } from './utils';
|
|
15
|
+
export { announce, Breakpoints, configureFeedback, feedback, hapticForIntent, isFeedbackEnabled, isScreenSize, isTablet, Margin, Padding, Responsive, ScreenDimensions, Spacing, SQUIRCLE_MIN_RADIUS, SQUIRCLE_SMOOTHING, setHapticImplementation, shadowStyle, smoothCorners, squircleApplies, squircleHostRadius, squirclePath, triggerHaptic, useScreenDimensions, warnUnknownProps } from './utils';
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,7 +3,7 @@ export interface PdfDocumentInfo {
|
|
|
3
3
|
/** Opaque handle for every subsequent call (getPageInfo/renderPage/close) — NOT the file path. */
|
|
4
4
|
handle: string;
|
|
5
5
|
pageCount: number;
|
|
6
|
-
/** Points (1/72 in), the
|
|
6
|
+
/** Points (1/72 in), the page size of page 0 as displayed (after the page's /Rotate) — a per-page size read happens in renderPage. */
|
|
7
7
|
pageWidth: number;
|
|
8
8
|
pageHeight: number;
|
|
9
9
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type AnnounceOptions = {
|
|
2
|
+
/** Polite (default) waits for current speech; `false` interrupts. Use `false` only for errors. */
|
|
3
|
+
polite?: boolean;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Speaks `message` through the screen reader without moving focus.
|
|
7
|
+
*
|
|
8
|
+
* iOS: queued behind current speech when polite, high priority and interrupting
|
|
9
|
+
* when not. Android: React Native exposes one announcement path with no
|
|
10
|
+
* priority, so polite and assertive both go through it. Web: a hidden
|
|
11
|
+
* `aria-live` region, `polite` or `assertive` (role `alert`).
|
|
12
|
+
*/
|
|
13
|
+
export declare const announce: (message: string, options?: AnnounceOptions) => void;
|
|
14
|
+
//# sourceMappingURL=announce.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type HapticType = 'selection' | 'impactLight' | 'impactMedium' | 'impactHeavy' | 'notificationSuccess' | 'notificationWarning' | 'notificationError';
|
|
1
|
+
export type HapticType = 'selection' | 'impactLight' | 'impactMedium' | 'impactHeavy' | 'notificationSuccess' | 'notificationWarning' | 'notificationError' | 'longPress' | 'tick' | 'denseTick' | 'confirm' | 'reject' | 'gestureStart';
|
|
2
2
|
export declare const triggerHaptic: (type?: HapticType) => void;
|
|
3
3
|
/**
|
|
4
4
|
* Replace the haptic backend. Intended for TESTS and for the showcase; an app
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { LayoutRectangle } from 'react-native';
|
|
2
|
+
import type { EdgeInsets } from 'react-native-safe-area-context';
|
|
3
|
+
/**
|
|
4
|
+
* The anchored-surface engine: where a menu, a context menu or a tooltip sits
|
|
5
|
+
* against the view that opened it. Pure geometry in window coordinates (what
|
|
6
|
+
* `measureInWindow` reports), so it runs the same on iOS, Android and web.
|
|
7
|
+
*/
|
|
8
|
+
export type PlacementPreference = 'top' | 'bottom' | 'auto';
|
|
9
|
+
export type ResolvedPlacement = 'top' | 'bottom';
|
|
10
|
+
export type PlacementAlign = 'center' | 'start' | 'end';
|
|
11
|
+
export interface PlacementViewport {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
insets: EdgeInsets;
|
|
15
|
+
}
|
|
16
|
+
export interface PlacementOptions {
|
|
17
|
+
/** Space between the anchor and the surface. Default 8. */
|
|
18
|
+
gap?: number;
|
|
19
|
+
/** Least distance from each safe edge of the viewport. Default 8. */
|
|
20
|
+
margin?: number;
|
|
21
|
+
/** Horizontal alignment against the anchor, in left-to-right terms. Default `'center'`. */
|
|
22
|
+
align?: PlacementAlign;
|
|
23
|
+
}
|
|
24
|
+
export interface PlacementResult {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
placement: ResolvedPlacement;
|
|
28
|
+
}
|
|
29
|
+
export interface PlacementRoom {
|
|
30
|
+
above: number;
|
|
31
|
+
below: number;
|
|
32
|
+
}
|
|
33
|
+
export declare const PLACEMENT_GAP = 8;
|
|
34
|
+
export declare const PLACEMENT_MARGIN = 8;
|
|
35
|
+
/** Height free above and below the anchor, inside the safe area and the margin. */
|
|
36
|
+
export declare const placementRoom: (anchor: LayoutRectangle, viewport: PlacementViewport, options?: PlacementOptions) => PlacementRoom;
|
|
37
|
+
/**
|
|
38
|
+
* Places a surface of `content` size against `anchor`. `'top'` and `'bottom'`
|
|
39
|
+
* are preferences that flip when the surface does not fit and the other side
|
|
40
|
+
* has more room; `'auto'` takes the side with more room. The surface never
|
|
41
|
+
* covers a visible anchor: when it is taller than the room on its side the
|
|
42
|
+
* caller caps its height to `placementRoom(...)` and lets it scroll. The
|
|
43
|
+
* horizontal position is clamped inside the safe area.
|
|
44
|
+
*/
|
|
45
|
+
export declare const computePlacement: (anchor: LayoutRectangle, content: {
|
|
46
|
+
width: number;
|
|
47
|
+
height: number;
|
|
48
|
+
}, viewport: PlacementViewport, preferred: PlacementPreference, options?: PlacementOptions) => PlacementResult;
|
|
49
|
+
/**
|
|
50
|
+
* Where along a surface's edge an arrow sits so it points at the anchor's
|
|
51
|
+
* centre, kept `cornerPadding` away from the surface's corners.
|
|
52
|
+
*/
|
|
53
|
+
export declare const arrowOffset: (anchorCenter: number, surfaceStart: number, surfaceLength: number, cornerPadding: number) => number;
|
|
54
|
+
export declare const claimAnchoredSurface: (close: () => void) => (() => void);
|
|
55
|
+
//# sourceMappingURL=placement.d.ts.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BarChart: a simple vertical bar chart for a dashboard.
|
|
3
|
+
*
|
|
4
|
+
* Zero is always on the axis, so a bar's length is its value. The point of the
|
|
5
|
+
* chart is readable without touching it: bars carry their value when there are
|
|
6
|
+
* few of them, and a summary line names the main message. Touching it adds
|
|
7
|
+
* detail: a tap picks a bar, and dragging along the plot picks the bar under
|
|
8
|
+
* the finger with one haptic tick per bar crossed. The picked bar's label and
|
|
9
|
+
* value are written above the plot.
|
|
10
|
+
*
|
|
11
|
+
* A screen reader gets one adjustable element: swipe up or down to move from
|
|
12
|
+
* bar to bar, each one read as "label, value". Bars are Views, not SVG, so the
|
|
13
|
+
* labels follow the app's font scale and nothing is drawn in a fixed pixel box.
|
|
14
|
+
*
|
|
15
|
+
* Values may be negative; the zero line then sits inside the plot.
|
|
16
|
+
*/
|
|
17
|
+
import type { View as RNView, StyleProp, ViewStyle } from 'react-native';
|
|
18
|
+
import type { HapticType } from '../../utils/index.js';
|
|
19
|
+
export type BarChartTone = 'primary' | 'success' | 'warning' | 'error' | 'info' | 'neutral';
|
|
20
|
+
export interface BarChartDatum {
|
|
21
|
+
/** The full name of the bar, read aloud and written in the callout: "Mon 06-Oct-2026". */
|
|
22
|
+
label: string;
|
|
23
|
+
/** The bar's value. A value that is not a finite number draws as zero. */
|
|
24
|
+
value: number;
|
|
25
|
+
/** A shorter label drawn under the bar: "Mon". Default `label`. */
|
|
26
|
+
axisLabel?: string;
|
|
27
|
+
/** Replaces the spoken text of the bar. Default `"label, value"`. */
|
|
28
|
+
accessibilityLabel?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface BarChartProps {
|
|
31
|
+
data: ReadonlyArray<BarChartDatum>;
|
|
32
|
+
/** Colour of the bars. Default `'primary'`. Drawn in the tone's text ink so it holds 3:1 on the page in light and dark. */
|
|
33
|
+
tone?: BarChartTone;
|
|
34
|
+
/** Bar colour override; wins over `tone`. */
|
|
35
|
+
color?: string;
|
|
36
|
+
/** Height of the plot in points. Default `160`. */
|
|
37
|
+
height?: number;
|
|
38
|
+
/** What the chart shows, read first by a screen reader: "Approvals per day". */
|
|
39
|
+
label?: string;
|
|
40
|
+
/** The main message in a sentence, visible while no bar is picked: "Approvals peaked on Thursday". Default: the highest bar. */
|
|
41
|
+
summary?: string;
|
|
42
|
+
/** Write a value in full, for the callout and the spoken text. Default: the house number format (Indian grouping). */
|
|
43
|
+
formatValue?: (value: number) => string;
|
|
44
|
+
/** Write a value short, for the axis and the figures on the bars. Default: compact Indian form (1.5L, 2.3Cr). */
|
|
45
|
+
formatTick?: (value: number) => string;
|
|
46
|
+
/** Draw each bar's value on it. Default: when there are 7 bars or fewer. */
|
|
47
|
+
showValues?: boolean;
|
|
48
|
+
/** Picked bar (controlled); `null` for none. */
|
|
49
|
+
selection?: number | null;
|
|
50
|
+
/** Picked bar when uncontrolled. Default none. */
|
|
51
|
+
defaultSelection?: number | null;
|
|
52
|
+
/** Called when a bar is picked, or `null` when the picked bar is tapped again. */
|
|
53
|
+
onSelect?: (index: number | null) => void;
|
|
54
|
+
/** Haptic tick for each bar a drag crosses and for a tap. `false` turns it off. Default `'tick'`. */
|
|
55
|
+
haptic?: HapticType | false;
|
|
56
|
+
style?: StyleProp<ViewStyle>;
|
|
57
|
+
testID?: string;
|
|
58
|
+
}
|
|
59
|
+
declare const BarChart: import("react").ForwardRefExoticComponent<BarChartProps & import("react").RefAttributes<RNView>>;
|
|
60
|
+
export { BarChart };
|
|
61
|
+
export default BarChart;
|
|
62
|
+
//# sourceMappingURL=BarChart.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface BarScale {
|
|
2
|
+
/** Lowest value on the axis; never above zero. */
|
|
3
|
+
min: number;
|
|
4
|
+
/** Highest value on the axis; never below zero. */
|
|
5
|
+
max: number;
|
|
6
|
+
/** Axis ticks from `min` to `max`, on round steps (1, 2 or 5 times a power of ten). */
|
|
7
|
+
ticks: number[];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The axis of a bar chart: zero is always on it (a bar's length is its value),
|
|
11
|
+
* the other end rounds up to a familiar step (0, 5, 10 ...), and values that
|
|
12
|
+
* are not finite numbers are ignored.
|
|
13
|
+
*/
|
|
14
|
+
export declare const barScale: (values: ReadonlyArray<number>, targetTicks?: number) => BarScale;
|
|
15
|
+
//# sourceMappingURL=scale.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { View as RNView, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import type { ScrollDirection } from '../../hooks/useScrollDirection.js';
|
|
3
4
|
import type { ShadowScale } from '../../theme/types.js';
|
|
4
5
|
import type { HapticType } from '../../utils/index.js';
|
|
5
6
|
import type { SlotIcon, SlotIconState } from '../AppIcon/index.js';
|
|
@@ -114,6 +115,11 @@ export interface BottomNavigationCenterAction {
|
|
|
114
115
|
haptic?: HapticType | false;
|
|
115
116
|
testID?: string;
|
|
116
117
|
}
|
|
118
|
+
/** What the bar tells a function `accessory` when it draws. */
|
|
119
|
+
export interface BottomNavigationAccessoryState {
|
|
120
|
+
/** True while the bar is minimised: the accessory sits inline beside the tabs. */
|
|
121
|
+
minimized: boolean;
|
|
122
|
+
}
|
|
117
123
|
export interface BottomNavigationProps {
|
|
118
124
|
tabs: TabConfig[];
|
|
119
125
|
/** A pressable button in the middle of the bar, between the tabs. */
|
|
@@ -200,6 +206,32 @@ export interface BottomNavigationProps {
|
|
|
200
206
|
* Off unless set.
|
|
201
207
|
*/
|
|
202
208
|
border?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Opt in to minimising the bar while the person scrolls down: the labels go
|
|
211
|
+
* and the bar shrinks to its icons (it never hides), and it restores on
|
|
212
|
+
* scroll up, on reaching the top, or on a tap on a tab. Needs
|
|
213
|
+
* `scrollDirection` from the scroll view's `useScrollDirection`. Stays
|
|
214
|
+
* expanded while a screen reader is on, and snaps with no animation under
|
|
215
|
+
* Reduce Motion. Off by default.
|
|
216
|
+
*/
|
|
217
|
+
minimizeOnScroll?: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* The scroll view's direction, from `useScrollDirection().direction`. Only
|
|
220
|
+
* read while `minimizeOnScroll` is set: `down` minimises, `up` and `idle`
|
|
221
|
+
* (at the top) restore. Default `idle`. A tap on a tab restores the bar
|
|
222
|
+
* until the direction next changes, so keep one hook per screen: sharing one
|
|
223
|
+
* across tab screens leaves `down` unchanged when the person returns to
|
|
224
|
+
* the top of another.
|
|
225
|
+
*/
|
|
226
|
+
scrollDirection?: ScrollDirection;
|
|
227
|
+
/**
|
|
228
|
+
* A compact strip tied to the bar, such as a "clocked in" status. Expanded,
|
|
229
|
+
* it sits above the tabs across the bar's width; minimised, it moves inline
|
|
230
|
+
* to the left of the tabs, so keep it small there. Pass a function to draw
|
|
231
|
+
* a smaller version when `minimized`. Drawn whether or not
|
|
232
|
+
* `minimizeOnScroll` is set; `testID` gives it `${testID}-accessory`.
|
|
233
|
+
*/
|
|
234
|
+
accessory?: React.ReactNode | ((state: BottomNavigationAccessoryState) => React.ReactNode);
|
|
203
235
|
style?: StyleProp<ViewStyle>;
|
|
204
236
|
/** Style applied to the active indicator of every variant (pill, line, bubble or expanded pill). */
|
|
205
237
|
indicatorStyle?: StyleProp<ViewStyle>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { BottomNavigationCenterAction, BottomNavigationElevation, BottomNavigationIndicatorPosition, BottomNavigationIndicatorRadius, BottomNavigationProps, BottomNavigationRadius, BottomNavigationVariant, TabBadge, TabConfig, TabIcon, TabIconProps } from './BottomNavigation.js';
|
|
1
|
+
export type { BottomNavigationAccessoryState, BottomNavigationCenterAction, BottomNavigationElevation, BottomNavigationIndicatorPosition, BottomNavigationIndicatorRadius, BottomNavigationProps, BottomNavigationRadius, BottomNavigationVariant, TabBadge, TabConfig, TabIcon, TabIconProps } from './BottomNavigation.js';
|
|
2
2
|
export { BottomNavigation, default } from './BottomNavigation.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether VoiceOver or TalkBack is running. Subscribes only while `active`, so
|
|
3
|
+
* a bar that never minimises keeps no listener. Always false on web: React
|
|
4
|
+
* Native Web's `isScreenReaderEnabled` resolves `true` unconditionally and
|
|
5
|
+
* fires no change event, so it cannot tell a reader from none.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useScreenReaderEnabled: (active: boolean) => boolean;
|
|
8
|
+
//# sourceMappingURL=useScreenReaderEnabled.d.ts.map
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
* ref.current?.expand(); // open at first snap point (or `index` prop)
|
|
15
15
|
* ref.current?.expand(2); // open at specific index
|
|
16
16
|
* ref.current?.collapse(); // animate to smallest snap point
|
|
17
|
-
* ref.current?.close(); // dismiss
|
|
17
|
+
* ref.current?.close(); // dismiss (never asks `confirmDismiss`)
|
|
18
|
+
* ref.current?.requestClose(); // dismiss the way a drag or the scrim would: asks first
|
|
18
19
|
*/
|
|
19
20
|
import type React from 'react';
|
|
20
21
|
import type { LayoutChangeEvent, NativeScrollEvent, NativeSyntheticEvent, StyleProp, ViewStyle } from 'react-native';
|
|
@@ -49,6 +50,23 @@ export interface BottomSheetProps {
|
|
|
49
50
|
onAfterClose?: () => void;
|
|
50
51
|
enablePanDownToClose?: boolean;
|
|
51
52
|
enableBackdropPress?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Asked before the user dismisses the sheet: a handle drag past the close
|
|
55
|
+
* threshold or a fast swipe down, a tap on the scrim, hardware Back (Android)
|
|
56
|
+
* and Escape (web), and `requestClose()`. Return `true` (or resolve `true`)
|
|
57
|
+
* to let it close, `false` to keep it open. A refused drag springs back to
|
|
58
|
+
* the snap point it started from, and `onChange(-1)` does not fire.
|
|
59
|
+
*
|
|
60
|
+
* Show the question with a `Dialog` or `OptionSheet` rendered inside this
|
|
61
|
+
* sheet's children (a second native modal beside the sheet's own does not
|
|
62
|
+
* present on iOS), and resolve a Promise from its buttons. While a Promise
|
|
63
|
+
* is pending, further dismissals are ignored, so it must settle. A rejected
|
|
64
|
+
* Promise leaves the sheet open and surfaces as an unhandled rejection.
|
|
65
|
+
*
|
|
66
|
+
* `ref.close()`, `useBottomSheet().close` and a controlled `index={-1}` are
|
|
67
|
+
* the app's own decision (a Save button, say) and never ask.
|
|
68
|
+
*/
|
|
69
|
+
confirmDismiss?: () => boolean | Promise<boolean>;
|
|
52
70
|
/**
|
|
53
71
|
* Wrap `children` in a vertical ScrollView sized to the space between header
|
|
54
72
|
* and footer. Off by default; a plain View then holds the content. The sheet
|
|
@@ -130,7 +148,19 @@ export interface BottomSheetProps {
|
|
|
130
148
|
export interface BottomSheetRef {
|
|
131
149
|
expand: (index?: number) => void;
|
|
132
150
|
collapse: () => void;
|
|
133
|
-
|
|
151
|
+
/**
|
|
152
|
+
* Closes without asking `confirmDismiss`. Resolves once the close has
|
|
153
|
+
* finished (when `onAfterClose` fires); resolves at once on a sheet that is
|
|
154
|
+
* not open, and when a reopen overtakes the close or the sheet unmounts.
|
|
155
|
+
*/
|
|
156
|
+
close: () => Promise<void>;
|
|
157
|
+
/**
|
|
158
|
+
* Closes the way a drag or the scrim would: asks `confirmDismiss` first.
|
|
159
|
+
* Resolves `true` once the sheet has closed (or was not open), `false` when
|
|
160
|
+
* the dismissal was refused, ignored while another is being decided, or
|
|
161
|
+
* overtaken by a reopen or unmount.
|
|
162
|
+
*/
|
|
163
|
+
requestClose: () => Promise<boolean>;
|
|
134
164
|
}
|
|
135
165
|
/**
|
|
136
166
|
* State + actions exposed to anything rendered inside a `<BottomSheet>` —
|
|
@@ -148,7 +178,8 @@ export interface BottomSheetContextValue {
|
|
|
148
178
|
snapPoints: number[];
|
|
149
179
|
expand: (index?: number) => void;
|
|
150
180
|
collapse: () => void;
|
|
151
|
-
close: () => void
|
|
181
|
+
close: () => Promise<void>;
|
|
182
|
+
requestClose: () => Promise<boolean>;
|
|
152
183
|
}
|
|
153
184
|
/**
|
|
154
185
|
* Access the enclosing `<BottomSheet>`'s state and imperative actions.
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export type { BottomSheetContextValue, BottomSheetPresentation, BottomSheetProps, BottomSheetRef, SnapPoint } from './BottomSheet.js';
|
|
2
2
|
export { BottomSheet, default, useBottomSheet } from './BottomSheet.js';
|
|
3
|
+
export type { SheetSwap, SheetSwapOptions } from './useSheetSwap.js';
|
|
4
|
+
export { useSheetSwap } from './useSheetSwap.js';
|
|
3
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
import type { BottomSheetRef } from './BottomSheet.js';
|
|
3
|
+
export interface SheetSwapOptions {
|
|
4
|
+
/** Snap index the next sheet opens at. Defaults to its first snap point. */
|
|
5
|
+
index?: number;
|
|
6
|
+
/** Ask the first sheet's `confirmDismiss` before closing it. Off by default (the app chose to swap). */
|
|
7
|
+
confirm?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export type SheetSwap = (from: RefObject<BottomSheetRef | null>, to: RefObject<BottomSheetRef | null>, options?: SheetSwapOptions) => Promise<boolean>;
|
|
10
|
+
/**
|
|
11
|
+
* Replaces one bottom sheet with another: closes `from`, waits until it is
|
|
12
|
+
* fully gone (on iOS, until its native modal window is dismissed, which UIKit
|
|
13
|
+
* needs before it presents another), then opens `to`. One sheet is on screen
|
|
14
|
+
* at a time and there is no window where both are mounted.
|
|
15
|
+
*
|
|
16
|
+
* Resolves `true` once `to` has been asked to open, `false` when nothing was
|
|
17
|
+
* swapped: the close was refused or overtaken by a reopen (`confirm: true`),
|
|
18
|
+
* the component unmounted, `to` is not mounted, or another swap is running.
|
|
19
|
+
*
|
|
20
|
+
* const swap = useSheetSwap();
|
|
21
|
+
* swap(listRef, detailRef, { index: 1 });
|
|
22
|
+
*/
|
|
23
|
+
export declare const useSheetSwap: () => SheetSwap;
|
|
24
|
+
//# sourceMappingURL=useSheetSwap.d.ts.map
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { GestureResponderEvent, ImageSourcePropType, PressableProps, View as RNView, StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import type { ColorPalette, GradientDefinition } from '../../theme/types.js';
|
|
4
4
|
import type { HapticType } from '../../utils/hapticUtils.js';
|
|
5
|
+
import type { ContextMenuConfig } from '../Menu/useContextMenu.js';
|
|
5
6
|
export type CardVariant = 'elevated' | 'outlined' | 'filled' | 'flat';
|
|
6
7
|
/** A text action in the card header, drawn with a 44 pt hit target. */
|
|
7
8
|
export interface CardTextAction {
|
|
@@ -71,6 +72,14 @@ export interface CardProps extends Omit<PressableProps, 'style' | 'children'> {
|
|
|
71
72
|
onPress?: (event: GestureResponderEvent) => void;
|
|
72
73
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
73
74
|
haptic?: HapticType | false;
|
|
75
|
+
/**
|
|
76
|
+
* A long-press menu. Long press (right-click or Shift+F10 on the web) lifts
|
|
77
|
+
* the card over a dimmed screen with the menu beside it, and every item is
|
|
78
|
+
* also a screen reader action on the card. Unavailable items are hidden
|
|
79
|
+
* unless `unavailable: 'disable'`. The menu takes the long press: an
|
|
80
|
+
* `onLongPress` passed beside it is not called.
|
|
81
|
+
*/
|
|
82
|
+
contextMenu?: ContextMenuConfig;
|
|
74
83
|
accessibilityLabel?: string;
|
|
75
84
|
style?: StyleProp<ViewStyle>;
|
|
76
85
|
/** Alias for `style` — applied to the outer card element. */
|
|
@@ -16,7 +16,10 @@ export interface CheckboxProps extends Omit<PressableProps, 'style' | 'children'
|
|
|
16
16
|
label?: React.ReactNode;
|
|
17
17
|
/** Secondary line under the label. A string or a node; a node description adds nothing to the accessibility hint. */
|
|
18
18
|
description?: React.ReactNode;
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Error line under the label (and description); also draws the box in the error colour. A string
|
|
21
|
+
* or a node; `true` shows the error state without a message.
|
|
22
|
+
*/
|
|
20
23
|
error?: React.ReactNode;
|
|
21
24
|
/**
|
|
22
25
|
* Drawn beside the label, after it (a glossary info button, say). It sits
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { TextInput } from 'react-native';
|
|
4
|
+
import type { HapticType } from '../../utils/hapticUtils.js';
|
|
5
|
+
export interface ComposerProps {
|
|
6
|
+
/** Called with the trimmed text; the box clears once it is handed over. */
|
|
7
|
+
onSend: (text: string) => unknown;
|
|
8
|
+
/** Controlled draft. Leave unset and the composer keeps its own. */
|
|
9
|
+
value?: string;
|
|
10
|
+
onChangeText?: (text: string) => void;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
/** The text box's screen-reader name. Default: `placeholder`. */
|
|
13
|
+
accessibilityLabel?: string;
|
|
14
|
+
/** The send button's screen-reader name. Default 'Send'. */
|
|
15
|
+
sendLabel?: string;
|
|
16
|
+
/** A reply is arriving: the person can type but not send, and send shows a spinner. */
|
|
17
|
+
busy?: boolean;
|
|
18
|
+
/** Nothing can be typed or sent. */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
maxLength?: number;
|
|
21
|
+
/** The box grows to this many lines, then scrolls. Default 5. */
|
|
22
|
+
maxLines?: number;
|
|
23
|
+
/** Before the box, e.g. an attach button. */
|
|
24
|
+
leading?: React.ReactNode;
|
|
25
|
+
/** Between the box and send, e.g. a microphone button. */
|
|
26
|
+
trailing?: React.ReactNode;
|
|
27
|
+
/** Inside the bar, above the row: a banner, a "questions left" note. Rides the keyboard too. */
|
|
28
|
+
above?: React.ReactNode;
|
|
29
|
+
/** Inside the bar, below the row: a disclaimer. */
|
|
30
|
+
below?: React.ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Rides the keyboard (react-native-keyboard-controller's `KeyboardStickyView`).
|
|
33
|
+
* Default true. Turn it off inside a sheet that already moves with the
|
|
34
|
+
* keyboard. Pair it with a `MessageList` given the same `keyboardOffset`.
|
|
35
|
+
*/
|
|
36
|
+
keyboardAware?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* How far below the bar the keyboard's top edge starts: the bottom safe area
|
|
39
|
+
* the bar pads for, plus anything under it such as a tab bar. Default: the
|
|
40
|
+
* bottom safe-area inset when `safeArea` is on, else 0.
|
|
41
|
+
*/
|
|
42
|
+
keyboardOffset?: number;
|
|
43
|
+
/** Pad the bar for the bottom safe area. Default true; off above a tab bar. */
|
|
44
|
+
safeArea?: boolean;
|
|
45
|
+
autoFocus?: boolean;
|
|
46
|
+
/** Send haptic. Default `'selection'`. */
|
|
47
|
+
haptic?: HapticType | false;
|
|
48
|
+
style?: StyleProp<ViewStyle>;
|
|
49
|
+
testID?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* The message box of a chat: a text box that grows to `maxLines` and then
|
|
53
|
+
* scrolls, a send button that is disabled while the trimmed text is empty,
|
|
54
|
+
* and slots for an attach or microphone button. The return key adds a line,
|
|
55
|
+
* as phone keyboards expect; only the button sends. By default the bar rides
|
|
56
|
+
* the keyboard and pads for the bottom safe area, so a chat screen is a
|
|
57
|
+
* `MessageList` above a `Composer` with no keyboard wiring of its own.
|
|
58
|
+
*/
|
|
59
|
+
export declare const Composer: React.ForwardRefExoticComponent<ComposerProps & React.RefAttributes<TextInput>>;
|
|
60
|
+
export default Composer;
|
|
61
|
+
//# sourceMappingURL=Composer.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type DateValue } from '@webority/mobile-core';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
export interface DateSeparatorLabels {
|
|
5
|
+
today: string;
|
|
6
|
+
yesterday: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const DEFAULT_DATE_SEPARATOR_LABELS: Readonly<DateSeparatorLabels>;
|
|
9
|
+
export interface DateSeparatorProps {
|
|
10
|
+
/** The day to name. An instant is read in the configured zone (IST by default). */
|
|
11
|
+
date?: DateValue;
|
|
12
|
+
/** Draws this text instead of a day, e.g. "New messages" above the first unread. */
|
|
13
|
+
label?: string;
|
|
14
|
+
/** Draws the text and rules in the brand colour, for an unread divider. */
|
|
15
|
+
emphasis?: boolean;
|
|
16
|
+
labels?: Partial<DateSeparatorLabels>;
|
|
17
|
+
/** The reference for Today and Yesterday. Default: now. */
|
|
18
|
+
now?: Date;
|
|
19
|
+
style?: StyleProp<ViewStyle>;
|
|
20
|
+
testID?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* "Today", "Yesterday" or "10-Oct-2026" for a day, in the configured zone.
|
|
24
|
+
* Exported so a list can key its separators on the same text it shows.
|
|
25
|
+
*/
|
|
26
|
+
export declare const dayLabel: (date: DateValue, options?: {
|
|
27
|
+
now?: Date;
|
|
28
|
+
labels?: Partial<DateSeparatorLabels>;
|
|
29
|
+
}) => string;
|
|
30
|
+
/**
|
|
31
|
+
* A centred day name between two hairlines, for a message list. It is a
|
|
32
|
+
* header to screen readers, so a person can move through a conversation by
|
|
33
|
+
* day. With `label` and `emphasis` it draws an unread divider instead.
|
|
34
|
+
*/
|
|
35
|
+
export declare const DateSeparator: React.FC<DateSeparatorProps>;
|
|
36
|
+
export default DateSeparator;
|
|
37
|
+
//# sourceMappingURL=DateSeparator.d.ts.map
|
|
@@ -25,7 +25,7 @@ export interface FileViewerProps {
|
|
|
25
25
|
accessibilityLabel?: string;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* Renders a PDF via our own native rasterizer (
|
|
28
|
+
* Renders a PDF via our own native rasterizer (Core Graphics on iOS, PdfRenderer on
|
|
29
29
|
* Android) — no third-party PDF dependency. Pages are paged through a plain
|
|
30
30
|
* `ScrollView` with manual windowed mounting (render the visible page ±
|
|
31
31
|
* `RENDER_WINDOW`), not a `FlatList` — a `VirtualizedList`-based component
|
|
@@ -29,7 +29,8 @@ declare const FloatingActionButton: React.ForwardRefExoticComponent<FloatingActi
|
|
|
29
29
|
export interface FloatingActionButtonGroupAction {
|
|
30
30
|
key: string;
|
|
31
31
|
icon: React.ReactNode;
|
|
32
|
-
|
|
32
|
+
/** Visible text beside the action. Required: an icon-only menu item is not allowed. */
|
|
33
|
+
label: string;
|
|
33
34
|
onPress: () => void;
|
|
34
35
|
tone?: FloatingActionButtonTone;
|
|
35
36
|
accessibilityLabel: string;
|
|
@@ -37,6 +38,7 @@ export interface FloatingActionButtonGroupAction {
|
|
|
37
38
|
export interface FloatingActionButtonGroupProps {
|
|
38
39
|
primaryIcon: React.ReactNode;
|
|
39
40
|
primaryActiveIcon?: React.ReactNode;
|
|
41
|
+
/** 2 to 6 actions, each with a visible label. Only the first 6 are drawn. */
|
|
40
42
|
actions: FloatingActionButtonGroupAction[];
|
|
41
43
|
open?: boolean;
|
|
42
44
|
defaultOpen?: boolean;
|