@shopify/ui-extensions 2024.4.2 → 2024.10.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 (596) hide show
  1. package/build/cjs/surfaces/admin/components/AdminPrintAction/AdminPrintAction.js +12 -0
  2. package/build/cjs/surfaces/admin/components/DatePicker/DatePicker.js +12 -0
  3. package/build/cjs/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.js +5 -0
  4. package/build/cjs/surfaces/admin/components/MoneyField/MoneyField.js +6 -0
  5. package/build/cjs/surfaces/admin.js +2 -8
  6. package/build/cjs/surfaces/checkout/components/Chat/Chat.js +12 -0
  7. package/build/cjs/surfaces/checkout/components/DatePicker/DatePicker.js +4 -10
  8. package/build/cjs/surfaces/checkout/components/PaymentIcon/PaymentIcon.js +1 -0
  9. package/build/cjs/surfaces/{point-of-sale/components/Actiontem/ActionItem.js → checkout/components/Progress/Progress.js} +2 -2
  10. package/build/cjs/surfaces/checkout/components/QRCode/QRCode.js +9 -0
  11. package/build/cjs/surfaces/checkout/components/Switch/Switch.js +9 -0
  12. package/build/cjs/surfaces/checkout.js +8 -0
  13. package/build/cjs/surfaces/customer-account/components/Avatar/Avatar.js +9 -0
  14. package/build/cjs/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.js +9 -0
  15. package/build/cjs/surfaces/customer-account/components/DropZone/DropZone.js +9 -0
  16. package/build/cjs/surfaces/customer-account/components/ImageGroup/ImageGroup.js +9 -0
  17. package/build/cjs/surfaces/{admin/components/Card/Card.js → customer-account/components/Menu/Menu.js} +2 -2
  18. package/build/cjs/surfaces/customer-account/components/Page/Page.js +9 -0
  19. package/build/cjs/surfaces/customer-account/components/PolicyModal/PolicyModal.js +12 -0
  20. package/build/cjs/surfaces/customer-account/components/ResourceItem/ResourceItem.js +9 -0
  21. package/build/cjs/surfaces/customer-account.js +24 -0
  22. package/build/cjs/surfaces/point-of-sale/components/ActionItem/ActionItem.js +16 -0
  23. package/build/cjs/surfaces/point-of-sale/components/Badge/Badge.js +6 -0
  24. package/build/cjs/surfaces/point-of-sale/components/Banner/Banner.js +9 -0
  25. package/build/cjs/surfaces/point-of-sale/components/Button/Button.js +8 -0
  26. package/build/cjs/surfaces/point-of-sale/components/CameraScanner/CameraScanner.js +6 -0
  27. package/build/cjs/surfaces/point-of-sale/components/DatePicker/DatePicker.js +8 -0
  28. package/build/cjs/surfaces/point-of-sale/components/Dialog/Dialog.js +12 -0
  29. package/build/cjs/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.js +10 -0
  30. package/build/cjs/surfaces/point-of-sale/components/Navigator/Navigator.js +1 -1
  31. package/build/cjs/surfaces/point-of-sale/components/NumberField/NumberField.js +6 -0
  32. package/build/cjs/surfaces/point-of-sale/components/POSBlock/POSBlock.js +15 -0
  33. package/build/cjs/surfaces/point-of-sale/components/POSBlock/POSBlockRow.js +13 -0
  34. package/build/cjs/surfaces/point-of-sale/components/PinPad/PinPad.js +24 -0
  35. package/build/cjs/surfaces/point-of-sale/components/Screen/Screen.js +18 -0
  36. package/build/cjs/surfaces/point-of-sale/components/Section/Section.js +10 -0
  37. package/build/cjs/surfaces/point-of-sale/components/TextArea/TextArea.js +6 -0
  38. package/build/cjs/surfaces/point-of-sale/components/TextField/TextField.js +6 -0
  39. package/build/cjs/surfaces/point-of-sale/components/Tile/Tile.js +9 -0
  40. package/build/cjs/surfaces/point-of-sale/components/TimePicker/TimePicker.js +9 -0
  41. package/build/cjs/surfaces/point-of-sale.js +5 -1
  42. package/build/esm/surfaces/admin/components/AdminPrintAction/AdminPrintAction.mjs +8 -0
  43. package/build/esm/surfaces/admin/components/DatePicker/DatePicker.mjs +12 -0
  44. package/build/esm/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.mjs +5 -0
  45. package/build/esm/surfaces/admin/components/MoneyField/MoneyField.mjs +6 -0
  46. package/build/esm/surfaces/admin.mjs +1 -4
  47. package/build/esm/surfaces/checkout/components/Chat/Chat.mjs +8 -0
  48. package/build/esm/surfaces/checkout/components/DatePicker/DatePicker.mjs +5 -11
  49. package/build/esm/surfaces/checkout/components/PaymentIcon/PaymentIcon.mjs +1 -0
  50. package/build/esm/surfaces/checkout/components/Progress/Progress.mjs +5 -0
  51. package/build/esm/surfaces/checkout/components/QRCode/QRCode.mjs +5 -0
  52. package/build/esm/surfaces/checkout/components/Switch/Switch.mjs +5 -0
  53. package/build/esm/surfaces/checkout.mjs +4 -0
  54. package/build/esm/surfaces/customer-account/components/Avatar/Avatar.mjs +5 -0
  55. package/build/esm/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.mjs +5 -0
  56. package/build/esm/surfaces/customer-account/components/DropZone/DropZone.mjs +5 -0
  57. package/build/esm/surfaces/customer-account/components/ImageGroup/ImageGroup.mjs +5 -0
  58. package/build/esm/surfaces/customer-account/components/Menu/Menu.mjs +5 -0
  59. package/build/esm/surfaces/customer-account/components/Page/Page.mjs +5 -0
  60. package/build/esm/surfaces/customer-account/components/PolicyModal/PolicyModal.mjs +8 -0
  61. package/build/esm/surfaces/customer-account/components/ResourceItem/ResourceItem.mjs +5 -0
  62. package/build/esm/surfaces/customer-account.mjs +12 -0
  63. package/build/esm/surfaces/point-of-sale/components/ActionItem/ActionItem.mjs +12 -0
  64. package/build/esm/surfaces/point-of-sale/components/Badge/Badge.mjs +6 -0
  65. package/build/esm/surfaces/point-of-sale/components/Banner/Banner.mjs +9 -0
  66. package/build/esm/surfaces/point-of-sale/components/Button/Button.mjs +8 -0
  67. package/build/esm/surfaces/point-of-sale/components/CameraScanner/CameraScanner.mjs +6 -0
  68. package/build/esm/surfaces/point-of-sale/components/DatePicker/DatePicker.mjs +8 -0
  69. package/build/esm/surfaces/point-of-sale/components/Dialog/Dialog.mjs +12 -0
  70. package/build/esm/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.mjs +10 -0
  71. package/build/esm/surfaces/point-of-sale/components/Navigator/Navigator.mjs +1 -1
  72. package/build/esm/surfaces/point-of-sale/components/NumberField/NumberField.mjs +6 -0
  73. package/build/esm/surfaces/point-of-sale/components/POSBlock/POSBlock.mjs +11 -0
  74. package/build/esm/surfaces/point-of-sale/components/POSBlock/POSBlockRow.mjs +9 -0
  75. package/build/esm/surfaces/point-of-sale/components/PinPad/PinPad.mjs +24 -0
  76. package/build/esm/surfaces/point-of-sale/components/Screen/Screen.mjs +18 -0
  77. package/build/esm/surfaces/point-of-sale/components/Section/Section.mjs +10 -0
  78. package/build/esm/surfaces/point-of-sale/components/TextArea/TextArea.mjs +6 -0
  79. package/build/esm/surfaces/point-of-sale/components/TextField/TextField.mjs +6 -0
  80. package/build/esm/surfaces/point-of-sale/components/Tile/Tile.mjs +9 -0
  81. package/build/esm/surfaces/point-of-sale/components/TimePicker/TimePicker.mjs +9 -0
  82. package/build/esm/surfaces/point-of-sale.mjs +3 -1
  83. package/build/esnext/surfaces/admin/components/AdminPrintAction/AdminPrintAction.esnext +8 -0
  84. package/build/esnext/surfaces/admin/components/DatePicker/DatePicker.esnext +12 -0
  85. package/build/esnext/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.esnext +5 -0
  86. package/build/esnext/surfaces/admin/components/MoneyField/MoneyField.esnext +6 -0
  87. package/build/esnext/surfaces/admin.esnext +1 -4
  88. package/build/esnext/surfaces/checkout/components/Chat/Chat.esnext +8 -0
  89. package/build/esnext/surfaces/checkout/components/DatePicker/DatePicker.esnext +5 -11
  90. package/build/esnext/surfaces/checkout/components/PaymentIcon/PaymentIcon.esnext +1 -0
  91. package/build/esnext/surfaces/checkout/components/Progress/Progress.esnext +5 -0
  92. package/build/esnext/surfaces/checkout/components/QRCode/QRCode.esnext +5 -0
  93. package/build/esnext/surfaces/checkout/components/Switch/Switch.esnext +5 -0
  94. package/build/esnext/surfaces/checkout.esnext +4 -0
  95. package/build/esnext/surfaces/customer-account/components/Avatar/Avatar.esnext +5 -0
  96. package/build/esnext/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.esnext +5 -0
  97. package/build/esnext/surfaces/customer-account/components/DropZone/DropZone.esnext +5 -0
  98. package/build/esnext/surfaces/customer-account/components/ImageGroup/ImageGroup.esnext +5 -0
  99. package/build/esnext/surfaces/customer-account/components/Menu/Menu.esnext +5 -0
  100. package/build/esnext/surfaces/customer-account/components/Page/Page.esnext +5 -0
  101. package/build/esnext/surfaces/customer-account/components/PolicyModal/PolicyModal.esnext +8 -0
  102. package/build/esnext/surfaces/customer-account/components/ResourceItem/ResourceItem.esnext +5 -0
  103. package/build/esnext/surfaces/customer-account.esnext +12 -0
  104. package/build/esnext/surfaces/point-of-sale/components/ActionItem/ActionItem.esnext +12 -0
  105. package/build/esnext/surfaces/point-of-sale/components/Badge/Badge.esnext +6 -0
  106. package/build/esnext/surfaces/point-of-sale/components/Banner/Banner.esnext +9 -0
  107. package/build/esnext/surfaces/point-of-sale/components/Button/Button.esnext +8 -0
  108. package/build/esnext/surfaces/point-of-sale/components/CameraScanner/CameraScanner.esnext +6 -0
  109. package/build/esnext/surfaces/point-of-sale/components/DatePicker/DatePicker.esnext +8 -0
  110. package/build/esnext/surfaces/point-of-sale/components/Dialog/Dialog.esnext +12 -0
  111. package/build/esnext/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.esnext +10 -0
  112. package/build/esnext/surfaces/point-of-sale/components/Navigator/Navigator.esnext +1 -1
  113. package/build/esnext/surfaces/point-of-sale/components/NumberField/NumberField.esnext +6 -0
  114. package/build/esnext/surfaces/point-of-sale/components/POSBlock/POSBlock.esnext +11 -0
  115. package/build/esnext/surfaces/point-of-sale/components/POSBlock/POSBlockRow.esnext +9 -0
  116. package/build/esnext/surfaces/point-of-sale/components/PinPad/PinPad.esnext +24 -0
  117. package/build/esnext/surfaces/point-of-sale/components/Screen/Screen.esnext +18 -0
  118. package/build/esnext/surfaces/point-of-sale/components/Section/Section.esnext +10 -0
  119. package/build/esnext/surfaces/point-of-sale/components/TextArea/TextArea.esnext +6 -0
  120. package/build/esnext/surfaces/point-of-sale/components/TextField/TextField.esnext +6 -0
  121. package/build/esnext/surfaces/point-of-sale/components/Tile/Tile.esnext +9 -0
  122. package/build/esnext/surfaces/point-of-sale/components/TimePicker/TimePicker.esnext +9 -0
  123. package/build/esnext/surfaces/point-of-sale.esnext +3 -1
  124. package/build/ts/shared.d.ts +18 -2
  125. package/build/ts/shared.d.ts.map +1 -1
  126. package/build/ts/surfaces/admin/api/block/block.d.ts +5 -0
  127. package/build/ts/surfaces/admin/api/block/block.d.ts.map +1 -1
  128. package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts +1 -1
  129. package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts.map +1 -1
  130. package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts +1 -1
  131. package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts.map +1 -1
  132. package/build/ts/surfaces/admin/api/print-action/print-action.d.ts +10 -0
  133. package/build/ts/surfaces/admin/api/print-action/print-action.d.ts.map +1 -0
  134. package/build/ts/surfaces/admin/{components/Card/Card.doc-skip.d.ts → api/print-action/print-action.doc.d.ts} +1 -1
  135. package/build/ts/surfaces/admin/api/print-action/print-action.doc.d.ts.map +1 -0
  136. package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts +221 -0
  137. package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts.map +1 -0
  138. package/build/ts/surfaces/admin/api/standard/standard.d.ts +11 -0
  139. package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -1
  140. package/build/ts/surfaces/admin/api.d.ts +1 -0
  141. package/build/ts/surfaces/admin/api.d.ts.map +1 -1
  142. package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.d.ts +17 -0
  143. package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.d.ts.map +1 -0
  144. package/build/ts/surfaces/admin/{api/extension-targets/extension-targets.doc.d.ts → components/AdminPrintAction/AdminPrintAction.doc.d.ts} +1 -1
  145. package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.doc.d.ts.map +1 -0
  146. package/build/ts/surfaces/admin/components/Box/Box.d.ts +2 -1
  147. package/build/ts/surfaces/admin/components/Box/Box.d.ts.map +1 -1
  148. package/build/ts/surfaces/admin/components/Button/Button.d.ts +7 -0
  149. package/build/ts/surfaces/admin/components/Button/Button.d.ts.map +1 -1
  150. package/build/ts/surfaces/admin/components/Image/Image.d.ts +2 -2
  151. package/build/ts/surfaces/admin/components/MoneyField/MoneyField.d.ts +7 -0
  152. package/build/ts/surfaces/admin/components/MoneyField/MoneyField.d.ts.map +1 -1
  153. package/build/ts/surfaces/admin/components/NumberField/NumberField.d.ts +2 -2
  154. package/build/ts/surfaces/admin/components/NumberField/NumberField.d.ts.map +1 -1
  155. package/build/ts/surfaces/admin/components/TextField/TextField.d.ts +2 -2
  156. package/build/ts/surfaces/admin/components/TextField/TextField.d.ts.map +1 -1
  157. package/build/ts/surfaces/admin/components/shared/display.d.ts +8 -0
  158. package/build/ts/surfaces/admin/components/shared/display.d.ts.map +1 -0
  159. package/build/ts/surfaces/admin/components/shared/index.d.ts +15 -0
  160. package/build/ts/surfaces/admin/components/shared/index.d.ts.map +1 -1
  161. package/build/ts/surfaces/admin/components.d.ts +2 -8
  162. package/build/ts/surfaces/admin/components.d.ts.map +1 -1
  163. package/build/ts/surfaces/admin/extension-targets.d.ts +103 -7
  164. package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
  165. package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts +20 -3
  166. package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts.map +1 -1
  167. package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts +2 -0
  168. package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts.map +1 -1
  169. package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +10 -6
  170. package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -1
  171. package/build/ts/surfaces/checkout/api/docs.d.ts +4 -0
  172. package/build/ts/surfaces/checkout/api/docs.d.ts.map +1 -1
  173. package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts +5 -0
  174. package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts.map +1 -1
  175. package/build/ts/surfaces/checkout/api/shared.d.ts +6 -0
  176. package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
  177. package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts +13 -0
  178. package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts.map +1 -1
  179. package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts +49 -3
  180. package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts.map +1 -1
  181. package/build/ts/surfaces/checkout/api/standard/standard.d.ts +126 -45
  182. package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
  183. package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.doc.d.ts.map +1 -1
  184. package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts +14 -6
  185. package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts.map +1 -1
  186. package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.doc.d.ts.map +1 -1
  187. package/build/ts/surfaces/checkout/components/Chat/Chat.d.ts +78 -0
  188. package/build/ts/surfaces/checkout/components/Chat/Chat.d.ts.map +1 -0
  189. package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts +15 -6
  190. package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts.map +1 -1
  191. package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts.map +1 -1
  192. package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts +15 -6
  193. package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts.map +1 -1
  194. package/build/ts/surfaces/checkout/components/GridItem/GridItem.doc.d.ts.map +1 -1
  195. package/build/ts/surfaces/checkout/components/Heading/Heading.d.ts +1 -1
  196. package/build/ts/surfaces/checkout/components/Heading/Heading.d.ts.map +1 -1
  197. package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts +2 -2
  198. package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts.map +1 -1
  199. package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.doc.d.ts.map +1 -1
  200. package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts +15 -6
  201. package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts.map +1 -1
  202. package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.doc.d.ts.map +1 -1
  203. package/build/ts/surfaces/checkout/components/Link/Link.d.ts +1 -1
  204. package/build/ts/surfaces/checkout/components/Modal/Modal.d.ts +19 -0
  205. package/build/ts/surfaces/checkout/components/Modal/Modal.d.ts.map +1 -1
  206. package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +1 -1
  207. package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.d.ts +1 -1
  208. package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.d.ts.map +1 -1
  209. package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts.map +1 -1
  210. package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts +12 -11
  211. package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts.map +1 -1
  212. package/build/ts/surfaces/checkout/components/Pressable/Pressable.doc.d.ts.map +1 -1
  213. package/build/ts/surfaces/checkout/components/Progress/Progress.d.ts +40 -0
  214. package/build/ts/surfaces/checkout/components/Progress/Progress.d.ts.map +1 -0
  215. package/build/ts/surfaces/checkout/components/Progress/Progress.doc.d.ts +4 -0
  216. package/build/ts/surfaces/checkout/components/Progress/Progress.doc.d.ts.map +1 -0
  217. package/build/ts/surfaces/checkout/components/QRCode/QRCode.d.ts +50 -0
  218. package/build/ts/surfaces/checkout/components/QRCode/QRCode.d.ts.map +1 -0
  219. package/build/ts/surfaces/checkout/components/QRCode/QRCode.doc.d.ts +4 -0
  220. package/build/ts/surfaces/checkout/components/QRCode/QRCode.doc.d.ts.map +1 -0
  221. package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts +38 -5
  222. package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts.map +1 -1
  223. package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.doc.d.ts.map +1 -1
  224. package/build/ts/surfaces/checkout/components/Select/Select.d.ts +13 -1
  225. package/build/ts/surfaces/checkout/components/Select/Select.d.ts.map +1 -1
  226. package/build/ts/surfaces/checkout/components/Sheet/Sheet.doc.d.ts.map +1 -1
  227. package/build/ts/surfaces/checkout/components/Spinner/Spinner.doc.d.ts.map +1 -1
  228. package/build/ts/surfaces/checkout/components/Switch/Switch.d.ts +49 -0
  229. package/build/ts/surfaces/checkout/components/Switch/Switch.d.ts.map +1 -0
  230. package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts +4 -0
  231. package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts.map +1 -0
  232. package/build/ts/surfaces/checkout/components/View/View.d.ts +61 -41
  233. package/build/ts/surfaces/checkout/components/View/View.d.ts.map +1 -1
  234. package/build/ts/surfaces/checkout/components/View/View.doc.d.ts.map +1 -1
  235. package/build/ts/surfaces/checkout/components/shared.d.ts +1 -1
  236. package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -1
  237. package/build/ts/surfaces/checkout/components.d.ts +9 -1
  238. package/build/ts/surfaces/checkout/components.d.ts.map +1 -1
  239. package/build/ts/surfaces/checkout/helper.docs.d.ts.map +1 -1
  240. package/build/ts/surfaces/checkout/shared.d.ts +2 -0
  241. package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
  242. package/build/ts/surfaces/checkout/style/style.doc.d.ts.map +1 -1
  243. package/build/ts/surfaces/checkout/style/types.d.ts +10 -3
  244. package/build/ts/surfaces/checkout/style/types.d.ts.map +1 -1
  245. package/build/ts/surfaces/checkout/targets.d.ts +17 -13
  246. package/build/ts/surfaces/checkout/targets.d.ts.map +1 -1
  247. package/build/ts/surfaces/checkout.d.ts +5 -4
  248. package/build/ts/surfaces/checkout.d.ts.map +1 -1
  249. package/build/ts/surfaces/customer-account/api/docs.d.ts +84 -0
  250. package/build/ts/surfaces/customer-account/api/docs.d.ts.map +1 -0
  251. package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +36 -260
  252. package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
  253. package/build/ts/surfaces/customer-account/api/shared.d.ts +260 -2
  254. package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
  255. package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts +195 -0
  256. package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts.map +1 -0
  257. package/build/ts/surfaces/customer-account/api.d.ts +3 -2
  258. package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
  259. package/build/ts/surfaces/customer-account/components/Avatar/Avatar.d.ts +43 -0
  260. package/build/ts/surfaces/customer-account/components/Avatar/Avatar.d.ts.map +1 -0
  261. package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts +4 -0
  262. package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -0
  263. package/build/ts/surfaces/customer-account/components/Avatar/index.d.ts +2 -0
  264. package/build/ts/surfaces/customer-account/components/Avatar/index.d.ts.map +1 -0
  265. package/build/ts/surfaces/customer-account/components/Card/Card.doc.d.ts +4 -0
  266. package/build/ts/surfaces/customer-account/components/Card/Card.doc.d.ts.map +1 -0
  267. package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.d.ts +21 -0
  268. package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.d.ts.map +1 -0
  269. package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.d.ts +4 -0
  270. package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.d.ts.map +1 -0
  271. package/build/ts/surfaces/customer-account/components/CustomerAccountAction/index.d.ts +3 -0
  272. package/build/ts/surfaces/customer-account/components/CustomerAccountAction/index.d.ts.map +1 -0
  273. package/build/ts/surfaces/customer-account/components/DropZone/DropZone.d.ts +67 -0
  274. package/build/ts/surfaces/customer-account/components/DropZone/DropZone.d.ts.map +1 -0
  275. package/build/ts/surfaces/customer-account/components/DropZone/DropZone.doc.d.ts +4 -0
  276. package/build/ts/surfaces/customer-account/components/DropZone/DropZone.doc.d.ts.map +1 -0
  277. package/build/ts/surfaces/customer-account/components/DropZone/index.d.ts +3 -0
  278. package/build/ts/surfaces/customer-account/components/DropZone/index.d.ts.map +1 -0
  279. package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.d.ts +32 -0
  280. package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.d.ts.map +1 -0
  281. package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts +4 -0
  282. package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts.map +1 -0
  283. package/build/ts/surfaces/customer-account/components/ImageGroup/index.d.ts +3 -0
  284. package/build/ts/surfaces/customer-account/components/ImageGroup/index.d.ts.map +1 -0
  285. package/build/ts/surfaces/customer-account/components/Menu/Menu.d.ts +21 -0
  286. package/build/ts/surfaces/customer-account/components/Menu/Menu.d.ts.map +1 -0
  287. package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts +4 -0
  288. package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts.map +1 -0
  289. package/build/ts/surfaces/customer-account/components/Menu/index.d.ts +2 -0
  290. package/build/ts/surfaces/customer-account/components/Menu/index.d.ts.map +1 -0
  291. package/build/ts/surfaces/customer-account/components/Page/Page.d.ts +47 -0
  292. package/build/ts/surfaces/customer-account/components/Page/Page.d.ts.map +1 -0
  293. package/build/ts/surfaces/customer-account/components/Page/Page.doc.d.ts +4 -0
  294. package/build/ts/surfaces/customer-account/components/Page/Page.doc.d.ts.map +1 -0
  295. package/build/ts/surfaces/customer-account/components/Page/index.d.ts +3 -0
  296. package/build/ts/surfaces/customer-account/components/Page/index.d.ts.map +1 -0
  297. package/build/ts/surfaces/customer-account/components/PolicyModal/PolicyModal.d.ts +30 -0
  298. package/build/ts/surfaces/customer-account/components/PolicyModal/PolicyModal.d.ts.map +1 -0
  299. package/build/ts/surfaces/customer-account/components/PolicyModal/index.d.ts +3 -0
  300. package/build/ts/surfaces/customer-account/components/PolicyModal/index.d.ts.map +1 -0
  301. package/build/ts/surfaces/customer-account/components/ResourceItem/ResourceItem.d.ts +36 -0
  302. package/build/ts/surfaces/customer-account/components/ResourceItem/ResourceItem.d.ts.map +1 -0
  303. package/build/ts/surfaces/customer-account/components/ResourceItem/ResourceItem.doc.d.ts +4 -0
  304. package/build/ts/surfaces/customer-account/components/ResourceItem/ResourceItem.doc.d.ts.map +1 -0
  305. package/build/ts/surfaces/customer-account/components/ResourceItem/index.d.ts +3 -0
  306. package/build/ts/surfaces/customer-account/components/ResourceItem/index.d.ts.map +1 -0
  307. package/build/ts/surfaces/customer-account/components/index.d.ts +7 -0
  308. package/build/ts/surfaces/customer-account/components/index.d.ts.map +1 -1
  309. package/build/ts/surfaces/customer-account/components/shared-checkout-components.d.ts +1 -1
  310. package/build/ts/surfaces/customer-account/components/shared-checkout-components.d.ts.map +1 -1
  311. package/build/ts/surfaces/customer-account/components/shared.d.ts +7 -0
  312. package/build/ts/surfaces/customer-account/components/shared.d.ts.map +1 -0
  313. package/build/ts/surfaces/customer-account/targets.d.ts +69 -8
  314. package/build/ts/surfaces/customer-account/targets.d.ts.map +1 -1
  315. package/build/ts/surfaces/point-of-sale/api/action-target-api/action-target-api.d.ts +9 -0
  316. package/build/ts/surfaces/point-of-sale/api/action-target-api/action-target-api.d.ts.map +1 -0
  317. package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +1 -1
  318. package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts +10 -0
  319. package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts.map +1 -0
  320. package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts +18 -0
  321. package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts.map +1 -0
  322. package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +1 -1
  323. package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
  324. package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts +2 -2
  325. package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts +10 -0
  326. package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts.map +1 -0
  327. package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts +2 -2
  328. package/build/ts/surfaces/point-of-sale/api.d.ts +7 -1
  329. package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
  330. package/build/ts/surfaces/point-of-sale/components/ActionItem/ActionItem.d.ts +24 -0
  331. package/build/ts/surfaces/point-of-sale/components/ActionItem/ActionItem.d.ts.map +1 -0
  332. package/build/ts/surfaces/point-of-sale/components/Badge/Badge.d.ts +14 -0
  333. package/build/ts/surfaces/point-of-sale/components/Badge/Badge.d.ts.map +1 -1
  334. package/build/ts/surfaces/point-of-sale/components/Banner/Banner.d.ts +17 -8
  335. package/build/ts/surfaces/point-of-sale/components/Banner/Banner.d.ts.map +1 -1
  336. package/build/ts/surfaces/point-of-sale/components/Button/Button.d.ts +25 -1
  337. package/build/ts/surfaces/point-of-sale/components/Button/Button.d.ts.map +1 -1
  338. package/build/ts/surfaces/point-of-sale/components/CameraScanner/CameraScanner.d.ts +20 -2
  339. package/build/ts/surfaces/point-of-sale/components/CameraScanner/CameraScanner.d.ts.map +1 -1
  340. package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.d.ts +21 -0
  341. package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.d.ts.map +1 -1
  342. package/build/ts/surfaces/point-of-sale/components/Dialog/Dialog.d.ts +38 -0
  343. package/build/ts/surfaces/point-of-sale/components/Dialog/Dialog.d.ts.map +1 -1
  344. package/build/ts/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.d.ts +22 -0
  345. package/build/ts/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.d.ts.map +1 -1
  346. package/build/ts/surfaces/point-of-sale/components/Icon/Icon.d.ts +7 -0
  347. package/build/ts/surfaces/point-of-sale/components/Icon/Icon.d.ts.map +1 -1
  348. package/build/ts/surfaces/point-of-sale/components/Image/Image.d.ts +3 -0
  349. package/build/ts/surfaces/point-of-sale/components/Image/Image.d.ts.map +1 -1
  350. package/build/ts/surfaces/point-of-sale/components/List/List.d.ts +14 -2
  351. package/build/ts/surfaces/point-of-sale/components/List/List.d.ts.map +1 -1
  352. package/build/ts/surfaces/point-of-sale/components/Navigator/Navigator.d.ts +4 -1
  353. package/build/ts/surfaces/point-of-sale/components/Navigator/Navigator.d.ts.map +1 -1
  354. package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.d.ts +0 -2
  355. package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.d.ts.map +1 -1
  356. package/build/ts/surfaces/point-of-sale/components/POSBlock/POSBlock.d.ts +31 -0
  357. package/build/ts/surfaces/point-of-sale/components/POSBlock/POSBlock.d.ts.map +1 -0
  358. package/build/ts/surfaces/point-of-sale/components/POSBlock/POSBlockRow.d.ts +15 -0
  359. package/build/ts/surfaces/point-of-sale/components/POSBlock/POSBlockRow.d.ts.map +1 -0
  360. package/build/ts/surfaces/point-of-sale/components/PinPad/PinPad.d.ts +27 -0
  361. package/build/ts/surfaces/point-of-sale/components/PinPad/PinPad.d.ts.map +1 -1
  362. package/build/ts/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.d.ts +12 -0
  363. package/build/ts/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.d.ts.map +1 -1
  364. package/build/ts/surfaces/point-of-sale/components/Screen/Screen.d.ts +43 -2
  365. package/build/ts/surfaces/point-of-sale/components/Screen/Screen.d.ts.map +1 -1
  366. package/build/ts/surfaces/point-of-sale/components/SearchBar/SearchBar.d.ts +18 -0
  367. package/build/ts/surfaces/point-of-sale/components/SearchBar/SearchBar.d.ts.map +1 -1
  368. package/build/ts/surfaces/point-of-sale/components/Section/Section.d.ts +20 -0
  369. package/build/ts/surfaces/point-of-sale/components/Section/Section.d.ts.map +1 -1
  370. package/build/ts/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.d.ts +18 -0
  371. package/build/ts/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  372. package/build/ts/surfaces/point-of-sale/components/Selectable/Selectable.d.ts +6 -0
  373. package/build/ts/surfaces/point-of-sale/components/Selectable/Selectable.d.ts.map +1 -1
  374. package/build/ts/surfaces/point-of-sale/components/Stack/Stack.d.ts +27 -1
  375. package/build/ts/surfaces/point-of-sale/components/Stack/Stack.d.ts.map +1 -1
  376. package/build/ts/surfaces/point-of-sale/components/Stepper/Stepper.d.ts +3 -3
  377. package/build/ts/surfaces/point-of-sale/components/Text/Text.d.ts +6 -0
  378. package/build/ts/surfaces/point-of-sale/components/Text/Text.d.ts.map +1 -1
  379. package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.d.ts +3 -0
  380. package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.d.ts.map +1 -1
  381. package/build/ts/surfaces/point-of-sale/components/Tile/Tile.d.ts +26 -0
  382. package/build/ts/surfaces/point-of-sale/components/Tile/Tile.d.ts.map +1 -1
  383. package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.d.ts +4 -0
  384. package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.d.ts.map +1 -1
  385. package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.d.ts +27 -0
  386. package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.d.ts.map +1 -1
  387. package/build/ts/surfaces/point-of-sale/components/shared/BaseTextField.d.ts +26 -1
  388. package/build/ts/surfaces/point-of-sale/components/shared/BaseTextField.d.ts.map +1 -1
  389. package/build/ts/surfaces/point-of-sale/components/shared/InputField.d.ts +48 -0
  390. package/build/ts/surfaces/point-of-sale/components/shared/InputField.d.ts.map +1 -1
  391. package/build/ts/surfaces/point-of-sale/components.d.ts +7 -3
  392. package/build/ts/surfaces/point-of-sale/components.d.ts.map +1 -1
  393. package/build/ts/surfaces/point-of-sale/targets.d.ts +21 -4
  394. package/build/ts/surfaces/point-of-sale/targets.d.ts.map +1 -1
  395. package/build/tsconfig.tsbuildinfo +1 -1
  396. package/package.json +7 -5
  397. package/src/shared.ts +28 -0
  398. package/src/surfaces/admin/api/block/block.ts +6 -0
  399. package/src/surfaces/admin/api/checkout-rules/metafields.ts +1 -1
  400. package/src/surfaces/admin/api/checkout-rules/validation-settings.doc.ts +1 -1
  401. package/src/surfaces/admin/api/order-routing-rule/metafields.ts +1 -1
  402. package/src/surfaces/admin/api/print-action/print-action.doc.ts +20 -0
  403. package/src/surfaces/admin/api/print-action/print-action.ts +12 -0
  404. package/src/surfaces/admin/api/resource-picker/resource-picker.ts +240 -0
  405. package/src/surfaces/admin/api/standard/standard.ts +12 -0
  406. package/src/surfaces/admin/api.ts +1 -0
  407. package/src/surfaces/admin/components/AdminPrintAction/AdminPrintAction.doc.ts +52 -0
  408. package/src/surfaces/admin/components/AdminPrintAction/AdminPrintAction.ts +18 -0
  409. package/src/surfaces/admin/components/AdminPrintAction/examples/basic-adminprintaction.example.ts +14 -0
  410. package/src/surfaces/admin/components/Box/Box.ts +3 -1
  411. package/src/surfaces/admin/components/Button/Button.ts +8 -0
  412. package/src/surfaces/admin/components/Image/Image.ts +2 -2
  413. package/src/surfaces/admin/components/MoneyField/MoneyField.ts +171 -1
  414. package/src/surfaces/admin/components/NumberField/NumberField.ts +3 -1
  415. package/src/surfaces/admin/components/TextField/TextField.ts +3 -1
  416. package/src/surfaces/admin/components/shared/display.ts +7 -0
  417. package/src/surfaces/admin/components/shared/index.ts +16 -0
  418. package/src/surfaces/admin/components.ts +2 -8
  419. package/src/surfaces/admin/extension-targets.ts +170 -8
  420. package/src/surfaces/checkout/api/address-autocomplete/shared.ts +29 -4
  421. package/src/surfaces/checkout/api/address-autocomplete/standard.ts +2 -0
  422. package/src/surfaces/checkout/api/checkout/checkout.ts +15 -6
  423. package/src/surfaces/checkout/api/docs.ts +5 -0
  424. package/src/surfaces/checkout/api/order-status/order-status.ts +5 -0
  425. package/src/surfaces/checkout/api/shared.ts +7 -0
  426. package/src/surfaces/checkout/api/shipping/shipping-option-item.ts +15 -0
  427. package/src/surfaces/checkout/api/shipping/shipping-option-list.ts +58 -3
  428. package/src/surfaces/checkout/api/standard/standard.ts +147 -51
  429. package/src/surfaces/checkout/components/BlockLayout/BlockLayout.doc.ts +8 -1
  430. package/src/surfaces/checkout/components/BlockStack/BlockStack.doc.ts +8 -1
  431. package/src/surfaces/checkout/components/BlockStack/BlockStack.ts +14 -4
  432. package/src/surfaces/checkout/components/Chat/Chat.ts +85 -0
  433. package/src/surfaces/checkout/components/Disclosure/Disclosure.doc.ts +1 -1
  434. package/src/surfaces/checkout/components/Grid/Grid.doc.ts +6 -0
  435. package/src/surfaces/checkout/components/Grid/Grid.ts +15 -4
  436. package/src/surfaces/checkout/components/GridItem/GridItem.doc.ts +6 -0
  437. package/src/surfaces/checkout/components/GridItem/GridItem.ts +15 -4
  438. package/src/surfaces/checkout/components/Heading/Heading.ts +1 -1
  439. package/src/surfaces/checkout/components/Icon/Icon.ts +6 -0
  440. package/src/surfaces/checkout/components/InlineLayout/InlineLayout.doc.ts +8 -1
  441. package/src/surfaces/checkout/components/InlineStack/InlineStack.doc.ts +8 -1
  442. package/src/surfaces/checkout/components/InlineStack/InlineStack.ts +15 -4
  443. package/src/surfaces/checkout/components/Link/Link.ts +1 -1
  444. package/src/surfaces/checkout/components/Modal/Modal.doc.ts +8 -1
  445. package/src/surfaces/checkout/components/Modal/Modal.ts +19 -0
  446. package/src/surfaces/checkout/components/PaymentIcon/PaymentIcon.ts +400 -399
  447. package/src/surfaces/checkout/components/Popover/Popover.doc.ts +8 -1
  448. package/src/surfaces/checkout/components/Pressable/Pressable.doc.ts +8 -1
  449. package/src/surfaces/checkout/components/Pressable/Pressable.ts +12 -11
  450. package/src/surfaces/checkout/components/Progress/Progress.doc.ts +89 -0
  451. package/src/surfaces/checkout/components/Progress/Progress.ts +44 -0
  452. package/src/surfaces/checkout/components/Progress/examples/basic-progress.example.ts +9 -0
  453. package/src/surfaces/checkout/components/QRCode/QRCode.doc.ts +60 -0
  454. package/src/surfaces/checkout/components/QRCode/QRCode.ts +54 -0
  455. package/src/surfaces/checkout/components/QRCode/examples/basic-qrcode.example.ts +9 -0
  456. package/src/surfaces/checkout/components/ScrollView/ScrollView.doc.ts +8 -1
  457. package/src/surfaces/checkout/components/ScrollView/ScrollView.ts +37 -3
  458. package/src/surfaces/checkout/components/Select/Select.ts +13 -1
  459. package/src/surfaces/checkout/components/Sheet/Sheet.doc.ts +8 -1
  460. package/src/surfaces/checkout/components/Spinner/Spinner.doc.ts +8 -1
  461. package/src/surfaces/checkout/components/Switch/Switch.doc.ts +80 -0
  462. package/src/surfaces/checkout/components/Switch/Switch.ts +50 -0
  463. package/src/surfaces/checkout/components/Switch/examples/basic-switch.example.ts +9 -0
  464. package/src/surfaces/checkout/components/View/View.doc.ts +8 -1
  465. package/src/surfaces/checkout/components/View/View.ts +85 -45
  466. package/src/surfaces/checkout/components/shared.ts +1 -1
  467. package/src/surfaces/checkout/components.ts +13 -0
  468. package/src/surfaces/checkout/helper.docs.ts +36 -0
  469. package/src/surfaces/checkout/shared.ts +5 -0
  470. package/src/surfaces/checkout/style/examples/hiding.example.tsx +8 -0
  471. package/src/surfaces/checkout/style/style.doc.ts +14 -0
  472. package/src/surfaces/checkout/style/types.ts +10 -3
  473. package/src/surfaces/checkout/targets.ts +27 -12
  474. package/src/surfaces/checkout.ts +19 -2
  475. package/src/surfaces/customer-account/api/docs.ts +151 -0
  476. package/src/surfaces/customer-account/api/order-status/order-status.ts +39 -288
  477. package/src/surfaces/customer-account/api/shared.ts +290 -0
  478. package/src/surfaces/customer-account/api/standard-api/standard-api.ts +230 -0
  479. package/src/surfaces/customer-account/api.ts +35 -15
  480. package/src/surfaces/customer-account/components/Avatar/Avatar.doc.ts +68 -0
  481. package/src/surfaces/customer-account/components/Avatar/Avatar.ts +46 -0
  482. package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-js.example.ts +26 -0
  483. package/src/surfaces/customer-account/components/Avatar/index.ts +1 -0
  484. package/src/surfaces/customer-account/components/Card/Card.doc.ts +54 -0
  485. package/src/surfaces/customer-account/components/Card/examples/basic-Card-js.example.ts +47 -0
  486. package/src/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.ts +66 -0
  487. package/src/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.ts +22 -0
  488. package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-js.example.ts +27 -0
  489. package/src/surfaces/customer-account/components/CustomerAccountAction/index.ts +2 -0
  490. package/src/surfaces/customer-account/components/DropZone/DropZone.doc.ts +67 -0
  491. package/src/surfaces/customer-account/components/DropZone/DropZone.ts +76 -0
  492. package/src/surfaces/customer-account/components/DropZone/examples/basic-DropZone-js.example.ts +13 -0
  493. package/src/surfaces/customer-account/components/DropZone/index.ts +2 -0
  494. package/src/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.ts +53 -0
  495. package/src/surfaces/customer-account/components/ImageGroup/ImageGroup.ts +35 -0
  496. package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-js.example.ts +38 -0
  497. package/src/surfaces/customer-account/components/ImageGroup/index.ts +2 -0
  498. package/src/surfaces/customer-account/components/Menu/Menu.doc.ts +80 -0
  499. package/src/surfaces/customer-account/components/Menu/Menu.ts +19 -0
  500. package/src/surfaces/customer-account/components/Menu/examples/basic-Menu-js.example.ts +26 -0
  501. package/src/surfaces/customer-account/components/Menu/index.ts +1 -0
  502. package/src/surfaces/customer-account/components/Page/Page.doc.ts +76 -0
  503. package/src/surfaces/customer-account/components/Page/Page.ts +51 -0
  504. package/src/surfaces/customer-account/components/Page/examples/basic-Page-js.example.ts +35 -0
  505. package/src/surfaces/customer-account/components/Page/index.ts +2 -0
  506. package/src/surfaces/customer-account/components/PolicyModal/PolicyModal.ts +33 -0
  507. package/src/surfaces/customer-account/components/PolicyModal/index.ts +2 -0
  508. package/src/surfaces/customer-account/components/ResourceItem/ResourceItem.doc.ts +62 -0
  509. package/src/surfaces/customer-account/components/ResourceItem/ResourceItem.ts +41 -0
  510. package/src/surfaces/customer-account/components/ResourceItem/examples/basic-ResourceItem-js.example.ts +59 -0
  511. package/src/surfaces/customer-account/components/ResourceItem/index.ts +2 -0
  512. package/src/surfaces/customer-account/components/index.ts +9 -0
  513. package/src/surfaces/customer-account/components/shared-checkout-components.ts +8 -0
  514. package/src/surfaces/customer-account/components/shared.ts +6 -0
  515. package/src/surfaces/customer-account/targets.ts +169 -8
  516. package/src/surfaces/point-of-sale/api/action-target-api/action-target-api.ts +9 -0
  517. package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +1 -1
  518. package/src/surfaces/point-of-sale/api/customer-api/customer-api.ts +10 -0
  519. package/src/surfaces/point-of-sale/api/draft-order-api/draft-order-api.ts +20 -0
  520. package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +1 -1
  521. package/src/surfaces/point-of-sale/api/order-api/order-api.tsx +2 -2
  522. package/src/surfaces/point-of-sale/api/product-api/product-api.ts +10 -0
  523. package/src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts +2 -2
  524. package/src/surfaces/point-of-sale/api.ts +21 -1
  525. package/src/surfaces/point-of-sale/components/ActionItem/ActionItem.ts +24 -0
  526. package/src/surfaces/point-of-sale/components/Badge/Badge.ts +16 -0
  527. package/src/surfaces/point-of-sale/components/Banner/Banner.ts +17 -8
  528. package/src/surfaces/point-of-sale/components/Button/Button.ts +25 -1
  529. package/src/surfaces/point-of-sale/components/CameraScanner/CameraScanner.ts +21 -5
  530. package/src/surfaces/point-of-sale/components/DatePicker/DatePicker.ts +22 -0
  531. package/src/surfaces/point-of-sale/components/Dialog/Dialog.ts +46 -0
  532. package/src/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.ts +22 -1
  533. package/src/surfaces/point-of-sale/components/Icon/Icon.ts +7 -0
  534. package/src/surfaces/point-of-sale/components/Image/Image.ts +3 -0
  535. package/src/surfaces/point-of-sale/components/List/List.ts +16 -2
  536. package/src/surfaces/point-of-sale/components/Navigator/Navigator.ts +4 -1
  537. package/src/surfaces/point-of-sale/components/NumberField/NumberField.ts +0 -2
  538. package/src/surfaces/point-of-sale/components/POSBlock/POSBlock.ts +31 -0
  539. package/src/surfaces/point-of-sale/components/POSBlock/POSBlockRow.ts +16 -0
  540. package/src/surfaces/point-of-sale/components/PinPad/PinPad.ts +27 -0
  541. package/src/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.ts +12 -0
  542. package/src/surfaces/point-of-sale/components/Screen/Screen.ts +43 -2
  543. package/src/surfaces/point-of-sale/components/SearchBar/SearchBar.ts +18 -0
  544. package/src/surfaces/point-of-sale/components/Section/Section.ts +20 -0
  545. package/src/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.ts +18 -0
  546. package/src/surfaces/point-of-sale/components/Selectable/Selectable.ts +6 -0
  547. package/src/surfaces/point-of-sale/components/Stack/Stack.ts +27 -1
  548. package/src/surfaces/point-of-sale/components/Stepper/Stepper.ts +3 -3
  549. package/src/surfaces/point-of-sale/components/Text/Text.ts +6 -0
  550. package/src/surfaces/point-of-sale/components/TextArea/TextArea.ts +3 -0
  551. package/src/surfaces/point-of-sale/components/Tile/Tile.ts +26 -0
  552. package/src/surfaces/point-of-sale/components/TimeField/TimeField.ts +4 -0
  553. package/src/surfaces/point-of-sale/components/TimePicker/TimePicker.ts +27 -0
  554. package/src/surfaces/point-of-sale/components/shared/BaseTextField.ts +26 -1
  555. package/src/surfaces/point-of-sale/components/shared/InputField.ts +48 -0
  556. package/src/surfaces/point-of-sale/components.ts +11 -3
  557. package/src/surfaces/point-of-sale/targets.ts +107 -7
  558. package/build/cjs/surfaces/admin/components/ResourceItem/ResourceItem.js +0 -14
  559. package/build/cjs/surfaces/admin/components/ResourceList/ResourceList.js +0 -15
  560. package/build/cjs/surfaces/admin/components/Thumbnail/Thumbnail.js +0 -12
  561. package/build/esm/surfaces/admin/components/Card/Card.mjs +0 -5
  562. package/build/esm/surfaces/admin/components/ResourceItem/ResourceItem.mjs +0 -10
  563. package/build/esm/surfaces/admin/components/ResourceList/ResourceList.mjs +0 -11
  564. package/build/esm/surfaces/admin/components/Thumbnail/Thumbnail.mjs +0 -8
  565. package/build/esm/surfaces/point-of-sale/components/Actiontem/ActionItem.mjs +0 -5
  566. package/build/esnext/surfaces/admin/components/Card/Card.esnext +0 -5
  567. package/build/esnext/surfaces/admin/components/ResourceItem/ResourceItem.esnext +0 -10
  568. package/build/esnext/surfaces/admin/components/ResourceList/ResourceList.esnext +0 -11
  569. package/build/esnext/surfaces/admin/components/Thumbnail/Thumbnail.esnext +0 -8
  570. package/build/esnext/surfaces/point-of-sale/components/Actiontem/ActionItem.esnext +0 -5
  571. package/build/ts/surfaces/admin/api/extension-targets/extension-targets.doc.d.ts.map +0 -1
  572. package/build/ts/surfaces/admin/components/Card/Card.d.ts +0 -15
  573. package/build/ts/surfaces/admin/components/Card/Card.d.ts.map +0 -1
  574. package/build/ts/surfaces/admin/components/Card/Card.doc-skip.d.ts.map +0 -1
  575. package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts +0 -22
  576. package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts.map +0 -1
  577. package/build/ts/surfaces/admin/components/ResourceList/ResourceList.d.ts +0 -26
  578. package/build/ts/surfaces/admin/components/ResourceList/ResourceList.d.ts.map +0 -1
  579. package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.d.ts +0 -19
  580. package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.d.ts.map +0 -1
  581. package/build/ts/surfaces/checkout/api/address-autocomplete/address-autocomplete.d.ts +0 -76
  582. package/build/ts/surfaces/checkout/api/address-autocomplete/address-autocomplete.d.ts.map +0 -1
  583. package/build/ts/surfaces/point-of-sale/components/Actiontem/ActionItem.d.ts +0 -10
  584. package/build/ts/surfaces/point-of-sale/components/Actiontem/ActionItem.d.ts.map +0 -1
  585. package/src/surfaces/admin/api/extension-targets/extension-targets.doc.ts +0 -20
  586. package/src/surfaces/admin/components/Card/Card.doc-skip.ts +0 -42
  587. package/src/surfaces/admin/components/Card/Card.ts +0 -13
  588. package/src/surfaces/admin/components/Card/examples/basic-card.example.ts +0 -11
  589. package/src/surfaces/admin/components/ResourceItem/ResourceItem.ts +0 -19
  590. package/src/surfaces/admin/components/ResourceItem/examples/basic-resourceitem.example.ts +0 -22
  591. package/src/surfaces/admin/components/ResourceList/ResourceList.ts +0 -30
  592. package/src/surfaces/admin/components/ResourceList/examples/basic-resourcelist.example.ts +0 -29
  593. package/src/surfaces/admin/components/Thumbnail/Thumbnail.ts +0 -31
  594. package/src/surfaces/admin/components/Thumbnail/examples/basic-thumbnail.example.ts +0 -13
  595. package/src/surfaces/checkout/api/address-autocomplete/address-autocomplete.ts +0 -87
  596. package/src/surfaces/point-of-sale/components/Actiontem/ActionItem.ts +0 -10
@@ -2,11 +2,32 @@ import {createRemoteComponent} from '@remote-ui/core';
2
2
  import type {AutoCapitalizationType} from '../shared/auto-capitalization-type';
3
3
  import type {BaseTextFieldProps} from '../shared/BaseTextField';
4
4
 
5
+ /**
6
+ * Dictates what type of values can be used in a `TextField`.
7
+ */
5
8
  export type InputType = 'text' | 'number' | 'currency' | 'giftcard' | 'email';
6
-
9
+ /**
10
+ * @property `inputType` the `InputType` of the `TextField`. This will select the appropriate keyboard.
11
+ * @property `autoCapitalize` dictates when the text should be auto-capitalized.
12
+ * @property `customValidator` applies a custom validator that can dictate whether or not an entered value is valid.
13
+ */
7
14
  export interface FormattedTextFieldProps extends BaseTextFieldProps {
15
+ /**
16
+ * The `InputType` of the `TextField`. This will select the appropriate keyboard.
17
+ */
8
18
  inputType?: InputType;
19
+ /**
20
+ * Dictates when the text should be auto-capitalized.
21
+ */
9
22
  autoCapitalize?: AutoCapitalizationType;
23
+ /**
24
+ * **Warning:** This callback is currently broken and will not work as intended.
25
+ *
26
+ * Custom validator function to determine the validity of an entered value.
27
+ *
28
+ * @deprecated This callback will be removed in version 2025-01.
29
+ * Please update your code to avoid using this feature.
30
+ */
10
31
  customValidator?: (text: string) => boolean;
11
32
  }
12
33
 
@@ -86,7 +86,14 @@ export type IconName =
86
86
  export type IconSize = 'minor' | 'major' | 'spot' | 'caption' | 'badge';
87
87
 
88
88
  export interface IconProps {
89
+ /**
90
+ * A name used to render the icon.
91
+ */
89
92
  name: IconName;
93
+ /**
94
+ * Size of the icon.
95
+ * @defaultValue 'major'
96
+ */
90
97
  size?: IconSize;
91
98
  }
92
99
 
@@ -1,6 +1,9 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
3
  export interface ImageProps {
4
+ /**
5
+ * The source of the image to be displayed.
6
+ */
4
7
  src?: string;
5
8
  }
6
9
 
@@ -3,12 +3,26 @@ import {BadgeProps} from '../Badge/Badge';
3
3
  import {ColorType} from '../Text/Text';
4
4
 
5
5
  export interface ToggleSwitch {
6
+ /**
7
+ * Whether or not the toggle switch is on or off.
8
+ */
6
9
  value?: boolean;
10
+
11
+ /**
12
+ * Whether or not the toggle switch is disabled.
13
+ */
7
14
  disabled?: boolean;
8
15
  }
9
16
 
10
17
  export interface SubtitleType {
18
+ /**
19
+ * The subtitles to display beneath the main label.
20
+ */
11
21
  content: string;
22
+
23
+ /**
24
+ * Property used to modify the subtitle appearance.
25
+ */
12
26
  color?: ColorType;
13
27
  }
14
28
 
@@ -23,7 +37,7 @@ export interface ListRowLeftSide {
23
37
  * The subtitles to display beneath the main label. Up to 3 subtitles can be displayed.
24
38
  * Subtitles can optionally be configured with colors by passing an object with a `content` and `color` properties.
25
39
  */
26
- subtitle?: readonly [ListRowSubtitle, ListRowSubtitle?, ListRowSubtitle?];
40
+ subtitle?: [ListRowSubtitle, ListRowSubtitle?, ListRowSubtitle?];
27
41
  /**
28
42
  * @deprecated
29
43
  * badge will be removed in version 2.0.0 in favor of badges.
@@ -87,7 +101,7 @@ export interface ListProps {
87
101
  */
88
102
  title?: string;
89
103
  /**
90
- * A header component for the list
104
+ * A header component for the list.
91
105
  */
92
106
  listHeaderComponent?: RemoteFragment;
93
107
  /**
@@ -1,9 +1,12 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
3
  /**
4
- * @property `initialScreenName` sets the initial Screen by its `name` property.
4
+ * @property `initialScreenName` sets the initial `Screen` whose `name` matches.
5
5
  */
6
6
  export interface NavigatorProps {
7
+ /**
8
+ * Sets the initial `Screen` whose `name` matches.
9
+ */
7
10
  initialScreenName?: string;
8
11
  }
9
12
 
@@ -5,8 +5,6 @@ import type {InputProps} from '../shared/InputField';
5
5
  * Represents the properties for the NumberField component.
6
6
  * @typedef {Object} NumberFieldProps
7
7
  * @property {'decimal' | 'numeric'} [inputMode] - The mode of input, can be either 'decimal' or 'numeric'.
8
- * @property {number} [max] - The highest decimal or integer to be accepted for the field.
9
- * @property {number} [min] - The lowest decimal or integer to be accepted for the field.
10
8
  */
11
9
  export interface NumberFieldProps extends InputProps {
12
10
  inputMode?: 'decimal' | 'numeric';
@@ -0,0 +1,31 @@
1
+ import {createRemoteComponent} from '@remote-ui/core';
2
+
3
+ /**
4
+ * Renders a `POSBlock`. Note that the text displayed on this `POSBlock`
5
+ * is dependent on the description of the extension. A `POSBlock` only
6
+ * accepts `POSBlockRow` as children.
7
+ */
8
+ export interface POSBlockProps {
9
+ /**
10
+ * Sets an optional action button to be displayed on the `POSBlock`.
11
+ */
12
+ action?: {
13
+ /**
14
+ * The title of the action button.
15
+ */
16
+ title: string;
17
+ /**
18
+ * Whether the action button is disabled.
19
+ * @defaultValue false
20
+ */
21
+ disabled?: boolean;
22
+ /**
23
+ * A callback that is called when the action button is pressed.
24
+ */
25
+ onPress: () => void;
26
+ };
27
+ }
28
+
29
+ export const POSBlock = createRemoteComponent<'POSBlock', POSBlockProps>(
30
+ 'POSBlock',
31
+ );
@@ -0,0 +1,16 @@
1
+ import {createRemoteComponent} from '@remote-ui/core';
2
+
3
+ /**
4
+ * Renders a `POSBlockRow` in a `POSBlock`.
5
+ */
6
+ export interface POSBlockRowProps {
7
+ /**
8
+ * A callback for when the row is tapped.
9
+ */
10
+ onPress?: () => void;
11
+ }
12
+
13
+ export const POSBlockRow = createRemoteComponent<
14
+ 'POSBlockRow',
15
+ POSBlockRowProps
16
+ >('POSBlockRow');
@@ -19,7 +19,13 @@ export type PinLength = 4 | 5 | 6 | 7 | 8 | 9 | 10;
19
19
  * @property {function(): number[]} onPress - The function to be called when the action button is pressed.
20
20
  */
21
21
  export interface PinPadActionType {
22
+ /**
23
+ * The label for the action button.
24
+ */
22
25
  label: string;
26
+ /**
27
+ * The function to be called when the action button is pressed.
28
+ */
23
29
  onPress: () => Promise<number[]>;
24
30
  }
25
31
 
@@ -35,12 +41,33 @@ export interface PinPadActionType {
35
41
  * @property {function(pin: number[]): void} [onPinEntry] - The function to be called when a PIN is entered.
36
42
  */
37
43
  export interface PinPadProps {
44
+ /**
45
+ * Whether the entered PIN should be masked.
46
+ */
38
47
  masked?: boolean;
48
+ /**
49
+ * The minimum length of the PIN.
50
+ */
39
51
  minPinLength?: PinLength;
52
+ /**
53
+ * The maximum length of the PIN.
54
+ */
40
55
  maxPinLength?: PinLength;
56
+ /**
57
+ * The content for the prompt on the pin pad.
58
+ */
41
59
  label?: string;
60
+ /**
61
+ * The call to action between the entry view and the keypad, consisting of a label and function that returns the pin.
62
+ */
42
63
  pinPadAction?: PinPadActionType;
64
+ /**
65
+ * The function to be called when the PIN is submitted.
66
+ */
43
67
  onSubmit: (pin: number[]) => Promise<PinValidationResult>;
68
+ /**
69
+ * The function to be called when a PIN is entered.
70
+ */
44
71
  onPinEntry?: (pin: number[]) => void;
45
72
  }
46
73
 
@@ -1,9 +1,21 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
3
  export interface RadioButtonListProps {
4
+ /**
5
+ * The radio button options.
6
+ */
4
7
  items: string[];
8
+ /**
9
+ * A callback to be performed when the radio list item is selected.
10
+ */
5
11
  onItemSelected: (item: string) => void;
12
+ /**
13
+ * The name of the selected item. Warning: This is a controlled component, so this prop must be used in conjunction with onItemSelected.
14
+ */
6
15
  initialSelectedItem?: string;
16
+ /**
17
+ * Whether the initialSelectedItem renders at the top of the list.
18
+ */
7
19
  initialOffsetToShowSelectedItem?: boolean;
8
20
  }
9
21
 
@@ -4,17 +4,29 @@ import {createRemoteComponent} from '@remote-ui/core';
4
4
  * @property `sheet` displays the screen from the bottom on `navigate` when `true`.
5
5
  */
6
6
  export interface ScreenPresentationProps {
7
+ /**
8
+ * Displays the screen from the bottom on `navigate` when `true`.
9
+ */
7
10
  sheet?: boolean;
8
11
  }
9
12
 
10
13
  /** Represents the secondary action button of a screen in the navigation stack.
11
14
  * @property `text` displays the name of the secondary action in the action bar.
12
15
  * @property `onPress` triggered when the secondary action button is pressed.
13
- * @property `isEnabled` displays the secondary action button when set `true`.
16
+ * @property `isEnabled` sets whether the action can be tapped.
14
17
  */
15
18
  export interface SecondaryActionProps {
19
+ /**
20
+ * Displays the name of the secondary action in the action bar.
21
+ */
16
22
  text: string;
23
+ /**
24
+ * Triggered when the secondary action button is pressed.
25
+ */
17
26
  onPress: () => void;
27
+ /**
28
+ * Sets whether the action can be tapped.
29
+ */
18
30
  isEnabled?: boolean;
19
31
  }
20
32
 
@@ -22,21 +34,50 @@ export interface SecondaryActionProps {
22
34
  * @property `name` used to identify this screen as a destination in the navigation stack.
23
35
  * @property `title` the title of the screen which will be displayed on the UI.
24
36
  * @property `isLoading` displays a loading indicator when `true`. Set this to `true` when performing an asynchronous task, and then to false when the data becomes available to the UI.
37
+ * @property `presentation` dictates how the `Screen` will be presented when navigated to.
25
38
  * @property `secondaryAction` displays a secondary action button on the screen.
26
39
  * @property `onNavigate` triggered when the screen is navigated to.
27
40
  * @property `onNavigateBack` triggered when the user navigates back from this screen. Runs after screen is unmounted.
28
- * @property `overrideNavigateBack` is a callback that allows you to override the secondary navigation action. Runs when screen is mounted.
41
+ * @property `overrideNavigateBack` a callback that allows you to override the secondary navigation action. Runs when screen is mounted.
29
42
  * @property `onReceiveParams` a callback that gets triggered when the navigation event completes and the screen receives the parameters.
30
43
  */
31
44
  export interface ScreenProps {
45
+ /**
46
+ * Used to identify this screen as a destination in the navigation stack.
47
+ */
32
48
  name: string;
49
+ /**
50
+ * The title of the screen which will be displayed on the UI.
51
+ */
33
52
  title: string;
53
+ /**
54
+ * Displays a loading indicator when `true`.
55
+ * Set this to `true` when performing an asynchronous task, and then to false when the data becomes available to the UI.
56
+ */
34
57
  isLoading?: boolean;
58
+ /**
59
+ * Dictates how the `Screen` will be presented when navigated to.
60
+ */
35
61
  presentation?: ScreenPresentationProps;
62
+ /**
63
+ * Displays a secondary action button on the screen.
64
+ */
36
65
  secondaryAction?: SecondaryActionProps;
66
+ /**
67
+ * Triggered when the screen is navigated to.
68
+ */
37
69
  onNavigate?: () => void;
70
+ /**
71
+ * Triggered when the user navigates back from this screen. Runs after screen is unmounted.
72
+ */
38
73
  onNavigateBack?: () => void;
74
+ /**
75
+ * A callback that allows you to override the secondary navigation action. Runs when screen is mounted.
76
+ */
39
77
  overrideNavigateBack?: () => void;
78
+ /**
79
+ * A callback that gets triggered when the navigation event completes and the screen receives the parameters.
80
+ */
40
81
  onReceiveParams?: (params: any) => void;
41
82
  }
42
83
 
@@ -1,11 +1,29 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
3
  export interface SearchBarProps {
4
+ /**
5
+ * The initial text value in the search bar. This is different from `placeHolder`, which is displayed in the search bar when the search bar doesn't have a populated string.
6
+ */
4
7
  initialValue?: string;
8
+ /**
9
+ * A callback containing the new text value of the search bar.
10
+ */
5
11
  onTextChange?: (value: string) => void;
12
+ /**
13
+ * A callback when the search button is tapped.
14
+ */
6
15
  onSearch: (value: string) => void;
16
+ /**
17
+ * A callback when the input is focused.
18
+ */
7
19
  onFocus?: () => void;
20
+ /**
21
+ * Whether the text can be changed.
22
+ */
8
23
  editable?: boolean;
24
+ /**
25
+ * The placeholder value to display in the search bar when no text is entered.
26
+ */
9
27
  placeholder?: string;
10
28
  }
11
29
 
@@ -1,12 +1,32 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
+ /** Allows the implementation of an action at the top right of a `Section`.
4
+ * @property `title` the title describing the action.
5
+ * @property `onPress` the callback when the action is tapped by the user.
6
+ */
3
7
  export interface SectionHeaderAction {
8
+ /**
9
+ * The title describing the action.
10
+ */
4
11
  title: string;
12
+ /**
13
+ * The callback when the action is tapped by the user.
14
+ */
5
15
  onPress: () => void;
6
16
  }
7
17
 
18
+ /** Renders content that is bound by a border, with a title and a call to action at the top.
19
+ * @property `title` the title of the section.
20
+ * @property `action` the action in the top right of the section that can be triggered by a tap.
21
+ */
8
22
  export interface SectionProps {
23
+ /**
24
+ * The title of the section.
25
+ */
9
26
  title?: string;
27
+ /**
28
+ * The action in the top right of the section that can be triggered by a tap.
29
+ */
10
30
  action?: SectionHeaderAction;
11
31
  }
12
32
 
@@ -1,14 +1,32 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
3
  export interface Segment {
4
+ /**
5
+ * The id of the segment.
6
+ */
4
7
  id: string;
8
+ /**
9
+ * The label of the segment.
10
+ */
5
11
  label: string;
12
+ /**
13
+ * Whether the segment is disabled.
14
+ */
6
15
  disabled: boolean;
7
16
  }
8
17
 
9
18
  export interface SegmentedControlProps {
19
+ /**
20
+ * The segments to display.
21
+ */
10
22
  segments: Segment[];
23
+ /**
24
+ * The id of the selected segment.
25
+ */
11
26
  selected: string;
27
+ /**
28
+ * A callback when a segment is selected.
29
+ */
12
30
  onSelect: (id: string) => void;
13
31
  }
14
32
 
@@ -1,7 +1,13 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
3
  export interface SelectableProps {
4
+ /**
5
+ * The callback on press.
6
+ */
4
7
  onPress: () => void;
8
+ /**
9
+ * Whether the selectable reacts to presses.
10
+ */
5
11
  disabled?: boolean;
6
12
  }
7
13
 
@@ -18,7 +18,14 @@ export type Spacing =
18
18
  | 16;
19
19
 
20
20
  export interface StackProps {
21
+ /**
22
+ * The direction of the stack.
23
+ */
21
24
  direction: 'vertical' | 'horizontal';
25
+ /**
26
+ * The alignment of the children along the cross axis.
27
+ * @defaultValue 'flex-end'
28
+ */
22
29
  alignment?:
23
30
  | 'flex-end'
24
31
  | 'center'
@@ -26,12 +33,31 @@ export interface StackProps {
26
33
  | 'space-around'
27
34
  | 'space-between'
28
35
  | 'space-evenly';
36
+ /**
37
+ * The vertical padding around the stack.
38
+ */
29
39
  paddingVertical?: VerticalSpacing;
40
+ /**
41
+ * The horizontal padding around the stack.
42
+ */
30
43
  paddingHorizontal?: HorizontalSpacing;
44
+ /**
45
+ * The spacing between each child in the stack.
46
+ * @defaultValue 1
47
+ */
31
48
  spacing?: Spacing;
49
+ /**
50
+ * Whether the children should be stretched to fill the cross axis.
51
+ */
32
52
  flexChildren?: boolean;
53
+ /**
54
+ * The flex value for the stack.
55
+ */
33
56
  flex?: number;
34
- flexWrap?: 'wrap' | 'nowrap' | 'wrap-reverse' | undefined;
57
+ /**
58
+ * Wrap behavior for the children of the stack.
59
+ */
60
+ flexWrap?: 'wrap' | 'nowrap' | 'wrap-reverse';
35
61
  }
36
62
 
37
63
  export const Stack = createRemoteComponent<'Stack', StackProps>('Stack');
@@ -7,13 +7,13 @@ export interface StepperProps {
7
7
  initialValue: number;
8
8
 
9
9
  /**
10
- * A callback that is called when the value of the stepper changes.
10
+ * A callback when the value of the stepper changes.
11
11
  */
12
12
  onValueChanged: (value: number) => void;
13
13
 
14
14
  /**
15
- * @defaultValue 1
16
15
  * Use to set the minimum value of the stepper.
16
+ * @defaultValue 1
17
17
  */
18
18
  minimumValue?: number;
19
19
 
@@ -28,8 +28,8 @@ export interface StepperProps {
28
28
  value?: number;
29
29
 
30
30
  /**
31
- * @defaultValue false
32
31
  * Whether the field can be modified.
32
+ * @defaultValue false
33
33
  */
34
34
  disabled?: boolean;
35
35
  }
@@ -21,7 +21,13 @@ export type ColorType =
21
21
  | 'TextHighlight';
22
22
 
23
23
  export interface TextProps {
24
+ /**
25
+ * The text variant.
26
+ */
24
27
  variant?: TextVariant;
28
+ /**
29
+ * The text color.
30
+ */
25
31
  color?: ColorType;
26
32
  }
27
33
 
@@ -7,6 +7,9 @@ import type {InputProps} from '../shared/InputField';
7
7
  * @property {number} [rows] - The initial number of lines to be displayed. Maximum of 8 lines.
8
8
  */
9
9
  export interface TextAreaProps extends InputProps {
10
+ /**
11
+ * The initial number of lines to be displayed. Maximum of 8 lines.
12
+ */
10
13
  rows?: number;
11
14
  }
12
15
 
@@ -1,11 +1,37 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
+ /**
4
+ * @property `title` the text set on the main label of the tile.
5
+ * @property `subtitle` the text set on the secondary label of the tile.
6
+ * @property `enabled` sets whether or not the tile can be tapped.
7
+ * @property `destructive` sets whether or not the tile is in a red destructive appearance.
8
+ * @property `badgeValue` the number value displayed in the top right corner of the tile.
9
+ * @property `onPress` the callback that is executed when the tile is tapped.
10
+ */
3
11
  export interface TileProps {
12
+ /**
13
+ * The text set on the main label of the tile.
14
+ */
4
15
  title: string;
16
+ /**
17
+ * The text set on the secondary label of the tile.
18
+ */
5
19
  subtitle?: string;
20
+ /**
21
+ * Sets whether or not the tile can be tapped.
22
+ */
6
23
  enabled?: boolean;
24
+ /**
25
+ * Sets whether or not the tile is in a red destructive appearance.
26
+ */
7
27
  destructive?: boolean;
28
+ /**
29
+ * The number value displayed in the top right corner of the tile.
30
+ */
8
31
  badgeValue?: number;
32
+ /**
33
+ * The callback that is executed when the tile is tapped.
34
+ */
9
35
  onPress?: () => void;
10
36
  }
11
37
 
@@ -14,6 +14,10 @@ export interface TimeFieldProps
14
14
  | 'action'
15
15
  | 'helpText'
16
16
  > {
17
+ /**
18
+ * (Android only) Whether the clock displays in 24 hour time instead of 12 hour time.
19
+ * @defaultValue false
20
+ */
17
21
  is24Hour?: boolean;
18
22
  }
19
23
 
@@ -1,10 +1,37 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
+ /**
4
+ * Represents the properties for the TimePicker component.
5
+ * @property selected - The selected time.
6
+ * @property onChange - A callback for changes.
7
+ * @property visibleState - Controls the visible state, and a callback to set the visible state as false when the dialog closes.
8
+ * @property is24Hour - (Android only) Whether the clock displays in 24 hour time instead of 12 hour time.
9
+ * @property inputMode - Whether to display the picker in inline (clock) mode or spinner mode.
10
+ */
3
11
  export interface TimePickerProps {
12
+ /**
13
+ * The selected time.
14
+ * @defaultValue The current time
15
+ */
4
16
  selected?: string;
17
+ /**
18
+ * A callback for changes.
19
+ */
5
20
  onChange?(selected: string): void;
21
+ /**
22
+ * Controls the visible state, and a callback to set the visible state as false when the dialog closes.
23
+ */
6
24
  visibleState: [boolean, (visible: boolean) => void];
25
+ /**
26
+ * (Android only) Whether the clock displays in 24 hour time instead of 12 hour time.
27
+ * @defaultValue false
28
+ */
7
29
  is24Hour?: boolean;
30
+ /**
31
+ * Whether to display the picker in inline (clock) mode or spinner mode.
32
+ * iOS only supports 'spinner'.
33
+ * @defaultValue 'inline'
34
+ */
8
35
  inputMode?: 'inline' | 'spinner';
9
36
  }
10
37
 
@@ -1,9 +1,34 @@
1
+ /**
2
+ * @property `title` the title of the `TextField`.
3
+ * @property `initialValue` populates the `TextField` with an text initial value.
4
+ * @property `placeholder` sets a placeholder value for when the `TextField` is empty.
5
+ * @property `isValid` set whether the current value in the `TextField` is valid.
6
+ * @property `errorMessage` sets an error message to present to the user.
7
+ * @property `onChangeText` a callback that is executed every time the `TextField` value changes.
8
+ */
1
9
  export interface BaseTextFieldProps {
10
+ /**
11
+ * The title of the `TextField`.
12
+ */
2
13
  title?: string;
3
- subtitle?: string;
14
+ /**
15
+ * Populates the `TextField` with an text initial value.
16
+ */
4
17
  initialValue?: string;
18
+ /**
19
+ * Sets a placeholder value for when the `TextField` is empty.
20
+ */
5
21
  placeholder?: string;
22
+ /**
23
+ * Set whether the current value in the `TextField` is valid.
24
+ */
6
25
  isValid?: boolean;
26
+ /**
27
+ * Sets an error message to present to the user.
28
+ */
7
29
  errorMessage?: string;
30
+ /**
31
+ * A callback that is executed every time the `TextField` value changes.
32
+ */
8
33
  onChangeText?: (value: string) => void;
9
34
  }