@ilo-org/twig 0.2.22 → 0.2.24
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.2.
|
|
2
|
+
> @ilo-org/twig@0.2.24 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.2.
|
|
7
|
+
> @ilo-org/twig@0.2.24 output /home/runner/work/designsystem/designsystem/packages/twig
|
|
8
8
|
> node outputtwigs.js
|
|
9
9
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @ilo-org/twig
|
|
2
2
|
|
|
3
|
+
## 0.2.24
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 55e5c479e: Add a check to only run the accordion function once in Drupal.
|
|
8
|
+
|
|
9
|
+
## 0.2.23
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 3134bcadf: Add blocks to wrap pictures in card component
|
|
14
|
+
|
|
3
15
|
## 0.2.22
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -5,9 +5,12 @@ Drupal.behaviors.accordion = {
|
|
|
5
5
|
Array.prototype.forEach.call(
|
|
6
6
|
document.querySelectorAll(`[data-loadcomponent="Accordion"]`),
|
|
7
7
|
(element) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
if(!element.dataset.jsProcessed) {
|
|
9
|
+
// eslint-disable-next-line no-console
|
|
10
|
+
console.log("loading Accordion component....");
|
|
11
|
+
new Accordion(element);
|
|
12
|
+
element.dataset.jsProcessed = true;
|
|
13
|
+
}
|
|
11
14
|
}
|
|
12
15
|
);
|
|
13
16
|
},
|
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
{% endif %}
|
|
11
11
|
<div class="{{prefix}}--card--wrap">
|
|
12
12
|
{% if image %}
|
|
13
|
-
<div class="{{prefix}}--card--image--wrapper"
|
|
13
|
+
<div class="{{prefix}}--card--image--wrapper">
|
|
14
|
+
{% block card_image %}
|
|
15
|
+
<picture><img class="{{prefix}}--card--image" src="{{image}}" alt="{{title}}"></picture>
|
|
16
|
+
{% endblock %}
|
|
17
|
+
</div>
|
|
14
18
|
{% endif %}
|
|
15
19
|
<div class="{{prefix}}--card--content">
|
|
16
20
|
{% if eyebrow %}
|
|
@@ -20,7 +24,11 @@
|
|
|
20
24
|
<h5 class="{{prefix}}--card--title">{{title}}</h5>
|
|
21
25
|
{% endif %}
|
|
22
26
|
{% if type == "multilink" or type == "data" and image %}
|
|
23
|
-
<div class="{{prefix}}--card--image--wrapper"
|
|
27
|
+
<div class="{{prefix}}--card--image--wrapper">
|
|
28
|
+
{% block card_image_multilink_or_data %}
|
|
29
|
+
<picture><img class="{{prefix}}--card--image" src="{{image}}" alt="{{title}}"></picture>
|
|
30
|
+
{% endblock %}
|
|
31
|
+
</div>
|
|
24
32
|
{% endif %}
|
|
25
33
|
{% if intro %}
|
|
26
34
|
<p class="{{prefix}}--card--intro">{{intro}}</p>
|