hr-design-system-handlebars 0.47.14 → 0.47.17
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 +37 -0
- package/dist/assets/index.css +10 -2
- package/dist/views/components/teaser/components/teaser_title_classes.hbs +5 -1
- package/dist/views/components/teaser/teaser_poster.hbs +2 -2
- package/package.json +1 -1
- package/src/stories/views/components/teaser/components/teaser_byline.stories.mdx +52 -1
- package/src/stories/views/components/teaser/components/teaser_title.stories.mdx +34 -2
- package/src/stories/views/components/teaser/components/teaser_title_classes.hbs +5 -1
- package/src/stories/views/components/teaser/components/teaser_topline.stories.mdx +26 -4
- package/src/stories/views/components/teaser/teaser_alternativ.stories.mdx +43 -3
- package/src/stories/views/components/teaser/teaser_poster.hbs +2 -2
- package/src/stories/views/components/teaser/teaser_poster.stories.mdx +15 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
# v0.47.17 (Mon Jun 27 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Alternativ-Teaser Documentation [#252](https://github.com/mumprod/hr-design-system-handlebars/pull/252) (zouhair1 [@selbaciri](https://github.com/selbaciri))
|
|
6
|
+
|
|
7
|
+
#### Authors: 2
|
|
8
|
+
|
|
9
|
+
- Saad El Baciri ([@selbaciri](https://github.com/selbaciri))
|
|
10
|
+
- selbaciri (zouhair1)
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# v0.47.16 (Mon Jun 27 2022)
|
|
15
|
+
|
|
16
|
+
#### 🐛 Bug Fix
|
|
17
|
+
|
|
18
|
+
- add documentation [#251](https://github.com/mumprod/hr-design-system-handlebars/pull/251) ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
19
|
+
|
|
20
|
+
#### Authors: 1
|
|
21
|
+
|
|
22
|
+
- Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# v0.47.15 (Thu Jun 23 2022)
|
|
27
|
+
|
|
28
|
+
#### 🐛 Bug Fix
|
|
29
|
+
|
|
30
|
+
- Posterteaser-final [#250](https://github.com/mumprod/hr-design-system-handlebars/pull/250) ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
31
|
+
|
|
32
|
+
#### Authors: 1
|
|
33
|
+
|
|
34
|
+
- Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
1
38
|
# v0.47.14 (Tue Jun 21 2022)
|
|
2
39
|
|
|
3
40
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -1548,6 +1548,10 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1548
1548
|
margin-left: 1.25rem;
|
|
1549
1549
|
margin-right: 1.25rem;
|
|
1550
1550
|
}
|
|
1551
|
+
.mx-8 {
|
|
1552
|
+
margin-left: 2rem;
|
|
1553
|
+
margin-right: 2rem;
|
|
1554
|
+
}
|
|
1551
1555
|
.mx-px {
|
|
1552
1556
|
margin-left: 1px;
|
|
1553
1557
|
margin-right: 1px;
|
|
@@ -1573,8 +1577,8 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1573
1577
|
.-mt-10 {
|
|
1574
1578
|
margin-top: -2.5rem;
|
|
1575
1579
|
}
|
|
1576
|
-
.mb-
|
|
1577
|
-
margin-bottom:
|
|
1580
|
+
.mb-8 {
|
|
1581
|
+
margin-bottom: 2rem;
|
|
1578
1582
|
}
|
|
1579
1583
|
.mr-4 {
|
|
1580
1584
|
margin-right: 1rem;
|
|
@@ -2706,6 +2710,10 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2706
2710
|
margin-top: -10rem;
|
|
2707
2711
|
}
|
|
2708
2712
|
|
|
2713
|
+
.md\:mb-16 {
|
|
2714
|
+
margin-bottom: 4rem;
|
|
2715
|
+
}
|
|
2716
|
+
|
|
2709
2717
|
.md\:block {
|
|
2710
2718
|
display: block;
|
|
2711
2719
|
}
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
{{~> components/base/image/responsive_image this.teaserImage type=this.teaserType variant=this.content.imageVariant noDelay=../_noDelay addClassImg="ar__content rounded-tl-3xl rounded-br-3xl" ~}}
|
|
4
4
|
</figure>
|
|
5
5
|
<div class="absolute flex justify-center w-full h-full bg-gradient-to-t from-black rounded-tl-3xl rounded-br-3xl" aria-hidden="true">
|
|
6
|
-
<div class="self-center block mx-
|
|
6
|
+
<div class="self-center block mx-8 text-center text-white">
|
|
7
7
|
{{> components/teaser/components/teaser_heading headlineTag="h2" size=teaserSize font=(inline-switch isSerifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') }}
|
|
8
8
|
</div>
|
|
9
9
|
</div>
|
|
10
10
|
{{#>components/base/link css="absolute flex w-full h-full justify-center" isAriaHidden=true doTracking=(if this.doTracking 'true') clickLabelPrefix1=this.teaserSize clickLabelPrefix2="mediaLink" }}
|
|
11
|
-
<div class="self-end px-2 text-white border border-white
|
|
11
|
+
<div class="self-end px-2 {{inline-switch teaserSize '["33","50"]' '["mb-8","mb-8 md:mb-16"]'}} text-white border border-white font-heading">{{this.link.readMoreText.readMoreLong}}</div>
|
|
12
12
|
{{/components/base/link}}
|
|
13
13
|
<span class="sr-only">{{this.link.readMoreText.readMoreLong}}: {{this.title}}</span>
|
|
14
14
|
</article>
|
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.47.
|
|
9
|
+
"version": "0.47.17",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "start-storybook -p 6006 public",
|
|
@@ -12,6 +12,57 @@ export const Template = ({ ...args }) => {
|
|
|
12
12
|
|
|
13
13
|
# Byline
|
|
14
14
|
|
|
15
|
+
## Beschreibung
|
|
16
|
+
|
|
17
|
+
In der Byline-Komponente werden folgende Teaser-Zusatzinformationen angezeigt:
|
|
18
|
+
|
|
19
|
+
<ul>
|
|
20
|
+
<li><b>Datum</b> (mit oder ohne Uhrzeit)</li>
|
|
21
|
+
<li><b>Strukturknoten</b> (Rubrik)</li>
|
|
22
|
+
<li><b>Autor(en)</b></li>
|
|
23
|
+
<li><b>Link zu den Kommentaren des Artikels</b> (mit aktueller Kommentar-Anzahl)</li>
|
|
24
|
+
</ul>
|
|
25
|
+
|
|
26
|
+
Alle Informationen sind optional. Der Kommentar-Link wird per SSI eingebunden und ist in components/teaser/components/teaser_comments.hbs implementiert.
|
|
27
|
+
|
|
28
|
+
## Sub-Komponenten
|
|
29
|
+
|
|
30
|
+
Die Byline-Komponente inkludiert folgende Komponenten:
|
|
31
|
+
|
|
32
|
+
<ul>
|
|
33
|
+
<li>components/base/<b>loadSSI</b></li>
|
|
34
|
+
<li>components/teaser/components/<b>teaser_comments</b></li>
|
|
35
|
+
</ul>
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## Props
|
|
39
|
+
|
|
40
|
+
Die Byline-Komponente benötigt die folgenden json-Daten (enthalten im Teaser-Json im Objekt <b>logicItem.includeModel</b>):
|
|
41
|
+
|
|
42
|
+
<ul>
|
|
43
|
+
<li><b>teaserInfo</b></li>
|
|
44
|
+
<li><b>teaserInfo.showTeaserInfo</b></li>
|
|
45
|
+
<li><b>teaserInfo.showTeaserInfoDate</b></li>
|
|
46
|
+
<li><b>teaserInfo.showTeaserInfoDateTime</b></li>
|
|
47
|
+
<li><b>teaserInfo.showTeaserInfoSection</b></li>
|
|
48
|
+
<li><b>teaserDate</b></li>
|
|
49
|
+
<li><b>teaserDate.htmlDateTime</b></li>
|
|
50
|
+
<li><b>teaserDate.date</b></li>
|
|
51
|
+
<li><b>teaserDate.dateSeparatorTime</b></li>
|
|
52
|
+
<li><b>documentSection</b></li>
|
|
53
|
+
<li><b>profiles</b></li>
|
|
54
|
+
</ul>
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## Verwendung
|
|
58
|
+
|
|
59
|
+
Die Byline-Komponente wird in handlebars wie folgt eingebaut:
|
|
60
|
+
|
|
61
|
+
```html
|
|
62
|
+
{{> components/teaser/components/teaser_byline}}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
|
|
15
66
|
<Preview withToolbar>
|
|
16
67
|
<Story name="default" args={teaserWithoutComments.logicItem.includeModel}>
|
|
17
68
|
{Template.bind({})}
|
|
@@ -24,4 +75,4 @@ export const Template = ({ ...args }) => {
|
|
|
24
75
|
</Story>
|
|
25
76
|
</Preview>
|
|
26
77
|
|
|
27
|
-
<ArgsTable story="default" />
|
|
78
|
+
<ArgsTable story="default" />
|
|
@@ -42,7 +42,39 @@ export const Template = ({ text, ...args }) => {
|
|
|
42
42
|
|
|
43
43
|
# Titel
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
## Beschreibung
|
|
46
|
+
|
|
47
|
+
In der Titel-Komponente wird der Titel des Artikels dargestellt. Textgröße und Schriftart werden
|
|
48
|
+
anhand der Parameter <b>teaserType</b> und <b>fontVariant</b> in der inkludierten Sub-Komponente <b>teaser_title_classes</b> ermitelt.
|
|
49
|
+
|
|
50
|
+
## Sub-Komponenten
|
|
51
|
+
|
|
52
|
+
Die Titel-Komponente inkludiert folgende Komponenten:
|
|
53
|
+
|
|
54
|
+
<ul>
|
|
55
|
+
<li>components/teaser/components/<b>teaser_title_classes</b></li>
|
|
56
|
+
</ul>
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## Parameter
|
|
60
|
+
|
|
61
|
+
Die Titel-Komponente benötigt folgende Parameter:
|
|
62
|
+
|
|
63
|
+
<ul>
|
|
64
|
+
<li><b>text</b></li>
|
|
65
|
+
<li><b>fontVariant</b></li>
|
|
66
|
+
<li><b>size</b></li>
|
|
67
|
+
<li><b>teaserType</b></li>
|
|
68
|
+
</ul>
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## Verwendung
|
|
72
|
+
|
|
73
|
+
Die Titel-Komponente wird in handlebars wie folgt eingebaut:
|
|
74
|
+
|
|
75
|
+
```html
|
|
76
|
+
{{> components/teaser/components/teaser_title text=title fontVariant=fontVariant size=size teaserType=teaserType}}
|
|
77
|
+
```
|
|
46
78
|
|
|
47
79
|
<Preview withToolbar>
|
|
48
80
|
<Story
|
|
@@ -80,4 +112,4 @@ Beispiele für die Titel-Komponente:
|
|
|
80
112
|
</Story>
|
|
81
113
|
</Preview>
|
|
82
114
|
|
|
83
|
-
<ArgsTable story="
|
|
115
|
+
<ArgsTable story="Titel Serif - Hero" />
|
|
@@ -3,7 +3,7 @@ import { ArgsTable, Meta, Story, Preview } from "@storybook/addon-docs";
|
|
|
3
3
|
import topline from "./teaser_topline.hbs";
|
|
4
4
|
|
|
5
5
|
<Meta
|
|
6
|
-
title="Komponenten/Teaser/Komponenten/
|
|
6
|
+
title="Komponenten/Teaser/Komponenten/Topline"
|
|
7
7
|
argTypes={{
|
|
8
8
|
text: {
|
|
9
9
|
control: "text",
|
|
@@ -20,11 +20,33 @@ export const Template = ({ text, ...args }) => {
|
|
|
20
20
|
|
|
21
21
|
# Topline
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
## Beschreibung
|
|
24
|
+
|
|
25
|
+
In der Topline-Komponente wird die Dachzeile des Artikels dargestellt.
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## Parameter
|
|
29
|
+
|
|
30
|
+
Die Topline-Komponente benötigt folgende Parameter:
|
|
31
|
+
|
|
32
|
+
<ul>
|
|
33
|
+
<li><b>teaserType</b></li>
|
|
34
|
+
<li><b>readMore</b></li>
|
|
35
|
+
<li><b>text</b></li>
|
|
36
|
+
</ul>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## Verwendung
|
|
40
|
+
|
|
41
|
+
Die Topline-Komponente wird in handlebars wie folgt eingebaut:
|
|
42
|
+
|
|
43
|
+
```html
|
|
44
|
+
{{> components/teaser/components/teaser_topline text=topline readMore=readMore teaserType=teaserType}}
|
|
45
|
+
```
|
|
24
46
|
|
|
25
47
|
<Preview withToolbar>
|
|
26
48
|
<Story
|
|
27
|
-
name="
|
|
49
|
+
name="default"
|
|
28
50
|
args={{
|
|
29
51
|
text:
|
|
30
52
|
"Dies ist die Dachzeile",
|
|
@@ -34,4 +56,4 @@ Beispieltext für die Topline-Komponente:
|
|
|
34
56
|
</Story>
|
|
35
57
|
</Preview>
|
|
36
58
|
|
|
37
|
-
<ArgsTable story="
|
|
59
|
+
<ArgsTable story="default" />
|
|
@@ -45,11 +45,29 @@ export const Template = (args, { globals: { customConditionalToolbar } }) => {
|
|
|
45
45
|
return teaser({ brand, ...args })
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
#
|
|
48
|
+
# Alternativ-Teaser
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
## Beschreibung
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
Der Alternativ-Teaser besteht aus 2 Hauptelemente: <b>Bild</b> und <b>Text</b> (Label, Dachzeile, Titel, Teasertext, Zusatzinformationen)
|
|
54
|
+
|
|
55
|
+
<b>Alternativ Hero:</b> <br/>
|
|
56
|
+
Desktop = Bild(2/3) neben Text(1/3) <br/>
|
|
57
|
+
Mobile = Verhalten wie bei 100% Standard-Teaser <br/>
|
|
58
|
+
|
|
59
|
+
<b>Alternativ 100%:</b> <br/>
|
|
60
|
+
Desktop = Bild(1/3) neben Text(2/3) <br/>
|
|
61
|
+
Mobile = Verhalten wie bei 100% Standard-Teaser <br/>
|
|
62
|
+
|
|
63
|
+
<b>Alternativ 50%:</b> <br/>
|
|
64
|
+
Desktop = Bild(1/3) neben Text(2/3) <br/>
|
|
65
|
+
Mobile = Verhalten wie bei 100% Standard-Teaser <br/>
|
|
66
|
+
|
|
67
|
+
Der Alternativ-Teaser soll nur als 100%- bzw. 50%-Teaser verwendet werden.
|
|
51
68
|
|
|
52
69
|
<Preview withToolbar>
|
|
70
|
+
<b>Alternativ Hero</b>
|
|
53
71
|
<Story name="Alternativ Hero" args={heroTeaser.logicItem.includeModel}>
|
|
54
72
|
{Template.bind({})}
|
|
55
73
|
</Story>
|
|
@@ -62,10 +80,32 @@ Ein toller Einleitungstext für unsere `Teaser` Komponente:
|
|
|
62
80
|
<Story name="Alternativ Hero mit Label" args={heroTeaserWithLabel.logicItem.includeModel}>
|
|
63
81
|
{Template.bind({})}
|
|
64
82
|
</Story>
|
|
83
|
+
<b>Alternativ 100%</b>
|
|
65
84
|
<Story name="Alternativ 100" args={teaser100.logicItem.includeModel}>
|
|
66
85
|
{Template.bind({})}
|
|
67
86
|
</Story>
|
|
87
|
+
<b>Alternativ 50%</b>
|
|
68
88
|
<Story name="Alternativ 50" args={teaser50.logicItem.includeModel}>
|
|
69
89
|
{Template.bind({})}
|
|
70
90
|
</Story>
|
|
71
|
-
</Preview>
|
|
91
|
+
</Preview>
|
|
92
|
+
|
|
93
|
+
## Sub-Komponenten
|
|
94
|
+
|
|
95
|
+
Die Alternativ-Teaser-Komponente inkludiert folgende Komponenten:
|
|
96
|
+
|
|
97
|
+
<ul>
|
|
98
|
+
<li>components/base/image/<b>responsive_image</b></li>
|
|
99
|
+
<li>components/base/<b>link</b></li>
|
|
100
|
+
<li>components/teaser/components/<b>teaser_heading</b></li>
|
|
101
|
+
<li>components/teaser/components/<b>teaser_text</b></li>
|
|
102
|
+
<li>components/teaser/components/<b>teaser_byline</b></li>
|
|
103
|
+
</ul>
|
|
104
|
+
|
|
105
|
+
## Verwendung
|
|
106
|
+
|
|
107
|
+
Die Alternativ-Teaser-Komponente wird in handlebars wie folgt eingebaut:
|
|
108
|
+
|
|
109
|
+
```html
|
|
110
|
+
{{> components/teaser/teaser_alternativ}}
|
|
111
|
+
```
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
{{~> components/base/image/responsive_image this.teaserImage type=this.teaserType variant=this.content.imageVariant noDelay=../_noDelay addClassImg="ar__content rounded-tl-3xl rounded-br-3xl" ~}}
|
|
4
4
|
</figure>
|
|
5
5
|
<div class="absolute flex justify-center w-full h-full bg-gradient-to-t from-black rounded-tl-3xl rounded-br-3xl" aria-hidden="true">
|
|
6
|
-
<div class="self-center block mx-
|
|
6
|
+
<div class="self-center block mx-8 text-center text-white">
|
|
7
7
|
{{> components/teaser/components/teaser_heading headlineTag="h2" size=teaserSize font=(inline-switch isSerifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') }}
|
|
8
8
|
</div>
|
|
9
9
|
</div>
|
|
10
10
|
{{#>components/base/link css="absolute flex w-full h-full justify-center" isAriaHidden=true doTracking=(if this.doTracking 'true') clickLabelPrefix1=this.teaserSize clickLabelPrefix2="mediaLink" }}
|
|
11
|
-
<div class="self-end px-2 text-white border border-white
|
|
11
|
+
<div class="self-end px-2 {{inline-switch teaserSize '["33","50"]' '["mb-8","mb-8 md:mb-16"]'}} text-white border border-white font-heading">{{this.link.readMoreText.readMoreLong}}</div>
|
|
12
12
|
{{/components/base/link}}
|
|
13
13
|
<span class="sr-only">{{this.link.readMoreText.readMoreLong}}: {{this.title}}</span>
|
|
14
14
|
</article>
|
|
@@ -57,18 +57,6 @@ Inhalt dieses spans: Zusatztext + ": " + Titel
|
|
|
57
57
|
|
|
58
58
|
Der Poster-Teaser soll nur als 50%- bzw. 33%-Teaser verwendet werden. Diese Restriktion muss cms-seitig implementiert werden.
|
|
59
59
|
|
|
60
|
-
<Preview withToolbar>
|
|
61
|
-
<Story name="Poster 50" args={teserPosterLg.logicItem.includeModel}>
|
|
62
|
-
{Template.bind({})}
|
|
63
|
-
</Story>
|
|
64
|
-
<Story name="Poster 33" args={teserPosterMd.logicItem.includeModel}>
|
|
65
|
-
{Template.bind({})}
|
|
66
|
-
</Story>
|
|
67
|
-
<Story name="Poster 33 mit Label" args={teserPosterMdLabel.logicItem.includeModel}>
|
|
68
|
-
{Template.bind({})}
|
|
69
|
-
</Story>
|
|
70
|
-
</Preview>
|
|
71
|
-
|
|
72
60
|
|
|
73
61
|
## Sub-Komponenten
|
|
74
62
|
|
|
@@ -104,4 +92,18 @@ Die Poster-Teaser-Komponente wird in handlebars wie folgt eingebaut:
|
|
|
104
92
|
|
|
105
93
|
```html
|
|
106
94
|
{{> components/teaser/teaser_poster}}
|
|
107
|
-
```
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
<Preview withToolbar>
|
|
98
|
+
<Story name="Poster 50" args={teserPosterLg.logicItem.includeModel}>
|
|
99
|
+
{Template.bind({})}
|
|
100
|
+
</Story>
|
|
101
|
+
<Story name="Poster 33" args={teserPosterMd.logicItem.includeModel}>
|
|
102
|
+
{Template.bind({})}
|
|
103
|
+
</Story>
|
|
104
|
+
<Story name="Poster 33 mit Label" args={teserPosterMdLabel.logicItem.includeModel}>
|
|
105
|
+
{Template.bind({})}
|
|
106
|
+
</Story>
|
|
107
|
+
</Preview>
|
|
108
|
+
|
|
109
|
+
<ArgsTable story="Poster 50" />
|