@net7/components 3.8.2 → 3.8.3

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,12 +1,23 @@
1
1
  import * as i0 from "@angular/core";
2
2
  /**
3
- * Interface for ToastComponent's "data"
3
+ * Interface for the single ToastComponent's "Action"
4
4
  *
5
- * @property toasts (required)
5
+ * @property text (required)
6
+ * @property payload (required)
6
7
  * @property classes (optional)
7
8
  */
8
- export interface ToastData {
9
- toasts: ToastBox[];
9
+ export interface ToastAction {
10
+ /**
11
+ * the button's rendered text
12
+ */
13
+ text: string;
14
+ /**
15
+ * the button's onClick payload
16
+ */
17
+ payload: any;
18
+ /**
19
+ * additional html classes
20
+ */
10
21
  classes?: string;
11
22
  }
12
23
  /**
@@ -26,6 +37,10 @@ export interface ToastBox {
26
37
  * requires: [is-success, is-warning, is-error] + optional additional html classes
27
38
  */
28
39
  classes: string;
40
+ /**
41
+ * Icon to display inside the toast
42
+ */
43
+ icon?: string;
29
44
  /**
30
45
  * larger, title text
31
46
  */
@@ -55,24 +70,13 @@ export interface ToastBox {
55
70
  _meta?: any;
56
71
  }
57
72
  /**
58
- * Interface for the single ToastComponent's "Action"
73
+ * Interface for ToastComponent's "data"
59
74
  *
60
- * @property text (required)
61
- * @property payload (required)
75
+ * @property toasts (required)
62
76
  * @property classes (optional)
63
77
  */
64
- export interface ToastAction {
65
- /**
66
- * the button's rendered text
67
- */
68
- text: string;
69
- /**
70
- * the button's onClick payload
71
- */
72
- payload: any;
73
- /**
74
- * additional html classes
75
- */
78
+ export interface ToastData {
79
+ toasts: ToastBox[];
76
80
  classes?: string;
77
81
  }
78
82
  export declare class ToastComponent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@net7/components",
3
- "version": "3.8.2",
3
+ "version": "3.8.3",
4
4
  "dependencies": {
5
5
  "apexcharts": "^3.8.5",
6
6
  "d3": "^7.1.1",
@@ -13,6 +13,8 @@
13
13
  left: $space*2;
14
14
 
15
15
  &__box {
16
+ display: flex;
17
+ column-gap: $space;
16
18
  max-width: $toast-max-width;
17
19
  padding: $space $space 0 $space;
18
20
  margin-top: $space;