@shopify/ui-extensions 2025.10.0-rc.6 → 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/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/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/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
|
-
slot?: Lowercase<string>;
|
|
30
|
-
}
|
|
21
|
+
export interface UnorderedListBaseElementPropsWithChildren<TClass = HTMLElement> extends UnorderedListBaseElementProps<TClass> {
|
|
22
|
+
children?: preact.ComponentChildren;
|
|
23
|
+
}
|
|
31
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";
|
|
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
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface TimeBaseElementProps<TClass = HTMLElement> {
|
|
58
|
+
key?: preact.Key;
|
|
59
|
+
ref?: preact.Ref<TClass>;
|
|
60
|
+
slot?: Lowercase<string>;
|
|
61
|
+
}
|
|
55
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;
|
|
92
109
|
}
|
|
93
110
|
|
|
94
|
-
export interface
|
|
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;
|
|
136
|
+
}
|
|
137
|
+
|
|
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;
|
|
105
152
|
}
|
|
106
153
|
|
|
154
|
+
export interface TextFieldBaseElementProps<TClass = HTMLElement> {
|
|
155
|
+
key?: preact.Key;
|
|
156
|
+
ref?: preact.Ref<TClass>;
|
|
157
|
+
slot?: Lowercase<string>;
|
|
158
|
+
}
|
|
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
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare global {
|
|
172
|
+
interface HTMLElementTagNameMap {
|
|
173
|
+
[TextAreatagName]: TextAreaElement;
|
|
111
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
|
+
}
|
|
112
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
|
+
}
|
|
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
|
-
|
|
139
|
-
|
|
243
|
+
export interface TextBaseElementPropsWithChildren<TClass = HTMLElement> extends TextBaseElementProps<TClass> {
|
|
244
|
+
children?: preact.ComponentChildren;
|
|
245
|
+
}
|
|
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";
|
|
140
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
|
-
onerror: QRCodeProps['onError'];
|
|
370
|
+
export interface QRCodeProps extends QRCodeBaseProps, QRCodeEvents {
|
|
230
371
|
}
|
|
231
372
|
|
|
232
|
-
export interface
|
|
373
|
+
export interface QRCodelement extends QRCodeBaseProps, Omit<QRCodeEvents, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
|
|
374
|
+
onerror: QRCodeEvents['onError'];
|
|
233
375
|
}
|
|
234
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;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export interface QRCodeEvents extends Pick<QRCodeProps$1, 'onError'> {
|
|
386
|
+
}
|
|
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
|
+
}
|
|
260
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";
|
|
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
|
+
}
|
|
285
526
|
|
|
527
|
+
declare const PaymentIcontagName = "s-payment-icon";
|
|
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
|
+
}
|
|
312
560
|
|
|
561
|
+
declare const ParagraphtagName = "s-paragraph";
|
|
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
|
+
}
|
|
602
|
+
|
|
603
|
+
declare global {
|
|
604
|
+
interface HTMLElementTagNameMap {
|
|
605
|
+
[ModaltagName]: ModalElement;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
337
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'];
|
|
355
688
|
}
|
|
356
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>;
|
|
727
|
+
}
|
|
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
|
+
}
|
|
738
|
+
|
|
739
|
+
declare global {
|
|
740
|
+
interface HTMLElementTagNameMap {
|
|
741
|
+
[MaptagName]: MapElement;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
362
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
|
+
[IcontagName]: IconProps & IconBaseElementProps<IconElement>;
|
|
393
877
|
}
|
|
394
878
|
}
|
|
395
879
|
}
|
|
396
880
|
|
|
397
881
|
declare global {
|
|
398
882
|
interface HTMLElementTagNameMap {
|
|
399
|
-
|
|
883
|
+
[IcontagName]: IconElement;
|
|
400
884
|
}
|
|
401
885
|
}
|
|
402
886
|
|
|
@@ -406,25 +890,28 @@ export interface IconElement extends IconProps, Omit<HTMLElement, 'id'> {
|
|
|
406
890
|
export interface IconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
|
|
407
891
|
tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
408
892
|
size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
409
|
-
type?: '' |
|
|
893
|
+
type?: '' | ReducedIconTypes;
|
|
410
894
|
}
|
|
411
895
|
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
896
|
+
export interface IconBaseElementProps<TClass = HTMLElement> {
|
|
897
|
+
key?: preact.Key;
|
|
898
|
+
ref?: preact.Ref<TClass>;
|
|
899
|
+
slot?: Lowercase<string>;
|
|
900
|
+
}
|
|
417
901
|
|
|
902
|
+
declare const IcontagName = "s-icon";
|
|
903
|
+
|
|
904
|
+
declare module 'preact' {
|
|
418
905
|
namespace createElement.JSX {
|
|
419
906
|
interface IntrinsicElements {
|
|
420
|
-
|
|
907
|
+
[HeadingtagName]: HeadingProps & HeadingBaseElementPropsWithChildren<HeadingElement>;
|
|
421
908
|
}
|
|
422
909
|
}
|
|
423
910
|
}
|
|
424
911
|
|
|
425
912
|
declare global {
|
|
426
913
|
interface HTMLElementTagNameMap {
|
|
427
|
-
|
|
914
|
+
[HeadingtagName]: HeadingElement;
|
|
428
915
|
}
|
|
429
916
|
}
|
|
430
917
|
|
|
@@ -434,152 +921,359 @@ export interface HeadingElement extends HeadingProps, Omit<HTMLElement, 'id'> {
|
|
|
434
921
|
export interface HeadingProps extends Pick<HeadingProps$1, 'accessibilityRole' | 'id'> {
|
|
435
922
|
}
|
|
436
923
|
|
|
924
|
+
export interface HeadingBaseElementPropsWithChildren<TClass = HTMLElement> extends HeadingBaseElementProps<TClass> {
|
|
925
|
+
children?: preact.ComponentChildren;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
export interface HeadingBaseElementProps<TClass = HTMLElement> {
|
|
929
|
+
key?: preact.Key;
|
|
930
|
+
ref?: preact.Ref<TClass>;
|
|
931
|
+
slot?: Lowercase<string>;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
declare const HeadingtagName = "s-heading";
|
|
935
|
+
|
|
437
936
|
declare module 'preact' {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
937
|
+
namespace createElement.JSX {
|
|
938
|
+
interface IntrinsicElements {
|
|
939
|
+
[FormtagName]: FormProps & FormBaseElementPropsWithChildren<FormElement>;
|
|
940
|
+
}
|
|
441
941
|
}
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
declare global {
|
|
945
|
+
interface HTMLElementTagNameMap {
|
|
946
|
+
[FormtagName]: FormElement;
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
export interface FormProps extends FormBaseProps, FormEvents {
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export interface FormElement extends Omit<FormBaseProps, 'children'>, Omit<FormEvents, 'onSubmit'>, Omit<HTMLElement, 'id' | 'onsubmit'> {
|
|
954
|
+
onsubmit: FormEvents['onSubmit'];
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
export interface FormElementEvents {
|
|
958
|
+
/**
|
|
959
|
+
* A callback that is run when the form is submitted.
|
|
960
|
+
*
|
|
961
|
+
* Use `event.waitUntil` to signal how long it takes to save the data,
|
|
962
|
+
* and whether it was successful or not.
|
|
963
|
+
*/
|
|
964
|
+
submit?: ((event: CallbackEvent<typeof FormtagName>) => void) | null;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
export interface FormEvents extends Pick<FormProps$1, 'onSubmit'> {
|
|
968
|
+
onSubmit?: () => void;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
export interface FormBaseProps extends Pick<FormProps$1, 'id' | 'disabled'> {
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
export interface FormBaseElementPropsWithChildren<TClass = HTMLElement> extends FormBaseElementProps<TClass> {
|
|
975
|
+
children?: preact.ComponentChildren;
|
|
976
|
+
}
|
|
442
977
|
|
|
978
|
+
export interface FormBaseElementProps<TClass = HTMLElement> {
|
|
979
|
+
key?: preact.Key;
|
|
980
|
+
ref?: preact.Ref<TClass>;
|
|
981
|
+
slot?: Lowercase<string>;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
declare const FormtagName = "s-form";
|
|
985
|
+
|
|
986
|
+
declare module 'preact' {
|
|
443
987
|
namespace createElement.JSX {
|
|
444
988
|
interface IntrinsicElements {
|
|
445
|
-
|
|
989
|
+
[EmailFieldtagName]: EmailFieldProps & EmailFieldBaseElementProps<EmailFieldElement>;
|
|
446
990
|
}
|
|
447
991
|
}
|
|
448
992
|
}
|
|
449
993
|
|
|
450
994
|
declare global {
|
|
451
995
|
interface HTMLElementTagNameMap {
|
|
452
|
-
|
|
996
|
+
[EmailFieldtagName]: EmailFieldElement;
|
|
453
997
|
}
|
|
454
998
|
}
|
|
455
999
|
|
|
456
|
-
export interface
|
|
457
|
-
onsubmit: FormProps['onSubmit'];
|
|
1000
|
+
export interface EmailFieldProps extends EmailFieldBaseProps, EmailFieldEvents {
|
|
458
1001
|
}
|
|
459
1002
|
|
|
460
|
-
export interface
|
|
461
|
-
|
|
1003
|
+
export interface EmailFieldElement extends EmailFieldBaseProps, Omit<EmailFieldEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
1004
|
+
onblur: EmailFieldEvents['onBlur'];
|
|
1005
|
+
onchange: EmailFieldEvents['onChange'];
|
|
1006
|
+
onfocus: EmailFieldEvents['onFocus'];
|
|
1007
|
+
oninput: EmailFieldEvents['onInput'];
|
|
462
1008
|
}
|
|
463
1009
|
|
|
1010
|
+
export interface EmailFieldElementEvents {
|
|
1011
|
+
/**
|
|
1012
|
+
* Callback when the element loses focus.
|
|
1013
|
+
*/
|
|
1014
|
+
blur?: ((event: CallbackEvent<typeof EmailFieldtagName>) => void) | null;
|
|
1015
|
+
/**
|
|
1016
|
+
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
1017
|
+
*/
|
|
1018
|
+
change?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
1019
|
+
/**
|
|
1020
|
+
* Callback when the element receives focus.
|
|
1021
|
+
*/
|
|
1022
|
+
focus?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
1023
|
+
/**
|
|
1024
|
+
* Callback when the user makes any changes in the field.
|
|
1025
|
+
*/
|
|
1026
|
+
input?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
export interface EmailFieldEvents extends Pick<EmailFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
export interface EmailFieldBaseProps extends Pick<EmailFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'maxLength' | 'minLength' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'name' | 'placeholder' | 'readOnly' | 'required' | 'value'> {
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
export interface EmailFieldBaseElementProps<TClass = HTMLElement> {
|
|
1036
|
+
key?: preact.Key;
|
|
1037
|
+
ref?: preact.Ref<TClass>;
|
|
1038
|
+
slot?: Lowercase<string>;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
declare const EmailFieldtagName = "s-email-field";
|
|
1042
|
+
|
|
464
1043
|
declare module 'preact' {
|
|
465
1044
|
namespace createElement.JSX {
|
|
466
1045
|
interface IntrinsicElements {
|
|
467
|
-
|
|
1046
|
+
[DropZonetagName]: DropZoneProps & DropZoneBaseElementProps<DropZoneElement>;
|
|
468
1047
|
}
|
|
469
1048
|
}
|
|
470
1049
|
}
|
|
471
1050
|
|
|
472
1051
|
declare global {
|
|
473
1052
|
interface HTMLElementTagNameMap {
|
|
474
|
-
|
|
1053
|
+
[DropZonetagName]: DropZoneElement;
|
|
475
1054
|
}
|
|
476
1055
|
}
|
|
477
1056
|
|
|
478
|
-
export interface
|
|
479
|
-
|
|
480
|
-
|
|
1057
|
+
export interface DropZoneProps extends DropZoneBaseProps, DropZoneEvents {
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
export interface DropZoneElement extends DropZoneBaseProps, Omit<DropZoneEvents, 'onDropRejected' | 'onInput'>, Omit<HTMLElement, 'id' | 'oninput'> {
|
|
1061
|
+
ondroprejected: DropZoneEvents['onDropRejected'];
|
|
1062
|
+
oninput: DropZoneEvents['onInput'];
|
|
481
1063
|
}
|
|
482
1064
|
|
|
483
|
-
export interface
|
|
1065
|
+
export interface DropZoneElementEvents {
|
|
1066
|
+
/**
|
|
1067
|
+
* Callback when rejected files are dropped. Files are rejected based on the `accept` prop.
|
|
1068
|
+
*/
|
|
1069
|
+
droprejected?: ((event: CallbackEvent<typeof DropZonetagName>) => void) | null;
|
|
1070
|
+
/**
|
|
1071
|
+
* Callback when the user makes any changes in the field.
|
|
1072
|
+
*/
|
|
1073
|
+
input?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
484
1074
|
}
|
|
485
1075
|
|
|
1076
|
+
export interface DropZoneEvents extends Pick<DropZoneProps$1, 'onDropRejected' | 'onInput'> {
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
export interface DropZoneBaseProps extends Pick<DropZoneProps$1, 'accept' | 'accessibilityLabel' | 'disabled' | 'error' | 'id' | 'label' | 'multiple' | 'name' | 'required'> {
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
export interface DropZoneBaseElementProps<TClass = HTMLElement> {
|
|
1083
|
+
key?: preact.Key;
|
|
1084
|
+
ref?: preact.Ref<TClass>;
|
|
1085
|
+
slot?: Lowercase<string>;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
declare const DropZonetagName = "s-drop-zone";
|
|
1089
|
+
|
|
486
1090
|
declare module 'preact' {
|
|
487
1091
|
namespace createElement.JSX {
|
|
488
1092
|
interface IntrinsicElements {
|
|
489
|
-
|
|
1093
|
+
[ClipboardItemtagName]: ClipboardItemProps & ClipboardItemBaseElementProps<ClipboardItemElement>;
|
|
490
1094
|
}
|
|
491
1095
|
}
|
|
492
1096
|
}
|
|
493
1097
|
|
|
494
1098
|
declare global {
|
|
495
1099
|
interface HTMLElementTagNameMap {
|
|
496
|
-
|
|
1100
|
+
[ClipboardItemtagName]: ClipboardItemElement;
|
|
497
1101
|
}
|
|
498
1102
|
}
|
|
499
1103
|
|
|
500
|
-
export interface
|
|
501
|
-
|
|
502
|
-
|
|
1104
|
+
export interface ClipboardItemProps extends ClipboardItemBaseProps, ClipboardItemEvents {
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
export interface ClipboardItemElement extends ClipboardItemBaseProps, Omit<ClipboardItemEvents, 'onCopy' | 'onCopyError'>, Omit<HTMLElement, 'id' | 'oncopy'> {
|
|
1108
|
+
oncopy: ClipboardItemEvents['onCopy'];
|
|
1109
|
+
oncopyerror: ClipboardItemEvents['onCopyError'];
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
export interface ClipboardItemElementEvents {
|
|
1113
|
+
/**
|
|
1114
|
+
* Callback run when the copy to clipboard succeeds.
|
|
1115
|
+
*/
|
|
1116
|
+
copy?: ((event: CallbackEvent<typeof ClipboardItemtagName>) => void) | null;
|
|
1117
|
+
/**
|
|
1118
|
+
* Callback run when the copy to clipboard fails.
|
|
1119
|
+
*/
|
|
1120
|
+
copyerror?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
503
1121
|
}
|
|
504
1122
|
|
|
505
|
-
export interface
|
|
1123
|
+
export interface ClipboardItemEvents extends Pick<ClipboardItemProps$1, 'onCopy' | 'onCopyError'> {
|
|
506
1124
|
}
|
|
507
1125
|
|
|
1126
|
+
export interface ClipboardItemBaseProps extends Pick<ClipboardItemProps$1, 'id' | 'text'> {
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
export interface ClipboardItemBaseElementProps<TClass = HTMLElement> {
|
|
1130
|
+
key?: preact.Key;
|
|
1131
|
+
ref?: preact.Ref<TClass>;
|
|
1132
|
+
slot?: Lowercase<string>;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
declare const ClipboardItemtagName = "s-clipboard-item";
|
|
1136
|
+
|
|
508
1137
|
declare module 'preact' {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
1138
|
+
namespace createElement.JSX {
|
|
1139
|
+
interface IntrinsicElements {
|
|
1140
|
+
[CheckboxtagName]: CheckboxProps & CheckboxBaseElementProps<CheckboxElement>;
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
declare global {
|
|
1146
|
+
interface HTMLElementTagNameMap {
|
|
1147
|
+
[CheckboxtagName]: CheckboxElement;
|
|
512
1148
|
}
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
export interface CheckboxProps extends CheckboxBaseProps, CheckboxEvents {
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
export interface CheckboxElement extends CheckboxBaseProps, Omit<CheckboxEvents, 'onChange'>, Omit<HTMLElement, 'id' | 'onchange'> {
|
|
1155
|
+
onchange: CheckboxEvents['onChange'];
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
export interface CheckboxElementEvents {
|
|
1159
|
+
/**
|
|
1160
|
+
* A callback that is run whenever the control is changed.
|
|
1161
|
+
*/
|
|
1162
|
+
change?: ((event: CallbackEvent<typeof CheckboxtagName>) => void) | null;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
export interface CheckboxEvents extends Pick<CheckboxProps$1, 'onChange'> {
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
export interface CheckboxBaseProps extends Pick<CheckboxProps$1, 'accessibilityLabel' | 'checked' | 'command' | 'commandFor' | 'defaultChecked' | 'disabled' | 'error' | 'id' | 'label' | 'name' | 'required' | 'value'> {
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
export interface CheckboxBaseElementProps<TClass = HTMLElement> {
|
|
1172
|
+
key?: preact.Key;
|
|
1173
|
+
ref?: preact.Ref<TClass>;
|
|
1174
|
+
slot?: Lowercase<string>;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
declare const CheckboxtagName = "s-checkbox";
|
|
513
1178
|
|
|
1179
|
+
declare module 'preact' {
|
|
514
1180
|
namespace createElement.JSX {
|
|
515
1181
|
interface IntrinsicElements {
|
|
516
|
-
|
|
1182
|
+
[ButtontagName]: ButtonProps & ButtonBaseElementPropsWithChildren<ButtonElement>;
|
|
517
1183
|
}
|
|
518
1184
|
}
|
|
519
1185
|
}
|
|
520
1186
|
|
|
521
1187
|
declare global {
|
|
522
1188
|
interface HTMLElementTagNameMap {
|
|
523
|
-
|
|
1189
|
+
[ButtontagName]: ButtonElement;
|
|
524
1190
|
}
|
|
525
1191
|
}
|
|
526
1192
|
|
|
527
|
-
export interface
|
|
528
|
-
|
|
1193
|
+
export interface ButtonProps extends ButtonBaseProps, ButtonEvents {
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
export interface ButtonElement extends ButtonBaseProps, Omit<ButtonEvents, 'onClick'>, Omit<HTMLElement, 'id' | 'onclick'> {
|
|
1197
|
+
onclick: ButtonEvents['onClick'];
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
export interface ButtonElementEvents {
|
|
1201
|
+
/**
|
|
1202
|
+
* Callback when the button is activated.
|
|
1203
|
+
* This will be called before the action indicated by `type`.
|
|
1204
|
+
*/
|
|
1205
|
+
click?: ((event: CallbackEvent<typeof ButtontagName>) => void) | null;
|
|
529
1206
|
}
|
|
530
1207
|
|
|
531
|
-
export interface
|
|
532
|
-
|
|
1208
|
+
export interface ButtonEvents extends Pick<ButtonProps$1, 'onClick'> {
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
export interface ButtonBaseProps extends Pick<ButtonProps$1, 'accessibilityLabel' | 'command' | 'commandFor' | 'disabled' | 'href' | 'id' | 'inlineSize' | 'loading' | 'target' | 'tone' | 'type' | 'variant'> {
|
|
1212
|
+
target?: Extract<ButtonProps$1['target'], 'auto' | '_blank'>;
|
|
533
1213
|
tone?: Extract<ButtonProps$1['tone'], 'auto' | 'neutral' | 'critical'>;
|
|
534
1214
|
type?: Extract<ButtonProps$1['type'], 'submit' | 'button'>;
|
|
535
1215
|
variant?: Extract<ButtonProps$1['variant'], 'auto' | 'primary' | 'secondary'>;
|
|
536
1216
|
}
|
|
537
1217
|
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
slot?: Lowercase<string>;
|
|
542
|
-
}
|
|
1218
|
+
export interface ButtonBaseElementPropsWithChildren<TClass = HTMLElement> extends ButtonBaseElementProps<TClass> {
|
|
1219
|
+
children?: preact.ComponentChildren;
|
|
1220
|
+
}
|
|
543
1221
|
|
|
1222
|
+
export interface ButtonBaseElementProps<TClass = HTMLElement> {
|
|
1223
|
+
key?: preact.Key;
|
|
1224
|
+
ref?: preact.Ref<TClass>;
|
|
1225
|
+
slot?: Lowercase<string>;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
declare const ButtontagName = "s-button";
|
|
1229
|
+
|
|
1230
|
+
declare module 'preact' {
|
|
544
1231
|
namespace createElement.JSX {
|
|
545
1232
|
interface IntrinsicElements {
|
|
546
|
-
|
|
1233
|
+
[BoxtagName]: BoxProps & BoxBaseElementPropsWithChildren<BoxElement>;
|
|
547
1234
|
}
|
|
548
1235
|
}
|
|
549
1236
|
}
|
|
550
1237
|
|
|
551
1238
|
declare global {
|
|
552
1239
|
interface HTMLElementTagNameMap {
|
|
553
|
-
|
|
1240
|
+
[BoxtagName]: BoxElement;
|
|
554
1241
|
}
|
|
555
1242
|
}
|
|
556
1243
|
|
|
557
1244
|
export interface BoxElement extends BoxProps, Omit<HTMLElement, 'id'> {
|
|
558
1245
|
}
|
|
559
1246
|
|
|
560
|
-
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'> {
|
|
1247
|
+
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'> {
|
|
561
1248
|
background?: Extract<BoxProps$1['background'], 'transparent' | 'subdued' | 'base'>;
|
|
562
1249
|
border?: BorderShorthand;
|
|
563
1250
|
borderWidth?: MaybeAllValuesShorthandProperty<ReducedBorderSizeKeyword> | '';
|
|
564
1251
|
borderRadius?: MaybeAllValuesShorthandProperty<Extract<BoxProps$1['borderRadius'], 'none' | 'small-100' | 'small' | 'base' | 'large' | 'large-100' | 'max'>>;
|
|
565
1252
|
}
|
|
566
1253
|
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
1254
|
+
export interface BoxBaseElementPropsWithChildren<TClass = HTMLElement> extends BoxBaseElementProps<TClass> {
|
|
1255
|
+
children?: preact.ComponentChildren;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
export interface BoxBaseElementProps<TClass = HTMLElement> {
|
|
1259
|
+
key?: preact.Key;
|
|
1260
|
+
ref?: preact.Ref<TClass>;
|
|
1261
|
+
slot?: Lowercase<string>;
|
|
1262
|
+
}
|
|
572
1263
|
|
|
1264
|
+
declare const BoxtagName = "s-box";
|
|
1265
|
+
|
|
1266
|
+
declare module 'preact' {
|
|
573
1267
|
namespace createElement.JSX {
|
|
574
1268
|
interface IntrinsicElements {
|
|
575
|
-
|
|
1269
|
+
[tagName]: AbbreviationProps & BaseElementPropsWithChildren<AbbreviationElement>;
|
|
576
1270
|
}
|
|
577
1271
|
}
|
|
578
1272
|
}
|
|
579
1273
|
|
|
580
1274
|
declare global {
|
|
581
1275
|
interface HTMLElementTagNameMap {
|
|
582
|
-
|
|
1276
|
+
[tagName]: AbbreviationElement;
|
|
583
1277
|
}
|
|
584
1278
|
}
|
|
585
1279
|
|
|
@@ -589,8 +1283,22 @@ export interface AbbreviationElement extends AbbreviationProps, Omit<HTMLElement
|
|
|
589
1283
|
export interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title'> {
|
|
590
1284
|
}
|
|
591
1285
|
|
|
1286
|
+
export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
1287
|
+
children?: preact.ComponentChildren;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
export interface BaseElementProps<TClass = HTMLElement> {
|
|
1291
|
+
key?: preact.Key;
|
|
1292
|
+
ref?: preact.Ref<TClass>;
|
|
1293
|
+
slot?: Lowercase<string>;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
declare const tagName = "s-abbreviation";
|
|
1297
|
+
|
|
1298
|
+
import { CallbackEvent } from "../../../../../src/surfaces/checkout/components/Banner";
|
|
592
1299
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
593
|
-
import { AbbreviationProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$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";
|
|
1300
|
+
import { AbbreviationProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, CheckboxProps$1, ClipboardItemProps$1, DropZoneProps$1, EmailFieldProps$1, FormProps$1, HeadingProps$1, IconProps$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";
|
|
1301
|
+
import { ReducedIconTypes } from "../../../../../src/surfaces/checkout/components/Icon";
|
|
594
1302
|
import type { ExtensionTargets } from '../extension-targets';
|
|
595
1303
|
type Target = ExtensionTargets['purchase.checkout.gift-card.render'];
|
|
596
1304
|
export type Api = Target['api'];
|