@webority/mobile-ui 0.163.0 → 0.165.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/LICENSE.txt +1 -1
- package/android/src/newarch/java/com/webority/mobileui/pdfrasterizer/PdfRasterizerModule.kt +4 -4
- package/dist/canvas-kit/kit.js +5 -5
- package/dist/canvas-kit/manifest.json +11 -1
- package/dist/canvas-kit/release.json +6 -6
- package/ios/PdfRasterizer.mm +3 -3
- 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/Card/Card.js +1 -1
- package/lib/commonjs/components/Carousel/Carousel.js +1 -1
- package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/commonjs/components/FieldBase/FieldBase.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/Input/Input.js +1 -1
- package/lib/commonjs/components/MessageBubble/MessageBubble.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/OptionSheet/OptionSheet.js +1 -1
- package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/commonjs/components/ProfilePicker/ProfilePicker.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/Slider/Slider.js +1 -1
- package/lib/commonjs/components/SliderField/SliderField.js +1 -1
- package/lib/commonjs/components/TagInput/TagInput.js +1 -1
- package/lib/commonjs/components/Tooltip/Tooltip.js +1 -1
- package/lib/commonjs/hooks/useDragToDismiss.js +1 -1
- package/lib/commonjs/theme/merge.js +1 -1
- package/lib/commonjs/utils/warnUnknownProps.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/Card/Card.js +1 -1
- package/lib/module/components/Carousel/Carousel.js +1 -1
- package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/module/components/FieldBase/FieldBase.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/Input/Input.js +1 -1
- package/lib/module/components/MessageBubble/MessageBubble.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/OptionSheet/OptionSheet.js +1 -1
- package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/module/components/ProfilePicker/ProfilePicker.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/Slider/Slider.js +1 -1
- package/lib/module/components/SliderField/SliderField.js +1 -1
- package/lib/module/components/TagInput/TagInput.js +1 -1
- package/lib/module/components/Tooltip/Tooltip.js +1 -1
- package/lib/module/hooks/useDragToDismiss.js +1 -1
- package/lib/module/theme/merge.js +1 -1
- package/lib/module/utils/warnUnknownProps.js +1 -1
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +1 -0
- package/lib/typescript/commonjs/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +2 -1
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +5 -4
- package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +2 -1
- package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +4 -4
- package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +2 -1
- package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +2 -2
- package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +1 -1
- package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +1 -1
- package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +14 -13
- package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +10 -10
- package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +2 -2
- package/lib/typescript/commonjs/components/FormField/FormField.d.ts +1 -1
- package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +2 -2
- package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +2 -1
- package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +7 -7
- package/lib/typescript/commonjs/components/Input/Input.d.ts +3 -2
- package/lib/typescript/commonjs/components/Menu/Menu.d.ts +1 -1
- package/lib/typescript/commonjs/components/Modal/Modal.d.ts +2 -1
- package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +1 -0
- package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +5 -5
- package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +1 -0
- package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +4 -4
- package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +2 -1
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/lib/typescript/commonjs/components/Radio/RadioDot.d.ts +2 -2
- package/lib/typescript/commonjs/components/Repeater/Repeater.d.ts +2 -2
- package/lib/typescript/commonjs/components/RichTextEditor/markdownActions.d.ts +3 -3
- package/lib/typescript/commonjs/components/Screen/Screen.d.ts +1 -0
- package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +2 -1
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/lib/typescript/commonjs/components/Select/Select.d.ts +6 -6
- package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +3 -3
- package/lib/typescript/commonjs/components/Skeleton/SkeletonClock.d.ts +3 -3
- package/lib/typescript/commonjs/components/Skeleton/SkeletonContent.d.ts +6 -6
- package/lib/typescript/commonjs/components/Skeleton/SkeletonList.d.ts +2 -2
- package/lib/typescript/commonjs/components/Skeleton/SkeletonProvider.d.ts +5 -5
- package/lib/typescript/commonjs/components/Skeleton/SkeletonSkip.d.ts +2 -2
- package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +1 -1
- package/lib/typescript/commonjs/components/Slider/Slider.d.ts +5 -0
- package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +1 -0
- package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +2 -2
- package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +2 -1
- package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +8 -8
- package/lib/typescript/commonjs/components/ZoomableImage/ZoomableImage.d.ts +4 -4
- package/lib/typescript/commonjs/hooks/useDragToDismiss.d.ts +2 -0
- package/lib/typescript/commonjs/specs/NativePdfRasterizer.d.ts +4 -4
- package/lib/typescript/commonjs/theme/animatedValue.d.ts +4 -4
- package/lib/typescript/commonjs/theme/types.d.ts +9 -3
- package/lib/typescript/commonjs/utils/feedback.d.ts +3 -3
- package/lib/typescript/commonjs/utils/warnUnknownProps.d.ts +2 -2
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +1 -0
- package/lib/typescript/module/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +2 -1
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +5 -4
- package/lib/typescript/module/components/Carousel/Carousel.d.ts +2 -1
- package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +4 -4
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +2 -1
- package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +2 -2
- package/lib/typescript/module/components/Drawer/Drawer.d.ts +1 -1
- package/lib/typescript/module/components/FieldBase/Chevron.d.ts +1 -1
- package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +14 -13
- package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +10 -10
- package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +2 -2
- package/lib/typescript/module/components/FormField/FormField.d.ts +1 -1
- package/lib/typescript/module/components/IconButton/IconButton.d.ts +2 -2
- package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +2 -1
- package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +7 -7
- package/lib/typescript/module/components/Input/Input.d.ts +3 -2
- package/lib/typescript/module/components/Menu/Menu.d.ts +1 -1
- package/lib/typescript/module/components/Modal/Modal.d.ts +2 -1
- package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +1 -0
- package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +5 -5
- package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +1 -0
- package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +4 -4
- package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +2 -1
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/lib/typescript/module/components/Radio/RadioDot.d.ts +2 -2
- package/lib/typescript/module/components/Repeater/Repeater.d.ts +2 -2
- package/lib/typescript/module/components/RichTextEditor/markdownActions.d.ts +3 -3
- package/lib/typescript/module/components/Screen/Screen.d.ts +1 -0
- package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +2 -1
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/lib/typescript/module/components/Select/Select.d.ts +6 -6
- package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +3 -3
- package/lib/typescript/module/components/Skeleton/SkeletonClock.d.ts +3 -3
- package/lib/typescript/module/components/Skeleton/SkeletonContent.d.ts +6 -6
- package/lib/typescript/module/components/Skeleton/SkeletonList.d.ts +2 -2
- package/lib/typescript/module/components/Skeleton/SkeletonProvider.d.ts +5 -5
- package/lib/typescript/module/components/Skeleton/SkeletonSkip.d.ts +2 -2
- package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +1 -1
- package/lib/typescript/module/components/Slider/Slider.d.ts +5 -0
- package/lib/typescript/module/components/SliderField/SliderField.d.ts +1 -0
- package/lib/typescript/module/components/Tabs/Tabs.d.ts +2 -2
- package/lib/typescript/module/components/TagInput/TagInput.d.ts +2 -1
- package/lib/typescript/module/components/Timeline/Timeline.d.ts +8 -8
- package/lib/typescript/module/components/ZoomableImage/ZoomableImage.d.ts +4 -4
- package/lib/typescript/module/hooks/useDragToDismiss.d.ts +2 -0
- package/lib/typescript/module/specs/NativePdfRasterizer.d.ts +4 -4
- package/lib/typescript/module/theme/animatedValue.d.ts +4 -4
- package/lib/typescript/module/theme/types.d.ts +9 -3
- package/lib/typescript/module/utils/feedback.d.ts +3 -3
- package/lib/typescript/module/utils/warnUnknownProps.d.ts +2 -2
- package/package.json +9 -10
- package/src/specs/NativePdfRasterizer.ts +4 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* SkeletonProvider
|
|
2
|
+
* SkeletonProvider: app-level defaults for every <Skeleton> below it.
|
|
3
3
|
*
|
|
4
4
|
* Two responsibilities:
|
|
5
5
|
* 1. Broadcasts the default variant / speed / colors / radius /
|
|
6
6
|
* placeholderCount so consumers don't repeat them per call site.
|
|
7
7
|
* 2. Mounts the shared `SkeletonClockProvider` (see SkeletonClock.tsx) so
|
|
8
|
-
* every primitive shares a single Animated.Value
|
|
8
|
+
* every primitive shares a single Animated.Value: synchronized shimmer
|
|
9
9
|
* across the whole subtree, one native-driver loop per provider.
|
|
10
10
|
*
|
|
11
11
|
* Under the OS "Reduce Motion" preference an `'auto'` skeleton pulses instead
|
|
@@ -17,7 +17,7 @@ import type { SkeletonRadius, SkeletonSpeed, SkeletonVariant } from "./Skeleton"
|
|
|
17
17
|
/**
|
|
18
18
|
* Per-instance color override for a skeleton. `background` is the resting
|
|
19
19
|
* tone of the placeholder; `highlight` is the moving shimmer band (or pulse
|
|
20
|
-
* fade). Either can be omitted
|
|
20
|
+
* fade). Either can be omitted; missing keys fall back to the active theme.
|
|
21
21
|
*/
|
|
22
22
|
export interface SkeletonColors {
|
|
23
23
|
background?: string | undefined;
|
|
@@ -40,7 +40,7 @@ export interface SkeletonProviderDefaults {
|
|
|
40
40
|
/**
|
|
41
41
|
* Hard override for animation. `'auto'` (default) follows the OS
|
|
42
42
|
* "Reduce Motion" preference: shimmer when off, pulse when on. `'always'`
|
|
43
|
-
* forces shimmer regardless. `'never'` forces static
|
|
43
|
+
* forces shimmer regardless. `'never'` forces static: useful for tests or
|
|
44
44
|
* battery-sensitive screens.
|
|
45
45
|
*/
|
|
46
46
|
animation?: "auto" | "always" | "never" | undefined;
|
|
@@ -52,7 +52,7 @@ export declare const SkeletonProvider: React.FC<SkeletonProviderProps>;
|
|
|
52
52
|
/**
|
|
53
53
|
* Read the current SkeletonProvider defaults. Returns an empty object when
|
|
54
54
|
* no provider is mounted, so the skeleton primitives still work outside of
|
|
55
|
-
* one
|
|
55
|
+
* one, but without a shared clock or theme-coordinated colors.
|
|
56
56
|
*/
|
|
57
57
|
export declare const useSkeletonDefaults: () => SkeletonProviderDefaults;
|
|
58
58
|
//# sourceMappingURL=SkeletonProvider.d.ts.map
|
|
@@ -8,8 +8,8 @@ export interface SkeletonSkipProps {
|
|
|
8
8
|
*
|
|
9
9
|
* The walker recognizes this element type and returns its children unchanged
|
|
10
10
|
* even while `loading` is true. Use it to keep a specific Text/Image/View
|
|
11
|
-
* visible inside a skeleton block
|
|
12
|
-
* decorative element that should never shimmer.
|
|
11
|
+
* visible inside a skeleton block (e.g., a brand mark, a status icon, or a
|
|
12
|
+
* decorative element that should never shimmer).
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* <SkeletonContent loading>
|
|
@@ -18,7 +18,7 @@ export interface SlideToConfirmProps {
|
|
|
18
18
|
tone?: SlideToConfirmTone | undefined;
|
|
19
19
|
size?: SlideToConfirmSize | undefined;
|
|
20
20
|
disabled?: boolean | undefined;
|
|
21
|
-
/** Fraction of the track (0
|
|
21
|
+
/** Fraction of the track (0-1) the handle must cross to confirm. Default 0.9. */
|
|
22
22
|
threshold?: number | undefined;
|
|
23
23
|
/** Auto-reset this many ms after confirm, or `false` to stay confirmed. Default `false`. */
|
|
24
24
|
resetAfter?: number | false | undefined;
|
|
@@ -70,6 +70,11 @@ interface SliderCommonProps {
|
|
|
70
70
|
labelShowDuration?: number | undefined;
|
|
71
71
|
/** Override the label final opacity when visible (default 1). */
|
|
72
72
|
labelOpacity?: number | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Test handles derived from it: `${testID}-track-press` on the track Pressable, `${testID}-track`
|
|
75
|
+
* on the track wrapper, `${testID}-fill` on the fill, `${testID}-thumb` on the low thumb, and
|
|
76
|
+
* `${testID}-pan` on the low thumb's pan gesture.
|
|
77
|
+
*/
|
|
73
78
|
testID?: string | undefined;
|
|
74
79
|
}
|
|
75
80
|
export interface SliderSingleProps extends SliderCommonProps {
|
|
@@ -76,6 +76,7 @@ interface SliderFieldCommonProps {
|
|
|
76
76
|
boundStyle?: StyleProp<TextStyle> | undefined;
|
|
77
77
|
sliderStyle?: StyleProp<ViewStyle> | undefined;
|
|
78
78
|
inputStyle?: StyleProp<ViewStyle> | undefined;
|
|
79
|
+
/** Derives `${testID}-field` (the value box) and `${testID}-field-press` (its box-press wrapper); a range uses `-field-low` and `-field-high`. */
|
|
79
80
|
testID?: string | undefined;
|
|
80
81
|
}
|
|
81
82
|
interface SliderFieldSingleProps extends SliderFieldCommonProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Tabs
|
|
2
|
+
* Tabs: top tabs with an animated underline, pill or segmented indicator.
|
|
3
3
|
*
|
|
4
4
|
* Layout: equal-width row by default, or horizontal-scrollable when
|
|
5
5
|
* `scrollable` is true. The active indicator (underline, pill or segmented
|
|
@@ -41,7 +41,7 @@ export interface TabItem {
|
|
|
41
41
|
key: string;
|
|
42
42
|
label: string;
|
|
43
43
|
icon?: TabItemIcon | undefined;
|
|
44
|
-
/** Optional numeric/string badge
|
|
44
|
+
/** Optional numeric/string badge, rendered inline after the label when provided. */
|
|
45
45
|
badge?: string | number | undefined;
|
|
46
46
|
disabled?: boolean | undefined;
|
|
47
47
|
}
|
|
@@ -31,10 +31,11 @@ export interface TagInputProps {
|
|
|
31
31
|
/** Called when the text field takes focus. */
|
|
32
32
|
onFocus?: ((e: FocusEvent) => void) | undefined;
|
|
33
33
|
style?: StyleProp<ViewStyle> | undefined;
|
|
34
|
+
/** Derives `${testID}-field` (the field box) and `${testID}-field-press` (its box-press wrapper). */
|
|
34
35
|
testID?: string | undefined;
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
37
|
-
* Chips as input
|
|
38
|
+
* Chips as input: the "type a value, press enter, it becomes a tag" field.
|
|
38
39
|
* Chip renders a tag and Input takes text, but nothing joined them, so consumers
|
|
39
40
|
* built this by hand each time (and each one disagreed about backspace).
|
|
40
41
|
*/
|
|
@@ -4,13 +4,13 @@ import type { StyleProp, ViewStyle } from "react-native";
|
|
|
4
4
|
* The status vocabulary is shared with the web library's AppTimeline so a
|
|
5
5
|
* sign-off history reads identically on both surfaces.
|
|
6
6
|
*
|
|
7
|
-
* upcoming
|
|
8
|
-
* current
|
|
9
|
-
* done
|
|
10
|
-
* onHold
|
|
11
|
-
* rejected
|
|
12
|
-
* cancelled
|
|
13
|
-
* skipped
|
|
7
|
+
* upcoming: not started yet (muted disc)
|
|
8
|
+
* current: in progress now (warning)
|
|
9
|
+
* done: completed (success)
|
|
10
|
+
* onHold: blocked / waiting (info)
|
|
11
|
+
* rejected: declined / failed (danger)
|
|
12
|
+
* cancelled: aborted (muted)
|
|
13
|
+
* skipped: intentionally bypassed (muted)
|
|
14
14
|
*
|
|
15
15
|
* Every dot sits inside a soft halo of its own colour (the accent at 16
|
|
16
16
|
* percent), the web timeline's glow. The halo is a layout wrapper, not a
|
|
@@ -24,7 +24,7 @@ export type TimelineOrientation = "vertical" | "horizontal";
|
|
|
24
24
|
export interface TimelineItem {
|
|
25
25
|
title: string;
|
|
26
26
|
description?: string | undefined;
|
|
27
|
-
/** Rendered under the title
|
|
27
|
+
/** Rendered under the title: a timestamp, an actor, a metadata line. */
|
|
28
28
|
meta?: string | undefined;
|
|
29
29
|
/** `progress` variant: drives the dot colour. Defaults to 'done' in a feed. */
|
|
30
30
|
status?: TimelineStatus | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* ZoomableImage
|
|
2
|
+
* ZoomableImage: a standalone pinch-to-zoom / pan / double-tap-to-zoom
|
|
3
3
|
* wrapper for a single piece of content (typically one `<Image>`).
|
|
4
4
|
*
|
|
5
5
|
* Reuses the same Reanimated 3 gesture composition `ImageGallery`'s internal
|
|
6
6
|
* lightbox slide uses (pinch clamped and rubber-banded at its limits, pan
|
|
7
7
|
* gated to only engage once zoomed in, double-tap toggling between baseline
|
|
8
8
|
* and `doubleTapScale`), stripped of the carousel-slide concerns that
|
|
9
|
-
* component needs and this one does not
|
|
9
|
+
* component needs and this one does not; there is no `index`/`total`/
|
|
10
10
|
* `active` because a standalone image is always the one being viewed.
|
|
11
11
|
*
|
|
12
12
|
* USAGE:
|
|
@@ -25,11 +25,11 @@ import type React from "react";
|
|
|
25
25
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
26
26
|
import type { HapticType } from "../../utils";
|
|
27
27
|
export interface ZoomableImageProps {
|
|
28
|
-
/** The content to pinch-zoom, pan, and double-tap-zoom
|
|
28
|
+
/** The content to pinch-zoom, pan, and double-tap-zoom (typically a single `<Image>`). */
|
|
29
29
|
children: React.ReactNode;
|
|
30
30
|
/** Upper bound on pinch and double-tap zoom. Default 4. */
|
|
31
31
|
maxScale?: number | undefined;
|
|
32
|
-
/** Lower bound on pinch zoom
|
|
32
|
+
/** Lower bound on pinch zoom: the resting scale a pinch springs back to. Default 1. */
|
|
33
33
|
minScale?: number | undefined;
|
|
34
34
|
/** Scale a double tap zooms to; a second double tap returns to baseline. Default 2. */
|
|
35
35
|
doubleTapScale?: number | undefined;
|
|
@@ -45,6 +45,8 @@ export interface UseDragToDismissOptions {
|
|
|
45
45
|
contentAtTop?: (() => boolean) | undefined;
|
|
46
46
|
/** The scrollable content's `useNativeGesture()`, so the sheet drag runs alongside its scroll. */
|
|
47
47
|
scrollGesture?: SheetNativeGesture | undefined;
|
|
48
|
+
/** When set, the handle gesture gets the test id `${testID}-pan`. */
|
|
49
|
+
testID?: string | undefined;
|
|
48
50
|
}
|
|
49
51
|
export interface UseDragToDismissResult {
|
|
50
52
|
/** Wrap the grab handle / title row in a `GestureDetector` with this. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { TurboModule } from "react-native";
|
|
2
2
|
export interface PdfDocumentInfo {
|
|
3
|
-
/** Opaque handle for every subsequent call (getPageInfo/renderPage/close)
|
|
3
|
+
/** Opaque handle for every subsequent call (getPageInfo/renderPage/close). NOT the file path. */
|
|
4
4
|
handle: string;
|
|
5
5
|
pageCount: number;
|
|
6
|
-
/** Points (1/72 in), the page size of page 0 as displayed (after the page's /Rotate)
|
|
6
|
+
/** Points (1/72 in), the page size of page 0 as displayed (after the page's /Rotate). A per-page size read happens in renderPage. */
|
|
7
7
|
pageWidth: number;
|
|
8
8
|
pageHeight: number;
|
|
9
9
|
}
|
|
@@ -13,7 +13,7 @@ export interface PdfPageInfo {
|
|
|
13
13
|
}
|
|
14
14
|
export interface Spec extends TurboModule {
|
|
15
15
|
/**
|
|
16
|
-
* Opens a LOCAL pdf file (a file:// path or bare absolute path
|
|
16
|
+
* Opens a LOCAL pdf file (a file:// path or bare absolute path; no http(s), no
|
|
17
17
|
* headers, no auth: callers download remote documents with mobile-core's
|
|
18
18
|
* `downloadFile` first). Returns a handle used by every other call. Throws
|
|
19
19
|
* (rejects) on a missing file, a corrupt PDF, or a password-protected PDF.
|
|
@@ -27,7 +27,7 @@ export interface Spec extends TurboModule {
|
|
|
27
27
|
/**
|
|
28
28
|
* Rasterizes one page to a PNG file in the cache directory and returns its
|
|
29
29
|
* absolute path. `scale` is a multiplier on the page's own point size (pass
|
|
30
|
-
* the view width / page width ratio, capped by the caller
|
|
30
|
+
* the view width / page width ratio, capped by the caller; see
|
|
31
31
|
* react-native.md's "RGBA_8888 is 4 bytes/px" guidance). Renders are
|
|
32
32
|
* serialized per handle on both platforms; call sequentially per document.
|
|
33
33
|
*/
|
|
@@ -5,14 +5,14 @@ import { Animated } from "react-native";
|
|
|
5
5
|
* RN's Fabric renderer deep-freezes prop trees on host components. If an
|
|
6
6
|
* `Animated.Value` is reachable from a `style` prop via interpolation chains
|
|
7
7
|
* (the `_parent` ref on `AnimatedInterpolation` nodes), the recursive freeze
|
|
8
|
-
* converts the value's `_animation` slot into a throwing setter
|
|
8
|
+
* converts the value's `_animation` slot into a throwing setter: the next
|
|
9
9
|
* `Animated.timing(v).start()` then crashes with
|
|
10
10
|
* "_animation: object that is meant to be immutable".
|
|
11
11
|
*
|
|
12
12
|
* Sealing the value at construction makes `Object.isSealed(v) === true`,
|
|
13
13
|
* which causes `deepFreezeAndThrowOnMutationInDev` to skip-and-return at
|
|
14
14
|
* its top guard. Existing-property mutation (`_animation`, `_value`,
|
|
15
|
-
* `_listeners`, `_tracking`) keeps working
|
|
15
|
+
* `_listeners`, `_tracking`) keeps working; seal only blocks adding NEW
|
|
16
16
|
* properties, which `Animated.Value` does only once: `_tracking` is declared
|
|
17
17
|
* as a type but never assigned in the constructor, so `stopTracking()` (run by
|
|
18
18
|
* every `timing().start()`) adds it. On a sealed value that add throws
|
|
@@ -28,7 +28,7 @@ import { Animated } from "react-native";
|
|
|
28
28
|
* NOT on web. The reasoning above ("Animated.Value doesn't add any properties
|
|
29
29
|
* post-construction") holds for React Native but not for react-native-web,
|
|
30
30
|
* whose `stopTracking()` assigns `_tracking` on an instance that never declared
|
|
31
|
-
* it
|
|
31
|
+
* it: on a sealed object that throws, and the throw happens during unmount, so
|
|
32
32
|
* it takes the whole tree down. There is no Fabric deep-freeze on web either,
|
|
33
33
|
* so the seal has nothing to protect against there.
|
|
34
34
|
*/
|
|
@@ -37,7 +37,7 @@ export declare const createAnimatedValue: (initial: number, config?: Constructor
|
|
|
37
37
|
* Set an `Animated.Value` to a target without going through JS.
|
|
38
38
|
*
|
|
39
39
|
* Once a value has been driven by the native driver, the underlying
|
|
40
|
-
* native node owns it
|
|
40
|
+
* native node owns it: calling `value.setValue(x)` from JS throws
|
|
41
41
|
* "Attempting to run JS driven animation on animated node that has been moved to native".
|
|
42
42
|
* Use this helper for any value that is *also* used in a native-driven
|
|
43
43
|
* `Animated.timing/spring`. A zero-duration native timing routes the update
|
|
@@ -183,11 +183,14 @@ export interface ThemeSettings {
|
|
|
183
183
|
components?: ComponentSettings | undefined;
|
|
184
184
|
}
|
|
185
185
|
/** A product's brand, generated by `webority brand` as theme/generated/brand.phone.js. Never spacing, text or component sizes. */
|
|
186
|
+
type BrandColors = Partial<Record<ColorName, string>> & Record<string, string | undefined>;
|
|
186
187
|
export interface BrandOverrides {
|
|
187
188
|
colors?: {
|
|
188
|
-
light?:
|
|
189
|
-
dark?:
|
|
189
|
+
light?: BrandColors | undefined;
|
|
190
|
+
dark?: BrandColors | undefined;
|
|
190
191
|
} | undefined;
|
|
192
|
+
/** What each colour the brand adds is for, by name. A colour name the library does not define must be described here. */
|
|
193
|
+
descriptions?: Record<string, string> | undefined;
|
|
191
194
|
radius?: Partial<Record<Exclude<RadiusName, "none" | "pill">, number>> | undefined;
|
|
192
195
|
font?: Partial<Record<FontName, FontFaces>> | undefined;
|
|
193
196
|
}
|
|
@@ -201,7 +204,10 @@ export interface SpringScale {
|
|
|
201
204
|
bouncy: Spring;
|
|
202
205
|
snappy: Spring;
|
|
203
206
|
}
|
|
204
|
-
export interface Theme extends Omit<TokenSet, "motion"> {
|
|
207
|
+
export interface Theme extends Omit<TokenSet, "motion" | "colors"> {
|
|
208
|
+
colors: TokenSet["colors"] & {
|
|
209
|
+
readonly [name: string]: string | undefined;
|
|
210
|
+
};
|
|
205
211
|
motion: TokenSet["motion"] & {
|
|
206
212
|
spring: SpringScale;
|
|
207
213
|
fadeDuration: number;
|
|
@@ -3,7 +3,7 @@ import { type HapticType } from "./hapticUtils";
|
|
|
3
3
|
* What the interaction MEANT, not which vibration to play.
|
|
4
4
|
*
|
|
5
5
|
* Call sites that pick a `HapticType` directly end up disagreeing with each
|
|
6
|
-
* other
|
|
6
|
+
* other: one screen fires `impactMedium` on delete, the next fires
|
|
7
7
|
* `notificationWarning`, and the app stops speaking one language. Naming the
|
|
8
8
|
* intent moves that decision here, once.
|
|
9
9
|
*/
|
|
@@ -23,7 +23,7 @@ export declare const hapticForIntent: (intent: FeedbackIntent) => HapticType;
|
|
|
23
23
|
export declare const feedback: {
|
|
24
24
|
/** A plain press: button, row, chip. */
|
|
25
25
|
readonly tap: () => void;
|
|
26
|
-
/** Moving between options
|
|
26
|
+
/** Moving between options: segmented control, picker wheel, tab. */
|
|
27
27
|
readonly select: () => void;
|
|
28
28
|
/** A long-press threshold being crossed. */
|
|
29
29
|
readonly longPress: () => void;
|
|
@@ -33,7 +33,7 @@ export declare const feedback: {
|
|
|
33
33
|
readonly deleted: () => void;
|
|
34
34
|
/** An undo landed. */
|
|
35
35
|
readonly restored: () => void;
|
|
36
|
-
/** A binary control turned on / off
|
|
36
|
+
/** A binary control turned on / off: switch, checkbox, favourite. */
|
|
37
37
|
readonly toggled: (on: boolean) => void;
|
|
38
38
|
/** A flow finished successfully. */
|
|
39
39
|
readonly succeeded: () => void;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This exists for a class of bug that nothing in a JS consumer's toolchain
|
|
5
5
|
* objects to. A component destructures the props it knows and ignores the rest,
|
|
6
|
-
* so a renamed or mistyped prop is simply dropped
|
|
6
|
+
* so a renamed or mistyped prop is simply dropped, silently, at every call
|
|
7
7
|
* site. The web library hit this three times in one day: `body` instead of
|
|
8
8
|
* `message` left nine destructive confirm dialogs with no explanatory text, and
|
|
9
9
|
* `name` instead of `icon` emptied an entire actions column across 23 call
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* who this is for. The check therefore has to be a runtime one, and it
|
|
15
15
|
* has to run where the mistake is made: the consumer's dev server.
|
|
16
16
|
*
|
|
17
|
-
* DEV ONLY
|
|
17
|
+
* DEV ONLY: the `__DEV__` guard means it costs a release build nothing.
|
|
18
18
|
*/
|
|
19
19
|
export declare const warnUnknownProps: (componentName: string, rest: Record<string, unknown> | undefined) => void;
|
|
20
20
|
//# sourceMappingURL=warnUnknownProps.d.ts.map
|
|
@@ -126,6 +126,7 @@ export interface AppBarProps {
|
|
|
126
126
|
* to override the default.
|
|
127
127
|
*/
|
|
128
128
|
haptic?: HapticType | false | undefined;
|
|
129
|
+
/** The bar's root testID; the large variant's title row is `${testID}-title-row`. */
|
|
129
130
|
testID?: string | undefined;
|
|
130
131
|
}
|
|
131
132
|
declare const AppBar: React.ForwardRefExoticComponent<AppBarProps & React.RefAttributes<HostInstance>>;
|
|
@@ -27,7 +27,7 @@ export interface AutocompleteProps<T = string> {
|
|
|
27
27
|
minChars?: number | undefined;
|
|
28
28
|
/** Cap the number of suggestions shown. Default 8. */
|
|
29
29
|
maxResults?: number | undefined;
|
|
30
|
-
/** Show a loading spinner in the dropdown
|
|
30
|
+
/** Show a loading spinner in the dropdown, e.g. while fetching remote results. */
|
|
31
31
|
loading?: boolean | undefined;
|
|
32
32
|
/** `'client'` filters `options` locally; `'none'` shows them as-is (for server-side search). Default `'client'`. */
|
|
33
33
|
filterMode?: "client" | "none" | undefined;
|
|
@@ -63,7 +63,7 @@ export interface AvatarProps {
|
|
|
63
63
|
/**
|
|
64
64
|
* Custom component used to render the image instead of the built-in `<Image>`.
|
|
65
65
|
* Receives {@link AvatarImageProps}. Use this when `source` points at a secured
|
|
66
|
-
* endpoint that needs auth headers / token refresh / caching
|
|
66
|
+
* endpoint that needs auth headers / token refresh / caching: plug in the
|
|
67
67
|
* app's authenticated image loader. On error it should call `onError`, which
|
|
68
68
|
* triggers the initials fallback. When omitted, expo-image's `<Image>` is used.
|
|
69
69
|
*/
|
|
@@ -139,6 +139,7 @@ export interface AvatarProps {
|
|
|
139
139
|
textStyle?: StyleProp<TextStyle> | undefined;
|
|
140
140
|
/** Spoken text in its default English. Override any key to translate it or to change its wording. */
|
|
141
141
|
labels?: Partial<AvatarLabels> | undefined;
|
|
142
|
+
/** Test id of the root; the built-in picture is `<testID>-image`. */
|
|
142
143
|
testID?: string | undefined;
|
|
143
144
|
}
|
|
144
145
|
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HostInstance>> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* BottomSheet
|
|
2
|
+
* BottomSheet: Reanimated 3 + Gesture Handler 3 implementation.
|
|
3
3
|
*
|
|
4
4
|
* A polished, theme-aware bottom sheet with multi-snap-point support,
|
|
5
5
|
* UI-thread driven pan gestures, and native-driver spring animations.
|
|
@@ -152,7 +152,7 @@ export interface BottomSheetProps {
|
|
|
152
152
|
/**
|
|
153
153
|
* Sticky region pinned to the bottom of the sheet, above the safe-area
|
|
154
154
|
* inset. Does not scroll with `children`, and rides up with the keyboard
|
|
155
|
-
* when `keyboardBehavior='shift'` (no extra wiring needed
|
|
155
|
+
* when `keyboardBehavior='shift'` (no extra wiring needed; the whole sheet
|
|
156
156
|
* shifts). Typical use: action button rows.
|
|
157
157
|
*/
|
|
158
158
|
footer?: React.ReactNode | undefined;
|
|
@@ -163,17 +163,18 @@ export interface BottomSheetProps {
|
|
|
163
163
|
children?: React.ReactNode | undefined;
|
|
164
164
|
accessibilityLabel?: string | undefined;
|
|
165
165
|
accessibilityViewIsModal?: boolean | undefined;
|
|
166
|
+
/** Test handle root; the inner ScrollView, when `scrollable`, is `${testID}-scroll`. */
|
|
166
167
|
testID?: string | undefined;
|
|
167
168
|
}
|
|
168
169
|
/**
|
|
169
|
-
* State + actions exposed to anything rendered inside a `<BottomSheet
|
|
170
|
+
* State + actions exposed to anything rendered inside a `<BottomSheet>`,
|
|
170
171
|
* including the `header` and `footer` slots. Read via `useBottomSheet()`.
|
|
171
172
|
*
|
|
172
173
|
* `snapIndex` is the JS-thread mirror of the current snap point. -1 means the
|
|
173
174
|
* sheet is closed (mid-close-animation included). Use it to drive footer
|
|
174
175
|
* button enable state, conditional headers, etc. If you need per-frame
|
|
175
176
|
* progress (e.g. fade a header in as the sheet expands), reach for the
|
|
176
|
-
* animated value via a future enhancement
|
|
177
|
+
* animated value via a future enhancement, not exposed today to keep the
|
|
177
178
|
* surface minimal.
|
|
178
179
|
*/
|
|
179
180
|
export interface BottomSheetContextValue {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Carousel
|
|
2
|
+
* Carousel: generic horizontal carousel with pagination, auto-play, and looping.
|
|
3
3
|
*
|
|
4
4
|
* Backed by a virtualized FlatList for memory efficiency. Dot and bar
|
|
5
5
|
* pagination track the scroll gesture through `Animated.event`.
|
|
@@ -52,6 +52,7 @@ export interface CarouselProps<T = unknown> {
|
|
|
52
52
|
spacing?: number | undefined;
|
|
53
53
|
containerStyle?: StyleProp<ViewStyle> | undefined;
|
|
54
54
|
accessibilityLabel?: string | undefined;
|
|
55
|
+
/** Also derives `${testID}-list` for the slide FlatList. */
|
|
55
56
|
testID?: string | undefined;
|
|
56
57
|
/** Render a horizontal strip of 40x40 thumbnails below the carousel. */
|
|
57
58
|
showThumbnails?: boolean | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* ChoiceGroup
|
|
2
|
+
* ChoiceGroup: headless choice group (one option, or `selectionMode="multiple"` for many) with templated options.
|
|
3
3
|
*
|
|
4
4
|
* The component owns the BEHAVIOUR: selection state (controlled or
|
|
5
5
|
* uncontrolled), per-option press handling, haptics, radio/radiogroup a11y,
|
|
6
6
|
* and row/column/wrap layout. Each option's LOOK comes from a template:
|
|
7
7
|
*
|
|
8
|
-
* - `card` (default): a bordered card
|
|
8
|
+
* - `card` (default): a bordered card: label (+ optional icon /
|
|
9
9
|
* description) with a RadioDot after the content (or before it, with
|
|
10
10
|
* `indicatorPosition="leading"`), tinted with the option's colour when
|
|
11
11
|
* selected. The "Hot / Warm / Cold" status-picker pattern works
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* indicator inside a custom layout.
|
|
20
20
|
*
|
|
21
21
|
* Cross-option visuals (a single indicator sliding BETWEEN options, joined
|
|
22
|
-
* segments) are out of scope by design
|
|
22
|
+
* segments) are out of scope by design; that's SegmentedControl.
|
|
23
23
|
*
|
|
24
24
|
* Same data contract as Select: `ChoiceOption[]` by default, `getOption*`
|
|
25
25
|
* accessors for custom shapes.
|
|
@@ -82,7 +82,7 @@ interface BaseChoiceGroupProps<T = ChoiceOption> {
|
|
|
82
82
|
getOptionColor?: ((option: T) => string | undefined) | undefined;
|
|
83
83
|
/**
|
|
84
84
|
* Custom option template. The library still owns press handling, haptics
|
|
85
|
-
* and a11y
|
|
85
|
+
* and a11y: the template only paints. Selected-state styling is the
|
|
86
86
|
* template's job (it gets the booleans).
|
|
87
87
|
*/
|
|
88
88
|
renderOption?: ((state: ChoiceOptionState<T>) => React.ReactNode) | undefined;
|
|
@@ -17,7 +17,7 @@ export interface DateRangePickerLabels {
|
|
|
17
17
|
}
|
|
18
18
|
export declare const DEFAULT_DATE_RANGE_PICKER_LABELS: Readonly<DateRangePickerLabels>;
|
|
19
19
|
/**
|
|
20
|
-
* DateRangePicker
|
|
20
|
+
* DateRangePicker: supports two usage modes:
|
|
21
21
|
*
|
|
22
22
|
* 1. Controlled-modal mode (pass `open` + `onClose`): renders only the
|
|
23
23
|
* modal; parent owns open/close state.
|
|
@@ -63,6 +63,7 @@ export interface DateRangePickerProps extends PickerTriggerPassThroughProps {
|
|
|
63
63
|
navButtonStyle?: StyleProp<ViewStyle> | undefined;
|
|
64
64
|
/** Style override for the cancel/confirm footer buttons. */
|
|
65
65
|
footerButtonStyle?: StyleProp<ViewStyle> | undefined;
|
|
66
|
+
/** The handle / title row's drag gesture is `${testID}-pan`. */
|
|
66
67
|
testID?: string | undefined;
|
|
67
68
|
}
|
|
68
69
|
declare const DateRangePicker: ForwardRefExoticComponent<DateRangePickerProps & RefAttributes<HostInstance>>;
|
|
@@ -29,7 +29,7 @@ export interface DescriptionItem {
|
|
|
29
29
|
}
|
|
30
30
|
export interface DescriptionsProps {
|
|
31
31
|
items: ReadonlyArray<DescriptionItem>;
|
|
32
|
-
/** 1 stacks label above value; 2 puts them side by side. Default 1
|
|
32
|
+
/** 1 stacks label above value; 2 puts them side by side. Default 1, since phone widths are narrow. */
|
|
33
33
|
columns?: 1 | 2 | undefined;
|
|
34
34
|
size?: DescriptionsSize | undefined;
|
|
35
35
|
/** Hairlines between rows. */
|
|
@@ -44,7 +44,7 @@ export interface DescriptionsProps {
|
|
|
44
44
|
testID?: string | undefined;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* A labelled key-value list for record detail
|
|
47
|
+
* A labelled key-value list for record detail: the "what are this thing's
|
|
48
48
|
* fields" view that every detail screen needs and that ListItem (a tappable row
|
|
49
49
|
* with a title) is the wrong shape for.
|
|
50
50
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Drawer
|
|
2
|
+
* Drawer: slide-in side drawer (left / right / top / bottom).
|
|
3
3
|
*
|
|
4
4
|
* Built on Reanimated 4 and Gesture Handler 3's hooks: gestures and animations run on the
|
|
5
5
|
* UI thread for buttery 60/120fps motion. Mirrors the BottomSheet ergonomics:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Chevron
|
|
2
|
+
* Chevron: the shared dropdown indicator for the field family.
|
|
3
3
|
*
|
|
4
4
|
* One glyph for Select, InlineSelect, PickerTrigger and PhoneNumberInput so
|
|
5
5
|
* the indicator never drifts between trigger components. It is the design
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* FieldBase
|
|
2
|
+
* FieldBase: the unified field-box primitive.
|
|
3
3
|
*
|
|
4
4
|
* Every input-like control in the library (Input, Select, SearchBar,
|
|
5
5
|
* NumberInput, OTPInput cell, PickerTrigger) composes FieldBase so the
|
|
6
6
|
* height / radius / padding / border / fill / focus + disabled + error
|
|
7
7
|
* states stay identical across the library. Differences (pill SearchBar,
|
|
8
8
|
* OTP underline, NumberInput steppers) become explicit overrides via
|
|
9
|
-
* props or via theme tokens
|
|
9
|
+
* props or via theme tokens; never accidental drift.
|
|
10
10
|
*
|
|
11
11
|
* Responsibilities:
|
|
12
12
|
* - Resolve size dimensions from `theme.components.field`.
|
|
@@ -45,11 +45,11 @@ export interface FieldBaseProps {
|
|
|
45
45
|
* (`theme.settings.components.field.defaultVariant`) via this prop. Default `'outline'`.
|
|
46
46
|
*/
|
|
47
47
|
variant?: FieldBaseVariant | undefined;
|
|
48
|
-
/** Parent-controlled focus state
|
|
48
|
+
/** Parent-controlled focus state; drives the border + fill animation. */
|
|
49
49
|
focused?: boolean | undefined;
|
|
50
|
-
/** Disabled state
|
|
50
|
+
/** Disabled state; wins over `focused` / `error`. */
|
|
51
51
|
disabled?: boolean | undefined;
|
|
52
|
-
/** Error state
|
|
52
|
+
/** Error state; visually wins over `focused`. */
|
|
53
53
|
error?: boolean | undefined;
|
|
54
54
|
/** Whether the field currently holds a value. Affects idle-empty vs idle-filled fill. */
|
|
55
55
|
filled?: boolean | undefined;
|
|
@@ -104,9 +104,9 @@ export interface FieldBaseProps {
|
|
|
104
104
|
minHeight?: number | undefined;
|
|
105
105
|
/** Override `maxHeight` (rarely needed). */
|
|
106
106
|
maxHeight?: number | undefined;
|
|
107
|
-
/** Fixed pixel width
|
|
107
|
+
/** Fixed pixel width: used by OTP cells. Suppresses default `flex: 1`. */
|
|
108
108
|
width?: number | undefined;
|
|
109
|
-
/** Fixed pixel height
|
|
109
|
+
/** Fixed pixel height: used by OTP cells. Wins over `minHeight`. */
|
|
110
110
|
height?: number | undefined;
|
|
111
111
|
/** Override horizontal padding. */
|
|
112
112
|
paddingHorizontal?: number | undefined;
|
|
@@ -126,7 +126,7 @@ export interface FieldBaseProps {
|
|
|
126
126
|
borderBottomLeftRadius?: number | undefined;
|
|
127
127
|
/** Bottom-right corner radius. Wins over `radius`. */
|
|
128
128
|
borderBottomRightRadius?: number | undefined;
|
|
129
|
-
/** Override border width (shorthand
|
|
129
|
+
/** Override border width (shorthand for all four sides). OTP uses 1.5; everything else inherits `size.border`. */
|
|
130
130
|
borderWidth?: number | undefined;
|
|
131
131
|
/** Top border width. Wins over `borderWidth`. */
|
|
132
132
|
borderTopWidth?: number | undefined;
|
|
@@ -141,6 +141,7 @@ export interface FieldBaseProps {
|
|
|
141
141
|
/** Drop the room below the field, for a field that sits tight on the content under it. */
|
|
142
142
|
flushBottom?: boolean | undefined;
|
|
143
143
|
style?: StyleProp<ViewStyle> | undefined;
|
|
144
|
+
/** Also derives `${testID}-press`, the box-press Pressable wrapping the field when `onPress` is set. */
|
|
144
145
|
testID?: string | undefined;
|
|
145
146
|
accessibilityRole?: AccessibilityRole | undefined;
|
|
146
147
|
accessibilityLabel?: string | undefined;
|
|
@@ -151,7 +152,7 @@ export interface FieldBaseProps {
|
|
|
151
152
|
* Resolved text styling for the editable / displayed content inside a field.
|
|
152
153
|
* Single source of truth so every field component (Input, NumberInput,
|
|
153
154
|
* Select, SearchBar, PickerTrigger) renders identical colour + weight +
|
|
154
|
-
* fontFamily for value text
|
|
155
|
+
* fontFamily for value text, and reads the placeholder colour from the
|
|
155
156
|
* same place. OTPInput intentionally overrides this with its own semibold
|
|
156
157
|
* display weight.
|
|
157
158
|
*/
|
|
@@ -260,15 +261,15 @@ export declare const FieldMessage: React.FC<{
|
|
|
260
261
|
* width is expanded to a 4-side record by the time the box renders, so the
|
|
261
262
|
* animation pipeline can treat per-side and shorthand the same way.
|
|
262
263
|
* `borderFocusedRepresentative` is a single colour pulled from the focused
|
|
263
|
-
* sides
|
|
264
|
+
* sides; exposed for consumers (Input's selectionColor) that need to mirror
|
|
264
265
|
* the visible focus indicator without re-resolving per side.
|
|
265
266
|
*/
|
|
266
267
|
interface ResolvedFieldColors {
|
|
267
268
|
backgroundIdleEmpty: string;
|
|
268
269
|
backgroundIdleFilled: string;
|
|
269
|
-
/** Optional override fill while focused
|
|
270
|
+
/** Optional override fill while focused; when undefined, focus animates from idle to idle (no fill change). */
|
|
270
271
|
backgroundFocused: string | undefined;
|
|
271
|
-
/** Optional override fill while in error
|
|
272
|
+
/** Optional override fill while in error; when undefined, error animates from idle to idle. */
|
|
272
273
|
backgroundError: string | undefined;
|
|
273
274
|
backgroundDisabled: string;
|
|
274
275
|
borderIdle: Record<FieldSide, string>;
|
|
@@ -276,7 +277,7 @@ interface ResolvedFieldColors {
|
|
|
276
277
|
borderError: Record<FieldSide, string>;
|
|
277
278
|
borderDisabled: Record<FieldSide, string>;
|
|
278
279
|
borderWidth: Record<FieldSide, number>;
|
|
279
|
-
/** Single representative colour from `borderFocused
|
|
280
|
+
/** Single representative colour from `borderFocused`: first non-transparent side, bottom-priority. */
|
|
280
281
|
borderFocusedRepresentative: string;
|
|
281
282
|
}
|
|
282
283
|
/**
|