hr-design-system-handlebars 1.9.6 → 1.10.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 CHANGED
@@ -1,3 +1,16 @@
1
+ # v1.10.0 (Mon Mar 20 2023)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Documentation for Teaser-Heading [#589](https://github.com/mumprod/hr-design-system-handlebars/pull/589) ([@Paul-Atreidis](https://github.com/Paul-Atreidis) [@mariokinzel](https://github.com/mariokinzel))
6
+
7
+ #### Authors: 2
8
+
9
+ - [@mariokinzel](https://github.com/mariokinzel)
10
+ - [@Paul-Atreidis](https://github.com/Paul-Atreidis)
11
+
12
+ ---
13
+
1
14
  # v1.9.6 (Mon Mar 20 2023)
2
15
 
3
16
  #### 🐛 Bug Fix
@@ -2667,7 +2667,7 @@ video {
2667
2667
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
2668
2668
  }
2669
2669
  .counter-reset {
2670
- counter-reset: cnt1679311457632;
2670
+ counter-reset: cnt1679312520830;
2671
2671
  }
2672
2672
  .line-clamp-4 {
2673
2673
  overflow: hidden;
@@ -2901,7 +2901,7 @@ video {
2901
2901
  --tw-ring-color: rgba(255, 255, 255, 0.5);
2902
2902
  }
2903
2903
  .-ordered {
2904
- counter-increment: cnt1679311457632 1;
2904
+ counter-increment: cnt1679312520830 1;
2905
2905
  }
2906
2906
  .-ordered::before {
2907
2907
  position: absolute;
@@ -2917,7 +2917,7 @@ video {
2917
2917
  letter-spacing: .0125em;
2918
2918
  --tw-text-opacity: 1;
2919
2919
  color: rgba(0, 0, 0, var(--tw-text-opacity));
2920
- content: counter(cnt1679311457632);
2920
+ content: counter(cnt1679312520830);
2921
2921
  }
2922
2922
  /*! ****************************/
2923
2923
  /*! text-shadow */
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": "1.9.6",
9
+ "version": "1.10.0",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "start-storybook -p 6006 public",
@@ -58,9 +58,64 @@ export const Template = ({ _topline, ...args }) => {
58
58
 
59
59
  # Teaser-Heading
60
60
 
61
- Ein toller Einleitungstext für unsere `Teaser-Heading` Komponente:
61
+ Die `Dachzeile` (topline) und der `Titel` (title) werden im folgenden als Teaser-Heading bezeichnet, also der einleitende "Kopf" eines Teasers.
62
62
 
63
- ## Teaser-Heading serif large
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
64
119
 
65
120
  <Canvas>
66
121
  <Story
@@ -68,15 +123,14 @@ Ein toller Einleitungstext für unsere `Teaser-Heading` Komponente:
68
123
  parameters={{
69
124
  docs: {
70
125
  source: {
71
- code: `
72
- <Button class="storybook-button storybook-button--secondary">Button</button>
73
- `,
126
+ code: ``,
74
127
  },
75
128
  },
76
129
  }}
77
130
  args={{
78
131
  _topline: 'Das ist eine wirklich sehr lange Topline',
79
132
  _title: 'Das ist eine wirklich sehr lange Headline',
133
+ _extendedTitle: 'Das ist ein erweiterter Titel',
80
134
  _headlineTag: 'h1',
81
135
  _fontVariant: 'serif',
82
136
  _size: 'hero',
@@ -87,19 +141,42 @@ Ein toller Einleitungstext für unsere `Teaser-Heading` Komponente:
87
141
  </Story>
88
142
  </Canvas>
89
143
 
90
- <ArgsTable story="Serif large" />
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>
91
170
 
92
- ## Teaser-Heading Serif small
171
+ ## Teaser-Heading Serif 33%
93
172
 
94
173
  <Canvas>
95
174
  <Story
96
- name="Serif medium"
175
+ name="Serif 33"
97
176
  parameters={{
98
177
  docs: {
99
178
  source: {
100
- code: `
101
- <Button class="storybook-button storybook-button--secondary">Button</button>
102
- `,
179
+ code: ``,
103
180
  },
104
181
  },
105
182
  }}
@@ -116,17 +193,15 @@ Ein toller Einleitungstext für unsere `Teaser-Heading` Komponente:
116
193
  </Story>
117
194
  </Canvas>
118
195
 
119
- ## Teaser-Heading Serif large
196
+ ## Teaser-Heading Serif 25%
120
197
 
121
198
  <Canvas>
122
199
  <Story
123
- name="Serif small"
200
+ name="Serif 25"
124
201
  parameters={{
125
202
  docs: {
126
203
  source: {
127
- code: `
128
- <Button class="storybook-button storybook-button--secondary">Button</button>
129
- `,
204
+ code: ``,
130
205
  },
131
206
  },
132
207
  }}