@shopify/ui-extensions 2025.10.0-rc.3 → 2025.10.0-rc.4
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/ts/surfaces/checkout/shared.d.ts +1 -1
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Actions::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +103 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/surfaces/checkout/shared.ts +3 -0
|
@@ -139,6 +139,62 @@ export interface TimeElement extends TimeProps, Omit<HTMLElement, 'id'> {
|
|
|
139
139
|
export interface TimeProps extends Pick<TimeProps$1, 'dateTime'> {
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
declare module 'preact' {
|
|
143
|
+
interface BaseProps {
|
|
144
|
+
slot?: Lowercase<string>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
namespace createElement.JSX {
|
|
148
|
+
interface IntrinsicElements {
|
|
149
|
+
's-text-field': TextFieldProps & BaseProps;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
declare global {
|
|
155
|
+
interface HTMLElementTagNameMap {
|
|
156
|
+
's-text-field': TextFieldElement;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
declare module 'preact' {
|
|
161
|
+
interface BaseProps {
|
|
162
|
+
slot?: Lowercase<string>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
namespace createElement.JSX {
|
|
166
|
+
interface IntrinsicElements {
|
|
167
|
+
's-icon': TextFieldIconProps & BaseProps;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare global {
|
|
173
|
+
interface HTMLElementTagNameMap {
|
|
174
|
+
's-icon': TextFieldIconElement;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export interface TextFieldElement extends Omit<TextFieldProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
179
|
+
onblur: TextFieldProps['onBlur'];
|
|
180
|
+
onchange: TextFieldProps['onChange'];
|
|
181
|
+
onfocus: TextFieldProps['onFocus'];
|
|
182
|
+
oninput: TextFieldProps['onInput'];
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface TextFieldProps extends Pick<TextFieldProps$1, 'accessory' | 'autocomplete' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'id' | 'icon' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'placeholder' | 'prefix' | 'readOnly' | 'required' | 'suffix' | 'value'> {
|
|
186
|
+
icon?: TextFieldIconProps['type'];
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface TextFieldIconElement extends TextFieldIconProps, Omit<HTMLElement, 'id'> {
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface TextFieldIconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
|
|
193
|
+
tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
194
|
+
size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
195
|
+
type?: '' | Extract<IconProps$1['type'], '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'>;
|
|
196
|
+
}
|
|
197
|
+
|
|
142
198
|
declare module 'preact' {
|
|
143
199
|
interface BaseProps {
|
|
144
200
|
children?: preact.ComponentChildren;
|
|
@@ -221,6 +277,52 @@ export interface SpinnerProps extends SpinnerProps$1 {
|
|
|
221
277
|
size?: Extract<SpinnerProps$1['size'], 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
222
278
|
}
|
|
223
279
|
|
|
280
|
+
declare module 'preact' {
|
|
281
|
+
interface BaseProps {
|
|
282
|
+
children?: preact.ComponentChildren;
|
|
283
|
+
slot?: Lowercase<string>;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
namespace createElement.JSX {
|
|
287
|
+
interface IntrinsicElements {
|
|
288
|
+
's-section': SectionProps & BaseProps;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
declare global {
|
|
294
|
+
interface HTMLElementTagNameMap {
|
|
295
|
+
's-section': SectionElement;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export interface SectionElement extends SectionProps, Omit<HTMLElement, 'id'> {
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export interface SectionProps extends Pick<SectionProps$1, 'accessibilityLabel' | 'heading' | 'id'> {
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
declare module 'preact' {
|
|
306
|
+
namespace createElement.JSX {
|
|
307
|
+
interface IntrinsicElements {
|
|
308
|
+
's-qr-code': QRCodeProps;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
declare global {
|
|
314
|
+
interface HTMLElementTagNameMap {
|
|
315
|
+
's-qr-code': QRCodelement;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export interface QRCodelement extends Omit<QRCodeProps, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
|
|
320
|
+
onerror: QRCodeProps['onError'];
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export interface QRCodeProps extends QRCodeProps$1 {
|
|
324
|
+
}
|
|
325
|
+
|
|
224
326
|
declare module 'preact' {
|
|
225
327
|
namespace createElement.JSX {
|
|
226
328
|
interface IntrinsicElements {
|
|
@@ -634,7 +736,7 @@ export interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title'> {
|
|
|
634
736
|
}
|
|
635
737
|
|
|
636
738
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
637
|
-
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, SpinnerProps$1, StackProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
739
|
+
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
638
740
|
import type { ExtensionTargets } from '../extension-targets';
|
|
639
741
|
type Target = ExtensionTargets['customer-account.profile.company-details.render-after'];
|
|
640
742
|
export type Api = Target['api'];
|
|
@@ -139,6 +139,62 @@ export interface TimeElement extends TimeProps, Omit<HTMLElement, 'id'> {
|
|
|
139
139
|
export interface TimeProps extends Pick<TimeProps$1, 'dateTime'> {
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
declare module 'preact' {
|
|
143
|
+
interface BaseProps {
|
|
144
|
+
slot?: Lowercase<string>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
namespace createElement.JSX {
|
|
148
|
+
interface IntrinsicElements {
|
|
149
|
+
's-text-field': TextFieldProps & BaseProps;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
declare global {
|
|
155
|
+
interface HTMLElementTagNameMap {
|
|
156
|
+
's-text-field': TextFieldElement;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
declare module 'preact' {
|
|
161
|
+
interface BaseProps {
|
|
162
|
+
slot?: Lowercase<string>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
namespace createElement.JSX {
|
|
166
|
+
interface IntrinsicElements {
|
|
167
|
+
's-icon': TextFieldIconProps & BaseProps;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare global {
|
|
173
|
+
interface HTMLElementTagNameMap {
|
|
174
|
+
's-icon': TextFieldIconElement;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export interface TextFieldElement extends Omit<TextFieldProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
179
|
+
onblur: TextFieldProps['onBlur'];
|
|
180
|
+
onchange: TextFieldProps['onChange'];
|
|
181
|
+
onfocus: TextFieldProps['onFocus'];
|
|
182
|
+
oninput: TextFieldProps['onInput'];
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface TextFieldProps extends Pick<TextFieldProps$1, 'accessory' | 'autocomplete' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'id' | 'icon' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'placeholder' | 'prefix' | 'readOnly' | 'required' | 'suffix' | 'value'> {
|
|
186
|
+
icon?: TextFieldIconProps['type'];
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface TextFieldIconElement extends TextFieldIconProps, Omit<HTMLElement, 'id'> {
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface TextFieldIconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
|
|
193
|
+
tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
194
|
+
size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
195
|
+
type?: '' | Extract<IconProps$1['type'], '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'>;
|
|
196
|
+
}
|
|
197
|
+
|
|
142
198
|
declare module 'preact' {
|
|
143
199
|
interface BaseProps {
|
|
144
200
|
children?: preact.ComponentChildren;
|
|
@@ -221,6 +277,52 @@ export interface SpinnerProps extends SpinnerProps$1 {
|
|
|
221
277
|
size?: Extract<SpinnerProps$1['size'], 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
222
278
|
}
|
|
223
279
|
|
|
280
|
+
declare module 'preact' {
|
|
281
|
+
interface BaseProps {
|
|
282
|
+
children?: preact.ComponentChildren;
|
|
283
|
+
slot?: Lowercase<string>;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
namespace createElement.JSX {
|
|
287
|
+
interface IntrinsicElements {
|
|
288
|
+
's-section': SectionProps & BaseProps;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
declare global {
|
|
294
|
+
interface HTMLElementTagNameMap {
|
|
295
|
+
's-section': SectionElement;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export interface SectionElement extends SectionProps, Omit<HTMLElement, 'id'> {
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export interface SectionProps extends Pick<SectionProps$1, 'accessibilityLabel' | 'heading' | 'id'> {
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
declare module 'preact' {
|
|
306
|
+
namespace createElement.JSX {
|
|
307
|
+
interface IntrinsicElements {
|
|
308
|
+
's-qr-code': QRCodeProps;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
declare global {
|
|
314
|
+
interface HTMLElementTagNameMap {
|
|
315
|
+
's-qr-code': QRCodelement;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export interface QRCodelement extends Omit<QRCodeProps, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
|
|
320
|
+
onerror: QRCodeProps['onError'];
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export interface QRCodeProps extends QRCodeProps$1 {
|
|
324
|
+
}
|
|
325
|
+
|
|
224
326
|
declare module 'preact' {
|
|
225
327
|
namespace createElement.JSX {
|
|
226
328
|
interface IntrinsicElements {
|
|
@@ -634,7 +736,7 @@ export interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title'> {
|
|
|
634
736
|
}
|
|
635
737
|
|
|
636
738
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
637
|
-
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, SpinnerProps$1, StackProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
739
|
+
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
638
740
|
import type { ExtensionTargets } from '../extension-targets';
|
|
639
741
|
type Target = ExtensionTargets['customer-account.profile.company-location-addresses.render-after'];
|
|
640
742
|
export type Api = Target['api'];
|
|
@@ -139,6 +139,62 @@ export interface TimeElement extends TimeProps, Omit<HTMLElement, 'id'> {
|
|
|
139
139
|
export interface TimeProps extends Pick<TimeProps$1, 'dateTime'> {
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
declare module 'preact' {
|
|
143
|
+
interface BaseProps {
|
|
144
|
+
slot?: Lowercase<string>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
namespace createElement.JSX {
|
|
148
|
+
interface IntrinsicElements {
|
|
149
|
+
's-text-field': TextFieldProps & BaseProps;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
declare global {
|
|
155
|
+
interface HTMLElementTagNameMap {
|
|
156
|
+
's-text-field': TextFieldElement;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
declare module 'preact' {
|
|
161
|
+
interface BaseProps {
|
|
162
|
+
slot?: Lowercase<string>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
namespace createElement.JSX {
|
|
166
|
+
interface IntrinsicElements {
|
|
167
|
+
's-icon': TextFieldIconProps & BaseProps;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare global {
|
|
173
|
+
interface HTMLElementTagNameMap {
|
|
174
|
+
's-icon': TextFieldIconElement;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export interface TextFieldElement extends Omit<TextFieldProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
179
|
+
onblur: TextFieldProps['onBlur'];
|
|
180
|
+
onchange: TextFieldProps['onChange'];
|
|
181
|
+
onfocus: TextFieldProps['onFocus'];
|
|
182
|
+
oninput: TextFieldProps['onInput'];
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface TextFieldProps extends Pick<TextFieldProps$1, 'accessory' | 'autocomplete' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'id' | 'icon' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'placeholder' | 'prefix' | 'readOnly' | 'required' | 'suffix' | 'value'> {
|
|
186
|
+
icon?: TextFieldIconProps['type'];
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface TextFieldIconElement extends TextFieldIconProps, Omit<HTMLElement, 'id'> {
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface TextFieldIconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
|
|
193
|
+
tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
194
|
+
size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
195
|
+
type?: '' | Extract<IconProps$1['type'], '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'>;
|
|
196
|
+
}
|
|
197
|
+
|
|
142
198
|
declare module 'preact' {
|
|
143
199
|
interface BaseProps {
|
|
144
200
|
children?: preact.ComponentChildren;
|
|
@@ -221,6 +277,52 @@ export interface SpinnerProps extends SpinnerProps$1 {
|
|
|
221
277
|
size?: Extract<SpinnerProps$1['size'], 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
222
278
|
}
|
|
223
279
|
|
|
280
|
+
declare module 'preact' {
|
|
281
|
+
interface BaseProps {
|
|
282
|
+
children?: preact.ComponentChildren;
|
|
283
|
+
slot?: Lowercase<string>;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
namespace createElement.JSX {
|
|
287
|
+
interface IntrinsicElements {
|
|
288
|
+
's-section': SectionProps & BaseProps;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
declare global {
|
|
294
|
+
interface HTMLElementTagNameMap {
|
|
295
|
+
's-section': SectionElement;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export interface SectionElement extends SectionProps, Omit<HTMLElement, 'id'> {
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export interface SectionProps extends Pick<SectionProps$1, 'accessibilityLabel' | 'heading' | 'id'> {
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
declare module 'preact' {
|
|
306
|
+
namespace createElement.JSX {
|
|
307
|
+
interface IntrinsicElements {
|
|
308
|
+
's-qr-code': QRCodeProps;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
declare global {
|
|
314
|
+
interface HTMLElementTagNameMap {
|
|
315
|
+
's-qr-code': QRCodelement;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export interface QRCodelement extends Omit<QRCodeProps, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
|
|
320
|
+
onerror: QRCodeProps['onError'];
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export interface QRCodeProps extends QRCodeProps$1 {
|
|
324
|
+
}
|
|
325
|
+
|
|
224
326
|
declare module 'preact' {
|
|
225
327
|
namespace createElement.JSX {
|
|
226
328
|
interface IntrinsicElements {
|
|
@@ -634,7 +736,7 @@ export interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title'> {
|
|
|
634
736
|
}
|
|
635
737
|
|
|
636
738
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
637
|
-
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, SpinnerProps$1, StackProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
739
|
+
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
638
740
|
import type { ExtensionTargets } from '../extension-targets';
|
|
639
741
|
type Target = ExtensionTargets['customer-account.profile.company-location-payment.render-after'];
|
|
640
742
|
export type Api = Target['api'];
|
|
@@ -139,6 +139,62 @@ export interface TimeElement extends TimeProps, Omit<HTMLElement, 'id'> {
|
|
|
139
139
|
export interface TimeProps extends Pick<TimeProps$1, 'dateTime'> {
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
declare module 'preact' {
|
|
143
|
+
interface BaseProps {
|
|
144
|
+
slot?: Lowercase<string>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
namespace createElement.JSX {
|
|
148
|
+
interface IntrinsicElements {
|
|
149
|
+
's-text-field': TextFieldProps & BaseProps;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
declare global {
|
|
155
|
+
interface HTMLElementTagNameMap {
|
|
156
|
+
's-text-field': TextFieldElement;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
declare module 'preact' {
|
|
161
|
+
interface BaseProps {
|
|
162
|
+
slot?: Lowercase<string>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
namespace createElement.JSX {
|
|
166
|
+
interface IntrinsicElements {
|
|
167
|
+
's-icon': TextFieldIconProps & BaseProps;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare global {
|
|
173
|
+
interface HTMLElementTagNameMap {
|
|
174
|
+
's-icon': TextFieldIconElement;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export interface TextFieldElement extends Omit<TextFieldProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
179
|
+
onblur: TextFieldProps['onBlur'];
|
|
180
|
+
onchange: TextFieldProps['onChange'];
|
|
181
|
+
onfocus: TextFieldProps['onFocus'];
|
|
182
|
+
oninput: TextFieldProps['onInput'];
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface TextFieldProps extends Pick<TextFieldProps$1, 'accessory' | 'autocomplete' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'id' | 'icon' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'placeholder' | 'prefix' | 'readOnly' | 'required' | 'suffix' | 'value'> {
|
|
186
|
+
icon?: TextFieldIconProps['type'];
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface TextFieldIconElement extends TextFieldIconProps, Omit<HTMLElement, 'id'> {
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface TextFieldIconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
|
|
193
|
+
tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
194
|
+
size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
195
|
+
type?: '' | Extract<IconProps$1['type'], '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'>;
|
|
196
|
+
}
|
|
197
|
+
|
|
142
198
|
declare module 'preact' {
|
|
143
199
|
interface BaseProps {
|
|
144
200
|
children?: preact.ComponentChildren;
|
|
@@ -221,6 +277,52 @@ export interface SpinnerProps extends SpinnerProps$1 {
|
|
|
221
277
|
size?: Extract<SpinnerProps$1['size'], 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
222
278
|
}
|
|
223
279
|
|
|
280
|
+
declare module 'preact' {
|
|
281
|
+
interface BaseProps {
|
|
282
|
+
children?: preact.ComponentChildren;
|
|
283
|
+
slot?: Lowercase<string>;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
namespace createElement.JSX {
|
|
287
|
+
interface IntrinsicElements {
|
|
288
|
+
's-section': SectionProps & BaseProps;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
declare global {
|
|
294
|
+
interface HTMLElementTagNameMap {
|
|
295
|
+
's-section': SectionElement;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export interface SectionElement extends SectionProps, Omit<HTMLElement, 'id'> {
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export interface SectionProps extends Pick<SectionProps$1, 'accessibilityLabel' | 'heading' | 'id'> {
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
declare module 'preact' {
|
|
306
|
+
namespace createElement.JSX {
|
|
307
|
+
interface IntrinsicElements {
|
|
308
|
+
's-qr-code': QRCodeProps;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
declare global {
|
|
314
|
+
interface HTMLElementTagNameMap {
|
|
315
|
+
's-qr-code': QRCodelement;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export interface QRCodelement extends Omit<QRCodeProps, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
|
|
320
|
+
onerror: QRCodeProps['onError'];
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export interface QRCodeProps extends QRCodeProps$1 {
|
|
324
|
+
}
|
|
325
|
+
|
|
224
326
|
declare module 'preact' {
|
|
225
327
|
namespace createElement.JSX {
|
|
226
328
|
interface IntrinsicElements {
|
|
@@ -634,7 +736,7 @@ export interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title'> {
|
|
|
634
736
|
}
|
|
635
737
|
|
|
636
738
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
637
|
-
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, SpinnerProps$1, StackProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
739
|
+
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
638
740
|
import type { ExtensionTargets } from '../extension-targets';
|
|
639
741
|
type Target = ExtensionTargets['customer-account.profile.company-location-staff.render-after'];
|
|
640
742
|
export type Api = Target['api'];
|
|
@@ -139,6 +139,62 @@ export interface TimeElement extends TimeProps, Omit<HTMLElement, 'id'> {
|
|
|
139
139
|
export interface TimeProps extends Pick<TimeProps$1, 'dateTime'> {
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
declare module 'preact' {
|
|
143
|
+
interface BaseProps {
|
|
144
|
+
slot?: Lowercase<string>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
namespace createElement.JSX {
|
|
148
|
+
interface IntrinsicElements {
|
|
149
|
+
's-text-field': TextFieldProps & BaseProps;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
declare global {
|
|
155
|
+
interface HTMLElementTagNameMap {
|
|
156
|
+
's-text-field': TextFieldElement;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
declare module 'preact' {
|
|
161
|
+
interface BaseProps {
|
|
162
|
+
slot?: Lowercase<string>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
namespace createElement.JSX {
|
|
166
|
+
interface IntrinsicElements {
|
|
167
|
+
's-icon': TextFieldIconProps & BaseProps;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare global {
|
|
173
|
+
interface HTMLElementTagNameMap {
|
|
174
|
+
's-icon': TextFieldIconElement;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export interface TextFieldElement extends Omit<TextFieldProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
179
|
+
onblur: TextFieldProps['onBlur'];
|
|
180
|
+
onchange: TextFieldProps['onChange'];
|
|
181
|
+
onfocus: TextFieldProps['onFocus'];
|
|
182
|
+
oninput: TextFieldProps['onInput'];
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface TextFieldProps extends Pick<TextFieldProps$1, 'accessory' | 'autocomplete' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'id' | 'icon' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'placeholder' | 'prefix' | 'readOnly' | 'required' | 'suffix' | 'value'> {
|
|
186
|
+
icon?: TextFieldIconProps['type'];
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface TextFieldIconElement extends TextFieldIconProps, Omit<HTMLElement, 'id'> {
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface TextFieldIconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
|
|
193
|
+
tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
194
|
+
size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
195
|
+
type?: '' | Extract<IconProps$1['type'], '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'>;
|
|
196
|
+
}
|
|
197
|
+
|
|
142
198
|
declare module 'preact' {
|
|
143
199
|
interface BaseProps {
|
|
144
200
|
children?: preact.ComponentChildren;
|
|
@@ -221,6 +277,52 @@ export interface SpinnerProps extends SpinnerProps$1 {
|
|
|
221
277
|
size?: Extract<SpinnerProps$1['size'], 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
222
278
|
}
|
|
223
279
|
|
|
280
|
+
declare module 'preact' {
|
|
281
|
+
interface BaseProps {
|
|
282
|
+
children?: preact.ComponentChildren;
|
|
283
|
+
slot?: Lowercase<string>;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
namespace createElement.JSX {
|
|
287
|
+
interface IntrinsicElements {
|
|
288
|
+
's-section': SectionProps & BaseProps;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
declare global {
|
|
294
|
+
interface HTMLElementTagNameMap {
|
|
295
|
+
's-section': SectionElement;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export interface SectionElement extends SectionProps, Omit<HTMLElement, 'id'> {
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export interface SectionProps extends Pick<SectionProps$1, 'accessibilityLabel' | 'heading' | 'id'> {
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
declare module 'preact' {
|
|
306
|
+
namespace createElement.JSX {
|
|
307
|
+
interface IntrinsicElements {
|
|
308
|
+
's-qr-code': QRCodeProps;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
declare global {
|
|
314
|
+
interface HTMLElementTagNameMap {
|
|
315
|
+
's-qr-code': QRCodelement;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export interface QRCodelement extends Omit<QRCodeProps, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
|
|
320
|
+
onerror: QRCodeProps['onError'];
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export interface QRCodeProps extends QRCodeProps$1 {
|
|
324
|
+
}
|
|
325
|
+
|
|
224
326
|
declare module 'preact' {
|
|
225
327
|
namespace createElement.JSX {
|
|
226
328
|
interface IntrinsicElements {
|
|
@@ -634,7 +736,7 @@ export interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title'> {
|
|
|
634
736
|
}
|
|
635
737
|
|
|
636
738
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
637
|
-
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, SpinnerProps$1, StackProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
739
|
+
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
638
740
|
import type { ExtensionTargets } from '../extension-targets';
|
|
639
741
|
type Target = ExtensionTargets['customer-account.profile.payment.render-after'];
|
|
640
742
|
export type Api = Target['api'];
|