@haiilo/catalyst 10.8.1 → 10.10.0

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.
@@ -1,7 +1,13 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
1
2
  /**
2
3
  * Cards are surfaces that display content and actions on a single topic. They
3
4
  * should be easy to scan for relevant and actionable information.
4
5
  */
5
6
  export declare class CatCard {
7
+ /**
8
+ * Emitted when the card and all the children are fully loaded.
9
+ */
10
+ catLoad: EventEmitter<FocusEvent>;
6
11
  render(): any;
12
+ componentDidLoad(): void;
7
13
  }
@@ -1541,6 +1541,10 @@ export interface CatButtonCustomEvent<T> extends CustomEvent<T> {
1541
1541
  detail: T;
1542
1542
  target: HTMLCatButtonElement;
1543
1543
  }
1544
+ export interface CatCardCustomEvent<T> extends CustomEvent<T> {
1545
+ detail: T;
1546
+ target: HTMLCatCardElement;
1547
+ }
1544
1548
  export interface CatCheckboxCustomEvent<T> extends CustomEvent<T> {
1545
1549
  detail: T;
1546
1550
  target: HTMLCatCheckboxElement;
@@ -1672,11 +1676,22 @@ declare global {
1672
1676
  prototype: HTMLCatButtonGroupElement;
1673
1677
  new (): HTMLCatButtonGroupElement;
1674
1678
  };
1679
+ interface HTMLCatCardElementEventMap {
1680
+ "catLoad": FocusEvent;
1681
+ }
1675
1682
  /**
1676
1683
  * Cards are surfaces that display content and actions on a single topic. They
1677
1684
  * should be easy to scan for relevant and actionable information.
1678
1685
  */
1679
1686
  interface HTMLCatCardElement extends Components.CatCard, HTMLStencilElement {
1687
+ addEventListener<K extends keyof HTMLCatCardElementEventMap>(type: K, listener: (this: HTMLCatCardElement, ev: CatCardCustomEvent<HTMLCatCardElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1688
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1689
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1690
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1691
+ removeEventListener<K extends keyof HTMLCatCardElementEventMap>(type: K, listener: (this: HTMLCatCardElement, ev: CatCardCustomEvent<HTMLCatCardElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1692
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1693
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1694
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1680
1695
  }
1681
1696
  var HTMLCatCardElement: {
1682
1697
  prototype: HTMLCatCardElement;
@@ -2345,6 +2360,10 @@ declare namespace LocalJSX {
2345
2360
  * should be easy to scan for relevant and actionable information.
2346
2361
  */
2347
2362
  interface CatCard {
2363
+ /**
2364
+ * Emitted when the card and all the children are fully loaded.
2365
+ */
2366
+ "onCatLoad"?: (event: CatCardCustomEvent<FocusEvent>) => void;
2348
2367
  }
2349
2368
  /**
2350
2369
  * Checkboxes are used to let a user choose one or more options from a limited
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haiilo/catalyst",
3
- "version": "10.8.1",
3
+ "version": "10.10.0",
4
4
  "description": "Catalyst Design System",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,7 +40,7 @@
40
40
  "sanitize.css": "13.0.0",
41
41
  "tabbable": "6.2.0",
42
42
  "toastify-js": "1.12.0",
43
- "@haiilo/catalyst-tokens": "10.8.1"
43
+ "@haiilo/catalyst-tokens": "10.10.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@babel/core": "^7.23.3",