@ilo-org/twig 0.14.1 → 0.14.2
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @ilo-org/twig@0.14.
|
|
2
|
+
> @ilo-org/twig@0.14.2 build:lib /home/runner/work/designsystem/designsystem/packages/twig
|
|
3
3
|
> node importprefix.js && node importsvgs.js && pnpm output
|
|
4
4
|
|
|
5
5
|
theme prefix added
|
|
6
6
|
|
|
7
|
-
> @ilo-org/twig@0.14.
|
|
7
|
+
> @ilo-org/twig@0.14.2 output /home/runner/work/designsystem/designsystem/packages/twig
|
|
8
8
|
> node outputtwigs.js
|
|
9
9
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @ilo-org/twig
|
|
2
2
|
|
|
3
|
+
## 0.14.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d67dc414b: Don't show language selector in Nav if no links are passed to the Language Context Menu
|
|
8
|
+
- Updated dependencies [08a2141cc]
|
|
9
|
+
- Updated dependencies [dea2d0a07]
|
|
10
|
+
- @ilo-org/styles@0.13.1
|
|
11
|
+
|
|
3
12
|
## 0.14.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ilo-org/twig",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Twig components for the ILO's Design System",
|
|
6
6
|
"main": "",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@popperjs/core": "^2.11.8",
|
|
25
25
|
"video.js": "^7.21.2",
|
|
26
26
|
"@ilo-org/brand-assets": "0.2.0",
|
|
27
|
-
"@ilo-org/icons": "0.2.1",
|
|
28
27
|
"@ilo-org/fonts": "0.1.2",
|
|
29
|
-
"@ilo-org/
|
|
28
|
+
"@ilo-org/icons": "0.2.1",
|
|
29
|
+
"@ilo-org/styles": "0.13.1",
|
|
30
30
|
"@ilo-org/themes": "0.7.0",
|
|
31
31
|
"@ilo-org/utils": "0.0.11"
|
|
32
32
|
},
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"webpack": "^4.46.0",
|
|
78
78
|
"yaml-loader": "0.6.0",
|
|
79
79
|
"yo": "^3.1.1",
|
|
80
|
-
"@ilo-org/
|
|
81
|
-
"@ilo-org/
|
|
80
|
+
"@ilo-org/eslint-config": "0.1.0",
|
|
81
|
+
"@ilo-org/prettier-config": "0.0.2"
|
|
82
82
|
},
|
|
83
83
|
"scripts": {
|
|
84
84
|
"storybook": "node importprefix.js && node importsvgs.js && start-storybook --config-dir apps/storybook",
|
|
@@ -27,14 +27,16 @@
|
|
|
27
27
|
<a href="{{mainlink.url}}" class="{{prefix}}--language-switcher--link">{{mainlink.label}}</a>
|
|
28
28
|
</span>
|
|
29
29
|
{% endif %}
|
|
30
|
-
|
|
30
|
+
{% if languagecontextmenu.links is not empty %}
|
|
31
|
+
<button class="{{prefix}}--language-switcher--button" type="button">
|
|
31
32
|
{{languagelabel}}
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
</button>
|
|
34
|
+
{% include '@components/contextmenu/contextmenu.twig' with {
|
|
34
35
|
links: languagecontextmenu.links,
|
|
35
36
|
prefix: prefix
|
|
36
37
|
}
|
|
37
38
|
%}
|
|
39
|
+
{% endif %}
|
|
38
40
|
</div> <!-- /.{{prefix}}--language-switcher--wrap -->
|
|
39
41
|
</div> <!-- /.{{prefix}}--language-switcher -->
|
|
40
42
|
<button class="{{prefix}}--header--menu">Menu</button>
|
|
@@ -49,7 +51,7 @@
|
|
|
49
51
|
</a>
|
|
50
52
|
<button class="{{prefix}}--header--menu--close">{{menucloselabel}}</button>
|
|
51
53
|
</div> <!-- /.{{prefix}}--mobile--logo -->
|
|
52
|
-
|
|
54
|
+
{% if languagecontextmenu.links is not empty %}
|
|
53
55
|
<div class="{{prefix}}--mobile--nav--language--switcher">
|
|
54
56
|
<button class="{{prefix}}--mobile--nav--language--switcher--button" type="button">{{languagelabel}}</button>
|
|
55
57
|
</div> <!-- /.{{prefix}}--mobile--nav--language--switcher -->
|
|
@@ -69,6 +71,7 @@
|
|
|
69
71
|
</ul>
|
|
70
72
|
</div>
|
|
71
73
|
</div>
|
|
74
|
+
{% endif %}
|
|
72
75
|
</div> <!-- /.{{prefix}}--mobile--nav -->
|
|
73
76
|
<nav class="{{prefix}}--nav" aria-labelledby="primary-navigation">
|
|
74
77
|
<h2 class="{{prefix}}--nav--label" id="primary-navigation">{{primarynav.navlabel}}</h2>
|
|
@@ -5,20 +5,22 @@
|
|
|
5
5
|
|
|
6
6
|
<header class="{{prefix}}--header" data-loadcomponent="Navigation" data-prefix="{{prefix}}">
|
|
7
7
|
<div class="{{prefix}}--header--utility-bar">
|
|
8
|
-
|
|
9
|
-
<div class="{{prefix}}--language-switcher
|
|
10
|
-
<
|
|
11
|
-
{{
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
{% if languagecontextmenu.links is not empty %}
|
|
9
|
+
<div class="{{prefix}}--language-switcher">
|
|
10
|
+
<div class="{{prefix}}--language-switcher--wrap">
|
|
11
|
+
<button class="{{prefix}}--language-switcher--button" type="button">
|
|
12
|
+
{{languagelabel}}
|
|
13
|
+
</button>
|
|
14
|
+
{% include '@components/contextmenu/contextmenu.twig' with {
|
|
14
15
|
links: languagecontextmenu.links,
|
|
15
16
|
prefix: prefix
|
|
16
17
|
}
|
|
17
18
|
%}
|
|
19
|
+
</div>
|
|
20
|
+
<!-- /.{{prefix}}--language-switcher--wrap -->
|
|
18
21
|
</div>
|
|
19
|
-
<!-- /.{{prefix}}--language-switcher
|
|
20
|
-
|
|
21
|
-
<!-- /.{{prefix}}--language-switcher -->
|
|
22
|
+
<!-- /.{{prefix}}--language-switcher -->
|
|
23
|
+
{% endif %}
|
|
22
24
|
</div>
|
|
23
25
|
<!-- /.{{prefix}}--header--utility-bar -->
|
|
24
26
|
<div class="{{prefix}}--header--logo-bar">
|
|
@@ -67,29 +69,33 @@
|
|
|
67
69
|
{% endblock %}
|
|
68
70
|
</div>
|
|
69
71
|
<!-- /.{{prefix}}--mobile--search -->
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
<div class="{{prefix}}--
|
|
77
|
-
<div class="{{prefix}}--
|
|
78
|
-
<
|
|
79
|
-
|
|
80
|
-
|
|
72
|
+
{% if languagecontextmenu.links is not empty %}
|
|
73
|
+
<div class="{{prefix}}--mobile--nav--language--switcher">
|
|
74
|
+
<button class="{{prefix}}--mobile--nav--language--switcher--button" type="button">{{languagelabel}}</button>
|
|
75
|
+
</div>
|
|
76
|
+
{% endif %}
|
|
77
|
+
<!-- /.{{prefix}}--mobile--nav--language--switcher -->
|
|
78
|
+
<div class="{{prefix}}--mobile--nav--language--select">
|
|
79
|
+
<div class="{{prefix}}--header--inner {{ prefix }}--container">
|
|
80
|
+
<div class="{{prefix}}--mobile--subnav--menu">
|
|
81
|
+
<button class="{{prefix}}--mobile--subnav--back" type="button">{{subnav.mobilebacklabel}}</button>
|
|
82
|
+
<button class="{{prefix}}--header--menu--close">{{subnav.mobilecloselabel}}</button>
|
|
83
|
+
<h6 class="{{prefix}}--mobile--subnav--label">{{languagelabel}}</h6>
|
|
84
|
+
</div>
|
|
85
|
+
<!-- /{{prefix}}--mobile--subnav--menu -->
|
|
86
|
+
<ul class="{{prefix}}--nav--set">
|
|
87
|
+
{% for item in languagecontextmenu.links %}
|
|
88
|
+
<li class="{{prefix}}--nav--items">
|
|
89
|
+
<a href="{{item.url}}" class="{{prefix}}--nav--link {{prefix}}--nav--language">
|
|
90
|
+
{{item.label}}
|
|
91
|
+
</a>
|
|
92
|
+
</li>
|
|
93
|
+
{% endfor %}
|
|
94
|
+
</ul>
|
|
81
95
|
</div>
|
|
82
|
-
<!-- /{{prefix}}--mobile--subnav--menu -->
|
|
83
|
-
<ul class="{{prefix}}--nav--set">
|
|
84
|
-
{% for item in languagecontextmenu.links %}
|
|
85
|
-
<li class="{{prefix}}--nav--items">
|
|
86
|
-
<a href="{{item.url}}" class="{{prefix}}--nav--link {{prefix}}--nav--language">{{item.label}}</a>
|
|
87
|
-
</li>
|
|
88
|
-
{% endfor %}
|
|
89
|
-
</ul>
|
|
90
96
|
</div>
|
|
91
97
|
</div>
|
|
92
|
-
|
|
98
|
+
|
|
93
99
|
<!-- /.{{prefix}}--mobile--nav -->
|
|
94
100
|
<nav class="{{prefix}}--nav" aria-labelledby="primary-navigation">
|
|
95
101
|
<h2 class="{{prefix}}--nav--label" id="primary-navigation">{{primarynav.navlabel}}</h2>
|