@webority/mobile-ui 0.146.2 → 0.148.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas-kit/kit.js +4527 -4326
- package/dist/canvas-kit/manifest.json +8 -1
- package/dist/canvas-kit/release.json +6 -6
- package/lib/commonjs/components/AppBar/AppBar.js +1 -1
- package/lib/commonjs/components/AuthedImage/authedImageCache.js +1 -1
- package/lib/commonjs/components/AuthedImage/imageStore.js +1 -1
- package/lib/commonjs/components/AuthedImage/imageStore.web.js +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +1 -1
- package/lib/commonjs/components/Badge/Badge.js +1 -1
- package/lib/commonjs/components/Banner/Banner.js +1 -1
- package/lib/commonjs/components/BarChart/BarChart.js +1 -1
- package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/commonjs/components/Box/Box.js +1 -1
- package/lib/commonjs/components/Button/Button.js +1 -1
- package/lib/commonjs/components/Calendar/Calendar.js +1 -1
- package/lib/commonjs/components/Carousel/Carousel.js +1 -1
- package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
- package/lib/commonjs/components/Confetti/Confetti.js +1 -1
- package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
- package/lib/commonjs/components/Drawer/Drawer.js +1 -1
- package/lib/commonjs/components/FieldBase/Chevron.js +1 -1
- package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
- package/lib/commonjs/components/FilePicker/FilePicker.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/LoaderOverlay/LoaderOverlay.js +1 -1
- package/lib/commonjs/components/Markdown/Markdown.js +1 -1
- package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +1 -1
- package/lib/commonjs/components/Modal/Modal.js +1 -1
- package/lib/commonjs/components/OTPInput/OTPInput.js +1 -1
- package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/commonjs/components/ProfilePicker/ProfilePicker.js +1 -1
- package/lib/commonjs/components/ProgressBar/ProgressBar.js +1 -1
- package/lib/commonjs/components/Radio/RadioDot.js +1 -1
- package/lib/commonjs/components/Rating/Rating.js +1 -1
- package/lib/commonjs/components/RichTextEditor/RichTextEditor.js +1 -1
- package/lib/commonjs/components/RichTextEditor/markdownActions.js +1 -1
- package/lib/commonjs/components/ScannerOverlay/ScannerOverlay.js +1 -1
- package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/commonjs/components/SignaturePad/SignaturePad.js +1 -1
- package/lib/commonjs/components/SignaturePad/signatureGeometry.js +1 -1
- package/lib/commonjs/components/SignaturePad/writePng.js +1 -1
- package/lib/commonjs/components/SignaturePad/writePng.web.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonClock.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/commonjs/components/Slider/valueText.js +1 -1
- package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
- package/lib/commonjs/components/Sparkline/geometry.js +1 -1
- package/lib/commonjs/components/Spinner/Spinner.js +1 -1
- package/lib/commonjs/components/Stepper/Stepper.js +1 -1
- package/lib/commonjs/components/Switch/Switch.js +1 -1
- package/lib/commonjs/components/Tabs/Tabs.js +1 -1
- package/lib/commonjs/components/TagInput/TagInput.js +1 -1
- package/lib/commonjs/components/Text/Text.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/Tooltip.js +1 -1
- package/lib/commonjs/components/Tour/Tour.js +1 -1
- package/lib/commonjs/components/WheelPicker/Wheel.js +1 -1
- package/lib/commonjs/form/path.js +1 -1
- package/lib/commonjs/hooks/useDragToDismiss.js +1 -1
- package/lib/commonjs/hooks/usePressAnimation.js +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/network/NetworkStatusBanner.js +1 -1
- package/lib/commonjs/theme/Gradient.js +1 -1
- package/lib/commonjs/theme/animatedValue.js +1 -1
- package/lib/commonjs/theme/componentSizes.js +1 -1
- package/lib/commonjs/theme/merge.js +1 -1
- package/lib/commonjs/theme/toneInk.js +1 -1
- package/lib/commonjs/utils/color.js +1 -1
- package/lib/commonjs/utils/nativeDriver.js +1 -0
- package/lib/module/components/AppBar/AppBar.js +1 -1
- package/lib/module/components/AuthedImage/authedImageCache.js +1 -1
- package/lib/module/components/AuthedImage/imageStore.js +1 -1
- package/lib/module/components/AuthedImage/imageStore.web.js +1 -1
- package/lib/module/components/Avatar/Avatar.js +1 -1
- package/lib/module/components/Badge/Badge.js +1 -1
- package/lib/module/components/Banner/Banner.js +1 -1
- package/lib/module/components/BarChart/BarChart.js +1 -1
- package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/module/components/Box/Box.js +1 -1
- package/lib/module/components/Button/Button.js +1 -1
- package/lib/module/components/Calendar/Calendar.js +1 -1
- package/lib/module/components/Carousel/Carousel.js +1 -1
- package/lib/module/components/Checkbox/Checkbox.js +1 -1
- package/lib/module/components/Confetti/Confetti.js +1 -1
- package/lib/module/components/DatePicker/DatePicker.js +1 -1
- package/lib/module/components/Drawer/Drawer.js +1 -1
- package/lib/module/components/FieldBase/Chevron.js +1 -1
- package/lib/module/components/FieldBase/FieldBase.js +1 -1
- package/lib/module/components/FilePicker/FilePicker.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/LoaderOverlay/LoaderOverlay.js +1 -1
- package/lib/module/components/Markdown/Markdown.js +1 -1
- package/lib/module/components/Menu/MenuSurface.js +1 -1
- package/lib/module/components/MessageList/MessageList.js +1 -1
- package/lib/module/components/Modal/Modal.js +1 -1
- package/lib/module/components/OTPInput/OTPInput.js +1 -1
- package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/module/components/ProfilePicker/ProfilePicker.js +1 -1
- package/lib/module/components/ProgressBar/ProgressBar.js +1 -1
- package/lib/module/components/Radio/RadioDot.js +1 -1
- package/lib/module/components/Rating/Rating.js +1 -1
- package/lib/module/components/RichTextEditor/RichTextEditor.js +1 -1
- package/lib/module/components/RichTextEditor/markdownActions.js +1 -1
- package/lib/module/components/ScannerOverlay/ScannerOverlay.js +1 -1
- package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/module/components/SignaturePad/SignaturePad.js +1 -1
- package/lib/module/components/SignaturePad/signatureGeometry.js +1 -1
- package/lib/module/components/SignaturePad/writePng.js +1 -1
- package/lib/module/components/SignaturePad/writePng.web.js +1 -1
- package/lib/module/components/Skeleton/SkeletonClock.js +1 -1
- package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/module/components/Slider/valueText.js +1 -1
- package/lib/module/components/Sparkline/Sparkline.js +1 -1
- package/lib/module/components/Sparkline/geometry.js +1 -1
- package/lib/module/components/Spinner/Spinner.js +1 -1
- package/lib/module/components/Stepper/Stepper.js +1 -1
- package/lib/module/components/Switch/Switch.js +1 -1
- package/lib/module/components/Tabs/Tabs.js +1 -1
- package/lib/module/components/TagInput/TagInput.js +1 -1
- package/lib/module/components/Text/Text.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/Tooltip.js +1 -1
- package/lib/module/components/Tour/Tour.js +1 -1
- package/lib/module/components/WheelPicker/Wheel.js +1 -1
- package/lib/module/form/path.js +1 -1
- package/lib/module/hooks/useDragToDismiss.js +1 -1
- package/lib/module/hooks/usePressAnimation.js +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/network/NetworkStatusBanner.js +1 -1
- package/lib/module/theme/Gradient.js +1 -1
- package/lib/module/theme/animatedValue.js +1 -1
- package/lib/module/theme/componentSizes.js +1 -1
- package/lib/module/theme/merge.js +1 -1
- package/lib/module/theme/toneInk.js +1 -1
- package/lib/module/utils/color.js +1 -1
- package/lib/module/utils/nativeDriver.js +1 -0
- package/lib/typescript/commonjs/canvasKit/index.d.ts +15 -6
- package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +3 -2
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +2 -2
- package/lib/typescript/commonjs/components/AuthedImage/imageStore.d.ts +1 -1
- package/lib/typescript/commonjs/components/AuthedImage/imageStore.web.d.ts +1 -1
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +2 -2
- package/lib/typescript/commonjs/components/Badge/Badge.d.ts +2 -2
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts +2 -2
- package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +2 -2
- package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +2 -2
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +2 -3
- package/lib/typescript/commonjs/components/Box/Box.d.ts +4 -4
- package/lib/typescript/commonjs/components/Button/Button.d.ts +3 -2
- package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +3 -2
- package/lib/typescript/commonjs/components/Calendar/calendarStyles.d.ts +25 -116
- package/lib/typescript/commonjs/components/Card/Card.d.ts +2 -2
- package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +2 -2
- package/lib/typescript/commonjs/components/Chip/Chip.d.ts +2 -2
- package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +2 -2
- package/lib/typescript/commonjs/components/Composer/Composer.d.ts +2 -3
- package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +3 -2
- package/lib/typescript/commonjs/components/DecimalInput/DecimalInput.d.ts +3 -2
- package/lib/typescript/commonjs/components/Divider/Divider.d.ts +3 -2
- package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +2 -2
- package/lib/typescript/commonjs/components/FileViewer/useFileViewerZoom.d.ts +14 -22
- package/lib/typescript/commonjs/components/FilterChipRow/FilterChipRow.d.ts +3 -2
- package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
- package/lib/typescript/commonjs/components/FormField/FormField.d.ts +2 -2
- package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +3 -2
- package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +3 -2
- package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +2 -2
- package/lib/typescript/commonjs/components/Input/Input.d.ts +2 -3
- package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +1 -1
- package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +4 -3
- package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +3 -1
- package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +2 -2
- package/lib/typescript/commonjs/components/Modal/Modal.d.ts +3 -3
- package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +4 -2
- package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +2 -2
- package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +2 -2
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +4 -4
- package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +2 -2
- package/lib/typescript/commonjs/components/Radio/Radio.d.ts +3 -3
- package/lib/typescript/commonjs/components/Rating/Rating.d.ts +2 -2
- package/lib/typescript/commonjs/components/RichTextEditor/RichTextEditor.d.ts +2 -2
- package/lib/typescript/commonjs/components/ScannerOverlay/ScannerOverlay.d.ts +2 -2
- package/lib/typescript/commonjs/components/Screen/Screen.d.ts +2 -2
- package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +3 -3
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +3 -3
- package/lib/typescript/commonjs/components/Select/Select.d.ts +2 -2
- package/lib/typescript/commonjs/components/SignaturePad/writePng.d.ts +1 -1
- package/lib/typescript/commonjs/components/SignaturePad/writePng.web.d.ts +1 -1
- package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +2 -2
- package/lib/typescript/commonjs/components/Slider/Slider.d.ts +2 -2
- package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +2 -2
- package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +3 -2
- package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +2 -2
- package/lib/typescript/commonjs/components/SquircleView/SquircleView.d.ts +3 -2
- package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +3 -3
- package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +2 -2
- package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +2 -2
- package/lib/typescript/commonjs/components/Switch/Switch.d.ts +3 -3
- package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +3 -3
- package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +3 -2
- package/lib/typescript/commonjs/components/Text/Text.d.ts +2 -2
- package/lib/typescript/commonjs/components/Tooltip/RichTooltipBody.d.ts +3 -3
- package/lib/typescript/commonjs/components/Tour/Tour.d.ts +2 -2
- package/lib/typescript/commonjs/hooks/useFieldErrorScroll.d.ts +5 -5
- package/lib/typescript/commonjs/index.d.ts +1 -1
- package/lib/typescript/commonjs/theme/Gradient.d.ts +5 -1
- package/lib/typescript/commonjs/theme/animatedValue.d.ts +1 -1
- package/lib/typescript/commonjs/theme/makeStyles.d.ts +4 -2
- package/lib/typescript/commonjs/utils/nativeDriver.d.ts +2 -0
- package/lib/typescript/module/canvasKit/index.d.ts +15 -6
- package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +3 -2
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +2 -2
- package/lib/typescript/module/components/AuthedImage/imageStore.d.ts +1 -1
- package/lib/typescript/module/components/AuthedImage/imageStore.web.d.ts +1 -1
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +2 -2
- package/lib/typescript/module/components/Badge/Badge.d.ts +2 -2
- package/lib/typescript/module/components/Banner/Banner.d.ts +2 -2
- package/lib/typescript/module/components/BarChart/BarChart.d.ts +2 -2
- package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +2 -2
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +2 -3
- package/lib/typescript/module/components/Box/Box.d.ts +4 -4
- package/lib/typescript/module/components/Button/Button.d.ts +3 -2
- package/lib/typescript/module/components/Calendar/Calendar.d.ts +3 -2
- package/lib/typescript/module/components/Calendar/calendarStyles.d.ts +25 -116
- package/lib/typescript/module/components/Card/Card.d.ts +2 -2
- package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +2 -2
- package/lib/typescript/module/components/Chip/Chip.d.ts +2 -2
- package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +2 -2
- package/lib/typescript/module/components/Composer/Composer.d.ts +2 -3
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +3 -2
- package/lib/typescript/module/components/DecimalInput/DecimalInput.d.ts +3 -2
- package/lib/typescript/module/components/Divider/Divider.d.ts +3 -2
- package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +2 -2
- package/lib/typescript/module/components/FileViewer/useFileViewerZoom.d.ts +14 -22
- package/lib/typescript/module/components/FilterChipRow/FilterChipRow.d.ts +3 -2
- package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
- package/lib/typescript/module/components/FormField/FormField.d.ts +2 -2
- package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +3 -2
- package/lib/typescript/module/components/IconButton/IconButton.d.ts +3 -2
- package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +2 -2
- package/lib/typescript/module/components/Input/Input.d.ts +2 -3
- package/lib/typescript/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +1 -1
- package/lib/typescript/module/components/ListItem/ListItem.d.ts +4 -3
- package/lib/typescript/module/components/Markdown/Markdown.d.ts +3 -1
- package/lib/typescript/module/components/Menu/useContextMenu.d.ts +2 -2
- package/lib/typescript/module/components/Modal/Modal.d.ts +3 -3
- package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +4 -2
- package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +2 -2
- package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +2 -2
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +4 -4
- package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +2 -2
- package/lib/typescript/module/components/Radio/Radio.d.ts +3 -3
- package/lib/typescript/module/components/Rating/Rating.d.ts +2 -2
- package/lib/typescript/module/components/RichTextEditor/RichTextEditor.d.ts +2 -2
- package/lib/typescript/module/components/ScannerOverlay/ScannerOverlay.d.ts +2 -2
- package/lib/typescript/module/components/Screen/Screen.d.ts +2 -2
- package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +3 -3
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +3 -3
- package/lib/typescript/module/components/Select/Select.d.ts +2 -2
- package/lib/typescript/module/components/SignaturePad/writePng.d.ts +1 -1
- package/lib/typescript/module/components/SignaturePad/writePng.web.d.ts +1 -1
- package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +2 -2
- package/lib/typescript/module/components/Slider/Slider.d.ts +2 -2
- package/lib/typescript/module/components/SliderField/SliderField.d.ts +2 -2
- package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +3 -2
- package/lib/typescript/module/components/Spinner/Spinner.d.ts +2 -2
- package/lib/typescript/module/components/SquircleView/SquircleView.d.ts +3 -2
- package/lib/typescript/module/components/StatTile/StatTile.d.ts +3 -3
- package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +2 -2
- package/lib/typescript/module/components/Stepper/Stepper.d.ts +2 -2
- package/lib/typescript/module/components/Switch/Switch.d.ts +3 -3
- package/lib/typescript/module/components/Tabs/Tabs.d.ts +3 -3
- package/lib/typescript/module/components/TagInput/TagInput.d.ts +3 -2
- package/lib/typescript/module/components/Text/Text.d.ts +2 -2
- package/lib/typescript/module/components/Tooltip/RichTooltipBody.d.ts +3 -3
- package/lib/typescript/module/components/Tour/Tour.d.ts +2 -2
- package/lib/typescript/module/hooks/useFieldErrorScroll.d.ts +5 -5
- package/lib/typescript/module/index.d.ts +1 -1
- package/lib/typescript/module/theme/Gradient.d.ts +5 -1
- package/lib/typescript/module/theme/animatedValue.d.ts +1 -1
- package/lib/typescript/module/theme/makeStyles.d.ts +4 -2
- package/lib/typescript/module/utils/nativeDriver.d.ts +2 -0
- package/package.json +29 -29
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import type { ViewStyle } from "react-native";
|
|
2
|
+
import { Gesture } from "react-native-gesture-handler";
|
|
3
|
+
import type Animated from "react-native-reanimated";
|
|
4
|
+
import type { AnimatedRef } from "react-native-reanimated";
|
|
5
|
+
import { useAnimatedStyle } from "react-native-reanimated";
|
|
1
6
|
/** A zoom that ends at or below this counts as none and springs back to 1x. */
|
|
2
7
|
export declare const ZOOM_REST = 1.01;
|
|
3
8
|
interface UseFileViewerZoomOptions {
|
|
@@ -8,6 +13,14 @@ interface UseFileViewerZoomOptions {
|
|
|
8
13
|
/** The furthest the document scrolls, so a pan carried into the scroll stops at the end. */
|
|
9
14
|
maxScroll: number;
|
|
10
15
|
}
|
|
16
|
+
export type UseFileViewerZoomResult = {
|
|
17
|
+
scrollRef: AnimatedRef<Animated.ScrollView>;
|
|
18
|
+
scrollGesture: ReturnType<typeof Gesture.Native>;
|
|
19
|
+
zoomGesture: ReturnType<typeof Gesture.Simultaneous>;
|
|
20
|
+
zoomStyle: ReturnType<typeof useAnimatedStyle<ViewStyle>>;
|
|
21
|
+
zoomLevel: number;
|
|
22
|
+
resetZoom: () => void;
|
|
23
|
+
};
|
|
11
24
|
/**
|
|
12
25
|
* FileViewer's zoom: a scale and translate on the whole scroll view, so the
|
|
13
26
|
* maths stays in viewport space. Pinch zooms around the fingers, a double tap
|
|
@@ -15,27 +28,6 @@ interface UseFileViewerZoomOptions {
|
|
|
15
28
|
* past the zoomed page's top or bottom edge, carries on into the document's
|
|
16
29
|
* scroll. `zoomLevel` reaches React only when a gesture settles, never per frame.
|
|
17
30
|
*/
|
|
18
|
-
export declare const useFileViewerZoom: ({ zoomEnabled, maxZoom, viewportWidth, viewportHeight, maxScroll }: UseFileViewerZoomOptions) =>
|
|
19
|
-
scrollRef: import("react-native-reanimated").AnimatedRef<import("react-native").ReactNativeElement>;
|
|
20
|
-
scrollGesture: import("react-native-gesture-handler/lib/typescript/handlers/gestures/nativeGesture").NativeGesture;
|
|
21
|
-
zoomGesture: import("react-native-gesture-handler/lib/typescript/handlers/gestures/gestureComposition").SimultaneousGesture;
|
|
22
|
-
zoomStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
|
|
23
|
-
transform: ({
|
|
24
|
-
translateX: number;
|
|
25
|
-
translateY?: undefined;
|
|
26
|
-
scale?: undefined;
|
|
27
|
-
} | {
|
|
28
|
-
translateY: number;
|
|
29
|
-
translateX?: undefined;
|
|
30
|
-
scale?: undefined;
|
|
31
|
-
} | {
|
|
32
|
-
scale: number;
|
|
33
|
-
translateX?: undefined;
|
|
34
|
-
translateY?: undefined;
|
|
35
|
-
})[];
|
|
36
|
-
}>;
|
|
37
|
-
zoomLevel: number;
|
|
38
|
-
resetZoom: () => void;
|
|
39
|
-
};
|
|
31
|
+
export declare const useFileViewerZoom: ({ zoomEnabled, maxZoom, viewportWidth, viewportHeight, maxScroll, }: UseFileViewerZoomOptions) => UseFileViewerZoomResult;
|
|
40
32
|
export {};
|
|
41
33
|
//# sourceMappingURL=useFileViewerZoom.d.ts.map
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
* ChoiceGroup: a filter picks a value on the same data. Sections of a screen
|
|
14
14
|
* are `Tabs`, not this.
|
|
15
15
|
*/
|
|
16
|
-
import type {
|
|
16
|
+
import type { ForwardRefExoticComponent, RefAttributes } from "react";
|
|
17
|
+
import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
17
18
|
import type { HapticType } from "../../utils";
|
|
18
19
|
import type { ChipSize, ChipTone, ChipVariant } from "../Chip";
|
|
19
20
|
export interface FilterChipItem {
|
|
@@ -51,7 +52,7 @@ export interface FilterChipRowProps {
|
|
|
51
52
|
contentContainerStyle?: StyleProp<ViewStyle>;
|
|
52
53
|
testID?: string;
|
|
53
54
|
}
|
|
54
|
-
declare const FilterChipRow:
|
|
55
|
+
declare const FilterChipRow: ForwardRefExoticComponent<FilterChipRowProps & RefAttributes<HostInstance>>;
|
|
55
56
|
export { FilterChipRow };
|
|
56
57
|
export default FilterChipRow;
|
|
57
58
|
//# sourceMappingURL=FilterChipRow.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { Size, Tone } from "../../types/vocabulary";
|
|
4
4
|
import type { HapticType } from "../../utils/hapticUtils";
|
|
5
5
|
import { type SlotIcon } from "../AppIcon/slotIcon";
|
|
@@ -45,7 +45,7 @@ export interface FloatingActionButtonProps {
|
|
|
45
45
|
labelStyle?: StyleProp<ViewStyle>;
|
|
46
46
|
testID?: string;
|
|
47
47
|
}
|
|
48
|
-
declare const FloatingActionButton: React.ForwardRefExoticComponent<FloatingActionButtonProps & React.RefAttributes<
|
|
48
|
+
declare const FloatingActionButton: React.ForwardRefExoticComponent<FloatingActionButtonProps & React.RefAttributes<HostInstance>>;
|
|
49
49
|
export interface FloatingActionButtonGroupAction {
|
|
50
50
|
key: string;
|
|
51
51
|
/** Drawn in the action's ink at the group's size; see `FloatingActionButtonProps.icon`. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
export type FormFieldLayout = "stacked" | "inline";
|
|
4
4
|
export interface FormFieldLabels {
|
|
5
5
|
labelWithError: (label: string, error: string) => string;
|
|
@@ -48,7 +48,7 @@ export interface FormFieldProps {
|
|
|
48
48
|
labels?: Partial<FormFieldLabels>;
|
|
49
49
|
testID?: string;
|
|
50
50
|
}
|
|
51
|
-
declare const FormField: React.ForwardRefExoticComponent<FormFieldProps & React.RefAttributes<
|
|
51
|
+
declare const FormField: React.ForwardRefExoticComponent<FormFieldProps & React.RefAttributes<HostInstance>>;
|
|
52
52
|
export { FormField };
|
|
53
53
|
export default FormField;
|
|
54
54
|
//# sourceMappingURL=FormField.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ForwardRefExoticComponent, RefAttributes } from "react";
|
|
2
|
+
import type { HostInstance, StyleProp, ViewProps, ViewStyle } from "react-native";
|
|
2
3
|
import type { Size, Tone } from "../../types/vocabulary";
|
|
3
4
|
import type { IconVariant } from "../AppIcon/AppIcon";
|
|
4
5
|
import type { SlotIcon } from "../AppIcon/slotIcon";
|
|
@@ -48,7 +49,7 @@ export interface IconBadgeProps {
|
|
|
48
49
|
style?: StyleProp<ViewStyle>;
|
|
49
50
|
testID?: string;
|
|
50
51
|
}
|
|
51
|
-
declare const IconBadge:
|
|
52
|
+
declare const IconBadge: ForwardRefExoticComponent<IconBadgeProps & RefAttributes<HostInstance>>;
|
|
52
53
|
export { IconBadge };
|
|
53
54
|
export default IconBadge;
|
|
54
55
|
//# sourceMappingURL=IconBadge.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ForwardRefExoticComponent, RefAttributes } from "react";
|
|
2
|
+
import type { AccessibilityState, GestureResponderEvent, HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
2
3
|
import type { FillVariant, Size, Tone } from "../../types/vocabulary";
|
|
3
4
|
import type { HapticType } from "../../utils";
|
|
4
5
|
import type { IconVariant } from "../AppIcon/AppIcon";
|
|
@@ -46,7 +47,7 @@ export interface IconButtonProps {
|
|
|
46
47
|
style?: StyleProp<ViewStyle>;
|
|
47
48
|
testID?: string;
|
|
48
49
|
}
|
|
49
|
-
declare const IconButton:
|
|
50
|
+
declare const IconButton: ForwardRefExoticComponent<IconButtonProps & RefAttributes<HostInstance>>;
|
|
50
51
|
export { IconButton };
|
|
51
52
|
export default IconButton;
|
|
52
53
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
24
|
import type React from "react";
|
|
25
|
-
import type {
|
|
25
|
+
import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
26
26
|
import type { Size } from "../../types/vocabulary";
|
|
27
27
|
import type { HapticType } from "../../utils";
|
|
28
28
|
import type { SelectOption, SelectValue } from "../OptionSheet/OptionSheet";
|
|
@@ -99,7 +99,7 @@ export interface InlineSelectProps<T = SelectOption> {
|
|
|
99
99
|
accessibilityLabel?: string;
|
|
100
100
|
testID?: string;
|
|
101
101
|
}
|
|
102
|
-
declare const InlineSelect: React.ForwardRefExoticComponent<InlineSelectProps<unknown> & React.RefAttributes<
|
|
102
|
+
declare const InlineSelect: React.ForwardRefExoticComponent<InlineSelectProps<unknown> & React.RefAttributes<HostInstance>>;
|
|
103
103
|
export { InlineSelect };
|
|
104
104
|
export default InlineSelect;
|
|
105
105
|
//# sourceMappingURL=InlineSelect.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import type { BlurEvent, FocusEvent, StyleProp, TextInputProps, TextStyle, ViewStyle } from "react-native";
|
|
3
|
-
import { TextInput } from "react-native";
|
|
2
|
+
import type { BlurEvent, FocusEvent, StyleProp, TextInputInstance, TextInputProps, TextStyle, ViewStyle } from "react-native";
|
|
4
3
|
import type { RadiusName } from "../../theme/types";
|
|
5
4
|
import type { FieldVariant, Size } from "../../types/vocabulary";
|
|
6
5
|
import type { SlotIcon, SlotIconState } from "../AppIcon/slotIcon";
|
|
@@ -181,7 +180,7 @@ export interface InputProps extends Omit<TextInputProps, "style"> {
|
|
|
181
180
|
labels?: Partial<InputLabels>;
|
|
182
181
|
testID?: string;
|
|
183
182
|
}
|
|
184
|
-
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<
|
|
183
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<TextInputInstance>>;
|
|
185
184
|
export { Input };
|
|
186
185
|
export default Input;
|
|
187
186
|
//# sourceMappingURL=Input.d.ts.map
|
package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export interface KeyboardAwareScrollViewProps extends ControllerScrollViewProps
|
|
|
28
28
|
* Needs the app's
|
|
29
29
|
* `KeyboardProvider` at the root.
|
|
30
30
|
*/
|
|
31
|
-
declare const KeyboardAwareScrollView: import("react").ForwardRefExoticComponent<KeyboardAwareScrollViewProps & import("react").RefAttributes<
|
|
31
|
+
declare const KeyboardAwareScrollView: import("react").ForwardRefExoticComponent<KeyboardAwareScrollViewProps & import("react").RefAttributes<never>>;
|
|
32
32
|
export { KeyboardAwareScrollView };
|
|
33
33
|
export default KeyboardAwareScrollView;
|
|
34
34
|
//# sourceMappingURL=KeyboardAwareScrollView.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { GestureResponderEvent,
|
|
2
|
+
import type { GestureResponderEvent, HostInstance, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { Size, Tone } from "../../types/vocabulary";
|
|
4
4
|
import type { HapticType } from "../../utils/hapticUtils";
|
|
5
5
|
import type { SlotIcon } from "../AppIcon/slotIcon";
|
|
@@ -41,7 +41,8 @@ export interface ListItemProps {
|
|
|
41
41
|
loading?: boolean;
|
|
42
42
|
/** Text in the subtitle style, or any node drawn as is. */
|
|
43
43
|
subtitle?: React.ReactNode;
|
|
44
|
-
description
|
|
44
|
+
/** Text in the description style, clamped to 2 lines, or any node drawn as is. `descriptionStyle` and the clamp apply to text only. */
|
|
45
|
+
description?: React.ReactNode;
|
|
45
46
|
/**
|
|
46
47
|
* Content drawn in the text column under the description, before a `trailing`
|
|
47
48
|
* slot placed below. Inside the row's press target.
|
|
@@ -125,7 +126,7 @@ export interface ListItemProps {
|
|
|
125
126
|
rightSlotStyle?: StyleProp<ViewStyle>;
|
|
126
127
|
testID?: string;
|
|
127
128
|
}
|
|
128
|
-
declare const ListItem: React.MemoExoticComponent<React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<
|
|
129
|
+
declare const ListItem: React.MemoExoticComponent<React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HostInstance>>> & {
|
|
129
130
|
Skeleton: React.FC<ListItemProps>;
|
|
130
131
|
};
|
|
131
132
|
export { ListItem };
|
|
@@ -31,13 +31,15 @@ export interface MarkdownProps<T = string> {
|
|
|
31
31
|
style?: StyleProp<ViewStyle>;
|
|
32
32
|
/** Applied to every text block, so a caller can set the base size or colour. */
|
|
33
33
|
textStyle?: StyleProp<TextStyle>;
|
|
34
|
+
/** Makes every text block selectable, so a person can select and copy it. List markers are not selectable; a code block always is. */
|
|
35
|
+
selectable?: boolean;
|
|
34
36
|
testID?: string;
|
|
35
37
|
}
|
|
36
38
|
/**
|
|
37
39
|
* Renders the shared markdown grammar with the theme's own type scale and colours,
|
|
38
40
|
* with no dependency. Inline HTML is plain text.
|
|
39
41
|
*/
|
|
40
|
-
export declare function Markdown<T = string>({ children, links, headings, figureText, resolveLink, isCitation, onOpenCitation, onAppLinkPress, onLinkPress, onPageLinkPress, loading, style, textStyle, testID, }: MarkdownProps<T>): React.ReactElement | null;
|
|
42
|
+
export declare function Markdown<T = string>({ children, links, headings, figureText, resolveLink, isCitation, onOpenCitation, onAppLinkPress, onLinkPress, onPageLinkPress, loading, style, textStyle, selectable, testID, }: MarkdownProps<T>): React.ReactElement | null;
|
|
41
43
|
export declare namespace Markdown {
|
|
42
44
|
var displayName: string;
|
|
43
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import type { AccessibilityActionEvent, AccessibilityActionInfo,
|
|
2
|
+
import type { AccessibilityActionEvent, AccessibilityActionInfo, HostInstance, PressableProps } from "react-native";
|
|
3
3
|
import type { HapticType } from "../../utils/hapticUtils";
|
|
4
4
|
import type { PlacementPreference } from "../../utils/placement";
|
|
5
5
|
import type { MenuItem, MenuItems, MenuLabels, MenuPresentation, MenuUnavailable } from "./menuModel";
|
|
@@ -38,7 +38,7 @@ export interface ContextMenuBinding {
|
|
|
38
38
|
/** False when there is no config or nothing in it to show. */
|
|
39
39
|
enabled: boolean;
|
|
40
40
|
/** Merge onto the host's pressable; the menu measures it to anchor and lift it. */
|
|
41
|
-
hostRef: React.RefObject<
|
|
41
|
+
hostRef: React.RefObject<HostInstance | null>;
|
|
42
42
|
/**
|
|
43
43
|
* Spread on the host's pressable after its own props: the long press, the
|
|
44
44
|
* screen reader actions and, on the web, right-click and Shift+F10.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { HostInstance, LayoutRectangle, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { HapticType } from "../../utils/hapticUtils";
|
|
4
4
|
import type { PlacementAlign, PlacementPreference } from "../../utils/placement";
|
|
5
5
|
import type { ModalInsets } from "../ModalSafeArea/ModalSafeArea";
|
|
@@ -38,7 +38,7 @@ export interface ModalProps {
|
|
|
38
38
|
* back where they invoked the dialog instead of at the top of the screen.
|
|
39
39
|
* Opt-in: when undefined, focus behaviour is unchanged.
|
|
40
40
|
*/
|
|
41
|
-
restoreFocusRef?: React.RefObject<
|
|
41
|
+
restoreFocusRef?: React.RefObject<HostInstance | null>;
|
|
42
42
|
/**
|
|
43
43
|
* Fired once after the modal closes, MODAL_DISMISS_GRACE_MS after `open`
|
|
44
44
|
* flips false — the earliest point it is safe to unmount the surrounding
|
|
@@ -70,7 +70,7 @@ export interface ModalProps {
|
|
|
70
70
|
/** Called with the top and bottom insets of the window the modal draws in, whenever they change. */
|
|
71
71
|
onInsetsChange?: (insets: ModalInsets) => void;
|
|
72
72
|
}
|
|
73
|
-
declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<
|
|
73
|
+
declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HostInstance>>;
|
|
74
74
|
export { Modal };
|
|
75
75
|
export default Modal;
|
|
76
76
|
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* - Render PickerTrigger themselves alongside a controlled picker.
|
|
13
13
|
*/
|
|
14
14
|
import type React from "react";
|
|
15
|
-
import type {
|
|
15
|
+
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
16
16
|
import type { FieldVariant, Size } from "../../types/vocabulary";
|
|
17
17
|
export type PickerTriggerSize = Extract<Size, "sm" | "md" | "lg">;
|
|
18
18
|
export type PickerTriggerVariant = FieldVariant;
|
|
@@ -71,7 +71,9 @@ export type PickerTriggerPassThroughProps = Pick<PickerTriggerProps, "label" | "
|
|
|
71
71
|
/** Copy for the trigger field (placeholder, selection, noSelection, clear). Named apart from labels, which is the copy of the picker sheet. */
|
|
72
72
|
triggerLabels?: Partial<PickerTriggerLabels>;
|
|
73
73
|
};
|
|
74
|
-
declare const PickerTrigger: React.ForwardRefExoticComponent<PickerTriggerProps & React.RefAttributes<
|
|
74
|
+
declare const PickerTrigger: React.ForwardRefExoticComponent<PickerTriggerProps & React.RefAttributes<(props: Omit<import("react-native").ViewProps, "ref"> & {
|
|
75
|
+
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
76
|
+
}) => React.ReactNode>>;
|
|
75
77
|
export { PickerTrigger };
|
|
76
78
|
export default PickerTrigger;
|
|
77
79
|
//# sourceMappingURL=PickerTrigger.d.ts.map
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* design wants one.
|
|
11
11
|
*/
|
|
12
12
|
import type React from "react";
|
|
13
|
-
import type {
|
|
13
|
+
import type { HostInstance, ImageSourcePropType, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
14
14
|
import type { Size, Tone } from "../../types/vocabulary";
|
|
15
15
|
import type { AvatarImageProps, AvatarTone } from "../Avatar";
|
|
16
16
|
/** The Avatar's own tone set; kept under this name for the component's public surface. */
|
|
@@ -85,7 +85,7 @@ export interface ProfileCompletionProps {
|
|
|
85
85
|
descriptionStyle?: StyleProp<TextStyle>;
|
|
86
86
|
testID?: string;
|
|
87
87
|
}
|
|
88
|
-
declare const ProfileCompletion: React.ForwardRefExoticComponent<ProfileCompletionProps & React.RefAttributes<
|
|
88
|
+
declare const ProfileCompletion: React.ForwardRefExoticComponent<ProfileCompletionProps & React.RefAttributes<HostInstance>>;
|
|
89
89
|
export { ProfileCompletion };
|
|
90
90
|
export default ProfileCompletion;
|
|
91
91
|
//# sourceMappingURL=ProfileCompletion.d.ts.map
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import type { PickedFile } from "@webority/mobile-core/pickers";
|
|
18
18
|
import type React from "react";
|
|
19
|
-
import type {
|
|
19
|
+
import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
20
20
|
import type { FillVariant, Size, Tone } from "../../types/vocabulary";
|
|
21
21
|
import type { HapticType } from "../../utils";
|
|
22
22
|
import type { IconName, SlotIconRef } from "../AppIcon";
|
|
@@ -118,7 +118,7 @@ export interface ProfilePickerProps {
|
|
|
118
118
|
style?: StyleProp<ViewStyle>;
|
|
119
119
|
testID?: string;
|
|
120
120
|
}
|
|
121
|
-
declare const ProfilePicker: React.ForwardRefExoticComponent<ProfilePickerProps & React.RefAttributes<
|
|
121
|
+
declare const ProfilePicker: React.ForwardRefExoticComponent<ProfilePickerProps & React.RefAttributes<HostInstance>>;
|
|
122
122
|
export { ProfilePicker };
|
|
123
123
|
export default ProfilePicker;
|
|
124
124
|
//# sourceMappingURL=ProfilePicker.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
import type {
|
|
1
|
+
import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { GradientDefinition } from "../../theme/types";
|
|
4
4
|
import type { Tone } from "../../types/vocabulary";
|
|
5
5
|
export interface ProgressBarLabels {
|
|
@@ -27,7 +27,7 @@ export interface ProgressBarProps {
|
|
|
27
27
|
tone?: Tone;
|
|
28
28
|
trackColor?: string;
|
|
29
29
|
barColor?: string;
|
|
30
|
-
/** Gradient fill for the determinate bar
|
|
30
|
+
/** Gradient fill for the determinate bar: a GradientDefinition or a theme gradient token name. An unknown token name throws a RangeError. */
|
|
31
31
|
gradient?: GradientDefinition | string;
|
|
32
32
|
/** Render a multi-colour breakdown bar (usage split) instead of a single progress fill. */
|
|
33
33
|
segments?: ProgressBarSegment[];
|
|
@@ -41,7 +41,7 @@ export interface ProgressBarProps {
|
|
|
41
41
|
labels?: Partial<ProgressBarLabels>;
|
|
42
42
|
testID?: string;
|
|
43
43
|
}
|
|
44
|
-
declare const ProgressBar:
|
|
44
|
+
declare const ProgressBar: ForwardRefExoticComponent<ProgressBarProps & RefAttributes<HostInstance>>;
|
|
45
45
|
export { ProgressBar };
|
|
46
46
|
export default ProgressBar;
|
|
47
47
|
//# sourceMappingURL=ProgressBar.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Determinate only: an unknown-duration wait is Spinner's job.
|
|
12
12
|
*/
|
|
13
13
|
import type React from "react";
|
|
14
|
-
import type {
|
|
14
|
+
import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
15
15
|
import type { Tone } from "../../types/vocabulary";
|
|
16
16
|
export interface ProgressRingProps {
|
|
17
17
|
/** Fraction of the ring filled, 0 to 1, clamped. Default `0`. */
|
|
@@ -46,7 +46,7 @@ export interface ProgressRingProps {
|
|
|
46
46
|
style?: StyleProp<ViewStyle>;
|
|
47
47
|
testID?: string;
|
|
48
48
|
}
|
|
49
|
-
declare const ProgressRing: React.ForwardRefExoticComponent<ProgressRingProps & React.RefAttributes<
|
|
49
|
+
declare const ProgressRing: React.ForwardRefExoticComponent<ProgressRingProps & React.RefAttributes<HostInstance>>;
|
|
50
50
|
export { ProgressRing };
|
|
51
51
|
export default ProgressRing;
|
|
52
52
|
//# sourceMappingURL=ProgressRing.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
import type {
|
|
1
|
+
import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { HostInstance, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { Size, Tone } from "../../types/vocabulary";
|
|
4
4
|
import type { HapticType } from "../../utils/hapticUtils";
|
|
5
5
|
export type RadioSize = Extract<Size, "sm" | "md" | "lg">;
|
|
@@ -46,7 +46,7 @@ export interface RadioProps extends Omit<PressableProps, "style" | "children" |
|
|
|
46
46
|
labelStyle?: StyleProp<TextStyle>;
|
|
47
47
|
testID?: string;
|
|
48
48
|
}
|
|
49
|
-
declare const Radio:
|
|
49
|
+
declare const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<HostInstance>>;
|
|
50
50
|
export { Radio };
|
|
51
51
|
export default Radio;
|
|
52
52
|
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { Size, Tone } from "../../types/vocabulary";
|
|
4
4
|
import type { HapticType } from "../../utils/hapticUtils";
|
|
5
5
|
export type RatingTone = Tone;
|
|
@@ -37,7 +37,7 @@ export interface RatingProps {
|
|
|
37
37
|
starContainerStyle?: StyleProp<ViewStyle>;
|
|
38
38
|
testID?: string;
|
|
39
39
|
}
|
|
40
|
-
declare const Rating: React.ForwardRefExoticComponent<RatingProps & React.RefAttributes<
|
|
40
|
+
declare const Rating: React.ForwardRefExoticComponent<RatingProps & React.RefAttributes<HostInstance>> & {
|
|
41
41
|
Skeleton: React.FC<RatingProps>;
|
|
42
42
|
};
|
|
43
43
|
export { Rating };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { StyleProp, TextInputInstance, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { HapticType } from "../../utils";
|
|
4
4
|
import type { MarkdownAction } from "./markdownActions";
|
|
5
5
|
export type RichTextEditorLabels = Record<MarkdownAction, string>;
|
|
@@ -47,6 +47,6 @@ export interface RichTextEditorProps {
|
|
|
47
47
|
* exactly what replacing the stale `react-native-pell-rich-editor` was meant to
|
|
48
48
|
* escape: markdown in, markdown out, one plain TextInput, no bridge.
|
|
49
49
|
*/
|
|
50
|
-
export declare const RichTextEditor: React.ForwardRefExoticComponent<RichTextEditorProps & React.RefAttributes<
|
|
50
|
+
export declare const RichTextEditor: React.ForwardRefExoticComponent<RichTextEditorProps & React.RefAttributes<TextInputInstance>>;
|
|
51
51
|
export default RichTextEditor;
|
|
52
52
|
//# sourceMappingURL=RichTextEditor.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { HapticType } from "../../utils/hapticUtils";
|
|
4
4
|
/**
|
|
5
5
|
* `scanning` waits for a code; `found` freezes the frame on success; `invalid`
|
|
@@ -71,7 +71,7 @@ export interface ScannerOverlayProps {
|
|
|
71
71
|
testID?: string;
|
|
72
72
|
}
|
|
73
73
|
export declare const DEFAULT_SCANNER_OVERLAY_LABELS: Readonly<ScannerOverlayLabels>;
|
|
74
|
-
declare const ScannerOverlay: React.ForwardRefExoticComponent<ScannerOverlayProps & React.RefAttributes<
|
|
74
|
+
declare const ScannerOverlay: React.ForwardRefExoticComponent<ScannerOverlayProps & React.RefAttributes<HostInstance>>;
|
|
75
75
|
export { ScannerOverlay };
|
|
76
76
|
export default ScannerOverlay;
|
|
77
77
|
//# sourceMappingURL=ScannerOverlay.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PagedListPaging } from "@webority/mobile-core/query";
|
|
2
2
|
import type React from "react";
|
|
3
|
-
import type { FlatListProps, NativeScrollEvent, NativeSyntheticEvent,
|
|
3
|
+
import type { FlatListProps, NativeScrollEvent, NativeSyntheticEvent, ScrollViewInstance, StyleProp, ViewStyle } from "react-native";
|
|
4
4
|
import { FlatList } from "react-native";
|
|
5
5
|
import type { AppBarAction } from "../AppBar";
|
|
6
6
|
import type { EmptyStateProps } from "../EmptyState";
|
|
@@ -60,7 +60,7 @@ export interface ScreenProps<ItemT = unknown> {
|
|
|
60
60
|
floatingAction?: React.ReactElement<FloatingActionSlotProps>;
|
|
61
61
|
/** Default true. */
|
|
62
62
|
keyboardToolbar?: boolean;
|
|
63
|
-
scrollRef?: React.Ref<
|
|
63
|
+
scrollRef?: React.Ref<ScrollViewInstance | FlatList<ItemT>>;
|
|
64
64
|
onScroll?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
|
|
65
65
|
contentContainerStyle?: StyleProp<ViewStyle>;
|
|
66
66
|
testID?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { ForwardRefExoticComponent, RefAttributes } from "react";
|
|
2
|
+
import type { StyleProp, TextInputInstance, TextInputProps, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { RadiusName } from "../../theme/types";
|
|
4
4
|
import type { FieldVariant, Size } from "../../types/vocabulary";
|
|
5
5
|
import type { HapticType } from "../../utils/hapticUtils";
|
|
@@ -92,7 +92,7 @@ export interface SearchBarProps extends Omit<TextInputProps, "style" | "value" |
|
|
|
92
92
|
accessibilityLabel?: string;
|
|
93
93
|
testID?: string;
|
|
94
94
|
}
|
|
95
|
-
declare const SearchBar:
|
|
95
|
+
declare const SearchBar: ForwardRefExoticComponent<SearchBarProps & RefAttributes<TextInputInstance>>;
|
|
96
96
|
export { SearchBar };
|
|
97
97
|
export default SearchBar;
|
|
98
98
|
//# sourceMappingURL=SearchBar.d.ts.map
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* and vertical extent. It is a look, not a semantic change: the roles stay
|
|
14
14
|
* radiogroup / radio, and screen navigation is still Tabs.
|
|
15
15
|
*/
|
|
16
|
-
import type { ReactNode } from "react";
|
|
17
|
-
import type {
|
|
16
|
+
import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from "react";
|
|
17
|
+
import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
18
18
|
import type { RadiusName } from "../../theme/types";
|
|
19
19
|
import type { Size, Tone } from "../../types/vocabulary";
|
|
20
20
|
import type { HapticType } from "../../utils";
|
|
@@ -96,7 +96,7 @@ export interface SegmentedControlProps {
|
|
|
96
96
|
labelStyle?: StyleProp<TextStyle>;
|
|
97
97
|
testID?: string;
|
|
98
98
|
}
|
|
99
|
-
declare const SegmentedControl:
|
|
99
|
+
declare const SegmentedControl: ForwardRefExoticComponent<SegmentedControlProps & RefAttributes<HostInstance>>;
|
|
100
100
|
export { SegmentedControl };
|
|
101
101
|
export default SegmentedControl;
|
|
102
102
|
//# sourceMappingURL=SegmentedControl.d.ts.map
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* styling, full a11y, and dark-mode auto.
|
|
8
8
|
*/
|
|
9
9
|
import type React from "react";
|
|
10
|
-
import type {
|
|
10
|
+
import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
11
11
|
import type { FieldVariant, Size } from "../../types/vocabulary";
|
|
12
12
|
import type { HapticType } from "../../utils";
|
|
13
13
|
import type { SlotIcon } from "../AppIcon/slotIcon";
|
|
@@ -157,7 +157,7 @@ export interface MultiSelectProps<T = SelectOption> extends BaseSelectProps<T> {
|
|
|
157
157
|
onChange: (value: SelectValue[]) => void;
|
|
158
158
|
}
|
|
159
159
|
export type SelectProps<T = SelectOption> = SingleSelectProps<T> | MultiSelectProps<T>;
|
|
160
|
-
declare const Select: React.ForwardRefExoticComponent<SelectProps<unknown> & React.RefAttributes<
|
|
160
|
+
declare const Select: React.ForwardRefExoticComponent<SelectProps<unknown> & React.RefAttributes<HostInstance>>;
|
|
161
161
|
export { Select };
|
|
162
162
|
export default Select;
|
|
163
163
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* expo-file-system is read here, on the first signature saved, so nothing that
|
|
4
4
|
* imports the pad pays for it at start (the web build uses `writePng.web.ts`).
|
|
5
5
|
*/
|
|
6
|
-
export declare const writePng: (base64: string) => string
|
|
6
|
+
export declare const writePng: (base64: string) => Promise<string>;
|
|
7
7
|
//# sourceMappingURL=writePng.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** The browser has no cache folder: the PNG is answered as a data uri, usable as an image source or an upload body. */
|
|
2
|
-
export declare const writePng: (base64: string) => string
|
|
2
|
+
export declare const writePng: (base64: string) => Promise<string>;
|
|
3
3
|
//# sourceMappingURL=writePng.web.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { Size, Tone } from "../../types/vocabulary";
|
|
4
4
|
import type { HapticType } from "../../utils";
|
|
5
5
|
export type SlideToConfirmTone = Tone;
|
|
@@ -34,7 +34,7 @@ export interface SlideToConfirmProps {
|
|
|
34
34
|
labelStyle?: StyleProp<TextStyle>;
|
|
35
35
|
testID?: string;
|
|
36
36
|
}
|
|
37
|
-
declare const SlideToConfirm: React.ForwardRefExoticComponent<SlideToConfirmProps & React.RefAttributes<
|
|
37
|
+
declare const SlideToConfirm: React.ForwardRefExoticComponent<SlideToConfirmProps & React.RefAttributes<HostInstance>>;
|
|
38
38
|
export { SlideToConfirm };
|
|
39
39
|
export default SlideToConfirm;
|
|
40
40
|
//# sourceMappingURL=SlideToConfirm.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { Size, Tone } from "../../types/vocabulary";
|
|
4
4
|
import type { HapticType } from "../../utils";
|
|
5
5
|
export type SliderTone = Tone;
|
|
@@ -85,7 +85,7 @@ export interface SliderRangeProps extends SliderCommonProps {
|
|
|
85
85
|
onChange?: (value: [number, number]) => void;
|
|
86
86
|
}
|
|
87
87
|
export type SliderProps = SliderSingleProps | SliderRangeProps;
|
|
88
|
-
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<
|
|
88
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HostInstance>>;
|
|
89
89
|
export { Slider };
|
|
90
90
|
export default Slider;
|
|
91
91
|
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { HapticType } from "../../utils";
|
|
4
4
|
import type { SlotIcon } from "../AppIcon";
|
|
5
5
|
import type { SliderSize, SliderTone, SliderVariant } from "../Slider";
|
|
@@ -91,7 +91,7 @@ interface SliderFieldRangeProps extends SliderFieldCommonProps {
|
|
|
91
91
|
onChange?: (value: [number, number]) => void;
|
|
92
92
|
}
|
|
93
93
|
export type SliderFieldProps = SliderFieldSingleProps | SliderFieldRangeProps;
|
|
94
|
-
declare const SliderField: React.ForwardRefExoticComponent<SliderFieldProps & React.RefAttributes<
|
|
94
|
+
declare const SliderField: React.ForwardRefExoticComponent<SliderFieldProps & React.RefAttributes<HostInstance>>;
|
|
95
95
|
export { SliderField };
|
|
96
96
|
export default SliderField;
|
|
97
97
|
//# sourceMappingURL=SliderField.d.ts.map
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* reads as one image to a screen reader, with a label that states the start,
|
|
8
8
|
* end, low and high values, so nothing rests on the line's colour.
|
|
9
9
|
*/
|
|
10
|
-
import type {
|
|
10
|
+
import type { ForwardRefExoticComponent, RefAttributes } from "react";
|
|
11
|
+
import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
11
12
|
import type { Tone } from "../../types/vocabulary";
|
|
12
13
|
export type SparklineTone = Tone;
|
|
13
14
|
export interface SparklineLabels {
|
|
@@ -43,7 +44,7 @@ export interface SparklineProps {
|
|
|
43
44
|
style?: StyleProp<ViewStyle>;
|
|
44
45
|
testID?: string;
|
|
45
46
|
}
|
|
46
|
-
declare const Sparkline:
|
|
47
|
+
declare const Sparkline: ForwardRefExoticComponent<SparklineProps & RefAttributes<HostInstance>>;
|
|
47
48
|
export { Sparkline };
|
|
48
49
|
export default Sparkline;
|
|
49
50
|
//# sourceMappingURL=Sparkline.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { Size } from "../../types/vocabulary";
|
|
4
4
|
export type SpinnerSize = Extract<Size, "sm" | "md" | "lg">;
|
|
5
5
|
export type SpinnerVariant = "circular" | "dots" | "contained";
|
|
@@ -25,7 +25,7 @@ export interface SpinnerProps {
|
|
|
25
25
|
style?: StyleProp<ViewStyle>;
|
|
26
26
|
testID?: string;
|
|
27
27
|
}
|
|
28
|
-
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<
|
|
28
|
+
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HostInstance>>;
|
|
29
29
|
export { Spinner };
|
|
30
30
|
export default Spinner;
|
|
31
31
|
//# sourceMappingURL=Spinner.d.ts.map
|