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

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 (437) hide show
  1. package/build/cjs/surfaces/checkout/shared.js +1 -1
  2. package/build/esm/surfaces/checkout/shared.mjs +1 -1
  3. package/build/esnext/surfaces/checkout/shared.esnext +1 -1
  4. package/build/ts/docs/shared/components/Announcement.d.ts +4 -0
  5. package/build/ts/docs/shared/components/Announcement.d.ts.map +1 -0
  6. package/build/ts/docs/shared/components/FunctionSettings.d.ts +4 -0
  7. package/build/ts/docs/shared/components/FunctionSettings.d.ts.map +1 -0
  8. package/build/ts/docs/shared/components/ScrollBox.d.ts +4 -0
  9. package/build/ts/docs/shared/components/ScrollBox.d.ts.map +1 -0
  10. package/build/ts/docs/shared/components/index.d.ts +4 -0
  11. package/build/ts/docs/shared/components/index.d.ts.map +1 -1
  12. package/build/ts/index.d.ts.map +1 -1
  13. package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts +30 -0
  14. package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts.map +1 -1
  15. package/build/ts/surfaces/admin/api.d.ts +1 -1
  16. package/build/ts/surfaces/admin/api.d.ts.map +1 -1
  17. package/build/ts/surfaces/admin/components/AdminAction.d.ts +5 -5
  18. package/build/ts/surfaces/admin/components/AdminBlock.d.ts +3 -3
  19. package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +3 -3
  20. package/build/ts/surfaces/admin/components/Avatar.d.ts +4 -10
  21. package/build/ts/surfaces/admin/components/Badge/Badge.doc.d.ts.map +1 -1
  22. package/build/ts/surfaces/admin/components/Badge.d.ts +4 -10
  23. package/build/ts/surfaces/admin/components/Banner.d.ts +18 -24
  24. package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +1 -1
  25. package/build/ts/surfaces/admin/components/Box.d.ts +4 -10
  26. package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +1 -1
  27. package/build/ts/surfaces/admin/components/Button.d.ts +21 -27
  28. package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +6 -13
  29. package/build/ts/surfaces/admin/components/Checkbox.d.ts +21 -28
  30. package/build/ts/surfaces/admin/components/Chip.d.ts +5 -11
  31. package/build/ts/surfaces/admin/components/Choice.d.ts +5 -17
  32. package/build/ts/surfaces/admin/components/ChoiceList.d.ts +19 -26
  33. package/build/ts/surfaces/admin/components/Clickable/Clickable.doc.d.ts.map +1 -1
  34. package/build/ts/surfaces/admin/components/Clickable.d.ts +21 -28
  35. package/build/ts/surfaces/admin/components/ClickableChip.d.ts +18 -24
  36. package/build/ts/surfaces/admin/components/ColorField.d.ts +3 -4
  37. package/build/ts/surfaces/admin/components/ColorPicker.d.ts +8 -8
  38. package/build/ts/surfaces/admin/components/DateField.d.ts +12 -12
  39. package/build/ts/surfaces/admin/components/DatePicker.d.ts +3 -4
  40. package/build/ts/surfaces/admin/components/Divider.d.ts +3 -4
  41. package/build/ts/surfaces/admin/components/DropZone/DropZone.ab.doc.d.ts.map +1 -1
  42. package/build/ts/surfaces/admin/components/EmailField.d.ts +26 -27
  43. package/build/ts/surfaces/admin/components/Form.d.ts +7 -3
  44. package/build/ts/surfaces/admin/components/FormExtensionComponents.d.ts +4 -0
  45. package/build/ts/surfaces/admin/components/FormExtensionComponents.d.ts.map +1 -0
  46. package/build/ts/surfaces/admin/components/FunctionSettings/FunctionSettings.ext.doc.d.ts +4 -0
  47. package/build/ts/surfaces/admin/components/FunctionSettings/FunctionSettings.ext.doc.d.ts.map +1 -0
  48. package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +3 -3
  49. package/build/ts/surfaces/admin/components/FunctionSettingsComponents.d.ts +4 -0
  50. package/build/ts/surfaces/admin/components/FunctionSettingsComponents.d.ts.map +1 -0
  51. package/build/ts/surfaces/admin/components/Grid/Grid.doc.d.ts.map +1 -1
  52. package/build/ts/surfaces/admin/components/Grid.d.ts +4 -10
  53. package/build/ts/surfaces/admin/components/GridItem.d.ts +4 -11
  54. package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts.map +1 -1
  55. package/build/ts/surfaces/admin/components/Heading.d.ts +4 -10
  56. package/build/ts/surfaces/admin/components/Icon.d.ts +3 -4
  57. package/build/ts/surfaces/admin/components/Image.d.ts +20 -21
  58. package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -1
  59. package/build/ts/surfaces/admin/components/Link.d.ts +21 -27
  60. package/build/ts/surfaces/admin/components/ListItem.d.ts +4 -11
  61. package/build/ts/surfaces/admin/components/Menu.d.ts +3 -3
  62. package/build/ts/surfaces/admin/components/Modal.d.ts +15 -15
  63. package/build/ts/surfaces/admin/components/MoneyField.d.ts +29 -29
  64. package/build/ts/surfaces/admin/components/NumberField.d.ts +28 -27
  65. package/build/ts/surfaces/admin/components/Option.d.ts +7 -11
  66. package/build/ts/surfaces/admin/components/OptionGroup.d.ts +7 -12
  67. package/build/ts/surfaces/admin/components/OrderedList/OrderedList.doc.d.ts.map +1 -1
  68. package/build/ts/surfaces/admin/components/OrderedList.d.ts +4 -11
  69. package/build/ts/surfaces/admin/components/Page.d.ts +11 -16
  70. package/build/ts/surfaces/admin/components/Paragraph/Paragraph.doc.d.ts.map +1 -1
  71. package/build/ts/surfaces/admin/components/Paragraph.d.ts +4 -11
  72. package/build/ts/surfaces/admin/components/PasswordField.d.ts +26 -27
  73. package/build/ts/surfaces/admin/components/Popover/Popover.ab.doc.d.ts.map +1 -1
  74. package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts.map +1 -1
  75. package/build/ts/surfaces/admin/components/QueryContainer.d.ts +3 -3
  76. package/build/ts/surfaces/admin/components/SearchField.d.ts +26 -27
  77. package/build/ts/surfaces/admin/components/Section/Section.doc.d.ts.map +1 -1
  78. package/build/ts/surfaces/admin/components/Section.d.ts +4 -10
  79. package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +1 -1
  80. package/build/ts/surfaces/admin/components/Select.d.ts +24 -28
  81. package/build/ts/surfaces/admin/components/Spinner.d.ts +3 -4
  82. package/build/ts/surfaces/admin/components/Stack/Stack.doc.d.ts.map +1 -1
  83. package/build/ts/surfaces/admin/components/Stack.d.ts +4 -10
  84. package/build/ts/surfaces/admin/components/Switch.d.ts +20 -21
  85. package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts.map +1 -1
  86. package/build/ts/surfaces/admin/components/Table.d.ts +5 -12
  87. package/build/ts/surfaces/admin/components/TableBody.d.ts +4 -11
  88. package/build/ts/surfaces/admin/components/TableCell.d.ts +4 -11
  89. package/build/ts/surfaces/admin/components/TableHeader.d.ts +4 -11
  90. package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +4 -10
  91. package/build/ts/surfaces/admin/components/TableRow.d.ts +4 -11
  92. package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -1
  93. package/build/ts/surfaces/admin/components/Text.d.ts +4 -10
  94. package/build/ts/surfaces/admin/components/TextArea.d.ts +26 -27
  95. package/build/ts/surfaces/admin/components/TextField.d.ts +27 -28
  96. package/build/ts/surfaces/admin/components/Thumbnail.d.ts +11 -12
  97. package/build/ts/surfaces/admin/components/Tooltip/Tooltip.doc.d.ts.map +1 -1
  98. package/build/ts/surfaces/admin/components/Tooltip.d.ts +4 -10
  99. package/build/ts/surfaces/admin/components/URLField.d.ts +26 -27
  100. package/build/ts/surfaces/admin/components/UnorderedList/UnorderedList.doc.d.ts.map +1 -1
  101. package/build/ts/surfaces/admin/components/UnorderedList.d.ts +4 -11
  102. package/build/ts/surfaces/admin/components/patterns/accountConnection.ab.doc.d.ts +4 -0
  103. package/build/ts/surfaces/admin/components/patterns/accountConnection.ab.doc.d.ts.map +1 -0
  104. package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts.map +1 -1
  105. package/build/ts/surfaces/admin/components/shared.d.ts +24 -7
  106. package/build/ts/surfaces/admin/extension-targets.d.ts +10 -8
  107. package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
  108. package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.data.d.ts +6 -0
  109. package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +1 -1
  110. package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +2 -0
  111. package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +2 -0
  112. package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +2 -0
  113. package/build/ts/surfaces/checkout/api/announcement/announcement.d.ts +8 -0
  114. package/build/ts/surfaces/checkout/api/announcement/announcement.d.ts.map +1 -0
  115. package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +2 -2
  116. package/build/ts/surfaces/checkout/components/Announcement/Announcement.doc.d.ts +4 -0
  117. package/build/ts/surfaces/checkout/components/Announcement/Announcement.doc.d.ts.map +1 -0
  118. package/build/ts/surfaces/checkout/components/Announcement.d.ts +95 -0
  119. package/build/ts/surfaces/checkout/components/Badge.d.ts +7 -1
  120. package/build/ts/surfaces/checkout/components/Chip/Chip.doc.d.ts +4 -0
  121. package/build/ts/surfaces/checkout/components/Chip/Chip.doc.d.ts.map +1 -0
  122. package/build/ts/surfaces/checkout/components/Chip.d.ts +56 -0
  123. package/build/ts/surfaces/checkout/components/Choice.d.ts +67 -0
  124. package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts +4 -0
  125. package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -0
  126. package/build/ts/surfaces/checkout/components/ChoiceList.d.ts +65 -0
  127. package/build/ts/surfaces/checkout/components/ClickableChip/ClickableChip.doc.d.ts +4 -0
  128. package/build/ts/surfaces/checkout/components/ClickableChip/ClickableChip.doc.d.ts.map +1 -0
  129. package/build/ts/surfaces/checkout/components/ClickableChip.d.ts +83 -0
  130. package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts +4 -0
  131. package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts.map +1 -0
  132. package/build/ts/surfaces/checkout/components/DateField.d.ts +87 -0
  133. package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts +4 -0
  134. package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts.map +1 -0
  135. package/build/ts/surfaces/checkout/components/DatePicker.d.ts +77 -0
  136. package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts.map +1 -1
  137. package/build/ts/surfaces/checkout/components/Form.d.ts +3 -0
  138. package/build/ts/surfaces/checkout/components/Icon.d.ts +7 -1
  139. package/build/ts/surfaces/checkout/components/Option.d.ts +46 -0
  140. package/build/ts/surfaces/checkout/components/PasswordField/PasswordField.doc.d.ts +4 -0
  141. package/build/ts/surfaces/checkout/components/PasswordField/PasswordField.doc.d.ts.map +1 -0
  142. package/build/ts/surfaces/checkout/components/PasswordField.d.ts +93 -0
  143. package/build/ts/surfaces/checkout/components/QueryContainer/QueryContainer.doc.d.ts +4 -0
  144. package/build/ts/surfaces/checkout/components/QueryContainer/QueryContainer.doc.d.ts.map +1 -0
  145. package/build/ts/surfaces/checkout/components/QueryContainer.d.ts +48 -0
  146. package/build/ts/surfaces/checkout/components/ScrollBox/ScrollBox.doc.d.ts +4 -0
  147. package/build/ts/surfaces/checkout/components/ScrollBox/ScrollBox.doc.d.ts.map +1 -0
  148. package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts +4 -0
  149. package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts.map +1 -0
  150. package/build/ts/surfaces/checkout/components/Select.d.ts +79 -0
  151. package/build/ts/surfaces/checkout/components/TextField.d.ts +7 -1
  152. package/build/ts/surfaces/checkout/components/UrlField/UrlField.doc.d.ts +4 -0
  153. package/build/ts/surfaces/checkout/components/UrlField/UrlField.doc.d.ts.map +1 -0
  154. package/build/ts/surfaces/checkout/components/UrlField.d.ts +93 -0
  155. package/build/ts/surfaces/checkout/components/components-shared.d.ts +89 -0
  156. package/build/ts/surfaces/checkout/components/components.d.ts +252 -24
  157. package/build/ts/surfaces/checkout/extension-targets.d.ts +61 -61
  158. package/build/ts/surfaces/checkout/extension-targets.d.ts.map +1 -1
  159. package/build/ts/surfaces/checkout/shared.d.ts +6 -3
  160. package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
  161. package/build/ts/surfaces/checkout/targets/Checkout::Actions::RenderBefore.d.ts +11 -0
  162. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +11 -0
  163. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +11 -0
  164. package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +11 -0
  165. package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +11 -0
  166. package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +11 -0
  167. package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +11 -0
  168. package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +11 -0
  169. package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +11 -0
  170. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +11 -0
  171. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +11 -0
  172. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +11 -0
  173. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +11 -0
  174. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +11 -0
  175. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +11 -0
  176. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +11 -0
  177. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +11 -0
  178. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +11 -0
  179. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +11 -0
  180. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +11 -0
  181. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +11 -0
  182. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +11 -0
  183. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +11 -0
  184. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +11 -0
  185. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +11 -0
  186. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +11 -0
  187. package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +11 -0
  188. package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +11 -0
  189. package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +11 -0
  190. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +11 -0
  191. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +11 -0
  192. package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +11 -0
  193. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +11 -0
  194. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +11 -0
  195. package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +11 -0
  196. package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +11 -0
  197. package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +11 -0
  198. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +11 -0
  199. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +11 -0
  200. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +11 -0
  201. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +11 -0
  202. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +11 -0
  203. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +11 -0
  204. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +11 -0
  205. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +11 -0
  206. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +11 -0
  207. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +11 -0
  208. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +11 -0
  209. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +11 -0
  210. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +11 -0
  211. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +11 -0
  212. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +11 -0
  213. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +11 -0
  214. package/build/ts/surfaces/checkout/targets/purchase.thank-you.announcement.render.d.ts +12 -0
  215. package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +11 -0
  216. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +11 -0
  217. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +11 -0
  218. package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +11 -0
  219. package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +11 -0
  220. package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +11 -0
  221. package/build/ts/surfaces/checkout.d.ts +1 -0
  222. package/build/ts/surfaces/checkout.d.ts.map +1 -1
  223. package/build/ts/surfaces/customer-account/components/Announcement.d.ts +95 -0
  224. package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -1
  225. package/build/ts/surfaces/customer-account/components/Avatar.d.ts +2 -2
  226. package/build/ts/surfaces/customer-account/components/Badge.d.ts +7 -1
  227. package/build/ts/surfaces/customer-account/components/ButtonGroup/ButtonGroup.doc.d.ts.map +1 -1
  228. package/build/ts/surfaces/customer-account/components/ButtonGroup.d.ts +2 -2
  229. package/build/ts/surfaces/customer-account/components/Chip.d.ts +56 -0
  230. package/build/ts/surfaces/customer-account/components/Choice.d.ts +67 -0
  231. package/build/ts/surfaces/customer-account/components/ChoiceList.d.ts +65 -0
  232. package/build/ts/surfaces/customer-account/components/ClickableChip.d.ts +83 -0
  233. package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.d.ts.map +1 -1
  234. package/build/ts/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
  235. package/build/ts/surfaces/customer-account/components/DateField.d.ts +87 -0
  236. package/build/ts/surfaces/customer-account/components/DatePicker.d.ts +77 -0
  237. package/build/ts/surfaces/customer-account/components/Form.d.ts +3 -0
  238. package/build/ts/surfaces/customer-account/components/Icon.d.ts +7 -1
  239. package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts.map +1 -1
  240. package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts.map +1 -1
  241. package/build/ts/surfaces/customer-account/components/Option.d.ts +46 -0
  242. package/build/ts/surfaces/customer-account/components/Page/Page.doc.d.ts.map +1 -1
  243. package/build/ts/surfaces/customer-account/components/Page.d.ts +3 -3
  244. package/build/ts/surfaces/customer-account/components/PasswordField.d.ts +93 -0
  245. package/build/ts/surfaces/customer-account/components/QueryContainer.d.ts +48 -0
  246. package/build/ts/surfaces/customer-account/components/Section/Section.doc.d.ts.map +1 -1
  247. package/build/ts/surfaces/customer-account/components/Select.d.ts +79 -0
  248. package/build/ts/surfaces/customer-account/components/TextField.d.ts +7 -1
  249. package/build/ts/surfaces/customer-account/components/UrlField.d.ts +93 -0
  250. package/build/ts/surfaces/customer-account/components/components-shared.d.ts +89 -0
  251. package/build/ts/surfaces/customer-account/components/components.d.ts +252 -24
  252. package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +12 -0
  253. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.announcement.render.d.ts +12 -0
  254. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +12 -0
  255. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.announcement.render.d.ts +12 -0
  256. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +12 -0
  257. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +12 -0
  258. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +12 -0
  259. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +12 -0
  260. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +12 -0
  261. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +12 -0
  262. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +12 -0
  263. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +12 -0
  264. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +12 -0
  265. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +12 -0
  266. package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +12 -0
  267. package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +12 -0
  268. package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +12 -0
  269. package/build/ts/surfaces/customer-account/targets/customer-account.profile.announcement.render.d.ts +12 -0
  270. package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +12 -0
  271. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +12 -0
  272. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +12 -0
  273. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +12 -0
  274. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +12 -0
  275. package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +12 -0
  276. package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +2 -9
  277. package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
  278. package/build/ts/surfaces/point-of-sale/components/Badge/Badge.doc.d.ts.map +1 -1
  279. package/build/ts/surfaces/point-of-sale/components/Banner/Banner.doc.d.ts.map +1 -1
  280. package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.doc.d.ts.map +1 -1
  281. package/build/ts/surfaces/point-of-sale/components/DateSpinner/DateSpinner.doc.d.ts.map +1 -1
  282. package/build/ts/surfaces/point-of-sale/components/Modal.d.ts +1 -2
  283. package/build/tsconfig.tsbuildinfo +1 -1
  284. package/package.json +2 -2
  285. package/src/docs/shared/components/Announcement.ts +12 -0
  286. package/src/docs/shared/components/FunctionSettings.ts +28 -0
  287. package/src/docs/shared/components/ScrollBox.ts +12 -0
  288. package/src/docs/shared/components/index.ts +4 -0
  289. package/src/index.ts +1 -0
  290. package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.ts +31 -0
  291. package/src/surfaces/admin/api.ts +4 -1
  292. package/src/surfaces/admin/components/AdminAction.d.ts +5 -5
  293. package/src/surfaces/admin/components/AdminBlock.d.ts +3 -3
  294. package/src/surfaces/admin/components/AdminPrintAction.d.ts +3 -3
  295. package/src/surfaces/admin/components/Avatar.d.ts +4 -10
  296. package/src/surfaces/admin/components/Badge.d.ts +4 -10
  297. package/src/surfaces/admin/components/Banner.d.ts +18 -24
  298. package/src/surfaces/admin/components/Box.d.ts +4 -10
  299. package/src/surfaces/admin/components/Button.d.ts +21 -27
  300. package/src/surfaces/admin/components/ButtonGroup.d.ts +6 -13
  301. package/src/surfaces/admin/components/Checkbox.d.ts +21 -28
  302. package/src/surfaces/admin/components/Chip.d.ts +5 -11
  303. package/src/surfaces/admin/components/Choice.d.ts +5 -17
  304. package/src/surfaces/admin/components/ChoiceList.d.ts +19 -26
  305. package/src/surfaces/admin/components/Clickable.d.ts +21 -28
  306. package/src/surfaces/admin/components/ClickableChip.d.ts +18 -24
  307. package/src/surfaces/admin/components/ColorField.d.ts +3 -4
  308. package/src/surfaces/admin/components/ColorPicker.d.ts +8 -8
  309. package/src/surfaces/admin/components/DateField.d.ts +12 -12
  310. package/src/surfaces/admin/components/DatePicker.d.ts +3 -4
  311. package/src/surfaces/admin/components/Divider.d.ts +3 -4
  312. package/src/surfaces/admin/components/EmailField.d.ts +26 -27
  313. package/src/surfaces/admin/components/Form.d.ts +7 -3
  314. package/src/surfaces/admin/components/FormExtensionComponents.ts +5 -0
  315. package/src/surfaces/admin/components/FunctionSettings/examples/default.tsx +38 -0
  316. package/src/surfaces/admin/components/FunctionSettings.d.ts +3 -3
  317. package/src/surfaces/admin/components/FunctionSettingsComponents.ts +7 -0
  318. package/src/surfaces/admin/components/Grid.d.ts +4 -10
  319. package/src/surfaces/admin/components/GridItem.d.ts +4 -11
  320. package/src/surfaces/admin/components/Heading.d.ts +4 -10
  321. package/src/surfaces/admin/components/Icon.d.ts +3 -4
  322. package/src/surfaces/admin/components/Image.d.ts +20 -21
  323. package/src/surfaces/admin/components/Link.d.ts +21 -27
  324. package/src/surfaces/admin/components/ListItem.d.ts +4 -11
  325. package/src/surfaces/admin/components/Menu.d.ts +3 -3
  326. package/src/surfaces/admin/components/Modal.d.ts +15 -15
  327. package/src/surfaces/admin/components/MoneyField.d.ts +29 -29
  328. package/src/surfaces/admin/components/NumberField.d.ts +28 -27
  329. package/src/surfaces/admin/components/Option.d.ts +7 -11
  330. package/src/surfaces/admin/components/OptionGroup.d.ts +7 -12
  331. package/src/surfaces/admin/components/OrderedList.d.ts +4 -11
  332. package/src/surfaces/admin/components/Page.d.ts +11 -16
  333. package/src/surfaces/admin/components/Paragraph.d.ts +4 -11
  334. package/src/surfaces/admin/components/PasswordField.d.ts +26 -27
  335. package/src/surfaces/admin/components/QueryContainer.d.ts +3 -3
  336. package/src/surfaces/admin/components/SearchField.d.ts +26 -27
  337. package/src/surfaces/admin/components/Section.d.ts +4 -10
  338. package/src/surfaces/admin/components/Select.d.ts +24 -28
  339. package/src/surfaces/admin/components/Spinner.d.ts +3 -4
  340. package/src/surfaces/admin/components/Stack.d.ts +4 -10
  341. package/src/surfaces/admin/components/Switch.d.ts +20 -21
  342. package/src/surfaces/admin/components/Table.d.ts +5 -12
  343. package/src/surfaces/admin/components/TableBody.d.ts +4 -11
  344. package/src/surfaces/admin/components/TableCell.d.ts +4 -11
  345. package/src/surfaces/admin/components/TableHeader.d.ts +4 -11
  346. package/src/surfaces/admin/components/TableHeaderRow.d.ts +4 -10
  347. package/src/surfaces/admin/components/TableRow.d.ts +4 -11
  348. package/src/surfaces/admin/components/Text.d.ts +4 -10
  349. package/src/surfaces/admin/components/TextArea.d.ts +26 -27
  350. package/src/surfaces/admin/components/TextField.d.ts +27 -28
  351. package/src/surfaces/admin/components/Thumbnail.d.ts +11 -12
  352. package/src/surfaces/admin/components/Tooltip.d.ts +4 -10
  353. package/src/surfaces/admin/components/URLField.d.ts +26 -27
  354. package/src/surfaces/admin/components/UnorderedList.d.ts +4 -11
  355. package/src/surfaces/admin/components/patterns/examples/accountConnection.html +16 -0
  356. package/src/surfaces/admin/components/patterns/examples/homepage.jsx +3 -3
  357. package/src/surfaces/admin/components/shared.d.ts +24 -7
  358. package/src/surfaces/admin/components/using-polaris-web-components/examples/event-handling.jsx +1 -1
  359. package/src/surfaces/admin/components/using-polaris-web-components/examples/using-with-react.jsx +1 -1
  360. package/src/surfaces/admin/components.d.ts +902 -614
  361. package/src/surfaces/admin/extension-targets.ts +11 -10
  362. package/src/surfaces/checkout/api/announcement/announcement.ts +7 -0
  363. package/src/surfaces/checkout/api/checkout/checkout.ts +2 -2
  364. package/src/surfaces/checkout/components/Announcement/examples/basic-announcement.example.html +16 -0
  365. package/src/surfaces/checkout/components/Announcement.d.ts +95 -0
  366. package/src/surfaces/checkout/components/Badge.d.ts +7 -1
  367. package/src/surfaces/checkout/components/Box/examples/basic-box.example.html +1 -1
  368. package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.html +1 -1
  369. package/src/surfaces/checkout/components/Chip/examples/basic-chip.example.html +1 -0
  370. package/src/surfaces/checkout/components/Chip.d.ts +56 -0
  371. package/src/surfaces/checkout/components/Choice.d.ts +67 -0
  372. package/src/surfaces/checkout/components/ChoiceList/examples/basic-choice-list.example.html +7 -0
  373. package/src/surfaces/checkout/components/ChoiceList.d.ts +65 -0
  374. package/src/surfaces/checkout/components/ClickableChip/examples/basic-clickable-chip.example.html +1 -0
  375. package/src/surfaces/checkout/components/ClickableChip.d.ts +83 -0
  376. package/src/surfaces/checkout/components/DateField/examples/basic-date-field.example.html +1 -0
  377. package/src/surfaces/checkout/components/DateField.d.ts +87 -0
  378. package/src/surfaces/checkout/components/DatePicker/examples/basic-date-picker.example.html +1 -0
  379. package/src/surfaces/checkout/components/DatePicker.d.ts +77 -0
  380. package/src/surfaces/checkout/components/Form/examples/basic-form.example.html +2 -2
  381. package/src/surfaces/checkout/components/Form.d.ts +3 -0
  382. package/src/surfaces/checkout/components/Icon/examples/basic-icon.example.html +4 -4
  383. package/src/surfaces/checkout/components/Icon.d.ts +7 -1
  384. package/src/surfaces/checkout/components/Image/examples/basic-image.example.html +1 -1
  385. package/src/surfaces/checkout/components/Map/examples/basic-map.example.html +2 -2
  386. package/src/surfaces/checkout/components/MoneyField/examples/basic-money-field.example.html +1 -1
  387. package/src/surfaces/checkout/components/Option.d.ts +46 -0
  388. package/src/surfaces/checkout/components/PasswordField/examples/basic-password-field.example.html +1 -0
  389. package/src/surfaces/checkout/components/PasswordField.d.ts +93 -0
  390. package/src/surfaces/checkout/components/PaymentIcon/examples/basic-payment-icon.example.html +7 -7
  391. package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-product-thumbnail.example.html +1 -4
  392. package/src/surfaces/checkout/components/Progress/examples/basic-progress.example.html +1 -1
  393. package/src/surfaces/checkout/components/QueryContainer/examples/basic-query-container.example.html +8 -0
  394. package/src/surfaces/checkout/components/QueryContainer.d.ts +48 -0
  395. package/src/surfaces/checkout/components/ScrollBox/examples/basic-scroll-box.example.html +5 -0
  396. package/src/surfaces/checkout/components/Select/examples/basic-select.example.html +5 -0
  397. package/src/surfaces/checkout/components/Select.d.ts +79 -0
  398. package/src/surfaces/checkout/components/Spinner/examples/basic-spinner.example.html +1 -1
  399. package/src/surfaces/checkout/components/Stack/examples/basic-stack.example.html +4 -20
  400. package/src/surfaces/checkout/components/TextArea/examples/basic-text-area.example.html +1 -5
  401. package/src/surfaces/checkout/components/TextField/examples/basic-text-field.example.html +1 -1
  402. package/src/surfaces/checkout/components/TextField.d.ts +7 -1
  403. package/src/surfaces/checkout/components/UrlField/examples/basic-url-field.example.html +1 -0
  404. package/src/surfaces/checkout/components/UrlField.d.ts +93 -0
  405. package/src/surfaces/checkout/components/components-shared.d.ts +89 -0
  406. package/src/surfaces/checkout/components/components.d.ts +252 -24
  407. package/src/surfaces/checkout/extension-targets.ts +63 -62
  408. package/src/surfaces/checkout/shared.ts +15 -8
  409. package/src/surfaces/checkout.ts +1 -0
  410. package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar.example.html +4 -0
  411. package/src/surfaces/customer-account/components/Avatar.d.ts +2 -2
  412. package/src/surfaces/customer-account/components/ButtonGroup/examples/basic-ButtonGroup.example.html +11 -0
  413. package/src/surfaces/customer-account/components/ButtonGroup.d.ts +2 -2
  414. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction.example.html +9 -0
  415. package/src/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
  416. package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup.example.html +18 -0
  417. package/src/surfaces/customer-account/components/Menu/examples/basic-Menu.example.html +14 -0
  418. package/src/surfaces/customer-account/components/Page/examples/basic-Page.example.html +19 -0
  419. package/src/surfaces/customer-account/components/Page.d.ts +3 -3
  420. package/src/surfaces/customer-account/components/Section/examples/basic-Section.example.html +12 -0
  421. package/src/surfaces/customer-account/components/Section.d.ts +2 -2
  422. package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +2 -10
  423. package/src/surfaces/point-of-sale/components/Badge/examples/default.html +5 -5
  424. package/src/surfaces/point-of-sale/components/Modal.d.ts +1 -2
  425. package/src/surfaces/point-of-sale/components.d.ts +48 -50
  426. package/build/ts/surfaces/admin/components/DropZone.d.ts +0 -160
  427. package/build/ts/surfaces/admin/components/Popover.d.ts +0 -379
  428. package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +0 -57
  429. package/src/surfaces/admin/components/DropZone.d.ts +0 -160
  430. package/src/surfaces/admin/components/Popover.d.ts +0 -379
  431. package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-preact.example.tsx +0 -10
  432. package/src/surfaces/customer-account/components/ButtonGroup/examples/basic-ButtonGroup-preact.example.tsx +0 -22
  433. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-preact.example.tsx +0 -17
  434. package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-preact.example.tsx +0 -17
  435. package/src/surfaces/customer-account/components/Menu/examples/basic-Menu-preact.example.tsx +0 -24
  436. package/src/surfaces/customer-account/components/Page/examples/basic-Page-preact.example.tsx +0 -37
  437. package/src/surfaces/customer-account/components/Section/examples/basic-Section-preact.example.tsx +0 -23
@@ -2,18 +2,18 @@ import {BaseElementPropsWithChildren, IdProps} from './shared';
2
2
 
3
3
  export interface CustomerAccountActionProps extends IdProps {
4
4
  /**
5
- * Sets the heading of the Action container.
5
+ * Sets the heading of the action container.
6
6
  */
7
7
  heading: string;
8
8
  }
9
9
 
10
10
  export interface CustomerAccountActionElementSlots {
11
11
  /**
12
- * The primary action to perform, provided as a button type element.
12
+ * The primary action for the page. Accepts a single Button element with restricted properties (see below).
13
13
  */
14
14
  'primary-action'?: HTMLElement;
15
15
  /**
16
- * The secondary actions to perform, provided as button type elements.
16
+ * The secondary actions for the page. Accepts multiple Button elements with restricted properties (see below).
17
17
  */
18
18
  'secondary-actions'?: HTMLElement;
19
19
  }
@@ -0,0 +1,18 @@
1
+ <s-image-group>
2
+ <s-image
3
+ src="https://cdn.shopify.com/YOUR_IMAGE_HERE"
4
+ alt="Product image"
5
+ ></s-image>
6
+ <s-image
7
+ src="https://cdn.shopify.com/YOUR_IMAGE_HERE"
8
+ alt="Product image"
9
+ ></s-image>
10
+ <s-image
11
+ src="https://cdn.shopify.com/YOUR_IMAGE_HERE"
12
+ alt="Product image"
13
+ ></s-image>
14
+ <s-image
15
+ src="https://cdn.shopify.com/YOUR_IMAGE_HERE"
16
+ alt="Product image"
17
+ ></s-image>
18
+ </s-image-group>
@@ -0,0 +1,14 @@
1
+ <>
2
+ <s-button commandFor="order-actions-menu">
3
+ Manage
4
+ </s-button>
5
+
6
+ <s-menu
7
+ id="order-actions-menu"
8
+ accessibilityLabel="List of order actions"
9
+ >
10
+ <s-button>Submit problem</s-button>
11
+ <s-button>Request return</s-button>
12
+ <s-button tone="critical">Cancel order</s-button>
13
+ </s-menu>
14
+ </>
@@ -0,0 +1,19 @@
1
+ <s-page
2
+ heading="Order #1411"
3
+ subheading="Confirmed Oct 5"
4
+ >
5
+ <s-button slot="primary-action">
6
+ Buy again
7
+ </s-button>
8
+ <s-button slot="secondary-actions">
9
+ Edit order
10
+ </s-button>
11
+ <s-button slot="secondary-actions">
12
+ Cancel order
13
+ </s-button>
14
+ <s-button
15
+ slot="breadcrumb-actions"
16
+ accessibilityLabel="Back to orders"
17
+ ></s-button>
18
+ Content
19
+ </s-page>
@@ -14,15 +14,15 @@ export interface PageProps extends IdProps {
14
14
 
15
15
  export interface PageElementSlots {
16
16
  /**
17
- * The breadcrumb actions to perform, provided as button type elements.
17
+ * The breadcrumb actions for the page. Accepts a single Button element with restricted properties (see below).
18
18
  */
19
19
  'breadcrumb-actions'?: HTMLElement;
20
20
  /**
21
- * The primary action to perform, provided as a button type element.
21
+ * The primary action for the page. Accepts a single Button element with restricted properties (see below).
22
22
  */
23
23
  'primary-action'?: HTMLElement;
24
24
  /**
25
- * The secondary actions to perform, provided as button type elements.
25
+ * The secondary actions for the page. Accepts multiple Button elements with restricted properties (see below).
26
26
  */
27
27
  'secondary-actions'?: HTMLElement;
28
28
  }
@@ -0,0 +1,12 @@
1
+ <s-section heading="Rewards">
2
+ <s-button slot="primary-action" variant="primary">
3
+ Redeem
4
+ </s-button>
5
+ <s-button slot="secondary-actions" variant="secondary">
6
+ My rewards
7
+ </s-button>
8
+ <s-paragraph>
9
+ Earn 10 points for every $1 spent. Redeem 100 points for $10 off your
10
+ next purchase.
11
+ </s-paragraph>
12
+ </s-section>
@@ -18,11 +18,11 @@ export interface SectionProps extends IdProps {
18
18
 
19
19
  export interface SectionElementSlots {
20
20
  /**
21
- * The primary action to perform, provided as a button type element.
21
+ * The primary action for the section. Accepts a single [Button](/docs/api/checkout-ui-extensions/polaris-web-components/actions/button) element.
22
22
  */
23
23
  'primary-action'?: HTMLElement;
24
24
  /**
25
- * The secondary actions to perform, provided as button type elements.
25
+ * The secondary actions for the section. Accepts multiple [Button](/docs/api/checkout-ui-extensions/polaris-web-components/actions/button) elements.
26
26
  */
27
27
  'secondary-actions'?: HTMLElement;
28
28
  }
@@ -12,7 +12,7 @@ export interface NavigationHistoryEntry {
12
12
  /** Returns the key of the history entry. This is a unique, UA-generated value that represents the history entry's slot in the entries list rather than the entry itself. */
13
13
  key: string;
14
14
  /**
15
- * Returns the URL of this history entry.
15
+ * Returns the lowercased URL of this history entry.
16
16
  */
17
17
  url: string | null;
18
18
  /**
@@ -35,7 +35,7 @@ export interface Navigation {
35
35
  /**
36
36
  * The navigate() method navigates to a specific URL, updating any provided state in the history entries list.
37
37
  */
38
- navigate: NavigateFunction;
38
+ navigate: (url: string, options?: NavigationNavigateOptions) => Promise<void>;
39
39
  /**
40
40
  * The currentEntry read-only property of the Navigation interface returns a NavigationHistoryEntry object representing the location the user is currently navigated to right now.
41
41
  */
@@ -53,11 +53,3 @@ export interface Navigation {
53
53
  cb: (event: NavigationCurrentEntryChangeEvent) => void,
54
54
  ): void;
55
55
  }
56
-
57
- export interface NavigateFunction {
58
- /**
59
- * Navigates to a specific URL, updating any provided state in the history entries list.
60
- * @param url The destination URL to navigate to.
61
- */
62
- (url: string, options?: NavigationNavigateOptions): void;
63
- }
@@ -1,5 +1,5 @@
1
- <s-badge tone="neutral">Neutral</s-badge>
2
- <s-badge tone="success">Success</s-badge>
3
- <s-badge tone="info">Highlight</s-badge>
4
- <s-badge tone="warning">Warning</s-badge>
5
- <s-badge tone="critical">Critical</s-badge>
1
+ <s-badge tone="neutral">Paid</s-badge>
2
+ <s-badge tone="success">Active</s-badge>
3
+ <s-badge tone="info">Draft</s-badge>
4
+ <s-badge tone="warning">On hold</s-badge>
5
+ <s-badge tone="critical">Action required</s-badge>
@@ -14,7 +14,6 @@ import type {
14
14
  Ref,
15
15
  ComponentChild,
16
16
  } from './components-shared.d.ts';
17
- import {ReactNode} from 'react';
18
17
 
19
18
  export type ComponentChildren = any;
20
19
  /**
@@ -48,7 +47,7 @@ export interface ModalJSXProps extends Pick<ModalProps, 'id' | 'heading'> {
48
47
  secondaryActions?: ComponentChild;
49
48
  onHide?: (event: CallbackEvent<typeof tagName>) => void | null;
50
49
  onShow?: (event: CallbackEvent<typeof tagName>) => void | null;
51
- children?: ReactNode;
50
+ children?: ComponentChildren;
52
51
  }
53
52
  declare global {
54
53
  interface HTMLElementTagNameMap {
@@ -3110,8 +3110,6 @@ export interface Context<T> extends Provider<T> {
3110
3110
  displayName?: string;
3111
3111
  }
3112
3112
 
3113
- import {ReactNode} from 'react';
3114
-
3115
3113
  type ComponentChildren = any;
3116
3114
  /**
3117
3115
  * Used when an element does not have children.
@@ -3838,7 +3836,7 @@ interface ModalJSXProps extends Pick<ModalProps, 'id' | 'heading'> {
3838
3836
  secondaryActions?: ComponentChild;
3839
3837
  onHide?: (event: CallbackEvent<typeof tagName$i>) => void | null;
3840
3838
  onShow?: (event: CallbackEvent<typeof tagName$i>) => void | null;
3841
- children?: ReactNode;
3839
+ children?: ComponentChildren;
3842
3840
  }
3843
3841
  declare global {
3844
3842
  interface HTMLElementTagNameMap {
@@ -4554,7 +4552,7 @@ interface Box {
4554
4552
  }
4555
4553
 
4556
4554
  interface ButtonEvents {
4557
- click?: (event: CallbackEvent<typeof tagName>) => void;
4555
+ click?: (event: CallbackEvent<typeof tagName$t>) => void;
4558
4556
  }
4559
4557
 
4560
4558
  interface Button {
@@ -4618,8 +4616,8 @@ interface Choice {
4618
4616
  }
4619
4617
 
4620
4618
  interface ChoiceListEvents {
4621
- change?: (event: CallbackEvent<typeof tagName>) => void;
4622
- input?: (event: CallbackEvent<typeof tagName>) => void;
4619
+ change?: (event: CallbackEvent<typeof tagName$k>) => void;
4620
+ input?: (event: CallbackEvent<typeof tagName$k>) => void;
4623
4621
  }
4624
4622
 
4625
4623
  interface ChoiceList {
@@ -4637,7 +4635,7 @@ interface ChoiceList {
4637
4635
  }
4638
4636
 
4639
4637
  interface ClickableEvents {
4640
- click?: (event: CallbackEvent<typeof tagName>) => void;
4638
+ click?: (event: CallbackEvent<typeof tagName$e>) => void;
4641
4639
  }
4642
4640
 
4643
4641
  interface Clickable {
@@ -4656,10 +4654,10 @@ interface Clickable {
4656
4654
  }
4657
4655
 
4658
4656
  interface DateFieldEvents {
4659
- input?: (event: CallbackEvent<typeof tagName>) => void;
4660
- focus?: (event: CallbackEvent<typeof tagName>) => void;
4661
- blur?: (event: CallbackEvent<typeof tagName>) => void;
4662
- change?: (event: CallbackEvent<typeof tagName>) => void;
4657
+ input?: (event: CallbackEvent<typeof tagName$b>) => void;
4658
+ focus?: (event: CallbackEvent<typeof tagName$b>) => void;
4659
+ blur?: (event: CallbackEvent<typeof tagName$b>) => void;
4660
+ change?: (event: CallbackEvent<typeof tagName$b>) => void;
4663
4661
  }
4664
4662
 
4665
4663
  interface DateFieldSlots {
@@ -4692,10 +4690,10 @@ interface DateField {
4692
4690
  }
4693
4691
 
4694
4692
  interface DatePickerEvents {
4695
- blur?: (event: CallbackEvent<typeof tagName>) => void | null;
4696
- focus?: (event: CallbackEvent<typeof tagName>) => void | null;
4697
- change?: (event: CallbackEvent<typeof tagName>) => void | null;
4698
- input?: (event: CallbackEvent<typeof tagName>) => void | null;
4693
+ blur?: (event: CallbackEvent<typeof tagName$a>) => void | null;
4694
+ focus?: (event: CallbackEvent<typeof tagName$a>) => void | null;
4695
+ change?: (event: CallbackEvent<typeof tagName$a>) => void | null;
4696
+ input?: (event: CallbackEvent<typeof tagName$a>) => void | null;
4699
4697
  }
4700
4698
 
4701
4699
  interface DatePicker {
@@ -4719,10 +4717,10 @@ interface DatePicker {
4719
4717
  }
4720
4718
 
4721
4719
  interface DateSpinnerEvents {
4722
- blur?: (event: CallbackEvent<typeof tagName>) => void | null;
4723
- focus?: (event: CallbackEvent<typeof tagName>) => void | null;
4724
- change?: (event: CallbackEvent<typeof tagName>) => void | null;
4725
- input?: (event: CallbackEvent<typeof tagName>) => void | null;
4720
+ blur?: (event: CallbackEvent<typeof tagName$9>) => void | null;
4721
+ focus?: (event: CallbackEvent<typeof tagName$9>) => void | null;
4722
+ change?: (event: CallbackEvent<typeof tagName$9>) => void | null;
4723
+ input?: (event: CallbackEvent<typeof tagName$9>) => void | null;
4726
4724
  }
4727
4725
 
4728
4726
  interface DateSpinner {
@@ -4746,10 +4744,10 @@ interface Divider {
4746
4744
  }
4747
4745
 
4748
4746
  interface EmailFieldEvents {
4749
- input?: (event: CallbackEvent<typeof tagName>) => void;
4750
- focus?: (event: CallbackEvent<typeof tagName>) => void;
4751
- blur?: (event: CallbackEvent<typeof tagName>) => void;
4752
- change?: (event: CallbackEvent<typeof tagName>) => void;
4747
+ input?: (event: CallbackEvent<typeof tagName$f>) => void;
4748
+ focus?: (event: CallbackEvent<typeof tagName$f>) => void;
4749
+ blur?: (event: CallbackEvent<typeof tagName$f>) => void;
4750
+ change?: (event: CallbackEvent<typeof tagName$f>) => void;
4753
4751
  }
4754
4752
 
4755
4753
  interface EmailFieldSlots {
@@ -4852,8 +4850,8 @@ interface Image {
4852
4850
  }
4853
4851
 
4854
4852
  interface ModalEvents {
4855
- hide?: (event: CallbackEvent<typeof tagName>) => void | null;
4856
- show?: (event: CallbackEvent<typeof tagName>) => void | null;
4853
+ hide?: (event: CallbackEvent<typeof tagName$i>) => void | null;
4854
+ show?: (event: CallbackEvent<typeof tagName$i>) => void | null;
4857
4855
  }
4858
4856
 
4859
4857
  interface ModalSlots {
@@ -4869,10 +4867,10 @@ interface Modal {
4869
4867
  }
4870
4868
 
4871
4869
  interface NumberFieldEvents {
4872
- input?: (event: CallbackEvent<typeof tagName>) => void;
4873
- focus?: (event: CallbackEvent<typeof tagName>) => void;
4874
- blur?: (event: CallbackEvent<typeof tagName>) => void;
4875
- change?: (event: CallbackEvent<typeof tagName>) => void;
4870
+ input?: (event: CallbackEvent<typeof tagName$c>) => void;
4871
+ focus?: (event: CallbackEvent<typeof tagName$c>) => void;
4872
+ blur?: (event: CallbackEvent<typeof tagName$c>) => void;
4873
+ change?: (event: CallbackEvent<typeof tagName$c>) => void;
4876
4874
  }
4877
4875
 
4878
4876
  interface NumberFieldSlots {
@@ -5110,10 +5108,10 @@ interface ScrollBox {
5110
5108
  }
5111
5109
 
5112
5110
  interface SearchFieldEvents {
5113
- focus?: (event: CallbackEvent<typeof tagName>) => void;
5114
- blur?: (event: CallbackEvent<typeof tagName>) => void;
5115
- input?: (event: CallbackEvent<typeof tagName>) => void;
5116
- change?: (event: CallbackEvent<typeof tagName>) => void;
5111
+ focus?: (event: CallbackEvent<typeof tagName$g>) => void;
5112
+ blur?: (event: CallbackEvent<typeof tagName$g>) => void;
5113
+ input?: (event: CallbackEvent<typeof tagName$g>) => void;
5114
+ change?: (event: CallbackEvent<typeof tagName$g>) => void;
5117
5115
  }
5118
5116
 
5119
5117
  interface SearchField {
@@ -5312,10 +5310,10 @@ interface Text {
5312
5310
  }
5313
5311
 
5314
5312
  interface TextAreaEvents {
5315
- input?: (event: CallbackEvent<typeof tagName>) => void;
5316
- focus?: (event: CallbackEvent<typeof tagName>) => void;
5317
- blur?: (event: CallbackEvent<typeof tagName>) => void;
5318
- change?: (event: CallbackEvent<typeof tagName>) => void;
5313
+ input?: (event: CallbackEvent<typeof tagName$d>) => void;
5314
+ focus?: (event: CallbackEvent<typeof tagName$d>) => void;
5315
+ blur?: (event: CallbackEvent<typeof tagName$d>) => void;
5316
+ change?: (event: CallbackEvent<typeof tagName$d>) => void;
5319
5317
  }
5320
5318
 
5321
5319
  interface TextAreaSlots {
@@ -5368,10 +5366,10 @@ interface TextArea {
5368
5366
  }
5369
5367
 
5370
5368
  interface TextFieldEvents {
5371
- input?: (event: CallbackEvent<typeof tagName>) => void;
5372
- focus?: (event: CallbackEvent<typeof tagName>) => void;
5373
- blur?: (event: CallbackEvent<typeof tagName>) => void;
5374
- change?: (event: CallbackEvent<typeof tagName>) => void;
5369
+ input?: (event: CallbackEvent<typeof tagName$h>) => void;
5370
+ focus?: (event: CallbackEvent<typeof tagName$h>) => void;
5371
+ blur?: (event: CallbackEvent<typeof tagName$h>) => void;
5372
+ change?: (event: CallbackEvent<typeof tagName$h>) => void;
5375
5373
  }
5376
5374
 
5377
5375
  interface TextFieldSlots {
@@ -5419,7 +5417,7 @@ interface TextField {
5419
5417
  }
5420
5418
 
5421
5419
  interface TileEvents {
5422
- click?: (event: CallbackEvent<typeof tagName>) => void;
5420
+ click?: (event: CallbackEvent<typeof tagName$q>) => void;
5423
5421
  }
5424
5422
 
5425
5423
  interface Tile {
@@ -5455,10 +5453,10 @@ interface Tile {
5455
5453
  }
5456
5454
 
5457
5455
  interface TimeFieldEvents {
5458
- blur?: (event: CallbackEvent<typeof tagName>) => void | null;
5459
- focus?: (event: CallbackEvent<typeof tagName>) => void | null;
5460
- input?: (event: CallbackEvent<typeof tagName>) => void | null;
5461
- change?: (event: CallbackEvent<typeof tagName>) => void | null;
5456
+ blur?: (event: CallbackEvent<typeof tagName$3>) => void | null;
5457
+ focus?: (event: CallbackEvent<typeof tagName$3>) => void | null;
5458
+ input?: (event: CallbackEvent<typeof tagName$3>) => void | null;
5459
+ change?: (event: CallbackEvent<typeof tagName$3>) => void | null;
5462
5460
  }
5463
5461
 
5464
5462
  interface TimeField {
@@ -5502,10 +5500,10 @@ interface TimeField {
5502
5500
  }
5503
5501
 
5504
5502
  interface TimePickerEvents {
5505
- blur?: (event: CallbackEvent<typeof tagName>) => void | null;
5506
- focus?: (event: CallbackEvent<typeof tagName>) => void | null;
5507
- change?: (event: CallbackEvent<typeof tagName>) => void | null;
5508
- input?: (event: CallbackEvent<typeof tagName>) => void | null;
5503
+ blur?: (event: CallbackEvent<typeof tagName$6>) => void | null;
5504
+ focus?: (event: CallbackEvent<typeof tagName$6>) => void | null;
5505
+ change?: (event: CallbackEvent<typeof tagName$6>) => void | null;
5506
+ input?: (event: CallbackEvent<typeof tagName$6>) => void | null;
5509
5507
  }
5510
5508
 
5511
5509
  interface TimePicker {
@@ -1,160 +0,0 @@
1
- /** VERSION: 1.19.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 {DropZoneProps$1, ComponentChild} from './shared.d.ts';
10
-
11
- export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
12
- currentTarget: HTMLElementTagNameMap[T];
13
- };
14
- export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
15
- | (EventListener & {
16
- (event: CallbackEvent<T>): void;
17
- })
18
- | null;
19
-
20
- export interface DropZoneProps
21
- extends Required<
22
- Pick<
23
- DropZoneProps$1,
24
- | 'accept'
25
- | 'accessibilityLabel'
26
- | 'disabled'
27
- | 'files'
28
- | 'name'
29
- | 'error'
30
- | 'label'
31
- | 'labelAccessibilityVisibility'
32
- | 'multiple'
33
- | 'required'
34
- | 'value'
35
- >
36
- > {}
37
-
38
- export type Styles = string;
39
- export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
40
- ShadowRoot: (element: any) => ComponentChild;
41
- styles?: Styles;
42
- };
43
- export interface ActivationEventEsque {
44
- shiftKey: boolean;
45
- metaKey: boolean;
46
- ctrlKey: boolean;
47
- button: number;
48
- }
49
- export interface ClickOptions {
50
- /**
51
- * The event you want to influence the synthetic click.
52
- */
53
- sourceEvent?: ActivationEventEsque;
54
- }
55
- /**
56
- * Base class for creating custom elements with Preact.
57
- * While this class could be used in both Node and the browser, the constructor will only be used in the browser.
58
- * So we give it a type of HTMLElement to avoid typing issues later where it's used, which will only happen in the browser.
59
- */
60
- declare const BaseClass$1: typeof globalThis.HTMLElement;
61
- declare abstract class PreactCustomElement extends BaseClass$1 {
62
- /** @private */
63
- static get observedAttributes(): string[];
64
- constructor({
65
- styles,
66
- ShadowRoot: renderFunction,
67
- delegatesFocus,
68
- ...options
69
- }: RenderImpl);
70
-
71
- /** @private */
72
- setAttribute(name: string, value: string): void;
73
- /** @private */
74
- attributeChangedCallback(name: string): void;
75
- /** @private */
76
- connectedCallback(): void;
77
- /** @private */
78
- disconnectedCallback(): void;
79
- /** @private */
80
- adoptedCallback(): void;
81
- /**
82
- * Queue a run of the render function.
83
- * You shouldn't need to call this manually - it should be handled by changes to @property values.
84
- * @private
85
- */
86
- queueRender(): void;
87
- /**
88
- * Like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.
89
- *
90
- * For example, if the `sourceEvent` was a middle click, or has particular keys held down,
91
- * components will attempt to produce the desired behavior on links, such as opening the page in the background tab.
92
- * @private
93
- * @param options
94
- */
95
- click({sourceEvent}?: ClickOptions): void;
96
- }
97
-
98
- declare const setFiles: unique symbol;
99
-
100
- declare const internals: unique symbol;
101
- declare const getFileInput: unique symbol;
102
- declare class BaseClass extends PreactCustomElement {
103
- static formAssociated: boolean;
104
- constructor(renderImpl: RenderImpl);
105
- /** @private */
106
- [internals]: ElementInternals;
107
- }
108
- declare class DropZone extends BaseClass implements DropZoneProps {
109
- accessor accept: DropZoneProps['accept'];
110
- accessor accessibilityLabel: DropZoneProps['accessibilityLabel'];
111
- accessor disabled: DropZoneProps['disabled'];
112
- accessor error: DropZoneProps['error'];
113
- accessor label: DropZoneProps['label'];
114
- accessor labelAccessibilityVisibility: DropZoneProps['labelAccessibilityVisibility'];
115
- accessor multiple: DropZoneProps['multiple'];
116
- accessor name: DropZoneProps['name'];
117
- accessor required: DropZoneProps['required'];
118
- accessor onchange: CallbackEventListener<typeof tagName>;
119
- accessor oninput: CallbackEventListener<typeof tagName>;
120
- accessor ondroprejected: CallbackEventListener<typeof tagName>;
121
- get value(): string;
122
- set value(value: string);
123
- get files(): File[];
124
- set files(files: File[]);
125
- /** @private */
126
- [setFiles](files: File[]): void;
127
- /** @private */
128
- [getFileInput](): HTMLInputElement | null;
129
- /** @private */
130
- formResetCallback(): void;
131
- constructor();
132
- }
133
- declare global {
134
- interface HTMLElementTagNameMap {
135
- [tagName]: DropZone;
136
- }
137
- }
138
- declare module 'preact' {
139
- namespace createElement.JSX {
140
- interface IntrinsicElements {
141
- [tagName]: Omit<
142
- HTMLAttributes<HTMLElement>,
143
- Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
144
- > &
145
- DropZoneJSXProps;
146
- }
147
- }
148
- }
149
-
150
- declare const tagName = 's-drop-zone';
151
- export interface DropZoneJSXProps
152
- extends Partial<DropZoneProps>,
153
- Pick<DropZoneProps$1, 'id'> {
154
- onChange?: ((event: CallbackEvent<typeof tagName>) => void) | null;
155
- onInput?: ((event: CallbackEvent<typeof tagName>) => void) | null;
156
- onDropRejected?: ((event: CallbackEvent<typeof tagName>) => void) | null;
157
- }
158
-
159
- export {DropZone};
160
- export type {DropZoneJSXProps};