@ilo-org/twig 1.0.5 → 1.1.1

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.
Files changed (86) hide show
  1. package/dist/components/accordion/accordion.twig +1 -1
  2. package/dist/components/accordion/accordion.wingsuit.yml +3 -6
  3. package/dist/components/button/button.twig +2 -2
  4. package/dist/components/button/button.wingsuit.yml +6 -15
  5. package/dist/components/callout/callout.twig +2 -2
  6. package/dist/components/callout/callout.wingsuit.yml +4 -10
  7. package/dist/components/card/card.wingsuit.yml +4 -7
  8. package/dist/components/card_detail/card_detail.twig +1 -1
  9. package/dist/components/card_detail/card_detail.wingsuit.yml +2 -5
  10. package/dist/components/card_feature/card_feature.twig +1 -1
  11. package/dist/components/card_feature/card_feature.wingsuit.yml +2 -5
  12. package/dist/components/card_multilink/card_multilink.twig +1 -1
  13. package/dist/components/card_multilink/card_multilink.wingsuit.yml +2 -5
  14. package/dist/components/card_promo/card_promo.twig +1 -1
  15. package/dist/components/card_promo/card_promo.wingsuit.yml +2 -5
  16. package/dist/components/cardgroup/cardgroup.twig +1 -1
  17. package/dist/components/cardgroup/cardgroup.wingsuit.yml +2 -5
  18. package/dist/components/contextmenu/contextmenu.twig +1 -1
  19. package/dist/components/contextmenu/contextmenu.wingsuit.yml +1 -1
  20. package/dist/components/fileupload/fileupload.twig +1 -1
  21. package/dist/components/fileupload/fileupload.wingsuit.yml +1 -4
  22. package/dist/components/footer/footer.wingsuit.yml +3 -3
  23. package/dist/components/hero/hero.twig +1 -1
  24. package/dist/components/hero/hero.wingsuit.yml +8 -8
  25. package/dist/components/herocard/herocard.twig +1 -1
  26. package/dist/components/herocard/herocard.wingsuit.yml +3 -6
  27. package/dist/components/icon/icon.behavior.js +1 -1
  28. package/dist/components/image/image.wingsuit.yml +2 -5
  29. package/dist/components/linklist/linklist.twig +1 -1
  30. package/dist/components/linklist/linklist.wingsuit.yml +3 -3
  31. package/dist/components/localnav/localnav.wingsuit.yml +1 -1
  32. package/dist/components/navigation/navigation.wingsuit.yml +1 -1
  33. package/dist/components/readmore/readmore.twig +1 -1
  34. package/dist/components/readmore/readmore.wingsuit.yml +2 -5
  35. package/dist/components/socialmedia/socialmedia.css +1 -1
  36. package/dist/components/socialmedia/socialmedia.twig +1 -1
  37. package/dist/components/socialmedia/socialmedia.wingsuit.yml +12 -3
  38. package/dist/components/table/table.twig +1 -1
  39. package/dist/components/table/table.wingsuit.yml +4 -10
  40. package/dist/components/tag/tag.wingsuit.yml +2 -5
  41. package/dist/components/tags/tags.wingsuit.yml +2 -5
  42. package/dist/components/tooltip/tooltip.twig +2 -2
  43. package/dist/components/tooltip/tooltip.wingsuit.yml +2 -5
  44. package/dist/global/styles.css +1 -1
  45. package/package.json +4 -4
  46. package/src/patterns/components/accordion/accordion.twig +1 -1
  47. package/src/patterns/components/accordion/accordion.wingsuit.yml +3 -6
  48. package/src/patterns/components/button/button.twig +2 -2
  49. package/src/patterns/components/button/button.wingsuit.yml +6 -15
  50. package/src/patterns/components/callout/callout.twig +2 -2
  51. package/src/patterns/components/callout/callout.wingsuit.yml +4 -10
  52. package/src/patterns/components/card/card.wingsuit.yml +4 -7
  53. package/src/patterns/components/card_detail/card_detail.twig +1 -1
  54. package/src/patterns/components/card_detail/card_detail.wingsuit.yml +2 -5
  55. package/src/patterns/components/card_feature/card_feature.twig +1 -1
  56. package/src/patterns/components/card_feature/card_feature.wingsuit.yml +2 -5
  57. package/src/patterns/components/card_multilink/card_multilink.twig +1 -1
  58. package/src/patterns/components/card_multilink/card_multilink.wingsuit.yml +2 -5
  59. package/src/patterns/components/card_promo/card_promo.twig +1 -1
  60. package/src/patterns/components/card_promo/card_promo.wingsuit.yml +2 -5
  61. package/src/patterns/components/cardgroup/cardgroup.twig +1 -1
  62. package/src/patterns/components/cardgroup/cardgroup.wingsuit.yml +2 -5
  63. package/src/patterns/components/contextmenu/contextmenu.twig +1 -1
  64. package/src/patterns/components/contextmenu/contextmenu.wingsuit.yml +1 -1
  65. package/src/patterns/components/fileupload/fileupload.twig +1 -1
  66. package/src/patterns/components/fileupload/fileupload.wingsuit.yml +1 -4
  67. package/src/patterns/components/footer/footer.wingsuit.yml +3 -3
  68. package/src/patterns/components/hero/hero.twig +1 -1
  69. package/src/patterns/components/hero/hero.wingsuit.yml +8 -8
  70. package/src/patterns/components/herocard/herocard.twig +1 -1
  71. package/src/patterns/components/herocard/herocard.wingsuit.yml +3 -6
  72. package/src/patterns/components/image/image.wingsuit.yml +2 -5
  73. package/src/patterns/components/linklist/linklist.twig +1 -1
  74. package/src/patterns/components/linklist/linklist.wingsuit.yml +3 -3
  75. package/src/patterns/components/localnav/localnav.wingsuit.yml +1 -1
  76. package/src/patterns/components/navigation/navigation.wingsuit.yml +1 -1
  77. package/src/patterns/components/readmore/readmore.twig +1 -1
  78. package/src/patterns/components/readmore/readmore.wingsuit.yml +2 -5
  79. package/src/patterns/components/socialmedia/socialmedia.twig +1 -1
  80. package/src/patterns/components/socialmedia/socialmedia.wingsuit.yml +12 -3
  81. package/src/patterns/components/table/table.twig +1 -1
  82. package/src/patterns/components/table/table.wingsuit.yml +4 -10
  83. package/src/patterns/components/tags/tag.wingsuit.yml +2 -5
  84. package/src/patterns/components/tags/tags.wingsuit.yml +2 -5
  85. package/src/patterns/components/tooltip/tooltip.twig +2 -2
  86. package/src/patterns/components/tooltip/tooltip.wingsuit.yml +2 -5
@@ -1,6 +1,6 @@
1
1
  {# accordion.twig #}
2
2
 
3
- <ul class="ilo--accordion" data-loadcomponent="Accordion" {% if allowMultipleExpanded %} data-multipleexpanded {% endif %}>
3
+ <ul class="ilo--accordion" data-loadcomponent="Accordion"{{ allowMultipleExpanded|boolval ? ' data-multipleexpanded' }}>
4
4
  {% for item in items %}
5
5
  {% include "@components/accordion/accordion-item.twig" with {
6
6
  label: item.label,
@@ -33,13 +33,10 @@ accordion:
33
33
  large: Large
34
34
  preview: small
35
35
  allowMultipleExpanded:
36
- type: select
36
+ type: boolean
37
37
  label: Allow Multiple Expanded
38
- description: Allow mutiple accordion items to be expandable at once.
39
- options:
40
- "true": "true"
41
- "false": "false"
42
- preview: "true"
38
+ description: Allow multiple accordion items to be expandable at once.
39
+ preview: true
43
40
  required: false
44
41
  variants:
45
42
  default:
@@ -2,7 +2,7 @@
2
2
  BUTTON COMPONENT
3
3
  #}
4
4
  {% if url %}
5
- <a class="ilo--button ilo--button--{{size}} ilo--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" href="{{url}}" {% if target is defined and target != 'false' %} target="{{target}}" rel="noopener noreferrer" {% endif %} {% if disabled is defined and disabled == 'true' %} disabled {% endif %}>
5
+ <a class="ilo--button ilo--button--{{size}} ilo--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly|boolval %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" href="{{url}}" {% if target %} target="{{target}}" rel="noopener noreferrer"{% endif %}{{ disabled|boolval ? ' disabled' }}>
6
6
  <span class="link__label">{{label}}</span>
7
7
  {% block button_icon %}
8
8
  {% if icon %}
@@ -16,7 +16,7 @@
16
16
  {% endblock %}
17
17
  </a>
18
18
  {% else %}
19
- <button class="ilo--button ilo--button--{{size}} ilo--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" {% if kind %} type="{{kind}}" {% endif %} {% if opensmodal %} aria-haspopup="dialog" {% endif %} {% if disabled is defined and disabled == 'true' %} disabled {% endif %} {% if name %} name="{{name}}" {% endif %}>
19
+ <button class="ilo--button ilo--button--{{size}} ilo--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly|boolval %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" {% if kind %} type="{{kind}}" {% endif %} {% if opensmodal|boolval %} aria-haspopup="dialog" {% endif %}{{ disabled|boolval ? ' disabled' }}{% if name %} name="{{name}}" {% endif %}>
20
20
  <span class="button__label">{{label}}</span>
21
21
  {{ block("button_icon") }}
22
22
  </button>
@@ -66,14 +66,11 @@ button:
66
66
  icononly: Icon Only
67
67
  preview: "primary"
68
68
  disabled:
69
- type: select
69
+ type: boolean
70
70
  label: Disabled
71
71
  description: The disabled state of the button.
72
72
  required: false
73
- options:
74
- "true": "true"
75
- "false": "false"
76
- preview: "false"
73
+ preview: false
77
74
  kind:
78
75
  type: select
79
76
  label: Kind
@@ -94,21 +91,15 @@ button:
94
91
  preview: left
95
92
  required: false
96
93
  icononly:
97
- type: select
94
+ type: boolean
98
95
  label: Icon Only
99
96
  description: Is this an icon-only button?
100
- options:
101
- "true": "true"
102
- "false": "false"
103
- preview: "false"
97
+ preview: false
104
98
  required: false
105
99
  opensmodal:
106
- type: select
100
+ type: boolean
107
101
  label: Opens Modal
108
102
  description: Does this button trigger open a modal?
109
- options:
110
- "true": "true"
111
- "false": "false"
112
- preview: "false"
103
+ preview: false
113
104
  required: false
114
105
  visibility: storybook
@@ -1,14 +1,14 @@
1
1
  {#
2
2
  CALLOUT COMPONENT
3
3
  #}
4
- <div class="ilo--callout ilo--callout--{{alert}} {% if isCollapsible == "true" and isOpen == "true" %} ilo--callout--open {% endif %} {% if isCollapsible == "true" %} ilo--callout--collapse {% endif %}" data-loadcomponent="Callout">
4
+ <div class="ilo--callout ilo--callout--{{alert}} {% if isCollapsible|boolval and isOpen|boolval %} ilo--callout--open {% endif %} {% if isCollapsible|boolval %} ilo--callout--collapse {% endif %}" data-loadcomponent="Callout">
5
5
  <div class="ilo--callout--sidebar">
6
6
  <span class="ilo--callout--icon icon icon--{{alert}}"></span>
7
7
  </div>
8
8
  <div class="ilo--callout--content">
9
9
  <div class="ilo--callout--header">
10
10
  <h5 class="ilo--callout--title">{{ title }}</h5>
11
- {% if isCollapsible == "true" %}
11
+ {% if isCollapsible|boolval %}
12
12
  <button class="ilo--callout--toggle" type="button" data-open="{{ toggleOpenLabel }}" data-closed="{{ toggleClosedLabel }}">
13
13
  <span class="ilo--callout--button-text">
14
14
  {% if isOpen %}
@@ -52,21 +52,15 @@ callout:
52
52
  warning: Warning
53
53
  preview: "info"
54
54
  isCollapsible:
55
- type: select
55
+ type: boolean
56
56
  label: Is Collapsible?
57
57
  description: Whether or not the callout is collapsible
58
- required: "true"
59
- options:
60
- "true": "true"
61
- "false": "false"
58
+ required: true
62
59
  preview: false
63
60
  isOpen:
64
- type: select
61
+ type: boolean
65
62
  label: Is Open
66
63
  description: Whether or not a collapsible callout is open on page load. If callout is not collapsible then the callout will be open always.
67
64
  required: false
68
- options:
69
- "true": "true"
70
- "false": "false"
71
- preview: "true"
65
+ preview: true
72
66
  visibility: storybook
@@ -150,14 +150,11 @@ card:
150
150
  two: two
151
151
  preview: "one"
152
152
  cornercut:
153
- type: select
154
- label: cornercut
155
- description: Allows user to set the cornercut of the card. This is only used by the `Promo Card`.
153
+ type: boolean
154
+ label: Corner cut
155
+ description: Allows user to display a corner cut on the card. This is only used by the `Promo Card`.
156
156
  required: false
157
- preview: "true"
158
- options:
159
- "true": "true"
160
- "false": "false"
157
+ preview: true
161
158
  size:
162
159
  type: select
163
160
  label: Size
@@ -2,7 +2,7 @@
2
2
  DETAIL CARD COMPONENT
3
3
  #}
4
4
 
5
- <div class="ilo--card ilo--card__type__detail ilo--card__action ilo--card__size__{{size}} {% if isvideo %} ilo--card__isvideo {% endif %}">
5
+ <div class="ilo--card ilo--card__type__detail ilo--card__action ilo--card__size__{{size}} {% if isvideo|boolval %} ilo--card__isvideo {% endif %}">
6
6
  <a class="ilo--card--link" href="{{link}}" title="{{title}}">
7
7
  <span class="ilo--card--link--text">{{title}}</span>
8
8
  </a>
@@ -62,13 +62,10 @@ detailcard:
62
62
  wide: wide
63
63
  fluid: fluid
64
64
  isvideo:
65
- type: select
65
+ type: boolean
66
66
  label: Is a Video
67
67
  description: Whether the card should display a video icon (for Feature card)
68
- preview: "false"
69
- options:
70
- "true": "true"
71
- "false": "false"
68
+ preview: false
72
69
  titleLevel:
73
70
  type: select
74
71
  label: Title Element
@@ -2,7 +2,7 @@
2
2
  FEATURE CARD COMPONENT
3
3
  #}
4
4
 
5
- <div class="ilo--card ilo--card__type__feature ilo--card__action ilo--card__theme__{{theme}} ilo--card__size__{{ size }} {% if isvideo %} ilo--card__isvideo {% endif %} {% if cta %} ilo--card__linklist {% endif %}">
5
+ <div class="ilo--card ilo--card__type__feature ilo--card__action ilo--card__theme__{{theme}} ilo--card__size__{{ size }} {% if isvideo|boolval %} ilo--card__isvideo {% endif %} {% if cta %} ilo--card__linklist {% endif %}">
6
6
  <a class="ilo--card--link" href="{{link}}" title="{{title}}">
7
7
  <span class="ilo--card--link--text">{{title}}</span>
8
8
  </a>
@@ -52,13 +52,10 @@ featurecard:
52
52
  preview: Can digital technology be an equality machine?
53
53
  settings:
54
54
  isvideo:
55
- type: select
55
+ type: boolean
56
56
  label: Is a Video
57
57
  description: Whether the card should display a video icon (for Feature card)
58
- preview: "false"
59
- options:
60
- "true": "true"
61
- "false": "false"
58
+ preview: false
62
59
  size:
63
60
  type: select
64
61
  label: size
@@ -1,6 +1,6 @@
1
1
  {# card_multilink.twig #}
2
2
 
3
- <div class="ilo--card ilo--card__type__multilink {% if link|length > 0 %} ilo--card__action {% endif %} ilo--card__size__{{size}} {% if isvideo %} ilo--card__isvideo {% endif %} {% if linklist %} ilo--card__linklist {% endif %} {% if size == "wide" or size == "fluid" %} ilo--card__align__{{alignment}} {% endif %}">
3
+ <div class="ilo--card ilo--card__type__multilink {% if link|length > 0 %} ilo--card__action {% endif %} ilo--card__size__{{size}} {% if isvideo|boolval %} ilo--card__isvideo {% endif %} {% if linklist %} ilo--card__linklist {% endif %} {% if size == "wide" or size == "fluid" %} ilo--card__align__{{alignment}} {% endif %}">
4
4
  {% if link|length > 0 %}
5
5
  <a class="ilo--card--link" href="{{link}}" title="{{title}}">
6
6
  <span class="ilo--card--link--text">{{title}}</span>
@@ -71,13 +71,10 @@ multilinkcard:
71
71
  left: Left
72
72
  right: Right
73
73
  isvideo:
74
- type: select
74
+ type: boolean
75
75
  label: is a Video
76
76
  description: Whether the card should display a video icon (for Feature card)
77
- preview: "false"
78
- options:
79
- "true": "true"
80
- "false": "false"
77
+ preview: false
81
78
  size:
82
79
  type: select
83
80
  label: Size
@@ -3,7 +3,7 @@
3
3
  #}
4
4
 
5
5
  <div class="ilo--card--wrapper ilo--card--wrapper__type__promo ilo--card--wrapper__type__promo__size__{{ size }}">
6
- <div class="ilo--card ilo--card__type__promo ilo--card__size__{{ size }} ilo--card__action ilo--card__theme__{{theme}} {% if cornercut %}ilo--card__cornercut{% endif %}">
6
+ <div class="ilo--card ilo--card__type__promo ilo--card__size__{{ size }} ilo--card__action ilo--card__theme__{{theme}} {% if cornercut|boolval %}ilo--card__cornercut{% endif %}">
7
7
  <a class="ilo--card--link" href="{{link}}" title="{{title}}">
8
8
  <span class="ilo--card--link--text">{{title}}</span>
9
9
  </a>
@@ -41,14 +41,11 @@ promocard:
41
41
  preview: Can digital technology be an equality machine?
42
42
  settings:
43
43
  cornercut:
44
- type: select
44
+ type: boolean
45
45
  label: cornercut
46
46
  description: Sets the cornercut of the card. If not set, the card will appear as `square`.
47
47
  required: false
48
- preview: "true"
49
- options:
50
- "true": "true"
51
- "false": "false"
48
+ preview: true
52
49
  size:
53
50
  type: select
54
51
  label: Size
@@ -5,7 +5,7 @@
5
5
  {% set cardcount = "three" %}
6
6
  {% endif %}
7
7
 
8
- <div class="ilo--cardgroup ilo--cardgroup__count__{{cardcount}} {% if collapsed %} ilo--cardgroup__collapsed {% endif %}">
8
+ <div class="ilo--cardgroup ilo--cardgroup__count__{{cardcount}} {% if collapsed|boolval %} ilo--cardgroup__collapsed {% endif %}">
9
9
  <div class="ilo--cardgroup--inner">
10
10
  {% for card in group %}
11
11
  <div class="ilo--cardgroup--card">
@@ -6,14 +6,11 @@ cardgroup:
6
6
  visibility: storybook
7
7
  settings:
8
8
  collapsed:
9
- type: select
9
+ type: boolean
10
10
  label: collapsed
11
11
  description: Optionally collapses margins between the cards.
12
12
  required: false
13
- preview: "false"
14
- options:
15
- "true": "true"
16
- "false": "false"
13
+ preview: false
17
14
  cardcount:
18
15
  type: select
19
16
  label: collapsed
@@ -3,7 +3,7 @@
3
3
  #}
4
4
  <ol class="ilo--context-menu">
5
5
  {% for link in links %}
6
- <li class="ilo--context-menu--item{% if link.endsection == 'true' %} endsection{% endif %}">
6
+ <li class="ilo--context-menu--item{{ link.endsection|boolval ? ' endsection'}}">
7
7
  <a href="{{link.url}}" class="ilo--context-menu--link">
8
8
  <span class="ilo--context-menu--label">{{link.label}}</span>
9
9
  </a>
@@ -14,7 +14,7 @@ contextmenu:
14
14
  url: "http://www.google.com"
15
15
  - label: Link Two
16
16
  url: "http://www.google.com"
17
- - endsection: "true"
17
+ - endsection: true
18
18
  label: Link Three Ends A Section
19
19
  url: "http://www.google.com"
20
20
  - label: Link Four
@@ -14,7 +14,7 @@
14
14
  <div class="{{ fileUploadClasses|join(' ') }}">
15
15
  <label class="{{ inputClass }}">
16
16
  {{ placeholder }}
17
- <input id="{{ id|default(name) }}" name="{{ name }}" {% if disabled %} disabled {% endif %} {% if multiple %} multiple {% endif %} placeholder="{{ placeholder }}" {% if required %} required {% endif %} type="file" data-label="{{ placeholder }}" aria-describedby="{{ ariaDescribedBy }}" {% if accept %} accept="{{ accept }}" {% endif %} data-loadcomponent="FileUpload" data-prefix="ilo"/>
17
+ <input id="{{ id|default(name) }}" name="{{ name }}" {% if disabled %} disabled {% endif %} {% if multiple|boolval %} multiple {% endif %} placeholder="{{ placeholder }}" {% if required %} required {% endif %} type="file" data-label="{{ placeholder }}" aria-describedby="{{ ariaDescribedBy }}" {% if accept %} accept="{{ accept }}" {% endif %} data-loadcomponent="FileUpload" data-prefix="ilo"/>
18
18
  </label>
19
19
  </div>
20
20
  {% endblock %}
@@ -71,10 +71,7 @@ fileupload:
71
71
  type: boolean
72
72
  label: Multiple
73
73
  description: If the user can select multiple files.
74
- preview: "false"
75
- options:
76
- "true": "true"
77
- "false": "false"
74
+ preview: false
78
75
  disabled:
79
76
  type: boolean
80
77
  label: Disabled
@@ -50,9 +50,9 @@ footer:
50
50
  preview:
51
51
  headline: "Stay informed"
52
52
  icons:
53
- - icon: "twitter"
54
- label: "Twitter"
55
- url: "https://twitter.com/#!/ilo"
53
+ - icon: "x"
54
+ label: "X"
55
+ url: "https://x.com/ilo"
56
56
  - icon: "facebook"
57
57
  label: "Facebook"
58
58
  url: "https://www.facebook.com/ilo.org"
@@ -55,7 +55,7 @@
55
55
  {% include '@components/tooltip/tooltip.twig' with {
56
56
  prefix: prefix,
57
57
  label: caption.label,
58
- icon: "true",
58
+ icon: true,
59
59
  theme: "dark",
60
60
  icontheme: "dark"
61
61
  } only %}
@@ -45,16 +45,16 @@ hero:
45
45
  title: "Child labour"
46
46
  theme: "dark"
47
47
  background: "solid"
48
- cornercut: "true"
48
+ cornercut: true
49
49
  eyebrow: ILO Topics
50
50
  socialmedia:
51
51
  icons:
52
52
  - label: "Facebook"
53
53
  url: "https://www.facebook.com/ilo.org"
54
54
  icon: "facebook"
55
- - label: "Twitter"
56
- url: "https://www.twitter.com/ilo.org"
57
- icon: "twitter"
55
+ - label: "X"
56
+ url: "https://www.x.com/ilo.org"
57
+ icon: "x"
58
58
  - label: "Linkedin"
59
59
  url: "https://www.linkedin.com/company/international-labour-organization-ilo"
60
60
  icon: "linkedin"
@@ -164,16 +164,16 @@ hero:
164
164
  datecopy: "11 February 2021"
165
165
  theme: "light"
166
166
  background: "solid"
167
- cornercut: "true"
167
+ cornercut: true
168
168
  eyebrow: Women in management
169
169
  socialmedia:
170
170
  icons:
171
171
  - label: "Facebook"
172
172
  url: "https://www.facebook.com/ilo.org"
173
173
  icon: "facebook"
174
- - label: "Twitter"
175
- url: "https://www.twitter.com/ilo.org"
176
- icon: "twitter"
174
+ - label: "X"
175
+ url: "https://www.x.com/ilo.org"
176
+ icon: "x"
177
177
  - label: "Linkedin"
178
178
  url: "https://www.linkedin.com/company/international-labour-organization-ilo"
179
179
  icon: "linkedin"
@@ -1,7 +1,7 @@
1
1
  {#
2
2
  HEROCARD COMPONENT
3
3
  #}
4
- <div class="ilo--hero-card ilo--hero-card__theme__{{ theme }} ilo--hero-card__background__{{ background }} {% if cornercut == "true" %} ilo--hero-card__cornercut {% endif %}">
4
+ <div class="ilo--hero-card ilo--hero-card__theme__{{ theme }} ilo--hero-card__background__{{ background }} {% if cornercut|boolval %} ilo--hero-card__cornercut {% endif %}">
5
5
  {% if eyebrow %}
6
6
  <p class="{{ prefix }}--hero-card--eyebrow">{{ eyebrow }}</p>
7
7
  {% endif %}
@@ -23,13 +23,10 @@ herocard:
23
23
  transparent: transparent
24
24
  preview: "solid"
25
25
  cornercut:
26
- type: select
27
- label: Cornercut
26
+ type: boolean
27
+ label: Corner cut
28
28
  description: Whether the card show have its right or left corner cut
29
- options:
30
- "true": "true"
31
- "false": "false"
32
- preview: "true"
29
+ preview: true
33
30
  fields:
34
31
  url:
35
32
  type: string