hr-design-system-handlebars 1.1.3 → 1.1.5
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 +24 -0
- package/dist/assets/index.css +98 -55
- package/dist/assets/js/components/event/filtererDs.feature.js +42 -38
- package/dist/views/components/button/button_round_classes.hbs +8 -8
- package/dist/views/components/event/calendar/event_calendar_event_teaser.hbs +2 -2
- package/dist/views/components/geoTag/geoTag.hbs +1 -1
- package/dist/views/components/grid/grid_group_highlight.hbs +1 -1
- package/dist/views/components/grid/grid_group_tabbed.hbs +1 -1
- package/dist/views/components/grid/grid_group_wrapper_classes.hbs +1 -1
- package/dist/views/components/teaser/teaser_stage.hbs +1 -1
- package/package.json +1 -1
- package/src/assets/css/custom-utilities.css +46 -33
- package/src/stories/views/components/button/button_round_classes.hbs +8 -8
- package/src/stories/views/components/event/calendar/event_calendar_components.stories.mdx +1 -1
- package/src/stories/views/components/event/calendar/event_calendar_event_teaser.hbs +2 -2
- package/src/stories/views/components/event/filtererDs.feature.js +42 -38
- package/src/stories/views/components/geoTag/geoTag.hbs +1 -1
- package/src/stories/views/components/grid/grid_group_highlight.hbs +1 -1
- package/src/stories/views/components/grid/grid_group_tabbed.hbs +1 -1
- package/src/stories/views/components/grid/grid_group_wrapper_classes.hbs +1 -1
- package/src/stories/views/components/teaser/cluster/teaser_cluster.stories.mdx +10 -12
- package/src/stories/views/components/teaser/content_nav/teaser_content_nav.stories.mdx +4 -5
- package/src/stories/views/components/teaser/group_teaser/group.stories.mdx +51 -59
- package/src/stories/views/components/teaser/podcast/podcast.stories.mdx +26 -28
- package/src/stories/views/components/teaser/teaser_alternativ.stories.mdx +15 -6
- package/src/stories/views/components/teaser/teaser_alternativ_av.stories.mdx +1 -1
- package/src/stories/views/components/teaser/teaser_event_calendar.stories.mdx +1 -1
- package/src/stories/views/components/teaser/teaser_indextext.stories.mdx +26 -14
- package/src/stories/views/components/teaser/teaser_logic/teaser_logic.stories.mdx +17 -17
- package/src/stories/views/components/teaser/teaser_poster.stories.mdx +38 -19
- package/src/stories/views/components/teaser/teaser_stage.hbs +1 -1
- package/src/stories/views/components/teaser/teaser_standard.stories.mdx +40 -26
- package/src/stories/views/components/teaser/teaser_standard_av.stories.mdx +3 -3
- package/src/stories/views/components/teaser/teaser_standard_event.stories.mdx +3 -3
- package/tailwind.config.js +1 -0
|
@@ -22,10 +22,10 @@ import teaser33LongGeotag from './fixtures/teaser_standard_33_long_geotag.json'
|
|
|
22
22
|
title="Komponenten/Teaser/Standard"
|
|
23
23
|
parameters={{
|
|
24
24
|
layout: 'fullscreen',
|
|
25
|
-
|
|
25
|
+
chromatic: {
|
|
26
26
|
viewports: [360, 1024],
|
|
27
|
-
diffThreshold: 0.5
|
|
28
|
-
}
|
|
27
|
+
diffThreshold: 0.5,
|
|
28
|
+
},
|
|
29
29
|
}}
|
|
30
30
|
argTypes={{
|
|
31
31
|
teaserSize: {
|
|
@@ -43,7 +43,7 @@ import teaser33LongGeotag from './fixtures/teaser_standard_33_long_geotag.json'
|
|
|
43
43
|
}}
|
|
44
44
|
decorators={[
|
|
45
45
|
(Story) => {
|
|
46
|
-
return `<div class="grid grid-page"><div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-
|
|
46
|
+
return `<div class="grid grid-page"><div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
47
47
|
${Story()}
|
|
48
48
|
</div></div>`
|
|
49
49
|
},
|
|
@@ -58,35 +58,44 @@ export const Template = (args, { globals: { customConditionalToolbar } }) => {
|
|
|
58
58
|
return teaser({ brand, ...args })
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
# Standard-Teaser
|
|
61
|
+
# Standard-Teaser
|
|
62
62
|
|
|
63
63
|
## Beschreibung
|
|
64
64
|
|
|
65
|
-
|
|
66
65
|
Der Standard-Teaser besteht aus 2 Hauptelemente: <b>Bild</b> und <b>Text</b> (Label, Dachzeile, Titel, Teasertext, Zusatzinformationen)
|
|
67
66
|
|
|
68
|
-
<b>Standard Hero:</b> <br/>
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
<b>Standard Hero:</b> <br />
|
|
68
|
+
Desktop = Text unter dem Bild <br />
|
|
69
|
+
Mobile = Text unter dem Bild <b>ohne</b> Teasertext <br />
|
|
71
70
|
|
|
72
|
-
<b>Standard 100%, 50%, 33%:</b> <br/>
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
<b>Standard 100%, 50%, 33%:</b> <br />
|
|
72
|
+
Desktop = Text unter dem Bild <br />
|
|
73
|
+
Mobile = Text unter dem Bild ohne Teasertext <br />
|
|
75
74
|
|
|
76
|
-
<b>Standard 25%:</b> <br/>
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
<b>Standard 25%:</b> <br />
|
|
76
|
+
Desktop = Text unter dem Bild ohne Teasertext <br />
|
|
77
|
+
Mobile = Bild(1x1) neben Text ohne Teasertext <br />
|
|
79
78
|
|
|
80
79
|
## Sub-Komponenten
|
|
81
80
|
|
|
82
81
|
Die Standard-Teaser-Komponente inkludiert folgende Komponenten:
|
|
83
82
|
|
|
84
83
|
<ul>
|
|
85
|
-
<li>
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
<li>
|
|
89
|
-
|
|
84
|
+
<li>
|
|
85
|
+
components/teaser/components/<b>teaser_lead</b>
|
|
86
|
+
</li>
|
|
87
|
+
<li>
|
|
88
|
+
components/base/<b>link</b>
|
|
89
|
+
</li>
|
|
90
|
+
<li>
|
|
91
|
+
components/teaser/components/<b>teaser_heading</b>
|
|
92
|
+
</li>
|
|
93
|
+
<li>
|
|
94
|
+
components/teaser/components/<b>teaser_text</b>
|
|
95
|
+
</li>
|
|
96
|
+
<li>
|
|
97
|
+
components/teaser/components/<b>teaser_byline</b>
|
|
98
|
+
</li>
|
|
90
99
|
</ul>
|
|
91
100
|
|
|
92
101
|
## Verwendung
|
|
@@ -94,7 +103,7 @@ Die Standard-Teaser-Komponente inkludiert folgende Komponenten:
|
|
|
94
103
|
Die Standard-Teaser-Komponente wird in handlebars wie folgt eingebaut:
|
|
95
104
|
|
|
96
105
|
```html
|
|
97
|
-
{{> components/teaser/teaser_standard}}
|
|
106
|
+
{{> components/teaser/teaser_standard}}
|
|
98
107
|
```
|
|
99
108
|
|
|
100
109
|
<Preview withToolbar>
|
|
@@ -119,16 +128,19 @@ Die Standard-Teaser-Komponente wird in handlebars wie folgt eingebaut:
|
|
|
119
128
|
<Story name="Standard 100 mit externem Link" args={teaser100Link.logicItem.includeModel}>
|
|
120
129
|
{Template.bind({})}
|
|
121
130
|
</Story>
|
|
122
|
-
|
|
131
|
+
<Story name="Standard 100 mit Sendungsdokument" args={teaser100Program.logicItem.includeModel}>
|
|
123
132
|
{Template.bind({})}
|
|
124
133
|
</Story>
|
|
125
134
|
<Story name="Standard 50" args={teaser50Serif.logicItem.includeModel}>
|
|
126
135
|
{Template.bind({})}
|
|
127
136
|
</Story>
|
|
128
|
-
<Story
|
|
137
|
+
<Story
|
|
138
|
+
name="Standard 50 ohne Teaserbild"
|
|
139
|
+
args={teaser50SerifWithoutTeaserImage.logicItem.includeModel}
|
|
140
|
+
>
|
|
129
141
|
{Template.bind({})}
|
|
130
142
|
</Story>
|
|
131
|
-
|
|
143
|
+
<Story name="Standard 50 mit externem Link" args={teaser50Link.logicItem.includeModel}>
|
|
132
144
|
{Template.bind({})}
|
|
133
145
|
</Story>
|
|
134
146
|
<Story name="Standard 33" args={teaser33Serif.logicItem.includeModel}>
|
|
@@ -140,7 +152,10 @@ Die Standard-Teaser-Komponente wird in handlebars wie folgt eingebaut:
|
|
|
140
152
|
<Story name="Standard 25" args={teaser25Serif.logicItem.includeModel}>
|
|
141
153
|
{Template.bind({})}
|
|
142
154
|
</Story>
|
|
143
|
-
<Story
|
|
155
|
+
<Story
|
|
156
|
+
name="Standard 25 ohne Teaserbild"
|
|
157
|
+
args={teaser25SerifWithoutTeaserimage.logicItem.includeModel}
|
|
158
|
+
>
|
|
144
159
|
{Template.bind({})}
|
|
145
160
|
</Story>
|
|
146
161
|
<Story name="Standard 25 mit externem Link" args={teaser25Link.logicItem.includeModel}>
|
|
@@ -153,4 +168,3 @@ Die Standard-Teaser-Komponente wird in handlebars wie folgt eingebaut:
|
|
|
153
168
|
{Template.bind({})}
|
|
154
169
|
</Story>
|
|
155
170
|
</Preview>
|
|
156
|
-
|
|
@@ -17,8 +17,8 @@ import teaser25live from './fixtures/teaser_standard_25_serif_live.json'
|
|
|
17
17
|
parameters={{
|
|
18
18
|
layout: 'fullscreen',
|
|
19
19
|
chromatic: {
|
|
20
|
-
diffThreshold: 0.5
|
|
21
|
-
}
|
|
20
|
+
diffThreshold: 0.5,
|
|
21
|
+
},
|
|
22
22
|
}}
|
|
23
23
|
argTypes={{
|
|
24
24
|
teaserSize: {
|
|
@@ -36,7 +36,7 @@ import teaser25live from './fixtures/teaser_standard_25_serif_live.json'
|
|
|
36
36
|
}}
|
|
37
37
|
decorators={[
|
|
38
38
|
(Story) => {
|
|
39
|
-
return `<div class="grid grid-page"><div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-
|
|
39
|
+
return `<div class="grid grid-page"><div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
40
40
|
${Story()}
|
|
41
41
|
</div></div>`
|
|
42
42
|
},
|
|
@@ -15,8 +15,8 @@ import teaserAlternative100TwoEventsSerif from './fixtures/teaser_alternative_10
|
|
|
15
15
|
parameters={{
|
|
16
16
|
layout: 'fullscreen',
|
|
17
17
|
chromatic: {
|
|
18
|
-
diffThreshold: 0.5
|
|
19
|
-
}
|
|
18
|
+
diffThreshold: 0.5,
|
|
19
|
+
},
|
|
20
20
|
}}
|
|
21
21
|
argTypes={{
|
|
22
22
|
teaserSize: {
|
|
@@ -34,7 +34,7 @@ import teaserAlternative100TwoEventsSerif from './fixtures/teaser_alternative_10
|
|
|
34
34
|
}}
|
|
35
35
|
decorators={[
|
|
36
36
|
(Story) => {
|
|
37
|
-
return `<div class="grid grid-page"><div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-
|
|
37
|
+
return `<div class="grid grid-page"><div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
38
38
|
${Story()}
|
|
39
39
|
</div></div>`
|
|
40
40
|
},
|