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.
- package/CHANGELOG.md +36 -0
- package/dist/assets/index.css +34 -12
- package/dist/views/components/base/image/responsive_image.hbs +11 -11
- package/dist/views/components/base/link.hbs +8 -8
- package/dist/views/components/base/load_dynamic.hbs +3 -0
- package/dist/views/components/page/page.hbs +13 -13
- package/dist/views/components/site_header/navigation_flyout/navigation_flyout.hbs +0 -1
- package/dist/views/components/site_header/navigation_flyout/navigation_flyout_column.hbs +0 -1
- package/dist/views/components/site_header/navigation_flyout/navigation_flyout_item.hbs +3 -4
- package/dist/views/components/teaser/components/teaser_byline.hbs +5 -4
- package/dist/views/components/teaser/components/teaser_comments.hbs +3 -3
- package/dist/views/components/teaser/components/teaser_heading.hbs +11 -13
- package/dist/views/components/teaser/components/teaser_text.hbs +8 -1
- package/dist/views/components/teaser/components/teaser_title.hbs +13 -1
- package/dist/views/components/teaser/components/teaser_topline.hbs +1 -1
- package/dist/views/components/teaser/teaser_alternativ.hbs +15 -9
- package/dist/views/components/teaser/teaser_poster.hbs +13 -0
- package/dist/views/components/teaser/teaser_standard.hbs +18 -9
- package/package.json +1 -1
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif.json +14 -0
- package/src/assets/fixtures/teaser/teaser_alternative_25_serif.json +21 -0
- package/src/assets/fixtures/teaser/teaser_alternative_33_serif.json +21 -0
- package/src/assets/fixtures/teaser/teaser_alternative_50_serif.json +14 -0
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif.json +10 -0
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_comments.json +10 -0
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_label.json +21 -0
- package/src/assets/fixtures/teaser/teaser_group_100_2x_50.inc.json +27 -28
- package/src/assets/fixtures/teaser/teaser_images.inc.json +139 -102
- package/src/assets/fixtures/teaser/teaser_poster_lg.json +29 -0
- package/src/assets/fixtures/teaser/teaser_poster_md.json +28 -0
- package/src/assets/fixtures/teaser/teaser_poster_md_label.json +74 -0
- package/src/assets/fixtures/teaser/{teaser_standard_xl_serif.json → teaser_standard_100_serif.json} +2 -2
- package/src/assets/fixtures/teaser/{teaser_standard_sm_serif.json → teaser_standard_25_serif.json} +4 -4
- package/src/assets/fixtures/teaser/{teaser_standard_md_serif.json → teaser_standard_33_serif.json} +4 -4
- package/src/assets/fixtures/teaser/{teaser_standard_lg_serif.json → teaser_standard_50_serif.json} +2 -2
- package/src/assets/fixtures/teaser/{teaser_standard_xxl_serif.json → teaser_standard_hero_serif.json} +0 -0
- package/src/assets/fixtures/teaser/{teaser_standard_xxl_serif_comments.json → teaser_standard_hero_serif_comments.json} +0 -0
- package/src/assets/fixtures/teaser/{teaser_standard_xxl_serif_label.json → teaser_standard_hero_serif_label.json} +0 -7
- package/src/assets/fixtures/teaser/teasers.inc.json +47 -38
- package/src/stories/views/components/base/image/responsive_image.hbs +11 -11
- package/src/stories/views/components/base/link.hbs +8 -8
- package/src/stories/views/components/base/load_dynamic.hbs +3 -0
- package/src/stories/views/components/page/page.hbs +13 -13
- package/src/stories/views/components/page/page.stories.mdx +18 -9
- package/src/stories/views/components/site_header/navigation.json +33 -99
- package/src/stories/views/components/site_header/navigation2.json +586 -651
- package/src/stories/views/components/site_header/navigation3.json +644 -723
- package/src/stories/views/components/site_header/navigation4.json +40 -120
- package/src/stories/views/components/site_header/navigation_flyout/navigation_flyout.hbs +0 -1
- package/src/stories/views/components/site_header/navigation_flyout/navigation_flyout_column.hbs +0 -1
- package/src/stories/views/components/site_header/navigation_flyout/navigation_flyout_item.hbs +3 -4
- package/src/stories/views/components/teaser/components/teaser_byline.hbs +5 -4
- package/src/stories/views/components/teaser/components/teaser_byline.stories.mdx +18 -18
- package/src/stories/views/components/teaser/components/teaser_comments.hbs +3 -3
- package/src/stories/views/components/teaser/components/teaser_heading.hbs +11 -13
- package/src/stories/views/components/teaser/components/teaser_heading.stories.mdx +106 -119
- package/src/stories/views/components/teaser/components/teaser_text.hbs +8 -1
- package/src/stories/views/components/teaser/components/teaser_text.stories.mdx +44 -44
- package/src/stories/views/components/teaser/components/teaser_title.hbs +13 -1
- package/src/stories/views/components/teaser/components/teaser_title.stories.mdx +66 -48
- package/src/stories/views/components/teaser/components/teaser_topline.hbs +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_25_serif.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_33_serif.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_comments.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_label.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_comments_without_teaserinfo.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_index.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster_lg.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_poster_md.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_poster_md_label.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_comments.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_label.json +1 -0
- package/src/stories/views/components/teaser/teaser_alternativ.hbs +15 -9
- package/src/stories/views/components/teaser/teaser_alternativ.stories.mdx +52 -54
- package/src/stories/views/components/teaser/teaser_poster.hbs +13 -0
- package/src/stories/views/components/teaser/teaser_poster.stories.mdx +53 -0
- package/src/stories/views/components/teaser/teaser_standard.hbs +18 -9
- package/src/stories/views/components/teaser/teaser_standard.stories.mdx +20 -17
- package/src/stories/views/components/teaser/fixtures/teaser_standard_lg_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_md_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_sm_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_xl_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_xxl_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_xxl_serif_comments.json +0 -1
- 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
|
package/dist/assets/index.css
CHANGED
|
@@ -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
|
|
13
|
+
{{#withParam this.responsiveImage type variant }}
|
|
14
14
|
{{#if this.asPicture}}
|
|
15
|
-
<picture class="
|
|
15
|
+
<picture class="{{~#if ../addClass}} {{../addClass}}{{/if}}">
|
|
16
16
|
{{#unless _disableNoScript}}
|
|
17
17
|
<noscript>
|
|
18
|
-
<img class="
|
|
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="
|
|
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 ../../
|
|
35
|
-
{{#unless ../../
|
|
34
|
+
{{~#with ../../addClass }}<div class="{{this}}">{{/with}}
|
|
35
|
+
{{#unless ../../disableNoScript}}
|
|
36
36
|
<noscript>
|
|
37
|
-
<img class="
|
|
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 ../../
|
|
42
|
-
{{#with this.srcset}} {{#if ../../../
|
|
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 ../../
|
|
45
|
-
{{~#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
|
|
4
|
-
{{#if ../
|
|
5
|
-
data-new-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "1","clickLabel":"{{../
|
|
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 ../
|
|
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::{{
|
|
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
|
|
15
|
+
{{#if ../isAriaHidden}} aria-hidden="true" tabindex="-1"{{/if}}
|
|
16
16
|
>
|
|
17
|
+
{{/with}}
|
|
17
18
|
{{> @partial-block }}
|
|
18
|
-
</a>
|
|
19
|
-
{{/with}}
|
|
19
|
+
</a>
|
|
@@ -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
|
|
37
|
-
{{> components/teaser/teaser_standard
|
|
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
|
|
41
|
-
{{> components/teaser/teaser_standard
|
|
42
|
-
{{> components/teaser/teaser_standard
|
|
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
|
|
46
|
-
{{> components/teaser/teaser_standard
|
|
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
|
|
50
|
-
{{> components/teaser/teaser_standard
|
|
51
|
-
{{> components/teaser/teaser_standard
|
|
52
|
-
{{> components/teaser/teaser_standard
|
|
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
|
|
56
|
-
{{> components/teaser/teaser_standard
|
|
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
|
<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
|
-
|
|
5
|
-
{{
|
|
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
|
-
{{
|
|
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
|
|
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.
|
|
7
|
-
{{#if this.
|
|
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
|
-
{{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
{{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
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
|
|
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,15 +1,21 @@
|
|
|
1
|
-
<article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch
|
|
2
|
-
<figure class="{{inline-switch
|
|
3
|
-
{{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.
|
|
4
|
-
{{~> components/base/image/responsive_image this.
|
|
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
|
|
8
|
-
<header class="md:px-0 {{inline-switch teasersize '["
|
|
9
|
-
{{> components/teaser/components/teaser_heading
|
|
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
|
|
12
|
-
{{> components/teaser/components/teaser_text text=shorttext size=
|
|
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
|
|
2
|
-
<figure class="{{inline-switch
|
|
3
|
-
{{#>components/base/link
|
|
4
|
-
{{~> components/base/image/responsive_image this.
|
|
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
|
|
8
|
-
<header class="md:px-0 {{inline-switch
|
|
9
|
-
{{
|
|
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
|
|
12
|
-
{{> components/teaser/components/teaser_text text=shorttext size=
|
|
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.
|
|
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
|
+
}
|