@shopify/ui-extensions 2025.7.1 → 2025.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/checkout/api/announcement/announcement.d.ts +20 -6
- package/build/ts/surfaces/checkout/api/announcement/announcement.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +2 -2
- package/build/ts/surfaces/checkout/targets.d.ts +2 -2
- package/build/ts/surfaces/checkout/targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout.d.ts +1 -1
- package/build/ts/surfaces/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/announcement/announcement.d.ts +20 -6
- package/build/ts/surfaces/customer-account/api/announcement/announcement.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/docs.d.ts +2 -0
- package/build/ts/surfaces/customer-account/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts +2 -0
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api.d.ts +1 -0
- package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/targets.d.ts +4 -4
- package/build/ts/surfaces/customer-account/targets.d.ts.map +1 -1
- 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 +19 -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 +19 -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 +138 -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 +281 -10
- 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 +11 -0
- package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/types/money.d.ts +22 -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/checkout/api/announcement/announcement.ts +20 -6
- package/src/surfaces/checkout/api/checkout/checkout.ts +2 -2
- package/src/surfaces/checkout/targets.ts +2 -2
- package/src/surfaces/checkout.ts +1 -1
- package/src/surfaces/customer-account/api/announcement/announcement.ts +20 -6
- package/src/surfaces/customer-account/api/docs.ts +3 -0
- package/src/surfaces/customer-account/api/standard-api/standard-api.ts +2 -0
- package/src/surfaces/customer-account/api.ts +2 -0
- package/src/surfaces/customer-account/targets.ts +5 -4
- 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 +19 -0
- package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +9 -0
- package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +19 -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 +139 -0
- package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +39 -0
- package/src/surfaces/point-of-sale/types/cart.ts +284 -10
- 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 +11 -0
- package/src/surfaces/point-of-sale/types/money.ts +23 -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
|
@@ -4,24 +4,24 @@ import {ColorType} from '../Text/Text';
|
|
|
4
4
|
|
|
5
5
|
export interface ToggleSwitch {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* The current state of the toggle switch. When `true`, the switch is in the "on" position. When `false`, it's in the "off" position.
|
|
8
8
|
*/
|
|
9
9
|
value?: boolean;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Controls whether the toggle switch can be interacted with. When `true`, the switch is disabled and users cannot change its state.
|
|
13
13
|
*/
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export interface SubtitleType {
|
|
18
18
|
/**
|
|
19
|
-
* The
|
|
19
|
+
* The text content to display as a subtitle beneath the main label.
|
|
20
20
|
*/
|
|
21
21
|
content: string;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* The semantic color of the subtitle text that conveys meaning and intent through visual styling.
|
|
25
25
|
*/
|
|
26
26
|
color?: ColorType;
|
|
27
27
|
}
|
|
@@ -30,25 +30,27 @@ export type ListRowSubtitle = string | SubtitleType;
|
|
|
30
30
|
|
|
31
31
|
export interface ListRowLeftSide {
|
|
32
32
|
/**
|
|
33
|
-
* The main label
|
|
33
|
+
* The main label text displayed prominently on the left side of the row.
|
|
34
34
|
*/
|
|
35
35
|
label: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
* Subtitles can optionally be configured with colors by passing an object with a `content` and `color` properties.
|
|
37
|
+
* An array of up to three subtitles displayed beneath the main label. Each subtitle can be a string or an object with content and color properties.
|
|
39
38
|
*/
|
|
40
39
|
subtitle?: [ListRowSubtitle, ListRowSubtitle?, ListRowSubtitle?];
|
|
41
40
|
/**
|
|
42
|
-
*
|
|
41
|
+
* An array of colored badges displayed underneath the title and subtitles for additional status or category information.
|
|
43
42
|
*/
|
|
44
43
|
badges?: BadgeProps[];
|
|
44
|
+
/**
|
|
45
|
+
* An image configuration object for displaying images on the far left side of the row with optional badge overlay.
|
|
46
|
+
*/
|
|
45
47
|
image?: {
|
|
46
48
|
/**
|
|
47
|
-
* A
|
|
49
|
+
* A URL to an image to be displayed on the far left side of the row.
|
|
48
50
|
*/
|
|
49
51
|
source?: string;
|
|
50
52
|
/**
|
|
51
|
-
* A
|
|
53
|
+
* A numeric badge displayed on the top right corner of the image, typically used for counts or quantities.
|
|
52
54
|
*/
|
|
53
55
|
badge?: number;
|
|
54
56
|
};
|
|
@@ -56,65 +58,68 @@ export interface ListRowLeftSide {
|
|
|
56
58
|
|
|
57
59
|
export interface ListRowRightSide {
|
|
58
60
|
/**
|
|
59
|
-
*
|
|
61
|
+
* An optional label text displayed on the right side of the row for additional information or values.
|
|
60
62
|
*/
|
|
61
63
|
label?: string;
|
|
62
64
|
/**
|
|
63
|
-
*
|
|
65
|
+
* A boolean that controls chevron display. Set to `true` when pressing the row navigates to another screen.
|
|
66
|
+
*
|
|
64
67
|
* @defaultValue `false`
|
|
65
68
|
*/
|
|
66
69
|
showChevron?: boolean;
|
|
67
70
|
/**
|
|
68
|
-
* A toggle switch
|
|
71
|
+
* A toggle switch configuration object displayed on the right side of the row for boolean settings or states.
|
|
69
72
|
*/
|
|
70
73
|
toggleSwitch?: ToggleSwitch;
|
|
71
74
|
}
|
|
72
75
|
|
|
73
76
|
export interface ListRow {
|
|
74
77
|
/**
|
|
75
|
-
* The unique identifier for
|
|
78
|
+
* The unique identifier for the list item used for tracking and interaction handling.
|
|
76
79
|
*/
|
|
77
80
|
id: string;
|
|
78
81
|
/**
|
|
79
|
-
* The
|
|
82
|
+
* The content configuration for the left side of the row, including label, subtitles, badges, and optional image.
|
|
80
83
|
*/
|
|
81
84
|
leftSide: ListRowLeftSide;
|
|
82
85
|
/**
|
|
83
|
-
* The
|
|
86
|
+
* The content configuration for the right side of the row, including optional label, chevron, and toggle switch.
|
|
84
87
|
*/
|
|
85
88
|
rightSide?: ListRowRightSide;
|
|
86
89
|
/**
|
|
87
|
-
*
|
|
90
|
+
* A callback function executed when the user taps the row.
|
|
88
91
|
*/
|
|
89
92
|
onPress?: () => void;
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
export interface ListProps {
|
|
93
96
|
/**
|
|
94
|
-
* A large display title at the top of the
|
|
97
|
+
* A large display title shown at the top of the list.
|
|
95
98
|
*/
|
|
96
99
|
title?: string;
|
|
97
100
|
/**
|
|
98
|
-
* A header component
|
|
101
|
+
* A header component displayed at the top of the list for additional context or controls.
|
|
99
102
|
*/
|
|
100
103
|
listHeaderComponent?: RemoteFragment;
|
|
101
104
|
/**
|
|
102
|
-
*
|
|
105
|
+
* An array of ListRow objects that define the content and structure of each row in the list.
|
|
103
106
|
*/
|
|
104
107
|
data: ListRow[];
|
|
105
108
|
/**
|
|
106
|
-
*
|
|
109
|
+
* A boolean indicating whether more data is being loaded. Set to `true` when paginating and fetching additional data for the list.
|
|
107
110
|
*/
|
|
108
111
|
isLoadingMore?: boolean;
|
|
109
112
|
/**
|
|
110
|
-
* The logic
|
|
111
|
-
*
|
|
112
|
-
* always
|
|
113
|
+
* The logic for displaying images or placeholders:
|
|
114
|
+
* - `automatic`: Displays images or placeholders only when it detects that a ListRow has an image source value.
|
|
115
|
+
* - `always`: Displays images or placeholders for all rows, even when image sources are undefined or empty.
|
|
116
|
+
* - `never`: Hides all images and placeholders, creating a text-only list layout.
|
|
117
|
+
*
|
|
113
118
|
* @defaultValue `automatic`
|
|
114
119
|
*/
|
|
115
120
|
imageDisplayStrategy?: 'automatic' | 'always' | 'never';
|
|
116
121
|
/**
|
|
117
|
-
*
|
|
122
|
+
* A callback function executed when the user reaches the end of the list. Use this to trigger requests for loading additional data.
|
|
118
123
|
*/
|
|
119
124
|
onEndReached?: () => void;
|
|
120
125
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* @property `initialScreenName` sets the initial `Screen` whose `name` matches.
|
|
5
|
-
*/
|
|
6
3
|
export interface NavigatorProps {
|
|
7
4
|
/**
|
|
8
|
-
*
|
|
5
|
+
* The name of the initial `Screen` component to display when the Navigator is first rendered. Must match the `name` property of a child `Screen` component.
|
|
9
6
|
*/
|
|
10
7
|
initialScreenName?: string;
|
|
11
8
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
2
|
import type {InputProps} from '../shared/InputField';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Represents the properties for the NumberField component.
|
|
6
|
-
* @typedef {Object} NumberFieldProps
|
|
7
|
-
* @property {'decimal' | 'numeric'} [inputMode] - The mode of input, can be either 'decimal' or 'numeric'.
|
|
8
|
-
*/
|
|
9
4
|
export interface NumberFieldProps extends InputProps {
|
|
5
|
+
/**
|
|
6
|
+
* The virtual keyboard layout to display:
|
|
7
|
+
* - `decimal`: A keyboard layout that includes decimal point support for entering fractional numbers, prices, or measurements with decimal precision.
|
|
8
|
+
* - `numeric`: A keyboard layout optimized for integer-only entry without decimal point support, ideal for quantities, counts, or whole number values.
|
|
9
|
+
*/
|
|
10
10
|
inputMode?: 'decimal' | 'numeric';
|
|
11
11
|
/**
|
|
12
|
-
* The highest decimal or integer to be accepted for the field.
|
|
12
|
+
* The highest decimal or integer to be accepted for the field. Users can still input higher numbers by keyboard—you must add appropriate validation logic.
|
|
13
13
|
*/
|
|
14
14
|
max?: number;
|
|
15
15
|
/**
|
|
16
|
-
* The lowest decimal or integer to be accepted for the field.
|
|
16
|
+
* The lowest decimal or integer to be accepted for the field. Users can still input lower numbers by keyboard—you must add appropriate validation logic.
|
|
17
17
|
*/
|
|
18
18
|
min?: number;
|
|
19
19
|
}
|
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Renders a `POSBlock`. Note that the text displayed on this `POSBlock`
|
|
5
|
-
* is dependent on the description of the extension. A `POSBlock` only
|
|
6
|
-
* accepts `POSBlockRow` as children.
|
|
7
|
-
*/
|
|
8
3
|
export interface POSBlockProps {
|
|
9
4
|
/**
|
|
10
|
-
*
|
|
5
|
+
* An optional action button configuration to be displayed on the `POSBlock`.
|
|
11
6
|
*/
|
|
12
7
|
action?: {
|
|
13
8
|
/**
|
|
14
|
-
* The
|
|
9
|
+
* The text displayed on the action button. Use clear, action-oriented language like "View Details" or "Update Status."
|
|
15
10
|
*/
|
|
16
11
|
title: string;
|
|
17
12
|
/**
|
|
18
|
-
*
|
|
13
|
+
* Controls whether the action button can be pressed. When `true`, the button is disabled and users cannot interact with it.
|
|
14
|
+
*
|
|
19
15
|
* @defaultValue false
|
|
20
16
|
*/
|
|
21
17
|
disabled?: boolean;
|
|
22
18
|
/**
|
|
23
|
-
* A callback
|
|
19
|
+
* A callback function executed when the action button is pressed. Use this to handle user interactions such as navigation or triggering specific actions.
|
|
24
20
|
*/
|
|
25
21
|
onPress: () => void;
|
|
26
22
|
};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Renders a `POSBlockRow` in a `POSBlock`.
|
|
5
|
-
*/
|
|
6
3
|
export interface POSBlockRowProps {
|
|
7
4
|
/**
|
|
8
|
-
* A callback
|
|
5
|
+
* A callback function executed when the user taps the row. Use this to handle row-specific interactions or navigation.
|
|
9
6
|
*/
|
|
10
7
|
onPress?: () => void;
|
|
11
8
|
}
|
|
@@ -2,10 +2,6 @@ import {createRemoteComponent} from '@remote-ui/core';
|
|
|
2
2
|
import {QRCode} from '../QRCode/QRCode';
|
|
3
3
|
import {Text} from '../Text/Text';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Renders a `POSReceiptBlock`. A `POSReceiptBlock` only accepts
|
|
7
|
-
* `Text` and `QRCode` as children (more to be added in the future).
|
|
8
|
-
*/
|
|
9
5
|
export interface POSReceiptBlockProps {}
|
|
10
6
|
export type AllowedChildrenComponents = typeof Text | typeof QRCode;
|
|
11
7
|
|
|
@@ -1,72 +1,69 @@
|
|
|
1
1
|
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Defines the validation result values that the `onSubmit` callback must return to indicate PIN verification status.
|
|
5
|
+
*
|
|
6
|
+
* Available values:
|
|
7
|
+
* - `accept`: A validation result indicating the PIN is correct and authentication was successful.
|
|
8
|
+
* - `reject`: A validation result indicating the PIN is incorrect and authentication failed.
|
|
6
9
|
*/
|
|
7
10
|
export type PinValidationResult = 'accept' | 'reject';
|
|
8
11
|
|
|
9
12
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
13
|
+
* Defines the allowed PIN length values that constrain how many digits users can enter.
|
|
14
|
+
*
|
|
15
|
+
* Available lengths:
|
|
16
|
+
* - `4`: A four-digit PIN length, commonly used for basic security codes and quick authentication.
|
|
17
|
+
* - `5`: A five-digit PIN length for moderate security requirements.
|
|
18
|
+
* - `6`: A six-digit PIN length, commonly used for enhanced security codes and verification.
|
|
19
|
+
* - `7`: A seven-digit PIN length for higher security requirements.
|
|
20
|
+
* - `8`: An eight-digit PIN length for strong security and complex authentication scenarios.
|
|
21
|
+
* - `9`: A nine-digit PIN length for very high security requirements.
|
|
22
|
+
* - `10`: A ten-digit PIN length, the maximum supported for highly secure authentication workflows.
|
|
12
23
|
*/
|
|
13
24
|
export type PinLength = 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
14
25
|
|
|
15
26
|
/**
|
|
16
|
-
*
|
|
17
|
-
* @typedef {Object} PinPadActionType
|
|
18
|
-
* @property {string} label - The label for the action button.
|
|
19
|
-
* @property {function(): number[]} onPress - The function to be called when the action button is pressed.
|
|
27
|
+
* Defines the configuration object for action buttons displayed between the PIN entry view and keypad.
|
|
20
28
|
*/
|
|
21
29
|
export interface PinPadActionType {
|
|
22
30
|
/**
|
|
23
|
-
* The label
|
|
31
|
+
* The label text displayed on the action button.
|
|
24
32
|
*/
|
|
25
33
|
label: string;
|
|
26
34
|
/**
|
|
27
|
-
*
|
|
35
|
+
* A callback function executed when the action button is pressed, returning the current PIN as an array of numbers.
|
|
28
36
|
*/
|
|
29
37
|
onPress: () => Promise<number[]>;
|
|
30
38
|
}
|
|
31
39
|
|
|
32
|
-
/**
|
|
33
|
-
* Represents the properties for the PinPad component.
|
|
34
|
-
* @typedef {Object} PinPadProps
|
|
35
|
-
* @property {boolean} [masked] - Whether the entered PIN should be masked.
|
|
36
|
-
* @property {PinLength} [minPinLength] - The minimum length of the PIN.
|
|
37
|
-
* @property {PinLength} [maxPinLength] - The maximum length of the PIN.
|
|
38
|
-
* @property {string} [label] - The content for the prompt on the pin pad.
|
|
39
|
-
* @property {PinPadActionType} [pinPadAction] - The call to action between the entry view and the keypad, consisting of a label and function that returns the pin.
|
|
40
|
-
* @property {function(pin: number[]): Promise<PinValidationResult>} onSubmit - The function to be called when the PIN is submitted.
|
|
41
|
-
* @property {function(pin: number[]): void} [onPinEntry] - The function to be called when a PIN is entered.
|
|
42
|
-
*/
|
|
43
40
|
export interface PinPadProps {
|
|
44
41
|
/**
|
|
45
|
-
*
|
|
42
|
+
* A boolean that determines whether the entered PIN should be masked with dots or asterisks to protect privacy and security.
|
|
46
43
|
*/
|
|
47
44
|
masked?: boolean;
|
|
48
45
|
/**
|
|
49
|
-
* The minimum length of the PIN.
|
|
46
|
+
* The minimum length of the PIN that users must enter before submission is allowed.
|
|
50
47
|
*/
|
|
51
48
|
minPinLength?: PinLength;
|
|
52
49
|
/**
|
|
53
|
-
* The maximum length of the PIN.
|
|
50
|
+
* The maximum length of the PIN that users can enter, constraining the number of digits.
|
|
54
51
|
*/
|
|
55
52
|
maxPinLength?: PinLength;
|
|
56
53
|
/**
|
|
57
|
-
* The content for the prompt on the pin pad.
|
|
54
|
+
* The content for the prompt displayed on the pin pad that instructs users what to enter.
|
|
58
55
|
*/
|
|
59
56
|
label?: string;
|
|
60
57
|
/**
|
|
61
|
-
*
|
|
58
|
+
* A call-to-action configuration displayed between the entry view and the keypad, consisting of a label and function that returns the current PIN.
|
|
62
59
|
*/
|
|
63
60
|
pinPadAction?: PinPadActionType;
|
|
64
61
|
/**
|
|
65
|
-
*
|
|
62
|
+
* A callback function executed when the PIN is submitted, receiving the PIN as an array of numbers. Must return a Promise that resolves to either `'accept'` or `'reject'` to indicate validation success or failure.
|
|
66
63
|
*/
|
|
67
64
|
onSubmit: (pin: number[]) => Promise<PinValidationResult>;
|
|
68
65
|
/**
|
|
69
|
-
*
|
|
66
|
+
* A callback function executed when a PIN is entered, receiving the PIN as an array of numbers. Use this for real-time feedback or validation during PIN entry.
|
|
70
67
|
*/
|
|
71
68
|
onPinEntry?: (pin: number[]) => void;
|
|
72
69
|
}
|
|
@@ -2,17 +2,7 @@ import {createRemoteComponent} from '@remote-ui/core';
|
|
|
2
2
|
|
|
3
3
|
export interface PrintPreviewProps {
|
|
4
4
|
/**
|
|
5
|
-
* The source to
|
|
6
|
-
*
|
|
7
|
-
* The src must be either:
|
|
8
|
-
* - A relative path that will be appended to your app's [application_url](/docs/apps/build/cli-for-apps/app-configuration#application_url)
|
|
9
|
-
* - A full URL to your app's backend that will be used to return the document
|
|
10
|
-
*
|
|
11
|
-
* Supported document types:
|
|
12
|
-
* - HTML documents (recommended for best printing experience)
|
|
13
|
-
* - Text files
|
|
14
|
-
* - Image files (PNG, JPEG, etc.)
|
|
15
|
-
* - PDF files
|
|
5
|
+
* The source URL of the content to preview for printing. Must be either a relative path appended to your app's [`application_url`](/docs/apps/build/cli-for-apps/app-configuration) or a full URL to your app's backend that returns the document.
|
|
16
6
|
*/
|
|
17
7
|
src: string;
|
|
18
8
|
}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* The `QRCode` component renders a QR code in Shopify POS.
|
|
5
|
-
* @property `value` the content to be encoded in the QR code.
|
|
6
|
-
*/
|
|
7
3
|
export interface QRCodeProps {
|
|
8
4
|
/**
|
|
9
|
-
* The content to be encoded in the QR code.
|
|
5
|
+
* The content to be encoded in the QR code. Can be any string such as a URL, email address, plain text, phone number, or formatted data. Specific string formatting can trigger actions on the user's device when scanned, like opening apps, preparing messages, or navigating to locations.
|
|
10
6
|
*/
|
|
11
7
|
value: string;
|
|
12
8
|
}
|
|
@@ -2,19 +2,19 @@ import {createRemoteComponent} from '@remote-ui/core';
|
|
|
2
2
|
|
|
3
3
|
export interface RadioButtonListProps {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* An array of string values representing the radio button options available for selection.
|
|
6
6
|
*/
|
|
7
7
|
items: string[];
|
|
8
8
|
/**
|
|
9
|
-
* A callback
|
|
9
|
+
* A callback function executed when a radio list item is selected, receiving the selected item string as a parameter. You must update the `initialSelectedItem` property in response to this callback to reflect the new selection.
|
|
10
10
|
*/
|
|
11
11
|
onItemSelected: (item: string) => void;
|
|
12
12
|
/**
|
|
13
|
-
* The name of the selected item.
|
|
13
|
+
* The name of the currently selected item. You control the selection by setting this property and updating it when `onItemSelected` fires.
|
|
14
14
|
*/
|
|
15
15
|
initialSelectedItem?: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* A boolean that determines whether the initially selected item renders at the top of the list, automatically scrolling to show the selected option.
|
|
18
18
|
*/
|
|
19
19
|
initialOffsetToShowSelectedItem?: boolean;
|
|
20
20
|
}
|
|
@@ -1,82 +1,62 @@
|
|
|
1
1
|
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
2
|
|
|
3
|
-
/** Represents the presentation of a screen in the navigation stack.
|
|
4
|
-
* @property `sheet` displays the screen from the bottom on `navigate` when `true`.
|
|
5
|
-
*/
|
|
6
3
|
export interface ScreenPresentationProps {
|
|
7
4
|
/**
|
|
8
|
-
* Displays the screen from the bottom
|
|
5
|
+
* Displays the screen from the bottom as a sheet presentation when true during navigation. The text label displayed on the secondary action button in the screen's action bar.
|
|
9
6
|
*/
|
|
10
7
|
sheet?: boolean;
|
|
11
8
|
}
|
|
12
9
|
|
|
13
|
-
/** Represents the secondary action button of a screen in the navigation stack.
|
|
14
|
-
* @property `text` displays the name of the secondary action in the action bar.
|
|
15
|
-
* @property `onPress` triggered when the secondary action button is pressed.
|
|
16
|
-
* @property `isEnabled` sets whether the action can be tapped.
|
|
17
|
-
*/
|
|
18
10
|
export interface SecondaryActionProps {
|
|
19
11
|
/**
|
|
20
|
-
*
|
|
12
|
+
* The text label displayed on the secondary action button in the screen's action bar.
|
|
21
13
|
*/
|
|
22
14
|
text: string;
|
|
23
15
|
/**
|
|
24
|
-
*
|
|
16
|
+
* A callback function triggered when the secondary action button is pressed by the user.
|
|
25
17
|
*/
|
|
26
18
|
onPress: () => void;
|
|
27
19
|
/**
|
|
28
|
-
*
|
|
20
|
+
* Whether the secondary action button can be tapped and is interactive.
|
|
29
21
|
*/
|
|
30
22
|
isEnabled?: boolean;
|
|
31
23
|
}
|
|
32
24
|
|
|
33
|
-
/** Represents a screen in the navigation stack.
|
|
34
|
-
* @property `name` used to identify this screen as a destination in the navigation stack.
|
|
35
|
-
* @property `title` the title of the screen which will be displayed on the UI.
|
|
36
|
-
* @property `isLoading` displays a loading indicator when `true`. Set this to `true` when performing an asynchronous task, and then to false when the data becomes available to the UI.
|
|
37
|
-
* @property `presentation` dictates how the `Screen` will be presented when navigated to.
|
|
38
|
-
* @property `secondaryAction` displays a secondary action button on the screen.
|
|
39
|
-
* @property `onNavigate` triggered when the screen is navigated to.
|
|
40
|
-
* @property `onNavigateBack` triggered when the user navigates back from this screen. Runs after screen is unmounted.
|
|
41
|
-
* @property `overrideNavigateBack` a callback that allows you to override the secondary navigation action. Runs when screen is mounted.
|
|
42
|
-
* @property `onReceiveParams` a callback that gets triggered when the navigation event completes and the screen receives the parameters.
|
|
43
|
-
*/
|
|
44
25
|
export interface ScreenProps {
|
|
45
26
|
/**
|
|
46
|
-
*
|
|
27
|
+
* The unique identifier used to identify this screen as a destination in the navigation stack.
|
|
47
28
|
*/
|
|
48
29
|
name: string;
|
|
49
30
|
/**
|
|
50
|
-
* The title of the screen
|
|
31
|
+
* The title text of the screen that will be displayed in the UI header.
|
|
51
32
|
*/
|
|
52
33
|
title: string;
|
|
53
34
|
/**
|
|
54
|
-
*
|
|
55
|
-
* Set this to `true` when performing an asynchronous task, and then to false when the data becomes available to the UI.
|
|
35
|
+
* A boolean that displays a loading indicator when `true`. Set this during asynchronous tasks and return to `false` when data becomes available.
|
|
56
36
|
*/
|
|
57
37
|
isLoading?: boolean;
|
|
58
38
|
/**
|
|
59
|
-
*
|
|
39
|
+
* The presentation configuration that dictates how the screen will be displayed when navigated to.
|
|
60
40
|
*/
|
|
61
41
|
presentation?: ScreenPresentationProps;
|
|
62
42
|
/**
|
|
63
|
-
*
|
|
43
|
+
* The configuration for a secondary action button displayed on the screen header.
|
|
64
44
|
*/
|
|
65
45
|
secondaryAction?: SecondaryActionProps;
|
|
66
46
|
/**
|
|
67
|
-
*
|
|
47
|
+
* A callback function triggered when the screen is navigated to in the navigation stack.
|
|
68
48
|
*/
|
|
69
49
|
onNavigate?: () => void;
|
|
70
50
|
/**
|
|
71
|
-
*
|
|
51
|
+
* A callback function triggered when the user navigates back from this screen. Runs after the screen is unmounted.
|
|
72
52
|
*/
|
|
73
53
|
onNavigateBack?: () => void;
|
|
74
54
|
/**
|
|
75
|
-
* A callback that allows you to override the
|
|
55
|
+
* A callback function that allows you to override the default back navigation action. Runs when the screen is mounted.
|
|
76
56
|
*/
|
|
77
57
|
overrideNavigateBack?: () => void;
|
|
78
58
|
/**
|
|
79
|
-
* A callback
|
|
59
|
+
* A callback function triggered when the navigation event completes and the screen receives parameters passed during navigation.
|
|
80
60
|
*/
|
|
81
61
|
onReceiveParams?: (params: any) => void;
|
|
82
62
|
}
|
|
@@ -2,31 +2,31 @@ import {createRemoteComponent} from '@remote-ui/core';
|
|
|
2
2
|
|
|
3
3
|
export interface SearchBarProps {
|
|
4
4
|
/**
|
|
5
|
-
* The initial text value in the search bar. This
|
|
5
|
+
* The initial text value displayed in the search bar when first rendered. This differs from placeholder text which appears when the field is empty.
|
|
6
6
|
*/
|
|
7
7
|
initialValue?: string;
|
|
8
8
|
/**
|
|
9
|
-
* A callback
|
|
9
|
+
* A callback function executed whenever the text value changes, receiving the new text value as a parameter for real-time search or filtering.
|
|
10
10
|
*/
|
|
11
11
|
onTextChange?: (value: string) => void;
|
|
12
12
|
/**
|
|
13
|
-
* A callback when the search button is tapped.
|
|
13
|
+
* A callback function executed when the search button is tapped, receiving the current search text as a parameter.
|
|
14
14
|
*/
|
|
15
15
|
onSearch: (value: string) => void;
|
|
16
16
|
/**
|
|
17
|
-
* A callback when the input
|
|
17
|
+
* A callback function executed when the search input field receives focus.
|
|
18
18
|
*/
|
|
19
19
|
onFocus?: () => void;
|
|
20
20
|
/**
|
|
21
|
-
* A callback when focus is removed.
|
|
21
|
+
* A callback function executed when focus is removed from the search input field.
|
|
22
22
|
*/
|
|
23
23
|
onBlur?: () => void;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* A boolean that determines whether the text can be changed by user input.
|
|
26
26
|
*/
|
|
27
27
|
editable?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
* The placeholder
|
|
29
|
+
* The placeholder text displayed in the search bar when no text is entered, providing guidance about what users can search for.
|
|
30
30
|
*/
|
|
31
31
|
placeholder?: string;
|
|
32
32
|
}
|
|
@@ -1,31 +1,26 @@
|
|
|
1
1
|
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* @property `onPress` the callback when the action is tapped by the user.
|
|
3
|
+
/**
|
|
4
|
+
* Defines the configuration object for the action button displayed within the section header.
|
|
6
5
|
*/
|
|
7
6
|
export interface SectionHeaderAction {
|
|
8
7
|
/**
|
|
9
|
-
* The title describing the action.
|
|
8
|
+
* The title text describing the action that will be displayed on the button.
|
|
10
9
|
*/
|
|
11
10
|
title: string;
|
|
12
11
|
/**
|
|
13
|
-
*
|
|
12
|
+
* A callback function that is executed when the action button is pressed by the user.
|
|
14
13
|
*/
|
|
15
14
|
onPress: () => void;
|
|
16
15
|
}
|
|
17
16
|
|
|
18
|
-
/** Renders content that is bound by a border, with a title and a call to action at the top.
|
|
19
|
-
* @property `title` the title of the section.
|
|
20
|
-
* @property `action` the action in the top right of the section that can be triggered by a tap.
|
|
21
|
-
*/
|
|
22
17
|
export interface SectionProps {
|
|
23
18
|
/**
|
|
24
|
-
* The title of the section.
|
|
19
|
+
* The title text displayed at the top of the section to describe its content.
|
|
25
20
|
*/
|
|
26
21
|
title?: string;
|
|
27
22
|
/**
|
|
28
|
-
*
|
|
23
|
+
* An optional action configuration displayed in the top right of the section that can be triggered by user interaction.
|
|
29
24
|
*/
|
|
30
25
|
action?: SectionHeaderAction;
|
|
31
26
|
}
|
|
@@ -2,28 +2,28 @@ import {createRemoteComponent} from '@remote-ui/core';
|
|
|
2
2
|
|
|
3
3
|
export interface SectionHeaderProps {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* The title text displayed in the section header. Provide clear, descriptive text that accurately represents the content section below.
|
|
6
6
|
*/
|
|
7
7
|
title: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* An optional action button configuration to be displayed alongside the title. The `SectionHeader` must have a title for the action to work properly.
|
|
10
10
|
*/
|
|
11
11
|
action?: {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* The label text displayed on the action button. Use clear, descriptive labels like "Edit Settings" or "Add Item."
|
|
14
14
|
*/
|
|
15
15
|
label: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* A callback function executed when the action button is pressed. Use this to handle user interactions such as navigation or triggering specific actions.
|
|
18
18
|
*/
|
|
19
19
|
onPress: () => void;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Controls whether the action button can be pressed. When `true`, the button is disabled and users can't interact with it.
|
|
22
22
|
*/
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* A boolean that controls whether the divider line under the `SectionHeader` should be hidden.
|
|
27
27
|
*/
|
|
28
28
|
hideDivider?: boolean;
|
|
29
29
|
}
|