hr-design-system-handlebars 1.57.4 → 1.57.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ # v1.57.6 (Mon Feb 12 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - copytext bugfixes 1 [#841](https://github.com/mumprod/hr-design-system-handlebars/pull/841) ([@hanswurstsalat](https://github.com/hanswurstsalat))
6
+
7
+ #### Authors: 1
8
+
9
+ - Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
10
+
11
+ ---
12
+
13
+ # v1.57.5 (Fri Feb 09 2024)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - add text-center to header of posterteaser [#840](https://github.com/mumprod/hr-design-system-handlebars/pull/840) ([@hanswurstsalat](https://github.com/hanswurstsalat))
18
+
19
+ #### Authors: 1
20
+
21
+ - Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
22
+
23
+ ---
24
+
1
25
  # v1.57.4 (Fri Feb 09 2024)
2
26
 
3
27
  #### 🐛 Bug Fix
@@ -3305,7 +3305,7 @@ a.link:hover {
3305
3305
  border-bottom-color: var(--color-secondary-ds);
3306
3306
  }
3307
3307
  .counter-reset {
3308
- counter-reset: cnt1707491976228;
3308
+ counter-reset: cnt1707760391912;
3309
3309
  }
3310
3310
  .hyphens-auto {
3311
3311
  -webkit-hyphens: auto;
@@ -3607,7 +3607,7 @@ a.link:hover {
3607
3607
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3608
3608
  }
3609
3609
  .-ordered {
3610
- counter-increment: cnt1707491976228 1;
3610
+ counter-increment: cnt1707760391912 1;
3611
3611
  }
3612
3612
  .-ordered::before {
3613
3613
  position: absolute;
@@ -3623,7 +3623,7 @@ a.link:hover {
3623
3623
  letter-spacing: .0125em;
3624
3624
  --tw-text-opacity: 1;
3625
3625
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3626
- content: counter(cnt1707491976228);
3626
+ content: counter(cnt1707760391912);
3627
3627
  }
3628
3628
  /*! ****************************/
3629
3629
  /*! DataPolicy stuff */
@@ -1,5 +1,5 @@
1
1
  <li class="mt-3">
2
- <a class="link js-load" href="{{this.url}}" {{#with this.content.trackingData}}
2
+ <a class="link js-load ds-link" href="{{this.url}}" {{#with this.content.trackingData}}
3
3
  data-hr-click-tracking='{"settings": [{"type": "download", "secondLevelId": "{{this.secondLevelId}}", "clickLabel": "{{this.pageName}}"}]}'{{/with}}>
4
4
  {{~#with this.downloadBoxMetadata ~}}
5
5
  <span class="text-base sm480:text-lg">{{{this.title}}}</span>
@@ -1,4 +1,4 @@
1
- <figcaption class="flex items-start mx-4 mt-3 text-xs sm480:mx-0 sm480:mt-4 sm480:text-sm font-copy {{_cssClassCaption}}"
1
+ <figcaption class="flex items-start mx-4 mt-3 text-xs sm480:mx-0 sm480:mt-4 sm480:text-sm font-headingSerif {{_cssClassCaption}}"
2
2
  x-data="{
3
3
  open: false,
4
4
  truncated: true,
@@ -15,7 +15,7 @@
15
15
  {{#if this.showFullSize.isTrue}} :class="!open ? 'line-clamp-2 md:line-clamp-none' : 'line-clamp-none'" {{else}} :class="!open ? 'line-clamp-2' : 'line-clamp-none'" {{/if}}>
16
16
  {{#if this.caption}}
17
17
  {{~#unless _hideCaption~}}
18
- <span>
18
+ <span class="pr-3">
19
19
  {{this.caption}}
20
20
  </span>
21
21
  {{~/unless~}}
@@ -25,7 +25,10 @@
25
25
  </span>
26
26
  </div>
27
27
  <template x-if="truncated">
28
- <button x-cloak type="button">
28
+ <button x-cloak
29
+ type="button"
30
+ x-effect="$el.setAttribute('aria-label', open ? 'Bildunterschrift schließen' : 'Bildunterschrift öffnen');$el.setAttribute('aria-expanded', open ? 'true' : 'false')"
31
+ >
29
32
  <span x-show="!open" @click.prevent="open = true">{{~> components/base/image/icon _icon="arrow-down" _addClass="m-2 mt-4.5 sm480:mt-5.5 h-3 w-3 fill-link dark:fill-link-dark" _iconmap="icons"~}}</span>
30
33
  <span x-show="open" @click.prevent="open = false">{{~> components/base/image/icon _icon="arrow-up" _addClass="m-2 mt-4.5 sm480:mt-5.5 h-3 w-3 fill-link dark:fill-link-dark" _iconmap="icons"~}}</span>
31
34
  </button>
@@ -1,6 +1,7 @@
1
1
  {{#if this.showPortrait.isTrue }}
2
2
  {{#if this.showFullSize.isTrue }}
3
3
  {{> components/content/copytext/components/image/figure
4
+ _cssClass="clear-both"
4
5
  _type="story"
5
6
  _variant="100-copytext-portrait"
6
7
  _noAr="true"
@@ -16,6 +17,7 @@
16
17
  {{else}}
17
18
  {{#if this.showFullSize.isTrue}}
18
19
  {{> components/content/copytext/components/image/figure
20
+ _cssClass="clear-both"
19
21
  _type="story"
20
22
  _variant="100-copytext"
21
23
  _pictureAddClass="ar-16-9"
@@ -1,3 +1,3 @@
1
- <div class="relative grid flex-col col-span-12 {{#unless _isCopytext}}mx-5 {{/unless}}sm:mx-0 gap-y-6 gap-x-4 bg-highlight-1 rounded-tl-hr rounded-br-hr{{inline-switch this.teaserSize '["50"]' '[" md:col-span-6",""]'}}" >
1
+ <div class="relative grid flex-col col-span-12 {{#unless _isCopytext}}mx-5 {{/unless}}sm:mx-0 gap-y-6 gap-x-4 bg-highlight-1 dark:bg-highlight-1-dark rounded-tl-hr rounded-br-hr{{inline-switch this.teaserSize '["50"]' '[" md:col-span-6",""]'}}" >
2
2
  {{> components/podcast/podcast_player _linkTitle="true" _isSinglePage=true _type="podcastEpisodePlayerTeaser" }}
3
3
  </div>
@@ -16,7 +16,7 @@
16
16
  </figure>
17
17
  <div class="absolute flex flex-col justify-center w-full h-full bg-gradient-to-t from-black rounded-tl-hr rounded-br-hr">
18
18
  {{#>components/base/link _link=this.link _css="ds-teaser-focus flex items-center flex-col before:rounded-tl-hr before:rounded-br-hr hover:text-toplineColor"}}
19
- {{#> components/teaser/components/teaser_header}}
19
+ {{#> components/teaser/components/teaser_header _css="text-center"}}
20
20
  {{#with this.label}}
21
21
  {{#> components/label/label_group}}
22
22
  {{> components/label/label _type=this.type _text=(loca this.loca)}}
@@ -1,5 +1,5 @@
1
1
  <li class="mt-3">
2
- <a class="link js-load" href="{{this.url}}" {{#with this.content.trackingData}}
2
+ <a class="link js-load ds-link" href="{{this.url}}" {{#with this.content.trackingData}}
3
3
  data-hr-click-tracking='{"settings": [{"type": "download", "secondLevelId": "{{this.secondLevelId}}", "clickLabel": "{{this.pageName}}"}]}'{{/with}}>
4
4
  {{~#with this.downloadBoxMetadata ~}}
5
5
  <span class="text-base sm480:text-lg">{{{this.title}}}</span>
@@ -1,4 +1,4 @@
1
- <figcaption class="flex items-start mx-4 mt-3 text-xs sm480:mx-0 sm480:mt-4 sm480:text-sm font-copy {{_cssClassCaption}}"
1
+ <figcaption class="flex items-start mx-4 mt-3 text-xs sm480:mx-0 sm480:mt-4 sm480:text-sm font-headingSerif {{_cssClassCaption}}"
2
2
  x-data="{
3
3
  open: false,
4
4
  truncated: true,
@@ -15,7 +15,7 @@
15
15
  {{#if this.showFullSize.isTrue}} :class="!open ? 'line-clamp-2 md:line-clamp-none' : 'line-clamp-none'" {{else}} :class="!open ? 'line-clamp-2' : 'line-clamp-none'" {{/if}}>
16
16
  {{#if this.caption}}
17
17
  {{~#unless _hideCaption~}}
18
- <span>
18
+ <span class="pr-3">
19
19
  {{this.caption}}
20
20
  </span>
21
21
  {{~/unless~}}
@@ -25,7 +25,10 @@
25
25
  </span>
26
26
  </div>
27
27
  <template x-if="truncated">
28
- <button x-cloak type="button">
28
+ <button x-cloak
29
+ type="button"
30
+ x-effect="$el.setAttribute('aria-label', open ? 'Bildunterschrift schließen' : 'Bildunterschrift öffnen');$el.setAttribute('aria-expanded', open ? 'true' : 'false')"
31
+ >
29
32
  <span x-show="!open" @click.prevent="open = true">{{~> components/base/image/icon _icon="arrow-down" _addClass="m-2 mt-4.5 sm480:mt-5.5 h-3 w-3 fill-link dark:fill-link-dark" _iconmap="icons"~}}</span>
30
33
  <span x-show="open" @click.prevent="open = false">{{~> components/base/image/icon _icon="arrow-up" _addClass="m-2 mt-4.5 sm480:mt-5.5 h-3 w-3 fill-link dark:fill-link-dark" _iconmap="icons"~}}</span>
31
34
  </button>
@@ -1,6 +1,7 @@
1
1
  {{#if this.showPortrait.isTrue }}
2
2
  {{#if this.showFullSize.isTrue }}
3
3
  {{> components/content/copytext/components/image/figure
4
+ _cssClass="clear-both"
4
5
  _type="story"
5
6
  _variant="100-copytext-portrait"
6
7
  _noAr="true"
@@ -16,6 +17,7 @@
16
17
  {{else}}
17
18
  {{#if this.showFullSize.isTrue}}
18
19
  {{> components/content/copytext/components/image/figure
20
+ _cssClass="clear-both"
19
21
  _type="story"
20
22
  _variant="100-copytext"
21
23
  _pictureAddClass="ar-16-9"
@@ -1,3 +1,3 @@
1
- <div class="relative grid flex-col col-span-12 {{#unless _isCopytext}}mx-5 {{/unless}}sm:mx-0 gap-y-6 gap-x-4 bg-highlight-1 rounded-tl-hr rounded-br-hr{{inline-switch this.teaserSize '["50"]' '[" md:col-span-6",""]'}}" >
1
+ <div class="relative grid flex-col col-span-12 {{#unless _isCopytext}}mx-5 {{/unless}}sm:mx-0 gap-y-6 gap-x-4 bg-highlight-1 dark:bg-highlight-1-dark rounded-tl-hr rounded-br-hr{{inline-switch this.teaserSize '["50"]' '[" md:col-span-6",""]'}}" >
2
2
  {{> components/podcast/podcast_player _linkTitle="true" _isSinglePage=true _type="podcastEpisodePlayerTeaser" }}
3
3
  </div>
@@ -16,7 +16,7 @@
16
16
  </figure>
17
17
  <div class="absolute flex flex-col justify-center w-full h-full bg-gradient-to-t from-black rounded-tl-hr rounded-br-hr">
18
18
  {{#>components/base/link _link=this.link _css="ds-teaser-focus flex items-center flex-col before:rounded-tl-hr before:rounded-br-hr hover:text-toplineColor"}}
19
- {{#> components/teaser/components/teaser_header}}
19
+ {{#> components/teaser/components/teaser_header _css="text-center"}}
20
20
  {{#with this.label}}
21
21
  {{#> components/label/label_group}}
22
22
  {{> components/label/label _type=this.type _text=(loca this.loca)}}
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "repository": "https://github.com/szuelch/hr-design-system-handlebars",
9
- "version": "1.57.4",
9
+ "version": "1.57.6",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -1,5 +1,5 @@
1
1
  <li class="mt-3">
2
- <a class="link js-load" href="{{this.url}}" {{#with this.content.trackingData}}
2
+ <a class="link js-load ds-link" href="{{this.url}}" {{#with this.content.trackingData}}
3
3
  data-hr-click-tracking='{"settings": [{"type": "download", "secondLevelId": "{{this.secondLevelId}}", "clickLabel": "{{this.pageName}}"}]}'{{/with}}>
4
4
  {{~#with this.downloadBoxMetadata ~}}
5
5
  <span class="text-base sm480:text-lg">{{{this.title}}}</span>
@@ -1,4 +1,4 @@
1
- <figcaption class="flex items-start mx-4 mt-3 text-xs sm480:mx-0 sm480:mt-4 sm480:text-sm font-copy {{_cssClassCaption}}"
1
+ <figcaption class="flex items-start mx-4 mt-3 text-xs sm480:mx-0 sm480:mt-4 sm480:text-sm font-headingSerif {{_cssClassCaption}}"
2
2
  x-data="{
3
3
  open: false,
4
4
  truncated: true,
@@ -15,7 +15,7 @@
15
15
  {{#if this.showFullSize.isTrue}} :class="!open ? 'line-clamp-2 md:line-clamp-none' : 'line-clamp-none'" {{else}} :class="!open ? 'line-clamp-2' : 'line-clamp-none'" {{/if}}>
16
16
  {{#if this.caption}}
17
17
  {{~#unless _hideCaption~}}
18
- <span>
18
+ <span class="pr-3">
19
19
  {{this.caption}}
20
20
  </span>
21
21
  {{~/unless~}}
@@ -25,7 +25,10 @@
25
25
  </span>
26
26
  </div>
27
27
  <template x-if="truncated">
28
- <button x-cloak type="button">
28
+ <button x-cloak
29
+ type="button"
30
+ x-effect="$el.setAttribute('aria-label', open ? 'Bildunterschrift schließen' : 'Bildunterschrift öffnen');$el.setAttribute('aria-expanded', open ? 'true' : 'false')"
31
+ >
29
32
  <span x-show="!open" @click.prevent="open = true">{{~> components/base/image/icon _icon="arrow-down" _addClass="m-2 mt-4.5 sm480:mt-5.5 h-3 w-3 fill-link dark:fill-link-dark" _iconmap="icons"~}}</span>
30
33
  <span x-show="open" @click.prevent="open = false">{{~> components/base/image/icon _icon="arrow-up" _addClass="m-2 mt-4.5 sm480:mt-5.5 h-3 w-3 fill-link dark:fill-link-dark" _iconmap="icons"~}}</span>
31
34
  </button>
@@ -1,6 +1,7 @@
1
1
  {{#if this.showPortrait.isTrue }}
2
2
  {{#if this.showFullSize.isTrue }}
3
3
  {{> components/content/copytext/components/image/figure
4
+ _cssClass="clear-both"
4
5
  _type="story"
5
6
  _variant="100-copytext-portrait"
6
7
  _noAr="true"
@@ -16,6 +17,7 @@
16
17
  {{else}}
17
18
  {{#if this.showFullSize.isTrue}}
18
19
  {{> components/content/copytext/components/image/figure
20
+ _cssClass="clear-both"
19
21
  _type="story"
20
22
  _variant="100-copytext"
21
23
  _pictureAddClass="ar-16-9"
@@ -1,3 +1,3 @@
1
- <div class="relative grid flex-col col-span-12 {{#unless _isCopytext}}mx-5 {{/unless}}sm:mx-0 gap-y-6 gap-x-4 bg-highlight-1 rounded-tl-hr rounded-br-hr{{inline-switch this.teaserSize '["50"]' '[" md:col-span-6",""]'}}" >
1
+ <div class="relative grid flex-col col-span-12 {{#unless _isCopytext}}mx-5 {{/unless}}sm:mx-0 gap-y-6 gap-x-4 bg-highlight-1 dark:bg-highlight-1-dark rounded-tl-hr rounded-br-hr{{inline-switch this.teaserSize '["50"]' '[" md:col-span-6",""]'}}" >
2
2
  {{> components/podcast/podcast_player _linkTitle="true" _isSinglePage=true _type="podcastEpisodePlayerTeaser" }}
3
3
  </div>
@@ -16,7 +16,7 @@
16
16
  </figure>
17
17
  <div class="absolute flex flex-col justify-center w-full h-full bg-gradient-to-t from-black rounded-tl-hr rounded-br-hr">
18
18
  {{#>components/base/link _link=this.link _css="ds-teaser-focus flex items-center flex-col before:rounded-tl-hr before:rounded-br-hr hover:text-toplineColor"}}
19
- {{#> components/teaser/components/teaser_header}}
19
+ {{#> components/teaser/components/teaser_header _css="text-center"}}
20
20
  {{#with this.label}}
21
21
  {{#> components/label/label_group}}
22
22
  {{> components/label/label _type=this.type _text=(loca this.loca)}}