hr-design-system-handlebars 1.7.2 → 1.8.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ # v1.8.1 (Fri Mar 10 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Bugfix/dpe 2182 [#581](https://github.com/mumprod/hr-design-system-handlebars/pull/581) ([@szuelch](https://github.com/szuelch))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@szuelch](https://github.com/szuelch)
10
+
11
+ ---
12
+
13
+ # v1.8.0 (Thu Mar 09 2023)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - Bugfix/dpe 2182 [#580](https://github.com/mumprod/hr-design-system-handlebars/pull/580) ([@szuelch](https://github.com/szuelch))
18
+
19
+ #### Authors: 1
20
+
21
+ - [@szuelch](https://github.com/szuelch)
22
+
23
+ ---
24
+
1
25
  # v1.7.2 (Mon Mar 06 2023)
2
26
 
3
27
  #### 🐛 Bug Fix
@@ -2667,7 +2667,7 @@ video {
2667
2667
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
2668
2668
  }
2669
2669
  .counter-reset {
2670
- counter-reset: cnt1678094754050;
2670
+ counter-reset: cnt1678437637567;
2671
2671
  }
2672
2672
  .line-clamp-4 {
2673
2673
  overflow: hidden;
@@ -2901,7 +2901,7 @@ video {
2901
2901
  --tw-ring-color: rgba(255, 255, 255, 0.5);
2902
2902
  }
2903
2903
  .-ordered {
2904
- counter-increment: cnt1678094754050 1;
2904
+ counter-increment: cnt1678437637567 1;
2905
2905
  }
2906
2906
  .-ordered::before {
2907
2907
  position: absolute;
@@ -2917,7 +2917,7 @@ video {
2917
2917
  letter-spacing: .0125em;
2918
2918
  --tw-text-opacity: 1;
2919
2919
  color: rgba(0, 0, 0, var(--tw-text-opacity));
2920
- content: counter(cnt1678094754050);
2920
+ content: counter(cnt1678437637567);
2921
2921
  }
2922
2922
  /*! ****************************/
2923
2923
  /*! text-shadow */
@@ -1,4 +1,4 @@
1
- <div x-show="avStart" x-cloak id="{{this.ardPlayerConfig.playerId}}" class="ar-16-9 h-full{{#if _isTeaser}} z-20{{/if}} js-load {{if _cypressHook _cypressHook 'js-media-element'}} js-video-livestream" data-hr-mediaplayer-loader='{{json this.ardPlayerJsonConfig}}'>
1
+ <div x-show="avStart" x-cloak id="{{this.ardPlayerConfig.playerId}}" class="ar-16-9 h-full{{#if _isTeaser}} z-20{{/if}} js-load {{if _cypressHook _cypressHook 'js-media-element'}} js-video-livestream cy-mediaplayer" data-hr-mediaplayer-loader='{{json this.ardPlayerJsonConfig}}'>
2
2
  </div>
3
3
  {{#if _isTeaser}}
4
4
  <div class="relative {{_aspectRatio}}" x-show="!avStart" >
@@ -12,7 +12,7 @@
12
12
  {{/with}}
13
13
  {{> components/button/button_round
14
14
  _isButton="true"
15
- _addClass='absolute bottom-0 right-0 fill-white hover:text-white ds-focus rounded-full js-mediaplayer__button'
15
+ _addClass='absolute bottom-0 right-0 fill-white hover:text-white ds-focus rounded-full js-mediaplayer__button cy-mediaplayer-trigger'
16
16
  _buttonColor=(if _isLivestream ' text-orange-spicyCarrot hover:fill-orange-spicyCarrot' ' text-media-button hover:fill-media-button')
17
17
  _teaserType=_teaserType
18
18
  _teaserSize=_teaserSize
@@ -1,4 +1,4 @@
1
- <article class="mx-5 sm:mx-0 col-span-12 grid bg-highlight-1 rounded-tl-hr rounded-br-hr{{~inline-switch this.teaserSize '["25","33","50"]' '[" md:col-span-3"," md:col-span-4"," md:col-span-6",""]'}} ">
1
+ <article class="cy-teaser-cluster{{if this.isOrdered '--ordered'}} mx-5 sm:mx-0 col-span-12 grid bg-highlight-1 rounded-tl-hr rounded-br-hr{{~inline-switch this.teaserSize '["25","33","50"]' '[" md:col-span-3"," md:col-span-4"," md:col-span-6",""]'}} ">
2
2
  <div class="">
3
3
  <h2 class="flex items-center px-5 py-5 text-clusterTeaserHeadline">
4
4
  {{#if this.teaserLogo}}
@@ -18,12 +18,12 @@
18
18
  {{/if~}}
19
19
  {{~#with this.clusterTeaserItems}}
20
20
  {{~#if ../this.isOrdered}}
21
- <ol class="mx-5 list-none divide-y divide-white divide-solid counter-reset border-t border-white{{~#if ../this.showFirstImageOrGenreImage}}{{~inline-switch ../this.realTeaserSize '["100"]' '[" md:-pt-5 md:mx-0 md:pr-5 md:border-none md:basis-1/2-gap-6 lg:basis-2/3-gap-6"]'}}{{/if~}}">
21
+ <ol class="cy-teaser-cluster__list mx-5 list-none divide-y divide-white divide-solid counter-reset border-t border-white{{~#if ../this.showFirstImageOrGenreImage}}{{~inline-switch ../this.realTeaserSize '["100"]' '[" md:-pt-5 md:mx-0 md:pr-5 md:border-none md:basis-1/2-gap-6 lg:basis-2/3-gap-6"]'}}{{/if~}}">
22
22
  {{else}}
23
- <ul class="mx-5 divide-y divide-white divide-solid border-t border-white {{~#if ../this.showFirstImageOrGenreImage}}{{~inline-switch ../this.realTeaserSize '["100"]' '[" md:-pt-5 md:mx-0 md:pr-5 md:border-none md:basis-1/2-gap-6 lg:basis-2/3-gap-6"]'}}{{/if~}}">
23
+ <ul class="cy-teaser-cluster__list mx-5 divide-y divide-white divide-solid border-t border-white {{~#if ../this.showFirstImageOrGenreImage}}{{~inline-switch ../this.realTeaserSize '["100"]' '[" md:-pt-5 md:mx-0 md:pr-5 md:border-none md:basis-1/2-gap-6 lg:basis-2/3-gap-6"]'}}{{/if~}}">
24
24
  {{/if}}
25
25
  {{~#each this~}}
26
- <li class="{{~#if ../../this.isOrdered}}-ordered{{/if}} py-3{{#unless ../../this.overviewLink.link}} last-of-type:pb-3{{/unless~}}{{~#if ../../this.showFirstImageOrGenreImage}}{{~inline-switch ../../this.realTeaserSize '["100"]' '[" md:first-of-type:pt-0"]'}}{{/if~}}">
26
+ <li class="cy-teaser-cluster__item {{#if ../../this.isOrdered}}-ordered{{/if}} py-3{{#unless ../../this.overviewLink.link}} last-of-type:pb-3{{/unless~}}{{~#if ../../this.showFirstImageOrGenreImage}}{{~inline-switch ../../this.realTeaserSize '["100"]' '[" md:first-of-type:pt-0"]'}}{{/if~}}">
27
27
  {{> components/teaser/cluster/teaser_cluster_item _size=../this.realTeaserSize _ordered=../../this.isOrdered }}
28
28
  </li>
29
29
  {{~/each}}
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  {{#> components/teaser/components/teaser_header _css=(if this.isMobile1to1 "" "px-5 sm:px-0")}}
6
- {{#decorator 'components/base/link' _css="ds-teaser-focus hover:text-toplineColor" }}
6
+ {{#decorator 'components/base/link' _css="cy-teaser-link ds-teaser-focus hover:text-toplineColor" }}
7
7
  {{#with this.label}}
8
8
  {{#> components/label/label_group}}
9
9
  {{> components/label/label _type=this.type _text=(loca this.loca)}}
@@ -1,3 +1,3 @@
1
- <span class='block mt-0.5 font-title font-bold {{> components/teaser/components/teaser_title_classes _size=_size _teaserType=_teaserType _isMobile1to1=_isMobile1to1 _firstItem=_firstItem}}{{#if _css}} {{_css}}{{/if}}'>
1
+ <span class='cy-teaser-title block mt-0.5 font-title font-bold {{> components/teaser/components/teaser_title_classes _size=_size _teaserType=_teaserType _isMobile1to1=_isMobile1to1 _firstItem=_firstItem}}{{#if _css}} {{_css}}{{/if}}'>
2
2
  {{~_text~}}
3
3
  </span>
@@ -5,7 +5,7 @@
5
5
  {{/if}}
6
6
  >
7
7
  {{#if this.teaserImage}}
8
- <figure class="relative {{~inline-switch this.realTeaserSize '["hero","100","50"]' '[" basis-full w-full md:basis-2/3-gap-6 ar-16-9"," ar-1-1 md:ar-16-9 basis-2/5 w-2/5 md:basis-1/3-gap-6"," ar-1-1 md:ar-16-9 basis-2/5 w-2/5 md:basis-1/2-gap-6"]'~}}"
8
+ <figure class="{{> components/teaser/utilities/teaser_image_cypress_hook_classes}}relative {{~inline-switch this.realTeaserSize '["hero","100","50"]' '[" basis-full w-full md:basis-2/3-gap-6 ar-16-9"," ar-1-1 md:ar-16-9 basis-2/5 w-2/5 md:basis-1/3-gap-6"," ar-1-1 md:ar-16-9 basis-2/5 w-2/5 md:basis-1/2-gap-6"]'~}}"
9
9
  {{#if this.isMobile1to1}}
10
10
  :class="{'ar-16-9 basis-full w-full' : avStart, 'ar-1-1 basis-2/5 w-2/5': !avStart}"
11
11
  {{/if}}
@@ -8,7 +8,7 @@
8
8
  {{/if}}
9
9
  >
10
10
  {{#if this.teaserImage}}
11
- <figure class="relative
11
+ <figure class="{{> components/teaser/utilities/teaser_image_cypress_hook_classes}}relative
12
12
  {{~#if this.isMobile1to1}} basis-2/5 w-2/5 ar-1-1 md:basis-full md:w-full md:ar-16-9{{else}} ar-16-9 w-full{{/if~}}"
13
13
  {{~#if this.isMobile1to1}} :class="{'ar-16-9 w-full basis-full': avStart,'ar-1-1 basis-2/5 w-2/5':!avStart}"{{/if}} >
14
14
  {{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _teaserType=this.teaserType _aspectRatio=(if this.isMobile1to1 'ar-1-1 md:ar-16-9' (inline-switch this.teaserSize '["25"]' '["ar-1-1 md:ar-16-9", "ar-16-9"]')) }}
@@ -0,0 +1,5 @@
1
+ {{~if this.teaserLead.avDocument.isVideo 'cy-video '~}}
2
+ {{~if this.teaserLead.avDocument.isAudio 'cy-audio '~}}
3
+ {{~if this.teaserLead.avDocument.isPodcast 'cy-podcast '~}}
4
+ {{~if this.teaserLead.avDocument.isLivestream 'cy-video-livestream '~}}
5
+ {{~if this.teaserLead.avDocument.isAudioEventLivestream 'cy-audio-livestream '~}}
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.7.2",
9
+ "version": "1.8.1",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "start-storybook -p 6006 public",
@@ -1,4 +1,4 @@
1
- <div x-show="avStart" x-cloak id="{{this.ardPlayerConfig.playerId}}" class="ar-16-9 h-full{{#if _isTeaser}} z-20{{/if}} js-load {{if _cypressHook _cypressHook 'js-media-element'}} js-video-livestream" data-hr-mediaplayer-loader='{{json this.ardPlayerJsonConfig}}'>
1
+ <div x-show="avStart" x-cloak id="{{this.ardPlayerConfig.playerId}}" class="ar-16-9 h-full{{#if _isTeaser}} z-20{{/if}} js-load {{if _cypressHook _cypressHook 'js-media-element'}} js-video-livestream cy-mediaplayer" data-hr-mediaplayer-loader='{{json this.ardPlayerJsonConfig}}'>
2
2
  </div>
3
3
  {{#if _isTeaser}}
4
4
  <div class="relative {{_aspectRatio}}" x-show="!avStart" >
@@ -12,7 +12,7 @@
12
12
  {{/with}}
13
13
  {{> components/button/button_round
14
14
  _isButton="true"
15
- _addClass='absolute bottom-0 right-0 fill-white hover:text-white ds-focus rounded-full js-mediaplayer__button'
15
+ _addClass='absolute bottom-0 right-0 fill-white hover:text-white ds-focus rounded-full js-mediaplayer__button cy-mediaplayer-trigger'
16
16
  _buttonColor=(if _isLivestream ' text-orange-spicyCarrot hover:fill-orange-spicyCarrot' ' text-media-button hover:fill-media-button')
17
17
  _teaserType=_teaserType
18
18
  _teaserSize=_teaserSize
@@ -1,4 +1,4 @@
1
- <article class="mx-5 sm:mx-0 col-span-12 grid bg-highlight-1 rounded-tl-hr rounded-br-hr{{~inline-switch this.teaserSize '["25","33","50"]' '[" md:col-span-3"," md:col-span-4"," md:col-span-6",""]'}} ">
1
+ <article class="cy-teaser-cluster{{if this.isOrdered '--ordered'}} mx-5 sm:mx-0 col-span-12 grid bg-highlight-1 rounded-tl-hr rounded-br-hr{{~inline-switch this.teaserSize '["25","33","50"]' '[" md:col-span-3"," md:col-span-4"," md:col-span-6",""]'}} ">
2
2
  <div class="">
3
3
  <h2 class="flex items-center px-5 py-5 text-clusterTeaserHeadline">
4
4
  {{#if this.teaserLogo}}
@@ -18,12 +18,12 @@
18
18
  {{/if~}}
19
19
  {{~#with this.clusterTeaserItems}}
20
20
  {{~#if ../this.isOrdered}}
21
- <ol class="mx-5 list-none divide-y divide-white divide-solid counter-reset border-t border-white{{~#if ../this.showFirstImageOrGenreImage}}{{~inline-switch ../this.realTeaserSize '["100"]' '[" md:-pt-5 md:mx-0 md:pr-5 md:border-none md:basis-1/2-gap-6 lg:basis-2/3-gap-6"]'}}{{/if~}}">
21
+ <ol class="cy-teaser-cluster__list mx-5 list-none divide-y divide-white divide-solid counter-reset border-t border-white{{~#if ../this.showFirstImageOrGenreImage}}{{~inline-switch ../this.realTeaserSize '["100"]' '[" md:-pt-5 md:mx-0 md:pr-5 md:border-none md:basis-1/2-gap-6 lg:basis-2/3-gap-6"]'}}{{/if~}}">
22
22
  {{else}}
23
- <ul class="mx-5 divide-y divide-white divide-solid border-t border-white {{~#if ../this.showFirstImageOrGenreImage}}{{~inline-switch ../this.realTeaserSize '["100"]' '[" md:-pt-5 md:mx-0 md:pr-5 md:border-none md:basis-1/2-gap-6 lg:basis-2/3-gap-6"]'}}{{/if~}}">
23
+ <ul class="cy-teaser-cluster__list mx-5 divide-y divide-white divide-solid border-t border-white {{~#if ../this.showFirstImageOrGenreImage}}{{~inline-switch ../this.realTeaserSize '["100"]' '[" md:-pt-5 md:mx-0 md:pr-5 md:border-none md:basis-1/2-gap-6 lg:basis-2/3-gap-6"]'}}{{/if~}}">
24
24
  {{/if}}
25
25
  {{~#each this~}}
26
- <li class="{{~#if ../../this.isOrdered}}-ordered{{/if}} py-3{{#unless ../../this.overviewLink.link}} last-of-type:pb-3{{/unless~}}{{~#if ../../this.showFirstImageOrGenreImage}}{{~inline-switch ../../this.realTeaserSize '["100"]' '[" md:first-of-type:pt-0"]'}}{{/if~}}">
26
+ <li class="cy-teaser-cluster__item {{#if ../../this.isOrdered}}-ordered{{/if}} py-3{{#unless ../../this.overviewLink.link}} last-of-type:pb-3{{/unless~}}{{~#if ../../this.showFirstImageOrGenreImage}}{{~inline-switch ../../this.realTeaserSize '["100"]' '[" md:first-of-type:pt-0"]'}}{{/if~}}">
27
27
  {{> components/teaser/cluster/teaser_cluster_item _size=../this.realTeaserSize _ordered=../../this.isOrdered }}
28
28
  </li>
29
29
  {{~/each}}
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  {{#> components/teaser/components/teaser_header _css=(if this.isMobile1to1 "" "px-5 sm:px-0")}}
6
- {{#decorator 'components/base/link' _css="ds-teaser-focus hover:text-toplineColor" }}
6
+ {{#decorator 'components/base/link' _css="cy-teaser-link ds-teaser-focus hover:text-toplineColor" }}
7
7
  {{#with this.label}}
8
8
  {{#> components/label/label_group}}
9
9
  {{> components/label/label _type=this.type _text=(loca this.loca)}}
@@ -1,3 +1,3 @@
1
- <span class='block mt-0.5 font-title font-bold {{> components/teaser/components/teaser_title_classes _size=_size _teaserType=_teaserType _isMobile1to1=_isMobile1to1 _firstItem=_firstItem}}{{#if _css}} {{_css}}{{/if}}'>
1
+ <span class='cy-teaser-title block mt-0.5 font-title font-bold {{> components/teaser/components/teaser_title_classes _size=_size _teaserType=_teaserType _isMobile1to1=_isMobile1to1 _firstItem=_firstItem}}{{#if _css}} {{_css}}{{/if}}'>
2
2
  {{~_text~}}
3
3
  </span>
@@ -5,7 +5,7 @@
5
5
  {{/if}}
6
6
  >
7
7
  {{#if this.teaserImage}}
8
- <figure class="relative {{~inline-switch this.realTeaserSize '["hero","100","50"]' '[" basis-full w-full md:basis-2/3-gap-6 ar-16-9"," ar-1-1 md:ar-16-9 basis-2/5 w-2/5 md:basis-1/3-gap-6"," ar-1-1 md:ar-16-9 basis-2/5 w-2/5 md:basis-1/2-gap-6"]'~}}"
8
+ <figure class="{{> components/teaser/utilities/teaser_image_cypress_hook_classes}}relative {{~inline-switch this.realTeaserSize '["hero","100","50"]' '[" basis-full w-full md:basis-2/3-gap-6 ar-16-9"," ar-1-1 md:ar-16-9 basis-2/5 w-2/5 md:basis-1/3-gap-6"," ar-1-1 md:ar-16-9 basis-2/5 w-2/5 md:basis-1/2-gap-6"]'~}}"
9
9
  {{#if this.isMobile1to1}}
10
10
  :class="{'ar-16-9 basis-full w-full' : avStart, 'ar-1-1 basis-2/5 w-2/5': !avStart}"
11
11
  {{/if}}
@@ -8,7 +8,7 @@
8
8
  {{/if}}
9
9
  >
10
10
  {{#if this.teaserImage}}
11
- <figure class="relative
11
+ <figure class="{{> components/teaser/utilities/teaser_image_cypress_hook_classes}}relative
12
12
  {{~#if this.isMobile1to1}} basis-2/5 w-2/5 ar-1-1 md:basis-full md:w-full md:ar-16-9{{else}} ar-16-9 w-full{{/if~}}"
13
13
  {{~#if this.isMobile1to1}} :class="{'ar-16-9 w-full basis-full': avStart,'ar-1-1 basis-2/5 w-2/5':!avStart}"{{/if}} >
14
14
  {{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _teaserType=this.teaserType _aspectRatio=(if this.isMobile1to1 'ar-1-1 md:ar-16-9' (inline-switch this.teaserSize '["25"]' '["ar-1-1 md:ar-16-9", "ar-16-9"]')) }}
@@ -0,0 +1,5 @@
1
+ {{~if this.teaserLead.avDocument.isVideo 'cy-video '~}}
2
+ {{~if this.teaserLead.avDocument.isAudio 'cy-audio '~}}
3
+ {{~if this.teaserLead.avDocument.isPodcast 'cy-podcast '~}}
4
+ {{~if this.teaserLead.avDocument.isLivestream 'cy-video-livestream '~}}
5
+ {{~if this.teaserLead.avDocument.isAudioEventLivestream 'cy-audio-livestream '~}}