@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
|
@@ -17,28 +17,64 @@ 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>;
|
|
47
|
+
/**
|
|
48
|
+
* 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.
|
|
49
|
+
*/
|
|
35
50
|
export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
|
|
51
|
+
/**
|
|
52
|
+
* The element that the event listener is attached to.
|
|
53
|
+
*/
|
|
36
54
|
currentTarget: HTMLElementTagNameMap[T];
|
|
55
|
+
/**
|
|
56
|
+
* Whether the event bubbles up through the DOM tree.
|
|
57
|
+
*/
|
|
37
58
|
bubbles?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the event can be canceled.
|
|
61
|
+
*/
|
|
38
62
|
cancelable?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Whether the event will trigger listeners outside of a shadow root.
|
|
65
|
+
*/
|
|
39
66
|
composed?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* The additional data associated with the event.
|
|
69
|
+
*/
|
|
40
70
|
detail?: any;
|
|
71
|
+
/**
|
|
72
|
+
* The current phase of the event flow.
|
|
73
|
+
*/
|
|
41
74
|
eventPhase: number;
|
|
75
|
+
/**
|
|
76
|
+
* The element that triggered the event.
|
|
77
|
+
*/
|
|
42
78
|
target: HTMLElementTagNameMap[T] | null;
|
|
43
79
|
}
|
|
44
80
|
|
|
@@ -58,23 +94,23 @@ export interface TextAreaJSXProps
|
|
|
58
94
|
| 'rows'
|
|
59
95
|
> {
|
|
60
96
|
/**
|
|
61
|
-
*
|
|
97
|
+
* A callback function that executes when the user makes any changes in the field.
|
|
62
98
|
*/
|
|
63
99
|
onInput?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
64
100
|
/**
|
|
65
|
-
*
|
|
101
|
+
* A callback function that executes after editing completes, typically on blur.
|
|
66
102
|
*/
|
|
67
103
|
onChange?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
68
104
|
/**
|
|
69
|
-
*
|
|
105
|
+
* A callback function that executes when the element loses focus.
|
|
70
106
|
*/
|
|
71
107
|
onBlur?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
72
108
|
/**
|
|
73
|
-
*
|
|
109
|
+
* A callback function that executes when the element receives focus.
|
|
74
110
|
*/
|
|
75
111
|
onFocus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
76
112
|
/**
|
|
77
|
-
*
|
|
113
|
+
* The additional content to be displayed in the field. Commonly used to display clickable text or action elements. Only `Button` and `Clickable` components are supported in this slot. Use the `slot="accessory"` attribute to place elements in this area.
|
|
78
114
|
*/
|
|
79
115
|
accessory?: ComponentChild;
|
|
80
116
|
}
|
|
@@ -17,28 +17,64 @@ 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>;
|
|
47
|
+
/**
|
|
48
|
+
* 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.
|
|
49
|
+
*/
|
|
35
50
|
export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
|
|
51
|
+
/**
|
|
52
|
+
* The element that the event listener is attached to.
|
|
53
|
+
*/
|
|
36
54
|
currentTarget: HTMLElementTagNameMap[T];
|
|
55
|
+
/**
|
|
56
|
+
* Whether the event bubbles up through the DOM tree.
|
|
57
|
+
*/
|
|
37
58
|
bubbles?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the event can be canceled.
|
|
61
|
+
*/
|
|
38
62
|
cancelable?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Whether the event will trigger listeners outside of a shadow root.
|
|
65
|
+
*/
|
|
39
66
|
composed?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* The additional data associated with the event.
|
|
69
|
+
*/
|
|
40
70
|
detail?: any;
|
|
71
|
+
/**
|
|
72
|
+
* The current phase of the event flow.
|
|
73
|
+
*/
|
|
41
74
|
eventPhase: number;
|
|
75
|
+
/**
|
|
76
|
+
* The element that triggered the event.
|
|
77
|
+
*/
|
|
42
78
|
target: HTMLElementTagNameMap[T] | null;
|
|
43
79
|
}
|
|
44
80
|
|
|
@@ -57,23 +93,23 @@ export interface TextFieldJSXProps
|
|
|
57
93
|
| 'maxLength'
|
|
58
94
|
> {
|
|
59
95
|
/**
|
|
60
|
-
*
|
|
96
|
+
* A callback function that executes when the user makes any changes in the field.
|
|
61
97
|
*/
|
|
62
98
|
onInput?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
63
99
|
/**
|
|
64
|
-
*
|
|
100
|
+
* A callback function that executes after editing completes, typically on blur.
|
|
65
101
|
*/
|
|
66
102
|
onChange?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
67
103
|
/**
|
|
68
|
-
*
|
|
104
|
+
* A callback function that executes when the element loses focus.
|
|
69
105
|
*/
|
|
70
106
|
onBlur?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
71
107
|
/**
|
|
72
|
-
*
|
|
108
|
+
* A callback function that executes when the element receives focus.
|
|
73
109
|
*/
|
|
74
110
|
onFocus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
75
111
|
/**
|
|
76
|
-
*
|
|
112
|
+
* The additional content to be displayed in the field. Commonly used to display clickable text or action elements. Only `Button` and `Clickable` components with text content only are supported in this slot. Use the `slot="accessory"` attribute to place elements in this area.
|
|
77
113
|
*/
|
|
78
114
|
accessory?: ComponentChild;
|
|
79
115
|
}
|
|
@@ -12,28 +12,64 @@ import type {TileProps, 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 an event triggered by user interaction with the tile. Provides information about the event and access to the tile element that triggered it.
|
|
44
|
+
*/
|
|
30
45
|
export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
|
|
46
|
+
/**
|
|
47
|
+
* The tile element to which the event handler is attached. This always refers to the element that the event listener was added to, unlike `target` which may refer to a child element. Commonly used to access the tile's properties or manipulate the element directly.
|
|
48
|
+
*/
|
|
31
49
|
currentTarget: HTMLElementTagNameMap[T];
|
|
50
|
+
/**
|
|
51
|
+
* Indicates whether the event bubbles up through the DOM tree. When `true`, parent elements can also handle this event. Commonly used to determine if the event will propagate to parent handlers.
|
|
52
|
+
*/
|
|
32
53
|
bubbles?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Indicates whether the event's default action can be prevented. When `true`, calling `preventDefault()` on the event will prevent the default behavior. Commonly used to determine if you can prevent the default action programmatically.
|
|
56
|
+
*/
|
|
33
57
|
cancelable?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Indicates whether the event will propagate across shadow DOM boundaries into the standard DOM. When `true`, the event can be handled by elements outside the shadow DOM. Relevant for web component implementations.
|
|
60
|
+
*/
|
|
34
61
|
composed?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* The custom data associated with the event. For custom events, this can contain any additional information about the event. For standard tile click events, this is typically undefined unless custom data is provided.
|
|
64
|
+
*/
|
|
35
65
|
detail?: any;
|
|
66
|
+
/**
|
|
67
|
+
* Indicates the current phase of the event flow. Standard DOM event phase values: `0` (none), `1` (capturing), `2` (at target), or `3` (bubbling). Typically applied when implementing custom event handling logic that needs to differentiate between event phases.
|
|
68
|
+
*/
|
|
36
69
|
eventPhase: number;
|
|
70
|
+
/**
|
|
71
|
+
* The element that originally triggered the event. For tiles, this is typically the same as `currentTarget` since tiles are single interactive elements. Returns `null` if the target is no longer in the document.
|
|
72
|
+
*/
|
|
37
73
|
target: HTMLElementTagNameMap[T] | null;
|
|
38
74
|
}
|
|
39
75
|
|
|
@@ -44,13 +80,13 @@ export interface TileJSXProps
|
|
|
44
80
|
'heading' | 'id' | 'itemCount' | 'tone' | 'subheading'
|
|
45
81
|
> {
|
|
46
82
|
/**
|
|
47
|
-
*
|
|
83
|
+
* Controls whether the tile can be clicked or receive focus. When `true`, the tile appears dimmed and doesn't respond to user interactions or fire click events. Commonly used to prevent actions when conditions aren't met, such as insufficient cart contents or missing permissions. Defaults to `false`.
|
|
48
84
|
*
|
|
49
85
|
* @default false
|
|
50
86
|
*/
|
|
51
87
|
disabled?: TileProps['disabled'];
|
|
52
88
|
/**
|
|
53
|
-
*
|
|
89
|
+
* The callback function executed when the tile is activated by user interaction. Use this to launch modal workflows with `api.action.presentModal()`, update application state, or trigger other actions. The event parameter provides details about the interaction and the tile element that was clicked.
|
|
54
90
|
*/
|
|
55
91
|
onClick?: (event: CallbackEvent<typeof tagName>) => void;
|
|
56
92
|
}
|
|
@@ -12,28 +12,64 @@ import type {TimeFieldProps, 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
|
+
* The 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,19 +80,19 @@ export interface TimeFieldJSXProps
|
|
|
44
80
|
'id' | 'label' | 'disabled' | 'value' | 'error' | 'details'
|
|
45
81
|
> {
|
|
46
82
|
/**
|
|
47
|
-
*
|
|
83
|
+
* Called when the user makes any changes in the field.
|
|
48
84
|
*/
|
|
49
85
|
onInput?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
50
86
|
/**
|
|
51
|
-
*
|
|
87
|
+
* Called after editing completes, typically on blur.
|
|
52
88
|
*/
|
|
53
89
|
onChange?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
54
90
|
/**
|
|
55
|
-
*
|
|
91
|
+
* Called when the element loses focus.
|
|
56
92
|
*/
|
|
57
93
|
onBlur?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
58
94
|
/**
|
|
59
|
-
*
|
|
95
|
+
* Called when the element receives focus.
|
|
60
96
|
*/
|
|
61
97
|
onFocus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
62
98
|
}
|
|
@@ -12,28 +12,64 @@ import type {TimePickerProps, 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
|
+
* The 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,19 +77,19 @@ declare const tagName = 's-time-picker';
|
|
|
41
77
|
export interface TimePickerJSXProps
|
|
42
78
|
extends Pick<TimePickerProps, 'id' | 'value'> {
|
|
43
79
|
/**
|
|
44
|
-
*
|
|
80
|
+
* Called when the user selects a time from the picker.
|
|
45
81
|
*/
|
|
46
82
|
onInput?: (event: CallbackEvent<typeof tagName>) => void | null;
|
|
47
83
|
/**
|
|
48
|
-
*
|
|
84
|
+
* Called when the user selects a time from the picker that is different from the current value.
|
|
49
85
|
*/
|
|
50
86
|
onChange?: (event: CallbackEvent<typeof tagName>) => void | null;
|
|
51
87
|
/**
|
|
52
|
-
*
|
|
88
|
+
* Called when the time picker is dismissed or closed.
|
|
53
89
|
*/
|
|
54
90
|
onBlur?: (event: CallbackEvent<typeof tagName>) => void | null;
|
|
55
91
|
/**
|
|
56
|
-
*
|
|
92
|
+
* Called when the time picker is revealed or opened.
|
|
57
93
|
*/
|
|
58
94
|
onFocus?: (event: CallbackEvent<typeof tagName>) => void | null;
|
|
59
95
|
}
|