@shopify/ui-extensions 2025.10.0-rc.41 → 2025.10.0-rc.43
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/shared.js +1 -1
- package/build/esm/surfaces/checkout/shared.mjs +1 -1
- package/build/esnext/surfaces/checkout/shared.esnext +1 -1
- package/build/ts/docs/shared/components/Announcement.d.ts +4 -0
- package/build/ts/docs/shared/components/Announcement.d.ts.map +1 -0
- package/build/ts/docs/shared/components/FunctionSettings.d.ts +4 -0
- package/build/ts/docs/shared/components/FunctionSettings.d.ts.map +1 -0
- package/build/ts/docs/shared/components/ScrollBox.d.ts +4 -0
- package/build/ts/docs/shared/components/ScrollBox.d.ts.map +1 -0
- package/build/ts/docs/shared/components/index.d.ts +4 -0
- package/build/ts/docs/shared/components/index.d.ts.map +1 -1
- package/build/ts/index.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts +30 -0
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api.d.ts +1 -1
- package/build/ts/surfaces/admin/api.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction.d.ts +5 -5
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +3 -3
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Avatar.d.ts +4 -10
- package/build/ts/surfaces/admin/components/Badge/Badge.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Badge.d.ts +4 -10
- package/build/ts/surfaces/admin/components/Banner.d.ts +18 -24
- package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Box.d.ts +4 -10
- package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Button.d.ts +21 -27
- package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +6 -13
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +21 -28
- package/build/ts/surfaces/admin/components/Chip.d.ts +5 -11
- package/build/ts/surfaces/admin/components/Choice.d.ts +5 -17
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +19 -26
- package/build/ts/surfaces/admin/components/Clickable/Clickable.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Clickable.d.ts +21 -28
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +18 -24
- package/build/ts/surfaces/admin/components/ColorField.d.ts +3 -4
- package/build/ts/surfaces/admin/components/ColorPicker.d.ts +8 -8
- package/build/ts/surfaces/admin/components/DateField.d.ts +12 -12
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +3 -4
- package/build/ts/surfaces/admin/components/Divider.d.ts +3 -4
- package/build/ts/surfaces/admin/components/DropZone/DropZone.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/EmailField.d.ts +26 -27
- package/build/ts/surfaces/admin/components/Form.d.ts +7 -3
- package/build/ts/surfaces/admin/components/FormExtensionComponents.d.ts +4 -0
- package/build/ts/surfaces/admin/components/FormExtensionComponents.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/FunctionSettings/FunctionSettings.ext.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/FunctionSettings/FunctionSettings.ext.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +3 -3
- package/build/ts/surfaces/admin/components/FunctionSettingsComponents.d.ts +4 -0
- package/build/ts/surfaces/admin/components/FunctionSettingsComponents.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Grid/Grid.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Grid.d.ts +4 -10
- package/build/ts/surfaces/admin/components/GridItem.d.ts +4 -11
- package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Heading.d.ts +4 -10
- package/build/ts/surfaces/admin/components/Icon.d.ts +3 -4
- package/build/ts/surfaces/admin/components/Image.d.ts +20 -21
- package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Link.d.ts +21 -27
- package/build/ts/surfaces/admin/components/ListItem.d.ts +4 -11
- package/build/ts/surfaces/admin/components/Menu.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Modal.d.ts +15 -15
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +29 -29
- package/build/ts/surfaces/admin/components/NumberField.d.ts +28 -27
- package/build/ts/surfaces/admin/components/Option.d.ts +7 -11
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +7 -12
- package/build/ts/surfaces/admin/components/OrderedList/OrderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +4 -11
- package/build/ts/surfaces/admin/components/Page.d.ts +11 -16
- package/build/ts/surfaces/admin/components/Paragraph/Paragraph.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +4 -11
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +26 -27
- package/build/ts/surfaces/admin/components/Popover/Popover.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +3 -3
- package/build/ts/surfaces/admin/components/SearchField.d.ts +26 -27
- package/build/ts/surfaces/admin/components/Section/Section.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Section.d.ts +4 -10
- package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Select.d.ts +24 -28
- package/build/ts/surfaces/admin/components/Spinner.d.ts +3 -4
- package/build/ts/surfaces/admin/components/Stack/Stack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Stack.d.ts +4 -10
- package/build/ts/surfaces/admin/components/Switch.d.ts +20 -21
- package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Table.d.ts +5 -12
- package/build/ts/surfaces/admin/components/TableBody.d.ts +4 -11
- package/build/ts/surfaces/admin/components/TableCell.d.ts +4 -11
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +4 -11
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +4 -10
- package/build/ts/surfaces/admin/components/TableRow.d.ts +4 -11
- package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Text.d.ts +4 -10
- package/build/ts/surfaces/admin/components/TextArea.d.ts +26 -27
- package/build/ts/surfaces/admin/components/TextField.d.ts +27 -28
- package/build/ts/surfaces/admin/components/Thumbnail.d.ts +11 -12
- package/build/ts/surfaces/admin/components/Tooltip/Tooltip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Tooltip.d.ts +4 -10
- package/build/ts/surfaces/admin/components/URLField.d.ts +26 -27
- package/build/ts/surfaces/admin/components/UnorderedList/UnorderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +4 -11
- package/build/ts/surfaces/admin/components/patterns/accountConnection.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/accountConnection.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/shared.d.ts +24 -7
- package/build/ts/surfaces/admin/extension-targets.d.ts +10 -8
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.data.d.ts +6 -0
- package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +1 -1
- package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +2 -0
- package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +2 -0
- package/build/ts/surfaces/checkout/api/announcement/announcement.d.ts +8 -0
- package/build/ts/surfaces/checkout/api/announcement/announcement.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Announcement/Announcement.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Announcement/Announcement.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Announcement.d.ts +95 -0
- package/build/ts/surfaces/checkout/components/Badge.d.ts +7 -1
- package/build/ts/surfaces/checkout/components/Chip/Chip.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Chip/Chip.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Chip.d.ts +56 -0
- package/build/ts/surfaces/checkout/components/Choice.d.ts +67 -0
- package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ChoiceList.d.ts +65 -0
- package/build/ts/surfaces/checkout/components/ClickableChip/ClickableChip.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ClickableChip/ClickableChip.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ClickableChip.d.ts +83 -0
- package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/DateField.d.ts +87 -0
- package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/DatePicker.d.ts +77 -0
- package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Form.d.ts +3 -0
- package/build/ts/surfaces/checkout/components/Icon.d.ts +7 -1
- package/build/ts/surfaces/checkout/components/Option.d.ts +46 -0
- package/build/ts/surfaces/checkout/components/PasswordField/PasswordField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/PasswordField/PasswordField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/PasswordField.d.ts +93 -0
- package/build/ts/surfaces/checkout/components/QueryContainer/QueryContainer.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/QueryContainer/QueryContainer.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/QueryContainer.d.ts +48 -0
- package/build/ts/surfaces/checkout/components/ScrollBox/ScrollBox.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ScrollBox/ScrollBox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Select.d.ts +79 -0
- package/build/ts/surfaces/checkout/components/TextField.d.ts +7 -1
- package/build/ts/surfaces/checkout/components/UrlField/UrlField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/UrlField/UrlField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/UrlField.d.ts +93 -0
- package/build/ts/surfaces/checkout/components/components-shared.d.ts +89 -0
- package/build/ts/surfaces/checkout/components/components.d.ts +252 -24
- package/build/ts/surfaces/checkout/extension-targets.d.ts +61 -61
- package/build/ts/surfaces/checkout/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/shared.d.ts +6 -3
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Actions::RenderBefore.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.announcement.render.d.ts +12 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +11 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +11 -0
- 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/components/Announcement.d.ts +95 -0
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Avatar.d.ts +2 -2
- package/build/ts/surfaces/customer-account/components/Badge.d.ts +7 -1
- package/build/ts/surfaces/customer-account/components/ButtonGroup/ButtonGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/ButtonGroup.d.ts +2 -2
- package/build/ts/surfaces/customer-account/components/Chip.d.ts +56 -0
- package/build/ts/surfaces/customer-account/components/Choice.d.ts +67 -0
- package/build/ts/surfaces/customer-account/components/ChoiceList.d.ts +65 -0
- package/build/ts/surfaces/customer-account/components/ClickableChip.d.ts +83 -0
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
- package/build/ts/surfaces/customer-account/components/DateField.d.ts +87 -0
- package/build/ts/surfaces/customer-account/components/DatePicker.d.ts +77 -0
- package/build/ts/surfaces/customer-account/components/Form.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/Icon.d.ts +7 -1
- package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Option.d.ts +46 -0
- package/build/ts/surfaces/customer-account/components/Page/Page.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Page.d.ts +3 -3
- package/build/ts/surfaces/customer-account/components/PasswordField.d.ts +93 -0
- package/build/ts/surfaces/customer-account/components/QueryContainer.d.ts +48 -0
- package/build/ts/surfaces/customer-account/components/Section/Section.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Select.d.ts +79 -0
- package/build/ts/surfaces/customer-account/components/TextField.d.ts +7 -1
- package/build/ts/surfaces/customer-account/components/UrlField.d.ts +93 -0
- package/build/ts/surfaces/customer-account/components/components-shared.d.ts +89 -0
- package/build/ts/surfaces/customer-account/components/components.d.ts +252 -24
- package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.announcement.render.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.announcement.render.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.announcement.render.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +12 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +12 -0
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +2 -9
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Badge/Badge.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Banner/Banner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/DateSpinner/DateSpinner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Modal.d.ts +1 -2
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/docs/shared/components/Announcement.ts +12 -0
- package/src/docs/shared/components/FunctionSettings.ts +28 -0
- package/src/docs/shared/components/ScrollBox.ts +12 -0
- package/src/docs/shared/components/index.ts +4 -0
- package/src/index.ts +1 -0
- package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.ts +31 -0
- package/src/surfaces/admin/api.ts +4 -1
- package/src/surfaces/admin/components/AdminAction.d.ts +5 -5
- package/src/surfaces/admin/components/AdminBlock.d.ts +3 -3
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +3 -3
- package/src/surfaces/admin/components/Avatar.d.ts +4 -10
- package/src/surfaces/admin/components/Badge.d.ts +4 -10
- package/src/surfaces/admin/components/Banner.d.ts +18 -24
- package/src/surfaces/admin/components/Box.d.ts +4 -10
- package/src/surfaces/admin/components/Button.d.ts +21 -27
- package/src/surfaces/admin/components/ButtonGroup.d.ts +6 -13
- package/src/surfaces/admin/components/Checkbox.d.ts +21 -28
- package/src/surfaces/admin/components/Chip.d.ts +5 -11
- package/src/surfaces/admin/components/Choice.d.ts +5 -17
- package/src/surfaces/admin/components/ChoiceList.d.ts +19 -26
- package/src/surfaces/admin/components/Clickable.d.ts +21 -28
- package/src/surfaces/admin/components/ClickableChip.d.ts +18 -24
- package/src/surfaces/admin/components/ColorField.d.ts +3 -4
- package/src/surfaces/admin/components/ColorPicker.d.ts +8 -8
- package/src/surfaces/admin/components/DateField.d.ts +12 -12
- package/src/surfaces/admin/components/DatePicker.d.ts +3 -4
- package/src/surfaces/admin/components/Divider.d.ts +3 -4
- package/src/surfaces/admin/components/EmailField.d.ts +26 -27
- package/src/surfaces/admin/components/Form.d.ts +7 -3
- package/src/surfaces/admin/components/FormExtensionComponents.ts +5 -0
- package/src/surfaces/admin/components/FunctionSettings/examples/default.tsx +38 -0
- package/src/surfaces/admin/components/FunctionSettings.d.ts +3 -3
- package/src/surfaces/admin/components/FunctionSettingsComponents.ts +7 -0
- package/src/surfaces/admin/components/Grid.d.ts +4 -10
- package/src/surfaces/admin/components/GridItem.d.ts +4 -11
- package/src/surfaces/admin/components/Heading.d.ts +4 -10
- package/src/surfaces/admin/components/Icon.d.ts +3 -4
- package/src/surfaces/admin/components/Image.d.ts +20 -21
- package/src/surfaces/admin/components/Link.d.ts +21 -27
- package/src/surfaces/admin/components/ListItem.d.ts +4 -11
- package/src/surfaces/admin/components/Menu.d.ts +3 -3
- package/src/surfaces/admin/components/Modal.d.ts +15 -15
- package/src/surfaces/admin/components/MoneyField.d.ts +29 -29
- package/src/surfaces/admin/components/NumberField.d.ts +28 -27
- package/src/surfaces/admin/components/Option.d.ts +7 -11
- package/src/surfaces/admin/components/OptionGroup.d.ts +7 -12
- package/src/surfaces/admin/components/OrderedList.d.ts +4 -11
- package/src/surfaces/admin/components/Page.d.ts +11 -16
- package/src/surfaces/admin/components/Paragraph.d.ts +4 -11
- package/src/surfaces/admin/components/PasswordField.d.ts +26 -27
- package/src/surfaces/admin/components/QueryContainer.d.ts +3 -3
- package/src/surfaces/admin/components/SearchField.d.ts +26 -27
- package/src/surfaces/admin/components/Section.d.ts +4 -10
- package/src/surfaces/admin/components/Select.d.ts +24 -28
- package/src/surfaces/admin/components/Spinner.d.ts +3 -4
- package/src/surfaces/admin/components/Stack.d.ts +4 -10
- package/src/surfaces/admin/components/Switch.d.ts +20 -21
- package/src/surfaces/admin/components/Table.d.ts +5 -12
- package/src/surfaces/admin/components/TableBody.d.ts +4 -11
- package/src/surfaces/admin/components/TableCell.d.ts +4 -11
- package/src/surfaces/admin/components/TableHeader.d.ts +4 -11
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +4 -10
- package/src/surfaces/admin/components/TableRow.d.ts +4 -11
- package/src/surfaces/admin/components/Text.d.ts +4 -10
- package/src/surfaces/admin/components/TextArea.d.ts +26 -27
- package/src/surfaces/admin/components/TextField.d.ts +27 -28
- package/src/surfaces/admin/components/Thumbnail.d.ts +11 -12
- package/src/surfaces/admin/components/Tooltip.d.ts +4 -10
- package/src/surfaces/admin/components/URLField.d.ts +26 -27
- package/src/surfaces/admin/components/UnorderedList.d.ts +4 -11
- package/src/surfaces/admin/components/patterns/examples/accountConnection.html +16 -0
- package/src/surfaces/admin/components/patterns/examples/homepage.jsx +3 -3
- package/src/surfaces/admin/components/shared.d.ts +24 -7
- package/src/surfaces/admin/components/using-polaris-web-components/examples/event-handling.jsx +1 -1
- package/src/surfaces/admin/components/using-polaris-web-components/examples/using-with-react.jsx +1 -1
- package/src/surfaces/admin/components.d.ts +902 -614
- package/src/surfaces/admin/extension-targets.ts +11 -10
- package/src/surfaces/checkout/api/announcement/announcement.ts +7 -0
- package/src/surfaces/checkout/api/checkout/checkout.ts +2 -2
- package/src/surfaces/checkout/components/Announcement/examples/basic-announcement.example.html +16 -0
- package/src/surfaces/checkout/components/Announcement.d.ts +95 -0
- package/src/surfaces/checkout/components/Badge.d.ts +7 -1
- package/src/surfaces/checkout/components/Box/examples/basic-box.example.html +1 -1
- package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.html +1 -1
- package/src/surfaces/checkout/components/Chip/examples/basic-chip.example.html +1 -0
- package/src/surfaces/checkout/components/Chip.d.ts +56 -0
- package/src/surfaces/checkout/components/Choice.d.ts +67 -0
- package/src/surfaces/checkout/components/ChoiceList/examples/basic-choice-list.example.html +7 -0
- package/src/surfaces/checkout/components/ChoiceList.d.ts +65 -0
- package/src/surfaces/checkout/components/ClickableChip/examples/basic-clickable-chip.example.html +1 -0
- package/src/surfaces/checkout/components/ClickableChip.d.ts +83 -0
- package/src/surfaces/checkout/components/DateField/examples/basic-date-field.example.html +1 -0
- package/src/surfaces/checkout/components/DateField.d.ts +87 -0
- package/src/surfaces/checkout/components/DatePicker/examples/basic-date-picker.example.html +1 -0
- package/src/surfaces/checkout/components/DatePicker.d.ts +77 -0
- package/src/surfaces/checkout/components/Form/examples/basic-form.example.html +2 -2
- package/src/surfaces/checkout/components/Form.d.ts +3 -0
- package/src/surfaces/checkout/components/Icon/examples/basic-icon.example.html +4 -4
- package/src/surfaces/checkout/components/Icon.d.ts +7 -1
- package/src/surfaces/checkout/components/Image/examples/basic-image.example.html +1 -1
- package/src/surfaces/checkout/components/Map/examples/basic-map.example.html +2 -2
- package/src/surfaces/checkout/components/MoneyField/examples/basic-money-field.example.html +1 -1
- package/src/surfaces/checkout/components/Option.d.ts +46 -0
- package/src/surfaces/checkout/components/PasswordField/examples/basic-password-field.example.html +1 -0
- package/src/surfaces/checkout/components/PasswordField.d.ts +93 -0
- package/src/surfaces/checkout/components/PaymentIcon/examples/basic-payment-icon.example.html +7 -7
- package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-product-thumbnail.example.html +1 -4
- package/src/surfaces/checkout/components/Progress/examples/basic-progress.example.html +1 -1
- package/src/surfaces/checkout/components/QueryContainer/examples/basic-query-container.example.html +8 -0
- package/src/surfaces/checkout/components/QueryContainer.d.ts +48 -0
- package/src/surfaces/checkout/components/ScrollBox/examples/basic-scroll-box.example.html +5 -0
- package/src/surfaces/checkout/components/Select/examples/basic-select.example.html +5 -0
- package/src/surfaces/checkout/components/Select.d.ts +79 -0
- package/src/surfaces/checkout/components/Spinner/examples/basic-spinner.example.html +1 -1
- package/src/surfaces/checkout/components/Stack/examples/basic-stack.example.html +4 -20
- package/src/surfaces/checkout/components/TextArea/examples/basic-text-area.example.html +1 -5
- package/src/surfaces/checkout/components/TextField/examples/basic-text-field.example.html +1 -1
- package/src/surfaces/checkout/components/TextField.d.ts +7 -1
- package/src/surfaces/checkout/components/UrlField/examples/basic-url-field.example.html +1 -0
- package/src/surfaces/checkout/components/UrlField.d.ts +93 -0
- package/src/surfaces/checkout/components/components-shared.d.ts +89 -0
- package/src/surfaces/checkout/components/components.d.ts +252 -24
- package/src/surfaces/checkout/extension-targets.ts +63 -62
- package/src/surfaces/checkout/shared.ts +15 -8
- package/src/surfaces/checkout.ts +1 -0
- package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar.example.html +4 -0
- package/src/surfaces/customer-account/components/Avatar.d.ts +2 -2
- package/src/surfaces/customer-account/components/ButtonGroup/examples/basic-ButtonGroup.example.html +11 -0
- package/src/surfaces/customer-account/components/ButtonGroup.d.ts +2 -2
- package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction.example.html +9 -0
- package/src/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
- package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup.example.html +18 -0
- package/src/surfaces/customer-account/components/Menu/examples/basic-Menu.example.html +14 -0
- package/src/surfaces/customer-account/components/Page/examples/basic-Page.example.html +19 -0
- package/src/surfaces/customer-account/components/Page.d.ts +3 -3
- package/src/surfaces/customer-account/components/Section/examples/basic-Section.example.html +12 -0
- package/src/surfaces/customer-account/components/Section.d.ts +2 -2
- package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +2 -10
- package/src/surfaces/point-of-sale/components/Badge/examples/default.html +5 -5
- package/src/surfaces/point-of-sale/components/Modal.d.ts +1 -2
- package/src/surfaces/point-of-sale/components.d.ts +48 -50
- package/build/ts/surfaces/admin/components/DropZone.d.ts +0 -160
- package/build/ts/surfaces/admin/components/Popover.d.ts +0 -379
- package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +0 -57
- package/src/surfaces/admin/components/DropZone.d.ts +0 -160
- package/src/surfaces/admin/components/Popover.d.ts +0 -379
- package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-preact.example.tsx +0 -10
- package/src/surfaces/customer-account/components/ButtonGroup/examples/basic-ButtonGroup-preact.example.tsx +0 -22
- package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-preact.example.tsx +0 -17
- package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-preact.example.tsx +0 -17
- package/src/surfaces/customer-account/components/Menu/examples/basic-Menu-preact.example.tsx +0 -24
- package/src/surfaces/customer-account/components/Page/examples/basic-Page-preact.example.tsx +0 -37
- package/src/surfaces/customer-account/components/Section/examples/basic-Section-preact.example.tsx +0 -23
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import type { RunnableExtension, RenderExtension } from '../../extension';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ActionExtensionApi, BlockExtensionApi, PrintActionExtensionApi, ProductDetailsConfigurationApi, ProductVariantDetailsConfigurationApi, OrderRoutingRuleApi, ValidationSettingsApi, PurchaseOptionsCardConfigurationApi, DiscountFunctionSettingsApi, CustomerSegmentTemplateApi, CustomerSegmentTemplate } from './api';
|
|
3
3
|
import { ShouldRenderApi, ShouldRenderOutput } from './api/should-render/should-render';
|
|
4
|
-
import type { StandardComponents } from './components/StandardComponents';
|
|
5
4
|
import type { BlockExtensionComponents } from './components/BlockExtensionComponents';
|
|
6
5
|
import type { ActionExtensionComponents } from './components/ActionExtensionComponents';
|
|
7
6
|
import type { PrintActionExtensionComponents } from './components/PrintActionExtensionComponents';
|
|
7
|
+
import type { FunctionSettingsComponents } from './components/FunctionSettingsComponents';
|
|
8
8
|
export interface ExtensionTargets {
|
|
9
9
|
/**
|
|
10
|
-
* Renders a
|
|
10
|
+
* Renders a [`CustomerSegmentTemplate`](/docs/api/admin-extensions/components/customersegmenttemplate) in the [customer segment editor](https://help.shopify.com/en/manual/customers/customer-segmentation/customer-segments).
|
|
11
11
|
*/
|
|
12
|
-
'admin.customers.segmentation-templates.
|
|
12
|
+
'admin.customers.segmentation-templates.data': RunnableExtension<CustomerSegmentTemplateApi<'admin.customers.segmentation-templates.data'>, {
|
|
13
|
+
templates: CustomerSegmentTemplate[];
|
|
14
|
+
}>;
|
|
13
15
|
/**
|
|
14
16
|
* Renders an admin block in the product details page.
|
|
15
17
|
*
|
|
@@ -27,7 +29,7 @@ export interface ExtensionTargets {
|
|
|
27
29
|
*
|
|
28
30
|
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
29
31
|
*/
|
|
30
|
-
'admin.discount-details.function-settings.render': RenderExtension<DiscountFunctionSettingsApi<'admin.discount-details.function-settings.render'>,
|
|
32
|
+
'admin.discount-details.function-settings.render': RenderExtension<DiscountFunctionSettingsApi<'admin.discount-details.function-settings.render'>, FunctionSettingsComponents>;
|
|
31
33
|
/**
|
|
32
34
|
* Renders an admin block in the customer details page.
|
|
33
35
|
*
|
|
@@ -280,14 +282,14 @@ export interface ExtensionTargets {
|
|
|
280
282
|
*
|
|
281
283
|
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
282
284
|
*/
|
|
283
|
-
'admin.settings.internal-order-routing-rule.render': RenderExtension<OrderRoutingRuleApi<'admin.settings.internal-order-routing-rule.render'>,
|
|
284
|
-
'admin.settings.order-routing-rule.render': RenderExtension<OrderRoutingRuleApi<'admin.settings.order-routing-rule.render'>,
|
|
285
|
+
'admin.settings.internal-order-routing-rule.render': RenderExtension<OrderRoutingRuleApi<'admin.settings.internal-order-routing-rule.render'>, FunctionSettingsComponents>;
|
|
286
|
+
'admin.settings.order-routing-rule.render': RenderExtension<OrderRoutingRuleApi<'admin.settings.order-routing-rule.render'>, FunctionSettingsComponents>;
|
|
285
287
|
/**
|
|
286
288
|
* Renders Validation Settings within a given validation's add and edit views.
|
|
287
289
|
*
|
|
288
290
|
* See the [list of available components](/docs/api/admin-extensions/components).
|
|
289
291
|
*/
|
|
290
|
-
'admin.settings.validation.render': RenderExtension<ValidationSettingsApi<'admin.settings.validation.render'>,
|
|
292
|
+
'admin.settings.validation.render': RenderExtension<ValidationSettingsApi<'admin.settings.validation.render'>, FunctionSettingsComponents>;
|
|
291
293
|
/**
|
|
292
294
|
* Controls the render state of an admin action extension in the product details page. Open this extension from the "More Actions" menu.
|
|
293
295
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension-targets.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/extension-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAE,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAExE,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"extension-targets.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/extension-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAE,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAExE,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,8BAA8B,EAC9B,qCAAqC,EACrC,mBAAmB,EACnB,qBAAqB,EACrB,mCAAmC,EACnC,2BAA2B,EAC3B,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,OAAO,CAAC;AACf,OAAO,EACL,eAAe,EACf,kBAAkB,EACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,uCAAuC,CAAC;AACpF,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,wCAAwC,CAAC;AACtF,OAAO,KAAK,EAAC,8BAA8B,EAAC,MAAM,6CAA6C,CAAC;AAChG,OAAO,KAAK,EAAC,0BAA0B,EAAC,MAAM,yCAAyC,CAAC;AAExF,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,6CAA6C,EAAE,iBAAiB,CAC9D,0BAA0B,CAAC,6CAA6C,CAAC,EACzE;QAAC,SAAS,EAAE,uBAAuB,EAAE,CAAA;KAAC,CACvC,CAAC;IAGF;;;;OAIG;IACH,oCAAoC,EAAE,eAAe,CACnD,iBAAiB,CAAC,oCAAoC,CAAC,EACvD,wBAAwB,CACzB,CAAC;IA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AEF;;OAEG;IACH,0DAA0D,EAAE,iBAAiB,CAC3E,eAAe,CAAC,0DAA0D,CAAC,EAC3E,kBAAkB,CACnB,CAAC;CACH;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,gBAAgB,CAAC"}
|
package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "../components/AdminBlock.d.ts";
|
|
2
1
|
import "../components/Avatar.d.ts";
|
|
3
2
|
import "../components/Badge.d.ts";
|
|
4
3
|
import "../components/Banner.d.ts";
|
|
@@ -18,6 +17,7 @@ import "../components/DatePicker.d.ts";
|
|
|
18
17
|
import "../components/Divider.d.ts";
|
|
19
18
|
import "../components/EmailField.d.ts";
|
|
20
19
|
import "../components/Form.d.ts";
|
|
20
|
+
import "../components/FunctionSettings.d.ts";
|
|
21
21
|
import "../components/Grid.d.ts";
|
|
22
22
|
import "../components/GridItem.d.ts";
|
|
23
23
|
import "../components/Heading.d.ts";
|
package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ import "../components/DateField.d.ts";
|
|
|
16
16
|
import "../components/DatePicker.d.ts";
|
|
17
17
|
import "../components/Divider.d.ts";
|
|
18
18
|
import "../components/EmailField.d.ts";
|
|
19
|
+
import "../components/Form.d.ts";
|
|
20
|
+
import "../components/FunctionSettings.d.ts";
|
|
19
21
|
import "../components/Grid.d.ts";
|
|
20
22
|
import "../components/GridItem.d.ts";
|
|
21
23
|
import "../components/Heading.d.ts";
|
|
@@ -16,6 +16,8 @@ import "../components/DateField.d.ts";
|
|
|
16
16
|
import "../components/DatePicker.d.ts";
|
|
17
17
|
import "../components/Divider.d.ts";
|
|
18
18
|
import "../components/EmailField.d.ts";
|
|
19
|
+
import "../components/Form.d.ts";
|
|
20
|
+
import "../components/FunctionSettings.d.ts";
|
|
19
21
|
import "../components/Grid.d.ts";
|
|
20
22
|
import "../components/GridItem.d.ts";
|
|
21
23
|
import "../components/Heading.d.ts";
|
|
@@ -16,6 +16,8 @@ import "../components/DateField.d.ts";
|
|
|
16
16
|
import "../components/DatePicker.d.ts";
|
|
17
17
|
import "../components/Divider.d.ts";
|
|
18
18
|
import "../components/EmailField.d.ts";
|
|
19
|
+
import "../components/Form.d.ts";
|
|
20
|
+
import "../components/FunctionSettings.d.ts";
|
|
19
21
|
import "../components/Grid.d.ts";
|
|
20
22
|
import "../components/GridItem.d.ts";
|
|
21
23
|
import "../components/Heading.d.ts";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"announcement.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/api/announcement/announcement.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE;QACZ,KAAK,IAAI,IAAI,CAAC;QACd,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;QACtD,mBAAmB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;KAC1D,CAAC;CACH"}
|
|
@@ -213,7 +213,7 @@ export interface DiscountCodeAddChange {
|
|
|
213
213
|
*/
|
|
214
214
|
type: 'addDiscountCode';
|
|
215
215
|
/**
|
|
216
|
-
* The code for the discount (case-
|
|
216
|
+
* The code for the discount (case-insensitive)
|
|
217
217
|
*/
|
|
218
218
|
code: string;
|
|
219
219
|
}
|
|
@@ -223,7 +223,7 @@ export interface DiscountCodeRemoveChange {
|
|
|
223
223
|
*/
|
|
224
224
|
type: 'removeDiscountCode';
|
|
225
225
|
/**
|
|
226
|
-
* The code for the discount (case-
|
|
226
|
+
* The code for the discount (case-insensitive)
|
|
227
227
|
*/
|
|
228
228
|
code: string;
|
|
229
229
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Announcement.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Announcement/Announcement.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAI1E,QAAA,MAAM,IAAI,EAAE,6BAwCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 {AnnouncementProps$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
|
+
/**
|
|
22
|
+
* Used when an element has children.
|
|
23
|
+
*/
|
|
24
|
+
export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
25
|
+
children?: preact.ComponentChildren;
|
|
26
|
+
}
|
|
27
|
+
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
28
|
+
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
29
|
+
};
|
|
30
|
+
export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = (EventListener & {
|
|
31
|
+
(event: CallbackEvent<TTagName, TEvent>): void;
|
|
32
|
+
}) | null;
|
|
33
|
+
|
|
34
|
+
declare const tagName = "s-announcement";
|
|
35
|
+
export interface AnnouncementEvents extends Pick<AnnouncementProps$1, 'onAfterToggle' | 'onDismiss' | 'onToggle'> {
|
|
36
|
+
}
|
|
37
|
+
export interface AnnouncementElementEvents {
|
|
38
|
+
/**
|
|
39
|
+
* Callback fired when the element state changes **after** any animations have finished.
|
|
40
|
+
*
|
|
41
|
+
* - If the element transitioned from hidden to showing, the `oldState` property will be set to `closed` and the
|
|
42
|
+
* `newState` property will be set to `open`.
|
|
43
|
+
* - If the element transitioned from showing to hidden, the `oldState` property will be set to `open` and the
|
|
44
|
+
* `newState` will be `closed`.
|
|
45
|
+
*
|
|
46
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState
|
|
47
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState
|
|
48
|
+
*/
|
|
49
|
+
aftertoggle?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
50
|
+
/**
|
|
51
|
+
* Callback fired when the announcement is dismissed by the user
|
|
52
|
+
* (either via the built-in dismiss button or programmatically).
|
|
53
|
+
*/
|
|
54
|
+
dismiss?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
55
|
+
/**
|
|
56
|
+
* Callback straight after the element state changes.
|
|
57
|
+
*
|
|
58
|
+
* - If the element is transitioning from hidden to showing, the `oldState` property will be set to `closed` and the
|
|
59
|
+
* `newState` property will be set to `open`.
|
|
60
|
+
* - If the element is transitioning from showing to hidden, then `oldState` property will be set to `open` and the
|
|
61
|
+
* `newState` will be `closed`.
|
|
62
|
+
*
|
|
63
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/toggle_event
|
|
64
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState
|
|
65
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState
|
|
66
|
+
*/
|
|
67
|
+
toggle?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
68
|
+
}
|
|
69
|
+
export interface AnnouncementElement extends AnnouncementMethods, Omit<HTMLElement, 'id' | 'ontoggle'> {
|
|
70
|
+
onaftertoggle?: AnnouncementEvents['onAfterToggle'];
|
|
71
|
+
ondismiss?: AnnouncementEvents['onDismiss'];
|
|
72
|
+
ontoggle?: AnnouncementEvents['onToggle'];
|
|
73
|
+
}
|
|
74
|
+
export interface AnnouncementProps extends AnnouncementEvents {
|
|
75
|
+
}
|
|
76
|
+
export interface AnnouncementMethods {
|
|
77
|
+
dismiss: () => void;
|
|
78
|
+
}
|
|
79
|
+
export interface AnnouncementElementMethods {
|
|
80
|
+
dismiss: AnnouncementMethods['dismiss'];
|
|
81
|
+
}
|
|
82
|
+
declare global {
|
|
83
|
+
interface HTMLElementTagNameMap {
|
|
84
|
+
[tagName]: AnnouncementElement;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
declare module 'preact' {
|
|
88
|
+
namespace createElement.JSX {
|
|
89
|
+
interface IntrinsicElements {
|
|
90
|
+
[tagName]: AnnouncementProps & BaseElementPropsWithChildren<AnnouncementElement>;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type { AnnouncementElement, AnnouncementElementEvents, AnnouncementElementMethods, AnnouncementEvents, AnnouncementMethods, AnnouncementProps };
|
|
@@ -24,7 +24,13 @@ export interface BaseElementProps<TClass = HTMLElement> {
|
|
|
24
24
|
export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
25
25
|
children?: preact.ComponentChildren;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Used as the single source of truth for checkout icon types.
|
|
29
|
+
*
|
|
30
|
+
* @see https://github.com/Shopify/ui-api-design/blob/main/packages/ui-api-design/src/components/Icon/Icon.ts#L10
|
|
31
|
+
*/
|
|
32
|
+
declare const CHECKOUT_AVAILABLE_ICONS: readonly ["alert-circle", "alert-triangle-filled", "alert-triangle", "arrow-down", "arrow-left", "arrow-right", "arrow-up-right", "arrow-up", "bag", "bullet", "calendar", "camera", "caret-down", "cart", "cash-dollar", "categories", "check-circle", "check", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle", "clipboard", "clock", "credit-card", "delete", "delivered", "delivery", "disabled", "discount", "edit", "email", "empty", "external", "filter", "geolocation", "gift-card", "globe", "grid", "image", "info-filled", "info", "list-bulleted", "location", "lock", "map", "menu-horizontal", "menu-vertical", "menu", "minus", "mobile", "note", "order", "organization", "plus", "profile", "question-circle-filled", "question-circle", "reorder", "reset", "return", "savings", "search", "settings", "star-filled", "star-half", "star", "store", "truck", "upload", "x-circle-filled", "x-circle", "x"];
|
|
33
|
+
export type ReducedIconTypes = (typeof CHECKOUT_AVAILABLE_ICONS)[number];
|
|
28
34
|
|
|
29
35
|
declare const tagName = "s-badge";
|
|
30
36
|
export interface BadgeProps extends Pick<BadgeProps$1, 'color' | 'icon' | 'iconPosition' | 'id' | 'size' | 'tone'> {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/Chip/Chip.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAI1E,QAAA,MAAM,IAAI,EAAE,6BA+BX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 {ChipProps$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
|
+
/**
|
|
22
|
+
* Used when an element has children.
|
|
23
|
+
*/
|
|
24
|
+
export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
25
|
+
children?: preact.ComponentChildren;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare const tagName = "s-chip";
|
|
29
|
+
export interface ChipElementProps extends Pick<ChipProps$1, 'accessibilityLabel' | 'id'> {
|
|
30
|
+
}
|
|
31
|
+
export interface ChipElementSlots {
|
|
32
|
+
/**
|
|
33
|
+
* The graphic to display inside of the chip.
|
|
34
|
+
*
|
|
35
|
+
* Only `s-icon` element and its `type` attribute are supported.
|
|
36
|
+
*/
|
|
37
|
+
graphic?: HTMLElement;
|
|
38
|
+
}
|
|
39
|
+
export interface ChipProps extends ChipElementProps {
|
|
40
|
+
}
|
|
41
|
+
export interface ChipElement extends ChipProps, Omit<HTMLElement, 'id'> {
|
|
42
|
+
}
|
|
43
|
+
declare global {
|
|
44
|
+
interface HTMLElementTagNameMap {
|
|
45
|
+
[tagName]: ChipElement;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
declare module 'preact' {
|
|
49
|
+
namespace createElement.JSX {
|
|
50
|
+
interface IntrinsicElements {
|
|
51
|
+
[tagName]: ChipProps & BaseElementPropsWithChildren<ChipElement>;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type { ChipElement, ChipElementProps, ChipElementSlots, ChipProps };
|
|
@@ -0,0 +1,67 @@
|
|
|
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 {ChoiceProps$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
|
+
/**
|
|
22
|
+
* Used when an element has children.
|
|
23
|
+
*/
|
|
24
|
+
export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
25
|
+
children?: preact.ComponentChildren;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare const tagName = "s-choice";
|
|
29
|
+
export interface ChoiceProps extends Pick<ChoiceProps$1, 'accessibilityLabel' | 'defaultSelected' | 'disabled' | 'id' | 'selected' | 'error' | 'value'> {
|
|
30
|
+
}
|
|
31
|
+
export interface ChoiceElementSlots {
|
|
32
|
+
/**
|
|
33
|
+
* Additional text to provide context or guidance for the input.
|
|
34
|
+
*
|
|
35
|
+
* This text is displayed along with the input and its label
|
|
36
|
+
* to offer more information or instructions to the user.
|
|
37
|
+
*
|
|
38
|
+
* @implementation this content should be linked to the input with an `aria-describedby` attribute.
|
|
39
|
+
*/
|
|
40
|
+
details?: HTMLElement;
|
|
41
|
+
/**
|
|
42
|
+
* Secondary content for a choice.
|
|
43
|
+
*/
|
|
44
|
+
secondaryContent?: HTMLElement;
|
|
45
|
+
/**
|
|
46
|
+
* Content to display when the option is selected.
|
|
47
|
+
*
|
|
48
|
+
* This can be used to provide additional information or options related to the choice.
|
|
49
|
+
*/
|
|
50
|
+
selectedContent?: HTMLElement;
|
|
51
|
+
}
|
|
52
|
+
export interface ChoiceElement extends ChoiceProps, Omit<HTMLElement, 'id'> {
|
|
53
|
+
}
|
|
54
|
+
declare global {
|
|
55
|
+
interface HTMLElementTagNameMap {
|
|
56
|
+
[tagName]: ChoiceElement;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
declare module 'preact' {
|
|
60
|
+
namespace createElement.JSX {
|
|
61
|
+
interface IntrinsicElements {
|
|
62
|
+
[tagName]: ChoiceProps & BaseElementPropsWithChildren<ChoiceElement>;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type { ChoiceElement, ChoiceElementSlots, ChoiceProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChoiceList.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/ChoiceList/ChoiceList.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAK1E,QAAA,MAAM,IAAI,EAAE,6BAyCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 {ChoiceListProps$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
|
+
/**
|
|
22
|
+
* Used when an element has children.
|
|
23
|
+
*/
|
|
24
|
+
export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
25
|
+
children?: preact.ComponentChildren;
|
|
26
|
+
}
|
|
27
|
+
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
28
|
+
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
29
|
+
};
|
|
30
|
+
export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = (EventListener & {
|
|
31
|
+
(event: CallbackEvent<TTagName, TEvent>): void;
|
|
32
|
+
}) | null;
|
|
33
|
+
|
|
34
|
+
declare const tagName = "s-choice-list";
|
|
35
|
+
export interface ChoiceListElementProps extends Pick<ChoiceListProps$1, 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'multiple' | 'name' | 'values' | 'variant'> {
|
|
36
|
+
}
|
|
37
|
+
export interface ChoiceListEvents extends Pick<ChoiceListProps$1, 'onChange'> {
|
|
38
|
+
}
|
|
39
|
+
export interface ChoiceListElementEvents {
|
|
40
|
+
/**
|
|
41
|
+
* A callback that is run whenever the control is changed.
|
|
42
|
+
*
|
|
43
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
|
|
44
|
+
*/
|
|
45
|
+
change?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
46
|
+
}
|
|
47
|
+
export interface ChoiceListElement extends ChoiceListElementProps, Omit<HTMLElement, 'id' | 'onchange'> {
|
|
48
|
+
onchange: ChoiceListEvents['onChange'];
|
|
49
|
+
}
|
|
50
|
+
export interface ChoiceListProps extends ChoiceListElementProps, ChoiceListEvents {
|
|
51
|
+
}
|
|
52
|
+
declare global {
|
|
53
|
+
interface HTMLElementTagNameMap {
|
|
54
|
+
[tagName]: ChoiceListElement;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
declare module 'preact' {
|
|
58
|
+
namespace createElement.JSX {
|
|
59
|
+
interface IntrinsicElements {
|
|
60
|
+
[tagName]: ChoiceListProps & BaseElementPropsWithChildren<ChoiceListElement>;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type { ChoiceListElement, ChoiceListElementEvents, ChoiceListElementProps, ChoiceListEvents, ChoiceListProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClickableChip.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/ClickableChip/ClickableChip.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAI1E,QAAA,MAAM,IAAI,EAAE,6BAoCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 {ClickableChipProps$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
|
+
/**
|
|
22
|
+
* Used when an element has children.
|
|
23
|
+
*/
|
|
24
|
+
export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
25
|
+
children?: preact.ComponentChildren;
|
|
26
|
+
}
|
|
27
|
+
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
28
|
+
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
29
|
+
};
|
|
30
|
+
export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = (EventListener & {
|
|
31
|
+
(event: CallbackEvent<TTagName, TEvent>): void;
|
|
32
|
+
}) | null;
|
|
33
|
+
|
|
34
|
+
declare const tagName = "s-clickable-chip";
|
|
35
|
+
export interface ClickableChipElementProps extends Pick<ClickableChipProps$1, 'accessibilityLabel' | 'disabled' | 'hidden' | 'href' | 'id' | 'removable'> {
|
|
36
|
+
}
|
|
37
|
+
export interface ClickableChipEvents extends Pick<ClickableChipProps$1, 'onAfterHide' | 'onClick' | 'onRemove'> {
|
|
38
|
+
}
|
|
39
|
+
export interface ClickableChipElementEvents {
|
|
40
|
+
/**
|
|
41
|
+
* Event handler when the chip has fully hidden.
|
|
42
|
+
*
|
|
43
|
+
* The `hidden` property will be `true` when this event fires.
|
|
44
|
+
*/
|
|
45
|
+
afterhide?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
46
|
+
/**
|
|
47
|
+
* Event handler when the chip is clicked.
|
|
48
|
+
*/
|
|
49
|
+
click?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
50
|
+
/**
|
|
51
|
+
* Event handler when the chip is removed.
|
|
52
|
+
*/
|
|
53
|
+
remove?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
54
|
+
}
|
|
55
|
+
export interface ClickableChipElementSlots {
|
|
56
|
+
/**
|
|
57
|
+
* The graphic to display inside of the chip.
|
|
58
|
+
*
|
|
59
|
+
* Only `s-icon` element and its `type` attribute are supported.
|
|
60
|
+
*/
|
|
61
|
+
graphic?: HTMLElement;
|
|
62
|
+
}
|
|
63
|
+
export interface ClickableChipElement extends ClickableChipElementProps, Omit<HTMLElement, 'id' | 'hidden' | 'onclick'> {
|
|
64
|
+
onafterhide: ClickableChipEvents['onAfterHide'];
|
|
65
|
+
onclick: ClickableChipEvents['onClick'];
|
|
66
|
+
onremove: ClickableChipEvents['onRemove'];
|
|
67
|
+
}
|
|
68
|
+
export interface ClickableChipProps extends ClickableChipElementProps, ClickableChipEvents {
|
|
69
|
+
}
|
|
70
|
+
declare global {
|
|
71
|
+
interface HTMLElementTagNameMap {
|
|
72
|
+
[tagName]: ClickableChipElement;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
declare module 'preact' {
|
|
76
|
+
namespace createElement.JSX {
|
|
77
|
+
interface IntrinsicElements {
|
|
78
|
+
[tagName]: ClickableChipProps & BaseElementPropsWithChildren<ClickableChipElement>;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type { ClickableChipElement, ClickableChipElementEvents, ClickableChipElementProps, ClickableChipElementSlots, ClickableChipEvents, ClickableChipProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/DateField/DateField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAI1E,QAAA,MAAM,IAAI,EAAE,6BA8BX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|