@shopify/ui-extensions 2024.4.1 → 2024.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 (361) 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.js +2 -0
  5. package/build/cjs/surfaces/checkout/components/DatePicker/DatePicker.js +4 -10
  6. package/build/cjs/surfaces/checkout/components/Progress/Progress.js +9 -0
  7. package/build/cjs/surfaces/checkout/components/Sheet/Sheet.js +16 -0
  8. package/build/cjs/surfaces/checkout/components/Switch/Switch.js +9 -0
  9. package/build/cjs/surfaces/checkout.js +6 -0
  10. package/build/cjs/surfaces/customer-account.js +4 -0
  11. package/build/cjs/surfaces/point-of-sale/components/Actiontem/ActionItem.js +7 -0
  12. package/build/cjs/surfaces/point-of-sale/components/Badge/Badge.js +6 -0
  13. package/build/cjs/surfaces/point-of-sale/components/Banner/Banner.js +9 -0
  14. package/build/cjs/surfaces/point-of-sale/components/Button/Button.js +8 -0
  15. package/build/cjs/surfaces/point-of-sale/components/CameraScanner/CameraScanner.js +6 -0
  16. package/build/cjs/surfaces/point-of-sale/components/DatePicker/DatePicker.js +8 -0
  17. package/build/cjs/surfaces/point-of-sale/components/Dialog/Dialog.js +12 -0
  18. package/build/cjs/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.js +10 -0
  19. package/build/cjs/surfaces/point-of-sale/components/Navigator/Navigator.js +1 -1
  20. package/build/cjs/surfaces/point-of-sale/components/NumberField/NumberField.js +6 -0
  21. package/build/cjs/surfaces/point-of-sale/components/PinPad/PinPad.js +24 -0
  22. package/build/cjs/surfaces/point-of-sale/components/Screen/Screen.js +18 -0
  23. package/build/cjs/surfaces/point-of-sale/components/Section/Section.js +10 -0
  24. package/build/cjs/surfaces/point-of-sale/components/TextArea/TextArea.js +6 -0
  25. package/build/cjs/surfaces/point-of-sale/components/TextField/TextField.js +6 -0
  26. package/build/cjs/surfaces/point-of-sale/components/Tile/Tile.js +9 -0
  27. package/build/cjs/surfaces/point-of-sale/components/TimePicker/TimePicker.js +9 -0
  28. package/build/esm/surfaces/admin/components/AdminPrintAction/AdminPrintAction.mjs +8 -0
  29. package/build/esm/surfaces/admin/components/DatePicker/DatePicker.mjs +12 -0
  30. package/build/esm/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.mjs +5 -0
  31. package/build/esm/surfaces/admin.mjs +1 -0
  32. package/build/esm/surfaces/checkout/components/DatePicker/DatePicker.mjs +5 -11
  33. package/build/esm/surfaces/checkout/components/Progress/Progress.mjs +5 -0
  34. package/build/esm/surfaces/checkout/components/Sheet/Sheet.mjs +12 -0
  35. package/build/esm/surfaces/checkout/components/Switch/Switch.mjs +5 -0
  36. package/build/esm/surfaces/checkout.mjs +3 -0
  37. package/build/esm/surfaces/customer-account.mjs +2 -0
  38. package/build/esm/surfaces/point-of-sale/components/Actiontem/ActionItem.mjs +7 -0
  39. package/build/esm/surfaces/point-of-sale/components/Badge/Badge.mjs +6 -0
  40. package/build/esm/surfaces/point-of-sale/components/Banner/Banner.mjs +9 -0
  41. package/build/esm/surfaces/point-of-sale/components/Button/Button.mjs +8 -0
  42. package/build/esm/surfaces/point-of-sale/components/CameraScanner/CameraScanner.mjs +6 -0
  43. package/build/esm/surfaces/point-of-sale/components/DatePicker/DatePicker.mjs +8 -0
  44. package/build/esm/surfaces/point-of-sale/components/Dialog/Dialog.mjs +12 -0
  45. package/build/esm/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.mjs +10 -0
  46. package/build/esm/surfaces/point-of-sale/components/Navigator/Navigator.mjs +1 -1
  47. package/build/esm/surfaces/point-of-sale/components/NumberField/NumberField.mjs +6 -0
  48. package/build/esm/surfaces/point-of-sale/components/PinPad/PinPad.mjs +24 -0
  49. package/build/esm/surfaces/point-of-sale/components/Screen/Screen.mjs +18 -0
  50. package/build/esm/surfaces/point-of-sale/components/Section/Section.mjs +10 -0
  51. package/build/esm/surfaces/point-of-sale/components/TextArea/TextArea.mjs +6 -0
  52. package/build/esm/surfaces/point-of-sale/components/TextField/TextField.mjs +6 -0
  53. package/build/esm/surfaces/point-of-sale/components/Tile/Tile.mjs +9 -0
  54. package/build/esm/surfaces/point-of-sale/components/TimePicker/TimePicker.mjs +9 -0
  55. package/build/esnext/surfaces/admin/components/AdminPrintAction/AdminPrintAction.esnext +8 -0
  56. package/build/esnext/surfaces/admin/components/DatePicker/DatePicker.esnext +12 -0
  57. package/build/esnext/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.esnext +5 -0
  58. package/build/esnext/surfaces/admin.esnext +1 -0
  59. package/build/esnext/surfaces/checkout/components/DatePicker/DatePicker.esnext +5 -11
  60. package/build/esnext/surfaces/checkout/components/Progress/Progress.esnext +5 -0
  61. package/build/esnext/surfaces/checkout/components/Sheet/Sheet.esnext +12 -0
  62. package/build/esnext/surfaces/checkout/components/Switch/Switch.esnext +5 -0
  63. package/build/esnext/surfaces/checkout.esnext +3 -0
  64. package/build/esnext/surfaces/customer-account.esnext +2 -0
  65. package/build/esnext/surfaces/point-of-sale/components/Actiontem/ActionItem.esnext +7 -0
  66. package/build/esnext/surfaces/point-of-sale/components/Badge/Badge.esnext +6 -0
  67. package/build/esnext/surfaces/point-of-sale/components/Banner/Banner.esnext +9 -0
  68. package/build/esnext/surfaces/point-of-sale/components/Button/Button.esnext +8 -0
  69. package/build/esnext/surfaces/point-of-sale/components/CameraScanner/CameraScanner.esnext +6 -0
  70. package/build/esnext/surfaces/point-of-sale/components/DatePicker/DatePicker.esnext +8 -0
  71. package/build/esnext/surfaces/point-of-sale/components/Dialog/Dialog.esnext +12 -0
  72. package/build/esnext/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.esnext +10 -0
  73. package/build/esnext/surfaces/point-of-sale/components/Navigator/Navigator.esnext +1 -1
  74. package/build/esnext/surfaces/point-of-sale/components/NumberField/NumberField.esnext +6 -0
  75. package/build/esnext/surfaces/point-of-sale/components/PinPad/PinPad.esnext +24 -0
  76. package/build/esnext/surfaces/point-of-sale/components/Screen/Screen.esnext +18 -0
  77. package/build/esnext/surfaces/point-of-sale/components/Section/Section.esnext +10 -0
  78. package/build/esnext/surfaces/point-of-sale/components/TextArea/TextArea.esnext +6 -0
  79. package/build/esnext/surfaces/point-of-sale/components/TextField/TextField.esnext +6 -0
  80. package/build/esnext/surfaces/point-of-sale/components/Tile/Tile.esnext +9 -0
  81. package/build/esnext/surfaces/point-of-sale/components/TimePicker/TimePicker.esnext +9 -0
  82. package/build/ts/shared.d.ts +16 -2
  83. package/build/ts/shared.d.ts.map +1 -1
  84. package/build/ts/surfaces/admin/api/block/block.d.ts +5 -0
  85. package/build/ts/surfaces/admin/api/block/block.d.ts.map +1 -1
  86. package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts +1 -1
  87. package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts.map +1 -1
  88. package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts +1 -1
  89. package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts.map +1 -1
  90. package/build/ts/surfaces/admin/api/print-action/print-action.d.ts +10 -0
  91. package/build/ts/surfaces/admin/api/print-action/print-action.d.ts.map +1 -0
  92. package/build/ts/surfaces/admin/api/{extension-targets/extension-targets.doc.d.ts → print-action/print-action.doc.d.ts} +1 -1
  93. package/build/ts/surfaces/admin/api/print-action/print-action.doc.d.ts.map +1 -0
  94. package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts +221 -0
  95. package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts.map +1 -0
  96. package/build/ts/surfaces/admin/api.d.ts +1 -0
  97. package/build/ts/surfaces/admin/api.d.ts.map +1 -1
  98. package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.d.ts +16 -0
  99. package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.d.ts.map +1 -0
  100. package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.doc.d.ts +4 -0
  101. package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.doc.d.ts.map +1 -0
  102. package/build/ts/surfaces/admin/components/Image/Image.d.ts +2 -2
  103. package/build/ts/surfaces/admin/components.d.ts +2 -0
  104. package/build/ts/surfaces/admin/components.d.ts.map +1 -1
  105. package/build/ts/surfaces/admin/extension-targets.d.ts +60 -6
  106. package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
  107. package/build/ts/surfaces/checkout/api/address-autocomplete/format-suggestion.d.ts +20 -0
  108. package/build/ts/surfaces/checkout/api/address-autocomplete/format-suggestion.d.ts.map +1 -0
  109. package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts +51 -0
  110. package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts.map +1 -0
  111. package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts +236 -0
  112. package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts.map +1 -0
  113. package/build/ts/surfaces/checkout/api/address-autocomplete/suggest.d.ts +56 -0
  114. package/build/ts/surfaces/checkout/api/address-autocomplete/suggest.d.ts.map +1 -0
  115. package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +11 -7
  116. package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -1
  117. package/build/ts/surfaces/checkout/api/docs.d.ts +2 -0
  118. package/build/ts/surfaces/checkout/api/docs.d.ts.map +1 -1
  119. package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts +5 -0
  120. package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts.map +1 -1
  121. package/build/ts/surfaces/checkout/api/shared.d.ts +6 -0
  122. package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
  123. package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts +13 -0
  124. package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts.map +1 -1
  125. package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts +49 -3
  126. package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts.map +1 -1
  127. package/build/ts/surfaces/checkout/api/standard/standard.d.ts +228 -70
  128. package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
  129. package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.doc.d.ts.map +1 -1
  130. package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts +14 -6
  131. package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts.map +1 -1
  132. package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.doc.d.ts.map +1 -1
  133. package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts +15 -6
  134. package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts.map +1 -1
  135. package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts.map +1 -1
  136. package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts +15 -6
  137. package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts.map +1 -1
  138. package/build/ts/surfaces/checkout/components/GridItem/GridItem.doc.d.ts.map +1 -1
  139. package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts +2 -2
  140. package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts.map +1 -1
  141. package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.doc.d.ts.map +1 -1
  142. package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts +15 -6
  143. package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts.map +1 -1
  144. package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.doc.d.ts.map +1 -1
  145. package/build/ts/surfaces/checkout/components/Link/Link.d.ts +1 -1
  146. package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts +12 -11
  147. package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts.map +1 -1
  148. package/build/ts/surfaces/checkout/components/Pressable/Pressable.doc.d.ts.map +1 -1
  149. package/build/ts/surfaces/checkout/components/Progress/Progress.d.ts +40 -0
  150. package/build/ts/surfaces/checkout/components/Progress/Progress.d.ts.map +1 -0
  151. package/build/ts/surfaces/checkout/components/Progress/Progress.doc.d.ts +4 -0
  152. package/build/ts/surfaces/checkout/components/Progress/Progress.doc.d.ts.map +1 -0
  153. package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts +32 -5
  154. package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts.map +1 -1
  155. package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.doc.d.ts.map +1 -1
  156. package/build/ts/surfaces/checkout/components/Sheet/Sheet.d.ts +55 -0
  157. package/build/ts/surfaces/checkout/components/Sheet/Sheet.d.ts.map +1 -0
  158. package/build/ts/surfaces/checkout/components/Sheet/Sheet.doc.d.ts +4 -0
  159. package/build/ts/surfaces/checkout/components/Sheet/Sheet.doc.d.ts.map +1 -0
  160. package/build/ts/surfaces/checkout/components/Spinner/Spinner.doc.d.ts.map +1 -1
  161. package/build/ts/surfaces/checkout/components/Switch/Switch.d.ts +49 -0
  162. package/build/ts/surfaces/checkout/components/Switch/Switch.d.ts.map +1 -0
  163. package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts +4 -0
  164. package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts.map +1 -0
  165. package/build/ts/surfaces/checkout/components/View/View.d.ts +12 -11
  166. package/build/ts/surfaces/checkout/components/View/View.d.ts.map +1 -1
  167. package/build/ts/surfaces/checkout/components/View/View.doc.d.ts.map +1 -1
  168. package/build/ts/surfaces/checkout/components/shared.d.ts +1 -1
  169. package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -1
  170. package/build/ts/surfaces/checkout/components.d.ts +7 -1
  171. package/build/ts/surfaces/checkout/components.d.ts.map +1 -1
  172. package/build/ts/surfaces/checkout/helper.docs.d.ts.map +1 -1
  173. package/build/ts/surfaces/checkout/style/style.doc.d.ts.map +1 -1
  174. package/build/ts/surfaces/checkout/style/types.d.ts +10 -3
  175. package/build/ts/surfaces/checkout/style/types.d.ts.map +1 -1
  176. package/build/ts/surfaces/checkout/targets.d.ts +22 -14
  177. package/build/ts/surfaces/checkout/targets.d.ts.map +1 -1
  178. package/build/ts/surfaces/checkout.d.ts +9 -5
  179. package/build/ts/surfaces/checkout.d.ts.map +1 -1
  180. package/build/ts/surfaces/customer-account/components/shared-checkout-components.d.ts +1 -1
  181. package/build/ts/surfaces/customer-account/components/shared-checkout-components.d.ts.map +1 -1
  182. package/build/ts/surfaces/point-of-sale/api/action-target-api/action-target-api.d.ts +9 -0
  183. package/build/ts/surfaces/point-of-sale/api/action-target-api/action-target-api.d.ts.map +1 -0
  184. package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +1 -1
  185. package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts +10 -0
  186. package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts.map +1 -0
  187. package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts +18 -0
  188. package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts.map +1 -0
  189. package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts +2 -2
  190. package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts +10 -0
  191. package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts.map +1 -0
  192. package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts +2 -2
  193. package/build/ts/surfaces/point-of-sale/api.d.ts +6 -1
  194. package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
  195. package/build/ts/surfaces/point-of-sale/components/Actiontem/ActionItem.d.ts +12 -0
  196. package/build/ts/surfaces/point-of-sale/components/Actiontem/ActionItem.d.ts.map +1 -1
  197. package/build/ts/surfaces/point-of-sale/components/Badge/Badge.d.ts +14 -0
  198. package/build/ts/surfaces/point-of-sale/components/Badge/Badge.d.ts.map +1 -1
  199. package/build/ts/surfaces/point-of-sale/components/Banner/Banner.d.ts +17 -8
  200. package/build/ts/surfaces/point-of-sale/components/Banner/Banner.d.ts.map +1 -1
  201. package/build/ts/surfaces/point-of-sale/components/Button/Button.d.ts +22 -0
  202. package/build/ts/surfaces/point-of-sale/components/Button/Button.d.ts.map +1 -1
  203. package/build/ts/surfaces/point-of-sale/components/CameraScanner/CameraScanner.d.ts +20 -2
  204. package/build/ts/surfaces/point-of-sale/components/CameraScanner/CameraScanner.d.ts.map +1 -1
  205. package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.d.ts +21 -0
  206. package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.d.ts.map +1 -1
  207. package/build/ts/surfaces/point-of-sale/components/Dialog/Dialog.d.ts +38 -0
  208. package/build/ts/surfaces/point-of-sale/components/Dialog/Dialog.d.ts.map +1 -1
  209. package/build/ts/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.d.ts +17 -0
  210. package/build/ts/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.d.ts.map +1 -1
  211. package/build/ts/surfaces/point-of-sale/components/Icon/Icon.d.ts +7 -0
  212. package/build/ts/surfaces/point-of-sale/components/Icon/Icon.d.ts.map +1 -1
  213. package/build/ts/surfaces/point-of-sale/components/Image/Image.d.ts +3 -0
  214. package/build/ts/surfaces/point-of-sale/components/Image/Image.d.ts.map +1 -1
  215. package/build/ts/surfaces/point-of-sale/components/List/List.d.ts +14 -2
  216. package/build/ts/surfaces/point-of-sale/components/List/List.d.ts.map +1 -1
  217. package/build/ts/surfaces/point-of-sale/components/Navigator/Navigator.d.ts +4 -1
  218. package/build/ts/surfaces/point-of-sale/components/Navigator/Navigator.d.ts.map +1 -1
  219. package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.d.ts +0 -2
  220. package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.d.ts.map +1 -1
  221. package/build/ts/surfaces/point-of-sale/components/PinPad/PinPad.d.ts +27 -0
  222. package/build/ts/surfaces/point-of-sale/components/PinPad/PinPad.d.ts.map +1 -1
  223. package/build/ts/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.d.ts +12 -0
  224. package/build/ts/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.d.ts.map +1 -1
  225. package/build/ts/surfaces/point-of-sale/components/Screen/Screen.d.ts +43 -2
  226. package/build/ts/surfaces/point-of-sale/components/Screen/Screen.d.ts.map +1 -1
  227. package/build/ts/surfaces/point-of-sale/components/SearchBar/SearchBar.d.ts +18 -0
  228. package/build/ts/surfaces/point-of-sale/components/SearchBar/SearchBar.d.ts.map +1 -1
  229. package/build/ts/surfaces/point-of-sale/components/Section/Section.d.ts +20 -0
  230. package/build/ts/surfaces/point-of-sale/components/Section/Section.d.ts.map +1 -1
  231. package/build/ts/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.d.ts +18 -0
  232. package/build/ts/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  233. package/build/ts/surfaces/point-of-sale/components/Selectable/Selectable.d.ts +6 -0
  234. package/build/ts/surfaces/point-of-sale/components/Selectable/Selectable.d.ts.map +1 -1
  235. package/build/ts/surfaces/point-of-sale/components/Stack/Stack.d.ts +27 -1
  236. package/build/ts/surfaces/point-of-sale/components/Stack/Stack.d.ts.map +1 -1
  237. package/build/ts/surfaces/point-of-sale/components/Stepper/Stepper.d.ts +3 -3
  238. package/build/ts/surfaces/point-of-sale/components/Text/Text.d.ts +6 -0
  239. package/build/ts/surfaces/point-of-sale/components/Text/Text.d.ts.map +1 -1
  240. package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.d.ts +3 -0
  241. package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.d.ts.map +1 -1
  242. package/build/ts/surfaces/point-of-sale/components/Tile/Tile.d.ts +26 -0
  243. package/build/ts/surfaces/point-of-sale/components/Tile/Tile.d.ts.map +1 -1
  244. package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.d.ts +4 -0
  245. package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.d.ts.map +1 -1
  246. package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.d.ts +27 -0
  247. package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.d.ts.map +1 -1
  248. package/build/ts/surfaces/point-of-sale/components/shared/BaseTextField.d.ts +26 -1
  249. package/build/ts/surfaces/point-of-sale/components/shared/BaseTextField.d.ts.map +1 -1
  250. package/build/ts/surfaces/point-of-sale/components/shared/InputField.d.ts +48 -0
  251. package/build/ts/surfaces/point-of-sale/components/shared/InputField.d.ts.map +1 -1
  252. package/build/ts/surfaces/point-of-sale/targets.d.ts +14 -3
  253. package/build/ts/surfaces/point-of-sale/targets.d.ts.map +1 -1
  254. package/build/tsconfig.tsbuildinfo +1 -1
  255. package/package.json +5 -3
  256. package/src/shared.ts +23 -0
  257. package/src/surfaces/admin/api/block/block.ts +6 -0
  258. package/src/surfaces/admin/api/checkout-rules/metafields.ts +1 -1
  259. package/src/surfaces/admin/api/checkout-rules/validation-settings.doc.ts +1 -1
  260. package/src/surfaces/admin/api/order-routing-rule/metafields.ts +1 -1
  261. package/src/surfaces/admin/api/print-action/print-action.doc.ts +20 -0
  262. package/src/surfaces/admin/api/print-action/print-action.ts +12 -0
  263. package/src/surfaces/admin/api/resource-picker/resource-picker.ts +240 -0
  264. package/src/surfaces/admin/api.ts +1 -0
  265. package/src/surfaces/admin/components/AdminPrintAction/AdminPrintAction.doc.ts +52 -0
  266. package/src/surfaces/admin/components/AdminPrintAction/AdminPrintAction.ts +17 -0
  267. package/src/surfaces/admin/components/AdminPrintAction/examples/basic-adminprintaction.example.ts +14 -0
  268. package/src/surfaces/admin/components/Image/Image.ts +2 -2
  269. package/src/surfaces/admin/components.ts +2 -0
  270. package/src/surfaces/admin/extension-targets.ts +100 -5
  271. package/src/surfaces/checkout/api/address-autocomplete/format-suggestion.ts +24 -0
  272. package/src/surfaces/checkout/api/address-autocomplete/shared.ts +59 -0
  273. package/src/surfaces/checkout/api/address-autocomplete/standard.ts +289 -0
  274. package/src/surfaces/checkout/api/address-autocomplete/suggest.ts +61 -0
  275. package/src/surfaces/checkout/api/checkout/checkout.ts +16 -7
  276. package/src/surfaces/checkout/api/docs.ts +3 -0
  277. package/src/surfaces/checkout/api/order-status/order-status.ts +5 -0
  278. package/src/surfaces/checkout/api/shared.ts +7 -0
  279. package/src/surfaces/checkout/api/shipping/shipping-option-item.ts +15 -0
  280. package/src/surfaces/checkout/api/shipping/shipping-option-list.ts +58 -3
  281. package/src/surfaces/checkout/api/standard/standard.ts +249 -76
  282. package/src/surfaces/checkout/components/BlockLayout/BlockLayout.doc.ts +8 -1
  283. package/src/surfaces/checkout/components/BlockStack/BlockStack.doc.ts +8 -1
  284. package/src/surfaces/checkout/components/BlockStack/BlockStack.ts +14 -4
  285. package/src/surfaces/checkout/components/Grid/Grid.doc.ts +6 -0
  286. package/src/surfaces/checkout/components/Grid/Grid.ts +15 -4
  287. package/src/surfaces/checkout/components/GridItem/GridItem.doc.ts +6 -0
  288. package/src/surfaces/checkout/components/GridItem/GridItem.ts +15 -4
  289. package/src/surfaces/checkout/components/Icon/Icon.ts +3 -0
  290. package/src/surfaces/checkout/components/InlineLayout/InlineLayout.doc.ts +8 -1
  291. package/src/surfaces/checkout/components/InlineStack/InlineStack.doc.ts +8 -1
  292. package/src/surfaces/checkout/components/InlineStack/InlineStack.ts +15 -4
  293. package/src/surfaces/checkout/components/Link/Link.ts +1 -1
  294. package/src/surfaces/checkout/components/Pressable/Pressable.doc.ts +8 -1
  295. package/src/surfaces/checkout/components/Pressable/Pressable.ts +12 -11
  296. package/src/surfaces/checkout/components/Progress/Progress.doc.ts +89 -0
  297. package/src/surfaces/checkout/components/Progress/Progress.ts +44 -0
  298. package/src/surfaces/checkout/components/Progress/examples/basic-progress.example.ts +9 -0
  299. package/src/surfaces/checkout/components/ScrollView/ScrollView.doc.ts +8 -1
  300. package/src/surfaces/checkout/components/ScrollView/ScrollView.ts +31 -3
  301. package/src/surfaces/checkout/components/Sheet/Sheet.doc.ts +69 -0
  302. package/src/surfaces/checkout/components/Sheet/Sheet.ts +56 -0
  303. package/src/surfaces/checkout/components/Sheet/examples/basic-sheet.example.ts +29 -0
  304. package/src/surfaces/checkout/components/Spinner/Spinner.doc.ts +8 -1
  305. package/src/surfaces/checkout/components/Switch/Switch.doc.ts +80 -0
  306. package/src/surfaces/checkout/components/Switch/Switch.ts +50 -0
  307. package/src/surfaces/checkout/components/Switch/examples/basic-switch.example.ts +9 -0
  308. package/src/surfaces/checkout/components/View/View.doc.ts +8 -1
  309. package/src/surfaces/checkout/components/View/View.ts +12 -11
  310. package/src/surfaces/checkout/components/shared.ts +1 -1
  311. package/src/surfaces/checkout/components.ts +10 -0
  312. package/src/surfaces/checkout/helper.docs.ts +57 -0
  313. package/src/surfaces/checkout/style/examples/hiding.example.tsx +8 -0
  314. package/src/surfaces/checkout/style/style.doc.ts +14 -0
  315. package/src/surfaces/checkout/style/types.ts +10 -3
  316. package/src/surfaces/checkout/targets.ts +31 -14
  317. package/src/surfaces/checkout.ts +37 -4
  318. package/src/surfaces/customer-account/components/shared-checkout-components.ts +4 -0
  319. package/src/surfaces/point-of-sale/api/action-target-api/action-target-api.ts +9 -0
  320. package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +1 -1
  321. package/src/surfaces/point-of-sale/api/customer-api/customer-api.ts +10 -0
  322. package/src/surfaces/point-of-sale/api/draft-order-api/draft-order-api.ts +20 -0
  323. package/src/surfaces/point-of-sale/api/order-api/order-api.tsx +2 -2
  324. package/src/surfaces/point-of-sale/api/product-api/product-api.ts +10 -0
  325. package/src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts +2 -2
  326. package/src/surfaces/point-of-sale/api.ts +19 -1
  327. package/src/surfaces/point-of-sale/components/Actiontem/ActionItem.ts +12 -0
  328. package/src/surfaces/point-of-sale/components/Badge/Badge.ts +16 -0
  329. package/src/surfaces/point-of-sale/components/Banner/Banner.ts +17 -8
  330. package/src/surfaces/point-of-sale/components/Button/Button.ts +22 -0
  331. package/src/surfaces/point-of-sale/components/CameraScanner/CameraScanner.ts +21 -5
  332. package/src/surfaces/point-of-sale/components/DatePicker/DatePicker.ts +22 -0
  333. package/src/surfaces/point-of-sale/components/Dialog/Dialog.ts +46 -0
  334. package/src/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.ts +17 -1
  335. package/src/surfaces/point-of-sale/components/Icon/Icon.ts +7 -0
  336. package/src/surfaces/point-of-sale/components/Image/Image.ts +3 -0
  337. package/src/surfaces/point-of-sale/components/List/List.ts +16 -2
  338. package/src/surfaces/point-of-sale/components/Navigator/Navigator.ts +4 -1
  339. package/src/surfaces/point-of-sale/components/NumberField/NumberField.ts +0 -2
  340. package/src/surfaces/point-of-sale/components/PinPad/PinPad.ts +27 -0
  341. package/src/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.ts +12 -0
  342. package/src/surfaces/point-of-sale/components/Screen/Screen.ts +43 -2
  343. package/src/surfaces/point-of-sale/components/SearchBar/SearchBar.ts +18 -0
  344. package/src/surfaces/point-of-sale/components/Section/Section.ts +20 -0
  345. package/src/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.ts +18 -0
  346. package/src/surfaces/point-of-sale/components/Selectable/Selectable.ts +6 -0
  347. package/src/surfaces/point-of-sale/components/Stack/Stack.ts +27 -1
  348. package/src/surfaces/point-of-sale/components/Stepper/Stepper.ts +3 -3
  349. package/src/surfaces/point-of-sale/components/Text/Text.ts +6 -0
  350. package/src/surfaces/point-of-sale/components/TextArea/TextArea.ts +3 -0
  351. package/src/surfaces/point-of-sale/components/Tile/Tile.ts +26 -0
  352. package/src/surfaces/point-of-sale/components/TimeField/TimeField.ts +4 -0
  353. package/src/surfaces/point-of-sale/components/TimePicker/TimePicker.ts +27 -0
  354. package/src/surfaces/point-of-sale/components/shared/BaseTextField.ts +26 -1
  355. package/src/surfaces/point-of-sale/components/shared/InputField.ts +48 -0
  356. package/src/surfaces/point-of-sale/targets.ts +56 -6
  357. package/build/ts/surfaces/admin/api/extension-targets/extension-targets.doc.d.ts.map +0 -1
  358. package/build/ts/surfaces/checkout/api/address-autocomplete/address-autocomplete.d.ts +0 -76
  359. package/build/ts/surfaces/checkout/api/address-autocomplete/address-autocomplete.d.ts.map +0 -1
  360. package/src/surfaces/admin/api/extension-targets/extension-targets.doc.ts +0 -20
  361. package/src/surfaces/checkout/api/address-autocomplete/address-autocomplete.ts +0 -87
@@ -1,9 +1,27 @@
1
1
  export interface SearchBarProps {
2
+ /**
3
+ * 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.
4
+ */
2
5
  initialValue?: string;
6
+ /**
7
+ * A callback containing the new text value of the search bar.
8
+ */
3
9
  onTextChange?: (value: string) => void;
10
+ /**
11
+ * A callback when the search button is tapped.
12
+ */
4
13
  onSearch: (value: string) => void;
14
+ /**
15
+ * A callback when the input is focused.
16
+ */
5
17
  onFocus?: () => void;
18
+ /**
19
+ * Whether the text can be changed.
20
+ */
6
21
  editable?: boolean;
22
+ /**
23
+ * The placeholder value to display in the search bar when no text is entered.
24
+ */
7
25
  placeholder?: string;
8
26
  }
9
27
  export declare const SearchBar: "SearchBar" & {
@@ -1 +1 @@
1
- {"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/SearchBar/SearchBar.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,SAAS;;;;CAErB,CAAC"}
1
+ {"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/SearchBar/SearchBar.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,SAAS;;;;CAErB,CAAC"}
@@ -1,9 +1,29 @@
1
+ /** Allows the implementation of an action at the top right of a `Section`.
2
+ * @property `title` the title describing the action.
3
+ * @property `onPress` the callback when the action is tapped by the user.
4
+ */
1
5
  export interface SectionHeaderAction {
6
+ /**
7
+ * The title describing the action.
8
+ */
2
9
  title: string;
10
+ /**
11
+ * The callback when the action is tapped by the user.
12
+ */
3
13
  onPress: () => void;
4
14
  }
15
+ /** Renders content that is bound by a border, with a title and a call to action at the top.
16
+ * @property `title` the title of the section.
17
+ * @property `action` the action in the top right of the section that can be triggered by a tap.
18
+ */
5
19
  export interface SectionProps {
20
+ /**
21
+ * The title of the section.
22
+ */
6
23
  title?: string;
24
+ /**
25
+ * The action in the top right of the section that can be triggered by a tap.
26
+ */
7
27
  action?: SectionHeaderAction;
8
28
  }
9
29
  export declare const Section: "Section" & {
@@ -1 +1 @@
1
- {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Section/Section.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B;AAED,eAAO,MAAM,OAAO;;;;CAEnB,CAAC"}
1
+ {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Section/Section.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B;AAED,eAAO,MAAM,OAAO;;;;CAEnB,CAAC"}
@@ -1,11 +1,29 @@
1
1
  export interface Segment {
2
+ /**
3
+ * The id of the segment.
4
+ */
2
5
  id: string;
6
+ /**
7
+ * The label of the segment.
8
+ */
3
9
  label: string;
10
+ /**
11
+ * Whether the segment is disabled.
12
+ */
4
13
  disabled: boolean;
5
14
  }
6
15
  export interface SegmentedControlProps {
16
+ /**
17
+ * The segments to display.
18
+ */
7
19
  segments: Segment[];
20
+ /**
21
+ * The id of the selected segment.
22
+ */
8
23
  selected: string;
24
+ /**
25
+ * A callback when a segment is selected.
26
+ */
9
27
  onSelect: (id: string) => void;
10
28
  }
11
29
  export declare const SegmentedControl: "SegmentedControl" & {
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED,eAAO,MAAM,gBAAgB;;;;CAGR,CAAC"}
1
+ {"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED,eAAO,MAAM,gBAAgB;;;;CAGR,CAAC"}
@@ -1,5 +1,11 @@
1
1
  export interface SelectableProps {
2
+ /**
3
+ * The callback on press.
4
+ */
2
5
  onPress: () => void;
6
+ /**
7
+ * Whether the selectable reacts to presses.
8
+ */
3
9
  disabled?: boolean;
4
10
  }
5
11
  export declare const Selectable: "Selectable" & {
@@ -1 +1 @@
1
- {"version":3,"file":"Selectable.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Selectable/Selectable.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,UAAU;;;;CAEtB,CAAC"}
1
+ {"version":3,"file":"Selectable.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Selectable/Selectable.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,UAAU;;;;CAEtB,CAAC"}
@@ -1,14 +1,40 @@
1
1
  import type { HorizontalSpacing, VerticalSpacing } from '../Spacing/Spacing';
2
2
  export type Spacing = 0.5 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | 16;
3
3
  export interface StackProps {
4
+ /**
5
+ * The direction of the stack.
6
+ */
4
7
  direction: 'vertical' | 'horizontal';
8
+ /**
9
+ * The alignment of the children along the cross axis.
10
+ * @defaultValue 'flex-end'
11
+ */
5
12
  alignment?: 'flex-end' | 'center' | 'flex-start' | 'space-around' | 'space-between' | 'space-evenly';
13
+ /**
14
+ * The vertical padding around the stack.
15
+ */
6
16
  paddingVertical?: VerticalSpacing;
17
+ /**
18
+ * The horizontal padding around the stack.
19
+ */
7
20
  paddingHorizontal?: HorizontalSpacing;
21
+ /**
22
+ * The spacing between each child in the stack.
23
+ * @defaultValue 1
24
+ */
8
25
  spacing?: Spacing;
26
+ /**
27
+ * Whether the children should be stretched to fill the cross axis.
28
+ */
9
29
  flexChildren?: boolean;
30
+ /**
31
+ * The flex value for the stack.
32
+ */
10
33
  flex?: number;
11
- flexWrap?: 'wrap' | 'nowrap' | 'wrap-reverse' | undefined;
34
+ /**
35
+ * Wrap behavior for the children of the stack.
36
+ */
37
+ flexWrap?: 'wrap' | 'nowrap' | 'wrap-reverse';
12
38
  }
13
39
  export declare const Stack: "Stack" & {
14
40
  readonly type?: "Stack" | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Stack/Stack.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,iBAAiB,EAAE,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAE3E,MAAM,MAAM,OAAO,GACf,GAAG,GACH,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,CAAC;AAEP,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,UAAU,GAAG,YAAY,CAAC;IACrC,SAAS,CAAC,EACN,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,cAAc,GACd,eAAe,GACf,cAAc,CAAC;IACnB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,cAAc,GAAG,SAAS,CAAC;CAC3D;AAED,eAAO,MAAM,KAAK;;;;CAAsD,CAAC"}
1
+ {"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Stack/Stack.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,iBAAiB,EAAE,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAE3E,MAAM,MAAM,OAAO,GACf,GAAG,GACH,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,CAAC;AAEP,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,SAAS,EAAE,UAAU,GAAG,YAAY,CAAC;IACrC;;;OAGG;IACH,SAAS,CAAC,EACN,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,cAAc,GACd,eAAe,GACf,cAAc,CAAC;IACnB;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;OAEG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,cAAc,CAAC;CAC/C;AAED,eAAO,MAAM,KAAK;;;;CAAsD,CAAC"}
@@ -4,12 +4,12 @@ export interface StepperProps {
4
4
  */
5
5
  initialValue: number;
6
6
  /**
7
- * A callback that is called when the value of the stepper changes.
7
+ * A callback when the value of the stepper changes.
8
8
  */
9
9
  onValueChanged: (value: number) => void;
10
10
  /**
11
- * @defaultValue 1
12
11
  * Use to set the minimum value of the stepper.
12
+ * @defaultValue 1
13
13
  */
14
14
  minimumValue?: number;
15
15
  /**
@@ -21,8 +21,8 @@ export interface StepperProps {
21
21
  */
22
22
  value?: number;
23
23
  /**
24
- * @defaultValue false
25
24
  * Whether the field can be modified.
25
+ * @defaultValue false
26
26
  */
27
27
  disabled?: boolean;
28
28
  }
@@ -1,7 +1,13 @@
1
1
  export type TextVariant = 'sectionHeader' | 'captionRegular' | 'captionRegularTall' | 'captionMedium' | 'body' | 'headingSmall' | 'headingLarge' | 'display';
2
2
  export type ColorType = 'TextNeutral' | 'TextSubdued' | 'TextDisabled' | 'TextWarning' | 'TextCritical' | 'TextSuccess' | 'TextInteractive' | 'TextHighlight';
3
3
  export interface TextProps {
4
+ /**
5
+ * The text variant.
6
+ */
4
7
  variant?: TextVariant;
8
+ /**
9
+ * The text color.
10
+ */
5
11
  color?: ColorType;
6
12
  }
7
13
  export declare const Text: "Text" & {
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Text/Text.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GACnB,eAAe,GACf,gBAAgB,GAChB,oBAAoB,GACpB,eAAe,GACf,MAAM,GACN,cAAc,GACd,cAAc,GACd,SAAS,CAAC;AAEd,MAAM,MAAM,SAAS,GACjB,aAAa,GACb,aAAa,GACb,cAAc,GACd,aAAa,GACb,cAAc,GACd,aAAa,GACb,iBAAiB,GACjB,eAAe,CAAC;AAEpB,MAAM,WAAW,SAAS;IACxB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,eAAO,MAAM,IAAI;;;;CAAmD,CAAC"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Text/Text.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GACnB,eAAe,GACf,gBAAgB,GAChB,oBAAoB,GACpB,eAAe,GACf,MAAM,GACN,cAAc,GACd,cAAc,GACd,SAAS,CAAC;AAEd,MAAM,MAAM,SAAS,GACjB,aAAa,GACb,aAAa,GACb,cAAc,GACd,aAAa,GACb,cAAc,GACd,aAAa,GACb,iBAAiB,GACjB,eAAe,CAAC;AAEpB,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,eAAO,MAAM,IAAI;;;;CAAmD,CAAC"}
@@ -5,6 +5,9 @@ import type { InputProps } from '../shared/InputField';
5
5
  * @property {number} [rows] - The initial number of lines to be displayed. Maximum of 8 lines.
6
6
  */
7
7
  export interface TextAreaProps extends InputProps {
8
+ /**
9
+ * The initial number of lines to be displayed. Maximum of 8 lines.
10
+ */
8
11
  rows?: number;
9
12
  }
10
13
  export declare const TextArea: "TextArea" & {
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/TextArea/TextArea.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAErD;;;;GAIG;AACH,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,QAAQ;;;;CAEpB,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/TextArea/TextArea.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAErD;;;;GAIG;AACH,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,QAAQ;;;;CAEpB,CAAC"}
@@ -1,9 +1,35 @@
1
+ /**
2
+ * @property `title` the text set on the main label of the tile.
3
+ * @property `subtitle` the text set on the secondary label of the tile.
4
+ * @property `enabled` sets whether or not the tile can be tapped.
5
+ * @property `destructive` sets whether or not the tile is in a red destructive appearance.
6
+ * @property `badgeValue` the number value displayed in the top right corner of the tile.
7
+ * @property `onPress` the callback that is executed when the tile is tapped.
8
+ */
1
9
  export interface TileProps {
10
+ /**
11
+ * The text set on the main label of the tile.
12
+ */
2
13
  title: string;
14
+ /**
15
+ * The text set on the secondary label of the tile.
16
+ */
3
17
  subtitle?: string;
18
+ /**
19
+ * Sets whether or not the tile can be tapped.
20
+ */
4
21
  enabled?: boolean;
22
+ /**
23
+ * Sets whether or not the tile is in a red destructive appearance.
24
+ */
5
25
  destructive?: boolean;
26
+ /**
27
+ * The number value displayed in the top right corner of the tile.
28
+ */
6
29
  badgeValue?: number;
30
+ /**
31
+ * The callback that is executed when the tile is tapped.
32
+ */
7
33
  onPress?: () => void;
8
34
  }
9
35
  export declare const Tile: "Tile" & {
@@ -1 +1 @@
1
- {"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Tile/Tile.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,IAAI;;;;CAAmD,CAAC"}
1
+ {"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Tile/Tile.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,IAAI;;;;CAAmD,CAAC"}
@@ -1,5 +1,9 @@
1
1
  import { InputProps } from '../shared/InputField';
2
2
  export interface TimeFieldProps extends Pick<InputProps, 'value' | 'error' | 'label' | 'disabled' | 'onFocus' | 'onBlur' | 'onChange' | 'action' | 'helpText'> {
3
+ /**
4
+ * (Android only) Whether the clock displays in 24 hour time instead of 12 hour time.
5
+ * @defaultValue false
6
+ */
3
7
  is24Hour?: boolean;
4
8
  }
5
9
  export declare const TimeField: "TimeField" & {
@@ -1 +1 @@
1
- {"version":3,"file":"TimeField.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/TimeField/TimeField.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAEhD,MAAM,WAAW,cACf,SAAQ,IAAI,CACV,UAAU,EACR,OAAO,GACP,OAAO,GACP,OAAO,GACP,UAAU,GACV,SAAS,GACT,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,UAAU,CACb;IACD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,SAAS;;;;CAErB,CAAC"}
1
+ {"version":3,"file":"TimeField.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/TimeField/TimeField.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAEhD,MAAM,WAAW,cACf,SAAQ,IAAI,CACV,UAAU,EACR,OAAO,GACP,OAAO,GACP,OAAO,GACP,UAAU,GACV,SAAS,GACT,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,UAAU,CACb;IACD;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,SAAS;;;;CAErB,CAAC"}
@@ -1,8 +1,35 @@
1
+ /**
2
+ * Represents the properties for the TimePicker component.
3
+ * @property selected - The selected time.
4
+ * @property onChange - A callback for changes.
5
+ * @property visibleState - Controls the visible state, and a callback to set the visible state as false when the dialog closes.
6
+ * @property is24Hour - (Android only) Whether the clock displays in 24 hour time instead of 12 hour time.
7
+ * @property inputMode - Whether to display the picker in inline (clock) mode or spinner mode.
8
+ */
1
9
  export interface TimePickerProps {
10
+ /**
11
+ * The selected time.
12
+ * @defaultValue The current time
13
+ */
2
14
  selected?: string;
15
+ /**
16
+ * A callback for changes.
17
+ */
3
18
  onChange?(selected: string): void;
19
+ /**
20
+ * Controls the visible state, and a callback to set the visible state as false when the dialog closes.
21
+ */
4
22
  visibleState: [boolean, (visible: boolean) => void];
23
+ /**
24
+ * (Android only) Whether the clock displays in 24 hour time instead of 12 hour time.
25
+ * @defaultValue false
26
+ */
5
27
  is24Hour?: boolean;
28
+ /**
29
+ * Whether to display the picker in inline (clock) mode or spinner mode.
30
+ * iOS only supports 'spinner'.
31
+ * @defaultValue 'inline'
32
+ */
6
33
  inputMode?: 'inline' | 'spinner';
7
34
  }
8
35
  export declare const TimePicker: "TimePicker" & {
@@ -1 +1 @@
1
- {"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/TimePicker/TimePicker.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,YAAY,EAAE,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC,CAAC;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAClC;AAED,eAAO,MAAM,UAAU;;;;CAEtB,CAAC"}
1
+ {"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/TimePicker/TimePicker.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;OAEG;IACH,YAAY,EAAE,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC,CAAC;IACpD;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAClC;AAED,eAAO,MAAM,UAAU;;;;CAEtB,CAAC"}
@@ -1,10 +1,35 @@
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
  }
10
35
  //# sourceMappingURL=BaseTextField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseTextField.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/shared/BaseTextField.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC"}
1
+ {"version":3,"file":"BaseTextField.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/shared/BaseTextField.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC"}
@@ -6,8 +6,17 @@
6
6
  * @property {function(): void} onPress - A callback to be performed.
7
7
  */
8
8
  export interface InputAction {
9
+ /**
10
+ * The text displayed in the button.
11
+ */
9
12
  label: string;
13
+ /**
14
+ * A callback to be performed.
15
+ */
10
16
  onPress: () => void;
17
+ /**
18
+ * Whether the button can be pressed.
19
+ */
11
20
  disabled?: boolean;
12
21
  }
13
22
  /**
@@ -28,18 +37,57 @@ export interface InputAction {
28
37
  * @property {number?} [maxLength] - Specifies the maximum number of characters allowed.
29
38
  */
30
39
  export interface InputProps {
40
+ /**
41
+ * Whether the field can be modified.
42
+ */
31
43
  disabled?: boolean;
44
+ /**
45
+ * Indicates an error to the user. The field is given specific stylistic treatment to communicate problems that have to be resolved immediately.
46
+ */
32
47
  error?: string;
48
+ /**
49
+ * The content to use as the field label.
50
+ */
33
51
  label: string;
52
+ /**
53
+ * The callback when focus is removed.
54
+ */
34
55
  onBlur?: () => void;
56
+ /**
57
+ * The callback when the user has finished editing a field.
58
+ */
35
59
  onChange?: (value: string) => void;
60
+ /**
61
+ * The callback when input is focused.
62
+ */
36
63
  onFocus?: () => void;
64
+ /**
65
+ * Callback when the user makes any changes in the field. As noted in the documentation for `onChange`, you **must not** use this to update `value` — use the `onChange` callback for that purpose. Use the `onInput` prop when you need to do something as soon as the user makes a change, like clearing validation errors that apply to the field as soon as the user begins making the necessary adjustments.
66
+ */
37
67
  onInput?: (value: string) => void;
68
+ /**
69
+ * A short hint that describes the expected value of the field.
70
+ */
38
71
  placeholder?: string;
72
+ /**
73
+ * Whether the field needs a value.
74
+ */
39
75
  required?: boolean;
76
+ /**
77
+ * The current value for the field. Defaults to now. You should update this value in response to the `onChange` callback.
78
+ */
40
79
  value?: string;
80
+ /**
81
+ * The label under the text field which provides guidance or instructions that assist users.
82
+ */
41
83
  helpText?: string;
84
+ /**
85
+ * A button under the text field to provide extra functionality.
86
+ */
42
87
  action?: InputAction;
88
+ /**
89
+ * The maximum number of characters allowed in the input field.
90
+ */
43
91
  maxLength?: number;
44
92
  }
45
93
  //# sourceMappingURL=InputField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputField.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/shared/InputField.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"InputField.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/shared/InputField.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -1,17 +1,28 @@
1
1
  import { StandardApi } from './api/standard/standard-api';
2
- import { SmartGridApi, NavigationApi, ScannerApi, OrderApi, CartApi } from './api';
2
+ import { SmartGridApi, OrderApi, CartApi, CustomerApi } from './api';
3
3
  import { RenderExtension } from './extension';
4
4
  import type { Components } from './shared';
5
5
  import { AnyComponentBuilder } from '../../shared';
6
6
  import { ActionApi } from './api/action-api/action-api';
7
+ import { ProductApi } from './api/product-api/product-api';
8
+ import { ActionTargetApi } from './api/action-target-api/action-target-api';
9
+ import { DraftOrderApi } from './api/draft-order-api/draft-order-api';
7
10
  type SmartGridComponents = AnyComponentBuilder<Pick<Components, 'Tile'>>;
8
11
  type ActionComponents = AnyComponentBuilder<Pick<Components, 'ActionItem'>>;
9
12
  type BasicComponents = AnyComponentBuilder<Omit<Components, 'Tile'>>;
10
13
  export interface ExtensionTargets {
11
14
  'pos.home.tile.render': RenderExtension<StandardApi<'pos.home.tile.render'> & SmartGridApi & ActionApi & CartApi, SmartGridComponents>;
12
- 'pos.home.modal.render': RenderExtension<StandardApi<'pos.home.modal.render'> & NavigationApi & ScannerApi & CartApi, BasicComponents>;
13
- 'pos.purchase.post.action.render': RenderExtension<StandardApi<'pos.purchase.post.action.render'> & OrderApi, BasicComponents>;
15
+ 'pos.home.modal.render': RenderExtension<ActionTargetApi<'pos.home.modal.render'> & CartApi, BasicComponents>;
14
16
  'pos.purchase.post.action.menu-item.render': RenderExtension<StandardApi<'pos.purchase.post.action.menu-item.render'> & ActionApi & OrderApi, ActionComponents>;
17
+ 'pos.purchase.post.action.render': RenderExtension<ActionTargetApi<'pos.purchase.post.action.render'> & OrderApi, BasicComponents>;
18
+ 'pos.product-details.action.menu-item.render': RenderExtension<StandardApi<'pos.product-details.action.menu-item.render'> & ActionApi & CartApi & ProductApi, ActionComponents>;
19
+ 'pos.product-details.action.render': RenderExtension<ActionTargetApi<'pos.product-details.action.render'> & CartApi & ProductApi, BasicComponents>;
20
+ 'pos.order-details.action.menu-item.render': RenderExtension<StandardApi<'pos.order-details.action.menu-item.render'> & ActionApi & CartApi & OrderApi, ActionComponents>;
21
+ 'pos.order-details.action.render': RenderExtension<ActionTargetApi<'pos.order-details.action.render'> & CartApi & OrderApi, BasicComponents>;
22
+ 'pos.draft-order-details.action.menu-item.render': RenderExtension<StandardApi<'pos.draft-order-details.action.menu-item.render'> & ActionApi & CartApi & DraftOrderApi, ActionComponents>;
23
+ 'pos.draft-order-details.action.render': RenderExtension<ActionTargetApi<'pos.draft-order-details.action.render'> & DraftOrderApi & CartApi, BasicComponents>;
24
+ 'pos.customer-details.action.menu-item.render': RenderExtension<StandardApi<'pos.customer-details.action.menu-item.render'> & ActionApi & CartApi & CustomerApi, ActionComponents>;
25
+ 'pos.customer-details.action.render': RenderExtension<ActionTargetApi<'pos.customer-details.action.render'> & CartApi & CustomerApi, BasicComponents>;
15
26
  }
16
27
  export type ExtensionTarget = keyof ExtensionTargets;
17
28
  export type ExtensionForExtensionTarget<T extends ExtensionTarget> = ExtensionTargets[T];
@@ -1 +1 @@
1
- {"version":3,"file":"targets.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/point-of-sale/targets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAEL,YAAY,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,EACR,OAAO,EACR,MAAM,OAAO,CAAC;AACf,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACzC,OAAO,EAAC,mBAAmB,EAAC,MAAM,cAAc,CAAC;AACjD,OAAO,EAAC,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAEtD,KAAK,mBAAmB,GAAG,mBAAmB,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AACzE,KAAK,gBAAgB,GAAG,mBAAmB,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC,CAAC;AAC5E,KAAK,eAAe,GAAG,mBAAmB,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAErE,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB,EAAE,eAAe,CAErC,WAAW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