@shopify/ui-extensions 2025.7.2 → 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 (317) 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/point-of-sale/api.d.ts +1 -1
  71. package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
  72. package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts +3 -0
  73. package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts.map +1 -1
  74. package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts +15 -0
  75. package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts.map +1 -1
  76. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +6 -0
  77. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +1 -1
  78. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +27 -0
  79. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +1 -1
  80. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +18 -0
  81. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts.map +1 -1
  82. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +9 -0
  83. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -1
  84. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts +18 -0
  85. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts.map +1 -1
  86. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts +12 -0
  87. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts.map +1 -1
  88. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts +27 -0
  89. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -1
  90. package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts +14 -0
  91. package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts.map +1 -1
  92. package/build/ts/surfaces/point-of-sale/render/api/action-api/action-api.d.ts +3 -5
  93. package/build/ts/surfaces/point-of-sale/render/api/action-api/action-api.d.ts.map +1 -1
  94. package/build/ts/surfaces/point-of-sale/render/api/cart-api/cart-api.d.ts +37 -31
  95. package/build/ts/surfaces/point-of-sale/render/api/cart-api/cart-api.d.ts.map +1 -1
  96. package/build/ts/surfaces/point-of-sale/render/api/cart-line-item-api/cart-line-item-api.d.ts +2 -2
  97. package/build/ts/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.d.ts +6 -4
  98. package/build/ts/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.d.ts.map +1 -1
  99. package/build/ts/surfaces/point-of-sale/render/api/customer-api/customer-api.d.ts +4 -1
  100. package/build/ts/surfaces/point-of-sale/render/api/customer-api/customer-api.d.ts.map +1 -1
  101. package/build/ts/surfaces/point-of-sale/render/api/device-api/device-api.d.ts +4 -4
  102. package/build/ts/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.d.ts +6 -3
  103. package/build/ts/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.d.ts.map +1 -1
  104. package/build/ts/surfaces/point-of-sale/render/api/locale-api/locale-api.d.ts +3 -4
  105. package/build/ts/surfaces/point-of-sale/render/api/locale-api/locale-api.d.ts.map +1 -1
  106. package/build/ts/surfaces/point-of-sale/render/api/navigation-api/navigation-api.d.ts +9 -7
  107. package/build/ts/surfaces/point-of-sale/render/api/navigation-api/navigation-api.d.ts.map +1 -1
  108. package/build/ts/surfaces/point-of-sale/render/api/order-api/order-api.d.ts +5 -5
  109. package/build/ts/surfaces/point-of-sale/render/api/print-api/print-api.d.ts +7 -12
  110. package/build/ts/surfaces/point-of-sale/render/api/print-api/print-api.d.ts.map +1 -1
  111. package/build/ts/surfaces/point-of-sale/render/api/product-api/product-api.d.ts +5 -2
  112. package/build/ts/surfaces/point-of-sale/render/api/product-api/product-api.d.ts.map +1 -1
  113. package/build/ts/surfaces/point-of-sale/render/api/product-search-api/product-search-api.d.ts +24 -10
  114. package/build/ts/surfaces/point-of-sale/render/api/product-search-api/product-search-api.d.ts.map +1 -1
  115. package/build/ts/surfaces/point-of-sale/render/api/scanner-api/scanner-api.d.ts +22 -10
  116. package/build/ts/surfaces/point-of-sale/render/api/scanner-api/scanner-api.d.ts.map +1 -1
  117. package/build/ts/surfaces/point-of-sale/render/api/session-api/session-api.d.ts +3 -6
  118. package/build/ts/surfaces/point-of-sale/render/api/session-api/session-api.d.ts.map +1 -1
  119. package/build/ts/surfaces/point-of-sale/render/api/storage-api/storage-api.d.ts +7 -0
  120. package/build/ts/surfaces/point-of-sale/render/api/storage-api/storage-api.d.ts.map +1 -1
  121. package/build/ts/surfaces/point-of-sale/render/api/toast-api/toast-api.d.ts +11 -1
  122. package/build/ts/surfaces/point-of-sale/render/api/toast-api/toast-api.d.ts.map +1 -1
  123. package/build/ts/surfaces/point-of-sale/render/components/Badge/Badge.d.ts +12 -9
  124. package/build/ts/surfaces/point-of-sale/render/components/Badge/Badge.d.ts.map +1 -1
  125. package/build/ts/surfaces/point-of-sale/render/components/Banner/Banner.d.ts +13 -14
  126. package/build/ts/surfaces/point-of-sale/render/components/Banner/Banner.d.ts.map +1 -1
  127. package/build/ts/surfaces/point-of-sale/render/components/Button/Button.d.ts +9 -15
  128. package/build/ts/surfaces/point-of-sale/render/components/Button/Button.d.ts.map +1 -1
  129. package/build/ts/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.d.ts +6 -8
  130. package/build/ts/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.d.ts.map +1 -1
  131. package/build/ts/surfaces/point-of-sale/render/components/DatePicker/DatePicker.d.ts +8 -11
  132. package/build/ts/surfaces/point-of-sale/render/components/DatePicker/DatePicker.d.ts.map +1 -1
  133. package/build/ts/surfaces/point-of-sale/render/components/Dialog/Dialog.d.ts +13 -20
  134. package/build/ts/surfaces/point-of-sale/render/components/Dialog/Dialog.d.ts.map +1 -1
  135. package/build/ts/surfaces/point-of-sale/render/components/Icon/Icon.d.ts +10 -8
  136. package/build/ts/surfaces/point-of-sale/render/components/Icon/Icon.d.ts.map +1 -1
  137. package/build/ts/surfaces/point-of-sale/render/components/Image/Image.d.ts +10 -5
  138. package/build/ts/surfaces/point-of-sale/render/components/Image/Image.d.ts.map +1 -1
  139. package/build/ts/surfaces/point-of-sale/render/components/List/List.d.ts +30 -25
  140. package/build/ts/surfaces/point-of-sale/render/components/List/List.d.ts.map +1 -1
  141. package/build/ts/surfaces/point-of-sale/render/components/Navigator/Navigator.d.ts +1 -4
  142. package/build/ts/surfaces/point-of-sale/render/components/Navigator/Navigator.d.ts.map +1 -1
  143. package/build/ts/surfaces/point-of-sale/render/components/NumberField/NumberField.d.ts +7 -7
  144. package/build/ts/surfaces/point-of-sale/render/components/NumberField/NumberField.d.ts.map +1 -1
  145. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlock.d.ts +8 -10
  146. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlock.d.ts.map +1 -1
  147. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.d.ts +1 -4
  148. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.d.ts.map +1 -1
  149. package/build/ts/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.d.ts +0 -4
  150. package/build/ts/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.d.ts.map +1 -1
  151. package/build/ts/surfaces/point-of-sale/render/components/PinPad/PinPad.d.ts +25 -28
  152. package/build/ts/surfaces/point-of-sale/render/components/PinPad/PinPad.d.ts.map +1 -1
  153. package/build/ts/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.d.ts +1 -11
  154. package/build/ts/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.d.ts.map +1 -1
  155. package/build/ts/surfaces/point-of-sale/render/components/QRCode/QRCode.d.ts +1 -5
  156. package/build/ts/surfaces/point-of-sale/render/components/QRCode/QRCode.d.ts.map +1 -1
  157. package/build/ts/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.d.ts +7 -5
  158. package/build/ts/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.d.ts.map +1 -1
  159. package/build/ts/surfaces/point-of-sale/render/components/Screen/Screen.d.ts +13 -33
  160. package/build/ts/surfaces/point-of-sale/render/components/Screen/Screen.d.ts.map +1 -1
  161. package/build/ts/surfaces/point-of-sale/render/components/SearchBar/SearchBar.d.ts +7 -7
  162. package/build/ts/surfaces/point-of-sale/render/components/Section/Section.d.ts +6 -11
  163. package/build/ts/surfaces/point-of-sale/render/components/Section/Section.d.ts.map +1 -1
  164. package/build/ts/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.d.ts +9 -7
  165. package/build/ts/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.d.ts.map +1 -1
  166. package/build/ts/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.d.ts +9 -6
  167. package/build/ts/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  168. package/build/ts/surfaces/point-of-sale/render/components/Selectable/Selectable.d.ts +2 -2
  169. package/build/ts/surfaces/point-of-sale/render/components/Stack/Stack.d.ts +22 -22
  170. package/build/ts/surfaces/point-of-sale/render/components/Stack/Stack.d.ts.map +1 -1
  171. package/build/ts/surfaces/point-of-sale/render/components/Stepper/Stepper.d.ts +8 -6
  172. package/build/ts/surfaces/point-of-sale/render/components/Stepper/Stepper.d.ts.map +1 -1
  173. package/build/ts/surfaces/point-of-sale/render/components/Text/Text.d.ts +28 -2
  174. package/build/ts/surfaces/point-of-sale/render/components/Text/Text.d.ts.map +1 -1
  175. package/build/ts/surfaces/point-of-sale/render/components/TextArea/TextArea.d.ts +1 -6
  176. package/build/ts/surfaces/point-of-sale/render/components/TextArea/TextArea.d.ts.map +1 -1
  177. package/build/ts/surfaces/point-of-sale/render/components/TextField/TextField.d.ts +30 -0
  178. package/build/ts/surfaces/point-of-sale/render/components/TextField/TextField.d.ts.map +1 -1
  179. package/build/ts/surfaces/point-of-sale/render/components/Tile/Tile.d.ts +6 -15
  180. package/build/ts/surfaces/point-of-sale/render/components/Tile/Tile.d.ts.map +1 -1
  181. package/build/ts/surfaces/point-of-sale/render/components/TimeField/TimeField.d.ts +2 -1
  182. package/build/ts/surfaces/point-of-sale/render/components/TimeField/TimeField.d.ts.map +1 -1
  183. package/build/ts/surfaces/point-of-sale/render/components/TimePicker/TimePicker.d.ts +10 -14
  184. package/build/ts/surfaces/point-of-sale/render/components/TimePicker/TimePicker.d.ts.map +1 -1
  185. package/build/ts/surfaces/point-of-sale/render/components/shared/BaseTextField.d.ts +6 -14
  186. package/build/ts/surfaces/point-of-sale/render/components/shared/BaseTextField.d.ts.map +1 -1
  187. package/build/ts/surfaces/point-of-sale/render/components/shared/InputField.d.ts +16 -37
  188. package/build/ts/surfaces/point-of-sale/render/components/shared/InputField.d.ts.map +1 -1
  189. package/build/ts/surfaces/point-of-sale/render/components/shared/box.d.ts +31 -42
  190. package/build/ts/surfaces/point-of-sale/render/components/shared/box.d.ts.map +1 -1
  191. package/build/ts/surfaces/point-of-sale/render/components/shared/deprecated-types.d.ts +12 -0
  192. package/build/ts/surfaces/point-of-sale/render/components/shared/deprecated-types.d.ts.map +1 -1
  193. package/build/ts/surfaces/point-of-sale/render/components/shared/inner-layouts.d.ts +13 -7
  194. package/build/ts/surfaces/point-of-sale/render/components/shared/inner-layouts.d.ts.map +1 -1
  195. package/build/ts/surfaces/point-of-sale/render/components/shared/sizes.d.ts +3 -1
  196. package/build/ts/surfaces/point-of-sale/render/components/shared/sizes.d.ts.map +1 -1
  197. package/build/ts/surfaces/point-of-sale/targets.d.ts +135 -0
  198. package/build/ts/surfaces/point-of-sale/targets.d.ts.map +1 -1
  199. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +39 -0
  200. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts.map +1 -1
  201. package/build/ts/surfaces/point-of-sale/types/cart.d.ts +265 -22
  202. package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
  203. package/build/ts/surfaces/point-of-sale/types/country-code.d.ts +3 -0
  204. package/build/ts/surfaces/point-of-sale/types/country-code.d.ts.map +1 -1
  205. package/build/ts/surfaces/point-of-sale/types/device.d.ts +6 -3
  206. package/build/ts/surfaces/point-of-sale/types/device.d.ts.map +1 -1
  207. package/build/ts/surfaces/point-of-sale/types/direct-api-request-body.d.ts +3 -3
  208. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts +6 -0
  209. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts.map +1 -1
  210. package/build/ts/surfaces/point-of-sale/types/money.d.ts +18 -0
  211. package/build/ts/surfaces/point-of-sale/types/money.d.ts.map +1 -1
  212. package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts +1 -2
  213. package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts.map +1 -1
  214. package/build/ts/surfaces/point-of-sale/types/order.d.ts +18 -0
  215. package/build/ts/surfaces/point-of-sale/types/order.d.ts.map +1 -1
  216. package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts +2 -3
  217. package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts.map +1 -1
  218. package/build/ts/surfaces/point-of-sale/types/payment.d.ts +15 -0
  219. package/build/ts/surfaces/point-of-sale/types/payment.d.ts.map +1 -1
  220. package/build/ts/surfaces/point-of-sale/types/product.d.ts +172 -0
  221. package/build/ts/surfaces/point-of-sale/types/product.d.ts.map +1 -1
  222. package/build/ts/surfaces/point-of-sale/types/session.d.ts +7 -5
  223. package/build/ts/surfaces/point-of-sale/types/session.d.ts.map +1 -1
  224. package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts +32 -0
  225. package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts.map +1 -1
  226. package/build/ts/surfaces/point-of-sale/types/storage.d.ts +13 -11
  227. package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -1
  228. package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts +21 -0
  229. package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts.map +1 -1
  230. package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts +7 -0
  231. package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts.map +1 -1
  232. package/build/tsconfig.tsbuildinfo +1 -1
  233. package/package.json +6 -1
  234. package/src/surfaces/point-of-sale/api.ts +1 -0
  235. package/src/surfaces/point-of-sale/event/data/BaseApi.ts +3 -0
  236. package/src/surfaces/point-of-sale/event/data/BaseData.ts +15 -0
  237. package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +6 -0
  238. package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +27 -0
  239. package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +18 -0
  240. package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +9 -0
  241. package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +18 -0
  242. package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +12 -0
  243. package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +27 -0
  244. package/src/surfaces/point-of-sale/event/output/BaseOutput.ts +14 -0
  245. package/src/surfaces/point-of-sale/render/api/action-api/action-api.ts +3 -5
  246. package/src/surfaces/point-of-sale/render/api/cart-api/cart-api.ts +37 -31
  247. package/src/surfaces/point-of-sale/render/api/cart-line-item-api/cart-line-item-api.ts +2 -2
  248. package/src/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.ts +6 -4
  249. package/src/surfaces/point-of-sale/render/api/customer-api/customer-api.ts +4 -1
  250. package/src/surfaces/point-of-sale/render/api/device-api/device-api.ts +4 -4
  251. package/src/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.ts +6 -3
  252. package/src/surfaces/point-of-sale/render/api/locale-api/locale-api.ts +3 -4
  253. package/src/surfaces/point-of-sale/render/api/navigation-api/navigation-api.ts +9 -7
  254. package/src/surfaces/point-of-sale/render/api/order-api/order-api.ts +5 -5
  255. package/src/surfaces/point-of-sale/render/api/print-api/print-api.ts +7 -12
  256. package/src/surfaces/point-of-sale/render/api/product-api/product-api.ts +5 -2
  257. package/src/surfaces/point-of-sale/render/api/product-search-api/product-search-api.ts +24 -10
  258. package/src/surfaces/point-of-sale/render/api/scanner-api/scanner-api.ts +22 -10
  259. package/src/surfaces/point-of-sale/render/api/session-api/session-api.ts +3 -6
  260. package/src/surfaces/point-of-sale/render/api/storage-api/storage-api.ts +7 -0
  261. package/src/surfaces/point-of-sale/render/api/toast-api/toast-api.ts +11 -1
  262. package/src/surfaces/point-of-sale/render/components/Badge/Badge.ts +12 -10
  263. package/src/surfaces/point-of-sale/render/components/Banner/Banner.ts +13 -14
  264. package/src/surfaces/point-of-sale/render/components/Button/Button.ts +9 -15
  265. package/src/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.ts +6 -8
  266. package/src/surfaces/point-of-sale/render/components/DatePicker/DatePicker.ts +8 -11
  267. package/src/surfaces/point-of-sale/render/components/Dialog/Dialog.ts +13 -20
  268. package/src/surfaces/point-of-sale/render/components/Icon/Icon.ts +254 -248
  269. package/src/surfaces/point-of-sale/render/components/Image/Image.ts +14 -5
  270. package/src/surfaces/point-of-sale/render/components/List/List.ts +30 -25
  271. package/src/surfaces/point-of-sale/render/components/Navigator/Navigator.ts +1 -4
  272. package/src/surfaces/point-of-sale/render/components/NumberField/NumberField.ts +7 -7
  273. package/src/surfaces/point-of-sale/render/components/POSBlock/POSBlock.ts +5 -9
  274. package/src/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.ts +1 -4
  275. package/src/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.ts +0 -4
  276. package/src/surfaces/point-of-sale/render/components/PinPad/PinPad.ts +25 -28
  277. package/src/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.ts +1 -11
  278. package/src/surfaces/point-of-sale/render/components/QRCode/QRCode.ts +1 -5
  279. package/src/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.ts +4 -4
  280. package/src/surfaces/point-of-sale/render/components/Screen/Screen.ts +13 -33
  281. package/src/surfaces/point-of-sale/render/components/SearchBar/SearchBar.ts +7 -7
  282. package/src/surfaces/point-of-sale/render/components/Section/Section.ts +6 -11
  283. package/src/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.ts +6 -6
  284. package/src/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.ts +9 -7
  285. package/src/surfaces/point-of-sale/render/components/Selectable/Selectable.ts +2 -2
  286. package/src/surfaces/point-of-sale/render/components/Stack/Stack.ts +27 -22
  287. package/src/surfaces/point-of-sale/render/components/Stepper/Stepper.ts +8 -6
  288. package/src/surfaces/point-of-sale/render/components/Text/Text.ts +28 -2
  289. package/src/surfaces/point-of-sale/render/components/TextArea/TextArea.ts +1 -6
  290. package/src/surfaces/point-of-sale/render/components/TextField/TextField.ts +30 -0
  291. package/src/surfaces/point-of-sale/render/components/Tile/Tile.ts +6 -15
  292. package/src/surfaces/point-of-sale/render/components/TimeField/TimeField.ts +2 -1
  293. package/src/surfaces/point-of-sale/render/components/TimePicker/TimePicker.ts +10 -14
  294. package/src/surfaces/point-of-sale/render/components/shared/BaseTextField.ts +6 -14
  295. package/src/surfaces/point-of-sale/render/components/shared/InputField.ts +16 -37
  296. package/src/surfaces/point-of-sale/render/components/shared/box.ts +33 -42
  297. package/src/surfaces/point-of-sale/render/components/shared/deprecated-types.ts +12 -0
  298. package/src/surfaces/point-of-sale/render/components/shared/inner-layouts.ts +14 -7
  299. package/src/surfaces/point-of-sale/render/components/shared/sizes.ts +3 -1
  300. package/src/surfaces/point-of-sale/targets.ts +135 -0
  301. package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +39 -0
  302. package/src/surfaces/point-of-sale/types/cart.ts +267 -22
  303. package/src/surfaces/point-of-sale/types/country-code.ts +3 -0
  304. package/src/surfaces/point-of-sale/types/device.ts +6 -3
  305. package/src/surfaces/point-of-sale/types/direct-api-request-body.ts +3 -3
  306. package/src/surfaces/point-of-sale/types/discount-allocation.ts +6 -0
  307. package/src/surfaces/point-of-sale/types/money.ts +18 -0
  308. package/src/surfaces/point-of-sale/types/multiple-resource-result.ts +1 -2
  309. package/src/surfaces/point-of-sale/types/order.ts +18 -0
  310. package/src/surfaces/point-of-sale/types/paginated-result.ts +2 -3
  311. package/src/surfaces/point-of-sale/types/payment.ts +16 -0
  312. package/src/surfaces/point-of-sale/types/product.ts +172 -0
  313. package/src/surfaces/point-of-sale/types/session.ts +7 -5
  314. package/src/surfaces/point-of-sale/types/shipping-line.ts +32 -0
  315. package/src/surfaces/point-of-sale/types/storage.ts +13 -11
  316. package/src/surfaces/point-of-sale/types/tax-line.ts +21 -0
  317. package/src/surfaces/point-of-sale/types/transaction-type.ts +7 -0
@@ -1,31 +1,33 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
-
2
+ /**
3
+ * Defines the structure and configuration options for individual segments within the `SegmentedControl` component.
4
+ */
3
5
  export interface Segment {
4
6
  /**
5
- * The id of the segment.
7
+ * The unique identifier for the segment used for selection tracking and callback identification.
6
8
  */
7
9
  id: string;
8
10
  /**
9
- * The label of the segment.
11
+ * The text label displayed on the segment that users see and interact with.
10
12
  */
11
13
  label: string;
12
14
  /**
13
- * Whether the segment is disabled.
15
+ * Whether the segment is disabled and non-interactive.
14
16
  */
15
17
  disabled: boolean;
16
18
  }
17
19
 
18
20
  export interface SegmentedControlProps {
19
21
  /**
20
- * The segments to display.
22
+ * An array of segment objects that define the available options in the segmented control.
21
23
  */
22
24
  segments: Segment[];
23
25
  /**
24
- * The id of the selected segment.
26
+ * The id of the currently selected segment that determines which option is visually highlighted.
25
27
  */
26
28
  selected: string;
27
29
  /**
28
- * A callback when a segment is selected.
30
+ * A callback function executed when a segment is selected, receiving the selected segment's id as a parameter.
29
31
  */
30
32
  onSelect: (id: string) => void;
31
33
  }
@@ -2,11 +2,11 @@ import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
3
  export interface SelectableProps {
4
4
  /**
5
- * The callback on press.
5
+ * The callback function that's executed when the user taps or presses the selectable component. This is the primary way to handle user interactions with the wrapped content. The function receives no parameters and should contain the logic for what happens when the selection occurs, such as navigation, state updates, or triggering other actions.
6
6
  */
7
7
  onPress: () => void;
8
8
  /**
9
- * Whether the selectable reacts to presses.
9
+ * Controls whether the selectable component responds to user interactions. When set to `true`, the component won't react to taps or presses, the `onPress` callback won't be triggered, and the wrapped content appears non-interactive. Use this to temporarily disable selection during loading states, form validation, or when certain conditions aren't met. When `false` or undefined, the component responds normally to user interactions.
10
10
  */
11
11
  disabled?: boolean;
12
12
  }
@@ -6,11 +6,13 @@ import {
6
6
  SpacingKeyword,
7
7
  GapProps,
8
8
  } from '../shared/inner-layouts';
9
+ /* eslint-disable import/no-deprecated */
9
10
  import {
10
11
  HorizontalSpacing,
11
12
  Spacing,
12
13
  VerticalSpacing,
13
14
  } from '../shared/deprecated-types';
15
+ /* eslint-enable import/no-deprecated */
14
16
 
15
17
  /**
16
18
  *
@@ -20,8 +22,7 @@ type DeprecatedStackDirection = 'vertical' | 'horizontal';
20
22
 
21
23
  export interface StackProps extends PaddingProps, SizingProps, GapProps {
22
24
  /**
23
- * Sets how the Stack's children are placed within the Stack.
24
- * 'vertical' and 'horizontal' are deprecated. Using these values will use the Stack implementation from 2024-10.
25
+ * The direction in which children are placed within the `Stack` component. Use `'block'` for vertical arrangement along the block axis without wrapping, or `'inline'` for horizontal arrangement along the inline axis with automatic wrapping.
25
26
  *
26
27
  * @default 'inline'
27
28
  */
@@ -36,85 +37,89 @@ export interface StackProps extends PaddingProps, SizingProps, GapProps {
36
37
  alignment?: ContentPosition | ContentDistribution;
37
38
 
38
39
  /**
39
- * Aligns the Stack along the main axis.
40
+ * The alignment of the `Stack` component along the main axis, controlling how space is distributed between and around content items.
41
+ * Learn more about [justify-content on MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content).
40
42
  *
41
- * @see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
42
43
  * @default 'start'
43
44
  */
44
45
  justifyContent?: ContentPosition | ContentDistribution;
45
46
 
46
47
  /**
47
- * Aligns the Stack along the cross axis.
48
+ * The alignment of the `Stack` component along the cross axis, controlling how content is distributed when there's extra space.
49
+ * Learn more about [align-content on MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content).
48
50
  *
49
- * @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
50
51
  * @default 'start'
51
52
  */
52
53
  alignContent?: 'stretch' | ContentPosition | ContentDistribution;
53
54
 
54
55
  /**
55
- * Aligns the Stack's children along the cross axis.
56
+ * The alignment of the `Stack` component's children along the cross axis, controlling how individual items are positioned.
57
+ * Learn more about [align-items on MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items).
56
58
  *
57
- * @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
58
59
  * @default 'stretch'
59
60
  */
60
61
  alignItems?: 'stretch' | 'baseline' | ContentPosition;
61
62
 
62
63
  /**
63
- * The vertical padding around the stack.
64
+ * The vertical padding around the `Stack` component.
65
+ *
64
66
  * @deprecated Use the `paddingBlock` prop instead.
65
67
  */
68
+ // eslint-disable-next-line import/no-deprecated
66
69
  paddingVertical?: VerticalSpacing;
67
70
 
68
71
  /**
69
- * The horizontal padding around the stack.
72
+ * The horizontal padding around the `Stack` component.
73
+ *
70
74
  * @deprecated Use the `paddingInline` prop instead.
71
75
  */
76
+ // eslint-disable-next-line import/no-deprecated
72
77
  paddingHorizontal?: HorizontalSpacing;
73
78
 
74
79
  /**
75
- * The spacing between each child in the stack.
80
+ * The spacing between each child in the `Stack` component.
81
+ *
76
82
  * @defaultValue 1
77
83
  * @deprecated Use the `gap` prop instead.
78
84
  */
85
+ // eslint-disable-next-line import/no-deprecated
79
86
  spacing?: Spacing;
80
87
 
81
88
  /**
82
- * The size of the gap between each child in the stack.
89
+ * The size of the gap between each child in the `Stack` component.
90
+ *
83
91
  * @defaultValue '0'
84
92
  */
85
93
  gap?: SpacingKeyword;
86
94
 
87
95
  /**
88
- * Adjust spacing between elements in the block axis.
89
- *
90
- * This overrides the row value of `gap`.
96
+ * The spacing between elements in the block axis. Overrides the row value of gap.
91
97
  *
92
98
  * @default '' - meaning no override
93
99
  */
94
100
  rowGap?: SpacingKeyword | '';
95
101
 
96
102
  /**
97
- * Adjust spacing between elements in the inline axis.
98
- *
99
- * This overrides the column value of `gap`.
103
+ * The spacing between elements in the inline axis. Overrides the column value of gap.
100
104
  *
101
105
  * @default '' - meaning no override
102
106
  */
103
107
  columnGap?: SpacingKeyword | '';
104
108
 
105
109
  /**
106
- * Whether the children should be stretched to fill the cross axis.
110
+ * A boolean that determines whether the children should be stretched to fill the cross axis.
107
111
  */
108
112
  flexChildren?: boolean;
109
113
 
110
114
  /**
111
- * The flex value for the stack. Flex 1 will stretch the stack to fill the parent.
115
+ * The flex value for the `Stack` component. A value of 1 will stretch the component to fill the parent container.
112
116
  */
113
117
  flex?: number;
114
118
 
115
119
  /**
116
- * Wrap behavior for the children of the stack.
117
- * @deprecated Has no effect, content will always wrap.
120
+ * The wrap behavior for the children of the `Stack` component.
121
+ *
122
+ * @deprecated This property has no effect as content will always wrap.
118
123
  */
119
124
  flexWrap?: 'wrap' | 'nowrap' | 'wrap-reverse';
120
125
  }
@@ -2,33 +2,35 @@ import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
3
  export interface StepperProps {
4
4
  /**
5
- * The initial value of the stepper.
5
+ * The initial value of the stepper that sets the starting numeric value when the component is first rendered.
6
6
  */
7
7
  initialValue: number;
8
8
 
9
9
  /**
10
- * A callback when the value of the stepper changes.
10
+ * A callback function executed when the value of the stepper changes, receiving the new numeric value as a parameter.
11
11
  */
12
12
  onValueChanged: (value: number) => void;
13
13
 
14
14
  /**
15
- * Use to set the minimum value of the stepper.
15
+ * The minimum value that the stepper can reach. When the value equals the minimum, the decrement button will be disabled.
16
+ *
16
17
  * @defaultValue 1
17
18
  */
18
19
  minimumValue?: number;
19
20
 
20
21
  /**
21
- * Use to set the maximum value of the stepper.
22
+ * The maximum value that the stepper can reach. When the value equals the maximum, the increment button will be disabled.
22
23
  */
23
24
  maximumValue?: number;
24
25
 
25
26
  /**
26
- * Only use this field if you wish to override the internal state of this component.
27
+ * An optional value to override the internal state of the component. Only use this if you need complete control over the stepper's value from external state.
27
28
  */
28
29
  value?: number;
29
30
 
30
31
  /**
31
- * Whether the field can be modified.
32
+ * Whether the field can be modified, disabling both increment and decrement buttons.
33
+ *
32
34
  * @defaultValue false
33
35
  */
34
36
  disabled?: boolean;
@@ -1,5 +1,18 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
+ /**
4
+ * Defines the typography hierarchy options for text elements. Each variant provides specific sizing, weight, and styling appropriate for different content types.
5
+ *
6
+ * Available variants:
7
+ * - `sectionHeader`: A section header variant for titles that organize and introduce content sections.
8
+ * - `captionRegular`: A regular caption variant for supplementary text, labels, or secondary information.
9
+ * - `captionRegularTall`: A taller caption variant with increased line height for improved readability in dense layouts.
10
+ * - `captionMedium`: A medium-weight caption variant for slightly emphasized secondary text or important labels.
11
+ * - `body`: The standard body text variant for primary content, descriptions, and general text.
12
+ * - `headingSmall`: A small heading variant for subsection titles and secondary headings.
13
+ * - `headingLarge`: A large heading variant for main section titles and primary headings.
14
+ * - `display`: The largest display variant for prominent titles, hero text, or major interface elements.
15
+ */
3
16
  export type TextVariant =
4
17
  | 'sectionHeader'
5
18
  | 'captionRegular'
@@ -10,6 +23,19 @@ export type TextVariant =
10
23
  | 'headingLarge'
11
24
  | 'display';
12
25
 
26
+ /**
27
+ * Defines the semantic color options for text elements. Each color conveys specific meaning and intent through visual styling.
28
+ *
29
+ * Available colors:
30
+ * - `TextNeutral`: A neutral text color for general content that doesn't convey specific semantic meaning.
31
+ * - `TextSubdued`: A subdued text color for secondary information, captions, or content that should be less prominent.
32
+ * - `TextDisabled`: A disabled text color for inactive or unavailable content that users can't interact with.
33
+ * - `TextWarning`: A warning text color for cautionary messages or content that requires user attention.
34
+ * - `TextCritical`: A critical text color for errors, failures, or destructive actions that require immediate attention.
35
+ * - `TextSuccess`: A success text color for positive outcomes, confirmations, or completed actions.
36
+ * - `TextInteractive`: An interactive text color for clickable elements, links, or content that users can interact with.
37
+ * - `TextHighlight`: A highlight text color for emphasized content that needs to stand out or draw special attention.
38
+ */
13
39
  export type ColorType =
14
40
  | 'TextNeutral'
15
41
  | 'TextSubdued'
@@ -22,11 +48,11 @@ export type ColorType =
22
48
 
23
49
  export interface TextProps {
24
50
  /**
25
- * The text variant.
51
+ * The typography variant that determines the size, weight, and styling of the text within the design system hierarchy.
26
52
  */
27
53
  variant?: TextVariant;
28
54
  /**
29
- * The text color.
55
+ * The semantic color of the text that conveys meaning and intent through visual styling.
30
56
  */
31
57
  color?: ColorType;
32
58
  }
@@ -1,14 +1,9 @@
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 TextField component.
6
- * @typedef {Object} TextAreaProps
7
- * @property {number} [rows] - The initial number of lines to be displayed. Maximum of 8 lines.
8
- */
9
4
  export interface TextAreaProps extends InputProps {
10
5
  /**
11
- * The initial number of lines to be displayed. Maximum of 8 lines.
6
+ * The initial number of visible text lines to be displayed. Maximum of 8 lines.
12
7
  */
13
8
  rows?: number;
14
9
  }
@@ -2,24 +2,54 @@ import {createRemoteComponent} from '@remote-ui/core';
2
2
  import type {InputProps} from '../shared/InputField';
3
3
 
4
4
  export interface ActionProps {
5
+ /**
6
+ * Identifies this as an action-type embedded element.
7
+ */
5
8
  type: 'action';
9
+ /**
10
+ * The message or label text displayed for the action.
11
+ */
6
12
  message: string;
13
+ /**
14
+ * A callback function executed when the action button is pressed, receiving the current field value as a parameter.
15
+ */
7
16
  onPress: (value: string) => void;
8
17
  }
9
18
 
10
19
  export interface InfoProps {
20
+ /**
21
+ * Identifies this as an info-type embedded element.
22
+ */
11
23
  type: 'info';
24
+ /**
25
+ * The informational message text to display to the user.
26
+ */
12
27
  message: string;
28
+ /**
29
+ * Controls whether the info message is always visible or only shown under certain conditions.
30
+ */
13
31
  alwaysShow?: boolean;
14
32
  }
15
33
 
16
34
  export interface SuccessProps {
35
+ /**
36
+ * Identifies this as a success-type embedded element.
37
+ */
17
38
  type: 'success';
39
+ /**
40
+ * An optional success message to display when the field validation or operation succeeds.
41
+ */
18
42
  message?: string;
19
43
  }
20
44
 
21
45
  export interface PasswordProps {
46
+ /**
47
+ * Identifies this as a password-type embedded element.
48
+ */
22
49
  type: 'password';
50
+ /**
51
+ * A callback function executed when the password action button is pressed, receiving the current field value as a parameter.
52
+ */
23
53
  onPress: (value: string) => void;
24
54
  }
25
55
 
@@ -1,37 +1,28 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
- /**
4
- * @property `title` the text set on the main label of the tile.
5
- * @property `subtitle` the text set on the secondary label of the tile.
6
- * @property `enabled` sets whether or not the tile can be tapped.
7
- * @property `destructive` sets whether or not the tile has a destructive appearance and active state as of POS
8
- * 10.0.0.
9
- * @property `badgeValue` the number value displayed in the top right corner of the tile.
10
- * @property `onPress` the callback that is executed when the tile is tapped.
11
- */
12
3
  export interface TileProps {
13
4
  /**
14
- * The text set on the main label of the tile.
5
+ * The text displayed as the main label of the tile.
15
6
  */
16
7
  title: string;
17
8
  /**
18
- * The text set on the secondary label of the tile.
9
+ * The text displayed as the secondary label below the title.
19
10
  */
20
11
  subtitle?: string;
21
12
  /**
22
- * Sets whether or not the tile can be tapped.
13
+ * Whether the tile can be tapped and responds to user interaction. When disabled, the tile appears dimmed and doesn't respond to tap events.
23
14
  */
24
15
  enabled?: boolean;
25
16
  /**
26
- * Sets whether or not the tile is in a red destructive appearance.
17
+ * Sets whether the tile appears in a destructive/warning state. As of POS 10.0.0, this property creates an "active state" appearance rather than just red coloring.
27
18
  */
28
19
  destructive?: boolean;
29
20
  /**
30
- * The number value displayed in the top right corner of the tile.
21
+ * A numeric value displayed as a small badge in the top right corner of the tile.
31
22
  */
32
23
  badgeValue?: number;
33
24
  /**
34
- * The callback that is executed when the tile is tapped.
25
+ * The callback function that's executed when users tap the tile.
35
26
  */
36
27
  onPress?: () => void;
37
28
  }
@@ -15,7 +15,8 @@ export interface TimeFieldProps
15
15
  | 'helpText'
16
16
  > {
17
17
  /**
18
- * (Android only) Whether the clock displays in 24 hour time instead of 12 hour time.
18
+ * Whether the clock displays in 24-hour format instead of 12-hour format. This property only affects Android devices.
19
+ *
19
20
  * @defaultValue false
20
21
  */
21
22
  is24Hour?: boolean;
@@ -1,17 +1,10 @@
1
1
  import {createRemoteComponent} from '@remote-ui/core';
2
2
 
3
- /**
4
- * Represents the properties for the TimePicker component.
5
- * @property selected - The selected time.
6
- * @property onChange - A callback for changes.
7
- * @property visibleState - Controls the visible state, and a callback to set the visible state as false when the dialog closes.
8
- * @property is24Hour - (Android only) Whether the clock displays in 24 hour time instead of 12 hour time.
9
- * @property inputMode - Whether to display the picker in inline (clock) mode or spinner mode.
10
- */
11
3
  export interface TimePickerProps {
12
4
  /**
13
- * The selected time.
14
- * @defaultValue The current time
5
+ * The currently selected time value. Defaults to the current time when not specified.
6
+ *
7
+ * @defaultValue The current time.
15
8
  */
16
9
  selected?: string;
17
10
  /**
@@ -19,17 +12,20 @@ export interface TimePickerProps {
19
12
  */
20
13
  onChange?(selected: string): void;
21
14
  /**
22
- * Controls the visible state, and a callback to set the visible state as false when the dialog closes.
15
+ * A tuple that controls the visible state of the picker and provides a callback to set visibility to false when the dialog closes. The first element is the current visibility state, and the second is a setter function.
23
16
  */
24
17
  visibleState: [boolean, (visible: boolean) => void];
25
18
  /**
26
- * (Android only) Whether the clock displays in 24 hour time instead of 12 hour time.
19
+ * Whether the clock displays in 24-hour format instead of 12-hour format. This property only affects Android devices.
20
+ *
27
21
  * @defaultValue false
28
22
  */
29
23
  is24Hour?: boolean;
30
24
  /**
31
- * Whether to display the picker in inline (clock) mode or spinner mode.
32
- * iOS only supports 'spinner'.
25
+ * The display mode for the time picker.
26
+ * - `inline`: A clock-style interface that displays an analog or digital clock where users can tap to select specific times. Provides visual context about time relationships. Only available on Android devices—iOS always uses spinner mode.
27
+ * - `spinner`: A spinner-style selector with scrollable columns for hours, minutes, and optionally seconds. Offers a more compact interface suitable for all devices and is the only mode supported on iOS.
28
+ *
33
29
  * @defaultValue 'inline'
34
30
  */
35
31
  inputMode?: 'inline' | 'spinner';
@@ -1,34 +1,26 @@
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
- */
9
1
  export interface BaseTextFieldProps {
10
2
  /**
11
- * The title of the `TextField`.
3
+ * The title text displayed for the text field.
12
4
  */
13
5
  title?: string;
14
6
  /**
15
- * Populates the `TextField` with an text initial value.
7
+ * The initial text value to populate the text field with when it first renders.
16
8
  */
17
9
  initialValue?: string;
18
10
  /**
19
- * Sets a placeholder value for when the `TextField` is empty.
11
+ * A placeholder hint displayed when the text field is empty.
20
12
  */
21
13
  placeholder?: string;
22
14
  /**
23
- * Set whether the current value in the `TextField` is valid.
15
+ * Controls the validation state of the current value in the text field. When `false`, indicates invalid input.
24
16
  */
25
17
  isValid?: boolean;
26
18
  /**
27
- * Sets an error message to present to the user.
19
+ * An error message to display to the user when validation fails.
28
20
  */
29
21
  errorMessage?: string;
30
22
  /**
31
- * A callback that is executed every time the `TextField` value changes.
23
+ * A callback function executed every time the text field value changes, receiving the new value as a parameter.
32
24
  */
33
25
  onChangeText?: (value: string) => void;
34
26
  }
@@ -1,69 +1,48 @@
1
1
  /**
2
- * Represents an action type for the text field components.
3
- * @typedef {Object} InputAction
4
- * @property {string} label - The text displayed in the button.
5
- * @property {boolean} [disabled] - Whether the button is disabled.
6
- * @property {function(): void} onPress - A callback to be performed.
2
+ * Defines the configuration object for action buttons displayed below input fields to provide extra functionality.
7
3
  */
8
4
  export interface InputAction {
9
5
  /**
10
- * The text displayed in the button.
6
+ * The text displayed on the action button.
11
7
  */
12
8
  label: string;
13
9
  /**
14
- * A callback to be performed.
10
+ * A callback function executed when the action button is pressed.
15
11
  */
16
12
  onPress: () => void;
17
13
  /**
18
- * Whether the button can be pressed.
14
+ * A boolean value that determines whether the action button can be pressed.
19
15
  */
20
16
  disabled?: boolean;
21
17
  }
22
18
 
23
- /**
24
- * Represents the properties for the text field components.
25
- * @typedef {Object} InputProps
26
- * @property {boolean} [disabled] - Whether the field is disabled.
27
- * @property {string} [error] - Indicate an error to the user. The field will be given a specific stylistic treatment to communicate problems that have to be resolved immediately.
28
- * @property {string} [label] - Content to use as the field label.
29
- * @property {function(): void} [onBlur] - Callback when focus is blurred.
30
- * @property {function(value: string): void} [onChange] - Callback when the user has finished editing a field.
31
- * @property {function(): void} [onFocus] - Callback when input is focused.
32
- * @property {function(value: string): void} [onInput] - 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.
33
- * @property {string} [placeholder] - A short hint that describes the expected value of the field.
34
- * @property {boolean} [required] - Whether the field needs a value.
35
- * @property {string} [value] - The current value for the field. If omitted, the field will be empty. You should update this value in response to the `onChange` callback.
36
- * @property {string} [helpText] - Label under the text field which provides guidance or instructions that assist users.
37
- * @property {InputAction} [action] - A button under the text field to provide extra functionality.
38
- * @property {number?} [maxLength] - Specifies the maximum number of characters allowed.
39
- */
40
19
  export interface InputProps {
41
20
  /**
42
- * Whether the field can be modified.
21
+ * Controls whether the field can be modified. When `true`, the field is disabled and users cannot edit its value.
43
22
  */
44
23
  disabled?: boolean;
45
24
  /**
46
- * Indicates an error to the user. The field is given specific stylistic treatment to communicate problems that have to be resolved immediately.
25
+ * An error message that indicates a problem to the user. The field is given specific stylistic treatment to communicate issues that must be resolved immediately.
47
26
  */
48
27
  error?: string;
49
28
  /**
50
- * The content to use as the field label.
29
+ * The content to use as the field label that describes the text information being requested.
51
30
  */
52
31
  label: string;
53
32
  /**
54
- * The callback when focus is removed.
33
+ * A callback function executed when focus is removed from the field.
55
34
  */
56
35
  onBlur?: () => void;
57
36
  /**
58
- * The callback when the user has finished editing a field.
37
+ * A callback function executed when the user has finished editing the field, receiving the new text value as a parameter. You should update the `value` property in response to this callback.
59
38
  */
60
39
  onChange?: (value: string) => void;
61
40
  /**
62
- * The callback when input is focused.
41
+ * A callback function executed when the field receives focus.
63
42
  */
64
43
  onFocus?: () => void;
65
44
  /**
66
- * 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.
45
+ * A callback function executed immediately when the user makes any change in the field. Use this for real-time feedback, such as clearing validation errors as soon as the user begins making corrections. Don't use this to update the `value` property—the `onChange` callback is the appropriate handler for updating the field's value.
67
46
  */
68
47
  onInput?: (value: string) => void;
69
48
  /**
@@ -71,23 +50,23 @@ export interface InputProps {
71
50
  */
72
51
  placeholder?: string;
73
52
  /**
74
- * Whether the field needs a value.
53
+ * A boolean that indicates whether the field needs a value for form submission or validation purposes.
75
54
  */
76
55
  required?: boolean;
77
56
  /**
78
- * The current value for the field. Defaults to now. You should update this value in response to the `onChange` callback.
57
+ * The current text value for the field. If omitted, the field will be empty. You should update the `value` property in response to the `onChange` callback.
79
58
  */
80
59
  value?: string;
81
60
  /**
82
- * The label under the text field which provides guidance or instructions that assist users.
61
+ * The label text displayed under the field that provides guidance or instructions to assist users.
83
62
  */
84
63
  helpText?: string;
85
64
  /**
86
- * A button under the text field to provide extra functionality.
65
+ * A button configuration object displayed under the text field to provide extra functionality.
87
66
  */
88
67
  action?: InputAction;
89
68
  /**
90
- * The maximum number of characters allowed in the input field.
69
+ * The maximum number of characters allowed in the text field.
91
70
  */
92
71
  maxLength?: number;
93
72
  }