@shopify/ui-extensions 2025.10.0-rc.40 → 2025.10.0-rc.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/surfaces/checkout/preact/api.js +4 -0
- package/build/cjs/surfaces/checkout/preact/subscription.js +6 -5
- package/build/cjs/surfaces/checkout/shared.js +17 -4
- package/build/esm/surfaces/checkout/preact/api.mjs +4 -0
- package/build/esm/surfaces/checkout/preact/subscription.mjs +6 -5
- package/build/esm/surfaces/checkout/shared.mjs +17 -4
- package/build/esnext/surfaces/checkout/preact/api.esnext +4 -0
- package/build/esnext/surfaces/checkout/preact/subscription.esnext +6 -5
- package/build/esnext/surfaces/checkout/shared.esnext +17 -4
- package/build/ts/docs/shared/components/Details.d.ts +4 -0
- package/build/ts/docs/shared/components/Details.d.ts.map +1 -0
- package/build/ts/docs/shared/components/MoneyField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/PressButton.d.ts +4 -0
- package/build/ts/docs/shared/components/PressButton.d.ts.map +1 -0
- package/build/ts/docs/shared/components/SkeletonParagraph.d.ts +4 -0
- package/build/ts/docs/shared/components/SkeletonParagraph.d.ts.map +1 -0
- package/build/ts/docs/shared/components/Summary.d.ts +4 -0
- package/build/ts/docs/shared/components/Summary.d.ts.map +1 -0
- package/build/ts/docs/shared/components/Tooltip.d.ts +1 -1
- package/build/ts/docs/shared/components/Tooltip.d.ts.map +1 -1
- package/build/ts/docs/shared/components/index.d.ts +6 -1
- package/build/ts/docs/shared/components/index.d.ts.map +1 -1
- package/build/ts/index.d.ts.map +1 -1
- package/build/ts/shared.d.ts +4 -34
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts +30 -0
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api.d.ts +1 -1
- package/build/ts/surfaces/admin/api.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/patterns/accountConnection.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/accountConnection.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/extension-targets.d.ts +5 -3
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.data.d.ts +6 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts +1 -1
- package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts +3 -3
- package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +2 -2
- package/build/ts/surfaces/checkout/api/order-confirmation/order-confirmation.d.ts +2 -2
- package/build/ts/surfaces/checkout/api/order-confirmation/order-confirmation.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts +3 -3
- package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-item.d.ts +3 -3
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-list.d.ts +2 -2
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-list.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-point-list.d.ts +2 -2
- package/build/ts/surfaces/checkout/api/pickup/pickup-point-list.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts +3 -3
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts +3 -3
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +45 -40
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Badge/Badge.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Badge/Badge.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Badge.d.ts +3 -8
- package/build/ts/surfaces/checkout/components/Box/Box.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Button.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Clickable/Clickable.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Clickable/Clickable.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Clickable.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Details/Details.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Details/Details.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Details.d.ts +15 -2
- package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Divider.d.ts +17 -2
- package/build/ts/surfaces/checkout/components/DropZone.d.ts +8 -3
- package/build/ts/surfaces/checkout/components/EmailField.d.ts +8 -1
- package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Form.d.ts +3 -0
- package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Grid.d.ts +7 -7
- package/build/ts/surfaces/checkout/components/Icon.d.ts +2 -7
- package/build/ts/surfaces/checkout/components/Link.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/MapMarker.d.ts +9 -12
- package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Modal.d.ts +16 -15
- package/build/ts/surfaces/checkout/components/MoneyField/MoneyField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/MoneyField/MoneyField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/{UrlField.d.ts → MoneyField.d.ts} +14 -18
- package/build/ts/surfaces/checkout/components/OrderedList/OrderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/PhoneField.d.ts +10 -12
- package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Popover.d.ts +50 -2
- package/build/ts/surfaces/checkout/components/PressButton/PressButton.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/PressButton/PressButton.doc.d.ts.map +1 -0
- package/{src/surfaces/checkout/components/Select.d.ts → build/ts/surfaces/checkout/components/PressButton.d.ts} +20 -20
- package/build/ts/surfaces/checkout/components/Sheet/Sheet.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Sheet/Sheet.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Sheet.d.ts +21 -15
- package/build/ts/surfaces/checkout/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Stack.d.ts +4 -4
- package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/TextField.d.ts +10 -17
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts.map +1 -0
- package/{src/surfaces/checkout/components/Option.d.ts → build/ts/surfaces/checkout/components/Tooltip.d.ts} +9 -7
- package/build/ts/surfaces/checkout/components/UnorderedList/UnorderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/components-shared.d.ts +631 -275
- package/build/ts/surfaces/checkout/components/components.d.ts +1013 -501
- package/build/ts/surfaces/checkout/preact/api.d.ts +4 -0
- package/build/ts/surfaces/checkout/preact/api.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/subscription.d.ts +5 -4
- package/build/ts/surfaces/checkout/preact/subscription.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/shared.d.ts +27 -4
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Actions::RenderBefore.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.announcement.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout.d.ts +1 -0
- package/build/ts/surfaces/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/shared.d.ts +2 -1
- package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Avatar.d.ts +2 -2
- package/build/ts/surfaces/customer-account/components/Badge.d.ts +3 -8
- package/build/ts/surfaces/customer-account/components/Button.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/ButtonGroup/ButtonGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/ButtonGroup.d.ts +2 -2
- package/build/ts/surfaces/customer-account/components/Clickable.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
- package/build/ts/surfaces/customer-account/components/Details.d.ts +15 -2
- package/build/ts/surfaces/customer-account/components/Divider.d.ts +17 -2
- package/build/ts/surfaces/customer-account/components/DropZone.d.ts +8 -3
- package/build/ts/surfaces/customer-account/components/EmailField.d.ts +8 -1
- package/build/ts/surfaces/customer-account/components/Form.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/Grid.d.ts +7 -7
- package/build/ts/surfaces/customer-account/components/Icon.d.ts +2 -7
- package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Link.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/MapMarker.d.ts +9 -12
- package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Modal.d.ts +16 -15
- package/{src/surfaces/checkout/components/UrlField.d.ts → build/ts/surfaces/customer-account/components/MoneyField.d.ts} +14 -18
- package/build/ts/surfaces/customer-account/components/Page/Page.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Page.d.ts +3 -3
- package/build/ts/surfaces/customer-account/components/PhoneField.d.ts +10 -12
- package/build/ts/surfaces/customer-account/components/Popover.d.ts +50 -2
- package/build/ts/surfaces/customer-account/components/{Select.d.ts → PressButton.d.ts} +20 -20
- package/build/ts/surfaces/customer-account/components/Section/Section.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Sheet.d.ts +21 -15
- package/build/ts/surfaces/customer-account/components/Stack.d.ts +4 -4
- package/build/ts/surfaces/customer-account/components/TextField.d.ts +10 -17
- package/build/ts/surfaces/customer-account/components/{Option.d.ts → Tooltip.d.ts} +9 -7
- package/build/ts/surfaces/customer-account/components/components-shared.d.ts +631 -275
- package/build/ts/surfaces/customer-account/components/components.d.ts +1013 -501
- package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.announcement.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.announcement.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.announcement.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +3 -4
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +2 -9
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Badge/Badge.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Banner.d.ts +11 -2
- package/build/ts/surfaces/point-of-sale/components/Button.d.ts +29 -4
- package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/DateSpinner/DateSpinner.doc.d.ts.map +1 -1
- package/{src/surfaces/point-of-sale/components/Navigator.d.ts → build/ts/surfaces/point-of-sale/components/Divider.d.ts} +7 -10
- package/build/ts/surfaces/point-of-sale/components/Modal.d.ts +1 -2
- package/build/ts/surfaces/point-of-sale/components/Page.d.ts +4 -4
- package/build/ts/surfaces/point-of-sale/components/QrCode.d.ts +43 -0
- package/build/ts/surfaces/point-of-sale/components/ScrollBox.d.ts +93 -2
- package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +14 -0
- package/build/ts/surfaces/point-of-sale/components/targets/ReceiptComponents.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/ReceiptComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.receipt-footer.block.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.receipt-header.block.render.d.ts +2 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/docs/shared/components/Details.ts +12 -0
- package/src/docs/shared/components/EmailField.ts +1 -1
- package/src/docs/shared/components/Modal.ts +1 -1
- package/src/docs/shared/components/MoneyField.ts +2 -1
- package/src/docs/shared/components/Popover.ts +1 -1
- package/src/docs/shared/components/PressButton.ts +12 -0
- package/src/docs/shared/components/SkeletonParagraph.ts +12 -0
- package/src/docs/shared/components/Summary.ts +12 -0
- package/src/docs/shared/components/Tooltip.ts +2 -2
- package/src/docs/shared/components/index.ts +6 -1
- package/src/index.ts +0 -1
- package/src/shared.ts +5 -36
- package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.ts +31 -0
- package/src/surfaces/admin/api.ts +4 -1
- package/src/surfaces/admin/components/patterns/examples/accountConnection.html +16 -0
- package/src/surfaces/admin/components.d.ts +366 -451
- package/src/surfaces/admin/extension-targets.ts +6 -5
- package/src/surfaces/checkout/api/address-autocomplete/standard.ts +1 -1
- package/src/surfaces/checkout/api/cart-line/cart-line-item.ts +3 -3
- package/src/surfaces/checkout/api/checkout/checkout.ts +2 -2
- package/src/surfaces/checkout/api/order-confirmation/order-confirmation.ts +2 -2
- package/src/surfaces/checkout/api/payment/payment-option-item.ts +3 -3
- package/src/surfaces/checkout/api/pickup/pickup-location-item.ts +3 -3
- package/src/surfaces/checkout/api/pickup/pickup-location-list.ts +2 -2
- package/src/surfaces/checkout/api/pickup/pickup-point-list.ts +2 -2
- package/src/surfaces/checkout/api/shipping/shipping-option-item.ts +3 -3
- package/src/surfaces/checkout/api/shipping/shipping-option-list.ts +3 -3
- package/src/surfaces/checkout/api/standard/standard.ts +44 -40
- package/src/surfaces/checkout/components/Badge/examples/basic-badge.example.html +3 -0
- package/src/surfaces/checkout/components/Badge.d.ts +3 -8
- package/src/surfaces/checkout/components/Banner/examples/basic-banner.example.html +1 -2
- package/src/surfaces/checkout/components/Button.d.ts +1 -1
- package/src/surfaces/checkout/components/Clickable/examples/basic-clickable.example.html +3 -0
- package/src/surfaces/checkout/components/Clickable.d.ts +1 -1
- package/src/surfaces/checkout/components/Details/examples/basic-details.example.html +6 -0
- package/src/surfaces/checkout/components/Details.d.ts +15 -2
- package/src/surfaces/checkout/components/Divider/examples/basic-divider.example.html +1 -0
- package/src/surfaces/checkout/components/Divider.d.ts +17 -2
- package/src/surfaces/checkout/components/DropZone/examples/basic-drop-zone.example.html +1 -0
- package/src/surfaces/checkout/components/DropZone.d.ts +8 -3
- package/src/surfaces/checkout/components/EmailField/examples/basic-email-field.example.html +1 -0
- package/src/surfaces/checkout/components/EmailField.d.ts +8 -1
- package/src/surfaces/checkout/components/Form/examples/basic-form.example.html +3 -3
- package/src/surfaces/checkout/components/Form.d.ts +3 -0
- package/src/surfaces/checkout/components/Grid/examples/basic-grid.example.html +11 -0
- package/src/surfaces/checkout/components/Grid.d.ts +7 -7
- package/src/surfaces/checkout/components/Icon.d.ts +2 -7
- package/src/surfaces/checkout/components/Image/examples/basic-image.example.html +1 -1
- package/src/surfaces/checkout/components/Link.d.ts +1 -1
- package/src/surfaces/checkout/components/Map/examples/basic-map.example.html +3 -3
- package/src/surfaces/checkout/components/MapMarker.d.ts +9 -12
- package/src/surfaces/checkout/components/Modal.d.ts +16 -15
- package/src/surfaces/checkout/components/MoneyField/examples/basic-money-field.example.html +1 -0
- package/{build/ts/surfaces/customer-account/components/UrlField.d.ts → src/surfaces/checkout/components/MoneyField.d.ts} +14 -18
- package/src/surfaces/checkout/components/PhoneField/examples/basic-phone-field.example.html +1 -0
- package/src/surfaces/checkout/components/PhoneField.d.ts +10 -12
- package/src/surfaces/checkout/components/Popover/examples/basic-popover.example.html +7 -0
- package/src/surfaces/checkout/components/Popover.d.ts +50 -2
- package/src/surfaces/checkout/components/PressButton/examples/basic-press-button.example.html +1 -0
- package/{build/ts/surfaces/checkout/components/Select.d.ts → src/surfaces/checkout/components/PressButton.d.ts} +20 -20
- package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-product-thumbnail.example.html +1 -0
- package/src/surfaces/checkout/components/Progress/examples/basic-progress.example.html +1 -1
- package/src/surfaces/checkout/components/Sheet/examples/basic-sheet.example.html +5 -0
- package/src/surfaces/checkout/components/Sheet.d.ts +21 -15
- package/src/surfaces/checkout/components/SkeletonParagraph/examples/basic-skeleton-paragraph.example.html +2 -0
- package/src/surfaces/checkout/components/Spinner/examples/basic-spinner.example.html +1 -1
- package/src/surfaces/checkout/components/Stack/examples/basic-stack.example.html +4 -0
- package/src/surfaces/checkout/components/Stack.d.ts +4 -4
- package/src/surfaces/checkout/components/Switch/examples/basic-switch.example.html +1 -0
- package/src/surfaces/checkout/components/Text/examples/basic-text.example.html +1 -1
- package/src/surfaces/checkout/components/TextArea/examples/basic-text-area.example.html +1 -0
- package/src/surfaces/checkout/components/TextField.d.ts +10 -17
- package/src/surfaces/checkout/components/Time/examples/basic-time.example.html +1 -1
- package/src/surfaces/checkout/components/Tooltip/examples/basic-tooltip.example.html +9 -0
- package/{build/ts/surfaces/checkout/components/Option.d.ts → src/surfaces/checkout/components/Tooltip.d.ts} +9 -7
- package/src/surfaces/checkout/components/components-shared.d.ts +631 -275
- package/src/surfaces/checkout/components/components.d.ts +1013 -501
- package/src/surfaces/checkout/preact/api.ts +4 -0
- package/src/surfaces/checkout/preact/subscription.ts +9 -8
- package/src/surfaces/checkout/preact/tests/buyer-identity.test.tsx +2 -3
- package/src/surfaces/checkout/preact/tests/mount.tsx +3 -3
- package/src/surfaces/checkout/shared.ts +37 -3
- package/src/surfaces/checkout.ts +3 -1
- package/src/surfaces/customer-account/api/shared.ts +2 -1
- package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar.example.html +4 -0
- package/src/surfaces/customer-account/components/Avatar.d.ts +2 -2
- package/src/surfaces/customer-account/components/ButtonGroup/examples/basic-ButtonGroup.example.html +11 -0
- package/src/surfaces/customer-account/components/ButtonGroup.d.ts +2 -2
- package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction.example.html +15 -0
- package/src/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
- package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup.example.html +18 -0
- package/src/surfaces/customer-account/components/Menu/examples/basic-Menu.example.html +14 -0
- package/src/surfaces/customer-account/components/Page/examples/basic-Page.example.html +19 -0
- package/src/surfaces/customer-account/components/Page.d.ts +3 -3
- package/src/surfaces/customer-account/components/Section/examples/basic-Section.example.html +12 -0
- package/src/surfaces/customer-account/components/Section.d.ts +2 -2
- package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +2 -10
- package/src/surfaces/point-of-sale/components/Badge/examples/default.html +5 -5
- package/src/surfaces/point-of-sale/components/Banner.d.ts +11 -2
- package/src/surfaces/point-of-sale/components/Button.d.ts +29 -4
- package/{build/ts/surfaces/point-of-sale/components/Navigator.d.ts → src/surfaces/point-of-sale/components/Divider.d.ts} +7 -10
- package/src/surfaces/point-of-sale/components/Modal.d.ts +1 -2
- package/src/surfaces/point-of-sale/components/Page.d.ts +4 -4
- package/src/surfaces/point-of-sale/components/QrCode.d.ts +43 -0
- package/src/surfaces/point-of-sale/components/ScrollBox.d.ts +93 -2
- package/src/surfaces/point-of-sale/components/components-shared.d.ts +14 -0
- package/src/surfaces/point-of-sale/components/targets/ReceiptComponents.ts +1 -1
- package/src/surfaces/point-of-sale/components.d.ts +554 -386
- package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +0 -57
- package/build/ts/surfaces/checkout/components/NumberField.d.ts +0 -85
- package/build/ts/surfaces/checkout/components/PasswordField.d.ts +0 -84
- package/build/ts/surfaces/customer-account/components/NumberField.d.ts +0 -85
- package/build/ts/surfaces/customer-account/components/PasswordField.d.ts +0 -84
- package/build/ts/surfaces/point-of-sale/components/Screen.d.ts +0 -91
- package/build/ts/surfaces/point-of-sale/components/shared.d.ts +0 -76
- package/src/surfaces/checkout/components/DropZone/examples/basic-dropzone.example.html +0 -1
- package/src/surfaces/checkout/components/EmailField/examples/basic-emailfield.example.html +0 -4
- package/src/surfaces/checkout/components/NumberField.d.ts +0 -85
- package/src/surfaces/checkout/components/PasswordField.d.ts +0 -84
- package/src/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.html +0 -2
- package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-productthumbnail.example.html +0 -4
- package/src/surfaces/checkout/components/TextArea/examples/basic-textarea.example.html +0 -5
- package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-preact.example.tsx +0 -10
- package/src/surfaces/customer-account/components/ButtonGroup/examples/basic-ButtonGroup-preact.example.tsx +0 -22
- package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-preact.example.tsx +0 -17
- package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-preact.example.tsx +0 -17
- package/src/surfaces/customer-account/components/Menu/examples/basic-Menu-preact.example.tsx +0 -24
- package/src/surfaces/customer-account/components/Page/examples/basic-Page-preact.example.tsx +0 -37
- package/src/surfaces/customer-account/components/Section/examples/basic-Section-preact.example.tsx +0 -23
- package/src/surfaces/point-of-sale/components/Screen.d.ts +0 -91
- package/src/surfaces/point-of-sale/components/shared.d.ts +0 -76
- /package/src/surfaces/checkout/components/ClipboardItem/examples/{basic-clipboarditem.example.html → basic-clipboard-item.example.html} +0 -0
- /package/src/surfaces/checkout/components/OrderedList/examples/{basic-orderedlist.example.html → basic-ordered-list.example.html} +0 -0
- /package/src/surfaces/checkout/components/PaymentIcon/examples/{basic-paymenticon.example.html → basic-payment-icon.example.html} +0 -0
- /package/src/surfaces/checkout/components/QRCode/examples/{basic-qrcode.example.html → basic-qr-code.example.html} +0 -0
- /package/src/surfaces/checkout/components/TextField/examples/{basic-textfield.example.html → basic-text-field.example.html} +0 -0
- /package/src/surfaces/checkout/components/UnorderedList/examples/{basic-unorderedlist.example.html → basic-unordered-list.example.html} +0 -0
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* https://github.com/Shopify/ui-api-design/issues/139
|
|
14
14
|
*/
|
|
15
15
|
export type ComponentChildren = any;
|
|
16
|
+
export type StringChildren = string;
|
|
16
17
|
export interface GlobalProps {
|
|
17
18
|
/**
|
|
18
19
|
* A unique identifier for the element.
|
|
@@ -45,6 +46,109 @@ export interface ActionSlots {
|
|
|
45
46
|
*/
|
|
46
47
|
secondaryActions?: ComponentChildren;
|
|
47
48
|
}
|
|
49
|
+
export interface BaseOverlayProps {
|
|
50
|
+
/**
|
|
51
|
+
* Callback fired after the overlay is shown.
|
|
52
|
+
*/
|
|
53
|
+
onShow?: (event: Event) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Callback fired when the overlay is shown **after** any animations to show the overlay have finished.
|
|
56
|
+
*/
|
|
57
|
+
onAfterShow?: (event: Event) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Callback fired after the overlay is hidden.
|
|
60
|
+
*/
|
|
61
|
+
onHide?: (event: Event) => void;
|
|
62
|
+
/**
|
|
63
|
+
* Callback fired when the overlay is hidden **after** any animations to hide the overlay have finished.
|
|
64
|
+
*/
|
|
65
|
+
onAfterHide?: (event: Event) => void;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Shared interfaces for web component methods.
|
|
69
|
+
*
|
|
70
|
+
* Methods are required (not optional) because:
|
|
71
|
+
* - Components implementing this interface must provide all methods
|
|
72
|
+
* - Unlike props/attributes, methods are not rendered in HTML but are JavaScript APIs
|
|
73
|
+
* - Consumers expect these methods to be consistently available on all instances
|
|
74
|
+
*/
|
|
75
|
+
export interface BaseOverlayMethods {
|
|
76
|
+
/**
|
|
77
|
+
* Method to show an overlay.
|
|
78
|
+
*
|
|
79
|
+
* @implementation This is a method to be called on the element and not a callback and should hence be camelCase
|
|
80
|
+
*/
|
|
81
|
+
showOverlay: () => void;
|
|
82
|
+
/**
|
|
83
|
+
* Method to hide an overlay.
|
|
84
|
+
*
|
|
85
|
+
* @implementation This is a method to be called on the element and not a callback and should hence be camelCase
|
|
86
|
+
*/
|
|
87
|
+
hideOverlay: () => void;
|
|
88
|
+
/**
|
|
89
|
+
* Method to toggle the visiblity of an overlay.
|
|
90
|
+
*
|
|
91
|
+
* @implementation This is a method to be called on the element and not a callback and should hence be camelCase
|
|
92
|
+
*/
|
|
93
|
+
toggleOverlay: () => void;
|
|
94
|
+
}
|
|
95
|
+
export interface FocusEventProps {
|
|
96
|
+
/**
|
|
97
|
+
* Callback when the element loses focus.
|
|
98
|
+
*
|
|
99
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
100
|
+
*/
|
|
101
|
+
onBlur?: (event: FocusEvent) => void;
|
|
102
|
+
/**
|
|
103
|
+
* Callback when the element receives focus.
|
|
104
|
+
*
|
|
105
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
106
|
+
*/
|
|
107
|
+
onFocus?: (event: FocusEvent) => void;
|
|
108
|
+
}
|
|
109
|
+
export interface ToggleEventProps {
|
|
110
|
+
/**
|
|
111
|
+
* Callback fired when the element state changes **after** any animations have finished.
|
|
112
|
+
*
|
|
113
|
+
* - If the element transitioned from hidden to showing, the `oldState` property will be set to `closed` and the
|
|
114
|
+
* `newState` property will be set to `open`.
|
|
115
|
+
* - If the element transitioned from showing to hidden, the `oldState` property will be set to `open` and the
|
|
116
|
+
* `newState` will be `closed`.
|
|
117
|
+
*
|
|
118
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState
|
|
119
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState
|
|
120
|
+
*/
|
|
121
|
+
onAfterToggle?: (event: ToggleEvent$1) => void;
|
|
122
|
+
/**
|
|
123
|
+
* Callback straight after the element state changes.
|
|
124
|
+
*
|
|
125
|
+
* - If the element is transitioning from hidden to showing, the `oldState` property will be set to `closed` and the
|
|
126
|
+
* `newState` property will be set to `open`.
|
|
127
|
+
* - If the element is transitioning from showing to hidden, then `oldState` property will be set to `open` and the
|
|
128
|
+
* `newState` will be `closed`.
|
|
129
|
+
*
|
|
130
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/toggle_event
|
|
131
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState
|
|
132
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState
|
|
133
|
+
*/
|
|
134
|
+
onToggle?: (event: ToggleEvent$1) => void;
|
|
135
|
+
}
|
|
136
|
+
export type ToggleState = "open" | "closed";
|
|
137
|
+
interface ToggleEvent$1 extends Event {
|
|
138
|
+
readonly newState: ToggleState;
|
|
139
|
+
readonly oldState: ToggleState;
|
|
140
|
+
}
|
|
141
|
+
export interface ExtendableEvent extends Event {
|
|
142
|
+
/**
|
|
143
|
+
* Provide a promise that signals the length, and eventual success or failure of actions relating to the event.
|
|
144
|
+
*
|
|
145
|
+
* This may be called many times, which adds promises to the event.
|
|
146
|
+
*
|
|
147
|
+
* However, this may only be called synchronously during the dispatch of the event.
|
|
148
|
+
* As in, you cannot call it after a `setTimeout` or microtask.
|
|
149
|
+
*/
|
|
150
|
+
waitUntil?: (promise: Promise<void>) => void;
|
|
151
|
+
}
|
|
48
152
|
export type SizeKeyword = "small-500" | "small-400" | "small-300" | "small-200" | "small-100" | "small" | "base" | "large" | "large-100" | "large-200" | "large-300" | "large-400" | "large-500";
|
|
49
153
|
export type ColorKeyword = "subdued" | "base" | "strong";
|
|
50
154
|
export type BackgroundColorKeyword = "transparent" | ColorKeyword;
|
|
@@ -66,7 +170,7 @@ export interface BackgroundProps {
|
|
|
66
170
|
*
|
|
67
171
|
* @default 'auto'
|
|
68
172
|
*/
|
|
69
|
-
export type ToneKeyword = "auto" | "neutral" | "info" | "success" | "caution" | "warning" | "critical" | "custom";
|
|
173
|
+
export type ToneKeyword = "auto" | "neutral" | "info" | "success" | "caution" | "warning" | "critical" | "accent" | "custom";
|
|
70
174
|
declare const privateIconArray: readonly [
|
|
71
175
|
"adjust",
|
|
72
176
|
"affiliate",
|
|
@@ -75,23 +179,23 @@ declare const privateIconArray: readonly [
|
|
|
75
179
|
"alert-circle",
|
|
76
180
|
"alert-diamond",
|
|
77
181
|
"alert-location",
|
|
78
|
-
"alert-octagon-filled",
|
|
79
182
|
"alert-octagon",
|
|
80
|
-
"alert-
|
|
183
|
+
"alert-octagon-filled",
|
|
81
184
|
"alert-triangle",
|
|
185
|
+
"alert-triangle-filled",
|
|
82
186
|
"app-extension",
|
|
83
187
|
"apps",
|
|
84
188
|
"archive",
|
|
189
|
+
"arrow-down",
|
|
85
190
|
"arrow-down-circle",
|
|
86
191
|
"arrow-down-right",
|
|
87
|
-
"arrow-down",
|
|
88
|
-
"arrow-left-circle",
|
|
89
192
|
"arrow-left",
|
|
90
|
-
"arrow-
|
|
193
|
+
"arrow-left-circle",
|
|
91
194
|
"arrow-right",
|
|
195
|
+
"arrow-right-circle",
|
|
196
|
+
"arrow-up",
|
|
92
197
|
"arrow-up-circle",
|
|
93
198
|
"arrow-up-right",
|
|
94
|
-
"arrow-up",
|
|
95
199
|
"arrows-in-horizontal",
|
|
96
200
|
"arrows-out-horizontal",
|
|
97
201
|
"attachment",
|
|
@@ -100,36 +204,39 @@ declare const privateIconArray: readonly [
|
|
|
100
204
|
"bag",
|
|
101
205
|
"bank",
|
|
102
206
|
"barcode",
|
|
207
|
+
"battery-low",
|
|
103
208
|
"bill",
|
|
104
209
|
"blank",
|
|
105
210
|
"blog",
|
|
106
|
-
"bolt-filled",
|
|
107
211
|
"bolt",
|
|
108
|
-
"
|
|
212
|
+
"bolt-filled",
|
|
109
213
|
"book",
|
|
214
|
+
"book-open",
|
|
110
215
|
"bug",
|
|
111
216
|
"bullet",
|
|
112
217
|
"business-entity",
|
|
113
|
-
"button-press",
|
|
114
218
|
"button",
|
|
219
|
+
"button-press",
|
|
115
220
|
"calculator",
|
|
221
|
+
"calendar",
|
|
116
222
|
"calendar-check",
|
|
117
223
|
"calendar-compare",
|
|
118
224
|
"calendar-list",
|
|
119
225
|
"calendar-time",
|
|
120
|
-
"calendar",
|
|
121
|
-
"camera-flip",
|
|
122
226
|
"camera",
|
|
227
|
+
"camera-flip",
|
|
123
228
|
"caret-down",
|
|
124
229
|
"caret-left",
|
|
125
230
|
"caret-right",
|
|
126
231
|
"caret-up",
|
|
232
|
+
"cart",
|
|
127
233
|
"cart-abandoned",
|
|
128
234
|
"cart-discount",
|
|
129
235
|
"cart-down",
|
|
236
|
+
"cart-filled",
|
|
130
237
|
"cart-sale",
|
|
238
|
+
"cart-send",
|
|
131
239
|
"cart-up",
|
|
132
|
-
"cart",
|
|
133
240
|
"cash-dollar",
|
|
134
241
|
"cash-euro",
|
|
135
242
|
"cash-pound",
|
|
@@ -141,8 +248,8 @@ declare const privateIconArray: readonly [
|
|
|
141
248
|
"chart-cohort",
|
|
142
249
|
"chart-donut",
|
|
143
250
|
"chart-funnel",
|
|
144
|
-
"chart-histogram-first-last",
|
|
145
251
|
"chart-histogram-first",
|
|
252
|
+
"chart-histogram-first-last",
|
|
146
253
|
"chart-histogram-flat",
|
|
147
254
|
"chart-histogram-full",
|
|
148
255
|
"chart-histogram-growth",
|
|
@@ -153,36 +260,36 @@ declare const privateIconArray: readonly [
|
|
|
153
260
|
"chart-popular",
|
|
154
261
|
"chart-stacked",
|
|
155
262
|
"chart-vertical",
|
|
263
|
+
"chat",
|
|
156
264
|
"chat-new",
|
|
157
265
|
"chat-referral",
|
|
158
|
-
"chat",
|
|
159
|
-
"check-circle-filled",
|
|
160
|
-
"check-circle",
|
|
161
266
|
"check",
|
|
267
|
+
"check-circle",
|
|
268
|
+
"check-circle-filled",
|
|
162
269
|
"checkbox",
|
|
163
|
-
"chevron-down-circle",
|
|
164
270
|
"chevron-down",
|
|
165
|
-
"chevron-
|
|
271
|
+
"chevron-down-circle",
|
|
166
272
|
"chevron-left",
|
|
167
|
-
"chevron-
|
|
273
|
+
"chevron-left-circle",
|
|
168
274
|
"chevron-right",
|
|
169
|
-
"chevron-
|
|
275
|
+
"chevron-right-circle",
|
|
170
276
|
"chevron-up",
|
|
171
|
-
"circle
|
|
277
|
+
"chevron-up-circle",
|
|
172
278
|
"circle",
|
|
279
|
+
"circle-dashed",
|
|
280
|
+
"clipboard",
|
|
173
281
|
"clipboard-check",
|
|
174
282
|
"clipboard-checklist",
|
|
175
|
-
"clipboard",
|
|
176
|
-
"clock-revert",
|
|
177
283
|
"clock",
|
|
178
|
-
"
|
|
284
|
+
"clock-revert",
|
|
179
285
|
"code",
|
|
286
|
+
"code-add",
|
|
287
|
+
"collection",
|
|
180
288
|
"collection-featured",
|
|
181
289
|
"collection-list",
|
|
182
290
|
"collection-reference",
|
|
183
|
-
"collection",
|
|
184
|
-
"color-none",
|
|
185
291
|
"color",
|
|
292
|
+
"color-none",
|
|
186
293
|
"compass",
|
|
187
294
|
"complete",
|
|
188
295
|
"compose",
|
|
@@ -193,76 +300,81 @@ declare const privateIconArray: readonly [
|
|
|
193
300
|
"corner-pill",
|
|
194
301
|
"corner-round",
|
|
195
302
|
"corner-square",
|
|
303
|
+
"credit-card",
|
|
196
304
|
"credit-card-cancel",
|
|
197
305
|
"credit-card-percent",
|
|
306
|
+
"credit-card-reader",
|
|
198
307
|
"credit-card-reader-chip",
|
|
199
308
|
"credit-card-reader-tap",
|
|
200
|
-
"credit-card-reader",
|
|
201
309
|
"credit-card-secure",
|
|
202
310
|
"credit-card-tap-chip",
|
|
203
|
-
"credit-card",
|
|
204
311
|
"crop",
|
|
205
312
|
"currency-convert",
|
|
313
|
+
"cursor",
|
|
206
314
|
"cursor-banner",
|
|
207
315
|
"cursor-option",
|
|
208
|
-
"cursor",
|
|
209
316
|
"data-presentation",
|
|
210
317
|
"data-table",
|
|
318
|
+
"database",
|
|
211
319
|
"database-add",
|
|
212
320
|
"database-connect",
|
|
213
|
-
"database",
|
|
214
321
|
"delete",
|
|
215
322
|
"delivered",
|
|
216
323
|
"delivery",
|
|
217
324
|
"desktop",
|
|
218
325
|
"disabled",
|
|
326
|
+
"disabled-filled",
|
|
327
|
+
"discount",
|
|
219
328
|
"discount-add",
|
|
329
|
+
"discount-automatic",
|
|
220
330
|
"discount-code",
|
|
221
|
-
"discount",
|
|
331
|
+
"discount-remove",
|
|
222
332
|
"dns-settings",
|
|
223
333
|
"dock-floating",
|
|
224
334
|
"dock-side",
|
|
335
|
+
"domain",
|
|
225
336
|
"domain-landing-page",
|
|
226
337
|
"domain-new",
|
|
227
338
|
"domain-redirect",
|
|
228
|
-
"domain",
|
|
229
339
|
"download",
|
|
230
340
|
"drag-drop",
|
|
231
341
|
"drag-handle",
|
|
342
|
+
"drawer",
|
|
232
343
|
"duplicate",
|
|
233
344
|
"edit",
|
|
345
|
+
"email",
|
|
234
346
|
"email-follow-up",
|
|
235
347
|
"email-newsletter",
|
|
236
|
-
"email",
|
|
237
348
|
"empty",
|
|
238
349
|
"enabled",
|
|
239
350
|
"enter",
|
|
240
|
-
"envelope-soft-pack",
|
|
241
351
|
"envelope",
|
|
352
|
+
"envelope-soft-pack",
|
|
242
353
|
"eraser",
|
|
243
354
|
"exchange",
|
|
244
355
|
"exit",
|
|
245
356
|
"export",
|
|
246
357
|
"external",
|
|
247
358
|
"eye-check-mark",
|
|
248
|
-
"eye-dropper-list",
|
|
249
359
|
"eye-dropper",
|
|
360
|
+
"eye-dropper-list",
|
|
250
361
|
"eye-first",
|
|
251
362
|
"eyeglasses",
|
|
252
363
|
"fav",
|
|
253
364
|
"favicon",
|
|
254
|
-
"file-list",
|
|
255
365
|
"file",
|
|
366
|
+
"file-list",
|
|
256
367
|
"filter",
|
|
368
|
+
"filter-active",
|
|
257
369
|
"flag",
|
|
258
370
|
"flip-horizontal",
|
|
259
371
|
"flip-vertical",
|
|
260
372
|
"flower",
|
|
373
|
+
"folder",
|
|
261
374
|
"folder-add",
|
|
262
375
|
"folder-down",
|
|
263
376
|
"folder-remove",
|
|
264
377
|
"folder-up",
|
|
265
|
-
"folder",
|
|
266
378
|
"food",
|
|
267
379
|
"foreground",
|
|
268
380
|
"forklift",
|
|
@@ -270,56 +382,62 @@ declare const privateIconArray: readonly [
|
|
|
270
382
|
"games",
|
|
271
383
|
"gauge",
|
|
272
384
|
"geolocation",
|
|
273
|
-
"gift-card",
|
|
274
385
|
"gift",
|
|
386
|
+
"gift-card",
|
|
275
387
|
"git-branch",
|
|
276
388
|
"git-commit",
|
|
277
389
|
"git-repository",
|
|
390
|
+
"globe",
|
|
278
391
|
"globe-asia",
|
|
279
392
|
"globe-europe",
|
|
280
393
|
"globe-lines",
|
|
281
394
|
"globe-list",
|
|
282
|
-
"
|
|
395
|
+
"graduation-hat",
|
|
283
396
|
"grid",
|
|
397
|
+
"hashtag",
|
|
284
398
|
"hashtag-decimal",
|
|
285
399
|
"hashtag-list",
|
|
286
|
-
"hashtag",
|
|
287
400
|
"heart",
|
|
288
|
-
"hide-filled",
|
|
289
401
|
"hide",
|
|
402
|
+
"hide-filled",
|
|
290
403
|
"home",
|
|
404
|
+
"home-filled",
|
|
291
405
|
"icons",
|
|
292
406
|
"identity-card",
|
|
407
|
+
"image",
|
|
293
408
|
"image-add",
|
|
294
409
|
"image-alt",
|
|
295
410
|
"image-explore",
|
|
296
411
|
"image-magic",
|
|
297
412
|
"image-none",
|
|
298
413
|
"image-with-text-overlay",
|
|
299
|
-
"image",
|
|
300
414
|
"images",
|
|
301
415
|
"import",
|
|
302
416
|
"in-progress",
|
|
303
417
|
"incentive",
|
|
304
418
|
"incoming",
|
|
305
419
|
"incomplete",
|
|
306
|
-
"info-filled",
|
|
307
420
|
"info",
|
|
421
|
+
"info-filled",
|
|
308
422
|
"inheritance",
|
|
309
|
-
"inventory-updated",
|
|
310
423
|
"inventory",
|
|
424
|
+
"inventory-edit",
|
|
425
|
+
"inventory-list",
|
|
426
|
+
"inventory-transfer",
|
|
427
|
+
"inventory-updated",
|
|
311
428
|
"iq",
|
|
312
429
|
"key",
|
|
430
|
+
"keyboard",
|
|
313
431
|
"keyboard-filled",
|
|
314
432
|
"keyboard-hide",
|
|
315
|
-
"
|
|
433
|
+
"keypad",
|
|
316
434
|
"label-printer",
|
|
317
|
-
"language-translate",
|
|
318
435
|
"language",
|
|
436
|
+
"language-translate",
|
|
319
437
|
"layout-block",
|
|
438
|
+
"layout-buy-button",
|
|
320
439
|
"layout-buy-button-horizontal",
|
|
321
440
|
"layout-buy-button-vertical",
|
|
322
|
-
"layout-buy-button",
|
|
323
441
|
"layout-column-1",
|
|
324
442
|
"layout-columns-2",
|
|
325
443
|
"layout-columns-3",
|
|
@@ -332,64 +450,73 @@ declare const privateIconArray: readonly [
|
|
|
332
450
|
"layout-sidebar-left",
|
|
333
451
|
"layout-sidebar-right",
|
|
334
452
|
"lightbulb",
|
|
335
|
-
"link-list",
|
|
336
453
|
"link",
|
|
454
|
+
"link-list",
|
|
337
455
|
"list-bulleted",
|
|
456
|
+
"list-bulleted-filled",
|
|
338
457
|
"list-numbered",
|
|
339
458
|
"live",
|
|
340
|
-
"
|
|
459
|
+
"live-critical",
|
|
460
|
+
"live-none",
|
|
341
461
|
"location",
|
|
462
|
+
"location-none",
|
|
342
463
|
"lock",
|
|
343
464
|
"map",
|
|
465
|
+
"markets",
|
|
344
466
|
"markets-euro",
|
|
345
467
|
"markets-rupee",
|
|
346
468
|
"markets-yen",
|
|
347
|
-
"markets",
|
|
348
469
|
"maximize",
|
|
349
|
-
"measurement-size-list",
|
|
350
470
|
"measurement-size",
|
|
351
|
-
"measurement-
|
|
471
|
+
"measurement-size-list",
|
|
352
472
|
"measurement-volume",
|
|
353
|
-
"measurement-
|
|
473
|
+
"measurement-volume-list",
|
|
354
474
|
"measurement-weight",
|
|
475
|
+
"measurement-weight-list",
|
|
355
476
|
"media-receiver",
|
|
356
477
|
"megaphone",
|
|
357
478
|
"mention",
|
|
479
|
+
"menu",
|
|
480
|
+
"menu-filled",
|
|
358
481
|
"menu-horizontal",
|
|
359
482
|
"menu-vertical",
|
|
360
|
-
"menu",
|
|
361
483
|
"merge",
|
|
362
484
|
"metafields",
|
|
485
|
+
"metaobject",
|
|
363
486
|
"metaobject-list",
|
|
364
487
|
"metaobject-reference",
|
|
365
|
-
"metaobject",
|
|
366
488
|
"microphone",
|
|
367
489
|
"minimize",
|
|
368
|
-
"minus-circle",
|
|
369
490
|
"minus",
|
|
491
|
+
"minus-circle",
|
|
370
492
|
"mobile",
|
|
371
|
-
"money-none",
|
|
372
493
|
"money",
|
|
494
|
+
"money-none",
|
|
495
|
+
"money-split",
|
|
373
496
|
"moon",
|
|
374
497
|
"nature",
|
|
375
|
-
"note-add",
|
|
376
498
|
"note",
|
|
499
|
+
"note-add",
|
|
377
500
|
"notification",
|
|
501
|
+
"order",
|
|
378
502
|
"order-batches",
|
|
379
503
|
"order-draft",
|
|
504
|
+
"order-filled",
|
|
380
505
|
"order-first",
|
|
381
506
|
"order-fulfilled",
|
|
382
507
|
"order-repeat",
|
|
383
508
|
"order-unfulfilled",
|
|
384
|
-
"order",
|
|
385
509
|
"orders-status",
|
|
386
510
|
"organization",
|
|
387
511
|
"outdent",
|
|
388
512
|
"outgoing",
|
|
513
|
+
"package",
|
|
514
|
+
"package-cancel",
|
|
389
515
|
"package-fulfilled",
|
|
390
516
|
"package-on-hold",
|
|
517
|
+
"package-reassign",
|
|
391
518
|
"package-returned",
|
|
392
|
-
"
|
|
519
|
+
"page",
|
|
393
520
|
"page-add",
|
|
394
521
|
"page-attachment",
|
|
395
522
|
"page-clock",
|
|
@@ -400,7 +527,6 @@ declare const privateIconArray: readonly [
|
|
|
400
527
|
"page-remove",
|
|
401
528
|
"page-report",
|
|
402
529
|
"page-up",
|
|
403
|
-
"page",
|
|
404
530
|
"pagination-end",
|
|
405
531
|
"pagination-start",
|
|
406
532
|
"paint-brush-flat",
|
|
@@ -410,50 +536,55 @@ declare const privateIconArray: readonly [
|
|
|
410
536
|
"passkey",
|
|
411
537
|
"paste",
|
|
412
538
|
"pause-circle",
|
|
413
|
-
"payment-capture",
|
|
414
539
|
"payment",
|
|
540
|
+
"payment-capture",
|
|
541
|
+
"payout",
|
|
415
542
|
"payout-dollar",
|
|
416
543
|
"payout-euro",
|
|
417
544
|
"payout-pound",
|
|
418
545
|
"payout-rupee",
|
|
419
546
|
"payout-yen",
|
|
420
|
-
"
|
|
547
|
+
"person",
|
|
421
548
|
"person-add",
|
|
422
549
|
"person-exit",
|
|
550
|
+
"person-filled",
|
|
423
551
|
"person-list",
|
|
424
552
|
"person-lock",
|
|
425
553
|
"person-remove",
|
|
426
554
|
"person-segment",
|
|
427
|
-
"person",
|
|
428
555
|
"personalized-text",
|
|
556
|
+
"phablet",
|
|
557
|
+
"phone",
|
|
429
558
|
"phone-in",
|
|
430
559
|
"phone-out",
|
|
431
|
-
"phone",
|
|
432
|
-
"pin-remove",
|
|
433
560
|
"pin",
|
|
561
|
+
"pin-remove",
|
|
434
562
|
"plan",
|
|
435
|
-
"play-circle",
|
|
436
563
|
"play",
|
|
564
|
+
"play-circle",
|
|
565
|
+
"plus",
|
|
566
|
+
"plus-circle",
|
|
437
567
|
"plus-circle-down",
|
|
438
568
|
"plus-circle-filled",
|
|
439
569
|
"plus-circle-up",
|
|
440
|
-
"plus-circle",
|
|
441
|
-
"plus",
|
|
442
570
|
"point-of-sale",
|
|
571
|
+
"point-of-sale-register",
|
|
443
572
|
"price-list",
|
|
444
573
|
"print",
|
|
574
|
+
"product",
|
|
445
575
|
"product-add",
|
|
446
576
|
"product-cost",
|
|
577
|
+
"product-filled",
|
|
447
578
|
"product-list",
|
|
448
579
|
"product-reference",
|
|
449
580
|
"product-remove",
|
|
450
581
|
"product-return",
|
|
451
582
|
"product-unavailable",
|
|
452
|
-
"product",
|
|
453
|
-
"profile-filled",
|
|
454
583
|
"profile",
|
|
455
|
-
"
|
|
584
|
+
"profile-filled",
|
|
456
585
|
"question-circle",
|
|
586
|
+
"question-circle-filled",
|
|
587
|
+
"receipt",
|
|
457
588
|
"receipt-dollar",
|
|
458
589
|
"receipt-euro",
|
|
459
590
|
"receipt-folded",
|
|
@@ -462,7 +593,6 @@ declare const privateIconArray: readonly [
|
|
|
462
593
|
"receipt-refund",
|
|
463
594
|
"receipt-rupee",
|
|
464
595
|
"receipt-yen",
|
|
465
|
-
"receipt",
|
|
466
596
|
"receivables",
|
|
467
597
|
"redo",
|
|
468
598
|
"referral-code",
|
|
@@ -480,11 +610,12 @@ declare const privateIconArray: readonly [
|
|
|
480
610
|
"sandbox",
|
|
481
611
|
"save",
|
|
482
612
|
"savings",
|
|
613
|
+
"scan-qr-code",
|
|
614
|
+
"search",
|
|
483
615
|
"search-add",
|
|
484
616
|
"search-list",
|
|
485
617
|
"search-recent",
|
|
486
618
|
"search-resource",
|
|
487
|
-
"search",
|
|
488
619
|
"select",
|
|
489
620
|
"send",
|
|
490
621
|
"settings",
|
|
@@ -494,6 +625,7 @@ declare const privateIconArray: readonly [
|
|
|
494
625
|
"shield-pending",
|
|
495
626
|
"shield-person",
|
|
496
627
|
"shipping-label",
|
|
628
|
+
"shipping-label-cancel",
|
|
497
629
|
"shopcodes",
|
|
498
630
|
"slideshow",
|
|
499
631
|
"smiley-happy",
|
|
@@ -502,68 +634,70 @@ declare const privateIconArray: readonly [
|
|
|
502
634
|
"smiley-sad",
|
|
503
635
|
"social-ad",
|
|
504
636
|
"social-post",
|
|
637
|
+
"sort",
|
|
505
638
|
"sort-ascending",
|
|
506
639
|
"sort-descending",
|
|
507
|
-
"sort",
|
|
508
640
|
"sound",
|
|
509
641
|
"sports",
|
|
642
|
+
"star",
|
|
643
|
+
"star-circle",
|
|
510
644
|
"star-filled",
|
|
511
645
|
"star-half",
|
|
512
646
|
"star-list",
|
|
513
|
-
"star",
|
|
514
|
-
"status-active",
|
|
515
647
|
"status",
|
|
648
|
+
"status-active",
|
|
516
649
|
"stop-circle",
|
|
650
|
+
"store",
|
|
517
651
|
"store-import",
|
|
518
652
|
"store-managed",
|
|
519
653
|
"store-online",
|
|
520
|
-
"store",
|
|
521
654
|
"sun",
|
|
522
|
-
"table-masonry",
|
|
523
655
|
"table",
|
|
656
|
+
"table-masonry",
|
|
524
657
|
"tablet",
|
|
525
658
|
"target",
|
|
526
659
|
"tax",
|
|
527
660
|
"team",
|
|
661
|
+
"text",
|
|
528
662
|
"text-align-center",
|
|
529
663
|
"text-align-left",
|
|
530
664
|
"text-align-right",
|
|
531
665
|
"text-block",
|
|
532
666
|
"text-bold",
|
|
533
667
|
"text-color",
|
|
534
|
-
"text-font-list",
|
|
535
668
|
"text-font",
|
|
669
|
+
"text-font-list",
|
|
536
670
|
"text-grammar",
|
|
537
671
|
"text-in-columns",
|
|
538
672
|
"text-in-rows",
|
|
539
|
-
"text-indent-remove",
|
|
540
673
|
"text-indent",
|
|
674
|
+
"text-indent-remove",
|
|
541
675
|
"text-italic",
|
|
542
676
|
"text-quote",
|
|
543
677
|
"text-title",
|
|
544
678
|
"text-underline",
|
|
545
679
|
"text-with-image",
|
|
546
|
-
"
|
|
680
|
+
"theme",
|
|
547
681
|
"theme-edit",
|
|
548
682
|
"theme-store",
|
|
549
683
|
"theme-template",
|
|
550
|
-
"theme",
|
|
551
684
|
"three-d-environment",
|
|
552
685
|
"thumbs-down",
|
|
553
686
|
"thumbs-up",
|
|
554
687
|
"tip-jar",
|
|
555
688
|
"toggle-off",
|
|
556
689
|
"toggle-on",
|
|
690
|
+
"transaction",
|
|
691
|
+
"transaction-fee-add",
|
|
557
692
|
"transaction-fee-dollar",
|
|
558
693
|
"transaction-fee-euro",
|
|
559
694
|
"transaction-fee-pound",
|
|
560
695
|
"transaction-fee-rupee",
|
|
561
696
|
"transaction-fee-yen",
|
|
562
|
-
"
|
|
697
|
+
"transfer",
|
|
563
698
|
"transfer-in",
|
|
564
699
|
"transfer-internal",
|
|
565
700
|
"transfer-out",
|
|
566
|
-
"transfer",
|
|
567
701
|
"truck",
|
|
568
702
|
"undo",
|
|
569
703
|
"unknown-device",
|
|
@@ -579,12 +713,12 @@ declare const privateIconArray: readonly [
|
|
|
579
713
|
"wand",
|
|
580
714
|
"watch",
|
|
581
715
|
"wifi",
|
|
582
|
-
"work-list",
|
|
583
716
|
"work",
|
|
717
|
+
"work-list",
|
|
584
718
|
"wrench",
|
|
585
|
-
"x
|
|
719
|
+
"x",
|
|
586
720
|
"x-circle",
|
|
587
|
-
"x"
|
|
721
|
+
"x-circle-filled"
|
|
588
722
|
];
|
|
589
723
|
export type IconType = (typeof privateIconArray)[number];
|
|
590
724
|
/**
|
|
@@ -593,6 +727,7 @@ export type IconType = (typeof privateIconArray)[number];
|
|
|
593
727
|
export type ExtractStrict<T, U extends T> = Extract<T, U>;
|
|
594
728
|
export type MaybeAllValuesShorthandProperty<T extends string> = T | `${T} ${T}` | `${T} ${T} ${T}` | `${T} ${T} ${T} ${T}`;
|
|
595
729
|
export type MaybeTwoValuesShorthandProperty<T extends string> = T | `${T} ${T}`;
|
|
730
|
+
export type MaybeResponsive<T> = T | `@container${string}`;
|
|
596
731
|
/**
|
|
597
732
|
* Prevents widening string literal types in a union to `string`.
|
|
598
733
|
* @example
|
|
@@ -728,7 +863,7 @@ export interface DisplayProps {
|
|
|
728
863
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/display
|
|
729
864
|
* @default 'auto'
|
|
730
865
|
*/
|
|
731
|
-
display?: "auto" | "none"
|
|
866
|
+
display?: MaybeResponsive<"auto" | "none">;
|
|
732
867
|
}
|
|
733
868
|
export interface AccessibilityRoleProps {
|
|
734
869
|
/**
|
|
@@ -903,7 +1038,7 @@ export interface PaddingProps {
|
|
|
903
1038
|
*
|
|
904
1039
|
* @default 'none'
|
|
905
1040
|
*/
|
|
906
|
-
padding?: MaybeAllValuesShorthandProperty<PaddingKeyword
|
|
1041
|
+
padding?: MaybeResponsive<MaybeAllValuesShorthandProperty<PaddingKeyword>>;
|
|
907
1042
|
/**
|
|
908
1043
|
* Adjust the block-padding.
|
|
909
1044
|
*
|
|
@@ -913,7 +1048,7 @@ export interface PaddingProps {
|
|
|
913
1048
|
*
|
|
914
1049
|
* @default '' - meaning no override
|
|
915
1050
|
*/
|
|
916
|
-
paddingBlock?: MaybeTwoValuesShorthandProperty<PaddingKeyword> | ""
|
|
1051
|
+
paddingBlock?: MaybeResponsive<MaybeTwoValuesShorthandProperty<PaddingKeyword> | "">;
|
|
917
1052
|
/**
|
|
918
1053
|
* Adjust the block-start padding.
|
|
919
1054
|
*
|
|
@@ -921,7 +1056,7 @@ export interface PaddingProps {
|
|
|
921
1056
|
*
|
|
922
1057
|
* @default '' - meaning no override
|
|
923
1058
|
*/
|
|
924
|
-
paddingBlockStart?: PaddingKeyword | ""
|
|
1059
|
+
paddingBlockStart?: MaybeResponsive<PaddingKeyword | "">;
|
|
925
1060
|
/**
|
|
926
1061
|
* Adjust the block-end padding.
|
|
927
1062
|
*
|
|
@@ -929,7 +1064,7 @@ export interface PaddingProps {
|
|
|
929
1064
|
*
|
|
930
1065
|
* @default '' - meaning no override
|
|
931
1066
|
*/
|
|
932
|
-
paddingBlockEnd?: PaddingKeyword | ""
|
|
1067
|
+
paddingBlockEnd?: MaybeResponsive<PaddingKeyword | "">;
|
|
933
1068
|
/**
|
|
934
1069
|
* Adjust the inline padding.
|
|
935
1070
|
*
|
|
@@ -939,7 +1074,7 @@ export interface PaddingProps {
|
|
|
939
1074
|
*
|
|
940
1075
|
* @default '' - meaning no override
|
|
941
1076
|
*/
|
|
942
|
-
paddingInline?: MaybeTwoValuesShorthandProperty<PaddingKeyword> | ""
|
|
1077
|
+
paddingInline?: MaybeResponsive<MaybeTwoValuesShorthandProperty<PaddingKeyword> | "">;
|
|
943
1078
|
/**
|
|
944
1079
|
* Adjust the inline-start padding.
|
|
945
1080
|
*
|
|
@@ -947,7 +1082,7 @@ export interface PaddingProps {
|
|
|
947
1082
|
*
|
|
948
1083
|
* @default '' - meaning no override
|
|
949
1084
|
*/
|
|
950
|
-
paddingInlineStart?: PaddingKeyword | ""
|
|
1085
|
+
paddingInlineStart?: MaybeResponsive<PaddingKeyword | "">;
|
|
951
1086
|
/**
|
|
952
1087
|
* Adjust the inline-end padding.
|
|
953
1088
|
*
|
|
@@ -955,7 +1090,7 @@ export interface PaddingProps {
|
|
|
955
1090
|
*
|
|
956
1091
|
* @default '' - meaning no override
|
|
957
1092
|
*/
|
|
958
|
-
paddingInlineEnd?: PaddingKeyword | ""
|
|
1093
|
+
paddingInlineEnd?: MaybeResponsive<PaddingKeyword | "">;
|
|
959
1094
|
}
|
|
960
1095
|
export type SizeUnits = `${number}px` | `${number}%` | `0`;
|
|
961
1096
|
export type SizeUnitsOrAuto = SizeUnits | "auto";
|
|
@@ -968,7 +1103,7 @@ export interface SizingProps {
|
|
|
968
1103
|
*
|
|
969
1104
|
* @default 'auto'
|
|
970
1105
|
*/
|
|
971
|
-
blockSize?: SizeUnitsOrAuto
|
|
1106
|
+
blockSize?: MaybeResponsive<SizeUnitsOrAuto>;
|
|
972
1107
|
/**
|
|
973
1108
|
* Adjust the minimum block size.
|
|
974
1109
|
*
|
|
@@ -976,7 +1111,7 @@ export interface SizingProps {
|
|
|
976
1111
|
*
|
|
977
1112
|
* @default '0'
|
|
978
1113
|
*/
|
|
979
|
-
minBlockSize?: SizeUnits
|
|
1114
|
+
minBlockSize?: MaybeResponsive<SizeUnits>;
|
|
980
1115
|
/**
|
|
981
1116
|
* Adjust the maximum block size.
|
|
982
1117
|
*
|
|
@@ -984,7 +1119,7 @@ export interface SizingProps {
|
|
|
984
1119
|
*
|
|
985
1120
|
* @default 'none'
|
|
986
1121
|
*/
|
|
987
|
-
maxBlockSize?: SizeUnitsOrNone
|
|
1122
|
+
maxBlockSize?: MaybeResponsive<SizeUnitsOrNone>;
|
|
988
1123
|
/**
|
|
989
1124
|
* Adjust the inline size.
|
|
990
1125
|
*
|
|
@@ -992,7 +1127,7 @@ export interface SizingProps {
|
|
|
992
1127
|
*
|
|
993
1128
|
* @default 'auto'
|
|
994
1129
|
*/
|
|
995
|
-
inlineSize?: SizeUnitsOrAuto
|
|
1130
|
+
inlineSize?: MaybeResponsive<SizeUnitsOrAuto>;
|
|
996
1131
|
/**
|
|
997
1132
|
* Adjust the minimum inline size.
|
|
998
1133
|
*
|
|
@@ -1000,7 +1135,7 @@ export interface SizingProps {
|
|
|
1000
1135
|
*
|
|
1001
1136
|
* @default '0'
|
|
1002
1137
|
*/
|
|
1003
|
-
minInlineSize?: SizeUnits
|
|
1138
|
+
minInlineSize?: MaybeResponsive<SizeUnits>;
|
|
1004
1139
|
/**
|
|
1005
1140
|
* Adjust the maximum inline size.
|
|
1006
1141
|
*
|
|
@@ -1008,7 +1143,7 @@ export interface SizingProps {
|
|
|
1008
1143
|
*
|
|
1009
1144
|
* @default 'none'
|
|
1010
1145
|
*/
|
|
1011
|
-
maxInlineSize?: SizeUnitsOrNone
|
|
1146
|
+
maxInlineSize?: MaybeResponsive<SizeUnitsOrNone>;
|
|
1012
1147
|
}
|
|
1013
1148
|
export type BorderStyleKeyword = "none" | "solid" | "dashed" | "dotted" | "auto";
|
|
1014
1149
|
export type BorderSizeKeyword = SizeKeyword | "none";
|
|
@@ -1131,66 +1266,9 @@ export interface BaseBoxPropsWithRole extends BaseBoxProps, AccessibilityRolePro
|
|
|
1131
1266
|
}
|
|
1132
1267
|
interface BoxProps$1 extends BaseBoxPropsWithRole, GlobalProps {
|
|
1133
1268
|
}
|
|
1134
|
-
export interface FocusEventProps {
|
|
1135
|
-
/**
|
|
1136
|
-
* Callback when the element loses focus.
|
|
1137
|
-
*
|
|
1138
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
1139
|
-
*/
|
|
1140
|
-
onBlur?: (event: FocusEvent) => void;
|
|
1141
|
-
/**
|
|
1142
|
-
* Callback when the element receives focus.
|
|
1143
|
-
*
|
|
1144
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
1145
|
-
*/
|
|
1146
|
-
onFocus?: (event: FocusEvent) => void;
|
|
1147
|
-
}
|
|
1148
|
-
export interface ToggleEventProps {
|
|
1149
|
-
/**
|
|
1150
|
-
* Callback fired when the element state changes **after** any animations have finished.
|
|
1151
|
-
*
|
|
1152
|
-
* - If the element transitioned from hidden to showing, the `oldState` property will be set to `closed` and the
|
|
1153
|
-
* `newState` property will be set to `open`.
|
|
1154
|
-
* - If the element transitioned from showing to hidden, the `oldState` property will be set to `open` and the
|
|
1155
|
-
* `newState` will be `closed`.
|
|
1156
|
-
*
|
|
1157
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState
|
|
1158
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState
|
|
1159
|
-
*/
|
|
1160
|
-
onAfterToggle?: (event: ToggleEvent$1) => void;
|
|
1161
|
-
/**
|
|
1162
|
-
* Callback straight after the element state changes.
|
|
1163
|
-
*
|
|
1164
|
-
* - If the element is transitioning from hidden to showing, the `oldState` property will be set to `closed` and the
|
|
1165
|
-
* `newState` property will be set to `open`.
|
|
1166
|
-
* - If the element is transitioning from showing to hidden, then `oldState` property will be set to `open` and the
|
|
1167
|
-
* `newState` will be `closed`.
|
|
1168
|
-
*
|
|
1169
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/toggle_event
|
|
1170
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState
|
|
1171
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState
|
|
1172
|
-
*/
|
|
1173
|
-
onToggle?: (event: ToggleEvent$1) => void;
|
|
1174
|
-
}
|
|
1175
|
-
export type ToggleState = "open" | "closed";
|
|
1176
|
-
interface ToggleEvent$1 extends Event {
|
|
1177
|
-
readonly newState: ToggleState;
|
|
1178
|
-
readonly oldState: ToggleState;
|
|
1179
|
-
}
|
|
1180
|
-
export interface ExtendableEvent extends Event {
|
|
1181
|
-
/**
|
|
1182
|
-
* Provide a promise that signals the length, and eventual success or failure of actions relating to the event.
|
|
1183
|
-
*
|
|
1184
|
-
* This may be called many times, which adds promises to the event.
|
|
1185
|
-
*
|
|
1186
|
-
* However, this may only be called synchronously during the dispatch of the event.
|
|
1187
|
-
* As in, you cannot call it after a `setTimeout` or microtask.
|
|
1188
|
-
*/
|
|
1189
|
-
waitUntil?: (promise: Promise<void>) => void;
|
|
1190
|
-
}
|
|
1191
1269
|
export interface ButtonBehaviorProps extends InteractionProps, FocusEventProps {
|
|
1192
1270
|
/**
|
|
1193
|
-
* The behavior of the
|
|
1271
|
+
* The behavior of the Button.
|
|
1194
1272
|
*
|
|
1195
1273
|
* - `submit`: Used to indicate the component acts as a submit button, meaning it submits the closest form.
|
|
1196
1274
|
* - `button`: Used to indicate the component acts as a button, meaning it has no default action.
|
|
@@ -1202,14 +1280,14 @@ export interface ButtonBehaviorProps extends InteractionProps, FocusEventProps {
|
|
|
1202
1280
|
*/
|
|
1203
1281
|
type?: "submit" | "button" | "reset";
|
|
1204
1282
|
/**
|
|
1205
|
-
* Callback when the
|
|
1283
|
+
* Callback when the Button is activated.
|
|
1206
1284
|
* This will be called before the action indicated by `type`.
|
|
1207
1285
|
*
|
|
1208
1286
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event
|
|
1209
1287
|
*/
|
|
1210
1288
|
onClick?: (event: Event) => void;
|
|
1211
1289
|
/**
|
|
1212
|
-
* Disables the
|
|
1290
|
+
* Disables the Button meaning it cannot be clicked or receive focus.
|
|
1213
1291
|
*
|
|
1214
1292
|
* @default false
|
|
1215
1293
|
*/
|
|
@@ -1217,7 +1295,7 @@ export interface ButtonBehaviorProps extends InteractionProps, FocusEventProps {
|
|
|
1217
1295
|
/**
|
|
1218
1296
|
* Replaces content with a loading indicator while a background action is being performed.
|
|
1219
1297
|
*
|
|
1220
|
-
* This also disables the
|
|
1298
|
+
* This also disables the Button.
|
|
1221
1299
|
*
|
|
1222
1300
|
* @default false
|
|
1223
1301
|
*/
|
|
@@ -1247,7 +1325,7 @@ export interface LinkBehaviorProps extends InteractionProps, FocusEventProps {
|
|
|
1247
1325
|
target?: "auto" | "_blank" | "_self" | "_parent" | "_top" | AnyString;
|
|
1248
1326
|
/**
|
|
1249
1327
|
* Causes the browser to treat the linked URL as a download with the string being the file name.
|
|
1250
|
-
* Download only works for same-origin URLs
|
|
1328
|
+
* Download only works for same-origin URLs or the `blob:` and `data:` schemes.
|
|
1251
1329
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download
|
|
1252
1330
|
*/
|
|
1253
1331
|
download?: string;
|
|
@@ -1295,7 +1373,7 @@ interface ButtonProps$1 extends GlobalProps, BaseClickableProps {
|
|
|
1295
1373
|
/**
|
|
1296
1374
|
* A label that describes the purpose or contents of the Button. It will be read to users using assistive technologies such as screen readers.
|
|
1297
1375
|
*
|
|
1298
|
-
* Use this when using only an icon or the
|
|
1376
|
+
* Use this when using only an icon or the Button text is not enough context
|
|
1299
1377
|
* for users using assistive technologies.
|
|
1300
1378
|
*/
|
|
1301
1379
|
accessibilityLabel?: string;
|
|
@@ -1304,13 +1382,13 @@ interface ButtonProps$1 extends GlobalProps, BaseClickableProps {
|
|
|
1304
1382
|
*/
|
|
1305
1383
|
children?: ComponentChildren;
|
|
1306
1384
|
/**
|
|
1307
|
-
* The type of icon to be displayed in the
|
|
1385
|
+
* The type of icon to be displayed in the Button.
|
|
1308
1386
|
*
|
|
1309
1387
|
* @default ''
|
|
1310
1388
|
*/
|
|
1311
1389
|
icon?: IconType | AnyString;
|
|
1312
1390
|
/**
|
|
1313
|
-
* The displayed inline width of the
|
|
1391
|
+
* The displayed inline width of the Button.
|
|
1314
1392
|
*
|
|
1315
1393
|
* - `auto`: the size of the button depends on the surface and context.
|
|
1316
1394
|
* - `fill`: the button will takes up 100% of the available inline size.
|
|
@@ -1326,7 +1404,7 @@ interface ButtonProps$1 extends GlobalProps, BaseClickableProps {
|
|
|
1326
1404
|
*/
|
|
1327
1405
|
variant?: "auto" | "primary" | "secondary" | "tertiary";
|
|
1328
1406
|
/**
|
|
1329
|
-
* Sets the tone of the Button
|
|
1407
|
+
* Sets the tone of the Button based on the intention of the information being conveyed.
|
|
1330
1408
|
*
|
|
1331
1409
|
* @default 'auto'
|
|
1332
1410
|
*/
|
|
@@ -1374,22 +1452,54 @@ export interface InputProps extends BaseInputProps {
|
|
|
1374
1452
|
*/
|
|
1375
1453
|
defaultValue?: string;
|
|
1376
1454
|
}
|
|
1377
|
-
export interface
|
|
1455
|
+
export interface MultipleInputProps extends BaseInputProps {
|
|
1378
1456
|
/**
|
|
1379
|
-
* Callback when the user has
|
|
1457
|
+
* Callback when the user has selected option(s).
|
|
1458
|
+
*
|
|
1459
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
|
|
1380
1460
|
*/
|
|
1381
|
-
onChange?: (
|
|
1461
|
+
onChange?: (event: Event) => void;
|
|
1382
1462
|
/**
|
|
1383
|
-
* Callback when the user
|
|
1463
|
+
* Callback when the user has selected option(s).
|
|
1464
|
+
*
|
|
1465
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
|
|
1466
|
+
*/
|
|
1467
|
+
onInput?: (event: Event) => void;
|
|
1468
|
+
/**
|
|
1469
|
+
* An array of the `value`s of the selected options.
|
|
1470
|
+
*
|
|
1471
|
+
* This is a convenience prop for setting the `selected` prop on child options.
|
|
1384
1472
|
*/
|
|
1385
|
-
|
|
1473
|
+
values?: string[];
|
|
1474
|
+
}
|
|
1475
|
+
export interface FileInputProps extends BaseInputProps {
|
|
1476
|
+
/**
|
|
1477
|
+
* Callback when the user has **finished selecting** a file or files.
|
|
1478
|
+
*/
|
|
1479
|
+
onChange?: (event: Event) => void;
|
|
1480
|
+
/**
|
|
1481
|
+
* Callback when the user makes any changes in the file selection.
|
|
1482
|
+
*/
|
|
1483
|
+
onInput?: (event: Event) => void;
|
|
1484
|
+
/**
|
|
1485
|
+
* A string that represents the path to the selected file(s). If no file is selected yet, the value is an empty string ("").
|
|
1486
|
+
* When the user selected multiple files, the value represents the first file in the list of files they selected.
|
|
1487
|
+
* The value is always the file's name prefixed with "C:\fakepath\", which isn't the real path of the file.
|
|
1488
|
+
*
|
|
1489
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/file#value
|
|
1490
|
+
*
|
|
1491
|
+
* @default ''
|
|
1492
|
+
*/
|
|
1493
|
+
value?: string;
|
|
1386
1494
|
/**
|
|
1387
|
-
*
|
|
1495
|
+
* An array of File objects representing the files currently selected by the user.
|
|
1496
|
+
*
|
|
1497
|
+
* This property is read-only and cannot be directly modified.
|
|
1498
|
+
* To clear the selected files, set the `value` prop to an empty string or null.
|
|
1388
1499
|
*
|
|
1389
|
-
*
|
|
1390
|
-
* We haven't agreed how to represent that yet.
|
|
1500
|
+
* @default []
|
|
1391
1501
|
*/
|
|
1392
|
-
|
|
1502
|
+
files?: readonly File[];
|
|
1393
1503
|
}
|
|
1394
1504
|
export interface FieldErrorProps {
|
|
1395
1505
|
/**
|
|
@@ -1636,6 +1746,82 @@ interface CheckboxProps$1 extends GlobalProps, BaseCheckableProps, FieldErrorPro
|
|
|
1636
1746
|
*/
|
|
1637
1747
|
required?: boolean;
|
|
1638
1748
|
}
|
|
1749
|
+
interface ChoiceProps$1 extends GlobalProps, BaseOptionProps {
|
|
1750
|
+
/**
|
|
1751
|
+
* Content to use as the choice label.
|
|
1752
|
+
*
|
|
1753
|
+
* @implementation (StringChildren) The label is produced by extracting and
|
|
1754
|
+
* concatenating the text nodes from the provided content; any markup or
|
|
1755
|
+
* element structure is ignored.
|
|
1756
|
+
*
|
|
1757
|
+
* @implementation (ComponentChildren) Behaves as a slot: any elements passed
|
|
1758
|
+
* are rendered as the label content (subject to surface constraints); there
|
|
1759
|
+
* is no coercion to a string.
|
|
1760
|
+
*/
|
|
1761
|
+
children?: ComponentChildren | StringChildren;
|
|
1762
|
+
/**
|
|
1763
|
+
* Additional text to provide context or guidance for the input.
|
|
1764
|
+
*
|
|
1765
|
+
* This text is displayed along with the input and its label
|
|
1766
|
+
* to offer more information or instructions to the user.
|
|
1767
|
+
*
|
|
1768
|
+
* @implementation this content should be linked to the input with an `aria-describedby` attribute.
|
|
1769
|
+
*/
|
|
1770
|
+
details?: ComponentChildren;
|
|
1771
|
+
/**
|
|
1772
|
+
* Set to `true` to associate a choice with the error passed to `ChoiceList`
|
|
1773
|
+
*
|
|
1774
|
+
* @default false
|
|
1775
|
+
*/
|
|
1776
|
+
error?: boolean;
|
|
1777
|
+
/**
|
|
1778
|
+
* Secondary content for a choice.
|
|
1779
|
+
*/
|
|
1780
|
+
secondaryContent?: ComponentChildren;
|
|
1781
|
+
/**
|
|
1782
|
+
* Content to display when the option is selected.
|
|
1783
|
+
*
|
|
1784
|
+
* This can be used to provide additional information or options related to the choice.
|
|
1785
|
+
*/
|
|
1786
|
+
selectedContent?: ComponentChildren;
|
|
1787
|
+
}
|
|
1788
|
+
interface ChoiceListProps$1 extends GlobalProps, Pick<BasicFieldProps, "label" | "labelAccessibilityVisibility" | "error">, MultipleInputProps, FieldDetailsProps {
|
|
1789
|
+
/**
|
|
1790
|
+
* Whether multiple choices can be selected.
|
|
1791
|
+
*
|
|
1792
|
+
* @default false
|
|
1793
|
+
*/
|
|
1794
|
+
multiple?: boolean;
|
|
1795
|
+
/**
|
|
1796
|
+
* The choices a user can select from.
|
|
1797
|
+
*
|
|
1798
|
+
* Accepts `Choice` components.
|
|
1799
|
+
*/
|
|
1800
|
+
children?: ComponentChildren;
|
|
1801
|
+
/**
|
|
1802
|
+
* Disables the field, disallowing any interaction.
|
|
1803
|
+
*
|
|
1804
|
+
* `disabled` on any child choices is ignored when this is true.
|
|
1805
|
+
*
|
|
1806
|
+
* @default false
|
|
1807
|
+
*/
|
|
1808
|
+
disabled?: MultipleInputProps["disabled"];
|
|
1809
|
+
/**
|
|
1810
|
+
* The variant of the choice grid.
|
|
1811
|
+
*
|
|
1812
|
+
* - `auto`: The variant is determined by the context.
|
|
1813
|
+
* - `list`: The choices are displayed in a list.
|
|
1814
|
+
* - `inline`: The choices are displayed on the inline axis.
|
|
1815
|
+
* - `block`: The choices are displayed on the block axis.
|
|
1816
|
+
* - `grid`: The choices are displayed in a grid.
|
|
1817
|
+
*
|
|
1818
|
+
* @implementation The `block`, `inline` and `grid` variants are more suitable for button looking choices, but it's at the
|
|
1819
|
+
* discretion of each surface.
|
|
1820
|
+
*
|
|
1821
|
+
* @default 'auto'
|
|
1822
|
+
*/
|
|
1823
|
+
variant?: "auto" | "list" | "inline" | "block" | "grid";
|
|
1824
|
+
}
|
|
1639
1825
|
interface ClickableProps$1 extends GlobalProps, BaseBoxProps, BaseClickableProps {
|
|
1640
1826
|
/**
|
|
1641
1827
|
* Disables the clickable, and indicates to assistive technology that the loading is in progress.
|
|
@@ -1688,50 +1874,225 @@ export interface AutocompleteProps<AutocompleteField extends AnyAutocompleteFiel
|
|
|
1688
1874
|
* autofill, but you do not have any more semantic information on the intended
|
|
1689
1875
|
* contents.
|
|
1690
1876
|
*
|
|
1691
|
-
* When set to `off`, you are indicating that this field contains sensitive
|
|
1692
|
-
* information, or contents that are never saved, like one-time codes.
|
|
1877
|
+
* When set to `off`, you are indicating that this field contains sensitive
|
|
1878
|
+
* information, or contents that are never saved, like one-time codes.
|
|
1879
|
+
*
|
|
1880
|
+
* Alternatively, you can provide value which describes the
|
|
1881
|
+
* specific data you would like to be entered into this field during autofill.
|
|
1882
|
+
*
|
|
1883
|
+
* @see Learn more about the set of {@link https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-detail-tokens|autocomplete values} supported in browsers.
|
|
1884
|
+
*
|
|
1885
|
+
* @default 'tel' for PhoneField
|
|
1886
|
+
* @default 'email' for EmailField
|
|
1887
|
+
* @default 'url' for URLField
|
|
1888
|
+
* @default 'on' for everything else
|
|
1889
|
+
*/
|
|
1890
|
+
autocomplete?: AutocompleteField | `${AutocompleteSection} ${AutocompleteField}` | `${AutocompleteGroup} ${AutocompleteField}` | `${AutocompleteSection} ${AutocompleteGroup} ${AutocompleteField}` | "on" | "off";
|
|
1891
|
+
}
|
|
1892
|
+
/**
|
|
1893
|
+
* The “section” scopes the autocomplete data that should be inserted
|
|
1894
|
+
* to a specific area of the page.
|
|
1895
|
+
*
|
|
1896
|
+
* Commonly used when there are multiple fields with the same autocomplete needs
|
|
1897
|
+
* in the same page. For example: 2 shipping address forms in the same page.
|
|
1898
|
+
*/
|
|
1899
|
+
export type AutocompleteSection = `section-${string}`;
|
|
1900
|
+
/**
|
|
1901
|
+
* The contact information group the autocomplete data should be sourced from.
|
|
1902
|
+
*/
|
|
1903
|
+
export type AutocompleteGroup = "shipping" | "billing";
|
|
1904
|
+
/**
|
|
1905
|
+
* The contact information subgroup the autocomplete data should be sourced from.
|
|
1906
|
+
*/
|
|
1907
|
+
export type AutocompleteAddressGroup = "fax" | "home" | "mobile" | "pager";
|
|
1908
|
+
export type AnyAutocompleteField = "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "country-name" | "country" | "current-password" | "email" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "language" | "name" | "new-password" | "nickname" | "one-time-code" | "organization-title" | "organization" | "photo" | "postal-code" | "sex" | "street-address" | "transaction-amount" | "transaction-currency" | "url" | "username" | "bday-day" | "bday-month" | "bday-year" | "bday" | "cc-additional-name" | "cc-expiry-month" | "cc-expiry-year" | "cc-expiry" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-csc" | "cc-type" | `${AutocompleteAddressGroup} email` | "impp" | `${AutocompleteAddressGroup} impp` | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local-prefix" | "tel-local-suffix" | "tel-local" | "tel-national" | `${AutocompleteAddressGroup} tel` | `${AutocompleteAddressGroup} tel-area-code` | `${AutocompleteAddressGroup} tel-country-code` | `${AutocompleteAddressGroup} tel-extension` | `${AutocompleteAddressGroup} tel-local-prefix` | `${AutocompleteAddressGroup} tel-local-suffix` | `${AutocompleteAddressGroup} tel-local` | `${AutocompleteAddressGroup} tel-national`;
|
|
1909
|
+
export type TextAutocompleteField = ExtractStrict<AnyAutocompleteField, "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "country-name" | "country" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "language" | "name" | "nickname" | "one-time-code" | "organization-title" | "organization" | "postal-code" | "sex" | "street-address" | "transaction-currency" | "username" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-type">;
|
|
1910
|
+
export type PhoneAutocompleteField = ExtractStrict<AnyAutocompleteField, "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local-prefix" | "tel-local-suffix" | "tel-local" | "tel-national" | `${AutocompleteAddressGroup} tel` | `${AutocompleteAddressGroup} tel-area-code` | `${AutocompleteAddressGroup} tel-country-code` | `${AutocompleteAddressGroup} tel-extension` | `${AutocompleteAddressGroup} tel-local-prefix` | `${AutocompleteAddressGroup} tel-local-suffix` | `${AutocompleteAddressGroup} tel-local` | `${AutocompleteAddressGroup} tel-national`>;
|
|
1911
|
+
interface PhoneFieldProps$1 extends GlobalProps, BaseTextFieldProps, Pick<FieldDecorationProps, "accessory">, AutocompleteProps<PhoneAutocompleteField> {
|
|
1912
|
+
/**
|
|
1913
|
+
* The type of number to collect.
|
|
1914
|
+
*
|
|
1915
|
+
* Specific style may be applied to each type to provide extra guidance to users. Note that no extra validation is performed based on the type.
|
|
1916
|
+
*
|
|
1917
|
+
* @default '' meaning no specific kind of phone number
|
|
1918
|
+
*/
|
|
1919
|
+
type?: "mobile" | "";
|
|
1920
|
+
}
|
|
1921
|
+
interface DatePickerProps$1 extends GlobalProps, InputProps, FocusEventProps {
|
|
1922
|
+
/**
|
|
1923
|
+
* Default month to display in `YYYY-MM` format.
|
|
1924
|
+
*
|
|
1925
|
+
* This value is used until `view` is set, either directly or as a result of user interaction.
|
|
1926
|
+
*
|
|
1927
|
+
* Defaults to the current month in the user's locale.
|
|
1928
|
+
*/
|
|
1929
|
+
defaultView?: string;
|
|
1930
|
+
/**
|
|
1931
|
+
* Displayed month in `YYYY-MM` format.
|
|
1932
|
+
*
|
|
1933
|
+
* `onViewChange` is called when this value changes.
|
|
1934
|
+
*
|
|
1935
|
+
* Defaults to `defaultView`.
|
|
1936
|
+
*/
|
|
1937
|
+
view?: string;
|
|
1938
|
+
/**
|
|
1939
|
+
* Called whenever the month to display changes.
|
|
1940
|
+
*
|
|
1941
|
+
* @param view The new month to display in `YYYY-MM` format.
|
|
1942
|
+
*/
|
|
1943
|
+
onViewChange?: (view: string) => void;
|
|
1944
|
+
/**
|
|
1945
|
+
* The type of selection the date picker allows.
|
|
1946
|
+
*
|
|
1947
|
+
* - `single` allows selecting a single date.
|
|
1948
|
+
* - `multiple` allows selecting multiple non-contiguous dates.
|
|
1949
|
+
* - `range` allows selecting a single range of dates.
|
|
1950
|
+
*
|
|
1951
|
+
* @default "single"
|
|
1952
|
+
*/
|
|
1953
|
+
type?: "single" | "multiple" | "range";
|
|
1954
|
+
/**
|
|
1955
|
+
* Dates that can be selected.
|
|
1956
|
+
*
|
|
1957
|
+
* A comma-separated list of dates, date ranges. Whitespace is allowed after commas.
|
|
1958
|
+
*
|
|
1959
|
+
* The default `''` allows all dates.
|
|
1960
|
+
*
|
|
1961
|
+
* - Dates in `YYYY-MM-DD` format allow a single date.
|
|
1962
|
+
* - Dates in `YYYY-MM` format allow a whole month.
|
|
1963
|
+
* - Dates in `YYYY` format allow a whole year.
|
|
1964
|
+
* - Ranges are expressed as `start--end`.
|
|
1965
|
+
* - Ranges are inclusive.
|
|
1966
|
+
* - If either `start` or `end` is omitted, the range is unbounded in that direction.
|
|
1967
|
+
* - If parts of the date are omitted for `start`, they are assumed to be the minimum possible value.
|
|
1968
|
+
* So `2024--` is equivalent to `2024-01-01--`.
|
|
1969
|
+
* - If parts of the date are omitted for `end`, they are assumed to be the maximum possible value.
|
|
1970
|
+
* So `--2024` is equivalent to `--2024-12-31`.
|
|
1971
|
+
* - Whitespace is allowed either side of `--`.
|
|
1972
|
+
*
|
|
1973
|
+
* @default ""
|
|
1974
|
+
*
|
|
1975
|
+
* @example
|
|
1976
|
+
* `2024-02--2025` // allow any date from February 2024 to the end of 2025
|
|
1977
|
+
* `2024-02--` // allow any date from February 2024 to the end of the month
|
|
1978
|
+
* `2024-05-09, 2024-05-11` // allow only the 9th and 11th of May 2024
|
|
1979
|
+
*/
|
|
1980
|
+
allow?: string;
|
|
1981
|
+
/**
|
|
1982
|
+
* Dates that cannot be selected. These subtract from `allow`.
|
|
1983
|
+
*
|
|
1984
|
+
* A comma-separated list of dates, date ranges. Whitespace is allowed after commas.
|
|
1985
|
+
*
|
|
1986
|
+
* The default `''` has no effect on `allow`.
|
|
1987
|
+
*
|
|
1988
|
+
* - Dates in `YYYY-MM-DD` format disallow a single date.
|
|
1989
|
+
* - Dates in `YYYY-MM` format disallow a whole month.
|
|
1990
|
+
* - Dates in `YYYY` format disallow a whole year.
|
|
1991
|
+
* - Ranges are expressed as `start--end`.
|
|
1992
|
+
* - Ranges are inclusive.
|
|
1993
|
+
* - If either `start` or `end` is omitted, the range is unbounded in that direction.
|
|
1994
|
+
* - If parts of the date are omitted for `start`, they are assumed to be the minimum possible value.
|
|
1995
|
+
* So `2024--` is equivalent to `2024-01-01--`.
|
|
1996
|
+
* - If parts of the date are omitted for `end`, they are assumed to be the maximum possible value.
|
|
1997
|
+
* So `--2024` is equivalent to `--2024-12-31`.
|
|
1998
|
+
* - Whitespace is allowed either side of `--`.
|
|
1999
|
+
*
|
|
2000
|
+
* @default ""
|
|
2001
|
+
*
|
|
2002
|
+
* @example
|
|
2003
|
+
* `--2024-02` // disallow any date before February 2024
|
|
2004
|
+
* `2024-05-09, 2024-05-11` // disallow the 9th and 11th of May 2024
|
|
2005
|
+
*/
|
|
2006
|
+
disallow?: string;
|
|
2007
|
+
/**
|
|
2008
|
+
* Days of the week that can be selected. These intersect with the result of `allow` and `disallow`.
|
|
2009
|
+
*
|
|
2010
|
+
* A comma-separated list of days. Whitespace is allowed after commas.
|
|
2011
|
+
*
|
|
2012
|
+
* The default `''` has no effect on the result of `allow` and `disallow`.
|
|
2013
|
+
*
|
|
2014
|
+
* Days are `sunday`, `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`.
|
|
2015
|
+
*
|
|
2016
|
+
* @default ""
|
|
2017
|
+
*
|
|
2018
|
+
* @example
|
|
2019
|
+
* 'saturday, sunday' // allow only weekends within the result of `allow` and `disallow`.
|
|
2020
|
+
*/
|
|
2021
|
+
allowDays?: string;
|
|
2022
|
+
/**
|
|
2023
|
+
* Days of the week that cannot be selected. This subtracts from `allowDays`, and intersects with the result of `allow` and `disallow`.
|
|
2024
|
+
*
|
|
2025
|
+
* A comma-separated list of days. Whitespace is allowed after commas.
|
|
2026
|
+
*
|
|
2027
|
+
* The default `''` has no effect on `allowDays`.
|
|
2028
|
+
*
|
|
2029
|
+
* Days are `sunday`, `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`.
|
|
2030
|
+
*
|
|
2031
|
+
* @default ""
|
|
2032
|
+
*
|
|
2033
|
+
* @example
|
|
2034
|
+
* 'saturday, sunday' // disallow weekends within the result of `allow` and `disallow`.
|
|
2035
|
+
*/
|
|
2036
|
+
disallowDays?: string;
|
|
2037
|
+
/**
|
|
2038
|
+
* Default selected value.
|
|
2039
|
+
*
|
|
2040
|
+
* The default means no date is selected.
|
|
2041
|
+
*
|
|
2042
|
+
* If the provided value is invalid, no date is selected.
|
|
2043
|
+
*
|
|
2044
|
+
* - If `type="single"`, this is a date in `YYYY-MM-DD` format.
|
|
2045
|
+
* - If `type="multiple"`, this is a comma-separated list of dates in `YYYY-MM-DD` format.
|
|
2046
|
+
* - If `type="range"`, this is a range in `YYYY-MM-DD--YYYY-MM-DD` format. The range is inclusive.
|
|
2047
|
+
*
|
|
2048
|
+
* @default ""
|
|
2049
|
+
*/
|
|
2050
|
+
defaultValue?: string;
|
|
2051
|
+
/**
|
|
2052
|
+
* Current selected value.
|
|
2053
|
+
*
|
|
2054
|
+
* The default means no date is selected.
|
|
1693
2055
|
*
|
|
1694
|
-
*
|
|
1695
|
-
* specific data you would like to be entered into this field during autofill.
|
|
2056
|
+
* If the provided value is invalid, no date is selected.
|
|
1696
2057
|
*
|
|
1697
|
-
*
|
|
2058
|
+
* Otherwise:
|
|
1698
2059
|
*
|
|
1699
|
-
*
|
|
1700
|
-
*
|
|
1701
|
-
*
|
|
1702
|
-
*
|
|
2060
|
+
* - If `type="single"`, this is a date in `YYYY-MM-DD` format.
|
|
2061
|
+
* - If `type="multiple"`, this is a comma-separated list of dates in `YYYY-MM-DD` format.
|
|
2062
|
+
* - If `type="range"`, this is a range in `YYYY-MM-DD--YYYY-MM-DD` format. The range is inclusive.
|
|
2063
|
+
*
|
|
2064
|
+
* @default ""
|
|
1703
2065
|
*/
|
|
1704
|
-
|
|
2066
|
+
value?: string;
|
|
2067
|
+
/**
|
|
2068
|
+
* Callback when any date is selected. Will fire before `onChange`.
|
|
2069
|
+
*/
|
|
2070
|
+
onInput?: (event: Event) => void;
|
|
2071
|
+
/**
|
|
2072
|
+
* Callback when the `value` is changed. For `type="single"` and `type="multiple"`, this is the same as `onInput`.
|
|
2073
|
+
* For `type="range"`, this is only called when the range is completed by selecting the end date of the range.
|
|
2074
|
+
*/
|
|
2075
|
+
onChange?: (event: Event) => void;
|
|
1705
2076
|
}
|
|
1706
|
-
|
|
1707
|
-
* The “section” scopes the autocomplete data that should be inserted
|
|
1708
|
-
* to a specific area of the page.
|
|
1709
|
-
*
|
|
1710
|
-
* Commonly used when there are multiple fields with the same autocomplete needs
|
|
1711
|
-
* in the same page. For example: 2 shipping address forms in the same page.
|
|
1712
|
-
*/
|
|
1713
|
-
export type AutocompleteSection = `section-${string}`;
|
|
1714
|
-
/**
|
|
1715
|
-
* The contact information group the autocomplete data should be sourced from.
|
|
1716
|
-
*/
|
|
1717
|
-
export type AutocompleteGroup = "shipping" | "billing";
|
|
1718
|
-
/**
|
|
1719
|
-
* The contact information subgroup the autocomplete data should be sourced from.
|
|
1720
|
-
*/
|
|
1721
|
-
export type AutocompleteAddressGroup = "fax" | "home" | "mobile" | "pager";
|
|
1722
|
-
export type AnyAutocompleteField = "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "country-name" | "country" | "current-password" | "email" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "language" | "name" | "new-password" | "nickname" | "one-time-code" | "organization-title" | "organization" | "photo" | "postal-code" | "sex" | "street-address" | "transaction-amount" | "transaction-currency" | "url" | "username" | "bday-day" | "bday-month" | "bday-year" | "bday" | "cc-additional-name" | "cc-expiry-month" | "cc-expiry-year" | "cc-expiry" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-csc" | "cc-type" | `${AutocompleteAddressGroup} email` | "impp" | `${AutocompleteAddressGroup} impp` | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local-prefix" | "tel-local-suffix" | "tel-local" | "tel-national" | `${AutocompleteAddressGroup} tel` | `${AutocompleteAddressGroup} tel-area-code` | `${AutocompleteAddressGroup} tel-country-code` | `${AutocompleteAddressGroup} tel-extension` | `${AutocompleteAddressGroup} tel-local-prefix` | `${AutocompleteAddressGroup} tel-local-suffix` | `${AutocompleteAddressGroup} tel-local` | `${AutocompleteAddressGroup} tel-national`;
|
|
1723
|
-
export type TextAutocompleteField = ExtractStrict<AnyAutocompleteField, "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "country-name" | "country" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "language" | "name" | "nickname" | "one-time-code" | "organization-title" | "organization" | "postal-code" | "sex" | "street-address" | "transaction-currency" | "username" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-type">;
|
|
1724
|
-
export type PhoneAutocompleteField = ExtractStrict<AnyAutocompleteField, "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local-prefix" | "tel-local-suffix" | "tel-local" | "tel-national" | `${AutocompleteAddressGroup} tel` | `${AutocompleteAddressGroup} tel-area-code` | `${AutocompleteAddressGroup} tel-country-code` | `${AutocompleteAddressGroup} tel-extension` | `${AutocompleteAddressGroup} tel-local-prefix` | `${AutocompleteAddressGroup} tel-local-suffix` | `${AutocompleteAddressGroup} tel-local` | `${AutocompleteAddressGroup} tel-national`>;
|
|
1725
|
-
interface PhoneFieldProps$1 extends GlobalProps, BaseTextFieldProps, Pick<FieldDecorationProps, "accessory">, AutocompleteProps<PhoneAutocompleteField> {
|
|
2077
|
+
interface DateFieldProps$1 extends GlobalProps, BaseTextFieldProps, Pick<DatePickerProps$1, "view" | "defaultView" | "value" | "defaultValue" | "allow" | "disallow" | "allowDays" | "disallowDays" | "onViewChange">, AutocompleteProps<DateAutocompleteField> {
|
|
1726
2078
|
/**
|
|
1727
|
-
*
|
|
2079
|
+
* Callback when the field has an invalid date.
|
|
2080
|
+
* This callback will be called, if the date typed is invalid or disabled.
|
|
1728
2081
|
*
|
|
1729
|
-
*
|
|
2082
|
+
* Dates that don’t exist or have formatting errors are considered invalid. Some examples of invalid dates are:
|
|
2083
|
+
* - 2021-02-31: February doesn’t have 31 days
|
|
2084
|
+
* - 2021-02-00: The day can’t be 00
|
|
1730
2085
|
*
|
|
1731
|
-
*
|
|
2086
|
+
* Disallowed dates are considered invalid.
|
|
2087
|
+
*
|
|
2088
|
+
* It’s important to note that this callback will be called only when the user **finishes editing** the date,
|
|
2089
|
+
* and it’s called right after the `onChange` callback.
|
|
2090
|
+
* The field is **not** validated on every change to the input. Once the buyer has signalled that
|
|
2091
|
+
* they have finished editing the field (typically, by blurring the field), the field gets validated and the callback is run if the value is invalid.
|
|
1732
2092
|
*/
|
|
1733
|
-
|
|
2093
|
+
onInvalid?: (event: Event) => void;
|
|
1734
2094
|
}
|
|
2095
|
+
export type DateAutocompleteField = ExtractStrict<AnyAutocompleteField, "bday" | "bday-day" | "bday-month" | "bday-year" | "cc-expiry" | "cc-expiry-month" | "cc-expiry-year">;
|
|
1735
2096
|
interface DetailsProps$1 extends GlobalProps, ToggleEventProps {
|
|
1736
2097
|
/**
|
|
1737
2098
|
* The content of the details.
|
|
@@ -1772,13 +2133,7 @@ interface DetailsProps$1 extends GlobalProps, ToggleEventProps {
|
|
|
1772
2133
|
}
|
|
1773
2134
|
interface DividerProps$1 extends GlobalProps {
|
|
1774
2135
|
/**
|
|
1775
|
-
* Specify the direction of the divider.
|
|
1776
|
-
*
|
|
1777
|
-
* An 'inline' divider separates blocks of content.
|
|
1778
|
-
* In a left-to-right or right-to-left writing mode, this would typically be a horizontal line.
|
|
1779
|
-
*
|
|
1780
|
-
* A 'block' divider separates items within the current line of content.
|
|
1781
|
-
* In a left-to-right or right-to-left writing mode, this would typically be a vertical line.
|
|
2136
|
+
* Specify the direction of the divider. This uses [logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values).
|
|
1782
2137
|
*
|
|
1783
2138
|
* @default 'inline'
|
|
1784
2139
|
*/
|
|
@@ -1790,16 +2145,17 @@ interface DividerProps$1 extends GlobalProps {
|
|
|
1790
2145
|
*/
|
|
1791
2146
|
color?: ColorKeyword;
|
|
1792
2147
|
}
|
|
1793
|
-
interface DropZoneProps$1 extends GlobalProps, FileInputProps
|
|
2148
|
+
interface DropZoneProps$1 extends GlobalProps, FileInputProps, BasicFieldProps {
|
|
1794
2149
|
/**
|
|
1795
|
-
* A string representing the types of files that are accepted by the
|
|
2150
|
+
* A string representing the types of files that are accepted by the drop zone.
|
|
1796
2151
|
* This string is a comma-separated list of unique file type specifiers which can be one of the following:
|
|
1797
2152
|
* - A file extension starting with a period (".") character (e.g. .jpg, .pdf, .doc)
|
|
1798
2153
|
* - A valid MIME type string with no extensions
|
|
1799
2154
|
*
|
|
1800
|
-
* If
|
|
2155
|
+
* If omitted, all file types are accepted.
|
|
1801
2156
|
*
|
|
1802
2157
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
|
|
2158
|
+
* @default ''
|
|
1803
2159
|
*/
|
|
1804
2160
|
accept?: string;
|
|
1805
2161
|
/**
|
|
@@ -1809,15 +2165,16 @@ interface DropZoneProps$1 extends GlobalProps, FileInputProps<File[]>, BasicFiel
|
|
|
1809
2165
|
*/
|
|
1810
2166
|
accessibilityLabel?: string;
|
|
1811
2167
|
/**
|
|
1812
|
-
*
|
|
2168
|
+
* Whether multiple files can be selected or dropped at once.
|
|
1813
2169
|
*
|
|
1814
2170
|
* @default false
|
|
1815
2171
|
*/
|
|
1816
2172
|
multiple?: boolean;
|
|
1817
2173
|
/**
|
|
1818
|
-
* Callback when rejected files are dropped.
|
|
2174
|
+
* Callback fired when rejected files are dropped.
|
|
2175
|
+
* Files are rejected based on the `accept` prop and are not added to `files`.
|
|
1819
2176
|
*/
|
|
1820
|
-
onDropRejected?: (
|
|
2177
|
+
onDropRejected?: (event: Event) => void;
|
|
1821
2178
|
}
|
|
1822
2179
|
interface EmailFieldProps$1 extends GlobalProps, BaseTextFieldProps, MinMaxLengthProps, AutocompleteProps<EmailAutocompleteField> {
|
|
1823
2180
|
}
|
|
@@ -1860,7 +2217,7 @@ export interface GapProps {
|
|
|
1860
2217
|
*
|
|
1861
2218
|
* @default 'none'
|
|
1862
2219
|
*/
|
|
1863
|
-
gap?: MaybeTwoValuesShorthandProperty<SpacingKeyword
|
|
2220
|
+
gap?: MaybeResponsive<MaybeTwoValuesShorthandProperty<SpacingKeyword>>;
|
|
1864
2221
|
/**
|
|
1865
2222
|
* Adjust spacing between elements in the block axis.
|
|
1866
2223
|
*
|
|
@@ -1868,7 +2225,7 @@ export interface GapProps {
|
|
|
1868
2225
|
*
|
|
1869
2226
|
* @default '' - meaning no override
|
|
1870
2227
|
*/
|
|
1871
|
-
rowGap?: SpacingKeyword | ""
|
|
2228
|
+
rowGap?: MaybeResponsive<SpacingKeyword | "">;
|
|
1872
2229
|
/**
|
|
1873
2230
|
* Adjust spacing between elements in the inline axis.
|
|
1874
2231
|
*
|
|
@@ -1876,7 +2233,7 @@ export interface GapProps {
|
|
|
1876
2233
|
*
|
|
1877
2234
|
* @default '' - meaning no override
|
|
1878
2235
|
*/
|
|
1879
|
-
columnGap?: SpacingKeyword | ""
|
|
2236
|
+
columnGap?: MaybeResponsive<SpacingKeyword | "">;
|
|
1880
2237
|
}
|
|
1881
2238
|
export type BaselinePosition = "baseline" | "first baseline" | "last baseline";
|
|
1882
2239
|
export type ContentDistribution = "space-between" | "space-around" | "space-evenly" | "stretch";
|
|
@@ -1913,14 +2270,14 @@ interface GridProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
1913
2270
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns
|
|
1914
2271
|
@default 'none'
|
|
1915
2272
|
*/
|
|
1916
|
-
gridTemplateColumns?: string
|
|
2273
|
+
gridTemplateColumns?: MaybeResponsive<string>;
|
|
1917
2274
|
/**
|
|
1918
2275
|
Define rows and specify their size.
|
|
1919
2276
|
|
|
1920
2277
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows
|
|
1921
2278
|
@default 'none'
|
|
1922
2279
|
*/
|
|
1923
|
-
gridTemplateRows?: string
|
|
2280
|
+
gridTemplateRows?: MaybeResponsive<string>;
|
|
1924
2281
|
/**
|
|
1925
2282
|
Aligns the grid items along the inline (row) axis.
|
|
1926
2283
|
|
|
@@ -1929,7 +2286,7 @@ interface GridProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
1929
2286
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items
|
|
1930
2287
|
@default '' - meaning no override
|
|
1931
2288
|
*/
|
|
1932
|
-
justifyItems?: JustifyItemsKeyword | ""
|
|
2289
|
+
justifyItems?: MaybeResponsive<JustifyItemsKeyword | "">;
|
|
1933
2290
|
/**
|
|
1934
2291
|
Aligns the grid items along the block (column) axis.
|
|
1935
2292
|
|
|
@@ -1938,14 +2295,14 @@ interface GridProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
1938
2295
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
|
|
1939
2296
|
@default '' - meaning no override
|
|
1940
2297
|
*/
|
|
1941
|
-
alignItems?: AlignItemsKeyword | ""
|
|
2298
|
+
alignItems?: MaybeResponsive<AlignItemsKeyword | "">;
|
|
1942
2299
|
/**
|
|
1943
2300
|
A shorthand property for `justify-items` and `align-items`.
|
|
1944
2301
|
|
|
1945
2302
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/place-items
|
|
1946
2303
|
@default 'normal normal'
|
|
1947
2304
|
*/
|
|
1948
|
-
placeItems?:
|
|
2305
|
+
placeItems?: MaybeResponsive<`${AlignItemsKeyword} ${JustifyItemsKeyword}` | AlignItemsKeyword>;
|
|
1949
2306
|
/**
|
|
1950
2307
|
Aligns the grid along the inline (row) axis.
|
|
1951
2308
|
|
|
@@ -1954,7 +2311,7 @@ interface GridProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
1954
2311
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
|
|
1955
2312
|
@default '' - meaning no override
|
|
1956
2313
|
*/
|
|
1957
|
-
justifyContent?: JustifyContentKeyword | ""
|
|
2314
|
+
justifyContent?: MaybeResponsive<JustifyContentKeyword | "">;
|
|
1958
2315
|
/**
|
|
1959
2316
|
Aligns the grid along the block (column) axis.
|
|
1960
2317
|
|
|
@@ -1963,14 +2320,14 @@ interface GridProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
1963
2320
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
|
|
1964
2321
|
@default '' - meaning no override
|
|
1965
2322
|
*/
|
|
1966
|
-
alignContent?: AlignContentKeyword | ""
|
|
2323
|
+
alignContent?: MaybeResponsive<AlignContentKeyword | "">;
|
|
1967
2324
|
/**
|
|
1968
2325
|
A shorthand property for `justify-content` and `align-content`.
|
|
1969
2326
|
|
|
1970
2327
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/place-content
|
|
1971
2328
|
@default 'normal normal'
|
|
1972
2329
|
*/
|
|
1973
|
-
placeContent?:
|
|
2330
|
+
placeContent?: MaybeResponsive<`${AlignContentKeyword} ${JustifyContentKeyword}` | AlignContentKeyword>;
|
|
1974
2331
|
}
|
|
1975
2332
|
interface GridItemProps$1 extends GlobalProps, BaseBoxPropsWithRole {
|
|
1976
2333
|
/**
|
|
@@ -2069,7 +2426,7 @@ interface HeadingProps$1 extends GlobalProps, AccessibilityVisibilityProps, Bloc
|
|
|
2069
2426
|
*/
|
|
2070
2427
|
accessibilityRole?: "heading" | ExtractStrict<AccessibilityRole, "presentation" | "none">;
|
|
2071
2428
|
}
|
|
2072
|
-
interface IconProps$1 extends GlobalProps {
|
|
2429
|
+
interface IconProps$1 extends GlobalProps, Pick<InteractionProps, "interestFor"> {
|
|
2073
2430
|
/**
|
|
2074
2431
|
* Sets the tone of the icon, based on the intention of the information being conveyed.
|
|
2075
2432
|
*
|
|
@@ -2363,52 +2720,6 @@ interface MapMarkerProps$1 extends GlobalProps, InteractionProps, Pick<SizingPro
|
|
|
2363
2720
|
*/
|
|
2364
2721
|
onClick?: (event: Event) => void;
|
|
2365
2722
|
}
|
|
2366
|
-
export interface BaseOverlayProps {
|
|
2367
|
-
/**
|
|
2368
|
-
* Callback fired after the overlay is shown.
|
|
2369
|
-
*/
|
|
2370
|
-
onShow?: (event: Event) => void;
|
|
2371
|
-
/**
|
|
2372
|
-
* Callback fired when the overlay is shown **after** any animations to show the overlay have finished.
|
|
2373
|
-
*/
|
|
2374
|
-
onAfterShow?: (event: Event) => void;
|
|
2375
|
-
/**
|
|
2376
|
-
* Callback fired after the overlay is hidden.
|
|
2377
|
-
*/
|
|
2378
|
-
onHide?: (event: Event) => void;
|
|
2379
|
-
/**
|
|
2380
|
-
* Callback fired when the overlay is hidden **after** any animations to hide the overlay have finished.
|
|
2381
|
-
*/
|
|
2382
|
-
onAfterHide?: (event: Event) => void;
|
|
2383
|
-
}
|
|
2384
|
-
/**
|
|
2385
|
-
* Shared interfaces for web component methods.
|
|
2386
|
-
*
|
|
2387
|
-
* Methods are required (not optional) because:
|
|
2388
|
-
* - Components implementing this interface must provide all methods
|
|
2389
|
-
* - Unlike props/attributes, methods are not rendered in HTML but are JavaScript APIs
|
|
2390
|
-
* - Consumers expect these methods to be consistently available on all instances
|
|
2391
|
-
*/
|
|
2392
|
-
export interface BaseOverlayMethods {
|
|
2393
|
-
/**
|
|
2394
|
-
* Method to show an overlay.
|
|
2395
|
-
*
|
|
2396
|
-
* @implementation This is a method to be called on the element and not a callback and should hence be camelCase
|
|
2397
|
-
*/
|
|
2398
|
-
showOverlay: () => void;
|
|
2399
|
-
/**
|
|
2400
|
-
* Method to hide an overlay.
|
|
2401
|
-
*
|
|
2402
|
-
* @implementation This is a method to be called on the element and not a callback and should hence be camelCase
|
|
2403
|
-
*/
|
|
2404
|
-
hideOverlay: () => void;
|
|
2405
|
-
/**
|
|
2406
|
-
* Method to toggle the visiblity of an overlay.
|
|
2407
|
-
*
|
|
2408
|
-
* @implementation This is a method to be called on the element and not a callback and should hence be camelCase
|
|
2409
|
-
*/
|
|
2410
|
-
toggleOverlay: () => void;
|
|
2411
|
-
}
|
|
2412
2723
|
interface ModalProps$1 extends GlobalProps, BaseOverlayProps, BaseOverlayMethods, ActionSlots {
|
|
2413
2724
|
/**
|
|
2414
2725
|
* A label that describes the purpose of the modal. When set,
|
|
@@ -2448,6 +2759,9 @@ interface ModalProps$1 extends GlobalProps, BaseOverlayProps, BaseOverlayMethods
|
|
|
2448
2759
|
*/
|
|
2449
2760
|
children?: ComponentChildren;
|
|
2450
2761
|
}
|
|
2762
|
+
interface MoneyFieldProps$1 extends GlobalProps, BaseTextFieldProps, NumberConstraintsProps, AutocompleteProps<MoneyAutocompleteField> {
|
|
2763
|
+
}
|
|
2764
|
+
export type MoneyAutocompleteField = ExtractStrict<AnyAutocompleteField, "transaction-amount">;
|
|
2451
2765
|
interface NumberFieldProps$1 extends GlobalProps, BaseTextFieldProps, AutocompleteProps<NumberAutocompleteField>, NumberConstraintsProps, FieldDecorationProps {
|
|
2452
2766
|
/**
|
|
2453
2767
|
* Sets the virtual keyboard.
|
|
@@ -2524,6 +2838,22 @@ interface PopoverProps$1 extends GlobalProps, BaseOverlayProps, BaseOverlayMetho
|
|
|
2524
2838
|
*/
|
|
2525
2839
|
children?: ComponentChildren;
|
|
2526
2840
|
}
|
|
2841
|
+
interface PressButtonProps$1 extends GlobalProps, Pick<ButtonProps$1, "accessibilityLabel" | "children" | "icon" | "inlineSize" | "lang" | "tone" | "variant" | "disabled" | "loading" | "onClick" | "onBlur" | "onFocus"> {
|
|
2842
|
+
/**
|
|
2843
|
+
* Whether the button is pressed.
|
|
2844
|
+
*
|
|
2845
|
+
* @default false
|
|
2846
|
+
*/
|
|
2847
|
+
pressed?: boolean;
|
|
2848
|
+
/**
|
|
2849
|
+
* Whether the button is pressed by default.
|
|
2850
|
+
*
|
|
2851
|
+
* @default false
|
|
2852
|
+
*
|
|
2853
|
+
* @implementation `defaultPressed` reflects to the `pressed` attribute.
|
|
2854
|
+
*/
|
|
2855
|
+
defaultPressed?: boolean;
|
|
2856
|
+
}
|
|
2527
2857
|
interface ProductThumbnailProps$1 extends GlobalProps, BaseImageProps {
|
|
2528
2858
|
/**
|
|
2529
2859
|
* Decorates the product thumbnail with the quantity of the product.
|
|
@@ -2633,6 +2963,26 @@ interface QRCodeProps$1 extends GlobalProps {
|
|
|
2633
2963
|
*/
|
|
2634
2964
|
logo?: string;
|
|
2635
2965
|
}
|
|
2966
|
+
interface QueryContainerProps$1 extends GlobalProps {
|
|
2967
|
+
/**
|
|
2968
|
+
* The content of the container.
|
|
2969
|
+
*/
|
|
2970
|
+
children?: ComponentChildren;
|
|
2971
|
+
/**
|
|
2972
|
+
* The name of the container, which can be used in your container queries to target this container specifically.
|
|
2973
|
+
*
|
|
2974
|
+
* We place the container name of `s-default` on every container. Because of this, it is not required to add a `containerName` identifier in your queries. For example, a `@container (inline-size <= 300px) none, auto` query is equivalent to `@container s-default (inline-size <= 300px) none, auto`.
|
|
2975
|
+
*
|
|
2976
|
+
* Any value set in `containerName` will be set alongside alongside `s-default`. For example, `containerName="my-container-name"` will result in a value of `s-default my-container-name` set on the `container-name` CSS property of the rendered HTML.
|
|
2977
|
+
*
|
|
2978
|
+
* @default ''
|
|
2979
|
+
*
|
|
2980
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/container-name
|
|
2981
|
+
*
|
|
2982
|
+
* @implementation You must always have a CSS `container-name` of `s-default` for this component.
|
|
2983
|
+
*/
|
|
2984
|
+
containerName?: string;
|
|
2985
|
+
}
|
|
2636
2986
|
export type OverflowKeyword = "auto" | "hidden";
|
|
2637
2987
|
interface ScrollBoxProps$1 extends GlobalProps, Omit<BaseBoxPropsWithRole, "overflow"> {
|
|
2638
2988
|
/**
|
|
@@ -2771,34 +3121,34 @@ interface StackProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
2771
3121
|
*/
|
|
2772
3122
|
children?: ComponentChildren;
|
|
2773
3123
|
/**
|
|
2774
|
-
* Sets how the children are placed within the Stack.
|
|
3124
|
+
* Sets how the children are placed within the Stack. This uses [logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values).
|
|
2775
3125
|
*
|
|
2776
3126
|
* @default 'block'
|
|
2777
3127
|
*
|
|
2778
3128
|
* @implementation the content will wrap if the direction is 'inline', and not wrap if the direction is 'block'
|
|
2779
3129
|
*/
|
|
2780
|
-
direction?: "block" | "inline"
|
|
3130
|
+
direction?: MaybeResponsive<"block" | "inline">;
|
|
2781
3131
|
/**
|
|
2782
3132
|
* Aligns the Stack along the main axis.
|
|
2783
3133
|
*
|
|
2784
3134
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
|
|
2785
3135
|
* @default 'normal'
|
|
2786
3136
|
*/
|
|
2787
|
-
justifyContent?: JustifyContentKeyword
|
|
3137
|
+
justifyContent?: MaybeResponsive<JustifyContentKeyword>;
|
|
2788
3138
|
/**
|
|
2789
3139
|
* Aligns the Stack's children along the cross axis.
|
|
2790
3140
|
*
|
|
2791
3141
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
|
|
2792
3142
|
* @default 'normal'
|
|
2793
3143
|
*/
|
|
2794
|
-
alignItems?: AlignItemsKeyword
|
|
3144
|
+
alignItems?: MaybeResponsive<AlignItemsKeyword>;
|
|
2795
3145
|
/**
|
|
2796
3146
|
* Aligns the Stack along the cross axis.
|
|
2797
3147
|
*
|
|
2798
3148
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
|
|
2799
3149
|
* @default 'normal'
|
|
2800
3150
|
*/
|
|
2801
|
-
alignContent?: AlignContentKeyword
|
|
3151
|
+
alignContent?: MaybeResponsive<AlignContentKeyword>;
|
|
2802
3152
|
}
|
|
2803
3153
|
interface SummaryProps$1 extends GlobalProps {
|
|
2804
3154
|
/**
|
|
@@ -2818,7 +3168,7 @@ interface SummaryProps$1 extends GlobalProps {
|
|
|
2818
3168
|
}
|
|
2819
3169
|
interface SwitchProps$1 extends GlobalProps, BaseCheckableProps, BasicFieldProps, FieldDetailsProps, FieldErrorProps {
|
|
2820
3170
|
}
|
|
2821
|
-
interface TextProps$1 extends GlobalProps, AccessibilityVisibilityProps, BaseTypographyProps, DisplayProps {
|
|
3171
|
+
interface TextProps$1 extends GlobalProps, AccessibilityVisibilityProps, BaseTypographyProps, DisplayProps, Pick<InteractionProps, "interestFor"> {
|
|
2822
3172
|
/**
|
|
2823
3173
|
* The content of the Text.
|
|
2824
3174
|
*/
|
|
@@ -2826,7 +3176,7 @@ interface TextProps$1 extends GlobalProps, AccessibilityVisibilityProps, BaseTyp
|
|
|
2826
3176
|
/**
|
|
2827
3177
|
* Provide semantic meaning and default styling to the text.
|
|
2828
3178
|
*
|
|
2829
|
-
* Other presentation properties on
|
|
3179
|
+
* Other presentation properties on Text override the default styling.
|
|
2830
3180
|
*
|
|
2831
3181
|
* @default 'generic'
|
|
2832
3182
|
*/
|
|
@@ -2940,6 +3290,12 @@ interface TimeProps$1 extends GlobalProps {
|
|
|
2940
3290
|
*/
|
|
2941
3291
|
dateTime?: string;
|
|
2942
3292
|
}
|
|
3293
|
+
interface TooltipProps$1 extends GlobalProps {
|
|
3294
|
+
/**
|
|
3295
|
+
* The content of the Tooltip.
|
|
3296
|
+
*/
|
|
3297
|
+
children?: ComponentChildren;
|
|
3298
|
+
}
|
|
2943
3299
|
interface UnorderedListProps$1 extends GlobalProps {
|
|
2944
3300
|
}
|
|
2945
3301
|
export interface URLFieldProps extends GlobalProps, BaseTextFieldProps, MinMaxLengthProps, AutocompleteProps<URLAutocompleteField> {
|
|
@@ -2948,7 +3304,6 @@ export type URLAutocompleteField = ExtractStrict<AnyAutocompleteField, "url" | "
|
|
|
2948
3304
|
|
|
2949
3305
|
|
|
2950
3306
|
|
|
2951
|
-
import { ReactNode } from 'react';
|
|
2952
3307
|
|
|
2953
3308
|
type ReducedAlignContentKeyword = Extract<AlignContentKeyword, 'normal' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'center' | 'start' | 'end'>;
|
|
2954
3309
|
type ReducedAlignItemsKeyword = Extract<AlignItemsKeyword, 'normal' | 'stretch' | 'baseline' | 'center' | 'start' | 'end'>;
|
|
@@ -2971,14 +3326,9 @@ interface BaseElementProps<TClass = HTMLElement> {
|
|
|
2971
3326
|
interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
2972
3327
|
children?: preact.ComponentChildren;
|
|
2973
3328
|
}
|
|
2974
|
-
|
|
2975
|
-
* The list of available icon types.
|
|
2976
|
-
*
|
|
2977
|
-
* @see https://github.com/Shopify/ui-api-design/blob/main/packages/ui-api-design/src/components/Icon/Icon.ts#L10
|
|
2978
|
-
*/
|
|
2979
|
-
type ReducedIconTypes = Extract<IconType, 'alert-circle' | 'alert-triangle-filled' | 'alert-triangle' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up-right' | 'arrow-up' | 'bag' | 'bullet' | 'calendar' | 'camera' | 'caret-down' | 'cart' | 'cash-dollar' | 'categories' | 'check-circle' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle' | 'clipboard' | 'clock' | 'credit-card' | 'delete' | 'delivered' | 'delivery' | 'disabled' | 'discount' | 'edit' | 'email' | 'empty' | 'external' | 'filter' | 'geolocation' | 'gift-card' | 'globe' | 'grid' | 'image' | 'info-filled' | 'info' | 'list-bulleted' | 'location' | 'lock' | 'map' | 'menu-horizontal' | 'menu-vertical' | 'menu' | 'minus' | 'mobile' | 'note' | 'order' | 'organization' | 'plus' | 'profile' | 'question-circle-filled' | 'question-circle' | 'reorder' | 'reset' | 'return' | 'savings' | 'search' | 'settings' | 'star-filled' | 'star-half' | 'star' | 'store' | 'truck' | 'upload' | 'x-circle-filled' | 'x-circle' | 'x'>;
|
|
3329
|
+
type ReducedIconTypes = 'alert-circle' | 'alert-triangle-filled' | 'alert-triangle' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up-right' | 'arrow-up' | 'bag' | 'bullet' | 'calendar' | 'camera' | 'caret-down' | 'cart' | 'cash-dollar' | 'categories' | 'check-circle' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle' | 'clipboard' | 'clock' | 'credit-card' | 'delete' | 'delivered' | 'delivery' | 'disabled' | 'discount' | 'edit' | 'email' | 'empty' | 'external' | 'filter' | 'geolocation' | 'gift-card' | 'globe' | 'grid' | 'image' | 'info-filled' | 'info' | 'list-bulleted' | 'location' | 'lock' | 'map' | 'menu-horizontal' | 'menu-vertical' | 'menu' | 'minus' | 'mobile' | 'note' | 'order' | 'organization' | 'plus' | 'profile' | 'question-circle-filled' | 'question-circle' | 'reorder' | 'reset' | 'return' | 'savings' | 'search' | 'settings' | 'star-filled' | 'star-half' | 'star' | 'store' | 'truck' | 'upload' | 'x-circle-filled' | 'x-circle' | 'x';
|
|
2980
3330
|
|
|
2981
|
-
declare const tagName$
|
|
3331
|
+
declare const tagName$S = "s-abbreviation";
|
|
2982
3332
|
interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title' | 'id'> {
|
|
2983
3333
|
}
|
|
2984
3334
|
interface AbbreviationElement extends AbbreviationProps, Omit<HTMLElement, 'id' | 'title'> {
|
|
@@ -2990,13 +3340,13 @@ declare global {
|
|
|
2990
3340
|
declare module 'preact' {
|
|
2991
3341
|
namespace createElement.JSX {
|
|
2992
3342
|
interface IntrinsicElements {
|
|
2993
|
-
[tagName$
|
|
3343
|
+
[tagName$S]: AbbreviationProps & BaseElementPropsWithChildren<AbbreviationElement>;
|
|
2994
3344
|
}
|
|
2995
3345
|
}
|
|
2996
3346
|
}
|
|
2997
3347
|
|
|
2998
|
-
declare const tagName$
|
|
2999
|
-
interface BadgeProps extends Pick<BadgeProps$1, '
|
|
3348
|
+
declare const tagName$R = "s-badge";
|
|
3349
|
+
interface BadgeProps extends Pick<BadgeProps$1, 'color' | 'icon' | 'iconPosition' | 'id' | 'size' | 'tone'> {
|
|
3000
3350
|
size?: Extract<BadgeProps$1['size'], 'small' | 'small-100' | 'base'>;
|
|
3001
3351
|
tone?: Extract<BadgeProps$1['tone'], 'auto' | 'neutral' | 'critical'>;
|
|
3002
3352
|
color?: Extract<BadgeProps$1['color'], 'base' | 'subdued'>;
|
|
@@ -3006,18 +3356,18 @@ interface BadgeElement extends BadgeProps, Omit<HTMLElement, 'id'> {
|
|
|
3006
3356
|
}
|
|
3007
3357
|
declare global {
|
|
3008
3358
|
interface HTMLElementTagNameMap {
|
|
3009
|
-
[tagName$
|
|
3359
|
+
[tagName$R]: BadgeElement;
|
|
3010
3360
|
}
|
|
3011
3361
|
}
|
|
3012
3362
|
declare module 'preact' {
|
|
3013
3363
|
namespace createElement.JSX {
|
|
3014
3364
|
interface IntrinsicElements {
|
|
3015
|
-
[tagName$
|
|
3365
|
+
[tagName$R]: BadgeProps & BaseElementPropsWithChildren<BadgeElement>;
|
|
3016
3366
|
}
|
|
3017
3367
|
}
|
|
3018
3368
|
}
|
|
3019
3369
|
|
|
3020
|
-
declare const tagName$
|
|
3370
|
+
declare const tagName$Q = "s-banner";
|
|
3021
3371
|
interface BannerElementProps extends Pick<BannerProps$1, 'collapsible' | 'dismissible' | 'heading' | 'hidden' | 'id' | 'tone'> {
|
|
3022
3372
|
tone?: Extract<BannerProps$1['tone'], 'auto' | 'info' | 'success' | 'warning' | 'critical'>;
|
|
3023
3373
|
}
|
|
@@ -3036,12 +3386,12 @@ declare global {
|
|
|
3036
3386
|
declare module 'preact' {
|
|
3037
3387
|
namespace createElement.JSX {
|
|
3038
3388
|
interface IntrinsicElements {
|
|
3039
|
-
[tagName$
|
|
3389
|
+
[tagName$Q]: BannerProps & BaseElementPropsWithChildren<BannerElement>;
|
|
3040
3390
|
}
|
|
3041
3391
|
}
|
|
3042
3392
|
}
|
|
3043
3393
|
|
|
3044
|
-
declare const tagName$
|
|
3394
|
+
declare const tagName$P = "s-box";
|
|
3045
3395
|
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'> {
|
|
3046
3396
|
background?: Extract<BoxProps$1['background'], 'transparent' | 'subdued' | 'base'>;
|
|
3047
3397
|
border?: BorderShorthand;
|
|
@@ -3057,13 +3407,13 @@ declare global {
|
|
|
3057
3407
|
declare module 'preact' {
|
|
3058
3408
|
namespace createElement.JSX {
|
|
3059
3409
|
interface IntrinsicElements {
|
|
3060
|
-
[tagName$
|
|
3410
|
+
[tagName$P]: BoxProps & BaseElementPropsWithChildren<BoxElement>;
|
|
3061
3411
|
}
|
|
3062
3412
|
}
|
|
3063
3413
|
}
|
|
3064
3414
|
|
|
3065
|
-
declare const tagName$
|
|
3066
|
-
interface ButtonElementProps extends Pick<ButtonProps$1, 'accessibilityLabel' | 'command' | 'commandFor' | 'disabled' | 'href' | 'id' | 'inlineSize' | 'loading' | 'target' | 'tone' | 'type' | 'variant'> {
|
|
3415
|
+
declare const tagName$O = "s-button";
|
|
3416
|
+
interface ButtonElementProps extends Pick<ButtonProps$1, 'accessibilityLabel' | 'command' | 'commandFor' | 'disabled' | 'href' | 'id' | 'inlineSize' | 'interestFor' | 'loading' | 'target' | 'tone' | 'type' | 'variant'> {
|
|
3067
3417
|
target?: Extract<ButtonProps$1['target'], 'auto' | '_blank'>;
|
|
3068
3418
|
tone?: Extract<ButtonProps$1['tone'], 'auto' | 'neutral' | 'critical'>;
|
|
3069
3419
|
type?: Extract<ButtonProps$1['type'], 'submit' | 'button'>;
|
|
@@ -3083,12 +3433,12 @@ declare global {
|
|
|
3083
3433
|
declare module 'preact' {
|
|
3084
3434
|
namespace createElement.JSX {
|
|
3085
3435
|
interface IntrinsicElements {
|
|
3086
|
-
[tagName$
|
|
3436
|
+
[tagName$O]: ButtonProps & BaseElementPropsWithChildren<ButtonElement>;
|
|
3087
3437
|
}
|
|
3088
3438
|
}
|
|
3089
3439
|
}
|
|
3090
3440
|
|
|
3091
|
-
declare const tagName$
|
|
3441
|
+
declare const tagName$N = "s-checkbox";
|
|
3092
3442
|
interface CheckboxElementProps extends Pick<CheckboxProps$1, 'accessibilityLabel' | 'checked' | 'command' | 'commandFor' | 'defaultChecked' | 'disabled' | 'error' | 'id' | 'label' | 'name' | 'required' | 'value'> {
|
|
3093
3443
|
command?: Extract<CheckboxProps$1['command'], '--auto' | '--show' | '--hide' | '--toggle'>;
|
|
3094
3444
|
}
|
|
@@ -3101,19 +3451,25 @@ interface CheckboxProps extends CheckboxElementProps, CheckboxEvents {
|
|
|
3101
3451
|
}
|
|
3102
3452
|
declare global {
|
|
3103
3453
|
interface HTMLElementTagNameMap {
|
|
3104
|
-
[tagName$
|
|
3454
|
+
[tagName$N]: CheckboxElement;
|
|
3105
3455
|
}
|
|
3106
3456
|
}
|
|
3107
3457
|
declare module 'preact' {
|
|
3108
3458
|
namespace createElement.JSX {
|
|
3109
3459
|
interface IntrinsicElements {
|
|
3110
|
-
[tagName$
|
|
3460
|
+
[tagName$N]: CheckboxProps & BaseElementProps<CheckboxElement>;
|
|
3111
3461
|
}
|
|
3112
3462
|
}
|
|
3113
3463
|
}
|
|
3114
3464
|
|
|
3115
|
-
|
|
3116
|
-
|
|
3465
|
+
interface ChoiceProps extends Pick<ChoiceProps$1, 'accessibilityLabel' | 'defaultSelected' | 'details' | 'disabled' | 'id' | 'secondaryContent' | 'selected' | 'selectedContent' | 'error' | 'value'> {
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
interface ChoiceListProps extends Pick<ChoiceListProps$1, 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'multiple' | 'name' | 'onChange' | 'values' | 'variant'> {
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
declare const tagName$M = "s-clickable";
|
|
3472
|
+
interface ClickableElementProps extends Pick<ClickableProps$1, 'accessibilityLabel' | 'accessibilityVisibility' | 'background' | 'blockSize' | 'border' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'command' | 'commandFor' | 'disabled' | 'display' | 'href' | 'id' | 'inlineSize' | 'interestFor' | 'lang' | 'loading' | 'maxBlockSize' | 'maxInlineSize' | 'minBlockSize' | 'minInlineSize' | 'overflow' | 'padding' | 'paddingBlock' | 'paddingBlockEnd' | 'paddingBlockStart' | 'paddingInline' | 'paddingInlineEnd' | 'paddingInlineStart' | 'target' | 'type'> {
|
|
3117
3473
|
background?: Extract<ClickableProps$1['background'], 'transparent' | 'subdued' | 'base'>;
|
|
3118
3474
|
border?: BorderShorthand;
|
|
3119
3475
|
borderWidth?: MaybeAllValuesShorthandProperty<ReducedBorderSizeKeyword> | '';
|
|
@@ -3132,18 +3488,18 @@ interface ClickableProps extends ClickableElementProps, ClickableEvents {
|
|
|
3132
3488
|
}
|
|
3133
3489
|
declare global {
|
|
3134
3490
|
interface HTMLElementTagNameMap {
|
|
3135
|
-
[tagName$
|
|
3491
|
+
[tagName$M]: ClickableElement;
|
|
3136
3492
|
}
|
|
3137
3493
|
}
|
|
3138
3494
|
declare module 'preact' {
|
|
3139
3495
|
namespace createElement.JSX {
|
|
3140
3496
|
interface IntrinsicElements {
|
|
3141
|
-
[tagName$
|
|
3497
|
+
[tagName$M]: ClickableProps & BaseElementPropsWithChildren<ClickableElement>;
|
|
3142
3498
|
}
|
|
3143
3499
|
}
|
|
3144
3500
|
}
|
|
3145
3501
|
|
|
3146
|
-
declare const tagName$
|
|
3502
|
+
declare const tagName$L = "s-clipboard-item";
|
|
3147
3503
|
interface ClipboardItemElementProps extends Pick<ClipboardItemProps$1, 'id' | 'text'> {
|
|
3148
3504
|
}
|
|
3149
3505
|
interface ClipboardItemEvents extends Pick<ClipboardItemProps$1, 'onCopy' | 'onCopyError'> {
|
|
@@ -3161,60 +3517,117 @@ declare global {
|
|
|
3161
3517
|
declare module 'preact' {
|
|
3162
3518
|
namespace createElement.JSX {
|
|
3163
3519
|
interface IntrinsicElements {
|
|
3164
|
-
[tagName$
|
|
3520
|
+
[tagName$L]: ClipboardItemProps & BaseElementProps<ClipboardItemElement>;
|
|
3521
|
+
}
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3524
|
+
|
|
3525
|
+
declare const tagName$K = "s-date-field";
|
|
3526
|
+
interface DateFieldElementProps extends Pick<DateFieldProps$1, 'allow' | 'allowDays' | 'autocomplete' | 'defaultValue' | 'defaultView' | 'disabled' | 'disallow' | 'disallowDays' | 'error' | 'id' | 'label' | 'name' | 'placeholder' | 'readOnly' | 'required' | 'value' | 'view'> {
|
|
3527
|
+
}
|
|
3528
|
+
interface DateFieldEvents extends Pick<DateFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'onInvalid' | 'onViewChange'> {
|
|
3529
|
+
}
|
|
3530
|
+
interface DateFieldElement extends DateFieldElementProps, Omit<DateFieldEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'onInvalid' | 'onViewChange'>, Omit<HTMLElement, 'id' | 'inputMode' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'oninvalid' | 'prefix'> {
|
|
3531
|
+
onblur: DateFieldEvents['onBlur'];
|
|
3532
|
+
onchange: DateFieldEvents['onChange'];
|
|
3533
|
+
onfocus: DateFieldEvents['onFocus'];
|
|
3534
|
+
oninput: DateFieldEvents['onInput'];
|
|
3535
|
+
oninvalid: DateFieldEvents['onInvalid'];
|
|
3536
|
+
onviewchange: DateFieldEvents['onViewChange'];
|
|
3537
|
+
}
|
|
3538
|
+
interface DateFieldProps extends DateFieldElementProps, DateFieldEvents {
|
|
3539
|
+
}
|
|
3540
|
+
declare global {
|
|
3541
|
+
interface HTMLElementTagNameMap {
|
|
3542
|
+
[tagName$K]: DateFieldElement;
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
declare module 'preact' {
|
|
3546
|
+
namespace createElement.JSX {
|
|
3547
|
+
interface IntrinsicElements {
|
|
3548
|
+
[tagName$K]: DateFieldProps & BaseElementProps<DateFieldElement>;
|
|
3549
|
+
}
|
|
3550
|
+
}
|
|
3551
|
+
}
|
|
3552
|
+
|
|
3553
|
+
declare const tagName$J = "s-date-picker";
|
|
3554
|
+
interface DatePickerElementProps extends Pick<DatePickerProps$1, 'allow' | 'allowDays' | 'defaultValue' | 'defaultView' | 'disabled' | 'disallow' | 'disallowDays' | 'id' | 'name' | 'type' | 'value' | 'view'> {
|
|
3555
|
+
}
|
|
3556
|
+
interface DatePickerEvents extends Pick<DatePickerProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'onViewChange'> {
|
|
3557
|
+
}
|
|
3558
|
+
interface DatePickerElement extends DatePickerElementProps, Omit<DatePickerEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'onViewChange'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput'> {
|
|
3559
|
+
onblur: DatePickerEvents['onBlur'];
|
|
3560
|
+
onchange: DatePickerEvents['onChange'];
|
|
3561
|
+
onfocus: DatePickerEvents['onFocus'];
|
|
3562
|
+
oninput: DatePickerEvents['onInput'];
|
|
3563
|
+
onviewchange: DatePickerEvents['onViewChange'];
|
|
3564
|
+
}
|
|
3565
|
+
interface DatePickerProps extends DatePickerElementProps, DatePickerEvents {
|
|
3566
|
+
}
|
|
3567
|
+
declare global {
|
|
3568
|
+
interface HTMLElementTagNameMap {
|
|
3569
|
+
[tagName$J]: DatePickerElement;
|
|
3570
|
+
}
|
|
3571
|
+
}
|
|
3572
|
+
declare module 'preact' {
|
|
3573
|
+
namespace createElement.JSX {
|
|
3574
|
+
interface IntrinsicElements {
|
|
3575
|
+
[tagName$J]: DatePickerProps & BaseElementProps<DatePickerElement>;
|
|
3165
3576
|
}
|
|
3166
3577
|
}
|
|
3167
3578
|
}
|
|
3168
3579
|
|
|
3169
|
-
declare const tagName$
|
|
3170
|
-
interface DetailsElementProps extends Pick<DetailsProps$1, 'defaultOpen' | '
|
|
3580
|
+
declare const tagName$I = "s-details";
|
|
3581
|
+
interface DetailsElementProps extends Pick<DetailsProps$1, 'defaultOpen' | 'id' | 'open' | 'toggleTransition'> {
|
|
3171
3582
|
}
|
|
3172
|
-
interface DetailsEvents extends Pick<DetailsProps$1, 'onToggle'> {
|
|
3583
|
+
interface DetailsEvents extends Pick<DetailsProps$1, 'onToggle' | 'onAfterToggle'> {
|
|
3173
3584
|
}
|
|
3174
3585
|
interface DetailsElement extends Omit<HTMLElement, 'ontoggle' | 'id'> {
|
|
3175
3586
|
ontoggle: DetailsEvents['onToggle'];
|
|
3587
|
+
onaftertoggle: DetailsEvents['onAfterToggle'];
|
|
3176
3588
|
}
|
|
3177
3589
|
interface DetailsProps extends DetailsElementProps, DetailsEvents {
|
|
3178
3590
|
}
|
|
3179
3591
|
declare global {
|
|
3180
3592
|
interface HTMLElementTagNameMap {
|
|
3181
|
-
[tagName$
|
|
3593
|
+
[tagName$I]: DetailsElement;
|
|
3182
3594
|
}
|
|
3183
3595
|
}
|
|
3184
3596
|
declare module 'preact' {
|
|
3185
3597
|
namespace createElement.JSX {
|
|
3186
3598
|
interface IntrinsicElements {
|
|
3187
|
-
[tagName$
|
|
3599
|
+
[tagName$I]: DetailsProps & BaseElementPropsWithChildren<DetailsElement>;
|
|
3188
3600
|
}
|
|
3189
3601
|
}
|
|
3190
3602
|
}
|
|
3191
3603
|
|
|
3192
|
-
declare const tagName$
|
|
3193
|
-
interface DividerProps extends DividerProps$1 {
|
|
3604
|
+
declare const tagName$H = "s-divider";
|
|
3605
|
+
interface DividerProps extends Pick<DividerProps$1, 'direction' | 'id'> {
|
|
3194
3606
|
}
|
|
3195
3607
|
interface DividerElement extends DividerProps, Omit<HTMLElement, 'id'> {
|
|
3196
3608
|
}
|
|
3197
3609
|
declare global {
|
|
3198
3610
|
interface HTMLElementTagNameMap {
|
|
3199
|
-
[tagName$
|
|
3611
|
+
[tagName$H]: DividerElement;
|
|
3200
3612
|
}
|
|
3201
3613
|
}
|
|
3202
3614
|
declare module 'preact' {
|
|
3203
3615
|
namespace createElement.JSX {
|
|
3204
3616
|
interface IntrinsicElements {
|
|
3205
|
-
[tagName$
|
|
3617
|
+
[tagName$H]: DividerProps & BaseElementPropsWithChildren<DividerElement>;
|
|
3206
3618
|
}
|
|
3207
3619
|
}
|
|
3208
3620
|
}
|
|
3209
3621
|
|
|
3210
|
-
declare const tagName$
|
|
3211
|
-
interface DropZoneElementProps extends Pick<DropZoneProps$1, 'accept' | 'accessibilityLabel' | 'disabled' | 'error' | 'id' | 'label' | 'multiple' | 'name' | 'required'> {
|
|
3622
|
+
declare const tagName$G = "s-drop-zone";
|
|
3623
|
+
interface DropZoneElementProps extends Pick<DropZoneProps$1, 'accept' | 'accessibilityLabel' | 'disabled' | 'error' | 'id' | 'label' | 'multiple' | 'name' | 'required' | 'value'> {
|
|
3212
3624
|
}
|
|
3213
|
-
interface DropZoneEvents extends Pick<DropZoneProps$1, 'onDropRejected' | 'onInput'> {
|
|
3625
|
+
interface DropZoneEvents extends Pick<DropZoneProps$1, 'onDropRejected' | 'onInput' | 'onChange'> {
|
|
3214
3626
|
}
|
|
3215
|
-
interface DropZoneElement extends DropZoneElementProps, Omit<HTMLElement, 'id' | 'oninput'> {
|
|
3627
|
+
interface DropZoneElement extends DropZoneElementProps, Omit<HTMLElement, 'id' | 'oninput' | 'onchange'> {
|
|
3216
3628
|
ondroprejected: DropZoneEvents['onDropRejected'];
|
|
3217
3629
|
oninput: DropZoneEvents['onInput'];
|
|
3630
|
+
onchange: DropZoneEvents['onChange'];
|
|
3218
3631
|
}
|
|
3219
3632
|
interface DropZoneProps extends DropZoneElementProps, DropZoneEvents {
|
|
3220
3633
|
}
|
|
@@ -3225,12 +3638,12 @@ declare global {
|
|
|
3225
3638
|
declare module 'preact' {
|
|
3226
3639
|
namespace createElement.JSX {
|
|
3227
3640
|
interface IntrinsicElements {
|
|
3228
|
-
[tagName$
|
|
3641
|
+
[tagName$G]: DropZoneProps & BaseElementProps<DropZoneElement>;
|
|
3229
3642
|
}
|
|
3230
3643
|
}
|
|
3231
3644
|
}
|
|
3232
3645
|
|
|
3233
|
-
declare const tagName$
|
|
3646
|
+
declare const tagName$F = "s-email-field";
|
|
3234
3647
|
interface EmailFieldElementProps extends Pick<EmailFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'maxLength' | 'minLength' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'name' | 'readOnly' | 'required' | 'value'> {
|
|
3235
3648
|
/**
|
|
3236
3649
|
* @deprecated Use `label` instead.
|
|
@@ -3250,18 +3663,18 @@ interface EmailFieldProps extends EmailFieldElementProps, EmailFieldEvents {
|
|
|
3250
3663
|
}
|
|
3251
3664
|
declare global {
|
|
3252
3665
|
interface HTMLElementTagNameMap {
|
|
3253
|
-
[tagName$
|
|
3666
|
+
[tagName$F]: EmailFieldElement;
|
|
3254
3667
|
}
|
|
3255
3668
|
}
|
|
3256
3669
|
declare module 'preact' {
|
|
3257
3670
|
namespace createElement.JSX {
|
|
3258
3671
|
interface IntrinsicElements {
|
|
3259
|
-
[tagName$
|
|
3672
|
+
[tagName$F]: EmailFieldProps & BaseElementProps<EmailFieldElement>;
|
|
3260
3673
|
}
|
|
3261
3674
|
}
|
|
3262
3675
|
}
|
|
3263
3676
|
|
|
3264
|
-
declare const tagName$
|
|
3677
|
+
declare const tagName$E = "s-form";
|
|
3265
3678
|
interface FormElementProps extends Pick<FormProps$1, 'disabled' | 'id'> {
|
|
3266
3679
|
}
|
|
3267
3680
|
interface FormEvents extends Pick<FormProps$1, 'onSubmit'> {
|
|
@@ -3282,12 +3695,12 @@ declare global {
|
|
|
3282
3695
|
declare module 'preact' {
|
|
3283
3696
|
namespace createElement.JSX {
|
|
3284
3697
|
interface IntrinsicElements {
|
|
3285
|
-
[tagName$
|
|
3698
|
+
[tagName$E]: FormProps & BaseElementPropsWithChildren<FormElement>;
|
|
3286
3699
|
}
|
|
3287
3700
|
}
|
|
3288
3701
|
}
|
|
3289
3702
|
|
|
3290
|
-
declare const tagName$
|
|
3703
|
+
declare const tagName$D = "s-grid-item";
|
|
3291
3704
|
interface GridItemProps extends Pick<GridItemProps$1, 'accessibilityLabel' | 'accessibilityRole' | 'accessibilityVisibility' | 'background' | 'blockSize' | 'border' | 'borderColor' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'display' | 'gridColumn' | 'gridRow' | 'id' | 'inlineSize' | 'maxBlockSize' | 'maxInlineSize' | 'minBlockSize' | 'minInlineSize' | 'overflow' | 'padding' | 'paddingBlock' | 'paddingBlockEnd' | 'paddingBlockStart' | 'paddingInline' | 'paddingInlineEnd' | 'paddingInlineStart'> {
|
|
3292
3705
|
background?: Extract<GridItemProps$1['background'], 'transparent' | 'subdued' | 'base'>;
|
|
3293
3706
|
border?: BorderShorthand;
|
|
@@ -3299,47 +3712,47 @@ interface GridItemElement extends GridItemProps, Omit<HTMLElement, 'id'> {
|
|
|
3299
3712
|
}
|
|
3300
3713
|
declare global {
|
|
3301
3714
|
interface HTMLElementTagNameMap {
|
|
3302
|
-
[tagName$
|
|
3715
|
+
[tagName$D]: GridItemElement;
|
|
3303
3716
|
}
|
|
3304
3717
|
}
|
|
3305
3718
|
declare module 'preact' {
|
|
3306
3719
|
namespace createElement.JSX {
|
|
3307
3720
|
interface IntrinsicElements {
|
|
3308
|
-
[tagName$
|
|
3721
|
+
[tagName$D]: GridItemProps & BaseElementPropsWithChildren<GridItemElement>;
|
|
3309
3722
|
}
|
|
3310
3723
|
}
|
|
3311
3724
|
}
|
|
3312
3725
|
|
|
3313
|
-
declare const tagName$
|
|
3726
|
+
declare const tagName$C = "s-grid";
|
|
3314
3727
|
interface GridProps extends Pick<GridProps$1, 'accessibilityLabel' | 'accessibilityRole' | 'accessibilityVisibility' | 'alignContent' | 'alignItems' | 'background' | 'blockSize' | 'border' | 'borderColor' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'columnGap' | 'display' | 'gap' | 'gridTemplateColumns' | 'gridTemplateRows' | 'id' | 'inlineSize' | 'justifyContent' | 'justifyItems' | 'maxBlockSize' | 'maxInlineSize' | 'minBlockSize' | 'minInlineSize' | 'overflow' | 'padding' | 'paddingBlock' | 'paddingBlockEnd' | 'paddingBlockStart' | 'paddingInline' | 'paddingInlineEnd' | 'paddingInlineStart' | 'placeContent' | 'placeItems' | 'rowGap'> {
|
|
3315
|
-
alignContent?: ReducedAlignContentKeyword | ''
|
|
3316
|
-
alignItems?: ReducedAlignItemsKeyword | ''
|
|
3728
|
+
alignContent?: MaybeResponsive<ReducedAlignContentKeyword | ''>;
|
|
3729
|
+
alignItems?: MaybeResponsive<ReducedAlignItemsKeyword | ''>;
|
|
3317
3730
|
background?: Extract<GridProps$1['background'], 'transparent' | 'subdued' | 'base'>;
|
|
3318
3731
|
border?: BorderShorthand;
|
|
3319
3732
|
borderColor?: ReducedColorKeyword | '';
|
|
3320
3733
|
borderWidth?: MaybeAllValuesShorthandProperty<ReducedBorderSizeKeyword> | '';
|
|
3321
3734
|
borderRadius?: MaybeAllValuesShorthandProperty<Extract<GridProps$1['borderRadius'], 'none' | 'small-100' | 'small' | 'base' | 'large' | 'large-100' | 'max'>>;
|
|
3322
|
-
justifyContent?: ReducedJustifyContentKeyword | ''
|
|
3323
|
-
justifyItems?: ReducedJustifyItemsKeyword | ''
|
|
3324
|
-
placeContent?:
|
|
3325
|
-
placeItems?:
|
|
3735
|
+
justifyContent?: MaybeResponsive<ReducedJustifyContentKeyword | ''>;
|
|
3736
|
+
justifyItems?: MaybeResponsive<ReducedJustifyItemsKeyword | ''>;
|
|
3737
|
+
placeContent?: MaybeResponsive<`${ReducedAlignContentKeyword} ${ReducedJustifyContentKeyword}` | ReducedAlignContentKeyword>;
|
|
3738
|
+
placeItems?: MaybeResponsive<`${ReducedAlignItemsKeyword} ${ReducedJustifyItemsKeyword}` | ReducedAlignItemsKeyword>;
|
|
3326
3739
|
}
|
|
3327
3740
|
interface GridElement extends GridProps, Omit<HTMLElement, 'id'> {
|
|
3328
3741
|
}
|
|
3329
3742
|
declare global {
|
|
3330
3743
|
interface HTMLElementTagNameMap {
|
|
3331
|
-
[tagName$
|
|
3744
|
+
[tagName$C]: GridElement;
|
|
3332
3745
|
}
|
|
3333
3746
|
}
|
|
3334
3747
|
declare module 'preact' {
|
|
3335
3748
|
namespace createElement.JSX {
|
|
3336
3749
|
interface IntrinsicElements {
|
|
3337
|
-
[tagName$
|
|
3750
|
+
[tagName$C]: GridProps & BaseElementPropsWithChildren<GridElement>;
|
|
3338
3751
|
}
|
|
3339
3752
|
}
|
|
3340
3753
|
}
|
|
3341
3754
|
|
|
3342
|
-
declare const tagName$
|
|
3755
|
+
declare const tagName$B = "s-heading";
|
|
3343
3756
|
interface HeadingProps extends Pick<HeadingProps$1, 'accessibilityRole' | 'id'> {
|
|
3344
3757
|
}
|
|
3345
3758
|
interface HeadingElement extends HeadingProps, Omit<HTMLElement, 'id'> {
|
|
@@ -3351,12 +3764,12 @@ declare global {
|
|
|
3351
3764
|
declare module 'preact' {
|
|
3352
3765
|
namespace createElement.JSX {
|
|
3353
3766
|
interface IntrinsicElements {
|
|
3354
|
-
[tagName$
|
|
3767
|
+
[tagName$B]: HeadingProps & BaseElementPropsWithChildren<HeadingElement>;
|
|
3355
3768
|
}
|
|
3356
3769
|
}
|
|
3357
3770
|
}
|
|
3358
3771
|
|
|
3359
|
-
declare const tagName$
|
|
3772
|
+
declare const tagName$A = "s-icon";
|
|
3360
3773
|
interface IconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
|
|
3361
3774
|
tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
3362
3775
|
size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
@@ -3371,12 +3784,12 @@ declare global {
|
|
|
3371
3784
|
declare module 'preact' {
|
|
3372
3785
|
namespace createElement.JSX {
|
|
3373
3786
|
interface IntrinsicElements {
|
|
3374
|
-
[tagName$
|
|
3787
|
+
[tagName$A]: IconProps & BaseElementProps<IconElement>;
|
|
3375
3788
|
}
|
|
3376
3789
|
}
|
|
3377
3790
|
}
|
|
3378
3791
|
|
|
3379
|
-
declare const tagName$
|
|
3792
|
+
declare const tagName$z = "s-image";
|
|
3380
3793
|
interface ImageProps extends Pick<ImageProps$1, 'accessibilityRole' | 'alt' | 'aspectRatio' | 'border' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'id' | 'inlineSize' | 'loading' | 'objectFit' | 'sizes' | 'src' | 'srcSet'> {
|
|
3381
3794
|
border?: BorderShorthand;
|
|
3382
3795
|
borderWidth?: MaybeAllValuesShorthandProperty<ReducedBorderSizeKeyword> | '';
|
|
@@ -3391,13 +3804,13 @@ declare global {
|
|
|
3391
3804
|
declare module 'preact' {
|
|
3392
3805
|
namespace createElement.JSX {
|
|
3393
3806
|
interface IntrinsicElements {
|
|
3394
|
-
[tagName$
|
|
3807
|
+
[tagName$z]: ImageProps & BaseElementProps<ImageElement>;
|
|
3395
3808
|
}
|
|
3396
3809
|
}
|
|
3397
3810
|
}
|
|
3398
3811
|
|
|
3399
|
-
declare const tagName$
|
|
3400
|
-
interface LinkElementProps extends Pick<LinkProps$1, 'accessibilityLabel' | 'command' | 'commandFor' | 'href' | 'id' | 'lang' | 'target' | 'tone'> {
|
|
3812
|
+
declare const tagName$y = "s-link";
|
|
3813
|
+
interface LinkElementProps extends Pick<LinkProps$1, 'accessibilityLabel' | 'command' | 'commandFor' | 'href' | 'id' | 'interestFor' | 'lang' | 'target' | 'tone'> {
|
|
3401
3814
|
target?: Extract<LinkProps$1['target'], 'auto' | '_blank'>;
|
|
3402
3815
|
tone?: Extract<LinkProps$1['tone'], 'auto' | 'neutral'>;
|
|
3403
3816
|
}
|
|
@@ -3415,12 +3828,12 @@ declare global {
|
|
|
3415
3828
|
declare module 'preact' {
|
|
3416
3829
|
namespace createElement.JSX {
|
|
3417
3830
|
interface IntrinsicElements {
|
|
3418
|
-
[tagName$
|
|
3831
|
+
[tagName$y]: LinkProps & BaseElementPropsWithChildren<LinkElement>;
|
|
3419
3832
|
}
|
|
3420
3833
|
}
|
|
3421
3834
|
}
|
|
3422
3835
|
|
|
3423
|
-
declare const tagName$
|
|
3836
|
+
declare const tagName$x = "s-list-item";
|
|
3424
3837
|
interface ListItemProps extends Pick<ListItemProps$1, 'id'> {
|
|
3425
3838
|
}
|
|
3426
3839
|
interface ListItemElement extends ListItemProps, Omit<HTMLElement, 'id'> {
|
|
@@ -3432,44 +3845,36 @@ declare global {
|
|
|
3432
3845
|
declare module 'preact' {
|
|
3433
3846
|
namespace createElement.JSX {
|
|
3434
3847
|
interface IntrinsicElements {
|
|
3435
|
-
[tagName$
|
|
3848
|
+
[tagName$x]: ListItemProps & BaseElementPropsWithChildren<ListItemElement>;
|
|
3436
3849
|
}
|
|
3437
3850
|
}
|
|
3438
3851
|
}
|
|
3439
3852
|
|
|
3440
|
-
declare const tagName$
|
|
3853
|
+
declare const tagName$w = "s-map-marker";
|
|
3441
3854
|
interface MapMarkerElementProps extends Pick<MapMarkerProps$1, 'accessibilityLabel' | 'blockSize' | 'command' | 'commandFor' | 'clusterable' | 'inlineSize' | 'latitude' | 'longitude'> {
|
|
3442
3855
|
command?: Extract<MapMarkerProps$1['command'], '--auto' | '--show' | '--hide' | '--toggle'>;
|
|
3443
3856
|
}
|
|
3444
3857
|
interface MapMarkerEvents extends Pick<MapMarkerProps$1, 'onClick'> {
|
|
3445
3858
|
}
|
|
3446
|
-
interface
|
|
3447
|
-
/**
|
|
3448
|
-
* The graphic to use as the marker.
|
|
3449
|
-
*
|
|
3450
|
-
* If unset, it will default to the provider’s default marker.
|
|
3451
|
-
*/
|
|
3452
|
-
graphic?: ReactNode;
|
|
3453
|
-
}
|
|
3454
|
-
interface MapMarkerElement extends MapMarkerElementProps, MapMarkerSlots, Omit<HTMLElement, 'id' | 'onclick'> {
|
|
3859
|
+
interface MapMarkerElement extends MapMarkerElementProps, Omit<HTMLElement, 'id' | 'onclick'> {
|
|
3455
3860
|
onclick: MapMarkerEvents['onClick'];
|
|
3456
3861
|
}
|
|
3457
3862
|
interface MapMarkerProps extends MapMarkerElementProps, MapMarkerEvents {
|
|
3458
3863
|
}
|
|
3459
3864
|
declare global {
|
|
3460
3865
|
interface HTMLElementTagNameMap {
|
|
3461
|
-
[tagName$
|
|
3866
|
+
[tagName$w]: MapMarkerElement;
|
|
3462
3867
|
}
|
|
3463
3868
|
}
|
|
3464
3869
|
declare module 'preact' {
|
|
3465
3870
|
namespace createElement.JSX {
|
|
3466
3871
|
interface IntrinsicElements {
|
|
3467
|
-
[tagName$
|
|
3872
|
+
[tagName$w]: MapMarkerProps & BaseElementPropsWithChildren<MapMarkerElement>;
|
|
3468
3873
|
}
|
|
3469
3874
|
}
|
|
3470
3875
|
}
|
|
3471
3876
|
|
|
3472
|
-
declare const tagName$
|
|
3877
|
+
declare const tagName$v = "s-map";
|
|
3473
3878
|
interface MapElementProps extends Pick<MapProps$1, 'accessibilityLabel' | 'apiKey' | 'blockSize' | 'id' | 'inlineSize' | 'latitude' | 'longitude' | 'maxBlockSize' | 'maxInlineSize' | 'maxZoom' | 'minBlockSize' | 'minInlineSize' | 'minZoom' | 'zoom'> {
|
|
3474
3879
|
}
|
|
3475
3880
|
interface MapEvents extends Pick<MapProps$1, 'onBoundsChange' | 'onClick' | 'onDblClick' | 'onViewChange'> {
|
|
@@ -3484,54 +3889,74 @@ interface MapProps extends MapElementProps, MapEvents {
|
|
|
3484
3889
|
}
|
|
3485
3890
|
declare global {
|
|
3486
3891
|
interface HTMLElementTagNameMap {
|
|
3487
|
-
[tagName$
|
|
3892
|
+
[tagName$v]: MapElement;
|
|
3488
3893
|
}
|
|
3489
3894
|
}
|
|
3490
3895
|
declare module 'preact' {
|
|
3491
3896
|
namespace createElement.JSX {
|
|
3492
3897
|
interface IntrinsicElements {
|
|
3493
|
-
[tagName$
|
|
3898
|
+
[tagName$v]: MapProps & BaseElementPropsWithChildren<MapElement>;
|
|
3494
3899
|
}
|
|
3495
3900
|
}
|
|
3496
3901
|
}
|
|
3497
3902
|
|
|
3498
|
-
declare const tagName$
|
|
3903
|
+
declare const tagName$u = "s-modal";
|
|
3499
3904
|
interface ModalElementProps extends Pick<ModalProps$1, 'accessibilityLabel' | 'heading' | 'id' | 'padding' | 'size'> {
|
|
3500
3905
|
size?: Extract<ModalProps$1['size'], 'small-100' | 'small' | 'base' | 'large-100' | 'large' | 'max'>;
|
|
3501
3906
|
}
|
|
3502
|
-
interface
|
|
3503
|
-
/**
|
|
3504
|
-
* The primary action to perform, provided as a button type element.
|
|
3505
|
-
*/
|
|
3506
|
-
primaryAction?: ReactNode;
|
|
3507
|
-
/**
|
|
3508
|
-
* The secondary actions to perform, provided as button type elements.
|
|
3509
|
-
*/
|
|
3510
|
-
secondaryActions?: ReactNode;
|
|
3907
|
+
interface ModalEvents extends Pick<ModalProps$1, 'onAfterHide' | 'onAfterShow' | 'onHide' | 'onShow'> {
|
|
3511
3908
|
}
|
|
3512
|
-
interface
|
|
3909
|
+
interface ModalElementMethods extends Pick<ModalProps$1, 'hideOverlay'> {
|
|
3513
3910
|
}
|
|
3514
|
-
interface ModalElement extends ModalElementProps,
|
|
3911
|
+
interface ModalElement extends ModalElementProps, ModalElementMethods, Omit<HTMLElement, 'id'> {
|
|
3912
|
+
onafterhide: ModalEvents['onAfterHide'];
|
|
3913
|
+
onaftershow: ModalEvents['onAfterShow'];
|
|
3515
3914
|
onhide: ModalEvents['onHide'];
|
|
3516
3915
|
onshow: ModalEvents['onShow'];
|
|
3517
3916
|
}
|
|
3518
|
-
interface ModalProps extends ModalElementProps,
|
|
3917
|
+
interface ModalProps extends ModalElementProps, ModalEvents {
|
|
3918
|
+
}
|
|
3919
|
+
declare global {
|
|
3920
|
+
interface HTMLElementTagNameMap {
|
|
3921
|
+
[tagName$u]: ModalElement;
|
|
3922
|
+
}
|
|
3923
|
+
}
|
|
3924
|
+
declare module 'preact' {
|
|
3925
|
+
namespace createElement.JSX {
|
|
3926
|
+
interface IntrinsicElements {
|
|
3927
|
+
[tagName$u]: ModalProps & BaseElementPropsWithChildren<ModalElement>;
|
|
3928
|
+
}
|
|
3929
|
+
}
|
|
3930
|
+
}
|
|
3931
|
+
|
|
3932
|
+
declare const tagName$t = "s-money-field";
|
|
3933
|
+
interface MoneyFieldElementProps extends Pick<MoneyFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'max' | 'min' | 'name' | 'readOnly' | 'required' | 'step' | 'value'> {
|
|
3934
|
+
}
|
|
3935
|
+
interface MoneyFieldEvents extends Pick<MoneyFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
3936
|
+
}
|
|
3937
|
+
interface MoneyFieldElement extends MoneyFieldElementProps {
|
|
3938
|
+
onblur: MoneyFieldEvents['onBlur'];
|
|
3939
|
+
onchange: MoneyFieldEvents['onChange'];
|
|
3940
|
+
onfocus: MoneyFieldEvents['onFocus'];
|
|
3941
|
+
oninput: MoneyFieldEvents['onInput'];
|
|
3942
|
+
}
|
|
3943
|
+
interface MoneyFieldProps extends MoneyFieldElementProps, MoneyFieldEvents {
|
|
3519
3944
|
}
|
|
3520
3945
|
declare global {
|
|
3521
3946
|
interface HTMLElementTagNameMap {
|
|
3522
|
-
[tagName$
|
|
3947
|
+
[tagName$t]: MoneyFieldElement;
|
|
3523
3948
|
}
|
|
3524
3949
|
}
|
|
3525
3950
|
declare module 'preact' {
|
|
3526
3951
|
namespace createElement.JSX {
|
|
3527
3952
|
interface IntrinsicElements {
|
|
3528
|
-
[tagName$
|
|
3953
|
+
[tagName$t]: MoneyFieldProps & BaseElementProps<MoneyFieldElement>;
|
|
3529
3954
|
}
|
|
3530
3955
|
}
|
|
3531
3956
|
}
|
|
3532
3957
|
|
|
3533
|
-
declare const tagName$
|
|
3534
|
-
interface NumberFieldElementProps extends Pick<NumberFieldProps$1, 'accessory' | 'autocomplete' | 'controls' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'icon' | 'id' | 'inputMode' | 'label' | 'labelAccessibilityVisibility' | 'max' | 'min' | 'name' | '
|
|
3958
|
+
declare const tagName$s = "s-number-field";
|
|
3959
|
+
interface NumberFieldElementProps extends Pick<NumberFieldProps$1, 'accessory' | 'autocomplete' | 'controls' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'icon' | 'id' | 'inputMode' | 'label' | 'labelAccessibilityVisibility' | 'max' | 'min' | 'name' | 'prefix' | 'readOnly' | 'required' | 'step' | 'suffix' | 'value'> {
|
|
3535
3960
|
/**
|
|
3536
3961
|
* @deprecated Use `label` instead.
|
|
3537
3962
|
* @private
|
|
@@ -3550,36 +3975,36 @@ interface NumberFieldProps extends NumberFieldElementProps, NumberFieldEvents {
|
|
|
3550
3975
|
}
|
|
3551
3976
|
declare global {
|
|
3552
3977
|
interface HTMLElementTagNameMap {
|
|
3553
|
-
[tagName$
|
|
3978
|
+
[tagName$s]: NumberFieldElement;
|
|
3554
3979
|
}
|
|
3555
3980
|
}
|
|
3556
3981
|
declare module 'preact' {
|
|
3557
3982
|
namespace createElement.JSX {
|
|
3558
3983
|
interface IntrinsicElements {
|
|
3559
|
-
[tagName$
|
|
3984
|
+
[tagName$s]: NumberFieldProps & BaseElementPropsWithChildren<NumberFieldElement>;
|
|
3560
3985
|
}
|
|
3561
3986
|
}
|
|
3562
3987
|
}
|
|
3563
3988
|
|
|
3564
|
-
declare const tagName$
|
|
3989
|
+
declare const tagName$r = "s-option";
|
|
3565
3990
|
interface OptionProps extends Pick<OptionProps$1, 'accessibilityLabel' | 'defaultSelected' | 'disabled' | 'id' | 'selected' | 'value'> {
|
|
3566
3991
|
}
|
|
3567
3992
|
interface OptionElement extends OptionProps, Omit<HTMLElement, 'id'> {
|
|
3568
3993
|
}
|
|
3569
3994
|
declare global {
|
|
3570
3995
|
interface HTMLElementTagNameMap {
|
|
3571
|
-
[tagName$
|
|
3996
|
+
[tagName$r]: OptionElement;
|
|
3572
3997
|
}
|
|
3573
3998
|
}
|
|
3574
3999
|
declare module 'preact' {
|
|
3575
4000
|
namespace createElement.JSX {
|
|
3576
4001
|
interface IntrinsicElements {
|
|
3577
|
-
[tagName$
|
|
4002
|
+
[tagName$r]: OptionProps & BaseElementPropsWithChildren<OptionElement>;
|
|
3578
4003
|
}
|
|
3579
4004
|
}
|
|
3580
4005
|
}
|
|
3581
4006
|
|
|
3582
|
-
declare const tagName$
|
|
4007
|
+
declare const tagName$q = "s-ordered-list";
|
|
3583
4008
|
interface OrderedListProps extends OrderedListProps$1 {
|
|
3584
4009
|
}
|
|
3585
4010
|
interface OrderedListElement extends OrderedListProps, Omit<HTMLElement, 'id'> {
|
|
@@ -3591,12 +4016,12 @@ declare global {
|
|
|
3591
4016
|
declare module 'preact' {
|
|
3592
4017
|
namespace createElement.JSX {
|
|
3593
4018
|
interface IntrinsicElements {
|
|
3594
|
-
[tagName$
|
|
4019
|
+
[tagName$q]: OrderedListProps & BaseElementPropsWithChildren<OrderedListElement>;
|
|
3595
4020
|
}
|
|
3596
4021
|
}
|
|
3597
4022
|
}
|
|
3598
4023
|
|
|
3599
|
-
declare const tagName$
|
|
4024
|
+
declare const tagName$p = "s-paragraph";
|
|
3600
4025
|
interface ParagraphProps extends Pick<ParagraphProps$1, 'accessibilityVisibility' | 'color' | 'dir' | 'id' | 'lang' | 'tone' | 'type'> {
|
|
3601
4026
|
color?: Extract<ParagraphProps$1['color'], 'subdued' | 'base'>;
|
|
3602
4027
|
tone?: Extract<ParagraphProps$1['tone'], 'auto' | 'info' | 'success' | 'warning' | 'critical' | 'neutral' | 'custom'>;
|
|
@@ -3610,17 +4035,13 @@ declare global {
|
|
|
3610
4035
|
declare module 'preact' {
|
|
3611
4036
|
namespace createElement.JSX {
|
|
3612
4037
|
interface IntrinsicElements {
|
|
3613
|
-
[tagName$
|
|
4038
|
+
[tagName$p]: ParagraphProps & BaseElementPropsWithChildren<ParagraphElement>;
|
|
3614
4039
|
}
|
|
3615
4040
|
}
|
|
3616
4041
|
}
|
|
3617
4042
|
|
|
3618
|
-
declare const tagName$
|
|
3619
|
-
interface PasswordFieldElementProps extends Pick<PasswordFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'maxLength'
|
|
3620
|
-
/** @todo: implement `minLength` */
|
|
3621
|
-
| 'name'
|
|
3622
|
-
/** @todo: implement `placeholder` */
|
|
3623
|
-
| 'readOnly' | 'required' | 'value'> {
|
|
4043
|
+
declare const tagName$o = "s-password-field";
|
|
4044
|
+
interface PasswordFieldElementProps extends Pick<PasswordFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'readOnly' | 'required' | 'value'> {
|
|
3624
4045
|
}
|
|
3625
4046
|
interface PasswordFieldEvents extends Pick<PasswordFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
3626
4047
|
}
|
|
@@ -3634,18 +4055,18 @@ interface PasswordFieldProps extends PasswordFieldElementProps, PasswordFieldEve
|
|
|
3634
4055
|
}
|
|
3635
4056
|
declare global {
|
|
3636
4057
|
interface HTMLElementTagNameMap {
|
|
3637
|
-
[tagName$
|
|
4058
|
+
[tagName$o]: PasswordFieldElement;
|
|
3638
4059
|
}
|
|
3639
4060
|
}
|
|
3640
4061
|
declare module 'preact' {
|
|
3641
4062
|
namespace createElement.JSX {
|
|
3642
4063
|
interface IntrinsicElements {
|
|
3643
|
-
[tagName$
|
|
4064
|
+
[tagName$o]: PasswordFieldProps & BaseElementPropsWithChildren<PasswordFieldElement>;
|
|
3644
4065
|
}
|
|
3645
4066
|
}
|
|
3646
4067
|
}
|
|
3647
4068
|
|
|
3648
|
-
declare const tagName$
|
|
4069
|
+
declare const tagName$n = "s-payment-icon";
|
|
3649
4070
|
interface PaymentIconProps extends PaymentIconProps$1 {
|
|
3650
4071
|
}
|
|
3651
4072
|
interface PaymentIconElement extends PaymentIconProps, Omit<HTMLElement, 'id'> {
|
|
@@ -3657,12 +4078,12 @@ declare global {
|
|
|
3657
4078
|
declare module 'preact' {
|
|
3658
4079
|
namespace createElement.JSX {
|
|
3659
4080
|
interface IntrinsicElements {
|
|
3660
|
-
[tagName$
|
|
4081
|
+
[tagName$n]: PaymentIconProps & BaseElementProps<PaymentIconElement>;
|
|
3661
4082
|
}
|
|
3662
4083
|
}
|
|
3663
4084
|
}
|
|
3664
4085
|
|
|
3665
|
-
declare const tagName$
|
|
4086
|
+
declare const tagName$m = "s-phone-field";
|
|
3666
4087
|
interface PhoneFieldElementProps extends Pick<PhoneFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'name' | 'readOnly' | 'required' | 'value' | 'type'> {
|
|
3667
4088
|
/**
|
|
3668
4089
|
* @deprecated Use `label` instead.
|
|
@@ -3672,36 +4093,77 @@ interface PhoneFieldElementProps extends Pick<PhoneFieldProps$1, 'autocomplete'
|
|
|
3672
4093
|
}
|
|
3673
4094
|
interface PhoneFieldEvents extends Pick<PhoneFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
3674
4095
|
}
|
|
3675
|
-
interface
|
|
3676
|
-
/**
|
|
3677
|
-
* Additional content to be displayed in the field.
|
|
3678
|
-
* Commonly used to display an icon that activates a tooltip providing more information.
|
|
3679
|
-
*/
|
|
3680
|
-
accessory?: ReactNode;
|
|
3681
|
-
}
|
|
3682
|
-
interface PhoneFieldElement extends PhoneFieldElementProps, PhoneFieldSlots, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
4096
|
+
interface PhoneFieldElement extends PhoneFieldElementProps, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
3683
4097
|
onblur: PhoneFieldEvents['onBlur'];
|
|
3684
4098
|
onchange: PhoneFieldEvents['onChange'];
|
|
3685
4099
|
onfocus: PhoneFieldEvents['onFocus'];
|
|
3686
4100
|
oninput: PhoneFieldEvents['onInput'];
|
|
3687
4101
|
}
|
|
3688
|
-
interface PhoneFieldProps extends PhoneFieldElementProps,
|
|
4102
|
+
interface PhoneFieldProps extends PhoneFieldElementProps, PhoneFieldEvents {
|
|
3689
4103
|
}
|
|
3690
4104
|
declare global {
|
|
3691
4105
|
interface HTMLElementTagNameMap {
|
|
3692
|
-
[tagName$
|
|
4106
|
+
[tagName$m]: PhoneFieldElement;
|
|
3693
4107
|
}
|
|
3694
4108
|
}
|
|
3695
4109
|
declare module 'preact' {
|
|
3696
4110
|
namespace createElement.JSX {
|
|
3697
4111
|
interface IntrinsicElements {
|
|
3698
|
-
[tagName$
|
|
4112
|
+
[tagName$m]: PhoneFieldProps & BaseElementPropsWithChildren<PhoneFieldElement>;
|
|
3699
4113
|
}
|
|
3700
4114
|
}
|
|
3701
4115
|
}
|
|
3702
4116
|
|
|
3703
|
-
declare const tagName$
|
|
3704
|
-
interface PopoverElementProps extends Pick<PopoverProps$1, '
|
|
4117
|
+
declare const tagName$l = "s-popover";
|
|
4118
|
+
interface PopoverElementProps extends Pick<PopoverProps$1, 'id'> {
|
|
4119
|
+
/**
|
|
4120
|
+
* Adjust the block size.
|
|
4121
|
+
*
|
|
4122
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/block-size
|
|
4123
|
+
*
|
|
4124
|
+
* @default 'auto'
|
|
4125
|
+
*/
|
|
4126
|
+
blockSize?: SizeUnitsOrAuto;
|
|
4127
|
+
/**
|
|
4128
|
+
* Adjust the inline size.
|
|
4129
|
+
*
|
|
4130
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/inline-size
|
|
4131
|
+
*
|
|
4132
|
+
* @default 'auto'
|
|
4133
|
+
*/
|
|
4134
|
+
inlineSize?: SizeUnitsOrAuto;
|
|
4135
|
+
/**
|
|
4136
|
+
* Adjust the maximum block size.
|
|
4137
|
+
*
|
|
4138
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/max-block-size
|
|
4139
|
+
*
|
|
4140
|
+
* @default 'none'
|
|
4141
|
+
*/
|
|
4142
|
+
maxBlockSize?: SizeUnitsOrNone;
|
|
4143
|
+
/**
|
|
4144
|
+
* Adjust the maximum inline size.
|
|
4145
|
+
*
|
|
4146
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/max-inline-size
|
|
4147
|
+
*
|
|
4148
|
+
* @default 'none'
|
|
4149
|
+
*/
|
|
4150
|
+
maxInlineSize?: SizeUnitsOrNone;
|
|
4151
|
+
/**
|
|
4152
|
+
* Adjust the minimum block size.
|
|
4153
|
+
*
|
|
4154
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/min-block-size
|
|
4155
|
+
*
|
|
4156
|
+
* @default '0'
|
|
4157
|
+
*/
|
|
4158
|
+
minBlockSize?: SizeUnits;
|
|
4159
|
+
/**
|
|
4160
|
+
* Adjust the minimum inline size.
|
|
4161
|
+
*
|
|
4162
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/min-inline-size
|
|
4163
|
+
*
|
|
4164
|
+
* @default '0'
|
|
4165
|
+
*/
|
|
4166
|
+
minInlineSize?: SizeUnits;
|
|
3705
4167
|
}
|
|
3706
4168
|
interface PopoverEvents extends Pick<PopoverProps$1, 'onHide' | 'onShow'> {
|
|
3707
4169
|
}
|
|
@@ -3713,18 +4175,43 @@ interface PopoverProps extends PopoverElementProps, PopoverEvents {
|
|
|
3713
4175
|
}
|
|
3714
4176
|
declare global {
|
|
3715
4177
|
interface HTMLElementTagNameMap {
|
|
3716
|
-
[tagName$
|
|
4178
|
+
[tagName$l]: PopoverElement;
|
|
4179
|
+
}
|
|
4180
|
+
}
|
|
4181
|
+
declare module 'preact' {
|
|
4182
|
+
namespace createElement.JSX {
|
|
4183
|
+
interface IntrinsicElements {
|
|
4184
|
+
[tagName$l]: PopoverProps & BaseElementPropsWithChildren<PopoverElement>;
|
|
4185
|
+
}
|
|
4186
|
+
}
|
|
4187
|
+
}
|
|
4188
|
+
|
|
4189
|
+
declare const tagName$k = "s-press-button";
|
|
4190
|
+
interface PressButtonElementProps extends Pick<PressButtonProps$1, 'accessibilityLabel' | 'id' | 'inlineSize' | 'lang' | 'disabled' | 'loading' | 'pressed' | 'defaultPressed'> {
|
|
4191
|
+
}
|
|
4192
|
+
interface PressButtonEvents extends Pick<PressButtonProps$1, 'onClick' | 'onBlur' | 'onFocus'> {
|
|
4193
|
+
}
|
|
4194
|
+
interface PressButtonElement extends PressButtonElementProps, Omit<HTMLElement, 'children' | 'lang' | 'id' | 'onblur' | 'onclick' | 'onfocus'> {
|
|
4195
|
+
onblur: PressButtonEvents['onBlur'];
|
|
4196
|
+
onclick: PressButtonEvents['onClick'];
|
|
4197
|
+
onfocus: PressButtonEvents['onFocus'];
|
|
4198
|
+
}
|
|
4199
|
+
interface PressButtonProps extends PressButtonElementProps, PressButtonEvents {
|
|
4200
|
+
}
|
|
4201
|
+
declare global {
|
|
4202
|
+
interface HTMLElementTagNameMap {
|
|
4203
|
+
[tagName$k]: PressButtonElement;
|
|
3717
4204
|
}
|
|
3718
4205
|
}
|
|
3719
4206
|
declare module 'preact' {
|
|
3720
4207
|
namespace createElement.JSX {
|
|
3721
4208
|
interface IntrinsicElements {
|
|
3722
|
-
[tagName$
|
|
4209
|
+
[tagName$k]: PressButtonProps & BaseElementPropsWithChildren<PressButtonElement>;
|
|
3723
4210
|
}
|
|
3724
4211
|
}
|
|
3725
4212
|
}
|
|
3726
4213
|
|
|
3727
|
-
declare const tagName$
|
|
4214
|
+
declare const tagName$j = "s-product-thumbnail";
|
|
3728
4215
|
interface ProductThumbnailProps extends Pick<ProductThumbnailProps$1, 'alt' | 'size' | 'sizes' | 'src' | 'srcSet' | 'totalItems'> {
|
|
3729
4216
|
size?: Extract<ProductThumbnailProps$1['size'], 'small-100' | 'small' | 'base'>;
|
|
3730
4217
|
}
|
|
@@ -3732,18 +4219,18 @@ interface ProductThumbnailElement extends ProductThumbnailProps, Omit<HTMLElemen
|
|
|
3732
4219
|
}
|
|
3733
4220
|
declare global {
|
|
3734
4221
|
interface HTMLElementTagNameMap {
|
|
3735
|
-
[tagName$
|
|
4222
|
+
[tagName$j]: ProductThumbnailElement;
|
|
3736
4223
|
}
|
|
3737
4224
|
}
|
|
3738
4225
|
declare module 'preact' {
|
|
3739
4226
|
namespace createElement.JSX {
|
|
3740
4227
|
interface IntrinsicElements {
|
|
3741
|
-
[tagName$
|
|
4228
|
+
[tagName$j]: ProductThumbnailProps & BaseElementProps<ProductThumbnailElement>;
|
|
3742
4229
|
}
|
|
3743
4230
|
}
|
|
3744
4231
|
}
|
|
3745
4232
|
|
|
3746
|
-
declare const tagName$
|
|
4233
|
+
declare const tagName$i = "s-progress";
|
|
3747
4234
|
interface ProgressProps extends Pick<ProgressProps$1, 'accessibilityLabel' | 'id' | 'max' | 'tone' | 'value'> {
|
|
3748
4235
|
tone?: Extract<ProgressProps$1['tone'], 'auto' | 'critical'>;
|
|
3749
4236
|
}
|
|
@@ -3756,12 +4243,12 @@ declare global {
|
|
|
3756
4243
|
declare module 'preact' {
|
|
3757
4244
|
namespace createElement.JSX {
|
|
3758
4245
|
interface IntrinsicElements {
|
|
3759
|
-
[tagName$
|
|
4246
|
+
[tagName$i]: ProgressProps & BaseElementProps<ProgressElement>;
|
|
3760
4247
|
}
|
|
3761
4248
|
}
|
|
3762
4249
|
}
|
|
3763
4250
|
|
|
3764
|
-
declare const tagName$
|
|
4251
|
+
declare const tagName$h = "s-qr-code";
|
|
3765
4252
|
interface QRCodeElementProps extends QRCodeProps$1 {
|
|
3766
4253
|
}
|
|
3767
4254
|
interface QRCodeEvents extends Pick<QRCodeProps$1, 'onError'> {
|
|
@@ -3773,18 +4260,38 @@ interface QRCodeProps extends QRCodeElementProps, QRCodeEvents {
|
|
|
3773
4260
|
}
|
|
3774
4261
|
declare global {
|
|
3775
4262
|
interface HTMLElementTagNameMap {
|
|
3776
|
-
[tagName$
|
|
4263
|
+
[tagName$h]: QRCodelement;
|
|
4264
|
+
}
|
|
4265
|
+
}
|
|
4266
|
+
declare module 'preact' {
|
|
4267
|
+
namespace createElement.JSX {
|
|
4268
|
+
interface IntrinsicElements {
|
|
4269
|
+
[tagName$h]: QRCodeProps & BaseElementProps<QRCodelement>;
|
|
4270
|
+
}
|
|
4271
|
+
}
|
|
4272
|
+
}
|
|
4273
|
+
|
|
4274
|
+
declare const tagName$g = "s-query-container";
|
|
4275
|
+
interface QueryContainerElementProps extends Pick<QueryContainerProps$1, 'containerName' | 'id'> {
|
|
4276
|
+
}
|
|
4277
|
+
interface QueryContainerElement extends QueryContainerElementProps, Omit<HTMLElement, 'id'> {
|
|
4278
|
+
}
|
|
4279
|
+
interface QueryContainerProps extends QueryContainerElementProps {
|
|
4280
|
+
}
|
|
4281
|
+
declare global {
|
|
4282
|
+
interface HTMLElementTagNameMap {
|
|
4283
|
+
[tagName$g]: QueryContainerElement;
|
|
3777
4284
|
}
|
|
3778
4285
|
}
|
|
3779
4286
|
declare module 'preact' {
|
|
3780
4287
|
namespace createElement.JSX {
|
|
3781
4288
|
interface IntrinsicElements {
|
|
3782
|
-
[tagName$
|
|
4289
|
+
[tagName$g]: QueryContainerProps & BaseElementPropsWithChildren<QueryContainerElement>;
|
|
3783
4290
|
}
|
|
3784
4291
|
}
|
|
3785
4292
|
}
|
|
3786
4293
|
|
|
3787
|
-
declare const tagName$
|
|
4294
|
+
declare const tagName$f = "s-scroll-box";
|
|
3788
4295
|
interface ScrollBoxProps extends Pick<ScrollBoxProps$1, 'accessibilityLabel' | 'accessibilityRole' | 'accessibilityVisibility' | 'background' | 'blockSize' | 'border' | 'borderColor' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'display' | 'id' | 'inlineSize' | 'maxBlockSize' | 'maxInlineSize' | 'minBlockSize' | 'minInlineSize' | 'overflow' | 'padding' | 'paddingBlock' | 'paddingBlockEnd' | 'paddingBlockStart' | 'paddingInline' | 'paddingInlineEnd' | 'paddingInlineStart'> {
|
|
3789
4296
|
background?: Extract<ScrollBoxProps$1['background'], 'transparent' | 'subdued' | 'base'>;
|
|
3790
4297
|
border?: BorderShorthand;
|
|
@@ -3796,36 +4303,36 @@ interface ScrollBoxElement extends ScrollBoxProps, Omit<HTMLElement, 'id'> {
|
|
|
3796
4303
|
}
|
|
3797
4304
|
declare global {
|
|
3798
4305
|
interface HTMLElementTagNameMap {
|
|
3799
|
-
[tagName$
|
|
4306
|
+
[tagName$f]: ScrollBoxElement;
|
|
3800
4307
|
}
|
|
3801
4308
|
}
|
|
3802
4309
|
declare module 'preact' {
|
|
3803
4310
|
namespace createElement.JSX {
|
|
3804
4311
|
interface IntrinsicElements {
|
|
3805
|
-
[tagName$
|
|
4312
|
+
[tagName$f]: ScrollBoxProps & BaseElementPropsWithChildren<ScrollBoxElement>;
|
|
3806
4313
|
}
|
|
3807
4314
|
}
|
|
3808
4315
|
}
|
|
3809
4316
|
|
|
3810
|
-
declare const tagName$
|
|
4317
|
+
declare const tagName$e = "s-section";
|
|
3811
4318
|
interface SectionProps extends Pick<SectionProps$1, 'accessibilityLabel' | 'heading' | 'id'> {
|
|
3812
4319
|
}
|
|
3813
4320
|
interface SectionElement extends SectionProps, Omit<HTMLElement, 'id'> {
|
|
3814
4321
|
}
|
|
3815
4322
|
declare global {
|
|
3816
4323
|
interface HTMLElementTagNameMap {
|
|
3817
|
-
[tagName$
|
|
4324
|
+
[tagName$e]: SectionElement;
|
|
3818
4325
|
}
|
|
3819
4326
|
}
|
|
3820
4327
|
declare module 'preact' {
|
|
3821
4328
|
namespace createElement.JSX {
|
|
3822
4329
|
interface IntrinsicElements {
|
|
3823
|
-
[tagName$
|
|
4330
|
+
[tagName$e]: SectionProps & BaseElementPropsWithChildren<SectionElement>;
|
|
3824
4331
|
}
|
|
3825
4332
|
}
|
|
3826
4333
|
}
|
|
3827
4334
|
|
|
3828
|
-
declare const tagName$
|
|
4335
|
+
declare const tagName$d = "s-select";
|
|
3829
4336
|
interface SelectElementProps extends Pick<SelectProps$1, 'autocomplete' | 'disabled' | 'error' | 'id' | 'label' | 'name' | 'placeholder' | 'required' | 'value'> {
|
|
3830
4337
|
}
|
|
3831
4338
|
interface SelectEvents extends Pick<SelectProps$1, 'onBlur' | 'onChange' | 'onFocus'> {
|
|
@@ -3839,18 +4346,18 @@ interface SelectProps extends SelectElementProps, SelectEvents {
|
|
|
3839
4346
|
}
|
|
3840
4347
|
declare global {
|
|
3841
4348
|
interface HTMLElementTagNameMap {
|
|
3842
|
-
[tagName$
|
|
4349
|
+
[tagName$d]: SelectElement;
|
|
3843
4350
|
}
|
|
3844
4351
|
}
|
|
3845
4352
|
declare module 'preact' {
|
|
3846
4353
|
namespace createElement.JSX {
|
|
3847
4354
|
interface IntrinsicElements {
|
|
3848
|
-
[tagName$
|
|
4355
|
+
[tagName$d]: SelectProps & BaseElementPropsWithChildren<SelectElement>;
|
|
3849
4356
|
}
|
|
3850
4357
|
}
|
|
3851
4358
|
}
|
|
3852
4359
|
|
|
3853
|
-
declare const tagName$
|
|
4360
|
+
declare const tagName$c = "s-sheet";
|
|
3854
4361
|
interface SheetElementProps extends Pick<SheetProps$1, 'defaultOpen' | 'heading' | 'id'> {
|
|
3855
4362
|
/**
|
|
3856
4363
|
* A label that describes the purpose of the modal. When set,
|
|
@@ -3861,56 +4368,52 @@ interface SheetElementProps extends Pick<SheetProps$1, 'defaultOpen' | 'heading'
|
|
|
3861
4368
|
*/
|
|
3862
4369
|
accessibilityLabel?: string;
|
|
3863
4370
|
}
|
|
3864
|
-
interface SheetEvents extends Pick<SheetProps$1, '
|
|
4371
|
+
interface SheetEvents extends Pick<SheetProps$1, 'onAfterHide' | 'onAfterShow' | 'onHide' | 'onShow'> {
|
|
3865
4372
|
}
|
|
3866
|
-
interface
|
|
3867
|
-
/**
|
|
3868
|
-
* The primary action to perform, provided as a button type element.
|
|
3869
|
-
*/
|
|
3870
|
-
primaryAction?: ReactNode;
|
|
3871
|
-
/**
|
|
3872
|
-
* The secondary actions to perform, provided as a button type element.
|
|
3873
|
-
*/
|
|
3874
|
-
secondaryActions?: ReactNode;
|
|
4373
|
+
interface SheetElementMethods extends Pick<SheetProps$1, 'hideOverlay'> {
|
|
3875
4374
|
}
|
|
3876
|
-
interface SheetElement extends SheetElementProps,
|
|
4375
|
+
interface SheetElement extends SheetElementProps, SheetElementMethods, Omit<HTMLElement, 'id'> {
|
|
4376
|
+
afterhide: SheetEvents['onAfterHide'];
|
|
4377
|
+
aftershow: SheetEvents['onAfterShow'];
|
|
3877
4378
|
onhide: SheetEvents['onHide'];
|
|
3878
4379
|
onshow: SheetEvents['onShow'];
|
|
4380
|
+
onafterhide: SheetEvents['onAfterHide'];
|
|
4381
|
+
onaftershow: SheetEvents['onAfterShow'];
|
|
3879
4382
|
}
|
|
3880
|
-
interface SheetProps extends SheetElementProps, SheetEvents
|
|
4383
|
+
interface SheetProps extends SheetElementProps, SheetEvents {
|
|
3881
4384
|
}
|
|
3882
4385
|
declare global {
|
|
3883
4386
|
interface HTMLElementTagNameMap {
|
|
3884
|
-
[tagName$
|
|
4387
|
+
[tagName$c]: SheetElement;
|
|
3885
4388
|
}
|
|
3886
4389
|
}
|
|
3887
4390
|
declare module 'preact' {
|
|
3888
4391
|
namespace createElement.JSX {
|
|
3889
4392
|
interface IntrinsicElements {
|
|
3890
|
-
[tagName$
|
|
4393
|
+
[tagName$c]: SheetProps & BaseElementPropsWithChildren<SheetElement>;
|
|
3891
4394
|
}
|
|
3892
4395
|
}
|
|
3893
4396
|
}
|
|
3894
4397
|
|
|
3895
|
-
declare const tagName$
|
|
4398
|
+
declare const tagName$b = "s-skeleton-paragraph";
|
|
3896
4399
|
interface SkeletonParagraphProps extends SkeletonParagraphProps$1 {
|
|
3897
4400
|
}
|
|
3898
4401
|
interface SkeletonParagraphElement extends SkeletonParagraphProps, Omit<HTMLElement, 'id'> {
|
|
3899
4402
|
}
|
|
3900
4403
|
declare global {
|
|
3901
4404
|
interface HTMLElementTagNameMap {
|
|
3902
|
-
[tagName$
|
|
4405
|
+
[tagName$b]: SkeletonParagraphElement;
|
|
3903
4406
|
}
|
|
3904
4407
|
}
|
|
3905
4408
|
declare module 'preact' {
|
|
3906
4409
|
namespace createElement.JSX {
|
|
3907
4410
|
interface IntrinsicElements {
|
|
3908
|
-
[tagName$
|
|
4411
|
+
[tagName$b]: SkeletonParagraphProps & BaseElementProps<SkeletonParagraphElement>;
|
|
3909
4412
|
}
|
|
3910
4413
|
}
|
|
3911
4414
|
}
|
|
3912
4415
|
|
|
3913
|
-
declare const tagName$
|
|
4416
|
+
declare const tagName$a = "s-spinner";
|
|
3914
4417
|
interface SpinnerProps extends SpinnerProps$1 {
|
|
3915
4418
|
size?: Extract<SpinnerProps$1['size'], 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
3916
4419
|
}
|
|
@@ -3923,21 +4426,21 @@ declare global {
|
|
|
3923
4426
|
declare module 'preact' {
|
|
3924
4427
|
namespace createElement.JSX {
|
|
3925
4428
|
interface IntrinsicElements {
|
|
3926
|
-
[tagName$
|
|
4429
|
+
[tagName$a]: SpinnerProps & BaseElementProps<SpinnerElement>;
|
|
3927
4430
|
}
|
|
3928
4431
|
}
|
|
3929
4432
|
}
|
|
3930
4433
|
|
|
3931
|
-
declare const tagName$
|
|
4434
|
+
declare const tagName$9 = "s-stack";
|
|
3932
4435
|
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'> {
|
|
3933
4436
|
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'>;
|
|
3934
4437
|
background?: Extract<StackProps$1['background'], 'transparent' | 'subdued' | 'base'>;
|
|
3935
4438
|
border?: BorderShorthand;
|
|
3936
4439
|
borderWidth?: MaybeAllValuesShorthandProperty<ReducedBorderSizeKeyword> | '';
|
|
3937
4440
|
borderRadius?: MaybeAllValuesShorthandProperty<Extract<StackProps$1['borderRadius'], 'none' | 'small-100' | 'small' | 'base' | 'large' | 'large-100' | 'max'>>;
|
|
3938
|
-
alignContent?: Extract<StackProps$1['alignContent'], 'normal' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'center' | 'start' | 'end'
|
|
3939
|
-
alignItems?: Extract<StackProps$1['alignItems'], 'normal' | 'stretch' | 'center' | 'start' | 'end'
|
|
3940
|
-
justifyContent?: Extract<StackProps$1['justifyContent'], 'normal' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'center' | 'start' | 'end'
|
|
4441
|
+
alignContent?: MaybeResponsive<Extract<StackProps$1['alignContent'], 'normal' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'center' | 'start' | 'end'>>;
|
|
4442
|
+
alignItems?: MaybeResponsive<Extract<StackProps$1['alignItems'], 'normal' | 'stretch' | 'center' | 'start' | 'end'>>;
|
|
4443
|
+
justifyContent?: MaybeResponsive<Extract<StackProps$1['justifyContent'], 'normal' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'center' | 'start' | 'end'>>;
|
|
3941
4444
|
}
|
|
3942
4445
|
interface StackElement extends StackProps, Omit<HTMLElement, 'id'> {
|
|
3943
4446
|
}
|
|
@@ -3948,19 +4451,19 @@ declare global {
|
|
|
3948
4451
|
declare module 'preact' {
|
|
3949
4452
|
namespace createElement.JSX {
|
|
3950
4453
|
interface IntrinsicElements {
|
|
3951
|
-
[tagName$
|
|
4454
|
+
[tagName$9]: StackProps & BaseElementPropsWithChildren<StackElement>;
|
|
3952
4455
|
}
|
|
3953
4456
|
}
|
|
3954
4457
|
}
|
|
3955
4458
|
|
|
3956
|
-
declare const tagName$
|
|
4459
|
+
declare const tagName$8 = "s-summary";
|
|
3957
4460
|
interface SummaryProps extends Pick<SummaryProps$1, 'id'> {
|
|
3958
4461
|
}
|
|
3959
4462
|
interface SummaryElement extends SummaryProps, Omit<HTMLElement, 'id'> {
|
|
3960
4463
|
}
|
|
3961
4464
|
declare global {
|
|
3962
4465
|
interface HTMLElementTagNameMap {
|
|
3963
|
-
[tagName$
|
|
4466
|
+
[tagName$8]: SummaryElement;
|
|
3964
4467
|
}
|
|
3965
4468
|
}
|
|
3966
4469
|
declare module 'preact' {
|
|
@@ -3970,12 +4473,12 @@ declare module 'preact' {
|
|
|
3970
4473
|
}
|
|
3971
4474
|
namespace createElement.JSX {
|
|
3972
4475
|
interface IntrinsicElements {
|
|
3973
|
-
[tagName$
|
|
4476
|
+
[tagName$8]: SummaryProps & BaseProps;
|
|
3974
4477
|
}
|
|
3975
4478
|
}
|
|
3976
4479
|
}
|
|
3977
4480
|
|
|
3978
|
-
declare const tagName$
|
|
4481
|
+
declare const tagName$7 = "s-switch";
|
|
3979
4482
|
interface SwitchElementProps extends Pick<SwitchProps$1, 'accessibilityLabel' | 'checked' | 'command' | 'commandFor' | 'defaultChecked' | 'disabled' | 'id' | 'label' | 'name' | 'value'> {
|
|
3980
4483
|
command?: Extract<SwitchProps$1['command'], '--auto' | '--show' | '--hide' | '--toggle'>;
|
|
3981
4484
|
}
|
|
@@ -3988,18 +4491,18 @@ interface SwitchProps extends SwitchElementProps, SwitchEvents {
|
|
|
3988
4491
|
}
|
|
3989
4492
|
declare global {
|
|
3990
4493
|
interface HTMLElementTagNameMap {
|
|
3991
|
-
[tagName$
|
|
4494
|
+
[tagName$7]: SwitchElement;
|
|
3992
4495
|
}
|
|
3993
4496
|
}
|
|
3994
4497
|
declare module 'preact' {
|
|
3995
4498
|
namespace createElement.JSX {
|
|
3996
4499
|
interface IntrinsicElements {
|
|
3997
|
-
[tagName$
|
|
4500
|
+
[tagName$7]: SwitchProps & BaseElementProps<SwitchElement>;
|
|
3998
4501
|
}
|
|
3999
4502
|
}
|
|
4000
4503
|
}
|
|
4001
4504
|
|
|
4002
|
-
declare const tagName$
|
|
4505
|
+
declare const tagName$6 = "s-text-area";
|
|
4003
4506
|
interface TextAreaElementProps extends Pick<TextAreaProps$1, 'id' | 'label' | 'name' | 'required' | 'value' | 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'readOnly' | 'rows' | 'maxLength' | 'minLength' | 'labelAccessibilityVisibility'> {
|
|
4004
4507
|
/**
|
|
4005
4508
|
* @deprecated Use `label` instead.
|
|
@@ -4019,18 +4522,18 @@ interface TextAreaProps extends TextAreaElementProps, TextAreaEvents {
|
|
|
4019
4522
|
}
|
|
4020
4523
|
declare global {
|
|
4021
4524
|
interface HTMLElementTagNameMap {
|
|
4022
|
-
[tagName$
|
|
4525
|
+
[tagName$6]: TextAreaElement;
|
|
4023
4526
|
}
|
|
4024
4527
|
}
|
|
4025
4528
|
declare module 'preact' {
|
|
4026
4529
|
namespace createElement.JSX {
|
|
4027
4530
|
interface IntrinsicElements {
|
|
4028
|
-
[tagName$
|
|
4531
|
+
[tagName$6]: TextAreaProps & BaseElementProps<TextAreaElement>;
|
|
4029
4532
|
}
|
|
4030
4533
|
}
|
|
4031
4534
|
}
|
|
4032
4535
|
|
|
4033
|
-
declare const tagName$
|
|
4536
|
+
declare const tagName$5 = "s-text-field";
|
|
4034
4537
|
interface TextFieldElementProps extends Pick<TextFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'icon' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'prefix' | 'readOnly' | 'required' | 'suffix' | 'value'> {
|
|
4035
4538
|
icon?: IconProps['type'];
|
|
4036
4539
|
/**
|
|
@@ -4041,20 +4544,13 @@ interface TextFieldElementProps extends Pick<TextFieldProps$1, 'autocomplete' |
|
|
|
4041
4544
|
}
|
|
4042
4545
|
interface TextFieldEvents extends Pick<TextFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
4043
4546
|
}
|
|
4044
|
-
interface
|
|
4045
|
-
/**
|
|
4046
|
-
* Additional content to be displayed in the field.
|
|
4047
|
-
* Commonly used to display an icon that activates a tooltip providing more information.
|
|
4048
|
-
*/
|
|
4049
|
-
accessory?: ReactNode;
|
|
4050
|
-
}
|
|
4051
|
-
interface TextFieldElement extends TextFieldElementProps, TextFieldSlots, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
4547
|
+
interface TextFieldElement extends TextFieldElementProps, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
4052
4548
|
onblur: TextFieldEvents['onBlur'];
|
|
4053
4549
|
onchange: TextFieldEvents['onChange'];
|
|
4054
4550
|
onfocus: TextFieldEvents['onFocus'];
|
|
4055
4551
|
oninput: TextFieldEvents['onInput'];
|
|
4056
4552
|
}
|
|
4057
|
-
interface TextFieldProps extends TextFieldElementProps,
|
|
4553
|
+
interface TextFieldProps extends TextFieldElementProps, TextFieldEvents {
|
|
4058
4554
|
}
|
|
4059
4555
|
declare global {
|
|
4060
4556
|
interface HTMLElementTagNameMap {
|
|
@@ -4063,12 +4559,12 @@ declare global {
|
|
|
4063
4559
|
declare module 'preact' {
|
|
4064
4560
|
namespace createElement.JSX {
|
|
4065
4561
|
interface IntrinsicElements {
|
|
4066
|
-
[tagName$
|
|
4562
|
+
[tagName$5]: TextFieldProps & BaseElementPropsWithChildren<TextFieldElement>;
|
|
4067
4563
|
}
|
|
4068
4564
|
}
|
|
4069
4565
|
}
|
|
4070
4566
|
|
|
4071
|
-
declare const tagName$
|
|
4567
|
+
declare const tagName$4 = "s-text";
|
|
4072
4568
|
interface TextProps extends Pick<TextProps$1, 'accessibilityVisibility' | 'color' | 'dir' | 'display' | 'id' | 'lang' | 'tone' | 'type'> {
|
|
4073
4569
|
color?: Extract<TextProps$1['color'], 'subdued' | 'base'>;
|
|
4074
4570
|
tone?: Extract<TextProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
@@ -4083,12 +4579,12 @@ declare global {
|
|
|
4083
4579
|
declare module 'preact' {
|
|
4084
4580
|
namespace createElement.JSX {
|
|
4085
4581
|
interface IntrinsicElements {
|
|
4086
|
-
[tagName$
|
|
4582
|
+
[tagName$4]: TextProps & BaseElementPropsWithChildren<TextElement>;
|
|
4087
4583
|
}
|
|
4088
4584
|
}
|
|
4089
4585
|
}
|
|
4090
4586
|
|
|
4091
|
-
declare const tagName$
|
|
4587
|
+
declare const tagName$3 = "s-time";
|
|
4092
4588
|
interface TimeProps extends Pick<TimeProps$1, 'dateTime' | 'id'> {
|
|
4093
4589
|
}
|
|
4094
4590
|
interface TimeElement extends TimeProps, Omit<HTMLElement, 'id'> {
|
|
@@ -4100,7 +4596,27 @@ declare global {
|
|
|
4100
4596
|
declare module 'preact' {
|
|
4101
4597
|
namespace createElement.JSX {
|
|
4102
4598
|
interface IntrinsicElements {
|
|
4103
|
-
[tagName$
|
|
4599
|
+
[tagName$3]: TimeProps & BaseElementPropsWithChildren<TimeElement>;
|
|
4600
|
+
}
|
|
4601
|
+
}
|
|
4602
|
+
}
|
|
4603
|
+
|
|
4604
|
+
declare const tagName$2 = "s-tooltip";
|
|
4605
|
+
interface TooltipElementProps extends Pick<TooltipProps$1, 'id'> {
|
|
4606
|
+
}
|
|
4607
|
+
interface TooltipElement extends TooltipElementProps {
|
|
4608
|
+
}
|
|
4609
|
+
interface TooltipProps extends TooltipElementProps {
|
|
4610
|
+
}
|
|
4611
|
+
declare global {
|
|
4612
|
+
interface HTMLElementTagNameMap {
|
|
4613
|
+
[tagName$2]: TooltipElement;
|
|
4614
|
+
}
|
|
4615
|
+
}
|
|
4616
|
+
declare module 'preact' {
|
|
4617
|
+
namespace createElement.JSX {
|
|
4618
|
+
interface IntrinsicElements {
|
|
4619
|
+
[tagName$2]: TooltipProps & BaseElementPropsWithChildren<TooltipElement>;
|
|
4104
4620
|
}
|
|
4105
4621
|
}
|
|
4106
4622
|
}
|
|
@@ -4123,11 +4639,7 @@ declare module 'preact' {
|
|
|
4123
4639
|
}
|
|
4124
4640
|
|
|
4125
4641
|
declare const tagName = "s-url-field";
|
|
4126
|
-
interface UrlFieldElementProps extends Pick<URLFieldProps, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'maxLength'
|
|
4127
|
-
/** @todo: implement `minLength` */
|
|
4128
|
-
| 'name'
|
|
4129
|
-
/** @todo: implement `placeholder` */
|
|
4130
|
-
| 'readOnly' | 'required' | 'value'> {
|
|
4642
|
+
interface UrlFieldElementProps extends Pick<URLFieldProps, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'readOnly' | 'required' | 'value'> {
|
|
4131
4643
|
}
|
|
4132
4644
|
interface UrlFieldEvents extends Pick<URLFieldProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
4133
4645
|
}
|
|
@@ -4147,9 +4659,9 @@ declare global {
|
|
|
4147
4659
|
declare module 'preact' {
|
|
4148
4660
|
namespace createElement.JSX {
|
|
4149
4661
|
interface IntrinsicElements {
|
|
4150
|
-
[tagName]: UrlFieldProps &
|
|
4662
|
+
[tagName]: UrlFieldProps & BaseElementPropsWithChildren<UrlFieldElement>;
|
|
4151
4663
|
}
|
|
4152
4664
|
}
|
|
4153
4665
|
}
|
|
4154
4666
|
|
|
4155
|
-
export type { AbbreviationProps, BadgeProps, BannerProps, BoxProps, ButtonProps, CheckboxProps, ClickableProps, ClipboardItemProps, DetailsProps, DividerProps, DropZoneProps, EmailFieldProps, FormProps, GridItemProps, GridProps, HeadingProps, IconProps, ImageProps, LinkProps, ListItemProps, MapMarkerProps, MapProps, ModalProps, NumberFieldProps, OptionProps, OrderedListProps, ParagraphProps, PasswordFieldProps, PaymentIconProps, PhoneFieldProps, PopoverProps, ProductThumbnailProps, ProgressProps, QRCodeProps, ScrollBoxProps, SectionProps, SelectProps, SheetProps, SkeletonParagraphProps, SpinnerProps, StackProps, SummaryProps, SwitchProps, TextAreaProps, TextFieldProps, TextProps, TimeProps, UnorderedListProps, UrlFieldProps };
|
|
4667
|
+
export type { AbbreviationProps, BadgeProps, BannerProps, BoxProps, ButtonProps, CheckboxProps, ChoiceListProps, ChoiceProps, ClickableProps, ClipboardItemProps, DateFieldProps, DatePickerProps, DetailsProps, DividerProps, DropZoneProps, EmailFieldProps, FormProps, GridItemProps, GridProps, HeadingProps, IconProps, ImageProps, LinkProps, ListItemProps, MapMarkerProps, MapProps, ModalProps, MoneyFieldProps, NumberFieldProps, OptionProps, OrderedListProps, ParagraphProps, PasswordFieldProps, PaymentIconProps, PhoneFieldProps, PopoverProps, PressButtonProps, ProductThumbnailProps, ProgressProps, QRCodeProps, QueryContainerProps, ScrollBoxProps, SectionProps, SelectProps, SheetProps, SkeletonParagraphProps, SpinnerProps, StackProps, SummaryProps, SwitchProps, TextAreaProps, TextFieldProps, TextProps, TimeProps, TooltipProps, UnorderedListProps, UrlFieldProps };
|