@aramiworks/design-app 1.3.0 → 1.4.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/index.d.mts +297 -134
- package/dist/index.d.ts +297 -134
- package/dist/index.js +1321 -1267
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1255 -1201
- package/dist/index.mjs.map +1 -1
- package/manifest.json +45 -22
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -164,8 +164,17 @@ interface AlertDialogProps {
|
|
|
164
164
|
/** Controlled confirm dialog over a scrim, with cancel and confirm buttons. */
|
|
165
165
|
declare function AlertDialog({ open, title, description, confirmLabel, cancelLabel, destructive, onConfirm, onCancel, testID, confirmLoading, confirmLoadingLabel, error, }: AlertDialogProps): react_jsx_runtime.JSX.Element;
|
|
166
166
|
|
|
167
|
-
/** A
|
|
168
|
-
interface
|
|
167
|
+
/** A small button after the input, e.g. "Add" for an inline add field. */
|
|
168
|
+
interface TextFieldAction {
|
|
169
|
+
label: string;
|
|
170
|
+
onPress: () => void;
|
|
171
|
+
disabled?: boolean;
|
|
172
|
+
testID?: string;
|
|
173
|
+
}
|
|
174
|
+
/** `text`: free text; `amount`: a number with a digits or decimal keyboard and an optional unit. */
|
|
175
|
+
type TextFieldKind = "text" | "amount";
|
|
176
|
+
/** `amount`: a quick-pick chip under the field; pressing it replaces the text with `value`. */
|
|
177
|
+
interface TextFieldPreset {
|
|
169
178
|
/** Text the field takes when pressed, formatted like the app's input. */
|
|
170
179
|
value: string;
|
|
171
180
|
/** Chip label, e.g. "+10" or "50". */
|
|
@@ -173,7 +182,56 @@ interface AmountInputPreset {
|
|
|
173
182
|
testID?: string;
|
|
174
183
|
}
|
|
175
184
|
/** Where the unit sits: before the number ("$ 12") or after it ("12 kg"). */
|
|
176
|
-
type
|
|
185
|
+
type TextFieldUnitPosition = "prefix" | "suffix";
|
|
186
|
+
interface TextFieldProps {
|
|
187
|
+
/** The text as typed; the field is controlled. Parsing and grouping are the app's job. */
|
|
188
|
+
value: string;
|
|
189
|
+
onChangeText: (text: string) => void;
|
|
190
|
+
/** Visible label above the field; also the input's accessible name. */
|
|
191
|
+
label?: string;
|
|
192
|
+
/** Muted text while empty; the accessible name when there is no label. */
|
|
193
|
+
placeholder?: string;
|
|
194
|
+
/** Defaults to `text`. */
|
|
195
|
+
kind?: TextFieldKind;
|
|
196
|
+
/** `text` only: a box that grows with its text (from three lines) instead of one 44px line. */
|
|
197
|
+
multiline?: boolean;
|
|
198
|
+
/** Maximum number of characters the input accepts. */
|
|
199
|
+
maxLength?: number;
|
|
200
|
+
/** Inline error under the field; also outlines it in destructive. */
|
|
201
|
+
error?: string | null;
|
|
202
|
+
/** False while the form is busy; dims the field. Defaults to true. */
|
|
203
|
+
editable?: boolean;
|
|
204
|
+
/** `text` only: an optional small button after the input. */
|
|
205
|
+
action?: TextFieldAction;
|
|
206
|
+
/** Called with the current text when the keyboard's return key is pressed (single line only). */
|
|
207
|
+
onSubmit?: (text: string) => void;
|
|
208
|
+
/** Focuses the input on mount, e.g. an add field that just opened. */
|
|
209
|
+
autoFocus?: boolean;
|
|
210
|
+
testID?: string;
|
|
211
|
+
/** `amount` only: currency or unit shown inside the field, e.g. "$" or "kg". */
|
|
212
|
+
unit?: string;
|
|
213
|
+
/** `amount` only. Defaults to `suffix`. */
|
|
214
|
+
unitPosition?: TextFieldUnitPosition;
|
|
215
|
+
/** `amount` only: a decimal keyboard instead of digits only. */
|
|
216
|
+
allowDecimal?: boolean;
|
|
217
|
+
/** `amount` only: muted read-back line under the field, e.g. the amount in words. */
|
|
218
|
+
hint?: string;
|
|
219
|
+
/** `amount` only: quick-pick chips under the field; the one whose value equals the field is selected. */
|
|
220
|
+
presets?: TextFieldPreset[];
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* One labelled text field outside a FormSection: a single line or a growing multiline box,
|
|
224
|
+
* an inline error and an optional small button after the input. `kind="amount"` makes it a
|
|
225
|
+
* numeric field with an optional unit before or after the number, a read-back hint and
|
|
226
|
+
* preset chips.
|
|
227
|
+
*/
|
|
228
|
+
declare function TextField({ value, onChangeText, label, placeholder, kind, multiline, maxLength, error, editable, action, onSubmit, autoFocus, testID, unit, unitPosition, allowDecimal, hint, presets, }: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
229
|
+
|
|
230
|
+
/** @deprecated Use `TextFieldPreset`. */
|
|
231
|
+
type AmountInputPreset = TextFieldPreset;
|
|
232
|
+
/** @deprecated Use `TextFieldUnitPosition`. */
|
|
233
|
+
type AmountInputUnitPosition = TextFieldUnitPosition;
|
|
234
|
+
/** @deprecated Use `TextFieldProps` with `kind: "amount"`. */
|
|
177
235
|
interface AmountInputProps {
|
|
178
236
|
/** The text as typed; parsing and grouping are the app's job. */
|
|
179
237
|
value: string;
|
|
@@ -192,16 +250,17 @@ interface AmountInputProps {
|
|
|
192
250
|
/** False while the form is busy. Defaults to true. */
|
|
193
251
|
editable?: boolean;
|
|
194
252
|
testID?: string;
|
|
195
|
-
/** Muted read-back line under the field, formatted by the app
|
|
253
|
+
/** Muted read-back line under the field, formatted by the app. */
|
|
196
254
|
hint?: string;
|
|
197
|
-
/** Quick-pick chips under the field
|
|
255
|
+
/** Quick-pick chips under the field. */
|
|
198
256
|
presets?: AmountInputPreset[];
|
|
199
257
|
}
|
|
200
258
|
/**
|
|
201
|
-
* Numeric amount field
|
|
202
|
-
*
|
|
259
|
+
* Numeric amount field.
|
|
260
|
+
*
|
|
261
|
+
* @deprecated Use `<TextField kind="amount" />`; AmountInput is removed in 2.0.
|
|
203
262
|
*/
|
|
204
|
-
declare function AmountInput(
|
|
263
|
+
declare function AmountInput(props: AmountInputProps): react_jsx_runtime.JSX.Element;
|
|
205
264
|
|
|
206
265
|
interface AppBarAction {
|
|
207
266
|
/** Visible text, or the accessibility label when `icon` is set. */
|
|
@@ -269,6 +328,8 @@ interface BarChartCardProps {
|
|
|
269
328
|
* Small bar chart card: a title, an optional caption and one bar per item with a label
|
|
270
329
|
* below. Bar heights are relative to `max`. The chart is announced as one image whose
|
|
271
330
|
* label lists every bar.
|
|
331
|
+
*
|
|
332
|
+
* @deprecated No app uses it; removed in the next major release.
|
|
272
333
|
*/
|
|
273
334
|
declare function BarChartCard({ title, caption, bars, max, formatValue, emptyLabel, testID, }: BarChartCardProps): react_jsx_runtime.JSX.Element;
|
|
274
335
|
|
|
@@ -489,20 +550,23 @@ interface EmptyStateAction {
|
|
|
489
550
|
/**
|
|
490
551
|
* `screen`: centered, large icon, fills an empty screen; `inline`: compact dashed card
|
|
491
552
|
* inside a section, text only; `card`: a tinted card with an icon tile and small actions,
|
|
492
|
-
* e.g. a first-run welcome inside a dashboard
|
|
553
|
+
* e.g. a first-run welcome inside a dashboard; `error`: compact, centered and announced as
|
|
554
|
+
* an alert, with a destructive title, an optional code line and outlined pill actions.
|
|
493
555
|
*/
|
|
494
|
-
type EmptyStateVariant = "screen" | "inline" | "card";
|
|
556
|
+
type EmptyStateVariant = "screen" | "inline" | "card" | "error";
|
|
495
557
|
interface EmptyStateProps {
|
|
496
558
|
/** Ionicons name: large and muted above the title (`screen`), or in the icon tile (`card`). */
|
|
497
559
|
icon?: IconName;
|
|
498
560
|
title: string;
|
|
499
561
|
/** Muted line under the title. */
|
|
500
562
|
description?: string;
|
|
563
|
+
/** Small muted technical line under the description (`error` only), formatted by the app, e.g. "Code: not-allowed". */
|
|
564
|
+
code?: string;
|
|
501
565
|
/** Tappable starter prompts shown as SuggestionChips (`screen` only). */
|
|
502
566
|
suggestions?: SuggestionChipsItem[];
|
|
503
|
-
/** Filled button under the text (`screen` and `card`). */
|
|
567
|
+
/** Filled button under the text (`screen` and `card`); an outlined pill (`error`). */
|
|
504
568
|
primaryAction?: EmptyStateAction;
|
|
505
|
-
/** Text button after the primary action (`screen` and `
|
|
569
|
+
/** Text button after the primary action (`screen`, `card` and `error`). */
|
|
506
570
|
secondaryAction?: EmptyStateAction;
|
|
507
571
|
/** Defaults to `screen`. */
|
|
508
572
|
variant?: EmptyStateVariant;
|
|
@@ -517,7 +581,7 @@ interface EmptyStateProps {
|
|
|
517
581
|
* optional description, suggestion chips and calls to action; a compact dashed card inside
|
|
518
582
|
* a section; or a tinted card with an icon tile and small actions.
|
|
519
583
|
*/
|
|
520
|
-
declare function EmptyState({ icon, title, description, suggestions, primaryAction, secondaryAction, variant, testID, loading, loadingLabel, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
584
|
+
declare function EmptyState({ icon, title, description, code, suggestions, primaryAction, secondaryAction, variant, testID, loading, loadingLabel, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
521
585
|
|
|
522
586
|
/** Small read-only star rating at the end of the title line. */
|
|
523
587
|
interface EntryCardRating {
|
|
@@ -585,7 +649,12 @@ interface ErrorStateProps {
|
|
|
585
649
|
/** Optional text button beside the action, such as going back. */
|
|
586
650
|
secondaryAction?: ErrorStateAction;
|
|
587
651
|
}
|
|
588
|
-
/**
|
|
652
|
+
/**
|
|
653
|
+
* Compact, centered error announced as an alert: title, optional message, code and up to two actions.
|
|
654
|
+
*
|
|
655
|
+
* @deprecated Use `EmptyState` with `variant="error"` (`message` → `description`, `action` →
|
|
656
|
+
* `primaryAction`). Removed in the next major release.
|
|
657
|
+
*/
|
|
589
658
|
declare function ErrorState({ title, message, code, action, testID, secondaryAction, }: ErrorStateProps): react_jsx_runtime.JSX.Element;
|
|
590
659
|
|
|
591
660
|
interface FilterChipGroupOption<T extends string = string> {
|
|
@@ -711,22 +780,42 @@ declare function FloatingCard({ title, subtitle, meta, thumbnailUri, onPress, ac
|
|
|
711
780
|
|
|
712
781
|
/** `background`: the screen color, 44px, for a canvas; `card`: the card color, 40px, over images. */
|
|
713
782
|
type FloatingIconButtonTone = "background" | "card";
|
|
783
|
+
/**
|
|
784
|
+
* `md`: the floating look, sized by `tone`, with a shadow, dimming while pressed. `sm`: a
|
|
785
|
+
* 36px button on the screen color with a border, no shadow and a muted 18px glyph, for
|
|
786
|
+
* sitting over a list.
|
|
787
|
+
*/
|
|
788
|
+
type FloatingIconButtonSize = "md" | "sm";
|
|
789
|
+
/** `none`: the parent positions it. `bottom-center`: absolute, 12px above its parent's bottom edge, centered. */
|
|
790
|
+
type FloatingIconButtonPlacement = "none" | "bottom-center";
|
|
714
791
|
interface FloatingIconButtonProps {
|
|
715
792
|
/** Ionicons name, e.g. "locate-outline" or "arrow-back". */
|
|
716
793
|
icon: IconName;
|
|
717
|
-
/** Accessible name of the button. */
|
|
794
|
+
/** Accessible name of the button; a badge count is appended, e.g. "Scroll to latest (3)". */
|
|
718
795
|
label: string;
|
|
719
796
|
onPress: () => void;
|
|
720
|
-
/** Defaults to `background`. */
|
|
797
|
+
/** `md` only. Defaults to `background`. */
|
|
721
798
|
tone?: FloatingIconButtonTone;
|
|
799
|
+
/** Defaults to `md`. */
|
|
800
|
+
size?: FloatingIconButtonSize;
|
|
801
|
+
/** Count shown as a primary badge on the top right when above 0; capped at "99+". */
|
|
802
|
+
count?: number;
|
|
803
|
+
/**
|
|
804
|
+
* When set, the button fades in over 200ms as it turns true and renders nothing while
|
|
805
|
+
* false, e.g. a jump-to-latest button that shows once a list scrolls away. Unset: always shown.
|
|
806
|
+
*/
|
|
807
|
+
visible?: boolean;
|
|
808
|
+
/** Defaults to `none`. */
|
|
809
|
+
placement?: FloatingIconButtonPlacement;
|
|
722
810
|
testID?: string;
|
|
723
811
|
}
|
|
724
812
|
/**
|
|
725
|
-
* Round, bordered icon button
|
|
726
|
-
* "Recenter" on a map
|
|
727
|
-
*
|
|
813
|
+
* Round, bordered icon button that floats over a canvas, an image or a list, such as
|
|
814
|
+
* "Recenter" on a map, a back button over a photo or a jump-to-latest button in a chat.
|
|
815
|
+
* Optional count badge, fade-in on `visible` and bottom-center placement; otherwise the
|
|
816
|
+
* parent positions it.
|
|
728
817
|
*/
|
|
729
|
-
declare function FloatingIconButton({ icon, label, onPress, tone, testID, }: FloatingIconButtonProps): react_jsx_runtime.JSX.Element;
|
|
818
|
+
declare function FloatingIconButton({ icon, label, onPress, tone, size, count, visible, placement, testID, }: FloatingIconButtonProps): react_jsx_runtime.JSX.Element | null;
|
|
730
819
|
|
|
731
820
|
/**
|
|
732
821
|
* `panel`: a floating card up to 400px wide that scrolls its content with 16px padding and
|
|
@@ -746,12 +835,36 @@ interface FloatingPanelProps {
|
|
|
746
835
|
*/
|
|
747
836
|
declare function FloatingPanel({ children, variant, testID, }: FloatingPanelProps): react_jsx_runtime.JSX.Element;
|
|
748
837
|
|
|
838
|
+
/** The bar's full-width primary button, e.g. a form's save. */
|
|
839
|
+
interface FooterBarSubmit {
|
|
840
|
+
label: string;
|
|
841
|
+
onPress: () => void;
|
|
842
|
+
/** Shows a spinner and blocks presses, e.g. while saving. */
|
|
843
|
+
loading?: boolean;
|
|
844
|
+
disabled?: boolean;
|
|
845
|
+
testID?: string;
|
|
846
|
+
}
|
|
847
|
+
/**
|
|
848
|
+
* Width of the bar's content column: `page` (720px, 16px side padding) or `form` (640px,
|
|
849
|
+
* 20px side padding, the same column as a FormTemplate's fields).
|
|
850
|
+
*/
|
|
851
|
+
type FooterBarColumn = "page" | "form";
|
|
749
852
|
interface FooterBarProps {
|
|
750
853
|
/** The bar's content, e.g. an embedded ActionBar or a short note and a button. */
|
|
751
|
-
children
|
|
854
|
+
children?: ReactNode;
|
|
855
|
+
/** A full-width primary button after the content. */
|
|
856
|
+
submit?: FooterBarSubmit;
|
|
857
|
+
/**
|
|
858
|
+
* Form-level error above the submit button, announced as an alert, e.g. "Could not save."
|
|
859
|
+
* Field errors belong on the fields.
|
|
860
|
+
*/
|
|
861
|
+
error?: string | null;
|
|
862
|
+
errorTestID?: string;
|
|
863
|
+
/** Defaults to `page`. */
|
|
864
|
+
column?: FooterBarColumn;
|
|
752
865
|
/**
|
|
753
866
|
* Pads the bottom safe-area inset under the content. Set false inside tabs, where the
|
|
754
|
-
* TabBar pads it. Defaults to true.
|
|
867
|
+
* TabBar pads it, or when the screen pads it. Defaults to true.
|
|
755
868
|
*/
|
|
756
869
|
safeAreaBottom?: boolean;
|
|
757
870
|
/**
|
|
@@ -762,11 +875,12 @@ interface FooterBarProps {
|
|
|
762
875
|
testID?: string;
|
|
763
876
|
}
|
|
764
877
|
/**
|
|
765
|
-
* Sticky bottom bar with a top hairline, holding any content
|
|
766
|
-
* and
|
|
767
|
-
*
|
|
878
|
+
* Sticky bottom bar with a top hairline, holding any content and an optional form-level
|
|
879
|
+
* error and full-width submit button, in a centered column capped at 720px (or 640px for a
|
|
880
|
+
* form). Pads the bottom safe-area inset, so a bar inside it does not again, or renders as a
|
|
881
|
+
* compact pinned row.
|
|
768
882
|
*/
|
|
769
|
-
declare function FooterBar({ children, safeAreaBottom, compact, testID, }: FooterBarProps): react_jsx_runtime.JSX.Element;
|
|
883
|
+
declare function FooterBar({ children, submit, error, errorTestID, column, safeAreaBottom, compact, testID, }: FooterBarProps): react_jsx_runtime.JSX.Element;
|
|
770
884
|
|
|
771
885
|
/** One line: a link with an optional muted prompt before it. */
|
|
772
886
|
interface FooterLinksItem {
|
|
@@ -1096,8 +1210,14 @@ interface ListSectionAction {
|
|
|
1096
1210
|
onPress: () => void;
|
|
1097
1211
|
testID?: string;
|
|
1098
1212
|
}
|
|
1099
|
-
/**
|
|
1100
|
-
|
|
1213
|
+
/**
|
|
1214
|
+
* `plain`: rows sit on the background; `card`: rows sit in a bordered card, divided by
|
|
1215
|
+
* hairlines; `panel`: an 18px heading and the rows sit together in one bordered card, e.g. a
|
|
1216
|
+
* group of settings.
|
|
1217
|
+
*/
|
|
1218
|
+
type ListSectionVariant = "plain" | "card" | "panel";
|
|
1219
|
+
/** `destructive` draws the panel border, icon and heading in the destructive color, e.g. a danger zone (`panel` only). */
|
|
1220
|
+
type ListSectionTone = "default" | "destructive";
|
|
1101
1221
|
interface ListSectionProps {
|
|
1102
1222
|
/** Section heading, e.g. a month or a category. Without it (and without `icon` and `action`) no heading row is drawn. */
|
|
1103
1223
|
title?: string;
|
|
@@ -1119,13 +1239,16 @@ interface ListSectionProps {
|
|
|
1119
1239
|
moreAction?: ListSectionAction;
|
|
1120
1240
|
/** Defaults to `plain`. */
|
|
1121
1241
|
variant?: ListSectionVariant;
|
|
1242
|
+
/** Defaults to `default`. Only the `panel` variant draws it. */
|
|
1243
|
+
tone?: ListSectionTone;
|
|
1122
1244
|
}
|
|
1123
1245
|
/**
|
|
1124
1246
|
* Titled group in a list: a muted heading (optionally with an icon and a count) with an
|
|
1125
1247
|
* optional text action, its rows (plain or in a divided card), an optional show-more button
|
|
1126
|
-
* and an optional footnote.
|
|
1248
|
+
* and an optional footnote. `panel` puts an 18px heading and the rows in one bordered card
|
|
1249
|
+
* (a settings group), and `tone` destructive turns it into a danger zone.
|
|
1127
1250
|
*/
|
|
1128
|
-
declare function ListSection({ title, count, description, action, children, footer, footerTestID, testID, icon, moreAction, variant, }: ListSectionProps): react_jsx_runtime.JSX.Element;
|
|
1251
|
+
declare function ListSection({ title, count, description, action, children, footer, footerTestID, testID, icon, moreAction, variant, tone, }: ListSectionProps): react_jsx_runtime.JSX.Element;
|
|
1129
1252
|
|
|
1130
1253
|
interface LiveCaptionProps {
|
|
1131
1254
|
/** What the user is saying, updated live; small muted text, up to 3 lines. */
|
|
@@ -1219,6 +1342,8 @@ interface MeterCardProps {
|
|
|
1219
1342
|
/**
|
|
1220
1343
|
* Card of quota or limit meters: a title row, then one labeled bar per meter with its
|
|
1221
1344
|
* percentage and an optional caption. A meter at 90% or more turns destructive.
|
|
1345
|
+
*
|
|
1346
|
+
* @deprecated No app uses it; removed in the next major release. Use `ListSection` (`variant="card"`) with `ProgressBar` rows.
|
|
1222
1347
|
*/
|
|
1223
1348
|
declare function MeterCard({ title, caption, icon, message, messageTestID, meters, testID, }: MeterCardProps): react_jsx_runtime.JSX.Element;
|
|
1224
1349
|
|
|
@@ -1439,6 +1564,8 @@ interface ProgressRingProps {
|
|
|
1439
1564
|
* Circular progress: a track with an arc from 12 o'clock, the percentage (or a value
|
|
1440
1565
|
* label) in the middle and a muted label under it. Drawn with Views, no SVG dependency.
|
|
1441
1566
|
* Announced as a progress bar named by the label.
|
|
1567
|
+
*
|
|
1568
|
+
* @deprecated No app uses it; removed in the next major release. Use `StatTile` with `progress`, or `ProgressBar`.
|
|
1442
1569
|
*/
|
|
1443
1570
|
declare function ProgressRing({ value, label, valueLabel, tone, size, testID, }: ProgressRingProps): react_jsx_runtime.JSX.Element;
|
|
1444
1571
|
|
|
@@ -1504,18 +1631,24 @@ interface RatingStarsProps {
|
|
|
1504
1631
|
*/
|
|
1505
1632
|
declare function RatingStars({ value, max, onChange, label, size, testID, }: RatingStarsProps): react_jsx_runtime.JSX.Element;
|
|
1506
1633
|
|
|
1634
|
+
/** @deprecated Use `FloatingIconButtonProps` with `size: "sm"`, `visible`, `count` and `placement: "bottom-center"`. */
|
|
1507
1635
|
interface ScrollToBottomFabProps {
|
|
1508
1636
|
/** Shows the button; it renders nothing while false. */
|
|
1509
1637
|
visible: boolean;
|
|
1510
1638
|
/** Unread count shown as a badge when above 0; capped at "99+". */
|
|
1511
1639
|
count?: number;
|
|
1512
1640
|
onPress: () => void;
|
|
1513
|
-
/** Accessible name of the button; the badge count is appended
|
|
1641
|
+
/** Accessible name of the button; the badge count is appended. Defaults to "Scroll to latest". */
|
|
1514
1642
|
accessibilityLabel?: string;
|
|
1515
1643
|
testID?: string;
|
|
1516
1644
|
}
|
|
1517
|
-
/**
|
|
1518
|
-
|
|
1645
|
+
/**
|
|
1646
|
+
* Round button, absolute at the bottom center of its parent, that jumps a list to the newest item.
|
|
1647
|
+
*
|
|
1648
|
+
* @deprecated Use `<FloatingIconButton icon="chevron-down" size="sm" placement="bottom-center" visible={...} count={...} />`;
|
|
1649
|
+
* ScrollToBottomFab is removed in 2.0.
|
|
1650
|
+
*/
|
|
1651
|
+
declare function ScrollToBottomFab({ accessibilityLabel, ...props }: ScrollToBottomFabProps): react_jsx_runtime.JSX.Element;
|
|
1519
1652
|
|
|
1520
1653
|
/** An icon button right of the input, such as a filter toggle. */
|
|
1521
1654
|
interface SearchBarFilterAction {
|
|
@@ -1582,11 +1715,42 @@ interface SelectOption<T extends string = string> {
|
|
|
1582
1715
|
*/
|
|
1583
1716
|
all?: boolean;
|
|
1584
1717
|
}
|
|
1718
|
+
/** The "create new" row shown while the search query matches no option exactly. */
|
|
1719
|
+
interface SelectCreate {
|
|
1720
|
+
/** Row label for the typed query, e.g. (q) => `Add "${q}"`. */
|
|
1721
|
+
label: (query: string) => string;
|
|
1722
|
+
/** Called with the trimmed query; the sheet closes. The app creates the item and sets `value`. */
|
|
1723
|
+
onCreate: (query: string) => void;
|
|
1724
|
+
testID?: string;
|
|
1725
|
+
}
|
|
1726
|
+
/** A search input at the top of the sheet, for long or server-backed lists. */
|
|
1727
|
+
interface SelectSearchable {
|
|
1728
|
+
/** Placeholder of the search input, also its accessible name. */
|
|
1729
|
+
placeholder: string;
|
|
1730
|
+
/**
|
|
1731
|
+
* Called as the query changes. When set, the app owns filtering (e.g. an async search)
|
|
1732
|
+
* and passes the results as `options`; otherwise options are filtered by label here.
|
|
1733
|
+
*/
|
|
1734
|
+
onQueryChange?: (query: string) => void;
|
|
1735
|
+
/** Shows a spinner instead of the list, e.g. while the app's search runs. */
|
|
1736
|
+
loading?: boolean;
|
|
1737
|
+
/** Accessible name of the spinner. Defaults to "Loading". */
|
|
1738
|
+
loadingLabel?: string;
|
|
1739
|
+
/** Shown when no option matches. */
|
|
1740
|
+
emptyMessage?: string;
|
|
1741
|
+
/** Optional "create new" row for a query with no exact match. */
|
|
1742
|
+
create?: SelectCreate;
|
|
1743
|
+
}
|
|
1585
1744
|
interface SelectProps<T extends string = string> {
|
|
1586
1745
|
options: SelectOption<T>[];
|
|
1587
1746
|
/** Value of the chosen option; `null` or unset shows the placeholder. */
|
|
1588
1747
|
value?: T | null;
|
|
1589
1748
|
onChange: (value: T) => void;
|
|
1749
|
+
/**
|
|
1750
|
+
* Label of the chosen option when it is not in `options`, e.g. after an async search
|
|
1751
|
+
* replaced the list. Defaults to the matching option's label.
|
|
1752
|
+
*/
|
|
1753
|
+
valueLabel?: string;
|
|
1590
1754
|
/** Shown muted while nothing is chosen, e.g. "Choose one". */
|
|
1591
1755
|
placeholder: string;
|
|
1592
1756
|
/** Visible label above the field; also the sheet's heading. */
|
|
@@ -1606,34 +1770,32 @@ interface SelectProps<T extends string = string> {
|
|
|
1606
1770
|
variant?: SelectVariant;
|
|
1607
1771
|
/** `chip`: the value that counts as unfiltered; the chip fills with primary while another value is chosen. */
|
|
1608
1772
|
defaultValue?: T | null;
|
|
1773
|
+
/**
|
|
1774
|
+
* Adds a search input to the sheet: options filter as the user types, or the app filters
|
|
1775
|
+
* them (`onQueryChange`) with a loading state, an empty message and a create row.
|
|
1776
|
+
*/
|
|
1777
|
+
searchable?: SelectSearchable;
|
|
1609
1778
|
}
|
|
1610
1779
|
/** `field`: a labelled field box; `chip`: a compact pill trigger. */
|
|
1611
1780
|
type SelectVariant = "field" | "chip";
|
|
1612
1781
|
/**
|
|
1613
1782
|
* Labelled field, or a compact chip, that opens a bottom sheet of options (radio rows with
|
|
1614
|
-
* an optional icon and description). Choosing an option calls `onChange` and closes the
|
|
1783
|
+
* an optional icon and description). Choosing an option calls `onChange` and closes the
|
|
1784
|
+
* sheet. With `searchable` the sheet starts with a search input.
|
|
1615
1785
|
*/
|
|
1616
|
-
declare function Select<T extends string = string>({ options, value, onChange, placeholder, label, sheetTitle, closeLabel, error, disabled, testID, variant, defaultValue, }: SelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
1786
|
+
declare function Select<T extends string = string>({ options, value, onChange, valueLabel, placeholder, label, sheetTitle, closeLabel, error, disabled, testID, variant, defaultValue, searchable, }: SelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
1617
1787
|
|
|
1618
|
-
/**
|
|
1788
|
+
/** @deprecated Use `SelectOption`. */
|
|
1619
1789
|
type SearchSelectOption<T extends string = string> = SelectOption<T>;
|
|
1620
|
-
/**
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
label: (query: string) => string;
|
|
1624
|
-
/** Called with the trimmed query; the sheet closes. The app creates the item and sets `value`. */
|
|
1625
|
-
onCreate: (query: string) => void;
|
|
1626
|
-
testID?: string;
|
|
1627
|
-
}
|
|
1790
|
+
/** @deprecated Use `SelectCreate` in `searchable.create`. */
|
|
1791
|
+
type SearchSelectCreate = SelectCreate;
|
|
1792
|
+
/** @deprecated Use `SelectProps` with `searchable`. */
|
|
1628
1793
|
interface SearchSelectProps<T extends string = string> {
|
|
1629
1794
|
options: SearchSelectOption<T>[];
|
|
1630
1795
|
/** Value of the chosen option; `null` or unset shows the placeholder. */
|
|
1631
1796
|
value?: T | null;
|
|
1632
1797
|
onChange: (value: T) => void;
|
|
1633
|
-
/**
|
|
1634
|
-
* Label of the chosen option when it is not in `options`, e.g. after an async search
|
|
1635
|
-
* replaced the list. Defaults to the matching option's label.
|
|
1636
|
-
*/
|
|
1798
|
+
/** Label of the chosen option when it is not in `options`. */
|
|
1637
1799
|
valueLabel?: string;
|
|
1638
1800
|
/** Shown muted in the field while nothing is chosen. */
|
|
1639
1801
|
placeholder: string;
|
|
@@ -1641,14 +1803,11 @@ interface SearchSelectProps<T extends string = string> {
|
|
|
1641
1803
|
searchPlaceholder: string;
|
|
1642
1804
|
/** Visible label above the field; also the sheet's heading. */
|
|
1643
1805
|
label?: string;
|
|
1644
|
-
/** Sheet heading when it should differ from `label`.
|
|
1806
|
+
/** Sheet heading when it should differ from `label`. */
|
|
1645
1807
|
sheetTitle?: string;
|
|
1646
|
-
/**
|
|
1647
|
-
* Called as the query changes. When set, the app owns filtering (e.g. an async search)
|
|
1648
|
-
* and passes the results as `options`; otherwise options are filtered by label here.
|
|
1649
|
-
*/
|
|
1808
|
+
/** Called as the query changes; the app then owns filtering. */
|
|
1650
1809
|
onQueryChange?: (query: string) => void;
|
|
1651
|
-
/** Shows a spinner instead of the list
|
|
1810
|
+
/** Shows a spinner instead of the list. */
|
|
1652
1811
|
loading?: boolean;
|
|
1653
1812
|
/** Accessible name of the spinner. Defaults to "Loading". */
|
|
1654
1813
|
loadingLabel?: string;
|
|
@@ -1664,10 +1823,11 @@ interface SearchSelectProps<T extends string = string> {
|
|
|
1664
1823
|
testID?: string;
|
|
1665
1824
|
}
|
|
1666
1825
|
/**
|
|
1667
|
-
* Select with a search input
|
|
1668
|
-
*
|
|
1826
|
+
* Select with a search input in its sheet.
|
|
1827
|
+
*
|
|
1828
|
+
* @deprecated Use `<Select searchable={{ placeholder, ... }} />`; SearchSelect is removed in 2.0.
|
|
1669
1829
|
*/
|
|
1670
|
-
declare function SearchSelect<T extends string = string>({
|
|
1830
|
+
declare function SearchSelect<T extends string = string>({ searchPlaceholder, onQueryChange, loading, loadingLabel, emptyMessage, create, ...props }: SearchSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
1671
1831
|
|
|
1672
1832
|
/** One group of rows under a sticky heading. */
|
|
1673
1833
|
interface SectionedListSection<T> {
|
|
@@ -1697,7 +1857,7 @@ interface SectionedListProps<T> {
|
|
|
1697
1857
|
loadingMore?: boolean;
|
|
1698
1858
|
/** Accessible name of the loading spinner. Defaults to "Loading more". */
|
|
1699
1859
|
loadingMoreLabel?: string;
|
|
1700
|
-
/** Scrolls above the first section, e.g. a
|
|
1860
|
+
/** Scrolls above the first section, e.g. a StatTile with variant summary. */
|
|
1701
1861
|
header?: ReactNode;
|
|
1702
1862
|
/** Shown under the header while every section is empty, usually an EmptyState. */
|
|
1703
1863
|
empty?: ReactNode;
|
|
@@ -1715,19 +1875,33 @@ declare function SectionedList<T>({ sections, keyExtractor, renderItem, onEndRea
|
|
|
1715
1875
|
interface SegmentedControlOption<T extends string = string> {
|
|
1716
1876
|
value: T;
|
|
1717
1877
|
label: string;
|
|
1878
|
+
/** Defaults to `<testID>-<value>` when the control has a `testID` (segmented only). */
|
|
1879
|
+
testID?: string;
|
|
1718
1880
|
}
|
|
1881
|
+
/**
|
|
1882
|
+
* `segmented`: an outlined row of options, the selected one filled with primary, for picking
|
|
1883
|
+
* a value (radio-group semantics). `tabs`: underlined tabs on a hairline border that switch
|
|
1884
|
+
* the view below (tab-list semantics).
|
|
1885
|
+
*/
|
|
1886
|
+
type SegmentedControlVariant = "segmented" | "tabs";
|
|
1719
1887
|
interface SegmentedControlProps<T extends string = string> {
|
|
1720
|
-
/** 2 to 4
|
|
1888
|
+
/** 2 to 4 options (`segmented`) or 2 to 5 tabs (`tabs`). */
|
|
1721
1889
|
options: SegmentedControlOption<T>[];
|
|
1722
1890
|
/** Value of the selected option. */
|
|
1723
1891
|
value: T;
|
|
1724
1892
|
onChange: (value: T) => void;
|
|
1725
|
-
/** Accessible name of the group, e.g. "Theme". */
|
|
1893
|
+
/** Accessible name of the group, e.g. "Theme" or "Sections". */
|
|
1726
1894
|
accessibilityLabel?: string;
|
|
1895
|
+
/** Defaults to `segmented`. */
|
|
1896
|
+
variant?: SegmentedControlVariant;
|
|
1727
1897
|
testID?: string;
|
|
1728
1898
|
}
|
|
1729
|
-
/**
|
|
1730
|
-
|
|
1899
|
+
/**
|
|
1900
|
+
* 2-4 exclusive options in one outlined row; the selected option fills with primary. With
|
|
1901
|
+
* `variant="tabs"`, a row of underlined tabs: the selected tab has a semibold label and a
|
|
1902
|
+
* 2px primary underline, and the strip sits on a hairline border.
|
|
1903
|
+
*/
|
|
1904
|
+
declare function SegmentedControl<T extends string = string>({ options, value, onChange, accessibilityLabel, variant, testID, }: SegmentedControlProps<T>): react_jsx_runtime.JSX.Element;
|
|
1731
1905
|
|
|
1732
1906
|
/** `destructive` draws the card border, icon and heading in the destructive color, e.g. a danger zone. */
|
|
1733
1907
|
type SettingsSectionTone = "default" | "destructive";
|
|
@@ -1744,7 +1918,12 @@ interface SettingsSectionProps {
|
|
|
1744
1918
|
/** Defaults to `default`. */
|
|
1745
1919
|
tone?: SettingsSectionTone;
|
|
1746
1920
|
}
|
|
1747
|
-
/**
|
|
1921
|
+
/**
|
|
1922
|
+
* Settings card: a heading (optional icon and hint) over a column of settings organisms.
|
|
1923
|
+
*
|
|
1924
|
+
* @deprecated Use `ListSection` with `variant="panel"` (same props, plus `tone`). Removed in
|
|
1925
|
+
* the next major release.
|
|
1926
|
+
*/
|
|
1748
1927
|
declare function SettingsSection({ title, children, testID, icon, description, tone, }: SettingsSectionProps): react_jsx_runtime.JSX.Element;
|
|
1749
1928
|
|
|
1750
1929
|
type SkeletonListVariant = "chat" | "list" | "detail" | "ranked";
|
|
@@ -1838,6 +2017,23 @@ declare function SocialSignInButton({ provider, onPress, label, loading, disable
|
|
|
1838
2017
|
|
|
1839
2018
|
/** Color of the value: `positive` uses primary, `negative` uses destructive. */
|
|
1840
2019
|
type StatTileTone = "default" | "positive" | "negative";
|
|
2020
|
+
/**
|
|
2021
|
+
* `tile`: a card that shares a row with other tiles; `summary`: a full-width totals card on
|
|
2022
|
+
* the secondary surface, with the caption right of the value and an optional row of
|
|
2023
|
+
* sub-stats under it.
|
|
2024
|
+
*/
|
|
2025
|
+
type StatTileVariant = "tile" | "summary";
|
|
2026
|
+
/** Color of a sub-stat value: `primary` highlights it, `muted` plays it down. */
|
|
2027
|
+
type StatTileStatTone = "default" | "primary" | "muted";
|
|
2028
|
+
/** One sub-stat in the divided row under a `summary` headline. */
|
|
2029
|
+
interface StatTileStat {
|
|
2030
|
+
label: string;
|
|
2031
|
+
/** Formatted by the app, e.g. "1,200". */
|
|
2032
|
+
value: string;
|
|
2033
|
+
/** Defaults to `default`. */
|
|
2034
|
+
tone?: StatTileStatTone;
|
|
2035
|
+
testID?: string;
|
|
2036
|
+
}
|
|
1841
2037
|
interface StatTileProps {
|
|
1842
2038
|
/** Muted line above the value, e.g. "Total". */
|
|
1843
2039
|
label: string;
|
|
@@ -1845,19 +2041,25 @@ interface StatTileProps {
|
|
|
1845
2041
|
value: string;
|
|
1846
2042
|
/** Muted line under the value, e.g. "12 entries". */
|
|
1847
2043
|
caption?: string;
|
|
1848
|
-
/** Ionicons name shown in the top-right corner. */
|
|
2044
|
+
/** Ionicons name shown in the top-right corner (`tile` only). */
|
|
1849
2045
|
icon?: IconName;
|
|
1850
2046
|
tone?: StatTileTone;
|
|
1851
|
-
/** Makes the tile a button, e.g. to open the list behind the number. */
|
|
2047
|
+
/** Makes the tile a button, e.g. to open the list behind the number (`tile` only). */
|
|
1852
2048
|
onPress?: () => void;
|
|
1853
2049
|
testID?: string;
|
|
1854
2050
|
/**
|
|
1855
2051
|
* Draws a progress ring left of the text, turning the tile into a hero summary, e.g.
|
|
1856
|
-
* the share of a collection completed.
|
|
2052
|
+
* the share of a collection completed (`tile` only).
|
|
1857
2053
|
*/
|
|
1858
2054
|
progress?: StatTileProgress;
|
|
1859
2055
|
/** testID of the value text, e.g. for an end-to-end check of the number. */
|
|
1860
2056
|
valueTestID?: string;
|
|
2057
|
+
/** Defaults to `tile`. */
|
|
2058
|
+
variant?: StatTileVariant;
|
|
2059
|
+
/** Up to three sub-stats in a divided row under the headline (`summary` only). */
|
|
2060
|
+
stats?: StatTileStat[];
|
|
2061
|
+
/** testID of the caption text. */
|
|
2062
|
+
captionTestID?: string;
|
|
1861
2063
|
}
|
|
1862
2064
|
interface StatTileProgress {
|
|
1863
2065
|
/** Share done, from 0 to 1. Values outside the range are clamped. */
|
|
@@ -1869,19 +2071,14 @@ interface StatTileProgress {
|
|
|
1869
2071
|
}
|
|
1870
2072
|
/**
|
|
1871
2073
|
* Summary stat card: a label, a large value and an optional caption and icon. Tiles
|
|
1872
|
-
* share a row equally (each takes `flex: 1`).
|
|
2074
|
+
* share a row equally (each takes `flex: 1`). `summary` is a full-width totals card with
|
|
2075
|
+
* the caption beside the value and up to three sub-stats under it.
|
|
1873
2076
|
*/
|
|
1874
|
-
declare function StatTile(
|
|
2077
|
+
declare function StatTile(props: StatTileProps): react_jsx_runtime.JSX.Element;
|
|
1875
2078
|
|
|
1876
|
-
/**
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
onPress: () => void;
|
|
1880
|
-
/** Shows a spinner and blocks presses, e.g. while saving. */
|
|
1881
|
-
loading?: boolean;
|
|
1882
|
-
disabled?: boolean;
|
|
1883
|
-
testID?: string;
|
|
1884
|
-
}
|
|
2079
|
+
/** @deprecated Use `FooterBarSubmit`. */
|
|
2080
|
+
type SubmitBarSubmit = FooterBarSubmit;
|
|
2081
|
+
/** @deprecated Use `FooterBarProps` with `submit`, `column: "form"` and `safeAreaBottom: false`. */
|
|
1885
2082
|
interface SubmitBarProps {
|
|
1886
2083
|
submit: SubmitBarSubmit;
|
|
1887
2084
|
/** Form-level error above the button, e.g. "Could not save." Field errors belong on the fields. */
|
|
@@ -1890,11 +2087,13 @@ interface SubmitBarProps {
|
|
|
1890
2087
|
testID?: string;
|
|
1891
2088
|
}
|
|
1892
2089
|
/**
|
|
1893
|
-
* Bar pinned under a form
|
|
1894
|
-
*
|
|
1895
|
-
*
|
|
2090
|
+
* Bar pinned under a form with an optional form-level error and a full-width submit button.
|
|
2091
|
+
* The parent pads the bottom safe-area inset.
|
|
2092
|
+
*
|
|
2093
|
+
* @deprecated Use `<FooterBar submit={...} error={...} column="form" safeAreaBottom={false} />`;
|
|
2094
|
+
* SubmitBar is removed in 2.0.
|
|
1896
2095
|
*/
|
|
1897
|
-
declare function SubmitBar(
|
|
2096
|
+
declare function SubmitBar(props: SubmitBarProps): react_jsx_runtime.JSX.Element;
|
|
1898
2097
|
|
|
1899
2098
|
/** Color of a sub-stat value: `primary` highlights it, `muted` plays it down. */
|
|
1900
2099
|
type SummaryCardTone = "default" | "primary" | "muted";
|
|
@@ -1923,8 +2122,11 @@ interface SummaryCardProps {
|
|
|
1923
2122
|
/**
|
|
1924
2123
|
* Totals card on the secondary surface: a headline (label, large value, optional caption on
|
|
1925
2124
|
* the right) over a divided row of up to three sub-stats.
|
|
2125
|
+
*
|
|
2126
|
+
* @deprecated Use `StatTile` with `variant="summary"` (same props). Removed in the next
|
|
2127
|
+
* major release.
|
|
1926
2128
|
*/
|
|
1927
|
-
declare function SummaryCard(
|
|
2129
|
+
declare function SummaryCard(props: SummaryCardProps): react_jsx_runtime.JSX.Element;
|
|
1928
2130
|
|
|
1929
2131
|
/** One tab: a route or screen the bar switches to. */
|
|
1930
2132
|
interface TabBarItem {
|
|
@@ -1965,11 +2167,9 @@ interface TabBarProps {
|
|
|
1965
2167
|
*/
|
|
1966
2168
|
declare function TabBar({ items, activeKey, onSelect, centerAction, safeAreaBottom, testID, }: TabBarProps): react_jsx_runtime.JSX.Element;
|
|
1967
2169
|
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
testID?: string;
|
|
1972
|
-
}
|
|
2170
|
+
/** @deprecated Use `SegmentedControlOption`. */
|
|
2171
|
+
type TabStripOption<T extends string = string> = SegmentedControlOption<T>;
|
|
2172
|
+
/** @deprecated Use `SegmentedControlProps` with `variant: "tabs"`. */
|
|
1973
2173
|
interface TabStripProps<T extends string = string> {
|
|
1974
2174
|
/** 2 to 5 tabs, each switching the view below the strip. */
|
|
1975
2175
|
options: TabStripOption<T>[];
|
|
@@ -1981,48 +2181,11 @@ interface TabStripProps<T extends string = string> {
|
|
|
1981
2181
|
testID?: string;
|
|
1982
2182
|
}
|
|
1983
2183
|
/**
|
|
1984
|
-
* Row of underlined tabs that switch the view below it.
|
|
1985
|
-
*
|
|
1986
|
-
*
|
|
1987
|
-
*/
|
|
1988
|
-
declare function TabStrip<T extends string = string>({ options, value, onChange, accessibilityLabel, testID, }: TabStripProps<T>): react_jsx_runtime.JSX.Element;
|
|
1989
|
-
|
|
1990
|
-
/** A small button after the input, e.g. "Add" for an inline add field. */
|
|
1991
|
-
interface TextFieldAction {
|
|
1992
|
-
label: string;
|
|
1993
|
-
onPress: () => void;
|
|
1994
|
-
disabled?: boolean;
|
|
1995
|
-
testID?: string;
|
|
1996
|
-
}
|
|
1997
|
-
interface TextFieldProps {
|
|
1998
|
-
/** The text as typed; the field is controlled. */
|
|
1999
|
-
value: string;
|
|
2000
|
-
onChangeText: (text: string) => void;
|
|
2001
|
-
/** Visible label above the field; also the input's accessible name. */
|
|
2002
|
-
label?: string;
|
|
2003
|
-
/** Muted text while empty; the accessible name when there is no label. */
|
|
2004
|
-
placeholder?: string;
|
|
2005
|
-
/** A box that grows with its text (from three lines) instead of one 44px line. */
|
|
2006
|
-
multiline?: boolean;
|
|
2007
|
-
/** Maximum number of characters the input accepts. */
|
|
2008
|
-
maxLength?: number;
|
|
2009
|
-
/** Inline error under the field; also outlines it in destructive. */
|
|
2010
|
-
error?: string | null;
|
|
2011
|
-
/** False while the form is busy; dims the field. Defaults to true. */
|
|
2012
|
-
editable?: boolean;
|
|
2013
|
-
/** Optional small button after the input. */
|
|
2014
|
-
action?: TextFieldAction;
|
|
2015
|
-
/** Called with the current text when the keyboard's return key is pressed (single line only). */
|
|
2016
|
-
onSubmit?: (text: string) => void;
|
|
2017
|
-
/** Focuses the input on mount, e.g. an add field that just opened. */
|
|
2018
|
-
autoFocus?: boolean;
|
|
2019
|
-
testID?: string;
|
|
2020
|
-
}
|
|
2021
|
-
/**
|
|
2022
|
-
* One labelled text field outside a FormSection: a single line or a growing multiline box,
|
|
2023
|
-
* an inline error and an optional small button after the input.
|
|
2184
|
+
* Row of underlined tabs that switch the view below it.
|
|
2185
|
+
*
|
|
2186
|
+
* @deprecated Use `<SegmentedControl variant="tabs" />`; TabStrip is removed in 2.0.
|
|
2024
2187
|
*/
|
|
2025
|
-
declare function
|
|
2188
|
+
declare function TabStrip<T extends string = string>(props: TabStripProps<T>): react_jsx_runtime.JSX.Element;
|
|
2026
2189
|
|
|
2027
2190
|
interface TypingIndicatorProps {
|
|
2028
2191
|
/** Accessible name of the indicator. Defaults to "Typing". */
|
|
@@ -2097,7 +2260,7 @@ interface ChatTemplateProps {
|
|
|
2097
2260
|
header?: ReactNode;
|
|
2098
2261
|
/** The stream: a MessageList, SkeletonList or EmptyState. Fills the remaining height. */
|
|
2099
2262
|
list: ReactNode;
|
|
2100
|
-
/** Floats over the list, e.g. a
|
|
2263
|
+
/** Floats over the list, e.g. a FloatingIconButton with `placement="bottom-center"`. */
|
|
2101
2264
|
overlay?: ReactNode;
|
|
2102
2265
|
/** Strip between the list and the composer, e.g. an offline or error Banner. */
|
|
2103
2266
|
banner?: ReactNode;
|
|
@@ -2158,7 +2321,7 @@ interface DetailTemplateProps {
|
|
|
2158
2321
|
declare function DetailTemplate({ header, hero, children, footer, testID, onBack, backLabel, safeAreaBottom, heroPadded, }: DetailTemplateProps): react_jsx_runtime.JSX.Element;
|
|
2159
2322
|
|
|
2160
2323
|
/** Full-width primary button pinned under the form. */
|
|
2161
|
-
type FormTemplateSubmit =
|
|
2324
|
+
type FormTemplateSubmit = FooterBarSubmit;
|
|
2162
2325
|
/** Pinned bottom bar: a form-level error above the submit button. */
|
|
2163
2326
|
interface FormTemplateFooter {
|
|
2164
2327
|
submit: FormTemplateSubmit;
|
|
@@ -2169,7 +2332,7 @@ interface FormTemplateFooter {
|
|
|
2169
2332
|
interface FormTemplateProps {
|
|
2170
2333
|
/** Fixed above the form, usually an AppBar with a back or close action. */
|
|
2171
2334
|
header?: ReactNode;
|
|
2172
|
-
/** Field organisms (
|
|
2335
|
+
/** Field organisms (TextField, DateField, FilterChipGroup, ...), stacked with a 24px gap. */
|
|
2173
2336
|
children: ReactNode;
|
|
2174
2337
|
/** Submit bar pinned to the bottom so the action is reachable without scrolling. */
|
|
2175
2338
|
footer?: FormTemplateFooter;
|
|
@@ -2308,7 +2471,7 @@ declare function OverlayTemplate({ canvas, search, actions, card, sheet, safeAre
|
|
|
2308
2471
|
interface SettingsTemplateProps {
|
|
2309
2472
|
/** Header slot, usually an AppBar with a back action. Stays fixed above the scroll. */
|
|
2310
2473
|
header?: ReactNode;
|
|
2311
|
-
/**
|
|
2474
|
+
/** ListSection panels (variant panel), stacked with a 20px gap. */
|
|
2312
2475
|
children: ReactNode;
|
|
2313
2476
|
testID?: string;
|
|
2314
2477
|
}
|
|
@@ -2360,7 +2523,7 @@ interface VoiceTemplateProps {
|
|
|
2360
2523
|
header?: ReactNode;
|
|
2361
2524
|
/** The centerpiece, usually an Orb. */
|
|
2362
2525
|
orb: ReactNode;
|
|
2363
|
-
/** Shown under the orb, usually an
|
|
2526
|
+
/** Shown under the orb, usually an EmptyState with variant error. */
|
|
2364
2527
|
error?: ReactNode;
|
|
2365
2528
|
/** Shown under the orb and error, usually a LiveCaption. */
|
|
2366
2529
|
caption?: ReactNode;
|
|
@@ -2374,4 +2537,4 @@ interface VoiceTemplateProps {
|
|
|
2374
2537
|
*/
|
|
2375
2538
|
declare function VoiceTemplate({ header, orb, error, caption, controls, testID, }: VoiceTemplateProps): react_jsx_runtime.JSX.Element;
|
|
2376
2539
|
|
|
2377
|
-
export { ActionBar, type ActionBarAction, type ActionBarProps, type ActionBarTone, ActionCard, type ActionCardProps, type ActionCardRating, type ActionCardTone, ActionToggle, type ActionToggleProps, type ActionToggleTone, AlertDialog, type AlertDialogProps, AmountInput, type AmountInputPreset, type AmountInputProps, type AmountInputUnitPosition, AppBar, type AppBarAction, type AppBarProps, AppShell, type AppShellProps, AuthTemplate, type AuthTemplateFooterLink, type AuthTemplateProps, Banner, type BannerProps, type BannerTone, BarChartCard, type BarChartCardBar, type BarChartCardProps, BottomSheet, type BottomSheetAction, type BottomSheetPresentation, type BottomSheetProps, BrandMark, type BrandMarkProps, ChatTemplate, type ChatTemplateProps, Composer, type ComposerAccessory, type ComposerProps, DateField, type DateFieldProps, type DateFieldShortcut, DetailHeader, type DetailHeaderAction, type DetailHeaderProps, type DetailHeaderRating, type DetailHeaderSize, DetailTemplate, type DetailTemplateProps, EmptyState, type EmptyStateAction, type EmptyStateProps, type EmptyStateVariant, EntryCard, type EntryCardAction, type EntryCardProps, type EntryCardRating, ErrorState, type ErrorStateAction, type ErrorStateProps, FilterChipGroup, type FilterChipGroupAddAction, type FilterChipGroupBaseProps, type FilterChipGroupLayout, type FilterChipGroupMultipleProps, type FilterChipGroupOption, type FilterChipGroupProps, type FilterChipGroupSection, type FilterChipGroupSingleProps, FloatingCard, type FloatingCardAction, type FloatingCardProps, type FloatingCardRating, FloatingIconButton, type FloatingIconButtonProps, type FloatingIconButtonTone, FloatingPanel, type FloatingPanelProps, type FloatingPanelVariant, FooterBar, type FooterBarProps, FooterLinks, type FooterLinksItem, type FooterLinksProps, FormSection, type FormSectionAction, type FormSectionField, type FormSectionProps, FormTemplate, type FormTemplateFooter, type FormTemplateProps, type FormTemplateSubmit, ImageCarousel, type ImageCarouselProps, ImagePickerTile, type ImagePickerTileProps, type ImagePickerTileSize, ImageStrip, type ImageStripProps, ImageViewer, type ImageViewerProps, LabeledDivider, type LabeledDividerProps, type LabeledDividerTone, Legend, type LegendItem, type LegendProps, ListRow, type ListRowAction, type ListRowActionsPlacement, type ListRowAvatar, type ListRowBadgeTone, type ListRowIndicator, type ListRowProps, type ListRowRating, type ListRowToggle, type ListRowTone, type ListRowValueTone, ListSection, type ListSectionAction, type ListSectionProps, type ListSectionVariant, ListTemplate, type ListTemplateProps, type ListTemplateScrollEvent, type ListTemplateScrollHandle, LiveCaption, type LiveCaptionProps, LockTemplate, type LockTemplateBiometric, type LockTemplatePin, type LockTemplateProps, MessageBubble, type MessageBubbleProps, type MessageBubbleRole, MessageList, type MessageListProps, MeterCard, type MeterCardMeter, type MeterCardProps, MonthCalendar, type MonthCalendarDotTone, type MonthCalendarProps, NavigationRail, type NavigationRailFooterAction, type NavigationRailItem, type NavigationRailProps, Orb, type OrbProps, type OrbState, OverlayTemplate, type OverlayTemplateAction, type OverlayTemplateProps, PinEntry, type PinEntryBiometric, type PinEntryPin, type PinEntryProps, ProfileHeader, type ProfileHeaderAction, type ProfileHeaderProps, ProgressBar, type ProgressBarProps, type ProgressBarTone, ProgressRing, type ProgressRingProps, type ProgressRingSize, type ProgressRingTone, RankedRow, type RankedRowProps, type RankedRowTier, RatingStars, type RatingStarsProps, type RatingStarsSize, ScrollToBottomFab, type ScrollToBottomFabProps, SearchBar, type SearchBarFilterAction, type SearchBarProps, type SearchBarSuggestion, SearchSelect, type SearchSelectCreate, type SearchSelectOption, type SearchSelectProps, SectionedList, type SectionedListItemInfo, type SectionedListProps, type SectionedListSection, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, type SelectOption, type SelectProps, type SelectVariant, SettingsSection, type SettingsSectionProps, type SettingsSectionTone, SettingsTemplate, type SettingsTemplateProps, SkeletonList, type SkeletonListProps, type SkeletonListVariant, Snackbar, type SnackbarContextValue, type SnackbarOptions, type SnackbarPlacement, type SnackbarProps, SnackbarProvider, type SnackbarProviderProps, type SnackbarTone, SocialSignInButton, type SocialSignInButtonProps, type SocialSignInButtonProvider, SplitLayout, type SplitLayoutListSize, type SplitLayoutPane, type SplitLayoutProps, StatTile, type StatTileProgress, type StatTileProps, type StatTileTone, SubmitBar, type SubmitBarProps, type SubmitBarSubmit, SuggestionChips, type SuggestionChipsItem, type SuggestionChipsLayout, type SuggestionChipsProps, SummaryCard, type SummaryCardProps, type SummaryCardStat, type SummaryCardTone, TabBar, type TabBarCenterAction, type TabBarItem, type TabBarProps, TabStrip, type TabStripOption, type TabStripProps, TextField, type TextFieldAction, type TextFieldProps, type ThemeColorName, type ThemeColors, type ThemeContextValue, type ThemeMode, type ThemeModePreference, type ThemeName, ThemeProvider, type ThemeProviderProps, TypingIndicator, type TypingIndicatorProps, VoiceTemplate, type VoiceTemplateProps, useSnackbar, useSplitLayout, useTheme };
|
|
2540
|
+
export { ActionBar, type ActionBarAction, type ActionBarProps, type ActionBarTone, ActionCard, type ActionCardProps, type ActionCardRating, type ActionCardTone, ActionToggle, type ActionToggleProps, type ActionToggleTone, AlertDialog, type AlertDialogProps, AmountInput, type AmountInputPreset, type AmountInputProps, type AmountInputUnitPosition, AppBar, type AppBarAction, type AppBarProps, AppShell, type AppShellProps, AuthTemplate, type AuthTemplateFooterLink, type AuthTemplateProps, Banner, type BannerProps, type BannerTone, BarChartCard, type BarChartCardBar, type BarChartCardProps, BottomSheet, type BottomSheetAction, type BottomSheetPresentation, type BottomSheetProps, BrandMark, type BrandMarkProps, ChatTemplate, type ChatTemplateProps, Composer, type ComposerAccessory, type ComposerProps, DateField, type DateFieldProps, type DateFieldShortcut, DetailHeader, type DetailHeaderAction, type DetailHeaderProps, type DetailHeaderRating, type DetailHeaderSize, DetailTemplate, type DetailTemplateProps, EmptyState, type EmptyStateAction, type EmptyStateProps, type EmptyStateVariant, EntryCard, type EntryCardAction, type EntryCardProps, type EntryCardRating, ErrorState, type ErrorStateAction, type ErrorStateProps, FilterChipGroup, type FilterChipGroupAddAction, type FilterChipGroupBaseProps, type FilterChipGroupLayout, type FilterChipGroupMultipleProps, type FilterChipGroupOption, type FilterChipGroupProps, type FilterChipGroupSection, type FilterChipGroupSingleProps, FloatingCard, type FloatingCardAction, type FloatingCardProps, type FloatingCardRating, FloatingIconButton, type FloatingIconButtonPlacement, type FloatingIconButtonProps, type FloatingIconButtonSize, type FloatingIconButtonTone, FloatingPanel, type FloatingPanelProps, type FloatingPanelVariant, FooterBar, type FooterBarColumn, type FooterBarProps, type FooterBarSubmit, FooterLinks, type FooterLinksItem, type FooterLinksProps, FormSection, type FormSectionAction, type FormSectionField, type FormSectionProps, FormTemplate, type FormTemplateFooter, type FormTemplateProps, type FormTemplateSubmit, ImageCarousel, type ImageCarouselProps, ImagePickerTile, type ImagePickerTileProps, type ImagePickerTileSize, ImageStrip, type ImageStripProps, ImageViewer, type ImageViewerProps, LabeledDivider, type LabeledDividerProps, type LabeledDividerTone, Legend, type LegendItem, type LegendProps, ListRow, type ListRowAction, type ListRowActionsPlacement, type ListRowAvatar, type ListRowBadgeTone, type ListRowIndicator, type ListRowProps, type ListRowRating, type ListRowToggle, type ListRowTone, type ListRowValueTone, ListSection, type ListSectionAction, type ListSectionProps, type ListSectionTone, type ListSectionVariant, ListTemplate, type ListTemplateProps, type ListTemplateScrollEvent, type ListTemplateScrollHandle, LiveCaption, type LiveCaptionProps, LockTemplate, type LockTemplateBiometric, type LockTemplatePin, type LockTemplateProps, MessageBubble, type MessageBubbleProps, type MessageBubbleRole, MessageList, type MessageListProps, MeterCard, type MeterCardMeter, type MeterCardProps, MonthCalendar, type MonthCalendarDotTone, type MonthCalendarProps, NavigationRail, type NavigationRailFooterAction, type NavigationRailItem, type NavigationRailProps, Orb, type OrbProps, type OrbState, OverlayTemplate, type OverlayTemplateAction, type OverlayTemplateProps, PinEntry, type PinEntryBiometric, type PinEntryPin, type PinEntryProps, ProfileHeader, type ProfileHeaderAction, type ProfileHeaderProps, ProgressBar, type ProgressBarProps, type ProgressBarTone, ProgressRing, type ProgressRingProps, type ProgressRingSize, type ProgressRingTone, RankedRow, type RankedRowProps, type RankedRowTier, RatingStars, type RatingStarsProps, type RatingStarsSize, ScrollToBottomFab, type ScrollToBottomFabProps, SearchBar, type SearchBarFilterAction, type SearchBarProps, type SearchBarSuggestion, SearchSelect, type SearchSelectCreate, type SearchSelectOption, type SearchSelectProps, SectionedList, type SectionedListItemInfo, type SectionedListProps, type SectionedListSection, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlVariant, Select, type SelectCreate, type SelectOption, type SelectProps, type SelectSearchable, type SelectVariant, SettingsSection, type SettingsSectionProps, type SettingsSectionTone, SettingsTemplate, type SettingsTemplateProps, SkeletonList, type SkeletonListProps, type SkeletonListVariant, Snackbar, type SnackbarContextValue, type SnackbarOptions, type SnackbarPlacement, type SnackbarProps, SnackbarProvider, type SnackbarProviderProps, type SnackbarTone, SocialSignInButton, type SocialSignInButtonProps, type SocialSignInButtonProvider, SplitLayout, type SplitLayoutListSize, type SplitLayoutPane, type SplitLayoutProps, StatTile, type StatTileProgress, type StatTileProps, type StatTileStat, type StatTileStatTone, type StatTileTone, type StatTileVariant, SubmitBar, type SubmitBarProps, type SubmitBarSubmit, SuggestionChips, type SuggestionChipsItem, type SuggestionChipsLayout, type SuggestionChipsProps, SummaryCard, type SummaryCardProps, type SummaryCardStat, type SummaryCardTone, TabBar, type TabBarCenterAction, type TabBarItem, type TabBarProps, TabStrip, type TabStripOption, type TabStripProps, TextField, type TextFieldAction, type TextFieldKind, type TextFieldPreset, type TextFieldProps, type TextFieldUnitPosition, type ThemeColorName, type ThemeColors, type ThemeContextValue, type ThemeMode, type ThemeModePreference, type ThemeName, ThemeProvider, type ThemeProviderProps, TypingIndicator, type TypingIndicatorProps, VoiceTemplate, type VoiceTemplateProps, useSnackbar, useSplitLayout, useTheme };
|