@ilo-org/twig 0.2.5 → 0.2.6
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.
- package/.turbo/turbo-build.log +10782 -10782
- package/CHANGELOG.md +16 -0
- package/apps/storybook/styles.scss +0 -1
- package/package.json +6 -6
- package/src/patterns/components/localnav/localnav.twig +58 -4
- package/src/patterns/components/navigation/navigation.twig +0 -1
- package/src/patterns/components/tooltip/tooltip.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @ilo-org/twig
|
|
2
2
|
|
|
3
|
+
## 0.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f7f448c65: Fixes to React radio button, SearchField, add ability to serve different langauge fonts
|
|
8
|
+
- f4b7bcb7f: Local nav fixes for mobile
|
|
9
|
+
- 0dfb90274: Patchfix for Feature card wide version
|
|
10
|
+
- Updated dependencies [f7f448c65]
|
|
11
|
+
- Updated dependencies [f4b7bcb7f]
|
|
12
|
+
- Updated dependencies [0dfb90274]
|
|
13
|
+
- @ilo-org/fonts@0.0.3
|
|
14
|
+
- @ilo-org/styles@0.1.11
|
|
15
|
+
- @ilo-org/themes@0.1.11
|
|
16
|
+
- @ilo-org/utils@0.0.7
|
|
17
|
+
- @ilo-org/icons@0.1.11
|
|
18
|
+
|
|
3
19
|
## 0.2.5
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ilo-org/twig",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Twig components for the ILO's Design System",
|
|
6
6
|
"main": "",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"components"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@ilo-org/fonts": "0.0.
|
|
24
|
-
"@ilo-org/icons": "0.1.
|
|
25
|
-
"@ilo-org/styles": "0.1.
|
|
26
|
-
"@ilo-org/themes": "0.1.
|
|
27
|
-
"@ilo-org/utils": "0.0.
|
|
23
|
+
"@ilo-org/fonts": "0.0.3",
|
|
24
|
+
"@ilo-org/icons": "0.1.11",
|
|
25
|
+
"@ilo-org/styles": "0.1.11",
|
|
26
|
+
"@ilo-org/themes": "0.1.11",
|
|
27
|
+
"@ilo-org/utils": "0.0.7",
|
|
28
28
|
"@wingsuit-designsystem/preset-scss": "^1.2.3",
|
|
29
29
|
"video.js": "^7.19.2"
|
|
30
30
|
},
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{#
|
|
2
2
|
LOCALNAV COMPONENT
|
|
3
3
|
#}
|
|
4
|
-
<header class="{{prefix}}--header" data-loadcomponent="Navigation" data-prefix="{{prefix}}">
|
|
4
|
+
<header class="{{prefix}}--header {{prefix}}--header--local" data-loadcomponent="Navigation" data-prefix="{{prefix}}">
|
|
5
5
|
<div class="{{prefix}}--header--utility-bar {{prefix}}--header--utility-bar--local">
|
|
6
6
|
<nav class="{{prefix}}--nav--local">
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
|
|
7
|
+
<div class="{{prefix}}--nav--local--logo-wrapper">
|
|
8
|
+
<a href="{{siteurl}}" class="{{prefix}}--nav--local--logo-link">
|
|
9
|
+
<img src="{{logo.image}}" alt="{{logo.alt}}" class="{{prefix}}--nav--local--logo">
|
|
10
|
+
</a>
|
|
11
|
+
</div>
|
|
10
12
|
|
|
11
13
|
<ul class="{{prefix}}--nav--local--set">
|
|
12
14
|
{% for item in primarynav.items %}
|
|
@@ -28,5 +30,57 @@
|
|
|
28
30
|
%}
|
|
29
31
|
</div> <!-- /.{{prefix}}--language-switcher--wrap -->
|
|
30
32
|
</div> <!-- /.{{prefix}}--language-switcher -->
|
|
33
|
+
<button class="ilo--header--menu">Menu</button>
|
|
31
34
|
</div> <!-- /.{{prefix}}--header--utility-bar -->
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<div class="{{prefix}}--header--navigation">
|
|
38
|
+
<div class="{{prefix}}--header--inner">
|
|
39
|
+
<div class="{{prefix}}--mobile--nav">
|
|
40
|
+
<div class="{{prefix}}--mobile--nav--logo">
|
|
41
|
+
<a href="{{siteurl}}" class="{{prefix}}--header--logo-link">
|
|
42
|
+
<img class="{{prefix}}--header--logo" src="{{mobilelogo.image}}" alt="{{mobilelogo.alt}}">
|
|
43
|
+
</a>
|
|
44
|
+
<button class="{{prefix}}--header--menu--close">{{menucloselabel}}</button>
|
|
45
|
+
</div> <!-- /.{{prefix}}--mobile--logo -->
|
|
46
|
+
|
|
47
|
+
<div class="{{prefix}}--mobile--nav--language--switcher">
|
|
48
|
+
<button class="{{prefix}}--mobile--nav--language--switcher--button" type="button">{{languagelabel}}</button>
|
|
49
|
+
</div> <!-- /.{{prefix}}--mobile--nav--language--switcher -->
|
|
50
|
+
<div class="{{prefix}}--mobile--nav--language--select">
|
|
51
|
+
<div class="{{prefix}}--header--inner">
|
|
52
|
+
<div class="{{prefix}}--mobile--subnav--menu">
|
|
53
|
+
<button class="{{prefix}}--mobile--subnav--back" type="button">{{subnav.mobilebacklabel}}</button>
|
|
54
|
+
<button class="{{prefix}}--header--menu--close">{{subnav.mobilecloselabel}}</button>
|
|
55
|
+
<h6 class="{{prefix}}--mobile--subnav--label">{{languagelabel}}</h6>
|
|
56
|
+
</div> <!-- /{{prefix}}--mobile--subnav--menu -->
|
|
57
|
+
<ul class="{{prefix}}--nav--set">
|
|
58
|
+
{% for item in languagecontextmenu.links %}
|
|
59
|
+
<li class="{{prefix}}--nav--items">
|
|
60
|
+
<a href="{{item.url}}" class="{{prefix}}--nav--link {{prefix}}--nav--language">{{item.label}}</a>
|
|
61
|
+
</li>
|
|
62
|
+
{% endfor %}
|
|
63
|
+
</ul>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</div> <!-- /.{{prefix}}--mobile--nav -->
|
|
67
|
+
<nav class="{{prefix}}--nav" aria-labelledby="primary-navigation">
|
|
68
|
+
<h2 class="{{prefix}}--nav--label" id="primary-navigation">{{primarynav.navlabel}}</h2>
|
|
69
|
+
<ul class="{{prefix}}--nav--set">
|
|
70
|
+
{% for item in primarynav.items %}
|
|
71
|
+
<li class="{{prefix}}--nav--items">
|
|
72
|
+
<a href="{{item.link}}" class="{{prefix}}--nav--link">{{item.label}}</a>
|
|
73
|
+
</li>
|
|
74
|
+
{% endfor %}
|
|
75
|
+
{% if subnav %}
|
|
76
|
+
<li class="{{prefix}}--nav--items">
|
|
77
|
+
<button class="{{prefix}}--nav--trigger">{{subnav.buttonlabel}}</button>
|
|
78
|
+
</li>
|
|
79
|
+
{% endif %}
|
|
80
|
+
</ul>
|
|
81
|
+
</nav>
|
|
82
|
+
<div class="{{prefix}}--search">
|
|
83
|
+
<button class="{{prefix}}--search--button" type="button">{{searchlabel}}</button>
|
|
84
|
+
</div> <!-- /.{{prefix}}--search -->
|
|
85
|
+
</div> <!-- /.{{prefix}}--header--inner -->
|
|
32
86
|
</header>
|
|
@@ -163,19 +163,16 @@ export default class Tooltip {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
// set style top and left on tooltip
|
|
166
|
-
// setPosition({ x: x, y: y });
|
|
167
166
|
this.tooltip.style.top = y;
|
|
168
167
|
this.tooltip.style.left = x;
|
|
169
168
|
|
|
170
169
|
// set class for placement on arrow
|
|
171
|
-
// setArrowPlacement(placement);
|
|
172
170
|
this.arrow.classList.remove(`${this.prefix}--tooltip--arrow--placement-${this.placement}`);
|
|
173
171
|
this.arrow.classList.add(`${this.prefix}--tooltip--arrow--placement-${this.placement}`);
|
|
174
172
|
this.placement = placement;
|
|
175
173
|
this.arrow.setAttribute('data-placement', placement);
|
|
176
174
|
|
|
177
175
|
// set class for alignment on tooltip
|
|
178
|
-
// setArrowAlignment(alignment);
|
|
179
176
|
this.tooltip.classList.remove(`${this.prefix}--tooltip--alignment-${this.alignment}`);
|
|
180
177
|
this.tooltip.classList.add(`${this.prefix}--tooltip--alignment-${this.alignment}`);
|
|
181
178
|
this.alignment = alignment;
|