@shopify/ui-extensions 2025.10.0-rc.6 → 2025.10.0-rc.8
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/AdminAction.d.ts +1 -1
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +1 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Badge.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Banner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Box.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Button.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Choice.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Clickable.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Divider.d.ts +1 -1
- package/build/ts/surfaces/admin/components/EmailField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Grid.d.ts +1 -1
- package/build/ts/surfaces/admin/components/GridItem.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Heading.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Icon.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Image.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Link.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ListItem.d.ts +1 -1
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/NumberField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Option.d.ts +1 -1
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +1 -1
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Page.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +1 -1
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +1 -1
- package/build/ts/surfaces/admin/components/SearchField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Section.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Select.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Spinner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Stack.d.ts +1 -1
- 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/Switch.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Table.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableBody.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableCell.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableRow.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Text.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TextArea.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TextField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Thumbnail.d.ts +133 -0
- package/build/ts/surfaces/admin/components/URLField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +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/components/shared.d.ts +25 -1
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +54 -1
- package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +54 -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/Avatar/Avatar.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Avatar.d.ts +66 -0
- 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/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/StandardComponents.d.ts.map +1 -1
- 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 +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +979 -173
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +979 -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/AdminAction.d.ts +1 -1
- package/src/surfaces/admin/components/AdminBlock.d.ts +1 -1
- package/src/surfaces/admin/components/AdminPrintAction/examples/default.tsx +1 -1
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
- package/src/surfaces/admin/components/Badge.d.ts +1 -1
- package/src/surfaces/admin/components/Banner.d.ts +1 -1
- package/src/surfaces/admin/components/Box.d.ts +1 -1
- package/src/surfaces/admin/components/Button.d.ts +1 -1
- package/src/surfaces/admin/components/Checkbox.d.ts +1 -1
- package/src/surfaces/admin/components/Choice.d.ts +1 -1
- package/src/surfaces/admin/components/ChoiceList.d.ts +1 -1
- package/src/surfaces/admin/components/Clickable.d.ts +1 -1
- package/src/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/src/surfaces/admin/components/Divider.d.ts +1 -1
- package/src/surfaces/admin/components/EmailField.d.ts +1 -1
- package/src/surfaces/admin/components/Form.d.ts +1 -1
- package/src/surfaces/admin/components/Grid.d.ts +1 -1
- package/src/surfaces/admin/components/GridItem.d.ts +1 -1
- package/src/surfaces/admin/components/Heading.d.ts +1 -1
- package/src/surfaces/admin/components/Icon.d.ts +1 -1
- package/src/surfaces/admin/components/Image.d.ts +1 -1
- package/src/surfaces/admin/components/Link.d.ts +1 -1
- package/src/surfaces/admin/components/ListItem.d.ts +1 -1
- package/src/surfaces/admin/components/MoneyField.d.ts +1 -1
- package/src/surfaces/admin/components/NumberField.d.ts +1 -1
- package/src/surfaces/admin/components/Option.d.ts +1 -1
- package/src/surfaces/admin/components/OptionGroup.d.ts +1 -1
- package/src/surfaces/admin/components/OrderedList.d.ts +1 -1
- package/src/surfaces/admin/components/Page.d.ts +1 -1
- package/src/surfaces/admin/components/Paragraph.d.ts +1 -1
- package/src/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/src/surfaces/admin/components/QueryContainer.d.ts +1 -1
- package/src/surfaces/admin/components/SearchField.d.ts +1 -1
- package/src/surfaces/admin/components/Section.d.ts +1 -1
- package/src/surfaces/admin/components/Select.d.ts +1 -1
- package/src/surfaces/admin/components/Spinner.d.ts +1 -1
- package/src/surfaces/admin/components/Stack.d.ts +1 -1
- package/src/surfaces/admin/components/StandardComponents.ts +1 -0
- package/src/surfaces/admin/components/Switch.d.ts +1 -1
- package/src/surfaces/admin/components/Table.d.ts +1 -1
- package/src/surfaces/admin/components/TableBody.d.ts +1 -1
- package/src/surfaces/admin/components/TableCell.d.ts +1 -1
- package/src/surfaces/admin/components/TableHeader.d.ts +1 -1
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
- package/src/surfaces/admin/components/TableRow.d.ts +1 -1
- package/src/surfaces/admin/components/Text.d.ts +1 -1
- package/src/surfaces/admin/components/TextArea.d.ts +1 -1
- package/src/surfaces/admin/components/TextField.d.ts +1 -1
- package/src/surfaces/admin/components/Thumbnail.d.ts +133 -0
- package/src/surfaces/admin/components/URLField.d.ts +1 -1
- package/src/surfaces/admin/components/UnorderedList.d.ts +1 -1
- 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/admin/components/shared.d.ts +25 -1
- package/src/surfaces/admin/components.d.ts +672 -202
- 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/Avatar/examples/basic-Avatar-js.example.ts +9 -0
- package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-preact.example.tsx +9 -0
- package/src/surfaces/customer-account/components/Avatar.d.ts +66 -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
- package/src/surfaces/customer-account/components/StandardComponents.ts +1 -0
- package/src/surfaces/customer-account/components.d.ts +67 -0
|
@@ -100,6 +100,58 @@ export interface UnorderedListProps extends UnorderedListProps$1 {
|
|
|
100
100
|
declare const UnorderedListtagName = 's-unordered-list';
|
|
101
101
|
declare const UnorderedListBaseClass: typeof globalThis.HTMLElement;
|
|
102
102
|
|
|
103
|
+
declare module 'preact' {
|
|
104
|
+
namespace createElement.JSX {
|
|
105
|
+
interface IntrinsicElements {
|
|
106
|
+
[ThumbnailtagName]: ThumbnailJSXProps & ThumbnailPreactBaseElementProps<Thumbnail>;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare global {
|
|
112
|
+
interface HTMLElementTagNameMap {
|
|
113
|
+
[ThumbnailtagName]: Thumbnail;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface ThumbnailJSXProps extends Partial<ThumbnailProps>, Pick<ThumbnailProps$1, 'id'> {
|
|
118
|
+
onLoad?: ((event: CallbackEvent<typeof ThumbnailtagName>) => void) | null;
|
|
119
|
+
onError?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface ThumbnailClickOptions {
|
|
123
|
+
/**
|
|
124
|
+
* The event you want to influence the synthetic click.
|
|
125
|
+
*/
|
|
126
|
+
sourceEvent?: ThumbnailActivationEventEsque;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface ThumbnailActivationEventEsque {
|
|
130
|
+
shiftKey: boolean;
|
|
131
|
+
metaKey: boolean;
|
|
132
|
+
ctrlKey: boolean;
|
|
133
|
+
button: number;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface ThumbnailPreactBaseElementProps<TClass extends HTMLElement> {
|
|
137
|
+
/** Assigns a unique key to this element. */
|
|
138
|
+
key?: preact.Key;
|
|
139
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
140
|
+
ref?: preact.Ref<TClass>;
|
|
141
|
+
/** Assigns this element to a parent's slot. */
|
|
142
|
+
slot?: Lowercase<string>;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface ThumbnailProps extends Required<Pick<ThumbnailProps$1, 'src' | 'alt'>> {
|
|
146
|
+
size: Extract<
|
|
147
|
+
ThumbnailProps$1['size'],
|
|
148
|
+
'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'
|
|
149
|
+
>;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
declare const ThumbnailtagName = 's-thumbnail';
|
|
153
|
+
declare const ThumbnailBaseClass: typeof globalThis.HTMLElement;
|
|
154
|
+
|
|
103
155
|
declare module 'preact' {
|
|
104
156
|
namespace createElement.JSX {
|
|
105
157
|
interface IntrinsicElements {
|
|
@@ -3426,7 +3478,7 @@ import { PasswordField, PasswordFieldProps } from "../../../../../src/surfaces/a
|
|
|
3426
3478
|
import { QueryContainer } from "../../../../../src/surfaces/admin/components/QueryContainer";
|
|
3427
3479
|
import { RequiredSectionProps, Section } from "../../../../../src/surfaces/admin/components/Section";
|
|
3428
3480
|
import { Select } from "../../../../../src/surfaces/admin/components/Select";
|
|
3429
|
-
import { BadgeProps$1, BannerProps$1, BoxProps$1, ButtonProps$1, CheckboxProps$1, ChoiceListProps$1, ChoiceProps$1, ClickableProps$1, ComponentChild, DatePickerProps$1, DividerProps$1, EmailFieldProps$1, GridItemProps$1, GridProps$1, HeadingProps$1, IconProps$1, IconType, ImageProps$1, InteractionProps, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, MoneyFieldProps$1, NumberFieldProps$1, OptionGroupProps$1, OptionProps$1, OrderedListProps$1, ParagraphProps$1, PasswordFieldProps$1, QueryContainerProps$1, SectionProps$1, SelectProps$1, SpinnerProps$1, StackProps$1, TableBodyProps$1, TableCellProps$1, TableHeaderProps$1, TableHeaderRowProps$1, TableProps$1, TableRowProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, URLFieldProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/admin/components/shared";
|
|
3481
|
+
import { BadgeProps$1, BannerProps$1, BoxProps$1, ButtonProps$1, CheckboxProps$1, ChoiceListProps$1, ChoiceProps$1, ClickableProps$1, ComponentChild, DatePickerProps$1, DividerProps$1, EmailFieldProps$1, GridItemProps$1, GridProps$1, HeadingProps$1, IconProps$1, IconType, ImageProps$1, InteractionProps, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, MoneyFieldProps$1, NumberFieldProps$1, OptionGroupProps$1, OptionProps$1, OrderedListProps$1, ParagraphProps$1, PasswordFieldProps$1, QueryContainerProps$1, SectionProps$1, SelectProps$1, SpinnerProps$1, StackProps$1, TableBodyProps$1, TableCellProps$1, TableHeaderProps$1, TableHeaderRowProps$1, TableProps$1, TableRowProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, ThumbnailProps$1, URLFieldProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/admin/components/shared";
|
|
3430
3482
|
import { Spinner } from "../../../../../src/surfaces/admin/components/Spinner";
|
|
3431
3483
|
import { AlignedStackProps, ResponsiveStackProps, Stack } from "../../../../../src/surfaces/admin/components/Stack";
|
|
3432
3484
|
import { Table } from "../../../../../src/surfaces/admin/components/Table";
|
|
@@ -3437,6 +3489,7 @@ import { TableHeaderRow } from "../../../../../src/surfaces/admin/components/Tab
|
|
|
3437
3489
|
import { TableRow } from "../../../../../src/surfaces/admin/components/TableRow";
|
|
3438
3490
|
import { TextArea, TextAreaProps } from "../../../../../src/surfaces/admin/components/TextArea";
|
|
3439
3491
|
import { TextField, TextFieldProps } from "../../../../../src/surfaces/admin/components/TextField";
|
|
3492
|
+
import { Thumbnail } from "../../../../../src/surfaces/admin/components/Thumbnail";
|
|
3440
3493
|
import { UnorderedList } from "../../../../../src/surfaces/admin/components/UnorderedList";
|
|
3441
3494
|
import { URLField, URLFieldProps } from "../../../../../src/surfaces/admin/components/URLField";
|
|
3442
3495
|
import type { ExtensionTargets } from '../extension-targets';
|
|
@@ -1,32 +1,44 @@
|
|
|
1
1
|
/** VERSION: 0.0.0 **/
|
|
2
|
-
/* eslint-disable import/extensions */
|
|
2
|
+
/* eslint-disable import-x/extensions */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
4
|
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
5
|
/* eslint-disable line-comment-position */
|
|
6
6
|
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
7
|
/* eslint-disable no-var */
|
|
8
|
-
/* eslint-disable import/namespace */
|
|
8
|
+
/* eslint-disable import-x/namespace */
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
10
|
/// <reference lib="DOM" />
|
|
11
11
|
import type {AbbreviationProps$1} from './components-shared.d.ts';
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Used when an element does not have children.
|
|
15
|
+
*/
|
|
16
|
+
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
+
key?: preact.Key;
|
|
18
|
+
ref?: preact.Ref<TClass>;
|
|
19
|
+
slot?: Lowercase<string>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Used when an element has children.
|
|
23
|
+
*/
|
|
24
|
+
export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
25
|
+
children?: preact.ComponentChildren;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare const tagName = "s-abbreviation";
|
|
13
29
|
export interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title'> {
|
|
14
30
|
}
|
|
15
31
|
export interface AbbreviationElement extends AbbreviationProps, Omit<HTMLElement, 'id' | 'title'> {
|
|
16
32
|
}
|
|
17
33
|
declare global {
|
|
18
34
|
interface HTMLElementTagNameMap {
|
|
19
|
-
|
|
35
|
+
[tagName]: AbbreviationElement;
|
|
20
36
|
}
|
|
21
37
|
}
|
|
22
38
|
declare module 'preact' {
|
|
23
|
-
interface BaseProps {
|
|
24
|
-
children?: preact.ComponentChildren;
|
|
25
|
-
slot?: Lowercase<string>;
|
|
26
|
-
}
|
|
27
39
|
namespace createElement.JSX {
|
|
28
40
|
interface IntrinsicElements {
|
|
29
|
-
|
|
41
|
+
[tagName]: AbbreviationProps & BaseElementPropsWithChildren<AbbreviationElement>;
|
|
30
42
|
}
|
|
31
43
|
}
|
|
32
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Banner/Banner.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"Banner.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Banner/Banner.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAI1E,QAAA,MAAM,IAAI,EAAE,6BAuCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,37 +1,76 @@
|
|
|
1
1
|
/** VERSION: 0.0.0 **/
|
|
2
|
-
/* eslint-disable import/extensions */
|
|
2
|
+
/* eslint-disable import-x/extensions */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
4
|
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
5
|
/* eslint-disable line-comment-position */
|
|
6
6
|
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
7
|
/* eslint-disable no-var */
|
|
8
|
-
/* eslint-disable import/namespace */
|
|
8
|
+
/* eslint-disable import-x/namespace */
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
10
|
/// <reference lib="DOM" />
|
|
11
11
|
import type {BannerProps$1} from './components-shared.d.ts';
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Used when an element does not have children.
|
|
15
|
+
*/
|
|
16
|
+
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
+
key?: preact.Key;
|
|
18
|
+
ref?: preact.Ref<TClass>;
|
|
19
|
+
slot?: Lowercase<string>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Used when an element has children.
|
|
23
|
+
*/
|
|
24
|
+
export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
25
|
+
children?: preact.ComponentChildren;
|
|
26
|
+
}
|
|
27
|
+
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
28
|
+
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
declare const tagName = "s-banner";
|
|
32
|
+
export interface BannerBaseProps extends Pick<BannerProps$1, 'collapsible' | 'dismissible' | 'heading' | 'hidden' | 'id' | 'tone'> {
|
|
14
33
|
tone?: Extract<BannerProps$1['tone'], 'auto' | 'info' | 'success' | 'warning' | 'critical'>;
|
|
15
34
|
}
|
|
16
|
-
export interface
|
|
17
|
-
|
|
18
|
-
|
|
35
|
+
export interface BannerEvents extends Pick<BannerProps$1, 'onAfterHide' | 'onDismiss'> {
|
|
36
|
+
}
|
|
37
|
+
export interface BannerElementEvents {
|
|
38
|
+
/**
|
|
39
|
+
* Event handler when the banner has fully hidden.
|
|
40
|
+
*
|
|
41
|
+
* The `hidden` property will be `true` when this event fires.
|
|
42
|
+
*
|
|
43
|
+
* @implementation If implementations animate the hiding of the banner,
|
|
44
|
+
* this event must fire after the banner has fully hidden.
|
|
45
|
+
* We can add an `onHide` event in future if we want to provide a hook for the start of the animation.
|
|
46
|
+
*/
|
|
47
|
+
afterhide?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
48
|
+
/**
|
|
49
|
+
* Event handler when the banner is dismissed by the user.
|
|
50
|
+
*
|
|
51
|
+
* This does not fire when setting `hidden` manually.
|
|
52
|
+
*
|
|
53
|
+
* The `hidden` property will be `false` when this event fires.
|
|
54
|
+
*/
|
|
55
|
+
dismiss?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
56
|
+
}
|
|
57
|
+
export interface BannerElement extends BannerBaseProps, Omit<BannerEvents, 'onAfterHide' | 'onDismiss'>, Omit<HTMLElement, 'id' | 'title' | 'hidden'> {
|
|
58
|
+
onafterhide: BannerEvents['onAfterHide'];
|
|
59
|
+
ondismiss: BannerEvents['onDismiss'];
|
|
60
|
+
}
|
|
61
|
+
export interface BannerProps extends BannerBaseProps, BannerEvents {
|
|
19
62
|
}
|
|
20
63
|
declare global {
|
|
21
64
|
interface HTMLElementTagNameMap {
|
|
22
|
-
|
|
65
|
+
[tagName]: BannerElement;
|
|
23
66
|
}
|
|
24
67
|
}
|
|
25
68
|
declare module 'preact' {
|
|
26
|
-
interface BaseProps {
|
|
27
|
-
children?: preact.ComponentChildren;
|
|
28
|
-
slot?: Lowercase<string>;
|
|
29
|
-
}
|
|
30
69
|
namespace createElement.JSX {
|
|
31
70
|
interface IntrinsicElements {
|
|
32
|
-
|
|
71
|
+
[tagName]: BannerProps & BaseElementPropsWithChildren<BannerElement>;
|
|
33
72
|
}
|
|
34
73
|
}
|
|
35
74
|
}
|
|
36
75
|
|
|
37
|
-
export type { BannerElement, BannerProps };
|
|
76
|
+
export type { BannerBaseProps, BannerElement, BannerElementEvents, BannerEvents, BannerProps };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** VERSION: 0.0.0 **/
|
|
2
|
-
/* eslint-disable import/extensions */
|
|
2
|
+
/* eslint-disable import-x/extensions */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
4
|
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
5
|
/* eslint-disable line-comment-position */
|
|
6
6
|
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
7
|
/* eslint-disable no-var */
|
|
8
|
-
/* eslint-disable import/namespace */
|
|
8
|
+
/* eslint-disable import-x/namespace */
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
10
|
/// <reference lib="DOM" />
|
|
11
11
|
import type {BoxProps$1,MaybeAllValuesShorthandProperty,BorderSizeKeyword, BorderStyleKeyword,ColorKeyword} from './components-shared.d.ts';
|
|
@@ -13,8 +13,23 @@ import type {BoxProps$1,MaybeAllValuesShorthandProperty,BorderSizeKeyword, Borde
|
|
|
13
13
|
export type ReducedBorderSizeKeyword = Extract<BorderSizeKeyword, 'none' | 'base' | 'large' | 'large-100' | 'large-200'>;
|
|
14
14
|
export type ReducedColorKeyword = Extract<ColorKeyword, 'base'>;
|
|
15
15
|
export type BorderShorthand = ReducedBorderSizeKeyword | `${ReducedBorderSizeKeyword} ${ReducedColorKeyword}` | `${ReducedBorderSizeKeyword} ${ReducedColorKeyword} ${BorderStyleKeyword}`;
|
|
16
|
+
/**
|
|
17
|
+
* Used when an element does not have children.
|
|
18
|
+
*/
|
|
19
|
+
export interface BaseElementProps<TClass = HTMLElement> {
|
|
20
|
+
key?: preact.Key;
|
|
21
|
+
ref?: preact.Ref<TClass>;
|
|
22
|
+
slot?: Lowercase<string>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Used when an element has children.
|
|
26
|
+
*/
|
|
27
|
+
export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
28
|
+
children?: preact.ComponentChildren;
|
|
29
|
+
}
|
|
16
30
|
|
|
17
|
-
|
|
31
|
+
declare const tagName = "s-box";
|
|
32
|
+
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'> {
|
|
18
33
|
background?: Extract<BoxProps$1['background'], 'transparent' | 'subdued' | 'base'>;
|
|
19
34
|
border?: BorderShorthand;
|
|
20
35
|
borderWidth?: MaybeAllValuesShorthandProperty<ReducedBorderSizeKeyword> | '';
|
|
@@ -24,17 +39,13 @@ export interface BoxElement extends BoxProps, Omit<HTMLElement, 'id'> {
|
|
|
24
39
|
}
|
|
25
40
|
declare global {
|
|
26
41
|
interface HTMLElementTagNameMap {
|
|
27
|
-
|
|
42
|
+
[tagName]: BoxElement;
|
|
28
43
|
}
|
|
29
44
|
}
|
|
30
45
|
declare module 'preact' {
|
|
31
|
-
interface BaseProps {
|
|
32
|
-
children?: preact.ComponentChildren;
|
|
33
|
-
slot?: Lowercase<string>;
|
|
34
|
-
}
|
|
35
46
|
namespace createElement.JSX {
|
|
36
47
|
interface IntrinsicElements {
|
|
37
|
-
|
|
48
|
+
[tagName]: BoxProps & BaseElementPropsWithChildren<BoxElement>;
|
|
38
49
|
}
|
|
39
50
|
}
|
|
40
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Button/Button.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Button/Button.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAI1E,QAAA,MAAM,IAAI,EAAE,6BAuCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,39 +1,65 @@
|
|
|
1
1
|
/** VERSION: 0.0.0 **/
|
|
2
|
-
/* eslint-disable import/extensions */
|
|
2
|
+
/* eslint-disable import-x/extensions */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
4
|
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
5
|
/* eslint-disable line-comment-position */
|
|
6
6
|
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
7
|
/* eslint-disable no-var */
|
|
8
|
-
/* eslint-disable import/namespace */
|
|
8
|
+
/* eslint-disable import-x/namespace */
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
10
|
/// <reference lib="DOM" />
|
|
11
11
|
import type {ButtonProps$1} from './components-shared.d.ts';
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Used when an element does not have children.
|
|
15
|
+
*/
|
|
16
|
+
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
+
key?: preact.Key;
|
|
18
|
+
ref?: preact.Ref<TClass>;
|
|
19
|
+
slot?: Lowercase<string>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Used when an element has children.
|
|
23
|
+
*/
|
|
24
|
+
export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
25
|
+
children?: preact.ComponentChildren;
|
|
26
|
+
}
|
|
27
|
+
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
28
|
+
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
declare const tagName = "s-button";
|
|
32
|
+
export interface ButtonBaseProps extends Pick<ButtonProps$1, 'accessibilityLabel' | 'command' | 'commandFor' | 'disabled' | 'href' | 'id' | 'inlineSize' | 'loading' | 'target' | 'tone' | 'type' | 'variant'> {
|
|
33
|
+
target?: Extract<ButtonProps$1['target'], 'auto' | '_blank'>;
|
|
15
34
|
tone?: Extract<ButtonProps$1['tone'], 'auto' | 'neutral' | 'critical'>;
|
|
16
35
|
type?: Extract<ButtonProps$1['type'], 'submit' | 'button'>;
|
|
17
36
|
variant?: Extract<ButtonProps$1['variant'], 'auto' | 'primary' | 'secondary'>;
|
|
18
37
|
}
|
|
19
|
-
export interface
|
|
20
|
-
|
|
38
|
+
export interface ButtonEvents extends Pick<ButtonProps$1, 'onClick'> {
|
|
39
|
+
}
|
|
40
|
+
export interface ButtonElementEvents {
|
|
41
|
+
/**
|
|
42
|
+
* Callback when the button is activated.
|
|
43
|
+
* This will be called before the action indicated by `type`.
|
|
44
|
+
*/
|
|
45
|
+
click?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
46
|
+
}
|
|
47
|
+
export interface ButtonElement extends ButtonBaseProps, Omit<ButtonEvents, 'onClick'>, Omit<HTMLElement, 'id' | 'onclick'> {
|
|
48
|
+
onclick: ButtonEvents['onClick'];
|
|
49
|
+
}
|
|
50
|
+
export interface ButtonProps extends ButtonBaseProps, ButtonEvents {
|
|
21
51
|
}
|
|
22
52
|
declare global {
|
|
23
53
|
interface HTMLElementTagNameMap {
|
|
24
|
-
|
|
54
|
+
[tagName]: ButtonElement;
|
|
25
55
|
}
|
|
26
56
|
}
|
|
27
57
|
declare module 'preact' {
|
|
28
|
-
interface BaseProps {
|
|
29
|
-
children?: preact.ComponentChildren;
|
|
30
|
-
slot?: Lowercase<string>;
|
|
31
|
-
}
|
|
32
58
|
namespace createElement.JSX {
|
|
33
59
|
interface IntrinsicElements {
|
|
34
|
-
|
|
60
|
+
[tagName]: ButtonProps & BaseElementPropsWithChildren<ButtonElement>;
|
|
35
61
|
}
|
|
36
62
|
}
|
|
37
63
|
}
|
|
38
64
|
|
|
39
|
-
export type { ButtonElement, ButtonProps };
|
|
65
|
+
export type { ButtonBaseProps, ButtonElement, ButtonElementEvents, ButtonEvents, ButtonProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Checkbox/Checkbox.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAI1E,QAAA,MAAM,IAAI,EAAE,6BA8BX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/** VERSION: 0.0.0 **/
|
|
2
|
+
/* eslint-disable import-x/extensions */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
|
+
/* eslint-disable line-comment-position */
|
|
6
|
+
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
|
+
/* eslint-disable no-var */
|
|
8
|
+
/* eslint-disable import-x/namespace */
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
|
+
/// <reference lib="DOM" />
|
|
11
|
+
import type {CheckboxProps$1} from './components-shared.d.ts';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Used when an element does not have children.
|
|
15
|
+
*/
|
|
16
|
+
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
+
key?: preact.Key;
|
|
18
|
+
ref?: preact.Ref<TClass>;
|
|
19
|
+
slot?: Lowercase<string>;
|
|
20
|
+
}
|
|
21
|
+
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
22
|
+
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
declare const tagName = "s-checkbox";
|
|
26
|
+
export interface CheckboxBaseProps extends Pick<CheckboxProps$1, 'accessibilityLabel' | 'checked' | 'command' | 'commandFor' | 'defaultChecked' | 'disabled' | 'error' | 'id' | 'label' | 'name' | 'required' | 'value'> {
|
|
27
|
+
}
|
|
28
|
+
export interface CheckboxEvents extends Pick<CheckboxProps$1, 'onChange'> {
|
|
29
|
+
}
|
|
30
|
+
export interface CheckboxElementEvents {
|
|
31
|
+
/**
|
|
32
|
+
* A callback that is run whenever the control is changed.
|
|
33
|
+
*/
|
|
34
|
+
change?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
35
|
+
}
|
|
36
|
+
export interface CheckboxElement extends CheckboxBaseProps, Omit<CheckboxEvents, 'onChange'>, Omit<HTMLElement, 'id' | 'onchange'> {
|
|
37
|
+
onchange: CheckboxEvents['onChange'];
|
|
38
|
+
}
|
|
39
|
+
export interface CheckboxProps extends CheckboxBaseProps, CheckboxEvents {
|
|
40
|
+
}
|
|
41
|
+
declare global {
|
|
42
|
+
interface HTMLElementTagNameMap {
|
|
43
|
+
[tagName]: CheckboxElement;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
declare module 'preact' {
|
|
47
|
+
namespace createElement.JSX {
|
|
48
|
+
interface IntrinsicElements {
|
|
49
|
+
[tagName]: CheckboxProps & BaseElementProps<CheckboxElement>;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type { CheckboxBaseProps, CheckboxElement, CheckboxElementEvents, CheckboxEvents, CheckboxProps };
|
|
@@ -1,32 +1,59 @@
|
|
|
1
1
|
/** VERSION: 0.0.0 **/
|
|
2
|
-
/* eslint-disable import/extensions */
|
|
2
|
+
/* eslint-disable import-x/extensions */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
4
|
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
5
|
/* eslint-disable line-comment-position */
|
|
6
6
|
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
7
|
/* eslint-disable no-var */
|
|
8
|
-
/* eslint-disable import/namespace */
|
|
8
|
+
/* eslint-disable import-x/namespace */
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
10
|
/// <reference lib="DOM" />
|
|
11
11
|
import type {ClipboardItemProps$1} from './components-shared.d.ts';
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Used when an element does not have children.
|
|
15
|
+
*/
|
|
16
|
+
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
+
key?: preact.Key;
|
|
18
|
+
ref?: preact.Ref<TClass>;
|
|
19
|
+
slot?: Lowercase<string>;
|
|
14
20
|
}
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
22
|
+
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
declare const tagName = "s-clipboard-item";
|
|
26
|
+
export interface ClipboardItemBaseProps extends Pick<ClipboardItemProps$1, 'id' | 'text'> {
|
|
27
|
+
}
|
|
28
|
+
export interface ClipboardItemEvents extends Pick<ClipboardItemProps$1, 'onCopy' | 'onCopyError'> {
|
|
29
|
+
}
|
|
30
|
+
export interface ClipboardItemElementEvents {
|
|
31
|
+
/**
|
|
32
|
+
* Callback run when the copy to clipboard succeeds.
|
|
33
|
+
*/
|
|
34
|
+
copy?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
35
|
+
/**
|
|
36
|
+
* Callback run when the copy to clipboard fails.
|
|
37
|
+
*/
|
|
38
|
+
copyerror?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
39
|
+
}
|
|
40
|
+
export interface ClipboardItemElement extends ClipboardItemBaseProps, Omit<ClipboardItemEvents, 'onCopy' | 'onCopyError'>, Omit<HTMLElement, 'id' | 'oncopy'> {
|
|
41
|
+
oncopy: ClipboardItemEvents['onCopy'];
|
|
42
|
+
oncopyerror: ClipboardItemEvents['onCopyError'];
|
|
43
|
+
}
|
|
44
|
+
export interface ClipboardItemProps extends ClipboardItemBaseProps, ClipboardItemEvents {
|
|
18
45
|
}
|
|
19
46
|
declare global {
|
|
20
47
|
interface HTMLElementTagNameMap {
|
|
21
|
-
|
|
48
|
+
[tagName]: ClipboardItemElement;
|
|
22
49
|
}
|
|
23
50
|
}
|
|
24
51
|
declare module 'preact' {
|
|
25
52
|
namespace createElement.JSX {
|
|
26
53
|
interface IntrinsicElements {
|
|
27
|
-
|
|
54
|
+
[tagName]: ClipboardItemProps & BaseElementProps<ClipboardItemElement>;
|
|
28
55
|
}
|
|
29
56
|
}
|
|
30
57
|
}
|
|
31
58
|
|
|
32
|
-
export type { ClipboardItemElement, ClipboardItemProps };
|
|
59
|
+
export type { ClipboardItemBaseProps, ClipboardItemElement, ClipboardItemElementEvents, ClipboardItemEvents, ClipboardItemProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropZone.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/DropZone/DropZone.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"DropZone.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/DropZone/DropZone.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAI1E,QAAA,MAAM,IAAI,EAAE,6BAwDX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,32 +1,59 @@
|
|
|
1
1
|
/** VERSION: 0.0.0 **/
|
|
2
|
-
/* eslint-disable import/extensions */
|
|
2
|
+
/* eslint-disable import-x/extensions */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
4
|
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
5
|
/* eslint-disable line-comment-position */
|
|
6
6
|
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
7
|
/* eslint-disable no-var */
|
|
8
|
-
/* eslint-disable import/namespace */
|
|
8
|
+
/* eslint-disable import-x/namespace */
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
10
|
/// <reference lib="DOM" />
|
|
11
11
|
import type {DropZoneProps$1} from './components-shared.d.ts';
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Used when an element does not have children.
|
|
15
|
+
*/
|
|
16
|
+
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
+
key?: preact.Key;
|
|
18
|
+
ref?: preact.Ref<TClass>;
|
|
19
|
+
slot?: Lowercase<string>;
|
|
14
20
|
}
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
22
|
+
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
declare const tagName = "s-drop-zone";
|
|
26
|
+
export interface DropZoneBaseProps extends Pick<DropZoneProps$1, 'accept' | 'accessibilityLabel' | 'disabled' | 'error' | 'id' | 'label' | 'multiple' | 'name' | 'required'> {
|
|
27
|
+
}
|
|
28
|
+
export interface DropZoneEvents extends Pick<DropZoneProps$1, 'onDropRejected' | 'onInput'> {
|
|
29
|
+
}
|
|
30
|
+
export interface DropZoneElementEvents {
|
|
31
|
+
/**
|
|
32
|
+
* Callback when rejected files are dropped. Files are rejected based on the `accept` prop.
|
|
33
|
+
*/
|
|
34
|
+
droprejected?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
35
|
+
/**
|
|
36
|
+
* Callback when the user makes any changes in the field.
|
|
37
|
+
*/
|
|
38
|
+
input?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
39
|
+
}
|
|
40
|
+
export interface DropZoneElement extends DropZoneBaseProps, Omit<DropZoneEvents, 'onDropRejected' | 'onInput'>, Omit<HTMLElement, 'id' | 'oninput'> {
|
|
41
|
+
ondroprejected: DropZoneEvents['onDropRejected'];
|
|
42
|
+
oninput: DropZoneEvents['onInput'];
|
|
43
|
+
}
|
|
44
|
+
export interface DropZoneProps extends DropZoneBaseProps, DropZoneEvents {
|
|
18
45
|
}
|
|
19
46
|
declare global {
|
|
20
47
|
interface HTMLElementTagNameMap {
|
|
21
|
-
|
|
48
|
+
[tagName]: DropZoneElement;
|
|
22
49
|
}
|
|
23
50
|
}
|
|
24
51
|
declare module 'preact' {
|
|
25
52
|
namespace createElement.JSX {
|
|
26
53
|
interface IntrinsicElements {
|
|
27
|
-
|
|
54
|
+
[tagName]: DropZoneProps & BaseElementProps<DropZoneElement>;
|
|
28
55
|
}
|
|
29
56
|
}
|
|
30
57
|
}
|
|
31
58
|
|
|
32
|
-
export type { DropZoneElement, DropZoneProps };
|
|
59
|
+
export type { DropZoneBaseProps, DropZoneElement, DropZoneElementEvents, DropZoneEvents, DropZoneProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmailField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/EmailField/EmailField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAI1E,QAAA,MAAM,IAAI,EAAE,6BA8BX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|