@webority/mobile-ui 0.128.0 → 0.130.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 +8340 -8095
- package/dist/canvas-kit/manifest.json +492 -333
- package/dist/canvas-kit/release.json +6 -6
- package/lib/commonjs/components/Accordion/Accordion.js +1 -1
- package/lib/commonjs/components/AppBar/AppBar.js +1 -1
- package/lib/commonjs/components/AppIcon/AppIcon.js +1 -1
- package/lib/commonjs/components/AppIcon/catalog.g.js +1 -1
- package/lib/commonjs/components/AppIcon/glyphs.g.js +1 -1
- package/lib/commonjs/components/AppIcon/variants.g.js +1 -1
- package/lib/commonjs/components/AppLockOverlay/AppLockOverlay.js +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +1 -1
- package/lib/commonjs/components/Banner/Banner.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/Card/Card.js +1 -1
- package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
- package/lib/commonjs/components/Composer/Composer.js +1 -1
- package/lib/commonjs/components/Confirm/confirm.js +1 -1
- package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
- package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
- package/lib/commonjs/components/Dialog/Dialog.js +1 -1
- package/lib/commonjs/components/Drawer/Drawer.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/FileViewer/FileViewer.js +1 -1
- package/lib/commonjs/components/FileViewer/FileViewerImage.js +1 -0
- package/lib/commonjs/components/FileViewer/fileSource.js +1 -0
- package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.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/ImageGallery/ImageGallery.js +1 -1
- package/lib/commonjs/components/InlineSelect/InlineSelect.js +1 -1
- package/lib/commonjs/components/Input/Input.js +1 -1
- package/lib/commonjs/components/ListItem/ListItem.js +1 -1
- package/lib/commonjs/components/Markdown/Markdown.js +1 -1
- package/lib/commonjs/components/Menu/Menu.js +1 -1
- package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
- package/lib/commonjs/components/Menu/useContextMenu.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/OTPInput/OTPResendRow.js +1 -0
- package/lib/commonjs/components/OTPInput/index.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/ProfilePicker/ProfilePicker.js +1 -1
- package/lib/commonjs/components/ProgressBar/ProgressBar.js +1 -1
- package/lib/commonjs/components/Radio/Radio.js +1 -1
- package/lib/commonjs/components/Rating/Rating.js +1 -1
- package/lib/commonjs/components/SearchBar/SearchBar.js +1 -1
- package/lib/commonjs/components/SectionHeader/SectionHeader.js +1 -1
- package/lib/commonjs/components/Select/Select.js +1 -1
- package/lib/commonjs/components/SliderField/SliderField.js +1 -1
- package/lib/commonjs/components/SquircleImage/SquircleImage.js +1 -1
- package/lib/commonjs/components/Text/Text.js +1 -1
- package/lib/commonjs/components/Text/textInk.js +1 -0
- package/lib/commonjs/components/TimePicker/TimePicker.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/index.js +1 -1
- package/lib/commonjs/components/not-drawn.json +1 -0
- package/lib/commonjs/form/HookFormField.js +1 -1
- package/lib/commonjs/hooks/index.js +1 -1
- package/lib/commonjs/hooks/useFieldErrorScroll.js +1 -0
- package/lib/commonjs/hooks/useResendCountdown.js +1 -0
- package/lib/commonjs/icons.js +1 -0
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/navigation/DiscardGuard.js +1 -1
- package/lib/commonjs/navigation/index.js +1 -1
- package/lib/commonjs/navigation/useNavigationTheme.js +1 -0
- package/lib/commonjs/sizes.js +1 -0
- package/lib/commonjs/squircle.js +1 -0
- package/lib/commonjs/utils/feedback.js +1 -1
- package/lib/commonjs/utils/hapticUtils.js +1 -1
- package/lib/module/components/Accordion/Accordion.js +1 -1
- package/lib/module/components/AppBar/AppBar.js +1 -1
- package/lib/module/components/AppIcon/AppIcon.js +1 -1
- package/lib/module/components/AppIcon/catalog.g.js +1 -1
- package/lib/module/components/AppIcon/glyphs.g.js +1 -1
- package/lib/module/components/AppIcon/variants.g.js +1 -1
- package/lib/module/components/AppLockOverlay/AppLockOverlay.js +1 -1
- package/lib/module/components/Avatar/Avatar.js +1 -1
- package/lib/module/components/Banner/Banner.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/Card/Card.js +1 -1
- package/lib/module/components/Checkbox/Checkbox.js +1 -1
- package/lib/module/components/Composer/Composer.js +1 -1
- package/lib/module/components/Confirm/confirm.js +1 -1
- package/lib/module/components/DatePicker/DatePicker.js +1 -1
- package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/module/components/Descriptions/Descriptions.js +1 -1
- package/lib/module/components/Dialog/Dialog.js +1 -1
- package/lib/module/components/Drawer/Drawer.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/FileViewer/FileViewer.js +1 -1
- package/lib/module/components/FileViewer/FileViewerImage.js +1 -0
- package/lib/module/components/FileViewer/fileSource.js +1 -0
- package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/module/components/ForceUpdateDialog/ForceUpdateDialog.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/ImageGallery/ImageGallery.js +1 -1
- package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
- package/lib/module/components/Input/Input.js +1 -1
- package/lib/module/components/ListItem/ListItem.js +1 -1
- package/lib/module/components/Markdown/Markdown.js +1 -1
- package/lib/module/components/Menu/Menu.js +1 -1
- package/lib/module/components/Menu/MenuSurface.js +1 -1
- package/lib/module/components/Menu/useContextMenu.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/OTPInput/OTPResendRow.js +1 -0
- package/lib/module/components/OTPInput/index.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/ProfilePicker/ProfilePicker.js +1 -1
- package/lib/module/components/ProgressBar/ProgressBar.js +1 -1
- package/lib/module/components/Radio/Radio.js +1 -1
- package/lib/module/components/Rating/Rating.js +1 -1
- package/lib/module/components/SearchBar/SearchBar.js +1 -1
- package/lib/module/components/SectionHeader/SectionHeader.js +1 -1
- package/lib/module/components/Select/Select.js +1 -1
- package/lib/module/components/SliderField/SliderField.js +1 -1
- package/lib/module/components/SquircleImage/SquircleImage.js +1 -1
- package/lib/module/components/Text/Text.js +1 -1
- package/lib/module/components/Text/textInk.js +1 -0
- package/lib/module/components/TimePicker/TimePicker.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/index.js +1 -1
- package/lib/module/components/not-drawn.json +1 -0
- package/lib/module/form/HookFormField.js +1 -1
- package/lib/module/hooks/index.js +1 -1
- package/lib/module/hooks/useFieldErrorScroll.js +1 -0
- package/lib/module/hooks/useResendCountdown.js +1 -0
- package/lib/module/icons.js +1 -0
- package/lib/module/index.js +1 -1
- package/lib/module/navigation/DiscardGuard.js +1 -1
- package/lib/module/navigation/index.js +1 -1
- package/lib/module/navigation/useNavigationTheme.js +1 -0
- package/lib/module/sizes.js +1 -0
- package/lib/module/squircle.js +1 -0
- package/lib/module/utils/feedback.js +1 -1
- package/lib/module/utils/hapticUtils.js +1 -1
- package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +2 -1
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +2 -1
- package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +6 -3
- package/lib/typescript/commonjs/components/AppIcon/catalog.g.d.ts +1 -1
- package/lib/typescript/commonjs/components/AppIcon/glyphs.g.d.ts +1 -0
- package/lib/typescript/commonjs/components/AppIcon/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/AppLockOverlay/AppLockOverlay.d.ts +3 -3
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +7 -0
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts +3 -2
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +4 -4
- package/lib/typescript/commonjs/components/Box/Box.d.ts +2 -2
- package/lib/typescript/commonjs/components/Button/Button.d.ts +3 -0
- package/lib/typescript/commonjs/components/Card/Card.d.ts +6 -7
- package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +2 -1
- package/lib/typescript/commonjs/components/Chip/Chip.d.ts +2 -1
- package/lib/typescript/commonjs/components/Composer/Composer.d.ts +4 -0
- package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +7 -17
- package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +7 -17
- package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +2 -2
- package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +1 -1
- package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +4 -4
- package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +8 -6
- package/lib/typescript/commonjs/components/FileViewer/FileViewer.d.ts +5 -33
- package/lib/typescript/commonjs/components/FileViewer/FileViewerImage.d.ts +5 -0
- package/lib/typescript/commonjs/components/FileViewer/fileSource.d.ts +24 -0
- package/lib/typescript/commonjs/components/FileViewer/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +8 -0
- package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +3 -3
- package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +4 -0
- package/lib/typescript/commonjs/components/IconBadge/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/Input/Input.d.ts +3 -2
- package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +7 -7
- package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +3 -1
- package/lib/typescript/commonjs/components/Menu/Menu.d.ts +3 -3
- package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +1 -1
- package/lib/typescript/commonjs/components/Modal/Modal.d.ts +14 -4
- package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +2 -0
- package/lib/typescript/commonjs/components/OTPInput/OTPResendRow.d.ts +25 -0
- package/lib/typescript/commonjs/components/OTPInput/index.d.ts +2 -0
- package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +5 -5
- package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +3 -2
- package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +7 -2
- package/lib/typescript/commonjs/components/PickerTrigger/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +2 -0
- package/lib/typescript/commonjs/components/Radio/Radio.d.ts +2 -0
- package/lib/typescript/commonjs/components/Rating/Rating.d.ts +2 -0
- package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +5 -3
- package/lib/typescript/commonjs/components/SectionHeader/SectionHeader.d.ts +2 -0
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +2 -0
- package/lib/typescript/commonjs/components/Select/Select.d.ts +4 -3
- package/lib/typescript/commonjs/components/Slider/Slider.d.ts +2 -0
- package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +2 -2
- package/lib/typescript/commonjs/components/SquircleImage/SquircleImage.d.ts +4 -3
- package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +2 -0
- package/lib/typescript/commonjs/components/Switch/Switch.d.ts +2 -0
- package/lib/typescript/commonjs/components/Text/Text.d.ts +2 -0
- package/lib/typescript/commonjs/components/Text/textInk.d.ts +14 -0
- package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +7 -18
- package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +4 -3
- package/lib/typescript/commonjs/components/Tour/Tour.d.ts +1 -1
- package/lib/typescript/commonjs/components/index.d.ts +5 -6
- package/lib/typescript/commonjs/form/HookFormField.d.ts +4 -4
- package/lib/typescript/commonjs/hooks/index.d.ts +4 -0
- package/lib/typescript/commonjs/hooks/useFieldErrorScroll.d.ts +28 -0
- package/lib/typescript/commonjs/hooks/useResendCountdown.d.ts +16 -0
- package/lib/typescript/commonjs/icons.d.ts +3 -0
- package/lib/typescript/commonjs/index.d.ts +9 -8
- package/lib/typescript/commonjs/navigation/index.d.ts +1 -0
- package/lib/typescript/commonjs/navigation/useNavigationTheme.d.ts +7 -0
- package/lib/typescript/commonjs/sizes.d.ts +2 -0
- package/lib/typescript/commonjs/squircle.d.ts +2 -0
- package/lib/typescript/commonjs/utils/feedback.d.ts +2 -2
- package/lib/typescript/commonjs/utils/hapticUtils.d.ts +2 -0
- package/lib/typescript/module/components/Accordion/Accordion.d.ts +2 -1
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +2 -1
- package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +6 -3
- package/lib/typescript/module/components/AppIcon/catalog.g.d.ts +1 -1
- package/lib/typescript/module/components/AppIcon/glyphs.g.d.ts +1 -0
- package/lib/typescript/module/components/AppIcon/index.d.ts +1 -1
- package/lib/typescript/module/components/AppLockOverlay/AppLockOverlay.d.ts +3 -3
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +7 -0
- package/lib/typescript/module/components/Banner/Banner.d.ts +3 -2
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +4 -4
- package/lib/typescript/module/components/Box/Box.d.ts +2 -2
- package/lib/typescript/module/components/Button/Button.d.ts +3 -0
- package/lib/typescript/module/components/Card/Card.d.ts +6 -7
- package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +2 -1
- package/lib/typescript/module/components/Chip/Chip.d.ts +2 -1
- package/lib/typescript/module/components/Composer/Composer.d.ts +4 -0
- package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +7 -17
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +7 -17
- package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +2 -2
- package/lib/typescript/module/components/Dialog/Dialog.d.ts +1 -1
- package/lib/typescript/module/components/Drawer/Drawer.d.ts +4 -4
- package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +8 -6
- package/lib/typescript/module/components/FileViewer/FileViewer.d.ts +5 -33
- package/lib/typescript/module/components/FileViewer/FileViewerImage.d.ts +5 -0
- package/lib/typescript/module/components/FileViewer/fileSource.d.ts +24 -0
- package/lib/typescript/module/components/FileViewer/index.d.ts +1 -1
- package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +8 -0
- package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +3 -3
- package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +4 -0
- package/lib/typescript/module/components/IconBadge/index.d.ts +1 -1
- package/lib/typescript/module/components/Input/Input.d.ts +3 -2
- package/lib/typescript/module/components/ListItem/ListItem.d.ts +7 -7
- package/lib/typescript/module/components/Markdown/Markdown.d.ts +3 -1
- package/lib/typescript/module/components/Menu/Menu.d.ts +3 -3
- package/lib/typescript/module/components/Menu/useContextMenu.d.ts +1 -1
- package/lib/typescript/module/components/Modal/Modal.d.ts +14 -4
- package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +2 -0
- package/lib/typescript/module/components/OTPInput/OTPResendRow.d.ts +25 -0
- package/lib/typescript/module/components/OTPInput/index.d.ts +2 -0
- package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +5 -5
- package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +3 -2
- package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +7 -2
- package/lib/typescript/module/components/PickerTrigger/index.d.ts +1 -1
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +2 -0
- package/lib/typescript/module/components/Radio/Radio.d.ts +2 -0
- package/lib/typescript/module/components/Rating/Rating.d.ts +2 -0
- package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +5 -3
- package/lib/typescript/module/components/SectionHeader/SectionHeader.d.ts +2 -0
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +2 -0
- package/lib/typescript/module/components/Select/Select.d.ts +4 -3
- package/lib/typescript/module/components/Slider/Slider.d.ts +2 -0
- package/lib/typescript/module/components/SliderField/SliderField.d.ts +2 -2
- package/lib/typescript/module/components/SquircleImage/SquircleImage.d.ts +4 -3
- package/lib/typescript/module/components/Stepper/Stepper.d.ts +2 -0
- package/lib/typescript/module/components/Switch/Switch.d.ts +2 -0
- package/lib/typescript/module/components/Text/Text.d.ts +2 -0
- package/lib/typescript/module/components/Text/textInk.d.ts +14 -0
- package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +7 -18
- package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +4 -3
- package/lib/typescript/module/components/Tour/Tour.d.ts +1 -1
- package/lib/typescript/module/components/index.d.ts +5 -6
- package/lib/typescript/module/form/HookFormField.d.ts +4 -4
- package/lib/typescript/module/hooks/index.d.ts +4 -0
- package/lib/typescript/module/hooks/useFieldErrorScroll.d.ts +28 -0
- package/lib/typescript/module/hooks/useResendCountdown.d.ts +16 -0
- package/lib/typescript/module/icons.d.ts +3 -0
- package/lib/typescript/module/index.d.ts +9 -8
- package/lib/typescript/module/navigation/index.d.ts +1 -0
- package/lib/typescript/module/navigation/useNavigationTheme.d.ts +7 -0
- package/lib/typescript/module/sizes.d.ts +2 -0
- package/lib/typescript/module/squircle.d.ts +2 -0
- package/lib/typescript/module/utils/feedback.d.ts +2 -2
- package/lib/typescript/module/utils/hapticUtils.d.ts +2 -0
- package/package.json +37 -7
- package/lib/commonjs/components/Notation/Notation.js +0 -1
- package/lib/commonjs/components/Notation/index.js +0 -1
- package/lib/module/components/Notation/Notation.js +0 -1
- package/lib/module/components/Notation/index.js +0 -1
- package/lib/typescript/commonjs/components/Notation/Notation.d.ts +0 -53
- package/lib/typescript/commonjs/components/Notation/index.d.ts +0 -3
- package/lib/typescript/module/components/Notation/Notation.d.ts +0 -53
- package/lib/typescript/module/components/Notation/index.d.ts +0 -3
|
@@ -2,26 +2,27 @@ import type React from "react";
|
|
|
2
2
|
import type { LayoutRectangle, View as RNView, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { HapticType } from "../../utils/hapticUtils.js";
|
|
4
4
|
import type { PlacementAlign, PlacementPreference } from "../../utils/placement.js";
|
|
5
|
+
import type { ModalInsets } from "../ModalSafeArea/ModalSafeArea.js";
|
|
5
6
|
export type ModalPresentation = "centered" | "bottom" | "fullScreen" | "anchored";
|
|
6
7
|
export interface ModalLabels {
|
|
7
8
|
close: string;
|
|
8
9
|
}
|
|
9
10
|
export declare const DEFAULT_MODAL_LABELS: Readonly<ModalLabels>;
|
|
10
11
|
/**
|
|
11
|
-
* Grace period between `
|
|
12
|
+
* Grace period between `open` flipping false and the native modal being
|
|
12
13
|
* safely gone. Unmounting the tree (navigation reset, auth flip) before this
|
|
13
14
|
* elapses races Android's ReactModalHostView dismiss and NPE-crashes.
|
|
14
15
|
*/
|
|
15
16
|
export declare const MODAL_DISMISS_GRACE_MS = 300;
|
|
16
17
|
export interface ModalProps {
|
|
17
|
-
|
|
18
|
+
open: boolean;
|
|
18
19
|
onClose: () => void;
|
|
19
20
|
presentation?: ModalPresentation;
|
|
20
21
|
backdropOpacity?: number;
|
|
21
22
|
backdropPressClose?: boolean;
|
|
22
23
|
animationDuration?: number;
|
|
23
24
|
/**
|
|
24
|
-
* Whether a modal that is
|
|
25
|
+
* Whether a modal that is open as it mounts plays its enter animation.
|
|
25
26
|
* When false it is drawn at rest at once, scrim included; later opens and
|
|
26
27
|
* every close animate as usual. Default true.
|
|
27
28
|
*/
|
|
@@ -39,7 +40,7 @@ export interface ModalProps {
|
|
|
39
40
|
*/
|
|
40
41
|
restoreFocusRef?: React.RefObject<RNView | null>;
|
|
41
42
|
/**
|
|
42
|
-
* Fired once after the modal closes, MODAL_DISMISS_GRACE_MS after `
|
|
43
|
+
* Fired once after the modal closes, MODAL_DISMISS_GRACE_MS after `open`
|
|
43
44
|
* flips false — the earliest point it is safe to unmount the surrounding
|
|
44
45
|
* tree (navigate away, flip auth state) without racing the native dismiss
|
|
45
46
|
* on Android. Sequence follow-up work (or a follow-up modal) from here.
|
|
@@ -59,6 +60,15 @@ export interface ModalProps {
|
|
|
59
60
|
/** Horizontal alignment of the anchored presentation against the anchor. Default "center". */
|
|
60
61
|
align?: PlacementAlign;
|
|
61
62
|
testID?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Draws no surface, radius, shadow, padding or width around children: the children are the card.
|
|
65
|
+
* The dim layer, the dismiss tap, the safe area and the toast host stay with Modal. For "bottom" the
|
|
66
|
+
* children sit on the bottom edge at full width; for "fullScreen" they fill the layer and
|
|
67
|
+
* must place themselves (an anchored surface). Not valid with "anchored" (throws). Default false.
|
|
68
|
+
*/
|
|
69
|
+
bare?: boolean;
|
|
70
|
+
/** Called with the top and bottom insets of the window the modal draws in, whenever they change. */
|
|
71
|
+
onInsetsChange?: (insets: ModalInsets) => void;
|
|
62
72
|
}
|
|
63
73
|
declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<RNView>>;
|
|
64
74
|
export { Modal };
|
|
@@ -46,7 +46,9 @@ export interface NumberInputProps {
|
|
|
46
46
|
haptic?: HapticType | false;
|
|
47
47
|
labels?: Partial<NumberInputLabels>;
|
|
48
48
|
accessibilityLabel?: string;
|
|
49
|
+
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
49
50
|
style?: StyleProp<ViewStyle>;
|
|
51
|
+
/** Alias of style, applied before it on the same node. Use style. */
|
|
50
52
|
containerStyle?: StyleProp<ViewStyle>;
|
|
51
53
|
inputStyle?: StyleProp<TextStyle>;
|
|
52
54
|
buttonStyle?: StyleProp<ViewStyle>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
export interface OTPResendRowLabels {
|
|
3
|
+
expiresIn: (time: string) => string;
|
|
4
|
+
expired: string;
|
|
5
|
+
resendIn: (time: string) => string;
|
|
6
|
+
resendWaitSpoken: (seconds: number) => string;
|
|
7
|
+
resend: string;
|
|
8
|
+
sendNew: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const DEFAULT_OTP_RESEND_ROW_LABELS: Readonly<OTPResendRowLabels>;
|
|
11
|
+
export interface OTPResendRowProps {
|
|
12
|
+
resendSecondsLeft: number;
|
|
13
|
+
expirySecondsLeft?: number | null;
|
|
14
|
+
onResend: () => void;
|
|
15
|
+
resending?: boolean;
|
|
16
|
+
labels?: Partial<OTPResendRowLabels>;
|
|
17
|
+
style?: StyleProp<ViewStyle>;
|
|
18
|
+
testID?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const OTPResendRow: {
|
|
21
|
+
({ resendSecondsLeft, expirySecondsLeft, onResend, resending, labels: labelsProp, style, testID, }: OTPResendRowProps): import("react").JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
export { OTPResendRow };
|
|
25
|
+
//# sourceMappingURL=OTPResendRow.d.ts.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export type { OTPInputLabels, OTPInputProps, OTPInputRef, OTPInputSize } from "./OTPInput.js";
|
|
2
2
|
export { DEFAULT_OTP_INPUT_LABELS, default, OTPInput } from "./OTPInput.js";
|
|
3
|
+
export type { OTPResendRowLabels, OTPResendRowProps } from "./OTPResendRow.js";
|
|
4
|
+
export { DEFAULT_OTP_RESEND_ROW_LABELS, OTPResendRow } from "./OTPResendRow.js";
|
|
3
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -50,17 +50,17 @@ export interface OptionSheetLabels {
|
|
|
50
50
|
}
|
|
51
51
|
export declare const DEFAULT_OPTION_SHEET_LABELS: Readonly<OptionSheetLabels>;
|
|
52
52
|
export interface OptionSheetProps<T = SelectOption> {
|
|
53
|
-
|
|
54
|
-
/** Requests close (backdrop tap, hardware back, multi Done). Caller flips `
|
|
53
|
+
open: boolean;
|
|
54
|
+
/** Requests close (backdrop tap, hardware back, multi Done). Caller flips `open`. */
|
|
55
55
|
onClose: () => void;
|
|
56
56
|
/**
|
|
57
57
|
* Called once, after the close has finished: the Modal's exit is over and it
|
|
58
|
-
* is about to unmount (`MODAL_DISMISS_GRACE_MS` after `
|
|
58
|
+
* is about to unmount (`MODAL_DISMISS_GRACE_MS` after `open` turns false).
|
|
59
59
|
* Present anything native (an image picker, the share sheet) from here.
|
|
60
60
|
*/
|
|
61
61
|
onAfterClose?: () => void;
|
|
62
|
-
/** Called with `true` when `
|
|
63
|
-
|
|
62
|
+
/** Called with `true` when `open` turns on and `false` when it turns off, not again while it stays the same. */
|
|
63
|
+
onOpenChange?: (open: boolean) => void;
|
|
64
64
|
/** Sheet heading. Also the modal's a11y label fallback. */
|
|
65
65
|
title?: string;
|
|
66
66
|
options: ReadonlyArray<T>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PhoneCountry, PhoneValidationKind } from "@webority/mobile-core";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
import type { StyleProp, TextInputProps, TextStyle, ViewStyle } from "react-native";
|
|
4
|
+
import type { Theme } from "../../theme/types.js";
|
|
4
5
|
import type { FieldVariant, Size } from "../../types/vocabulary.js";
|
|
5
6
|
import type { HapticType } from "../../utils/index.js";
|
|
6
7
|
/** How the label sits: static above the box, or floating up from inside it. */
|
|
@@ -188,8 +189,8 @@ export interface PhoneNumberInputProps extends Pick<TextInputProps, "returnKeyTy
|
|
|
188
189
|
disabled?: boolean;
|
|
189
190
|
size?: Extract<Size, "sm" | "md" | "lg">;
|
|
190
191
|
variant?: FieldVariant;
|
|
191
|
-
/**
|
|
192
|
-
|
|
192
|
+
/** Corner radius token from the theme (none, sm, md, lg, xl, pill). Wins over the field size's radius. */
|
|
193
|
+
radius?: keyof Theme["radius"];
|
|
193
194
|
/** Strings the field draws itself: the placeholder, the picker's headings and search box, the invalid-number texts, the country button's name. */
|
|
194
195
|
labels?: Partial<PhoneNumberInputLabels>;
|
|
195
196
|
haptic?: HapticType | false;
|
|
@@ -50,8 +50,8 @@ export interface PickerTriggerProps {
|
|
|
50
50
|
clearable?: boolean;
|
|
51
51
|
/** Called when the clear affordance is pressed. */
|
|
52
52
|
onClear?: () => void;
|
|
53
|
-
/**
|
|
54
|
-
|
|
53
|
+
/** Left icon slot (e.g. calendar / clock). */
|
|
54
|
+
leftIcon?: React.ReactNode;
|
|
55
55
|
/** Trailing slot — defaults to a chevron when unset. Pass `null` to suppress. */
|
|
56
56
|
trailing?: React.ReactNode;
|
|
57
57
|
disabled?: boolean;
|
|
@@ -66,6 +66,11 @@ export interface PickerTriggerProps {
|
|
|
66
66
|
labels?: Partial<PickerTriggerLabels>;
|
|
67
67
|
testID?: string;
|
|
68
68
|
}
|
|
69
|
+
/** The PickerTrigger props a picker forwards to its built-in trigger field. */
|
|
70
|
+
export type PickerTriggerPassThroughProps = Pick<PickerTriggerProps, "label" | "help" | "placeholder" | "helperText" | "error" | "required" | "disabled" | "size" | "variant" | "clearable" | "onClear" | "leftIcon" | "trailing" | "triggerStyle" | "valueStyle" | "labelStyle" | "messageStyle" | "accessibilityLabel"> & {
|
|
71
|
+
/** Copy for the trigger field (placeholder, selection, noSelection, clear). Named apart from labels, which is the copy of the picker sheet. */
|
|
72
|
+
triggerLabels?: Partial<PickerTriggerLabels>;
|
|
73
|
+
};
|
|
69
74
|
declare const PickerTrigger: React.ForwardRefExoticComponent<PickerTriggerProps & React.RefAttributes<RNView>>;
|
|
70
75
|
export { PickerTrigger };
|
|
71
76
|
export default PickerTrigger;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { PickerTriggerLabels, PickerTriggerProps, PickerTriggerSize, PickerTriggerVariant } from "./PickerTrigger.js";
|
|
1
|
+
export type { PickerTriggerLabels, PickerTriggerPassThroughProps, PickerTriggerProps, PickerTriggerSize, PickerTriggerVariant, } from "./PickerTrigger.js";
|
|
2
2
|
export { DEFAULT_PICKER_TRIGGER_LABELS, default, PickerTrigger } from "./PickerTrigger.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -32,7 +32,9 @@ export interface ProgressBarProps {
|
|
|
32
32
|
/** Render a multi-colour breakdown bar (usage split) instead of a single progress fill. */
|
|
33
33
|
segments?: ProgressBarSegment[];
|
|
34
34
|
animated?: boolean;
|
|
35
|
+
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
35
36
|
style?: StyleProp<ViewStyle>;
|
|
37
|
+
/** Alias of style, applied before it on the same node. Use style. */
|
|
36
38
|
containerStyle?: StyleProp<ViewStyle>;
|
|
37
39
|
barStyle?: StyleProp<ViewStyle>;
|
|
38
40
|
accessibilityLabel?: string;
|
|
@@ -37,7 +37,9 @@ export interface RadioProps extends Omit<PressableProps, "style" | "children" |
|
|
|
37
37
|
tone?: RadioTone;
|
|
38
38
|
accessibilityLabel?: string;
|
|
39
39
|
haptic?: HapticType | false;
|
|
40
|
+
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
40
41
|
style?: StyleProp<ViewStyle>;
|
|
42
|
+
/** Alias of style, applied before it on the same node. Use style. */
|
|
41
43
|
containerStyle?: StyleProp<ViewStyle>;
|
|
42
44
|
circleStyle?: StyleProp<ViewStyle>;
|
|
43
45
|
dotStyle?: StyleProp<ViewStyle>;
|
|
@@ -30,7 +30,9 @@ export interface RatingProps {
|
|
|
30
30
|
haptic?: HapticType | false;
|
|
31
31
|
labels?: Partial<RatingLabels>;
|
|
32
32
|
accessibilityLabel?: string;
|
|
33
|
+
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
33
34
|
style?: StyleProp<ViewStyle>;
|
|
35
|
+
/** Alias of style, applied before it on the same node. Use style. */
|
|
34
36
|
containerStyle?: StyleProp<ViewStyle>;
|
|
35
37
|
starContainerStyle?: StyleProp<ViewStyle>;
|
|
36
38
|
testID?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { StyleProp, TextInputProps, TextStyle, ViewStyle } from "react-native";
|
|
2
2
|
import { TextInput } from "react-native";
|
|
3
|
+
import type { RadiusName } from "../../theme/types.js";
|
|
3
4
|
import type { FieldVariant, Size } from "../../types/vocabulary.js";
|
|
4
5
|
import type { HapticType } from "../../utils/hapticUtils.js";
|
|
5
6
|
import type { SlotIcon } from "../AppIcon/slotIcon.js";
|
|
@@ -45,10 +46,11 @@ export interface SearchBarProps extends Omit<TextInputProps, "style" | "value" |
|
|
|
45
46
|
size?: Extract<Size, "sm" | "md" | "lg">;
|
|
46
47
|
variant?: FieldVariant;
|
|
47
48
|
/**
|
|
48
|
-
* Corner radius. Default: the theme's
|
|
49
|
-
* (the pill). Ignored on `underline`,
|
|
49
|
+
* Corner radius from the theme's radius scale. Default: the theme's
|
|
50
|
+
* `components["search-bar"].<size>.radius` (the pill). Ignored on `underline`,
|
|
51
|
+
* which is always square.
|
|
50
52
|
*/
|
|
51
|
-
|
|
53
|
+
radius?: RadiusName;
|
|
52
54
|
/**
|
|
53
55
|
* Chips under the field that narrow what is searched, for example All, People, Files.
|
|
54
56
|
* Put the broadest scope first: it is the one selected until the person picks another.
|
|
@@ -16,6 +16,8 @@ export interface SectionHeaderProps {
|
|
|
16
16
|
variant?: SectionHeaderVariant;
|
|
17
17
|
/** Drop the room above, for the first heading of a block. */
|
|
18
18
|
flush?: boolean;
|
|
19
|
+
/** Drop the room below, for a heading that sits tight on the content under it. flush drops the room above. */
|
|
20
|
+
flushBottom?: boolean;
|
|
19
21
|
/** Draws the required marker after the heading and announces the heading as required. */
|
|
20
22
|
required?: boolean;
|
|
21
23
|
/** A link at the end of the heading row, such as See all. */
|
|
@@ -85,7 +85,9 @@ export interface SegmentedControlProps {
|
|
|
85
85
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
86
86
|
haptic?: HapticType | false;
|
|
87
87
|
accessibilityLabel?: string;
|
|
88
|
+
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
88
89
|
style?: StyleProp<ViewStyle>;
|
|
90
|
+
/** Alias of style, applied before it on the same node. Use style. */
|
|
89
91
|
containerStyle?: StyleProp<ViewStyle>;
|
|
90
92
|
segmentStyle?: StyleProp<ViewStyle>;
|
|
91
93
|
selectedIndicatorStyle?: StyleProp<ViewStyle>;
|
|
@@ -13,6 +13,7 @@ import type { HapticType } from "../../utils/index.js";
|
|
|
13
13
|
import type { SlotIcon } from "../AppIcon/slotIcon.js";
|
|
14
14
|
import type { SelectOption, SelectValue } from "../OptionSheet/OptionSheet.js";
|
|
15
15
|
export type SelectSize = Extract<Size, "sm" | "md" | "lg">;
|
|
16
|
+
type SelectRadius = "sm" | "md" | "lg" | "xl" | "pill";
|
|
16
17
|
export type { SelectOption, SelectValue };
|
|
17
18
|
export interface SelectLabels {
|
|
18
19
|
placeholder: string;
|
|
@@ -47,7 +48,7 @@ interface BaseSelectProps<T = SelectOption> {
|
|
|
47
48
|
getOptionIcon?: (option: T) => React.ReactNode;
|
|
48
49
|
placeholder?: string;
|
|
49
50
|
/** Called with `true` when the option sheet opens and `false` when it closes. */
|
|
50
|
-
|
|
51
|
+
onOpenChange?: (open: boolean) => void;
|
|
51
52
|
searchable?: boolean;
|
|
52
53
|
/**
|
|
53
54
|
* Haptic feedback for interactions. Pass false to disable; pass a HapticType
|
|
@@ -127,8 +128,8 @@ interface BaseSelectProps<T = SelectOption> {
|
|
|
127
128
|
chevronColor?: string;
|
|
128
129
|
/** Size of the built-in chevron in pixels. Ignored when `rightIcon` is set. Default: the field size's `icon`. */
|
|
129
130
|
chevronSize?: number;
|
|
130
|
-
/**
|
|
131
|
-
|
|
131
|
+
/** A theme radius token name for the trigger's corner. Wins over the field size's radius. */
|
|
132
|
+
radius?: SelectRadius;
|
|
132
133
|
accessibilityLabel?: string;
|
|
133
134
|
/** Style for the field label text above the trigger; the same prop as Input's and NumberInput's. */
|
|
134
135
|
labelStyle?: StyleProp<TextStyle>;
|
|
@@ -56,7 +56,9 @@ interface SliderCommonProps {
|
|
|
56
56
|
* catching. Pass false to disable; pass a HapticType to override.
|
|
57
57
|
*/
|
|
58
58
|
haptic?: HapticType | false;
|
|
59
|
+
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
59
60
|
style?: StyleProp<ViewStyle>;
|
|
61
|
+
/** Alias of style, applied before it on the same node. Use style. */
|
|
60
62
|
containerStyle?: StyleProp<ViewStyle>;
|
|
61
63
|
trackStyle?: StyleProp<ViewStyle>;
|
|
62
64
|
fillStyle?: StyleProp<ViewStyle>;
|
|
@@ -49,9 +49,9 @@ interface SliderFieldCommonProps {
|
|
|
49
49
|
/** Minus and plus buttons at the ends of the track, stepping by `step`. Single mode only. Default `false`. */
|
|
50
50
|
showStepper?: boolean;
|
|
51
51
|
/** Icon at the start of the row, outside the bounds. */
|
|
52
|
-
|
|
52
|
+
leftIcon?: SlotIcon;
|
|
53
53
|
/** Icon at the end of the row, outside the bounds. */
|
|
54
|
-
|
|
54
|
+
rightIcon?: SlotIcon;
|
|
55
55
|
/** Replaces the formatted `min` at the start of the track. */
|
|
56
56
|
startLabel?: string;
|
|
57
57
|
/** Replaces the formatted `max` at the end of the track. */
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type ImageProps } from "expo-image";
|
|
2
|
+
import { type RadiusName } from "../../theme/index.js";
|
|
2
3
|
export interface SquircleImageProps extends ImageProps {
|
|
3
|
-
/** Corner radius of the image,
|
|
4
|
-
|
|
4
|
+
/** Corner radius token of the image: none, sm, md, lg, xl or pill. */
|
|
5
|
+
radius: RadiusName;
|
|
5
6
|
/** Paints the corners outside the smooth curve on Android. Default: the theme's base surface. */
|
|
6
7
|
cornerColor?: string;
|
|
7
8
|
}
|
|
@@ -13,7 +14,7 @@ export interface SquircleImageProps extends ImageProps {
|
|
|
13
14
|
* through.
|
|
14
15
|
*/
|
|
15
16
|
declare const SquircleImage: {
|
|
16
|
-
({
|
|
17
|
+
({ radius, cornerColor, style, onLayout, ...imageProps }: SquircleImageProps): import("react").JSX.Element;
|
|
17
18
|
displayName: string;
|
|
18
19
|
};
|
|
19
20
|
export { SquircleImage };
|
|
@@ -78,7 +78,9 @@ export interface StepperProps {
|
|
|
78
78
|
*/
|
|
79
79
|
loading?: boolean;
|
|
80
80
|
accessibilityLabel?: string;
|
|
81
|
+
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
81
82
|
style?: StyleProp<ViewStyle>;
|
|
83
|
+
/** Alias of style, applied before it on the same node. Use style. */
|
|
82
84
|
containerStyle?: StyleProp<ViewStyle>;
|
|
83
85
|
circleStyle?: StyleProp<ViewStyle>;
|
|
84
86
|
labelStyle?: StyleProp<TextStyle>;
|
|
@@ -42,7 +42,9 @@ export interface SwitchProps extends Omit<PressableProps, "style" | "children" |
|
|
|
42
42
|
* Use for playful/brand-flavored switches; default off for system feel.
|
|
43
43
|
*/
|
|
44
44
|
bounce?: boolean;
|
|
45
|
+
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
45
46
|
style?: StyleProp<ViewStyle>;
|
|
47
|
+
/** Alias of style, applied before it on the same node. Use style. With no label or text, it wraps the Pressable instead. */
|
|
46
48
|
containerStyle?: StyleProp<ViewStyle>;
|
|
47
49
|
trackStyle?: StyleProp<ViewStyle>;
|
|
48
50
|
thumbStyle?: StyleProp<ViewStyle>;
|
|
@@ -19,6 +19,8 @@ export interface TextProps extends Omit<RNTextProps, "style"> {
|
|
|
19
19
|
align?: TextStyle["textAlign"];
|
|
20
20
|
italic?: boolean;
|
|
21
21
|
underline?: boolean;
|
|
22
|
+
/** Draws a line through the text, for a done or reversed item. It joins with underline. */
|
|
23
|
+
strikethrough?: boolean;
|
|
22
24
|
children?: React.ReactNode;
|
|
23
25
|
style?: StyleProp<TextStyle>;
|
|
24
26
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ColorValue, StyleProp, TextStyle } from "react-native";
|
|
2
|
+
/** The size and ink of the text line a child sits in, which an inline View cannot inherit. */
|
|
3
|
+
export interface TextInk {
|
|
4
|
+
fontSize: number;
|
|
5
|
+
color: ColorValue;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The size and colour of the text line around a child, published by Text and the field label lines,
|
|
9
|
+
* so inline elements match their line.
|
|
10
|
+
*/
|
|
11
|
+
export declare const TextInkContext: import("react").Context<TextInk | null>;
|
|
12
|
+
/** The ink for a line's provider: the line's own `style` size and colour win over its defaults. */
|
|
13
|
+
export declare const useTextInk: (style: StyleProp<TextStyle>, fontSize: number, color: ColorValue) => TextInk;
|
|
14
|
+
//# sourceMappingURL=textInk.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { HapticType } from "../../utils/hapticUtils.js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { PickerTriggerPassThroughProps } from "../PickerTrigger/PickerTrigger.js";
|
|
5
5
|
export type TimeFormat = "12h" | "24h";
|
|
6
6
|
export type Period = "AM" | "PM";
|
|
7
7
|
export type MinuteStep = 1 | 5 | 15 | 30;
|
|
@@ -26,17 +26,17 @@ export declare const DEFAULT_TIME_PICKER_LABELS: Readonly<TimePickerLabels>;
|
|
|
26
26
|
/**
|
|
27
27
|
* TimePicker supports two modes:
|
|
28
28
|
*
|
|
29
|
-
* 1. Controlled-modal mode
|
|
29
|
+
* 1. Controlled-modal mode: pass `open`, `onChange`, `onClose`. The
|
|
30
30
|
* component renders only the modal sheet and the caller owns open/close
|
|
31
31
|
* state plus its own trigger UI.
|
|
32
|
-
* 2. Trigger mode
|
|
32
|
+
* 2. Trigger mode: omit `open`. The component renders a PickerTrigger
|
|
33
33
|
* field (label / value / placeholder / chevron / clear / helper / error)
|
|
34
34
|
* and manages its own modal open state. `onChange` is still called on
|
|
35
35
|
* confirm.
|
|
36
36
|
*/
|
|
37
|
-
export interface TimePickerProps {
|
|
37
|
+
export interface TimePickerProps extends PickerTriggerPassThroughProps {
|
|
38
38
|
/** Controlled-modal visibility. When omitted, the component enters trigger mode. */
|
|
39
|
-
|
|
39
|
+
open?: boolean;
|
|
40
40
|
value?: TimeValue | null;
|
|
41
41
|
onChange?: (time: TimeValue) => void;
|
|
42
42
|
onClose?: () => void;
|
|
@@ -45,27 +45,16 @@ export interface TimePickerProps {
|
|
|
45
45
|
/** Chrome copy, merged over DEFAULT_TIME_PICKER_LABELS. */
|
|
46
46
|
labels?: Partial<TimePickerLabels>;
|
|
47
47
|
testID?: string;
|
|
48
|
+
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
48
49
|
style?: StyleProp<ViewStyle>;
|
|
49
|
-
/**
|
|
50
|
+
/** Applied to the bottom sheet, before style on the same node. */
|
|
50
51
|
containerStyle?: StyleProp<ViewStyle>;
|
|
51
52
|
/** Style override for the title text container. */
|
|
52
53
|
headerLabelStyle?: StyleProp<ViewStyle>;
|
|
53
54
|
/** Style override for the cancel/confirm footer buttons. */
|
|
54
55
|
footerButtonStyle?: StyleProp<ViewStyle>;
|
|
55
|
-
label?: string;
|
|
56
|
-
placeholder?: string;
|
|
57
|
-
helperText?: string;
|
|
58
|
-
error?: string | boolean;
|
|
59
|
-
required?: boolean;
|
|
60
|
-
disabled?: boolean;
|
|
61
|
-
size?: FieldBaseSize;
|
|
62
|
-
variant?: FieldBaseVariant;
|
|
63
|
-
clearable?: boolean;
|
|
64
|
-
onClear?: () => void;
|
|
65
56
|
/** Override the trigger field's value formatting. Defaults to `format`-aware h:mm/HH:mm. */
|
|
66
57
|
formatValue?: (time: TimeValue) => string;
|
|
67
|
-
/** Style passed through to the PickerTrigger field row. */
|
|
68
|
-
triggerStyle?: StyleProp<ViewStyle>;
|
|
69
58
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
70
59
|
haptic?: HapticType | false;
|
|
71
60
|
}
|
|
@@ -35,14 +35,15 @@ export interface TooltipProps {
|
|
|
35
35
|
* never attached to a child with its own `contextMenu`: the menu wins.
|
|
36
36
|
*/
|
|
37
37
|
trigger?: TooltipTrigger;
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
open?: boolean;
|
|
39
|
+
onOpenChange?: (open: boolean) => void;
|
|
40
40
|
hideOnContentPress?: boolean;
|
|
41
41
|
maxWidth?: number;
|
|
42
42
|
showArrow?: boolean;
|
|
43
43
|
accessibilityLabel?: string;
|
|
44
|
+
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
44
45
|
style?: StyleProp<ViewStyle>;
|
|
45
|
-
/** Alias of
|
|
46
|
+
/** Alias of style, applied before it on the same node. Use style. */
|
|
46
47
|
containerStyle?: StyleProp<ViewStyle>;
|
|
47
48
|
/** Style override applied to the arrow caret View. */
|
|
48
49
|
arrowStyle?: StyleProp<ViewStyle>;
|
|
@@ -46,7 +46,7 @@ export interface TourProps {
|
|
|
46
46
|
tourId: string;
|
|
47
47
|
steps: TourStep[];
|
|
48
48
|
/** Set true to run the tour; set it back to false from `onClose`. */
|
|
49
|
-
|
|
49
|
+
open: boolean;
|
|
50
50
|
onClose: (reason: TourCloseReason) => void;
|
|
51
51
|
/** Consulted before showing and written when the tour finishes or is skipped. */
|
|
52
52
|
seenStore?: TourSeenStore;
|
|
@@ -70,7 +70,7 @@ export type { ErrorBoundaryInfo, ErrorBoundaryLabels, ErrorBoundaryProps } from
|
|
|
70
70
|
export { DEFAULT_ERROR_BOUNDARY_LABELS, ErrorBoundary, useErrorHandler, withErrorBoundary } from "./ErrorBoundary/index.js";
|
|
71
71
|
export type { FilePickerFile, FilePickerFileState, FilePickerFileStatus, FilePickerLabels, FilePickerProps, FilePickerRef, FilePickerSource, FilePickerTriggerState, FilePickerVariant, } from "./FilePicker/index.js";
|
|
72
72
|
export { DEFAULT_FILE_PICKER_LABELS, FilePicker, formatFileSize } from "./FilePicker/index.js";
|
|
73
|
-
export type { FileViewerProps, FileViewerSource } from "./FileViewer/index.js";
|
|
73
|
+
export type { FileViewerKind, FileViewerProps, FileViewerSource } from "./FileViewer/index.js";
|
|
74
74
|
export { FileViewer } from "./FileViewer/index.js";
|
|
75
75
|
export type { FilterChipItem, FilterChipRowProps } from "./FilterChipRow/index.js";
|
|
76
76
|
export { FilterChipRow } from "./FilterChipRow/index.js";
|
|
@@ -110,23 +110,21 @@ export type { MessageListLabels, MessageListProps, MessageRenderInfo } from "./M
|
|
|
110
110
|
export { DEFAULT_MESSAGE_LIST_LABELS, MessageList } from "./MessageList/index.js";
|
|
111
111
|
export type { ModalLabels, ModalPresentation, ModalProps } from "./Modal/index.js";
|
|
112
112
|
export { DEFAULT_MODAL_LABELS, MODAL_DISMISS_GRACE_MS, Modal } from "./Modal/index.js";
|
|
113
|
-
export type { NotationProps, NotationRun, NotationTextRun } from "./Notation/index.js";
|
|
114
|
-
export { Notation, parseNotation, sym } from "./Notation/index.js";
|
|
115
113
|
export type { NumberInputLabels, NumberInputProps, NumberInputRef, NumberInputSize, NumberInputVariant } from "./NumberInput/index.js";
|
|
116
114
|
export { DEFAULT_NUMBER_INPUT_LABELS, NumberInput } from "./NumberInput/index.js";
|
|
117
115
|
export type { OnboardingPage, OnboardingPagerLabels, OnboardingPagerProps, } from "./OnboardingPager/index.js";
|
|
118
116
|
export { DEFAULT_ONBOARDING_PAGER_LABELS, OnboardingPager } from "./OnboardingPager/index.js";
|
|
119
117
|
export type { OptionRenderState, OptionSheetLabels, OptionSheetProps, OptionSheetSection } from "./OptionSheet/index.js";
|
|
120
118
|
export { DEFAULT_OPTION_SHEET_LABELS, OptionSheet } from "./OptionSheet/index.js";
|
|
121
|
-
export type { OTPInputLabels, OTPInputProps, OTPInputRef, OTPInputSize } from "./OTPInput/index.js";
|
|
122
|
-
export { DEFAULT_OTP_INPUT_LABELS, OTPInput } from "./OTPInput/index.js";
|
|
119
|
+
export type { OTPInputLabels, OTPInputProps, OTPInputRef, OTPInputSize, OTPResendRowLabels, OTPResendRowProps } from "./OTPInput/index.js";
|
|
120
|
+
export { DEFAULT_OTP_INPUT_LABELS, DEFAULT_OTP_RESEND_ROW_LABELS, OTPInput, OTPResendRow } from "./OTPInput/index.js";
|
|
123
121
|
export type { PagedListFooterLabels, PagedListFooterProps } from "./PagedListFooter/index.js";
|
|
124
122
|
export { DEFAULT_PAGED_LIST_FOOTER_LABELS, PagedListFooter } from "./PagedListFooter/index.js";
|
|
125
123
|
export type { PermissionPromptFallback, PermissionPromptLabels, PermissionPromptProps, PermissionPromptView, UsePermissionPromptOptions, UsePermissionPromptResult, } from "./PermissionPrompt/index.js";
|
|
126
124
|
export { DEFAULT_PERMISSION_PROMPT_LABELS, PermissionPrompt, usePermissionPrompt } from "./PermissionPrompt/index.js";
|
|
127
125
|
export type { CallingCode, PhoneNumberInfo, PhoneNumberInputLabelMode, PhoneNumberInputLabels, PhoneNumberInputProps, PhoneNumberInputRef, PhoneNumberValidation, PhoneNumberValue, } from "./PhoneNumberInput/index.js";
|
|
128
126
|
export { ALL_CALLING_CODES, DEFAULT_CALLING_CODES, DEFAULT_PHONE_NUMBER_INPUT_LABELS, formatE164, PhoneNumberInput, parseE164, } from "./PhoneNumberInput/index.js";
|
|
129
|
-
export type { PickerTriggerLabels, PickerTriggerProps, PickerTriggerSize, PickerTriggerVariant } from "./PickerTrigger/index.js";
|
|
127
|
+
export type { PickerTriggerLabels, PickerTriggerPassThroughProps, PickerTriggerProps, PickerTriggerSize, PickerTriggerVariant, } from "./PickerTrigger/index.js";
|
|
130
128
|
export { DEFAULT_PICKER_TRIGGER_LABELS, PickerTrigger } from "./PickerTrigger/index.js";
|
|
131
129
|
export type { ProfileCompletionAvatarTone, ProfileCompletionLabels, ProfileCompletionProps, ProfileCompletionRingVariant, ProfileCompletionSize, } from "./ProfileCompletion/index.js";
|
|
132
130
|
export { DEFAULT_PROFILE_COMPLETION_LABELS, ProfileCompletion } from "./ProfileCompletion/index.js";
|
|
@@ -194,6 +192,7 @@ export type { TagInputProps } from "./TagInput/index.js";
|
|
|
194
192
|
export { TagInput } from "./TagInput/index.js";
|
|
195
193
|
export type { TextColor, TextProps, TextVariant } from "./Text/index.js";
|
|
196
194
|
export { Text } from "./Text/index.js";
|
|
195
|
+
export { TextInkContext, useTextInk } from "./Text/textInk.js";
|
|
197
196
|
export type { TimelineItem, TimelineOrientation, TimelineProps, TimelineStatus, TimelineVariant, } from "./Timeline/index.js";
|
|
198
197
|
export { Timeline } from "./Timeline/index.js";
|
|
199
198
|
export type { MinuteStep, Period, TimeFormat, TimePickerLabels, TimePickerProps, TimeValue } from "./TimePicker/index.js";
|
|
@@ -6,10 +6,10 @@ import { type HookFieldProps } from "./useHookFormField.js";
|
|
|
6
6
|
type FieldChromeProps = Omit<FormFieldProps, "children" | "error">;
|
|
7
7
|
export type HookFormFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TTransformedValues = TFieldValues> = FieldChromeProps & UseControllerProps<TFieldValues, TName, TTransformedValues> & {
|
|
8
8
|
/**
|
|
9
|
-
* A text input element (`<Input
|
|
10
|
-
* `
|
|
11
|
-
* takes
|
|
12
|
-
* `{(field) => <
|
|
9
|
+
* A text input element (`<Input />`) gets `value`, `onChangeText`, `onBlur`,
|
|
10
|
+
* `error` and a ref injected. Any other control takes the render-prop form,
|
|
11
|
+
* for example a `PhoneNumberInput`, which takes an object `value` and `onChange`:
|
|
12
|
+
* `{(field) => <PhoneNumberInput value={field.value} onChange={field.onChange} error={field.error} />}`.
|
|
13
13
|
* A render-prop control that is passed `error` draws it itself, so the
|
|
14
14
|
* frame leaves its own copy out; one that is not passed `error` has the
|
|
15
15
|
* message drawn under it by the frame.
|
|
@@ -5,6 +5,8 @@ export type { DragToDismissController, SheetNativeGesture, SheetPanGesture, UseD
|
|
|
5
5
|
export { createDragToDismissController, DRAG_DISMISS_DISTANCE, DRAG_DISMISS_VELOCITY, useDragToDismiss, } from "./useDragToDismiss.js";
|
|
6
6
|
export type { FieldChain, FieldChainProps } from "./useFieldChain.js";
|
|
7
7
|
export { useFieldChain } from "./useFieldChain.js";
|
|
8
|
+
export type { FieldErrorRegistry, UseFieldErrorScrollOptions, UseFieldErrorScrollResult } from "./useFieldErrorScroll.js";
|
|
9
|
+
export { FieldErrorScrollContext, useFieldErrorAnchor, useFieldErrorScroll } from "./useFieldErrorScroll.js";
|
|
8
10
|
export { FLICK_TOLERANCE, useFlickGuard } from "./useFlickGuard.js";
|
|
9
11
|
export type { MotionDurationKey, PresenceMotion } from "./usePresenceMotion.js";
|
|
10
12
|
export { PRESENCE_REDUCE_MOTION, usePresenceMotion } from "./usePresenceMotion.js";
|
|
@@ -13,6 +15,8 @@ export { PRESS_ANIMATION_PRESETS, usePressAnimation } from "./usePressAnimation.
|
|
|
13
15
|
export { useReducedMotion } from "./useReducedMotion.js";
|
|
14
16
|
export type { UseRefreshControlLabels, UseRefreshControlOptions, UseRefreshControlResult, } from "./useRefreshControl.js";
|
|
15
17
|
export { useRefreshControl } from "./useRefreshControl.js";
|
|
18
|
+
export type { UseResendCountdownOptions, UseResendCountdownResult } from "./useResendCountdown.js";
|
|
19
|
+
export { useResendCountdown } from "./useResendCountdown.js";
|
|
16
20
|
export type { ScrollDirection, UseScrollDirectionOptions, UseScrollDirectionResult, } from "./useScrollDirection.js";
|
|
17
21
|
export { useScrollDirection } from "./useScrollDirection.js";
|
|
18
22
|
export type { UseToggleResult } from "./useToggle.js";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type Ref, type RefObject } from "react";
|
|
2
|
+
import type { LayoutChangeEvent, ScrollView, View } from "react-native";
|
|
3
|
+
export interface FieldErrorRegistry {
|
|
4
|
+
add: (anchor: RefObject<View | null>) => () => void;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Bringing the first field that shows an error into view. A form field that shows an error joins
|
|
8
|
+
* the registry a screen provides (useFieldErrorAnchor, in the app's field wrappers); a refused step
|
|
9
|
+
* measures every member against a container inside the scroll content and scrolls to the topmost.
|
|
10
|
+
*
|
|
11
|
+
* Topmost by measurement rather than first by error key, because the keys follow the schema's order
|
|
12
|
+
* and a step lays its fields out in its own. Outside a provider a field joins nothing.
|
|
13
|
+
*/
|
|
14
|
+
export declare const FieldErrorScrollContext: import("react").Context<FieldErrorRegistry | null>;
|
|
15
|
+
export declare const useFieldErrorAnchor: (error: unknown, forwardedRef?: Ref<View>) => ((node: View | null) => void);
|
|
16
|
+
export interface UseFieldErrorScrollOptions {
|
|
17
|
+
scrollRef: RefObject<ScrollView | null>;
|
|
18
|
+
/** Room kept above the first error so its label shows too. Defaults to 16. */
|
|
19
|
+
offset?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface UseFieldErrorScrollResult {
|
|
22
|
+
registry: FieldErrorRegistry;
|
|
23
|
+
containerRef: RefObject<View | null>;
|
|
24
|
+
onContainerLayout: (event: LayoutChangeEvent) => void;
|
|
25
|
+
scrollToFirstError: () => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const useFieldErrorScroll: ({ scrollRef, offset }: UseFieldErrorScrollOptions) => UseFieldErrorScrollResult;
|
|
28
|
+
//# sourceMappingURL=useFieldErrorScroll.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface UseResendCountdownOptions {
|
|
2
|
+
/** Seconds before a new code may be asked for. */
|
|
3
|
+
resendSeconds: number;
|
|
4
|
+
/** Seconds the code stays valid; null or undefined when the code has no known expiry. */
|
|
5
|
+
expirySeconds?: number | null;
|
|
6
|
+
/** Wall-clock start (Date.now()) of the current challenge. Changing it restarts both timers. */
|
|
7
|
+
startedAtMs: number;
|
|
8
|
+
}
|
|
9
|
+
export interface UseResendCountdownResult {
|
|
10
|
+
/** Whole seconds left before Resend is allowed; 0 when allowed. */
|
|
11
|
+
resendSecondsLeft: number;
|
|
12
|
+
/** Whole seconds left on the code; null when there is no expiry. 0 when expired. */
|
|
13
|
+
expirySecondsLeft: number | null;
|
|
14
|
+
}
|
|
15
|
+
export declare const useResendCountdown: ({ resendSeconds, expirySeconds, startedAtMs }: UseResendCountdownOptions) => UseResendCountdownResult;
|
|
16
|
+
//# sourceMappingURL=useResendCountdown.d.ts.map
|