@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/Icon/Icon.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,cAAc,
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/Icon/Icon.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,cAAc,CAAC,kIAAkI,GAC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ChB,GAAG,CAAC,qHAAqH,GACzH,GAAG,CAAC,mGAAmG,GACvG,GAAG,CAAC,kJAAkJ,GACtJ,IAAI,CAAC,sHAAsH,CAAC;AAEhI,MAAM,MAAM,QAAQ,GAChB,cAAc,CAAC,iGAAiG,GAChH,cAAc,CAAC,4GAA4G,GAC3H,cAAc,CAAC,sHAAsH,GACrI,eAAe,CAAC,kGAAkG,GAClH,cAAc,CAAC,wGAAwG,GACvH,eAAe,CAAC,gHAAgH,GAChI,cAAc,CAAC,0FAA0F,GACzG,kBAAkB,CAAC,iHAAiH,GACpI,gBAAgB,CAAC,8GAA8G,GAC/H,cAAc,CAAC,yFAAyF,GACxG,mBAAmB,CAAC,qGAAqG,GACzH,kBAAkB,CAAC,mGAAmG,GACtH,eAAe,CAAC,wFAAwF,GACxG,oBAAoB,CAAC,+FAA+F,GACpH,aAAa,CAAC,kGAAkG,GAChH,mBAAmB,CAAC,0FAA0F,GAC9G,iBAAiB,CAAC,4FAA4F,GAC9G,oBAAoB,CAAC,4FAA4F,GACjH,gBAAgB,CAAC,uFAAuF,GACxG,kBAAkB,CAAC,2FAA2F,GAC9G,kBAAkB,CAAC,2FAA2F,GAC9G,6BAA6B,CAAC,kGAAkG,GAChI,sBAAsB,CAAC,0FAA0F,CAAC;AAEtH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,EAAE,QAAQ,GAAG,kBAAkB,CAAC;IACpC;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,kBAAkB,CAAC;IACrC;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,eAAO,MAAM,IAAI;;;;CAAmD,CAAC"}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
export type ImageSize = 's' | 'm' | 'l' | 'xl'
|
|
1
|
+
export type ImageSize = 's' /** A small image size. Use for thumbnails, compact layouts, or when minimal space is available for image display. */ | 'm' /** A medium image size. Use for secondary content, list items, or compact interface elements where space is moderately constrained. */ | 'l' /** A large image size (default). Provides optimal visibility and balance for most interface elements, product displays, and standard image content. */ | 'xl' /** An extra large image size. Use for hero images, featured content, or when maximum visual impact and detail visibility are needed. */;
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Defines how images are resized and positioned within their containers. Controls image scaling, cropping, and aspect ratio handling.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* Available resize modes:
|
|
6
|
+
* - `center`: Centers the image within its container without scaling. The image maintains its original size and is positioned in the center, potentially leaving empty space or being cropped if the container is smaller.
|
|
7
|
+
* - `contain`: Scales the image to fit entirely within the container while maintaining aspect ratio. The entire image will be visible, but there may be empty space if the aspect ratios don't match.
|
|
8
|
+
* - `cover`: Scales the image to fill the entire container while maintaining aspect ratio. Parts of the image may be cropped if the aspect ratios don't match, but the container will be completely filled.
|
|
9
|
+
* - `repeat`: Repeats the image to fill the container. The image maintains its original size and is tiled both horizontally and vertically to cover the entire container area.
|
|
10
|
+
* - `stretch`: Stretches the image to fill the container completely, potentially distorting the aspect ratio. The image will fill the entire container but may appear stretched or compressed.
|
|
6
11
|
*/
|
|
7
12
|
export type FillResizeMode = 'cover' | 'contain' | 'stretch' | 'repeat' | 'center';
|
|
8
13
|
export interface ImageProps {
|
|
9
14
|
/**
|
|
10
|
-
* The source of the image to be displayed.
|
|
15
|
+
* The source of the image to be displayed. Provide a valid URL to a remote image or a local file resource. When no `src` is provided or the image is loading, a placeholder will be rendered.
|
|
11
16
|
*/
|
|
12
17
|
src?: string;
|
|
13
18
|
/**
|
|
14
|
-
* The size or fill
|
|
19
|
+
* The size or fill behavior of the image. Use `ImageSize` values (`'s'`, `'m'`, `'l'`, `'xl'`) for fixed dimensions, or `FillResizeMode` values (`'cover'`, `'contain'`, `'stretch'`, `'repeat'`, `'center'`) to control how the image fills its container.
|
|
15
20
|
*
|
|
16
21
|
* @default 'l'
|
|
17
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/Image/Image.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/Image/Image.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GACjB,GAAG,CAAC,qHAAqH,GACzH,GAAG,CAAC,uIAAuI,GAC3I,GAAG,CAAC,uJAAuJ,GAC3J,IAAI,CAAC,wIAAwI,CAAC;AAElJ;;;;;;;;;GASG;AACH,MAAM,MAAM,cAAc,GACtB,OAAO,GACP,SAAS,GACT,SAAS,GACT,QAAQ,GACR,QAAQ,CAAC;AAEb,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,cAAc,CAAC;CACnC;AAED,eAAO,MAAM,KAAK;;;;CAAsD,CAAC"}
|
|
@@ -3,109 +3,114 @@ import { BadgeProps } from '../Badge/Badge';
|
|
|
3
3
|
import { ColorType } from '../Text/Text';
|
|
4
4
|
export interface ToggleSwitch {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* The current state of the toggle switch. When `true`, the switch is in the "on" position. When `false`, it's in the "off" position.
|
|
7
7
|
*/
|
|
8
8
|
value?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Controls whether the toggle switch can be interacted with. When `true`, the switch is disabled and users cannot change its state.
|
|
11
11
|
*/
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export interface SubtitleType {
|
|
15
15
|
/**
|
|
16
|
-
* The
|
|
16
|
+
* The text content to display as a subtitle beneath the main label.
|
|
17
17
|
*/
|
|
18
18
|
content: string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* The semantic color of the subtitle text that conveys meaning and intent through visual styling.
|
|
21
21
|
*/
|
|
22
22
|
color?: ColorType;
|
|
23
23
|
}
|
|
24
24
|
export type ListRowSubtitle = string | SubtitleType;
|
|
25
25
|
export interface ListRowLeftSide {
|
|
26
26
|
/**
|
|
27
|
-
* The main label
|
|
27
|
+
* The main label text displayed prominently on the left side of the row.
|
|
28
28
|
*/
|
|
29
29
|
label: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* Subtitles can optionally be configured with colors by passing an object with a `content` and `color` properties.
|
|
31
|
+
* 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.
|
|
33
32
|
*/
|
|
34
33
|
subtitle?: [ListRowSubtitle, ListRowSubtitle?, ListRowSubtitle?];
|
|
35
34
|
/**
|
|
36
|
-
*
|
|
35
|
+
* An array of colored badges displayed underneath the title and subtitles for additional status or category information.
|
|
37
36
|
*/
|
|
38
37
|
badges?: BadgeProps[];
|
|
38
|
+
/**
|
|
39
|
+
* An image configuration object for displaying images on the far left side of the row with optional badge overlay.
|
|
40
|
+
*/
|
|
39
41
|
image?: {
|
|
40
42
|
/**
|
|
41
|
-
* A
|
|
43
|
+
* A URL to an image to be displayed on the far left side of the row.
|
|
42
44
|
*/
|
|
43
45
|
source?: string;
|
|
44
46
|
/**
|
|
45
|
-
* A
|
|
47
|
+
* A numeric badge displayed on the top right corner of the image, typically used for counts or quantities.
|
|
46
48
|
*/
|
|
47
49
|
badge?: number;
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
export interface ListRowRightSide {
|
|
51
53
|
/**
|
|
52
|
-
*
|
|
54
|
+
* An optional label text displayed on the right side of the row for additional information or values.
|
|
53
55
|
*/
|
|
54
56
|
label?: string;
|
|
55
57
|
/**
|
|
56
|
-
*
|
|
58
|
+
* A boolean that controls chevron display. Set to `true` when pressing the row navigates to another screen.
|
|
59
|
+
*
|
|
57
60
|
* @defaultValue `false`
|
|
58
61
|
*/
|
|
59
62
|
showChevron?: boolean;
|
|
60
63
|
/**
|
|
61
|
-
* A toggle switch
|
|
64
|
+
* A toggle switch configuration object displayed on the right side of the row for boolean settings or states.
|
|
62
65
|
*/
|
|
63
66
|
toggleSwitch?: ToggleSwitch;
|
|
64
67
|
}
|
|
65
68
|
export interface ListRow {
|
|
66
69
|
/**
|
|
67
|
-
* The unique identifier for
|
|
70
|
+
* The unique identifier for the list item used for tracking and interaction handling.
|
|
68
71
|
*/
|
|
69
72
|
id: string;
|
|
70
73
|
/**
|
|
71
|
-
* The
|
|
74
|
+
* The content configuration for the left side of the row, including label, subtitles, badges, and optional image.
|
|
72
75
|
*/
|
|
73
76
|
leftSide: ListRowLeftSide;
|
|
74
77
|
/**
|
|
75
|
-
* The
|
|
78
|
+
* The content configuration for the right side of the row, including optional label, chevron, and toggle switch.
|
|
76
79
|
*/
|
|
77
80
|
rightSide?: ListRowRightSide;
|
|
78
81
|
/**
|
|
79
|
-
*
|
|
82
|
+
* A callback function executed when the user taps the row.
|
|
80
83
|
*/
|
|
81
84
|
onPress?: () => void;
|
|
82
85
|
}
|
|
83
86
|
export interface ListProps {
|
|
84
87
|
/**
|
|
85
|
-
* A large display title at the top of the
|
|
88
|
+
* A large display title shown at the top of the list.
|
|
86
89
|
*/
|
|
87
90
|
title?: string;
|
|
88
91
|
/**
|
|
89
|
-
* A header component
|
|
92
|
+
* A header component displayed at the top of the list for additional context or controls.
|
|
90
93
|
*/
|
|
91
94
|
listHeaderComponent?: RemoteFragment;
|
|
92
95
|
/**
|
|
93
|
-
*
|
|
96
|
+
* An array of ListRow objects that define the content and structure of each row in the list.
|
|
94
97
|
*/
|
|
95
98
|
data: ListRow[];
|
|
96
99
|
/**
|
|
97
|
-
*
|
|
100
|
+
* A boolean indicating whether more data is being loaded. Set to `true` when paginating and fetching additional data for the list.
|
|
98
101
|
*/
|
|
99
102
|
isLoadingMore?: boolean;
|
|
100
103
|
/**
|
|
101
|
-
* The logic
|
|
102
|
-
*
|
|
103
|
-
* always
|
|
104
|
+
* The logic for displaying images or placeholders:
|
|
105
|
+
* - `automatic`: Displays images or placeholders only when it detects that a ListRow has an image source value.
|
|
106
|
+
* - `always`: Displays images or placeholders for all rows, even when image sources are undefined or empty.
|
|
107
|
+
* - `never`: Hides all images and placeholders, creating a text-only list layout.
|
|
108
|
+
*
|
|
104
109
|
* @defaultValue `automatic`
|
|
105
110
|
*/
|
|
106
111
|
imageDisplayStrategy?: 'automatic' | 'always' | 'never';
|
|
107
112
|
/**
|
|
108
|
-
*
|
|
113
|
+
* A callback function executed when the user reaches the end of the list. Use this to trigger requests for loading additional data.
|
|
109
114
|
*/
|
|
110
115
|
onEndReached?: () => void;
|
|
111
116
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/List/List.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAwB,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAEvC,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,YAAY,CAAC;AAEpD,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/List/List.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAwB,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,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CAAC,EAAE,cAAc,CAAC;IACrC;;OAEG;IACH,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;;;OAOG;IACH,oBAAoB,CAAC,EAAE,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;IACxD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,IAAI;;;;CAAmD,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @property `initialScreenName` sets the initial `Screen` whose `name` matches.
|
|
3
|
-
*/
|
|
4
1
|
export interface NavigatorProps {
|
|
5
2
|
/**
|
|
6
|
-
*
|
|
3
|
+
* 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.
|
|
7
4
|
*/
|
|
8
5
|
initialScreenName?: string;
|
|
9
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigator.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/Navigator/Navigator.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"Navigator.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/Navigator/Navigator.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,SAAS;;;;CAErB,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { InputProps } from '../shared/InputField';
|
|
2
|
-
/**
|
|
3
|
-
* Represents the properties for the NumberField component.
|
|
4
|
-
* @typedef {Object} NumberFieldProps
|
|
5
|
-
* @property {'decimal' | 'numeric'} [inputMode] - The mode of input, can be either 'decimal' or 'numeric'.
|
|
6
|
-
*/
|
|
7
2
|
export interface NumberFieldProps extends InputProps {
|
|
3
|
+
/**
|
|
4
|
+
* The virtual keyboard layout to display:
|
|
5
|
+
* - `decimal`: A keyboard layout that includes decimal point support for entering fractional numbers, prices, or measurements with decimal precision.
|
|
6
|
+
* - `numeric`: A keyboard layout optimized for integer-only entry without decimal point support, ideal for quantities, counts, or whole number values.
|
|
7
|
+
*/
|
|
8
8
|
inputMode?: 'decimal' | 'numeric';
|
|
9
9
|
/**
|
|
10
|
-
* The highest decimal or integer to be accepted for the field.
|
|
10
|
+
* 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.
|
|
11
11
|
*/
|
|
12
12
|
max?: number;
|
|
13
13
|
/**
|
|
14
|
-
* The lowest decimal or integer to be accepted for the field.
|
|
14
|
+
* 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.
|
|
15
15
|
*/
|
|
16
16
|
min?: number;
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/NumberField/NumberField.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAErD
|
|
1
|
+
{"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/NumberField/NumberField.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAErD,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAClD;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,WAAW;;;;CAGR,CAAC"}
|
|
@@ -1,30 +1,28 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Renders a `POSBlock`. Note that the text displayed on this `POSBlock`
|
|
3
|
-
* is dependent on the description of the extension. A `POSBlock` only
|
|
4
|
-
* accepts `POSBlockRow` as children.
|
|
5
|
-
*/
|
|
6
1
|
export interface POSBlockProps {
|
|
7
2
|
/**
|
|
8
|
-
*
|
|
3
|
+
* An optional action button configuration to be displayed on the `POSBlock`.
|
|
9
4
|
*/
|
|
10
5
|
action?: {
|
|
11
6
|
/**
|
|
12
|
-
* The
|
|
7
|
+
* The text displayed on the action button. Use clear, action-oriented language like "View Details" or "Update Status."
|
|
13
8
|
*/
|
|
14
9
|
title: string;
|
|
15
10
|
/**
|
|
16
|
-
*
|
|
11
|
+
* Controls whether the action button can be pressed. When `true`, the button is disabled and users cannot interact with it.
|
|
12
|
+
*
|
|
17
13
|
* @defaultValue false
|
|
18
14
|
*/
|
|
19
15
|
disabled?: boolean;
|
|
20
16
|
/**
|
|
21
|
-
* A callback
|
|
17
|
+
* A callback function executed when the action button is pressed. Use this to handle user interactions such as navigation or triggering specific actions.
|
|
22
18
|
*/
|
|
23
19
|
onPress: () => void;
|
|
24
20
|
};
|
|
25
21
|
}
|
|
26
22
|
export declare const POSBlock: "POSBlock" & {
|
|
27
|
-
readonly type?: "POSBlock" | undefined;
|
|
23
|
+
readonly type?: "POSBlock" | undefined; /**
|
|
24
|
+
* The text displayed on the action button. Use clear, action-oriented language like "View Details" or "Update Status."
|
|
25
|
+
*/
|
|
28
26
|
readonly props?: POSBlockProps | undefined;
|
|
29
27
|
readonly children?: true | undefined;
|
|
30
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"POSBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/POSBlock/POSBlock.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"POSBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/POSBlock/POSBlock.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE;QACP;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;;;WAIG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB;;WAEG;QACH,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;CACH;AAED,eAAO,MAAM,QAAQ;4CAjBjB;;OAEG;;;CAiBN,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Renders a `POSBlockRow` in a `POSBlock`.
|
|
3
|
-
*/
|
|
4
1
|
export interface POSBlockRowProps {
|
|
5
2
|
/**
|
|
6
|
-
* A callback
|
|
3
|
+
* A callback function executed when the user taps the row. Use this to handle row-specific interactions or navigation.
|
|
7
4
|
*/
|
|
8
5
|
onPress?: () => void;
|
|
9
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"POSBlockRow.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"POSBlockRow.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,WAAW;;;;CAGR,CAAC"}
|
package/build/ts/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { QRCode } from '../QRCode/QRCode';
|
|
2
2
|
import { Text } from '../Text/Text';
|
|
3
|
-
/**
|
|
4
|
-
* Renders a `POSReceiptBlock`. A `POSReceiptBlock` only accepts
|
|
5
|
-
* `Text` and `QRCode` as children (more to be added in the future).
|
|
6
|
-
*/
|
|
7
3
|
export interface POSReceiptBlockProps {
|
|
8
4
|
}
|
|
9
5
|
export type AllowedChildrenComponents = typeof Text | typeof QRCode;
|
package/build/ts/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"POSReceiptBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AAElC
|
|
1
|
+
{"version":3,"file":"POSReceiptBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AAElC,MAAM,WAAW,oBAAoB;CAAG;AACxC,MAAM,MAAM,yBAAyB,GAAG,OAAO,IAAI,GAAG,OAAO,MAAM,CAAC;AAEpE,eAAO,MAAM,eAAe;;;;CAIR,CAAC"}
|
|
@@ -1,67 +1,64 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Defines the validation result values that the `onSubmit` callback must return to indicate PIN verification status.
|
|
3
|
+
*
|
|
4
|
+
* Available values:
|
|
5
|
+
* - `accept`: A validation result indicating the PIN is correct and authentication was successful.
|
|
6
|
+
* - `reject`: A validation result indicating the PIN is incorrect and authentication failed.
|
|
4
7
|
*/
|
|
5
8
|
export type PinValidationResult = 'accept' | 'reject';
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
10
|
+
* Defines the allowed PIN length values that constrain how many digits users can enter.
|
|
11
|
+
*
|
|
12
|
+
* Available lengths:
|
|
13
|
+
* - `4`: A four-digit PIN length, commonly used for basic security codes and quick authentication.
|
|
14
|
+
* - `5`: A five-digit PIN length for moderate security requirements.
|
|
15
|
+
* - `6`: A six-digit PIN length, commonly used for enhanced security codes and verification.
|
|
16
|
+
* - `7`: A seven-digit PIN length for higher security requirements.
|
|
17
|
+
* - `8`: An eight-digit PIN length for strong security and complex authentication scenarios.
|
|
18
|
+
* - `9`: A nine-digit PIN length for very high security requirements.
|
|
19
|
+
* - `10`: A ten-digit PIN length, the maximum supported for highly secure authentication workflows.
|
|
9
20
|
*/
|
|
10
21
|
export type PinLength = 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
11
22
|
/**
|
|
12
|
-
*
|
|
13
|
-
* @typedef {Object} PinPadActionType
|
|
14
|
-
* @property {string} label - The label for the action button.
|
|
15
|
-
* @property {function(): number[]} onPress - The function to be called when the action button is pressed.
|
|
23
|
+
* Defines the configuration object for action buttons displayed between the PIN entry view and keypad.
|
|
16
24
|
*/
|
|
17
25
|
export interface PinPadActionType {
|
|
18
26
|
/**
|
|
19
|
-
* The label
|
|
27
|
+
* The label text displayed on the action button.
|
|
20
28
|
*/
|
|
21
29
|
label: string;
|
|
22
30
|
/**
|
|
23
|
-
*
|
|
31
|
+
* A callback function executed when the action button is pressed, returning the current PIN as an array of numbers.
|
|
24
32
|
*/
|
|
25
33
|
onPress: () => Promise<number[]>;
|
|
26
34
|
}
|
|
27
|
-
/**
|
|
28
|
-
* Represents the properties for the PinPad component.
|
|
29
|
-
* @typedef {Object} PinPadProps
|
|
30
|
-
* @property {boolean} [masked] - Whether the entered PIN should be masked.
|
|
31
|
-
* @property {PinLength} [minPinLength] - The minimum length of the PIN.
|
|
32
|
-
* @property {PinLength} [maxPinLength] - The maximum length of the PIN.
|
|
33
|
-
* @property {string} [label] - The content for the prompt on the pin pad.
|
|
34
|
-
* @property {PinPadActionType} [pinPadAction] - The call to action between the entry view and the keypad, consisting of a label and function that returns the pin.
|
|
35
|
-
* @property {function(pin: number[]): Promise<PinValidationResult>} onSubmit - The function to be called when the PIN is submitted.
|
|
36
|
-
* @property {function(pin: number[]): void} [onPinEntry] - The function to be called when a PIN is entered.
|
|
37
|
-
*/
|
|
38
35
|
export interface PinPadProps {
|
|
39
36
|
/**
|
|
40
|
-
*
|
|
37
|
+
* A boolean that determines whether the entered PIN should be masked with dots or asterisks to protect privacy and security.
|
|
41
38
|
*/
|
|
42
39
|
masked?: boolean;
|
|
43
40
|
/**
|
|
44
|
-
* The minimum length of the PIN.
|
|
41
|
+
* The minimum length of the PIN that users must enter before submission is allowed.
|
|
45
42
|
*/
|
|
46
43
|
minPinLength?: PinLength;
|
|
47
44
|
/**
|
|
48
|
-
* The maximum length of the PIN.
|
|
45
|
+
* The maximum length of the PIN that users can enter, constraining the number of digits.
|
|
49
46
|
*/
|
|
50
47
|
maxPinLength?: PinLength;
|
|
51
48
|
/**
|
|
52
|
-
* The content for the prompt on the pin pad.
|
|
49
|
+
* The content for the prompt displayed on the pin pad that instructs users what to enter.
|
|
53
50
|
*/
|
|
54
51
|
label?: string;
|
|
55
52
|
/**
|
|
56
|
-
*
|
|
53
|
+
* A call-to-action configuration displayed between the entry view and the keypad, consisting of a label and function that returns the current PIN.
|
|
57
54
|
*/
|
|
58
55
|
pinPadAction?: PinPadActionType;
|
|
59
56
|
/**
|
|
60
|
-
*
|
|
57
|
+
* 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.
|
|
61
58
|
*/
|
|
62
59
|
onSubmit: (pin: number[]) => Promise<PinValidationResult>;
|
|
63
60
|
/**
|
|
64
|
-
*
|
|
61
|
+
* 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.
|
|
65
62
|
*/
|
|
66
63
|
onPinEntry?: (pin: number[]) => void;
|
|
67
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PinPad.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/PinPad/PinPad.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"PinPad.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/PinPad/PinPad.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEtD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC;;OAEG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC1D;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,MAAM;;;;CAAyD,CAAC"}
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
export interface PrintPreviewProps {
|
|
2
2
|
/**
|
|
3
|
-
* The source to
|
|
4
|
-
*
|
|
5
|
-
* The src must be either:
|
|
6
|
-
* - A relative path that will be appended to your app's [application_url](/docs/apps/build/cli-for-apps/app-configuration#application_url)
|
|
7
|
-
* - A full URL to your app's backend that will be used to return the document
|
|
8
|
-
*
|
|
9
|
-
* Supported document types:
|
|
10
|
-
* - HTML documents (recommended for best printing experience)
|
|
11
|
-
* - Text files
|
|
12
|
-
* - Image files (PNG, JPEG, etc.)
|
|
13
|
-
* - PDF files
|
|
3
|
+
* 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.
|
|
14
4
|
*/
|
|
15
5
|
src: string;
|
|
16
6
|
}
|
package/build/ts/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrintPreview.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC
|
|
1
|
+
{"version":3,"file":"PrintPreview.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,YAAY;;;;CAGR,CAAC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `QRCode` component renders a QR code in Shopify POS.
|
|
3
|
-
* @property `value` the content to be encoded in the QR code.
|
|
4
|
-
*/
|
|
5
1
|
export interface QRCodeProps {
|
|
6
2
|
/**
|
|
7
|
-
* The content to be encoded in the QR code.
|
|
3
|
+
* 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.
|
|
8
4
|
*/
|
|
9
5
|
value: string;
|
|
10
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QRCode.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/QRCode/QRCode.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"QRCode.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/QRCode/QRCode.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,MAAM;;;;CAAyD,CAAC"}
|
package/build/ts/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.d.ts
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
export interface RadioButtonListProps {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* An array of string values representing the radio button options available for selection.
|
|
4
4
|
*/
|
|
5
5
|
items: string[];
|
|
6
6
|
/**
|
|
7
|
-
* A callback
|
|
7
|
+
* 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.
|
|
8
8
|
*/
|
|
9
9
|
onItemSelected: (item: string) => void;
|
|
10
10
|
/**
|
|
11
|
-
* The name of the selected item.
|
|
11
|
+
* The name of the currently selected item. You control the selection by setting this property and updating it when `onItemSelected` fires.
|
|
12
12
|
*/
|
|
13
13
|
initialSelectedItem?: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* A boolean that determines whether the initially selected item renders at the top of the list, automatically scrolling to show the selected option.
|
|
16
16
|
*/
|
|
17
17
|
initialOffsetToShowSelectedItem?: boolean;
|
|
18
18
|
}
|
|
19
19
|
export declare const RadioButtonList: "RadioButtonList" & {
|
|
20
20
|
readonly type?: "RadioButtonList" | undefined;
|
|
21
|
-
readonly props?: RadioButtonListProps | undefined;
|
|
21
|
+
readonly props?: RadioButtonListProps | undefined; /**
|
|
22
|
+
* 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.
|
|
23
|
+
*/
|
|
22
24
|
readonly children?: true | undefined;
|
|
23
25
|
};
|
|
24
26
|
//# sourceMappingURL=RadioButtonList.d.ts.map
|
package/build/ts/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButtonList.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;OAEG;IACH,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;CAC3C;AAED,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"RadioButtonList.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;OAEG;IACH,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;CAC3C;AAED,eAAO,MAAM,eAAe;;uDAd1B;;OAEG;;CAee,CAAC"}
|