@shopify/ui-extensions 2025.10.0-rc.46 → 2025.10.0-rc.47
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/checkout/preact/api.js +1 -1
- package/build/cjs/surfaces/checkout/shared.js +1 -1
- package/build/esm/surfaces/checkout/preact/api.mjs +1 -1
- package/build/esm/surfaces/checkout/shared.mjs +1 -1
- package/build/esnext/surfaces/checkout/preact/api.esnext +1 -1
- package/build/esnext/surfaces/checkout/shared.esnext +1 -1
- package/build/ts/docs/shared/components/ConsentCheckbox.d.ts +4 -0
- package/build/ts/docs/shared/components/ConsentCheckbox.d.ts.map +1 -0
- package/build/ts/docs/shared/components/ConsentPhoneField.d.ts +4 -0
- package/build/ts/docs/shared/components/ConsentPhoneField.d.ts.map +1 -0
- package/build/ts/docs/shared/components/index.d.ts +2 -0
- package/build/ts/docs/shared/components/index.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ConsentCheckbox.d.ts +84 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField.d.ts +129 -0
- package/build/ts/surfaces/checkout/components/NumberField/NumberField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/NumberField/NumberField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/NumberField.d.ts +98 -0
- package/build/ts/surfaces/checkout/components/PasswordField.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/components-shared.d.ts +17 -0
- package/build/ts/surfaces/checkout/components/components.d.ts +216 -144
- package/build/ts/surfaces/checkout/shared.d.ts +1 -1
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Actions::RenderBefore.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.announcement.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/ConsentCheckbox.d.ts +84 -0
- package/build/ts/surfaces/customer-account/components/ConsentPhoneField.d.ts +129 -0
- package/build/ts/surfaces/customer-account/components/NumberField.d.ts +98 -0
- package/build/ts/surfaces/customer-account/components/PasswordField.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/components-shared.d.ts +17 -0
- package/build/ts/surfaces/customer-account/components/components.d.ts +216 -144
- package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.announcement.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.announcement.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.announcement.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/Badge.d.ts +10 -1
- package/build/ts/surfaces/point-of-sale/components/Banner.d.ts +12 -4
- package/build/ts/surfaces/point-of-sale/components/Box.d.ts +51 -14
- package/build/ts/surfaces/point-of-sale/components/Button.d.ts +12 -2
- package/build/ts/surfaces/point-of-sale/components/Choice.d.ts +3 -2
- package/build/ts/surfaces/point-of-sale/components/ChoiceList.d.ts +12 -5
- package/build/ts/surfaces/point-of-sale/components/Clickable.d.ts +11 -4
- package/build/ts/surfaces/point-of-sale/components/DateField.d.ts +17 -8
- package/build/ts/surfaces/point-of-sale/components/DatePicker.d.ts +14 -6
- package/build/ts/surfaces/point-of-sale/components/DateSpinner.d.ts +10 -6
- package/build/ts/surfaces/point-of-sale/components/Divider.d.ts +4 -3
- package/build/ts/surfaces/point-of-sale/components/EmailField.d.ts +17 -7
- package/build/ts/surfaces/point-of-sale/components/Heading.d.ts +7 -4
- package/build/ts/surfaces/point-of-sale/components/Icon.d.ts +13 -3
- package/build/ts/surfaces/point-of-sale/components/Image.d.ts +12 -5
- package/build/ts/surfaces/point-of-sale/components/Modal.d.ts +28 -7
- package/build/ts/surfaces/point-of-sale/components/NumberField.d.ts +17 -7
- package/build/ts/surfaces/point-of-sale/components/Page.d.ts +25 -11
- package/build/ts/surfaces/point-of-sale/components/PosBlock.d.ts +12 -13
- package/build/ts/surfaces/point-of-sale/components/QrCode.d.ts +12 -8
- package/build/ts/surfaces/point-of-sale/components/ScrollBox.d.ts +47 -15
- package/build/ts/surfaces/point-of-sale/components/SearchField.d.ts +15 -7
- package/build/ts/surfaces/point-of-sale/components/Section.d.ts +15 -9
- package/build/ts/surfaces/point-of-sale/components/Stack.d.ts +67 -7
- package/build/ts/surfaces/point-of-sale/components/Text.d.ts +25 -4
- package/build/ts/surfaces/point-of-sale/components/TextArea.d.ts +17 -7
- package/build/ts/surfaces/point-of-sale/components/TextField.d.ts +9 -7
- package/build/ts/surfaces/point-of-sale/components/Tile.d.ts +12 -2
- package/build/ts/surfaces/point-of-sale/components/TimeField.d.ts +14 -6
- package/build/ts/surfaces/point-of-sale/components/TimePicker.d.ts +14 -6
- package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +102 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/src/docs/shared/components/ConsentCheckbox.ts +12 -0
- package/src/docs/shared/components/ConsentPhoneField.ts +12 -0
- package/src/docs/shared/components/index.ts +2 -0
- package/src/surfaces/checkout/components/ConsentCheckbox/examples/basic-consent-checkbox.example.html +5 -0
- package/src/surfaces/checkout/components/ConsentCheckbox.d.ts +84 -0
- package/src/surfaces/checkout/components/ConsentPhoneField/examples/basic-consent-phone-field.example.html +5 -0
- package/src/surfaces/checkout/components/ConsentPhoneField.d.ts +129 -0
- package/src/surfaces/checkout/components/NumberField/examples/basic-number-field.example.html +8 -0
- package/src/surfaces/checkout/components/NumberField.d.ts +98 -0
- package/src/surfaces/checkout/components/PasswordField.d.ts +1 -1
- package/src/surfaces/checkout/components/PhoneField/examples/basic-phone-field.example.html +2 -1
- package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-product-thumbnail.example.html +4 -1
- package/src/surfaces/checkout/components/Stack/examples/basic-stack.example.html +20 -4
- package/src/surfaces/checkout/components/TextArea/examples/basic-text-area.example.html +5 -1
- package/src/surfaces/checkout/components/TextField/examples/basic-text-field.example.html +4 -1
- package/src/surfaces/checkout/components/components-shared.d.ts +17 -0
- package/src/surfaces/checkout/components/components.d.ts +216 -144
- package/src/surfaces/checkout/preact/api.ts +1 -1
- package/src/surfaces/checkout/preact/tests/api.test.tsx +22 -13
- package/src/surfaces/checkout/preact/tests/app-metafields.test.ts +52 -56
- package/src/surfaces/checkout/preact/tests/attributes.test.ts +34 -24
- package/src/surfaces/checkout/preact/tests/billing-address.test.ts +17 -7
- package/src/surfaces/checkout/preact/tests/buyer-identity-businessCustomer.test.ts +16 -9
- package/src/surfaces/checkout/preact/tests/buyer-identity.test.tsx +57 -26
- package/src/surfaces/checkout/preact/tests/buyer-journey.test.ts +71 -74
- package/src/surfaces/checkout/preact/tests/capabilities.test.ts +32 -28
- package/src/surfaces/checkout/preact/tests/cart-line-target.test.ts +31 -24
- package/src/surfaces/checkout/preact/tests/checkout-settings.test.ts +17 -9
- package/src/surfaces/checkout/preact/tests/checkout-token.test.ts +16 -6
- package/src/surfaces/checkout/preact/tests/configuration.test.ts +16 -6
- package/src/surfaces/checkout/preact/tests/country.test.tsx +18 -8
- package/src/surfaces/checkout/preact/tests/currency.test.tsx +18 -8
- package/src/surfaces/checkout/preact/tests/customer-privacy.test.ts +17 -8
- package/src/surfaces/checkout/preact/tests/delivery-group-list-target.test.ts +24 -18
- package/src/surfaces/checkout/preact/tests/delivery-group-target.test.ts +25 -19
- package/src/surfaces/checkout/preact/tests/delivery-group.test.ts +22 -16
- package/src/surfaces/checkout/preact/tests/delivery-groups.test.ts +17 -11
- package/src/surfaces/checkout/preact/tests/delivery-selection-groups.test.ts +31 -24
- package/src/surfaces/checkout/preact/tests/discounts.test.tsx +21 -14
- package/src/surfaces/checkout/preact/tests/extension-language.test.tsx +17 -8
- package/src/surfaces/checkout/preact/tests/gift-cards.test.tsx +17 -8
- package/src/surfaces/checkout/preact/tests/localized-fields.test.ts +58 -59
- package/src/surfaces/checkout/preact/tests/market.test.tsx +17 -7
- package/src/surfaces/checkout/preact/tests/metafield.test.tsx +33 -36
- package/src/surfaces/checkout/preact/tests/metafields.test.tsx +36 -53
- package/src/surfaces/checkout/preact/tests/mount.tsx +60 -17
- package/src/surfaces/checkout/preact/tests/notes.test.tsx +16 -6
- package/src/surfaces/checkout/preact/tests/payment-method.test.ts +87 -60
- package/src/surfaces/checkout/preact/tests/payment-options.test.tsx +26 -24
- package/src/surfaces/checkout/preact/tests/pickup-location-option-target.test.tsx +55 -46
- package/src/surfaces/checkout/preact/tests/redeemable.test.ts +30 -23
- package/src/surfaces/checkout/preact/tests/session-token.test.tsx +12 -6
- package/src/surfaces/checkout/preact/tests/shipping-address.test.ts +17 -7
- package/src/surfaces/checkout/preact/tests/shipping-option-target.test.ts +54 -50
- package/src/surfaces/checkout/preact/tests/shopping-address.test.tsx +18 -10
- package/src/surfaces/checkout/preact/tests/timezone.test.tsx +17 -7
- package/src/surfaces/checkout/preact/tests/translate.test.tsx +18 -13
- package/src/surfaces/checkout/preact/tests/tsconfig.json +1 -1
- package/src/surfaces/checkout/shared.ts +2 -0
- package/src/surfaces/point-of-sale/components/Badge.d.ts +10 -1
- package/src/surfaces/point-of-sale/components/Banner.d.ts +12 -4
- package/src/surfaces/point-of-sale/components/Box.d.ts +51 -14
- package/src/surfaces/point-of-sale/components/Button.d.ts +12 -2
- package/src/surfaces/point-of-sale/components/Choice.d.ts +3 -2
- package/src/surfaces/point-of-sale/components/ChoiceList.d.ts +12 -5
- package/src/surfaces/point-of-sale/components/Clickable.d.ts +11 -4
- package/src/surfaces/point-of-sale/components/DateField.d.ts +17 -8
- package/src/surfaces/point-of-sale/components/DatePicker.d.ts +14 -6
- package/src/surfaces/point-of-sale/components/DateSpinner.d.ts +10 -6
- package/src/surfaces/point-of-sale/components/Divider.d.ts +4 -3
- package/src/surfaces/point-of-sale/components/EmailField.d.ts +17 -7
- package/src/surfaces/point-of-sale/components/Heading.d.ts +7 -4
- package/src/surfaces/point-of-sale/components/Icon.d.ts +13 -3
- package/src/surfaces/point-of-sale/components/Image.d.ts +12 -5
- package/src/surfaces/point-of-sale/components/Modal.d.ts +28 -7
- package/src/surfaces/point-of-sale/components/NumberField.d.ts +17 -7
- package/src/surfaces/point-of-sale/components/Page.d.ts +25 -11
- package/src/surfaces/point-of-sale/components/PosBlock.d.ts +12 -13
- package/src/surfaces/point-of-sale/components/QrCode.d.ts +12 -8
- package/src/surfaces/point-of-sale/components/ScrollBox.d.ts +47 -15
- package/src/surfaces/point-of-sale/components/SearchField.d.ts +15 -7
- package/src/surfaces/point-of-sale/components/Section.d.ts +15 -9
- package/src/surfaces/point-of-sale/components/Stack.d.ts +67 -7
- package/src/surfaces/point-of-sale/components/Text.d.ts +25 -4
- package/src/surfaces/point-of-sale/components/TextArea.d.ts +17 -7
- package/src/surfaces/point-of-sale/components/TextField.d.ts +9 -7
- package/src/surfaces/point-of-sale/components/Tile.d.ts +12 -2
- package/src/surfaces/point-of-sale/components/TimeField.d.ts +14 -6
- package/src/surfaces/point-of-sale/components/TimePicker.d.ts +14 -6
- package/src/surfaces/point-of-sale/components/components-shared.d.ts +102 -1
- package/src/surfaces/point-of-sale/components.d.ts +869 -481
- package/build/ts/surfaces/checkout/errors.d.ts +0 -10
- package/build/ts/surfaces/checkout/errors.d.ts.map +0 -1
- package/src/surfaces/checkout/errors.ts +0 -13
|
@@ -31,6 +31,7 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
|
31
31
|
extends BaseElementProps<TClass> {
|
|
32
32
|
children?: ComponentChildren;
|
|
33
33
|
}
|
|
34
|
+
export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
34
35
|
export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
|
|
35
36
|
currentTarget: HTMLElementTagNameMap[T];
|
|
36
37
|
bubbles?: boolean;
|
|
@@ -45,6 +46,7 @@ declare const tagName = 's-text-area';
|
|
|
45
46
|
export interface TextAreaJSXProps
|
|
46
47
|
extends Pick<
|
|
47
48
|
TextAreaProps,
|
|
49
|
+
| 'id'
|
|
48
50
|
| 'label'
|
|
49
51
|
| 'details'
|
|
50
52
|
| 'value'
|
|
@@ -55,29 +57,37 @@ export interface TextAreaJSXProps
|
|
|
55
57
|
| 'maxLength'
|
|
56
58
|
| 'rows'
|
|
57
59
|
> {
|
|
58
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* Callback when the user makes any changes in the field.
|
|
62
|
+
*/
|
|
59
63
|
onInput?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
60
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* Callback after editing completes (typically on blur).
|
|
66
|
+
*/
|
|
61
67
|
onChange?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
62
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* Callback when the element loses focus.
|
|
70
|
+
*/
|
|
63
71
|
onBlur?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
64
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* Callback when the element receives focus.
|
|
74
|
+
*/
|
|
65
75
|
onFocus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
66
76
|
/**
|
|
67
77
|
* Additional content to be displayed in the field. Commonly used to display clickable text.
|
|
68
78
|
*/
|
|
69
79
|
accessory?: ComponentChild;
|
|
70
80
|
}
|
|
81
|
+
export type ElementProps = Omit<TextAreaJSXProps, 'accessory'>;
|
|
71
82
|
declare global {
|
|
72
83
|
interface HTMLElementTagNameMap {
|
|
73
|
-
[tagName]:
|
|
84
|
+
[tagName]: ElementProps;
|
|
74
85
|
}
|
|
75
86
|
}
|
|
76
87
|
declare module 'preact' {
|
|
77
88
|
namespace createElement.JSX {
|
|
78
89
|
interface IntrinsicElements {
|
|
79
|
-
[tagName]:
|
|
80
|
-
BaseElementPropsWithChildren<Omit<TextAreaJSXProps, 'accessory'>>;
|
|
90
|
+
[tagName]: IntrinsicElementProps<ElementProps>;
|
|
81
91
|
}
|
|
82
92
|
}
|
|
83
93
|
}
|
|
@@ -31,6 +31,7 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
|
31
31
|
extends BaseElementProps<TClass> {
|
|
32
32
|
children?: ComponentChildren;
|
|
33
33
|
}
|
|
34
|
+
export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
34
35
|
export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
|
|
35
36
|
currentTarget: HTMLElementTagNameMap[T];
|
|
36
37
|
bubbles?: boolean;
|
|
@@ -45,6 +46,7 @@ declare const tagName = 's-text-field';
|
|
|
45
46
|
export interface TextFieldJSXProps
|
|
46
47
|
extends Pick<
|
|
47
48
|
TextFieldProps,
|
|
49
|
+
| 'id'
|
|
48
50
|
| 'label'
|
|
49
51
|
| 'details'
|
|
50
52
|
| 'value'
|
|
@@ -55,19 +57,19 @@ export interface TextFieldJSXProps
|
|
|
55
57
|
| 'maxLength'
|
|
56
58
|
> {
|
|
57
59
|
/**
|
|
58
|
-
*
|
|
60
|
+
* Callback when the user makes any changes in the field.
|
|
59
61
|
*/
|
|
60
62
|
onInput?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
61
63
|
/**
|
|
62
|
-
*
|
|
64
|
+
* Callback after editing completes (typically on blur).
|
|
63
65
|
*/
|
|
64
66
|
onChange?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
65
67
|
/**
|
|
66
|
-
*
|
|
68
|
+
* Callback when the element loses focus.
|
|
67
69
|
*/
|
|
68
70
|
onBlur?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
69
71
|
/**
|
|
70
|
-
*
|
|
72
|
+
* Callback when the element receives focus.
|
|
71
73
|
*/
|
|
72
74
|
onFocus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
73
75
|
/**
|
|
@@ -75,16 +77,16 @@ export interface TextFieldJSXProps
|
|
|
75
77
|
*/
|
|
76
78
|
accessory?: ComponentChild;
|
|
77
79
|
}
|
|
80
|
+
export type ElementProps = Omit<TextFieldJSXProps, 'accessory'>;
|
|
78
81
|
declare global {
|
|
79
82
|
interface HTMLElementTagNameMap {
|
|
80
|
-
[tagName]:
|
|
83
|
+
[tagName]: ElementProps;
|
|
81
84
|
}
|
|
82
85
|
}
|
|
83
86
|
declare module 'preact' {
|
|
84
87
|
namespace createElement.JSX {
|
|
85
88
|
interface IntrinsicElements {
|
|
86
|
-
[tagName]:
|
|
87
|
-
BaseElementPropsWithChildren<Omit<TextFieldJSXProps, 'accessory'>>;
|
|
89
|
+
[tagName]: IntrinsicElementProps<ElementProps>;
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
92
|
}
|
|
@@ -26,6 +26,7 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
|
26
26
|
extends BaseElementProps<TClass> {
|
|
27
27
|
children?: ComponentChildren;
|
|
28
28
|
}
|
|
29
|
+
export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
29
30
|
export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
|
|
30
31
|
currentTarget: HTMLElementTagNameMap[T];
|
|
31
32
|
bubbles?: boolean;
|
|
@@ -40,8 +41,17 @@ declare const tagName = 's-tile';
|
|
|
40
41
|
export interface TileJSXProps
|
|
41
42
|
extends Pick<
|
|
42
43
|
TileProps,
|
|
43
|
-
'
|
|
44
|
+
'heading' | 'id' | 'itemCount' | 'tone' | 'subheading'
|
|
44
45
|
> {
|
|
46
|
+
/**
|
|
47
|
+
* Disables the Tile meaning it cannot be clicked or receive focus.
|
|
48
|
+
*
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
disabled?: TileProps['disabled'];
|
|
52
|
+
/**
|
|
53
|
+
* Callback when the Tile is activated.
|
|
54
|
+
*/
|
|
45
55
|
onClick?: (event: CallbackEvent<typeof tagName>) => void;
|
|
46
56
|
}
|
|
47
57
|
declare global {
|
|
@@ -52,7 +62,7 @@ declare global {
|
|
|
52
62
|
declare module 'preact' {
|
|
53
63
|
namespace createElement.JSX {
|
|
54
64
|
interface IntrinsicElements {
|
|
55
|
-
[tagName]:
|
|
65
|
+
[tagName]: IntrinsicElementProps<TileJSXProps>;
|
|
56
66
|
}
|
|
57
67
|
}
|
|
58
68
|
}
|
|
@@ -26,6 +26,7 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
|
26
26
|
extends BaseElementProps<TClass> {
|
|
27
27
|
children?: ComponentChildren;
|
|
28
28
|
}
|
|
29
|
+
export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
29
30
|
export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
|
|
30
31
|
currentTarget: HTMLElementTagNameMap[T];
|
|
31
32
|
bubbles?: boolean;
|
|
@@ -42,13 +43,21 @@ export interface TimeFieldJSXProps
|
|
|
42
43
|
TimeFieldProps,
|
|
43
44
|
'id' | 'label' | 'disabled' | 'value' | 'error' | 'details'
|
|
44
45
|
> {
|
|
45
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* Callback when the user makes any changes in the field.
|
|
48
|
+
*/
|
|
46
49
|
onInput?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
47
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Callback after editing completes (typically on blur).
|
|
52
|
+
*/
|
|
48
53
|
onChange?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
49
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* Callback when the element loses focus.
|
|
56
|
+
*/
|
|
50
57
|
onBlur?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
51
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* Callback when the element receives focus.
|
|
60
|
+
*/
|
|
52
61
|
onFocus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
53
62
|
}
|
|
54
63
|
declare global {
|
|
@@ -59,8 +68,7 @@ declare global {
|
|
|
59
68
|
declare module 'preact' {
|
|
60
69
|
namespace createElement.JSX {
|
|
61
70
|
interface IntrinsicElements {
|
|
62
|
-
[tagName]: TimeFieldJSXProps
|
|
63
|
-
BaseElementPropsWithChildren<TimeFieldJSXProps>;
|
|
71
|
+
[tagName]: IntrinsicElementProps<TimeFieldJSXProps>;
|
|
64
72
|
}
|
|
65
73
|
}
|
|
66
74
|
}
|
|
@@ -26,6 +26,7 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
|
26
26
|
extends BaseElementProps<TClass> {
|
|
27
27
|
children?: ComponentChildren;
|
|
28
28
|
}
|
|
29
|
+
export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
|
|
29
30
|
export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
|
|
30
31
|
currentTarget: HTMLElementTagNameMap[T];
|
|
31
32
|
bubbles?: boolean;
|
|
@@ -39,13 +40,21 @@ export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
|
|
|
39
40
|
declare const tagName = 's-time-picker';
|
|
40
41
|
export interface TimePickerJSXProps
|
|
41
42
|
extends Pick<TimePickerProps, 'id' | 'value'> {
|
|
42
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Callback when the user selects a time from the picker.
|
|
45
|
+
*/
|
|
43
46
|
onInput?: (event: CallbackEvent<typeof tagName>) => void | null;
|
|
44
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* Callback when the user selects a time from the picker that is different to the current value.
|
|
49
|
+
*/
|
|
45
50
|
onChange?: (event: CallbackEvent<typeof tagName>) => void | null;
|
|
46
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* Callback when the time picker is dismissed.
|
|
53
|
+
*/
|
|
47
54
|
onBlur?: (event: CallbackEvent<typeof tagName>) => void | null;
|
|
48
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Callback when the time picker is revealed.
|
|
57
|
+
*/
|
|
49
58
|
onFocus?: (event: CallbackEvent<typeof tagName>) => void | null;
|
|
50
59
|
}
|
|
51
60
|
declare global {
|
|
@@ -56,8 +65,7 @@ declare global {
|
|
|
56
65
|
declare module 'preact' {
|
|
57
66
|
namespace createElement.JSX {
|
|
58
67
|
interface IntrinsicElements {
|
|
59
|
-
[tagName]: TimePickerJSXProps
|
|
60
|
-
BaseElementPropsWithChildren<TimePickerJSXProps>;
|
|
68
|
+
[tagName]: IntrinsicElementProps<TimePickerJSXProps>;
|
|
61
69
|
}
|
|
62
70
|
}
|
|
63
71
|
}
|
|
@@ -1252,7 +1252,6 @@ export interface BaseBoxProps
|
|
|
1252
1252
|
export interface BaseBoxPropsWithRole
|
|
1253
1253
|
extends BaseBoxProps,
|
|
1254
1254
|
AccessibilityRoleProps {}
|
|
1255
|
-
export interface BoxProps extends BaseBoxPropsWithRole, GlobalProps {}
|
|
1256
1255
|
export interface ButtonBehaviorProps extends InteractionProps, FocusEventProps {
|
|
1257
1256
|
/**
|
|
1258
1257
|
* The behavior of the Button.
|
|
@@ -2281,6 +2280,45 @@ export interface BaseTypographyProps {
|
|
|
2281
2280
|
*/
|
|
2282
2281
|
dir?: 'ltr' | 'rtl' | 'auto' | '';
|
|
2283
2282
|
}
|
|
2283
|
+
export interface BlockTypographyProps {
|
|
2284
|
+
/**
|
|
2285
|
+
* Truncates the text content to the specified number of lines.
|
|
2286
|
+
*
|
|
2287
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-line-clamp
|
|
2288
|
+
*
|
|
2289
|
+
* @default Infinity - no truncation is applied
|
|
2290
|
+
*/
|
|
2291
|
+
lineClamp?: number;
|
|
2292
|
+
}
|
|
2293
|
+
export interface HeadingProps
|
|
2294
|
+
extends GlobalProps,
|
|
2295
|
+
AccessibilityVisibilityProps,
|
|
2296
|
+
BlockTypographyProps {
|
|
2297
|
+
/**
|
|
2298
|
+
* The content of the Heading.
|
|
2299
|
+
*/
|
|
2300
|
+
children?: ComponentChildren;
|
|
2301
|
+
/**
|
|
2302
|
+
* Sets the semantic meaning of the component’s content. When set,
|
|
2303
|
+
* the role will be used by assistive technologies to help users
|
|
2304
|
+
* navigate the page.
|
|
2305
|
+
*
|
|
2306
|
+
* - `heading`: defines the element as a heading to a page or section.
|
|
2307
|
+
* - `presentation`: the heading level will be stripped,
|
|
2308
|
+
* and will prevent the element’s implicit ARIA semantics from
|
|
2309
|
+
* being exposed to the accessibility tree.
|
|
2310
|
+
* - `none`: a synonym for the `presentation` role.
|
|
2311
|
+
*
|
|
2312
|
+
* @default 'heading'
|
|
2313
|
+
*
|
|
2314
|
+
* @implementation The `heading` role doesn't need to be applied if
|
|
2315
|
+
* the host applies it for you; for example, an HTML host rendering
|
|
2316
|
+
* an `<h2>` element should not apply the `heading` role.
|
|
2317
|
+
*/
|
|
2318
|
+
accessibilityRole?:
|
|
2319
|
+
| 'heading'
|
|
2320
|
+
| ExtractStrict<AccessibilityRole, 'presentation' | 'none'>;
|
|
2321
|
+
}
|
|
2284
2322
|
export interface IconProps
|
|
2285
2323
|
extends GlobalProps,
|
|
2286
2324
|
Pick<InteractionProps, 'interestFor'> {
|
|
@@ -2521,6 +2559,69 @@ export interface PageProps extends GlobalProps, ActionSlots {
|
|
|
2521
2559
|
*/
|
|
2522
2560
|
inlineSize?: SizeKeyword;
|
|
2523
2561
|
}
|
|
2562
|
+
export interface POSBlockProps
|
|
2563
|
+
extends GlobalProps,
|
|
2564
|
+
Pick<ActionSlots, 'secondaryActions'> {
|
|
2565
|
+
/**
|
|
2566
|
+
* The heading to display within the POSBlock.
|
|
2567
|
+
*
|
|
2568
|
+
* If not provided, the description of the extension will be used when a heading is appropriate.
|
|
2569
|
+
*/
|
|
2570
|
+
heading?: string;
|
|
2571
|
+
/**
|
|
2572
|
+
* The content to display within the POSBlock.
|
|
2573
|
+
*/
|
|
2574
|
+
children?: ComponentChildren;
|
|
2575
|
+
/**
|
|
2576
|
+
* The secondary actions to perform, provided as button or link type elements.
|
|
2577
|
+
*/
|
|
2578
|
+
secondaryActions?: ComponentChildren;
|
|
2579
|
+
}
|
|
2580
|
+
export interface QRCodeProps extends GlobalProps {
|
|
2581
|
+
/**
|
|
2582
|
+
* Set the border of the QR code.
|
|
2583
|
+
*
|
|
2584
|
+
* `base`: applies border that is appropriate for the element.
|
|
2585
|
+
* `none`: removes the border from the element.
|
|
2586
|
+
*
|
|
2587
|
+
* @default 'base'
|
|
2588
|
+
*/
|
|
2589
|
+
border?: 'base' | 'none';
|
|
2590
|
+
/**
|
|
2591
|
+
* The content to be encoded in the QR code, which can be any string such as a URL, email address, plain text, etc.
|
|
2592
|
+
* Specific string formatting can trigger actions on the user's device when scanned, like opening geolocation
|
|
2593
|
+
* coordinates on a map, opening a preferred app or app store entry, preparing an email, text message, and more.
|
|
2594
|
+
*/
|
|
2595
|
+
content?: string;
|
|
2596
|
+
/**
|
|
2597
|
+
* The displayed size of the QR code.
|
|
2598
|
+
*
|
|
2599
|
+
* `fill`: the QR code will takes up 100% of the available inline-size and maintain a 1:1 aspect ratio.
|
|
2600
|
+
* `base`: the QR code will be displayed at its default size.
|
|
2601
|
+
*
|
|
2602
|
+
* @default 'base'
|
|
2603
|
+
*/
|
|
2604
|
+
size?: 'base' | 'fill';
|
|
2605
|
+
/**
|
|
2606
|
+
* A label that describes the purpose or contents of the QR code. When set,
|
|
2607
|
+
* it will be announced to users using assistive technologies and will
|
|
2608
|
+
* provide more context about what the QR code may do when scanned.
|
|
2609
|
+
*
|
|
2610
|
+
* @default 'QR code' (translated to the user's locale)
|
|
2611
|
+
*/
|
|
2612
|
+
accessibilityLabel?: string;
|
|
2613
|
+
/**
|
|
2614
|
+
* Invoked when the conversion of `content` to a QR code fails.
|
|
2615
|
+
* If an error occurs, the QR code and its child elements will not be displayed.
|
|
2616
|
+
*/
|
|
2617
|
+
onError?: (event: Event) => void;
|
|
2618
|
+
/**
|
|
2619
|
+
* URL of an image to be displayed in the center of the QR code.
|
|
2620
|
+
* This is useful for branding or to indicate to the user what scanning the QR code will do.
|
|
2621
|
+
* By default, no image is displayed.
|
|
2622
|
+
*/
|
|
2623
|
+
logo?: string;
|
|
2624
|
+
}
|
|
2524
2625
|
export interface ScrollEventProps {
|
|
2525
2626
|
/**
|
|
2526
2627
|
* Callback when the scroll position reaches any edge.
|