hr-design-system-handlebars 0.38.0 → 0.38.1
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 +17 -0
- package/README.md +8 -0
- package/dist/assets/index.css +37 -3
- package/dist/views/components/Teaser/Teaser-Heading.hbs +1 -1
- package/dist/views/components/Topline.hbs +1 -0
- package/package.json +1 -1
- package/src/assets/tailwind.css +30 -0
- package/src/stories/views/components/Teaser/Teaser-Heading.hbs +1 -1
- package/src/stories/views/components/Topline.hbs +1 -0
- package/src/stories/views/components/Topline.stories.mdx +37 -0
- package/tailwind.config.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# v0.38.1 (Thu Mar 31 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- add topline-component [#201](https://github.com/mumprod/hr-design-system-handlebars/pull/201) ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
6
|
+
|
|
7
|
+
#### 📝 Documentation
|
|
8
|
+
|
|
9
|
+
- DOCS: adds section to nvm in readme [#200](https://github.com/mumprod/hr-design-system-handlebars/pull/200) ([@szuelch](https://github.com/szuelch))
|
|
10
|
+
|
|
11
|
+
#### Authors: 2
|
|
12
|
+
|
|
13
|
+
- [@szuelch](https://github.com/szuelch)
|
|
14
|
+
- Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
1
18
|
# v0.38.0 (Mon Mar 28 2022)
|
|
2
19
|
|
|
3
20
|
#### 🚀 Enhancement
|
package/README.md
CHANGED
|
@@ -10,6 +10,14 @@ auf die folgenden Versionen aktualisieren.
|
|
|
10
10
|
| Node.js | 16.14.2 |
|
|
11
11
|
| NPM | 8.5.0 |
|
|
12
12
|
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
**Hinweis**
|
|
16
|
+
|
|
17
|
+
Node.js installiert man am besten mit dem Node Version Manager NVM. Dies ist zwar eigentlich ein Linux Projekt, kann aber als nvm-windows auch unter Windows genutzt werden. Die Installationsdateien können unter https://github.com/coreybutler/nvm-windows/releases heruntergeladen werden. NVM gestattet es je nach Bedarf schnell über die Konsole zwischen mehreren Versionen von node.js zu wechseln. Seit der Version 1.18 von NVM müssen zur korrekten Nutzung die Hinweise unter https://github.com/coreybutler/nvm-windows/wiki/Common-Issues#permissions-exit-1-exit-5-access-denied-exit-145 beachtet werden.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
13
21
|
Zur Installation des Designsystems bitte zunächst das Projekt in ein beliebiges Verzeichnis auf der Festplatte mit
|
|
14
22
|
|
|
15
23
|
```
|
package/dist/assets/index.css
CHANGED
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
--color-label-download: #606060;
|
|
23
23
|
/* Pressemitteilungen */
|
|
24
24
|
--color-label-pm: #006eb7;
|
|
25
|
+
/* Dachzeile */
|
|
26
|
+
--color-topline: #006dc1;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
[data-theme='hessenschau'] {
|
|
@@ -46,6 +48,8 @@
|
|
|
46
48
|
--color-label-download: #606060;
|
|
47
49
|
/* Pressemitteilungen */
|
|
48
50
|
--color-label-pm: #006eb7;
|
|
51
|
+
/* Dachzeile */
|
|
52
|
+
--color-topline: #006dc1;
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
[data-theme='hr-bigband'] {
|
|
@@ -66,6 +70,8 @@
|
|
|
66
70
|
--color-label-download: #606060;
|
|
67
71
|
/* Event */
|
|
68
72
|
--color-label-event: #000000;
|
|
73
|
+
/* Dachzeile */
|
|
74
|
+
--color-topline: #c20016;
|
|
69
75
|
}
|
|
70
76
|
|
|
71
77
|
[data-theme='hr-fernsehen'] {
|
|
@@ -86,6 +92,8 @@
|
|
|
86
92
|
--color-label-download: #606060;
|
|
87
93
|
/* Event */
|
|
88
94
|
--color-label-event: #000000;
|
|
95
|
+
/* Dachzeile */
|
|
96
|
+
--color-topline: #c20016;
|
|
89
97
|
}
|
|
90
98
|
|
|
91
99
|
[data-theme='hr-inforadio'] {
|
|
@@ -106,6 +114,8 @@
|
|
|
106
114
|
--color-label-download: #606060;
|
|
107
115
|
/* Event */
|
|
108
116
|
--color-label-event: #000000;
|
|
117
|
+
/* Dachzeile */
|
|
118
|
+
--color-topline: #c20016;
|
|
109
119
|
}
|
|
110
120
|
|
|
111
121
|
[data-theme='hr-rundfunkrat'] {
|
|
@@ -128,6 +138,8 @@
|
|
|
128
138
|
--color-label-event: #000000;
|
|
129
139
|
/* Pressemitteilungen */
|
|
130
140
|
--color-label-pm: #006eb7;
|
|
141
|
+
/* Dachzeile */
|
|
142
|
+
--color-topline: #c20016;
|
|
131
143
|
}
|
|
132
144
|
|
|
133
145
|
[data-theme='hr-werbung'] {
|
|
@@ -150,6 +162,8 @@
|
|
|
150
162
|
--color-label-event: #000000;
|
|
151
163
|
/* Pressemitteilungen */
|
|
152
164
|
--color-label-pm: #006eb7;
|
|
165
|
+
/* Dachzeile */
|
|
166
|
+
--color-topline: #c20016;
|
|
153
167
|
}
|
|
154
168
|
|
|
155
169
|
[data-theme='hr-sinfonieorchester'] {
|
|
@@ -170,6 +184,8 @@
|
|
|
170
184
|
--color-label-download: #606060;
|
|
171
185
|
/* Event */
|
|
172
186
|
--color-label-event: #000000;
|
|
187
|
+
/* Dachzeile */
|
|
188
|
+
--color-topline: #c20016;
|
|
173
189
|
}
|
|
174
190
|
|
|
175
191
|
[data-theme='hr-bigband'] {
|
|
@@ -190,6 +206,8 @@
|
|
|
190
206
|
--color-label-download: #606060;
|
|
191
207
|
/* Event */
|
|
192
208
|
--color-label-event: #000000;
|
|
209
|
+
/* Dachzeile */
|
|
210
|
+
--color-topline: #c20016;
|
|
193
211
|
}
|
|
194
212
|
|
|
195
213
|
[data-theme='hr'] {
|
|
@@ -212,6 +230,8 @@
|
|
|
212
230
|
--color-label-event: #000000;
|
|
213
231
|
/* Pressemitteilungen */
|
|
214
232
|
--color-label-pm: #006eb7;
|
|
233
|
+
/* Dachzeile */
|
|
234
|
+
--color-topline: #c20016;
|
|
215
235
|
}
|
|
216
236
|
|
|
217
237
|
[data-theme='hr1'] {
|
|
@@ -232,6 +252,8 @@
|
|
|
232
252
|
--color-label-download: #606060;
|
|
233
253
|
/* Event */
|
|
234
254
|
--color-label-event: #000000;
|
|
255
|
+
/* Dachzeile */
|
|
256
|
+
--color-topline: #c20016;
|
|
235
257
|
}
|
|
236
258
|
|
|
237
259
|
[data-theme='hr2'] {
|
|
@@ -252,6 +274,8 @@
|
|
|
252
274
|
--color-label-download: #606060;
|
|
253
275
|
/* Event */
|
|
254
276
|
--color-label-event: #000000;
|
|
277
|
+
/* Dachzeile */
|
|
278
|
+
--color-topline: #c20016;
|
|
255
279
|
}
|
|
256
280
|
|
|
257
281
|
[data-theme='hr3'] {
|
|
@@ -272,6 +296,8 @@
|
|
|
272
296
|
--color-label-download: #606060;
|
|
273
297
|
/* Event */
|
|
274
298
|
--color-label-event: #000000;
|
|
299
|
+
/* Dachzeile */
|
|
300
|
+
--color-topline: #c20016;
|
|
275
301
|
}
|
|
276
302
|
|
|
277
303
|
[data-theme='hr4'] {
|
|
@@ -292,6 +318,8 @@
|
|
|
292
318
|
--color-label-download: #606060;
|
|
293
319
|
/* Event */
|
|
294
320
|
--color-label-event: #000000;
|
|
321
|
+
/* Dachzeile */
|
|
322
|
+
--color-topline: #c20016;
|
|
295
323
|
}
|
|
296
324
|
|
|
297
325
|
[data-theme='you-fm'] {
|
|
@@ -312,6 +340,8 @@
|
|
|
312
340
|
--color-label-download: #606060;
|
|
313
341
|
/* Event */
|
|
314
342
|
--color-label-event: #000000;
|
|
343
|
+
/* Dachzeile */
|
|
344
|
+
--color-topline: #c20016;
|
|
315
345
|
}
|
|
316
346
|
|
|
317
347
|
/*! purgecss end ignore */
|
|
@@ -1476,6 +1506,9 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1476
1506
|
.mt-6 {
|
|
1477
1507
|
margin-top: 1.5rem;
|
|
1478
1508
|
}
|
|
1509
|
+
.mt-5 {
|
|
1510
|
+
margin-top: 1.25rem;
|
|
1511
|
+
}
|
|
1479
1512
|
.-mt-2 {
|
|
1480
1513
|
margin-top: -0.5rem;
|
|
1481
1514
|
}
|
|
@@ -1491,9 +1524,6 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1491
1524
|
.mt-8 {
|
|
1492
1525
|
margin-top: 2rem;
|
|
1493
1526
|
}
|
|
1494
|
-
.mt-3 {
|
|
1495
|
-
margin-top: 0.75rem;
|
|
1496
|
-
}
|
|
1497
1527
|
.mt-1\.5 {
|
|
1498
1528
|
margin-top: 0.375rem;
|
|
1499
1529
|
}
|
|
@@ -2170,6 +2200,10 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2170
2200
|
--tw-text-opacity: 1;
|
|
2171
2201
|
color: rgba(255, 255, 255, var(--tw-text-opacity));
|
|
2172
2202
|
}
|
|
2203
|
+
.text-toplineColor {
|
|
2204
|
+
color: #006dc1;
|
|
2205
|
+
color: var(--color-topline);
|
|
2206
|
+
}
|
|
2173
2207
|
.text-blue-congress {
|
|
2174
2208
|
--tw-text-opacity: 1;
|
|
2175
2209
|
color: rgba(0, 82, 147, var(--tw-text-opacity));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<{{headlineTag}} class="{{inline-switch font '["headingSerif","heading"]' '["font-headingSerif","font-heading"]'}} {{inline-switch bold '["true","false"]' '["font-bold"]'}} {{class}}" >
|
|
2
2
|
{{#if topline}}
|
|
3
|
-
|
|
3
|
+
{{> components/Topline text=topline }}
|
|
4
4
|
{{/if}}
|
|
5
5
|
<span class="block {{inline-switch size '["lg","sm"]' '["text-3xl","text-2xl","text-2xl"]'}} {{inline-switch font '["headingSerif","heading"]' '["font-headingSerif","font-heading font-bold"]'}} mt-1.5">{{headline}}</span>
|
|
6
6
|
</{{headlineTag}}>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<span class="block mt-5 text-base text-toplineColor font-heading">{{text}}</span>
|
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.38.
|
|
9
|
+
"version": "0.38.1",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "start-storybook -p 6006 public",
|
package/src/assets/tailwind.css
CHANGED
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
--color-label-download: theme('colors.grey.scorpion');
|
|
23
23
|
/* Pressemitteilungen */
|
|
24
24
|
--color-label-pm: theme('colors.blue.deepCerulean');
|
|
25
|
+
/* Dachzeile */
|
|
26
|
+
--color-topline: #006dc1;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
[data-theme='hessenschau'] {
|
|
@@ -46,6 +48,8 @@
|
|
|
46
48
|
--color-label-download: theme('colors.grey.scorpion');
|
|
47
49
|
/* Pressemitteilungen */
|
|
48
50
|
--color-label-pm: theme('colors.blue.deepCerulean');
|
|
51
|
+
/* Dachzeile */
|
|
52
|
+
--color-topline: #006dc1;
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
[data-theme='hr-bigband'] {
|
|
@@ -66,6 +70,8 @@
|
|
|
66
70
|
--color-label-download: theme('colors.grey.scorpion');
|
|
67
71
|
/* Event */
|
|
68
72
|
--color-label-event: theme('colors.black.DEFAULT');
|
|
73
|
+
/* Dachzeile */
|
|
74
|
+
--color-topline: #c20016;
|
|
69
75
|
}
|
|
70
76
|
|
|
71
77
|
[data-theme='hr-fernsehen'] {
|
|
@@ -86,6 +92,8 @@
|
|
|
86
92
|
--color-label-download: theme('colors.grey.scorpion');
|
|
87
93
|
/* Event */
|
|
88
94
|
--color-label-event: theme('colors.black.DEFAULT');
|
|
95
|
+
/* Dachzeile */
|
|
96
|
+
--color-topline: #c20016;
|
|
89
97
|
}
|
|
90
98
|
|
|
91
99
|
[data-theme='hr-inforadio'] {
|
|
@@ -106,6 +114,8 @@
|
|
|
106
114
|
--color-label-download: theme('colors.grey.scorpion');
|
|
107
115
|
/* Event */
|
|
108
116
|
--color-label-event: theme('colors.black.DEFAULT');
|
|
117
|
+
/* Dachzeile */
|
|
118
|
+
--color-topline: #c20016;
|
|
109
119
|
}
|
|
110
120
|
|
|
111
121
|
[data-theme='hr-rundfunkrat'] {
|
|
@@ -128,6 +138,8 @@
|
|
|
128
138
|
--color-label-event: theme('colors.black.DEFAULT');
|
|
129
139
|
/* Pressemitteilungen */
|
|
130
140
|
--color-label-pm: theme('colors.blue.deepCerulean');
|
|
141
|
+
/* Dachzeile */
|
|
142
|
+
--color-topline: #c20016;
|
|
131
143
|
}
|
|
132
144
|
|
|
133
145
|
[data-theme='hr-werbung'] {
|
|
@@ -150,6 +162,8 @@
|
|
|
150
162
|
--color-label-event: theme('colors.black.DEFAULT');
|
|
151
163
|
/* Pressemitteilungen */
|
|
152
164
|
--color-label-pm: theme('colors.blue.deepCerulean');
|
|
165
|
+
/* Dachzeile */
|
|
166
|
+
--color-topline: #c20016;
|
|
153
167
|
}
|
|
154
168
|
|
|
155
169
|
[data-theme='hr-sinfonieorchester'] {
|
|
@@ -170,6 +184,8 @@
|
|
|
170
184
|
--color-label-download: theme('colors.grey.scorpion');
|
|
171
185
|
/* Event */
|
|
172
186
|
--color-label-event: theme('colors.black.DEFAULT');
|
|
187
|
+
/* Dachzeile */
|
|
188
|
+
--color-topline: #c20016;
|
|
173
189
|
}
|
|
174
190
|
|
|
175
191
|
[data-theme='hr-bigband'] {
|
|
@@ -190,6 +206,8 @@
|
|
|
190
206
|
--color-label-download: theme('colors.grey.scorpion');
|
|
191
207
|
/* Event */
|
|
192
208
|
--color-label-event: theme('colors.black.DEFAULT');
|
|
209
|
+
/* Dachzeile */
|
|
210
|
+
--color-topline: #c20016;
|
|
193
211
|
}
|
|
194
212
|
|
|
195
213
|
[data-theme='hr'] {
|
|
@@ -212,6 +230,8 @@
|
|
|
212
230
|
--color-label-event: theme('colors.black.DEFAULT');
|
|
213
231
|
/* Pressemitteilungen */
|
|
214
232
|
--color-label-pm: theme('colors.blue.deepCerulean');
|
|
233
|
+
/* Dachzeile */
|
|
234
|
+
--color-topline: #c20016;
|
|
215
235
|
}
|
|
216
236
|
|
|
217
237
|
[data-theme='hr1'] {
|
|
@@ -232,6 +252,8 @@
|
|
|
232
252
|
--color-label-download: theme('colors.grey.scorpion');
|
|
233
253
|
/* Event */
|
|
234
254
|
--color-label-event: theme('colors.black.DEFAULT');
|
|
255
|
+
/* Dachzeile */
|
|
256
|
+
--color-topline: #c20016;
|
|
235
257
|
}
|
|
236
258
|
|
|
237
259
|
[data-theme='hr2'] {
|
|
@@ -252,6 +274,8 @@
|
|
|
252
274
|
--color-label-download: theme('colors.grey.scorpion');
|
|
253
275
|
/* Event */
|
|
254
276
|
--color-label-event: theme('colors.black.DEFAULT');
|
|
277
|
+
/* Dachzeile */
|
|
278
|
+
--color-topline: #c20016;
|
|
255
279
|
}
|
|
256
280
|
|
|
257
281
|
[data-theme='hr3'] {
|
|
@@ -272,6 +296,8 @@
|
|
|
272
296
|
--color-label-download: theme('colors.grey.scorpion');
|
|
273
297
|
/* Event */
|
|
274
298
|
--color-label-event: theme('colors.black.DEFAULT');
|
|
299
|
+
/* Dachzeile */
|
|
300
|
+
--color-topline: #c20016;
|
|
275
301
|
}
|
|
276
302
|
|
|
277
303
|
[data-theme='hr4'] {
|
|
@@ -292,6 +318,8 @@
|
|
|
292
318
|
--color-label-download: theme('colors.grey.scorpion');
|
|
293
319
|
/* Event */
|
|
294
320
|
--color-label-event: theme('colors.black.DEFAULT');
|
|
321
|
+
/* Dachzeile */
|
|
322
|
+
--color-topline: #c20016;
|
|
295
323
|
}
|
|
296
324
|
|
|
297
325
|
[data-theme='you-fm'] {
|
|
@@ -312,6 +340,8 @@
|
|
|
312
340
|
--color-label-download: theme('colors.grey.scorpion');
|
|
313
341
|
/* Event */
|
|
314
342
|
--color-label-event: theme('colors.black.DEFAULT');
|
|
343
|
+
/* Dachzeile */
|
|
344
|
+
--color-topline: #c20016;
|
|
315
345
|
}
|
|
316
346
|
|
|
317
347
|
/*! purgecss end ignore */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<{{headlineTag}} class="{{inline-switch font '["headingSerif","heading"]' '["font-headingSerif","font-heading"]'}} {{inline-switch bold '["true","false"]' '["font-bold"]'}} {{class}}" >
|
|
2
2
|
{{#if topline}}
|
|
3
|
-
|
|
3
|
+
{{> components/Topline text=topline }}
|
|
4
4
|
{{/if}}
|
|
5
5
|
<span class="block {{inline-switch size '["lg","sm"]' '["text-3xl","text-2xl","text-2xl"]'}} {{inline-switch font '["headingSerif","heading"]' '["font-headingSerif","font-heading font-bold"]'}} mt-1.5">{{headline}}</span>
|
|
6
6
|
</{{headlineTag}}>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<span class="block mt-5 text-base text-toplineColor font-heading">{{text}}</span>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ArgsTable, Meta, Story, Preview } from "@storybook/addon-docs";
|
|
2
|
+
|
|
3
|
+
import topline from "./Topline.hbs";
|
|
4
|
+
|
|
5
|
+
<Meta
|
|
6
|
+
title="Komponenten/Dachzeile"
|
|
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
|
+
Beispieltext für die Topline-Komponente:
|
|
24
|
+
|
|
25
|
+
<Preview withToolbar>
|
|
26
|
+
<Story
|
|
27
|
+
name="topline-1"
|
|
28
|
+
args={{
|
|
29
|
+
text:
|
|
30
|
+
"Dies ist die Dachzeile",
|
|
31
|
+
}}
|
|
32
|
+
>
|
|
33
|
+
{Template.bind({})}
|
|
34
|
+
</Story>
|
|
35
|
+
</Preview>
|
|
36
|
+
|
|
37
|
+
<ArgsTable story="topline-1" />
|