@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
@@ -49,6 +49,66 @@ export interface CustomerAccountActionProps {
49
49
  heading: string;
50
50
  }
51
51
 
52
+ declare module 'preact' {
53
+ namespace createElement.JSX {
54
+ interface IntrinsicElements {
55
+ ['s-avatar']: BaseElementPropsWithChildren<AvatarElement> & AvatarProps;
56
+ }
57
+ }
58
+ }
59
+
60
+ declare global {
61
+ interface HTMLElementTagNameMap {
62
+ ['s-avatar']: AvatarElement;
63
+ }
64
+ }
65
+
66
+ export interface AvatarElement extends AvatarProps, Omit<HTMLElement, 'id'> {
67
+ }
68
+
69
+ export interface AvatarProps extends GlobalProps {
70
+ /**
71
+ * Initials to display in the avatar.
72
+ */
73
+ initials?: string;
74
+ /**
75
+ * The URL or path to the image.
76
+ *
77
+ * Initials will be rendered as a fallback if `src` is not provided, fails to load or does not load quickly.
78
+ */
79
+ src?: string;
80
+ /**
81
+ * Size of the avatar.
82
+ *
83
+ * @default 'base'
84
+ */
85
+ size?: Extract<Size, 'base' | 'large' | 'extraLarge' | 'fill'>;
86
+ /**
87
+ * An alternative text description that describe the image for the reader
88
+ * to understand what it is about or identify the user the avatar belongs to.
89
+ */
90
+ alt?: string;
91
+ /**
92
+ * Invoked when load of provided image completes successfully.
93
+ *
94
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onload
95
+ */
96
+ onLoad?(): void;
97
+ /**
98
+ * Invoked on load error of provided image.
99
+ *
100
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
101
+ */
102
+ onError?(): void;
103
+ }
104
+
105
+ interface GlobalProps {
106
+ /**
107
+ * A unique identifier for the element.
108
+ */
109
+ id?: string;
110
+ }
111
+
52
112
  declare module 'preact' {
53
113
  namespace createElement.JSX {
54
114
  interface IntrinsicElements {
@@ -78,21 +138,16 @@ export interface PageProps {
78
138
  }
79
139
 
80
140
  declare module 'preact' {
81
- interface BaseProps {
82
- children?: preact.ComponentChildren;
83
- slot?: Lowercase<string>;
84
- }
85
-
86
141
  namespace createElement.JSX {
87
142
  interface IntrinsicElements {
88
- 's-unordered-list': UnorderedListProps & BaseProps;
143
+ [UnorderedListtagName]: UnorderedListProps & UnorderedListBaseElementPropsWithChildren<UnorderedListElement>;
89
144
  }
90
145
  }
91
146
  }
92
147
 
93
148
  declare global {
94
149
  interface HTMLElementTagNameMap {
95
- 's-unordered-list': UnorderedListElement;
150
+ [UnorderedListtagName]: UnorderedListElement;
96
151
  }
97
152
  }
98
153
 
@@ -102,22 +157,29 @@ export interface UnorderedListElement extends UnorderedListProps, Omit<HTMLEleme
102
157
  export interface UnorderedListProps extends UnorderedListProps$1 {
103
158
  }
104
159
 
105
- declare module 'preact' {
106
- interface BaseProps {
107
- children?: preact.ComponentChildren;
108
- slot?: Lowercase<string>;
109
- }
160
+ export interface UnorderedListBaseElementPropsWithChildren<TClass = HTMLElement> extends UnorderedListBaseElementProps<TClass> {
161
+ children?: preact.ComponentChildren;
162
+ }
163
+
164
+ export interface UnorderedListBaseElementProps<TClass = HTMLElement> {
165
+ key?: preact.Key;
166
+ ref?: preact.Ref<TClass>;
167
+ slot?: Lowercase<string>;
168
+ }
110
169
 
170
+ declare const UnorderedListtagName = "s-unordered-list";
171
+
172
+ declare module 'preact' {
111
173
  namespace createElement.JSX {
112
174
  interface IntrinsicElements {
113
- 's-time': TimeProps & BaseProps;
175
+ [TimetagName]: TimeProps & TimeBaseElementPropsWithChildren<TimeElement>;
114
176
  }
115
177
  }
116
178
  }
117
179
 
118
180
  declare global {
119
181
  interface HTMLElementTagNameMap {
120
- 's-time': TimeElement;
182
+ [TimetagName]: TimeElement;
121
183
  }
122
184
  }
123
185
 
@@ -127,50 +189,95 @@ export interface TimeElement extends TimeProps, Omit<HTMLElement, 'id'> {
127
189
  export interface TimeProps extends Pick<TimeProps$1, 'dateTime'> {
128
190
  }
129
191
 
130
- declare module 'preact' {
131
- interface BaseProps {
132
- slot?: Lowercase<string>;
133
- }
192
+ export interface TimeBaseElementPropsWithChildren<TClass = HTMLElement> extends TimeBaseElementProps<TClass> {
193
+ children?: preact.ComponentChildren;
194
+ }
195
+
196
+ export interface TimeBaseElementProps<TClass = HTMLElement> {
197
+ key?: preact.Key;
198
+ ref?: preact.Ref<TClass>;
199
+ slot?: Lowercase<string>;
200
+ }
134
201
 
202
+ declare const TimetagName = "s-time";
203
+
204
+ declare module 'preact' {
135
205
  namespace createElement.JSX {
136
206
  interface IntrinsicElements {
137
- 's-text-field': TextFieldProps & BaseProps;
207
+ [TextFieldtagName]: TextFieldProps & TextFieldBaseElementProps<TextFieldElement>;
138
208
  }
139
209
  }
140
210
  }
141
211
 
142
212
  declare global {
143
213
  interface HTMLElementTagNameMap {
144
- 's-text-field': TextFieldElement;
214
+ [TextFieldtagName]: TextFieldElement;
145
215
  }
146
216
  }
147
217
 
148
218
  declare module 'preact' {
149
- interface BaseProps {
150
- slot?: Lowercase<string>;
151
- }
152
-
153
219
  namespace createElement.JSX {
154
220
  interface IntrinsicElements {
155
- 's-icon': TextFieldIconProps & BaseProps;
221
+ [TextFieldtagName$1]: TextFieldIconProps & TextFieldBaseElementProps<TextFieldIconElement>;
156
222
  }
157
223
  }
158
224
  }
159
225
 
160
226
  declare global {
161
227
  interface HTMLElementTagNameMap {
162
- 's-icon': TextFieldIconElement;
228
+ [TextFieldtagName$1]: TextFieldIconElement;
163
229
  }
164
230
  }
165
231
 
166
- export interface TextFieldElement extends Omit<TextFieldProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
167
- onblur: TextFieldProps['onBlur'];
168
- onchange: TextFieldProps['onChange'];
169
- onfocus: TextFieldProps['onFocus'];
170
- oninput: TextFieldProps['onInput'];
232
+ export interface TextFieldProps extends TextFieldBaseProps, TextFieldSlots, TextFieldEvents {
171
233
  }
172
234
 
173
- export interface TextFieldProps extends Pick<TextFieldProps$1, 'accessory' | 'autocomplete' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'id' | 'icon' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'placeholder' | 'prefix' | 'readOnly' | 'required' | 'suffix' | 'value'> {
235
+ export interface TextFieldElement extends TextFieldBaseProps, TextFieldSlots, Omit<TextFieldEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
236
+ onblur: TextFieldEvents['onBlur'];
237
+ onchange: TextFieldEvents['onChange'];
238
+ onfocus: TextFieldEvents['onFocus'];
239
+ oninput: TextFieldEvents['onInput'];
240
+ }
241
+
242
+ export interface TextFieldElementSlots {
243
+ /**
244
+ * Additional content to be displayed in the field.
245
+ * Commonly used to display an icon that activates a tooltip providing more information.
246
+ */
247
+ accessory?: HTMLElement;
248
+ }
249
+
250
+ export interface TextFieldSlots {
251
+ /**
252
+ * Additional content to be displayed in the field.
253
+ * Commonly used to display an icon that activates a tooltip providing more information.
254
+ */
255
+ accessory?: ReactNode;
256
+ }
257
+
258
+ export interface TextFieldElementEvents {
259
+ /**
260
+ * Callback when the element loses focus.
261
+ */
262
+ blur?: ((event: CallbackEvent<typeof TextFieldtagName>) => void) | null;
263
+ /**
264
+ * Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
265
+ */
266
+ change?: ((event: CallbackEvent<typeof tagName>) => void) | null;
267
+ /**
268
+ * Callback when the element receives focus.
269
+ */
270
+ focus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
271
+ /**
272
+ * Callback when the user makes any changes in the field.
273
+ */
274
+ input?: ((event: CallbackEvent<typeof tagName>) => void) | null;
275
+ }
276
+
277
+ export interface TextFieldEvents extends Pick<TextFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
278
+ }
279
+
280
+ export interface TextFieldBaseProps extends Pick<TextFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'icon' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'placeholder' | 'prefix' | 'readOnly' | 'required' | 'suffix' | 'value'> {
174
281
  icon?: TextFieldIconProps['type'];
175
282
  }
176
283
 
@@ -180,25 +287,86 @@ export interface TextFieldIconElement extends TextFieldIconProps, Omit<HTMLEleme
180
287
  export interface TextFieldIconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
181
288
  tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
182
289
  size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
183
- type?: '' | Extract<IconProps$1['type'], 'alert-circle' | 'alert-triangle-filled' | 'alert-triangle' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up-right' | 'arrow-up' | 'bag' | 'bullet' | 'calendar' | 'camera' | 'caret-down' | 'cart' | 'cash-dollar' | 'categories' | 'check-circle' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle' | 'clipboard' | 'clock' | 'credit-card' | 'delete' | 'delivered' | 'delivery' | 'disabled' | 'discount' | 'edit' | 'email' | 'empty' | 'external' | 'filter' | 'geolocation' | 'gift-card' | 'globe' | 'grid' | 'image' | 'info-filled' | 'info' | 'list-bulleted' | 'location' | 'lock' | 'map' | 'menu-horizontal' | 'menu-vertical' | 'menu' | 'minus' | 'mobile' | 'note' | 'order' | 'organization' | 'plus' | 'profile' | 'question-circle-filled' | 'question-circle' | 'reorder' | 'reset' | 'return' | 'savings' | 'search' | 'settings' | 'star-filled' | 'star-half' | 'star' | 'store' | 'truck' | 'upload' | 'x-circle-filled' | 'x-circle' | 'x'>;
290
+ type?: '' | ReducedIconTypes;
184
291
  }
185
292
 
293
+ export interface TextFieldBaseElementProps<TClass = HTMLElement> {
294
+ key?: preact.Key;
295
+ ref?: preact.Ref<TClass>;
296
+ slot?: Lowercase<string>;
297
+ }
298
+
299
+ declare const TextFieldtagName = "s-text-field";
300
+ declare const tagName$1 = "s-icon";
301
+
186
302
  declare module 'preact' {
187
- interface BaseProps {
188
- children?: preact.ComponentChildren;
189
- slot?: Lowercase<string>;
303
+ namespace createElement.JSX {
304
+ interface IntrinsicElements {
305
+ [TextAreatagName]: TextAreaProps & TextAreaBaseElementProps<TextAreaElement>;
306
+ }
307
+ }
308
+ }
309
+
310
+ declare global {
311
+ interface HTMLElementTagNameMap {
312
+ [TextAreatagName]: TextAreaElement;
190
313
  }
314
+ }
315
+
316
+ export interface TextAreaProps extends TextAreaBaseProps, TextAreaEvents {
317
+ }
318
+
319
+ export interface TextAreaElement extends TextAreaBaseProps, Omit<TextAreaEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput'> {
320
+ onblur: TextAreaEvents['onBlur'];
321
+ onchange: TextAreaEvents['onChange'];
322
+ onfocus: TextAreaEvents['onFocus'];
323
+ oninput: TextAreaEvents['onInput'];
324
+ }
325
+
326
+ export interface TextAreaElementEvents {
327
+ /**
328
+ * Callback when the element loses focus.
329
+ */
330
+ blur?: ((event: CallbackEvent<typeof TextAreatagName>) => void) | null;
331
+ /**
332
+ * Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
333
+ */
334
+ change?: ((event: CallbackEvent<typeof tagName>) => void) | null;
335
+ /**
336
+ * Callback when the element receives focus.
337
+ */
338
+ focus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
339
+ /**
340
+ * Callback when the user makes any changes in the field.
341
+ */
342
+ input?: ((event: CallbackEvent<typeof tagName>) => void) | null;
343
+ }
191
344
 
345
+ export interface TextAreaEvents extends Pick<TextAreaProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
346
+ }
347
+
348
+ export interface TextAreaBaseProps extends Pick<TextAreaProps$1, 'id' | 'label' | 'name' | 'placeholder' | 'required' | 'value' | 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'readOnly' | 'rows' | 'maxLength' | 'minLength' | 'labelAccessibilityVisibility'> {
349
+ }
350
+
351
+ export interface TextAreaBaseElementProps<TClass = HTMLElement> {
352
+ key?: preact.Key;
353
+ ref?: preact.Ref<TClass>;
354
+ slot?: Lowercase<string>;
355
+ }
356
+
357
+ declare const TextAreatagName = "s-text-area";
358
+
359
+ declare module 'preact' {
192
360
  namespace createElement.JSX {
193
361
  interface IntrinsicElements {
194
- 's-text': TextProps & BaseProps;
362
+ [TexttagName]: TextProps & TextBaseElementPropsWithChildren<TextElement>;
195
363
  }
196
364
  }
197
365
  }
198
366
 
199
367
  declare global {
200
368
  interface HTMLElementTagNameMap {
201
- 's-text': TextElement;
369
+ [TexttagName]: TextElement;
202
370
  }
203
371
  }
204
372
 
@@ -211,29 +379,36 @@ export interface TextProps extends Pick<TextProps$1, 'accessibilityVisibility' |
211
379
  type?: Extract<TextProps$1['type'], 'address' | 'redundant' | 'mark' | 'emphasis' | 'offset' | 'small' | 'strong' | 'generic'>;
212
380
  }
213
381
 
214
- declare module 'preact' {
215
- interface BaseProps {
216
- children?: preact.ComponentChildren;
217
- slot?: Lowercase<string>;
218
- }
382
+ export interface TextBaseElementPropsWithChildren<TClass = HTMLElement> extends TextBaseElementProps<TClass> {
383
+ children?: preact.ComponentChildren;
384
+ }
385
+
386
+ export interface TextBaseElementProps<TClass = HTMLElement> {
387
+ key?: preact.Key;
388
+ ref?: preact.Ref<TClass>;
389
+ slot?: Lowercase<string>;
390
+ }
391
+
392
+ declare const TexttagName = "s-text";
219
393
 
394
+ declare module 'preact' {
220
395
  namespace createElement.JSX {
221
396
  interface IntrinsicElements {
222
- 's-stack': StackProps & BaseProps;
397
+ [StacktagName]: StackProps & StackBaseElementPropsWithChildren<StackElement>;
223
398
  }
224
399
  }
225
400
  }
226
401
 
227
402
  declare global {
228
403
  interface HTMLElementTagNameMap {
229
- 's-stack': StackElement;
404
+ [StacktagName]: StackElement;
230
405
  }
231
406
  }
232
407
 
233
408
  export interface StackElement extends StackProps, Omit<HTMLElement, 'id'> {
234
409
  }
235
410
 
236
- 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'> {
411
+ 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'> {
237
412
  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'>;
238
413
  background?: Extract<StackProps$1['background'], 'transparent' | 'subdued' | 'base'>;
239
414
  border?: BorderShorthand;
@@ -244,17 +419,29 @@ export interface StackProps extends Pick<StackProps$1, 'accessibilityLabel' | 'a
244
419
  justifyContent?: Extract<StackProps$1['justifyContent'], 'normal' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'center' | 'start' | 'end'>;
245
420
  }
246
421
 
422
+ export interface StackBaseElementPropsWithChildren<TClass = HTMLElement> extends StackBaseElementProps<TClass> {
423
+ children?: preact.ComponentChildren;
424
+ }
425
+
426
+ export interface StackBaseElementProps<TClass = HTMLElement> {
427
+ key?: preact.Key;
428
+ ref?: preact.Ref<TClass>;
429
+ slot?: Lowercase<string>;
430
+ }
431
+
432
+ declare const StacktagName = "s-stack";
433
+
247
434
  declare module 'preact' {
248
435
  namespace createElement.JSX {
249
436
  interface IntrinsicElements {
250
- 's-spinner': SpinnerProps;
437
+ [SpinnertagName]: SpinnerProps & SpinnerBaseElementProps<SpinnerElement>;
251
438
  }
252
439
  }
253
440
  }
254
441
 
255
442
  declare global {
256
443
  interface HTMLElementTagNameMap {
257
- 's-spinner': SpinnerElement;
444
+ [SpinnertagName]: SpinnerElement;
258
445
  }
259
446
  }
260
447
 
@@ -265,22 +452,25 @@ export interface SpinnerProps extends SpinnerProps$1 {
265
452
  size?: Extract<SpinnerProps$1['size'], 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
266
453
  }
267
454
 
268
- declare module 'preact' {
269
- interface BaseProps {
270
- children?: preact.ComponentChildren;
271
- slot?: Lowercase<string>;
272
- }
455
+ export interface SpinnerBaseElementProps<TClass = HTMLElement> {
456
+ key?: preact.Key;
457
+ ref?: preact.Ref<TClass>;
458
+ slot?: Lowercase<string>;
459
+ }
273
460
 
461
+ declare const SpinnertagName = "s-spinner";
462
+
463
+ declare module 'preact' {
274
464
  namespace createElement.JSX {
275
465
  interface IntrinsicElements {
276
- 's-section': SectionProps & BaseProps;
466
+ [SectiontagName]: SectionProps & SectionBaseElementPropsWithChildren<SectionElement>;
277
467
  }
278
468
  }
279
469
  }
280
470
 
281
471
  declare global {
282
472
  interface HTMLElementTagNameMap {
283
- 's-section': SectionElement;
473
+ [SectiontagName]: SectionElement;
284
474
  }
285
475
  }
286
476
 
@@ -290,38 +480,72 @@ export interface SectionElement extends SectionProps, Omit<HTMLElement, 'id'> {
290
480
  export interface SectionProps extends Pick<SectionProps$1, 'accessibilityLabel' | 'heading' | 'id'> {
291
481
  }
292
482
 
483
+ export interface SectionBaseElementPropsWithChildren<TClass = HTMLElement> extends SectionBaseElementProps<TClass> {
484
+ children?: preact.ComponentChildren;
485
+ }
486
+
487
+ export interface SectionBaseElementProps<TClass = HTMLElement> {
488
+ key?: preact.Key;
489
+ ref?: preact.Ref<TClass>;
490
+ slot?: Lowercase<string>;
491
+ }
492
+
493
+ declare const SectiontagName = "s-section";
494
+
293
495
  declare module 'preact' {
294
496
  namespace createElement.JSX {
295
497
  interface IntrinsicElements {
296
- 's-qr-code': QRCodeProps;
498
+ [QRCodetagName]: QRCodeProps & QRCodeBaseElementProps<QRCodelement>;
297
499
  }
298
500
  }
299
501
  }
300
502
 
301
503
  declare global {
302
504
  interface HTMLElementTagNameMap {
303
- 's-qr-code': QRCodelement;
505
+ [QRCodetagName]: QRCodelement;
304
506
  }
305
507
  }
306
508
 
307
- export interface QRCodelement extends Omit<QRCodeProps, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
308
- onerror: QRCodeProps['onError'];
509
+ export interface QRCodeProps extends QRCodeBaseProps, QRCodeEvents {
510
+ }
511
+
512
+ export interface QRCodelement extends QRCodeBaseProps, Omit<QRCodeEvents, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
513
+ onerror: QRCodeEvents['onError'];
514
+ }
515
+
516
+ export interface QRCodeElementEvents {
517
+ /**
518
+ * Invoked when the conversion of `content` to a QR code fails.
519
+ * If an error occurs, the QR code and its child elements will not be displayed.
520
+ */
521
+ error?: ((event: CallbackEvent<typeof QRCodetagName>) => void) | null;
522
+ }
523
+
524
+ export interface QRCodeEvents extends Pick<QRCodeProps$1, 'onError'> {
309
525
  }
310
526
 
311
- export interface QRCodeProps extends QRCodeProps$1 {
527
+ export interface QRCodeBaseProps extends QRCodeProps$1 {
312
528
  }
313
529
 
530
+ export interface QRCodeBaseElementProps<TClass = HTMLElement> {
531
+ key?: preact.Key;
532
+ ref?: preact.Ref<TClass>;
533
+ slot?: Lowercase<string>;
534
+ }
535
+
536
+ declare const QRCodetagName = "s-qr-code";
537
+
314
538
  declare module 'preact' {
315
539
  namespace createElement.JSX {
316
540
  interface IntrinsicElements {
317
- 's-progress': ProgressProps;
541
+ [ProgresstagName]: ProgressProps & ProgressBaseElementProps<ProgressElement>;
318
542
  }
319
543
  }
320
544
  }
321
545
 
322
546
  declare global {
323
547
  interface HTMLElementTagNameMap {
324
- 's-progress': ProgressElement;
548
+ [ProgresstagName]: ProgressElement;
325
549
  }
326
550
  }
327
551
 
@@ -332,21 +556,98 @@ export interface ProgressProps extends Pick<ProgressProps$1, 'accessibilityLabel
332
556
  tone?: Extract<ProgressProps$1['tone'], 'auto' | 'critical'>;
333
557
  }
334
558
 
559
+ export interface ProgressBaseElementProps<TClass = HTMLElement> {
560
+ key?: preact.Key;
561
+ ref?: preact.Ref<TClass>;
562
+ slot?: Lowercase<string>;
563
+ }
564
+
565
+ declare const ProgresstagName = "s-progress";
566
+
335
567
  declare module 'preact' {
336
- interface BaseProps {
337
- slot?: Lowercase<string>;
568
+ namespace createElement.JSX {
569
+ interface IntrinsicElements {
570
+ [PhoneFieldtagName]: PhoneFieldProps & PhoneFieldBaseElementProps<PhoneFieldElement>;
571
+ }
338
572
  }
573
+ }
339
574
 
575
+ declare global {
576
+ interface HTMLElementTagNameMap {
577
+ [PhoneFieldtagName]: PhoneFieldElement;
578
+ }
579
+ }
580
+
581
+ export interface PhoneFieldProps extends PhoneFieldBaseProps, PhoneFieldSlots, PhoneFieldEvents {
582
+ }
583
+
584
+ export interface PhoneFieldElement extends PhoneFieldBaseProps, PhoneFieldSlots, Omit<PhoneFieldEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
585
+ onblur: PhoneFieldEvents['onBlur'];
586
+ onchange: PhoneFieldEvents['onChange'];
587
+ onfocus: PhoneFieldEvents['onFocus'];
588
+ oninput: PhoneFieldEvents['onInput'];
589
+ }
590
+
591
+ export interface PhoneFieldElementSlots {
592
+ /**
593
+ * Additional content to be displayed in the field.
594
+ * Commonly used to display an icon that activates a tooltip providing more information.
595
+ */
596
+ accessory?: HTMLElement;
597
+ }
598
+
599
+ export interface PhoneFieldSlots extends Pick<PhoneFieldProps$1, 'accessory'> {
600
+ /**
601
+ * Additional content to be displayed in the field.
602
+ * Commonly used to display an icon that activates a tooltip providing more information.
603
+ */
604
+ accessory?: ReactNode;
605
+ }
606
+
607
+ export interface PhoneFieldElementEvents {
608
+ /**
609
+ * Callback when the element loses focus.
610
+ */
611
+ blur?: ((event: CallbackEvent<typeof PhoneFieldtagName>) => void) | null;
612
+ /**
613
+ * Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
614
+ */
615
+ change?: ((event: CallbackEvent<typeof tagName>) => void) | null;
616
+ /**
617
+ * Callback when the element receives focus.
618
+ */
619
+ focus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
620
+ /**
621
+ * Callback when the user makes any changes in the field.
622
+ */
623
+ input?: ((event: CallbackEvent<typeof tagName>) => void) | null;
624
+ }
625
+
626
+ export interface PhoneFieldEvents extends Pick<PhoneFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
627
+ }
628
+
629
+ export interface PhoneFieldBaseProps extends Pick<PhoneFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'name' | 'placeholder' | 'readOnly' | 'required' | 'value' | 'type'> {
630
+ }
631
+
632
+ export interface PhoneFieldBaseElementProps<TClass = HTMLElement> {
633
+ key?: preact.Key;
634
+ ref?: preact.Ref<TClass>;
635
+ slot?: Lowercase<string>;
636
+ }
637
+
638
+ declare const PhoneFieldtagName = "s-phone-field";
639
+
640
+ declare module 'preact' {
340
641
  namespace createElement.JSX {
341
642
  interface IntrinsicElements {
342
- 's-payment-icon': PaymentIconProps & BaseProps;
643
+ [PaymentIcontagName]: PaymentIconProps & PaymentIconBaseElementProps<PaymentIconElement>;
343
644
  }
344
645
  }
345
646
  }
346
647
 
347
648
  declare global {
348
649
  interface HTMLElementTagNameMap {
349
- 's-payment-icon': PaymentIconElement;
650
+ [PaymentIcontagName]: PaymentIconElement;
350
651
  }
351
652
  }
352
653
 
@@ -356,22 +657,25 @@ export interface PaymentIconElement extends PaymentIconProps, Omit<HTMLElement,
356
657
  export interface PaymentIconProps extends PaymentIconProps$1 {
357
658
  }
358
659
 
359
- declare module 'preact' {
360
- interface BaseProps {
361
- children?: preact.ComponentChildren;
362
- slot?: Lowercase<string>;
363
- }
660
+ export interface PaymentIconBaseElementProps<TClass = HTMLElement> {
661
+ key?: preact.Key;
662
+ ref?: preact.Ref<TClass>;
663
+ slot?: Lowercase<string>;
664
+ }
364
665
 
666
+ declare const PaymentIcontagName = "s-payment-icon";
667
+
668
+ declare module 'preact' {
365
669
  namespace createElement.JSX {
366
670
  interface IntrinsicElements {
367
- 's-paragraph': ParagraphProps & BaseProps;
671
+ [ParagraphtagName]: ParagraphProps & ParagraphBaseElementPropsWithChildren<ParagraphElement>;
368
672
  }
369
673
  }
370
674
  }
371
675
 
372
676
  declare global {
373
677
  interface HTMLElementTagNameMap {
374
- 's-paragraph': ParagraphElement;
678
+ [ParagraphtagName]: ParagraphElement;
375
679
  }
376
680
  }
377
681
 
@@ -383,22 +687,29 @@ export interface ParagraphProps extends Pick<ParagraphProps$1, 'accessibilityVis
383
687
  tone?: Extract<ParagraphProps$1['tone'], 'auto' | 'info' | 'success' | 'warning' | 'critical' | 'neutral' | 'custom'>;
384
688
  }
385
689
 
386
- declare module 'preact' {
387
- interface BaseProps {
388
- children?: preact.ComponentChildren;
389
- slot?: Lowercase<string>;
390
- }
690
+ export interface ParagraphBaseElementPropsWithChildren<TClass = HTMLElement> extends ParagraphBaseElementProps<TClass> {
691
+ children?: preact.ComponentChildren;
692
+ }
391
693
 
694
+ export interface ParagraphBaseElementProps<TClass = HTMLElement> {
695
+ key?: preact.Key;
696
+ ref?: preact.Ref<TClass>;
697
+ slot?: Lowercase<string>;
698
+ }
699
+
700
+ declare const ParagraphtagName = "s-paragraph";
701
+
702
+ declare module 'preact' {
392
703
  namespace createElement.JSX {
393
704
  interface IntrinsicElements {
394
- 's-ordered-list': OrderedListProps & BaseProps;
705
+ [OrderedListtagName]: OrderedListProps & OrderedListBaseElementPropsWithChildren<OrderedListElement>;
395
706
  }
396
707
  }
397
708
  }
398
709
 
399
710
  declare global {
400
711
  interface HTMLElementTagNameMap {
401
- 's-ordered-list': OrderedListElement;
712
+ [OrderedListtagName]: OrderedListElement;
402
713
  }
403
714
  }
404
715
 
@@ -408,74 +719,307 @@ export interface OrderedListElement extends OrderedListProps, Omit<HTMLElement,
408
719
  export interface OrderedListProps extends OrderedListProps$1 {
409
720
  }
410
721
 
722
+ export interface OrderedListBaseElementPropsWithChildren<TClass = HTMLElement> extends OrderedListBaseElementProps<TClass> {
723
+ children?: preact.ComponentChildren;
724
+ }
725
+
726
+ export interface OrderedListBaseElementProps<TClass = HTMLElement> {
727
+ key?: preact.Key;
728
+ ref?: preact.Ref<TClass>;
729
+ slot?: Lowercase<string>;
730
+ }
731
+
732
+ declare const OrderedListtagName = "s-ordered-list";
733
+
411
734
  declare module 'preact' {
412
- interface BaseProps {
413
- children?: preact.ComponentChildren;
414
- slot?: Lowercase<string>;
735
+ namespace createElement.JSX {
736
+ interface IntrinsicElements {
737
+ [ModaltagName]: ModalProps & ModalBaseElementPropsWithChildren<ModalElement>;
738
+ }
415
739
  }
740
+ }
741
+
742
+ declare global {
743
+ interface HTMLElementTagNameMap {
744
+ [ModaltagName]: ModalElement;
745
+ }
746
+ }
747
+
748
+ export interface ModalProps extends ModalBaseProps, ModalSlots, ModalEvents {
749
+ }
750
+
751
+ export interface ModalElement extends ModalBaseProps, ModalSlots, Omit<ModalEvents, 'onHide' | 'onShow'>, Omit<HTMLElement, 'id'> {
752
+ onhide: ModalEvents['onHide'];
753
+ onshow: ModalEvents['onShow'];
754
+ }
755
+
756
+ export interface ModalElementEvents {
757
+ /**
758
+ * Callback fired after the overlay is hidden.
759
+ */
760
+ hide?: ((event: CallbackEvent<typeof ModaltagName>) => void) | null;
761
+ /**
762
+ * Callback fired after the overlay is shown.
763
+ */
764
+ show?: ((event: CallbackEvent<typeof tagName>) => void) | null;
765
+ }
766
+
767
+ export interface ModalEvents extends Pick<ModalProps$1, 'onHide' | 'onShow' | 'onAfterHide' | 'onAfterShow'> {
768
+ }
769
+
770
+ export interface ModalElementSlots {
771
+ /**
772
+ * The primary action to perform, provided as a button type element.
773
+ */
774
+ 'primary-action'?: HTMLElement;
775
+ /**
776
+ * The secondary actions to perform, provided as button type elements.
777
+ */
778
+ 'secondary-actions'?: HTMLElement;
779
+ }
780
+
781
+ export interface ModalSlots extends Pick<ModalProps$1, 'primaryAction' | 'secondaryActions'> {
782
+ /**
783
+ * The primary action to perform, provided as a button type element.
784
+ */
785
+ primaryAction?: ReactNode;
786
+ /**
787
+ * The secondary actions to perform, provided as button type elements.
788
+ */
789
+ secondaryActions?: ReactNode;
790
+ }
791
+
792
+ export interface ModalBaseProps extends Pick<ModalProps$1, 'accessibilityLabel' | 'heading' | 'id' | 'padding' | 'size'> {
793
+ size?: Extract<ModalProps$1['size'], 'small-100' | 'small' | 'base' | 'large-100' | 'large' | 'max'>;
794
+ }
795
+
796
+ export interface ModalBaseElementPropsWithChildren<TClass = HTMLElement> extends ModalBaseElementProps<TClass> {
797
+ children?: preact.ComponentChildren;
798
+ }
416
799
 
800
+ export interface ModalBaseElementProps<TClass = HTMLElement> {
801
+ key?: preact.Key;
802
+ ref?: preact.Ref<TClass>;
803
+ slot?: Lowercase<string>;
804
+ }
805
+
806
+ declare const ModaltagName = "s-modal";
807
+
808
+ declare module 'preact' {
417
809
  namespace createElement.JSX {
418
810
  interface IntrinsicElements {
419
- 's-list-item': ListItemProps & BaseProps;
811
+ [MapMarkertagName]: MapMarkerProps & MapMarkerBaseElementProps<MapMarkerElement>;
420
812
  }
421
813
  }
422
814
  }
423
815
 
424
816
  declare global {
425
817
  interface HTMLElementTagNameMap {
426
- 's-list-item': ListItem;
818
+ [MapMarkertagName]: MapMarkerElement;
427
819
  }
428
820
  }
429
821
 
430
- export interface ListItem extends ListItemProps, Omit<HTMLElement, 'id'> {
822
+ export interface MapMarkerProps extends MapMarkerBaseProps, MapMarkerEvents {
431
823
  }
432
824
 
433
- export interface ListItemProps extends Pick<ListItemProps$1, 'id'> {
825
+ export interface MapMarkerElement extends MapMarkerBaseProps, MapMarkerSlots, Omit<HTMLElement, 'id' | 'onclick'> {
826
+ onclick: MapMarkerEvents['onClick'];
434
827
  }
435
828
 
829
+ export interface MapMarkerElementSlots {
830
+ /**
831
+ * The graphic to use as the marker.
832
+ *
833
+ * If unset, it will default to the provider’s default marker.
834
+ */
835
+ graphic?: HTMLElement;
836
+ }
837
+
838
+ export interface MapMarkerSlots {
839
+ /**
840
+ * The graphic to use as the marker.
841
+ *
842
+ * If unset, it will default to the provider’s default marker.
843
+ */
844
+ graphic?: ReactNode;
845
+ }
846
+
847
+ export interface MapMarkerElementEvents {
848
+ /**
849
+ * Callback when a marker is clicked.
850
+ *
851
+ * It does not trigger a click event on the map itself.
852
+ */
853
+ click?: ((event: CallbackEvent<typeof MapMarkertagName>) => void) | null;
854
+ }
855
+
856
+ export interface MapMarkerEvents extends Pick<MapMarkerProps$1, 'onClick'> {
857
+ }
858
+
859
+ export interface MapMarkerBaseProps extends Pick<MapMarkerProps$1, 'accessibilityLabel' | 'blockSize' | 'clusterable' | 'inlineSize' | 'latitude' | 'longitude'> {
860
+ }
861
+
862
+ export interface MapMarkerBaseElementProps<TClass = HTMLElement> {
863
+ key?: preact.Key;
864
+ ref?: preact.Ref<TClass>;
865
+ slot?: Lowercase<string>;
866
+ }
867
+
868
+ declare const MapMarkertagName = "s-map-marker";
869
+
436
870
  declare module 'preact' {
437
- interface BaseProps {
438
- children?: preact.ComponentChildren;
439
- slot?: Lowercase<string>;
871
+ namespace createElement.JSX {
872
+ interface IntrinsicElements {
873
+ [MaptagName]: MapProps & MapBaseElementPropsWithChildren<MapElement>;
874
+ }
440
875
  }
876
+ }
441
877
 
878
+ declare global {
879
+ interface HTMLElementTagNameMap {
880
+ [MaptagName]: MapElement;
881
+ }
882
+ }
883
+
884
+ export interface MapProps extends MapBaseProps, MapEvents {
885
+ }
886
+
887
+ export interface MapElement extends MapBaseProps, Omit<MapEvents, 'onBoundsChange' | 'onClick' | 'onDblClick' | 'onViewChange'>, Omit<HTMLElement, 'id' | 'onclick' | 'ondblclick'> {
888
+ onboundschange: MapEvents['onBoundsChange'];
889
+ onclick: MapEvents['onClick'];
890
+ ondblclick: MapEvents['onDblClick'];
891
+ onviewchange: MapEvents['onViewChange'];
892
+ }
893
+
894
+ export interface MapElementEvents {
895
+ /**
896
+ * Callback when the viewport bounds have changed or the map is resized.
897
+ */
898
+ boundschange?: ((event: CallbackEvent<typeof MaptagName>) => void) | null;
899
+ /**
900
+ * Callback when the user clicks on the map.
901
+ */
902
+ click?: ((event: CallbackEvent<typeof tagName>) => void) | null;
903
+ /**
904
+ * Callback when the user double-clicks on the map.
905
+ */
906
+ dblclick?: ((event: CallbackEvent<typeof tagName>) => void) | null;
907
+ /**
908
+ * Callback when the map view changes.
909
+ */
910
+ viewchange?: ((event: CallbackEvent<typeof tagName>) => void) | null;
911
+ }
912
+
913
+ export interface MapEvents extends Pick<MapProps$1, 'onBoundsChange' | 'onClick' | 'onDblClick' | 'onViewChange'> {
914
+ }
915
+
916
+ export interface MapBaseProps extends Pick<MapProps$1, 'accessibilityLabel' | 'apiKey' | 'blockSize' | 'id' | 'inlineSize' | 'latitude' | 'longitude' | 'maxBlockSize' | 'maxInlineSize' | 'maxZoom' | 'minBlockSize' | 'minInlineSize' | 'minZoom' | 'zoom'> {
917
+ }
918
+
919
+ export interface MapBaseElementPropsWithChildren<TClass = HTMLElement> extends MapBaseElementProps<TClass> {
920
+ children?: preact.ComponentChildren;
921
+ }
922
+
923
+ export interface MapBaseElementProps<TClass = HTMLElement> {
924
+ key?: preact.Key;
925
+ ref?: preact.Ref<TClass>;
926
+ slot?: Lowercase<string>;
927
+ }
928
+
929
+ declare const MaptagName = "s-map";
930
+
931
+ declare module 'preact' {
442
932
  namespace createElement.JSX {
443
933
  interface IntrinsicElements {
444
- 's-link': LinkProps & BaseProps;
934
+ [ListItemtagName]: ListItemProps & ListItemBaseElementPropsWithChildren<ListItemElement>;
445
935
  }
446
936
  }
447
937
  }
448
938
 
449
939
  declare global {
450
940
  interface HTMLElementTagNameMap {
451
- 's-link': LinkElement;
941
+ [ListItemtagName]: ListItemElement;
452
942
  }
453
943
  }
454
944
 
455
- export interface LinkElement extends Omit<LinkProps, 'onClick'>, Omit<HTMLElement, 'id' | 'lang' | 'onclick'> {
456
- onclick: LinkProps['onClick'];
945
+ export interface ListItemElement extends ListItemProps, Omit<HTMLElement, 'id'> {
457
946
  }
458
947
 
459
- export interface LinkProps extends Pick<LinkProps$1, 'accessibilityLabel' | 'command' | 'commandFor' | 'href' | 'id' | 'lang' | 'onClick' | 'target' | 'tone'> {
460
- target?: Extract<LinkProps$1['target'], 'auto' | '_self' | '_blank'>;
461
- tone?: Extract<LinkProps$1['tone'], 'auto' | 'neutral'>;
948
+ export interface ListItemProps extends Pick<ListItemProps$1, 'id'> {
949
+ }
950
+
951
+ export interface ListItemBaseElementPropsWithChildren<TClass = HTMLElement> extends ListItemBaseElementProps<TClass> {
952
+ children?: preact.ComponentChildren;
462
953
  }
463
954
 
955
+ export interface ListItemBaseElementProps<TClass = HTMLElement> {
956
+ key?: preact.Key;
957
+ ref?: preact.Ref<TClass>;
958
+ slot?: Lowercase<string>;
959
+ }
960
+
961
+ declare const ListItemtagName = "s-list-item";
962
+
464
963
  declare module 'preact' {
465
- interface BaseProps {
466
- slot?: Lowercase<string>;
964
+ namespace createElement.JSX {
965
+ interface IntrinsicElements {
966
+ [LinktagName]: LinkProps & LinkBaseElementPropsWithChildren<LinkElement>;
967
+ }
467
968
  }
969
+ }
468
970
 
971
+ declare global {
972
+ interface HTMLElementTagNameMap {
973
+ [LinktagName]: LinkElement;
974
+ }
975
+ }
976
+
977
+ export interface LinkProps extends LinkBaseProps, LinkEvents {
978
+ }
979
+
980
+ export interface LinkElement extends LinkBaseProps, Omit<LinkEvents, 'onClick'>, Omit<HTMLElement, 'id' | 'lang' | 'onclick'> {
981
+ onclick: LinkEvents['onClick'];
982
+ }
983
+
984
+ export interface LinkElementEvents {
985
+ /**
986
+ * Callback when the link is activated.
987
+ * This will be called before navigating to the location specified by `href`.
988
+ */
989
+ click?: ((event: CallbackEvent<typeof LinktagName>) => void) | null;
990
+ }
991
+
992
+ export interface LinkEvents extends Pick<LinkProps$1, 'onClick'> {
993
+ }
994
+
995
+ export interface LinkBaseProps extends Pick<LinkProps$1, 'accessibilityLabel' | 'command' | 'commandFor' | 'href' | 'id' | 'lang' | 'target' | 'tone'> {
996
+ target?: Extract<LinkProps$1['target'], 'auto' | '_blank'>;
997
+ tone?: Extract<LinkProps$1['tone'], 'auto' | 'neutral'>;
998
+ }
999
+
1000
+ export interface LinkBaseElementPropsWithChildren<TClass = HTMLElement> extends LinkBaseElementProps<TClass> {
1001
+ children?: preact.ComponentChildren;
1002
+ }
1003
+
1004
+ export interface LinkBaseElementProps<TClass = HTMLElement> {
1005
+ key?: preact.Key;
1006
+ ref?: preact.Ref<TClass>;
1007
+ slot?: Lowercase<string>;
1008
+ }
1009
+
1010
+ declare const LinktagName = "s-link";
1011
+
1012
+ declare module 'preact' {
469
1013
  namespace createElement.JSX {
470
1014
  interface IntrinsicElements {
471
- 's-image': ImageProps & BaseProps;
1015
+ [ImagetagName]: ImageProps & ImageBaseElementProps<ImageElement>;
472
1016
  }
473
1017
  }
474
1018
  }
475
1019
 
476
1020
  declare global {
477
1021
  interface HTMLElementTagNameMap {
478
- 's-image': ImageElement;
1022
+ [ImagetagName]: ImageElement;
479
1023
  }
480
1024
  }
481
1025
 
@@ -488,21 +1032,25 @@ export interface ImageProps extends Pick<ImageProps$1, 'accessibilityRole' | 'al
488
1032
  borderRadius?: MaybeAllValuesShorthandProperty<Extract<ImageProps$1['borderRadius'], 'none' | 'small-100' | 'small' | 'base' | 'large' | 'large-100' | 'max'>>;
489
1033
  }
490
1034
 
491
- declare module 'preact' {
492
- interface BaseProps {
493
- slot?: Lowercase<string>;
494
- }
1035
+ export interface ImageBaseElementProps<TClass = HTMLElement> {
1036
+ key?: preact.Key;
1037
+ ref?: preact.Ref<TClass>;
1038
+ slot?: Lowercase<string>;
1039
+ }
495
1040
 
1041
+ declare const ImagetagName = "s-image";
1042
+
1043
+ declare module 'preact' {
496
1044
  namespace createElement.JSX {
497
1045
  interface IntrinsicElements {
498
- 's-icon': IconProps & BaseProps;
1046
+ [IcontagName]: IconProps & IconBaseElementProps<IconElement>;
499
1047
  }
500
1048
  }
501
1049
  }
502
1050
 
503
1051
  declare global {
504
1052
  interface HTMLElementTagNameMap {
505
- 's-icon': IconElement;
1053
+ [IcontagName]: IconElement;
506
1054
  }
507
1055
  }
508
1056
 
@@ -512,25 +1060,28 @@ export interface IconElement extends IconProps, Omit<HTMLElement, 'id'> {
512
1060
  export interface IconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
513
1061
  tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
514
1062
  size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
515
- type?: '' | Extract<IconProps$1['type'], 'alert-circle' | 'alert-triangle-filled' | 'alert-triangle' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up-right' | 'arrow-up' | 'bag' | 'bullet' | 'calendar' | 'camera' | 'caret-down' | 'cart' | 'cash-dollar' | 'categories' | 'check-circle' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle' | 'clipboard' | 'clock' | 'credit-card' | 'delete' | 'delivered' | 'delivery' | 'disabled' | 'discount' | 'edit' | 'email' | 'empty' | 'external' | 'filter' | 'geolocation' | 'gift-card' | 'globe' | 'grid' | 'image' | 'info-filled' | 'info' | 'list-bulleted' | 'location' | 'lock' | 'map' | 'menu-horizontal' | 'menu-vertical' | 'menu' | 'minus' | 'mobile' | 'note' | 'order' | 'organization' | 'plus' | 'profile' | 'question-circle-filled' | 'question-circle' | 'reorder' | 'reset' | 'return' | 'savings' | 'search' | 'settings' | 'star-filled' | 'star-half' | 'star' | 'store' | 'truck' | 'upload' | 'x-circle-filled' | 'x-circle' | 'x'>;
1063
+ type?: '' | ReducedIconTypes;
516
1064
  }
517
1065
 
518
- declare module 'preact' {
519
- interface BaseProps {
520
- children?: preact.ComponentChildren;
521
- slot?: Lowercase<string>;
522
- }
1066
+ export interface IconBaseElementProps<TClass = HTMLElement> {
1067
+ key?: preact.Key;
1068
+ ref?: preact.Ref<TClass>;
1069
+ slot?: Lowercase<string>;
1070
+ }
523
1071
 
1072
+ declare const IcontagName = "s-icon";
1073
+
1074
+ declare module 'preact' {
524
1075
  namespace createElement.JSX {
525
1076
  interface IntrinsicElements {
526
- 's-heading': HeadingProps & BaseProps;
1077
+ [HeadingtagName]: HeadingProps & HeadingBaseElementPropsWithChildren<HeadingElement>;
527
1078
  }
528
1079
  }
529
1080
  }
530
1081
 
531
1082
  declare global {
532
1083
  interface HTMLElementTagNameMap {
533
- 's-heading': HeadingElement;
1084
+ [HeadingtagName]: HeadingElement;
534
1085
  }
535
1086
  }
536
1087
 
@@ -540,180 +1091,421 @@ export interface HeadingElement extends HeadingProps, Omit<HTMLElement, 'id'> {
540
1091
  export interface HeadingProps extends Pick<HeadingProps$1, 'accessibilityRole' | 'id'> {
541
1092
  }
542
1093
 
1094
+ export interface HeadingBaseElementPropsWithChildren<TClass = HTMLElement> extends HeadingBaseElementProps<TClass> {
1095
+ children?: preact.ComponentChildren;
1096
+ }
1097
+
1098
+ export interface HeadingBaseElementProps<TClass = HTMLElement> {
1099
+ key?: preact.Key;
1100
+ ref?: preact.Ref<TClass>;
1101
+ slot?: Lowercase<string>;
1102
+ }
1103
+
1104
+ declare const HeadingtagName = "s-heading";
1105
+
543
1106
  declare module 'preact' {
544
- interface BaseProps {
545
- children?: preact.ComponentChildren;
546
- slot?: Lowercase<string>;
1107
+ namespace createElement.JSX {
1108
+ interface IntrinsicElements {
1109
+ [FormtagName]: FormProps & FormBaseElementPropsWithChildren<FormElement>;
1110
+ }
1111
+ }
1112
+ }
1113
+
1114
+ declare global {
1115
+ interface HTMLElementTagNameMap {
1116
+ [FormtagName]: FormElement;
547
1117
  }
1118
+ }
1119
+
1120
+ export interface FormProps extends FormBaseProps, FormEvents {
1121
+ }
1122
+
1123
+ export interface FormElement extends Omit<FormBaseProps, 'children'>, Omit<FormEvents, 'onSubmit'>, Omit<HTMLElement, 'id' | 'onsubmit'> {
1124
+ onsubmit: FormEvents['onSubmit'];
1125
+ }
548
1126
 
1127
+ export interface FormElementEvents {
1128
+ /**
1129
+ * A callback that is run when the form is submitted.
1130
+ *
1131
+ * Use `event.waitUntil` to signal how long it takes to save the data,
1132
+ * and whether it was successful or not.
1133
+ */
1134
+ submit?: ((event: CallbackEvent<typeof FormtagName>) => void) | null;
1135
+ }
1136
+
1137
+ export interface FormEvents extends Pick<FormProps$1, 'onSubmit'> {
1138
+ onSubmit?: () => void;
1139
+ }
1140
+
1141
+ export interface FormBaseProps extends Pick<FormProps$1, 'id' | 'disabled'> {
1142
+ }
1143
+
1144
+ export interface FormBaseElementPropsWithChildren<TClass = HTMLElement> extends FormBaseElementProps<TClass> {
1145
+ children?: preact.ComponentChildren;
1146
+ }
1147
+
1148
+ export interface FormBaseElementProps<TClass = HTMLElement> {
1149
+ key?: preact.Key;
1150
+ ref?: preact.Ref<TClass>;
1151
+ slot?: Lowercase<string>;
1152
+ }
1153
+
1154
+ declare const FormtagName = "s-form";
1155
+
1156
+ declare module 'preact' {
549
1157
  namespace createElement.JSX {
550
1158
  interface IntrinsicElements {
551
- 's-form': FormProps & BaseProps;
1159
+ [EmailFieldtagName]: EmailFieldProps & EmailFieldBaseElementProps<EmailFieldElement>;
552
1160
  }
553
1161
  }
554
1162
  }
555
1163
 
556
1164
  declare global {
557
1165
  interface HTMLElementTagNameMap {
558
- 's-form': FormElement;
1166
+ [EmailFieldtagName]: EmailFieldElement;
559
1167
  }
560
1168
  }
561
1169
 
562
- export interface FormElement extends Omit<FormProps, 'onSubmit' | 'children'>, Omit<HTMLElement, 'id' | 'onsubmit'> {
563
- onsubmit: FormProps['onSubmit'];
1170
+ export interface EmailFieldProps extends EmailFieldBaseProps, EmailFieldEvents {
564
1171
  }
565
1172
 
566
- export interface FormProps extends Pick<FormProps$1, 'id' | 'disabled' | 'onSubmit'> {
567
- onSubmit?: () => void;
1173
+ export interface EmailFieldElement extends EmailFieldBaseProps, Omit<EmailFieldEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
1174
+ onblur: EmailFieldEvents['onBlur'];
1175
+ onchange: EmailFieldEvents['onChange'];
1176
+ onfocus: EmailFieldEvents['onFocus'];
1177
+ oninput: EmailFieldEvents['onInput'];
1178
+ }
1179
+
1180
+ export interface EmailFieldElementEvents {
1181
+ /**
1182
+ * Callback when the element loses focus.
1183
+ */
1184
+ blur?: ((event: CallbackEvent<typeof EmailFieldtagName>) => void) | null;
1185
+ /**
1186
+ * Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
1187
+ */
1188
+ change?: ((event: CallbackEvent<typeof tagName>) => void) | null;
1189
+ /**
1190
+ * Callback when the element receives focus.
1191
+ */
1192
+ focus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
1193
+ /**
1194
+ * Callback when the user makes any changes in the field.
1195
+ */
1196
+ input?: ((event: CallbackEvent<typeof tagName>) => void) | null;
1197
+ }
1198
+
1199
+ export interface EmailFieldEvents extends Pick<EmailFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
1200
+ }
1201
+
1202
+ export interface EmailFieldBaseProps extends Pick<EmailFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'maxLength' | 'minLength' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'name' | 'placeholder' | 'readOnly' | 'required' | 'value'> {
568
1203
  }
569
1204
 
1205
+ export interface EmailFieldBaseElementProps<TClass = HTMLElement> {
1206
+ key?: preact.Key;
1207
+ ref?: preact.Ref<TClass>;
1208
+ slot?: Lowercase<string>;
1209
+ }
1210
+
1211
+ declare const EmailFieldtagName = "s-email-field";
1212
+
570
1213
  declare module 'preact' {
571
1214
  namespace createElement.JSX {
572
1215
  interface IntrinsicElements {
573
- 's-drop-zone': DropZoneProps;
1216
+ [DropZonetagName]: DropZoneProps & DropZoneBaseElementProps<DropZoneElement>;
574
1217
  }
575
1218
  }
576
1219
  }
577
1220
 
578
1221
  declare global {
579
1222
  interface HTMLElementTagNameMap {
580
- 's-drop-zone': DropZoneElement;
1223
+ [DropZonetagName]: DropZoneElement;
581
1224
  }
582
1225
  }
583
1226
 
584
- export interface DropZoneElement extends Omit<DropZoneProps, 'onDropRejected' | 'onInput'>, Omit<HTMLElement, 'id' | 'oninput'> {
585
- ondroprejected: DropZoneProps['onDropRejected'];
586
- oninput: DropZoneProps['onInput'];
1227
+ export interface DropZoneProps extends DropZoneBaseProps, DropZoneEvents {
1228
+ }
1229
+
1230
+ export interface DropZoneElement extends DropZoneBaseProps, Omit<DropZoneEvents, 'onDropRejected' | 'onInput'>, Omit<HTMLElement, 'id' | 'oninput'> {
1231
+ ondroprejected: DropZoneEvents['onDropRejected'];
1232
+ oninput: DropZoneEvents['onInput'];
1233
+ }
1234
+
1235
+ export interface DropZoneElementEvents {
1236
+ /**
1237
+ * Callback when rejected files are dropped. Files are rejected based on the `accept` prop.
1238
+ */
1239
+ droprejected?: ((event: CallbackEvent<typeof DropZonetagName>) => void) | null;
1240
+ /**
1241
+ * Callback when the user makes any changes in the field.
1242
+ */
1243
+ input?: ((event: CallbackEvent<typeof tagName>) => void) | null;
1244
+ }
1245
+
1246
+ export interface DropZoneEvents extends Pick<DropZoneProps$1, 'onDropRejected' | 'onInput'> {
1247
+ }
1248
+
1249
+ export interface DropZoneBaseProps extends Pick<DropZoneProps$1, 'accept' | 'accessibilityLabel' | 'disabled' | 'error' | 'id' | 'label' | 'multiple' | 'name' | 'required'> {
587
1250
  }
588
1251
 
589
- export interface DropZoneProps extends Pick<DropZoneProps$1, 'accept' | 'accessibilityLabel' | 'disabled' | 'error' | 'id' | 'label' | 'multiple' | 'name' | 'onDropRejected' | 'onInput' | 'required'> {
1252
+ export interface DropZoneBaseElementProps<TClass = HTMLElement> {
1253
+ key?: preact.Key;
1254
+ ref?: preact.Ref<TClass>;
1255
+ slot?: Lowercase<string>;
590
1256
  }
591
1257
 
1258
+ declare const DropZonetagName = "s-drop-zone";
1259
+
592
1260
  declare module 'preact' {
593
1261
  namespace createElement.JSX {
594
1262
  interface IntrinsicElements {
595
- 's-clipboard-item': ClipboardItemProps;
1263
+ [ClipboardItemtagName]: ClipboardItemProps & ClipboardItemBaseElementProps<ClipboardItemElement>;
596
1264
  }
597
1265
  }
598
1266
  }
599
1267
 
600
1268
  declare global {
601
1269
  interface HTMLElementTagNameMap {
602
- 's-clipboard-item': ClipboardItemElement;
1270
+ [ClipboardItemtagName]: ClipboardItemElement;
603
1271
  }
604
1272
  }
605
1273
 
606
- export interface ClipboardItemElement extends Omit<ClipboardItemProps, 'onCopy' | 'onCopyError'>, Omit<HTMLElement, 'id' | 'oncopy'> {
607
- oncopy: ClipboardItemProps['onCopy'];
608
- oncopyerror: ClipboardItemProps['onCopyError'];
1274
+ export interface ClipboardItemProps extends ClipboardItemBaseProps, ClipboardItemEvents {
1275
+ }
1276
+
1277
+ export interface ClipboardItemElement extends ClipboardItemBaseProps, Omit<ClipboardItemEvents, 'onCopy' | 'onCopyError'>, Omit<HTMLElement, 'id' | 'oncopy'> {
1278
+ oncopy: ClipboardItemEvents['onCopy'];
1279
+ oncopyerror: ClipboardItemEvents['onCopyError'];
1280
+ }
1281
+
1282
+ export interface ClipboardItemElementEvents {
1283
+ /**
1284
+ * Callback run when the copy to clipboard succeeds.
1285
+ */
1286
+ copy?: ((event: CallbackEvent<typeof ClipboardItemtagName>) => void) | null;
1287
+ /**
1288
+ * Callback run when the copy to clipboard fails.
1289
+ */
1290
+ copyerror?: ((event: CallbackEvent<typeof tagName>) => void) | null;
1291
+ }
1292
+
1293
+ export interface ClipboardItemEvents extends Pick<ClipboardItemProps$1, 'onCopy' | 'onCopyError'> {
1294
+ }
1295
+
1296
+ export interface ClipboardItemBaseProps extends Pick<ClipboardItemProps$1, 'id' | 'text'> {
609
1297
  }
610
1298
 
611
- export interface ClipboardItemProps extends ClipboardItemProps$1 {
1299
+ export interface ClipboardItemBaseElementProps<TClass = HTMLElement> {
1300
+ key?: preact.Key;
1301
+ ref?: preact.Ref<TClass>;
1302
+ slot?: Lowercase<string>;
612
1303
  }
613
1304
 
1305
+ declare const ClipboardItemtagName = "s-clipboard-item";
1306
+
614
1307
  declare module 'preact' {
615
- interface BaseProps {
616
- children?: preact.ComponentChildren;
617
- slot?: Lowercase<string>;
1308
+ namespace createElement.JSX {
1309
+ interface IntrinsicElements {
1310
+ [CheckboxtagName]: CheckboxProps & CheckboxBaseElementProps<CheckboxElement>;
1311
+ }
618
1312
  }
1313
+ }
1314
+
1315
+ declare global {
1316
+ interface HTMLElementTagNameMap {
1317
+ [CheckboxtagName]: CheckboxElement;
1318
+ }
1319
+ }
619
1320
 
1321
+ export interface CheckboxProps extends CheckboxBaseProps, CheckboxEvents {
1322
+ }
1323
+
1324
+ export interface CheckboxElement extends CheckboxBaseProps, Omit<CheckboxEvents, 'onChange'>, Omit<HTMLElement, 'id' | 'onchange'> {
1325
+ onchange: CheckboxEvents['onChange'];
1326
+ }
1327
+
1328
+ export interface CheckboxElementEvents {
1329
+ /**
1330
+ * A callback that is run whenever the control is changed.
1331
+ */
1332
+ change?: ((event: CallbackEvent<typeof CheckboxtagName>) => void) | null;
1333
+ }
1334
+
1335
+ export interface CheckboxEvents extends Pick<CheckboxProps$1, 'onChange'> {
1336
+ }
1337
+
1338
+ export interface CheckboxBaseProps extends Pick<CheckboxProps$1, 'accessibilityLabel' | 'checked' | 'command' | 'commandFor' | 'defaultChecked' | 'disabled' | 'error' | 'id' | 'label' | 'name' | 'required' | 'value'> {
1339
+ }
1340
+
1341
+ export interface CheckboxBaseElementProps<TClass = HTMLElement> {
1342
+ key?: preact.Key;
1343
+ ref?: preact.Ref<TClass>;
1344
+ slot?: Lowercase<string>;
1345
+ }
1346
+
1347
+ declare const CheckboxtagName = "s-checkbox";
1348
+
1349
+ declare module 'preact' {
620
1350
  namespace createElement.JSX {
621
1351
  interface IntrinsicElements {
622
- 's-button': ButtonProps & BaseProps;
1352
+ [ButtontagName]: ButtonProps & ButtonBaseElementPropsWithChildren<ButtonElement>;
623
1353
  }
624
1354
  }
625
1355
  }
626
1356
 
627
1357
  declare global {
628
1358
  interface HTMLElementTagNameMap {
629
- 's-button': ButtonElement;
1359
+ [ButtontagName]: ButtonElement;
630
1360
  }
631
1361
  }
632
1362
 
633
- export interface ButtonElement extends Omit<ButtonProps, 'onClick'>, Omit<HTMLElement, 'id' | 'onclick'> {
634
- onclick: ButtonProps['onClick'];
1363
+ export interface ButtonProps extends ButtonBaseProps, ButtonEvents {
1364
+ }
1365
+
1366
+ export interface ButtonElement extends ButtonBaseProps, Omit<ButtonEvents, 'onClick'>, Omit<HTMLElement, 'id' | 'onclick'> {
1367
+ onclick: ButtonEvents['onClick'];
1368
+ }
1369
+
1370
+ export interface ButtonElementEvents {
1371
+ /**
1372
+ * Callback when the button is activated.
1373
+ * This will be called before the action indicated by `type`.
1374
+ */
1375
+ click?: ((event: CallbackEvent<typeof ButtontagName>) => void) | null;
635
1376
  }
636
1377
 
637
- export interface ButtonProps extends Pick<ButtonProps$1, 'accessibilityLabel' | 'command' | 'commandFor' | 'disabled' | 'href' | 'id' | 'inlineSize' | 'loading' | 'onClick' | 'target' | 'tone' | 'type' | 'variant'> {
638
- target?: Extract<ButtonProps$1['target'], 'auto' | '_self' | '_blank'>;
1378
+ export interface ButtonEvents extends Pick<ButtonProps$1, 'onClick'> {
1379
+ }
1380
+
1381
+ export interface ButtonBaseProps extends Pick<ButtonProps$1, 'accessibilityLabel' | 'command' | 'commandFor' | 'disabled' | 'href' | 'id' | 'inlineSize' | 'loading' | 'target' | 'tone' | 'type' | 'variant'> {
1382
+ target?: Extract<ButtonProps$1['target'], 'auto' | '_blank'>;
639
1383
  tone?: Extract<ButtonProps$1['tone'], 'auto' | 'neutral' | 'critical'>;
640
1384
  type?: Extract<ButtonProps$1['type'], 'submit' | 'button'>;
641
1385
  variant?: Extract<ButtonProps$1['variant'], 'auto' | 'primary' | 'secondary'>;
642
1386
  }
643
1387
 
644
- declare module 'preact' {
645
- interface BaseProps {
646
- children?: preact.ComponentChildren;
647
- slot?: Lowercase<string>;
648
- }
1388
+ export interface ButtonBaseElementPropsWithChildren<TClass = HTMLElement> extends ButtonBaseElementProps<TClass> {
1389
+ children?: preact.ComponentChildren;
1390
+ }
1391
+
1392
+ export interface ButtonBaseElementProps<TClass = HTMLElement> {
1393
+ key?: preact.Key;
1394
+ ref?: preact.Ref<TClass>;
1395
+ slot?: Lowercase<string>;
1396
+ }
1397
+
1398
+ declare const ButtontagName = "s-button";
649
1399
 
1400
+ declare module 'preact' {
650
1401
  namespace createElement.JSX {
651
1402
  interface IntrinsicElements {
652
- 's-box': BoxProps & BaseProps;
1403
+ [BoxtagName]: BoxProps & BoxBaseElementPropsWithChildren<BoxElement>;
653
1404
  }
654
1405
  }
655
1406
  }
656
1407
 
657
1408
  declare global {
658
1409
  interface HTMLElementTagNameMap {
659
- 's-box': BoxElement;
1410
+ [BoxtagName]: BoxElement;
660
1411
  }
661
1412
  }
662
1413
 
663
1414
  export interface BoxElement extends BoxProps, Omit<HTMLElement, 'id'> {
664
1415
  }
665
1416
 
666
- export interface BoxProps extends Pick<BoxProps$1, 'accessibilityLabel' | 'accessibilityRole' | 'accessibilityVisibility' | 'background' | 'border' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'display' | 'id' | 'maxBlockSize' | 'maxInlineSize' | 'minBlockSize' | 'minInlineSize' | 'overflow' | 'padding' | 'paddingBlock' | 'paddingBlockEnd' | 'paddingBlockStart' | 'paddingInline' | 'paddingInlineEnd' | 'paddingInlineStart'> {
1417
+ export interface BoxProps extends Pick<BoxProps$1, 'accessibilityLabel' | 'accessibilityRole' | 'accessibilityVisibility' | 'background' | 'blockSize' | 'border' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'display' | 'id' | 'inlineSize' | 'maxBlockSize' | 'maxInlineSize' | 'minBlockSize' | 'minInlineSize' | 'overflow' | 'padding' | 'paddingBlock' | 'paddingBlockEnd' | 'paddingBlockStart' | 'paddingInline' | 'paddingInlineEnd' | 'paddingInlineStart'> {
667
1418
  background?: Extract<BoxProps$1['background'], 'transparent' | 'subdued' | 'base'>;
668
1419
  border?: BorderShorthand;
669
1420
  borderWidth?: MaybeAllValuesShorthandProperty<ReducedBorderSizeKeyword> | '';
670
1421
  borderRadius?: MaybeAllValuesShorthandProperty<Extract<BoxProps$1['borderRadius'], 'none' | 'small-100' | 'small' | 'base' | 'large' | 'large-100' | 'max'>>;
671
1422
  }
672
1423
 
673
- declare module 'preact' {
674
- interface BaseProps {
675
- children?: preact.ComponentChildren;
676
- slot?: Lowercase<string>;
677
- }
1424
+ export interface BoxBaseElementPropsWithChildren<TClass = HTMLElement> extends BoxBaseElementProps<TClass> {
1425
+ children?: preact.ComponentChildren;
1426
+ }
678
1427
 
1428
+ export interface BoxBaseElementProps<TClass = HTMLElement> {
1429
+ key?: preact.Key;
1430
+ ref?: preact.Ref<TClass>;
1431
+ slot?: Lowercase<string>;
1432
+ }
1433
+
1434
+ declare const BoxtagName = "s-box";
1435
+
1436
+ declare module 'preact' {
679
1437
  namespace createElement.JSX {
680
1438
  interface IntrinsicElements {
681
- 's-banner': BannerProps & BaseProps;
1439
+ [BannertagName]: BannerProps & BannerBaseElementPropsWithChildren<BannerElement>;
682
1440
  }
683
1441
  }
684
1442
  }
685
1443
 
686
1444
  declare global {
687
1445
  interface HTMLElementTagNameMap {
688
- 's-banner': BannerElement;
1446
+ [BannertagName]: BannerElement;
689
1447
  }
690
1448
  }
691
1449
 
692
- export interface BannerElement extends Omit<BannerProps, 'onAfterHide' | 'onDismiss'>, Omit<HTMLElement, 'id' | 'title' | 'hidden'> {
693
- onafterhide: BannerProps['onAfterHide'];
694
- ondismiss: BannerProps['onDismiss'];
1450
+ export interface BannerProps extends BannerBaseProps, BannerEvents {
1451
+ }
1452
+
1453
+ export interface BannerElement extends BannerBaseProps, Omit<BannerEvents, 'onAfterHide' | 'onDismiss'>, Omit<HTMLElement, 'id' | 'title' | 'hidden'> {
1454
+ onafterhide: BannerEvents['onAfterHide'];
1455
+ ondismiss: BannerEvents['onDismiss'];
1456
+ }
1457
+
1458
+ export interface BannerElementEvents {
1459
+ /**
1460
+ * Event handler when the banner has fully hidden.
1461
+ *
1462
+ * The `hidden` property will be `true` when this event fires.
1463
+ *
1464
+ * @implementation If implementations animate the hiding of the banner,
1465
+ * this event must fire after the banner has fully hidden.
1466
+ * We can add an `onHide` event in future if we want to provide a hook for the start of the animation.
1467
+ */
1468
+ afterhide?: ((event: CallbackEvent<typeof BannertagName>) => void) | null;
1469
+ /**
1470
+ * Event handler when the banner is dismissed by the user.
1471
+ *
1472
+ * This does not fire when setting `hidden` manually.
1473
+ *
1474
+ * The `hidden` property will be `false` when this event fires.
1475
+ */
1476
+ dismiss?: ((event: CallbackEvent<typeof tagName>) => void) | null;
1477
+ }
1478
+
1479
+ export interface BannerEvents extends Pick<BannerProps$1, 'onAfterHide' | 'onDismiss'> {
695
1480
  }
696
1481
 
697
- export interface BannerProps extends Pick<BannerProps$1, 'collapsible' | 'dismissible' | 'heading' | 'hidden' | 'id' | 'onAfterHide' | 'onDismiss' | 'tone'> {
1482
+ export interface BannerBaseProps extends Pick<BannerProps$1, 'collapsible' | 'dismissible' | 'heading' | 'hidden' | 'id' | 'tone'> {
698
1483
  tone?: Extract<BannerProps$1['tone'], 'auto' | 'info' | 'success' | 'warning' | 'critical'>;
699
1484
  }
700
1485
 
701
- declare module 'preact' {
702
- interface BaseProps {
703
- children?: preact.ComponentChildren;
704
- slot?: Lowercase<string>;
705
- }
1486
+ export interface BannerBaseElementPropsWithChildren<TClass = HTMLElement> extends BannerBaseElementProps<TClass> {
1487
+ children?: preact.ComponentChildren;
1488
+ }
1489
+
1490
+ export interface BannerBaseElementProps<TClass = HTMLElement> {
1491
+ key?: preact.Key;
1492
+ ref?: preact.Ref<TClass>;
1493
+ slot?: Lowercase<string>;
1494
+ }
706
1495
 
1496
+ declare const BannertagName = "s-banner";
1497
+
1498
+ declare module 'preact' {
707
1499
  namespace createElement.JSX {
708
1500
  interface IntrinsicElements {
709
- 's-abbreviation': AbbreviationProps & BaseProps;
1501
+ [tagName]: AbbreviationProps & BaseElementPropsWithChildren<AbbreviationElement>;
710
1502
  }
711
1503
  }
712
1504
  }
713
1505
 
714
1506
  declare global {
715
1507
  interface HTMLElementTagNameMap {
716
- 's-abbreviation': AbbreviationElement;
1508
+ [tagName]: AbbreviationElement;
717
1509
  }
718
1510
  }
719
1511
 
@@ -723,9 +1515,23 @@ export interface AbbreviationElement extends AbbreviationProps, Omit<HTMLElement
723
1515
  export interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title'> {
724
1516
  }
725
1517
 
1518
+ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
1519
+ children?: preact.ComponentChildren;
1520
+ }
1521
+
1522
+ export interface BaseElementProps<TClass = HTMLElement> {
1523
+ key?: preact.Key;
1524
+ ref?: preact.Ref<TClass>;
1525
+ slot?: Lowercase<string>;
1526
+ }
1527
+
1528
+ declare const tagName = "s-abbreviation";
1529
+
1530
+ import { CallbackEvent } from "../../../../../src/surfaces/checkout/components/Banner";
726
1531
  import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
727
- import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
728
- import { BaseElementPropsWithChildren } from "../../../../../src/surfaces/customer-account/components/shared";
1532
+ import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, CheckboxProps$1, ClipboardItemProps$1, DropZoneProps$1, EmailFieldProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MapMarkerProps$1, MapProps$1, MaybeAllValuesShorthandProperty, ModalProps$1, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, PhoneFieldProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
1533
+ import { ReducedIconTypes } from "../../../../../src/surfaces/checkout/components/Icon";
1534
+ import { Size } from "../../../../../src/surfaces/customer-account/components/shared";
729
1535
  import type { ExtensionTargets } from '../extension-targets';
730
1536
  type Target = ExtensionTargets['customer-account.order-status.cart-line-item.render-after'];
731
1537
  export type Api = Target['api'];