@shopify/ui-extensions 2025.7.1 → 2025.7.3

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 (343) hide show
  1. package/build/cjs/surfaces/point-of-sale/render/components/Badge/Badge.js +0 -7
  2. package/build/cjs/surfaces/point-of-sale/render/components/Banner/Banner.js +0 -9
  3. package/build/cjs/surfaces/point-of-sale/render/components/Button/Button.js +0 -8
  4. package/build/cjs/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.js +0 -6
  5. package/build/cjs/surfaces/point-of-sale/render/components/DatePicker/DatePicker.js +0 -8
  6. package/build/cjs/surfaces/point-of-sale/render/components/Dialog/Dialog.js +0 -12
  7. package/build/cjs/surfaces/point-of-sale/render/components/Image/Image.js +7 -2
  8. package/build/cjs/surfaces/point-of-sale/render/components/Navigator/Navigator.js +0 -4
  9. package/build/cjs/surfaces/point-of-sale/render/components/NumberField/NumberField.js +0 -6
  10. package/build/cjs/surfaces/point-of-sale/render/components/POSBlock/POSBlock.js +0 -6
  11. package/build/cjs/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.js +0 -4
  12. package/build/cjs/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.js +0 -5
  13. package/build/cjs/surfaces/point-of-sale/render/components/PinPad/PinPad.js +16 -20
  14. package/build/cjs/surfaces/point-of-sale/render/components/QRCode/QRCode.js +0 -5
  15. package/build/cjs/surfaces/point-of-sale/render/components/Screen/Screen.js +0 -22
  16. package/build/cjs/surfaces/point-of-sale/render/components/Section/Section.js +2 -8
  17. package/build/cjs/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.js +4 -0
  18. package/build/cjs/surfaces/point-of-sale/render/components/Stack/Stack.js +4 -0
  19. package/build/cjs/surfaces/point-of-sale/render/components/Text/Text.js +28 -0
  20. package/build/cjs/surfaces/point-of-sale/render/components/TextArea/TextArea.js +0 -6
  21. package/build/cjs/surfaces/point-of-sale/render/components/Tile/Tile.js +0 -10
  22. package/build/cjs/surfaces/point-of-sale/render/components/TimePicker/TimePicker.js +0 -9
  23. package/build/cjs/surfaces/point-of-sale/types/storage.js +3 -0
  24. package/build/esm/surfaces/point-of-sale/render/components/Badge/Badge.mjs +0 -7
  25. package/build/esm/surfaces/point-of-sale/render/components/Banner/Banner.mjs +0 -9
  26. package/build/esm/surfaces/point-of-sale/render/components/Button/Button.mjs +0 -8
  27. package/build/esm/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.mjs +0 -6
  28. package/build/esm/surfaces/point-of-sale/render/components/DatePicker/DatePicker.mjs +0 -8
  29. package/build/esm/surfaces/point-of-sale/render/components/Dialog/Dialog.mjs +0 -12
  30. package/build/esm/surfaces/point-of-sale/render/components/Image/Image.mjs +7 -2
  31. package/build/esm/surfaces/point-of-sale/render/components/Navigator/Navigator.mjs +0 -4
  32. package/build/esm/surfaces/point-of-sale/render/components/NumberField/NumberField.mjs +0 -6
  33. package/build/esm/surfaces/point-of-sale/render/components/POSBlock/POSBlock.mjs +0 -6
  34. package/build/esm/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.mjs +0 -4
  35. package/build/esm/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.mjs +0 -5
  36. package/build/esm/surfaces/point-of-sale/render/components/PinPad/PinPad.mjs +16 -20
  37. package/build/esm/surfaces/point-of-sale/render/components/QRCode/QRCode.mjs +0 -5
  38. package/build/esm/surfaces/point-of-sale/render/components/Screen/Screen.mjs +0 -22
  39. package/build/esm/surfaces/point-of-sale/render/components/Section/Section.mjs +2 -8
  40. package/build/esm/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.mjs +4 -0
  41. package/build/esm/surfaces/point-of-sale/render/components/Stack/Stack.mjs +4 -0
  42. package/build/esm/surfaces/point-of-sale/render/components/Text/Text.mjs +28 -0
  43. package/build/esm/surfaces/point-of-sale/render/components/TextArea/TextArea.mjs +0 -6
  44. package/build/esm/surfaces/point-of-sale/render/components/Tile/Tile.mjs +0 -10
  45. package/build/esm/surfaces/point-of-sale/render/components/TimePicker/TimePicker.mjs +0 -9
  46. package/build/esm/surfaces/point-of-sale/types/storage.mjs +3 -0
  47. package/build/esnext/surfaces/point-of-sale/render/components/Badge/Badge.esnext +0 -7
  48. package/build/esnext/surfaces/point-of-sale/render/components/Banner/Banner.esnext +0 -9
  49. package/build/esnext/surfaces/point-of-sale/render/components/Button/Button.esnext +0 -8
  50. package/build/esnext/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.esnext +0 -6
  51. package/build/esnext/surfaces/point-of-sale/render/components/DatePicker/DatePicker.esnext +0 -8
  52. package/build/esnext/surfaces/point-of-sale/render/components/Dialog/Dialog.esnext +0 -12
  53. package/build/esnext/surfaces/point-of-sale/render/components/Image/Image.esnext +7 -2
  54. package/build/esnext/surfaces/point-of-sale/render/components/Navigator/Navigator.esnext +0 -4
  55. package/build/esnext/surfaces/point-of-sale/render/components/NumberField/NumberField.esnext +0 -6
  56. package/build/esnext/surfaces/point-of-sale/render/components/POSBlock/POSBlock.esnext +0 -6
  57. package/build/esnext/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.esnext +0 -4
  58. package/build/esnext/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.esnext +0 -5
  59. package/build/esnext/surfaces/point-of-sale/render/components/PinPad/PinPad.esnext +16 -20
  60. package/build/esnext/surfaces/point-of-sale/render/components/QRCode/QRCode.esnext +0 -5
  61. package/build/esnext/surfaces/point-of-sale/render/components/Screen/Screen.esnext +0 -22
  62. package/build/esnext/surfaces/point-of-sale/render/components/Section/Section.esnext +2 -8
  63. package/build/esnext/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.esnext +4 -0
  64. package/build/esnext/surfaces/point-of-sale/render/components/Stack/Stack.esnext +4 -0
  65. package/build/esnext/surfaces/point-of-sale/render/components/Text/Text.esnext +28 -0
  66. package/build/esnext/surfaces/point-of-sale/render/components/TextArea/TextArea.esnext +0 -6
  67. package/build/esnext/surfaces/point-of-sale/render/components/Tile/Tile.esnext +0 -10
  68. package/build/esnext/surfaces/point-of-sale/render/components/TimePicker/TimePicker.esnext +0 -9
  69. package/build/esnext/surfaces/point-of-sale/types/storage.esnext +3 -0
  70. package/build/ts/surfaces/checkout/api/announcement/announcement.d.ts +20 -6
  71. package/build/ts/surfaces/checkout/api/announcement/announcement.d.ts.map +1 -1
  72. package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +2 -2
  73. package/build/ts/surfaces/checkout/targets.d.ts +2 -2
  74. package/build/ts/surfaces/checkout/targets.d.ts.map +1 -1
  75. package/build/ts/surfaces/checkout.d.ts +1 -1
  76. package/build/ts/surfaces/checkout.d.ts.map +1 -1
  77. package/build/ts/surfaces/customer-account/api/announcement/announcement.d.ts +20 -6
  78. package/build/ts/surfaces/customer-account/api/announcement/announcement.d.ts.map +1 -1
  79. package/build/ts/surfaces/customer-account/api/docs.d.ts +2 -0
  80. package/build/ts/surfaces/customer-account/api/docs.d.ts.map +1 -1
  81. package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts +2 -0
  82. package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts.map +1 -1
  83. package/build/ts/surfaces/customer-account/api.d.ts +1 -0
  84. package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
  85. package/build/ts/surfaces/customer-account/targets.d.ts +4 -4
  86. package/build/ts/surfaces/customer-account/targets.d.ts.map +1 -1
  87. package/build/ts/surfaces/point-of-sale/api.d.ts +1 -1
  88. package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
  89. package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts +3 -0
  90. package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts.map +1 -1
  91. package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts +15 -0
  92. package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts.map +1 -1
  93. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +6 -0
  94. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +1 -1
  95. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +27 -0
  96. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +1 -1
  97. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +19 -0
  98. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts.map +1 -1
  99. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +9 -0
  100. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -1
  101. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts +19 -0
  102. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts.map +1 -1
  103. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts +12 -0
  104. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts.map +1 -1
  105. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts +27 -0
  106. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -1
  107. package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts +14 -0
  108. package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts.map +1 -1
  109. package/build/ts/surfaces/point-of-sale/render/api/action-api/action-api.d.ts +3 -5
  110. package/build/ts/surfaces/point-of-sale/render/api/action-api/action-api.d.ts.map +1 -1
  111. package/build/ts/surfaces/point-of-sale/render/api/cart-api/cart-api.d.ts +37 -31
  112. package/build/ts/surfaces/point-of-sale/render/api/cart-api/cart-api.d.ts.map +1 -1
  113. package/build/ts/surfaces/point-of-sale/render/api/cart-line-item-api/cart-line-item-api.d.ts +2 -2
  114. package/build/ts/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.d.ts +6 -4
  115. package/build/ts/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.d.ts.map +1 -1
  116. package/build/ts/surfaces/point-of-sale/render/api/customer-api/customer-api.d.ts +4 -1
  117. package/build/ts/surfaces/point-of-sale/render/api/customer-api/customer-api.d.ts.map +1 -1
  118. package/build/ts/surfaces/point-of-sale/render/api/device-api/device-api.d.ts +4 -4
  119. package/build/ts/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.d.ts +6 -3
  120. package/build/ts/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.d.ts.map +1 -1
  121. package/build/ts/surfaces/point-of-sale/render/api/locale-api/locale-api.d.ts +3 -4
  122. package/build/ts/surfaces/point-of-sale/render/api/locale-api/locale-api.d.ts.map +1 -1
  123. package/build/ts/surfaces/point-of-sale/render/api/navigation-api/navigation-api.d.ts +9 -7
  124. package/build/ts/surfaces/point-of-sale/render/api/navigation-api/navigation-api.d.ts.map +1 -1
  125. package/build/ts/surfaces/point-of-sale/render/api/order-api/order-api.d.ts +5 -5
  126. package/build/ts/surfaces/point-of-sale/render/api/print-api/print-api.d.ts +7 -12
  127. package/build/ts/surfaces/point-of-sale/render/api/print-api/print-api.d.ts.map +1 -1
  128. package/build/ts/surfaces/point-of-sale/render/api/product-api/product-api.d.ts +5 -2
  129. package/build/ts/surfaces/point-of-sale/render/api/product-api/product-api.d.ts.map +1 -1
  130. package/build/ts/surfaces/point-of-sale/render/api/product-search-api/product-search-api.d.ts +24 -10
  131. package/build/ts/surfaces/point-of-sale/render/api/product-search-api/product-search-api.d.ts.map +1 -1
  132. package/build/ts/surfaces/point-of-sale/render/api/scanner-api/scanner-api.d.ts +22 -10
  133. package/build/ts/surfaces/point-of-sale/render/api/scanner-api/scanner-api.d.ts.map +1 -1
  134. package/build/ts/surfaces/point-of-sale/render/api/session-api/session-api.d.ts +3 -6
  135. package/build/ts/surfaces/point-of-sale/render/api/session-api/session-api.d.ts.map +1 -1
  136. package/build/ts/surfaces/point-of-sale/render/api/storage-api/storage-api.d.ts +7 -0
  137. package/build/ts/surfaces/point-of-sale/render/api/storage-api/storage-api.d.ts.map +1 -1
  138. package/build/ts/surfaces/point-of-sale/render/api/toast-api/toast-api.d.ts +11 -1
  139. package/build/ts/surfaces/point-of-sale/render/api/toast-api/toast-api.d.ts.map +1 -1
  140. package/build/ts/surfaces/point-of-sale/render/components/Badge/Badge.d.ts +12 -9
  141. package/build/ts/surfaces/point-of-sale/render/components/Badge/Badge.d.ts.map +1 -1
  142. package/build/ts/surfaces/point-of-sale/render/components/Banner/Banner.d.ts +13 -14
  143. package/build/ts/surfaces/point-of-sale/render/components/Banner/Banner.d.ts.map +1 -1
  144. package/build/ts/surfaces/point-of-sale/render/components/Button/Button.d.ts +9 -15
  145. package/build/ts/surfaces/point-of-sale/render/components/Button/Button.d.ts.map +1 -1
  146. package/build/ts/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.d.ts +6 -8
  147. package/build/ts/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.d.ts.map +1 -1
  148. package/build/ts/surfaces/point-of-sale/render/components/DatePicker/DatePicker.d.ts +8 -11
  149. package/build/ts/surfaces/point-of-sale/render/components/DatePicker/DatePicker.d.ts.map +1 -1
  150. package/build/ts/surfaces/point-of-sale/render/components/Dialog/Dialog.d.ts +13 -20
  151. package/build/ts/surfaces/point-of-sale/render/components/Dialog/Dialog.d.ts.map +1 -1
  152. package/build/ts/surfaces/point-of-sale/render/components/Icon/Icon.d.ts +10 -8
  153. package/build/ts/surfaces/point-of-sale/render/components/Icon/Icon.d.ts.map +1 -1
  154. package/build/ts/surfaces/point-of-sale/render/components/Image/Image.d.ts +10 -5
  155. package/build/ts/surfaces/point-of-sale/render/components/Image/Image.d.ts.map +1 -1
  156. package/build/ts/surfaces/point-of-sale/render/components/List/List.d.ts +30 -25
  157. package/build/ts/surfaces/point-of-sale/render/components/List/List.d.ts.map +1 -1
  158. package/build/ts/surfaces/point-of-sale/render/components/Navigator/Navigator.d.ts +1 -4
  159. package/build/ts/surfaces/point-of-sale/render/components/Navigator/Navigator.d.ts.map +1 -1
  160. package/build/ts/surfaces/point-of-sale/render/components/NumberField/NumberField.d.ts +7 -7
  161. package/build/ts/surfaces/point-of-sale/render/components/NumberField/NumberField.d.ts.map +1 -1
  162. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlock.d.ts +8 -10
  163. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlock.d.ts.map +1 -1
  164. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.d.ts +1 -4
  165. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.d.ts.map +1 -1
  166. package/build/ts/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.d.ts +0 -4
  167. package/build/ts/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.d.ts.map +1 -1
  168. package/build/ts/surfaces/point-of-sale/render/components/PinPad/PinPad.d.ts +25 -28
  169. package/build/ts/surfaces/point-of-sale/render/components/PinPad/PinPad.d.ts.map +1 -1
  170. package/build/ts/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.d.ts +1 -11
  171. package/build/ts/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.d.ts.map +1 -1
  172. package/build/ts/surfaces/point-of-sale/render/components/QRCode/QRCode.d.ts +1 -5
  173. package/build/ts/surfaces/point-of-sale/render/components/QRCode/QRCode.d.ts.map +1 -1
  174. package/build/ts/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.d.ts +7 -5
  175. package/build/ts/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.d.ts.map +1 -1
  176. package/build/ts/surfaces/point-of-sale/render/components/Screen/Screen.d.ts +13 -33
  177. package/build/ts/surfaces/point-of-sale/render/components/Screen/Screen.d.ts.map +1 -1
  178. package/build/ts/surfaces/point-of-sale/render/components/SearchBar/SearchBar.d.ts +7 -7
  179. package/build/ts/surfaces/point-of-sale/render/components/Section/Section.d.ts +6 -11
  180. package/build/ts/surfaces/point-of-sale/render/components/Section/Section.d.ts.map +1 -1
  181. package/build/ts/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.d.ts +9 -7
  182. package/build/ts/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.d.ts.map +1 -1
  183. package/build/ts/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.d.ts +9 -6
  184. package/build/ts/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  185. package/build/ts/surfaces/point-of-sale/render/components/Selectable/Selectable.d.ts +2 -2
  186. package/build/ts/surfaces/point-of-sale/render/components/Stack/Stack.d.ts +22 -22
  187. package/build/ts/surfaces/point-of-sale/render/components/Stack/Stack.d.ts.map +1 -1
  188. package/build/ts/surfaces/point-of-sale/render/components/Stepper/Stepper.d.ts +8 -6
  189. package/build/ts/surfaces/point-of-sale/render/components/Stepper/Stepper.d.ts.map +1 -1
  190. package/build/ts/surfaces/point-of-sale/render/components/Text/Text.d.ts +28 -2
  191. package/build/ts/surfaces/point-of-sale/render/components/Text/Text.d.ts.map +1 -1
  192. package/build/ts/surfaces/point-of-sale/render/components/TextArea/TextArea.d.ts +1 -6
  193. package/build/ts/surfaces/point-of-sale/render/components/TextArea/TextArea.d.ts.map +1 -1
  194. package/build/ts/surfaces/point-of-sale/render/components/TextField/TextField.d.ts +30 -0
  195. package/build/ts/surfaces/point-of-sale/render/components/TextField/TextField.d.ts.map +1 -1
  196. package/build/ts/surfaces/point-of-sale/render/components/Tile/Tile.d.ts +6 -15
  197. package/build/ts/surfaces/point-of-sale/render/components/Tile/Tile.d.ts.map +1 -1
  198. package/build/ts/surfaces/point-of-sale/render/components/TimeField/TimeField.d.ts +2 -1
  199. package/build/ts/surfaces/point-of-sale/render/components/TimeField/TimeField.d.ts.map +1 -1
  200. package/build/ts/surfaces/point-of-sale/render/components/TimePicker/TimePicker.d.ts +10 -14
  201. package/build/ts/surfaces/point-of-sale/render/components/TimePicker/TimePicker.d.ts.map +1 -1
  202. package/build/ts/surfaces/point-of-sale/render/components/shared/BaseTextField.d.ts +6 -14
  203. package/build/ts/surfaces/point-of-sale/render/components/shared/BaseTextField.d.ts.map +1 -1
  204. package/build/ts/surfaces/point-of-sale/render/components/shared/InputField.d.ts +16 -37
  205. package/build/ts/surfaces/point-of-sale/render/components/shared/InputField.d.ts.map +1 -1
  206. package/build/ts/surfaces/point-of-sale/render/components/shared/box.d.ts +31 -42
  207. package/build/ts/surfaces/point-of-sale/render/components/shared/box.d.ts.map +1 -1
  208. package/build/ts/surfaces/point-of-sale/render/components/shared/deprecated-types.d.ts +12 -0
  209. package/build/ts/surfaces/point-of-sale/render/components/shared/deprecated-types.d.ts.map +1 -1
  210. package/build/ts/surfaces/point-of-sale/render/components/shared/inner-layouts.d.ts +13 -7
  211. package/build/ts/surfaces/point-of-sale/render/components/shared/inner-layouts.d.ts.map +1 -1
  212. package/build/ts/surfaces/point-of-sale/render/components/shared/sizes.d.ts +3 -1
  213. package/build/ts/surfaces/point-of-sale/render/components/shared/sizes.d.ts.map +1 -1
  214. package/build/ts/surfaces/point-of-sale/targets.d.ts +138 -0
  215. package/build/ts/surfaces/point-of-sale/targets.d.ts.map +1 -1
  216. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +39 -0
  217. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts.map +1 -1
  218. package/build/ts/surfaces/point-of-sale/types/cart.d.ts +281 -10
  219. package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
  220. package/build/ts/surfaces/point-of-sale/types/country-code.d.ts +3 -0
  221. package/build/ts/surfaces/point-of-sale/types/country-code.d.ts.map +1 -1
  222. package/build/ts/surfaces/point-of-sale/types/device.d.ts +6 -3
  223. package/build/ts/surfaces/point-of-sale/types/device.d.ts.map +1 -1
  224. package/build/ts/surfaces/point-of-sale/types/direct-api-request-body.d.ts +3 -3
  225. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts +11 -0
  226. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts.map +1 -0
  227. package/build/ts/surfaces/point-of-sale/types/money.d.ts +22 -0
  228. package/build/ts/surfaces/point-of-sale/types/money.d.ts.map +1 -1
  229. package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts +1 -2
  230. package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts.map +1 -1
  231. package/build/ts/surfaces/point-of-sale/types/order.d.ts +18 -0
  232. package/build/ts/surfaces/point-of-sale/types/order.d.ts.map +1 -1
  233. package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts +2 -3
  234. package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts.map +1 -1
  235. package/build/ts/surfaces/point-of-sale/types/payment.d.ts +15 -0
  236. package/build/ts/surfaces/point-of-sale/types/payment.d.ts.map +1 -1
  237. package/build/ts/surfaces/point-of-sale/types/product.d.ts +172 -0
  238. package/build/ts/surfaces/point-of-sale/types/product.d.ts.map +1 -1
  239. package/build/ts/surfaces/point-of-sale/types/session.d.ts +7 -5
  240. package/build/ts/surfaces/point-of-sale/types/session.d.ts.map +1 -1
  241. package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts +32 -0
  242. package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts.map +1 -1
  243. package/build/ts/surfaces/point-of-sale/types/storage.d.ts +13 -11
  244. package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -1
  245. package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts +21 -0
  246. package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts.map +1 -1
  247. package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts +7 -0
  248. package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts.map +1 -1
  249. package/build/tsconfig.tsbuildinfo +1 -1
  250. package/package.json +6 -1
  251. package/src/surfaces/checkout/api/announcement/announcement.ts +20 -6
  252. package/src/surfaces/checkout/api/checkout/checkout.ts +2 -2
  253. package/src/surfaces/checkout/targets.ts +2 -2
  254. package/src/surfaces/checkout.ts +1 -1
  255. package/src/surfaces/customer-account/api/announcement/announcement.ts +20 -6
  256. package/src/surfaces/customer-account/api/docs.ts +3 -0
  257. package/src/surfaces/customer-account/api/standard-api/standard-api.ts +2 -0
  258. package/src/surfaces/customer-account/api.ts +2 -0
  259. package/src/surfaces/customer-account/targets.ts +5 -4
  260. package/src/surfaces/point-of-sale/api.ts +1 -0
  261. package/src/surfaces/point-of-sale/event/data/BaseApi.ts +3 -0
  262. package/src/surfaces/point-of-sale/event/data/BaseData.ts +15 -0
  263. package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +6 -0
  264. package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +27 -0
  265. package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +19 -0
  266. package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +9 -0
  267. package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +19 -0
  268. package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +12 -0
  269. package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +27 -0
  270. package/src/surfaces/point-of-sale/event/output/BaseOutput.ts +14 -0
  271. package/src/surfaces/point-of-sale/render/api/action-api/action-api.ts +3 -5
  272. package/src/surfaces/point-of-sale/render/api/cart-api/cart-api.ts +37 -31
  273. package/src/surfaces/point-of-sale/render/api/cart-line-item-api/cart-line-item-api.ts +2 -2
  274. package/src/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.ts +6 -4
  275. package/src/surfaces/point-of-sale/render/api/customer-api/customer-api.ts +4 -1
  276. package/src/surfaces/point-of-sale/render/api/device-api/device-api.ts +4 -4
  277. package/src/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.ts +6 -3
  278. package/src/surfaces/point-of-sale/render/api/locale-api/locale-api.ts +3 -4
  279. package/src/surfaces/point-of-sale/render/api/navigation-api/navigation-api.ts +9 -7
  280. package/src/surfaces/point-of-sale/render/api/order-api/order-api.ts +5 -5
  281. package/src/surfaces/point-of-sale/render/api/print-api/print-api.ts +7 -12
  282. package/src/surfaces/point-of-sale/render/api/product-api/product-api.ts +5 -2
  283. package/src/surfaces/point-of-sale/render/api/product-search-api/product-search-api.ts +24 -10
  284. package/src/surfaces/point-of-sale/render/api/scanner-api/scanner-api.ts +22 -10
  285. package/src/surfaces/point-of-sale/render/api/session-api/session-api.ts +3 -6
  286. package/src/surfaces/point-of-sale/render/api/storage-api/storage-api.ts +7 -0
  287. package/src/surfaces/point-of-sale/render/api/toast-api/toast-api.ts +11 -1
  288. package/src/surfaces/point-of-sale/render/components/Badge/Badge.ts +12 -10
  289. package/src/surfaces/point-of-sale/render/components/Banner/Banner.ts +13 -14
  290. package/src/surfaces/point-of-sale/render/components/Button/Button.ts +9 -15
  291. package/src/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.ts +6 -8
  292. package/src/surfaces/point-of-sale/render/components/DatePicker/DatePicker.ts +8 -11
  293. package/src/surfaces/point-of-sale/render/components/Dialog/Dialog.ts +13 -20
  294. package/src/surfaces/point-of-sale/render/components/Icon/Icon.ts +254 -248
  295. package/src/surfaces/point-of-sale/render/components/Image/Image.ts +14 -5
  296. package/src/surfaces/point-of-sale/render/components/List/List.ts +30 -25
  297. package/src/surfaces/point-of-sale/render/components/Navigator/Navigator.ts +1 -4
  298. package/src/surfaces/point-of-sale/render/components/NumberField/NumberField.ts +7 -7
  299. package/src/surfaces/point-of-sale/render/components/POSBlock/POSBlock.ts +5 -9
  300. package/src/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.ts +1 -4
  301. package/src/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.ts +0 -4
  302. package/src/surfaces/point-of-sale/render/components/PinPad/PinPad.ts +25 -28
  303. package/src/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.ts +1 -11
  304. package/src/surfaces/point-of-sale/render/components/QRCode/QRCode.ts +1 -5
  305. package/src/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.ts +4 -4
  306. package/src/surfaces/point-of-sale/render/components/Screen/Screen.ts +13 -33
  307. package/src/surfaces/point-of-sale/render/components/SearchBar/SearchBar.ts +7 -7
  308. package/src/surfaces/point-of-sale/render/components/Section/Section.ts +6 -11
  309. package/src/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.ts +6 -6
  310. package/src/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.ts +9 -7
  311. package/src/surfaces/point-of-sale/render/components/Selectable/Selectable.ts +2 -2
  312. package/src/surfaces/point-of-sale/render/components/Stack/Stack.ts +27 -22
  313. package/src/surfaces/point-of-sale/render/components/Stepper/Stepper.ts +8 -6
  314. package/src/surfaces/point-of-sale/render/components/Text/Text.ts +28 -2
  315. package/src/surfaces/point-of-sale/render/components/TextArea/TextArea.ts +1 -6
  316. package/src/surfaces/point-of-sale/render/components/TextField/TextField.ts +30 -0
  317. package/src/surfaces/point-of-sale/render/components/Tile/Tile.ts +6 -15
  318. package/src/surfaces/point-of-sale/render/components/TimeField/TimeField.ts +2 -1
  319. package/src/surfaces/point-of-sale/render/components/TimePicker/TimePicker.ts +10 -14
  320. package/src/surfaces/point-of-sale/render/components/shared/BaseTextField.ts +6 -14
  321. package/src/surfaces/point-of-sale/render/components/shared/InputField.ts +16 -37
  322. package/src/surfaces/point-of-sale/render/components/shared/box.ts +33 -42
  323. package/src/surfaces/point-of-sale/render/components/shared/deprecated-types.ts +12 -0
  324. package/src/surfaces/point-of-sale/render/components/shared/inner-layouts.ts +14 -7
  325. package/src/surfaces/point-of-sale/render/components/shared/sizes.ts +3 -1
  326. package/src/surfaces/point-of-sale/targets.ts +139 -0
  327. package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +39 -0
  328. package/src/surfaces/point-of-sale/types/cart.ts +284 -10
  329. package/src/surfaces/point-of-sale/types/country-code.ts +3 -0
  330. package/src/surfaces/point-of-sale/types/device.ts +6 -3
  331. package/src/surfaces/point-of-sale/types/direct-api-request-body.ts +3 -3
  332. package/src/surfaces/point-of-sale/types/discount-allocation.ts +11 -0
  333. package/src/surfaces/point-of-sale/types/money.ts +23 -0
  334. package/src/surfaces/point-of-sale/types/multiple-resource-result.ts +1 -2
  335. package/src/surfaces/point-of-sale/types/order.ts +18 -0
  336. package/src/surfaces/point-of-sale/types/paginated-result.ts +2 -3
  337. package/src/surfaces/point-of-sale/types/payment.ts +16 -0
  338. package/src/surfaces/point-of-sale/types/product.ts +172 -0
  339. package/src/surfaces/point-of-sale/types/session.ts +7 -5
  340. package/src/surfaces/point-of-sale/types/shipping-line.ts +32 -0
  341. package/src/surfaces/point-of-sale/types/storage.ts +13 -11
  342. package/src/surfaces/point-of-sale/types/tax-line.ts +21 -0
  343. package/src/surfaces/point-of-sale/types/transaction-type.ts +7 -0
@@ -4,24 +4,24 @@ import {ColorType} from '../Text/Text';
4
4
 
5
5
  export interface ToggleSwitch {
6
6
  /**
7
- * Whether or not the toggle switch is on or off.
7
+ * The current state of the toggle switch. When `true`, the switch is in the "on" position. When `false`, it's in the "off" position.
8
8
  */
9
9
  value?: boolean;
10
10
 
11
11
  /**
12
- * Whether or not the toggle switch is disabled.
12
+ * Controls whether the toggle switch can be interacted with. When `true`, the switch is disabled and users cannot change its state.
13
13
  */
14
14
  disabled?: boolean;
15
15
  }
16
16
 
17
17
  export interface SubtitleType {
18
18
  /**
19
- * The subtitles to display beneath the main label.
19
+ * The text content to display as a subtitle beneath the main label.
20
20
  */
21
21
  content: string;
22
22
 
23
23
  /**
24
- * Property used to modify the subtitle appearance.
24
+ * The semantic color of the subtitle text that conveys meaning and intent through visual styling.
25
25
  */
26
26
  color?: ColorType;
27
27
  }
@@ -30,25 +30,27 @@ export type ListRowSubtitle = string | SubtitleType;
30
30
 
31
31
  export interface ListRowLeftSide {
32
32
  /**
33
- * The main label that will be displayed on the left side of the row.
33
+ * The main label text displayed prominently on the left side of the row.
34
34
  */
35
35
  label: string;
36
36
  /**
37
- * The subtitles to display beneath the main label. Up to 3 subtitles can be displayed.
38
- * Subtitles can optionally be configured with colors by passing an object with a `content` and `color` properties.
37
+ * An array of up to three subtitles displayed beneath the main label. Each subtitle can be a string or an object with content and color properties.
39
38
  */
40
39
  subtitle?: [ListRowSubtitle, ListRowSubtitle?, ListRowSubtitle?];
41
40
  /**
42
- * Colored badges that are displayed underneath the `title` and `subtitles`.
41
+ * An array of colored badges displayed underneath the title and subtitles for additional status or category information.
43
42
  */
44
43
  badges?: BadgeProps[];
44
+ /**
45
+ * An image configuration object for displaying images on the far left side of the row with optional badge overlay.
46
+ */
45
47
  image?: {
46
48
  /**
47
- * A link to an image to be displayed on the far left side of the row.
49
+ * A URL to an image to be displayed on the far left side of the row.
48
50
  */
49
51
  source?: string;
50
52
  /**
51
- * A number that is displayed on the top right of the image.
53
+ * A numeric badge displayed on the top right corner of the image, typically used for counts or quantities.
52
54
  */
53
55
  badge?: number;
54
56
  };
@@ -56,65 +58,68 @@ export interface ListRowLeftSide {
56
58
 
57
59
  export interface ListRowRightSide {
58
60
  /**
59
- * The main label that will be displayed on the right side of the row.
61
+ * An optional label text displayed on the right side of the row for additional information or values.
60
62
  */
61
63
  label?: string;
62
64
  /**
63
- * Show a chevron. Set this to true if pressing on the row navigates to another screen.
65
+ * A boolean that controls chevron display. Set to `true` when pressing the row navigates to another screen.
66
+ *
64
67
  * @defaultValue `false`
65
68
  */
66
69
  showChevron?: boolean;
67
70
  /**
68
- * A toggle switch that is be displayed on the right side of the row.
71
+ * A toggle switch configuration object displayed on the right side of the row for boolean settings or states.
69
72
  */
70
73
  toggleSwitch?: ToggleSwitch;
71
74
  }
72
75
 
73
76
  export interface ListRow {
74
77
  /**
75
- * The unique identifier for this list item.
78
+ * The unique identifier for the list item used for tracking and interaction handling.
76
79
  */
77
80
  id: string;
78
81
  /**
79
- * The user interface of the left side of the row.
82
+ * The content configuration for the left side of the row, including label, subtitles, badges, and optional image.
80
83
  */
81
84
  leftSide: ListRowLeftSide;
82
85
  /**
83
- * The user interface of the right side of the row.
86
+ * The content configuration for the right side of the row, including optional label, chevron, and toggle switch.
84
87
  */
85
88
  rightSide?: ListRowRightSide;
86
89
  /**
87
- * Callback for when the user taps the row.
90
+ * A callback function executed when the user taps the row.
88
91
  */
89
92
  onPress?: () => void;
90
93
  }
91
94
 
92
95
  export interface ListProps {
93
96
  /**
94
- * A large display title at the top of the `List`.
97
+ * A large display title shown at the top of the list.
95
98
  */
96
99
  title?: string;
97
100
  /**
98
- * A header component for the list.
101
+ * A header component displayed at the top of the list for additional context or controls.
99
102
  */
100
103
  listHeaderComponent?: RemoteFragment;
101
104
  /**
102
- * The array of `ListRow` which will be converted into rows for this list.
105
+ * An array of ListRow objects that define the content and structure of each row in the list.
103
106
  */
104
107
  data: ListRow[];
105
108
  /**
106
- * Whether or not more data is being loaded. Set this to `true` when paginating and fetching more data for the list.
109
+ * A boolean indicating whether more data is being loaded. Set to `true` when paginating and fetching additional data for the list.
107
110
  */
108
111
  isLoadingMore?: boolean;
109
112
  /**
110
- * The logic behind displaying an image or placeholder. `automatic` will display an image or placeholder if it detects
111
- * that a `ListItem` in `data` has an `imageUri` value. `never` will never display images or placeholders. `always` will
112
- * always display images or placeholders if `imageUri` is undefined or empty.
113
+ * The logic for displaying images or placeholders:
114
+ * - `automatic`: Displays images or placeholders only when it detects that a ListRow has an image source value.
115
+ * - `always`: Displays images or placeholders for all rows, even when image sources are undefined or empty.
116
+ * - `never`: Hides all images and placeholders, creating a text-only list layout.
117
+ *
113
118
  * @defaultValue `automatic`
114
119
  */
115
120
  imageDisplayStrategy?: 'automatic' | 'always' | 'never';
116
121
  /**
117
- * Callback for when the user reaches the end of the `List`. This can be used to fire a request to load more data.
122
+ * A callback function executed when the user reaches the end of the list. Use this to trigger requests for loading additional data.
118
123
  */
119
124
  onEndReached?: () => void;
120
125
  }
@@ -1,11 +1,8 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
- /**
4
- * @property `initialScreenName` sets the initial `Screen` whose `name` matches.
5
- */
6
3
  export interface NavigatorProps {
7
4
  /**
8
- * Sets the initial `Screen` whose `name` matches.
5
+ * The name of the initial `Screen` component to display when the Navigator is first rendered. Must match the `name` property of a child `Screen` component.
9
6
  */
10
7
  initialScreenName?: string;
11
8
  }
@@ -1,19 +1,19 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
  import type {InputProps} from '../shared/InputField';
3
3
 
4
- /**
5
- * Represents the properties for the NumberField component.
6
- * @typedef {Object} NumberFieldProps
7
- * @property {'decimal' | 'numeric'} [inputMode] - The mode of input, can be either 'decimal' or 'numeric'.
8
- */
9
4
  export interface NumberFieldProps extends InputProps {
5
+ /**
6
+ * The virtual keyboard layout to display:
7
+ * - `decimal`: A keyboard layout that includes decimal point support for entering fractional numbers, prices, or measurements with decimal precision.
8
+ * - `numeric`: A keyboard layout optimized for integer-only entry without decimal point support, ideal for quantities, counts, or whole number values.
9
+ */
10
10
  inputMode?: 'decimal' | 'numeric';
11
11
  /**
12
- * The highest decimal or integer to be accepted for the field.
12
+ * The highest decimal or integer to be accepted for the field. Users can still input higher numbers by keyboard—you must add appropriate validation logic.
13
13
  */
14
14
  max?: number;
15
15
  /**
16
- * The lowest decimal or integer to be accepted for the field.
16
+ * The lowest decimal or integer to be accepted for the field. Users can still input lower numbers by keyboard—you must add appropriate validation logic.
17
17
  */
18
18
  min?: number;
19
19
  }
@@ -1,26 +1,22 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
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
3
  export interface POSBlockProps {
9
4
  /**
10
- * Sets an optional action button to be displayed on the `POSBlock`.
5
+ * An optional action button configuration to be displayed on the `POSBlock`.
11
6
  */
12
7
  action?: {
13
8
  /**
14
- * The title of the action button.
9
+ * The text displayed on the action button. Use clear, action-oriented language like "View Details" or "Update Status."
15
10
  */
16
11
  title: string;
17
12
  /**
18
- * Whether the action button is disabled.
13
+ * Controls whether the action button can be pressed. When `true`, the button is disabled and users cannot interact with it.
14
+ *
19
15
  * @defaultValue false
20
16
  */
21
17
  disabled?: boolean;
22
18
  /**
23
- * A callback that is called when the action button is pressed.
19
+ * A callback function executed when the action button is pressed. Use this to handle user interactions such as navigation or triggering specific actions.
24
20
  */
25
21
  onPress: () => void;
26
22
  };
@@ -1,11 +1,8 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
- /**
4
- * Renders a `POSBlockRow` in a `POSBlock`.
5
- */
6
3
  export interface POSBlockRowProps {
7
4
  /**
8
- * A callback for when the row is tapped.
5
+ * A callback function executed when the user taps the row. Use this to handle row-specific interactions or navigation.
9
6
  */
10
7
  onPress?: () => void;
11
8
  }
@@ -2,10 +2,6 @@ import {createRemoteComponent} from '@remote-ui/core';
2
2
  import {QRCode} from '../QRCode/QRCode';
3
3
  import {Text} from '../Text/Text';
4
4
 
5
- /**
6
- * Renders a `POSReceiptBlock`. A `POSReceiptBlock` only accepts
7
- * `Text` and `QRCode` as children (more to be added in the future).
8
- */
9
5
  export interface POSReceiptBlockProps {}
10
6
  export type AllowedChildrenComponents = typeof Text | typeof QRCode;
11
7
 
@@ -1,72 +1,69 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
3
  /**
4
- * Represents the result of the pin pad onSubmit function.
5
- * @typedef {('accept'|'reject')} PinValidationResult
4
+ * Defines the validation result values that the `onSubmit` callback must return to indicate PIN verification status.
5
+ *
6
+ * Available values:
7
+ * - `accept`: A validation result indicating the PIN is correct and authentication was successful.
8
+ * - `reject`: A validation result indicating the PIN is incorrect and authentication failed.
6
9
  */
7
10
  export type PinValidationResult = 'accept' | 'reject';
8
11
 
9
12
  /**
10
- * Represents the allowed lengths of a PIN.
11
- * @typedef {(4|5|6|7|8|9|10)} PinLength
13
+ * Defines the allowed PIN length values that constrain how many digits users can enter.
14
+ *
15
+ * Available lengths:
16
+ * - `4`: A four-digit PIN length, commonly used for basic security codes and quick authentication.
17
+ * - `5`: A five-digit PIN length for moderate security requirements.
18
+ * - `6`: A six-digit PIN length, commonly used for enhanced security codes and verification.
19
+ * - `7`: A seven-digit PIN length for higher security requirements.
20
+ * - `8`: An eight-digit PIN length for strong security and complex authentication scenarios.
21
+ * - `9`: A nine-digit PIN length for very high security requirements.
22
+ * - `10`: A ten-digit PIN length, the maximum supported for highly secure authentication workflows.
12
23
  */
13
24
  export type PinLength = 4 | 5 | 6 | 7 | 8 | 9 | 10;
14
25
 
15
26
  /**
16
- * Represents an action type for the PinPad component.
17
- * @typedef {Object} PinPadActionType
18
- * @property {string} label - The label for the action button.
19
- * @property {function(): number[]} onPress - The function to be called when the action button is pressed.
27
+ * Defines the configuration object for action buttons displayed between the PIN entry view and keypad.
20
28
  */
21
29
  export interface PinPadActionType {
22
30
  /**
23
- * The label for the action button.
31
+ * The label text displayed on the action button.
24
32
  */
25
33
  label: string;
26
34
  /**
27
- * The function to be called when the action button is pressed.
35
+ * A callback function executed when the action button is pressed, returning the current PIN as an array of numbers.
28
36
  */
29
37
  onPress: () => Promise<number[]>;
30
38
  }
31
39
 
32
- /**
33
- * Represents the properties for the PinPad component.
34
- * @typedef {Object} PinPadProps
35
- * @property {boolean} [masked] - Whether the entered PIN should be masked.
36
- * @property {PinLength} [minPinLength] - The minimum length of the PIN.
37
- * @property {PinLength} [maxPinLength] - The maximum length of the PIN.
38
- * @property {string} [label] - The content for the prompt on the pin pad.
39
- * @property {PinPadActionType} [pinPadAction] - The call to action between the entry view and the keypad, consisting of a label and function that returns the pin.
40
- * @property {function(pin: number[]): Promise<PinValidationResult>} onSubmit - The function to be called when the PIN is submitted.
41
- * @property {function(pin: number[]): void} [onPinEntry] - The function to be called when a PIN is entered.
42
- */
43
40
  export interface PinPadProps {
44
41
  /**
45
- * Whether the entered PIN should be masked.
42
+ * A boolean that determines whether the entered PIN should be masked with dots or asterisks to protect privacy and security.
46
43
  */
47
44
  masked?: boolean;
48
45
  /**
49
- * The minimum length of the PIN.
46
+ * The minimum length of the PIN that users must enter before submission is allowed.
50
47
  */
51
48
  minPinLength?: PinLength;
52
49
  /**
53
- * The maximum length of the PIN.
50
+ * The maximum length of the PIN that users can enter, constraining the number of digits.
54
51
  */
55
52
  maxPinLength?: PinLength;
56
53
  /**
57
- * The content for the prompt on the pin pad.
54
+ * The content for the prompt displayed on the pin pad that instructs users what to enter.
58
55
  */
59
56
  label?: string;
60
57
  /**
61
- * The call to action between the entry view and the keypad, consisting of a label and function that returns the pin.
58
+ * A call-to-action configuration displayed between the entry view and the keypad, consisting of a label and function that returns the current PIN.
62
59
  */
63
60
  pinPadAction?: PinPadActionType;
64
61
  /**
65
- * The function to be called when the PIN is submitted.
62
+ * A callback function executed when the PIN is submitted, receiving the PIN as an array of numbers. Must return a Promise that resolves to either `'accept'` or `'reject'` to indicate validation success or failure.
66
63
  */
67
64
  onSubmit: (pin: number[]) => Promise<PinValidationResult>;
68
65
  /**
69
- * The function to be called when a PIN is entered.
66
+ * A callback function executed when a PIN is entered, receiving the PIN as an array of numbers. Use this for real-time feedback or validation during PIN entry.
70
67
  */
71
68
  onPinEntry?: (pin: number[]) => void;
72
69
  }
@@ -2,17 +2,7 @@ import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
3
  export interface PrintPreviewProps {
4
4
  /**
5
- * The source to print.
6
- *
7
- * The src must be either:
8
- * - A relative path that will be appended to your app's [application_url](/docs/apps/build/cli-for-apps/app-configuration#application_url)
9
- * - A full URL to your app's backend that will be used to return the document
10
- *
11
- * Supported document types:
12
- * - HTML documents (recommended for best printing experience)
13
- * - Text files
14
- * - Image files (PNG, JPEG, etc.)
15
- * - PDF files
5
+ * The source URL of the content to preview for printing. Must be either a relative path appended to your app's [`application_url`](/docs/apps/build/cli-for-apps/app-configuration) or a full URL to your app's backend that returns the document.
16
6
  */
17
7
  src: string;
18
8
  }
@@ -1,12 +1,8 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
- /**
4
- * The `QRCode` component renders a QR code in Shopify POS.
5
- * @property `value` the content to be encoded in the QR code.
6
- */
7
3
  export interface QRCodeProps {
8
4
  /**
9
- * The content to be encoded in the QR code.
5
+ * The content to be encoded in the QR code. Can be any string such as a URL, email address, plain text, phone number, or formatted data. Specific string formatting can trigger actions on the user's device when scanned, like opening apps, preparing messages, or navigating to locations.
10
6
  */
11
7
  value: string;
12
8
  }
@@ -2,19 +2,19 @@ import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
3
  export interface RadioButtonListProps {
4
4
  /**
5
- * The radio button options.
5
+ * An array of string values representing the radio button options available for selection.
6
6
  */
7
7
  items: string[];
8
8
  /**
9
- * A callback to be performed when the radio list item is selected.
9
+ * A callback function executed when a radio list item is selected, receiving the selected item string as a parameter. You must update the `initialSelectedItem` property in response to this callback to reflect the new selection.
10
10
  */
11
11
  onItemSelected: (item: string) => void;
12
12
  /**
13
- * The name of the selected item. Warning: This is a controlled component, so this prop must be used in conjunction with onItemSelected.
13
+ * The name of the currently selected item. You control the selection by setting this property and updating it when `onItemSelected` fires.
14
14
  */
15
15
  initialSelectedItem?: string;
16
16
  /**
17
- * Whether the initialSelectedItem renders at the top of the list.
17
+ * A boolean that determines whether the initially selected item renders at the top of the list, automatically scrolling to show the selected option.
18
18
  */
19
19
  initialOffsetToShowSelectedItem?: boolean;
20
20
  }
@@ -1,82 +1,62 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
- /** Represents the presentation of a screen in the navigation stack.
4
- * @property `sheet` displays the screen from the bottom on `navigate` when `true`.
5
- */
6
3
  export interface ScreenPresentationProps {
7
4
  /**
8
- * Displays the screen from the bottom on `navigate` when `true`.
5
+ * Displays the screen from the bottom as a sheet presentation when true during navigation. The text label displayed on the secondary action button in the screen's action bar.
9
6
  */
10
7
  sheet?: boolean;
11
8
  }
12
9
 
13
- /** Represents the secondary action button of a screen in the navigation stack.
14
- * @property `text` displays the name of the secondary action in the action bar.
15
- * @property `onPress` triggered when the secondary action button is pressed.
16
- * @property `isEnabled` sets whether the action can be tapped.
17
- */
18
10
  export interface SecondaryActionProps {
19
11
  /**
20
- * Displays the name of the secondary action in the action bar.
12
+ * The text label displayed on the secondary action button in the screen's action bar.
21
13
  */
22
14
  text: string;
23
15
  /**
24
- * Triggered when the secondary action button is pressed.
16
+ * A callback function triggered when the secondary action button is pressed by the user.
25
17
  */
26
18
  onPress: () => void;
27
19
  /**
28
- * Sets whether the action can be tapped.
20
+ * Whether the secondary action button can be tapped and is interactive.
29
21
  */
30
22
  isEnabled?: boolean;
31
23
  }
32
24
 
33
- /** Represents a screen in the navigation stack.
34
- * @property `name` used to identify this screen as a destination in the navigation stack.
35
- * @property `title` the title of the screen which will be displayed on the UI.
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.
38
- * @property `secondaryAction` displays a secondary action button on the screen.
39
- * @property `onNavigate` triggered when the screen is navigated to.
40
- * @property `onNavigateBack` triggered when the user navigates back from this screen. Runs after screen is unmounted.
41
- * @property `overrideNavigateBack` a callback that allows you to override the secondary navigation action. Runs when screen is mounted.
42
- * @property `onReceiveParams` a callback that gets triggered when the navigation event completes and the screen receives the parameters.
43
- */
44
25
  export interface ScreenProps {
45
26
  /**
46
- * Used to identify this screen as a destination in the navigation stack.
27
+ * The unique identifier used to identify this screen as a destination in the navigation stack.
47
28
  */
48
29
  name: string;
49
30
  /**
50
- * The title of the screen which will be displayed on the UI.
31
+ * The title text of the screen that will be displayed in the UI header.
51
32
  */
52
33
  title: string;
53
34
  /**
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.
35
+ * A boolean that displays a loading indicator when `true`. Set this during asynchronous tasks and return to `false` when data becomes available.
56
36
  */
57
37
  isLoading?: boolean;
58
38
  /**
59
- * Dictates how the `Screen` will be presented when navigated to.
39
+ * The presentation configuration that dictates how the screen will be displayed when navigated to.
60
40
  */
61
41
  presentation?: ScreenPresentationProps;
62
42
  /**
63
- * Displays a secondary action button on the screen.
43
+ * The configuration for a secondary action button displayed on the screen header.
64
44
  */
65
45
  secondaryAction?: SecondaryActionProps;
66
46
  /**
67
- * Triggered when the screen is navigated to.
47
+ * A callback function triggered when the screen is navigated to in the navigation stack.
68
48
  */
69
49
  onNavigate?: () => void;
70
50
  /**
71
- * Triggered when the user navigates back from this screen. Runs after screen is unmounted.
51
+ * A callback function triggered when the user navigates back from this screen. Runs after the screen is unmounted.
72
52
  */
73
53
  onNavigateBack?: () => void;
74
54
  /**
75
- * A callback that allows you to override the secondary navigation action. Runs when screen is mounted.
55
+ * A callback function that allows you to override the default back navigation action. Runs when the screen is mounted.
76
56
  */
77
57
  overrideNavigateBack?: () => void;
78
58
  /**
79
- * A callback that gets triggered when the navigation event completes and the screen receives the parameters.
59
+ * A callback function triggered when the navigation event completes and the screen receives parameters passed during navigation.
80
60
  */
81
61
  onReceiveParams?: (params: any) => void;
82
62
  }
@@ -2,31 +2,31 @@ import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
3
  export interface SearchBarProps {
4
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.
5
+ * The initial text value displayed in the search bar when first rendered. This differs from placeholder text which appears when the field is empty.
6
6
  */
7
7
  initialValue?: string;
8
8
  /**
9
- * A callback containing the new text value of the search bar.
9
+ * A callback function executed whenever the text value changes, receiving the new text value as a parameter for real-time search or filtering.
10
10
  */
11
11
  onTextChange?: (value: string) => void;
12
12
  /**
13
- * A callback when the search button is tapped.
13
+ * A callback function executed when the search button is tapped, receiving the current search text as a parameter.
14
14
  */
15
15
  onSearch: (value: string) => void;
16
16
  /**
17
- * A callback when the input is focused.
17
+ * A callback function executed when the search input field receives focus.
18
18
  */
19
19
  onFocus?: () => void;
20
20
  /**
21
- * A callback when focus is removed.
21
+ * A callback function executed when focus is removed from the search input field.
22
22
  */
23
23
  onBlur?: () => void;
24
24
  /**
25
- * Whether the text can be changed.
25
+ * A boolean that determines whether the text can be changed by user input.
26
26
  */
27
27
  editable?: boolean;
28
28
  /**
29
- * The placeholder value to display in the search bar when no text is entered.
29
+ * The placeholder text displayed in the search bar when no text is entered, providing guidance about what users can search for.
30
30
  */
31
31
  placeholder?: string;
32
32
  }
@@ -1,31 +1,26 @@
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.
3
+ /**
4
+ * Defines the configuration object for the action button displayed within the section header.
6
5
  */
7
6
  export interface SectionHeaderAction {
8
7
  /**
9
- * The title describing the action.
8
+ * The title text describing the action that will be displayed on the button.
10
9
  */
11
10
  title: string;
12
11
  /**
13
- * The callback when the action is tapped by the user.
12
+ * A callback function that is executed when the action button is pressed by the user.
14
13
  */
15
14
  onPress: () => void;
16
15
  }
17
16
 
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
- */
22
17
  export interface SectionProps {
23
18
  /**
24
- * The title of the section.
19
+ * The title text displayed at the top of the section to describe its content.
25
20
  */
26
21
  title?: string;
27
22
  /**
28
- * The action in the top right of the section that can be triggered by a tap.
23
+ * An optional action configuration displayed in the top right of the section that can be triggered by user interaction.
29
24
  */
30
25
  action?: SectionHeaderAction;
31
26
  }
@@ -2,28 +2,28 @@ import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
3
  export interface SectionHeaderProps {
4
4
  /**
5
- * Title to be displayed.
5
+ * The title text displayed in the section header. Provide clear, descriptive text that accurately represents the content section below.
6
6
  */
7
7
  title: string;
8
8
  /**
9
- * Action button to be displayed. The SectionHeader must have a `title` for `action` to work.
9
+ * An optional action button configuration to be displayed alongside the title. The `SectionHeader` must have a title for the action to work properly.
10
10
  */
11
11
  action?: {
12
12
  /**
13
- * Label for the action button.
13
+ * The label text displayed on the action button. Use clear, descriptive labels like "Edit Settings" or "Add Item."
14
14
  */
15
15
  label: string;
16
16
  /**
17
- * Function to handle action button press.
17
+ * A callback function executed when the action button is pressed. Use this to handle user interactions such as navigation or triggering specific actions.
18
18
  */
19
19
  onPress: () => void;
20
20
  /**
21
- * Whether or not the action button is disabled.
21
+ * Controls whether the action button can be pressed. When `true`, the button is disabled and users can't interact with it.
22
22
  */
23
23
  disabled?: boolean;
24
24
  };
25
25
  /**
26
- * Whether or not the divider line under the SectionHeader should be hidden.
26
+ * A boolean that controls whether the divider line under the `SectionHeader` should be hidden.
27
27
  */
28
28
  hideDivider?: boolean;
29
29
  }