@shopify/ui-extensions 2026.7.4 → 2026.10.0-rc.10

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 (329) hide show
  1. package/build/cjs/surfaces/checkout/preact/market.js +8 -2
  2. package/build/cjs/surfaces/checkout/shared.js +0 -2
  3. package/build/cjs/surfaces/customer-account/preact/market.js +8 -2
  4. package/build/cjs/surfaces/point-of-sale/events.js +129 -1
  5. package/build/cjs/surfaces/point-of-sale/types/storage.js +11 -0
  6. package/build/cjs/surfaces/point-of-sale.js +1 -0
  7. package/build/esm/surfaces/checkout/preact/market.mjs +8 -2
  8. package/build/esm/surfaces/checkout/shared.mjs +0 -2
  9. package/build/esm/surfaces/customer-account/preact/market.mjs +8 -2
  10. package/build/esm/surfaces/point-of-sale/events.mjs +129 -2
  11. package/build/esm/surfaces/point-of-sale/types/storage.mjs +11 -0
  12. package/build/esm/surfaces/point-of-sale.mjs +1 -1
  13. package/build/esnext/surfaces/checkout/preact/market.esnext +8 -2
  14. package/build/esnext/surfaces/checkout/shared.esnext +0 -2
  15. package/build/esnext/surfaces/customer-account/preact/market.esnext +8 -2
  16. package/build/esnext/surfaces/point-of-sale/events.esnext +129 -2
  17. package/build/esnext/surfaces/point-of-sale/types/storage.esnext +11 -0
  18. package/build/esnext/surfaces/point-of-sale.esnext +1 -1
  19. package/build/ts/shared.d.ts +2 -2
  20. package/build/ts/shared.d.ts.map +1 -1
  21. package/build/ts/surfaces/admin/components/AdminAction.d.ts +61 -107
  22. package/build/ts/surfaces/admin/components/AdminBlock.d.ts +22 -107
  23. package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +20 -101
  24. package/build/ts/surfaces/admin/components/AppNav.d.ts +38 -1
  25. package/build/ts/surfaces/admin/components/Avatar.d.ts +100 -139
  26. package/build/ts/surfaces/admin/components/Badge.d.ts +107 -156
  27. package/build/ts/surfaces/admin/components/Banner.d.ts +102 -127
  28. package/build/ts/surfaces/admin/components/Box.d.ts +145 -234
  29. package/build/ts/surfaces/admin/components/Button.d.ts +156 -266
  30. package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +89 -117
  31. package/build/ts/surfaces/admin/components/Checkbox.d.ts +139 -174
  32. package/build/ts/surfaces/admin/components/Chip.d.ts +117 -15
  33. package/build/ts/surfaces/admin/components/Choice.d.ts +88 -113
  34. package/build/ts/surfaces/admin/components/ChoiceList.d.ts +120 -129
  35. package/build/ts/surfaces/admin/components/Clickable.d.ts +227 -209
  36. package/build/ts/surfaces/admin/components/ClickableChip.d.ts +117 -153
  37. package/build/ts/surfaces/admin/components/ColorField.d.ts +111 -215
  38. package/build/ts/surfaces/admin/components/ColorPicker.d.ts +82 -137
  39. package/build/ts/surfaces/admin/components/DateField.d.ts +140 -230
  40. package/build/ts/surfaces/admin/components/DatePicker.d.ts +178 -181
  41. package/build/ts/surfaces/admin/components/Divider.d.ts +50 -118
  42. package/build/ts/surfaces/admin/components/DropZone.d.ts +153 -12
  43. package/build/ts/surfaces/admin/components/EmailField.d.ts +100 -197
  44. package/build/ts/surfaces/admin/components/EmptyState.d.ts +144 -0
  45. package/build/ts/surfaces/admin/components/Form.d.ts +25 -118
  46. package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +26 -132
  47. package/build/ts/surfaces/admin/components/Grid.d.ts +165 -299
  48. package/build/ts/surfaces/admin/components/GridItem.d.ts +145 -261
  49. package/build/ts/surfaces/admin/components/Heading.d.ts +117 -117
  50. package/build/ts/surfaces/admin/components/Icon.d.ts +91 -129
  51. package/build/ts/surfaces/admin/components/Image.d.ts +216 -251
  52. package/build/ts/surfaces/admin/components/Link.d.ts +125 -126
  53. package/build/ts/surfaces/admin/components/ListItem.d.ts +63 -102
  54. package/build/ts/surfaces/admin/components/Menu.d.ts +82 -150
  55. package/build/ts/surfaces/admin/components/Modal.d.ts +232 -26
  56. package/build/ts/surfaces/admin/components/MoneyField.d.ts +103 -196
  57. package/build/ts/surfaces/admin/components/Number.d.ts +193 -0
  58. package/build/ts/surfaces/admin/components/NumberField.d.ts +114 -208
  59. package/build/ts/surfaces/admin/components/Option.d.ts +67 -108
  60. package/build/ts/surfaces/admin/components/OptionGroup.d.ts +69 -105
  61. package/build/ts/surfaces/admin/components/OrderedList.d.ts +56 -102
  62. package/build/ts/surfaces/admin/components/Page.d.ts +93 -13
  63. package/build/ts/surfaces/admin/components/Paragraph.d.ts +126 -138
  64. package/build/ts/surfaces/admin/components/PasswordField.d.ts +109 -203
  65. package/build/ts/surfaces/admin/components/Popover.d.ts +673 -0
  66. package/build/ts/surfaces/admin/components/Progress.d.ts +155 -0
  67. package/build/ts/surfaces/admin/components/QueryContainer.d.ts +77 -116
  68. package/build/ts/surfaces/admin/components/SearchField.d.ts +103 -191
  69. package/build/ts/surfaces/admin/components/Section.d.ts +132 -128
  70. package/build/ts/surfaces/admin/components/Select.d.ts +144 -193
  71. package/build/ts/surfaces/admin/components/Spinner.d.ts +60 -113
  72. package/build/ts/surfaces/admin/components/Stack.d.ts +156 -282
  73. package/build/ts/surfaces/admin/components/StandardComponents.d.ts +1 -1
  74. package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
  75. package/build/ts/surfaces/admin/components/Switch.d.ts +75 -165
  76. package/build/ts/surfaces/admin/components/Table.d.ts +100 -210
  77. package/build/ts/surfaces/admin/components/TableBody.d.ts +70 -106
  78. package/build/ts/surfaces/admin/components/TableCell.d.ts +70 -107
  79. package/build/ts/surfaces/admin/components/TableHeader.d.ts +79 -119
  80. package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +71 -107
  81. package/build/ts/surfaces/admin/components/TableRow.d.ts +81 -109
  82. package/build/ts/surfaces/admin/components/Text.d.ts +123 -164
  83. package/build/ts/surfaces/admin/components/TextArea.d.ts +100 -195
  84. package/build/ts/surfaces/admin/components/TextField.d.ts +120 -204
  85. package/build/ts/surfaces/admin/components/Thumbnail.d.ts +83 -133
  86. package/build/ts/surfaces/admin/components/Tooltip.d.ts +78 -146
  87. package/build/ts/surfaces/admin/components/URLField.d.ts +107 -209
  88. package/build/ts/surfaces/admin/components/UnorderedList.d.ts +58 -110
  89. package/build/ts/surfaces/admin/components/shared.d.ts +4193 -1203
  90. package/build/ts/surfaces/admin/extension-targets.d.ts +8 -0
  91. package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
  92. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +2 -0
  93. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +2 -0
  94. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-index.action.render.d.ts +2 -0
  95. package/build/ts/surfaces/admin/targets/admin.app.home.render.d.ts +2 -0
  96. package/build/ts/surfaces/admin/targets/admin.app.intent.render.d.ts +2 -0
  97. package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +2 -0
  98. package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +2 -0
  99. package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +2 -0
  100. package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +2 -0
  101. package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +2 -0
  102. package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +2 -0
  103. package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +2 -0
  104. package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +2 -0
  105. package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +2 -0
  106. package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +2 -0
  107. package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +2 -0
  108. package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +2 -0
  109. package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +2 -0
  110. package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +2 -0
  111. package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +2 -0
  112. package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +2 -0
  113. package/build/ts/surfaces/admin/targets/admin.discount-index.selection-action.render.d.ts +2 -0
  114. package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +2 -0
  115. package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +2 -0
  116. package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +2 -0
  117. package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +2 -0
  118. package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +2 -0
  119. package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +2 -0
  120. package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +2 -0
  121. package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +2 -0
  122. package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +2 -0
  123. package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +2 -0
  124. package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +2 -0
  125. package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +2 -0
  126. package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +2 -0
  127. package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +2 -0
  128. package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +2 -0
  129. package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +2 -0
  130. package/build/ts/surfaces/admin/targets/admin.product-details.configuration.should-render.d.ts +6 -0
  131. package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +2 -0
  132. package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +2 -0
  133. package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +2 -0
  134. package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +2 -0
  135. package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +2 -0
  136. package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +2 -0
  137. package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +2 -0
  138. package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +2 -0
  139. package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +2 -0
  140. package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.should-render.d.ts +6 -0
  141. package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +2 -0
  142. package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +2 -0
  143. package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +2 -0
  144. package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +2 -0
  145. package/build/ts/surfaces/checkout/api/standard/standard.d.ts +8 -5
  146. package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
  147. package/build/ts/surfaces/checkout/components/Box.d.ts +56 -1
  148. package/build/ts/surfaces/checkout/components/components-shared.d.ts +1 -1
  149. package/build/ts/surfaces/checkout/preact/market.d.ts +8 -2
  150. package/build/ts/surfaces/checkout/preact/market.d.ts.map +1 -1
  151. package/build/ts/surfaces/checkout/shared.d.ts +1 -3
  152. package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
  153. package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +0 -1
  154. package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +0 -1
  155. package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +0 -1
  156. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +0 -1
  157. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +0 -1
  158. package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +0 -1
  159. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +0 -1
  160. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +0 -1
  161. package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +0 -1
  162. package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +0 -1
  163. package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +0 -1
  164. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +0 -1
  165. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +0 -1
  166. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +0 -1
  167. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +0 -1
  168. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +0 -1
  169. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +0 -1
  170. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +0 -1
  171. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +0 -1
  172. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +0 -1
  173. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +0 -1
  174. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +0 -1
  175. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +0 -1
  176. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +0 -1
  177. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +0 -1
  178. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +0 -1
  179. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +0 -1
  180. package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +0 -1
  181. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +0 -1
  182. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +0 -1
  183. package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +0 -1
  184. package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +0 -1
  185. package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +0 -1
  186. package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +6 -1
  187. package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
  188. package/build/ts/surfaces/customer-account/components/Box.d.ts +56 -1
  189. package/build/ts/surfaces/customer-account/components/components-shared.d.ts +1 -1
  190. package/build/ts/surfaces/customer-account/preact/market.d.ts +8 -2
  191. package/build/ts/surfaces/customer-account/preact/market.d.ts.map +1 -1
  192. package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +0 -1
  193. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.announcement.render.d.ts +0 -1
  194. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +0 -1
  195. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.announcement.render.d.ts +0 -1
  196. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +0 -1
  197. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +0 -1
  198. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +0 -1
  199. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +0 -1
  200. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +0 -1
  201. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +0 -1
  202. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +0 -1
  203. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +0 -1
  204. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +0 -1
  205. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +0 -1
  206. package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +0 -1
  207. package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +0 -1
  208. package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +0 -1
  209. package/build/ts/surfaces/customer-account/targets/customer-account.profile.announcement.render.d.ts +0 -1
  210. package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +0 -1
  211. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +0 -1
  212. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +0 -1
  213. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +0 -1
  214. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +0 -1
  215. package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +0 -1
  216. package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +13 -0
  217. package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts.map +1 -1
  218. package/build/ts/surfaces/point-of-sale/api/resolution-api/resolution-api.d.ts +23 -0
  219. package/build/ts/surfaces/point-of-sale/api/resolution-api/resolution-api.d.ts.map +1 -0
  220. package/build/ts/surfaces/point-of-sale/api.d.ts +3 -2
  221. package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
  222. package/build/ts/surfaces/point-of-sale/components/targets/ResolutionComponents.d.ts +10 -0
  223. package/build/ts/surfaces/point-of-sale/components/targets/ResolutionComponents.d.ts.map +1 -0
  224. package/build/ts/surfaces/point-of-sale/events/scan-event.d.ts +34 -0
  225. package/build/ts/surfaces/point-of-sale/events/scan-event.d.ts.map +1 -0
  226. package/build/ts/surfaces/point-of-sale/events.d.ts +183 -1
  227. package/build/ts/surfaces/point-of-sale/events.d.ts.map +1 -1
  228. package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +17 -3
  229. package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
  230. package/build/ts/surfaces/point-of-sale/globals.d.ts +8 -1
  231. package/build/ts/surfaces/point-of-sale/globals.d.ts.map +1 -1
  232. package/build/ts/surfaces/point-of-sale/targets/pos.cart.validations.resolution.render.d.ts +44 -0
  233. package/build/ts/surfaces/point-of-sale/targets/pos.payment.validations.resolution.render.d.ts +44 -0
  234. package/build/ts/surfaces/point-of-sale/types/cart.d.ts +4 -0
  235. package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
  236. package/build/ts/surfaces/point-of-sale/types/storage.d.ts +40 -0
  237. package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -1
  238. package/build/tsconfig.tsbuildinfo +1 -1
  239. package/package.json +1 -1
  240. package/src/shared.ts +4 -2
  241. package/src/surfaces/admin/components/AdminAction.d.ts +61 -107
  242. package/src/surfaces/admin/components/AdminBlock.d.ts +22 -107
  243. package/src/surfaces/admin/components/AdminPrintAction.d.ts +20 -101
  244. package/src/surfaces/admin/components/AppNav.d.ts +38 -1
  245. package/src/surfaces/admin/components/Avatar.d.ts +100 -139
  246. package/src/surfaces/admin/components/Badge.d.ts +107 -156
  247. package/src/surfaces/admin/components/Banner.d.ts +102 -127
  248. package/src/surfaces/admin/components/Box.d.ts +145 -234
  249. package/src/surfaces/admin/components/Button.d.ts +156 -266
  250. package/src/surfaces/admin/components/ButtonGroup.d.ts +89 -117
  251. package/src/surfaces/admin/components/Checkbox.d.ts +139 -174
  252. package/src/surfaces/admin/components/Chip.d.ts +117 -15
  253. package/src/surfaces/admin/components/Choice.d.ts +88 -113
  254. package/src/surfaces/admin/components/ChoiceList.d.ts +120 -129
  255. package/src/surfaces/admin/components/Clickable.d.ts +227 -209
  256. package/src/surfaces/admin/components/ClickableChip.d.ts +117 -153
  257. package/src/surfaces/admin/components/ColorField.d.ts +111 -215
  258. package/src/surfaces/admin/components/ColorPicker.d.ts +82 -137
  259. package/src/surfaces/admin/components/DateField.d.ts +140 -230
  260. package/src/surfaces/admin/components/DatePicker.d.ts +178 -181
  261. package/src/surfaces/admin/components/Divider.d.ts +50 -118
  262. package/src/surfaces/admin/components/DropZone.d.ts +153 -12
  263. package/src/surfaces/admin/components/EmailField.d.ts +100 -197
  264. package/src/surfaces/admin/components/EmptyState.d.ts +144 -0
  265. package/src/surfaces/admin/components/Form.d.ts +25 -118
  266. package/src/surfaces/admin/components/FunctionSettings.d.ts +26 -132
  267. package/src/surfaces/admin/components/Grid.d.ts +165 -299
  268. package/src/surfaces/admin/components/GridItem.d.ts +145 -261
  269. package/src/surfaces/admin/components/Heading.d.ts +117 -117
  270. package/src/surfaces/admin/components/Icon.d.ts +91 -129
  271. package/src/surfaces/admin/components/Image.d.ts +216 -251
  272. package/src/surfaces/admin/components/Link.d.ts +125 -126
  273. package/src/surfaces/admin/components/ListItem.d.ts +63 -102
  274. package/src/surfaces/admin/components/Menu.d.ts +82 -150
  275. package/src/surfaces/admin/components/Modal.d.ts +232 -26
  276. package/src/surfaces/admin/components/MoneyField.d.ts +103 -196
  277. package/src/surfaces/admin/components/Number.d.ts +193 -0
  278. package/src/surfaces/admin/components/NumberField.d.ts +114 -208
  279. package/src/surfaces/admin/components/Option.d.ts +67 -108
  280. package/src/surfaces/admin/components/OptionGroup.d.ts +69 -105
  281. package/src/surfaces/admin/components/OrderedList.d.ts +56 -102
  282. package/src/surfaces/admin/components/Page.d.ts +93 -13
  283. package/src/surfaces/admin/components/Paragraph.d.ts +126 -138
  284. package/src/surfaces/admin/components/PasswordField.d.ts +109 -203
  285. package/src/surfaces/admin/components/Popover.d.ts +673 -0
  286. package/src/surfaces/admin/components/Progress.d.ts +155 -0
  287. package/src/surfaces/admin/components/QueryContainer.d.ts +77 -116
  288. package/src/surfaces/admin/components/SearchField.d.ts +103 -191
  289. package/src/surfaces/admin/components/Section.d.ts +132 -128
  290. package/src/surfaces/admin/components/Select.d.ts +144 -193
  291. package/src/surfaces/admin/components/Spinner.d.ts +60 -113
  292. package/src/surfaces/admin/components/Stack.d.ts +156 -282
  293. package/src/surfaces/admin/components/StandardComponents.ts +2 -0
  294. package/src/surfaces/admin/components/Switch.d.ts +75 -165
  295. package/src/surfaces/admin/components/Table.d.ts +100 -210
  296. package/src/surfaces/admin/components/TableBody.d.ts +70 -106
  297. package/src/surfaces/admin/components/TableCell.d.ts +70 -107
  298. package/src/surfaces/admin/components/TableHeader.d.ts +79 -119
  299. package/src/surfaces/admin/components/TableHeaderRow.d.ts +71 -107
  300. package/src/surfaces/admin/components/TableRow.d.ts +81 -109
  301. package/src/surfaces/admin/components/Text.d.ts +123 -164
  302. package/src/surfaces/admin/components/TextArea.d.ts +100 -195
  303. package/src/surfaces/admin/components/TextField.d.ts +120 -204
  304. package/src/surfaces/admin/components/Thumbnail.d.ts +83 -133
  305. package/src/surfaces/admin/components/Tooltip.d.ts +78 -146
  306. package/src/surfaces/admin/components/URLField.d.ts +107 -209
  307. package/src/surfaces/admin/components/UnorderedList.d.ts +58 -110
  308. package/src/surfaces/admin/components/shared.d.ts +4193 -1203
  309. package/src/surfaces/admin/extension-targets.ts +18 -0
  310. package/src/surfaces/checkout/api/standard/standard.ts +8 -5
  311. package/src/surfaces/checkout/components/Box.d.ts +56 -1
  312. package/src/surfaces/checkout/components/components-shared.d.ts +1 -1
  313. package/src/surfaces/checkout/preact/market.ts +8 -2
  314. package/src/surfaces/checkout/shared.ts +1 -6
  315. package/src/surfaces/customer-account/api/order-status/order-status.ts +6 -1
  316. package/src/surfaces/customer-account/preact/market.ts +8 -2
  317. package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +14 -0
  318. package/src/surfaces/point-of-sale/api/resolution-api/resolution-api.ts +24 -0
  319. package/src/surfaces/point-of-sale/api.ts +7 -1
  320. package/src/surfaces/point-of-sale/components/targets/ResolutionComponents.ts +13 -0
  321. package/src/surfaces/point-of-sale/events/scan-event.ts +34 -0
  322. package/src/surfaces/point-of-sale/events.ts +215 -0
  323. package/src/surfaces/point-of-sale/extension-targets.ts +33 -2
  324. package/src/surfaces/point-of-sale/globals.ts +16 -1
  325. package/src/surfaces/point-of-sale/types/cart.ts +4 -0
  326. package/src/surfaces/point-of-sale/types/storage.ts +47 -0
  327. package/build/ts/surfaces/checkout/components/LoginWithShop.d.ts +0 -164
  328. package/build/ts/surfaces/customer-account/components/LoginWithShop.d.ts +0 -164
  329. package/src/surfaces/checkout/components/LoginWithShop.d.ts +0 -164
@@ -0,0 +1,673 @@
1
+ /** VERSION: 2.23.0 **/
2
+ /* eslint-disable import/extensions */
3
+
4
+ /* eslint-disable @typescript-eslint/no-namespace */
5
+ /* eslint-disable @typescript-eslint/member-ordering */
6
+
7
+ // eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
8
+ /// <reference lib="DOM" />
9
+ import type {
10
+ ComponentChildren,
11
+ PopoverProps$1,
12
+ BoxProps$1,
13
+ PreactCustomElement,
14
+ RenderImpl,
15
+ InteractionProps,
16
+ MaybeAllValuesShorthandProperty,
17
+ SizeUnitsOrAuto,
18
+ SizeUnits,
19
+ SizeUnitsOrNone,
20
+ } from './shared.d.ts';
21
+ import * as preact$1 from 'preact';
22
+ import {ReactNode, RefAttributes} from 'react';
23
+
24
+ /**
25
+ * An event object with a strongly-typed `currentTarget` property that references the specific HTML element that triggered the event.
26
+ *
27
+ * This type extends the standard DOM `Event` interface and ensures type safety when accessing the element that fired the event.
28
+ * @publicDocs
29
+ */
30
+ export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
31
+ currentTarget: HTMLElementTagNameMap[T];
32
+ };
33
+ /**
34
+ * A toggle event with a strongly-typed `currentTarget` property. Extends the `ToggleEvent` interface with type-safe access to the element that triggered the toggle.
35
+ * @publicDocs
36
+ */
37
+ export type CallbackToggleEvent<
38
+ TTagName extends keyof HTMLElementTagNameMap,
39
+ TEvent extends ToggleEvent = ToggleEvent,
40
+ > = TEvent & {
41
+ currentTarget: HTMLElementTagNameMap[TTagName];
42
+ };
43
+ /**
44
+ * A function that handles events from UI components.
45
+ *
46
+ * This type represents an event listener callback that receives a `CallbackEvent` with a strongly-typed `currentTarget`. Use this for component event handlers like `click`, `focus`, `blur`, and other DOM events.
47
+ *
48
+ * @example
49
+ * const handleClick: CallbackEventListener<'button'> = (event) => {
50
+ * console.log('Button clicked:', event.currentTarget);
51
+ * };
52
+ * @publicDocs
53
+ */
54
+ export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
55
+ | (EventListener & {
56
+ (event: CallbackEvent<T>): void;
57
+ })
58
+ | null;
59
+ /**
60
+ * Base props for Preact custom elements without children support. Includes common properties like key, ref, and slot for elements that don't accept child content.
61
+ * @publicDocs
62
+ */
63
+ export interface PreactBaseElementProps<TClass extends HTMLElement> {
64
+ /**
65
+ * A unique identifier for this element, used by the virtual DOM to efficiently track and update elements in lists.
66
+ * Essential for maintaining component state and optimizing re-renders when lists change.
67
+ */
68
+ key?: preact.Key;
69
+ /**
70
+ * A reference to access the underlying DOM element directly.
71
+ * Typically created using `useRef()` to interact with the element imperatively or measure its properties.
72
+ */
73
+ ref?: preact.Ref<TClass>;
74
+ /**
75
+ * The named slot to which this element is assigned in the parent component's shadow DOM.
76
+ *
77
+ * Used for advanced component composition with web components.
78
+ */
79
+ slot?: Lowercase<string>;
80
+ }
81
+ /**
82
+ * Base props for Preact custom elements with children support. Extends PreactBaseElementProps with the ability to render child elements.
83
+ * @publicDocs
84
+ */
85
+ export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
86
+ extends PreactBaseElementProps<TClass> {
87
+ /**
88
+ * The child elements to be rendered within this component.
89
+ */
90
+ children?: preact.ComponentChildren;
91
+ }
92
+
93
+ export type ReactIntrinsicElementChildren<PreactProps extends object> =
94
+ 'children' extends keyof PreactProps
95
+ ? {
96
+ children?: ReactNode;
97
+ }
98
+ : Record<never, never>;
99
+ export type ReactIntrinsicElementProps<
100
+ PreactProps extends object,
101
+ ElementType,
102
+ > = Omit<PreactProps, 'children' | 'key' | 'ref' | 'slot'> &
103
+ ReactIntrinsicElementChildren<PreactProps> &
104
+ RefAttributes<ElementType> & {
105
+ slot?: Lowercase<string>;
106
+ };
107
+ export type ReactIntrinsicElements = {
108
+ [Tag in Exclude<
109
+ Extract<keyof preact$1.createElement.JSX.IntrinsicElements, `s-${string}`>,
110
+ `s-test-${string}`
111
+ >]: ReactIntrinsicElementProps<
112
+ preact$1.createElement.JSX.IntrinsicElements[Tag],
113
+ Tag extends keyof HTMLElementTagNameMap
114
+ ? HTMLElementTagNameMap[Tag]
115
+ : HTMLElement
116
+ >;
117
+ };
118
+ declare module 'react' {
119
+ namespace JSX {
120
+ interface IntrinsicElements extends ReactIntrinsicElements {}
121
+ }
122
+ }
123
+
124
+ export interface PopoverProps
125
+ extends Required<
126
+ Pick<
127
+ PopoverProps$1,
128
+ | 'blockSize'
129
+ | 'inlineSize'
130
+ | 'maxBlockSize'
131
+ | 'maxInlineSize'
132
+ | 'minBlockSize'
133
+ | 'minInlineSize'
134
+ >
135
+ > {}
136
+
137
+ declare class PolarisCustomElement extends PreactCustomElement {
138
+ constructor(renderImpl: Omit<RenderImpl, 'globalShadowCSS'>);
139
+ /** @private */
140
+ connectedCallback(): void;
141
+ /** @private */
142
+ adoptedCallback(): void;
143
+ }
144
+
145
+ export interface PreactOverlayControlProps
146
+ extends Pick<InteractionProps, 'commandFor' | 'interestFor'> {
147
+ /**
148
+ * The action that [command](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#command) should take when this component is activated.
149
+ *
150
+ * - `--auto`: A default action for the target component.
151
+ * - `--show`: Shows the target component.
152
+ * - `--hide`: Hides the target component.
153
+ * - `--toggle`: Toggles the visibility of the target component.
154
+ *
155
+ * @default '--auto'
156
+ */
157
+ command: Extract<
158
+ InteractionProps['command'],
159
+ '--show' | '--hide' | '--toggle' | '--auto'
160
+ >;
161
+ /**
162
+ * The component that [commandFor](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#commandfor) should act on when this component is activated.
163
+ */
164
+ commandFor: Extract<InteractionProps['commandFor'], string>;
165
+ /**
166
+ * The ID of the component to show when users hover over or focus on this component. Use this to connect interactive components to popovers or tooltips that provide additional context or information.
167
+ */
168
+ interestFor: Extract<InteractionProps['interestFor'], string>;
169
+ }
170
+
171
+ /**
172
+ * Shared symbols for overlay control functionality.
173
+ * These symbols are used by components that implement overlay behavior
174
+ * (like Popover, Tooltip, Modal, etc.) to communicate with the overlay control system.
175
+ */
176
+ /**
177
+ * Symbol used to track the open or closed state of the overlay.
178
+ */
179
+ declare const overlayHidden: unique symbol;
180
+ /**
181
+ * Symbol used to track the element that opened the overlay. In some cases, like tooltips and popovers, the overlay is positioned against this element. In all cases, focus should be restored to this element when the overlay is closed.
182
+ */
183
+ declare const overlayActivator: unique symbol;
184
+ declare const overlayHideFrameId: unique symbol;
185
+ /**
186
+ * Represents the initialization object for creating a polyfill command event. Used for overlay control commands in environments that require polyfills.
187
+ * @publicDocs
188
+ */
189
+ export type PolyfillCommandEventInit = EventInit & {
190
+ source: HTMLElement | null | undefined;
191
+ command: PreactOverlayControlProps['command'];
192
+ rootActivator?: HTMLElement | null;
193
+ };
194
+ /**
195
+ * Represents a polyfill command event for overlay controls. Used in environments where native command events are not available.
196
+ * @publicDocs
197
+ */
198
+ export type PolyfillCommandEvent = Event & {
199
+ source: PolyfillCommandEventInit['source'];
200
+ command: PolyfillCommandEventInit['command'];
201
+ /** Have to use `_s_shadowSource` because `source` is retargeted to the shadow host by browsers */
202
+ _s_shadowSource: PolyfillCommandEventInit['source'];
203
+ /** Root activator for nested overlays (e.g., menu button when modal opened from menu item) */
204
+ _s_rootActivator?: HTMLElement | null;
205
+ };
206
+ declare global {
207
+ interface GlobalEventHandlersEventMap {
208
+ command: PolyfillCommandEvent;
209
+ }
210
+ }
211
+
212
+ declare class PreactOverlayElement extends PolarisCustomElement {
213
+ constructor(renderImpl: RenderImpl);
214
+ /** @private */
215
+ disconnectedCallback(): void;
216
+ /** @private */
217
+ [overlayHidden]: boolean;
218
+ /** @private */
219
+ [overlayActivator]: HTMLElement | null | undefined;
220
+ /** @private */
221
+ [overlayHideFrameId]?: number;
222
+ }
223
+
224
+ /**
225
+ * Makes a type responsive by allowing it to be either the base value or a container query string. This enables conditional styling based on container dimensions.
226
+ * @publicDocs
227
+ */
228
+ export type MakeResponsive<T> = T | `@container${string}`;
229
+ /**
230
+ * Makes a property's value potentially responsive.
231
+ *
232
+ * @example
233
+ * type Example = {
234
+ * color: boolean;
235
+ * margin: string;
236
+ * padding: number;
237
+ * }
238
+ * type Result = MakeResponsivePick<Example, 'color' | 'margin' | 'padding'>;
239
+ * // Result = {
240
+ * color: boolean | `@container${string}`;
241
+ * margin: string | `@container${string}`;
242
+ * padding: number | `@container${string}`;
243
+ * }
244
+ * @publicDocs
245
+ */
246
+ export type MakeResponsivePick<TType, TProperty extends keyof TType> = {
247
+ [P in TProperty]: MakeResponsive<TType[P]>;
248
+ };
249
+
250
+ /**
251
+ * Represents the box component props with all properties marked as required.
252
+ * @publicDocs
253
+ */
254
+ export type RequiredBoxProps = Required<BoxProps$1>;
255
+ /**
256
+ * Represents the subset of border radius values supported by the component.
257
+ *
258
+ * - `small-200`: Extra small radius for subtle rounding.
259
+ * - `small-100`: Small radius for minimal corner rounding.
260
+ * - `small`: Standard small radius.
261
+ * - `base`: Medium radius for moderate corner rounding.
262
+ * - `large`: Standard large radius for pronounced rounding.
263
+ * - `large-100`: Large radius for more prominent corner rounding.
264
+ * - `large-200`: Extra large radius for maximum rounding.
265
+ * - `none`: No border radius (sharp corners).
266
+ * @publicDocs
267
+ */
268
+ export type BoxBorderRadii = Extract<
269
+ RequiredBoxProps['borderRadius'],
270
+ | 'none'
271
+ | 'small-200'
272
+ | 'small-100'
273
+ | 'small'
274
+ | 'base'
275
+ | 'large'
276
+ | 'large-100'
277
+ | 'large-200'
278
+ >;
279
+ /**
280
+ * Represents the subset of border style values supported by the box component.
281
+ *
282
+ * - `auto`: Default border style determined by the system.
283
+ * - `none`: No border style (removes the border).
284
+ * - `solid`: Continuous line border.
285
+ * - `dashed`: Border made up of dashes.
286
+ * @publicDocs
287
+ */
288
+ export type BoxBorderStyles = Extract<
289
+ RequiredBoxProps['borderStyle'],
290
+ 'none' | 'solid' | 'dashed' | 'auto'
291
+ >;
292
+ /**
293
+ * Represents box props with responsive capabilities for layout properties.
294
+ *
295
+ * This enables conditional styling based on container queries.
296
+ * @publicDocs
297
+ */
298
+ export type ResponsiveBoxProps = MakeResponsivePick<
299
+ RequiredBoxProps,
300
+ | 'padding'
301
+ | 'paddingBlock'
302
+ | 'paddingBlockStart'
303
+ | 'paddingBlockEnd'
304
+ | 'paddingInline'
305
+ | 'paddingInlineStart'
306
+ | 'paddingInlineEnd'
307
+ | 'display'
308
+ >;
309
+ export interface BoxProps
310
+ extends Pick<
311
+ RequiredBoxProps,
312
+ | 'accessibilityLabel'
313
+ | 'accessibilityRole'
314
+ | 'accessibilityVisibility'
315
+ | 'background'
316
+ | 'blockSize'
317
+ | 'border'
318
+ | 'borderColor'
319
+ | 'borderRadius'
320
+ | 'borderStyle'
321
+ | 'borderWidth'
322
+ | 'inlineSize'
323
+ | 'maxBlockSize'
324
+ | 'maxInlineSize'
325
+ | 'minBlockSize'
326
+ | 'minInlineSize'
327
+ | 'overflow'
328
+ > {
329
+ /**
330
+ * The background color of the component.
331
+ *
332
+ * @default 'transparent'
333
+ */
334
+ background: Extract<
335
+ RequiredBoxProps['background'],
336
+ 'transparent' | 'base' | 'subdued' | 'strong'
337
+ >;
338
+ /**
339
+ * A border applied using shorthand syntax to specify width, color, and style in a single property.
340
+ *
341
+ * @default 'none'
342
+ */
343
+ border: RequiredBoxProps['border'];
344
+ /**
345
+ * The thickness of the border on all sides. When set, this overrides the width value specified in the `border` property.
346
+ *
347
+ * @default '' - meaning no override
348
+ */
349
+ borderWidth:
350
+ | MaybeAllValuesShorthandProperty<
351
+ Extract<
352
+ RequiredBoxProps['borderWidth'],
353
+ 'small-100' | 'small' | 'base' | 'large' | 'large-100' | 'none'
354
+ >
355
+ >
356
+ | Extract<RequiredBoxProps['borderWidth'], ''>;
357
+ /**
358
+ * The visual style of the border on all sides, such as solid, dashed, or dotted. When set, this overrides the style value specified in the `border` property.
359
+ *
360
+ * @default '' - meaning no override
361
+ */
362
+ borderStyle:
363
+ | MaybeAllValuesShorthandProperty<BoxBorderStyles>
364
+ | Extract<RequiredBoxProps['borderStyle'], ''>;
365
+ /**
366
+ * The color of the border using the design system's color scale. When set, this overrides the color value specified in the `border` property.
367
+ *
368
+ * @default '' - meaning no override
369
+ */
370
+ borderColor: Extract<
371
+ RequiredBoxProps['borderColor'],
372
+ 'subdued' | 'base' | 'strong' | ''
373
+ >;
374
+ /**
375
+ * The roundedness of the element's corners using the design system's radius scale.
376
+ *
377
+ * @default 'none'
378
+ */
379
+ borderRadius: MaybeAllValuesShorthandProperty<BoxBorderRadii>;
380
+ /**
381
+ * The padding applied to all edges of the component.
382
+ *
383
+ * Supports [1-to-4-value syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box) using flow-relative values:
384
+ * - 1 value applies to all sides
385
+ * - 2 values apply to block (top/bottom) and inline (left/right)
386
+ * - 3 values apply to block-start (top), inline (left/right), and block-end (bottom)
387
+ * - 4 values apply to block-start (top), inline-end (right), block-end (bottom), and inline-start (left)
388
+ *
389
+ * **Examples:** `base`, `large none`, `base large-100 base small`
390
+ *
391
+ * Use `auto` to inherit padding from the nearest container with removed padding. Also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
392
+ *
393
+ * @default 'none'
394
+ */
395
+ padding: ResponsiveBoxProps['padding'];
396
+ /**
397
+ * The block-direction padding (top and bottom in horizontal writing modes).
398
+ *
399
+ * Accepts a single value for both sides or two space-separated values for block-start and block-end.
400
+ *
401
+ * **Example:** `large none` applies `large` to the top and `none` to the bottom.
402
+ *
403
+ * Overrides the block value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
404
+ *
405
+ * @default '' - meaning no override
406
+ */
407
+ paddingBlock: ResponsiveBoxProps['paddingBlock'];
408
+ /**
409
+ * The block-start padding (top in horizontal writing modes).
410
+ *
411
+ * Overrides the block-start value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
412
+ *
413
+ * @default '' - meaning no override
414
+ */
415
+ paddingBlockStart: ResponsiveBoxProps['paddingBlockStart'];
416
+ /**
417
+ * The block-end padding (bottom in horizontal writing modes).
418
+ *
419
+ * Overrides the block-end value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
420
+ *
421
+ * @default '' - meaning no override
422
+ */
423
+ paddingBlockEnd: ResponsiveBoxProps['paddingBlockEnd'];
424
+ /**
425
+ * The inline-direction padding (left and right in horizontal writing modes).
426
+ *
427
+ * Accepts a single value for both sides or two space-separated values for inline-start and inline-end.
428
+ *
429
+ * **Example:** `large none` applies `large` to the left and `none` to the right.
430
+ *
431
+ * Overrides the inline value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
432
+ *
433
+ * @default '' - meaning no override
434
+ */
435
+ paddingInline: ResponsiveBoxProps['paddingInline'];
436
+ /**
437
+ * The inline-start padding (left in LTR writing modes, right in RTL).
438
+ *
439
+ * Overrides the inline-start value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
440
+ *
441
+ * @default '' - meaning no override
442
+ */
443
+ paddingInlineStart: ResponsiveBoxProps['paddingInlineStart'];
444
+ /**
445
+ * The inline-end padding (right in LTR writing modes, left in RTL).
446
+ *
447
+ * Overrides the inline-end value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-polaris-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.
448
+ *
449
+ * @default '' - meaning no override
450
+ */
451
+ paddingInlineEnd: ResponsiveBoxProps['paddingInlineEnd'];
452
+ /**
453
+ * The outer [display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) type of the component. The outer type sets a component's participation in [flow layout](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_flow_layout).
454
+ *
455
+ * - `auto` the component's initial value. The actual value depends on the component and context.
456
+ * - `none` hides the component from display and removes it from the accessibility tree, making it invisible to screen readers.
457
+ *
458
+ * @default 'auto'
459
+ */
460
+ display: ResponsiveBoxProps['display'];
461
+ /**
462
+ * The vertical size of the element in standard layouts (height in left-to-right or right-to-left writing modes).
463
+ *
464
+ * Block size adjusts based on the writing direction: in horizontal layouts, it controls the height;
465
+ * in vertical layouts, it controls the width. This ensures consistent behavior across different text directions.
466
+ *
467
+ * Learn more about [block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/block-size).
468
+ *
469
+ * @default 'auto'
470
+ */
471
+ blockSize: SizeUnitsOrAuto;
472
+ /**
473
+ * The minimum height in horizontal writing modes, or minimum width in vertical writing modes.
474
+ * Prevents the element from shrinking below this size.
475
+ *
476
+ * Learn more about [min-block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/min-block-size).
477
+ *
478
+ * @default '0'
479
+ */
480
+ minBlockSize: SizeUnits;
481
+ /**
482
+ * The maximum height in horizontal writing modes, or maximum width in vertical writing modes.
483
+ * Prevents the element from growing beyond this size.
484
+ *
485
+ * Learn more about [max-block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/max-block-size).
486
+ *
487
+ * @default 'none'
488
+ */
489
+ maxBlockSize: SizeUnitsOrNone;
490
+ /**
491
+ * The width in horizontal writing modes, or height in vertical writing modes.
492
+ * Use this for flow-relative sizing that adapts to text direction. Learn more about [inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/inline-size).
493
+ *
494
+ * @default 'auto'
495
+ */
496
+ inlineSize: SizeUnitsOrAuto;
497
+ /**
498
+ * The minimum width in horizontal writing modes, or minimum height in vertical writing modes.
499
+ * Prevents the element from shrinking below this size.
500
+ *
501
+ * Learn more about [min-inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/min-inline-size).
502
+ *
503
+ * @default '0'
504
+ */
505
+ minInlineSize: SizeUnits;
506
+ /**
507
+ * The maximum width in horizontal writing modes, or maximum height in vertical writing modes.
508
+ * Prevents the element from growing beyond this size.
509
+ *
510
+ * Learn more about [max-inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/max-inline-size).
511
+ *
512
+ * @default 'none'
513
+ */
514
+ maxInlineSize: SizeUnitsOrNone;
515
+ }
516
+
517
+ declare class PreactPopoverElement<TTagName extends keyof HTMLElementTagNameMap>
518
+ extends PreactOverlayElement
519
+ implements PopoverProps
520
+ {
521
+ constructor(renderImpl: RenderImpl);
522
+ /**
523
+ * The vertical size of the element in standard layouts (height in left-to-right or right-to-left writing modes).
524
+ *
525
+ * Block size adjusts based on the writing direction: in horizontal layouts, it controls the height; in vertical layouts, it controls the width. This ensures consistent behavior across different text directions.
526
+ *
527
+ * Learn more about the [block-size property](https://developer.mozilla.org/en-US/docs/Web/CSS/block-size).
528
+ *
529
+ * - `SizeUnits`: Specific size values in pixels, percentages, or zero for precise control.
530
+ * - `auto`: Automatically sizes based on content and layout constraints.
531
+ */
532
+ accessor blockSize: BoxProps['blockSize'];
533
+ /**
534
+ * The minimum vertical size of the element in standard layouts (min-height in left-to-right or right-to-left writing modes).
535
+ *
536
+ * Prevents the element from becoming smaller than this size along the block axis.
537
+ *
538
+ * Learn more about the [min-block-size property](https://developer.mozilla.org/en-US/docs/Web/CSS/min-block-size).
539
+ */
540
+ accessor minBlockSize: BoxProps['minBlockSize'];
541
+ /**
542
+ * The maximum vertical size of the element in standard layouts (max-height in left-to-right or right-to-left writing modes).
543
+ *
544
+ * Prevents the element from becoming larger than this size along the block axis.
545
+ *
546
+ * Learn more about the [max-block-size property](https://developer.mozilla.org/en-US/docs/Web/CSS/max-block-size).
547
+ */
548
+ accessor maxBlockSize: BoxProps['maxBlockSize'];
549
+ /**
550
+ * The horizontal size of the element in standard layouts (width in left-to-right or right-to-left writing modes).
551
+ *
552
+ * Inline size adjusts based on the writing direction: in horizontal layouts, it controls the width; in vertical layouts, it controls the height. This ensures consistent behavior across different text directions.
553
+ *
554
+ * Learn more about the [inline-size property](https://developer.mozilla.org/en-US/docs/Web/CSS/inline-size).
555
+ *
556
+ * - `SizeUnits`: Specific size values in pixels, percentages, or zero for precise control.
557
+ * - `auto`: Automatically sizes based on content and layout constraints.
558
+ */
559
+ accessor inlineSize: BoxProps['inlineSize'];
560
+ /**
561
+ * The minimum horizontal size of the element in standard layouts (min-width in left-to-right or right-to-left writing modes).
562
+ *
563
+ * Prevents the element from becoming smaller than this size along the inline axis.
564
+ *
565
+ * Learn more about the [min-inline-size property](https://developer.mozilla.org/en-US/docs/Web/CSS/min-inline-size).
566
+ */
567
+ accessor minInlineSize: BoxProps['minInlineSize'];
568
+ /**
569
+ * The maximum horizontal size of the element in standard layouts (max-width in left-to-right or right-to-left writing modes).
570
+ *
571
+ * Prevents the element from becoming larger than this size along the inline axis.
572
+ *
573
+ * Learn more about the [max-inline-size property](https://developer.mozilla.org/en-US/docs/Web/CSS/max-inline-size).
574
+ */
575
+ accessor maxInlineSize: BoxProps['maxInlineSize'];
576
+ /**
577
+ * A callback fired immediately when the popover starts to show, before any entrance animation.
578
+ * Use to prepare content or update positioning logic.
579
+ */
580
+ accessor onshow: CallbackEventListener<TTagName> | null;
581
+ /**
582
+ * A callback fired immediately when the popover starts to hide, before any exit animation.
583
+ * Use to perform cleanup or save state before the popover dismisses.
584
+ */
585
+ accessor onhide: CallbackEventListener<TTagName> | null;
586
+ /**
587
+ * A callback fired after the popover has fully shown and any entrance animation completes.
588
+ * Use to focus an element inside the popover or announce content to screen readers.
589
+ */
590
+ accessor onaftershow: CallbackEventListener<TTagName> | null;
591
+ /**
592
+ * A callback fired after the popover has fully hidden and any exit animation completes.
593
+ * Use to reset selections or update the trigger button state.
594
+ */
595
+ accessor onafterhide: CallbackEventListener<TTagName> | null;
596
+ /**
597
+ * A callback fired when the popover visibility toggles. Use for unified open/close
598
+ * handling when you don't need separate show and hide logic.
599
+ */
600
+ accessor ontoggle: CallbackEventListener<TTagName> | null;
601
+ /**
602
+ * A callback fired after the popover visibility toggle completes and any animation finishes.
603
+ * Use for post-transition updates.
604
+ */
605
+ accessor onaftertoggle: CallbackEventListener<TTagName> | null;
606
+ }
607
+
608
+ /**
609
+ * Configure the following properties on the popover component.
610
+ * @publicDocs
611
+ */
612
+ declare class Popover
613
+ extends PreactPopoverElement<typeof tagName>
614
+ implements PopoverProps
615
+ {
616
+ constructor();
617
+ }
618
+ declare global {
619
+ interface HTMLElementTagNameMap {
620
+ [tagName]: Popover;
621
+ }
622
+ }
623
+ declare module 'preact' {
624
+ namespace createElement.JSX {
625
+ interface IntrinsicElements {
626
+ [tagName]: PopoverJSXProps & PreactBaseElementPropsWithChildren<Popover>;
627
+ }
628
+ }
629
+ }
630
+
631
+ declare const tagName = 's-popover';
632
+ export interface PopoverJSXProps
633
+ extends Partial<PopoverProps>,
634
+ Pick<PopoverProps$1, 'id' | 'children'> {
635
+ /**
636
+ * The content displayed within the popover, which appears in an overlay positioned relative
637
+ * to its trigger element. Typically contains menus, action lists, or supplementary information.
638
+ */
639
+ children?: ComponentChildren;
640
+ /**
641
+ * A callback fired immediately when the popover starts to hide, before any exit animation.
642
+ * Use to perform cleanup or save state before the popover dismisses.
643
+ */
644
+ onHide?: (event: CallbackEvent<typeof tagName>) => void | null;
645
+ /**
646
+ * A callback fired immediately when the popover starts to show, before any entrance animation.
647
+ * Use to prepare content or update positioning logic.
648
+ */
649
+ onShow?: (event: CallbackEvent<typeof tagName>) => void | null;
650
+ /**
651
+ * A callback fired after the popover has fully hidden and any exit animation completes.
652
+ * Use to reset selections or update the trigger button state.
653
+ */
654
+ onAfterHide?: (event: CallbackEvent<typeof tagName>) => void | null;
655
+ /**
656
+ * A callback fired after the popover has fully shown and any entrance animation completes.
657
+ * Use to focus an element inside the popover or announce content to screen readers.
658
+ */
659
+ onAfterShow?: (event: CallbackEvent<typeof tagName>) => void | null;
660
+ /**
661
+ * A callback fired when the popover visibility toggles. Use for unified open/close
662
+ * handling when you don't need separate show and hide logic.
663
+ */
664
+ onToggle?: (event: CallbackToggleEvent<typeof tagName>) => void | null;
665
+ /**
666
+ * A callback fired after the popover visibility toggle completes and any animation finishes.
667
+ * Use for post-transition updates.
668
+ */
669
+ onAfterToggle?: (event: CallbackToggleEvent<typeof tagName>) => void | null;
670
+ }
671
+
672
+ export {Popover};
673
+ export type {PopoverJSXProps};