@net7/components 3.5.0 → 3.6.1-rc.1

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.
@@ -23,6 +23,10 @@ export interface HeroData {
23
23
  * main text displayed in the hero section
24
24
  */
25
25
  title: string;
26
+ /**
27
+ * optional text displayed above the title
28
+ */
29
+ preTitle?: string;
26
30
  /**
27
31
  * additional text under the title
28
32
  */
@@ -17,6 +17,26 @@ export interface TextViewerData {
17
17
  translation?: boolean;
18
18
  download?: string;
19
19
  }[];
20
+ download?: {
21
+ label?: string;
22
+ file?: string;
23
+ format?: string;
24
+ };
25
+ labels?: {
26
+ view?: string;
27
+ select?: {
28
+ label?: string;
29
+ type?: {
30
+ [key: string]: string;
31
+ };
32
+ };
33
+ index?: {
34
+ show?: string;
35
+ hide?: string;
36
+ };
37
+ toc?: string;
38
+ loading?: string;
39
+ };
20
40
  facsimile?: any;
21
41
  /**
22
42
  * additional html classes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@net7/components",
3
- "version": "3.5.0",
3
+ "version": "3.6.1-rc.1",
4
4
  "dependencies": {
5
5
  "apexcharts": "^3.8.5",
6
6
  "d3": "^7.1.1",
@@ -12,7 +12,7 @@
12
12
  * This component is used for hero section at the top of the homepage or
13
13
  * for call to action sections (usually in homepage)
14
14
  */
15
-
15
+
16
16
  /* ------------------------------------ *\
17
17
  #HERO
18
18
  \* ------------------------------------ */
@@ -46,7 +46,7 @@
46
46
  }
47
47
 
48
48
  &__title {
49
- margin: 0 0 $space*2 0;
49
+ margin: 0 0 $space * 2 0;
50
50
  font-family: $font-family-headings;
51
51
  font-size: $font-size-xxl;
52
52
  font-weight: $font-weight-bold;
@@ -54,8 +54,17 @@
54
54
  color: $color-text-inverse;
55
55
  }
56
56
 
57
+ &__pre-title {
58
+ margin: 0 0 $space * 2 0;
59
+ font-family: $font-family-main;
60
+ font-size: $font-size-m;
61
+ font-weight: $font-weight-normal;
62
+ line-height: 1.1;
63
+ color: $color-text-inverse;
64
+ }
65
+
57
66
  &__text {
58
- margin: 0 0 $space*2 0;
67
+ margin: 0 0 $space * 2 0;
59
68
  font-family: $font-family-main;
60
69
  font-size: $font-size-l;
61
70
  font-weight: $font-weight-normal;
@@ -76,7 +85,7 @@
76
85
 
77
86
  &__input {
78
87
  width: 100%;
79
- margin: 0 0 $space*2 0;
88
+ margin: 0 0 $space * 2 0;
80
89
  box-sizing: border-box;
81
90
  }
82
91
 
@@ -94,7 +103,6 @@
94
103
  }
95
104
  }
96
105
 
97
-
98
106
  /* ------------------------------------ *\
99
107
  #WITH-IMAGE
100
108
  \* ------------------------------------ */
@@ -123,7 +131,7 @@
123
131
  align-items: center;
124
132
  justify-content: center;
125
133
  @include flex-item-width($hero-image-text-width);
126
- padding: $space*3 0;
134
+ padding: $space * 3 0;
127
135
  }
128
136
 
129
137
  .n7-hero__image {
@@ -135,48 +143,42 @@
135
143
  }
136
144
  }
137
145
 
138
-
139
146
  /* ------------------------------------ *\
140
147
  #MEDIA-QUERIES
141
148
  \* ------------------------------------ */
142
- @media all and (max-width: $hero-content-width + $space*4) {
143
-
149
+ @media all and (max-width: calc(#{$hero-content-width} + #{$space}*4)) {
144
150
  .n7-hero {
145
151
  &__content {
146
- padding: 0 $space*2;
152
+ padding: 0 $space * 2;
147
153
  }
148
154
  }
149
-
150
155
  }
151
156
 
152
157
  @media all and (max-width: $breakpoint-laptop) {
153
-
154
158
  /* With image */
155
159
  .n7-hero.has-image {
156
160
  .n7-hero__content {
157
161
  grid-template-columns: 1fr 220px;
158
162
  }
159
163
  }
160
-
161
164
  }
162
165
 
163
166
  @media all and (max-width: $breakpoint-mobile) {
164
-
165
167
  .n7-hero {
166
168
  height: auto;
167
- padding: $space*2 0;
169
+ padding: $space * 2 0;
168
170
 
169
171
  &__text-wrapper {
170
172
  height: auto;
171
173
  }
172
-
174
+
173
175
  &__title {
174
- margin: 0 0 $space*2 0;
176
+ margin: 0 0 $space * 2 0;
175
177
  font-size: $font-size-l;
176
178
  }
177
-
179
+
178
180
  &__text {
179
- margin: 0 0 $space*2 0;
181
+ margin: 0 0 $space * 2 0;
180
182
  font-size: $font-size-m;
181
183
  }
182
184
  }
@@ -196,12 +198,11 @@
196
198
  .n7-hero__image-wrapper {
197
199
  order: 1;
198
200
  padding: 0;
199
- margin-bottom: $space*2;
201
+ margin-bottom: $space * 2;
200
202
  }
201
203
  }
202
-
203
204
  }
204
205
 
205
206
  /* Retina */
206
207
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
207
- }
208
+ }
@@ -71,6 +71,7 @@
71
71
  color: rgba($color-text-inverse, .8);
72
72
  font-size: $image-viewer-control-icon-size;
73
73
  transition: color $transition-durations;
74
+ padding: 10px;
74
75
  }
75
76
 
76
77
  &__control-btn.is-active {