@adia-ai/web-components 0.5.1 → 0.5.2
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.
|
@@ -63,11 +63,7 @@
|
|
|
63
63
|
"anti_patterns": [],
|
|
64
64
|
"category": "container",
|
|
65
65
|
"composes": [],
|
|
66
|
-
"events": {
|
|
67
|
-
"close": {
|
|
68
|
-
"description": "Fired when the toast is dismissed via click or auto-timeout"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
66
|
+
"events": {},
|
|
71
67
|
"examples": [
|
|
72
68
|
{
|
|
73
69
|
"description": "Column of three toast notification components showing success, warning, and error variants.",
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
|
|
13
13
|
import { UIElement } from '../../core/element.js';
|
|
14
14
|
|
|
15
|
-
export type ToastCloseEvent = CustomEvent<unknown>;
|
|
16
|
-
|
|
17
15
|
export class UIToast extends UIElement {
|
|
18
16
|
/** Auto-dismiss time in milliseconds. 0 disables auto-dismiss. */
|
|
19
17
|
duration: number;
|
|
@@ -23,11 +21,4 @@ export class UIToast extends UIElement {
|
|
|
23
21
|
text: string;
|
|
24
22
|
/** Semantic variant — `default | info | success | warning | danger`. `primary` and `muted` are style hints; canonical "neutral but interesting" tone is `info`. */
|
|
25
23
|
variant: 'default' | 'info' | 'success' | 'warning' | 'danger' | 'primary' | 'muted' | 'neutral';
|
|
26
|
-
|
|
27
|
-
addEventListener<K extends keyof HTMLElementEventMap>(
|
|
28
|
-
type: K,
|
|
29
|
-
listener: (this: UIToast, ev: HTMLElementEventMap[K]) => unknown,
|
|
30
|
-
options?: boolean | AddEventListenerOptions,
|
|
31
|
-
): void;
|
|
32
|
-
addEventListener(type: 'close', listener: (ev: ToastCloseEvent) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
33
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adia-ai/web-components",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "AdiaUI web components — vanilla custom elements. A2UI runtime (renderer, registry, streams, wiring) lives in @adia-ai/a2ui-runtime.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./index.d.ts",
|