@shopify/ui-extensions 2025.10.0-rc.40 → 2025.10.0-rc.41
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/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/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/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/{src/surfaces/checkout/components/UrlField.d.ts → build/ts/surfaces/checkout/components/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/build/ts/surfaces/{customer-account/components/Select.d.ts → 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/build/ts/surfaces/{customer-account/components/Option.d.ts → 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/Badge.d.ts +3 -8
- package/build/ts/surfaces/customer-account/components/Button.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/Clickable.d.ts +1 -1
- 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/Grid.d.ts +7 -7
- package/build/ts/surfaces/customer-account/components/Icon.d.ts +2 -7
- 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/Modal.d.ts +16 -15
- package/build/ts/surfaces/{checkout/components/UrlField.d.ts → customer-account/components/MoneyField.d.ts} +14 -18
- 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/{src/surfaces/checkout/components/Select.d.ts → build/ts/surfaces/customer-account/components/PressButton.d.ts} +20 -20
- 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/{checkout/components/Option.d.ts → customer-account/components/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/components/Banner.d.ts +11 -2
- package/build/ts/surfaces/point-of-sale/components/Button.d.ts +29 -4
- 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/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/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/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/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/Link.d.ts +1 -1
- 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-productthumbnail.example.html → basic-product-thumbnail.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/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/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/src/surfaces/checkout/components/{Option.d.ts → 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/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/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 +506 -336
- 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/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/TextArea/examples/{basic-textarea.example.html → basic-text-area.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
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://github.com/Shopify/ui-api-design/issues/139
|
|
12
12
|
*/
|
|
13
13
|
export type ComponentChildren = any;
|
|
14
|
+
export type StringChildren = string;
|
|
14
15
|
export interface GlobalProps {
|
|
15
16
|
/**
|
|
16
17
|
* A unique identifier for the element.
|
|
@@ -43,6 +44,109 @@ export interface ActionSlots {
|
|
|
43
44
|
*/
|
|
44
45
|
secondaryActions?: ComponentChildren;
|
|
45
46
|
}
|
|
47
|
+
export interface BaseOverlayProps {
|
|
48
|
+
/**
|
|
49
|
+
* Callback fired after the overlay is shown.
|
|
50
|
+
*/
|
|
51
|
+
onShow?: (event: Event) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Callback fired when the overlay is shown **after** any animations to show the overlay have finished.
|
|
54
|
+
*/
|
|
55
|
+
onAfterShow?: (event: Event) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Callback fired after the overlay is hidden.
|
|
58
|
+
*/
|
|
59
|
+
onHide?: (event: Event) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Callback fired when the overlay is hidden **after** any animations to hide the overlay have finished.
|
|
62
|
+
*/
|
|
63
|
+
onAfterHide?: (event: Event) => void;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Shared interfaces for web component methods.
|
|
67
|
+
*
|
|
68
|
+
* Methods are required (not optional) because:
|
|
69
|
+
* - Components implementing this interface must provide all methods
|
|
70
|
+
* - Unlike props/attributes, methods are not rendered in HTML but are JavaScript APIs
|
|
71
|
+
* - Consumers expect these methods to be consistently available on all instances
|
|
72
|
+
*/
|
|
73
|
+
export interface BaseOverlayMethods {
|
|
74
|
+
/**
|
|
75
|
+
* Method to show an overlay.
|
|
76
|
+
*
|
|
77
|
+
* @implementation This is a method to be called on the element and not a callback and should hence be camelCase
|
|
78
|
+
*/
|
|
79
|
+
showOverlay: () => void;
|
|
80
|
+
/**
|
|
81
|
+
* Method to hide an overlay.
|
|
82
|
+
*
|
|
83
|
+
* @implementation This is a method to be called on the element and not a callback and should hence be camelCase
|
|
84
|
+
*/
|
|
85
|
+
hideOverlay: () => void;
|
|
86
|
+
/**
|
|
87
|
+
* Method to toggle the visiblity of an overlay.
|
|
88
|
+
*
|
|
89
|
+
* @implementation This is a method to be called on the element and not a callback and should hence be camelCase
|
|
90
|
+
*/
|
|
91
|
+
toggleOverlay: () => void;
|
|
92
|
+
}
|
|
93
|
+
export interface FocusEventProps {
|
|
94
|
+
/**
|
|
95
|
+
* Callback when the element loses focus.
|
|
96
|
+
*
|
|
97
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
98
|
+
*/
|
|
99
|
+
onBlur?: (event: FocusEvent) => void;
|
|
100
|
+
/**
|
|
101
|
+
* Callback when the element receives focus.
|
|
102
|
+
*
|
|
103
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
104
|
+
*/
|
|
105
|
+
onFocus?: (event: FocusEvent) => void;
|
|
106
|
+
}
|
|
107
|
+
export interface ToggleEventProps {
|
|
108
|
+
/**
|
|
109
|
+
* Callback fired when the element state changes **after** any animations have finished.
|
|
110
|
+
*
|
|
111
|
+
* - If the element transitioned from hidden to showing, the `oldState` property will be set to `closed` and the
|
|
112
|
+
* `newState` property will be set to `open`.
|
|
113
|
+
* - If the element transitioned from showing to hidden, the `oldState` property will be set to `open` and the
|
|
114
|
+
* `newState` will be `closed`.
|
|
115
|
+
*
|
|
116
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState
|
|
117
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState
|
|
118
|
+
*/
|
|
119
|
+
onAfterToggle?: (event: ToggleEvent$1) => void;
|
|
120
|
+
/**
|
|
121
|
+
* Callback straight after the element state changes.
|
|
122
|
+
*
|
|
123
|
+
* - If the element is transitioning from hidden to showing, the `oldState` property will be set to `closed` and the
|
|
124
|
+
* `newState` property will be set to `open`.
|
|
125
|
+
* - If the element is transitioning from showing to hidden, then `oldState` property will be set to `open` and the
|
|
126
|
+
* `newState` will be `closed`.
|
|
127
|
+
*
|
|
128
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/toggle_event
|
|
129
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState
|
|
130
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState
|
|
131
|
+
*/
|
|
132
|
+
onToggle?: (event: ToggleEvent$1) => void;
|
|
133
|
+
}
|
|
134
|
+
export type ToggleState = "open" | "closed";
|
|
135
|
+
interface ToggleEvent$1 extends Event {
|
|
136
|
+
readonly newState: ToggleState;
|
|
137
|
+
readonly oldState: ToggleState;
|
|
138
|
+
}
|
|
139
|
+
export interface ExtendableEvent extends Event {
|
|
140
|
+
/**
|
|
141
|
+
* Provide a promise that signals the length, and eventual success or failure of actions relating to the event.
|
|
142
|
+
*
|
|
143
|
+
* This may be called many times, which adds promises to the event.
|
|
144
|
+
*
|
|
145
|
+
* However, this may only be called synchronously during the dispatch of the event.
|
|
146
|
+
* As in, you cannot call it after a `setTimeout` or microtask.
|
|
147
|
+
*/
|
|
148
|
+
waitUntil?: (promise: Promise<void>) => void;
|
|
149
|
+
}
|
|
46
150
|
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";
|
|
47
151
|
export type ColorKeyword = "subdued" | "base" | "strong";
|
|
48
152
|
export type BackgroundColorKeyword = "transparent" | ColorKeyword;
|
|
@@ -64,7 +168,7 @@ export interface BackgroundProps {
|
|
|
64
168
|
*
|
|
65
169
|
* @default 'auto'
|
|
66
170
|
*/
|
|
67
|
-
export type ToneKeyword = "auto" | "neutral" | "info" | "success" | "caution" | "warning" | "critical" | "custom";
|
|
171
|
+
export type ToneKeyword = "auto" | "neutral" | "info" | "success" | "caution" | "warning" | "critical" | "accent" | "custom";
|
|
68
172
|
declare const privateIconArray: readonly [
|
|
69
173
|
"adjust",
|
|
70
174
|
"affiliate",
|
|
@@ -73,23 +177,23 @@ declare const privateIconArray: readonly [
|
|
|
73
177
|
"alert-circle",
|
|
74
178
|
"alert-diamond",
|
|
75
179
|
"alert-location",
|
|
76
|
-
"alert-octagon-filled",
|
|
77
180
|
"alert-octagon",
|
|
78
|
-
"alert-
|
|
181
|
+
"alert-octagon-filled",
|
|
79
182
|
"alert-triangle",
|
|
183
|
+
"alert-triangle-filled",
|
|
80
184
|
"app-extension",
|
|
81
185
|
"apps",
|
|
82
186
|
"archive",
|
|
187
|
+
"arrow-down",
|
|
83
188
|
"arrow-down-circle",
|
|
84
189
|
"arrow-down-right",
|
|
85
|
-
"arrow-down",
|
|
86
|
-
"arrow-left-circle",
|
|
87
190
|
"arrow-left",
|
|
88
|
-
"arrow-
|
|
191
|
+
"arrow-left-circle",
|
|
89
192
|
"arrow-right",
|
|
193
|
+
"arrow-right-circle",
|
|
194
|
+
"arrow-up",
|
|
90
195
|
"arrow-up-circle",
|
|
91
196
|
"arrow-up-right",
|
|
92
|
-
"arrow-up",
|
|
93
197
|
"arrows-in-horizontal",
|
|
94
198
|
"arrows-out-horizontal",
|
|
95
199
|
"attachment",
|
|
@@ -98,36 +202,39 @@ declare const privateIconArray: readonly [
|
|
|
98
202
|
"bag",
|
|
99
203
|
"bank",
|
|
100
204
|
"barcode",
|
|
205
|
+
"battery-low",
|
|
101
206
|
"bill",
|
|
102
207
|
"blank",
|
|
103
208
|
"blog",
|
|
104
|
-
"bolt-filled",
|
|
105
209
|
"bolt",
|
|
106
|
-
"
|
|
210
|
+
"bolt-filled",
|
|
107
211
|
"book",
|
|
212
|
+
"book-open",
|
|
108
213
|
"bug",
|
|
109
214
|
"bullet",
|
|
110
215
|
"business-entity",
|
|
111
|
-
"button-press",
|
|
112
216
|
"button",
|
|
217
|
+
"button-press",
|
|
113
218
|
"calculator",
|
|
219
|
+
"calendar",
|
|
114
220
|
"calendar-check",
|
|
115
221
|
"calendar-compare",
|
|
116
222
|
"calendar-list",
|
|
117
223
|
"calendar-time",
|
|
118
|
-
"calendar",
|
|
119
|
-
"camera-flip",
|
|
120
224
|
"camera",
|
|
225
|
+
"camera-flip",
|
|
121
226
|
"caret-down",
|
|
122
227
|
"caret-left",
|
|
123
228
|
"caret-right",
|
|
124
229
|
"caret-up",
|
|
230
|
+
"cart",
|
|
125
231
|
"cart-abandoned",
|
|
126
232
|
"cart-discount",
|
|
127
233
|
"cart-down",
|
|
234
|
+
"cart-filled",
|
|
128
235
|
"cart-sale",
|
|
236
|
+
"cart-send",
|
|
129
237
|
"cart-up",
|
|
130
|
-
"cart",
|
|
131
238
|
"cash-dollar",
|
|
132
239
|
"cash-euro",
|
|
133
240
|
"cash-pound",
|
|
@@ -139,8 +246,8 @@ declare const privateIconArray: readonly [
|
|
|
139
246
|
"chart-cohort",
|
|
140
247
|
"chart-donut",
|
|
141
248
|
"chart-funnel",
|
|
142
|
-
"chart-histogram-first-last",
|
|
143
249
|
"chart-histogram-first",
|
|
250
|
+
"chart-histogram-first-last",
|
|
144
251
|
"chart-histogram-flat",
|
|
145
252
|
"chart-histogram-full",
|
|
146
253
|
"chart-histogram-growth",
|
|
@@ -151,36 +258,36 @@ declare const privateIconArray: readonly [
|
|
|
151
258
|
"chart-popular",
|
|
152
259
|
"chart-stacked",
|
|
153
260
|
"chart-vertical",
|
|
261
|
+
"chat",
|
|
154
262
|
"chat-new",
|
|
155
263
|
"chat-referral",
|
|
156
|
-
"chat",
|
|
157
|
-
"check-circle-filled",
|
|
158
|
-
"check-circle",
|
|
159
264
|
"check",
|
|
265
|
+
"check-circle",
|
|
266
|
+
"check-circle-filled",
|
|
160
267
|
"checkbox",
|
|
161
|
-
"chevron-down-circle",
|
|
162
268
|
"chevron-down",
|
|
163
|
-
"chevron-
|
|
269
|
+
"chevron-down-circle",
|
|
164
270
|
"chevron-left",
|
|
165
|
-
"chevron-
|
|
271
|
+
"chevron-left-circle",
|
|
166
272
|
"chevron-right",
|
|
167
|
-
"chevron-
|
|
273
|
+
"chevron-right-circle",
|
|
168
274
|
"chevron-up",
|
|
169
|
-
"circle
|
|
275
|
+
"chevron-up-circle",
|
|
170
276
|
"circle",
|
|
277
|
+
"circle-dashed",
|
|
278
|
+
"clipboard",
|
|
171
279
|
"clipboard-check",
|
|
172
280
|
"clipboard-checklist",
|
|
173
|
-
"clipboard",
|
|
174
|
-
"clock-revert",
|
|
175
281
|
"clock",
|
|
176
|
-
"
|
|
282
|
+
"clock-revert",
|
|
177
283
|
"code",
|
|
284
|
+
"code-add",
|
|
285
|
+
"collection",
|
|
178
286
|
"collection-featured",
|
|
179
287
|
"collection-list",
|
|
180
288
|
"collection-reference",
|
|
181
|
-
"collection",
|
|
182
|
-
"color-none",
|
|
183
289
|
"color",
|
|
290
|
+
"color-none",
|
|
184
291
|
"compass",
|
|
185
292
|
"complete",
|
|
186
293
|
"compose",
|
|
@@ -191,76 +298,81 @@ declare const privateIconArray: readonly [
|
|
|
191
298
|
"corner-pill",
|
|
192
299
|
"corner-round",
|
|
193
300
|
"corner-square",
|
|
301
|
+
"credit-card",
|
|
194
302
|
"credit-card-cancel",
|
|
195
303
|
"credit-card-percent",
|
|
304
|
+
"credit-card-reader",
|
|
196
305
|
"credit-card-reader-chip",
|
|
197
306
|
"credit-card-reader-tap",
|
|
198
|
-
"credit-card-reader",
|
|
199
307
|
"credit-card-secure",
|
|
200
308
|
"credit-card-tap-chip",
|
|
201
|
-
"credit-card",
|
|
202
309
|
"crop",
|
|
203
310
|
"currency-convert",
|
|
311
|
+
"cursor",
|
|
204
312
|
"cursor-banner",
|
|
205
313
|
"cursor-option",
|
|
206
|
-
"cursor",
|
|
207
314
|
"data-presentation",
|
|
208
315
|
"data-table",
|
|
316
|
+
"database",
|
|
209
317
|
"database-add",
|
|
210
318
|
"database-connect",
|
|
211
|
-
"database",
|
|
212
319
|
"delete",
|
|
213
320
|
"delivered",
|
|
214
321
|
"delivery",
|
|
215
322
|
"desktop",
|
|
216
323
|
"disabled",
|
|
324
|
+
"disabled-filled",
|
|
325
|
+
"discount",
|
|
217
326
|
"discount-add",
|
|
327
|
+
"discount-automatic",
|
|
218
328
|
"discount-code",
|
|
219
|
-
"discount",
|
|
329
|
+
"discount-remove",
|
|
220
330
|
"dns-settings",
|
|
221
331
|
"dock-floating",
|
|
222
332
|
"dock-side",
|
|
333
|
+
"domain",
|
|
223
334
|
"domain-landing-page",
|
|
224
335
|
"domain-new",
|
|
225
336
|
"domain-redirect",
|
|
226
|
-
"domain",
|
|
227
337
|
"download",
|
|
228
338
|
"drag-drop",
|
|
229
339
|
"drag-handle",
|
|
340
|
+
"drawer",
|
|
230
341
|
"duplicate",
|
|
231
342
|
"edit",
|
|
343
|
+
"email",
|
|
232
344
|
"email-follow-up",
|
|
233
345
|
"email-newsletter",
|
|
234
|
-
"email",
|
|
235
346
|
"empty",
|
|
236
347
|
"enabled",
|
|
237
348
|
"enter",
|
|
238
|
-
"envelope-soft-pack",
|
|
239
349
|
"envelope",
|
|
350
|
+
"envelope-soft-pack",
|
|
240
351
|
"eraser",
|
|
241
352
|
"exchange",
|
|
242
353
|
"exit",
|
|
243
354
|
"export",
|
|
244
355
|
"external",
|
|
245
356
|
"eye-check-mark",
|
|
246
|
-
"eye-dropper-list",
|
|
247
357
|
"eye-dropper",
|
|
358
|
+
"eye-dropper-list",
|
|
248
359
|
"eye-first",
|
|
249
360
|
"eyeglasses",
|
|
250
361
|
"fav",
|
|
251
362
|
"favicon",
|
|
252
|
-
"file-list",
|
|
253
363
|
"file",
|
|
364
|
+
"file-list",
|
|
254
365
|
"filter",
|
|
366
|
+
"filter-active",
|
|
255
367
|
"flag",
|
|
256
368
|
"flip-horizontal",
|
|
257
369
|
"flip-vertical",
|
|
258
370
|
"flower",
|
|
371
|
+
"folder",
|
|
259
372
|
"folder-add",
|
|
260
373
|
"folder-down",
|
|
261
374
|
"folder-remove",
|
|
262
375
|
"folder-up",
|
|
263
|
-
"folder",
|
|
264
376
|
"food",
|
|
265
377
|
"foreground",
|
|
266
378
|
"forklift",
|
|
@@ -268,56 +380,62 @@ declare const privateIconArray: readonly [
|
|
|
268
380
|
"games",
|
|
269
381
|
"gauge",
|
|
270
382
|
"geolocation",
|
|
271
|
-
"gift-card",
|
|
272
383
|
"gift",
|
|
384
|
+
"gift-card",
|
|
273
385
|
"git-branch",
|
|
274
386
|
"git-commit",
|
|
275
387
|
"git-repository",
|
|
388
|
+
"globe",
|
|
276
389
|
"globe-asia",
|
|
277
390
|
"globe-europe",
|
|
278
391
|
"globe-lines",
|
|
279
392
|
"globe-list",
|
|
280
|
-
"
|
|
393
|
+
"graduation-hat",
|
|
281
394
|
"grid",
|
|
395
|
+
"hashtag",
|
|
282
396
|
"hashtag-decimal",
|
|
283
397
|
"hashtag-list",
|
|
284
|
-
"hashtag",
|
|
285
398
|
"heart",
|
|
286
|
-
"hide-filled",
|
|
287
399
|
"hide",
|
|
400
|
+
"hide-filled",
|
|
288
401
|
"home",
|
|
402
|
+
"home-filled",
|
|
289
403
|
"icons",
|
|
290
404
|
"identity-card",
|
|
405
|
+
"image",
|
|
291
406
|
"image-add",
|
|
292
407
|
"image-alt",
|
|
293
408
|
"image-explore",
|
|
294
409
|
"image-magic",
|
|
295
410
|
"image-none",
|
|
296
411
|
"image-with-text-overlay",
|
|
297
|
-
"image",
|
|
298
412
|
"images",
|
|
299
413
|
"import",
|
|
300
414
|
"in-progress",
|
|
301
415
|
"incentive",
|
|
302
416
|
"incoming",
|
|
303
417
|
"incomplete",
|
|
304
|
-
"info-filled",
|
|
305
418
|
"info",
|
|
419
|
+
"info-filled",
|
|
306
420
|
"inheritance",
|
|
307
|
-
"inventory-updated",
|
|
308
421
|
"inventory",
|
|
422
|
+
"inventory-edit",
|
|
423
|
+
"inventory-list",
|
|
424
|
+
"inventory-transfer",
|
|
425
|
+
"inventory-updated",
|
|
309
426
|
"iq",
|
|
310
427
|
"key",
|
|
428
|
+
"keyboard",
|
|
311
429
|
"keyboard-filled",
|
|
312
430
|
"keyboard-hide",
|
|
313
|
-
"
|
|
431
|
+
"keypad",
|
|
314
432
|
"label-printer",
|
|
315
|
-
"language-translate",
|
|
316
433
|
"language",
|
|
434
|
+
"language-translate",
|
|
317
435
|
"layout-block",
|
|
436
|
+
"layout-buy-button",
|
|
318
437
|
"layout-buy-button-horizontal",
|
|
319
438
|
"layout-buy-button-vertical",
|
|
320
|
-
"layout-buy-button",
|
|
321
439
|
"layout-column-1",
|
|
322
440
|
"layout-columns-2",
|
|
323
441
|
"layout-columns-3",
|
|
@@ -330,64 +448,73 @@ declare const privateIconArray: readonly [
|
|
|
330
448
|
"layout-sidebar-left",
|
|
331
449
|
"layout-sidebar-right",
|
|
332
450
|
"lightbulb",
|
|
333
|
-
"link-list",
|
|
334
451
|
"link",
|
|
452
|
+
"link-list",
|
|
335
453
|
"list-bulleted",
|
|
454
|
+
"list-bulleted-filled",
|
|
336
455
|
"list-numbered",
|
|
337
456
|
"live",
|
|
338
|
-
"
|
|
457
|
+
"live-critical",
|
|
458
|
+
"live-none",
|
|
339
459
|
"location",
|
|
460
|
+
"location-none",
|
|
340
461
|
"lock",
|
|
341
462
|
"map",
|
|
463
|
+
"markets",
|
|
342
464
|
"markets-euro",
|
|
343
465
|
"markets-rupee",
|
|
344
466
|
"markets-yen",
|
|
345
|
-
"markets",
|
|
346
467
|
"maximize",
|
|
347
|
-
"measurement-size-list",
|
|
348
468
|
"measurement-size",
|
|
349
|
-
"measurement-
|
|
469
|
+
"measurement-size-list",
|
|
350
470
|
"measurement-volume",
|
|
351
|
-
"measurement-
|
|
471
|
+
"measurement-volume-list",
|
|
352
472
|
"measurement-weight",
|
|
473
|
+
"measurement-weight-list",
|
|
353
474
|
"media-receiver",
|
|
354
475
|
"megaphone",
|
|
355
476
|
"mention",
|
|
477
|
+
"menu",
|
|
478
|
+
"menu-filled",
|
|
356
479
|
"menu-horizontal",
|
|
357
480
|
"menu-vertical",
|
|
358
|
-
"menu",
|
|
359
481
|
"merge",
|
|
360
482
|
"metafields",
|
|
483
|
+
"metaobject",
|
|
361
484
|
"metaobject-list",
|
|
362
485
|
"metaobject-reference",
|
|
363
|
-
"metaobject",
|
|
364
486
|
"microphone",
|
|
365
487
|
"minimize",
|
|
366
|
-
"minus-circle",
|
|
367
488
|
"minus",
|
|
489
|
+
"minus-circle",
|
|
368
490
|
"mobile",
|
|
369
|
-
"money-none",
|
|
370
491
|
"money",
|
|
492
|
+
"money-none",
|
|
493
|
+
"money-split",
|
|
371
494
|
"moon",
|
|
372
495
|
"nature",
|
|
373
|
-
"note-add",
|
|
374
496
|
"note",
|
|
497
|
+
"note-add",
|
|
375
498
|
"notification",
|
|
499
|
+
"order",
|
|
376
500
|
"order-batches",
|
|
377
501
|
"order-draft",
|
|
502
|
+
"order-filled",
|
|
378
503
|
"order-first",
|
|
379
504
|
"order-fulfilled",
|
|
380
505
|
"order-repeat",
|
|
381
506
|
"order-unfulfilled",
|
|
382
|
-
"order",
|
|
383
507
|
"orders-status",
|
|
384
508
|
"organization",
|
|
385
509
|
"outdent",
|
|
386
510
|
"outgoing",
|
|
511
|
+
"package",
|
|
512
|
+
"package-cancel",
|
|
387
513
|
"package-fulfilled",
|
|
388
514
|
"package-on-hold",
|
|
515
|
+
"package-reassign",
|
|
389
516
|
"package-returned",
|
|
390
|
-
"
|
|
517
|
+
"page",
|
|
391
518
|
"page-add",
|
|
392
519
|
"page-attachment",
|
|
393
520
|
"page-clock",
|
|
@@ -398,7 +525,6 @@ declare const privateIconArray: readonly [
|
|
|
398
525
|
"page-remove",
|
|
399
526
|
"page-report",
|
|
400
527
|
"page-up",
|
|
401
|
-
"page",
|
|
402
528
|
"pagination-end",
|
|
403
529
|
"pagination-start",
|
|
404
530
|
"paint-brush-flat",
|
|
@@ -408,50 +534,55 @@ declare const privateIconArray: readonly [
|
|
|
408
534
|
"passkey",
|
|
409
535
|
"paste",
|
|
410
536
|
"pause-circle",
|
|
411
|
-
"payment-capture",
|
|
412
537
|
"payment",
|
|
538
|
+
"payment-capture",
|
|
539
|
+
"payout",
|
|
413
540
|
"payout-dollar",
|
|
414
541
|
"payout-euro",
|
|
415
542
|
"payout-pound",
|
|
416
543
|
"payout-rupee",
|
|
417
544
|
"payout-yen",
|
|
418
|
-
"
|
|
545
|
+
"person",
|
|
419
546
|
"person-add",
|
|
420
547
|
"person-exit",
|
|
548
|
+
"person-filled",
|
|
421
549
|
"person-list",
|
|
422
550
|
"person-lock",
|
|
423
551
|
"person-remove",
|
|
424
552
|
"person-segment",
|
|
425
|
-
"person",
|
|
426
553
|
"personalized-text",
|
|
554
|
+
"phablet",
|
|
555
|
+
"phone",
|
|
427
556
|
"phone-in",
|
|
428
557
|
"phone-out",
|
|
429
|
-
"phone",
|
|
430
|
-
"pin-remove",
|
|
431
558
|
"pin",
|
|
559
|
+
"pin-remove",
|
|
432
560
|
"plan",
|
|
433
|
-
"play-circle",
|
|
434
561
|
"play",
|
|
562
|
+
"play-circle",
|
|
563
|
+
"plus",
|
|
564
|
+
"plus-circle",
|
|
435
565
|
"plus-circle-down",
|
|
436
566
|
"plus-circle-filled",
|
|
437
567
|
"plus-circle-up",
|
|
438
|
-
"plus-circle",
|
|
439
|
-
"plus",
|
|
440
568
|
"point-of-sale",
|
|
569
|
+
"point-of-sale-register",
|
|
441
570
|
"price-list",
|
|
442
571
|
"print",
|
|
572
|
+
"product",
|
|
443
573
|
"product-add",
|
|
444
574
|
"product-cost",
|
|
575
|
+
"product-filled",
|
|
445
576
|
"product-list",
|
|
446
577
|
"product-reference",
|
|
447
578
|
"product-remove",
|
|
448
579
|
"product-return",
|
|
449
580
|
"product-unavailable",
|
|
450
|
-
"product",
|
|
451
|
-
"profile-filled",
|
|
452
581
|
"profile",
|
|
453
|
-
"
|
|
582
|
+
"profile-filled",
|
|
454
583
|
"question-circle",
|
|
584
|
+
"question-circle-filled",
|
|
585
|
+
"receipt",
|
|
455
586
|
"receipt-dollar",
|
|
456
587
|
"receipt-euro",
|
|
457
588
|
"receipt-folded",
|
|
@@ -460,7 +591,6 @@ declare const privateIconArray: readonly [
|
|
|
460
591
|
"receipt-refund",
|
|
461
592
|
"receipt-rupee",
|
|
462
593
|
"receipt-yen",
|
|
463
|
-
"receipt",
|
|
464
594
|
"receivables",
|
|
465
595
|
"redo",
|
|
466
596
|
"referral-code",
|
|
@@ -478,11 +608,12 @@ declare const privateIconArray: readonly [
|
|
|
478
608
|
"sandbox",
|
|
479
609
|
"save",
|
|
480
610
|
"savings",
|
|
611
|
+
"scan-qr-code",
|
|
612
|
+
"search",
|
|
481
613
|
"search-add",
|
|
482
614
|
"search-list",
|
|
483
615
|
"search-recent",
|
|
484
616
|
"search-resource",
|
|
485
|
-
"search",
|
|
486
617
|
"select",
|
|
487
618
|
"send",
|
|
488
619
|
"settings",
|
|
@@ -492,6 +623,7 @@ declare const privateIconArray: readonly [
|
|
|
492
623
|
"shield-pending",
|
|
493
624
|
"shield-person",
|
|
494
625
|
"shipping-label",
|
|
626
|
+
"shipping-label-cancel",
|
|
495
627
|
"shopcodes",
|
|
496
628
|
"slideshow",
|
|
497
629
|
"smiley-happy",
|
|
@@ -500,68 +632,70 @@ declare const privateIconArray: readonly [
|
|
|
500
632
|
"smiley-sad",
|
|
501
633
|
"social-ad",
|
|
502
634
|
"social-post",
|
|
635
|
+
"sort",
|
|
503
636
|
"sort-ascending",
|
|
504
637
|
"sort-descending",
|
|
505
|
-
"sort",
|
|
506
638
|
"sound",
|
|
507
639
|
"sports",
|
|
640
|
+
"star",
|
|
641
|
+
"star-circle",
|
|
508
642
|
"star-filled",
|
|
509
643
|
"star-half",
|
|
510
644
|
"star-list",
|
|
511
|
-
"star",
|
|
512
|
-
"status-active",
|
|
513
645
|
"status",
|
|
646
|
+
"status-active",
|
|
514
647
|
"stop-circle",
|
|
648
|
+
"store",
|
|
515
649
|
"store-import",
|
|
516
650
|
"store-managed",
|
|
517
651
|
"store-online",
|
|
518
|
-
"store",
|
|
519
652
|
"sun",
|
|
520
|
-
"table-masonry",
|
|
521
653
|
"table",
|
|
654
|
+
"table-masonry",
|
|
522
655
|
"tablet",
|
|
523
656
|
"target",
|
|
524
657
|
"tax",
|
|
525
658
|
"team",
|
|
659
|
+
"text",
|
|
526
660
|
"text-align-center",
|
|
527
661
|
"text-align-left",
|
|
528
662
|
"text-align-right",
|
|
529
663
|
"text-block",
|
|
530
664
|
"text-bold",
|
|
531
665
|
"text-color",
|
|
532
|
-
"text-font-list",
|
|
533
666
|
"text-font",
|
|
667
|
+
"text-font-list",
|
|
534
668
|
"text-grammar",
|
|
535
669
|
"text-in-columns",
|
|
536
670
|
"text-in-rows",
|
|
537
|
-
"text-indent-remove",
|
|
538
671
|
"text-indent",
|
|
672
|
+
"text-indent-remove",
|
|
539
673
|
"text-italic",
|
|
540
674
|
"text-quote",
|
|
541
675
|
"text-title",
|
|
542
676
|
"text-underline",
|
|
543
677
|
"text-with-image",
|
|
544
|
-
"
|
|
678
|
+
"theme",
|
|
545
679
|
"theme-edit",
|
|
546
680
|
"theme-store",
|
|
547
681
|
"theme-template",
|
|
548
|
-
"theme",
|
|
549
682
|
"three-d-environment",
|
|
550
683
|
"thumbs-down",
|
|
551
684
|
"thumbs-up",
|
|
552
685
|
"tip-jar",
|
|
553
686
|
"toggle-off",
|
|
554
687
|
"toggle-on",
|
|
688
|
+
"transaction",
|
|
689
|
+
"transaction-fee-add",
|
|
555
690
|
"transaction-fee-dollar",
|
|
556
691
|
"transaction-fee-euro",
|
|
557
692
|
"transaction-fee-pound",
|
|
558
693
|
"transaction-fee-rupee",
|
|
559
694
|
"transaction-fee-yen",
|
|
560
|
-
"
|
|
695
|
+
"transfer",
|
|
561
696
|
"transfer-in",
|
|
562
697
|
"transfer-internal",
|
|
563
698
|
"transfer-out",
|
|
564
|
-
"transfer",
|
|
565
699
|
"truck",
|
|
566
700
|
"undo",
|
|
567
701
|
"unknown-device",
|
|
@@ -577,12 +711,12 @@ declare const privateIconArray: readonly [
|
|
|
577
711
|
"wand",
|
|
578
712
|
"watch",
|
|
579
713
|
"wifi",
|
|
580
|
-
"work-list",
|
|
581
714
|
"work",
|
|
715
|
+
"work-list",
|
|
582
716
|
"wrench",
|
|
583
|
-
"x
|
|
717
|
+
"x",
|
|
584
718
|
"x-circle",
|
|
585
|
-
"x"
|
|
719
|
+
"x-circle-filled"
|
|
586
720
|
];
|
|
587
721
|
export type IconType = (typeof privateIconArray)[number];
|
|
588
722
|
/**
|
|
@@ -591,6 +725,7 @@ export type IconType = (typeof privateIconArray)[number];
|
|
|
591
725
|
export type ExtractStrict<T, U extends T> = Extract<T, U>;
|
|
592
726
|
export type MaybeAllValuesShorthandProperty<T extends string> = T | `${T} ${T}` | `${T} ${T} ${T}` | `${T} ${T} ${T} ${T}`;
|
|
593
727
|
export type MaybeTwoValuesShorthandProperty<T extends string> = T | `${T} ${T}`;
|
|
728
|
+
export type MaybeResponsive<T> = T | `@container${string}`;
|
|
594
729
|
/**
|
|
595
730
|
* Prevents widening string literal types in a union to `string`.
|
|
596
731
|
* @example
|
|
@@ -726,7 +861,7 @@ export interface DisplayProps {
|
|
|
726
861
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/display
|
|
727
862
|
* @default 'auto'
|
|
728
863
|
*/
|
|
729
|
-
display?: "auto" | "none"
|
|
864
|
+
display?: MaybeResponsive<"auto" | "none">;
|
|
730
865
|
}
|
|
731
866
|
export interface AccessibilityRoleProps {
|
|
732
867
|
/**
|
|
@@ -901,7 +1036,7 @@ export interface PaddingProps {
|
|
|
901
1036
|
*
|
|
902
1037
|
* @default 'none'
|
|
903
1038
|
*/
|
|
904
|
-
padding?: MaybeAllValuesShorthandProperty<PaddingKeyword
|
|
1039
|
+
padding?: MaybeResponsive<MaybeAllValuesShorthandProperty<PaddingKeyword>>;
|
|
905
1040
|
/**
|
|
906
1041
|
* Adjust the block-padding.
|
|
907
1042
|
*
|
|
@@ -911,7 +1046,7 @@ export interface PaddingProps {
|
|
|
911
1046
|
*
|
|
912
1047
|
* @default '' - meaning no override
|
|
913
1048
|
*/
|
|
914
|
-
paddingBlock?: MaybeTwoValuesShorthandProperty<PaddingKeyword> | ""
|
|
1049
|
+
paddingBlock?: MaybeResponsive<MaybeTwoValuesShorthandProperty<PaddingKeyword> | "">;
|
|
915
1050
|
/**
|
|
916
1051
|
* Adjust the block-start padding.
|
|
917
1052
|
*
|
|
@@ -919,7 +1054,7 @@ export interface PaddingProps {
|
|
|
919
1054
|
*
|
|
920
1055
|
* @default '' - meaning no override
|
|
921
1056
|
*/
|
|
922
|
-
paddingBlockStart?: PaddingKeyword | ""
|
|
1057
|
+
paddingBlockStart?: MaybeResponsive<PaddingKeyword | "">;
|
|
923
1058
|
/**
|
|
924
1059
|
* Adjust the block-end padding.
|
|
925
1060
|
*
|
|
@@ -927,7 +1062,7 @@ export interface PaddingProps {
|
|
|
927
1062
|
*
|
|
928
1063
|
* @default '' - meaning no override
|
|
929
1064
|
*/
|
|
930
|
-
paddingBlockEnd?: PaddingKeyword | ""
|
|
1065
|
+
paddingBlockEnd?: MaybeResponsive<PaddingKeyword | "">;
|
|
931
1066
|
/**
|
|
932
1067
|
* Adjust the inline padding.
|
|
933
1068
|
*
|
|
@@ -937,7 +1072,7 @@ export interface PaddingProps {
|
|
|
937
1072
|
*
|
|
938
1073
|
* @default '' - meaning no override
|
|
939
1074
|
*/
|
|
940
|
-
paddingInline?: MaybeTwoValuesShorthandProperty<PaddingKeyword> | ""
|
|
1075
|
+
paddingInline?: MaybeResponsive<MaybeTwoValuesShorthandProperty<PaddingKeyword> | "">;
|
|
941
1076
|
/**
|
|
942
1077
|
* Adjust the inline-start padding.
|
|
943
1078
|
*
|
|
@@ -945,7 +1080,7 @@ export interface PaddingProps {
|
|
|
945
1080
|
*
|
|
946
1081
|
* @default '' - meaning no override
|
|
947
1082
|
*/
|
|
948
|
-
paddingInlineStart?: PaddingKeyword | ""
|
|
1083
|
+
paddingInlineStart?: MaybeResponsive<PaddingKeyword | "">;
|
|
949
1084
|
/**
|
|
950
1085
|
* Adjust the inline-end padding.
|
|
951
1086
|
*
|
|
@@ -953,7 +1088,7 @@ export interface PaddingProps {
|
|
|
953
1088
|
*
|
|
954
1089
|
* @default '' - meaning no override
|
|
955
1090
|
*/
|
|
956
|
-
paddingInlineEnd?: PaddingKeyword | ""
|
|
1091
|
+
paddingInlineEnd?: MaybeResponsive<PaddingKeyword | "">;
|
|
957
1092
|
}
|
|
958
1093
|
export type SizeUnits = `${number}px` | `${number}%` | `0`;
|
|
959
1094
|
export type SizeUnitsOrAuto = SizeUnits | "auto";
|
|
@@ -966,7 +1101,7 @@ export interface SizingProps {
|
|
|
966
1101
|
*
|
|
967
1102
|
* @default 'auto'
|
|
968
1103
|
*/
|
|
969
|
-
blockSize?: SizeUnitsOrAuto
|
|
1104
|
+
blockSize?: MaybeResponsive<SizeUnitsOrAuto>;
|
|
970
1105
|
/**
|
|
971
1106
|
* Adjust the minimum block size.
|
|
972
1107
|
*
|
|
@@ -974,7 +1109,7 @@ export interface SizingProps {
|
|
|
974
1109
|
*
|
|
975
1110
|
* @default '0'
|
|
976
1111
|
*/
|
|
977
|
-
minBlockSize?: SizeUnits
|
|
1112
|
+
minBlockSize?: MaybeResponsive<SizeUnits>;
|
|
978
1113
|
/**
|
|
979
1114
|
* Adjust the maximum block size.
|
|
980
1115
|
*
|
|
@@ -982,7 +1117,7 @@ export interface SizingProps {
|
|
|
982
1117
|
*
|
|
983
1118
|
* @default 'none'
|
|
984
1119
|
*/
|
|
985
|
-
maxBlockSize?: SizeUnitsOrNone
|
|
1120
|
+
maxBlockSize?: MaybeResponsive<SizeUnitsOrNone>;
|
|
986
1121
|
/**
|
|
987
1122
|
* Adjust the inline size.
|
|
988
1123
|
*
|
|
@@ -990,7 +1125,7 @@ export interface SizingProps {
|
|
|
990
1125
|
*
|
|
991
1126
|
* @default 'auto'
|
|
992
1127
|
*/
|
|
993
|
-
inlineSize?: SizeUnitsOrAuto
|
|
1128
|
+
inlineSize?: MaybeResponsive<SizeUnitsOrAuto>;
|
|
994
1129
|
/**
|
|
995
1130
|
* Adjust the minimum inline size.
|
|
996
1131
|
*
|
|
@@ -998,7 +1133,7 @@ export interface SizingProps {
|
|
|
998
1133
|
*
|
|
999
1134
|
* @default '0'
|
|
1000
1135
|
*/
|
|
1001
|
-
minInlineSize?: SizeUnits
|
|
1136
|
+
minInlineSize?: MaybeResponsive<SizeUnits>;
|
|
1002
1137
|
/**
|
|
1003
1138
|
* Adjust the maximum inline size.
|
|
1004
1139
|
*
|
|
@@ -1006,7 +1141,7 @@ export interface SizingProps {
|
|
|
1006
1141
|
*
|
|
1007
1142
|
* @default 'none'
|
|
1008
1143
|
*/
|
|
1009
|
-
maxInlineSize?: SizeUnitsOrNone
|
|
1144
|
+
maxInlineSize?: MaybeResponsive<SizeUnitsOrNone>;
|
|
1010
1145
|
}
|
|
1011
1146
|
export type BorderStyleKeyword = "none" | "solid" | "dashed" | "dotted" | "auto";
|
|
1012
1147
|
export type BorderSizeKeyword = SizeKeyword | "none";
|
|
@@ -1103,92 +1238,35 @@ export interface OverflowProps {
|
|
|
1103
1238
|
/**
|
|
1104
1239
|
* Sets the overflow behavior of the element.
|
|
1105
1240
|
*
|
|
1106
|
-
* - `hidden`: clips the content when it is larger than the element’s container.
|
|
1107
|
-
* The element will not be scrollable and the users will not be able
|
|
1108
|
-
* to access the clipped content by dragging or using a scroll wheel on a mouse.
|
|
1109
|
-
* - `visible`: the content that extends beyond the element’s container is visible.
|
|
1110
|
-
*
|
|
1111
|
-
* @default 'visible'
|
|
1112
|
-
*/
|
|
1113
|
-
overflow?: "hidden" | "visible";
|
|
1114
|
-
}
|
|
1115
|
-
export interface BaseBoxProps extends AccessibilityVisibilityProps, BackgroundProps, DisplayProps, SizingProps, PaddingProps, BorderProps, OverflowProps {
|
|
1116
|
-
/**
|
|
1117
|
-
* The content of the Box.
|
|
1118
|
-
*/
|
|
1119
|
-
children?: ComponentChildren;
|
|
1120
|
-
/**
|
|
1121
|
-
* A label that describes the purpose or contents of the element.
|
|
1122
|
-
* When set, it will be announced to users using assistive technologies and will provide them with more context.
|
|
1123
|
-
*
|
|
1124
|
-
* Only use this when the element's content is not enough context for users using assistive technologies.
|
|
1125
|
-
*/
|
|
1126
|
-
accessibilityLabel?: string;
|
|
1127
|
-
}
|
|
1128
|
-
export interface BaseBoxPropsWithRole extends BaseBoxProps, AccessibilityRoleProps {
|
|
1129
|
-
}
|
|
1130
|
-
interface BoxProps$1 extends BaseBoxPropsWithRole, GlobalProps {
|
|
1131
|
-
}
|
|
1132
|
-
export interface FocusEventProps {
|
|
1133
|
-
/**
|
|
1134
|
-
* Callback when the element loses focus.
|
|
1135
|
-
*
|
|
1136
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
1137
|
-
*/
|
|
1138
|
-
onBlur?: (event: FocusEvent) => void;
|
|
1139
|
-
/**
|
|
1140
|
-
* Callback when the element receives focus.
|
|
1141
|
-
*
|
|
1142
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
1143
|
-
*/
|
|
1144
|
-
onFocus?: (event: FocusEvent) => void;
|
|
1145
|
-
}
|
|
1146
|
-
export interface ToggleEventProps {
|
|
1147
|
-
/**
|
|
1148
|
-
* Callback fired when the element state changes **after** any animations have finished.
|
|
1149
|
-
*
|
|
1150
|
-
* - If the element transitioned from hidden to showing, the `oldState` property will be set to `closed` and the
|
|
1151
|
-
* `newState` property will be set to `open`.
|
|
1152
|
-
* - If the element transitioned from showing to hidden, the `oldState` property will be set to `open` and the
|
|
1153
|
-
* `newState` will be `closed`.
|
|
1154
|
-
*
|
|
1155
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState
|
|
1156
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState
|
|
1157
|
-
*/
|
|
1158
|
-
onAfterToggle?: (event: ToggleEvent$1) => void;
|
|
1159
|
-
/**
|
|
1160
|
-
* Callback straight after the element state changes.
|
|
1161
|
-
*
|
|
1162
|
-
* - If the element is transitioning from hidden to showing, the `oldState` property will be set to `closed` and the
|
|
1163
|
-
* `newState` property will be set to `open`.
|
|
1164
|
-
* - If the element is transitioning from showing to hidden, then `oldState` property will be set to `open` and the
|
|
1165
|
-
* `newState` will be `closed`.
|
|
1241
|
+
* - `hidden`: clips the content when it is larger than the element’s container.
|
|
1242
|
+
* The element will not be scrollable and the users will not be able
|
|
1243
|
+
* to access the clipped content by dragging or using a scroll wheel on a mouse.
|
|
1244
|
+
* - `visible`: the content that extends beyond the element’s container is visible.
|
|
1166
1245
|
*
|
|
1167
|
-
* @
|
|
1168
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState
|
|
1169
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState
|
|
1246
|
+
* @default 'visible'
|
|
1170
1247
|
*/
|
|
1171
|
-
|
|
1172
|
-
}
|
|
1173
|
-
export type ToggleState = "open" | "closed";
|
|
1174
|
-
interface ToggleEvent$1 extends Event {
|
|
1175
|
-
readonly newState: ToggleState;
|
|
1176
|
-
readonly oldState: ToggleState;
|
|
1248
|
+
overflow?: "hidden" | "visible";
|
|
1177
1249
|
}
|
|
1178
|
-
export interface
|
|
1250
|
+
export interface BaseBoxProps extends AccessibilityVisibilityProps, BackgroundProps, DisplayProps, SizingProps, PaddingProps, BorderProps, OverflowProps {
|
|
1179
1251
|
/**
|
|
1180
|
-
*
|
|
1181
|
-
|
|
1182
|
-
|
|
1252
|
+
* The content of the Box.
|
|
1253
|
+
*/
|
|
1254
|
+
children?: ComponentChildren;
|
|
1255
|
+
/**
|
|
1256
|
+
* A label that describes the purpose or contents of the element.
|
|
1257
|
+
* When set, it will be announced to users using assistive technologies and will provide them with more context.
|
|
1183
1258
|
*
|
|
1184
|
-
*
|
|
1185
|
-
* As in, you cannot call it after a `setTimeout` or microtask.
|
|
1259
|
+
* Only use this when the element's content is not enough context for users using assistive technologies.
|
|
1186
1260
|
*/
|
|
1187
|
-
|
|
1261
|
+
accessibilityLabel?: string;
|
|
1262
|
+
}
|
|
1263
|
+
export interface BaseBoxPropsWithRole extends BaseBoxProps, AccessibilityRoleProps {
|
|
1264
|
+
}
|
|
1265
|
+
interface BoxProps$1 extends BaseBoxPropsWithRole, GlobalProps {
|
|
1188
1266
|
}
|
|
1189
1267
|
export interface ButtonBehaviorProps extends InteractionProps, FocusEventProps {
|
|
1190
1268
|
/**
|
|
1191
|
-
* The behavior of the
|
|
1269
|
+
* The behavior of the Button.
|
|
1192
1270
|
*
|
|
1193
1271
|
* - `submit`: Used to indicate the component acts as a submit button, meaning it submits the closest form.
|
|
1194
1272
|
* - `button`: Used to indicate the component acts as a button, meaning it has no default action.
|
|
@@ -1200,14 +1278,14 @@ export interface ButtonBehaviorProps extends InteractionProps, FocusEventProps {
|
|
|
1200
1278
|
*/
|
|
1201
1279
|
type?: "submit" | "button" | "reset";
|
|
1202
1280
|
/**
|
|
1203
|
-
* Callback when the
|
|
1281
|
+
* Callback when the Button is activated.
|
|
1204
1282
|
* This will be called before the action indicated by `type`.
|
|
1205
1283
|
*
|
|
1206
1284
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event
|
|
1207
1285
|
*/
|
|
1208
1286
|
onClick?: (event: Event) => void;
|
|
1209
1287
|
/**
|
|
1210
|
-
* Disables the
|
|
1288
|
+
* Disables the Button meaning it cannot be clicked or receive focus.
|
|
1211
1289
|
*
|
|
1212
1290
|
* @default false
|
|
1213
1291
|
*/
|
|
@@ -1215,7 +1293,7 @@ export interface ButtonBehaviorProps extends InteractionProps, FocusEventProps {
|
|
|
1215
1293
|
/**
|
|
1216
1294
|
* Replaces content with a loading indicator while a background action is being performed.
|
|
1217
1295
|
*
|
|
1218
|
-
* This also disables the
|
|
1296
|
+
* This also disables the Button.
|
|
1219
1297
|
*
|
|
1220
1298
|
* @default false
|
|
1221
1299
|
*/
|
|
@@ -1245,7 +1323,7 @@ export interface LinkBehaviorProps extends InteractionProps, FocusEventProps {
|
|
|
1245
1323
|
target?: "auto" | "_blank" | "_self" | "_parent" | "_top" | AnyString;
|
|
1246
1324
|
/**
|
|
1247
1325
|
* Causes the browser to treat the linked URL as a download with the string being the file name.
|
|
1248
|
-
* Download only works for same-origin URLs
|
|
1326
|
+
* Download only works for same-origin URLs or the `blob:` and `data:` schemes.
|
|
1249
1327
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download
|
|
1250
1328
|
*/
|
|
1251
1329
|
download?: string;
|
|
@@ -1293,7 +1371,7 @@ interface ButtonProps$1 extends GlobalProps, BaseClickableProps {
|
|
|
1293
1371
|
/**
|
|
1294
1372
|
* A label that describes the purpose or contents of the Button. It will be read to users using assistive technologies such as screen readers.
|
|
1295
1373
|
*
|
|
1296
|
-
* Use this when using only an icon or the
|
|
1374
|
+
* Use this when using only an icon or the Button text is not enough context
|
|
1297
1375
|
* for users using assistive technologies.
|
|
1298
1376
|
*/
|
|
1299
1377
|
accessibilityLabel?: string;
|
|
@@ -1302,13 +1380,13 @@ interface ButtonProps$1 extends GlobalProps, BaseClickableProps {
|
|
|
1302
1380
|
*/
|
|
1303
1381
|
children?: ComponentChildren;
|
|
1304
1382
|
/**
|
|
1305
|
-
* The type of icon to be displayed in the
|
|
1383
|
+
* The type of icon to be displayed in the Button.
|
|
1306
1384
|
*
|
|
1307
1385
|
* @default ''
|
|
1308
1386
|
*/
|
|
1309
1387
|
icon?: IconType | AnyString;
|
|
1310
1388
|
/**
|
|
1311
|
-
* The displayed inline width of the
|
|
1389
|
+
* The displayed inline width of the Button.
|
|
1312
1390
|
*
|
|
1313
1391
|
* - `auto`: the size of the button depends on the surface and context.
|
|
1314
1392
|
* - `fill`: the button will takes up 100% of the available inline size.
|
|
@@ -1324,7 +1402,7 @@ interface ButtonProps$1 extends GlobalProps, BaseClickableProps {
|
|
|
1324
1402
|
*/
|
|
1325
1403
|
variant?: "auto" | "primary" | "secondary" | "tertiary";
|
|
1326
1404
|
/**
|
|
1327
|
-
* Sets the tone of the Button
|
|
1405
|
+
* Sets the tone of the Button based on the intention of the information being conveyed.
|
|
1328
1406
|
*
|
|
1329
1407
|
* @default 'auto'
|
|
1330
1408
|
*/
|
|
@@ -1372,22 +1450,54 @@ export interface InputProps extends BaseInputProps {
|
|
|
1372
1450
|
*/
|
|
1373
1451
|
defaultValue?: string;
|
|
1374
1452
|
}
|
|
1375
|
-
export interface
|
|
1453
|
+
export interface MultipleInputProps extends BaseInputProps {
|
|
1376
1454
|
/**
|
|
1377
|
-
* Callback when the user has
|
|
1455
|
+
* Callback when the user has selected option(s).
|
|
1456
|
+
*
|
|
1457
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
|
|
1378
1458
|
*/
|
|
1379
|
-
onChange?: (
|
|
1459
|
+
onChange?: (event: Event) => void;
|
|
1380
1460
|
/**
|
|
1381
|
-
* Callback when the user
|
|
1461
|
+
* Callback when the user has selected option(s).
|
|
1462
|
+
*
|
|
1463
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
|
|
1464
|
+
*/
|
|
1465
|
+
onInput?: (event: Event) => void;
|
|
1466
|
+
/**
|
|
1467
|
+
* An array of the `value`s of the selected options.
|
|
1468
|
+
*
|
|
1469
|
+
* This is a convenience prop for setting the `selected` prop on child options.
|
|
1470
|
+
*/
|
|
1471
|
+
values?: string[];
|
|
1472
|
+
}
|
|
1473
|
+
export interface FileInputProps extends BaseInputProps {
|
|
1474
|
+
/**
|
|
1475
|
+
* Callback when the user has **finished selecting** a file or files.
|
|
1476
|
+
*/
|
|
1477
|
+
onChange?: (event: Event) => void;
|
|
1478
|
+
/**
|
|
1479
|
+
* Callback when the user makes any changes in the file selection.
|
|
1382
1480
|
*/
|
|
1383
|
-
onInput?: (
|
|
1481
|
+
onInput?: (event: Event) => void;
|
|
1482
|
+
/**
|
|
1483
|
+
* A string that represents the path to the selected file(s). If no file is selected yet, the value is an empty string ("").
|
|
1484
|
+
* When the user selected multiple files, the value represents the first file in the list of files they selected.
|
|
1485
|
+
* The value is always the file's name prefixed with "C:\fakepath\", which isn't the real path of the file.
|
|
1486
|
+
*
|
|
1487
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/file#value
|
|
1488
|
+
*
|
|
1489
|
+
* @default ''
|
|
1490
|
+
*/
|
|
1491
|
+
value?: string;
|
|
1384
1492
|
/**
|
|
1385
|
-
*
|
|
1493
|
+
* An array of File objects representing the files currently selected by the user.
|
|
1494
|
+
*
|
|
1495
|
+
* This property is read-only and cannot be directly modified.
|
|
1496
|
+
* To clear the selected files, set the `value` prop to an empty string or null.
|
|
1386
1497
|
*
|
|
1387
|
-
*
|
|
1388
|
-
* We haven't agreed how to represent that yet.
|
|
1498
|
+
* @default []
|
|
1389
1499
|
*/
|
|
1390
|
-
|
|
1500
|
+
files?: readonly File[];
|
|
1391
1501
|
}
|
|
1392
1502
|
export interface FieldErrorProps {
|
|
1393
1503
|
/**
|
|
@@ -1634,6 +1744,82 @@ interface CheckboxProps$1 extends GlobalProps, BaseCheckableProps, FieldErrorPro
|
|
|
1634
1744
|
*/
|
|
1635
1745
|
required?: boolean;
|
|
1636
1746
|
}
|
|
1747
|
+
interface ChoiceProps$1 extends GlobalProps, BaseOptionProps {
|
|
1748
|
+
/**
|
|
1749
|
+
* Content to use as the choice label.
|
|
1750
|
+
*
|
|
1751
|
+
* @implementation (StringChildren) The label is produced by extracting and
|
|
1752
|
+
* concatenating the text nodes from the provided content; any markup or
|
|
1753
|
+
* element structure is ignored.
|
|
1754
|
+
*
|
|
1755
|
+
* @implementation (ComponentChildren) Behaves as a slot: any elements passed
|
|
1756
|
+
* are rendered as the label content (subject to surface constraints); there
|
|
1757
|
+
* is no coercion to a string.
|
|
1758
|
+
*/
|
|
1759
|
+
children?: ComponentChildren | StringChildren;
|
|
1760
|
+
/**
|
|
1761
|
+
* Additional text to provide context or guidance for the input.
|
|
1762
|
+
*
|
|
1763
|
+
* This text is displayed along with the input and its label
|
|
1764
|
+
* to offer more information or instructions to the user.
|
|
1765
|
+
*
|
|
1766
|
+
* @implementation this content should be linked to the input with an `aria-describedby` attribute.
|
|
1767
|
+
*/
|
|
1768
|
+
details?: ComponentChildren;
|
|
1769
|
+
/**
|
|
1770
|
+
* Set to `true` to associate a choice with the error passed to `ChoiceList`
|
|
1771
|
+
*
|
|
1772
|
+
* @default false
|
|
1773
|
+
*/
|
|
1774
|
+
error?: boolean;
|
|
1775
|
+
/**
|
|
1776
|
+
* Secondary content for a choice.
|
|
1777
|
+
*/
|
|
1778
|
+
secondaryContent?: ComponentChildren;
|
|
1779
|
+
/**
|
|
1780
|
+
* Content to display when the option is selected.
|
|
1781
|
+
*
|
|
1782
|
+
* This can be used to provide additional information or options related to the choice.
|
|
1783
|
+
*/
|
|
1784
|
+
selectedContent?: ComponentChildren;
|
|
1785
|
+
}
|
|
1786
|
+
interface ChoiceListProps$1 extends GlobalProps, Pick<BasicFieldProps, "label" | "labelAccessibilityVisibility" | "error">, MultipleInputProps, FieldDetailsProps {
|
|
1787
|
+
/**
|
|
1788
|
+
* Whether multiple choices can be selected.
|
|
1789
|
+
*
|
|
1790
|
+
* @default false
|
|
1791
|
+
*/
|
|
1792
|
+
multiple?: boolean;
|
|
1793
|
+
/**
|
|
1794
|
+
* The choices a user can select from.
|
|
1795
|
+
*
|
|
1796
|
+
* Accepts `Choice` components.
|
|
1797
|
+
*/
|
|
1798
|
+
children?: ComponentChildren;
|
|
1799
|
+
/**
|
|
1800
|
+
* Disables the field, disallowing any interaction.
|
|
1801
|
+
*
|
|
1802
|
+
* `disabled` on any child choices is ignored when this is true.
|
|
1803
|
+
*
|
|
1804
|
+
* @default false
|
|
1805
|
+
*/
|
|
1806
|
+
disabled?: MultipleInputProps["disabled"];
|
|
1807
|
+
/**
|
|
1808
|
+
* The variant of the choice grid.
|
|
1809
|
+
*
|
|
1810
|
+
* - `auto`: The variant is determined by the context.
|
|
1811
|
+
* - `list`: The choices are displayed in a list.
|
|
1812
|
+
* - `inline`: The choices are displayed on the inline axis.
|
|
1813
|
+
* - `block`: The choices are displayed on the block axis.
|
|
1814
|
+
* - `grid`: The choices are displayed in a grid.
|
|
1815
|
+
*
|
|
1816
|
+
* @implementation The `block`, `inline` and `grid` variants are more suitable for button looking choices, but it's at the
|
|
1817
|
+
* discretion of each surface.
|
|
1818
|
+
*
|
|
1819
|
+
* @default 'auto'
|
|
1820
|
+
*/
|
|
1821
|
+
variant?: "auto" | "list" | "inline" | "block" | "grid";
|
|
1822
|
+
}
|
|
1637
1823
|
interface ClickableProps$1 extends GlobalProps, BaseBoxProps, BaseClickableProps {
|
|
1638
1824
|
/**
|
|
1639
1825
|
* Disables the clickable, and indicates to assistive technology that the loading is in progress.
|
|
@@ -1730,6 +1916,181 @@ interface PhoneFieldProps$1 extends GlobalProps, BaseTextFieldProps, Pick<FieldD
|
|
|
1730
1916
|
*/
|
|
1731
1917
|
type?: "mobile" | "";
|
|
1732
1918
|
}
|
|
1919
|
+
interface DatePickerProps$1 extends GlobalProps, InputProps, FocusEventProps {
|
|
1920
|
+
/**
|
|
1921
|
+
* Default month to display in `YYYY-MM` format.
|
|
1922
|
+
*
|
|
1923
|
+
* This value is used until `view` is set, either directly or as a result of user interaction.
|
|
1924
|
+
*
|
|
1925
|
+
* Defaults to the current month in the user's locale.
|
|
1926
|
+
*/
|
|
1927
|
+
defaultView?: string;
|
|
1928
|
+
/**
|
|
1929
|
+
* Displayed month in `YYYY-MM` format.
|
|
1930
|
+
*
|
|
1931
|
+
* `onViewChange` is called when this value changes.
|
|
1932
|
+
*
|
|
1933
|
+
* Defaults to `defaultView`.
|
|
1934
|
+
*/
|
|
1935
|
+
view?: string;
|
|
1936
|
+
/**
|
|
1937
|
+
* Called whenever the month to display changes.
|
|
1938
|
+
*
|
|
1939
|
+
* @param view The new month to display in `YYYY-MM` format.
|
|
1940
|
+
*/
|
|
1941
|
+
onViewChange?: (view: string) => void;
|
|
1942
|
+
/**
|
|
1943
|
+
* The type of selection the date picker allows.
|
|
1944
|
+
*
|
|
1945
|
+
* - `single` allows selecting a single date.
|
|
1946
|
+
* - `multiple` allows selecting multiple non-contiguous dates.
|
|
1947
|
+
* - `range` allows selecting a single range of dates.
|
|
1948
|
+
*
|
|
1949
|
+
* @default "single"
|
|
1950
|
+
*/
|
|
1951
|
+
type?: "single" | "multiple" | "range";
|
|
1952
|
+
/**
|
|
1953
|
+
* Dates that can be selected.
|
|
1954
|
+
*
|
|
1955
|
+
* A comma-separated list of dates, date ranges. Whitespace is allowed after commas.
|
|
1956
|
+
*
|
|
1957
|
+
* The default `''` allows all dates.
|
|
1958
|
+
*
|
|
1959
|
+
* - Dates in `YYYY-MM-DD` format allow a single date.
|
|
1960
|
+
* - Dates in `YYYY-MM` format allow a whole month.
|
|
1961
|
+
* - Dates in `YYYY` format allow a whole year.
|
|
1962
|
+
* - Ranges are expressed as `start--end`.
|
|
1963
|
+
* - Ranges are inclusive.
|
|
1964
|
+
* - If either `start` or `end` is omitted, the range is unbounded in that direction.
|
|
1965
|
+
* - If parts of the date are omitted for `start`, they are assumed to be the minimum possible value.
|
|
1966
|
+
* So `2024--` is equivalent to `2024-01-01--`.
|
|
1967
|
+
* - If parts of the date are omitted for `end`, they are assumed to be the maximum possible value.
|
|
1968
|
+
* So `--2024` is equivalent to `--2024-12-31`.
|
|
1969
|
+
* - Whitespace is allowed either side of `--`.
|
|
1970
|
+
*
|
|
1971
|
+
* @default ""
|
|
1972
|
+
*
|
|
1973
|
+
* @example
|
|
1974
|
+
* `2024-02--2025` // allow any date from February 2024 to the end of 2025
|
|
1975
|
+
* `2024-02--` // allow any date from February 2024 to the end of the month
|
|
1976
|
+
* `2024-05-09, 2024-05-11` // allow only the 9th and 11th of May 2024
|
|
1977
|
+
*/
|
|
1978
|
+
allow?: string;
|
|
1979
|
+
/**
|
|
1980
|
+
* Dates that cannot be selected. These subtract from `allow`.
|
|
1981
|
+
*
|
|
1982
|
+
* A comma-separated list of dates, date ranges. Whitespace is allowed after commas.
|
|
1983
|
+
*
|
|
1984
|
+
* The default `''` has no effect on `allow`.
|
|
1985
|
+
*
|
|
1986
|
+
* - Dates in `YYYY-MM-DD` format disallow a single date.
|
|
1987
|
+
* - Dates in `YYYY-MM` format disallow a whole month.
|
|
1988
|
+
* - Dates in `YYYY` format disallow a whole year.
|
|
1989
|
+
* - Ranges are expressed as `start--end`.
|
|
1990
|
+
* - Ranges are inclusive.
|
|
1991
|
+
* - If either `start` or `end` is omitted, the range is unbounded in that direction.
|
|
1992
|
+
* - If parts of the date are omitted for `start`, they are assumed to be the minimum possible value.
|
|
1993
|
+
* So `2024--` is equivalent to `2024-01-01--`.
|
|
1994
|
+
* - If parts of the date are omitted for `end`, they are assumed to be the maximum possible value.
|
|
1995
|
+
* So `--2024` is equivalent to `--2024-12-31`.
|
|
1996
|
+
* - Whitespace is allowed either side of `--`.
|
|
1997
|
+
*
|
|
1998
|
+
* @default ""
|
|
1999
|
+
*
|
|
2000
|
+
* @example
|
|
2001
|
+
* `--2024-02` // disallow any date before February 2024
|
|
2002
|
+
* `2024-05-09, 2024-05-11` // disallow the 9th and 11th of May 2024
|
|
2003
|
+
*/
|
|
2004
|
+
disallow?: string;
|
|
2005
|
+
/**
|
|
2006
|
+
* Days of the week that can be selected. These intersect with the result of `allow` and `disallow`.
|
|
2007
|
+
*
|
|
2008
|
+
* A comma-separated list of days. Whitespace is allowed after commas.
|
|
2009
|
+
*
|
|
2010
|
+
* The default `''` has no effect on the result of `allow` and `disallow`.
|
|
2011
|
+
*
|
|
2012
|
+
* Days are `sunday`, `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`.
|
|
2013
|
+
*
|
|
2014
|
+
* @default ""
|
|
2015
|
+
*
|
|
2016
|
+
* @example
|
|
2017
|
+
* 'saturday, sunday' // allow only weekends within the result of `allow` and `disallow`.
|
|
2018
|
+
*/
|
|
2019
|
+
allowDays?: string;
|
|
2020
|
+
/**
|
|
2021
|
+
* Days of the week that cannot be selected. This subtracts from `allowDays`, and intersects with the result of `allow` and `disallow`.
|
|
2022
|
+
*
|
|
2023
|
+
* A comma-separated list of days. Whitespace is allowed after commas.
|
|
2024
|
+
*
|
|
2025
|
+
* The default `''` has no effect on `allowDays`.
|
|
2026
|
+
*
|
|
2027
|
+
* Days are `sunday`, `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`.
|
|
2028
|
+
*
|
|
2029
|
+
* @default ""
|
|
2030
|
+
*
|
|
2031
|
+
* @example
|
|
2032
|
+
* 'saturday, sunday' // disallow weekends within the result of `allow` and `disallow`.
|
|
2033
|
+
*/
|
|
2034
|
+
disallowDays?: string;
|
|
2035
|
+
/**
|
|
2036
|
+
* Default selected value.
|
|
2037
|
+
*
|
|
2038
|
+
* The default means no date is selected.
|
|
2039
|
+
*
|
|
2040
|
+
* If the provided value is invalid, no date is selected.
|
|
2041
|
+
*
|
|
2042
|
+
* - If `type="single"`, this is a date in `YYYY-MM-DD` format.
|
|
2043
|
+
* - If `type="multiple"`, this is a comma-separated list of dates in `YYYY-MM-DD` format.
|
|
2044
|
+
* - If `type="range"`, this is a range in `YYYY-MM-DD--YYYY-MM-DD` format. The range is inclusive.
|
|
2045
|
+
*
|
|
2046
|
+
* @default ""
|
|
2047
|
+
*/
|
|
2048
|
+
defaultValue?: string;
|
|
2049
|
+
/**
|
|
2050
|
+
* Current selected value.
|
|
2051
|
+
*
|
|
2052
|
+
* The default means no date is selected.
|
|
2053
|
+
*
|
|
2054
|
+
* If the provided value is invalid, no date is selected.
|
|
2055
|
+
*
|
|
2056
|
+
* Otherwise:
|
|
2057
|
+
*
|
|
2058
|
+
* - If `type="single"`, this is a date in `YYYY-MM-DD` format.
|
|
2059
|
+
* - If `type="multiple"`, this is a comma-separated list of dates in `YYYY-MM-DD` format.
|
|
2060
|
+
* - If `type="range"`, this is a range in `YYYY-MM-DD--YYYY-MM-DD` format. The range is inclusive.
|
|
2061
|
+
*
|
|
2062
|
+
* @default ""
|
|
2063
|
+
*/
|
|
2064
|
+
value?: string;
|
|
2065
|
+
/**
|
|
2066
|
+
* Callback when any date is selected. Will fire before `onChange`.
|
|
2067
|
+
*/
|
|
2068
|
+
onInput?: (event: Event) => void;
|
|
2069
|
+
/**
|
|
2070
|
+
* Callback when the `value` is changed. For `type="single"` and `type="multiple"`, this is the same as `onInput`.
|
|
2071
|
+
* For `type="range"`, this is only called when the range is completed by selecting the end date of the range.
|
|
2072
|
+
*/
|
|
2073
|
+
onChange?: (event: Event) => void;
|
|
2074
|
+
}
|
|
2075
|
+
interface DateFieldProps$1 extends GlobalProps, BaseTextFieldProps, Pick<DatePickerProps$1, "view" | "defaultView" | "value" | "defaultValue" | "allow" | "disallow" | "allowDays" | "disallowDays" | "onViewChange">, AutocompleteProps<DateAutocompleteField> {
|
|
2076
|
+
/**
|
|
2077
|
+
* Callback when the field has an invalid date.
|
|
2078
|
+
* This callback will be called, if the date typed is invalid or disabled.
|
|
2079
|
+
*
|
|
2080
|
+
* Dates that don’t exist or have formatting errors are considered invalid. Some examples of invalid dates are:
|
|
2081
|
+
* - 2021-02-31: February doesn’t have 31 days
|
|
2082
|
+
* - 2021-02-00: The day can’t be 00
|
|
2083
|
+
*
|
|
2084
|
+
* Disallowed dates are considered invalid.
|
|
2085
|
+
*
|
|
2086
|
+
* It’s important to note that this callback will be called only when the user **finishes editing** the date,
|
|
2087
|
+
* and it’s called right after the `onChange` callback.
|
|
2088
|
+
* The field is **not** validated on every change to the input. Once the buyer has signalled that
|
|
2089
|
+
* 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.
|
|
2090
|
+
*/
|
|
2091
|
+
onInvalid?: (event: Event) => void;
|
|
2092
|
+
}
|
|
2093
|
+
export type DateAutocompleteField = ExtractStrict<AnyAutocompleteField, "bday" | "bday-day" | "bday-month" | "bday-year" | "cc-expiry" | "cc-expiry-month" | "cc-expiry-year">;
|
|
1733
2094
|
interface DetailsProps$1 extends GlobalProps, ToggleEventProps {
|
|
1734
2095
|
/**
|
|
1735
2096
|
* The content of the details.
|
|
@@ -1770,13 +2131,7 @@ interface DetailsProps$1 extends GlobalProps, ToggleEventProps {
|
|
|
1770
2131
|
}
|
|
1771
2132
|
interface DividerProps$1 extends GlobalProps {
|
|
1772
2133
|
/**
|
|
1773
|
-
* Specify the direction of the divider.
|
|
1774
|
-
*
|
|
1775
|
-
* An 'inline' divider separates blocks of content.
|
|
1776
|
-
* In a left-to-right or right-to-left writing mode, this would typically be a horizontal line.
|
|
1777
|
-
*
|
|
1778
|
-
* A 'block' divider separates items within the current line of content.
|
|
1779
|
-
* In a left-to-right or right-to-left writing mode, this would typically be a vertical line.
|
|
2134
|
+
* Specify the direction of the divider. This uses [logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values).
|
|
1780
2135
|
*
|
|
1781
2136
|
* @default 'inline'
|
|
1782
2137
|
*/
|
|
@@ -1788,16 +2143,17 @@ interface DividerProps$1 extends GlobalProps {
|
|
|
1788
2143
|
*/
|
|
1789
2144
|
color?: ColorKeyword;
|
|
1790
2145
|
}
|
|
1791
|
-
interface DropZoneProps$1 extends GlobalProps, FileInputProps
|
|
2146
|
+
interface DropZoneProps$1 extends GlobalProps, FileInputProps, BasicFieldProps {
|
|
1792
2147
|
/**
|
|
1793
|
-
* A string representing the types of files that are accepted by the
|
|
2148
|
+
* A string representing the types of files that are accepted by the drop zone.
|
|
1794
2149
|
* This string is a comma-separated list of unique file type specifiers which can be one of the following:
|
|
1795
2150
|
* - A file extension starting with a period (".") character (e.g. .jpg, .pdf, .doc)
|
|
1796
2151
|
* - A valid MIME type string with no extensions
|
|
1797
2152
|
*
|
|
1798
|
-
* If
|
|
2153
|
+
* If omitted, all file types are accepted.
|
|
1799
2154
|
*
|
|
1800
2155
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
|
|
2156
|
+
* @default ''
|
|
1801
2157
|
*/
|
|
1802
2158
|
accept?: string;
|
|
1803
2159
|
/**
|
|
@@ -1807,15 +2163,16 @@ interface DropZoneProps$1 extends GlobalProps, FileInputProps<File[]>, BasicFiel
|
|
|
1807
2163
|
*/
|
|
1808
2164
|
accessibilityLabel?: string;
|
|
1809
2165
|
/**
|
|
1810
|
-
*
|
|
2166
|
+
* Whether multiple files can be selected or dropped at once.
|
|
1811
2167
|
*
|
|
1812
2168
|
* @default false
|
|
1813
2169
|
*/
|
|
1814
2170
|
multiple?: boolean;
|
|
1815
2171
|
/**
|
|
1816
|
-
* Callback when rejected files are dropped.
|
|
2172
|
+
* Callback fired when rejected files are dropped.
|
|
2173
|
+
* Files are rejected based on the `accept` prop and are not added to `files`.
|
|
1817
2174
|
*/
|
|
1818
|
-
onDropRejected?: (
|
|
2175
|
+
onDropRejected?: (event: Event) => void;
|
|
1819
2176
|
}
|
|
1820
2177
|
interface EmailFieldProps$1 extends GlobalProps, BaseTextFieldProps, MinMaxLengthProps, AutocompleteProps<EmailAutocompleteField> {
|
|
1821
2178
|
}
|
|
@@ -1858,7 +2215,7 @@ export interface GapProps {
|
|
|
1858
2215
|
*
|
|
1859
2216
|
* @default 'none'
|
|
1860
2217
|
*/
|
|
1861
|
-
gap?: MaybeTwoValuesShorthandProperty<SpacingKeyword
|
|
2218
|
+
gap?: MaybeResponsive<MaybeTwoValuesShorthandProperty<SpacingKeyword>>;
|
|
1862
2219
|
/**
|
|
1863
2220
|
* Adjust spacing between elements in the block axis.
|
|
1864
2221
|
*
|
|
@@ -1866,7 +2223,7 @@ export interface GapProps {
|
|
|
1866
2223
|
*
|
|
1867
2224
|
* @default '' - meaning no override
|
|
1868
2225
|
*/
|
|
1869
|
-
rowGap?: SpacingKeyword | ""
|
|
2226
|
+
rowGap?: MaybeResponsive<SpacingKeyword | "">;
|
|
1870
2227
|
/**
|
|
1871
2228
|
* Adjust spacing between elements in the inline axis.
|
|
1872
2229
|
*
|
|
@@ -1874,7 +2231,7 @@ export interface GapProps {
|
|
|
1874
2231
|
*
|
|
1875
2232
|
* @default '' - meaning no override
|
|
1876
2233
|
*/
|
|
1877
|
-
columnGap?: SpacingKeyword | ""
|
|
2234
|
+
columnGap?: MaybeResponsive<SpacingKeyword | "">;
|
|
1878
2235
|
}
|
|
1879
2236
|
export type BaselinePosition = "baseline" | "first baseline" | "last baseline";
|
|
1880
2237
|
export type ContentDistribution = "space-between" | "space-around" | "space-evenly" | "stretch";
|
|
@@ -1911,14 +2268,14 @@ interface GridProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
1911
2268
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns
|
|
1912
2269
|
@default 'none'
|
|
1913
2270
|
*/
|
|
1914
|
-
gridTemplateColumns?: string
|
|
2271
|
+
gridTemplateColumns?: MaybeResponsive<string>;
|
|
1915
2272
|
/**
|
|
1916
2273
|
Define rows and specify their size.
|
|
1917
2274
|
|
|
1918
2275
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows
|
|
1919
2276
|
@default 'none'
|
|
1920
2277
|
*/
|
|
1921
|
-
gridTemplateRows?: string
|
|
2278
|
+
gridTemplateRows?: MaybeResponsive<string>;
|
|
1922
2279
|
/**
|
|
1923
2280
|
Aligns the grid items along the inline (row) axis.
|
|
1924
2281
|
|
|
@@ -1927,7 +2284,7 @@ interface GridProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
1927
2284
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items
|
|
1928
2285
|
@default '' - meaning no override
|
|
1929
2286
|
*/
|
|
1930
|
-
justifyItems?: JustifyItemsKeyword | ""
|
|
2287
|
+
justifyItems?: MaybeResponsive<JustifyItemsKeyword | "">;
|
|
1931
2288
|
/**
|
|
1932
2289
|
Aligns the grid items along the block (column) axis.
|
|
1933
2290
|
|
|
@@ -1936,14 +2293,14 @@ interface GridProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
1936
2293
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
|
|
1937
2294
|
@default '' - meaning no override
|
|
1938
2295
|
*/
|
|
1939
|
-
alignItems?: AlignItemsKeyword | ""
|
|
2296
|
+
alignItems?: MaybeResponsive<AlignItemsKeyword | "">;
|
|
1940
2297
|
/**
|
|
1941
2298
|
A shorthand property for `justify-items` and `align-items`.
|
|
1942
2299
|
|
|
1943
2300
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/place-items
|
|
1944
2301
|
@default 'normal normal'
|
|
1945
2302
|
*/
|
|
1946
|
-
placeItems?:
|
|
2303
|
+
placeItems?: MaybeResponsive<`${AlignItemsKeyword} ${JustifyItemsKeyword}` | AlignItemsKeyword>;
|
|
1947
2304
|
/**
|
|
1948
2305
|
Aligns the grid along the inline (row) axis.
|
|
1949
2306
|
|
|
@@ -1952,7 +2309,7 @@ interface GridProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
1952
2309
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
|
|
1953
2310
|
@default '' - meaning no override
|
|
1954
2311
|
*/
|
|
1955
|
-
justifyContent?: JustifyContentKeyword | ""
|
|
2312
|
+
justifyContent?: MaybeResponsive<JustifyContentKeyword | "">;
|
|
1956
2313
|
/**
|
|
1957
2314
|
Aligns the grid along the block (column) axis.
|
|
1958
2315
|
|
|
@@ -1961,14 +2318,14 @@ interface GridProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
1961
2318
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
|
|
1962
2319
|
@default '' - meaning no override
|
|
1963
2320
|
*/
|
|
1964
|
-
alignContent?: AlignContentKeyword | ""
|
|
2321
|
+
alignContent?: MaybeResponsive<AlignContentKeyword | "">;
|
|
1965
2322
|
/**
|
|
1966
2323
|
A shorthand property for `justify-content` and `align-content`.
|
|
1967
2324
|
|
|
1968
2325
|
@see https://developer.mozilla.org/en-US/docs/Web/CSS/place-content
|
|
1969
2326
|
@default 'normal normal'
|
|
1970
2327
|
*/
|
|
1971
|
-
placeContent?:
|
|
2328
|
+
placeContent?: MaybeResponsive<`${AlignContentKeyword} ${JustifyContentKeyword}` | AlignContentKeyword>;
|
|
1972
2329
|
}
|
|
1973
2330
|
interface GridItemProps$1 extends GlobalProps, BaseBoxPropsWithRole {
|
|
1974
2331
|
/**
|
|
@@ -2067,7 +2424,7 @@ interface HeadingProps$1 extends GlobalProps, AccessibilityVisibilityProps, Bloc
|
|
|
2067
2424
|
*/
|
|
2068
2425
|
accessibilityRole?: "heading" | ExtractStrict<AccessibilityRole, "presentation" | "none">;
|
|
2069
2426
|
}
|
|
2070
|
-
interface IconProps$1 extends GlobalProps {
|
|
2427
|
+
interface IconProps$1 extends GlobalProps, Pick<InteractionProps, "interestFor"> {
|
|
2071
2428
|
/**
|
|
2072
2429
|
* Sets the tone of the icon, based on the intention of the information being conveyed.
|
|
2073
2430
|
*
|
|
@@ -2361,52 +2718,6 @@ interface MapMarkerProps$1 extends GlobalProps, InteractionProps, Pick<SizingPro
|
|
|
2361
2718
|
*/
|
|
2362
2719
|
onClick?: (event: Event) => void;
|
|
2363
2720
|
}
|
|
2364
|
-
export interface BaseOverlayProps {
|
|
2365
|
-
/**
|
|
2366
|
-
* Callback fired after the overlay is shown.
|
|
2367
|
-
*/
|
|
2368
|
-
onShow?: (event: Event) => void;
|
|
2369
|
-
/**
|
|
2370
|
-
* Callback fired when the overlay is shown **after** any animations to show the overlay have finished.
|
|
2371
|
-
*/
|
|
2372
|
-
onAfterShow?: (event: Event) => void;
|
|
2373
|
-
/**
|
|
2374
|
-
* Callback fired after the overlay is hidden.
|
|
2375
|
-
*/
|
|
2376
|
-
onHide?: (event: Event) => void;
|
|
2377
|
-
/**
|
|
2378
|
-
* Callback fired when the overlay is hidden **after** any animations to hide the overlay have finished.
|
|
2379
|
-
*/
|
|
2380
|
-
onAfterHide?: (event: Event) => void;
|
|
2381
|
-
}
|
|
2382
|
-
/**
|
|
2383
|
-
* Shared interfaces for web component methods.
|
|
2384
|
-
*
|
|
2385
|
-
* Methods are required (not optional) because:
|
|
2386
|
-
* - Components implementing this interface must provide all methods
|
|
2387
|
-
* - Unlike props/attributes, methods are not rendered in HTML but are JavaScript APIs
|
|
2388
|
-
* - Consumers expect these methods to be consistently available on all instances
|
|
2389
|
-
*/
|
|
2390
|
-
export interface BaseOverlayMethods {
|
|
2391
|
-
/**
|
|
2392
|
-
* Method to show an overlay.
|
|
2393
|
-
*
|
|
2394
|
-
* @implementation This is a method to be called on the element and not a callback and should hence be camelCase
|
|
2395
|
-
*/
|
|
2396
|
-
showOverlay: () => void;
|
|
2397
|
-
/**
|
|
2398
|
-
* Method to hide an overlay.
|
|
2399
|
-
*
|
|
2400
|
-
* @implementation This is a method to be called on the element and not a callback and should hence be camelCase
|
|
2401
|
-
*/
|
|
2402
|
-
hideOverlay: () => void;
|
|
2403
|
-
/**
|
|
2404
|
-
* Method to toggle the visiblity of an overlay.
|
|
2405
|
-
*
|
|
2406
|
-
* @implementation This is a method to be called on the element and not a callback and should hence be camelCase
|
|
2407
|
-
*/
|
|
2408
|
-
toggleOverlay: () => void;
|
|
2409
|
-
}
|
|
2410
2721
|
interface ModalProps$1 extends GlobalProps, BaseOverlayProps, BaseOverlayMethods, ActionSlots {
|
|
2411
2722
|
/**
|
|
2412
2723
|
* A label that describes the purpose of the modal. When set,
|
|
@@ -2446,6 +2757,9 @@ interface ModalProps$1 extends GlobalProps, BaseOverlayProps, BaseOverlayMethods
|
|
|
2446
2757
|
*/
|
|
2447
2758
|
children?: ComponentChildren;
|
|
2448
2759
|
}
|
|
2760
|
+
interface MoneyFieldProps$1 extends GlobalProps, BaseTextFieldProps, NumberConstraintsProps, AutocompleteProps<MoneyAutocompleteField> {
|
|
2761
|
+
}
|
|
2762
|
+
export type MoneyAutocompleteField = ExtractStrict<AnyAutocompleteField, "transaction-amount">;
|
|
2449
2763
|
interface NumberFieldProps$1 extends GlobalProps, BaseTextFieldProps, AutocompleteProps<NumberAutocompleteField>, NumberConstraintsProps, FieldDecorationProps {
|
|
2450
2764
|
/**
|
|
2451
2765
|
* Sets the virtual keyboard.
|
|
@@ -2522,6 +2836,22 @@ interface PopoverProps$1 extends GlobalProps, BaseOverlayProps, BaseOverlayMetho
|
|
|
2522
2836
|
*/
|
|
2523
2837
|
children?: ComponentChildren;
|
|
2524
2838
|
}
|
|
2839
|
+
interface PressButtonProps$1 extends GlobalProps, Pick<ButtonProps$1, "accessibilityLabel" | "children" | "icon" | "inlineSize" | "lang" | "tone" | "variant" | "disabled" | "loading" | "onClick" | "onBlur" | "onFocus"> {
|
|
2840
|
+
/**
|
|
2841
|
+
* Whether the button is pressed.
|
|
2842
|
+
*
|
|
2843
|
+
* @default false
|
|
2844
|
+
*/
|
|
2845
|
+
pressed?: boolean;
|
|
2846
|
+
/**
|
|
2847
|
+
* Whether the button is pressed by default.
|
|
2848
|
+
*
|
|
2849
|
+
* @default false
|
|
2850
|
+
*
|
|
2851
|
+
* @implementation `defaultPressed` reflects to the `pressed` attribute.
|
|
2852
|
+
*/
|
|
2853
|
+
defaultPressed?: boolean;
|
|
2854
|
+
}
|
|
2525
2855
|
interface ProductThumbnailProps$1 extends GlobalProps, BaseImageProps {
|
|
2526
2856
|
/**
|
|
2527
2857
|
* Decorates the product thumbnail with the quantity of the product.
|
|
@@ -2631,6 +2961,26 @@ interface QRCodeProps$1 extends GlobalProps {
|
|
|
2631
2961
|
*/
|
|
2632
2962
|
logo?: string;
|
|
2633
2963
|
}
|
|
2964
|
+
interface QueryContainerProps$1 extends GlobalProps {
|
|
2965
|
+
/**
|
|
2966
|
+
* The content of the container.
|
|
2967
|
+
*/
|
|
2968
|
+
children?: ComponentChildren;
|
|
2969
|
+
/**
|
|
2970
|
+
* The name of the container, which can be used in your container queries to target this container specifically.
|
|
2971
|
+
*
|
|
2972
|
+
* 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`.
|
|
2973
|
+
*
|
|
2974
|
+
* 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.
|
|
2975
|
+
*
|
|
2976
|
+
* @default ''
|
|
2977
|
+
*
|
|
2978
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/container-name
|
|
2979
|
+
*
|
|
2980
|
+
* @implementation You must always have a CSS `container-name` of `s-default` for this component.
|
|
2981
|
+
*/
|
|
2982
|
+
containerName?: string;
|
|
2983
|
+
}
|
|
2634
2984
|
export type OverflowKeyword = "auto" | "hidden";
|
|
2635
2985
|
interface ScrollBoxProps$1 extends GlobalProps, Omit<BaseBoxPropsWithRole, "overflow"> {
|
|
2636
2986
|
/**
|
|
@@ -2769,34 +3119,34 @@ interface StackProps$1 extends GlobalProps, BaseBoxPropsWithRole, GapProps {
|
|
|
2769
3119
|
*/
|
|
2770
3120
|
children?: ComponentChildren;
|
|
2771
3121
|
/**
|
|
2772
|
-
* Sets how the children are placed within the Stack.
|
|
3122
|
+
* 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).
|
|
2773
3123
|
*
|
|
2774
3124
|
* @default 'block'
|
|
2775
3125
|
*
|
|
2776
3126
|
* @implementation the content will wrap if the direction is 'inline', and not wrap if the direction is 'block'
|
|
2777
3127
|
*/
|
|
2778
|
-
direction?: "block" | "inline"
|
|
3128
|
+
direction?: MaybeResponsive<"block" | "inline">;
|
|
2779
3129
|
/**
|
|
2780
3130
|
* Aligns the Stack along the main axis.
|
|
2781
3131
|
*
|
|
2782
3132
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
|
|
2783
3133
|
* @default 'normal'
|
|
2784
3134
|
*/
|
|
2785
|
-
justifyContent?: JustifyContentKeyword
|
|
3135
|
+
justifyContent?: MaybeResponsive<JustifyContentKeyword>;
|
|
2786
3136
|
/**
|
|
2787
3137
|
* Aligns the Stack's children along the cross axis.
|
|
2788
3138
|
*
|
|
2789
3139
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
|
|
2790
3140
|
* @default 'normal'
|
|
2791
3141
|
*/
|
|
2792
|
-
alignItems?: AlignItemsKeyword
|
|
3142
|
+
alignItems?: MaybeResponsive<AlignItemsKeyword>;
|
|
2793
3143
|
/**
|
|
2794
3144
|
* Aligns the Stack along the cross axis.
|
|
2795
3145
|
*
|
|
2796
3146
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
|
|
2797
3147
|
* @default 'normal'
|
|
2798
3148
|
*/
|
|
2799
|
-
alignContent?: AlignContentKeyword
|
|
3149
|
+
alignContent?: MaybeResponsive<AlignContentKeyword>;
|
|
2800
3150
|
}
|
|
2801
3151
|
interface SummaryProps$1 extends GlobalProps {
|
|
2802
3152
|
/**
|
|
@@ -2816,7 +3166,7 @@ interface SummaryProps$1 extends GlobalProps {
|
|
|
2816
3166
|
}
|
|
2817
3167
|
interface SwitchProps$1 extends GlobalProps, BaseCheckableProps, BasicFieldProps, FieldDetailsProps, FieldErrorProps {
|
|
2818
3168
|
}
|
|
2819
|
-
interface TextProps$1 extends GlobalProps, AccessibilityVisibilityProps, BaseTypographyProps, DisplayProps {
|
|
3169
|
+
interface TextProps$1 extends GlobalProps, AccessibilityVisibilityProps, BaseTypographyProps, DisplayProps, Pick<InteractionProps, "interestFor"> {
|
|
2820
3170
|
/**
|
|
2821
3171
|
* The content of the Text.
|
|
2822
3172
|
*/
|
|
@@ -2824,7 +3174,7 @@ interface TextProps$1 extends GlobalProps, AccessibilityVisibilityProps, BaseTyp
|
|
|
2824
3174
|
/**
|
|
2825
3175
|
* Provide semantic meaning and default styling to the text.
|
|
2826
3176
|
*
|
|
2827
|
-
* Other presentation properties on
|
|
3177
|
+
* Other presentation properties on Text override the default styling.
|
|
2828
3178
|
*
|
|
2829
3179
|
* @default 'generic'
|
|
2830
3180
|
*/
|
|
@@ -2938,6 +3288,12 @@ interface TimeProps$1 extends GlobalProps {
|
|
|
2938
3288
|
*/
|
|
2939
3289
|
dateTime?: string;
|
|
2940
3290
|
}
|
|
3291
|
+
interface TooltipProps$1 extends GlobalProps {
|
|
3292
|
+
/**
|
|
3293
|
+
* The content of the Tooltip.
|
|
3294
|
+
*/
|
|
3295
|
+
children?: ComponentChildren;
|
|
3296
|
+
}
|
|
2941
3297
|
interface UnorderedListProps$1 extends GlobalProps {
|
|
2942
3298
|
}
|
|
2943
3299
|
export interface URLFieldProps extends GlobalProps, BaseTextFieldProps, MinMaxLengthProps, AutocompleteProps<URLAutocompleteField> {
|