hr-design-system-handlebars 1.26.1 → 1.26.3
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 +40 -17
- package/dist/views/components/teaser/ticker/teaser_ticker_timeline.hbs +29 -0
- package/package.json +1 -1
- package/src/assets/fixtures/teaser/teaser_ticker_timeline.json +31 -0
- package/src/stories/views/components/teaser/fixtures/teaser_ticker_timeline.json +1 -0
- package/src/stories/views/components/teaser/ticker/teaser_ticker_timeline.hbs +29 -0
- package/src/stories/views/components/teaser/ticker/teaser_ticker_timeline.mdx +30 -0
- package/src/stories/views/components/teaser/ticker/teaser_ticker_timeline.stories.js +44 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v1.26.3 (Wed Jun 14 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- updates tailwind [#650](https://github.com/mumprod/hr-design-system-handlebars/pull/650) ([@StefanVesper](https://github.com/StefanVesper))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v1.26.2 (Mon Jun 12 2023)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- add ticker-timeline [#648](https://github.com/mumprod/hr-design-system-handlebars/pull/648) ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v1.26.1 (Mon Jun 05 2023)
|
|
2
26
|
|
|
3
27
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
! tailwindcss v3.3.
|
|
2
|
+
! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com
|
|
3
3
|
*//*
|
|
4
4
|
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
5
5
|
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
|
@@ -433,6 +433,12 @@ video {
|
|
|
433
433
|
--tw-scale-y: 1;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
+
.from-black, .from-purple-50, .from-white, .to-purple-100, .md\:from-white {
|
|
437
|
+
--tw-gradient-from-position: ;
|
|
438
|
+
--tw-gradient-via-position: ;
|
|
439
|
+
--tw-gradient-to-position: ;
|
|
440
|
+
}
|
|
441
|
+
|
|
436
442
|
.btn--secondary, .ds-focus, .ds-focus:not(:focus-visible), .ds-button, .ds-button:not(:focus-visible), .ds-button-round, .ds-button-round:not(:focus-visible), .ds-link, .ds-link:not(:focus-visible), .ds-teaser-focus, .ds-teaser-focus::before, .ds-cta > *, .ds-teaser-focus:not(:focus-visible)::before, .-isOpen, .shadow-inner, .shadow-md, .shadow-xl, .before\:shadow-stage::before {
|
|
437
443
|
--tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);
|
|
438
444
|
--tw-ring-shadow: 0 0 rgba(0,0,0,0);
|
|
@@ -1027,6 +1033,12 @@ video {
|
|
|
1027
1033
|
bottom: 0px;
|
|
1028
1034
|
left: 0px;
|
|
1029
1035
|
}
|
|
1036
|
+
.-left-4 {
|
|
1037
|
+
left: -1rem;
|
|
1038
|
+
}
|
|
1039
|
+
.-left-5 {
|
|
1040
|
+
left: -1.25rem;
|
|
1041
|
+
}
|
|
1030
1042
|
.bottom-0 {
|
|
1031
1043
|
bottom: 0px;
|
|
1032
1044
|
}
|
|
@@ -1063,6 +1075,9 @@ video {
|
|
|
1063
1075
|
.top-0 {
|
|
1064
1076
|
top: 0px;
|
|
1065
1077
|
}
|
|
1078
|
+
.top-0\.5 {
|
|
1079
|
+
top: 0.125rem;
|
|
1080
|
+
}
|
|
1066
1081
|
.top-1\/2 {
|
|
1067
1082
|
top: 50%;
|
|
1068
1083
|
}
|
|
@@ -1368,6 +1383,9 @@ video {
|
|
|
1368
1383
|
.h-8 {
|
|
1369
1384
|
height: 2rem;
|
|
1370
1385
|
}
|
|
1386
|
+
.h-\[9px\] {
|
|
1387
|
+
height: 9px;
|
|
1388
|
+
}
|
|
1371
1389
|
.h-auto {
|
|
1372
1390
|
height: auto;
|
|
1373
1391
|
}
|
|
@@ -1392,6 +1410,9 @@ video {
|
|
|
1392
1410
|
.max-h-stage {
|
|
1393
1411
|
max-height: 34.3125rem;
|
|
1394
1412
|
}
|
|
1413
|
+
.w-0 {
|
|
1414
|
+
width: 0px;
|
|
1415
|
+
}
|
|
1395
1416
|
.w-10 {
|
|
1396
1417
|
width: 2.5rem;
|
|
1397
1418
|
}
|
|
@@ -1455,6 +1476,9 @@ video {
|
|
|
1455
1476
|
.w-\[1600px\] {
|
|
1456
1477
|
width: 1600px;
|
|
1457
1478
|
}
|
|
1479
|
+
.w-\[9px\] {
|
|
1480
|
+
width: 9px;
|
|
1481
|
+
}
|
|
1458
1482
|
.w-auto {
|
|
1459
1483
|
width: auto;
|
|
1460
1484
|
}
|
|
@@ -2002,6 +2026,10 @@ video {
|
|
|
2002
2026
|
--tw-bg-opacity: 1;
|
|
2003
2027
|
background-color: rgba(252, 242, 237, var(--tw-bg-opacity));
|
|
2004
2028
|
}
|
|
2029
|
+
.bg-orange-spicyCarrot {
|
|
2030
|
+
--tw-bg-opacity: 1;
|
|
2031
|
+
background-color: rgba(211, 70, 0, var(--tw-bg-opacity));
|
|
2032
|
+
}
|
|
2005
2033
|
.bg-podcast {
|
|
2006
2034
|
background-color: #006dc1;
|
|
2007
2035
|
background-color: var(--color-podcast);
|
|
@@ -2041,28 +2069,21 @@ video {
|
|
|
2041
2069
|
}
|
|
2042
2070
|
.from-black {
|
|
2043
2071
|
--tw-gradient-from: #000000 var(--tw-gradient-from-position);
|
|
2044
|
-
--tw-gradient-
|
|
2045
|
-
--tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-from-position);
|
|
2046
|
-
--tw-gradient-to-position: ;
|
|
2072
|
+
--tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-to-position);
|
|
2047
2073
|
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
2048
2074
|
}
|
|
2049
2075
|
.from-purple-50 {
|
|
2050
2076
|
--tw-gradient-from: #faf5ff var(--tw-gradient-from-position);
|
|
2051
|
-
--tw-gradient-
|
|
2052
|
-
--tw-gradient-to: rgba(250, 245, 255, 0) var(--tw-gradient-from-position);
|
|
2053
|
-
--tw-gradient-to-position: ;
|
|
2077
|
+
--tw-gradient-to: rgba(250, 245, 255, 0) var(--tw-gradient-to-position);
|
|
2054
2078
|
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
2055
2079
|
}
|
|
2056
2080
|
.from-white {
|
|
2057
2081
|
--tw-gradient-from: #ffffff var(--tw-gradient-from-position);
|
|
2058
|
-
--tw-gradient-
|
|
2059
|
-
--tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-from-position);
|
|
2060
|
-
--tw-gradient-to-position: ;
|
|
2082
|
+
--tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);
|
|
2061
2083
|
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
2062
2084
|
}
|
|
2063
2085
|
.to-purple-100 {
|
|
2064
2086
|
--tw-gradient-to: #f3e8ff var(--tw-gradient-to-position);
|
|
2065
|
-
--tw-gradient-to-position: ;
|
|
2066
2087
|
}
|
|
2067
2088
|
.fill-blue-congress {
|
|
2068
2089
|
fill: #005293;
|
|
@@ -2132,6 +2153,10 @@ video {
|
|
|
2132
2153
|
padding-left: 0.375rem;
|
|
2133
2154
|
padding-right: 0.375rem;
|
|
2134
2155
|
}
|
|
2156
|
+
.px-10 {
|
|
2157
|
+
padding-left: 2.5rem;
|
|
2158
|
+
padding-right: 2.5rem;
|
|
2159
|
+
}
|
|
2135
2160
|
.px-2 {
|
|
2136
2161
|
padding-left: 0.5rem;
|
|
2137
2162
|
padding-right: 0.5rem;
|
|
@@ -2732,7 +2757,7 @@ video {
|
|
|
2732
2757
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
2733
2758
|
}
|
|
2734
2759
|
.counter-reset {
|
|
2735
|
-
counter-reset:
|
|
2760
|
+
counter-reset: cnt1686750988650;
|
|
2736
2761
|
}
|
|
2737
2762
|
.hyphens-auto {
|
|
2738
2763
|
-webkit-hyphens: auto;
|
|
@@ -2968,7 +2993,7 @@ video {
|
|
|
2968
2993
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
2969
2994
|
}
|
|
2970
2995
|
.-ordered {
|
|
2971
|
-
counter-increment:
|
|
2996
|
+
counter-increment: cnt1686750988650 1;
|
|
2972
2997
|
}
|
|
2973
2998
|
.-ordered::before {
|
|
2974
2999
|
position: absolute;
|
|
@@ -2984,7 +3009,7 @@ video {
|
|
|
2984
3009
|
letter-spacing: .0125em;
|
|
2985
3010
|
--tw-text-opacity: 1;
|
|
2986
3011
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
2987
|
-
content: counter(
|
|
3012
|
+
content: counter(cnt1686750988650);
|
|
2988
3013
|
}
|
|
2989
3014
|
/*! ****************************/
|
|
2990
3015
|
/*! text-shadow */
|
|
@@ -4689,9 +4714,7 @@ video {
|
|
|
4689
4714
|
|
|
4690
4715
|
.md\:from-white {
|
|
4691
4716
|
--tw-gradient-from: #ffffff var(--tw-gradient-from-position);
|
|
4692
|
-
--tw-gradient-
|
|
4693
|
-
--tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-from-position);
|
|
4694
|
-
--tw-gradient-to-position: ;
|
|
4717
|
+
--tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);
|
|
4695
4718
|
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
4696
4719
|
}
|
|
4697
4720
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{{~#with this.tickerItemResults ~}}
|
|
2
|
+
<ul class="px-10">
|
|
3
|
+
{{~#each this~}}
|
|
4
|
+
{{#if this.isTopnews}}
|
|
5
|
+
<li class="relative h-auto pb-5">
|
|
6
|
+
<div class="absolute h-full">
|
|
7
|
+
<div class="relative w-[9px] h-[9px] rounded-full top-0.5 bg-orange-spicyCarrot -left-5"></div>
|
|
8
|
+
{{#unless @last}}
|
|
9
|
+
<div class="relative flex flex-col w-0 h-full -left-4">
|
|
10
|
+
<div class="h-full my-2 border-l{{#if ../../_color}} border-{{../../_color}}{{else}} border-gray-400{{/if}}"></div>
|
|
11
|
+
<div class="h-2"></div>
|
|
12
|
+
</div>
|
|
13
|
+
{{/unless}}
|
|
14
|
+
</div>
|
|
15
|
+
{{#with this.tickerItemDateTime~}}
|
|
16
|
+
<div class="text-xs{{#if ../../../_color}} text-{{../../../_color}}{{/if}}">
|
|
17
|
+
{{#if ../../../this.isMultiDay}}
|
|
18
|
+
{{this.broadcastDate }}
|
|
19
|
+
{{else}}
|
|
20
|
+
{{this.time }}
|
|
21
|
+
{{/if}}
|
|
22
|
+
</div>
|
|
23
|
+
{{~/with}}
|
|
24
|
+
<a class="text-base{{#if ../../_color}} text-{{../../_color}}{{else}} text-toplineColor{{/if}} underline decoration-1 ds-link" href="{{this.tickerItemUrl}}">{{this.relevantTitle}}</a>
|
|
25
|
+
</li>
|
|
26
|
+
{{/if}}
|
|
27
|
+
{{~/each~}}
|
|
28
|
+
</ul>
|
|
29
|
+
{{~/with~}}
|
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.26.
|
|
9
|
+
"version": "1.26.3",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tickerItemResults": [
|
|
3
|
+
{
|
|
4
|
+
"isTopnews": true,
|
|
5
|
+
"tickerItemDateTime": {
|
|
6
|
+
"broadcastDate": "12. Juni, 10:15",
|
|
7
|
+
"time": "10:15"
|
|
8
|
+
},
|
|
9
|
+
"tickerItemUrl": "Topnews1",
|
|
10
|
+
"relevantTitle": "Kritik an Privatisierung von Wasser"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"isTopnews": true,
|
|
14
|
+
"tickerItemDateTime": {
|
|
15
|
+
"broadcastDate": "12. Juni, 9:55",
|
|
16
|
+
"time": "9:55"
|
|
17
|
+
},
|
|
18
|
+
"tickerItemUrl": "Topnews2",
|
|
19
|
+
"relevantTitle": "Suche nach neuem Vorsitz für Hanau-Ausschuss Hanau-Ausschuss Hanau-Ausschuss Hanau-Ausschuss"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"isTopnews": true,
|
|
23
|
+
"tickerItemDateTime": {
|
|
24
|
+
"broadcastDate": "12. Juni, 9:25",
|
|
25
|
+
"time": "9:25"
|
|
26
|
+
},
|
|
27
|
+
"tickerItemUrl": "Topnews3",
|
|
28
|
+
"relevantTitle": "Pedelec-Fahrer auf B276 lebensgefährlich verletzt"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"tickerItemResults":[{"isTopnews":true,"tickerItemDateTime":{"broadcastDate":"12. Juni, 10:15","time":"10:15"},"tickerItemUrl":"Topnews1","relevantTitle":"Kritik an Privatisierung von Wasser"},{"isTopnews":true,"tickerItemDateTime":{"broadcastDate":"12. Juni, 9:55","time":"9:55"},"tickerItemUrl":"Topnews2","relevantTitle":"Suche nach neuem Vorsitz für Hanau-Ausschuss Hanau-Ausschuss Hanau-Ausschuss Hanau-Ausschuss"},{"isTopnews":true,"tickerItemDateTime":{"broadcastDate":"12. Juni, 9:25","time":"9:25"},"tickerItemUrl":"Topnews3","relevantTitle":"Pedelec-Fahrer auf B276 lebensgefährlich verletzt"}]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{{~#with this.tickerItemResults ~}}
|
|
2
|
+
<ul class="px-10">
|
|
3
|
+
{{~#each this~}}
|
|
4
|
+
{{#if this.isTopnews}}
|
|
5
|
+
<li class="relative h-auto pb-5">
|
|
6
|
+
<div class="absolute h-full">
|
|
7
|
+
<div class="relative w-[9px] h-[9px] rounded-full top-0.5 bg-orange-spicyCarrot -left-5"></div>
|
|
8
|
+
{{#unless @last}}
|
|
9
|
+
<div class="relative flex flex-col w-0 h-full -left-4">
|
|
10
|
+
<div class="h-full my-2 border-l{{#if ../../_color}} border-{{../../_color}}{{else}} border-gray-400{{/if}}"></div>
|
|
11
|
+
<div class="h-2"></div>
|
|
12
|
+
</div>
|
|
13
|
+
{{/unless}}
|
|
14
|
+
</div>
|
|
15
|
+
{{#with this.tickerItemDateTime~}}
|
|
16
|
+
<div class="text-xs{{#if ../../../_color}} text-{{../../../_color}}{{/if}}">
|
|
17
|
+
{{#if ../../../this.isMultiDay}}
|
|
18
|
+
{{this.broadcastDate }}
|
|
19
|
+
{{else}}
|
|
20
|
+
{{this.time }}
|
|
21
|
+
{{/if}}
|
|
22
|
+
</div>
|
|
23
|
+
{{~/with}}
|
|
24
|
+
<a class="text-base{{#if ../../_color}} text-{{../../_color}}{{else}} text-toplineColor{{/if}} underline decoration-1 ds-link" href="{{this.tickerItemUrl}}">{{this.relevantTitle}}</a>
|
|
25
|
+
</li>
|
|
26
|
+
{{/if}}
|
|
27
|
+
{{~/each~}}
|
|
28
|
+
</ul>
|
|
29
|
+
{{~/with~}}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ArgsTable, Meta, Story, Canvas } from '@storybook/blocks'
|
|
2
|
+
import * as TimelineStories from './teaser_ticker_timeline.stories'
|
|
3
|
+
|
|
4
|
+
<Meta of={TimelineStories} />
|
|
5
|
+
|
|
6
|
+
# Ticker-Zeitstrahl
|
|
7
|
+
|
|
8
|
+
Im Ticker-Zeitstrahl werden die neuesten Topnews chronologisch absteigend angezeigt.
|
|
9
|
+
Dargestellt werden Veröffentlichungszeit und Titel. Der Titel ist verlinkt auf den entsprechenden Ticker-Eintrag.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Varianten
|
|
13
|
+
|
|
14
|
+
Aktuell sind 2 Varianten vorgesehen. Eine zur Darstellung im Teaser (weiße Schrift auf blauem Hintergrund) und eine weitere
|
|
15
|
+
für die Darstellung im Ticker selbst (schwarz/Linkfarbe auf weiß)
|
|
16
|
+
|
|
17
|
+
<Canvas>
|
|
18
|
+
<Story of={TimelineStories.TimelineWhite} />
|
|
19
|
+
<Story of={TimelineStories.TimelineBlack} />
|
|
20
|
+
</Canvas>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Verwendung
|
|
24
|
+
|
|
25
|
+
Die Komponente wird wie folgt eingebunden:
|
|
26
|
+
|
|
27
|
+
```handlebars
|
|
28
|
+
{{> components/teaser/ticker/teaser_ticker_timeline _color="white"}}
|
|
29
|
+
```
|
|
30
|
+
Der _color-Parameter ist optional. Ohne _color-Parameter wird der Zeitstrahl in schwarz/Linkfarbe dargestellt.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import timelineJson from '../fixtures/teaser_ticker_timeline.json'
|
|
2
|
+
|
|
3
|
+
const handlebars = require('hrHandlebars')
|
|
4
|
+
|
|
5
|
+
const timelineOnBlue = (args) => {
|
|
6
|
+
let hbsTemplate = handlebars.compile(`
|
|
7
|
+
<div class="bg-blue-congress pt-5">
|
|
8
|
+
{{> components/teaser/ticker/teaser_ticker_timeline _color="white"}}
|
|
9
|
+
</div>
|
|
10
|
+
`)
|
|
11
|
+
return hbsTemplate({ ...args })
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const timelineOnWhite = (args) => {
|
|
15
|
+
let hbsTemplate = handlebars.compile(`
|
|
16
|
+
<div class="pt-5">
|
|
17
|
+
{{> components/teaser/ticker/teaser_ticker_timeline }}
|
|
18
|
+
</div>
|
|
19
|
+
`)
|
|
20
|
+
return hbsTemplate({ ...args })
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default {
|
|
24
|
+
title: 'Komponenten/Teaser/Ticker/Komponenten',
|
|
25
|
+
|
|
26
|
+
argTypes: {
|
|
27
|
+
'_color': {
|
|
28
|
+
description: 'Text- und Linienfarbe',
|
|
29
|
+
control: false,
|
|
30
|
+
},
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const TimelineWhite = {
|
|
35
|
+
render: timelineOnBlue.bind({}),
|
|
36
|
+
name: 'Zeitstrahl auf blau',
|
|
37
|
+
args: timelineJson,
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const TimelineBlack = {
|
|
41
|
+
render: timelineOnWhite.bind({}),
|
|
42
|
+
name: 'Zeitstrahl auf weiß',
|
|
43
|
+
args: timelineJson,
|
|
44
|
+
}
|