hr-design-system-handlebars 1.11.10 → 1.11.11
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/.babelrc.json +14 -0
- package/.storybook/main.js +34 -52
- package/.storybook/preview-head.html +4 -1
- package/.storybook/preview.js +25 -35
- package/CHANGELOG.md +17 -0
- package/dist/assets/index.css +11 -3
- package/package.json +20 -13
- package/src/assets/css/custom-utilities.css +3 -3
- package/src/stories/BrandColors.data.js +42 -0
- package/src/stories/BrandColors.mdx +25 -0
- package/src/stories/{Colors.stories.mdx → Colors.data.js} +2 -18
- package/src/stories/Colors.mdx +19 -0
- package/src/stories/Example.mdx +56 -0
- package/src/stories/Example.stories.js +57 -0
- package/src/stories/{Fixtures.stories.mdx → Fixtures.mdx} +3 -5
- package/src/stories/{InstallAndUpdate.stories.mdx → InstallAndUpdate.mdx} +0 -2
- package/src/stories/Introduction.mdx +3 -0
- package/src/stories/{SvgOptimization.stories.mdx → SvgOptimization.mdx} +0 -2
- package/src/stories/{Typography.stories.mdx → Typography.mdx} +13 -14
- package/src/stories/{conventions-and-datastructure.stories.mdx → conventions-and-datastructure.mdx} +7 -9
- package/src/stories/views/components/Button.mdx +30 -0
- package/src/stories/views/components/Button_.stories.js +77 -0
- package/src/stories/views/components/event/calendar/{event_calendar_components.stories.mdx → event_calendar_components.mdx} +31 -87
- package/src/stories/views/components/event/calendar/event_calendar_components.stories.js +129 -0
- package/src/stories/views/components/geoTag/geoTag.mdx +32 -0
- package/src/stories/views/components/geoTag/geoTag.stories.js +35 -0
- package/src/stories/views/components/grid/grid.mdx +210 -0
- package/src/stories/views/components/grid/grid.stories.js +148 -0
- package/src/stories/views/components/label/label.mdx +54 -0
- package/src/stories/views/components/label/label.stories.js +183 -0
- package/src/stories/views/components/page/page.data.js +17 -0
- package/src/stories/views/components/page/page.mdx +110 -0
- package/src/stories/views/components/page/page.stories.js +50 -0
- package/src/stories/views/components/page/page_pagination.data.js +8 -0
- package/src/stories/views/components/page/page_pagination.mdx +8 -0
- package/src/stories/views/components/page/page_pagination.stories.js +34 -0
- package/src/stories/views/components/page/page_player.mdx +21 -0
- package/src/stories/views/components/page/page_player.stories.js +34 -0
- package/src/stories/views/components/site_header/{header.stories.mdx → header.mdx} +218 -152
- package/src/stories/views/components/site_header/header.stories.js +62 -0
- package/src/stories/views/components/teaser/cluster/teaser_cluster.mdx +32 -0
- package/src/stories/views/components/teaser/cluster/teaser_cluster.stories.js +146 -0
- package/src/stories/views/components/teaser/components/teaser_byline.mdx +97 -0
- package/src/stories/views/components/teaser/components/teaser_byline.stories.js +30 -0
- package/src/stories/views/components/teaser/components/teaser_heading.mdx +96 -0
- package/src/stories/views/components/teaser/components/teaser_heading.stories.js +158 -0
- package/src/stories/views/components/teaser/components/teaser_text.mdx +36 -0
- package/src/stories/views/components/teaser/components/teaser_text.stories.js +74 -0
- package/src/stories/views/components/teaser/components/teaser_title.mdx +42 -0
- package/src/stories/views/components/teaser/components/teaser_title.stories.js +85 -0
- package/src/stories/views/components/teaser/components/teaser_topline.mdx +29 -0
- package/src/stories/views/components/teaser/components/teaser_topline.stories.js +27 -0
- package/src/stories/views/components/teaser/content_nav/teaser_content_nav.mdx +54 -0
- package/src/stories/views/components/teaser/content_nav/{teaser_content_nav.stories.mdx → teaser_content_nav.stories.js} +80 -61
- package/src/stories/views/components/teaser/group_teaser/group.mdx +18 -0
- package/src/stories/views/components/teaser/group_teaser/group.stories.js +85 -0
- package/src/stories/views/components/teaser/podcast/podcast.mdx +11 -0
- package/src/stories/views/components/teaser/podcast/{podcast.stories.mdx → podcast.stories.js} +50 -39
- package/src/stories/views/components/teaser/podcast/podcast_subscribe_button.mdx +10 -0
- package/src/stories/views/components/teaser/podcast/podcast_subscribe_button.stories.js +51 -0
- package/src/stories/views/components/teaser/tabbox/teaser_tabbox.mdx +10 -0
- package/src/stories/views/components/teaser/tabbox/teaser_tabbox.stories.js +40 -0
- package/src/stories/views/components/teaser/teaser_alternativ.mdx +76 -0
- package/src/stories/views/components/teaser/teaser_alternativ.stories.js +126 -0
- package/src/stories/views/components/teaser/teaser_alternativ_av.mdx +75 -0
- package/src/stories/views/components/teaser/teaser_alternativ_av.stories.js +111 -0
- package/src/stories/views/components/teaser/teaser_event_calendar.mdx +57 -0
- package/src/stories/views/components/teaser/teaser_event_calendar.stories.js +92 -0
- package/src/stories/views/components/teaser/teaser_indextext.mdx +35 -0
- package/src/stories/views/components/teaser/teaser_indextext.stories.js +85 -0
- package/src/stories/views/components/teaser/teaser_logic/teaser_logic.mdx +23 -0
- package/src/stories/views/components/teaser/teaser_logic/teaser_logic.stories.js +36 -0
- package/src/stories/views/components/teaser/teaser_poster.mdx +95 -0
- package/src/stories/views/components/teaser/teaser_poster.stories.js +67 -0
- package/src/stories/views/components/teaser/teaser_stage.mdx +15 -0
- package/src/stories/views/components/teaser/teaser_stage.stories.js +60 -0
- package/src/stories/views/components/teaser/teaser_standard.mdx +129 -0
- package/src/stories/views/components/teaser/teaser_standard.stories.js +166 -0
- package/src/stories/views/components/teaser/teaser_standard_av.mdx +38 -0
- package/src/stories/views/components/teaser/teaser_standard_av.stories.js +117 -0
- package/src/stories/views/components/teaser/teaser_standard_event.mdx +103 -0
- package/src/stories/views/components/teaser/teaser_standard_event.stories.js +119 -0
- package/src/stories/views/components/teaser/ticker/teaser_ticker.mdx +10 -0
- package/src/stories/views/components/teaser/ticker/{teaser_ticker.stories.mdx → teaser_ticker.stories.js} +25 -24
- package/.storybook/withThemeDecorator.js +0 -12
- package/src/stories/BrandColors.stories.mdx +0 -39
- package/src/stories/Example.stories.mdx +0 -93
- package/src/stories/Introduction.stories.mdx +0 -211
- package/src/stories/views/components/Button.stories.mdx +0 -82
- package/src/stories/views/components/geoTag/geoTag.stories.mdx +0 -61
- package/src/stories/views/components/grid/grid.stories.mdx +0 -275
- package/src/stories/views/components/label/label.stories.mdx +0 -200
- package/src/stories/views/components/page/page.stories.mdx +0 -144
- package/src/stories/views/components/page/page_pagination.stories.mdx +0 -36
- package/src/stories/views/components/page/page_player.stories.mdx +0 -43
- package/src/stories/views/components/teaser/cluster/teaser_cluster.stories.mdx +0 -97
- package/src/stories/views/components/teaser/components/teaser_byline.stories.mdx +0 -78
- package/src/stories/views/components/teaser/components/teaser_heading.stories.mdx +0 -219
- package/src/stories/views/components/teaser/components/teaser_text.stories.mdx +0 -94
- package/src/stories/views/components/teaser/components/teaser_title.stories.mdx +0 -124
- package/src/stories/views/components/teaser/components/teaser_topline.stories.mdx +0 -63
- package/src/stories/views/components/teaser/group_teaser/group.stories.mdx +0 -85
- package/src/stories/views/components/teaser/podcast/podcast_subscribe_button.stories.mdx +0 -52
- package/src/stories/views/components/teaser/tabbox/teaser_tabbox.stories.mdx +0 -39
- package/src/stories/views/components/teaser/teaser_alternativ.stories.mdx +0 -163
- package/src/stories/views/components/teaser/teaser_alternativ_av.stories.mdx +0 -142
- package/src/stories/views/components/teaser/teaser_event_calendar.stories.mdx +0 -131
- package/src/stories/views/components/teaser/teaser_indextext.stories.mdx +0 -111
- package/src/stories/views/components/teaser/teaser_logic/teaser_logic.stories.mdx +0 -39
- package/src/stories/views/components/teaser/teaser_poster.stories.mdx +0 -130
- package/src/stories/views/components/teaser/teaser_stage.stories.mdx +0 -53
- package/src/stories/views/components/teaser/teaser_standard.stories.mdx +0 -170
- package/src/stories/views/components/teaser/teaser_standard_av.stories.mdx +0 -95
- package/src/stories/views/components/teaser/teaser_standard_event.stories.mdx +0 -150
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
import { ArgsTable, Meta, Story, Canvas, Preview } from '@storybook/addon-docs'
|
|
2
|
-
|
|
3
|
-
import teaserHeading from './teaser_heading.hbs'
|
|
4
|
-
|
|
5
|
-
<Meta
|
|
6
|
-
title="Komponenten/Teaser/Komponenten/Teaserheading"
|
|
7
|
-
argTypes={{
|
|
8
|
-
_topline: {
|
|
9
|
-
control: 'text',
|
|
10
|
-
description: 'Text der Dachzeile',
|
|
11
|
-
},
|
|
12
|
-
_title: {
|
|
13
|
-
control: 'text',
|
|
14
|
-
description: 'Text der Überschrift',
|
|
15
|
-
},
|
|
16
|
-
_headlineTag: {
|
|
17
|
-
control: {
|
|
18
|
-
type: 'select',
|
|
19
|
-
options: ['span', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
|
|
20
|
-
},
|
|
21
|
-
description: 'HTML-Tag der Überschrift',
|
|
22
|
-
table: {
|
|
23
|
-
defaultValue: {
|
|
24
|
-
summary: 'span',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
_fontVariant: {
|
|
29
|
-
description: 'Schriftvariante',
|
|
30
|
-
control: {
|
|
31
|
-
type: 'inline-radio',
|
|
32
|
-
options: ['serif', 'sans-serif'],
|
|
33
|
-
},
|
|
34
|
-
table: {
|
|
35
|
-
defaultValue: {
|
|
36
|
-
summary: 'serif',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
_size: {
|
|
41
|
-
options: ['hero', '100', '50', '33', '25'],
|
|
42
|
-
control: { type: 'select' },
|
|
43
|
-
description: 'Größe der Überschrift',
|
|
44
|
-
table: {
|
|
45
|
-
defaultValue: {
|
|
46
|
-
summary: 'hero',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
}}
|
|
51
|
-
/>
|
|
52
|
-
|
|
53
|
-
export const Template = ({ _topline, ...args }) => {
|
|
54
|
-
// You can either use a function to create DOM elements or use a plain html string!
|
|
55
|
-
// return `<div>${label}</div>`;
|
|
56
|
-
return teaserHeading({ _topline, ...args })
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
# Teaser-Heading
|
|
60
|
-
|
|
61
|
-
Die `Dachzeile` (topline) und der `Titel` (title) werden im folgenden als Teaser-Heading bezeichnet, also der einleitende "Kopf" eines Teasers.
|
|
62
|
-
|
|
63
|
-
Zubuchbar sind ein `Label` (an der Position der Dachzeile) und ein `erweiterter Titel` (extendedTitle) der den normalen Titel ersetzt.
|
|
64
|
-
|
|
65
|
-
# Teil-Komponenten (siehe dazu Label, Topline, Titel)
|
|
66
|
-
|
|
67
|
-
## Label (optional wenn vorhanden)
|
|
68
|
-
Die Komponente wird in Form eines Handlebar Partials eingebunden.
|
|
69
|
-
|
|
70
|
-
```html
|
|
71
|
-
{{> components/label/label_old _type=this.type _text=(loca this.loca) _bylineCss=../_labelCss}}
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Durchgereichte Parameter:
|
|
75
|
-
|
|
76
|
-
| Parameter | Typ | Mögliche Werte | Erläuterung |
|
|
77
|
-
| :--------- | :------- | :--------------------- | :----------------------------------------------- |
|
|
78
|
-
| **\_type** | `String`|"media","event"...| Typ des Labels
|
|
79
|
-
| **\__text**|`String`|...| Inhalt des Labels
|
|
80
|
-
| **\__bylineCss**|`String`|...|spezifische Style-Selektoren
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
## Dachzeile (topline)
|
|
84
|
-
## Einbindung
|
|
85
|
-
Die Komponente wird in Form eines Handlebar Partials eingebunden.
|
|
86
|
-
|
|
87
|
-
```html
|
|
88
|
-
{{> components/teaser/components/teaser_topline _css=(if _toplineCss _toplineCss "") _text=_topline _readMore=_readMore _teaserType=_teaserType}}
|
|
89
|
-
```
|
|
90
|
-
Durchgereichte Parameter:
|
|
91
|
-
|
|
92
|
-
| Parameter | Typ | Mögliche Werte | Erläuterung |
|
|
93
|
-
| :--------- | :------- | :--------------------- | :----------------------------------------------- |
|
|
94
|
-
| **\_css** | `String`|...| spezifische Style-Selektoren
|
|
95
|
-
| **\__text**|`String`|...| Inhalt der Dachzeile
|
|
96
|
-
| **\__readMore**|`String`|...|
|
|
97
|
-
| **\__teaserType**|`String`|"standard, alternativ"| Der Teaser-Typ gibt die Anordnung des Bildes und der Elemente vor
|
|
98
|
-
|
|
99
|
-
## Titel (title)
|
|
100
|
-
## Einbindung
|
|
101
|
-
Die Komponente wird in Form eines Handlebar Partials eingebunden.
|
|
102
|
-
|
|
103
|
-
```html
|
|
104
|
-
{{> components/teaser/components/teaser_title_old _css=(if _titleCss _titleCss "") _text=_title _fontVariant=_fontVariant _size=_size _teaserType=_teaserType _isMobile1to1=_isMobile1to1 _firstItem=_firstItem _ordered=_ordered}}
|
|
105
|
-
```
|
|
106
|
-
Durchgereichte Parameter:
|
|
107
|
-
|
|
108
|
-
| Parameter | Typ | Mögliche Werte | Erläuterung |
|
|
109
|
-
| :--------- | :------- | :--------------------- | :----------------------------------------------- |
|
|
110
|
-
| **\_css** | `String`|...| spezifische Style-Selektoren
|
|
111
|
-
| **\__text**|`String`|...| Inhalt des Titels
|
|
112
|
-
| **\__fontVariant**|`String`|serif, sans-serif| Bei Hessenschau wird für den Titel eine andere Schriftfamilie gewählt.
|
|
113
|
-
| **\__size**|`String`|hero, 100, 50, 33, 25| Die Größe des Teasers
|
|
114
|
-
| **\__teaserType**|`String`|"standard, alternativ"| Der Teaser-Typ gibt die Anordnung des Bildes und der Elemente vor
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
## Teaser-Heading Serif Hero
|
|
119
|
-
|
|
120
|
-
<Canvas>
|
|
121
|
-
<Story
|
|
122
|
-
name="Serif Hero"
|
|
123
|
-
parameters={{
|
|
124
|
-
docs: {
|
|
125
|
-
source: {
|
|
126
|
-
code: ``,
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
}}
|
|
130
|
-
args={{
|
|
131
|
-
_topline: 'Das ist eine wirklich sehr lange Topline',
|
|
132
|
-
_title: 'Das ist eine wirklich sehr lange Headline',
|
|
133
|
-
_extendedTitle: 'Das ist ein erweiterter Titel',
|
|
134
|
-
_headlineTag: 'h1',
|
|
135
|
-
_fontVariant: 'serif',
|
|
136
|
-
_size: 'hero',
|
|
137
|
-
_teaserType: 'standard',
|
|
138
|
-
}}
|
|
139
|
-
>
|
|
140
|
-
{Template.bind({})}
|
|
141
|
-
</Story>
|
|
142
|
-
</Canvas>
|
|
143
|
-
|
|
144
|
-
<ArgsTable story="Serif Hero" />
|
|
145
|
-
|
|
146
|
-
## Teaser-Heading Serif 50%
|
|
147
|
-
|
|
148
|
-
<Canvas>
|
|
149
|
-
<Story
|
|
150
|
-
name="Serif 50"
|
|
151
|
-
parameters={{
|
|
152
|
-
docs: {
|
|
153
|
-
source: {
|
|
154
|
-
code: ``,
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
}}
|
|
158
|
-
args={{
|
|
159
|
-
_topline: 'Das ist eine wirklich sehr lange Topline',
|
|
160
|
-
_title: 'Das ist eine wirklich sehr lange Headline',
|
|
161
|
-
_headlineTag: 'h1',
|
|
162
|
-
_fontVariant: 'serif',
|
|
163
|
-
_size: '50',
|
|
164
|
-
_teaserType: 'standard',
|
|
165
|
-
}}
|
|
166
|
-
>
|
|
167
|
-
{Template.bind({})}
|
|
168
|
-
</Story>
|
|
169
|
-
</Canvas>
|
|
170
|
-
|
|
171
|
-
## Teaser-Heading Serif 33%
|
|
172
|
-
|
|
173
|
-
<Canvas>
|
|
174
|
-
<Story
|
|
175
|
-
name="Serif 33"
|
|
176
|
-
parameters={{
|
|
177
|
-
docs: {
|
|
178
|
-
source: {
|
|
179
|
-
code: ``,
|
|
180
|
-
},
|
|
181
|
-
},
|
|
182
|
-
}}
|
|
183
|
-
args={{
|
|
184
|
-
_topline: 'Das ist eine wirklich sehr lange Topline',
|
|
185
|
-
_title: 'Das ist eine wirklich sehr lange Headline',
|
|
186
|
-
_headlineTag: 'h1',
|
|
187
|
-
_fontVariant: 'serif',
|
|
188
|
-
_size: '33',
|
|
189
|
-
_teaserType: 'standard',
|
|
190
|
-
}}
|
|
191
|
-
>
|
|
192
|
-
{Template.bind({})}
|
|
193
|
-
</Story>
|
|
194
|
-
</Canvas>
|
|
195
|
-
|
|
196
|
-
## Teaser-Heading Serif 25%
|
|
197
|
-
|
|
198
|
-
<Canvas>
|
|
199
|
-
<Story
|
|
200
|
-
name="Serif 25"
|
|
201
|
-
parameters={{
|
|
202
|
-
docs: {
|
|
203
|
-
source: {
|
|
204
|
-
code: ``,
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
}}
|
|
208
|
-
args={{
|
|
209
|
-
_topline: 'Das ist eine wirklich sehr lange Topline',
|
|
210
|
-
_title: 'Das ist eine wirklich sehr lange Headline',
|
|
211
|
-
_headlineTag: 'h1',
|
|
212
|
-
_fontVariant: 'serif',
|
|
213
|
-
_size: '25',
|
|
214
|
-
_teaserType: 'standard',
|
|
215
|
-
}}
|
|
216
|
-
>
|
|
217
|
-
{Template.bind({})}
|
|
218
|
-
</Story>
|
|
219
|
-
</Canvas>
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { ArgsTable, Meta, Story, Canvas, Preview } from '@storybook/addon-docs'
|
|
2
|
-
|
|
3
|
-
import teaserText from './teaser_text.hbs'
|
|
4
|
-
|
|
5
|
-
<Meta
|
|
6
|
-
title="Komponenten/Teaser/Komponenten/Teasertext"
|
|
7
|
-
argTypes={{
|
|
8
|
-
_text: {
|
|
9
|
-
control: 'text',
|
|
10
|
-
description: 'teaserText',
|
|
11
|
-
},
|
|
12
|
-
_size: {
|
|
13
|
-
options: ['hero', '100', '50', '33', '25'],
|
|
14
|
-
control: { type: 'inline-radio' },
|
|
15
|
-
},
|
|
16
|
-
_font: {
|
|
17
|
-
table: {
|
|
18
|
-
disable: true,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
}}
|
|
22
|
-
/>
|
|
23
|
-
|
|
24
|
-
export const Template = ({ _text, ...args }) => {
|
|
25
|
-
return teaserText({ _text, ...args })
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
# Teaser-Text
|
|
29
|
-
|
|
30
|
-
Im Teaser folgt nach dem Heading der Text. Diesem beigefügt ein "Mehr"-Link oder ein Link auf eine externe Seite.
|
|
31
|
-
|
|
32
|
-
# Teil-Komponenten
|
|
33
|
-
N/A
|
|
34
|
-
|
|
35
|
-
## Teaser-Text Hero
|
|
36
|
-
<Canvas>
|
|
37
|
-
<Story
|
|
38
|
-
name="Teasertext Hero"
|
|
39
|
-
args={{
|
|
40
|
-
_text: 'Woibbadinga i moan scho aa hallelujah sog i, luja, boarischer. Wiesn resch ja, wo samma denn etza, resch. Auffisteign a Hoiwe woaß, koa. Leonhardifahrt Weißwiaschd Baamwach hob liberalitas Bavariae ham hogg di hera.',
|
|
41
|
-
_size: 'hero',
|
|
42
|
-
_font: 'md:text-base md:leading-4 lg:leading-5',
|
|
43
|
-
}}
|
|
44
|
-
>
|
|
45
|
-
{Template.bind({})}
|
|
46
|
-
</Story>
|
|
47
|
-
</Canvas>
|
|
48
|
-
|
|
49
|
-
## Teaser-Text 50%
|
|
50
|
-
|
|
51
|
-
<Canvas>
|
|
52
|
-
<Story
|
|
53
|
-
name="Teasertext 50"
|
|
54
|
-
args={{
|
|
55
|
-
_text: 'Woibbadinga i moan scho aa hallelujah sog i, luja, boarischer. Wiesn resch ja, wo samma denn etza, resch. Auffisteign a Hoiwe woaß, koa. Leonhardifahrt Weißwiaschd Baamwach hob liberalitas Bavariae ham hogg di hera.',
|
|
56
|
-
_size: '50',
|
|
57
|
-
_font: 'md:text-base md:leading-4 lg:leading-5',
|
|
58
|
-
}}
|
|
59
|
-
>
|
|
60
|
-
{Template.bind({})}
|
|
61
|
-
</Story>
|
|
62
|
-
</Canvas>
|
|
63
|
-
|
|
64
|
-
## Teaser-Text 33%
|
|
65
|
-
|
|
66
|
-
<Canvas>
|
|
67
|
-
<Story
|
|
68
|
-
name="Teasertext 33"
|
|
69
|
-
args={{
|
|
70
|
-
_text: 'Woibbadinga i moan scho aa hallelujah sog i, luja, boarischer. Wiesn resch ja, wo samma denn etza, resch. Auffisteign a Hoiwe woaß, koa. Leonhardifahrt Weißwiaschd Baamwach hob liberalitas Bavariae ham hogg di hera.',
|
|
71
|
-
_size: '33',
|
|
72
|
-
_font: 'md:text-base md:leading-4 lg:leading-5',
|
|
73
|
-
}}
|
|
74
|
-
>
|
|
75
|
-
{Template.bind({})}
|
|
76
|
-
</Story>
|
|
77
|
-
</Canvas>
|
|
78
|
-
|
|
79
|
-
## Teaser-Text 25%
|
|
80
|
-
|
|
81
|
-
<Canvas>
|
|
82
|
-
<Story
|
|
83
|
-
name="Teasertext 25"
|
|
84
|
-
args={{
|
|
85
|
-
_text: 'Woibbadinga i moan scho aa hallelujah sog i, luja, boarischer. Wiesn resch ja, wo samma denn etza, resch. Auffisteign a Hoiwe woaß, koa. Leonhardifahrt Weißwiaschd Baamwach hob liberalitas Bavariae ham hogg di hera.',
|
|
86
|
-
_size: '25',
|
|
87
|
-
_font: 'md:text-base md:leading-4 lg:leading-5',
|
|
88
|
-
}}
|
|
89
|
-
>
|
|
90
|
-
{Template.bind({})}
|
|
91
|
-
</Story>
|
|
92
|
-
</Canvas>
|
|
93
|
-
|
|
94
|
-
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { ArgsTable, Meta, Story, Preview } from '@storybook/addon-docs'
|
|
2
|
-
|
|
3
|
-
import titleComponent from './teaser_title.hbs'
|
|
4
|
-
|
|
5
|
-
<Meta
|
|
6
|
-
title="Komponenten/Teaser/Komponenten/Titel"
|
|
7
|
-
argTypes={{
|
|
8
|
-
_text: {
|
|
9
|
-
control: 'text',
|
|
10
|
-
description: 'Titel',
|
|
11
|
-
},
|
|
12
|
-
_size: {
|
|
13
|
-
options: ['hero', '100', '50', '33', '25'],
|
|
14
|
-
control: { type: 'select' },
|
|
15
|
-
description: 'Größe der Überschrift',
|
|
16
|
-
table: {
|
|
17
|
-
defaultValue: {
|
|
18
|
-
summary: 'hero',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
_fontVariant: {
|
|
23
|
-
description: 'Schriftvariante',
|
|
24
|
-
control: {
|
|
25
|
-
type: 'inline-radio',
|
|
26
|
-
options: ['serif', 'sans-serif'],
|
|
27
|
-
},
|
|
28
|
-
table: {
|
|
29
|
-
defaultValue: {
|
|
30
|
-
summary: 'serif',
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
}}
|
|
35
|
-
/>
|
|
36
|
-
|
|
37
|
-
export const Template = ({ _text, ...args }) => {
|
|
38
|
-
// You can either use a function to create DOM elements or use a plain html string!
|
|
39
|
-
// return `<span>${title}</span>`;
|
|
40
|
-
return titleComponent({ _text, ...args })
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
# Titel
|
|
44
|
-
|
|
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>
|
|
56
|
-
components/teaser/components/<b>teaser_title_classes</b>
|
|
57
|
-
</li>
|
|
58
|
-
</ul>
|
|
59
|
-
|
|
60
|
-
## Parameter
|
|
61
|
-
|
|
62
|
-
Die Titel-Komponente benötigt folgende Parameter:
|
|
63
|
-
|
|
64
|
-
<ul>
|
|
65
|
-
<li>
|
|
66
|
-
<b>text</b>
|
|
67
|
-
</li>
|
|
68
|
-
<li>
|
|
69
|
-
<b>fontVariant</b>
|
|
70
|
-
</li>
|
|
71
|
-
<li>
|
|
72
|
-
<b>size</b>
|
|
73
|
-
</li>
|
|
74
|
-
<li>
|
|
75
|
-
<b>teaserType</b>
|
|
76
|
-
</li>
|
|
77
|
-
</ul>
|
|
78
|
-
|
|
79
|
-
## Verwendung
|
|
80
|
-
|
|
81
|
-
Die Titel-Komponente wird in handlebars wie folgt eingebaut:
|
|
82
|
-
|
|
83
|
-
```html
|
|
84
|
-
{{> components/teaser/components/teaser_title text=title fontVariant=fontVariant size=size
|
|
85
|
-
teaserType=teaserType}}
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
<Preview withToolbar>
|
|
89
|
-
<Story
|
|
90
|
-
name="Titel Serif - Hero"
|
|
91
|
-
args={{
|
|
92
|
-
_text: 'Dies ist der Titel eines 100%-Teasers',
|
|
93
|
-
_size: 'hero',
|
|
94
|
-
_fontVariant: 'serif',
|
|
95
|
-
_teaserType: 'standard',
|
|
96
|
-
}}
|
|
97
|
-
>
|
|
98
|
-
{Template.bind({})}
|
|
99
|
-
</Story>
|
|
100
|
-
<Story
|
|
101
|
-
name="Titel Serif - normal"
|
|
102
|
-
args={{
|
|
103
|
-
_text: 'Dies ist der Titel eines 66%-, 50%- oder 33%-Teasers',
|
|
104
|
-
_size: '33',
|
|
105
|
-
_fontVariant: 'serif',
|
|
106
|
-
_teaserType: 'standard',
|
|
107
|
-
}}
|
|
108
|
-
>
|
|
109
|
-
{Template.bind({})}
|
|
110
|
-
</Story>
|
|
111
|
-
<Story
|
|
112
|
-
name="Titel Serif - small"
|
|
113
|
-
args={{
|
|
114
|
-
_text: 'Dies ist der Titel eines 25%-Teasers',
|
|
115
|
-
_size: '25',
|
|
116
|
-
_fontVariant: 'serif',
|
|
117
|
-
_teaserType: 'standard',
|
|
118
|
-
}}
|
|
119
|
-
>
|
|
120
|
-
{Template.bind({})}
|
|
121
|
-
</Story>
|
|
122
|
-
</Preview>
|
|
123
|
-
|
|
124
|
-
<ArgsTable story="Titel Serif - Hero" />
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { ArgsTable, Meta, Story, Preview } from '@storybook/addon-docs'
|
|
2
|
-
|
|
3
|
-
import topline from './teaser_topline.hbs'
|
|
4
|
-
|
|
5
|
-
<Meta
|
|
6
|
-
title="Komponenten/Teaser/Komponenten/Topline"
|
|
7
|
-
argTypes={{
|
|
8
|
-
_text: {
|
|
9
|
-
control: 'text',
|
|
10
|
-
description: 'Dachzeilentext',
|
|
11
|
-
},
|
|
12
|
-
}}
|
|
13
|
-
/>
|
|
14
|
-
|
|
15
|
-
export const Template = ({ _text, ...args }) => {
|
|
16
|
-
// You can either use a function to create DOM elements or use a plain html string!
|
|
17
|
-
// return `<span>${topline}</span>`;
|
|
18
|
-
return topline({ _text, ...args })
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
# Topline
|
|
22
|
-
|
|
23
|
-
## Beschreibung
|
|
24
|
-
|
|
25
|
-
In der Topline-Komponente wird die Dachzeile des Artikels dargestellt.
|
|
26
|
-
|
|
27
|
-
## Parameter
|
|
28
|
-
|
|
29
|
-
Die Topline-Komponente benötigt folgende Parameter:
|
|
30
|
-
|
|
31
|
-
<ul>
|
|
32
|
-
<li>
|
|
33
|
-
<b>teaserType</b>
|
|
34
|
-
</li>
|
|
35
|
-
<li>
|
|
36
|
-
<b>readMore</b>
|
|
37
|
-
</li>
|
|
38
|
-
<li>
|
|
39
|
-
<b>text</b>
|
|
40
|
-
</li>
|
|
41
|
-
</ul>
|
|
42
|
-
|
|
43
|
-
## Verwendung
|
|
44
|
-
|
|
45
|
-
Die Topline-Komponente wird in handlebars wie folgt eingebaut:
|
|
46
|
-
|
|
47
|
-
```html
|
|
48
|
-
{{> components/teaser/components/teaser_topline text=topline readMore=readMore
|
|
49
|
-
teaserType=teaserType}}
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
<Preview withToolbar>
|
|
53
|
-
<Story
|
|
54
|
-
name="default"
|
|
55
|
-
args={{
|
|
56
|
-
_text: 'Dies ist die Dachzeile',
|
|
57
|
-
}}
|
|
58
|
-
>
|
|
59
|
-
{Template.bind({})}
|
|
60
|
-
</Story>
|
|
61
|
-
</Preview>
|
|
62
|
-
|
|
63
|
-
<ArgsTable story="default" />
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { ArgsTable, Meta, Story, Canvas, Preview } from '@storybook/addon-docs'
|
|
2
|
-
|
|
3
|
-
import groupTeaser from './group_teaser.hbs'
|
|
4
|
-
import groupTeaserAccented from './group_teaser_accented.hbs'
|
|
5
|
-
import teaserGroup100 from '../fixtures/teaser_group_100.json'
|
|
6
|
-
import teaserGroupRelatedContent100 from '../fixtures/teaser_group_related_content_100.json'
|
|
7
|
-
import teaserGroup100highlight from '../fixtures/teaser_group_100_highlight.json'
|
|
8
|
-
import teaserGroup100highlight2 from '../fixtures/teaser_group_100_highlight_2.json'
|
|
9
|
-
|
|
10
|
-
import teaserGroup100contentnav from '../fixtures/teaser_group_100_contentnav.json'
|
|
11
|
-
|
|
12
|
-
<Meta
|
|
13
|
-
title="Komponenten/Teaser/Gruppen"
|
|
14
|
-
argTypes={{
|
|
15
|
-
teaserSize: {
|
|
16
|
-
control: {
|
|
17
|
-
type: 'select',
|
|
18
|
-
options: ['100', '66', '50', '33', '25'],
|
|
19
|
-
},
|
|
20
|
-
description: 'Teaser Größe',
|
|
21
|
-
table: {
|
|
22
|
-
defaultValue: {
|
|
23
|
-
summary: '100',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
}}
|
|
28
|
-
parameters={{
|
|
29
|
-
layout: 'fullscreen',
|
|
30
|
-
}}
|
|
31
|
-
decorators={[
|
|
32
|
-
(Story) => {
|
|
33
|
-
return `<div class="grid my-5 grid-page">
|
|
34
|
-
<div class="grid grid-cols-12 py-6 bg-white sm:px-9.5 col-full sm:col-main gap-x-6 md:gap-y-14 gap-y-6">
|
|
35
|
-
${Story()}
|
|
36
|
-
</div>
|
|
37
|
-
</div>`
|
|
38
|
-
},
|
|
39
|
-
]}
|
|
40
|
-
/>
|
|
41
|
-
|
|
42
|
-
export const groupTeaserTemplate = ({ text, ...args }) => {
|
|
43
|
-
// You can either use a function to create DOM elements or use a plain html string!
|
|
44
|
-
// return `<div>${label}</div>`;
|
|
45
|
-
return groupTeaser({ text, ...args })
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export const groupTeaserAccentedTemplate = ({ text, ...args }) => {
|
|
49
|
-
// You can either use a function to create DOM elements or use a plain html string!
|
|
50
|
-
// return `<div>${label}</div>`;
|
|
51
|
-
return groupTeaserAccented({ text, ...args })
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
# Button
|
|
55
|
-
|
|
56
|
-
Ein toller Einleitungstext für unsere `Teaser Gruppen` Komponente:
|
|
57
|
-
|
|
58
|
-
<Preview withToolbar>
|
|
59
|
-
<Story name="100% Gruppe mit Überschrift" args={teaserGroup100.includeModel}>
|
|
60
|
-
{groupTeaserTemplate.bind({})}
|
|
61
|
-
</Story>
|
|
62
|
-
<Story
|
|
63
|
-
name="100% Gruppe mit Überschrift Highlight 1"
|
|
64
|
-
args={teaserGroup100highlight.includeModel}
|
|
65
|
-
>
|
|
66
|
-
{groupTeaserTemplate.bind({})}
|
|
67
|
-
</Story>
|
|
68
|
-
<Story
|
|
69
|
-
name="100% Gruppe mit Überschrift Highlight 2"
|
|
70
|
-
args={teaserGroup100highlight2.includeModel}
|
|
71
|
-
>
|
|
72
|
-
{groupTeaserTemplate.bind({})}
|
|
73
|
-
</Story>
|
|
74
|
-
<Story
|
|
75
|
-
name="100% Gruppe mit Content Navigation Aufklapp"
|
|
76
|
-
args={teaserGroup100contentnav.includeModel}
|
|
77
|
-
>
|
|
78
|
-
{groupTeaserAccentedTemplate.bind({})}
|
|
79
|
-
</Story>
|
|
80
|
-
<Story name="100% Gruppe mit Related Content" args={teaserGroupRelatedContent100.includeModel}>
|
|
81
|
-
{groupTeaserTemplate.bind({})}
|
|
82
|
-
</Story>
|
|
83
|
-
</Preview>
|
|
84
|
-
|
|
85
|
-
<ArgsTable story="main" />
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { ArgsTable, Meta, Story, Canvas, Preview } from '@storybook/addon-docs'
|
|
2
|
-
import { resetComponents } from '@storybook/components'
|
|
3
|
-
import subscribeButtonJson from '../fixtures/teaser_podcast.json'
|
|
4
|
-
|
|
5
|
-
import subscribeButton from './podcast_subscribe_button.hbs'
|
|
6
|
-
|
|
7
|
-
<Meta
|
|
8
|
-
title="Komponenten/Teaser/Podcast"
|
|
9
|
-
argTypes={{
|
|
10
|
-
storybookOpen: {
|
|
11
|
-
control: 'boolean',
|
|
12
|
-
description: "Offen"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
}}
|
|
16
|
-
parameters={{
|
|
17
|
-
controls: {
|
|
18
|
-
sort: 'requiredFirst',
|
|
19
|
-
}
|
|
20
|
-
}}
|
|
21
|
-
decorators={[
|
|
22
|
-
(Story) => {
|
|
23
|
-
return `<div class="flex flex-row pt-5">
|
|
24
|
-
${Story()}
|
|
25
|
-
</div>`
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
]}
|
|
29
|
-
/>
|
|
30
|
-
|
|
31
|
-
export const Template = ({ label, ...args }) => {
|
|
32
|
-
// You can either use a function to create DOM elements or use a plain html string!
|
|
33
|
-
// return `<div>${label}</div>`;
|
|
34
|
-
return subscribeButton({ label, ...args });
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
<Preview withToolbar>
|
|
38
|
-
<Story
|
|
39
|
-
name="Subscribe Button Close"
|
|
40
|
-
args={subscribeButtonJson.logicItem.includeModel.podcastChannel}
|
|
41
|
-
>
|
|
42
|
-
{Template.bind({})}
|
|
43
|
-
</Story>
|
|
44
|
-
<Story
|
|
45
|
-
name="Subscribe Button Open"
|
|
46
|
-
args={
|
|
47
|
-
{ ...subscribeButtonJson.logicItem.includeModel.podcastChannel, storybookOpen:true}
|
|
48
|
-
}
|
|
49
|
-
>
|
|
50
|
-
{Template.bind({})}
|
|
51
|
-
</Story>
|
|
52
|
-
</Preview>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ArgsTable, Meta, Story, Canvas, Preview } from '@storybook/addon-docs'
|
|
2
|
-
|
|
3
|
-
import tabbox from './teaser_tabbox.hbs'
|
|
4
|
-
import tabboxData from '../fixtures/teaser_tabbox.json'
|
|
5
|
-
|
|
6
|
-
<Meta title="Komponenten/Teaser/Tabbox"
|
|
7
|
-
parameters={{
|
|
8
|
-
chromatic: {
|
|
9
|
-
viewports: [360, 768, 1024]
|
|
10
|
-
},
|
|
11
|
-
layout: 'fullscreen',
|
|
12
|
-
}}
|
|
13
|
-
argTypes={{
|
|
14
|
-
}}
|
|
15
|
-
decorators={[
|
|
16
|
-
(Story) => {
|
|
17
|
-
return `<div class="grid my-5 grid-page">
|
|
18
|
-
<div>
|
|
19
|
-
${Story()}
|
|
20
|
-
</div>
|
|
21
|
-
</div>`
|
|
22
|
-
},
|
|
23
|
-
]}
|
|
24
|
-
/>
|
|
25
|
-
|
|
26
|
-
export const Template = (args, { globals: { customConditionalToolbar } }) => {
|
|
27
|
-
// You can either use a function to create DOM elements or use a plain html string!
|
|
28
|
-
// return `<div>${label}</div>`;
|
|
29
|
-
let brand =
|
|
30
|
-
undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
|
|
31
|
-
return tabbox({ brand, ...args })
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<Preview withToolbar>
|
|
36
|
-
<Story name="Beispiel 1" args={tabboxData.includeModel}>
|
|
37
|
-
{Template.bind({})}
|
|
38
|
-
</Story>
|
|
39
|
-
</Preview>
|