@shopify/ui-extensions 2022.10.6 → 2023.4.0

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 (706) hide show
  1. package/README.md +1 -1
  2. package/build/cjs/surfaces/admin/components/AdminAction/AdminAction.js +12 -0
  3. package/build/cjs/surfaces/admin/components/AdminBlock/AdminBlock.js +9 -0
  4. package/build/cjs/surfaces/admin/components/BlockStack/BlockStack.js +9 -0
  5. package/build/cjs/surfaces/admin/components/Box/Box.js +9 -0
  6. package/build/cjs/surfaces/admin/components/Button/Button.js +9 -0
  7. package/build/cjs/surfaces/admin/components/Checkbox/Checkbox.js +9 -0
  8. package/build/cjs/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.js +12 -0
  9. package/build/cjs/surfaces/admin/components/Divider/Divider.js +9 -0
  10. package/build/cjs/surfaces/admin/components/EmailField/EmailField.js +9 -0
  11. package/build/cjs/surfaces/admin/components/Form/Form.js +9 -0
  12. package/build/cjs/surfaces/admin/components/Heading/Heading.js +9 -0
  13. package/build/cjs/surfaces/admin/components/HeadingGroup/HeadingGroup.js +9 -0
  14. package/build/cjs/surfaces/admin/components/Icon/Icon.js +9 -0
  15. package/build/cjs/surfaces/admin/components/Image/Image.js +9 -0
  16. package/build/cjs/surfaces/admin/components/InlineStack/InlineStack.js +9 -0
  17. package/build/cjs/surfaces/admin/components/Link/Link.js +9 -0
  18. package/build/cjs/surfaces/admin/components/NumberField/NumberField.js +9 -0
  19. package/build/cjs/surfaces/admin/components/PasswordField/PasswordField.js +9 -0
  20. package/build/cjs/surfaces/admin/components/Select/Select.js +9 -0
  21. package/build/cjs/surfaces/admin/components/Text/Text.js +9 -0
  22. package/build/cjs/surfaces/admin/components/TextArea/TextArea.js +9 -0
  23. package/build/cjs/surfaces/admin/components/TextField/TextField.js +9 -0
  24. package/build/cjs/surfaces/admin/components/URLField/URLField.js +9 -0
  25. package/build/cjs/surfaces/admin/extension.js +11 -0
  26. package/build/cjs/surfaces/admin.js +56 -0
  27. package/build/cjs/surfaces/checkout/components/DateField/DateField.js +13 -0
  28. package/build/cjs/surfaces/checkout/components/DatePicker/DatePicker.js +22 -0
  29. package/build/cjs/surfaces/checkout/components/Disclosure/Disclosure.js +20 -0
  30. package/build/cjs/surfaces/checkout/components/Modal/Modal.js +17 -0
  31. package/build/cjs/surfaces/checkout/components/Popover/Popover.js +17 -0
  32. package/build/cjs/surfaces/checkout/components/View/View.js +0 -3
  33. package/build/cjs/surfaces/checkout/extension.js +35 -2
  34. package/build/cjs/surfaces/checkout/style/memoize.js +2 -0
  35. package/build/cjs/surfaces/checkout/style/style.js +0 -1
  36. package/build/cjs/surfaces/checkout.js +11 -0
  37. package/build/cjs/utilities/registration.js +26 -2
  38. package/build/esm/surfaces/admin/components/AdminAction/AdminAction.mjs +8 -0
  39. package/build/esm/surfaces/admin/components/AdminBlock/AdminBlock.mjs +5 -0
  40. package/build/esm/surfaces/admin/components/BlockStack/BlockStack.mjs +5 -0
  41. package/build/esm/surfaces/admin/components/Box/Box.mjs +5 -0
  42. package/build/esm/surfaces/admin/components/Button/Button.mjs +5 -0
  43. package/build/esm/surfaces/admin/components/Checkbox/Checkbox.mjs +5 -0
  44. package/build/esm/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.mjs +8 -0
  45. package/build/esm/surfaces/admin/components/Divider/Divider.mjs +5 -0
  46. package/build/esm/surfaces/admin/components/EmailField/EmailField.mjs +5 -0
  47. package/build/esm/surfaces/admin/components/Form/Form.mjs +5 -0
  48. package/build/esm/surfaces/admin/components/Heading/Heading.mjs +5 -0
  49. package/build/esm/surfaces/admin/components/HeadingGroup/HeadingGroup.mjs +5 -0
  50. package/build/esm/surfaces/admin/components/Icon/Icon.mjs +5 -0
  51. package/build/esm/surfaces/admin/components/Image/Image.mjs +5 -0
  52. package/build/esm/surfaces/admin/components/InlineStack/InlineStack.mjs +5 -0
  53. package/build/esm/surfaces/admin/components/Link/Link.mjs +5 -0
  54. package/build/esm/surfaces/admin/components/NumberField/NumberField.mjs +5 -0
  55. package/build/esm/surfaces/admin/components/PasswordField/PasswordField.mjs +5 -0
  56. package/build/esm/surfaces/admin/components/Select/Select.mjs +5 -0
  57. package/build/esm/surfaces/admin/components/Text/Text.mjs +5 -0
  58. package/build/esm/surfaces/admin/components/TextArea/TextArea.mjs +5 -0
  59. package/build/esm/surfaces/admin/components/TextField/TextField.mjs +5 -0
  60. package/build/esm/surfaces/admin/components/URLField/URLField.mjs +5 -0
  61. package/build/esm/surfaces/admin/extension.mjs +6 -0
  62. package/build/esm/surfaces/admin.mjs +24 -0
  63. package/build/esm/surfaces/checkout/components/DateField/DateField.mjs +9 -0
  64. package/build/esm/surfaces/checkout/components/DatePicker/DatePicker.mjs +18 -0
  65. package/build/esm/surfaces/checkout/components/Disclosure/Disclosure.mjs +16 -0
  66. package/build/esm/surfaces/checkout/components/Modal/Modal.mjs +13 -0
  67. package/build/esm/surfaces/checkout/components/Popover/Popover.mjs +13 -0
  68. package/build/esm/surfaces/checkout/components/View/View.mjs +0 -3
  69. package/build/esm/surfaces/checkout/extension.mjs +35 -3
  70. package/build/esm/surfaces/checkout/style/memoize.mjs +2 -0
  71. package/build/esm/surfaces/checkout/style/style.mjs +0 -1
  72. package/build/esm/surfaces/checkout.mjs +6 -1
  73. package/build/esm/utilities/registration.mjs +26 -2
  74. package/build/esnext/surfaces/admin/components/AdminAction/AdminAction.esnext +8 -0
  75. package/build/esnext/surfaces/admin/components/AdminBlock/AdminBlock.esnext +5 -0
  76. package/build/esnext/surfaces/admin/components/BlockStack/BlockStack.esnext +5 -0
  77. package/build/esnext/surfaces/admin/components/Box/Box.esnext +5 -0
  78. package/build/esnext/surfaces/admin/components/Button/Button.esnext +5 -0
  79. package/build/esnext/surfaces/admin/components/Checkbox/Checkbox.esnext +5 -0
  80. package/build/esnext/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.esnext +8 -0
  81. package/build/esnext/surfaces/admin/components/Divider/Divider.esnext +5 -0
  82. package/build/esnext/surfaces/admin/components/EmailField/EmailField.esnext +5 -0
  83. package/build/esnext/surfaces/admin/components/Form/Form.esnext +5 -0
  84. package/build/esnext/surfaces/admin/components/Heading/Heading.esnext +5 -0
  85. package/build/esnext/surfaces/admin/components/HeadingGroup/HeadingGroup.esnext +5 -0
  86. package/build/esnext/surfaces/admin/components/Icon/Icon.esnext +5 -0
  87. package/build/esnext/surfaces/admin/components/Image/Image.esnext +5 -0
  88. package/build/esnext/surfaces/admin/components/InlineStack/InlineStack.esnext +5 -0
  89. package/build/esnext/surfaces/admin/components/Link/Link.esnext +5 -0
  90. package/build/esnext/surfaces/admin/components/NumberField/NumberField.esnext +5 -0
  91. package/build/esnext/surfaces/admin/components/PasswordField/PasswordField.esnext +5 -0
  92. package/build/esnext/surfaces/admin/components/Select/Select.esnext +5 -0
  93. package/build/esnext/surfaces/admin/components/Text/Text.esnext +5 -0
  94. package/build/esnext/surfaces/admin/components/TextArea/TextArea.esnext +5 -0
  95. package/build/esnext/surfaces/admin/components/TextField/TextField.esnext +5 -0
  96. package/build/esnext/surfaces/admin/components/URLField/URLField.esnext +5 -0
  97. package/build/esnext/surfaces/admin/extension.esnext +6 -0
  98. package/build/esnext/surfaces/admin.esnext +24 -0
  99. package/build/esnext/surfaces/checkout/components/DateField/DateField.esnext +9 -0
  100. package/build/esnext/surfaces/checkout/components/DatePicker/DatePicker.esnext +18 -0
  101. package/build/esnext/surfaces/checkout/components/Disclosure/Disclosure.esnext +16 -0
  102. package/build/esnext/surfaces/checkout/components/Modal/Modal.esnext +13 -0
  103. package/build/esnext/surfaces/checkout/components/Popover/Popover.esnext +13 -0
  104. package/build/esnext/surfaces/checkout/components/View/View.esnext +0 -3
  105. package/build/esnext/surfaces/checkout/extension.esnext +35 -3
  106. package/build/esnext/surfaces/checkout/style/memoize.esnext +2 -0
  107. package/build/esnext/surfaces/checkout/style/style.esnext +0 -1
  108. package/build/esnext/surfaces/checkout.esnext +6 -1
  109. package/build/esnext/utilities/registration.esnext +26 -2
  110. package/build/ts/api.d.ts +62 -0
  111. package/build/ts/api.d.ts.map +1 -1
  112. package/build/ts/extension.d.ts +8 -1
  113. package/build/ts/extension.d.ts.map +1 -1
  114. package/build/ts/index.d.ts +0 -1
  115. package/build/ts/index.d.ts.map +1 -1
  116. package/build/ts/shared.d.ts +6 -0
  117. package/build/ts/shared.d.ts.map +1 -0
  118. package/build/ts/surfaces/admin/api/action/action.d.ts +11 -0
  119. package/build/ts/surfaces/admin/api/action/action.d.ts.map +1 -0
  120. package/build/ts/surfaces/admin/api/action/action.doc.d.ts +4 -0
  121. package/build/ts/surfaces/admin/api/action/action.doc.d.ts.map +1 -0
  122. package/build/ts/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.d.ts +11 -0
  123. package/build/ts/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.d.ts.map +1 -0
  124. package/build/ts/surfaces/admin/api/extension-targets/extension-targets.doc.d.ts +4 -0
  125. package/build/ts/surfaces/admin/api/extension-targets/extension-targets.doc.d.ts.map +1 -0
  126. package/build/ts/surfaces/admin/api/standard/standard.d.ts +13 -0
  127. package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -0
  128. package/build/ts/surfaces/admin/api/standard/standard.doc.d.ts +4 -0
  129. package/build/ts/surfaces/admin/api/standard/standard.doc.d.ts.map +1 -0
  130. package/build/ts/surfaces/admin/api.d.ts +5 -0
  131. package/build/ts/surfaces/admin/api.d.ts.map +1 -0
  132. package/build/ts/surfaces/admin/components/AdminAction/AdminAction.d.ts +25 -0
  133. package/build/ts/surfaces/admin/components/AdminAction/AdminAction.d.ts.map +1 -0
  134. package/build/ts/surfaces/admin/components/AdminAction/AdminAction.doc.d.ts +4 -0
  135. package/build/ts/surfaces/admin/components/AdminAction/AdminAction.doc.d.ts.map +1 -0
  136. package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.d.ts +17 -0
  137. package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.d.ts.map +1 -0
  138. package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.doc.d.ts +4 -0
  139. package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.doc.d.ts.map +1 -0
  140. package/build/ts/surfaces/admin/components/BlockStack/BlockStack.d.ts +15 -0
  141. package/build/ts/surfaces/admin/components/BlockStack/BlockStack.d.ts.map +1 -0
  142. package/build/ts/surfaces/admin/components/BlockStack/BlockStack.doc.d.ts +4 -0
  143. package/build/ts/surfaces/admin/components/BlockStack/BlockStack.doc.d.ts.map +1 -0
  144. package/build/ts/surfaces/admin/components/Box/Box.d.ts +9 -0
  145. package/build/ts/surfaces/admin/components/Box/Box.d.ts.map +1 -0
  146. package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts +4 -0
  147. package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +1 -0
  148. package/build/ts/surfaces/admin/components/Button/Button.d.ts +87 -0
  149. package/build/ts/surfaces/admin/components/Button/Button.d.ts.map +1 -0
  150. package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts +4 -0
  151. package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +1 -0
  152. package/build/ts/surfaces/admin/components/Checkbox/Checkbox.d.ts +55 -0
  153. package/build/ts/surfaces/admin/components/Checkbox/Checkbox.d.ts.map +1 -0
  154. package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts +4 -0
  155. package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts.map +1 -0
  156. package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts +27 -0
  157. package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts.map +1 -0
  158. package/build/ts/surfaces/admin/components/Divider/Divider.d.ts +14 -0
  159. package/build/ts/surfaces/admin/components/Divider/Divider.d.ts.map +1 -0
  160. package/build/ts/surfaces/admin/components/Divider/Divider.doc.d.ts +4 -0
  161. package/build/ts/surfaces/admin/components/Divider/Divider.doc.d.ts.map +1 -0
  162. package/build/ts/surfaces/admin/components/EmailField/EmailField.d.ts +10 -0
  163. package/build/ts/surfaces/admin/components/EmailField/EmailField.d.ts.map +1 -0
  164. package/build/ts/surfaces/admin/components/EmailField/EmailField.doc.d.ts +4 -0
  165. package/build/ts/surfaces/admin/components/EmailField/EmailField.doc.d.ts.map +1 -0
  166. package/build/ts/surfaces/admin/components/Form/Form.d.ts +30 -0
  167. package/build/ts/surfaces/admin/components/Form/Form.d.ts.map +1 -0
  168. package/build/ts/surfaces/admin/components/Form/Form.doc.d.ts +4 -0
  169. package/build/ts/surfaces/admin/components/Form/Form.doc.d.ts.map +1 -0
  170. package/build/ts/surfaces/admin/components/Heading/Heading.d.ts +14 -0
  171. package/build/ts/surfaces/admin/components/Heading/Heading.d.ts.map +1 -0
  172. package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts +4 -0
  173. package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts.map +1 -0
  174. package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.d.ts +8 -0
  175. package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.d.ts.map +1 -0
  176. package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.d.ts +4 -0
  177. package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.d.ts.map +1 -0
  178. package/build/ts/surfaces/admin/components/Icon/Icon.d.ts +23 -0
  179. package/build/ts/surfaces/admin/components/Icon/Icon.d.ts.map +1 -0
  180. package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts +4 -0
  181. package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts.map +1 -0
  182. package/build/ts/surfaces/admin/components/Image/Image.d.ts +114 -0
  183. package/build/ts/surfaces/admin/components/Image/Image.d.ts.map +1 -0
  184. package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts +4 -0
  185. package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts.map +1 -0
  186. package/build/ts/surfaces/admin/components/InlineStack/InlineStack.d.ts +15 -0
  187. package/build/ts/surfaces/admin/components/InlineStack/InlineStack.d.ts.map +1 -0
  188. package/build/ts/surfaces/admin/components/InlineStack/InlineStack.doc.d.ts +4 -0
  189. package/build/ts/surfaces/admin/components/InlineStack/InlineStack.doc.d.ts.map +1 -0
  190. package/build/ts/surfaces/admin/components/Link/Link.d.ts +57 -0
  191. package/build/ts/surfaces/admin/components/Link/Link.d.ts.map +1 -0
  192. package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts +4 -0
  193. package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -0
  194. package/build/ts/surfaces/admin/components/NumberField/NumberField.d.ts +41 -0
  195. package/build/ts/surfaces/admin/components/NumberField/NumberField.d.ts.map +1 -0
  196. package/build/ts/surfaces/admin/components/NumberField/NumberField.doc.d.ts +4 -0
  197. package/build/ts/surfaces/admin/components/NumberField/NumberField.doc.d.ts.map +1 -0
  198. package/build/ts/surfaces/admin/components/PasswordField/PasswordField.d.ts +10 -0
  199. package/build/ts/surfaces/admin/components/PasswordField/PasswordField.d.ts.map +1 -0
  200. package/build/ts/surfaces/admin/components/PasswordField/PasswordField.doc.d.ts +4 -0
  201. package/build/ts/surfaces/admin/components/PasswordField/PasswordField.doc.d.ts.map +1 -0
  202. package/build/ts/surfaces/admin/components/Select/Select.d.ts +127 -0
  203. package/build/ts/surfaces/admin/components/Select/Select.d.ts.map +1 -0
  204. package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts +4 -0
  205. package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +1 -0
  206. package/build/ts/surfaces/admin/components/Text/Text.d.ts +97 -0
  207. package/build/ts/surfaces/admin/components/Text/Text.d.ts.map +1 -0
  208. package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts +4 -0
  209. package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -0
  210. package/build/ts/surfaces/admin/components/TextArea/TextArea.d.ts +15 -0
  211. package/build/ts/surfaces/admin/components/TextArea/TextArea.d.ts.map +1 -0
  212. package/build/ts/surfaces/admin/components/TextArea/TextArea.doc.d.ts +4 -0
  213. package/build/ts/surfaces/admin/components/TextArea/TextArea.doc.d.ts.map +1 -0
  214. package/build/ts/surfaces/admin/components/TextField/TextField.d.ts +9 -0
  215. package/build/ts/surfaces/admin/components/TextField/TextField.d.ts.map +1 -0
  216. package/build/ts/surfaces/admin/components/TextField/TextField.doc.d.ts +4 -0
  217. package/build/ts/surfaces/admin/components/TextField/TextField.doc.d.ts.map +1 -0
  218. package/build/ts/surfaces/admin/components/URLField/URLField.d.ts +10 -0
  219. package/build/ts/surfaces/admin/components/URLField/URLField.d.ts.map +1 -0
  220. package/build/ts/surfaces/admin/components/URLField/URLField.doc.d.ts +4 -0
  221. package/build/ts/surfaces/admin/components/URLField/URLField.doc.d.ts.map +1 -0
  222. package/build/ts/surfaces/admin/components/shared/index.d.ts +443 -0
  223. package/build/ts/surfaces/admin/components/shared/index.d.ts.map +1 -0
  224. package/build/ts/surfaces/admin/components.d.ts +47 -0
  225. package/build/ts/surfaces/admin/components.d.ts.map +1 -0
  226. package/build/ts/surfaces/admin/extension-points.d.ts +64 -0
  227. package/build/ts/surfaces/admin/extension-points.d.ts.map +1 -0
  228. package/build/ts/surfaces/admin/extension.d.ts +5 -0
  229. package/build/ts/surfaces/admin/extension.d.ts.map +1 -0
  230. package/build/ts/surfaces/admin/globals.d.ts +5 -0
  231. package/build/ts/surfaces/admin/globals.d.ts.map +1 -0
  232. package/build/ts/surfaces/admin/shared.d.ts +6 -0
  233. package/build/ts/surfaces/admin/shared.d.ts.map +1 -0
  234. package/build/ts/surfaces/admin.d.ts +7 -0
  235. package/build/ts/surfaces/admin.d.ts.map +1 -0
  236. package/build/ts/surfaces/checkout/api/cart-line/cart-line-details.d.ts +9 -0
  237. package/build/ts/surfaces/checkout/api/cart-line/cart-line-details.d.ts.map +1 -0
  238. package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +367 -0
  239. package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -0
  240. package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts +27 -0
  241. package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts.map +1 -0
  242. package/build/ts/surfaces/checkout/api/payment-method/render.d.ts +44 -0
  243. package/build/ts/surfaces/checkout/api/payment-method/render.d.ts.map +1 -0
  244. package/build/ts/surfaces/checkout/api/pickup/pickup-locations.d.ts +8 -0
  245. package/build/ts/surfaces/checkout/api/pickup/pickup-locations.d.ts.map +1 -0
  246. package/build/ts/surfaces/checkout/api/pickup/pickup-points.d.ts +8 -0
  247. package/build/ts/surfaces/checkout/api/pickup/pickup-points.d.ts.map +1 -0
  248. package/build/ts/surfaces/checkout/api/redeemable/render.d.ts +44 -0
  249. package/build/ts/surfaces/checkout/api/redeemable/render.d.ts.map +1 -0
  250. package/build/ts/surfaces/checkout/api/shared.d.ts +46 -0
  251. package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
  252. package/build/ts/surfaces/checkout/api/shipping/shipping-method-details.d.ts +13 -0
  253. package/build/ts/surfaces/checkout/api/shipping/shipping-method-details.d.ts.map +1 -0
  254. package/build/ts/surfaces/checkout/api/standard/standard.d.ts +562 -406
  255. package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
  256. package/build/ts/surfaces/checkout/api.d.ts +10 -3
  257. package/build/ts/surfaces/checkout/api.d.ts.map +1 -1
  258. package/build/ts/surfaces/checkout/components/Banner/Banner.d.ts +2 -2
  259. package/build/ts/surfaces/checkout/components/Banner/Banner.d.ts.map +1 -1
  260. package/build/ts/surfaces/checkout/components/Banner/Banner.doc.d.ts +4 -0
  261. package/build/ts/surfaces/checkout/components/Banner/Banner.doc.d.ts.map +1 -0
  262. package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.doc.d.ts +4 -0
  263. package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.doc.d.ts.map +1 -0
  264. package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts +2 -2
  265. package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts.map +1 -1
  266. package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.doc.d.ts +4 -0
  267. package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.doc.d.ts.map +1 -0
  268. package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts +20 -4
  269. package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts.map +1 -1
  270. package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.doc.d.ts +4 -0
  271. package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.doc.d.ts.map +1 -0
  272. package/build/ts/surfaces/checkout/components/Button/Button.d.ts +3 -4
  273. package/build/ts/surfaces/checkout/components/Button/Button.d.ts.map +1 -1
  274. package/build/ts/surfaces/checkout/components/Button/Button.doc.d.ts +4 -0
  275. package/build/ts/surfaces/checkout/components/Button/Button.doc.d.ts.map +1 -0
  276. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.d.ts +5 -9
  277. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.d.ts.map +1 -1
  278. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts +4 -0
  279. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts.map +1 -0
  280. package/build/ts/surfaces/checkout/components/Choice/Choice.d.ts +2 -4
  281. package/build/ts/surfaces/checkout/components/Choice/Choice.d.ts.map +1 -1
  282. package/build/ts/surfaces/checkout/components/Choice/Choice.doc.d.ts +4 -0
  283. package/build/ts/surfaces/checkout/components/Choice/Choice.doc.d.ts.map +1 -0
  284. package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts +4 -0
  285. package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -0
  286. package/build/ts/surfaces/checkout/components/DateField/DateField.d.ts +32 -0
  287. package/build/ts/surfaces/checkout/components/DateField/DateField.d.ts.map +1 -0
  288. package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts +4 -0
  289. package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts.map +1 -0
  290. package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.d.ts +81 -0
  291. package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.d.ts.map +1 -0
  292. package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts +4 -0
  293. package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts.map +1 -0
  294. package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.d.ts +45 -0
  295. package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.d.ts.map +1 -0
  296. package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.doc.d.ts +4 -0
  297. package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.doc.d.ts.map +1 -0
  298. package/build/ts/surfaces/checkout/components/Divider/Divider.d.ts +2 -2
  299. package/build/ts/surfaces/checkout/components/Divider/Divider.d.ts.map +1 -1
  300. package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts +4 -0
  301. package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts.map +1 -0
  302. package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts +4 -0
  303. package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts.map +1 -0
  304. package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts +20 -4
  305. package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts.map +1 -1
  306. package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts +4 -0
  307. package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts.map +1 -0
  308. package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts +20 -4
  309. package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts.map +1 -1
  310. package/build/ts/surfaces/checkout/components/GridItem/GridItem.doc.d.ts +4 -0
  311. package/build/ts/surfaces/checkout/components/GridItem/GridItem.doc.d.ts.map +1 -0
  312. package/build/ts/surfaces/checkout/components/Heading/Heading.doc.d.ts +4 -0
  313. package/build/ts/surfaces/checkout/components/Heading/Heading.doc.d.ts.map +1 -0
  314. package/build/ts/surfaces/checkout/components/HeadingGroup/HeadingGroup.doc.d.ts +4 -0
  315. package/build/ts/surfaces/checkout/components/HeadingGroup/HeadingGroup.doc.d.ts.map +1 -0
  316. package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts +7 -3
  317. package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts.map +1 -1
  318. package/build/ts/surfaces/checkout/components/Icon/Icon.doc.d.ts +4 -0
  319. package/build/ts/surfaces/checkout/components/Icon/Icon.doc.d.ts.map +1 -0
  320. package/build/ts/surfaces/checkout/components/Image/Image.d.ts +2 -3
  321. package/build/ts/surfaces/checkout/components/Image/Image.d.ts.map +1 -1
  322. package/build/ts/surfaces/checkout/components/Image/Image.doc.d.ts +4 -0
  323. package/build/ts/surfaces/checkout/components/Image/Image.doc.d.ts.map +1 -0
  324. package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.d.ts +2 -2
  325. package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.d.ts.map +1 -1
  326. package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.doc.d.ts +4 -0
  327. package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.doc.d.ts.map +1 -0
  328. package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.d.ts +2 -2
  329. package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.d.ts.map +1 -1
  330. package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.doc.d.ts +4 -0
  331. package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.doc.d.ts.map +1 -0
  332. package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts +23 -3
  333. package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts.map +1 -1
  334. package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.doc.d.ts +4 -0
  335. package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.doc.d.ts.map +1 -0
  336. package/build/ts/surfaces/checkout/components/Link/Link.d.ts +3 -4
  337. package/build/ts/surfaces/checkout/components/Link/Link.d.ts.map +1 -1
  338. package/build/ts/surfaces/checkout/components/Link/Link.doc.d.ts +4 -0
  339. package/build/ts/surfaces/checkout/components/Link/Link.doc.d.ts.map +1 -0
  340. package/build/ts/surfaces/checkout/components/List/List.d.ts +2 -2
  341. package/build/ts/surfaces/checkout/components/List/List.d.ts.map +1 -1
  342. package/build/ts/surfaces/checkout/components/List/List.doc.d.ts +4 -0
  343. package/build/ts/surfaces/checkout/components/List/List.doc.d.ts.map +1 -0
  344. package/build/ts/surfaces/checkout/components/ListItem/ListItem.d.ts +2 -1
  345. package/build/ts/surfaces/checkout/components/ListItem/ListItem.d.ts.map +1 -1
  346. package/build/ts/surfaces/checkout/components/ListItem/ListItem.doc.d.ts +4 -0
  347. package/build/ts/surfaces/checkout/components/ListItem/ListItem.doc.d.ts.map +1 -0
  348. package/build/ts/surfaces/checkout/components/Modal/Modal.d.ts +44 -0
  349. package/build/ts/surfaces/checkout/components/Modal/Modal.d.ts.map +1 -0
  350. package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts +4 -0
  351. package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +1 -0
  352. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.d.ts +87 -2
  353. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.d.ts.map +1 -1
  354. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts +4 -0
  355. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts.map +1 -0
  356. package/build/ts/surfaces/checkout/components/Popover/Popover.d.ts +36 -0
  357. package/build/ts/surfaces/checkout/components/Popover/Popover.d.ts.map +1 -0
  358. package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts +4 -0
  359. package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts.map +1 -0
  360. package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts +20 -3
  361. package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts.map +1 -1
  362. package/build/ts/surfaces/checkout/components/Pressable/Pressable.doc.d.ts +4 -0
  363. package/build/ts/surfaces/checkout/components/Pressable/Pressable.doc.d.ts.map +1 -0
  364. package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts +7 -4
  365. package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts.map +1 -1
  366. package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.doc.d.ts +4 -0
  367. package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.doc.d.ts.map +1 -0
  368. package/build/ts/surfaces/checkout/components/Select/Select.d.ts +2 -3
  369. package/build/ts/surfaces/checkout/components/Select/Select.d.ts.map +1 -1
  370. package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts +4 -0
  371. package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts.map +1 -0
  372. package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.d.ts +2 -1
  373. package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.d.ts.map +1 -1
  374. package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.doc.d.ts +4 -0
  375. package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.doc.d.ts.map +1 -0
  376. package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts +7 -3
  377. package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts.map +1 -1
  378. package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.doc.d.ts +4 -0
  379. package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.doc.d.ts.map +1 -0
  380. package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts +7 -2
  381. package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts.map +1 -1
  382. package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.doc.d.ts +4 -0
  383. package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.doc.d.ts.map +1 -0
  384. package/build/ts/surfaces/checkout/components/Spinner/Spinner.d.ts +2 -2
  385. package/build/ts/surfaces/checkout/components/Spinner/Spinner.d.ts.map +1 -1
  386. package/build/ts/surfaces/checkout/components/Spinner/Spinner.doc.d.ts +4 -0
  387. package/build/ts/surfaces/checkout/components/Spinner/Spinner.doc.d.ts.map +1 -0
  388. package/build/ts/surfaces/checkout/components/Stepper/Stepper.d.ts +98 -3
  389. package/build/ts/surfaces/checkout/components/Stepper/Stepper.d.ts.map +1 -1
  390. package/build/ts/surfaces/checkout/components/Stepper/Stepper.doc.d.ts +4 -0
  391. package/build/ts/surfaces/checkout/components/Stepper/Stepper.doc.d.ts.map +1 -0
  392. package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts +5 -7
  393. package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts.map +1 -1
  394. package/build/ts/surfaces/checkout/components/Tag/Tag.doc.d.ts +4 -0
  395. package/build/ts/surfaces/checkout/components/Tag/Tag.doc.d.ts.map +1 -0
  396. package/build/ts/surfaces/checkout/components/Text/Text.d.ts +2 -2
  397. package/build/ts/surfaces/checkout/components/Text/Text.d.ts.map +1 -1
  398. package/build/ts/surfaces/checkout/components/Text/Text.doc.d.ts +4 -0
  399. package/build/ts/surfaces/checkout/components/Text/Text.doc.d.ts.map +1 -0
  400. package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts +3 -7
  401. package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts.map +1 -1
  402. package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.doc.d.ts +4 -0
  403. package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.doc.d.ts.map +1 -0
  404. package/build/ts/surfaces/checkout/components/TextField/TextField.d.ts +2 -2
  405. package/build/ts/surfaces/checkout/components/TextField/TextField.d.ts.map +1 -1
  406. package/build/ts/surfaces/checkout/components/TextField/TextField.doc.d.ts +4 -0
  407. package/build/ts/surfaces/checkout/components/TextField/TextField.doc.d.ts.map +1 -0
  408. package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.d.ts +2 -1
  409. package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.d.ts.map +1 -1
  410. package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts +4 -0
  411. package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts.map +1 -0
  412. package/build/ts/surfaces/checkout/components/View/View.d.ts +16 -16
  413. package/build/ts/surfaces/checkout/components/View/View.d.ts.map +1 -1
  414. package/build/ts/surfaces/checkout/components/View/View.doc.d.ts +4 -0
  415. package/build/ts/surfaces/checkout/components/View/View.doc.d.ts.map +1 -0
  416. package/build/ts/surfaces/checkout/components/shared.d.ts +57 -18
  417. package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -1
  418. package/build/ts/surfaces/checkout/components.d.ts +13 -3
  419. package/build/ts/surfaces/checkout/components.d.ts.map +1 -1
  420. package/build/ts/surfaces/checkout/extension-points.d.ts +136 -26
  421. package/build/ts/surfaces/checkout/extension-points.d.ts.map +1 -1
  422. package/build/ts/surfaces/checkout/extension.d.ts +35 -3
  423. package/build/ts/surfaces/checkout/extension.d.ts.map +1 -1
  424. package/build/ts/surfaces/checkout/globals.d.ts +1 -1
  425. package/build/ts/surfaces/checkout/globals.d.ts.map +1 -1
  426. package/build/ts/surfaces/checkout/helper.docs.d.ts +16 -0
  427. package/build/ts/surfaces/checkout/helper.docs.d.ts.map +1 -0
  428. package/build/ts/surfaces/checkout/shared.d.ts +3 -5
  429. package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
  430. package/build/ts/surfaces/checkout/style/index.d.ts +3 -0
  431. package/build/ts/surfaces/checkout/style/index.d.ts.map +1 -0
  432. package/build/ts/surfaces/checkout/style/memoize.d.ts.map +1 -1
  433. package/build/ts/surfaces/checkout/style/style.d.ts +4 -0
  434. package/build/ts/surfaces/checkout/style/style.d.ts.map +1 -1
  435. package/build/ts/surfaces/checkout/style/style.doc.d.ts +4 -0
  436. package/build/ts/surfaces/checkout/style/style.doc.d.ts.map +1 -0
  437. package/build/ts/surfaces/checkout/style/types.d.ts +5 -0
  438. package/build/ts/surfaces/checkout/style/types.d.ts.map +1 -1
  439. package/build/ts/utilities/registration.d.ts +5 -1
  440. package/build/ts/utilities/registration.d.ts.map +1 -1
  441. package/build/tsconfig.tsbuildinfo +1 -1
  442. package/package.json +18 -1
  443. package/src/api.ts +73 -0
  444. package/src/extension.ts +30 -1
  445. package/src/index.ts +0 -1
  446. package/src/shared.ts +13 -0
  447. package/src/surfaces/admin/api/action/action.doc.ts +19 -0
  448. package/src/surfaces/admin/api/action/action.ts +14 -0
  449. package/src/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.ts +19 -0
  450. package/src/surfaces/admin/api/extension-targets/extension-targets.doc.ts +20 -0
  451. package/src/surfaces/admin/api/standard/README.md +1 -0
  452. package/src/surfaces/admin/api/standard/standard.doc.ts +20 -0
  453. package/src/surfaces/admin/api/standard/standard.ts +14 -0
  454. package/src/surfaces/admin/api.ts +4 -0
  455. package/src/surfaces/admin/components/AdminAction/AdminAction.doc.ts +41 -0
  456. package/src/surfaces/admin/components/AdminAction/AdminAction.ts +28 -0
  457. package/src/surfaces/admin/components/AdminAction/examples/basic-adminaction.example.ts +16 -0
  458. package/src/surfaces/admin/components/AdminBlock/AdminBlock.doc.ts +41 -0
  459. package/src/surfaces/admin/components/AdminBlock/AdminBlock.ts +19 -0
  460. package/src/surfaces/admin/components/AdminBlock/examples/basic-adminblock.example.ts +11 -0
  461. package/src/surfaces/admin/components/BlockStack/BlockStack.doc.ts +42 -0
  462. package/src/surfaces/admin/components/BlockStack/BlockStack.ts +27 -0
  463. package/src/surfaces/admin/components/BlockStack/examples/basic-blockstack.example.ts +24 -0
  464. package/src/surfaces/admin/components/Box/Box.doc.ts +42 -0
  465. package/src/surfaces/admin/components/Box/Box.ts +13 -0
  466. package/src/surfaces/admin/components/Box/examples/basic-box.example.ts +11 -0
  467. package/src/surfaces/admin/components/Button/Button.doc.ts +41 -0
  468. package/src/surfaces/admin/components/Button/Button.ts +99 -0
  469. package/src/surfaces/admin/components/Button/README.md +3 -0
  470. package/src/surfaces/admin/components/Button/examples/basic-button.example.ts +11 -0
  471. package/src/surfaces/admin/components/Checkbox/Checkbox.doc.ts +42 -0
  472. package/src/surfaces/admin/components/Checkbox/Checkbox.ts +63 -0
  473. package/src/surfaces/admin/components/Checkbox/examples/basic-checkbox.example.ts +11 -0
  474. package/src/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.ts +68 -0
  475. package/src/surfaces/admin/components/CustomerSegmentationTemplate/examples/CustomerSegmentationTemplate.example.ts +37 -0
  476. package/src/surfaces/admin/components/Divider/Divider.doc.ts +42 -0
  477. package/src/surfaces/admin/components/Divider/Divider.ts +14 -0
  478. package/src/surfaces/admin/components/Divider/README.md +7 -0
  479. package/src/surfaces/admin/components/Divider/examples/basic-divider.example.ts +17 -0
  480. package/src/surfaces/admin/components/EmailField/EmailField.doc.ts +41 -0
  481. package/src/surfaces/admin/components/EmailField/EmailField.ts +22 -0
  482. package/src/surfaces/admin/components/EmailField/README.md +7 -0
  483. package/src/surfaces/admin/components/EmailField/examples/basic-emailfield.example.ts +9 -0
  484. package/src/surfaces/admin/components/Form/Form.doc.ts +41 -0
  485. package/src/surfaces/admin/components/Form/Form.ts +32 -0
  486. package/src/surfaces/admin/components/Form/examples/basic-form.example.ts +41 -0
  487. package/src/surfaces/admin/components/Heading/Heading.doc.ts +42 -0
  488. package/src/surfaces/admin/components/Heading/Heading.ts +15 -0
  489. package/src/surfaces/admin/components/Heading/README.md +9 -0
  490. package/src/surfaces/admin/components/Heading/examples/basic-heading.example.ts +7 -0
  491. package/src/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.ts +42 -0
  492. package/src/surfaces/admin/components/HeadingGroup/HeadingGroup.ts +8 -0
  493. package/src/surfaces/admin/components/HeadingGroup/README.md +5 -0
  494. package/src/surfaces/admin/components/HeadingGroup/examples/basic-headinggroup.example.ts +20 -0
  495. package/src/surfaces/admin/components/Icon/Icon.doc.ts +42 -0
  496. package/src/surfaces/admin/components/Icon/Icon.ts +42 -0
  497. package/src/surfaces/admin/components/Icon/README.md +3 -0
  498. package/src/surfaces/admin/components/Icon/examples/basic-icon.example.ts +7 -0
  499. package/src/surfaces/admin/components/Image/Image.doc.ts +41 -0
  500. package/src/surfaces/admin/components/Image/Image.ts +120 -0
  501. package/src/surfaces/admin/components/Image/README.md +20 -0
  502. package/src/surfaces/admin/components/Image/examples/basic-image.example.ts +10 -0
  503. package/src/surfaces/admin/components/InlineStack/InlineStack.doc.ts +41 -0
  504. package/src/surfaces/admin/components/InlineStack/InlineStack.ts +28 -0
  505. package/src/surfaces/admin/components/InlineStack/examples/basic-inlinestack.example.ts +18 -0
  506. package/src/surfaces/admin/components/Link/Link.doc.ts +103 -0
  507. package/src/surfaces/admin/components/Link/Link.ts +63 -0
  508. package/src/surfaces/admin/components/Link/README.md +11 -0
  509. package/src/surfaces/admin/components/Link/examples/app-link.example.ts +17 -0
  510. package/src/surfaces/admin/components/Link/examples/external-link.example.ts +17 -0
  511. package/src/surfaces/admin/components/Link/examples/relative-link.example.ts +17 -0
  512. package/src/surfaces/admin/components/Link/examples/shopify-section-link.example.ts +17 -0
  513. package/src/surfaces/admin/components/NumberField/NumberField.doc.ts +42 -0
  514. package/src/surfaces/admin/components/NumberField/NumberField.ts +59 -0
  515. package/src/surfaces/admin/components/NumberField/README.md +7 -0
  516. package/src/surfaces/admin/components/NumberField/examples/basic-numberfield.example.ts +9 -0
  517. package/src/surfaces/admin/components/PasswordField/PasswordField.doc.ts +42 -0
  518. package/src/surfaces/admin/components/PasswordField/PasswordField.ts +22 -0
  519. package/src/surfaces/admin/components/PasswordField/README.md +7 -0
  520. package/src/surfaces/admin/components/PasswordField/examples/basic-passwordfield.example.ts +13 -0
  521. package/src/surfaces/admin/components/Select/README.md +99 -0
  522. package/src/surfaces/admin/components/Select/Select.doc.ts +42 -0
  523. package/src/surfaces/admin/components/Select/Select.ts +147 -0
  524. package/src/surfaces/admin/components/Select/examples/basic-select.example.ts +47 -0
  525. package/src/surfaces/admin/components/Text/README.md +7 -0
  526. package/src/surfaces/admin/components/Text/Text.doc.ts +42 -0
  527. package/src/surfaces/admin/components/Text/Text.ts +124 -0
  528. package/src/surfaces/admin/components/Text/examples/basic-text.example.ts +14 -0
  529. package/src/surfaces/admin/components/TextArea/TextArea.doc.ts +42 -0
  530. package/src/surfaces/admin/components/TextArea/TextArea.ts +24 -0
  531. package/src/surfaces/admin/components/TextArea/examples/basic-textarea.example.ts +10 -0
  532. package/src/surfaces/admin/components/TextField/README.md +7 -0
  533. package/src/surfaces/admin/components/TextField/TextField.doc.ts +42 -0
  534. package/src/surfaces/admin/components/TextField/TextField.ts +16 -0
  535. package/src/surfaces/admin/components/TextField/examples/basic-textfield.example.ts +9 -0
  536. package/src/surfaces/admin/components/URLField/README.md +7 -0
  537. package/src/surfaces/admin/components/URLField/URLField.doc.ts +41 -0
  538. package/src/surfaces/admin/components/URLField/URLField.ts +26 -0
  539. package/src/surfaces/admin/components/URLField/examples/basic-urlfield.example.ts +9 -0
  540. package/src/surfaces/admin/components/shared/index.ts +664 -0
  541. package/src/surfaces/admin/components.ts +52 -0
  542. package/src/surfaces/admin/extension-points.ts +143 -0
  543. package/src/surfaces/admin/extension.ts +8 -0
  544. package/src/surfaces/admin/globals.ts +8 -0
  545. package/src/surfaces/admin/shared.ts +6 -0
  546. package/src/surfaces/admin.ts +6 -0
  547. package/src/surfaces/checkout/api/{cart-line-details/render-after.ts → cart-line/cart-line-details.ts} +2 -3
  548. package/src/surfaces/checkout/api/checkout/checkout.ts +454 -0
  549. package/src/surfaces/checkout/api/order-status/order-status.ts +28 -0
  550. package/src/surfaces/checkout/api/payment-method/render.ts +55 -0
  551. package/src/surfaces/checkout/api/pickup/pickup-locations.ts +8 -0
  552. package/src/surfaces/checkout/api/pickup/pickup-points.ts +8 -0
  553. package/src/surfaces/checkout/api/redeemable/render.ts +55 -0
  554. package/src/surfaces/checkout/api/shared.ts +57 -0
  555. package/src/surfaces/checkout/api/shipping/shipping-method-details.ts +15 -0
  556. package/src/surfaces/checkout/api/standard/README.md +100 -1
  557. package/src/surfaces/checkout/api/standard/standard.ts +644 -483
  558. package/src/surfaces/checkout/api.ts +93 -35
  559. package/src/surfaces/checkout/components/Banner/Banner.doc.ts +57 -0
  560. package/src/surfaces/checkout/components/Banner/Banner.ts +2 -2
  561. package/src/surfaces/checkout/components/Banner/examples/basic-banner.example.ts +2 -2
  562. package/src/surfaces/checkout/components/BlockLayout/BlockLayout.doc.ts +50 -0
  563. package/src/surfaces/checkout/components/BlockLayout/examples/basic-blockLayout.example.ts +2 -2
  564. package/src/surfaces/checkout/components/BlockLayout/examples/basic-blocklayout.example.ts +16 -0
  565. package/src/surfaces/checkout/components/BlockSpacer/BlockSpacer.doc.ts +47 -0
  566. package/src/surfaces/checkout/components/BlockSpacer/BlockSpacer.ts +2 -2
  567. package/src/surfaces/checkout/components/BlockSpacer/examples/basic-blockspacer.example.ts +2 -2
  568. package/src/surfaces/checkout/components/BlockStack/BlockStack.doc.ts +60 -0
  569. package/src/surfaces/checkout/components/BlockStack/BlockStack.ts +20 -2
  570. package/src/surfaces/checkout/components/BlockStack/examples/basic-blockstack.example.ts +2 -2
  571. package/src/surfaces/checkout/components/Button/Button.doc.ts +64 -0
  572. package/src/surfaces/checkout/components/Button/Button.ts +8 -4
  573. package/src/surfaces/checkout/components/Button/examples/basic-button.example.ts +2 -2
  574. package/src/surfaces/checkout/components/Checkbox/Checkbox.doc.ts +49 -0
  575. package/src/surfaces/checkout/components/Checkbox/Checkbox.ts +5 -5
  576. package/src/surfaces/checkout/components/Checkbox/content/guidelines.md +1 -1
  577. package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.ts +2 -2
  578. package/src/surfaces/checkout/components/Choice/Choice.doc.ts +57 -0
  579. package/src/surfaces/checkout/components/Choice/Choice.ts +2 -4
  580. package/src/surfaces/checkout/components/Choice/examples/basic-choice.example.ts +2 -2
  581. package/src/surfaces/checkout/components/ChoiceList/ChoiceList.doc.ts +63 -0
  582. package/src/surfaces/checkout/components/ChoiceList/content/guidelines.md +2 -2
  583. package/src/surfaces/checkout/components/ChoiceList/examples/basic-choicelist.example.ts +2 -2
  584. package/src/surfaces/checkout/components/DateField/DateField.doc.ts +49 -0
  585. package/src/surfaces/checkout/components/DateField/DateField.ts +50 -0
  586. package/src/surfaces/checkout/components/DateField/examples/basic-datefield.example.ts +9 -0
  587. package/src/surfaces/checkout/components/DatePicker/DatePicker.doc.ts +50 -0
  588. package/src/surfaces/checkout/components/DatePicker/DatePicker.ts +81 -0
  589. package/src/surfaces/checkout/components/DatePicker/examples/basic-datepicker.example.ts +9 -0
  590. package/src/surfaces/checkout/components/Disclosure/Disclosure.doc.ts +61 -0
  591. package/src/surfaces/checkout/components/Disclosure/Disclosure.ts +46 -0
  592. package/src/surfaces/checkout/components/Disclosure/examples/basic-disclosure.example.ts +19 -0
  593. package/src/surfaces/checkout/components/Divider/Divider.doc.ts +41 -0
  594. package/src/surfaces/checkout/components/Divider/Divider.ts +2 -2
  595. package/src/surfaces/checkout/components/Divider/examples/basic-divider.example.ts +2 -2
  596. package/src/surfaces/checkout/components/Form/Form.doc.ts +50 -0
  597. package/src/surfaces/checkout/components/Form/examples/basic-form.example.ts +2 -2
  598. package/src/surfaces/checkout/components/Grid/Grid.doc.ts +57 -0
  599. package/src/surfaces/checkout/components/Grid/Grid.ts +24 -3
  600. package/src/surfaces/checkout/components/Grid/examples/basic-grid.example.ts +2 -2
  601. package/src/surfaces/checkout/components/GridItem/GridItem.doc.ts +57 -0
  602. package/src/surfaces/checkout/components/GridItem/GridItem.ts +24 -3
  603. package/src/surfaces/checkout/components/GridItem/examples/basic-griditem.example.ts +2 -2
  604. package/src/surfaces/checkout/components/Heading/Heading.doc.ts +69 -0
  605. package/src/surfaces/checkout/components/Heading/examples/basic-heading.example.ts +2 -2
  606. package/src/surfaces/checkout/components/HeadingGroup/HeadingGroup.doc.ts +63 -0
  607. package/src/surfaces/checkout/components/HeadingGroup/examples/basic-headinggroup.example.ts +2 -2
  608. package/src/surfaces/checkout/components/Icon/Icon.doc.ts +57 -0
  609. package/src/surfaces/checkout/components/Icon/Icon.ts +23 -11
  610. package/src/surfaces/checkout/components/Icon/examples/basic-icon.example.ts +2 -2
  611. package/src/surfaces/checkout/components/Image/Image.doc.ts +49 -0
  612. package/src/surfaces/checkout/components/Image/Image.ts +8 -3
  613. package/src/surfaces/checkout/components/Image/examples/basic-image.example.ts +2 -2
  614. package/src/surfaces/checkout/components/InlineLayout/InlineLayout.doc.ts +61 -0
  615. package/src/surfaces/checkout/components/InlineLayout/InlineLayout.ts +8 -1
  616. package/src/surfaces/checkout/components/InlineLayout/examples/basic-inlineLayout.example.ts +2 -2
  617. package/src/surfaces/checkout/components/InlineLayout/examples/basic-inlinelayout.example.ts +16 -0
  618. package/src/surfaces/checkout/components/InlineSpacer/InlineSpacer.doc.ts +41 -0
  619. package/src/surfaces/checkout/components/InlineSpacer/InlineSpacer.ts +2 -2
  620. package/src/surfaces/checkout/components/InlineSpacer/examples/basic-inlinespacer.example.ts +2 -2
  621. package/src/surfaces/checkout/components/InlineStack/InlineStack.doc.ts +50 -0
  622. package/src/surfaces/checkout/components/InlineStack/InlineStack.ts +23 -1
  623. package/src/surfaces/checkout/components/InlineStack/examples/basic-inlinestack.example.ts +2 -2
  624. package/src/surfaces/checkout/components/Link/Link.doc.ts +64 -0
  625. package/src/surfaces/checkout/components/Link/Link.ts +9 -4
  626. package/src/surfaces/checkout/components/Link/examples/basic-link.example.ts +2 -2
  627. package/src/surfaces/checkout/components/List/List.doc.ts +58 -0
  628. package/src/surfaces/checkout/components/List/List.ts +2 -2
  629. package/src/surfaces/checkout/components/List/examples/basic-list.example.ts +2 -2
  630. package/src/surfaces/checkout/components/ListItem/ListItem.doc.ts +42 -0
  631. package/src/surfaces/checkout/components/ListItem/ListItem.ts +3 -1
  632. package/src/surfaces/checkout/components/ListItem/examples/basic-listitem.example.ts +2 -2
  633. package/src/surfaces/checkout/components/Modal/Modal.doc.ts +50 -0
  634. package/src/surfaces/checkout/components/Modal/Modal.ts +42 -0
  635. package/src/surfaces/checkout/components/Modal/examples/basic-modal.example.ts +44 -0
  636. package/src/surfaces/checkout/components/PhoneField/PhoneField.doc.ts +41 -0
  637. package/src/surfaces/checkout/components/PhoneField/PhoneField.ts +99 -23
  638. package/src/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.ts +2 -2
  639. package/src/surfaces/checkout/components/Popover/Popover.doc.ts +50 -0
  640. package/src/surfaces/checkout/components/Popover/Popover.ts +45 -0
  641. package/src/surfaces/checkout/components/Popover/examples/basic-popover.example.ts +30 -0
  642. package/src/surfaces/checkout/components/Pressable/Pressable.doc.ts +41 -0
  643. package/src/surfaces/checkout/components/Pressable/Pressable.ts +25 -2
  644. package/src/surfaces/checkout/components/Pressable/examples/basic-pressable.example.ts +4 -4
  645. package/src/surfaces/checkout/components/ScrollView/ScrollView.doc.ts +41 -0
  646. package/src/surfaces/checkout/components/ScrollView/ScrollView.ts +6 -1
  647. package/src/surfaces/checkout/components/ScrollView/examples/basic-scrollview.example.ts +2 -2
  648. package/src/surfaces/checkout/components/Select/Select.doc.ts +50 -0
  649. package/src/surfaces/checkout/components/Select/Select.ts +2 -2
  650. package/src/surfaces/checkout/components/Select/examples/basic-select.example.ts +2 -2
  651. package/src/surfaces/checkout/components/SkeletonImage/SkeletonImage.doc.ts +52 -0
  652. package/src/surfaces/checkout/components/SkeletonImage/SkeletonImage.ts +2 -3
  653. package/src/surfaces/checkout/components/SkeletonImage/examples/basic-skeletonimage.example.ts +2 -2
  654. package/src/surfaces/checkout/components/SkeletonText/SkeletonText.doc.ts +52 -0
  655. package/src/surfaces/checkout/components/SkeletonText/SkeletonText.ts +7 -3
  656. package/src/surfaces/checkout/components/SkeletonText/examples/basic-skeletontext.example.ts +2 -2
  657. package/src/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.doc.ts +41 -0
  658. package/src/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.ts +7 -2
  659. package/src/surfaces/checkout/components/SkeletonTextBlock/examples/basic-skeletontextblock.example.ts +2 -2
  660. package/src/surfaces/checkout/components/Spinner/Spinner.doc.ts +50 -0
  661. package/src/surfaces/checkout/components/Spinner/Spinner.ts +2 -2
  662. package/src/surfaces/checkout/components/Spinner/examples/basic-spinner.example.ts +2 -2
  663. package/src/surfaces/checkout/components/Stepper/Stepper.doc.ts +50 -0
  664. package/src/surfaces/checkout/components/Stepper/Stepper.ts +113 -21
  665. package/src/surfaces/checkout/components/Stepper/examples/basic-stepper.example.ts +2 -2
  666. package/src/surfaces/checkout/components/Tag/Tag.doc.ts +41 -0
  667. package/src/surfaces/checkout/components/Tag/Tag.ts +4 -4
  668. package/src/surfaces/checkout/components/Tag/examples/basic-tag.example.ts +2 -2
  669. package/src/surfaces/checkout/components/Text/Text.doc.ts +76 -0
  670. package/src/surfaces/checkout/components/Text/Text.ts +2 -4
  671. package/src/surfaces/checkout/components/Text/content/guidelines.md +1 -1
  672. package/src/surfaces/checkout/components/Text/examples/basic-text.example.ts +2 -2
  673. package/src/surfaces/checkout/components/TextBlock/TextBlock.doc.ts +76 -0
  674. package/src/surfaces/checkout/components/TextBlock/TextBlock.ts +9 -9
  675. package/src/surfaces/checkout/components/TextBlock/content/guidelines.md +1 -1
  676. package/src/surfaces/checkout/components/TextBlock/examples/basic-textblock.example.ts +6 -2
  677. package/src/surfaces/checkout/components/TextField/TextField.doc.ts +49 -0
  678. package/src/surfaces/checkout/components/TextField/TextField.ts +2 -2
  679. package/src/surfaces/checkout/components/TextField/examples/basic-textfield.example.ts +2 -2
  680. package/src/surfaces/checkout/components/Tooltip/Tooltip.doc.ts +50 -0
  681. package/src/surfaces/checkout/components/Tooltip/Tooltip.ts +3 -1
  682. package/src/surfaces/checkout/components/Tooltip/examples/basic-tooltip.example.ts +2 -2
  683. package/src/surfaces/checkout/components/View/View.doc.ts +50 -0
  684. package/src/surfaces/checkout/components/View/View.ts +17 -18
  685. package/src/surfaces/checkout/components/View/examples/basic-view.example.ts +2 -2
  686. package/src/surfaces/checkout/components/shared.ts +73 -18
  687. package/src/surfaces/checkout/components.ts +41 -16
  688. package/src/surfaces/checkout/extension-points.ts +245 -52
  689. package/src/surfaces/checkout/extension.ts +62 -3
  690. package/src/surfaces/checkout/globals.ts +1 -1
  691. package/src/surfaces/checkout/helper.docs.ts +103 -0
  692. package/src/surfaces/checkout/shared.ts +3 -11
  693. package/src/surfaces/checkout/style/examples/.eslintrc.js +8 -0
  694. package/src/surfaces/checkout/style/examples/defaultstyle.example.tsx +9 -0
  695. package/src/surfaces/checkout/style/examples/simplecondition.example.tsx +9 -0
  696. package/src/surfaces/checkout/style/examples/style.example.ts +18 -0
  697. package/src/surfaces/checkout/style/examples/style.example.tsx +16 -0
  698. package/src/surfaces/checkout/style/index.ts +16 -0
  699. package/src/surfaces/checkout/style/memoize.ts +2 -0
  700. package/src/surfaces/checkout/style/style.doc.ts +166 -0
  701. package/src/surfaces/checkout/style/style.ts +5 -0
  702. package/src/surfaces/checkout/style/types.ts +5 -0
  703. package/src/utilities/registration.ts +59 -7
  704. package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts +0 -9
  705. package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts.map +0 -1
  706. package/src/surfaces/checkout/api/cart-line-details/README.md +0 -1
@@ -0,0 +1,8 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ /**
4
+ * Customer segmentation templates are used to give merchants a starting point to create segments.
5
+ */
6
+ const CustomerSegmentationTemplate = createRemoteComponent('CustomerSegmentationTemplate');
7
+
8
+ export { CustomerSegmentationTemplate };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Divider = createRemoteComponent('Divider');
4
+
5
+ export { Divider };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const EmailField = createRemoteComponent('EmailField');
4
+
5
+ export { EmailField };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Form = createRemoteComponent('Form');
4
+
5
+ export { Form };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Heading = createRemoteComponent('Heading');
4
+
5
+ export { Heading };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const HeadingGroup = createRemoteComponent('HeadingGroup');
4
+
5
+ export { HeadingGroup };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Icon = createRemoteComponent('Icon');
4
+
5
+ export { Icon };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Image = createRemoteComponent('Image');
4
+
5
+ export { Image };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const InlineStack = createRemoteComponent('InlineStack');
4
+
5
+ export { InlineStack };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Link = createRemoteComponent('Link');
4
+
5
+ export { Link };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const NumberField = createRemoteComponent('NumberField');
4
+
5
+ export { NumberField };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const PasswordField = createRemoteComponent('PasswordField');
4
+
5
+ export { PasswordField };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Select = createRemoteComponent('Select');
4
+
5
+ export { Select };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Text = createRemoteComponent('Text');
4
+
5
+ export { Text };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const TextArea = createRemoteComponent('TextArea');
4
+
5
+ export { TextArea };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const TextField = createRemoteComponent('TextField');
4
+
5
+ export { TextField };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const URLField = createRemoteComponent('URLField');
4
+
5
+ export { URLField };
@@ -0,0 +1,6 @@
1
+ import { createExtensionRegistrationFunction } from '../../utilities/registration.mjs';
2
+
3
+ const extension = createExtensionRegistrationFunction();
4
+ const extend = extension;
5
+
6
+ export { extend, extension };
@@ -0,0 +1,24 @@
1
+ export { extend, extension } from './admin/extension.mjs';
2
+ export { AdminAction } from './admin/components/AdminAction/AdminAction.mjs';
3
+ export { AdminBlock } from './admin/components/AdminBlock/AdminBlock.mjs';
4
+ export { BlockStack } from './admin/components/BlockStack/BlockStack.mjs';
5
+ export { Box } from './admin/components/Box/Box.mjs';
6
+ export { Button } from './admin/components/Button/Button.mjs';
7
+ export { Checkbox } from './admin/components/Checkbox/Checkbox.mjs';
8
+ export { CustomerSegmentationTemplate } from './admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.mjs';
9
+ export { Divider } from './admin/components/Divider/Divider.mjs';
10
+ export { EmailField } from './admin/components/EmailField/EmailField.mjs';
11
+ export { Form } from './admin/components/Form/Form.mjs';
12
+ export { Heading } from './admin/components/Heading/Heading.mjs';
13
+ export { HeadingGroup } from './admin/components/HeadingGroup/HeadingGroup.mjs';
14
+ export { Icon } from './admin/components/Icon/Icon.mjs';
15
+ export { InlineStack } from './admin/components/InlineStack/InlineStack.mjs';
16
+ export { Image } from './admin/components/Image/Image.mjs';
17
+ export { Link } from './admin/components/Link/Link.mjs';
18
+ export { NumberField } from './admin/components/NumberField/NumberField.mjs';
19
+ export { PasswordField } from './admin/components/PasswordField/PasswordField.mjs';
20
+ export { Select } from './admin/components/Select/Select.mjs';
21
+ export { Text } from './admin/components/Text/Text.mjs';
22
+ export { TextArea } from './admin/components/TextArea/TextArea.mjs';
23
+ export { TextField } from './admin/components/TextField/TextField.mjs';
24
+ export { URLField } from './admin/components/URLField/URLField.mjs';
@@ -0,0 +1,9 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ /**
4
+ * The DateField component is used to collect date information from buyers.
5
+ * It also provides the ability to display a DatePicker UI, which allows users to select dates with ease.
6
+ */
7
+ const DateField = createRemoteComponent('DateField');
8
+
9
+ export { DateField };
@@ -0,0 +1,18 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ let Day;
4
+ (function (Day) {
5
+ Day[Day["Sunday"] = 0] = "Sunday";
6
+ Day[Day["Monday"] = 1] = "Monday";
7
+ Day[Day["Tuesday"] = 2] = "Tuesday";
8
+ Day[Day["Wednesday"] = 3] = "Wednesday";
9
+ Day[Day["Thursday"] = 4] = "Thursday";
10
+ Day[Day["Friday"] = 5] = "Friday";
11
+ Day[Day["Saturday"] = 6] = "Saturday";
12
+ })(Day || (Day = {}));
13
+ /**
14
+ * The DatePicker component is a calendar picker UI that allows users to select a single date or a date range.
15
+ */
16
+ const DatePicker = createRemoteComponent('DatePicker');
17
+
18
+ export { DatePicker, Day };
@@ -0,0 +1,16 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ /**
4
+ * Disclosure is an optionally controlled component used to put long sections of information
5
+ * under content blocks that users can expand or collapse by pressing an activator.
6
+ * The activator can be specified as children using an action component (`Button`, `Link` or `Pressable`)
7
+ * or `Checkbox` component.
8
+ * The content blocks can be specified as children inside a structure component (`View`, `InlineLayout`,
9
+ * `BlockStack`, `Grid`, etc.).
10
+ *
11
+ * The library takes care of applying the WAI-ARIA Accordion pattern automatically for the activator
12
+ * and the toggled content.
13
+ */
14
+ const Disclosure = createRemoteComponent('Disclosure');
15
+
16
+ export { Disclosure };
@@ -0,0 +1,13 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ /**
4
+ * Modals are a special type of overlay that shift focus towards a specific action/set of information
5
+ * before the main flow can proceed.
6
+ * They must be specified inside the `overlay` prop of an activator component (`Button`, `Link` or `Pressable`).
7
+ *
8
+ * The library takes care of applying the WAI-ARIA Dialog pattern automatically for the activator
9
+ * and the modal content.
10
+ */
11
+ const Modal = createRemoteComponent('Modal');
12
+
13
+ export { Modal };
@@ -0,0 +1,13 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ /**
4
+ * Popovers are similar to tooltips. They are small overlays that open on demand after a user interaction.
5
+ * The difference is that the popover can contain more content, without cluttering the page.
6
+ * They must be specified inside the `overlay` prop of an activator component (`Button`, `Link` or `Pressable`).
7
+ *
8
+ * The library takes care of applying the WAI-ARIA Popover Widget pattern automatically for the activator
9
+ * and the popover content.
10
+ */
11
+ const Popover = createRemoteComponent('Popover');
12
+
13
+ export { Popover };
@@ -4,9 +4,6 @@ import { createRemoteComponent } from '@remote-ui/core';
4
4
  * View is a generic container component. Its contents will always be their
5
5
  * “natural” size, so this component can be useful in layout components (like `Grid`,
6
6
  * `BlockStack`, `InlineStack`) that would otherwise stretch their children to fit.
7
- *
8
- * Note: View’s box model related properties like `padding`, `border`, `borderRadius`, and `borderColor` are implemented as
9
- * [CSS Logical Properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties/Basic_concepts).
10
7
  */
11
8
  const View = createRemoteComponent('View');
12
9
 
@@ -1,6 +1,38 @@
1
- import { createExtensionRegistrationFunction } from '../../utilities/registration.mjs';
2
-
1
+ /**
2
+ * Registers your UI Extension to run for the selected extension point.
3
+ *
4
+ * @param target The extension point you are registering for.
5
+ *
6
+ * @param implementation The function that will be called when Checkout begins rendering
7
+ * your extension. This function is called with the API checkout provided to your
8
+ * extension.
9
+ */
3
10
  const extension = createExtensionRegistrationFunction();
11
+
12
+ /**
13
+ * Registers your UI Extension to run for the selected extension point.
14
+ *
15
+ * @param target The extension point you are registering for.
16
+ *
17
+ * @param implementation The function that will be called when Checkout begins rendering
18
+ * your extension. This function is called with the API checkout provided to your
19
+ * extension.
20
+ */
4
21
  const extend = extension;
22
+ /**
23
+ * This function takes an extension function that is expecting a `RemoteRoot` as its
24
+ * first argument, and returns a new function that accepts a `RemoteChannel` instead.
25
+ * This is a convenience that allows the raw UI extension API to only expose the simpler
26
+ * `RemoteChannel` type, while allowing the extension to use the more powerful `RemoteRoot`,
27
+ * provided by a version of `@remote-ui/core` that the extension controls.
28
+ */
29
+ function createExtensionRegistrationFunction() {
30
+ const extensionWrapper = (target, implementation) => {
31
+ var _shopify;
32
+ (_shopify = globalThis.shopify) === null || _shopify === void 0 ? void 0 : _shopify.extend(target, implementation);
33
+ return implementation;
34
+ };
35
+ return extensionWrapper;
36
+ }
5
37
 
6
- export { extend, extension };
38
+ export { createExtensionRegistrationFunction, extend, extension };
@@ -53,6 +53,8 @@ function createLruCache(maxSize, equals) {
53
53
  }
54
54
  function put(key, value) {
55
55
  if (get(key) === NOT_FOUND) {
56
+ // eslint-disable-next-line no-warning-comments
57
+ // TODO Is unshift slow?
56
58
  entries.unshift({
57
59
  key,
58
60
  value
@@ -22,7 +22,6 @@ const when = function when(conditions, value) {
22
22
  };
23
23
  return createChainableConditionalStyle(config);
24
24
  };
25
-
26
25
  /**
27
26
  * Style is a helper for authoring conditional values for prop styles.
28
27
  * Write complex conditional styles based on one or more conditions (viewport
@@ -1,4 +1,4 @@
1
- export { extend, extension } from './checkout/extension.mjs';
1
+ export { createExtensionRegistrationFunction, extend, extension } from './checkout/extension.mjs';
2
2
  export { Banner } from './checkout/components/Banner/Banner.mjs';
3
3
  export { BlockLayout } from './checkout/components/BlockLayout/BlockLayout.mjs';
4
4
  export { BlockSpacer } from './checkout/components/BlockSpacer/BlockSpacer.mjs';
@@ -7,6 +7,9 @@ export { Button } from './checkout/components/Button/Button.mjs';
7
7
  export { Checkbox } from './checkout/components/Checkbox/Checkbox.mjs';
8
8
  export { Choice } from './checkout/components/Choice/Choice.mjs';
9
9
  export { ChoiceList } from './checkout/components/ChoiceList/ChoiceList.mjs';
10
+ export { DatePicker } from './checkout/components/DatePicker/DatePicker.mjs';
11
+ export { DateField } from './checkout/components/DateField/DateField.mjs';
12
+ export { Disclosure } from './checkout/components/Disclosure/Disclosure.mjs';
10
13
  export { Divider } from './checkout/components/Divider/Divider.mjs';
11
14
  export { Form } from './checkout/components/Form/Form.mjs';
12
15
  export { Grid } from './checkout/components/Grid/Grid.mjs';
@@ -21,8 +24,10 @@ export { InlineSpacer } from './checkout/components/InlineSpacer/InlineSpacer.mj
21
24
  export { Link } from './checkout/components/Link/Link.mjs';
22
25
  export { List } from './checkout/components/List/List.mjs';
23
26
  export { ListItem } from './checkout/components/ListItem/ListItem.mjs';
27
+ export { Modal } from './checkout/components/Modal/Modal.mjs';
24
28
  export { PhoneField } from './checkout/components/PhoneField/PhoneField.mjs';
25
29
  export { Pressable } from './checkout/components/Pressable/Pressable.mjs';
30
+ export { Popover } from './checkout/components/Popover/Popover.mjs';
26
31
  export { ScrollView } from './checkout/components/ScrollView/ScrollView.mjs';
27
32
  export { Select } from './checkout/components/Select/Select.mjs';
28
33
  export { SkeletonImage } from './checkout/components/SkeletonImage/SkeletonImage.mjs';
@@ -1,3 +1,5 @@
1
+ import { createRemoteRoot } from '@remote-ui/core';
2
+
1
3
  /**
2
4
  * This function takes an extension function that is expecting a `RemoteRoot` as its
3
5
  * first argument, and returns a new function that accepts a `RemoteChannel` instead.
@@ -8,8 +10,30 @@
8
10
  function createExtensionRegistrationFunction() {
9
11
  const extensionWrapper = (target, implementation) => {
10
12
  var _shopify;
11
- (_shopify = globalThis.shopify) === null || _shopify === void 0 ? void 0 : _shopify.extend(target, implementation);
12
- return implementation;
13
+ async function extension(...args) {
14
+ // Rendering extensions have two arguments. Non-rendering extensions don’t have
15
+ // a `RemoteChannel` that needs to be normalized, so we can just pass the arguments
16
+ // through.
17
+ if (args.length === 1) {
18
+ return implementation(...args);
19
+ }
20
+ const [{
21
+ channel,
22
+ components
23
+ }, api] = args;
24
+ const root = createRemoteRoot(channel, {
25
+ components,
26
+ strict: true
27
+ });
28
+ let renderResult = implementation(root, api);
29
+ if (typeof renderResult === 'object' && renderResult != null && 'then' in renderResult) {
30
+ renderResult = await renderResult;
31
+ }
32
+ root.mount();
33
+ return renderResult;
34
+ }
35
+ (_shopify = globalThis.shopify) === null || _shopify === void 0 ? void 0 : _shopify.extend(target, extension);
36
+ return extension;
13
37
  };
14
38
  return extensionWrapper;
15
39
  }
@@ -0,0 +1,8 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ /**
4
+ * AdminAction is a component used by Admin Action extensions to configure a primary and secondary action and title.
5
+ */
6
+ const AdminAction = createRemoteComponent('AdminAction');
7
+
8
+ export { AdminAction };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const AdminBlock = createRemoteComponent('AdminBlock');
4
+
5
+ export { AdminBlock };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const BlockStack = createRemoteComponent('BlockStack');
4
+
5
+ export { BlockStack };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Box = createRemoteComponent('Box');
4
+
5
+ export { Box };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Button = createRemoteComponent('Button');
4
+
5
+ export { Button };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Checkbox = createRemoteComponent('Checkbox');
4
+
5
+ export { Checkbox };
@@ -0,0 +1,8 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ /**
4
+ * Customer segmentation templates are used to give merchants a starting point to create segments.
5
+ */
6
+ const CustomerSegmentationTemplate = createRemoteComponent('CustomerSegmentationTemplate');
7
+
8
+ export { CustomerSegmentationTemplate };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Divider = createRemoteComponent('Divider');
4
+
5
+ export { Divider };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const EmailField = createRemoteComponent('EmailField');
4
+
5
+ export { EmailField };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Form = createRemoteComponent('Form');
4
+
5
+ export { Form };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Heading = createRemoteComponent('Heading');
4
+
5
+ export { Heading };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const HeadingGroup = createRemoteComponent('HeadingGroup');
4
+
5
+ export { HeadingGroup };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Icon = createRemoteComponent('Icon');
4
+
5
+ export { Icon };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Image = createRemoteComponent('Image');
4
+
5
+ export { Image };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const InlineStack = createRemoteComponent('InlineStack');
4
+
5
+ export { InlineStack };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Link = createRemoteComponent('Link');
4
+
5
+ export { Link };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const NumberField = createRemoteComponent('NumberField');
4
+
5
+ export { NumberField };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const PasswordField = createRemoteComponent('PasswordField');
4
+
5
+ export { PasswordField };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Select = createRemoteComponent('Select');
4
+
5
+ export { Select };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const Text = createRemoteComponent('Text');
4
+
5
+ export { Text };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const TextArea = createRemoteComponent('TextArea');
4
+
5
+ export { TextArea };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const TextField = createRemoteComponent('TextField');
4
+
5
+ export { TextField };
@@ -0,0 +1,5 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ const URLField = createRemoteComponent('URLField');
4
+
5
+ export { URLField };
@@ -0,0 +1,6 @@
1
+ import { createExtensionRegistrationFunction } from '../../utilities/registration.esnext';
2
+
3
+ const extension = createExtensionRegistrationFunction();
4
+ const extend = extension;
5
+
6
+ export { extend, extension };
@@ -0,0 +1,24 @@
1
+ export { extend, extension } from './admin/extension.esnext';
2
+ export { AdminAction } from './admin/components/AdminAction/AdminAction.esnext';
3
+ export { AdminBlock } from './admin/components/AdminBlock/AdminBlock.esnext';
4
+ export { BlockStack } from './admin/components/BlockStack/BlockStack.esnext';
5
+ export { Box } from './admin/components/Box/Box.esnext';
6
+ export { Button } from './admin/components/Button/Button.esnext';
7
+ export { Checkbox } from './admin/components/Checkbox/Checkbox.esnext';
8
+ export { CustomerSegmentationTemplate } from './admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.esnext';
9
+ export { Divider } from './admin/components/Divider/Divider.esnext';
10
+ export { EmailField } from './admin/components/EmailField/EmailField.esnext';
11
+ export { Form } from './admin/components/Form/Form.esnext';
12
+ export { Heading } from './admin/components/Heading/Heading.esnext';
13
+ export { HeadingGroup } from './admin/components/HeadingGroup/HeadingGroup.esnext';
14
+ export { Icon } from './admin/components/Icon/Icon.esnext';
15
+ export { InlineStack } from './admin/components/InlineStack/InlineStack.esnext';
16
+ export { Image } from './admin/components/Image/Image.esnext';
17
+ export { Link } from './admin/components/Link/Link.esnext';
18
+ export { NumberField } from './admin/components/NumberField/NumberField.esnext';
19
+ export { PasswordField } from './admin/components/PasswordField/PasswordField.esnext';
20
+ export { Select } from './admin/components/Select/Select.esnext';
21
+ export { Text } from './admin/components/Text/Text.esnext';
22
+ export { TextArea } from './admin/components/TextArea/TextArea.esnext';
23
+ export { TextField } from './admin/components/TextField/TextField.esnext';
24
+ export { URLField } from './admin/components/URLField/URLField.esnext';
@@ -0,0 +1,9 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ /**
4
+ * The DateField component is used to collect date information from buyers.
5
+ * It also provides the ability to display a DatePicker UI, which allows users to select dates with ease.
6
+ */
7
+ const DateField = createRemoteComponent('DateField');
8
+
9
+ export { DateField };
@@ -0,0 +1,18 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ let Day;
4
+ (function (Day) {
5
+ Day[Day["Sunday"] = 0] = "Sunday";
6
+ Day[Day["Monday"] = 1] = "Monday";
7
+ Day[Day["Tuesday"] = 2] = "Tuesday";
8
+ Day[Day["Wednesday"] = 3] = "Wednesday";
9
+ Day[Day["Thursday"] = 4] = "Thursday";
10
+ Day[Day["Friday"] = 5] = "Friday";
11
+ Day[Day["Saturday"] = 6] = "Saturday";
12
+ })(Day || (Day = {}));
13
+ /**
14
+ * The DatePicker component is a calendar picker UI that allows users to select a single date or a date range.
15
+ */
16
+ const DatePicker = createRemoteComponent('DatePicker');
17
+
18
+ export { DatePicker, Day };
@@ -0,0 +1,16 @@
1
+ import { createRemoteComponent } from '@remote-ui/core';
2
+
3
+ /**
4
+ * Disclosure is an optionally controlled component used to put long sections of information
5
+ * under content blocks that users can expand or collapse by pressing an activator.
6
+ * The activator can be specified as children using an action component (`Button`, `Link` or `Pressable`)
7
+ * or `Checkbox` component.
8
+ * The content blocks can be specified as children inside a structure component (`View`, `InlineLayout`,
9
+ * `BlockStack`, `Grid`, etc.).
10
+ *
11
+ * The library takes care of applying the WAI-ARIA Accordion pattern automatically for the activator
12
+ * and the toggled content.
13
+ */
14
+ const Disclosure = createRemoteComponent('Disclosure');
15
+
16
+ export { Disclosure };