hr-design-system-handlebars 0.46.0 → 0.47.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.
- package/CHANGELOG.md +12 -0
- package/dist/assets/index.css +4 -4
- 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 +2 -2
- 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/teaser_alternativ.hbs +15 -9
- 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 +112 -104
- 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 +2 -2
- 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/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_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_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,15 @@
|
|
|
1
|
+
# v0.47.0 (Fri May 20 2022)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- Feature/dpe 1579 [#234](https://github.com/mumprod/hr-design-system-handlebars/pull/234) ([@szuelch](https://github.com/szuelch))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- [@szuelch](https://github.com/szuelch)
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v0.46.0 (Fri May 13 2022)
|
|
2
14
|
|
|
3
15
|
#### 🚀 Enhancement
|
package/dist/assets/index.css
CHANGED
|
@@ -2543,14 +2543,14 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2543
2543
|
--tw-bg-opacity: 1;
|
|
2544
2544
|
background-color: rgba(0, 82, 147, var(--tw-bg-opacity));
|
|
2545
2545
|
}
|
|
2546
|
-
.hover\:text-white:hover {
|
|
2547
|
-
--tw-text-opacity: 1;
|
|
2548
|
-
color: rgba(255, 255, 255, var(--tw-text-opacity));
|
|
2549
|
-
}
|
|
2550
2546
|
.hover\:text-toplineColor:hover {
|
|
2551
2547
|
color: #006dc1;
|
|
2552
2548
|
color: var(--color-topline);
|
|
2553
2549
|
}
|
|
2550
|
+
.hover\:text-white:hover {
|
|
2551
|
+
--tw-text-opacity: 1;
|
|
2552
|
+
color: rgba(255, 255, 255, var(--tw-text-opacity));
|
|
2553
|
+
}
|
|
2554
2554
|
.hover\:underline:hover {
|
|
2555
2555
|
-webkit-text-decoration-line: underline;
|
|
2556
2556
|
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="picture {{~#if ../
|
|
15
|
+
<picture class="picture {{~#if ../addClass}} {{../addClass}}{{/if}}">
|
|
16
16
|
{{#unless _disableNoScript}}
|
|
17
17
|
<noscript>
|
|
18
|
-
<img class="image {{~#if ../
|
|
18
|
+
<img class="image {{~#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 ../
|
|
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}}>
|
|
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="image {{~#if ../../
|
|
37
|
+
<img class="image {{~#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="image imageSimple {{~#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>
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
{{#>components/base/link _cssClasses="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="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
|
|
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>
|
|
@@ -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="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
|
|
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.0",
|
|
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,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@->jsoninclude": "teaser/teasers.inc.json",
|
|
3
|
+
"@->contentpath": "teaser",
|
|
4
|
+
"@->overrides": [
|
|
5
|
+
{
|
|
6
|
+
"@->contentpath": "logicItem.includeModel.teaserType",
|
|
7
|
+
"@->value": "alternative"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"@->contentpath": "logicItem.includeModel.topline",
|
|
11
|
+
"@->value": ""
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"@->contentpath": "logicItem.includeModel.label",
|
|
15
|
+
"@->value": {
|
|
16
|
+
"@->jsoninclude": "teaser/teaser_labels.inc.json",
|
|
17
|
+
"@->contentpath": "ticker"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|