hr-design-system-handlebars 0.46.0 → 0.47.2

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 (93) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/assets/index.css +34 -12
  3. package/dist/views/components/base/image/responsive_image.hbs +11 -11
  4. package/dist/views/components/base/link.hbs +8 -8
  5. package/dist/views/components/base/load_dynamic.hbs +3 -0
  6. package/dist/views/components/page/page.hbs +13 -13
  7. package/dist/views/components/site_header/navigation_flyout/navigation_flyout.hbs +0 -1
  8. package/dist/views/components/site_header/navigation_flyout/navigation_flyout_column.hbs +0 -1
  9. package/dist/views/components/site_header/navigation_flyout/navigation_flyout_item.hbs +3 -4
  10. package/dist/views/components/teaser/components/teaser_byline.hbs +5 -4
  11. package/dist/views/components/teaser/components/teaser_comments.hbs +3 -3
  12. package/dist/views/components/teaser/components/teaser_heading.hbs +11 -13
  13. package/dist/views/components/teaser/components/teaser_text.hbs +8 -1
  14. package/dist/views/components/teaser/components/teaser_title.hbs +13 -1
  15. package/dist/views/components/teaser/components/teaser_topline.hbs +1 -1
  16. package/dist/views/components/teaser/teaser_alternativ.hbs +15 -9
  17. package/dist/views/components/teaser/teaser_poster.hbs +13 -0
  18. package/dist/views/components/teaser/teaser_standard.hbs +18 -9
  19. package/package.json +1 -1
  20. package/src/assets/fixtures/teaser/teaser_alternative_100_serif.json +14 -0
  21. package/src/assets/fixtures/teaser/teaser_alternative_25_serif.json +21 -0
  22. package/src/assets/fixtures/teaser/teaser_alternative_33_serif.json +21 -0
  23. package/src/assets/fixtures/teaser/teaser_alternative_50_serif.json +14 -0
  24. package/src/assets/fixtures/teaser/teaser_alternative_hero_serif.json +10 -0
  25. package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_comments.json +10 -0
  26. package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_label.json +21 -0
  27. package/src/assets/fixtures/teaser/teaser_group_100_2x_50.inc.json +27 -28
  28. package/src/assets/fixtures/teaser/teaser_images.inc.json +139 -102
  29. package/src/assets/fixtures/teaser/teaser_poster_lg.json +29 -0
  30. package/src/assets/fixtures/teaser/teaser_poster_md.json +28 -0
  31. package/src/assets/fixtures/teaser/teaser_poster_md_label.json +74 -0
  32. package/src/assets/fixtures/teaser/{teaser_standard_xl_serif.json → teaser_standard_100_serif.json} +2 -2
  33. package/src/assets/fixtures/teaser/{teaser_standard_sm_serif.json → teaser_standard_25_serif.json} +4 -4
  34. package/src/assets/fixtures/teaser/{teaser_standard_md_serif.json → teaser_standard_33_serif.json} +4 -4
  35. package/src/assets/fixtures/teaser/{teaser_standard_lg_serif.json → teaser_standard_50_serif.json} +2 -2
  36. package/src/assets/fixtures/teaser/{teaser_standard_xxl_serif.json → teaser_standard_hero_serif.json} +0 -0
  37. package/src/assets/fixtures/teaser/{teaser_standard_xxl_serif_comments.json → teaser_standard_hero_serif_comments.json} +0 -0
  38. package/src/assets/fixtures/teaser/{teaser_standard_xxl_serif_label.json → teaser_standard_hero_serif_label.json} +0 -7
  39. package/src/assets/fixtures/teaser/teasers.inc.json +47 -38
  40. package/src/stories/views/components/base/image/responsive_image.hbs +11 -11
  41. package/src/stories/views/components/base/link.hbs +8 -8
  42. package/src/stories/views/components/base/load_dynamic.hbs +3 -0
  43. package/src/stories/views/components/page/page.hbs +13 -13
  44. package/src/stories/views/components/page/page.stories.mdx +18 -9
  45. package/src/stories/views/components/site_header/navigation.json +33 -99
  46. package/src/stories/views/components/site_header/navigation2.json +586 -651
  47. package/src/stories/views/components/site_header/navigation3.json +644 -723
  48. package/src/stories/views/components/site_header/navigation4.json +40 -120
  49. package/src/stories/views/components/site_header/navigation_flyout/navigation_flyout.hbs +0 -1
  50. package/src/stories/views/components/site_header/navigation_flyout/navigation_flyout_column.hbs +0 -1
  51. package/src/stories/views/components/site_header/navigation_flyout/navigation_flyout_item.hbs +3 -4
  52. package/src/stories/views/components/teaser/components/teaser_byline.hbs +5 -4
  53. package/src/stories/views/components/teaser/components/teaser_byline.stories.mdx +18 -18
  54. package/src/stories/views/components/teaser/components/teaser_comments.hbs +3 -3
  55. package/src/stories/views/components/teaser/components/teaser_heading.hbs +11 -13
  56. package/src/stories/views/components/teaser/components/teaser_heading.stories.mdx +106 -119
  57. package/src/stories/views/components/teaser/components/teaser_text.hbs +8 -1
  58. package/src/stories/views/components/teaser/components/teaser_text.stories.mdx +44 -44
  59. package/src/stories/views/components/teaser/components/teaser_title.hbs +13 -1
  60. package/src/stories/views/components/teaser/components/teaser_title.stories.mdx +66 -48
  61. package/src/stories/views/components/teaser/components/teaser_topline.hbs +1 -1
  62. package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif.json +1 -0
  63. package/src/stories/views/components/teaser/fixtures/teaser_alternative_25_serif.json +1 -0
  64. package/src/stories/views/components/teaser/fixtures/teaser_alternative_33_serif.json +1 -0
  65. package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif.json +1 -0
  66. package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif.json +1 -0
  67. package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_comments.json +1 -0
  68. package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_label.json +1 -0
  69. package/src/stories/views/components/teaser/fixtures/teaser_comments_without_teaserinfo.json +1 -1
  70. package/src/stories/views/components/teaser/fixtures/teaser_index.json +1 -1
  71. package/src/stories/views/components/teaser/fixtures/teaser_poster_lg.json +1 -0
  72. package/src/stories/views/components/teaser/fixtures/teaser_poster_md.json +1 -0
  73. package/src/stories/views/components/teaser/fixtures/teaser_poster_md_label.json +1 -0
  74. package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif.json +1 -0
  75. package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif.json +1 -0
  76. package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif.json +1 -0
  77. package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif.json +1 -0
  78. package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif.json +1 -0
  79. package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_comments.json +1 -0
  80. package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_label.json +1 -0
  81. package/src/stories/views/components/teaser/teaser_alternativ.hbs +15 -9
  82. package/src/stories/views/components/teaser/teaser_alternativ.stories.mdx +52 -54
  83. package/src/stories/views/components/teaser/teaser_poster.hbs +13 -0
  84. package/src/stories/views/components/teaser/teaser_poster.stories.mdx +53 -0
  85. package/src/stories/views/components/teaser/teaser_standard.hbs +18 -9
  86. package/src/stories/views/components/teaser/teaser_standard.stories.mdx +20 -17
  87. package/src/stories/views/components/teaser/fixtures/teaser_standard_lg_serif.json +0 -1
  88. package/src/stories/views/components/teaser/fixtures/teaser_standard_md_serif.json +0 -1
  89. package/src/stories/views/components/teaser/fixtures/teaser_standard_sm_serif.json +0 -1
  90. package/src/stories/views/components/teaser/fixtures/teaser_standard_xl_serif.json +0 -1
  91. package/src/stories/views/components/teaser/fixtures/teaser_standard_xxl_serif.json +0 -1
  92. package/src/stories/views/components/teaser/fixtures/teaser_standard_xxl_serif_comments.json +0 -1
  93. package/src/stories/views/components/teaser/fixtures/teaser_standard_xxl_serif_label.json +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,39 @@
1
+ # v0.47.2 (Mon May 30 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - - removed css classes from responsive_image.hbs [#236](https://github.com/mumprod/hr-design-system-handlebars/pull/236) ([@vascoeduardo](https://github.com/vascoeduardo))
6
+
7
+ #### Authors: 1
8
+
9
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
10
+
11
+ ---
12
+
13
+ # v0.47.1 (Tue May 24 2022)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - add poster-teaser [#235](https://github.com/mumprod/hr-design-system-handlebars/pull/235) ([@hanswurstsalat](https://github.com/hanswurstsalat))
18
+
19
+ #### Authors: 1
20
+
21
+ - Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
22
+
23
+ ---
24
+
25
+ # v0.47.0 (Fri May 20 2022)
26
+
27
+ #### 🚀 Enhancement
28
+
29
+ - Feature/dpe 1579 [#234](https://github.com/mumprod/hr-design-system-handlebars/pull/234) ([@szuelch](https://github.com/szuelch))
30
+
31
+ #### Authors: 1
32
+
33
+ - [@szuelch](https://github.com/szuelch)
34
+
35
+ ---
36
+
1
37
  # v0.46.0 (Fri May 13 2022)
2
38
 
3
39
  #### 🚀 Enhancement
@@ -1569,6 +1569,9 @@ Ensure the default browser behavior of the `hidden` attribute.
1569
1569
  .-mt-10 {
1570
1570
  margin-top: -2.5rem;
1571
1571
  }
1572
+ .mb-7 {
1573
+ margin-bottom: 1.75rem;
1574
+ }
1572
1575
  .mr-4 {
1573
1576
  margin-right: 1rem;
1574
1577
  }
@@ -1902,6 +1905,14 @@ Ensure the default browser behavior of the `hidden` attribute.
1902
1905
  --tw-divide-opacity: 1;
1903
1906
  border-color: rgba(229, 231, 235, var(--tw-divide-opacity));
1904
1907
  }
1908
+ .self-end {
1909
+ -ms-flex-item-align: end;
1910
+ align-self: flex-end;
1911
+ }
1912
+ .self-center {
1913
+ -ms-flex-item-align: center;
1914
+ align-self: center;
1915
+ }
1905
1916
  .overflow-hidden {
1906
1917
  overflow: hidden;
1907
1918
  }
@@ -1972,6 +1983,10 @@ Ensure the default browser behavior of the `hidden` attribute.
1972
1983
  .border-r {
1973
1984
  border-right-width: 1px;
1974
1985
  }
1986
+ .border-white {
1987
+ --tw-border-opacity: 1;
1988
+ border-color: rgba(255, 255, 255, var(--tw-border-opacity));
1989
+ }
1975
1990
  .border-gray-200 {
1976
1991
  --tw-border-opacity: 1;
1977
1992
  border-color: rgba(229, 231, 235, var(--tw-border-opacity));
@@ -1980,10 +1995,6 @@ Ensure the default browser behavior of the `hidden` attribute.
1980
1995
  --tw-border-opacity: 1;
1981
1996
  border-color: rgba(0, 82, 147, var(--tw-border-opacity));
1982
1997
  }
1983
- .border-white {
1984
- --tw-border-opacity: 1;
1985
- border-color: rgba(255, 255, 255, var(--tw-border-opacity));
1986
- }
1987
1998
  .bg-red-200 {
1988
1999
  --tw-bg-opacity: 1;
1989
2000
  background-color: rgba(254, 202, 202, var(--tw-bg-opacity));
@@ -2075,10 +2086,18 @@ Ensure the default browser behavior of the `hidden` attribute.
2075
2086
  background-image: -webkit-gradient(linear, left top, right top, from(var(--tw-gradient-stops)));
2076
2087
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
2077
2088
  }
2089
+ .bg-gradient-to-t {
2090
+ background-image: -webkit-gradient(linear, left bottom, left top, from(var(--tw-gradient-stops)));
2091
+ background-image: linear-gradient(to top, var(--tw-gradient-stops));
2092
+ }
2078
2093
  .from-purple-50 {
2079
2094
  --tw-gradient-from: #faf5ff;
2080
2095
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(250, 245, 255, 0));
2081
2096
  }
2097
+ .from-black {
2098
+ --tw-gradient-from: #000000;
2099
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
2100
+ }
2082
2101
  .to-purple-100 {
2083
2102
  --tw-gradient-to: #f3e8ff;
2084
2103
  }
@@ -2132,6 +2151,10 @@ Ensure the default browser behavior of the `hidden` attribute.
2132
2151
  padding-top: 0.75rem;
2133
2152
  padding-bottom: 0.75rem;
2134
2153
  }
2154
+ .px-2 {
2155
+ padding-left: 0.5rem;
2156
+ padding-right: 0.5rem;
2157
+ }
2135
2158
  .px-3\.5 {
2136
2159
  padding-left: 0.875rem;
2137
2160
  padding-right: 0.875rem;
@@ -2144,10 +2167,6 @@ Ensure the default browser behavior of the `hidden` attribute.
2144
2167
  padding-top: 0.5rem;
2145
2168
  padding-bottom: 0.5rem;
2146
2169
  }
2147
- .px-2 {
2148
- padding-left: 0.5rem;
2149
- padding-right: 0.5rem;
2150
- }
2151
2170
  .py-1\.5 {
2152
2171
  padding-top: 0.375rem;
2153
2172
  padding-bottom: 0.375rem;
@@ -2206,6 +2225,9 @@ Ensure the default browser behavior of the `hidden` attribute.
2206
2225
  .text-left {
2207
2226
  text-align: left;
2208
2227
  }
2228
+ .text-center {
2229
+ text-align: center;
2230
+ }
2209
2231
  .align-top {
2210
2232
  vertical-align: top;
2211
2233
  }
@@ -2543,14 +2565,14 @@ Ensure the default browser behavior of the `hidden` attribute.
2543
2565
  --tw-bg-opacity: 1;
2544
2566
  background-color: rgba(0, 82, 147, var(--tw-bg-opacity));
2545
2567
  }
2546
- .hover\:text-white:hover {
2547
- --tw-text-opacity: 1;
2548
- color: rgba(255, 255, 255, var(--tw-text-opacity));
2549
- }
2550
2568
  .hover\:text-toplineColor:hover {
2551
2569
  color: #006dc1;
2552
2570
  color: var(--color-topline);
2553
2571
  }
2572
+ .hover\:text-white:hover {
2573
+ --tw-text-opacity: 1;
2574
+ color: rgba(255, 255, 255, var(--tw-text-opacity));
2575
+ }
2554
2576
  .hover\:underline:hover {
2555
2577
  -webkit-text-decoration-line: underline;
2556
2578
  text-decoration-line: underline;
@@ -10,12 +10,12 @@
10
10
  '_disableNoScript' don't add no script fallback
11
11
 
12
12
  --}}
13
- {{#withParam this.responsiveImage _type _variant }}
13
+ {{#withParam this.responsiveImage type variant }}
14
14
  {{#if this.asPicture}}
15
- <picture class="picture {{~#if ../_addClass}} {{../_addClass}}{{/if}}">
15
+ <picture class="{{~#if ../addClass}} {{../addClass}}{{/if}}">
16
16
  {{#unless _disableNoScript}}
17
17
  <noscript>
18
- <img class="image {{~#if ../_addClassImg}} {{../_addClassImg}}{{/if}}" src="{{this.fallback}}" alt="{{#if ../_alttext}}{{../_alttext}}{{else}}{{../this.alttext}}{{/if}}">
18
+ <img class="{{~#if ../addClassImg}} {{../addClassImg}}{{/if}}" src="{{this.fallback}}" alt="{{#if ../alttext}}{{../alttext}}{{else}}{{../this.alttext}}{{/if}}">
19
19
  </noscript>
20
20
  {{/unless}}
21
21
  {{#with this.sources}}
@@ -25,24 +25,24 @@
25
25
  {{#with this.srcset}} srcset="{{this}}"{{/with}}>
26
26
  {{/each}}
27
27
  {{/with}}
28
- <img class="image {{~#if ../_addClassImg}} {{../_addClassImg}}{{/if}}" loading="{{#if ../_noDelay}}auto{{else}}lazy{{/if}}" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt="{{#if ../_alttext}}{{../_alttext}}{{else}}{{../this.alttext}}{{/if}}" {{~#if ../_errorHandler }} onerror="this.onerror=null; {{../_errorHandler}}"{{/if}}>
28
+ <img class="{{~#if ../addClassImg}} {{../addClassImg}}{{/if}}" loading="{{#if ../noDelay}}auto{{else}}lazy{{/if}}" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt="{{#if ../alttext}}{{../alttext}}{{else}}{{../this.alttext}}{{/if}}" {{~#if ../errorHandler }} onerror="this.onerror=null; {{../errorHandler}}"{{/if}}>
29
29
  </picture>
30
30
  {{/if}}
31
31
 
32
32
  {{#if this.asImage}}
33
33
  {{#with this.sources.[0]}}
34
- {{~#with ../../_addClass }}<div class="{{this}}">{{/with}}
35
- {{#unless ../../_disableNoScript}}
34
+ {{~#with ../../addClass }}<div class="{{this}}">{{/with}}
35
+ {{#unless ../../disableNoScript}}
36
36
  <noscript>
37
- <img class="image {{~#if ../../_addClassImg}} {{../../_addClassImg}}{{/if}}" src="{{../this.fallback}}" alt="{{#if ../../_alttext}}{{../../_alttext}}{{else}}{{../../this.alttext}}{{/if}}">
37
+ <img class="{{~#if ../../addClassImg}} {{../../addClassImg}}{{/if}}" src="{{../this.fallback}}" alt="{{#if ../../alttext}}{{../../alttext}}{{else}}{{../../this.alttext}}{{/if}}">
38
38
  </noscript>
39
39
  {{/unless}}
40
40
  <img {{#with this.sizes}}sizes="{{this}}" {{/with~}}
41
- loading="{{#if ../../_noDelay}}auto{{else}}lazy{{/if}}"
42
- {{#with this.srcset}} {{#if ../../../_noDelay}}srcset{{else}}data-srcset{{/if}}="{{this}}"{{/with}}
41
+ loading="{{#if ../../noDelay}}auto{{else}}lazy{{/if}}"
42
+ {{#with this.srcset}} {{#if ../../../noDelay}}srcset{{else}}data-srcset{{/if}}="{{this}}"{{/with}}
43
43
  src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="
44
- alt="{{#if ../../_alttext}}{{../../_alttext}}{{else}}{{../../this.alttext}}{{/if}}" class="image imageSimple {{~#with ../../_addClassImg }} {{this}}{{/with}}" {{~#if ../../_errorHandler}} onerror="this.onerror=null; {{../../_errorHandler}}" {{~/if}}>
45
- {{~#with ../../_addClass }}</div>{{/with}}
44
+ alt="{{#if ../../alttext}}{{../../alttext}}{{else}}{{../../this.alttext}}{{/if}}" class="{{~#with ../../addClassImg }} {{this}}{{/with}}" {{~#if ../../errorHandler}} onerror="this.onerror=null; {{../../errorHandler}}" {{~/if}}>
45
+ {{~#with ../../addClass }}</div>{{/with}}
46
46
  {{/with}}
47
47
 
48
48
  {{/if}}
@@ -1,19 +1,19 @@
1
1
  {{#with this.link}}
2
2
  <a {{#with this.webviewUrl}}data-webviewurl="{{this}}"{{/with}} href="{{this.url}}" {{#with this.webviewUrl}}{{/with}}
3
- class="sb-link {{#if ../_cssClasses}} {{../_cssClasses}}{{/if}}{{#if _doTracking}} js-load{{else}}{{#if ../this.content.isFileDownload}} js-loadScript{{/if}}{{/if}}{{#if _isSelected}} {{defaultIfEmpty _selectedCssClass "-current"}}{{/if}}"
4
- {{#if ../_doNavigationTracking}}
5
- data-new-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "1","clickLabel":"{{../_clickLabelType}}{{#if ../_clickLabelPrefix1}}::{{../_clickLabelPrefix1}}{{/if}}::{{../_clickLabelPrefix2}}-Link geklickt"}]}'
3
+ class="sb-link{{#if ../css}} {{../css}}{{/if}}{{#if ../doTracking}} js-load{{else}}{{#if ../this.content.isFileDownload}} js-loadScript{{/if}}{{/if}}{{#if ../isSelected}} {{defaultIfEmpty ../selectedCssClass "-current"}}{{/if}}"
4
+ {{#if ../doNavigationTracking}}
5
+ data-new-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "1","clickLabel":"{{../clickLabelType}}{{#if ../clickLabelPrefix1}}::{{../clickLabelPrefix1}}{{/if}}::{{../clickLabelPrefix2}}-Link geklickt"}]}'
6
6
  {{/if}}
7
- {{#if ../_doTracking}}
8
- {{#with this.content.trackingData}}data-new-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "{{#if ../this.content.isFileDownload}}{{this.pageName}}{{else}}mediabuttonclick::{{_clickLabelPrefix1}}::{{_clickLabelPrefix2}}{{/if}}"}]}'{{/with}}
7
+ {{#if ../doTracking}}
8
+ {{#with this.content.trackingData}}data-new-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "{{#if ../this.content.isFileDownload}}{{this.pageName}}{{else}}mediabuttonclick::{{../../clickLabelPrefix1}}::{{../../clickLabelPrefix2}}{{/if}}"}]}'{{/with}}
9
9
  {{else}}
10
10
  {{#if ../this.content.isFileDownload}}
11
11
  {{#with this.content.trackingData}}data-new-hr-click-tracking='{"settings": [{"type":"download","secondLevelId": "{{this.secondLevelId}}","clickLabel": "{{this.pageName}}"}]}'{{/with}}
12
12
  {{/if}}
13
13
  {{/if}}
14
14
  {{#if this.isTargetBlank}} target="_blank" rel="noopener{{#if this.hasNoReferrerFlag}} noreferrer{{/if}}"{{/if}}
15
- {{#if _isAriaHidden}} aria-hidden="true" tabindex="-1"{{/if}}
15
+ {{#if ../isAriaHidden}} aria-hidden="true" tabindex="-1"{{/if}}
16
16
  >
17
+ {{/with}}
17
18
  {{> @partial-block }}
18
- </a>
19
- {{/with}}
19
+ </a>
@@ -8,4 +8,7 @@
8
8
  {{#case "components/teaser/teaser_standard"}}
9
9
  {{> components/teaser/teaser_standard}}
10
10
  {{/case}}
11
+ {{#case "components/teaser/components/teaser_comments"}}
12
+ {{> components/teaser/components/teaser_comments}}
13
+ {{/case}}
11
14
  {{/switch}}
@@ -33,27 +33,27 @@
33
33
  {{> components/teaser/teaser_standard }}
34
34
  </div>
35
35
  <div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-8 sm:col-main">
36
- {{> components/teaser/teaser_standard teasersize="lg"}}
37
- {{> components/teaser/teaser_standard teasersize="lg"}}
36
+ {{> components/teaser/teaser_standard teaserSize="50"}}
37
+ {{> components/teaser/teaser_standard teaserSize="50"}}
38
38
  </div>
39
39
  <div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-8 sm:col-main">
40
- {{> components/teaser/teaser_standard teasersize="md"}}
41
- {{> components/teaser/teaser_standard teasersize="md"}}
42
- {{> components/teaser/teaser_standard teasersize="md"}}
40
+ {{> components/teaser/teaser_standard teaserSize="33"}}
41
+ {{> components/teaser/teaser_standard teaserSize="33"}}
42
+ {{> components/teaser/teaser_standard teaserSize="33"}}
43
43
  </div>
44
44
  <div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-8 sm:col-main">
45
- {{> components/teaser/teaser_standard teasersize="lg"}}
46
- {{> components/teaser/teaser_standard teasersize="lg"}}
45
+ {{> components/teaser/teaser_standard teaserSize="50"}}
46
+ {{> components/teaser/teaser_standard teaserSize="50"}}
47
47
  </div>
48
48
  <div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-8 sm:col-main">
49
- {{> components/teaser/teaser_standard teasersize="sm"}}
50
- {{> components/teaser/teaser_standard teasersize="sm"}}
51
- {{> components/teaser/teaser_standard teasersize="sm"}}
52
- {{> components/teaser/teaser_standard teasersize="sm"}}
49
+ {{> components/teaser/teaser_standard teaserSize="25"}}
50
+ {{> components/teaser/teaser_standard teaserSize="25"}}
51
+ {{> components/teaser/teaser_standard teaserSize="25"}}
52
+ {{> components/teaser/teaser_standard teaserSize="25"}}
53
53
  </div>
54
54
  <div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-8 sm:col-main">
55
- {{> components/teaser/teaser_standard teasersize="lg"}}
56
- {{> components/teaser/teaser_standard teasersize="lg"}}
55
+ {{> components/teaser/teaser_standard teaserSize="50"}}
56
+ {{> components/teaser/teaser_standard teaserSize="50"}}
57
57
  </div>
58
58
 
59
59
  </div>
@@ -1,5 +1,4 @@
1
1
  {{#with this.subNavigation}}
2
-
3
2
  <div {{#unless ../this.selected}}x-cloak{{/unless}}
4
3
  x-data="flyoutHandler"
5
4
  x-ref="{{getRandom}}"
@@ -1,5 +1,4 @@
1
1
  <ul class="{{inline-switch count '["1","2"]' '["md:w-1/1", "md:w-1/1 lg:w-1/2"]'}} {{inline-switch navtype '["ServiceNavigation","RubrikNavigation"]' '["border-b border-gray-200 md:border-0","border-0"]'}} lg:even:pl-4 lg:odd:pr-4 {{#if selected}} lg:container lg:flex lg:h-9 {{/if}} ">
2
-
3
2
  {{~#each this ~}}
4
3
  {{~#if this.title~}}
5
4
  {{> components/site_header/navigation_flyout/navigation_flyout_item _parentselected=../selected _fromNav=../navtype _flyout=../_flyout _parent=../_parent ~}}
@@ -1,8 +1,7 @@
1
1
  <li :class="dropped ? 'h-auto' : 'h-10'"
2
2
  class="sb-navigation-flyout-item pl-4 {{#if _flyout}}lg:px-0 {{else}}lg:px-2 lg:first-of-type:pl-0 {{/if}}{{#if _parentselected}}lg:whitespace-nowrap{{/if}} flex h-auto text-base leading-6 border-b border-gray-200 lg:last:border-0 lg:border-0 text-blue-congress justify-start hover:underline">
3
-
4
- {{#>components/base/link _cssClasses=(inline-switch _fromNav '["RubrikNavigation","ServiceNavigation"]' '["link-focus-inset py-2 w-full","link-focus py-2 md:pl-0 lg:pl-0 lg:pr-0 break-words w-full"]') _doNavigationTracking="true" _clickLabelType=_fromNav _clickLabelPrefix1=_parent _clickLabelPrefix2=this.link.content.text }}
5
- {{content.text}}
6
- {{~#if this.hasIcon}}{{> components/base/image/icon _icon=this.iconName _addClass="w-4 h-4 fill-current ml-2 inline-flex" _iconmap="icons" }} {{/if}}
3
+ {{#>components/base/link css=(inline-switch _fromNav '["RubrikNavigation","ServiceNavigation"]' '["link-focus-inset py-2 w-full","link-focus py-2 md:pl-0 lg:pl-0 lg:pr-0 break-words w-full"]') doNavigationTracking="true" clickLabelType=_fromNav clickLabelPrefix1=_parent clickLabelPrefix2=this.link.content.text }}
4
+ {{this.text}}
5
+ {{~#if this.link.hasIcon}}{{> components/base/image/icon _icon=this.link.iconName _addClass="w-4 h-4 fill-current ml-2 inline-flex" _iconmap="icons" }} {{/if}}
7
6
  {{/components/base/link}}
8
7
  </li>
@@ -4,13 +4,13 @@
4
4
  {{#with this.teaserInfo}}
5
5
  {{#if this.showTeaserInfo~}}
6
6
  {{~#if this.showTeaserInfoDate}}
7
- {{~#with ../teaserDate}}
7
+ {{~#with ../this.teaserDate}}
8
8
  <time datetime="{{this.htmlDateTime}}">{{this.date}}</time>
9
9
  {{/with~}}
10
10
  <span class="mx-px last-of-type:hidden">|</span>
11
11
  {{else}}
12
12
  {{~#if this.showTeaserInfoDateTime}}
13
- {{~#with ../teaserDate}}
13
+ {{~#with ../this.teaserDate}}
14
14
  <time datetime="{{this.htmlDateTime}}">{{loca "date_simple_at" this.dateSeparatorTime}}</time>
15
15
  {{/with~}}
16
16
  <span class="mx-px last-of-type:hidden">|</span>
@@ -34,6 +34,7 @@
34
34
  {{/if}}
35
35
 
36
36
  {{!--Comments--}}
37
- {{> components/teaser/components/teaser_comments}}
38
-
37
+ {{#with this.commentsSsi}}
38
+ {{> components/base/loadSSI templatePath='components/teaser/components/teaser_comments' }}
39
+ {{/with}}
39
40
  </p>
@@ -1,10 +1,10 @@
1
1
  {{#with this.commentLink}}
2
2
  <span class="whitespace-nowrap">
3
- {{#>components/base/link _cssClasses="hover:underline decoration-1" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="comment" }}
3
+ {{#>components/base/link css="hover:underline decoration-1" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="comment" }}
4
4
  {{> components/base/image/icon _icon="kommentar" _iconmap="icons" _addClass="mr-0.5 inline w-5 h-5 text-toplineColor fill-current"}}
5
5
  <span class="sr-only">{{loca "comment_anchor_1"}}</span>
6
- <span class="text-toplineColor">{{this.content.commentNumber}}</span>
7
- {{#if this.content.hasOneComment}}
6
+ <span class="text-toplineColor">{{../../this.commentNumber}}</span>
7
+ {{#if ../../this.hasOneComment}}
8
8
  <span class="text-toplineColor">{{loca "comment_label_text"}}</span>
9
9
  {{else}}
10
10
  <span class="text-toplineColor">{{loca "comment_label_text_many"}}</span>
@@ -1,13 +1,11 @@
1
- {{#>components/base/link _cssClasses="hover:text-toplineColor" _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="headlineLink" }}
2
- {{#with this.content.label}}
3
- <div class="leading-5.5">
4
- {{> components/label/label type=loca text=type}}
5
- </div>
6
- {{/with~}}
7
- <{{~ ../headlineTag ~}}>
8
- {{#with this.content.topline}}
9
- {{> components/teaser/components/teaser_topline text=this readMore=../this.readMoreText.readMoreScreenreader}}
10
- {{/with}}
11
- {{> components/teaser/components/teaser_title text=../this.title font=../font size=../size }}
12
- </{{~ ../headlineTag ~}}>
13
- {{/components/base/link}}
1
+ {{#with label}}
2
+ <div class="leading-5.5">
3
+ {{> components/label/label type=loca text=type}}
4
+ </div>
5
+ {{/with~}}
6
+ <{{~ headlineTag ~}}>
7
+ {{#if topline}}
8
+ {{> components/teaser/components/teaser_topline text=topline readMore=readMore}}
9
+ {{/if}}
10
+ {{> components/teaser/components/teaser_title text=title fontVariant=fontVariant size=size }}
11
+ </{{~ headlineTag ~}}>
@@ -1 +1,8 @@
1
- <span class="{{inline-switch size '["xxl","xl","sm"]' '["block md:text-base","hidden md:block md:text-base","hidden","hidden md:block"]'}} text-sm mt-3 font-copy">{{text}}</span>
1
+ <span
2
+ class='{{inline-switch
3
+ size
4
+ '["hero","100","25"]'
5
+ '["block md:text-base","hidden md:block md:text-base","hidden","hidden md:block"]'
6
+ }}
7
+ text-sm mt-3 font-copy'
8
+ >{{text}}</span>
@@ -1 +1,13 @@
1
- <span class="block {{inline-switch size '["xxl","xl","sm"]' '["text-2xl md:text-4xl","text-2xl md:text-4xl","text-lg ","text-2xl "]'}} {{font}} mt-0.5">{{text}}</span>
1
+ <span
2
+ class='block mt-0.5
3
+ {{inline-switch
4
+ size
5
+ '["hero","100","25"]'
6
+ '[" text-2xl md:text-4xl"," text-2xl md:text-4xl"," text-lg"," text-2xl"]'
7
+ }}
8
+ {{inline-switch
9
+ fontVariant
10
+ '["serif", "sans-serif"]'
11
+ '[" font-headingSerif"," font-heading font-bold"," font-headingSerif"]'
12
+ }}'
13
+ >{{text}}</span>
@@ -1,5 +1,5 @@
1
1
  <span
2
- class="leading-5.5 pt-px block text-base text-toplineColor font-heading"
2
+ class="leading-5.5 pt-px block text-base {{inline-switch isPosterTeaser '[true]' '["text-white","text-toplineColor"]'}} font-heading"
3
3
  aria-label="{{readMore}}: {{text}}"
4
4
  >
5
5
  {{text}}
@@ -1,15 +1,21 @@
1
- <article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 flex-row ","md:col-span-4 flex-row","md:col-span-6 flex-row","flex-row"]'}} ">
2
- <figure class="{{inline-switch teasersize '["sm", "xxl"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9","basis-3/5 ar-16-9", "ar-16-9"]'}} ">
3
- {{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="mediaLink" }}
4
- {{~> components/base/image/responsive_image this.content.teaserImage _type=this.content.teasertype _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
1
+ <article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch this.teaserSize '["25","33","50"]' '["px-5 flex-row ","md:col-span-4 flex-row","md:col-span-6 flex-row","flex-row"]'}} ">
2
+ <figure class="{{inline-switch this.teaserSize '["25", "hero"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9","basis-3/5 ar-16-9", "ar-16-9"]'}} ">
3
+ {{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2="mediaLink" }}
4
+ {{~> components/base/image/responsive_image this.teaserImage type=this.teasertype variant=this.imageVariant noDelay=../_noDelay addClassImg="" ~}}
5
5
  {{/components/base/link}}
6
6
  </figure>
7
- <div class="{{inline-switch teasersize '["sm", "xxl"]' '["basis-3/5 md:flex-full" , "basis-2/5"]'}} ">
8
- <header class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
9
- {{> components/teaser/components/teaser_heading headlineTag="h2" size=teasersize font=(inline-switch isSerifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]')}}
7
+ <div class="{{inline-switch this.teaserSize '["25", "hero"]' '["basis-3/5 md:flex-full" , "basis-2/5"]'}} ">
8
+ <header class="md:px-0 {{inline-switch teasersize '["25"]' '["","px-5"]'}}">
9
+ {{> components/teaser/components/teaser_heading fontVariant=this.headingFontVariant
10
+ headlineTag=this.headlineTag
11
+ label=this.label
12
+ readMore=this.link.readMoreText.readMoreScreenreader
13
+ size=this.teaserSize
14
+ title=this.title
15
+ topline=this.topline}}
10
16
  </header>
11
- <section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
12
- {{> components/teaser/components/teaser_text text=shorttext size=teasersize }}
17
+ <section class="md:px-0 {{inline-switch this.teaserSize '["25"]' '["","px-5"]'}}">
18
+ {{> components/teaser/components/teaser_text text=this.shorttext size=this.teaserSize }}
13
19
  {{> components/teaser/components/teaser_byline}}
14
20
  </section>
15
21
  </div>
@@ -0,0 +1,13 @@
1
+ <article class="relative col-span-12 flex gap-y-5 gap-x-4 {{inline-switch teasersize '["33","50"]' '["md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
2
+ <figure class="ar-1-1">
3
+ {{~> components/base/image/responsive_image this.teaserImage type="poster" variant=this.content.imageVariant noDelay=../_noDelay addClassImg="ar__content rounded-tl-3xl rounded-br-3xl" ~}}
4
+ </figure>
5
+ <div class="absolute flex justify-center w-full h-full ar-1-1 bg-gradient-to-t from-black rounded-br-3xl">
6
+ <div class="self-center block mx-4 text-center text-white">
7
+ {{> components/teaser/components/teaser_heading headlineTag="h2" isPosterTeaser=true size=teasersize font=(inline-switch isSerifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') }}
8
+ </div>
9
+ </div>
10
+ {{#>components/base/link css="absolute flex w-full h-full justify-center" doTracking=(if this.doTracking 'true') clickLabelPrefix1=this.teasersize clickLabelPrefix2="mediaLink" }}
11
+ <button class="self-end px-2 text-white border border-white mb-7">{{this.link.readMoreText.readMoreLong}}</button>
12
+ {{/components/base/link}}
13
+ </article>
@@ -1,15 +1,24 @@
1
- <article class="col-span-12 flex gap-y-5 gap-x-4 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
2
- <figure class="{{inline-switch teasersize '["sm"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9", "ar-16-9"]'}} ">
3
- {{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="mediaLink" }}
4
- {{~> components/base/image/responsive_image this.content.teaserImage _type=this.content.teasertype _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
1
+ <article class="col-span-12 flex gap-y-5 gap-x-4 {{inline-switch this.teaserSize '["25","33","50"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
2
+ <figure class="{{inline-switch this.teaserSize '["25"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9", "ar-16-9"]'}} ">
3
+ {{#>components/base/link isAriaHidden=true doTracking=(if this.doTracking 'true') clickLabelPrefix1=this.teaserSize clickLabelPrefix2="mediaLink" }}
4
+ {{~> components/base/image/responsive_image this.teaserImage type=this.teasertype variant=this.imageVariant noDelay=../noDelay addClassImg="" ~}}
5
5
  {{/components/base/link}}
6
6
  </figure>
7
- <div class="{{inline-switch teasersize '["sm"]' '["basis-3/5 md:flex-full"]'}} ">
8
- <header class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
9
- {{> components/teaser/components/teaser_heading headlineTag="h2" size=teasersize font=(inline-switch isSerifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') }}
7
+ <div class="{{inline-switch this.teaserSize '["25"]' '["basis-3/5 md:flex-full"]'}} ">
8
+ <header class="md:px-0 {{inline-switch teaserSize '["25"]' '["","px-5"]'}}">
9
+ {{#>components/base/link css="hover:text-toplineColor" doTracking=(if this.doTracking 'true') clickLabelPrefix1=this.teaserSize clickLabelPrefix2="headlineLink" }}
10
+ {{> components/teaser/components/teaser_heading
11
+ fontVariant=this.headingFontVariant
12
+ headlineTag=this.headlineTag
13
+ label=this.label
14
+ readMore=this.link.readMoreText.readMoreScreenreader
15
+ size=this.teaserSize
16
+ title=this.title
17
+ topline=this.topline }}
18
+ {{/components/base/link}}
10
19
  </header>
11
- <section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
12
- {{> components/teaser/components/teaser_text text=shorttext size=teasersize }}
20
+ <section class="md:px-0 {{inline-switch this.teaserSize '["25"]' '["","px-5"]'}}">
21
+ {{> components/teaser/components/teaser_text text=this.shorttext size=this.teaserSize }}
13
22
  {{> components/teaser/components/teaser_byline}}
14
23
  </section>
15
24
  </div>
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.46.0",
9
+ "version": "0.47.2",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "start-storybook -p 6006 public",
@@ -0,0 +1,14 @@
1
+ {
2
+ "@->jsoninclude": "teaser/teasers.inc.json",
3
+ "@->contentpath": "teaser",
4
+ "@->overrides": [
5
+ {
6
+ "@->contentpath": "logicItem.includeModel.teaserSize",
7
+ "@->value": "100"
8
+ },
9
+ {
10
+ "@->contentpath": "logicItem.includeModel.teaserType",
11
+ "@->value": "alternative"
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "@->jsoninclude": "teaser/teasers.inc.json",
3
+ "@->contentpath": "teaser",
4
+ "@->overrides": [
5
+ {
6
+ "@->contentpath": "logicItem.includeModel.teaserSize",
7
+ "@->value": "25"
8
+ },
9
+ {
10
+ "@->contentpath": "logicItem.includeModel.teaserType",
11
+ "@->value": "alternative"
12
+ },
13
+ {
14
+ "@->contentpath": "logicItem.includeModel.link.content.teaserImage",
15
+ "@->value": {
16
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
17
+ "@->contentpath": "sm_4"
18
+ }
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "@->jsoninclude": "teaser/teasers.inc.json",
3
+ "@->contentpath": "teaser",
4
+ "@->overrides": [
5
+ {
6
+ "@->contentpath": "logicItem.includeModel.teaserSize",
7
+ "@->value": "33"
8
+ },
9
+ {
10
+ "@->contentpath": "logicItem.includeModel.teaserType",
11
+ "@->value": "alternative"
12
+ },
13
+ {
14
+ "@->contentpath": "logicItem.includeModel.teaserImage",
15
+ "@->value": {
16
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
17
+ "@->contentpath": "md_2"
18
+ }
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "@->jsoninclude": "teaser/teasers.inc.json",
3
+ "@->contentpath": "teaser",
4
+ "@->overrides": [
5
+ {
6
+ "@->contentpath": "logicItem.includeModel.teaserSize",
7
+ "@->value": "50"
8
+ },
9
+ {
10
+ "@->contentpath": "logicItem.includeModel.teaserType",
11
+ "@->value": "alternative"
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "@->jsoninclude": "teaser/teasers.inc.json",
3
+ "@->contentpath": "teaser",
4
+ "@->overrides": [
5
+ {
6
+ "@->contentpath": "logicItem.includeModel.teaserType",
7
+ "@->value": "alternative"
8
+ }
9
+ ]
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "@->jsoninclude": "teaser/teasers.inc.json",
3
+ "@->contentpath": "teaserWithComments",
4
+ "@->overrides": [
5
+ {
6
+ "@->contentpath": "logicItem.includeModel.teaserType",
7
+ "@->value": "alternative"
8
+ }
9
+ ]
10
+ }