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