@shopify/ui-extensions 2025.10.0-rc.46 → 2025.10.0-rc.48
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/admin/components/Chip.d.ts +1 -5
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +1 -5
- package/build/ts/surfaces/admin/components/ColorPicker.d.ts +1 -5
- package/build/ts/surfaces/admin/components/DateField.d.ts +1 -5
- package/build/ts/surfaces/admin/components/Menu.d.ts +1 -5
- package/build/ts/surfaces/admin/components/Modal.d.ts +1 -5
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +1 -5
- package/build/ts/surfaces/admin/components/shared.d.ts +30 -6
- 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/PosBlock.doc.d.ts.map +1 -1
- 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/admin/components/Chip.d.ts +1 -5
- package/src/surfaces/admin/components/ClickableChip.d.ts +1 -5
- package/src/surfaces/admin/components/ColorPicker.d.ts +1 -5
- package/src/surfaces/admin/components/DateField.d.ts +1 -5
- package/src/surfaces/admin/components/Menu.d.ts +1 -5
- package/src/surfaces/admin/components/Modal.d.ts +1 -5
- package/src/surfaces/admin/components/QueryContainer.d.ts +1 -5
- package/src/surfaces/admin/components/shared.d.ts +30 -6
- package/src/surfaces/admin/components.d.ts +64 -152
- 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
|
@@ -169,7 +169,7 @@ export interface ExtendableEvent extends Event {
|
|
|
169
169
|
interface AggregateError$1<T extends Error> extends Error {
|
|
170
170
|
errors: T[];
|
|
171
171
|
}
|
|
172
|
-
export interface
|
|
172
|
+
export interface AggregateErrorEvent<T extends Error> extends ErrorEvent {
|
|
173
173
|
error: AggregateError$1<T>;
|
|
174
174
|
}
|
|
175
175
|
export type SizeKeyword =
|
|
@@ -361,6 +361,7 @@ declare const privateIconArray: readonly [
|
|
|
361
361
|
'clipboard-check',
|
|
362
362
|
'clipboard-checklist',
|
|
363
363
|
'clock',
|
|
364
|
+
'clock-list',
|
|
364
365
|
'clock-revert',
|
|
365
366
|
'code',
|
|
366
367
|
'code-add',
|
|
@@ -578,6 +579,7 @@ declare const privateIconArray: readonly [
|
|
|
578
579
|
'note',
|
|
579
580
|
'note-add',
|
|
580
581
|
'notification',
|
|
582
|
+
'number-one',
|
|
581
583
|
'order',
|
|
582
584
|
'order-batches',
|
|
583
585
|
'order-draft',
|
|
@@ -664,6 +666,7 @@ declare const privateIconArray: readonly [
|
|
|
664
666
|
'profile-filled',
|
|
665
667
|
'question-circle',
|
|
666
668
|
'question-circle-filled',
|
|
669
|
+
'radio-control',
|
|
667
670
|
'receipt',
|
|
668
671
|
'receipt-dollar',
|
|
669
672
|
'receipt-euro',
|
|
@@ -718,6 +721,7 @@ declare const privateIconArray: readonly [
|
|
|
718
721
|
'sort-ascending',
|
|
719
722
|
'sort-descending',
|
|
720
723
|
'sound',
|
|
724
|
+
'split',
|
|
721
725
|
'sports',
|
|
722
726
|
'star',
|
|
723
727
|
'star-circle',
|
|
@@ -784,6 +788,9 @@ declare const privateIconArray: readonly [
|
|
|
784
788
|
'unlock',
|
|
785
789
|
'upload',
|
|
786
790
|
'variant',
|
|
791
|
+
'variant-list',
|
|
792
|
+
'video',
|
|
793
|
+
'video-list',
|
|
787
794
|
'view',
|
|
788
795
|
'viewport-narrow',
|
|
789
796
|
'viewport-short',
|
|
@@ -2100,7 +2107,7 @@ interface ColorPickerProps$1 extends GlobalProps, InputProps {
|
|
|
2100
2107
|
* For RGB and RGBA, both the legacy syntax (comma-separated) and modern syntax (space-separate) are supported.
|
|
2101
2108
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb
|
|
2102
2109
|
*
|
|
2103
|
-
* If the value is invalid, the component will
|
|
2110
|
+
* If the value is invalid, the component will return an empty string ''.
|
|
2104
2111
|
*
|
|
2105
2112
|
* Note that the `onChange` handler will emit the value in hex.
|
|
2106
2113
|
*/
|
|
@@ -2407,12 +2414,19 @@ interface DatePickerProps$1 extends GlobalProps, InputProps, FocusEventProps {
|
|
|
2407
2414
|
*/
|
|
2408
2415
|
value?: string;
|
|
2409
2416
|
/**
|
|
2410
|
-
* Callback when any date is selected.
|
|
2417
|
+
* Callback when any date is selected.
|
|
2418
|
+
*
|
|
2419
|
+
* - If `type="single"`, fires when a date is selected and happens before `onChange`.
|
|
2420
|
+
* - If `type="multiple"`, fires when a date is selected before `onChange`.
|
|
2421
|
+
* - If `type="range"`, fires when a first date is selected (with the partial value formatted as `YYYY-MM-DD--`), and when the last date is selected before `onChange`.
|
|
2411
2422
|
*/
|
|
2412
2423
|
onInput?: (event: Event) => void;
|
|
2413
2424
|
/**
|
|
2414
|
-
* Callback when the
|
|
2415
|
-
*
|
|
2425
|
+
* Callback when the value is committed.
|
|
2426
|
+
*
|
|
2427
|
+
* - If `type="single"`, fires when a date is selected after `onInput`.
|
|
2428
|
+
* - If `type="multiple"`, fires when a date is selected after `onInput`.
|
|
2429
|
+
* - If `type="range"`, fires when a range is completed by selecting the end date after `onInput`.
|
|
2416
2430
|
*/
|
|
2417
2431
|
onChange?: (event: Event) => void;
|
|
2418
2432
|
}
|
|
@@ -2432,6 +2446,16 @@ interface DateFieldProps$1
|
|
|
2432
2446
|
| 'onViewChange'
|
|
2433
2447
|
>,
|
|
2434
2448
|
AutocompleteProps<DateAutocompleteField> {
|
|
2449
|
+
/**
|
|
2450
|
+
* Callback when the user makes any changes in the field.
|
|
2451
|
+
* Also triggered when a date is selected using the date picker popup before `onChange`.
|
|
2452
|
+
*/
|
|
2453
|
+
onInput?: (event: Event) => void;
|
|
2454
|
+
/**
|
|
2455
|
+
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
2456
|
+
* Also triggered when a date is selected using the date picker popup after `onInput`.
|
|
2457
|
+
*/
|
|
2458
|
+
onChange?: (event: Event) => void;
|
|
2435
2459
|
/**
|
|
2436
2460
|
* Callback when the field has an invalid date.
|
|
2437
2461
|
* This callback will be called, if the date typed is invalid or disabled.
|
|
@@ -2562,7 +2586,7 @@ interface FunctionSettingsProps$1 extends GlobalProps, FormProps$1 {
|
|
|
2562
2586
|
* highlight the fields that caused the errors, and display the error messages
|
|
2563
2587
|
* to the user.
|
|
2564
2588
|
*/
|
|
2565
|
-
onError?: (event:
|
|
2589
|
+
onError?: (event: AggregateErrorEvent<FunctionSettingsError>) => void;
|
|
2566
2590
|
}
|
|
2567
2591
|
export interface FunctionSettingsError extends Error {
|
|
2568
2592
|
/**
|
|
@@ -5081,11 +5105,7 @@ declare global {
|
|
|
5081
5105
|
declare module 'preact' {
|
|
5082
5106
|
namespace createElement.JSX {
|
|
5083
5107
|
interface IntrinsicElements {
|
|
5084
|
-
[tagName$S]: Omit<
|
|
5085
|
-
HTMLAttributes<HTMLElement>,
|
|
5086
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
5087
|
-
> &
|
|
5088
|
-
Omit<ChipJSXProps, 'graphic'> &
|
|
5108
|
+
[tagName$S]: Omit<ChipJSXProps, 'graphic'> &
|
|
5089
5109
|
PreactBaseElementPropsWithChildren<Chip>;
|
|
5090
5110
|
}
|
|
5091
5111
|
}
|
|
@@ -5321,11 +5341,7 @@ declare global {
|
|
|
5321
5341
|
declare module 'preact' {
|
|
5322
5342
|
namespace createElement.JSX {
|
|
5323
5343
|
interface IntrinsicElements {
|
|
5324
|
-
[tagName$O]: Omit<
|
|
5325
|
-
HTMLAttributes<HTMLElement>,
|
|
5326
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
5327
|
-
> &
|
|
5328
|
-
Omit<ClickableChipJSXProps, 'graphic'> &
|
|
5344
|
+
[tagName$O]: Omit<ClickableChipJSXProps, 'graphic'> &
|
|
5329
5345
|
PreactBaseElementPropsWithChildren<ClickableChip>;
|
|
5330
5346
|
}
|
|
5331
5347
|
}
|
|
@@ -5496,11 +5512,7 @@ declare global {
|
|
|
5496
5512
|
declare module 'preact' {
|
|
5497
5513
|
namespace createElement.JSX {
|
|
5498
5514
|
interface IntrinsicElements {
|
|
5499
|
-
[tagName$M]:
|
|
5500
|
-
HTMLAttributes<HTMLElement>,
|
|
5501
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
5502
|
-
> &
|
|
5503
|
-
ColorPickerJSXProps;
|
|
5515
|
+
[tagName$M]: ColorPickerJSXProps;
|
|
5504
5516
|
}
|
|
5505
5517
|
}
|
|
5506
5518
|
}
|
|
@@ -5553,11 +5565,7 @@ declare global {
|
|
|
5553
5565
|
declare module 'preact' {
|
|
5554
5566
|
namespace createElement.JSX {
|
|
5555
5567
|
interface IntrinsicElements {
|
|
5556
|
-
[tagName$L]:
|
|
5557
|
-
HTMLAttributes<HTMLElement>,
|
|
5558
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
5559
|
-
> &
|
|
5560
|
-
DateFieldJSXProps;
|
|
5568
|
+
[tagName$L]: DateFieldJSXProps;
|
|
5561
5569
|
}
|
|
5562
5570
|
}
|
|
5563
5571
|
}
|
|
@@ -5690,6 +5698,8 @@ export interface DropZoneProps
|
|
|
5690
5698
|
>
|
|
5691
5699
|
> {}
|
|
5692
5700
|
|
|
5701
|
+
export type ReplaceType<TType, TFrom, TTo> = Exclude<TType, TFrom> | TTo;
|
|
5702
|
+
|
|
5693
5703
|
declare const setFiles: unique symbol;
|
|
5694
5704
|
|
|
5695
5705
|
declare const internals: unique symbol;
|
|
@@ -5711,13 +5721,19 @@ declare class DropZone extends BaseClass implements DropZoneProps {
|
|
|
5711
5721
|
accessor name: DropZoneProps['name'];
|
|
5712
5722
|
accessor required: DropZoneProps['required'];
|
|
5713
5723
|
get value(): string;
|
|
5714
|
-
|
|
5724
|
+
/** This sets the input value for a file type, which cannot be set programatically, so it can only be reset. */
|
|
5725
|
+
set value(value: '' | null);
|
|
5715
5726
|
get files(): File[];
|
|
5716
5727
|
set files(files: File[]);
|
|
5717
5728
|
/** @private */
|
|
5718
5729
|
[setFiles](files: File[]): void;
|
|
5719
5730
|
/** @private */
|
|
5720
|
-
[getFileInput]():
|
|
5731
|
+
[getFileInput](): ReplaceType<
|
|
5732
|
+
Element | null | undefined,
|
|
5733
|
+
Element,
|
|
5734
|
+
HTMLInputElement
|
|
5735
|
+
>;
|
|
5736
|
+
|
|
5721
5737
|
/** @private */
|
|
5722
5738
|
formResetCallback(): void;
|
|
5723
5739
|
constructor();
|
|
@@ -5730,11 +5746,7 @@ declare global {
|
|
|
5730
5746
|
declare module 'preact' {
|
|
5731
5747
|
namespace createElement.JSX {
|
|
5732
5748
|
interface IntrinsicElements {
|
|
5733
|
-
[tagName$I]:
|
|
5734
|
-
HTMLAttributes<HTMLElement>,
|
|
5735
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
5736
|
-
> &
|
|
5737
|
-
DropZoneJSXProps;
|
|
5749
|
+
[tagName$I]: DropZoneJSXProps;
|
|
5738
5750
|
}
|
|
5739
5751
|
}
|
|
5740
5752
|
}
|
|
@@ -6241,11 +6253,7 @@ declare global {
|
|
|
6241
6253
|
declare module 'preact' {
|
|
6242
6254
|
namespace createElement.JSX {
|
|
6243
6255
|
interface IntrinsicElements {
|
|
6244
|
-
[tagName$z]:
|
|
6245
|
-
HTMLAttributes<HTMLElement>,
|
|
6246
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
6247
|
-
> &
|
|
6248
|
-
MenuJSXProps;
|
|
6256
|
+
[tagName$z]: MenuJSXProps;
|
|
6249
6257
|
}
|
|
6250
6258
|
}
|
|
6251
6259
|
}
|
|
@@ -6345,11 +6353,7 @@ declare global {
|
|
|
6345
6353
|
declare module 'preact' {
|
|
6346
6354
|
namespace createElement.JSX {
|
|
6347
6355
|
interface IntrinsicElements {
|
|
6348
|
-
[tagName$y]: Omit<
|
|
6349
|
-
HTMLAttributes<HTMLElement>,
|
|
6350
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
6351
|
-
> &
|
|
6352
|
-
Omit<ModalJSXProps, 'primaryAction' | 'secondaryActions'>;
|
|
6356
|
+
[tagName$y]: Omit<ModalJSXProps, 'primaryAction' | 'secondaryActions'>;
|
|
6353
6357
|
}
|
|
6354
6358
|
}
|
|
6355
6359
|
}
|
|
@@ -6818,11 +6822,7 @@ declare global {
|
|
|
6818
6822
|
declare module 'preact' {
|
|
6819
6823
|
namespace createElement.JSX {
|
|
6820
6824
|
interface IntrinsicElements {
|
|
6821
|
-
[tagName$o]:
|
|
6822
|
-
HTMLAttributes<HTMLElement>,
|
|
6823
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
6824
|
-
> &
|
|
6825
|
-
QueryContainerJSXProps;
|
|
6825
|
+
[tagName$o]: QueryContainerJSXProps;
|
|
6826
6826
|
}
|
|
6827
6827
|
}
|
|
6828
6828
|
}
|
|
@@ -8699,11 +8699,7 @@ declare global {
|
|
|
8699
8699
|
declare module 'react' {
|
|
8700
8700
|
namespace JSX {
|
|
8701
8701
|
interface IntrinsicElements {
|
|
8702
|
-
[tagName$S]: Omit<
|
|
8703
|
-
HTMLAttributes<HTMLElement>,
|
|
8704
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
8705
|
-
> &
|
|
8706
|
-
Omit<ChipJSXProps, 'graphic'> &
|
|
8702
|
+
[tagName$S]: Omit<ChipJSXProps, 'graphic'> &
|
|
8707
8703
|
ReactBaseElementPropsWithChildren<Chip>;
|
|
8708
8704
|
}
|
|
8709
8705
|
}
|
|
@@ -8711,14 +8707,7 @@ declare module 'react' {
|
|
|
8711
8707
|
declare global {
|
|
8712
8708
|
namespace JSX {
|
|
8713
8709
|
interface IntrinsicElements {
|
|
8714
|
-
[tagName$S]: Omit<
|
|
8715
|
-
React.HTMLAttributes<HTMLElement>,
|
|
8716
|
-
Extract<
|
|
8717
|
-
keyof React.HTMLAttributes<HTMLElement>,
|
|
8718
|
-
`on${Capitalize<string>}`
|
|
8719
|
-
>
|
|
8720
|
-
> &
|
|
8721
|
-
Omit<ChipJSXProps, 'graphic'> &
|
|
8710
|
+
[tagName$S]: Omit<ChipJSXProps, 'graphic'> &
|
|
8722
8711
|
ReactBaseElementPropsWithChildren<Chip>;
|
|
8723
8712
|
}
|
|
8724
8713
|
}
|
|
@@ -8774,11 +8763,7 @@ declare global {
|
|
|
8774
8763
|
declare module 'react' {
|
|
8775
8764
|
namespace JSX {
|
|
8776
8765
|
interface IntrinsicElements {
|
|
8777
|
-
[tagName$O]: Omit<
|
|
8778
|
-
HTMLAttributes<HTMLElement>,
|
|
8779
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
8780
|
-
> &
|
|
8781
|
-
Omit<ClickableChipJSXProps, 'graphic'> &
|
|
8766
|
+
[tagName$O]: Omit<ClickableChipJSXProps, 'graphic'> &
|
|
8782
8767
|
ReactBaseElementPropsWithChildren<ClickableChip>;
|
|
8783
8768
|
}
|
|
8784
8769
|
}
|
|
@@ -8786,14 +8771,7 @@ declare module 'react' {
|
|
|
8786
8771
|
declare global {
|
|
8787
8772
|
namespace JSX {
|
|
8788
8773
|
interface IntrinsicElements {
|
|
8789
|
-
[tagName$O]: Omit<
|
|
8790
|
-
React.HTMLAttributes<HTMLElement>,
|
|
8791
|
-
Extract<
|
|
8792
|
-
keyof React.HTMLAttributes<HTMLElement>,
|
|
8793
|
-
`on${Capitalize<string>}`
|
|
8794
|
-
>
|
|
8795
|
-
> &
|
|
8796
|
-
Omit<ClickableChipJSXProps, 'graphic'> &
|
|
8774
|
+
[tagName$O]: Omit<ClickableChipJSXProps, 'graphic'> &
|
|
8797
8775
|
ReactBaseElementPropsWithChildren<ClickableChip>;
|
|
8798
8776
|
}
|
|
8799
8777
|
}
|
|
@@ -8815,50 +8793,28 @@ declare global {
|
|
|
8815
8793
|
declare module 'react' {
|
|
8816
8794
|
namespace JSX {
|
|
8817
8795
|
interface IntrinsicElements {
|
|
8818
|
-
[tagName$M]:
|
|
8819
|
-
HTMLAttributes<HTMLElement>,
|
|
8820
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
8821
|
-
> &
|
|
8822
|
-
ColorPickerJSXProps;
|
|
8796
|
+
[tagName$M]: ColorPickerJSXProps;
|
|
8823
8797
|
}
|
|
8824
8798
|
}
|
|
8825
8799
|
}
|
|
8826
8800
|
declare global {
|
|
8827
8801
|
namespace JSX {
|
|
8828
8802
|
interface IntrinsicElements {
|
|
8829
|
-
[tagName$M]:
|
|
8830
|
-
React.HTMLAttributes<HTMLElement>,
|
|
8831
|
-
Extract<
|
|
8832
|
-
keyof React.HTMLAttributes<HTMLElement>,
|
|
8833
|
-
`on${Capitalize<string>}`
|
|
8834
|
-
>
|
|
8835
|
-
> &
|
|
8836
|
-
ColorPickerJSXProps;
|
|
8803
|
+
[tagName$M]: ColorPickerJSXProps;
|
|
8837
8804
|
}
|
|
8838
8805
|
}
|
|
8839
8806
|
}
|
|
8840
8807
|
declare module 'react' {
|
|
8841
8808
|
namespace JSX {
|
|
8842
8809
|
interface IntrinsicElements {
|
|
8843
|
-
[tagName$L]:
|
|
8844
|
-
HTMLAttributes<HTMLElement>,
|
|
8845
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
8846
|
-
> &
|
|
8847
|
-
DateFieldJSXProps;
|
|
8810
|
+
[tagName$L]: DateFieldJSXProps;
|
|
8848
8811
|
}
|
|
8849
8812
|
}
|
|
8850
8813
|
}
|
|
8851
8814
|
declare global {
|
|
8852
8815
|
namespace JSX {
|
|
8853
8816
|
interface IntrinsicElements {
|
|
8854
|
-
[tagName$L]:
|
|
8855
|
-
React.HTMLAttributes<HTMLElement>,
|
|
8856
|
-
Extract<
|
|
8857
|
-
keyof React.HTMLAttributes<HTMLElement>,
|
|
8858
|
-
`on${Capitalize<string>}`
|
|
8859
|
-
>
|
|
8860
|
-
> &
|
|
8861
|
-
DateFieldJSXProps;
|
|
8817
|
+
[tagName$L]: DateFieldJSXProps;
|
|
8862
8818
|
}
|
|
8863
8819
|
}
|
|
8864
8820
|
}
|
|
@@ -8893,25 +8849,14 @@ declare global {
|
|
|
8893
8849
|
declare module 'react' {
|
|
8894
8850
|
namespace JSX {
|
|
8895
8851
|
interface IntrinsicElements {
|
|
8896
|
-
[tagName$I]:
|
|
8897
|
-
HTMLAttributes<HTMLElement>,
|
|
8898
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
8899
|
-
> &
|
|
8900
|
-
DropZoneJSXProps;
|
|
8852
|
+
[tagName$I]: DropZoneJSXProps;
|
|
8901
8853
|
}
|
|
8902
8854
|
}
|
|
8903
8855
|
}
|
|
8904
8856
|
declare global {
|
|
8905
8857
|
namespace JSX {
|
|
8906
8858
|
interface IntrinsicElements {
|
|
8907
|
-
[tagName$I]:
|
|
8908
|
-
React.HTMLAttributes<HTMLElement>,
|
|
8909
|
-
Extract<
|
|
8910
|
-
keyof React.HTMLAttributes<HTMLElement>,
|
|
8911
|
-
`on${Capitalize<string>}`
|
|
8912
|
-
>
|
|
8913
|
-
> &
|
|
8914
|
-
DropZoneJSXProps;
|
|
8859
|
+
[tagName$I]: DropZoneJSXProps;
|
|
8915
8860
|
}
|
|
8916
8861
|
}
|
|
8917
8862
|
}
|
|
@@ -9034,50 +8979,28 @@ declare global {
|
|
|
9034
8979
|
declare module 'react' {
|
|
9035
8980
|
namespace JSX {
|
|
9036
8981
|
interface IntrinsicElements {
|
|
9037
|
-
[tagName$z]:
|
|
9038
|
-
HTMLAttributes<HTMLElement>,
|
|
9039
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
9040
|
-
> &
|
|
9041
|
-
MenuJSXProps;
|
|
8982
|
+
[tagName$z]: MenuJSXProps;
|
|
9042
8983
|
}
|
|
9043
8984
|
}
|
|
9044
8985
|
}
|
|
9045
8986
|
declare global {
|
|
9046
8987
|
namespace JSX {
|
|
9047
8988
|
interface IntrinsicElements {
|
|
9048
|
-
[tagName$z]:
|
|
9049
|
-
React.HTMLAttributes<HTMLElement>,
|
|
9050
|
-
Extract<
|
|
9051
|
-
keyof React.HTMLAttributes<HTMLElement>,
|
|
9052
|
-
`on${Capitalize<string>}`
|
|
9053
|
-
>
|
|
9054
|
-
> &
|
|
9055
|
-
MenuJSXProps;
|
|
8989
|
+
[tagName$z]: MenuJSXProps;
|
|
9056
8990
|
}
|
|
9057
8991
|
}
|
|
9058
8992
|
}
|
|
9059
8993
|
declare module 'react' {
|
|
9060
8994
|
namespace JSX {
|
|
9061
8995
|
interface IntrinsicElements {
|
|
9062
|
-
[tagName$y]: Omit<
|
|
9063
|
-
HTMLAttributes<HTMLElement>,
|
|
9064
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
9065
|
-
> &
|
|
9066
|
-
Omit<ModalJSXProps, 'primaryAction' | 'secondaryActions'>;
|
|
8996
|
+
[tagName$y]: Omit<ModalJSXProps, 'primaryAction' | 'secondaryActions'>;
|
|
9067
8997
|
}
|
|
9068
8998
|
}
|
|
9069
8999
|
}
|
|
9070
9000
|
declare global {
|
|
9071
9001
|
namespace JSX {
|
|
9072
9002
|
interface IntrinsicElements {
|
|
9073
|
-
[tagName$y]: Omit<
|
|
9074
|
-
React.HTMLAttributes<HTMLElement>,
|
|
9075
|
-
Extract<
|
|
9076
|
-
keyof React.HTMLAttributes<HTMLElement>,
|
|
9077
|
-
`on${Capitalize<string>}`
|
|
9078
|
-
>
|
|
9079
|
-
> &
|
|
9080
|
-
Omit<ModalJSXProps, 'primaryAction' | 'secondaryActions'>;
|
|
9003
|
+
[tagName$y]: Omit<ModalJSXProps, 'primaryAction' | 'secondaryActions'>;
|
|
9081
9004
|
}
|
|
9082
9005
|
}
|
|
9083
9006
|
}
|
|
@@ -9224,25 +9147,14 @@ declare global {
|
|
|
9224
9147
|
declare module 'react' {
|
|
9225
9148
|
namespace JSX {
|
|
9226
9149
|
interface IntrinsicElements {
|
|
9227
|
-
[tagName$o]:
|
|
9228
|
-
HTMLAttributes<HTMLElement>,
|
|
9229
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
9230
|
-
> &
|
|
9231
|
-
QueryContainerJSXProps;
|
|
9150
|
+
[tagName$o]: QueryContainerJSXProps;
|
|
9232
9151
|
}
|
|
9233
9152
|
}
|
|
9234
9153
|
}
|
|
9235
9154
|
declare global {
|
|
9236
9155
|
namespace JSX {
|
|
9237
9156
|
interface IntrinsicElements {
|
|
9238
|
-
[tagName$o]:
|
|
9239
|
-
React.HTMLAttributes<HTMLElement>,
|
|
9240
|
-
Extract<
|
|
9241
|
-
keyof React.HTMLAttributes<HTMLElement>,
|
|
9242
|
-
`on${Capitalize<string>}`
|
|
9243
|
-
>
|
|
9244
|
-
> &
|
|
9245
|
-
QueryContainerJSXProps;
|
|
9157
|
+
[tagName$o]: QueryContainerJSXProps;
|
|
9246
9158
|
}
|
|
9247
9159
|
}
|
|
9248
9160
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/** VERSION: 0.0.0 **/
|
|
2
|
+
/* eslint-disable import-x/extensions */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
|
+
/* eslint-disable line-comment-position */
|
|
6
|
+
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
|
+
/* eslint-disable no-var */
|
|
8
|
+
/* eslint-disable import-x/namespace */
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
|
+
/// <reference lib="DOM" />
|
|
11
|
+
import type {ConsentCheckboxProps$1,CheckboxProps$1} from './components-shared.d.ts';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Used when an element does not have children.
|
|
15
|
+
*/
|
|
16
|
+
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
+
key?: preact.Key;
|
|
18
|
+
ref?: preact.Ref<TClass>;
|
|
19
|
+
slot?: Lowercase<string>;
|
|
20
|
+
}
|
|
21
|
+
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
22
|
+
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
23
|
+
};
|
|
24
|
+
export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = (EventListener & {
|
|
25
|
+
(event: CallbackEvent<TTagName, TEvent>): void;
|
|
26
|
+
}) | null;
|
|
27
|
+
|
|
28
|
+
declare const tagName$1 = "s-checkbox";
|
|
29
|
+
export interface CheckboxElementProps extends Pick<CheckboxProps$1, 'accessibilityLabel' | 'checked' | 'command' | 'commandFor' | 'defaultChecked' | 'disabled' | 'error' | 'id' | 'label' | 'name' | 'required' | 'value'> {
|
|
30
|
+
command?: Extract<CheckboxProps$1['command'], '--auto' | '--show' | '--hide' | '--toggle'>;
|
|
31
|
+
}
|
|
32
|
+
export interface CheckboxEvents extends Pick<CheckboxProps$1, 'onChange'> {
|
|
33
|
+
}
|
|
34
|
+
export interface CheckboxElement extends CheckboxElementProps, Omit<HTMLElement, 'id' | 'onchange'> {
|
|
35
|
+
onchange: CheckboxEvents['onChange'];
|
|
36
|
+
}
|
|
37
|
+
export interface CheckboxProps extends CheckboxElementProps, CheckboxEvents {
|
|
38
|
+
}
|
|
39
|
+
declare global {
|
|
40
|
+
interface HTMLElementTagNameMap {
|
|
41
|
+
[tagName$1]: CheckboxElement;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
declare module 'preact' {
|
|
45
|
+
namespace createElement.JSX {
|
|
46
|
+
interface IntrinsicElements {
|
|
47
|
+
[tagName$1]: CheckboxProps & BaseElementProps<CheckboxElement>;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare const tagName = "s-consent-checkbox";
|
|
53
|
+
export interface ConsentCheckboxElementProps extends Pick<ConsentCheckboxProps$1, 'accessibilityLabel' | 'checked' | 'command' | 'commandFor' | 'defaultChecked' | 'disabled' | 'error' | 'id' | 'label' | 'name' | 'policy' | 'value'> {
|
|
54
|
+
command?: Extract<ConsentCheckboxProps$1['command'], '--auto' | '--show' | '--hide' | '--toggle'>;
|
|
55
|
+
}
|
|
56
|
+
export interface ConsentCheckboxEvents extends Pick<CheckboxEvents, 'onChange'> {
|
|
57
|
+
}
|
|
58
|
+
export interface ConsentCheckboxElementEvents {
|
|
59
|
+
/**
|
|
60
|
+
* A callback that is run whenever the control is changed.
|
|
61
|
+
*
|
|
62
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
|
|
63
|
+
*/
|
|
64
|
+
change?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
65
|
+
}
|
|
66
|
+
export interface ConsentCheckboxElement extends ConsentCheckboxElementProps, Omit<HTMLElement, 'id' | 'onchange'> {
|
|
67
|
+
onchange: ConsentCheckboxEvents['onChange'];
|
|
68
|
+
}
|
|
69
|
+
export interface ConsentCheckboxProps extends ConsentCheckboxElementProps, ConsentCheckboxEvents {
|
|
70
|
+
}
|
|
71
|
+
declare global {
|
|
72
|
+
interface HTMLElementTagNameMap {
|
|
73
|
+
[tagName]: ConsentCheckboxElement;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
declare module 'preact' {
|
|
77
|
+
namespace createElement.JSX {
|
|
78
|
+
interface IntrinsicElements {
|
|
79
|
+
[tagName]: ConsentCheckboxProps & BaseElementProps<ConsentCheckboxElement>;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type { ConsentCheckboxElement, ConsentCheckboxElementEvents, ConsentCheckboxElementProps, ConsentCheckboxEvents, ConsentCheckboxProps };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/** VERSION: 0.0.0 **/
|
|
2
|
+
/* eslint-disable import-x/extensions */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
|
+
/* eslint-disable line-comment-position */
|
|
6
|
+
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
|
+
/* eslint-disable no-var */
|
|
8
|
+
/* eslint-disable import-x/namespace */
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
|
+
/// <reference lib="DOM" />
|
|
11
|
+
import type {PhoneFieldProps$1, ConsentPhoneFieldProps$1} from './components-shared.d.ts';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Used when an element does not have children.
|
|
15
|
+
*/
|
|
16
|
+
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
+
key?: preact.Key;
|
|
18
|
+
ref?: preact.Ref<TClass>;
|
|
19
|
+
slot?: Lowercase<string>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Used when an element has children.
|
|
23
|
+
*/
|
|
24
|
+
export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
25
|
+
children?: preact.ComponentChildren;
|
|
26
|
+
}
|
|
27
|
+
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
28
|
+
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
29
|
+
};
|
|
30
|
+
export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = (EventListener & {
|
|
31
|
+
(event: CallbackEvent<TTagName, TEvent>): void;
|
|
32
|
+
}) | null;
|
|
33
|
+
|
|
34
|
+
declare const tagName$1 = "s-phone-field";
|
|
35
|
+
export interface PhoneFieldElementProps extends Pick<PhoneFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'name' | 'readOnly' | 'required' | 'value' | 'type'> {
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated Use `label` instead.
|
|
38
|
+
* @private
|
|
39
|
+
*/
|
|
40
|
+
placeholder?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface PhoneFieldEvents extends Pick<PhoneFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
43
|
+
}
|
|
44
|
+
export interface PhoneFieldElement extends PhoneFieldElementProps, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
45
|
+
onblur: PhoneFieldEvents['onBlur'];
|
|
46
|
+
onchange: PhoneFieldEvents['onChange'];
|
|
47
|
+
onfocus: PhoneFieldEvents['onFocus'];
|
|
48
|
+
oninput: PhoneFieldEvents['onInput'];
|
|
49
|
+
}
|
|
50
|
+
export interface PhoneFieldProps extends PhoneFieldElementProps, PhoneFieldEvents {
|
|
51
|
+
}
|
|
52
|
+
declare global {
|
|
53
|
+
interface HTMLElementTagNameMap {
|
|
54
|
+
[tagName$1]: PhoneFieldElement;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
declare module 'preact' {
|
|
58
|
+
namespace createElement.JSX {
|
|
59
|
+
interface IntrinsicElements {
|
|
60
|
+
[tagName$1]: PhoneFieldProps & BaseElementPropsWithChildren<PhoneFieldElement>;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare const tagName = "s-consent-phone-field";
|
|
66
|
+
export interface ConsentPhoneFieldElementProps extends Pick<ConsentPhoneFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'name' | 'policy' | 'readOnly' | 'required' | 'type' | 'value'> {
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated Use `label` instead.
|
|
69
|
+
* @private
|
|
70
|
+
*/
|
|
71
|
+
placeholder?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ConsentPhoneFieldEvents extends Pick<PhoneFieldEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
74
|
+
}
|
|
75
|
+
export interface ConsentPhoneFieldElementEvents {
|
|
76
|
+
/**
|
|
77
|
+
* Callback when the element loses focus.
|
|
78
|
+
*
|
|
79
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
80
|
+
*/
|
|
81
|
+
blur?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
82
|
+
/**
|
|
83
|
+
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
84
|
+
*
|
|
85
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
|
|
86
|
+
*/
|
|
87
|
+
change?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
88
|
+
/**
|
|
89
|
+
* Callback when the element receives focus.
|
|
90
|
+
*
|
|
91
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
92
|
+
*/
|
|
93
|
+
focus?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
94
|
+
/**
|
|
95
|
+
* Callback when the user makes any changes in the field.
|
|
96
|
+
*
|
|
97
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
|
|
98
|
+
*/
|
|
99
|
+
input?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
100
|
+
}
|
|
101
|
+
export interface ConsentPhoneFieldElement extends ConsentPhoneFieldElementProps, Omit<ConsentPhoneFieldEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
102
|
+
onblur: ConsentPhoneFieldEvents['onBlur'];
|
|
103
|
+
onchange: ConsentPhoneFieldEvents['onChange'];
|
|
104
|
+
onfocus: ConsentPhoneFieldEvents['onFocus'];
|
|
105
|
+
oninput: ConsentPhoneFieldEvents['onInput'];
|
|
106
|
+
}
|
|
107
|
+
export interface ConsentPhoneFieldElementSlots {
|
|
108
|
+
/**
|
|
109
|
+
* Additional content to be displayed in the field.
|
|
110
|
+
* Commonly used to display an icon that activates a tooltip providing more information.
|
|
111
|
+
*/
|
|
112
|
+
accessory?: HTMLElement;
|
|
113
|
+
}
|
|
114
|
+
export interface ConsentPhoneFieldProps extends ConsentPhoneFieldElementProps, ConsentPhoneFieldEvents {
|
|
115
|
+
}
|
|
116
|
+
declare global {
|
|
117
|
+
interface HTMLElementTagNameMap {
|
|
118
|
+
[tagName]: ConsentPhoneFieldElement;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
declare module 'preact' {
|
|
122
|
+
namespace createElement.JSX {
|
|
123
|
+
interface IntrinsicElements {
|
|
124
|
+
[tagName]: ConsentPhoneFieldProps & BaseElementProps<ConsentPhoneFieldElement>;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type { ConsentPhoneFieldElement, ConsentPhoneFieldElementEvents, ConsentPhoneFieldElementProps, ConsentPhoneFieldElementSlots, ConsentPhoneFieldEvents, ConsentPhoneFieldProps };
|