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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1318) hide show
  1. package/build/cjs/surfaces/checkout/preact/api.js +4 -0
  2. package/build/cjs/surfaces/checkout/preact/attributes.js +1 -1
  3. package/build/cjs/surfaces/checkout/preact/subscription.js +6 -5
  4. package/build/cjs/surfaces/checkout/shared.js +35 -0
  5. package/build/cjs/surfaces/checkout.js +2 -0
  6. package/build/cjs/surfaces/customer-account/preact/live-navigation.js +0 -2
  7. package/build/cjs/surfaces/customer-account/preact/navigation.js +1 -3
  8. package/build/cjs/surfaces/customer-account/preact/subscription.js +3 -3
  9. package/build/cjs/surfaces/point-of-sale/types/storage.js +13 -0
  10. package/build/cjs/surfaces/point-of-sale.js +9 -0
  11. package/build/esm/surfaces/checkout/preact/api.mjs +4 -0
  12. package/build/esm/surfaces/checkout/preact/attributes.mjs +1 -1
  13. package/build/esm/surfaces/checkout/preact/subscription.mjs +6 -5
  14. package/build/esm/surfaces/checkout/shared.mjs +31 -0
  15. package/build/esm/surfaces/checkout.mjs +1 -0
  16. package/build/esm/surfaces/customer-account/preact/live-navigation.mjs +0 -2
  17. package/build/esm/surfaces/customer-account/preact/navigation.mjs +1 -3
  18. package/build/esm/surfaces/customer-account/preact/subscription.mjs +3 -3
  19. package/build/esm/surfaces/point-of-sale/types/storage.mjs +9 -0
  20. package/build/esm/surfaces/point-of-sale.mjs +1 -0
  21. package/build/esnext/surfaces/checkout/preact/api.esnext +4 -0
  22. package/build/esnext/surfaces/checkout/preact/attributes.esnext +1 -1
  23. package/build/esnext/surfaces/checkout/preact/subscription.esnext +6 -5
  24. package/build/esnext/surfaces/checkout/shared.esnext +31 -0
  25. package/build/esnext/surfaces/checkout.esnext +1 -0
  26. package/build/esnext/surfaces/customer-account/preact/live-navigation.esnext +0 -2
  27. package/build/esnext/surfaces/customer-account/preact/navigation.esnext +1 -3
  28. package/build/esnext/surfaces/customer-account/preact/subscription.esnext +3 -3
  29. package/build/esnext/surfaces/point-of-sale/types/storage.esnext +9 -0
  30. package/build/esnext/surfaces/point-of-sale.esnext +1 -0
  31. package/build/ts/docs/shared/components/Avatar.d.ts +4 -0
  32. package/build/ts/docs/shared/components/Avatar.d.ts.map +1 -0
  33. package/build/ts/docs/shared/components/Badge.d.ts +1 -1
  34. package/build/ts/docs/shared/components/Badge.d.ts.map +1 -1
  35. package/build/ts/docs/shared/components/Banner.d.ts +1 -1
  36. package/build/ts/docs/shared/components/Banner.d.ts.map +1 -1
  37. package/build/ts/docs/shared/components/ButtonGroup.d.ts +4 -0
  38. package/build/ts/docs/shared/components/ButtonGroup.d.ts.map +1 -0
  39. package/build/ts/docs/shared/components/Checkbox.d.ts +1 -1
  40. package/build/ts/docs/shared/components/Checkbox.d.ts.map +1 -1
  41. package/build/ts/docs/shared/components/Chip.d.ts +4 -0
  42. package/build/ts/docs/shared/components/Chip.d.ts.map +1 -0
  43. package/build/ts/docs/shared/components/Choice.d.ts +1 -1
  44. package/build/ts/docs/shared/components/Choice.d.ts.map +1 -1
  45. package/build/ts/docs/shared/components/ChoiceList.d.ts +1 -1
  46. package/build/ts/docs/shared/components/ChoiceList.d.ts.map +1 -1
  47. package/build/ts/docs/shared/components/Clickable.d.ts +1 -1
  48. package/build/ts/docs/shared/components/Clickable.d.ts.map +1 -1
  49. package/build/ts/docs/shared/components/ClickableChip.d.ts +4 -0
  50. package/build/ts/docs/shared/components/ClickableChip.d.ts.map +1 -0
  51. package/build/ts/docs/shared/components/ColorField.d.ts +4 -0
  52. package/build/ts/docs/shared/components/ColorField.d.ts.map +1 -0
  53. package/build/ts/docs/shared/components/ColorPicker.d.ts +4 -0
  54. package/build/ts/docs/shared/components/ColorPicker.d.ts.map +1 -0
  55. package/build/ts/docs/shared/components/DateField.d.ts +4 -0
  56. package/build/ts/docs/shared/components/DateField.d.ts.map +1 -0
  57. package/build/ts/docs/shared/components/DatePicker.d.ts +1 -1
  58. package/build/ts/docs/shared/components/DatePicker.d.ts.map +1 -1
  59. package/build/ts/docs/shared/components/Details.d.ts +4 -0
  60. package/build/ts/docs/shared/components/Details.d.ts.map +1 -0
  61. package/build/ts/docs/shared/components/Divider.d.ts +1 -1
  62. package/build/ts/docs/shared/components/Divider.d.ts.map +1 -1
  63. package/build/ts/docs/shared/components/EmailField.d.ts +1 -1
  64. package/build/ts/docs/shared/components/EmailField.d.ts.map +1 -1
  65. package/build/ts/docs/shared/components/Grid.d.ts +1 -1
  66. package/build/ts/docs/shared/components/Grid.d.ts.map +1 -1
  67. package/build/ts/docs/shared/components/GridItem.d.ts +1 -1
  68. package/build/ts/docs/shared/components/GridItem.d.ts.map +1 -1
  69. package/build/ts/docs/shared/components/Map.d.ts +4 -0
  70. package/build/ts/docs/shared/components/Map.d.ts.map +1 -0
  71. package/build/ts/docs/shared/components/MapMarker.d.ts +4 -0
  72. package/build/ts/docs/shared/components/MapMarker.d.ts.map +1 -0
  73. package/build/ts/docs/shared/components/Menu.d.ts +4 -0
  74. package/build/ts/docs/shared/components/Menu.d.ts.map +1 -0
  75. package/build/ts/docs/shared/components/Modal.d.ts +4 -0
  76. package/build/ts/docs/shared/components/Modal.d.ts.map +1 -0
  77. package/build/ts/docs/shared/components/MoneyField.d.ts +1 -1
  78. package/build/ts/docs/shared/components/MoneyField.d.ts.map +1 -1
  79. package/build/ts/docs/shared/components/NumberField.d.ts +1 -1
  80. package/build/ts/docs/shared/components/NumberField.d.ts.map +1 -1
  81. package/build/ts/docs/shared/components/Option.d.ts +4 -0
  82. package/build/ts/docs/shared/components/Option.d.ts.map +1 -0
  83. package/build/ts/docs/shared/components/OptionGroup.d.ts +4 -0
  84. package/build/ts/docs/shared/components/OptionGroup.d.ts.map +1 -0
  85. package/build/ts/docs/shared/components/PasswordField.d.ts +1 -1
  86. package/build/ts/docs/shared/components/PasswordField.d.ts.map +1 -1
  87. package/build/ts/docs/shared/components/PhoneField.d.ts +4 -0
  88. package/build/ts/docs/shared/components/PhoneField.d.ts.map +1 -0
  89. package/build/ts/docs/shared/components/Popover.d.ts +4 -0
  90. package/build/ts/docs/shared/components/Popover.d.ts.map +1 -0
  91. package/build/ts/docs/shared/components/PressButton.d.ts +4 -0
  92. package/build/ts/docs/shared/components/PressButton.d.ts.map +1 -0
  93. package/build/ts/docs/shared/components/ProductThumbnail.d.ts +4 -0
  94. package/build/ts/docs/shared/components/ProductThumbnail.d.ts.map +1 -0
  95. package/build/ts/docs/shared/components/QueryContainer.d.ts +4 -0
  96. package/build/ts/docs/shared/components/QueryContainer.d.ts.map +1 -0
  97. package/build/ts/docs/shared/components/SearchField.d.ts +1 -1
  98. package/build/ts/docs/shared/components/SearchField.d.ts.map +1 -1
  99. package/build/ts/docs/shared/components/Section.d.ts +1 -1
  100. package/build/ts/docs/shared/components/Section.d.ts.map +1 -1
  101. package/build/ts/docs/shared/components/Select.d.ts +1 -1
  102. package/build/ts/docs/shared/components/Select.d.ts.map +1 -1
  103. package/build/ts/docs/shared/components/SkeletonParagraph.d.ts +4 -0
  104. package/build/ts/docs/shared/components/SkeletonParagraph.d.ts.map +1 -0
  105. package/build/ts/docs/shared/components/Summary.d.ts +4 -0
  106. package/build/ts/docs/shared/components/Summary.d.ts.map +1 -0
  107. package/build/ts/docs/shared/components/Switch.d.ts +1 -1
  108. package/build/ts/docs/shared/components/Switch.d.ts.map +1 -1
  109. package/build/ts/docs/shared/components/Table.d.ts +1 -1
  110. package/build/ts/docs/shared/components/Table.d.ts.map +1 -1
  111. package/build/ts/docs/shared/components/TableBody.d.ts +1 -1
  112. package/build/ts/docs/shared/components/TableBody.d.ts.map +1 -1
  113. package/build/ts/docs/shared/components/TableCell.d.ts +1 -1
  114. package/build/ts/docs/shared/components/TableCell.d.ts.map +1 -1
  115. package/build/ts/docs/shared/components/TableHeader.d.ts +1 -1
  116. package/build/ts/docs/shared/components/TableHeader.d.ts.map +1 -1
  117. package/build/ts/docs/shared/components/TableHeaderRow.d.ts +1 -1
  118. package/build/ts/docs/shared/components/TableHeaderRow.d.ts.map +1 -1
  119. package/build/ts/docs/shared/components/TableRow.d.ts +1 -1
  120. package/build/ts/docs/shared/components/TableRow.d.ts.map +1 -1
  121. package/build/ts/docs/shared/components/TextArea.d.ts +1 -1
  122. package/build/ts/docs/shared/components/TextArea.d.ts.map +1 -1
  123. package/build/ts/docs/shared/components/Thumbnail.d.ts +4 -0
  124. package/build/ts/docs/shared/components/Thumbnail.d.ts.map +1 -0
  125. package/build/ts/docs/shared/components/Tooltip.d.ts +4 -0
  126. package/build/ts/docs/shared/components/Tooltip.d.ts.map +1 -0
  127. package/build/ts/docs/shared/components/URLField.d.ts +1 -1
  128. package/build/ts/docs/shared/components/URLField.d.ts.map +1 -1
  129. package/build/ts/docs/shared/components/index.d.ts +6 -0
  130. package/build/ts/docs/shared/components/index.d.ts.map +1 -1
  131. package/build/ts/docs/shared/docs-type.d.ts +3 -2
  132. package/build/ts/docs/shared/docs-type.d.ts.map +1 -1
  133. package/build/ts/index.d.ts.map +1 -1
  134. package/build/ts/shared.d.ts +14 -1
  135. package/build/ts/shared.d.ts.map +1 -1
  136. package/build/ts/surfaces/admin/api/should-render/should-render.doc.d.ts.map +1 -1
  137. package/build/ts/surfaces/admin/api/standard/standard.d.ts +6 -1
  138. package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -1
  139. package/build/ts/surfaces/admin/api/standard/storage.d.ts +70 -0
  140. package/build/ts/surfaces/admin/api/standard/storage.d.ts.map +1 -0
  141. package/build/ts/surfaces/admin/components/AdminAction.d.ts +1 -1
  142. package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.ext.doc.d.ts.map +1 -1
  143. package/build/ts/surfaces/admin/components/AdminBlock.d.ts +1 -1
  144. package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  145. package/build/ts/surfaces/admin/components/Avatar/Avatar.doc.d.ts +4 -0
  146. package/build/ts/surfaces/admin/components/Avatar/Avatar.doc.d.ts.map +1 -0
  147. package/build/ts/surfaces/admin/components/Avatar.d.ts +133 -0
  148. package/build/ts/surfaces/admin/components/Badge.d.ts +22 -8
  149. package/build/ts/surfaces/admin/components/Banner.d.ts +21 -16
  150. package/build/ts/surfaces/admin/components/Box.d.ts +42 -26
  151. package/build/ts/surfaces/admin/components/Button.d.ts +35 -20
  152. package/build/ts/surfaces/admin/components/ButtonGroup/ButtonGroup.doc.d.ts +4 -0
  153. package/build/ts/surfaces/admin/components/ButtonGroup/ButtonGroup.doc.d.ts.map +1 -0
  154. package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +129 -0
  155. package/build/ts/surfaces/admin/components/Checkbox.d.ts +22 -12
  156. package/build/ts/surfaces/admin/components/Chip/Chip.doc.d.ts +4 -0
  157. package/build/ts/surfaces/admin/components/Chip/Chip.doc.d.ts.map +1 -0
  158. package/build/ts/surfaces/admin/components/Chip.d.ts +125 -0
  159. package/build/ts/surfaces/admin/components/Choice.d.ts +29 -8
  160. package/build/ts/surfaces/admin/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -1
  161. package/build/ts/surfaces/admin/components/ChoiceList.d.ts +21 -16
  162. package/build/ts/surfaces/admin/components/Clickable.d.ts +56 -39
  163. package/build/ts/surfaces/admin/components/ClickableChip/ClickableChip.doc.d.ts +4 -0
  164. package/build/ts/surfaces/admin/components/ClickableChip/ClickableChip.doc.d.ts.map +1 -0
  165. package/build/ts/surfaces/admin/components/ClickableChip.d.ts +156 -0
  166. package/build/ts/surfaces/admin/components/ColorField/ColorField.doc.d.ts +4 -0
  167. package/build/ts/surfaces/admin/components/ColorField/ColorField.doc.d.ts.map +1 -0
  168. package/build/ts/surfaces/admin/components/ColorField.d.ts +240 -0
  169. package/build/ts/surfaces/admin/components/ColorPicker/ColorPicker.doc.d.ts +4 -0
  170. package/build/ts/surfaces/admin/components/ColorPicker/ColorPicker.doc.d.ts.map +1 -0
  171. package/build/ts/surfaces/admin/components/ColorPicker.d.ts +132 -0
  172. package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts +4 -0
  173. package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts.map +1 -0
  174. package/build/ts/surfaces/admin/components/DateField.d.ts +246 -0
  175. package/build/ts/surfaces/admin/components/DatePicker.d.ts +18 -35
  176. package/build/ts/surfaces/admin/components/Divider.d.ts +12 -5
  177. package/build/ts/surfaces/admin/components/DropZone/DropZone.ab.doc.d.ts +4 -0
  178. package/build/ts/surfaces/admin/components/DropZone/DropZone.ab.doc.d.ts.map +1 -0
  179. package/build/ts/surfaces/admin/components/DropZone.d.ts +160 -0
  180. package/build/ts/surfaces/admin/components/EmailField.d.ts +15 -15
  181. package/build/ts/surfaces/admin/components/Form/Form.ext.doc.d.ts.map +1 -1
  182. package/build/ts/surfaces/admin/components/Form.d.ts +43 -35
  183. package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +183 -0
  184. package/build/ts/surfaces/admin/components/Grid.d.ts +61 -33
  185. package/build/ts/surfaces/admin/components/GridItem.d.ts +43 -26
  186. package/build/ts/surfaces/admin/components/Heading.d.ts +17 -6
  187. package/build/ts/surfaces/admin/components/Icon.d.ts +17 -6
  188. package/build/ts/surfaces/admin/components/Image.d.ts +41 -42
  189. package/build/ts/surfaces/admin/components/Link.d.ts +35 -29
  190. package/build/ts/surfaces/admin/components/ListItem.d.ts +18 -6
  191. package/build/ts/surfaces/admin/components/Menu/Menu.doc.d.ts +4 -0
  192. package/build/ts/surfaces/admin/components/Menu/Menu.doc.d.ts.map +1 -0
  193. package/build/ts/surfaces/admin/components/Menu.d.ts +143 -0
  194. package/build/ts/surfaces/admin/components/Modal/Modal.ab.doc.d.ts +4 -0
  195. package/build/ts/surfaces/admin/components/Modal/Modal.ab.doc.d.ts.map +1 -0
  196. package/build/ts/surfaces/admin/components/Modal.d.ts +231 -0
  197. package/build/ts/surfaces/admin/components/MoneyField.d.ts +16 -20
  198. package/build/ts/surfaces/admin/components/NumberField.d.ts +15 -17
  199. package/build/ts/surfaces/admin/components/Option.d.ts +17 -5
  200. package/build/ts/surfaces/admin/components/OptionGroup.d.ts +18 -5
  201. package/build/ts/surfaces/admin/components/OrderedList.d.ts +18 -6
  202. package/build/ts/surfaces/admin/components/Page.d.ts +42 -6
  203. package/build/ts/surfaces/admin/components/Paragraph.d.ts +18 -6
  204. package/build/ts/surfaces/admin/components/PasswordField.d.ts +15 -15
  205. package/build/ts/surfaces/admin/components/Popover/Popover.ab.doc.d.ts +4 -0
  206. package/build/ts/surfaces/admin/components/Popover/Popover.ab.doc.d.ts.map +1 -0
  207. package/build/ts/surfaces/admin/components/Popover.d.ts +379 -0
  208. package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts +4 -0
  209. package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts.map +1 -0
  210. package/build/ts/surfaces/admin/components/QueryContainer.d.ts +106 -0
  211. package/build/ts/surfaces/admin/components/SearchField.d.ts +18 -16
  212. package/build/ts/surfaces/admin/components/Section.d.ts +17 -6
  213. package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +1 -1
  214. package/build/ts/surfaces/admin/components/Select.d.ts +40 -16
  215. package/build/ts/surfaces/admin/components/Spinner.d.ts +12 -2
  216. package/build/ts/surfaces/admin/components/Stack.d.ts +66 -43
  217. package/build/ts/surfaces/admin/components/StandardComponents.d.ts +1 -1
  218. package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
  219. package/build/ts/surfaces/admin/components/Switch.d.ts +16 -12
  220. package/build/ts/surfaces/admin/components/Table.d.ts +29 -17
  221. package/build/ts/surfaces/admin/components/TableBody.d.ts +18 -6
  222. package/build/ts/surfaces/admin/components/TableCell.d.ts +34 -7
  223. package/build/ts/surfaces/admin/components/TableHeader.d.ts +26 -7
  224. package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +19 -6
  225. package/build/ts/surfaces/admin/components/TableRow.d.ts +21 -7
  226. package/build/ts/surfaces/admin/components/Text.d.ts +19 -6
  227. package/build/ts/surfaces/admin/components/TextArea.d.ts +15 -15
  228. package/build/ts/surfaces/admin/components/TextField.d.ts +17 -15
  229. package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.doc.d.ts +4 -0
  230. package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.doc.d.ts.map +1 -0
  231. package/build/ts/surfaces/admin/components/Thumbnail.d.ts +127 -0
  232. package/build/ts/surfaces/admin/components/Tooltip/Tooltip.doc.d.ts +4 -0
  233. package/build/ts/surfaces/admin/components/Tooltip/Tooltip.doc.d.ts.map +1 -0
  234. package/build/ts/surfaces/admin/components/Tooltip.d.ts +148 -0
  235. package/build/ts/surfaces/admin/components/URLField.d.ts +15 -15
  236. package/build/ts/surfaces/admin/components/UnorderedList.d.ts +18 -6
  237. package/build/ts/surfaces/admin/components/patterns/appCard.ab.doc.d.ts +4 -0
  238. package/build/ts/surfaces/admin/components/patterns/appCard.ab.doc.d.ts.map +1 -0
  239. package/build/ts/surfaces/admin/components/patterns/calloutCard.ab.doc.d.ts +4 -0
  240. package/build/ts/surfaces/admin/components/patterns/calloutCard.ab.doc.d.ts.map +1 -0
  241. package/build/ts/surfaces/admin/components/patterns/details.ab.doc.d.ts +4 -0
  242. package/build/ts/surfaces/admin/components/patterns/details.ab.doc.d.ts.map +1 -0
  243. package/build/ts/surfaces/admin/components/patterns/emptyState.ab.doc.d.ts +4 -0
  244. package/build/ts/surfaces/admin/components/patterns/emptyState.ab.doc.d.ts.map +1 -0
  245. package/build/ts/surfaces/admin/components/patterns/homepage.ab.doc.d.ts +4 -0
  246. package/build/ts/surfaces/admin/components/patterns/homepage.ab.doc.d.ts.map +1 -0
  247. package/build/ts/surfaces/admin/components/patterns/index.ab.doc.d.ts +4 -0
  248. package/build/ts/surfaces/admin/components/patterns/index.ab.doc.d.ts.map +1 -0
  249. package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts +4 -0
  250. package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts.map +1 -0
  251. package/build/ts/surfaces/admin/components/patterns/interstitialNav.ab.doc.d.ts +4 -0
  252. package/build/ts/surfaces/admin/components/patterns/interstitialNav.ab.doc.d.ts.map +1 -0
  253. package/build/ts/surfaces/admin/components/patterns/mediaCard.ab.doc.d.ts +4 -0
  254. package/build/ts/surfaces/admin/components/patterns/mediaCard.ab.doc.d.ts.map +1 -0
  255. package/build/ts/surfaces/admin/components/patterns/metricsCard.ab.doc.d.ts +4 -0
  256. package/build/ts/surfaces/admin/components/patterns/metricsCard.ab.doc.d.ts.map +1 -0
  257. package/build/ts/surfaces/admin/components/patterns/settings.ab.doc.d.ts +4 -0
  258. package/build/ts/surfaces/admin/components/patterns/settings.ab.doc.d.ts.map +1 -0
  259. package/build/ts/surfaces/admin/components/patterns/setupGuide.ab.doc.d.ts +4 -0
  260. package/build/ts/surfaces/admin/components/patterns/setupGuide.ab.doc.d.ts.map +1 -0
  261. package/build/ts/surfaces/admin/components/shared.d.ts +1206 -741
  262. package/build/ts/surfaces/admin/docs-types.d.ts +4 -0
  263. package/build/ts/surfaces/admin/docs-types.d.ts.map +1 -1
  264. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +53 -3083
  265. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.should-render.d.ts +1 -3
  266. package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +54 -3125
  267. package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +53 -3083
  268. package/build/ts/surfaces/admin/targets/admin.catalog-details.action.should-render.d.ts +1 -3
  269. package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +54 -3125
  270. package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +53 -3083
  271. package/build/ts/surfaces/admin/targets/admin.collection-details.action.should-render.d.ts +1 -3
  272. package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +54 -3125
  273. package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +53 -3083
  274. package/build/ts/surfaces/admin/targets/admin.collection-index.action.should-render.d.ts +1 -3
  275. package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +53 -3083
  276. package/build/ts/surfaces/admin/targets/admin.company-details.action.should-render.d.ts +1 -3
  277. package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +54 -3125
  278. package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +54 -3125
  279. package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +53 -3083
  280. package/build/ts/surfaces/admin/targets/admin.customer-details.action.should-render.d.ts +1 -3
  281. package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +54 -3125
  282. package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +53 -3083
  283. package/build/ts/surfaces/admin/targets/admin.customer-index.action.should-render.d.ts +1 -3
  284. package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +53 -3083
  285. package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.should-render.d.ts +1 -3
  286. package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +53 -3083
  287. package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.should-render.d.ts +1 -3
  288. package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +52 -3032
  289. package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +53 -3083
  290. package/build/ts/surfaces/admin/targets/admin.discount-details.action.should-render.d.ts +1 -3
  291. package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +54 -3125
  292. package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +53 -3083
  293. package/build/ts/surfaces/admin/targets/admin.discount-index.action.should-render.d.ts +1 -3
  294. package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +53 -3083
  295. package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.should-render.d.ts +1 -3
  296. package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +54 -3125
  297. package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +53 -3083
  298. package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.should-render.d.ts +1 -3
  299. package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +53 -3083
  300. package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.should-render.d.ts +1 -3
  301. package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +53 -3083
  302. package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.should-render.d.ts +1 -3
  303. package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +54 -3125
  304. package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +53 -3083
  305. package/build/ts/surfaces/admin/targets/admin.order-details.action.should-render.d.ts +1 -3
  306. package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +54 -3125
  307. package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +53 -3072
  308. package/build/ts/surfaces/admin/targets/admin.order-details.print-action.should-render.d.ts +1 -3
  309. package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +53 -3083
  310. package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.should-render.d.ts +1 -3
  311. package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +53 -3083
  312. package/build/ts/surfaces/admin/targets/admin.order-index.action.should-render.d.ts +1 -3
  313. package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +53 -3083
  314. package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.should-render.d.ts +1 -3
  315. package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +53 -3072
  316. package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.should-render.d.ts +1 -3
  317. package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +53 -3083
  318. package/build/ts/surfaces/admin/targets/admin.product-details.action.should-render.d.ts +1 -3
  319. package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +54 -3125
  320. package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +54 -3125
  321. package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +53 -3072
  322. package/build/ts/surfaces/admin/targets/admin.product-details.print-action.should-render.d.ts +1 -3
  323. package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +54 -3125
  324. package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +53 -3083
  325. package/build/ts/surfaces/admin/targets/admin.product-index.action.should-render.d.ts +1 -3
  326. package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +53 -3083
  327. package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.should-render.d.ts +1 -3
  328. package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +53 -3072
  329. package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.should-render.d.ts +1 -3
  330. package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +53 -3083
  331. package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +53 -3083
  332. package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.should-render.d.ts +1 -3
  333. package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +54 -3125
  334. package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +54 -3125
  335. package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +53 -3083
  336. package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +52 -3032
  337. package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +52 -3032
  338. package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +52 -3032
  339. package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts +1 -1
  340. package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts +3 -3
  341. package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts.map +1 -1
  342. package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +18 -2
  343. package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -1
  344. package/build/ts/surfaces/checkout/api/order-confirmation/order-confirmation.d.ts +2 -2
  345. package/build/ts/surfaces/checkout/api/order-confirmation/order-confirmation.d.ts.map +1 -1
  346. package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts +3 -3
  347. package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts.map +1 -1
  348. package/build/ts/surfaces/checkout/api/pickup/pickup-location-item.d.ts +3 -3
  349. package/build/ts/surfaces/checkout/api/pickup/pickup-location-item.d.ts.map +1 -1
  350. package/build/ts/surfaces/checkout/api/pickup/pickup-location-list.d.ts +2 -2
  351. package/build/ts/surfaces/checkout/api/pickup/pickup-location-list.d.ts.map +1 -1
  352. package/build/ts/surfaces/checkout/api/pickup/pickup-point-list.d.ts +2 -2
  353. package/build/ts/surfaces/checkout/api/pickup/pickup-point-list.d.ts.map +1 -1
  354. package/build/ts/surfaces/checkout/api/shared.d.ts +4 -0
  355. package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
  356. package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts +3 -3
  357. package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts.map +1 -1
  358. package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts +3 -3
  359. package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts.map +1 -1
  360. package/build/ts/surfaces/checkout/api/standard/standard.d.ts +63 -40
  361. package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
  362. package/build/ts/surfaces/checkout/components/Abbreviation/Abbreviation.doc.d.ts.map +1 -1
  363. package/build/ts/surfaces/checkout/components/Abbreviation.d.ts +21 -9
  364. package/build/ts/surfaces/checkout/components/Badge/Badge.doc.d.ts +4 -0
  365. package/build/ts/surfaces/checkout/components/Badge/Badge.doc.d.ts.map +1 -0
  366. package/build/ts/surfaces/checkout/components/Badge.d.ts +51 -0
  367. package/build/ts/surfaces/checkout/components/Banner/Banner.doc.d.ts.map +1 -1
  368. package/build/ts/surfaces/checkout/components/Banner.d.ts +55 -13
  369. package/build/ts/surfaces/checkout/components/Box/Box.doc.d.ts.map +1 -1
  370. package/build/ts/surfaces/checkout/components/Box.d.ts +20 -9
  371. package/build/ts/surfaces/checkout/components/Button/Button.doc.d.ts.map +1 -1
  372. package/build/ts/surfaces/checkout/components/Button.d.ts +44 -13
  373. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts +4 -0
  374. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts.map +1 -0
  375. package/build/ts/surfaces/checkout/components/Checkbox.d.ts +60 -0
  376. package/build/ts/surfaces/checkout/components/Clickable/Clickable.doc.d.ts +4 -0
  377. package/build/ts/surfaces/checkout/components/Clickable/Clickable.doc.d.ts.map +1 -0
  378. package/build/ts/surfaces/checkout/components/Clickable.d.ts +89 -0
  379. package/build/ts/surfaces/checkout/components/ClipboardItem/ClipboardItem.doc.d.ts.map +1 -1
  380. package/build/ts/surfaces/checkout/components/ClipboardItem.d.ts +39 -9
  381. package/build/ts/surfaces/checkout/components/Details/Details.doc.d.ts +4 -0
  382. package/build/ts/surfaces/checkout/components/Details/Details.doc.d.ts.map +1 -0
  383. package/build/ts/surfaces/checkout/components/Details.d.ts +85 -0
  384. package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts +4 -0
  385. package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts.map +1 -0
  386. package/build/ts/surfaces/checkout/components/Divider.d.ts +46 -0
  387. package/build/ts/surfaces/checkout/components/DropZone/DropZone.doc.d.ts.map +1 -1
  388. package/build/ts/surfaces/checkout/components/DropZone.d.ts +44 -9
  389. package/build/ts/surfaces/checkout/components/EmailField/EmailField.doc.d.ts +4 -0
  390. package/build/ts/surfaces/checkout/components/EmailField/EmailField.doc.d.ts.map +1 -0
  391. package/build/ts/surfaces/checkout/components/EmailField.d.ts +92 -0
  392. package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts.map +1 -1
  393. package/build/ts/surfaces/checkout/components/Form.d.ts +40 -12
  394. package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts +4 -0
  395. package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts.map +1 -0
  396. package/build/ts/surfaces/checkout/components/Grid.d.ts +64 -0
  397. package/build/ts/surfaces/checkout/components/GridItem.d.ts +54 -0
  398. package/build/ts/surfaces/checkout/components/Heading/Heading.doc.d.ts.map +1 -1
  399. package/build/ts/surfaces/checkout/components/Heading.d.ts +20 -8
  400. package/build/ts/surfaces/checkout/components/Icon/Icon.doc.d.ts.map +1 -1
  401. package/build/ts/surfaces/checkout/components/Icon.d.ts +16 -8
  402. package/build/ts/surfaces/checkout/components/Image/Image.doc.d.ts.map +1 -1
  403. package/build/ts/surfaces/checkout/components/Image.d.ts +13 -7
  404. package/build/ts/surfaces/checkout/components/Link/Link.doc.d.ts.map +1 -1
  405. package/build/ts/surfaces/checkout/components/Link.d.ts +44 -13
  406. package/build/ts/surfaces/checkout/components/ListItem.d.ts +22 -10
  407. package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts +4 -0
  408. package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts.map +1 -0
  409. package/build/ts/surfaces/checkout/components/Map.d.ts +78 -0
  410. package/build/ts/surfaces/checkout/components/MapMarker.d.ts +74 -0
  411. package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts +4 -0
  412. package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +1 -0
  413. package/build/ts/surfaces/checkout/components/Modal.d.ts +91 -0
  414. package/build/ts/surfaces/checkout/components/MoneyField/MoneyField.doc.d.ts +4 -0
  415. package/build/ts/surfaces/checkout/components/MoneyField/MoneyField.doc.d.ts.map +1 -0
  416. package/build/ts/surfaces/checkout/components/MoneyField.d.ts +80 -0
  417. package/build/ts/surfaces/checkout/components/OrderedList/OrderedList.doc.d.ts.map +1 -1
  418. package/build/ts/surfaces/checkout/components/OrderedList.d.ts +20 -8
  419. package/build/ts/surfaces/checkout/components/Paragraph/Paragraph.doc.d.ts.map +1 -1
  420. package/build/ts/surfaces/checkout/components/Paragraph.d.ts +20 -8
  421. package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.d.ts.map +1 -1
  422. package/build/ts/surfaces/checkout/components/PaymentIcon.d.ts +14 -7
  423. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts +4 -0
  424. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts.map +1 -0
  425. package/build/ts/surfaces/checkout/components/PhoneField.d.ts +98 -0
  426. package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts +4 -0
  427. package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts.map +1 -0
  428. package/build/ts/surfaces/checkout/components/Popover.d.ts +116 -0
  429. package/build/ts/surfaces/checkout/components/PressButton/PressButton.doc.d.ts +4 -0
  430. package/build/ts/surfaces/checkout/components/PressButton/PressButton.doc.d.ts.map +1 -0
  431. package/build/ts/surfaces/checkout/components/PressButton.d.ts +79 -0
  432. package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts +4 -0
  433. package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts.map +1 -0
  434. package/build/ts/surfaces/checkout/components/ProductThumbnail.d.ts +41 -0
  435. package/build/ts/surfaces/checkout/components/Progress/Progress.doc.d.ts.map +1 -1
  436. package/build/ts/surfaces/checkout/components/Progress.d.ts +14 -4
  437. package/build/ts/surfaces/checkout/components/QRCode/QRCode.doc.d.ts.map +1 -1
  438. package/build/ts/surfaces/checkout/components/QRCode.d.ts +35 -8
  439. package/build/ts/surfaces/checkout/components/ScrollBox.d.ts +54 -0
  440. package/build/ts/surfaces/checkout/components/Section/Section.doc.d.ts.map +1 -1
  441. package/build/ts/surfaces/checkout/components/Section.d.ts +20 -8
  442. package/build/ts/surfaces/checkout/components/Sheet/Sheet.doc.d.ts +4 -0
  443. package/build/ts/surfaces/checkout/components/Sheet/Sheet.doc.d.ts.map +1 -0
  444. package/build/ts/surfaces/checkout/components/Sheet.d.ts +100 -0
  445. package/build/ts/surfaces/checkout/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts +4 -0
  446. package/build/ts/surfaces/checkout/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts.map +1 -0
  447. package/build/ts/surfaces/checkout/components/SkeletonParagraph.d.ts +40 -0
  448. package/build/ts/surfaces/checkout/components/Spinner/Spinner.doc.d.ts.map +1 -1
  449. package/build/ts/surfaces/checkout/components/Spinner.d.ts +14 -4
  450. package/build/ts/surfaces/checkout/components/Stack/Stack.doc.d.ts.map +1 -1
  451. package/build/ts/surfaces/checkout/components/Stack.d.ts +24 -13
  452. package/build/ts/surfaces/checkout/components/Summary.d.ts +35 -0
  453. package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts +4 -0
  454. package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts.map +1 -0
  455. package/build/ts/surfaces/checkout/components/Switch.d.ts +60 -0
  456. package/build/ts/surfaces/checkout/components/Text/Text.doc.d.ts.map +1 -1
  457. package/build/ts/surfaces/checkout/components/Text.d.ts +20 -8
  458. package/build/ts/surfaces/checkout/components/TextArea/TextArea.doc.d.ts +4 -0
  459. package/build/ts/surfaces/checkout/components/TextArea/TextArea.doc.d.ts.map +1 -0
  460. package/build/ts/surfaces/checkout/components/TextArea.d.ts +85 -0
  461. package/build/ts/surfaces/checkout/components/TextField/TextField.doc.d.ts.map +1 -1
  462. package/build/ts/surfaces/checkout/components/TextField.d.ts +80 -20
  463. package/build/ts/surfaces/checkout/components/Time/Time.doc.d.ts.map +1 -1
  464. package/build/ts/surfaces/checkout/components/Time.d.ts +21 -9
  465. package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts +4 -0
  466. package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts.map +1 -0
  467. package/build/ts/surfaces/checkout/components/Tooltip.d.ts +48 -0
  468. package/build/ts/surfaces/checkout/components/UnorderedList/UnorderedList.doc.d.ts.map +1 -1
  469. package/build/ts/surfaces/checkout/components/UnorderedList.d.ts +20 -8
  470. package/build/ts/surfaces/checkout/components/components-shared.d.ts +1351 -227
  471. package/build/ts/surfaces/checkout/components/components.d.ts +2490 -539
  472. package/build/ts/surfaces/checkout/extension-targets.d.ts +4 -0
  473. package/build/ts/surfaces/checkout/extension-targets.d.ts.map +1 -1
  474. package/build/ts/surfaces/checkout/preact/api.d.ts +4 -0
  475. package/build/ts/surfaces/checkout/preact/api.d.ts.map +1 -1
  476. package/build/ts/surfaces/checkout/preact/attributes.d.ts +1 -1
  477. package/build/ts/surfaces/checkout/preact/attributes.d.ts.map +1 -1
  478. package/build/ts/surfaces/checkout/preact/subscription.d.ts +5 -4
  479. package/build/ts/surfaces/checkout/preact/subscription.d.ts.map +1 -1
  480. package/build/ts/surfaces/checkout/shared.d.ts +32 -4
  481. package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
  482. package/build/ts/surfaces/checkout/targets/Checkout::Actions::RenderBefore.d.ts +48 -651
  483. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +48 -651
  484. package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +48 -651
  485. package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +48 -651
  486. package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +48 -651
  487. package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +48 -651
  488. package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +48 -651
  489. package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +48 -651
  490. package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +46 -596
  491. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +46 -596
  492. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +46 -596
  493. package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +48 -651
  494. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +48 -651
  495. package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +48 -651
  496. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +48 -651
  497. package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +48 -651
  498. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +48 -651
  499. package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +48 -651
  500. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +48 -651
  501. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +48 -651
  502. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +48 -651
  503. package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +48 -651
  504. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +48 -651
  505. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +48 -651
  506. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +48 -651
  507. package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +48 -651
  508. package/build/ts/surfaces/checkout/targets/purchase.address-autocomplete.format-suggestion.d.ts +1 -3
  509. package/build/ts/surfaces/checkout/targets/purchase.address-autocomplete.suggest.d.ts +1 -3
  510. package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +48 -651
  511. package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +48 -651
  512. package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +48 -651
  513. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +48 -651
  514. package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +48 -651
  515. package/build/ts/surfaces/checkout/targets/purchase.checkout.chat.render.d.ts +1 -3
  516. package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +48 -651
  517. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +48 -651
  518. package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +48 -651
  519. package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +48 -651
  520. package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +46 -596
  521. package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +48 -651
  522. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +48 -651
  523. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +48 -651
  524. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +48 -651
  525. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +46 -596
  526. package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +48 -651
  527. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +48 -651
  528. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +48 -651
  529. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +48 -651
  530. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +48 -651
  531. package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +48 -651
  532. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +48 -651
  533. package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +48 -651
  534. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +48 -651
  535. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +48 -651
  536. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +48 -651
  537. package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +48 -651
  538. package/build/ts/surfaces/checkout/targets/purchase.thank-you.announcement.render.d.ts +53 -0
  539. package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +48 -651
  540. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +48 -651
  541. package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +48 -651
  542. package/build/ts/surfaces/checkout/targets/purchase.thank-you.chat.render.d.ts +1 -3
  543. package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +48 -651
  544. package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +48 -651
  545. package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +48 -651
  546. package/build/ts/surfaces/checkout.d.ts +2 -1
  547. package/build/ts/surfaces/checkout.d.ts.map +1 -1
  548. package/build/ts/surfaces/customer-account/api/cart-line/cart-line-item.d.ts +2 -2
  549. package/build/ts/surfaces/customer-account/api/cart-line/cart-line-item.d.ts.map +1 -1
  550. package/build/ts/surfaces/customer-account/api/docs.d.ts +46 -17
  551. package/build/ts/surfaces/customer-account/api/docs.d.ts.map +1 -1
  552. package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +29 -42
  553. package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
  554. package/build/ts/surfaces/customer-account/api/shared.d.ts +53 -45
  555. package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
  556. package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts +38 -23
  557. package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts.map +1 -1
  558. package/build/ts/surfaces/customer-account/api.d.ts +2 -2
  559. package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
  560. package/build/ts/surfaces/customer-account/components/Abbreviation.d.ts +21 -9
  561. package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts +4 -0
  562. package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -0
  563. package/build/ts/surfaces/customer-account/components/Avatar.d.ts +92 -0
  564. package/build/ts/surfaces/customer-account/components/Badge.d.ts +51 -0
  565. package/build/ts/surfaces/customer-account/components/Banner.d.ts +55 -13
  566. package/build/ts/surfaces/customer-account/components/Box.d.ts +20 -9
  567. package/build/ts/surfaces/customer-account/components/Button.d.ts +44 -13
  568. package/build/ts/surfaces/customer-account/components/ButtonGroup/ButtonGroup.doc.d.ts +4 -0
  569. package/build/ts/surfaces/customer-account/components/ButtonGroup/ButtonGroup.doc.d.ts.map +1 -0
  570. package/build/ts/surfaces/customer-account/components/ButtonGroup.d.ts +39 -0
  571. package/build/ts/surfaces/customer-account/components/Checkbox.d.ts +60 -0
  572. package/build/ts/surfaces/customer-account/components/Clickable.d.ts +89 -0
  573. package/build/ts/surfaces/customer-account/components/ClipboardItem.d.ts +39 -9
  574. package/build/ts/surfaces/customer-account/components/CustomerAccountAction.d.ts +16 -6
  575. package/build/ts/surfaces/customer-account/components/Details.d.ts +85 -0
  576. package/build/ts/surfaces/customer-account/components/Divider.d.ts +46 -0
  577. package/build/ts/surfaces/customer-account/components/DropZone.d.ts +44 -9
  578. package/build/ts/surfaces/customer-account/components/EmailField.d.ts +92 -0
  579. package/build/ts/surfaces/customer-account/components/Form.d.ts +40 -12
  580. package/build/ts/surfaces/customer-account/components/Grid.d.ts +64 -0
  581. package/build/ts/surfaces/customer-account/components/GridItem.d.ts +54 -0
  582. package/build/ts/surfaces/customer-account/components/Heading.d.ts +20 -8
  583. package/build/ts/surfaces/customer-account/components/Icon.d.ts +16 -8
  584. package/build/ts/surfaces/customer-account/components/Image.d.ts +13 -7
  585. package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts.map +1 -1
  586. package/build/ts/surfaces/customer-account/components/ImageGroup.d.ts +5 -5
  587. package/build/ts/surfaces/customer-account/components/Link.d.ts +44 -13
  588. package/build/ts/surfaces/customer-account/components/ListItem.d.ts +22 -10
  589. package/build/ts/surfaces/customer-account/components/Map.d.ts +78 -0
  590. package/build/ts/surfaces/customer-account/components/MapMarker.d.ts +74 -0
  591. package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts +4 -0
  592. package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts.map +1 -0
  593. package/build/ts/surfaces/customer-account/components/Menu.d.ts +25 -0
  594. package/build/ts/surfaces/customer-account/components/Modal.d.ts +91 -0
  595. package/build/ts/surfaces/customer-account/components/MoneyField.d.ts +80 -0
  596. package/build/ts/surfaces/customer-account/components/OrderedList.d.ts +20 -8
  597. package/build/ts/surfaces/customer-account/components/Page/Page.doc.d.ts.map +1 -1
  598. package/build/ts/surfaces/customer-account/components/Page.d.ts +19 -6
  599. package/build/ts/surfaces/customer-account/components/Paragraph.d.ts +20 -8
  600. package/build/ts/surfaces/customer-account/components/PaymentIcon.d.ts +14 -7
  601. package/build/ts/surfaces/customer-account/components/PhoneField.d.ts +98 -0
  602. package/build/ts/surfaces/customer-account/components/Popover.d.ts +116 -0
  603. package/build/ts/surfaces/customer-account/components/PressButton.d.ts +79 -0
  604. package/build/ts/surfaces/customer-account/components/ProductThumbnail.d.ts +41 -0
  605. package/build/ts/surfaces/customer-account/components/Progress.d.ts +14 -4
  606. package/build/ts/surfaces/customer-account/components/QRCode.d.ts +35 -8
  607. package/build/ts/surfaces/customer-account/components/ScrollBox.d.ts +54 -0
  608. package/build/ts/surfaces/customer-account/components/Section/Section.doc.d.ts +4 -0
  609. package/build/ts/surfaces/customer-account/components/Section/Section.doc.d.ts.map +1 -0
  610. package/build/ts/surfaces/customer-account/components/Section.d.ts +20 -8
  611. package/build/ts/surfaces/customer-account/components/Sheet.d.ts +100 -0
  612. package/build/ts/surfaces/customer-account/components/SkeletonParagraph.d.ts +40 -0
  613. package/build/ts/surfaces/customer-account/components/Spinner.d.ts +14 -4
  614. package/build/ts/surfaces/customer-account/components/Stack.d.ts +24 -13
  615. package/build/ts/surfaces/customer-account/components/StandardComponents.d.ts +1 -1
  616. package/build/ts/surfaces/customer-account/components/StandardComponents.d.ts.map +1 -1
  617. package/build/ts/surfaces/customer-account/components/Summary.d.ts +35 -0
  618. package/build/ts/surfaces/customer-account/components/Switch.d.ts +60 -0
  619. package/build/ts/surfaces/customer-account/components/Text.d.ts +20 -8
  620. package/build/ts/surfaces/customer-account/components/TextArea.d.ts +85 -0
  621. package/build/ts/surfaces/customer-account/components/TextField.d.ts +80 -20
  622. package/build/ts/surfaces/customer-account/components/Time.d.ts +21 -9
  623. package/build/ts/surfaces/customer-account/components/Tooltip.d.ts +48 -0
  624. package/build/ts/surfaces/customer-account/components/UnorderedList.d.ts +20 -8
  625. package/build/ts/surfaces/customer-account/components/components-shared.d.ts +1351 -227
  626. package/build/ts/surfaces/customer-account/components/components.d.ts +2490 -539
  627. package/build/ts/surfaces/customer-account/components/shared.d.ts +13 -2
  628. package/build/ts/surfaces/customer-account/components/shared.d.ts.map +1 -1
  629. package/build/ts/surfaces/customer-account/components/shared.ts +29 -5
  630. package/build/ts/surfaces/customer-account/extension-targets.d.ts +6 -6
  631. package/build/ts/surfaces/customer-account/extension-targets.d.ts.map +1 -1
  632. package/build/ts/surfaces/customer-account/globals.d.ts +2 -1
  633. package/build/ts/surfaces/customer-account/globals.d.ts.map +1 -1
  634. package/build/ts/surfaces/customer-account/preact/live-navigation.d.ts +1 -2
  635. package/build/ts/surfaces/customer-account/preact/live-navigation.d.ts.map +1 -1
  636. package/build/ts/surfaces/customer-account/preact/navigation.d.ts +2 -2
  637. package/build/ts/surfaces/customer-account/preact/navigation.d.ts.map +1 -1
  638. package/build/ts/surfaces/customer-account/preact/subscription.d.ts +2 -2
  639. package/build/ts/surfaces/customer-account/preact/subscription.d.ts.map +1 -1
  640. package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +55 -742
  641. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.announcement.render.d.ts +60 -0
  642. package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +55 -742
  643. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.announcement.render.d.ts +60 -0
  644. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +55 -742
  645. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +55 -742
  646. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +55 -742
  647. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +55 -742
  648. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +55 -742
  649. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +55 -742
  650. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +55 -742
  651. package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +55 -742
  652. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +55 -742
  653. package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +55 -742
  654. package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +55 -742
  655. package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +55 -742
  656. package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +55 -742
  657. package/build/ts/surfaces/customer-account/targets/customer-account.profile.announcement.render.d.ts +60 -0
  658. package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +55 -742
  659. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +55 -742
  660. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +55 -742
  661. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +55 -742
  662. package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +55 -742
  663. package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +55 -742
  664. package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts +15 -0
  665. package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts.map +1 -0
  666. package/build/ts/surfaces/point-of-sale/api/action-target-api/action-target-api.d.ts +8 -0
  667. package/build/ts/surfaces/point-of-sale/api/action-target-api/action-target-api.d.ts.map +1 -0
  668. package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +182 -0
  669. package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts.map +1 -0
  670. package/build/ts/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.d.ts +11 -0
  671. package/build/ts/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.d.ts.map +1 -0
  672. package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts +22 -0
  673. package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts.map +1 -0
  674. package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts +10 -0
  675. package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts.map +1 -0
  676. package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts +21 -0
  677. package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts.map +1 -0
  678. package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts +18 -0
  679. package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts.map +1 -0
  680. package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts +15 -0
  681. package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts.map +1 -0
  682. package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +54 -0
  683. package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -0
  684. package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts +24 -0
  685. package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts.map +1 -0
  686. package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts +17 -0
  687. package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts.map +1 -0
  688. package/build/ts/surfaces/point-of-sale/api/print-api/print-api.d.ts +29 -0
  689. package/build/ts/surfaces/point-of-sale/api/print-api/print-api.d.ts.map +1 -0
  690. package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts +14 -0
  691. package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts.map +1 -0
  692. package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts +67 -0
  693. package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts.map +1 -0
  694. package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts +37 -0
  695. package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts.map +1 -0
  696. package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts +21 -0
  697. package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts.map +1 -0
  698. package/build/ts/surfaces/point-of-sale/api/standard/standard-api.d.ts +15 -0
  699. package/build/ts/surfaces/point-of-sale/api/standard/standard-api.d.ts.map +1 -0
  700. package/build/ts/surfaces/point-of-sale/api/storage-api/storage-api.d.ts +5 -0
  701. package/build/ts/surfaces/point-of-sale/api/storage-api/storage-api.d.ts.map +1 -0
  702. package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts +15 -0
  703. package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts.map +1 -0
  704. package/build/ts/surfaces/point-of-sale/api.d.ts +34 -0
  705. package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -0
  706. package/build/ts/surfaces/point-of-sale/components/Badge/Badge.doc.d.ts +4 -0
  707. package/build/ts/surfaces/point-of-sale/components/Badge/Badge.doc.d.ts.map +1 -0
  708. package/build/ts/surfaces/point-of-sale/components/Badge.d.ts +52 -0
  709. package/build/ts/surfaces/point-of-sale/components/Banner/Banner.doc.d.ts +4 -0
  710. package/build/ts/surfaces/point-of-sale/components/Banner/Banner.doc.d.ts.map +1 -0
  711. package/build/ts/surfaces/point-of-sale/components/Banner.d.ts +69 -0
  712. package/build/ts/surfaces/point-of-sale/components/Box/Box.doc.d.ts +4 -0
  713. package/build/ts/surfaces/point-of-sale/components/Box/Box.doc.d.ts.map +1 -0
  714. package/build/ts/surfaces/point-of-sale/components/Box.d.ts +138 -0
  715. package/build/ts/surfaces/point-of-sale/components/Button/Button.doc.d.ts +4 -0
  716. package/build/ts/surfaces/point-of-sale/components/Button/Button.doc.d.ts.map +1 -0
  717. package/build/ts/surfaces/point-of-sale/components/Button.d.ts +92 -0
  718. package/build/ts/surfaces/point-of-sale/components/Choice.d.ts +49 -0
  719. package/build/ts/surfaces/point-of-sale/components/ChoiceList/ChoiceList.doc.d.ts +4 -0
  720. package/build/ts/surfaces/point-of-sale/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -0
  721. package/build/ts/surfaces/point-of-sale/components/ChoiceList.d.ts +61 -0
  722. package/build/ts/surfaces/point-of-sale/components/Clickable/Clickable.doc.d.ts +4 -0
  723. package/build/ts/surfaces/point-of-sale/components/Clickable/Clickable.doc.d.ts.map +1 -0
  724. package/build/ts/surfaces/point-of-sale/components/Clickable.d.ts +59 -0
  725. package/build/ts/surfaces/point-of-sale/components/DateField/DateField.doc.d.ts +4 -0
  726. package/build/ts/surfaces/point-of-sale/components/DateField/DateField.doc.d.ts.map +1 -0
  727. package/build/ts/surfaces/point-of-sale/components/DateField.d.ts +71 -0
  728. package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.doc.d.ts +4 -0
  729. package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.doc.d.ts.map +1 -0
  730. package/build/ts/surfaces/point-of-sale/components/DatePicker.d.ts +62 -0
  731. package/build/ts/surfaces/point-of-sale/components/DateSpinner/DateSpinner.doc.d.ts +4 -0
  732. package/build/ts/surfaces/point-of-sale/components/DateSpinner/DateSpinner.doc.d.ts.map +1 -0
  733. package/build/ts/surfaces/point-of-sale/components/DateSpinner.d.ts +62 -0
  734. package/build/ts/surfaces/point-of-sale/components/Divider.d.ts +47 -0
  735. package/build/ts/surfaces/point-of-sale/components/EmailField/EmailField.doc.d.ts +4 -0
  736. package/build/ts/surfaces/point-of-sale/components/EmailField/EmailField.doc.d.ts.map +1 -0
  737. package/build/ts/surfaces/point-of-sale/components/EmailField.d.ts +78 -0
  738. package/build/ts/surfaces/point-of-sale/components/Heading/Heading.doc.d.ts +4 -0
  739. package/build/ts/surfaces/point-of-sale/components/Heading/Heading.doc.d.ts.map +1 -0
  740. package/build/ts/surfaces/point-of-sale/components/Heading.d.ts +49 -0
  741. package/build/ts/surfaces/point-of-sale/components/Icon/Icon.doc.d.ts +4 -0
  742. package/build/ts/surfaces/point-of-sale/components/Icon/Icon.doc.d.ts.map +1 -0
  743. package/build/ts/surfaces/point-of-sale/components/Icon.d.ts +173 -0
  744. package/build/ts/surfaces/point-of-sale/components/Image/Image.doc.d.ts +4 -0
  745. package/build/ts/surfaces/point-of-sale/components/Image/Image.doc.d.ts.map +1 -0
  746. package/build/ts/surfaces/point-of-sale/components/Image.d.ts +64 -0
  747. package/build/ts/surfaces/point-of-sale/components/Modal/Modal.doc.d.ts +4 -0
  748. package/build/ts/surfaces/point-of-sale/components/Modal/Modal.doc.d.ts.map +1 -0
  749. package/build/ts/surfaces/point-of-sale/components/Modal.d.ts +70 -0
  750. package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.doc.d.ts +4 -0
  751. package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.doc.d.ts.map +1 -0
  752. package/build/ts/surfaces/point-of-sale/components/NumberField.d.ts +150 -0
  753. package/build/ts/surfaces/point-of-sale/components/Page/Page.doc.d.ts +4 -0
  754. package/build/ts/surfaces/point-of-sale/components/Page/Page.doc.d.ts.map +1 -0
  755. package/build/ts/surfaces/point-of-sale/components/Page.d.ts +62 -0
  756. package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts +4 -0
  757. package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts.map +1 -0
  758. package/build/ts/surfaces/point-of-sale/components/PosBlock.d.ts +64 -0
  759. package/build/ts/surfaces/point-of-sale/components/QrCode.d.ts +43 -0
  760. package/build/ts/surfaces/point-of-sale/components/ScrollBox/ScrollBox.doc.d.ts +4 -0
  761. package/build/ts/surfaces/point-of-sale/components/ScrollBox/ScrollBox.doc.d.ts.map +1 -0
  762. package/build/ts/surfaces/point-of-sale/components/ScrollBox.d.ts +140 -0
  763. package/build/ts/surfaces/point-of-sale/components/SearchField/SearchField.doc.d.ts +4 -0
  764. package/build/ts/surfaces/point-of-sale/components/SearchField/SearchField.doc.d.ts.map +1 -0
  765. package/build/ts/surfaces/point-of-sale/components/SearchField.d.ts +62 -0
  766. package/build/ts/surfaces/point-of-sale/components/Section/Section.doc.d.ts +4 -0
  767. package/build/ts/surfaces/point-of-sale/components/Section/Section.doc.d.ts.map +1 -0
  768. package/build/ts/surfaces/point-of-sale/components/Section.d.ts +62 -0
  769. package/build/ts/surfaces/point-of-sale/components/Stack/Stack.doc.d.ts +4 -0
  770. package/build/ts/surfaces/point-of-sale/components/Stack/Stack.doc.d.ts.map +1 -0
  771. package/build/ts/surfaces/point-of-sale/components/Stack.d.ts +190 -0
  772. package/build/ts/surfaces/point-of-sale/components/Text/Text.doc.d.ts +4 -0
  773. package/build/ts/surfaces/point-of-sale/components/Text/Text.doc.d.ts.map +1 -0
  774. package/build/ts/surfaces/point-of-sale/components/Text.d.ts +54 -0
  775. package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.doc.d.ts +4 -0
  776. package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.doc.d.ts.map +1 -0
  777. package/build/ts/surfaces/point-of-sale/components/TextArea.d.ts +79 -0
  778. package/build/ts/surfaces/point-of-sale/components/TextField/TextField.doc.d.ts +4 -0
  779. package/build/ts/surfaces/point-of-sale/components/TextField/TextField.doc.d.ts.map +1 -0
  780. package/build/ts/surfaces/point-of-sale/components/TextField.d.ts +78 -0
  781. package/build/ts/surfaces/point-of-sale/components/Tile/Tile.doc.d.ts +4 -0
  782. package/build/ts/surfaces/point-of-sale/components/Tile/Tile.doc.d.ts.map +1 -0
  783. package/build/ts/surfaces/point-of-sale/components/Tile.d.ts +61 -0
  784. package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.doc.d.ts +4 -0
  785. package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.doc.d.ts.map +1 -0
  786. package/build/ts/surfaces/point-of-sale/components/TimeField.d.ts +65 -0
  787. package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.doc.d.ts +4 -0
  788. package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.doc.d.ts.map +1 -0
  789. package/build/ts/surfaces/point-of-sale/components/TimePicker.d.ts +62 -0
  790. package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +3109 -0
  791. package/build/ts/surfaces/point-of-sale/components/targets/ActionExtensionComponents.d.ts +2 -0
  792. package/build/ts/surfaces/point-of-sale/components/targets/ActionExtensionComponents.d.ts.map +1 -0
  793. package/build/ts/surfaces/point-of-sale/components/targets/BasicComponents.d.ts +3 -0
  794. package/build/ts/surfaces/point-of-sale/components/targets/BasicComponents.d.ts.map +1 -0
  795. package/build/ts/surfaces/point-of-sale/components/targets/BlockExtensionComponents.d.ts +2 -0
  796. package/build/ts/surfaces/point-of-sale/components/targets/BlockExtensionComponents.d.ts.map +1 -0
  797. package/build/ts/surfaces/point-of-sale/components/targets/ReceiptComponents.d.ts +2 -0
  798. package/build/ts/surfaces/point-of-sale/components/targets/ReceiptComponents.d.ts.map +1 -0
  799. package/build/ts/surfaces/point-of-sale/components/targets/SmartGridComponents.d.ts +2 -0
  800. package/build/ts/surfaces/point-of-sale/components/targets/SmartGridComponents.d.ts.map +1 -0
  801. package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts +3 -0
  802. package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts.map +1 -0
  803. package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts +3 -0
  804. package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts.map +1 -0
  805. package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts +8 -0
  806. package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts.map +1 -0
  807. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +7 -0
  808. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +1 -0
  809. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +16 -0
  810. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +1 -0
  811. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +10 -0
  812. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts.map +1 -0
  813. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +7 -0
  814. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -0
  815. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts +10 -0
  816. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts.map +1 -0
  817. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts +8 -0
  818. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts.map +1 -0
  819. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts +13 -0
  820. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -0
  821. package/build/ts/surfaces/point-of-sale/event/data.d.ts +9 -0
  822. package/build/ts/surfaces/point-of-sale/event/data.d.ts.map +1 -0
  823. package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts +9 -0
  824. package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts.map +1 -0
  825. package/build/ts/surfaces/point-of-sale/event/output.d.ts +2 -0
  826. package/build/ts/surfaces/point-of-sale/event/output.d.ts.map +1 -0
  827. package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +57 -0
  828. package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -0
  829. package/build/ts/surfaces/point-of-sale/globals.d.ts +5 -0
  830. package/build/ts/surfaces/point-of-sale/globals.d.ts.map +1 -0
  831. package/build/ts/surfaces/point-of-sale/targets/pos.cart-update.event.observe.d.ts +7 -0
  832. package/build/ts/surfaces/point-of-sale/targets/pos.cart.line-item-details.action.menu-item.render.d.ts +8 -0
  833. package/build/ts/surfaces/point-of-sale/targets/pos.cart.line-item-details.action.render.d.ts +34 -0
  834. package/build/ts/surfaces/point-of-sale/targets/pos.cash-tracking-session-complete.event.observe.d.ts +7 -0
  835. package/build/ts/surfaces/point-of-sale/targets/pos.cash-tracking-session-start.event.observe.d.ts +7 -0
  836. package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.action.menu-item.render.d.ts +8 -0
  837. package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.action.render.d.ts +34 -0
  838. package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.block.render.d.ts +20 -0
  839. package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.action.menu-item.render.d.ts +8 -0
  840. package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.action.render.d.ts +34 -0
  841. package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.block.render.d.ts +20 -0
  842. package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.action.menu-item.render.d.ts +8 -0
  843. package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.action.render.d.ts +34 -0
  844. package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.block.render.d.ts +20 -0
  845. package/build/ts/surfaces/point-of-sale/targets/pos.home.modal.render.d.ts +34 -0
  846. package/build/ts/surfaces/point-of-sale/targets/pos.home.tile.render.d.ts +8 -0
  847. package/build/ts/surfaces/point-of-sale/targets/pos.order-details.action.menu-item.render.d.ts +8 -0
  848. package/build/ts/surfaces/point-of-sale/targets/pos.order-details.action.render.d.ts +34 -0
  849. package/build/ts/surfaces/point-of-sale/targets/pos.order-details.block.render.d.ts +20 -0
  850. package/build/ts/surfaces/point-of-sale/targets/pos.product-details.action.menu-item.render.d.ts +8 -0
  851. package/build/ts/surfaces/point-of-sale/targets/pos.product-details.action.render.d.ts +34 -0
  852. package/build/ts/surfaces/point-of-sale/targets/pos.product-details.block.render.d.ts +20 -0
  853. package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.action.menu-item.render.d.ts +8 -0
  854. package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.action.render.d.ts +34 -0
  855. package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.block.render.d.ts +20 -0
  856. package/build/ts/surfaces/point-of-sale/targets/pos.receipt-footer.block.render.d.ts +10 -0
  857. package/build/ts/surfaces/point-of-sale/targets/pos.receipt-header.block.render.d.ts +10 -0
  858. package/build/ts/surfaces/point-of-sale/targets/pos.return.post.action.menu-item.render.d.ts +8 -0
  859. package/build/ts/surfaces/point-of-sale/targets/pos.return.post.action.render.d.ts +34 -0
  860. package/build/ts/surfaces/point-of-sale/targets/pos.return.post.block.render.d.ts +20 -0
  861. package/build/ts/surfaces/point-of-sale/targets/pos.transaction-complete.event.observe.d.ts +7 -0
  862. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +21 -0
  863. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts.map +1 -0
  864. package/build/ts/surfaces/point-of-sale/types/cart.d.ts +165 -0
  865. package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -0
  866. package/build/ts/surfaces/point-of-sale/types/country-code.d.ts +248 -0
  867. package/build/ts/surfaces/point-of-sale/types/country-code.d.ts.map +1 -0
  868. package/build/ts/surfaces/point-of-sale/types/device.d.ts +15 -0
  869. package/build/ts/surfaces/point-of-sale/types/device.d.ts.map +1 -0
  870. package/build/ts/surfaces/point-of-sale/types/direct-api-request-body.d.ts +14 -0
  871. package/build/ts/surfaces/point-of-sale/types/direct-api-request-body.d.ts.map +1 -0
  872. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts +5 -0
  873. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts.map +1 -0
  874. package/build/ts/surfaces/point-of-sale/types/money.d.ts +9 -0
  875. package/build/ts/surfaces/point-of-sale/types/money.d.ts.map +1 -0
  876. package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts +15 -0
  877. package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts.map +1 -0
  878. package/build/ts/surfaces/point-of-sale/types/order.d.ts +10 -0
  879. package/build/ts/surfaces/point-of-sale/types/order.d.ts.map +1 -0
  880. package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts +19 -0
  881. package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts.map +1 -0
  882. package/build/ts/surfaces/point-of-sale/types/payment.d.ts +7 -0
  883. package/build/ts/surfaces/point-of-sale/types/payment.d.ts.map +1 -0
  884. package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts +64 -0
  885. package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts.map +1 -0
  886. package/build/ts/surfaces/point-of-sale/types/product.d.ts +61 -0
  887. package/build/ts/surfaces/point-of-sale/types/product.d.ts.map +1 -0
  888. package/build/ts/surfaces/point-of-sale/types/session.d.ts +33 -0
  889. package/build/ts/surfaces/point-of-sale/types/session.d.ts.map +1 -0
  890. package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts +16 -0
  891. package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts.map +1 -0
  892. package/build/ts/surfaces/point-of-sale/types/storage.d.ts +45 -0
  893. package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -0
  894. package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts +13 -0
  895. package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts.map +1 -0
  896. package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts +2 -0
  897. package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts.map +1 -0
  898. package/build/ts/surfaces/point-of-sale.d.ts +5 -0
  899. package/build/ts/surfaces/point-of-sale.d.ts.map +1 -0
  900. package/build/tsconfig.tsbuildinfo +1 -1
  901. package/package.json +24 -3
  902. package/src/docs/shared/components/Avatar.ts +12 -0
  903. package/src/docs/shared/components/Badge.ts +1 -1
  904. package/src/docs/shared/components/Banner.ts +1 -1
  905. package/src/docs/shared/components/ButtonGroup.ts +11 -0
  906. package/src/docs/shared/components/Checkbox.ts +1 -1
  907. package/src/docs/shared/components/Chip.ts +12 -0
  908. package/src/docs/shared/components/Choice.ts +1 -1
  909. package/src/docs/shared/components/ChoiceList.ts +1 -1
  910. package/src/docs/shared/components/Clickable.ts +1 -1
  911. package/src/docs/shared/components/ClickableChip.ts +12 -0
  912. package/src/docs/shared/components/ColorField.ts +11 -0
  913. package/src/docs/shared/components/ColorPicker.ts +11 -0
  914. package/src/docs/shared/components/DateField.ts +11 -0
  915. package/src/docs/shared/components/DatePicker.ts +1 -1
  916. package/src/docs/shared/components/Details.ts +12 -0
  917. package/src/docs/shared/components/Divider.ts +1 -1
  918. package/src/docs/shared/components/EmailField.ts +2 -2
  919. package/src/docs/shared/components/Grid.ts +1 -1
  920. package/src/docs/shared/components/GridItem.ts +1 -1
  921. package/src/docs/shared/components/Map.ts +12 -0
  922. package/src/docs/shared/components/MapMarker.ts +12 -0
  923. package/src/docs/shared/components/Menu.ts +12 -0
  924. package/src/docs/shared/components/Modal.ts +12 -0
  925. package/src/docs/shared/components/MoneyField.ts +1 -1
  926. package/src/docs/shared/components/NumberField.ts +1 -1
  927. package/src/docs/shared/components/Option.ts +12 -0
  928. package/src/docs/shared/components/OptionGroup.ts +12 -0
  929. package/src/docs/shared/components/Paragraph.ts +1 -1
  930. package/src/docs/shared/components/PasswordField.ts +1 -1
  931. package/src/docs/shared/components/PhoneField.ts +11 -0
  932. package/src/docs/shared/components/Popover.ts +12 -0
  933. package/src/docs/shared/components/PressButton.ts +12 -0
  934. package/src/docs/shared/components/ProductThumbnail.ts +11 -0
  935. package/src/docs/shared/components/QueryContainer.ts +12 -0
  936. package/src/docs/shared/components/SearchField.ts +1 -1
  937. package/src/docs/shared/components/Section.ts +1 -1
  938. package/src/docs/shared/components/Select.ts +1 -1
  939. package/src/docs/shared/components/SkeletonParagraph.ts +12 -0
  940. package/src/docs/shared/components/Summary.ts +12 -0
  941. package/src/docs/shared/components/Switch.ts +1 -1
  942. package/src/docs/shared/components/Table.ts +1 -1
  943. package/src/docs/shared/components/TableBody.ts +1 -1
  944. package/src/docs/shared/components/TableCell.ts +1 -1
  945. package/src/docs/shared/components/TableHeader.ts +1 -1
  946. package/src/docs/shared/components/TableHeaderRow.ts +1 -1
  947. package/src/docs/shared/components/TableRow.ts +1 -1
  948. package/src/docs/shared/components/TextArea.ts +1 -1
  949. package/src/docs/shared/components/Thumbnail.ts +12 -0
  950. package/src/docs/shared/components/Tooltip.ts +12 -0
  951. package/src/docs/shared/components/URLField.ts +1 -1
  952. package/src/docs/shared/components/index.ts +6 -0
  953. package/src/docs/shared/docs-type.ts +6 -5
  954. package/src/index.ts +0 -1
  955. package/src/shared.ts +16 -1
  956. package/src/surfaces/admin/api/standard/standard.ts +7 -1
  957. package/src/surfaces/admin/api/standard/storage.ts +110 -0
  958. package/src/surfaces/admin/components/AdminAction.d.ts +1 -1
  959. package/src/surfaces/admin/components/AdminBlock.d.ts +1 -1
  960. package/src/surfaces/admin/components/AdminPrintAction/examples/default.tsx +1 -1
  961. package/src/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
  962. package/src/surfaces/admin/components/Avatar/examples/default.html +4 -0
  963. package/src/surfaces/admin/components/Avatar.d.ts +133 -0
  964. package/src/surfaces/admin/components/Badge.d.ts +22 -8
  965. package/src/surfaces/admin/components/Banner.d.ts +21 -16
  966. package/src/surfaces/admin/components/Box.d.ts +42 -26
  967. package/src/surfaces/admin/components/Button.d.ts +35 -20
  968. package/src/surfaces/admin/components/ButtonGroup/examples/default.html +4 -0
  969. package/src/surfaces/admin/components/ButtonGroup.d.ts +129 -0
  970. package/src/surfaces/admin/components/Checkbox.d.ts +22 -12
  971. package/src/surfaces/admin/components/Chip/examples/default.html +1 -0
  972. package/src/surfaces/admin/components/Chip.d.ts +125 -0
  973. package/src/surfaces/admin/components/Choice.d.ts +29 -8
  974. package/src/surfaces/admin/components/ChoiceList/examples/default.html +3 -3
  975. package/src/surfaces/admin/components/ChoiceList.d.ts +21 -16
  976. package/src/surfaces/admin/components/Clickable.d.ts +56 -39
  977. package/src/surfaces/admin/components/ClickableChip/examples/default.html +1 -0
  978. package/src/surfaces/admin/components/ClickableChip.d.ts +156 -0
  979. package/src/surfaces/admin/components/ColorField/examples/default.html +4 -0
  980. package/src/surfaces/admin/components/ColorField.d.ts +240 -0
  981. package/src/surfaces/admin/components/ColorPicker/examples/default.html +4 -0
  982. package/src/surfaces/admin/components/ColorPicker.d.ts +132 -0
  983. package/src/surfaces/admin/components/DateField/examples/default.html +1 -0
  984. package/src/surfaces/admin/components/DateField.d.ts +246 -0
  985. package/src/surfaces/admin/components/DatePicker.d.ts +18 -35
  986. package/src/surfaces/admin/components/Divider.d.ts +12 -5
  987. package/src/surfaces/admin/components/DropZone/examples/default.html +9 -0
  988. package/src/surfaces/admin/components/DropZone.d.ts +160 -0
  989. package/src/surfaces/admin/components/EmailField.d.ts +15 -15
  990. package/src/surfaces/admin/components/Form.d.ts +43 -35
  991. package/src/surfaces/admin/components/FunctionSettings.d.ts +183 -0
  992. package/src/surfaces/admin/components/Grid.d.ts +61 -33
  993. package/src/surfaces/admin/components/GridItem.d.ts +43 -26
  994. package/src/surfaces/admin/components/Heading.d.ts +17 -6
  995. package/src/surfaces/admin/components/Icon.d.ts +17 -6
  996. package/src/surfaces/admin/components/Image/examples/default.html +1 -1
  997. package/src/surfaces/admin/components/Image.d.ts +41 -42
  998. package/src/surfaces/admin/components/Link.d.ts +35 -29
  999. package/src/surfaces/admin/components/ListItem.d.ts +18 -6
  1000. package/src/surfaces/admin/components/Menu/examples/default.html +7 -0
  1001. package/src/surfaces/admin/components/Menu.d.ts +143 -0
  1002. package/src/surfaces/admin/components/Modal/examples/default.html +23 -0
  1003. package/src/surfaces/admin/components/Modal.d.ts +231 -0
  1004. package/src/surfaces/admin/components/MoneyField/examples/default.html +0 -1
  1005. package/src/surfaces/admin/components/MoneyField.d.ts +16 -20
  1006. package/src/surfaces/admin/components/NumberField.d.ts +15 -17
  1007. package/src/surfaces/admin/components/Option.d.ts +17 -5
  1008. package/src/surfaces/admin/components/OptionGroup.d.ts +18 -5
  1009. package/src/surfaces/admin/components/OrderedList.d.ts +18 -6
  1010. package/src/surfaces/admin/components/Page/examples/default.html +3 -3
  1011. package/src/surfaces/admin/components/Page.d.ts +42 -6
  1012. package/src/surfaces/admin/components/Paragraph.d.ts +18 -6
  1013. package/src/surfaces/admin/components/PasswordField.d.ts +15 -15
  1014. package/src/surfaces/admin/components/Popover/examples/default.html +8 -0
  1015. package/src/surfaces/admin/components/Popover.d.ts +379 -0
  1016. package/src/surfaces/admin/components/QueryContainer/examples/default.html +8 -0
  1017. package/src/surfaces/admin/components/QueryContainer.d.ts +106 -0
  1018. package/src/surfaces/admin/components/SearchField.d.ts +18 -16
  1019. package/src/surfaces/admin/components/Section.d.ts +17 -6
  1020. package/src/surfaces/admin/components/Select/examples/default.html +4 -0
  1021. package/src/surfaces/admin/components/Select.d.ts +40 -16
  1022. package/src/surfaces/admin/components/Spinner.d.ts +12 -2
  1023. package/src/surfaces/admin/components/Stack.d.ts +66 -43
  1024. package/src/surfaces/admin/components/StandardComponents.ts +11 -0
  1025. package/src/surfaces/admin/components/Switch.d.ts +16 -12
  1026. package/src/surfaces/admin/components/Table.d.ts +29 -17
  1027. package/src/surfaces/admin/components/TableBody.d.ts +18 -6
  1028. package/src/surfaces/admin/components/TableCell.d.ts +34 -7
  1029. package/src/surfaces/admin/components/TableHeader.d.ts +26 -7
  1030. package/src/surfaces/admin/components/TableHeaderRow.d.ts +19 -6
  1031. package/src/surfaces/admin/components/TableRow.d.ts +21 -7
  1032. package/src/surfaces/admin/components/Text.d.ts +19 -6
  1033. package/src/surfaces/admin/components/TextArea.d.ts +15 -15
  1034. package/src/surfaces/admin/components/TextField.d.ts +17 -15
  1035. package/src/surfaces/admin/components/Thumbnail/examples/default.html +4 -0
  1036. package/src/surfaces/admin/components/Thumbnail.d.ts +127 -0
  1037. package/src/surfaces/admin/components/Tooltip/examples/default.html +2 -0
  1038. package/src/surfaces/admin/components/Tooltip.d.ts +148 -0
  1039. package/src/surfaces/admin/components/URLField.d.ts +15 -15
  1040. package/src/surfaces/admin/components/UnorderedList.d.ts +18 -6
  1041. package/src/surfaces/admin/components/patterns/examples/appCard.html +30 -0
  1042. package/src/surfaces/admin/components/patterns/examples/calloutCard.html +35 -0
  1043. package/src/surfaces/admin/components/patterns/examples/details.html +228 -0
  1044. package/src/surfaces/admin/components/patterns/examples/details.jsx +255 -0
  1045. package/src/surfaces/admin/components/patterns/examples/emptyState.html +27 -0
  1046. package/src/surfaces/admin/components/patterns/examples/homepage.html +554 -0
  1047. package/src/surfaces/admin/components/patterns/examples/homepage.jsx +654 -0
  1048. package/src/surfaces/admin/components/patterns/examples/index.html +135 -0
  1049. package/src/surfaces/admin/components/patterns/examples/index.jsx +150 -0
  1050. package/src/surfaces/admin/components/patterns/examples/indexTable.html +127 -0
  1051. package/src/surfaces/admin/components/patterns/examples/interstitialNav.html +72 -0
  1052. package/src/surfaces/admin/components/patterns/examples/mediaCard.html +23 -0
  1053. package/src/surfaces/admin/components/patterns/examples/metricsCard.html +51 -0
  1054. package/src/surfaces/admin/components/patterns/examples/settings.html +194 -0
  1055. package/src/surfaces/admin/components/patterns/examples/settings.jsx +207 -0
  1056. package/src/surfaces/admin/components/patterns/examples/setupGuide.html +91 -0
  1057. package/src/surfaces/admin/components/patterns/index.ab.doc.ts +80 -0
  1058. package/src/surfaces/admin/components/shared.d.ts +1206 -741
  1059. package/src/surfaces/admin/components.d.ts +3736 -1805
  1060. package/src/surfaces/admin/docs-types.ts +8 -1
  1061. package/src/surfaces/checkout/api/address-autocomplete/standard.ts +1 -1
  1062. package/src/surfaces/checkout/api/cart-line/cart-line-item.ts +3 -4
  1063. package/src/surfaces/checkout/api/checkout/checkout.ts +12 -2
  1064. package/src/surfaces/checkout/api/order-confirmation/order-confirmation.ts +2 -2
  1065. package/src/surfaces/checkout/api/payment/payment-option-item.ts +3 -3
  1066. package/src/surfaces/checkout/api/pickup/pickup-location-item.ts +3 -4
  1067. package/src/surfaces/checkout/api/pickup/pickup-location-list.ts +2 -2
  1068. package/src/surfaces/checkout/api/pickup/pickup-point-list.ts +2 -2
  1069. package/src/surfaces/checkout/api/shared.ts +5 -0
  1070. package/src/surfaces/checkout/api/shipping/shipping-option-item.ts +3 -4
  1071. package/src/surfaces/checkout/api/shipping/shipping-option-list.ts +3 -4
  1072. package/src/surfaces/checkout/api/standard/standard.ts +65 -41
  1073. package/src/surfaces/checkout/components/Abbreviation.d.ts +21 -9
  1074. package/src/surfaces/checkout/components/Badge/examples/basic-badge.example.html +3 -0
  1075. package/src/surfaces/checkout/components/Badge.d.ts +51 -0
  1076. package/src/surfaces/checkout/components/Banner/examples/basic-banner.example.html +1 -2
  1077. package/src/surfaces/checkout/components/Banner.d.ts +55 -13
  1078. package/src/surfaces/checkout/components/Box.d.ts +20 -9
  1079. package/src/surfaces/checkout/components/Button.d.ts +44 -13
  1080. package/src/surfaces/checkout/components/Chat/examples/app-bridge-communication.example.tsx +58 -0
  1081. package/src/surfaces/checkout/components/Chat/examples/app-bridge-css.example.css +16 -0
  1082. package/src/surfaces/checkout/components/Chat/examples/app-bridge-resize.example.html +48 -0
  1083. package/src/surfaces/checkout/components/Chat/examples/app-bridge-resize.example.tsx +9 -0
  1084. package/src/surfaces/checkout/components/Chat/examples/include-app-bridge.example.html +3 -0
  1085. package/src/surfaces/checkout/components/Chat/examples/shopify-extension-toml.example.toml +5 -0
  1086. package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.html +1 -0
  1087. package/src/surfaces/checkout/components/Checkbox.d.ts +60 -0
  1088. package/src/surfaces/checkout/components/Clickable/examples/basic-clickable.example.html +3 -0
  1089. package/src/surfaces/checkout/components/Clickable.d.ts +89 -0
  1090. package/src/surfaces/checkout/components/ClipboardItem.d.ts +39 -9
  1091. package/src/surfaces/checkout/components/Details/examples/basic-details.example.html +6 -0
  1092. package/src/surfaces/checkout/components/Details.d.ts +85 -0
  1093. package/src/surfaces/checkout/components/Divider/examples/basic-divider.example.html +1 -0
  1094. package/src/surfaces/checkout/components/Divider.d.ts +46 -0
  1095. package/src/surfaces/checkout/components/DropZone/examples/basic-drop-zone.example.html +1 -0
  1096. package/src/surfaces/checkout/components/DropZone.d.ts +44 -9
  1097. package/src/surfaces/checkout/components/EmailField/examples/basic-email-field.example.html +1 -0
  1098. package/src/surfaces/checkout/components/EmailField.d.ts +92 -0
  1099. package/src/surfaces/checkout/components/Form/examples/basic-form.example.html +1 -1
  1100. package/src/surfaces/checkout/components/Form.d.ts +40 -12
  1101. package/src/surfaces/checkout/components/Grid/examples/basic-grid.example.html +11 -0
  1102. package/src/surfaces/checkout/components/Grid.d.ts +64 -0
  1103. package/src/surfaces/checkout/components/GridItem.d.ts +54 -0
  1104. package/src/surfaces/checkout/components/Heading.d.ts +20 -8
  1105. package/src/surfaces/checkout/components/Icon.d.ts +16 -8
  1106. package/src/surfaces/checkout/components/Image.d.ts +13 -7
  1107. package/src/surfaces/checkout/components/Link.d.ts +44 -13
  1108. package/src/surfaces/checkout/components/ListItem.d.ts +22 -10
  1109. package/src/surfaces/checkout/components/Map/examples/basic-map.example.html +3 -0
  1110. package/src/surfaces/checkout/components/Map.d.ts +78 -0
  1111. package/src/surfaces/checkout/components/MapMarker.d.ts +74 -0
  1112. package/src/surfaces/checkout/components/Modal/examples/basic-modal.example.html +20 -0
  1113. package/src/surfaces/checkout/components/Modal.d.ts +91 -0
  1114. package/src/surfaces/checkout/components/MoneyField/examples/basic-money-field.example.html +1 -0
  1115. package/src/surfaces/checkout/components/MoneyField.d.ts +80 -0
  1116. package/src/surfaces/checkout/components/OrderedList.d.ts +20 -8
  1117. package/src/surfaces/checkout/components/Paragraph.d.ts +20 -8
  1118. package/src/surfaces/checkout/components/PaymentIcon.d.ts +14 -7
  1119. package/src/surfaces/checkout/components/PhoneField/examples/basic-phone-field.example.html +1 -0
  1120. package/src/surfaces/checkout/components/PhoneField.d.ts +98 -0
  1121. package/src/surfaces/checkout/components/Popover/examples/basic-popover.example.html +7 -0
  1122. package/src/surfaces/checkout/components/Popover.d.ts +116 -0
  1123. package/src/surfaces/checkout/components/PressButton/examples/basic-press-button.example.html +1 -0
  1124. package/src/surfaces/checkout/components/PressButton.d.ts +79 -0
  1125. package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-product-thumbnail.example.html +4 -0
  1126. package/src/surfaces/checkout/components/ProductThumbnail.d.ts +41 -0
  1127. package/src/surfaces/checkout/components/Progress.d.ts +14 -4
  1128. package/src/surfaces/checkout/components/QRCode.d.ts +35 -8
  1129. package/src/surfaces/checkout/components/ScrollBox.d.ts +54 -0
  1130. package/src/surfaces/checkout/components/Section.d.ts +20 -8
  1131. package/src/surfaces/checkout/components/Sheet/examples/basic-sheet.example.html +5 -0
  1132. package/src/surfaces/checkout/components/Sheet.d.ts +100 -0
  1133. package/src/surfaces/checkout/components/SkeletonParagraph/examples/basic-skeleton-paragraph.example.html +2 -0
  1134. package/src/surfaces/checkout/components/SkeletonParagraph.d.ts +40 -0
  1135. package/src/surfaces/checkout/components/Spinner.d.ts +14 -4
  1136. package/src/surfaces/checkout/components/Stack/examples/basic-stack.example.html +4 -0
  1137. package/src/surfaces/checkout/components/Stack.d.ts +24 -13
  1138. package/src/surfaces/checkout/components/Summary.d.ts +35 -0
  1139. package/src/surfaces/checkout/components/Switch/examples/basic-switch.example.html +1 -0
  1140. package/src/surfaces/checkout/components/Switch.d.ts +60 -0
  1141. package/src/surfaces/checkout/components/Text/examples/basic-text.example.html +1 -1
  1142. package/src/surfaces/checkout/components/Text.d.ts +20 -8
  1143. package/src/surfaces/checkout/components/TextArea/examples/basic-text-area.example.html +5 -0
  1144. package/src/surfaces/checkout/components/TextArea.d.ts +85 -0
  1145. package/src/surfaces/checkout/components/TextField.d.ts +80 -20
  1146. package/src/surfaces/checkout/components/Time/examples/basic-time.example.html +1 -1
  1147. package/src/surfaces/checkout/components/Time.d.ts +21 -9
  1148. package/src/surfaces/checkout/components/Tooltip/examples/basic-tooltip.example.html +9 -0
  1149. package/src/surfaces/checkout/components/Tooltip.d.ts +48 -0
  1150. package/src/surfaces/checkout/components/UnorderedList.d.ts +20 -8
  1151. package/src/surfaces/checkout/components/components-shared.d.ts +1351 -227
  1152. package/src/surfaces/checkout/components/components.d.ts +2490 -539
  1153. package/src/surfaces/checkout/extension-targets.ts +8 -0
  1154. package/src/surfaces/checkout/preact/api.ts +4 -0
  1155. package/src/surfaces/checkout/preact/attributes.ts +2 -2
  1156. package/src/surfaces/checkout/preact/subscription.ts +10 -8
  1157. package/src/surfaces/checkout/preact/tests/buyer-identity.test.tsx +2 -3
  1158. package/src/surfaces/checkout/preact/tests/delivery-group-target.test.ts +2 -2
  1159. package/src/surfaces/checkout/preact/tests/mount.tsx +3 -3
  1160. package/src/surfaces/checkout/shared.ts +99 -31
  1161. package/src/surfaces/checkout.ts +4 -1
  1162. package/src/surfaces/customer-account/api/cart-line/cart-line-item.ts +2 -3
  1163. package/src/surfaces/customer-account/api/docs.ts +81 -26
  1164. package/src/surfaces/customer-account/api/order-status/order-status.ts +29 -42
  1165. package/src/surfaces/customer-account/api/shared.ts +56 -44
  1166. package/src/surfaces/customer-account/api/standard-api/standard-api.ts +42 -23
  1167. package/src/surfaces/customer-account/api.ts +8 -4
  1168. package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-preact.example.tsx +10 -0
  1169. package/src/surfaces/customer-account/components/Avatar.d.ts +92 -0
  1170. package/src/surfaces/customer-account/components/ButtonGroup/examples/basic-ButtonGroup-preact.example.tsx +22 -0
  1171. package/src/surfaces/customer-account/components/ButtonGroup.d.ts +39 -0
  1172. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-preact.example.tsx +8 -7
  1173. package/src/surfaces/customer-account/components/CustomerAccountAction.d.ts +16 -6
  1174. package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-preact.example.tsx +6 -4
  1175. package/src/surfaces/customer-account/components/ImageGroup.d.ts +5 -5
  1176. package/src/surfaces/customer-account/components/Menu/examples/basic-Menu-preact.example.tsx +24 -0
  1177. package/src/surfaces/customer-account/components/Menu.d.ts +25 -0
  1178. package/src/surfaces/customer-account/components/Page/examples/basic-Page-preact.example.tsx +10 -9
  1179. package/src/surfaces/customer-account/components/Page.d.ts +19 -6
  1180. package/src/surfaces/customer-account/components/Section/examples/basic-Section-preact.example.tsx +23 -0
  1181. package/src/surfaces/customer-account/components/Section.d.ts +46 -0
  1182. package/src/surfaces/customer-account/components/StandardComponents.ts +6 -2
  1183. package/src/surfaces/customer-account/components/shared.ts +29 -5
  1184. package/src/surfaces/customer-account/components.d.ts +124 -31
  1185. package/src/surfaces/customer-account/extension-targets.ts +15 -9
  1186. package/src/surfaces/customer-account/globals.ts +4 -4
  1187. package/src/surfaces/customer-account/preact/live-navigation.ts +1 -8
  1188. package/src/surfaces/customer-account/preact/navigation.ts +3 -10
  1189. package/src/surfaces/customer-account/preact/subscription.ts +7 -6
  1190. package/src/surfaces/point-of-sale/api/action-api/action-api.ts +15 -0
  1191. package/src/surfaces/point-of-sale/api/action-target-api/action-target-api.ts +7 -0
  1192. package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +239 -0
  1193. package/src/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.ts +11 -0
  1194. package/src/surfaces/point-of-sale/api/connectivity-api/connectivity-api.ts +25 -0
  1195. package/src/surfaces/point-of-sale/api/customer-api/customer-api.ts +10 -0
  1196. package/src/surfaces/point-of-sale/api/device-api/device-api.ts +21 -0
  1197. package/src/surfaces/point-of-sale/api/draft-order-api/draft-order-api.ts +20 -0
  1198. package/src/surfaces/point-of-sale/api/locale-api/locale-api.ts +16 -0
  1199. package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +63 -0
  1200. package/src/surfaces/point-of-sale/api/order-api/order-api.ts +26 -0
  1201. package/src/surfaces/point-of-sale/api/pin-pad-api.ts +23 -0
  1202. package/src/surfaces/point-of-sale/api/print-api/print-api.ts +29 -0
  1203. package/src/surfaces/point-of-sale/api/product-api/product-api.ts +14 -0
  1204. package/src/surfaces/point-of-sale/api/product-search-api/product-search-api.ts +94 -0
  1205. package/src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts +42 -0
  1206. package/src/surfaces/point-of-sale/api/session-api/session-api.ts +22 -0
  1207. package/src/surfaces/point-of-sale/api/standard/standard-api.ts +21 -0
  1208. package/src/surfaces/point-of-sale/api/storage-api/storage-api.ts +5 -0
  1209. package/src/surfaces/point-of-sale/api/toast-api/toast-api.ts +16 -0
  1210. package/src/surfaces/point-of-sale/api.ts +128 -0
  1211. package/src/surfaces/point-of-sale/components/Badge/examples/default.html +5 -0
  1212. package/src/surfaces/point-of-sale/components/Badge.d.ts +52 -0
  1213. package/src/surfaces/point-of-sale/components/Banner/examples/default.html +15 -0
  1214. package/src/surfaces/point-of-sale/components/Banner.d.ts +69 -0
  1215. package/src/surfaces/point-of-sale/components/Box/examples/default.html +3 -0
  1216. package/src/surfaces/point-of-sale/components/Box.d.ts +138 -0
  1217. package/src/surfaces/point-of-sale/components/Button/examples/default.html +4 -0
  1218. package/src/surfaces/point-of-sale/components/Button.d.ts +92 -0
  1219. package/src/surfaces/point-of-sale/components/Choice.d.ts +49 -0
  1220. package/src/surfaces/point-of-sale/components/ChoiceList/examples/default.html +5 -0
  1221. package/src/surfaces/point-of-sale/components/ChoiceList.d.ts +61 -0
  1222. package/src/surfaces/point-of-sale/components/Clickable/examples/default.html +3 -0
  1223. package/src/surfaces/point-of-sale/components/Clickable.d.ts +59 -0
  1224. package/src/surfaces/point-of-sale/components/DateField/examples/default.html +12 -0
  1225. package/src/surfaces/point-of-sale/components/DateField.d.ts +71 -0
  1226. package/src/surfaces/point-of-sale/components/DatePicker/examples/default.html +8 -0
  1227. package/src/surfaces/point-of-sale/components/DatePicker.d.ts +62 -0
  1228. package/src/surfaces/point-of-sale/components/DateSpinner/examples/default.html +8 -0
  1229. package/src/surfaces/point-of-sale/components/DateSpinner.d.ts +62 -0
  1230. package/src/surfaces/point-of-sale/components/Divider.d.ts +47 -0
  1231. package/src/surfaces/point-of-sale/components/EmailField/examples/default.html +12 -0
  1232. package/src/surfaces/point-of-sale/components/EmailField.d.ts +78 -0
  1233. package/src/surfaces/point-of-sale/components/Heading/examples/default.html +8 -0
  1234. package/src/surfaces/point-of-sale/components/Heading.d.ts +49 -0
  1235. package/src/surfaces/point-of-sale/components/Icon/examples/default.html +1 -0
  1236. package/src/surfaces/point-of-sale/components/Icon.d.ts +173 -0
  1237. package/src/surfaces/point-of-sale/components/Image/examples/default.html +1 -0
  1238. package/src/surfaces/point-of-sale/components/Image.d.ts +64 -0
  1239. package/src/surfaces/point-of-sale/components/Modal/examples/default.html +9 -0
  1240. package/src/surfaces/point-of-sale/components/Modal.d.ts +70 -0
  1241. package/src/surfaces/point-of-sale/components/NumberField/examples/default.html +2 -0
  1242. package/src/surfaces/point-of-sale/components/NumberField.d.ts +150 -0
  1243. package/src/surfaces/point-of-sale/components/Page/examples/default.html +6 -0
  1244. package/src/surfaces/point-of-sale/components/Page.d.ts +62 -0
  1245. package/src/surfaces/point-of-sale/components/PosBlock/examples/default.html +11 -0
  1246. package/src/surfaces/point-of-sale/components/PosBlock.d.ts +64 -0
  1247. package/src/surfaces/point-of-sale/components/QrCode.d.ts +43 -0
  1248. package/src/surfaces/point-of-sale/components/ScrollBox/examples/default.html +7 -0
  1249. package/src/surfaces/point-of-sale/components/ScrollBox.d.ts +140 -0
  1250. package/src/surfaces/point-of-sale/components/SearchField/examples/default.html +1 -0
  1251. package/src/surfaces/point-of-sale/components/SearchField.d.ts +62 -0
  1252. package/src/surfaces/point-of-sale/components/Section/examples/default.html +10 -0
  1253. package/src/surfaces/point-of-sale/components/Section.d.ts +62 -0
  1254. package/src/surfaces/point-of-sale/components/Stack/examples/default.html +4 -0
  1255. package/src/surfaces/point-of-sale/components/Stack.d.ts +190 -0
  1256. package/src/surfaces/point-of-sale/components/Text/examples/default.html +6 -0
  1257. package/src/surfaces/point-of-sale/components/Text.d.ts +54 -0
  1258. package/src/surfaces/point-of-sale/components/TextArea/examples/default.html +1 -0
  1259. package/src/surfaces/point-of-sale/components/TextArea.d.ts +79 -0
  1260. package/src/surfaces/point-of-sale/components/TextField/examples/default.html +3 -0
  1261. package/src/surfaces/point-of-sale/components/TextField.d.ts +78 -0
  1262. package/src/surfaces/point-of-sale/components/Tile/examples/default.html +5 -0
  1263. package/src/surfaces/point-of-sale/components/Tile.d.ts +61 -0
  1264. package/src/surfaces/point-of-sale/components/TimeField/examples/default.html +12 -0
  1265. package/src/surfaces/point-of-sale/components/TimeField.d.ts +65 -0
  1266. package/src/surfaces/point-of-sale/components/TimePicker/examples/default.html +4 -0
  1267. package/src/surfaces/point-of-sale/components/TimePicker.d.ts +62 -0
  1268. package/src/surfaces/point-of-sale/components/components-shared.d.ts +3109 -0
  1269. package/src/surfaces/point-of-sale/components/targets/ActionExtensionComponents.ts +1 -0
  1270. package/src/surfaces/point-of-sale/components/targets/BasicComponents.ts +3 -0
  1271. package/src/surfaces/point-of-sale/components/targets/BlockExtensionComponents.ts +18 -0
  1272. package/src/surfaces/point-of-sale/components/targets/ReceiptComponents.ts +1 -0
  1273. package/src/surfaces/point-of-sale/components/targets/SmartGridComponents.ts +1 -0
  1274. package/src/surfaces/point-of-sale/components/targets/StandardComponents.ts +36 -0
  1275. package/src/surfaces/point-of-sale/components.d.ts +6008 -0
  1276. package/src/surfaces/point-of-sale/event/data/BaseApi.ts +3 -0
  1277. package/src/surfaces/point-of-sale/event/data/BaseData.ts +8 -0
  1278. package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +7 -0
  1279. package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +17 -0
  1280. package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +10 -0
  1281. package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +7 -0
  1282. package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +10 -0
  1283. package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +8 -0
  1284. package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +21 -0
  1285. package/src/surfaces/point-of-sale/event/data.ts +16 -0
  1286. package/src/surfaces/point-of-sale/event/output/BaseOutput.ts +8 -0
  1287. package/src/surfaces/point-of-sale/event/output.ts +1 -0
  1288. package/src/surfaces/point-of-sale/extension-targets.ts +202 -0
  1289. package/src/surfaces/point-of-sale/globals.ts +6 -0
  1290. package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +21 -0
  1291. package/src/surfaces/point-of-sale/types/cart.ts +174 -0
  1292. package/src/surfaces/point-of-sale/types/country-code.ts +249 -0
  1293. package/src/surfaces/point-of-sale/types/device.ts +14 -0
  1294. package/src/surfaces/point-of-sale/types/direct-api-request-body.ts +13 -0
  1295. package/src/surfaces/point-of-sale/types/discount-allocation.ts +5 -0
  1296. package/src/surfaces/point-of-sale/types/money.ts +9 -0
  1297. package/src/surfaces/point-of-sale/types/multiple-resource-result.ts +14 -0
  1298. package/src/surfaces/point-of-sale/types/order.ts +12 -0
  1299. package/src/surfaces/point-of-sale/types/paginated-result.ts +20 -0
  1300. package/src/surfaces/point-of-sale/types/payment.ts +16 -0
  1301. package/src/surfaces/point-of-sale/types/pin-pad.ts +64 -0
  1302. package/src/surfaces/point-of-sale/types/product.ts +64 -0
  1303. package/src/surfaces/point-of-sale/types/session.ts +39 -0
  1304. package/src/surfaces/point-of-sale/types/shipping-line.ts +18 -0
  1305. package/src/surfaces/point-of-sale/types/storage.ts +73 -0
  1306. package/src/surfaces/point-of-sale/types/tax-line.ts +10 -0
  1307. package/src/surfaces/point-of-sale/types/transaction-type.ts +1 -0
  1308. package/src/surfaces/point-of-sale.ts +4 -0
  1309. package/src/surfaces/checkout/components/DropZone/examples/basic-dropzone.example.html +0 -1
  1310. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-js.example.ts +0 -15
  1311. package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-js.example.ts +0 -17
  1312. package/src/surfaces/customer-account/components/Page/examples/basic-Page-js.example.ts +0 -39
  1313. /package/src/surfaces/checkout/components/ClipboardItem/examples/{basic-clipboarditem.example.html → basic-clipboard-item.example.html} +0 -0
  1314. /package/src/surfaces/checkout/components/OrderedList/examples/{basic-orderedlist.example.html → basic-ordered-list.example.html} +0 -0
  1315. /package/src/surfaces/checkout/components/PaymentIcon/examples/{basic-paymenticon.example.html → basic-payment-icon.example.html} +0 -0
  1316. /package/src/surfaces/checkout/components/QRCode/examples/{basic-qrcode.example.html → basic-qr-code.example.html} +0 -0
  1317. /package/src/surfaces/checkout/components/TextField/examples/{basic-textfield.example.html → basic-text-field.example.html} +0 -0
  1318. /package/src/surfaces/checkout/components/UnorderedList/examples/{basic-unorderedlist.example.html → basic-unordered-list.example.html} +0 -0
@@ -0,0 +1,3109 @@
1
+ /** VERSION: undefined **/
2
+ /* eslint-disable import-x/extensions */
3
+ /* eslint-disable @typescript-eslint/no-namespace */
4
+ /* eslint-disable @typescript-eslint/member-ordering */
5
+ /* eslint-disable line-comment-position */
6
+ /* eslint-disable @typescript-eslint/unified-signatures */
7
+ /* eslint-disable no-var */
8
+ /* eslint-disable import-x/namespace */
9
+ /**
10
+ * TODO: Update `any` type here after this is resolved
11
+ * https://github.com/Shopify/ui-api-design/issues/139
12
+ */
13
+ export type ComponentChildren = any;
14
+ export type StringChildren = string;
15
+ export interface GlobalProps {
16
+ /**
17
+ * A unique identifier for the element.
18
+ */
19
+ id?: string;
20
+ }
21
+ export interface ActionSlots {
22
+ /**
23
+ * The primary action to perform, provided as a button or link type element.
24
+ */
25
+ primaryAction?: ComponentChildren;
26
+ /**
27
+ * The secondary actions to perform, provided as button or link type elements.
28
+ */
29
+ secondaryActions?: ComponentChildren;
30
+ }
31
+ export interface BaseOverlayProps {
32
+ /**
33
+ * Callback fired after the overlay is shown.
34
+ */
35
+ onShow?: (event: Event) => void;
36
+ /**
37
+ * Callback fired when the overlay is shown **after** any animations to show the overlay have finished.
38
+ */
39
+ onAfterShow?: (event: Event) => void;
40
+ /**
41
+ * Callback fired after the overlay is hidden.
42
+ */
43
+ onHide?: (event: Event) => void;
44
+ /**
45
+ * Callback fired when the overlay is hidden **after** any animations to hide the overlay have finished.
46
+ */
47
+ onAfterHide?: (event: Event) => void;
48
+ }
49
+ /**
50
+ * Shared interfaces for web component methods.
51
+ *
52
+ * Methods are required (not optional) because:
53
+ * - Components implementing this interface must provide all methods
54
+ * - Unlike props/attributes, methods are not rendered in HTML but are JavaScript APIs
55
+ * - Consumers expect these methods to be consistently available on all instances
56
+ */
57
+ export interface BaseOverlayMethods {
58
+ /**
59
+ * Method to show an overlay.
60
+ *
61
+ * @implementation This is a method to be called on the element and not a callback and should hence be camelCase
62
+ */
63
+ showOverlay: () => void;
64
+ /**
65
+ * Method to hide an overlay.
66
+ *
67
+ * @implementation This is a method to be called on the element and not a callback and should hence be camelCase
68
+ */
69
+ hideOverlay: () => void;
70
+ /**
71
+ * Method to toggle the visiblity of an overlay.
72
+ *
73
+ * @implementation This is a method to be called on the element and not a callback and should hence be camelCase
74
+ */
75
+ toggleOverlay: () => void;
76
+ }
77
+ export interface FocusEventProps {
78
+ /**
79
+ * Callback when the element loses focus.
80
+ *
81
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
82
+ */
83
+ onBlur?: (event: FocusEvent) => void;
84
+ /**
85
+ * Callback when the element receives focus.
86
+ *
87
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
88
+ */
89
+ onFocus?: (event: FocusEvent) => void;
90
+ }
91
+ export type SizeKeyword =
92
+ | 'small-500'
93
+ | 'small-400'
94
+ | 'small-300'
95
+ | 'small-200'
96
+ | 'small-100'
97
+ | 'small'
98
+ | 'base'
99
+ | 'large'
100
+ | 'large-100'
101
+ | 'large-200'
102
+ | 'large-300'
103
+ | 'large-400'
104
+ | 'large-500';
105
+ export type ColorKeyword = 'subdued' | 'base' | 'strong';
106
+ export type BackgroundColorKeyword = 'transparent' | ColorKeyword;
107
+ export interface BackgroundProps {
108
+ /**
109
+ * Adjust the background of the element.
110
+ *
111
+ * @default 'transparent'
112
+ */
113
+ background?: BackgroundColorKeyword;
114
+ }
115
+ /**
116
+ * Tone is a property for defining the color treatment of a component.
117
+ *
118
+ * A tone can apply a grouping of colors to a component. For example,
119
+ * critical may have a specific text color and background color.
120
+ *
121
+ * In some cases, like for Banner, the tone may also affect the semantic and accessibility treatment of the component.
122
+ *
123
+ * @default 'auto'
124
+ */
125
+ export type ToneKeyword =
126
+ | 'auto'
127
+ | 'neutral'
128
+ | 'info'
129
+ | 'success'
130
+ | 'caution'
131
+ | 'warning'
132
+ | 'critical'
133
+ | 'accent'
134
+ | 'custom';
135
+ declare const privateIconArray: readonly [
136
+ 'adjust',
137
+ 'affiliate',
138
+ 'airplane',
139
+ 'alert-bubble',
140
+ 'alert-circle',
141
+ 'alert-diamond',
142
+ 'alert-location',
143
+ 'alert-octagon',
144
+ 'alert-octagon-filled',
145
+ 'alert-triangle',
146
+ 'alert-triangle-filled',
147
+ 'app-extension',
148
+ 'apps',
149
+ 'archive',
150
+ 'arrow-down',
151
+ 'arrow-down-circle',
152
+ 'arrow-down-right',
153
+ 'arrow-left',
154
+ 'arrow-left-circle',
155
+ 'arrow-right',
156
+ 'arrow-right-circle',
157
+ 'arrow-up',
158
+ 'arrow-up-circle',
159
+ 'arrow-up-right',
160
+ 'arrows-in-horizontal',
161
+ 'arrows-out-horizontal',
162
+ 'attachment',
163
+ 'automation',
164
+ 'backspace',
165
+ 'bag',
166
+ 'bank',
167
+ 'barcode',
168
+ 'battery-low',
169
+ 'bill',
170
+ 'blank',
171
+ 'blog',
172
+ 'bolt',
173
+ 'bolt-filled',
174
+ 'book',
175
+ 'book-open',
176
+ 'bug',
177
+ 'bullet',
178
+ 'business-entity',
179
+ 'button',
180
+ 'button-press',
181
+ 'calculator',
182
+ 'calendar',
183
+ 'calendar-check',
184
+ 'calendar-compare',
185
+ 'calendar-list',
186
+ 'calendar-time',
187
+ 'camera',
188
+ 'camera-flip',
189
+ 'caret-down',
190
+ 'caret-left',
191
+ 'caret-right',
192
+ 'caret-up',
193
+ 'cart',
194
+ 'cart-abandoned',
195
+ 'cart-discount',
196
+ 'cart-down',
197
+ 'cart-filled',
198
+ 'cart-sale',
199
+ 'cart-send',
200
+ 'cart-up',
201
+ 'cash-dollar',
202
+ 'cash-euro',
203
+ 'cash-pound',
204
+ 'cash-rupee',
205
+ 'cash-yen',
206
+ 'catalog-product',
207
+ 'categories',
208
+ 'channels',
209
+ 'chart-cohort',
210
+ 'chart-donut',
211
+ 'chart-funnel',
212
+ 'chart-histogram-first',
213
+ 'chart-histogram-first-last',
214
+ 'chart-histogram-flat',
215
+ 'chart-histogram-full',
216
+ 'chart-histogram-growth',
217
+ 'chart-histogram-last',
218
+ 'chart-histogram-second-last',
219
+ 'chart-horizontal',
220
+ 'chart-line',
221
+ 'chart-popular',
222
+ 'chart-stacked',
223
+ 'chart-vertical',
224
+ 'chat',
225
+ 'chat-new',
226
+ 'chat-referral',
227
+ 'check',
228
+ 'check-circle',
229
+ 'check-circle-filled',
230
+ 'checkbox',
231
+ 'chevron-down',
232
+ 'chevron-down-circle',
233
+ 'chevron-left',
234
+ 'chevron-left-circle',
235
+ 'chevron-right',
236
+ 'chevron-right-circle',
237
+ 'chevron-up',
238
+ 'chevron-up-circle',
239
+ 'circle',
240
+ 'circle-dashed',
241
+ 'clipboard',
242
+ 'clipboard-check',
243
+ 'clipboard-checklist',
244
+ 'clock',
245
+ 'clock-revert',
246
+ 'code',
247
+ 'code-add',
248
+ 'collection',
249
+ 'collection-featured',
250
+ 'collection-list',
251
+ 'collection-reference',
252
+ 'color',
253
+ 'color-none',
254
+ 'compass',
255
+ 'complete',
256
+ 'compose',
257
+ 'confetti',
258
+ 'connect',
259
+ 'content',
260
+ 'contract',
261
+ 'corner-pill',
262
+ 'corner-round',
263
+ 'corner-square',
264
+ 'credit-card',
265
+ 'credit-card-cancel',
266
+ 'credit-card-percent',
267
+ 'credit-card-reader',
268
+ 'credit-card-reader-chip',
269
+ 'credit-card-reader-tap',
270
+ 'credit-card-secure',
271
+ 'credit-card-tap-chip',
272
+ 'crop',
273
+ 'currency-convert',
274
+ 'cursor',
275
+ 'cursor-banner',
276
+ 'cursor-option',
277
+ 'data-presentation',
278
+ 'data-table',
279
+ 'database',
280
+ 'database-add',
281
+ 'database-connect',
282
+ 'delete',
283
+ 'delivered',
284
+ 'delivery',
285
+ 'desktop',
286
+ 'disabled',
287
+ 'disabled-filled',
288
+ 'discount',
289
+ 'discount-add',
290
+ 'discount-automatic',
291
+ 'discount-code',
292
+ 'discount-remove',
293
+ 'dns-settings',
294
+ 'dock-floating',
295
+ 'dock-side',
296
+ 'domain',
297
+ 'domain-landing-page',
298
+ 'domain-new',
299
+ 'domain-redirect',
300
+ 'download',
301
+ 'drag-drop',
302
+ 'drag-handle',
303
+ 'drawer',
304
+ 'duplicate',
305
+ 'edit',
306
+ 'email',
307
+ 'email-follow-up',
308
+ 'email-newsletter',
309
+ 'empty',
310
+ 'enabled',
311
+ 'enter',
312
+ 'envelope',
313
+ 'envelope-soft-pack',
314
+ 'eraser',
315
+ 'exchange',
316
+ 'exit',
317
+ 'export',
318
+ 'external',
319
+ 'eye-check-mark',
320
+ 'eye-dropper',
321
+ 'eye-dropper-list',
322
+ 'eye-first',
323
+ 'eyeglasses',
324
+ 'fav',
325
+ 'favicon',
326
+ 'file',
327
+ 'file-list',
328
+ 'filter',
329
+ 'filter-active',
330
+ 'flag',
331
+ 'flip-horizontal',
332
+ 'flip-vertical',
333
+ 'flower',
334
+ 'folder',
335
+ 'folder-add',
336
+ 'folder-down',
337
+ 'folder-remove',
338
+ 'folder-up',
339
+ 'food',
340
+ 'foreground',
341
+ 'forklift',
342
+ 'forms',
343
+ 'games',
344
+ 'gauge',
345
+ 'geolocation',
346
+ 'gift',
347
+ 'gift-card',
348
+ 'git-branch',
349
+ 'git-commit',
350
+ 'git-repository',
351
+ 'globe',
352
+ 'globe-asia',
353
+ 'globe-europe',
354
+ 'globe-lines',
355
+ 'globe-list',
356
+ 'graduation-hat',
357
+ 'grid',
358
+ 'hashtag',
359
+ 'hashtag-decimal',
360
+ 'hashtag-list',
361
+ 'heart',
362
+ 'hide',
363
+ 'hide-filled',
364
+ 'home',
365
+ 'home-filled',
366
+ 'icons',
367
+ 'identity-card',
368
+ 'image',
369
+ 'image-add',
370
+ 'image-alt',
371
+ 'image-explore',
372
+ 'image-magic',
373
+ 'image-none',
374
+ 'image-with-text-overlay',
375
+ 'images',
376
+ 'import',
377
+ 'in-progress',
378
+ 'incentive',
379
+ 'incoming',
380
+ 'incomplete',
381
+ 'info',
382
+ 'info-filled',
383
+ 'inheritance',
384
+ 'inventory',
385
+ 'inventory-edit',
386
+ 'inventory-list',
387
+ 'inventory-transfer',
388
+ 'inventory-updated',
389
+ 'iq',
390
+ 'key',
391
+ 'keyboard',
392
+ 'keyboard-filled',
393
+ 'keyboard-hide',
394
+ 'keypad',
395
+ 'label-printer',
396
+ 'language',
397
+ 'language-translate',
398
+ 'layout-block',
399
+ 'layout-buy-button',
400
+ 'layout-buy-button-horizontal',
401
+ 'layout-buy-button-vertical',
402
+ 'layout-column-1',
403
+ 'layout-columns-2',
404
+ 'layout-columns-3',
405
+ 'layout-footer',
406
+ 'layout-header',
407
+ 'layout-logo-block',
408
+ 'layout-popup',
409
+ 'layout-rows-2',
410
+ 'layout-section',
411
+ 'layout-sidebar-left',
412
+ 'layout-sidebar-right',
413
+ 'lightbulb',
414
+ 'link',
415
+ 'link-list',
416
+ 'list-bulleted',
417
+ 'list-bulleted-filled',
418
+ 'list-numbered',
419
+ 'live',
420
+ 'live-critical',
421
+ 'live-none',
422
+ 'location',
423
+ 'location-none',
424
+ 'lock',
425
+ 'map',
426
+ 'markets',
427
+ 'markets-euro',
428
+ 'markets-rupee',
429
+ 'markets-yen',
430
+ 'maximize',
431
+ 'measurement-size',
432
+ 'measurement-size-list',
433
+ 'measurement-volume',
434
+ 'measurement-volume-list',
435
+ 'measurement-weight',
436
+ 'measurement-weight-list',
437
+ 'media-receiver',
438
+ 'megaphone',
439
+ 'mention',
440
+ 'menu',
441
+ 'menu-filled',
442
+ 'menu-horizontal',
443
+ 'menu-vertical',
444
+ 'merge',
445
+ 'metafields',
446
+ 'metaobject',
447
+ 'metaobject-list',
448
+ 'metaobject-reference',
449
+ 'microphone',
450
+ 'minimize',
451
+ 'minus',
452
+ 'minus-circle',
453
+ 'mobile',
454
+ 'money',
455
+ 'money-none',
456
+ 'money-split',
457
+ 'moon',
458
+ 'nature',
459
+ 'note',
460
+ 'note-add',
461
+ 'notification',
462
+ 'order',
463
+ 'order-batches',
464
+ 'order-draft',
465
+ 'order-filled',
466
+ 'order-first',
467
+ 'order-fulfilled',
468
+ 'order-repeat',
469
+ 'order-unfulfilled',
470
+ 'orders-status',
471
+ 'organization',
472
+ 'outdent',
473
+ 'outgoing',
474
+ 'package',
475
+ 'package-cancel',
476
+ 'package-fulfilled',
477
+ 'package-on-hold',
478
+ 'package-reassign',
479
+ 'package-returned',
480
+ 'page',
481
+ 'page-add',
482
+ 'page-attachment',
483
+ 'page-clock',
484
+ 'page-down',
485
+ 'page-heart',
486
+ 'page-list',
487
+ 'page-reference',
488
+ 'page-remove',
489
+ 'page-report',
490
+ 'page-up',
491
+ 'pagination-end',
492
+ 'pagination-start',
493
+ 'paint-brush-flat',
494
+ 'paint-brush-round',
495
+ 'paper-check',
496
+ 'partially-complete',
497
+ 'passkey',
498
+ 'paste',
499
+ 'pause-circle',
500
+ 'payment',
501
+ 'payment-capture',
502
+ 'payout',
503
+ 'payout-dollar',
504
+ 'payout-euro',
505
+ 'payout-pound',
506
+ 'payout-rupee',
507
+ 'payout-yen',
508
+ 'person',
509
+ 'person-add',
510
+ 'person-exit',
511
+ 'person-filled',
512
+ 'person-list',
513
+ 'person-lock',
514
+ 'person-remove',
515
+ 'person-segment',
516
+ 'personalized-text',
517
+ 'phablet',
518
+ 'phone',
519
+ 'phone-in',
520
+ 'phone-out',
521
+ 'pin',
522
+ 'pin-remove',
523
+ 'plan',
524
+ 'play',
525
+ 'play-circle',
526
+ 'plus',
527
+ 'plus-circle',
528
+ 'plus-circle-down',
529
+ 'plus-circle-filled',
530
+ 'plus-circle-up',
531
+ 'point-of-sale',
532
+ 'point-of-sale-register',
533
+ 'price-list',
534
+ 'print',
535
+ 'product',
536
+ 'product-add',
537
+ 'product-cost',
538
+ 'product-filled',
539
+ 'product-list',
540
+ 'product-reference',
541
+ 'product-remove',
542
+ 'product-return',
543
+ 'product-unavailable',
544
+ 'profile',
545
+ 'profile-filled',
546
+ 'question-circle',
547
+ 'question-circle-filled',
548
+ 'receipt',
549
+ 'receipt-dollar',
550
+ 'receipt-euro',
551
+ 'receipt-folded',
552
+ 'receipt-paid',
553
+ 'receipt-pound',
554
+ 'receipt-refund',
555
+ 'receipt-rupee',
556
+ 'receipt-yen',
557
+ 'receivables',
558
+ 'redo',
559
+ 'referral-code',
560
+ 'refresh',
561
+ 'remove-background',
562
+ 'reorder',
563
+ 'replace',
564
+ 'replay',
565
+ 'reset',
566
+ 'return',
567
+ 'reward',
568
+ 'rocket',
569
+ 'rotate-left',
570
+ 'rotate-right',
571
+ 'sandbox',
572
+ 'save',
573
+ 'savings',
574
+ 'scan-qr-code',
575
+ 'search',
576
+ 'search-add',
577
+ 'search-list',
578
+ 'search-recent',
579
+ 'search-resource',
580
+ 'select',
581
+ 'send',
582
+ 'settings',
583
+ 'share',
584
+ 'shield-check-mark',
585
+ 'shield-none',
586
+ 'shield-pending',
587
+ 'shield-person',
588
+ 'shipping-label',
589
+ 'shipping-label-cancel',
590
+ 'shopcodes',
591
+ 'slideshow',
592
+ 'smiley-happy',
593
+ 'smiley-joy',
594
+ 'smiley-neutral',
595
+ 'smiley-sad',
596
+ 'social-ad',
597
+ 'social-post',
598
+ 'sort',
599
+ 'sort-ascending',
600
+ 'sort-descending',
601
+ 'sound',
602
+ 'sports',
603
+ 'star',
604
+ 'star-circle',
605
+ 'star-filled',
606
+ 'star-half',
607
+ 'star-list',
608
+ 'status',
609
+ 'status-active',
610
+ 'stop-circle',
611
+ 'store',
612
+ 'store-import',
613
+ 'store-managed',
614
+ 'store-online',
615
+ 'sun',
616
+ 'table',
617
+ 'table-masonry',
618
+ 'tablet',
619
+ 'target',
620
+ 'tax',
621
+ 'team',
622
+ 'text',
623
+ 'text-align-center',
624
+ 'text-align-left',
625
+ 'text-align-right',
626
+ 'text-block',
627
+ 'text-bold',
628
+ 'text-color',
629
+ 'text-font',
630
+ 'text-font-list',
631
+ 'text-grammar',
632
+ 'text-in-columns',
633
+ 'text-in-rows',
634
+ 'text-indent',
635
+ 'text-indent-remove',
636
+ 'text-italic',
637
+ 'text-quote',
638
+ 'text-title',
639
+ 'text-underline',
640
+ 'text-with-image',
641
+ 'theme',
642
+ 'theme-edit',
643
+ 'theme-store',
644
+ 'theme-template',
645
+ 'three-d-environment',
646
+ 'thumbs-down',
647
+ 'thumbs-up',
648
+ 'tip-jar',
649
+ 'toggle-off',
650
+ 'toggle-on',
651
+ 'transaction',
652
+ 'transaction-fee-add',
653
+ 'transaction-fee-dollar',
654
+ 'transaction-fee-euro',
655
+ 'transaction-fee-pound',
656
+ 'transaction-fee-rupee',
657
+ 'transaction-fee-yen',
658
+ 'transfer',
659
+ 'transfer-in',
660
+ 'transfer-internal',
661
+ 'transfer-out',
662
+ 'truck',
663
+ 'undo',
664
+ 'unknown-device',
665
+ 'unlock',
666
+ 'upload',
667
+ 'variant',
668
+ 'view',
669
+ 'viewport-narrow',
670
+ 'viewport-short',
671
+ 'viewport-tall',
672
+ 'viewport-wide',
673
+ 'wallet',
674
+ 'wand',
675
+ 'watch',
676
+ 'wifi',
677
+ 'work',
678
+ 'work-list',
679
+ 'wrench',
680
+ 'x',
681
+ 'x-circle',
682
+ 'x-circle-filled',
683
+ ];
684
+ export type IconType = (typeof privateIconArray)[number];
685
+ /**
686
+ * Like `Extract`, but ensures that the extracted type is a strict subtype of the input type.
687
+ */
688
+ export type ExtractStrict<T, U extends T> = Extract<T, U>;
689
+ export type MaybeAllValuesShorthandProperty<T extends string> =
690
+ | T
691
+ | `${T} ${T}`
692
+ | `${T} ${T} ${T}`
693
+ | `${T} ${T} ${T} ${T}`;
694
+ export type MaybeTwoValuesShorthandProperty<T extends string> = T | `${T} ${T}`;
695
+ export type MaybeResponsive<T> = T | `@container${string}`;
696
+ /**
697
+ * Prevents widening string literal types in a union to `string`.
698
+ * @example
699
+ * type PropName = 'foo' | 'bar' | string
700
+ * // ^? string
701
+ * type PropName = 'foo' | 'bar' | (string & {})
702
+ * // ^? 'foo' | 'bar' | (string & {})
703
+ */
704
+ export type AnyString = string & {};
705
+ /**
706
+ * This is purely to give the ability
707
+ * to have a space or not in the string literal types.
708
+ *
709
+ * For example in the `aspectRatio` property, `16/9` and `16 / 9` are both valid.
710
+ */
711
+ export type optionalSpace = '' | ' ';
712
+ export interface BadgeProps extends GlobalProps {
713
+ /**
714
+ * The content of the Badge.
715
+ */
716
+ children?: ComponentChildren;
717
+ /**
718
+ * Sets the tone of the Badge, based on the intention of the information being conveyed.
719
+ *
720
+ * @default 'auto'
721
+ */
722
+ tone?: ToneKeyword;
723
+ /**
724
+ * Modify the color to be more or less intense.
725
+ *
726
+ * @default 'base'
727
+ */
728
+ color?: ColorKeyword;
729
+ /**
730
+ * The type of icon to be displayed in the badge.
731
+ *
732
+ * @default ''
733
+ */
734
+ icon?: IconType | AnyString;
735
+ /**
736
+ * The position of the icon in relation to the text.
737
+ */
738
+ iconPosition?: 'start' | 'end';
739
+ /**
740
+ * Adjusts the size.
741
+ *
742
+ * @default 'base'
743
+ */
744
+ size?: SizeKeyword;
745
+ }
746
+ export interface BannerProps extends GlobalProps, ActionSlots {
747
+ /**
748
+ * The title of the banner.
749
+ *
750
+ * @default ''
751
+ */
752
+ heading?: string;
753
+ /**
754
+ * The content of the Banner.
755
+ */
756
+ children?: ComponentChildren;
757
+ /**
758
+ * Sets the tone of the Banner, based on the intention of the information being conveyed.
759
+ *
760
+ * The banner is a live region and the type of status will be dictated by the Tone selected.
761
+ *
762
+ * - `critical` creates an [assertive live region](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/alert_role) that is announced by screen readers immediately.
763
+ * - `neutral`, `info`, `success`, `warning` and `caution` creates an [informative live region](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/status_role) that is announced by screen readers after the current message.
764
+ *
765
+ * @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions
766
+ * @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/alert_role
767
+ * @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/status_role
768
+ *
769
+ * @default 'auto'
770
+ */
771
+ tone?: ToneKeyword;
772
+ /**
773
+ * Makes the content collapsible.
774
+ * A collapsible banner will conceal child elements initially, but allow the user to expand the banner to see them.
775
+ *
776
+ * @default false
777
+ */
778
+ collapsible?: boolean;
779
+ /**
780
+ * Determines whether the close button of the banner is present.
781
+ *
782
+ * When the close button is pressed, the `dismiss` event will fire,
783
+ * then `hidden` will be true,
784
+ * any animation will complete,
785
+ * and the `afterhide` event will fire.
786
+ *
787
+ * @default false
788
+ */
789
+ dismissible?: boolean;
790
+ /**
791
+ * Event handler when the banner is dismissed by the user.
792
+ *
793
+ * This does not fire when setting `hidden` manually.
794
+ *
795
+ * The `hidden` property will be `false` when this event fires.
796
+ */
797
+ onDismiss?: (event: Event) => void;
798
+ /**
799
+ * Event handler when the banner has fully hidden.
800
+ *
801
+ * The `hidden` property will be `true` when this event fires.
802
+ *
803
+ * @implementation If implementations animate the hiding of the banner,
804
+ * this event must fire after the banner has fully hidden.
805
+ * We can add an `onHide` event in future if we want to provide a hook for the start of the animation.
806
+ */
807
+ onAfterHide?: (event: Event) => void;
808
+ /**
809
+ * Determines whether the banner is hidden.
810
+ *
811
+ * If this property is being set on each framework render (as in 'controlled' usage),
812
+ * and the banner is `dismissible`,
813
+ * ensure you update app state for this property when the `dismiss` event fires.
814
+ *
815
+ * If the banner is not `dismissible`, it can still be hidden by setting this property.
816
+ *
817
+ * @default false
818
+ */
819
+ hidden?: boolean;
820
+ }
821
+ export interface DisplayProps {
822
+ /**
823
+ * Sets the outer 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).
824
+ *
825
+ * - `auto`: the component’s initial value. The actual value depends on the component and context.
826
+ * - `none`: hides the component from display and removes it from the accessibility tree, making it invisible to screen readers.
827
+ *
828
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/display
829
+ * @default 'auto'
830
+ */
831
+ display?: MaybeResponsive<'auto' | 'none'>;
832
+ }
833
+ export interface AccessibilityRoleProps {
834
+ /**
835
+ * Sets the semantic meaning of the component’s content. When set,
836
+ * the role will be used by assistive technologies to help users
837
+ * navigate the page.
838
+ *
839
+ * @implementation Although, in HTML hosts, this property changes the element used,
840
+ * changing this property must not impact the visual styling of inside or outside of the box.
841
+ *
842
+ * @default 'generic'
843
+ */
844
+ accessibilityRole?: AccessibilityRole;
845
+ }
846
+ export type AccessibilityRole =
847
+ /**
848
+ * Used to indicate the primary content.
849
+ *
850
+ * In an HTML host, `main` will render a `<main>` element.
851
+ * Learn more about the [`<main>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/main_role) in the MDN web docs.
852
+ */
853
+ | 'main'
854
+ /**
855
+ * Used to indicate the component is a header.
856
+ *
857
+ * In an HTML host `header` will render a `<header>` element.
858
+ * Learn more about the [`<header>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/main_role) in the MDN web docs.
859
+ */
860
+ | 'header'
861
+ /**
862
+ * Used to display information such as copyright information, navigation links, and privacy statements.
863
+ *
864
+ * In an HTML host `footer` will render a `<footer>` element.
865
+ * Learn more about the [`<footer>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/contentinfo_role) in the MDN web docs.
866
+ */
867
+ | 'footer'
868
+ /**
869
+ * Used to indicate a generic section.
870
+ * Sections should always have a `Heading` or an accessible name provided in the `accessibilityLabel` property.
871
+ *
872
+ * In an HTML host `section` will render a `<section>` element.
873
+ * Learn more about the [`<section>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/region_role) in the MDN web docs.
874
+ *
875
+ */
876
+ | 'section'
877
+ /**
878
+ * Used to designate a supporting section that relates to the main content.
879
+ *
880
+ * In an HTML host `aside` will render an `<aside>` element.
881
+ * Learn more about the [`<aside>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/complementary_role) in the MDN web docs.
882
+ */
883
+ | 'aside'
884
+ /**
885
+ * Used to identify major groups of links used for navigating.
886
+ *
887
+ * In an HTML host `navigation` will render a `<nav>` element.
888
+ * Learn more about the [`<nav>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/navigation_role) in the MDN web docs.
889
+ */
890
+ | 'navigation'
891
+ /**
892
+ * Used to identify a list of ordered items.
893
+ *
894
+ * In an HTML host `ordered-list` will render a `<ol>` element.
895
+ * Learn more about the [`<ol>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/list_role) in the MDN web docs.
896
+ */
897
+ | 'ordered-list'
898
+ /**
899
+ * Used to identify an item inside a list of items.
900
+ *
901
+ * In an HTML host `list-item` will render a `<li>` element.
902
+ * Learn more about the [`<li>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listitem_role) in the MDN web docs.
903
+ */
904
+ | 'list-item'
905
+ /**
906
+ * Used to indicates the component acts as a divider that separates and distinguishes sections of content in a list of items.
907
+ *
908
+ * In an HTML host `list-item-separator` will render as `<li role="separator">`.
909
+ * Learn more about the [`<li>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li) and the [`separator` role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/separator_role) in the MDN web docs.
910
+ */
911
+ | 'list-item-separator'
912
+ /**
913
+ * Used to identify a list of unordered items.
914
+ *
915
+ * In an HTML host `unordered-list` will render a `<ul>` element.
916
+ * Learn more about the [`<ul>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul) and its [implicit role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/list_role) in the MDN web docs.
917
+ */
918
+ | 'unordered-list'
919
+ /**
920
+ * Used to indicates the component acts as a divider that separates and distinguishes sections of content.
921
+ *
922
+ * In an HTML host `separator` will render as `<div role="separator">`.
923
+ * Learn more about the [`separator` role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/separator_role) in the MDN web docs.
924
+ */
925
+ | 'separator'
926
+ /**
927
+ * Used to define a live region containing advisory information for the user that is not important enough to be an alert.
928
+ *
929
+ * In an HTML host `status` will render as `<div role="status">`.
930
+ * Learn more about the [`status` role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/status_role) in the MDN web docs.
931
+ */
932
+ | 'status'
933
+ /**
934
+ * Used for important, and usually time-sensitive, information.
935
+ *
936
+ * In an HTML host `alert` will render as `<div role="alert">`.
937
+ * Learn more about the [`alert` role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/alert_role) in the MDN web docs.
938
+ */
939
+ | 'alert'
940
+ /**
941
+ * Used to create a nameless container element which has no semantic meaning on its own.
942
+ *
943
+ * In an HTML host `generic'` will render a `<div>` element.
944
+ * Learn more about the [`generic` role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/generic_role) in the MDN web docs.
945
+ */
946
+ | 'generic'
947
+ /**
948
+ * Used to strip the semantic meaning of an element, but leave the visual styling intact.
949
+ *
950
+ * Synonym for `none`
951
+ * Learn more about the [`presentation` role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/presentation_role) in the MDN web docs.
952
+ */
953
+ | 'presentation'
954
+ /**
955
+ * Used to strip the semantic meaning of an element, but leave the visual styling intact.
956
+ *
957
+ * Synonym for `presentation`
958
+ * Learn more about the [`none` role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/none_role) in the MDN web docs.
959
+ */
960
+ | 'none';
961
+ export interface AccessibilityVisibilityProps {
962
+ /**
963
+ * Changes the visibility of the element.
964
+ *
965
+ * - `visible`: the element is visible to all users.
966
+ * - `hidden`: the element is removed from the accessibility tree but remains visible.
967
+ * - `exclusive`: the element is visually hidden but remains in the accessibility tree.
968
+ *
969
+ * @default 'visible'
970
+ */
971
+ accessibilityVisibility?: 'visible' | 'hidden' | 'exclusive';
972
+ }
973
+ export interface LabelAccessibilityVisibilityProps {
974
+ /**
975
+ * Changes the visibility of the component's label.
976
+ *
977
+ * - `visible`: the label is visible to all users.
978
+ * - `exclusive`: the label is visually hidden but remains in the accessibility tree.
979
+ *
980
+ * @default 'visible'
981
+ */
982
+ labelAccessibilityVisibility?: ExtractStrict<
983
+ AccessibilityVisibilityProps['accessibilityVisibility'],
984
+ 'visible' | 'exclusive'
985
+ >;
986
+ }
987
+ export type PaddingKeyword = SizeKeyword | 'none';
988
+ export interface PaddingProps {
989
+ /**
990
+ * Adjust the padding of all edges.
991
+ *
992
+ * [1-to-4-value syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box) is
993
+ * supported. Note that, contrary to the CSS, it uses flow-relative values and the order is:
994
+ *
995
+ * - 4 values: `block-start inline-end block-end inline-start`
996
+ * - 3 values: `block-start inline block-end`
997
+ * - 2 values: `block inline`
998
+ *
999
+ * For example:
1000
+ * - `large` means block-start, inline-end, block-end and inline-start paddings are `large`.
1001
+ * - `large none` means block-start and block-end paddings are `large`, inline-start and inline-end paddings are `none`.
1002
+ * - `large none large` means block-start padding is `large`, inline-end padding is `none`, block-end padding is `large` and inline-start padding is `none`.
1003
+ * - `large none large small` means block-start padding is `large`, inline-end padding is `none`, block-end padding is `large` and inline-start padding is `small`.
1004
+ *
1005
+ * A padding value of `auto` will use the default padding for the closest container that has had its usual padding removed.
1006
+ *
1007
+ * @default 'none'
1008
+ */
1009
+ padding?: MaybeResponsive<MaybeAllValuesShorthandProperty<PaddingKeyword>>;
1010
+ /**
1011
+ * Adjust the block-padding.
1012
+ *
1013
+ * - `large none` means block-start padding is `large`, block-end padding is `none`.
1014
+ *
1015
+ * This overrides the block value of `padding`.
1016
+ *
1017
+ * @default '' - meaning no override
1018
+ */
1019
+ paddingBlock?: MaybeResponsive<
1020
+ MaybeTwoValuesShorthandProperty<PaddingKeyword> | ''
1021
+ >;
1022
+ /**
1023
+ * Adjust the block-start padding.
1024
+ *
1025
+ * This overrides the block-start value of `paddingBlock`.
1026
+ *
1027
+ * @default '' - meaning no override
1028
+ */
1029
+ paddingBlockStart?: MaybeResponsive<PaddingKeyword | ''>;
1030
+ /**
1031
+ * Adjust the block-end padding.
1032
+ *
1033
+ * This overrides the block-end value of `paddingBlock`.
1034
+ *
1035
+ * @default '' - meaning no override
1036
+ */
1037
+ paddingBlockEnd?: MaybeResponsive<PaddingKeyword | ''>;
1038
+ /**
1039
+ * Adjust the inline padding.
1040
+ *
1041
+ * - `large none` means inline-start padding is `large`, inline-end padding is `none`.
1042
+ *
1043
+ * This overrides the inline value of `padding`.
1044
+ *
1045
+ * @default '' - meaning no override
1046
+ */
1047
+ paddingInline?: MaybeResponsive<
1048
+ MaybeTwoValuesShorthandProperty<PaddingKeyword> | ''
1049
+ >;
1050
+ /**
1051
+ * Adjust the inline-start padding.
1052
+ *
1053
+ * This overrides the inline-start value of `paddingInline`.
1054
+ *
1055
+ * @default '' - meaning no override
1056
+ */
1057
+ paddingInlineStart?: MaybeResponsive<PaddingKeyword | ''>;
1058
+ /**
1059
+ * Adjust the inline-end padding.
1060
+ *
1061
+ * This overrides the inline-end value of `paddingInline`.
1062
+ *
1063
+ * @default '' - meaning no override
1064
+ */
1065
+ paddingInlineEnd?: MaybeResponsive<PaddingKeyword | ''>;
1066
+ }
1067
+ export type SizeUnits = `${number}px` | `${number}%` | `0`;
1068
+ export type SizeUnitsOrAuto = SizeUnits | 'auto';
1069
+ export type SizeUnitsOrNone = SizeUnits | 'none';
1070
+ export interface SizingProps {
1071
+ /**
1072
+ * Adjust the block size.
1073
+ *
1074
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/block-size
1075
+ *
1076
+ * @default 'auto'
1077
+ */
1078
+ blockSize?: MaybeResponsive<SizeUnitsOrAuto>;
1079
+ /**
1080
+ * Adjust the minimum block size.
1081
+ *
1082
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/min-block-size
1083
+ *
1084
+ * @default '0'
1085
+ */
1086
+ minBlockSize?: MaybeResponsive<SizeUnits>;
1087
+ /**
1088
+ * Adjust the maximum block size.
1089
+ *
1090
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/max-block-size
1091
+ *
1092
+ * @default 'none'
1093
+ */
1094
+ maxBlockSize?: MaybeResponsive<SizeUnitsOrNone>;
1095
+ /**
1096
+ * Adjust the inline size.
1097
+ *
1098
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/inline-size
1099
+ *
1100
+ * @default 'auto'
1101
+ */
1102
+ inlineSize?: MaybeResponsive<SizeUnitsOrAuto>;
1103
+ /**
1104
+ * Adjust the minimum inline size.
1105
+ *
1106
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/min-inline-size
1107
+ *
1108
+ * @default '0'
1109
+ */
1110
+ minInlineSize?: MaybeResponsive<SizeUnits>;
1111
+ /**
1112
+ * Adjust the maximum inline size.
1113
+ *
1114
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/max-inline-size
1115
+ *
1116
+ * @default 'none'
1117
+ */
1118
+ maxInlineSize?: MaybeResponsive<SizeUnitsOrNone>;
1119
+ }
1120
+ export type BorderStyleKeyword =
1121
+ | 'none'
1122
+ | 'solid'
1123
+ | 'dashed'
1124
+ | 'dotted'
1125
+ | 'auto';
1126
+ export type BorderSizeKeyword = SizeKeyword | 'none';
1127
+ export type BorderRadiusKeyword = SizeKeyword | 'max' | 'none';
1128
+ /**
1129
+ * Represents a shorthand for defining a border. It can be a combination of size, optionally followed by color, optionally followed by style.
1130
+ */
1131
+ export type BorderShorthand =
1132
+ | BorderSizeKeyword
1133
+ | `${BorderSizeKeyword} ${ColorKeyword}`
1134
+ | `${BorderSizeKeyword} ${ColorKeyword} ${BorderStyleKeyword}`;
1135
+ export interface BorderProps {
1136
+ /**
1137
+ * Set the border via the shorthand property.
1138
+ *
1139
+ * This can be a size, optionally followed by a color, optionally followed by a style.
1140
+ *
1141
+ * If the color is not specified, it will be `base`.
1142
+ *
1143
+ * If the style is not specified, it will be `auto`.
1144
+ *
1145
+ * Values can be overridden by `borderWidth`, `borderStyle`, and `borderColor`.
1146
+ *
1147
+ * @example
1148
+ * // The following are equivalent:
1149
+ * <Box border="large-100 strong dashed" />
1150
+ * <Box borderWidth="large-100" borderColor="strong" borderStyle="dashed" />
1151
+ *
1152
+ * @default 'none' - equivalent to `none base auto`.
1153
+ */
1154
+ border?: BorderShorthand;
1155
+ /**
1156
+ * Set the width of the border.
1157
+ *
1158
+ * If set, it takes precedence over the `border` property's width.
1159
+ *
1160
+ * Like CSS, up to 4 values can be specified.
1161
+ *
1162
+ * If one value is specified, it applies to all sides.
1163
+ *
1164
+ * If two values are specified, they apply to the block sides and inline sides respectively.
1165
+ *
1166
+ * If three values are specified, they apply to the block-start, both inline sides, and block-end respectively.
1167
+ *
1168
+ * If four values are specified, they apply to the block-start, block-end, inline-start, and inline-end sides respectively.
1169
+ *
1170
+ * @default '' - meaning no override
1171
+ */
1172
+ borderWidth?: MaybeAllValuesShorthandProperty<BorderSizeKeyword> | '';
1173
+ /**
1174
+ * Set the style of the border.
1175
+ *
1176
+ * If set, it takes precedence over the `border` property's style.
1177
+ *
1178
+ * Like CSS, up to 4 values can be specified.
1179
+ *
1180
+ * If one value is specified, it applies to all sides.
1181
+ *
1182
+ * If two values are specified, they apply to the block sides and inline sides respectively.
1183
+ *
1184
+ * If three values are specified, they apply to the block-start, both inline sides, and block-end respectively.
1185
+ *
1186
+ * If four values are specified, they apply to the block-start, block-end, inline-start, and inline-end sides respectively.
1187
+ *
1188
+ * @default '' - meaning no override
1189
+ */
1190
+ borderStyle?: MaybeAllValuesShorthandProperty<BorderStyleKeyword> | '';
1191
+ /**
1192
+ * Set the color of the border.
1193
+ *
1194
+ * If set, it takes precedence over the `border` property's color.
1195
+ *
1196
+ * @default '' - meaning no override
1197
+ */
1198
+ borderColor?: ColorKeyword | '';
1199
+ /**
1200
+ * Set the radius of the border.
1201
+ *
1202
+ * [1-to-4-value syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box) is
1203
+ * supported. Note that, contrary to the CSS, it uses flow-relative values and the order is:
1204
+ *
1205
+ * - 4 values: `start-start start-end end-end end-start`
1206
+ * - 3 values: `start-start (start-end & end-start) start-end`
1207
+ * - 2 values: `(start-start & end-end) (start-end & end-start)`
1208
+ *
1209
+ * For example:
1210
+ * - `small-100` means start-start, start-end, end-end and end-start border radii are `small-100`.
1211
+ * - `small-100 none` means start-start and end-end border radii are `small-100`, start-end and end-start border radii are `none`.
1212
+ * - `small-100 none large-100` means start-start border radius is `small-100`, start-end border radius is `none`, end-end border radius is `large-100` and end-start border radius is `none`.
1213
+ * - `small-100 none large-100 small-100` means start-start border radius is `small-100`, start-end border radius is `none`, end-end border radius is `large-100` and end-start border radius is `small-100`.
1214
+ *
1215
+ * @defaultValue 'none'
1216
+ */
1217
+ borderRadius?: MaybeAllValuesShorthandProperty<BorderRadiusKeyword>;
1218
+ }
1219
+ export interface OverflowProps {
1220
+ /**
1221
+ * Sets the overflow behavior of the element.
1222
+ *
1223
+ * - `hidden`: clips the content when it is larger than the element’s container.
1224
+ * The element will not be scrollable and the users will not be able
1225
+ * to access the clipped content by dragging or using a scroll wheel on a mouse.
1226
+ * - `visible`: the content that extends beyond the element’s container is visible.
1227
+ *
1228
+ * @default 'visible'
1229
+ */
1230
+ overflow?: 'hidden' | 'visible';
1231
+ }
1232
+ export interface BaseBoxProps
1233
+ extends AccessibilityVisibilityProps,
1234
+ BackgroundProps,
1235
+ DisplayProps,
1236
+ SizingProps,
1237
+ PaddingProps,
1238
+ BorderProps,
1239
+ OverflowProps {
1240
+ /**
1241
+ * The content of the Box.
1242
+ */
1243
+ children?: ComponentChildren;
1244
+ /**
1245
+ * A label that describes the purpose or contents of the element.
1246
+ * When set, it will be announced to users using assistive technologies and will provide them with more context.
1247
+ *
1248
+ * Only use this when the element's content is not enough context for users using assistive technologies.
1249
+ */
1250
+ accessibilityLabel?: string;
1251
+ }
1252
+ export interface BaseBoxPropsWithRole
1253
+ extends BaseBoxProps,
1254
+ AccessibilityRoleProps {}
1255
+ export interface BoxProps extends BaseBoxPropsWithRole, GlobalProps {}
1256
+ export interface ButtonBehaviorProps extends InteractionProps, FocusEventProps {
1257
+ /**
1258
+ * The behavior of the Button.
1259
+ *
1260
+ * - `submit`: Used to indicate the component acts as a submit button, meaning it submits the closest form.
1261
+ * - `button`: Used to indicate the component acts as a button, meaning it has no default action.
1262
+ * - `reset`: Used to indicate the component acts as a reset button, meaning it resets the closest form (returning fields to their default values).
1263
+ *
1264
+ * This property is ignored if the component supports `href` or `commandFor`/`command` and one of them is set.
1265
+ *
1266
+ * @default 'button'
1267
+ */
1268
+ type?: 'submit' | 'button' | 'reset';
1269
+ /**
1270
+ * Callback when the Button is activated.
1271
+ * This will be called before the action indicated by `type`.
1272
+ *
1273
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event
1274
+ */
1275
+ onClick?: (event: Event) => void;
1276
+ /**
1277
+ * Disables the Button meaning it cannot be clicked or receive focus.
1278
+ *
1279
+ * @default false
1280
+ */
1281
+ disabled?: boolean;
1282
+ /**
1283
+ * Replaces content with a loading indicator while a background action is being performed.
1284
+ *
1285
+ * This also disables the Button.
1286
+ *
1287
+ * @default false
1288
+ */
1289
+ loading?: boolean;
1290
+ }
1291
+ export interface LinkBehaviorProps extends InteractionProps, FocusEventProps {
1292
+ /**
1293
+ * The URL to link to.
1294
+ *
1295
+ * - If set, it will navigate to the location specified by `href` after executing the `click` event.
1296
+ * - If a `commandFor` is set, the `command` will be executed instead of the navigation.
1297
+ */
1298
+ href?: string;
1299
+ /**
1300
+ * Specifies where to display the linked URL.
1301
+ *
1302
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target
1303
+ *
1304
+ * 'auto': The target is automatically determined based on the origin of the URL.
1305
+ *
1306
+ * @implementation Surfaces can set specific rules on how they handle each URL.
1307
+ * @implementation It’s expected that the behavior of `auto` is as `_self` except in specific cases.
1308
+ * @implementation For example, a surface could decide to open cross-origin URLs in a new window (as `_blank`).
1309
+ *
1310
+ * @default 'auto'
1311
+ */
1312
+ target?: 'auto' | '_blank' | '_self' | '_parent' | '_top' | AnyString;
1313
+ /**
1314
+ * Causes the browser to treat the linked URL as a download with the string being the file name.
1315
+ * Download only works for same-origin URLs or the `blob:` and `data:` schemes.
1316
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download
1317
+ */
1318
+ download?: string;
1319
+ /**
1320
+ * Callback when the link is activated.
1321
+ * This will be called before navigating to the location specified by `href`.
1322
+ *
1323
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event
1324
+ */
1325
+ onClick?: (event: Event) => void;
1326
+ }
1327
+ export interface InteractionProps {
1328
+ /**
1329
+ * ID of a component that should respond to activations (e.g. clicks) on this component.
1330
+ *
1331
+ * See `command` for how to control the behavior of the target.
1332
+ *
1333
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#commandfor
1334
+ */
1335
+ commandFor?: string;
1336
+ /**
1337
+ * Sets the action the `commandFor` should take when this clickable is activated.
1338
+ *
1339
+ * See the documentation of particular components for the actions they support.
1340
+ *
1341
+ * - `--auto`: a default action for the target component.
1342
+ * - `--show`: shows the target component.
1343
+ * - `--hide`: hides the target component.
1344
+ * - `--toggle`: toggles the target component.
1345
+ * - `--copy`: copies the target ClipboardItem.
1346
+ *
1347
+ * @default '--auto'
1348
+ *
1349
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#command
1350
+ */
1351
+ command?: '--auto' | '--show' | '--hide' | '--toggle' | '--copy';
1352
+ /**
1353
+ * ID of a component that should respond to interest (e.g. hover and focus) on this component.
1354
+ */
1355
+ interestFor?: string;
1356
+ }
1357
+ export interface BaseClickableProps
1358
+ extends ButtonBehaviorProps,
1359
+ LinkBehaviorProps {}
1360
+ export interface ButtonProps extends GlobalProps, BaseClickableProps {
1361
+ /**
1362
+ * A label that describes the purpose or contents of the Button. It will be read to users using assistive technologies such as screen readers.
1363
+ *
1364
+ * Use this when using only an icon or the Button text is not enough context
1365
+ * for users using assistive technologies.
1366
+ */
1367
+ accessibilityLabel?: string;
1368
+ /**
1369
+ * The content of the Button.
1370
+ */
1371
+ children?: ComponentChildren;
1372
+ /**
1373
+ * The type of icon to be displayed in the Button.
1374
+ *
1375
+ * @default ''
1376
+ */
1377
+ icon?: IconType | AnyString;
1378
+ /**
1379
+ * The displayed inline width of the Button.
1380
+ *
1381
+ * - `auto`: the size of the button depends on the surface and context.
1382
+ * - `fill`: the button will takes up 100% of the available inline size.
1383
+ * - `fit-content`: the button will take up the minimum inline-size required to fit its content.
1384
+ *
1385
+ * @default 'auto'
1386
+ */
1387
+ inlineSize?: 'auto' | 'fill' | 'fit-content';
1388
+ /**
1389
+ * Changes the visual appearance of the Button.
1390
+ *
1391
+ * @default 'auto' - the variant is automatically determined by the Button's context
1392
+ */
1393
+ variant?: 'auto' | 'primary' | 'secondary' | 'tertiary';
1394
+ /**
1395
+ * Sets the tone of the Button based on the intention of the information being conveyed.
1396
+ *
1397
+ * @default 'auto'
1398
+ */
1399
+ tone?: ToneKeyword;
1400
+ /**
1401
+ * Indicate the text language. Useful when the text is in a different language than the rest of the page.
1402
+ * It will allow assistive technologies such as screen readers to invoke the correct pronunciation.
1403
+ * [Reference of values](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) ("subtag" label)
1404
+ */
1405
+ lang?: string;
1406
+ }
1407
+ export interface BaseInputProps {
1408
+ /**
1409
+ * An identifier for the field that is unique within the nearest containing form.
1410
+ */
1411
+ name?: string;
1412
+ /**
1413
+ * Disables the field, disallowing any interaction.
1414
+ *
1415
+ * @default false
1416
+ */
1417
+ disabled?: boolean;
1418
+ }
1419
+ export interface InputProps extends BaseInputProps {
1420
+ /**
1421
+ * Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
1422
+ *
1423
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
1424
+ */
1425
+ onChange?: (event: Event) => void;
1426
+ /**
1427
+ * Callback when the user makes any changes in the field.
1428
+ *
1429
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
1430
+ */
1431
+ onInput?: (event: Event) => void;
1432
+ /**
1433
+ * The current value for the field. If omitted, the field will be empty.
1434
+ */
1435
+ value?: string;
1436
+ /**
1437
+ * The default value for the field.
1438
+ *
1439
+ * @implementation `defaultValue` reflects to the `value` attribute.
1440
+ */
1441
+ defaultValue?: string;
1442
+ }
1443
+ export interface MultipleInputProps extends BaseInputProps {
1444
+ /**
1445
+ * Callback when the user has selected option(s).
1446
+ *
1447
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
1448
+ */
1449
+ onChange?: (event: Event) => void;
1450
+ /**
1451
+ * Callback when the user has selected option(s).
1452
+ *
1453
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
1454
+ */
1455
+ onInput?: (event: Event) => void;
1456
+ /**
1457
+ * An array of the `value`s of the selected options.
1458
+ *
1459
+ * This is a convenience prop for setting the `selected` prop on child options.
1460
+ */
1461
+ values?: string[];
1462
+ }
1463
+ export interface FieldErrorProps {
1464
+ /**
1465
+ * Indicate an error to the user. The field will be given a specific stylistic treatment
1466
+ * to communicate problems that have to be resolved immediately.
1467
+ */
1468
+ error?: string;
1469
+ }
1470
+ export interface BasicFieldProps
1471
+ extends FieldErrorProps,
1472
+ LabelAccessibilityVisibilityProps {
1473
+ /**
1474
+ * Whether the field needs a value. This requirement adds semantic value
1475
+ * to the field, but it will not cause an error to appear automatically.
1476
+ * If you want to present an error when this field is empty, you can do
1477
+ * so with the `error` property.
1478
+ *
1479
+ * @default false
1480
+ */
1481
+ required?: boolean;
1482
+ /**
1483
+ * Content to use as the field label.
1484
+ */
1485
+ label?: string;
1486
+ }
1487
+ export interface FieldDetailsProps {
1488
+ /**
1489
+ * Additional text to provide context or guidance for the field.
1490
+ * This text is displayed along with the field and its label
1491
+ * to offer more information or instructions to the user.
1492
+ *
1493
+ * This will also be exposed to screen reader users.
1494
+ */
1495
+ details?: string;
1496
+ }
1497
+ export interface FieldProps
1498
+ extends BasicFieldProps,
1499
+ InputProps,
1500
+ FocusEventProps,
1501
+ FieldDetailsProps {
1502
+ /**
1503
+ * A short hint that describes the expected value of the field.
1504
+ */
1505
+ placeholder?: string;
1506
+ }
1507
+ export interface BaseTextFieldProps extends FieldProps {
1508
+ /**
1509
+ * The field cannot be edited by the user. It is focusable will be announced by screen readers.
1510
+ *
1511
+ * @default false
1512
+ */
1513
+ readOnly?: boolean;
1514
+ }
1515
+ export interface FieldDecorationProps {
1516
+ /**
1517
+ * A value to be displayed immediately after the editable portion of the field.
1518
+ *
1519
+ * This is useful for displaying an implied part of the value, such as "@shopify.com", or "%".
1520
+ *
1521
+ * This cannot be edited by the user, and it isn't included in the value of the field.
1522
+ *
1523
+ * It may not be displayed until the user has interacted with the input.
1524
+ * For example, an inline label may take the place of the suffix until the user focuses the input.
1525
+ *
1526
+ * @default ''
1527
+ */
1528
+ suffix?: string;
1529
+ /**
1530
+ * A value to be displayed immediately before the editable portion of the field.
1531
+ *
1532
+ * This is useful for displaying an implied part of the value, such as "https://" or "+353".
1533
+ *
1534
+ * This cannot be edited by the user, and it isn't included in the value of the field.
1535
+ *
1536
+ * It may not be displayed until the user has interacted with the input.
1537
+ * For example, an inline label may take the place of the prefix until the user focuses the input.
1538
+ *
1539
+ * @default ''
1540
+ */
1541
+ prefix?: string;
1542
+ /**
1543
+ * The type of icon to be displayed in the field.
1544
+ *
1545
+ * @default ''
1546
+ */
1547
+ icon?: IconType | AnyString;
1548
+ /**
1549
+ * Additional content to be displayed in the field.
1550
+ * Commonly used to display an icon that activates a tooltip providing more information.
1551
+ */
1552
+ accessory?: ComponentChildren;
1553
+ }
1554
+ export interface NumberConstraintsProps {
1555
+ /**
1556
+ * The highest decimal or integer to be accepted for the field.
1557
+ * When used with `step` the value will round down to the max number.
1558
+ *
1559
+ * Note: a user will still be able to use the keyboard to input a number higher than
1560
+ * the max. It is up to the developer to add appropriate validation.
1561
+ *
1562
+ * @default Infinity
1563
+ */
1564
+ max?: number;
1565
+ /**
1566
+ * The lowest decimal or integer to be accepted for the field.
1567
+ * When used with `step` the value will round up to the min number.
1568
+ *
1569
+ * Note: a user will still be able to use the keyboard to input a number lower than
1570
+ * the min. It is up to the developer to add appropriate validation.
1571
+ *
1572
+ * @default -Infinity
1573
+ */
1574
+ min?: number;
1575
+ /**
1576
+ * The amount the value can increase or decrease by. This can be an integer or decimal.
1577
+ * If a `max` or `min` is specified with `step` when increasing/decreasing the value
1578
+ * via the buttons, the final value will always round to the `max` or `min`
1579
+ * rather than the closest valid amount.
1580
+ *
1581
+ * @default 1
1582
+ */
1583
+ step?: number;
1584
+ /**
1585
+ * Sets the type of controls displayed in the field.
1586
+ *
1587
+ * - `stepper`: displays buttons to increase or decrease the value of the field by the stepping interval defined in the `step` property.
1588
+ * Appropriate mouse and [keyboard interactions](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/spinbutton_role#keyboard_interactions) to control the value of the field are enabled.
1589
+ * - `none`: no controls are displayed and users must input the value manually. Arrow keys and scroll wheels can’t be used either to avoid accidental changes.
1590
+ * - `auto`: the presence of the controls depends on the surface and context.
1591
+ *
1592
+ * @default 'auto'
1593
+ */
1594
+ controls?: 'auto' | 'stepper' | 'none';
1595
+ }
1596
+ export interface MinMaxLengthProps {
1597
+ /**
1598
+ * Specifies the maximum number of characters allowed.
1599
+ *
1600
+ * @default Infinity
1601
+ */
1602
+ maxLength?: number;
1603
+ /**
1604
+ * Specifies the min number of characters allowed.
1605
+ *
1606
+ * @default 0
1607
+ */
1608
+ minLength?: number;
1609
+ }
1610
+ export interface BaseSelectableProps {
1611
+ /**
1612
+ * A label used for users using assistive technologies like screen readers. When set, any children or `label` supplied will not be announced.
1613
+ * This can also be used to display a control without a visual label, while still providing context to users using screen readers.
1614
+ */
1615
+ accessibilityLabel?: string;
1616
+ /**
1617
+ * Disables the control, disallowing any interaction.
1618
+ *
1619
+ * @default false
1620
+ */
1621
+ disabled?: boolean;
1622
+ /**
1623
+ * The value used in form data when the control is checked.
1624
+ */
1625
+ value?: string;
1626
+ }
1627
+ export interface BaseOptionProps extends BaseSelectableProps {
1628
+ /**
1629
+ * Whether the control is active.
1630
+ *
1631
+ * @default false
1632
+ */
1633
+ selected?: boolean;
1634
+ /**
1635
+ * Whether the control is active by default.
1636
+ *
1637
+ * @implementation `defaultSelected` reflects to the `selected` attribute.
1638
+ *
1639
+ * @default false
1640
+ */
1641
+ defaultSelected?: boolean;
1642
+ }
1643
+ export interface ChoiceProps extends GlobalProps, BaseOptionProps {
1644
+ /**
1645
+ * Content to use as the choice label.
1646
+ *
1647
+ * @implementation (StringChildren) The label is produced by extracting and
1648
+ * concatenating the text nodes from the provided content; any markup or
1649
+ * element structure is ignored.
1650
+ *
1651
+ * @implementation (ComponentChildren) Behaves as a slot: any elements passed
1652
+ * are rendered as the label content (subject to surface constraints); there
1653
+ * is no coercion to a string.
1654
+ */
1655
+ children?: ComponentChildren | StringChildren;
1656
+ /**
1657
+ * Additional text to provide context or guidance for the input.
1658
+ *
1659
+ * This text is displayed along with the input and its label
1660
+ * to offer more information or instructions to the user.
1661
+ *
1662
+ * @implementation this content should be linked to the input with an `aria-describedby` attribute.
1663
+ */
1664
+ details?: ComponentChildren;
1665
+ /**
1666
+ * Set to `true` to associate a choice with the error passed to `ChoiceList`
1667
+ *
1668
+ * @default false
1669
+ */
1670
+ error?: boolean;
1671
+ /**
1672
+ * Secondary content for a choice.
1673
+ */
1674
+ secondaryContent?: ComponentChildren;
1675
+ /**
1676
+ * Content to display when the option is selected.
1677
+ *
1678
+ * This can be used to provide additional information or options related to the choice.
1679
+ */
1680
+ selectedContent?: ComponentChildren;
1681
+ }
1682
+ export interface ChoiceListProps
1683
+ extends GlobalProps,
1684
+ Pick<BasicFieldProps, 'label' | 'labelAccessibilityVisibility' | 'error'>,
1685
+ MultipleInputProps,
1686
+ FieldDetailsProps {
1687
+ /**
1688
+ * Whether multiple choices can be selected.
1689
+ *
1690
+ * @default false
1691
+ */
1692
+ multiple?: boolean;
1693
+ /**
1694
+ * The choices a user can select from.
1695
+ *
1696
+ * Accepts `Choice` components.
1697
+ */
1698
+ children?: ComponentChildren;
1699
+ /**
1700
+ * Disables the field, disallowing any interaction.
1701
+ *
1702
+ * `disabled` on any child choices is ignored when this is true.
1703
+ *
1704
+ * @default false
1705
+ */
1706
+ disabled?: MultipleInputProps['disabled'];
1707
+ /**
1708
+ * The variant of the choice grid.
1709
+ *
1710
+ * - `auto`: The variant is determined by the context.
1711
+ * - `list`: The choices are displayed in a list.
1712
+ * - `inline`: The choices are displayed on the inline axis.
1713
+ * - `block`: The choices are displayed on the block axis.
1714
+ * - `grid`: The choices are displayed in a grid.
1715
+ *
1716
+ * @implementation The `block`, `inline` and `grid` variants are more suitable for button looking choices, but it's at the
1717
+ * discretion of each surface.
1718
+ *
1719
+ * @default 'auto'
1720
+ */
1721
+ variant?: 'auto' | 'list' | 'inline' | 'block' | 'grid';
1722
+ }
1723
+ export interface ClickableProps
1724
+ extends GlobalProps,
1725
+ BaseBoxProps,
1726
+ BaseClickableProps {
1727
+ /**
1728
+ * Disables the clickable, and indicates to assistive technology that the loading is in progress.
1729
+ *
1730
+ * This also disables the clickable.
1731
+ */
1732
+ loading?: BaseClickableProps['loading'];
1733
+ /**
1734
+ * Disables the clickable, meaning it cannot be clicked or receive focus.
1735
+ *
1736
+ * In this state, onClick will not fire.
1737
+ * If the click event originates from a child element, the event will immediately stop propagating from this element.
1738
+ *
1739
+ * However, items within the clickable can still receive focus and be interacted with.
1740
+ *
1741
+ * This has no impact on the visual state by default,
1742
+ * but developers are encouraged to style the clickable accordingly.
1743
+ */
1744
+ disabled?: BaseClickableProps['disabled'];
1745
+ /**
1746
+ * Indicate the text language. Useful when the text is in a different language than the rest of the page.
1747
+ * It will allow assistive technologies such as screen readers to invoke the correct pronunciation.
1748
+ * [Reference of values](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) ("subtag" label)
1749
+ *
1750
+ * @default ''
1751
+ */
1752
+ lang?: string;
1753
+ }
1754
+ export interface AutocompleteProps<
1755
+ AutocompleteField extends AnyAutocompleteField,
1756
+ > {
1757
+ /**
1758
+ * A hint as to the intended content of the field.
1759
+ *
1760
+ * When set to `on` (the default), this property indicates that the field should support
1761
+ * autofill, but you do not have any more semantic information on the intended
1762
+ * contents.
1763
+ *
1764
+ * When set to `off`, you are indicating that this field contains sensitive
1765
+ * information, or contents that are never saved, like one-time codes.
1766
+ *
1767
+ * Alternatively, you can provide value which describes the
1768
+ * specific data you would like to be entered into this field during autofill.
1769
+ *
1770
+ * @see Learn more about the set of {@link https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-detail-tokens|autocomplete values} supported in browsers.
1771
+ *
1772
+ * @default 'tel' for PhoneField
1773
+ * @default 'email' for EmailField
1774
+ * @default 'url' for URLField
1775
+ * @default 'on' for everything else
1776
+ */
1777
+ autocomplete?:
1778
+ | AutocompleteField
1779
+ | `${AutocompleteSection} ${AutocompleteField}`
1780
+ | `${AutocompleteGroup} ${AutocompleteField}`
1781
+ | `${AutocompleteSection} ${AutocompleteGroup} ${AutocompleteField}`
1782
+ | 'on'
1783
+ | 'off';
1784
+ }
1785
+ /**
1786
+ * The “section” scopes the autocomplete data that should be inserted
1787
+ * to a specific area of the page.
1788
+ *
1789
+ * Commonly used when there are multiple fields with the same autocomplete needs
1790
+ * in the same page. For example: 2 shipping address forms in the same page.
1791
+ */
1792
+ export type AutocompleteSection = `section-${string}`;
1793
+ /**
1794
+ * The contact information group the autocomplete data should be sourced from.
1795
+ */
1796
+ export type AutocompleteGroup = 'shipping' | 'billing';
1797
+ /**
1798
+ * The contact information subgroup the autocomplete data should be sourced from.
1799
+ */
1800
+ export type AutocompleteAddressGroup = 'fax' | 'home' | 'mobile' | 'pager';
1801
+ export type AnyAutocompleteField =
1802
+ | 'additional-name'
1803
+ | 'address-level1'
1804
+ | 'address-level2'
1805
+ | 'address-level3'
1806
+ | 'address-level4'
1807
+ | 'address-line1'
1808
+ | 'address-line2'
1809
+ | 'address-line3'
1810
+ | 'country-name'
1811
+ | 'country'
1812
+ | 'current-password'
1813
+ | 'email'
1814
+ | 'family-name'
1815
+ | 'given-name'
1816
+ | 'honorific-prefix'
1817
+ | 'honorific-suffix'
1818
+ | 'language'
1819
+ | 'name'
1820
+ | 'new-password'
1821
+ | 'nickname'
1822
+ | 'one-time-code'
1823
+ | 'organization-title'
1824
+ | 'organization'
1825
+ | 'photo'
1826
+ | 'postal-code'
1827
+ | 'sex'
1828
+ | 'street-address'
1829
+ | 'transaction-amount'
1830
+ | 'transaction-currency'
1831
+ | 'url'
1832
+ | 'username'
1833
+ | 'bday-day'
1834
+ | 'bday-month'
1835
+ | 'bday-year'
1836
+ | 'bday'
1837
+ | 'cc-additional-name'
1838
+ | 'cc-expiry-month'
1839
+ | 'cc-expiry-year'
1840
+ | 'cc-expiry'
1841
+ | 'cc-family-name'
1842
+ | 'cc-given-name'
1843
+ | 'cc-name'
1844
+ | 'cc-number'
1845
+ | 'cc-csc'
1846
+ | 'cc-type'
1847
+ | `${AutocompleteAddressGroup} email`
1848
+ | 'impp'
1849
+ | `${AutocompleteAddressGroup} impp`
1850
+ | 'tel'
1851
+ | 'tel-area-code'
1852
+ | 'tel-country-code'
1853
+ | 'tel-extension'
1854
+ | 'tel-local-prefix'
1855
+ | 'tel-local-suffix'
1856
+ | 'tel-local'
1857
+ | 'tel-national'
1858
+ | `${AutocompleteAddressGroup} tel`
1859
+ | `${AutocompleteAddressGroup} tel-area-code`
1860
+ | `${AutocompleteAddressGroup} tel-country-code`
1861
+ | `${AutocompleteAddressGroup} tel-extension`
1862
+ | `${AutocompleteAddressGroup} tel-local-prefix`
1863
+ | `${AutocompleteAddressGroup} tel-local-suffix`
1864
+ | `${AutocompleteAddressGroup} tel-local`
1865
+ | `${AutocompleteAddressGroup} tel-national`;
1866
+ export type TextAutocompleteField = ExtractStrict<
1867
+ AnyAutocompleteField,
1868
+ | 'additional-name'
1869
+ | 'address-level1'
1870
+ | 'address-level2'
1871
+ | 'address-level3'
1872
+ | 'address-level4'
1873
+ | 'address-line1'
1874
+ | 'address-line2'
1875
+ | 'address-line3'
1876
+ | 'country-name'
1877
+ | 'country'
1878
+ | 'family-name'
1879
+ | 'given-name'
1880
+ | 'honorific-prefix'
1881
+ | 'honorific-suffix'
1882
+ | 'language'
1883
+ | 'name'
1884
+ | 'nickname'
1885
+ | 'one-time-code'
1886
+ | 'organization-title'
1887
+ | 'organization'
1888
+ | 'postal-code'
1889
+ | 'sex'
1890
+ | 'street-address'
1891
+ | 'transaction-currency'
1892
+ | 'username'
1893
+ | 'cc-name'
1894
+ | 'cc-given-name'
1895
+ | 'cc-additional-name'
1896
+ | 'cc-family-name'
1897
+ | 'cc-type'
1898
+ >;
1899
+ export interface DatePickerProps
1900
+ extends GlobalProps,
1901
+ InputProps,
1902
+ FocusEventProps {
1903
+ /**
1904
+ * Default month to display in `YYYY-MM` format.
1905
+ *
1906
+ * This value is used until `view` is set, either directly or as a result of user interaction.
1907
+ *
1908
+ * Defaults to the current month in the user's locale.
1909
+ */
1910
+ defaultView?: string;
1911
+ /**
1912
+ * Displayed month in `YYYY-MM` format.
1913
+ *
1914
+ * `onViewChange` is called when this value changes.
1915
+ *
1916
+ * Defaults to `defaultView`.
1917
+ */
1918
+ view?: string;
1919
+ /**
1920
+ * Called whenever the month to display changes.
1921
+ *
1922
+ * @param view The new month to display in `YYYY-MM` format.
1923
+ */
1924
+ onViewChange?: (view: string) => void;
1925
+ /**
1926
+ * The type of selection the date picker allows.
1927
+ *
1928
+ * - `single` allows selecting a single date.
1929
+ * - `multiple` allows selecting multiple non-contiguous dates.
1930
+ * - `range` allows selecting a single range of dates.
1931
+ *
1932
+ * @default "single"
1933
+ */
1934
+ type?: 'single' | 'multiple' | 'range';
1935
+ /**
1936
+ * Dates that can be selected.
1937
+ *
1938
+ * A comma-separated list of dates, date ranges. Whitespace is allowed after commas.
1939
+ *
1940
+ * The default `''` allows all dates.
1941
+ *
1942
+ * - Dates in `YYYY-MM-DD` format allow a single date.
1943
+ * - Dates in `YYYY-MM` format allow a whole month.
1944
+ * - Dates in `YYYY` format allow a whole year.
1945
+ * - Ranges are expressed as `start--end`.
1946
+ * - Ranges are inclusive.
1947
+ * - If either `start` or `end` is omitted, the range is unbounded in that direction.
1948
+ * - If parts of the date are omitted for `start`, they are assumed to be the minimum possible value.
1949
+ * So `2024--` is equivalent to `2024-01-01--`.
1950
+ * - If parts of the date are omitted for `end`, they are assumed to be the maximum possible value.
1951
+ * So `--2024` is equivalent to `--2024-12-31`.
1952
+ * - Whitespace is allowed either side of `--`.
1953
+ *
1954
+ * @default ""
1955
+ *
1956
+ * @example
1957
+ * `2024-02--2025` // allow any date from February 2024 to the end of 2025
1958
+ * `2024-02--` // allow any date from February 2024 to the end of the month
1959
+ * `2024-05-09, 2024-05-11` // allow only the 9th and 11th of May 2024
1960
+ */
1961
+ allow?: string;
1962
+ /**
1963
+ * Dates that cannot be selected. These subtract from `allow`.
1964
+ *
1965
+ * A comma-separated list of dates, date ranges. Whitespace is allowed after commas.
1966
+ *
1967
+ * The default `''` has no effect on `allow`.
1968
+ *
1969
+ * - Dates in `YYYY-MM-DD` format disallow a single date.
1970
+ * - Dates in `YYYY-MM` format disallow a whole month.
1971
+ * - Dates in `YYYY` format disallow a whole year.
1972
+ * - Ranges are expressed as `start--end`.
1973
+ * - Ranges are inclusive.
1974
+ * - If either `start` or `end` is omitted, the range is unbounded in that direction.
1975
+ * - If parts of the date are omitted for `start`, they are assumed to be the minimum possible value.
1976
+ * So `2024--` is equivalent to `2024-01-01--`.
1977
+ * - If parts of the date are omitted for `end`, they are assumed to be the maximum possible value.
1978
+ * So `--2024` is equivalent to `--2024-12-31`.
1979
+ * - Whitespace is allowed either side of `--`.
1980
+ *
1981
+ * @default ""
1982
+ *
1983
+ * @example
1984
+ * `--2024-02` // disallow any date before February 2024
1985
+ * `2024-05-09, 2024-05-11` // disallow the 9th and 11th of May 2024
1986
+ */
1987
+ disallow?: string;
1988
+ /**
1989
+ * Days of the week that can be selected. These intersect with the result of `allow` and `disallow`.
1990
+ *
1991
+ * A comma-separated list of days. Whitespace is allowed after commas.
1992
+ *
1993
+ * The default `''` has no effect on the result of `allow` and `disallow`.
1994
+ *
1995
+ * Days are `sunday`, `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`.
1996
+ *
1997
+ * @default ""
1998
+ *
1999
+ * @example
2000
+ * 'saturday, sunday' // allow only weekends within the result of `allow` and `disallow`.
2001
+ */
2002
+ allowDays?: string;
2003
+ /**
2004
+ * Days of the week that cannot be selected. This subtracts from `allowDays`, and intersects with the result of `allow` and `disallow`.
2005
+ *
2006
+ * A comma-separated list of days. Whitespace is allowed after commas.
2007
+ *
2008
+ * The default `''` has no effect on `allowDays`.
2009
+ *
2010
+ * Days are `sunday`, `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`.
2011
+ *
2012
+ * @default ""
2013
+ *
2014
+ * @example
2015
+ * 'saturday, sunday' // disallow weekends within the result of `allow` and `disallow`.
2016
+ */
2017
+ disallowDays?: string;
2018
+ /**
2019
+ * Default selected value.
2020
+ *
2021
+ * The default means no date is selected.
2022
+ *
2023
+ * If the provided value is invalid, no date is selected.
2024
+ *
2025
+ * - If `type="single"`, this is a date in `YYYY-MM-DD` format.
2026
+ * - If `type="multiple"`, this is a comma-separated list of dates in `YYYY-MM-DD` format.
2027
+ * - If `type="range"`, this is a range in `YYYY-MM-DD--YYYY-MM-DD` format. The range is inclusive.
2028
+ *
2029
+ * @default ""
2030
+ */
2031
+ defaultValue?: string;
2032
+ /**
2033
+ * Current selected value.
2034
+ *
2035
+ * The default means no date is selected.
2036
+ *
2037
+ * If the provided value is invalid, no date is selected.
2038
+ *
2039
+ * Otherwise:
2040
+ *
2041
+ * - If `type="single"`, this is a date in `YYYY-MM-DD` format.
2042
+ * - If `type="multiple"`, this is a comma-separated list of dates in `YYYY-MM-DD` format.
2043
+ * - If `type="range"`, this is a range in `YYYY-MM-DD--YYYY-MM-DD` format. The range is inclusive.
2044
+ *
2045
+ * @default ""
2046
+ */
2047
+ value?: string;
2048
+ /**
2049
+ * Callback when any date is selected.
2050
+ *
2051
+ * - If `type="single"`, fires when a date is selected and happens before `onChange`.
2052
+ * - If `type="multiple"`, fires when a date is selected before `onChange`.
2053
+ * - If `type="range"`, fires when a first date is selected (with the partial value formatted as `YYYY-MM-DD--`), and when the last date is selected before `onChange`.
2054
+ */
2055
+ onInput?: (event: Event) => void;
2056
+ /**
2057
+ * Callback when the value is committed.
2058
+ *
2059
+ * - If `type="single"`, fires when a date is selected after `onInput`.
2060
+ * - If `type="multiple"`, fires when a date is selected after `onInput`.
2061
+ * - If `type="range"`, fires when a range is completed by selecting the end date after `onInput`.
2062
+ */
2063
+ onChange?: (event: Event) => void;
2064
+ }
2065
+ export interface DateFieldProps
2066
+ extends GlobalProps,
2067
+ BaseTextFieldProps,
2068
+ Pick<
2069
+ DatePickerProps,
2070
+ | 'view'
2071
+ | 'defaultView'
2072
+ | 'value'
2073
+ | 'defaultValue'
2074
+ | 'allow'
2075
+ | 'disallow'
2076
+ | 'allowDays'
2077
+ | 'disallowDays'
2078
+ | 'onViewChange'
2079
+ >,
2080
+ AutocompleteProps<DateAutocompleteField> {
2081
+ /**
2082
+ * Callback when the field has an invalid date.
2083
+ * This callback will be called, if the date typed is invalid or disabled.
2084
+ *
2085
+ * Dates that don’t exist or have formatting errors are considered invalid. Some examples of invalid dates are:
2086
+ * - 2021-02-31: February doesn’t have 31 days
2087
+ * - 2021-02-00: The day can’t be 00
2088
+ *
2089
+ * Disallowed dates are considered invalid.
2090
+ *
2091
+ * It’s important to note that this callback will be called only when the user **finishes editing** the date,
2092
+ * and it’s called right after the `onChange` callback.
2093
+ * The field is **not** validated on every change to the input. Once the buyer has signalled that
2094
+ * they have finished editing the field (typically, by blurring the field), the field gets validated and the callback is run if the value is invalid.
2095
+ */
2096
+ onInvalid?: (event: Event) => void;
2097
+ }
2098
+ export type DateAutocompleteField = ExtractStrict<
2099
+ AnyAutocompleteField,
2100
+ | 'bday'
2101
+ | 'bday-day'
2102
+ | 'bday-month'
2103
+ | 'bday-year'
2104
+ | 'cc-expiry'
2105
+ | 'cc-expiry-month'
2106
+ | 'cc-expiry-year'
2107
+ >;
2108
+ export interface DateSpinnerProps
2109
+ extends GlobalProps,
2110
+ Pick<
2111
+ DatePickerProps,
2112
+ 'defaultValue' | 'value' | 'onInput' | 'onChange' | 'onBlur' | 'onFocus'
2113
+ > {
2114
+ /**
2115
+ * Default selected value for the spinner.
2116
+ *
2117
+ * This uses a date in `YYYY-MM-DD` format.
2118
+ *
2119
+ * @default ""
2120
+ */
2121
+ defaultValue?: string;
2122
+ /**
2123
+ * Current selected value for the spinner.
2124
+ *
2125
+ * This uses a date in `YYYY-MM-DD` format.
2126
+ *
2127
+ * @default ""
2128
+ */
2129
+ value?: string;
2130
+ /**
2131
+ * Callback after the wheels have finished spinning and the value has
2132
+ * settled.
2133
+ *
2134
+ * Fires once when inertial/momentum scrolling stops and the selection snaps
2135
+ * into place.
2136
+ */
2137
+ onInput?: (event: Event) => void;
2138
+ /**
2139
+ * Callback when the selection has been confirmed by the user.
2140
+ *
2141
+ * Fires only when the user explicitly commits the selection (for example, by
2142
+ * pressing a confirmation control).
2143
+ */
2144
+ onChange?: (event: Event) => void;
2145
+ }
2146
+ export interface DividerProps extends GlobalProps {
2147
+ /**
2148
+ * Specify the direction of the divider. This uses [logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values).
2149
+ *
2150
+ * @default 'inline'
2151
+ */
2152
+ direction?: 'inline' | 'block';
2153
+ /**
2154
+ * Modify the color to be more or less intense.
2155
+ *
2156
+ * @default 'base'
2157
+ */
2158
+ color?: ColorKeyword;
2159
+ }
2160
+ export interface EmailFieldProps
2161
+ extends GlobalProps,
2162
+ BaseTextFieldProps,
2163
+ MinMaxLengthProps,
2164
+ AutocompleteProps<EmailAutocompleteField> {}
2165
+ export type EmailAutocompleteField = ExtractStrict<
2166
+ AnyAutocompleteField,
2167
+ 'email' | `${AutocompleteAddressGroup} email`
2168
+ >;
2169
+ export type SpacingKeyword = SizeKeyword | 'none';
2170
+ export interface GapProps {
2171
+ /**
2172
+ * Adjust spacing between elements.
2173
+ *
2174
+ * A single value applies to both axes.
2175
+ * A pair of values (eg `large-100 large-500`) can be used to set the inline and block axes respectively.
2176
+ *
2177
+ * @default 'none'
2178
+ */
2179
+ gap?: MaybeResponsive<MaybeTwoValuesShorthandProperty<SpacingKeyword>>;
2180
+ /**
2181
+ * Adjust spacing between elements in the block axis.
2182
+ *
2183
+ * This overrides the row value of `gap`.
2184
+ *
2185
+ * @default '' - meaning no override
2186
+ */
2187
+ rowGap?: MaybeResponsive<SpacingKeyword | ''>;
2188
+ /**
2189
+ * Adjust spacing between elements in the inline axis.
2190
+ *
2191
+ * This overrides the column value of `gap`.
2192
+ *
2193
+ * @default '' - meaning no override
2194
+ */
2195
+ columnGap?: MaybeResponsive<SpacingKeyword | ''>;
2196
+ }
2197
+ export type BaselinePosition = 'baseline' | 'first baseline' | 'last baseline';
2198
+ export type ContentDistribution =
2199
+ | 'space-between'
2200
+ | 'space-around'
2201
+ | 'space-evenly'
2202
+ | 'stretch';
2203
+ export type ContentPosition = 'center' | 'start' | 'end';
2204
+ export type OverflowPosition =
2205
+ | `unsafe ${ContentPosition}`
2206
+ | `safe ${ContentPosition}`;
2207
+ /**
2208
+ * Align items sets the align-self value on all direct children as a group.
2209
+ *
2210
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
2211
+ */
2212
+ export type AlignItemsKeyword =
2213
+ | 'normal'
2214
+ | 'stretch'
2215
+ | BaselinePosition
2216
+ | OverflowPosition
2217
+ | ContentPosition;
2218
+ /**
2219
+ * Justify content defines how the browser distributes space between and around content items along the main-axis of a flex container, and the inline axis of a grid container.
2220
+ *
2221
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
2222
+ */
2223
+ export type JustifyContentKeyword =
2224
+ | 'normal'
2225
+ | ContentDistribution
2226
+ | OverflowPosition
2227
+ | ContentPosition;
2228
+ /**
2229
+ *Align content sets the distribution of space between and around content items along a flexbox's cross axis, or a grid or block-level element's block axis.
2230
+ *
2231
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
2232
+ */
2233
+ export type AlignContentKeyword =
2234
+ | 'normal'
2235
+ | BaselinePosition
2236
+ | ContentDistribution
2237
+ | OverflowPosition
2238
+ | ContentPosition;
2239
+ export interface BaseTypographyProps {
2240
+ /**
2241
+ * Modify the color to be more or less intense.
2242
+ *
2243
+ * @default 'base'
2244
+ */
2245
+ color?: ColorKeyword;
2246
+ /**
2247
+ * Sets the tone of the component, based on the intention of the information being conveyed.
2248
+ *
2249
+ * @default 'auto'
2250
+ */
2251
+ tone?: ToneKeyword;
2252
+ /**
2253
+ * Set the numeric properties of the font.
2254
+ *
2255
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric
2256
+ *
2257
+ * @default 'auto' - inherit from the parent element
2258
+ */
2259
+ fontVariantNumeric?: 'auto' | 'normal' | 'tabular-nums';
2260
+ /**
2261
+ * Indicate the text language. Useful when the text is in a different language than the rest of the page.
2262
+ * It will allow assistive technologies such as screen readers to invoke the correct pronunciation.
2263
+ * [Reference of values](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) ("subtag" label)
2264
+ *
2265
+ * It is recommended to combine it with the `dir` attribute to ensure the text is rendered correctly if the surrounding content’s direction is different.
2266
+ *
2267
+ * @default ''
2268
+ */
2269
+ lang?: string;
2270
+ /**
2271
+ * Indicates the directionality of the element’s text.
2272
+ *
2273
+ * - `ltr`: languages written from left to right (e.g. English)
2274
+ * - `rtl`: languages written from right to left (e.g. Arabic)
2275
+ * - `auto`: the user agent determines the direction based on the content
2276
+ * - `''`: direction is inherited from parent elements (equivalent to not setting the attribute)
2277
+ *
2278
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir
2279
+ *
2280
+ * @default ''
2281
+ */
2282
+ dir?: 'ltr' | 'rtl' | 'auto' | '';
2283
+ }
2284
+ export interface IconProps
2285
+ extends GlobalProps,
2286
+ Pick<InteractionProps, 'interestFor'> {
2287
+ /**
2288
+ * Sets the tone of the icon, based on the intention of the information being conveyed.
2289
+ *
2290
+ * @default 'auto'
2291
+ */
2292
+ tone?: ToneKeyword;
2293
+ /**
2294
+ * Modify the color to be more or less intense.
2295
+ *
2296
+ * @default 'base'
2297
+ */
2298
+ color?: ColorKeyword;
2299
+ /**
2300
+ * Adjusts the size of the icon.
2301
+ *
2302
+ * @default 'base'
2303
+ */
2304
+ size?: SizeKeyword;
2305
+ type?: IconType | AnyString;
2306
+ }
2307
+ export interface BaseImageProps {
2308
+ /**
2309
+ * An alternative text description that describe the image for the reader to
2310
+ * understand what it is about. It is extremely useful for both users using
2311
+ * assistive technology and sighted users. A well written description
2312
+ * provides people with visual impairments the ability to participate in
2313
+ * consuming non-text content. When a screen readers encounters an `s-image`,
2314
+ * the description is read and announced aloud. If an image fails to load,
2315
+ * potentially due to a poor connection, the `alt` is displayed on
2316
+ * screen instead. This has the benefit of letting a sighted buyer know an
2317
+ * image was meant to load here, but as an alternative, they’re still able to
2318
+ * consume the text content. Read
2319
+ * [considerations when writing alternative text](https://www.shopify.com/ca/blog/image-alt-text#4)
2320
+ * to learn more.
2321
+ *
2322
+ * @default `''`
2323
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#alt
2324
+ */
2325
+ alt?: string;
2326
+ /**
2327
+ * A set of media conditions and their corresponding sizes.
2328
+ *
2329
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#sizes
2330
+ */
2331
+ sizes?: string;
2332
+ /**
2333
+ * The image source (either a remote URL or a local file resource).
2334
+ *
2335
+ * When the image is loading or no `src` is provided, a placeholder will be rendered.
2336
+ *
2337
+ * @implementation Surfaces may choose the style of the placeholder, but the space the image occupies should be
2338
+ * reserved, except in cases where the image area does not have a contextual inline or block size, which should be rare.
2339
+ *
2340
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#src
2341
+ */
2342
+ src?: string;
2343
+ /**
2344
+ * A set of image sources and their width or pixel density descriptors.
2345
+ *
2346
+ * This overrides the `src` property.
2347
+ *
2348
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#srcset
2349
+ */
2350
+ srcSet?: string;
2351
+ }
2352
+ export interface ImageProps extends GlobalProps, BaseImageProps, BorderProps {
2353
+ /**
2354
+ * Sets the semantic meaning of the component’s content. When set,
2355
+ * the role will be used by assistive technologies to help users
2356
+ * navigate the page.
2357
+ *
2358
+ * @default 'img'
2359
+ *
2360
+ * @implementation The `img` role doesn't need to be applied if
2361
+ * the host applies it for you; for example, an HTML host rendering
2362
+ * an `<img>` element should not apply the `img` role.
2363
+ */
2364
+ accessibilityRole?:
2365
+ | 'img'
2366
+ | ExtractStrict<AccessibilityRole, 'presentation' | 'none'>;
2367
+ /**
2368
+ * The displayed inline width of the image.
2369
+ *
2370
+ * - `fill`: the image will takes up 100% of the available inline size.
2371
+ * - `auto`: the image will be displayed at its natural size.
2372
+ *
2373
+ * @default 'fill'
2374
+ *
2375
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#width
2376
+ */
2377
+ inlineSize?: 'fill' | 'auto';
2378
+ /**
2379
+ * The aspect ratio of the image.
2380
+ *
2381
+ * The rendering of the image will depend on the `inlineSize` value:
2382
+ *
2383
+ * - `inlineSize="fill"`: the aspect ratio will be respected and the image will take the necessary space.
2384
+ * - `inlineSize="auto"`: the image will not render until it has loaded and the aspect ratio will be ignored.
2385
+ *
2386
+ * For example, if the value is set as `50 / 100`, the getter returns `50 / 100`.
2387
+ * If the value is set as `0.5`, the getter returns `0.5 / 1`.
2388
+ *
2389
+ * @default '1/1'
2390
+ *
2391
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio
2392
+ */
2393
+ aspectRatio?:
2394
+ | `${number}${optionalSpace}/${optionalSpace}${number}`
2395
+ | `${number}`;
2396
+ /**
2397
+ * Determines how the content of the image is resized to fit its container.
2398
+ * The image is positioned in the center of the container.
2399
+ *
2400
+ * @default 'contain'
2401
+ *
2402
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
2403
+ */
2404
+ objectFit?: 'contain' | 'cover';
2405
+ /**
2406
+ * Determines the loading behavior of the image:
2407
+ * - `eager`: Immediately loads the image, irrespective of its position within the visible viewport.
2408
+ * - `lazy`: Delays loading the image until it approaches a specified distance from the viewport.
2409
+ *
2410
+ * @default 'eager'
2411
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#loading
2412
+ */
2413
+ loading?: 'eager' | 'lazy';
2414
+ /**
2415
+ * Invoked when load completes successfully.
2416
+ *
2417
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onload
2418
+ */
2419
+ onLoad?: (event: Event) => void;
2420
+ /**
2421
+ * Invoked on load error.
2422
+ *
2423
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
2424
+ */
2425
+ onError?: (event: Event) => void;
2426
+ }
2427
+ export interface ModalProps
2428
+ extends GlobalProps,
2429
+ BaseOverlayProps,
2430
+ BaseOverlayMethods,
2431
+ ActionSlots {
2432
+ /**
2433
+ * A label that describes the purpose of the modal. When set,
2434
+ * it will be announced to users using assistive technologies and will
2435
+ * provide them with more context.
2436
+ *
2437
+ * This overrides the `heading` prop for screen readers.
2438
+ */
2439
+ accessibilityLabel?: string;
2440
+ /**
2441
+ * A title that describes the content of the Modal.
2442
+ *
2443
+ */
2444
+ heading?: string;
2445
+ /**
2446
+ * Adjust the padding around the Modal content.
2447
+ *
2448
+ * `base`: applies padding that is appropriate for the element.
2449
+ *
2450
+ * `none`: removes all padding from the element. This can be useful when elements inside the Modal need to span
2451
+ * to the edge of the Modal. For example, a full-width image. In this case, rely on `Box` with a padding of 'base'
2452
+ * to bring back the desired padding for the rest of the content.
2453
+ *
2454
+ * @default 'base'
2455
+ */
2456
+ padding?: 'base' | 'none';
2457
+ /**
2458
+ * Adjust the size of the Modal.
2459
+ *
2460
+ * `max`: expands the Modal to its maximum size as defined by the host application, on both the horizontal and vertical axes.
2461
+ *
2462
+ * @default 'base'
2463
+ */
2464
+ size?: SizeKeyword | 'max';
2465
+ /**
2466
+ * The content of the Modal.
2467
+ */
2468
+ children?: ComponentChildren;
2469
+ }
2470
+ export interface NumberFieldProps
2471
+ extends GlobalProps,
2472
+ BaseTextFieldProps,
2473
+ AutocompleteProps<NumberAutocompleteField>,
2474
+ NumberConstraintsProps,
2475
+ FieldDecorationProps {
2476
+ /**
2477
+ * Sets the virtual keyboard.
2478
+ *
2479
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode
2480
+ * @default 'decimal'
2481
+ */
2482
+ inputMode?: 'decimal' | 'numeric';
2483
+ }
2484
+ export type NumberAutocompleteField = ExtractStrict<
2485
+ AnyAutocompleteField,
2486
+ 'one-time-code' | 'cc-number' | 'cc-csc'
2487
+ >;
2488
+ export interface PageProps extends GlobalProps, ActionSlots {
2489
+ /**
2490
+ * The content of the Page.
2491
+ */
2492
+ children?: ComponentChildren;
2493
+ /**
2494
+ * The main page heading
2495
+ */
2496
+ heading?: string;
2497
+ /**
2498
+ * The text to be used as subtitle.
2499
+ */
2500
+ subheading?: string;
2501
+ /**
2502
+ * Additional contextual information about the page.
2503
+ */
2504
+ accessory?: ComponentChildren;
2505
+ /**
2506
+ * The breadcrumb actions to perform, provided as link elements.
2507
+ */
2508
+ breadcrumbActions?: ComponentChildren;
2509
+ /**
2510
+ * The aside element is section of a page that contains content that is tangentially related to the content around the aside element, and which could be considered separate from that content.
2511
+ * Such sections are often represented as sidebars in printed typography.
2512
+ * @implementation surfaces built ontop of the web platform should implement this using the <aside> element https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside
2513
+ */
2514
+ aside?: ComponentChildren;
2515
+ /**
2516
+ * The inline size of the page
2517
+ * - `base` corresponds to a set default inline size
2518
+ * - `large` full width with whitespace
2519
+ *
2520
+ * @default 'base'
2521
+ */
2522
+ inlineSize?: SizeKeyword;
2523
+ }
2524
+ export interface ScrollEventProps {
2525
+ /**
2526
+ * Callback when the scroll position reaches any edge.
2527
+ *
2528
+ * Provides information about which edges have been reached:
2529
+ * - `inline: 'start'` - reached the inline-start edge
2530
+ * - `inline: 'end'` - reached the inline-end edge
2531
+ * - `block: 'start'` - reached the block-start edge
2532
+ * - `block: 'end'` - reached the block-end edge
2533
+ * - `null` - not at that edge
2534
+ *
2535
+ * Uses the flow‑relative axes.
2536
+ */
2537
+ onScrollToEdge?: (
2538
+ inline: 'start' | 'end' | null,
2539
+ block: 'start' | 'end' | null,
2540
+ ) => void;
2541
+ /**
2542
+ * Distance from the edge at which `onScrollToEdge` fires.
2543
+ * Percentage values are relative to the scrollable content's size in that axis.
2544
+ *
2545
+ * [1-to-4-value syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box) is
2546
+ * supported.
2547
+ *
2548
+ * The order is:
2549
+ * - 4 values: `block-start inline-end block-end inline-start`
2550
+ * - 3 values: `block-start inline block-end`
2551
+ * - 2 values: `block inline`
2552
+ *
2553
+ * For example:
2554
+ * - `48px` means the distance from the edge at which `onScrollToEdge` fires from block-start, inline-end, block-end and inline-start is `48px`.
2555
+ * - `48px 0` means the distance from the edge at which `onScrollToEdge` fires from block-start and block-end is `48px`, and for inline-start and inline-end is `0`.
2556
+ * - `48 0 48` means the distance from the edge at which `onScrollToEdge` fires from block-start is `48px`, for inline-end is `0`, for block-end is `48px` and for inline-start is `0`.
2557
+ * - `48px 0 48px 10%` means the distance from the edge at which `onScrollToEdge` fires from block-start is `48px`, for inline-end is `0`, for block-end is `48px` and for inline-start is `10%`.
2558
+ *
2559
+ * @default '0'
2560
+ * Refer to [MDN](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/scrollMargin) for more details.
2561
+ */
2562
+ scrollMargin?: MaybeAllValuesShorthandProperty<SizeUnits>;
2563
+ }
2564
+ export type OverflowKeyword = 'auto' | 'hidden';
2565
+ export interface ScrollBoxProps
2566
+ extends GlobalProps,
2567
+ ScrollEventProps,
2568
+ Omit<BaseBoxPropsWithRole, 'overflow'> {
2569
+ /**
2570
+ * Sets the overflow behavior of the element.
2571
+ *
2572
+ * - `hidden`: clips the content when it is larger than the element’s container and the element will not be scrollable in that axis.
2573
+ * - `auto`: clips the content when it is larger than the element’s container and make it scrollable in that axis.
2574
+ *
2575
+ * 1-to-2-value syntax is supported but note that, contrary to the CSS, it uses flow-relative values and the order is:
2576
+ *
2577
+ * - 2 values: `block inline`
2578
+ *
2579
+ * @default 'auto'
2580
+ *
2581
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/overflow
2582
+ */
2583
+ overflow?: OverflowKeyword | `${OverflowKeyword} ${OverflowKeyword}`;
2584
+ }
2585
+ export interface SearchFieldProps
2586
+ extends GlobalProps,
2587
+ BaseTextFieldProps,
2588
+ MinMaxLengthProps,
2589
+ AutocompleteProps<SearchAutocompleteField> {}
2590
+ export type SearchAutocompleteField = TextAutocompleteField;
2591
+ export interface SectionProps extends GlobalProps, ActionSlots {
2592
+ /**
2593
+ * The content of the Section.
2594
+ */
2595
+ children?: ComponentChildren;
2596
+ /**
2597
+ * A label used to describe the section that will be announced by assistive technologies.
2598
+ *
2599
+ * When no `heading` property is provided or included as a children of the Section, you **must** provide an
2600
+ * `accessibilityLabel` to describe the Section. This is important as it allows assistive technologies to provide
2601
+ * the right context to users.
2602
+ */
2603
+ accessibilityLabel?: string;
2604
+ /**
2605
+ * A title that describes the content of the section.
2606
+ */
2607
+ heading?: string;
2608
+ /**
2609
+ * Adjust the padding of all edges.
2610
+ *
2611
+ * - `base`: applies padding that is appropriate for the element. Note that it may result in no padding if
2612
+ * this is the right design decision in a particular context.
2613
+ * - `none`: removes all padding from the element. This can be useful when elements inside the Section need to span
2614
+ * to the edge of the Section. For example, a full-width image. In this case, rely on `s-box` with a padding of 'base'
2615
+ * to bring back the desired padding for the rest of the content.
2616
+ *
2617
+ * @default 'base'
2618
+ */
2619
+ padding?: 'base' | 'none';
2620
+ }
2621
+ export interface StackProps
2622
+ extends GlobalProps,
2623
+ BaseBoxPropsWithRole,
2624
+ GapProps {
2625
+ /**
2626
+ * The content of the Stack.
2627
+ */
2628
+ children?: ComponentChildren;
2629
+ /**
2630
+ * Sets how the children are placed within the Stack. This uses [logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values).
2631
+ *
2632
+ * @default 'block'
2633
+ *
2634
+ * @implementation the content will wrap if the direction is 'inline', and not wrap if the direction is 'block'
2635
+ */
2636
+ direction?: MaybeResponsive<'block' | 'inline'>;
2637
+ /**
2638
+ * Aligns the Stack along the main axis.
2639
+ *
2640
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
2641
+ * @default 'normal'
2642
+ */
2643
+ justifyContent?: MaybeResponsive<JustifyContentKeyword>;
2644
+ /**
2645
+ * Aligns the Stack's children along the cross axis.
2646
+ *
2647
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
2648
+ * @default 'normal'
2649
+ */
2650
+ alignItems?: MaybeResponsive<AlignItemsKeyword>;
2651
+ /**
2652
+ * Aligns the Stack along the cross axis.
2653
+ *
2654
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
2655
+ * @default 'normal'
2656
+ */
2657
+ alignContent?: MaybeResponsive<AlignContentKeyword>;
2658
+ }
2659
+ export interface TextProps
2660
+ extends GlobalProps,
2661
+ AccessibilityVisibilityProps,
2662
+ BaseTypographyProps,
2663
+ DisplayProps,
2664
+ Pick<InteractionProps, 'interestFor'> {
2665
+ /**
2666
+ * The content of the Text.
2667
+ */
2668
+ children?: ComponentChildren;
2669
+ /**
2670
+ * Provide semantic meaning and default styling to the text.
2671
+ *
2672
+ * Other presentation properties on Text override the default styling.
2673
+ *
2674
+ * @default 'generic'
2675
+ */
2676
+ type?: TextType;
2677
+ }
2678
+ export type TextType =
2679
+ /**
2680
+ * Indicate the text is contact information. Typically used for addresses.
2681
+ *
2682
+ * This must have `inline` layout (despite the default being `block` in HTML hosts).
2683
+ *
2684
+ * Surfaces may apply styling to this type.
2685
+ *
2686
+ * In an HTML host, the text will be rendered in an `<address>` element.
2687
+ *
2688
+ * @implementation vertical alignment should be `baseline` (`vertical-align: baseline`)
2689
+ *
2690
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address
2691
+ */
2692
+ | 'address'
2693
+ /**
2694
+ * Indicate the text is no longer accurate or no longer relevant. One such use-case is discounted prices.
2695
+ *
2696
+ * Surfaces should apply styling to this type to suggest its content no longer applies.
2697
+ *
2698
+ * In an HTML host, the text will be rendered in a `<s>` element.
2699
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s
2700
+ */
2701
+ | 'redundant'
2702
+ /**
2703
+ * Indicate the text is marked or highlighted and relevant to the user’s current action.
2704
+ * One such use-case is to indicate the characters that matched a search query.
2705
+ *
2706
+ * Surfaces should apply styling to this type to draw attention to the content.
2707
+ *
2708
+ * In an HTML host, the text will be rendered in a `<mark>` element.
2709
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark
2710
+ */
2711
+ | 'mark'
2712
+ /**
2713
+ * Indicate emphatic stress. Typically for words that have a stressed emphasis compared to surrounding text.
2714
+ *
2715
+ * Surfaces should apply styling to this type to distinguish it from surrounding text. Italicization is a common choice, but not required.
2716
+ *
2717
+ * In an HTML host, the text will be rendered in an `<em>` element.
2718
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em
2719
+ */
2720
+ | 'emphasis'
2721
+ /**
2722
+ * Indicate an offset from the normal prose of the text. Typically used to indicate
2723
+ * a foreign word, fictional character thoughts, or when the text refers to the definition of a word
2724
+ * instead of representing its semantic meaning.
2725
+ *
2726
+ * Surfaces should italicize this content by default.
2727
+ *
2728
+ * In an HTML host, the text will be rendered in a `<i>` tag.
2729
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/i
2730
+ */
2731
+ | 'offset'
2732
+ /**
2733
+ * Indicate strong importance, seriousness, or urgency.
2734
+ *
2735
+ * Surfaces should render this content bold by default.
2736
+ *
2737
+ * In an HTML host, the text will be rendered in a `<strong>` tag.
2738
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong
2739
+ */
2740
+ | 'strong'
2741
+ /**
2742
+ * Indicates the text is considered less important than the main content, but is still necessary for the reader to understand.
2743
+ * It can be used for secondary content but also for disclaimers, terms and conditions, or legal information.
2744
+ *
2745
+ * Surfaces should apply a smaller font size than the default size.
2746
+ *
2747
+ * In an HTML host, the text will be rendered in a `<small>` element.
2748
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/small
2749
+ */
2750
+ | 'small'
2751
+ /**
2752
+ * No additional semantics or styling is applied.
2753
+ *
2754
+ * Surfaces must not apply any default styling to this type.
2755
+ *
2756
+ * In an HTML host, the text will be rendered in a `<span>` tag.
2757
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span
2758
+ */
2759
+ | 'generic';
2760
+ export interface TextAreaProps
2761
+ extends GlobalProps,
2762
+ BaseTextFieldProps,
2763
+ MinMaxLengthProps,
2764
+ AutocompleteProps<TextAutocompleteField> {
2765
+ /**
2766
+ * A number of visible text lines.
2767
+ *
2768
+ * @default 2
2769
+ */
2770
+ rows?: number;
2771
+ }
2772
+ export interface TextFieldProps
2773
+ extends GlobalProps,
2774
+ BaseTextFieldProps,
2775
+ MinMaxLengthProps,
2776
+ AutocompleteProps<TextAutocompleteField>,
2777
+ FieldDecorationProps {}
2778
+ export interface TileProps
2779
+ extends GlobalProps,
2780
+ Pick<BaseClickableProps, 'onClick' | 'disabled'> {
2781
+ /**
2782
+ * A title that describes the content of the Tile.
2783
+ *
2784
+ * @default ''
2785
+ */
2786
+ heading?: string;
2787
+ /**
2788
+ * Supporting text displayed below the heading.
2789
+ *
2790
+ * @default ''
2791
+ */
2792
+ subheading?: string;
2793
+ /**
2794
+ * A numeric indicator rendered within the Tile (for example, a count or a step number).
2795
+ *
2796
+ * - When provided, the indicator is displayed inside the tile.
2797
+ * - Intended for small integers. It may clamp, truncate, or abbreviate larger values.
2798
+ *
2799
+ */
2800
+ itemCount?: number;
2801
+ /**
2802
+ * Sets the tone of the Tile, based on the intention of the information being conveyed.
2803
+ * @default 'auto'
2804
+ */
2805
+ tone?: ExtractStrict<ToneKeyword, 'auto' | 'neutral' | 'accent'>;
2806
+ }
2807
+ export interface TimePickerProps
2808
+ extends GlobalProps,
2809
+ InputProps,
2810
+ FocusEventProps {
2811
+ /**
2812
+ * Times that can be selected.
2813
+ *
2814
+ * A comma-separated list of allowed time ranges. Whitespace is allowed after commas.
2815
+ *
2816
+ * The default `''` allows all times.
2817
+ *
2818
+ * Each time range is in `HH:MM--HH:MM` format.
2819
+ *
2820
+ * The end of the range is exclusive, so `09:00--10:00` allows selecting `09:00` but not `10:00`.
2821
+ *
2822
+ * Either side of `--` can be omitted to create an unbounded range.
2823
+ *
2824
+ * Whitespace is allowed either side of `--`.
2825
+ *
2826
+ * @default ''
2827
+ *
2828
+ * @example
2829
+ * `09:00--10:00, 13:00--14:00` - assuming the step is 1 hour, this allows selecting `09:00` or `13:00`.
2830
+ * `12:00--` - allows selecting `12:00` and all times after it.
2831
+ */
2832
+ allow?: string;
2833
+ /**
2834
+ * Times that cannot be selected. This subtracts from `allow`.
2835
+ *
2836
+ * A comma-separated list of allowed time ranges. Whitespace is allowed after commas.
2837
+ *
2838
+ * The default `''` has no effect on `allow`.
2839
+ *
2840
+ * Each time range is in `HH:MM--HH:MM` format.
2841
+ *
2842
+ * The end of the range is exclusive, so `09:00--10:00` disallows selecting `09:00` but not `10:00`.
2843
+ *
2844
+ * Either side of `--` can be omitted to create an unbounded range.
2845
+ *
2846
+ * Whitespace is allowed either side of `--`.
2847
+ *
2848
+ * @default ''
2849
+ *
2850
+ * @example
2851
+ * `09:00--10:00, 13:00--14:00` - assuming the step is 1 hour, this disallows selecting `09:00` or `13:00`.
2852
+ */
2853
+ disallow?: string;
2854
+ /**
2855
+ * Default selected value.
2856
+ *
2857
+ * The default, `''`, means no time is selected.
2858
+ *
2859
+ * The value must be a 24-hour time in `HH:mm:ss` format, with leading zeros.
2860
+ *
2861
+ * Examples: `"00:00:00"`, `"09:05:00"`, `"23:59:00"`, `"14:03:30"`.
2862
+ *
2863
+ * This follows the HTML time input value format, which is always 24-hour with
2864
+ * leading zeros regardless of UI presentation.
2865
+ *
2866
+ * See: https://developer.mozilla.org/docs/Web/HTML/Element/input/time
2867
+ *
2868
+ * If the provided value is invalid, '' is used as the value.
2869
+ *
2870
+ * @default ''
2871
+ */
2872
+ defaultValue?: string;
2873
+ /**
2874
+ * Current selected value.
2875
+ *
2876
+ * The default, `''`, means no time is selected.
2877
+ *
2878
+ * The value must be a 24-hour time in `HH:mm:ss` format, with leading zeros.
2879
+ *
2880
+ * Examples: `"00:00:00"`, `"09:05:00"`, `"23:59:00"`, `"14:03:30"`.
2881
+ *
2882
+ * This follows the HTML time input value format, which is always 24-hour with
2883
+ * leading zeros regardless of UI presentation.
2884
+ *
2885
+ * See: https://developer.mozilla.org/docs/Web/HTML/Element/input/time
2886
+ *
2887
+ * If the provided value is invalid, '' is used as the value.
2888
+ *
2889
+ * @default ''
2890
+ */
2891
+ value?: string;
2892
+ /**
2893
+ * The step between selectable times, in seconds.
2894
+ *
2895
+ * @default 60
2896
+ */
2897
+ step?: number;
2898
+ }
2899
+ export interface TimeFieldProps
2900
+ extends GlobalProps,
2901
+ BaseTextFieldProps,
2902
+ Pick<
2903
+ TimePickerProps,
2904
+ 'value' | 'defaultValue' | 'allow' | 'disallow' | 'step'
2905
+ > {
2906
+ /**
2907
+ * Callback when the field has an invalid time.
2908
+ * This callback will be called, if the time typed is invalid or disabled.
2909
+ *
2910
+ * Times that don’t exist or have formatting errors are considered invalid. Some examples of invalid times are:
2911
+ * - 24:00
2912
+ * - 12:60
2913
+ *
2914
+ * Disallowed times are considered invalid.
2915
+ *
2916
+ * It’s important to note that this callback will be called only when the user **finishes editing** the time,
2917
+ * and it’s called right after the `onChange` callback.
2918
+ * The field is **not** validated on every change to the input. Once the buyer has signalled that
2919
+ * they have finished editing the field (typically, by blurring the field), the field gets validated and the callback is run if the value is invalid.
2920
+ */
2921
+ onInvalid?: (event: Event) => void;
2922
+ /**
2923
+ * Current selected value.
2924
+ *
2925
+ * The default, `''`, means no time is selected.
2926
+ *
2927
+ * The value must be a 24-hour time in `HH:mm:ss` format, with leading zeros.
2928
+ *
2929
+ * Examples: `"00:00:00"`, `"09:05:00"`, `"23:59:00"`, `"14:03:30"`.
2930
+ *
2931
+ * This follows the HTML time input value format, which is always 24-hour with
2932
+ * leading zeros regardless of UI presentation.
2933
+ *
2934
+ * See: https://developer.mozilla.org/docs/Web/HTML/Element/input/time
2935
+ */
2936
+ value?: string;
2937
+ /**
2938
+ * Default selected value.
2939
+ *
2940
+ * The default, `''`, means no time is selected.
2941
+ *
2942
+ * The value must be a 24-hour time in `HH:mm:ss` format, with leading zeros.
2943
+ *
2944
+ * Examples: `"00:00:00"`, `"09:05:00"`, `"23:59:00"`, `"14:03:30"`.
2945
+ *
2946
+ * This follows the HTML time input value format, which is always 24-hour with
2947
+ * leading zeros regardless of UI presentation.
2948
+ *
2949
+ * See: https://developer.mozilla.org/docs/Web/HTML/Element/input/time
2950
+ */
2951
+ defaultValue?: string;
2952
+ }
2953
+ //
2954
+ // Preact Virtual DOM
2955
+ // -----------------------------------
2956
+ export interface VNode<P = {}> {
2957
+ type: ComponentType<P> | string;
2958
+ props: P & {
2959
+ children: ComponentChildren$1;
2960
+ };
2961
+ key: Key;
2962
+ /**
2963
+ * ref is not guaranteed by React.ReactElement, for compatibility reasons
2964
+ * with popular react libs we define it as optional too
2965
+ */
2966
+ ref?: Ref<any> | null;
2967
+ /**
2968
+ * The time this `vnode` started rendering. Will only be set when
2969
+ * the devtools are attached.
2970
+ * Default value: `0`
2971
+ */
2972
+ startTime?: number;
2973
+ /**
2974
+ * The time that the rendering of this `vnode` was completed. Will only be
2975
+ * set when the devtools are attached.
2976
+ * Default value: `-1`
2977
+ */
2978
+ endTime?: number;
2979
+ }
2980
+ //
2981
+ // Preact Component interface
2982
+ // -----------------------------------
2983
+ export type Key = string | number | any;
2984
+ export type RefObject<T> = {
2985
+ current: T | null;
2986
+ };
2987
+ export type RefCallback<T> = (instance: T | null) => void | (() => void);
2988
+ export type Ref<T> = RefObject<T> | RefCallback<T> | null;
2989
+ export type ComponentChild =
2990
+ | VNode<any>
2991
+ | object
2992
+ | string
2993
+ | number
2994
+ | bigint
2995
+ | boolean
2996
+ | null
2997
+ | undefined;
2998
+ type ComponentChildren$1 = ComponentChild[] | ComponentChild;
2999
+ export interface Attributes {
3000
+ key?: Key | undefined;
3001
+ jsx?: boolean | undefined;
3002
+ }
3003
+ export interface ErrorInfo {
3004
+ componentStack?: string;
3005
+ }
3006
+ export type RenderableProps<P, RefType = any> = P &
3007
+ Readonly<
3008
+ Attributes & {
3009
+ children?: ComponentChildren$1;
3010
+ ref?: Ref<RefType>;
3011
+ }
3012
+ >;
3013
+ export type ComponentType<P = {}> = ComponentClass<P> | FunctionComponent<P>;
3014
+ export interface FunctionComponent<P = {}> {
3015
+ (props: RenderableProps<P>, context?: any): ComponentChildren$1;
3016
+ displayName?: string;
3017
+ defaultProps?: Partial<P> | undefined;
3018
+ }
3019
+ export interface ComponentClass<P = {}, S = {}> {
3020
+ new (props: P, context?: any): Component<P, S>;
3021
+ displayName?: string;
3022
+ defaultProps?: Partial<P>;
3023
+ contextType?: Context<any>;
3024
+ getDerivedStateFromProps?(
3025
+ props: Readonly<P>,
3026
+ state: Readonly<S>,
3027
+ ): Partial<S> | null;
3028
+ getDerivedStateFromError?(error: any): Partial<S> | null;
3029
+ }
3030
+ export interface Component<P = {}, S = {}> {
3031
+ componentWillMount?(): void;
3032
+ componentDidMount?(): void;
3033
+ componentWillUnmount?(): void;
3034
+ getChildContext?(): object;
3035
+ componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
3036
+ shouldComponentUpdate?(
3037
+ nextProps: Readonly<P>,
3038
+ nextState: Readonly<S>,
3039
+ nextContext: any,
3040
+ ): boolean;
3041
+ componentWillUpdate?(
3042
+ nextProps: Readonly<P>,
3043
+ nextState: Readonly<S>,
3044
+ nextContext: any,
3045
+ ): void;
3046
+ getSnapshotBeforeUpdate?(oldProps: Readonly<P>, oldState: Readonly<S>): any;
3047
+ componentDidUpdate?(
3048
+ previousProps: Readonly<P>,
3049
+ previousState: Readonly<S>,
3050
+ snapshot: any,
3051
+ ): void;
3052
+ componentDidCatch?(error: any, errorInfo: ErrorInfo): void;
3053
+ }
3054
+ declare abstract class Component<P, S> {
3055
+ constructor(props?: P, context?: any);
3056
+ static displayName?: string;
3057
+ static defaultProps?: any;
3058
+ static contextType?: Context<any>;
3059
+ // Static members cannot reference class type parameters. This is not
3060
+ // supported in TypeScript. Reusing the same type arguments from `Component`
3061
+ // will lead to an impossible state where one cannot satisfy the type
3062
+ // constraint under no circumstances, see #1356.In general type arguments
3063
+ // seem to be a bit buggy and not supported well at the time of this
3064
+ // writing with TS 3.3.3333.
3065
+ static getDerivedStateFromProps?(
3066
+ props: Readonly<object>,
3067
+ state: Readonly<object>,
3068
+ ): object | null;
3069
+ static getDerivedStateFromError?(error: any): object | null;
3070
+ state: Readonly<S>;
3071
+ props: RenderableProps<P>;
3072
+ context: any;
3073
+ base?: Element | Text;
3074
+ // From https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e836acc75a78cf0655b5dfdbe81d69fdd4d8a252/types/react/index.d.ts#L402
3075
+ // // We MUST keep setState() as a unified signature because it allows proper checking of the method return type.
3076
+ // // See: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18365#issuecomment-351013257
3077
+ setState<K extends keyof S>(
3078
+ state:
3079
+ | ((
3080
+ prevState: Readonly<S>,
3081
+ props: Readonly<P>,
3082
+ ) => Pick<S, K> | Partial<S> | null)
3083
+ | (Pick<S, K> | Partial<S> | null),
3084
+ callback?: () => void,
3085
+ ): void;
3086
+ forceUpdate(callback?: () => void): void;
3087
+ abstract render(
3088
+ props?: RenderableProps<P>,
3089
+ state?: Readonly<S>,
3090
+ context?: any,
3091
+ ): ComponentChildren$1;
3092
+ }
3093
+ //
3094
+ // Context
3095
+ // -----------------------------------
3096
+ export interface Consumer<T>
3097
+ extends FunctionComponent<{
3098
+ children: (value: T) => ComponentChildren$1;
3099
+ }> {}
3100
+ export interface Provider<T>
3101
+ extends FunctionComponent<{
3102
+ value: T;
3103
+ children?: ComponentChildren$1;
3104
+ }> {}
3105
+ export interface Context<T> extends Provider<T> {
3106
+ Consumer: Consumer<T>;
3107
+ Provider: Provider<T>;
3108
+ displayName?: string;
3109
+ }