@shopify/ui-extensions 2025.10.3 → 2025.10.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 (276) hide show
  1. package/build/ts/surfaces/admin/components/AdminAction.d.ts +1 -1
  2. package/build/ts/surfaces/admin/components/AdminBlock.d.ts +1 -1
  3. package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  4. package/build/ts/surfaces/admin/components/Avatar.d.ts +1 -1
  5. package/build/ts/surfaces/admin/components/Badge.d.ts +7 -2
  6. package/build/ts/surfaces/admin/components/Banner.d.ts +6 -2
  7. package/build/ts/surfaces/admin/components/Box.d.ts +7 -2
  8. package/build/ts/surfaces/admin/components/Button.d.ts +6 -2
  9. package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +6 -2
  10. package/build/ts/surfaces/admin/components/Checkbox.d.ts +1 -1
  11. package/build/ts/surfaces/admin/components/Chip.d.ts +6 -2
  12. package/build/ts/surfaces/admin/components/Choice.d.ts +10 -2
  13. package/build/ts/surfaces/admin/components/ChoiceList.d.ts +8 -2
  14. package/build/ts/surfaces/admin/components/Clickable.d.ts +6 -2
  15. package/build/ts/surfaces/admin/components/ClickableChip.d.ts +47 -4
  16. package/build/ts/surfaces/admin/components/ColorField.d.ts +1 -1
  17. package/build/ts/surfaces/admin/components/ColorPicker.d.ts +1 -1
  18. package/build/ts/surfaces/admin/components/DateField.d.ts +1 -1
  19. package/build/ts/surfaces/admin/components/DatePicker.d.ts +1 -1
  20. package/build/ts/surfaces/admin/components/Divider.d.ts +1 -1
  21. package/build/ts/surfaces/admin/components/DropZone.d.ts +183 -0
  22. package/build/ts/surfaces/admin/components/EmailField.d.ts +1 -1
  23. package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
  24. package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +1 -1
  25. package/build/ts/surfaces/admin/components/Grid.d.ts +7 -2
  26. package/build/ts/surfaces/admin/components/GridItem.d.ts +7 -2
  27. package/build/ts/surfaces/admin/components/Heading.d.ts +7 -2
  28. package/build/ts/surfaces/admin/components/Icon.d.ts +1 -1
  29. package/build/ts/surfaces/admin/components/Image.d.ts +1 -1
  30. package/build/ts/surfaces/admin/components/Link.d.ts +6 -2
  31. package/build/ts/surfaces/admin/components/ListItem.d.ts +7 -2
  32. package/build/ts/surfaces/admin/components/Menu.d.ts +9 -2
  33. package/build/ts/surfaces/admin/components/Modal.d.ts +6 -2
  34. package/build/ts/surfaces/admin/components/MoneyField.d.ts +1 -1
  35. package/build/ts/surfaces/admin/components/NumberField.d.ts +1 -1
  36. package/build/ts/surfaces/admin/components/Option.d.ts +7 -2
  37. package/build/ts/surfaces/admin/components/OptionGroup.d.ts +9 -2
  38. package/build/ts/surfaces/admin/components/OrderedList.d.ts +9 -2
  39. package/build/ts/surfaces/admin/components/Page.d.ts +6 -2
  40. package/build/ts/surfaces/admin/components/Paragraph.d.ts +7 -2
  41. package/build/ts/surfaces/admin/components/PasswordField.d.ts +1 -1
  42. package/build/ts/surfaces/admin/components/QueryContainer.d.ts +7 -2
  43. package/build/ts/surfaces/admin/components/SearchField.d.ts +1 -1
  44. package/build/ts/surfaces/admin/components/Section.d.ts +7 -2
  45. package/build/ts/surfaces/admin/components/Select.d.ts +8 -2
  46. package/build/ts/surfaces/admin/components/Spinner.d.ts +1 -1
  47. package/build/ts/surfaces/admin/components/Stack.d.ts +7 -2
  48. package/build/ts/surfaces/admin/components/StandardComponents.d.ts +1 -1
  49. package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
  50. package/build/ts/surfaces/admin/components/Switch.d.ts +1 -1
  51. package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts.map +1 -1
  52. package/build/ts/surfaces/admin/components/Table.d.ts +6 -2
  53. package/build/ts/surfaces/admin/components/TableBody.d.ts +7 -2
  54. package/build/ts/surfaces/admin/components/TableCell.d.ts +7 -2
  55. package/build/ts/surfaces/admin/components/TableHeader.d.ts +7 -2
  56. package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +7 -2
  57. package/build/ts/surfaces/admin/components/TableRow.d.ts +7 -2
  58. package/build/ts/surfaces/admin/components/Text.d.ts +7 -2
  59. package/build/ts/surfaces/admin/components/TextArea.d.ts +1 -1
  60. package/build/ts/surfaces/admin/components/TextField.d.ts +7 -2
  61. package/build/ts/surfaces/admin/components/Thumbnail.d.ts +1 -1
  62. package/build/ts/surfaces/admin/components/Tooltip.d.ts +9 -2
  63. package/build/ts/surfaces/admin/components/URLField.d.ts +1 -1
  64. package/build/ts/surfaces/admin/components/UnorderedList.d.ts +9 -2
  65. package/build/ts/surfaces/admin/components/patterns/accountConnection.ab.doc.d.ts.map +1 -1
  66. package/build/ts/surfaces/admin/components/patterns/appCard.ab.doc.d.ts.map +1 -1
  67. package/build/ts/surfaces/admin/components/patterns/calloutCard.ab.doc.d.ts.map +1 -1
  68. package/build/ts/surfaces/admin/components/patterns/emptyState.ab.doc.d.ts.map +1 -1
  69. package/build/ts/surfaces/admin/components/patterns/footerHelp.ab.doc.d.ts +4 -0
  70. package/build/ts/surfaces/admin/components/patterns/footerHelp.ab.doc.d.ts.map +1 -0
  71. package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts +2 -2
  72. package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts.map +1 -1
  73. package/build/ts/surfaces/admin/components/patterns/interstitialNav.ab.doc.d.ts.map +1 -1
  74. package/build/ts/surfaces/admin/components/patterns/mediaCard.ab.doc.d.ts.map +1 -1
  75. package/build/ts/surfaces/admin/components/patterns/metricsCard.ab.doc.d.ts.map +1 -1
  76. package/build/ts/surfaces/admin/components/patterns/resourceList.ab.doc.d.ts +4 -0
  77. package/build/ts/surfaces/admin/components/patterns/resourceList.ab.doc.d.ts.map +1 -0
  78. package/build/ts/surfaces/admin/components/patterns/setupGuide.ab.doc.d.ts.map +1 -1
  79. package/build/ts/surfaces/admin/components/shared.d.ts +31 -4
  80. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +1 -0
  81. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +1 -0
  82. package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +1 -0
  83. package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +1 -0
  84. package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +1 -0
  85. package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +1 -0
  86. package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +1 -0
  87. package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +1 -0
  88. package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +1 -0
  89. package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +1 -0
  90. package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +1 -0
  91. package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +1 -0
  92. package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +1 -0
  93. package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +1 -0
  94. package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +1 -0
  95. package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +1 -0
  96. package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +1 -0
  97. package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +1 -0
  98. package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +1 -0
  99. package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +1 -0
  100. package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +1 -0
  101. package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +1 -0
  102. package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +1 -0
  103. package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +1 -0
  104. package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +1 -0
  105. package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +1 -0
  106. package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +1 -0
  107. package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +1 -0
  108. package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +1 -0
  109. package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +1 -0
  110. package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +1 -0
  111. package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +1 -0
  112. package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +1 -0
  113. package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +1 -0
  114. package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +1 -0
  115. package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +1 -0
  116. package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +1 -0
  117. package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +1 -0
  118. package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +1 -0
  119. package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +1 -0
  120. package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +1 -0
  121. package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +1 -0
  122. package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +1 -0
  123. package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +1 -0
  124. package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +1 -0
  125. package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +1 -0
  126. package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +1 -0
  127. package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -1
  128. package/build/ts/surfaces/customer-account/components/ButtonGroup/ButtonGroup.doc.d.ts.map +1 -1
  129. package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.d.ts.map +1 -1
  130. package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts.map +1 -1
  131. package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts.map +1 -1
  132. package/build/ts/surfaces/customer-account/components/Section/Section.doc.d.ts.map +1 -1
  133. package/build/ts/surfaces/point-of-sale/components/targets/BlockExtensionComponents.d.ts +1 -1
  134. package/build/ts/surfaces/point-of-sale/components/targets/BlockExtensionComponents.d.ts.map +1 -1
  135. package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.block.render.d.ts +1 -0
  136. package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.block.render.d.ts +1 -0
  137. package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.block.render.d.ts +1 -0
  138. package/build/ts/surfaces/point-of-sale/targets/pos.order-details.block.render.d.ts +1 -0
  139. package/build/ts/surfaces/point-of-sale/targets/pos.product-details.block.render.d.ts +1 -0
  140. package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.block.render.d.ts +1 -0
  141. package/build/ts/surfaces/point-of-sale/targets/pos.return.post.block.render.d.ts +1 -0
  142. package/build/tsconfig.tsbuildinfo +1 -1
  143. package/package.json +1 -1
  144. package/src/surfaces/admin/components/AdminAction.d.ts +1 -1
  145. package/src/surfaces/admin/components/AdminBlock.d.ts +1 -1
  146. package/src/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  147. package/src/surfaces/admin/components/Avatar.d.ts +1 -1
  148. package/src/surfaces/admin/components/Badge.d.ts +7 -2
  149. package/src/surfaces/admin/components/Banner.d.ts +6 -2
  150. package/src/surfaces/admin/components/Box.d.ts +7 -2
  151. package/src/surfaces/admin/components/Button.d.ts +6 -2
  152. package/src/surfaces/admin/components/ButtonGroup.d.ts +6 -2
  153. package/src/surfaces/admin/components/Checkbox/examples/indeterminate-state.jsx +6 -6
  154. package/src/surfaces/admin/components/Checkbox/examples/validation-example.jsx +3 -3
  155. package/src/surfaces/admin/components/Checkbox.d.ts +1 -1
  156. package/src/surfaces/admin/components/Chip.d.ts +6 -2
  157. package/src/surfaces/admin/components/Choice.d.ts +10 -2
  158. package/src/surfaces/admin/components/ChoiceList/examples/validation-example.jsx +1 -1
  159. package/src/surfaces/admin/components/ChoiceList.d.ts +8 -2
  160. package/src/surfaces/admin/components/Clickable.d.ts +6 -2
  161. package/src/surfaces/admin/components/ClickableChip.d.ts +47 -4
  162. package/src/surfaces/admin/components/ColorField/examples/validation-example.jsx +4 -4
  163. package/src/surfaces/admin/components/ColorField.d.ts +1 -1
  164. package/src/surfaces/admin/components/ColorPicker.d.ts +1 -1
  165. package/src/surfaces/admin/components/DateField/examples/validation-example.jsx +3 -3
  166. package/src/surfaces/admin/components/DateField.d.ts +1 -1
  167. package/src/surfaces/admin/components/DatePicker/examples/analytics-dashboard.html +1 -1
  168. package/src/surfaces/admin/components/DatePicker/examples/analytics-dashboard.jsx +3 -3
  169. package/src/surfaces/admin/components/DatePicker/examples/form-integration.jsx +2 -2
  170. package/src/surfaces/admin/components/DatePicker.d.ts +1 -1
  171. package/src/surfaces/admin/components/Divider.d.ts +1 -1
  172. package/src/surfaces/admin/components/DropZone/examples/default.jsx +3 -3
  173. package/src/surfaces/admin/components/DropZone.d.ts +183 -0
  174. package/src/surfaces/admin/components/EmailField/examples/validation-example.jsx +3 -3
  175. package/src/surfaces/admin/components/EmailField.d.ts +1 -1
  176. package/src/surfaces/admin/components/Form.d.ts +1 -1
  177. package/src/surfaces/admin/components/FunctionSettings.d.ts +1 -1
  178. package/src/surfaces/admin/components/Grid.d.ts +7 -2
  179. package/src/surfaces/admin/components/GridItem.d.ts +7 -2
  180. package/src/surfaces/admin/components/Heading.d.ts +7 -2
  181. package/src/surfaces/admin/components/Icon.d.ts +1 -1
  182. package/src/surfaces/admin/components/Image.d.ts +1 -1
  183. package/src/surfaces/admin/components/Link.d.ts +6 -2
  184. package/src/surfaces/admin/components/ListItem.d.ts +7 -2
  185. package/src/surfaces/admin/components/Menu/examples/menu-with-links-and-disabled-items.jsx +1 -1
  186. package/src/surfaces/admin/components/Menu.d.ts +9 -2
  187. package/src/surfaces/admin/components/Modal/examples/form-modal.html +2 -3
  188. package/src/surfaces/admin/components/Modal/examples/form-modal.jsx +1 -2
  189. package/src/surfaces/admin/components/Modal.d.ts +6 -2
  190. package/src/surfaces/admin/components/MoneyField/examples/basic-field.jsx +1 -1
  191. package/src/surfaces/admin/components/MoneyField/examples/basic-usage.html +0 -1
  192. package/src/surfaces/admin/components/MoneyField/examples/basic-usage.jsx +0 -1
  193. package/src/surfaces/admin/components/MoneyField/examples/currency-formatting-with-form-integration.html +0 -3
  194. package/src/surfaces/admin/components/MoneyField/examples/currency-formatting-with-form-integration.jsx +4 -7
  195. package/src/surfaces/admin/components/MoneyField/examples/validation-example.jsx +4 -5
  196. package/src/surfaces/admin/components/MoneyField/examples/with-validation-limits.html +0 -1
  197. package/src/surfaces/admin/components/MoneyField/examples/with-validation-limits.jsx +0 -1
  198. package/src/surfaces/admin/components/MoneyField.d.ts +1 -1
  199. package/src/surfaces/admin/components/NumberField/examples/basic-usage.jsx +1 -1
  200. package/src/surfaces/admin/components/NumberField/examples/default.jsx +1 -1
  201. package/src/surfaces/admin/components/NumberField/examples/multiple-examples.jsx +4 -4
  202. package/src/surfaces/admin/components/NumberField/examples/with-prefix-and-suffix.jsx +1 -1
  203. package/src/surfaces/admin/components/NumberField.d.ts +1 -1
  204. package/src/surfaces/admin/components/Option.d.ts +7 -2
  205. package/src/surfaces/admin/components/OptionGroup.d.ts +9 -2
  206. package/src/surfaces/admin/components/OrderedList.d.ts +9 -2
  207. package/src/surfaces/admin/components/Page/examples/large-inline-size-for-wide-content.jsx +1 -1
  208. package/src/surfaces/admin/components/Page/examples/page-with-heading.jsx +1 -1
  209. package/src/surfaces/admin/components/Page/examples/small-inline-size-for-focused-content.jsx +1 -1
  210. package/src/surfaces/admin/components/Page.d.ts +6 -2
  211. package/src/surfaces/admin/components/Paragraph.d.ts +7 -2
  212. package/src/surfaces/admin/components/PasswordField/examples/in-form-layout.html +2 -3
  213. package/src/surfaces/admin/components/PasswordField/examples/in-form-layout.jsx +2 -3
  214. package/src/surfaces/admin/components/PasswordField.d.ts +1 -1
  215. package/src/surfaces/admin/components/Popover/examples/notifications.html +3 -3
  216. package/src/surfaces/admin/components/Popover/examples/notifications.jsx +3 -3
  217. package/src/surfaces/admin/components/Popover/examples/table-display-options.html +2 -2
  218. package/src/surfaces/admin/components/Popover/examples/table-display-options.jsx +3 -7
  219. package/src/surfaces/admin/components/QueryContainer.d.ts +7 -2
  220. package/src/surfaces/admin/components/SearchField.d.ts +1 -1
  221. package/src/surfaces/admin/components/Section.d.ts +7 -2
  222. package/src/surfaces/admin/components/Select/examples/default.jsx +5 -5
  223. package/src/surfaces/admin/components/Select.d.ts +8 -2
  224. package/src/surfaces/admin/components/Spinner.d.ts +1 -1
  225. package/src/surfaces/admin/components/Stack.d.ts +7 -2
  226. package/src/surfaces/admin/components/StandardComponents.ts +1 -0
  227. package/src/surfaces/admin/components/Switch.d.ts +1 -1
  228. package/src/surfaces/admin/components/Table/examples/default.html +12 -8
  229. package/src/surfaces/admin/components/Table/examples/default.jsx +13 -9
  230. package/src/surfaces/admin/components/Table/examples/full-width-product-inventory-table.html +2 -2
  231. package/src/surfaces/admin/components/Table/examples/full-width-product-inventory-table.jsx +2 -2
  232. package/src/surfaces/admin/components/Table/examples/{advanced-table-with-all-list-slot-types.html → list-variant.html} +16 -6
  233. package/src/surfaces/admin/components/Table/examples/{advanced-table-with-all-list-slot-types.jsx → list-variant.jsx} +3 -3
  234. package/src/surfaces/admin/components/Table/examples/with-loading-state.html +26 -3
  235. package/src/surfaces/admin/components/Table/examples/with-loading-state.jsx +27 -4
  236. package/src/surfaces/admin/components/Table/examples/with-pagination.html +1 -1
  237. package/src/surfaces/admin/components/Table/examples/with-pagination.jsx +1 -1
  238. package/src/surfaces/admin/components/Table.d.ts +6 -2
  239. package/src/surfaces/admin/components/TableBody.d.ts +7 -2
  240. package/src/surfaces/admin/components/TableCell.d.ts +7 -2
  241. package/src/surfaces/admin/components/TableHeader.d.ts +7 -2
  242. package/src/surfaces/admin/components/TableHeaderRow.d.ts +7 -2
  243. package/src/surfaces/admin/components/TableRow.d.ts +7 -2
  244. package/src/surfaces/admin/components/Text.d.ts +7 -2
  245. package/src/surfaces/admin/components/TextArea.d.ts +1 -1
  246. package/src/surfaces/admin/components/TextField/examples/with-accessory.html +2 -4
  247. package/src/surfaces/admin/components/TextField/examples/with-accessory.jsx +6 -6
  248. package/src/surfaces/admin/components/TextField.d.ts +7 -2
  249. package/src/surfaces/admin/components/Thumbnail.d.ts +1 -1
  250. package/src/surfaces/admin/components/Tooltip.d.ts +9 -2
  251. package/src/surfaces/admin/components/URLField.d.ts +1 -1
  252. package/src/surfaces/admin/components/UnorderedList.d.ts +9 -2
  253. package/src/surfaces/admin/components/patterns/examples/appCard.html +0 -1
  254. package/src/surfaces/admin/components/patterns/examples/appCard.jsx +0 -1
  255. package/src/surfaces/admin/components/patterns/examples/details.jsx +20 -28
  256. package/src/surfaces/admin/components/patterns/examples/emptyState.html +1 -0
  257. package/src/surfaces/admin/components/patterns/examples/emptyState.jsx +1 -0
  258. package/src/surfaces/admin/components/patterns/examples/footerHelp.html +3 -0
  259. package/src/surfaces/admin/components/patterns/examples/footerHelp.jsx +3 -0
  260. package/src/surfaces/admin/components/patterns/examples/homepage.jsx +22 -35
  261. package/src/surfaces/admin/components/patterns/examples/index.html +1 -0
  262. package/src/surfaces/admin/components/patterns/examples/index.jsx +7 -14
  263. package/src/surfaces/admin/components/patterns/examples/indexTable.html +3 -0
  264. package/src/surfaces/admin/components/patterns/examples/indexTable.jsx +3 -0
  265. package/src/surfaces/admin/components/patterns/examples/mediaCard.html +1 -1
  266. package/src/surfaces/admin/components/patterns/examples/mediaCard.jsx +1 -1
  267. package/src/surfaces/admin/components/patterns/examples/metricsCard.jsx +1 -1
  268. package/src/surfaces/admin/components/patterns/examples/resourceList.html +58 -0
  269. package/src/surfaces/admin/components/patterns/examples/resourceList.jsx +58 -0
  270. package/src/surfaces/admin/components/patterns/examples/settings.jsx +11 -19
  271. package/src/surfaces/admin/components/patterns/examples/setupGuide.jsx +1 -3
  272. package/src/surfaces/admin/components/patterns/index.ab.doc.ts +6 -6
  273. package/src/surfaces/admin/components/shared.d.ts +31 -4
  274. package/src/surfaces/admin/components/using-polaris-web-components/examples/html-forms.html +1 -1
  275. package/src/surfaces/admin/components.d.ts +48 -11
  276. package/src/surfaces/point-of-sale/components/targets/BlockExtensionComponents.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/ui-extensions",
3
- "version": "2025.10.3",
3
+ "version": "2025.10.5",
4
4
  "scripts": {
5
5
  "docs:admin": "node ./docs/surfaces/admin/build-docs.mjs",
6
6
  "docs:checkout": "bash ./docs/surfaces/checkout/build-docs.sh",
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -139,7 +139,12 @@ declare module 'preact' {
139
139
  declare const tagName = 's-badge';
140
140
  export interface BadgeJSXProps
141
141
  extends Partial<BadgeProps>,
142
- Pick<BadgeProps$1, 'id'> {}
142
+ Pick<BadgeProps$1, 'id' | 'children'> {
143
+ /**
144
+ * The content of the Badge.
145
+ */
146
+ children?: ComponentChildren;
147
+ }
143
148
 
144
149
  export {Badge};
145
150
  export type {BadgeJSXProps};
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -129,7 +129,11 @@ declare module 'preact' {
129
129
  declare const tagName = 's-banner';
130
130
  export interface BannerJSXProps
131
131
  extends Partial<BannerProps>,
132
- Pick<BannerProps$1, 'id'> {
132
+ Pick<BannerProps$1, 'id' | 'children'> {
133
+ /**
134
+ * The content of the Banner.
135
+ */
136
+ children?: ComponentChildren;
133
137
  /**
134
138
  * The secondary actions to display at the bottom of the Banner.
135
139
  *
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -382,7 +382,12 @@ declare module 'preact' {
382
382
  declare const tagName = 's-box';
383
383
  export interface BoxJSXProps
384
384
  extends Partial<BoxProps>,
385
- Pick<BoxProps$1, 'id'> {}
385
+ Pick<BoxProps$1, 'id' | 'children'> {
386
+ /**
387
+ * The content of the Box.
388
+ */
389
+ children?: ComponentChildren;
390
+ }
386
391
 
387
392
  export {Box};
388
393
  export type {BoxJSXProps};
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -208,7 +208,11 @@ declare module 'preact' {
208
208
  declare const tagName = 's-button';
209
209
  export interface ButtonJSXProps
210
210
  extends Partial<ButtonProps>,
211
- Pick<ButtonProps$1, 'id'> {
211
+ Pick<ButtonProps$1, 'id' | 'children'> {
212
+ /**
213
+ * The content of the Button.
214
+ */
215
+ children?: ComponentChildren;
212
216
  onClick?: ((event: CallbackEvent<typeof tagName>) => void) | null;
213
217
  onFocus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
214
218
  onBlur?: ((event: CallbackEvent<typeof tagName>) => void) | null;
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -114,7 +114,11 @@ declare module 'preact' {
114
114
  declare const tagName = 's-button-group';
115
115
  export interface ButtonGroupJSXProps
116
116
  extends Partial<ButtonGroupProps>,
117
- Pick<ButtonGroupProps$1, 'id'> {
117
+ Pick<ButtonGroupProps$1, 'id' | 'children'> {
118
+ /**
119
+ * The content of the ButtonGroup.
120
+ */
121
+ children?: ComponentChildren;
118
122
  /**
119
123
  * The primary action button for the group.
120
124
  * Accepts a single Button element with a `variant` of `primary`.
@@ -1,21 +1,21 @@
1
1
  const [selectedItems, setSelectedItems] = useState([]);
2
2
  const items = ['Item 1', 'Item 2', 'Item 3'];
3
3
 
4
- const toggleItem = (value, checked) => setSelectedItems(prev => checked ? [...prev, value] : prev.filter(item => item !== value));
4
+ const toggleItem = (value, checked) => setSelectedItems(checked ? [...selectedItems, value] : selectedItems.filter(item => item !== value));
5
5
  const toggleAll = (checked) => setSelectedItems(checked ? items : []);
6
6
  const isSelected = (item) => selectedItems.includes(item);
7
7
 
8
8
  return (
9
9
  <s-stack gap="small">
10
- <s-checkbox
11
- label="Select all items"
12
- indeterminate={selectedItems.length > 0 && selectedItems.length < items.length}
10
+ <s-checkbox
11
+ label="Select all items"
12
+ indeterminate={selectedItems.length !== 0 && selectedItems.length !== items.length}
13
13
  checked={selectedItems.length === items.length}
14
- onChange={e => toggleAll(e.target.checked)}
14
+ onChange={e => toggleAll(e.currentTarget.checked)}
15
15
  />
16
16
  <s-divider />
17
17
  {items.map(i => (
18
- <s-checkbox key={i} label={i} checked={isSelected(i)} onChange={e => toggleItem(i, e.target.checked)} />
18
+ <s-checkbox key={i} label={i} checked={isSelected(i)} onChange={e => toggleItem(i, e.currentTarget.checked)} />
19
19
  ))}
20
20
  </s-stack>
21
21
  );
@@ -4,15 +4,15 @@ const [error, setError] = useState(errorMessage);
4
4
 
5
5
  return (
6
6
  <s-section>
7
- <s-stack gap="base" inlineAlign="start">
7
+ <s-stack gap="base" justifyContent="start">
8
8
  <s-text-field label="Name" />
9
9
  <s-checkbox
10
10
  label="I agree to the terms"
11
11
  checked={checked}
12
12
  error={error}
13
13
  onChange={(e) => {
14
- setChecked(e.target.checked);
15
- setError(e.target.checked ? '' : errorMessage);
14
+ setChecked(e.currentTarget.checked);
15
+ setError(e.currentTarget.checked ? '' : errorMessage);
16
16
  }}
17
17
  />
18
18
  </s-stack>
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -108,7 +108,11 @@ declare module 'preact' {
108
108
  declare const tagName = 's-chip';
109
109
  export interface ChipJSXProps
110
110
  extends Partial<ChipProps>,
111
- Pick<ChipProps$1, 'id'> {
111
+ Pick<ChipProps$1, 'id' | 'children'> {
112
+ /**
113
+ * The content of the Chip.
114
+ */
115
+ children?: ComponentChildren;
112
116
  /**
113
117
  * The graphic to display in the chip.
114
118
  *
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -125,7 +125,15 @@ declare module 'preact' {
125
125
  declare const tagName = 's-choice';
126
126
  export interface ChoiceJSXProps
127
127
  extends Partial<ChoiceProps>,
128
- Pick<ChoiceProps$1, 'id' | 'details'> {
128
+ Pick<ChoiceProps$1, 'id' | 'children' | 'details'> {
129
+ /**
130
+ * Content to use as the choice label.
131
+ *
132
+ * The label is produced by extracting and
133
+ * concatenating the text nodes from the provided content;
134
+ * any markup or element structure is ignored.
135
+ */
136
+ children?: ComponentChildren;
129
137
  /**
130
138
  * Additional text to provide context or guidance for the input.
131
139
  *
@@ -2,7 +2,7 @@ const [error, setError] = useState('Please select at least one option');
2
2
 
3
3
  return (
4
4
  <s-section>
5
- <s-stack gap="base" inlineAlign="start">
5
+ <s-stack gap="base" justifyContent="start">
6
6
  <s-choice-list
7
7
  label="Product visibility"
8
8
  name="visibility"
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -150,7 +150,13 @@ declare module 'preact' {
150
150
  declare const tagName = 's-choice-list';
151
151
  export interface ChoiceListJSXProps
152
152
  extends Partial<ChoiceListProps>,
153
- Pick<ChoiceListProps$1, 'id'> {
153
+ Pick<ChoiceListProps$1, 'id' | 'children'> {
154
+ /**
155
+ * The choices a user can select from.
156
+ *
157
+ * Accepts `Choice` components.
158
+ */
159
+ children?: ComponentChildren;
154
160
  onChange?: ((event: CallbackEvent<typeof tagName>) => void) | null;
155
161
  onInput?: ((event: CallbackEvent<typeof tagName>) => void) | null;
156
162
  }
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -455,7 +455,11 @@ declare module 'preact' {
455
455
  declare const tagName = 's-clickable';
456
456
  export interface ClickableJSXProps
457
457
  extends Partial<ClickableProps>,
458
- Pick<ClickableProps$1, 'id'> {
458
+ Pick<ClickableProps$1, 'id' | 'children'> {
459
+ /**
460
+ * The content of the Clickable.
461
+ */
462
+ children?: ComponentChildren;
459
463
  onClick?: ((event: CallbackEvent<typeof tagName>) => void) | null;
460
464
  onFocus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
461
465
  onBlur?: ((event: CallbackEvent<typeof tagName>) => void) | null;
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -6,7 +6,11 @@
6
6
 
7
7
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
8
8
  /// <reference lib="DOM" />
9
- import type {ComponentChildren, ClickableChipProps$1} from './shared.d.ts';
9
+ import type {
10
+ ComponentChildren,
11
+ ClickableChipProps$1,
12
+ InteractionProps,
13
+ } from './shared.d.ts';
10
14
 
11
15
  export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
12
16
  currentTarget: HTMLElementTagNameMap[T];
@@ -41,6 +45,9 @@ export interface ClickableChipProps
41
45
  | 'hidden'
42
46
  | 'href'
43
47
  | 'disabled'
48
+ | 'command'
49
+ | 'commandFor'
50
+ | 'interestFor'
44
51
  >
45
52
  > {}
46
53
 
@@ -104,8 +111,40 @@ declare abstract class PreactCustomElement extends BaseClass {
104
111
  click({sourceEvent}?: ClickOptions): void;
105
112
  }
106
113
 
114
+ export interface PreactOverlayControlProps
115
+ extends Pick<InteractionProps, 'commandFor' | 'interestFor'> {
116
+ /**
117
+ * Sets the action the [command](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#command) should take when this clickable is activated.
118
+ *
119
+ * See the documentation of particular components for the actions they support.
120
+ *
121
+ * - `--auto`: a default action for the target component.
122
+ * - `--show`: shows the target component.
123
+ * - `--hide`: hides the target component.
124
+ * - `--toggle`: toggles the target component.
125
+ *
126
+ * @default '--auto'
127
+ */
128
+ command: Extract<
129
+ InteractionProps['command'],
130
+ '--show' | '--hide' | '--toggle' | '--auto'
131
+ >;
132
+ /**
133
+ * Sets the element the [commandFor](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#commandfor) should act on when this clickable is activated.
134
+ */
135
+ commandFor: Extract<InteractionProps['commandFor'], string>;
136
+ /**
137
+ * Sets the element the [interestFor](https://open-ui.org/components/interest-invokers.explainer/#the-pitch-in-code) should act on when this clickable is activated.
138
+ */
139
+ interestFor: Extract<InteractionProps['interestFor'], string>;
140
+ }
141
+
142
+ declare const ClickableChip_base: (abstract new (
143
+ args_0: RenderImpl,
144
+ ) => PreactCustomElement & PreactOverlayControlProps) &
145
+ Pick<typeof PreactCustomElement, 'prototype' | 'observedAttributes'>;
107
146
  declare class ClickableChip
108
- extends PreactCustomElement
147
+ extends ClickableChip_base
109
148
  implements ClickableChipProps
110
149
  {
111
150
  accessor color: ClickableChipProps['color'];
@@ -136,7 +175,11 @@ declare module 'preact' {
136
175
  declare const tagName = 's-clickable-chip';
137
176
  export interface ClickableChipJSXProps
138
177
  extends Partial<ClickableChipProps>,
139
- Pick<ClickableChipProps$1, 'id'> {
178
+ Pick<ClickableChipProps$1, 'id' | 'children'> {
179
+ /**
180
+ * The content of the clickable chip.
181
+ */
182
+ children?: ComponentChildren;
140
183
  /**
141
184
  * The graphic to display in the clickable chip.
142
185
  *
@@ -3,7 +3,7 @@ const [error, setError] = useState('Please enter a valid color format');
3
3
 
4
4
  return (
5
5
  <s-section>
6
- <s-stack gap="base" inlineAlign="start">
6
+ <s-stack gap="base" justifyContent="start">
7
7
  <s-text-field label="Theme name" />
8
8
  <s-color-field
9
9
  label="Brand color"
@@ -11,9 +11,9 @@ return (
11
11
  value={color}
12
12
  error={error}
13
13
  required
14
- onChange={(e) => {
15
- setColor(e.target.value);
16
- setError(/^#([0-9A-F]{3}){1,2}$/i.test(e.target.value) ? '' : 'Please enter a valid color format');
14
+ onInput={(e) => {
15
+ setColor(e.currentTarget.value);
16
+ setError(/^#([0-9A-F]{3}){1,2}$/i.test(e.currentTarget.value) ? '' : 'Please enter a valid color format');
17
17
  }}
18
18
  />
19
19
  </s-stack>
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -3,7 +3,7 @@ const [error, setError] = useState('Event date is required');
3
3
 
4
4
  return (
5
5
  <s-section>
6
- <s-stack gap="base" inlineAlign="start">
6
+ <s-stack gap="base" justifyContent="start">
7
7
  <s-text-field label="Event name" />
8
8
  <s-date-field
9
9
  label="Event date"
@@ -11,8 +11,8 @@ return (
11
11
  error={error}
12
12
  required
13
13
  onChange={(e) => {
14
- setDate(e.target.value);
15
- setError(e.target.value ? '' : 'Event date is required');
14
+ setDate(e.currentTarget.value);
15
+ setError(e.currentTarget.value ? '' : 'Event date is required');
16
16
  }}
17
17
  />
18
18
  </s-stack>
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -13,7 +13,7 @@
13
13
  view="2025-01"
14
14
  onchange="console.log('Date range changed:', event.target.value)"
15
15
  ></s-date-picker>
16
- <s-text size="sm" id="selected-range">
16
+ <s-text id="selected-range">
17
17
  Selected range: 2025-01-01--2025-01-31
18
18
  </s-text>
19
19
  </s-stack>
@@ -26,10 +26,10 @@ return (
26
26
  view="2025-01"
27
27
  value={value}
28
28
  onChange={(event) => {
29
- console.log('Date range changed:', event.target.value);
30
- setValue(event.target.value);
29
+ console.log('Date range changed:', event.currentTarget.value);
30
+ setValue(event.currentTarget.value);
31
31
  }}
32
32
  />
33
- <s-text size="sm">Selected range: {value}</s-text>
33
+ <s-text>Selected range: {value}</s-text>
34
34
  </s-stack>
35
35
  )
@@ -14,13 +14,13 @@ return (
14
14
  label="Order number"
15
15
  placeholder="Search orders..."
16
16
  value={orderNumber}
17
- onChange={(event) => setOrderNumber(event.target.value)}
17
+ onChange={(event) => setOrderNumber(event.currentTarget.value)}
18
18
  />
19
19
  <s-date-picker
20
20
  type="range"
21
21
  name="order-date-range"
22
22
  value={dateRange}
23
- onChange={(event) => setDateRange(event.target.value)}
23
+ onChange={(event) => setDateRange(event.currentTarget.value)}
24
24
  view="2024-01"
25
25
  />
26
26
  <s-button onClick={handleApplyFilters}>Apply filters</s-button>
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -1,4 +1,4 @@
1
- /** VERSION: 1.22.1 **/
1
+ /** VERSION: 1.25.0 **/
2
2
  /* eslint-disable import/extensions */
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -3,7 +3,7 @@
3
3
  accessibilityLabel="Upload image of type jpg, png, or gif"
4
4
  accept=".jpg,.png,.gif"
5
5
  multiple
6
- onInput="console.log('onInput', event.currentTarget?.value)"
7
- onChange="console.log('onChange', event.currentTarget?.value)"
8
- onDropRejected="console.log('onDropRejected', event.currentTarget?.value)"
6
+ onInput={(event) => console.log('onInput', event.currentTarget?.value)}
7
+ onChange={(event) => console.log('onChange', event.currentTarget?.value)}
8
+ onDropRejected={(event) => console.log('onDropRejected', event.currentTarget?.value)}
9
9
  />