@rippling/pebble-sdui-mobile 0.8.0 → 0.12.1
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/catalogs/custom-apps/action-params.d.ts +16 -3
- package/dist/catalogs/custom-apps/actions.d.ts +3 -1
- package/dist/catalogs/custom-apps/catalog.d.ts +2 -2
- package/dist/catalogs/custom-apps/component-events.d.ts +9 -6
- package/dist/catalogs/custom-apps/component-props.d.ts +337 -174
- package/dist/catalogs/custom-apps/components.d.ts +11 -8
- package/dist/catalogs/custom-apps/function-params.d.ts +3 -3
- package/dist/catalogs/custom-apps/index.cjs +4 -4
- package/dist/catalogs/custom-apps/index.cjs.map +1 -1
- package/dist/catalogs/custom-apps/index.d.ts +5 -5
- package/dist/catalogs/custom-apps/index.js +1764 -1567
- package/dist/catalogs/custom-apps/index.js.map +1 -1
- package/dist/core/catalog-validation.cjs +2 -0
- package/dist/core/catalog-validation.cjs.map +1 -0
- package/dist/core/catalog-validation.d.ts +21 -0
- package/dist/core/catalog-validation.js +245 -0
- package/dist/core/catalog-validation.js.map +1 -0
- package/dist/core/directives.cjs +2 -0
- package/dist/core/directives.cjs.map +1 -0
- package/dist/core/directives.d.ts +72 -0
- package/dist/core/directives.js +35 -0
- package/dist/core/directives.js.map +1 -0
- package/dist/core/expressions.d.ts +5 -15
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +28 -20
- package/dist/core/index.js.map +1 -1
- package/dist/docs/typescript/mobile/catalogs/custom-apps/actions.md +75 -11
- package/dist/docs/typescript/mobile/catalogs/custom-apps/components.md +537 -452
- package/dist/docs/typescript/mobile/catalogs/custom-apps/computed-functions.md +17 -17
- package/dist/docs/typescript/mobile/catalogs/custom-apps/definitions.md +631 -134
- package/dist/docs/typescript/mobile/catalogs/custom-apps/readme.md +2 -2
- package/dist/docs/typescript/mobile/catalogs/custom-apps/types.md +347 -137
- package/package.json +1 -1
|
@@ -7,10 +7,10 @@ Import component builders from `@rippling/pebble-sdui-mobile/catalogs/custom-app
|
|
|
7
7
|
|
|
8
8
|
Card with icon asset, title, caption, and action buttons
|
|
9
9
|
|
|
10
|
-
Catalog key: `ActionCard`
|
|
11
|
-
Builder: `ActionCard`
|
|
12
|
-
Props type: `ActionCardProps`
|
|
13
|
-
Accepts children: no
|
|
10
|
+
Catalog key: `ActionCard`
|
|
11
|
+
Builder: `ActionCard`
|
|
12
|
+
Props type: `ActionCardProps`
|
|
13
|
+
Accepts children: no
|
|
14
14
|
Events: `primaryAction`, `secondaryAction`
|
|
15
15
|
|
|
16
16
|
### Props
|
|
@@ -26,6 +26,54 @@ Events: `primaryAction`, `secondaryAction`
|
|
|
26
26
|
|
|
27
27
|
No additional properties.
|
|
28
28
|
|
|
29
|
+
## Anchor
|
|
30
|
+
|
|
31
|
+
Inline text link that opens supported URLs
|
|
32
|
+
|
|
33
|
+
Use Anchor for inline links that open external destinations through React Native Linking. Supported URL schemes are http, https, mailto, tel, and sms. Wire the `press` event for side effects before opening, `open` for successful opens, and `error` for unsupported URLs, URLs the device cannot open, or Linking failures.
|
|
34
|
+
|
|
35
|
+
Catalog key: `Anchor`
|
|
36
|
+
Builder: `Anchor`
|
|
37
|
+
Props type: `AnchorProps`
|
|
38
|
+
Accepts children: no
|
|
39
|
+
Events: `press`, `open`, `error`
|
|
40
|
+
|
|
41
|
+
### Props
|
|
42
|
+
|
|
43
|
+
| Name | Required | Type | Description |
|
|
44
|
+
|---|---:|---|---|
|
|
45
|
+
| `children` | yes | string | Text content shown as the link |
|
|
46
|
+
| `href` | yes | string | URL to open. Supports http, https, mailto, tel, and sms schemes. |
|
|
47
|
+
| `testID` | no | string | Sets testid on Anchor (used for testing purposes) |
|
|
48
|
+
|
|
49
|
+
No additional properties.
|
|
50
|
+
|
|
51
|
+
## Animation
|
|
52
|
+
|
|
53
|
+
Lottie-based branded animation from the pebble animation pack
|
|
54
|
+
|
|
55
|
+
`type` must be a valid pebble animation name. Leave `theme` unset to follow the app color mode.
|
|
56
|
+
|
|
57
|
+
Catalog key: `Animation`
|
|
58
|
+
Builder: `Animation`
|
|
59
|
+
Props type: `AnimationProps`
|
|
60
|
+
Accepts children: no
|
|
61
|
+
Events: _none_
|
|
62
|
+
|
|
63
|
+
### Props
|
|
64
|
+
|
|
65
|
+
| Name | Required | Type | Description |
|
|
66
|
+
|---|---:|---|---|
|
|
67
|
+
| `autoPlay` | no | boolean | Whether the animation auto-plays on mount. Default: true |
|
|
68
|
+
| `loop` | no | boolean | Whether the animation loops. Default: true |
|
|
69
|
+
| `size` | no | number | Square dimension (width = height) for the animation surface. Default: theme.size800 |
|
|
70
|
+
| `speed` | no | number | Playback speed multiplier. Default: 1 |
|
|
71
|
+
| `testID` | no | string | Sets testid on Animation (used for testing purposes) |
|
|
72
|
+
| `theme` | no | [AnimationTheme](./definitions.md#animationtheme) | Forces a specific theme variant. Defaults to the app current color mode |
|
|
73
|
+
| `type` | yes | [AnimationType](./definitions.md#animationtype) | Animation to be shown |
|
|
74
|
+
|
|
75
|
+
No additional properties.
|
|
76
|
+
|
|
29
77
|
## Avatar
|
|
30
78
|
|
|
31
79
|
Circular avatar showing a photo, icon, or initials
|
|
@@ -33,10 +81,10 @@ Circular avatar showing a photo, icon, or initials
|
|
|
33
81
|
Use `source` for a remote image URL or an icon type name. Use `title` for initials when no image is available.
|
|
34
82
|
When `onPress` is wired, the avatar becomes tappable — wire to the 'press' event.
|
|
35
83
|
|
|
36
|
-
Catalog key: `Avatar`
|
|
37
|
-
Builder: `Avatar`
|
|
38
|
-
Props type: `AvatarProps`
|
|
39
|
-
Accepts children: no
|
|
84
|
+
Catalog key: `Avatar`
|
|
85
|
+
Builder: `Avatar`
|
|
86
|
+
Props type: `AvatarProps`
|
|
87
|
+
Accepts children: no
|
|
40
88
|
Events: `press`
|
|
41
89
|
|
|
42
90
|
### Props
|
|
@@ -46,7 +94,7 @@ Events: `press`
|
|
|
46
94
|
| `contentFit` | no | [AvatarContentFit](./definitions.md#avatarcontentfit) | How the avatar image scales within its bounds |
|
|
47
95
|
| `recyclingKey` | no | string | Sets the image view to blank before loading the final image — prevents showing the previous image during recycling |
|
|
48
96
|
| `size` | no | [AvatarSize](./definitions.md#avatarsize) | Size of the avatar. Default: medium |
|
|
49
|
-
| `source` | no |
|
|
97
|
+
| `source` | no | [AvatarSource](./definitions.md#avatarsource) \| string \| [AvatarSource](./types.md#avatarsource) \| [AvatarSource](./types.md#avatarsource) | Remote photo URL or Pebble icon name to render as the avatar image |
|
|
50
98
|
| `testID` | no | string | Sets testid on Avatar (used for testing purposes) |
|
|
51
99
|
| `title` | no | string | Initials or short text shown when no source is provided (e.g. "JD" for John Doe) |
|
|
52
100
|
|
|
@@ -58,10 +106,10 @@ Overlapping row of circular avatars
|
|
|
58
106
|
|
|
59
107
|
`avatars` is an array of avatar data objects. Each item supports the same `source` and `title` props as the Avatar component.
|
|
60
108
|
|
|
61
|
-
Catalog key: `AvatarStack`
|
|
62
|
-
Builder: `AvatarStack`
|
|
63
|
-
Props type: `AvatarStackProps`
|
|
64
|
-
Accepts children: no
|
|
109
|
+
Catalog key: `AvatarStack`
|
|
110
|
+
Builder: `AvatarStack`
|
|
111
|
+
Props type: `AvatarStackProps`
|
|
112
|
+
Accepts children: no
|
|
65
113
|
Events: _none_
|
|
66
114
|
|
|
67
115
|
### Props
|
|
@@ -77,10 +125,10 @@ No additional properties.
|
|
|
77
125
|
|
|
78
126
|
Small status label with colored appearance
|
|
79
127
|
|
|
80
|
-
Catalog key: `Badge`
|
|
81
|
-
Builder: `Badge`
|
|
82
|
-
Props type: `BadgeProps`
|
|
83
|
-
Accepts children: no
|
|
128
|
+
Catalog key: `Badge`
|
|
129
|
+
Builder: `Badge`
|
|
130
|
+
Props type: `BadgeProps`
|
|
131
|
+
Accepts children: no
|
|
84
132
|
Events: _none_
|
|
85
133
|
|
|
86
134
|
### Props
|
|
@@ -99,10 +147,10 @@ Tappable button with label and configurable appearance
|
|
|
99
147
|
|
|
100
148
|
Wire `onPress` to the `press` event. Set `spinner: { $bindState: "/loading" }` to show a spinner while an async action runs. Use `style` with token keys (e.g. { marginTop: "space200", alignSelf: "center" }) to override container spacing and alignment.
|
|
101
149
|
|
|
102
|
-
Catalog key: `Button`
|
|
103
|
-
Builder: `Button`
|
|
104
|
-
Props type: `ButtonProps`
|
|
105
|
-
Accepts children: no
|
|
150
|
+
Catalog key: `Button`
|
|
151
|
+
Builder: `Button`
|
|
152
|
+
Props type: `ButtonProps`
|
|
153
|
+
Accepts children: no
|
|
106
154
|
Events: `press`
|
|
107
155
|
|
|
108
156
|
### Props
|
|
@@ -114,9 +162,9 @@ Events: `press`
|
|
|
114
162
|
| `disabled` | no | boolean | Disables the button. Default: false |
|
|
115
163
|
| `fluid` | no | boolean | If true, button stretches to full available width |
|
|
116
164
|
| `haptic` | no | boolean | Enables haptic feedback on press. Default: true for base/pill/small variants, false for text variant |
|
|
117
|
-
| `leftIcon` | no | [
|
|
165
|
+
| `leftIcon` | no | [AvatarSource](./definitions.md#avatarsource) | Pebble icon name to show on the left of the button |
|
|
118
166
|
| `outlined` | no | boolean | Shows button with outline border style |
|
|
119
|
-
| `rightIcon` | no | [
|
|
167
|
+
| `rightIcon` | no | [AvatarSource](./definitions.md#avatarsource) | Pebble icon name to show on the right of the button |
|
|
120
168
|
| `spinner` | no | boolean | Shows a loading spinner. Bind to state for async feedback. Default: false |
|
|
121
169
|
| `style` | no | [ButtonStyle](./types.md#buttonstyle) | Container style overrides applied to a wrapping View — token keys only, e.g. { marginTop: "space200", alignSelf: "center" } |
|
|
122
170
|
| `testID` | no | string | Sets testid on Button (used for testing purposes) |
|
|
@@ -130,10 +178,10 @@ Elevated container card, optionally tappable
|
|
|
130
178
|
|
|
131
179
|
Wire the `press` event to handle card tap. Set `disabled: true` to prevent press interaction. Add children to fill card body.
|
|
132
180
|
|
|
133
|
-
Catalog key: `Card`
|
|
134
|
-
Builder: `Card`
|
|
135
|
-
Props type: `CardProps`
|
|
136
|
-
Accepts children: yes
|
|
181
|
+
Catalog key: `Card`
|
|
182
|
+
Builder: `Card`
|
|
183
|
+
Props type: `CardProps`
|
|
184
|
+
Accepts children: yes
|
|
137
185
|
Events: `press`
|
|
138
186
|
|
|
139
187
|
### Props
|
|
@@ -153,10 +201,10 @@ Single checkbox toggle with label and optional validation
|
|
|
153
201
|
|
|
154
202
|
Use a single Checkbox ONLY for a standalone boolean toggle (e.g. "I agree to terms"). For 2 or more related options, use CheckboxGroup instead — it renders all options in a grouped card layout automatically. Never place multiple individual Checkbox components in a VStack or Card manually.
|
|
155
203
|
|
|
156
|
-
Catalog key: `Checkbox`
|
|
157
|
-
Builder: `Checkbox`
|
|
158
|
-
Props type: `CheckboxProps`
|
|
159
|
-
Accepts children: no
|
|
204
|
+
Catalog key: `Checkbox`
|
|
205
|
+
Builder: `Checkbox`
|
|
206
|
+
Props type: `CheckboxProps`
|
|
207
|
+
Accepts children: no
|
|
160
208
|
Events: `change`, `blur`
|
|
161
209
|
|
|
162
210
|
### Props
|
|
@@ -169,7 +217,7 @@ Events: `change`, `blur`
|
|
|
169
217
|
| `checks` | no | [CheckboxCheck](./types.md#checkboxcheck)[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set |
|
|
170
218
|
| `defaultValue` | no | boolean | Initial value for uncontrolled mode. Default: false |
|
|
171
219
|
| `disabled` | no | boolean | Disables the checkbox. Default: false |
|
|
172
|
-
| `error` | no |
|
|
220
|
+
| `error` | no | boolean \| string | Error state or error message |
|
|
173
221
|
| `haptic` | no | boolean | Enables haptic feedback on toggle. Default: true |
|
|
174
222
|
| `helperText` | no | string | Help text shown below the checkbox |
|
|
175
223
|
| `indeterminate` | no | boolean | Sets the checkbox to an indeterminate state. Default: false |
|
|
@@ -191,10 +239,10 @@ Group of checkboxes allowing multiple selections
|
|
|
191
239
|
|
|
192
240
|
Preferred over multiple individual Checkbox components. Pass all options via the `options` array (each with `id` and `label`). Wrap in a Card for visual grouping. `onChange` stores the array of selected ids to the bound state path. State shape: string[].
|
|
193
241
|
|
|
194
|
-
Catalog key: `CheckboxGroup`
|
|
195
|
-
Builder: `CheckboxGroup`
|
|
196
|
-
Props type: `CheckboxGroupProps`
|
|
197
|
-
Accepts children: no
|
|
242
|
+
Catalog key: `CheckboxGroup`
|
|
243
|
+
Builder: `CheckboxGroup`
|
|
244
|
+
Props type: `CheckboxGroupProps`
|
|
245
|
+
Accepts children: no
|
|
198
246
|
Events: `change`
|
|
199
247
|
|
|
200
248
|
### Props
|
|
@@ -203,7 +251,7 @@ Events: `change`
|
|
|
203
251
|
|---|---:|---|---|
|
|
204
252
|
| `defaultValue` | no | string[] | Initial selected ids for uncontrolled mode |
|
|
205
253
|
| `disabled` | no | boolean | Disables all options. Default: false |
|
|
206
|
-
| `error` | no |
|
|
254
|
+
| `error` | no | boolean \| string | Error state or error message shown below the group |
|
|
207
255
|
| `helperText` | no | string | Help text shown below the group |
|
|
208
256
|
| `options` | yes | [CheckboxGroupOption](./types.md#checkboxgroupoption)[] | Array of checkbox options: [{ id, label?, tag?, disabled? }] |
|
|
209
257
|
| `testID` | no | string | Sets testid on CheckboxGroup (used for testing purposes) |
|
|
@@ -217,10 +265,10 @@ Compact tag chip with optional dismiss button
|
|
|
217
265
|
|
|
218
266
|
Wire `close` event to handle chip removal. Wire `press` event for chip tap.
|
|
219
267
|
|
|
220
|
-
Catalog key: `Chip`
|
|
221
|
-
Builder: `Chip`
|
|
222
|
-
Props type: `ChipProps`
|
|
223
|
-
Accepts children: no
|
|
268
|
+
Catalog key: `Chip`
|
|
269
|
+
Builder: `Chip`
|
|
270
|
+
Props type: `ChipProps`
|
|
271
|
+
Accepts children: no
|
|
224
272
|
Events: `press`, `close`
|
|
225
273
|
|
|
226
274
|
### Props
|
|
@@ -234,58 +282,16 @@ Events: `press`, `close`
|
|
|
234
282
|
|
|
235
283
|
No additional properties.
|
|
236
284
|
|
|
237
|
-
## CondensedFooter
|
|
238
|
-
|
|
239
|
-
Condensed footer with title, logo icon, and optional action button
|
|
240
|
-
|
|
241
|
-
Catalog key: `CondensedFooter`
|
|
242
|
-
Builder: `CondensedFooter`
|
|
243
|
-
Props type: `CondensedFooterProps`
|
|
244
|
-
Accepts children: no
|
|
245
|
-
Events: `action`
|
|
246
|
-
|
|
247
|
-
### Props
|
|
248
|
-
|
|
249
|
-
| Name | Required | Type | Description |
|
|
250
|
-
|---|---:|---|---|
|
|
251
|
-
| `action` | no | [CondensedFooterAction](./types.md#condensedfooteraction) | Optional action button. Press emits "action". |
|
|
252
|
-
| `logoIcon` | no | string | Pebble icon name to use as the logo |
|
|
253
|
-
| `testID` | no | string | Sets testid on CondensedFooter (used for testing purposes) |
|
|
254
|
-
| `title` | yes | string | Title text in the footer |
|
|
255
|
-
|
|
256
|
-
No additional properties.
|
|
257
|
-
|
|
258
|
-
## CondensedHeader
|
|
259
|
-
|
|
260
|
-
Condensed page header with title
|
|
261
|
-
|
|
262
|
-
Catalog key: `CondensedHeader`
|
|
263
|
-
Builder: `CondensedHeader`
|
|
264
|
-
Props type: `CondensedHeaderProps`
|
|
265
|
-
Accepts children: no
|
|
266
|
-
Events: _none_
|
|
267
|
-
|
|
268
|
-
### Props
|
|
269
|
-
|
|
270
|
-
| Name | Required | Type | Description |
|
|
271
|
-
|---|---:|---|---|
|
|
272
|
-
| `outlined` | no | boolean | Shows an outline border on the header. Default: false |
|
|
273
|
-
| `right` | no | [CondensedHeaderRight](./types.md#condensedheaderright) | A json-render spec to render as the right element on the header |
|
|
274
|
-
| `testID` | no | string | Sets testid on CondensedHeader (used for testing purposes) |
|
|
275
|
-
| `title` | yes | string | Title to show on the header |
|
|
276
|
-
|
|
277
|
-
No additional properties.
|
|
278
|
-
|
|
279
285
|
## Country
|
|
280
286
|
|
|
281
287
|
Country flag icon for a given ISO region code
|
|
282
288
|
|
|
283
289
|
`region` should be a valid ISO 3166-1 alpha-2 country code (e.g. "US", "GB", "IN").
|
|
284
290
|
|
|
285
|
-
Catalog key: `Country`
|
|
286
|
-
Builder: `Country`
|
|
287
|
-
Props type: `CountryProps`
|
|
288
|
-
Accepts children: no
|
|
291
|
+
Catalog key: `Country`
|
|
292
|
+
Builder: `Country`
|
|
293
|
+
Props type: `CountryProps`
|
|
294
|
+
Accepts children: no
|
|
289
295
|
Events: _none_
|
|
290
296
|
|
|
291
297
|
### Props
|
|
@@ -303,10 +309,10 @@ Currency input
|
|
|
303
309
|
|
|
304
310
|
Currency input. `onChange` stores formatted currency string in state.
|
|
305
311
|
|
|
306
|
-
Catalog key: `Currency`
|
|
307
|
-
Builder: `Currency`
|
|
308
|
-
Props type: `CurrencyProps`
|
|
309
|
-
Accepts children: no
|
|
312
|
+
Catalog key: `Currency`
|
|
313
|
+
Builder: `Currency`
|
|
314
|
+
Props type: `CurrencyProps`
|
|
315
|
+
Accepts children: no
|
|
310
316
|
Events: `change`, `blur`
|
|
311
317
|
|
|
312
318
|
### Props
|
|
@@ -319,7 +325,7 @@ Events: `change`, `blur`
|
|
|
319
325
|
| `decimalPlaces` | no | number | Number of decimal places allowed |
|
|
320
326
|
| `defaultValue` | no | string | Initial value for uncontrolled mode |
|
|
321
327
|
| `disabled` | no | boolean | Disables the input. Default: false |
|
|
322
|
-
| `error` | no |
|
|
328
|
+
| `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
|
|
323
329
|
| `helperText` | no | string | Help text shown below the input |
|
|
324
330
|
| `label` | no | string | Label shown above the input |
|
|
325
331
|
| `placeholder` | no | string | Placeholder text shown when the field is empty |
|
|
@@ -338,10 +344,10 @@ Date picker input field
|
|
|
338
344
|
|
|
339
345
|
Date picker input. onChange stores ISO date string in state. Use format prop to control output format.
|
|
340
346
|
|
|
341
|
-
Catalog key: `Date`
|
|
342
|
-
Builder: `Date`
|
|
343
|
-
Props type: `DateProps`
|
|
344
|
-
Accepts children: no
|
|
347
|
+
Catalog key: `Date`
|
|
348
|
+
Builder: `Date`
|
|
349
|
+
Props type: `DateProps`
|
|
350
|
+
Accepts children: no
|
|
345
351
|
Events: `change`, `blur`
|
|
346
352
|
|
|
347
353
|
### Props
|
|
@@ -352,7 +358,7 @@ Events: `change`, `blur`
|
|
|
352
358
|
| `clearable` | no | boolean | Shows a clear button to reset the value. Default: false |
|
|
353
359
|
| `defaultValue` | no | string | Default ISO date string for uncontrolled mode |
|
|
354
360
|
| `disabled` | no | boolean | Disables the date input. Default: false |
|
|
355
|
-
| `error` | no |
|
|
361
|
+
| `error` | no | string \| boolean | Error state or error message |
|
|
356
362
|
| `format` | no | string | Date format string e.g. "YYYY-MM-DD". Default: ISO string |
|
|
357
363
|
| `helperText` | no | string | Help text shown below the date input |
|
|
358
364
|
| `label` | yes | string | Label shown above the date input |
|
|
@@ -370,10 +376,10 @@ Date range picker with start and end date inputs
|
|
|
370
376
|
|
|
371
377
|
Date range picker. label must be [startLabel, endLabel]. onChange stores [startISO, endISO] in state.
|
|
372
378
|
|
|
373
|
-
Catalog key: `DateRange`
|
|
374
|
-
Builder: `DateRange`
|
|
375
|
-
Props type: `DateRangeProps`
|
|
376
|
-
Accepts children: no
|
|
379
|
+
Catalog key: `DateRange`
|
|
380
|
+
Builder: `DateRange`
|
|
381
|
+
Props type: `DateRangeProps`
|
|
382
|
+
Accepts children: no
|
|
377
383
|
Events: `change`
|
|
378
384
|
|
|
379
385
|
### Props
|
|
@@ -401,10 +407,10 @@ Modal date/time picker overlay
|
|
|
401
407
|
|
|
402
408
|
Modal date/time picker. Set visible:true to open. Wire "close" event to toggle visible. "change" event fires when user selects a date/time.
|
|
403
409
|
|
|
404
|
-
Catalog key: `DateTimePicker`
|
|
405
|
-
Builder: `DateTimePicker`
|
|
406
|
-
Props type: `DateTimePickerProps`
|
|
407
|
-
Accepts children: no
|
|
410
|
+
Catalog key: `DateTimePicker`
|
|
411
|
+
Builder: `DateTimePicker`
|
|
412
|
+
Props type: `DateTimePickerProps`
|
|
413
|
+
Accepts children: no
|
|
408
414
|
Events: `close`, `change`
|
|
409
415
|
|
|
410
416
|
### Props
|
|
@@ -424,10 +430,10 @@ No additional properties.
|
|
|
424
430
|
|
|
425
431
|
Sub-component of ObjectUI. Horizontal rule that separates ObjectUI sections
|
|
426
432
|
|
|
427
|
-
Catalog key: `Divider`
|
|
428
|
-
Builder: `Divider`
|
|
429
|
-
Props type: `DividerProps`
|
|
430
|
-
Accepts children: no
|
|
433
|
+
Catalog key: `Divider`
|
|
434
|
+
Builder: `Divider`
|
|
435
|
+
Props type: `DividerProps`
|
|
436
|
+
Accepts children: no
|
|
431
437
|
Events: _none_
|
|
432
438
|
|
|
433
439
|
### Props
|
|
@@ -438,16 +444,50 @@ Events: _none_
|
|
|
438
444
|
|
|
439
445
|
No additional properties.
|
|
440
446
|
|
|
447
|
+
## Email
|
|
448
|
+
|
|
449
|
+
Email text input that validates email format
|
|
450
|
+
|
|
451
|
+
Email text input that validates email format. `onChange` stores a string in state.
|
|
452
|
+
|
|
453
|
+
Catalog key: `Email`
|
|
454
|
+
Builder: `Email`
|
|
455
|
+
Props type: `EmailProps`
|
|
456
|
+
Accepts children: no
|
|
457
|
+
Events: `change`, `blur`
|
|
458
|
+
|
|
459
|
+
### Props
|
|
460
|
+
|
|
461
|
+
| Name | Required | Type | Description |
|
|
462
|
+
|---|---:|---|---|
|
|
463
|
+
| `name` | no | string | Field name identifier for form binding |
|
|
464
|
+
| `checks` | no | [EmailCheck](./types.md#emailcheck)[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set |
|
|
465
|
+
| `clearable` | no | boolean | Shows a clear button when the field has a value. Default: false |
|
|
466
|
+
| `defaultValue` | no | string | Initial value for uncontrolled mode |
|
|
467
|
+
| `disabled` | no | boolean | Disables the input. Default: false |
|
|
468
|
+
| `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
|
|
469
|
+
| `helperText` | no | string | Help text shown below the input |
|
|
470
|
+
| `label` | no | string | Label shown above the input |
|
|
471
|
+
| `placeholder` | no | string | Placeholder text shown when the field is empty |
|
|
472
|
+
| `readOnly` | no | boolean | Shows value without allowing edits. Default: false |
|
|
473
|
+
| `required` | no | boolean | Marks the field as required. Default: false |
|
|
474
|
+
| `sensitive` | no | boolean | Marks the field as sensitive (e.g. for screenshot masking) |
|
|
475
|
+
| `testID` | no | string | Sets testid on InputEmail (used for testing purposes) |
|
|
476
|
+
| `validateOn` | no | [CheckboxValidateOn](./definitions.md#checkboxvalidateon) | When to run validation checks. Requires checks to be set |
|
|
477
|
+
| `value` | no | string | Current email value — bind to state with $bindState |
|
|
478
|
+
|
|
479
|
+
No additional properties.
|
|
480
|
+
|
|
441
481
|
## ExpansionPanel
|
|
442
482
|
|
|
443
483
|
Collapsible panel with a header that toggles content visibility
|
|
444
484
|
|
|
445
485
|
The `toggle` event fires when the panel is expanded or collapsed. Use `expanded: { $bindState: "/panel/open" }` for fully controlled mode. Use `headerLeft` and `headerRight` to render content in the header slots via json-render sub-specs.
|
|
446
486
|
|
|
447
|
-
Catalog key: `ExpansionPanel`
|
|
448
|
-
Builder: `ExpansionPanel`
|
|
449
|
-
Props type: `ExpansionPanelProps`
|
|
450
|
-
Accepts children: yes
|
|
487
|
+
Catalog key: `ExpansionPanel`
|
|
488
|
+
Builder: `ExpansionPanel`
|
|
489
|
+
Props type: `ExpansionPanelProps`
|
|
490
|
+
Accepts children: yes
|
|
451
491
|
Events: `toggle`
|
|
452
492
|
|
|
453
493
|
### Props
|
|
@@ -471,10 +511,10 @@ Button that opens the in-app viewer for a given file
|
|
|
471
511
|
|
|
472
512
|
Set `file.url` or `file.uri` (or both). Optional `buttonProps` matches `Button` props except `onPress` is owned by the viewer. Wire `press` for side effects after the viewer is invoked.
|
|
473
513
|
|
|
474
|
-
Catalog key: `FileViewerButton`
|
|
475
|
-
Builder: `FileViewerButton`
|
|
476
|
-
Props type: `FileViewerButtonProps`
|
|
477
|
-
Accepts children: no
|
|
514
|
+
Catalog key: `FileViewerButton`
|
|
515
|
+
Builder: `FileViewerButton`
|
|
516
|
+
Props type: `FileViewerButtonProps`
|
|
517
|
+
Accepts children: no
|
|
478
518
|
Events: `press`
|
|
479
519
|
|
|
480
520
|
### Props
|
|
@@ -492,10 +532,10 @@ Pressable region that opens the in-app viewer for a given file
|
|
|
492
532
|
|
|
493
533
|
Set `file.url` or `file.uri`. Optional `pressableProps` matches `Pressable` props except `onPress` is owned by the viewer. Put visible content in children. Wire `press` for analytics or follow-up actions.
|
|
494
534
|
|
|
495
|
-
Catalog key: `FileViewerPressable`
|
|
496
|
-
Builder: `FileViewerPressable`
|
|
497
|
-
Props type: `FileViewerPressableProps`
|
|
498
|
-
Accepts children: yes
|
|
535
|
+
Catalog key: `FileViewerPressable`
|
|
536
|
+
Builder: `FileViewerPressable`
|
|
537
|
+
Props type: `FileViewerPressableProps`
|
|
538
|
+
Accepts children: yes
|
|
499
539
|
Events: `press`
|
|
500
540
|
|
|
501
541
|
### Props
|
|
@@ -507,37 +547,14 @@ Events: `press`
|
|
|
507
547
|
|
|
508
548
|
No additional properties.
|
|
509
549
|
|
|
510
|
-
## FilterHeader
|
|
511
|
-
|
|
512
|
-
Page header with title, badge, and collapsible filter menu
|
|
513
|
-
|
|
514
|
-
Catalog key: `FilterHeader`
|
|
515
|
-
Builder: `FilterHeader`
|
|
516
|
-
Props type: `FilterHeaderProps`
|
|
517
|
-
Accepts children: no
|
|
518
|
-
Events: `filterMenuPress`
|
|
519
|
-
|
|
520
|
-
### Props
|
|
521
|
-
|
|
522
|
-
| Name | Required | Type | Description |
|
|
523
|
-
|---|---:|---|---|
|
|
524
|
-
| `badge` | no | string | Badge text shown beside the title |
|
|
525
|
-
| `defaultExpanded` | no | boolean | Default expanded state of the filter menu. Default: false |
|
|
526
|
-
| `hideFilterMenu` | no | boolean | If true, hides the filter menu icon. Default: false |
|
|
527
|
-
| `testID` | no | string | Sets testid on FilterHeader (used for testing purposes) |
|
|
528
|
-
| `title` | yes | string | Title to show on the header |
|
|
529
|
-
| `transparent` | no | boolean | If true, transparent background will be applied. Default: false |
|
|
530
|
-
|
|
531
|
-
No additional properties.
|
|
532
|
-
|
|
533
550
|
## FloatingButton
|
|
534
551
|
|
|
535
552
|
Floating action button with shadow, configurable appearance, and haptic feedback
|
|
536
553
|
|
|
537
|
-
Catalog key: `FloatingButton`
|
|
538
|
-
Builder: `FloatingButton`
|
|
539
|
-
Props type: `FloatingButtonProps`
|
|
540
|
-
Accepts children: no
|
|
554
|
+
Catalog key: `FloatingButton`
|
|
555
|
+
Builder: `FloatingButton`
|
|
556
|
+
Props type: `FloatingButtonProps`
|
|
557
|
+
Accepts children: no
|
|
541
558
|
Events: `press`
|
|
542
559
|
|
|
543
560
|
### Props
|
|
@@ -555,29 +572,7 @@ Events: `press`
|
|
|
555
572
|
| `spinner` | no | boolean | Shows a loading spinner. Bind to state for async feedback. Default: false |
|
|
556
573
|
| `testID` | no | string | Sets testid on FloatingButton (used for testing purposes) |
|
|
557
574
|
| `variant` | no | [FloatingButtonVariant](./definitions.md#floatingbuttonvariant) | Button variant. Default: base |
|
|
558
|
-
|
|
559
|
-
No additional properties.
|
|
560
|
-
|
|
561
|
-
## Footer
|
|
562
|
-
|
|
563
|
-
Page footer with action buttons
|
|
564
|
-
|
|
565
|
-
actions array items: { id, title, appearance?, disabled? }. All button presses emit "action".
|
|
566
|
-
|
|
567
|
-
Catalog key: `Footer`
|
|
568
|
-
Builder: `Footer`
|
|
569
|
-
Props type: `FooterProps`
|
|
570
|
-
Accepts children: no
|
|
571
|
-
Events: `action`
|
|
572
|
-
|
|
573
|
-
### Props
|
|
574
|
-
|
|
575
|
-
| Name | Required | Type | Description |
|
|
576
|
-
|---|---:|---|---|
|
|
577
|
-
| `actions` | no | [FooterAction](./types.md#footeraction)[] | Array of footer action buttons. All button presses emit "action". |
|
|
578
|
-
| `align` | no | [FooterAlign](./definitions.md#footeralign) | Alignment of buttons in the footer. Default: stretch |
|
|
579
|
-
| `testID` | no | string | Sets testid on Footer (used for testing purposes) |
|
|
580
|
-
| `transparent` | no | boolean | If true, transparent background will be applied |
|
|
575
|
+
| `visible` | no | boolean | Controls whether the floating button is shown. Default: true |
|
|
581
576
|
|
|
582
577
|
No additional properties.
|
|
583
578
|
|
|
@@ -587,10 +582,10 @@ Form container that manages validation, submission, and input layout
|
|
|
587
582
|
|
|
588
583
|
Wrap form inputs as children. "submit" event fires with validated data. Use hideSubmitButton:true when providing a custom submit button.
|
|
589
584
|
|
|
590
|
-
Catalog key: `Form`
|
|
591
|
-
Builder: `Form`
|
|
592
|
-
Props type: `FormProps`
|
|
593
|
-
Accepts children: yes
|
|
585
|
+
Catalog key: `Form`
|
|
586
|
+
Builder: `Form`
|
|
587
|
+
Props type: `FormProps`
|
|
588
|
+
Accepts children: yes
|
|
594
589
|
Events: `submit`, `valid`, `invalid`
|
|
595
590
|
|
|
596
591
|
### Props
|
|
@@ -618,10 +613,10 @@ Groups two input children side-by-side with shared validation state
|
|
|
618
613
|
|
|
619
614
|
Groups 2 input children side-by-side. Provides shared error and helper text.
|
|
620
615
|
|
|
621
|
-
Catalog key: `Group`
|
|
622
|
-
Builder: `Group`
|
|
623
|
-
Props type: `GroupProps`
|
|
624
|
-
Accepts children: yes
|
|
616
|
+
Catalog key: `Group`
|
|
617
|
+
Builder: `Group`
|
|
618
|
+
Props type: `GroupProps`
|
|
619
|
+
Accepts children: yes
|
|
625
620
|
Events: _none_
|
|
626
621
|
|
|
627
622
|
### Props
|
|
@@ -629,46 +624,23 @@ Events: _none_
|
|
|
629
624
|
| Name | Required | Type | Description |
|
|
630
625
|
|---|---:|---|---|
|
|
631
626
|
| `disabled` | no | boolean | Disables all inputs in the group. Default: false |
|
|
632
|
-
| `error` | no |
|
|
627
|
+
| `error` | no | string \| boolean | Error state or error message for the group |
|
|
633
628
|
| `helperText` | no | string | Helper text shown below the grouped inputs |
|
|
634
629
|
| `required` | no | boolean | Marks the group as required. Default: false |
|
|
635
630
|
| `testID` | no | string | Sets testid on Group (used for testing purposes) |
|
|
636
631
|
|
|
637
632
|
No additional properties.
|
|
638
633
|
|
|
639
|
-
## Header
|
|
640
|
-
|
|
641
|
-
Page header with title, optional subtitle and badge
|
|
642
|
-
|
|
643
|
-
Catalog key: `Header`
|
|
644
|
-
Builder: `Header`
|
|
645
|
-
Props type: `HeaderProps`
|
|
646
|
-
Accepts children: no
|
|
647
|
-
Events: _none_
|
|
648
|
-
|
|
649
|
-
### Props
|
|
650
|
-
|
|
651
|
-
| Name | Required | Type | Description |
|
|
652
|
-
|---|---:|---|---|
|
|
653
|
-
| `badge` | no | string | Badge text shown beside the title |
|
|
654
|
-
| `right` | no | [HeaderRight2](./types.md#headerright2) | A json-render spec to render as the right element on the header |
|
|
655
|
-
| `subtitle` | no | string | Subtitle to show on the header |
|
|
656
|
-
| `testID` | no | string | Sets testid on Header (used for testing purposes) |
|
|
657
|
-
| `title` | yes | string | Title to show on the header |
|
|
658
|
-
| `transparent` | no | boolean | If true, transparent background will be applied |
|
|
659
|
-
|
|
660
|
-
No additional properties.
|
|
661
|
-
|
|
662
634
|
## Hidden
|
|
663
635
|
|
|
664
636
|
Hidden state carrier — no visible UI
|
|
665
637
|
|
|
666
638
|
Hidden state carrier — no visible UI. Use $bindState on value to store any JSON-serializable value in spec state.
|
|
667
639
|
|
|
668
|
-
Catalog key: `Hidden`
|
|
669
|
-
Builder: `Hidden`
|
|
670
|
-
Props type: `HiddenProps`
|
|
671
|
-
Accepts children: no
|
|
640
|
+
Catalog key: `Hidden`
|
|
641
|
+
Builder: `Hidden`
|
|
642
|
+
Props type: `HiddenProps`
|
|
643
|
+
Accepts children: no
|
|
672
644
|
Events: `change`
|
|
673
645
|
|
|
674
646
|
### Props
|
|
@@ -686,10 +658,10 @@ Horizontal flex row container
|
|
|
686
658
|
|
|
687
659
|
Lays children out horizontally. By default, HStack wraps its content (shrinks to fit children). Use `width: "sizeFull"` to stretch and fill the available width. Use `gap` for spacing, `align` for cross-axis alignment, `justify` for main-axis distribution.
|
|
688
660
|
|
|
689
|
-
Catalog key: `HStack`
|
|
690
|
-
Builder: `HStack`
|
|
691
|
-
Props type: `HStackProps`
|
|
692
|
-
Accepts children: yes
|
|
661
|
+
Catalog key: `HStack`
|
|
662
|
+
Builder: `HStack`
|
|
663
|
+
Props type: `HStackProps`
|
|
664
|
+
Accepts children: yes
|
|
693
665
|
Events: _none_
|
|
694
666
|
|
|
695
667
|
### Props
|
|
@@ -705,7 +677,7 @@ Events: _none_
|
|
|
705
677
|
| `flex` | no | number | Flex grow/shrink factor |
|
|
706
678
|
| `gap` | no | [HStackBottom](./definitions.md#hstackbottom) | Gap between children — space token |
|
|
707
679
|
| `grow` | no | number | Flex grow factor |
|
|
708
|
-
| `height` | no |
|
|
680
|
+
| `height` | no | [HStackHeight](./definitions.md#hstackheight) \| string | Height — size token or percentage (e.g. "50%") |
|
|
709
681
|
| `justify` | no | [HStackJustify](./definitions.md#hstackjustify) | Align children along the main axis. Default: flex-start |
|
|
710
682
|
| `left` | no | [HStackBottom](./definitions.md#hstackbottom) | Left offset — space token |
|
|
711
683
|
| `margin` | no | [HStackBottom](./definitions.md#hstackbottom) | Margin on all sides — space token (e.g. space100, space200, space400) |
|
|
@@ -715,10 +687,10 @@ Events: _none_
|
|
|
715
687
|
| `marginRight` | no | [HStackBottom](./definitions.md#hstackbottom) | Right margin — space token |
|
|
716
688
|
| `marginTop` | no | [HStackBottom](./definitions.md#hstackbottom) | Top margin — space token |
|
|
717
689
|
| `marginVertical` | no | [HStackBottom](./definitions.md#hstackbottom) | Top and bottom margin — space token |
|
|
718
|
-
| `maxHeight` | no |
|
|
719
|
-
| `maxWidth` | no |
|
|
720
|
-
| `minHeight` | no |
|
|
721
|
-
| `minWidth` | no |
|
|
690
|
+
| `maxHeight` | no | [HStackHeight](./definitions.md#hstackheight) \| string | Maximum height — size token or percentage |
|
|
691
|
+
| `maxWidth` | no | [HStackHeight](./definitions.md#hstackheight) \| string | Maximum width — size token or percentage |
|
|
692
|
+
| `minHeight` | no | [HStackHeight](./definitions.md#hstackheight) \| string | Minimum height — size token or percentage |
|
|
693
|
+
| `minWidth` | no | [HStackHeight](./definitions.md#hstackheight) \| string | Minimum width — size token or percentage |
|
|
722
694
|
| `overflow` | no | [HStackOverflow](./definitions.md#hstackoverflow) | How content overflow is handled. Default: visible |
|
|
723
695
|
| `padding` | no | [HStackBottom](./definitions.md#hstackbottom) | Padding on all sides — space token (e.g. space100, space200, space400) |
|
|
724
696
|
| `paddingBottom` | no | [HStackBottom](./definitions.md#hstackbottom) | Bottom padding — space token |
|
|
@@ -735,7 +707,7 @@ Events: _none_
|
|
|
735
707
|
| `shrink` | no | number | Flex shrink factor |
|
|
736
708
|
| `testID` | no | string | Sets testid on HStack (used for testing purposes) |
|
|
737
709
|
| `top` | no | [HStackBottom](./definitions.md#hstackbottom) | Top offset — space token |
|
|
738
|
-
| `width` | no |
|
|
710
|
+
| `width` | no | [HStackHeight](./definitions.md#hstackheight) \| string | Width — size token (e.g. size400, size800) or percentage (e.g. "100%") |
|
|
739
711
|
| `wrap` | no | [HStackWrap](./definitions.md#hstackwrap) | Whether children wrap to next line. Default: nowrap |
|
|
740
712
|
| `zIndex` | no | number | Stack order |
|
|
741
713
|
|
|
@@ -747,10 +719,10 @@ Scalable vector icon from the pebble icon pack
|
|
|
747
719
|
|
|
748
720
|
`type` must be a valid pebble icon name. Wire `onPress` to the `press` event to make the icon tappable.
|
|
749
721
|
|
|
750
|
-
Catalog key: `Icon`
|
|
751
|
-
Builder: `Icon`
|
|
752
|
-
Props type: `IconProps`
|
|
753
|
-
Accepts children: no
|
|
722
|
+
Catalog key: `Icon`
|
|
723
|
+
Builder: `Icon`
|
|
724
|
+
Props type: `IconProps`
|
|
725
|
+
Accepts children: no
|
|
754
726
|
Events: `press`
|
|
755
727
|
|
|
756
728
|
### Props
|
|
@@ -771,10 +743,10 @@ Displays a raster or SVG image from a remote URL
|
|
|
771
743
|
|
|
772
744
|
Use `style` with token keys (e.g. { width: "size400", height: "size400", marginTop: "space200" }) for layout and sizing. `shapeCorner` sets preset border radius; style `borderRadius` tokens can further override corners. Use `contentFit` to control how the image scales within its bounds.
|
|
773
745
|
|
|
774
|
-
Catalog key: `Image`
|
|
775
|
-
Builder: `Image`
|
|
776
|
-
Props type: `ImageProps`
|
|
777
|
-
Accepts children: no
|
|
746
|
+
Catalog key: `Image`
|
|
747
|
+
Builder: `Image`
|
|
748
|
+
Props type: `ImageProps`
|
|
749
|
+
Accepts children: no
|
|
778
750
|
Events: _none_
|
|
779
751
|
|
|
780
752
|
### Props
|
|
@@ -783,7 +755,7 @@ Events: _none_
|
|
|
783
755
|
|---|---:|---|---|
|
|
784
756
|
| `contentFit` | no | [AvatarContentFit](./definitions.md#avatarcontentfit) | How the image scales within its bounds. Default: cover |
|
|
785
757
|
| `shapeCorner` | no | [ImageShapeCorner](./definitions.md#imageshapecorner) | Border radius of the image. Default: none |
|
|
786
|
-
| `source` | no |
|
|
758
|
+
| `source` | no | string \| [ImageSource](./types.md#imagesource) \| [ImageSource](./types.md#imagesource) | Image source — a URI string, a structured source object { uri, width?, height?, headers? }, or a themed variant { light: source, dark: source } |
|
|
787
759
|
| `style` | no | [ImageStyle](./types.md#imagestyle) | Image style overrides — token keys only, e.g. { width: "size400", height: "size400", marginTop: "space200" } |
|
|
788
760
|
| `supportsSvgCss` | no | boolean | If true, CSS support for remote SVG URI will be added. Default: false |
|
|
789
761
|
| `testID` | no | string | Sets testid on Image (used for testing purposes) |
|
|
@@ -796,10 +768,10 @@ Single-line text input field
|
|
|
796
768
|
|
|
797
769
|
`onChange` stores the string value to the bound state path. Use `checks` + `validateOn` for inline validation.
|
|
798
770
|
|
|
799
|
-
Catalog key: `InputText`
|
|
800
|
-
Builder: `InputText`
|
|
801
|
-
Props type: `InputTextProps`
|
|
802
|
-
Accepts children: no
|
|
771
|
+
Catalog key: `InputText`
|
|
772
|
+
Builder: `InputText`
|
|
773
|
+
Props type: `InputTextProps`
|
|
774
|
+
Accepts children: no
|
|
803
775
|
Events: `change`, `blur`
|
|
804
776
|
|
|
805
777
|
### Props
|
|
@@ -811,13 +783,13 @@ Events: `change`, `blur`
|
|
|
811
783
|
| `clearable` | no | boolean | Shows a clear button when the field has a value. Default: false |
|
|
812
784
|
| `defaultValue` | no | string | Initial value for uncontrolled mode |
|
|
813
785
|
| `disabled` | no | boolean | Disables the input. Default: false |
|
|
814
|
-
| `error` | no |
|
|
786
|
+
| `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
|
|
815
787
|
| `helperText` | no | string | Help text shown below the input |
|
|
816
788
|
| `label` | no | string | Label shown above the input |
|
|
817
789
|
| `placeholder` | no | string | Placeholder text shown when the field is empty |
|
|
818
790
|
| `readOnly` | no | boolean | Shows value without allowing edits. Default: false |
|
|
819
791
|
| `required` | no | boolean | Marks the field as required. Default: false |
|
|
820
|
-
| `rightIcon` | no | [
|
|
792
|
+
| `rightIcon` | no | [AvatarSource](./definitions.md#avatarsource) | Pebble icon name shown on the right side of the input |
|
|
821
793
|
| `sensitive` | no | boolean | Marks the field as sensitive (e.g. masked in screenshots). Default: false |
|
|
822
794
|
| `testID` | no | string | Sets testid on InputText (used for testing purposes) |
|
|
823
795
|
| `validateOn` | no | [CheckboxValidateOn](./definitions.md#checkboxvalidateon) | When to run validation checks. Requires checks to be set |
|
|
@@ -829,10 +801,10 @@ No additional properties.
|
|
|
829
801
|
|
|
830
802
|
Styled inline text label with predefined appearances
|
|
831
803
|
|
|
832
|
-
Catalog key: `Label`
|
|
833
|
-
Builder: `Label`
|
|
834
|
-
Props type: `LabelProps`
|
|
835
|
-
Accepts children: no
|
|
804
|
+
Catalog key: `Label`
|
|
805
|
+
Builder: `Label`
|
|
806
|
+
Props type: `LabelProps`
|
|
807
|
+
Accepts children: no
|
|
836
808
|
Events: _none_
|
|
837
809
|
|
|
838
810
|
### Props
|
|
@@ -851,10 +823,10 @@ Scrollable list container for ListItem children
|
|
|
851
823
|
|
|
852
824
|
Place `ListItem` components as children. The list renders them vertically with optional separator lines.
|
|
853
825
|
|
|
854
|
-
Catalog key: `List`
|
|
855
|
-
Builder: `List`
|
|
856
|
-
Props type: `ListProps`
|
|
857
|
-
Accepts children: yes
|
|
826
|
+
Catalog key: `List`
|
|
827
|
+
Builder: `List`
|
|
828
|
+
Props type: `ListProps`
|
|
829
|
+
Accepts children: yes
|
|
858
830
|
Events: _none_
|
|
859
831
|
|
|
860
832
|
### Props
|
|
@@ -872,10 +844,10 @@ Sub-component of List. Row item used inside a List container
|
|
|
872
844
|
|
|
873
845
|
Wire the `press` event to handle row taps. Pass `prefix` and/or `right` as json-render sub-specs to render content in the left and right slots.
|
|
874
846
|
|
|
875
|
-
Catalog key: `ListItem`
|
|
876
|
-
Builder: `ListItem`
|
|
877
|
-
Props type: `ListItemProps`
|
|
878
|
-
Accepts children: no
|
|
847
|
+
Catalog key: `ListItem`
|
|
848
|
+
Builder: `ListItem`
|
|
849
|
+
Props type: `ListItemProps`
|
|
850
|
+
Accepts children: no
|
|
879
851
|
Events: `press`
|
|
880
852
|
|
|
881
853
|
### Props
|
|
@@ -897,39 +869,16 @@ Events: `press`
|
|
|
897
869
|
|
|
898
870
|
No additional properties.
|
|
899
871
|
|
|
900
|
-
## ModalActionHeader
|
|
901
|
-
|
|
902
|
-
Sub-component of ModalSheet. Header with optional left/right action buttons; use inside ModalSheet
|
|
903
|
-
|
|
904
|
-
Catalog key: `ModalActionHeader`
|
|
905
|
-
Builder: `ModalActionHeader`
|
|
906
|
-
Props type: `ModalActionHeaderProps`
|
|
907
|
-
Accepts children: yes
|
|
908
|
-
Events: `leftPress`, `rightPress`
|
|
909
|
-
|
|
910
|
-
### Props
|
|
911
|
-
|
|
912
|
-
| Name | Required | Type | Description |
|
|
913
|
-
|---|---:|---|---|
|
|
914
|
-
| `indicator` | no | boolean | Whether to show an indicator on the header. Default: false |
|
|
915
|
-
| `left` | no | [Left](./types.md#left) | Left action: provide title for text button or iconType for icon button |
|
|
916
|
-
| `right` | no | [ModalActionHeaderRight](./types.md#modalactionheaderright) | Right action: provide title for text button or iconType for icon button |
|
|
917
|
-
| `subtitle` | no | string | Subtitle to show on the header |
|
|
918
|
-
| `testID` | no | string | Sets testid on ModalActionHeader (used for testing purposes) |
|
|
919
|
-
| `title` | no | string | Title to show on the header |
|
|
920
|
-
|
|
921
|
-
No additional properties.
|
|
922
|
-
|
|
923
872
|
## ModalSheet
|
|
924
873
|
|
|
925
874
|
Bottom sheet modal with gesture support and children slot
|
|
926
875
|
|
|
927
876
|
Set visible:true to show the sheet. Wire "close" event to toggle visible state.
|
|
928
877
|
|
|
929
|
-
Catalog key: `ModalSheet`
|
|
930
|
-
Builder: `ModalSheet`
|
|
931
|
-
Props type: `ModalSheetProps`
|
|
932
|
-
Accepts children: yes
|
|
878
|
+
Catalog key: `ModalSheet`
|
|
879
|
+
Builder: `ModalSheet`
|
|
880
|
+
Props type: `ModalSheetProps`
|
|
881
|
+
Accepts children: yes
|
|
933
882
|
Events: `close`
|
|
934
883
|
|
|
935
884
|
### Props
|
|
@@ -939,7 +888,7 @@ Events: `close`
|
|
|
939
888
|
| `animationDuration` | no | [ModalSheetAnimationDuration](./definitions.md#modalsheetanimationduration) | Motion duration token for the sheet animation. Default: moderate |
|
|
940
889
|
| `disableSafeArea` | no | boolean | If true, disables safe area insets inside the sheet. Default: false |
|
|
941
890
|
| `gesturePinVisible` | no | boolean | If true, shows the gesture pin at the top of the sheet. Default: true |
|
|
942
|
-
| `header` | no | [
|
|
891
|
+
| `header` | no | [ModalSheetHeader](./types.md#modalsheetheader) | A json-render spec to render as the header component of the ModalSheet, e.g. PageModalActionHeader |
|
|
943
892
|
| `testID` | no | string | Sets testid on ModalSheet (used for testing purposes) |
|
|
944
893
|
| `visible` | yes | boolean | If true, the ModalSheet will be visible |
|
|
945
894
|
|
|
@@ -951,10 +900,10 @@ Inline alert banner with title, description, and actions
|
|
|
951
900
|
|
|
952
901
|
`description` and action buttons are only shown in `base` variant (default). Wire `primaryPress` / `secondaryPress` events to handle button taps. Wire `close` event to handle the X dismiss button (base variant only).
|
|
953
902
|
|
|
954
|
-
Catalog key: `Notice`
|
|
955
|
-
Builder: `Notice`
|
|
956
|
-
Props type: `NoticeProps`
|
|
957
|
-
Accepts children: no
|
|
903
|
+
Catalog key: `Notice`
|
|
904
|
+
Builder: `Notice`
|
|
905
|
+
Props type: `NoticeProps`
|
|
906
|
+
Accepts children: no
|
|
958
907
|
Events: `primaryPress`, `secondaryPress`, `close`
|
|
959
908
|
|
|
960
909
|
### Props
|
|
@@ -964,7 +913,7 @@ Events: `primaryPress`, `secondaryPress`, `close`
|
|
|
964
913
|
| `appearance` | no | [NoticeAppearance](./definitions.md#noticeappearance) | Notice appearance. Default: primary |
|
|
965
914
|
| `description` | no | string | Notice description text (only shown in base variant) |
|
|
966
915
|
| `haptic` | no | boolean | Enables haptic feedback when notice appears. Default: true |
|
|
967
|
-
| `icon` | no | [
|
|
916
|
+
| `icon` | no | [AvatarSource](./definitions.md#avatarsource) | Pebble icon name to display above the title |
|
|
968
917
|
| `primaryAction` | no | [NoticePrimaryAction](./types.md#noticeprimaryaction) | Primary action button — wire to `primaryPress` event |
|
|
969
918
|
| `secondaryAction` | no | [NoticeSecondaryAction](./types.md#noticesecondaryaction) | Secondary action button — wire to `secondaryPress` event |
|
|
970
919
|
| `testID` | no | string | Sets testid on Notice (used for testing purposes) |
|
|
@@ -979,10 +928,10 @@ Numeric text input
|
|
|
979
928
|
|
|
980
929
|
Numeric text input. `onChange` stores a number string in state.
|
|
981
930
|
|
|
982
|
-
Catalog key: `Number`
|
|
983
|
-
Builder: `Number`
|
|
984
|
-
Props type: `NumberProps`
|
|
985
|
-
Accepts children: no
|
|
931
|
+
Catalog key: `Number`
|
|
932
|
+
Builder: `Number`
|
|
933
|
+
Props type: `NumberProps`
|
|
934
|
+
Accepts children: no
|
|
986
935
|
Events: `change`, `blur`
|
|
987
936
|
|
|
988
937
|
### Props
|
|
@@ -995,7 +944,7 @@ Events: `change`, `blur`
|
|
|
995
944
|
| `decimalPlaces` | no | number | Number of decimal places allowed |
|
|
996
945
|
| `defaultValue` | no | string | Initial value for uncontrolled mode |
|
|
997
946
|
| `disabled` | no | boolean | Disables the input. Default: false |
|
|
998
|
-
| `error` | no |
|
|
947
|
+
| `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
|
|
999
948
|
| `helperText` | no | string | Help text shown below the input |
|
|
1000
949
|
| `label` | no | string | Label shown above the input |
|
|
1001
950
|
| `locale` | no | string | Locale string for number formatting e.g. "en-US" |
|
|
@@ -1015,10 +964,10 @@ No additional properties.
|
|
|
1015
964
|
|
|
1016
965
|
Sub-component of ObjectUI. Footer with approve, reject, notes buttons and optional chevrons
|
|
1017
966
|
|
|
1018
|
-
Catalog key: `ObjectFooter`
|
|
1019
|
-
Builder: `ObjectFooter`
|
|
1020
|
-
Props type: `ObjectFooterProps`
|
|
1021
|
-
Accepts children: no
|
|
967
|
+
Catalog key: `ObjectFooter`
|
|
968
|
+
Builder: `ObjectFooter`
|
|
969
|
+
Props type: `ObjectFooterProps`
|
|
970
|
+
Accepts children: no
|
|
1022
971
|
Events: `reject`, `approve`, `notes`, `leftChevron`, `rightChevron`
|
|
1023
972
|
|
|
1024
973
|
### Props
|
|
@@ -1037,10 +986,10 @@ Sub-component of ObjectUI. A row item for object detail views with title, option
|
|
|
1037
986
|
|
|
1038
987
|
Pass `lhs` and/or `rhs` props as json-render specs ({ root, elements }) to render prefix and suffix content. Each spec is rendered inline via the Renderer.
|
|
1039
988
|
|
|
1040
|
-
Catalog key: `ObjectItem`
|
|
1041
|
-
Builder: `ObjectItem`
|
|
1042
|
-
Props type: `ObjectItemProps`
|
|
1043
|
-
Accepts children: no
|
|
989
|
+
Catalog key: `ObjectItem`
|
|
990
|
+
Builder: `ObjectItem`
|
|
991
|
+
Props type: `ObjectItemProps`
|
|
992
|
+
Accepts children: no
|
|
1044
993
|
Events: _none_
|
|
1045
994
|
|
|
1046
995
|
### Props
|
|
@@ -1052,9 +1001,9 @@ Events: _none_
|
|
|
1052
1001
|
| `chevron` | no | boolean | If true, displays chevron on the right side. Default: false |
|
|
1053
1002
|
| `heavy` | no | boolean | If true, makes the title font weight heavy. Default: false |
|
|
1054
1003
|
| `lhs` | no | [Lh](./types.md#lh) | A json-render spec to render as the prefix (left-hand side) of the ObjectItem, e.g. an Avatar or Icon |
|
|
1055
|
-
| `lhsMaxWidth` | no |
|
|
1004
|
+
| `lhsMaxWidth` | no | [HStackHeight](./definitions.md#hstackheight) \| string | Maximum width of the left-hand side content — size token |
|
|
1056
1005
|
| `rhs` | no | [Rh](./types.md#rh) | A json-render spec to render on the right side of the ObjectItem, e.g. Label or Status elements |
|
|
1057
|
-
| `rhsMaxWidth` | no |
|
|
1006
|
+
| `rhsMaxWidth` | no | [HStackHeight](./definitions.md#hstackheight) \| string | Maximum width of the right-hand side content — size token |
|
|
1058
1007
|
| `testID` | no | string | Sets testid on ObjectItem (used for testing purposes) |
|
|
1059
1008
|
| `title` | no | string | Title to show on the ObjectItem |
|
|
1060
1009
|
|
|
@@ -1066,10 +1015,10 @@ Displays a mobile custom object list view for the provided custom object API nam
|
|
|
1066
1015
|
|
|
1067
1016
|
Use this component as the root view for custom app object pages. It fetches the first page of records for the provided custom object API name.
|
|
1068
1017
|
|
|
1069
|
-
Catalog key: `ObjectListView`
|
|
1070
|
-
Builder: `ObjectListView`
|
|
1071
|
-
Props type: `ObjectListViewProps`
|
|
1072
|
-
Accepts children: no
|
|
1018
|
+
Catalog key: `ObjectListView`
|
|
1019
|
+
Builder: `ObjectListView`
|
|
1020
|
+
Props type: `ObjectListViewProps`
|
|
1021
|
+
Accepts children: no
|
|
1073
1022
|
Events: _none_
|
|
1074
1023
|
|
|
1075
1024
|
### Props
|
|
@@ -1088,10 +1037,10 @@ Displays a compact card preview for a mobile custom object list view.
|
|
|
1088
1037
|
|
|
1089
1038
|
Use this component when a custom app page should show a preview card first. Tapping the card opens the full ObjectListView.
|
|
1090
1039
|
|
|
1091
|
-
Catalog key: `ObjectListViewCard`
|
|
1092
|
-
Builder: `ObjectListViewCard`
|
|
1093
|
-
Props type: `ObjectListViewCardProps`
|
|
1094
|
-
Accepts children: no
|
|
1040
|
+
Catalog key: `ObjectListViewCard`
|
|
1041
|
+
Builder: `ObjectListViewCard`
|
|
1042
|
+
Props type: `ObjectListViewCardProps`
|
|
1043
|
+
Accepts children: no
|
|
1095
1044
|
Events: _none_
|
|
1096
1045
|
|
|
1097
1046
|
### Props
|
|
@@ -1104,16 +1053,152 @@ Events: _none_
|
|
|
1104
1053
|
|
|
1105
1054
|
No additional properties.
|
|
1106
1055
|
|
|
1056
|
+
## PageCondensedFooter
|
|
1057
|
+
|
|
1058
|
+
Condensed footer with title, logo icon, and optional action button
|
|
1059
|
+
|
|
1060
|
+
Catalog key: `PageCondensedFooter`
|
|
1061
|
+
Builder: `PageCondensedFooter`
|
|
1062
|
+
Props type: `PageCondensedFooterProps`
|
|
1063
|
+
Accepts children: no
|
|
1064
|
+
Events: `action`
|
|
1065
|
+
|
|
1066
|
+
### Props
|
|
1067
|
+
|
|
1068
|
+
| Name | Required | Type | Description |
|
|
1069
|
+
|---|---:|---|---|
|
|
1070
|
+
| `action` | no | [PageCondensedFooterAction](./types.md#pagecondensedfooteraction) | Optional action button. Press emits "action". |
|
|
1071
|
+
| `logoIcon` | no | string | Pebble icon name to use as the logo |
|
|
1072
|
+
| `testID` | no | string | Sets testid on CondensedFooter (used for testing purposes) |
|
|
1073
|
+
| `title` | yes | string | Title text in the footer |
|
|
1074
|
+
|
|
1075
|
+
No additional properties.
|
|
1076
|
+
|
|
1077
|
+
## PageCondensedHeader
|
|
1078
|
+
|
|
1079
|
+
Condensed page header with title
|
|
1080
|
+
|
|
1081
|
+
Catalog key: `PageCondensedHeader`
|
|
1082
|
+
Builder: `PageCondensedHeader`
|
|
1083
|
+
Props type: `PageCondensedHeaderProps`
|
|
1084
|
+
Accepts children: no
|
|
1085
|
+
Events: _none_
|
|
1086
|
+
|
|
1087
|
+
### Props
|
|
1088
|
+
|
|
1089
|
+
| Name | Required | Type | Description |
|
|
1090
|
+
|---|---:|---|---|
|
|
1091
|
+
| `outlined` | no | boolean | Shows an outline border on the header. Default: false |
|
|
1092
|
+
| `right` | no | [PageCondensedHeaderRight](./types.md#pagecondensedheaderright) | A json-render spec to render as the right element on the header |
|
|
1093
|
+
| `testID` | no | string | Sets testid on CondensedHeader (used for testing purposes) |
|
|
1094
|
+
| `title` | yes | string | Title to show on the header |
|
|
1095
|
+
|
|
1096
|
+
No additional properties.
|
|
1097
|
+
|
|
1098
|
+
## PageFilterHeader
|
|
1099
|
+
|
|
1100
|
+
Page header with title, badge, and collapsible filter menu
|
|
1101
|
+
|
|
1102
|
+
Catalog key: `PageFilterHeader`
|
|
1103
|
+
Builder: `PageFilterHeader`
|
|
1104
|
+
Props type: `PageFilterHeaderProps`
|
|
1105
|
+
Accepts children: no
|
|
1106
|
+
Events: `filterMenuPress`
|
|
1107
|
+
|
|
1108
|
+
### Props
|
|
1109
|
+
|
|
1110
|
+
| Name | Required | Type | Description |
|
|
1111
|
+
|---|---:|---|---|
|
|
1112
|
+
| `badge` | no | string | Badge text shown beside the title |
|
|
1113
|
+
| `defaultExpanded` | no | boolean | Default expanded state of the filter menu. Default: false |
|
|
1114
|
+
| `hideFilterMenu` | no | boolean | If true, hides the filter menu icon. Default: false |
|
|
1115
|
+
| `testID` | no | string | Sets testid on FilterHeader (used for testing purposes) |
|
|
1116
|
+
| `title` | yes | string | Title to show on the header |
|
|
1117
|
+
| `transparent` | no | boolean | If true, transparent background will be applied. Default: false |
|
|
1118
|
+
|
|
1119
|
+
No additional properties.
|
|
1120
|
+
|
|
1121
|
+
## PageFooter
|
|
1122
|
+
|
|
1123
|
+
A page-level footer displaying primary and secondary action buttons. Use with PageHeader and PageContent to construct a page layout.
|
|
1124
|
+
|
|
1125
|
+
PageFooter renders the Page.Footer component from Pebble Mobile. actions array items: { id, title, appearance?, disabled? }. All button presses emit "action".
|
|
1126
|
+
|
|
1127
|
+
Catalog key: `PageFooter`
|
|
1128
|
+
Builder: `PageFooter`
|
|
1129
|
+
Props type: `PageFooterProps`
|
|
1130
|
+
Accepts children: no
|
|
1131
|
+
Events: `action`
|
|
1132
|
+
|
|
1133
|
+
### Props
|
|
1134
|
+
|
|
1135
|
+
| Name | Required | Type | Description |
|
|
1136
|
+
|---|---:|---|---|
|
|
1137
|
+
| `actions` | no | [PageFooterAction](./types.md#pagefooteraction)[] | Array of page footer action buttons. All button presses emit "action". |
|
|
1138
|
+
| `align` | no | [PageFooterAlign](./definitions.md#pagefooteralign) | Alignment of buttons in the page footer. Default: stretch |
|
|
1139
|
+
| `testID` | no | string | Sets the test ID on PageFooter |
|
|
1140
|
+
| `transparent` | no | boolean | Applies a transparent background to the page footer |
|
|
1141
|
+
|
|
1142
|
+
No additional properties.
|
|
1143
|
+
|
|
1144
|
+
## PageHeader
|
|
1145
|
+
|
|
1146
|
+
A top-of-page header displaying a title, optional subtitle, and badge. Use with PageContent and PageFooter to construct a page layout.
|
|
1147
|
+
|
|
1148
|
+
PageHeader renders the Page.Header component from Pebble Mobile. Use it only as page-level chrome; use AppBar for push-navigated screens that require back navigation and safe-area handling.
|
|
1149
|
+
|
|
1150
|
+
Catalog key: `PageHeader`
|
|
1151
|
+
Builder: `PageHeader`
|
|
1152
|
+
Props type: `PageHeaderProps`
|
|
1153
|
+
Accepts children: no
|
|
1154
|
+
Events: _none_
|
|
1155
|
+
|
|
1156
|
+
### Props
|
|
1157
|
+
|
|
1158
|
+
| Name | Required | Type | Description |
|
|
1159
|
+
|---|---:|---|---|
|
|
1160
|
+
| `badge` | no | string | Badge text shown beside the title |
|
|
1161
|
+
| `right` | no | [PageHeaderRight](./types.md#pageheaderright) | A json-render spec rendered on the right side of the page header |
|
|
1162
|
+
| `subtitle` | no | string | Optional subtitle displayed below the page header title |
|
|
1163
|
+
| `testID` | no | string | Sets the test ID on PageHeader |
|
|
1164
|
+
| `title` | yes | string | Title displayed in the page header |
|
|
1165
|
+
| `transparent` | no | boolean | Applies a transparent background to the page header |
|
|
1166
|
+
|
|
1167
|
+
No additional properties.
|
|
1168
|
+
|
|
1169
|
+
## PageModalActionHeader
|
|
1170
|
+
|
|
1171
|
+
Sub-component of ModalSheet. Header with optional left/right action buttons; use inside ModalSheet
|
|
1172
|
+
|
|
1173
|
+
Catalog key: `PageModalActionHeader`
|
|
1174
|
+
Builder: `PageModalActionHeader`
|
|
1175
|
+
Props type: `PageModalActionHeaderProps`
|
|
1176
|
+
Accepts children: yes
|
|
1177
|
+
Events: `leftPress`, `rightPress`
|
|
1178
|
+
|
|
1179
|
+
### Props
|
|
1180
|
+
|
|
1181
|
+
| Name | Required | Type | Description |
|
|
1182
|
+
|---|---:|---|---|
|
|
1183
|
+
| `indicator` | no | boolean | Whether to show an indicator on the header. Default: false |
|
|
1184
|
+
| `left` | no | [Left](./types.md#left) | Left action: provide title for text button or iconType for icon button |
|
|
1185
|
+
| `right` | no | [PageModalActionHeaderRight](./types.md#pagemodalactionheaderright) | Right action: provide title for text button or iconType for icon button |
|
|
1186
|
+
| `subtitle` | no | string | Subtitle to show on the header |
|
|
1187
|
+
| `testID` | no | string | Sets testid on ModalActionHeader (used for testing purposes) |
|
|
1188
|
+
| `title` | no | string | Title to show on the header |
|
|
1189
|
+
|
|
1190
|
+
No additional properties.
|
|
1191
|
+
|
|
1107
1192
|
## Password
|
|
1108
1193
|
|
|
1109
1194
|
Password input with optional reveal toggle
|
|
1110
1195
|
|
|
1111
1196
|
Password input with optional reveal toggle. `onChange` stores a string in state.
|
|
1112
1197
|
|
|
1113
|
-
Catalog key: `Password`
|
|
1114
|
-
Builder: `Password`
|
|
1115
|
-
Props type: `PasswordProps`
|
|
1116
|
-
Accepts children: no
|
|
1198
|
+
Catalog key: `Password`
|
|
1199
|
+
Builder: `Password`
|
|
1200
|
+
Props type: `PasswordProps`
|
|
1201
|
+
Accepts children: no
|
|
1117
1202
|
Events: `change`, `blur`
|
|
1118
1203
|
|
|
1119
1204
|
### Props
|
|
@@ -1125,7 +1210,7 @@ Events: `change`, `blur`
|
|
|
1125
1210
|
| `clearable` | no | boolean | Shows a clear button when the field has a value. Default: false |
|
|
1126
1211
|
| `defaultValue` | no | string | Initial value for uncontrolled mode |
|
|
1127
1212
|
| `disabled` | no | boolean | Disables the input. Default: false |
|
|
1128
|
-
| `error` | no |
|
|
1213
|
+
| `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
|
|
1129
1214
|
| `helperText` | no | string | Help text shown below the input |
|
|
1130
1215
|
| `label` | no | string | Label shown above the input |
|
|
1131
1216
|
| `readOnly` | no | boolean | Shows value without allowing edits. Default: false |
|
|
@@ -1144,10 +1229,10 @@ Percentage input
|
|
|
1144
1229
|
|
|
1145
1230
|
Percentage input. `onChange` stores a number string in state.
|
|
1146
1231
|
|
|
1147
|
-
Catalog key: `Percentage`
|
|
1148
|
-
Builder: `Percentage`
|
|
1149
|
-
Props type: `PercentageProps`
|
|
1150
|
-
Accepts children: no
|
|
1232
|
+
Catalog key: `Percentage`
|
|
1233
|
+
Builder: `Percentage`
|
|
1234
|
+
Props type: `PercentageProps`
|
|
1235
|
+
Accepts children: no
|
|
1151
1236
|
Events: `change`, `blur`
|
|
1152
1237
|
|
|
1153
1238
|
### Props
|
|
@@ -1160,7 +1245,7 @@ Events: `change`, `blur`
|
|
|
1160
1245
|
| `decimalPlaces` | no | number | Number of decimal places allowed |
|
|
1161
1246
|
| `defaultValue` | no | string | Initial value for uncontrolled mode |
|
|
1162
1247
|
| `disabled` | no | boolean | Disables the input. Default: false |
|
|
1163
|
-
| `error` | no |
|
|
1248
|
+
| `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
|
|
1164
1249
|
| `helperText` | no | string | Help text shown below the input |
|
|
1165
1250
|
| `label` | no | string | Label shown above the input |
|
|
1166
1251
|
| `placeholder` | no | string | Placeholder text shown when the field is empty |
|
|
@@ -1179,10 +1264,10 @@ Phone number input with optional country code
|
|
|
1179
1264
|
|
|
1180
1265
|
Phone number input with optional country code. `onChange` stores phone string in state.
|
|
1181
1266
|
|
|
1182
|
-
Catalog key: `Phone`
|
|
1183
|
-
Builder: `Phone`
|
|
1184
|
-
Props type: `PhoneProps`
|
|
1185
|
-
Accepts children: no
|
|
1267
|
+
Catalog key: `Phone`
|
|
1268
|
+
Builder: `Phone`
|
|
1269
|
+
Props type: `PhoneProps`
|
|
1270
|
+
Accepts children: no
|
|
1186
1271
|
Events: `change`, `blur`
|
|
1187
1272
|
|
|
1188
1273
|
### Props
|
|
@@ -1193,7 +1278,7 @@ Events: `change`, `blur`
|
|
|
1193
1278
|
| `checks` | no | [PhoneCheck](./types.md#phonecheck)[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set |
|
|
1194
1279
|
| `defaultValue` | no | string | Initial value for uncontrolled mode |
|
|
1195
1280
|
| `disabled` | no | boolean | Disables the input. Default: false |
|
|
1196
|
-
| `error` | no |
|
|
1281
|
+
| `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
|
|
1197
1282
|
| `helperText` | no | string | Help text shown below the input |
|
|
1198
1283
|
| `inputWithCountryCode` | no | boolean | If true, country code will be included as part of the value. Default: false |
|
|
1199
1284
|
| `label` | no | string | Label shown above the input |
|
|
@@ -1214,10 +1299,10 @@ Tappable container that wraps any content
|
|
|
1214
1299
|
|
|
1215
1300
|
Wrap any content to make it tappable. Wire the `press` event to handle taps.
|
|
1216
1301
|
|
|
1217
|
-
Catalog key: `Pressable`
|
|
1218
|
-
Builder: `Pressable`
|
|
1219
|
-
Props type: `PressableProps`
|
|
1220
|
-
Accepts children: yes
|
|
1302
|
+
Catalog key: `Pressable`
|
|
1303
|
+
Builder: `Pressable`
|
|
1304
|
+
Props type: `PressableProps`
|
|
1305
|
+
Accepts children: yes
|
|
1221
1306
|
Events: `press`
|
|
1222
1307
|
|
|
1223
1308
|
### Props
|
|
@@ -1239,10 +1324,10 @@ Horizontal progress bar showing completion percentage
|
|
|
1239
1324
|
|
|
1240
1325
|
`value` is required and must be between 0 and `max` (default 100). Set `steps` > 1 for a segmented bar.
|
|
1241
1326
|
|
|
1242
|
-
Catalog key: `ProgressIndicator`
|
|
1243
|
-
Builder: `ProgressIndicator`
|
|
1244
|
-
Props type: `ProgressIndicatorProps`
|
|
1245
|
-
Accepts children: no
|
|
1327
|
+
Catalog key: `ProgressIndicator`
|
|
1328
|
+
Builder: `ProgressIndicator`
|
|
1329
|
+
Props type: `ProgressIndicatorProps`
|
|
1330
|
+
Accepts children: no
|
|
1246
1331
|
Events: _none_
|
|
1247
1332
|
|
|
1248
1333
|
### Props
|
|
@@ -1266,10 +1351,10 @@ Single radio button option with label
|
|
|
1266
1351
|
|
|
1267
1352
|
Always prefer RadioGroup. A single Radio is almost never the right primitive — use Checkbox or Switch for a standalone boolean option, and RadioGroup for any set of mutually exclusive options. Never place multiple individual Radio components in a VStack or Card manually.
|
|
1268
1353
|
|
|
1269
|
-
Catalog key: `Radio`
|
|
1270
|
-
Builder: `Radio`
|
|
1271
|
-
Props type: `RadioProps`
|
|
1272
|
-
Accepts children: no
|
|
1354
|
+
Catalog key: `Radio`
|
|
1355
|
+
Builder: `Radio`
|
|
1356
|
+
Props type: `RadioProps`
|
|
1357
|
+
Accepts children: no
|
|
1273
1358
|
Events: `change`, `blur`
|
|
1274
1359
|
|
|
1275
1360
|
### Props
|
|
@@ -1282,7 +1367,7 @@ Events: `change`, `blur`
|
|
|
1282
1367
|
| `checks` | no | [RadioCheck](./types.md#radiocheck)[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set |
|
|
1283
1368
|
| `defaultValue` | no | boolean | Initial value for uncontrolled mode. Default: false |
|
|
1284
1369
|
| `disabled` | no | boolean | Disables the radio button. Default: false |
|
|
1285
|
-
| `error` | no |
|
|
1370
|
+
| `error` | no | boolean \| string | Error state or error message |
|
|
1286
1371
|
| `haptic` | no | boolean | Enables haptic feedback on selection. Default: true |
|
|
1287
1372
|
| `helperText` | no | string | Help text shown below the radio group |
|
|
1288
1373
|
| `label` | no | string | Label text shown beside the radio |
|
|
@@ -1302,10 +1387,10 @@ Group of radio buttons for single-selection from a list
|
|
|
1302
1387
|
|
|
1303
1388
|
Preferred over multiple individual Radio components. Pass all options via the `options` array (each with `id` and `label`). Wrap in a Card for visual grouping. `onChange` stores the selected option id (string) to the bound state path.
|
|
1304
1389
|
|
|
1305
|
-
Catalog key: `RadioGroup`
|
|
1306
|
-
Builder: `RadioGroup`
|
|
1307
|
-
Props type: `RadioGroupProps`
|
|
1308
|
-
Accepts children: no
|
|
1390
|
+
Catalog key: `RadioGroup`
|
|
1391
|
+
Builder: `RadioGroup`
|
|
1392
|
+
Props type: `RadioGroupProps`
|
|
1393
|
+
Accepts children: no
|
|
1309
1394
|
Events: `change`
|
|
1310
1395
|
|
|
1311
1396
|
### Props
|
|
@@ -1314,7 +1399,7 @@ Events: `change`
|
|
|
1314
1399
|
|---|---:|---|---|
|
|
1315
1400
|
| `defaultValue` | no | string | Initial selected id for uncontrolled mode |
|
|
1316
1401
|
| `disabled` | no | boolean | Disables all options. Default: false |
|
|
1317
|
-
| `error` | no |
|
|
1402
|
+
| `error` | no | boolean \| string | Error state or error message shown below the group |
|
|
1318
1403
|
| `helperText` | no | string | Help text shown below the group |
|
|
1319
1404
|
| `options` | yes | [RadioGroupOption](./types.md#radiogroupoption)[] | Array of radio options: [{ id, label?, tag?, disabled? }] |
|
|
1320
1405
|
| `testID` | no | string | Sets testid on RadioGroup (used for testing purposes) |
|
|
@@ -1328,10 +1413,10 @@ Search input field with clear and cancel controls
|
|
|
1328
1413
|
|
|
1329
1414
|
`onChange` stores the query string to the bound state path. `cancel` event fires when the cancel button is pressed.
|
|
1330
1415
|
|
|
1331
|
-
Catalog key: `Search`
|
|
1332
|
-
Builder: `Search`
|
|
1333
|
-
Props type: `SearchProps`
|
|
1334
|
-
Accepts children: no
|
|
1416
|
+
Catalog key: `Search`
|
|
1417
|
+
Builder: `Search`
|
|
1418
|
+
Props type: `SearchProps`
|
|
1419
|
+
Accepts children: no
|
|
1335
1420
|
Events: `change`, `cancel`
|
|
1336
1421
|
|
|
1337
1422
|
### Props
|
|
@@ -1353,10 +1438,10 @@ No additional properties.
|
|
|
1353
1438
|
|
|
1354
1439
|
Section divider label with configurable background
|
|
1355
1440
|
|
|
1356
|
-
Catalog key: `SectionHeader`
|
|
1357
|
-
Builder: `SectionHeader`
|
|
1358
|
-
Props type: `SectionHeaderProps`
|
|
1359
|
-
Accepts children: no
|
|
1441
|
+
Catalog key: `SectionHeader`
|
|
1442
|
+
Builder: `SectionHeader`
|
|
1443
|
+
Props type: `SectionHeaderProps`
|
|
1444
|
+
Accepts children: no
|
|
1360
1445
|
Events: _none_
|
|
1361
1446
|
|
|
1362
1447
|
### Props
|
|
@@ -1376,10 +1461,10 @@ Dropdown picker input with a searchable action sheet
|
|
|
1376
1461
|
|
|
1377
1462
|
`onChange` stores the selected option id to the bound state path. For multi-select set `multiple: true` — state becomes a string[]. `options` must have unique `id` values.
|
|
1378
1463
|
|
|
1379
|
-
Catalog key: `Select`
|
|
1380
|
-
Builder: `Select`
|
|
1381
|
-
Props type: `SelectProps`
|
|
1382
|
-
Accepts children: no
|
|
1464
|
+
Catalog key: `Select`
|
|
1465
|
+
Builder: `Select`
|
|
1466
|
+
Props type: `SelectProps`
|
|
1467
|
+
Accepts children: no
|
|
1383
1468
|
Events: `change`
|
|
1384
1469
|
|
|
1385
1470
|
### Props
|
|
@@ -1391,7 +1476,7 @@ Events: `change`
|
|
|
1391
1476
|
| `defaultValue` | no | string | Default selected option id for uncontrolled mode |
|
|
1392
1477
|
| `descriptionNumberOfLines` | no | number | Max lines for option description text in the picker. Default: 1 |
|
|
1393
1478
|
| `disabled` | no | boolean | Disables the select input. Default: false |
|
|
1394
|
-
| `error` | no |
|
|
1479
|
+
| `error` | no | boolean \| string | Error state or error message |
|
|
1395
1480
|
| `helperText` | no | string | Help text shown below the select input |
|
|
1396
1481
|
| `hideDismissButton` | no | boolean | Hides the dismiss button in the picker sheet header. Default: false |
|
|
1397
1482
|
| `label` | yes | string | Label shown above the select input |
|
|
@@ -1415,26 +1500,26 @@ Chip-based multi-select or single-select input
|
|
|
1415
1500
|
|
|
1416
1501
|
Chip-based selection. options must be [{id, label}]. onChange stores selected id (single) or id[] (multiple) in state.
|
|
1417
1502
|
|
|
1418
|
-
Catalog key: `SelectChips`
|
|
1419
|
-
Builder: `SelectChips`
|
|
1420
|
-
Props type: `SelectChipsProps`
|
|
1421
|
-
Accepts children: no
|
|
1503
|
+
Catalog key: `SelectChips`
|
|
1504
|
+
Builder: `SelectChips`
|
|
1505
|
+
Props type: `SelectChipsProps`
|
|
1506
|
+
Accepts children: no
|
|
1422
1507
|
Events: `change`
|
|
1423
1508
|
|
|
1424
1509
|
### Props
|
|
1425
1510
|
|
|
1426
1511
|
| Name | Required | Type | Description |
|
|
1427
1512
|
|---|---:|---|---|
|
|
1428
|
-
| `defaultValue` | no |
|
|
1513
|
+
| `defaultValue` | no | string \| string[] | Initial value for uncontrolled mode |
|
|
1429
1514
|
| `disabled` | no | boolean | Disables the chips. Default: false |
|
|
1430
|
-
| `error` | no |
|
|
1515
|
+
| `error` | no | string \| boolean | Error state or error message |
|
|
1431
1516
|
| `helperText` | no | string | Help text shown below the chips |
|
|
1432
1517
|
| `multiple` | no | boolean | Allow multiple selection. Default: true |
|
|
1433
1518
|
| `options` | yes | [SelectChipsOption](./types.md#selectchipsoption)[] | Array of selectable chip options |
|
|
1434
1519
|
| `readOnly` | no | boolean | Displays value without allowing edits. Default: false |
|
|
1435
1520
|
| `sensitive` | no | boolean | Masks chip values. Default: false |
|
|
1436
1521
|
| `testID` | no | string | Sets testid on SelectChips (used for testing purposes) |
|
|
1437
|
-
| `value` | no |
|
|
1522
|
+
| `value` | no | string \| string[] | Selected id or array of ids — bind via $bindState |
|
|
1438
1523
|
|
|
1439
1524
|
No additional properties.
|
|
1440
1525
|
|
|
@@ -1444,10 +1529,10 @@ Signature canvas input
|
|
|
1444
1529
|
|
|
1445
1530
|
Signature canvas input. `onChange` stores base64 PNG string in state.
|
|
1446
1531
|
|
|
1447
|
-
Catalog key: `Signature`
|
|
1448
|
-
Builder: `Signature`
|
|
1449
|
-
Props type: `SignatureProps`
|
|
1450
|
-
Accepts children: no
|
|
1532
|
+
Catalog key: `Signature`
|
|
1533
|
+
Builder: `Signature`
|
|
1534
|
+
Props type: `SignatureProps`
|
|
1535
|
+
Accepts children: no
|
|
1451
1536
|
Events: `change`
|
|
1452
1537
|
|
|
1453
1538
|
### Props
|
|
@@ -1456,7 +1541,7 @@ Events: `change`
|
|
|
1456
1541
|
|---|---:|---|---|
|
|
1457
1542
|
| `defaultValue` | no | string | Initial value for uncontrolled mode |
|
|
1458
1543
|
| `disabled` | no | boolean | Disables the input. Default: false |
|
|
1459
|
-
| `error` | no |
|
|
1544
|
+
| `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
|
|
1460
1545
|
| `readOnly` | no | boolean | Shows value without allowing edits. Default: false |
|
|
1461
1546
|
| `required` | no | boolean | Marks the field as required. Default: false |
|
|
1462
1547
|
| `testID` | no | string | Sets testid on InputSignature (used for testing purposes) |
|
|
@@ -1470,10 +1555,10 @@ Masked Social Insurance Number input
|
|
|
1470
1555
|
|
|
1471
1556
|
Masked Social Insurance Number input. `onChange` stores the SIN string in state.
|
|
1472
1557
|
|
|
1473
|
-
Catalog key: `Sin`
|
|
1474
|
-
Builder: `Sin`
|
|
1475
|
-
Props type: `SinProps`
|
|
1476
|
-
Accepts children: no
|
|
1558
|
+
Catalog key: `Sin`
|
|
1559
|
+
Builder: `Sin`
|
|
1560
|
+
Props type: `SinProps`
|
|
1561
|
+
Accepts children: no
|
|
1477
1562
|
Events: `change`, `blur`
|
|
1478
1563
|
|
|
1479
1564
|
### Props
|
|
@@ -1484,7 +1569,7 @@ Events: `change`, `blur`
|
|
|
1484
1569
|
| `checks` | no | [SinCheck](./types.md#sincheck)[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set |
|
|
1485
1570
|
| `defaultValue` | no | string | Initial value for uncontrolled mode |
|
|
1486
1571
|
| `disabled` | no | boolean | Disables the input. Default: false |
|
|
1487
|
-
| `error` | no |
|
|
1572
|
+
| `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
|
|
1488
1573
|
| `helperText` | no | string | Help text shown below the input |
|
|
1489
1574
|
| `label` | no | string | Label shown above the input |
|
|
1490
1575
|
| `placeholder` | no | string | Placeholder text shown when the field is empty |
|
|
@@ -1503,10 +1588,10 @@ Draggable range slider for numeric input
|
|
|
1503
1588
|
|
|
1504
1589
|
`onChange` stores the numeric value to the bound state path.
|
|
1505
1590
|
|
|
1506
|
-
Catalog key: `Slider`
|
|
1507
|
-
Builder: `Slider`
|
|
1508
|
-
Props type: `SliderProps`
|
|
1509
|
-
Accepts children: no
|
|
1591
|
+
Catalog key: `Slider`
|
|
1592
|
+
Builder: `Slider`
|
|
1593
|
+
Props type: `SliderProps`
|
|
1594
|
+
Accepts children: no
|
|
1510
1595
|
Events: `change`
|
|
1511
1596
|
|
|
1512
1597
|
### Props
|
|
@@ -1532,10 +1617,10 @@ Dual-handle range slider for selecting a numeric range
|
|
|
1532
1617
|
|
|
1533
1618
|
Dual-handle range slider. onChange stores [number, number] in state.
|
|
1534
1619
|
|
|
1535
|
-
Catalog key: `SliderRange`
|
|
1536
|
-
Builder: `SliderRange`
|
|
1537
|
-
Props type: `SliderRangeProps`
|
|
1538
|
-
Accepts children: no
|
|
1620
|
+
Catalog key: `SliderRange`
|
|
1621
|
+
Builder: `SliderRange`
|
|
1622
|
+
Props type: `SliderRangeProps`
|
|
1623
|
+
Accepts children: no
|
|
1539
1624
|
Events: `change`
|
|
1540
1625
|
|
|
1541
1626
|
### Props
|
|
@@ -1559,10 +1644,10 @@ No additional properties.
|
|
|
1559
1644
|
|
|
1560
1645
|
Inline notification banner with optional action button and auto-dismiss
|
|
1561
1646
|
|
|
1562
|
-
Catalog key: `SnackBar`
|
|
1563
|
-
Builder: `SnackBar`
|
|
1564
|
-
Props type: `SnackBarProps`
|
|
1565
|
-
Accepts children: no
|
|
1647
|
+
Catalog key: `SnackBar`
|
|
1648
|
+
Builder: `SnackBar`
|
|
1649
|
+
Props type: `SnackBarProps`
|
|
1650
|
+
Accepts children: no
|
|
1566
1651
|
Events: `dismiss`, `action`
|
|
1567
1652
|
|
|
1568
1653
|
### Props
|
|
@@ -1583,10 +1668,10 @@ No additional properties.
|
|
|
1583
1668
|
|
|
1584
1669
|
Sub-component of ObjectUI. Empty vertical space between ObjectUI rows
|
|
1585
1670
|
|
|
1586
|
-
Catalog key: `Spacer`
|
|
1587
|
-
Builder: `Spacer`
|
|
1588
|
-
Props type: `SpacerProps`
|
|
1589
|
-
Accepts children: no
|
|
1671
|
+
Catalog key: `Spacer`
|
|
1672
|
+
Builder: `Spacer`
|
|
1673
|
+
Props type: `SpacerProps`
|
|
1674
|
+
Accepts children: no
|
|
1590
1675
|
Events: _none_
|
|
1591
1676
|
|
|
1592
1677
|
### Props
|
|
@@ -1601,10 +1686,10 @@ No additional properties.
|
|
|
1601
1686
|
|
|
1602
1687
|
Animated loading indicator
|
|
1603
1688
|
|
|
1604
|
-
Catalog key: `Spinner`
|
|
1605
|
-
Builder: `Spinner`
|
|
1606
|
-
Props type: `SpinnerProps`
|
|
1607
|
-
Accepts children: no
|
|
1689
|
+
Catalog key: `Spinner`
|
|
1690
|
+
Builder: `Spinner`
|
|
1691
|
+
Props type: `SpinnerProps`
|
|
1692
|
+
Accepts children: no
|
|
1608
1693
|
Events: _none_
|
|
1609
1694
|
|
|
1610
1695
|
### Props
|
|
@@ -1626,10 +1711,10 @@ Masked Social Security Number input
|
|
|
1626
1711
|
|
|
1627
1712
|
Masked Social Security Number input. `onChange` stores the SSN string in state.
|
|
1628
1713
|
|
|
1629
|
-
Catalog key: `Ssn`
|
|
1630
|
-
Builder: `Ssn`
|
|
1631
|
-
Props type: `SsnProps`
|
|
1632
|
-
Accepts children: no
|
|
1714
|
+
Catalog key: `Ssn`
|
|
1715
|
+
Builder: `Ssn`
|
|
1716
|
+
Props type: `SsnProps`
|
|
1717
|
+
Accepts children: no
|
|
1633
1718
|
Events: `change`, `blur`
|
|
1634
1719
|
|
|
1635
1720
|
### Props
|
|
@@ -1640,7 +1725,7 @@ Events: `change`, `blur`
|
|
|
1640
1725
|
| `checks` | no | [SsnCheck](./types.md#ssncheck)[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set |
|
|
1641
1726
|
| `defaultValue` | no | string | Initial value for uncontrolled mode |
|
|
1642
1727
|
| `disabled` | no | boolean | Disables the input. Default: false |
|
|
1643
|
-
| `error` | no |
|
|
1728
|
+
| `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
|
|
1644
1729
|
| `helperText` | no | string | Help text shown below the input |
|
|
1645
1730
|
| `label` | no | string | Label shown above the input |
|
|
1646
1731
|
| `placeholder` | no | string | Placeholder text shown when the field is empty |
|
|
@@ -1657,10 +1742,10 @@ No additional properties.
|
|
|
1657
1742
|
|
|
1658
1743
|
Pill-shaped status indicator with colored appearance
|
|
1659
1744
|
|
|
1660
|
-
Catalog key: `Status`
|
|
1661
|
-
Builder: `Status`
|
|
1662
|
-
Props type: `StatusProps`
|
|
1663
|
-
Accepts children: no
|
|
1745
|
+
Catalog key: `Status`
|
|
1746
|
+
Builder: `Status`
|
|
1747
|
+
Props type: `StatusProps`
|
|
1748
|
+
Accepts children: no
|
|
1664
1749
|
Events: _none_
|
|
1665
1750
|
|
|
1666
1751
|
### Props
|
|
@@ -1678,10 +1763,10 @@ No additional properties.
|
|
|
1678
1763
|
|
|
1679
1764
|
Sets the native status bar style. Renders no visible UI — place once near the top of a screen.
|
|
1680
1765
|
|
|
1681
|
-
Catalog key: `StatusBar`
|
|
1682
|
-
Builder: `StatusBar`
|
|
1683
|
-
Props type: `StatusBarProps`
|
|
1684
|
-
Accepts children: no
|
|
1766
|
+
Catalog key: `StatusBar`
|
|
1767
|
+
Builder: `StatusBar`
|
|
1768
|
+
Props type: `StatusBarProps`
|
|
1769
|
+
Accepts children: no
|
|
1685
1770
|
Events: _none_
|
|
1686
1771
|
|
|
1687
1772
|
### Props
|
|
@@ -1699,10 +1784,10 @@ Toggle switch for boolean on/off input
|
|
|
1699
1784
|
|
|
1700
1785
|
`onChange` stores the boolean value to the bound state path. `change` event fires after each toggle.
|
|
1701
1786
|
|
|
1702
|
-
Catalog key: `Switch`
|
|
1703
|
-
Builder: `Switch`
|
|
1704
|
-
Props type: `SwitchProps`
|
|
1705
|
-
Accepts children: no
|
|
1787
|
+
Catalog key: `Switch`
|
|
1788
|
+
Builder: `Switch`
|
|
1789
|
+
Props type: `SwitchProps`
|
|
1790
|
+
Accepts children: no
|
|
1706
1791
|
Events: `change`
|
|
1707
1792
|
|
|
1708
1793
|
### Props
|
|
@@ -1712,8 +1797,8 @@ Events: `change`
|
|
|
1712
1797
|
| `defaultValue` | no | boolean | Initial value for uncontrolled mode. Default: false |
|
|
1713
1798
|
| `disabled` | no | boolean | Disables the switch. Default: false |
|
|
1714
1799
|
| `haptic` | no | boolean | Enables haptic feedback on toggle. Default: true |
|
|
1715
|
-
| `offIcon` | no | [
|
|
1716
|
-
| `onIcon` | no | [
|
|
1800
|
+
| `offIcon` | no | [AvatarSource](./definitions.md#avatarsource) | Pebble icon name for the off-state thumb icon |
|
|
1801
|
+
| `onIcon` | no | [AvatarSource](./definitions.md#avatarsource) | Pebble icon name for the on-state thumb icon |
|
|
1717
1802
|
| `testID` | no | string | Sets testid on Switch (used for testing purposes) |
|
|
1718
1803
|
| `value` | no | boolean | Controlled on/off state — bind to state with $bindState |
|
|
1719
1804
|
|
|
@@ -1725,10 +1810,10 @@ Tab navigation switcher for toggling between views
|
|
|
1725
1810
|
|
|
1726
1811
|
`onChange` stores the selected tab `id` string to the bound state path. Tab content is rendered externally — use conditional rendering in sibling elements based on the active state. `items` must have unique `id` values.
|
|
1727
1812
|
|
|
1728
|
-
Catalog key: `Tabs`
|
|
1729
|
-
Builder: `Tabs`
|
|
1730
|
-
Props type: `TabsProps`
|
|
1731
|
-
Accepts children: no
|
|
1813
|
+
Catalog key: `Tabs`
|
|
1814
|
+
Builder: `Tabs`
|
|
1815
|
+
Props type: `TabsProps`
|
|
1816
|
+
Accepts children: no
|
|
1732
1817
|
Events: `change`
|
|
1733
1818
|
|
|
1734
1819
|
### Props
|
|
@@ -1748,14 +1833,14 @@ No additional properties.
|
|
|
1748
1833
|
|
|
1749
1834
|
## Text
|
|
1750
1835
|
|
|
1751
|
-
|
|
1836
|
+
Typography primitive using Pebble typestyle tokens
|
|
1752
1837
|
|
|
1753
|
-
|
|
1838
|
+
Renders text with Pebble typestyle tokens. Pass typestyle and color as top-level props, or supply typography via the style prop as a plain object or array of typestyle token keys and/or style overrides — later style entries win and override matching top-level typestyle or color values. Style values may be token keys (e.g. colorOnSurface, space200) or literals. ellipsizeMode only takes effect when numberOfLines is set. In style objects, textShadowOffsetWidth and textShadowOffsetHeight combine into textShadowOffset: {width, height}.
|
|
1754
1839
|
|
|
1755
|
-
Catalog key: `Text`
|
|
1756
|
-
Builder: `Text`
|
|
1757
|
-
Props type: `TextProps`
|
|
1758
|
-
Accepts children: no
|
|
1840
|
+
Catalog key: `Text`
|
|
1841
|
+
Builder: `Text`
|
|
1842
|
+
Props type: `TextProps`
|
|
1843
|
+
Accepts children: no
|
|
1759
1844
|
Events: _none_
|
|
1760
1845
|
|
|
1761
1846
|
### Props
|
|
@@ -1764,15 +1849,15 @@ Events: _none_
|
|
|
1764
1849
|
|---|---:|---|---|
|
|
1765
1850
|
| `accessibilityLabel` | no | string | Accessibility label read by screen readers |
|
|
1766
1851
|
| `accessible` | no | boolean | Whether the element is an accessibility element. Default: true |
|
|
1767
|
-
| `
|
|
1852
|
+
| `color` | no | [HStackBackgroundColor](./definitions.md#hstackbackgroundcolor) | Pebble color token key for text color. Overridden by color in the style prop. |
|
|
1768
1853
|
| `disabled` | no | boolean | Whether the text is disabled (accessibility and styling). Default: false |
|
|
1769
1854
|
| `ellipsizeMode` | no | [TextEllipsizeMode](./definitions.md#textellipsizemode) | How text is truncated when it exceeds numberOfLines. Requires numberOfLines to be set. Default: tail |
|
|
1770
|
-
| `maxFontSizeMultiplier` | no | number | Upper limit on font scaling. 0 means no limit. Requires allowFontScaling to not be false |
|
|
1771
1855
|
| `numberOfLines` | no | number | Maximum number of lines before truncating with ellipsis. Omit for unlimited lines |
|
|
1772
1856
|
| `selectable` | no | boolean | Whether the user can select and copy the text. Default: false |
|
|
1773
|
-
| `style` | no |
|
|
1857
|
+
| `style` | no | [TextStyle](./types.md#textstyle) \| [TextStyle](./definitions.md#textstyle) \| [TextStyle](./types.md#textstyle)[] | Text style — plain object or array of typestyle token keys and/or style override objects. Plain object: { color: 'colorOnSurface', marginTop: 'space200' }. Array: ['typestyleV2BodyLarge', { color: 'colorOnSurface' }]. |
|
|
1774
1858
|
| `testID` | no | string | Sets testid on Text (used for testing purposes) |
|
|
1775
1859
|
| `text` | yes | string | Text content to display |
|
|
1860
|
+
| `typestyle` | no | [TextStyle](./definitions.md#textstyle) | Pebble typestyle token key. Overridden by matching typography in the style prop. |
|
|
1776
1861
|
|
|
1777
1862
|
No additional properties.
|
|
1778
1863
|
|
|
@@ -1782,10 +1867,10 @@ Multi-line text input field
|
|
|
1782
1867
|
|
|
1783
1868
|
`onChange` stores the string value to the bound state path. Use `checks` + `validateOn` for inline validation.
|
|
1784
1869
|
|
|
1785
|
-
Catalog key: `Textarea`
|
|
1786
|
-
Builder: `Textarea`
|
|
1787
|
-
Props type: `TextareaProps`
|
|
1788
|
-
Accepts children: no
|
|
1870
|
+
Catalog key: `Textarea`
|
|
1871
|
+
Builder: `Textarea`
|
|
1872
|
+
Props type: `TextareaProps`
|
|
1873
|
+
Accepts children: no
|
|
1789
1874
|
Events: `change`, `blur`
|
|
1790
1875
|
|
|
1791
1876
|
### Props
|
|
@@ -1796,7 +1881,7 @@ Events: `change`, `blur`
|
|
|
1796
1881
|
| `checks` | no | [TextareaCheck](./types.md#textareacheck)[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set |
|
|
1797
1882
|
| `defaultValue` | no | string | Initial value for uncontrolled mode |
|
|
1798
1883
|
| `disabled` | no | boolean | Disables the textarea. Default: false |
|
|
1799
|
-
| `error` | no |
|
|
1884
|
+
| `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
|
|
1800
1885
|
| `height` | no | number | Fixed height of the textarea in points |
|
|
1801
1886
|
| `helperText` | no | string | Help text shown below the textarea |
|
|
1802
1887
|
| `label` | no | string | Label shown above the textarea |
|
|
@@ -1815,10 +1900,10 @@ Time picker input field
|
|
|
1815
1900
|
|
|
1816
1901
|
Time picker input. onChange stores ISO time string in state.
|
|
1817
1902
|
|
|
1818
|
-
Catalog key: `Time`
|
|
1819
|
-
Builder: `Time`
|
|
1820
|
-
Props type: `TimeProps`
|
|
1821
|
-
Accepts children: no
|
|
1903
|
+
Catalog key: `Time`
|
|
1904
|
+
Builder: `Time`
|
|
1905
|
+
Props type: `TimeProps`
|
|
1906
|
+
Accepts children: no
|
|
1822
1907
|
Events: `change`, `blur`
|
|
1823
1908
|
|
|
1824
1909
|
### Props
|
|
@@ -1827,7 +1912,7 @@ Events: `change`, `blur`
|
|
|
1827
1912
|
|---|---:|---|---|
|
|
1828
1913
|
| `defaultValue` | no | string | Default ISO time string for uncontrolled mode |
|
|
1829
1914
|
| `disabled` | no | boolean | Disables the time input. Default: false |
|
|
1830
|
-
| `error` | no |
|
|
1915
|
+
| `error` | no | string \| boolean | Error state or error message |
|
|
1831
1916
|
| `format` | no | [TimeFormat](./definitions.md#timeformat) | Time format. Default: isoString |
|
|
1832
1917
|
| `helperText` | no | string | Help text shown below the time input |
|
|
1833
1918
|
| `label` | yes | string | Label shown above the time input |
|
|
@@ -1844,10 +1929,10 @@ Time range picker with start and end time inputs
|
|
|
1844
1929
|
|
|
1845
1930
|
Time range picker. label must be [startLabel, endLabel]. onChange stores [startISO, endISO] in state.
|
|
1846
1931
|
|
|
1847
|
-
Catalog key: `TimeRange`
|
|
1848
|
-
Builder: `TimeRange`
|
|
1849
|
-
Props type: `TimeRangeProps`
|
|
1850
|
-
Accepts children: no
|
|
1932
|
+
Catalog key: `TimeRange`
|
|
1933
|
+
Builder: `TimeRange`
|
|
1934
|
+
Props type: `TimeRangeProps`
|
|
1935
|
+
Accepts children: no
|
|
1851
1936
|
Events: `change`
|
|
1852
1937
|
|
|
1853
1938
|
### Props
|
|
@@ -1872,10 +1957,10 @@ No additional properties.
|
|
|
1872
1957
|
|
|
1873
1958
|
Informational tip block with a title, description, and optional children content
|
|
1874
1959
|
|
|
1875
|
-
Catalog key: `Tip`
|
|
1876
|
-
Builder: `Tip`
|
|
1877
|
-
Props type: `TipProps`
|
|
1878
|
-
Accepts children: yes
|
|
1960
|
+
Catalog key: `Tip`
|
|
1961
|
+
Builder: `Tip`
|
|
1962
|
+
Props type: `TipProps`
|
|
1963
|
+
Accepts children: yes
|
|
1879
1964
|
Events: _none_
|
|
1880
1965
|
|
|
1881
1966
|
### Props
|
|
@@ -1894,10 +1979,10 @@ Vertical flex column container
|
|
|
1894
1979
|
|
|
1895
1980
|
Lays children out vertically. By default, VStack wraps its content (shrinks to fit children). Use `width: "sizeFull"` to stretch and fill the available width. Use `gap` for spacing between items.
|
|
1896
1981
|
|
|
1897
|
-
Catalog key: `VStack`
|
|
1898
|
-
Builder: `VStack`
|
|
1899
|
-
Props type: `VStackProps`
|
|
1900
|
-
Accepts children: yes
|
|
1982
|
+
Catalog key: `VStack`
|
|
1983
|
+
Builder: `VStack`
|
|
1984
|
+
Props type: `VStackProps`
|
|
1985
|
+
Accepts children: yes
|
|
1901
1986
|
Events: _none_
|
|
1902
1987
|
|
|
1903
1988
|
### Props
|
|
@@ -1913,7 +1998,7 @@ Events: _none_
|
|
|
1913
1998
|
| `flex` | no | number | Flex grow/shrink factor |
|
|
1914
1999
|
| `gap` | no | [HStackBottom](./definitions.md#hstackbottom) | Gap between children — space token |
|
|
1915
2000
|
| `grow` | no | number | Flex grow factor |
|
|
1916
|
-
| `height` | no |
|
|
2001
|
+
| `height` | no | [HStackHeight](./definitions.md#hstackheight) \| string | Height — size token or percentage (e.g. "50%") |
|
|
1917
2002
|
| `justify` | no | [HStackJustify](./definitions.md#hstackjustify) | Align children along the main axis. Default: flex-start |
|
|
1918
2003
|
| `left` | no | [HStackBottom](./definitions.md#hstackbottom) | Left offset — space token |
|
|
1919
2004
|
| `margin` | no | [HStackBottom](./definitions.md#hstackbottom) | Margin on all sides — space token (e.g. space100, space200, space400) |
|
|
@@ -1923,10 +2008,10 @@ Events: _none_
|
|
|
1923
2008
|
| `marginRight` | no | [HStackBottom](./definitions.md#hstackbottom) | Right margin — space token |
|
|
1924
2009
|
| `marginTop` | no | [HStackBottom](./definitions.md#hstackbottom) | Top margin — space token |
|
|
1925
2010
|
| `marginVertical` | no | [HStackBottom](./definitions.md#hstackbottom) | Top and bottom margin — space token |
|
|
1926
|
-
| `maxHeight` | no |
|
|
1927
|
-
| `maxWidth` | no |
|
|
1928
|
-
| `minHeight` | no |
|
|
1929
|
-
| `minWidth` | no |
|
|
2011
|
+
| `maxHeight` | no | [HStackHeight](./definitions.md#hstackheight) \| string | Maximum height — size token or percentage |
|
|
2012
|
+
| `maxWidth` | no | [HStackHeight](./definitions.md#hstackheight) \| string | Maximum width — size token or percentage |
|
|
2013
|
+
| `minHeight` | no | [HStackHeight](./definitions.md#hstackheight) \| string | Minimum height — size token or percentage |
|
|
2014
|
+
| `minWidth` | no | [HStackHeight](./definitions.md#hstackheight) \| string | Minimum width — size token or percentage |
|
|
1930
2015
|
| `overflow` | no | [HStackOverflow](./definitions.md#hstackoverflow) | How content overflow is handled. Default: visible |
|
|
1931
2016
|
| `padding` | no | [HStackBottom](./definitions.md#hstackbottom) | Padding on all sides — space token (e.g. space100, space200, space400) |
|
|
1932
2017
|
| `paddingBottom` | no | [HStackBottom](./definitions.md#hstackbottom) | Bottom padding — space token |
|
|
@@ -1943,7 +2028,7 @@ Events: _none_
|
|
|
1943
2028
|
| `shrink` | no | number | Flex shrink factor |
|
|
1944
2029
|
| `testID` | no | string | Sets testid on VStack (used for testing purposes) |
|
|
1945
2030
|
| `top` | no | [HStackBottom](./definitions.md#hstackbottom) | Top offset — space token |
|
|
1946
|
-
| `width` | no |
|
|
2031
|
+
| `width` | no | [HStackHeight](./definitions.md#hstackheight) \| string | Width — size token (e.g. size400, size800) or percentage (e.g. "100%") |
|
|
1947
2032
|
| `zIndex` | no | number | Stack order |
|
|
1948
2033
|
|
|
1949
2034
|
No additional properties.
|
|
@@ -1954,10 +2039,10 @@ Card-like widget with a title, body content, and optional action buttons
|
|
|
1954
2039
|
|
|
1955
2040
|
Pass children for body content. Use isLoading to show shimmer placeholders.
|
|
1956
2041
|
|
|
1957
|
-
Catalog key: `Widget`
|
|
1958
|
-
Builder: `Widget`
|
|
1959
|
-
Props type: `WidgetProps`
|
|
1960
|
-
Accepts children: yes
|
|
2042
|
+
Catalog key: `Widget`
|
|
2043
|
+
Builder: `Widget`
|
|
2044
|
+
Props type: `WidgetProps`
|
|
2045
|
+
Accepts children: yes
|
|
1961
2046
|
Events: `titlePress`, `primaryAction`, `secondaryAction`
|
|
1962
2047
|
|
|
1963
2048
|
### Props
|
|
@@ -1984,10 +2069,10 @@ Email text input that validates work email format
|
|
|
1984
2069
|
|
|
1985
2070
|
Email text input that validates work email format. `onChange` stores a string in state.
|
|
1986
2071
|
|
|
1987
|
-
Catalog key: `WorkEmail`
|
|
1988
|
-
Builder: `WorkEmail`
|
|
1989
|
-
Props type: `WorkEmailProps`
|
|
1990
|
-
Accepts children: no
|
|
2072
|
+
Catalog key: `WorkEmail`
|
|
2073
|
+
Builder: `WorkEmail`
|
|
2074
|
+
Props type: `WorkEmailProps`
|
|
2075
|
+
Accepts children: no
|
|
1991
2076
|
Events: `change`, `blur`
|
|
1992
2077
|
|
|
1993
2078
|
### Props
|
|
@@ -1999,7 +2084,7 @@ Events: `change`, `blur`
|
|
|
1999
2084
|
| `clearable` | no | boolean | Shows a clear button when the field has a value. Default: false |
|
|
2000
2085
|
| `defaultValue` | no | string | Initial value for uncontrolled mode |
|
|
2001
2086
|
| `disabled` | no | boolean | Disables the input. Default: false |
|
|
2002
|
-
| `error` | no |
|
|
2087
|
+
| `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
|
|
2003
2088
|
| `helperText` | no | string | Help text shown below the input |
|
|
2004
2089
|
| `label` | no | string | Label shown above the input |
|
|
2005
2090
|
| `placeholder` | no | string | Placeholder text shown when the field is empty |
|