hr-design-system-handlebars 0.56.14 → 0.57.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 (48) hide show
  1. package/.storybook/preview-head.html +2 -1
  2. package/CHANGELOG.md +26 -0
  3. package/dist/assets/index.css +85 -7
  4. package/dist/views/components/teaser/cluster/teaser_cluster_byline.hbs +35 -0
  5. package/dist/views/components/teaser/cluster/teaser_cluster_item.hbs +12 -41
  6. package/dist/views/components/teaser/cluster/teaser_cluster_list.hbs +16 -4
  7. package/dist/views/components/teaser/components/teaser_heading.hbs +1 -1
  8. package/dist/views/components/teaser/components/teaser_title.hbs +1 -1
  9. package/dist/views/components/teaser/components/teaser_title_classes.hbs +5 -1
  10. package/dist/views/components/teaser/podcast/podcast.hbs +3 -0
  11. package/dist/views/components/teaser/podcast/podcast_player.hbs +38 -0
  12. package/package.json +1 -1
  13. package/src/assets/fixtures/teaser/cluster_teaser_100_genre.json +11 -0
  14. package/src/assets/fixtures/teaser/cluster_teaser_100_image.json +50 -0
  15. package/src/assets/fixtures/teaser/cluster_teaser_33_genre.json +11 -0
  16. package/src/assets/fixtures/teaser/cluster_teaser_33_image.json +50 -0
  17. package/src/assets/fixtures/teaser/cluster_teaser_50_genre.json +11 -0
  18. package/src/assets/fixtures/teaser/cluster_teaser_50_image.json +51 -0
  19. package/src/assets/fixtures/teaser/headline_list_Item.inc.json +379 -0
  20. package/src/assets/fixtures/teaser/teaser_cluster.inc.json +21 -18
  21. package/src/assets/fixtures/teaser/teaser_images.inc.json +51 -1
  22. package/src/assets/vendor/js/podcastPlayer.alpine.js +63 -0
  23. package/src/stories/views/components/teaser/cluster/teaser_cluster.stories.mdx +12 -0
  24. package/src/stories/views/components/teaser/cluster/teaser_cluster_byline.hbs +35 -0
  25. package/src/stories/views/components/teaser/cluster/teaser_cluster_item.hbs +12 -41
  26. package/src/stories/views/components/teaser/cluster/teaser_cluster_list.hbs +16 -4
  27. package/src/stories/views/components/teaser/components/teaser_heading.hbs +1 -1
  28. package/src/stories/views/components/teaser/components/teaser_title.hbs +1 -1
  29. package/src/stories/views/components/teaser/components/teaser_title_classes.hbs +5 -1
  30. package/src/stories/views/components/teaser/fixtures/cluster_teaser_100.json +1 -1
  31. package/src/stories/views/components/teaser/fixtures/cluster_teaser_100_genre.json +2 -1
  32. package/src/stories/views/components/teaser/fixtures/cluster_teaser_100_image.json +1 -0
  33. package/src/stories/views/components/teaser/fixtures/cluster_teaser_33.json +1 -1
  34. package/src/stories/views/components/teaser/fixtures/cluster_teaser_33_genre.json +2 -1
  35. package/src/stories/views/components/teaser/fixtures/cluster_teaser_33_image.json +1 -0
  36. package/src/stories/views/components/teaser/fixtures/cluster_teaser_50.json +2 -1
  37. package/src/stories/views/components/teaser/fixtures/cluster_teaser_50_genre.json +2 -1
  38. package/src/stories/views/components/teaser/fixtures/cluster_teaser_50_image.json +1 -0
  39. package/src/stories/views/components/teaser/fixtures/cluster_teaser_extern_100.json +1 -1
  40. package/src/stories/views/components/teaser/fixtures/cluster_teaser_extern_33.json +1 -1
  41. package/src/stories/views/components/teaser/fixtures/cluster_teaser_extern_50.json +2 -1
  42. package/src/stories/views/components/teaser/fixtures/cluster_teaser_ordered_100.json +2 -1
  43. package/src/stories/views/components/teaser/fixtures/cluster_teaser_ordered_33.json +2 -1
  44. package/src/stories/views/components/teaser/fixtures/cluster_teaser_ordered_50.json +2 -1
  45. package/src/stories/views/components/teaser/podcast/podcast.hbs +3 -0
  46. package/src/stories/views/components/teaser/podcast/podcast.stories.mdx +39 -0
  47. package/src/stories/views/components/teaser/podcast/podcast_player.hbs +38 -0
  48. package/src/assets/fixtures/teaser/teaser_cluster.json +0 -37
@@ -1,3 +1,4 @@
1
+ <script defer src="https://cdn.jsdelivr.net/npm/async-alpine@0.3.x/dist/async-alpine.script.js"></script>
1
2
  <script defer src="https://unpkg.com/@alpinejs/collapse@3.8.1/dist/cdn.min.js"></script>
2
- <script src="https://unpkg.com/@alpine-collective/toolkit@1.0.0/dist/cdn.min.js" defer></script>
3
+ <script defer src="https://unpkg.com/@alpine-collective/toolkit@1.0.0/dist/cdn.min.js"></script>
3
4
  <script defer src="https://unpkg.com/alpinejs@3.8.1/dist/cdn.min.js"></script>
package/CHANGELOG.md CHANGED
@@ -1,3 +1,29 @@
1
+ # v0.57.0 (Tue Sep 27 2022)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Dpe 1766 [#329](https://github.com/mumprod/hr-design-system-handlebars/pull/329) ([@vascoeduardo](https://github.com/vascoeduardo) [@szuelch](https://github.com/szuelch))
6
+
7
+ #### Authors: 2
8
+
9
+ - [@szuelch](https://github.com/szuelch)
10
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
11
+
12
+ ---
13
+
14
+ # v0.56.15 (Fri Sep 16 2022)
15
+
16
+ #### 🐛 Bug Fix
17
+
18
+ - Dpe 1645 [#323](https://github.com/mumprod/hr-design-system-handlebars/pull/323) (zouhair1 [@selbaciri](https://github.com/selbaciri))
19
+
20
+ #### Authors: 2
21
+
22
+ - Saad El Baciri ([@selbaciri](https://github.com/selbaciri))
23
+ - selbaciri (zouhair1)
24
+
25
+ ---
26
+
1
27
  # v0.56.14 (Fri Sep 16 2022)
2
28
 
3
29
  #### 🐛 Bug Fix
@@ -441,7 +441,7 @@ video {
441
441
  --tw-shadow-colored: 0 0 rgba(0,0,0,0);
442
442
  }
443
443
 
444
- .link-focus-inset, .link-focus, .link-focus-inset-white, .link-focus-white {
444
+ .link-focus-inset, .link-focus, .link-focus-inset-white, .link-focus-white, .focus\:ring {
445
445
  --tw-ring-inset: ;
446
446
  --tw-ring-offset-width: 0px;
447
447
  --tw-ring-offset-color: #fff;
@@ -801,6 +801,9 @@ video {
801
801
  .mt-3 {
802
802
  margin-top: 0.75rem;
803
803
  }
804
+ .mb-6 {
805
+ margin-bottom: 1.5rem;
806
+ }
804
807
  .mb-7 {
805
808
  margin-bottom: 1.75rem;
806
809
  }
@@ -886,6 +889,9 @@ video {
886
889
  .h-24 {
887
890
  height: 6rem;
888
891
  }
892
+ .h-1 {
893
+ height: 0.25rem;
894
+ }
889
895
  .max-h-0 {
890
896
  max-height: 0px;
891
897
  }
@@ -1193,6 +1199,12 @@ video {
1193
1199
  .rounded-3xl {
1194
1200
  border-radius: 1.5rem;
1195
1201
  }
1202
+ .rounded-full {
1203
+ border-radius: 9999px;
1204
+ }
1205
+ .rounded-lg {
1206
+ border-radius: 0.5rem;
1207
+ }
1196
1208
  .rounded-t-xl {
1197
1209
  border-top-left-radius: 0.75rem;
1198
1210
  border-top-right-radius: 0.75rem;
@@ -1401,6 +1413,13 @@ video {
1401
1413
  --tw-bg-opacity: 1;
1402
1414
  background-color: rgba(220, 232, 240, var(--tw-bg-opacity));
1403
1415
  }
1416
+ .bg-black {
1417
+ --tw-bg-opacity: 1;
1418
+ background-color: rgba(0, 0, 0, var(--tw-bg-opacity));
1419
+ }
1420
+ .bg-opacity-50 {
1421
+ --tw-bg-opacity: 0.5;
1422
+ }
1404
1423
  .bg-gradient-to-r {
1405
1424
  background-image: -webkit-gradient(linear, left top, right top, from(var(--tw-gradient-stops)));
1406
1425
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
@@ -1457,6 +1476,9 @@ video {
1457
1476
  .p-8 {
1458
1477
  padding: 2rem;
1459
1478
  }
1479
+ .p-0\.5 {
1480
+ padding: 0.125rem;
1481
+ }
1460
1482
  .px-4 {
1461
1483
  padding-left: 1rem;
1462
1484
  padding-right: 1rem;
@@ -1600,15 +1622,18 @@ video {
1600
1622
  .pb-5 {
1601
1623
  padding-bottom: 1.25rem;
1602
1624
  }
1625
+ .pb-4 {
1626
+ padding-bottom: 1rem;
1627
+ }
1628
+ .pt-6 {
1629
+ padding-top: 1.5rem;
1630
+ }
1603
1631
  .pb-10 {
1604
1632
  padding-bottom: 2.5rem;
1605
1633
  }
1606
1634
  .pt-8 {
1607
1635
  padding-top: 2rem;
1608
1636
  }
1609
- .pt-6 {
1610
- padding-top: 1.5rem;
1611
- }
1612
1637
  .text-left {
1613
1638
  text-align: left;
1614
1639
  }
@@ -1938,7 +1963,7 @@ video {
1938
1963
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
1939
1964
  }
1940
1965
  .counter-reset {
1941
- counter-reset: cnt1663320957588;
1966
+ counter-reset: cnt1664291825673;
1942
1967
  }
1943
1968
  .placeholder-text-xs::-webkit-input-placeholder {
1944
1969
  font-size: 0.75rem;
@@ -2321,7 +2346,7 @@ video {
2321
2346
  --tw-ring-color: rgba(255, 255, 255, 0.5);
2322
2347
  }
2323
2348
  .-ordered {
2324
- counter-increment: cnt1663320957588 1;
2349
+ counter-increment: cnt1664291825673 1;
2325
2350
  }
2326
2351
  .-ordered::before {
2327
2352
  position: absolute;
@@ -2338,7 +2363,7 @@ video {
2338
2363
  letter-spacing: .0125em;
2339
2364
  --tw-text-opacity: 1;
2340
2365
  color: rgba(0, 0, 0, var(--tw-text-opacity));
2341
- content: counter(cnt1663320957588);
2366
+ content: counter(cnt1664291825673);
2342
2367
  }
2343
2368
  /*! purgecss start ignore */
2344
2369
  :root,
@@ -2820,6 +2845,19 @@ video {
2820
2845
  outline: 2px solid transparent;
2821
2846
  outline-offset: 2px;
2822
2847
  }
2848
+ .focus\:ring:focus {
2849
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
2850
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
2851
+ -webkit-box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);
2852
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);
2853
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);
2854
+ -webkit-box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));
2855
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));
2856
+ }
2857
+ .focus\:ring-\[\#1F89AE\]:focus {
2858
+ --tw-ring-opacity: 1;
2859
+ --tw-ring-color: rgba(31, 137, 174, var(--tw-ring-opacity));
2860
+ }
2823
2861
  .active\:font-bold:active {
2824
2862
  font-weight: 700;
2825
2863
  }
@@ -2834,6 +2872,41 @@ video {
2834
2872
  -webkit-text-decoration-line: underline;
2835
2873
  text-decoration-line: underline;
2836
2874
  }
2875
+ @media (color-index: 48) {
2876
+
2877
+ .dark\:bg-gray-700 {
2878
+ --tw-bg-opacity: 1;
2879
+ background-color: rgba(55, 65, 81, var(--tw-bg-opacity));
2880
+ }
2881
+ }
2882
+ @media (color: 48842621) {
2883
+
2884
+ .dark\:bg-gray-700 {
2885
+ --tw-bg-opacity: 1;
2886
+ background-color: rgba(55, 65, 81, var(--tw-bg-opacity));
2887
+ }
2888
+ }
2889
+ @media (color-index: 48) {
2890
+
2891
+ .dark\:bg-gray-700 {
2892
+ --tw-bg-opacity: 1;
2893
+ background-color: rgba(55, 65, 81, var(--tw-bg-opacity));
2894
+ }
2895
+ }
2896
+ @media (color: 48842621) {
2897
+
2898
+ .dark\:bg-gray-700 {
2899
+ --tw-bg-opacity: 1;
2900
+ background-color: rgba(55, 65, 81, var(--tw-bg-opacity));
2901
+ }
2902
+ }
2903
+ @media (prefers-color-scheme: dark) {
2904
+
2905
+ .dark\:bg-gray-700 {
2906
+ --tw-bg-opacity: 1;
2907
+ background-color: rgba(55, 65, 81, var(--tw-bg-opacity));
2908
+ }
2909
+ }
2837
2910
  @media print {
2838
2911
 
2839
2912
  .print\:flex {
@@ -3505,6 +3578,11 @@ video {
3505
3578
  flex: 0 1 auto;
3506
3579
  }
3507
3580
 
3581
+ .lg\:basis-1\/3 {
3582
+ -ms-flex-preferred-size: 33.333333%;
3583
+ flex-basis: 33.333333%;
3584
+ }
3585
+
3508
3586
  .lg\:flex-row {
3509
3587
  -webkit-box-orient: horizontal;
3510
3588
  -webkit-box-direction: normal;
@@ -0,0 +1,35 @@
1
+
2
+ <p class="mt-2.5 text-xs text-grey-scorpion font-headingSerif {{#if _ordered}} pl-8 {{/if}}">
3
+ {{!--Teaser-Info--}}
4
+ {{#with this.teaserInfo}}
5
+ {{#if this.showTeaserInfo~}}
6
+ {{~#if this.showTeaserInfoSection}}
7
+ <span class="uppercase">
8
+ {{../this.documentSection~}}
9
+ </span>
10
+ <span class="mx-px last-of-type:hidden">|</span>
11
+ {{/if}}
12
+ {{~#if this.showTeaserInfoDate}}
13
+ {{~#with ../this.teaserDate}}
14
+ <time datetime="{{this.htmlDateTime}}">{{this.date}}</time>
15
+ {{/with~}}
16
+ <span class="mx-px last-of-type:hidden">|</span>
17
+ {{else}}
18
+ {{~#if this.showTeaserInfoDateTime}}
19
+ {{~#with ../this.teaserDate}}
20
+ <time datetime="{{this.htmlDateTime}}">{{loca "date_simple_at" this.dateSeparatorTime}}</time>
21
+ {{/with~}}
22
+ <span class="mx-px last-of-type:hidden">|</span>
23
+ {{/if~}}
24
+ {{/if~}}
25
+ {{/if}}
26
+ {{/with}}
27
+
28
+ {{!--Profiles--}}
29
+ {{#if this.showProfileInfoAsByline}}
30
+ {{#if this.profiles}}
31
+ <span>{{this.profiles}}</span>
32
+ <span class="mx-px last-of-type:hidden">|</span>
33
+ {{/if}}
34
+ {{/if}}
35
+ </p>
@@ -1,41 +1,12 @@
1
-
2
- {{#>components/base/link link=this.logicItem.includeModel.link _css="group" _doTracking=(if this.logicItem.includeModel.doTracking 'true') _clickLabelPrefix1="clusterTeaserLink" _clickLabelPrefix2="Link" }}
3
- {{> components/teaser/components/teaser_heading
4
- _headlineTag=this.logicItem.includeModel.headlineTag
5
- _label=this.logicItem.includeModel.label
6
- _size=this.logicItem.includeModel.teaserSize
7
- _title=this.logicItem.includeModel.title
8
- _teaserType="cluster"
9
- _ordered=_ordered
10
- _titleBlue='true' }}
11
- {{/components/base/link}}
12
-
13
- {{!--Teaser-Info--}}
14
- <p class="mt-2.5 text-xs text-grey-scorpion font-headingSerif {{#if _ordered}} pl-8 {{/if}}">
15
- {{#with this.logicItem.includeModel.teaserInfo}}
16
- {{#if this.showTeaserInfo~}}
17
- {{~#if this.showTeaserInfoSection}}
18
- <span class="uppercase">
19
- {{../this.logicItem.includeModel.documentSection~}}
20
- </span>
21
- <span class="mx-px last-of-type:hidden">|</span>
22
- {{/if}}
23
- {{~#if this.showTeaserInfoDate}}
24
- {{~#with ../this.logicItem.includeModel.teaserDate}}
25
- <time datetime="{{this.htmlDateTime}}">{{this.date}}</time>
26
- {{/with~}}
27
- <span class="mx-px last-of-type:hidden">|</span>
28
- {{else}}
29
- {{~#if this.showTeaserInfoDateTime}}
30
- {{~#with ../this.logicItem.includeModel.teaserDate}}
31
- <time datetime="{{this.htmlDateTime}}">{{loca "date_simple_at" this.dateSeparatorTime}}</time>
32
- {{/with~}}
33
- <span class="mx-px last-of-type:hidden">|</span>
34
- {{/if~}}
35
- {{/if~}}
36
-
37
- {{/if}}
38
- {{/with}}
39
- </p>
40
- {{!--Teaser-Info--}}
41
-
1
+ {{#>components/base/link _css="group" _doTracking=(if this.doTracking 'true') _clickLabelPrefix1="clusterTeaserLink" _clickLabelPrefix2="Link" }}
2
+ {{> components/teaser/components/teaser_heading
3
+ _headlineTag="h1"
4
+ _label=this.label
5
+ _size=_size
6
+ _title=this.title
7
+ _teaserType="cluster"
8
+ _ordered=_ordered
9
+ _titleBlue='true'
10
+ _firstItem=_firstItem}}
11
+ {{/components/base/link}}
12
+ {{> components/teaser/cluster/teaser_cluster_byline}}
@@ -1,14 +1,26 @@
1
- <div class="{{~#if this.showGenreImage}}{{~inline-switch this.teaserSize '["100"]' '[" md:flex md:flex-row"]'}}{{~/if~}}">
1
+ <div class="{{~#if this.showImage}}{{~inline-switch this.teaserSize '["100"]' '[" md:flex md:flex-row"]'}}{{~/if~}}">
2
2
  {{~#if this.showGenreImage}}
3
- <div class="px-0 pb-5 {{~inline-switch this.teaserSize '["100"]' '[" md:pl-5 md:basis-1/3 md:ar-1-1"]'}}">
4
- {{~> components/base/image/responsive_image this.genreImage type="standard-ds" variant="topteaser" _addClassImg="ar__content" ~}}
3
+ <div class="px-0 pb-5 {{~inline-switch this.teaserSize '["100"]' '[" md:pl-5 md:basis-1/2 lg:basis-1/3 md:ar-1-1"]'}}">
4
+ {{~> components/base/image/responsive_image this.genreImage type=../this.teasertype variant=../this.imageVariant addClass=../this.aspectRatio _addClassImg="ar__content" ~}}
5
5
  </div>
6
6
  {{~/if~}}
7
+ {{~#if this.showFirstImage}}
8
+ {{~#with this.firstEntry~}}
9
+ {{~#if this.teaserImage}}
10
+ <div class="px-0 pb-5 {{~inline-switch ../this.teaserSize '["100"]' '[" md:pl-5 md:basis-1/2 lg:basis-1/3"]'}}">
11
+ {{~> components/base/image/responsive_image this.teaserImage type=../this.teasertype variant=../this.imageVariant addClass=../this.aspectRatio _addClassImg="ar__content pb-4" ~}}
12
+ <div class="mx-5 {{~inline-switch ../this.teaserSize '["100"]' '[" md:mx-0"]'}}">
13
+ {{> components/teaser/cluster/teaser_cluster_item _size=../this.teaserSize _ordered=../_ordered _firstItem=true}}
14
+ </div>
15
+ </div>
16
+ {{/if~}}
17
+ {{~/with~}}
18
+ {{/if~}}
7
19
  {{~#with this.clusterTeaserItems}}
8
20
  {{~#if ../_ordered}}<ol class="mx-5 list-none divide-y divide-white divide-solid counter-reset border-t border-white {{~#if ../this.showGenreImage}}{{~inline-switch ../this.teaserSize '["100"]' '[" md:-pt-5 md:border-none"]'}}{{/if~}}">{{else}}<ul class="mx-5 divide-y divide-white divide-solid border-t border-white {{~#if ../this.showGenreImage}}{{~inline-switch ../this.teaserSize '["100"]' '[" md:-pt-5 md:border-none"]'}}{{/if~}}">{{/if}}
9
21
  {{~#each this~}}
10
22
  <li class="{{~#if ../../_ordered}} -ordered {{/if}} py-5 {{#if ../../this.headlineListItems.link}} last-of-type:pb-0{{/if~}} {{~#if ../../this.showGenreImage}}{{~inline-switch ../../this.teaserSize '["100"]' '[" md:first-of-type:pt-0"]'}}{{/if~}}">
11
- {{> components/teaser/cluster/teaser_cluster_item _ordered=../../_ordered }}
23
+ {{> components/teaser/cluster/teaser_cluster_item _size=../this.teaserSize _ordered=../../_ordered }}
12
24
  </li>
13
25
  {{~/each}}
14
26
  {{~#if ../_ordered}}</ol>{{else}}</ul>{{/if~}}
@@ -7,5 +7,5 @@
7
7
  {{#if _topline}}
8
8
  {{> components/teaser/components/teaser_topline _text=_topline _readMore=_readMore _teaserType=_teaserType}}
9
9
  {{/if}}
10
- {{> components/teaser/components/teaser_title _text=_title _fontVariant=_fontVariant _size=_size _teaserType=_teaserType _isMobile1to1=_isMobile1to1}}
10
+ {{> components/teaser/components/teaser_title _text=_title _fontVariant=_fontVariant _size=_size _teaserType=_teaserType _isMobile1to1=_isMobile1to1 _firstItem=_firstItem}}
11
11
  </{{~ _headlineTag ~}}>
@@ -1,3 +1,3 @@
1
- <span class='block mt-0.5 group-hover:underline {{#if _titleBlue}} text-blue-congress {{/if}}{{#if _ordered}} pl-8 {{/if}} {{> components/teaser/components/teaser_title_classes _size=_size _teaserType=_teaserType _fontVariant=_fontVariant _isMobile1to1=_isMobile1to1}}'>
1
+ <span class='block mt-0.5 group-hover:underline {{#if _titleBlue}} text-blue-congress {{/if}}{{#if _ordered}} pl-8 {{/if}} {{> components/teaser/components/teaser_title_classes _size=_size _teaserType=_teaserType _fontVariant=_fontVariant _isMobile1to1=_isMobile1to1 _firstItem=_firstItem}}'>
2
2
  {{~_text~}}
3
3
  </span>
@@ -38,7 +38,11 @@ the 4 parameters are:
38
38
  {{~inline-switch _size '["50","33"]' '["text-2xl md:text-4xl","text-2xl"]'~}}
39
39
  {{~/case~}}
40
40
  {{~#case 'cluster'~}}
41
- text-lg
41
+ {{#if _firstItem}}
42
+ {{~inline-switch _size '["100"]' '[" text-lg md:text-2xl"," text-lg"]'}}
43
+ {{else}}
44
+ text-lg
45
+ {{/if}}
42
46
  {{~/case~}}
43
47
  {{~/switch~}}
44
48
  {{~inline-switch
@@ -0,0 +1,3 @@
1
+ <div class="grid grid-cols-12 pt-6 md:pt-7 bg-[#dce8f0] mx-0 md:rounded-tl-3xl md:rounded-br-3xl col-main gap-x-6 gap-y-6" >
2
+ {{> components/teaser/podcast/podcast_player }}
3
+ </div>
@@ -0,0 +1,38 @@
1
+ <div class="w-full col-span-12 js-load"
2
+ x-data="playaudio()"
3
+ ax-load
4
+ ax-load-src="http://localhost:6006/vendor/js/podcastPlayer.alpine.js">
5
+ <button x-on:keydown.tab="playAndStop" x-on:click="playAndStop" type="button" class="relative rounded-xl group cursor-pointer focus:outline-none focus:ring focus:ring-[#1F89AE]">
6
+ <div class="">
7
+ <div x-show="!currentlyPlaying" class="bg-black bg-opacity-50 rounded-full p-0.5 text-white">
8
+ start
9
+ </div>
10
+ <div x-show="currentlyPlaying" class="bg-black bg-opacity-50 rounded-full p-0.5 text-white">
11
+ stop
12
+ </div>
13
+ </div>
14
+ </button>
15
+
16
+ <input x-ref="range" x-on:input="rangeInput()" type="range" x-bind:value="currentTimePercentage" min="0" max="1000" class="w-full h-1 mb-6 rounded-lg appearance-none cursor-pointer range-sm dark:bg-gray-700" >
17
+
18
+ <div class="c-audioPlayer__metaText text__byline">
19
+ <span x-text="currentTime">00:00</span>
20
+ <span class="">/</span>
21
+ <span x-text="audioDuration">06:21 Min</span>
22
+ </div>
23
+
24
+ <audio x-ref="audio" controls="controls">
25
+ <source src="https://mp3podcasthr-a.akamaihd.net/mp3/podcast/hr2_audio/hr2_audio_20220914_95730396.mp3" type="audio/mp3" />
26
+ </audio>
27
+
28
+ <div class="hidden">
29
+ currentTime: <span x-text="currentTime"></span><br>
30
+ currentTimePercentage: <span x-text="currentTimePercentage"></span><br>
31
+ currentTimeMs: <span x-text="currentTimeMs"></span><br>
32
+ currentTimeS: <span x-text="currentTimeS"></span><br>
33
+ currentTimeM: <span x-text="currentTimeM"></span><br>
34
+ currentTimeH: <span x-text="currentTimeH"></span><br>
35
+ audioDuration: <span x-text="audioDuration"></span><br>
36
+ </div>
37
+ </div>
38
+
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": "0.56.14",
9
+ "version": "0.57.0",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "start-storybook -p 6006 public",
@@ -20,6 +20,17 @@
20
20
  {
21
21
  "@->contentpath": "showGenreImage",
22
22
  "@->value": "true"
23
+ },
24
+ {
25
+ "@->contentpath": "showImage",
26
+ "@->value": "true"
27
+ },
28
+ {
29
+ "@->contentpath": "genreImage",
30
+ "@->value": {
31
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
32
+ "@->contentpath": "cluster_1"
33
+ }
23
34
  }
24
35
  ]
25
36
  }
@@ -0,0 +1,50 @@
1
+ {
2
+ "@->jsoninclude": "teaser/teaser_cluster.inc.json",
3
+ "@->overrides": [
4
+ {
5
+ "@->contentpath": "teaserSize",
6
+ "@->value": "100"
7
+ },
8
+ {
9
+ "@->contentpath": "title",
10
+ "@->value": "NEUESTE BEITRÄGE"
11
+ },
12
+ {
13
+ "@->contentpath": "teaserLogo",
14
+ "@->value": "hessenschau_de"
15
+ },
16
+ {
17
+ "@->contentpath": "isHessenschauLogo",
18
+ "@->value": "true"
19
+ },
20
+ {
21
+ "@->contentpath": "showImage",
22
+ "@->value": "true"
23
+ },
24
+ {
25
+ "@->contentpath": "showFirstImage",
26
+ "@->value": "true"
27
+ },
28
+ {
29
+ "@->contentpath": "clusterTeaserItems",
30
+ "@->value": [
31
+ {
32
+ "@->jsoninclude": "teaser/headline_list_item.inc.json",
33
+ "@->contentpath": "item2"
34
+ },
35
+ {
36
+ "@->jsoninclude": "teaser/headline_list_item.inc.json",
37
+ "@->contentpath": "item3"
38
+ },
39
+ {
40
+ "@->jsoninclude": "teaser/headline_list_item.inc.json",
41
+ "@->contentpath": "item4"
42
+ },
43
+ {
44
+ "@->jsoninclude": "teaser/headline_list_item.inc.json",
45
+ "@->contentpath": "item5"
46
+ }
47
+ ]
48
+ }
49
+ ]
50
+ }
@@ -20,6 +20,17 @@
20
20
  {
21
21
  "@->contentpath": "showGenreImage",
22
22
  "@->value": "true"
23
+ },
24
+ {
25
+ "@->contentpath": "showImage",
26
+ "@->value": "true"
27
+ },
28
+ {
29
+ "@->contentpath": "genreImage",
30
+ "@->value": {
31
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
32
+ "@->contentpath": "cluster_2"
33
+ }
23
34
  }
24
35
  ]
25
36
  }
@@ -0,0 +1,50 @@
1
+ {
2
+ "@->jsoninclude": "teaser/teaser_cluster.inc.json",
3
+ "@->overrides": [
4
+ {
5
+ "@->contentpath": "teaserSize",
6
+ "@->value": "33"
7
+ },
8
+ {
9
+ "@->contentpath": "title",
10
+ "@->value": "NEUESTE BEITRÄGE"
11
+ },
12
+ {
13
+ "@->contentpath": "teaserLogo",
14
+ "@->value": "hessenschau_de"
15
+ },
16
+ {
17
+ "@->contentpath": "isHessenschauLogo",
18
+ "@->value": "true"
19
+ },
20
+ {
21
+ "@->contentpath": "showImage",
22
+ "@->value": "true"
23
+ },
24
+ {
25
+ "@->contentpath": "showFirstImage",
26
+ "@->value": "true"
27
+ },
28
+ {
29
+ "@->contentpath": "clusterTeaserItems",
30
+ "@->value": [
31
+ {
32
+ "@->jsoninclude": "teaser/headline_list_item.inc.json",
33
+ "@->contentpath": "item2"
34
+ },
35
+ {
36
+ "@->jsoninclude": "teaser/headline_list_item.inc.json",
37
+ "@->contentpath": "item3"
38
+ },
39
+ {
40
+ "@->jsoninclude": "teaser/headline_list_item.inc.json",
41
+ "@->contentpath": "item4"
42
+ },
43
+ {
44
+ "@->jsoninclude": "teaser/headline_list_item.inc.json",
45
+ "@->contentpath": "item5"
46
+ }
47
+ ]
48
+ }
49
+ ]
50
+ }
@@ -20,6 +20,17 @@
20
20
  {
21
21
  "@->contentpath": "showGenreImage",
22
22
  "@->value": "true"
23
+ },
24
+ {
25
+ "@->contentpath": "showImage",
26
+ "@->value": "true"
27
+ },
28
+ {
29
+ "@->contentpath": "genreImage",
30
+ "@->value": {
31
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
32
+ "@->contentpath": "cluster_2"
33
+ }
23
34
  }
24
35
  ]
25
36
  }
@@ -0,0 +1,51 @@
1
+ {
2
+ "@->jsoninclude": "teaser/teaser_cluster.inc.json",
3
+ "@->overrides": [
4
+ {
5
+ "@->contentpath": "teaserSize",
6
+ "@->value": "50"
7
+ },
8
+ {
9
+ "@->contentpath": "title",
10
+ "@->value": "NEUESTE BEITRÄGE"
11
+ },
12
+ {
13
+ "@->contentpath": "teaserLogo",
14
+ "@->value": "hessenschau_de"
15
+ },
16
+ {
17
+ "@->contentpath": "isHessenschauLogo",
18
+ "@->value": "true"
19
+ },
20
+ {
21
+ "@->contentpath": "showImage",
22
+ "@->value": "true"
23
+ },
24
+ {
25
+ "@->contentpath": "showFirstImage",
26
+ "@->value": "true"
27
+ },
28
+ {
29
+ "@->contentpath": "clusterTeaserItems",
30
+ "@->value": [
31
+ {
32
+ "@->jsoninclude": "teaser/headline_list_item.inc.json",
33
+ "@->contentpath": "item2"
34
+ },
35
+ {
36
+ "@->jsoninclude": "teaser/headline_list_item.inc.json",
37
+ "@->contentpath": "item3"
38
+ },
39
+ {
40
+ "@->jsoninclude": "teaser/headline_list_item.inc.json",
41
+ "@->contentpath": "item4"
42
+ },
43
+ {
44
+ "@->jsoninclude": "teaser/headline_list_item.inc.json",
45
+ "@->contentpath": "item5"
46
+ }
47
+ ]
48
+ }
49
+
50
+ ]
51
+ }