@itcenteratunihelsinki/huds-lib 0.6.6 → 0.6.7

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.
Files changed (35) hide show
  1. package/dist/cjs/huds-lib.cjs.js +1 -1
  2. package/dist/cjs/{hy-accordion-container_89.cjs.entry.js → hy-accordion-container_83.cjs.entry.js} +606 -1314
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/collection/collection-manifest.json +0 -12
  5. package/dist/collection/components/navigation/hy-menu-main-group/hy-menu-main-group.js +20 -1
  6. package/dist/collection/components/site-header/site-header.css +16 -1
  7. package/dist/collection/components/site-header/site-header.js +15 -37
  8. package/dist/esm/huds-lib.js +1 -1
  9. package/dist/esm/{hy-accordion-container_89.entry.js → hy-accordion-container_83.entry.js} +608 -1310
  10. package/dist/esm/loader.js +1 -1
  11. package/dist/huds-lib/huds-lib.esm.js +1 -1
  12. package/dist/huds-lib/p-f86741ed.entry.js +86 -0
  13. package/dist/types/components/navigation/hy-menu-main-group/hy-menu-main-group.d.ts +1 -0
  14. package/dist/types/components/site-header/site-header.d.ts +0 -1
  15. package/dist/types/components.d.ts +3 -212
  16. package/package.json +1 -1
  17. package/dist/collection/components/navigation/menu/menu.css +0 -262
  18. package/dist/collection/components/navigation/menu/menu.js +0 -431
  19. package/dist/collection/components/navigation/menu-item/menu-item.css +0 -348
  20. package/dist/collection/components/navigation/menu-item/menu-item.js +0 -557
  21. package/dist/collection/components/navigation/menu-level-container/menu-level-container.css +0 -129
  22. package/dist/collection/components/navigation/menu-level-container/menu-level-container.js +0 -300
  23. package/dist/collection/components/navigation/menu-mobile-breadcrumb/menu-mobile-breadcrumb.css +0 -90
  24. package/dist/collection/components/navigation/menu-mobile-breadcrumb/menu-mobile-breadcrumb.js +0 -151
  25. package/dist/collection/components/navigation/mobile-menu-shortcuts/mobile-menu-shortcuts.css +0 -140
  26. package/dist/collection/components/navigation/mobile-menu-shortcuts/mobile-menu-shortcuts.js +0 -68
  27. package/dist/collection/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.css +0 -469
  28. package/dist/collection/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.js +0 -482
  29. package/dist/huds-lib/p-f28263c0.entry.js +0 -86
  30. package/dist/types/components/navigation/menu/menu.d.ts +0 -30
  31. package/dist/types/components/navigation/menu-item/menu-item.d.ts +0 -31
  32. package/dist/types/components/navigation/menu-level-container/menu-level-container.d.ts +0 -27
  33. package/dist/types/components/navigation/menu-mobile-breadcrumb/menu-mobile-breadcrumb.d.ts +0 -12
  34. package/dist/types/components/navigation/mobile-menu-shortcuts/mobile-menu-shortcuts.d.ts +0 -13
  35. package/dist/types/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.d.ts +0 -60
@@ -1,68 +0,0 @@
1
- import { Component, h, Host, Prop } from '@stencil/core';
2
- import { jsonParserWorker } from '../../../global/globalScript';
3
- export class HyMobileMenuShortcuts {
4
- async componentWillLoad() {
5
- this._dataShortcutLinks = await jsonParserWorker(this.dataShortcutLinks);
6
- }
7
- render() {
8
- return (h(Host, { class: "hy-mobile-menu-shortcuts" },
9
- h("h2", null, this.shortcutsLabel),
10
- h("ul", { class: "hy-mobile-menu-shortcuts__links" }, this._dataShortcutLinks.map(({ title, url, is_external, aria_label }) => {
11
- let target = is_external ? '_blank' : '_self';
12
- return (h("li", { class: "hy-mobile-menu-shortcuts__links-item" },
13
- h("a", { "aria-current": aria_label, href: url, class: "hy-mobile-menu-shortcuts__link", target: target, "aria-label": aria_label },
14
- h("hy-icon", { icon: 'hy-icon-caret-right', size: 10 }),
15
- h("span", null,
16
- title,
17
- is_external && h("hy-icon", { icon: 'hy-icon-arrow-right', size: 12 })))));
18
- }))));
19
- }
20
- static get is() { return "hy-mobile-menu-shortcuts"; }
21
- static get encapsulation() { return "shadow"; }
22
- static get originalStyleUrls() { return {
23
- "$": ["mobile-menu-shortcuts.scss"]
24
- }; }
25
- static get styleUrls() { return {
26
- "$": ["mobile-menu-shortcuts.css"]
27
- }; }
28
- static get properties() { return {
29
- "shortcutsLabel": {
30
- "type": "string",
31
- "mutable": false,
32
- "complexType": {
33
- "original": "string",
34
- "resolved": "string",
35
- "references": {}
36
- },
37
- "required": false,
38
- "optional": false,
39
- "docs": {
40
- "tags": [],
41
- "text": ""
42
- },
43
- "attribute": "shortcuts-label",
44
- "reflect": false
45
- },
46
- "dataShortcutLinks": {
47
- "type": "string",
48
- "mutable": false,
49
- "complexType": {
50
- "original": "ShortcutLinks[] | string",
51
- "resolved": "ShortcutLinks[] | string",
52
- "references": {
53
- "ShortcutLinks": {
54
- "location": "local"
55
- }
56
- }
57
- },
58
- "required": false,
59
- "optional": false,
60
- "docs": {
61
- "tags": [],
62
- "text": ""
63
- },
64
- "attribute": "data-shortcut-links",
65
- "reflect": false
66
- }
67
- }; }
68
- }
@@ -1,469 +0,0 @@
1
- :root {
2
- --brand-main: #0e688b;
3
- --brand-main-soft: #b1e7ff;
4
- --brand-main-bright: #48c5f8;
5
- --brand-main-light: #107eab;
6
- --brand-main-active: #005379;
7
- --brand-main-dark: #003146;
8
- --brand-main-nearly-black: #000222;
9
- --link-blue: #0479a4;
10
- --link-disabled: #767676;
11
- --grayscale-white: #fff;
12
- --grayscale-slightly-gray: #fefefe;
13
- --grayscale-light: #f8f8f8;
14
- --grayscale-medium: #d2d2d2;
15
- --grayscale-background-box: #f5f5f5;
16
- --grayscale-tabs-border: #e6e6e6;
17
- --grayscale-background-arrow: #dfdfdf;
18
- --grayscale-medium-dark: #979797;
19
- --grayscale-dark: #555555;
20
- --grayscale-dark-text: #222222;
21
- --grayscale-black: #000000;
22
- --additional-red-light: #e5053a;
23
- --additional-red-dark: #a31621;
24
- --additional-purple-light: #420039;
25
- --additional-yellow: #f9a21a;
26
- --additional-skyblue: #48c5f8;
27
- --additional-orange: #d14600;
28
- --additional-green-light: #96ba3c;
29
- --additional-green-dark: #006400;
30
- --hover-gray: #eaeaea;
31
- }
32
-
33
- * {
34
- -webkit-box-sizing: border-box;
35
- box-sizing: border-box;
36
- }
37
-
38
- :root {
39
- --gutter-mobile: 16px;
40
- --gutter-narrow: 24px;
41
- --gutter-medium: 24px;
42
- --gutter-wide: 24px;
43
- --gutter-extrawide: 32px;
44
- }
45
-
46
- /**
47
- * Mixin for fluid type.
48
- * Example usage: @include fluid-type(font-size, 320px, 1600px, 32px, 80px);
49
- */
50
-
51
- :root {
52
- --breakpoint-extrawide: 75.0625rem;
53
- --breakpoint-max-width: 75.0625rem;
54
- --breakpoint-medium: 48rem;
55
- --breakpoint-narrow: 30rem;
56
- --breakpoint-wide: 60rem;
57
- }
58
-
59
- :host {
60
- -webkit-box-align: center;
61
- -ms-flex-align: center;
62
- align-items: center;
63
- display: -webkit-box;
64
- display: -ms-flexbox;
65
- display: flex;
66
- -webkit-box-orient: horizontal;
67
- -webkit-box-direction: normal;
68
- -ms-flex-flow: row;
69
- flex-flow: row;
70
- -webkit-box-pack: center;
71
- -ms-flex-pack: center;
72
- justify-content: center;
73
- padding: 0;
74
- }
75
-
76
- .hy-site-header__menu-desktop {
77
- height: 100%;
78
- margin: 0 32px;
79
- }
80
-
81
- .hy-site-header__menu-desktop.is-group {
82
- margin: 0;
83
- }
84
-
85
- .hy-desktop-menu {
86
- display: -webkit-box;
87
- display: -ms-flexbox;
88
- display: flex;
89
- height: 100%;
90
- list-style: none;
91
- margin: 0;
92
- padding: 0;
93
- width: 100%;
94
- }
95
-
96
- .is-dropdown .hy-desktop-menu__item {
97
- position: relative;
98
- }
99
-
100
- .hy-desktop-menu__button {
101
- font-size: 0.875rem;
102
- line-height: 16px;
103
- font-weight: 700;
104
- background-color: transparent;
105
- border: none;
106
- color: var(--brand-main-nearly-black);
107
- cursor: pointer;
108
- display: -webkit-box;
109
- display: -ms-flexbox;
110
- display: flex;
111
- -webkit-box-orient: horizontal;
112
- -webkit-box-direction: normal;
113
- -ms-flex-direction: row;
114
- flex-direction: row;
115
- font-family: var(--main-font-family);
116
- height: 100%;
117
- letter-spacing: -0.7px;
118
- padding: 39px 10px 13px;
119
- text-transform: uppercase;
120
- text-decoration: none;
121
- text-align: left;
122
- -webkit-box-align: start;
123
- -ms-flex-align: start;
124
- align-items: flex-start;
125
- }
126
-
127
- .is-group .hy-desktop-menu__button {
128
- padding: 26px 10px;
129
- width: auto;
130
- -webkit-box-align: center;
131
- -ms-flex-align: center;
132
- align-items: center;
133
- -webkit-box-pack: center;
134
- -ms-flex-pack: center;
135
- justify-content: center;
136
- }
137
-
138
- @media (min-width: 1601px) {
139
- .hy-desktop-menu__button.is-long br {
140
- display: none;
141
- }
142
- }
143
-
144
- @media (min-width: 1601px) {
145
- .hy-desktop-menu__button {
146
- font-size: 1rem;
147
- line-height: 16px;
148
- width: auto;
149
- -webkit-box-align: center;
150
- -ms-flex-align: center;
151
- align-items: center;
152
- -webkit-box-pack: center;
153
- -ms-flex-pack: center;
154
- justify-content: center;
155
- padding: 26px 10px;
156
- }
157
- }
158
-
159
- .hy-desktop-menu__button:hover {
160
- cursor: pointer;
161
- }
162
-
163
- .hy-desktop-menu__button:hover span {
164
- color: var(--brand-main);
165
- }
166
-
167
- .hy-desktop-menu__button:hover svg {
168
- fill: var(--brand-main);
169
- }
170
-
171
- .hy-desktop-menu__button:focus {
172
- outline: solid 2px var(--additional-yellow);
173
- outline-offset: 2px;
174
- color: var(--link-blue);
175
- }
176
-
177
- .hy-desktop-menu__button span {
178
- pointer-events: none;
179
- }
180
-
181
- .hy-desktop-menu__button hy-icon {
182
- pointer-events: none;
183
- margin-left: 4px;
184
- }
185
-
186
- .hy-desktop-menu__button hy-icon svg {
187
- height: 10px;
188
- width: 10px;
189
- }
190
-
191
- .hy-desktop-menu__button[aria-expanded=true] hy-icon {
192
- -webkit-transform: rotate(180deg);
193
- transform: rotate(180deg);
194
- }
195
-
196
- .is-panel-open .hy-desktop-menu__button:not([aria-expanded=true]) {
197
- -webkit-box-shadow: none;
198
- box-shadow: none;
199
- }
200
-
201
- .is-panel-open .hy-desktop-menu__button:not([aria-expanded=true])::after, .is-panel-open .hy-desktop-menu__button:not([aria-expanded=true])::before {
202
- display: none;
203
- }
204
-
205
- .hy-desktop-menu__button.is-active-trail, .hy-desktop-menu__button[aria-expanded=true] {
206
- -webkit-box-shadow: inset 0 -4px 0 0 var(--grayscale-black);
207
- box-shadow: inset 0 -4px 0 0 var(--grayscale-black);
208
- position: relative;
209
- }
210
-
211
- .hy-desktop-menu__button.is-active-trail::after, .hy-desktop-menu__button.is-active-trail::before, .hy-desktop-menu__button[aria-expanded=true]::after, .hy-desktop-menu__button[aria-expanded=true]::before {
212
- background-color: var(--grayscale-white);
213
- content: "";
214
- height: 5px;
215
- width: 16px;
216
- position: absolute;
217
- bottom: -1px;
218
- z-index: 1000;
219
- }
220
-
221
- .hy-desktop-menu__button.is-active-trail::before, .hy-desktop-menu__button[aria-expanded=true]::before {
222
- left: -16px;
223
- }
224
-
225
- .hy-desktop-menu__button.is-active-trail::after, .hy-desktop-menu__button[aria-expanded=true]::after {
226
- right: -16px;
227
- }
228
-
229
- .hy-desktop-menu__panel {
230
- background-color: var(--grayscale-white);
231
- -webkit-transition: none;
232
- transition: none;
233
- position: absolute;
234
- top: 0;
235
- z-index: 100;
236
- display: -webkit-box;
237
- display: -ms-flexbox;
238
- display: flex;
239
- }
240
-
241
- .hy-desktop-menu__panel[aria-hidden=true] {
242
- display: none;
243
- opacity: 0;
244
- }
245
-
246
- .hy-desktop-menu__panel:not(.is-dropdown) {
247
- left: 0;
248
- right: 0;
249
- width: 100%;
250
- }
251
-
252
- .hy-desktop-menu__panel.is-dropdown {
253
- border: 1px solid var(--grayscale-black);
254
- left: -17px;
255
- top: 100%;
256
- }
257
-
258
- .hy-desktop-menu__panel-container {
259
- margin: 0 auto;
260
- padding: 40px 24px;
261
- max-width: 120.0625rem;
262
- width: 100%;
263
- display: grid;
264
- grid-template-columns: 1fr auto 1fr;
265
- justify-items: center;
266
- -webkit-box-align: start;
267
- -ms-flex-align: start;
268
- align-items: flex-start;
269
- }
270
-
271
- .is-dropdown .hy-desktop-menu__panel-container {
272
- padding: 24px 16px 40px;
273
- }
274
-
275
- .hy-desktop-menu__panel-menu {
276
- -webkit-box-align: baseline;
277
- -ms-flex-align: baseline;
278
- align-items: baseline;
279
- display: -webkit-inline-box;
280
- display: -ms-inline-flexbox;
281
- display: inline-flex;
282
- -webkit-box-orient: vertical;
283
- -webkit-box-direction: normal;
284
- -ms-flex-direction: column;
285
- flex-direction: column;
286
- grid-column-start: 2;
287
- }
288
-
289
- .hy-desktop-menu__panel-header {
290
- display: inline-grid;
291
- gap: 8px 16px;
292
- grid-template-areas: "icon link" "icon description";
293
- grid-template-columns: auto;
294
- grid-template-rows: auto;
295
- margin-bottom: 32px;
296
- -webkit-box-align: start;
297
- -ms-flex-align: start;
298
- align-items: flex-start;
299
- }
300
-
301
- .is-dropdown .hy-desktop-menu__panel-header {
302
- margin-bottom: 16px;
303
- }
304
-
305
- .hy-desktop-menu__panel-header > hy-icon {
306
- -webkit-box-align: center;
307
- -ms-flex-align: center;
308
- align-items: center;
309
- background-color: var(--grayscale-black);
310
- display: -webkit-box;
311
- display: -ms-flexbox;
312
- display: flex;
313
- grid-area: icon;
314
- height: 40px;
315
- -webkit-box-pack: center;
316
- -ms-flex-pack: center;
317
- justify-content: center;
318
- width: 40px;
319
- }
320
-
321
- .hy-desktop-menu__panel-header > hy-icon svg {
322
- fill: var(--grayscale-white);
323
- }
324
-
325
- .hy-desktop-menu__panel-header a {
326
- font-size: 1.5625rem;
327
- line-height: 32px;
328
- font-weight: 700;
329
- color: var(--brand-main);
330
- font-family: var(--main-font-family);
331
- grid-area: link;
332
- letter-spacing: -0.5px;
333
- margin-top: 4px;
334
- text-decoration: none;
335
- width: -webkit-max-content;
336
- width: -moz-max-content;
337
- width: max-content;
338
- }
339
-
340
- .hy-desktop-menu__panel-header a:hover {
341
- text-decoration: underline;
342
- }
343
-
344
- .hy-desktop-menu__panel-header p {
345
- font-size: 1.0625rem;
346
- line-height: 26px;
347
- font-weight: 400;
348
- color: var(--grayscale-black);
349
- font-family: var(--main-font-family);
350
- grid-area: description;
351
- margin: 0;
352
- width: 690px;
353
- }
354
-
355
- .hy-desktop-menu__panel-content {
356
- padding-left: 56px;
357
- display: inline-grid;
358
- grid-template-columns: 400px;
359
- }
360
-
361
- .hy-desktop-menu__panel-content.has-shortcuts {
362
- grid-template-columns: 400px 496px;
363
- }
364
-
365
- .is-dropdown .hy-desktop-menu__panel-content {
366
- grid-template-columns: 310px;
367
- }
368
-
369
- .hy-desktop-menu__panel-shortcuts {
370
- margin-left: 48px;
371
- padding-left: 48px;
372
- border-left: 1px solid var(--grayscale-medium);
373
- }
374
-
375
- .hy-desktop-menu__panel-shortcuts > h2 {
376
- font-size: 1.125rem;
377
- line-height: 24px;
378
- font-weight: 700;
379
- color: var(--grayscale-black);
380
- font-family: var(--main-font-family);
381
- letter-spacing: -0.36px;
382
- margin: 0 0 24px;
383
- }
384
-
385
- .hy-desktop-menu__panel-links {
386
- list-style: none;
387
- margin: 0;
388
- padding: 0;
389
- display: inline-grid;
390
- gap: 20px;
391
- }
392
-
393
- .hy-desktop-menu__panel-link {
394
- font-size: 1rem;
395
- line-height: 24px;
396
- font-weight: 600;
397
- -webkit-box-align: start;
398
- -ms-flex-align: start;
399
- align-items: flex-start;
400
- color: var(--brand-main);
401
- display: -webkit-inline-box;
402
- display: -ms-inline-flexbox;
403
- display: inline-flex;
404
- font-family: var(--main-font-family);
405
- letter-spacing: -0.5px;
406
- overflow: hidden;
407
- text-decoration: none;
408
- }
409
-
410
- .hy-desktop-menu__panel-link:hover {
411
- text-decoration: underline;
412
- }
413
-
414
- .hy-desktop-menu__panel-link hy-icon {
415
- margin-right: 12px;
416
- margin-top: 12px;
417
- -webkit-transform: translateY(-50%);
418
- transform: translateY(-50%);
419
- }
420
-
421
- .hy-desktop-menu__panel-link hy-icon svg {
422
- fill: var(--grayscale-black);
423
- }
424
-
425
- .hy-desktop-menu__panel-link span hy-icon {
426
- display: -webkit-inline-box !important;
427
- display: -ms-inline-flexbox !important;
428
- display: inline-flex !important;
429
- margin-left: 6px;
430
- margin-right: 0;
431
- -webkit-transform: rotate(-45deg);
432
- transform: rotate(-45deg);
433
- }
434
-
435
- .hy-desktop-menu__panel-link span hy-icon svg {
436
- fill: var(--brand-main);
437
- }
438
-
439
- .hy-desktop-menu__panel-close-button {
440
- font-size: 1rem;
441
- line-height: 18px;
442
- font-weight: 700;
443
- -webkit-box-align: center;
444
- -ms-flex-align: center;
445
- align-items: center;
446
- background-color: transparent;
447
- border: none;
448
- color: var(--brand-main);
449
- display: -webkit-inline-box;
450
- display: -ms-inline-flexbox;
451
- display: inline-flex;
452
- font-family: var(--main-font-family);
453
- letter-spacing: -0.3px;
454
- padding: 16px;
455
- margin-left: auto;
456
- margin-right: -8px;
457
- }
458
-
459
- .hy-desktop-menu__panel-close-button:hover {
460
- cursor: pointer;
461
- }
462
-
463
- .hy-desktop-menu__panel-close-button hy-icon {
464
- margin-left: 8px;
465
- }
466
-
467
- .hy-desktop-menu__panel-close-button hy-icon svg {
468
- fill: var(--brand-main);
469
- }