@shopify/ui-extensions 2025.10.0-rc.5 → 2025.10.0-rc.7
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/ts/docs/shared/components/Map.d.ts +4 -0
- package/build/ts/docs/shared/components/Map.d.ts.map +1 -0
- package/build/ts/docs/shared/components/MapMarker.d.ts +4 -0
- package/build/ts/docs/shared/components/MapMarker.d.ts.map +1 -0
- package/build/ts/docs/shared/components/Modal.d.ts +4 -0
- package/build/ts/docs/shared/components/Modal.d.ts.map +1 -0
- package/build/ts/docs/shared/components/Option.d.ts +4 -0
- package/build/ts/docs/shared/components/Option.d.ts.map +1 -0
- package/build/ts/docs/shared/components/PhoneField.d.ts +4 -0
- package/build/ts/docs/shared/components/PhoneField.d.ts.map +1 -0
- package/build/ts/docs/shared/components/ProductThumbnail.d.ts +4 -0
- package/build/ts/docs/shared/components/ProductThumbnail.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/patterns/details.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/details.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/patterns/homepage.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/homepage.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/patterns/index.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/index.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/patterns/settings.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/settings.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +43 -1
- package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +43 -1
- package/build/ts/surfaces/checkout/components/Abbreviation.d.ts +20 -8
- package/build/ts/surfaces/checkout/components/Banner/Banner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Banner.d.ts +52 -13
- package/build/ts/surfaces/checkout/components/Box.d.ts +20 -9
- package/build/ts/surfaces/checkout/components/Button/Button.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Button.d.ts +39 -13
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Checkbox.d.ts +54 -0
- package/build/ts/surfaces/checkout/components/ClipboardItem.d.ts +36 -9
- package/build/ts/surfaces/checkout/components/DropZone/DropZone.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/DropZone.d.ts +36 -9
- package/build/ts/surfaces/checkout/components/EmailField/EmailField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/EmailField/EmailField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/EmailField.d.ts +69 -0
- package/build/ts/surfaces/checkout/components/Form.d.ts +40 -12
- package/build/ts/surfaces/checkout/components/Heading.d.ts +20 -8
- package/build/ts/surfaces/checkout/components/Icon.d.ts +22 -9
- package/build/ts/surfaces/checkout/components/Image.d.ts +13 -7
- package/build/ts/surfaces/checkout/components/Link/Link.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Link.d.ts +39 -13
- package/build/ts/surfaces/checkout/components/ListItem.d.ts +22 -10
- package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Map.d.ts +75 -0
- package/build/ts/surfaces/checkout/components/MapMarker.d.ts +73 -0
- package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Modal.d.ts +87 -0
- package/build/ts/surfaces/checkout/components/OrderedList.d.ts +20 -8
- package/build/ts/surfaces/checkout/components/Paragraph.d.ts +20 -8
- package/build/ts/surfaces/checkout/components/PaymentIcon.d.ts +14 -7
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/PhoneField.d.ts +84 -0
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Progress.d.ts +14 -4
- package/build/ts/surfaces/checkout/components/QRCode/QRCode.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/QRCode.d.ts +32 -8
- package/build/ts/surfaces/checkout/components/Section.d.ts +20 -8
- package/build/ts/surfaces/checkout/components/Spinner.d.ts +14 -4
- package/build/ts/surfaces/checkout/components/Stack.d.ts +20 -9
- package/build/ts/surfaces/checkout/components/Text.d.ts +20 -8
- package/build/ts/surfaces/checkout/components/TextArea/TextArea.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/TextArea/TextArea.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/TextArea.d.ts +69 -0
- package/build/ts/surfaces/checkout/components/TextField/TextField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/TextField.d.ts +72 -21
- package/build/ts/surfaces/checkout/components/Time.d.ts +20 -8
- package/build/ts/surfaces/checkout/components/UnorderedList.d.ts +20 -8
- package/build/ts/surfaces/checkout/components/components-shared.d.ts +486 -2
- package/build/ts/surfaces/checkout/components/components.d.ts +1000 -166
- 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 +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +863 -155
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +863 -155
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +863 -155
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +863 -155
- package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +863 -155
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +918 -172
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +918 -172
- package/build/ts/surfaces/customer-account/components/Abbreviation.d.ts +20 -8
- package/build/ts/surfaces/customer-account/components/Banner.d.ts +52 -13
- package/build/ts/surfaces/customer-account/components/Box.d.ts +20 -9
- package/build/ts/surfaces/customer-account/components/Button.d.ts +39 -13
- package/build/ts/surfaces/customer-account/components/Checkbox.d.ts +54 -0
- package/build/ts/surfaces/customer-account/components/ClipboardItem.d.ts +36 -9
- package/build/ts/surfaces/customer-account/components/DropZone.d.ts +36 -9
- package/build/ts/surfaces/customer-account/components/EmailField.d.ts +69 -0
- package/build/ts/surfaces/customer-account/components/Form.d.ts +40 -12
- package/build/ts/surfaces/customer-account/components/Heading.d.ts +20 -8
- package/build/ts/surfaces/customer-account/components/Icon.d.ts +22 -9
- package/build/ts/surfaces/customer-account/components/Image.d.ts +13 -7
- package/build/ts/surfaces/customer-account/components/Link.d.ts +39 -13
- package/build/ts/surfaces/customer-account/components/ListItem.d.ts +22 -10
- package/build/ts/surfaces/customer-account/components/Map.d.ts +75 -0
- package/build/ts/surfaces/customer-account/components/MapMarker.d.ts +73 -0
- package/build/ts/surfaces/customer-account/components/Modal.d.ts +87 -0
- package/build/ts/surfaces/customer-account/components/OrderedList.d.ts +20 -8
- package/build/ts/surfaces/customer-account/components/Paragraph.d.ts +20 -8
- package/build/ts/surfaces/customer-account/components/PaymentIcon.d.ts +14 -7
- package/build/ts/surfaces/customer-account/components/PhoneField.d.ts +84 -0
- package/build/ts/surfaces/customer-account/components/Progress.d.ts +14 -4
- package/build/ts/surfaces/customer-account/components/QRCode.d.ts +32 -8
- package/build/ts/surfaces/customer-account/components/Section.d.ts +20 -8
- package/build/ts/surfaces/customer-account/components/Spinner.d.ts +14 -4
- package/build/ts/surfaces/customer-account/components/Stack.d.ts +20 -9
- package/build/ts/surfaces/customer-account/components/Text.d.ts +20 -8
- package/build/ts/surfaces/customer-account/components/TextArea.d.ts +69 -0
- package/build/ts/surfaces/customer-account/components/TextField.d.ts +72 -21
- package/build/ts/surfaces/customer-account/components/Time.d.ts +20 -8
- package/build/ts/surfaces/customer-account/components/UnorderedList.d.ts +20 -8
- package/build/ts/surfaces/customer-account/components/components-shared.d.ts +486 -2
- package/build/ts/surfaces/customer-account/components/components.d.ts +1000 -166
- package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +918 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +918 -173
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/docs/shared/components/Map.ts +12 -0
- package/src/docs/shared/components/MapMarker.ts +12 -0
- package/src/docs/shared/components/Modal.ts +12 -0
- package/src/docs/shared/components/Option.ts +12 -0
- package/src/docs/shared/components/PhoneField.ts +11 -0
- package/src/docs/shared/components/ProductThumbnail.ts +11 -0
- package/src/surfaces/admin/components/AdminPrintAction/examples/default.tsx +1 -1
- package/src/surfaces/admin/components/StandardComponents.ts +1 -0
- package/src/surfaces/admin/components/patterns/examples/details.html +228 -0
- package/src/surfaces/admin/components/patterns/examples/details.jsx +262 -0
- package/src/surfaces/admin/components/patterns/examples/homepage.html +587 -0
- package/src/surfaces/admin/components/patterns/examples/homepage.jsx +691 -0
- package/src/surfaces/admin/components/patterns/examples/index.html +143 -0
- package/src/surfaces/admin/components/patterns/examples/index.jsx +162 -0
- package/src/surfaces/admin/components/patterns/examples/settings.html +241 -0
- package/src/surfaces/admin/components/patterns/examples/settings.jsx +349 -0
- package/src/surfaces/admin/components/patterns/index.ab.doc.ts +82 -0
- package/src/surfaces/checkout/components/Abbreviation.d.ts +20 -8
- package/src/surfaces/checkout/components/Banner.d.ts +52 -13
- package/src/surfaces/checkout/components/Box.d.ts +20 -9
- package/src/surfaces/checkout/components/Button.d.ts +39 -13
- package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.html +1 -0
- package/src/surfaces/checkout/components/Checkbox.d.ts +54 -0
- package/src/surfaces/checkout/components/ClipboardItem.d.ts +36 -9
- package/src/surfaces/checkout/components/DropZone.d.ts +36 -9
- package/src/surfaces/checkout/components/EmailField/examples/basic-emailfield.example.html +4 -0
- package/src/surfaces/checkout/components/EmailField.d.ts +69 -0
- package/src/surfaces/checkout/components/Form.d.ts +40 -12
- package/src/surfaces/checkout/components/Heading.d.ts +20 -8
- package/src/surfaces/checkout/components/Icon.d.ts +22 -9
- package/src/surfaces/checkout/components/Image.d.ts +13 -7
- package/src/surfaces/checkout/components/Link.d.ts +39 -13
- package/src/surfaces/checkout/components/ListItem.d.ts +22 -10
- package/src/surfaces/checkout/components/Map/examples/basic-map.example.html +3 -0
- package/src/surfaces/checkout/components/Map.d.ts +75 -0
- package/src/surfaces/checkout/components/MapMarker.d.ts +73 -0
- package/src/surfaces/checkout/components/Modal/examples/basic-modal.example.html +20 -0
- package/src/surfaces/checkout/components/Modal.d.ts +87 -0
- package/src/surfaces/checkout/components/OrderedList.d.ts +20 -8
- package/src/surfaces/checkout/components/Paragraph.d.ts +20 -8
- package/src/surfaces/checkout/components/PaymentIcon.d.ts +14 -7
- package/src/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.html +2 -0
- package/src/surfaces/checkout/components/PhoneField.d.ts +84 -0
- package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-productthumbnail.example.html +4 -0
- package/src/surfaces/checkout/components/Progress.d.ts +14 -4
- package/src/surfaces/checkout/components/QRCode.d.ts +32 -8
- package/src/surfaces/checkout/components/Section.d.ts +20 -8
- package/src/surfaces/checkout/components/Spinner.d.ts +14 -4
- package/src/surfaces/checkout/components/Stack.d.ts +20 -9
- package/src/surfaces/checkout/components/Text.d.ts +20 -8
- package/src/surfaces/checkout/components/TextArea/examples/basic-textarea.example.html +5 -0
- package/src/surfaces/checkout/components/TextArea.d.ts +69 -0
- package/src/surfaces/checkout/components/TextField.d.ts +72 -21
- package/src/surfaces/checkout/components/Time.d.ts +20 -8
- package/src/surfaces/checkout/components/UnorderedList.d.ts +20 -8
- package/src/surfaces/checkout/components/components-shared.d.ts +486 -2
- package/src/surfaces/checkout/components/components.d.ts +1000 -166
- package/src/surfaces/checkout/shared.ts +8 -0
- package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-js.example.ts +1 -1
- package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-preact.example.tsx +1 -1
- package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-js.example.ts +1 -1
- package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-preact.example.tsx +1 -1
- package/src/surfaces/customer-account/components/Page/examples/basic-Page-js.example.ts +1 -1
- package/src/surfaces/customer-account/components/Page/examples/basic-Page-preact.example.tsx +1 -1
|
@@ -78,21 +78,16 @@ export interface PageProps {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
declare module 'preact' {
|
|
81
|
-
interface BaseProps {
|
|
82
|
-
children?: preact.ComponentChildren;
|
|
83
|
-
slot?: Lowercase<string>;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
81
|
namespace createElement.JSX {
|
|
87
82
|
interface IntrinsicElements {
|
|
88
|
-
|
|
83
|
+
[UnorderedListtagName]: UnorderedListProps & UnorderedListBaseElementPropsWithChildren<UnorderedListElement>;
|
|
89
84
|
}
|
|
90
85
|
}
|
|
91
86
|
}
|
|
92
87
|
|
|
93
88
|
declare global {
|
|
94
89
|
interface HTMLElementTagNameMap {
|
|
95
|
-
|
|
90
|
+
[UnorderedListtagName]: UnorderedListElement;
|
|
96
91
|
}
|
|
97
92
|
}
|
|
98
93
|
|
|
@@ -102,22 +97,29 @@ export interface UnorderedListElement extends UnorderedListProps, Omit<HTMLEleme
|
|
|
102
97
|
export interface UnorderedListProps extends UnorderedListProps$1 {
|
|
103
98
|
}
|
|
104
99
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
100
|
+
export interface UnorderedListBaseElementPropsWithChildren<TClass = HTMLElement> extends UnorderedListBaseElementProps<TClass> {
|
|
101
|
+
children?: preact.ComponentChildren;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface UnorderedListBaseElementProps<TClass = HTMLElement> {
|
|
105
|
+
key?: preact.Key;
|
|
106
|
+
ref?: preact.Ref<TClass>;
|
|
107
|
+
slot?: Lowercase<string>;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
declare const UnorderedListtagName = "s-unordered-list";
|
|
110
111
|
|
|
112
|
+
declare module 'preact' {
|
|
111
113
|
namespace createElement.JSX {
|
|
112
114
|
interface IntrinsicElements {
|
|
113
|
-
|
|
115
|
+
[TimetagName]: TimeProps & TimeBaseElementPropsWithChildren<TimeElement>;
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
118
|
}
|
|
117
119
|
|
|
118
120
|
declare global {
|
|
119
121
|
interface HTMLElementTagNameMap {
|
|
120
|
-
|
|
122
|
+
[TimetagName]: TimeElement;
|
|
121
123
|
}
|
|
122
124
|
}
|
|
123
125
|
|
|
@@ -127,50 +129,95 @@ export interface TimeElement extends TimeProps, Omit<HTMLElement, 'id'> {
|
|
|
127
129
|
export interface TimeProps extends Pick<TimeProps$1, 'dateTime'> {
|
|
128
130
|
}
|
|
129
131
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
export interface TimeBaseElementPropsWithChildren<TClass = HTMLElement> extends TimeBaseElementProps<TClass> {
|
|
133
|
+
children?: preact.ComponentChildren;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface TimeBaseElementProps<TClass = HTMLElement> {
|
|
137
|
+
key?: preact.Key;
|
|
138
|
+
ref?: preact.Ref<TClass>;
|
|
139
|
+
slot?: Lowercase<string>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
declare const TimetagName = "s-time";
|
|
134
143
|
|
|
144
|
+
declare module 'preact' {
|
|
135
145
|
namespace createElement.JSX {
|
|
136
146
|
interface IntrinsicElements {
|
|
137
|
-
|
|
147
|
+
[TextFieldtagName]: TextFieldProps & TextFieldBaseElementProps<TextFieldElement>;
|
|
138
148
|
}
|
|
139
149
|
}
|
|
140
150
|
}
|
|
141
151
|
|
|
142
152
|
declare global {
|
|
143
153
|
interface HTMLElementTagNameMap {
|
|
144
|
-
|
|
154
|
+
[TextFieldtagName]: TextFieldElement;
|
|
145
155
|
}
|
|
146
156
|
}
|
|
147
157
|
|
|
148
158
|
declare module 'preact' {
|
|
149
|
-
interface BaseProps {
|
|
150
|
-
slot?: Lowercase<string>;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
159
|
namespace createElement.JSX {
|
|
154
160
|
interface IntrinsicElements {
|
|
155
|
-
|
|
161
|
+
[TextFieldtagName$1]: TextFieldIconProps & TextFieldBaseElementProps<TextFieldIconElement>;
|
|
156
162
|
}
|
|
157
163
|
}
|
|
158
164
|
}
|
|
159
165
|
|
|
160
166
|
declare global {
|
|
161
167
|
interface HTMLElementTagNameMap {
|
|
162
|
-
|
|
168
|
+
[TextFieldtagName$1]: TextFieldIconElement;
|
|
163
169
|
}
|
|
164
170
|
}
|
|
165
171
|
|
|
166
|
-
export interface
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
172
|
+
export interface TextFieldProps extends TextFieldBaseProps, TextFieldSlots, TextFieldEvents {
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface TextFieldElement extends TextFieldBaseProps, TextFieldSlots, Omit<TextFieldEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
176
|
+
onblur: TextFieldEvents['onBlur'];
|
|
177
|
+
onchange: TextFieldEvents['onChange'];
|
|
178
|
+
onfocus: TextFieldEvents['onFocus'];
|
|
179
|
+
oninput: TextFieldEvents['onInput'];
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export interface TextFieldElementSlots {
|
|
183
|
+
/**
|
|
184
|
+
* Additional content to be displayed in the field.
|
|
185
|
+
* Commonly used to display an icon that activates a tooltip providing more information.
|
|
186
|
+
*/
|
|
187
|
+
accessory?: HTMLElement;
|
|
171
188
|
}
|
|
172
189
|
|
|
173
|
-
export interface
|
|
190
|
+
export interface TextFieldSlots {
|
|
191
|
+
/**
|
|
192
|
+
* Additional content to be displayed in the field.
|
|
193
|
+
* Commonly used to display an icon that activates a tooltip providing more information.
|
|
194
|
+
*/
|
|
195
|
+
accessory?: ReactNode;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export interface TextFieldElementEvents {
|
|
199
|
+
/**
|
|
200
|
+
* Callback when the element loses focus.
|
|
201
|
+
*/
|
|
202
|
+
blur?: ((event: CallbackEvent<typeof TextFieldtagName>) => void) | null;
|
|
203
|
+
/**
|
|
204
|
+
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
205
|
+
*/
|
|
206
|
+
change?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
207
|
+
/**
|
|
208
|
+
* Callback when the element receives focus.
|
|
209
|
+
*/
|
|
210
|
+
focus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
211
|
+
/**
|
|
212
|
+
* Callback when the user makes any changes in the field.
|
|
213
|
+
*/
|
|
214
|
+
input?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export interface TextFieldEvents extends Pick<TextFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface TextFieldBaseProps extends Pick<TextFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'icon' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'placeholder' | 'prefix' | 'readOnly' | 'required' | 'suffix' | 'value'> {
|
|
174
221
|
icon?: TextFieldIconProps['type'];
|
|
175
222
|
}
|
|
176
223
|
|
|
@@ -180,25 +227,86 @@ export interface TextFieldIconElement extends TextFieldIconProps, Omit<HTMLEleme
|
|
|
180
227
|
export interface TextFieldIconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
|
|
181
228
|
tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
182
229
|
size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
183
|
-
type?: '' |
|
|
230
|
+
type?: '' | ReducedIconTypes;
|
|
184
231
|
}
|
|
185
232
|
|
|
233
|
+
export interface TextFieldBaseElementProps<TClass = HTMLElement> {
|
|
234
|
+
key?: preact.Key;
|
|
235
|
+
ref?: preact.Ref<TClass>;
|
|
236
|
+
slot?: Lowercase<string>;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
declare const TextFieldtagName = "s-text-field";
|
|
240
|
+
declare const tagName$1 = "s-icon";
|
|
241
|
+
|
|
186
242
|
declare module 'preact' {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
243
|
+
namespace createElement.JSX {
|
|
244
|
+
interface IntrinsicElements {
|
|
245
|
+
[TextAreatagName]: TextAreaProps & TextAreaBaseElementProps<TextAreaElement>;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
declare global {
|
|
251
|
+
interface HTMLElementTagNameMap {
|
|
252
|
+
[TextAreatagName]: TextAreaElement;
|
|
190
253
|
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export interface TextAreaProps extends TextAreaBaseProps, TextAreaEvents {
|
|
257
|
+
}
|
|
191
258
|
|
|
259
|
+
export interface TextAreaElement extends TextAreaBaseProps, Omit<TextAreaEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput'> {
|
|
260
|
+
onblur: TextAreaEvents['onBlur'];
|
|
261
|
+
onchange: TextAreaEvents['onChange'];
|
|
262
|
+
onfocus: TextAreaEvents['onFocus'];
|
|
263
|
+
oninput: TextAreaEvents['onInput'];
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export interface TextAreaElementEvents {
|
|
267
|
+
/**
|
|
268
|
+
* Callback when the element loses focus.
|
|
269
|
+
*/
|
|
270
|
+
blur?: ((event: CallbackEvent<typeof TextAreatagName>) => void) | null;
|
|
271
|
+
/**
|
|
272
|
+
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
273
|
+
*/
|
|
274
|
+
change?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
275
|
+
/**
|
|
276
|
+
* Callback when the element receives focus.
|
|
277
|
+
*/
|
|
278
|
+
focus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
279
|
+
/**
|
|
280
|
+
* Callback when the user makes any changes in the field.
|
|
281
|
+
*/
|
|
282
|
+
input?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export interface TextAreaEvents extends Pick<TextAreaProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export interface TextAreaBaseProps extends Pick<TextAreaProps$1, 'id' | 'label' | 'name' | 'placeholder' | 'required' | 'value' | 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'readOnly' | 'rows' | 'maxLength' | 'minLength' | 'labelAccessibilityVisibility'> {
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export interface TextAreaBaseElementProps<TClass = HTMLElement> {
|
|
292
|
+
key?: preact.Key;
|
|
293
|
+
ref?: preact.Ref<TClass>;
|
|
294
|
+
slot?: Lowercase<string>;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
declare const TextAreatagName = "s-text-area";
|
|
298
|
+
|
|
299
|
+
declare module 'preact' {
|
|
192
300
|
namespace createElement.JSX {
|
|
193
301
|
interface IntrinsicElements {
|
|
194
|
-
|
|
302
|
+
[TexttagName]: TextProps & TextBaseElementPropsWithChildren<TextElement>;
|
|
195
303
|
}
|
|
196
304
|
}
|
|
197
305
|
}
|
|
198
306
|
|
|
199
307
|
declare global {
|
|
200
308
|
interface HTMLElementTagNameMap {
|
|
201
|
-
|
|
309
|
+
[TexttagName]: TextElement;
|
|
202
310
|
}
|
|
203
311
|
}
|
|
204
312
|
|
|
@@ -211,29 +319,36 @@ export interface TextProps extends Pick<TextProps$1, 'accessibilityVisibility' |
|
|
|
211
319
|
type?: Extract<TextProps$1['type'], 'address' | 'redundant' | 'mark' | 'emphasis' | 'offset' | 'small' | 'strong' | 'generic'>;
|
|
212
320
|
}
|
|
213
321
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
322
|
+
export interface TextBaseElementPropsWithChildren<TClass = HTMLElement> extends TextBaseElementProps<TClass> {
|
|
323
|
+
children?: preact.ComponentChildren;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export interface TextBaseElementProps<TClass = HTMLElement> {
|
|
327
|
+
key?: preact.Key;
|
|
328
|
+
ref?: preact.Ref<TClass>;
|
|
329
|
+
slot?: Lowercase<string>;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
declare const TexttagName = "s-text";
|
|
219
333
|
|
|
334
|
+
declare module 'preact' {
|
|
220
335
|
namespace createElement.JSX {
|
|
221
336
|
interface IntrinsicElements {
|
|
222
|
-
|
|
337
|
+
[StacktagName]: StackProps & StackBaseElementPropsWithChildren<StackElement>;
|
|
223
338
|
}
|
|
224
339
|
}
|
|
225
340
|
}
|
|
226
341
|
|
|
227
342
|
declare global {
|
|
228
343
|
interface HTMLElementTagNameMap {
|
|
229
|
-
|
|
344
|
+
[StacktagName]: StackElement;
|
|
230
345
|
}
|
|
231
346
|
}
|
|
232
347
|
|
|
233
348
|
export interface StackElement extends StackProps, Omit<HTMLElement, 'id'> {
|
|
234
349
|
}
|
|
235
350
|
|
|
236
|
-
export interface StackProps extends Pick<StackProps$1, 'accessibilityLabel' | 'accessibilityRole' | 'alignContent' | 'alignItems' | 'background' | 'border' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'columnGap' | 'direction' | 'display' | 'gap' | 'id' | 'justifyContent' | 'maxBlockSize' | 'maxInlineSize' | 'minBlockSize' | 'minInlineSize' | 'overflow' | 'padding' | 'paddingBlock' | 'paddingBlockEnd' | 'paddingBlockStart' | 'paddingInline' | 'paddingInlineEnd' | 'paddingInlineStart' | 'rowGap'> {
|
|
351
|
+
export interface StackProps extends Pick<StackProps$1, 'accessibilityLabel' | 'accessibilityRole' | 'alignContent' | 'alignItems' | 'background' | 'blockSize' | 'border' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'columnGap' | 'direction' | 'display' | 'gap' | 'id' | 'inlineSize' | 'justifyContent' | 'maxBlockSize' | 'maxInlineSize' | 'minBlockSize' | 'minInlineSize' | 'overflow' | 'padding' | 'paddingBlock' | 'paddingBlockEnd' | 'paddingBlockStart' | 'paddingInline' | 'paddingInlineEnd' | 'paddingInlineStart' | 'rowGap'> {
|
|
237
352
|
accessibilityRole?: Extract<StackProps$1['accessibilityRole'], 'main' | 'header' | 'footer' | 'section' | 'aside' | 'navigation' | 'ordered-list' | 'list-item' | 'list-item-separator' | 'unordered-list' | 'separator' | 'status' | 'alert' | 'generic' | 'none'>;
|
|
238
353
|
background?: Extract<StackProps$1['background'], 'transparent' | 'subdued' | 'base'>;
|
|
239
354
|
border?: BorderShorthand;
|
|
@@ -244,17 +359,29 @@ export interface StackProps extends Pick<StackProps$1, 'accessibilityLabel' | 'a
|
|
|
244
359
|
justifyContent?: Extract<StackProps$1['justifyContent'], 'normal' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'center' | 'start' | 'end'>;
|
|
245
360
|
}
|
|
246
361
|
|
|
362
|
+
export interface StackBaseElementPropsWithChildren<TClass = HTMLElement> extends StackBaseElementProps<TClass> {
|
|
363
|
+
children?: preact.ComponentChildren;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export interface StackBaseElementProps<TClass = HTMLElement> {
|
|
367
|
+
key?: preact.Key;
|
|
368
|
+
ref?: preact.Ref<TClass>;
|
|
369
|
+
slot?: Lowercase<string>;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
declare const StacktagName = "s-stack";
|
|
373
|
+
|
|
247
374
|
declare module 'preact' {
|
|
248
375
|
namespace createElement.JSX {
|
|
249
376
|
interface IntrinsicElements {
|
|
250
|
-
|
|
377
|
+
[SpinnertagName]: SpinnerProps & SpinnerBaseElementProps<SpinnerElement>;
|
|
251
378
|
}
|
|
252
379
|
}
|
|
253
380
|
}
|
|
254
381
|
|
|
255
382
|
declare global {
|
|
256
383
|
interface HTMLElementTagNameMap {
|
|
257
|
-
|
|
384
|
+
[SpinnertagName]: SpinnerElement;
|
|
258
385
|
}
|
|
259
386
|
}
|
|
260
387
|
|
|
@@ -265,22 +392,25 @@ export interface SpinnerProps extends SpinnerProps$1 {
|
|
|
265
392
|
size?: Extract<SpinnerProps$1['size'], 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
266
393
|
}
|
|
267
394
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
395
|
+
export interface SpinnerBaseElementProps<TClass = HTMLElement> {
|
|
396
|
+
key?: preact.Key;
|
|
397
|
+
ref?: preact.Ref<TClass>;
|
|
398
|
+
slot?: Lowercase<string>;
|
|
399
|
+
}
|
|
273
400
|
|
|
401
|
+
declare const SpinnertagName = "s-spinner";
|
|
402
|
+
|
|
403
|
+
declare module 'preact' {
|
|
274
404
|
namespace createElement.JSX {
|
|
275
405
|
interface IntrinsicElements {
|
|
276
|
-
|
|
406
|
+
[SectiontagName]: SectionProps & SectionBaseElementPropsWithChildren<SectionElement>;
|
|
277
407
|
}
|
|
278
408
|
}
|
|
279
409
|
}
|
|
280
410
|
|
|
281
411
|
declare global {
|
|
282
412
|
interface HTMLElementTagNameMap {
|
|
283
|
-
|
|
413
|
+
[SectiontagName]: SectionElement;
|
|
284
414
|
}
|
|
285
415
|
}
|
|
286
416
|
|
|
@@ -290,38 +420,72 @@ export interface SectionElement extends SectionProps, Omit<HTMLElement, 'id'> {
|
|
|
290
420
|
export interface SectionProps extends Pick<SectionProps$1, 'accessibilityLabel' | 'heading' | 'id'> {
|
|
291
421
|
}
|
|
292
422
|
|
|
423
|
+
export interface SectionBaseElementPropsWithChildren<TClass = HTMLElement> extends SectionBaseElementProps<TClass> {
|
|
424
|
+
children?: preact.ComponentChildren;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
export interface SectionBaseElementProps<TClass = HTMLElement> {
|
|
428
|
+
key?: preact.Key;
|
|
429
|
+
ref?: preact.Ref<TClass>;
|
|
430
|
+
slot?: Lowercase<string>;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
declare const SectiontagName = "s-section";
|
|
434
|
+
|
|
293
435
|
declare module 'preact' {
|
|
294
436
|
namespace createElement.JSX {
|
|
295
437
|
interface IntrinsicElements {
|
|
296
|
-
|
|
438
|
+
[QRCodetagName]: QRCodeProps & QRCodeBaseElementProps<QRCodelement>;
|
|
297
439
|
}
|
|
298
440
|
}
|
|
299
441
|
}
|
|
300
442
|
|
|
301
443
|
declare global {
|
|
302
444
|
interface HTMLElementTagNameMap {
|
|
303
|
-
|
|
445
|
+
[QRCodetagName]: QRCodelement;
|
|
304
446
|
}
|
|
305
447
|
}
|
|
306
448
|
|
|
307
|
-
export interface
|
|
308
|
-
|
|
449
|
+
export interface QRCodeProps extends QRCodeBaseProps, QRCodeEvents {
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export interface QRCodelement extends QRCodeBaseProps, Omit<QRCodeEvents, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
|
|
453
|
+
onerror: QRCodeEvents['onError'];
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export interface QRCodeElementEvents {
|
|
457
|
+
/**
|
|
458
|
+
* Invoked when the conversion of `content` to a QR code fails.
|
|
459
|
+
* If an error occurs, the QR code and its child elements will not be displayed.
|
|
460
|
+
*/
|
|
461
|
+
error?: ((event: CallbackEvent<typeof QRCodetagName>) => void) | null;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export interface QRCodeEvents extends Pick<QRCodeProps$1, 'onError'> {
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export interface QRCodeBaseProps extends QRCodeProps$1 {
|
|
309
468
|
}
|
|
310
469
|
|
|
311
|
-
export interface
|
|
470
|
+
export interface QRCodeBaseElementProps<TClass = HTMLElement> {
|
|
471
|
+
key?: preact.Key;
|
|
472
|
+
ref?: preact.Ref<TClass>;
|
|
473
|
+
slot?: Lowercase<string>;
|
|
312
474
|
}
|
|
313
475
|
|
|
476
|
+
declare const QRCodetagName = "s-qr-code";
|
|
477
|
+
|
|
314
478
|
declare module 'preact' {
|
|
315
479
|
namespace createElement.JSX {
|
|
316
480
|
interface IntrinsicElements {
|
|
317
|
-
|
|
481
|
+
[ProgresstagName]: ProgressProps & ProgressBaseElementProps<ProgressElement>;
|
|
318
482
|
}
|
|
319
483
|
}
|
|
320
484
|
}
|
|
321
485
|
|
|
322
486
|
declare global {
|
|
323
487
|
interface HTMLElementTagNameMap {
|
|
324
|
-
|
|
488
|
+
[ProgresstagName]: ProgressElement;
|
|
325
489
|
}
|
|
326
490
|
}
|
|
327
491
|
|
|
@@ -332,21 +496,98 @@ export interface ProgressProps extends Pick<ProgressProps$1, 'accessibilityLabel
|
|
|
332
496
|
tone?: Extract<ProgressProps$1['tone'], 'auto' | 'critical'>;
|
|
333
497
|
}
|
|
334
498
|
|
|
499
|
+
export interface ProgressBaseElementProps<TClass = HTMLElement> {
|
|
500
|
+
key?: preact.Key;
|
|
501
|
+
ref?: preact.Ref<TClass>;
|
|
502
|
+
slot?: Lowercase<string>;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
declare const ProgresstagName = "s-progress";
|
|
506
|
+
|
|
335
507
|
declare module 'preact' {
|
|
336
|
-
|
|
337
|
-
|
|
508
|
+
namespace createElement.JSX {
|
|
509
|
+
interface IntrinsicElements {
|
|
510
|
+
[PhoneFieldtagName]: PhoneFieldProps & PhoneFieldBaseElementProps<PhoneFieldElement>;
|
|
511
|
+
}
|
|
338
512
|
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
declare global {
|
|
516
|
+
interface HTMLElementTagNameMap {
|
|
517
|
+
[PhoneFieldtagName]: PhoneFieldElement;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
export interface PhoneFieldProps extends PhoneFieldBaseProps, PhoneFieldSlots, PhoneFieldEvents {
|
|
522
|
+
}
|
|
339
523
|
|
|
524
|
+
export interface PhoneFieldElement extends PhoneFieldBaseProps, PhoneFieldSlots, Omit<PhoneFieldEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
525
|
+
onblur: PhoneFieldEvents['onBlur'];
|
|
526
|
+
onchange: PhoneFieldEvents['onChange'];
|
|
527
|
+
onfocus: PhoneFieldEvents['onFocus'];
|
|
528
|
+
oninput: PhoneFieldEvents['onInput'];
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export interface PhoneFieldElementSlots {
|
|
532
|
+
/**
|
|
533
|
+
* Additional content to be displayed in the field.
|
|
534
|
+
* Commonly used to display an icon that activates a tooltip providing more information.
|
|
535
|
+
*/
|
|
536
|
+
accessory?: HTMLElement;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export interface PhoneFieldSlots extends Pick<PhoneFieldProps$1, 'accessory'> {
|
|
540
|
+
/**
|
|
541
|
+
* Additional content to be displayed in the field.
|
|
542
|
+
* Commonly used to display an icon that activates a tooltip providing more information.
|
|
543
|
+
*/
|
|
544
|
+
accessory?: ReactNode;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
export interface PhoneFieldElementEvents {
|
|
548
|
+
/**
|
|
549
|
+
* Callback when the element loses focus.
|
|
550
|
+
*/
|
|
551
|
+
blur?: ((event: CallbackEvent<typeof PhoneFieldtagName>) => void) | null;
|
|
552
|
+
/**
|
|
553
|
+
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
554
|
+
*/
|
|
555
|
+
change?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
556
|
+
/**
|
|
557
|
+
* Callback when the element receives focus.
|
|
558
|
+
*/
|
|
559
|
+
focus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
560
|
+
/**
|
|
561
|
+
* Callback when the user makes any changes in the field.
|
|
562
|
+
*/
|
|
563
|
+
input?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
export interface PhoneFieldEvents extends Pick<PhoneFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
export interface PhoneFieldBaseProps extends Pick<PhoneFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'name' | 'placeholder' | 'readOnly' | 'required' | 'value' | 'type'> {
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
export interface PhoneFieldBaseElementProps<TClass = HTMLElement> {
|
|
573
|
+
key?: preact.Key;
|
|
574
|
+
ref?: preact.Ref<TClass>;
|
|
575
|
+
slot?: Lowercase<string>;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
declare const PhoneFieldtagName = "s-phone-field";
|
|
579
|
+
|
|
580
|
+
declare module 'preact' {
|
|
340
581
|
namespace createElement.JSX {
|
|
341
582
|
interface IntrinsicElements {
|
|
342
|
-
|
|
583
|
+
[PaymentIcontagName]: PaymentIconProps & PaymentIconBaseElementProps<PaymentIconElement>;
|
|
343
584
|
}
|
|
344
585
|
}
|
|
345
586
|
}
|
|
346
587
|
|
|
347
588
|
declare global {
|
|
348
589
|
interface HTMLElementTagNameMap {
|
|
349
|
-
|
|
590
|
+
[PaymentIcontagName]: PaymentIconElement;
|
|
350
591
|
}
|
|
351
592
|
}
|
|
352
593
|
|
|
@@ -356,22 +597,25 @@ export interface PaymentIconElement extends PaymentIconProps, Omit<HTMLElement,
|
|
|
356
597
|
export interface PaymentIconProps extends PaymentIconProps$1 {
|
|
357
598
|
}
|
|
358
599
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
600
|
+
export interface PaymentIconBaseElementProps<TClass = HTMLElement> {
|
|
601
|
+
key?: preact.Key;
|
|
602
|
+
ref?: preact.Ref<TClass>;
|
|
603
|
+
slot?: Lowercase<string>;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
declare const PaymentIcontagName = "s-payment-icon";
|
|
364
607
|
|
|
608
|
+
declare module 'preact' {
|
|
365
609
|
namespace createElement.JSX {
|
|
366
610
|
interface IntrinsicElements {
|
|
367
|
-
|
|
611
|
+
[ParagraphtagName]: ParagraphProps & ParagraphBaseElementPropsWithChildren<ParagraphElement>;
|
|
368
612
|
}
|
|
369
613
|
}
|
|
370
614
|
}
|
|
371
615
|
|
|
372
616
|
declare global {
|
|
373
617
|
interface HTMLElementTagNameMap {
|
|
374
|
-
|
|
618
|
+
[ParagraphtagName]: ParagraphElement;
|
|
375
619
|
}
|
|
376
620
|
}
|
|
377
621
|
|
|
@@ -383,22 +627,29 @@ export interface ParagraphProps extends Pick<ParagraphProps$1, 'accessibilityVis
|
|
|
383
627
|
tone?: Extract<ParagraphProps$1['tone'], 'auto' | 'info' | 'success' | 'warning' | 'critical' | 'neutral' | 'custom'>;
|
|
384
628
|
}
|
|
385
629
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
630
|
+
export interface ParagraphBaseElementPropsWithChildren<TClass = HTMLElement> extends ParagraphBaseElementProps<TClass> {
|
|
631
|
+
children?: preact.ComponentChildren;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
export interface ParagraphBaseElementProps<TClass = HTMLElement> {
|
|
635
|
+
key?: preact.Key;
|
|
636
|
+
ref?: preact.Ref<TClass>;
|
|
637
|
+
slot?: Lowercase<string>;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
declare const ParagraphtagName = "s-paragraph";
|
|
391
641
|
|
|
642
|
+
declare module 'preact' {
|
|
392
643
|
namespace createElement.JSX {
|
|
393
644
|
interface IntrinsicElements {
|
|
394
|
-
|
|
645
|
+
[OrderedListtagName]: OrderedListProps & OrderedListBaseElementPropsWithChildren<OrderedListElement>;
|
|
395
646
|
}
|
|
396
647
|
}
|
|
397
648
|
}
|
|
398
649
|
|
|
399
650
|
declare global {
|
|
400
651
|
interface HTMLElementTagNameMap {
|
|
401
|
-
|
|
652
|
+
[OrderedListtagName]: OrderedListElement;
|
|
402
653
|
}
|
|
403
654
|
}
|
|
404
655
|
|
|
@@ -408,74 +659,307 @@ export interface OrderedListElement extends OrderedListProps, Omit<HTMLElement,
|
|
|
408
659
|
export interface OrderedListProps extends OrderedListProps$1 {
|
|
409
660
|
}
|
|
410
661
|
|
|
662
|
+
export interface OrderedListBaseElementPropsWithChildren<TClass = HTMLElement> extends OrderedListBaseElementProps<TClass> {
|
|
663
|
+
children?: preact.ComponentChildren;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
export interface OrderedListBaseElementProps<TClass = HTMLElement> {
|
|
667
|
+
key?: preact.Key;
|
|
668
|
+
ref?: preact.Ref<TClass>;
|
|
669
|
+
slot?: Lowercase<string>;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
declare const OrderedListtagName = "s-ordered-list";
|
|
673
|
+
|
|
411
674
|
declare module 'preact' {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
675
|
+
namespace createElement.JSX {
|
|
676
|
+
interface IntrinsicElements {
|
|
677
|
+
[ModaltagName]: ModalProps & ModalBaseElementPropsWithChildren<ModalElement>;
|
|
678
|
+
}
|
|
415
679
|
}
|
|
680
|
+
}
|
|
416
681
|
|
|
682
|
+
declare global {
|
|
683
|
+
interface HTMLElementTagNameMap {
|
|
684
|
+
[ModaltagName]: ModalElement;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
export interface ModalProps extends ModalBaseProps, ModalSlots, ModalEvents {
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
export interface ModalElement extends ModalBaseProps, ModalSlots, Omit<ModalEvents, 'onHide' | 'onShow'>, Omit<HTMLElement, 'id'> {
|
|
692
|
+
onhide: ModalEvents['onHide'];
|
|
693
|
+
onshow: ModalEvents['onShow'];
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
export interface ModalElementEvents {
|
|
697
|
+
/**
|
|
698
|
+
* Callback fired after the overlay is hidden.
|
|
699
|
+
*/
|
|
700
|
+
hide?: ((event: CallbackEvent<typeof ModaltagName>) => void) | null;
|
|
701
|
+
/**
|
|
702
|
+
* Callback fired after the overlay is shown.
|
|
703
|
+
*/
|
|
704
|
+
show?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
export interface ModalEvents extends Pick<ModalProps$1, 'onHide' | 'onShow' | 'onAfterHide' | 'onAfterShow'> {
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
export interface ModalElementSlots {
|
|
711
|
+
/**
|
|
712
|
+
* The primary action to perform, provided as a button type element.
|
|
713
|
+
*/
|
|
714
|
+
'primary-action'?: HTMLElement;
|
|
715
|
+
/**
|
|
716
|
+
* The secondary actions to perform, provided as button type elements.
|
|
717
|
+
*/
|
|
718
|
+
'secondary-actions'?: HTMLElement;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
export interface ModalSlots extends Pick<ModalProps$1, 'primaryAction' | 'secondaryActions'> {
|
|
722
|
+
/**
|
|
723
|
+
* The primary action to perform, provided as a button type element.
|
|
724
|
+
*/
|
|
725
|
+
primaryAction?: ReactNode;
|
|
726
|
+
/**
|
|
727
|
+
* The secondary actions to perform, provided as button type elements.
|
|
728
|
+
*/
|
|
729
|
+
secondaryActions?: ReactNode;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
export interface ModalBaseProps extends Pick<ModalProps$1, 'accessibilityLabel' | 'heading' | 'id' | 'padding' | 'size'> {
|
|
733
|
+
size?: Extract<ModalProps$1['size'], 'small-100' | 'small' | 'base' | 'large-100' | 'large' | 'max'>;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
export interface ModalBaseElementPropsWithChildren<TClass = HTMLElement> extends ModalBaseElementProps<TClass> {
|
|
737
|
+
children?: preact.ComponentChildren;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
export interface ModalBaseElementProps<TClass = HTMLElement> {
|
|
741
|
+
key?: preact.Key;
|
|
742
|
+
ref?: preact.Ref<TClass>;
|
|
743
|
+
slot?: Lowercase<string>;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
declare const ModaltagName = "s-modal";
|
|
747
|
+
|
|
748
|
+
declare module 'preact' {
|
|
417
749
|
namespace createElement.JSX {
|
|
418
750
|
interface IntrinsicElements {
|
|
419
|
-
|
|
751
|
+
[MapMarkertagName]: MapMarkerProps & MapMarkerBaseElementProps<MapMarkerElement>;
|
|
420
752
|
}
|
|
421
753
|
}
|
|
422
754
|
}
|
|
423
755
|
|
|
424
756
|
declare global {
|
|
425
757
|
interface HTMLElementTagNameMap {
|
|
426
|
-
|
|
758
|
+
[MapMarkertagName]: MapMarkerElement;
|
|
427
759
|
}
|
|
428
760
|
}
|
|
429
761
|
|
|
430
|
-
export interface
|
|
762
|
+
export interface MapMarkerProps extends MapMarkerBaseProps, MapMarkerEvents {
|
|
431
763
|
}
|
|
432
764
|
|
|
433
|
-
export interface
|
|
765
|
+
export interface MapMarkerElement extends MapMarkerBaseProps, MapMarkerSlots, Omit<HTMLElement, 'id' | 'onclick'> {
|
|
766
|
+
onclick: MapMarkerEvents['onClick'];
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
export interface MapMarkerElementSlots {
|
|
770
|
+
/**
|
|
771
|
+
* The graphic to use as the marker.
|
|
772
|
+
*
|
|
773
|
+
* If unset, it will default to the provider’s default marker.
|
|
774
|
+
*/
|
|
775
|
+
graphic?: HTMLElement;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
export interface MapMarkerSlots {
|
|
779
|
+
/**
|
|
780
|
+
* The graphic to use as the marker.
|
|
781
|
+
*
|
|
782
|
+
* If unset, it will default to the provider’s default marker.
|
|
783
|
+
*/
|
|
784
|
+
graphic?: ReactNode;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
export interface MapMarkerElementEvents {
|
|
788
|
+
/**
|
|
789
|
+
* Callback when a marker is clicked.
|
|
790
|
+
*
|
|
791
|
+
* It does not trigger a click event on the map itself.
|
|
792
|
+
*/
|
|
793
|
+
click?: ((event: CallbackEvent<typeof MapMarkertagName>) => void) | null;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
export interface MapMarkerEvents extends Pick<MapMarkerProps$1, 'onClick'> {
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
export interface MapMarkerBaseProps extends Pick<MapMarkerProps$1, 'accessibilityLabel' | 'blockSize' | 'clusterable' | 'inlineSize' | 'latitude' | 'longitude'> {
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
export interface MapMarkerBaseElementProps<TClass = HTMLElement> {
|
|
803
|
+
key?: preact.Key;
|
|
804
|
+
ref?: preact.Ref<TClass>;
|
|
805
|
+
slot?: Lowercase<string>;
|
|
434
806
|
}
|
|
435
807
|
|
|
808
|
+
declare const MapMarkertagName = "s-map-marker";
|
|
809
|
+
|
|
436
810
|
declare module 'preact' {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
811
|
+
namespace createElement.JSX {
|
|
812
|
+
interface IntrinsicElements {
|
|
813
|
+
[MaptagName]: MapProps & MapBaseElementPropsWithChildren<MapElement>;
|
|
814
|
+
}
|
|
440
815
|
}
|
|
816
|
+
}
|
|
441
817
|
|
|
818
|
+
declare global {
|
|
819
|
+
interface HTMLElementTagNameMap {
|
|
820
|
+
[MaptagName]: MapElement;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
export interface MapProps extends MapBaseProps, MapEvents {
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
export interface MapElement extends MapBaseProps, Omit<MapEvents, 'onBoundsChange' | 'onClick' | 'onDblClick' | 'onViewChange'>, Omit<HTMLElement, 'id' | 'onclick' | 'ondblclick'> {
|
|
828
|
+
onboundschange: MapEvents['onBoundsChange'];
|
|
829
|
+
onclick: MapEvents['onClick'];
|
|
830
|
+
ondblclick: MapEvents['onDblClick'];
|
|
831
|
+
onviewchange: MapEvents['onViewChange'];
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
export interface MapElementEvents {
|
|
835
|
+
/**
|
|
836
|
+
* Callback when the viewport bounds have changed or the map is resized.
|
|
837
|
+
*/
|
|
838
|
+
boundschange?: ((event: CallbackEvent<typeof MaptagName>) => void) | null;
|
|
839
|
+
/**
|
|
840
|
+
* Callback when the user clicks on the map.
|
|
841
|
+
*/
|
|
842
|
+
click?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
843
|
+
/**
|
|
844
|
+
* Callback when the user double-clicks on the map.
|
|
845
|
+
*/
|
|
846
|
+
dblclick?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
847
|
+
/**
|
|
848
|
+
* Callback when the map view changes.
|
|
849
|
+
*/
|
|
850
|
+
viewchange?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
export interface MapEvents extends Pick<MapProps$1, 'onBoundsChange' | 'onClick' | 'onDblClick' | 'onViewChange'> {
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
export interface MapBaseProps extends Pick<MapProps$1, 'accessibilityLabel' | 'apiKey' | 'blockSize' | 'id' | 'inlineSize' | 'latitude' | 'longitude' | 'maxBlockSize' | 'maxInlineSize' | 'maxZoom' | 'minBlockSize' | 'minInlineSize' | 'minZoom' | 'zoom'> {
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
export interface MapBaseElementPropsWithChildren<TClass = HTMLElement> extends MapBaseElementProps<TClass> {
|
|
860
|
+
children?: preact.ComponentChildren;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
export interface MapBaseElementProps<TClass = HTMLElement> {
|
|
864
|
+
key?: preact.Key;
|
|
865
|
+
ref?: preact.Ref<TClass>;
|
|
866
|
+
slot?: Lowercase<string>;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
declare const MaptagName = "s-map";
|
|
870
|
+
|
|
871
|
+
declare module 'preact' {
|
|
442
872
|
namespace createElement.JSX {
|
|
443
873
|
interface IntrinsicElements {
|
|
444
|
-
|
|
874
|
+
[ListItemtagName]: ListItemProps & ListItemBaseElementPropsWithChildren<ListItemElement>;
|
|
445
875
|
}
|
|
446
876
|
}
|
|
447
877
|
}
|
|
448
878
|
|
|
449
879
|
declare global {
|
|
450
880
|
interface HTMLElementTagNameMap {
|
|
451
|
-
|
|
881
|
+
[ListItemtagName]: ListItemElement;
|
|
452
882
|
}
|
|
453
883
|
}
|
|
454
884
|
|
|
455
|
-
export interface
|
|
456
|
-
onclick: LinkProps['onClick'];
|
|
885
|
+
export interface ListItemElement extends ListItemProps, Omit<HTMLElement, 'id'> {
|
|
457
886
|
}
|
|
458
887
|
|
|
459
|
-
export interface
|
|
460
|
-
target?: Extract<LinkProps$1['target'], 'auto' | '_self' | '_blank'>;
|
|
461
|
-
tone?: Extract<LinkProps$1['tone'], 'auto' | 'neutral'>;
|
|
888
|
+
export interface ListItemProps extends Pick<ListItemProps$1, 'id'> {
|
|
462
889
|
}
|
|
463
890
|
|
|
891
|
+
export interface ListItemBaseElementPropsWithChildren<TClass = HTMLElement> extends ListItemBaseElementProps<TClass> {
|
|
892
|
+
children?: preact.ComponentChildren;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
export interface ListItemBaseElementProps<TClass = HTMLElement> {
|
|
896
|
+
key?: preact.Key;
|
|
897
|
+
ref?: preact.Ref<TClass>;
|
|
898
|
+
slot?: Lowercase<string>;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
declare const ListItemtagName = "s-list-item";
|
|
902
|
+
|
|
464
903
|
declare module 'preact' {
|
|
465
|
-
|
|
466
|
-
|
|
904
|
+
namespace createElement.JSX {
|
|
905
|
+
interface IntrinsicElements {
|
|
906
|
+
[LinktagName]: LinkProps & LinkBaseElementPropsWithChildren<LinkElement>;
|
|
907
|
+
}
|
|
467
908
|
}
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
declare global {
|
|
912
|
+
interface HTMLElementTagNameMap {
|
|
913
|
+
[LinktagName]: LinkElement;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
468
916
|
|
|
917
|
+
export interface LinkProps extends LinkBaseProps, LinkEvents {
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
export interface LinkElement extends LinkBaseProps, Omit<LinkEvents, 'onClick'>, Omit<HTMLElement, 'id' | 'lang' | 'onclick'> {
|
|
921
|
+
onclick: LinkEvents['onClick'];
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
export interface LinkElementEvents {
|
|
925
|
+
/**
|
|
926
|
+
* Callback when the link is activated.
|
|
927
|
+
* This will be called before navigating to the location specified by `href`.
|
|
928
|
+
*/
|
|
929
|
+
click?: ((event: CallbackEvent<typeof LinktagName>) => void) | null;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
export interface LinkEvents extends Pick<LinkProps$1, 'onClick'> {
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
export interface LinkBaseProps extends Pick<LinkProps$1, 'accessibilityLabel' | 'command' | 'commandFor' | 'href' | 'id' | 'lang' | 'target' | 'tone'> {
|
|
936
|
+
target?: Extract<LinkProps$1['target'], 'auto' | '_blank'>;
|
|
937
|
+
tone?: Extract<LinkProps$1['tone'], 'auto' | 'neutral'>;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
export interface LinkBaseElementPropsWithChildren<TClass = HTMLElement> extends LinkBaseElementProps<TClass> {
|
|
941
|
+
children?: preact.ComponentChildren;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
export interface LinkBaseElementProps<TClass = HTMLElement> {
|
|
945
|
+
key?: preact.Key;
|
|
946
|
+
ref?: preact.Ref<TClass>;
|
|
947
|
+
slot?: Lowercase<string>;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
declare const LinktagName = "s-link";
|
|
951
|
+
|
|
952
|
+
declare module 'preact' {
|
|
469
953
|
namespace createElement.JSX {
|
|
470
954
|
interface IntrinsicElements {
|
|
471
|
-
|
|
955
|
+
[ImagetagName]: ImageProps & ImageBaseElementProps<ImageElement>;
|
|
472
956
|
}
|
|
473
957
|
}
|
|
474
958
|
}
|
|
475
959
|
|
|
476
960
|
declare global {
|
|
477
961
|
interface HTMLElementTagNameMap {
|
|
478
|
-
|
|
962
|
+
[ImagetagName]: ImageElement;
|
|
479
963
|
}
|
|
480
964
|
}
|
|
481
965
|
|
|
@@ -488,21 +972,25 @@ export interface ImageProps extends Pick<ImageProps$1, 'accessibilityRole' | 'al
|
|
|
488
972
|
borderRadius?: MaybeAllValuesShorthandProperty<Extract<ImageProps$1['borderRadius'], 'none' | 'small-100' | 'small' | 'base' | 'large' | 'large-100' | 'max'>>;
|
|
489
973
|
}
|
|
490
974
|
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
975
|
+
export interface ImageBaseElementProps<TClass = HTMLElement> {
|
|
976
|
+
key?: preact.Key;
|
|
977
|
+
ref?: preact.Ref<TClass>;
|
|
978
|
+
slot?: Lowercase<string>;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
declare const ImagetagName = "s-image";
|
|
495
982
|
|
|
983
|
+
declare module 'preact' {
|
|
496
984
|
namespace createElement.JSX {
|
|
497
985
|
interface IntrinsicElements {
|
|
498
|
-
|
|
986
|
+
[IcontagName]: IconProps & IconBaseElementProps<IconElement>;
|
|
499
987
|
}
|
|
500
988
|
}
|
|
501
989
|
}
|
|
502
990
|
|
|
503
991
|
declare global {
|
|
504
992
|
interface HTMLElementTagNameMap {
|
|
505
|
-
|
|
993
|
+
[IcontagName]: IconElement;
|
|
506
994
|
}
|
|
507
995
|
}
|
|
508
996
|
|
|
@@ -512,25 +1000,28 @@ export interface IconElement extends IconProps, Omit<HTMLElement, 'id'> {
|
|
|
512
1000
|
export interface IconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
|
|
513
1001
|
tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
514
1002
|
size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
515
|
-
type?: '' |
|
|
1003
|
+
type?: '' | ReducedIconTypes;
|
|
516
1004
|
}
|
|
517
1005
|
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
1006
|
+
export interface IconBaseElementProps<TClass = HTMLElement> {
|
|
1007
|
+
key?: preact.Key;
|
|
1008
|
+
ref?: preact.Ref<TClass>;
|
|
1009
|
+
slot?: Lowercase<string>;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
declare const IcontagName = "s-icon";
|
|
523
1013
|
|
|
1014
|
+
declare module 'preact' {
|
|
524
1015
|
namespace createElement.JSX {
|
|
525
1016
|
interface IntrinsicElements {
|
|
526
|
-
|
|
1017
|
+
[HeadingtagName]: HeadingProps & HeadingBaseElementPropsWithChildren<HeadingElement>;
|
|
527
1018
|
}
|
|
528
1019
|
}
|
|
529
1020
|
}
|
|
530
1021
|
|
|
531
1022
|
declare global {
|
|
532
1023
|
interface HTMLElementTagNameMap {
|
|
533
|
-
|
|
1024
|
+
[HeadingtagName]: HeadingElement;
|
|
534
1025
|
}
|
|
535
1026
|
}
|
|
536
1027
|
|
|
@@ -540,180 +1031,421 @@ export interface HeadingElement extends HeadingProps, Omit<HTMLElement, 'id'> {
|
|
|
540
1031
|
export interface HeadingProps extends Pick<HeadingProps$1, 'accessibilityRole' | 'id'> {
|
|
541
1032
|
}
|
|
542
1033
|
|
|
1034
|
+
export interface HeadingBaseElementPropsWithChildren<TClass = HTMLElement> extends HeadingBaseElementProps<TClass> {
|
|
1035
|
+
children?: preact.ComponentChildren;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
export interface HeadingBaseElementProps<TClass = HTMLElement> {
|
|
1039
|
+
key?: preact.Key;
|
|
1040
|
+
ref?: preact.Ref<TClass>;
|
|
1041
|
+
slot?: Lowercase<string>;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
declare const HeadingtagName = "s-heading";
|
|
1045
|
+
|
|
543
1046
|
declare module 'preact' {
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
1047
|
+
namespace createElement.JSX {
|
|
1048
|
+
interface IntrinsicElements {
|
|
1049
|
+
[FormtagName]: FormProps & FormBaseElementPropsWithChildren<FormElement>;
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
declare global {
|
|
1055
|
+
interface HTMLElementTagNameMap {
|
|
1056
|
+
[FormtagName]: FormElement;
|
|
547
1057
|
}
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
export interface FormProps extends FormBaseProps, FormEvents {
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
export interface FormElement extends Omit<FormBaseProps, 'children'>, Omit<FormEvents, 'onSubmit'>, Omit<HTMLElement, 'id' | 'onsubmit'> {
|
|
1064
|
+
onsubmit: FormEvents['onSubmit'];
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
export interface FormElementEvents {
|
|
1068
|
+
/**
|
|
1069
|
+
* A callback that is run when the form is submitted.
|
|
1070
|
+
*
|
|
1071
|
+
* Use `event.waitUntil` to signal how long it takes to save the data,
|
|
1072
|
+
* and whether it was successful or not.
|
|
1073
|
+
*/
|
|
1074
|
+
submit?: ((event: CallbackEvent<typeof FormtagName>) => void) | null;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
export interface FormEvents extends Pick<FormProps$1, 'onSubmit'> {
|
|
1078
|
+
onSubmit?: () => void;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
export interface FormBaseProps extends Pick<FormProps$1, 'id' | 'disabled'> {
|
|
1082
|
+
}
|
|
548
1083
|
|
|
1084
|
+
export interface FormBaseElementPropsWithChildren<TClass = HTMLElement> extends FormBaseElementProps<TClass> {
|
|
1085
|
+
children?: preact.ComponentChildren;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
export interface FormBaseElementProps<TClass = HTMLElement> {
|
|
1089
|
+
key?: preact.Key;
|
|
1090
|
+
ref?: preact.Ref<TClass>;
|
|
1091
|
+
slot?: Lowercase<string>;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
declare const FormtagName = "s-form";
|
|
1095
|
+
|
|
1096
|
+
declare module 'preact' {
|
|
549
1097
|
namespace createElement.JSX {
|
|
550
1098
|
interface IntrinsicElements {
|
|
551
|
-
|
|
1099
|
+
[EmailFieldtagName]: EmailFieldProps & EmailFieldBaseElementProps<EmailFieldElement>;
|
|
552
1100
|
}
|
|
553
1101
|
}
|
|
554
1102
|
}
|
|
555
1103
|
|
|
556
1104
|
declare global {
|
|
557
1105
|
interface HTMLElementTagNameMap {
|
|
558
|
-
|
|
1106
|
+
[EmailFieldtagName]: EmailFieldElement;
|
|
559
1107
|
}
|
|
560
1108
|
}
|
|
561
1109
|
|
|
562
|
-
export interface
|
|
563
|
-
onsubmit: FormProps['onSubmit'];
|
|
1110
|
+
export interface EmailFieldProps extends EmailFieldBaseProps, EmailFieldEvents {
|
|
564
1111
|
}
|
|
565
1112
|
|
|
566
|
-
export interface
|
|
567
|
-
|
|
1113
|
+
export interface EmailFieldElement extends EmailFieldBaseProps, Omit<EmailFieldEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
1114
|
+
onblur: EmailFieldEvents['onBlur'];
|
|
1115
|
+
onchange: EmailFieldEvents['onChange'];
|
|
1116
|
+
onfocus: EmailFieldEvents['onFocus'];
|
|
1117
|
+
oninput: EmailFieldEvents['onInput'];
|
|
568
1118
|
}
|
|
569
1119
|
|
|
1120
|
+
export interface EmailFieldElementEvents {
|
|
1121
|
+
/**
|
|
1122
|
+
* Callback when the element loses focus.
|
|
1123
|
+
*/
|
|
1124
|
+
blur?: ((event: CallbackEvent<typeof EmailFieldtagName>) => void) | null;
|
|
1125
|
+
/**
|
|
1126
|
+
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
1127
|
+
*/
|
|
1128
|
+
change?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
1129
|
+
/**
|
|
1130
|
+
* Callback when the element receives focus.
|
|
1131
|
+
*/
|
|
1132
|
+
focus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
1133
|
+
/**
|
|
1134
|
+
* Callback when the user makes any changes in the field.
|
|
1135
|
+
*/
|
|
1136
|
+
input?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
export interface EmailFieldEvents extends Pick<EmailFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
export interface EmailFieldBaseProps extends Pick<EmailFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'maxLength' | 'minLength' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'name' | 'placeholder' | 'readOnly' | 'required' | 'value'> {
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
export interface EmailFieldBaseElementProps<TClass = HTMLElement> {
|
|
1146
|
+
key?: preact.Key;
|
|
1147
|
+
ref?: preact.Ref<TClass>;
|
|
1148
|
+
slot?: Lowercase<string>;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
declare const EmailFieldtagName = "s-email-field";
|
|
1152
|
+
|
|
570
1153
|
declare module 'preact' {
|
|
571
1154
|
namespace createElement.JSX {
|
|
572
1155
|
interface IntrinsicElements {
|
|
573
|
-
|
|
1156
|
+
[DropZonetagName]: DropZoneProps & DropZoneBaseElementProps<DropZoneElement>;
|
|
574
1157
|
}
|
|
575
1158
|
}
|
|
576
1159
|
}
|
|
577
1160
|
|
|
578
1161
|
declare global {
|
|
579
1162
|
interface HTMLElementTagNameMap {
|
|
580
|
-
|
|
1163
|
+
[DropZonetagName]: DropZoneElement;
|
|
581
1164
|
}
|
|
582
1165
|
}
|
|
583
1166
|
|
|
584
|
-
export interface
|
|
585
|
-
|
|
586
|
-
|
|
1167
|
+
export interface DropZoneProps extends DropZoneBaseProps, DropZoneEvents {
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
export interface DropZoneElement extends DropZoneBaseProps, Omit<DropZoneEvents, 'onDropRejected' | 'onInput'>, Omit<HTMLElement, 'id' | 'oninput'> {
|
|
1171
|
+
ondroprejected: DropZoneEvents['onDropRejected'];
|
|
1172
|
+
oninput: DropZoneEvents['onInput'];
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
export interface DropZoneElementEvents {
|
|
1176
|
+
/**
|
|
1177
|
+
* Callback when rejected files are dropped. Files are rejected based on the `accept` prop.
|
|
1178
|
+
*/
|
|
1179
|
+
droprejected?: ((event: CallbackEvent<typeof DropZonetagName>) => void) | null;
|
|
1180
|
+
/**
|
|
1181
|
+
* Callback when the user makes any changes in the field.
|
|
1182
|
+
*/
|
|
1183
|
+
input?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
export interface DropZoneEvents extends Pick<DropZoneProps$1, 'onDropRejected' | 'onInput'> {
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
export interface DropZoneBaseProps extends Pick<DropZoneProps$1, 'accept' | 'accessibilityLabel' | 'disabled' | 'error' | 'id' | 'label' | 'multiple' | 'name' | 'required'> {
|
|
587
1190
|
}
|
|
588
1191
|
|
|
589
|
-
export interface
|
|
1192
|
+
export interface DropZoneBaseElementProps<TClass = HTMLElement> {
|
|
1193
|
+
key?: preact.Key;
|
|
1194
|
+
ref?: preact.Ref<TClass>;
|
|
1195
|
+
slot?: Lowercase<string>;
|
|
590
1196
|
}
|
|
591
1197
|
|
|
1198
|
+
declare const DropZonetagName = "s-drop-zone";
|
|
1199
|
+
|
|
592
1200
|
declare module 'preact' {
|
|
593
1201
|
namespace createElement.JSX {
|
|
594
1202
|
interface IntrinsicElements {
|
|
595
|
-
|
|
1203
|
+
[ClipboardItemtagName]: ClipboardItemProps & ClipboardItemBaseElementProps<ClipboardItemElement>;
|
|
596
1204
|
}
|
|
597
1205
|
}
|
|
598
1206
|
}
|
|
599
1207
|
|
|
600
1208
|
declare global {
|
|
601
1209
|
interface HTMLElementTagNameMap {
|
|
602
|
-
|
|
1210
|
+
[ClipboardItemtagName]: ClipboardItemElement;
|
|
603
1211
|
}
|
|
604
1212
|
}
|
|
605
1213
|
|
|
606
|
-
export interface
|
|
607
|
-
|
|
608
|
-
|
|
1214
|
+
export interface ClipboardItemProps extends ClipboardItemBaseProps, ClipboardItemEvents {
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
export interface ClipboardItemElement extends ClipboardItemBaseProps, Omit<ClipboardItemEvents, 'onCopy' | 'onCopyError'>, Omit<HTMLElement, 'id' | 'oncopy'> {
|
|
1218
|
+
oncopy: ClipboardItemEvents['onCopy'];
|
|
1219
|
+
oncopyerror: ClipboardItemEvents['onCopyError'];
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
export interface ClipboardItemElementEvents {
|
|
1223
|
+
/**
|
|
1224
|
+
* Callback run when the copy to clipboard succeeds.
|
|
1225
|
+
*/
|
|
1226
|
+
copy?: ((event: CallbackEvent<typeof ClipboardItemtagName>) => void) | null;
|
|
1227
|
+
/**
|
|
1228
|
+
* Callback run when the copy to clipboard fails.
|
|
1229
|
+
*/
|
|
1230
|
+
copyerror?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
export interface ClipboardItemEvents extends Pick<ClipboardItemProps$1, 'onCopy' | 'onCopyError'> {
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
export interface ClipboardItemBaseProps extends Pick<ClipboardItemProps$1, 'id' | 'text'> {
|
|
609
1237
|
}
|
|
610
1238
|
|
|
611
|
-
export interface
|
|
1239
|
+
export interface ClipboardItemBaseElementProps<TClass = HTMLElement> {
|
|
1240
|
+
key?: preact.Key;
|
|
1241
|
+
ref?: preact.Ref<TClass>;
|
|
1242
|
+
slot?: Lowercase<string>;
|
|
612
1243
|
}
|
|
613
1244
|
|
|
1245
|
+
declare const ClipboardItemtagName = "s-clipboard-item";
|
|
1246
|
+
|
|
614
1247
|
declare module 'preact' {
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
1248
|
+
namespace createElement.JSX {
|
|
1249
|
+
interface IntrinsicElements {
|
|
1250
|
+
[CheckboxtagName]: CheckboxProps & CheckboxBaseElementProps<CheckboxElement>;
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
declare global {
|
|
1256
|
+
interface HTMLElementTagNameMap {
|
|
1257
|
+
[CheckboxtagName]: CheckboxElement;
|
|
618
1258
|
}
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
export interface CheckboxProps extends CheckboxBaseProps, CheckboxEvents {
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
export interface CheckboxElement extends CheckboxBaseProps, Omit<CheckboxEvents, 'onChange'>, Omit<HTMLElement, 'id' | 'onchange'> {
|
|
1265
|
+
onchange: CheckboxEvents['onChange'];
|
|
1266
|
+
}
|
|
619
1267
|
|
|
1268
|
+
export interface CheckboxElementEvents {
|
|
1269
|
+
/**
|
|
1270
|
+
* A callback that is run whenever the control is changed.
|
|
1271
|
+
*/
|
|
1272
|
+
change?: ((event: CallbackEvent<typeof CheckboxtagName>) => void) | null;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
export interface CheckboxEvents extends Pick<CheckboxProps$1, 'onChange'> {
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
export interface CheckboxBaseProps extends Pick<CheckboxProps$1, 'accessibilityLabel' | 'checked' | 'command' | 'commandFor' | 'defaultChecked' | 'disabled' | 'error' | 'id' | 'label' | 'name' | 'required' | 'value'> {
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
export interface CheckboxBaseElementProps<TClass = HTMLElement> {
|
|
1282
|
+
key?: preact.Key;
|
|
1283
|
+
ref?: preact.Ref<TClass>;
|
|
1284
|
+
slot?: Lowercase<string>;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
declare const CheckboxtagName = "s-checkbox";
|
|
1288
|
+
|
|
1289
|
+
declare module 'preact' {
|
|
620
1290
|
namespace createElement.JSX {
|
|
621
1291
|
interface IntrinsicElements {
|
|
622
|
-
|
|
1292
|
+
[ButtontagName]: ButtonProps & ButtonBaseElementPropsWithChildren<ButtonElement>;
|
|
623
1293
|
}
|
|
624
1294
|
}
|
|
625
1295
|
}
|
|
626
1296
|
|
|
627
1297
|
declare global {
|
|
628
1298
|
interface HTMLElementTagNameMap {
|
|
629
|
-
|
|
1299
|
+
[ButtontagName]: ButtonElement;
|
|
630
1300
|
}
|
|
631
1301
|
}
|
|
632
1302
|
|
|
633
|
-
export interface
|
|
634
|
-
|
|
1303
|
+
export interface ButtonProps extends ButtonBaseProps, ButtonEvents {
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
export interface ButtonElement extends ButtonBaseProps, Omit<ButtonEvents, 'onClick'>, Omit<HTMLElement, 'id' | 'onclick'> {
|
|
1307
|
+
onclick: ButtonEvents['onClick'];
|
|
635
1308
|
}
|
|
636
1309
|
|
|
637
|
-
export interface
|
|
638
|
-
|
|
1310
|
+
export interface ButtonElementEvents {
|
|
1311
|
+
/**
|
|
1312
|
+
* Callback when the button is activated.
|
|
1313
|
+
* This will be called before the action indicated by `type`.
|
|
1314
|
+
*/
|
|
1315
|
+
click?: ((event: CallbackEvent<typeof ButtontagName>) => void) | null;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
export interface ButtonEvents extends Pick<ButtonProps$1, 'onClick'> {
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
export interface ButtonBaseProps extends Pick<ButtonProps$1, 'accessibilityLabel' | 'command' | 'commandFor' | 'disabled' | 'href' | 'id' | 'inlineSize' | 'loading' | 'target' | 'tone' | 'type' | 'variant'> {
|
|
1322
|
+
target?: Extract<ButtonProps$1['target'], 'auto' | '_blank'>;
|
|
639
1323
|
tone?: Extract<ButtonProps$1['tone'], 'auto' | 'neutral' | 'critical'>;
|
|
640
1324
|
type?: Extract<ButtonProps$1['type'], 'submit' | 'button'>;
|
|
641
1325
|
variant?: Extract<ButtonProps$1['variant'], 'auto' | 'primary' | 'secondary'>;
|
|
642
1326
|
}
|
|
643
1327
|
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
1328
|
+
export interface ButtonBaseElementPropsWithChildren<TClass = HTMLElement> extends ButtonBaseElementProps<TClass> {
|
|
1329
|
+
children?: preact.ComponentChildren;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
export interface ButtonBaseElementProps<TClass = HTMLElement> {
|
|
1333
|
+
key?: preact.Key;
|
|
1334
|
+
ref?: preact.Ref<TClass>;
|
|
1335
|
+
slot?: Lowercase<string>;
|
|
1336
|
+
}
|
|
649
1337
|
|
|
1338
|
+
declare const ButtontagName = "s-button";
|
|
1339
|
+
|
|
1340
|
+
declare module 'preact' {
|
|
650
1341
|
namespace createElement.JSX {
|
|
651
1342
|
interface IntrinsicElements {
|
|
652
|
-
|
|
1343
|
+
[BoxtagName]: BoxProps & BoxBaseElementPropsWithChildren<BoxElement>;
|
|
653
1344
|
}
|
|
654
1345
|
}
|
|
655
1346
|
}
|
|
656
1347
|
|
|
657
1348
|
declare global {
|
|
658
1349
|
interface HTMLElementTagNameMap {
|
|
659
|
-
|
|
1350
|
+
[BoxtagName]: BoxElement;
|
|
660
1351
|
}
|
|
661
1352
|
}
|
|
662
1353
|
|
|
663
1354
|
export interface BoxElement extends BoxProps, Omit<HTMLElement, 'id'> {
|
|
664
1355
|
}
|
|
665
1356
|
|
|
666
|
-
export interface BoxProps extends Pick<BoxProps$1, 'accessibilityLabel' | 'accessibilityRole' | 'accessibilityVisibility' | 'background' | 'border' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'display' | 'id' | 'maxBlockSize' | 'maxInlineSize' | 'minBlockSize' | 'minInlineSize' | 'overflow' | 'padding' | 'paddingBlock' | 'paddingBlockEnd' | 'paddingBlockStart' | 'paddingInline' | 'paddingInlineEnd' | 'paddingInlineStart'> {
|
|
1357
|
+
export interface BoxProps extends Pick<BoxProps$1, 'accessibilityLabel' | 'accessibilityRole' | 'accessibilityVisibility' | 'background' | 'blockSize' | 'border' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'display' | 'id' | 'inlineSize' | 'maxBlockSize' | 'maxInlineSize' | 'minBlockSize' | 'minInlineSize' | 'overflow' | 'padding' | 'paddingBlock' | 'paddingBlockEnd' | 'paddingBlockStart' | 'paddingInline' | 'paddingInlineEnd' | 'paddingInlineStart'> {
|
|
667
1358
|
background?: Extract<BoxProps$1['background'], 'transparent' | 'subdued' | 'base'>;
|
|
668
1359
|
border?: BorderShorthand;
|
|
669
1360
|
borderWidth?: MaybeAllValuesShorthandProperty<ReducedBorderSizeKeyword> | '';
|
|
670
1361
|
borderRadius?: MaybeAllValuesShorthandProperty<Extract<BoxProps$1['borderRadius'], 'none' | 'small-100' | 'small' | 'base' | 'large' | 'large-100' | 'max'>>;
|
|
671
1362
|
}
|
|
672
1363
|
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
1364
|
+
export interface BoxBaseElementPropsWithChildren<TClass = HTMLElement> extends BoxBaseElementProps<TClass> {
|
|
1365
|
+
children?: preact.ComponentChildren;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
export interface BoxBaseElementProps<TClass = HTMLElement> {
|
|
1369
|
+
key?: preact.Key;
|
|
1370
|
+
ref?: preact.Ref<TClass>;
|
|
1371
|
+
slot?: Lowercase<string>;
|
|
1372
|
+
}
|
|
678
1373
|
|
|
1374
|
+
declare const BoxtagName = "s-box";
|
|
1375
|
+
|
|
1376
|
+
declare module 'preact' {
|
|
679
1377
|
namespace createElement.JSX {
|
|
680
1378
|
interface IntrinsicElements {
|
|
681
|
-
|
|
1379
|
+
[BannertagName]: BannerProps & BannerBaseElementPropsWithChildren<BannerElement>;
|
|
682
1380
|
}
|
|
683
1381
|
}
|
|
684
1382
|
}
|
|
685
1383
|
|
|
686
1384
|
declare global {
|
|
687
1385
|
interface HTMLElementTagNameMap {
|
|
688
|
-
|
|
1386
|
+
[BannertagName]: BannerElement;
|
|
689
1387
|
}
|
|
690
1388
|
}
|
|
691
1389
|
|
|
692
|
-
export interface
|
|
693
|
-
|
|
694
|
-
|
|
1390
|
+
export interface BannerProps extends BannerBaseProps, BannerEvents {
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
export interface BannerElement extends BannerBaseProps, Omit<BannerEvents, 'onAfterHide' | 'onDismiss'>, Omit<HTMLElement, 'id' | 'title' | 'hidden'> {
|
|
1394
|
+
onafterhide: BannerEvents['onAfterHide'];
|
|
1395
|
+
ondismiss: BannerEvents['onDismiss'];
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
export interface BannerElementEvents {
|
|
1399
|
+
/**
|
|
1400
|
+
* Event handler when the banner has fully hidden.
|
|
1401
|
+
*
|
|
1402
|
+
* The `hidden` property will be `true` when this event fires.
|
|
1403
|
+
*
|
|
1404
|
+
* @implementation If implementations animate the hiding of the banner,
|
|
1405
|
+
* this event must fire after the banner has fully hidden.
|
|
1406
|
+
* We can add an `onHide` event in future if we want to provide a hook for the start of the animation.
|
|
1407
|
+
*/
|
|
1408
|
+
afterhide?: ((event: CallbackEvent<typeof BannertagName>) => void) | null;
|
|
1409
|
+
/**
|
|
1410
|
+
* Event handler when the banner is dismissed by the user.
|
|
1411
|
+
*
|
|
1412
|
+
* This does not fire when setting `hidden` manually.
|
|
1413
|
+
*
|
|
1414
|
+
* The `hidden` property will be `false` when this event fires.
|
|
1415
|
+
*/
|
|
1416
|
+
dismiss?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
export interface BannerEvents extends Pick<BannerProps$1, 'onAfterHide' | 'onDismiss'> {
|
|
695
1420
|
}
|
|
696
1421
|
|
|
697
|
-
export interface
|
|
1422
|
+
export interface BannerBaseProps extends Pick<BannerProps$1, 'collapsible' | 'dismissible' | 'heading' | 'hidden' | 'id' | 'tone'> {
|
|
698
1423
|
tone?: Extract<BannerProps$1['tone'], 'auto' | 'info' | 'success' | 'warning' | 'critical'>;
|
|
699
1424
|
}
|
|
700
1425
|
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
1426
|
+
export interface BannerBaseElementPropsWithChildren<TClass = HTMLElement> extends BannerBaseElementProps<TClass> {
|
|
1427
|
+
children?: preact.ComponentChildren;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
export interface BannerBaseElementProps<TClass = HTMLElement> {
|
|
1431
|
+
key?: preact.Key;
|
|
1432
|
+
ref?: preact.Ref<TClass>;
|
|
1433
|
+
slot?: Lowercase<string>;
|
|
1434
|
+
}
|
|
706
1435
|
|
|
1436
|
+
declare const BannertagName = "s-banner";
|
|
1437
|
+
|
|
1438
|
+
declare module 'preact' {
|
|
707
1439
|
namespace createElement.JSX {
|
|
708
1440
|
interface IntrinsicElements {
|
|
709
|
-
|
|
1441
|
+
[tagName]: AbbreviationProps & BaseElementPropsWithChildren<AbbreviationElement>;
|
|
710
1442
|
}
|
|
711
1443
|
}
|
|
712
1444
|
}
|
|
713
1445
|
|
|
714
1446
|
declare global {
|
|
715
1447
|
interface HTMLElementTagNameMap {
|
|
716
|
-
|
|
1448
|
+
[tagName]: AbbreviationElement;
|
|
717
1449
|
}
|
|
718
1450
|
}
|
|
719
1451
|
|
|
@@ -723,9 +1455,22 @@ export interface AbbreviationElement extends AbbreviationProps, Omit<HTMLElement
|
|
|
723
1455
|
export interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title'> {
|
|
724
1456
|
}
|
|
725
1457
|
|
|
1458
|
+
export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
1459
|
+
children?: preact.ComponentChildren;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
export interface BaseElementProps<TClass = HTMLElement> {
|
|
1463
|
+
key?: preact.Key;
|
|
1464
|
+
ref?: preact.Ref<TClass>;
|
|
1465
|
+
slot?: Lowercase<string>;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
declare const tagName = "s-abbreviation";
|
|
1469
|
+
|
|
1470
|
+
import { CallbackEvent } from "../../../../../src/surfaces/checkout/components/Banner";
|
|
726
1471
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
727
|
-
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
728
|
-
import {
|
|
1472
|
+
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, CheckboxProps$1, ClipboardItemProps$1, DropZoneProps$1, EmailFieldProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MapMarkerProps$1, MapProps$1, MaybeAllValuesShorthandProperty, ModalProps$1, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, PhoneFieldProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
1473
|
+
import { ReducedIconTypes } from "../../../../../src/surfaces/checkout/components/Icon";
|
|
729
1474
|
import type { ExtensionTargets } from '../extension-targets';
|
|
730
1475
|
type Target = ExtensionTargets['customer-account.profile.addresses.render-after'];
|
|
731
1476
|
export type Api = Target['api'];
|