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

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 (415) 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/AdminAction.d.ts +1 -1
  14. package/build/ts/surfaces/admin/components/AdminBlock.d.ts +1 -1
  15. package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  16. package/build/ts/surfaces/admin/components/Badge.d.ts +1 -1
  17. package/build/ts/surfaces/admin/components/Banner.d.ts +1 -1
  18. package/build/ts/surfaces/admin/components/Box.d.ts +1 -1
  19. package/build/ts/surfaces/admin/components/Button.d.ts +1 -1
  20. package/build/ts/surfaces/admin/components/Checkbox.d.ts +1 -1
  21. package/build/ts/surfaces/admin/components/Choice.d.ts +1 -1
  22. package/build/ts/surfaces/admin/components/ChoiceList.d.ts +1 -1
  23. package/build/ts/surfaces/admin/components/Clickable.d.ts +1 -1
  24. package/build/ts/surfaces/admin/components/DatePicker.d.ts +1 -1
  25. package/build/ts/surfaces/admin/components/Divider.d.ts +1 -1
  26. package/build/ts/surfaces/admin/components/EmailField.d.ts +1 -1
  27. package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
  28. package/build/ts/surfaces/admin/components/Grid.d.ts +1 -1
  29. package/build/ts/surfaces/admin/components/GridItem.d.ts +1 -1
  30. package/build/ts/surfaces/admin/components/Heading.d.ts +1 -1
  31. package/build/ts/surfaces/admin/components/Icon.d.ts +1 -1
  32. package/build/ts/surfaces/admin/components/Image.d.ts +1 -1
  33. package/build/ts/surfaces/admin/components/Link.d.ts +1 -1
  34. package/build/ts/surfaces/admin/components/ListItem.d.ts +1 -1
  35. package/build/ts/surfaces/admin/components/MoneyField.d.ts +1 -1
  36. package/build/ts/surfaces/admin/components/NumberField.d.ts +1 -1
  37. package/build/ts/surfaces/admin/components/Option.d.ts +1 -1
  38. package/build/ts/surfaces/admin/components/OptionGroup.d.ts +1 -1
  39. package/build/ts/surfaces/admin/components/OrderedList.d.ts +1 -1
  40. package/build/ts/surfaces/admin/components/Page.d.ts +1 -1
  41. package/build/ts/surfaces/admin/components/Paragraph.d.ts +1 -1
  42. package/build/ts/surfaces/admin/components/PasswordField.d.ts +1 -1
  43. package/build/ts/surfaces/admin/components/QueryContainer.d.ts +1 -1
  44. package/build/ts/surfaces/admin/components/SearchField.d.ts +1 -1
  45. package/build/ts/surfaces/admin/components/Section.d.ts +1 -1
  46. package/build/ts/surfaces/admin/components/Select.d.ts +1 -1
  47. package/build/ts/surfaces/admin/components/Spinner.d.ts +1 -1
  48. package/build/ts/surfaces/admin/components/Stack.d.ts +1 -1
  49. package/build/ts/surfaces/admin/components/StandardComponents.d.ts +1 -1
  50. package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
  51. package/build/ts/surfaces/admin/components/Switch.d.ts +1 -1
  52. package/build/ts/surfaces/admin/components/Table.d.ts +1 -1
  53. package/build/ts/surfaces/admin/components/TableBody.d.ts +1 -1
  54. package/build/ts/surfaces/admin/components/TableCell.d.ts +1 -1
  55. package/build/ts/surfaces/admin/components/TableHeader.d.ts +1 -1
  56. package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
  57. package/build/ts/surfaces/admin/components/TableRow.d.ts +1 -1
  58. package/build/ts/surfaces/admin/components/Text.d.ts +1 -1
  59. package/build/ts/surfaces/admin/components/TextArea.d.ts +1 -1
  60. package/build/ts/surfaces/admin/components/TextField.d.ts +1 -1
  61. package/build/ts/surfaces/admin/components/Thumbnail.d.ts +133 -0
  62. package/build/ts/surfaces/admin/components/URLField.d.ts +1 -1
  63. package/build/ts/surfaces/admin/components/UnorderedList.d.ts +1 -1
  64. package/build/ts/surfaces/admin/components/patterns/details.ab.doc.d.ts +4 -0
  65. package/build/ts/surfaces/admin/components/patterns/details.ab.doc.d.ts.map +1 -0
  66. package/build/ts/surfaces/admin/components/patterns/homepage.ab.doc.d.ts +4 -0
  67. package/build/ts/surfaces/admin/components/patterns/homepage.ab.doc.d.ts.map +1 -0
  68. package/build/ts/surfaces/admin/components/patterns/index.ab.doc.d.ts +4 -0
  69. package/build/ts/surfaces/admin/components/patterns/index.ab.doc.d.ts.map +1 -0
  70. package/build/ts/surfaces/admin/components/patterns/settings.ab.doc.d.ts +4 -0
  71. package/build/ts/surfaces/admin/components/patterns/settings.ab.doc.d.ts.map +1 -0
  72. package/build/ts/surfaces/admin/components/shared.d.ts +25 -1
  73. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +54 -1
  74. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +54 -1
  75. package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +54 -1
  76. package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +54 -1
  77. package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +54 -1
  78. package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +54 -1
  79. package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +54 -1
  80. package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +54 -1
  81. package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +54 -1
  82. package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +54 -1
  83. package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +54 -1
  84. package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +54 -1
  85. package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +54 -1
  86. package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +54 -1
  87. package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +54 -1
  88. package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +54 -1
  89. package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +54 -1
  90. package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +54 -1
  91. package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +54 -1
  92. package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +54 -1
  93. package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +54 -1
  94. package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +54 -1
  95. package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +54 -1
  96. package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +54 -1
  97. package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +54 -1
  98. package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +54 -1
  99. package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +54 -1
  100. package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +54 -1
  101. package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +54 -1
  102. package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +54 -1
  103. package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +54 -1
  104. package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +54 -1
  105. package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +54 -1
  106. package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +54 -1
  107. package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +54 -1
  108. package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +54 -1
  109. package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +54 -1
  110. package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +54 -1
  111. package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +54 -1
  112. package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +54 -1
  113. package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +54 -1
  114. package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +54 -1
  115. package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +54 -1
  116. package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +54 -1
  117. package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +54 -1
  118. package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +54 -1
  119. package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +54 -1
  120. package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +54 -1
  121. package/build/ts/surfaces/checkout/components/Abbreviation.d.ts +20 -8
  122. package/build/ts/surfaces/checkout/components/Banner/Banner.doc.d.ts.map +1 -1
  123. package/build/ts/surfaces/checkout/components/Banner.d.ts +52 -13
  124. package/build/ts/surfaces/checkout/components/Box.d.ts +20 -9
  125. package/build/ts/surfaces/checkout/components/Button/Button.doc.d.ts.map +1 -1
  126. package/build/ts/surfaces/checkout/components/Button.d.ts +39 -13
  127. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts +4 -0
  128. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts.map +1 -0
  129. package/build/ts/surfaces/checkout/components/Checkbox.d.ts +54 -0
  130. package/build/ts/surfaces/checkout/components/ClipboardItem.d.ts +36 -9
  131. package/build/ts/surfaces/checkout/components/DropZone/DropZone.doc.d.ts.map +1 -1
  132. package/build/ts/surfaces/checkout/components/DropZone.d.ts +36 -9
  133. package/build/ts/surfaces/checkout/components/EmailField/EmailField.doc.d.ts +4 -0
  134. package/build/ts/surfaces/checkout/components/EmailField/EmailField.doc.d.ts.map +1 -0
  135. package/build/ts/surfaces/checkout/components/EmailField.d.ts +69 -0
  136. package/build/ts/surfaces/checkout/components/Form.d.ts +40 -12
  137. package/build/ts/surfaces/checkout/components/Heading.d.ts +20 -8
  138. package/build/ts/surfaces/checkout/components/Icon.d.ts +22 -9
  139. package/build/ts/surfaces/checkout/components/Image.d.ts +13 -7
  140. package/build/ts/surfaces/checkout/components/Link/Link.doc.d.ts.map +1 -1
  141. package/build/ts/surfaces/checkout/components/Link.d.ts +39 -13
  142. package/build/ts/surfaces/checkout/components/ListItem.d.ts +22 -10
  143. package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts +4 -0
  144. package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts.map +1 -0
  145. package/build/ts/surfaces/checkout/components/Map.d.ts +75 -0
  146. package/build/ts/surfaces/checkout/components/MapMarker.d.ts +73 -0
  147. package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts +4 -0
  148. package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +1 -0
  149. package/build/ts/surfaces/checkout/components/Modal.d.ts +87 -0
  150. package/build/ts/surfaces/checkout/components/OrderedList.d.ts +20 -8
  151. package/build/ts/surfaces/checkout/components/Paragraph.d.ts +20 -8
  152. package/build/ts/surfaces/checkout/components/PaymentIcon.d.ts +14 -7
  153. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts +4 -0
  154. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts.map +1 -0
  155. package/build/ts/surfaces/checkout/components/PhoneField.d.ts +84 -0
  156. package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts +4 -0
  157. package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts.map +1 -0
  158. package/build/ts/surfaces/checkout/components/Progress.d.ts +14 -4
  159. package/build/ts/surfaces/checkout/components/QRCode/QRCode.doc.d.ts.map +1 -1
  160. package/build/ts/surfaces/checkout/components/QRCode.d.ts +32 -8
  161. package/build/ts/surfaces/checkout/components/Section.d.ts +20 -8
  162. package/build/ts/surfaces/checkout/components/Spinner.d.ts +14 -4
  163. package/build/ts/surfaces/checkout/components/Stack.d.ts +20 -9
  164. package/build/ts/surfaces/checkout/components/Text.d.ts +20 -8
  165. package/build/ts/surfaces/checkout/components/TextArea/TextArea.doc.d.ts +4 -0
  166. package/build/ts/surfaces/checkout/components/TextArea/TextArea.doc.d.ts.map +1 -0
  167. package/build/ts/surfaces/checkout/components/TextArea.d.ts +69 -0
  168. package/build/ts/surfaces/checkout/components/TextField/TextField.doc.d.ts.map +1 -1
  169. package/build/ts/surfaces/checkout/components/TextField.d.ts +72 -21
  170. package/build/ts/surfaces/checkout/components/Time.d.ts +20 -8
  171. package/build/ts/surfaces/checkout/components/UnorderedList.d.ts +20 -8
  172. package/build/ts/surfaces/checkout/components/components-shared.d.ts +486 -2
  173. package/build/ts/surfaces/checkout/components/components.d.ts +1000 -166
  174. package/build/ts/surfaces/checkout/shared.d.ts +1 -1
  175. package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
  176. package/build/ts/surfaces/checkout/targets/Checkout::Actions::RenderBefore.d.ts +918 -172
  177. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +918 -172
  178. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +918 -172
  179. package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +918 -172
  180. package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +918 -172
  181. package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +918 -172
  182. package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +918 -172
  183. package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +918 -172
  184. package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +863 -155
  185. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +863 -155
  186. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +863 -155
  187. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +918 -172
  188. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +918 -172
  189. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +918 -172
  190. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +918 -172
  191. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +918 -172
  192. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +918 -172
  193. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +918 -172
  194. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +918 -172
  195. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +918 -172
  196. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +918 -172
  197. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +918 -172
  198. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +918 -172
  199. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +918 -172
  200. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +918 -172
  201. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +918 -172
  202. package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +918 -172
  203. package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +918 -172
  204. package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +918 -172
  205. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +918 -172
  206. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +918 -172
  207. package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +918 -172
  208. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +918 -172
  209. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +918 -172
  210. package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +918 -172
  211. package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +863 -155
  212. package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +918 -172
  213. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +918 -172
  214. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +918 -172
  215. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +918 -172
  216. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +863 -155
  217. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +918 -172
  218. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +918 -172
  219. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +918 -172
  220. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +918 -172
  221. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +918 -172
  222. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +918 -172
  223. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +918 -172
  224. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +918 -172
  225. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +918 -172
  226. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +918 -172
  227. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +918 -172
  228. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +918 -172
  229. package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +918 -172
  230. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +918 -172
  231. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +918 -172
  232. package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +918 -172
  233. package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +918 -172
  234. package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +918 -172
  235. package/build/ts/surfaces/customer-account/components/Abbreviation.d.ts +20 -8
  236. package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts +4 -0
  237. package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -0
  238. package/build/ts/surfaces/customer-account/components/Avatar.d.ts +66 -0
  239. package/build/ts/surfaces/customer-account/components/Banner.d.ts +52 -13
  240. package/build/ts/surfaces/customer-account/components/Box.d.ts +20 -9
  241. package/build/ts/surfaces/customer-account/components/Button.d.ts +39 -13
  242. package/build/ts/surfaces/customer-account/components/Checkbox.d.ts +54 -0
  243. package/build/ts/surfaces/customer-account/components/ClipboardItem.d.ts +36 -9
  244. package/build/ts/surfaces/customer-account/components/DropZone.d.ts +36 -9
  245. package/build/ts/surfaces/customer-account/components/EmailField.d.ts +69 -0
  246. package/build/ts/surfaces/customer-account/components/Form.d.ts +40 -12
  247. package/build/ts/surfaces/customer-account/components/Heading.d.ts +20 -8
  248. package/build/ts/surfaces/customer-account/components/Icon.d.ts +22 -9
  249. package/build/ts/surfaces/customer-account/components/Image.d.ts +13 -7
  250. package/build/ts/surfaces/customer-account/components/Link.d.ts +39 -13
  251. package/build/ts/surfaces/customer-account/components/ListItem.d.ts +22 -10
  252. package/build/ts/surfaces/customer-account/components/Map.d.ts +75 -0
  253. package/build/ts/surfaces/customer-account/components/MapMarker.d.ts +73 -0
  254. package/build/ts/surfaces/customer-account/components/Modal.d.ts +87 -0
  255. package/build/ts/surfaces/customer-account/components/OrderedList.d.ts +20 -8
  256. package/build/ts/surfaces/customer-account/components/Paragraph.d.ts +20 -8
  257. package/build/ts/surfaces/customer-account/components/PaymentIcon.d.ts +14 -7
  258. package/build/ts/surfaces/customer-account/components/PhoneField.d.ts +84 -0
  259. package/build/ts/surfaces/customer-account/components/Progress.d.ts +14 -4
  260. package/build/ts/surfaces/customer-account/components/QRCode.d.ts +32 -8
  261. package/build/ts/surfaces/customer-account/components/Section.d.ts +20 -8
  262. package/build/ts/surfaces/customer-account/components/Spinner.d.ts +14 -4
  263. package/build/ts/surfaces/customer-account/components/Stack.d.ts +20 -9
  264. package/build/ts/surfaces/customer-account/components/StandardComponents.d.ts +1 -1
  265. package/build/ts/surfaces/customer-account/components/StandardComponents.d.ts.map +1 -1
  266. package/build/ts/surfaces/customer-account/components/Text.d.ts +20 -8
  267. package/build/ts/surfaces/customer-account/components/TextArea.d.ts +69 -0
  268. package/build/ts/surfaces/customer-account/components/TextField.d.ts +72 -21
  269. package/build/ts/surfaces/customer-account/components/Time.d.ts +20 -8
  270. package/build/ts/surfaces/customer-account/components/UnorderedList.d.ts +20 -8
  271. package/build/ts/surfaces/customer-account/components/components-shared.d.ts +486 -2
  272. package/build/ts/surfaces/customer-account/components/components.d.ts +1000 -166
  273. package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +979 -173
  274. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +979 -173
  275. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +979 -173
  276. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +979 -173
  277. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +979 -173
  278. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +979 -173
  279. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +979 -173
  280. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +979 -173
  281. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +979 -173
  282. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +979 -173
  283. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +979 -173
  284. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +979 -173
  285. package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +979 -173
  286. package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +979 -173
  287. package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +979 -173
  288. package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +979 -173
  289. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +979 -173
  290. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +979 -173
  291. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +979 -173
  292. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +979 -173
  293. package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +979 -173
  294. package/build/tsconfig.tsbuildinfo +1 -1
  295. package/package.json +1 -1
  296. package/src/docs/shared/components/Map.ts +12 -0
  297. package/src/docs/shared/components/MapMarker.ts +12 -0
  298. package/src/docs/shared/components/Modal.ts +12 -0
  299. package/src/docs/shared/components/Option.ts +12 -0
  300. package/src/docs/shared/components/PhoneField.ts +11 -0
  301. package/src/docs/shared/components/ProductThumbnail.ts +11 -0
  302. package/src/surfaces/admin/components/AdminAction.d.ts +1 -1
  303. package/src/surfaces/admin/components/AdminBlock.d.ts +1 -1
  304. package/src/surfaces/admin/components/AdminPrintAction/examples/default.tsx +1 -1
  305. package/src/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  306. package/src/surfaces/admin/components/Badge.d.ts +1 -1
  307. package/src/surfaces/admin/components/Banner.d.ts +1 -1
  308. package/src/surfaces/admin/components/Box.d.ts +1 -1
  309. package/src/surfaces/admin/components/Button.d.ts +1 -1
  310. package/src/surfaces/admin/components/Checkbox.d.ts +1 -1
  311. package/src/surfaces/admin/components/Choice.d.ts +1 -1
  312. package/src/surfaces/admin/components/ChoiceList.d.ts +1 -1
  313. package/src/surfaces/admin/components/Clickable.d.ts +1 -1
  314. package/src/surfaces/admin/components/DatePicker.d.ts +1 -1
  315. package/src/surfaces/admin/components/Divider.d.ts +1 -1
  316. package/src/surfaces/admin/components/EmailField.d.ts +1 -1
  317. package/src/surfaces/admin/components/Form.d.ts +1 -1
  318. package/src/surfaces/admin/components/Grid.d.ts +1 -1
  319. package/src/surfaces/admin/components/GridItem.d.ts +1 -1
  320. package/src/surfaces/admin/components/Heading.d.ts +1 -1
  321. package/src/surfaces/admin/components/Icon.d.ts +1 -1
  322. package/src/surfaces/admin/components/Image.d.ts +1 -1
  323. package/src/surfaces/admin/components/Link.d.ts +1 -1
  324. package/src/surfaces/admin/components/ListItem.d.ts +1 -1
  325. package/src/surfaces/admin/components/MoneyField.d.ts +1 -1
  326. package/src/surfaces/admin/components/NumberField.d.ts +1 -1
  327. package/src/surfaces/admin/components/Option.d.ts +1 -1
  328. package/src/surfaces/admin/components/OptionGroup.d.ts +1 -1
  329. package/src/surfaces/admin/components/OrderedList.d.ts +1 -1
  330. package/src/surfaces/admin/components/Page.d.ts +1 -1
  331. package/src/surfaces/admin/components/Paragraph.d.ts +1 -1
  332. package/src/surfaces/admin/components/PasswordField.d.ts +1 -1
  333. package/src/surfaces/admin/components/QueryContainer.d.ts +1 -1
  334. package/src/surfaces/admin/components/SearchField.d.ts +1 -1
  335. package/src/surfaces/admin/components/Section.d.ts +1 -1
  336. package/src/surfaces/admin/components/Select.d.ts +1 -1
  337. package/src/surfaces/admin/components/Spinner.d.ts +1 -1
  338. package/src/surfaces/admin/components/Stack.d.ts +1 -1
  339. package/src/surfaces/admin/components/StandardComponents.ts +1 -0
  340. package/src/surfaces/admin/components/Switch.d.ts +1 -1
  341. package/src/surfaces/admin/components/Table.d.ts +1 -1
  342. package/src/surfaces/admin/components/TableBody.d.ts +1 -1
  343. package/src/surfaces/admin/components/TableCell.d.ts +1 -1
  344. package/src/surfaces/admin/components/TableHeader.d.ts +1 -1
  345. package/src/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
  346. package/src/surfaces/admin/components/TableRow.d.ts +1 -1
  347. package/src/surfaces/admin/components/Text.d.ts +1 -1
  348. package/src/surfaces/admin/components/TextArea.d.ts +1 -1
  349. package/src/surfaces/admin/components/TextField.d.ts +1 -1
  350. package/src/surfaces/admin/components/Thumbnail.d.ts +133 -0
  351. package/src/surfaces/admin/components/URLField.d.ts +1 -1
  352. package/src/surfaces/admin/components/UnorderedList.d.ts +1 -1
  353. package/src/surfaces/admin/components/patterns/examples/details.html +228 -0
  354. package/src/surfaces/admin/components/patterns/examples/details.jsx +262 -0
  355. package/src/surfaces/admin/components/patterns/examples/homepage.html +587 -0
  356. package/src/surfaces/admin/components/patterns/examples/homepage.jsx +691 -0
  357. package/src/surfaces/admin/components/patterns/examples/index.html +143 -0
  358. package/src/surfaces/admin/components/patterns/examples/index.jsx +162 -0
  359. package/src/surfaces/admin/components/patterns/examples/settings.html +241 -0
  360. package/src/surfaces/admin/components/patterns/examples/settings.jsx +349 -0
  361. package/src/surfaces/admin/components/patterns/index.ab.doc.ts +82 -0
  362. package/src/surfaces/admin/components/shared.d.ts +25 -1
  363. package/src/surfaces/admin/components.d.ts +672 -202
  364. package/src/surfaces/checkout/components/Abbreviation.d.ts +20 -8
  365. package/src/surfaces/checkout/components/Banner.d.ts +52 -13
  366. package/src/surfaces/checkout/components/Box.d.ts +20 -9
  367. package/src/surfaces/checkout/components/Button.d.ts +39 -13
  368. package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.html +1 -0
  369. package/src/surfaces/checkout/components/Checkbox.d.ts +54 -0
  370. package/src/surfaces/checkout/components/ClipboardItem.d.ts +36 -9
  371. package/src/surfaces/checkout/components/DropZone.d.ts +36 -9
  372. package/src/surfaces/checkout/components/EmailField/examples/basic-emailfield.example.html +4 -0
  373. package/src/surfaces/checkout/components/EmailField.d.ts +69 -0
  374. package/src/surfaces/checkout/components/Form.d.ts +40 -12
  375. package/src/surfaces/checkout/components/Heading.d.ts +20 -8
  376. package/src/surfaces/checkout/components/Icon.d.ts +22 -9
  377. package/src/surfaces/checkout/components/Image.d.ts +13 -7
  378. package/src/surfaces/checkout/components/Link.d.ts +39 -13
  379. package/src/surfaces/checkout/components/ListItem.d.ts +22 -10
  380. package/src/surfaces/checkout/components/Map/examples/basic-map.example.html +3 -0
  381. package/src/surfaces/checkout/components/Map.d.ts +75 -0
  382. package/src/surfaces/checkout/components/MapMarker.d.ts +73 -0
  383. package/src/surfaces/checkout/components/Modal/examples/basic-modal.example.html +20 -0
  384. package/src/surfaces/checkout/components/Modal.d.ts +87 -0
  385. package/src/surfaces/checkout/components/OrderedList.d.ts +20 -8
  386. package/src/surfaces/checkout/components/Paragraph.d.ts +20 -8
  387. package/src/surfaces/checkout/components/PaymentIcon.d.ts +14 -7
  388. package/src/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.html +2 -0
  389. package/src/surfaces/checkout/components/PhoneField.d.ts +84 -0
  390. package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-productthumbnail.example.html +4 -0
  391. package/src/surfaces/checkout/components/Progress.d.ts +14 -4
  392. package/src/surfaces/checkout/components/QRCode.d.ts +32 -8
  393. package/src/surfaces/checkout/components/Section.d.ts +20 -8
  394. package/src/surfaces/checkout/components/Spinner.d.ts +14 -4
  395. package/src/surfaces/checkout/components/Stack.d.ts +20 -9
  396. package/src/surfaces/checkout/components/Text.d.ts +20 -8
  397. package/src/surfaces/checkout/components/TextArea/examples/basic-textarea.example.html +5 -0
  398. package/src/surfaces/checkout/components/TextArea.d.ts +69 -0
  399. package/src/surfaces/checkout/components/TextField.d.ts +72 -21
  400. package/src/surfaces/checkout/components/Time.d.ts +20 -8
  401. package/src/surfaces/checkout/components/UnorderedList.d.ts +20 -8
  402. package/src/surfaces/checkout/components/components-shared.d.ts +486 -2
  403. package/src/surfaces/checkout/components/components.d.ts +1000 -166
  404. package/src/surfaces/checkout/shared.ts +8 -0
  405. package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-js.example.ts +9 -0
  406. package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-preact.example.tsx +9 -0
  407. package/src/surfaces/customer-account/components/Avatar.d.ts +66 -0
  408. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-js.example.ts +1 -1
  409. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-preact.example.tsx +1 -1
  410. package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-js.example.ts +1 -1
  411. package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-preact.example.tsx +1 -1
  412. package/src/surfaces/customer-account/components/Page/examples/basic-Page-js.example.ts +1 -1
  413. package/src/surfaces/customer-account/components/Page/examples/basic-Page-preact.example.tsx +1 -1
  414. package/src/surfaces/customer-account/components/StandardComponents.ts +1 -0
  415. package/src/surfaces/customer-account/components.d.ts +67 -0
@@ -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,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 };
@@ -1,15 +1,25 @@
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 {ProgressProps$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-progress";
13
23
  export interface ProgressProps extends Pick<ProgressProps$1, 'accessibilityLabel' | 'id' | 'max' | 'tone' | 'value'> {
14
24
  tone?: Extract<ProgressProps$1['tone'], 'auto' | 'critical'>;
15
25
  }
@@ -17,13 +27,13 @@ export interface ProgressElement extends ProgressProps, Omit<HTMLElement, 'id'>
17
27
  }
18
28
  declare global {
19
29
  interface HTMLElementTagNameMap {
20
- 's-progress': ProgressElement;
30
+ [tagName]: ProgressElement;
21
31
  }
22
32
  }
23
33
  declare module 'preact' {
24
34
  namespace createElement.JSX {
25
35
  interface IntrinsicElements {
26
- 's-progress': ProgressProps;
36
+ [tagName]: ProgressProps & BaseElementProps<ProgressElement>;
27
37
  }
28
38
  }
29
39
  }
@@ -1,31 +1,55 @@
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 {QRCodeProps$1} from './components-shared.d.ts';
12
12
 
13
- export interface QRCodeProps extends QRCodeProps$1 {
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>;
14
20
  }
15
- export interface QRCodelement extends Omit<QRCodeProps, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
16
- onerror: QRCodeProps['onError'];
21
+ export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
22
+ currentTarget: HTMLElementTagNameMap[TTagName];
23
+ };
24
+
25
+ declare const tagName = "s-qr-code";
26
+ export interface QRCodeBaseProps extends QRCodeProps$1 {
27
+ }
28
+ export interface QRCodeEvents extends Pick<QRCodeProps$1, 'onError'> {
29
+ }
30
+ export interface QRCodeElementEvents {
31
+ /**
32
+ * Invoked when the conversion of `content` to a QR code fails.
33
+ * If an error occurs, the QR code and its child elements will not be displayed.
34
+ */
35
+ error?: ((event: CallbackEvent<typeof tagName>) => void) | null;
36
+ }
37
+ export interface QRCodelement extends QRCodeBaseProps, Omit<QRCodeEvents, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
38
+ onerror: QRCodeEvents['onError'];
39
+ }
40
+ export interface QRCodeProps extends QRCodeBaseProps, QRCodeEvents {
17
41
  }
18
42
  declare global {
19
43
  interface HTMLElementTagNameMap {
20
- 's-qr-code': QRCodelement;
44
+ [tagName]: QRCodelement;
21
45
  }
22
46
  }
23
47
  declare module 'preact' {
24
48
  namespace createElement.JSX {
25
49
  interface IntrinsicElements {
26
- 's-qr-code': QRCodeProps;
50
+ [tagName]: QRCodeProps & BaseElementProps<QRCodelement>;
27
51
  }
28
52
  }
29
53
  }
30
54
 
31
- export type { QRCodeProps, QRCodelement };
55
+ export type { QRCodeBaseProps, QRCodeElementEvents, QRCodeEvents, QRCodeProps, QRCodelement };
@@ -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 {SectionProps$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-section";
13
29
  export interface SectionProps extends Pick<SectionProps$1, 'accessibilityLabel' | 'heading' | 'id'> {
14
30
  }
15
31
  export interface SectionElement extends SectionProps, Omit<HTMLElement, 'id'> {
16
32
  }
17
33
  declare global {
18
34
  interface HTMLElementTagNameMap {
19
- 's-section': SectionElement;
35
+ [tagName]: SectionElement;
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-section': SectionProps & BaseProps;
41
+ [tagName]: SectionProps & BaseElementPropsWithChildren<SectionElement>;
30
42
  }
31
43
  }
32
44
  }
@@ -1,15 +1,25 @@
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 {SpinnerProps$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-spinner";
13
23
  export interface SpinnerProps extends SpinnerProps$1 {
14
24
  size?: Extract<SpinnerProps$1['size'], 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
15
25
  }
@@ -17,13 +27,13 @@ export interface SpinnerElement extends SpinnerProps, Omit<HTMLElement, 'id'> {
17
27
  }
18
28
  declare global {
19
29
  interface HTMLElementTagNameMap {
20
- 's-spinner': SpinnerElement;
30
+ [tagName]: SpinnerElement;
21
31
  }
22
32
  }
23
33
  declare module 'preact' {
24
34
  namespace createElement.JSX {
25
35
  interface IntrinsicElements {
26
- 's-spinner': SpinnerProps;
36
+ [tagName]: SpinnerProps & BaseElementProps<SpinnerElement>;
27
37
  }
28
38
  }
29
39
  }
@@ -1,11 +1,11 @@
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 {StackProps$1,MaybeAllValuesShorthandProperty,BorderSizeKeyword, BorderStyleKeyword,ColorKeyword} from './components-shared.d.ts';
@@ -13,8 +13,23 @@ import type {StackProps$1,MaybeAllValuesShorthandProperty,BorderSizeKeyword, Bor
13
13
  export type ReducedBorderSizeKeyword = Extract<BorderSizeKeyword, 'none' | 'base' | 'large' | 'large-100' | 'large-200'>;
14
14
  export type ReducedColorKeyword = Extract<ColorKeyword, 'base'>;
15
15
  export type BorderShorthand = ReducedBorderSizeKeyword | `${ReducedBorderSizeKeyword} ${ReducedColorKeyword}` | `${ReducedBorderSizeKeyword} ${ReducedColorKeyword} ${BorderStyleKeyword}`;
16
+ /**
17
+ * Used when an element does not have children.
18
+ */
19
+ export interface BaseElementProps<TClass = HTMLElement> {
20
+ key?: preact.Key;
21
+ ref?: preact.Ref<TClass>;
22
+ slot?: Lowercase<string>;
23
+ }
24
+ /**
25
+ * Used when an element has children.
26
+ */
27
+ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
28
+ children?: preact.ComponentChildren;
29
+ }
16
30
 
17
- export interface StackProps extends Pick<StackProps$1, 'accessibilityLabel' | 'accessibilityRole' | 'alignContent' | 'alignItems' | 'background' | 'border' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'columnGap' | 'direction' | 'display' | 'gap' | 'id' | 'justifyContent' | 'maxBlockSize' | 'maxInlineSize' | 'minBlockSize' | 'minInlineSize' | 'overflow' | 'padding' | 'paddingBlock' | 'paddingBlockEnd' | 'paddingBlockStart' | 'paddingInline' | 'paddingInlineEnd' | 'paddingInlineStart' | 'rowGap'> {
31
+ declare const tagName = "s-stack";
32
+ export interface StackProps extends Pick<StackProps$1, 'accessibilityLabel' | 'accessibilityRole' | 'alignContent' | 'alignItems' | 'background' | 'blockSize' | 'border' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'columnGap' | 'direction' | 'display' | 'gap' | 'id' | 'inlineSize' | 'justifyContent' | 'maxBlockSize' | 'maxInlineSize' | 'minBlockSize' | 'minInlineSize' | 'overflow' | 'padding' | 'paddingBlock' | 'paddingBlockEnd' | 'paddingBlockStart' | 'paddingInline' | 'paddingInlineEnd' | 'paddingInlineStart' | 'rowGap'> {
18
33
  accessibilityRole?: Extract<StackProps$1['accessibilityRole'], 'main' | 'header' | 'footer' | 'section' | 'aside' | 'navigation' | 'ordered-list' | 'list-item' | 'list-item-separator' | 'unordered-list' | 'separator' | 'status' | 'alert' | 'generic' | 'none'>;
19
34
  background?: Extract<StackProps$1['background'], 'transparent' | 'subdued' | 'base'>;
20
35
  border?: BorderShorthand;
@@ -28,17 +43,13 @@ export interface StackElement extends StackProps, Omit<HTMLElement, 'id'> {
28
43
  }
29
44
  declare global {
30
45
  interface HTMLElementTagNameMap {
31
- 's-stack': StackElement;
46
+ [tagName]: StackElement;
32
47
  }
33
48
  }
34
49
  declare module 'preact' {
35
- interface BaseProps {
36
- children?: preact.ComponentChildren;
37
- slot?: Lowercase<string>;
38
- }
39
50
  namespace createElement.JSX {
40
51
  interface IntrinsicElements {
41
- 's-stack': StackProps & BaseProps;
52
+ [tagName]: StackProps & BaseElementPropsWithChildren<StackElement>;
42
53
  }
43
54
  }
44
55
  }
@@ -1,4 +1,4 @@
1
1
  import { AnyComponent } from '../../checkout';
2
- export type StandardComponents = AnyComponent | 'Page' | 'CustomerAccountAction' | 'ImageGroup';
2
+ export type StandardComponents = AnyComponent | 'Page' | 'Avatar' | 'CustomerAccountAction' | 'ImageGroup';
3
3
  export default StandardComponents;
4
4
  //# sourceMappingURL=StandardComponents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StandardComponents.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/customer-account/components/StandardComponents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,kBAAkB,GAC1B,YAAY,GACZ,MAAM,GACN,uBAAuB,GACvB,YAAY,CAAC;AAEjB,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"StandardComponents.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/customer-account/components/StandardComponents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,kBAAkB,GAC1B,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,uBAAuB,GACvB,YAAY,CAAC;AAEjB,eAAe,kBAAkB,CAAC"}
@@ -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 {TextProps$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-text";
13
29
  export interface TextProps extends Pick<TextProps$1, 'accessibilityVisibility' | 'color' | 'dir' | 'display' | 'id' | 'lang' | 'tone' | 'type'> {
14
30
  color?: Extract<TextProps$1['color'], 'subdued' | 'base'>;
15
31
  tone?: Extract<TextProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
@@ -19,17 +35,13 @@ export interface TextElement extends TextProps, Omit<HTMLElement, 'id' | 'dir' |
19
35
  }
20
36
  declare global {
21
37
  interface HTMLElementTagNameMap {
22
- 's-text': TextElement;
38
+ [tagName]: TextElement;
23
39
  }
24
40
  }
25
41
  declare module 'preact' {
26
- interface BaseProps {
27
- children?: preact.ComponentChildren;
28
- slot?: Lowercase<string>;
29
- }
30
42
  namespace createElement.JSX {
31
43
  interface IntrinsicElements {
32
- 's-text': TextProps & BaseProps;
44
+ [tagName]: TextProps & BaseElementPropsWithChildren<TextElement>;
33
45
  }
34
46
  }
35
47
  }
@@ -0,0 +1,69 @@
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 {TextAreaProps$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
+ export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
22
+ currentTarget: HTMLElementTagNameMap[TTagName];
23
+ };
24
+
25
+ declare const tagName = "s-text-area";
26
+ export interface TextAreaBaseProps extends Pick<TextAreaProps$1, 'id' | 'label' | 'name' | 'placeholder' | 'required' | 'value' | 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'readOnly' | 'rows' | 'maxLength' | 'minLength' | 'labelAccessibilityVisibility'> {
27
+ }
28
+ export interface TextAreaEvents extends Pick<TextAreaProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
29
+ }
30
+ export interface TextAreaElementEvents {
31
+ /**
32
+ * Callback when the element loses focus.
33
+ */
34
+ blur?: ((event: CallbackEvent<typeof tagName>) => void) | null;
35
+ /**
36
+ * Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
37
+ */
38
+ change?: ((event: CallbackEvent<typeof tagName>) => void) | null;
39
+ /**
40
+ * Callback when the element receives focus.
41
+ */
42
+ focus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
43
+ /**
44
+ * Callback when the user makes any changes in the field.
45
+ */
46
+ input?: ((event: CallbackEvent<typeof tagName>) => void) | null;
47
+ }
48
+ export interface TextAreaElement extends TextAreaBaseProps, Omit<TextAreaEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput'> {
49
+ onblur: TextAreaEvents['onBlur'];
50
+ onchange: TextAreaEvents['onChange'];
51
+ onfocus: TextAreaEvents['onFocus'];
52
+ oninput: TextAreaEvents['onInput'];
53
+ }
54
+ export interface TextAreaProps extends TextAreaBaseProps, TextAreaEvents {
55
+ }
56
+ declare global {
57
+ interface HTMLElementTagNameMap {
58
+ [tagName]: TextAreaElement;
59
+ }
60
+ }
61
+ declare module 'preact' {
62
+ namespace createElement.JSX {
63
+ interface IntrinsicElements {
64
+ [tagName]: TextAreaProps & BaseElementProps<TextAreaElement>;
65
+ }
66
+ }
67
+ }
68
+
69
+ export type { TextAreaBaseProps, TextAreaElement, TextAreaElementEvents, TextAreaEvents, TextAreaProps };