@shopify/ui-extensions 2.0.0-alpha.2 → 2022.10.1

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 (713) hide show
  1. package/build/cjs/index.js +1 -43
  2. package/build/cjs/surfaces/checkout/components/Banner/Banner.js +12 -0
  3. package/build/cjs/surfaces/checkout/components/BlockLayout/BlockLayout.js +14 -0
  4. package/build/cjs/surfaces/checkout/components/BlockSpacer/BlockSpacer.js +15 -0
  5. package/build/cjs/surfaces/checkout/components/BlockStack/BlockStack.js +12 -0
  6. package/build/cjs/surfaces/checkout/components/Button/Button.js +12 -0
  7. package/build/cjs/surfaces/checkout/components/Checkbox/Checkbox.js +12 -0
  8. package/build/cjs/surfaces/checkout/components/Choice/Choice.js +13 -0
  9. package/build/cjs/surfaces/checkout/components/ChoiceList/ChoiceList.js +13 -0
  10. package/build/cjs/surfaces/checkout/components/Divider/Divider.js +12 -0
  11. package/build/cjs/surfaces/checkout/components/Form/Form.js +20 -0
  12. package/build/cjs/surfaces/checkout/components/Grid/Grid.js +12 -0
  13. package/build/cjs/surfaces/checkout/components/GridItem/GridItem.js +14 -0
  14. package/build/cjs/surfaces/checkout/components/Heading/Heading.js +17 -0
  15. package/build/cjs/surfaces/checkout/components/HeadingGroup/HeadingGroup.js +16 -0
  16. package/build/cjs/surfaces/checkout/components/Icon/Icon.js +13 -0
  17. package/build/cjs/surfaces/checkout/components/Image/Image.js +12 -0
  18. package/build/cjs/surfaces/checkout/components/InlineLayout/InlineLayout.js +16 -0
  19. package/build/cjs/surfaces/checkout/components/InlineSpacer/InlineSpacer.js +15 -0
  20. package/build/cjs/surfaces/checkout/components/InlineStack/InlineStack.js +12 -0
  21. package/build/cjs/surfaces/checkout/components/Link/Link.js +12 -0
  22. package/build/cjs/surfaces/checkout/components/List/List.js +12 -0
  23. package/build/cjs/surfaces/checkout/components/ListItem/ListItem.js +14 -0
  24. package/build/cjs/surfaces/checkout/components/PhoneField/PhoneField.js +17 -0
  25. package/build/cjs/surfaces/checkout/components/Pressable/Pressable.js +14 -0
  26. package/build/cjs/surfaces/checkout/components/ScrollView/ScrollView.js +13 -0
  27. package/build/cjs/surfaces/checkout/components/Select/Select.js +13 -0
  28. package/build/cjs/surfaces/checkout/components/SkeletonImage/SkeletonImage.js +12 -0
  29. package/build/cjs/surfaces/checkout/components/SkeletonText/SkeletonText.js +12 -0
  30. package/build/cjs/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.js +12 -0
  31. package/build/cjs/surfaces/checkout/components/Spinner/Spinner.js +13 -0
  32. package/build/cjs/surfaces/checkout/components/Stepper/Stepper.js +12 -0
  33. package/build/cjs/surfaces/checkout/components/Tag/Tag.js +12 -0
  34. package/build/cjs/surfaces/checkout/components/Text/Text.js +13 -0
  35. package/build/cjs/surfaces/checkout/components/TextBlock/TextBlock.js +12 -0
  36. package/build/cjs/surfaces/checkout/components/TextField/TextField.js +12 -0
  37. package/build/cjs/surfaces/checkout/components/Tooltip/Tooltip.js +17 -0
  38. package/build/cjs/surfaces/checkout/components/View/View.js +17 -0
  39. package/build/cjs/surfaces/checkout/extension.js +5 -23
  40. package/build/cjs/surfaces/checkout/index.js +82 -65
  41. package/build/cjs/surfaces/checkout/style/isEqual.js +29 -0
  42. package/build/cjs/surfaces/checkout/style/memoize.js +138 -0
  43. package/build/cjs/surfaces/checkout/style/style.js +74 -0
  44. package/build/cjs/utilities/registration.js +8 -98
  45. package/build/esm/index.mjs +1 -3
  46. package/build/esm/surfaces/checkout/components/Banner/Banner.mjs +8 -0
  47. package/build/esm/surfaces/checkout/components/BlockLayout/BlockLayout.mjs +10 -0
  48. package/build/esm/surfaces/checkout/components/BlockSpacer/BlockSpacer.mjs +11 -0
  49. package/build/esm/surfaces/checkout/components/BlockStack/BlockStack.mjs +8 -0
  50. package/build/esm/surfaces/checkout/components/Button/Button.mjs +8 -0
  51. package/build/esm/surfaces/checkout/components/Checkbox/Checkbox.mjs +8 -0
  52. package/build/esm/surfaces/checkout/components/Choice/Choice.mjs +9 -0
  53. package/build/esm/surfaces/checkout/components/ChoiceList/ChoiceList.mjs +9 -0
  54. package/build/esm/surfaces/checkout/components/Divider/Divider.mjs +8 -0
  55. package/build/esm/surfaces/checkout/components/Form/Form.mjs +16 -0
  56. package/build/esm/surfaces/checkout/components/Grid/Grid.mjs +8 -0
  57. package/build/esm/surfaces/checkout/components/GridItem/GridItem.mjs +10 -0
  58. package/build/esm/surfaces/checkout/components/Heading/Heading.mjs +13 -0
  59. package/build/esm/surfaces/checkout/components/HeadingGroup/HeadingGroup.mjs +12 -0
  60. package/build/esm/surfaces/checkout/components/Icon/Icon.mjs +9 -0
  61. package/build/esm/surfaces/checkout/components/Image/Image.mjs +8 -0
  62. package/build/esm/surfaces/checkout/components/InlineLayout/InlineLayout.mjs +12 -0
  63. package/build/esm/surfaces/checkout/components/InlineSpacer/InlineSpacer.mjs +11 -0
  64. package/build/esm/surfaces/checkout/components/InlineStack/InlineStack.mjs +8 -0
  65. package/build/esm/surfaces/checkout/components/Link/Link.mjs +8 -0
  66. package/build/esm/surfaces/checkout/components/List/List.mjs +8 -0
  67. package/build/esm/surfaces/checkout/components/ListItem/ListItem.mjs +10 -0
  68. package/build/esm/surfaces/checkout/components/PhoneField/PhoneField.mjs +13 -0
  69. package/build/esm/surfaces/checkout/components/Pressable/Pressable.mjs +10 -0
  70. package/build/esm/surfaces/checkout/components/ScrollView/ScrollView.mjs +9 -0
  71. package/build/esm/surfaces/checkout/components/Select/Select.mjs +9 -0
  72. package/build/esm/surfaces/checkout/components/SkeletonImage/SkeletonImage.mjs +8 -0
  73. package/build/esm/surfaces/checkout/components/SkeletonText/SkeletonText.mjs +8 -0
  74. package/build/esm/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.mjs +8 -0
  75. package/build/esm/surfaces/checkout/components/Spinner/Spinner.mjs +9 -0
  76. package/build/esm/surfaces/checkout/components/Stepper/Stepper.mjs +8 -0
  77. package/build/esm/surfaces/checkout/components/Tag/Tag.mjs +8 -0
  78. package/build/esm/surfaces/checkout/components/Text/Text.mjs +9 -0
  79. package/build/esm/surfaces/checkout/components/TextBlock/TextBlock.mjs +8 -0
  80. package/build/esm/surfaces/checkout/components/TextField/TextField.mjs +8 -0
  81. package/build/esm/surfaces/checkout/components/Tooltip/Tooltip.mjs +13 -0
  82. package/build/esm/surfaces/checkout/components/View/View.mjs +13 -0
  83. package/build/esm/surfaces/checkout/extension.mjs +5 -3
  84. package/build/esm/surfaces/checkout/index.mjs +39 -5
  85. package/build/esm/surfaces/checkout/style/isEqual.mjs +25 -0
  86. package/build/esm/surfaces/checkout/style/memoize.mjs +132 -0
  87. package/build/esm/surfaces/checkout/style/style.mjs +68 -0
  88. package/build/esm/utilities/registration.mjs +7 -92
  89. package/build/esnext/index.esnext +1 -3
  90. package/build/esnext/surfaces/checkout/components/Banner/Banner.esnext +8 -0
  91. package/build/esnext/surfaces/checkout/components/BlockLayout/BlockLayout.esnext +10 -0
  92. package/build/esnext/surfaces/checkout/components/BlockSpacer/BlockSpacer.esnext +11 -0
  93. package/build/esnext/surfaces/checkout/components/BlockStack/BlockStack.esnext +8 -0
  94. package/build/esnext/surfaces/checkout/components/Button/Button.esnext +8 -0
  95. package/build/esnext/surfaces/checkout/components/Checkbox/Checkbox.esnext +8 -0
  96. package/build/esnext/surfaces/checkout/components/Choice/Choice.esnext +9 -0
  97. package/build/esnext/surfaces/checkout/components/ChoiceList/ChoiceList.esnext +9 -0
  98. package/build/esnext/surfaces/checkout/components/Divider/Divider.esnext +8 -0
  99. package/build/esnext/surfaces/checkout/components/Form/Form.esnext +16 -0
  100. package/build/esnext/surfaces/checkout/components/Grid/Grid.esnext +8 -0
  101. package/build/esnext/surfaces/checkout/components/GridItem/GridItem.esnext +10 -0
  102. package/build/esnext/surfaces/checkout/components/Heading/Heading.esnext +13 -0
  103. package/build/esnext/surfaces/checkout/components/HeadingGroup/HeadingGroup.esnext +12 -0
  104. package/build/esnext/surfaces/checkout/components/Icon/Icon.esnext +9 -0
  105. package/build/esnext/surfaces/checkout/components/Image/Image.esnext +8 -0
  106. package/build/esnext/surfaces/checkout/components/InlineLayout/InlineLayout.esnext +12 -0
  107. package/build/esnext/surfaces/checkout/components/InlineSpacer/InlineSpacer.esnext +11 -0
  108. package/build/esnext/surfaces/checkout/components/InlineStack/InlineStack.esnext +8 -0
  109. package/build/esnext/surfaces/checkout/components/Link/Link.esnext +8 -0
  110. package/build/esnext/surfaces/checkout/components/List/List.esnext +8 -0
  111. package/build/esnext/surfaces/checkout/components/ListItem/ListItem.esnext +10 -0
  112. package/build/esnext/surfaces/checkout/components/PhoneField/PhoneField.esnext +13 -0
  113. package/build/esnext/surfaces/checkout/components/Pressable/Pressable.esnext +10 -0
  114. package/build/esnext/surfaces/checkout/components/ScrollView/ScrollView.esnext +9 -0
  115. package/build/esnext/surfaces/checkout/components/Select/Select.esnext +9 -0
  116. package/build/esnext/surfaces/checkout/components/SkeletonImage/SkeletonImage.esnext +8 -0
  117. package/build/esnext/surfaces/checkout/components/SkeletonText/SkeletonText.esnext +8 -0
  118. package/build/esnext/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.esnext +8 -0
  119. package/build/esnext/surfaces/checkout/components/Spinner/Spinner.esnext +9 -0
  120. package/build/esnext/surfaces/checkout/components/Stepper/Stepper.esnext +8 -0
  121. package/build/esnext/surfaces/checkout/components/Tag/Tag.esnext +8 -0
  122. package/build/esnext/surfaces/checkout/components/Text/Text.esnext +9 -0
  123. package/build/esnext/surfaces/checkout/components/TextBlock/TextBlock.esnext +8 -0
  124. package/build/esnext/surfaces/checkout/components/TextField/TextField.esnext +8 -0
  125. package/build/esnext/surfaces/checkout/components/Tooltip/Tooltip.esnext +13 -0
  126. package/build/esnext/surfaces/checkout/components/View/View.esnext +13 -0
  127. package/build/esnext/surfaces/checkout/extension.esnext +5 -3
  128. package/build/esnext/surfaces/checkout/index.esnext +39 -5
  129. package/build/esnext/surfaces/checkout/style/isEqual.esnext +25 -0
  130. package/build/esnext/surfaces/checkout/style/memoize.esnext +132 -0
  131. package/build/esnext/surfaces/checkout/style/style.esnext +68 -0
  132. package/build/esnext/utilities/registration.esnext +7 -28
  133. package/build/ts/api.d.ts +0 -4
  134. package/build/ts/api.d.ts.map +1 -1
  135. package/build/ts/extension.d.ts +2 -9
  136. package/build/ts/extension.d.ts.map +1 -1
  137. package/build/ts/index.d.ts +1 -1
  138. package/build/ts/index.d.ts.map +1 -1
  139. package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts +6 -3
  140. package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts.map +1 -1
  141. package/build/ts/surfaces/checkout/api/shared.d.ts +4 -3
  142. package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
  143. package/build/ts/surfaces/checkout/api/standard/standard.d.ts +1046 -2
  144. package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
  145. package/build/ts/surfaces/checkout/components/Banner/Banner.d.ts +38 -0
  146. package/build/ts/surfaces/checkout/components/Banner/Banner.d.ts.map +1 -0
  147. package/build/ts/surfaces/checkout/components/Banner/examples/basic-banner.example.d.ts +2 -0
  148. package/build/ts/surfaces/checkout/components/Banner/examples/basic-banner.example.d.ts.map +1 -0
  149. package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.d.ts +41 -0
  150. package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.d.ts.map +1 -0
  151. package/build/ts/surfaces/checkout/components/BlockLayout/examples/basic-blockLayout.example.d.ts +2 -0
  152. package/build/ts/surfaces/checkout/components/BlockLayout/examples/basic-blockLayout.example.d.ts.map +1 -0
  153. package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts +22 -0
  154. package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts.map +1 -0
  155. package/build/ts/surfaces/checkout/components/BlockSpacer/examples/basic-blockspacer.example.d.ts +2 -0
  156. package/build/ts/surfaces/checkout/components/BlockSpacer/examples/basic-blockspacer.example.d.ts.map +1 -0
  157. package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts +42 -0
  158. package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts.map +1 -0
  159. package/build/ts/surfaces/checkout/components/BlockStack/examples/basic-blockstack.example.d.ts +2 -0
  160. package/build/ts/surfaces/checkout/components/BlockStack/examples/basic-blockstack.example.d.ts.map +1 -0
  161. package/build/ts/surfaces/checkout/components/Button/Button.d.ts +83 -0
  162. package/build/ts/surfaces/checkout/components/Button/Button.d.ts.map +1 -0
  163. package/build/ts/surfaces/checkout/components/Button/examples/basic-button.example.d.ts +2 -0
  164. package/build/ts/surfaces/checkout/components/Button/examples/basic-button.example.d.ts.map +1 -0
  165. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.d.ts +59 -0
  166. package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.d.ts.map +1 -0
  167. package/build/ts/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.d.ts +2 -0
  168. package/build/ts/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.d.ts.map +1 -0
  169. package/build/ts/surfaces/checkout/components/Choice/Choice.d.ts +27 -0
  170. package/build/ts/surfaces/checkout/components/Choice/Choice.d.ts.map +1 -0
  171. package/build/ts/surfaces/checkout/components/Choice/examples/basic-choice.example.d.ts +2 -0
  172. package/build/ts/surfaces/checkout/components/Choice/examples/basic-choice.example.d.ts.map +1 -0
  173. package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.d.ts +32 -0
  174. package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.d.ts.map +1 -0
  175. package/build/ts/surfaces/checkout/components/ChoiceList/examples/basic-choicelist.example.d.ts +2 -0
  176. package/build/ts/surfaces/checkout/components/ChoiceList/examples/basic-choicelist.example.d.ts.map +1 -0
  177. package/build/ts/surfaces/checkout/components/Divider/Divider.d.ts +30 -0
  178. package/build/ts/surfaces/checkout/components/Divider/Divider.d.ts.map +1 -0
  179. package/build/ts/surfaces/checkout/components/Divider/examples/basic-divider.example.d.ts +2 -0
  180. package/build/ts/surfaces/checkout/components/Divider/examples/basic-divider.example.d.ts.map +1 -0
  181. package/build/ts/surfaces/checkout/components/Form/Form.d.ts +32 -0
  182. package/build/ts/surfaces/checkout/components/Form/Form.d.ts.map +1 -0
  183. package/build/ts/surfaces/checkout/components/Form/examples/basic-form.example.d.ts +2 -0
  184. package/build/ts/surfaces/checkout/components/Form/examples/basic-form.example.d.ts.map +1 -0
  185. package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts +95 -0
  186. package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts.map +1 -0
  187. package/build/ts/surfaces/checkout/components/Grid/examples/basic-grid.example.d.ts +2 -0
  188. package/build/ts/surfaces/checkout/components/Grid/examples/basic-grid.example.d.ts.map +1 -0
  189. package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts +36 -0
  190. package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts.map +1 -0
  191. package/build/ts/surfaces/checkout/components/GridItem/examples/basic-griditem.example.d.ts +2 -0
  192. package/build/ts/surfaces/checkout/components/GridItem/examples/basic-griditem.example.d.ts.map +1 -0
  193. package/build/ts/surfaces/checkout/components/Heading/Heading.d.ts +43 -0
  194. package/build/ts/surfaces/checkout/components/Heading/Heading.d.ts.map +1 -0
  195. package/build/ts/surfaces/checkout/components/Heading/examples/basic-heading.example.d.ts +2 -0
  196. package/build/ts/surfaces/checkout/components/Heading/examples/basic-heading.example.d.ts.map +1 -0
  197. package/build/ts/surfaces/checkout/components/HeadingGroup/HeadingGroup.d.ts +15 -0
  198. package/build/ts/surfaces/checkout/components/HeadingGroup/HeadingGroup.d.ts.map +1 -0
  199. package/build/ts/surfaces/checkout/components/HeadingGroup/examples/basic-headinggroup.example.d.ts +2 -0
  200. package/build/ts/surfaces/checkout/components/HeadingGroup/examples/basic-headinggroup.example.d.ts.map +1 -0
  201. package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts +38 -0
  202. package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts.map +1 -0
  203. package/build/ts/surfaces/checkout/components/Icon/examples/basic-icon.example.d.ts +2 -0
  204. package/build/ts/surfaces/checkout/components/Icon/examples/basic-icon.example.d.ts.map +1 -0
  205. package/build/ts/surfaces/checkout/components/Image/Image.d.ts +73 -0
  206. package/build/ts/surfaces/checkout/components/Image/Image.d.ts.map +1 -0
  207. package/build/ts/surfaces/checkout/components/Image/examples/basic-image.example.d.ts +2 -0
  208. package/build/ts/surfaces/checkout/components/Image/examples/basic-image.example.d.ts.map +1 -0
  209. package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.d.ts +43 -0
  210. package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.d.ts.map +1 -0
  211. package/build/ts/surfaces/checkout/components/InlineLayout/examples/basic-inlineLayout.example.d.ts +2 -0
  212. package/build/ts/surfaces/checkout/components/InlineLayout/examples/basic-inlineLayout.example.d.ts.map +1 -0
  213. package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.d.ts +22 -0
  214. package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.d.ts.map +1 -0
  215. package/build/ts/surfaces/checkout/components/InlineSpacer/examples/basic-inlinespacer.example.d.ts +2 -0
  216. package/build/ts/surfaces/checkout/components/InlineSpacer/examples/basic-inlinespacer.example.d.ts.map +1 -0
  217. package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts +50 -0
  218. package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts.map +1 -0
  219. package/build/ts/surfaces/checkout/components/InlineStack/examples/basic-inlinestack.example.d.ts +2 -0
  220. package/build/ts/surfaces/checkout/components/InlineStack/examples/basic-inlinestack.example.d.ts.map +1 -0
  221. package/build/ts/surfaces/checkout/components/Link/Link.d.ts +50 -0
  222. package/build/ts/surfaces/checkout/components/Link/Link.d.ts.map +1 -0
  223. package/build/ts/surfaces/checkout/components/Link/examples/basic-link.example.d.ts +2 -0
  224. package/build/ts/surfaces/checkout/components/Link/examples/basic-link.example.d.ts.map +1 -0
  225. package/build/ts/surfaces/checkout/components/List/List.d.ts +32 -0
  226. package/build/ts/surfaces/checkout/components/List/List.d.ts.map +1 -0
  227. package/build/ts/surfaces/checkout/components/List/examples/basic-list.example.d.ts +2 -0
  228. package/build/ts/surfaces/checkout/components/List/examples/basic-list.example.d.ts.map +1 -0
  229. package/build/ts/surfaces/checkout/components/ListItem/ListItem.d.ts +13 -0
  230. package/build/ts/surfaces/checkout/components/ListItem/ListItem.d.ts.map +1 -0
  231. package/build/ts/surfaces/checkout/components/ListItem/examples/basic-listitem.example.d.ts +2 -0
  232. package/build/ts/surfaces/checkout/components/ListItem/examples/basic-listitem.example.d.ts.map +1 -0
  233. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.d.ts +58 -0
  234. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.d.ts.map +1 -0
  235. package/build/ts/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.d.ts +2 -0
  236. package/build/ts/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.d.ts.map +1 -0
  237. package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts +96 -0
  238. package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts.map +1 -0
  239. package/build/ts/surfaces/checkout/components/Pressable/examples/basic-pressable.example.d.ts +2 -0
  240. package/build/ts/surfaces/checkout/components/Pressable/examples/basic-pressable.example.d.ts.map +1 -0
  241. package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts +74 -0
  242. package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts.map +1 -0
  243. package/build/ts/surfaces/checkout/components/ScrollView/examples/basic-scrollview.example.d.ts +2 -0
  244. package/build/ts/surfaces/checkout/components/ScrollView/examples/basic-scrollview.example.d.ts.map +1 -0
  245. package/build/ts/surfaces/checkout/components/Select/Select.d.ts +98 -0
  246. package/build/ts/surfaces/checkout/components/Select/Select.d.ts.map +1 -0
  247. package/build/ts/surfaces/checkout/components/Select/examples/basic-select.example.d.ts +2 -0
  248. package/build/ts/surfaces/checkout/components/Select/examples/basic-select.example.d.ts.map +1 -0
  249. package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.d.ts +25 -0
  250. package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.d.ts.map +1 -0
  251. package/build/ts/surfaces/checkout/components/SkeletonImage/examples/basic-skeletonimage.example.d.ts +2 -0
  252. package/build/ts/surfaces/checkout/components/SkeletonImage/examples/basic-skeletonimage.example.d.ts.map +1 -0
  253. package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts +21 -0
  254. package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts.map +1 -0
  255. package/build/ts/surfaces/checkout/components/SkeletonText/examples/basic-skeletontext.example.d.ts +2 -0
  256. package/build/ts/surfaces/checkout/components/SkeletonText/examples/basic-skeletontext.example.d.ts.map +1 -0
  257. package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts +22 -0
  258. package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts.map +1 -0
  259. package/build/ts/surfaces/checkout/components/SkeletonTextBlock/examples/basic-skeletontextblock.example.d.ts +2 -0
  260. package/build/ts/surfaces/checkout/components/SkeletonTextBlock/examples/basic-skeletontextblock.example.d.ts.map +1 -0
  261. package/build/ts/surfaces/checkout/components/Spinner/Spinner.d.ts +32 -0
  262. package/build/ts/surfaces/checkout/components/Spinner/Spinner.d.ts.map +1 -0
  263. package/build/ts/surfaces/checkout/components/Spinner/examples/basic-spinner.example.d.ts +2 -0
  264. package/build/ts/surfaces/checkout/components/Spinner/examples/basic-spinner.example.d.ts.map +1 -0
  265. package/build/ts/surfaces/checkout/components/Stepper/Stepper.d.ts +42 -0
  266. package/build/ts/surfaces/checkout/components/Stepper/Stepper.d.ts.map +1 -0
  267. package/build/ts/surfaces/checkout/components/Stepper/examples/basic-stepper.example.d.ts +2 -0
  268. package/build/ts/surfaces/checkout/components/Stepper/examples/basic-stepper.example.d.ts.map +1 -0
  269. package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts +31 -0
  270. package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts.map +1 -0
  271. package/build/ts/surfaces/checkout/components/Tag/examples/basic-tag.example.d.ts +2 -0
  272. package/build/ts/surfaces/checkout/components/Tag/examples/basic-tag.example.d.ts.map +1 -0
  273. package/build/ts/surfaces/checkout/components/Text/Text.d.ts +34 -0
  274. package/build/ts/surfaces/checkout/components/Text/Text.d.ts.map +1 -0
  275. package/build/ts/surfaces/checkout/components/Text/examples/basic-text.example.d.ts +2 -0
  276. package/build/ts/surfaces/checkout/components/Text/examples/basic-text.example.d.ts.map +1 -0
  277. package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts +32 -0
  278. package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts.map +1 -0
  279. package/build/ts/surfaces/checkout/components/TextBlock/examples/basic-textblock.example.d.ts +2 -0
  280. package/build/ts/surfaces/checkout/components/TextBlock/examples/basic-textblock.example.d.ts.map +1 -0
  281. package/build/ts/surfaces/checkout/components/TextField/TextField.d.ts +175 -0
  282. package/build/ts/surfaces/checkout/components/TextField/TextField.d.ts.map +1 -0
  283. package/build/ts/surfaces/checkout/components/TextField/examples/basic-textfield.example.d.ts +2 -0
  284. package/build/ts/surfaces/checkout/components/TextField/examples/basic-textfield.example.d.ts.map +1 -0
  285. package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.d.ts +16 -0
  286. package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.d.ts.map +1 -0
  287. package/build/ts/surfaces/checkout/components/Tooltip/examples/basic-tooltip.example.d.ts +2 -0
  288. package/build/ts/surfaces/checkout/components/Tooltip/examples/basic-tooltip.example.d.ts.map +1 -0
  289. package/build/ts/surfaces/checkout/components/View/View.d.ts +169 -0
  290. package/build/ts/surfaces/checkout/components/View/View.d.ts.map +1 -0
  291. package/build/ts/surfaces/checkout/components/View/examples/basic-view.example.d.ts +2 -0
  292. package/build/ts/surfaces/checkout/components/View/examples/basic-view.example.d.ts.map +1 -0
  293. package/build/ts/surfaces/checkout/components/shared.d.ts +388 -0
  294. package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -0
  295. package/build/ts/surfaces/checkout/components.d.ts +75 -1
  296. package/build/ts/surfaces/checkout/components.d.ts.map +1 -1
  297. package/build/ts/surfaces/checkout/extension-points.d.ts +50 -2
  298. package/build/ts/surfaces/checkout/extension-points.d.ts.map +1 -1
  299. package/build/ts/surfaces/checkout/globals.d.ts +11 -0
  300. package/build/ts/surfaces/checkout/globals.d.ts.map +1 -0
  301. package/build/ts/surfaces/checkout/index.d.ts +2 -0
  302. package/build/ts/surfaces/checkout/index.d.ts.map +1 -1
  303. package/build/ts/surfaces/checkout/shared.d.ts +3 -3
  304. package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
  305. package/build/ts/surfaces/checkout/style/isEqual.d.ts +8 -0
  306. package/build/ts/surfaces/checkout/style/isEqual.d.ts.map +1 -0
  307. package/build/ts/surfaces/checkout/style/isEqual.test.d.ts +2 -0
  308. package/build/ts/surfaces/checkout/style/isEqual.test.d.ts.map +1 -0
  309. package/build/ts/surfaces/checkout/style/memoize.d.ts +13 -0
  310. package/build/ts/surfaces/checkout/style/memoize.d.ts.map +1 -0
  311. package/build/ts/surfaces/checkout/style/style.d.ts +70 -0
  312. package/build/ts/surfaces/checkout/style/style.d.ts.map +1 -0
  313. package/build/ts/surfaces/checkout/style/style.test.d.ts +2 -0
  314. package/build/ts/surfaces/checkout/style/style.test.d.ts.map +1 -0
  315. package/build/ts/surfaces/checkout/style/types.d.ts +46 -0
  316. package/build/ts/surfaces/checkout/style/types.d.ts.map +1 -0
  317. package/build/ts/surfaces/checkout/style.d.ts +3 -0
  318. package/build/ts/surfaces/checkout/style.d.ts.map +1 -0
  319. package/build/ts/utilities/registration.d.ts +1 -2
  320. package/build/ts/utilities/registration.d.ts.map +1 -1
  321. package/checkout.esnext +1 -1
  322. package/checkout.js +1 -1
  323. package/checkout.mjs +1 -1
  324. package/index.esnext +1 -1
  325. package/index.js +1 -1
  326. package/index.mjs +1 -1
  327. package/package.json +17 -11
  328. package/src/api.ts +0 -5
  329. package/src/extension.ts +3 -29
  330. package/src/index.ts +1 -1
  331. package/src/surfaces/checkout/api/cart-line-details/render-after.ts +7 -3
  332. package/src/surfaces/checkout/api/shared.ts +810 -3
  333. package/src/surfaces/checkout/api/standard/standard.ts +1240 -2
  334. package/src/surfaces/checkout/components/Banner/Banner.ts +37 -0
  335. package/src/surfaces/checkout/components/Banner/README.md +14 -0
  336. package/src/surfaces/checkout/components/Banner/content/guidelines.md +9 -0
  337. package/src/surfaces/checkout/components/Banner/examples/basic-banner.example.ts +11 -0
  338. package/src/surfaces/checkout/components/BlockLayout/BlockLayout.ts +43 -0
  339. package/src/surfaces/checkout/components/BlockLayout/README.md +101 -0
  340. package/src/surfaces/checkout/components/BlockLayout/examples/basic-blockLayout.example.ts +16 -0
  341. package/src/surfaces/checkout/components/BlockSpacer/BlockSpacer.ts +25 -0
  342. package/src/surfaces/checkout/components/BlockSpacer/README.md +14 -0
  343. package/src/surfaces/checkout/components/BlockSpacer/examples/basic-blockspacer.example.ts +11 -0
  344. package/src/surfaces/checkout/components/BlockStack/BlockStack.ts +53 -0
  345. package/src/surfaces/checkout/components/BlockStack/README.md +77 -0
  346. package/src/surfaces/checkout/components/BlockStack/examples/basic-blockstack.example.ts +11 -0
  347. package/src/surfaces/checkout/components/Button/Button.ts +87 -0
  348. package/src/surfaces/checkout/components/Button/README.md +22 -0
  349. package/src/surfaces/checkout/components/Button/content/guidelines.md +10 -0
  350. package/src/surfaces/checkout/components/Button/examples/basic-button.example.ts +11 -0
  351. package/src/{components → surfaces/checkout/components}/Checkbox/Checkbox.ts +32 -1
  352. package/src/surfaces/checkout/components/Checkbox/README.md +18 -0
  353. package/src/surfaces/checkout/components/Checkbox/content/guidelines.md +9 -0
  354. package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.ts +11 -0
  355. package/src/surfaces/checkout/components/Choice/Choice.ts +25 -0
  356. package/src/surfaces/checkout/components/Choice/README.md +14 -0
  357. package/src/surfaces/checkout/components/Choice/content/guidelines.md +9 -0
  358. package/src/surfaces/checkout/components/Choice/examples/basic-choice.example.ts +50 -0
  359. package/src/surfaces/checkout/components/ChoiceList/ChoiceList.ts +33 -0
  360. package/src/surfaces/checkout/components/ChoiceList/README.md +14 -0
  361. package/src/surfaces/checkout/components/ChoiceList/content/guidelines.md +10 -0
  362. package/src/surfaces/checkout/components/ChoiceList/examples/basic-choicelist.example.ts +50 -0
  363. package/src/surfaces/checkout/components/Divider/Divider.ts +33 -0
  364. package/src/surfaces/checkout/components/Divider/README.md +13 -0
  365. package/src/surfaces/checkout/components/Divider/examples/basic-divider.example.ts +7 -0
  366. package/src/surfaces/checkout/components/Form/Form.ts +30 -0
  367. package/src/surfaces/checkout/components/Form/README.md +21 -0
  368. package/src/surfaces/checkout/components/Form/content/guidelines.md +4 -0
  369. package/src/surfaces/checkout/components/Form/examples/basic-form.example.ts +48 -0
  370. package/src/surfaces/checkout/components/Grid/Grid.ts +104 -0
  371. package/src/surfaces/checkout/components/Grid/README.md +105 -0
  372. package/src/surfaces/checkout/components/Grid/content/guidelines.md +3 -0
  373. package/src/surfaces/checkout/components/Grid/examples/basic-grid.example.ts +45 -0
  374. package/src/surfaces/checkout/components/GridItem/GridItem.ts +42 -0
  375. package/src/surfaces/checkout/components/GridItem/README.md +72 -0
  376. package/src/surfaces/checkout/components/GridItem/content/guidelines.md +3 -0
  377. package/src/surfaces/checkout/components/GridItem/examples/basic-griditem.example.ts +42 -0
  378. package/src/surfaces/checkout/components/Heading/Heading.ts +44 -0
  379. package/src/surfaces/checkout/components/Heading/README.md +19 -0
  380. package/src/surfaces/checkout/components/Heading/content/guidelines.md +10 -0
  381. package/src/surfaces/checkout/components/Heading/examples/basic-heading.example.ts +7 -0
  382. package/src/surfaces/checkout/components/HeadingGroup/HeadingGroup.ts +15 -0
  383. package/src/surfaces/checkout/components/HeadingGroup/README.md +7 -0
  384. package/src/surfaces/checkout/components/HeadingGroup/content/guidelines.md +9 -0
  385. package/src/surfaces/checkout/components/HeadingGroup/examples/basic-headinggroup.example.ts +20 -0
  386. package/src/surfaces/checkout/components/Icon/Icon.ts +91 -0
  387. package/src/surfaces/checkout/components/Icon/README.md +15 -0
  388. package/src/surfaces/checkout/components/Icon/examples/basic-icon.example.ts +7 -0
  389. package/src/surfaces/checkout/components/Image/Image.ts +83 -0
  390. package/src/surfaces/checkout/components/Image/README.md +53 -0
  391. package/src/surfaces/checkout/components/Image/examples/basic-image.example.ts +10 -0
  392. package/src/surfaces/checkout/components/InlineLayout/InlineLayout.ts +49 -0
  393. package/src/surfaces/checkout/components/InlineLayout/README.md +103 -0
  394. package/src/surfaces/checkout/components/InlineLayout/examples/basic-inlineLayout.example.ts +16 -0
  395. package/src/surfaces/checkout/components/InlineSpacer/InlineSpacer.ts +24 -0
  396. package/src/surfaces/checkout/components/InlineSpacer/README.md +14 -0
  397. package/src/surfaces/checkout/components/InlineSpacer/examples/basic-inlinespacer.example.ts +16 -0
  398. package/src/surfaces/checkout/components/InlineStack/InlineStack.ts +63 -0
  399. package/src/surfaces/checkout/components/InlineStack/README.md +87 -0
  400. package/src/surfaces/checkout/components/InlineStack/examples/basic-inlinestack.example.ts +18 -0
  401. package/src/surfaces/checkout/components/Link/Link.ts +49 -0
  402. package/src/surfaces/checkout/components/Link/README.md +18 -0
  403. package/src/surfaces/checkout/components/Link/content/guidelines.md +9 -0
  404. package/src/surfaces/checkout/components/Link/examples/basic-link.example.ts +11 -0
  405. package/src/surfaces/checkout/components/List/List.ts +32 -0
  406. package/src/surfaces/checkout/components/List/README.md +19 -0
  407. package/src/surfaces/checkout/components/List/content/guidelines.md +11 -0
  408. package/src/surfaces/checkout/components/List/examples/basic-list.example.ts +11 -0
  409. package/src/surfaces/checkout/components/ListItem/ListItem.ts +12 -0
  410. package/src/surfaces/checkout/components/ListItem/README.md +5 -0
  411. package/src/surfaces/checkout/components/ListItem/content/guidelines.md +3 -0
  412. package/src/surfaces/checkout/components/ListItem/examples/basic-listitem.example.ts +9 -0
  413. package/src/surfaces/checkout/components/PhoneField/PhoneField.ts +77 -0
  414. package/src/surfaces/checkout/components/PhoneField/README.md +49 -0
  415. package/src/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.ts +10 -0
  416. package/src/surfaces/checkout/components/Pressable/Pressable.ts +128 -0
  417. package/src/surfaces/checkout/components/Pressable/README.md +74 -0
  418. package/src/surfaces/checkout/components/Pressable/examples/basic-pressable.example.ts +27 -0
  419. package/src/surfaces/checkout/components/ScrollView/README.md +62 -0
  420. package/src/surfaces/checkout/components/ScrollView/ScrollView.ts +76 -0
  421. package/src/surfaces/checkout/components/ScrollView/examples/basic-scrollview.example.ts +38 -0
  422. package/src/surfaces/checkout/components/Select/README.md +41 -0
  423. package/src/surfaces/checkout/components/Select/Select.ts +97 -0
  424. package/src/surfaces/checkout/components/Select/content/guidelines.md +4 -0
  425. package/src/surfaces/checkout/components/Select/examples/basic-select.example.ts +36 -0
  426. package/src/surfaces/checkout/components/SkeletonImage/README.md +13 -0
  427. package/src/surfaces/checkout/components/SkeletonImage/SkeletonImage.ts +27 -0
  428. package/src/surfaces/checkout/components/SkeletonImage/examples/basic-skeletonimage.example.ts +10 -0
  429. package/src/surfaces/checkout/components/SkeletonText/README.md +13 -0
  430. package/src/surfaces/checkout/components/SkeletonText/SkeletonText.ts +23 -0
  431. package/src/surfaces/checkout/components/SkeletonText/examples/basic-skeletontext.example.ts +7 -0
  432. package/src/surfaces/checkout/components/SkeletonTextBlock/README.md +13 -0
  433. package/src/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.ts +24 -0
  434. package/src/surfaces/checkout/components/SkeletonTextBlock/examples/basic-skeletontextblock.example.ts +7 -0
  435. package/src/surfaces/checkout/components/Spinner/README.md +14 -0
  436. package/src/surfaces/checkout/components/Spinner/Spinner.ts +35 -0
  437. package/src/surfaces/checkout/components/Spinner/examples/basic-spinner.example.ts +7 -0
  438. package/src/surfaces/checkout/components/Stepper/README.md +28 -0
  439. package/src/surfaces/checkout/components/Stepper/Stepper.ts +63 -0
  440. package/src/surfaces/checkout/components/Stepper/content/guidelines.md +4 -0
  441. package/src/surfaces/checkout/components/Stepper/examples/basic-stepper.example.ts +10 -0
  442. package/src/surfaces/checkout/components/Tag/README.md +14 -0
  443. package/src/surfaces/checkout/components/Tag/Tag.ts +26 -0
  444. package/src/surfaces/checkout/components/Tag/examples/basic-tag.example.ts +7 -0
  445. package/src/surfaces/checkout/components/Text/README.md +17 -0
  446. package/src/surfaces/checkout/components/Text/Text.ts +44 -0
  447. package/src/surfaces/checkout/components/Text/content/guidelines.md +10 -0
  448. package/src/surfaces/checkout/components/Text/examples/basic-text.example.ts +14 -0
  449. package/src/surfaces/checkout/components/TextBlock/README.md +15 -0
  450. package/src/surfaces/checkout/components/TextBlock/TextBlock.ts +38 -0
  451. package/src/surfaces/checkout/components/TextBlock/content/guidelines.md +9 -0
  452. package/src/surfaces/checkout/components/TextBlock/examples/basic-textblock.example.ts +18 -0
  453. package/src/surfaces/checkout/components/TextField/README.md +49 -0
  454. package/src/surfaces/checkout/components/TextField/TextField.ts +173 -0
  455. package/src/surfaces/checkout/components/TextField/content/guidelines.md +5 -0
  456. package/src/surfaces/checkout/components/TextField/examples/basic-textfield.example.ts +9 -0
  457. package/src/surfaces/checkout/components/Tooltip/README.md +8 -0
  458. package/src/surfaces/checkout/components/Tooltip/Tooltip.ts +15 -0
  459. package/src/surfaces/checkout/components/Tooltip/examples/basic-tooltip.example.ts +23 -0
  460. package/src/surfaces/checkout/components/View/README.md +97 -0
  461. package/src/surfaces/checkout/components/View/View.ts +196 -0
  462. package/src/surfaces/checkout/components/View/examples/basic-view.example.ts +11 -0
  463. package/src/surfaces/checkout/components/shared.ts +560 -0
  464. package/src/surfaces/checkout/components.ts +155 -1
  465. package/src/surfaces/checkout/extension-points.ts +83 -3
  466. package/src/surfaces/checkout/globals.ts +15 -0
  467. package/src/surfaces/checkout/index.ts +2 -0
  468. package/src/surfaces/checkout/style/isEqual.test.ts +67 -0
  469. package/src/surfaces/checkout/style/isEqual.ts +41 -0
  470. package/src/surfaces/checkout/style/memoize.ts +176 -0
  471. package/src/surfaces/checkout/style/style.test.ts +131 -0
  472. package/src/surfaces/checkout/style/style.ts +161 -0
  473. package/src/surfaces/checkout/style/types.ts +67 -0
  474. package/src/surfaces/checkout/style.ts +16 -0
  475. package/src/utilities/registration.ts +9 -42
  476. package/LICENSE.md +0 -7
  477. package/admin.d.ts +0 -1
  478. package/admin.esnext +0 -1
  479. package/admin.js +0 -1
  480. package/admin.mjs +0 -1
  481. package/build/cjs/api.js +0 -1
  482. package/build/cjs/components/BlockStack/BlockStack.js +0 -11
  483. package/build/cjs/components/BlockStack/README.md +0 -1
  484. package/build/cjs/components/Button/Button.js +0 -11
  485. package/build/cjs/components/Button/README.md +0 -1
  486. package/build/cjs/components/Checkbox/Checkbox.js +0 -14
  487. package/build/cjs/components/Checkbox/README.md +0 -1
  488. package/build/cjs/components/Text/README.md +0 -1
  489. package/build/cjs/components/Text/Text.js +0 -11
  490. package/build/cjs/components/TextField/README.md +0 -1
  491. package/build/cjs/components/TextField/TextField.js +0 -11
  492. package/build/cjs/components/View/README.md +0 -1
  493. package/build/cjs/components/View/View.js +0 -11
  494. package/build/cjs/components.js +0 -53
  495. package/build/cjs/extension.js +0 -1
  496. package/build/cjs/surfaces/admin/api/checkout-editor/README.md +0 -1
  497. package/build/cjs/surfaces/admin/api/checkout-editor/render-settings.js +0 -1
  498. package/build/cjs/surfaces/admin/api/standard/README.md +0 -1
  499. package/build/cjs/surfaces/admin/api/standard/standard.js +0 -1
  500. package/build/cjs/surfaces/admin/api.js +0 -1
  501. package/build/cjs/surfaces/admin/components/TextField/TextField.js +0 -11
  502. package/build/cjs/surfaces/admin/components.js +0 -30
  503. package/build/cjs/surfaces/admin/extension-points.js +0 -1
  504. package/build/cjs/surfaces/admin/extension.js +0 -27
  505. package/build/cjs/surfaces/admin/index.js +0 -70
  506. package/build/cjs/surfaces/admin/shared.js +0 -1
  507. package/build/cjs/surfaces/checkout/api/cart-line-details/README.md +0 -1
  508. package/build/cjs/surfaces/checkout/api/cart-line-details/render-after.js +0 -1
  509. package/build/cjs/surfaces/checkout/api/shared.js +0 -1
  510. package/build/cjs/surfaces/checkout/api/standard/README.md +0 -1
  511. package/build/cjs/surfaces/checkout/api/standard/standard.js +0 -1
  512. package/build/cjs/surfaces/checkout/api.js +0 -1
  513. package/build/cjs/surfaces/checkout/components.js +0 -18
  514. package/build/cjs/surfaces/checkout/extension-points.js +0 -1
  515. package/build/cjs/surfaces/checkout/shared.js +0 -1
  516. package/build/esm/api.mjs +0 -0
  517. package/build/esm/components/BlockStack/BlockStack.mjs +0 -2
  518. package/build/esm/components/BlockStack/README.md +0 -1
  519. package/build/esm/components/Button/Button.mjs +0 -2
  520. package/build/esm/components/Button/README.md +0 -1
  521. package/build/esm/components/Checkbox/Checkbox.mjs +0 -6
  522. package/build/esm/components/Checkbox/README.md +0 -1
  523. package/build/esm/components/Text/README.md +0 -1
  524. package/build/esm/components/Text/Text.mjs +0 -2
  525. package/build/esm/components/TextField/README.md +0 -1
  526. package/build/esm/components/TextField/TextField.mjs +0 -2
  527. package/build/esm/components/View/README.md +0 -1
  528. package/build/esm/components/View/View.mjs +0 -2
  529. package/build/esm/components.mjs +0 -6
  530. package/build/esm/extension.mjs +0 -0
  531. package/build/esm/surfaces/admin/api/checkout-editor/README.md +0 -1
  532. package/build/esm/surfaces/admin/api/checkout-editor/render-settings.mjs +0 -0
  533. package/build/esm/surfaces/admin/api/standard/README.md +0 -1
  534. package/build/esm/surfaces/admin/api/standard/standard.mjs +0 -0
  535. package/build/esm/surfaces/admin/api.mjs +0 -0
  536. package/build/esm/surfaces/admin/components/TextField/TextField.mjs +0 -2
  537. package/build/esm/surfaces/admin/components.mjs +0 -2
  538. package/build/esm/surfaces/admin/extension-points.mjs +0 -0
  539. package/build/esm/surfaces/admin/extension.mjs +0 -3
  540. package/build/esm/surfaces/admin/index.mjs +0 -5
  541. package/build/esm/surfaces/admin/shared.mjs +0 -0
  542. package/build/esm/surfaces/checkout/api/cart-line-details/README.md +0 -1
  543. package/build/esm/surfaces/checkout/api/cart-line-details/render-after.mjs +0 -0
  544. package/build/esm/surfaces/checkout/api/shared.mjs +0 -0
  545. package/build/esm/surfaces/checkout/api/standard/README.md +0 -1
  546. package/build/esm/surfaces/checkout/api/standard/standard.mjs +0 -0
  547. package/build/esm/surfaces/checkout/api.mjs +0 -0
  548. package/build/esm/surfaces/checkout/components.mjs +0 -1
  549. package/build/esm/surfaces/checkout/extension-points.mjs +0 -0
  550. package/build/esm/surfaces/checkout/shared.mjs +0 -0
  551. package/build/esnext/api.esnext +0 -0
  552. package/build/esnext/components/BlockStack/BlockStack.esnext +0 -2
  553. package/build/esnext/components/BlockStack/README.md +0 -1
  554. package/build/esnext/components/Button/Button.esnext +0 -2
  555. package/build/esnext/components/Button/README.md +0 -1
  556. package/build/esnext/components/Checkbox/Checkbox.esnext +0 -6
  557. package/build/esnext/components/Checkbox/README.md +0 -1
  558. package/build/esnext/components/Text/README.md +0 -1
  559. package/build/esnext/components/Text/Text.esnext +0 -2
  560. package/build/esnext/components/TextField/README.md +0 -1
  561. package/build/esnext/components/TextField/TextField.esnext +0 -2
  562. package/build/esnext/components/View/README.md +0 -1
  563. package/build/esnext/components/View/View.esnext +0 -2
  564. package/build/esnext/components.esnext +0 -6
  565. package/build/esnext/extension.esnext +0 -0
  566. package/build/esnext/surfaces/admin/api/checkout-editor/README.md +0 -1
  567. package/build/esnext/surfaces/admin/api/checkout-editor/render-settings.esnext +0 -0
  568. package/build/esnext/surfaces/admin/api/standard/README.md +0 -1
  569. package/build/esnext/surfaces/admin/api/standard/standard.esnext +0 -0
  570. package/build/esnext/surfaces/admin/api.esnext +0 -0
  571. package/build/esnext/surfaces/admin/components/TextField/TextField.esnext +0 -2
  572. package/build/esnext/surfaces/admin/components.esnext +0 -2
  573. package/build/esnext/surfaces/admin/extension-points.esnext +0 -0
  574. package/build/esnext/surfaces/admin/extension.esnext +0 -3
  575. package/build/esnext/surfaces/admin/index.esnext +0 -5
  576. package/build/esnext/surfaces/admin/shared.esnext +0 -0
  577. package/build/esnext/surfaces/checkout/api/cart-line-details/README.md +0 -1
  578. package/build/esnext/surfaces/checkout/api/cart-line-details/render-after.esnext +0 -0
  579. package/build/esnext/surfaces/checkout/api/shared.esnext +0 -0
  580. package/build/esnext/surfaces/checkout/api/standard/README.md +0 -1
  581. package/build/esnext/surfaces/checkout/api/standard/standard.esnext +0 -0
  582. package/build/esnext/surfaces/checkout/api.esnext +0 -0
  583. package/build/esnext/surfaces/checkout/components.esnext +0 -1
  584. package/build/esnext/surfaces/checkout/extension-points.esnext +0 -0
  585. package/build/esnext/surfaces/checkout/shared.esnext +0 -0
  586. package/build/node/api.js +0 -1
  587. package/build/node/components/BlockStack/BlockStack.js +0 -11
  588. package/build/node/components/BlockStack/README.md +0 -1
  589. package/build/node/components/Button/Button.js +0 -11
  590. package/build/node/components/Button/README.md +0 -1
  591. package/build/node/components/Checkbox/Checkbox.js +0 -14
  592. package/build/node/components/Checkbox/README.md +0 -1
  593. package/build/node/components/Text/README.md +0 -1
  594. package/build/node/components/Text/Text.js +0 -11
  595. package/build/node/components/TextField/README.md +0 -1
  596. package/build/node/components/TextField/TextField.js +0 -11
  597. package/build/node/components/View/README.md +0 -1
  598. package/build/node/components/View/View.js +0 -11
  599. package/build/node/components.js +0 -53
  600. package/build/node/extension.js +0 -1
  601. package/build/node/index.js +0 -44
  602. package/build/node/surfaces/admin/api/checkout-editor/README.md +0 -1
  603. package/build/node/surfaces/admin/api/checkout-editor/render-settings.js +0 -1
  604. package/build/node/surfaces/admin/api/standard/README.md +0 -1
  605. package/build/node/surfaces/admin/api/standard/standard.js +0 -1
  606. package/build/node/surfaces/admin/api.js +0 -1
  607. package/build/node/surfaces/admin/components/TextField/TextField.js +0 -11
  608. package/build/node/surfaces/admin/components.js +0 -30
  609. package/build/node/surfaces/admin/extension-points.js +0 -1
  610. package/build/node/surfaces/admin/extension.js +0 -27
  611. package/build/node/surfaces/admin/index.js +0 -70
  612. package/build/node/surfaces/admin/shared.js +0 -1
  613. package/build/node/surfaces/checkout/api/cart-line-details/README.md +0 -1
  614. package/build/node/surfaces/checkout/api/cart-line-details/render-after.js +0 -1
  615. package/build/node/surfaces/checkout/api/shared.js +0 -1
  616. package/build/node/surfaces/checkout/api/standard/README.md +0 -1
  617. package/build/node/surfaces/checkout/api/standard/standard.js +0 -1
  618. package/build/node/surfaces/checkout/api.js +0 -1
  619. package/build/node/surfaces/checkout/components.js +0 -18
  620. package/build/node/surfaces/checkout/extension-points.js +0 -1
  621. package/build/node/surfaces/checkout/extension.js +0 -27
  622. package/build/node/surfaces/checkout/index.js +0 -70
  623. package/build/node/surfaces/checkout/shared.js +0 -1
  624. package/build/node/utilities/registration.js +0 -44
  625. package/build/ts/api.js +0 -2
  626. package/build/ts/components/BlockStack/BlockStack.d.ts +0 -8
  627. package/build/ts/components/BlockStack/BlockStack.d.ts.map +0 -1
  628. package/build/ts/components/BlockStack/BlockStack.js +0 -5
  629. package/build/ts/components/Button/Button.d.ts +0 -12
  630. package/build/ts/components/Button/Button.d.ts.map +0 -1
  631. package/build/ts/components/Button/Button.js +0 -5
  632. package/build/ts/components/Checkbox/Checkbox.d.ts +0 -30
  633. package/build/ts/components/Checkbox/Checkbox.d.ts.map +0 -1
  634. package/build/ts/components/Checkbox/Checkbox.js +0 -8
  635. package/build/ts/components/Text/Text.d.ts +0 -8
  636. package/build/ts/components/Text/Text.d.ts.map +0 -1
  637. package/build/ts/components/Text/Text.js +0 -5
  638. package/build/ts/components/TextField/TextField.d.ts +0 -53
  639. package/build/ts/components/TextField/TextField.d.ts.map +0 -1
  640. package/build/ts/components/TextField/TextField.js +0 -5
  641. package/build/ts/components/View/View.d.ts +0 -8
  642. package/build/ts/components/View/View.d.ts.map +0 -1
  643. package/build/ts/components/View/View.js +0 -5
  644. package/build/ts/components.d.ts +0 -13
  645. package/build/ts/components.d.ts.map +0 -1
  646. package/build/ts/components.js +0 -15
  647. package/build/ts/extension.js +0 -2
  648. package/build/ts/index.js +0 -19
  649. package/build/ts/surfaces/admin/api/checkout-editor/render-settings.d.ts +0 -19
  650. package/build/ts/surfaces/admin/api/checkout-editor/render-settings.d.ts.map +0 -1
  651. package/build/ts/surfaces/admin/api/checkout-editor/render-settings.js +0 -2
  652. package/build/ts/surfaces/admin/api/standard/standard.d.ts +0 -7
  653. package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +0 -1
  654. package/build/ts/surfaces/admin/api/standard/standard.js +0 -2
  655. package/build/ts/surfaces/admin/api.d.ts +0 -3
  656. package/build/ts/surfaces/admin/api.d.ts.map +0 -1
  657. package/build/ts/surfaces/admin/api.js +0 -2
  658. package/build/ts/surfaces/admin/components/TextField/TextField.d.ts +0 -15
  659. package/build/ts/surfaces/admin/components/TextField/TextField.d.ts.map +0 -1
  660. package/build/ts/surfaces/admin/components/TextField/TextField.js +0 -5
  661. package/build/ts/surfaces/admin/components.d.ts +0 -4
  662. package/build/ts/surfaces/admin/components.d.ts.map +0 -1
  663. package/build/ts/surfaces/admin/components.js +0 -20
  664. package/build/ts/surfaces/admin/extension-points.d.ts +0 -9
  665. package/build/ts/surfaces/admin/extension-points.d.ts.map +0 -1
  666. package/build/ts/surfaces/admin/extension-points.js +0 -2
  667. package/build/ts/surfaces/admin/extension.d.ts +0 -4
  668. package/build/ts/surfaces/admin/extension.d.ts.map +0 -1
  669. package/build/ts/surfaces/admin/extension.js +0 -20
  670. package/build/ts/surfaces/admin/index.d.ts +0 -6
  671. package/build/ts/surfaces/admin/index.d.ts.map +0 -1
  672. package/build/ts/surfaces/admin/index.js +0 -21
  673. package/build/ts/surfaces/admin/shared.d.ts +0 -8
  674. package/build/ts/surfaces/admin/shared.d.ts.map +0 -1
  675. package/build/ts/surfaces/admin/shared.js +0 -2
  676. package/build/ts/surfaces/checkout/api/cart-line-details/render-after.js +0 -2
  677. package/build/ts/surfaces/checkout/api/shared.js +0 -2
  678. package/build/ts/surfaces/checkout/api/standard/standard.js +0 -2
  679. package/build/ts/surfaces/checkout/api.js +0 -2
  680. package/build/ts/surfaces/checkout/components.js +0 -17
  681. package/build/ts/surfaces/checkout/extension-points.js +0 -2
  682. package/build/ts/surfaces/checkout/extension.js +0 -20
  683. package/build/ts/surfaces/checkout/index.js +0 -21
  684. package/build/ts/surfaces/checkout/shared.js +0 -2
  685. package/build/ts/utilities/registration.js +0 -111
  686. package/build/tsconfig.tsbuildinfo +0 -1
  687. package/checkout.d.ts +0 -1
  688. package/index.d.ts +0 -1
  689. package/sewing-kit.config.ts +0 -9
  690. package/src/components/BlockStack/BlockStack.ts +0 -7
  691. package/src/components/BlockStack/README.md +0 -1
  692. package/src/components/Button/Button.ts +0 -10
  693. package/src/components/Button/README.md +0 -1
  694. package/src/components/Checkbox/README.md +0 -1
  695. package/src/components/Text/README.md +0 -1
  696. package/src/components/Text/Text.ts +0 -5
  697. package/src/components/TextField/README.md +0 -1
  698. package/src/components/TextField/TextField.ts +0 -56
  699. package/src/components/View/README.md +0 -1
  700. package/src/components/View/View.ts +0 -5
  701. package/src/components.ts +0 -17
  702. package/src/surfaces/admin/api/checkout-editor/README.md +0 -1
  703. package/src/surfaces/admin/api/checkout-editor/render-settings.ts +0 -26
  704. package/src/surfaces/admin/api/standard/README.md +0 -1
  705. package/src/surfaces/admin/api/standard/standard.ts +0 -8
  706. package/src/surfaces/admin/api.ts +0 -2
  707. package/src/surfaces/admin/components/TextField/TextField.ts +0 -16
  708. package/src/surfaces/admin/components.ts +0 -4
  709. package/src/surfaces/admin/extension-points.ts +0 -17
  710. package/src/surfaces/admin/extension.ts +0 -7
  711. package/src/surfaces/admin/index.ts +0 -5
  712. package/src/surfaces/admin/shared.ts +0 -14
  713. package/tsconfig.json +0 -9
@@ -0,0 +1,37 @@
1
+ import {createRemoteComponent} from '@remote-ui/core';
2
+
3
+ import type {Status} from '../shared';
4
+
5
+ export interface BannerProps {
6
+ /**
7
+ * Banners have an optional title. Use a title to grab the buyer’s attention
8
+ * with a short, concise message. Banners with no title should have child elements
9
+ * to convey the banner’s purpose to the buyer.
10
+ */
11
+ title?: string;
12
+ /**
13
+ * Sets the status of the banner.
14
+ *
15
+ * @defaultValue 'info'
16
+ */
17
+ status?: Status;
18
+ /**
19
+ * Makes the content collapsible. A collapsible banner will conceal child
20
+ * elements initially, but allow the user to expand the banner to see them.
21
+ *
22
+ * @defaultValue false
23
+ */
24
+ collapsible?: boolean;
25
+ /**
26
+ * Callback when banner is dismissed. This component is
27
+ * [controlled](https://reactjs.org/docs/forms.html#controlled-components),
28
+ * so you must manage the visibility of the banner in state by using
29
+ * the onDismiss callback.
30
+ */
31
+ onDismiss?(): void;
32
+ }
33
+
34
+ /**
35
+ * Use banners to communicate important messages to customers in a prominent way.
36
+ */
37
+ export const Banner = createRemoteComponent<'Banner', BannerProps>('Banner');
@@ -0,0 +1,14 @@
1
+ # Banner
2
+
3
+ Use banners to communicate important messages to customers in a prominent way.
4
+
5
+ ## Props
6
+
7
+ optional = ?
8
+
9
+ | Name | Type | Description |
10
+ | ------------ | ----------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
+ | title? | <code>string</code> | Banners have an optional title. Use a title to grab the buyer’s attention with a short, concise message. Banners with no title should have child elements to convey the banner’s purpose to the buyer. |
12
+ | status? | <code>"info" &#124; "success" &#124; "warning" &#124; "critical"</code> | Sets the status of the banner.<br /><br /><code>"info"</code>: Use to convey general information or actions that aren’t critical or tied to a particular action.<br /><br /><code>"success"</code>: Use rarely, only if you need additional visual confirmation that a non-standard action has been completed successfully, for example adding an item to an order as an upsell.<br /><br /><code>"warning"</code>: Use to display information that needs attention or that customers should take action on. Seeing these banners can be stressful for customers so be cautious about using them. Should not block progress to next step.<br /><br /><code>"critical"</code>: Use to communicate problems that have to be resolved immediately for customers to complete a task. For example, using a different payment method if card details couldn't be processed. Seeing these banners can be stressful for customers so be cautious about using them.<br /><br />Default value: <code>'info'</code> |
13
+ | collapsible? | <code>boolean</code> | Makes the content collapsible. A collapsible banner will conceal child elements initially, but allow the user to expand the banner to see them.<br /><br />Default value: <code>false</code> |
14
+ | onDismiss? | <code>() => void</code> | Callback when banner is dismissed. This component is [controlled](https://reactjs.org/docs/forms.html#controlled-components), so you must manage the visibility of the banner in state by using the onDismiss callback. |
@@ -0,0 +1,9 @@
1
+ ## Best practices
2
+
3
+ - Use banners thoughtfully and sparingly, and only for the most important information. Too many banners distract customers from completing checkout.
4
+ - Banners are typically displayed at the top of a page or a section, if they relate to specific content. Place banners below the relevant page or section header.
5
+ - Include a [`Button`](https://github.com/Shopify/ui-extensions/tree/main/packages/checkout-ui-extensions/src/components/Button) component with next steps when possible.
6
+ - Make banners dismissible, unless they contain critical information or an important step that customers need to take.
7
+ - Use the `info` banner to update customers about a change or to give them advice.
8
+ - Use the `warning` banner to display information that needs attention or that customers need to take action on. Warning banners can be stressful for customers, so be cautious about using them.
9
+ - Use the `critical` banner to communicate problems that customers need to resolve immediately to complete checkout.
@@ -0,0 +1,11 @@
1
+ import {extend, Banner} from '@shopify/checkout-ui-extensions';
2
+
3
+ extend('Checkout::Dynamic::Render', (root) => {
4
+ const banner = root.createComponent(Banner, {
5
+ status: 'critical',
6
+ title:
7
+ 'Your payment details couldn’t be verified. Check your card details and try again.',
8
+ });
9
+
10
+ root.appendChild(banner);
11
+ });
@@ -0,0 +1,43 @@
1
+ import {createRemoteComponent} from '@remote-ui/core';
2
+
3
+ import {MaybeResponsiveConditionalStyle} from '../../style';
4
+ import type {Rows} from '../shared';
5
+ import type {GridProps} from '../Grid/Grid';
6
+
7
+ export interface BlockLayoutProps extends Omit<GridProps, 'columns' | 'rows'> {
8
+ /**
9
+ * Sizes for each row of the layout.
10
+ *
11
+ *
12
+ * `auto`: intrinsic size of the element.
13
+ *
14
+ * `fill`: fills the remaining available space. When multiple elements are set to `fill`, the remaining space is shared equally.
15
+ *
16
+ * `` `${number}%` ``: size in percentages.
17
+ *
18
+ * `` `${number}fr` ``: size in fractions.
19
+ *
20
+ * `number`: size in pixels.
21
+ *
22
+ *
23
+ * - When the sum of the defined sizes is larger than the available space, elements will shrink to avoid overflow.
24
+ *
25
+ * - When the size of an element is not explicitly set, it will fill the remaining space available.
26
+ *
27
+ * - When only one size is set and outside of an array, all elements of the layout will take that size.
28
+ *
29
+ *
30
+ * @defaultValue 'fill'
31
+ */
32
+ rows?: MaybeResponsiveConditionalStyle<Rows>;
33
+ }
34
+
35
+ /**
36
+ * BlockLayout is used to lay out content over multiple rows.
37
+ *
38
+ * By default, all rows fill the available block space, sharing it equally.
39
+ */
40
+ export const BlockLayout = createRemoteComponent<
41
+ 'BlockLayout',
42
+ BlockLayoutProps
43
+ >('BlockLayout');
@@ -0,0 +1,101 @@
1
+ # BlockLayout
2
+
3
+ BlockLayout is used to lay out content over multiple rows.
4
+
5
+ By default, all rows fill the available block space, sharing it equally.
6
+
7
+ ## Props
8
+
9
+ optional = ?
10
+
11
+ | Name | Type | Description |
12
+ | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
13
+ | rows? | <code><a href="#rows">Rows</a> &#124; ConditionalStyle<<wbr><a href="#rows">Rows</a>, AcceptedConditions<wbr>></code> | Sizes for each row of the layout.<br /><br />`auto`: intrinsic size of the element.<br /><br />`fill`: fills the remaining available space. When multiple elements are set to `fill`, the remaining space is shared equally.<br /><br />`` `${number}%` ``: size in percentages.<br /><br />`` `${number}fr` ``: size in fractions.<br /><br />`number`: size in pixels.<br /><br />- When the sum of the defined sizes is larger than the available space, elements will shrink to avoid overflow.<br /><br />- When the size of an element is not explicitly set, it will fill the remaining space available.<br /><br />- When only one size is set and outside of an array, all elements of the layout will take that size.<br /><br />Default value: <code>'fill'</code> |
14
+ | spacing? | <code><a href="#spacing">Spacing</a> &#124; [<a href="#spacing">Spacing</a>, <a href="#spacing">Spacing</a>] &#124; ConditionalStyle<<wbr><a href="#spacing">Spacing</a> &#124; [<a href="#spacing">Spacing</a>, <a href="#spacing">Spacing</a>], AcceptedConditions<wbr>></code> | Adjust spacing between children.<br /><br />- `base` means the space between rows and columns is `base`.<br /><br />- [`base`, `none`] means the space between rows is `base`, space between columns is `none`.<br /><br />Default value: <code>'none'</code> |
15
+ | blockAlignment? | <code><a href="#blockalignment">BlockAlignment</a> &#124; ConditionalStyle<<wbr><a href="#blockalignment">BlockAlignment</a>, AcceptedConditions<wbr>></code> | Position children along the cross axis. |
16
+ | inlineAlignment? | <code><a href="#inlinealignment">InlineAlignment</a> &#124; ConditionalStyle<<wbr><a href="#inlinealignment">InlineAlignment</a>, AcceptedConditions<wbr>></code> | Position children along the main axis. |
17
+ | accessibilityRole? | <code><a href="#nonpresentationalaccessibilityrole">NonPresentationalAccessibilityRole</a> &#124; [<a href="#nonpresentationalaccessibilityrole">NonPresentationalAccessibilityRole</a>, <a href="#nonpresentationalaccessibilityrole">NonPresentationalAccessibilityRole</a>]</code> | Sets the semantic meaning of the component’s content. When set, the role will be used by assistive technologies to help buyers navigate the page.<br /><br />For example:<br /><br />- In an HTML host a `['listItem', 'separator']` tuple will render: &lt;li role='separator'&gt;<br /><br />- In an HTML host a `listItem` string will render: &lt;li&gt; |
18
+ | accessibilityLabel? | <code>string</code> | A label that describes the purpose or contents of the element. When set, it will be announced to buyers using assistive technologies and will provide them with more context. |
19
+ | border? | <code><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#borderstyle">BorderStyle</a><wbr>> &#124; ConditionalStyle<<wbr><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#borderstyle">BorderStyle</a><wbr>>, AcceptedConditions<wbr>></code> | Adjust the border style.<br /><br />To shorten the code, it is possible to specify all the border style properties in one property.<br /><br />For example:<br /><br />- `base` means blockStart, inlineEnd, blockEnd and inlineStart border styles are `base`<br /><br />- `['base', 'none']` means blockStart and blockEnd border styles are `base`, inlineStart and inlineEnd border styles are `none`<br /><br />- `['base', 'none', 'dotted', 'base']` means blockStart border style is `base`, inlineEnd border style is `none`, blockEnd border style is `dotted` and blockStart border style is `base` |
20
+ | borderWidth? | <code><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#borderwidth">BorderWidth</a><wbr>> &#124; ConditionalStyle<<wbr><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#borderwidth">BorderWidth</a><wbr>>, AcceptedConditions<wbr>></code> | Adjust the border width.<br /><br />To shorten the code, it is possible to specify all the border width properties in one property.<br /><br />For example:<br /><br />- `base` means blockStart, inlineEnd, blockEnd and inlineStart border widths are `base`<br /><br />- `['base', 'medium']` means blockStart and blockEnd border widths are `base`, inlineStart and inlineEnd border widths are `medium`<br /><br />- `['base', 'medium', 'medium', 'base']` means blockStart border width is `base`, inlineEnd border width is `medium`, blockEnd border width is `medium` and blockStart border width is `base` |
21
+ | borderRadius? | <code><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#borderradius">BorderRadius</a><wbr>> &#124; ConditionalStyle<<wbr><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#borderradius">BorderRadius</a><wbr>>, AcceptedConditions<wbr>></code> | Adjust the border radius.<br /><br />To shorten the code, it is possible to specify all the border width properties in one property.<br /><br />For example:<br /><br />- `base` means blockStart, inlineEnd, blockEnd and inlineStart border radii are `base`<br /><br />- `['base', 'none']` means blockStart and blockEnd border radii are `base`, inlineStart and inlineEnd border radii are `none`<br /><br />- `['base', 'none', 'tight', 'base']` means blockStart border radius is `base`, inlineEnd border radius is `none`, blockEnd border radius is `tight` and blockStart border radius is `base` |
22
+ | maxBlockSize? | <code>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill" &#124; ConditionalStyle<<wbr>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill", AcceptedConditions<wbr>></code> | Adjust the maximum block size.<br /><br />`number`: size in pixels.<br /><br />`` `${number}%` ``: size in percentages.<br /><br />`fill`: takes all the available space. |
23
+ | maxInlineSize? | <code>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill" &#124; ConditionalStyle<<wbr>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill", AcceptedConditions<wbr>></code> | Adjust the maximum inline size.<br /><br />`number`: size in pixels.<br /><br />`` `${number}%` ``: size in percentages.<br /><br />`fill`: takes all the available space. |
24
+ | minInlineSize? | <code>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill" &#124; ConditionalStyle<<wbr>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill", AcceptedConditions<wbr>></code> | Adjust the minimum inline size.<br /><br />`number`: size in pixels.<br /><br />`` `${number}%` ``: size in percentages.<br /><br />`fill`: takes all the available space. |
25
+ | minBlockSize? | <code>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill" &#124; ConditionalStyle<<wbr>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill", AcceptedConditions<wbr>></code> | Adjust the block size.<br /><br />`number`: size in pixels.<br /><br />`` `${number}%` ``: size in percentages.<br /><br />`fill`: takes all the available space. |
26
+ | padding? | <code><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#spacing">Spacing</a><wbr>> &#124; ConditionalStyle<<wbr><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#spacing">Spacing</a><wbr>>, AcceptedConditions<wbr>></code> | Adjust the padding.<br /><br />To shorten the code, it is possible to specify all the padding properties in one property.<br /><br />Examples:<br /><br />- `base` means blockStart, inlineEnd, blockEnd and inlineStart paddings are `base`<br /><br />- [`base`, `none`] means blockStart and blockEnd paddings are `base`, inlineStart and inlineEnd paddings are `none`<br /><br />- [`base`, `none`, `loose`, `tight`] means blockStart padding is `base`, inlineEnd padding is `none`, blockEnd padding is `loose` and blockStart padding is `tight` |
27
+
28
+ <a name="BorderRadius"></a>
29
+
30
+ ### BorderRadius
31
+
32
+ <code>"base" &#124; "tight" &#124; "loose" &#124; "fullyRounded" &#124; "none"</code>
33
+ <a name="BorderWidth"></a>
34
+
35
+ ### BorderWidth
36
+
37
+ <code>"base" &#124; "medium"</code>
38
+ <a name="MaybeShorthandProperty"></a>
39
+
40
+ ### MaybeShorthandProperty
41
+
42
+ <code>T &#124; <a href="#shorthandproperty">ShorthandProperty</a><<wbr>T<wbr>></code>
43
+ <a name="ShorthandProperty"></a>
44
+
45
+ ### ShorthandProperty
46
+
47
+ <code>[T, T] &#124; [T, T, T, T]</code>
48
+ <a name="BorderStyle"></a>
49
+
50
+ ### BorderStyle
51
+
52
+ <code>"base" &#124; "dotted" &#124; "none"</code>
53
+ <a name="NonPresentationalAccessibilityRole"></a>
54
+
55
+ ### NonPresentationalAccessibilityRole
56
+
57
+ | Value | Description |
58
+ | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
59
+ | <code>"main"</code> | Used to indicate the primary content. |
60
+ | <code>"header"</code> | Used to indicate the component is a header. |
61
+ | <code>"footer"</code> | Used to display information such as copyright information, navigation links, and privacy statements. |
62
+ | <code>"section"</code> | Used to indicate a generic section. |
63
+ | <code>"complementary"</code> | Used to designate a supporting section that relates to the main content. |
64
+ | <code>"navigation"</code> | Used to identify major groups of links used for navigating. |
65
+ | <code>"orderedList"</code> | Used to identify a list of ordered items. |
66
+ | <code>"listItem"</code> | Used to identify an item inside a list of items. |
67
+ | <code>"unorderedList"</code> | Used to identify a list of unordered items. |
68
+ | <code>"separator"</code> | Used to indicates the component acts as a divider that separates and distinguishes sections of content. |
69
+ | <code>"status"</code> | Used to define a live region containing advisory information for the user that is not important enough to be an alert. |
70
+ | <code>"alert"</code> | Used for important, and usually time-sensitive, information. |
71
+
72
+ <a name="InlineAlignment"></a>
73
+
74
+ ### InlineAlignment
75
+
76
+ <code>"start" &#124; "center" &#124; "end"</code>
77
+ <a name="BlockAlignment"></a>
78
+
79
+ ### BlockAlignment
80
+
81
+ <code><a href="#alignment">Alignment</a> &#124; "baseline"</code>
82
+ <a name="Alignment"></a>
83
+
84
+ ### Alignment
85
+
86
+ <code>"start" &#124; "center" &#124; "end"</code>
87
+ <a name="Spacing"></a>
88
+
89
+ ### Spacing
90
+
91
+ <code>"none" &#124; "extraTight" &#124; "tight" &#124; "base" &#124; "loose" &#124; "extraLoose"</code>
92
+ <a name="Rows"></a>
93
+
94
+ ### Rows
95
+
96
+ <code><a href="#griditemsize">GridItemSize</a>[] &#124; <a href="#griditemsize">GridItemSize</a></code>
97
+ <a name="GridItemSize"></a>
98
+
99
+ ### GridItemSize
100
+
101
+ <code>"auto" &#124; "fill" &#124; number &#124; &#96;&dollar;{number}fr&#96; &#124; &#96;&dollar;{number}%&#96;</code>
@@ -0,0 +1,16 @@
1
+ import {extend, BlockLayout, View} from '@shopify/checkout-ui-extensions';
2
+
3
+ extend('Checkout::Dynamic::Render', (root) => {
4
+ const blockLayout = root.createComponent(
5
+ BlockLayout,
6
+ {
7
+ rows: [60, 'fill'],
8
+ },
9
+ [
10
+ root.createComponent(View, {border: 'base', padding: 'base'}, '60'),
11
+ root.createComponent(View, {border: 'base', padding: 'base'}, 'fill'),
12
+ ],
13
+ );
14
+
15
+ root.appendChild(blockLayout);
16
+ });
@@ -0,0 +1,25 @@
1
+ import {createRemoteComponent} from '@remote-ui/core';
2
+
3
+ import type {MaybeResponsiveConditionalStyle} from '../../style';
4
+ import type {Spacing} from '../shared';
5
+
6
+ export interface BlockSpacerProps {
7
+ /**
8
+ * Adjust size of the spacer
9
+ *
10
+ * @defaultValue 'base'
11
+ **/
12
+ spacing?: MaybeResponsiveConditionalStyle<Exclude<Spacing, 'none'>>;
13
+ }
14
+
15
+ /**
16
+ * BlockSpacer is used to create empty block space, typically when variable spacing
17
+ * is needed between multiple elements.
18
+ *
19
+ * Note that you should favor BlockStack when spacing between all elements is the same.
20
+ */
21
+ export const BlockSpacer = createRemoteComponent<
22
+ 'BlockSpacer',
23
+ BlockSpacerProps,
24
+ false
25
+ >('BlockSpacer');
@@ -0,0 +1,14 @@
1
+ # BlockSpacer
2
+
3
+ BlockSpacer is used to create empty block space, typically when variable spacing
4
+ is needed between multiple elements.
5
+
6
+ Note that you should favor BlockStack when spacing between all elements is the same.
7
+
8
+ ## Props
9
+
10
+ optional = ?
11
+
12
+ | Name | Type | Description |
13
+ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
14
+ | spacing? | <code>"extraTight" &#124; "tight" &#124; "base" &#124; "loose" &#124; "extraLoose" &#124; ConditionalStyle<<wbr>"extraTight" &#124; "tight" &#124; "base" &#124; "loose" &#124; "extraLoose", AcceptedConditions<wbr>></code> | Adjust size of the spacer<br /><br />Default value: <code>'base'</code> |
@@ -0,0 +1,11 @@
1
+ import {extend, BlockSpacer, View} from '@shopify/checkout-ui-extensions';
2
+
3
+ extend('Checkout::Dynamic::Render', (root) => {
4
+ const blockSpacer = root.createComponent(View, undefined, [
5
+ root.createComponent(View, {border: 'base', padding: 'base'}, 'View'),
6
+ root.createComponent(BlockSpacer, {spacing: 'loose'}),
7
+ root.createComponent(View, {border: 'base', padding: 'base'}, 'View'),
8
+ ]);
9
+
10
+ root.appendChild(blockSpacer);
11
+ });
@@ -0,0 +1,53 @@
1
+ import {createRemoteComponent} from '@remote-ui/core';
2
+
3
+ import type {
4
+ BorderProps,
5
+ InlineAlignment,
6
+ SizingProps,
7
+ Spacing,
8
+ SpacingProps,
9
+ ViewLikeAccessibilityRole,
10
+ } from '../shared';
11
+ import {MaybeResponsiveConditionalStyle} from '../../style';
12
+
13
+ export interface BlockStackProps
14
+ extends BorderProps,
15
+ SizingProps,
16
+ SpacingProps {
17
+ /**
18
+ * Position children along the main axis
19
+ */
20
+ inlineAlignment?: MaybeResponsiveConditionalStyle<InlineAlignment>;
21
+ /**
22
+ * Adjust spacing between children
23
+ *
24
+ * @defaultValue 'base'
25
+ */
26
+ spacing?: MaybeResponsiveConditionalStyle<Spacing>;
27
+ /**
28
+ * Sets the semantic meaning of the component’s content. When set,
29
+ * the role will be used by assistive technologies to help buyers
30
+ * navigate the page.
31
+ *
32
+ *
33
+ * For example:
34
+ *
35
+ * - In an HTML host a `['listItem', 'separator']` tuple will render: <li role='separator'>
36
+ *
37
+ * - In an HTML host a `listItem` string will render: <li>
38
+ */
39
+ accessibilityRole?: ViewLikeAccessibilityRole;
40
+ /**
41
+ * A label that describes the purpose or contents of the element. When set,
42
+ * it will be announced to buyers using assistive technologies and will
43
+ * provide them with more context.
44
+ */
45
+ accessibilityLabel?: string;
46
+ }
47
+
48
+ /**
49
+ * BlockStack is used to vertically stack elements.
50
+ */
51
+ export const BlockStack = createRemoteComponent<'BlockStack', BlockStackProps>(
52
+ 'BlockStack',
53
+ );
@@ -0,0 +1,77 @@
1
+ # BlockStack
2
+
3
+ BlockStack is used to vertically stack elements.
4
+
5
+ ## Props
6
+
7
+ optional = ?
8
+
9
+ | Name | Type | Description |
10
+ | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
+ | inlineAlignment? | <code><a href="#inlinealignment">InlineAlignment</a> &#124; ConditionalStyle<<wbr><a href="#inlinealignment">InlineAlignment</a>, AcceptedConditions<wbr>></code> | Position children along the main axis |
12
+ | spacing? | <code><a href="#spacing">Spacing</a> &#124; ConditionalStyle<<wbr><a href="#spacing">Spacing</a>, AcceptedConditions<wbr>></code> | Adjust spacing between children<br /><br />Default value: <code>'base'</code> |
13
+ | accessibilityRole? | <code><a href="#nonpresentationalaccessibilityrole">NonPresentationalAccessibilityRole</a> &#124; [<a href="#nonpresentationalaccessibilityrole">NonPresentationalAccessibilityRole</a>, <a href="#nonpresentationalaccessibilityrole">NonPresentationalAccessibilityRole</a>]</code> | Sets the semantic meaning of the component’s content. When set, the role will be used by assistive technologies to help buyers navigate the page.<br /><br />For example:<br /><br />- In an HTML host a `['listItem', 'separator']` tuple will render: &lt;li role='separator'&gt;<br /><br />- In an HTML host a `listItem` string will render: &lt;li&gt; |
14
+ | accessibilityLabel? | <code>string</code> | A label that describes the purpose or contents of the element. When set, it will be announced to buyers using assistive technologies and will provide them with more context. |
15
+ | border? | <code><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#borderstyle">BorderStyle</a><wbr>> &#124; ConditionalStyle<<wbr><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#borderstyle">BorderStyle</a><wbr>>, AcceptedConditions<wbr>></code> | Adjust the border style.<br /><br />To shorten the code, it is possible to specify all the border style properties in one property.<br /><br />For example:<br /><br />- `base` means blockStart, inlineEnd, blockEnd and inlineStart border styles are `base`<br /><br />- `['base', 'none']` means blockStart and blockEnd border styles are `base`, inlineStart and inlineEnd border styles are `none`<br /><br />- `['base', 'none', 'dotted', 'base']` means blockStart border style is `base`, inlineEnd border style is `none`, blockEnd border style is `dotted` and blockStart border style is `base` |
16
+ | borderWidth? | <code><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#borderwidth">BorderWidth</a><wbr>> &#124; ConditionalStyle<<wbr><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#borderwidth">BorderWidth</a><wbr>>, AcceptedConditions<wbr>></code> | Adjust the border width.<br /><br />To shorten the code, it is possible to specify all the border width properties in one property.<br /><br />For example:<br /><br />- `base` means blockStart, inlineEnd, blockEnd and inlineStart border widths are `base`<br /><br />- `['base', 'medium']` means blockStart and blockEnd border widths are `base`, inlineStart and inlineEnd border widths are `medium`<br /><br />- `['base', 'medium', 'medium', 'base']` means blockStart border width is `base`, inlineEnd border width is `medium`, blockEnd border width is `medium` and blockStart border width is `base` |
17
+ | borderRadius? | <code><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#borderradius">BorderRadius</a><wbr>> &#124; ConditionalStyle<<wbr><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#borderradius">BorderRadius</a><wbr>>, AcceptedConditions<wbr>></code> | Adjust the border radius.<br /><br />To shorten the code, it is possible to specify all the border width properties in one property.<br /><br />For example:<br /><br />- `base` means blockStart, inlineEnd, blockEnd and inlineStart border radii are `base`<br /><br />- `['base', 'none']` means blockStart and blockEnd border radii are `base`, inlineStart and inlineEnd border radii are `none`<br /><br />- `['base', 'none', 'tight', 'base']` means blockStart border radius is `base`, inlineEnd border radius is `none`, blockEnd border radius is `tight` and blockStart border radius is `base` |
18
+ | maxBlockSize? | <code>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill" &#124; ConditionalStyle<<wbr>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill", AcceptedConditions<wbr>></code> | Adjust the maximum block size.<br /><br />`number`: size in pixels.<br /><br />`` `${number}%` ``: size in percentages.<br /><br />`fill`: takes all the available space. |
19
+ | maxInlineSize? | <code>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill" &#124; ConditionalStyle<<wbr>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill", AcceptedConditions<wbr>></code> | Adjust the maximum inline size.<br /><br />`number`: size in pixels.<br /><br />`` `${number}%` ``: size in percentages.<br /><br />`fill`: takes all the available space. |
20
+ | minInlineSize? | <code>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill" &#124; ConditionalStyle<<wbr>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill", AcceptedConditions<wbr>></code> | Adjust the minimum inline size.<br /><br />`number`: size in pixels.<br /><br />`` `${number}%` ``: size in percentages.<br /><br />`fill`: takes all the available space. |
21
+ | minBlockSize? | <code>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill" &#124; ConditionalStyle<<wbr>number &#124; &#96;&dollar;{number}%&#96; &#124; "fill", AcceptedConditions<wbr>></code> | Adjust the block size.<br /><br />`number`: size in pixels.<br /><br />`` `${number}%` ``: size in percentages.<br /><br />`fill`: takes all the available space. |
22
+ | padding? | <code><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#spacing">Spacing</a><wbr>> &#124; ConditionalStyle<<wbr><a href="#maybeshorthandproperty">MaybeShorthandProperty</a><<wbr><a href="#spacing">Spacing</a><wbr>>, AcceptedConditions<wbr>></code> | Adjust the padding.<br /><br />To shorten the code, it is possible to specify all the padding properties in one property.<br /><br />Examples:<br /><br />- `base` means blockStart, inlineEnd, blockEnd and inlineStart paddings are `base`<br /><br />- [`base`, `none`] means blockStart and blockEnd paddings are `base`, inlineStart and inlineEnd paddings are `none`<br /><br />- [`base`, `none`, `loose`, `tight`] means blockStart padding is `base`, inlineEnd padding is `none`, blockEnd padding is `loose` and blockStart padding is `tight` |
23
+
24
+ <a name="BorderRadius"></a>
25
+
26
+ ### BorderRadius
27
+
28
+ <code>"base" &#124; "tight" &#124; "loose" &#124; "fullyRounded" &#124; "none"</code>
29
+ <a name="BorderWidth"></a>
30
+
31
+ ### BorderWidth
32
+
33
+ <code>"base" &#124; "medium"</code>
34
+ <a name="MaybeShorthandProperty"></a>
35
+
36
+ ### MaybeShorthandProperty
37
+
38
+ <code>T &#124; <a href="#shorthandproperty">ShorthandProperty</a><<wbr>T<wbr>></code>
39
+ <a name="ShorthandProperty"></a>
40
+
41
+ ### ShorthandProperty
42
+
43
+ <code>[T, T] &#124; [T, T, T, T]</code>
44
+ <a name="BorderStyle"></a>
45
+
46
+ ### BorderStyle
47
+
48
+ <code>"base" &#124; "dotted" &#124; "none"</code>
49
+ <a name="NonPresentationalAccessibilityRole"></a>
50
+
51
+ ### NonPresentationalAccessibilityRole
52
+
53
+ | Value | Description |
54
+ | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
55
+ | <code>"main"</code> | Used to indicate the primary content. |
56
+ | <code>"header"</code> | Used to indicate the component is a header. |
57
+ | <code>"footer"</code> | Used to display information such as copyright information, navigation links, and privacy statements. |
58
+ | <code>"section"</code> | Used to indicate a generic section. |
59
+ | <code>"complementary"</code> | Used to designate a supporting section that relates to the main content. |
60
+ | <code>"navigation"</code> | Used to identify major groups of links used for navigating. |
61
+ | <code>"orderedList"</code> | Used to identify a list of ordered items. |
62
+ | <code>"listItem"</code> | Used to identify an item inside a list of items. |
63
+ | <code>"unorderedList"</code> | Used to identify a list of unordered items. |
64
+ | <code>"separator"</code> | Used to indicates the component acts as a divider that separates and distinguishes sections of content. |
65
+ | <code>"status"</code> | Used to define a live region containing advisory information for the user that is not important enough to be an alert. |
66
+ | <code>"alert"</code> | Used for important, and usually time-sensitive, information. |
67
+
68
+ <a name="Spacing"></a>
69
+
70
+ ### Spacing
71
+
72
+ <code>"none" &#124; "extraTight" &#124; "tight" &#124; "base" &#124; "loose" &#124; "extraLoose"</code>
73
+ <a name="InlineAlignment"></a>
74
+
75
+ ### InlineAlignment
76
+
77
+ <code>"start" &#124; "center" &#124; "end"</code>
@@ -0,0 +1,11 @@
1
+ import {extend, BlockStack, View} from '@shopify/checkout-ui-extensions';
2
+
3
+ extend('Checkout::Dynamic::Render', (root) => {
4
+ const blockStack = root.createComponent(BlockStack, undefined, [
5
+ root.createComponent(View, {border: 'base', padding: 'base'}, 'View'),
6
+ root.createComponent(View, {border: 'base', padding: 'base'}, 'View'),
7
+ root.createComponent(View, {border: 'base', padding: 'base'}, 'View'),
8
+ ]);
9
+
10
+ root.appendChild(blockStack);
11
+ });
@@ -0,0 +1,87 @@
1
+ import {createRemoteComponent} from '@remote-ui/core';
2
+
3
+ import type {
4
+ Appearance,
5
+ InlineAlignment,
6
+ ButtonAccessibilityRole,
7
+ OverlayActivatorProps,
8
+ } from '../shared';
9
+
10
+ export interface ButtonProps extends OverlayActivatorProps {
11
+ /**
12
+ * The type of button that will be rendered. The visual presentation of the button type
13
+ * is controlled by merchants through the Branding API.
14
+ *
15
+ *
16
+ * `primary`: button used for main actions. For example: "Continue to next step".
17
+ *
18
+ * `secondary`: button used for secondary actions not blocking user progress. For example: "Download Shop app".
19
+ *
20
+ * `plain`: renders a button that visually looks like a link.
21
+ *
22
+ *
23
+ * @defaultValue 'primary'
24
+ */
25
+ kind?: 'primary' | 'secondary' | 'plain';
26
+ /**
27
+ * Specify the color treatment of the Button.
28
+ */
29
+ appearance?: Extract<Appearance, 'monochrome' | 'critical'>;
30
+ /**
31
+ * Allows the button to submit a form.
32
+ * @deprecated use `accessibilityRole="submit"` instead
33
+ */
34
+ submit?: boolean;
35
+ /**
36
+ * Destination URL to link to. If this value is set, the button will render as a Link.
37
+ */
38
+ to?: string;
39
+ /**
40
+ * Specifies the inline alignment of the content.
41
+ *
42
+ * @defaultValue 'center'
43
+ */
44
+ inlineAlignment?: InlineAlignment;
45
+ /**
46
+ * Replaces content with a loading indicator.
47
+ *
48
+ * @defaultValue false
49
+ */
50
+ loading?: boolean;
51
+ /**
52
+ * Accessible label for the loading indicator when user prefers reduced motion. This value is
53
+ * only used if `loading` is true.
54
+ */
55
+ loadingLabel?: string;
56
+ /**
57
+ * A label used for buyers using assistive technologies. When set, any
58
+ * `children` supplied to this component are hidden from being seen for
59
+ * accessibility purposes to prevent duplicate content from being read.
60
+ */
61
+ accessibilityLabel?: string;
62
+ /**
63
+ * The role of the button that will be rendered.
64
+ *
65
+ * `button`: renders a regular button.
66
+ *
67
+ * `submit`: renders a button that submits a form.
68
+ *
69
+ * @defaultValue 'button'
70
+ */
71
+ accessibilityRole?: ButtonAccessibilityRole;
72
+ /**
73
+ * Disables the button, disallowing any interaction.
74
+ *
75
+ * @defaultValue false
76
+ */
77
+ disabled?: boolean;
78
+ /**
79
+ * Callback that is run when the button is pressed.
80
+ */
81
+ onPress?(): void;
82
+ }
83
+
84
+ /**
85
+ * Buttons are used for actions, such as “Add”, “Continue”, “Pay now”, or “Save”.
86
+ */
87
+ export const Button = createRemoteComponent<'Button', ButtonProps>('Button');