@shopify/ui-extensions 2025.10.0-rc.6 → 2025.10.0-rc.7

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 (253) hide show
  1. package/build/ts/docs/shared/components/Map.d.ts +4 -0
  2. package/build/ts/docs/shared/components/Map.d.ts.map +1 -0
  3. package/build/ts/docs/shared/components/MapMarker.d.ts +4 -0
  4. package/build/ts/docs/shared/components/MapMarker.d.ts.map +1 -0
  5. package/build/ts/docs/shared/components/Modal.d.ts +4 -0
  6. package/build/ts/docs/shared/components/Modal.d.ts.map +1 -0
  7. package/build/ts/docs/shared/components/Option.d.ts +4 -0
  8. package/build/ts/docs/shared/components/Option.d.ts.map +1 -0
  9. package/build/ts/docs/shared/components/PhoneField.d.ts +4 -0
  10. package/build/ts/docs/shared/components/PhoneField.d.ts.map +1 -0
  11. package/build/ts/docs/shared/components/ProductThumbnail.d.ts +4 -0
  12. package/build/ts/docs/shared/components/ProductThumbnail.d.ts.map +1 -0
  13. package/build/ts/surfaces/admin/components/patterns/details.ab.doc.d.ts +4 -0
  14. package/build/ts/surfaces/admin/components/patterns/details.ab.doc.d.ts.map +1 -0
  15. package/build/ts/surfaces/admin/components/patterns/homepage.ab.doc.d.ts +4 -0
  16. package/build/ts/surfaces/admin/components/patterns/homepage.ab.doc.d.ts.map +1 -0
  17. package/build/ts/surfaces/admin/components/patterns/index.ab.doc.d.ts +4 -0
  18. package/build/ts/surfaces/admin/components/patterns/index.ab.doc.d.ts.map +1 -0
  19. package/build/ts/surfaces/admin/components/patterns/settings.ab.doc.d.ts +4 -0
  20. package/build/ts/surfaces/admin/components/patterns/settings.ab.doc.d.ts.map +1 -0
  21. package/build/ts/surfaces/checkout/components/Abbreviation.d.ts +20 -8
  22. package/build/ts/surfaces/checkout/components/Banner/Banner.doc.d.ts.map +1 -1
  23. package/build/ts/surfaces/checkout/components/Banner.d.ts +52 -13
  24. package/build/ts/surfaces/checkout/components/Box.d.ts +20 -9
  25. package/build/ts/surfaces/checkout/components/Button/Button.doc.d.ts.map +1 -1
  26. package/build/ts/surfaces/checkout/components/Button.d.ts +39 -13
  27. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts +4 -0
  28. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts.map +1 -0
  29. package/build/ts/surfaces/checkout/components/Checkbox.d.ts +54 -0
  30. package/build/ts/surfaces/checkout/components/ClipboardItem.d.ts +36 -9
  31. package/build/ts/surfaces/checkout/components/DropZone/DropZone.doc.d.ts.map +1 -1
  32. package/build/ts/surfaces/checkout/components/DropZone.d.ts +36 -9
  33. package/build/ts/surfaces/checkout/components/EmailField/EmailField.doc.d.ts +4 -0
  34. package/build/ts/surfaces/checkout/components/EmailField/EmailField.doc.d.ts.map +1 -0
  35. package/build/ts/surfaces/checkout/components/EmailField.d.ts +69 -0
  36. package/build/ts/surfaces/checkout/components/Form.d.ts +40 -12
  37. package/build/ts/surfaces/checkout/components/Heading.d.ts +20 -8
  38. package/build/ts/surfaces/checkout/components/Icon.d.ts +22 -9
  39. package/build/ts/surfaces/checkout/components/Image.d.ts +13 -7
  40. package/build/ts/surfaces/checkout/components/Link/Link.doc.d.ts.map +1 -1
  41. package/build/ts/surfaces/checkout/components/Link.d.ts +39 -13
  42. package/build/ts/surfaces/checkout/components/ListItem.d.ts +22 -10
  43. package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts +4 -0
  44. package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts.map +1 -0
  45. package/build/ts/surfaces/checkout/components/Map.d.ts +75 -0
  46. package/build/ts/surfaces/checkout/components/MapMarker.d.ts +73 -0
  47. package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts +4 -0
  48. package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +1 -0
  49. package/build/ts/surfaces/checkout/components/Modal.d.ts +87 -0
  50. package/build/ts/surfaces/checkout/components/OrderedList.d.ts +20 -8
  51. package/build/ts/surfaces/checkout/components/Paragraph.d.ts +20 -8
  52. package/build/ts/surfaces/checkout/components/PaymentIcon.d.ts +14 -7
  53. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts +4 -0
  54. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts.map +1 -0
  55. package/build/ts/surfaces/checkout/components/PhoneField.d.ts +84 -0
  56. package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts +4 -0
  57. package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts.map +1 -0
  58. package/build/ts/surfaces/checkout/components/Progress.d.ts +14 -4
  59. package/build/ts/surfaces/checkout/components/QRCode/QRCode.doc.d.ts.map +1 -1
  60. package/build/ts/surfaces/checkout/components/QRCode.d.ts +32 -8
  61. package/build/ts/surfaces/checkout/components/Section.d.ts +20 -8
  62. package/build/ts/surfaces/checkout/components/Spinner.d.ts +14 -4
  63. package/build/ts/surfaces/checkout/components/Stack.d.ts +20 -9
  64. package/build/ts/surfaces/checkout/components/Text.d.ts +20 -8
  65. package/build/ts/surfaces/checkout/components/TextArea/TextArea.doc.d.ts +4 -0
  66. package/build/ts/surfaces/checkout/components/TextArea/TextArea.doc.d.ts.map +1 -0
  67. package/build/ts/surfaces/checkout/components/TextArea.d.ts +69 -0
  68. package/build/ts/surfaces/checkout/components/TextField/TextField.doc.d.ts.map +1 -1
  69. package/build/ts/surfaces/checkout/components/TextField.d.ts +72 -21
  70. package/build/ts/surfaces/checkout/components/Time.d.ts +20 -8
  71. package/build/ts/surfaces/checkout/components/UnorderedList.d.ts +20 -8
  72. package/build/ts/surfaces/checkout/components/components-shared.d.ts +486 -2
  73. package/build/ts/surfaces/checkout/components/components.d.ts +1000 -166
  74. package/build/ts/surfaces/checkout/shared.d.ts +1 -1
  75. package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
  76. package/build/ts/surfaces/checkout/targets/Checkout::Actions::RenderBefore.d.ts +918 -172
  77. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +918 -172
  78. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +918 -172
  79. package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +918 -172
  80. package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +918 -172
  81. package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +918 -172
  82. package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +918 -172
  83. package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +918 -172
  84. package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +863 -155
  85. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +863 -155
  86. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +863 -155
  87. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +918 -172
  88. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +918 -172
  89. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +918 -172
  90. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +918 -172
  91. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +918 -172
  92. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +918 -172
  93. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +918 -172
  94. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +918 -172
  95. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +918 -172
  96. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +918 -172
  97. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +918 -172
  98. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +918 -172
  99. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +918 -172
  100. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +918 -172
  101. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +918 -172
  102. package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +918 -172
  103. package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +918 -172
  104. package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +918 -172
  105. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +918 -172
  106. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +918 -172
  107. package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +918 -172
  108. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +918 -172
  109. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +918 -172
  110. package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +918 -172
  111. package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +863 -155
  112. package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +918 -172
  113. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +918 -172
  114. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +918 -172
  115. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +918 -172
  116. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +863 -155
  117. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +918 -172
  118. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +918 -172
  119. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +918 -172
  120. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +918 -172
  121. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +918 -172
  122. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +918 -172
  123. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +918 -172
  124. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +918 -172
  125. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +918 -172
  126. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +918 -172
  127. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +918 -172
  128. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +918 -172
  129. package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +918 -172
  130. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +918 -172
  131. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +918 -172
  132. package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +918 -172
  133. package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +918 -172
  134. package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +918 -172
  135. package/build/ts/surfaces/customer-account/components/Abbreviation.d.ts +20 -8
  136. package/build/ts/surfaces/customer-account/components/Banner.d.ts +52 -13
  137. package/build/ts/surfaces/customer-account/components/Box.d.ts +20 -9
  138. package/build/ts/surfaces/customer-account/components/Button.d.ts +39 -13
  139. package/build/ts/surfaces/customer-account/components/Checkbox.d.ts +54 -0
  140. package/build/ts/surfaces/customer-account/components/ClipboardItem.d.ts +36 -9
  141. package/build/ts/surfaces/customer-account/components/DropZone.d.ts +36 -9
  142. package/build/ts/surfaces/customer-account/components/EmailField.d.ts +69 -0
  143. package/build/ts/surfaces/customer-account/components/Form.d.ts +40 -12
  144. package/build/ts/surfaces/customer-account/components/Heading.d.ts +20 -8
  145. package/build/ts/surfaces/customer-account/components/Icon.d.ts +22 -9
  146. package/build/ts/surfaces/customer-account/components/Image.d.ts +13 -7
  147. package/build/ts/surfaces/customer-account/components/Link.d.ts +39 -13
  148. package/build/ts/surfaces/customer-account/components/ListItem.d.ts +22 -10
  149. package/build/ts/surfaces/customer-account/components/Map.d.ts +75 -0
  150. package/build/ts/surfaces/customer-account/components/MapMarker.d.ts +73 -0
  151. package/build/ts/surfaces/customer-account/components/Modal.d.ts +87 -0
  152. package/build/ts/surfaces/customer-account/components/OrderedList.d.ts +20 -8
  153. package/build/ts/surfaces/customer-account/components/Paragraph.d.ts +20 -8
  154. package/build/ts/surfaces/customer-account/components/PaymentIcon.d.ts +14 -7
  155. package/build/ts/surfaces/customer-account/components/PhoneField.d.ts +84 -0
  156. package/build/ts/surfaces/customer-account/components/Progress.d.ts +14 -4
  157. package/build/ts/surfaces/customer-account/components/QRCode.d.ts +32 -8
  158. package/build/ts/surfaces/customer-account/components/Section.d.ts +20 -8
  159. package/build/ts/surfaces/customer-account/components/Spinner.d.ts +14 -4
  160. package/build/ts/surfaces/customer-account/components/Stack.d.ts +20 -9
  161. package/build/ts/surfaces/customer-account/components/Text.d.ts +20 -8
  162. package/build/ts/surfaces/customer-account/components/TextArea.d.ts +69 -0
  163. package/build/ts/surfaces/customer-account/components/TextField.d.ts +72 -21
  164. package/build/ts/surfaces/customer-account/components/Time.d.ts +20 -8
  165. package/build/ts/surfaces/customer-account/components/UnorderedList.d.ts +20 -8
  166. package/build/ts/surfaces/customer-account/components/components-shared.d.ts +486 -2
  167. package/build/ts/surfaces/customer-account/components/components.d.ts +1000 -166
  168. package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +918 -173
  169. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +918 -173
  170. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +918 -173
  171. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +918 -173
  172. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +918 -173
  173. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +918 -173
  174. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +918 -173
  175. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +918 -173
  176. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +918 -173
  177. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +918 -173
  178. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +918 -173
  179. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +918 -173
  180. package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +918 -173
  181. package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +918 -173
  182. package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +918 -173
  183. package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +918 -173
  184. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +918 -173
  185. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +918 -173
  186. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +918 -173
  187. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +918 -173
  188. package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +918 -173
  189. package/build/tsconfig.tsbuildinfo +1 -1
  190. package/package.json +1 -1
  191. package/src/docs/shared/components/Map.ts +12 -0
  192. package/src/docs/shared/components/MapMarker.ts +12 -0
  193. package/src/docs/shared/components/Modal.ts +12 -0
  194. package/src/docs/shared/components/Option.ts +12 -0
  195. package/src/docs/shared/components/PhoneField.ts +11 -0
  196. package/src/docs/shared/components/ProductThumbnail.ts +11 -0
  197. package/src/surfaces/admin/components/AdminPrintAction/examples/default.tsx +1 -1
  198. package/src/surfaces/admin/components/patterns/examples/details.html +228 -0
  199. package/src/surfaces/admin/components/patterns/examples/details.jsx +262 -0
  200. package/src/surfaces/admin/components/patterns/examples/homepage.html +587 -0
  201. package/src/surfaces/admin/components/patterns/examples/homepage.jsx +691 -0
  202. package/src/surfaces/admin/components/patterns/examples/index.html +143 -0
  203. package/src/surfaces/admin/components/patterns/examples/index.jsx +162 -0
  204. package/src/surfaces/admin/components/patterns/examples/settings.html +241 -0
  205. package/src/surfaces/admin/components/patterns/examples/settings.jsx +349 -0
  206. package/src/surfaces/admin/components/patterns/index.ab.doc.ts +82 -0
  207. package/src/surfaces/checkout/components/Abbreviation.d.ts +20 -8
  208. package/src/surfaces/checkout/components/Banner.d.ts +52 -13
  209. package/src/surfaces/checkout/components/Box.d.ts +20 -9
  210. package/src/surfaces/checkout/components/Button.d.ts +39 -13
  211. package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.html +1 -0
  212. package/src/surfaces/checkout/components/Checkbox.d.ts +54 -0
  213. package/src/surfaces/checkout/components/ClipboardItem.d.ts +36 -9
  214. package/src/surfaces/checkout/components/DropZone.d.ts +36 -9
  215. package/src/surfaces/checkout/components/EmailField/examples/basic-emailfield.example.html +4 -0
  216. package/src/surfaces/checkout/components/EmailField.d.ts +69 -0
  217. package/src/surfaces/checkout/components/Form.d.ts +40 -12
  218. package/src/surfaces/checkout/components/Heading.d.ts +20 -8
  219. package/src/surfaces/checkout/components/Icon.d.ts +22 -9
  220. package/src/surfaces/checkout/components/Image.d.ts +13 -7
  221. package/src/surfaces/checkout/components/Link.d.ts +39 -13
  222. package/src/surfaces/checkout/components/ListItem.d.ts +22 -10
  223. package/src/surfaces/checkout/components/Map/examples/basic-map.example.html +3 -0
  224. package/src/surfaces/checkout/components/Map.d.ts +75 -0
  225. package/src/surfaces/checkout/components/MapMarker.d.ts +73 -0
  226. package/src/surfaces/checkout/components/Modal/examples/basic-modal.example.html +20 -0
  227. package/src/surfaces/checkout/components/Modal.d.ts +87 -0
  228. package/src/surfaces/checkout/components/OrderedList.d.ts +20 -8
  229. package/src/surfaces/checkout/components/Paragraph.d.ts +20 -8
  230. package/src/surfaces/checkout/components/PaymentIcon.d.ts +14 -7
  231. package/src/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.html +2 -0
  232. package/src/surfaces/checkout/components/PhoneField.d.ts +84 -0
  233. package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-productthumbnail.example.html +4 -0
  234. package/src/surfaces/checkout/components/Progress.d.ts +14 -4
  235. package/src/surfaces/checkout/components/QRCode.d.ts +32 -8
  236. package/src/surfaces/checkout/components/Section.d.ts +20 -8
  237. package/src/surfaces/checkout/components/Spinner.d.ts +14 -4
  238. package/src/surfaces/checkout/components/Stack.d.ts +20 -9
  239. package/src/surfaces/checkout/components/Text.d.ts +20 -8
  240. package/src/surfaces/checkout/components/TextArea/examples/basic-textarea.example.html +5 -0
  241. package/src/surfaces/checkout/components/TextArea.d.ts +69 -0
  242. package/src/surfaces/checkout/components/TextField.d.ts +72 -21
  243. package/src/surfaces/checkout/components/Time.d.ts +20 -8
  244. package/src/surfaces/checkout/components/UnorderedList.d.ts +20 -8
  245. package/src/surfaces/checkout/components/components-shared.d.ts +486 -2
  246. package/src/surfaces/checkout/components/components.d.ts +1000 -166
  247. package/src/surfaces/checkout/shared.ts +8 -0
  248. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-js.example.ts +1 -1
  249. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-preact.example.tsx +1 -1
  250. package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-js.example.ts +1 -1
  251. package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-preact.example.tsx +1 -1
  252. package/src/surfaces/customer-account/components/Page/examples/basic-Page-js.example.ts +1 -1
  253. package/src/surfaces/customer-account/components/Page/examples/basic-Page-preact.example.tsx +1 -1
@@ -0,0 +1,143 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <script src="https://cdn.shopify.com/shopifycloud/app-bridge-ui-experimental.js"></script>
7
+ <title>Pattern</title>
8
+ </head>
9
+ <body>
10
+ <!-- === -->
11
+ <!-- Index page pattern -->
12
+ <!-- === -->
13
+ <s-page>
14
+ <!-- === -->
15
+ <!-- Title Bar -->
16
+ <!-- Note: ui-title-bar requires AppBridge to render correctly -->
17
+ <!-- === -->
18
+ <ui-title-bar title="Puzzles">
19
+ <button variant="primary">Create puzzle</button>
20
+ <button>Export puzzles</button>
21
+ <button>Import puzzles</button>
22
+ </ui-title-bar>
23
+ <!-- === -->
24
+ <!-- Empty state -->
25
+ <!-- This should only be visible if the merchant has not created any puzzles yet. -->
26
+ <!-- === -->
27
+ <s-section accessibilityLabel="Empty state section">
28
+ <s-grid gap="base" justifyItems="center" paddingBlock="large-400">
29
+ <s-box maxInlineSize="200px" maxBlockSize="200px">
30
+ <s-image
31
+ aspectRatio="1/0.5"
32
+ src="https://cdn.shopify.com/static/images/polaris/patterns/callout.png"
33
+ alt="A stylized graphic of four characters, each holding a puzzle piece"
34
+ />
35
+ </s-box>
36
+ <s-grid justifyItems="center" maxBlockSize="450px" maxInlineSize="450px">
37
+ <s-heading>Start creating puzzles</s-heading>
38
+ <s-paragraph>
39
+ Create and manage your collection of puzzles for players to enjoy.
40
+ </s-paragraph>
41
+ <s-stack
42
+ gap="small-200"
43
+ justifyContent="center"
44
+ padding="base"
45
+ paddingBlockEnd="none"
46
+ direction="inline"
47
+ >
48
+ <s-button aria-label="Learn more about creating puzzles"> Learn more </s-button>
49
+ <s-button variant="primary" aria-label="Add a new puzzle"> Create puzzle </s-button>
50
+ </s-stack>
51
+ </s-grid>
52
+ </s-grid>
53
+ </s-section>
54
+ <!-- === -->
55
+ <!-- Table -->
56
+ <!-- This should only be visible if the merchant has created one or more puzzles. -->
57
+ <!-- === -->
58
+ <s-section padding="none" accessibilityLabel="Puzzles table section">
59
+ <s-table fullwidth>
60
+ <s-table-header-row>
61
+ <s-table-header listSlot="primary">Puzzle</s-table-header>
62
+ <s-table-header>Type</s-table-header>
63
+ <s-table-header>Created</s-table-header>
64
+ <s-table-header>Status</s-table-header>
65
+ </s-table-header-row>
66
+ <s-table-body>
67
+ <s-table-row>
68
+ <s-table-cell>
69
+ <s-stack direction="inline" gap="small" alignItems="center">
70
+ <s-clickable
71
+ href="/app/details"
72
+ accessibilityLabel="Mountain View puzzle thumbnail"
73
+ border="base"
74
+ borderRadius="base"
75
+ overflow="hidden"
76
+ inlineSize="40px"
77
+ blockSize="40px"
78
+ >
79
+ <s-image objectFit="cover" src="https://picsum.photos/id/29/80/80"></s-image>
80
+ </s-clickable>
81
+ <s-link href="/app/details">Mountain View</s-link>
82
+ </s-stack>
83
+ </s-table-cell>
84
+ <s-table-cell>16-piece</s-table-cell>
85
+ <s-table-cell>Today</s-table-cell>
86
+ <s-table-cell>
87
+ <s-badge color="base" tone="success"> Active </s-badge>
88
+ </s-table-cell>
89
+ </s-table-row>
90
+ <s-table-row>
91
+ <s-table-cell>
92
+ <s-stack direction="inline" gap="small" alignItems="center">
93
+ <s-clickable
94
+ href="/app/details"
95
+ accessibilityLabel="Ocean Sunset puzzle thumbnail"
96
+ border="base"
97
+ borderRadius="base"
98
+ overflow="hidden"
99
+ inlineSize="40px"
100
+ blockSize="40px"
101
+ >
102
+ <s-image objectFit="cover" src="https://picsum.photos/id/12/80/80"></s-image>
103
+ </s-clickable>
104
+ <s-link href="/app/details">Ocean Sunset</s-link>
105
+ </s-stack>
106
+ </s-table-cell>
107
+ <s-table-cell>9-piece</s-table-cell>
108
+ <s-table-cell>Yesterday</s-table-cell>
109
+ <s-table-cell>
110
+ <s-badge color="base" tone="success"> Active </s-badge>
111
+ </s-table-cell>
112
+ </s-table-row>
113
+ <s-table-row>
114
+ <s-table-cell>
115
+ <s-stack direction="inline" gap="small" alignItems="center">
116
+ <s-clickable
117
+ href="/app/details"
118
+ accessibilityLabel="Forest Animals puzzle thumbnail"
119
+ border="base"
120
+ borderRadius="base"
121
+ overflow="hidden"
122
+ inlineSize="40px"
123
+ blockSize="40px"
124
+ >
125
+ <s-image objectFit="cover" src="https://picsum.photos/id/324/80/80"></s-image>
126
+ </s-clickable>
127
+ <s-link href="/app/details">Forest Animals</s-link>
128
+ </s-stack>
129
+ </s-table-cell>
130
+ <s-table-cell>25-piece</s-table-cell>
131
+ <s-table-cell>Last week</s-table-cell>
132
+ <s-table-cell>
133
+ <s-badge color="base" tone="neutral"> Draft </s-badge>
134
+ </s-table-cell>
135
+ </s-table-row>
136
+ <!-- Add more rows as needed here -->
137
+ <!-- If more than 100 rows are needed, index page tables should use the paginate, hasPreviousPage, hasNextPage, onPreviousPage, and onNextPage attributes to display and handle pagination) -->
138
+ </s-table-body>
139
+ </s-table>
140
+ </s-section>
141
+ </s-page>
142
+ </body>
143
+ </html>
@@ -0,0 +1,162 @@
1
+ // ===
2
+ // Index page pattern
3
+ // ===
4
+
5
+ export default function IndexPage() {
6
+ return (
7
+ <s-page>
8
+ {/* === */}
9
+ {/* Title Bar */}
10
+ {/* Note: ui-title-bar requires AppBridge to render correctly */}
11
+ {/* === */}
12
+ <ui-title-bar title="Puzzles">
13
+ <button variant="primary">Create puzzle</button>
14
+ <button>Export puzzles</button>
15
+ <button>Import puzzles</button>
16
+ </ui-title-bar>
17
+
18
+ {/* === */}
19
+ {/* Empty state */}
20
+ {/* This should only be visible if the merchant has not created any puzzles yet. */}
21
+ {/* === */}
22
+ <s-section accessibilityLabel="Empty state section">
23
+ <s-grid gap="base" justifyItems="center" paddingBlock="large-400">
24
+ <s-box maxInlineSize="200px" maxBlockSize="200px">
25
+ <s-image
26
+ aspectRatio="1/0.5"
27
+ src="https://cdn.shopify.com/static/images/polaris/patterns/callout.png"
28
+ alt="A stylized graphic of four characters, each holding a puzzle piece"
29
+ />
30
+ </s-box>
31
+ <s-grid
32
+ justifyItems="center"
33
+ maxBlockSize="450px"
34
+ maxInlineSize="450px"
35
+ >
36
+ <s-heading>Start creating puzzles</s-heading>
37
+ <s-paragraph>
38
+ Create and manage your collection of puzzles for players to enjoy.
39
+ </s-paragraph>
40
+ <s-stack
41
+ gap="small-200"
42
+ justifyContent="center"
43
+ padding="base"
44
+ paddingBlockEnd="none"
45
+ direction="inline"
46
+ >
47
+ <s-button aria-label="Learn more about creating puzzles">
48
+ Learn more
49
+ </s-button>
50
+ <s-button variant="primary" aria-label="Add a new puzzle">
51
+ Create puzzle
52
+ </s-button>
53
+ </s-stack>
54
+ </s-grid>
55
+ </s-grid>
56
+ </s-section>
57
+
58
+ {/* === */}
59
+ {/* Table */}
60
+ {/* This should only be visible if the merchant has created one or more puzzles. */}
61
+ {/* === */}
62
+ <s-section padding="none" accessibilityLabel="Puzzles table section">
63
+ <s-table fullwidth>
64
+ <s-table-header-row>
65
+ <s-table-header listSlot="primary">Puzzle</s-table-header>
66
+ <s-table-header>Type</s-table-header>
67
+ <s-table-header>Created</s-table-header>
68
+ <s-table-header>Status</s-table-header>
69
+ </s-table-header-row>
70
+ <s-table-body>
71
+ <s-table-row>
72
+ <s-table-cell>
73
+ <s-stack direction="inline" gap="small" alignItems="center">
74
+ <s-clickable
75
+ href="/app/details"
76
+ accessibilityLabel="Mountain View puzzle thumbnail"
77
+ border="base"
78
+ borderRadius="base"
79
+ overflow="hidden"
80
+ inlineSize="40px"
81
+ blockSize="40px"
82
+ >
83
+ <s-image
84
+ objectFit="cover"
85
+ src="https://picsum.photos/id/29/80/80"
86
+ ></s-image>
87
+ </s-clickable>
88
+ <s-link href="/app/details">Mountain View</s-link>
89
+ </s-stack>
90
+ </s-table-cell>
91
+ <s-table-cell>16-piece</s-table-cell>
92
+ <s-table-cell>Today</s-table-cell>
93
+ <s-table-cell>
94
+ <s-badge color="base" tone="success">
95
+ Active
96
+ </s-badge>
97
+ </s-table-cell>
98
+ </s-table-row>
99
+ <s-table-row>
100
+ <s-table-cell>
101
+ <s-stack direction="inline" gap="small" alignItems="center">
102
+ <s-clickable
103
+ href="/app/details"
104
+ accessibilityLabel="Ocean Sunset puzzle thumbnail"
105
+ border="base"
106
+ borderRadius="base"
107
+ overflow="hidden"
108
+ inlineSize="40px"
109
+ blockSize="40px"
110
+ >
111
+ <s-image
112
+ objectFit="cover"
113
+ src="https://picsum.photos/id/12/80/80"
114
+ ></s-image>
115
+ </s-clickable>
116
+ <s-link href="/app/details">Ocean Sunset</s-link>
117
+ </s-stack>
118
+ </s-table-cell>
119
+ <s-table-cell>9-piece</s-table-cell>
120
+ <s-table-cell>Yesterday</s-table-cell>
121
+ <s-table-cell>
122
+ <s-badge color="base" tone="success">
123
+ Active
124
+ </s-badge>
125
+ </s-table-cell>
126
+ </s-table-row>
127
+ <s-table-row>
128
+ <s-table-cell>
129
+ <s-stack direction="inline" gap="small" alignItems="center">
130
+ <s-clickable
131
+ href="/app/details"
132
+ accessibilityLabel="Forest Animals puzzle thumbnail"
133
+ border="base"
134
+ borderRadius="base"
135
+ overflow="hidden"
136
+ inlineSize="40px"
137
+ blockSize="40px"
138
+ >
139
+ <s-image
140
+ objectFit="cover"
141
+ src="https://picsum.photos/id/324/80/80"
142
+ ></s-image>
143
+ </s-clickable>
144
+ <s-link href="/app/details">Forest Animals</s-link>
145
+ </s-stack>
146
+ </s-table-cell>
147
+ <s-table-cell>25-piece</s-table-cell>
148
+ <s-table-cell>Last week</s-table-cell>
149
+ <s-table-cell>
150
+ <s-badge color="base" tone="neutral">
151
+ Draft
152
+ </s-badge>
153
+ </s-table-cell>
154
+ </s-table-row>
155
+ {/* Add more rows as needed here */}
156
+ {/* If more than 100 rows are needed, index page tables should use the paginate, hasPreviousPage, hasNextPage, onPreviousPage, and onNextPage attributes to display and handle pagination) */}
157
+ </s-table-body>
158
+ </s-table>
159
+ </s-section>
160
+ </s-page>
161
+ );
162
+ }
@@ -0,0 +1,241 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <script src="https://cdn.shopify.com/shopifycloud/app-bridge-ui-experimental.js"></script>
7
+ <title>Pattern</title>
8
+ </head>
9
+ <body>
10
+ <!-- === -->
11
+ <!-- Settings page pattern -->
12
+ <!-- === -->
13
+ <form data-save-bar onSubmit="" onReset="">
14
+ <s-page>
15
+ <!-- === -->
16
+ <!-- Title Bar -->
17
+ <!-- Note: ui-title-bar requires AppBridge to render correctly -->
18
+ <!-- === -->
19
+ <ui-title-bar title="Settings"></ui-title-bar>
20
+ <!-- === -->
21
+ <!-- Store settings -->
22
+ <!-- === -->
23
+ <s-grid gap="base">
24
+ <s-grid gridTemplateColumns="@container (inline-size <= 700px) 1fr, 2fr 5fr" gap="base">
25
+ <!-- Left column -->
26
+ <s-box>
27
+ <s-heading>Store Settings</s-heading>
28
+ <s-paragraph>Manage your store information</s-paragraph>
29
+ </s-box>
30
+ <!-- Right column -->
31
+ <s-section accessibilityLabel="Store information section">
32
+ <!-- Card-like container with border and padding -->
33
+ <s-box padding="base" border="base" borderStyle="solid" borderRadius="base">
34
+ <s-grid gap="base">
35
+ <s-stack direction="inline" justifyContent="space-between">
36
+ <s-stack direction="inline" alignItems="center" gap="small-200">
37
+ <s-icon type="store"></s-icon>
38
+ <s-paragraph>Puzzlify Store</s-paragraph>
39
+ </s-stack>
40
+ <!-- Icon-only button requires accessibilityLabel for screen readers -->
41
+ <s-button
42
+ icon="edit"
43
+ variant="tertiary"
44
+ tone="neutral"
45
+ accessibilityLabel="Edit store name"
46
+ ></s-button>
47
+ </s-stack>
48
+ <s-divider></s-divider>
49
+ <s-stack direction="inline" justifyContent="space-between" alignItems="center">
50
+ <s-stack direction="inline" alignItems="center" gap="small-200">
51
+ <s-icon type="location"></s-icon>
52
+ <s-box>
53
+ <s-paragraph>Business address</s-paragraph>
54
+ <s-paragraph>Puzzle Retailer</s-paragraph>
55
+ </s-box>
56
+ </s-stack>
57
+ <s-box>
58
+ <!-- Icon-only button requires accessibilityLabel for screen readers -->
59
+ <s-button
60
+ icon="edit"
61
+ variant="tertiary"
62
+ tone="neutral"
63
+ accessibilityLabel="Edit business address"
64
+ ></s-button>
65
+ </s-box>
66
+ </s-stack>
67
+ </s-grid>
68
+ </s-box>
69
+ </s-section>
70
+ </s-grid>
71
+ <!-- === -->
72
+ <!-- Product defaults -->
73
+ <!-- === -->
74
+ <s-grid gridTemplateColumns="@container (inline-size <= 700px) 1fr, 2fr 5fr" gap="base">
75
+ <!-- Left column -->
76
+ <s-box>
77
+ <s-heading>Product Defaults</s-heading>
78
+ <s-paragraph>Set default options for new puzzles</s-paragraph>
79
+ </s-box>
80
+ <!-- Right column -->
81
+ <s-section accessibilityLabel="Product defaults section">
82
+ <s-grid gap="base">
83
+ <s-grid gap="base">
84
+ <s-select label="Default puzzle size" name="default-puzzle-size">
85
+ <s-option value="small">Small (9" x 9")</s-option>
86
+ <s-option value="medium" selected> Medium (18" x 24") </s-option>
87
+ <s-option value="large">Large (24" x 36")</s-option>
88
+ </s-select>
89
+ <s-select label="Default piece count" name="default-piece-count">
90
+ <s-option value="250" selected> 250 pieces (Easy) </s-option>
91
+ <s-option value="500">500 pieces (Medium)</s-option>
92
+ <s-option value="1000">1000 pieces (Hard)</s-option>
93
+ <s-option value="2000">2000 pieces (Expert)</s-option>
94
+ </s-select>
95
+ <s-select label="Default material" name="default-material">
96
+ <s-option value="standard" selected> Standard cardboard </s-option>
97
+ <s-option value="premium">Premium cardboard</s-option>
98
+ <s-option value="wooden">Wooden pieces</s-option>
99
+ </s-select>
100
+ <!-- switches (rather than checkboxes) should be used to enable/disable a single option -->
101
+ <s-switch
102
+ label="Include reference image"
103
+ name="include-reference-image"
104
+ details="Ship a reference image with the puzzle"
105
+ ></s-switch>
106
+ </s-grid>
107
+ </s-grid>
108
+ </s-section>
109
+ </s-grid>
110
+ <!-- === -->
111
+ <!-- Customer experience -->
112
+ <!-- === -->
113
+ <s-grid gridTemplateColumns="@container (inline-size <= 700px) 1fr, 2fr 5fr" gap="base">
114
+ <!-- Left column -->
115
+ <s-box>
116
+ <s-heading>Puzzle Experience</s-heading>
117
+ <s-paragraph> Configure how customers interact with your puzzles </s-paragraph>
118
+ </s-box>
119
+ <!-- Right column -->
120
+ <s-section accessibilityLabel="Puzzle experience settings">
121
+ <s-grid gap="base">
122
+ <s-choice-list
123
+ label="Default puzzle packaging style"
124
+ name="packaging-style"
125
+ details="This will be used for all new puzzles"
126
+ >
127
+ <s-choice
128
+ label="Standard box with preview image"
129
+ value="standard-preview"
130
+ selected
131
+ ></s-choice>
132
+ <s-choice label="Mystery box (no preview)" value="mystery"></s-choice>
133
+ <s-choice label="Gift packaging with ribbon" value="gift"></s-choice>
134
+ <s-choice label="Eco-friendly minimal packaging" value="eco"></s-choice>
135
+ </s-choice-list>
136
+ </s-grid>
137
+ </s-section>
138
+ </s-grid>
139
+ <!-- === -->
140
+ <!-- Catalog settings -->
141
+ <!-- === -->
142
+ <s-grid gridTemplateColumns="@container (inline-size <= 700px) 1fr, 2fr 5fr" gap="base">
143
+ <!-- Left column -->
144
+ <s-box>
145
+ <s-heading>Catalog Settings</s-heading>
146
+ <s-paragraph>Configure your online puzzle catalog</s-paragraph>
147
+ </s-box>
148
+ <!-- Right column -->
149
+ <s-section accessibilityLabel="Catalog settings section">
150
+ <s-grid gap="base">
151
+ <s-grid gap="base">
152
+ <s-select label="Default sorting" name="default-sorting">
153
+ <s-option value="newest" selected> Newest first </s-option>
154
+ <s-option value="bestselling">Best selling</s-option>
155
+ <s-option value="price-low">Price: Low to high</s-option>
156
+ <s-option value="price-high">Price: High to low</s-option>
157
+ </s-select>
158
+ <s-choice-list label="Display options" name="display-options" multiple>
159
+ <s-choice
160
+ label="Show difficulty levels"
161
+ value="show-difficulty"
162
+ selected
163
+ ></s-choice>
164
+ <s-choice label="Show piece counts" value="show-piece-count"></s-choice>
165
+ <s-choice label="Show dimensions" value="show-dimensions"></s-choice>
166
+ </s-choice-list>
167
+ </s-grid>
168
+ </s-grid>
169
+ </s-section>
170
+ </s-grid>
171
+ <!-- === -->
172
+ <!-- Order notifications -->
173
+ <!-- === -->
174
+ <s-grid gridTemplateColumns="@container (inline-size <= 700px) 1fr, 2fr 5fr" gap="base">
175
+ <!-- Left column -->
176
+ <s-box>
177
+ <s-heading>Order Notifications</s-heading>
178
+ <s-paragraph>Manage your business notifications</s-paragraph>
179
+ </s-box>
180
+ <!-- Right column -->
181
+ <s-section accessibilityLabel="Order notifications section">
182
+ <s-grid gap="base">
183
+ <s-grid gap="base">
184
+ <s-select label="Notification frequency" name="notification-frequency">
185
+ <s-option value="immediately" selected> Immediately </s-option>
186
+ <s-option value="hourly">Hourly digest</s-option>
187
+ <s-option value="daily">Daily digest</s-option>
188
+ </s-select>
189
+ <s-choice-list label="Notifications type" name="notifications-type" multiple>
190
+ <s-choice label="New order notifications" value="new-order" selected></s-choice>
191
+ <s-choice label="Low stock alerts" value="low-stock"></s-choice>
192
+ <s-choice
193
+ label="Customer review notifications"
194
+ value="customer-review"
195
+ ></s-choice>
196
+ <s-choice label="Shipping updates" value="shipping-updates"></s-choice>
197
+ </s-choice-list>
198
+ </s-grid>
199
+ </s-grid>
200
+ </s-section>
201
+ </s-grid>
202
+ <!-- === -->
203
+ <!-- Shipping settings -->
204
+ <!-- === -->
205
+ <s-grid gridTemplateColumns="@container (inline-size <= 700px) 1fr, 2fr 5fr" gap="base">
206
+ <!-- Left column -->
207
+ <s-box>
208
+ <s-heading>Shipping</s-heading>
209
+ <s-paragraph>Configure shipping settings</s-paragraph>
210
+ </s-box>
211
+ <!-- Right column -->
212
+ <s-section accessibilityLabel="Shipping settings section">
213
+ <s-grid gap="base">
214
+ <s-select label="Default shipping method" name="default-shipping-method">
215
+ <s-option value="standard" selected> Standard shipping </s-option>
216
+ <s-option value="express">Express shipping</s-option>
217
+ <s-option value="free">Free shipping (over $50)</s-option>
218
+ </s-select>
219
+ <s-choice-list label="Shipping preferences" name="shipping-preferences" multiple>
220
+ <s-choice
221
+ label="Calculate shipping based on weight"
222
+ value="calculate-shipping"
223
+ selected
224
+ ></s-choice>
225
+ <s-choice
226
+ label="Offer international shipping"
227
+ value="international-shipping"
228
+ ></s-choice>
229
+ <s-choice
230
+ label="Show estimated delivery dates"
231
+ value="estimated-delivery-dates"
232
+ ></s-choice>
233
+ </s-choice-list>
234
+ </s-grid>
235
+ </s-section>
236
+ </s-grid>
237
+ </s-grid>
238
+ </s-page>
239
+ </form>
240
+ </body>
241
+ </html>