@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
|
@@ -3471,25 +3471,25 @@ declare const BannerBaseClass: typeof globalThis.HTMLElement;
|
|
|
3471
3471
|
declare module 'preact' {
|
|
3472
3472
|
namespace createElement.JSX {
|
|
3473
3473
|
interface IntrinsicElements {
|
|
3474
|
-
[
|
|
3474
|
+
[BadgetagName]: BadgeJSXProps & BadgePreactBaseElementPropsWithChildren<Badge>;
|
|
3475
3475
|
}
|
|
3476
3476
|
}
|
|
3477
3477
|
}
|
|
3478
3478
|
|
|
3479
3479
|
declare global {
|
|
3480
3480
|
interface HTMLElementTagNameMap {
|
|
3481
|
-
[
|
|
3481
|
+
[BadgetagName]: Badge;
|
|
3482
3482
|
}
|
|
3483
3483
|
}
|
|
3484
3484
|
|
|
3485
3485
|
export interface BadgeJSXProps extends Partial<BadgeProps>, Pick<BadgeProps$1, 'id'> {
|
|
3486
3486
|
}
|
|
3487
3487
|
|
|
3488
|
-
export interface
|
|
3488
|
+
export interface BadgePreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends BadgePreactBaseElementProps<TClass> {
|
|
3489
3489
|
children?: preact.ComponentChildren;
|
|
3490
3490
|
}
|
|
3491
3491
|
|
|
3492
|
-
export interface
|
|
3492
|
+
export interface BadgePreactBaseElementProps<TClass extends HTMLElement> {
|
|
3493
3493
|
/** Assigns a unique key to this element. */
|
|
3494
3494
|
key?: preact.Key;
|
|
3495
3495
|
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
@@ -3498,14 +3498,14 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
3498
3498
|
slot?: Lowercase<string>;
|
|
3499
3499
|
}
|
|
3500
3500
|
|
|
3501
|
-
export interface
|
|
3501
|
+
export interface BadgeClickOptions {
|
|
3502
3502
|
/**
|
|
3503
3503
|
* The event you want to influence the synthetic click.
|
|
3504
3504
|
*/
|
|
3505
|
-
sourceEvent?:
|
|
3505
|
+
sourceEvent?: BadgeActivationEventEsque;
|
|
3506
3506
|
}
|
|
3507
3507
|
|
|
3508
|
-
export interface
|
|
3508
|
+
export interface BadgeActivationEventEsque {
|
|
3509
3509
|
shiftKey: boolean;
|
|
3510
3510
|
metaKey: boolean;
|
|
3511
3511
|
ctrlKey: boolean;
|
|
@@ -3535,7 +3535,63 @@ export interface IconProps extends Pick<IconProps$1, 'type' | 'tone' | 'color' |
|
|
|
3535
3535
|
size: Extract<IconProps$1['size'], 'small' | 'base'>;
|
|
3536
3536
|
}
|
|
3537
3537
|
|
|
3538
|
-
declare const
|
|
3538
|
+
declare const BadgetagName = 's-badge';
|
|
3539
|
+
declare const BadgeBaseClass: typeof globalThis.HTMLElement;
|
|
3540
|
+
|
|
3541
|
+
declare module 'preact' {
|
|
3542
|
+
namespace createElement.JSX {
|
|
3543
|
+
interface IntrinsicElements {
|
|
3544
|
+
[tagName]: AvatarJSXProps & PreactBaseElementPropsWithChildren<Avatar>;
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
|
|
3549
|
+
declare global {
|
|
3550
|
+
interface HTMLElementTagNameMap {
|
|
3551
|
+
[tagName]: Avatar;
|
|
3552
|
+
}
|
|
3553
|
+
}
|
|
3554
|
+
|
|
3555
|
+
export interface AvatarJSXProps extends Partial<AvatarProps>, Pick<AvatarProps$1, 'id'> {
|
|
3556
|
+
onLoad?: () => void;
|
|
3557
|
+
onError?: () => void;
|
|
3558
|
+
}
|
|
3559
|
+
|
|
3560
|
+
export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends PreactBaseElementProps<TClass> {
|
|
3561
|
+
children?: preact.ComponentChildren;
|
|
3562
|
+
}
|
|
3563
|
+
|
|
3564
|
+
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
3565
|
+
/** Assigns a unique key to this element. */
|
|
3566
|
+
key?: preact.Key;
|
|
3567
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
3568
|
+
ref?: preact.Ref<TClass>;
|
|
3569
|
+
/** Assigns this element to a parent's slot. */
|
|
3570
|
+
slot?: Lowercase<string>;
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
export interface ClickOptions {
|
|
3574
|
+
/**
|
|
3575
|
+
* The event you want to influence the synthetic click.
|
|
3576
|
+
*/
|
|
3577
|
+
sourceEvent?: ActivationEventEsque;
|
|
3578
|
+
}
|
|
3579
|
+
|
|
3580
|
+
export interface ActivationEventEsque {
|
|
3581
|
+
shiftKey: boolean;
|
|
3582
|
+
metaKey: boolean;
|
|
3583
|
+
ctrlKey: boolean;
|
|
3584
|
+
button: number;
|
|
3585
|
+
}
|
|
3586
|
+
|
|
3587
|
+
export interface AvatarProps extends Required<Pick<AvatarProps$1, 'initials' | 'src' | 'alt'>> {
|
|
3588
|
+
size: Extract<
|
|
3589
|
+
AvatarProps$1['size'],
|
|
3590
|
+
'small-200' | 'small' | 'base' | 'large' | 'large-200'
|
|
3591
|
+
>;
|
|
3592
|
+
}
|
|
3593
|
+
|
|
3594
|
+
declare const tagName = 's-avatar';
|
|
3539
3595
|
/**
|
|
3540
3596
|
* Base class for creating custom elements with Preact.
|
|
3541
3597
|
* While this class could be used in both Node and the browser, the constructor will only be used in the browser.
|
|
@@ -3544,8 +3600,9 @@ declare const tagName = 's-badge';
|
|
|
3544
3600
|
declare const BaseClass: typeof globalThis.HTMLElement;
|
|
3545
3601
|
|
|
3546
3602
|
import { AdminBlock } from "../../../../../src/surfaces/admin/components/AdminBlock";
|
|
3547
|
-
import {
|
|
3548
|
-
import {
|
|
3603
|
+
import { Avatar, CallbackEvent, RenderImpl } from "../../../../../src/surfaces/admin/components/Avatar";
|
|
3604
|
+
import { Badge } from "../../../../../src/surfaces/admin/components/Badge";
|
|
3605
|
+
import { Banner, RequiredBannerProps } from "../../../../../src/surfaces/admin/components/Banner";
|
|
3549
3606
|
import { Box, BoxBorderRadii, BoxBorderStyles, RequiredBoxProps, ResponsiveBoxProps } from "../../../../../src/surfaces/admin/components/Box";
|
|
3550
3607
|
import { Button, ButtonBaseProps } from "../../../../../src/surfaces/admin/components/Button";
|
|
3551
3608
|
import { Checkbox, PreactInputProps } from "../../../../../src/surfaces/admin/components/Checkbox";
|
|
@@ -3571,7 +3628,7 @@ import { PasswordField, PasswordFieldProps } from "../../../../../src/surfaces/a
|
|
|
3571
3628
|
import { QueryContainer } from "../../../../../src/surfaces/admin/components/QueryContainer";
|
|
3572
3629
|
import { RequiredSectionProps, Section } from "../../../../../src/surfaces/admin/components/Section";
|
|
3573
3630
|
import { Select } from "../../../../../src/surfaces/admin/components/Select";
|
|
3574
|
-
import { AdminBlockProps$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";
|
|
3631
|
+
import { AdminBlockProps$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";
|
|
3575
3632
|
import { Spinner } from "../../../../../src/surfaces/admin/components/Spinner";
|
|
3576
3633
|
import { AlignedStackProps, ResponsiveStackProps, Stack } from "../../../../../src/surfaces/admin/components/Stack";
|
|
3577
3634
|
import { Table } from "../../../../../src/surfaces/admin/components/Table";
|
|
@@ -3419,25 +3419,25 @@ declare const BannerBaseClass: typeof globalThis.HTMLElement;
|
|
|
3419
3419
|
declare module 'preact' {
|
|
3420
3420
|
namespace createElement.JSX {
|
|
3421
3421
|
interface IntrinsicElements {
|
|
3422
|
-
[
|
|
3422
|
+
[BadgetagName]: BadgeJSXProps & BadgePreactBaseElementPropsWithChildren<Badge>;
|
|
3423
3423
|
}
|
|
3424
3424
|
}
|
|
3425
3425
|
}
|
|
3426
3426
|
|
|
3427
3427
|
declare global {
|
|
3428
3428
|
interface HTMLElementTagNameMap {
|
|
3429
|
-
[
|
|
3429
|
+
[BadgetagName]: Badge;
|
|
3430
3430
|
}
|
|
3431
3431
|
}
|
|
3432
3432
|
|
|
3433
3433
|
export interface BadgeJSXProps extends Partial<BadgeProps>, Pick<BadgeProps$1, 'id'> {
|
|
3434
3434
|
}
|
|
3435
3435
|
|
|
3436
|
-
export interface
|
|
3436
|
+
export interface BadgePreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends BadgePreactBaseElementProps<TClass> {
|
|
3437
3437
|
children?: preact.ComponentChildren;
|
|
3438
3438
|
}
|
|
3439
3439
|
|
|
3440
|
-
export interface
|
|
3440
|
+
export interface BadgePreactBaseElementProps<TClass extends HTMLElement> {
|
|
3441
3441
|
/** Assigns a unique key to this element. */
|
|
3442
3442
|
key?: preact.Key;
|
|
3443
3443
|
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
@@ -3446,14 +3446,14 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
3446
3446
|
slot?: Lowercase<string>;
|
|
3447
3447
|
}
|
|
3448
3448
|
|
|
3449
|
-
export interface
|
|
3449
|
+
export interface BadgeClickOptions {
|
|
3450
3450
|
/**
|
|
3451
3451
|
* The event you want to influence the synthetic click.
|
|
3452
3452
|
*/
|
|
3453
|
-
sourceEvent?:
|
|
3453
|
+
sourceEvent?: BadgeActivationEventEsque;
|
|
3454
3454
|
}
|
|
3455
3455
|
|
|
3456
|
-
export interface
|
|
3456
|
+
export interface BadgeActivationEventEsque {
|
|
3457
3457
|
shiftKey: boolean;
|
|
3458
3458
|
metaKey: boolean;
|
|
3459
3459
|
ctrlKey: boolean;
|
|
@@ -3483,7 +3483,63 @@ export interface IconProps extends Pick<IconProps$1, 'type' | 'tone' | 'color' |
|
|
|
3483
3483
|
size: Extract<IconProps$1['size'], 'small' | 'base'>;
|
|
3484
3484
|
}
|
|
3485
3485
|
|
|
3486
|
-
declare const
|
|
3486
|
+
declare const BadgetagName = 's-badge';
|
|
3487
|
+
declare const BadgeBaseClass: typeof globalThis.HTMLElement;
|
|
3488
|
+
|
|
3489
|
+
declare module 'preact' {
|
|
3490
|
+
namespace createElement.JSX {
|
|
3491
|
+
interface IntrinsicElements {
|
|
3492
|
+
[tagName]: AvatarJSXProps & PreactBaseElementPropsWithChildren<Avatar>;
|
|
3493
|
+
}
|
|
3494
|
+
}
|
|
3495
|
+
}
|
|
3496
|
+
|
|
3497
|
+
declare global {
|
|
3498
|
+
interface HTMLElementTagNameMap {
|
|
3499
|
+
[tagName]: Avatar;
|
|
3500
|
+
}
|
|
3501
|
+
}
|
|
3502
|
+
|
|
3503
|
+
export interface AvatarJSXProps extends Partial<AvatarProps>, Pick<AvatarProps$1, 'id'> {
|
|
3504
|
+
onLoad?: () => void;
|
|
3505
|
+
onError?: () => void;
|
|
3506
|
+
}
|
|
3507
|
+
|
|
3508
|
+
export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends PreactBaseElementProps<TClass> {
|
|
3509
|
+
children?: preact.ComponentChildren;
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
3513
|
+
/** Assigns a unique key to this element. */
|
|
3514
|
+
key?: preact.Key;
|
|
3515
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
3516
|
+
ref?: preact.Ref<TClass>;
|
|
3517
|
+
/** Assigns this element to a parent's slot. */
|
|
3518
|
+
slot?: Lowercase<string>;
|
|
3519
|
+
}
|
|
3520
|
+
|
|
3521
|
+
export interface ClickOptions {
|
|
3522
|
+
/**
|
|
3523
|
+
* The event you want to influence the synthetic click.
|
|
3524
|
+
*/
|
|
3525
|
+
sourceEvent?: ActivationEventEsque;
|
|
3526
|
+
}
|
|
3527
|
+
|
|
3528
|
+
export interface ActivationEventEsque {
|
|
3529
|
+
shiftKey: boolean;
|
|
3530
|
+
metaKey: boolean;
|
|
3531
|
+
ctrlKey: boolean;
|
|
3532
|
+
button: number;
|
|
3533
|
+
}
|
|
3534
|
+
|
|
3535
|
+
export interface AvatarProps extends Required<Pick<AvatarProps$1, 'initials' | 'src' | 'alt'>> {
|
|
3536
|
+
size: Extract<
|
|
3537
|
+
AvatarProps$1['size'],
|
|
3538
|
+
'small-200' | 'small' | 'base' | 'large' | 'large-200'
|
|
3539
|
+
>;
|
|
3540
|
+
}
|
|
3541
|
+
|
|
3542
|
+
declare const tagName = 's-avatar';
|
|
3487
3543
|
/**
|
|
3488
3544
|
* Base class for creating custom elements with Preact.
|
|
3489
3545
|
* While this class could be used in both Node and the browser, the constructor will only be used in the browser.
|
|
@@ -3492,8 +3548,9 @@ declare const tagName = 's-badge';
|
|
|
3492
3548
|
declare const BaseClass: typeof globalThis.HTMLElement;
|
|
3493
3549
|
|
|
3494
3550
|
import { AdminPrintAction } from "../../../../../src/surfaces/admin/components/AdminPrintAction";
|
|
3495
|
-
import {
|
|
3496
|
-
import {
|
|
3551
|
+
import { Avatar, CallbackEvent, RenderImpl } from "../../../../../src/surfaces/admin/components/Avatar";
|
|
3552
|
+
import { Badge } from "../../../../../src/surfaces/admin/components/Badge";
|
|
3553
|
+
import { Banner, RequiredBannerProps } from "../../../../../src/surfaces/admin/components/Banner";
|
|
3497
3554
|
import { Box, BoxBorderRadii, BoxBorderStyles, RequiredBoxProps, ResponsiveBoxProps } from "../../../../../src/surfaces/admin/components/Box";
|
|
3498
3555
|
import { Button, ButtonBaseProps } from "../../../../../src/surfaces/admin/components/Button";
|
|
3499
3556
|
import { Checkbox, PreactInputProps } from "../../../../../src/surfaces/admin/components/Checkbox";
|
|
@@ -3518,7 +3575,7 @@ import { PasswordField, PasswordFieldProps } from "../../../../../src/surfaces/a
|
|
|
3518
3575
|
import { QueryContainer } from "../../../../../src/surfaces/admin/components/QueryContainer";
|
|
3519
3576
|
import { RequiredSectionProps, Section } from "../../../../../src/surfaces/admin/components/Section";
|
|
3520
3577
|
import { Select } from "../../../../../src/surfaces/admin/components/Select";
|
|
3521
|
-
import { AdminPrintActionProps$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";
|
|
3578
|
+
import { AdminPrintActionProps$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";
|
|
3522
3579
|
import { Spinner } from "../../../../../src/surfaces/admin/components/Spinner";
|
|
3523
3580
|
import { AlignedStackProps, ResponsiveStackProps, Stack } from "../../../../../src/surfaces/admin/components/Stack";
|
|
3524
3581
|
import { Table } from "../../../../../src/surfaces/admin/components/Table";
|
|
@@ -3430,25 +3430,25 @@ declare const BannerBaseClass: typeof globalThis.HTMLElement;
|
|
|
3430
3430
|
declare module 'preact' {
|
|
3431
3431
|
namespace createElement.JSX {
|
|
3432
3432
|
interface IntrinsicElements {
|
|
3433
|
-
[
|
|
3433
|
+
[BadgetagName]: BadgeJSXProps & BadgePreactBaseElementPropsWithChildren<Badge>;
|
|
3434
3434
|
}
|
|
3435
3435
|
}
|
|
3436
3436
|
}
|
|
3437
3437
|
|
|
3438
3438
|
declare global {
|
|
3439
3439
|
interface HTMLElementTagNameMap {
|
|
3440
|
-
[
|
|
3440
|
+
[BadgetagName]: Badge;
|
|
3441
3441
|
}
|
|
3442
3442
|
}
|
|
3443
3443
|
|
|
3444
3444
|
export interface BadgeJSXProps extends Partial<BadgeProps>, Pick<BadgeProps$1, 'id'> {
|
|
3445
3445
|
}
|
|
3446
3446
|
|
|
3447
|
-
export interface
|
|
3447
|
+
export interface BadgePreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends BadgePreactBaseElementProps<TClass> {
|
|
3448
3448
|
children?: preact.ComponentChildren;
|
|
3449
3449
|
}
|
|
3450
3450
|
|
|
3451
|
-
export interface
|
|
3451
|
+
export interface BadgePreactBaseElementProps<TClass extends HTMLElement> {
|
|
3452
3452
|
/** Assigns a unique key to this element. */
|
|
3453
3453
|
key?: preact.Key;
|
|
3454
3454
|
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
@@ -3457,14 +3457,14 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
3457
3457
|
slot?: Lowercase<string>;
|
|
3458
3458
|
}
|
|
3459
3459
|
|
|
3460
|
-
export interface
|
|
3460
|
+
export interface BadgeClickOptions {
|
|
3461
3461
|
/**
|
|
3462
3462
|
* The event you want to influence the synthetic click.
|
|
3463
3463
|
*/
|
|
3464
|
-
sourceEvent?:
|
|
3464
|
+
sourceEvent?: BadgeActivationEventEsque;
|
|
3465
3465
|
}
|
|
3466
3466
|
|
|
3467
|
-
export interface
|
|
3467
|
+
export interface BadgeActivationEventEsque {
|
|
3468
3468
|
shiftKey: boolean;
|
|
3469
3469
|
metaKey: boolean;
|
|
3470
3470
|
ctrlKey: boolean;
|
|
@@ -3494,7 +3494,63 @@ export interface IconProps extends Pick<IconProps$1, 'type' | 'tone' | 'color' |
|
|
|
3494
3494
|
size: Extract<IconProps$1['size'], 'small' | 'base'>;
|
|
3495
3495
|
}
|
|
3496
3496
|
|
|
3497
|
-
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';
|
|
3498
3554
|
/**
|
|
3499
3555
|
* Base class for creating custom elements with Preact.
|
|
3500
3556
|
* While this class could be used in both Node and the browser, the constructor will only be used in the browser.
|
|
@@ -3503,8 +3559,9 @@ declare const tagName = 's-badge';
|
|
|
3503
3559
|
declare const BaseClass: typeof globalThis.HTMLElement;
|
|
3504
3560
|
|
|
3505
3561
|
import { AdminAction } from "../../../../../src/surfaces/admin/components/AdminAction";
|
|
3506
|
-
import {
|
|
3507
|
-
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";
|
|
3508
3565
|
import { Box, BoxBorderRadii, BoxBorderStyles, RequiredBoxProps, ResponsiveBoxProps } from "../../../../../src/surfaces/admin/components/Box";
|
|
3509
3566
|
import { Button, ButtonBaseProps } from "../../../../../src/surfaces/admin/components/Button";
|
|
3510
3567
|
import { Checkbox, PreactInputProps } from "../../../../../src/surfaces/admin/components/Checkbox";
|
|
@@ -3529,7 +3586,7 @@ import { PasswordField, PasswordFieldProps } from "../../../../../src/surfaces/a
|
|
|
3529
3586
|
import { QueryContainer } from "../../../../../src/surfaces/admin/components/QueryContainer";
|
|
3530
3587
|
import { RequiredSectionProps, Section } from "../../../../../src/surfaces/admin/components/Section";
|
|
3531
3588
|
import { Select } from "../../../../../src/surfaces/admin/components/Select";
|
|
3532
|
-
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, ThumbnailProps$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";
|
|
3533
3590
|
import { Spinner } from "../../../../../src/surfaces/admin/components/Spinner";
|
|
3534
3591
|
import { AlignedStackProps, ResponsiveStackProps, Stack } from "../../../../../src/surfaces/admin/components/Stack";
|
|
3535
3592
|
import { Table } from "../../../../../src/surfaces/admin/components/Table";
|
|
@@ -3430,25 +3430,25 @@ declare const BannerBaseClass: typeof globalThis.HTMLElement;
|
|
|
3430
3430
|
declare module 'preact' {
|
|
3431
3431
|
namespace createElement.JSX {
|
|
3432
3432
|
interface IntrinsicElements {
|
|
3433
|
-
[
|
|
3433
|
+
[BadgetagName]: BadgeJSXProps & BadgePreactBaseElementPropsWithChildren<Badge>;
|
|
3434
3434
|
}
|
|
3435
3435
|
}
|
|
3436
3436
|
}
|
|
3437
3437
|
|
|
3438
3438
|
declare global {
|
|
3439
3439
|
interface HTMLElementTagNameMap {
|
|
3440
|
-
[
|
|
3440
|
+
[BadgetagName]: Badge;
|
|
3441
3441
|
}
|
|
3442
3442
|
}
|
|
3443
3443
|
|
|
3444
3444
|
export interface BadgeJSXProps extends Partial<BadgeProps>, Pick<BadgeProps$1, 'id'> {
|
|
3445
3445
|
}
|
|
3446
3446
|
|
|
3447
|
-
export interface
|
|
3447
|
+
export interface BadgePreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends BadgePreactBaseElementProps<TClass> {
|
|
3448
3448
|
children?: preact.ComponentChildren;
|
|
3449
3449
|
}
|
|
3450
3450
|
|
|
3451
|
-
export interface
|
|
3451
|
+
export interface BadgePreactBaseElementProps<TClass extends HTMLElement> {
|
|
3452
3452
|
/** Assigns a unique key to this element. */
|
|
3453
3453
|
key?: preact.Key;
|
|
3454
3454
|
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
@@ -3457,14 +3457,14 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
3457
3457
|
slot?: Lowercase<string>;
|
|
3458
3458
|
}
|
|
3459
3459
|
|
|
3460
|
-
export interface
|
|
3460
|
+
export interface BadgeClickOptions {
|
|
3461
3461
|
/**
|
|
3462
3462
|
* The event you want to influence the synthetic click.
|
|
3463
3463
|
*/
|
|
3464
|
-
sourceEvent?:
|
|
3464
|
+
sourceEvent?: BadgeActivationEventEsque;
|
|
3465
3465
|
}
|
|
3466
3466
|
|
|
3467
|
-
export interface
|
|
3467
|
+
export interface BadgeActivationEventEsque {
|
|
3468
3468
|
shiftKey: boolean;
|
|
3469
3469
|
metaKey: boolean;
|
|
3470
3470
|
ctrlKey: boolean;
|
|
@@ -3494,7 +3494,63 @@ export interface IconProps extends Pick<IconProps$1, 'type' | 'tone' | 'color' |
|
|
|
3494
3494
|
size: Extract<IconProps$1['size'], 'small' | 'base'>;
|
|
3495
3495
|
}
|
|
3496
3496
|
|
|
3497
|
-
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';
|
|
3498
3554
|
/**
|
|
3499
3555
|
* Base class for creating custom elements with Preact.
|
|
3500
3556
|
* While this class could be used in both Node and the browser, the constructor will only be used in the browser.
|
|
@@ -3503,8 +3559,9 @@ declare const tagName = 's-badge';
|
|
|
3503
3559
|
declare const BaseClass: typeof globalThis.HTMLElement;
|
|
3504
3560
|
|
|
3505
3561
|
import { AdminAction } from "../../../../../src/surfaces/admin/components/AdminAction";
|
|
3506
|
-
import {
|
|
3507
|
-
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";
|
|
3508
3565
|
import { Box, BoxBorderRadii, BoxBorderStyles, RequiredBoxProps, ResponsiveBoxProps } from "../../../../../src/surfaces/admin/components/Box";
|
|
3509
3566
|
import { Button, ButtonBaseProps } from "../../../../../src/surfaces/admin/components/Button";
|
|
3510
3567
|
import { Checkbox, PreactInputProps } from "../../../../../src/surfaces/admin/components/Checkbox";
|
|
@@ -3529,7 +3586,7 @@ import { PasswordField, PasswordFieldProps } from "../../../../../src/surfaces/a
|
|
|
3529
3586
|
import { QueryContainer } from "../../../../../src/surfaces/admin/components/QueryContainer";
|
|
3530
3587
|
import { RequiredSectionProps, Section } from "../../../../../src/surfaces/admin/components/Section";
|
|
3531
3588
|
import { Select } from "../../../../../src/surfaces/admin/components/Select";
|
|
3532
|
-
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, ThumbnailProps$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";
|
|
3533
3590
|
import { Spinner } from "../../../../../src/surfaces/admin/components/Spinner";
|
|
3534
3591
|
import { AlignedStackProps, ResponsiveStackProps, Stack } from "../../../../../src/surfaces/admin/components/Stack";
|
|
3535
3592
|
import { Table } from "../../../../../src/surfaces/admin/components/Table";
|