@ilo-org/twig 0.2.0 → 0.2.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.
- package/.turbo/turbo-build.log +14227 -14227
- package/CHANGELOG.md +32 -0
- package/package.json +5 -6
- package/src/patterns/components/accordion/accordion.js +2 -2
- package/src/patterns/components/card/card.twig +2 -4
- package/src/patterns/components/fieldset/fieldset.twig +1 -0
- package/src/patterns/components/navigation/navigation.twig +1 -1
- package/src/patterns/components/navigation/navigation.wingsuit.yml +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @ilo-org/twig
|
|
2
2
|
|
|
3
|
+
## 0.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 84fd6bc7d: Bugfixes with several components
|
|
8
|
+
- 6e470111a: Nav, Card and Hero fixes for QA
|
|
9
|
+
- Updated dependencies [84fd6bc7d]
|
|
10
|
+
- Updated dependencies [6e470111a]
|
|
11
|
+
- @ilo-org/styles@0.1.7
|
|
12
|
+
- @ilo-org/icons@0.1.7
|
|
13
|
+
- @ilo-org/themes@0.1.7
|
|
14
|
+
- @ilo-org/utils@0.0.3
|
|
15
|
+
|
|
16
|
+
## 0.2.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- b65d5c4c1: Various bugfixes
|
|
21
|
+
- 487778036: CHangeset wasn't detected by github
|
|
22
|
+
- ab6c0a1c7: Set all packages to rely on latest fixed version of other internal packages
|
|
23
|
+
- d2b78bb88: Right to left for Profile component
|
|
24
|
+
- dd2b3ece6: YHet another changeset, perhaps something is broken with changesets
|
|
25
|
+
- Updated dependencies [b65d5c4c1]
|
|
26
|
+
- Updated dependencies [487778036]
|
|
27
|
+
- Updated dependencies [ab6c0a1c7]
|
|
28
|
+
- Updated dependencies [d2b78bb88]
|
|
29
|
+
- Updated dependencies [dd2b3ece6]
|
|
30
|
+
- @ilo-org/icons@0.1.6
|
|
31
|
+
- @ilo-org/styles@0.1.6
|
|
32
|
+
- @ilo-org/utils@0.0.2
|
|
33
|
+
- @ilo-org/themes@0.1.6
|
|
34
|
+
|
|
3
35
|
## 0.2.0
|
|
4
36
|
|
|
5
37
|
### Minor 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.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Twig components for the ILO's Design System",
|
|
6
6
|
"main": "",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@ilo-org/fonts": "0.0.2",
|
|
24
|
-
"@ilo-org/icons": "0.1.
|
|
25
|
-
"@ilo-org/styles": "0.1.
|
|
26
|
-
"@ilo-org/themes": "0.1.
|
|
27
|
-
"@ilo-org/utils": "0.0.
|
|
24
|
+
"@ilo-org/icons": "0.1.7",
|
|
25
|
+
"@ilo-org/styles": "0.1.7",
|
|
26
|
+
"@ilo-org/themes": "0.1.7",
|
|
27
|
+
"@ilo-org/utils": "0.0.3",
|
|
28
28
|
"@wingsuit-designsystem/preset-scss": "^1.2.3",
|
|
29
29
|
"video.js": "^7.19.2"
|
|
30
30
|
},
|
|
@@ -85,7 +85,6 @@
|
|
|
85
85
|
"yaml-loader": "^0.6.0",
|
|
86
86
|
"yo": "^3.1.1"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "bfeff58b8f6e6ace1c28f31ad67d75d6f18ee5a4",
|
|
89
88
|
"scripts": {
|
|
90
89
|
"storybook": "node importprefix.js; node importsvgs.js; start-storybook --config-dir apps/storybook",
|
|
91
90
|
"build:storybook": "node importprefix.js; node importsvgs.js; build-storybook --config-dir apps/storybook -o ./storybook-static",
|
|
@@ -156,7 +156,7 @@ export default class Accordion {
|
|
|
156
156
|
collapseSection(element) {
|
|
157
157
|
element.parentElement
|
|
158
158
|
.querySelector('.ilo--accordion--button')
|
|
159
|
-
.setAttribute(ARIA.EXPANDED, '
|
|
159
|
+
.setAttribute(ARIA.EXPANDED, 'false');
|
|
160
160
|
element.setAttribute(ARIA.HIDDEN, 'false');
|
|
161
161
|
element.classList.remove('ilo--accordion--panel--open');
|
|
162
162
|
}
|
|
@@ -171,7 +171,7 @@ export default class Accordion {
|
|
|
171
171
|
expandSection(element) {
|
|
172
172
|
element.parentElement
|
|
173
173
|
.querySelector('.ilo--accordion--button')
|
|
174
|
-
.setAttribute(ARIA.EXPANDED, '
|
|
174
|
+
.setAttribute(ARIA.EXPANDED, 'true');
|
|
175
175
|
element.setAttribute(ARIA.HIDDEN, 'true');
|
|
176
176
|
element.classList.add('ilo--accordion--panel--open');
|
|
177
177
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
{#
|
|
2
2
|
CARD COMPONENT
|
|
3
3
|
#}
|
|
4
|
-
<div class="{{prefix}}--card {{prefix}}--card--{{theme}} {{prefix}}--card--{{variant}}{% if cornercut %} {{prefix}}--card--{{cornercut}}{% endif %}{% if color %} {{prefix}}--card--{{color}}{% endif %}{% if alignment %} {{prefix}}--card--{{alignment}}{% endif %}
|
|
5
|
-
{{prefix}}--card--{{type}}{% endif %}{% if size %}
|
|
6
|
-
{{prefix}}--card--{{size}}{% endif %}">
|
|
4
|
+
<div class="{{prefix}}--card {{prefix}}--card--{{theme}} {{prefix}}--card--{{variant}}{% if cornercut %} {{prefix}}--card--{{cornercut}}{% endif %}{% if color %} {{prefix}}--card--{{color}}{% endif %}{% if alignment %} {{prefix}}--card--{{alignment}}{% endif %}{% if link %} {{prefix}}--card--action{% endif %}{% if type %} {{prefix}}--card--{{type}}{% endif %}{% if size %} {{prefix}}--card--{{size}}{% endif %}">
|
|
7
5
|
{% if type == "" %}
|
|
8
6
|
{% set type = variant %}
|
|
9
7
|
{% endif %}
|
|
@@ -91,7 +89,7 @@
|
|
|
91
89
|
<div class="{{prefix}}--card--data--content-links">
|
|
92
90
|
<p class="{{prefix}}--card--data--content-label">{{ dataset.links.headline }}</p>
|
|
93
91
|
{% for item in dataset.links.items %}
|
|
94
|
-
{% include "@components/link/link.twig" with {
|
|
92
|
+
{% include "@components/link/link.twig" with {
|
|
95
93
|
url: item.url,
|
|
96
94
|
label: item.label,
|
|
97
95
|
prefix: prefix,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<div class="{{prefix}}--mobile--nav">
|
|
34
34
|
<div class="{{prefix}}--mobile--nav--logo">
|
|
35
35
|
<a href="{{siteurl}}" class="{{prefix}}--header--logo-link">
|
|
36
|
-
<img class="{{prefix}}--header--logo" src="{{
|
|
36
|
+
<img class="{{prefix}}--header--logo" src="{{mobilelogo.image}}" alt="{{mobilelogo.alt}}">
|
|
37
37
|
</a>
|
|
38
38
|
<button class="{{prefix}}--header--menu--close">{{menucloselabel}}</button>
|
|
39
39
|
</div> <!-- /.{{prefix}}--mobile--logo -->
|
|
@@ -11,6 +11,14 @@ navigation:
|
|
|
11
11
|
preview:
|
|
12
12
|
image: "https://placekitten.com/g/155/56"
|
|
13
13
|
alt: Logo
|
|
14
|
+
mobilelogo:
|
|
15
|
+
type: object
|
|
16
|
+
label: Logo
|
|
17
|
+
description: Logo for the nav
|
|
18
|
+
required: true
|
|
19
|
+
preview:
|
|
20
|
+
image: "https://placekitten.com/111/40"
|
|
21
|
+
alt: Logo
|
|
14
22
|
siteurl:
|
|
15
23
|
type: string
|
|
16
24
|
label: Site url
|