@webority/mobile-ui 0.174.1 → 0.175.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 +10 -10
- package/dist/canvas-kit/manifest.json +1 -1
- package/dist/canvas-kit/release.json +5 -5
- package/lib/commonjs/components/Accordion/Accordion.js +1 -1
- package/lib/commonjs/components/AmountSlider/AmountSlider.js +1 -1
- package/lib/commonjs/components/AppBar/AppBar.js +1 -1
- package/lib/commonjs/components/AuthedImage/authedImageCache.js +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +1 -1
- package/lib/commonjs/components/Badge/Badge.js +1 -1
- package/lib/commonjs/components/Banner/Banner.js +1 -1
- package/lib/commonjs/components/BarChart/BarChart.js +1 -1
- package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/commonjs/components/Box/Box.js +1 -1
- package/lib/commonjs/components/Button/Button.js +1 -1
- package/lib/commonjs/components/Calendar/Calendar.js +1 -1
- package/lib/commonjs/components/Card/Card.js +1 -1
- package/lib/commonjs/components/Carousel/Carousel.js +1 -1
- package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
- package/lib/commonjs/components/Chip/Chip.js +1 -1
- package/lib/commonjs/components/Composer/Composer.js +1 -1
- package/lib/commonjs/components/Confetti/Confetti.js +1 -1
- package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/commonjs/components/DecimalInput/DecimalInput.js +1 -1
- package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
- package/lib/commonjs/components/Divider/Divider.js +1 -1
- package/lib/commonjs/components/Drawer/Drawer.js +1 -1
- package/lib/commonjs/components/EmptyState/EmptyState.js +1 -1
- 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/FilePicker/FilePicker.js +1 -1
- package/lib/commonjs/components/FilterChipRow/FilterChipRow.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/IconBadge/IconBadge.js +1 -1
- package/lib/commonjs/components/IconButton/IconButton.js +1 -1
- package/lib/commonjs/components/Input/Input.js +1 -1
- package/lib/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +1 -1
- package/lib/commonjs/components/ListItem/ListItem.js +1 -1
- package/lib/commonjs/components/Modal/Modal.js +1 -1
- package/lib/commonjs/components/NumberInput/NumberInput.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/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/commonjs/components/PickerTrigger/PickerTrigger.js +1 -1
- package/lib/commonjs/components/ProfileCompletion/ProfileCompletion.js +1 -1
- package/lib/commonjs/components/ProgressBar/ProgressBar.js +1 -1
- package/lib/commonjs/components/ProgressRing/ProgressRing.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/Rating/Rating.js +1 -1
- package/lib/commonjs/components/RichTextEditor/RichTextEditor.js +1 -1
- package/lib/commonjs/components/ScannerOverlay/ScannerOverlay.js +1 -1
- package/lib/commonjs/components/Screen/Screen.js +1 -1
- package/lib/commonjs/components/SearchBar/SearchBar.js +1 -1
- package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/commonjs/components/Select/Select.js +1 -1
- package/lib/commonjs/components/SignaturePad/SignaturePad.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonClock.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonProvider.js +1 -1
- package/lib/commonjs/components/SlideToConfirm/SlideToConfirm.js +1 -1
- package/lib/commonjs/components/Slider/Slider.js +1 -1
- package/lib/commonjs/components/SliderField/SliderField.js +1 -1
- package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
- package/lib/commonjs/components/Spinner/Spinner.js +1 -1
- package/lib/commonjs/components/SquircleView/SquircleView.js +1 -1
- package/lib/commonjs/components/StatTile/StatTile.js +1 -1
- package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
- package/lib/commonjs/components/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/ToastProvider.js +1 -1
- package/lib/commonjs/navigation/DiscardGuard.js +1 -1
- package/lib/commonjs/theme/ThemeContext.js +1 -1
- package/lib/commonjs/utils/shadows.js +1 -1
- package/lib/module/components/Accordion/Accordion.js +1 -1
- package/lib/module/components/AmountSlider/AmountSlider.js +1 -1
- package/lib/module/components/AppBar/AppBar.js +1 -1
- package/lib/module/components/AuthedImage/authedImageCache.js +1 -1
- package/lib/module/components/Avatar/Avatar.js +1 -1
- package/lib/module/components/Badge/Badge.js +1 -1
- package/lib/module/components/Banner/Banner.js +1 -1
- package/lib/module/components/BarChart/BarChart.js +1 -1
- package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/module/components/Box/Box.js +1 -1
- package/lib/module/components/Button/Button.js +1 -1
- package/lib/module/components/Calendar/Calendar.js +1 -1
- package/lib/module/components/Card/Card.js +1 -1
- package/lib/module/components/Carousel/Carousel.js +1 -1
- package/lib/module/components/Checkbox/Checkbox.js +1 -1
- package/lib/module/components/Chip/Chip.js +1 -1
- package/lib/module/components/Composer/Composer.js +1 -1
- package/lib/module/components/Confetti/Confetti.js +1 -1
- package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/module/components/DecimalInput/DecimalInput.js +1 -1
- package/lib/module/components/Descriptions/Descriptions.js +1 -1
- package/lib/module/components/Divider/Divider.js +1 -1
- package/lib/module/components/Drawer/Drawer.js +1 -1
- package/lib/module/components/EmptyState/EmptyState.js +1 -1
- 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/FilePicker/FilePicker.js +1 -1
- package/lib/module/components/FilterChipRow/FilterChipRow.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/IconBadge/IconBadge.js +1 -1
- package/lib/module/components/IconButton/IconButton.js +1 -1
- package/lib/module/components/Input/Input.js +1 -1
- package/lib/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +1 -1
- package/lib/module/components/ListItem/ListItem.js +1 -1
- package/lib/module/components/Modal/Modal.js +1 -1
- package/lib/module/components/NumberInput/NumberInput.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/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/module/components/PickerTrigger/PickerTrigger.js +1 -1
- package/lib/module/components/ProfileCompletion/ProfileCompletion.js +1 -1
- package/lib/module/components/ProgressBar/ProgressBar.js +1 -1
- package/lib/module/components/ProgressRing/ProgressRing.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/Rating/Rating.js +1 -1
- package/lib/module/components/RichTextEditor/RichTextEditor.js +1 -1
- package/lib/module/components/ScannerOverlay/ScannerOverlay.js +1 -1
- package/lib/module/components/Screen/Screen.js +1 -1
- package/lib/module/components/SearchBar/SearchBar.js +1 -1
- package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/module/components/Select/Select.js +1 -1
- package/lib/module/components/SignaturePad/SignaturePad.js +1 -1
- package/lib/module/components/Skeleton/SkeletonClock.js +1 -1
- package/lib/module/components/Skeleton/SkeletonProvider.js +1 -1
- package/lib/module/components/SlideToConfirm/SlideToConfirm.js +1 -1
- package/lib/module/components/Slider/Slider.js +1 -1
- package/lib/module/components/SliderField/SliderField.js +1 -1
- package/lib/module/components/Sparkline/Sparkline.js +1 -1
- package/lib/module/components/Spinner/Spinner.js +1 -1
- package/lib/module/components/SquircleView/SquircleView.js +1 -1
- package/lib/module/components/StatTile/StatTile.js +1 -1
- package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
- package/lib/module/components/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/ToastProvider.js +1 -1
- package/lib/module/navigation/DiscardGuard.js +1 -1
- package/lib/module/theme/ThemeContext.js +1 -1
- package/lib/module/utils/shadows.js +1 -1
- package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +3 -2
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +4 -1
- package/lib/typescript/commonjs/components/AuthedImage/authedImageCache.d.ts +3 -1
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +6 -1
- package/lib/typescript/commonjs/components/Badge/Badge.d.ts +5 -1
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts +3 -1
- package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +4 -1
- package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +3 -1
- package/lib/typescript/commonjs/components/Box/Box.d.ts +6 -3
- package/lib/typescript/commonjs/components/Button/Button.d.ts +4 -2
- package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +4 -2
- package/lib/typescript/commonjs/components/Card/Card.d.ts +2 -1
- package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +4 -1
- package/lib/typescript/commonjs/components/Chip/Chip.d.ts +3 -1
- package/lib/typescript/commonjs/components/Composer/Composer.d.ts +3 -1
- package/lib/typescript/commonjs/components/Confetti/Confetti.d.ts +3 -1
- package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +4 -2
- package/lib/typescript/commonjs/components/DecimalInput/DecimalInput.d.ts +4 -2
- package/lib/typescript/commonjs/components/Divider/Divider.d.ts +3 -2
- package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +3 -1
- package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +2 -1
- package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +4 -1
- package/lib/typescript/commonjs/components/FilterChipRow/FilterChipRow.d.ts +4 -2
- package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +2 -1
- package/lib/typescript/commonjs/components/FormField/FormField.d.ts +3 -2
- package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +4 -2
- package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +4 -2
- package/lib/typescript/commonjs/components/Input/Input.d.ts +4 -1
- package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +4 -1
- package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +2 -0
- package/lib/typescript/commonjs/components/Modal/Modal.d.ts +3 -1
- package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +4 -2
- package/lib/typescript/commonjs/components/OTPInput/OTPInput.d.ts +3 -2
- package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +4 -2
- package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +4 -4
- package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +4 -1
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +3 -2
- package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +2 -1
- package/lib/typescript/commonjs/components/Radio/Radio.d.ts +4 -2
- package/lib/typescript/commonjs/components/Rating/Rating.d.ts +5 -1
- package/lib/typescript/commonjs/components/RichTextEditor/RichTextEditor.d.ts +2 -1
- package/lib/typescript/commonjs/components/ScannerOverlay/ScannerOverlay.d.ts +2 -1
- package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +4 -2
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +3 -2
- package/lib/typescript/commonjs/components/SignaturePad/SignaturePad.d.ts +4 -1
- package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +3 -1
- package/lib/typescript/commonjs/components/Slider/Slider.d.ts +3 -1
- package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +3 -1
- package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +4 -2
- package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +2 -1
- package/lib/typescript/commonjs/components/SquircleView/SquircleView.d.ts +8 -3
- package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +3 -2
- package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +4 -1
- package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +3 -1
- package/lib/typescript/commonjs/components/Switch/Switch.d.ts +3 -2
- package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +3 -2
- package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +4 -2
- package/lib/typescript/commonjs/components/Text/Text.d.ts +4 -1
- package/lib/typescript/commonjs/navigation/DiscardGuard.d.ts +3 -1
- package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +3 -2
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +4 -1
- package/lib/typescript/module/components/AuthedImage/authedImageCache.d.ts +3 -1
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +6 -1
- package/lib/typescript/module/components/Badge/Badge.d.ts +5 -1
- package/lib/typescript/module/components/Banner/Banner.d.ts +3 -1
- package/lib/typescript/module/components/BarChart/BarChart.d.ts +4 -1
- package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +3 -1
- package/lib/typescript/module/components/Box/Box.d.ts +6 -3
- package/lib/typescript/module/components/Button/Button.d.ts +4 -2
- package/lib/typescript/module/components/Calendar/Calendar.d.ts +4 -2
- package/lib/typescript/module/components/Card/Card.d.ts +2 -1
- package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +4 -1
- package/lib/typescript/module/components/Chip/Chip.d.ts +3 -1
- package/lib/typescript/module/components/Composer/Composer.d.ts +3 -1
- package/lib/typescript/module/components/Confetti/Confetti.d.ts +3 -1
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +4 -2
- package/lib/typescript/module/components/DecimalInput/DecimalInput.d.ts +4 -2
- package/lib/typescript/module/components/Divider/Divider.d.ts +3 -2
- package/lib/typescript/module/components/Drawer/Drawer.d.ts +3 -1
- package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +2 -1
- package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +4 -1
- package/lib/typescript/module/components/FilterChipRow/FilterChipRow.d.ts +4 -2
- package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +2 -1
- package/lib/typescript/module/components/FormField/FormField.d.ts +3 -2
- package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +4 -2
- package/lib/typescript/module/components/IconButton/IconButton.d.ts +4 -2
- package/lib/typescript/module/components/Input/Input.d.ts +4 -1
- package/lib/typescript/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +4 -1
- package/lib/typescript/module/components/ListItem/ListItem.d.ts +2 -0
- package/lib/typescript/module/components/Modal/Modal.d.ts +3 -1
- package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +4 -2
- package/lib/typescript/module/components/OTPInput/OTPInput.d.ts +3 -2
- package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +4 -2
- package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +4 -4
- package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +4 -1
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +3 -2
- package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +2 -1
- package/lib/typescript/module/components/Radio/Radio.d.ts +4 -2
- package/lib/typescript/module/components/Rating/Rating.d.ts +5 -1
- package/lib/typescript/module/components/RichTextEditor/RichTextEditor.d.ts +2 -1
- package/lib/typescript/module/components/ScannerOverlay/ScannerOverlay.d.ts +2 -1
- package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +4 -2
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +3 -2
- package/lib/typescript/module/components/SignaturePad/SignaturePad.d.ts +4 -1
- package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +3 -1
- package/lib/typescript/module/components/Slider/Slider.d.ts +3 -1
- package/lib/typescript/module/components/SliderField/SliderField.d.ts +3 -1
- package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +4 -2
- package/lib/typescript/module/components/Spinner/Spinner.d.ts +2 -1
- package/lib/typescript/module/components/SquircleView/SquircleView.d.ts +8 -3
- package/lib/typescript/module/components/StatTile/StatTile.d.ts +3 -2
- package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +4 -1
- package/lib/typescript/module/components/Stepper/Stepper.d.ts +3 -1
- package/lib/typescript/module/components/Switch/Switch.d.ts +3 -2
- package/lib/typescript/module/components/Tabs/Tabs.d.ts +3 -2
- package/lib/typescript/module/components/TagInput/TagInput.d.ts +4 -2
- package/lib/typescript/module/components/Text/Text.d.ts +4 -1
- package/lib/typescript/module/navigation/DiscardGuard.d.ts +3 -1
- package/package.json +7 -7
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Ref } from "react";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
4
|
import type { ScrollDirection } from "../../hooks/useScrollDirection";
|
|
@@ -251,8 +252,9 @@ export interface BottomNavigationProps {
|
|
|
251
252
|
/** Overrides the built-in English strings for the screen reader; each key you omit keeps its default. */
|
|
252
253
|
labels?: Partial<BottomNavigationText> | undefined;
|
|
253
254
|
testID?: string | undefined;
|
|
255
|
+
ref?: Ref<HostInstance> | undefined;
|
|
254
256
|
}
|
|
255
|
-
declare
|
|
257
|
+
declare function BottomNavigation({ ref, ...props }: BottomNavigationProps): React.JSX.Element;
|
|
256
258
|
export { BottomNavigation };
|
|
257
259
|
export default BottomNavigation;
|
|
258
260
|
//# sourceMappingURL=BottomNavigation.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
+
import type { Ref } from "react";
|
|
2
3
|
import type { HostInstance, StyleProp, ViewProps, ViewStyle } from "react-native";
|
|
3
4
|
import type { RadiusName, SpaceName, Theme } from "../../theme/types";
|
|
4
5
|
export type BackgroundToken = "bg" | "bg-subtle" | "bg-muted" | "surface" | "scrim" | "surface-inverse" | "primary-wash";
|
|
@@ -34,16 +35,18 @@ export interface BoxProps extends ViewProps {
|
|
|
34
35
|
direction?: ViewStyle["flexDirection"] | undefined;
|
|
35
36
|
wrap?: boolean | undefined;
|
|
36
37
|
style?: StyleProp<ViewStyle> | undefined;
|
|
38
|
+
/** The root view's ref: the host view the box renders. */
|
|
39
|
+
ref?: Ref<HostInstance> | undefined;
|
|
37
40
|
}
|
|
38
41
|
type LayoutProps = Omit<BoxProps, "style" | "children">;
|
|
39
42
|
export declare const resolveBoxStyle: (theme: Theme, p: LayoutProps) => ViewStyle;
|
|
40
|
-
declare
|
|
43
|
+
declare function Box(props: BoxProps): React.JSX.Element;
|
|
41
44
|
export type StackProps = Omit<BoxProps, "direction">;
|
|
42
45
|
/** Vertical flex container with token spacing between children (default gap `md`). */
|
|
43
|
-
declare
|
|
46
|
+
declare function Stack({ gap, ref, ...rest }: StackProps): React.JSX.Element;
|
|
44
47
|
export type RowProps = Omit<BoxProps, "direction">;
|
|
45
48
|
/** Horizontal flex container (default `align="center"`, gap `sm`). */
|
|
46
|
-
declare
|
|
49
|
+
declare function Row({ gap, align, ref, ...rest }: RowProps): React.JSX.Element;
|
|
47
50
|
export interface SpacerProps {
|
|
48
51
|
/** Fixed spacer of this spacing token. Omit for a flexible spacer (`flex: 1`). */
|
|
49
52
|
size?: SpaceName | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ReactElement, type Ref } from "react";
|
|
2
2
|
import type { GestureResponderEvent, HostInstance, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { PressAnimationPreset } from "../../hooks/usePressAnimation";
|
|
4
4
|
import { type ButtonText } from "../../text/phone/button.g";
|
|
@@ -91,8 +91,10 @@ export interface ButtonProps extends Omit<PressableProps, "style" | "children" |
|
|
|
91
91
|
testID?: string | undefined;
|
|
92
92
|
/** Overrides the text the Button draws for its own states; a key left out keeps its default. */
|
|
93
93
|
labels?: Partial<ButtonText> | undefined;
|
|
94
|
+
/** The host view, for imperative calls such as focus or measure. */
|
|
95
|
+
ref?: Ref<HostInstance> | undefined;
|
|
94
96
|
}
|
|
95
|
-
declare
|
|
97
|
+
declare function Button({ ref, ...props }: ButtonProps): ReactElement;
|
|
96
98
|
/**
|
|
97
99
|
* The colour a Button draws its label in, for the given variant, tone and disabled state: the same value
|
|
98
100
|
* the Button itself uses, so a renderer that draws a Button's label (Canvas) never keeps its own copy of the rules.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* days drawn as dots in a tone and read aloud with each day. DateRangePicker
|
|
4
4
|
* renders this same grid inside its sheet.
|
|
5
5
|
*/
|
|
6
|
-
import type {
|
|
6
|
+
import type { Ref } from "react";
|
|
7
7
|
import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
8
8
|
import { type CalendarText } from "../../text/phone/calendar.g";
|
|
9
9
|
import type { SelectionMode, Tone } from "../../types/vocabulary";
|
|
@@ -67,8 +67,10 @@ export interface CalendarProps {
|
|
|
67
67
|
/** Style override for the previous and next month buttons. */
|
|
68
68
|
navButtonStyle?: StyleProp<ViewStyle> | undefined;
|
|
69
69
|
testID?: string | undefined;
|
|
70
|
+
/** The root view of the calendar. */
|
|
71
|
+
ref?: Ref<HostInstance> | undefined;
|
|
70
72
|
}
|
|
71
|
-
declare
|
|
73
|
+
declare function Calendar({ ref, ...props }: CalendarProps): import("react").JSX.Element;
|
|
72
74
|
export { Calendar };
|
|
73
75
|
export default Calendar;
|
|
74
76
|
//# sourceMappingURL=Calendar.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { type Ref } from "react";
|
|
2
2
|
import type { GestureResponderEvent, HostInstance, ImageSourcePropType, PressableProps, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { PressAnimationPreset } from "../../hooks/usePressAnimation";
|
|
4
4
|
import { type CardText } from "../../text/phone/card.g";
|
|
@@ -100,6 +100,7 @@ export interface CardProps extends Omit<PressableProps, "style" | "children"> {
|
|
|
100
100
|
/** Style applied to the footer wrapper View. */
|
|
101
101
|
footerStyle?: StyleProp<ViewStyle> | undefined;
|
|
102
102
|
testID?: string | undefined;
|
|
103
|
+
ref?: Ref<HostInstance> | undefined;
|
|
103
104
|
}
|
|
104
105
|
declare const Card: React.NamedExoticComponent<CardProps & React.RefAttributes<HostInstance>> & {
|
|
105
106
|
Skeleton: React.FC<CardProps>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
+
import type { Ref } from "react";
|
|
2
3
|
import type { HostInstance, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
4
|
import type { Size, Tone } from "../../types/vocabulary";
|
|
4
5
|
import type { HapticType } from "../../utils/hapticUtils";
|
|
@@ -49,8 +50,10 @@ export interface CheckboxProps extends Omit<PressableProps, "style" | "children"
|
|
|
49
50
|
/** Style override for the label text. */
|
|
50
51
|
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
51
52
|
testID?: string | undefined;
|
|
53
|
+
/** The pressable row's ref: the host view the checkbox renders. */
|
|
54
|
+
ref?: Ref<HostInstance> | undefined;
|
|
52
55
|
}
|
|
53
|
-
declare
|
|
56
|
+
declare function Checkbox({ ref, ...props }: CheckboxProps): React.JSX.Element;
|
|
54
57
|
export { Checkbox };
|
|
55
58
|
export default Checkbox;
|
|
56
59
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
+
import type { Ref } from "react";
|
|
2
3
|
import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
4
|
import { type ChipText } from "../../text/phone/chip.g";
|
|
4
5
|
import type { FillVariant, SelectionMode, Size, Tone } from "../../types/vocabulary";
|
|
@@ -73,8 +74,9 @@ export interface ChipProps {
|
|
|
73
74
|
closeIconStyle?: StyleProp<TextStyle> | undefined;
|
|
74
75
|
labels?: Partial<ChipText> | undefined;
|
|
75
76
|
testID?: string | undefined;
|
|
77
|
+
ref?: Ref<HostInstance> | undefined;
|
|
76
78
|
}
|
|
77
|
-
declare const Chip: React.
|
|
79
|
+
declare const Chip: React.FC<ChipProps> & {
|
|
78
80
|
Skeleton: React.FC<ChipProps>;
|
|
79
81
|
};
|
|
80
82
|
export { Chip };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
+
import { type Ref } from "react";
|
|
2
3
|
import type { StyleProp, TextInputInstance, ViewStyle } from "react-native";
|
|
3
4
|
import { type ComposerText } from "../../text/phone/composer.g";
|
|
4
5
|
import type { HapticType } from "../../utils/hapticUtils";
|
|
@@ -68,6 +69,7 @@ export interface ComposerProps {
|
|
|
68
69
|
haptic?: HapticType | false | undefined;
|
|
69
70
|
style?: StyleProp<ViewStyle> | undefined;
|
|
70
71
|
testID?: string | undefined;
|
|
72
|
+
ref?: Ref<TextInputInstance> | undefined;
|
|
71
73
|
}
|
|
72
74
|
/**
|
|
73
75
|
* The message box of a chat: a text box that grows to `maxLines` and then
|
|
@@ -77,6 +79,6 @@ export interface ComposerProps {
|
|
|
77
79
|
* the keyboard and pads for the bottom safe area, so a chat screen is a
|
|
78
80
|
* `MessageList` above a `Composer` with no keyboard wiring of its own.
|
|
79
81
|
*/
|
|
80
|
-
export declare const Composer:
|
|
82
|
+
export declare const Composer: ({ onSend, value, onChangeText, placeholder, accessibilityLabel, hint, labels: labelOverrides, loading, onStop, stopLabel, disabled, canSend, ring, sendReveal, sendIcon, maxLength, maxLines, leading, trailing, above, below, keyboardAware, keyboardOffset, safeArea, autoFocus, haptic, style, testID, ref, }: ComposerProps) => React.JSX.Element;
|
|
81
83
|
export default Composer;
|
|
82
84
|
//# sourceMappingURL=Composer.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
+
import { type Ref } from "react";
|
|
2
3
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
3
4
|
import type { Complete } from "../../utils/complete";
|
|
4
5
|
export type ConfettiPreset = "pop" | "rain" | "fireworks";
|
|
@@ -64,6 +65,7 @@ export interface ConfettiProps {
|
|
|
64
65
|
onComplete?: (() => void) | undefined;
|
|
65
66
|
style?: StyleProp<ViewStyle> | undefined;
|
|
66
67
|
testID?: string | undefined;
|
|
68
|
+
ref?: Ref<ConfettiHandle> | undefined;
|
|
67
69
|
}
|
|
68
70
|
/**
|
|
69
71
|
* A piece carries its whole trajectory, so every preset is data rather than a
|
|
@@ -112,7 +114,7 @@ export interface Seed {
|
|
|
112
114
|
* trajectory a preset SEEDS is the only way to test it honestly.
|
|
113
115
|
*/
|
|
114
116
|
export declare const buildPieces: (count: number, preset: ConfettiPreset, seed: Seed) => Piece[];
|
|
115
|
-
declare
|
|
117
|
+
declare function Confetti({ ref, count, colors, preset, shapes, speed, physics, origin, duration, fadeOut, autoStart, recycle, size, onComplete, style, testID, }: ConfettiProps): React.JSX.Element;
|
|
116
118
|
export { Confetti };
|
|
117
119
|
export default Confetti;
|
|
118
120
|
//# sourceMappingURL=Confetti.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Ref } from "react";
|
|
2
2
|
import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import { type DateRangePickerText } from "../../text/phone/dateRangePicker.g";
|
|
4
4
|
import type { HapticType } from "../../utils";
|
|
@@ -59,8 +59,10 @@ export interface DateRangePickerProps extends PickerTriggerPassThroughProps {
|
|
|
59
59
|
footerButtonStyle?: StyleProp<ViewStyle> | undefined;
|
|
60
60
|
/** The handle / title row's drag gesture is `${testID}-pan`. */
|
|
61
61
|
testID?: string | undefined;
|
|
62
|
+
/** Ref to the calendar card view. */
|
|
63
|
+
ref?: Ref<HostInstance> | undefined;
|
|
62
64
|
}
|
|
63
|
-
declare
|
|
65
|
+
declare function DateRangePicker({ ref, ...props }: DateRangePickerProps): import("react").JSX.Element;
|
|
64
66
|
export { DateRangePicker };
|
|
65
67
|
export default DateRangePicker;
|
|
66
68
|
//# sourceMappingURL=DateRangePicker.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ReactElement, type Ref } from "react";
|
|
2
2
|
import type { TextInputInstance } from "react-native";
|
|
3
3
|
import { type DecimalInputText } from "../../text/phone/decimalInput.g";
|
|
4
4
|
import type { InputProps } from "../Input";
|
|
@@ -52,12 +52,14 @@ export interface DecimalInputProps extends Omit<InputProps, "value" | "onChange"
|
|
|
52
52
|
allowExponent?: boolean | undefined;
|
|
53
53
|
/** Copy for the field's own message. Each key overrides the built-in text. */
|
|
54
54
|
labels?: Partial<DecimalInputText> | undefined;
|
|
55
|
+
/** The underlying text input. */
|
|
56
|
+
ref?: Ref<TextInputInstance> | undefined;
|
|
55
57
|
}
|
|
56
58
|
/**
|
|
57
59
|
* A figure typed on a number keyboard, over Input. Every Input prop passes through; the value may be
|
|
58
60
|
* empty or half-typed, which NumberInput's stepper cannot be.
|
|
59
61
|
*/
|
|
60
|
-
declare
|
|
62
|
+
declare function DecimalInput(props: DecimalInputProps): ReactElement;
|
|
61
63
|
export { DecimalInput };
|
|
62
64
|
export default DecimalInput;
|
|
63
65
|
//# sourceMappingURL=DecimalInput.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Ref } from "react";
|
|
2
2
|
import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
export type DividerOrientation = "horizontal" | "vertical";
|
|
4
4
|
export type DividerSpacing = "none" | "sm" | "md" | "lg";
|
|
@@ -13,8 +13,9 @@ export interface DividerProps {
|
|
|
13
13
|
labelPosition?: DividerLabelPosition | undefined;
|
|
14
14
|
style?: StyleProp<ViewStyle> | undefined;
|
|
15
15
|
testID?: string | undefined;
|
|
16
|
+
ref?: Ref<HostInstance> | undefined;
|
|
16
17
|
}
|
|
17
|
-
declare
|
|
18
|
+
declare function Divider({ ref, ...props }: DividerProps): import("react").JSX.Element;
|
|
18
19
|
export { Divider };
|
|
19
20
|
export default Divider;
|
|
20
21
|
//# sourceMappingURL=Divider.d.ts.map
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* ref.current?.toggle();
|
|
19
19
|
*/
|
|
20
20
|
import type React from "react";
|
|
21
|
+
import { type Ref } from "react";
|
|
21
22
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
22
23
|
import { type DrawerText } from "../../text/phone/drawer.g";
|
|
23
24
|
import type { HapticType } from "../../utils";
|
|
@@ -47,13 +48,14 @@ export interface DrawerProps {
|
|
|
47
48
|
/** Screen-reader names for the drawer panel and its backdrop button. */
|
|
48
49
|
labels?: Partial<DrawerText> | undefined;
|
|
49
50
|
testID?: string | undefined;
|
|
51
|
+
ref?: Ref<DrawerRef> | undefined;
|
|
50
52
|
}
|
|
51
53
|
export interface DrawerRef {
|
|
52
54
|
open: () => void;
|
|
53
55
|
close: () => void;
|
|
54
56
|
toggle: () => void;
|
|
55
57
|
}
|
|
56
|
-
declare
|
|
58
|
+
declare function Drawer({ ref, ...props }: DrawerProps): React.JSX.Element | null;
|
|
57
59
|
export { Drawer };
|
|
58
60
|
export default Drawer;
|
|
59
61
|
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -32,8 +32,9 @@ export interface EmptyStateProps {
|
|
|
32
32
|
fill?: boolean | undefined;
|
|
33
33
|
style?: StyleProp<ViewStyle> | undefined;
|
|
34
34
|
testID?: string | undefined;
|
|
35
|
+
ref?: React.Ref<HostInstance> | undefined;
|
|
35
36
|
}
|
|
36
|
-
declare
|
|
37
|
+
declare function EmptyState({ ref, ...props }: EmptyStateProps): React.JSX.Element;
|
|
37
38
|
export { EmptyState };
|
|
38
39
|
export default EmptyState;
|
|
39
40
|
//# sourceMappingURL=EmptyState.d.ts.map
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
*/
|
|
23
23
|
import type { PickedFile, PickerSource } from "@webority/mobile-core/pickers";
|
|
24
24
|
import type React from "react";
|
|
25
|
+
import type { Ref } from "react";
|
|
25
26
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
26
27
|
import { type FilePickerText } from "../../text/phone/filePicker.g";
|
|
27
28
|
import type { HapticType } from "../../utils";
|
|
@@ -76,6 +77,8 @@ export interface FilePickerRef {
|
|
|
76
77
|
clear: () => void;
|
|
77
78
|
}
|
|
78
79
|
export interface FilePickerProps {
|
|
80
|
+
/** Imperative handle: open a source or clear the files. */
|
|
81
|
+
ref?: Ref<FilePickerRef> | undefined;
|
|
79
82
|
/** Controlled file list. */
|
|
80
83
|
files?: FilePickerFile[] | undefined;
|
|
81
84
|
/** Uncontrolled initial list (edit screens can seed remote files here too). */
|
|
@@ -125,7 +128,7 @@ export interface FilePickerProps {
|
|
|
125
128
|
}
|
|
126
129
|
export declare const formatFileSize: (bytes?: number) => string;
|
|
127
130
|
export declare const matchesAccept: (type: string | undefined, accept?: ReadonlyArray<string>) => boolean;
|
|
128
|
-
declare
|
|
131
|
+
declare function FilePicker({ ref, ...props }: FilePickerProps): React.JSX.Element;
|
|
129
132
|
export { FilePicker };
|
|
130
133
|
export default FilePicker;
|
|
131
134
|
//# sourceMappingURL=FilePicker.d.ts.map
|
|
@@ -13,7 +13,7 @@
|
|
|
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 { Ref } from "react";
|
|
17
17
|
import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
18
18
|
import type { HapticType } from "../../utils";
|
|
19
19
|
import type { ChipSize, ChipTone, ChipVariant } from "../Chip";
|
|
@@ -51,8 +51,10 @@ export interface FilterChipRowProps {
|
|
|
51
51
|
/** Style of the scrolling content, applied after the bleed padding and the chip gap. */
|
|
52
52
|
contentContainerStyle?: StyleProp<ViewStyle> | undefined;
|
|
53
53
|
testID?: string | undefined;
|
|
54
|
+
/** The row's root view: the host view the row renders. */
|
|
55
|
+
ref?: Ref<HostInstance> | undefined;
|
|
54
56
|
}
|
|
55
|
-
declare
|
|
57
|
+
declare function FilterChipRow({ ref, ...props }: FilterChipRowProps): import("react").JSX.Element;
|
|
56
58
|
export { FilterChipRow };
|
|
57
59
|
export default FilterChipRow;
|
|
58
60
|
//# sourceMappingURL=FilterChipRow.d.ts.map
|
|
@@ -43,8 +43,9 @@ export interface FloatingActionButtonProps {
|
|
|
43
43
|
style?: StyleProp<ViewStyle> | undefined;
|
|
44
44
|
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
45
45
|
testID?: string | undefined;
|
|
46
|
+
ref?: React.Ref<HostInstance> | undefined;
|
|
46
47
|
}
|
|
47
|
-
declare
|
|
48
|
+
declare function FloatingActionButton({ ref, ...props }: FloatingActionButtonProps): React.JSX.Element;
|
|
48
49
|
export interface FloatingActionButtonGroupAction {
|
|
49
50
|
key: string;
|
|
50
51
|
/** Drawn in the action's ink at the group's size; see `FloatingActionButtonProps.icon`. */
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { type Ref } from "react";
|
|
2
2
|
import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import { type FormFieldText } from "../../text/phone/formField.g";
|
|
4
4
|
export type FormFieldLayout = "stacked" | "inline";
|
|
5
5
|
export interface FormFieldProps {
|
|
6
|
+
ref?: Ref<HostInstance> | undefined;
|
|
6
7
|
/** A string, or a node for a symbol with a subscript. A node label needs an explicit `accessibilityLabel`. */
|
|
7
8
|
label?: React.ReactNode | undefined;
|
|
8
9
|
/** Drawn beside the label, right after it (a glossary info button, say); not part of the label's accessibility text. */
|
|
@@ -46,7 +47,7 @@ export interface FormFieldProps {
|
|
|
46
47
|
labels?: Partial<FormFieldText> | undefined;
|
|
47
48
|
testID?: string | undefined;
|
|
48
49
|
}
|
|
49
|
-
declare
|
|
50
|
+
declare function FormField({ ref, ...props }: FormFieldProps): React.ReactElement;
|
|
50
51
|
export { FormField };
|
|
51
52
|
export default FormField;
|
|
52
53
|
//# sourceMappingURL=FormField.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Ref } from "react";
|
|
2
2
|
import type { HostInstance, StyleProp, ViewProps, ViewStyle } from "react-native";
|
|
3
3
|
import type { Size, Tone } from "../../types/vocabulary";
|
|
4
4
|
import type { IconVariant } from "../AppIcon/AppIcon";
|
|
@@ -48,8 +48,10 @@ export interface IconBadgeProps {
|
|
|
48
48
|
pointerEvents?: ViewProps["pointerEvents"] | undefined;
|
|
49
49
|
style?: StyleProp<ViewStyle> | undefined;
|
|
50
50
|
testID?: string | undefined;
|
|
51
|
+
/** The root view's ref: the host view the badge renders. */
|
|
52
|
+
ref?: Ref<HostInstance> | undefined;
|
|
51
53
|
}
|
|
52
|
-
declare
|
|
54
|
+
declare function IconBadge(props: IconBadgeProps): import("react").JSX.Element;
|
|
53
55
|
export { IconBadge };
|
|
54
56
|
export default IconBadge;
|
|
55
57
|
//# sourceMappingURL=IconBadge.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReactElement, Ref } from "react";
|
|
2
2
|
import type { AccessibilityState, GestureResponderEvent, HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { FillVariant, Size, Tone } from "../../types/vocabulary";
|
|
4
4
|
import type { HapticType } from "../../utils";
|
|
@@ -46,8 +46,10 @@ export interface IconButtonProps {
|
|
|
46
46
|
haptic?: HapticType | false | undefined;
|
|
47
47
|
style?: StyleProp<ViewStyle> | undefined;
|
|
48
48
|
testID?: string | undefined;
|
|
49
|
+
/** The host view, for imperative calls such as focus or measure. */
|
|
50
|
+
ref?: Ref<HostInstance> | undefined;
|
|
49
51
|
}
|
|
50
|
-
declare
|
|
52
|
+
declare function IconButton({ ref, ...props }: IconButtonProps): ReactElement;
|
|
51
53
|
export { IconButton };
|
|
52
54
|
export default IconButton;
|
|
53
55
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
+
import { type Ref } from "react";
|
|
2
3
|
import type { BlurEvent, FocusEvent, StyleProp, TextInputInstance, TextInputProps, TextStyle, ViewStyle } from "react-native";
|
|
3
4
|
import { type InputText } from "../../text/phone/input.g";
|
|
4
5
|
import type { RadiusName } from "../../theme/types";
|
|
@@ -175,8 +176,10 @@ export interface InputProps extends Omit<TextInputProps, "style"> {
|
|
|
175
176
|
labels?: Partial<InputText> | undefined;
|
|
176
177
|
/** Derives `${testID}-field` (the field box) and `${testID}-field-press` (its box-press wrapper). */
|
|
177
178
|
testID?: string | undefined;
|
|
179
|
+
/** The underlying text input. */
|
|
180
|
+
ref?: Ref<TextInputInstance> | undefined;
|
|
178
181
|
}
|
|
179
|
-
declare
|
|
182
|
+
declare function Input(props: InputProps): React.ReactElement;
|
|
180
183
|
export { Input };
|
|
181
184
|
export default Input;
|
|
182
185
|
//# sourceMappingURL=Input.d.ts.map
|
package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Ref } from "react";
|
|
1
2
|
import type { KeyboardAwareScrollViewProps as ControllerScrollViewProps, KeyboardAwareScrollViewRef } from "react-native-keyboard-controller";
|
|
2
3
|
export type SafeAreaEdge = "top" | "bottom" | "left" | "right";
|
|
3
4
|
export type { KeyboardAwareScrollViewRef };
|
|
@@ -18,6 +19,8 @@ export interface KeyboardAwareScrollViewProps extends Omit<ControllerScrollViewP
|
|
|
18
19
|
* keyboard metrics.
|
|
19
20
|
*/
|
|
20
21
|
dismissOnTapOutside?: boolean | undefined;
|
|
22
|
+
/** The scroll view, with the controller's `assureFocusedInputVisible()` for a layout change that moved the focused field. */
|
|
23
|
+
ref?: Ref<KeyboardAwareScrollViewRef> | undefined;
|
|
21
24
|
}
|
|
22
25
|
/**
|
|
23
26
|
* react-native-keyboard-controller's `KeyboardAwareScrollView` with the
|
|
@@ -28,7 +31,7 @@ export interface KeyboardAwareScrollViewProps extends Omit<ControllerScrollViewP
|
|
|
28
31
|
* Needs the app's
|
|
29
32
|
* `KeyboardProvider` at the root.
|
|
30
33
|
*/
|
|
31
|
-
declare
|
|
34
|
+
declare function KeyboardAwareScrollView({ ref, ...props }: KeyboardAwareScrollViewProps): import("react").JSX.Element;
|
|
32
35
|
export { KeyboardAwareScrollView };
|
|
33
36
|
export default KeyboardAwareScrollView;
|
|
34
37
|
//# sourceMappingURL=KeyboardAwareScrollView.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Ref } from "react";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import type { GestureResponderEvent, HostInstance, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
4
|
import type { Size, Tone } from "../../types/vocabulary";
|
|
@@ -126,6 +127,7 @@ export interface ListItemProps {
|
|
|
126
127
|
leftSlotStyle?: StyleProp<ViewStyle> | undefined;
|
|
127
128
|
rightSlotStyle?: StyleProp<ViewStyle> | undefined;
|
|
128
129
|
testID?: string | undefined;
|
|
130
|
+
ref?: Ref<HostInstance> | undefined;
|
|
129
131
|
}
|
|
130
132
|
declare const ListItem: React.NamedExoticComponent<ListItemProps & React.RefAttributes<HostInstance>> & {
|
|
131
133
|
Skeleton: React.FC<ListItemProps>;
|
|
@@ -67,8 +67,10 @@ export interface ModalProps {
|
|
|
67
67
|
bare?: boolean | undefined;
|
|
68
68
|
/** Called with the top and bottom insets of the window the modal draws in, whenever they change. */
|
|
69
69
|
onInsetsChange?: ((insets: ModalInsets) => void) | undefined;
|
|
70
|
+
/** The root View of the modal's content, for measuring or focusing it. */
|
|
71
|
+
ref?: React.Ref<HostInstance> | undefined;
|
|
70
72
|
}
|
|
71
|
-
declare
|
|
73
|
+
declare function Modal({ ref, ...props }: ModalProps): React.ReactElement;
|
|
72
74
|
export { Modal };
|
|
73
75
|
export default Modal;
|
|
74
76
|
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { type Ref } from "react";
|
|
2
2
|
import type { StyleProp, TextInputProps, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import { type NumberInputText } from "../../text/phone/numberInput.g";
|
|
4
4
|
import type { Size } from "../../types/vocabulary";
|
|
@@ -50,8 +50,10 @@ export interface NumberInputProps {
|
|
|
50
50
|
textInputProps?: Omit<TextInputProps, "value" | "onChangeText" | "onBlur" | "keyboardType" | "editable"> | undefined;
|
|
51
51
|
/** Derives `${testID}-field` (the field box) and `${testID}-field-press` (its box-press wrapper). */
|
|
52
52
|
testID?: string | undefined;
|
|
53
|
+
/** The imperative handle: focus, blur and clear. */
|
|
54
|
+
ref?: Ref<NumberInputRef> | undefined;
|
|
53
55
|
}
|
|
54
|
-
declare
|
|
56
|
+
declare function NumberInput({ ref, ...props }: NumberInputProps): React.JSX.Element;
|
|
55
57
|
export { NumberInput };
|
|
56
58
|
export default NumberInput;
|
|
57
59
|
//# sourceMappingURL=NumberInput.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
1
|
+
import type { ReactNode, Ref } from "react";
|
|
2
2
|
import type { FocusEvent, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import { type OtpInputText } from "../../text/phone/otpInput.g";
|
|
4
4
|
import type { Size } from "../../types/vocabulary";
|
|
@@ -43,8 +43,9 @@ export interface OTPInputProps {
|
|
|
43
43
|
cellStyle?: StyleProp<ViewStyle> | undefined;
|
|
44
44
|
textStyle?: StyleProp<TextStyle> | undefined;
|
|
45
45
|
testID?: string | undefined;
|
|
46
|
+
ref?: Ref<OTPInputRef> | undefined;
|
|
46
47
|
}
|
|
47
|
-
declare
|
|
48
|
+
declare function OTPInput({ ref, ...props }: OTPInputProps): import("react").JSX.Element;
|
|
48
49
|
export { OTPInput };
|
|
49
50
|
export default OTPInput;
|
|
50
51
|
//# sourceMappingURL=OTPInput.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PhoneCountry, PhoneValidationKind } from "@webority/mobile-core";
|
|
2
|
-
import type { ReactNode } from "react";
|
|
2
|
+
import type { ReactNode, Ref } from "react";
|
|
3
3
|
import type { StyleProp, TextInputProps, TextStyle, ViewStyle } from "react-native";
|
|
4
4
|
import { type PhoneNumberInputText } from "../../text/phone/phoneNumberInput.g";
|
|
5
5
|
import type { Theme } from "../../theme/types";
|
|
@@ -69,6 +69,8 @@ export interface PhoneNumberInfo {
|
|
|
69
69
|
valid: boolean;
|
|
70
70
|
}
|
|
71
71
|
export interface PhoneNumberInputProps extends Pick<TextInputProps, "returnKeyType" | "submitBehavior" | "onSubmitEditing"> {
|
|
72
|
+
/** Gives the parent the imperative handle described by PhoneNumberInputRef. */
|
|
73
|
+
ref?: Ref<PhoneNumberInputRef> | undefined;
|
|
72
74
|
value?: PhoneNumberValue | undefined;
|
|
73
75
|
/**
|
|
74
76
|
* Controlled value as one E.164 string (`'+14155550123'`, `''` for empty),
|
|
@@ -212,6 +214,6 @@ export declare const parseE164: (e164: string, countries: ReadonlyArray<CallingC
|
|
|
212
214
|
* 9-digit Indian number is incomplete, a 10-digit one starting with 5 is a
|
|
213
215
|
* landline, and `validation="mobile"` tells the two apart.
|
|
214
216
|
*/
|
|
215
|
-
export declare const PhoneNumberInput:
|
|
217
|
+
export declare const PhoneNumberInput: ({ ref, ...props }: PhoneNumberInputProps) => import("react").JSX.Element;
|
|
216
218
|
export default PhoneNumberInput;
|
|
217
219
|
//# sourceMappingURL=PhoneNumberInput.d.ts.map
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
* - Render PickerTrigger themselves alongside a controlled picker.
|
|
13
13
|
*/
|
|
14
14
|
import type React from "react";
|
|
15
|
-
import
|
|
15
|
+
import { type Ref } from "react";
|
|
16
|
+
import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
16
17
|
import { type PickerTriggerText } from "../../text/phone/pickerTrigger.g";
|
|
17
18
|
import type { FieldVariant, Size } from "../../types/vocabulary";
|
|
18
19
|
export type PickerTriggerSize = Extract<Size, "sm" | "md" | "lg">;
|
|
@@ -59,15 +60,14 @@ export interface PickerTriggerProps {
|
|
|
59
60
|
accessibilityLabel?: string | undefined;
|
|
60
61
|
labels?: Partial<PickerTriggerText> | undefined;
|
|
61
62
|
testID?: string | undefined;
|
|
63
|
+
ref?: Ref<RNView> | undefined;
|
|
62
64
|
}
|
|
63
65
|
/** The PickerTrigger props a picker forwards to its built-in trigger field. */
|
|
64
66
|
export type PickerTriggerPassThroughProps = Pick<PickerTriggerProps, "label" | "help" | "placeholder" | "helperText" | "error" | "required" | "disabled" | "size" | "variant" | "clearable" | "onClear" | "leftIcon" | "trailing" | "triggerStyle" | "valueStyle" | "labelStyle" | "messageStyle" | "accessibilityLabel"> & {
|
|
65
67
|
/** Copy for the trigger field (placeholder, selection, noSelection, clear). Named apart from labels, which is the copy of the picker sheet. */
|
|
66
68
|
triggerLabels?: Partial<PickerTriggerText> | undefined;
|
|
67
69
|
};
|
|
68
|
-
declare
|
|
69
|
-
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
70
|
-
}) => React.ReactNode>>;
|
|
70
|
+
declare function PickerTrigger(props: PickerTriggerProps): React.ReactElement;
|
|
71
71
|
export { PickerTrigger };
|
|
72
72
|
export default PickerTrigger;
|
|
73
73
|
//# sourceMappingURL=PickerTrigger.d.ts.map
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* design wants one.
|
|
11
11
|
*/
|
|
12
12
|
import type React from "react";
|
|
13
|
+
import { type Ref } from "react";
|
|
13
14
|
import type { HostInstance, ImageSourcePropType, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
14
15
|
import { type ProfileCompletionText } from "../../text/phone/profileCompletion.g";
|
|
15
16
|
import type { Size, Tone } from "../../types/vocabulary";
|
|
@@ -80,8 +81,10 @@ export interface ProfileCompletionProps {
|
|
|
80
81
|
subtitleStyle?: StyleProp<TextStyle> | undefined;
|
|
81
82
|
descriptionStyle?: StyleProp<TextStyle> | undefined;
|
|
82
83
|
testID?: string | undefined;
|
|
84
|
+
/** The root View's instance, for imperative access. */
|
|
85
|
+
ref?: Ref<HostInstance> | undefined;
|
|
83
86
|
}
|
|
84
|
-
declare
|
|
87
|
+
declare function ProfileCompletion({ ref, ...props }: ProfileCompletionProps): React.ReactElement;
|
|
85
88
|
export { ProfileCompletion };
|
|
86
89
|
export default ProfileCompletion;
|
|
87
90
|
//# sourceMappingURL=ProfileCompletion.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReactNode, Ref } from "react";
|
|
2
2
|
import type { HostInstance, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import { type ProgressBarText } from "../../text/phone/progressBar.g";
|
|
4
4
|
import type { GradientDefinition } from "../../theme/types";
|
|
@@ -35,8 +35,9 @@ export interface ProgressBarProps {
|
|
|
35
35
|
accessibilityLabel?: string | undefined;
|
|
36
36
|
labels?: Partial<ProgressBarText> | undefined;
|
|
37
37
|
testID?: string | undefined;
|
|
38
|
+
ref?: Ref<HostInstance> | undefined;
|
|
38
39
|
}
|
|
39
|
-
declare
|
|
40
|
+
declare function ProgressBar({ ref, ...props }: ProgressBarProps): import("react").JSX.Element;
|
|
40
41
|
export { ProgressBar };
|
|
41
42
|
export default ProgressBar;
|
|
42
43
|
//# sourceMappingURL=ProgressBar.d.ts.map
|
|
@@ -45,8 +45,9 @@ export interface ProgressRingProps {
|
|
|
45
45
|
accessibilityLabel?: string | undefined;
|
|
46
46
|
style?: StyleProp<ViewStyle> | undefined;
|
|
47
47
|
testID?: string | undefined;
|
|
48
|
+
ref?: React.Ref<HostInstance> | undefined;
|
|
48
49
|
}
|
|
49
|
-
declare
|
|
50
|
+
declare function ProgressRing({ ref, ...props }: ProgressRingProps): React.JSX.Element;
|
|
50
51
|
export { ProgressRing };
|
|
51
52
|
export default ProgressRing;
|
|
52
53
|
//# sourceMappingURL=ProgressRing.d.ts.map
|