@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
|
@@ -26,20 +26,19 @@ import "../components/Map.d.ts";
|
|
|
26
26
|
import "../components/MapMarker.d.ts";
|
|
27
27
|
import "../components/Menu.d.ts";
|
|
28
28
|
import "../components/Modal.d.ts";
|
|
29
|
-
import "../components/
|
|
30
|
-
import "../components/Option.d.ts";
|
|
29
|
+
import "../components/MoneyField.d.ts";
|
|
31
30
|
import "../components/OrderedList.d.ts";
|
|
32
31
|
import "../components/Page.d.ts";
|
|
33
32
|
import "../components/Paragraph.d.ts";
|
|
34
33
|
import "../components/PaymentIcon.d.ts";
|
|
35
34
|
import "../components/PhoneField.d.ts";
|
|
36
35
|
import "../components/Popover.d.ts";
|
|
36
|
+
import "../components/PressButton.d.ts";
|
|
37
37
|
import "../components/ProductThumbnail.d.ts";
|
|
38
38
|
import "../components/Progress.d.ts";
|
|
39
39
|
import "../components/QRCode.d.ts";
|
|
40
40
|
import "../components/ScrollBox.d.ts";
|
|
41
41
|
import "../components/Section.d.ts";
|
|
42
|
-
import "../components/Select.d.ts";
|
|
43
42
|
import "../components/Sheet.d.ts";
|
|
44
43
|
import "../components/SkeletonParagraph.d.ts";
|
|
45
44
|
import "../components/Spinner.d.ts";
|
|
@@ -50,8 +49,8 @@ import "../components/Text.d.ts";
|
|
|
50
49
|
import "../components/TextArea.d.ts";
|
|
51
50
|
import "../components/TextField.d.ts";
|
|
52
51
|
import "../components/Time.d.ts";
|
|
52
|
+
import "../components/Tooltip.d.ts";
|
|
53
53
|
import "../components/UnorderedList.d.ts";
|
|
54
|
-
import "../components/UrlField.d.ts";
|
|
55
54
|
import type { ExtensionTargets } from '../extension-targets';
|
|
56
55
|
import '../globals';
|
|
57
56
|
|
|
@@ -26,20 +26,19 @@ import "../components/Map.d.ts";
|
|
|
26
26
|
import "../components/MapMarker.d.ts";
|
|
27
27
|
import "../components/Menu.d.ts";
|
|
28
28
|
import "../components/Modal.d.ts";
|
|
29
|
-
import "../components/
|
|
30
|
-
import "../components/Option.d.ts";
|
|
29
|
+
import "../components/MoneyField.d.ts";
|
|
31
30
|
import "../components/OrderedList.d.ts";
|
|
32
31
|
import "../components/Page.d.ts";
|
|
33
32
|
import "../components/Paragraph.d.ts";
|
|
34
33
|
import "../components/PaymentIcon.d.ts";
|
|
35
34
|
import "../components/PhoneField.d.ts";
|
|
36
35
|
import "../components/Popover.d.ts";
|
|
36
|
+
import "../components/PressButton.d.ts";
|
|
37
37
|
import "../components/ProductThumbnail.d.ts";
|
|
38
38
|
import "../components/Progress.d.ts";
|
|
39
39
|
import "../components/QRCode.d.ts";
|
|
40
40
|
import "../components/ScrollBox.d.ts";
|
|
41
41
|
import "../components/Section.d.ts";
|
|
42
|
-
import "../components/Select.d.ts";
|
|
43
42
|
import "../components/Sheet.d.ts";
|
|
44
43
|
import "../components/SkeletonParagraph.d.ts";
|
|
45
44
|
import "../components/Spinner.d.ts";
|
|
@@ -50,8 +49,8 @@ import "../components/Text.d.ts";
|
|
|
50
49
|
import "../components/TextArea.d.ts";
|
|
51
50
|
import "../components/TextField.d.ts";
|
|
52
51
|
import "../components/Time.d.ts";
|
|
52
|
+
import "../components/Tooltip.d.ts";
|
|
53
53
|
import "../components/UnorderedList.d.ts";
|
|
54
|
-
import "../components/UrlField.d.ts";
|
|
55
54
|
import type { ExtensionTargets } from '../extension-targets';
|
|
56
55
|
import '../globals';
|
|
57
56
|
|
|
@@ -26,20 +26,19 @@ import "../components/Map.d.ts";
|
|
|
26
26
|
import "../components/MapMarker.d.ts";
|
|
27
27
|
import "../components/Menu.d.ts";
|
|
28
28
|
import "../components/Modal.d.ts";
|
|
29
|
-
import "../components/
|
|
30
|
-
import "../components/Option.d.ts";
|
|
29
|
+
import "../components/MoneyField.d.ts";
|
|
31
30
|
import "../components/OrderedList.d.ts";
|
|
32
31
|
import "../components/Page.d.ts";
|
|
33
32
|
import "../components/Paragraph.d.ts";
|
|
34
33
|
import "../components/PaymentIcon.d.ts";
|
|
35
34
|
import "../components/PhoneField.d.ts";
|
|
36
35
|
import "../components/Popover.d.ts";
|
|
36
|
+
import "../components/PressButton.d.ts";
|
|
37
37
|
import "../components/ProductThumbnail.d.ts";
|
|
38
38
|
import "../components/Progress.d.ts";
|
|
39
39
|
import "../components/QRCode.d.ts";
|
|
40
40
|
import "../components/ScrollBox.d.ts";
|
|
41
41
|
import "../components/Section.d.ts";
|
|
42
|
-
import "../components/Select.d.ts";
|
|
43
42
|
import "../components/Sheet.d.ts";
|
|
44
43
|
import "../components/SkeletonParagraph.d.ts";
|
|
45
44
|
import "../components/Spinner.d.ts";
|
|
@@ -50,8 +49,8 @@ import "../components/Text.d.ts";
|
|
|
50
49
|
import "../components/TextArea.d.ts";
|
|
51
50
|
import "../components/TextField.d.ts";
|
|
52
51
|
import "../components/Time.d.ts";
|
|
52
|
+
import "../components/Tooltip.d.ts";
|
|
53
53
|
import "../components/UnorderedList.d.ts";
|
|
54
|
-
import "../components/UrlField.d.ts";
|
|
55
54
|
import type { ExtensionTargets } from '../extension-targets';
|
|
56
55
|
import '../globals';
|
|
57
56
|
|
|
@@ -26,20 +26,19 @@ import "../components/Map.d.ts";
|
|
|
26
26
|
import "../components/MapMarker.d.ts";
|
|
27
27
|
import "../components/Menu.d.ts";
|
|
28
28
|
import "../components/Modal.d.ts";
|
|
29
|
-
import "../components/
|
|
30
|
-
import "../components/Option.d.ts";
|
|
29
|
+
import "../components/MoneyField.d.ts";
|
|
31
30
|
import "../components/OrderedList.d.ts";
|
|
32
31
|
import "../components/Page.d.ts";
|
|
33
32
|
import "../components/Paragraph.d.ts";
|
|
34
33
|
import "../components/PaymentIcon.d.ts";
|
|
35
34
|
import "../components/PhoneField.d.ts";
|
|
36
35
|
import "../components/Popover.d.ts";
|
|
36
|
+
import "../components/PressButton.d.ts";
|
|
37
37
|
import "../components/ProductThumbnail.d.ts";
|
|
38
38
|
import "../components/Progress.d.ts";
|
|
39
39
|
import "../components/QRCode.d.ts";
|
|
40
40
|
import "../components/ScrollBox.d.ts";
|
|
41
41
|
import "../components/Section.d.ts";
|
|
42
|
-
import "../components/Select.d.ts";
|
|
43
42
|
import "../components/Sheet.d.ts";
|
|
44
43
|
import "../components/SkeletonParagraph.d.ts";
|
|
45
44
|
import "../components/Spinner.d.ts";
|
|
@@ -50,8 +49,8 @@ import "../components/Text.d.ts";
|
|
|
50
49
|
import "../components/TextArea.d.ts";
|
|
51
50
|
import "../components/TextField.d.ts";
|
|
52
51
|
import "../components/Time.d.ts";
|
|
52
|
+
import "../components/Tooltip.d.ts";
|
|
53
53
|
import "../components/UnorderedList.d.ts";
|
|
54
|
-
import "../components/UrlField.d.ts";
|
|
55
54
|
import type { ExtensionTargets } from '../extension-targets';
|
|
56
55
|
import '../globals';
|
|
57
56
|
|
|
@@ -26,20 +26,19 @@ import "../components/Map.d.ts";
|
|
|
26
26
|
import "../components/MapMarker.d.ts";
|
|
27
27
|
import "../components/Menu.d.ts";
|
|
28
28
|
import "../components/Modal.d.ts";
|
|
29
|
-
import "../components/
|
|
30
|
-
import "../components/Option.d.ts";
|
|
29
|
+
import "../components/MoneyField.d.ts";
|
|
31
30
|
import "../components/OrderedList.d.ts";
|
|
32
31
|
import "../components/Page.d.ts";
|
|
33
32
|
import "../components/Paragraph.d.ts";
|
|
34
33
|
import "../components/PaymentIcon.d.ts";
|
|
35
34
|
import "../components/PhoneField.d.ts";
|
|
36
35
|
import "../components/Popover.d.ts";
|
|
36
|
+
import "../components/PressButton.d.ts";
|
|
37
37
|
import "../components/ProductThumbnail.d.ts";
|
|
38
38
|
import "../components/Progress.d.ts";
|
|
39
39
|
import "../components/QRCode.d.ts";
|
|
40
40
|
import "../components/ScrollBox.d.ts";
|
|
41
41
|
import "../components/Section.d.ts";
|
|
42
|
-
import "../components/Select.d.ts";
|
|
43
42
|
import "../components/Sheet.d.ts";
|
|
44
43
|
import "../components/SkeletonParagraph.d.ts";
|
|
45
44
|
import "../components/Spinner.d.ts";
|
|
@@ -50,8 +49,8 @@ import "../components/Text.d.ts";
|
|
|
50
49
|
import "../components/TextArea.d.ts";
|
|
51
50
|
import "../components/TextField.d.ts";
|
|
52
51
|
import "../components/Time.d.ts";
|
|
52
|
+
import "../components/Tooltip.d.ts";
|
|
53
53
|
import "../components/UnorderedList.d.ts";
|
|
54
|
-
import "../components/UrlField.d.ts";
|
|
55
54
|
import type { ExtensionTargets } from '../extension-targets';
|
|
56
55
|
import '../globals';
|
|
57
56
|
|
|
@@ -33,12 +33,21 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
declare const tagName = 's-banner';
|
|
36
|
-
export interface BannerJSXProps
|
|
37
|
-
|
|
36
|
+
export interface BannerJSXProps extends Pick<BannerProps, 'heading' | 'id'> {
|
|
37
|
+
/**
|
|
38
|
+
* Determines whether the banner is hidden.
|
|
39
|
+
*/
|
|
40
|
+
hidden?: BannerProps['hidden'];
|
|
41
|
+
/**
|
|
42
|
+
* Sets the tone of the Banner, based on the intention of the information being conveyed.
|
|
43
|
+
*/
|
|
38
44
|
tone?: Extract<
|
|
39
45
|
BannerProps['tone'],
|
|
40
46
|
'success' | 'info' | 'warning' | 'critical'
|
|
41
47
|
>;
|
|
48
|
+
/**
|
|
49
|
+
* The action taken when the Banner is pressed.
|
|
50
|
+
*/
|
|
42
51
|
primaryAction?: ComponentChild;
|
|
43
52
|
children?: ComponentChildren;
|
|
44
53
|
}
|
|
@@ -38,14 +38,39 @@ export interface CallbackEvent<T extends keyof HTMLElementTagNameMap> {
|
|
|
38
38
|
|
|
39
39
|
declare const tagName = 's-button';
|
|
40
40
|
export interface ButtonJSXProps
|
|
41
|
-
extends Pick<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
extends Pick<ButtonProps, 'disabled' | 'command' | 'commandFor' | 'loading'> {
|
|
42
|
+
/**
|
|
43
|
+
* Sets the action the `commandFor` should take when this clickable is activated.
|
|
44
|
+
*
|
|
45
|
+
* See the documentation of particular components for the actions they support.
|
|
46
|
+
*
|
|
47
|
+
* - `--auto`: a default action for the target component.
|
|
48
|
+
* - `--show`: shows the target component.
|
|
49
|
+
* - `--hide`: hides the target component.
|
|
50
|
+
* - `--toggle`: toggles the target component.
|
|
51
|
+
*
|
|
52
|
+
* @default '--auto'
|
|
53
|
+
*
|
|
54
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#command
|
|
55
|
+
*/
|
|
56
|
+
command?: Extract<
|
|
57
|
+
ButtonProps['command'],
|
|
58
|
+
'--auto' | '--show' | '--hide' | '--toggle'
|
|
59
|
+
>;
|
|
60
|
+
/**
|
|
61
|
+
* Sets the tone of the Button, based on the intention of the information being conveyed.
|
|
62
|
+
*
|
|
63
|
+
* @default 'auto'
|
|
64
|
+
*/
|
|
45
65
|
tone?: Extract<
|
|
46
66
|
ButtonProps['tone'],
|
|
47
67
|
'auto' | 'critical' | 'neutral' | 'warning' | 'caution'
|
|
48
68
|
>;
|
|
69
|
+
/**
|
|
70
|
+
* Changes the visual appearance of the Button.
|
|
71
|
+
*
|
|
72
|
+
* @default 'auto' - the variant is automatically determined by the Button's context
|
|
73
|
+
*/
|
|
49
74
|
variant?: Extract<ButtonProps['variant'], 'primary' | 'secondary'>;
|
|
50
75
|
onClick?: (event: CallbackEvent<typeof tagName>) => void;
|
|
51
76
|
children?: ComponentChildren;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/* eslint-disable import-x/namespace */
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
10
|
/// <reference lib="DOM" />
|
|
11
|
-
import type {Key, Ref} from './components-shared.d.ts';
|
|
11
|
+
import type {DividerProps, Key, Ref} from './components-shared.d.ts';
|
|
12
12
|
|
|
13
13
|
export type ComponentChildren = any;
|
|
14
14
|
/**
|
|
@@ -27,24 +27,21 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
|
27
27
|
children?: ComponentChildren;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
declare const tagName = 's-
|
|
31
|
-
export interface
|
|
32
|
-
initialScreenName?: string;
|
|
33
|
-
children?: React.ReactNode;
|
|
34
|
-
}
|
|
30
|
+
declare const tagName = 's-divider';
|
|
31
|
+
export interface DividerJSXProps extends Pick<DividerProps, 'direction'> {}
|
|
35
32
|
declare global {
|
|
36
33
|
interface HTMLElementTagNameMap {
|
|
37
|
-
[tagName]:
|
|
34
|
+
[tagName]: DividerJSXProps;
|
|
38
35
|
}
|
|
39
36
|
}
|
|
40
37
|
declare module 'preact' {
|
|
41
38
|
namespace createElement.JSX {
|
|
42
39
|
interface IntrinsicElements {
|
|
43
|
-
[tagName]:
|
|
44
|
-
BaseElementPropsWithChildren<
|
|
40
|
+
[tagName]: DividerJSXProps &
|
|
41
|
+
BaseElementPropsWithChildren<DividerJSXProps>;
|
|
45
42
|
}
|
|
46
43
|
}
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
export {tagName};
|
|
50
|
-
export type {
|
|
47
|
+
export type {DividerJSXProps};
|
|
@@ -35,12 +35,12 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
|
35
35
|
declare const tagName = 's-page';
|
|
36
36
|
export type PickedProps = Pick<
|
|
37
37
|
PageProps,
|
|
38
|
-
'heading' | 'subheading' | 'secondaryActions'
|
|
38
|
+
'heading' | 'subheading' | 'secondaryActions' | 'aside'
|
|
39
39
|
>;
|
|
40
40
|
export interface PageJSXProps extends PickedProps {
|
|
41
41
|
children?: ComponentChildren;
|
|
42
42
|
secondaryActions?: ComponentChild;
|
|
43
|
-
|
|
43
|
+
aside?: ComponentChild;
|
|
44
44
|
}
|
|
45
45
|
declare global {
|
|
46
46
|
interface HTMLElementTagNameMap {
|
|
@@ -50,9 +50,9 @@ declare global {
|
|
|
50
50
|
declare module 'preact' {
|
|
51
51
|
namespace createElement.JSX {
|
|
52
52
|
interface IntrinsicElements {
|
|
53
|
-
[tagName]: Omit<PageJSXProps, '
|
|
53
|
+
[tagName]: Omit<PageJSXProps, 'secondaryActions' | 'aside'> &
|
|
54
54
|
BaseElementPropsWithChildren<
|
|
55
|
-
Omit<PageJSXProps, '
|
|
55
|
+
Omit<PageJSXProps, 'secondaryActions' | 'aside'>
|
|
56
56
|
>;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** VERSION: undefined **/
|
|
2
|
+
/* eslint-disable import-x/extensions */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
|
+
/* eslint-disable line-comment-position */
|
|
6
|
+
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
|
+
/* eslint-disable no-var */
|
|
8
|
+
/* eslint-disable import-x/namespace */
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
|
+
/// <reference lib="DOM" />
|
|
11
|
+
import type {Key, Ref} from './components-shared.d.ts';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Used when an element does not have children.
|
|
15
|
+
*/
|
|
16
|
+
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
+
key?: Key;
|
|
18
|
+
ref?: Ref<TClass>;
|
|
19
|
+
slot?: Lowercase<string>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare const tagName = 's-qr-code';
|
|
23
|
+
export interface QrCodeJSXProps {
|
|
24
|
+
/**
|
|
25
|
+
* The value to encode in the QR code
|
|
26
|
+
*/
|
|
27
|
+
content: string;
|
|
28
|
+
}
|
|
29
|
+
declare global {
|
|
30
|
+
interface HTMLElementTagNameMap {
|
|
31
|
+
[tagName]: QrCodeJSXProps;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
declare module 'preact' {
|
|
35
|
+
namespace createElement.JSX {
|
|
36
|
+
interface IntrinsicElements {
|
|
37
|
+
[tagName]: QrCodeJSXProps & BaseElementProps<QrCodeJSXProps>;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export {tagName};
|
|
43
|
+
export type {QrCodeJSXProps};
|
|
@@ -8,7 +8,14 @@
|
|
|
8
8
|
/* eslint-disable import-x/namespace */
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
10
|
/// <reference lib="DOM" />
|
|
11
|
-
import type {
|
|
11
|
+
import type {
|
|
12
|
+
ScrollBoxProps,
|
|
13
|
+
MaybeAllValuesShorthandProperty,
|
|
14
|
+
MaybeTwoValuesShorthandProperty,
|
|
15
|
+
SizeKeyword,
|
|
16
|
+
Key,
|
|
17
|
+
Ref,
|
|
18
|
+
} from './components-shared.d.ts';
|
|
12
19
|
|
|
13
20
|
export type ComponentChildren = any;
|
|
14
21
|
/**
|
|
@@ -27,8 +34,92 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
|
27
34
|
children?: ComponentChildren;
|
|
28
35
|
}
|
|
29
36
|
|
|
37
|
+
export type PaddingKeyword = SizeKeyword | 'none';
|
|
30
38
|
declare const tagName = 's-scroll-box';
|
|
31
|
-
export interface ScrollBoxJSXProps
|
|
39
|
+
export interface ScrollBoxJSXProps
|
|
40
|
+
extends Pick<
|
|
41
|
+
ScrollBoxProps,
|
|
42
|
+
| 'id'
|
|
43
|
+
| 'blockSize'
|
|
44
|
+
| 'minBlockSize'
|
|
45
|
+
| 'maxBlockSize'
|
|
46
|
+
| 'inlineSize'
|
|
47
|
+
| 'minInlineSize'
|
|
48
|
+
| 'maxInlineSize'
|
|
49
|
+
> {
|
|
50
|
+
/**
|
|
51
|
+
* Adjust the padding of all edges.
|
|
52
|
+
*
|
|
53
|
+
* [1-to-4-value syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box) is
|
|
54
|
+
* supported. Note that, contrary to the CSS, it uses flow-relative values and the order is:
|
|
55
|
+
*
|
|
56
|
+
* - 4 values: `block-start inline-end block-end inline-start`
|
|
57
|
+
* - 3 values: `block-start inline block-end`
|
|
58
|
+
* - 2 values: `block inline`
|
|
59
|
+
*
|
|
60
|
+
* For example:
|
|
61
|
+
* - `large` means block-start, inline-end, block-end and inline-start paddings are `large`.
|
|
62
|
+
* - `large none` means block-start and block-end paddings are `large`, inline-start and inline-end paddings are `none`.
|
|
63
|
+
* - `large none large` means block-start padding is `large`, inline-end padding is `none`, block-end padding is `large` and inline-start padding is `none`.
|
|
64
|
+
* - `large none large small` means block-start padding is `large`, inline-end padding is `none`, block-end padding is `large` and inline-start padding is `small`.
|
|
65
|
+
*
|
|
66
|
+
* A padding value of `auto` will use the default padding for the closest container that has had its usual padding removed.
|
|
67
|
+
*
|
|
68
|
+
* @default 'none'
|
|
69
|
+
*/
|
|
70
|
+
padding?: MaybeAllValuesShorthandProperty<PaddingKeyword>;
|
|
71
|
+
/**
|
|
72
|
+
* Adjust the block-padding.
|
|
73
|
+
*
|
|
74
|
+
* - `large none` means block-start padding is `large`, block-end padding is `none`.
|
|
75
|
+
*
|
|
76
|
+
* This overrides the block value of `padding`.
|
|
77
|
+
*
|
|
78
|
+
* @default '' - meaning no override
|
|
79
|
+
*/
|
|
80
|
+
paddingBlock?: MaybeTwoValuesShorthandProperty<PaddingKeyword | ''>;
|
|
81
|
+
/**
|
|
82
|
+
* Adjust the block-start padding.
|
|
83
|
+
*
|
|
84
|
+
* This overrides the block-start value of `paddingBlock`.
|
|
85
|
+
*
|
|
86
|
+
* @default '' - meaning no override
|
|
87
|
+
*/
|
|
88
|
+
paddingBlockStart?: PaddingKeyword | '';
|
|
89
|
+
/**
|
|
90
|
+
* Adjust the block-end padding.
|
|
91
|
+
*
|
|
92
|
+
* This overrides the block-end value of `paddingBlock`.
|
|
93
|
+
*
|
|
94
|
+
* @default '' - meaning no override
|
|
95
|
+
*/
|
|
96
|
+
paddingBlockEnd?: PaddingKeyword | '';
|
|
97
|
+
/**
|
|
98
|
+
* Adjust the inline padding.
|
|
99
|
+
*
|
|
100
|
+
* - `large none` means inline-start padding is `large`, inline-end padding is `none`.
|
|
101
|
+
*
|
|
102
|
+
* This overrides the inline value of `padding`.
|
|
103
|
+
*
|
|
104
|
+
* @default '' - meaning no override
|
|
105
|
+
*/
|
|
106
|
+
paddingInline?: MaybeTwoValuesShorthandProperty<PaddingKeyword | ''>;
|
|
107
|
+
/**
|
|
108
|
+
* Adjust the inline-start padding.
|
|
109
|
+
*
|
|
110
|
+
* This overrides the inline-start value of `paddingInline`.
|
|
111
|
+
*
|
|
112
|
+
* @default '' - meaning no override
|
|
113
|
+
*/
|
|
114
|
+
paddingInlineStart?: PaddingKeyword | '';
|
|
115
|
+
/**
|
|
116
|
+
* Adjust the inline-end padding.
|
|
117
|
+
*
|
|
118
|
+
* This overrides the inline-end value of `paddingInline`.
|
|
119
|
+
*
|
|
120
|
+
* @default '' - meaning no override
|
|
121
|
+
*/
|
|
122
|
+
paddingInlineEnd?: PaddingKeyword | '';
|
|
32
123
|
children?: ComponentChildren;
|
|
33
124
|
}
|
|
34
125
|
declare global {
|
|
@@ -2143,6 +2143,20 @@ export interface DateSpinnerProps
|
|
|
2143
2143
|
*/
|
|
2144
2144
|
onChange?: (event: Event) => void;
|
|
2145
2145
|
}
|
|
2146
|
+
export interface DividerProps extends GlobalProps {
|
|
2147
|
+
/**
|
|
2148
|
+
* Specify the direction of the divider. This uses [logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values).
|
|
2149
|
+
*
|
|
2150
|
+
* @default 'inline'
|
|
2151
|
+
*/
|
|
2152
|
+
direction?: 'inline' | 'block';
|
|
2153
|
+
/**
|
|
2154
|
+
* Modify the color to be more or less intense.
|
|
2155
|
+
*
|
|
2156
|
+
* @default 'base'
|
|
2157
|
+
*/
|
|
2158
|
+
color?: ColorKeyword;
|
|
2159
|
+
}
|
|
2146
2160
|
export interface EmailFieldProps
|
|
2147
2161
|
extends GlobalProps,
|
|
2148
2162
|
BaseTextFieldProps,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type ReceiptComponents = '
|
|
1
|
+
export type ReceiptComponents = 'PosBlock' | 'Text' | 'QrCode';
|
|
2
2
|
//# sourceMappingURL=ReceiptComponents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReceiptComponents.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/targets/ReceiptComponents.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,
|
|
1
|
+
{"version":3,"file":"ReceiptComponents.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/targets/ReceiptComponents.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC"}
|