@shopify/ui-extensions 2022.10.5 → 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 +21 -4
  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
@@ -1,6 +1,8 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
- export interface CheckboxProps {
3
+ import {DisclosureActivatorProps} from '../shared';
4
+
5
+ export interface CheckboxProps extends DisclosureActivatorProps {
4
6
  /**
5
7
  * A unique identifier for the field. When no `id` is set,
6
8
  * a globally unique value will be used instead.
@@ -38,10 +40,8 @@ export interface CheckboxProps {
38
40
  error?: string;
39
41
 
40
42
  /**
41
- * A label to use for the field that will be used for buyers using
42
- * assistive technologies. When set, any `children` supplied to
43
- * this component are hidden from being seen for accessibility purposes
44
- * to prevent duplicate content from being read.
43
+ * A label used for buyers using assistive technologies. When set, any
44
+ * `children` supplied to this component will not be announced to screen reader users.
45
45
  */
46
46
  accessibilityLabel?: string;
47
47
 
@@ -6,4 +6,4 @@
6
6
 
7
7
  ## Related components
8
8
 
9
- - [`ChoiceList`](https://github.com/Shopify/checkout-web/tree/master/packages/checkout-ui-extensions/src/components/ChoiceList): Creates a group of related options for customers to choose from. `ChoiceList` can be made up of radio buttons or checkboxes.
9
+ - [`ChoiceList`](https://github.com/Shopify/checkout-web/tree/main/packages/checkout-ui-extensions/src/components/ChoiceList): Creates a group of related options for customers to choose from. `ChoiceList` can be made up of radio buttons or checkboxes.
@@ -1,6 +1,6 @@
1
- import {extend, Checkbox} from '@shopify/ui-extensions/checkout';
1
+ import {extension, Checkbox} from '@shopify/ui-extensions/checkout';
2
2
 
3
- extend('Checkout::Dynamic::Render', (root) => {
3
+ extension('Checkout::Dynamic::Render', (root) => {
4
4
  const checkbox = root.createComponent(
5
5
  Checkbox,
6
6
  {id: 'checkbox', name: 'checkbox'},
@@ -0,0 +1,57 @@
1
+ import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
2
+
3
+ const data: ReferenceEntityTemplateSchema = {
4
+ name: 'Choice',
5
+ description:
6
+ 'Options inside a `ChoiceList`.\n\nThe wrapping `ChoiceList` component will dictate if the choice renders as radio buttons or checkboxes.',
7
+ thumbnail: 'choice-thumbnail.png',
8
+ requires: '',
9
+ isVisualComponent: true,
10
+ type: '',
11
+ definitions: [
12
+ {
13
+ title: 'ChoiceProps',
14
+ description: '',
15
+ type: 'ChoiceProps',
16
+ },
17
+ ],
18
+ category: 'Components',
19
+ subCategory: 'Forms',
20
+ defaultExample: {
21
+ image: 'choice-default.png',
22
+ codeblock: {
23
+ title: 'Basic Choice',
24
+ tabs: [
25
+ {
26
+ title: 'React',
27
+ code: '../../../../../../ui-extensions-react/src/surfaces/checkout/components/Choice/examples/basic-choice.example.tsx',
28
+ language: 'tsx',
29
+ },
30
+ {
31
+ title: 'JS',
32
+ code: './examples/basic-choice.example.ts',
33
+ language: 'js',
34
+ },
35
+ ],
36
+ },
37
+ },
38
+ subSections: [
39
+ {
40
+ type: 'Generic',
41
+ anchorLink: 'best-practices',
42
+ title: 'Best Practices',
43
+ sectionContent:
44
+ '- Include a title that either tells customers what to do or explains their available options.\n\n- Label options clearly based on what the option will do.\n\n- Avoid options that contradict each other when you’re allowing for multiple selections.',
45
+ },
46
+ ],
47
+ related: [
48
+ {
49
+ name: 'ChoiceList',
50
+ subtitle: 'Component',
51
+ url: 'choicelist',
52
+ type: 'Component',
53
+ },
54
+ ],
55
+ };
56
+
57
+ export default data;
@@ -10,10 +10,8 @@ export interface ChoiceProps {
10
10
  */
11
11
  disabled?: boolean;
12
12
  /**
13
- * A label to use for the choice that will be used for buyers using
14
- * assistive technologies. When set, any `children` supplied to
15
- * this component are hidden from being seen for accessibility purposes
16
- * to prevent duplicate content from being read.
13
+ * A label used for buyers using assistive technologies. When set, any
14
+ * `children` supplied to this component will not be announced to screen reader users.
17
15
  */
18
16
  accessibilityLabel?: string;
19
17
  }
@@ -1,12 +1,12 @@
1
1
  import {
2
- extend,
2
+ extension,
3
3
  ChoiceList,
4
4
  Choice,
5
5
  BlockStack,
6
6
  InlineStack,
7
7
  } from '@shopify/ui-extensions/checkout';
8
8
 
9
- extend('Checkout::Dynamic::Render', (root) => {
9
+ extension('Checkout::Dynamic::Render', (root) => {
10
10
  const choiceList = root.createComponent(
11
11
  ChoiceList,
12
12
  {
@@ -0,0 +1,63 @@
1
+ import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
2
+
3
+ const data: ReferenceEntityTemplateSchema = {
4
+ name: 'ChoiceList',
5
+ description:
6
+ 'Use choice lists to present a list of choices where buyers can make a single selection or multiple selections.',
7
+ thumbnail: 'choicelist-thumbnail.png',
8
+ requires: '',
9
+ isVisualComponent: true,
10
+ type: '',
11
+ definitions: [
12
+ {
13
+ title: 'ChoiceListProps',
14
+ description: '',
15
+ type: 'ChoiceListProps',
16
+ },
17
+ ],
18
+ category: 'Components',
19
+ subCategory: 'Forms',
20
+ defaultExample: {
21
+ image: 'choicelist-default.png',
22
+ codeblock: {
23
+ title: 'Basic ChoiceList',
24
+ tabs: [
25
+ {
26
+ title: 'JS',
27
+ code: './examples/basic-choicelist.example.ts',
28
+ language: 'js',
29
+ },
30
+ {
31
+ title: 'React',
32
+ code: '../../../../../../ui-extensions-react/src/surfaces/checkout/components/ChoiceList/examples/basic-choicelist.example.tsx',
33
+ language: 'tsx',
34
+ },
35
+ ],
36
+ },
37
+ },
38
+ subSections: [
39
+ {
40
+ type: 'Generic',
41
+ anchorLink: 'best-practices',
42
+ title: 'Best Practices',
43
+ sectionContent:
44
+ '- Include a title that either tells customers what to do or explains their available options.\n\n- Label options clearly based on what the option will do.\n\n- Avoid options that contradict each other when you’re allowing for multiple selections.',
45
+ },
46
+ ],
47
+ related: [
48
+ {
49
+ name: 'Choice',
50
+ subtitle: 'Component',
51
+ url: 'choice',
52
+ type: 'Component',
53
+ },
54
+ {
55
+ name: 'Checkbox',
56
+ subtitle: 'Component',
57
+ url: 'checkox',
58
+ type: 'Component',
59
+ },
60
+ ],
61
+ };
62
+
63
+ export default data;
@@ -6,5 +6,5 @@
6
6
 
7
7
  ## Related components
8
8
 
9
- - [`Choice`](https://github.com/Shopify/checkout-web/tree/master/packages/checkout-ui-extensions/src/components/Choice): The options inside the `ChoiceList` component.
10
- - [`Checkbox`](https://github.com/Shopify/checkout-web/tree/master/packages/checkout-ui-extensions/src/components/Checkbox): Gives customers a single binary option, such as signed up for marketing, or agreeing to terms and conditions.
9
+ - [`Choice`](https://github.com/Shopify/checkout-web/tree/main/packages/checkout-ui-extensions/src/components/Choice): The options inside the `ChoiceList` component.
10
+ - [`Checkbox`](https://github.com/Shopify/checkout-web/tree/main/packages/checkout-ui-extensions/src/components/Checkbox): Gives customers a single binary option, such as signed up for marketing, or agreeing to terms and conditions.
@@ -1,12 +1,12 @@
1
1
  import {
2
- extend,
2
+ extension,
3
3
  ChoiceList,
4
4
  Choice,
5
5
  BlockStack,
6
6
  InlineStack,
7
7
  } from '@shopify/ui-extensions/checkout';
8
8
 
9
- extend('Checkout::Dynamic::Render', (root) => {
9
+ extension('Checkout::Dynamic::Render', (root) => {
10
10
  const choiceList = root.createComponent(
11
11
  ChoiceList,
12
12
  {
@@ -0,0 +1,49 @@
1
+ import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
2
+
3
+ const data: ReferenceEntityTemplateSchema = {
4
+ name: 'DateField',
5
+ description: 'Use a date field to get a date input from a customer.',
6
+ thumbnail: 'datefield-thumbnail.png',
7
+ requires: '',
8
+ isVisualComponent: true,
9
+ type: '',
10
+ definitions: [
11
+ {
12
+ title: 'DateFieldProps',
13
+ description: '',
14
+ type: 'DateFieldProps',
15
+ },
16
+ ],
17
+ category: 'Components',
18
+ subCategory: 'Forms',
19
+ defaultExample: {
20
+ image: 'datefield-default.png',
21
+ codeblock: {
22
+ title: 'Basic DateField',
23
+ tabs: [
24
+ {
25
+ title: 'React',
26
+ code: '../../../../../../ui-extensions-react/src/surfaces/checkout/components/DateField/examples/basic-datefield.example.tsx',
27
+ language: 'tsx',
28
+ },
29
+ {
30
+ title: 'JS',
31
+ code: './examples/basic-datefield.example.ts',
32
+ language: 'js',
33
+ },
34
+ ],
35
+ },
36
+ },
37
+ subSections: [
38
+ {
39
+ type: 'Generic',
40
+ anchorLink: 'best-practices',
41
+ title: 'Best Practices',
42
+ sectionContent:
43
+ '- Use clear and concise labels for the DateField component to help customers understand what information is expected.\n\n**When to use a DateField**\n\n- Use when the dates are memorable to the customer.\n\n- Use when all dates are available to be chosen by the customer.\n\n**When not to use a DateField**\n\n- Don’t use when customers require a visual representation of the dates, rather than manual entry, consider using a DatePicker component instead.\n\n- Don’t use when date availability logic is in place. Customers may find it difficult to determine which dates are available if they’re typing. Use a DatePicker instead.',
44
+ },
45
+ ],
46
+ related: [],
47
+ };
48
+
49
+ export default data;
@@ -0,0 +1,50 @@
1
+ import {createRemoteComponent} from '@remote-ui/core';
2
+
3
+ import {DatePickerProps, SelectedDate} from '../DatePicker/DatePicker';
4
+ import {TextFieldProps} from '../TextField/TextField';
5
+
6
+ export interface DateFieldProps
7
+ extends Pick<
8
+ TextFieldProps<string>,
9
+ | 'label'
10
+ | 'error'
11
+ | 'name'
12
+ | 'id'
13
+ | 'readonly'
14
+ | 'onFocus'
15
+ | 'onInput'
16
+ | 'onBlur'
17
+ | 'onChange'
18
+ | 'value'
19
+ >,
20
+ Pick<
21
+ DatePickerProps<SelectedDate>,
22
+ 'yearMonth' | 'defaultYearMonth' | 'disabled' | 'onYearMonthChange'
23
+ > {
24
+ /**
25
+ * Callback when the field has an invalid date.
26
+ * This callback will be called, if the date typed is invalid or disabled.
27
+ *
28
+ * Dates that don’t exist or have formatting errors are considered invalid. Some examples of invalid dates are:
29
+ * - 2021-02-31: February doesn’t have 31 days
30
+ * - 2021-02-00: The day can’t be 00
31
+ *
32
+ * Dates and ranges specified in the `disabled` property are considered disabled dates.
33
+ * If the `disabled` property is `2021-06-14`, and the user types `2021-06-14`,
34
+ * this callback will be called as this date is disabled.
35
+ *
36
+ * Note that this will be called only when the user **finishes editing** the date,
37
+ * after the `onChange` callback.
38
+ * The field is **not** validated on every change to the input. Once the buyer has signalled that
39
+ * they have finished editing the field (typically, by blurring the field), the field gets validated and the callback is run if the value is invalid.
40
+ */
41
+ onInvalid?(): void;
42
+ }
43
+
44
+ /**
45
+ * The DateField component is used to collect date information from buyers.
46
+ * It also provides the ability to display a DatePicker UI, which allows users to select dates with ease.
47
+ */
48
+ export const DateField = createRemoteComponent<'DateField', DateFieldProps>(
49
+ 'DateField',
50
+ );
@@ -0,0 +1,9 @@
1
+ import {extension, DateField} from '@shopify/ui-extensions/checkout';
2
+
3
+ extension('Checkout::Dynamic::Render', (root) => {
4
+ const datefield = root.createComponent(DateField, {
5
+ label: 'Select a date',
6
+ });
7
+
8
+ root.appendChild(datefield);
9
+ });
@@ -0,0 +1,50 @@
1
+ import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
2
+
3
+ const data: ReferenceEntityTemplateSchema = {
4
+ name: 'DatePicker',
5
+ description:
6
+ 'The DatePicker component is a calendar picker UI that allows users to select a single date or a date range',
7
+ thumbnail: 'datepicker-thumbnail.png',
8
+ requires: '',
9
+ isVisualComponent: true,
10
+ type: '',
11
+ definitions: [
12
+ {
13
+ title: 'DatePickerProps',
14
+ description: '',
15
+ type: 'DatePickerProps',
16
+ },
17
+ ],
18
+ category: 'Components',
19
+ subCategory: 'Forms',
20
+ defaultExample: {
21
+ image: 'datepicker-default.png',
22
+ codeblock: {
23
+ title: 'Basic DatePicker',
24
+ tabs: [
25
+ {
26
+ title: 'React',
27
+ code: '../../../../../../ui-extensions-react/src/surfaces/checkout/components/DatePicker/examples/basic-datepicker.example.tsx',
28
+ language: 'tsx',
29
+ },
30
+ {
31
+ title: 'JS',
32
+ code: './examples/basic-datepicker.example.ts',
33
+ language: 'js',
34
+ },
35
+ ],
36
+ },
37
+ },
38
+ subSections: [
39
+ {
40
+ type: 'Generic',
41
+ anchorLink: 'best-practices',
42
+ title: 'Best Practices',
43
+ sectionContent:
44
+ 'By adhering to these design guidelines, the DatePicker component can offer a seamless and efficient method for users to select dates, thereby enhancing the overall user experience.\n\n- Default to showing today’s date if available.\n\n- Display the first available date when selecting future dates.\n\n- To minimize errors, the process of selecting a date range may require multiple steps. Therefore, providing a way for users to explicitly confirm their selection is recommended.\n\n**When to use a DatePicker**\n\nThe DatePicker component is well-suited for the following scenarios:\n\n- Specifying shipping or delivery dates\n\n- Scheduling pick-up dates\n\n- Booking dates for service providers\n\n- Selecting event dates for ticket offerings\n\n- Specifying rental dates to determine start and end dates for renting a product\n\n**When not to use a DatePicker component**\n\nA DatePicker component might not be the most appropriate choice in the following situations:\n\n- When the date to be entered is several years in the future or the past.\n\n- When the date is easily memorable and can be quickly typed using the keyboard e.g. Date of birth.',
45
+ },
46
+ ],
47
+ related: [],
48
+ };
49
+
50
+ export default data;
@@ -0,0 +1,81 @@
1
+ import {createRemoteComponent} from '@remote-ui/core';
2
+
3
+ export interface DateRange {
4
+ /** First day (inclusive) of the selected range */
5
+ start?: DateString;
6
+ /** Last day (inclusive) of the selected range */
7
+ end?: DateString;
8
+ }
9
+
10
+ export enum Day {
11
+ Sunday,
12
+ Monday,
13
+ Tuesday,
14
+ Wednesday,
15
+ Thursday,
16
+ Friday,
17
+ Saturday,
18
+ }
19
+
20
+ export type DayString = keyof typeof Day;
21
+
22
+ /* A date string using the simplified ISO 8601 format (`YYYY-MM-DD`) */
23
+ export type DateString = string;
24
+ /** A year/month string using the simplified ISO 8601 format (`YYYY-MM`) */
25
+ type YearMonthString = string;
26
+ export type YearMonth = {year: number; month: number} | YearMonthString;
27
+
28
+ export type SelectedDate = DateString | DateString[] | DateRange;
29
+ export type DisabledDate = DateString | DateRange | DayString;
30
+
31
+ export interface DatePickerProps<T extends SelectedDate> {
32
+ /**
33
+ * [Controlled](https://reactjs.org/docs/forms.html#controlled-components) year and month to display.
34
+ * Use in combination with `onYearMonthChange`.
35
+ * Makes year/month navigation controlled.
36
+ */
37
+ yearMonth?: YearMonth;
38
+ /**
39
+ * Default [uncontrolled](https://reactjs.org/docs/forms.html#controlled-components) year and month to display.
40
+ * Ignored when year/month navigation is controlled.
41
+ */
42
+ defaultYearMonth?: YearMonth;
43
+ /**
44
+ * Disabled dates, days, and/or ranges, or the date picker.
45
+ * Unbound range disables all dates either from `start` date or to `end` date.
46
+ * `true` disables the date picker.
47
+ */
48
+ disabled?: DisabledDate[] | boolean;
49
+ /**
50
+ * Whether the date picker is read-only.
51
+ */
52
+ readOnly?: boolean;
53
+ /**
54
+ * A date, an array of dates, or a range object with `start` and/or `end` keys indicating the selected dates.
55
+ * When a range is set, dates between the boundaries will be selected.
56
+ */
57
+ selected: T;
58
+ /**
59
+ * A callback that is run whenever a date is selected or unselected. This callback
60
+ * is called with a string, an array of strings or a range object representing the selected dates.
61
+ * This component is [controlled](https://reactjs.org/docs/forms.html#controlled-components),
62
+ * so you must store these values in state and reflect it back in the
63
+ * `selected` props.
64
+ */
65
+ onChange?(selected: T): void;
66
+ /**
67
+ * A callback that is run whenever the month is changed. This callback
68
+ * is called with an object indicating the year/month the UI should change to.
69
+ * When year/month navigation is controlled you must store these values in state and
70
+ * reflect it back in the `yearMonth` prop.
71
+ */
72
+ onYearMonthChange?(yearMonth: {year: number; month: number}): void;
73
+ }
74
+
75
+ /**
76
+ * The DatePicker component is a calendar picker UI that allows users to select a single date or a date range.
77
+ */
78
+ export const DatePicker = createRemoteComponent<
79
+ 'DatePicker',
80
+ DatePickerProps<SelectedDate>
81
+ >('DatePicker');
@@ -0,0 +1,9 @@
1
+ import {extension, DatePicker} from '@shopify/ui-extensions/checkout';
2
+
3
+ extension('Checkout::Dynamic::Render', (root) => {
4
+ const datepicker = root.createComponent(DatePicker, {
5
+ selected: '2021-06-01',
6
+ });
7
+
8
+ root.appendChild(datepicker);
9
+ });
@@ -0,0 +1,61 @@
1
+ import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
2
+
3
+ import {getExample} from '../../helper.docs';
4
+
5
+ const disclosureAndAlignment = getExample(
6
+ 'ui-components/disclosure-and-alignment',
7
+ ['jsx', 'js'],
8
+ );
9
+
10
+ const data: ReferenceEntityTemplateSchema = {
11
+ name: 'Disclosure',
12
+ description:
13
+ 'Disclosure is an optionally controlled component used to put long sections of information under content blocks that users can expand or collapse by pressing an activator. The activator can be specified as children using an action component (`Button`, `Link` or `Pressable`) or `Checkbox` component. The content blocks can be specified as children inside a structure component (`View`, `InlineLayout`, `BlockStack`, `Grid`, etc.).\n\nThe library takes care of applying the WAI-ARIA Accordion pattern automatically for the activator and the toggled content.',
14
+ thumbnail: 'disclosure-thumbnail.png',
15
+ requires: '',
16
+ isVisualComponent: true,
17
+ type: '',
18
+ definitions: [
19
+ {
20
+ title: 'DisclosureProps',
21
+ description: '',
22
+ type: 'DisclosureProps',
23
+ },
24
+ ],
25
+ category: 'Components',
26
+ subCategory: 'Interactive',
27
+ defaultExample: {
28
+ image: 'disclosure-default.png',
29
+ codeblock: {
30
+ title: 'Basic Disclosure',
31
+ tabs: [
32
+ {
33
+ title: 'React',
34
+ code: '../../../../../../ui-extensions-react/src/surfaces/checkout/components/Disclosure/examples/basic-disclosure.example.tsx',
35
+ language: 'tsx',
36
+ },
37
+ {
38
+ title: 'JS',
39
+ code: './examples/basic-disclosure.example.ts',
40
+ language: 'js',
41
+ },
42
+ ],
43
+ },
44
+ },
45
+ examples: {
46
+ description: '',
47
+ examples: [disclosureAndAlignment],
48
+ },
49
+ subSections: [
50
+ {
51
+ type: 'Generic',
52
+ anchorLink: 'best-practices',
53
+ title: 'Best Practices',
54
+ sectionContent:
55
+ '- Disclosures should be initiated by the buyer.\n\n- Use disclosures to hide content until they are relevant to the buyer.\n\n- Avoid hiding critical information that buyers need to complete their checkout.\n\n- Keep content inside disclosures concise.\n\n- Avoid nesting of disclosures.\n\n- Keep the activator and the content it toggles in close proximity to each other.',
56
+ },
57
+ ],
58
+ related: [],
59
+ };
60
+
61
+ export default data;
@@ -0,0 +1,46 @@
1
+ import {createRemoteComponent} from '@remote-ui/core';
2
+
3
+ import {MaybeResponsiveConditionalStyle} from '../../style';
4
+ import type {DisclosureOpen} from '../shared';
5
+
6
+ export interface DisclosureProps {
7
+ /**
8
+ * For uncontrolled disclosure components, the default `open` state on the initial render.
9
+ *
10
+ * It's possible to specify a boolean value, a string value, or an array of string values:
11
+ *
12
+ * - `true` will expand all content
13
+ * - `false` will collapse all content
14
+ * - `string` will expand the content with the matching `id`
15
+ * - `string[]` will expand the content with the matching `id`s
16
+ */
17
+ defaultOpen?: MaybeResponsiveConditionalStyle<DisclosureOpen | undefined>;
18
+ /**
19
+ * For controlled disclosure components, the open state. The `open` prop should be used
20
+ * along with `onToggle` to create a controlled disclosure component.
21
+ */
22
+ open?: DisclosureOpen;
23
+ /**
24
+ * Callback fired when the open state of the disclosure changes.
25
+ */
26
+ onToggle?(open: string[]): void;
27
+ /**
28
+ * Set to 'none' to disable the default transition animation.
29
+ */
30
+ transition?: 'none';
31
+ }
32
+
33
+ /**
34
+ * Disclosure is an optionally controlled component used to put long sections of information
35
+ * under content blocks that users can expand or collapse by pressing an activator.
36
+ * The activator can be specified as children using an action component (`Button`, `Link` or `Pressable`)
37
+ * or `Checkbox` component.
38
+ * The content blocks can be specified as children inside a structure component (`View`, `InlineLayout`,
39
+ * `BlockStack`, `Grid`, etc.).
40
+ *
41
+ * The library takes care of applying the WAI-ARIA Accordion pattern automatically for the activator
42
+ * and the toggled content.
43
+ */
44
+ export const Disclosure = createRemoteComponent<'Disclosure', DisclosureProps>(
45
+ 'Disclosure',
46
+ );
@@ -0,0 +1,19 @@
1
+ import {
2
+ extension,
3
+ Button,
4
+ View,
5
+ Disclosure,
6
+ } from '@shopify/ui-extensions/checkout';
7
+
8
+ extension('Checkout::Dynamic::Render', (root) => {
9
+ const disclosure = root.createComponent(Disclosure, {}, [
10
+ root.createComponent(Button, {toggles: 'one'}, 'Toggle'),
11
+ root.createComponent(
12
+ View,
13
+ {border: 'base', padding: 'base', id: 'one'},
14
+ 'Content',
15
+ ),
16
+ ]);
17
+
18
+ root.appendChild(disclosure);
19
+ });
@@ -0,0 +1,41 @@
1
+ import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
2
+
3
+ const data: ReferenceEntityTemplateSchema = {
4
+ name: 'Divider',
5
+ description:
6
+ 'A divider separates content and represents a thematic break between elements.',
7
+ thumbnail: 'divider-thumbnail.png',
8
+ requires: '',
9
+ isVisualComponent: true,
10
+ type: '',
11
+ definitions: [
12
+ {
13
+ title: 'DividerProps',
14
+ description: '',
15
+ type: 'DividerProps',
16
+ },
17
+ ],
18
+ category: 'Components',
19
+ subCategory: 'Structure',
20
+ defaultExample: {
21
+ image: 'divider-default.png',
22
+ codeblock: {
23
+ title: 'Basic Divider',
24
+ tabs: [
25
+ {
26
+ title: 'React',
27
+ code: '../../../../../../ui-extensions-react/src/surfaces/checkout/components/Divider/examples/basic-divider.example.tsx',
28
+ language: 'tsx',
29
+ },
30
+ {
31
+ title: 'JS',
32
+ code: './examples/basic-divider.example.ts',
33
+ language: 'js',
34
+ },
35
+ ],
36
+ },
37
+ },
38
+ related: [],
39
+ };
40
+
41
+ export default data;
@@ -1,8 +1,8 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
- import type {Size, Alignment, Direction} from '../shared';
3
+ import type {Alignment, Direction, IdProps, Size} from '../shared';
4
4
 
5
- export interface DividerProps {
5
+ export interface DividerProps extends IdProps {
6
6
  /**
7
7
  * Use to create dividers with varying widths.
8
8
  *
@@ -1,6 +1,6 @@
1
- import {extend, Divider} from '@shopify/ui-extensions/checkout';
1
+ import {extension, Divider} from '@shopify/ui-extensions/checkout';
2
2
 
3
- extend('Checkout::Dynamic::Render', (root) => {
3
+ extension('Checkout::Dynamic::Render', (root) => {
4
4
  const divider = root.createComponent(Divider);
5
5
 
6
6
  root.appendChild(divider);