@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.
- package/build/cjs/surfaces/point-of-sale/render/components/Badge/Badge.js +0 -7
- package/build/cjs/surfaces/point-of-sale/render/components/Banner/Banner.js +0 -9
- package/build/cjs/surfaces/point-of-sale/render/components/Button/Button.js +0 -8
- package/build/cjs/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.js +0 -6
- package/build/cjs/surfaces/point-of-sale/render/components/DatePicker/DatePicker.js +0 -8
- package/build/cjs/surfaces/point-of-sale/render/components/Dialog/Dialog.js +0 -12
- package/build/cjs/surfaces/point-of-sale/render/components/Image/Image.js +7 -2
- package/build/cjs/surfaces/point-of-sale/render/components/Navigator/Navigator.js +0 -4
- package/build/cjs/surfaces/point-of-sale/render/components/NumberField/NumberField.js +0 -6
- package/build/cjs/surfaces/point-of-sale/render/components/POSBlock/POSBlock.js +0 -6
- package/build/cjs/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.js +0 -4
- package/build/cjs/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.js +0 -5
- package/build/cjs/surfaces/point-of-sale/render/components/PinPad/PinPad.js +16 -20
- package/build/cjs/surfaces/point-of-sale/render/components/QRCode/QRCode.js +0 -5
- package/build/cjs/surfaces/point-of-sale/render/components/Screen/Screen.js +0 -22
- package/build/cjs/surfaces/point-of-sale/render/components/Section/Section.js +2 -8
- package/build/cjs/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.js +4 -0
- package/build/cjs/surfaces/point-of-sale/render/components/Stack/Stack.js +4 -0
- package/build/cjs/surfaces/point-of-sale/render/components/Text/Text.js +28 -0
- package/build/cjs/surfaces/point-of-sale/render/components/TextArea/TextArea.js +0 -6
- package/build/cjs/surfaces/point-of-sale/render/components/Tile/Tile.js +0 -10
- package/build/cjs/surfaces/point-of-sale/render/components/TimePicker/TimePicker.js +0 -9
- package/build/cjs/surfaces/point-of-sale/types/storage.js +3 -0
- package/build/esm/surfaces/point-of-sale/render/components/Badge/Badge.mjs +0 -7
- package/build/esm/surfaces/point-of-sale/render/components/Banner/Banner.mjs +0 -9
- package/build/esm/surfaces/point-of-sale/render/components/Button/Button.mjs +0 -8
- package/build/esm/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.mjs +0 -6
- package/build/esm/surfaces/point-of-sale/render/components/DatePicker/DatePicker.mjs +0 -8
- package/build/esm/surfaces/point-of-sale/render/components/Dialog/Dialog.mjs +0 -12
- package/build/esm/surfaces/point-of-sale/render/components/Image/Image.mjs +7 -2
- package/build/esm/surfaces/point-of-sale/render/components/Navigator/Navigator.mjs +0 -4
- package/build/esm/surfaces/point-of-sale/render/components/NumberField/NumberField.mjs +0 -6
- package/build/esm/surfaces/point-of-sale/render/components/POSBlock/POSBlock.mjs +0 -6
- package/build/esm/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.mjs +0 -4
- package/build/esm/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.mjs +0 -5
- package/build/esm/surfaces/point-of-sale/render/components/PinPad/PinPad.mjs +16 -20
- package/build/esm/surfaces/point-of-sale/render/components/QRCode/QRCode.mjs +0 -5
- package/build/esm/surfaces/point-of-sale/render/components/Screen/Screen.mjs +0 -22
- package/build/esm/surfaces/point-of-sale/render/components/Section/Section.mjs +2 -8
- package/build/esm/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.mjs +4 -0
- package/build/esm/surfaces/point-of-sale/render/components/Stack/Stack.mjs +4 -0
- package/build/esm/surfaces/point-of-sale/render/components/Text/Text.mjs +28 -0
- package/build/esm/surfaces/point-of-sale/render/components/TextArea/TextArea.mjs +0 -6
- package/build/esm/surfaces/point-of-sale/render/components/Tile/Tile.mjs +0 -10
- package/build/esm/surfaces/point-of-sale/render/components/TimePicker/TimePicker.mjs +0 -9
- package/build/esm/surfaces/point-of-sale/types/storage.mjs +3 -0
- package/build/esnext/surfaces/point-of-sale/render/components/Badge/Badge.esnext +0 -7
- package/build/esnext/surfaces/point-of-sale/render/components/Banner/Banner.esnext +0 -9
- package/build/esnext/surfaces/point-of-sale/render/components/Button/Button.esnext +0 -8
- package/build/esnext/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.esnext +0 -6
- package/build/esnext/surfaces/point-of-sale/render/components/DatePicker/DatePicker.esnext +0 -8
- package/build/esnext/surfaces/point-of-sale/render/components/Dialog/Dialog.esnext +0 -12
- package/build/esnext/surfaces/point-of-sale/render/components/Image/Image.esnext +7 -2
- package/build/esnext/surfaces/point-of-sale/render/components/Navigator/Navigator.esnext +0 -4
- package/build/esnext/surfaces/point-of-sale/render/components/NumberField/NumberField.esnext +0 -6
- package/build/esnext/surfaces/point-of-sale/render/components/POSBlock/POSBlock.esnext +0 -6
- package/build/esnext/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.esnext +0 -4
- package/build/esnext/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.esnext +0 -5
- package/build/esnext/surfaces/point-of-sale/render/components/PinPad/PinPad.esnext +16 -20
- package/build/esnext/surfaces/point-of-sale/render/components/QRCode/QRCode.esnext +0 -5
- package/build/esnext/surfaces/point-of-sale/render/components/Screen/Screen.esnext +0 -22
- package/build/esnext/surfaces/point-of-sale/render/components/Section/Section.esnext +2 -8
- package/build/esnext/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.esnext +4 -0
- package/build/esnext/surfaces/point-of-sale/render/components/Stack/Stack.esnext +4 -0
- package/build/esnext/surfaces/point-of-sale/render/components/Text/Text.esnext +28 -0
- package/build/esnext/surfaces/point-of-sale/render/components/TextArea/TextArea.esnext +0 -6
- package/build/esnext/surfaces/point-of-sale/render/components/Tile/Tile.esnext +0 -10
- package/build/esnext/surfaces/point-of-sale/render/components/TimePicker/TimePicker.esnext +0 -9
- package/build/esnext/surfaces/point-of-sale/types/storage.esnext +3 -0
- package/build/ts/surfaces/point-of-sale/api.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts +15 -0
- package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +27 -0
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +9 -0
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts +12 -0
- package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts +27 -0
- package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts +14 -0
- package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/api/action-api/action-api.d.ts +3 -5
- package/build/ts/surfaces/point-of-sale/render/api/action-api/action-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/api/cart-api/cart-api.d.ts +37 -31
- package/build/ts/surfaces/point-of-sale/render/api/cart-api/cart-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/api/cart-line-item-api/cart-line-item-api.d.ts +2 -2
- package/build/ts/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.d.ts +6 -4
- package/build/ts/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/api/customer-api/customer-api.d.ts +4 -1
- package/build/ts/surfaces/point-of-sale/render/api/customer-api/customer-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/api/device-api/device-api.d.ts +4 -4
- package/build/ts/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.d.ts +6 -3
- package/build/ts/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/api/locale-api/locale-api.d.ts +3 -4
- package/build/ts/surfaces/point-of-sale/render/api/locale-api/locale-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/api/navigation-api/navigation-api.d.ts +9 -7
- package/build/ts/surfaces/point-of-sale/render/api/navigation-api/navigation-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/api/order-api/order-api.d.ts +5 -5
- package/build/ts/surfaces/point-of-sale/render/api/print-api/print-api.d.ts +7 -12
- package/build/ts/surfaces/point-of-sale/render/api/print-api/print-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/api/product-api/product-api.d.ts +5 -2
- package/build/ts/surfaces/point-of-sale/render/api/product-api/product-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/api/product-search-api/product-search-api.d.ts +24 -10
- package/build/ts/surfaces/point-of-sale/render/api/product-search-api/product-search-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/api/scanner-api/scanner-api.d.ts +22 -10
- package/build/ts/surfaces/point-of-sale/render/api/scanner-api/scanner-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/api/session-api/session-api.d.ts +3 -6
- package/build/ts/surfaces/point-of-sale/render/api/session-api/session-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/api/storage-api/storage-api.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/render/api/storage-api/storage-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/api/toast-api/toast-api.d.ts +11 -1
- package/build/ts/surfaces/point-of-sale/render/api/toast-api/toast-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/Badge/Badge.d.ts +12 -9
- package/build/ts/surfaces/point-of-sale/render/components/Badge/Badge.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/Banner/Banner.d.ts +13 -14
- package/build/ts/surfaces/point-of-sale/render/components/Banner/Banner.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/Button/Button.d.ts +9 -15
- package/build/ts/surfaces/point-of-sale/render/components/Button/Button.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.d.ts +6 -8
- package/build/ts/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/DatePicker/DatePicker.d.ts +8 -11
- package/build/ts/surfaces/point-of-sale/render/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/Dialog/Dialog.d.ts +13 -20
- package/build/ts/surfaces/point-of-sale/render/components/Dialog/Dialog.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/Icon/Icon.d.ts +10 -8
- package/build/ts/surfaces/point-of-sale/render/components/Icon/Icon.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/Image/Image.d.ts +10 -5
- package/build/ts/surfaces/point-of-sale/render/components/Image/Image.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/List/List.d.ts +30 -25
- package/build/ts/surfaces/point-of-sale/render/components/List/List.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/Navigator/Navigator.d.ts +1 -4
- package/build/ts/surfaces/point-of-sale/render/components/Navigator/Navigator.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/NumberField/NumberField.d.ts +7 -7
- package/build/ts/surfaces/point-of-sale/render/components/NumberField/NumberField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlock.d.ts +8 -10
- package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlock.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.d.ts +1 -4
- package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/PinPad/PinPad.d.ts +25 -28
- package/build/ts/surfaces/point-of-sale/render/components/PinPad/PinPad.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.d.ts +1 -11
- package/build/ts/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/QRCode/QRCode.d.ts +1 -5
- package/build/ts/surfaces/point-of-sale/render/components/QRCode/QRCode.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.d.ts +7 -5
- package/build/ts/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/Screen/Screen.d.ts +13 -33
- package/build/ts/surfaces/point-of-sale/render/components/Screen/Screen.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/SearchBar/SearchBar.d.ts +7 -7
- package/build/ts/surfaces/point-of-sale/render/components/Section/Section.d.ts +6 -11
- package/build/ts/surfaces/point-of-sale/render/components/Section/Section.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.d.ts +9 -7
- package/build/ts/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.d.ts +9 -6
- package/build/ts/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/Selectable/Selectable.d.ts +2 -2
- package/build/ts/surfaces/point-of-sale/render/components/Stack/Stack.d.ts +22 -22
- package/build/ts/surfaces/point-of-sale/render/components/Stack/Stack.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/Stepper/Stepper.d.ts +8 -6
- package/build/ts/surfaces/point-of-sale/render/components/Stepper/Stepper.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/Text/Text.d.ts +28 -2
- package/build/ts/surfaces/point-of-sale/render/components/Text/Text.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/TextArea/TextArea.d.ts +1 -6
- package/build/ts/surfaces/point-of-sale/render/components/TextArea/TextArea.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/TextField/TextField.d.ts +30 -0
- package/build/ts/surfaces/point-of-sale/render/components/TextField/TextField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/Tile/Tile.d.ts +6 -15
- package/build/ts/surfaces/point-of-sale/render/components/Tile/Tile.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/TimeField/TimeField.d.ts +2 -1
- package/build/ts/surfaces/point-of-sale/render/components/TimeField/TimeField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/TimePicker/TimePicker.d.ts +10 -14
- package/build/ts/surfaces/point-of-sale/render/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/shared/BaseTextField.d.ts +6 -14
- package/build/ts/surfaces/point-of-sale/render/components/shared/BaseTextField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/shared/InputField.d.ts +16 -37
- package/build/ts/surfaces/point-of-sale/render/components/shared/InputField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/shared/box.d.ts +31 -42
- package/build/ts/surfaces/point-of-sale/render/components/shared/box.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/shared/deprecated-types.d.ts +12 -0
- package/build/ts/surfaces/point-of-sale/render/components/shared/deprecated-types.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/shared/inner-layouts.d.ts +13 -7
- package/build/ts/surfaces/point-of-sale/render/components/shared/inner-layouts.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/render/components/shared/sizes.d.ts +3 -1
- package/build/ts/surfaces/point-of-sale/render/components/shared/sizes.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/targets.d.ts +135 -0
- package/build/ts/surfaces/point-of-sale/targets.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +39 -0
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts +265 -22
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/country-code.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/types/country-code.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/device.d.ts +6 -3
- package/build/ts/surfaces/point-of-sale/types/device.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/direct-api-request-body.d.ts +3 -3
- package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/money.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/types/money.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts +1 -2
- package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/order.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/types/order.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts +2 -3
- package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/payment.d.ts +15 -0
- package/build/ts/surfaces/point-of-sale/types/payment.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/product.d.ts +172 -0
- package/build/ts/surfaces/point-of-sale/types/product.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/session.d.ts +7 -5
- package/build/ts/surfaces/point-of-sale/types/session.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts +32 -0
- package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/storage.d.ts +13 -11
- package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts +21 -0
- package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -1
- package/src/surfaces/point-of-sale/api.ts +1 -0
- package/src/surfaces/point-of-sale/event/data/BaseApi.ts +3 -0
- package/src/surfaces/point-of-sale/event/data/BaseData.ts +15 -0
- package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +6 -0
- package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +27 -0
- package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +18 -0
- package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +9 -0
- package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +18 -0
- package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +12 -0
- package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +27 -0
- package/src/surfaces/point-of-sale/event/output/BaseOutput.ts +14 -0
- package/src/surfaces/point-of-sale/render/api/action-api/action-api.ts +3 -5
- package/src/surfaces/point-of-sale/render/api/cart-api/cart-api.ts +37 -31
- package/src/surfaces/point-of-sale/render/api/cart-line-item-api/cart-line-item-api.ts +2 -2
- package/src/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.ts +6 -4
- package/src/surfaces/point-of-sale/render/api/customer-api/customer-api.ts +4 -1
- package/src/surfaces/point-of-sale/render/api/device-api/device-api.ts +4 -4
- package/src/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.ts +6 -3
- package/src/surfaces/point-of-sale/render/api/locale-api/locale-api.ts +3 -4
- package/src/surfaces/point-of-sale/render/api/navigation-api/navigation-api.ts +9 -7
- package/src/surfaces/point-of-sale/render/api/order-api/order-api.ts +5 -5
- package/src/surfaces/point-of-sale/render/api/print-api/print-api.ts +7 -12
- package/src/surfaces/point-of-sale/render/api/product-api/product-api.ts +5 -2
- package/src/surfaces/point-of-sale/render/api/product-search-api/product-search-api.ts +24 -10
- package/src/surfaces/point-of-sale/render/api/scanner-api/scanner-api.ts +22 -10
- package/src/surfaces/point-of-sale/render/api/session-api/session-api.ts +3 -6
- package/src/surfaces/point-of-sale/render/api/storage-api/storage-api.ts +7 -0
- package/src/surfaces/point-of-sale/render/api/toast-api/toast-api.ts +11 -1
- package/src/surfaces/point-of-sale/render/components/Badge/Badge.ts +12 -10
- package/src/surfaces/point-of-sale/render/components/Banner/Banner.ts +13 -14
- package/src/surfaces/point-of-sale/render/components/Button/Button.ts +9 -15
- package/src/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.ts +6 -8
- package/src/surfaces/point-of-sale/render/components/DatePicker/DatePicker.ts +8 -11
- package/src/surfaces/point-of-sale/render/components/Dialog/Dialog.ts +13 -20
- package/src/surfaces/point-of-sale/render/components/Icon/Icon.ts +254 -248
- package/src/surfaces/point-of-sale/render/components/Image/Image.ts +14 -5
- package/src/surfaces/point-of-sale/render/components/List/List.ts +30 -25
- package/src/surfaces/point-of-sale/render/components/Navigator/Navigator.ts +1 -4
- package/src/surfaces/point-of-sale/render/components/NumberField/NumberField.ts +7 -7
- package/src/surfaces/point-of-sale/render/components/POSBlock/POSBlock.ts +5 -9
- package/src/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.ts +1 -4
- package/src/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.ts +0 -4
- package/src/surfaces/point-of-sale/render/components/PinPad/PinPad.ts +25 -28
- package/src/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.ts +1 -11
- package/src/surfaces/point-of-sale/render/components/QRCode/QRCode.ts +1 -5
- package/src/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.ts +4 -4
- package/src/surfaces/point-of-sale/render/components/Screen/Screen.ts +13 -33
- package/src/surfaces/point-of-sale/render/components/SearchBar/SearchBar.ts +7 -7
- package/src/surfaces/point-of-sale/render/components/Section/Section.ts +6 -11
- package/src/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.ts +6 -6
- package/src/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.ts +9 -7
- package/src/surfaces/point-of-sale/render/components/Selectable/Selectable.ts +2 -2
- package/src/surfaces/point-of-sale/render/components/Stack/Stack.ts +27 -22
- package/src/surfaces/point-of-sale/render/components/Stepper/Stepper.ts +8 -6
- package/src/surfaces/point-of-sale/render/components/Text/Text.ts +28 -2
- package/src/surfaces/point-of-sale/render/components/TextArea/TextArea.ts +1 -6
- package/src/surfaces/point-of-sale/render/components/TextField/TextField.ts +30 -0
- package/src/surfaces/point-of-sale/render/components/Tile/Tile.ts +6 -15
- package/src/surfaces/point-of-sale/render/components/TimeField/TimeField.ts +2 -1
- package/src/surfaces/point-of-sale/render/components/TimePicker/TimePicker.ts +10 -14
- package/src/surfaces/point-of-sale/render/components/shared/BaseTextField.ts +6 -14
- package/src/surfaces/point-of-sale/render/components/shared/InputField.ts +16 -37
- package/src/surfaces/point-of-sale/render/components/shared/box.ts +33 -42
- package/src/surfaces/point-of-sale/render/components/shared/deprecated-types.ts +12 -0
- package/src/surfaces/point-of-sale/render/components/shared/inner-layouts.ts +14 -7
- package/src/surfaces/point-of-sale/render/components/shared/sizes.ts +3 -1
- package/src/surfaces/point-of-sale/targets.ts +135 -0
- package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +39 -0
- package/src/surfaces/point-of-sale/types/cart.ts +267 -22
- package/src/surfaces/point-of-sale/types/country-code.ts +3 -0
- package/src/surfaces/point-of-sale/types/device.ts +6 -3
- package/src/surfaces/point-of-sale/types/direct-api-request-body.ts +3 -3
- package/src/surfaces/point-of-sale/types/discount-allocation.ts +6 -0
- package/src/surfaces/point-of-sale/types/money.ts +18 -0
- package/src/surfaces/point-of-sale/types/multiple-resource-result.ts +1 -2
- package/src/surfaces/point-of-sale/types/order.ts +18 -0
- package/src/surfaces/point-of-sale/types/paginated-result.ts +2 -3
- package/src/surfaces/point-of-sale/types/payment.ts +16 -0
- package/src/surfaces/point-of-sale/types/product.ts +172 -0
- package/src/surfaces/point-of-sale/types/session.ts +7 -5
- package/src/surfaces/point-of-sale/types/shipping-line.ts +32 -0
- package/src/surfaces/point-of-sale/types/storage.ts +13 -11
- package/src/surfaces/point-of-sale/types/tax-line.ts +21 -0
- 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
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
117
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
5
|
+
* The text displayed as the main label of the tile.
|
|
15
6
|
*/
|
|
16
7
|
title: string;
|
|
17
8
|
/**
|
|
18
|
-
* The text
|
|
9
|
+
* The text displayed as the secondary label below the title.
|
|
19
10
|
*/
|
|
20
11
|
subtitle?: string;
|
|
21
12
|
/**
|
|
22
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
32
|
-
* iOS
|
|
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
|
|
3
|
+
* The title text displayed for the text field.
|
|
12
4
|
*/
|
|
13
5
|
title?: string;
|
|
14
6
|
/**
|
|
15
|
-
*
|
|
7
|
+
* The initial text value to populate the text field with when it first renders.
|
|
16
8
|
*/
|
|
17
9
|
initialValue?: string;
|
|
18
10
|
/**
|
|
19
|
-
*
|
|
11
|
+
* A placeholder hint displayed when the text field is empty.
|
|
20
12
|
*/
|
|
21
13
|
placeholder?: string;
|
|
22
14
|
/**
|
|
23
|
-
*
|
|
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
|
-
*
|
|
19
|
+
* An error message to display to the user when validation fails.
|
|
28
20
|
*/
|
|
29
21
|
errorMessage?: string;
|
|
30
22
|
/**
|
|
31
|
-
* A callback
|
|
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
|
-
*
|
|
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
|
|
6
|
+
* The text displayed on the action button.
|
|
11
7
|
*/
|
|
12
8
|
label: string;
|
|
13
9
|
/**
|
|
14
|
-
* A callback
|
|
10
|
+
* A callback function executed when the action button is pressed.
|
|
15
11
|
*/
|
|
16
12
|
onPress: () => void;
|
|
17
13
|
/**
|
|
18
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
33
|
+
* A callback function executed when focus is removed from the field.
|
|
55
34
|
*/
|
|
56
35
|
onBlur?: () => void;
|
|
57
36
|
/**
|
|
58
|
-
*
|
|
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
|
-
*
|
|
41
|
+
* A callback function executed when the field receives focus.
|
|
63
42
|
*/
|
|
64
43
|
onFocus?: () => void;
|
|
65
44
|
/**
|
|
66
|
-
*
|
|
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
|
-
*
|
|
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.
|
|
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
|
|
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
|
|
69
|
+
* The maximum number of characters allowed in the text field.
|
|
91
70
|
*/
|
|
92
71
|
maxLength?: number;
|
|
93
72
|
}
|