@rijkshuisstijl-community/components-twig 1.2.0 → 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 (2) hide show
  1. package/dist/Image.twig +5 -0
  2. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ {%- if src is defined -%}{%- set attributes = attributes.setAttribute('src', src) -%}{%- endif -%}
2
+ {%- if alt is defined -%}{%- set attributes = attributes.setAttribute('alt', alt) -%}{%- else -%}{%- set attributes = attributes.setAttribute('alt', '') -%}{%- endif -%}
3
+ {%- if width is defined -%}{%- set attributes = attributes.setAttribute('width', width) -%}{%- endif -%}
4
+ {%- if height is defined -%}{%- set attributes = attributes.setAttribute('height', height) -%}{%- endif -%}
5
+ <img {{ attributes.addClass(['utrecht-img', 'utrecht-img--photo']) }} />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rijkshuisstijl-community/components-twig",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "author": "Community for NL Design System",
5
5
  "description": "Twig component library for the Rijkshuisstijl Community repository, based on the NL Design System architecture",
6
6
  "license": "EUPL-1.2",