@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
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/** VERSION: 0.0.0 **/
|
|
2
|
-
/* eslint-disable import-x/extensions */
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
-
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
|
-
/* eslint-disable line-comment-position */
|
|
6
|
-
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
|
-
/* eslint-disable no-var */
|
|
8
|
-
/* eslint-disable import-x/namespace */
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
|
-
/// <reference lib="DOM" />
|
|
11
|
-
import type {NumberFieldProps$1} from './components-shared.d.ts';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Used when an element does not have children.
|
|
15
|
-
*/
|
|
16
|
-
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
-
key?: preact.Key;
|
|
18
|
-
ref?: preact.Ref<TClass>;
|
|
19
|
-
slot?: Lowercase<string>;
|
|
20
|
-
}
|
|
21
|
-
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
22
|
-
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
23
|
-
};
|
|
24
|
-
export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = (EventListener & {
|
|
25
|
-
(event: CallbackEvent<TTagName, TEvent>): void;
|
|
26
|
-
}) | null;
|
|
27
|
-
|
|
28
|
-
declare const tagName = "s-number-field";
|
|
29
|
-
export interface NumberFieldElementProps extends Pick<NumberFieldProps$1, 'accessory' | 'autocomplete' | 'controls' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'icon' | 'id' | 'inputMode' | 'label' | 'labelAccessibilityVisibility' | 'max' | 'min' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'prefix' | 'readOnly' | 'required' | 'step' | 'suffix' | 'value'> {
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Use `label` instead.
|
|
32
|
-
* @private
|
|
33
|
-
*/
|
|
34
|
-
placeholder?: string;
|
|
35
|
-
}
|
|
36
|
-
export interface NumberFieldEvents extends Pick<NumberFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
37
|
-
}
|
|
38
|
-
export interface NumberFieldElementEvents {
|
|
39
|
-
/**
|
|
40
|
-
* Callback when the element loses focus.
|
|
41
|
-
*
|
|
42
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
43
|
-
*/
|
|
44
|
-
blur?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
45
|
-
/**
|
|
46
|
-
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
47
|
-
*
|
|
48
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
|
|
49
|
-
*/
|
|
50
|
-
change?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
51
|
-
/**
|
|
52
|
-
* Callback when the element receives focus.
|
|
53
|
-
*
|
|
54
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
55
|
-
*/
|
|
56
|
-
focus?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
57
|
-
/**
|
|
58
|
-
* Callback when the user makes any changes in the field.
|
|
59
|
-
*
|
|
60
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
|
|
61
|
-
*/
|
|
62
|
-
input?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
63
|
-
}
|
|
64
|
-
export interface NumberFieldElement extends NumberFieldElementProps, Omit<HTMLElement, 'id' | 'inputMode' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
65
|
-
onblur: NumberFieldEvents['onBlur'];
|
|
66
|
-
onchange: NumberFieldEvents['onChange'];
|
|
67
|
-
onfocus: NumberFieldEvents['onFocus'];
|
|
68
|
-
oninput: NumberFieldEvents['onInput'];
|
|
69
|
-
}
|
|
70
|
-
export interface NumberFieldProps extends NumberFieldElementProps, NumberFieldEvents {
|
|
71
|
-
}
|
|
72
|
-
declare global {
|
|
73
|
-
interface HTMLElementTagNameMap {
|
|
74
|
-
[tagName]: NumberFieldElement;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
declare module 'preact' {
|
|
78
|
-
namespace createElement.JSX {
|
|
79
|
-
interface IntrinsicElements {
|
|
80
|
-
[tagName]: NumberFieldProps & BaseElementProps<NumberFieldElement>;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export type { NumberFieldElement, NumberFieldElementEvents, NumberFieldElementProps, NumberFieldEvents, NumberFieldProps };
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/** VERSION: 0.0.0 **/
|
|
2
|
-
/* eslint-disable import-x/extensions */
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
-
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
|
-
/* eslint-disable line-comment-position */
|
|
6
|
-
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
|
-
/* eslint-disable no-var */
|
|
8
|
-
/* eslint-disable import-x/namespace */
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
|
-
/// <reference lib="DOM" />
|
|
11
|
-
import type {PasswordFieldProps$1} from './components-shared.d.ts';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Used when an element does not have children.
|
|
15
|
-
*/
|
|
16
|
-
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
-
key?: preact.Key;
|
|
18
|
-
ref?: preact.Ref<TClass>;
|
|
19
|
-
slot?: Lowercase<string>;
|
|
20
|
-
}
|
|
21
|
-
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
22
|
-
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
23
|
-
};
|
|
24
|
-
export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = (EventListener & {
|
|
25
|
-
(event: CallbackEvent<TTagName, TEvent>): void;
|
|
26
|
-
}) | null;
|
|
27
|
-
|
|
28
|
-
declare const tagName = "s-password-field";
|
|
29
|
-
export interface PasswordFieldElementProps extends Pick<PasswordFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'maxLength'
|
|
30
|
-
/** @todo: implement `minLength` */
|
|
31
|
-
| 'name'
|
|
32
|
-
/** @todo: implement `placeholder` */
|
|
33
|
-
| 'readOnly' | 'required' | 'value'> {
|
|
34
|
-
}
|
|
35
|
-
export interface PasswordFieldEvents extends Pick<PasswordFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
36
|
-
}
|
|
37
|
-
export interface PasswordFieldElementEvents {
|
|
38
|
-
/**
|
|
39
|
-
* Callback when the element loses focus.
|
|
40
|
-
*
|
|
41
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
42
|
-
*/
|
|
43
|
-
blur?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
44
|
-
/**
|
|
45
|
-
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
46
|
-
*
|
|
47
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
|
|
48
|
-
*/
|
|
49
|
-
change?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
50
|
-
/**
|
|
51
|
-
* Callback when the element receives focus.
|
|
52
|
-
*
|
|
53
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
54
|
-
*/
|
|
55
|
-
focus?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
56
|
-
/**
|
|
57
|
-
* Callback when the user makes any changes in the field.
|
|
58
|
-
*
|
|
59
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
|
|
60
|
-
*/
|
|
61
|
-
input?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
62
|
-
}
|
|
63
|
-
export interface PasswordFieldElement extends PasswordFieldProps, Omit<HTMLElement, 'id' | 'inputMode' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
64
|
-
onblur: PasswordFieldEvents['onBlur'];
|
|
65
|
-
onchange: PasswordFieldEvents['onChange'];
|
|
66
|
-
onfocus: PasswordFieldEvents['onFocus'];
|
|
67
|
-
oninput: PasswordFieldEvents['onInput'];
|
|
68
|
-
}
|
|
69
|
-
export interface PasswordFieldProps extends PasswordFieldElementProps, PasswordFieldEvents {
|
|
70
|
-
}
|
|
71
|
-
declare global {
|
|
72
|
-
interface HTMLElementTagNameMap {
|
|
73
|
-
[tagName]: PasswordFieldElement;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
declare module 'preact' {
|
|
77
|
-
namespace createElement.JSX {
|
|
78
|
-
interface IntrinsicElements {
|
|
79
|
-
[tagName]: PasswordFieldProps & BaseElementProps<PasswordFieldElement>;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export type { PasswordFieldElement, PasswordFieldElementEvents, PasswordFieldElementProps, PasswordFieldEvents, PasswordFieldProps };
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/** VERSION: 0.0.0 **/
|
|
2
|
-
/* eslint-disable import-x/extensions */
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
-
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
|
-
/* eslint-disable line-comment-position */
|
|
6
|
-
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
|
-
/* eslint-disable no-var */
|
|
8
|
-
/* eslint-disable import-x/namespace */
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
|
-
/// <reference lib="DOM" />
|
|
11
|
-
import type {NumberFieldProps$1} from './components-shared.d.ts';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Used when an element does not have children.
|
|
15
|
-
*/
|
|
16
|
-
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
-
key?: preact.Key;
|
|
18
|
-
ref?: preact.Ref<TClass>;
|
|
19
|
-
slot?: Lowercase<string>;
|
|
20
|
-
}
|
|
21
|
-
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
22
|
-
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
23
|
-
};
|
|
24
|
-
export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = (EventListener & {
|
|
25
|
-
(event: CallbackEvent<TTagName, TEvent>): void;
|
|
26
|
-
}) | null;
|
|
27
|
-
|
|
28
|
-
declare const tagName = "s-number-field";
|
|
29
|
-
export interface NumberFieldElementProps extends Pick<NumberFieldProps$1, 'accessory' | 'autocomplete' | 'controls' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'icon' | 'id' | 'inputMode' | 'label' | 'labelAccessibilityVisibility' | 'max' | 'min' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'prefix' | 'readOnly' | 'required' | 'step' | 'suffix' | 'value'> {
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Use `label` instead.
|
|
32
|
-
* @private
|
|
33
|
-
*/
|
|
34
|
-
placeholder?: string;
|
|
35
|
-
}
|
|
36
|
-
export interface NumberFieldEvents extends Pick<NumberFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
37
|
-
}
|
|
38
|
-
export interface NumberFieldElementEvents {
|
|
39
|
-
/**
|
|
40
|
-
* Callback when the element loses focus.
|
|
41
|
-
*
|
|
42
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
43
|
-
*/
|
|
44
|
-
blur?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
45
|
-
/**
|
|
46
|
-
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
47
|
-
*
|
|
48
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
|
|
49
|
-
*/
|
|
50
|
-
change?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
51
|
-
/**
|
|
52
|
-
* Callback when the element receives focus.
|
|
53
|
-
*
|
|
54
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
55
|
-
*/
|
|
56
|
-
focus?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
57
|
-
/**
|
|
58
|
-
* Callback when the user makes any changes in the field.
|
|
59
|
-
*
|
|
60
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
|
|
61
|
-
*/
|
|
62
|
-
input?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
63
|
-
}
|
|
64
|
-
export interface NumberFieldElement extends NumberFieldElementProps, Omit<HTMLElement, 'id' | 'inputMode' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
65
|
-
onblur: NumberFieldEvents['onBlur'];
|
|
66
|
-
onchange: NumberFieldEvents['onChange'];
|
|
67
|
-
onfocus: NumberFieldEvents['onFocus'];
|
|
68
|
-
oninput: NumberFieldEvents['onInput'];
|
|
69
|
-
}
|
|
70
|
-
export interface NumberFieldProps extends NumberFieldElementProps, NumberFieldEvents {
|
|
71
|
-
}
|
|
72
|
-
declare global {
|
|
73
|
-
interface HTMLElementTagNameMap {
|
|
74
|
-
[tagName]: NumberFieldElement;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
declare module 'preact' {
|
|
78
|
-
namespace createElement.JSX {
|
|
79
|
-
interface IntrinsicElements {
|
|
80
|
-
[tagName]: NumberFieldProps & BaseElementProps<NumberFieldElement>;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export type { NumberFieldElement, NumberFieldElementEvents, NumberFieldElementProps, NumberFieldEvents, NumberFieldProps };
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/** VERSION: 0.0.0 **/
|
|
2
|
-
/* eslint-disable import-x/extensions */
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
-
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
|
-
/* eslint-disable line-comment-position */
|
|
6
|
-
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
|
-
/* eslint-disable no-var */
|
|
8
|
-
/* eslint-disable import-x/namespace */
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
|
-
/// <reference lib="DOM" />
|
|
11
|
-
import type {PasswordFieldProps$1} from './components-shared.d.ts';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Used when an element does not have children.
|
|
15
|
-
*/
|
|
16
|
-
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
-
key?: preact.Key;
|
|
18
|
-
ref?: preact.Ref<TClass>;
|
|
19
|
-
slot?: Lowercase<string>;
|
|
20
|
-
}
|
|
21
|
-
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
22
|
-
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
23
|
-
};
|
|
24
|
-
export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = (EventListener & {
|
|
25
|
-
(event: CallbackEvent<TTagName, TEvent>): void;
|
|
26
|
-
}) | null;
|
|
27
|
-
|
|
28
|
-
declare const tagName = "s-password-field";
|
|
29
|
-
export interface PasswordFieldElementProps extends Pick<PasswordFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'maxLength'
|
|
30
|
-
/** @todo: implement `minLength` */
|
|
31
|
-
| 'name'
|
|
32
|
-
/** @todo: implement `placeholder` */
|
|
33
|
-
| 'readOnly' | 'required' | 'value'> {
|
|
34
|
-
}
|
|
35
|
-
export interface PasswordFieldEvents extends Pick<PasswordFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
36
|
-
}
|
|
37
|
-
export interface PasswordFieldElementEvents {
|
|
38
|
-
/**
|
|
39
|
-
* Callback when the element loses focus.
|
|
40
|
-
*
|
|
41
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
42
|
-
*/
|
|
43
|
-
blur?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
44
|
-
/**
|
|
45
|
-
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
46
|
-
*
|
|
47
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
|
|
48
|
-
*/
|
|
49
|
-
change?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
50
|
-
/**
|
|
51
|
-
* Callback when the element receives focus.
|
|
52
|
-
*
|
|
53
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
54
|
-
*/
|
|
55
|
-
focus?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
56
|
-
/**
|
|
57
|
-
* Callback when the user makes any changes in the field.
|
|
58
|
-
*
|
|
59
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
|
|
60
|
-
*/
|
|
61
|
-
input?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
62
|
-
}
|
|
63
|
-
export interface PasswordFieldElement extends PasswordFieldProps, Omit<HTMLElement, 'id' | 'inputMode' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
64
|
-
onblur: PasswordFieldEvents['onBlur'];
|
|
65
|
-
onchange: PasswordFieldEvents['onChange'];
|
|
66
|
-
onfocus: PasswordFieldEvents['onFocus'];
|
|
67
|
-
oninput: PasswordFieldEvents['onInput'];
|
|
68
|
-
}
|
|
69
|
-
export interface PasswordFieldProps extends PasswordFieldElementProps, PasswordFieldEvents {
|
|
70
|
-
}
|
|
71
|
-
declare global {
|
|
72
|
-
interface HTMLElementTagNameMap {
|
|
73
|
-
[tagName]: PasswordFieldElement;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
declare module 'preact' {
|
|
77
|
-
namespace createElement.JSX {
|
|
78
|
-
interface IntrinsicElements {
|
|
79
|
-
[tagName]: PasswordFieldProps & BaseElementProps<PasswordFieldElement>;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export type { PasswordFieldElement, PasswordFieldElementEvents, PasswordFieldElementProps, PasswordFieldEvents, PasswordFieldProps };
|
|
@@ -1,91 +0,0 @@
|
|
|
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, ComponentChild} from './components-shared.d.ts';
|
|
12
|
-
|
|
13
|
-
export type ComponentChildren = any;
|
|
14
|
-
/**
|
|
15
|
-
* Used when an element does not have children.
|
|
16
|
-
*/
|
|
17
|
-
export interface BaseElementProps<TClass = HTMLElement> {
|
|
18
|
-
key?: Key;
|
|
19
|
-
ref?: Ref<TClass>;
|
|
20
|
-
slot?: Lowercase<string>;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Used when an element has children.
|
|
24
|
-
*/
|
|
25
|
-
export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
26
|
-
extends BaseElementProps<TClass> {
|
|
27
|
-
children?: ComponentChildren;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare const tagName = 's-screen';
|
|
31
|
-
export interface ScreenJSXProps {
|
|
32
|
-
/**
|
|
33
|
-
* Used to identify this screen as a destination in the navigation stack.
|
|
34
|
-
*/
|
|
35
|
-
name: string;
|
|
36
|
-
/**
|
|
37
|
-
* The title of the screen which will be displayed on the UI.
|
|
38
|
-
*/
|
|
39
|
-
title: string;
|
|
40
|
-
/**
|
|
41
|
-
* Displays a loading indicator when `true`.
|
|
42
|
-
* Set this to `true` when performing an asynchronous task, and then to false when the data becomes available to the UI.
|
|
43
|
-
*/
|
|
44
|
-
isLoading?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Dictates how the `Screen` will be presented when navigated to.
|
|
47
|
-
*/
|
|
48
|
-
presentation?: ScreenPresentationProps;
|
|
49
|
-
/**
|
|
50
|
-
* Displays a secondary action button on the screen.
|
|
51
|
-
*/
|
|
52
|
-
secondaryActions?: ComponentChild;
|
|
53
|
-
/**
|
|
54
|
-
* Triggered when the screen is navigated to.
|
|
55
|
-
*/
|
|
56
|
-
onNavigate?: () => void;
|
|
57
|
-
/**
|
|
58
|
-
* Triggered when the user navigates back from this screen. Runs after screen is unmounted.
|
|
59
|
-
*/
|
|
60
|
-
onNavigateBack?: () => void;
|
|
61
|
-
/**
|
|
62
|
-
* A callback that gets triggered when the navigation event completes and the screen receives the parameters.
|
|
63
|
-
*/
|
|
64
|
-
onReceiveParams?: (params: any) => void;
|
|
65
|
-
children?: React.ReactNode;
|
|
66
|
-
}
|
|
67
|
-
/** Represents the presentation of a screen in the navigation stack.
|
|
68
|
-
* @property `sheet` displays the screen from the bottom on `navigate` when `true`.
|
|
69
|
-
*/
|
|
70
|
-
export interface ScreenPresentationProps {
|
|
71
|
-
/**
|
|
72
|
-
* Displays the screen from the bottom on `navigate` when `true`.
|
|
73
|
-
*/
|
|
74
|
-
sheet?: boolean;
|
|
75
|
-
}
|
|
76
|
-
declare global {
|
|
77
|
-
interface HTMLElementTagNameMap {
|
|
78
|
-
[tagName]: ScreenJSXProps;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
declare module 'preact' {
|
|
82
|
-
namespace createElement.JSX {
|
|
83
|
-
interface IntrinsicElements {
|
|
84
|
-
[tagName]: Omit<ScreenJSXProps, 'secondaryActions'> &
|
|
85
|
-
BaseElementPropsWithChildren<Omit<ScreenJSXProps, 'secondaryActions'>>;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export {tagName};
|
|
91
|
-
export type {ScreenJSXProps, ScreenPresentationProps};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/** VERSION: 0.0.0 **/
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
4
|
-
/// <reference lib="DOM" />
|
|
5
|
-
|
|
6
|
-
export type CallbackEvent<
|
|
7
|
-
TTagName extends keyof HTMLElementTagNameMap,
|
|
8
|
-
TEvent extends Event = Event,
|
|
9
|
-
> = TEvent & {
|
|
10
|
-
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export type CallbackEventListener<
|
|
14
|
-
TTagName extends keyof HTMLElementTagNameMap,
|
|
15
|
-
TEvent extends Event = Event,
|
|
16
|
-
> =
|
|
17
|
-
| (EventListener & {
|
|
18
|
-
(event: CallbackEvent<TTagName, TEvent>): void;
|
|
19
|
-
})
|
|
20
|
-
| null;
|
|
21
|
-
|
|
22
|
-
/** Used when an element does not have children. */
|
|
23
|
-
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
24
|
-
/** Assigns a unique key to this element. */
|
|
25
|
-
key?: preact.Key;
|
|
26
|
-
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
27
|
-
ref?: preact.Ref<TClass>;
|
|
28
|
-
/** Assigns this element to a parent's slot. */
|
|
29
|
-
slot?: Lowercase<string>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/** Used when an element has children. */
|
|
33
|
-
export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
|
|
34
|
-
extends PreactBaseElementProps<TClass> {
|
|
35
|
-
children?: preact.ComponentChildren;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export type Styles = string;
|
|
39
|
-
export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
|
|
40
|
-
ShadowRoot: (element: any) => preact.ComponentChild;
|
|
41
|
-
styles?: Styles;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Base class for creating custom elements with Preact.
|
|
46
|
-
* While this class could be used in both Node and the browser, the constructor will only be used in the browser.
|
|
47
|
-
* So we give it a type of HTMLElement to avoid typing issues later where it's used, which will only happen in the browser.
|
|
48
|
-
*/
|
|
49
|
-
declare const BaseClass: typeof globalThis.HTMLElement;
|
|
50
|
-
export declare abstract class PreactCustomElement extends BaseClass {
|
|
51
|
-
/** @private */
|
|
52
|
-
static get observedAttributes(): string[];
|
|
53
|
-
constructor({
|
|
54
|
-
styles,
|
|
55
|
-
ShadowRoot: renderFunction,
|
|
56
|
-
delegatesFocus,
|
|
57
|
-
...options
|
|
58
|
-
}: RenderImpl);
|
|
59
|
-
|
|
60
|
-
/** @private */
|
|
61
|
-
setAttribute(name: string, value: string): void;
|
|
62
|
-
/** @private */
|
|
63
|
-
attributeChangedCallback(name: string): void;
|
|
64
|
-
/** @private */
|
|
65
|
-
connectedCallback(): void;
|
|
66
|
-
/** @private */
|
|
67
|
-
disconnectedCallback(): void;
|
|
68
|
-
/** @private */
|
|
69
|
-
adoptedCallback(): void;
|
|
70
|
-
/**
|
|
71
|
-
* Queue a run of the render function.
|
|
72
|
-
* You shouldn't need to call this manually - it should be handled by changes to @property values.
|
|
73
|
-
* @private
|
|
74
|
-
*/
|
|
75
|
-
queueRender(): void;
|
|
76
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<s-drop-zone accept="image/*"> </s-drop-zone>
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/** VERSION: 0.0.0 **/
|
|
2
|
-
/* eslint-disable import-x/extensions */
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
-
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
|
-
/* eslint-disable line-comment-position */
|
|
6
|
-
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
|
-
/* eslint-disable no-var */
|
|
8
|
-
/* eslint-disable import-x/namespace */
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
|
-
/// <reference lib="DOM" />
|
|
11
|
-
import type {NumberFieldProps$1} from './components-shared.d.ts';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Used when an element does not have children.
|
|
15
|
-
*/
|
|
16
|
-
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
-
key?: preact.Key;
|
|
18
|
-
ref?: preact.Ref<TClass>;
|
|
19
|
-
slot?: Lowercase<string>;
|
|
20
|
-
}
|
|
21
|
-
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
22
|
-
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
23
|
-
};
|
|
24
|
-
export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = (EventListener & {
|
|
25
|
-
(event: CallbackEvent<TTagName, TEvent>): void;
|
|
26
|
-
}) | null;
|
|
27
|
-
|
|
28
|
-
declare const tagName = "s-number-field";
|
|
29
|
-
export interface NumberFieldElementProps extends Pick<NumberFieldProps$1, 'accessory' | 'autocomplete' | 'controls' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'icon' | 'id' | 'inputMode' | 'label' | 'labelAccessibilityVisibility' | 'max' | 'min' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'prefix' | 'readOnly' | 'required' | 'step' | 'suffix' | 'value'> {
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Use `label` instead.
|
|
32
|
-
* @private
|
|
33
|
-
*/
|
|
34
|
-
placeholder?: string;
|
|
35
|
-
}
|
|
36
|
-
export interface NumberFieldEvents extends Pick<NumberFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
37
|
-
}
|
|
38
|
-
export interface NumberFieldElementEvents {
|
|
39
|
-
/**
|
|
40
|
-
* Callback when the element loses focus.
|
|
41
|
-
*
|
|
42
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
43
|
-
*/
|
|
44
|
-
blur?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
45
|
-
/**
|
|
46
|
-
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
47
|
-
*
|
|
48
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
|
|
49
|
-
*/
|
|
50
|
-
change?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
51
|
-
/**
|
|
52
|
-
* Callback when the element receives focus.
|
|
53
|
-
*
|
|
54
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
55
|
-
*/
|
|
56
|
-
focus?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
57
|
-
/**
|
|
58
|
-
* Callback when the user makes any changes in the field.
|
|
59
|
-
*
|
|
60
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
|
|
61
|
-
*/
|
|
62
|
-
input?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
63
|
-
}
|
|
64
|
-
export interface NumberFieldElement extends NumberFieldElementProps, Omit<HTMLElement, 'id' | 'inputMode' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
65
|
-
onblur: NumberFieldEvents['onBlur'];
|
|
66
|
-
onchange: NumberFieldEvents['onChange'];
|
|
67
|
-
onfocus: NumberFieldEvents['onFocus'];
|
|
68
|
-
oninput: NumberFieldEvents['onInput'];
|
|
69
|
-
}
|
|
70
|
-
export interface NumberFieldProps extends NumberFieldElementProps, NumberFieldEvents {
|
|
71
|
-
}
|
|
72
|
-
declare global {
|
|
73
|
-
interface HTMLElementTagNameMap {
|
|
74
|
-
[tagName]: NumberFieldElement;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
declare module 'preact' {
|
|
78
|
-
namespace createElement.JSX {
|
|
79
|
-
interface IntrinsicElements {
|
|
80
|
-
[tagName]: NumberFieldProps & BaseElementProps<NumberFieldElement>;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export type { NumberFieldElement, NumberFieldElementEvents, NumberFieldElementProps, NumberFieldEvents, NumberFieldProps };
|