@shopify/ui-extensions 2025.10.0-rc.7 → 2025.10.0-rc.9
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/admin/components/AdminAction.d.ts +1 -1
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +1 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Avatar.d.ts +139 -0
- package/build/ts/surfaces/admin/components/Badge.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Banner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Box.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Button.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Choice.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Clickable.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Divider.d.ts +1 -1
- package/build/ts/surfaces/admin/components/EmailField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Grid.d.ts +1 -1
- package/build/ts/surfaces/admin/components/GridItem.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Heading.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Icon.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Image.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Link.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ListItem.d.ts +1 -1
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/NumberField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Option.d.ts +1 -1
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +1 -1
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Page.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +1 -1
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +1 -1
- package/build/ts/surfaces/admin/components/SearchField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Section.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Select.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Spinner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Stack.d.ts +1 -1
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Switch.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Table.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableBody.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableCell.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableRow.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Text.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TextArea.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TextField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Thumbnail.d.ts +133 -0
- package/build/ts/surfaces/admin/components/URLField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/shared.d.ts +219 -160
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +121 -11
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Avatar.d.ts +66 -0
- package/build/ts/surfaces/customer-account/components/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +61 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/surfaces/admin/components/AdminAction.d.ts +1 -1
- package/src/surfaces/admin/components/AdminBlock.d.ts +1 -1
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
- package/src/surfaces/admin/components/Avatar.d.ts +139 -0
- package/src/surfaces/admin/components/Badge.d.ts +1 -1
- package/src/surfaces/admin/components/Banner.d.ts +1 -1
- package/src/surfaces/admin/components/Box.d.ts +1 -1
- package/src/surfaces/admin/components/Button.d.ts +1 -1
- package/src/surfaces/admin/components/Checkbox.d.ts +1 -1
- package/src/surfaces/admin/components/Choice.d.ts +1 -1
- package/src/surfaces/admin/components/ChoiceList.d.ts +1 -1
- package/src/surfaces/admin/components/Clickable.d.ts +1 -1
- package/src/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/src/surfaces/admin/components/Divider.d.ts +1 -1
- package/src/surfaces/admin/components/EmailField.d.ts +1 -1
- package/src/surfaces/admin/components/Form.d.ts +1 -1
- package/src/surfaces/admin/components/Grid.d.ts +1 -1
- package/src/surfaces/admin/components/GridItem.d.ts +1 -1
- package/src/surfaces/admin/components/Heading.d.ts +1 -1
- package/src/surfaces/admin/components/Icon.d.ts +1 -1
- package/src/surfaces/admin/components/Image.d.ts +1 -1
- package/src/surfaces/admin/components/Link.d.ts +1 -1
- package/src/surfaces/admin/components/ListItem.d.ts +1 -1
- package/src/surfaces/admin/components/MoneyField.d.ts +1 -1
- package/src/surfaces/admin/components/NumberField.d.ts +1 -1
- package/src/surfaces/admin/components/Option.d.ts +1 -1
- package/src/surfaces/admin/components/OptionGroup.d.ts +1 -1
- package/src/surfaces/admin/components/OrderedList.d.ts +1 -1
- package/src/surfaces/admin/components/Page.d.ts +1 -1
- package/src/surfaces/admin/components/Paragraph.d.ts +1 -1
- package/src/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/src/surfaces/admin/components/QueryContainer.d.ts +1 -1
- package/src/surfaces/admin/components/SearchField.d.ts +1 -1
- package/src/surfaces/admin/components/Section.d.ts +1 -1
- package/src/surfaces/admin/components/Select.d.ts +1 -1
- package/src/surfaces/admin/components/Spinner.d.ts +1 -1
- package/src/surfaces/admin/components/Stack.d.ts +1 -1
- package/src/surfaces/admin/components/StandardComponents.ts +2 -0
- package/src/surfaces/admin/components/Switch.d.ts +1 -1
- package/src/surfaces/admin/components/Table.d.ts +1 -1
- package/src/surfaces/admin/components/TableBody.d.ts +1 -1
- package/src/surfaces/admin/components/TableCell.d.ts +1 -1
- package/src/surfaces/admin/components/TableHeader.d.ts +1 -1
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
- package/src/surfaces/admin/components/TableRow.d.ts +1 -1
- package/src/surfaces/admin/components/Text.d.ts +1 -1
- package/src/surfaces/admin/components/TextArea.d.ts +1 -1
- package/src/surfaces/admin/components/TextField.d.ts +1 -1
- package/src/surfaces/admin/components/Thumbnail.d.ts +133 -0
- package/src/surfaces/admin/components/URLField.d.ts +1 -1
- package/src/surfaces/admin/components/UnorderedList.d.ts +1 -1
- package/src/surfaces/admin/components/shared.d.ts +219 -160
- package/src/surfaces/admin/components.d.ts +975 -413
- package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-js.example.ts +9 -0
- package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-preact.example.tsx +9 -0
- package/src/surfaces/customer-account/components/Avatar.d.ts +66 -0
- package/src/surfaces/customer-account/components/StandardComponents.ts +1 -0
- package/src/surfaces/customer-account/components.d.ts +67 -0
|
@@ -150,6 +150,58 @@ export interface UnorderedListProps extends UnorderedListProps$1 {
|
|
|
150
150
|
declare const UnorderedListtagName = 's-unordered-list';
|
|
151
151
|
declare const UnorderedListBaseClass: typeof globalThis.HTMLElement;
|
|
152
152
|
|
|
153
|
+
declare module 'preact' {
|
|
154
|
+
namespace createElement.JSX {
|
|
155
|
+
interface IntrinsicElements {
|
|
156
|
+
[ThumbnailtagName]: ThumbnailJSXProps & ThumbnailPreactBaseElementProps<Thumbnail>;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
declare global {
|
|
162
|
+
interface HTMLElementTagNameMap {
|
|
163
|
+
[ThumbnailtagName]: Thumbnail;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface ThumbnailJSXProps extends Partial<ThumbnailProps>, Pick<ThumbnailProps$1, 'id'> {
|
|
168
|
+
onLoad?: ((event: CallbackEvent<typeof ThumbnailtagName>) => void) | null;
|
|
169
|
+
onError?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface ThumbnailClickOptions {
|
|
173
|
+
/**
|
|
174
|
+
* The event you want to influence the synthetic click.
|
|
175
|
+
*/
|
|
176
|
+
sourceEvent?: ThumbnailActivationEventEsque;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export interface ThumbnailActivationEventEsque {
|
|
180
|
+
shiftKey: boolean;
|
|
181
|
+
metaKey: boolean;
|
|
182
|
+
ctrlKey: boolean;
|
|
183
|
+
button: number;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export interface ThumbnailPreactBaseElementProps<TClass extends HTMLElement> {
|
|
187
|
+
/** Assigns a unique key to this element. */
|
|
188
|
+
key?: preact.Key;
|
|
189
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
190
|
+
ref?: preact.Ref<TClass>;
|
|
191
|
+
/** Assigns this element to a parent's slot. */
|
|
192
|
+
slot?: Lowercase<string>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface ThumbnailProps extends Required<Pick<ThumbnailProps$1, 'src' | 'alt'>> {
|
|
196
|
+
size: Extract<
|
|
197
|
+
ThumbnailProps$1['size'],
|
|
198
|
+
'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'
|
|
199
|
+
>;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare const ThumbnailtagName = 's-thumbnail';
|
|
203
|
+
declare const ThumbnailBaseClass: typeof globalThis.HTMLElement;
|
|
204
|
+
|
|
153
205
|
declare module 'preact' {
|
|
154
206
|
namespace createElement.JSX {
|
|
155
207
|
interface IntrinsicElements {
|
|
@@ -3378,25 +3430,25 @@ declare const BannerBaseClass: typeof globalThis.HTMLElement;
|
|
|
3378
3430
|
declare module 'preact' {
|
|
3379
3431
|
namespace createElement.JSX {
|
|
3380
3432
|
interface IntrinsicElements {
|
|
3381
|
-
[
|
|
3433
|
+
[BadgetagName]: BadgeJSXProps & BadgePreactBaseElementPropsWithChildren<Badge>;
|
|
3382
3434
|
}
|
|
3383
3435
|
}
|
|
3384
3436
|
}
|
|
3385
3437
|
|
|
3386
3438
|
declare global {
|
|
3387
3439
|
interface HTMLElementTagNameMap {
|
|
3388
|
-
[
|
|
3440
|
+
[BadgetagName]: Badge;
|
|
3389
3441
|
}
|
|
3390
3442
|
}
|
|
3391
3443
|
|
|
3392
3444
|
export interface BadgeJSXProps extends Partial<BadgeProps>, Pick<BadgeProps$1, 'id'> {
|
|
3393
3445
|
}
|
|
3394
3446
|
|
|
3395
|
-
export interface
|
|
3447
|
+
export interface BadgePreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends BadgePreactBaseElementProps<TClass> {
|
|
3396
3448
|
children?: preact.ComponentChildren;
|
|
3397
3449
|
}
|
|
3398
3450
|
|
|
3399
|
-
export interface
|
|
3451
|
+
export interface BadgePreactBaseElementProps<TClass extends HTMLElement> {
|
|
3400
3452
|
/** Assigns a unique key to this element. */
|
|
3401
3453
|
key?: preact.Key;
|
|
3402
3454
|
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
@@ -3405,14 +3457,14 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
3405
3457
|
slot?: Lowercase<string>;
|
|
3406
3458
|
}
|
|
3407
3459
|
|
|
3408
|
-
export interface
|
|
3460
|
+
export interface BadgeClickOptions {
|
|
3409
3461
|
/**
|
|
3410
3462
|
* The event you want to influence the synthetic click.
|
|
3411
3463
|
*/
|
|
3412
|
-
sourceEvent?:
|
|
3464
|
+
sourceEvent?: BadgeActivationEventEsque;
|
|
3413
3465
|
}
|
|
3414
3466
|
|
|
3415
|
-
export interface
|
|
3467
|
+
export interface BadgeActivationEventEsque {
|
|
3416
3468
|
shiftKey: boolean;
|
|
3417
3469
|
metaKey: boolean;
|
|
3418
3470
|
ctrlKey: boolean;
|
|
@@ -3442,7 +3494,63 @@ export interface IconProps extends Pick<IconProps$1, 'type' | 'tone' | 'color' |
|
|
|
3442
3494
|
size: Extract<IconProps$1['size'], 'small' | 'base'>;
|
|
3443
3495
|
}
|
|
3444
3496
|
|
|
3445
|
-
declare const
|
|
3497
|
+
declare const BadgetagName = 's-badge';
|
|
3498
|
+
declare const BadgeBaseClass: typeof globalThis.HTMLElement;
|
|
3499
|
+
|
|
3500
|
+
declare module 'preact' {
|
|
3501
|
+
namespace createElement.JSX {
|
|
3502
|
+
interface IntrinsicElements {
|
|
3503
|
+
[tagName]: AvatarJSXProps & PreactBaseElementPropsWithChildren<Avatar>;
|
|
3504
|
+
}
|
|
3505
|
+
}
|
|
3506
|
+
}
|
|
3507
|
+
|
|
3508
|
+
declare global {
|
|
3509
|
+
interface HTMLElementTagNameMap {
|
|
3510
|
+
[tagName]: Avatar;
|
|
3511
|
+
}
|
|
3512
|
+
}
|
|
3513
|
+
|
|
3514
|
+
export interface AvatarJSXProps extends Partial<AvatarProps>, Pick<AvatarProps$1, 'id'> {
|
|
3515
|
+
onLoad?: () => void;
|
|
3516
|
+
onError?: () => void;
|
|
3517
|
+
}
|
|
3518
|
+
|
|
3519
|
+
export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends PreactBaseElementProps<TClass> {
|
|
3520
|
+
children?: preact.ComponentChildren;
|
|
3521
|
+
}
|
|
3522
|
+
|
|
3523
|
+
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
3524
|
+
/** Assigns a unique key to this element. */
|
|
3525
|
+
key?: preact.Key;
|
|
3526
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
3527
|
+
ref?: preact.Ref<TClass>;
|
|
3528
|
+
/** Assigns this element to a parent's slot. */
|
|
3529
|
+
slot?: Lowercase<string>;
|
|
3530
|
+
}
|
|
3531
|
+
|
|
3532
|
+
export interface ClickOptions {
|
|
3533
|
+
/**
|
|
3534
|
+
* The event you want to influence the synthetic click.
|
|
3535
|
+
*/
|
|
3536
|
+
sourceEvent?: ActivationEventEsque;
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3539
|
+
export interface ActivationEventEsque {
|
|
3540
|
+
shiftKey: boolean;
|
|
3541
|
+
metaKey: boolean;
|
|
3542
|
+
ctrlKey: boolean;
|
|
3543
|
+
button: number;
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
export interface AvatarProps extends Required<Pick<AvatarProps$1, 'initials' | 'src' | 'alt'>> {
|
|
3547
|
+
size: Extract<
|
|
3548
|
+
AvatarProps$1['size'],
|
|
3549
|
+
'small-200' | 'small' | 'base' | 'large' | 'large-200'
|
|
3550
|
+
>;
|
|
3551
|
+
}
|
|
3552
|
+
|
|
3553
|
+
declare const tagName = 's-avatar';
|
|
3446
3554
|
/**
|
|
3447
3555
|
* Base class for creating custom elements with Preact.
|
|
3448
3556
|
* While this class could be used in both Node and the browser, the constructor will only be used in the browser.
|
|
@@ -3451,8 +3559,9 @@ declare const tagName = 's-badge';
|
|
|
3451
3559
|
declare const BaseClass: typeof globalThis.HTMLElement;
|
|
3452
3560
|
|
|
3453
3561
|
import { AdminAction } from "../../../../../src/surfaces/admin/components/AdminAction";
|
|
3454
|
-
import {
|
|
3455
|
-
import {
|
|
3562
|
+
import { Avatar, CallbackEvent, RenderImpl } from "../../../../../src/surfaces/admin/components/Avatar";
|
|
3563
|
+
import { Badge } from "../../../../../src/surfaces/admin/components/Badge";
|
|
3564
|
+
import { Banner, RequiredBannerProps } from "../../../../../src/surfaces/admin/components/Banner";
|
|
3456
3565
|
import { Box, BoxBorderRadii, BoxBorderStyles, RequiredBoxProps, ResponsiveBoxProps } from "../../../../../src/surfaces/admin/components/Box";
|
|
3457
3566
|
import { Button, ButtonBaseProps } from "../../../../../src/surfaces/admin/components/Button";
|
|
3458
3567
|
import { Checkbox, PreactInputProps } from "../../../../../src/surfaces/admin/components/Checkbox";
|
|
@@ -3477,7 +3586,7 @@ import { PasswordField, PasswordFieldProps } from "../../../../../src/surfaces/a
|
|
|
3477
3586
|
import { QueryContainer } from "../../../../../src/surfaces/admin/components/QueryContainer";
|
|
3478
3587
|
import { RequiredSectionProps, Section } from "../../../../../src/surfaces/admin/components/Section";
|
|
3479
3588
|
import { Select } from "../../../../../src/surfaces/admin/components/Select";
|
|
3480
|
-
import { AdminActionProps$1, BadgeProps$1, BannerProps$1, BoxProps$1, ButtonProps$1, CheckboxProps$1, ChoiceListProps$1, ChoiceProps$1, ClickableProps$1, ComponentChild, DatePickerProps$1, DividerProps$1, EmailFieldProps$1, GridItemProps$1, GridProps$1, HeadingProps$1, IconProps$1, IconType, ImageProps$1, InteractionProps, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, MoneyFieldProps$1, NumberFieldProps$1, OptionGroupProps$1, OptionProps$1, OrderedListProps$1, ParagraphProps$1, PasswordFieldProps$1, QueryContainerProps$1, SectionProps$1, SelectProps$1, SpinnerProps$1, StackProps$1, TableBodyProps$1, TableCellProps$1, TableHeaderProps$1, TableHeaderRowProps$1, TableProps$1, TableRowProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, URLFieldProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/admin/components/shared";
|
|
3589
|
+
import { AdminActionProps$1, AvatarProps$1, BadgeProps$1, BannerProps$1, BoxProps$1, ButtonProps$1, CheckboxProps$1, ChoiceListProps$1, ChoiceProps$1, ClickableProps$1, ComponentChild, DatePickerProps$1, DividerProps$1, EmailFieldProps$1, GridItemProps$1, GridProps$1, HeadingProps$1, IconProps$1, IconType, ImageProps$1, InteractionProps, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, MoneyFieldProps$1, NumberFieldProps$1, OptionGroupProps$1, OptionProps$1, OrderedListProps$1, ParagraphProps$1, PasswordFieldProps$1, QueryContainerProps$1, SectionProps$1, SelectProps$1, SpinnerProps$1, StackProps$1, TableBodyProps$1, TableCellProps$1, TableHeaderProps$1, TableHeaderRowProps$1, TableProps$1, TableRowProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, ThumbnailProps$1, URLFieldProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/admin/components/shared";
|
|
3481
3590
|
import { Spinner } from "../../../../../src/surfaces/admin/components/Spinner";
|
|
3482
3591
|
import { AlignedStackProps, ResponsiveStackProps, Stack } from "../../../../../src/surfaces/admin/components/Stack";
|
|
3483
3592
|
import { Table } from "../../../../../src/surfaces/admin/components/Table";
|
|
@@ -3488,6 +3597,7 @@ import { TableHeaderRow } from "../../../../../src/surfaces/admin/components/Tab
|
|
|
3488
3597
|
import { TableRow } from "../../../../../src/surfaces/admin/components/TableRow";
|
|
3489
3598
|
import { TextArea, TextAreaProps } from "../../../../../src/surfaces/admin/components/TextArea";
|
|
3490
3599
|
import { TextField, TextFieldProps } from "../../../../../src/surfaces/admin/components/TextField";
|
|
3600
|
+
import { Thumbnail } from "../../../../../src/surfaces/admin/components/Thumbnail";
|
|
3491
3601
|
import { UnorderedList } from "../../../../../src/surfaces/admin/components/UnorderedList";
|
|
3492
3602
|
import { URLField, URLFieldProps } from "../../../../../src/surfaces/admin/components/URLField";
|
|
3493
3603
|
import type { ExtensionTargets } from '../extension-targets';
|
|
@@ -150,6 +150,58 @@ export interface UnorderedListProps extends UnorderedListProps$1 {
|
|
|
150
150
|
declare const UnorderedListtagName = 's-unordered-list';
|
|
151
151
|
declare const UnorderedListBaseClass: typeof globalThis.HTMLElement;
|
|
152
152
|
|
|
153
|
+
declare module 'preact' {
|
|
154
|
+
namespace createElement.JSX {
|
|
155
|
+
interface IntrinsicElements {
|
|
156
|
+
[ThumbnailtagName]: ThumbnailJSXProps & ThumbnailPreactBaseElementProps<Thumbnail>;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
declare global {
|
|
162
|
+
interface HTMLElementTagNameMap {
|
|
163
|
+
[ThumbnailtagName]: Thumbnail;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface ThumbnailJSXProps extends Partial<ThumbnailProps>, Pick<ThumbnailProps$1, 'id'> {
|
|
168
|
+
onLoad?: ((event: CallbackEvent<typeof ThumbnailtagName>) => void) | null;
|
|
169
|
+
onError?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface ThumbnailClickOptions {
|
|
173
|
+
/**
|
|
174
|
+
* The event you want to influence the synthetic click.
|
|
175
|
+
*/
|
|
176
|
+
sourceEvent?: ThumbnailActivationEventEsque;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export interface ThumbnailActivationEventEsque {
|
|
180
|
+
shiftKey: boolean;
|
|
181
|
+
metaKey: boolean;
|
|
182
|
+
ctrlKey: boolean;
|
|
183
|
+
button: number;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export interface ThumbnailPreactBaseElementProps<TClass extends HTMLElement> {
|
|
187
|
+
/** Assigns a unique key to this element. */
|
|
188
|
+
key?: preact.Key;
|
|
189
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
190
|
+
ref?: preact.Ref<TClass>;
|
|
191
|
+
/** Assigns this element to a parent's slot. */
|
|
192
|
+
slot?: Lowercase<string>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface ThumbnailProps extends Required<Pick<ThumbnailProps$1, 'src' | 'alt'>> {
|
|
196
|
+
size: Extract<
|
|
197
|
+
ThumbnailProps$1['size'],
|
|
198
|
+
'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'
|
|
199
|
+
>;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare const ThumbnailtagName = 's-thumbnail';
|
|
203
|
+
declare const ThumbnailBaseClass: typeof globalThis.HTMLElement;
|
|
204
|
+
|
|
153
205
|
declare module 'preact' {
|
|
154
206
|
namespace createElement.JSX {
|
|
155
207
|
interface IntrinsicElements {
|
|
@@ -3378,25 +3430,25 @@ declare const BannerBaseClass: typeof globalThis.HTMLElement;
|
|
|
3378
3430
|
declare module 'preact' {
|
|
3379
3431
|
namespace createElement.JSX {
|
|
3380
3432
|
interface IntrinsicElements {
|
|
3381
|
-
[
|
|
3433
|
+
[BadgetagName]: BadgeJSXProps & BadgePreactBaseElementPropsWithChildren<Badge>;
|
|
3382
3434
|
}
|
|
3383
3435
|
}
|
|
3384
3436
|
}
|
|
3385
3437
|
|
|
3386
3438
|
declare global {
|
|
3387
3439
|
interface HTMLElementTagNameMap {
|
|
3388
|
-
[
|
|
3440
|
+
[BadgetagName]: Badge;
|
|
3389
3441
|
}
|
|
3390
3442
|
}
|
|
3391
3443
|
|
|
3392
3444
|
export interface BadgeJSXProps extends Partial<BadgeProps>, Pick<BadgeProps$1, 'id'> {
|
|
3393
3445
|
}
|
|
3394
3446
|
|
|
3395
|
-
export interface
|
|
3447
|
+
export interface BadgePreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends BadgePreactBaseElementProps<TClass> {
|
|
3396
3448
|
children?: preact.ComponentChildren;
|
|
3397
3449
|
}
|
|
3398
3450
|
|
|
3399
|
-
export interface
|
|
3451
|
+
export interface BadgePreactBaseElementProps<TClass extends HTMLElement> {
|
|
3400
3452
|
/** Assigns a unique key to this element. */
|
|
3401
3453
|
key?: preact.Key;
|
|
3402
3454
|
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
@@ -3405,14 +3457,14 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
3405
3457
|
slot?: Lowercase<string>;
|
|
3406
3458
|
}
|
|
3407
3459
|
|
|
3408
|
-
export interface
|
|
3460
|
+
export interface BadgeClickOptions {
|
|
3409
3461
|
/**
|
|
3410
3462
|
* The event you want to influence the synthetic click.
|
|
3411
3463
|
*/
|
|
3412
|
-
sourceEvent?:
|
|
3464
|
+
sourceEvent?: BadgeActivationEventEsque;
|
|
3413
3465
|
}
|
|
3414
3466
|
|
|
3415
|
-
export interface
|
|
3467
|
+
export interface BadgeActivationEventEsque {
|
|
3416
3468
|
shiftKey: boolean;
|
|
3417
3469
|
metaKey: boolean;
|
|
3418
3470
|
ctrlKey: boolean;
|
|
@@ -3442,7 +3494,63 @@ export interface IconProps extends Pick<IconProps$1, 'type' | 'tone' | 'color' |
|
|
|
3442
3494
|
size: Extract<IconProps$1['size'], 'small' | 'base'>;
|
|
3443
3495
|
}
|
|
3444
3496
|
|
|
3445
|
-
declare const
|
|
3497
|
+
declare const BadgetagName = 's-badge';
|
|
3498
|
+
declare const BadgeBaseClass: typeof globalThis.HTMLElement;
|
|
3499
|
+
|
|
3500
|
+
declare module 'preact' {
|
|
3501
|
+
namespace createElement.JSX {
|
|
3502
|
+
interface IntrinsicElements {
|
|
3503
|
+
[tagName]: AvatarJSXProps & PreactBaseElementPropsWithChildren<Avatar>;
|
|
3504
|
+
}
|
|
3505
|
+
}
|
|
3506
|
+
}
|
|
3507
|
+
|
|
3508
|
+
declare global {
|
|
3509
|
+
interface HTMLElementTagNameMap {
|
|
3510
|
+
[tagName]: Avatar;
|
|
3511
|
+
}
|
|
3512
|
+
}
|
|
3513
|
+
|
|
3514
|
+
export interface AvatarJSXProps extends Partial<AvatarProps>, Pick<AvatarProps$1, 'id'> {
|
|
3515
|
+
onLoad?: () => void;
|
|
3516
|
+
onError?: () => void;
|
|
3517
|
+
}
|
|
3518
|
+
|
|
3519
|
+
export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends PreactBaseElementProps<TClass> {
|
|
3520
|
+
children?: preact.ComponentChildren;
|
|
3521
|
+
}
|
|
3522
|
+
|
|
3523
|
+
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
3524
|
+
/** Assigns a unique key to this element. */
|
|
3525
|
+
key?: preact.Key;
|
|
3526
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
3527
|
+
ref?: preact.Ref<TClass>;
|
|
3528
|
+
/** Assigns this element to a parent's slot. */
|
|
3529
|
+
slot?: Lowercase<string>;
|
|
3530
|
+
}
|
|
3531
|
+
|
|
3532
|
+
export interface ClickOptions {
|
|
3533
|
+
/**
|
|
3534
|
+
* The event you want to influence the synthetic click.
|
|
3535
|
+
*/
|
|
3536
|
+
sourceEvent?: ActivationEventEsque;
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3539
|
+
export interface ActivationEventEsque {
|
|
3540
|
+
shiftKey: boolean;
|
|
3541
|
+
metaKey: boolean;
|
|
3542
|
+
ctrlKey: boolean;
|
|
3543
|
+
button: number;
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
export interface AvatarProps extends Required<Pick<AvatarProps$1, 'initials' | 'src' | 'alt'>> {
|
|
3547
|
+
size: Extract<
|
|
3548
|
+
AvatarProps$1['size'],
|
|
3549
|
+
'small-200' | 'small' | 'base' | 'large' | 'large-200'
|
|
3550
|
+
>;
|
|
3551
|
+
}
|
|
3552
|
+
|
|
3553
|
+
declare const tagName = 's-avatar';
|
|
3446
3554
|
/**
|
|
3447
3555
|
* Base class for creating custom elements with Preact.
|
|
3448
3556
|
* While this class could be used in both Node and the browser, the constructor will only be used in the browser.
|
|
@@ -3451,8 +3559,9 @@ declare const tagName = 's-badge';
|
|
|
3451
3559
|
declare const BaseClass: typeof globalThis.HTMLElement;
|
|
3452
3560
|
|
|
3453
3561
|
import { AdminAction } from "../../../../../src/surfaces/admin/components/AdminAction";
|
|
3454
|
-
import {
|
|
3455
|
-
import {
|
|
3562
|
+
import { Avatar, CallbackEvent, RenderImpl } from "../../../../../src/surfaces/admin/components/Avatar";
|
|
3563
|
+
import { Badge } from "../../../../../src/surfaces/admin/components/Badge";
|
|
3564
|
+
import { Banner, RequiredBannerProps } from "../../../../../src/surfaces/admin/components/Banner";
|
|
3456
3565
|
import { Box, BoxBorderRadii, BoxBorderStyles, RequiredBoxProps, ResponsiveBoxProps } from "../../../../../src/surfaces/admin/components/Box";
|
|
3457
3566
|
import { Button, ButtonBaseProps } from "../../../../../src/surfaces/admin/components/Button";
|
|
3458
3567
|
import { Checkbox, PreactInputProps } from "../../../../../src/surfaces/admin/components/Checkbox";
|
|
@@ -3477,7 +3586,7 @@ import { PasswordField, PasswordFieldProps } from "../../../../../src/surfaces/a
|
|
|
3477
3586
|
import { QueryContainer } from "../../../../../src/surfaces/admin/components/QueryContainer";
|
|
3478
3587
|
import { RequiredSectionProps, Section } from "../../../../../src/surfaces/admin/components/Section";
|
|
3479
3588
|
import { Select } from "../../../../../src/surfaces/admin/components/Select";
|
|
3480
|
-
import { AdminActionProps$1, BadgeProps$1, BannerProps$1, BoxProps$1, ButtonProps$1, CheckboxProps$1, ChoiceListProps$1, ChoiceProps$1, ClickableProps$1, ComponentChild, DatePickerProps$1, DividerProps$1, EmailFieldProps$1, GridItemProps$1, GridProps$1, HeadingProps$1, IconProps$1, IconType, ImageProps$1, InteractionProps, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, MoneyFieldProps$1, NumberFieldProps$1, OptionGroupProps$1, OptionProps$1, OrderedListProps$1, ParagraphProps$1, PasswordFieldProps$1, QueryContainerProps$1, SectionProps$1, SelectProps$1, SpinnerProps$1, StackProps$1, TableBodyProps$1, TableCellProps$1, TableHeaderProps$1, TableHeaderRowProps$1, TableProps$1, TableRowProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, URLFieldProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/admin/components/shared";
|
|
3589
|
+
import { AdminActionProps$1, AvatarProps$1, BadgeProps$1, BannerProps$1, BoxProps$1, ButtonProps$1, CheckboxProps$1, ChoiceListProps$1, ChoiceProps$1, ClickableProps$1, ComponentChild, DatePickerProps$1, DividerProps$1, EmailFieldProps$1, GridItemProps$1, GridProps$1, HeadingProps$1, IconProps$1, IconType, ImageProps$1, InteractionProps, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, MoneyFieldProps$1, NumberFieldProps$1, OptionGroupProps$1, OptionProps$1, OrderedListProps$1, ParagraphProps$1, PasswordFieldProps$1, QueryContainerProps$1, SectionProps$1, SelectProps$1, SpinnerProps$1, StackProps$1, TableBodyProps$1, TableCellProps$1, TableHeaderProps$1, TableHeaderRowProps$1, TableProps$1, TableRowProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, ThumbnailProps$1, URLFieldProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/admin/components/shared";
|
|
3481
3590
|
import { Spinner } from "../../../../../src/surfaces/admin/components/Spinner";
|
|
3482
3591
|
import { AlignedStackProps, ResponsiveStackProps, Stack } from "../../../../../src/surfaces/admin/components/Stack";
|
|
3483
3592
|
import { Table } from "../../../../../src/surfaces/admin/components/Table";
|
|
@@ -3488,6 +3597,7 @@ import { TableHeaderRow } from "../../../../../src/surfaces/admin/components/Tab
|
|
|
3488
3597
|
import { TableRow } from "../../../../../src/surfaces/admin/components/TableRow";
|
|
3489
3598
|
import { TextArea, TextAreaProps } from "../../../../../src/surfaces/admin/components/TextArea";
|
|
3490
3599
|
import { TextField, TextFieldProps } from "../../../../../src/surfaces/admin/components/TextField";
|
|
3600
|
+
import { Thumbnail } from "../../../../../src/surfaces/admin/components/Thumbnail";
|
|
3491
3601
|
import { UnorderedList } from "../../../../../src/surfaces/admin/components/UnorderedList";
|
|
3492
3602
|
import { URLField, URLFieldProps } from "../../../../../src/surfaces/admin/components/URLField";
|
|
3493
3603
|
import type { ExtensionTargets } from '../extension-targets';
|
|
@@ -150,6 +150,58 @@ export interface UnorderedListProps extends UnorderedListProps$1 {
|
|
|
150
150
|
declare const UnorderedListtagName = 's-unordered-list';
|
|
151
151
|
declare const UnorderedListBaseClass: typeof globalThis.HTMLElement;
|
|
152
152
|
|
|
153
|
+
declare module 'preact' {
|
|
154
|
+
namespace createElement.JSX {
|
|
155
|
+
interface IntrinsicElements {
|
|
156
|
+
[ThumbnailtagName]: ThumbnailJSXProps & ThumbnailPreactBaseElementProps<Thumbnail>;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
declare global {
|
|
162
|
+
interface HTMLElementTagNameMap {
|
|
163
|
+
[ThumbnailtagName]: Thumbnail;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface ThumbnailJSXProps extends Partial<ThumbnailProps>, Pick<ThumbnailProps$1, 'id'> {
|
|
168
|
+
onLoad?: ((event: CallbackEvent<typeof ThumbnailtagName>) => void) | null;
|
|
169
|
+
onError?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface ThumbnailClickOptions {
|
|
173
|
+
/**
|
|
174
|
+
* The event you want to influence the synthetic click.
|
|
175
|
+
*/
|
|
176
|
+
sourceEvent?: ThumbnailActivationEventEsque;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export interface ThumbnailActivationEventEsque {
|
|
180
|
+
shiftKey: boolean;
|
|
181
|
+
metaKey: boolean;
|
|
182
|
+
ctrlKey: boolean;
|
|
183
|
+
button: number;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export interface ThumbnailPreactBaseElementProps<TClass extends HTMLElement> {
|
|
187
|
+
/** Assigns a unique key to this element. */
|
|
188
|
+
key?: preact.Key;
|
|
189
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
190
|
+
ref?: preact.Ref<TClass>;
|
|
191
|
+
/** Assigns this element to a parent's slot. */
|
|
192
|
+
slot?: Lowercase<string>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface ThumbnailProps extends Required<Pick<ThumbnailProps$1, 'src' | 'alt'>> {
|
|
196
|
+
size: Extract<
|
|
197
|
+
ThumbnailProps$1['size'],
|
|
198
|
+
'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'
|
|
199
|
+
>;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare const ThumbnailtagName = 's-thumbnail';
|
|
203
|
+
declare const ThumbnailBaseClass: typeof globalThis.HTMLElement;
|
|
204
|
+
|
|
153
205
|
declare module 'preact' {
|
|
154
206
|
namespace createElement.JSX {
|
|
155
207
|
interface IntrinsicElements {
|
|
@@ -3378,25 +3430,25 @@ declare const BannerBaseClass: typeof globalThis.HTMLElement;
|
|
|
3378
3430
|
declare module 'preact' {
|
|
3379
3431
|
namespace createElement.JSX {
|
|
3380
3432
|
interface IntrinsicElements {
|
|
3381
|
-
[
|
|
3433
|
+
[BadgetagName]: BadgeJSXProps & BadgePreactBaseElementPropsWithChildren<Badge>;
|
|
3382
3434
|
}
|
|
3383
3435
|
}
|
|
3384
3436
|
}
|
|
3385
3437
|
|
|
3386
3438
|
declare global {
|
|
3387
3439
|
interface HTMLElementTagNameMap {
|
|
3388
|
-
[
|
|
3440
|
+
[BadgetagName]: Badge;
|
|
3389
3441
|
}
|
|
3390
3442
|
}
|
|
3391
3443
|
|
|
3392
3444
|
export interface BadgeJSXProps extends Partial<BadgeProps>, Pick<BadgeProps$1, 'id'> {
|
|
3393
3445
|
}
|
|
3394
3446
|
|
|
3395
|
-
export interface
|
|
3447
|
+
export interface BadgePreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends BadgePreactBaseElementProps<TClass> {
|
|
3396
3448
|
children?: preact.ComponentChildren;
|
|
3397
3449
|
}
|
|
3398
3450
|
|
|
3399
|
-
export interface
|
|
3451
|
+
export interface BadgePreactBaseElementProps<TClass extends HTMLElement> {
|
|
3400
3452
|
/** Assigns a unique key to this element. */
|
|
3401
3453
|
key?: preact.Key;
|
|
3402
3454
|
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
@@ -3405,14 +3457,14 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
3405
3457
|
slot?: Lowercase<string>;
|
|
3406
3458
|
}
|
|
3407
3459
|
|
|
3408
|
-
export interface
|
|
3460
|
+
export interface BadgeClickOptions {
|
|
3409
3461
|
/**
|
|
3410
3462
|
* The event you want to influence the synthetic click.
|
|
3411
3463
|
*/
|
|
3412
|
-
sourceEvent?:
|
|
3464
|
+
sourceEvent?: BadgeActivationEventEsque;
|
|
3413
3465
|
}
|
|
3414
3466
|
|
|
3415
|
-
export interface
|
|
3467
|
+
export interface BadgeActivationEventEsque {
|
|
3416
3468
|
shiftKey: boolean;
|
|
3417
3469
|
metaKey: boolean;
|
|
3418
3470
|
ctrlKey: boolean;
|
|
@@ -3442,7 +3494,63 @@ export interface IconProps extends Pick<IconProps$1, 'type' | 'tone' | 'color' |
|
|
|
3442
3494
|
size: Extract<IconProps$1['size'], 'small' | 'base'>;
|
|
3443
3495
|
}
|
|
3444
3496
|
|
|
3445
|
-
declare const
|
|
3497
|
+
declare const BadgetagName = 's-badge';
|
|
3498
|
+
declare const BadgeBaseClass: typeof globalThis.HTMLElement;
|
|
3499
|
+
|
|
3500
|
+
declare module 'preact' {
|
|
3501
|
+
namespace createElement.JSX {
|
|
3502
|
+
interface IntrinsicElements {
|
|
3503
|
+
[tagName]: AvatarJSXProps & PreactBaseElementPropsWithChildren<Avatar>;
|
|
3504
|
+
}
|
|
3505
|
+
}
|
|
3506
|
+
}
|
|
3507
|
+
|
|
3508
|
+
declare global {
|
|
3509
|
+
interface HTMLElementTagNameMap {
|
|
3510
|
+
[tagName]: Avatar;
|
|
3511
|
+
}
|
|
3512
|
+
}
|
|
3513
|
+
|
|
3514
|
+
export interface AvatarJSXProps extends Partial<AvatarProps>, Pick<AvatarProps$1, 'id'> {
|
|
3515
|
+
onLoad?: () => void;
|
|
3516
|
+
onError?: () => void;
|
|
3517
|
+
}
|
|
3518
|
+
|
|
3519
|
+
export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends PreactBaseElementProps<TClass> {
|
|
3520
|
+
children?: preact.ComponentChildren;
|
|
3521
|
+
}
|
|
3522
|
+
|
|
3523
|
+
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
3524
|
+
/** Assigns a unique key to this element. */
|
|
3525
|
+
key?: preact.Key;
|
|
3526
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
3527
|
+
ref?: preact.Ref<TClass>;
|
|
3528
|
+
/** Assigns this element to a parent's slot. */
|
|
3529
|
+
slot?: Lowercase<string>;
|
|
3530
|
+
}
|
|
3531
|
+
|
|
3532
|
+
export interface ClickOptions {
|
|
3533
|
+
/**
|
|
3534
|
+
* The event you want to influence the synthetic click.
|
|
3535
|
+
*/
|
|
3536
|
+
sourceEvent?: ActivationEventEsque;
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3539
|
+
export interface ActivationEventEsque {
|
|
3540
|
+
shiftKey: boolean;
|
|
3541
|
+
metaKey: boolean;
|
|
3542
|
+
ctrlKey: boolean;
|
|
3543
|
+
button: number;
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
export interface AvatarProps extends Required<Pick<AvatarProps$1, 'initials' | 'src' | 'alt'>> {
|
|
3547
|
+
size: Extract<
|
|
3548
|
+
AvatarProps$1['size'],
|
|
3549
|
+
'small-200' | 'small' | 'base' | 'large' | 'large-200'
|
|
3550
|
+
>;
|
|
3551
|
+
}
|
|
3552
|
+
|
|
3553
|
+
declare const tagName = 's-avatar';
|
|
3446
3554
|
/**
|
|
3447
3555
|
* Base class for creating custom elements with Preact.
|
|
3448
3556
|
* While this class could be used in both Node and the browser, the constructor will only be used in the browser.
|
|
@@ -3451,8 +3559,9 @@ declare const tagName = 's-badge';
|
|
|
3451
3559
|
declare const BaseClass: typeof globalThis.HTMLElement;
|
|
3452
3560
|
|
|
3453
3561
|
import { AdminAction } from "../../../../../src/surfaces/admin/components/AdminAction";
|
|
3454
|
-
import {
|
|
3455
|
-
import {
|
|
3562
|
+
import { Avatar, CallbackEvent, RenderImpl } from "../../../../../src/surfaces/admin/components/Avatar";
|
|
3563
|
+
import { Badge } from "../../../../../src/surfaces/admin/components/Badge";
|
|
3564
|
+
import { Banner, RequiredBannerProps } from "../../../../../src/surfaces/admin/components/Banner";
|
|
3456
3565
|
import { Box, BoxBorderRadii, BoxBorderStyles, RequiredBoxProps, ResponsiveBoxProps } from "../../../../../src/surfaces/admin/components/Box";
|
|
3457
3566
|
import { Button, ButtonBaseProps } from "../../../../../src/surfaces/admin/components/Button";
|
|
3458
3567
|
import { Checkbox, PreactInputProps } from "../../../../../src/surfaces/admin/components/Checkbox";
|
|
@@ -3477,7 +3586,7 @@ import { PasswordField, PasswordFieldProps } from "../../../../../src/surfaces/a
|
|
|
3477
3586
|
import { QueryContainer } from "../../../../../src/surfaces/admin/components/QueryContainer";
|
|
3478
3587
|
import { RequiredSectionProps, Section } from "../../../../../src/surfaces/admin/components/Section";
|
|
3479
3588
|
import { Select } from "../../../../../src/surfaces/admin/components/Select";
|
|
3480
|
-
import { AdminActionProps$1, BadgeProps$1, BannerProps$1, BoxProps$1, ButtonProps$1, CheckboxProps$1, ChoiceListProps$1, ChoiceProps$1, ClickableProps$1, ComponentChild, DatePickerProps$1, DividerProps$1, EmailFieldProps$1, GridItemProps$1, GridProps$1, HeadingProps$1, IconProps$1, IconType, ImageProps$1, InteractionProps, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, MoneyFieldProps$1, NumberFieldProps$1, OptionGroupProps$1, OptionProps$1, OrderedListProps$1, ParagraphProps$1, PasswordFieldProps$1, QueryContainerProps$1, SectionProps$1, SelectProps$1, SpinnerProps$1, StackProps$1, TableBodyProps$1, TableCellProps$1, TableHeaderProps$1, TableHeaderRowProps$1, TableProps$1, TableRowProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, URLFieldProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/admin/components/shared";
|
|
3589
|
+
import { AdminActionProps$1, AvatarProps$1, BadgeProps$1, BannerProps$1, BoxProps$1, ButtonProps$1, CheckboxProps$1, ChoiceListProps$1, ChoiceProps$1, ClickableProps$1, ComponentChild, DatePickerProps$1, DividerProps$1, EmailFieldProps$1, GridItemProps$1, GridProps$1, HeadingProps$1, IconProps$1, IconType, ImageProps$1, InteractionProps, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, MoneyFieldProps$1, NumberFieldProps$1, OptionGroupProps$1, OptionProps$1, OrderedListProps$1, ParagraphProps$1, PasswordFieldProps$1, QueryContainerProps$1, SectionProps$1, SelectProps$1, SpinnerProps$1, StackProps$1, TableBodyProps$1, TableCellProps$1, TableHeaderProps$1, TableHeaderRowProps$1, TableProps$1, TableRowProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, ThumbnailProps$1, URLFieldProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/admin/components/shared";
|
|
3481
3590
|
import { Spinner } from "../../../../../src/surfaces/admin/components/Spinner";
|
|
3482
3591
|
import { AlignedStackProps, ResponsiveStackProps, Stack } from "../../../../../src/surfaces/admin/components/Stack";
|
|
3483
3592
|
import { Table } from "../../../../../src/surfaces/admin/components/Table";
|
|
@@ -3488,6 +3597,7 @@ import { TableHeaderRow } from "../../../../../src/surfaces/admin/components/Tab
|
|
|
3488
3597
|
import { TableRow } from "../../../../../src/surfaces/admin/components/TableRow";
|
|
3489
3598
|
import { TextArea, TextAreaProps } from "../../../../../src/surfaces/admin/components/TextArea";
|
|
3490
3599
|
import { TextField, TextFieldProps } from "../../../../../src/surfaces/admin/components/TextField";
|
|
3600
|
+
import { Thumbnail } from "../../../../../src/surfaces/admin/components/Thumbnail";
|
|
3491
3601
|
import { UnorderedList } from "../../../../../src/surfaces/admin/components/UnorderedList";
|
|
3492
3602
|
import { URLField, URLFieldProps } from "../../../../../src/surfaces/admin/components/URLField";
|
|
3493
3603
|
import type { ExtensionTargets } from '../extension-targets';
|