@shopify/ui-extensions 2025.10.8 → 2025.10.10
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/types/storage.js +3 -0
- package/build/esm/surfaces/point-of-sale/types/storage.mjs +3 -0
- package/build/esnext/surfaces/point-of-sale/types/storage.esnext +3 -0
- package/build/ts/shared.d.ts +7 -7
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Avatar/Avatar.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Badge/Badge.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Banner/Banner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ButtonGroup/ButtonGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Chip/Chip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ClickableChip/ClickableChip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ColorField/ColorField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ColorPicker/ColorPicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/DatePicker/DatePicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/DropZone/{DropZone.ab.doc.d.ts → DropZone.doc.d.ts} +1 -1
- package/build/ts/surfaces/admin/components/DropZone/DropZone.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Grid/Grid.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Menu/Menu.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Modal/Modal.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/OrderedList/OrderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Page/Page.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Popover/Popover.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/SearchField/SearchField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Spinner/Spinner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Stack/Stack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Tooltip/Tooltip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/UnorderedList/UnorderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts +3 -5
- package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +38 -33
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.d.ts +2 -2
- package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts +6 -4
- package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts +4 -1
- package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts +4 -4
- package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts +6 -3
- package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts +2 -3
- package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +17 -9
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts +5 -5
- package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts +6 -10
- package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/print-api/print-api.d.ts +10 -11
- package/build/ts/surfaces/point-of-sale/api/print-api/print-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts +5 -2
- package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts +24 -10
- package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts +26 -8
- package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts +3 -6
- package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/storage-api/storage-api.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/api/storage-api/storage-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts +11 -1
- package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Badge/Badge.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Badge.d.ts +23 -4
- package/build/ts/surfaces/point-of-sale/components/Banner/Banner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Banner.d.ts +24 -6
- package/build/ts/surfaces/point-of-sale/components/Box/Box.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Box.d.ts +34 -37
- package/build/ts/surfaces/point-of-sale/components/Button/Button.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Button.d.ts +56 -16
- package/build/ts/surfaces/point-of-sale/components/Choice.d.ts +14 -2
- package/build/ts/surfaces/point-of-sale/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/ChoiceList.d.ts +41 -5
- package/build/ts/surfaces/point-of-sale/components/Clickable/Clickable.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Clickable.d.ts +40 -4
- package/build/ts/surfaces/point-of-sale/components/DateField/DateField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/DateField.d.ts +42 -6
- package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/DatePicker.d.ts +42 -6
- package/build/ts/surfaces/point-of-sale/components/DateSpinner/DateSpinner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/DateSpinner.d.ts +42 -6
- package/build/ts/surfaces/point-of-sale/components/Divider/Divider.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Divider.d.ts +14 -2
- package/build/ts/surfaces/point-of-sale/components/EmailField/EmailField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/EmailField.d.ts +43 -7
- package/build/ts/surfaces/point-of-sale/components/Heading/Heading.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Heading.d.ts +15 -3
- package/build/ts/surfaces/point-of-sale/components/Icon/Icon.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Icon.d.ts +17 -2
- package/build/ts/surfaces/point-of-sale/components/Image/Image.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Image.d.ts +6 -3
- package/build/ts/surfaces/point-of-sale/components/Modal/Modal.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Modal.d.ts +43 -11
- package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/NumberField.d.ts +56 -41
- package/build/ts/surfaces/point-of-sale/components/Page/Page.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Page.d.ts +19 -7
- package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/PosBlock.d.ts +16 -4
- package/build/ts/surfaces/point-of-sale/components/QrCode.d.ts +14 -2
- package/build/ts/surfaces/point-of-sale/components/ScrollBox/ScrollBox.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/ScrollBox.d.ts +33 -36
- package/build/ts/surfaces/point-of-sale/components/SearchField/SearchField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/SearchField.d.ts +42 -6
- package/build/ts/surfaces/point-of-sale/components/Section/Section.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Section.d.ts +17 -7
- package/build/ts/surfaces/point-of-sale/components/Stack/Stack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Stack.d.ts +47 -61
- package/build/ts/surfaces/point-of-sale/components/Text/Text.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Text.d.ts +28 -6
- package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/TextArea.d.ts +43 -7
- package/build/ts/surfaces/point-of-sale/components/TextField/TextField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/TextField.d.ts +43 -7
- package/build/ts/surfaces/point-of-sale/components/Tile/Tile.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Tile.d.ts +40 -4
- package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/TimeField.d.ts +42 -6
- package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/TimePicker.d.ts +42 -6
- package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +638 -878
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts +15 -0
- package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +27 -0
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +9 -0
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts +12 -0
- package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts +27 -0
- package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts +17 -0
- package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +135 -0
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +43 -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 +227 -31
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/country-code.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/types/country-code.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/device.d.ts +6 -3
- package/build/ts/surfaces/point-of-sale/types/device.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/direct-api-request-body.d.ts +3 -3
- package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/money.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/types/money.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts +1 -2
- package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/order.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/types/order.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts +2 -3
- package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/payment.d.ts +15 -0
- package/build/ts/surfaces/point-of-sale/types/payment.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts +36 -16
- package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/product.d.ts +170 -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/shared.ts +7 -7
- package/src/surfaces/admin/api/intents/examples/edit-metafield-definition.js +1 -0
- package/src/surfaces/admin/api/intents/examples/edit-metaobject-definition.js +1 -1
- package/src/surfaces/admin/components/Icon/icon-data.json +9 -0
- package/src/surfaces/point-of-sale/api/action-api/action-api.ts +3 -5
- package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +38 -33
- package/src/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.ts +2 -2
- package/src/surfaces/point-of-sale/api/connectivity-api/connectivity-api.ts +6 -4
- package/src/surfaces/point-of-sale/api/customer-api/customer-api.ts +4 -1
- package/src/surfaces/point-of-sale/api/device-api/device-api.ts +4 -4
- package/src/surfaces/point-of-sale/api/draft-order-api/draft-order-api.ts +6 -3
- package/src/surfaces/point-of-sale/api/locale-api/locale-api.ts +2 -3
- package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +17 -9
- package/src/surfaces/point-of-sale/api/order-api/order-api.ts +5 -5
- package/src/surfaces/point-of-sale/api/pin-pad-api.ts +6 -10
- package/src/surfaces/point-of-sale/api/print-api/print-api.ts +10 -11
- package/src/surfaces/point-of-sale/api/product-api/product-api.ts +5 -2
- package/src/surfaces/point-of-sale/api/product-search-api/product-search-api.ts +24 -10
- package/src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts +26 -8
- package/src/surfaces/point-of-sale/api/session-api/session-api.ts +3 -6
- package/src/surfaces/point-of-sale/api/storage-api/storage-api.ts +3 -0
- package/src/surfaces/point-of-sale/api/toast-api/toast-api.ts +11 -1
- package/src/surfaces/point-of-sale/components/Badge.d.ts +23 -4
- package/src/surfaces/point-of-sale/components/Banner.d.ts +24 -6
- package/src/surfaces/point-of-sale/components/Box.d.ts +34 -37
- package/src/surfaces/point-of-sale/components/Button.d.ts +56 -16
- package/src/surfaces/point-of-sale/components/Choice.d.ts +14 -2
- package/src/surfaces/point-of-sale/components/ChoiceList/examples/composed-choices.jsx +35 -0
- package/src/surfaces/point-of-sale/components/ChoiceList.d.ts +41 -5
- package/src/surfaces/point-of-sale/components/Clickable.d.ts +40 -4
- package/src/surfaces/point-of-sale/components/DateField.d.ts +42 -6
- package/src/surfaces/point-of-sale/components/DatePicker.d.ts +42 -6
- package/src/surfaces/point-of-sale/components/DateSpinner.d.ts +42 -6
- package/src/surfaces/point-of-sale/components/Divider.d.ts +14 -2
- package/src/surfaces/point-of-sale/components/EmailField.d.ts +43 -7
- package/src/surfaces/point-of-sale/components/Heading.d.ts +15 -3
- package/src/surfaces/point-of-sale/components/Icon.d.ts +17 -2
- package/src/surfaces/point-of-sale/components/Image.d.ts +6 -3
- package/src/surfaces/point-of-sale/components/Modal.d.ts +43 -11
- package/src/surfaces/point-of-sale/components/NumberField.d.ts +56 -41
- package/src/surfaces/point-of-sale/components/Page.d.ts +19 -7
- package/src/surfaces/point-of-sale/components/PosBlock.d.ts +16 -4
- package/src/surfaces/point-of-sale/components/QrCode.d.ts +14 -2
- package/src/surfaces/point-of-sale/components/ScrollBox.d.ts +33 -36
- package/src/surfaces/point-of-sale/components/SearchField.d.ts +42 -6
- package/src/surfaces/point-of-sale/components/Section.d.ts +17 -7
- package/src/surfaces/point-of-sale/components/Stack.d.ts +47 -61
- package/src/surfaces/point-of-sale/components/Text.d.ts +28 -6
- package/src/surfaces/point-of-sale/components/TextArea.d.ts +43 -7
- package/src/surfaces/point-of-sale/components/TextField.d.ts +43 -7
- package/src/surfaces/point-of-sale/components/Tile.d.ts +40 -4
- package/src/surfaces/point-of-sale/components/TimeField.d.ts +42 -6
- package/src/surfaces/point-of-sale/components/TimePicker.d.ts +42 -6
- package/src/surfaces/point-of-sale/components/components-shared.d.ts +638 -878
- package/src/surfaces/point-of-sale/components/targets/StandardComponents.ts +0 -1
- package/src/surfaces/point-of-sale/components.d.ts +1506 -1537
- package/src/surfaces/point-of-sale/event/data/BaseApi.ts +3 -0
- package/src/surfaces/point-of-sale/event/data/BaseData.ts +15 -0
- package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +6 -0
- package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +27 -0
- package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +18 -0
- package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +9 -0
- package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +18 -0
- package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +12 -0
- package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +27 -0
- package/src/surfaces/point-of-sale/event/output/BaseOutput.ts +17 -0
- package/src/surfaces/point-of-sale/extension-targets.ts +135 -0
- package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +43 -0
- package/src/surfaces/point-of-sale/types/cart.ts +227 -31
- package/src/surfaces/point-of-sale/types/country-code.ts +3 -0
- package/src/surfaces/point-of-sale/types/device.ts +6 -3
- package/src/surfaces/point-of-sale/types/direct-api-request-body.ts +3 -3
- package/src/surfaces/point-of-sale/types/discount-allocation.ts +6 -0
- package/src/surfaces/point-of-sale/types/money.ts +18 -0
- package/src/surfaces/point-of-sale/types/multiple-resource-result.ts +1 -2
- package/src/surfaces/point-of-sale/types/order.ts +18 -1
- 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/pin-pad.ts +32 -14
- package/src/surfaces/point-of-sale/types/product.ts +170 -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
- package/build/ts/surfaces/admin/components/DropZone/DropZone.ab.doc.d.ts.map +0 -1
|
@@ -12,18 +12,30 @@ import type {BadgeProps, Key, Ref} from './components-shared.d.ts';
|
|
|
12
12
|
|
|
13
13
|
export type ComponentChildren = any;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* The base props for elements without children, providing key, ref, and slot properties.
|
|
16
16
|
*/
|
|
17
17
|
export interface BaseElementProps<TClass = HTMLElement> {
|
|
18
|
+
/**
|
|
19
|
+
* A unique identifier for the element in lists. Used by Preact for efficient rendering and reconciliation.
|
|
20
|
+
*/
|
|
18
21
|
key?: Key;
|
|
22
|
+
/**
|
|
23
|
+
* A reference to the underlying DOM element. Commonly used to access the element directly for imperative operations.
|
|
24
|
+
*/
|
|
19
25
|
ref?: Ref<TClass>;
|
|
26
|
+
/**
|
|
27
|
+
* The named [slot](/docs/api/polaris/using-polaris-web-components#slots) this element should be placed in when used within a web component.
|
|
28
|
+
*/
|
|
20
29
|
slot?: Lowercase<string>;
|
|
21
30
|
}
|
|
22
31
|
/**
|
|
23
|
-
*
|
|
32
|
+
* The base props for elements with children, extending `BaseElementProps` with children support.
|
|
24
33
|
*/
|
|
25
34
|
export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
26
35
|
extends BaseElementProps<TClass> {
|
|
36
|
+
/**
|
|
37
|
+
* The child elements to render within this component.
|
|
38
|
+
*/
|
|
27
39
|
children?: ComponentChildren;
|
|
28
40
|
}
|
|
29
41
|
export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
@@ -31,7 +43,14 @@ export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
|
31
43
|
declare const tagName = 's-badge';
|
|
32
44
|
export interface BadgeJSXProps extends Pick<BadgeProps, 'id'> {
|
|
33
45
|
/**
|
|
34
|
-
*
|
|
46
|
+
* Determines the visual appearance and semantic meaning of the badge. Badges rely on the tone system for semantic meaning, so using custom styling may not clearly convey meaning to merchants. Available options:
|
|
47
|
+
* - `'auto'` - Lets the system automatically choose the appropriate tone based on context.
|
|
48
|
+
* - `'neutral'` - Gray styling for general status information that doesn't require emphasis.
|
|
49
|
+
* - `'info'` - Blue styling for informational content and neutral updates.
|
|
50
|
+
* - `'success'` - Green styling for positive states, completed actions, and successful operations.
|
|
51
|
+
* - `'caution'` - Yellow styling for situations that need attention but aren't urgent.
|
|
52
|
+
* - `'warning'` - Orange styling for important notices that require merchant awareness.
|
|
53
|
+
* - `'critical'` - Red styling for errors, failures, and urgent issues requiring immediate action.
|
|
35
54
|
*
|
|
36
55
|
* @default 'auto'
|
|
37
56
|
*/
|
|
@@ -40,7 +59,7 @@ export interface BadgeJSXProps extends Pick<BadgeProps, 'id'> {
|
|
|
40
59
|
'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'caution'
|
|
41
60
|
>;
|
|
42
61
|
/**
|
|
43
|
-
* The
|
|
62
|
+
* The child elements to render within this component.
|
|
44
63
|
*/
|
|
45
64
|
children?: ComponentChildren;
|
|
46
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Banner/Banner.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Banner.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Banner/Banner.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAsDX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -17,18 +17,30 @@ import type {
|
|
|
17
17
|
|
|
18
18
|
export type ComponentChildren = any;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* The base props for elements without children, providing key, ref, and slot properties.
|
|
21
21
|
*/
|
|
22
22
|
export interface BaseElementProps<TClass = HTMLElement> {
|
|
23
|
+
/**
|
|
24
|
+
* A unique identifier for the element in lists. Used by Preact for efficient rendering and reconciliation.
|
|
25
|
+
*/
|
|
23
26
|
key?: Key;
|
|
27
|
+
/**
|
|
28
|
+
* A reference to the underlying DOM element. Commonly used to access the element directly for imperative operations.
|
|
29
|
+
*/
|
|
24
30
|
ref?: Ref<TClass>;
|
|
31
|
+
/**
|
|
32
|
+
* The named [slot](/docs/api/polaris/using-polaris-web-components#slots) this element should be placed in when used within a web component.
|
|
33
|
+
*/
|
|
25
34
|
slot?: Lowercase<string>;
|
|
26
35
|
}
|
|
27
36
|
/**
|
|
28
|
-
*
|
|
37
|
+
* The base props for elements with children, extending `BaseElementProps` with children support.
|
|
29
38
|
*/
|
|
30
39
|
export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
31
40
|
extends BaseElementProps<TClass> {
|
|
41
|
+
/**
|
|
42
|
+
* The child elements to render within this component.
|
|
43
|
+
*/
|
|
32
44
|
children?: ComponentChildren;
|
|
33
45
|
}
|
|
34
46
|
export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
@@ -36,13 +48,19 @@ export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
|
36
48
|
declare const tagName = 's-banner';
|
|
37
49
|
export interface BannerJSXProps extends Pick<BannerProps, 'heading' | 'id'> {
|
|
38
50
|
/**
|
|
39
|
-
*
|
|
51
|
+
* Controls whether the banner is visible or hidden. When set to `true`, the banner will be hidden from view. Use this to programmatically show or hide banners based on application state. Default is `false`.
|
|
40
52
|
*
|
|
41
53
|
* @default false
|
|
42
54
|
*/
|
|
43
55
|
hidden?: BannerProps['hidden'];
|
|
44
56
|
/**
|
|
45
|
-
* Sets the
|
|
57
|
+
* Sets the visual appearance of the banner. The tone determines the color scheme. Available options:
|
|
58
|
+
*
|
|
59
|
+
* - `'auto'` - Lets the system automatically choose the appropriate tone based on context.
|
|
60
|
+
* - `'success'` - Green styling for positive outcomes and successful operations.
|
|
61
|
+
* - `'info'` - Blue styling for general information and neutral updates.
|
|
62
|
+
* - `'warning'` - Orange styling for important notices that require attention.
|
|
63
|
+
* - `'critical'` - Red styling for errors and urgent issues requiring immediate action.
|
|
46
64
|
*
|
|
47
65
|
* @default 'auto'
|
|
48
66
|
*/
|
|
@@ -51,11 +69,11 @@ export interface BannerJSXProps extends Pick<BannerProps, 'heading' | 'id'> {
|
|
|
51
69
|
'auto' | 'success' | 'info' | 'warning' | 'critical'
|
|
52
70
|
>;
|
|
53
71
|
/**
|
|
54
|
-
* The action
|
|
72
|
+
* The primary action element displayed within the banner, typically a button. Use this slot to provide interactive elements that allow users to respond to the banner's message, such as "Dismiss," "Learn More," or "Retry" buttons.
|
|
55
73
|
*/
|
|
56
74
|
primaryAction?: ComponentChild;
|
|
57
75
|
/**
|
|
58
|
-
* The
|
|
76
|
+
* The child elements to render within this component.
|
|
59
77
|
*/
|
|
60
78
|
children?: ComponentChildren;
|
|
61
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Box/Box.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Box.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Box/Box.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA6CX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -21,140 +21,137 @@ import type {
|
|
|
21
21
|
|
|
22
22
|
export type ComponentChildren = any;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* The base props for elements without children, providing key, ref, and slot properties.
|
|
25
25
|
*/
|
|
26
26
|
export interface BaseElementProps<TClass = HTMLElement> {
|
|
27
|
+
/**
|
|
28
|
+
* A unique identifier for the element in lists. Used by Preact for efficient rendering and reconciliation.
|
|
29
|
+
*/
|
|
27
30
|
key?: Key;
|
|
31
|
+
/**
|
|
32
|
+
* A reference to the underlying DOM element. Commonly used to access the element directly for imperative operations.
|
|
33
|
+
*/
|
|
28
34
|
ref?: Ref<TClass>;
|
|
35
|
+
/**
|
|
36
|
+
* The named [slot](/docs/api/polaris/using-polaris-web-components#slots) this element should be placed in when used within a web component.
|
|
37
|
+
*/
|
|
29
38
|
slot?: Lowercase<string>;
|
|
30
39
|
}
|
|
31
40
|
/**
|
|
32
|
-
*
|
|
41
|
+
* The base props for elements with children, extending `BaseElementProps` with children support.
|
|
33
42
|
*/
|
|
34
43
|
export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
35
44
|
extends BaseElementProps<TClass> {
|
|
45
|
+
/**
|
|
46
|
+
* The child elements to render within this component.
|
|
47
|
+
*/
|
|
36
48
|
children?: ComponentChildren;
|
|
37
49
|
}
|
|
38
50
|
export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
39
51
|
|
|
40
52
|
declare const tagName = 's-box';
|
|
53
|
+
/**
|
|
54
|
+
* Defines the available padding size options using a semantic scale. Provides consistent spacing values that align with the POS design system.
|
|
55
|
+
*/
|
|
41
56
|
export type PaddingKeyword = SizeKeyword | 'none';
|
|
42
57
|
export interface BoxJSXProps {
|
|
43
58
|
/**
|
|
44
|
-
* A unique identifier for the element.
|
|
59
|
+
* A unique identifier for the element used for targeting with CSS, JavaScript, or accessibility features.
|
|
45
60
|
*/
|
|
46
61
|
id?: string;
|
|
47
62
|
/**
|
|
48
|
-
*
|
|
63
|
+
* The block size of the container. Auto automatically sizes based on the container's children.
|
|
49
64
|
*
|
|
50
65
|
* @default 'auto'
|
|
51
66
|
*/
|
|
52
67
|
blockSize?: SizeUnitsOrAuto;
|
|
53
68
|
/**
|
|
54
|
-
*
|
|
69
|
+
* The inline size of the container. Auto automatically sizes based on the container's children.
|
|
55
70
|
*
|
|
56
71
|
* @default 'auto'
|
|
57
72
|
*/
|
|
58
73
|
inlineSize?: SizeUnitsOrAuto;
|
|
59
74
|
/**
|
|
60
|
-
*
|
|
75
|
+
* The maximum block size constraint for the container.
|
|
61
76
|
*
|
|
62
77
|
* @default 'none'
|
|
63
78
|
*/
|
|
64
79
|
maxBlockSize?: SizeUnitsOrNone;
|
|
65
80
|
/**
|
|
66
|
-
*
|
|
81
|
+
* The maximum inline size constraint for the container.
|
|
67
82
|
*
|
|
68
83
|
* @default 'none'
|
|
69
84
|
*/
|
|
70
85
|
maxInlineSize?: SizeUnitsOrNone;
|
|
71
86
|
/**
|
|
72
|
-
*
|
|
87
|
+
* The minimum block size constraint for the container.
|
|
73
88
|
*
|
|
74
89
|
* @default '0'
|
|
75
90
|
*/
|
|
76
91
|
minBlockSize?: SizeUnits;
|
|
77
92
|
/**
|
|
78
|
-
*
|
|
93
|
+
* The minimum inline size constraint for the container.
|
|
79
94
|
*
|
|
80
95
|
* @default '0'
|
|
81
96
|
*/
|
|
82
97
|
minInlineSize?: SizeUnits;
|
|
83
98
|
/**
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
* [1-to-4-value syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box) is
|
|
87
|
-
* supported. Note that, contrary to the CSS, it uses flow-relative values and the order is:
|
|
99
|
+
* The padding applied to all edges of the container. Supports [1-to-4-value syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Cascade/Shorthand_properties#edges_of_a_box) using flow-relative values in the order:
|
|
88
100
|
*
|
|
89
101
|
* - 4 values: `block-start inline-end block-end inline-start`
|
|
90
102
|
* - 3 values: `block-start inline block-end`
|
|
91
103
|
* - 2 values: `block inline`
|
|
92
104
|
*
|
|
93
105
|
* For example:
|
|
106
|
+
*
|
|
94
107
|
* - `large` means block-start, inline-end, block-end and inline-start paddings are `large`.
|
|
95
108
|
* - `large none` means block-start and block-end paddings are `large`, inline-start and inline-end paddings are `none`.
|
|
96
109
|
* - `large none large` means block-start padding is `large`, inline-end padding is `none`, block-end padding is `large` and inline-start padding is `none`.
|
|
97
110
|
* - `large none large small` means block-start padding is `large`, inline-end padding is `none`, block-end padding is `large` and inline-start padding is `small`.
|
|
98
111
|
*
|
|
99
|
-
*
|
|
112
|
+
* An `auto` value inherits the default padding from the closest container that has removed its usual padding.
|
|
100
113
|
*
|
|
101
114
|
* @default 'none'
|
|
102
115
|
*/
|
|
103
116
|
padding?: MaybeAllValuesShorthandProperty<PaddingKeyword>;
|
|
104
117
|
/**
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
* - `large none` means block-start padding is `large`, block-end padding is `none`.
|
|
108
|
-
*
|
|
109
|
-
* This overrides the block value of `padding`.
|
|
118
|
+
* The block-axis padding for the container. Overrides the block value of the `padding` property.
|
|
110
119
|
*
|
|
111
120
|
* @default '' - meaning no override
|
|
112
121
|
*/
|
|
113
122
|
paddingBlock?: MaybeTwoValuesShorthandProperty<PaddingKeyword> | '';
|
|
114
123
|
/**
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* This overrides the block-start value of `paddingBlock`.
|
|
124
|
+
* The block-start padding for the container. Overrides the block-start value of the `paddingBlock` property.
|
|
118
125
|
*
|
|
119
126
|
* @default '' - meaning no override
|
|
120
127
|
*/
|
|
121
128
|
paddingBlockStart?: PaddingKeyword | '';
|
|
122
129
|
/**
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
* This overrides the block-end value of `paddingBlock`.
|
|
130
|
+
* The block-end padding for the container. Overrides the block-end value of the `paddingBlock` property.
|
|
126
131
|
*
|
|
127
132
|
* @default '' - meaning no override
|
|
128
133
|
*/
|
|
129
134
|
paddingBlockEnd?: PaddingKeyword | '';
|
|
130
135
|
/**
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* - `large none` means inline-start padding is `large`, inline-end padding is `none`.
|
|
134
|
-
*
|
|
135
|
-
* This overrides the inline value of `padding`.
|
|
136
|
+
* The inline-axis padding for the container. Supports two-value syntax where `large none` sets inline-start to `large` and inline-end to `none`. Overrides the inline value of the `padding` property.
|
|
136
137
|
*
|
|
137
138
|
* @default '' - meaning no override
|
|
138
139
|
*/
|
|
139
140
|
paddingInline?: MaybeTwoValuesShorthandProperty<PaddingKeyword> | '';
|
|
140
141
|
/**
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
* This overrides the inline-start value of `paddingInline`.
|
|
142
|
+
* The inline-start padding for the container. Overrides the inline-start value of the `paddingInline` property.
|
|
144
143
|
*
|
|
145
144
|
* @default '' - meaning no override
|
|
146
145
|
*/
|
|
147
146
|
paddingInlineStart?: PaddingKeyword | '';
|
|
148
147
|
/**
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
* This overrides the inline-end value of `paddingInline`.
|
|
148
|
+
* The inline-end padding for the container. Overrides the inline-end value of the `paddingInline` property.
|
|
152
149
|
*
|
|
153
150
|
* @default '' - meaning no override
|
|
154
151
|
*/
|
|
155
152
|
paddingInlineEnd?: PaddingKeyword | '';
|
|
156
153
|
/**
|
|
157
|
-
* The
|
|
154
|
+
* The child elements to render within this component.
|
|
158
155
|
*/
|
|
159
156
|
children?: ComponentChildren;
|
|
160
157
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Button/Button.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Button.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Button/Button.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAqDX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -12,28 +12,64 @@ import type {ButtonProps, Key, Ref} from './components-shared.d.ts';
|
|
|
12
12
|
|
|
13
13
|
export type ComponentChildren = any;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* The base props for elements without children, providing key, ref, and slot properties.
|
|
16
16
|
*/
|
|
17
17
|
export interface BaseElementProps<TClass = HTMLElement> {
|
|
18
|
+
/**
|
|
19
|
+
* A unique identifier for the element in lists. Used by Preact for efficient rendering and reconciliation.
|
|
20
|
+
*/
|
|
18
21
|
key?: Key;
|
|
22
|
+
/**
|
|
23
|
+
* A reference to the underlying DOM element. Commonly used to access the element directly for imperative operations.
|
|
24
|
+
*/
|
|
19
25
|
ref?: Ref<TClass>;
|
|
26
|
+
/**
|
|
27
|
+
* The named [slot](/docs/api/polaris/using-polaris-web-components#slots) this element should be placed in when used within a web component.
|
|
28
|
+
*/
|
|
20
29
|
slot?: Lowercase<string>;
|
|
21
30
|
}
|
|
22
31
|
/**
|
|
23
|
-
*
|
|
32
|
+
* The base props for elements with children, extending `BaseElementProps` with children support.
|
|
24
33
|
*/
|
|
25
34
|
export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
26
35
|
extends BaseElementProps<TClass> {
|
|
36
|
+
/**
|
|
37
|
+
* The child elements to render within this component.
|
|
38
|
+
*/
|
|
27
39
|
children?: ComponentChildren;
|
|
28
40
|
}
|
|
29
41
|
export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
42
|
+
/**
|
|
43
|
+
* Represents the event object passed to callback functions when interactive events occur. Contains metadata about the event, including the target element, event phase, and propagation behavior.
|
|
44
|
+
*/
|
|
30
45
|
export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
|
|
46
|
+
/**
|
|
47
|
+
* The element that the event listener is attached to.
|
|
48
|
+
*/
|
|
31
49
|
currentTarget: HTMLElementTagNameMap[T];
|
|
50
|
+
/**
|
|
51
|
+
* Whether the event bubbles up through the DOM tree.
|
|
52
|
+
*/
|
|
32
53
|
bubbles?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the event can be canceled.
|
|
56
|
+
*/
|
|
33
57
|
cancelable?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the event will trigger listeners outside of a shadow root.
|
|
60
|
+
*/
|
|
34
61
|
composed?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Additional data associated with the event.
|
|
64
|
+
*/
|
|
35
65
|
detail?: any;
|
|
66
|
+
/**
|
|
67
|
+
* The current phase of the event flow.
|
|
68
|
+
*/
|
|
36
69
|
eventPhase: number;
|
|
70
|
+
/**
|
|
71
|
+
* The element that triggered the event.
|
|
72
|
+
*/
|
|
37
73
|
target: HTMLElementTagNameMap[T] | null;
|
|
38
74
|
}
|
|
39
75
|
|
|
@@ -44,25 +80,27 @@ export interface ButtonJSXProps
|
|
|
44
80
|
'id' | 'disabled' | 'command' | 'commandFor' | 'loading'
|
|
45
81
|
> {
|
|
46
82
|
/**
|
|
47
|
-
* Sets the action the `commandFor` should take when this clickable is activated
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
* - `--
|
|
52
|
-
* - `--show`: shows the target component.
|
|
53
|
-
* - `--hide`: hides the target component.
|
|
54
|
-
* - `--toggle`: toggles the target component.
|
|
83
|
+
* Sets the action the `commandFor` should take when this clickable is activated:
|
|
84
|
+
* - `--auto`: A default action for the target component
|
|
85
|
+
* - `--show`: Shows the target component
|
|
86
|
+
* - `--hide`: Hides the target component
|
|
87
|
+
* - `--toggle`: Toggles the target component
|
|
55
88
|
*
|
|
56
89
|
* @default '--auto'
|
|
57
|
-
*
|
|
58
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#command
|
|
90
|
+
* Learn more about [button command on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#command).
|
|
59
91
|
*/
|
|
60
92
|
command?: Extract<
|
|
61
93
|
ButtonProps['command'],
|
|
62
94
|
'--auto' | '--show' | '--hide' | '--toggle'
|
|
63
95
|
>;
|
|
64
96
|
/**
|
|
65
|
-
* Sets the tone of the
|
|
97
|
+
* Sets the tone of the button, based on the intention of the information being conveyed.
|
|
98
|
+
*
|
|
99
|
+
* - `'auto'` - Automatically determines the appropriate tone based on context.
|
|
100
|
+
* - `'neutral'` - The standard tone for general actions and interactions.
|
|
101
|
+
* - `'caution'` - Indicates actions that require careful consideration.
|
|
102
|
+
* - `'warning'` - Alerts users to potential issues or important information.
|
|
103
|
+
* - `'critical'` - Used for destructive actions like deleting or removing content.
|
|
66
104
|
*
|
|
67
105
|
* @default 'auto'
|
|
68
106
|
*/
|
|
@@ -71,17 +109,19 @@ export interface ButtonJSXProps
|
|
|
71
109
|
'auto' | 'critical' | 'neutral' | 'warning' | 'caution'
|
|
72
110
|
>;
|
|
73
111
|
/**
|
|
74
|
-
* Changes the visual appearance of the
|
|
112
|
+
* Changes the visual appearance of the button.
|
|
113
|
+
* - `primary`: Creates a prominent call-to-action button with high visual emphasis for the most important action on a screen.
|
|
114
|
+
* - `secondary`: Provides a less prominent button appearance for supporting actions and secondary interactions.
|
|
75
115
|
*
|
|
76
116
|
* @default 'auto' - the variant is automatically determined by the Button's context
|
|
77
117
|
*/
|
|
78
118
|
variant?: Extract<ButtonProps['variant'], 'primary' | 'secondary'>;
|
|
79
119
|
/**
|
|
80
|
-
*
|
|
120
|
+
* An event that's called when the button is activated.
|
|
81
121
|
*/
|
|
82
122
|
onClick?: (event: CallbackEvent<typeof tagName>) => void;
|
|
83
123
|
/**
|
|
84
|
-
* The
|
|
124
|
+
* The child elements to render within this component.
|
|
85
125
|
*/
|
|
86
126
|
children?: ComponentChildren;
|
|
87
127
|
}
|
|
@@ -12,18 +12,30 @@ import type {ChoiceProps, Key, Ref} from './components-shared.d.ts';
|
|
|
12
12
|
|
|
13
13
|
export type ComponentChildren = any;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* The base props for elements without children, providing key, ref, and slot properties.
|
|
16
16
|
*/
|
|
17
17
|
export interface BaseElementProps<TClass = HTMLElement> {
|
|
18
|
+
/**
|
|
19
|
+
* A unique identifier for the element in lists. Used by Preact for efficient rendering and reconciliation.
|
|
20
|
+
*/
|
|
18
21
|
key?: Key;
|
|
22
|
+
/**
|
|
23
|
+
* A reference to the underlying DOM element. Commonly used to access the element directly for imperative operations.
|
|
24
|
+
*/
|
|
19
25
|
ref?: Ref<TClass>;
|
|
26
|
+
/**
|
|
27
|
+
* The named [slot](/docs/api/polaris/using-polaris-web-components#slots) this element should be placed in when used within a web component.
|
|
28
|
+
*/
|
|
20
29
|
slot?: Lowercase<string>;
|
|
21
30
|
}
|
|
22
31
|
/**
|
|
23
|
-
*
|
|
32
|
+
* The base props for elements with children, extending `BaseElementProps` with children support.
|
|
24
33
|
*/
|
|
25
34
|
export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
26
35
|
extends BaseElementProps<TClass> {
|
|
36
|
+
/**
|
|
37
|
+
* The child elements to render within this component.
|
|
38
|
+
*/
|
|
27
39
|
children?: ComponentChildren;
|
|
28
40
|
}
|
|
29
41
|
export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChoiceList.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/ChoiceList/ChoiceList.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"ChoiceList.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/ChoiceList/ChoiceList.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA4GX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -12,28 +12,64 @@ import type {ChoiceListProps, Key, Ref} from './components-shared.d.ts';
|
|
|
12
12
|
|
|
13
13
|
export type ComponentChildren = any;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* The base props for elements without children, providing key, ref, and slot properties.
|
|
16
16
|
*/
|
|
17
17
|
export interface BaseElementProps<TClass = HTMLElement> {
|
|
18
|
+
/**
|
|
19
|
+
* A unique identifier for the element in lists. Used by Preact for efficient rendering and reconciliation.
|
|
20
|
+
*/
|
|
18
21
|
key?: Key;
|
|
22
|
+
/**
|
|
23
|
+
* A reference to the underlying DOM element. Commonly used to access the element directly for imperative operations.
|
|
24
|
+
*/
|
|
19
25
|
ref?: Ref<TClass>;
|
|
26
|
+
/**
|
|
27
|
+
* The named [slot](/docs/api/polaris/using-polaris-web-components#slots) this element should be placed in when used within a web component.
|
|
28
|
+
*/
|
|
20
29
|
slot?: Lowercase<string>;
|
|
21
30
|
}
|
|
22
31
|
/**
|
|
23
|
-
*
|
|
32
|
+
* The base props for elements with children, extending `BaseElementProps` with children support.
|
|
24
33
|
*/
|
|
25
34
|
export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
26
35
|
extends BaseElementProps<TClass> {
|
|
36
|
+
/**
|
|
37
|
+
* The child elements to render within this component.
|
|
38
|
+
*/
|
|
27
39
|
children?: ComponentChildren;
|
|
28
40
|
}
|
|
29
41
|
export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
42
|
+
/**
|
|
43
|
+
* Represents the event object passed to callback functions when interactive events occur. Contains metadata about the event, including the target element, event phase, and propagation behavior.
|
|
44
|
+
*/
|
|
30
45
|
export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
|
|
46
|
+
/**
|
|
47
|
+
* The element that the event listener is attached to.
|
|
48
|
+
*/
|
|
31
49
|
currentTarget: HTMLElementTagNameMap[T];
|
|
50
|
+
/**
|
|
51
|
+
* Whether the event bubbles up through the DOM tree.
|
|
52
|
+
*/
|
|
32
53
|
bubbles?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the event can be canceled.
|
|
56
|
+
*/
|
|
33
57
|
cancelable?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the event will trigger listeners outside of a shadow root.
|
|
60
|
+
*/
|
|
34
61
|
composed?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Additional data associated with the event.
|
|
64
|
+
*/
|
|
35
65
|
detail?: any;
|
|
66
|
+
/**
|
|
67
|
+
* The current phase of the event flow.
|
|
68
|
+
*/
|
|
36
69
|
eventPhase: number;
|
|
70
|
+
/**
|
|
71
|
+
* The element that triggered the event.
|
|
72
|
+
*/
|
|
37
73
|
target: HTMLElementTagNameMap[T] | null;
|
|
38
74
|
}
|
|
39
75
|
|
|
@@ -41,15 +77,15 @@ declare const tagName = 's-choice-list';
|
|
|
41
77
|
export interface ChoiceListJSXProps
|
|
42
78
|
extends Pick<ChoiceListProps, 'id' | 'values' | 'multiple'> {
|
|
43
79
|
/**
|
|
44
|
-
*
|
|
80
|
+
* Called when the user changes a choice. Fires simultaneously with `onChange`.
|
|
45
81
|
*/
|
|
46
82
|
onInput?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
47
83
|
/**
|
|
48
|
-
*
|
|
84
|
+
* Called when the user changes a choice. Fires simultaneously with `onInput`.
|
|
49
85
|
*/
|
|
50
86
|
onChange?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
51
87
|
/**
|
|
52
|
-
* The
|
|
88
|
+
* The child elements to render within this component. Should be one or more Choice elements.
|
|
53
89
|
*/
|
|
54
90
|
children?: ComponentChildren;
|
|
55
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Clickable.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Clickable/Clickable.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Clickable.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Clickable/Clickable.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA2DX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -12,28 +12,64 @@ import type {ClickableProps, Key, Ref} from './components-shared.d.ts';
|
|
|
12
12
|
|
|
13
13
|
export type ComponentChildren = any;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* The base props for elements without children, providing key, ref, and slot properties.
|
|
16
16
|
*/
|
|
17
17
|
export interface BaseElementProps<TClass = HTMLElement> {
|
|
18
|
+
/**
|
|
19
|
+
* A unique identifier for the element in lists. Used by Preact for efficient rendering and reconciliation.
|
|
20
|
+
*/
|
|
18
21
|
key?: Key;
|
|
22
|
+
/**
|
|
23
|
+
* A reference to the underlying DOM element. Commonly used to access the element directly for imperative operations.
|
|
24
|
+
*/
|
|
19
25
|
ref?: Ref<TClass>;
|
|
26
|
+
/**
|
|
27
|
+
* The named [slot](/docs/api/polaris/using-polaris-web-components#slots) this element should be placed in when used within a web component.
|
|
28
|
+
*/
|
|
20
29
|
slot?: Lowercase<string>;
|
|
21
30
|
}
|
|
22
31
|
/**
|
|
23
|
-
*
|
|
32
|
+
* The base props for elements with children, extending `BaseElementProps` with children support.
|
|
24
33
|
*/
|
|
25
34
|
export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
26
35
|
extends BaseElementProps<TClass> {
|
|
36
|
+
/**
|
|
37
|
+
* The child elements to render within this component.
|
|
38
|
+
*/
|
|
27
39
|
children?: ComponentChildren;
|
|
28
40
|
}
|
|
29
41
|
export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
42
|
+
/**
|
|
43
|
+
* Represents the event object passed to callback functions when interactive events occur. Contains metadata about the event, including the target element, event phase, and propagation behavior.
|
|
44
|
+
*/
|
|
30
45
|
export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
|
|
46
|
+
/**
|
|
47
|
+
* The element that the event listener is attached to.
|
|
48
|
+
*/
|
|
31
49
|
currentTarget: HTMLElementTagNameMap[T];
|
|
50
|
+
/**
|
|
51
|
+
* Whether the event bubbles up through the DOM tree.
|
|
52
|
+
*/
|
|
32
53
|
bubbles?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the event can be canceled.
|
|
56
|
+
*/
|
|
33
57
|
cancelable?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the event will trigger listeners outside of a shadow root.
|
|
60
|
+
*/
|
|
34
61
|
composed?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Additional data associated with the event.
|
|
64
|
+
*/
|
|
35
65
|
detail?: any;
|
|
66
|
+
/**
|
|
67
|
+
* The current phase of the event flow. Returns a number indicating which phase the event is in: 1 (capturing phase), 2 (at target), or 3 (bubbling phase). This helps determine how the event is propagating through the DOM hierarchy.
|
|
68
|
+
*/
|
|
36
69
|
eventPhase: number;
|
|
70
|
+
/**
|
|
71
|
+
* The element that triggered the event.
|
|
72
|
+
*/
|
|
37
73
|
target: HTMLElementTagNameMap[T] | null;
|
|
38
74
|
}
|
|
39
75
|
|
|
@@ -41,11 +77,11 @@ declare const tagName = 's-clickable';
|
|
|
41
77
|
export interface ClickableJSXProps
|
|
42
78
|
extends Pick<ClickableProps, 'id' | 'disabled'> {
|
|
43
79
|
/**
|
|
44
|
-
*
|
|
80
|
+
* The callback when the element is activated.
|
|
45
81
|
*/
|
|
46
82
|
onClick?: (event: CallbackEvent<typeof tagName>) => void;
|
|
47
83
|
/**
|
|
48
|
-
* The
|
|
84
|
+
* The child elements to render within this component.
|
|
49
85
|
*/
|
|
50
86
|
children?: ComponentChildren;
|
|
51
87
|
}
|