@ilo-org/twig 1.1.4 → 1.1.6

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 (64) hide show
  1. package/dist/components/accordion/accordion.behavior.js +1 -1
  2. package/dist/components/accordion/accordion.css +1 -1
  3. package/dist/components/breadcrumb/breadcrumb.behavior.js +1 -1
  4. package/dist/components/breadcrumb/breadcrumb.css +1 -1
  5. package/dist/components/button/button.css +1 -1
  6. package/dist/components/button/button.twig +2 -2
  7. package/dist/components/callout/callout.behavior.js +1 -1
  8. package/dist/components/callout/callout.css +1 -1
  9. package/dist/components/callout/callout.twig +8 -8
  10. package/dist/components/card/card.css +1 -1
  11. package/dist/components/checkbox/checkbox.css +1 -1
  12. package/dist/components/contextmenu/contextmenu.css +1 -1
  13. package/dist/components/datacard/datacard.css +1 -1
  14. package/dist/components/dropdown/dropdown.css +1 -1
  15. package/dist/components/featurecard/featurecard.css +1 -1
  16. package/dist/components/fieldset/fieldset.css +1 -1
  17. package/dist/components/file-upload/file-upload.css +1 -1
  18. package/dist/components/fileupload/fileupload.behavior.js +1 -1
  19. package/dist/components/footer/footer.css +1 -1
  20. package/dist/components/formcontrol/formcontrol.css +1 -1
  21. package/dist/components/heading/heading.css +1 -1
  22. package/dist/components/herocard/herocard.css +1 -1
  23. package/dist/components/icon/icon.behavior.js +1 -1
  24. package/dist/components/icon/icon.twig +1 -1
  25. package/dist/components/input/input.css +1 -1
  26. package/dist/components/linklist/linklist.behavior.js +1 -1
  27. package/dist/components/linklist/linklist.css +1 -1
  28. package/dist/components/list/list.css +1 -1
  29. package/dist/components/loading/loading.behavior.js +1 -1
  30. package/dist/components/loading/loading.css +1 -1
  31. package/dist/components/logo/logo.css +1 -1
  32. package/dist/components/modal/modal.behavior.js +1 -1
  33. package/dist/components/navigation/navigation.behavior.js +1 -1
  34. package/dist/components/navigation/navigation.css +1 -1
  35. package/dist/components/notification/notification.behavior.js +1 -1
  36. package/dist/components/pagination/pagination.css +1 -1
  37. package/dist/components/profile/profile.css +1 -1
  38. package/dist/components/readmore/readmore.behavior.js +1 -1
  39. package/dist/components/readmore/readmore.css +1 -1
  40. package/dist/components/richtext/richtext.css +1 -1
  41. package/dist/components/search/search.behavior.js +1 -1
  42. package/dist/components/searchfield/searchfield.css +1 -1
  43. package/dist/components/socialmedia/socialmedia.css +1 -1
  44. package/dist/components/statcard/statcard.css +1 -1
  45. package/dist/components/table/table.behavior.js +1 -1
  46. package/dist/components/table/table.css +1 -1
  47. package/dist/components/tableofcontents/tableofcontents.behavior.js +1 -1
  48. package/dist/components/tableofcontents/tableofcontents.css +1 -1
  49. package/dist/components/tabs/tabs.behavior.js +1 -1
  50. package/dist/components/tabs/tabs.css +1 -1
  51. package/dist/components/tag/tag.behavior.js +1 -1
  52. package/dist/components/tag/tag.css +1 -1
  53. package/dist/components/textarea/textarea.css +1 -1
  54. package/dist/components/textinput/textinput.css +1 -1
  55. package/dist/components/tooltip/tooltip.behavior.js +1 -1
  56. package/dist/components/tooltip/tooltip.css +1 -1
  57. package/dist/components/video/video.behavior.js +5 -5
  58. package/dist/global/styles.css +2 -2
  59. package/package.json +3 -3
  60. package/src/patterns/components/button/button.twig +2 -2
  61. package/src/patterns/components/callout/callout.twig +8 -8
  62. package/src/patterns/components/icon/icon.twig +1 -1
  63. package/dist/components/icon/icon.css +0 -1
  64. package/src/tokens/exports/_font-families.scss +0 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilo-org/twig",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Twig components for the ILO's Design System",
6
6
  "publishConfig": {
@@ -51,8 +51,8 @@
51
51
  "@ilo-org/brand-assets": "0.5.3",
52
52
  "@ilo-org/fonts": "0.2.2",
53
53
  "@ilo-org/icons": "0.4.0",
54
- "@ilo-org/themes": "0.9.0",
55
- "@ilo-org/styles": "1.1.0",
54
+ "@ilo-org/styles": "1.2.0",
55
+ "@ilo-org/themes": "0.9.1",
56
56
  "@ilo-org/utils": "0.1.1"
57
57
  },
58
58
  "devDependencies": {
@@ -2,7 +2,7 @@
2
2
  BUTTON COMPONENT
3
3
  #}
4
4
  {% if url %}
5
- <a class="{{prefix}}--button ilo--button--{{size}} {{prefix}}--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' }}>
5
+ <a class="{{prefix}}--button ilo--button__{{size}} {{prefix}}--button__{{type}}{% if icon %} {{prefix}}--button--icon {{prefix}}--button--icon--position__{{iconPosition}}{% endif %}{% if icononly|boolval %} {{prefix}}--button--icon--only{% endif %}{% if className %} {{className}}{% endif %}" href="{{url}}" {% if target is defined and target != 'false' %} 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="{{prefix}}--button ilo--button--{{size}} {{prefix}}--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 %}>
19
+ <button class="{{prefix}}--button ilo--button__{{size}} {{prefix}}--button__{{type}}{% if icon %} {{prefix}}--button--icon {{prefix}}--button--icon--position__{{iconPosition}}{% endif %}{% if icononly|boolval %} {{prefix}}--button--icon--only{% endif %}{% if className %} {{className}}{% endif %}" {% if kind %} type="{{kind}}" {% endif %} {% if opensmodal %} aria-haspopup="dialog" {% endif %} {{ disabled|boolval ? ' disabled' }}>
20
20
  <span class="button__label">{{label}}</span>
21
21
  {{ block("button_icon") }}
22
22
  </button>
@@ -1,13 +1,13 @@
1
1
  {#
2
2
  CALLOUT COMPONENT
3
3
  #}
4
- <div class="{{prefix}}--callout {{prefix}}--callout--{{alert}} {% if isCollapsible|boolval and isOpen|boolval %} {{prefix}}--callout--open {% endif %} {% if isCollapsible|boolval %} {{prefix}}--callout--collapse {% endif %}" data-loadcomponent="Callout">
5
- <div class="{{prefix}}--callout--sidebar">
6
- <span class="{{prefix}}--callout--icon icon icon--{{alert}}"></span>
4
+ <div class="{{prefix}}--callout {{prefix}}--callout__{{alert}} {% if isCollapsible|boolval and isOpen|boolval %} {{prefix}}--callout--open {% endif %} {% if isCollapsible|boolval %} {{prefix}}--callout--collapse {% endif %}" data-loadcomponent="Callout">
5
+ <div class="{{prefix}}--callout__sidebar">
6
+ <span class="{{prefix}}--callout--icon icon icon__{{alert}}"></span>
7
7
  </div>
8
- <div class="{{prefix}}--callout--content">
9
- <div class="{{prefix}}--callout--header">
10
- <h5 class="{{prefix}}--callout--title">{{ title }}</h5>
8
+ <div class="{{prefix}}--callout__content">
9
+ <div class="{{prefix}}--callout__header">
10
+ <h5 class="{{prefix}}--callout__title">{{ title }}</h5>
11
11
  {% if isCollapsible|boolval %}
12
12
  <button class="{{prefix}}--callout--toggle" type="button" data-open="{{ toggleOpenLabel }}" data-closed="{{ toggleClosedLabel }}">
13
13
  <span class="{{prefix}}--callout--button-text">
@@ -21,9 +21,9 @@
21
21
  </button>
22
22
  {% endif %}
23
23
  </div>
24
- {{ content }}
24
+ <p class="{{prefix}}--callout__description">{{ content }}</p>
25
25
  {% if button %}
26
- <div class="{{prefix}}--callout--footer">
26
+ <div class="{{prefix}}--callout__footer">
27
27
  {% include '@components/button/button.twig' with {
28
28
  label: button.label,
29
29
  url: button.url,
@@ -1,4 +1,4 @@
1
1
  {#
2
2
  ICON COMPONENT
3
3
  #}
4
- <svg class="{{prefix}}--icon" data-name="{{name}}" data-size="{{size}}" data-color="{{color}}" data-loadcomponent="Icon"></svg>
4
+ <svg width="24" height="24" class="{{prefix}}--icon" data-name="{{name}}" data-size="{{size}}" data-color="{{color}}" data-loadcomponent="Icon"></svg>
@@ -1 +0,0 @@
1
- .ilo--icon:not([data-js-processed=true]){height:24px;width:24px}
@@ -1,6 +0,0 @@
1
- @use "@ilo-org/themes/build/scss/tokens" as *;
2
-
3
- :export {
4
- Display: $fonts-display;
5
- Copy: $fonts-copy;
6
- }