@shopify/ui-extensions 2025.10.0-rc.40 → 2025.10.0-rc.41

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 (324) hide show
  1. package/build/cjs/surfaces/checkout/preact/api.js +4 -0
  2. package/build/cjs/surfaces/checkout/preact/subscription.js +6 -5
  3. package/build/cjs/surfaces/checkout/shared.js +17 -4
  4. package/build/esm/surfaces/checkout/preact/api.mjs +4 -0
  5. package/build/esm/surfaces/checkout/preact/subscription.mjs +6 -5
  6. package/build/esm/surfaces/checkout/shared.mjs +17 -4
  7. package/build/esnext/surfaces/checkout/preact/api.esnext +4 -0
  8. package/build/esnext/surfaces/checkout/preact/subscription.esnext +6 -5
  9. package/build/esnext/surfaces/checkout/shared.esnext +17 -4
  10. package/build/ts/docs/shared/components/Details.d.ts +4 -0
  11. package/build/ts/docs/shared/components/Details.d.ts.map +1 -0
  12. package/build/ts/docs/shared/components/MoneyField.d.ts.map +1 -1
  13. package/build/ts/docs/shared/components/PressButton.d.ts +4 -0
  14. package/build/ts/docs/shared/components/PressButton.d.ts.map +1 -0
  15. package/build/ts/docs/shared/components/SkeletonParagraph.d.ts +4 -0
  16. package/build/ts/docs/shared/components/SkeletonParagraph.d.ts.map +1 -0
  17. package/build/ts/docs/shared/components/Summary.d.ts +4 -0
  18. package/build/ts/docs/shared/components/Summary.d.ts.map +1 -0
  19. package/build/ts/docs/shared/components/Tooltip.d.ts +1 -1
  20. package/build/ts/docs/shared/components/Tooltip.d.ts.map +1 -1
  21. package/build/ts/docs/shared/components/index.d.ts +6 -1
  22. package/build/ts/docs/shared/components/index.d.ts.map +1 -1
  23. package/build/ts/index.d.ts.map +1 -1
  24. package/build/ts/shared.d.ts +4 -34
  25. package/build/ts/shared.d.ts.map +1 -1
  26. package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts +1 -1
  27. package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts +3 -3
  28. package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts.map +1 -1
  29. package/build/ts/surfaces/checkout/api/order-confirmation/order-confirmation.d.ts +2 -2
  30. package/build/ts/surfaces/checkout/api/order-confirmation/order-confirmation.d.ts.map +1 -1
  31. package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts +3 -3
  32. package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts.map +1 -1
  33. package/build/ts/surfaces/checkout/api/pickup/pickup-location-item.d.ts +3 -3
  34. package/build/ts/surfaces/checkout/api/pickup/pickup-location-item.d.ts.map +1 -1
  35. package/build/ts/surfaces/checkout/api/pickup/pickup-location-list.d.ts +2 -2
  36. package/build/ts/surfaces/checkout/api/pickup/pickup-location-list.d.ts.map +1 -1
  37. package/build/ts/surfaces/checkout/api/pickup/pickup-point-list.d.ts +2 -2
  38. package/build/ts/surfaces/checkout/api/pickup/pickup-point-list.d.ts.map +1 -1
  39. package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts +3 -3
  40. package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts.map +1 -1
  41. package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts +3 -3
  42. package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts.map +1 -1
  43. package/build/ts/surfaces/checkout/api/standard/standard.d.ts +45 -40
  44. package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
  45. package/build/ts/surfaces/checkout/components/Badge/Badge.doc.d.ts +4 -0
  46. package/build/ts/surfaces/checkout/components/Badge/Badge.doc.d.ts.map +1 -0
  47. package/build/ts/surfaces/checkout/components/Badge.d.ts +3 -8
  48. package/build/ts/surfaces/checkout/components/Box/Box.doc.d.ts.map +1 -1
  49. package/build/ts/surfaces/checkout/components/Button.d.ts +1 -1
  50. package/build/ts/surfaces/checkout/components/Clickable/Clickable.doc.d.ts +4 -0
  51. package/build/ts/surfaces/checkout/components/Clickable/Clickable.doc.d.ts.map +1 -0
  52. package/build/ts/surfaces/checkout/components/Clickable.d.ts +1 -1
  53. package/build/ts/surfaces/checkout/components/Details/Details.doc.d.ts +4 -0
  54. package/build/ts/surfaces/checkout/components/Details/Details.doc.d.ts.map +1 -0
  55. package/build/ts/surfaces/checkout/components/Details.d.ts +15 -2
  56. package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts +4 -0
  57. package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts.map +1 -0
  58. package/build/ts/surfaces/checkout/components/Divider.d.ts +17 -2
  59. package/build/ts/surfaces/checkout/components/DropZone.d.ts +8 -3
  60. package/build/ts/surfaces/checkout/components/EmailField.d.ts +8 -1
  61. package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts.map +1 -1
  62. package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts +4 -0
  63. package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts.map +1 -0
  64. package/build/ts/surfaces/checkout/components/Grid.d.ts +7 -7
  65. package/build/ts/surfaces/checkout/components/Icon.d.ts +2 -7
  66. package/build/ts/surfaces/checkout/components/Link.d.ts +1 -1
  67. package/build/ts/surfaces/checkout/components/MapMarker.d.ts +9 -12
  68. package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +1 -1
  69. package/build/ts/surfaces/checkout/components/Modal.d.ts +16 -15
  70. package/build/ts/surfaces/checkout/components/MoneyField/MoneyField.doc.d.ts +4 -0
  71. package/build/ts/surfaces/checkout/components/MoneyField/MoneyField.doc.d.ts.map +1 -0
  72. package/{src/surfaces/checkout/components/UrlField.d.ts → build/ts/surfaces/checkout/components/MoneyField.d.ts} +14 -18
  73. package/build/ts/surfaces/checkout/components/OrderedList/OrderedList.doc.d.ts.map +1 -1
  74. package/build/ts/surfaces/checkout/components/PhoneField.d.ts +10 -12
  75. package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts +4 -0
  76. package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts.map +1 -0
  77. package/build/ts/surfaces/checkout/components/Popover.d.ts +50 -2
  78. package/build/ts/surfaces/checkout/components/PressButton/PressButton.doc.d.ts +4 -0
  79. package/build/ts/surfaces/checkout/components/PressButton/PressButton.doc.d.ts.map +1 -0
  80. package/build/ts/surfaces/{customer-account/components/Select.d.ts → checkout/components/PressButton.d.ts} +20 -20
  81. package/build/ts/surfaces/checkout/components/Sheet/Sheet.doc.d.ts +4 -0
  82. package/build/ts/surfaces/checkout/components/Sheet/Sheet.doc.d.ts.map +1 -0
  83. package/build/ts/surfaces/checkout/components/Sheet.d.ts +21 -15
  84. package/build/ts/surfaces/checkout/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts +4 -0
  85. package/build/ts/surfaces/checkout/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts.map +1 -0
  86. package/build/ts/surfaces/checkout/components/Stack.d.ts +4 -4
  87. package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts +4 -0
  88. package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts.map +1 -0
  89. package/build/ts/surfaces/checkout/components/TextField.d.ts +10 -17
  90. package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts +4 -0
  91. package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts.map +1 -0
  92. package/build/ts/surfaces/{customer-account/components/Option.d.ts → checkout/components/Tooltip.d.ts} +9 -7
  93. package/build/ts/surfaces/checkout/components/UnorderedList/UnorderedList.doc.d.ts.map +1 -1
  94. package/build/ts/surfaces/checkout/components/components-shared.d.ts +631 -275
  95. package/build/ts/surfaces/checkout/components/components.d.ts +1013 -501
  96. package/build/ts/surfaces/checkout/preact/api.d.ts +4 -0
  97. package/build/ts/surfaces/checkout/preact/api.d.ts.map +1 -1
  98. package/build/ts/surfaces/checkout/preact/subscription.d.ts +5 -4
  99. package/build/ts/surfaces/checkout/preact/subscription.d.ts.map +1 -1
  100. package/build/ts/surfaces/checkout/shared.d.ts +27 -4
  101. package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
  102. package/build/ts/surfaces/checkout/targets/Checkout::Actions::RenderBefore.d.ts +3 -4
  103. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +3 -4
  104. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +3 -4
  105. package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +3 -4
  106. package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +3 -4
  107. package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +3 -4
  108. package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +3 -4
  109. package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +3 -4
  110. package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +3 -4
  111. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +3 -4
  112. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +3 -4
  113. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +3 -4
  114. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +3 -4
  115. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +3 -4
  116. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +3 -4
  117. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +3 -4
  118. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +3 -4
  119. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +3 -4
  120. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +3 -4
  121. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +3 -4
  122. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +3 -4
  123. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +3 -4
  124. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +3 -4
  125. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +3 -4
  126. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +3 -4
  127. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +3 -4
  128. package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +3 -4
  129. package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +3 -4
  130. package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +3 -4
  131. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +3 -4
  132. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +3 -4
  133. package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +3 -4
  134. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +3 -4
  135. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +3 -4
  136. package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +3 -4
  137. package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +3 -4
  138. package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +3 -4
  139. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +3 -4
  140. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +3 -4
  141. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +3 -4
  142. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +3 -4
  143. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +3 -4
  144. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +3 -4
  145. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +3 -4
  146. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +3 -4
  147. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +3 -4
  148. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +3 -4
  149. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +3 -4
  150. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +3 -4
  151. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +3 -4
  152. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +3 -4
  153. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +3 -4
  154. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +3 -4
  155. package/build/ts/surfaces/checkout/targets/purchase.thank-you.announcement.render.d.ts +3 -4
  156. package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +3 -4
  157. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +3 -4
  158. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +3 -4
  159. package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +3 -4
  160. package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +3 -4
  161. package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +3 -4
  162. package/build/ts/surfaces/checkout.d.ts +1 -0
  163. package/build/ts/surfaces/checkout.d.ts.map +1 -1
  164. package/build/ts/surfaces/customer-account/api/shared.d.ts +2 -1
  165. package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
  166. package/build/ts/surfaces/customer-account/components/Badge.d.ts +3 -8
  167. package/build/ts/surfaces/customer-account/components/Button.d.ts +1 -1
  168. package/build/ts/surfaces/customer-account/components/Clickable.d.ts +1 -1
  169. package/build/ts/surfaces/customer-account/components/Details.d.ts +15 -2
  170. package/build/ts/surfaces/customer-account/components/Divider.d.ts +17 -2
  171. package/build/ts/surfaces/customer-account/components/DropZone.d.ts +8 -3
  172. package/build/ts/surfaces/customer-account/components/EmailField.d.ts +8 -1
  173. package/build/ts/surfaces/customer-account/components/Grid.d.ts +7 -7
  174. package/build/ts/surfaces/customer-account/components/Icon.d.ts +2 -7
  175. package/build/ts/surfaces/customer-account/components/Link.d.ts +1 -1
  176. package/build/ts/surfaces/customer-account/components/MapMarker.d.ts +9 -12
  177. package/build/ts/surfaces/customer-account/components/Modal.d.ts +16 -15
  178. package/build/ts/surfaces/{checkout/components/UrlField.d.ts → customer-account/components/MoneyField.d.ts} +14 -18
  179. package/build/ts/surfaces/customer-account/components/PhoneField.d.ts +10 -12
  180. package/build/ts/surfaces/customer-account/components/Popover.d.ts +50 -2
  181. package/{src/surfaces/checkout/components/Select.d.ts → build/ts/surfaces/customer-account/components/PressButton.d.ts} +20 -20
  182. package/build/ts/surfaces/customer-account/components/Sheet.d.ts +21 -15
  183. package/build/ts/surfaces/customer-account/components/Stack.d.ts +4 -4
  184. package/build/ts/surfaces/customer-account/components/TextField.d.ts +10 -17
  185. package/build/ts/surfaces/{checkout/components/Option.d.ts → customer-account/components/Tooltip.d.ts} +9 -7
  186. package/build/ts/surfaces/customer-account/components/components-shared.d.ts +631 -275
  187. package/build/ts/surfaces/customer-account/components/components.d.ts +1013 -501
  188. package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +3 -4
  189. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.announcement.render.d.ts +3 -4
  190. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +3 -4
  191. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.announcement.render.d.ts +3 -4
  192. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +3 -4
  193. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +3 -4
  194. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +3 -4
  195. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +3 -4
  196. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +3 -4
  197. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +3 -4
  198. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +3 -4
  199. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +3 -4
  200. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +3 -4
  201. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +3 -4
  202. package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +3 -4
  203. package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +3 -4
  204. package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +3 -4
  205. package/build/ts/surfaces/customer-account/targets/customer-account.profile.announcement.render.d.ts +3 -4
  206. package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +3 -4
  207. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +3 -4
  208. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +3 -4
  209. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +3 -4
  210. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +3 -4
  211. package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +3 -4
  212. package/build/ts/surfaces/point-of-sale/components/Banner.d.ts +11 -2
  213. package/build/ts/surfaces/point-of-sale/components/Button.d.ts +29 -4
  214. package/{src/surfaces/point-of-sale/components/Navigator.d.ts → build/ts/surfaces/point-of-sale/components/Divider.d.ts} +7 -10
  215. package/build/ts/surfaces/point-of-sale/components/Page.d.ts +4 -4
  216. package/build/ts/surfaces/point-of-sale/components/QrCode.d.ts +43 -0
  217. package/build/ts/surfaces/point-of-sale/components/ScrollBox.d.ts +93 -2
  218. package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +14 -0
  219. package/build/ts/surfaces/point-of-sale/components/targets/ReceiptComponents.d.ts +1 -1
  220. package/build/ts/surfaces/point-of-sale/components/targets/ReceiptComponents.d.ts.map +1 -1
  221. package/build/ts/surfaces/point-of-sale/targets/pos.receipt-footer.block.render.d.ts +2 -0
  222. package/build/ts/surfaces/point-of-sale/targets/pos.receipt-header.block.render.d.ts +2 -0
  223. package/build/tsconfig.tsbuildinfo +1 -1
  224. package/package.json +1 -1
  225. package/src/docs/shared/components/Details.ts +12 -0
  226. package/src/docs/shared/components/EmailField.ts +1 -1
  227. package/src/docs/shared/components/Modal.ts +1 -1
  228. package/src/docs/shared/components/MoneyField.ts +2 -1
  229. package/src/docs/shared/components/Popover.ts +1 -1
  230. package/src/docs/shared/components/PressButton.ts +12 -0
  231. package/src/docs/shared/components/SkeletonParagraph.ts +12 -0
  232. package/src/docs/shared/components/Summary.ts +12 -0
  233. package/src/docs/shared/components/Tooltip.ts +2 -2
  234. package/src/docs/shared/components/index.ts +6 -1
  235. package/src/index.ts +0 -1
  236. package/src/shared.ts +5 -36
  237. package/src/surfaces/checkout/api/address-autocomplete/standard.ts +1 -1
  238. package/src/surfaces/checkout/api/cart-line/cart-line-item.ts +3 -3
  239. package/src/surfaces/checkout/api/order-confirmation/order-confirmation.ts +2 -2
  240. package/src/surfaces/checkout/api/payment/payment-option-item.ts +3 -3
  241. package/src/surfaces/checkout/api/pickup/pickup-location-item.ts +3 -3
  242. package/src/surfaces/checkout/api/pickup/pickup-location-list.ts +2 -2
  243. package/src/surfaces/checkout/api/pickup/pickup-point-list.ts +2 -2
  244. package/src/surfaces/checkout/api/shipping/shipping-option-item.ts +3 -3
  245. package/src/surfaces/checkout/api/shipping/shipping-option-list.ts +3 -3
  246. package/src/surfaces/checkout/api/standard/standard.ts +44 -40
  247. package/src/surfaces/checkout/components/Badge/examples/basic-badge.example.html +3 -0
  248. package/src/surfaces/checkout/components/Badge.d.ts +3 -8
  249. package/src/surfaces/checkout/components/Banner/examples/basic-banner.example.html +1 -2
  250. package/src/surfaces/checkout/components/Button.d.ts +1 -1
  251. package/src/surfaces/checkout/components/Clickable/examples/basic-clickable.example.html +3 -0
  252. package/src/surfaces/checkout/components/Clickable.d.ts +1 -1
  253. package/src/surfaces/checkout/components/Details/examples/basic-details.example.html +6 -0
  254. package/src/surfaces/checkout/components/Details.d.ts +15 -2
  255. package/src/surfaces/checkout/components/Divider/examples/basic-divider.example.html +1 -0
  256. package/src/surfaces/checkout/components/Divider.d.ts +17 -2
  257. package/src/surfaces/checkout/components/DropZone/examples/basic-drop-zone.example.html +1 -0
  258. package/src/surfaces/checkout/components/DropZone.d.ts +8 -3
  259. package/src/surfaces/checkout/components/EmailField/examples/basic-email-field.example.html +1 -0
  260. package/src/surfaces/checkout/components/EmailField.d.ts +8 -1
  261. package/src/surfaces/checkout/components/Grid/examples/basic-grid.example.html +11 -0
  262. package/src/surfaces/checkout/components/Grid.d.ts +7 -7
  263. package/src/surfaces/checkout/components/Icon.d.ts +2 -7
  264. package/src/surfaces/checkout/components/Link.d.ts +1 -1
  265. package/src/surfaces/checkout/components/MapMarker.d.ts +9 -12
  266. package/src/surfaces/checkout/components/Modal.d.ts +16 -15
  267. package/src/surfaces/checkout/components/MoneyField/examples/basic-money-field.example.html +1 -0
  268. package/{build/ts/surfaces/customer-account/components/UrlField.d.ts → src/surfaces/checkout/components/MoneyField.d.ts} +14 -18
  269. package/src/surfaces/checkout/components/PhoneField/examples/basic-phone-field.example.html +1 -0
  270. package/src/surfaces/checkout/components/PhoneField.d.ts +10 -12
  271. package/src/surfaces/checkout/components/Popover/examples/basic-popover.example.html +7 -0
  272. package/src/surfaces/checkout/components/Popover.d.ts +50 -2
  273. package/src/surfaces/checkout/components/PressButton/examples/basic-press-button.example.html +1 -0
  274. package/{build/ts/surfaces/checkout/components/Select.d.ts → src/surfaces/checkout/components/PressButton.d.ts} +20 -20
  275. package/src/surfaces/checkout/components/ProductThumbnail/examples/{basic-productthumbnail.example.html → basic-product-thumbnail.example.html} +1 -1
  276. package/src/surfaces/checkout/components/Sheet/examples/basic-sheet.example.html +5 -0
  277. package/src/surfaces/checkout/components/Sheet.d.ts +21 -15
  278. package/src/surfaces/checkout/components/SkeletonParagraph/examples/basic-skeleton-paragraph.example.html +2 -0
  279. package/src/surfaces/checkout/components/Stack/examples/basic-stack.example.html +4 -0
  280. package/src/surfaces/checkout/components/Stack.d.ts +4 -4
  281. package/src/surfaces/checkout/components/Switch/examples/basic-switch.example.html +1 -0
  282. package/src/surfaces/checkout/components/Text/examples/basic-text.example.html +1 -1
  283. package/src/surfaces/checkout/components/TextField.d.ts +10 -17
  284. package/src/surfaces/checkout/components/Time/examples/basic-time.example.html +1 -1
  285. package/src/surfaces/checkout/components/Tooltip/examples/basic-tooltip.example.html +9 -0
  286. package/src/surfaces/checkout/components/{Option.d.ts → Tooltip.d.ts} +9 -7
  287. package/src/surfaces/checkout/components/components-shared.d.ts +631 -275
  288. package/src/surfaces/checkout/components/components.d.ts +1013 -501
  289. package/src/surfaces/checkout/preact/api.ts +4 -0
  290. package/src/surfaces/checkout/preact/subscription.ts +9 -8
  291. package/src/surfaces/checkout/preact/tests/buyer-identity.test.tsx +2 -3
  292. package/src/surfaces/checkout/preact/tests/mount.tsx +3 -3
  293. package/src/surfaces/checkout/shared.ts +37 -3
  294. package/src/surfaces/checkout.ts +3 -1
  295. package/src/surfaces/customer-account/api/shared.ts +2 -1
  296. package/src/surfaces/point-of-sale/components/Banner.d.ts +11 -2
  297. package/src/surfaces/point-of-sale/components/Button.d.ts +29 -4
  298. package/{build/ts/surfaces/point-of-sale/components/Navigator.d.ts → src/surfaces/point-of-sale/components/Divider.d.ts} +7 -10
  299. package/src/surfaces/point-of-sale/components/Page.d.ts +4 -4
  300. package/src/surfaces/point-of-sale/components/QrCode.d.ts +43 -0
  301. package/src/surfaces/point-of-sale/components/ScrollBox.d.ts +93 -2
  302. package/src/surfaces/point-of-sale/components/components-shared.d.ts +14 -0
  303. package/src/surfaces/point-of-sale/components/targets/ReceiptComponents.ts +1 -1
  304. package/src/surfaces/point-of-sale/components.d.ts +506 -336
  305. package/build/ts/surfaces/checkout/components/NumberField.d.ts +0 -85
  306. package/build/ts/surfaces/checkout/components/PasswordField.d.ts +0 -84
  307. package/build/ts/surfaces/customer-account/components/NumberField.d.ts +0 -85
  308. package/build/ts/surfaces/customer-account/components/PasswordField.d.ts +0 -84
  309. package/build/ts/surfaces/point-of-sale/components/Screen.d.ts +0 -91
  310. package/build/ts/surfaces/point-of-sale/components/shared.d.ts +0 -76
  311. package/src/surfaces/checkout/components/DropZone/examples/basic-dropzone.example.html +0 -1
  312. package/src/surfaces/checkout/components/EmailField/examples/basic-emailfield.example.html +0 -4
  313. package/src/surfaces/checkout/components/NumberField.d.ts +0 -85
  314. package/src/surfaces/checkout/components/PasswordField.d.ts +0 -84
  315. package/src/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.html +0 -2
  316. package/src/surfaces/point-of-sale/components/Screen.d.ts +0 -91
  317. package/src/surfaces/point-of-sale/components/shared.d.ts +0 -76
  318. /package/src/surfaces/checkout/components/ClipboardItem/examples/{basic-clipboarditem.example.html → basic-clipboard-item.example.html} +0 -0
  319. /package/src/surfaces/checkout/components/OrderedList/examples/{basic-orderedlist.example.html → basic-ordered-list.example.html} +0 -0
  320. /package/src/surfaces/checkout/components/PaymentIcon/examples/{basic-paymenticon.example.html → basic-payment-icon.example.html} +0 -0
  321. /package/src/surfaces/checkout/components/QRCode/examples/{basic-qrcode.example.html → basic-qr-code.example.html} +0 -0
  322. /package/src/surfaces/checkout/components/TextArea/examples/{basic-textarea.example.html → basic-text-area.example.html} +0 -0
  323. /package/src/surfaces/checkout/components/TextField/examples/{basic-textfield.example.html → basic-text-field.example.html} +0 -0
  324. /package/src/surfaces/checkout/components/UnorderedList/examples/{basic-unorderedlist.example.html → basic-unordered-list.example.html} +0 -0
@@ -9,7 +9,6 @@
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
11
  import type {MapMarkerProps$1} from './components-shared.d.ts';
12
- import { ReactNode } from 'react';
13
12
 
14
13
  /**
15
14
  * Used when an element does not have children.
@@ -19,6 +18,12 @@ export interface BaseElementProps<TClass = HTMLElement> {
19
18
  ref?: preact.Ref<TClass>;
20
19
  slot?: Lowercase<string>;
21
20
  }
21
+ /**
22
+ * Used when an element has children.
23
+ */
24
+ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
25
+ children?: preact.ComponentChildren;
26
+ }
22
27
  export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
23
28
  currentTarget: HTMLElementTagNameMap[TTagName];
24
29
  };
@@ -40,14 +45,6 @@ export interface MapMarkerElementEvents {
40
45
  */
41
46
  click?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
42
47
  }
43
- export interface MapMarkerSlots {
44
- /**
45
- * The graphic to use as the marker.
46
- *
47
- * If unset, it will default to the provider’s default marker.
48
- */
49
- graphic?: ReactNode;
50
- }
51
48
  export interface MapMarkerElementSlots {
52
49
  /**
53
50
  * The graphic to use as the marker.
@@ -56,7 +53,7 @@ export interface MapMarkerElementSlots {
56
53
  */
57
54
  graphic?: HTMLElement;
58
55
  }
59
- export interface MapMarkerElement extends MapMarkerElementProps, MapMarkerSlots, Omit<HTMLElement, 'id' | 'onclick'> {
56
+ export interface MapMarkerElement extends MapMarkerElementProps, Omit<HTMLElement, 'id' | 'onclick'> {
60
57
  onclick: MapMarkerEvents['onClick'];
61
58
  }
62
59
  export interface MapMarkerProps extends MapMarkerElementProps, MapMarkerEvents {
@@ -69,9 +66,9 @@ declare global {
69
66
  declare module 'preact' {
70
67
  namespace createElement.JSX {
71
68
  interface IntrinsicElements {
72
- [tagName]: MapMarkerProps & BaseElementProps<MapMarkerElement>;
69
+ [tagName]: MapMarkerProps & BaseElementPropsWithChildren<MapMarkerElement>;
73
70
  }
74
71
  }
75
72
  }
76
73
 
77
- export type { MapMarkerElement, MapMarkerElementEvents, MapMarkerElementProps, MapMarkerElementSlots, MapMarkerEvents, MapMarkerProps, MapMarkerSlots };
74
+ export type { MapMarkerElement, MapMarkerElementEvents, MapMarkerElementProps, MapMarkerElementSlots, MapMarkerEvents, MapMarkerProps };
@@ -9,7 +9,6 @@
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
11
  import type {ModalProps$1} from './components-shared.d.ts';
12
- import { ReactNode } from 'react';
13
12
 
14
13
  /**
15
14
  * Used when an element does not have children.
@@ -36,16 +35,6 @@ declare const tagName = "s-modal";
36
35
  export interface ModalElementProps extends Pick<ModalProps$1, 'accessibilityLabel' | 'heading' | 'id' | 'padding' | 'size'> {
37
36
  size?: Extract<ModalProps$1['size'], 'small-100' | 'small' | 'base' | 'large-100' | 'large' | 'max'>;
38
37
  }
39
- export interface ModalSlots extends Pick<ModalProps$1, 'primaryAction' | 'secondaryActions'> {
40
- /**
41
- * The primary action to perform, provided as a button type element.
42
- */
43
- primaryAction?: ReactNode;
44
- /**
45
- * The secondary actions to perform, provided as button type elements.
46
- */
47
- secondaryActions?: ReactNode;
48
- }
49
38
  export interface ModalElementSlots {
50
39
  /**
51
40
  * The primary action to perform, provided as a button type element.
@@ -56,9 +45,19 @@ export interface ModalElementSlots {
56
45
  */
57
46
  'secondary-actions'?: HTMLElement;
58
47
  }
59
- export interface ModalEvents extends Pick<ModalProps$1, 'onHide' | 'onShow'> {
48
+ export interface ModalEvents extends Pick<ModalProps$1, 'onAfterHide' | 'onAfterShow' | 'onHide' | 'onShow'> {
49
+ }
50
+ export interface ModalElementMethods extends Pick<ModalProps$1, 'hideOverlay'> {
60
51
  }
61
52
  export interface ModalElementEvents {
53
+ /**
54
+ * Callback fired when the overlay is hidden **after** any animations to hide the overlay have finished.
55
+ */
56
+ afterhide?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
57
+ /**
58
+ * Callback fired when the overlay is shown **after** any animations to show the overlay have finished.
59
+ */
60
+ aftershow?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
62
61
  /**
63
62
  * Callback fired after the overlay is hidden.
64
63
  */
@@ -68,11 +67,13 @@ export interface ModalElementEvents {
68
67
  */
69
68
  show?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
70
69
  }
71
- export interface ModalElement extends ModalElementProps, ModalSlots, Omit<HTMLElement, 'id'> {
70
+ export interface ModalElement extends ModalElementProps, ModalElementMethods, Omit<HTMLElement, 'id'> {
71
+ onafterhide: ModalEvents['onAfterHide'];
72
+ onaftershow: ModalEvents['onAfterShow'];
72
73
  onhide: ModalEvents['onHide'];
73
74
  onshow: ModalEvents['onShow'];
74
75
  }
75
- export interface ModalProps extends ModalElementProps, ModalSlots, ModalEvents {
76
+ export interface ModalProps extends ModalElementProps, ModalEvents {
76
77
  }
77
78
  declare global {
78
79
  interface HTMLElementTagNameMap {
@@ -87,4 +88,4 @@ declare module 'preact' {
87
88
  }
88
89
  }
89
90
 
90
- export type { ModalElement, ModalElementEvents, ModalElementProps, ModalElementSlots, ModalProps, ModalSlots };
91
+ export type { ModalElement, ModalElementEvents, ModalElementProps, ModalElementSlots, ModalProps };
@@ -0,0 +1 @@
1
+ <s-money-field label="Price" value="9.99"></s-money-field>
@@ -8,7 +8,7 @@
8
8
  /* eslint-disable import-x/namespace */
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
- import type {URLFieldProps} from './components-shared.d.ts';
11
+ import type {MoneyFieldProps$1} from './components-shared.d.ts';
12
12
 
13
13
  /**
14
14
  * Used when an element does not have children.
@@ -25,16 +25,12 @@ export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap,
25
25
  (event: CallbackEvent<TTagName, TEvent>): void;
26
26
  }) | null;
27
27
 
28
- declare const tagName = "s-url-field";
29
- export interface UrlFieldElementProps extends Pick<URLFieldProps, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'maxLength'
30
- /** @todo: implement `minLength` */
31
- | 'name'
32
- /** @todo: implement `placeholder` */
33
- | 'readOnly' | 'required' | 'value'> {
28
+ declare const tagName = "s-money-field";
29
+ export interface MoneyFieldElementProps extends Pick<MoneyFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'max' | 'min' | 'name' | 'readOnly' | 'required' | 'step' | 'value'> {
34
30
  }
35
- export interface UrlFieldEvents extends Pick<URLFieldProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
31
+ export interface MoneyFieldEvents extends Pick<MoneyFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
36
32
  }
37
- export interface UrlFieldElementEvents {
33
+ export interface MoneyFieldElementEvents {
38
34
  /**
39
35
  * Callback when the element loses focus.
40
36
  *
@@ -60,25 +56,25 @@ export interface UrlFieldElementEvents {
60
56
  */
61
57
  input?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
62
58
  }
63
- export interface UrlFieldElement extends UrlFieldElementProps, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
64
- onblur: UrlFieldEvents['onBlur'];
65
- onchange: UrlFieldEvents['onChange'];
66
- onfocus: UrlFieldEvents['onFocus'];
67
- oninput: UrlFieldEvents['onInput'];
59
+ export interface MoneyFieldElement extends MoneyFieldElementProps {
60
+ onblur: MoneyFieldEvents['onBlur'];
61
+ onchange: MoneyFieldEvents['onChange'];
62
+ onfocus: MoneyFieldEvents['onFocus'];
63
+ oninput: MoneyFieldEvents['onInput'];
68
64
  }
69
- export interface UrlFieldProps extends UrlFieldElementProps, UrlFieldEvents {
65
+ export interface MoneyFieldProps extends MoneyFieldElementProps, MoneyFieldEvents {
70
66
  }
71
67
  declare global {
72
68
  interface HTMLElementTagNameMap {
73
- [tagName]: UrlFieldElement;
69
+ [tagName]: MoneyFieldElement;
74
70
  }
75
71
  }
76
72
  declare module 'preact' {
77
73
  namespace createElement.JSX {
78
74
  interface IntrinsicElements {
79
- [tagName]: UrlFieldProps & BaseElementProps<UrlFieldElement>;
75
+ [tagName]: MoneyFieldProps & BaseElementProps<MoneyFieldElement>;
80
76
  }
81
77
  }
82
78
  }
83
79
 
84
- export type { UrlFieldElement, UrlFieldElementEvents, UrlFieldElementProps, UrlFieldEvents, UrlFieldProps };
80
+ export type { MoneyFieldElement, MoneyFieldElementEvents, MoneyFieldElementProps, MoneyFieldEvents, MoneyFieldProps };
@@ -0,0 +1 @@
1
+ <s-phone-field label="Phone number" defaultValue="888-746-7439"></s-phone-field>
@@ -9,7 +9,6 @@
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
11
  import type {PhoneFieldProps$1} from './components-shared.d.ts';
12
- import { ReactNode } from 'react';
13
12
 
14
13
  /**
15
14
  * Used when an element does not have children.
@@ -19,6 +18,12 @@ export interface BaseElementProps<TClass = HTMLElement> {
19
18
  ref?: preact.Ref<TClass>;
20
19
  slot?: Lowercase<string>;
21
20
  }
21
+ /**
22
+ * Used when an element has children.
23
+ */
24
+ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
25
+ children?: preact.ComponentChildren;
26
+ }
22
27
  export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
23
28
  currentTarget: HTMLElementTagNameMap[TTagName];
24
29
  };
@@ -62,13 +67,6 @@ export interface PhoneFieldElementEvents {
62
67
  */
63
68
  input?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
64
69
  }
65
- export interface PhoneFieldSlots extends Pick<PhoneFieldProps$1, 'accessory'> {
66
- /**
67
- * Additional content to be displayed in the field.
68
- * Commonly used to display an icon that activates a tooltip providing more information.
69
- */
70
- accessory?: ReactNode;
71
- }
72
70
  export interface PhoneFieldElementSlots {
73
71
  /**
74
72
  * Additional content to be displayed in the field.
@@ -76,13 +74,13 @@ export interface PhoneFieldElementSlots {
76
74
  */
77
75
  accessory?: HTMLElement;
78
76
  }
79
- export interface PhoneFieldElement extends PhoneFieldElementProps, PhoneFieldSlots, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
77
+ export interface PhoneFieldElement extends PhoneFieldElementProps, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
80
78
  onblur: PhoneFieldEvents['onBlur'];
81
79
  onchange: PhoneFieldEvents['onChange'];
82
80
  onfocus: PhoneFieldEvents['onFocus'];
83
81
  oninput: PhoneFieldEvents['onInput'];
84
82
  }
85
- export interface PhoneFieldProps extends PhoneFieldElementProps, PhoneFieldSlots, PhoneFieldEvents {
83
+ export interface PhoneFieldProps extends PhoneFieldElementProps, PhoneFieldEvents {
86
84
  }
87
85
  declare global {
88
86
  interface HTMLElementTagNameMap {
@@ -92,9 +90,9 @@ declare global {
92
90
  declare module 'preact' {
93
91
  namespace createElement.JSX {
94
92
  interface IntrinsicElements {
95
- [tagName]: PhoneFieldProps & BaseElementProps<PhoneFieldElement>;
93
+ [tagName]: PhoneFieldProps & BaseElementPropsWithChildren<PhoneFieldElement>;
96
94
  }
97
95
  }
98
96
  }
99
97
 
100
- export type { PhoneFieldElement, PhoneFieldElementEvents, PhoneFieldElementProps, PhoneFieldElementSlots, PhoneFieldEvents, PhoneFieldProps, PhoneFieldSlots };
98
+ export type { PhoneFieldElement, PhoneFieldElementEvents, PhoneFieldElementProps, PhoneFieldElementSlots, PhoneFieldEvents, PhoneFieldProps };
@@ -0,0 +1,7 @@
1
+ <s-button commandFor="popover-veteran-id">Open Popover</s-button>
2
+ <s-popover id="popover-veteran-id">
3
+ <s-stack gap="base" padding="base" direction="inline">
4
+ <s-text-field label="Veteran ID"></s-text-field>
5
+ <s-button variant="primary">Validate</s-button>
6
+ </s-stack>
7
+ </s-popover>
@@ -8,7 +8,7 @@
8
8
  /* eslint-disable import-x/namespace */
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
- import type {PopoverProps$1} from './components-shared.d.ts';
11
+ import type {PopoverProps$1,SizeUnitsOrAuto, SizeUnitsOrNone, SizeUnits} from './components-shared.d.ts';
12
12
 
13
13
  /**
14
14
  * Used when an element does not have children.
@@ -32,7 +32,55 @@ export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap,
32
32
  }) | null;
33
33
 
34
34
  declare const tagName = "s-popover";
35
- export interface PopoverElementProps extends Pick<PopoverProps$1, 'blockSize' | 'id' | 'inlineSize' | 'maxBlockSize' | 'maxInlineSize' | 'minBlockSize' | 'minInlineSize'> {
35
+ export interface PopoverElementProps extends Pick<PopoverProps$1, 'id'> {
36
+ /**
37
+ * Adjust the block size.
38
+ *
39
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/block-size
40
+ *
41
+ * @default 'auto'
42
+ */
43
+ blockSize?: SizeUnitsOrAuto;
44
+ /**
45
+ * Adjust the inline size.
46
+ *
47
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/inline-size
48
+ *
49
+ * @default 'auto'
50
+ */
51
+ inlineSize?: SizeUnitsOrAuto;
52
+ /**
53
+ * Adjust the maximum block size.
54
+ *
55
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/max-block-size
56
+ *
57
+ * @default 'none'
58
+ */
59
+ maxBlockSize?: SizeUnitsOrNone;
60
+ /**
61
+ * Adjust the maximum inline size.
62
+ *
63
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/max-inline-size
64
+ *
65
+ * @default 'none'
66
+ */
67
+ maxInlineSize?: SizeUnitsOrNone;
68
+ /**
69
+ * Adjust the minimum block size.
70
+ *
71
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/min-block-size
72
+ *
73
+ * @default '0'
74
+ */
75
+ minBlockSize?: SizeUnits;
76
+ /**
77
+ * Adjust the minimum inline size.
78
+ *
79
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/min-inline-size
80
+ *
81
+ * @default '0'
82
+ */
83
+ minInlineSize?: SizeUnits;
36
84
  }
37
85
  export interface PopoverEvents extends Pick<PopoverProps$1, 'onHide' | 'onShow'> {
38
86
  }
@@ -0,0 +1 @@
1
+ <s-press-button>Add gift wrapping</s-press-button>
@@ -8,7 +8,7 @@
8
8
  /* eslint-disable import-x/namespace */
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
- import type {SelectProps$1} from './components-shared.d.ts';
11
+ import type {PressButtonProps$1} from './components-shared.d.ts';
12
12
 
13
13
  /**
14
14
  * Used when an element does not have children.
@@ -31,49 +31,49 @@ export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap,
31
31
  (event: CallbackEvent<TTagName, TEvent>): void;
32
32
  }) | null;
33
33
 
34
- declare const tagName = "s-select";
35
- export interface SelectElementProps extends Pick<SelectProps$1, 'autocomplete' | 'disabled' | 'error' | 'id' | 'label' | 'name' | 'placeholder' | 'required' | 'value'> {
34
+ declare const tagName = "s-press-button";
35
+ export interface PressButtonElementProps extends Pick<PressButtonProps$1, 'accessibilityLabel' | 'id' | 'inlineSize' | 'lang' | 'disabled' | 'loading' | 'pressed' | 'defaultPressed'> {
36
36
  }
37
- export interface SelectEvents extends Pick<SelectProps$1, 'onBlur' | 'onChange' | 'onFocus'> {
37
+ export interface PressButtonEvents extends Pick<PressButtonProps$1, 'onClick' | 'onBlur' | 'onFocus'> {
38
38
  }
39
- export interface SelectElementEvents {
39
+ export interface PressButtonElementEvents {
40
40
  /**
41
- * Callback when the element loses focus.
41
+ * Callback when the button is activated.
42
42
  *
43
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
43
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event
44
44
  */
45
- blur?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
45
+ click?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
46
46
  /**
47
- * Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
47
+ * Callback when the button has lost focus.
48
48
  *
49
- * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
49
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
50
50
  */
51
- change?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
51
+ blur?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
52
52
  /**
53
- * Callback when the element receives focus.
53
+ * Callback when the button has received focus.
54
54
  *
55
55
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
56
56
  */
57
57
  focus?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
58
58
  }
59
- export interface SelectElement extends SelectElementProps, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus'> {
60
- onblur: SelectEvents['onBlur'];
61
- onchange: SelectEvents['onChange'];
62
- onfocus: SelectEvents['onFocus'];
59
+ export interface PressButtonElement extends PressButtonElementProps, Omit<HTMLElement, 'children' | 'lang' | 'id' | 'onblur' | 'onclick' | 'onfocus'> {
60
+ onblur: PressButtonEvents['onBlur'];
61
+ onclick: PressButtonEvents['onClick'];
62
+ onfocus: PressButtonEvents['onFocus'];
63
63
  }
64
- export interface SelectProps extends SelectElementProps, SelectEvents {
64
+ export interface PressButtonProps extends PressButtonElementProps, PressButtonEvents {
65
65
  }
66
66
  declare global {
67
67
  interface HTMLElementTagNameMap {
68
- [tagName]: SelectElement;
68
+ [tagName]: PressButtonElement;
69
69
  }
70
70
  }
71
71
  declare module 'preact' {
72
72
  namespace createElement.JSX {
73
73
  interface IntrinsicElements {
74
- [tagName]: SelectProps & BaseElementPropsWithChildren<SelectElement>;
74
+ [tagName]: PressButtonProps & BaseElementPropsWithChildren<PressButtonElement>;
75
75
  }
76
76
  }
77
77
  }
78
78
 
79
- export type { SelectElement, SelectElementEvents, SelectElementProps, SelectEvents, SelectProps };
79
+ export type { PressButtonElement, PressButtonElementEvents, PressButtonElementProps, PressButtonEvents, PressButtonProps };
@@ -1,4 +1,4 @@
1
1
  <s-product-thumbnail
2
2
  src="https://cdn.shopify.com/YOUR_IMAGE_HERE"
3
- totalitems="1"
3
+ totalItems="1"
4
4
  ></s-product-thumbnail>
@@ -0,0 +1,5 @@
1
+ <!-- This component requires access to Customer Privacy API to be rendered. -->
2
+ <s-button commandFor="consent-sheet">Open Sheet</s-button>
3
+ <s-sheet id="consent-sheet" heading="Sheet" accessibilityLabel="A sheet with text content">
4
+ <s-text>Sheet Content</s-text>
5
+ </s-sheet>
@@ -9,7 +9,6 @@
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
11
  import type {SheetProps$1} from './components-shared.d.ts';
12
- import { ReactNode } from 'react';
13
12
 
14
13
  /**
15
14
  * Used when an element does not have children.
@@ -28,6 +27,9 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends Base
28
27
  export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
29
28
  currentTarget: HTMLElementTagNameMap[TTagName];
30
29
  };
30
+ export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = (EventListener & {
31
+ (event: CallbackEvent<TTagName, TEvent>): void;
32
+ }) | null;
31
33
 
32
34
  declare const tagName = "s-sheet";
33
35
  export interface SheetElementProps extends Pick<SheetProps$1, 'defaultOpen' | 'heading' | 'id'> {
@@ -40,27 +42,25 @@ export interface SheetElementProps extends Pick<SheetProps$1, 'defaultOpen' | 'h
40
42
  */
41
43
  accessibilityLabel?: string;
42
44
  }
43
- export interface SheetEvents extends Pick<SheetProps$1, 'onHide' | 'onShow' | 'onAfterHide' | 'onAfterShow'> {
45
+ export interface SheetEvents extends Pick<SheetProps$1, 'onAfterHide' | 'onAfterShow' | 'onHide' | 'onShow'> {
44
46
  }
45
47
  export interface SheetElementEvents {
46
48
  /**
47
- * Callback fired after the overlay is hidden.
49
+ * Callback fired when the overlay is hidden **after** any animations to hide the overlay have finished.
48
50
  */
49
- hide?: ((event: CallbackEvent<typeof tagName>) => void) | null;
51
+ afterhide?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
50
52
  /**
51
- * Callback fired after the overlay is shown.
53
+ * Callback fired when the overlay is shown **after** any animations to show the overlay have finished.
52
54
  */
53
- show?: ((event: CallbackEvent<typeof tagName>) => void) | null;
54
- }
55
- export interface SheetSlots {
55
+ aftershow?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
56
56
  /**
57
- * The primary action to perform, provided as a button type element.
57
+ * Callback fired after the overlay is hidden.
58
58
  */
59
- primaryAction?: ReactNode;
59
+ hide?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
60
60
  /**
61
- * The secondary actions to perform, provided as a button type element.
61
+ * Callback fired after the overlay is shown.
62
62
  */
63
- secondaryActions?: ReactNode;
63
+ show?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
64
64
  }
65
65
  export interface SheetElementSlots {
66
66
  /**
@@ -72,11 +72,17 @@ export interface SheetElementSlots {
72
72
  */
73
73
  'secondary-actions'?: HTMLElement;
74
74
  }
75
- export interface SheetElement extends SheetElementProps, SheetSlots, Omit<HTMLElement, 'id'> {
75
+ export interface SheetElementMethods extends Pick<SheetProps$1, 'hideOverlay'> {
76
+ }
77
+ export interface SheetElement extends SheetElementProps, SheetElementMethods, Omit<HTMLElement, 'id'> {
78
+ afterhide: SheetEvents['onAfterHide'];
79
+ aftershow: SheetEvents['onAfterShow'];
76
80
  onhide: SheetEvents['onHide'];
77
81
  onshow: SheetEvents['onShow'];
82
+ onafterhide: SheetEvents['onAfterHide'];
83
+ onaftershow: SheetEvents['onAfterShow'];
78
84
  }
79
- export interface SheetProps extends SheetElementProps, SheetEvents, SheetSlots {
85
+ export interface SheetProps extends SheetElementProps, SheetEvents {
80
86
  }
81
87
  declare global {
82
88
  interface HTMLElementTagNameMap {
@@ -91,4 +97,4 @@ declare module 'preact' {
91
97
  }
92
98
  }
93
99
 
94
- export type { SheetElement, SheetElementEvents, SheetElementProps, SheetElementSlots, SheetEvents, SheetProps, SheetSlots };
100
+ export type { SheetElement, SheetElementEvents, SheetElementProps, SheetElementSlots, SheetEvents, SheetProps };
@@ -0,0 +1,2 @@
1
+ <s-skeleton-paragraph></s-skeleton-paragraph>
2
+
@@ -2,17 +2,21 @@
2
2
  <s-image
3
3
  src="https://cdn.shopify.com/plant-1"
4
4
  alt="Areca palm in a gray pot"
5
+ inlineSize="auto"
5
6
  />
6
7
  <s-image
7
8
  src="https://cdn.shopify.com/plant-2"
8
9
  alt="Fiddle leaf fig in a gray pot"
10
+ inlineSize="auto"
9
11
  />
10
12
  <s-image
11
13
  src="https://cdn.shopify.com/plant-3"
12
14
  alt="Snake plant in a gray pot"
15
+ inlineSize="auto"
13
16
  />
14
17
  <s-image
15
18
  src="https://cdn.shopify.com/plant-4"
16
19
  alt="Monstera deliciosa in a gray pot"
20
+ inlineSize="auto"
17
21
  />
18
22
  </s-stack>
@@ -8,7 +8,7 @@
8
8
  /* eslint-disable import-x/namespace */
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
- import type {StackProps$1,MaybeAllValuesShorthandProperty,BorderSizeKeyword, BorderStyleKeyword,ColorKeyword} from './components-shared.d.ts';
11
+ import type {StackProps$1,MaybeAllValuesShorthandProperty, MaybeResponsive,BorderSizeKeyword, BorderStyleKeyword,ColorKeyword} from './components-shared.d.ts';
12
12
 
13
13
  export type ReducedBorderSizeKeyword = Extract<BorderSizeKeyword, 'none' | 'base' | 'large' | 'large-100' | 'large-200'>;
14
14
  export type ReducedColorKeyword = Extract<ColorKeyword, 'base'>;
@@ -35,9 +35,9 @@ export interface StackProps extends Pick<StackProps$1, 'accessibilityLabel' | 'a
35
35
  border?: BorderShorthand;
36
36
  borderWidth?: MaybeAllValuesShorthandProperty<ReducedBorderSizeKeyword> | '';
37
37
  borderRadius?: MaybeAllValuesShorthandProperty<Extract<StackProps$1['borderRadius'], 'none' | 'small-100' | 'small' | 'base' | 'large' | 'large-100' | 'max'>>;
38
- alignContent?: Extract<StackProps$1['alignContent'], 'normal' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'center' | 'start' | 'end'>;
39
- alignItems?: Extract<StackProps$1['alignItems'], 'normal' | 'stretch' | 'center' | 'start' | 'end'>;
40
- justifyContent?: Extract<StackProps$1['justifyContent'], 'normal' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'center' | 'start' | 'end'>;
38
+ alignContent?: MaybeResponsive<Extract<StackProps$1['alignContent'], 'normal' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'center' | 'start' | 'end'>>;
39
+ alignItems?: MaybeResponsive<Extract<StackProps$1['alignItems'], 'normal' | 'stretch' | 'center' | 'start' | 'end'>>;
40
+ justifyContent?: MaybeResponsive<Extract<StackProps$1['justifyContent'], 'normal' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'center' | 'start' | 'end'>>;
41
41
  }
42
42
  export interface StackElement extends StackProps, Omit<HTMLElement, 'id'> {
43
43
  }
@@ -0,0 +1 @@
1
+ <s-switch label="Shipping insurance"></s-switch>
@@ -1,3 +1,3 @@
1
1
  <s-text type="small" color="subdued">
2
- All transactions are secure and encrypted
2
+ All transactions are secure and encrypted.
3
3
  </s-text>
@@ -8,8 +8,7 @@
8
8
  /* eslint-disable import-x/namespace */
9
9
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
10
10
  /// <reference lib="DOM" />
11
- import type {IconProps$1, TextFieldProps$1,IconType} from './components-shared.d.ts';
12
- import { ReactNode } from 'react';
11
+ import type {IconProps$1, TextFieldProps$1} from './components-shared.d.ts';
13
12
 
14
13
  /**
15
14
  * Used when an element does not have children.
@@ -20,11 +19,12 @@ export interface BaseElementProps<TClass = HTMLElement> {
20
19
  slot?: Lowercase<string>;
21
20
  }
22
21
  /**
23
- * The list of available icon types.
24
- *
25
- * @see https://github.com/Shopify/ui-api-design/blob/main/packages/ui-api-design/src/components/Icon/Icon.ts#L10
22
+ * Used when an element has children.
26
23
  */
27
- export type ReducedIconTypes = Extract<IconType, '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'>;
24
+ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
25
+ children?: preact.ComponentChildren;
26
+ }
27
+ export type ReducedIconTypes = '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';
28
28
  export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
29
29
  currentTarget: HTMLElementTagNameMap[TTagName];
30
30
  };
@@ -90,13 +90,6 @@ export interface TextFieldElementEvents {
90
90
  */
91
91
  input?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
92
92
  }
93
- export interface TextFieldSlots {
94
- /**
95
- * Additional content to be displayed in the field.
96
- * Commonly used to display an icon that activates a tooltip providing more information.
97
- */
98
- accessory?: ReactNode;
99
- }
100
93
  export interface TextFieldElementSlots {
101
94
  /**
102
95
  * Additional content to be displayed in the field.
@@ -104,13 +97,13 @@ export interface TextFieldElementSlots {
104
97
  */
105
98
  accessory?: HTMLElement;
106
99
  }
107
- export interface TextFieldElement extends TextFieldElementProps, TextFieldSlots, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
100
+ export interface TextFieldElement extends TextFieldElementProps, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
108
101
  onblur: TextFieldEvents['onBlur'];
109
102
  onchange: TextFieldEvents['onChange'];
110
103
  onfocus: TextFieldEvents['onFocus'];
111
104
  oninput: TextFieldEvents['onInput'];
112
105
  }
113
- export interface TextFieldProps extends TextFieldElementProps, TextFieldSlots, TextFieldEvents {
106
+ export interface TextFieldProps extends TextFieldElementProps, TextFieldEvents {
114
107
  }
115
108
  declare global {
116
109
  interface HTMLElementTagNameMap {
@@ -120,9 +113,9 @@ declare global {
120
113
  declare module 'preact' {
121
114
  namespace createElement.JSX {
122
115
  interface IntrinsicElements {
123
- [tagName]: TextFieldProps & BaseElementProps<TextFieldElement>;
116
+ [tagName]: TextFieldProps & BaseElementPropsWithChildren<TextFieldElement>;
124
117
  }
125
118
  }
126
119
  }
127
120
 
128
- export type { TextFieldElement, TextFieldElementEvents, TextFieldElementProps, TextFieldElementSlots, TextFieldEvents, TextFieldProps, TextFieldSlots };
121
+ export type { TextFieldElement, TextFieldElementEvents, TextFieldElementProps, TextFieldElementSlots, TextFieldEvents, TextFieldProps };