@webority/mobile-ui 0.163.0 → 0.164.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/newarch/java/com/webority/mobileui/pdfrasterizer/PdfRasterizerModule.kt +4 -4
- package/dist/canvas-kit/kit.js +2 -2
- package/dist/canvas-kit/manifest.json +6 -1
- package/dist/canvas-kit/release.json +6 -6
- package/ios/PdfRasterizer.mm +3 -3
- package/lib/commonjs/utils/warnUnknownProps.js +1 -1
- package/lib/module/utils/warnUnknownProps.js +1 -1
- package/lib/typescript/commonjs/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +1 -1
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +4 -4
- package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +1 -1
- package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +4 -4
- package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +1 -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 +13 -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 +1 -1
- package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +7 -7
- package/lib/typescript/commonjs/components/Input/Input.d.ts +2 -2
- package/lib/typescript/commonjs/components/Modal/Modal.d.ts +1 -1
- package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +4 -4
- package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +4 -4
- package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +1 -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/SearchBar/SearchBar.d.ts +1 -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/Tabs/Tabs.d.ts +2 -2
- package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +1 -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/specs/NativePdfRasterizer.d.ts +4 -4
- package/lib/typescript/commonjs/theme/animatedValue.d.ts +4 -4
- 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/Autocomplete/Autocomplete.d.ts +1 -1
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +1 -1
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +4 -4
- package/lib/typescript/module/components/Carousel/Carousel.d.ts +1 -1
- package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +4 -4
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +1 -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 +13 -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 +1 -1
- package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +7 -7
- package/lib/typescript/module/components/Input/Input.d.ts +2 -2
- package/lib/typescript/module/components/Modal/Modal.d.ts +1 -1
- package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +4 -4
- package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +4 -4
- package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +1 -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/SearchBar/SearchBar.d.ts +1 -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/Tabs/Tabs.d.ts +2 -2
- package/lib/typescript/module/components/TagInput/TagInput.d.ts +1 -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/specs/NativePdfRasterizer.d.ts +4 -4
- package/lib/typescript/module/theme/animatedValue.d.ts +4 -4
- package/lib/typescript/module/utils/feedback.d.ts +3 -3
- package/lib/typescript/module/utils/warnUnknownProps.d.ts +2 -2
- package/package.json +7 -7
- package/src/specs/NativePdfRasterizer.ts +4 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"kind": "WeborityPhone",
|
|
3
3
|
"library": {
|
|
4
4
|
"name": "@webority/mobile-ui",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.164.0"
|
|
6
6
|
},
|
|
7
7
|
"rendererProtocolVersion": 14,
|
|
8
8
|
"platform": "Phone",
|
|
@@ -23006,6 +23006,11 @@
|
|
|
23006
23006
|
"version": "0.160.0",
|
|
23007
23007
|
"components": [],
|
|
23008
23008
|
"values": {}
|
|
23009
|
+
},
|
|
23010
|
+
{
|
|
23011
|
+
"version": "0.164.0",
|
|
23012
|
+
"components": [],
|
|
23013
|
+
"values": {}
|
|
23009
23014
|
}
|
|
23010
23015
|
]
|
|
23011
23016
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webority-phone",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.164.0",
|
|
4
4
|
"platform": "Phone",
|
|
5
5
|
"kitModuleVersion": 2,
|
|
6
6
|
"rendererProtocolVersion": 14,
|
|
7
7
|
"library": {
|
|
8
8
|
"name": "@webority/mobile-ui",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.164.0"
|
|
10
10
|
},
|
|
11
11
|
"files": {
|
|
12
12
|
"manifest.json": {
|
|
13
|
-
"sha256": "
|
|
14
|
-
"bytes":
|
|
13
|
+
"sha256": "a39d25029c533f90179a3c5d1f5bc74d6177011aa51eef88df9d564fc6dc8ab2",
|
|
14
|
+
"bytes": 668584
|
|
15
15
|
},
|
|
16
16
|
"kit.js": {
|
|
17
|
-
"sha256": "
|
|
18
|
-
"bytes":
|
|
17
|
+
"sha256": "289e5366486a32390ee180e3ba4e57c02374d2c04431d4babbf82bd52713abca",
|
|
18
|
+
"bytes": 5663399
|
|
19
19
|
},
|
|
20
20
|
"kit.css": {
|
|
21
21
|
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
package/ios/PdfRasterizer.mm
CHANGED
|
@@ -8,7 +8,7 @@ static NSString *const kCacheDirName = @"pdf-rasterizer-cache";
|
|
|
8
8
|
// Both render sides stay within this, scaled together so the aspect ratio holds.
|
|
9
9
|
static const CGFloat kMaxRenderDimensionPx = 4096;
|
|
10
10
|
|
|
11
|
-
// Wraps a CGPDFDocumentRef so ARC can own its lifetime inside an NSMutableDictionary
|
|
11
|
+
// Wraps a CGPDFDocumentRef so ARC can own its lifetime inside an NSMutableDictionary.
|
|
12
12
|
// CGPDFDocumentRef is a plain CF type with no toll-free-bridged Foundation counterpart.
|
|
13
13
|
@interface PdfRasterizerDocumentBox : NSObject
|
|
14
14
|
@property (nonatomic, assign, readonly) CGPDFDocumentRef document;
|
|
@@ -126,7 +126,7 @@ static CGAffineTransform PdfRasterizerFillTransform(CGPDFPageRef page, CGSize ta
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
if (CGPDFDocumentIsEncrypted(document)) {
|
|
129
|
-
// Only ever try the empty password
|
|
129
|
+
// Only ever try the empty password. A real password prompt is a UI
|
|
130
130
|
// concern the caller owns, not this module's job to solve.
|
|
131
131
|
CGPDFDocumentUnlockWithPassword(document, "");
|
|
132
132
|
if (!CGPDFDocumentIsUnlocked(document)) {
|
|
@@ -302,7 +302,7 @@ static CGAffineTransform PdfRasterizerFillTransform(CGPDFPageRef page, CGSize ta
|
|
|
302
302
|
[self.documents removeObjectForKey:handle];
|
|
303
303
|
|
|
304
304
|
NSString *cacheDir = [self cacheDirectoryForHandle:handle];
|
|
305
|
-
// Best-effort cleanup
|
|
305
|
+
// Best-effort cleanup: a stale cache dir on delete failure is not worth
|
|
306
306
|
// failing an otherwise-successful close over.
|
|
307
307
|
[[NSFileManager defaultManager] removeItemAtPath:cacheDir error:nil];
|
|
308
308
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnUnknownProps=void 0;var _mobileCore=require("@webority/mobile-core");const warnUnknownProps=(e,o)=>{if(!__DEV__||!o)return;const r=Object.keys(o).filter(e=>!isAllowed(e));0!==r.length&&_mobileCore.Logger.warn(`[${e}] received prop(s) it does not accept: ${r.join(", ")}. They were ignored
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnUnknownProps=void 0;var _mobileCore=require("@webority/mobile-core");const warnUnknownProps=(e,o)=>{if(!__DEV__||!o)return;const r=Object.keys(o).filter(e=>!isAllowed(e));0!==r.length&&_mobileCore.Logger.warn(`[${e}] received prop(s) it does not accept: ${r.join(", ")}. They were ignored: check for a rename or a typo against the component's props.`)};exports.warnUnknownProps=warnUnknownProps;const ALLOWED_EXACT=new Set(["children","key","ref","style","testID","collapsable","nativeID","pointerEvents","removeClippedSubviews","renderToHardwareTextureAndroid","shouldRasterizeIOS","needsOffscreenAlphaCompositing","hitSlop","onLayout","importantForAccessibility","role"]),ALLOWED_PREFIXES=["accessibility","aria-","on","data-"],isAllowed=e=>ALLOWED_EXACT.has(e)||ALLOWED_PREFIXES.some(o=>e.startsWith(o));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{Logger}from"@webority/mobile-core";export const warnUnknownProps=(e,o)=>{if(!__DEV__||!o)return;const r=Object.keys(o).filter(e=>!isAllowed(e));0!==r.length&&Logger.warn(`[${e}] received prop(s) it does not accept: ${r.join(", ")}. They were ignored
|
|
1
|
+
"use strict";import{Logger}from"@webority/mobile-core";export const warnUnknownProps=(e,o)=>{if(!__DEV__||!o)return;const r=Object.keys(o).filter(e=>!isAllowed(e));0!==r.length&&Logger.warn(`[${e}] received prop(s) it does not accept: ${r.join(", ")}. They were ignored: check for a rename or a typo against the component's props.`)};const ALLOWED_EXACT=new Set(["children","key","ref","style","testID","collapsable","nativeID","pointerEvents","removeClippedSubviews","renderToHardwareTextureAndroid","shouldRasterizeIOS","needsOffscreenAlphaCompositing","hitSlop","onLayout","importantForAccessibility","role"]),ALLOWED_PREFIXES=["accessibility","aria-","on","data-"],isAllowed=e=>ALLOWED_EXACT.has(e)||ALLOWED_PREFIXES.some(o=>e.startsWith(o));
|
|
@@ -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
|
*/
|
|
@@ -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;
|
|
@@ -166,14 +166,14 @@ export interface BottomSheetProps {
|
|
|
166
166
|
testID?: string | undefined;
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
|
-
* State + actions exposed to anything rendered inside a `<BottomSheet
|
|
169
|
+
* State + actions exposed to anything rendered inside a `<BottomSheet>`,
|
|
170
170
|
* including the `header` and `footer` slots. Read via `useBottomSheet()`.
|
|
171
171
|
*
|
|
172
172
|
* `snapIndex` is the JS-thread mirror of the current snap point. -1 means the
|
|
173
173
|
* sheet is closed (mid-close-animation included). Use it to drive footer
|
|
174
174
|
* button enable state, conditional headers, etc. If you need per-frame
|
|
175
175
|
* progress (e.g. fade a header in as the sheet expands), reach for the
|
|
176
|
-
* animated value via a future enhancement
|
|
176
|
+
* animated value via a future enhancement, not exposed today to keep the
|
|
177
177
|
* surface minimal.
|
|
178
178
|
*/
|
|
179
179
|
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`.
|
|
@@ -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.
|
|
@@ -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;
|
|
@@ -151,7 +151,7 @@ export interface FieldBaseProps {
|
|
|
151
151
|
* Resolved text styling for the editable / displayed content inside a field.
|
|
152
152
|
* Single source of truth so every field component (Input, NumberInput,
|
|
153
153
|
* Select, SearchBar, PickerTrigger) renders identical colour + weight +
|
|
154
|
-
* fontFamily for value text
|
|
154
|
+
* fontFamily for value text, and reads the placeholder colour from the
|
|
155
155
|
* same place. OTPInput intentionally overrides this with its own semibold
|
|
156
156
|
* display weight.
|
|
157
157
|
*/
|
|
@@ -260,15 +260,15 @@ export declare const FieldMessage: React.FC<{
|
|
|
260
260
|
* width is expanded to a 4-side record by the time the box renders, so the
|
|
261
261
|
* animation pipeline can treat per-side and shorthand the same way.
|
|
262
262
|
* `borderFocusedRepresentative` is a single colour pulled from the focused
|
|
263
|
-
* sides
|
|
263
|
+
* sides; exposed for consumers (Input's selectionColor) that need to mirror
|
|
264
264
|
* the visible focus indicator without re-resolving per side.
|
|
265
265
|
*/
|
|
266
266
|
interface ResolvedFieldColors {
|
|
267
267
|
backgroundIdleEmpty: string;
|
|
268
268
|
backgroundIdleFilled: string;
|
|
269
|
-
/** Optional override fill while focused
|
|
269
|
+
/** Optional override fill while focused; when undefined, focus animates from idle to idle (no fill change). */
|
|
270
270
|
backgroundFocused: string | undefined;
|
|
271
|
-
/** Optional override fill while in error
|
|
271
|
+
/** Optional override fill while in error; when undefined, error animates from idle to idle. */
|
|
272
272
|
backgroundError: string | undefined;
|
|
273
273
|
backgroundDisabled: string;
|
|
274
274
|
borderIdle: Record<FieldSide, string>;
|
|
@@ -276,7 +276,7 @@ interface ResolvedFieldColors {
|
|
|
276
276
|
borderError: Record<FieldSide, string>;
|
|
277
277
|
borderDisabled: Record<FieldSide, string>;
|
|
278
278
|
borderWidth: Record<FieldSide, number>;
|
|
279
|
-
/** Single representative colour from `borderFocused
|
|
279
|
+
/** Single representative colour from `borderFocused`: first non-transparent side, bottom-priority. */
|
|
280
280
|
borderFocusedRepresentative: string;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* FilePicker
|
|
2
|
+
* FilePicker: attachment picking UI with pluggable native sources.
|
|
3
3
|
*
|
|
4
4
|
* The library owns the UI and behaviour: trigger (dashed card / list row /
|
|
5
5
|
* custom render prop), the source-chooser sheet (shared OptionSheet), enforced
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* reflects them back via per-file `status` / `progress` and gets retry
|
|
18
18
|
* taps through `onRetry`.
|
|
19
19
|
* - Heavy processing. The async `process` hook runs per accepted file
|
|
20
|
-
* (compression, EXIF strip, local copy) before it lands in `files
|
|
20
|
+
* (compression, EXIF strip, local copy) before it lands in `files`;
|
|
21
21
|
* plug the app's image pipeline in there.
|
|
22
22
|
*/
|
|
23
23
|
import type { PickedFile, PickerSource } from "@webority/mobile-core/pickers";
|
|
@@ -27,7 +27,7 @@ import type { HapticType } from "../../utils";
|
|
|
27
27
|
export type FilePickerVariant = "card" | "list";
|
|
28
28
|
export type FilePickerFileStatus = "idle" | "processing" | "uploading" | "done" | "error";
|
|
29
29
|
export interface FilePickerFile {
|
|
30
|
-
/** Stable identity
|
|
30
|
+
/** Stable identity, generated by the library when the source doesn't provide one. */
|
|
31
31
|
id: string;
|
|
32
32
|
name: string;
|
|
33
33
|
/** Local content URI (freshly picked files). */
|
|
@@ -40,13 +40,13 @@ export interface FilePickerFile {
|
|
|
40
40
|
type?: string | undefined;
|
|
41
41
|
/** Bytes. */
|
|
42
42
|
bytes?: number | undefined;
|
|
43
|
-
/** Display-only upload state
|
|
43
|
+
/** Display-only upload state: the app sets these, the library renders them. */
|
|
44
44
|
status?: FilePickerFileStatus | undefined;
|
|
45
|
-
/** 0
|
|
45
|
+
/** 0-1, rendered while `status === 'uploading'`. */
|
|
46
46
|
progress?: number | undefined;
|
|
47
47
|
/** Shown on the file while `status === 'error'`. */
|
|
48
48
|
error?: string | undefined;
|
|
49
|
-
/** Consumer payload
|
|
49
|
+
/** Consumer payload, preserved untouched through every operation. */
|
|
50
50
|
meta?: Record<string, unknown> | undefined;
|
|
51
51
|
}
|
|
52
52
|
/** Launch native picking through `pick()`: resolve `[]` for user-cancel, throw for real failures. */
|
|
@@ -110,11 +110,11 @@ export interface FilePickerProps {
|
|
|
110
110
|
/** Native picking adapters. One source launches directly; several open the chooser sheet. */
|
|
111
111
|
sources: ReadonlyArray<FilePickerSource>;
|
|
112
112
|
maxFiles?: number | undefined;
|
|
113
|
-
/** Per-file size cap
|
|
113
|
+
/** Per-file size cap; oversized picks are rejected with a visible error. */
|
|
114
114
|
maxSizeMB?: number | undefined;
|
|
115
115
|
/** Accepted mime globs, e.g. `['image/*', 'application/pdf']`. Unset = accept all. */
|
|
116
116
|
accept?: ReadonlyArray<string> | undefined;
|
|
117
|
-
/** Custom per-file rule
|
|
117
|
+
/** Custom per-file rule: return an error string to reject. */
|
|
118
118
|
validate?: ((file: FilePickerFile) => string | null | undefined) | undefined;
|
|
119
119
|
/**
|
|
120
120
|
* Async per-file transform between pick and `files` (compression, local
|
|
@@ -131,7 +131,7 @@ export interface FilePickerProps {
|
|
|
131
131
|
disabled?: boolean | undefined;
|
|
132
132
|
/** Hint under the trigger (e.g. "Up to 5 files, max 100MB each."). */
|
|
133
133
|
helperText?: string | undefined;
|
|
134
|
-
/** External error
|
|
134
|
+
/** External error. It wins over internal validation errors (form binding). */
|
|
135
135
|
error?: React.ReactNode | undefined;
|
|
136
136
|
labels?: Partial<FilePickerLabels> | undefined;
|
|
137
137
|
/** Haptics for pick/remove (selection) and rejections (error). Pass false to disable. */
|
|
@@ -141,7 +141,7 @@ export interface FilePickerProps {
|
|
|
141
141
|
onRemove?: ((file: FilePickerFile) => void) | undefined;
|
|
142
142
|
/** Each rejection message (also shown as the field error). */
|
|
143
143
|
onError?: ((message: string, file?: FilePickerFile) => void) | undefined;
|
|
144
|
-
/** Tap on a file tile/row
|
|
144
|
+
/** Tap on a file tile/row: wire previews (ImageGallery) here. */
|
|
145
145
|
onFilePress?: ((file: FilePickerFile) => void) | undefined;
|
|
146
146
|
/** When set, files with `status 'error'` show a retry affordance that calls this. */
|
|
147
147
|
onRetry?: ((file: FilePickerFile) => void) | undefined;
|
|
@@ -13,7 +13,7 @@ export interface ForceUpdateDialogProps {
|
|
|
13
13
|
/** Called when the dialog is dismissed (only fired when `mandatory` is `false`). */
|
|
14
14
|
onClose?: (() => void) | undefined;
|
|
15
15
|
/**
|
|
16
|
-
* If `true`, hides the "Later" action and disables backdrop dismissal
|
|
16
|
+
* If `true`, hides the "Later" action and disables backdrop dismissal;
|
|
17
17
|
* use this for major version bumps that must not be skipped.
|
|
18
18
|
*/
|
|
19
19
|
mandatory?: boolean | undefined;
|
|
@@ -37,7 +37,7 @@ export interface ForceUpdateDialogProps {
|
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Drop-in update prompt that opens the App Store / Play Store on tap.
|
|
40
|
-
* Pair this with `useVersionCheck()
|
|
40
|
+
* Pair this with `useVersionCheck()`: render it when `isUpdateRequired` is true.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* const { isUpdateRequired, updateUrl } = useVersionCheck(isAppReady);
|
|
@@ -39,7 +39,7 @@ export interface FormFieldProps {
|
|
|
39
39
|
/**
|
|
40
40
|
* Style override for the wrapper View that hosts `children` (the input slot).
|
|
41
41
|
* Useful for the `inline` layout when callers need to tweak the right-hand
|
|
42
|
-
* column (e.g., set a max width, align differently). Additive only
|
|
42
|
+
* column (e.g., set a max width, align differently). Additive only; the
|
|
43
43
|
* library's base style still applies underneath.
|
|
44
44
|
*/
|
|
45
45
|
inputContainerStyle?: StyleProp<ViewStyle> | undefined;
|
|
@@ -28,7 +28,7 @@ export interface IconButtonProps {
|
|
|
28
28
|
*/
|
|
29
29
|
iconVariant?: IconVariant | undefined;
|
|
30
30
|
onPress?: ((e: GestureResponderEvent) => void) | undefined;
|
|
31
|
-
/** Required
|
|
31
|
+
/** Required: icon-only controls need an accessible name. */
|
|
32
32
|
accessibilityLabel: string;
|
|
33
33
|
/** Read after the name, never drawn: what the press does, for a control whose name alone is not enough. */
|
|
34
34
|
accessibilityHint?: string | undefined;
|
|
@@ -38,7 +38,7 @@ export interface IconButtonProps {
|
|
|
38
38
|
variant?: IconButtonVariant | undefined;
|
|
39
39
|
size?: IconButtonSize | undefined;
|
|
40
40
|
shape?: IconButtonShape | undefined;
|
|
41
|
-
/** Selected/active
|
|
41
|
+
/** Selected/active: renders filled (solid) regardless of `variant` (e.g. an active nav tile). */
|
|
42
42
|
active?: boolean | undefined;
|
|
43
43
|
disabled?: boolean | undefined;
|
|
44
44
|
loading?: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* ImageGallery
|
|
2
|
+
* ImageGallery: themed gallery built on top of Carousel.
|
|
3
3
|
*
|
|
4
4
|
* Base view: a Carousel of cover-fitted images with optional thumbnails strip
|
|
5
5
|
* and counter pill. Tapping an image opens a fullscreen Lightbox that re-uses
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* InlineSelect
|
|
2
|
+
* InlineSelect: a compact, borderless select trigger for inside other fields.
|
|
3
3
|
*
|
|
4
4
|
* Renders just the selected label + chevron (no FieldBase box) and opens the
|
|
5
5
|
* shared OptionSheet picker. Designed to live in Input's `leftIcon` /
|
|
6
|
-
* `rightIcon` slots
|
|
7
|
-
* phone field, unit suffix on a measurement
|
|
6
|
+
* `rightIcon` slots (currency prefix on an amount field, country code on a
|
|
7
|
+
* phone field, unit suffix on a measurement), but works anywhere a bare
|
|
8
8
|
* dropdown trigger is needed (toolbars, list headers).
|
|
9
9
|
*
|
|
10
10
|
* Single-select only by design: a multi-select crammed into a field affix has
|
|
@@ -35,7 +35,7 @@ export interface InlineSelectLabels {
|
|
|
35
35
|
}
|
|
36
36
|
export declare const DEFAULT_INLINE_SELECT_LABELS: InlineSelectLabels;
|
|
37
37
|
export interface InlineSelectProps<T = SelectOption> {
|
|
38
|
-
/** Same contract as Select's `options
|
|
38
|
+
/** Same contract as Select's `options`: `SelectOption` shape by default, accessors for anything else. */
|
|
39
39
|
options: ReadonlyArray<T>;
|
|
40
40
|
/** Defaults to the option's `label` field when it is a `SelectOption`. */
|
|
41
41
|
getOptionLabel?: ((option: T) => string) | undefined;
|
|
@@ -82,7 +82,7 @@ export interface InlineSelectProps<T = SelectOption> {
|
|
|
82
82
|
* (`text-disabled` when disabled).
|
|
83
83
|
*/
|
|
84
84
|
color?: string | undefined;
|
|
85
|
-
/** Chevron colour override
|
|
85
|
+
/** Chevron colour override. Falls back to `color`'s resolution. */
|
|
86
86
|
chevronColor?: string | undefined;
|
|
87
87
|
/** Chevron size in pixels. Default: the field size's `icon`. */
|
|
88
88
|
chevronSize?: number | undefined;
|
|
@@ -90,11 +90,11 @@ export interface InlineSelectProps<T = SelectOption> {
|
|
|
90
90
|
style?: StyleProp<ViewStyle> | undefined;
|
|
91
91
|
/** Style for every option row in the sheet (padding, background, …). */
|
|
92
92
|
optionStyle?: StyleProp<ViewStyle> | undefined;
|
|
93
|
-
/** Extra style for the selected option row
|
|
93
|
+
/** Extra style for the selected option row. It wins over `optionStyle` and the default selected fill. */
|
|
94
94
|
selectedOptionStyle?: StyleProp<ViewStyle> | undefined;
|
|
95
95
|
/** Style for every option's label text in the sheet. */
|
|
96
96
|
optionTextStyle?: StyleProp<TextStyle> | undefined;
|
|
97
|
-
/** Extra style for the selected option's label text
|
|
97
|
+
/** Extra style for the selected option's label text. It wins over `optionTextStyle` and the default selected colour. */
|
|
98
98
|
selectedOptionTextStyle?: StyleProp<TextStyle> | undefined;
|
|
99
99
|
accessibilityLabel?: string | undefined;
|
|
100
100
|
testID?: string | undefined;
|
|
@@ -103,7 +103,7 @@ export interface InputProps extends Omit<TextInputProps, "style"> {
|
|
|
103
103
|
/** Trailing slot; same contract as `leftIcon`. */
|
|
104
104
|
rightIcon?: InputSlotIcon | undefined;
|
|
105
105
|
/**
|
|
106
|
-
* A fixed unit drawn after the value in the trailing slot
|
|
106
|
+
* A fixed unit drawn after the value in the trailing slot: `'km'`, `'%'`,
|
|
107
107
|
* `'/month'`. Same prop and same look as NumberInput's `unit`: the field's
|
|
108
108
|
* font size in the placeholder colour, so it reads as part of the field
|
|
109
109
|
* rather than of what was typed. Sits before `rightIcon` when both are set;
|
|
@@ -160,7 +160,7 @@ export interface InputProps extends Omit<TextInputProps, "style"> {
|
|
|
160
160
|
*/
|
|
161
161
|
format?: ((raw: string) => string) | undefined;
|
|
162
162
|
/**
|
|
163
|
-
* Reverse of `format
|
|
163
|
+
* Reverse of `format`: strips the formatted display back to the canonical
|
|
164
164
|
* value the consumer wants in state. If omitted, defaults to identity.
|
|
165
165
|
*/
|
|
166
166
|
parse?: ((formatted: string) => string) | undefined;
|
|
@@ -41,7 +41,7 @@ export interface ModalProps {
|
|
|
41
41
|
restoreFocusRef?: React.RefObject<HostInstance | null> | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* Fired once after the modal closes, MODAL_DISMISS_GRACE_MS after `open`
|
|
44
|
-
* flips false
|
|
44
|
+
* flips false, the earliest point it is safe to unmount the surrounding
|
|
45
45
|
* tree (navigate away, flip auth state) without racing the native dismiss
|
|
46
46
|
* on Android. Sequence follow-up work (or a follow-up modal) from here.
|
|
47
47
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* OptionSheet
|
|
2
|
+
* OptionSheet: the shared bottom-sheet option picker.
|
|
3
3
|
*
|
|
4
4
|
* The picker behind Select and InlineSelect, exported so an app can open the
|
|
5
5
|
* same sheet from its own trigger: a slide-up sheet built on the library
|
|
@@ -117,16 +117,16 @@ export interface OptionSheetProps<T = SelectOption> {
|
|
|
117
117
|
/** Multi mode: checkboxes + Done footer instead of the selected dot. */
|
|
118
118
|
multi?: boolean | undefined;
|
|
119
119
|
searchable?: boolean | undefined;
|
|
120
|
-
/** Caret/selection colour of the search input
|
|
120
|
+
/** Caret/selection colour of the search input; callers mirror their focus colour. Default: `colors["focus-ring"]`. */
|
|
121
121
|
searchSelectionColor?: string | undefined;
|
|
122
122
|
accessibilityLabel?: string | undefined;
|
|
123
123
|
/** Style for every option row container (padding, background, etc.). Wins over the row defaults. */
|
|
124
124
|
optionStyle?: StyleProp<ViewStyle> | undefined;
|
|
125
|
-
/** Extra style merged onto the selected option row
|
|
125
|
+
/** Extra style merged onto the selected option row. It wins over `optionStyle` and the default selected fill. */
|
|
126
126
|
selectedOptionStyle?: StyleProp<ViewStyle> | undefined;
|
|
127
127
|
/** Style for every option's label text. Wins over the label defaults. */
|
|
128
128
|
optionTextStyle?: StyleProp<TextStyle> | undefined;
|
|
129
|
-
/** Extra style merged onto the selected option's label text
|
|
129
|
+
/** Extra style merged onto the selected option's label text. It wins over `optionTextStyle` and the default selected colour. */
|
|
130
130
|
selectedOptionTextStyle?: StyleProp<TextStyle> | undefined;
|
|
131
131
|
/** The haptic for the sheet's own open and dismiss; false turns it off. Default: the Modal's default. */
|
|
132
132
|
haptic?: HapticType | false | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* PickerTrigger
|
|
2
|
+
* PickerTrigger: the tappable input field that opens a modal picker.
|
|
3
3
|
*
|
|
4
4
|
* Standalone read-only field built on FieldBase, used by DatePicker,
|
|
5
5
|
* TimePicker and DateRangePicker (and any consumer-built picker) to render
|
|
6
6
|
* the closed-state row that matches Input / Select pixel-for-pixel.
|
|
7
7
|
*
|
|
8
|
-
* The component is purely visual + interactive
|
|
8
|
+
* The component is purely visual + interactive; it does not own picker
|
|
9
9
|
* state. Consumers either:
|
|
10
10
|
* - Use the built-in trigger mode on a picker, which composes this
|
|
11
11
|
* internally and manages its own open/close.
|
|
@@ -44,7 +44,7 @@ export interface PickerTriggerProps {
|
|
|
44
44
|
* `theme.settings.components.field.requiredMarker` (default `'*'`).
|
|
45
45
|
*/
|
|
46
46
|
required?: boolean | undefined;
|
|
47
|
-
/** Tap handler
|
|
47
|
+
/** Tap handler: typically opens the modal picker. */
|
|
48
48
|
onPress: () => void;
|
|
49
49
|
/** Render a clear (×) affordance when `value` is non-empty. */
|
|
50
50
|
clearable?: boolean | undefined;
|
|
@@ -52,7 +52,7 @@ export interface PickerTriggerProps {
|
|
|
52
52
|
onClear?: (() => void) | undefined;
|
|
53
53
|
/** Left icon slot (e.g. calendar / clock). */
|
|
54
54
|
leftIcon?: React.ReactNode | undefined;
|
|
55
|
-
/** Trailing slot
|
|
55
|
+
/** Trailing slot: defaults to a chevron when unset. Pass `null` to suppress. */
|
|
56
56
|
trailing?: React.ReactNode | undefined;
|
|
57
57
|
disabled?: boolean | undefined;
|
|
58
58
|
size?: PickerTriggerSize | undefined;
|
|
@@ -7,7 +7,7 @@ export interface ProgressBarLabels {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const DEFAULT_PROGRESS_BAR_LABELS: Readonly<ProgressBarLabels>;
|
|
9
9
|
export interface ProgressBarSegment {
|
|
10
|
-
/** Fraction of the full track (0
|
|
10
|
+
/** Fraction of the full track (0-1). */
|
|
11
11
|
value: number;
|
|
12
12
|
/** Explicit colour; falls back to `tone`. */
|
|
13
13
|
color?: string | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* RadioDot
|
|
2
|
+
* RadioDot: the bare animated radio indicator (ring + spring-scaled dot).
|
|
3
3
|
*
|
|
4
4
|
* Extracted from Radio so custom option templates (ChoiceGroup `renderOption`,
|
|
5
5
|
* bespoke cards) can embed the standard indicator without rebuilding the
|
|
6
|
-
* animation or the disabled/selected colour rules. Purely visual
|
|
6
|
+
* animation or the disabled/selected colour rules. Purely visual: no press
|
|
7
7
|
* handling, no a11y role; the parent control owns those.
|
|
8
8
|
*/
|
|
9
9
|
import type React from "react";
|