@shopify/ui-extensions 2023.4.2 → 2023.7.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 (251) hide show
  1. package/README.md +1 -1
  2. package/build/cjs/surfaces/admin/components/ResourceItem/ResourceItem.js +14 -0
  3. package/build/cjs/surfaces/admin/components/ResourceList/ResourceList.js +15 -0
  4. package/build/cjs/surfaces/admin/components/Thumbnail/Thumbnail.js +12 -0
  5. package/build/cjs/surfaces/admin.js +6 -0
  6. package/build/cjs/surfaces/checkout/extension.js +7 -28
  7. package/build/cjs/surfaces/checkout.js +0 -1
  8. package/build/esm/surfaces/admin/components/ResourceItem/ResourceItem.mjs +10 -0
  9. package/build/esm/surfaces/admin/components/ResourceList/ResourceList.mjs +11 -0
  10. package/build/esm/surfaces/admin/components/Thumbnail/Thumbnail.mjs +8 -0
  11. package/build/esm/surfaces/admin.mjs +3 -0
  12. package/build/esm/surfaces/checkout/extension.mjs +7 -27
  13. package/build/esm/surfaces/checkout.mjs +1 -1
  14. package/build/esnext/surfaces/admin/components/ResourceItem/ResourceItem.esnext +10 -0
  15. package/build/esnext/surfaces/admin/components/ResourceList/ResourceList.esnext +11 -0
  16. package/build/esnext/surfaces/admin/components/Thumbnail/Thumbnail.esnext +8 -0
  17. package/build/esnext/surfaces/admin.esnext +3 -0
  18. package/build/esnext/surfaces/checkout/extension.esnext +7 -27
  19. package/build/esnext/surfaces/checkout.esnext +1 -1
  20. package/build/ts/api.d.ts +0 -15
  21. package/build/ts/api.d.ts.map +1 -1
  22. package/build/ts/extension.d.ts +0 -3
  23. package/build/ts/extension.d.ts.map +1 -1
  24. package/build/ts/surfaces/admin/api/action/action.d.ts +5 -2
  25. package/build/ts/surfaces/admin/api/action/action.d.ts.map +1 -1
  26. package/build/ts/surfaces/admin/api/block/block.d.ts +10 -0
  27. package/build/ts/surfaces/admin/api/block/block.d.ts.map +1 -0
  28. package/build/ts/surfaces/admin/api/block/block.doc.d.ts +4 -0
  29. package/build/ts/surfaces/admin/api/block/block.doc.d.ts.map +1 -0
  30. package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.d.ts +45 -0
  31. package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.d.ts.map +1 -0
  32. package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.d.ts +46 -0
  33. package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.d.ts.map +1 -0
  34. package/build/ts/surfaces/admin/api/shared.d.ts +9 -0
  35. package/build/ts/surfaces/admin/api/shared.d.ts.map +1 -0
  36. package/build/ts/surfaces/admin/api/standard/standard.d.ts +18 -2
  37. package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -1
  38. package/build/ts/surfaces/admin/api.d.ts +4 -1
  39. package/build/ts/surfaces/admin/api.d.ts.map +1 -1
  40. package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts.map +1 -1
  41. package/build/ts/surfaces/admin/components/Form/Form.d.ts +0 -10
  42. package/build/ts/surfaces/admin/components/Form/Form.d.ts.map +1 -1
  43. package/build/ts/surfaces/admin/components/Form/Form.doc.d.ts.map +1 -1
  44. package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.d.ts.map +1 -1
  45. package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts +17 -0
  46. package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts.map +1 -0
  47. package/build/ts/surfaces/admin/components/ResourceList/ResourceList.d.ts +26 -0
  48. package/build/ts/surfaces/admin/components/ResourceList/ResourceList.d.ts.map +1 -0
  49. package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +1 -1
  50. package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.d.ts +19 -0
  51. package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.d.ts.map +1 -0
  52. package/build/ts/surfaces/admin/components.d.ts +6 -0
  53. package/build/ts/surfaces/admin/components.d.ts.map +1 -1
  54. package/build/ts/surfaces/admin/extension-targets.d.ts +10 -4
  55. package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
  56. package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts +9 -0
  57. package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts.map +1 -0
  58. package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +67 -1
  59. package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -1
  60. package/build/ts/surfaces/checkout/api/{payment-method/render.d.ts → payment/payment-option-item.d.ts} +2 -2
  61. package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts.map +1 -0
  62. package/build/ts/surfaces/checkout/api/pickup/{pickup-points.d.ts → pickup-location-list.d.ts} +3 -3
  63. package/build/ts/surfaces/checkout/api/pickup/pickup-location-list.d.ts.map +1 -0
  64. package/build/ts/surfaces/checkout/api/pickup/{pickup-locations.d.ts → pickup-point-list.d.ts} +3 -3
  65. package/build/ts/surfaces/checkout/api/pickup/pickup-point-list.d.ts.map +1 -0
  66. package/build/ts/surfaces/checkout/api/redeemable/{render.d.ts → redeemable.d.ts} +2 -2
  67. package/build/ts/surfaces/checkout/api/redeemable/redeemable.d.ts.map +1 -0
  68. package/build/ts/surfaces/checkout/api/shared.d.ts +91 -1
  69. package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
  70. package/build/ts/surfaces/checkout/api/shipping/{shipping-method-details.d.ts → shipping-option-item.d.ts} +4 -4
  71. package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts.map +1 -0
  72. package/build/ts/surfaces/checkout/api/standard/standard.d.ts +171 -171
  73. package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
  74. package/build/ts/surfaces/checkout/api.d.ts +9 -9
  75. package/build/ts/surfaces/checkout/api.d.ts.map +1 -1
  76. package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.d.ts +1 -1
  77. package/build/ts/surfaces/checkout/components/TextField/TextField.d.ts +1 -1
  78. package/build/ts/surfaces/checkout/components/shared.d.ts +11 -2
  79. package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -1
  80. package/build/ts/surfaces/checkout/extension.d.ts +7 -28
  81. package/build/ts/surfaces/checkout/extension.d.ts.map +1 -1
  82. package/build/ts/surfaces/checkout/globals.d.ts +2 -2
  83. package/build/ts/surfaces/checkout/globals.d.ts.map +1 -1
  84. package/build/ts/surfaces/checkout/targets.d.ts +411 -0
  85. package/build/ts/surfaces/checkout/targets.d.ts.map +1 -0
  86. package/build/ts/surfaces/checkout.d.ts +1 -1
  87. package/build/ts/surfaces/checkout.d.ts.map +1 -1
  88. package/build/ts/surfaces/customer-account/api/cart-line/cart-line-item.d.ts +9 -0
  89. package/build/ts/surfaces/customer-account/api/cart-line/cart-line-item.d.ts.map +1 -0
  90. package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +1212 -0
  91. package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -0
  92. package/build/ts/surfaces/customer-account/api/shared.d.ts +126 -0
  93. package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -0
  94. package/build/ts/surfaces/customer-account/api.d.ts +4 -0
  95. package/build/ts/surfaces/customer-account/api.d.ts.map +1 -0
  96. package/build/ts/surfaces/customer-account/extension.d.ts +16 -0
  97. package/build/ts/surfaces/customer-account/extension.d.ts.map +1 -0
  98. package/build/ts/surfaces/customer-account/globals.d.ts +11 -0
  99. package/build/ts/surfaces/customer-account/globals.d.ts.map +1 -0
  100. package/build/ts/surfaces/customer-account/targets.d.ts +78 -0
  101. package/build/ts/surfaces/customer-account/targets.d.ts.map +1 -0
  102. package/build/ts/surfaces/customer-account.d.ts +8 -0
  103. package/build/ts/surfaces/customer-account.d.ts.map +1 -0
  104. package/build/ts/utilities/registration.d.ts +5 -5
  105. package/build/ts/utilities/registration.d.ts.map +1 -1
  106. package/build/tsconfig.tsbuildinfo +1 -1
  107. package/package.json +17 -8
  108. package/src/api.ts +0 -18
  109. package/src/extension.ts +0 -4
  110. package/src/surfaces/admin/api/action/action.ts +6 -4
  111. package/src/surfaces/admin/api/block/block.doc.ts +20 -0
  112. package/src/surfaces/admin/api/block/block.ts +11 -0
  113. package/src/surfaces/admin/api/product-configuration/product-details-configuration.ts +49 -0
  114. package/src/surfaces/admin/api/product-configuration/product-variant-details-configuration.ts +50 -0
  115. package/src/surfaces/admin/api/shared.ts +6 -0
  116. package/src/surfaces/admin/api/standard/standard.ts +20 -8
  117. package/src/surfaces/admin/api.ts +4 -1
  118. package/src/surfaces/admin/components/Checkbox/Checkbox.doc.ts +1 -7
  119. package/src/surfaces/admin/components/Form/Form.doc.ts +0 -5
  120. package/src/surfaces/admin/components/Form/Form.ts +0 -12
  121. package/src/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.ts +0 -7
  122. package/src/surfaces/admin/components/ResourceItem/ResourceItem.ts +19 -0
  123. package/src/surfaces/admin/components/ResourceItem/examples/basic-ResourceItem.example.ts +22 -0
  124. package/src/surfaces/admin/components/ResourceList/ResourceList.ts +30 -0
  125. package/src/surfaces/admin/components/ResourceList/examples/basic-ResourceList.example.ts +29 -0
  126. package/src/surfaces/admin/components/Select/Select.doc.ts +1 -7
  127. package/src/surfaces/admin/components/Thumbnail/Thumbnail.ts +31 -0
  128. package/src/surfaces/admin/components/Thumbnail/examples/basic-Thumbnail.example.ts +13 -0
  129. package/src/surfaces/admin/components.ts +6 -0
  130. package/src/surfaces/admin/extension-targets.ts +38 -3
  131. package/src/surfaces/checkout/api/cart-line/cart-line-item.ts +10 -0
  132. package/src/surfaces/checkout/api/checkout/checkout.ts +83 -1
  133. package/src/surfaces/checkout/api/{payment-method/render.ts → payment/payment-option-item.ts} +1 -1
  134. package/src/surfaces/checkout/api/pickup/{pickup-points.ts → pickup-location-list.ts} +2 -2
  135. package/src/surfaces/checkout/api/pickup/{pickup-locations.ts → pickup-point-list.ts} +2 -2
  136. package/src/surfaces/checkout/api/redeemable/{render.ts → redeemable.ts} +1 -1
  137. package/src/surfaces/checkout/api/shared.ts +103 -0
  138. package/src/surfaces/checkout/api/shipping/{shipping-method-details.ts → shipping-option-item.ts} +3 -3
  139. package/src/surfaces/checkout/api/standard/README.md +12 -10
  140. package/src/surfaces/checkout/api/standard/standard.ts +180 -187
  141. package/src/surfaces/checkout/api.ts +18 -10
  142. package/src/surfaces/checkout/components/Banner/examples/basic-banner.example.ts +1 -1
  143. package/src/surfaces/checkout/components/BlockLayout/examples/basic-blockLayout.example.ts +1 -1
  144. package/src/surfaces/checkout/components/BlockLayout/examples/basic-blocklayout.example.ts +1 -1
  145. package/src/surfaces/checkout/components/BlockSpacer/examples/basic-blockspacer.example.ts +1 -1
  146. package/src/surfaces/checkout/components/BlockStack/examples/basic-blockstack.example.ts +1 -1
  147. package/src/surfaces/checkout/components/Button/examples/basic-button.example.ts +1 -1
  148. package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.ts +1 -1
  149. package/src/surfaces/checkout/components/Choice/examples/basic-choice.example.ts +1 -1
  150. package/src/surfaces/checkout/components/ChoiceList/examples/basic-choicelist.example.ts +1 -1
  151. package/src/surfaces/checkout/components/DateField/examples/basic-datefield.example.ts +1 -1
  152. package/src/surfaces/checkout/components/DatePicker/examples/basic-datepicker.example.ts +1 -1
  153. package/src/surfaces/checkout/components/Disclosure/examples/basic-disclosure.example.ts +1 -1
  154. package/src/surfaces/checkout/components/Divider/examples/basic-divider.example.ts +1 -1
  155. package/src/surfaces/checkout/components/Form/examples/basic-form.example.ts +1 -1
  156. package/src/surfaces/checkout/components/Grid/examples/basic-grid.example.ts +1 -1
  157. package/src/surfaces/checkout/components/GridItem/examples/basic-griditem.example.ts +1 -1
  158. package/src/surfaces/checkout/components/Heading/examples/basic-heading.example.ts +1 -1
  159. package/src/surfaces/checkout/components/HeadingGroup/examples/basic-headinggroup.example.ts +1 -1
  160. package/src/surfaces/checkout/components/Icon/examples/basic-icon.example.ts +1 -1
  161. package/src/surfaces/checkout/components/Image/examples/basic-image.example.ts +1 -1
  162. package/src/surfaces/checkout/components/InlineLayout/examples/basic-inlineLayout.example.ts +1 -1
  163. package/src/surfaces/checkout/components/InlineLayout/examples/basic-inlinelayout.example.ts +1 -1
  164. package/src/surfaces/checkout/components/InlineSpacer/examples/basic-inlinespacer.example.ts +1 -1
  165. package/src/surfaces/checkout/components/InlineStack/examples/basic-inlinestack.example.ts +1 -1
  166. package/src/surfaces/checkout/components/Link/examples/basic-link.example.ts +1 -1
  167. package/src/surfaces/checkout/components/List/examples/basic-list.example.ts +1 -1
  168. package/src/surfaces/checkout/components/ListItem/examples/basic-listitem.example.ts +1 -1
  169. package/src/surfaces/checkout/components/Modal/examples/basic-modal.example.ts +1 -1
  170. package/src/surfaces/checkout/components/PhoneField/PhoneField.ts +1 -1
  171. package/src/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.ts +1 -1
  172. package/src/surfaces/checkout/components/Popover/examples/basic-popover.example.ts +1 -1
  173. package/src/surfaces/checkout/components/Pressable/examples/basic-pressable.example.ts +1 -1
  174. package/src/surfaces/checkout/components/ScrollView/examples/basic-scrollview.example.ts +1 -1
  175. package/src/surfaces/checkout/components/Select/examples/basic-select.example.ts +1 -1
  176. package/src/surfaces/checkout/components/SkeletonImage/examples/basic-skeletonimage.example.ts +1 -1
  177. package/src/surfaces/checkout/components/SkeletonText/examples/basic-skeletontext.example.ts +1 -1
  178. package/src/surfaces/checkout/components/SkeletonTextBlock/examples/basic-skeletontextblock.example.ts +1 -1
  179. package/src/surfaces/checkout/components/Spinner/examples/basic-spinner.example.ts +1 -1
  180. package/src/surfaces/checkout/components/Stepper/examples/basic-stepper.example.ts +1 -1
  181. package/src/surfaces/checkout/components/Tag/examples/basic-tag.example.ts +1 -1
  182. package/src/surfaces/checkout/components/Text/examples/basic-text.example.ts +1 -1
  183. package/src/surfaces/checkout/components/TextBlock/examples/basic-textblock.example.ts +1 -1
  184. package/src/surfaces/checkout/components/TextField/TextField.ts +1 -1
  185. package/src/surfaces/checkout/components/TextField/examples/basic-textfield.example.ts +1 -1
  186. package/src/surfaces/checkout/components/Tooltip/examples/basic-tooltip.example.ts +1 -1
  187. package/src/surfaces/checkout/components/View/examples/basic-view.example.ts +1 -1
  188. package/src/surfaces/checkout/components/shared.ts +22 -5
  189. package/src/surfaces/checkout/extension.ts +10 -56
  190. package/src/surfaces/checkout/globals.ts +7 -4
  191. package/src/surfaces/checkout/style/examples/style.example.ts +1 -1
  192. package/src/surfaces/checkout/style/examples/style.example.tsx +8 -2
  193. package/src/surfaces/checkout/targets.ts +701 -0
  194. package/src/surfaces/checkout.ts +1 -1
  195. package/src/surfaces/customer-account/api/cart-line/cart-line-item.ts +10 -0
  196. package/src/surfaces/customer-account/api/order-status/order-status.ts +1414 -0
  197. package/src/surfaces/customer-account/api/shared.ts +953 -0
  198. package/src/surfaces/customer-account/api.ts +66 -0
  199. package/src/surfaces/customer-account/extension.ts +21 -0
  200. package/src/surfaces/customer-account/globals.ts +18 -0
  201. package/src/surfaces/customer-account/targets.ts +116 -0
  202. package/src/surfaces/customer-account.ts +8 -0
  203. package/src/utilities/registration.ts +13 -12
  204. package/build/ts/surfaces/checkout/api/cart-line/cart-line-details.d.ts +0 -9
  205. package/build/ts/surfaces/checkout/api/cart-line/cart-line-details.d.ts.map +0 -1
  206. package/build/ts/surfaces/checkout/api/payment-method/render.d.ts.map +0 -1
  207. package/build/ts/surfaces/checkout/api/pickup/pickup-locations.d.ts.map +0 -1
  208. package/build/ts/surfaces/checkout/api/pickup/pickup-points.d.ts.map +0 -1
  209. package/build/ts/surfaces/checkout/api/redeemable/render.d.ts.map +0 -1
  210. package/build/ts/surfaces/checkout/api/shipping/shipping-method-details.d.ts.map +0 -1
  211. package/build/ts/surfaces/checkout/extension-points.d.ts +0 -220
  212. package/build/ts/surfaces/checkout/extension-points.d.ts.map +0 -1
  213. package/src/surfaces/checkout/api/cart-line/cart-line-details.ts +0 -10
  214. package/src/surfaces/checkout/components/Banner/README.md +0 -14
  215. package/src/surfaces/checkout/components/BlockLayout/README.md +0 -101
  216. package/src/surfaces/checkout/components/BlockSpacer/README.md +0 -14
  217. package/src/surfaces/checkout/components/BlockStack/README.md +0 -77
  218. package/src/surfaces/checkout/components/Button/README.md +0 -22
  219. package/src/surfaces/checkout/components/Checkbox/README.md +0 -18
  220. package/src/surfaces/checkout/components/Choice/README.md +0 -14
  221. package/src/surfaces/checkout/components/ChoiceList/README.md +0 -14
  222. package/src/surfaces/checkout/components/Divider/README.md +0 -13
  223. package/src/surfaces/checkout/components/Form/README.md +0 -21
  224. package/src/surfaces/checkout/components/Grid/README.md +0 -105
  225. package/src/surfaces/checkout/components/GridItem/README.md +0 -72
  226. package/src/surfaces/checkout/components/Heading/README.md +0 -19
  227. package/src/surfaces/checkout/components/HeadingGroup/README.md +0 -7
  228. package/src/surfaces/checkout/components/Icon/README.md +0 -15
  229. package/src/surfaces/checkout/components/Image/README.md +0 -53
  230. package/src/surfaces/checkout/components/InlineLayout/README.md +0 -103
  231. package/src/surfaces/checkout/components/InlineSpacer/README.md +0 -14
  232. package/src/surfaces/checkout/components/InlineStack/README.md +0 -87
  233. package/src/surfaces/checkout/components/Link/README.md +0 -18
  234. package/src/surfaces/checkout/components/List/README.md +0 -19
  235. package/src/surfaces/checkout/components/ListItem/README.md +0 -5
  236. package/src/surfaces/checkout/components/PhoneField/README.md +0 -49
  237. package/src/surfaces/checkout/components/Pressable/README.md +0 -74
  238. package/src/surfaces/checkout/components/ScrollView/README.md +0 -62
  239. package/src/surfaces/checkout/components/Select/README.md +0 -41
  240. package/src/surfaces/checkout/components/SkeletonImage/README.md +0 -13
  241. package/src/surfaces/checkout/components/SkeletonText/README.md +0 -13
  242. package/src/surfaces/checkout/components/SkeletonTextBlock/README.md +0 -13
  243. package/src/surfaces/checkout/components/Spinner/README.md +0 -14
  244. package/src/surfaces/checkout/components/Stepper/README.md +0 -28
  245. package/src/surfaces/checkout/components/Tag/README.md +0 -14
  246. package/src/surfaces/checkout/components/Text/README.md +0 -17
  247. package/src/surfaces/checkout/components/TextBlock/README.md +0 -15
  248. package/src/surfaces/checkout/components/TextField/README.md +0 -49
  249. package/src/surfaces/checkout/components/Tooltip/README.md +0 -8
  250. package/src/surfaces/checkout/components/View/README.md +0 -97
  251. package/src/surfaces/checkout/extension-points.ts +0 -369
@@ -1,101 +0,0 @@
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>
@@ -1,14 +0,0 @@
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> |
@@ -1,77 +0,0 @@
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>
@@ -1,22 +0,0 @@
1
- # Button
2
-
3
- Buttons are used for actions, such as “Add”, “Continue”, “Pay now”, or “Save”.
4
-
5
- ## Props
6
-
7
- optional = ?
8
-
9
- | Name | Type | Description |
10
- | ------------------- | -------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
- | kind? | <code>"primary" &#124; "secondary" &#124; "plain"</code> | The type of button that will be rendered. The visual presentation of the button type is controlled by merchants through the Branding API.<br /><br />`primary`: button used for main actions. For example: &#34;Continue to next step&#34;.<br /><br />`secondary`: button used for secondary actions not blocking user progress. For example: &#34;Download Shop app&#34;.<br /><br />`plain`: renders a button that visually looks like a link.<br /><br />Default value: <code>'primary'</code> |
12
- | appearance? | <code>"critical" &#124; "monochrome"</code> | Specify the color treatment of the Button.<br /><br /><code>"critical"</code>: Use to convey a problem has arisen.<br /><br /><code>"monochrome"</code>: Will take the color of its parent |
13
- | submit? | <code>boolean</code> | Allows the button to submit a form. |
14
- | to? | <code>string</code> | Destination URL to link to. If this value is set, the button will render as a Link. |
15
- | inlineAlignment? | <code>"start" &#124; "center" &#124; "end"</code> | Specifies the inline alignment of the content.<br /><br />Default value: <code>'center'</code> |
16
- | loading? | <code>boolean</code> | Replaces content with a loading indicator.<br /><br />Default value: <code>false</code> |
17
- | loadingLabel? | <code>string</code> | Accessible label for the loading indicator when user prefers reduced motion. This value is only used if `loading` is true. |
18
- | accessibilityLabel? | <code>string</code> | A label used for buyers using assistive technologies. When set, any `children` supplied to this component are hidden from being seen for accessibility purposes to prevent duplicate content from being read. |
19
- | accessibilityRole? | <code>"button" &#124; "submit"</code> | The role of the button that will be rendered.<br /><br />`button`: renders a regular button.<br /><br />`submit`: renders a button that submits a form.<br /><br />Default value: <code>'button'</code> |
20
- | disabled? | <code>boolean</code> | Disables the button, disallowing any interaction.<br /><br />Default value: <code>false</code> |
21
- | onPress? | <code>() => void</code> | Callback that is run when the button is pressed. |
22
- | overlay? | <code>RemoteFragment</code> | An overlay component to render when the user interacts with the component. |
@@ -1,18 +0,0 @@
1
- # Checkbox
2
-
3
- Use checkboxes to give customers a single binary option, such as signing up for marketing, or agreeing to terms and conditions.
4
-
5
- ## Props
6
-
7
- optional = ?
8
-
9
- | Name | Type | Description |
10
- | ------------------- | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
- | id? | <code>string</code> | A unique identifier for the field. When no `id` is set, a globally unique value will be used instead. |
12
- | name? | <code>string</code> | An identifier for the field that is unique within the nearest containing `Form` component. |
13
- | value? | <code>boolean</code> | Whether the checkbox is active. This prop is an alias for `checked`, and can be useful in form libraries that provide a normalized API for dealing with both `boolean` and `string` values. If both `value` and `checked` are set, `checked` takes precedence. |
14
- | checked? | <code>boolean</code> | Whether the checkbox is active. |
15
- | disabled? | <code>boolean</code> | Whether the checkbox can be changed. |
16
- | error? | <code>string</code> | Indicate an error to the user. The field will be given a specific stylistic treatment to communicate problems that have to be resolved immediately. |
17
- | accessibilityLabel? | <code>string</code> | A label to use for the field that will be used for buyers using assistive technologies. When set, any `children` supplied to this component are hidden from being seen for accessibility purposes to prevent duplicate content from being read. |
18
- | onChange? | <code>(value: boolean) => void</code> | A callback that is run whenever the checkbox is changed. This callback is called with a boolean indicating whether the checkbox should now be active or inactive. This component is [controlled](https://reactjs.org/docs/forms.html#controlled-components), so you must store this value in state and reflect it back in the `checked` or `value` props. |
@@ -1,14 +0,0 @@
1
- # Choice
2
-
3
- Options inside a `ChoiceList`.
4
- The wrapping `ChoiceList` component will dictate if the choice renders as radio buttons or checkboxes.
5
-
6
- ## Props
7
-
8
- optional = ?
9
-
10
- | Name | Type | Description |
11
- | ------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
12
- | id | <code>string</code> | A unique identifier for the choice. |
13
- | disabled? | <code>boolean</code> | Whether the choice can be changed. |
14
- | accessibilityLabel? | <code>string</code> | A label to use for the choice that will be used for buyers using assistive technologies. When set, any `children` supplied to this component are hidden from being seen for accessibility purposes to prevent duplicate content from being read. |
@@ -1,14 +0,0 @@
1
- # ChoiceList
2
-
3
- Use choice lists to present a list of choices where buyers can make
4
- a single selection or multiple selections.
5
-
6
- ## Props
7
-
8
- optional = ?
9
-
10
- | Name | Type | Description |
11
- | -------- | ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
12
- | name | <code>string</code> | An identifier for the field that is unique within the nearest containing `Form` component. |
13
- | value | <code>string &#124; string[]</code> | A `string` or `string[]` indicating the ids of selected choices. When a string is set, choices render as radios. When a string array is set, choices render as checkboxes. |
14
- | onChange | <code>(value: string &#124; string[]) => void</code> | A callback that is run whenever the choice list is changed. This callback is called with a string or array of strings indicating the ids of choices that should now be selected. This component is [controlled](https://reactjs.org/docs/forms.html#controlled-components), so you must store this value in state and reflect it back in the `value` prop. |
@@ -1,13 +0,0 @@
1
- # Divider
2
-
3
- A divider separates content and represents a thematic break between elements.
4
-
5
- ## Props
6
-
7
- optional = ?
8
-
9
- | Name | Type | Description |
10
- | ---------- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
11
- | size? | <code>"small" &#124; "base" &#124; "large" &#124; "extraLarge"</code> | Use to create dividers with varying widths.<br /><br />Default value: <code>'small'</code> |
12
- | direction? | <code>"inline" &#124; "block"</code> | Use to specify direction of divider.<br /><br />Default value: <code>'inline'</code> |
13
- | alignment? | <code>"start" &#124; "center" &#124; "end"</code> | Use to specify alignment of contents of divider.<br /><br />Default value: <code>'center'</code> |
@@ -1,21 +0,0 @@
1
- # Form
2
-
3
- The form component should be used to wrap one or more form controls. This
4
- component provides an &#34;implicit submit&#34; behavior, where customers can submit
5
- the form from any input by pressing &#34;Enter&#34; on their keyboards. This
6
- behavior is widely expected, and should be respected as often as possible.
7
-
8
- Unlike an HTML `form` element, this component does not support configuring
9
- the descendant fields to be submitted via HTTP automatically. Instead, you
10
- must provide an `onSubmit` callback that will perform the necessary HTTP
11
- requests in JavaScript.
12
-
13
- ## Props
14
-
15
- optional = ?
16
-
17
- | Name | Type | Description |
18
- | --------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------- |
19
- | disabled? | <code>boolean</code> | Whether the form is able to be submitted. When set to `true`, this will disable the implicit submit behavior of the form. |
20
- | onSubmit | <code>() => void</code> | A callback that is run when the form is submitted. |
21
- | id? | <code>string</code> | An optional override for the autogenerated form ID. |
@@ -1,105 +0,0 @@
1
- # Grid
2
-
3
- Grid is used to lay out content in a matrix of rows and columns.
4
-
5
- ## Props
6
-
7
- optional = ?
8
-
9
- | Name | Type | Description |
10
- | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
- | columns? | <code><a href="#columns">Columns</a> &#124; ConditionalStyle<<wbr><a href="#columns">Columns</a>, AcceptedConditions<wbr>></code> | Sizes for each column of the layout.<br /><br />`auto`: intrinsic size of the content.<br /><br />`fill`: fills the remaining available space. When multiple columns 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. - Except when in scrollview, where the grid will fill the space with the defined sizes.<br /><br />- When only one size is set and outside of an array, the grid will have one column of that size.<br /><br />Default value: <code>'fill'</code> |
12
- | 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 content.<br /><br />`fill`: fills the remaining available space. When multiple rows 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 only one size is set and outside of an array, the grid will have one row of that size.<br /><br />Default value: <code>'fill'</code> |
13
- | 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> |
14
- | blockAlignment? | <code><a href="#blockalignment">BlockAlignment</a> &#124; ConditionalStyle<<wbr><a href="#blockalignment">BlockAlignment</a>, AcceptedConditions<wbr>></code> | Position children along the cross axis. |
15
- | inlineAlignment? | <code><a href="#inlinealignment">InlineAlignment</a> &#124; ConditionalStyle<<wbr><a href="#inlinealignment">InlineAlignment</a>, AcceptedConditions<wbr>></code> | Position children along the main axis. |
16
- | 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; |
17
- | 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. |
18
- | 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` |
19
- | 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` |
20
- | 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` |
21
- | 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. |
22
- | 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. |
23
- | 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. |
24
- | 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. |
25
- | 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` |
26
-
27
- <a name="BorderRadius"></a>
28
-
29
- ### BorderRadius
30
-
31
- <code>"base" &#124; "tight" &#124; "loose" &#124; "fullyRounded" &#124; "none"</code>
32
- <a name="BorderWidth"></a>
33
-
34
- ### BorderWidth
35
-
36
- <code>"base" &#124; "medium"</code>
37
- <a name="MaybeShorthandProperty"></a>
38
-
39
- ### MaybeShorthandProperty
40
-
41
- <code>T &#124; <a href="#shorthandproperty">ShorthandProperty</a><<wbr>T<wbr>></code>
42
- <a name="ShorthandProperty"></a>
43
-
44
- ### ShorthandProperty
45
-
46
- <code>[T, T] &#124; [T, T, T, T]</code>
47
- <a name="BorderStyle"></a>
48
-
49
- ### BorderStyle
50
-
51
- <code>"base" &#124; "dotted" &#124; "none"</code>
52
- <a name="NonPresentationalAccessibilityRole"></a>
53
-
54
- ### NonPresentationalAccessibilityRole
55
-
56
- | Value | Description |
57
- | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
58
- | <code>"main"</code> | Used to indicate the primary content. |
59
- | <code>"header"</code> | Used to indicate the component is a header. |
60
- | <code>"footer"</code> | Used to display information such as copyright information, navigation links, and privacy statements. |
61
- | <code>"section"</code> | Used to indicate a generic section. |
62
- | <code>"complementary"</code> | Used to designate a supporting section that relates to the main content. |
63
- | <code>"navigation"</code> | Used to identify major groups of links used for navigating. |
64
- | <code>"orderedList"</code> | Used to identify a list of ordered items. |
65
- | <code>"listItem"</code> | Used to identify an item inside a list of items. |
66
- | <code>"unorderedList"</code> | Used to identify a list of unordered items. |
67
- | <code>"separator"</code> | Used to indicates the component acts as a divider that separates and distinguishes sections of content. |
68
- | <code>"status"</code> | Used to define a live region containing advisory information for the user that is not important enough to be an alert. |
69
- | <code>"alert"</code> | Used for important, and usually time-sensitive, information. |
70
-
71
- <a name="InlineAlignment"></a>
72
-
73
- ### InlineAlignment
74
-
75
- <code>"start" &#124; "center" &#124; "end"</code>
76
- <a name="BlockAlignment"></a>
77
-
78
- ### BlockAlignment
79
-
80
- <code><a href="#alignment">Alignment</a> &#124; "baseline"</code>
81
- <a name="Alignment"></a>
82
-
83
- ### Alignment
84
-
85
- <code>"start" &#124; "center" &#124; "end"</code>
86
- <a name="Spacing"></a>
87
-
88
- ### Spacing
89
-
90
- <code>"none" &#124; "extraTight" &#124; "tight" &#124; "base" &#124; "loose" &#124; "extraLoose"</code>
91
- <a name="Rows"></a>
92
-
93
- ### Rows
94
-
95
- <code><a href="#griditemsize">GridItemSize</a>[] &#124; <a href="#griditemsize">GridItemSize</a></code>
96
- <a name="Columns"></a>
97
-
98
- ### Columns
99
-
100
- <code><a href="#griditemsize">GridItemSize</a>[] &#124; <a href="#griditemsize">GridItemSize</a></code>
101
- <a name="GridItemSize"></a>
102
-
103
- ### GridItemSize
104
-
105
- <code>"auto" &#124; "fill" &#124; number &#124; &#96;&dollar;{number}fr&#96; &#124; &#96;&dollar;{number}%&#96;</code>