@ilo-org/twig 0.2.7 → 0.2.8

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,21 @@
1
1
  # @ilo-org/twig
2
2
 
3
+ ## 0.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 62c3c624e: Bugfixes in multiple components
8
+ - 1b29018f0: Adds better React Storybook experience
9
+ - 43c2b0026: Cornercut changes to make more consistent across sizes and breakpoints for hero and cards
10
+ - Updated dependencies [62c3c624e]
11
+ - Updated dependencies [1b29018f0]
12
+ - Updated dependencies [43c2b0026]
13
+ - @ilo-org/fonts@0.0.5
14
+ - @ilo-org/icons@0.1.13
15
+ - @ilo-org/styles@0.1.13
16
+ - @ilo-org/themes@0.1.13
17
+ - @ilo-org/utils@0.0.9
18
+
3
19
  ## 0.2.7
4
20
 
5
21
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilo-org/twig",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Twig components for the ILO's Design System",
6
6
  "main": "",
@@ -20,11 +20,11 @@
20
20
  "components"
21
21
  ],
22
22
  "dependencies": {
23
- "@ilo-org/fonts": "0.0.4",
24
- "@ilo-org/icons": "0.1.12",
25
- "@ilo-org/styles": "0.1.12",
26
- "@ilo-org/themes": "0.1.12",
27
- "@ilo-org/utils": "0.0.8",
23
+ "@ilo-org/fonts": "0.0.5",
24
+ "@ilo-org/icons": "0.1.13",
25
+ "@ilo-org/styles": "0.1.13",
26
+ "@ilo-org/themes": "0.1.13",
27
+ "@ilo-org/utils": "0.0.9",
28
28
  "@wingsuit-designsystem/preset-scss": "^1.2.3",
29
29
  "video.js": "^7.19.2"
30
30
  },
@@ -2,7 +2,6 @@
2
2
  BREADCRUMB COMPONENT
3
3
  #}
4
4
  {% set lastlink = links|last %}
5
-
6
5
  <nav class="{{prefix}}--breadcrumb{% if className %} {{className}}{% endif %}" data-prefix="{{prefix}}" data-loadcomponent="Breadcrumb">
7
6
  <ol class="{{prefix}}--breadcrumb--items">
8
7
  <li class="{{prefix}}--breadcrumb--item home">
@@ -21,6 +21,7 @@
21
21
  alignment: herocard.alignment,
22
22
  eyebrow: herocard.eyebrow,
23
23
  datecopy: herocard.datecopy,
24
+ hasbackground: hasbackground,
24
25
  intro: herocard.intro,
25
26
  prefix: prefix,
26
27
  socials: herocard.socials,
@@ -68,6 +68,14 @@ hero:
68
68
  options:
69
69
  dark: Dark
70
70
  light: Light
71
+ hasbackground:
72
+ type: select
73
+ label: Has Background
74
+ description: does the hero card have a background? (Defaults to true, only applied to Home Hero)
75
+ options:
76
+ true: true
77
+ false: 'false'
78
+ preview: true
71
79
  types:
72
80
  type: select
73
81
  label: Types
@@ -1,7 +1,7 @@
1
1
  {#
2
2
  HEROCARD COMPONENT
3
3
  #}
4
- <div class="{{prefix}}--hero-card {{prefix}}--hero-card--{{alignment}} {{prefix}}--hero-card--{{theme}} {{prefix}}--hero-card--{{types}}">
4
+ <div class="{{prefix}}--hero-card {{prefix}}--hero-card--{{alignment}} {{prefix}}--hero-card--{{theme}} {{prefix}}--hero-card--{{types}}{% if not hasbackground or hasbackground == 'false' %} {{prefix}}--hero-card--nobackground{% endif %}">
5
5
  {% if eyebrow %}
6
6
  <p class="{{ prefix }}--hero-card--eyebrow">{{ eyebrow }}</p>
7
7
  {% endif %}
@@ -28,4 +28,4 @@
28
28
  </li>
29
29
  {% endfor %}
30
30
  </ul>
31
- </div>
31
+ </div>
@@ -45,4 +45,12 @@ herocard:
45
45
  center: 'center'
46
46
  right: 'right'
47
47
  preview: "center"
48
+ hasbackground:
49
+ type: select
50
+ label: Has Background
51
+ description: does the hero card have a background? (Defaults to true, only applied to Home Hero)
52
+ options:
53
+ true: true
54
+ false: 'false'
55
+ preview: true
48
56
  visibility: storybook
@@ -3,7 +3,7 @@
3
3
  #}
4
4
  <figure class="{{prefix}}--image" data-prefix="{{prefix}}">
5
5
  <div class="image {{prefix}}--image--wrapper">
6
- <picture class="{{prefix}}--image--img">
6
+ <picture class="{{prefix}}--image--img" {% if credit and ishero and ishero != 'false' %}title="{{credit}}"{% endif %}>
7
7
  {% for img in url|reverse %}
8
8
  {% if loop.last == false %}
9
9
  <source srcset="{{img.src}}" media="(min-width: {{img.breakpoint}}px)">
@@ -11,10 +11,12 @@
11
11
  {% endfor %}
12
12
  <img src="{{url|reverse|last.src}}" alt="{{alt}}">
13
13
  </picture>
14
- {% if credit %}
15
- <span class="{{prefix}}--credit">
16
- <span class="{{prefix}}--credit--label">{{credit}}</span>
17
- </span>
14
+ {% if not ishero or ishero =='false' %}
15
+ {% if credit %}
16
+ <span class="{{prefix}}--credit">
17
+ <span class="{{prefix}}--credit--label">{{credit}}</span>
18
+ </span>
19
+ {% endif %}
18
20
  {% endif %}
19
21
  </div>
20
22
  {% if caption %}
@@ -34,4 +34,14 @@ image:
34
34
  src: 'https://place-hold.it/1200x900?text=LargeBreakpointImage'
35
35
  - breakpoint: 1440
36
36
  src: 'https://place-hold.it/1600x1200?text=LargestBreakpointImage'
37
+ settings:
38
+ ishero:
39
+ type: select
40
+ label: Is Hero
41
+ description: Is this image in a hero? If true, and credit exists, will display credit in a title attribute
42
+ preview: false
43
+ required: false
44
+ options:
45
+ True: true
46
+ False: 'false'
37
47
  visibility: storybook
@@ -305,6 +305,10 @@ export default class Navigation {
305
305
  false
306
306
  );
307
307
 
308
+ if (window.innerWidth >= 1024) {
309
+ this.body.addEventListener(EVENTS.CLICK, (ev) => this.handleSearchButtonClickOff(ev), false);
310
+ }
311
+
308
312
  return this;
309
313
  }
310
314
 
@@ -323,6 +327,8 @@ export default class Navigation {
323
327
  false
324
328
  );
325
329
 
330
+ this.body.removeEventListener(EVENTS.CLICK, (ev) => this.handleSearchButtonClickOff(ev), false);
331
+
326
332
  return this;
327
333
  }
328
334