@net7/components 3.8.3 → 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"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@net7/components",
3
- "version": "3.8.3",
3
+ "version": "3.8.4",
4
4
  "dependencies": {
5
5
  "apexcharts": "^3.8.5",
6
6
  "d3": "^7.1.1",