@shopify/ui-extensions 2025.10.0-rc.42 → 2025.10.0-rc.44
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/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 -9
- package/build/ts/surfaces/admin/components/Badge/Badge.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Badge.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Banner.d.ts +18 -18
- package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Box.d.ts +66 -9
- package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Button.d.ts +26 -26
- package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +9 -6
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +22 -28
- package/build/ts/surfaces/admin/components/Chip.d.ts +4 -4
- package/build/ts/surfaces/admin/components/Choice.d.ts +6 -11
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +18 -18
- package/build/ts/surfaces/admin/components/Clickable/Clickable.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Clickable.d.ts +89 -32
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +17 -17
- package/build/ts/surfaces/admin/components/ColorField.d.ts +3 -3
- 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 -3
- package/build/ts/surfaces/admin/components/Divider.d.ts +3 -3
- package/build/ts/surfaces/admin/components/DropZone/DropZone.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/EmailField.d.ts +27 -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 +119 -12
- package/build/ts/surfaces/admin/components/GridItem.d.ts +66 -9
- package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Heading.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Icon.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Image.d.ts +84 -27
- package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Link.d.ts +22 -22
- package/build/ts/surfaces/admin/components/ListItem.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Menu.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Modal.d.ts +16 -16
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +30 -29
- package/build/ts/surfaces/admin/components/NumberField.d.ts +29 -27
- package/build/ts/surfaces/admin/components/Option.d.ts +6 -4
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +6 -4
- package/build/ts/surfaces/admin/components/OrderedList/OrderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Page.d.ts +14 -9
- package/build/ts/surfaces/admin/components/Paragraph/Paragraph.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +3 -3
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +27 -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 +27 -27
- package/build/ts/surfaces/admin/components/Section/Section.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Section.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Select.d.ts +29 -27
- package/build/ts/surfaces/admin/components/Spinner.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Stack/Stack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Stack.d.ts +83 -9
- package/build/ts/surfaces/admin/components/Switch.d.ts +21 -21
- package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Table.d.ts +4 -4
- package/build/ts/surfaces/admin/components/TableBody.d.ts +3 -3
- package/build/ts/surfaces/admin/components/TableCell.d.ts +3 -3
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +3 -3
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +3 -3
- package/build/ts/surfaces/admin/components/TableRow.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Text.d.ts +3 -3
- package/build/ts/surfaces/admin/components/TextArea.d.ts +27 -27
- package/build/ts/surfaces/admin/components/TextField.d.ts +28 -28
- package/build/ts/surfaces/admin/components/Thumbnail.d.ts +11 -11
- package/build/ts/surfaces/admin/components/Tooltip/Tooltip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Tooltip.d.ts +3 -3
- package/build/ts/surfaces/admin/components/URLField.d.ts +27 -27
- package/build/ts/surfaces/admin/components/UnorderedList/UnorderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +3 -3
- package/build/ts/surfaces/admin/components/shared.d.ts +2 -2
- package/build/ts/surfaces/admin/extension-targets.d.ts +5 -5
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- 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/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/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/Badge.d.ts +7 -1
- 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/DateField.d.ts +87 -0
- package/build/ts/surfaces/customer-account/components/DatePicker.d.ts +77 -0
- package/build/ts/surfaces/customer-account/components/Icon.d.ts +7 -1
- package/build/ts/surfaces/customer-account/components/Option.d.ts +46 -0
- 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/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 -2
- 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/Banner/Banner.doc.d.ts.map +1 -1
- 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/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 -9
- package/src/surfaces/admin/components/Badge.d.ts +3 -3
- package/src/surfaces/admin/components/Banner.d.ts +18 -18
- package/src/surfaces/admin/components/Box.d.ts +66 -9
- package/src/surfaces/admin/components/Button.d.ts +26 -26
- package/src/surfaces/admin/components/ButtonGroup.d.ts +9 -6
- package/src/surfaces/admin/components/Checkbox.d.ts +22 -28
- package/src/surfaces/admin/components/Chip.d.ts +4 -4
- package/src/surfaces/admin/components/Choice.d.ts +6 -11
- package/src/surfaces/admin/components/ChoiceList.d.ts +18 -18
- package/src/surfaces/admin/components/Clickable.d.ts +89 -32
- package/src/surfaces/admin/components/ClickableChip.d.ts +17 -17
- package/src/surfaces/admin/components/ColorField.d.ts +3 -3
- 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 -3
- package/src/surfaces/admin/components/Divider.d.ts +3 -3
- package/src/surfaces/admin/components/EmailField.d.ts +27 -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 +119 -12
- package/src/surfaces/admin/components/GridItem.d.ts +66 -9
- package/src/surfaces/admin/components/Heading.d.ts +3 -3
- package/src/surfaces/admin/components/Icon.d.ts +3 -3
- package/src/surfaces/admin/components/Image.d.ts +84 -27
- package/src/surfaces/admin/components/Link.d.ts +22 -22
- package/src/surfaces/admin/components/ListItem.d.ts +3 -3
- package/src/surfaces/admin/components/Menu.d.ts +3 -3
- package/src/surfaces/admin/components/Modal.d.ts +16 -16
- package/src/surfaces/admin/components/MoneyField.d.ts +30 -29
- package/src/surfaces/admin/components/NumberField.d.ts +29 -27
- package/src/surfaces/admin/components/Option.d.ts +6 -4
- package/src/surfaces/admin/components/OptionGroup.d.ts +6 -4
- package/src/surfaces/admin/components/OrderedList.d.ts +3 -3
- package/src/surfaces/admin/components/Page.d.ts +14 -9
- package/src/surfaces/admin/components/Paragraph.d.ts +3 -3
- package/src/surfaces/admin/components/PasswordField.d.ts +27 -27
- package/src/surfaces/admin/components/QueryContainer.d.ts +3 -3
- package/src/surfaces/admin/components/SearchField.d.ts +27 -27
- package/src/surfaces/admin/components/Section.d.ts +3 -3
- package/src/surfaces/admin/components/Select.d.ts +29 -27
- package/src/surfaces/admin/components/Spinner.d.ts +3 -3
- package/src/surfaces/admin/components/Stack.d.ts +83 -9
- package/src/surfaces/admin/components/Switch.d.ts +21 -21
- package/src/surfaces/admin/components/Table.d.ts +4 -4
- package/src/surfaces/admin/components/TableBody.d.ts +3 -3
- package/src/surfaces/admin/components/TableCell.d.ts +3 -3
- package/src/surfaces/admin/components/TableHeader.d.ts +3 -3
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +3 -3
- package/src/surfaces/admin/components/TableRow.d.ts +3 -3
- package/src/surfaces/admin/components/Text.d.ts +3 -3
- package/src/surfaces/admin/components/TextArea.d.ts +27 -27
- package/src/surfaces/admin/components/TextField.d.ts +28 -28
- package/src/surfaces/admin/components/Thumbnail.d.ts +11 -11
- package/src/surfaces/admin/components/Tooltip.d.ts +3 -3
- package/src/surfaces/admin/components/URLField.d.ts +27 -27
- package/src/surfaces/admin/components/UnorderedList.d.ts +3 -3
- package/src/surfaces/admin/components/patterns/examples/homepage.jsx +3 -3
- package/src/surfaces/admin/components/shared.d.ts +2 -2
- 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 +655 -105
- package/src/surfaces/admin/extension-targets.ts +5 -5
- package/src/surfaces/checkout/api/announcement/announcement.ts +7 -0
- 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 +1 -1
- 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 +1 -1
- 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 -1
- 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 -1
- 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 +2 -2
- package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction.example.html +5 -11
- package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +2 -2
- package/build/ts/surfaces/admin/components/DropZone.d.ts +0 -160
- package/build/ts/surfaces/admin/components/Popover.d.ts +0 -379
- package/src/surfaces/admin/components/DropZone.d.ts +0 -160
- package/src/surfaces/admin/components/Popover.d.ts +0 -379
|
@@ -0,0 +1,77 @@
|
|
|
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 {DatePickerProps$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-date-picker";
|
|
29
|
+
export interface DatePickerElementProps extends Pick<DatePickerProps$1, 'allow' | 'allowDays' | 'defaultValue' | 'defaultView' | 'disabled' | 'disallow' | 'disallowDays' | 'id' | 'name' | 'type' | 'value' | 'view'> {
|
|
30
|
+
}
|
|
31
|
+
export interface DatePickerEvents extends Pick<DatePickerProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'onViewChange'> {
|
|
32
|
+
}
|
|
33
|
+
export interface DatePickerElementEvents {
|
|
34
|
+
/**
|
|
35
|
+
* Callback when the element loses focus.
|
|
36
|
+
*/
|
|
37
|
+
blur?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
38
|
+
/**
|
|
39
|
+
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
40
|
+
*/
|
|
41
|
+
change?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
42
|
+
/**
|
|
43
|
+
* Callback when the element receives focus.
|
|
44
|
+
*/
|
|
45
|
+
focus?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
46
|
+
/**
|
|
47
|
+
* Callback when the user makes any changes in the field.
|
|
48
|
+
*/
|
|
49
|
+
input?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
50
|
+
/**
|
|
51
|
+
* Callback when the view changes.
|
|
52
|
+
*/
|
|
53
|
+
viewChange?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
54
|
+
}
|
|
55
|
+
export interface DatePickerElement extends DatePickerElementProps, Omit<DatePickerEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'onViewChange'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput'> {
|
|
56
|
+
onblur: DatePickerEvents['onBlur'];
|
|
57
|
+
onchange: DatePickerEvents['onChange'];
|
|
58
|
+
onfocus: DatePickerEvents['onFocus'];
|
|
59
|
+
oninput: DatePickerEvents['onInput'];
|
|
60
|
+
onviewchange: DatePickerEvents['onViewChange'];
|
|
61
|
+
}
|
|
62
|
+
export interface DatePickerProps extends DatePickerElementProps, DatePickerEvents {
|
|
63
|
+
}
|
|
64
|
+
declare global {
|
|
65
|
+
interface HTMLElementTagNameMap {
|
|
66
|
+
[tagName]: DatePickerElement;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
declare module 'preact' {
|
|
70
|
+
namespace createElement.JSX {
|
|
71
|
+
interface IntrinsicElements {
|
|
72
|
+
[tagName]: DatePickerProps & BaseElementProps<DatePickerElement>;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type { DatePickerElement, DatePickerElementEvents, DatePickerElementProps, DatePickerEvents, DatePickerProps };
|
|
@@ -18,7 +18,13 @@ export interface BaseElementProps<TClass = HTMLElement> {
|
|
|
18
18
|
ref?: preact.Ref<TClass>;
|
|
19
19
|
slot?: Lowercase<string>;
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Used as the single source of truth for checkout icon types.
|
|
23
|
+
*
|
|
24
|
+
* @see https://github.com/Shopify/ui-api-design/blob/main/packages/ui-api-design/src/components/Icon/Icon.ts#L10
|
|
25
|
+
*/
|
|
26
|
+
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"];
|
|
27
|
+
export type ReducedIconTypes = (typeof CHECKOUT_AVAILABLE_ICONS)[number];
|
|
22
28
|
|
|
23
29
|
declare const tagName = "s-icon";
|
|
24
30
|
export interface IconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
|
|
@@ -0,0 +1,46 @@
|
|
|
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 {OptionProps$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-option";
|
|
29
|
+
export interface OptionProps extends Pick<OptionProps$1, 'accessibilityLabel' | 'defaultSelected' | 'disabled' | 'id' | 'selected' | 'value'> {
|
|
30
|
+
}
|
|
31
|
+
export interface OptionElement extends OptionProps, Omit<HTMLElement, 'id'> {
|
|
32
|
+
}
|
|
33
|
+
declare global {
|
|
34
|
+
interface HTMLElementTagNameMap {
|
|
35
|
+
[tagName]: OptionElement;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
declare module 'preact' {
|
|
39
|
+
namespace createElement.JSX {
|
|
40
|
+
interface IntrinsicElements {
|
|
41
|
+
[tagName]: OptionProps & BaseElementPropsWithChildren<OptionElement>;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type { OptionElement, OptionProps };
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
/**
|
|
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-password-field";
|
|
35
|
+
export interface PasswordFieldElementProps extends Pick<PasswordFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'name' | 'readOnly' | 'required' | 'value'> {
|
|
36
|
+
}
|
|
37
|
+
export interface PasswordFieldEvents extends Pick<PasswordFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
38
|
+
}
|
|
39
|
+
export interface PasswordFieldElementEvents {
|
|
40
|
+
/**
|
|
41
|
+
* Callback when the element loses focus.
|
|
42
|
+
*
|
|
43
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
44
|
+
*/
|
|
45
|
+
blur?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
46
|
+
/**
|
|
47
|
+
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
48
|
+
*
|
|
49
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
|
|
50
|
+
*/
|
|
51
|
+
change?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
52
|
+
/**
|
|
53
|
+
* Callback when the element receives focus.
|
|
54
|
+
*
|
|
55
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
56
|
+
*/
|
|
57
|
+
focus?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
58
|
+
/**
|
|
59
|
+
* Callback when the user makes any changes in the field.
|
|
60
|
+
*
|
|
61
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
|
|
62
|
+
*/
|
|
63
|
+
input?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
64
|
+
}
|
|
65
|
+
export interface PasswordFieldElementSlots {
|
|
66
|
+
/**
|
|
67
|
+
* Additional content to be displayed in the field.
|
|
68
|
+
* Commonly used to display an icon that activates a tooltip providing more information.
|
|
69
|
+
*/
|
|
70
|
+
accessory?: HTMLElement;
|
|
71
|
+
}
|
|
72
|
+
export interface PasswordFieldElement extends PasswordFieldProps, Omit<HTMLElement, 'id' | 'inputMode' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
73
|
+
onblur: PasswordFieldEvents['onBlur'];
|
|
74
|
+
onchange: PasswordFieldEvents['onChange'];
|
|
75
|
+
onfocus: PasswordFieldEvents['onFocus'];
|
|
76
|
+
oninput: PasswordFieldEvents['onInput'];
|
|
77
|
+
}
|
|
78
|
+
export interface PasswordFieldProps extends PasswordFieldElementProps, PasswordFieldEvents {
|
|
79
|
+
}
|
|
80
|
+
declare global {
|
|
81
|
+
interface HTMLElementTagNameMap {
|
|
82
|
+
[tagName]: PasswordFieldElement;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
declare module 'preact' {
|
|
86
|
+
namespace createElement.JSX {
|
|
87
|
+
interface IntrinsicElements {
|
|
88
|
+
[tagName]: PasswordFieldProps & BaseElementPropsWithChildren<PasswordFieldElement>;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type { PasswordFieldElement, PasswordFieldElementEvents, PasswordFieldElementProps, PasswordFieldElementSlots, PasswordFieldEvents, PasswordFieldProps };
|
|
@@ -0,0 +1,48 @@
|
|
|
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 {QueryContainerProps$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-query-container";
|
|
29
|
+
export interface QueryContainerElementProps extends Pick<QueryContainerProps$1, 'containerName' | 'id'> {
|
|
30
|
+
}
|
|
31
|
+
export interface QueryContainerElement extends QueryContainerElementProps, Omit<HTMLElement, 'id'> {
|
|
32
|
+
}
|
|
33
|
+
export interface QueryContainerProps extends QueryContainerElementProps {
|
|
34
|
+
}
|
|
35
|
+
declare global {
|
|
36
|
+
interface HTMLElementTagNameMap {
|
|
37
|
+
[tagName]: QueryContainerElement;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
declare module 'preact' {
|
|
41
|
+
namespace createElement.JSX {
|
|
42
|
+
interface IntrinsicElements {
|
|
43
|
+
[tagName]: QueryContainerProps & BaseElementPropsWithChildren<QueryContainerElement>;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type { QueryContainerElement, QueryContainerElementProps, QueryContainerProps };
|
|
@@ -0,0 +1,79 @@
|
|
|
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 {SelectProps$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-select";
|
|
35
|
+
export interface SelectElementProps extends Pick<SelectProps$1, 'autocomplete' | 'disabled' | 'error' | 'id' | 'label' | 'name' | 'placeholder' | 'required' | 'value'> {
|
|
36
|
+
}
|
|
37
|
+
export interface SelectEvents extends Pick<SelectProps$1, 'onBlur' | 'onChange' | 'onFocus'> {
|
|
38
|
+
}
|
|
39
|
+
export interface SelectElementEvents {
|
|
40
|
+
/**
|
|
41
|
+
* Callback when the element loses focus.
|
|
42
|
+
*
|
|
43
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
44
|
+
*/
|
|
45
|
+
blur?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
46
|
+
/**
|
|
47
|
+
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
48
|
+
*
|
|
49
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
|
|
50
|
+
*/
|
|
51
|
+
change?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
52
|
+
/**
|
|
53
|
+
* Callback when the element receives focus.
|
|
54
|
+
*
|
|
55
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
56
|
+
*/
|
|
57
|
+
focus?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
58
|
+
}
|
|
59
|
+
export interface SelectElement extends SelectElementProps, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus'> {
|
|
60
|
+
onblur: SelectEvents['onBlur'];
|
|
61
|
+
onchange: SelectEvents['onChange'];
|
|
62
|
+
onfocus: SelectEvents['onFocus'];
|
|
63
|
+
}
|
|
64
|
+
export interface SelectProps extends SelectElementProps, SelectEvents {
|
|
65
|
+
}
|
|
66
|
+
declare global {
|
|
67
|
+
interface HTMLElementTagNameMap {
|
|
68
|
+
[tagName]: SelectElement;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
declare module 'preact' {
|
|
72
|
+
namespace createElement.JSX {
|
|
73
|
+
interface IntrinsicElements {
|
|
74
|
+
[tagName]: SelectProps & BaseElementPropsWithChildren<SelectElement>;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type { SelectElement, SelectElementEvents, SelectElementProps, SelectEvents, SelectProps };
|
|
@@ -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
|
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
29
35
|
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
30
36
|
};
|
|
@@ -0,0 +1,93 @@
|
|
|
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 {URLFieldProps} 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-url-field";
|
|
35
|
+
export interface UrlFieldElementProps extends Pick<URLFieldProps, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'readOnly' | 'required' | 'value'> {
|
|
36
|
+
}
|
|
37
|
+
export interface UrlFieldEvents extends Pick<URLFieldProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
38
|
+
}
|
|
39
|
+
export interface UrlFieldElementEvents {
|
|
40
|
+
/**
|
|
41
|
+
* Callback when the element loses focus.
|
|
42
|
+
*
|
|
43
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
44
|
+
*/
|
|
45
|
+
blur?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
46
|
+
/**
|
|
47
|
+
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
48
|
+
*
|
|
49
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
|
|
50
|
+
*/
|
|
51
|
+
change?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
52
|
+
/**
|
|
53
|
+
* Callback when the element receives focus.
|
|
54
|
+
*
|
|
55
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
56
|
+
*/
|
|
57
|
+
focus?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
58
|
+
/**
|
|
59
|
+
* Callback when the user makes any changes in the field.
|
|
60
|
+
*
|
|
61
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
|
|
62
|
+
*/
|
|
63
|
+
input?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
64
|
+
}
|
|
65
|
+
export interface UrlFieldElementSlots {
|
|
66
|
+
/**
|
|
67
|
+
* Additional content to be displayed in the field.
|
|
68
|
+
* Commonly used to display an icon that activates a tooltip providing more information.
|
|
69
|
+
*/
|
|
70
|
+
accessory?: HTMLElement;
|
|
71
|
+
}
|
|
72
|
+
export interface UrlFieldElement extends UrlFieldElementProps, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
73
|
+
onblur: UrlFieldEvents['onBlur'];
|
|
74
|
+
onchange: UrlFieldEvents['onChange'];
|
|
75
|
+
onfocus: UrlFieldEvents['onFocus'];
|
|
76
|
+
oninput: UrlFieldEvents['onInput'];
|
|
77
|
+
}
|
|
78
|
+
export interface UrlFieldProps extends UrlFieldElementProps, UrlFieldEvents {
|
|
79
|
+
}
|
|
80
|
+
declare global {
|
|
81
|
+
interface HTMLElementTagNameMap {
|
|
82
|
+
[tagName]: UrlFieldElement;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
declare module 'preact' {
|
|
86
|
+
namespace createElement.JSX {
|
|
87
|
+
interface IntrinsicElements {
|
|
88
|
+
[tagName]: UrlFieldProps & BaseElementPropsWithChildren<UrlFieldElement>;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type { UrlFieldElement, UrlFieldElementEvents, UrlFieldElementProps, UrlFieldElementSlots, UrlFieldEvents, UrlFieldProps };
|
|
@@ -147,6 +147,21 @@ export interface ExtendableEvent extends Event {
|
|
|
147
147
|
*/
|
|
148
148
|
waitUntil?: (promise: Promise<void>) => void;
|
|
149
149
|
}
|
|
150
|
+
interface AnnouncementProps$1 extends GlobalProps, ToggleEventProps {
|
|
151
|
+
/**
|
|
152
|
+
* The content of the announcement.
|
|
153
|
+
*/
|
|
154
|
+
children?: ComponentChildren;
|
|
155
|
+
/**
|
|
156
|
+
* Callback fired when the announcement is dismissed by the user
|
|
157
|
+
* (either via the built-in dismiss button or programmatically).
|
|
158
|
+
*/
|
|
159
|
+
onDismiss?: (event: Event) => void;
|
|
160
|
+
/**
|
|
161
|
+
* Method to programmatically dismiss the announcement.
|
|
162
|
+
*/
|
|
163
|
+
dismiss: () => void;
|
|
164
|
+
}
|
|
150
165
|
export type SizeKeyword = "small-500" | "small-400" | "small-300" | "small-200" | "small-100" | "small" | "base" | "large" | "large-100" | "large-200" | "large-300" | "large-400" | "large-500";
|
|
151
166
|
export type ColorKeyword = "subdued" | "base" | "strong";
|
|
152
167
|
export type BackgroundColorKeyword = "transparent" | ColorKeyword;
|
|
@@ -1744,6 +1759,30 @@ interface CheckboxProps$1 extends GlobalProps, BaseCheckableProps, FieldErrorPro
|
|
|
1744
1759
|
*/
|
|
1745
1760
|
required?: boolean;
|
|
1746
1761
|
}
|
|
1762
|
+
export interface ChipProps$1 {
|
|
1763
|
+
/**
|
|
1764
|
+
* The content of the chip.
|
|
1765
|
+
*/
|
|
1766
|
+
children?: ComponentChildren;
|
|
1767
|
+
/**
|
|
1768
|
+
* The graphic to display inside of the chip.
|
|
1769
|
+
*
|
|
1770
|
+
* @implementation Only `s-icon` is supported.
|
|
1771
|
+
*/
|
|
1772
|
+
graphic?: ComponentChildren;
|
|
1773
|
+
/**
|
|
1774
|
+
* A label that describes the purpose or contents of the Chip. It will be read to users using assistive technologies such as screen readers.
|
|
1775
|
+
*/
|
|
1776
|
+
accessibilityLabel?: string;
|
|
1777
|
+
/**
|
|
1778
|
+
* Modify the color to be more or less intense.
|
|
1779
|
+
*
|
|
1780
|
+
* @default 'base'
|
|
1781
|
+
*/
|
|
1782
|
+
color?: ColorKeyword;
|
|
1783
|
+
}
|
|
1784
|
+
interface ChipProps$1 extends ChipProps$1, GlobalProps {
|
|
1785
|
+
}
|
|
1747
1786
|
interface ChoiceProps$1 extends GlobalProps, BaseOptionProps {
|
|
1748
1787
|
/**
|
|
1749
1788
|
* Content to use as the choice label.
|
|
@@ -1848,6 +1887,56 @@ interface ClickableProps$1 extends GlobalProps, BaseBoxProps, BaseClickableProps
|
|
|
1848
1887
|
*/
|
|
1849
1888
|
lang?: string;
|
|
1850
1889
|
}
|
|
1890
|
+
interface ClickableChipProps$1 extends ChipProps$1, GlobalProps {
|
|
1891
|
+
/**
|
|
1892
|
+
* Callback when the chip is clicked.
|
|
1893
|
+
*/
|
|
1894
|
+
onClick?: (event: Event) => void;
|
|
1895
|
+
/**
|
|
1896
|
+
* The URL to link to.
|
|
1897
|
+
*
|
|
1898
|
+
* - If set, it will navigate to the location specified by `href` after executing the `click` event.
|
|
1899
|
+
*/
|
|
1900
|
+
href?: string;
|
|
1901
|
+
/**
|
|
1902
|
+
* Whether the chip is removable.
|
|
1903
|
+
*
|
|
1904
|
+
* @default false
|
|
1905
|
+
*/
|
|
1906
|
+
removable?: boolean;
|
|
1907
|
+
/**
|
|
1908
|
+
* Callback when the chip is removed.
|
|
1909
|
+
*/
|
|
1910
|
+
onRemove?: (event: Event) => void;
|
|
1911
|
+
/**
|
|
1912
|
+
* Determines whether the chip is hidden.
|
|
1913
|
+
*
|
|
1914
|
+
* If this property is being set on each framework render (as in 'controlled' usage),
|
|
1915
|
+
* and the chip is `removable`,
|
|
1916
|
+
* ensure you update app state for this property when the `remove` event fires.
|
|
1917
|
+
*
|
|
1918
|
+
* If the chip is not `removable`, it can still be hidden by setting this property.
|
|
1919
|
+
*
|
|
1920
|
+
* @default false
|
|
1921
|
+
*/
|
|
1922
|
+
hidden?: boolean;
|
|
1923
|
+
/**
|
|
1924
|
+
* Event handler when the chip has fully hidden.
|
|
1925
|
+
*
|
|
1926
|
+
* The `hidden` property will be `true` when this event fires.
|
|
1927
|
+
*
|
|
1928
|
+
* @implementation If implementations animate the hiding of the chip,
|
|
1929
|
+
* this event must fire after the chip has fully hidden.
|
|
1930
|
+
* We can add an `onHide` event in future if we want to provide a hook for the start of the animation.
|
|
1931
|
+
*/
|
|
1932
|
+
onAfterHide?: (event: Event) => void;
|
|
1933
|
+
/**
|
|
1934
|
+
* Disables the chip, disallowing any interaction.
|
|
1935
|
+
*
|
|
1936
|
+
* @default false
|
|
1937
|
+
*/
|
|
1938
|
+
disabled?: boolean;
|
|
1939
|
+
}
|
|
1851
1940
|
interface ClipboardItemProps$1 extends GlobalProps {
|
|
1852
1941
|
/**
|
|
1853
1942
|
* Plain text to be written to the clipboard.
|