@shopify/ui-extensions 2026.1.0-rc.2 → 2026.1.0-rc.5
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/Choice.d.ts +17 -62
- package/build/ts/surfaces/admin/components/shared.d.ts +102 -3
- 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/camera-api/camera-api.d.ts +54 -0
- package/build/ts/surfaces/point-of-sale/api/camera-api/camera-api.d.ts.map +1 -0
- 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/cash-drawer-api/cash-drawer-api.d.ts +6 -4
- package/build/ts/surfaces/point-of-sale/api/cash-drawer-api/cash-drawer-api.d.ts.map +1 -1
- 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/standard/standard-api.d.ts +2 -1
- package/build/ts/surfaces/point-of-sale/api/standard/standard-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/api.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/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 -64
- 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 +18 -16
- 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 +5 -12
- 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 +150 -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/components/Choice.d.ts +17 -62
- package/src/surfaces/admin/components/shared.d.ts +102 -3
- package/src/surfaces/admin/components.d.ts +517 -389
- package/src/surfaces/point-of-sale/api/action-api/action-api.ts +3 -5
- package/src/surfaces/point-of-sale/api/camera-api/camera-api.ts +56 -0
- 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/cash-drawer-api/cash-drawer-api.ts +6 -4
- 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/standard/standard-api.ts +3 -1
- 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/api.ts +7 -0
- 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.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 -64
- 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 +18 -16
- 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 +5 -12
- 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 +150 -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/src/surfaces/point-of-sale/components/EmailField/examples/accessory-slot.jsx +0 -9
|
@@ -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,25 +48,25 @@ export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
|
36
48
|
declare const tagName = 's-page';
|
|
37
49
|
export interface PageJSXProps extends Pick<PageProps, 'id'> {
|
|
38
50
|
/**
|
|
39
|
-
* The main page heading
|
|
51
|
+
* The main page heading displayed in the action bar at the top of the page.
|
|
40
52
|
*
|
|
41
53
|
* @default: ''
|
|
42
54
|
*/
|
|
43
55
|
heading?: PageProps['heading'];
|
|
44
56
|
/**
|
|
45
|
-
* A secondary page heading
|
|
57
|
+
* A secondary page heading displayed under the main heading in the action bar.
|
|
46
58
|
*/
|
|
47
59
|
subheading?: PageProps['subheading'];
|
|
48
60
|
/**
|
|
49
|
-
*
|
|
61
|
+
* A button element to display in the action bar. Only a single button is supported. Use the `slot="secondary-actions"` attribute to place content in this area.
|
|
50
62
|
*/
|
|
51
63
|
secondaryActions?: ComponentChild;
|
|
52
64
|
/**
|
|
53
|
-
*
|
|
65
|
+
* The content to display in the page's sidebar. This area is for content that is tangentially related to the main content, such as navigation or contextual information. Use the `slot="aside"` attribute to place content in this area.
|
|
54
66
|
*/
|
|
55
67
|
aside?: ComponentChild;
|
|
56
68
|
/**
|
|
57
|
-
* The
|
|
69
|
+
* The child elements to render within this component.
|
|
58
70
|
*/
|
|
59
71
|
children?: ComponentChildren;
|
|
60
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PosBlock.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"PosBlock.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAyDX,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>;
|
|
@@ -37,11 +49,11 @@ declare const tagName = 's-pos-block';
|
|
|
37
49
|
export interface PosBlockJSXProps
|
|
38
50
|
extends Pick<POSBlockProps, 'id' | 'heading'> {
|
|
39
51
|
/**
|
|
40
|
-
* The secondary actions to perform, provided as button or link type elements.
|
|
52
|
+
* The secondary actions to perform, provided as button or link type elements. Use the `slot="secondary-actions"` attribute to place interactive elements that allow users to take actions related to the block's content.
|
|
41
53
|
*/
|
|
42
54
|
secondaryActions?: ComponentChild;
|
|
43
55
|
/**
|
|
44
|
-
* The
|
|
56
|
+
* The child elements to render within this component.
|
|
45
57
|
*/
|
|
46
58
|
children?: ComponentChildren;
|
|
47
59
|
}
|
|
@@ -12,18 +12,30 @@ import type {QRCodeProps, 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":"ScrollBox.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/ScrollBox/ScrollBox.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"ScrollBox.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/ScrollBox/ScrollBox.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA4CX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -22,136 +22,133 @@ import type {
|
|
|
22
22
|
|
|
23
23
|
export type ComponentChildren = any;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* The base props for elements without children, providing key, ref, and slot properties.
|
|
26
26
|
*/
|
|
27
27
|
export interface BaseElementProps<TClass = HTMLElement> {
|
|
28
|
+
/**
|
|
29
|
+
* A unique identifier for the element in lists. Used by Preact for efficient rendering and reconciliation.
|
|
30
|
+
*/
|
|
28
31
|
key?: Key;
|
|
32
|
+
/**
|
|
33
|
+
* A reference to the underlying DOM element. Commonly used to access the element directly for imperative operations.
|
|
34
|
+
*/
|
|
29
35
|
ref?: Ref<TClass>;
|
|
36
|
+
/**
|
|
37
|
+
* The named [slot](/docs/api/polaris/using-polaris-web-components#slots) this element should be placed in when used within a web component.
|
|
38
|
+
*/
|
|
30
39
|
slot?: Lowercase<string>;
|
|
31
40
|
}
|
|
32
41
|
/**
|
|
33
|
-
*
|
|
42
|
+
* The base props for elements with children, extending `BaseElementProps` with children support.
|
|
34
43
|
*/
|
|
35
44
|
export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
36
45
|
extends BaseElementProps<TClass> {
|
|
46
|
+
/**
|
|
47
|
+
* The child elements to render within this component.
|
|
48
|
+
*/
|
|
37
49
|
children?: ComponentChildren;
|
|
38
50
|
}
|
|
39
51
|
export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
40
52
|
|
|
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
|
declare const tagName = 's-scroll-box';
|
|
43
58
|
export interface ScrollBoxJSXProps extends Pick<ScrollBoxProps, 'id'> {
|
|
44
59
|
/**
|
|
45
|
-
*
|
|
60
|
+
* The block size of the scrollable container. Auto automatically sizes based on the container's content and available space.
|
|
46
61
|
*
|
|
47
62
|
* @default 'auto'
|
|
48
63
|
*/
|
|
49
64
|
blockSize?: SizeUnitsOrAuto;
|
|
50
65
|
/**
|
|
51
|
-
*
|
|
66
|
+
* The inline size of the scrollable container. Auto automatically sizes based on the container's content and available space.
|
|
52
67
|
*
|
|
53
68
|
* @default 'auto'
|
|
54
69
|
*/
|
|
55
70
|
inlineSize?: SizeUnitsOrAuto;
|
|
56
71
|
/**
|
|
57
|
-
*
|
|
72
|
+
* The maximum block size constraint for the scrollable container.
|
|
58
73
|
*
|
|
59
74
|
* @default 'none'
|
|
60
75
|
*/
|
|
61
76
|
maxBlockSize?: SizeUnitsOrNone;
|
|
62
77
|
/**
|
|
63
|
-
*
|
|
78
|
+
* The maximum inline size constraint for the scrollable container.
|
|
64
79
|
*
|
|
65
80
|
* @default 'none'
|
|
66
81
|
*/
|
|
67
82
|
maxInlineSize?: SizeUnitsOrNone;
|
|
68
83
|
/**
|
|
69
|
-
*
|
|
84
|
+
* The minimum block size constraint for the scrollable container.
|
|
70
85
|
*
|
|
71
86
|
* @default '0'
|
|
72
87
|
*/
|
|
73
88
|
minBlockSize?: SizeUnits;
|
|
74
89
|
/**
|
|
75
|
-
*
|
|
90
|
+
* The minimum inline size constraint for the scrollable container.
|
|
76
91
|
*
|
|
77
92
|
* @default '0'
|
|
78
93
|
*/
|
|
79
94
|
minInlineSize?: SizeUnits;
|
|
80
95
|
/**
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* [1-to-4-value syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box) is
|
|
84
|
-
* supported. Note that, contrary to the CSS, it uses flow-relative values and the order is:
|
|
96
|
+
* The padding applied to all edges of the scrollable 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:
|
|
85
97
|
*
|
|
86
98
|
* - 4 values: `block-start inline-end block-end inline-start`
|
|
87
99
|
* - 3 values: `block-start inline block-end`
|
|
88
100
|
* - 2 values: `block inline`
|
|
89
101
|
*
|
|
90
102
|
* For example:
|
|
103
|
+
*
|
|
91
104
|
* - `large` means block-start, inline-end, block-end and inline-start paddings are `large`.
|
|
92
105
|
* - `large none` means block-start and block-end paddings are `large`, inline-start and inline-end paddings are `none`.
|
|
93
106
|
* - `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`.
|
|
94
107
|
* - `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`.
|
|
95
108
|
*
|
|
96
|
-
*
|
|
109
|
+
* An `auto` value inherits the default padding from the closest container that has removed its usual padding.
|
|
97
110
|
*
|
|
98
111
|
* @default 'none'
|
|
99
112
|
*/
|
|
100
113
|
padding?: MaybeAllValuesShorthandProperty<PaddingKeyword>;
|
|
101
114
|
/**
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* - `large none` means block-start padding is `large`, block-end padding is `none`.
|
|
105
|
-
*
|
|
106
|
-
* This overrides the block value of `padding`.
|
|
115
|
+
* The block-axis padding for the scrollable container. Overrides the block value of the `padding` property.
|
|
107
116
|
*
|
|
108
117
|
* @default '' - meaning no override
|
|
109
118
|
*/
|
|
110
119
|
paddingBlock?: MaybeTwoValuesShorthandProperty<PaddingKeyword> | '';
|
|
111
120
|
/**
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* This overrides the block-start value of `paddingBlock`.
|
|
121
|
+
* The block-start padding for the scrollable container. Overrides the block-start value of the `paddingBlock` property.
|
|
115
122
|
*
|
|
116
123
|
* @default '' - meaning no override
|
|
117
124
|
*/
|
|
118
125
|
paddingBlockStart?: PaddingKeyword | '';
|
|
119
126
|
/**
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
* This overrides the block-end value of `paddingBlock`.
|
|
127
|
+
* The block-end padding for the scrollable container. Overrides the block-end value of the `paddingBlock` property.
|
|
123
128
|
*
|
|
124
129
|
* @default '' - meaning no override
|
|
125
130
|
*/
|
|
126
131
|
paddingBlockEnd?: PaddingKeyword | '';
|
|
127
132
|
/**
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
* - `large none` means inline-start padding is `large`, inline-end padding is `none`.
|
|
131
|
-
*
|
|
132
|
-
* This overrides the inline value of `padding`.
|
|
133
|
+
* The inline-axis padding for the scrollable 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.
|
|
133
134
|
*
|
|
134
135
|
* @default '' - meaning no override
|
|
135
136
|
*/
|
|
136
137
|
paddingInline?: MaybeTwoValuesShorthandProperty<PaddingKeyword> | '';
|
|
137
138
|
/**
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
* This overrides the inline-start value of `paddingInline`.
|
|
139
|
+
* The inline-start padding for the scrollable container. Overrides the inline-start value of the `paddingInline` property.
|
|
141
140
|
*
|
|
142
141
|
* @default '' - meaning no override
|
|
143
142
|
*/
|
|
144
143
|
paddingInlineStart?: PaddingKeyword | '';
|
|
145
144
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* This overrides the inline-end value of `paddingInline`.
|
|
145
|
+
* The inline-end padding for the scrollable container. Overrides the inline-end value of the `paddingInline` property.
|
|
149
146
|
*
|
|
150
147
|
* @default '' - meaning no override
|
|
151
148
|
*/
|
|
152
149
|
paddingInlineEnd?: PaddingKeyword | '';
|
|
153
150
|
/**
|
|
154
|
-
* The
|
|
151
|
+
* The child elements to render within this component.
|
|
155
152
|
*/
|
|
156
153
|
children?: ComponentChildren;
|
|
157
154
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/SearchField/SearchField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"SearchField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/SearchField/SearchField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAsEX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -12,28 +12,64 @@ import type {SearchFieldProps, 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-search-field';
|
|
|
41
77
|
export interface SearchFieldJSXProps
|
|
42
78
|
extends Pick<SearchFieldProps, 'id' | 'disabled' | 'placeholder' | 'value'> {
|
|
43
79
|
/**
|
|
44
|
-
*
|
|
80
|
+
* Called when the user changes the value in the field.
|
|
45
81
|
*/
|
|
46
82
|
onInput?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
47
83
|
/**
|
|
48
|
-
*
|
|
84
|
+
* Called when the field loses focus after the user changes the value in the field.
|
|
49
85
|
*/
|
|
50
86
|
onChange?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
51
87
|
/**
|
|
52
|
-
*
|
|
88
|
+
* Called when the field loses focus.
|
|
53
89
|
*/
|
|
54
90
|
onBlur?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
55
91
|
/**
|
|
56
|
-
*
|
|
92
|
+
* Called when the field is focused.
|
|
57
93
|
*/
|
|
58
94
|
onFocus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
59
95
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Section/Section.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Section.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Section/Section.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAmDX,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,17 +48,15 @@ export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
|
36
48
|
declare const tagName = 's-section';
|
|
37
49
|
export interface SectionJSXProps extends Pick<SectionProps, 'id'> {
|
|
38
50
|
/**
|
|
39
|
-
* A title that describes the content of the section.
|
|
40
|
-
*
|
|
41
|
-
* If omitted, and no secondaryActions are provided, the section will be rendered without a header.
|
|
51
|
+
* A title that describes the content of the section. If omitted and no secondary actions are provided, the section will be rendered without a header.
|
|
42
52
|
*/
|
|
43
53
|
heading?: string;
|
|
44
54
|
/**
|
|
45
|
-
*
|
|
55
|
+
* A button element to display in the section heading. Only a single button is supported. Use the `slot="secondary-actions"` attribute to place action elements that relate to the entire section's content.
|
|
46
56
|
*/
|
|
47
57
|
secondaryActions?: ComponentChild;
|
|
48
58
|
/**
|
|
49
|
-
* The
|
|
59
|
+
* The child elements to render within this component.
|
|
50
60
|
*/
|
|
51
61
|
children?: ComponentChildren;
|
|
52
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Stack/Stack.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Stack.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Stack/Stack.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA+CX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|