hr-design-system-handlebars 1.9.2 → 1.9.4
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 +37 -37
- package/dist/views/components/modal/modal.hbs +1 -1
- package/package.json +1 -1
- package/src/stories/BrandColors.stories.mdx +39 -0
- package/src/stories/Colors.stories.mdx +1 -1
- package/src/stories/views/components/modal/modal.hbs +1 -1
- package/tailwind.config.js +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v1.9.4 (Mon Mar 20 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- BUGFIX: Mask string for trackingInfos [#586](https://github.com/mumprod/hr-design-system-handlebars/pull/586) ([@mariokinzel](https://github.com/mariokinzel))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- [@mariokinzel](https://github.com/mariokinzel)
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v1.9.3 (Tue Mar 14 2023)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- add Brand-Color-Story [#585](https://github.com/mumprod/hr-design-system-handlebars/pull/585) ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v1.9.2 (Tue Mar 14 2023)
|
|
2
26
|
|
|
3
27
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -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:
|
|
2670
|
+
counter-reset: cnt1679298767437;
|
|
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:
|
|
2904
|
+
counter-increment: cnt1679298767437 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(
|
|
2920
|
+
content: counter(cnt1679298767437);
|
|
2921
2921
|
}
|
|
2922
2922
|
/*! ****************************/
|
|
2923
2923
|
/*! text-shadow */
|
|
@@ -3356,30 +3356,30 @@ video {
|
|
|
3356
3356
|
/* Eventkalender */
|
|
3357
3357
|
--color-eventcalendar-primary: var(--color-primary-ds);
|
|
3358
3358
|
/* Dachzeile */
|
|
3359
|
-
--color-topline:
|
|
3359
|
+
--color-topline: #AB2F2D;
|
|
3360
3360
|
/* Subline */
|
|
3361
3361
|
--color-subline: var(--color-topline);
|
|
3362
3362
|
/* Link */
|
|
3363
|
-
--color-link:
|
|
3363
|
+
--color-link: #AB2F2D;
|
|
3364
3364
|
/* Stage */
|
|
3365
3365
|
--color-stage-text-box: 141 39 37;
|
|
3366
3366
|
--color-stage-primary: var(--color-primary-ds);
|
|
3367
3367
|
--color-stage-link: #ffffff;
|
|
3368
3368
|
/* Cluster-Teaser */
|
|
3369
|
-
--color-cluster-teaser-link:
|
|
3369
|
+
--color-cluster-teaser-link: #AB2F2D;
|
|
3370
3370
|
--color-cluster-teaser-headline: var(--color-primary-ds);
|
|
3371
3371
|
/* Button */
|
|
3372
|
-
--color-button:
|
|
3372
|
+
--color-button: #AB2F2D;
|
|
3373
3373
|
--color-button-inverted: #ffffff;
|
|
3374
|
-
--color-button-hollow:
|
|
3374
|
+
--color-button-hollow: #AB2F2D;
|
|
3375
3375
|
/* Media-Button */
|
|
3376
|
-
--color-media-button:
|
|
3376
|
+
--color-media-button: #AB2F2D;
|
|
3377
3377
|
/* States */
|
|
3378
|
-
--color-focus-state:
|
|
3378
|
+
--color-focus-state: #AB2F2D;
|
|
3379
3379
|
/* Content-Nav */
|
|
3380
|
-
--color-content-nav:
|
|
3380
|
+
--color-content-nav: #AB2F2D;
|
|
3381
3381
|
/* Podcast-Player */
|
|
3382
|
-
--color-podcast:
|
|
3382
|
+
--color-podcast: #AB2F2D;
|
|
3383
3383
|
--color-podcast-text: var(--color-link);
|
|
3384
3384
|
--color-podcast-highlight: #000000;
|
|
3385
3385
|
/* Font */
|
|
@@ -3411,30 +3411,30 @@ video {
|
|
|
3411
3411
|
/* Eventkalender */
|
|
3412
3412
|
--color-eventcalendar-primary: var(--color-primary-ds);
|
|
3413
3413
|
/* Dachzeile */
|
|
3414
|
-
--color-topline:
|
|
3414
|
+
--color-topline: #007A7C;
|
|
3415
3415
|
/* Subline */
|
|
3416
3416
|
--color-subline: var(--color-topline);
|
|
3417
3417
|
/* Link */
|
|
3418
|
-
--color-link:
|
|
3418
|
+
--color-link: #007A7C;
|
|
3419
3419
|
/* Stage */
|
|
3420
3420
|
--color-stage-text-box: 67 61 55;
|
|
3421
3421
|
--color-stage-primary: #00646f;
|
|
3422
3422
|
--color-stage-link: #ffffff;
|
|
3423
3423
|
/* Cluster-Teaser */
|
|
3424
|
-
--color-cluster-teaser-link:
|
|
3424
|
+
--color-cluster-teaser-link: #007A7C;
|
|
3425
3425
|
--color-cluster-teaser-headline: var(--color-primary-ds);
|
|
3426
3426
|
/* Button */
|
|
3427
|
-
--color-button:
|
|
3427
|
+
--color-button: #007A7C;
|
|
3428
3428
|
--color-button-inverted: #ffffff;
|
|
3429
|
-
--color-button-hollow:
|
|
3429
|
+
--color-button-hollow: #007A7C;
|
|
3430
3430
|
/* Media-Button */
|
|
3431
|
-
--color-media-button:
|
|
3431
|
+
--color-media-button: #007A7C;
|
|
3432
3432
|
/* States */
|
|
3433
|
-
--color-focus-state:
|
|
3433
|
+
--color-focus-state: #007A7C;
|
|
3434
3434
|
/* Content-Nav */
|
|
3435
|
-
--color-content-nav:
|
|
3435
|
+
--color-content-nav: #007A7C;
|
|
3436
3436
|
/* Podcast-Player */
|
|
3437
|
-
--color-podcast:
|
|
3437
|
+
--color-podcast: #007A7C;
|
|
3438
3438
|
--color-podcast-text: var(--color-link);
|
|
3439
3439
|
--color-podcast-highlight: #000000;
|
|
3440
3440
|
/* Font */
|
|
@@ -3570,7 +3570,7 @@ video {
|
|
|
3570
3570
|
/* Eilmeldung */
|
|
3571
3571
|
--color-label-breakingnews: #cc1a14;
|
|
3572
3572
|
/* Sendung */
|
|
3573
|
-
--color-label-program:
|
|
3573
|
+
--color-label-program: #8C033D;
|
|
3574
3574
|
/* Download */
|
|
3575
3575
|
--color-label-download: #606060;
|
|
3576
3576
|
/* Event */
|
|
@@ -3578,33 +3578,33 @@ video {
|
|
|
3578
3578
|
/* Kurzmeldung */
|
|
3579
3579
|
--color-label-kurzmeldung: #0a3355;
|
|
3580
3580
|
/* Eventkalender */
|
|
3581
|
-
--color-eventcalendar-primary:
|
|
3581
|
+
--color-eventcalendar-primary: #8C033D;
|
|
3582
3582
|
/* Dachzeile */
|
|
3583
|
-
--color-topline:
|
|
3583
|
+
--color-topline: #8C033D;
|
|
3584
3584
|
/* Subline */
|
|
3585
3585
|
--color-subline: var(--color-topline);
|
|
3586
3586
|
/* Link */
|
|
3587
|
-
--color-link:
|
|
3587
|
+
--color-link: #8C033D;
|
|
3588
3588
|
/* Stage */
|
|
3589
3589
|
--color-stage-text-box: 255 255 255;
|
|
3590
3590
|
--color-stage-primary: var(--color-primary-ds);
|
|
3591
3591
|
--color-stage-text: #000000;
|
|
3592
3592
|
--color-stage-link: var(--color-link);
|
|
3593
3593
|
/* Cluster-Teaser */
|
|
3594
|
-
--color-cluster-teaser-link:
|
|
3594
|
+
--color-cluster-teaser-link: #8C033D;
|
|
3595
3595
|
--color-cluster-teaser-headline: #000000;
|
|
3596
3596
|
/* Button */
|
|
3597
|
-
--color-button:
|
|
3597
|
+
--color-button: #8C033D;
|
|
3598
3598
|
--color-button-inverted: #ffffff;
|
|
3599
|
-
--color-button-hollow:
|
|
3599
|
+
--color-button-hollow: #8C033D;
|
|
3600
3600
|
/* Media-Button */
|
|
3601
3601
|
--color-media-button: #c95702;
|
|
3602
3602
|
/* States */
|
|
3603
|
-
--color-focus-state:
|
|
3603
|
+
--color-focus-state: #8C033D;
|
|
3604
3604
|
/* Content-Nav */
|
|
3605
|
-
--color-content-nav:
|
|
3605
|
+
--color-content-nav: #8C033D;
|
|
3606
3606
|
/* Podcast-Player */
|
|
3607
|
-
--color-podcast:
|
|
3607
|
+
--color-podcast: #8C033D;
|
|
3608
3608
|
--color-podcast-text: var(--color-link);
|
|
3609
3609
|
--color-podcast-highlight: #A14702;
|
|
3610
3610
|
/* Font */
|
|
@@ -3696,11 +3696,11 @@ video {
|
|
|
3696
3696
|
/* Eventkalender */
|
|
3697
3697
|
--color-eventcalendar-primary: var(--color-primary-ds);
|
|
3698
3698
|
/* Dachzeile */
|
|
3699
|
-
--color-topline:
|
|
3699
|
+
--color-topline: #0F6157;
|
|
3700
3700
|
/* Subline */
|
|
3701
3701
|
--color-subline: var(--color-topline);
|
|
3702
3702
|
/* Link */
|
|
3703
|
-
--color-link:
|
|
3703
|
+
--color-link: #0F6157;
|
|
3704
3704
|
/* Stage */
|
|
3705
3705
|
--color-stage-text-box: 255 255 255;
|
|
3706
3706
|
--color-stage-primary: #168378;
|
|
@@ -3714,13 +3714,13 @@ video {
|
|
|
3714
3714
|
--color-button-inverted: #ffffff;
|
|
3715
3715
|
--color-button-hollow: #29675d;
|
|
3716
3716
|
/* Media-Button */
|
|
3717
|
-
--color-media-button:
|
|
3717
|
+
--color-media-button: #0F6157;
|
|
3718
3718
|
/* States */
|
|
3719
3719
|
--color-focus-state: var(--color-link);
|
|
3720
3720
|
/* Content-Nav */
|
|
3721
3721
|
--color-content-nav: var(--color-primary-ds);
|
|
3722
3722
|
/* Podcast-Player */
|
|
3723
|
-
--color-podcast:
|
|
3723
|
+
--color-podcast: #0F6157;
|
|
3724
3724
|
--color-podcast-text: var(--color-link);
|
|
3725
3725
|
--color-podcast-highlight: #bf0071;
|
|
3726
3726
|
/* Font */
|
|
@@ -3744,7 +3744,7 @@ video {
|
|
|
3744
3744
|
/* Eilmeldung */
|
|
3745
3745
|
--color-label-breakingnews: #cc1a14;
|
|
3746
3746
|
/* Sendung */
|
|
3747
|
-
--color-label-program:
|
|
3747
|
+
--color-label-program: #007EA1;
|
|
3748
3748
|
/* Download */
|
|
3749
3749
|
--color-label-download: #606060;
|
|
3750
3750
|
/* Event */
|
|
@@ -3778,7 +3778,7 @@ video {
|
|
|
3778
3778
|
/* Content-Nav */
|
|
3779
3779
|
--color-content-nav: var(--color-link);
|
|
3780
3780
|
/* Podcast-Player */
|
|
3781
|
-
--color-podcast:
|
|
3781
|
+
--color-podcast: #007EA1;
|
|
3782
3782
|
--color-podcast-text: var(--color-link);
|
|
3783
3783
|
--color-podcast-highlight: #000000;
|
|
3784
3784
|
/* Font */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="js-load" data-hr-modal='{"modalTriggerId":"{{defaultIfEmpty _trigger ""}}", "trackingInformations": "{{this.link.cmsDocument.title}} Ticketlink-Overlay ok geklickt - Dokumenten-Id: {{this.link.cmsDocument.sophoraId}}","dialogPolyfillBaseUrl":"{{resourceUrl (configProperty 'dialogPolyfill.baseUrl')}}"}'>
|
|
1
|
+
<div class="js-load" data-hr-modal='{"modalTriggerId":"{{defaultIfEmpty _trigger ""}}", "trackingInformations": "\" {{this.link.cmsDocument.title}} \" Ticketlink-Overlay ok geklickt - Dokumenten-Id: {{this.link.cmsDocument.sophoraId}}","dialogPolyfillBaseUrl":"{{resourceUrl (configProperty 'dialogPolyfill.baseUrl')}}"}'>
|
|
2
2
|
<dialog class='js-modal p-0 backdrop:bg-grey-scorpion/90 shadow-md {{defaultIfEmpty _css "sm:max-w-xl"}}'>
|
|
3
3
|
<form method="dialog" class="js-dialog-content p-4">
|
|
4
4
|
{{> @partial-block }}
|
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.
|
|
9
|
+
"version": "1.9.4",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "start-storybook -p 6006 public",
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Meta, ColorPalette, ColorItem } from '@storybook/addon-docs'
|
|
2
|
+
const tailwindConfig = require('../../tailwind.config')
|
|
3
|
+
const colorVariables = Object.entries(tailwindConfig.theme.extend.colors).filter(
|
|
4
|
+
([key, value]) => typeof value === 'string' && value.match(/^var/)
|
|
5
|
+
)
|
|
6
|
+
let brands = ['hr','hessenschau','hr1','hr2','hr3','hr4','you-fm','hr-inforadio','hr-fernsehen','hr-rundfunkrat','hr-werbung','hr-bigband','hr-sinfonieorchester']
|
|
7
|
+
let shortcuts = ['hr','hs','hr1','hr2','hr3','hr4','youfm','hrInfo','hr-FS','hr-RR','hr-W','hr-BB','hr-SO']
|
|
8
|
+
let colorsMap = {}
|
|
9
|
+
colorVariables.forEach(([key, value]) => {
|
|
10
|
+
let colors = []
|
|
11
|
+
colors.push(value)
|
|
12
|
+
colorsMap[key] = colors
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
<Meta title="Grundlegendes/Farben/Markenfarben" />
|
|
16
|
+
|
|
17
|
+
<h1>Markenfarben</h1>
|
|
18
|
+
<br/>
|
|
19
|
+
<ColorPalette>
|
|
20
|
+
{Object.entries(colorsMap).map((token, index) => {
|
|
21
|
+
let colorsMapBrands = {}
|
|
22
|
+
for (let i = 0; i < brands.length; i++) {
|
|
23
|
+
let ele = document.querySelector(':root');
|
|
24
|
+
ele.setAttribute('data-theme', brands[i])
|
|
25
|
+
let cs = getComputedStyle(ele);
|
|
26
|
+
let cv = token[1].toString()
|
|
27
|
+
let p = cv.substring(4, cv.length-1)
|
|
28
|
+
if(p.indexOf(',') > -1) {p = p.substring(0, p.indexOf(','))}
|
|
29
|
+
let hexColor = cs.getPropertyValue(p)
|
|
30
|
+
colorsMapBrands[shortcuts[i]] = hexColor
|
|
31
|
+
}
|
|
32
|
+
return (
|
|
33
|
+
<ColorItem
|
|
34
|
+
title={token[0]}
|
|
35
|
+
colors={colorsMapBrands}
|
|
36
|
+
/>
|
|
37
|
+
)
|
|
38
|
+
})}
|
|
39
|
+
</ColorPalette>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="js-load" data-hr-modal='{"modalTriggerId":"{{defaultIfEmpty _trigger ""}}", "trackingInformations": "{{this.link.cmsDocument.title}} Ticketlink-Overlay ok geklickt - Dokumenten-Id: {{this.link.cmsDocument.sophoraId}}","dialogPolyfillBaseUrl":"{{resourceUrl (configProperty 'dialogPolyfill.baseUrl')}}"}'>
|
|
1
|
+
<div class="js-load" data-hr-modal='{"modalTriggerId":"{{defaultIfEmpty _trigger ""}}", "trackingInformations": "\" {{this.link.cmsDocument.title}} \" Ticketlink-Overlay ok geklickt - Dokumenten-Id: {{this.link.cmsDocument.sophoraId}}","dialogPolyfillBaseUrl":"{{resourceUrl (configProperty 'dialogPolyfill.baseUrl')}}"}'>
|
|
2
2
|
<dialog class='js-modal p-0 backdrop:bg-grey-scorpion/90 shadow-md {{defaultIfEmpty _css "sm:max-w-xl"}}'>
|
|
3
3
|
<form method="dialog" class="js-dialog-content p-4">
|
|
4
4
|
{{> @partial-block }}
|
package/tailwind.config.js
CHANGED
|
@@ -230,14 +230,14 @@ module.exports = {
|
|
|
230
230
|
deepSeaDream: '#002c6b',
|
|
231
231
|
dodgerBlue: '#407596',
|
|
232
232
|
jellyBean: '#276b9e',
|
|
233
|
-
lightCerulean: '#
|
|
233
|
+
lightCerulean: '#007EA1',
|
|
234
234
|
matisse: '#1B7C96',
|
|
235
235
|
midnight: '#023770',
|
|
236
236
|
pacificBlue: '#009bc6',
|
|
237
237
|
science: '#006dc1',
|
|
238
238
|
sea: '#006783',
|
|
239
239
|
tarawera: '#0a3355',
|
|
240
|
-
teal: '#
|
|
240
|
+
teal: '#007A7C',
|
|
241
241
|
turquoiseCerulian: '#007fa0',
|
|
242
242
|
},
|
|
243
243
|
'black': {
|
|
@@ -249,10 +249,10 @@ module.exports = {
|
|
|
249
249
|
lipstick: '#CC006E',
|
|
250
250
|
mexican: '#a12644',
|
|
251
251
|
monza: '#c20016',
|
|
252
|
-
paprika: '#
|
|
252
|
+
paprika: '#8C033D',
|
|
253
253
|
scarlett: '#9b0112',
|
|
254
254
|
thunderbird: '#cc1a14',
|
|
255
|
-
wellRead: '#
|
|
255
|
+
wellRead: '#AB2F2D',
|
|
256
256
|
},
|
|
257
257
|
'pink': {
|
|
258
258
|
fuchsie: '#bf0071',
|
|
@@ -269,7 +269,7 @@ module.exports = {
|
|
|
269
269
|
spicyCarrot: '#d34600',
|
|
270
270
|
},
|
|
271
271
|
'teal': {
|
|
272
|
-
DEFAULT: '#
|
|
272
|
+
DEFAULT: '#007A7C',
|
|
273
273
|
deeperPool: '#097d8e',
|
|
274
274
|
},
|
|
275
275
|
'grey': {
|
|
@@ -285,7 +285,7 @@ module.exports = {
|
|
|
285
285
|
},
|
|
286
286
|
'green': {
|
|
287
287
|
casal: '#29675d',
|
|
288
|
-
eden: '#
|
|
288
|
+
eden: '#0F6157',
|
|
289
289
|
flint: '#6e675e',
|
|
290
290
|
genoa: '#168378',
|
|
291
291
|
goBen: '#6e6748',
|