Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@smui/common

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smui/common - npm Package Compare versions

Comparing version 7.0.0 to 8.0.0-alpha.0

dist/events/index.d.ts

19

CHANGELOG.md

@@ -6,2 +6,21 @@ # Change Log

# [8.0.0-alpha.0](https://github.com/hperrin/svelte-material-ui/compare/v7.0.0...v8.0.0-alpha.0) (2024-05-13)
### Bug Fixes
* custom component types ([fa5b473](https://github.com/hperrin/svelte-material-ui/commit/fa5b473d87e816a994433b153a7257236f672c34))
* explicitly opt out of runes mode in all components ([96b69f9](https://github.com/hperrin/svelte-material-ui/commit/96b69f9335b8b8cd2d1cbad18df103c1f5a86681))
### Features
* events for svelte 5, mount events to contexts, event modifiers, remove custom event typing ([52d60b8](https://github.com/hperrin/svelte-material-ui/commit/52d60b8ce9f4796121516bab62a6867f39ae856d))
* remove deprecated MDC event names ([df78b17](https://github.com/hperrin/svelte-material-ui/commit/df78b17a57791c93073b2e83bda4cd912d0974c8))
* remove forwardEventsBuilder, since it's no longer used ([63a2e95](https://github.com/hperrin/svelte-material-ui/commit/63a2e95c5effc11320f8561a9811506906b50f49))
# [7.0.0](https://github.com/hperrin/svelte-material-ui/compare/v7.0.0-beta.18...v7.0.0) (2024-05-04)

@@ -8,0 +27,0 @@

4

dist/classadder/ClassAdder.types.d.ts

@@ -1,4 +0,4 @@

import type { ComponentType, SvelteComponent } from 'svelte';
import type { SvelteComponent } from 'svelte';
import type { SmuiEveryElement } from '../smui.types.js';
export type ClassAdderInternals<T extends SmuiEveryElement = 'div', C extends typeof SvelteComponent = ComponentType<SvelteComponent>> = {
export type ClassAdderInternals<T extends SmuiEveryElement = 'div', C extends typeof SvelteComponent = typeof SvelteComponent> = {
component: C;

@@ -5,0 +5,0 @@ tag: T;

@@ -1,4 +0,4 @@

import type { ComponentType, SvelteComponent } from 'svelte';
import type { SvelteComponent } from 'svelte';
import type { SmuiEveryElement } from '../smui.types.js';
import type { ClassAdderInternals } from './ClassAdder.types.js';
export declare function classAdderBuilder<T extends SmuiEveryElement = 'div', C extends typeof SvelteComponent = ComponentType<SvelteComponent>>(props: Partial<ClassAdderInternals<T, C>>): C;
export declare function classAdderBuilder<T extends SmuiEveryElement = 'div', C extends typeof SvelteComponent = typeof SvelteComponent>(props: Partial<ClassAdderInternals<T, C>>): C;

@@ -1,3 +0,1 @@

export declare function dispatch<T extends any = any>(element: Element, eventType: string, detail?: T, eventInit?: EventInit,
/** This is an internal thing used by SMUI to duplicate some SMUI events as MDC events. */
duplicateEventForMDC?: boolean): CustomEvent<T>;
export declare function dispatch<T extends any = any>(element: Element, eventType: string, detail?: T, eventInit?: EventInit): CustomEvent<T>;

@@ -1,4 +0,2 @@

export function dispatch(element, eventType, detail, eventInit = { bubbles: true },
/** This is an internal thing used by SMUI to duplicate some SMUI events as MDC events. */
duplicateEventForMDC = false) {
export function dispatch(element, eventType, detail, eventInit = { bubbles: true }) {
if (typeof Event === 'undefined') {

@@ -12,11 +10,4 @@ throw new Error('Event not defined.');

element === null || element === void 0 ? void 0 : element.dispatchEvent(event);
if (duplicateEventForMDC && eventType.startsWith('SMUI')) {
const duplicateEvent = new CustomEvent(eventType.replace(/^SMUI/g, () => 'MDC'), Object.assign(Object.assign({}, eventInit), { detail }));
element === null || element === void 0 ? void 0 : element.dispatchEvent(duplicateEvent);
if (duplicateEvent.defaultPrevented) {
event.preventDefault();
}
}
return event;
}
//# sourceMappingURL=dispatch.js.map

@@ -5,4 +5,3 @@ export * from './announce.js';

export * from './exclude.js';
export * from './forwardEventsBuilder.js';
export * from './prefixFilter.js';
export * from './useActions.js';

@@ -5,5 +5,4 @@ export * from './announce.js';

export * from './exclude.js';
export * from './forwardEventsBuilder.js';
export * from './prefixFilter.js';
export * from './useActions.js';
//# sourceMappingURL=index.js.map

@@ -1,8 +0,234 @@

import type { HTMLAttributes, HTMLAnchorAttributes, HTMLAudioAttributes, HTMLAreaAttributes, HTMLBaseAttributes, HTMLBlockquoteAttributes, HTMLButtonAttributes, HTMLCanvasAttributes, HTMLColAttributes, HTMLColgroupAttributes, HTMLDataAttributes, HTMLDetailsAttributes, HTMLDelAttributes, HTMLDialogAttributes, HTMLFieldsetAttributes, HTMLFormAttributes, HTMLImgAttributes, HTMLInsAttributes, HTMLInputAttributes, HTMLLabelAttributes, HTMLLiAttributes, HTMLMapAttributes, HTMLMeterAttributes, HTMLQuoteAttributes, HTMLOlAttributes, HTMLOptgroupAttributes, HTMLOptionAttributes, HTMLOutputAttributes, HTMLProgressAttributes, HTMLSelectAttributes, HTMLSourceAttributes, HTMLStyleAttributes, HTMLTableAttributes, HTMLTextareaAttributes, HTMLTdAttributes, HTMLThAttributes, HTMLTimeAttributes, HTMLTrackAttributes, HTMLVideoAttributes, SVGAttributes } from 'svelte/elements';
import type { HTMLAttributes, HTMLAnchorAttributes, HTMLAudioAttributes, HTMLAreaAttributes, HTMLBaseAttributes, HTMLBlockquoteAttributes, HTMLButtonAttributes, HTMLCanvasAttributes, HTMLColAttributes, HTMLColgroupAttributes, HTMLDataAttributes, HTMLDetailsAttributes, HTMLDelAttributes, HTMLDialogAttributes, HTMLFieldsetAttributes, HTMLFormAttributes, HTMLImgAttributes, HTMLInsAttributes, HTMLInputAttributes, HTMLLabelAttributes, HTMLLiAttributes, HTMLMapAttributes, HTMLMeterAttributes, HTMLQuoteAttributes, HTMLOlAttributes, HTMLOptgroupAttributes, HTMLOptionAttributes, HTMLOutputAttributes, HTMLProgressAttributes, HTMLSelectAttributes, HTMLSourceAttributes, HTMLStyleAttributes, HTMLTableAttributes, HTMLTextareaAttributes, HTMLTdAttributes, HTMLThAttributes, HTMLTimeAttributes, HTMLTrackAttributes, HTMLVideoAttributes, SVGAttributes, EventHandler } from 'svelte/elements';
export type SmuiEveryElement = keyof SmuiElementMap;
export type SmuiHTMLElement = keyof Omit<SmuiElementMap, 'svg'>;
export type SmuiAttrs<T extends SmuiEveryElement, E extends string> = SmuiElementPropMap<E>[T] & DataAttrs;
export type SmuiAttrs<T extends SmuiEveryElement, E extends string> = SmuiElementPropMap<E>[T] & SmuiEventProps<SmuiElementMap[T]> & DataAttrs;
export type DataAttrs = {
[k: `data-${string}`]: any;
};
export interface SmuiEventProps<T extends EventTarget> {
onselected?: EventHandler<CustomEvent, T> | null;
onselectedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAction?: EventHandler<CustomEvent, T> | null;
onSMUIActioncapture?: EventHandler<CustomEvent, T> | null;
onSMUIGenericInputMount?: EventHandler<CustomEvent, T> | null;
onSMUIGenericInputMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIGenericInputUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIGenericInputUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionHeaderActivate?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionHeaderActivatecapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelClosed?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelClosing?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelClosingcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelMount?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelActivate?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelActivatecapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelOpened?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelOpening?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelOpeningcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteDeselected?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteDeselectedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteNoMatchesAction?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteNoMatchesActioncapture?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteSelected?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteSelectedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerActionClicked?: EventHandler<CustomEvent, T> | null;
onSMUIBannerActionClickedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerButtonPrimaryActionClick?: EventHandler<CustomEvent, T> | null;
onSMUIBannerButtonPrimaryActionClickcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerButtonSecondaryActionClick?: EventHandler<CustomEvent, T> | null;
onSMUIBannerButtonSecondaryActionClickcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerClosed?: EventHandler<CustomEvent, T> | null;
onSMUIBannerClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerClosing?: EventHandler<CustomEvent, T> | null;
onSMUIBannerClosingcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerOpened?: EventHandler<CustomEvent, T> | null;
onSMUIBannerOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerOpening?: EventHandler<CustomEvent, T> | null;
onSMUIBannerOpeningcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipInteraction?: EventHandler<CustomEvent, T> | null;
onSMUIChipInteractioncapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipMount?: EventHandler<CustomEvent, T> | null;
onSMUIChipMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipNavigation?: EventHandler<CustomEvent, T> | null;
onSMUIChipNavigationcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipPrimaryActionMount?: EventHandler<CustomEvent, T> | null;
onSMUIChipPrimaryActionMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipPrimaryActionUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIChipPrimaryActionUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipRemoval?: EventHandler<CustomEvent, T> | null;
onSMUIChipRemovalcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipSelection?: EventHandler<CustomEvent, T> | null;
onSMUIChipSelectioncapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingIconInteraction?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingIconInteractioncapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionInteraction?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionInteractioncapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionMount?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionNavigation?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionNavigationcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIChipUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUICheckboxMount?: EventHandler<CustomEvent, T> | null;
onSMUICheckboxMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUICheckboxUnmount?: EventHandler<CustomEvent, T> | null;
onSMUICheckboxUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyCheckboxChange?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyCheckboxChangecapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyMount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableCellMount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableCellMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableCellUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableCellUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableClickRow?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableClickRowcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderCheckboxChange?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderCheckboxChangecapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderMount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderClick?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderClickcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowClick?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowClickcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowMount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSelectedAll?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSelectedAllcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSelectionChanged?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSelectionChangedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSorted?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSortedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableUnselectedAll?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableUnselectedAllcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDialogClosed?: EventHandler<CustomEvent, T> | null;
onSMUIDialogClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDialogClosing?: EventHandler<CustomEvent, T> | null;
onSMUIDialogClosingcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDialogOpened?: EventHandler<CustomEvent, T> | null;
onSMUIDialogOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDialogOpening?: EventHandler<CustomEvent, T> | null;
onSMUIDialogOpeningcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerClosed?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerOpened?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerScrimClick?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerScrimClickcapture?: EventHandler<CustomEvent, T> | null;
onSMUIFloatingLabelMount?: EventHandler<CustomEvent, T> | null;
onSMUIFloatingLabelMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIFloatingLabelUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIFloatingLabelUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIListAction?: EventHandler<CustomEvent, T> | null;
onSMUIListActioncapture?: EventHandler<CustomEvent, T> | null;
onSMUIListItemMount?: EventHandler<CustomEvent, T> | null;
onSMUIListItemMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIListItemUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIListItemUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIListMount?: EventHandler<CustomEvent, T> | null;
onSMUIListMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIListSelectionChange?: EventHandler<CustomEvent, T> | null;
onSMUIListSelectionChangecapture?: EventHandler<CustomEvent, T> | null;
onSMUIListUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIListUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuClosedProgrammatically?: EventHandler<CustomEvent, T> | null;
onSMUIMenuClosedProgrammaticallycapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuMount?: EventHandler<CustomEvent, T> | null;
onSMUIMenuMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSelected?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSelectedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIMenuUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceClosed?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceClosing?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceClosingcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceMount?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceOpened?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceOpening?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceOpeningcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISegmentedButtonSegmentMount?: EventHandler<CustomEvent, T> | null;
onSMUISegmentedButtonSegmentMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISegmentedButtonSegmentUnmount?: EventHandler<CustomEvent, T> | null;
onSMUISegmentedButtonSegmentUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectChange?: EventHandler<CustomEvent, T> | null;
onSMUISelectChangecapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextId?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextIdcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextMount?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextUnmount?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectIcon?: EventHandler<CustomEvent, T> | null;
onSMUISelectIconcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectLeadingIconMount?: EventHandler<CustomEvent, T> | null;
onSMUISelectLeadingIconMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectLeadingIconUnmount?: EventHandler<CustomEvent, T> | null;
onSMUISelectLeadingIconUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISliderChange?: EventHandler<CustomEvent, T> | null;
onSMUISliderChangecapture?: EventHandler<CustomEvent, T> | null;
onSMUISliderInput?: EventHandler<CustomEvent, T> | null;
onSMUISliderInputcapture?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarClosed?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarClosing?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarClosingcapture?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarOpened?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarOpening?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarOpeningcapture?: EventHandler<CustomEvent, T> | null;
onSMUISwitchChange?: EventHandler<CustomEvent, T> | null;
onSMUISwitchChangecapture?: EventHandler<CustomEvent, T> | null;
onSMUITabInteracted?: EventHandler<CustomEvent, T> | null;
onSMUITabInteractedcapture?: EventHandler<CustomEvent, T> | null;
onSMUITabMount?: EventHandler<CustomEvent, T> | null;
onSMUITabMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITabUnmount?: EventHandler<CustomEvent, T> | null;
onSMUITabUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITabBarActivated?: EventHandler<CustomEvent, T> | null;
onSMUITabBarActivatedcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldCharacterCounterMount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldCharacterCounterMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldCharacterCounterUnmount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldCharacterCounterUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextId?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextIdcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextMount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextUnmount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldIcon?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldIconcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldLeadingIconMount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldLeadingIconMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldLeadingIconUnmount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldLeadingIconUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldTrailingIconMount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldTrailingIconMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldTrailingIconUnmount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldTrailingIconUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITooltipHidden?: EventHandler<CustomEvent, T> | null;
onSMUITooltipHiddencapture?: EventHandler<CustomEvent, T> | null;
onSMUITopAppBarIconButtonNav?: EventHandler<CustomEvent, T> | null;
onSMUITopAppBarIconButtonNavcapture?: EventHandler<CustomEvent, T> | null;
onSMUITopAppBarNav?: EventHandler<CustomEvent, T> | null;
onSMUITopAppBarNavcapture?: EventHandler<CustomEvent, T> | null;
}
export type RemoveLayoutListener = () => void;

@@ -9,0 +235,0 @@ export type AddLayoutListener = (callback: () => void) => RemoveLayoutListener;

{
"name": "@smui/common",
"version": "7.0.0",
"version": "8.0.0-alpha.0",
"description": "Svelte Material UI - Common",

@@ -20,2 +20,6 @@ "type": "module",

},
"./events": {
"types": "./src/events/index.d.ts",
"svelte": "./dist/events/index.js"
},
"./internal": {

@@ -34,2 +38,5 @@ "types": "./src/internal/index.d.ts",

],
"events": [
"./src/events/index.d.ts"
],
"internal": [

@@ -55,3 +62,3 @@ "./src/internal/index.d.ts"

"build:js": "tsc -p . --outDir dist/ --rootDir src/",
"build:svelte": "svelte-strip strip src/ dist",
"build:svelte": "cp src/*.svelte dist/ && cp src/classadder/*.svelte dist/classadder/",
"clean": "git status --ignored -u --porcelain . | grep -v node_modules/ | grep -e '^!! ' | sed 's/^!! packages\\/[a-z-]*\\///g' | tr '\\n' ' ' | xargs rm",

@@ -82,7 +89,6 @@ "check": "npx svelte-check --ignore dist",

"svelte-check": "^3.7.1",
"svelte-strip": "^3.1.1",
"tslib": "^2.6.2",
"typescript": "^5.4.5"
},
"gitHead": "95ab1f463dfa189b1cb5b3af2fe32098721667dc"
"gitHead": "de3f79ad5bfd9b15f4d1552f1728d76e72dec842"
}

@@ -59,2 +59,96 @@ # Svelte Material UI - Common Components

# Event Modifiers
Event modifiers are exported from the `@smui/common/events` endpoint. You can use them with the event system introduced in Svelte 5.
## once
Fire an event listener only once.
```svelte
<Button onclick={once((event) => console.log(event))}>
<Label>Click Me</Label>
</Button>
<script lang="ts">
import { once } from '@smui/common/events';
import Button, { Label } from '@smui/button';
</script>
```
## preventDefault
Call `preventDefault()` on the event.
```svelte
<Button onclick={preventDefault((event) => console.log(event))}>
<Label>Click Me</Label>
</Button>
<script lang="ts">
import { preventDefault } from '@smui/common/events';
import Button, { Label } from '@smui/button';
</script>
```
## selfEvent
Only run the event listener when `event.target === event.currentTarget`.
```svelte
<Button onclick={selfEvent((event) => console.log(event))}>
<Label>Click Me</Label>
</Button>
<script lang="ts">
import { selfEvent } from '@smui/common/events';
import Button, { Label } from '@smui/button';
</script>
```
## stopImmediatePropagation
Call `stopImmediatePropagation()` on the event.
```svelte
<Button onclick={stopImmediatePropagation((event) => console.log(event))}>
<Label>Click Me</Label>
</Button>
<script lang="ts">
import { stopImmediatePropagation } from '@smui/common/events';
import Button, { Label } from '@smui/button';
</script>
```
## stopPropagation
Call `stopPropagation()` on the event.
```svelte
<Button onclick={stopPropagation((event) => console.log(event))}>
<Label>Click Me</Label>
</Button>
<script lang="ts">
import { stopPropagation } from '@smui/common/events';
import Button, { Label } from '@smui/button';
</script>
```
## trustedEvent
Only run the event listener when `event.isTrusted` is true.
```svelte
<Button onclick={trustedEvent((event) => console.log(event))}>
<Label>Click Me</Label>
</Button>
<script lang="ts">
import { trustedEvent } from '@smui/common/events';
import Button, { Label } from '@smui/button';
</script>
```
# Helper Utilities

@@ -64,3 +158,3 @@

`classAdderBuilder` and `forwardEventsBuilder` use internal Svelte features. Since they depend on `svelte/internal`, you should consider use of them the same way you consider use of `svelte/internal` directly.
`classAdderBuilder` uses internal Svelte features. Since it depends on `svelte/internal`, you should consider use of it the same way you consider use of `svelte/internal` directly.

@@ -83,2 +177,3 @@ ## classMap

<script lang="ts">
import { classMap } from '@smui/common/internal';
import SomeComponent from './SomeComponent.svelte';

@@ -111,4 +206,4 @@

bind:this={eventTarget}
on:mouseover={emitEvent}
on:click={emitCancelableEvent}
onmouseover={emitEvent}
onclick={emitCancelableEvent}
tabindex={0}

@@ -154,3 +249,2 @@ />

<button
on:click
class="button {button$class}"

@@ -176,3 +270,3 @@ {...prefixFilter($$restProps, 'button$')}

button$disabled={disabled}
on:click={() => (disabled = true)}
button$onclick={() => (disabled = true)}
>

@@ -189,41 +283,2 @@ Click Me Only Once

## forwardEventsBuilder
Build an action to allow **all** events to be forwarded from a Svelte component, with support for event modifiers using the "$" syntax.
This is especially useful for UI library components, as it is generally unknown which events will be required from them for all desired use cases. For example, if a Button component only forwards a `click` event, then no use case that requires the `mouseover` or the `keypress` event can be used with it.
In addition, a component that uses Svelte's built in event forwarding system cannot allow event listeners on the "capture" phase of the event lifecycle. It also cannot allow events to be cancelable with the browser's built in `preventDefault` function. In fact, the one big advantage to Svelte's event system, the fact that you don't need an element as an event target, doesn't even apply to UI library components.
```svelte
<!-- MyComponent.svelte -->
<div use:forwardEvents tabindex="0">
<slot />
</div>
<script lang="ts">
import { forwardEventsBuilder } from '@smui/common/internal';
// @ts-ignore Need to use internal Svelte function
import { get_current_component } from 'svelte/internal';
const forwardEvents = forwardEventsBuilder(get_current_component());
</script>
```
```svelte
<MyComponent
on:click={() => console.log('Click!')}
on:mouseover={() => console.log('Mouseover!')}
on:touchstart$passive={() => console.log("Touchstart, and it's passive!")}
on:keypress$preventDefault$stopPropagation={() =>
console.log('No key presses!')}
>
Listen to my events!
</MyComponent>
<script lang="ts">
import MyComponent from './MyComponent.svelte';
</script>
```
## prefixFilter

@@ -237,3 +292,2 @@

<button
on:click
class="button {button$class}"

@@ -259,3 +313,3 @@ {...prefixFilter($$restProps, 'button$')}

button$disabled={disabled}
on:click={() => (disabled = true)}
button$onclick={() => (disabled = true)}
>

@@ -314,4 +368,3 @@ Click Me Only Once

<Button
on:focus={() =>
announce("Don't push this button!", { priority: 'assertive' })}
onfocus={() => announce("Don't push this button!", { priority: 'assertive' })}
style="background-color: red; color: white; transform: scale(2);"

@@ -318,0 +371,0 @@ >

/// <reference types="svelte" />
/// <reference types="svelte2tsx/svelte-jsx" />
declare namespace svelteHTML {
type EventHandler<E, T> = import('svelte/elements').EventHandler<E, T>;
interface HTMLAttributes<T extends EventTarget = any> {
// UPDATE THE TYPES FILE WHEN YOU UPDATE THIS!
onselected?: EventHandler<CustomEvent, T> | null;
onselectedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAction?: EventHandler<CustomEvent, T> | null;
onSMUIActioncapture?: EventHandler<CustomEvent, T> | null;
onSMUIGenericInputMount?: EventHandler<CustomEvent, T> | null;
onSMUIGenericInputMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIGenericInputUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIGenericInputUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionHeaderActivate?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionHeaderActivatecapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelClosed?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelClosing?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelClosingcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelMount?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelActivate?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelActivatecapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelOpened?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelOpening?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelOpeningcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteDeselected?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteDeselectedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteNoMatchesAction?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteNoMatchesActioncapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIAutocompleteSelected?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteSelectedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerActionClicked?: EventHandler<CustomEvent, T> | null;
onSMUIBannerActionClickedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerButtonPrimaryActionClick?: EventHandler<CustomEvent, T> | null;
onSMUIBannerButtonPrimaryActionClickcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIBannerButtonSecondaryActionClick?: EventHandler<
CustomEvent,
T
> | null;
onSMUIBannerButtonSecondaryActionClickcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIBannerClosed?: EventHandler<CustomEvent, T> | null;
onSMUIBannerClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerClosing?: EventHandler<CustomEvent, T> | null;
onSMUIBannerClosingcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerOpened?: EventHandler<CustomEvent, T> | null;
onSMUIBannerOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerOpening?: EventHandler<CustomEvent, T> | null;
onSMUIBannerOpeningcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipInteraction?: EventHandler<CustomEvent, T> | null;
onSMUIChipInteractioncapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipMount?: EventHandler<CustomEvent, T> | null;
onSMUIChipMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipNavigation?: EventHandler<CustomEvent, T> | null;
onSMUIChipNavigationcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipPrimaryActionMount?: EventHandler<CustomEvent, T> | null;
onSMUIChipPrimaryActionMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipPrimaryActionUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIChipPrimaryActionUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipRemoval?: EventHandler<CustomEvent, T> | null;
onSMUIChipRemovalcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipSelection?: EventHandler<CustomEvent, T> | null;
onSMUIChipSelectioncapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingIconInteraction?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingIconInteractioncapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIChipTrailingActionInteraction?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionInteractioncapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIChipTrailingActionMount?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionNavigation?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionNavigationcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIChipTrailingActionUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionUnmountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIChipUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIChipUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUICheckboxMount?: EventHandler<CustomEvent, T> | null;
onSMUICheckboxMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUICheckboxUnmount?: EventHandler<CustomEvent, T> | null;
onSMUICheckboxUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyCheckboxChange?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyCheckboxChangecapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIDataTableBodyMount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableCellMount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableCellMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableCellUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableCellUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableClickRow?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableClickRowcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderCheckboxChange?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderCheckboxChangecapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIDataTableHeaderMount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderClick?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderClickcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowClick?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowClickcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowMount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSelectedAll?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSelectedAllcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSelectionChanged?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSelectionChangedcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIDataTableSorted?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSortedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableUnselectedAll?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableUnselectedAllcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDialogClosed?: EventHandler<CustomEvent, T> | null;
onSMUIDialogClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDialogClosing?: EventHandler<CustomEvent, T> | null;
onSMUIDialogClosingcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDialogOpened?: EventHandler<CustomEvent, T> | null;
onSMUIDialogOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDialogOpening?: EventHandler<CustomEvent, T> | null;
onSMUIDialogOpeningcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerClosed?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerOpened?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerScrimClick?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerScrimClickcapture?: EventHandler<CustomEvent, T> | null;
onSMUIFloatingLabelMount?: EventHandler<CustomEvent, T> | null;
onSMUIFloatingLabelMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIFloatingLabelUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIFloatingLabelUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIListAction?: EventHandler<CustomEvent, T> | null;
onSMUIListActioncapture?: EventHandler<CustomEvent, T> | null;
onSMUIListItemMount?: EventHandler<CustomEvent, T> | null;
onSMUIListItemMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIListItemUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIListItemUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIListMount?: EventHandler<CustomEvent, T> | null;
onSMUIListMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIListSelectionChange?: EventHandler<CustomEvent, T> | null;
onSMUIListSelectionChangecapture?: EventHandler<CustomEvent, T> | null;
onSMUIListUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIListUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuClosedProgrammatically?: EventHandler<CustomEvent, T> | null;
onSMUIMenuClosedProgrammaticallycapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIMenuMount?: EventHandler<CustomEvent, T> | null;
onSMUIMenuMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSelected?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSelectedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIMenuUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceClosed?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceClosing?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceClosingcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceMount?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceOpened?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceOpening?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceOpeningcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISegmentedButtonSegmentMount?: EventHandler<CustomEvent, T> | null;
onSMUISegmentedButtonSegmentMountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUISegmentedButtonSegmentUnmount?: EventHandler<CustomEvent, T> | null;
onSMUISegmentedButtonSegmentUnmountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUISelectChange?: EventHandler<CustomEvent, T> | null;
onSMUISelectChangecapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextId?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextIdcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextMount?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextUnmount?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectIcon?: EventHandler<CustomEvent, T> | null;
onSMUISelectIconcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectLeadingIconMount?: EventHandler<CustomEvent, T> | null;
onSMUISelectLeadingIconMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectLeadingIconUnmount?: EventHandler<CustomEvent, T> | null;
onSMUISelectLeadingIconUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISliderChange?: EventHandler<CustomEvent, T> | null;
onSMUISliderChangecapture?: EventHandler<CustomEvent, T> | null;
onSMUISliderInput?: EventHandler<CustomEvent, T> | null;
onSMUISliderInputcapture?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarClosed?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarClosing?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarClosingcapture?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarOpened?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarOpening?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarOpeningcapture?: EventHandler<CustomEvent, T> | null;
onSMUISwitchChange?: EventHandler<CustomEvent, T> | null;
onSMUISwitchChangecapture?: EventHandler<CustomEvent, T> | null;
onSMUITabInteracted?: EventHandler<CustomEvent, T> | null;
onSMUITabInteractedcapture?: EventHandler<CustomEvent, T> | null;
onSMUITabMount?: EventHandler<CustomEvent, T> | null;
onSMUITabMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITabUnmount?: EventHandler<CustomEvent, T> | null;
onSMUITabUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITabBarActivated?: EventHandler<CustomEvent, T> | null;
onSMUITabBarActivatedcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldCharacterCounterMount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldCharacterCounterMountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUITextfieldCharacterCounterUnmount?: EventHandler<
CustomEvent,
T
> | null;
onSMUITextfieldCharacterCounterUnmountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUITextfieldHelperTextId?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextIdcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextMount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextUnmount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextUnmountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUITextfieldIcon?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldIconcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldLeadingIconMount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldLeadingIconMountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUITextfieldLeadingIconUnmount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldLeadingIconUnmountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUITextfieldTrailingIconMount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldTrailingIconMountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUITextfieldTrailingIconUnmount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldTrailingIconUnmountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUITooltipHidden?: EventHandler<CustomEvent, T> | null;
onSMUITooltipHiddencapture?: EventHandler<CustomEvent, T> | null;
onSMUITopAppBarIconButtonNav?: EventHandler<CustomEvent, T> | null;
onSMUITopAppBarIconButtonNavcapture?: EventHandler<CustomEvent, T> | null;
onSMUITopAppBarNav?: EventHandler<CustomEvent, T> | null;
onSMUITopAppBarNavcapture?: EventHandler<CustomEvent, T> | null;
}
}

@@ -1,2 +0,2 @@

import type { ComponentType, SvelteComponent } from 'svelte';
import type { SvelteComponent } from 'svelte';

@@ -7,3 +7,3 @@ import type { SmuiEveryElement } from '../smui.types.js';

T extends SmuiEveryElement = 'div',
C extends typeof SvelteComponent = ComponentType<SvelteComponent>,
C extends typeof SvelteComponent = typeof SvelteComponent,
> = {

@@ -10,0 +10,0 @@ component: C;

@@ -1,2 +0,2 @@

import type { ComponentType, SvelteComponent } from 'svelte';
import type { SvelteComponent } from 'svelte';

@@ -12,3 +12,3 @@ import type { SmuiEveryElement } from '../smui.types.js';

T extends SmuiEveryElement = 'div',
C extends typeof SvelteComponent = ComponentType<SvelteComponent>,
C extends typeof SvelteComponent = typeof SvelteComponent,
>(props: Partial<ClassAdderInternals<T, C>>): C {

@@ -15,0 +15,0 @@ return new Proxy(ClassAdder, {

@@ -6,4 +6,2 @@ export function dispatch<T extends any = any>(

eventInit: EventInit = { bubbles: true },
/** This is an internal thing used by SMUI to duplicate some SMUI events as MDC events. */
duplicateEventForMDC = false,
) {

@@ -21,16 +19,3 @@ if (typeof Event === 'undefined') {

element?.dispatchEvent(event);
if (duplicateEventForMDC && eventType.startsWith('SMUI')) {
const duplicateEvent: CustomEvent<T> = new CustomEvent(
eventType.replace(/^SMUI/g, () => 'MDC'),
{
...eventInit,
detail,
},
);
element?.dispatchEvent(duplicateEvent);
if (duplicateEvent.defaultPrevented) {
event.preventDefault();
}
}
return event;
}

@@ -5,4 +5,3 @@ export * from './announce.js';

export * from './exclude.js';
export * from './forwardEventsBuilder.js';
export * from './prefixFilter.js';
export * from './useActions.js';

@@ -5,4 +5,3 @@ export * from './announce.js';

export * from './exclude.js';
export * from './forwardEventsBuilder.js';
export * from './prefixFilter.js';
export * from './useActions.js';

@@ -51,2 +51,3 @@ import type {

SVGAttributes,
EventHandler,
} from 'svelte/elements';

@@ -60,3 +61,3 @@

E extends string,
> = SmuiElementPropMap<E>[T] & DataAttrs;
> = SmuiElementPropMap<E>[T] & SmuiEventProps<SmuiElementMap[T]> & DataAttrs;

@@ -67,2 +68,298 @@ export type DataAttrs = {

// SMUI Events.
export interface SmuiEventProps<T extends EventTarget> {
// UPDATE THE AMBIENT FILE WHEN YOU UPDATE THIS!
onselected?: EventHandler<CustomEvent, T> | null;
onselectedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAction?: EventHandler<CustomEvent, T> | null;
onSMUIActioncapture?: EventHandler<CustomEvent, T> | null;
onSMUIGenericInputMount?: EventHandler<CustomEvent, T> | null;
onSMUIGenericInputMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIGenericInputUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIGenericInputUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionHeaderActivate?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionHeaderActivatecapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelClosed?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelClosing?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelClosingcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelMount?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelActivate?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelActivatecapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelOpened?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelOpening?: EventHandler<CustomEvent, T> | null;
onSMUIAccordionPanelOpeningcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteDeselected?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteDeselectedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteNoMatchesAction?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteNoMatchesActioncapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIAutocompleteSelected?: EventHandler<CustomEvent, T> | null;
onSMUIAutocompleteSelectedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerActionClicked?: EventHandler<CustomEvent, T> | null;
onSMUIBannerActionClickedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerButtonPrimaryActionClick?: EventHandler<CustomEvent, T> | null;
onSMUIBannerButtonPrimaryActionClickcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIBannerButtonSecondaryActionClick?: EventHandler<CustomEvent, T> | null;
onSMUIBannerButtonSecondaryActionClickcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIBannerClosed?: EventHandler<CustomEvent, T> | null;
onSMUIBannerClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerClosing?: EventHandler<CustomEvent, T> | null;
onSMUIBannerClosingcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerOpened?: EventHandler<CustomEvent, T> | null;
onSMUIBannerOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIBannerOpening?: EventHandler<CustomEvent, T> | null;
onSMUIBannerOpeningcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipInteraction?: EventHandler<CustomEvent, T> | null;
onSMUIChipInteractioncapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipMount?: EventHandler<CustomEvent, T> | null;
onSMUIChipMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipNavigation?: EventHandler<CustomEvent, T> | null;
onSMUIChipNavigationcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipPrimaryActionMount?: EventHandler<CustomEvent, T> | null;
onSMUIChipPrimaryActionMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipPrimaryActionUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIChipPrimaryActionUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipRemoval?: EventHandler<CustomEvent, T> | null;
onSMUIChipRemovalcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipSelection?: EventHandler<CustomEvent, T> | null;
onSMUIChipSelectioncapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingIconInteraction?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingIconInteractioncapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIChipTrailingActionInteraction?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionInteractioncapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIChipTrailingActionMount?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionNavigation?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionNavigationcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIChipTrailingActionUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIChipTrailingActionUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIChipUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIChipUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUICheckboxMount?: EventHandler<CustomEvent, T> | null;
onSMUICheckboxMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUICheckboxUnmount?: EventHandler<CustomEvent, T> | null;
onSMUICheckboxUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyCheckboxChange?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyCheckboxChangecapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIDataTableBodyMount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableBodyUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableCellMount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableCellMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableCellUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableCellUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableClickRow?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableClickRowcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderCheckboxChange?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderCheckboxChangecapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUIDataTableHeaderMount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderClick?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableHeaderClickcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowClick?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowClickcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowMount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableRowUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSelectedAll?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSelectedAllcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSelectionChanged?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSelectionChangedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSorted?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableSortedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableUnselectedAll?: EventHandler<CustomEvent, T> | null;
onSMUIDataTableUnselectedAllcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDialogClosed?: EventHandler<CustomEvent, T> | null;
onSMUIDialogClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDialogClosing?: EventHandler<CustomEvent, T> | null;
onSMUIDialogClosingcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDialogOpened?: EventHandler<CustomEvent, T> | null;
onSMUIDialogOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDialogOpening?: EventHandler<CustomEvent, T> | null;
onSMUIDialogOpeningcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerClosed?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerOpened?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerScrimClick?: EventHandler<CustomEvent, T> | null;
onSMUIDrawerScrimClickcapture?: EventHandler<CustomEvent, T> | null;
onSMUIFloatingLabelMount?: EventHandler<CustomEvent, T> | null;
onSMUIFloatingLabelMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIFloatingLabelUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIFloatingLabelUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIListAction?: EventHandler<CustomEvent, T> | null;
onSMUIListActioncapture?: EventHandler<CustomEvent, T> | null;
onSMUIListItemMount?: EventHandler<CustomEvent, T> | null;
onSMUIListItemMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIListItemUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIListItemUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIListMount?: EventHandler<CustomEvent, T> | null;
onSMUIListMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIListSelectionChange?: EventHandler<CustomEvent, T> | null;
onSMUIListSelectionChangecapture?: EventHandler<CustomEvent, T> | null;
onSMUIListUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIListUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuClosedProgrammatically?: EventHandler<CustomEvent, T> | null;
onSMUIMenuClosedProgrammaticallycapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuMount?: EventHandler<CustomEvent, T> | null;
onSMUIMenuMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSelected?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSelectedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIMenuUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceClosed?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceClosing?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceClosingcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceMount?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceOpened?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceOpening?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceOpeningcapture?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceUnmount?: EventHandler<CustomEvent, T> | null;
onSMUIMenuSurfaceUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISegmentedButtonSegmentMount?: EventHandler<CustomEvent, T> | null;
onSMUISegmentedButtonSegmentMountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUISegmentedButtonSegmentUnmount?: EventHandler<CustomEvent, T> | null;
onSMUISegmentedButtonSegmentUnmountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUISelectChange?: EventHandler<CustomEvent, T> | null;
onSMUISelectChangecapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextId?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextIdcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextMount?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextUnmount?: EventHandler<CustomEvent, T> | null;
onSMUISelectHelperTextUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectIcon?: EventHandler<CustomEvent, T> | null;
onSMUISelectIconcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectLeadingIconMount?: EventHandler<CustomEvent, T> | null;
onSMUISelectLeadingIconMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISelectLeadingIconUnmount?: EventHandler<CustomEvent, T> | null;
onSMUISelectLeadingIconUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUISliderChange?: EventHandler<CustomEvent, T> | null;
onSMUISliderChangecapture?: EventHandler<CustomEvent, T> | null;
onSMUISliderInput?: EventHandler<CustomEvent, T> | null;
onSMUISliderInputcapture?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarClosed?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarClosedcapture?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarClosing?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarClosingcapture?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarOpened?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarOpenedcapture?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarOpening?: EventHandler<CustomEvent, T> | null;
onSMUISnackbarOpeningcapture?: EventHandler<CustomEvent, T> | null;
onSMUISwitchChange?: EventHandler<CustomEvent, T> | null;
onSMUISwitchChangecapture?: EventHandler<CustomEvent, T> | null;
onSMUITabInteracted?: EventHandler<CustomEvent, T> | null;
onSMUITabInteractedcapture?: EventHandler<CustomEvent, T> | null;
onSMUITabMount?: EventHandler<CustomEvent, T> | null;
onSMUITabMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITabUnmount?: EventHandler<CustomEvent, T> | null;
onSMUITabUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITabBarActivated?: EventHandler<CustomEvent, T> | null;
onSMUITabBarActivatedcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldCharacterCounterMount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldCharacterCounterMountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUITextfieldCharacterCounterUnmount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldCharacterCounterUnmountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUITextfieldHelperTextId?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextIdcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextMount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextUnmount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldHelperTextUnmountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldIcon?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldIconcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldLeadingIconMount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldLeadingIconMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldLeadingIconUnmount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldLeadingIconUnmountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUITextfieldTrailingIconMount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldTrailingIconMountcapture?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldTrailingIconUnmount?: EventHandler<CustomEvent, T> | null;
onSMUITextfieldTrailingIconUnmountcapture?: EventHandler<
CustomEvent,
T
> | null;
onSMUITooltipHidden?: EventHandler<CustomEvent, T> | null;
onSMUITooltipHiddencapture?: EventHandler<CustomEvent, T> | null;
onSMUITopAppBarIconButtonNav?: EventHandler<CustomEvent, T> | null;
onSMUITopAppBarIconButtonNavcapture?: EventHandler<CustomEvent, T> | null;
onSMUITopAppBarNav?: EventHandler<CustomEvent, T> | null;
onSMUITopAppBarNavcapture?: EventHandler<CustomEvent, T> | null;
}
// Layout listeners.

@@ -69,0 +366,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc