@shopify/ui-extensions 2025.10.0-rc.8 → 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 +1 -1
- 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 +195 -160
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +68 -11
- package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +68 -11
- 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 +1 -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 +1 -1
- 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 +195 -160
- package/src/surfaces/admin/components.d.ts +274 -182
|
@@ -3380,25 +3380,25 @@ declare const BannerBaseClass: typeof globalThis.HTMLElement;
|
|
|
3380
3380
|
declare module 'preact' {
|
|
3381
3381
|
namespace createElement.JSX {
|
|
3382
3382
|
interface IntrinsicElements {
|
|
3383
|
-
[
|
|
3383
|
+
[BadgetagName]: BadgeJSXProps & BadgePreactBaseElementPropsWithChildren<Badge>;
|
|
3384
3384
|
}
|
|
3385
3385
|
}
|
|
3386
3386
|
}
|
|
3387
3387
|
|
|
3388
3388
|
declare global {
|
|
3389
3389
|
interface HTMLElementTagNameMap {
|
|
3390
|
-
[
|
|
3390
|
+
[BadgetagName]: Badge;
|
|
3391
3391
|
}
|
|
3392
3392
|
}
|
|
3393
3393
|
|
|
3394
3394
|
export interface BadgeJSXProps extends Partial<BadgeProps>, Pick<BadgeProps$1, 'id'> {
|
|
3395
3395
|
}
|
|
3396
3396
|
|
|
3397
|
-
export interface
|
|
3397
|
+
export interface BadgePreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends BadgePreactBaseElementProps<TClass> {
|
|
3398
3398
|
children?: preact.ComponentChildren;
|
|
3399
3399
|
}
|
|
3400
3400
|
|
|
3401
|
-
export interface
|
|
3401
|
+
export interface BadgePreactBaseElementProps<TClass extends HTMLElement> {
|
|
3402
3402
|
/** Assigns a unique key to this element. */
|
|
3403
3403
|
key?: preact.Key;
|
|
3404
3404
|
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
@@ -3407,14 +3407,14 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
3407
3407
|
slot?: Lowercase<string>;
|
|
3408
3408
|
}
|
|
3409
3409
|
|
|
3410
|
-
export interface
|
|
3410
|
+
export interface BadgeClickOptions {
|
|
3411
3411
|
/**
|
|
3412
3412
|
* The event you want to influence the synthetic click.
|
|
3413
3413
|
*/
|
|
3414
|
-
sourceEvent?:
|
|
3414
|
+
sourceEvent?: BadgeActivationEventEsque;
|
|
3415
3415
|
}
|
|
3416
3416
|
|
|
3417
|
-
export interface
|
|
3417
|
+
export interface BadgeActivationEventEsque {
|
|
3418
3418
|
shiftKey: boolean;
|
|
3419
3419
|
metaKey: boolean;
|
|
3420
3420
|
ctrlKey: boolean;
|
|
@@ -3444,7 +3444,63 @@ export interface IconProps extends Pick<IconProps$1, 'type' | 'tone' | 'color' |
|
|
|
3444
3444
|
size: Extract<IconProps$1['size'], 'small' | 'base'>;
|
|
3445
3445
|
}
|
|
3446
3446
|
|
|
3447
|
-
declare const
|
|
3447
|
+
declare const BadgetagName = 's-badge';
|
|
3448
|
+
declare const BadgeBaseClass: typeof globalThis.HTMLElement;
|
|
3449
|
+
|
|
3450
|
+
declare module 'preact' {
|
|
3451
|
+
namespace createElement.JSX {
|
|
3452
|
+
interface IntrinsicElements {
|
|
3453
|
+
[tagName]: AvatarJSXProps & PreactBaseElementPropsWithChildren<Avatar>;
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3458
|
+
declare global {
|
|
3459
|
+
interface HTMLElementTagNameMap {
|
|
3460
|
+
[tagName]: Avatar;
|
|
3461
|
+
}
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3464
|
+
export interface AvatarJSXProps extends Partial<AvatarProps>, Pick<AvatarProps$1, 'id'> {
|
|
3465
|
+
onLoad?: () => void;
|
|
3466
|
+
onError?: () => void;
|
|
3467
|
+
}
|
|
3468
|
+
|
|
3469
|
+
export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends PreactBaseElementProps<TClass> {
|
|
3470
|
+
children?: preact.ComponentChildren;
|
|
3471
|
+
}
|
|
3472
|
+
|
|
3473
|
+
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
3474
|
+
/** Assigns a unique key to this element. */
|
|
3475
|
+
key?: preact.Key;
|
|
3476
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
3477
|
+
ref?: preact.Ref<TClass>;
|
|
3478
|
+
/** Assigns this element to a parent's slot. */
|
|
3479
|
+
slot?: Lowercase<string>;
|
|
3480
|
+
}
|
|
3481
|
+
|
|
3482
|
+
export interface ClickOptions {
|
|
3483
|
+
/**
|
|
3484
|
+
* The event you want to influence the synthetic click.
|
|
3485
|
+
*/
|
|
3486
|
+
sourceEvent?: ActivationEventEsque;
|
|
3487
|
+
}
|
|
3488
|
+
|
|
3489
|
+
export interface ActivationEventEsque {
|
|
3490
|
+
shiftKey: boolean;
|
|
3491
|
+
metaKey: boolean;
|
|
3492
|
+
ctrlKey: boolean;
|
|
3493
|
+
button: number;
|
|
3494
|
+
}
|
|
3495
|
+
|
|
3496
|
+
export interface AvatarProps extends Required<Pick<AvatarProps$1, 'initials' | 'src' | 'alt'>> {
|
|
3497
|
+
size: Extract<
|
|
3498
|
+
AvatarProps$1['size'],
|
|
3499
|
+
'small-200' | 'small' | 'base' | 'large' | 'large-200'
|
|
3500
|
+
>;
|
|
3501
|
+
}
|
|
3502
|
+
|
|
3503
|
+
declare const tagName = 's-avatar';
|
|
3448
3504
|
/**
|
|
3449
3505
|
* Base class for creating custom elements with Preact.
|
|
3450
3506
|
* While this class could be used in both Node and the browser, the constructor will only be used in the browser.
|
|
@@ -3452,8 +3508,9 @@ declare const tagName = 's-badge';
|
|
|
3452
3508
|
*/
|
|
3453
3509
|
declare const BaseClass: typeof globalThis.HTMLElement;
|
|
3454
3510
|
|
|
3455
|
-
import {
|
|
3456
|
-
import {
|
|
3511
|
+
import { Avatar, CallbackEvent, RenderImpl } from "../../../../../src/surfaces/admin/components/Avatar";
|
|
3512
|
+
import { Badge } from "../../../../../src/surfaces/admin/components/Badge";
|
|
3513
|
+
import { Banner, RequiredBannerProps } from "../../../../../src/surfaces/admin/components/Banner";
|
|
3457
3514
|
import { Box, BoxBorderRadii, BoxBorderStyles, RequiredBoxProps, ResponsiveBoxProps } from "../../../../../src/surfaces/admin/components/Box";
|
|
3458
3515
|
import { Button, ButtonBaseProps } from "../../../../../src/surfaces/admin/components/Button";
|
|
3459
3516
|
import { Checkbox, PreactInputProps } from "../../../../../src/surfaces/admin/components/Checkbox";
|
|
@@ -3478,7 +3535,7 @@ import { PasswordField, PasswordFieldProps } from "../../../../../src/surfaces/a
|
|
|
3478
3535
|
import { QueryContainer } from "../../../../../src/surfaces/admin/components/QueryContainer";
|
|
3479
3536
|
import { RequiredSectionProps, Section } from "../../../../../src/surfaces/admin/components/Section";
|
|
3480
3537
|
import { Select } from "../../../../../src/surfaces/admin/components/Select";
|
|
3481
|
-
import { 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";
|
|
3538
|
+
import { 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";
|
|
3482
3539
|
import { Spinner } from "../../../../../src/surfaces/admin/components/Spinner";
|
|
3483
3540
|
import { AlignedStackProps, ResponsiveStackProps, Stack } from "../../../../../src/surfaces/admin/components/Stack";
|
|
3484
3541
|
import { Table } from "../../../../../src/surfaces/admin/components/Table";
|
|
@@ -3380,25 +3380,25 @@ declare const BannerBaseClass: typeof globalThis.HTMLElement;
|
|
|
3380
3380
|
declare module 'preact' {
|
|
3381
3381
|
namespace createElement.JSX {
|
|
3382
3382
|
interface IntrinsicElements {
|
|
3383
|
-
[
|
|
3383
|
+
[BadgetagName]: BadgeJSXProps & BadgePreactBaseElementPropsWithChildren<Badge>;
|
|
3384
3384
|
}
|
|
3385
3385
|
}
|
|
3386
3386
|
}
|
|
3387
3387
|
|
|
3388
3388
|
declare global {
|
|
3389
3389
|
interface HTMLElementTagNameMap {
|
|
3390
|
-
[
|
|
3390
|
+
[BadgetagName]: Badge;
|
|
3391
3391
|
}
|
|
3392
3392
|
}
|
|
3393
3393
|
|
|
3394
3394
|
export interface BadgeJSXProps extends Partial<BadgeProps>, Pick<BadgeProps$1, 'id'> {
|
|
3395
3395
|
}
|
|
3396
3396
|
|
|
3397
|
-
export interface
|
|
3397
|
+
export interface BadgePreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends BadgePreactBaseElementProps<TClass> {
|
|
3398
3398
|
children?: preact.ComponentChildren;
|
|
3399
3399
|
}
|
|
3400
3400
|
|
|
3401
|
-
export interface
|
|
3401
|
+
export interface BadgePreactBaseElementProps<TClass extends HTMLElement> {
|
|
3402
3402
|
/** Assigns a unique key to this element. */
|
|
3403
3403
|
key?: preact.Key;
|
|
3404
3404
|
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
@@ -3407,14 +3407,14 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
3407
3407
|
slot?: Lowercase<string>;
|
|
3408
3408
|
}
|
|
3409
3409
|
|
|
3410
|
-
export interface
|
|
3410
|
+
export interface BadgeClickOptions {
|
|
3411
3411
|
/**
|
|
3412
3412
|
* The event you want to influence the synthetic click.
|
|
3413
3413
|
*/
|
|
3414
|
-
sourceEvent?:
|
|
3414
|
+
sourceEvent?: BadgeActivationEventEsque;
|
|
3415
3415
|
}
|
|
3416
3416
|
|
|
3417
|
-
export interface
|
|
3417
|
+
export interface BadgeActivationEventEsque {
|
|
3418
3418
|
shiftKey: boolean;
|
|
3419
3419
|
metaKey: boolean;
|
|
3420
3420
|
ctrlKey: boolean;
|
|
@@ -3444,7 +3444,63 @@ export interface IconProps extends Pick<IconProps$1, 'type' | 'tone' | 'color' |
|
|
|
3444
3444
|
size: Extract<IconProps$1['size'], 'small' | 'base'>;
|
|
3445
3445
|
}
|
|
3446
3446
|
|
|
3447
|
-
declare const
|
|
3447
|
+
declare const BadgetagName = 's-badge';
|
|
3448
|
+
declare const BadgeBaseClass: typeof globalThis.HTMLElement;
|
|
3449
|
+
|
|
3450
|
+
declare module 'preact' {
|
|
3451
|
+
namespace createElement.JSX {
|
|
3452
|
+
interface IntrinsicElements {
|
|
3453
|
+
[tagName]: AvatarJSXProps & PreactBaseElementPropsWithChildren<Avatar>;
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3458
|
+
declare global {
|
|
3459
|
+
interface HTMLElementTagNameMap {
|
|
3460
|
+
[tagName]: Avatar;
|
|
3461
|
+
}
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3464
|
+
export interface AvatarJSXProps extends Partial<AvatarProps>, Pick<AvatarProps$1, 'id'> {
|
|
3465
|
+
onLoad?: () => void;
|
|
3466
|
+
onError?: () => void;
|
|
3467
|
+
}
|
|
3468
|
+
|
|
3469
|
+
export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends PreactBaseElementProps<TClass> {
|
|
3470
|
+
children?: preact.ComponentChildren;
|
|
3471
|
+
}
|
|
3472
|
+
|
|
3473
|
+
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
3474
|
+
/** Assigns a unique key to this element. */
|
|
3475
|
+
key?: preact.Key;
|
|
3476
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
3477
|
+
ref?: preact.Ref<TClass>;
|
|
3478
|
+
/** Assigns this element to a parent's slot. */
|
|
3479
|
+
slot?: Lowercase<string>;
|
|
3480
|
+
}
|
|
3481
|
+
|
|
3482
|
+
export interface ClickOptions {
|
|
3483
|
+
/**
|
|
3484
|
+
* The event you want to influence the synthetic click.
|
|
3485
|
+
*/
|
|
3486
|
+
sourceEvent?: ActivationEventEsque;
|
|
3487
|
+
}
|
|
3488
|
+
|
|
3489
|
+
export interface ActivationEventEsque {
|
|
3490
|
+
shiftKey: boolean;
|
|
3491
|
+
metaKey: boolean;
|
|
3492
|
+
ctrlKey: boolean;
|
|
3493
|
+
button: number;
|
|
3494
|
+
}
|
|
3495
|
+
|
|
3496
|
+
export interface AvatarProps extends Required<Pick<AvatarProps$1, 'initials' | 'src' | 'alt'>> {
|
|
3497
|
+
size: Extract<
|
|
3498
|
+
AvatarProps$1['size'],
|
|
3499
|
+
'small-200' | 'small' | 'base' | 'large' | 'large-200'
|
|
3500
|
+
>;
|
|
3501
|
+
}
|
|
3502
|
+
|
|
3503
|
+
declare const tagName = 's-avatar';
|
|
3448
3504
|
/**
|
|
3449
3505
|
* Base class for creating custom elements with Preact.
|
|
3450
3506
|
* While this class could be used in both Node and the browser, the constructor will only be used in the browser.
|
|
@@ -3452,8 +3508,9 @@ declare const tagName = 's-badge';
|
|
|
3452
3508
|
*/
|
|
3453
3509
|
declare const BaseClass: typeof globalThis.HTMLElement;
|
|
3454
3510
|
|
|
3455
|
-
import {
|
|
3456
|
-
import {
|
|
3511
|
+
import { Avatar, CallbackEvent, RenderImpl } from "../../../../../src/surfaces/admin/components/Avatar";
|
|
3512
|
+
import { Badge } from "../../../../../src/surfaces/admin/components/Badge";
|
|
3513
|
+
import { Banner, RequiredBannerProps } from "../../../../../src/surfaces/admin/components/Banner";
|
|
3457
3514
|
import { Box, BoxBorderRadii, BoxBorderStyles, RequiredBoxProps, ResponsiveBoxProps } from "../../../../../src/surfaces/admin/components/Box";
|
|
3458
3515
|
import { Button, ButtonBaseProps } from "../../../../../src/surfaces/admin/components/Button";
|
|
3459
3516
|
import { Checkbox, PreactInputProps } from "../../../../../src/surfaces/admin/components/Checkbox";
|
|
@@ -3478,7 +3535,7 @@ import { PasswordField, PasswordFieldProps } from "../../../../../src/surfaces/a
|
|
|
3478
3535
|
import { QueryContainer } from "../../../../../src/surfaces/admin/components/QueryContainer";
|
|
3479
3536
|
import { RequiredSectionProps, Section } from "../../../../../src/surfaces/admin/components/Section";
|
|
3480
3537
|
import { Select } from "../../../../../src/surfaces/admin/components/Select";
|
|
3481
|
-
import { 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";
|
|
3538
|
+
import { 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";
|
|
3482
3539
|
import { Spinner } from "../../../../../src/surfaces/admin/components/Spinner";
|
|
3483
3540
|
import { AlignedStackProps, ResponsiveStackProps, Stack } from "../../../../../src/surfaces/admin/components/Stack";
|
|
3484
3541
|
import { Table } from "../../../../../src/surfaces/admin/components/Table";
|