@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,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.20.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -9,12 +9,35 @@
|
|
|
9
9
|
import type {
|
|
10
10
|
TextFieldProps,
|
|
11
11
|
MoneyFieldProps$1,
|
|
12
|
-
|
|
12
|
+
ComponentChildren,
|
|
13
13
|
} from './shared.d.ts';
|
|
14
14
|
|
|
15
|
+
export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
|
|
16
|
+
currentTarget: HTMLElementTagNameMap[T];
|
|
17
|
+
};
|
|
18
|
+
export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
|
|
19
|
+
| (EventListener & {
|
|
20
|
+
(event: CallbackEvent<T>): void;
|
|
21
|
+
})
|
|
22
|
+
| null;
|
|
23
|
+
export interface FieldReactProps<T extends keyof HTMLElementTagNameMap> {
|
|
24
|
+
onInput?: ((event: CallbackEvent<T>) => void) | null;
|
|
25
|
+
onChange?: ((event: CallbackEvent<T>) => void) | null;
|
|
26
|
+
onFocus?: ((event: CallbackEvent<T>) => void) | null;
|
|
27
|
+
onBlur?: ((event: CallbackEvent<T>) => void) | null;
|
|
28
|
+
}
|
|
29
|
+
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
30
|
+
/** Assigns a unique key to this element. */
|
|
31
|
+
key?: preact.Key;
|
|
32
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
33
|
+
ref?: preact.Ref<TClass>;
|
|
34
|
+
/** Assigns this element to a parent's slot. */
|
|
35
|
+
slot?: Lowercase<string>;
|
|
36
|
+
}
|
|
37
|
+
|
|
15
38
|
export type Styles = string;
|
|
16
39
|
export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
|
|
17
|
-
ShadowRoot: (element: any) =>
|
|
40
|
+
ShadowRoot: (element: any) => ComponentChildren;
|
|
18
41
|
styles?: Styles;
|
|
19
42
|
};
|
|
20
43
|
export interface ActivationEventEsque {
|
|
@@ -72,30 +95,6 @@ declare abstract class PreactCustomElement extends BaseClass {
|
|
|
72
95
|
click({sourceEvent}?: ClickOptions): void;
|
|
73
96
|
}
|
|
74
97
|
|
|
75
|
-
export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
|
|
76
|
-
currentTarget: HTMLElementTagNameMap[T];
|
|
77
|
-
};
|
|
78
|
-
export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
|
|
79
|
-
| (EventListener & {
|
|
80
|
-
(event: CallbackEvent<T>): void;
|
|
81
|
-
})
|
|
82
|
-
| null;
|
|
83
|
-
export interface FieldReactProps<T extends keyof HTMLElementTagNameMap> {
|
|
84
|
-
onInput?: ((event: CallbackEvent<T>) => void) | null;
|
|
85
|
-
onChange?: ((event: CallbackEvent<T>) => void) | null;
|
|
86
|
-
onFocus?: ((event: CallbackEvent<T>) => void) | null;
|
|
87
|
-
onBlur?: ((event: CallbackEvent<T>) => void) | null;
|
|
88
|
-
}
|
|
89
|
-
/** Used when an element does not have children. */
|
|
90
|
-
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
91
|
-
/** Assigns a unique key to this element. */
|
|
92
|
-
key?: preact.Key;
|
|
93
|
-
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
94
|
-
ref?: preact.Ref<TClass>;
|
|
95
|
-
/** Assigns this element to a parent's slot. */
|
|
96
|
-
slot?: Lowercase<string>;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
98
|
declare const internals: unique symbol;
|
|
100
99
|
export type PreactInputProps = Required<
|
|
101
100
|
Pick<TextFieldProps, 'disabled' | 'id' | 'name' | 'value'>
|
|
@@ -199,7 +198,7 @@ declare class PreactFieldElement<Autocomplete extends string = string>
|
|
|
199
198
|
export type RequiredMoneyFieldProps = Required<MoneyFieldProps$1>;
|
|
200
199
|
export interface MoneyFieldProps
|
|
201
200
|
extends Omit<PreactFieldProps, 'value'>,
|
|
202
|
-
Pick<RequiredMoneyFieldProps, 'max' | 'min'
|
|
201
|
+
Pick<RequiredMoneyFieldProps, 'max' | 'min'> {
|
|
203
202
|
value: Required<MoneyFieldProps$1>['value'];
|
|
204
203
|
}
|
|
205
204
|
|
|
@@ -209,7 +208,8 @@ declare class MoneyField
|
|
|
209
208
|
{
|
|
210
209
|
accessor max: MoneyFieldProps['max'];
|
|
211
210
|
accessor min: MoneyFieldProps['min'];
|
|
212
|
-
|
|
211
|
+
get value(): string;
|
|
212
|
+
set value(value: string);
|
|
213
213
|
constructor();
|
|
214
214
|
}
|
|
215
215
|
declare global {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.20.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -9,12 +9,35 @@
|
|
|
9
9
|
import type {
|
|
10
10
|
TextFieldProps,
|
|
11
11
|
NumberFieldProps$1,
|
|
12
|
-
|
|
12
|
+
ComponentChildren,
|
|
13
13
|
} from './shared.d.ts';
|
|
14
14
|
|
|
15
|
+
export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
|
|
16
|
+
currentTarget: HTMLElementTagNameMap[T];
|
|
17
|
+
};
|
|
18
|
+
export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
|
|
19
|
+
| (EventListener & {
|
|
20
|
+
(event: CallbackEvent<T>): void;
|
|
21
|
+
})
|
|
22
|
+
| null;
|
|
23
|
+
export interface FieldReactProps<T extends keyof HTMLElementTagNameMap> {
|
|
24
|
+
onInput?: ((event: CallbackEvent<T>) => void) | null;
|
|
25
|
+
onChange?: ((event: CallbackEvent<T>) => void) | null;
|
|
26
|
+
onFocus?: ((event: CallbackEvent<T>) => void) | null;
|
|
27
|
+
onBlur?: ((event: CallbackEvent<T>) => void) | null;
|
|
28
|
+
}
|
|
29
|
+
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
30
|
+
/** Assigns a unique key to this element. */
|
|
31
|
+
key?: preact.Key;
|
|
32
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
33
|
+
ref?: preact.Ref<TClass>;
|
|
34
|
+
/** Assigns this element to a parent's slot. */
|
|
35
|
+
slot?: Lowercase<string>;
|
|
36
|
+
}
|
|
37
|
+
|
|
15
38
|
export type Styles = string;
|
|
16
39
|
export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
|
|
17
|
-
ShadowRoot: (element: any) =>
|
|
40
|
+
ShadowRoot: (element: any) => ComponentChildren;
|
|
18
41
|
styles?: Styles;
|
|
19
42
|
};
|
|
20
43
|
export interface ActivationEventEsque {
|
|
@@ -72,30 +95,6 @@ declare abstract class PreactCustomElement extends BaseClass {
|
|
|
72
95
|
click({sourceEvent}?: ClickOptions): void;
|
|
73
96
|
}
|
|
74
97
|
|
|
75
|
-
export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
|
|
76
|
-
currentTarget: HTMLElementTagNameMap[T];
|
|
77
|
-
};
|
|
78
|
-
export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
|
|
79
|
-
| (EventListener & {
|
|
80
|
-
(event: CallbackEvent<T>): void;
|
|
81
|
-
})
|
|
82
|
-
| null;
|
|
83
|
-
export interface FieldReactProps<T extends keyof HTMLElementTagNameMap> {
|
|
84
|
-
onInput?: ((event: CallbackEvent<T>) => void) | null;
|
|
85
|
-
onChange?: ((event: CallbackEvent<T>) => void) | null;
|
|
86
|
-
onFocus?: ((event: CallbackEvent<T>) => void) | null;
|
|
87
|
-
onBlur?: ((event: CallbackEvent<T>) => void) | null;
|
|
88
|
-
}
|
|
89
|
-
/** Used when an element does not have children. */
|
|
90
|
-
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
91
|
-
/** Assigns a unique key to this element. */
|
|
92
|
-
key?: preact.Key;
|
|
93
|
-
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
94
|
-
ref?: preact.Ref<TClass>;
|
|
95
|
-
/** Assigns this element to a parent's slot. */
|
|
96
|
-
slot?: Lowercase<string>;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
98
|
declare const internals: unique symbol;
|
|
100
99
|
export type PreactInputProps = Required<
|
|
101
100
|
Pick<TextFieldProps, 'disabled' | 'id' | 'name' | 'value'>
|
|
@@ -214,6 +213,8 @@ declare class NumberField
|
|
|
214
213
|
extends PreactFieldElement<NumberFieldProps['autocomplete']>
|
|
215
214
|
implements NumberFieldProps
|
|
216
215
|
{
|
|
216
|
+
get value(): string;
|
|
217
|
+
set value(value: string);
|
|
217
218
|
accessor inputMode: NumberFieldProps['inputMode'];
|
|
218
219
|
accessor step: NumberFieldProps['step'];
|
|
219
220
|
accessor max: NumberFieldProps['max'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.20.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
8
8
|
/// <reference lib="DOM" />
|
|
9
|
-
import type {OptionProps$1
|
|
9
|
+
import type {ComponentChildren, OptionProps$1} from './shared.d.ts';
|
|
10
10
|
|
|
11
11
|
export interface OptionProps
|
|
12
12
|
extends Required<
|
|
@@ -15,7 +15,7 @@ export interface OptionProps
|
|
|
15
15
|
|
|
16
16
|
export type Styles = string;
|
|
17
17
|
export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
|
|
18
|
-
ShadowRoot: (element: any) =>
|
|
18
|
+
ShadowRoot: (element: any) => ComponentChildren;
|
|
19
19
|
styles?: Styles;
|
|
20
20
|
};
|
|
21
21
|
export interface ActivationEventEsque {
|
|
@@ -73,7 +73,6 @@ declare abstract class PreactCustomElement extends BaseClass {
|
|
|
73
73
|
click({sourceEvent}?: ClickOptions): void;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
/** Used when an element does not have children. */
|
|
77
76
|
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
78
77
|
/** Assigns a unique key to this element. */
|
|
79
78
|
key?: preact.Key;
|
|
@@ -82,11 +81,6 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
82
81
|
/** Assigns this element to a parent's slot. */
|
|
83
82
|
slot?: Lowercase<string>;
|
|
84
83
|
}
|
|
85
|
-
/** Used when an element has children. */
|
|
86
|
-
export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
|
|
87
|
-
extends PreactBaseElementProps<TClass> {
|
|
88
|
-
children?: preact.ComponentChildren;
|
|
89
|
-
}
|
|
90
84
|
|
|
91
85
|
declare class Option extends PreactCustomElement implements OptionProps {
|
|
92
86
|
accessor selected: OptionProps['selected'];
|
|
@@ -103,13 +97,15 @@ declare global {
|
|
|
103
97
|
declare module 'preact' {
|
|
104
98
|
namespace createElement.JSX {
|
|
105
99
|
interface IntrinsicElements {
|
|
106
|
-
[tagName]: OptionJSXProps &
|
|
100
|
+
[tagName]: OptionJSXProps & PreactBaseElementProps<Option>;
|
|
107
101
|
}
|
|
108
102
|
}
|
|
109
103
|
}
|
|
110
104
|
|
|
111
105
|
declare const tagName = 's-option';
|
|
112
|
-
export interface OptionJSXProps
|
|
106
|
+
export interface OptionJSXProps
|
|
107
|
+
extends Partial<OptionProps>,
|
|
108
|
+
Pick<OptionProps$1, 'id'> {}
|
|
113
109
|
|
|
114
110
|
export {Option};
|
|
115
111
|
export type {OptionJSXProps};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.20.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
8
8
|
/// <reference lib="DOM" />
|
|
9
|
-
import type {OptionGroupProps$1
|
|
9
|
+
import type {ComponentChildren, OptionGroupProps$1} from './shared.d.ts';
|
|
10
10
|
|
|
11
11
|
export interface OptionGroupProps
|
|
12
12
|
extends Required<Pick<OptionGroupProps$1, 'disabled' | 'label'>> {}
|
|
13
13
|
|
|
14
14
|
export type Styles = string;
|
|
15
15
|
export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
|
|
16
|
-
ShadowRoot: (element: any) =>
|
|
16
|
+
ShadowRoot: (element: any) => ComponentChildren;
|
|
17
17
|
styles?: Styles;
|
|
18
18
|
};
|
|
19
19
|
export interface ActivationEventEsque {
|
|
@@ -71,7 +71,6 @@ declare abstract class PreactCustomElement extends BaseClass {
|
|
|
71
71
|
click({sourceEvent}?: ClickOptions): void;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
/** Used when an element does not have children. */
|
|
75
74
|
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
76
75
|
/** Assigns a unique key to this element. */
|
|
77
76
|
key?: preact.Key;
|
|
@@ -80,11 +79,6 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
80
79
|
/** Assigns this element to a parent's slot. */
|
|
81
80
|
slot?: Lowercase<string>;
|
|
82
81
|
}
|
|
83
|
-
/** Used when an element has children. */
|
|
84
|
-
export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
|
|
85
|
-
extends PreactBaseElementProps<TClass> {
|
|
86
|
-
children?: preact.ComponentChildren;
|
|
87
|
-
}
|
|
88
82
|
|
|
89
83
|
declare class OptionGroup
|
|
90
84
|
extends PreactCustomElement
|
|
@@ -102,14 +96,15 @@ declare global {
|
|
|
102
96
|
declare module 'preact' {
|
|
103
97
|
namespace createElement.JSX {
|
|
104
98
|
interface IntrinsicElements {
|
|
105
|
-
[tagName]: OptionGroupJSXProps &
|
|
106
|
-
PreactBaseElementPropsWithChildren<OptionGroup>;
|
|
99
|
+
[tagName]: OptionGroupJSXProps & PreactBaseElementProps<OptionGroup>;
|
|
107
100
|
}
|
|
108
101
|
}
|
|
109
102
|
}
|
|
110
103
|
|
|
111
104
|
declare const tagName = 's-option-group';
|
|
112
|
-
export interface OptionGroupJSXProps
|
|
105
|
+
export interface OptionGroupJSXProps
|
|
106
|
+
extends Partial<OptionGroupProps>,
|
|
107
|
+
Pick<OptionGroupProps$1, 'id'> {}
|
|
113
108
|
|
|
114
109
|
export {OptionGroup};
|
|
115
110
|
export type {OptionGroupJSXProps};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.20.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
7
7
|
/// <reference lib="DOM" />
|
|
8
|
-
import type {OrderedListProps$1
|
|
8
|
+
import type {ComponentChildren, OrderedListProps$1} from './shared.d.ts';
|
|
9
9
|
|
|
10
10
|
export interface OrderedListProps extends OrderedListProps$1 {}
|
|
11
11
|
|
|
12
12
|
export type Styles = string;
|
|
13
13
|
export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
|
|
14
|
-
ShadowRoot: (element: any) =>
|
|
14
|
+
ShadowRoot: (element: any) => ComponentChildren;
|
|
15
15
|
styles?: Styles;
|
|
16
16
|
};
|
|
17
17
|
export interface ActivationEventEsque {
|
|
@@ -69,7 +69,6 @@ declare abstract class PreactCustomElement extends BaseClass {
|
|
|
69
69
|
click({sourceEvent}?: ClickOptions): void;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
/** Used when an element does not have children. */
|
|
73
72
|
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
74
73
|
/** Assigns a unique key to this element. */
|
|
75
74
|
key?: preact.Key;
|
|
@@ -78,11 +77,6 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
78
77
|
/** Assigns this element to a parent's slot. */
|
|
79
78
|
slot?: Lowercase<string>;
|
|
80
79
|
}
|
|
81
|
-
/** Used when an element has children. */
|
|
82
|
-
export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
|
|
83
|
-
extends PreactBaseElementProps<TClass> {
|
|
84
|
-
children?: preact.ComponentChildren;
|
|
85
|
-
}
|
|
86
80
|
|
|
87
81
|
declare class OrderedList
|
|
88
82
|
extends PreactCustomElement
|
|
@@ -98,8 +92,7 @@ declare global {
|
|
|
98
92
|
declare module 'preact' {
|
|
99
93
|
namespace createElement.JSX {
|
|
100
94
|
interface IntrinsicElements {
|
|
101
|
-
[tagName]: OrderedListJSXProps &
|
|
102
|
-
PreactBaseElementPropsWithChildren<OrderedList>;
|
|
95
|
+
[tagName]: OrderedListJSXProps & PreactBaseElementProps<OrderedList>;
|
|
103
96
|
}
|
|
104
97
|
}
|
|
105
98
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.20.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
8
8
|
/// <reference lib="DOM" />
|
|
9
|
-
import type {PageProps$1,
|
|
9
|
+
import type {PageProps$1, ComponentChildren} from './shared.d.ts';
|
|
10
10
|
|
|
11
11
|
export interface PageProps
|
|
12
12
|
extends Required<Pick<PageProps$1, 'inlineSize' | 'heading'>> {
|
|
@@ -15,7 +15,7 @@ export interface PageProps
|
|
|
15
15
|
|
|
16
16
|
export type Styles = string;
|
|
17
17
|
export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
|
|
18
|
-
ShadowRoot: (element: any) =>
|
|
18
|
+
ShadowRoot: (element: any) => ComponentChildren;
|
|
19
19
|
styles?: Styles;
|
|
20
20
|
};
|
|
21
21
|
export interface ActivationEventEsque {
|
|
@@ -73,7 +73,6 @@ declare abstract class PreactCustomElement extends BaseClass {
|
|
|
73
73
|
click({sourceEvent}?: ClickOptions): void;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
/** Used when an element does not have children. */
|
|
77
76
|
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
78
77
|
/** Assigns a unique key to this element. */
|
|
79
78
|
key?: preact.Key;
|
|
@@ -82,11 +81,6 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
82
81
|
/** Assigns this element to a parent's slot. */
|
|
83
82
|
slot?: Lowercase<string>;
|
|
84
83
|
}
|
|
85
|
-
/** Used when an element has children. */
|
|
86
|
-
export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
|
|
87
|
-
extends PreactBaseElementProps<TClass> {
|
|
88
|
-
children?: preact.ComponentChildren;
|
|
89
|
-
}
|
|
90
84
|
|
|
91
85
|
declare class Page extends PreactCustomElement implements PageProps {
|
|
92
86
|
accessor inlineSize: PageProps['inlineSize'];
|
|
@@ -103,39 +97,40 @@ declare global {
|
|
|
103
97
|
declare module 'preact' {
|
|
104
98
|
namespace createElement.JSX {
|
|
105
99
|
interface IntrinsicElements {
|
|
106
|
-
[tagName]: Omit<PageJSXProps, 'aside'> &
|
|
107
|
-
PreactBaseElementPropsWithChildren<Page>;
|
|
100
|
+
[tagName]: Omit<PageJSXProps, 'aside'> & PreactBaseElementProps<Page>;
|
|
108
101
|
}
|
|
109
102
|
}
|
|
110
103
|
}
|
|
111
104
|
|
|
112
105
|
declare const tagName = 's-page';
|
|
113
|
-
export interface PageJSXProps
|
|
106
|
+
export interface PageJSXProps
|
|
107
|
+
extends Partial<PageProps>,
|
|
108
|
+
Pick<PageProps$1, 'id'> {
|
|
114
109
|
/**
|
|
115
110
|
* The content to display in the aside section of the page.
|
|
116
111
|
*
|
|
117
112
|
* This slot is only rendered when `inlineSize` is "base".
|
|
118
113
|
*/
|
|
119
|
-
aside?:
|
|
114
|
+
aside?: ComponentChildren;
|
|
120
115
|
/**
|
|
121
116
|
* The primary action for the page.
|
|
122
117
|
*
|
|
123
118
|
* Only accepts a single `Button` component with a `variant` of `primary`.
|
|
124
119
|
*
|
|
125
120
|
*/
|
|
126
|
-
primaryAction?:
|
|
121
|
+
primaryAction?: ComponentChildren;
|
|
127
122
|
/**
|
|
128
123
|
* Secondary actions for the page.
|
|
129
124
|
*
|
|
130
125
|
* Only accepts `ButtonGroup` and `Button` components with a `variant` of `secondary` or `auto`.
|
|
131
126
|
*/
|
|
132
|
-
secondaryActions?:
|
|
127
|
+
secondaryActions?: ComponentChildren;
|
|
133
128
|
/**
|
|
134
129
|
* Navigations back actions for the page.
|
|
135
130
|
*
|
|
136
131
|
* Only accepts `Link` components.
|
|
137
132
|
*/
|
|
138
|
-
breadcrumbActions?:
|
|
133
|
+
breadcrumbActions?: ComponentChildren;
|
|
139
134
|
}
|
|
140
135
|
|
|
141
136
|
export {Page};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.20.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
8
8
|
/// <reference lib="DOM" />
|
|
9
|
-
import type {ParagraphProps$1
|
|
9
|
+
import type {ComponentChildren, ParagraphProps$1} from './shared.d.ts';
|
|
10
10
|
|
|
11
11
|
export interface ParagraphProps
|
|
12
12
|
extends Required<
|
|
@@ -26,7 +26,7 @@ export interface ParagraphProps
|
|
|
26
26
|
|
|
27
27
|
export type Styles = string;
|
|
28
28
|
export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
|
|
29
|
-
ShadowRoot: (element: any) =>
|
|
29
|
+
ShadowRoot: (element: any) => ComponentChildren;
|
|
30
30
|
styles?: Styles;
|
|
31
31
|
};
|
|
32
32
|
export interface ActivationEventEsque {
|
|
@@ -84,7 +84,6 @@ declare abstract class PreactCustomElement extends BaseClass {
|
|
|
84
84
|
click({sourceEvent}?: ClickOptions): void;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
/** Used when an element does not have children. */
|
|
88
87
|
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
89
88
|
/** Assigns a unique key to this element. */
|
|
90
89
|
key?: preact.Key;
|
|
@@ -93,11 +92,6 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
93
92
|
/** Assigns this element to a parent's slot. */
|
|
94
93
|
slot?: Lowercase<string>;
|
|
95
94
|
}
|
|
96
|
-
/** Used when an element has children. */
|
|
97
|
-
export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement>
|
|
98
|
-
extends PreactBaseElementProps<TClass> {
|
|
99
|
-
children?: preact.ComponentChildren;
|
|
100
|
-
}
|
|
101
95
|
|
|
102
96
|
declare class Paragraph extends PreactCustomElement implements ParagraphProps {
|
|
103
97
|
accessor fontVariantNumeric: ParagraphProps['fontVariantNumeric'];
|
|
@@ -120,8 +114,7 @@ declare global {
|
|
|
120
114
|
declare module 'preact' {
|
|
121
115
|
namespace createElement.JSX {
|
|
122
116
|
interface IntrinsicElements {
|
|
123
|
-
[tagName]: ParagraphJSXProps &
|
|
124
|
-
PreactBaseElementPropsWithChildren<Paragraph>;
|
|
117
|
+
[tagName]: ParagraphJSXProps & PreactBaseElementProps<Paragraph>;
|
|
125
118
|
}
|
|
126
119
|
}
|
|
127
120
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.20.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -9,12 +9,35 @@
|
|
|
9
9
|
import type {
|
|
10
10
|
TextFieldProps,
|
|
11
11
|
PasswordFieldProps$1,
|
|
12
|
-
|
|
12
|
+
ComponentChildren,
|
|
13
13
|
} from './shared.d.ts';
|
|
14
14
|
|
|
15
|
+
export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
|
|
16
|
+
currentTarget: HTMLElementTagNameMap[T];
|
|
17
|
+
};
|
|
18
|
+
export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
|
|
19
|
+
| (EventListener & {
|
|
20
|
+
(event: CallbackEvent<T>): void;
|
|
21
|
+
})
|
|
22
|
+
| null;
|
|
23
|
+
export interface FieldReactProps<T extends keyof HTMLElementTagNameMap> {
|
|
24
|
+
onInput?: ((event: CallbackEvent<T>) => void) | null;
|
|
25
|
+
onChange?: ((event: CallbackEvent<T>) => void) | null;
|
|
26
|
+
onFocus?: ((event: CallbackEvent<T>) => void) | null;
|
|
27
|
+
onBlur?: ((event: CallbackEvent<T>) => void) | null;
|
|
28
|
+
}
|
|
29
|
+
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
30
|
+
/** Assigns a unique key to this element. */
|
|
31
|
+
key?: preact.Key;
|
|
32
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
33
|
+
ref?: preact.Ref<TClass>;
|
|
34
|
+
/** Assigns this element to a parent's slot. */
|
|
35
|
+
slot?: Lowercase<string>;
|
|
36
|
+
}
|
|
37
|
+
|
|
15
38
|
export type Styles = string;
|
|
16
39
|
export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
|
|
17
|
-
ShadowRoot: (element: any) =>
|
|
40
|
+
ShadowRoot: (element: any) => ComponentChildren;
|
|
18
41
|
styles?: Styles;
|
|
19
42
|
};
|
|
20
43
|
export interface ActivationEventEsque {
|
|
@@ -72,30 +95,6 @@ declare abstract class PreactCustomElement extends BaseClass {
|
|
|
72
95
|
click({sourceEvent}?: ClickOptions): void;
|
|
73
96
|
}
|
|
74
97
|
|
|
75
|
-
export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
|
|
76
|
-
currentTarget: HTMLElementTagNameMap[T];
|
|
77
|
-
};
|
|
78
|
-
export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
|
|
79
|
-
| (EventListener & {
|
|
80
|
-
(event: CallbackEvent<T>): void;
|
|
81
|
-
})
|
|
82
|
-
| null;
|
|
83
|
-
export interface FieldReactProps<T extends keyof HTMLElementTagNameMap> {
|
|
84
|
-
onInput?: ((event: CallbackEvent<T>) => void) | null;
|
|
85
|
-
onChange?: ((event: CallbackEvent<T>) => void) | null;
|
|
86
|
-
onFocus?: ((event: CallbackEvent<T>) => void) | null;
|
|
87
|
-
onBlur?: ((event: CallbackEvent<T>) => void) | null;
|
|
88
|
-
}
|
|
89
|
-
/** Used when an element does not have children. */
|
|
90
|
-
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
91
|
-
/** Assigns a unique key to this element. */
|
|
92
|
-
key?: preact.Key;
|
|
93
|
-
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
94
|
-
ref?: preact.Ref<TClass>;
|
|
95
|
-
/** Assigns this element to a parent's slot. */
|
|
96
|
-
slot?: Lowercase<string>;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
98
|
declare const internals: unique symbol;
|
|
100
99
|
export type PreactInputProps = Required<
|
|
101
100
|
Pick<TextFieldProps, 'disabled' | 'id' | 'name' | 'value'>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.20.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
8
8
|
/// <reference lib="DOM" />
|
|
9
|
-
import type {QueryContainerProps$1
|
|
9
|
+
import type {ComponentChildren, QueryContainerProps$1} from './shared.d.ts';
|
|
10
10
|
|
|
11
11
|
export type Styles = string;
|
|
12
12
|
export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
|
|
13
|
-
ShadowRoot: (element: any) =>
|
|
13
|
+
ShadowRoot: (element: any) => ComponentChildren;
|
|
14
14
|
styles?: Styles;
|
|
15
15
|
};
|
|
16
16
|
export interface ActivationEventEsque {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 1.
|
|
1
|
+
/** VERSION: 1.20.0 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -6,11 +6,34 @@
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
8
8
|
/// <reference lib="DOM" />
|
|
9
|
-
import type {TextFieldProps,
|
|
9
|
+
import type {TextFieldProps, ComponentChildren} from './shared.d.ts';
|
|
10
|
+
|
|
11
|
+
export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
|
|
12
|
+
currentTarget: HTMLElementTagNameMap[T];
|
|
13
|
+
};
|
|
14
|
+
export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
|
|
15
|
+
| (EventListener & {
|
|
16
|
+
(event: CallbackEvent<T>): void;
|
|
17
|
+
})
|
|
18
|
+
| null;
|
|
19
|
+
export interface FieldReactProps<T extends keyof HTMLElementTagNameMap> {
|
|
20
|
+
onInput?: ((event: CallbackEvent<T>) => void) | null;
|
|
21
|
+
onChange?: ((event: CallbackEvent<T>) => void) | null;
|
|
22
|
+
onFocus?: ((event: CallbackEvent<T>) => void) | null;
|
|
23
|
+
onBlur?: ((event: CallbackEvent<T>) => void) | null;
|
|
24
|
+
}
|
|
25
|
+
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
26
|
+
/** Assigns a unique key to this element. */
|
|
27
|
+
key?: preact.Key;
|
|
28
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
29
|
+
ref?: preact.Ref<TClass>;
|
|
30
|
+
/** Assigns this element to a parent's slot. */
|
|
31
|
+
slot?: Lowercase<string>;
|
|
32
|
+
}
|
|
10
33
|
|
|
11
34
|
export type Styles = string;
|
|
12
35
|
export type RenderImpl = Omit<ShadowRootInit, 'mode'> & {
|
|
13
|
-
ShadowRoot: (element: any) =>
|
|
36
|
+
ShadowRoot: (element: any) => ComponentChildren;
|
|
14
37
|
styles?: Styles;
|
|
15
38
|
};
|
|
16
39
|
export interface ActivationEventEsque {
|
|
@@ -68,30 +91,6 @@ declare abstract class PreactCustomElement extends BaseClass {
|
|
|
68
91
|
click({sourceEvent}?: ClickOptions): void;
|
|
69
92
|
}
|
|
70
93
|
|
|
71
|
-
export type CallbackEvent<T extends keyof HTMLElementTagNameMap> = Event & {
|
|
72
|
-
currentTarget: HTMLElementTagNameMap[T];
|
|
73
|
-
};
|
|
74
|
-
export type CallbackEventListener<T extends keyof HTMLElementTagNameMap> =
|
|
75
|
-
| (EventListener & {
|
|
76
|
-
(event: CallbackEvent<T>): void;
|
|
77
|
-
})
|
|
78
|
-
| null;
|
|
79
|
-
export interface FieldReactProps<T extends keyof HTMLElementTagNameMap> {
|
|
80
|
-
onInput?: ((event: CallbackEvent<T>) => void) | null;
|
|
81
|
-
onChange?: ((event: CallbackEvent<T>) => void) | null;
|
|
82
|
-
onFocus?: ((event: CallbackEvent<T>) => void) | null;
|
|
83
|
-
onBlur?: ((event: CallbackEvent<T>) => void) | null;
|
|
84
|
-
}
|
|
85
|
-
/** Used when an element does not have children. */
|
|
86
|
-
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
87
|
-
/** Assigns a unique key to this element. */
|
|
88
|
-
key?: preact.Key;
|
|
89
|
-
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
90
|
-
ref?: preact.Ref<TClass>;
|
|
91
|
-
/** Assigns this element to a parent's slot. */
|
|
92
|
-
slot?: Lowercase<string>;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
94
|
declare const internals: unique symbol;
|
|
96
95
|
export type PreactInputProps = Required<
|
|
97
96
|
Pick<TextFieldProps, 'disabled' | 'id' | 'name' | 'value'>
|