@shopify/ui-extensions 2025.10.0-rc.4 → 2025.10.0-rc.5

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.
Files changed (197) hide show
  1. package/build/ts/docs/shared/components/QueryContainer.d.ts +4 -0
  2. package/build/ts/docs/shared/components/QueryContainer.d.ts.map +1 -0
  3. package/build/ts/surfaces/admin/api/should-render/should-render.doc.d.ts.map +1 -1
  4. package/build/ts/surfaces/admin/components/AdminAction.d.ts +1 -1
  5. package/build/ts/surfaces/admin/components/AdminBlock.d.ts +1 -1
  6. package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  7. package/build/ts/surfaces/admin/components/Badge.d.ts +17 -6
  8. package/build/ts/surfaces/admin/components/Banner.d.ts +17 -6
  9. package/build/ts/surfaces/admin/components/Box.d.ts +28 -7
  10. package/build/ts/surfaces/admin/components/Button.d.ts +16 -6
  11. package/build/ts/surfaces/admin/components/Checkbox.d.ts +17 -2
  12. package/build/ts/surfaces/admin/components/Choice.d.ts +17 -2
  13. package/build/ts/surfaces/admin/components/ChoiceList.d.ts +17 -6
  14. package/build/ts/surfaces/admin/components/Clickable.d.ts +28 -7
  15. package/build/ts/surfaces/admin/components/DatePicker.d.ts +11 -5
  16. package/build/ts/surfaces/admin/components/Divider.d.ts +12 -5
  17. package/build/ts/surfaces/admin/components/EmailField.d.ts +11 -5
  18. package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
  19. package/build/ts/surfaces/admin/components/Grid.d.ts +28 -7
  20. package/build/ts/surfaces/admin/components/GridItem.d.ts +29 -7
  21. package/build/ts/surfaces/admin/components/Heading.d.ts +17 -6
  22. package/build/ts/surfaces/admin/components/Icon.d.ts +12 -5
  23. package/build/ts/surfaces/admin/components/Image.d.ts +22 -6
  24. package/build/ts/surfaces/admin/components/Link.d.ts +16 -6
  25. package/build/ts/surfaces/admin/components/ListItem.d.ts +18 -6
  26. package/build/ts/surfaces/admin/components/MoneyField.d.ts +11 -6
  27. package/build/ts/surfaces/admin/components/NumberField.d.ts +11 -5
  28. package/build/ts/surfaces/admin/components/Option.d.ts +17 -5
  29. package/build/ts/surfaces/admin/components/OptionGroup.d.ts +18 -5
  30. package/build/ts/surfaces/admin/components/OrderedList.d.ts +18 -6
  31. package/build/ts/surfaces/admin/components/Page.d.ts +20 -5
  32. package/build/ts/surfaces/admin/components/Paragraph.d.ts +18 -6
  33. package/build/ts/surfaces/admin/components/PasswordField.d.ts +11 -5
  34. package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts +4 -0
  35. package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts.map +1 -0
  36. package/build/ts/surfaces/admin/components/QueryContainer.d.ts +106 -0
  37. package/build/ts/surfaces/admin/components/SearchField.d.ts +14 -6
  38. package/build/ts/surfaces/admin/components/Section.d.ts +17 -6
  39. package/build/ts/surfaces/admin/components/Select.d.ts +16 -6
  40. package/build/ts/surfaces/admin/components/Spinner.d.ts +12 -2
  41. package/build/ts/surfaces/admin/components/Stack.d.ts +28 -7
  42. package/build/ts/surfaces/admin/components/Switch.d.ts +11 -2
  43. package/build/ts/surfaces/admin/components/Table.d.ts +17 -6
  44. package/build/ts/surfaces/admin/components/TableBody.d.ts +18 -6
  45. package/build/ts/surfaces/admin/components/TableCell.d.ts +18 -6
  46. package/build/ts/surfaces/admin/components/TableHeader.d.ts +18 -6
  47. package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +18 -6
  48. package/build/ts/surfaces/admin/components/TableRow.d.ts +18 -6
  49. package/build/ts/surfaces/admin/components/Text.d.ts +17 -6
  50. package/build/ts/surfaces/admin/components/TextArea.d.ts +11 -5
  51. package/build/ts/surfaces/admin/components/TextField.d.ts +13 -5
  52. package/build/ts/surfaces/admin/components/URLField.d.ts +11 -5
  53. package/build/ts/surfaces/admin/components/UnorderedList.d.ts +18 -6
  54. package/build/ts/surfaces/admin/components/shared.d.ts +34 -44
  55. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +589 -219
  56. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +589 -219
  57. package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +589 -219
  58. package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +589 -219
  59. package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +589 -219
  60. package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +589 -219
  61. package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +589 -219
  62. package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +589 -219
  63. package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +589 -219
  64. package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +589 -219
  65. package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +589 -219
  66. package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +589 -219
  67. package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +589 -219
  68. package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +589 -219
  69. package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +589 -219
  70. package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +589 -219
  71. package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +589 -219
  72. package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +589 -219
  73. package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +589 -219
  74. package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +589 -219
  75. package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +589 -219
  76. package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +589 -219
  77. package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +589 -219
  78. package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +589 -219
  79. package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +589 -219
  80. package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +589 -219
  81. package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +589 -219
  82. package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +589 -219
  83. package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +589 -219
  84. package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +589 -219
  85. package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +589 -219
  86. package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +589 -219
  87. package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +589 -219
  88. package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +589 -219
  89. package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +589 -219
  90. package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +589 -219
  91. package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +589 -219
  92. package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +589 -219
  93. package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +589 -219
  94. package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +589 -219
  95. package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +589 -219
  96. package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +589 -219
  97. package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +589 -219
  98. package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +589 -219
  99. package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +589 -219
  100. package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +589 -219
  101. package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +589 -219
  102. package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +589 -219
  103. package/build/ts/surfaces/customer-account/api/docs.d.ts +1 -1
  104. package/build/ts/surfaces/customer-account/api/docs.d.ts.map +1 -1
  105. package/build/ts/surfaces/customer-account/api/shared.d.ts +0 -6
  106. package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
  107. package/build/ts/surfaces/customer-account/components/CustomerAccountAction.d.ts +4 -5
  108. package/build/ts/surfaces/customer-account/components/ImageGroup.d.ts +4 -4
  109. package/build/ts/surfaces/customer-account/components/Page.d.ts +3 -5
  110. package/build/ts/surfaces/customer-account/components/shared.d.ts +11 -0
  111. package/build/ts/surfaces/customer-account/components/shared.d.ts.map +1 -1
  112. package/build/ts/surfaces/customer-account/components/shared.ts +17 -0
  113. package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +6 -17
  114. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +6 -17
  115. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +6 -17
  116. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +6 -17
  117. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +6 -17
  118. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +6 -17
  119. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +6 -17
  120. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +6 -17
  121. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +6 -17
  122. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +6 -17
  123. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +6 -17
  124. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +6 -17
  125. package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +6 -17
  126. package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +6 -17
  127. package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +6 -17
  128. package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +6 -17
  129. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +6 -17
  130. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +6 -17
  131. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +6 -17
  132. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +6 -17
  133. package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +6 -17
  134. package/build/tsconfig.tsbuildinfo +1 -1
  135. package/package.json +1 -1
  136. package/src/docs/shared/components/QueryContainer.ts +12 -0
  137. package/src/surfaces/admin/components/AdminAction.d.ts +1 -1
  138. package/src/surfaces/admin/components/AdminBlock.d.ts +1 -1
  139. package/src/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  140. package/src/surfaces/admin/components/Badge.d.ts +17 -6
  141. package/src/surfaces/admin/components/Banner.d.ts +17 -6
  142. package/src/surfaces/admin/components/Box.d.ts +28 -7
  143. package/src/surfaces/admin/components/Button.d.ts +16 -6
  144. package/src/surfaces/admin/components/Checkbox.d.ts +17 -2
  145. package/src/surfaces/admin/components/Choice.d.ts +17 -2
  146. package/src/surfaces/admin/components/ChoiceList.d.ts +17 -6
  147. package/src/surfaces/admin/components/Clickable.d.ts +28 -7
  148. package/src/surfaces/admin/components/DatePicker.d.ts +11 -5
  149. package/src/surfaces/admin/components/Divider.d.ts +12 -5
  150. package/src/surfaces/admin/components/EmailField.d.ts +11 -5
  151. package/src/surfaces/admin/components/Form.d.ts +1 -1
  152. package/src/surfaces/admin/components/Grid.d.ts +28 -7
  153. package/src/surfaces/admin/components/GridItem.d.ts +29 -7
  154. package/src/surfaces/admin/components/Heading.d.ts +17 -6
  155. package/src/surfaces/admin/components/Icon.d.ts +12 -5
  156. package/src/surfaces/admin/components/Image.d.ts +22 -6
  157. package/src/surfaces/admin/components/Link.d.ts +16 -6
  158. package/src/surfaces/admin/components/ListItem.d.ts +18 -6
  159. package/src/surfaces/admin/components/MoneyField.d.ts +11 -6
  160. package/src/surfaces/admin/components/NumberField.d.ts +11 -5
  161. package/src/surfaces/admin/components/Option.d.ts +17 -5
  162. package/src/surfaces/admin/components/OptionGroup.d.ts +18 -5
  163. package/src/surfaces/admin/components/OrderedList.d.ts +18 -6
  164. package/src/surfaces/admin/components/Page.d.ts +20 -5
  165. package/src/surfaces/admin/components/Paragraph.d.ts +18 -6
  166. package/src/surfaces/admin/components/PasswordField.d.ts +11 -5
  167. package/src/surfaces/admin/components/QueryContainer/examples/default.html +5 -0
  168. package/src/surfaces/admin/components/QueryContainer.d.ts +106 -0
  169. package/src/surfaces/admin/components/SearchField.d.ts +14 -6
  170. package/src/surfaces/admin/components/Section.d.ts +17 -6
  171. package/src/surfaces/admin/components/Select.d.ts +16 -6
  172. package/src/surfaces/admin/components/Spinner.d.ts +12 -2
  173. package/src/surfaces/admin/components/Stack.d.ts +28 -7
  174. package/src/surfaces/admin/components/Switch.d.ts +11 -2
  175. package/src/surfaces/admin/components/Table.d.ts +17 -6
  176. package/src/surfaces/admin/components/TableBody.d.ts +18 -6
  177. package/src/surfaces/admin/components/TableCell.d.ts +18 -6
  178. package/src/surfaces/admin/components/TableHeader.d.ts +18 -6
  179. package/src/surfaces/admin/components/TableHeaderRow.d.ts +18 -6
  180. package/src/surfaces/admin/components/TableRow.d.ts +18 -6
  181. package/src/surfaces/admin/components/Text.d.ts +17 -6
  182. package/src/surfaces/admin/components/TextArea.d.ts +11 -5
  183. package/src/surfaces/admin/components/TextField.d.ts +13 -5
  184. package/src/surfaces/admin/components/URLField.d.ts +11 -5
  185. package/src/surfaces/admin/components/UnorderedList.d.ts +18 -6
  186. package/src/surfaces/admin/components/shared.d.ts +34 -44
  187. package/src/surfaces/admin/components.d.ts +333 -513
  188. package/src/surfaces/customer-account/api/docs.ts +1 -1
  189. package/src/surfaces/customer-account/api/shared.ts +0 -6
  190. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-js.example.ts +1 -1
  191. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-preact.example.tsx +1 -1
  192. package/src/surfaces/customer-account/components/CustomerAccountAction.d.ts +4 -5
  193. package/src/surfaces/customer-account/components/ImageGroup.d.ts +4 -4
  194. package/src/surfaces/customer-account/components/Page/examples/basic-Page-js.example.ts +4 -4
  195. package/src/surfaces/customer-account/components/Page/examples/basic-Page-preact.example.tsx +4 -4
  196. package/src/surfaces/customer-account/components/Page.d.ts +3 -5
  197. package/src/surfaces/customer-account/components/shared.ts +17 -0
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -92,6 +92,15 @@ export interface FieldReactProps<T extends keyof HTMLElementTagNameMap> {
92
92
  onFocus?: ((event: CallbackEvent<T>) => void) | null;
93
93
  onBlur?: ((event: CallbackEvent<T>) => void) | null;
94
94
  }
95
+ /** Used when an element does not have children. */
96
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
97
+ /** Assigns a unique key to this element. */
98
+ key?: preact.Key;
99
+ /** Assigns a ref (generally from `useRef()`) to this element. */
100
+ ref?: preact.Ref<TClass>;
101
+ /** Assigns this element to a parent's slot. */
102
+ slot?: Lowercase<string>;
103
+ }
95
104
 
96
105
  declare const internals: unique symbol;
97
106
  export type PreactInputProps = Required<
@@ -213,12 +222,9 @@ declare global {
213
222
  }
214
223
  }
215
224
  declare module 'preact' {
216
- interface BaseProps {
217
- slot?: Lowercase<string>;
218
- }
219
225
  namespace createElement.JSX {
220
226
  interface IntrinsicElements {
221
- [tagName]: TextAreaJSXProps & BaseProps;
227
+ [tagName]: TextAreaJSXProps & PreactBaseElementProps<TextArea>;
222
228
  }
223
229
  }
224
230
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -88,6 +88,15 @@ export interface FieldReactProps<T extends keyof HTMLElementTagNameMap> {
88
88
  onFocus?: ((event: CallbackEvent<T>) => void) | null;
89
89
  onBlur?: ((event: CallbackEvent<T>) => void) | null;
90
90
  }
91
+ /** Used when an element does not have children. */
92
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
93
+ /** Assigns a unique key to this element. */
94
+ key?: preact.Key;
95
+ /** Assigns a ref (generally from `useRef()`) to this element. */
96
+ ref?: preact.Ref<TClass>;
97
+ /** Assigns this element to a parent's slot. */
98
+ slot?: Lowercase<string>;
99
+ }
91
100
 
92
101
  declare const internals: unique symbol;
93
102
  export type PreactInputProps = Required<
@@ -190,6 +199,7 @@ declare class PreactFieldElement<Autocomplete extends string = string>
190
199
  }
191
200
 
192
201
  export type TextFieldProps = PreactFieldProps<
202
+ /** @default 'on' */
193
203
  Required<TextFieldProps$1>['autocomplete']
194
204
  > &
195
205
  Required<
@@ -216,12 +226,10 @@ declare global {
216
226
  }
217
227
  }
218
228
  declare module 'preact' {
219
- interface BaseProps {
220
- slot?: Lowercase<string>;
221
- }
222
229
  namespace createElement.JSX {
223
230
  interface IntrinsicElements {
224
- [tagName]: Omit<TextFieldJSXProps, 'accessory'> & BaseProps;
231
+ [tagName]: Omit<TextFieldJSXProps, 'accessory'> &
232
+ PreactBaseElementProps<TextField>;
225
233
  }
226
234
  }
227
235
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -92,6 +92,15 @@ export interface FieldReactProps<T extends keyof HTMLElementTagNameMap> {
92
92
  onFocus?: ((event: CallbackEvent<T>) => void) | null;
93
93
  onBlur?: ((event: CallbackEvent<T>) => void) | null;
94
94
  }
95
+ /** Used when an element does not have children. */
96
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
97
+ /** Assigns a unique key to this element. */
98
+ key?: preact.Key;
99
+ /** Assigns a ref (generally from `useRef()`) to this element. */
100
+ ref?: preact.Ref<TClass>;
101
+ /** Assigns this element to a parent's slot. */
102
+ slot?: Lowercase<string>;
103
+ }
95
104
 
96
105
  declare const internals: unique symbol;
97
106
  export type PreactInputProps = Required<
@@ -213,12 +222,9 @@ declare global {
213
222
  }
214
223
  }
215
224
  declare module 'preact' {
216
- interface BaseProps {
217
- slot?: Lowercase<string>;
218
- }
219
225
  namespace createElement.JSX {
220
226
  interface IntrinsicElements {
221
- [tagName]: URLFieldJSXProps & BaseProps;
227
+ [tagName]: URLFieldJSXProps & PreactBaseElementProps<URLField>;
222
228
  }
223
229
  }
224
230
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -69,6 +69,21 @@ declare abstract class PreactCustomElement extends BaseClass {
69
69
  click({sourceEvent}?: ClickOptions): void;
70
70
  }
71
71
 
72
+ /** Used when an element does not have children. */
73
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
74
+ /** Assigns a unique key to this element. */
75
+ key?: preact.Key;
76
+ /** Assigns a ref (generally from `useRef()`) to this element. */
77
+ ref?: preact.Ref<TClass>;
78
+ /** Assigns this element to a parent's slot. */
79
+ slot?: Lowercase<string>;
80
+ }
81
+ /** Used when an element has children. */
82
+ export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
83
+ extends PreactBaseElementProps<TClass> {
84
+ children?: preact.ComponentChildren;
85
+ }
86
+
72
87
  declare class UnorderedList
73
88
  extends PreactCustomElement
74
89
  implements UnorderedListProps
@@ -81,13 +96,10 @@ declare global {
81
96
  }
82
97
  }
83
98
  declare module 'preact' {
84
- interface BaseProps {
85
- children?: preact.ComponentChildren;
86
- slot?: Lowercase<string>;
87
- }
88
99
  namespace createElement.JSX {
89
100
  interface IntrinsicElements {
90
- [tagName]: UnorderedListJSXProps & BaseProps;
101
+ [tagName]: UnorderedListJSXProps &
102
+ PreactBaseElementPropsWithChildren<UnorderedList>;
91
103
  }
92
104
  }
93
105
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.0.0 **/
1
+ /** VERSION: 1.1.0 **/
2
2
 
3
3
  /* eslint-disable @typescript-eslint/ban-types */
4
4
 
@@ -9,6 +9,12 @@
9
9
  * https://github.com/Shopify/ui-api-design/issues/139
10
10
  */
11
11
  export type ComponentChildren = any;
12
+ export interface GlobalProps {
13
+ /**
14
+ * A unique identifier for the element.
15
+ */
16
+ id?: string;
17
+ }
12
18
  export type SizeKeyword =
13
19
  | 'small-500'
14
20
  | 'small-400'
@@ -24,12 +30,6 @@ export type SizeKeyword =
24
30
  | 'large-400'
25
31
  | 'large-500';
26
32
  export type ColorKeyword = 'subdued' | 'base' | 'strong';
27
- export interface GlobalProps {
28
- /**
29
- * A unique identifier for the element.
30
- */
31
- id?: string;
32
- }
33
33
  export type BackgroundColorKeyword = 'transparent' | ColorKeyword;
34
34
  export interface BackgroundProps {
35
35
  /**
@@ -642,34 +642,7 @@ export interface ActionSlots {
642
642
  */
643
643
  secondaryActions?: ComponentChildren;
644
644
  }
645
- /**
646
- * Used for Container Query-related props.
647
- */
648
- export interface ContainerProps {
649
- /**
650
- * The name of the container used for Container Queries.
651
- *
652
- * @see https://developer.mozilla.org/en-US/docs/Web/CSS/container-name
653
- *
654
- * @default ''
655
- *
656
- * @implementation All components that implement this interface must put a containerName of `s-default` on the root element of that component, regardless of the value of `containerType`.
657
- * The developer-supplied containerName here would be in addition to the above-mentioned containerName.
658
- */
659
- containerName?: string;
660
- /**
661
- * The type of container used for Container Queries.
662
- *
663
- * @see https://developer.mozilla.org/en-US/docs/Web/CSS/container-type
664
- *
665
- * - `normal`: The element is not a query container for any container size queries.
666
- * - `inline-size`: Establishes a query container for dimensional queries on the inline axis of the container. Applies layout, style, and inline-size containment to the element.
667
- *
668
- * @default 'normal'
669
- */
670
- containerType?: 'normal' | 'inline-size';
671
- }
672
- interface BannerProps$1 extends GlobalProps, ActionSlots, ContainerProps {
645
+ interface BannerProps$1 extends GlobalProps, ActionSlots {
673
646
  /**
674
647
  * The title of the banner.
675
648
  *
@@ -1159,8 +1132,7 @@ export interface BaseBoxProps
1159
1132
  SizingProps,
1160
1133
  PaddingProps,
1161
1134
  BorderProps,
1162
- OverflowProps,
1163
- ContainerProps {
1135
+ OverflowProps {
1164
1136
  /**
1165
1137
  * The content of the Box.
1166
1138
  */
@@ -2260,8 +2232,7 @@ export interface BlockTypographyProps {
2260
2232
  interface HeadingProps$1
2261
2233
  extends GlobalProps,
2262
2234
  AccessibilityVisibilityProps,
2263
- BlockTypographyProps,
2264
- ContainerProps {
2235
+ BlockTypographyProps {
2265
2236
  /**
2266
2237
  * The content of the Heading.
2267
2238
  */
@@ -2692,7 +2663,7 @@ interface OptionGroupProps$1 extends GlobalProps {
2692
2663
  children?: ComponentChildren;
2693
2664
  }
2694
2665
  interface OrderedListProps$1 extends GlobalProps {}
2695
- interface PageProps$1 extends GlobalProps, ContainerProps {
2666
+ interface PageProps$1 extends GlobalProps {
2696
2667
  /**
2697
2668
  * The content of the Page.
2698
2669
  */
@@ -2737,8 +2708,7 @@ interface ParagraphProps$1
2737
2708
  extends GlobalProps,
2738
2709
  BaseTypographyProps,
2739
2710
  BlockTypographyProps,
2740
- AccessibilityVisibilityProps,
2741
- ContainerProps {
2711
+ AccessibilityVisibilityProps {
2742
2712
  /**
2743
2713
  * The content of the Text.
2744
2714
  */
@@ -2779,7 +2749,27 @@ export type PasswordAutocompleteField = ExtractStrict<
2779
2749
  AnyAutocompleteField,
2780
2750
  'new-password' | 'current-password'
2781
2751
  >;
2782
- interface SectionProps$1 extends GlobalProps, ContainerProps {
2752
+ interface QueryContainerProps$1 extends GlobalProps {
2753
+ /**
2754
+ * The content of the container.
2755
+ */
2756
+ children?: ComponentChildren;
2757
+ /**
2758
+ * The name of the container, which can be used in your container queries to target this container specifically.
2759
+ *
2760
+ * We place the container name of `s-default` on every container. Because of this, it is not required to add a `containerName` identifier in your queries. For example, a `@container (inline-size <= 300px) none, auto` query is equivalent to `@container s-default (inline-size <= 300px) none, auto`.
2761
+ *
2762
+ * Any value set in `containerName` will be set alongside alongside `s-default`. For example, `containerName="my-container-name"` will result in a value of `s-default my-container-name` set on the `container-name` CSS property of the rendered HTML.
2763
+ *
2764
+ * @default ''
2765
+ *
2766
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/container-name
2767
+ *
2768
+ * @implementation You must always have a CSS `container-name` of `s-default` for this component.
2769
+ */
2770
+ containerName?: string;
2771
+ }
2772
+ interface SectionProps$1 extends GlobalProps {
2783
2773
  /**
2784
2774
  * The content of the Section.
2785
2775
  */
@@ -2914,7 +2904,7 @@ export interface PaginationProps {
2914
2904
  */
2915
2905
  loading?: boolean;
2916
2906
  }
2917
- interface TableProps$1 extends GlobalProps, PaginationProps, ContainerProps {
2907
+ interface TableProps$1 extends GlobalProps, PaginationProps {
2918
2908
  /**
2919
2909
  * The content of the Table.
2920
2910
  */