@ilo-org/twig 0.9.3 → 0.9.5
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.9.
|
|
2
|
+
> @ilo-org/twig@0.9.5 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.9.
|
|
7
|
+
> @ilo-org/twig@0.9.5 output /home/runner/work/designsystem/designsystem/packages/twig
|
|
8
8
|
> node outputtwigs.js
|
|
9
9
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @ilo-org/twig
|
|
2
2
|
|
|
3
|
+
## 0.9.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 897fe5766: fix click event bubbling
|
|
8
|
+
- Updated dependencies [897fe5766]
|
|
9
|
+
- Updated dependencies [897fe5766]
|
|
10
|
+
- Updated dependencies [897fe5766]
|
|
11
|
+
- @ilo-org/styles@0.9.0
|
|
12
|
+
|
|
13
|
+
## 0.9.4
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 58bc8ff88: Remove justify setting on card group
|
|
18
|
+
- 58bc8ff88: Ensure cards in card group take up full width of card group and always have the same gap
|
|
19
|
+
- Updated dependencies [58bc8ff88]
|
|
20
|
+
- Updated dependencies [58a708c3a]
|
|
21
|
+
- @ilo-org/styles@0.8.4
|
|
22
|
+
|
|
3
23
|
## 0.9.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ilo-org/twig",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Twig components for the ILO's Design System",
|
|
6
6
|
"main": "",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@ilo-org/brand-assets": "0.1.0",
|
|
26
26
|
"@ilo-org/fonts": "0.1.0",
|
|
27
27
|
"@ilo-org/icons": "0.2.1",
|
|
28
|
-
"@ilo-org/styles": "0.
|
|
28
|
+
"@ilo-org/styles": "0.9.0",
|
|
29
29
|
"@ilo-org/themes": "0.2.0",
|
|
30
30
|
"@ilo-org/utils": "0.0.11"
|
|
31
31
|
},
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{#
|
|
2
2
|
CARDGROUP COMPONENT
|
|
3
3
|
#}
|
|
4
|
-
|
|
4
|
+
{% if not cardcount%}
|
|
5
|
+
{% set cardcount = "three" %}
|
|
6
|
+
{% endif %}
|
|
7
|
+
|
|
8
|
+
<div class="{{prefix}}--cardgroup {{prefix}}--cardgroup__count__{{cardcount}} {% if collapsed %} {{prefix}}--cardgroup__collapsed {% endif %}">
|
|
5
9
|
<div class="{{prefix}}--cardgroup--inner">
|
|
6
10
|
{% for card in group %}
|
|
7
11
|
<div class="{{prefix}}--cardgroup--card">
|
|
@@ -28,7 +32,8 @@
|
|
|
28
32
|
} only %}
|
|
29
33
|
</div>
|
|
30
34
|
{% endfor %}
|
|
31
|
-
|
|
35
|
+
</div>
|
|
36
|
+
{% if cta %}
|
|
32
37
|
<div class="{{prefix}}--cardgroup--button-wrap">
|
|
33
38
|
<a
|
|
34
39
|
class="{{prefix}}--button {{prefix}}--button--medium {{prefix}}--button--secondary"
|
|
@@ -38,5 +43,4 @@
|
|
|
38
43
|
</a>
|
|
39
44
|
</div>
|
|
40
45
|
{% endif %}
|
|
41
|
-
</div>
|
|
42
46
|
</div>
|
|
@@ -24,16 +24,6 @@ cardgroup:
|
|
|
24
24
|
two: two
|
|
25
25
|
three: three
|
|
26
26
|
four: four
|
|
27
|
-
justify:
|
|
28
|
-
type: select
|
|
29
|
-
label: collapsed
|
|
30
|
-
description: Sets the horizontal justification of the cards. `between` justifies the cards to the left and right edges of the container, and the space between the cards is distributed evenly. `center` is the default.
|
|
31
|
-
required: false
|
|
32
|
-
preview: center
|
|
33
|
-
options:
|
|
34
|
-
start: start
|
|
35
|
-
center: center
|
|
36
|
-
between: between
|
|
37
27
|
size:
|
|
38
28
|
type: select
|
|
39
29
|
label: Size
|
|
@@ -180,11 +180,11 @@ export default class Navigation {
|
|
|
180
180
|
|
|
181
181
|
// languageButton
|
|
182
182
|
if (this.languageButton) {
|
|
183
|
-
this.languageButton.addEventListener(EVENTS.CLICK, () =>
|
|
184
|
-
this.languageButtonClick()
|
|
183
|
+
this.languageButton.addEventListener(EVENTS.CLICK, (e) =>
|
|
184
|
+
this.languageButtonClick(e)
|
|
185
185
|
);
|
|
186
|
-
this.languageButton.addEventListener(EVENTS.TOUCH_START, () =>
|
|
187
|
-
this.languageButtonClick()
|
|
186
|
+
this.languageButton.addEventListener(EVENTS.TOUCH_START, (e) =>
|
|
187
|
+
this.languageButtonClick(e)
|
|
188
188
|
);
|
|
189
189
|
}
|
|
190
190
|
|
|
@@ -273,7 +273,9 @@ export default class Navigation {
|
|
|
273
273
|
* @return {Object} Navigation A reference to the instance of the class
|
|
274
274
|
* @chainable
|
|
275
275
|
*/
|
|
276
|
-
handleLanguageButtonClick() {
|
|
276
|
+
handleLanguageButtonClick(e) {
|
|
277
|
+
e.preventDefault();
|
|
278
|
+
e.stopImmediatePropagation();
|
|
277
279
|
this.element.classList.toggle(`${this.prefix}--select--open`);
|
|
278
280
|
|
|
279
281
|
return this;
|
|
@@ -482,6 +484,8 @@ export default class Navigation {
|
|
|
482
484
|
* @chainable
|
|
483
485
|
*/
|
|
484
486
|
handleSubnavClick(e) {
|
|
487
|
+
e.preventDefault();
|
|
488
|
+
e.stopImmediatePropagation();
|
|
485
489
|
this.element.classList.remove(`${this.prefix}--search--open`);
|
|
486
490
|
|
|
487
491
|
if (this.element.classList.contains(`${this.prefix}--subnav--open`)) {
|