@ilo-org/twig 1.2.5 → 1.3.0

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 (54) hide show
  1. package/dist/components/button/button.component.yml +1 -1
  2. package/dist/components/button/button.wingsuit.yml +1 -1
  3. package/dist/components/card_data/card_data.component.yml +3 -1
  4. package/dist/components/card_data/card_data.twig +2 -1
  5. package/dist/components/card_data/card_data.wingsuit.yml +3 -1
  6. package/dist/components/icon/icon.behavior.js +641 -461
  7. package/dist/components/icon/icon.component.yml +2 -2
  8. package/dist/components/icon/icon.wingsuit.yml +2 -2
  9. package/dist/components/modal/modal.component.yml +3 -1
  10. package/dist/components/modal/modal.wingsuit.yml +3 -1
  11. package/dist/components/richtext/richtext.component.yml +1 -1
  12. package/dist/components/richtext/richtext.wingsuit.yml +1 -1
  13. package/dist/components/socialmedia/socialmedia.twig +2 -2
  14. package/dist/components/tabs/tabs.component.yml +2 -1
  15. package/dist/components/tabs/tabs.wingsuit.yml +2 -1
  16. package/dist/styles/components/accordion.css +1 -1
  17. package/dist/styles/components/blockquote.css +0 -0
  18. package/dist/styles/components/breadcrumb.css +1 -1
  19. package/dist/styles/components/callout.css +1 -1
  20. package/dist/styles/components/card.css +1 -1
  21. package/dist/styles/components/checkbox.css +1 -1
  22. package/dist/styles/components/contextmenu.css +1 -1
  23. package/dist/styles/components/credit.css +1 -1
  24. package/dist/styles/components/datepicker.css +1 -1
  25. package/dist/styles/components/detailcard.css +1 -1
  26. package/dist/styles/components/dropdown.css +1 -1
  27. package/dist/styles/components/featurecard.css +1 -1
  28. package/dist/styles/components/fieldset.css +1 -1
  29. package/dist/styles/components/footer.css +1 -1
  30. package/dist/styles/components/formcontrol.css +1 -1
  31. package/dist/styles/components/image.css +1 -1
  32. package/dist/styles/components/linklist.css +1 -1
  33. package/dist/styles/components/list.css +1 -1
  34. package/dist/styles/components/navigation.css +1 -1
  35. package/dist/styles/components/notification.css +1 -1
  36. package/dist/styles/components/pagination.css +1 -1
  37. package/dist/styles/components/profile.css +1 -1
  38. package/dist/styles/components/readmore.css +1 -1
  39. package/dist/styles/components/richtext.css +1 -1
  40. package/dist/styles/components/searchfield.css +1 -1
  41. package/dist/styles/components/socialmedia.css +1 -1
  42. package/dist/styles/components/table.css +1 -1
  43. package/dist/styles/components/tableofcontents.css +1 -1
  44. package/dist/styles/components/tabs.css +1 -1
  45. package/dist/styles/components/tag.css +1 -1
  46. package/dist/styles/components/tooltip.css +1 -1
  47. package/dist/styles/components/video.css +1 -1
  48. package/dist/styles/global.css +1 -1
  49. package/dist/styles/global.css.map +1 -1
  50. package/dist/styles/index.css +2 -2
  51. package/dist/styles/index.css.map +1 -1
  52. package/dist/styles/monorepo.css +2 -2
  53. package/dist/styles/monorepo.css.map +1 -1
  54. package/package.json +4 -3
@@ -33,7 +33,7 @@ button:
33
33
  label: Icon
34
34
  description: Optional icon to include in button. See the `Icon` component for a full list of arguments
35
35
  preview:
36
- name: "add"
36
+ name: "plus"
37
37
  size: 24
38
38
  required: false
39
39
  className:
@@ -33,7 +33,7 @@ button:
33
33
  label: Icon
34
34
  description: Optional icon to include in button. See the `Icon` component for a full list of arguments
35
35
  preview:
36
- name: "add"
36
+ name: "plus"
37
37
  size: 24
38
38
  required: false
39
39
  className:
@@ -8,7 +8,7 @@ datacard:
8
8
  dataset:
9
9
  type: object
10
10
  label: Dataset object
11
- description: Array of Content (label, copy), Files object (optional headline, array of items with label and url) and Links object (optional headline, array of items with label and url)
11
+ description: Array of Content (label, copy), Files object (optional headline, array of items with label, url and target) and Links object (optional headline, array of items with label and url)
12
12
  preview:
13
13
  content:
14
14
  items:
@@ -21,8 +21,10 @@ datacard:
21
21
  items:
22
22
  - label: PDF 3.2 MB
23
23
  url: "https://www.ilo.org"
24
+ target: "_blank"
24
25
  - label: EPUB 5.8 MB
25
26
  url: "https://www.ilo.org"
27
+ target: "_parent"
26
28
  - label: MOBI 2.4 MB
27
29
  url: "https://www.ilo.org"
28
30
  cta:
@@ -55,7 +55,8 @@
55
55
  size: "small",
56
56
  url: item.url,
57
57
  label: item.label,
58
- prefix: prefix
58
+ prefix: prefix,
59
+ target: item.target|default('_self')
59
60
  } only %}
60
61
  {% endfor %}
61
62
  </div>
@@ -8,7 +8,7 @@ datacard:
8
8
  dataset:
9
9
  type: object
10
10
  label: Dataset object
11
- description: Array of Content (label, copy), Files object (optional headline, array of items with label and url) and Links object (optional headline, array of items with label and url)
11
+ description: Array of Content (label, copy), Files object (optional headline, array of items with label, url and target) and Links object (optional headline, array of items with label and url)
12
12
  preview:
13
13
  content:
14
14
  items:
@@ -21,8 +21,10 @@ datacard:
21
21
  items:
22
22
  - label: PDF 3.2 MB
23
23
  url: "https://www.ilo.org"
24
+ target: "_blank"
24
25
  - label: EPUB 5.8 MB
25
26
  url: "https://www.ilo.org"
27
+ target: "_parent"
26
28
  - label: MOBI 2.4 MB
27
29
  url: "https://www.ilo.org"
28
30
  cta: