@net7/components 3.8.2 → 3.8.4

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.
@@ -26,6 +26,8 @@ export interface FooterLink {
26
26
  */
27
27
  _meta?: any;
28
28
  }
29
+ export declare type FooterTitle = string;
30
+ export declare type FooterText = string;
29
31
  /**
30
32
  * Interface for each image in the footer (usually logos)
31
33
  *
@@ -56,6 +58,27 @@ export interface FooterImage {
56
58
  */
57
59
  _meta?: any;
58
60
  }
61
+ export interface FooterTitleItem {
62
+ type: 'title';
63
+ title: FooterTitle;
64
+ }
65
+ export interface FooterImagesItem {
66
+ type: 'images';
67
+ images: FooterImage[];
68
+ }
69
+ export interface FooterSelectsItem {
70
+ type: 'selects';
71
+ selects: InputSelectData[];
72
+ }
73
+ export interface FooterTextItem {
74
+ type: 'text';
75
+ text: FooterText;
76
+ }
77
+ export interface FooterLinksItem {
78
+ type: 'links';
79
+ links: FooterLink[];
80
+ }
81
+ export declare type FooterItem = FooterTitleItem | FooterImagesItem | FooterSelectsItem | FooterTextItem | FooterLinksItem;
59
82
  /**
60
83
  * Interface for a single Footer column that can display title, images, text and a nav list
61
84
  *
@@ -71,7 +94,7 @@ export interface FooterColumn {
71
94
  /**
72
95
  * column's title
73
96
  */
74
- title?: string;
97
+ title?: FooterTitle;
75
98
  /**
76
99
  * column's images
77
100
  */
@@ -83,7 +106,7 @@ export interface FooterColumn {
83
106
  /**
84
107
  * column's text
85
108
  */
86
- text?: string;
109
+ text?: FooterText;
87
110
  /**
88
111
  * column's nav
89
112
  */
@@ -96,6 +119,10 @@ export interface FooterColumn {
96
119
  * additional info useful for the component's logic
97
120
  */
98
121
  _meta?: any;
122
+ /**
123
+ * custom order for footer column content
124
+ */
125
+ sections?: FooterItem[];
99
126
  }
100
127
  /**
101
128
  * Interface for FooterComponents's "Data"
@@ -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.4",
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;