@net7/components 3.2.0 → 3.3.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.
@@ -15,6 +15,7 @@ export interface TextViewerData {
15
15
  view: string;
16
16
  channel?: string;
17
17
  translation?: boolean;
18
+ download?: string;
18
19
  }[];
19
20
  facsimile?: any;
20
21
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@net7/components",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "dependencies": {
5
5
  "apexcharts": "^3.8.5",
6
6
  "d3": "^7.1.1",
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Component used to preview any kind of element with image, title, text, metadata and icons.
5
5
  */
6
-
6
+
7
7
  /* ------------------------------------ *\
8
8
  #ITEM-PREVIEW
9
9
  \* ------------------------------------ */
@@ -13,7 +13,7 @@
13
13
  cursor: default;
14
14
  position: relative;
15
15
  }
16
-
16
+
17
17
  &__title {
18
18
  margin-bottom: $space;
19
19
  font-family: $font-family-headings;
@@ -29,7 +29,7 @@
29
29
  font-weight: $font-weight-normal;
30
30
  color: $color-text;
31
31
  }
32
-
32
+
33
33
  /* Metadata */
34
34
  &__metadata-group {
35
35
  margin-bottom: $space;
@@ -69,7 +69,6 @@
69
69
  }
70
70
  }
71
71
 
72
-
73
72
  /* ------------------------------------ *\
74
73
  #HAS-IMAGE, #HAS-COLOR
75
74
  \* ------------------------------------ */
@@ -79,10 +78,11 @@
79
78
  display: flex;
80
79
  }
81
80
 
82
- .n7-item-preview__image { /* Color background here */
81
+ .n7-item-preview__image {
82
+ /* Color background here */
83
83
  width: $item-preview-image-width;
84
84
  height: $item-preview-image-height;
85
- margin-right: $space*1.5;
85
+ margin-right: $space * 1.5;
86
86
  background-repeat: no-repeat;
87
87
  background-size: cover;
88
88
  background-position: center center;
@@ -93,7 +93,6 @@
93
93
  }
94
94
  }
95
95
 
96
-
97
96
  /* ------------------------------------ *\
98
97
  #IS-VERTICAL
99
98
  \* ------------------------------------ */
@@ -102,8 +101,9 @@
102
101
  .n7-item-preview__inner {
103
102
  display: block;
104
103
  }
105
-
106
- .n7-item-preview__image { /* Color background here */
104
+
105
+ .n7-item-preview__image {
106
+ /* Color background here */
107
107
  width: 100%;
108
108
  height: $item-preview-vertical-image-height;
109
109
  margin-bottom: $space;
@@ -113,6 +113,26 @@
113
113
  }
114
114
  }
115
115
 
116
+ /* ------------------------------------ *\
117
+ #IS-FRONTPAGE
118
+ \* ------------------------------------ */
119
+ .n7-item-preview.is-frontpage.has-image,
120
+ .n7-item-preview.is-frontpage.has-color {
121
+ .n7-item-preview__inner {
122
+ display: block;
123
+ }
124
+
125
+ .n7-item-preview__image {
126
+ /* Color background here */
127
+ width: 100%;
128
+ height: auto;
129
+ aspect-ratio: $item-preview-frontpage-aspect-ratio;
130
+ margin-bottom: $space;
131
+ margin-right: 0;
132
+ background-repeat: no-repeat;
133
+ background-size: cover;
134
+ }
135
+ }
116
136
 
117
137
  /* ------------------------------------ *\
118
138
  #IS-OVERLAY
@@ -123,8 +143,9 @@
123
143
  display: block;
124
144
  height: $item-preview-height;
125
145
  }
126
-
127
- .n7-item-preview__image { /* Color background here */
146
+
147
+ .n7-item-preview__image {
148
+ /* Color background here */
128
149
  position: absolute;
129
150
  top: 0;
130
151
  bottom: 0;
@@ -147,9 +168,9 @@
147
168
  flex-direction: column;
148
169
  align-items: center;
149
170
  justify-content: center;
150
- padding: $space*2;
171
+ padding: $space * 2;
151
172
  }
152
-
173
+
153
174
  .n7-item-preview__title,
154
175
  .n7-item-preview__text,
155
176
  .n7-item-preview__metadata-group-title {
@@ -170,7 +191,8 @@
170
191
 
171
192
  /* Dark overlay behind the text only with image (not with color bg only) */
172
193
  .n7-item-preview.is-overlay.has-image {
173
- .n7-item-preview__image { /* Color background here */
194
+ .n7-item-preview__image {
195
+ /* Color background here */
174
196
  &:after {
175
197
  content: " ";
176
198
  position: absolute;
@@ -179,12 +201,11 @@
179
201
  bottom: 0;
180
202
  left: 0;
181
203
  right: 0;
182
- background-color: rgba(0,0,0,0.5);
204
+ background-color: rgba(0, 0, 0, 0.5);
183
205
  }
184
206
  }
185
207
  }
186
208
 
187
-
188
209
  /* ------------------------------------ *\
189
210
  #HOVER
190
211
  \* ------------------------------------ */
@@ -215,4 +236,4 @@
215
236
 
216
237
  /* Retina */
217
238
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
218
- }
239
+ }
@@ -9,31 +9,27 @@
9
9
  // ------------------------------------ //
10
10
  $space: 8px;
11
11
 
12
-
13
12
  // ------------------------------------ //
14
13
  // #LAYOUT
15
14
  // ------------------------------------ //
16
15
  $page-max-width: 1350px;
17
16
 
18
-
19
17
  // ------------------------------------ //
20
18
  // #GRIDS
21
19
  // ------------------------------------ //
22
- $grid-gutter-h: $space*3;
23
- $grid-gutter-v: $space*2;
24
-
20
+ $grid-gutter-h: $space * 3;
21
+ $grid-gutter-v: $space * 2;
25
22
 
26
23
  // ------------------------------------ //
27
24
  // #FONTS
28
25
  // ------------------------------------ //
29
- @import url('https://fonts.googleapis.com/css?family=Lato:400,400i,700,700i');
30
-
26
+ @import url("https://fonts.googleapis.com/css?family=Lato:400,400i,700,700i");
31
27
 
32
28
  // ------------------------------------ //
33
29
  // TYPOGRAPHY
34
30
  // ------------------------------------ //
35
- $font-family-main: 'Lato', sans-serif;
36
- $font-family-headings: 'Lato', sans-serif;
31
+ $font-family-main: "Lato", sans-serif;
32
+ $font-family-headings: "Lato", sans-serif;
37
33
 
38
34
  $font-size-xxxl: 38px; // 2.875rem; // 46px
39
35
  $font-size-xxl: 30px; // 1.85rem; // 40px
@@ -47,7 +43,6 @@ $font-size-xs: 12px; // 0.75rem; // 12px
47
43
  $font-weight-normal: 400;
48
44
  $font-weight-bold: 700;
49
45
 
50
-
51
46
  // ------------------------------------ //
52
47
  // COLORS
53
48
  // ------------------------------------ //
@@ -70,7 +65,6 @@ $color-background-light: $color-gray-01;
70
65
  $color-background-medium: $color-gray-02;
71
66
  $color-background-dark: $color-gray-03;
72
67
 
73
-
74
68
  // ------------------------------------ //
75
69
  // #MEDIA-QUERIES-BREAKPOINT
76
70
  // ------------------------------------ //
@@ -85,14 +79,12 @@ $breakpoint-smartphone-portrait: 400px;
85
79
  $breakpoint-inner-title-medium: $breakpoint-desktop-wide - 1;
86
80
  $breakpoint-inner-title-small: $breakpoint-ipad-portrait - 1;
87
81
 
88
-
89
82
  // ------------------------------------ //
90
83
  // #BORDER-RADIUS
91
84
  // ------------------------------------ //
92
85
  $border-radius: 3px;
93
86
  $border-radius-hard: 8px;
94
87
 
95
-
96
88
  // ------------------------------------ //
97
89
  // #BUTTONS
98
90
  // ------------------------------------ //
@@ -105,7 +97,7 @@ $button-large-height: 50px;
105
97
  // Normal button
106
98
  $color-button-text: $color-text-light;
107
99
  $color-button-text-hover: $color-text-link;
108
- $color-button-text-disabled: rgba($color-text, .4);
100
+ $color-button-text-disabled: rgba($color-text, 0.4);
109
101
 
110
102
  $color-button-bg: $color-gray-02;
111
103
  $color-button-bg-hover: $color-gray-01;
@@ -117,12 +109,12 @@ $color-button-border-hover: $color-border-normal;
117
109
  // Call to action button
118
110
  $color-button-cta-text: $color-text-inverse;
119
111
  $color-button-cta-text-hover: $color-text-inverse;
120
- $color-button-cta-text-disabled: rgba($color-text-inverse, .4);
112
+ $color-button-cta-text-disabled: rgba($color-text-inverse, 0.4);
121
113
 
122
114
  $color-button-cta-bg: $color-main;
123
115
  $color-button-cta-bg-hover: $color-text-hover;
124
116
  $color-button-cta-bg-active: $color-text-hover;
125
- $color-button-cta-bg-disabled: rgba($color-main, .4);
117
+ $color-button-cta-bg-disabled: rgba($color-main, 0.4);
126
118
 
127
119
  $color-button-cta-border: $color-main; // Change this if you want a darker button border.
128
120
 
@@ -132,7 +124,6 @@ $color-button-light-text-hover: $color-text-link-hover;
132
124
  $color-button-light-text-disabled: $color-text-light;
133
125
  $color-button-light-text-active: $color-text-link-hover;
134
126
 
135
-
136
127
  // ------------------------------------ //
137
128
  // #FORMS
138
129
  // ------------------------------------ //
@@ -141,21 +132,19 @@ $form-input-small-height: 26px;
141
132
  $form-border-radius: $border-radius;
142
133
  $form-border-size: 1px;
143
134
 
144
-
145
135
  // ------------------------------------ //
146
136
  // #TRANSITIONS
147
137
  // ------------------------------------ //
148
138
  $transition-durations: 0.2s;
149
139
 
150
-
151
140
  // ------------------------------------ //
152
141
  // #HEADER
153
142
  // ------------------------------------ //
154
143
  $header-height: 80px;
155
144
  $header-height-mobile: 60px;
156
145
  $header-bg-color: $color-background-base;
157
- $header-logo-height: $header-height - ($space*2);
158
- $header-logo-height-mobile: $header-height-mobile - ($space*2);
146
+ $header-logo-height: $header-height - ($space * 2);
147
+ $header-logo-height-mobile: $header-height-mobile - ($space * 2);
159
148
  $header-user-thumb-size: 40px;
160
149
  $header-user-thumb-size-mobile: 28px;
161
150
  $header-search-input-height: 36px;
@@ -163,15 +152,13 @@ $header-search-input-height-mobile: 28px;
163
152
  $header-breakpoint-mobile: 1180px;
164
153
  $header-breakpoint-mobile-small: 600px;
165
154
 
166
-
167
155
  // ------------------------------------ //
168
156
  // #LOADER
169
157
  // ------------------------------------ //
170
158
  $loader-size: 70px;
171
159
  $loader-thickness: 5px;
172
160
  $loader-color-front: $color-main;
173
- $loader-color-back: rgba($color-main, .3);
174
-
161
+ $loader-color-back: rgba($color-main, 0.3);
175
162
 
176
163
  // ------------------------------------ //
177
164
  // #TABLE
@@ -192,16 +179,14 @@ $table-footer-font-size: $font-size-s;
192
179
  $table-footer-text-color: $color-text-light;
193
180
  $table-footer-bg: $color-background-medium;
194
181
 
195
-
196
182
  // ------------------------------------ //
197
183
  // #BREADCRUMBS
198
184
  // ------------------------------------ //
199
185
  $breadcrumbs-background: $color-background-light;
200
186
  $breadcrumbs-arrow-color: $color-text-light;
201
187
  $breadcrumbs-current-color: $color-text;
202
- $breadcrumbs-arrow: '\e90a';
203
- $breadcrumbs-arrow-mobile: '\e908';
204
-
188
+ $breadcrumbs-arrow: "\e90a";
189
+ $breadcrumbs-arrow-mobile: "\e908";
205
190
 
206
191
  // ------------------------------------ //
207
192
  // #PAGINATION
@@ -218,7 +203,6 @@ $pagination-color-hover: $color-text-link;
218
203
  $pagination-color-disabled: $color-text-light;
219
204
  $pagination-color-current: $color-text-inverse;
220
205
 
221
-
222
206
  // ------------------------------------ //
223
207
  // #ALERT
224
208
  // ------------------------------------ //
@@ -231,7 +215,6 @@ $alert-color-text-success: $color-text-inverse;
231
215
  $alert-color-text-warning: $color-text-inverse;
232
216
  $alert-color-text-error: $color-text-inverse;
233
217
 
234
-
235
218
  // ------------------------------------ //
236
219
  // #ITEM-PREVIEW
237
220
  // ------------------------------------ //
@@ -239,7 +222,7 @@ $item-preview-image-width: 60px;
239
222
  $item-preview-image-height: $item-preview-image-width;
240
223
  $item-preview-vertical-image-height: 180px;
241
224
  $item-preview-height: 250px;
242
-
225
+ $item-preview-frontpage-aspect-ratio: 0.75;
243
226
 
244
227
  // ------------------------------------ //
245
228
  // #HERO
@@ -249,32 +232,29 @@ $hero-content-width: 1140px;
249
232
  $hero-image-text-width: 300px;
250
233
  $hero-background-color: $color-gray-05;
251
234
 
252
-
253
235
  // ------------------------------------ //
254
236
  // #WIZARD
255
237
  // ------------------------------------ //
256
238
  $wizard-height: 40px;
257
239
  $wizard-number-circle-margin: 5px;
258
240
  $wizard-past-bg-color: $color-main;
259
- $wizard-past-number-bg-color: rgba($color-background-base, .2);
241
+ $wizard-past-number-bg-color: rgba($color-background-base, 0.2);
260
242
  $wizard-past-text-color: $color-text-inverse;
261
243
  $wizard-present-bg-color: $color-second;
262
- $wizard-present-number-bg-color: rgba($color-background-base, .2);
244
+ $wizard-present-number-bg-color: rgba($color-background-base, 0.2);
263
245
  $wizard-present-text-color: $color-text-inverse;
264
246
  $wizard-future-bg-color: $color-background-medium;
265
- $wizard-future-number-bg-color: rgba($color-background-dark, .4);
247
+ $wizard-future-number-bg-color: rgba($color-background-dark, 0.4);
266
248
  $wizard-future-text-color: $color-text;
267
249
  $wizard-number-size: $font-size-s;
268
250
  $wizard-text-size: $font-size-s;
269
251
 
270
-
271
252
  // ------------------------------------ //
272
253
  // #TREE
273
254
  // ------------------------------------ //
274
- $tree-image-size:28px;
255
+ $tree-image-size: 28px;
275
256
  $tree-indent: $space;
276
257
 
277
-
278
258
  // ------------------------------------ //
279
259
  // #SIDEBAR-HEADER
280
260
  // ------------------------------------ //
@@ -286,7 +266,6 @@ $sidebar-left-text-color: $sidebar-header-text-color;
286
266
  $sidebar-right-background-color: $color-text-link;
287
267
  $sidebar-right-text-color: $color-text-inverse;
288
268
 
289
-
290
269
  // ------------------------------------ //
291
270
  // #TOAST
292
271
  // ------------------------------------ //
@@ -297,7 +276,6 @@ $toast-title-color: $color-text;
297
276
  $toast-text-color: $color-text;
298
277
  $toast-max-width: 300px;
299
278
 
300
-
301
279
  // ------------------------------------ //
302
280
  // #SIGNUP
303
281
  // ------------------------------------ //
@@ -305,7 +283,6 @@ $signup-max-width: 400px;
305
283
  $signup-input-background: $color-gray-01;
306
284
  $signup-error-color: $color-error;
307
285
 
308
-
309
286
  // ------------------------------------ //
310
287
  // #ADVANCED-AUTOCOMPLETE
311
288
  // ------------------------------------ //
@@ -314,7 +291,6 @@ $advanced-autocomplete-group-title-width: 180px;
314
291
  $advanced-autocomplete-empty-height: 180px;
315
292
  $advanced-autocomplete-action-bar-shadow: 0 -5px 15px -5px rgba(0, 0, 0, 0.3);
316
293
 
317
-
318
294
  // ------------------------------------ //
319
295
  // #FACET-HEADER
320
296
  // ------------------------------------ //
@@ -323,21 +299,18 @@ $facet-header-background: $color-gray-05;
323
299
  $facet-header-icon-background: $color-second;
324
300
  $facet-header-height: 30px;
325
301
 
326
-
327
302
  // ------------------------------------ //
328
303
  // #FACET
329
304
  // ------------------------------------ //
330
305
  $facet-inner-padding: $space;
331
306
  $facet-links-max-height: 200px;
332
307
 
333
-
334
308
  // ------------------------------------ //
335
309
  // #INNER-TITLE
336
310
  // ------------------------------------ //
337
311
  $inner-title-filters-height: $button-normal-height;
338
312
  $inner-title-image-size: 60px;
339
313
 
340
-
341
314
  // ------------------------------------ //
342
315
  // #IMAGE-VIEWER
343
316
  // ------------------------------------ //
@@ -353,7 +326,6 @@ $image-viewer-thumb-hover-border-color: $color-main;
353
326
  $image-viewer-tools-control-color: $color-main;
354
327
  $image-viewer-tools-control-color-active: $color-second;
355
328
 
356
-
357
329
  // ------------------------------------ //
358
330
  // #FOOTER
359
331
  // ------------------------------------ //
@@ -362,24 +334,21 @@ $footer-background-color: $color-gray-03;
362
334
  $footer-breakpoint-desktop: $page-max-width + $grid-gutter-h;
363
335
  $footer-breakpoint-mobile: 700px;
364
336
 
365
-
366
337
  // ------------------------------------ //
367
338
  // #CAROUSEL
368
339
  // ------------------------------------ //
369
- $carousel-content-width:960px;
340
+ $carousel-content-width: 960px;
370
341
  $carousel-height: 400px;
371
342
 
372
-
373
343
  // ------------------------------------ //
374
344
  // #NAV
375
345
  // ------------------------------------ //
376
346
  $nav-image-height: 50px;
377
347
  $nav-image-width: 50px;
378
348
 
379
-
380
349
  // ------------------------------------ //
381
350
  // #PROGRESS-LINE
382
351
  // ------------------------------------ //
383
352
  $progress-line-bg-color: $color-gray-02;
384
353
  $progress-line-front-color: $color-main;
385
- $progress-line-height: $space*3;
354
+ $progress-line-height: $space * 3;