@shopify/ui-extensions 2025.10.15 → 2025.10.16
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/surfaces/admin/components/Badge.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Button.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Clickable.d.ts +7 -7
- package/build/ts/surfaces/admin/components/Grid.d.ts +12 -12
- package/build/ts/surfaces/admin/components/GridItem.d.ts +7 -7
- package/build/ts/surfaces/admin/components/Image.d.ts +7 -7
- package/build/ts/surfaces/admin/components/Stack.d.ts +11 -11
- package/build/ts/surfaces/admin/components/TextField.d.ts +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +0 -3
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Checkbox.d.ts +12 -4
- package/build/ts/surfaces/customer-account/components/Checkbox.d.ts +12 -4
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts +1 -17
- package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data.d.ts +1 -3
- package/build/ts/surfaces/point-of-sale/event/data.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +33 -20
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.cart.line-item-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.home.modal.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.order-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.product-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.return.post.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/surfaces/admin/components/Badge.d.ts +1 -1
- package/src/surfaces/admin/components/Button.d.ts +1 -1
- package/src/surfaces/admin/components/Clickable.d.ts +7 -7
- package/src/surfaces/admin/components/Grid.d.ts +12 -12
- package/src/surfaces/admin/components/GridItem.d.ts +7 -7
- package/src/surfaces/admin/components/Image.d.ts +7 -7
- package/src/surfaces/admin/components/Stack.d.ts +11 -11
- package/src/surfaces/admin/components/TextField.d.ts +1 -1
- package/src/surfaces/admin/components.d.ts +22 -22
- package/src/surfaces/checkout/api/standard/standard.ts +0 -3
- package/src/surfaces/checkout/components/Checkbox.d.ts +12 -4
- package/src/surfaces/point-of-sale/components/targets/StandardComponents.ts +0 -2
- package/src/surfaces/point-of-sale/components.d.ts +1 -1
- package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +2 -0
- package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +2 -0
- package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +2 -0
- package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +2 -0
- package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +1 -21
- package/src/surfaces/point-of-sale/event/data.ts +1 -10
- package/src/surfaces/point-of-sale/extension-targets.ts +33 -35
- package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +2 -0
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +0 -13
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +0 -43
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.cart-update.event.observe.d.ts +0 -7
- package/build/ts/surfaces/point-of-sale/targets/pos.cash-tracking-session-complete.event.observe.d.ts +0 -7
- package/build/ts/surfaces/point-of-sale/targets/pos.cash-tracking-session-start.event.observe.d.ts +0 -7
- package/build/ts/surfaces/point-of-sale/targets/pos.transaction-complete.event.observe.d.ts +0 -7
- package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +0 -13
- package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +0 -44
package/package.json
CHANGED
|
@@ -232,7 +232,7 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
232
232
|
*/
|
|
233
233
|
ref?: preact.Ref<TClass>;
|
|
234
234
|
/**
|
|
235
|
-
* The named slot this element should be placed in when used within a web component. Learn more about [using slots](/docs/api/
|
|
235
|
+
* The named slot this element should be placed in when used within a web component. Learn more about [using slots](/docs/api/polaris/using-polaris-web-components#slots).
|
|
236
236
|
*/
|
|
237
237
|
slot?: Lowercase<string>;
|
|
238
238
|
}
|
|
@@ -44,7 +44,7 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
44
44
|
*/
|
|
45
45
|
ref?: preact.Ref<TClass>;
|
|
46
46
|
/**
|
|
47
|
-
* The named slot this element should be placed in when used within a web component. Learn more about [using slots](/docs/api/
|
|
47
|
+
* The named slot this element should be placed in when used within a web component. Learn more about [using slots](/docs/api/polaris/using-polaris-web-components#slots).
|
|
48
48
|
*/
|
|
49
49
|
slot?: Lowercase<string>;
|
|
50
50
|
}
|
|
@@ -197,7 +197,7 @@ export interface BoxProps
|
|
|
197
197
|
*
|
|
198
198
|
* A padding value of `auto` will use the default padding for the closest container that has had its usual padding removed.
|
|
199
199
|
*
|
|
200
|
-
* `padding` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
200
|
+
* `padding` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
201
201
|
*
|
|
202
202
|
* @default 'none'
|
|
203
203
|
*/
|
|
@@ -209,7 +209,7 @@ export interface BoxProps
|
|
|
209
209
|
*
|
|
210
210
|
* This overrides the block value of `padding`.
|
|
211
211
|
*
|
|
212
|
-
* `paddingBlock` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
212
|
+
* `paddingBlock` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
213
213
|
*
|
|
214
214
|
* @default '' - meaning no override
|
|
215
215
|
*/
|
|
@@ -219,7 +219,7 @@ export interface BoxProps
|
|
|
219
219
|
*
|
|
220
220
|
* This overrides the block-start value of `paddingBlock`.
|
|
221
221
|
*
|
|
222
|
-
* `paddingBlockStart` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
222
|
+
* `paddingBlockStart` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
223
223
|
*
|
|
224
224
|
* @default '' - meaning no override
|
|
225
225
|
*/
|
|
@@ -229,7 +229,7 @@ export interface BoxProps
|
|
|
229
229
|
*
|
|
230
230
|
* This overrides the block-end value of `paddingBlock`.
|
|
231
231
|
*
|
|
232
|
-
* `paddingBlockEnd` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
232
|
+
* `paddingBlockEnd` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
233
233
|
*
|
|
234
234
|
* @default '' - meaning no override
|
|
235
235
|
*/
|
|
@@ -241,7 +241,7 @@ export interface BoxProps
|
|
|
241
241
|
*
|
|
242
242
|
* This overrides the inline value of `padding`.
|
|
243
243
|
*
|
|
244
|
-
* `paddingInline` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
244
|
+
* `paddingInline` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
245
245
|
*
|
|
246
246
|
* @default '' - meaning no override
|
|
247
247
|
*/
|
|
@@ -251,7 +251,7 @@ export interface BoxProps
|
|
|
251
251
|
*
|
|
252
252
|
* This overrides the inline-start value of `paddingInline`.
|
|
253
253
|
*
|
|
254
|
-
* `paddingInlineStart` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
254
|
+
* `paddingInlineStart` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
255
255
|
*
|
|
256
256
|
* @default '' - meaning no override
|
|
257
257
|
*/
|
|
@@ -261,7 +261,7 @@ export interface BoxProps
|
|
|
261
261
|
*
|
|
262
262
|
* This overrides the inline-end value of `paddingInline`.
|
|
263
263
|
*
|
|
264
|
-
* `paddingInlineEnd` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
264
|
+
* `paddingInlineEnd` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
265
265
|
*
|
|
266
266
|
* @default '' - meaning no override
|
|
267
267
|
*/
|
|
@@ -175,7 +175,7 @@ export interface BoxProps
|
|
|
175
175
|
*
|
|
176
176
|
* A padding value of `auto` will use the default padding for the closest container that has had its usual padding removed.
|
|
177
177
|
*
|
|
178
|
-
* `padding` also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
178
|
+
* `padding` also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
179
179
|
*
|
|
180
180
|
* @default 'none'
|
|
181
181
|
*/
|
|
@@ -187,7 +187,7 @@ export interface BoxProps
|
|
|
187
187
|
*
|
|
188
188
|
* This overrides the block value of `padding`.
|
|
189
189
|
*
|
|
190
|
-
* `paddingBlock` also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
190
|
+
* `paddingBlock` also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
191
191
|
*
|
|
192
192
|
* @default '' - meaning no override
|
|
193
193
|
*/
|
|
@@ -197,7 +197,7 @@ export interface BoxProps
|
|
|
197
197
|
*
|
|
198
198
|
* This overrides the block-start value of `paddingBlock`.
|
|
199
199
|
*
|
|
200
|
-
* `paddingBlockStart` also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
200
|
+
* `paddingBlockStart` also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
201
201
|
*
|
|
202
202
|
* @default '' - meaning no override
|
|
203
203
|
*/
|
|
@@ -207,7 +207,7 @@ export interface BoxProps
|
|
|
207
207
|
*
|
|
208
208
|
* This overrides the block-end value of `paddingBlock`.
|
|
209
209
|
*
|
|
210
|
-
* `paddingBlockEnd` also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
210
|
+
* `paddingBlockEnd` also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
211
211
|
*
|
|
212
212
|
* @default '' - meaning no override
|
|
213
213
|
*/
|
|
@@ -219,7 +219,7 @@ export interface BoxProps
|
|
|
219
219
|
*
|
|
220
220
|
* This overrides the inline value of `padding`.
|
|
221
221
|
*
|
|
222
|
-
* `paddingInline` also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
222
|
+
* `paddingInline` also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
223
223
|
*
|
|
224
224
|
* @default '' - meaning no override
|
|
225
225
|
*/
|
|
@@ -229,7 +229,7 @@ export interface BoxProps
|
|
|
229
229
|
*
|
|
230
230
|
* This overrides the inline-start value of `paddingInline`.
|
|
231
231
|
*
|
|
232
|
-
* `paddingInlineStart` also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
232
|
+
* `paddingInlineStart` also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
233
233
|
*
|
|
234
234
|
* @default '' - meaning no override
|
|
235
235
|
*/
|
|
@@ -239,7 +239,7 @@ export interface BoxProps
|
|
|
239
239
|
*
|
|
240
240
|
* This overrides the inline-end value of `paddingInline`.
|
|
241
241
|
*
|
|
242
|
-
* `paddingInlineEnd` also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
242
|
+
* `paddingInlineEnd` also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
243
243
|
*
|
|
244
244
|
* @default '' - meaning no override
|
|
245
245
|
*/
|
|
@@ -362,31 +362,31 @@ export interface GridProps
|
|
|
362
362
|
| `${AlignContentKeyword} ${JustifyContentKeyword}`
|
|
363
363
|
| AlignContentKeyword;
|
|
364
364
|
/**
|
|
365
|
-
* The spacing between grid rows and columns. You can provide a single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value to apply the same spacing to both axes (for example, `'large-100'`), or a pair of values (for example, `'large-100 large-500'`) to set different spacing for rows and columns. This property also accepts [responsive values](/docs/api/polaris/using-web-components#responsive-values) using container query syntax.
|
|
365
|
+
* The spacing between grid rows and columns. You can provide a single [`SpacingKeyword`](/docs/api/polaris/using-polaris-web-components#scale) value to apply the same spacing to both axes (for example, `'large-100'`), or a pair of values (for example, `'large-100 large-500'`) to set different spacing for rows and columns. This property also accepts [responsive values](/docs/api/polaris/using-polaris-web-components#responsive-values) using container query syntax.
|
|
366
366
|
*
|
|
367
367
|
* @default 'none'
|
|
368
368
|
*/
|
|
369
369
|
gap: ResponsiveGridProps['gap'];
|
|
370
370
|
/**
|
|
371
|
-
* The spacing between grid rows. This property overrides the row spacing set by the `gap` property. You can provide a single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value (for example, `'large-100'`), or a [responsive value](/docs/api/polaris/using-web-components#responsive-values) using container query syntax.
|
|
371
|
+
* The spacing between grid rows. This property overrides the row spacing set by the `gap` property. You can provide a single [`SpacingKeyword`](/docs/api/polaris/using-polaris-web-components#scale) value (for example, `'large-100'`), or a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) using container query syntax.
|
|
372
372
|
*
|
|
373
373
|
* @default '' - meaning no override
|
|
374
374
|
*/
|
|
375
375
|
rowGap: ResponsiveGridProps['rowGap'];
|
|
376
376
|
/**
|
|
377
|
-
* The spacing between grid columns. This property overrides the column spacing set by the `gap` property. You can provide a single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value (for example, `'large-100'`), or a [responsive value](/docs/api/polaris/using-web-components#responsive-values) using container query syntax.
|
|
377
|
+
* The spacing between grid columns. This property overrides the column spacing set by the `gap` property. You can provide a single [`SpacingKeyword`](/docs/api/polaris/using-polaris-web-components#scale) value (for example, `'large-100'`), or a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) using container query syntax.
|
|
378
378
|
*
|
|
379
379
|
* @default '' - meaning no override
|
|
380
380
|
*/
|
|
381
381
|
columnGap: ResponsiveGridProps['columnGap'];
|
|
382
382
|
/**
|
|
383
|
-
* The number of columns and their sizes. You can use [track sizing values](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Basic_concepts_of_grid_layout#fixed_and_flexible_track_sizes) (for example, `'1fr auto'` or `'repeat(3, 1fr)'`) to define the grid structure. This property also accepts [responsive values](/docs/api/polaris/using-web-components#responsive-values) using container query syntax.
|
|
383
|
+
* The number of columns and their sizes. You can use [track sizing values](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Basic_concepts_of_grid_layout#fixed_and_flexible_track_sizes) (for example, `'1fr auto'` or `'repeat(3, 1fr)'`) to define the grid structure. This property also accepts [responsive values](/docs/api/polaris/using-polaris-web-components#responsive-values) using container query syntax.
|
|
384
384
|
*
|
|
385
385
|
* @default 'none'
|
|
386
386
|
*/
|
|
387
387
|
gridTemplateColumns: ResponsiveGridProps['gridTemplateColumns'];
|
|
388
388
|
/**
|
|
389
|
-
* The number of rows and their sizes. You can use [track sizing values](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Basic_concepts_of_grid_layout#fixed_and_flexible_track_sizes) (for example, `'1fr auto'` or `'repeat(3, 100px)'`) to define the grid structure. This property also accepts [responsive values](/docs/api/polaris/using-web-components#responsive-values) using container query syntax.
|
|
389
|
+
* The number of rows and their sizes. You can use [track sizing values](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Basic_concepts_of_grid_layout#fixed_and_flexible_track_sizes) (for example, `'1fr auto'` or `'repeat(3, 100px)'`) to define the grid structure. This property also accepts [responsive values](/docs/api/polaris/using-polaris-web-components#responsive-values) using container query syntax.
|
|
390
390
|
*
|
|
391
391
|
* @default 'none'
|
|
392
392
|
*/
|
|
@@ -170,7 +170,7 @@ export interface BoxProps
|
|
|
170
170
|
*
|
|
171
171
|
* A padding value of `auto` will use the default padding for the closest container that has had its usual padding removed.
|
|
172
172
|
*
|
|
173
|
-
* `padding` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
173
|
+
* `padding` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
174
174
|
*
|
|
175
175
|
* @default 'none'
|
|
176
176
|
*/
|
|
@@ -182,7 +182,7 @@ export interface BoxProps
|
|
|
182
182
|
*
|
|
183
183
|
* This overrides the block value of `padding`.
|
|
184
184
|
*
|
|
185
|
-
* `paddingBlock` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
185
|
+
* `paddingBlock` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
186
186
|
*
|
|
187
187
|
* @default '' - meaning no override
|
|
188
188
|
*/
|
|
@@ -192,7 +192,7 @@ export interface BoxProps
|
|
|
192
192
|
*
|
|
193
193
|
* This overrides the block-start value of `paddingBlock`.
|
|
194
194
|
*
|
|
195
|
-
* `paddingBlockStart` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
195
|
+
* `paddingBlockStart` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
196
196
|
*
|
|
197
197
|
* @default '' - meaning no override
|
|
198
198
|
*/
|
|
@@ -202,7 +202,7 @@ export interface BoxProps
|
|
|
202
202
|
*
|
|
203
203
|
* This overrides the block-end value of `paddingBlock`.
|
|
204
204
|
*
|
|
205
|
-
* `paddingBlockEnd` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
205
|
+
* `paddingBlockEnd` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
206
206
|
*
|
|
207
207
|
* @default '' - meaning no override
|
|
208
208
|
*/
|
|
@@ -214,7 +214,7 @@ export interface BoxProps
|
|
|
214
214
|
*
|
|
215
215
|
* This overrides the inline value of `padding`.
|
|
216
216
|
*
|
|
217
|
-
* `paddingInline` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
217
|
+
* `paddingInline` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
218
218
|
*
|
|
219
219
|
* @default '' - meaning no override
|
|
220
220
|
*/
|
|
@@ -224,7 +224,7 @@ export interface BoxProps
|
|
|
224
224
|
*
|
|
225
225
|
* This overrides the inline-start value of `paddingInline`.
|
|
226
226
|
*
|
|
227
|
-
* `paddingInlineStart` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
227
|
+
* `paddingInlineStart` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
228
228
|
*
|
|
229
229
|
* @default '' - meaning no override
|
|
230
230
|
*/
|
|
@@ -234,7 +234,7 @@ export interface BoxProps
|
|
|
234
234
|
*
|
|
235
235
|
* This overrides the inline-end value of `paddingInline`.
|
|
236
236
|
*
|
|
237
|
-
* `paddingInlineEnd` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
237
|
+
* `paddingInlineEnd` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
238
238
|
*
|
|
239
239
|
* @default '' - meaning no override
|
|
240
240
|
*/
|
|
@@ -205,7 +205,7 @@ export interface BoxProps
|
|
|
205
205
|
*
|
|
206
206
|
* A padding value of `auto` will use the default padding for the closest container that has had its usual padding removed.
|
|
207
207
|
*
|
|
208
|
-
* `padding` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
208
|
+
* `padding` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
209
209
|
*
|
|
210
210
|
* @default 'none'
|
|
211
211
|
*/
|
|
@@ -217,7 +217,7 @@ export interface BoxProps
|
|
|
217
217
|
*
|
|
218
218
|
* This overrides the block value of `padding`.
|
|
219
219
|
*
|
|
220
|
-
* `paddingBlock` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
220
|
+
* `paddingBlock` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
221
221
|
*
|
|
222
222
|
* @default '' - meaning no override
|
|
223
223
|
*/
|
|
@@ -227,7 +227,7 @@ export interface BoxProps
|
|
|
227
227
|
*
|
|
228
228
|
* This overrides the block-start value of `paddingBlock`.
|
|
229
229
|
*
|
|
230
|
-
* `paddingBlockStart` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
230
|
+
* `paddingBlockStart` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
231
231
|
*
|
|
232
232
|
* @default '' - meaning no override
|
|
233
233
|
*/
|
|
@@ -237,7 +237,7 @@ export interface BoxProps
|
|
|
237
237
|
*
|
|
238
238
|
* This overrides the block-end value of `paddingBlock`.
|
|
239
239
|
*
|
|
240
|
-
* `paddingBlockEnd` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
240
|
+
* `paddingBlockEnd` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
241
241
|
*
|
|
242
242
|
* @default '' - meaning no override
|
|
243
243
|
*/
|
|
@@ -249,7 +249,7 @@ export interface BoxProps
|
|
|
249
249
|
*
|
|
250
250
|
* This overrides the inline value of `padding`.
|
|
251
251
|
*
|
|
252
|
-
* `paddingInline` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
252
|
+
* `paddingInline` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
253
253
|
*
|
|
254
254
|
* @default '' - meaning no override
|
|
255
255
|
*/
|
|
@@ -259,7 +259,7 @@ export interface BoxProps
|
|
|
259
259
|
*
|
|
260
260
|
* This overrides the inline-start value of `paddingInline`.
|
|
261
261
|
*
|
|
262
|
-
* `paddingInlineStart` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
262
|
+
* `paddingInlineStart` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
263
263
|
*
|
|
264
264
|
* @default '' - meaning no override
|
|
265
265
|
*/
|
|
@@ -269,7 +269,7 @@ export interface BoxProps
|
|
|
269
269
|
*
|
|
270
270
|
* This overrides the inline-end value of `paddingInline`.
|
|
271
271
|
*
|
|
272
|
-
* `paddingInlineEnd` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
272
|
+
* `paddingInlineEnd` also accepts a [responsive value](https://shopify.dev/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
273
273
|
*
|
|
274
274
|
* @default '' - meaning no override
|
|
275
275
|
*/
|
|
@@ -174,7 +174,7 @@ export interface BoxProps
|
|
|
174
174
|
*
|
|
175
175
|
* A padding value of `auto` will use the default padding for the closest container that has had its usual padding removed.
|
|
176
176
|
*
|
|
177
|
-
* `padding` also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
177
|
+
* `padding` also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
178
178
|
*
|
|
179
179
|
* @default 'none'
|
|
180
180
|
*/
|
|
@@ -186,7 +186,7 @@ export interface BoxProps
|
|
|
186
186
|
*
|
|
187
187
|
* This overrides the block value of `padding`.
|
|
188
188
|
*
|
|
189
|
-
* `paddingBlock` also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
189
|
+
* `paddingBlock` also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
190
190
|
*
|
|
191
191
|
* @default '' - meaning no override
|
|
192
192
|
*/
|
|
@@ -196,7 +196,7 @@ export interface BoxProps
|
|
|
196
196
|
*
|
|
197
197
|
* This overrides the block-start value of `paddingBlock`.
|
|
198
198
|
*
|
|
199
|
-
* `paddingBlockStart` also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
199
|
+
* `paddingBlockStart` also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
200
200
|
*
|
|
201
201
|
* @default '' - meaning no override
|
|
202
202
|
*/
|
|
@@ -206,7 +206,7 @@ export interface BoxProps
|
|
|
206
206
|
*
|
|
207
207
|
* This overrides the block-end value of `paddingBlock`.
|
|
208
208
|
*
|
|
209
|
-
* `paddingBlockEnd` also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
209
|
+
* `paddingBlockEnd` also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
210
210
|
*
|
|
211
211
|
* @default '' - meaning no override
|
|
212
212
|
*/
|
|
@@ -218,7 +218,7 @@ export interface BoxProps
|
|
|
218
218
|
*
|
|
219
219
|
* This overrides the inline value of `padding`.
|
|
220
220
|
*
|
|
221
|
-
* `paddingInline` also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
221
|
+
* `paddingInline` also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
222
222
|
*
|
|
223
223
|
* @default '' - meaning no override
|
|
224
224
|
*/
|
|
@@ -228,7 +228,7 @@ export interface BoxProps
|
|
|
228
228
|
*
|
|
229
229
|
* This overrides the inline-start value of `paddingInline`.
|
|
230
230
|
*
|
|
231
|
-
* `paddingInlineStart` also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
231
|
+
* `paddingInlineStart` also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
232
232
|
*
|
|
233
233
|
* @default '' - meaning no override
|
|
234
234
|
*/
|
|
@@ -238,7 +238,7 @@ export interface BoxProps
|
|
|
238
238
|
*
|
|
239
239
|
* This overrides the inline-end value of `paddingInline`.
|
|
240
240
|
*
|
|
241
|
-
* `paddingInlineEnd` also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
241
|
+
* `paddingInlineEnd` also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
242
242
|
*
|
|
243
243
|
* @default '' - meaning no override
|
|
244
244
|
*/
|
|
@@ -340,25 +340,25 @@ export interface StackProps
|
|
|
340
340
|
*/
|
|
341
341
|
alignContent: AlignContentKeyword;
|
|
342
342
|
/**
|
|
343
|
-
* The spacing between children in the stack. You can provide a single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value to apply the same spacing to both axes (for example, `'large-100'`), or a pair of values (for example, `'large-100 large-500'`) to set different spacing for the block and inline axes. This property also accepts [responsive values](/docs/api/polaris/using-web-components#responsive-values) using container query syntax.
|
|
343
|
+
* The spacing between children in the stack. You can provide a single [`SpacingKeyword`](/docs/api/polaris/using-polaris-web-components#scale) value to apply the same spacing to both axes (for example, `'large-100'`), or a pair of values (for example, `'large-100 large-500'`) to set different spacing for the block and inline axes. This property also accepts [responsive values](/docs/api/polaris/using-polaris-web-components#responsive-values) using container query syntax.
|
|
344
344
|
*
|
|
345
345
|
* @default 'none'
|
|
346
346
|
*/
|
|
347
347
|
gap: ResponsiveStackProps['gap'];
|
|
348
348
|
/**
|
|
349
|
-
* The spacing between children in the block axis (vertical in horizontal writing modes). This property overrides the row spacing set by the `gap` property. You can provide a single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value (for example, `'large-100'`), or a [responsive value](/docs/api/polaris/using-web-components#responsive-values) using container query syntax.
|
|
349
|
+
* The spacing between children in the block axis (vertical in horizontal writing modes). This property overrides the row spacing set by the `gap` property. You can provide a single [`SpacingKeyword`](/docs/api/polaris/using-polaris-web-components#scale) value (for example, `'large-100'`), or a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) using container query syntax.
|
|
350
350
|
*
|
|
351
351
|
* @default '' - meaning no override
|
|
352
352
|
*/
|
|
353
353
|
rowGap: ResponsiveStackProps['rowGap'];
|
|
354
354
|
/**
|
|
355
|
-
* The spacing between children in the inline axis (horizontal in left-to-right languages). This property overrides the column spacing set by the `gap` property. You can provide a single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value (for example, `'large-100'`), or a [responsive value](/docs/api/polaris/using-web-components#responsive-values) using container query syntax.
|
|
355
|
+
* The spacing between children in the inline axis (horizontal in left-to-right languages). This property overrides the column spacing set by the `gap` property. You can provide a single [`SpacingKeyword`](/docs/api/polaris/using-polaris-web-components#scale) value (for example, `'large-100'`), or a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) using container query syntax.
|
|
356
356
|
*
|
|
357
357
|
* @default '' - meaning no override
|
|
358
358
|
*/
|
|
359
359
|
columnGap: ResponsiveStackProps['columnGap'];
|
|
360
360
|
/**
|
|
361
|
-
* The direction in which the stack's children are laid out. Use `'inline'` to arrange children horizontally (with wrapping enabled), or `'block'` to arrange them vertically (without wrapping). This property also accepts [responsive values](/docs/api/polaris/using-web-components#responsive-values) using container query syntax.
|
|
361
|
+
* The direction in which the stack's children are laid out. Use `'inline'` to arrange children horizontally (with wrapping enabled), or `'block'` to arrange them vertically (without wrapping). This property also accepts [responsive values](/docs/api/polaris/using-polaris-web-components#responsive-values) using container query syntax.
|
|
362
362
|
*
|
|
363
363
|
* @default 'block'
|
|
364
364
|
*
|
|
@@ -59,7 +59,7 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
59
59
|
*/
|
|
60
60
|
ref?: preact.Ref<TClass>;
|
|
61
61
|
/**
|
|
62
|
-
* The named slot this element should be placed in when used within a web component. Learn more about [using slots](/docs/api/
|
|
62
|
+
* The named slot this element should be placed in when used within a web component. Learn more about [using slots](/docs/api/polaris/using-polaris-web-components#slots).
|
|
63
63
|
*/
|
|
64
64
|
slot?: Lowercase<string>;
|
|
65
65
|
}
|
|
@@ -5510,7 +5510,7 @@ export interface BoxProps
|
|
|
5510
5510
|
*
|
|
5511
5511
|
* **Examples:** `base`, `large none`, `base large-100 base small`
|
|
5512
5512
|
*
|
|
5513
|
-
* Use `auto` to inherit padding from the nearest container with removed padding. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
5513
|
+
* Use `auto` to inherit padding from the nearest container with removed padding. Also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
5514
5514
|
*
|
|
5515
5515
|
* @default 'none'
|
|
5516
5516
|
*/
|
|
@@ -5522,7 +5522,7 @@ export interface BoxProps
|
|
|
5522
5522
|
*
|
|
5523
5523
|
* **Example:** `large none` applies `large` to the top and `none` to the bottom.
|
|
5524
5524
|
*
|
|
5525
|
-
* Overrides the block value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
5525
|
+
* Overrides the block value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
5526
5526
|
*
|
|
5527
5527
|
* @default '' - meaning no override
|
|
5528
5528
|
*/
|
|
@@ -5530,7 +5530,7 @@ export interface BoxProps
|
|
|
5530
5530
|
/**
|
|
5531
5531
|
* The block-start padding (top in horizontal writing modes).
|
|
5532
5532
|
*
|
|
5533
|
-
* Overrides the block-start value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
5533
|
+
* Overrides the block-start value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
5534
5534
|
*
|
|
5535
5535
|
* @default '' - meaning no override
|
|
5536
5536
|
*/
|
|
@@ -5538,7 +5538,7 @@ export interface BoxProps
|
|
|
5538
5538
|
/**
|
|
5539
5539
|
* The block-end padding (bottom in horizontal writing modes).
|
|
5540
5540
|
*
|
|
5541
|
-
* Overrides the block-end value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
5541
|
+
* Overrides the block-end value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
5542
5542
|
*
|
|
5543
5543
|
* @default '' - meaning no override
|
|
5544
5544
|
*/
|
|
@@ -5550,7 +5550,7 @@ export interface BoxProps
|
|
|
5550
5550
|
*
|
|
5551
5551
|
* **Example:** `large none` applies `large` to the left and `none` to the right.
|
|
5552
5552
|
*
|
|
5553
|
-
* Overrides the inline value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
5553
|
+
* Overrides the inline value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
5554
5554
|
*
|
|
5555
5555
|
* @default '' - meaning no override
|
|
5556
5556
|
*/
|
|
@@ -5558,7 +5558,7 @@ export interface BoxProps
|
|
|
5558
5558
|
/**
|
|
5559
5559
|
* The inline-start padding (left in LTR writing modes, right in RTL).
|
|
5560
5560
|
*
|
|
5561
|
-
* Overrides the inline-start value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
5561
|
+
* Overrides the inline-start value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
5562
5562
|
*
|
|
5563
5563
|
* @default '' - meaning no override
|
|
5564
5564
|
*/
|
|
@@ -5566,7 +5566,7 @@ export interface BoxProps
|
|
|
5566
5566
|
/**
|
|
5567
5567
|
* The inline-end padding (right in LTR writing modes, left in RTL).
|
|
5568
5568
|
*
|
|
5569
|
-
* Overrides the inline-end value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
5569
|
+
* Overrides the inline-end value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
|
|
5570
5570
|
*
|
|
5571
5571
|
* @default '' - meaning no override
|
|
5572
5572
|
*/
|
|
@@ -7052,9 +7052,9 @@ export interface GridProps
|
|
|
7052
7052
|
* Adjusts spacing between elements.
|
|
7053
7053
|
*
|
|
7054
7054
|
* Accepts:
|
|
7055
|
-
* - A single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value applied to both axes, such as `large-100`
|
|
7055
|
+
* - A single [`SpacingKeyword`](/docs/api/polaris/using-polaris-web-components#scale) value applied to both axes, such as `large-100`
|
|
7056
7056
|
* - A pair of values, such as `large-100 large-500`, to set the inline and block axes respectively
|
|
7057
|
-
* - A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported SpacingKeyword as a query value
|
|
7057
|
+
* - A [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported SpacingKeyword as a query value
|
|
7058
7058
|
*
|
|
7059
7059
|
* @default 'none'
|
|
7060
7060
|
*/
|
|
@@ -7063,8 +7063,8 @@ export interface GridProps
|
|
|
7063
7063
|
* s spacing between elements in the block axis. This overrides the row value of `gap`.
|
|
7064
7064
|
*
|
|
7065
7065
|
* Accepts:
|
|
7066
|
-
* - A single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value, such as `large-100`
|
|
7067
|
-
* - A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported SpacingKeyword as a query value
|
|
7066
|
+
* - A single [`SpacingKeyword`](/docs/api/polaris/using-polaris-web-components#scale) value, such as `large-100`
|
|
7067
|
+
* - A [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported SpacingKeyword as a query value
|
|
7068
7068
|
*
|
|
7069
7069
|
* @default '' - meaning no override
|
|
7070
7070
|
*/
|
|
@@ -7073,8 +7073,8 @@ export interface GridProps
|
|
|
7073
7073
|
* Adjusts spacing between elements in the inline axis. This overrides the column value of `gap`.
|
|
7074
7074
|
*
|
|
7075
7075
|
* Accepts:
|
|
7076
|
-
* - A single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value, such as `large-100`
|
|
7077
|
-
* - A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported SpacingKeyword as a query value
|
|
7076
|
+
* - A single [`SpacingKeyword`](/docs/api/polaris/using-polaris-web-components#scale) value, such as `large-100`
|
|
7077
|
+
* - A [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported SpacingKeyword as a query value
|
|
7078
7078
|
*
|
|
7079
7079
|
* @default '' - meaning no override
|
|
7080
7080
|
*/
|
|
@@ -7084,7 +7084,7 @@ export interface GridProps
|
|
|
7084
7084
|
*
|
|
7085
7085
|
* Accepts:
|
|
7086
7086
|
* - [Track sizing values](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Basic_concepts_of_grid_layout#fixed_and_flexible_track_sizes), such as `1fr auto`
|
|
7087
|
-
* - A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported track sizing values as a query value
|
|
7087
|
+
* - A [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported track sizing values as a query value
|
|
7088
7088
|
*
|
|
7089
7089
|
* @default 'none'
|
|
7090
7090
|
*/
|
|
@@ -7094,7 +7094,7 @@ export interface GridProps
|
|
|
7094
7094
|
*
|
|
7095
7095
|
* Accepts:
|
|
7096
7096
|
* - [Track sizing values](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Basic_concepts_of_grid_layout#fixed_and_flexible_track_sizes), such as `1fr auto`
|
|
7097
|
-
* - A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported track sizing values as a query value
|
|
7097
|
+
* - A [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported track sizing values as a query value
|
|
7098
7098
|
*
|
|
7099
7099
|
* @default 'none'
|
|
7100
7100
|
*/
|
|
@@ -8686,9 +8686,9 @@ export interface StackProps
|
|
|
8686
8686
|
* Adjusts spacing between elements.
|
|
8687
8687
|
*
|
|
8688
8688
|
* Accepts:
|
|
8689
|
-
* - A single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value applied to both axes, such as `large-100`
|
|
8689
|
+
* - A single [`SpacingKeyword`](/docs/api/polaris/using-polaris-web-components#scale) value applied to both axes, such as `large-100`
|
|
8690
8690
|
* - A pair of values, such as `large-100 large-500`, to set the inline and block axes respectively
|
|
8691
|
-
* - A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported SpacingKeyword as a query value
|
|
8691
|
+
* - A [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported SpacingKeyword as a query value
|
|
8692
8692
|
*
|
|
8693
8693
|
* @default 'none'
|
|
8694
8694
|
*/
|
|
@@ -8697,8 +8697,8 @@ export interface StackProps
|
|
|
8697
8697
|
* Adjusts spacing between elements in the block axis. This overrides the row value of `gap`.
|
|
8698
8698
|
*
|
|
8699
8699
|
* Accepts:
|
|
8700
|
-
* - A single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value, such as `large-100`
|
|
8701
|
-
* - A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported SpacingKeyword as a query value
|
|
8700
|
+
* - A single [`SpacingKeyword`](/docs/api/polaris/using-polaris-web-components#scale) value, such as `large-100`
|
|
8701
|
+
* - A [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported SpacingKeyword as a query value
|
|
8702
8702
|
*
|
|
8703
8703
|
* @default '' - meaning no override
|
|
8704
8704
|
*/
|
|
@@ -8707,8 +8707,8 @@ export interface StackProps
|
|
|
8707
8707
|
* Adjusts spacing between elements in the inline axis. This overrides the column value of `gap`.
|
|
8708
8708
|
*
|
|
8709
8709
|
* Accepts:
|
|
8710
|
-
* - A single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value, such as `large-100`
|
|
8711
|
-
* - A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported SpacingKeyword as a query value
|
|
8710
|
+
* - A single [`SpacingKeyword`](/docs/api/polaris/using-polaris-web-components#scale) value, such as `large-100`
|
|
8711
|
+
* - A [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported SpacingKeyword as a query value
|
|
8712
8712
|
*
|
|
8713
8713
|
* @default '' - meaning no override
|
|
8714
8714
|
*/
|
|
@@ -8718,7 +8718,7 @@ export interface StackProps
|
|
|
8718
8718
|
*
|
|
8719
8719
|
* Accepts:
|
|
8720
8720
|
* - A single value, either `inline` or `block`
|
|
8721
|
-
* - A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported direction values as a query value
|
|
8721
|
+
* - A [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported direction values as a query value
|
|
8722
8722
|
*
|
|
8723
8723
|
* @default 'block'
|
|
8724
8724
|
*
|
|
@@ -618,9 +618,6 @@ export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
618
618
|
|
|
619
619
|
/**
|
|
620
620
|
* Provides details on the buyer's progression through the checkout and lets you intercept navigation to validate data before the buyer continues.
|
|
621
|
-
*
|
|
622
|
-
* Refer to [buyer journey](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/apis/buyer-journey#examples)
|
|
623
|
-
* examples for more information.
|
|
624
621
|
*/
|
|
625
622
|
buyerJourney: BuyerJourney;
|
|
626
623
|
|
|
@@ -27,6 +27,16 @@ export interface BaseElementProps<TClass = HTMLElement> {
|
|
|
27
27
|
*/
|
|
28
28
|
slot?: Lowercase<string>;
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* The base properties for elements that have children, extending `BaseElementProps` with children support.
|
|
32
|
+
* @publicDocs
|
|
33
|
+
*/
|
|
34
|
+
export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
35
|
+
/**
|
|
36
|
+
* The child elements to render within this component.
|
|
37
|
+
*/
|
|
38
|
+
children?: preact.ComponentChildren;
|
|
39
|
+
}
|
|
30
40
|
/**
|
|
31
41
|
* An event type that narrows the `currentTarget` to the specific HTML element associated with the custom element tag. This provides type-safe event handling in callback listeners.
|
|
32
42
|
* @publicDocs
|
|
@@ -38,9 +48,7 @@ export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent e
|
|
|
38
48
|
* A typed event listener for custom element events. The listener receives a `CallbackEvent` with the correct `currentTarget` type for the associated custom element tag.
|
|
39
49
|
* @publicDocs
|
|
40
50
|
*/
|
|
41
|
-
export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap, TData = object> = (EventListener &
|
|
42
|
-
(event: CallbackEvent<TTagName, Event> & TData): void;
|
|
43
|
-
}) | null;
|
|
51
|
+
export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap, TData = object> = (EventListener & ((event: CallbackEvent<TTagName, Event> & TData) => void)) | null;
|
|
44
52
|
|
|
45
53
|
declare const tagName = "s-checkbox";
|
|
46
54
|
/** @publicDocs */
|
|
@@ -89,7 +97,7 @@ declare global {
|
|
|
89
97
|
declare module 'preact' {
|
|
90
98
|
namespace createElement.JSX {
|
|
91
99
|
interface IntrinsicElements {
|
|
92
|
-
[tagName]: CheckboxProps &
|
|
100
|
+
[tagName]: CheckboxProps & BaseElementPropsWithChildren<CheckboxElement>;
|
|
93
101
|
}
|
|
94
102
|
}
|
|
95
103
|
}
|