@ilo-org/twig 0.2.3 → 0.2.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @ilo-org/twig
2
2
 
3
+ ## 0.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 48e7a4ada: - Hero: Breadcrumb add in
8
+ - Cards: Video icon for feature and external link option
9
+ - 2bfdfd356: Fixes to Hero, Cards components
10
+ - Updated dependencies [48e7a4ada]
11
+ - Updated dependencies [2bfdfd356]
12
+ - @ilo-org/icons@0.1.9
13
+ - @ilo-org/styles@0.1.9
14
+ - @ilo-org/themes@0.1.9
15
+ - @ilo-org/utils@0.0.5
16
+
3
17
  ## 0.2.3
4
18
 
5
19
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilo-org/twig",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
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.8",
25
- "@ilo-org/styles": "0.1.8",
26
- "@ilo-org/themes": "0.1.8",
27
- "@ilo-org/utils": "0.0.4",
24
+ "@ilo-org/icons": "0.1.9",
25
+ "@ilo-org/styles": "0.1.9",
26
+ "@ilo-org/themes": "0.1.9",
27
+ "@ilo-org/utils": "0.0.5",
28
28
  "@wingsuit-designsystem/preset-scss": "^1.2.3",
29
29
  "video.js": "^7.19.2"
30
30
  },
@@ -1,7 +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 %}{% if link %} {{prefix}}--card--action{% endif %}{% if type %} {{prefix}}--card--{{type}}{% endif %}{% if size %} {{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 %}{% if isvideo %} {{prefix}}--card--isvideo{% endif %}{% if linklist is defined %} {{prefix}}--card--linklist{% endif %}">
5
5
  {% if type == "" %}
6
6
  {% set type = variant %}
7
7
  {% endif %}
@@ -67,7 +67,7 @@
67
67
  {% include "@components/linklist/linklist.twig" with {
68
68
  headline: linklist.headline,
69
69
  linkgroup: linklist.linkgroup,
70
- prefix: prefix,
70
+ prefix: prefix
71
71
  } only %}
72
72
  {% endif %}
73
73
  {% if dataset %}
@@ -92,7 +92,7 @@
92
92
  {% include "@components/link/link.twig" with {
93
93
  url: item.url,
94
94
  label: item.label,
95
- prefix: prefix,
95
+ prefix: prefix
96
96
  } %} <span>&nbsp;</span>
97
97
  {% endfor %}
98
98
  </div>
@@ -8,6 +8,11 @@ card:
8
8
  label: Title
9
9
  description: Title field
10
10
  preview: Lorem ipsum
11
+ isvideo:
12
+ type: string
13
+ label: Is a Video
14
+ description: Whether the card should display a video icon
15
+ preview: False
11
16
  intro:
12
17
  type: string
13
18
  label: Intro
@@ -65,6 +70,11 @@ card:
65
70
  label: Link List
66
71
  description: Multi-link list
67
72
  preview:
73
+ externallink:
74
+ type: object
75
+ label: External Link
76
+ description: External link
77
+ preview:
68
78
  dataset:
69
79
  type: object
70
80
  label: Data set
@@ -176,6 +186,7 @@ card:
176
186
  label: Feature Card
177
187
  description: The Feature Card
178
188
  fields:
189
+ isvideo: true
179
190
  title: "Vertical info card descriptive headline text"
180
191
  eyebrow: Eyebrow title
181
192
  date:
@@ -183,6 +194,16 @@ card:
183
194
  unix: 1670389200
184
195
  link: "https://www.google.com/search?q=graphic"
185
196
  image: "https://placekitten.com/412/232"
197
+ linklist:
198
+ headline: ""
199
+ linkgroup:
200
+ - headline: ""
201
+ links:
202
+ - label: Link One
203
+ url: 'http://www.google.com'
204
+ # externallink:
205
+ # label: Link One
206
+ # url: 'https://www.google.com'
186
207
  detail:
187
208
  label: Detail Card
188
209
  description: The Detail Card
@@ -2,7 +2,13 @@
2
2
  HERO COMPONENT
3
3
  #}
4
4
  <div class="{{prefix}}--hero {{prefix}}--hero--{{theme}} {{prefix}}--hero--{{types}} {% if image %}{{prefix}}--hero--image{% endif %}">
5
-
5
+ {% if breadcrumb is defined %}
6
+ {% include "@components/breadcrumb/breadcrumb.twig" with {
7
+ home: breadcrumb.home,
8
+ links: breadcrumb.links,
9
+ prefix: prefix,
10
+ } only %}
11
+ {% endif %}
6
12
  {% if not image %}
7
13
  {% else %}
8
14
  {% include "@components/image/image.twig" with {
@@ -3,6 +3,24 @@ hero:
3
3
  label: Hero
4
4
  description: The Hero presents an image banner.
5
5
  fields:
6
+ breadcrumb:
7
+ label: breadcrumb
8
+ type: object
9
+ preview:
10
+ home:
11
+ label: "Home"
12
+ url: "/"
13
+ links:
14
+ - label: "Link One"
15
+ url: "/linkone"
16
+ - label: "Link Two"
17
+ url: "/linktwo"
18
+ - label: "Link Three"
19
+ url: "/linkthree"
20
+ - label: "Link Four"
21
+ url: "/linkfour"
22
+ - label: "Link Five"
23
+ url: "/linkfive"
6
24
  image:
7
25
  type: object
8
26
  preview: