@shopify/ui-extensions 2025.10.0-rc.36 → 2025.10.0-rc.38
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/build/ts/shared.d.ts +24 -4
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction.d.ts +1 -1
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +1 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Avatar.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Badge.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Banner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Box.d.ts +8 -1
- package/build/ts/surfaces/admin/components/Button.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +14 -2
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Chip.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Choice.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Clickable.d.ts +8 -1
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ColorField.d.ts +3 -1
- package/build/ts/surfaces/admin/components/ColorPicker.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts +2 -2
- package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/DateField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Divider.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DropZone.d.ts +1 -1
- package/build/ts/surfaces/admin/components/EmailField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
- package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Grid.d.ts +20 -1
- package/build/ts/surfaces/admin/components/GridItem.d.ts +8 -1
- package/build/ts/surfaces/admin/components/Heading.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Icon.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Image.d.ts +8 -1
- package/build/ts/surfaces/admin/components/Link.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ListItem.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Menu.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Modal/Modal.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Modal/Modal.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Modal.d.ts +1 -1
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +1 -3
- package/build/ts/surfaces/admin/components/NumberField.d.ts +1 -3
- package/build/ts/surfaces/admin/components/Option.d.ts +1 -1
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +1 -1
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Page.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +1 -1
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +1 -1
- package/build/ts/surfaces/admin/components/SearchField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Section.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Select.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Spinner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Stack.d.ts +14 -1
- package/build/ts/surfaces/admin/components/Switch.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Table.d.ts +3 -2
- package/build/ts/surfaces/admin/components/TableBody.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableCell.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +3 -2
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableRow.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Text.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TextArea.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TextField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Thumbnail.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Tooltip.d.ts +1 -1
- package/build/ts/surfaces/admin/components/URLField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/shared.d.ts +245 -222
- package/build/ts/surfaces/admin/docs-types.d.ts +4 -0
- package/build/ts/surfaces/admin/docs-types.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/cart-line/cart-line-item.d.ts +2 -2
- package/build/ts/surfaces/customer-account/api/cart-line/cart-line-item.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +29 -29
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/shared.d.ts +6 -6
- package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts +6 -6
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api.d.ts +1 -1
- package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/preact/subscription.d.ts +2 -2
- package/build/ts/surfaces/customer-account/preact/subscription.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Badge.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/Box.d.ts +82 -8
- package/build/ts/surfaces/point-of-sale/components/Icon.d.ts +111 -30
- package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/PosBlock.d.ts +64 -0
- package/build/ts/surfaces/point-of-sale/components/SearchField.d.ts +1 -4
- package/build/ts/surfaces/point-of-sale/components/Stack.d.ts +82 -8
- package/build/ts/surfaces/point-of-sale/components/Tile.d.ts +1 -38
- package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.doc.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/TimeField.d.ts +65 -0
- package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +321 -150
- package/build/ts/surfaces/point-of-sale/targets/pos.cart.line-item-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.block.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.home.modal.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.order-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.order-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.product-details.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.product-details.block.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.block.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.return.post.action.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.return.post.block.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts +2 -17
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/docs/shared/components/Modal.ts +1 -1
- package/src/shared.ts +25 -4
- package/src/surfaces/admin/components/AdminAction.d.ts +1 -1
- package/src/surfaces/admin/components/AdminBlock.d.ts +1 -1
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
- package/src/surfaces/admin/components/Avatar.d.ts +1 -1
- package/src/surfaces/admin/components/Badge.d.ts +1 -1
- package/src/surfaces/admin/components/Banner.d.ts +1 -1
- package/src/surfaces/admin/components/Box.d.ts +8 -1
- package/src/surfaces/admin/components/Button.d.ts +1 -1
- package/src/surfaces/admin/components/ButtonGroup.d.ts +14 -2
- package/src/surfaces/admin/components/Checkbox.d.ts +1 -1
- package/src/surfaces/admin/components/Chip.d.ts +1 -1
- package/src/surfaces/admin/components/Choice.d.ts +1 -1
- package/src/surfaces/admin/components/ChoiceList.d.ts +1 -1
- package/src/surfaces/admin/components/Clickable.d.ts +8 -1
- package/src/surfaces/admin/components/ClickableChip.d.ts +1 -1
- package/src/surfaces/admin/components/ColorField.d.ts +3 -1
- package/src/surfaces/admin/components/ColorPicker.d.ts +1 -1
- package/src/surfaces/admin/components/DateField.d.ts +1 -1
- package/src/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/src/surfaces/admin/components/Divider.d.ts +1 -1
- package/src/surfaces/admin/components/DropZone.d.ts +1 -1
- package/src/surfaces/admin/components/EmailField.d.ts +1 -1
- package/src/surfaces/admin/components/Form.d.ts +1 -1
- package/src/surfaces/admin/components/FunctionSettings.d.ts +1 -1
- package/src/surfaces/admin/components/Grid.d.ts +20 -1
- package/src/surfaces/admin/components/GridItem.d.ts +8 -1
- package/src/surfaces/admin/components/Heading.d.ts +1 -1
- package/src/surfaces/admin/components/Icon.d.ts +1 -1
- package/src/surfaces/admin/components/Image.d.ts +8 -1
- package/src/surfaces/admin/components/Link.d.ts +1 -1
- package/src/surfaces/admin/components/ListItem.d.ts +1 -1
- package/src/surfaces/admin/components/Menu.d.ts +1 -1
- package/src/surfaces/admin/components/Modal/examples/default.html +23 -0
- package/src/surfaces/admin/components/Modal.d.ts +1 -1
- package/src/surfaces/admin/components/MoneyField.d.ts +1 -3
- package/src/surfaces/admin/components/NumberField.d.ts +1 -3
- package/src/surfaces/admin/components/Option.d.ts +1 -1
- package/src/surfaces/admin/components/OptionGroup.d.ts +1 -1
- package/src/surfaces/admin/components/OrderedList.d.ts +1 -1
- package/src/surfaces/admin/components/Page.d.ts +1 -1
- package/src/surfaces/admin/components/Paragraph.d.ts +1 -1
- package/src/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/src/surfaces/admin/components/QueryContainer.d.ts +1 -1
- package/src/surfaces/admin/components/SearchField.d.ts +1 -1
- package/src/surfaces/admin/components/Section.d.ts +1 -1
- package/src/surfaces/admin/components/Select.d.ts +1 -1
- package/src/surfaces/admin/components/Spinner.d.ts +1 -1
- package/src/surfaces/admin/components/Stack.d.ts +14 -1
- package/src/surfaces/admin/components/Switch.d.ts +1 -1
- package/src/surfaces/admin/components/Table.d.ts +3 -2
- package/src/surfaces/admin/components/TableBody.d.ts +1 -1
- package/src/surfaces/admin/components/TableCell.d.ts +1 -1
- package/src/surfaces/admin/components/TableHeader.d.ts +3 -2
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
- package/src/surfaces/admin/components/TableRow.d.ts +1 -1
- package/src/surfaces/admin/components/Text.d.ts +1 -1
- package/src/surfaces/admin/components/TextArea.d.ts +1 -1
- package/src/surfaces/admin/components/TextField.d.ts +1 -1
- package/src/surfaces/admin/components/Thumbnail.d.ts +1 -1
- package/src/surfaces/admin/components/Tooltip.d.ts +1 -1
- package/src/surfaces/admin/components/URLField.d.ts +1 -1
- package/src/surfaces/admin/components/UnorderedList.d.ts +1 -1
- package/src/surfaces/admin/components/patterns/examples/details.html +5 -11
- package/src/surfaces/admin/components/patterns/examples/details.jsx +4 -13
- package/src/surfaces/admin/components/patterns/examples/homepage.html +3 -12
- package/src/surfaces/admin/components/patterns/examples/homepage.jsx +3 -12
- package/src/surfaces/admin/components/patterns/examples/index.html +4 -10
- package/src/surfaces/admin/components/patterns/examples/index.jsx +4 -11
- package/src/surfaces/admin/components/patterns/examples/indexTable.html +4 -9
- package/src/surfaces/admin/components/patterns/examples/mediaCard.html +1 -1
- package/src/surfaces/admin/components/patterns/examples/settings.html +1 -2
- package/src/surfaces/admin/components/patterns/examples/settings.jsx +2 -6
- package/src/surfaces/admin/components/shared.d.ts +245 -222
- package/src/surfaces/admin/components.d.ts +293 -228
- package/src/surfaces/admin/docs-types.ts +8 -1
- package/src/surfaces/customer-account/api/cart-line/cart-line-item.ts +2 -2
- package/src/surfaces/customer-account/api/order-status/order-status.ts +29 -29
- package/src/surfaces/customer-account/api/shared.ts +6 -6
- package/src/surfaces/customer-account/api/standard-api/standard-api.ts +6 -6
- package/src/surfaces/customer-account/api.ts +1 -1
- package/src/surfaces/customer-account/preact/subscription.ts +3 -3
- package/src/surfaces/point-of-sale/api.ts +0 -1
- package/src/surfaces/point-of-sale/components/Badge.d.ts +1 -1
- package/src/surfaces/point-of-sale/components/Box.d.ts +82 -8
- package/src/surfaces/point-of-sale/components/Icon.d.ts +111 -30
- package/src/surfaces/point-of-sale/components/PosBlock/examples/default.html +11 -0
- package/src/surfaces/point-of-sale/components/PosBlock.d.ts +64 -0
- package/src/surfaces/point-of-sale/components/SearchField.d.ts +1 -4
- package/src/surfaces/point-of-sale/components/Stack.d.ts +82 -8
- package/src/surfaces/point-of-sale/components/Tile.d.ts +1 -38
- package/src/surfaces/point-of-sale/components/TimeField/examples/default.html +12 -0
- package/src/surfaces/point-of-sale/components/TimeField.d.ts +65 -0
- package/src/surfaces/point-of-sale/components/components-shared.d.ts +321 -150
- package/src/surfaces/point-of-sale/components.d.ts +1041 -530
- package/src/surfaces/point-of-sale/types/cart.ts +2 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.19.0 **/
|
|
2
2
|
|
|
3
3
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -109,6 +109,69 @@ export interface BaseOverlayMethods {
|
|
|
109
109
|
*/
|
|
110
110
|
toggleOverlay: () => void;
|
|
111
111
|
}
|
|
112
|
+
export interface FocusEventProps {
|
|
113
|
+
/**
|
|
114
|
+
* Callback when the element loses focus.
|
|
115
|
+
*
|
|
116
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
117
|
+
*/
|
|
118
|
+
onBlur?: (event: FocusEvent) => void;
|
|
119
|
+
/**
|
|
120
|
+
* Callback when the element receives focus.
|
|
121
|
+
*
|
|
122
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
123
|
+
*/
|
|
124
|
+
onFocus?: (event: FocusEvent) => void;
|
|
125
|
+
}
|
|
126
|
+
export interface ToggleEventProps {
|
|
127
|
+
/**
|
|
128
|
+
* Callback fired when the element state changes **after** any animations have finished.
|
|
129
|
+
*
|
|
130
|
+
* - If the element transitioned from hidden to showing, the `oldState` property will be set to `closed` and the
|
|
131
|
+
* `newState` property will be set to `open`.
|
|
132
|
+
* - If the element transitioned from showing to hidden, the `oldState` property will be set to `open` and the
|
|
133
|
+
* `newState` will be `closed`.
|
|
134
|
+
*
|
|
135
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState
|
|
136
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState
|
|
137
|
+
*/
|
|
138
|
+
onAfterToggle?: (event: ToggleEvent$1) => void;
|
|
139
|
+
/**
|
|
140
|
+
* Callback straight after the element state changes.
|
|
141
|
+
*
|
|
142
|
+
* - If the element is transitioning from hidden to showing, the `oldState` property will be set to `closed` and the
|
|
143
|
+
* `newState` property will be set to `open`.
|
|
144
|
+
* - If the element is transitioning from showing to hidden, then `oldState` property will be set to `open` and the
|
|
145
|
+
* `newState` will be `closed`.
|
|
146
|
+
*
|
|
147
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/toggle_event
|
|
148
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState
|
|
149
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState
|
|
150
|
+
*/
|
|
151
|
+
onToggle?: (event: ToggleEvent$1) => void;
|
|
152
|
+
}
|
|
153
|
+
export type ToggleState = 'open' | 'closed';
|
|
154
|
+
interface ToggleEvent$1 extends Event {
|
|
155
|
+
readonly newState: ToggleState;
|
|
156
|
+
readonly oldState: ToggleState;
|
|
157
|
+
}
|
|
158
|
+
export interface ExtendableEvent extends Event {
|
|
159
|
+
/**
|
|
160
|
+
* Provide a promise that signals the length, and eventual success or failure of actions relating to the event.
|
|
161
|
+
*
|
|
162
|
+
* This may be called many times, which adds promises to the event.
|
|
163
|
+
*
|
|
164
|
+
* However, this may only be called synchronously during the dispatch of the event.
|
|
165
|
+
* As in, you cannot call it after a `setTimeout` or microtask.
|
|
166
|
+
*/
|
|
167
|
+
waitUntil?: (promise: Promise<void>) => void;
|
|
168
|
+
}
|
|
169
|
+
interface AggregateError$1<T extends Error> extends Error {
|
|
170
|
+
errors: T[];
|
|
171
|
+
}
|
|
172
|
+
export interface ArgregatedErrorEvent<T extends Error> extends ErrorEvent {
|
|
173
|
+
error: AggregateError$1<T>;
|
|
174
|
+
}
|
|
112
175
|
export type SizeKeyword =
|
|
113
176
|
| 'small-500'
|
|
114
177
|
| 'small-400'
|
|
@@ -186,6 +249,7 @@ export type ToneKeyword =
|
|
|
186
249
|
| 'caution'
|
|
187
250
|
| 'warning'
|
|
188
251
|
| 'critical'
|
|
252
|
+
| 'accent'
|
|
189
253
|
| 'custom';
|
|
190
254
|
declare const privateIconArray: readonly [
|
|
191
255
|
'adjust',
|
|
@@ -195,23 +259,23 @@ declare const privateIconArray: readonly [
|
|
|
195
259
|
'alert-circle',
|
|
196
260
|
'alert-diamond',
|
|
197
261
|
'alert-location',
|
|
198
|
-
'alert-octagon-filled',
|
|
199
262
|
'alert-octagon',
|
|
200
|
-
'alert-
|
|
263
|
+
'alert-octagon-filled',
|
|
201
264
|
'alert-triangle',
|
|
265
|
+
'alert-triangle-filled',
|
|
202
266
|
'app-extension',
|
|
203
267
|
'apps',
|
|
204
268
|
'archive',
|
|
269
|
+
'arrow-down',
|
|
205
270
|
'arrow-down-circle',
|
|
206
271
|
'arrow-down-right',
|
|
207
|
-
'arrow-down',
|
|
208
|
-
'arrow-left-circle',
|
|
209
272
|
'arrow-left',
|
|
210
|
-
'arrow-
|
|
273
|
+
'arrow-left-circle',
|
|
211
274
|
'arrow-right',
|
|
275
|
+
'arrow-right-circle',
|
|
276
|
+
'arrow-up',
|
|
212
277
|
'arrow-up-circle',
|
|
213
278
|
'arrow-up-right',
|
|
214
|
-
'arrow-up',
|
|
215
279
|
'arrows-in-horizontal',
|
|
216
280
|
'arrows-out-horizontal',
|
|
217
281
|
'attachment',
|
|
@@ -220,36 +284,39 @@ declare const privateIconArray: readonly [
|
|
|
220
284
|
'bag',
|
|
221
285
|
'bank',
|
|
222
286
|
'barcode',
|
|
287
|
+
'battery-low',
|
|
223
288
|
'bill',
|
|
224
289
|
'blank',
|
|
225
290
|
'blog',
|
|
226
|
-
'bolt-filled',
|
|
227
291
|
'bolt',
|
|
228
|
-
'
|
|
292
|
+
'bolt-filled',
|
|
229
293
|
'book',
|
|
294
|
+
'book-open',
|
|
230
295
|
'bug',
|
|
231
296
|
'bullet',
|
|
232
297
|
'business-entity',
|
|
233
|
-
'button-press',
|
|
234
298
|
'button',
|
|
299
|
+
'button-press',
|
|
235
300
|
'calculator',
|
|
301
|
+
'calendar',
|
|
236
302
|
'calendar-check',
|
|
237
303
|
'calendar-compare',
|
|
238
304
|
'calendar-list',
|
|
239
305
|
'calendar-time',
|
|
240
|
-
'calendar',
|
|
241
|
-
'camera-flip',
|
|
242
306
|
'camera',
|
|
307
|
+
'camera-flip',
|
|
243
308
|
'caret-down',
|
|
244
309
|
'caret-left',
|
|
245
310
|
'caret-right',
|
|
246
311
|
'caret-up',
|
|
312
|
+
'cart',
|
|
247
313
|
'cart-abandoned',
|
|
248
314
|
'cart-discount',
|
|
249
315
|
'cart-down',
|
|
316
|
+
'cart-filled',
|
|
250
317
|
'cart-sale',
|
|
318
|
+
'cart-send',
|
|
251
319
|
'cart-up',
|
|
252
|
-
'cart',
|
|
253
320
|
'cash-dollar',
|
|
254
321
|
'cash-euro',
|
|
255
322
|
'cash-pound',
|
|
@@ -261,8 +328,8 @@ declare const privateIconArray: readonly [
|
|
|
261
328
|
'chart-cohort',
|
|
262
329
|
'chart-donut',
|
|
263
330
|
'chart-funnel',
|
|
264
|
-
'chart-histogram-first-last',
|
|
265
331
|
'chart-histogram-first',
|
|
332
|
+
'chart-histogram-first-last',
|
|
266
333
|
'chart-histogram-flat',
|
|
267
334
|
'chart-histogram-full',
|
|
268
335
|
'chart-histogram-growth',
|
|
@@ -273,36 +340,36 @@ declare const privateIconArray: readonly [
|
|
|
273
340
|
'chart-popular',
|
|
274
341
|
'chart-stacked',
|
|
275
342
|
'chart-vertical',
|
|
343
|
+
'chat',
|
|
276
344
|
'chat-new',
|
|
277
345
|
'chat-referral',
|
|
278
|
-
'chat',
|
|
279
|
-
'check-circle-filled',
|
|
280
|
-
'check-circle',
|
|
281
346
|
'check',
|
|
347
|
+
'check-circle',
|
|
348
|
+
'check-circle-filled',
|
|
282
349
|
'checkbox',
|
|
283
|
-
'chevron-down-circle',
|
|
284
350
|
'chevron-down',
|
|
285
|
-
'chevron-
|
|
351
|
+
'chevron-down-circle',
|
|
286
352
|
'chevron-left',
|
|
287
|
-
'chevron-
|
|
353
|
+
'chevron-left-circle',
|
|
288
354
|
'chevron-right',
|
|
289
|
-
'chevron-
|
|
355
|
+
'chevron-right-circle',
|
|
290
356
|
'chevron-up',
|
|
291
|
-
'circle
|
|
357
|
+
'chevron-up-circle',
|
|
292
358
|
'circle',
|
|
359
|
+
'circle-dashed',
|
|
360
|
+
'clipboard',
|
|
293
361
|
'clipboard-check',
|
|
294
362
|
'clipboard-checklist',
|
|
295
|
-
'clipboard',
|
|
296
|
-
'clock-revert',
|
|
297
363
|
'clock',
|
|
298
|
-
'
|
|
364
|
+
'clock-revert',
|
|
299
365
|
'code',
|
|
366
|
+
'code-add',
|
|
367
|
+
'collection',
|
|
300
368
|
'collection-featured',
|
|
301
369
|
'collection-list',
|
|
302
370
|
'collection-reference',
|
|
303
|
-
'collection',
|
|
304
|
-
'color-none',
|
|
305
371
|
'color',
|
|
372
|
+
'color-none',
|
|
306
373
|
'compass',
|
|
307
374
|
'complete',
|
|
308
375
|
'compose',
|
|
@@ -313,77 +380,81 @@ declare const privateIconArray: readonly [
|
|
|
313
380
|
'corner-pill',
|
|
314
381
|
'corner-round',
|
|
315
382
|
'corner-square',
|
|
383
|
+
'credit-card',
|
|
316
384
|
'credit-card-cancel',
|
|
317
385
|
'credit-card-percent',
|
|
386
|
+
'credit-card-reader',
|
|
318
387
|
'credit-card-reader-chip',
|
|
319
388
|
'credit-card-reader-tap',
|
|
320
|
-
'credit-card-reader',
|
|
321
389
|
'credit-card-secure',
|
|
322
390
|
'credit-card-tap-chip',
|
|
323
|
-
'credit-card',
|
|
324
391
|
'crop',
|
|
325
392
|
'currency-convert',
|
|
393
|
+
'cursor',
|
|
326
394
|
'cursor-banner',
|
|
327
395
|
'cursor-option',
|
|
328
|
-
'cursor',
|
|
329
396
|
'data-presentation',
|
|
330
397
|
'data-table',
|
|
398
|
+
'database',
|
|
331
399
|
'database-add',
|
|
332
400
|
'database-connect',
|
|
333
|
-
'database',
|
|
334
401
|
'delete',
|
|
335
402
|
'delivered',
|
|
336
403
|
'delivery',
|
|
337
404
|
'desktop',
|
|
338
405
|
'disabled',
|
|
406
|
+
'disabled-filled',
|
|
407
|
+
'discount',
|
|
339
408
|
'discount-add',
|
|
409
|
+
'discount-automatic',
|
|
340
410
|
'discount-code',
|
|
341
|
-
'discount',
|
|
411
|
+
'discount-remove',
|
|
342
412
|
'dns-settings',
|
|
343
413
|
'dock-floating',
|
|
344
414
|
'dock-side',
|
|
415
|
+
'domain',
|
|
345
416
|
'domain-landing-page',
|
|
346
417
|
'domain-new',
|
|
347
418
|
'domain-redirect',
|
|
348
|
-
'domain',
|
|
349
419
|
'download',
|
|
350
420
|
'drag-drop',
|
|
351
421
|
'drag-handle',
|
|
422
|
+
'drawer',
|
|
352
423
|
'duplicate',
|
|
353
424
|
'edit',
|
|
425
|
+
'email',
|
|
354
426
|
'email-follow-up',
|
|
355
427
|
'email-newsletter',
|
|
356
|
-
'email',
|
|
357
428
|
'empty',
|
|
358
429
|
'enabled',
|
|
359
430
|
'enter',
|
|
360
|
-
'envelope-soft-pack',
|
|
361
431
|
'envelope',
|
|
432
|
+
'envelope-soft-pack',
|
|
362
433
|
'eraser',
|
|
363
434
|
'exchange',
|
|
364
435
|
'exit',
|
|
365
436
|
'export',
|
|
366
437
|
'external',
|
|
367
438
|
'eye-check-mark',
|
|
368
|
-
'eye-dropper-list',
|
|
369
439
|
'eye-dropper',
|
|
440
|
+
'eye-dropper-list',
|
|
370
441
|
'eye-first',
|
|
371
442
|
'eyeglasses',
|
|
372
443
|
'fav',
|
|
373
444
|
'favicon',
|
|
374
|
-
'file-list',
|
|
375
445
|
'file',
|
|
376
|
-
'
|
|
446
|
+
'file-list',
|
|
377
447
|
'filter',
|
|
448
|
+
'filter-active',
|
|
378
449
|
'flag',
|
|
379
450
|
'flip-horizontal',
|
|
380
451
|
'flip-vertical',
|
|
381
452
|
'flower',
|
|
453
|
+
'folder',
|
|
382
454
|
'folder-add',
|
|
383
455
|
'folder-down',
|
|
384
456
|
'folder-remove',
|
|
385
457
|
'folder-up',
|
|
386
|
-
'folder',
|
|
387
458
|
'food',
|
|
388
459
|
'foreground',
|
|
389
460
|
'forklift',
|
|
@@ -391,56 +462,62 @@ declare const privateIconArray: readonly [
|
|
|
391
462
|
'games',
|
|
392
463
|
'gauge',
|
|
393
464
|
'geolocation',
|
|
394
|
-
'gift-card',
|
|
395
465
|
'gift',
|
|
466
|
+
'gift-card',
|
|
396
467
|
'git-branch',
|
|
397
468
|
'git-commit',
|
|
398
469
|
'git-repository',
|
|
470
|
+
'globe',
|
|
399
471
|
'globe-asia',
|
|
400
472
|
'globe-europe',
|
|
401
473
|
'globe-lines',
|
|
402
474
|
'globe-list',
|
|
403
|
-
'
|
|
475
|
+
'graduation-hat',
|
|
404
476
|
'grid',
|
|
477
|
+
'hashtag',
|
|
405
478
|
'hashtag-decimal',
|
|
406
479
|
'hashtag-list',
|
|
407
|
-
'hashtag',
|
|
408
480
|
'heart',
|
|
409
|
-
'hide-filled',
|
|
410
481
|
'hide',
|
|
482
|
+
'hide-filled',
|
|
411
483
|
'home',
|
|
484
|
+
'home-filled',
|
|
412
485
|
'icons',
|
|
413
486
|
'identity-card',
|
|
487
|
+
'image',
|
|
414
488
|
'image-add',
|
|
415
489
|
'image-alt',
|
|
416
490
|
'image-explore',
|
|
417
491
|
'image-magic',
|
|
418
492
|
'image-none',
|
|
419
493
|
'image-with-text-overlay',
|
|
420
|
-
'image',
|
|
421
494
|
'images',
|
|
422
495
|
'import',
|
|
423
496
|
'in-progress',
|
|
424
497
|
'incentive',
|
|
425
498
|
'incoming',
|
|
426
499
|
'incomplete',
|
|
427
|
-
'info-filled',
|
|
428
500
|
'info',
|
|
501
|
+
'info-filled',
|
|
429
502
|
'inheritance',
|
|
430
|
-
'inventory-updated',
|
|
431
503
|
'inventory',
|
|
504
|
+
'inventory-edit',
|
|
505
|
+
'inventory-list',
|
|
506
|
+
'inventory-transfer',
|
|
507
|
+
'inventory-updated',
|
|
432
508
|
'iq',
|
|
433
509
|
'key',
|
|
510
|
+
'keyboard',
|
|
434
511
|
'keyboard-filled',
|
|
435
512
|
'keyboard-hide',
|
|
436
|
-
'
|
|
513
|
+
'keypad',
|
|
437
514
|
'label-printer',
|
|
438
|
-
'language-translate',
|
|
439
515
|
'language',
|
|
516
|
+
'language-translate',
|
|
440
517
|
'layout-block',
|
|
518
|
+
'layout-buy-button',
|
|
441
519
|
'layout-buy-button-horizontal',
|
|
442
520
|
'layout-buy-button-vertical',
|
|
443
|
-
'layout-buy-button',
|
|
444
521
|
'layout-column-1',
|
|
445
522
|
'layout-columns-2',
|
|
446
523
|
'layout-columns-3',
|
|
@@ -453,64 +530,73 @@ declare const privateIconArray: readonly [
|
|
|
453
530
|
'layout-sidebar-left',
|
|
454
531
|
'layout-sidebar-right',
|
|
455
532
|
'lightbulb',
|
|
456
|
-
'link-list',
|
|
457
533
|
'link',
|
|
534
|
+
'link-list',
|
|
458
535
|
'list-bulleted',
|
|
536
|
+
'list-bulleted-filled',
|
|
459
537
|
'list-numbered',
|
|
460
538
|
'live',
|
|
461
|
-
'
|
|
539
|
+
'live-critical',
|
|
540
|
+
'live-none',
|
|
462
541
|
'location',
|
|
542
|
+
'location-none',
|
|
463
543
|
'lock',
|
|
464
544
|
'map',
|
|
545
|
+
'markets',
|
|
465
546
|
'markets-euro',
|
|
466
547
|
'markets-rupee',
|
|
467
548
|
'markets-yen',
|
|
468
|
-
'markets',
|
|
469
549
|
'maximize',
|
|
470
|
-
'measurement-size-list',
|
|
471
550
|
'measurement-size',
|
|
472
|
-
'measurement-
|
|
551
|
+
'measurement-size-list',
|
|
473
552
|
'measurement-volume',
|
|
474
|
-
'measurement-
|
|
553
|
+
'measurement-volume-list',
|
|
475
554
|
'measurement-weight',
|
|
555
|
+
'measurement-weight-list',
|
|
476
556
|
'media-receiver',
|
|
477
557
|
'megaphone',
|
|
478
558
|
'mention',
|
|
559
|
+
'menu',
|
|
560
|
+
'menu-filled',
|
|
479
561
|
'menu-horizontal',
|
|
480
562
|
'menu-vertical',
|
|
481
|
-
'menu',
|
|
482
563
|
'merge',
|
|
483
564
|
'metafields',
|
|
565
|
+
'metaobject',
|
|
484
566
|
'metaobject-list',
|
|
485
567
|
'metaobject-reference',
|
|
486
|
-
'metaobject',
|
|
487
568
|
'microphone',
|
|
488
569
|
'minimize',
|
|
489
|
-
'minus-circle',
|
|
490
570
|
'minus',
|
|
571
|
+
'minus-circle',
|
|
491
572
|
'mobile',
|
|
492
|
-
'money-none',
|
|
493
573
|
'money',
|
|
574
|
+
'money-none',
|
|
575
|
+
'money-split',
|
|
494
576
|
'moon',
|
|
495
577
|
'nature',
|
|
496
|
-
'note-add',
|
|
497
578
|
'note',
|
|
579
|
+
'note-add',
|
|
498
580
|
'notification',
|
|
581
|
+
'order',
|
|
499
582
|
'order-batches',
|
|
500
583
|
'order-draft',
|
|
584
|
+
'order-filled',
|
|
501
585
|
'order-first',
|
|
502
586
|
'order-fulfilled',
|
|
503
587
|
'order-repeat',
|
|
504
588
|
'order-unfulfilled',
|
|
505
|
-
'order',
|
|
506
589
|
'orders-status',
|
|
507
590
|
'organization',
|
|
508
591
|
'outdent',
|
|
509
592
|
'outgoing',
|
|
593
|
+
'package',
|
|
594
|
+
'package-cancel',
|
|
510
595
|
'package-fulfilled',
|
|
511
596
|
'package-on-hold',
|
|
597
|
+
'package-reassign',
|
|
512
598
|
'package-returned',
|
|
513
|
-
'
|
|
599
|
+
'page',
|
|
514
600
|
'page-add',
|
|
515
601
|
'page-attachment',
|
|
516
602
|
'page-clock',
|
|
@@ -521,7 +607,6 @@ declare const privateIconArray: readonly [
|
|
|
521
607
|
'page-remove',
|
|
522
608
|
'page-report',
|
|
523
609
|
'page-up',
|
|
524
|
-
'page',
|
|
525
610
|
'pagination-end',
|
|
526
611
|
'pagination-start',
|
|
527
612
|
'paint-brush-flat',
|
|
@@ -531,50 +616,55 @@ declare const privateIconArray: readonly [
|
|
|
531
616
|
'passkey',
|
|
532
617
|
'paste',
|
|
533
618
|
'pause-circle',
|
|
534
|
-
'payment-capture',
|
|
535
619
|
'payment',
|
|
620
|
+
'payment-capture',
|
|
621
|
+
'payout',
|
|
536
622
|
'payout-dollar',
|
|
537
623
|
'payout-euro',
|
|
538
624
|
'payout-pound',
|
|
539
625
|
'payout-rupee',
|
|
540
626
|
'payout-yen',
|
|
541
|
-
'
|
|
627
|
+
'person',
|
|
542
628
|
'person-add',
|
|
543
629
|
'person-exit',
|
|
630
|
+
'person-filled',
|
|
544
631
|
'person-list',
|
|
545
632
|
'person-lock',
|
|
546
633
|
'person-remove',
|
|
547
634
|
'person-segment',
|
|
548
|
-
'person',
|
|
549
635
|
'personalized-text',
|
|
636
|
+
'phablet',
|
|
637
|
+
'phone',
|
|
550
638
|
'phone-in',
|
|
551
639
|
'phone-out',
|
|
552
|
-
'phone',
|
|
553
|
-
'pin-remove',
|
|
554
640
|
'pin',
|
|
641
|
+
'pin-remove',
|
|
555
642
|
'plan',
|
|
556
|
-
'play-circle',
|
|
557
643
|
'play',
|
|
644
|
+
'play-circle',
|
|
645
|
+
'plus',
|
|
646
|
+
'plus-circle',
|
|
558
647
|
'plus-circle-down',
|
|
559
648
|
'plus-circle-filled',
|
|
560
649
|
'plus-circle-up',
|
|
561
|
-
'plus-circle',
|
|
562
|
-
'plus',
|
|
563
650
|
'point-of-sale',
|
|
651
|
+
'point-of-sale-register',
|
|
564
652
|
'price-list',
|
|
565
653
|
'print',
|
|
654
|
+
'product',
|
|
566
655
|
'product-add',
|
|
567
656
|
'product-cost',
|
|
657
|
+
'product-filled',
|
|
568
658
|
'product-list',
|
|
569
659
|
'product-reference',
|
|
570
660
|
'product-remove',
|
|
571
661
|
'product-return',
|
|
572
662
|
'product-unavailable',
|
|
573
|
-
'product',
|
|
574
|
-
'profile-filled',
|
|
575
663
|
'profile',
|
|
576
|
-
'
|
|
664
|
+
'profile-filled',
|
|
577
665
|
'question-circle',
|
|
666
|
+
'question-circle-filled',
|
|
667
|
+
'receipt',
|
|
578
668
|
'receipt-dollar',
|
|
579
669
|
'receipt-euro',
|
|
580
670
|
'receipt-folded',
|
|
@@ -583,7 +673,6 @@ declare const privateIconArray: readonly [
|
|
|
583
673
|
'receipt-refund',
|
|
584
674
|
'receipt-rupee',
|
|
585
675
|
'receipt-yen',
|
|
586
|
-
'receipt',
|
|
587
676
|
'receivables',
|
|
588
677
|
'redo',
|
|
589
678
|
'referral-code',
|
|
@@ -601,11 +690,12 @@ declare const privateIconArray: readonly [
|
|
|
601
690
|
'sandbox',
|
|
602
691
|
'save',
|
|
603
692
|
'savings',
|
|
693
|
+
'scan-qr-code',
|
|
694
|
+
'search',
|
|
604
695
|
'search-add',
|
|
605
696
|
'search-list',
|
|
606
697
|
'search-recent',
|
|
607
698
|
'search-resource',
|
|
608
|
-
'search',
|
|
609
699
|
'select',
|
|
610
700
|
'send',
|
|
611
701
|
'settings',
|
|
@@ -615,6 +705,7 @@ declare const privateIconArray: readonly [
|
|
|
615
705
|
'shield-pending',
|
|
616
706
|
'shield-person',
|
|
617
707
|
'shipping-label',
|
|
708
|
+
'shipping-label-cancel',
|
|
618
709
|
'shopcodes',
|
|
619
710
|
'slideshow',
|
|
620
711
|
'smiley-happy',
|
|
@@ -623,68 +714,70 @@ declare const privateIconArray: readonly [
|
|
|
623
714
|
'smiley-sad',
|
|
624
715
|
'social-ad',
|
|
625
716
|
'social-post',
|
|
717
|
+
'sort',
|
|
626
718
|
'sort-ascending',
|
|
627
719
|
'sort-descending',
|
|
628
|
-
'sort',
|
|
629
720
|
'sound',
|
|
630
721
|
'sports',
|
|
722
|
+
'star',
|
|
723
|
+
'star-circle',
|
|
631
724
|
'star-filled',
|
|
632
725
|
'star-half',
|
|
633
726
|
'star-list',
|
|
634
|
-
'star',
|
|
635
|
-
'status-active',
|
|
636
727
|
'status',
|
|
728
|
+
'status-active',
|
|
637
729
|
'stop-circle',
|
|
730
|
+
'store',
|
|
638
731
|
'store-import',
|
|
639
732
|
'store-managed',
|
|
640
733
|
'store-online',
|
|
641
|
-
'store',
|
|
642
734
|
'sun',
|
|
643
|
-
'table-masonry',
|
|
644
735
|
'table',
|
|
736
|
+
'table-masonry',
|
|
645
737
|
'tablet',
|
|
646
738
|
'target',
|
|
647
739
|
'tax',
|
|
648
740
|
'team',
|
|
741
|
+
'text',
|
|
649
742
|
'text-align-center',
|
|
650
743
|
'text-align-left',
|
|
651
744
|
'text-align-right',
|
|
652
745
|
'text-block',
|
|
653
746
|
'text-bold',
|
|
654
747
|
'text-color',
|
|
655
|
-
'text-font-list',
|
|
656
748
|
'text-font',
|
|
749
|
+
'text-font-list',
|
|
657
750
|
'text-grammar',
|
|
658
751
|
'text-in-columns',
|
|
659
752
|
'text-in-rows',
|
|
660
|
-
'text-indent-remove',
|
|
661
753
|
'text-indent',
|
|
754
|
+
'text-indent-remove',
|
|
662
755
|
'text-italic',
|
|
663
756
|
'text-quote',
|
|
664
757
|
'text-title',
|
|
665
758
|
'text-underline',
|
|
666
759
|
'text-with-image',
|
|
667
|
-
'
|
|
760
|
+
'theme',
|
|
668
761
|
'theme-edit',
|
|
669
762
|
'theme-store',
|
|
670
763
|
'theme-template',
|
|
671
|
-
'theme',
|
|
672
764
|
'three-d-environment',
|
|
673
765
|
'thumbs-down',
|
|
674
766
|
'thumbs-up',
|
|
675
767
|
'tip-jar',
|
|
676
768
|
'toggle-off',
|
|
677
769
|
'toggle-on',
|
|
770
|
+
'transaction',
|
|
771
|
+
'transaction-fee-add',
|
|
678
772
|
'transaction-fee-dollar',
|
|
679
773
|
'transaction-fee-euro',
|
|
680
774
|
'transaction-fee-pound',
|
|
681
775
|
'transaction-fee-rupee',
|
|
682
776
|
'transaction-fee-yen',
|
|
683
|
-
'
|
|
777
|
+
'transfer',
|
|
684
778
|
'transfer-in',
|
|
685
779
|
'transfer-internal',
|
|
686
780
|
'transfer-out',
|
|
687
|
-
'transfer',
|
|
688
781
|
'truck',
|
|
689
782
|
'undo',
|
|
690
783
|
'unknown-device',
|
|
@@ -700,12 +793,12 @@ declare const privateIconArray: readonly [
|
|
|
700
793
|
'wand',
|
|
701
794
|
'watch',
|
|
702
795
|
'wifi',
|
|
703
|
-
'work-list',
|
|
704
796
|
'work',
|
|
797
|
+
'work-list',
|
|
705
798
|
'wrench',
|
|
706
|
-
'x-circle-filled',
|
|
707
|
-
'x-circle',
|
|
708
799
|
'x',
|
|
800
|
+
'x-circle',
|
|
801
|
+
'x-circle-filled',
|
|
709
802
|
];
|
|
710
803
|
export type IconType = (typeof privateIconArray)[number];
|
|
711
804
|
/**
|
|
@@ -718,6 +811,7 @@ export type MaybeAllValuesShorthandProperty<T extends string> =
|
|
|
718
811
|
| `${T} ${T} ${T}`
|
|
719
812
|
| `${T} ${T} ${T} ${T}`;
|
|
720
813
|
export type MaybeTwoValuesShorthandProperty<T extends string> = T | `${T} ${T}`;
|
|
814
|
+
export type MaybeResponsive<T> = T | `@container${string}`;
|
|
721
815
|
/**
|
|
722
816
|
* Prevents widening string literal types in a union to `string`.
|
|
723
817
|
* @example
|
|
@@ -853,7 +947,7 @@ export interface DisplayProps {
|
|
|
853
947
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/display
|
|
854
948
|
* @default 'auto'
|
|
855
949
|
*/
|
|
856
|
-
display?: 'auto' | 'none'
|
|
950
|
+
display?: MaybeResponsive<'auto' | 'none'>;
|
|
857
951
|
}
|
|
858
952
|
export interface AccessibilityRoleProps {
|
|
859
953
|
/**
|
|
@@ -1031,7 +1125,7 @@ export interface PaddingProps {
|
|
|
1031
1125
|
*
|
|
1032
1126
|
* @default 'none'
|
|
1033
1127
|
*/
|
|
1034
|
-
padding?: MaybeAllValuesShorthandProperty<PaddingKeyword
|
|
1128
|
+
padding?: MaybeResponsive<MaybeAllValuesShorthandProperty<PaddingKeyword>>;
|
|
1035
1129
|
/**
|
|
1036
1130
|
* Adjust the block-padding.
|
|
1037
1131
|
*
|
|
@@ -1041,7 +1135,9 @@ export interface PaddingProps {
|
|
|
1041
1135
|
*
|
|
1042
1136
|
* @default '' - meaning no override
|
|
1043
1137
|
*/
|
|
1044
|
-
paddingBlock?:
|
|
1138
|
+
paddingBlock?: MaybeResponsive<
|
|
1139
|
+
MaybeTwoValuesShorthandProperty<PaddingKeyword> | ''
|
|
1140
|
+
>;
|
|
1045
1141
|
/**
|
|
1046
1142
|
* Adjust the block-start padding.
|
|
1047
1143
|
*
|
|
@@ -1049,7 +1145,7 @@ export interface PaddingProps {
|
|
|
1049
1145
|
*
|
|
1050
1146
|
* @default '' - meaning no override
|
|
1051
1147
|
*/
|
|
1052
|
-
paddingBlockStart?: PaddingKeyword | ''
|
|
1148
|
+
paddingBlockStart?: MaybeResponsive<PaddingKeyword | ''>;
|
|
1053
1149
|
/**
|
|
1054
1150
|
* Adjust the block-end padding.
|
|
1055
1151
|
*
|
|
@@ -1057,7 +1153,7 @@ export interface PaddingProps {
|
|
|
1057
1153
|
*
|
|
1058
1154
|
* @default '' - meaning no override
|
|
1059
1155
|
*/
|
|
1060
|
-
paddingBlockEnd?: PaddingKeyword | ''
|
|
1156
|
+
paddingBlockEnd?: MaybeResponsive<PaddingKeyword | ''>;
|
|
1061
1157
|
/**
|
|
1062
1158
|
* Adjust the inline padding.
|
|
1063
1159
|
*
|
|
@@ -1067,7 +1163,9 @@ export interface PaddingProps {
|
|
|
1067
1163
|
*
|
|
1068
1164
|
* @default '' - meaning no override
|
|
1069
1165
|
*/
|
|
1070
|
-
paddingInline?:
|
|
1166
|
+
paddingInline?: MaybeResponsive<
|
|
1167
|
+
MaybeTwoValuesShorthandProperty<PaddingKeyword> | ''
|
|
1168
|
+
>;
|
|
1071
1169
|
/**
|
|
1072
1170
|
* Adjust the inline-start padding.
|
|
1073
1171
|
*
|
|
@@ -1075,7 +1173,7 @@ export interface PaddingProps {
|
|
|
1075
1173
|
*
|
|
1076
1174
|
* @default '' - meaning no override
|
|
1077
1175
|
*/
|
|
1078
|
-
paddingInlineStart?: PaddingKeyword | ''
|
|
1176
|
+
paddingInlineStart?: MaybeResponsive<PaddingKeyword | ''>;
|
|
1079
1177
|
/**
|
|
1080
1178
|
* Adjust the inline-end padding.
|
|
1081
1179
|
*
|
|
@@ -1083,7 +1181,7 @@ export interface PaddingProps {
|
|
|
1083
1181
|
*
|
|
1084
1182
|
* @default '' - meaning no override
|
|
1085
1183
|
*/
|
|
1086
|
-
paddingInlineEnd?: PaddingKeyword | ''
|
|
1184
|
+
paddingInlineEnd?: MaybeResponsive<PaddingKeyword | ''>;
|
|
1087
1185
|
}
|
|
1088
1186
|
export type SizeUnits = `${number}px` | `${number}%` | `0`;
|
|
1089
1187
|
export type SizeUnitsOrAuto = SizeUnits | 'auto';
|
|
@@ -1096,7 +1194,7 @@ export interface SizingProps {
|
|
|
1096
1194
|
*
|
|
1097
1195
|
* @default 'auto'
|
|
1098
1196
|
*/
|
|
1099
|
-
blockSize?: SizeUnitsOrAuto
|
|
1197
|
+
blockSize?: MaybeResponsive<SizeUnitsOrAuto>;
|
|
1100
1198
|
/**
|
|
1101
1199
|
* Adjust the minimum block size.
|
|
1102
1200
|
*
|
|
@@ -1104,7 +1202,7 @@ export interface SizingProps {
|
|
|
1104
1202
|
*
|
|
1105
1203
|
* @default '0'
|
|
1106
1204
|
*/
|
|
1107
|
-
minBlockSize?: SizeUnits
|
|
1205
|
+
minBlockSize?: MaybeResponsive<SizeUnits>;
|
|
1108
1206
|
/**
|
|
1109
1207
|
* Adjust the maximum block size.
|
|
1110
1208
|
*
|
|
@@ -1112,7 +1210,7 @@ export interface SizingProps {
|
|
|
1112
1210
|
*
|
|
1113
1211
|
* @default 'none'
|
|
1114
1212
|
*/
|
|
1115
|
-
maxBlockSize?: SizeUnitsOrNone
|
|
1213
|
+
maxBlockSize?: MaybeResponsive<SizeUnitsOrNone>;
|
|
1116
1214
|
/**
|
|
1117
1215
|
* Adjust the inline size.
|
|
1118
1216
|
*
|
|
@@ -1120,7 +1218,7 @@ export interface SizingProps {
|
|
|
1120
1218
|
*
|
|
1121
1219
|
* @default 'auto'
|
|
1122
1220
|
*/
|
|
1123
|
-
inlineSize?: SizeUnitsOrAuto
|
|
1221
|
+
inlineSize?: MaybeResponsive<SizeUnitsOrAuto>;
|
|
1124
1222
|
/**
|
|
1125
1223
|
* Adjust the minimum inline size.
|
|
1126
1224
|
*
|
|
@@ -1128,7 +1226,7 @@ export interface SizingProps {
|
|
|
1128
1226
|
*
|
|
1129
1227
|
* @default '0'
|
|
1130
1228
|
*/
|
|
1131
|
-
minInlineSize?: SizeUnits
|
|
1229
|
+
minInlineSize?: MaybeResponsive<SizeUnits>;
|
|
1132
1230
|
/**
|
|
1133
1231
|
* Adjust the maximum inline size.
|
|
1134
1232
|
*
|
|
@@ -1136,7 +1234,7 @@ export interface SizingProps {
|
|
|
1136
1234
|
*
|
|
1137
1235
|
* @default 'none'
|
|
1138
1236
|
*/
|
|
1139
|
-
maxInlineSize?: SizeUnitsOrNone
|
|
1237
|
+
maxInlineSize?: MaybeResponsive<SizeUnitsOrNone>;
|
|
1140
1238
|
}
|
|
1141
1239
|
export type BorderStyleKeyword =
|
|
1142
1240
|
| 'none'
|
|
@@ -1274,72 +1372,9 @@ export interface BaseBoxPropsWithRole
|
|
|
1274
1372
|
extends BaseBoxProps,
|
|
1275
1373
|
AccessibilityRoleProps {}
|
|
1276
1374
|
interface BoxProps$1 extends BaseBoxPropsWithRole, GlobalProps {}
|
|
1277
|
-
export interface FocusEventProps {
|
|
1278
|
-
/**
|
|
1279
|
-
* Callback when the element loses focus.
|
|
1280
|
-
*
|
|
1281
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
1282
|
-
*/
|
|
1283
|
-
onBlur?: (event: FocusEvent) => void;
|
|
1284
|
-
/**
|
|
1285
|
-
* Callback when the element receives focus.
|
|
1286
|
-
*
|
|
1287
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
1288
|
-
*/
|
|
1289
|
-
onFocus?: (event: FocusEvent) => void;
|
|
1290
|
-
}
|
|
1291
|
-
export interface ToggleEventProps {
|
|
1292
|
-
/**
|
|
1293
|
-
* Callback fired when the element state changes **after** any animations have finished.
|
|
1294
|
-
*
|
|
1295
|
-
* - If the element transitioned from hidden to showing, the `oldState` property will be set to `closed` and the
|
|
1296
|
-
* `newState` property will be set to `open`.
|
|
1297
|
-
* - If the element transitioned from showing to hidden, the `oldState` property will be set to `open` and the
|
|
1298
|
-
* `newState` will be `closed`.
|
|
1299
|
-
*
|
|
1300
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState
|
|
1301
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState
|
|
1302
|
-
*/
|
|
1303
|
-
onAfterToggle?: (event: ToggleEvent$1) => void;
|
|
1304
|
-
/**
|
|
1305
|
-
* Callback straight after the element state changes.
|
|
1306
|
-
*
|
|
1307
|
-
* - If the element is transitioning from hidden to showing, the `oldState` property will be set to `closed` and the
|
|
1308
|
-
* `newState` property will be set to `open`.
|
|
1309
|
-
* - If the element is transitioning from showing to hidden, then `oldState` property will be set to `open` and the
|
|
1310
|
-
* `newState` will be `closed`.
|
|
1311
|
-
*
|
|
1312
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/toggle_event
|
|
1313
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState
|
|
1314
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState
|
|
1315
|
-
*/
|
|
1316
|
-
onToggle?: (event: ToggleEvent$1) => void;
|
|
1317
|
-
}
|
|
1318
|
-
export type ToggleState = 'open' | 'closed';
|
|
1319
|
-
interface ToggleEvent$1 extends Event {
|
|
1320
|
-
readonly newState: ToggleState;
|
|
1321
|
-
readonly oldState: ToggleState;
|
|
1322
|
-
}
|
|
1323
|
-
export interface ExtendableEvent extends Event {
|
|
1324
|
-
/**
|
|
1325
|
-
* Provide a promise that signals the length, and eventual success or failure of actions relating to the event.
|
|
1326
|
-
*
|
|
1327
|
-
* This may be called many times, which adds promises to the event.
|
|
1328
|
-
*
|
|
1329
|
-
* However, this may only be called synchronously during the dispatch of the event.
|
|
1330
|
-
* As in, you cannot call it after a `setTimeout` or microtask.
|
|
1331
|
-
*/
|
|
1332
|
-
waitUntil?: (promise: Promise<void>) => void;
|
|
1333
|
-
}
|
|
1334
|
-
interface AggregateError$1<T extends Error> extends Error {
|
|
1335
|
-
errors: T[];
|
|
1336
|
-
}
|
|
1337
|
-
export interface ArgregatedErrorEvent<T extends Error> extends ErrorEvent {
|
|
1338
|
-
error: AggregateError$1<T>;
|
|
1339
|
-
}
|
|
1340
1375
|
export interface ButtonBehaviorProps extends InteractionProps, FocusEventProps {
|
|
1341
1376
|
/**
|
|
1342
|
-
* The behavior of the
|
|
1377
|
+
* The behavior of the Button.
|
|
1343
1378
|
*
|
|
1344
1379
|
* - `submit`: Used to indicate the component acts as a submit button, meaning it submits the closest form.
|
|
1345
1380
|
* - `button`: Used to indicate the component acts as a button, meaning it has no default action.
|
|
@@ -1351,14 +1386,14 @@ export interface ButtonBehaviorProps extends InteractionProps, FocusEventProps {
|
|
|
1351
1386
|
*/
|
|
1352
1387
|
type?: 'submit' | 'button' | 'reset';
|
|
1353
1388
|
/**
|
|
1354
|
-
* Callback when the
|
|
1389
|
+
* Callback when the Button is activated.
|
|
1355
1390
|
* This will be called before the action indicated by `type`.
|
|
1356
1391
|
*
|
|
1357
1392
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event
|
|
1358
1393
|
*/
|
|
1359
1394
|
onClick?: (event: Event) => void;
|
|
1360
1395
|
/**
|
|
1361
|
-
* Disables the
|
|
1396
|
+
* Disables the Button meaning it cannot be clicked or receive focus.
|
|
1362
1397
|
*
|
|
1363
1398
|
* @default false
|
|
1364
1399
|
*/
|
|
@@ -1366,7 +1401,7 @@ export interface ButtonBehaviorProps extends InteractionProps, FocusEventProps {
|
|
|
1366
1401
|
/**
|
|
1367
1402
|
* Replaces content with a loading indicator while a background action is being performed.
|
|
1368
1403
|
*
|
|
1369
|
-
* This also disables the
|
|
1404
|
+
* This also disables the Button.
|
|
1370
1405
|
*
|
|
1371
1406
|
* @default false
|
|
1372
1407
|
*/
|
|
@@ -1396,7 +1431,7 @@ export interface LinkBehaviorProps extends InteractionProps, FocusEventProps {
|
|
|
1396
1431
|
target?: 'auto' | '_blank' | '_self' | '_parent' | '_top' | AnyString;
|
|
1397
1432
|
/**
|
|
1398
1433
|
* Causes the browser to treat the linked URL as a download with the string being the file name.
|
|
1399
|
-
* Download only works for same-origin URLs
|
|
1434
|
+
* Download only works for same-origin URLs or the `blob:` and `data:` schemes.
|
|
1400
1435
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download
|
|
1401
1436
|
*/
|
|
1402
1437
|
download?: string;
|
|
@@ -1445,7 +1480,7 @@ interface ButtonProps$1 extends GlobalProps, BaseClickableProps {
|
|
|
1445
1480
|
/**
|
|
1446
1481
|
* A label that describes the purpose or contents of the Button. It will be read to users using assistive technologies such as screen readers.
|
|
1447
1482
|
*
|
|
1448
|
-
* Use this when using only an icon or the
|
|
1483
|
+
* Use this when using only an icon or the Button text is not enough context
|
|
1449
1484
|
* for users using assistive technologies.
|
|
1450
1485
|
*/
|
|
1451
1486
|
accessibilityLabel?: string;
|
|
@@ -1454,13 +1489,13 @@ interface ButtonProps$1 extends GlobalProps, BaseClickableProps {
|
|
|
1454
1489
|
*/
|
|
1455
1490
|
children?: ComponentChildren;
|
|
1456
1491
|
/**
|
|
1457
|
-
* The type of icon to be displayed in the
|
|
1492
|
+
* The type of icon to be displayed in the Button.
|
|
1458
1493
|
*
|
|
1459
1494
|
* @default ''
|
|
1460
1495
|
*/
|
|
1461
1496
|
icon?: IconType | AnyString;
|
|
1462
1497
|
/**
|
|
1463
|
-
* The displayed inline width of the
|
|
1498
|
+
* The displayed inline width of the Button.
|
|
1464
1499
|
*
|
|
1465
1500
|
* - `auto`: the size of the button depends on the surface and context.
|
|
1466
1501
|
* - `fill`: the button will takes up 100% of the available inline size.
|
|
@@ -1476,7 +1511,7 @@ interface ButtonProps$1 extends GlobalProps, BaseClickableProps {
|
|
|
1476
1511
|
*/
|
|
1477
1512
|
variant?: 'auto' | 'primary' | 'secondary' | 'tertiary';
|
|
1478
1513
|
/**
|
|
1479
|
-
* Sets the tone of the Button
|
|
1514
|
+
* Sets the tone of the Button based on the intention of the information being conveyed.
|
|
1480
1515
|
*
|
|
1481
1516
|
* @default 'auto'
|
|
1482
1517
|
*/
|
|
@@ -1847,7 +1882,7 @@ interface CheckboxProps$1
|
|
|
1847
1882
|
*/
|
|
1848
1883
|
required?: boolean;
|
|
1849
1884
|
}
|
|
1850
|
-
export interface ChipProps$1 {
|
|
1885
|
+
export interface ChipProps$1 extends GlobalProps {
|
|
1851
1886
|
/**
|
|
1852
1887
|
* The content of the chip.
|
|
1853
1888
|
*/
|
|
@@ -2368,15 +2403,18 @@ interface DatePickerProps$1 extends GlobalProps, InputProps, FocusEventProps {
|
|
|
2368
2403
|
* - If `type="multiple"`, this is a comma-separated list of dates in `YYYY-MM-DD` format.
|
|
2369
2404
|
* - If `type="range"`, this is a range in `YYYY-MM-DD--YYYY-MM-DD` format. The range is inclusive.
|
|
2370
2405
|
*
|
|
2371
|
-
* Events:
|
|
2372
|
-
*
|
|
2373
|
-
* - `onInput` - Invoked when any date is selected. Will fire before `onChange`.
|
|
2374
|
-
* - `onChange` - Invoked when the `value` is changed. For `type="single"` and `type="multiple"`, this is the same as `onInput`.
|
|
2375
|
-
* For `type="range"`, this is only called when the range is completed by selecting the end date of the range.
|
|
2376
|
-
*
|
|
2377
2406
|
* @default ""
|
|
2378
2407
|
*/
|
|
2379
2408
|
value?: string;
|
|
2409
|
+
/**
|
|
2410
|
+
* Callback when any date is selected. Will fire before `onChange`.
|
|
2411
|
+
*/
|
|
2412
|
+
onInput?: (event: Event) => void;
|
|
2413
|
+
/**
|
|
2414
|
+
* Callback when the `value` is changed. For `type="single"` and `type="multiple"`, this is the same as `onInput`.
|
|
2415
|
+
* For `type="range"`, this is only called when the range is completed by selecting the end date of the range.
|
|
2416
|
+
*/
|
|
2417
|
+
onChange?: (event: Event) => void;
|
|
2380
2418
|
}
|
|
2381
2419
|
interface DateFieldProps$1
|
|
2382
2420
|
extends GlobalProps,
|
|
@@ -2423,13 +2461,7 @@ export type DateAutocompleteField = ExtractStrict<
|
|
|
2423
2461
|
>;
|
|
2424
2462
|
interface DividerProps$1 extends GlobalProps {
|
|
2425
2463
|
/**
|
|
2426
|
-
* Specify the direction of the divider.
|
|
2427
|
-
*
|
|
2428
|
-
* An 'inline' divider separates blocks of content.
|
|
2429
|
-
* In a left-to-right or right-to-left writing mode, this would typically be a horizontal line.
|
|
2430
|
-
*
|
|
2431
|
-
* A 'block' divider separates items within the current line of content.
|
|
2432
|
-
* In a left-to-right or right-to-left writing mode, this would typically be a vertical line.
|
|
2464
|
+
* Specify the direction of the divider. This uses [logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values).
|
|
2433
2465
|
*
|
|
2434
2466
|
* @default 'inline'
|
|
2435
2467
|
*/
|
|
@@ -2553,7 +2585,7 @@ export interface GapProps {
|
|
|
2553
2585
|
*
|
|
2554
2586
|
* @default 'none'
|
|
2555
2587
|
*/
|
|
2556
|
-
gap?: MaybeTwoValuesShorthandProperty<SpacingKeyword
|
|
2588
|
+
gap?: MaybeResponsive<MaybeTwoValuesShorthandProperty<SpacingKeyword>>;
|
|
2557
2589
|
/**
|
|
2558
2590
|
* Adjust spacing between elements in the block axis.
|
|
2559
2591
|
*
|
|
@@ -2561,7 +2593,7 @@ export interface GapProps {
|
|
|
2561
2593
|
*
|
|
2562
2594
|
* @default '' - meaning no override
|
|
2563
2595
|
*/
|
|
2564
|
-
rowGap?: SpacingKeyword | ''
|
|
2596
|
+
rowGap?: MaybeResponsive<SpacingKeyword | ''>;
|
|
2565
2597
|
/**
|
|
2566
2598
|
* Adjust spacing between elements in the inline axis.
|
|
2567
2599
|
*
|
|
@@ -2569,7 +2601,7 @@ export interface GapProps {
|
|
|
2569
2601
|
*
|
|
2570
2602
|
* @default '' - meaning no override
|
|
2571
2603
|
*/
|
|
2572
|
-
columnGap?: SpacingKeyword | ''
|
|
2604
|
+
columnGap?: MaybeResponsive<SpacingKeyword | ''>;
|
|
2573
2605
|
}
|
|
2574
2606
|
export type BaselinePosition = 'baseline' | 'first baseline' | 'last baseline';
|
|
2575
2607
|
export type ContentDistribution =
|
|
@@ -2631,14 +2663,14 @@ interface GridProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
2631
2663
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns
|
|
2632
2664
|
@default 'none'
|
|
2633
2665
|
*/
|
|
2634
|
-
gridTemplateColumns?: string
|
|
2666
|
+
gridTemplateColumns?: MaybeResponsive<string>;
|
|
2635
2667
|
/**
|
|
2636
2668
|
Define rows and specify their size.
|
|
2637
2669
|
|
|
2638
2670
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows
|
|
2639
2671
|
@default 'none'
|
|
2640
2672
|
*/
|
|
2641
|
-
gridTemplateRows?: string
|
|
2673
|
+
gridTemplateRows?: MaybeResponsive<string>;
|
|
2642
2674
|
/**
|
|
2643
2675
|
Aligns the grid items along the inline (row) axis.
|
|
2644
2676
|
|
|
@@ -2647,7 +2679,7 @@ interface GridProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
2647
2679
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items
|
|
2648
2680
|
@default '' - meaning no override
|
|
2649
2681
|
*/
|
|
2650
|
-
justifyItems?: JustifyItemsKeyword | ''
|
|
2682
|
+
justifyItems?: MaybeResponsive<JustifyItemsKeyword | ''>;
|
|
2651
2683
|
/**
|
|
2652
2684
|
Aligns the grid items along the block (column) axis.
|
|
2653
2685
|
|
|
@@ -2656,16 +2688,16 @@ interface GridProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
2656
2688
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
|
|
2657
2689
|
@default '' - meaning no override
|
|
2658
2690
|
*/
|
|
2659
|
-
alignItems?: AlignItemsKeyword | ''
|
|
2691
|
+
alignItems?: MaybeResponsive<AlignItemsKeyword | ''>;
|
|
2660
2692
|
/**
|
|
2661
2693
|
A shorthand property for `justify-items` and `align-items`.
|
|
2662
2694
|
|
|
2663
2695
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/place-items
|
|
2664
2696
|
@default 'normal normal'
|
|
2665
2697
|
*/
|
|
2666
|
-
placeItems?:
|
|
2667
|
-
|
|
2668
|
-
|
|
2698
|
+
placeItems?: MaybeResponsive<
|
|
2699
|
+
`${AlignItemsKeyword} ${JustifyItemsKeyword}` | AlignItemsKeyword
|
|
2700
|
+
>;
|
|
2669
2701
|
/**
|
|
2670
2702
|
Aligns the grid along the inline (row) axis.
|
|
2671
2703
|
|
|
@@ -2674,7 +2706,7 @@ interface GridProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
2674
2706
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
|
|
2675
2707
|
@default '' - meaning no override
|
|
2676
2708
|
*/
|
|
2677
|
-
justifyContent?: JustifyContentKeyword | ''
|
|
2709
|
+
justifyContent?: MaybeResponsive<JustifyContentKeyword | ''>;
|
|
2678
2710
|
/**
|
|
2679
2711
|
Aligns the grid along the block (column) axis.
|
|
2680
2712
|
|
|
@@ -2683,16 +2715,16 @@ interface GridProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
2683
2715
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
|
|
2684
2716
|
@default '' - meaning no override
|
|
2685
2717
|
*/
|
|
2686
|
-
alignContent?: AlignContentKeyword | ''
|
|
2718
|
+
alignContent?: MaybeResponsive<AlignContentKeyword | ''>;
|
|
2687
2719
|
/**
|
|
2688
2720
|
A shorthand property for `justify-content` and `align-content`.
|
|
2689
2721
|
|
|
2690
2722
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/place-content
|
|
2691
2723
|
@default 'normal normal'
|
|
2692
2724
|
*/
|
|
2693
|
-
placeContent?:
|
|
2694
|
-
|
|
2695
|
-
|
|
2725
|
+
placeContent?: MaybeResponsive<
|
|
2726
|
+
`${AlignContentKeyword} ${JustifyContentKeyword}` | AlignContentKeyword
|
|
2727
|
+
>;
|
|
2696
2728
|
}
|
|
2697
2729
|
interface GridItemProps$1 extends GlobalProps, BaseBoxPropsWithRole {
|
|
2698
2730
|
/**
|
|
@@ -3076,7 +3108,7 @@ interface OptionGroupProps$1 extends GlobalProps {
|
|
|
3076
3108
|
children?: ComponentChildren;
|
|
3077
3109
|
}
|
|
3078
3110
|
interface OrderedListProps$1 extends GlobalProps {}
|
|
3079
|
-
interface PageProps$1 extends GlobalProps {
|
|
3111
|
+
interface PageProps$1 extends GlobalProps, ActionSlots {
|
|
3080
3112
|
/**
|
|
3081
3113
|
* The content of the Page.
|
|
3082
3114
|
*/
|
|
@@ -3093,19 +3125,10 @@ interface PageProps$1 extends GlobalProps {
|
|
|
3093
3125
|
* Additional contextual information about the page.
|
|
3094
3126
|
*/
|
|
3095
3127
|
accessory?: ComponentChildren;
|
|
3096
|
-
/**
|
|
3097
|
-
* The primary action to perform, provided as a button or link type element.
|
|
3098
|
-
* When a `Button` is added to the `primaryAction` it's variant is set to `primary`
|
|
3099
|
-
*/
|
|
3100
|
-
primaryAction?: ComponentChildren;
|
|
3101
3128
|
/**
|
|
3102
3129
|
* The breadcrumb actions to perform, provided as link elements.
|
|
3103
3130
|
*/
|
|
3104
3131
|
breadcrumbActions?: ComponentChildren;
|
|
3105
|
-
/**
|
|
3106
|
-
* Secondary actions. These are `Button`s that will be contextually the 'secondary' variant.
|
|
3107
|
-
*/
|
|
3108
|
-
secondaryActions?: ComponentChildren;
|
|
3109
3132
|
/**
|
|
3110
3133
|
* The aside element is section of a page that contains content that is tangentially related to the content around the aside element, and which could be considered separate from that content.
|
|
3111
3134
|
* Such sections are often represented as sidebars in printed typography.
|
|
@@ -3262,34 +3285,34 @@ interface StackProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
3262
3285
|
*/
|
|
3263
3286
|
children?: ComponentChildren;
|
|
3264
3287
|
/**
|
|
3265
|
-
* Sets how the children are placed within the Stack.
|
|
3288
|
+
* Sets how the children are placed within the Stack. This uses [logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values).
|
|
3266
3289
|
*
|
|
3267
3290
|
* @default 'block'
|
|
3268
3291
|
*
|
|
3269
3292
|
* @implementation the content will wrap if the direction is 'inline', and not wrap if the direction is 'block'
|
|
3270
3293
|
*/
|
|
3271
|
-
direction?: 'block' | 'inline'
|
|
3294
|
+
direction?: MaybeResponsive<'block' | 'inline'>;
|
|
3272
3295
|
/**
|
|
3273
3296
|
* Aligns the Stack along the main axis.
|
|
3274
3297
|
*
|
|
3275
3298
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
|
|
3276
3299
|
* @default 'normal'
|
|
3277
3300
|
*/
|
|
3278
|
-
justifyContent?: JustifyContentKeyword
|
|
3301
|
+
justifyContent?: MaybeResponsive<JustifyContentKeyword>;
|
|
3279
3302
|
/**
|
|
3280
3303
|
* Aligns the Stack's children along the cross axis.
|
|
3281
3304
|
*
|
|
3282
3305
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
|
|
3283
3306
|
* @default 'normal'
|
|
3284
3307
|
*/
|
|
3285
|
-
alignItems?: AlignItemsKeyword
|
|
3308
|
+
alignItems?: MaybeResponsive<AlignItemsKeyword>;
|
|
3286
3309
|
/**
|
|
3287
3310
|
* Aligns the Stack along the cross axis.
|
|
3288
3311
|
*
|
|
3289
3312
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
|
|
3290
3313
|
* @default 'normal'
|
|
3291
3314
|
*/
|
|
3292
|
-
alignContent?: AlignContentKeyword
|
|
3315
|
+
alignContent?: MaybeResponsive<AlignContentKeyword>;
|
|
3293
3316
|
}
|
|
3294
3317
|
interface SwitchProps$1
|
|
3295
3318
|
extends GlobalProps,
|
|
@@ -3378,7 +3401,7 @@ interface TableHeaderProps$1 extends GlobalProps {
|
|
|
3378
3401
|
/**
|
|
3379
3402
|
* Content designation for the table's `list` variant.
|
|
3380
3403
|
*
|
|
3381
|
-
* - `primary
|
|
3404
|
+
* - `primary`: The most important content. Only one column can have this designation.
|
|
3382
3405
|
* - `secondary`: The secondary content. Only one column can have this designation.
|
|
3383
3406
|
* - `kicker`: Content that is displayed before primary and secondary content, but with less visual prominence. Only one column can have this designation.
|
|
3384
3407
|
* - `inline`: Content that is displayed inline.
|
|
@@ -3434,7 +3457,7 @@ interface TextProps$1
|
|
|
3434
3457
|
/**
|
|
3435
3458
|
* Provide semantic meaning and default styling to the text.
|
|
3436
3459
|
*
|
|
3437
|
-
* Other presentation properties on
|
|
3460
|
+
* Other presentation properties on Text override the default styling.
|
|
3438
3461
|
*
|
|
3439
3462
|
* @default 'generic'
|
|
3440
3463
|
*/
|
|
@@ -4675,6 +4698,12 @@ export interface BoxProps
|
|
|
4675
4698
|
* @default 'auto'
|
|
4676
4699
|
*/
|
|
4677
4700
|
display: ResponsiveBoxProps['display'];
|
|
4701
|
+
blockSize: SizeUnits | 'auto';
|
|
4702
|
+
minBlockSize: SizeUnits | '0';
|
|
4703
|
+
maxBlockSize: SizeUnits | 'none';
|
|
4704
|
+
inlineSize: SizeUnits | 'auto';
|
|
4705
|
+
minInlineSize: SizeUnits | '0';
|
|
4706
|
+
maxInlineSize: SizeUnits | 'none';
|
|
4678
4707
|
}
|
|
4679
4708
|
|
|
4680
4709
|
declare class BoxElement extends PreactCustomElement implements BoxProps {
|
|
@@ -4851,7 +4880,19 @@ declare module 'preact' {
|
|
|
4851
4880
|
declare const tagName$V = 's-button-group';
|
|
4852
4881
|
export interface ButtonGroupJSXProps
|
|
4853
4882
|
extends Partial<ButtonGroupProps>,
|
|
4854
|
-
Pick<ButtonGroupProps$1, 'id'> {
|
|
4883
|
+
Pick<ButtonGroupProps$1, 'id'> {
|
|
4884
|
+
/**
|
|
4885
|
+
* The primary action button for the group.
|
|
4886
|
+
* Accepts a single Button element with a `variant` of `primary`.
|
|
4887
|
+
* Cannot be used when gap="none".
|
|
4888
|
+
*/
|
|
4889
|
+
primaryAction?: ComponentChild;
|
|
4890
|
+
/**
|
|
4891
|
+
* Secondary action buttons for the group.
|
|
4892
|
+
* Accepts Button elements with a `variant` of `secondary` or `auto`.
|
|
4893
|
+
*/
|
|
4894
|
+
secondaryActions?: ComponentChild;
|
|
4895
|
+
}
|
|
4855
4896
|
|
|
4856
4897
|
declare const internals$4: unique symbol;
|
|
4857
4898
|
export type PreactInputProps = Required<
|
|
@@ -5305,6 +5346,8 @@ declare class ColorField
|
|
|
5305
5346
|
/** @private */
|
|
5306
5347
|
formResetCallback(): void;
|
|
5307
5348
|
constructor();
|
|
5349
|
+
/** @private */
|
|
5350
|
+
setInternalValue(value: string, normalize: boolean): void;
|
|
5308
5351
|
}
|
|
5309
5352
|
declare global {
|
|
5310
5353
|
interface HTMLElementTagNameMap {
|
|
@@ -5662,6 +5705,14 @@ export interface GridProps
|
|
|
5662
5705
|
| 'placeContent'
|
|
5663
5706
|
>
|
|
5664
5707
|
> {
|
|
5708
|
+
alignItems: AlignItemsKeyword | '';
|
|
5709
|
+
justifyItems: JustifyItemsKeyword | '';
|
|
5710
|
+
placeItems: `${AlignItemsKeyword} ${JustifyItemsKeyword}` | AlignItemsKeyword;
|
|
5711
|
+
alignContent: AlignContentKeyword | '';
|
|
5712
|
+
justifyContent: JustifyContentKeyword | '';
|
|
5713
|
+
placeContent:
|
|
5714
|
+
| `${AlignContentKeyword} ${JustifyContentKeyword}`
|
|
5715
|
+
| AlignContentKeyword;
|
|
5665
5716
|
/**
|
|
5666
5717
|
* Adjust spacing between elements.
|
|
5667
5718
|
*
|
|
@@ -6165,8 +6216,6 @@ declare class MoneyField
|
|
|
6165
6216
|
accessor max: MoneyFieldProps['max'];
|
|
6166
6217
|
accessor min: MoneyFieldProps['min'];
|
|
6167
6218
|
accessor step: MoneyFieldProps['step'];
|
|
6168
|
-
get value(): MoneyFieldProps['value'];
|
|
6169
|
-
set value(value: MoneyFieldProps['value']);
|
|
6170
6219
|
constructor();
|
|
6171
6220
|
}
|
|
6172
6221
|
declare global {
|
|
@@ -6206,8 +6255,6 @@ declare class NumberField
|
|
|
6206
6255
|
extends PreactFieldElement<NumberFieldProps['autocomplete']>
|
|
6207
6256
|
implements NumberFieldProps
|
|
6208
6257
|
{
|
|
6209
|
-
get value(): string;
|
|
6210
|
-
set value(value: string);
|
|
6211
6258
|
accessor inputMode: NumberFieldProps['inputMode'];
|
|
6212
6259
|
accessor step: NumberFieldProps['step'];
|
|
6213
6260
|
accessor max: NumberFieldProps['max'];
|
|
@@ -6763,6 +6810,9 @@ export interface StackProps
|
|
|
6763
6810
|
Required<AlignedStackProps>,
|
|
6764
6811
|
'justifyContent' | 'alignItems' | 'alignContent'
|
|
6765
6812
|
> {
|
|
6813
|
+
justifyContent: JustifyContentKeyword;
|
|
6814
|
+
alignItems: AlignItemsKeyword;
|
|
6815
|
+
alignContent: AlignContentKeyword;
|
|
6766
6816
|
/**
|
|
6767
6817
|
* Adjust spacing between elements.
|
|
6768
6818
|
*
|
|
@@ -6881,7 +6931,8 @@ export type HeaderFormat = Extract<
|
|
|
6881
6931
|
TableHeaderProps$1['format'],
|
|
6882
6932
|
'base' | 'currency' | 'numeric'
|
|
6883
6933
|
>;
|
|
6884
|
-
export interface TableHeaderProps
|
|
6934
|
+
export interface TableHeaderProps
|
|
6935
|
+
extends Pick<TableHeaderProps$1, 'listSlot' | 'format'> {
|
|
6885
6936
|
listSlot: Extract<
|
|
6886
6937
|
TableHeaderProps$1['listSlot'],
|
|
6887
6938
|
'primary' | 'secondary' | 'labeled' | 'kicker' | 'inline'
|
|
@@ -7745,6 +7796,20 @@ export interface ButtonEvents {
|
|
|
7745
7796
|
focus: CallbackEventListener<typeof tagName> | null = null;
|
|
7746
7797
|
}
|
|
7747
7798
|
|
|
7799
|
+
export interface ButtonGroupSlots {
|
|
7800
|
+
/**
|
|
7801
|
+
* The primary action button for the group.
|
|
7802
|
+
* Accepts a single Button element with a `variant` of `primary`.
|
|
7803
|
+
* Cannot be used when gap="none".
|
|
7804
|
+
*/
|
|
7805
|
+
'primary-action'?: HTMLElement;
|
|
7806
|
+
/**
|
|
7807
|
+
* Secondary action buttons for the group.
|
|
7808
|
+
* Accepts Button elements with a `variant` of `secondary` or `auto`.
|
|
7809
|
+
*/
|
|
7810
|
+
'secondary-actions'?: HTMLElement;
|
|
7811
|
+
}
|
|
7812
|
+
|
|
7748
7813
|
export interface CheckboxEvents {
|
|
7749
7814
|
change: CallbackEventListener<'input'>;
|
|
7750
7815
|
input: CallbackEventListener<'input'>;
|