@shopify/ui-extensions 2025.10.0-rc.5 → 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 (304) 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/StandardComponents.d.ts +1 -1
  14. package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
  15. package/build/ts/surfaces/admin/components/patterns/details.ab.doc.d.ts +4 -0
  16. package/build/ts/surfaces/admin/components/patterns/details.ab.doc.d.ts.map +1 -0
  17. package/build/ts/surfaces/admin/components/patterns/homepage.ab.doc.d.ts +4 -0
  18. package/build/ts/surfaces/admin/components/patterns/homepage.ab.doc.d.ts.map +1 -0
  19. package/build/ts/surfaces/admin/components/patterns/index.ab.doc.d.ts +4 -0
  20. package/build/ts/surfaces/admin/components/patterns/index.ab.doc.d.ts.map +1 -0
  21. package/build/ts/surfaces/admin/components/patterns/settings.ab.doc.d.ts +4 -0
  22. package/build/ts/surfaces/admin/components/patterns/settings.ab.doc.d.ts.map +1 -0
  23. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +43 -1
  24. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +43 -1
  25. package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +43 -1
  26. package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +43 -1
  27. package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +43 -1
  28. package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +43 -1
  29. package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +43 -1
  30. package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +43 -1
  31. package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +43 -1
  32. package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +43 -1
  33. package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +43 -1
  34. package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +43 -1
  35. package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +43 -1
  36. package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +43 -1
  37. package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +43 -1
  38. package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +43 -1
  39. package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +43 -1
  40. package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +43 -1
  41. package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +43 -1
  42. package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +43 -1
  43. package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +43 -1
  44. package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +43 -1
  45. package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +43 -1
  46. package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +43 -1
  47. package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +43 -1
  48. package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +43 -1
  49. package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +43 -1
  50. package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +43 -1
  51. package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +43 -1
  52. package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +43 -1
  53. package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +43 -1
  54. package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +43 -1
  55. package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +43 -1
  56. package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +43 -1
  57. package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +43 -1
  58. package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +43 -1
  59. package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +43 -1
  60. package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +43 -1
  61. package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +43 -1
  62. package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +43 -1
  63. package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +43 -1
  64. package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +43 -1
  65. package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +43 -1
  66. package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +43 -1
  67. package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +43 -1
  68. package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +43 -1
  69. package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +43 -1
  70. package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +43 -1
  71. package/build/ts/surfaces/checkout/components/Abbreviation.d.ts +20 -8
  72. package/build/ts/surfaces/checkout/components/Banner/Banner.doc.d.ts.map +1 -1
  73. package/build/ts/surfaces/checkout/components/Banner.d.ts +52 -13
  74. package/build/ts/surfaces/checkout/components/Box.d.ts +20 -9
  75. package/build/ts/surfaces/checkout/components/Button/Button.doc.d.ts.map +1 -1
  76. package/build/ts/surfaces/checkout/components/Button.d.ts +39 -13
  77. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts +4 -0
  78. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts.map +1 -0
  79. package/build/ts/surfaces/checkout/components/Checkbox.d.ts +54 -0
  80. package/build/ts/surfaces/checkout/components/ClipboardItem.d.ts +36 -9
  81. package/build/ts/surfaces/checkout/components/DropZone/DropZone.doc.d.ts.map +1 -1
  82. package/build/ts/surfaces/checkout/components/DropZone.d.ts +36 -9
  83. package/build/ts/surfaces/checkout/components/EmailField/EmailField.doc.d.ts +4 -0
  84. package/build/ts/surfaces/checkout/components/EmailField/EmailField.doc.d.ts.map +1 -0
  85. package/build/ts/surfaces/checkout/components/EmailField.d.ts +69 -0
  86. package/build/ts/surfaces/checkout/components/Form.d.ts +40 -12
  87. package/build/ts/surfaces/checkout/components/Heading.d.ts +20 -8
  88. package/build/ts/surfaces/checkout/components/Icon.d.ts +22 -9
  89. package/build/ts/surfaces/checkout/components/Image.d.ts +13 -7
  90. package/build/ts/surfaces/checkout/components/Link/Link.doc.d.ts.map +1 -1
  91. package/build/ts/surfaces/checkout/components/Link.d.ts +39 -13
  92. package/build/ts/surfaces/checkout/components/ListItem.d.ts +22 -10
  93. package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts +4 -0
  94. package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts.map +1 -0
  95. package/build/ts/surfaces/checkout/components/Map.d.ts +75 -0
  96. package/build/ts/surfaces/checkout/components/MapMarker.d.ts +73 -0
  97. package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts +4 -0
  98. package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +1 -0
  99. package/build/ts/surfaces/checkout/components/Modal.d.ts +87 -0
  100. package/build/ts/surfaces/checkout/components/OrderedList.d.ts +20 -8
  101. package/build/ts/surfaces/checkout/components/Paragraph.d.ts +20 -8
  102. package/build/ts/surfaces/checkout/components/PaymentIcon.d.ts +14 -7
  103. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts +4 -0
  104. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts.map +1 -0
  105. package/build/ts/surfaces/checkout/components/PhoneField.d.ts +84 -0
  106. package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts +4 -0
  107. package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts.map +1 -0
  108. package/build/ts/surfaces/checkout/components/Progress.d.ts +14 -4
  109. package/build/ts/surfaces/checkout/components/QRCode/QRCode.doc.d.ts.map +1 -1
  110. package/build/ts/surfaces/checkout/components/QRCode.d.ts +32 -8
  111. package/build/ts/surfaces/checkout/components/Section.d.ts +20 -8
  112. package/build/ts/surfaces/checkout/components/Spinner.d.ts +14 -4
  113. package/build/ts/surfaces/checkout/components/Stack.d.ts +20 -9
  114. package/build/ts/surfaces/checkout/components/Text.d.ts +20 -8
  115. package/build/ts/surfaces/checkout/components/TextArea/TextArea.doc.d.ts +4 -0
  116. package/build/ts/surfaces/checkout/components/TextArea/TextArea.doc.d.ts.map +1 -0
  117. package/build/ts/surfaces/checkout/components/TextArea.d.ts +69 -0
  118. package/build/ts/surfaces/checkout/components/TextField/TextField.doc.d.ts.map +1 -1
  119. package/build/ts/surfaces/checkout/components/TextField.d.ts +72 -21
  120. package/build/ts/surfaces/checkout/components/Time.d.ts +20 -8
  121. package/build/ts/surfaces/checkout/components/UnorderedList.d.ts +20 -8
  122. package/build/ts/surfaces/checkout/components/components-shared.d.ts +486 -2
  123. package/build/ts/surfaces/checkout/components/components.d.ts +1000 -166
  124. package/build/ts/surfaces/checkout/shared.d.ts +1 -1
  125. package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
  126. package/build/ts/surfaces/checkout/targets/Checkout::Actions::RenderBefore.d.ts +918 -172
  127. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +918 -172
  128. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +918 -172
  129. package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +918 -172
  130. package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +918 -172
  131. package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +918 -172
  132. package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +918 -172
  133. package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +918 -172
  134. package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +863 -155
  135. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +863 -155
  136. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +863 -155
  137. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +918 -172
  138. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +918 -172
  139. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +918 -172
  140. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +918 -172
  141. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +918 -172
  142. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +918 -172
  143. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +918 -172
  144. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +918 -172
  145. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +918 -172
  146. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +918 -172
  147. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +918 -172
  148. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +918 -172
  149. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +918 -172
  150. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +918 -172
  151. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +918 -172
  152. package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +918 -172
  153. package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +918 -172
  154. package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +918 -172
  155. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +918 -172
  156. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +918 -172
  157. package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +918 -172
  158. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +918 -172
  159. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +918 -172
  160. package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +918 -172
  161. package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +863 -155
  162. package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +918 -172
  163. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +918 -172
  164. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +918 -172
  165. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +918 -172
  166. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +863 -155
  167. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +918 -172
  168. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +918 -172
  169. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +918 -172
  170. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +918 -172
  171. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +918 -172
  172. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +918 -172
  173. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +918 -172
  174. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +918 -172
  175. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +918 -172
  176. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +918 -172
  177. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +918 -172
  178. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +918 -172
  179. package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +918 -172
  180. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +918 -172
  181. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +918 -172
  182. package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +918 -172
  183. package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +918 -172
  184. package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +918 -172
  185. package/build/ts/surfaces/customer-account/components/Abbreviation.d.ts +20 -8
  186. package/build/ts/surfaces/customer-account/components/Banner.d.ts +52 -13
  187. package/build/ts/surfaces/customer-account/components/Box.d.ts +20 -9
  188. package/build/ts/surfaces/customer-account/components/Button.d.ts +39 -13
  189. package/build/ts/surfaces/customer-account/components/Checkbox.d.ts +54 -0
  190. package/build/ts/surfaces/customer-account/components/ClipboardItem.d.ts +36 -9
  191. package/build/ts/surfaces/customer-account/components/DropZone.d.ts +36 -9
  192. package/build/ts/surfaces/customer-account/components/EmailField.d.ts +69 -0
  193. package/build/ts/surfaces/customer-account/components/Form.d.ts +40 -12
  194. package/build/ts/surfaces/customer-account/components/Heading.d.ts +20 -8
  195. package/build/ts/surfaces/customer-account/components/Icon.d.ts +22 -9
  196. package/build/ts/surfaces/customer-account/components/Image.d.ts +13 -7
  197. package/build/ts/surfaces/customer-account/components/Link.d.ts +39 -13
  198. package/build/ts/surfaces/customer-account/components/ListItem.d.ts +22 -10
  199. package/build/ts/surfaces/customer-account/components/Map.d.ts +75 -0
  200. package/build/ts/surfaces/customer-account/components/MapMarker.d.ts +73 -0
  201. package/build/ts/surfaces/customer-account/components/Modal.d.ts +87 -0
  202. package/build/ts/surfaces/customer-account/components/OrderedList.d.ts +20 -8
  203. package/build/ts/surfaces/customer-account/components/Paragraph.d.ts +20 -8
  204. package/build/ts/surfaces/customer-account/components/PaymentIcon.d.ts +14 -7
  205. package/build/ts/surfaces/customer-account/components/PhoneField.d.ts +84 -0
  206. package/build/ts/surfaces/customer-account/components/Progress.d.ts +14 -4
  207. package/build/ts/surfaces/customer-account/components/QRCode.d.ts +32 -8
  208. package/build/ts/surfaces/customer-account/components/Section.d.ts +20 -8
  209. package/build/ts/surfaces/customer-account/components/Spinner.d.ts +14 -4
  210. package/build/ts/surfaces/customer-account/components/Stack.d.ts +20 -9
  211. package/build/ts/surfaces/customer-account/components/Text.d.ts +20 -8
  212. package/build/ts/surfaces/customer-account/components/TextArea.d.ts +69 -0
  213. package/build/ts/surfaces/customer-account/components/TextField.d.ts +72 -21
  214. package/build/ts/surfaces/customer-account/components/Time.d.ts +20 -8
  215. package/build/ts/surfaces/customer-account/components/UnorderedList.d.ts +20 -8
  216. package/build/ts/surfaces/customer-account/components/components-shared.d.ts +486 -2
  217. package/build/ts/surfaces/customer-account/components/components.d.ts +1000 -166
  218. package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +918 -173
  219. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +918 -173
  220. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +918 -173
  221. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +918 -173
  222. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +918 -173
  223. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +918 -173
  224. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +918 -173
  225. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +918 -173
  226. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +918 -173
  227. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +918 -173
  228. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +918 -173
  229. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +918 -173
  230. package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +918 -173
  231. package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +918 -173
  232. package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +918 -173
  233. package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +918 -173
  234. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +918 -173
  235. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +918 -173
  236. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +918 -173
  237. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +918 -173
  238. package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +918 -173
  239. package/build/tsconfig.tsbuildinfo +1 -1
  240. package/package.json +1 -1
  241. package/src/docs/shared/components/Map.ts +12 -0
  242. package/src/docs/shared/components/MapMarker.ts +12 -0
  243. package/src/docs/shared/components/Modal.ts +12 -0
  244. package/src/docs/shared/components/Option.ts +12 -0
  245. package/src/docs/shared/components/PhoneField.ts +11 -0
  246. package/src/docs/shared/components/ProductThumbnail.ts +11 -0
  247. package/src/surfaces/admin/components/AdminPrintAction/examples/default.tsx +1 -1
  248. package/src/surfaces/admin/components/StandardComponents.ts +1 -0
  249. package/src/surfaces/admin/components/patterns/examples/details.html +228 -0
  250. package/src/surfaces/admin/components/patterns/examples/details.jsx +262 -0
  251. package/src/surfaces/admin/components/patterns/examples/homepage.html +587 -0
  252. package/src/surfaces/admin/components/patterns/examples/homepage.jsx +691 -0
  253. package/src/surfaces/admin/components/patterns/examples/index.html +143 -0
  254. package/src/surfaces/admin/components/patterns/examples/index.jsx +162 -0
  255. package/src/surfaces/admin/components/patterns/examples/settings.html +241 -0
  256. package/src/surfaces/admin/components/patterns/examples/settings.jsx +349 -0
  257. package/src/surfaces/admin/components/patterns/index.ab.doc.ts +82 -0
  258. package/src/surfaces/checkout/components/Abbreviation.d.ts +20 -8
  259. package/src/surfaces/checkout/components/Banner.d.ts +52 -13
  260. package/src/surfaces/checkout/components/Box.d.ts +20 -9
  261. package/src/surfaces/checkout/components/Button.d.ts +39 -13
  262. package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.html +1 -0
  263. package/src/surfaces/checkout/components/Checkbox.d.ts +54 -0
  264. package/src/surfaces/checkout/components/ClipboardItem.d.ts +36 -9
  265. package/src/surfaces/checkout/components/DropZone.d.ts +36 -9
  266. package/src/surfaces/checkout/components/EmailField/examples/basic-emailfield.example.html +4 -0
  267. package/src/surfaces/checkout/components/EmailField.d.ts +69 -0
  268. package/src/surfaces/checkout/components/Form.d.ts +40 -12
  269. package/src/surfaces/checkout/components/Heading.d.ts +20 -8
  270. package/src/surfaces/checkout/components/Icon.d.ts +22 -9
  271. package/src/surfaces/checkout/components/Image.d.ts +13 -7
  272. package/src/surfaces/checkout/components/Link.d.ts +39 -13
  273. package/src/surfaces/checkout/components/ListItem.d.ts +22 -10
  274. package/src/surfaces/checkout/components/Map/examples/basic-map.example.html +3 -0
  275. package/src/surfaces/checkout/components/Map.d.ts +75 -0
  276. package/src/surfaces/checkout/components/MapMarker.d.ts +73 -0
  277. package/src/surfaces/checkout/components/Modal/examples/basic-modal.example.html +20 -0
  278. package/src/surfaces/checkout/components/Modal.d.ts +87 -0
  279. package/src/surfaces/checkout/components/OrderedList.d.ts +20 -8
  280. package/src/surfaces/checkout/components/Paragraph.d.ts +20 -8
  281. package/src/surfaces/checkout/components/PaymentIcon.d.ts +14 -7
  282. package/src/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.html +2 -0
  283. package/src/surfaces/checkout/components/PhoneField.d.ts +84 -0
  284. package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-productthumbnail.example.html +4 -0
  285. package/src/surfaces/checkout/components/Progress.d.ts +14 -4
  286. package/src/surfaces/checkout/components/QRCode.d.ts +32 -8
  287. package/src/surfaces/checkout/components/Section.d.ts +20 -8
  288. package/src/surfaces/checkout/components/Spinner.d.ts +14 -4
  289. package/src/surfaces/checkout/components/Stack.d.ts +20 -9
  290. package/src/surfaces/checkout/components/Text.d.ts +20 -8
  291. package/src/surfaces/checkout/components/TextArea/examples/basic-textarea.example.html +5 -0
  292. package/src/surfaces/checkout/components/TextArea.d.ts +69 -0
  293. package/src/surfaces/checkout/components/TextField.d.ts +72 -21
  294. package/src/surfaces/checkout/components/Time.d.ts +20 -8
  295. package/src/surfaces/checkout/components/UnorderedList.d.ts +20 -8
  296. package/src/surfaces/checkout/components/components-shared.d.ts +486 -2
  297. package/src/surfaces/checkout/components/components.d.ts +1000 -166
  298. package/src/surfaces/checkout/shared.ts +8 -0
  299. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-js.example.ts +1 -1
  300. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-preact.example.tsx +1 -1
  301. package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-js.example.ts +1 -1
  302. package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-preact.example.tsx +1 -1
  303. package/src/surfaces/customer-account/components/Page/examples/basic-Page-js.example.ts +1 -1
  304. package/src/surfaces/customer-account/components/Page/examples/basic-Page-preact.example.tsx +1 -1
@@ -1,37 +1,63 @@
1
1
  /** VERSION: 0.0.0 **/
2
- /* eslint-disable import/extensions */
2
+ /* eslint-disable import-x/extensions */
3
3
  /* eslint-disable @typescript-eslint/no-namespace */
4
4
  /* eslint-disable @typescript-eslint/member-ordering */
5
5
  /* eslint-disable line-comment-position */
6
6
  /* eslint-disable @typescript-eslint/unified-signatures */
7
7
  /* eslint-disable no-var */
8
- /* eslint-disable import/namespace */
8
+ /* eslint-disable import-x/namespace */
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
11
  import type {LinkProps$1} from './components-shared.d.ts';
12
12
 
13
- export interface LinkProps extends Pick<LinkProps$1, 'accessibilityLabel' | 'command' | 'commandFor' | 'href' | 'id' | 'lang' | 'onClick' | 'target' | 'tone'> {
14
- target?: Extract<LinkProps$1['target'], 'auto' | '_self' | '_blank'>;
13
+ /**
14
+ * Used when an element does not have children.
15
+ */
16
+ export interface BaseElementProps<TClass = HTMLElement> {
17
+ key?: preact.Key;
18
+ ref?: preact.Ref<TClass>;
19
+ slot?: Lowercase<string>;
20
+ }
21
+ /**
22
+ * Used when an element has children.
23
+ */
24
+ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
25
+ children?: preact.ComponentChildren;
26
+ }
27
+ export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
28
+ currentTarget: HTMLElementTagNameMap[TTagName];
29
+ };
30
+
31
+ declare const tagName = "s-link";
32
+ export interface LinkBaseProps extends Pick<LinkProps$1, 'accessibilityLabel' | 'command' | 'commandFor' | 'href' | 'id' | 'lang' | 'target' | 'tone'> {
33
+ target?: Extract<LinkProps$1['target'], 'auto' | '_blank'>;
15
34
  tone?: Extract<LinkProps$1['tone'], 'auto' | 'neutral'>;
16
35
  }
17
- export interface LinkElement extends Omit<LinkProps, 'onClick'>, Omit<HTMLElement, 'id' | 'lang' | 'onclick'> {
18
- onclick: LinkProps['onClick'];
36
+ export interface LinkEvents extends Pick<LinkProps$1, 'onClick'> {
37
+ }
38
+ export interface LinkElementEvents {
39
+ /**
40
+ * Callback when the link is activated.
41
+ * This will be called before navigating to the location specified by `href`.
42
+ */
43
+ click?: ((event: CallbackEvent<typeof tagName>) => void) | null;
44
+ }
45
+ export interface LinkElement extends LinkBaseProps, Omit<LinkEvents, 'onClick'>, Omit<HTMLElement, 'id' | 'lang' | 'onclick'> {
46
+ onclick: LinkEvents['onClick'];
47
+ }
48
+ export interface LinkProps extends LinkBaseProps, LinkEvents {
19
49
  }
20
50
  declare global {
21
51
  interface HTMLElementTagNameMap {
22
- 's-link': LinkElement;
52
+ [tagName]: LinkElement;
23
53
  }
24
54
  }
25
55
  declare module 'preact' {
26
- interface BaseProps {
27
- children?: preact.ComponentChildren;
28
- slot?: Lowercase<string>;
29
- }
30
56
  namespace createElement.JSX {
31
57
  interface IntrinsicElements {
32
- 's-link': LinkProps & BaseProps;
58
+ [tagName]: LinkProps & BaseElementPropsWithChildren<LinkElement>;
33
59
  }
34
60
  }
35
61
  }
36
62
 
37
- export type { LinkElement, LinkProps };
63
+ export type { LinkBaseProps, LinkElement, LinkElementEvents, LinkEvents, LinkProps };
@@ -1,34 +1,46 @@
1
1
  /** VERSION: 0.0.0 **/
2
- /* eslint-disable import/extensions */
2
+ /* eslint-disable import-x/extensions */
3
3
  /* eslint-disable @typescript-eslint/no-namespace */
4
4
  /* eslint-disable @typescript-eslint/member-ordering */
5
5
  /* eslint-disable line-comment-position */
6
6
  /* eslint-disable @typescript-eslint/unified-signatures */
7
7
  /* eslint-disable no-var */
8
- /* eslint-disable import/namespace */
8
+ /* eslint-disable import-x/namespace */
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
11
  import type {ListItemProps$1} from './components-shared.d.ts';
12
12
 
13
+ /**
14
+ * Used when an element does not have children.
15
+ */
16
+ export interface BaseElementProps<TClass = HTMLElement> {
17
+ key?: preact.Key;
18
+ ref?: preact.Ref<TClass>;
19
+ slot?: Lowercase<string>;
20
+ }
21
+ /**
22
+ * Used when an element has children.
23
+ */
24
+ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
25
+ children?: preact.ComponentChildren;
26
+ }
27
+
28
+ declare const tagName = "s-list-item";
13
29
  export interface ListItemProps extends Pick<ListItemProps$1, 'id'> {
14
30
  }
15
- export interface ListItem extends ListItemProps, Omit<HTMLElement, 'id'> {
31
+ export interface ListItemElement extends ListItemProps, Omit<HTMLElement, 'id'> {
16
32
  }
17
33
  declare global {
18
34
  interface HTMLElementTagNameMap {
19
- 's-list-item': ListItem;
35
+ [tagName]: ListItemElement;
20
36
  }
21
37
  }
22
38
  declare module 'preact' {
23
- interface BaseProps {
24
- children?: preact.ComponentChildren;
25
- slot?: Lowercase<string>;
26
- }
27
39
  namespace createElement.JSX {
28
40
  interface IntrinsicElements {
29
- 's-list-item': ListItemProps & BaseProps;
41
+ [tagName]: ListItemProps & BaseElementPropsWithChildren<ListItemElement>;
30
42
  }
31
43
  }
32
44
  }
33
45
 
34
- export type { ListItem, ListItemProps };
46
+ export type { ListItemElement, ListItemProps };
@@ -0,0 +1,3 @@
1
+ <s-map apikey="YOUR_API_KEY" latitude="51.5074" longitude="-0.1278">
2
+ <s-map-marker latitude="51.5074" longitude="-0.1278"></s-map-marker>
3
+ </s-map>
@@ -0,0 +1,75 @@
1
+ /** VERSION: 0.0.0 **/
2
+ /* eslint-disable import-x/extensions */
3
+ /* eslint-disable @typescript-eslint/no-namespace */
4
+ /* eslint-disable @typescript-eslint/member-ordering */
5
+ /* eslint-disable line-comment-position */
6
+ /* eslint-disable @typescript-eslint/unified-signatures */
7
+ /* eslint-disable no-var */
8
+ /* eslint-disable import-x/namespace */
9
+ // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
+ /// <reference lib="DOM" />
11
+ import type {MapProps$1} from './components-shared.d.ts';
12
+
13
+ /**
14
+ * Used when an element does not have children.
15
+ */
16
+ export interface BaseElementProps<TClass = HTMLElement> {
17
+ key?: preact.Key;
18
+ ref?: preact.Ref<TClass>;
19
+ slot?: Lowercase<string>;
20
+ }
21
+ /**
22
+ * Used when an element has children.
23
+ */
24
+ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
25
+ children?: preact.ComponentChildren;
26
+ }
27
+ export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
28
+ currentTarget: HTMLElementTagNameMap[TTagName];
29
+ };
30
+
31
+ declare const tagName = "s-map";
32
+ export interface MapBaseProps extends Pick<MapProps$1, 'accessibilityLabel' | 'apiKey' | 'blockSize' | 'id' | 'inlineSize' | 'latitude' | 'longitude' | 'maxBlockSize' | 'maxInlineSize' | 'maxZoom' | 'minBlockSize' | 'minInlineSize' | 'minZoom' | 'zoom'> {
33
+ }
34
+ export interface MapEvents extends Pick<MapProps$1, 'onBoundsChange' | 'onClick' | 'onDblClick' | 'onViewChange'> {
35
+ }
36
+ export interface MapElementEvents {
37
+ /**
38
+ * Callback when the viewport bounds have changed or the map is resized.
39
+ */
40
+ boundschange?: ((event: CallbackEvent<typeof tagName>) => void) | null;
41
+ /**
42
+ * Callback when the user clicks on the map.
43
+ */
44
+ click?: ((event: CallbackEvent<typeof tagName>) => void) | null;
45
+ /**
46
+ * Callback when the user double-clicks on the map.
47
+ */
48
+ dblclick?: ((event: CallbackEvent<typeof tagName>) => void) | null;
49
+ /**
50
+ * Callback when the map view changes.
51
+ */
52
+ viewchange?: ((event: CallbackEvent<typeof tagName>) => void) | null;
53
+ }
54
+ export interface MapElement extends MapBaseProps, Omit<MapEvents, 'onBoundsChange' | 'onClick' | 'onDblClick' | 'onViewChange'>, Omit<HTMLElement, 'id' | 'onclick' | 'ondblclick'> {
55
+ onboundschange: MapEvents['onBoundsChange'];
56
+ onclick: MapEvents['onClick'];
57
+ ondblclick: MapEvents['onDblClick'];
58
+ onviewchange: MapEvents['onViewChange'];
59
+ }
60
+ export interface MapProps extends MapBaseProps, MapEvents {
61
+ }
62
+ declare global {
63
+ interface HTMLElementTagNameMap {
64
+ [tagName]: MapElement;
65
+ }
66
+ }
67
+ declare module 'preact' {
68
+ namespace createElement.JSX {
69
+ interface IntrinsicElements {
70
+ [tagName]: MapProps & BaseElementPropsWithChildren<MapElement>;
71
+ }
72
+ }
73
+ }
74
+
75
+ export type { MapBaseProps, MapElement, MapElementEvents, MapEvents, MapProps };
@@ -0,0 +1,73 @@
1
+ /** VERSION: 0.0.0 **/
2
+ /* eslint-disable import-x/extensions */
3
+ /* eslint-disable @typescript-eslint/no-namespace */
4
+ /* eslint-disable @typescript-eslint/member-ordering */
5
+ /* eslint-disable line-comment-position */
6
+ /* eslint-disable @typescript-eslint/unified-signatures */
7
+ /* eslint-disable no-var */
8
+ /* eslint-disable import-x/namespace */
9
+ // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
+ /// <reference lib="DOM" />
11
+ import type {MapMarkerProps$1} from './components-shared.d.ts';
12
+ import { ReactNode } from 'react';
13
+
14
+ /**
15
+ * Used when an element does not have children.
16
+ */
17
+ export interface BaseElementProps<TClass = HTMLElement> {
18
+ key?: preact.Key;
19
+ ref?: preact.Ref<TClass>;
20
+ slot?: Lowercase<string>;
21
+ }
22
+ export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
23
+ currentTarget: HTMLElementTagNameMap[TTagName];
24
+ };
25
+
26
+ declare const tagName = "s-map-marker";
27
+ export interface MapMarkerBaseProps extends Pick<MapMarkerProps$1, 'accessibilityLabel' | 'blockSize' | 'clusterable' | 'inlineSize' | 'latitude' | 'longitude'> {
28
+ }
29
+ export interface MapMarkerEvents extends Pick<MapMarkerProps$1, 'onClick'> {
30
+ }
31
+ export interface MapMarkerElementEvents {
32
+ /**
33
+ * Callback when a marker is clicked.
34
+ *
35
+ * It does not trigger a click event on the map itself.
36
+ */
37
+ click?: ((event: CallbackEvent<typeof tagName>) => void) | null;
38
+ }
39
+ export interface MapMarkerSlots {
40
+ /**
41
+ * The graphic to use as the marker.
42
+ *
43
+ * If unset, it will default to the provider’s default marker.
44
+ */
45
+ graphic?: ReactNode;
46
+ }
47
+ export interface MapMarkerElementSlots {
48
+ /**
49
+ * The graphic to use as the marker.
50
+ *
51
+ * If unset, it will default to the provider’s default marker.
52
+ */
53
+ graphic?: HTMLElement;
54
+ }
55
+ export interface MapMarkerElement extends MapMarkerBaseProps, MapMarkerSlots, Omit<HTMLElement, 'id' | 'onclick'> {
56
+ onclick: MapMarkerEvents['onClick'];
57
+ }
58
+ export interface MapMarkerProps extends MapMarkerBaseProps, MapMarkerEvents {
59
+ }
60
+ declare global {
61
+ interface HTMLElementTagNameMap {
62
+ [tagName]: MapMarkerElement;
63
+ }
64
+ }
65
+ declare module 'preact' {
66
+ namespace createElement.JSX {
67
+ interface IntrinsicElements {
68
+ [tagName]: MapMarkerProps & BaseElementProps<MapMarkerElement>;
69
+ }
70
+ }
71
+ }
72
+
73
+ export type { MapMarkerBaseProps, MapMarkerElement, MapMarkerElementEvents, MapMarkerElementSlots, MapMarkerEvents, MapMarkerProps, MapMarkerSlots };
@@ -0,0 +1,20 @@
1
+ <s-button command="--show" commandfor="modal-1">Add Product</s-button>
2
+ <s-modal id="modal-1" heading="Return Policy">
3
+ <s-paragraph>
4
+ We have a 30-day return policy, which means you have 30 days after receiving
5
+ your item to request a return.
6
+ </s-paragraph>
7
+ <s-paragraph>
8
+ To be eligible for a return, your item must be in the same condition that
9
+ you received it, unworn or unused, with tags, and in its original packaging.
10
+ You’ll also need the receipt or proof of purchase.
11
+ </s-paragraph>
12
+ <s-button
13
+ kind="primary"
14
+ command="--hide"
15
+ commandfor="modal-1"
16
+ slot="primary-action"
17
+ >
18
+ Close
19
+ </s-button>
20
+ </s-modal>
@@ -0,0 +1,87 @@
1
+ /** VERSION: 0.0.0 **/
2
+ /* eslint-disable import-x/extensions */
3
+ /* eslint-disable @typescript-eslint/no-namespace */
4
+ /* eslint-disable @typescript-eslint/member-ordering */
5
+ /* eslint-disable line-comment-position */
6
+ /* eslint-disable @typescript-eslint/unified-signatures */
7
+ /* eslint-disable no-var */
8
+ /* eslint-disable import-x/namespace */
9
+ // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
+ /// <reference lib="DOM" />
11
+ import type {ModalProps$1} from './components-shared.d.ts';
12
+ import { ReactNode } from 'react';
13
+
14
+ /**
15
+ * Used when an element does not have children.
16
+ */
17
+ export interface BaseElementProps<TClass = HTMLElement> {
18
+ key?: preact.Key;
19
+ ref?: preact.Ref<TClass>;
20
+ slot?: Lowercase<string>;
21
+ }
22
+ /**
23
+ * Used when an element has children.
24
+ */
25
+ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
26
+ children?: preact.ComponentChildren;
27
+ }
28
+ export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
29
+ currentTarget: HTMLElementTagNameMap[TTagName];
30
+ };
31
+
32
+ declare const tagName = "s-modal";
33
+ export interface ModalBaseProps extends Pick<ModalProps$1, 'accessibilityLabel' | 'heading' | 'id' | 'padding' | 'size'> {
34
+ size?: Extract<ModalProps$1['size'], 'small-100' | 'small' | 'base' | 'large-100' | 'large' | 'max'>;
35
+ }
36
+ export interface ModalSlots extends Pick<ModalProps$1, 'primaryAction' | 'secondaryActions'> {
37
+ /**
38
+ * The primary action to perform, provided as a button type element.
39
+ */
40
+ primaryAction?: ReactNode;
41
+ /**
42
+ * The secondary actions to perform, provided as button type elements.
43
+ */
44
+ secondaryActions?: ReactNode;
45
+ }
46
+ export interface ModalElementSlots {
47
+ /**
48
+ * The primary action to perform, provided as a button type element.
49
+ */
50
+ 'primary-action'?: HTMLElement;
51
+ /**
52
+ * The secondary actions to perform, provided as button type elements.
53
+ */
54
+ 'secondary-actions'?: HTMLElement;
55
+ }
56
+ export interface ModalEvents extends Pick<ModalProps$1, 'onHide' | 'onShow' | 'onAfterHide' | 'onAfterShow'> {
57
+ }
58
+ export interface ModalElementEvents {
59
+ /**
60
+ * Callback fired after the overlay is hidden.
61
+ */
62
+ hide?: ((event: CallbackEvent<typeof tagName>) => void) | null;
63
+ /**
64
+ * Callback fired after the overlay is shown.
65
+ */
66
+ show?: ((event: CallbackEvent<typeof tagName>) => void) | null;
67
+ }
68
+ export interface ModalElement extends ModalBaseProps, ModalSlots, Omit<ModalEvents, 'onHide' | 'onShow'>, Omit<HTMLElement, 'id'> {
69
+ onhide: ModalEvents['onHide'];
70
+ onshow: ModalEvents['onShow'];
71
+ }
72
+ export interface ModalProps extends ModalBaseProps, ModalSlots, ModalEvents {
73
+ }
74
+ declare global {
75
+ interface HTMLElementTagNameMap {
76
+ [tagName]: ModalElement;
77
+ }
78
+ }
79
+ declare module 'preact' {
80
+ namespace createElement.JSX {
81
+ interface IntrinsicElements {
82
+ [tagName]: ModalProps & BaseElementPropsWithChildren<ModalElement>;
83
+ }
84
+ }
85
+ }
86
+
87
+ export type { ModalBaseProps, ModalElement, ModalElementEvents, ModalElementSlots, ModalProps, ModalSlots };
@@ -1,32 +1,44 @@
1
1
  /** VERSION: 0.0.0 **/
2
- /* eslint-disable import/extensions */
2
+ /* eslint-disable import-x/extensions */
3
3
  /* eslint-disable @typescript-eslint/no-namespace */
4
4
  /* eslint-disable @typescript-eslint/member-ordering */
5
5
  /* eslint-disable line-comment-position */
6
6
  /* eslint-disable @typescript-eslint/unified-signatures */
7
7
  /* eslint-disable no-var */
8
- /* eslint-disable import/namespace */
8
+ /* eslint-disable import-x/namespace */
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
11
  import type {OrderedListProps$1} from './components-shared.d.ts';
12
12
 
13
+ /**
14
+ * Used when an element does not have children.
15
+ */
16
+ export interface BaseElementProps<TClass = HTMLElement> {
17
+ key?: preact.Key;
18
+ ref?: preact.Ref<TClass>;
19
+ slot?: Lowercase<string>;
20
+ }
21
+ /**
22
+ * Used when an element has children.
23
+ */
24
+ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
25
+ children?: preact.ComponentChildren;
26
+ }
27
+
28
+ declare const tagName = "s-ordered-list";
13
29
  export interface OrderedListProps extends OrderedListProps$1 {
14
30
  }
15
31
  export interface OrderedListElement extends OrderedListProps, Omit<HTMLElement, 'id'> {
16
32
  }
17
33
  declare global {
18
34
  interface HTMLElementTagNameMap {
19
- 's-ordered-list': OrderedListElement;
35
+ [tagName]: OrderedListElement;
20
36
  }
21
37
  }
22
38
  declare module 'preact' {
23
- interface BaseProps {
24
- children?: preact.ComponentChildren;
25
- slot?: Lowercase<string>;
26
- }
27
39
  namespace createElement.JSX {
28
40
  interface IntrinsicElements {
29
- 's-ordered-list': OrderedListProps & BaseProps;
41
+ [tagName]: OrderedListProps & BaseElementPropsWithChildren<OrderedListElement>;
30
42
  }
31
43
  }
32
44
  }
@@ -1,15 +1,31 @@
1
1
  /** VERSION: 0.0.0 **/
2
- /* eslint-disable import/extensions */
2
+ /* eslint-disable import-x/extensions */
3
3
  /* eslint-disable @typescript-eslint/no-namespace */
4
4
  /* eslint-disable @typescript-eslint/member-ordering */
5
5
  /* eslint-disable line-comment-position */
6
6
  /* eslint-disable @typescript-eslint/unified-signatures */
7
7
  /* eslint-disable no-var */
8
- /* eslint-disable import/namespace */
8
+ /* eslint-disable import-x/namespace */
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
11
  import type {ParagraphProps$1} from './components-shared.d.ts';
12
12
 
13
+ /**
14
+ * Used when an element does not have children.
15
+ */
16
+ export interface BaseElementProps<TClass = HTMLElement> {
17
+ key?: preact.Key;
18
+ ref?: preact.Ref<TClass>;
19
+ slot?: Lowercase<string>;
20
+ }
21
+ /**
22
+ * Used when an element has children.
23
+ */
24
+ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
25
+ children?: preact.ComponentChildren;
26
+ }
27
+
28
+ declare const tagName = "s-paragraph";
13
29
  export interface ParagraphProps extends Pick<ParagraphProps$1, 'accessibilityVisibility' | 'color' | 'dir' | 'id' | 'lang' | 'tone' | 'type'> {
14
30
  color?: Extract<ParagraphProps$1['color'], 'subdued' | 'base'>;
15
31
  tone?: Extract<ParagraphProps$1['tone'], 'auto' | 'info' | 'success' | 'warning' | 'critical' | 'neutral' | 'custom'>;
@@ -18,17 +34,13 @@ export interface ParagraphElement extends ParagraphProps, Omit<HTMLElement, 'id'
18
34
  }
19
35
  declare global {
20
36
  interface HTMLElementTagNameMap {
21
- 's-paragraph': ParagraphElement;
37
+ [tagName]: ParagraphElement;
22
38
  }
23
39
  }
24
40
  declare module 'preact' {
25
- interface BaseProps {
26
- children?: preact.ComponentChildren;
27
- slot?: Lowercase<string>;
28
- }
29
41
  namespace createElement.JSX {
30
42
  interface IntrinsicElements {
31
- 's-paragraph': ParagraphProps & BaseProps;
43
+ [tagName]: ParagraphProps & BaseElementPropsWithChildren<ParagraphElement>;
32
44
  }
33
45
  }
34
46
  }
@@ -1,31 +1,38 @@
1
1
  /** VERSION: 0.0.0 **/
2
- /* eslint-disable import/extensions */
2
+ /* eslint-disable import-x/extensions */
3
3
  /* eslint-disable @typescript-eslint/no-namespace */
4
4
  /* eslint-disable @typescript-eslint/member-ordering */
5
5
  /* eslint-disable line-comment-position */
6
6
  /* eslint-disable @typescript-eslint/unified-signatures */
7
7
  /* eslint-disable no-var */
8
- /* eslint-disable import/namespace */
8
+ /* eslint-disable import-x/namespace */
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
11
  import type {PaymentIconProps$1} from './components-shared.d.ts';
12
12
 
13
+ /**
14
+ * Used when an element does not have children.
15
+ */
16
+ export interface BaseElementProps<TClass = HTMLElement> {
17
+ key?: preact.Key;
18
+ ref?: preact.Ref<TClass>;
19
+ slot?: Lowercase<string>;
20
+ }
21
+
22
+ declare const tagName = "s-payment-icon";
13
23
  export interface PaymentIconProps extends PaymentIconProps$1 {
14
24
  }
15
25
  export interface PaymentIconElement extends PaymentIconProps, Omit<HTMLElement, 'id'> {
16
26
  }
17
27
  declare global {
18
28
  interface HTMLElementTagNameMap {
19
- 's-payment-icon': PaymentIconElement;
29
+ [tagName]: PaymentIconElement;
20
30
  }
21
31
  }
22
32
  declare module 'preact' {
23
- interface BaseProps {
24
- slot?: Lowercase<string>;
25
- }
26
33
  namespace createElement.JSX {
27
34
  interface IntrinsicElements {
28
- 's-payment-icon': PaymentIconProps & BaseProps;
35
+ [tagName]: PaymentIconProps & BaseElementProps<PaymentIconElement>;
29
36
  }
30
37
  }
31
38
  }
@@ -0,0 +1,2 @@
1
+ <s-phone-field label="Phone number" placeholder="Enter your phone number">
2
+ </s-phone-field>
@@ -0,0 +1,84 @@
1
+ /** VERSION: 0.0.0 **/
2
+ /* eslint-disable import-x/extensions */
3
+ /* eslint-disable @typescript-eslint/no-namespace */
4
+ /* eslint-disable @typescript-eslint/member-ordering */
5
+ /* eslint-disable line-comment-position */
6
+ /* eslint-disable @typescript-eslint/unified-signatures */
7
+ /* eslint-disable no-var */
8
+ /* eslint-disable import-x/namespace */
9
+ // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
+ /// <reference lib="DOM" />
11
+ import type {PhoneFieldProps$1} from './components-shared.d.ts';
12
+ import { ReactNode } from 'react';
13
+
14
+ /**
15
+ * Used when an element does not have children.
16
+ */
17
+ export interface BaseElementProps<TClass = HTMLElement> {
18
+ key?: preact.Key;
19
+ ref?: preact.Ref<TClass>;
20
+ slot?: Lowercase<string>;
21
+ }
22
+ export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
23
+ currentTarget: HTMLElementTagNameMap[TTagName];
24
+ };
25
+
26
+ declare const tagName = "s-phone-field";
27
+ export interface PhoneFieldBaseProps extends Pick<PhoneFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'name' | 'placeholder' | 'readOnly' | 'required' | 'value' | 'type'> {
28
+ }
29
+ export interface PhoneFieldEvents extends Pick<PhoneFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
30
+ }
31
+ export interface PhoneFieldElementEvents {
32
+ /**
33
+ * Callback when the element loses focus.
34
+ */
35
+ blur?: ((event: CallbackEvent<typeof tagName>) => void) | null;
36
+ /**
37
+ * Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
38
+ */
39
+ change?: ((event: CallbackEvent<typeof tagName>) => void) | null;
40
+ /**
41
+ * Callback when the element receives focus.
42
+ */
43
+ focus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
44
+ /**
45
+ * Callback when the user makes any changes in the field.
46
+ */
47
+ input?: ((event: CallbackEvent<typeof tagName>) => void) | null;
48
+ }
49
+ export interface PhoneFieldSlots extends Pick<PhoneFieldProps$1, 'accessory'> {
50
+ /**
51
+ * Additional content to be displayed in the field.
52
+ * Commonly used to display an icon that activates a tooltip providing more information.
53
+ */
54
+ accessory?: ReactNode;
55
+ }
56
+ export interface PhoneFieldElementSlots {
57
+ /**
58
+ * Additional content to be displayed in the field.
59
+ * Commonly used to display an icon that activates a tooltip providing more information.
60
+ */
61
+ accessory?: HTMLElement;
62
+ }
63
+ export interface PhoneFieldElement extends PhoneFieldBaseProps, PhoneFieldSlots, Omit<PhoneFieldEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
64
+ onblur: PhoneFieldEvents['onBlur'];
65
+ onchange: PhoneFieldEvents['onChange'];
66
+ onfocus: PhoneFieldEvents['onFocus'];
67
+ oninput: PhoneFieldEvents['onInput'];
68
+ }
69
+ export interface PhoneFieldProps extends PhoneFieldBaseProps, PhoneFieldSlots, PhoneFieldEvents {
70
+ }
71
+ declare global {
72
+ interface HTMLElementTagNameMap {
73
+ [tagName]: PhoneFieldElement;
74
+ }
75
+ }
76
+ declare module 'preact' {
77
+ namespace createElement.JSX {
78
+ interface IntrinsicElements {
79
+ [tagName]: PhoneFieldProps & BaseElementProps<PhoneFieldElement>;
80
+ }
81
+ }
82
+ }
83
+
84
+ export type { PhoneFieldBaseProps, PhoneFieldElement, PhoneFieldElementEvents, PhoneFieldElementSlots, PhoneFieldEvents, PhoneFieldProps, PhoneFieldSlots };
@@ -0,0 +1,4 @@
1
+ <s-product-thumbnail
2
+ src="https://cdn.shopify.com/YOUR_IMAGE_HERE"
3
+ totalitems="1"
4
+ ></s-product-thumbnail>