@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,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.esnext';
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.esnext';
1
+ export { createExtensionRegistrationFunction, extend, extension } from './checkout/extension.esnext';
2
2
  export { Banner } from './checkout/components/Banner/Banner.esnext';
3
3
  export { BlockLayout } from './checkout/components/BlockLayout/BlockLayout.esnext';
4
4
  export { BlockSpacer } from './checkout/components/BlockSpacer/BlockSpacer.esnext';
@@ -7,6 +7,9 @@ export { Button } from './checkout/components/Button/Button.esnext';
7
7
  export { Checkbox } from './checkout/components/Checkbox/Checkbox.esnext';
8
8
  export { Choice } from './checkout/components/Choice/Choice.esnext';
9
9
  export { ChoiceList } from './checkout/components/ChoiceList/ChoiceList.esnext';
10
+ export { DatePicker } from './checkout/components/DatePicker/DatePicker.esnext';
11
+ export { DateField } from './checkout/components/DateField/DateField.esnext';
12
+ export { Disclosure } from './checkout/components/Disclosure/Disclosure.esnext';
10
13
  export { Divider } from './checkout/components/Divider/Divider.esnext';
11
14
  export { Form } from './checkout/components/Form/Form.esnext';
12
15
  export { Grid } from './checkout/components/Grid/Grid.esnext';
@@ -21,8 +24,10 @@ export { InlineSpacer } from './checkout/components/InlineSpacer/InlineSpacer.es
21
24
  export { Link } from './checkout/components/Link/Link.esnext';
22
25
  export { List } from './checkout/components/List/List.esnext';
23
26
  export { ListItem } from './checkout/components/ListItem/ListItem.esnext';
27
+ export { Modal } from './checkout/components/Modal/Modal.esnext';
24
28
  export { PhoneField } from './checkout/components/PhoneField/PhoneField.esnext';
25
29
  export { Pressable } from './checkout/components/Pressable/Pressable.esnext';
30
+ export { Popover } from './checkout/components/Popover/Popover.esnext';
26
31
  export { ScrollView } from './checkout/components/ScrollView/ScrollView.esnext';
27
32
  export { Select } from './checkout/components/Select/Select.esnext';
28
33
  export { SkeletonImage } from './checkout/components/SkeletonImage/SkeletonImage.esnext';
@@ -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
  }
package/build/ts/api.d.ts CHANGED
@@ -1,4 +1,66 @@
1
1
  export interface StandardApi {
2
2
  readonly extensionPoint: string;
3
3
  }
4
+ /**
5
+ * This defines the i18n.translate() signature.
6
+ */
7
+ export interface I18nTranslate {
8
+ /**
9
+ * This returns a translated string matching a key in a locale file.
10
+ *
11
+ * @example translate("banner.title")
12
+ */
13
+ <ReplacementType = string>(key: string, options?: {
14
+ [placeholderKey: string]: ReplacementType | string | number;
15
+ }): ReplacementType extends string | number ? string : (string | ReplacementType)[];
16
+ }
17
+ export interface I18n {
18
+ /**
19
+ * Returns a localized number.
20
+ *
21
+ * This function behaves like the standard `Intl.NumberFormat()`
22
+ * with a style of `decimal` applied. It uses the buyer's locale by default.
23
+ *
24
+ * @param options.inExtensionLocale - if true, use the extension's locale
25
+ */
26
+ formatNumber: (number: number | bigint, options?: {
27
+ inExtensionLocale?: boolean;
28
+ } & Intl.NumberFormatOptions) => string;
29
+ /**
30
+ * Returns a localized currency value.
31
+ *
32
+ * This function behaves like the standard `Intl.NumberFormat()`
33
+ * with a style of `currency` applied. It uses the buyer's locale by default.
34
+ *
35
+ * @param options.inExtensionLocale - if true, use the extension's locale
36
+ */
37
+ formatCurrency: (number: number | bigint, options?: {
38
+ inExtensionLocale?: boolean;
39
+ } & Intl.NumberFormatOptions) => string;
40
+ /**
41
+ * Returns a localized date value.
42
+ *
43
+ * This function behaves like the standard `Intl.DateTimeFormatOptions()` and uses
44
+ * the buyer's locale by default. Formatting options can be passed in as
45
+ * options.
46
+ *
47
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat0
48
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options
49
+ *
50
+ * @param options.inExtensionLocale - if true, use the extension's locale
51
+ */
52
+ formatDate: (date: Date, options?: {
53
+ inExtensionLocale?: boolean;
54
+ } & Intl.DateTimeFormatOptions) => string;
55
+ /**
56
+ * Returns translated content in the buyer's locale,
57
+ * as supported by the extension.
58
+ *
59
+ * - `options.count` is a special numeric value used in pluralization.
60
+ * - The other option keys and values are treated as replacements for interpolation.
61
+ * - If the replacements are all primitives, then `translate()` returns a single string.
62
+ * - If replacements contain UI components, then `translate()` returns an array of elements.
63
+ */
64
+ translate: I18nTranslate;
65
+ }
4
66
  //# sourceMappingURL=api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,CAAC,eAAe,GAAG,MAAM,EACvB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE;QAAC,CAAC,cAAc,EAAE,MAAM,GAAG,eAAe,GAAG,MAAM,GAAG,MAAM,CAAA;KAAC,GACtE,eAAe,SAAS,MAAM,GAAG,MAAM,GACtC,MAAM,GACN,CAAC,MAAM,GAAG,eAAe,CAAC,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,IAAI;IACnB;;;;;;;OAOG;IACH,YAAY,EAAE,CACZ,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,OAAO,CAAC,EAAE;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC,mBAAmB,KAC/D,MAAM,CAAC;IAEZ;;;;;;;OAOG;IACH,cAAc,EAAE,CACd,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,OAAO,CAAC,EAAE;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC,mBAAmB,KAC/D,MAAM,CAAC;IAEZ;;;;;;;;;;;OAWG;IACH,UAAU,EAAE,CACV,IAAI,EAAE,IAAI,EACV,OAAO,CAAC,EAAE;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC,qBAAqB,KACjE,MAAM,CAAC;IAEZ;;;;;;;;OAQG;IACH,SAAS,EAAE,aAAa,CAAC;CAC1B"}
@@ -1,8 +1,15 @@
1
- import type { RemoteRoot, RemoteComponentType } from '@remote-ui/core';
1
+ import type { RemoteRoot, RemoteChannel, RemoteComponentType } from '@remote-ui/core';
2
2
  export interface Extension<Api, Result> {
3
3
  (api: Api): Result;
4
4
  }
5
+ export interface RenderExtensionConnection<AllowedComponents extends RemoteComponentType<string, any, any> = RemoteComponentType<any, any, any>> {
6
+ readonly channel: RemoteChannel;
7
+ readonly components: AllowedComponents;
8
+ }
5
9
  export interface RenderExtension<Api, AllowedComponents extends RemoteComponentType<string, any, any> = RemoteComponentType<any, any, any>> {
10
+ (connection: RenderExtensionConnection<AllowedComponents>, api: Api): void | Promise<void>;
11
+ }
12
+ export interface RenderExtensionWithRemoteRoot<Api, AllowedComponents extends RemoteComponentType<string, any, any> = RemoteComponentType<any, any, any>> {
6
13
  (root: RemoteRoot<AllowedComponents, AllowedComponents>, api: Api): void | Promise<void>;
7
14
  }
8
15
  //# sourceMappingURL=extension.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../src/extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAErE,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,MAAM;IACpC,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAe,CAC9B,GAAG,EACH,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,EACH,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAEtC,CACE,IAAI,EAAE,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,EACtD,GAAG,EAAE,GAAG,GACP,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB"}
1
+ {"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../src/extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,MAAM;IACpC,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB,CACxC,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,EACH,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAEtC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;CACxC;AAED,MAAM,WAAW,eAAe,CAC9B,GAAG,EACH,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,EACH,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAEtC,CACE,UAAU,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,EACxD,GAAG,EAAE,GAAG,GACP,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,6BAA6B,CAC5C,GAAG,EACH,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,EACH,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAEtC,CACE,IAAI,EAAE,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,EACtD,GAAG,EAAE,GAAG,GACP,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB"}
@@ -1,4 +1,3 @@
1
1
  export * from './api';
2
2
  export * from './extension';
3
- export * from './extension';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { RemoteComponentType } from '@remote-ui/core';
2
+ export type ComponentsBuilder<ComponentTypes> = {
3
+ [K in keyof ComponentTypes]: ComponentTypes[K] extends RemoteComponentType<any, any> ? ComponentTypes[K] : never;
4
+ };
5
+ export type AnyComponentBuilder<ComponentTypes> = ComponentsBuilder<ComponentTypes>[keyof ComponentsBuilder<ComponentTypes>];
6
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAEzD,MAAM,MAAM,iBAAiB,CAAC,cAAc,IAAI;KAC7C,CAAC,IAAI,MAAM,cAAc,GAAG,cAAc,CAAC,CAAC,CAAC,SAAS,mBAAmB,CACxE,GAAG,EACH,GAAG,CACJ,GACG,cAAc,CAAC,CAAC,CAAC,GACjB,KAAK;CACV,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,cAAc,IAC5C,iBAAiB,CAAC,cAAc,CAAC,CAAC,MAAM,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { StandardApi } from '../standard/standard';
2
+ import type { I18n } from '../../../../api';
3
+ import type { ExtensionPoint as AnyExtensionPoint } from '../../extension-points';
4
+ export interface ActionExtensionApi<ExtensionPoint extends AnyExtensionPoint> extends StandardApi<ExtensionPoint> {
5
+ i18n: I18n;
6
+ /**
7
+ * Closes the extension. This is only available for action extensions.
8
+ */
9
+ close: () => void;
10
+ }
11
+ //# sourceMappingURL=action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/action/action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,EAAC,cAAc,IAAI,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAEhF,MAAM,WAAW,kBAAkB,CAAC,cAAc,SAAS,iBAAiB,CAC1E,SAAQ,WAAW,CAAC,cAAc,CAAC;IAEnC,IAAI,EAAE,IAAI,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB"}
@@ -0,0 +1,4 @@
1
+ import { ReferenceEntityTemplateSchema } from '@shopify/generate-docs';
2
+ declare const data: ReferenceEntityTemplateSchema;
3
+ export default data;
4
+ //# sourceMappingURL=action.doc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/action/action.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAcX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { StandardApi } from '../standard/standard';
2
+ import type { I18n } from '../../../../api';
3
+ import type { ExtensionPoint as AnyExtensionPoint } from '../../extension-points';
4
+ type CustomerSegmentationFeature = 'productsPurchasedByTags' | 'aggregateFilters';
5
+ export interface CustomerSegmentationTemplateApi<ExtensionPoint extends AnyExtensionPoint> extends StandardApi<ExtensionPoint> {
6
+ i18n: I18n;
7
+ /** @private */
8
+ __enabledFeatures: CustomerSegmentationFeature[];
9
+ }
10
+ export {};
11
+ //# sourceMappingURL=customer-segmentation-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-segmentation-template.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,EAAC,cAAc,IAAI,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAGhF,KAAK,2BAA2B,GAE5B,yBAAyB,GAEzB,kBAAkB,CAAC;AAEvB,MAAM,WAAW,+BAA+B,CAC9C,cAAc,SAAS,iBAAiB,CACxC,SAAQ,WAAW,CAAC,cAAc,CAAC;IAEnC,IAAI,EAAE,IAAI,CAAC;IACX,eAAe;IACf,iBAAiB,EAAE,2BAA2B,EAAE,CAAC;CAClD"}
@@ -0,0 +1,4 @@
1
+ import { ReferenceEntityTemplateSchema } from '@shopify/generate-docs';
2
+ declare const data: ReferenceEntityTemplateSchema;
3
+ export default data;
4
+ //# sourceMappingURL=extension-targets.doc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension-targets.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/extension-targets/extension-targets.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAeX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { StandardApi as BaseStandardApi, I18n } from '../../../../api';
2
+ import type { ExtensionPoint as AnyExtensionPoint } from '../../extension-points';
3
+ /**
4
+ * The following APIs are provided to all extension points.
5
+ */
6
+ export interface StandardApi<ExtensionPoint extends AnyExtensionPoint> extends BaseStandardApi {
7
+ /**
8
+ * The identifier of the running extension point.
9
+ */
10
+ extensionPoint: ExtensionPoint;
11
+ i18n: I18n;
12
+ }
13
+ //# sourceMappingURL=standard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/standard/standard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,IAAI,eAAe,EAAE,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAC1E,OAAO,KAAK,EAAC,cAAc,IAAI,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,cAAc,SAAS,iBAAiB,CACnE,SAAQ,eAAe;IACvB;;OAEG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE,IAAI,CAAC;CACZ"}
@@ -0,0 +1,4 @@
1
+ import { ReferenceEntityTemplateSchema } from '@shopify/generate-docs';
2
+ declare const data: ReferenceEntityTemplateSchema;
3
+ export default data;
4
+ //# sourceMappingURL=standard.doc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/standard/standard.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAeX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,5 @@
1
+ export type { I18n, I18nTranslate } from '../../api';
2
+ export type { StandardApi } from './api/standard/standard';
3
+ export type { CustomerSegmentationTemplateApi } from './api/customer-segmentation-template/customer-segmentation-template';
4
+ export type { ActionExtensionApi } from './api/action/action';
5
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/api.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,IAAI,EAAE,aAAa,EAAC,MAAM,WAAW,CAAC;AACnD,YAAY,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACzD,YAAY,EAAC,+BAA+B,EAAC,MAAM,qEAAqE,CAAC;AACzH,YAAY,EAAC,kBAAkB,EAAC,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { RemoteFragment } from '@remote-ui/core';
2
+ export interface AdminActionProps {
3
+ /**
4
+ * Sets the title of the Action container.
5
+ */
6
+ title?: string;
7
+ /**
8
+ * Sets the Primary action button of the container. This component must a button component.
9
+ */
10
+ primaryAction?: RemoteFragment;
11
+ /**
12
+ * Sets the Secondary action button of the container. This component must a button component.
13
+ */
14
+ secondaryAction?: RemoteFragment;
15
+ children: any;
16
+ }
17
+ /**
18
+ * AdminAction is a component used by Admin Action extensions to configure a primary and secondary action and title.
19
+ */
20
+ export declare const AdminAction: "AdminAction" & {
21
+ readonly type?: "AdminAction" | undefined;
22
+ readonly props?: AdminActionProps | undefined;
23
+ readonly children?: true | undefined;
24
+ };
25
+ //# sourceMappingURL=AdminAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdminAction.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/AdminAction/AdminAction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;AAEpD,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC;IAE/B;;OAEG;IACH,eAAe,CAAC,EAAE,cAAc,CAAC;IAEjC,QAAQ,EAAE,GAAG,CAAC;CACf;AACD;;GAEG;AACH,eAAO,MAAM,WAAW;;;;CAGR,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ReferenceEntityTemplateSchema } from '@shopify/generate-docs';
2
+ declare const data: ReferenceEntityTemplateSchema;
3
+ export default data;
4
+ //# sourceMappingURL=AdminAction.doc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdminAction.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/AdminAction/AdminAction.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAoCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,17 @@
1
+ export interface AdminBlockProps {
2
+ /**
3
+ * The title to display at the top of the app block. If not provided, the name of the extension will be used.
4
+ */
5
+ title?: string;
6
+ /**
7
+ * The summary to display when the app block is collapsed. If not provided, no summary will be displayed. No summary is shown when the app block is expanded.
8
+ */
9
+ summary?: string;
10
+ children: any;
11
+ }
12
+ export declare const AdminBlock: "AdminBlock" & {
13
+ readonly type?: "AdminBlock" | undefined;
14
+ readonly props?: AdminBlockProps | undefined;
15
+ readonly children?: true | undefined;
16
+ };
17
+ //# sourceMappingURL=AdminBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdminBlock.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/AdminBlock/AdminBlock.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,GAAG,CAAC;CACf;AAED,eAAO,MAAM,UAAU;;;;CAEtB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ReferenceEntityTemplateSchema } from '@shopify/generate-docs';
2
+ declare const data: ReferenceEntityTemplateSchema;
3
+ export default data;
4
+ //# sourceMappingURL=AdminBlock.doc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdminBlock.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/AdminBlock/AdminBlock.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAoCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { AccessibilityRoleProps, GlobalProps, SizingProps, PaddingProps, GapProps } from '../shared';
2
+ export interface BlockStackProps extends AccessibilityRoleProps, Pick<GapProps, 'gap' | 'blockGap' | 'rowGap'>, GlobalProps, SizingProps, PaddingProps {
3
+ /**
4
+ * A label that describes the purpose or contents of the element. When set,
5
+ * it will be announced to buyers using assistive technologies and will
6
+ * provide them with more context.
7
+ */
8
+ accessibilityLabel?: string;
9
+ }
10
+ export declare const BlockStack: "BlockStack" & {
11
+ readonly type?: "BlockStack" | undefined;
12
+ readonly props?: BlockStackProps | undefined;
13
+ readonly children?: true | undefined;
14
+ };
15
+ //# sourceMappingURL=BlockStack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockStack.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/BlockStack/BlockStack.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,QAAQ,EACT,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,eACf,SAAQ,sBAAsB,EAC5B,IAAI,CAAC,QAAQ,EAAE,KAAK,GAAG,UAAU,GAAG,QAAQ,CAAC,EAC7C,WAAW,EACX,WAAW,EACX,YAAY;IACd;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,UAAU;;;;CAEtB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ReferenceEntityTemplateSchema } from '@shopify/generate-docs';
2
+ declare const data: ReferenceEntityTemplateSchema;
3
+ export default data;
4
+ //# sourceMappingURL=BlockStack.doc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockStack.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/BlockStack/BlockStack.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAqCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { AccessibilityRoleProps, PaddingProps, SizingProps } from '../shared';
2
+ export interface BoxProps extends AccessibilityRoleProps, SizingProps, PaddingProps {
3
+ }
4
+ export declare const Box: "Box" & {
5
+ readonly type?: "Box" | undefined;
6
+ readonly props?: BoxProps | undefined;
7
+ readonly children?: true | undefined;
8
+ };
9
+ //# sourceMappingURL=Box.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Box/Box.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,sBAAsB,EACtB,YAAY,EACZ,WAAW,EACZ,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,QACf,SAAQ,sBAAsB,EAC5B,WAAW,EACX,YAAY;CAAG;AAEnB,eAAO,MAAM,GAAG;;;;CAAgD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ReferenceEntityTemplateSchema } from '@shopify/generate-docs';
2
+ declare const data: ReferenceEntityTemplateSchema;
3
+ export default data;
4
+ //# sourceMappingURL=Box.doc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Box.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Box/Box.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAqCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,87 @@
1
+ import type { AccessibilityRole, AnchorProps } from '../shared';
2
+ export type ButtonProps = ButtonBaseProps | ButtonAnchorProps;
3
+ interface CommonProps {
4
+ /**
5
+ * A unique identifier for the button.
6
+ */
7
+ id?: string;
8
+ /**
9
+ * Disables the button, disallowing any interaction.
10
+ */
11
+ disabled?: boolean;
12
+ /**
13
+ * Changes the visual appearance of the Button.
14
+ */
15
+ variant?: 'primary' | 'secondary' | 'tertiary';
16
+ /**
17
+ * Sets the color treatment of the Button.
18
+ */
19
+ tone?: 'default' | 'critical';
20
+ /**
21
+ * Indicate the text language. Useful when the text is in a different language than the rest of the page.
22
+ * It will allow assistive technologies such as screen readers to invoke the correct pronunciation.
23
+ * [Reference of values](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) ("subtag" label)
24
+ */
25
+ language?: string;
26
+ /**
27
+ * Alias for `language`
28
+ */
29
+ lang?: string;
30
+ /**
31
+ * Callback when a link is pressed. If `href` is set,
32
+ * it will execute the callback and then navigate to the location specified by `href`.
33
+ */
34
+ onClick?(): void;
35
+ /**
36
+ * Alias for `onClick`
37
+ * Callback when a button is pressed. If `href` is set,
38
+ * it will execute the callback and then navigate to the location specified by `href`.
39
+ */
40
+ onPress?(): void;
41
+ /**
42
+ * Callback when focus is removed.
43
+ */
44
+ onBlur?(): void;
45
+ /**
46
+ * Callback when input is focused.
47
+ */
48
+ onFocus?(): void;
49
+ }
50
+ interface ButtonBaseProps extends CommonProps {
51
+ /**
52
+ * Sets the semantic meaning of the component’s content. When set,
53
+ * the role will be used by assistive technologies to help users
54
+ * navigate the page.
55
+ */
56
+ accessibilityRole?: Extract<AccessibilityRole, 'submit' | 'button' | 'reset'>;
57
+ }
58
+ interface ButtonAnchorProps extends CommonProps {
59
+ /**
60
+ * The URL to link to.
61
+ * If set, it will navigate to the location specified by `href` after executing the `onClick` callback.
62
+ */
63
+ href: AnchorProps['href'];
64
+ /**
65
+ * Alias for `href`
66
+ * If set, it will navigate to the location specified by `to` after executing the `onClick` callback.
67
+ */
68
+ to?: AnchorProps['href'];
69
+ /**
70
+ * Callback when a link is pressed. If `href` is set,
71
+ * it will execute the callback and then navigate to the location specified by `href`.
72
+ */
73
+ onClick?: AnchorProps['onClick'];
74
+ /**
75
+ * Alias for `onClick`
76
+ * Callback when a link is pressed. If `href` is set,
77
+ * it will execute the callback and then navigate to the location specified by `href`.
78
+ */
79
+ onPress?: AnchorProps['onClick'];
80
+ }
81
+ export declare const Button: "Button" & {
82
+ readonly type?: "Button" | undefined;
83
+ readonly props?: ButtonProps | undefined;
84
+ readonly children?: true | undefined;
85
+ };
86
+ export {};
87
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Button/Button.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,iBAAiB,EAAE,WAAW,EAAC,MAAM,WAAW,CAAC;AAE9D,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAE9D,UAAU,WAAW;IACnB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAE/C;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAE9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;IAEjB;;;;OAIG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;IAEjB;;OAEG;IACH,MAAM,CAAC,IAAI,IAAI,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;CAClB;AAED,UAAU,eAAgB,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAC;CAC/E;AAED,UAAU,iBAAkB,SAAQ,WAAW;IAC7C;;;OAGG;IACH,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAE1B;;;OAGG;IACH,EAAE,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAEzB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAEjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,MAAM;;;;CAAyD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ReferenceEntityTemplateSchema } from '@shopify/generate-docs';
2
+ declare const data: ReferenceEntityTemplateSchema;
3
+ export default data;
4
+ //# sourceMappingURL=Button.doc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Button/Button.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAoCX,CAAC;AAEF,eAAe,IAAI,CAAC"}