hr-design-system-handlebars 0.42.10 → 0.43.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 +37 -0
- package/dist/assets/index.css +52 -44
- package/dist/views/components/Grid/GridGroup.hbs +2 -2
- package/dist/views/components/Label.hbs +5 -5
- package/dist/views/components/Teaser/Teaser-alternativ.hbs +16 -0
- package/dist/views/components/Teaser/Teaser-standard.hbs +3 -3
- package/dist/views/components/Teaser/{Byline.hbs → components/Byline.hbs} +1 -1
- package/dist/views/components/Teaser/{Comments.hbs → components/Comments.hbs} +0 -0
- package/{src/stories/views/components/Teaser → dist/views/components/Teaser/components}/Teaser-Heading.hbs +3 -3
- package/dist/views/components/Teaser/{Title.hbs → components/Title.hbs} +0 -0
- package/dist/views/components/Teaser/components/Topline.hbs +6 -0
- package/dist/views/components/Teaser/{teaserText.hbs → components/teaserText.hbs} +0 -0
- package/dist/views/components/Teaser/group_teaser/group_teaser.hbs +10 -0
- package/dist/views/components/Teaser/{teaser_logic.hbs → teaser_logic/teaser_logic.hbs} +1 -1
- package/dist/views/components/Teaser/{teaser_logic.ssi.hbs → teaser_logic/teaser_logic.ssi.hbs} +0 -0
- package/dist/views/components/base/loadDynamic.hbs +2 -2
- package/package.json +1 -1
- package/src/stories/views/components/Grid/GridGroup.hbs +2 -2
- package/src/stories/views/components/Label.hbs +5 -5
- package/src/stories/views/components/Teaser/Teaser-alternativ.hbs +16 -0
- package/src/stories/views/components/Teaser/Teaser-standard.hbs +3 -3
- package/src/stories/views/components/Teaser/{Byline.hbs → components/Byline.hbs} +1 -1
- package/src/stories/views/components/Teaser/{Byline.stories.mdx → components/Byline.stories.mdx} +3 -3
- package/src/stories/views/components/Teaser/{Comments.hbs → components/Comments.hbs} +0 -0
- package/{dist/views/components/Teaser → src/stories/views/components/Teaser/components}/Teaser-Heading.hbs +3 -3
- package/src/stories/views/components/Teaser/{Teaser-Heading.stories.mdx → components/Teaser-Heading.stories.mdx} +0 -0
- package/src/stories/views/components/Teaser/{Title.hbs → components/Title.hbs} +0 -0
- package/src/stories/views/components/Teaser/{Title.stories.mdx → components/Title.stories.mdx} +0 -0
- package/src/stories/views/components/Teaser/components/Topline.hbs +6 -0
- package/src/stories/views/components/Teaser/{Topline.stories.mdx → components/Topline.stories.mdx} +0 -0
- package/src/stories/views/components/Teaser/{teaserText.hbs → components/teaserText.hbs} +0 -0
- package/src/stories/views/components/Teaser/{teaserText.stories.mdx → components/teaserText.stories.mdx} +0 -0
- package/src/stories/views/components/Teaser/data/teaser_alternativ_lg_serif.json +130 -0
- package/src/stories/views/components/Teaser/data/teaser_alternativ_md_serif.json +130 -0
- package/src/stories/views/components/Teaser/data/teaser_alternativ_sm_serif.json +141 -0
- package/src/stories/views/components/Teaser/data/teaser_alternativ_xl_serif.json +130 -0
- package/src/stories/views/components/Teaser/data/teaser_alternativ_xxl_serif.json +122 -0
- package/src/stories/views/components/Teaser/data/teaser_full.json +429 -34
- package/src/stories/views/components/Teaser/group_teaser/group_teaser.hbs +10 -0
- package/src/stories/views/components/Teaser/teaser-alternativ.stories.mdx +81 -0
- package/src/stories/views/components/Teaser/{teaser-logic.stories.mdx → teaser_logic/teaser-logic.stories.mdx} +10 -1
- package/src/stories/views/components/Teaser/{teaser_logic.hbs → teaser_logic/teaser_logic.hbs} +1 -1
- package/src/stories/views/components/Teaser/{teaser_logic.ssi.hbs → teaser_logic/teaser_logic.ssi.hbs} +0 -0
- package/src/stories/views/components/base/loadDynamic.hbs +2 -2
- package/tailwind.config.js +1 -0
- package/dist/views/components/Teaser/Topline.hbs +0 -6
- package/dist/views/components/Teaser/teaser-group.hbs +0 -8
- package/src/stories/views/components/Teaser/Topline.hbs +0 -6
- package/src/stories/views/components/Teaser/teaser-group.hbs +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
# v0.43.1 (Thu Apr 28 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Zusatzinformationen neben Label [#223](https://github.com/mumprod/hr-design-system-handlebars/pull/223) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v0.43.0 (Thu Apr 28 2022)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- Dpe 1547 - alternative Teaser Init [#222](https://github.com/mumprod/hr-design-system-handlebars/pull/222) (zouhair1 [@vascoeduardo](https://github.com/vascoeduardo))
|
|
18
|
+
|
|
19
|
+
#### Authors: 2
|
|
20
|
+
|
|
21
|
+
- selbaciri (zouhair1)
|
|
22
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# v0.42.11 (Thu Apr 28 2022)
|
|
27
|
+
|
|
28
|
+
#### 🐛 Bug Fix
|
|
29
|
+
|
|
30
|
+
- - some refactoring and file relocating [#221](https://github.com/mumprod/hr-design-system-handlebars/pull/221) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
31
|
+
|
|
32
|
+
#### Authors: 1
|
|
33
|
+
|
|
34
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
1
38
|
# v0.42.10 (Tue Apr 26 2022)
|
|
2
39
|
|
|
3
40
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -1554,6 +1554,9 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1554
1554
|
.mt-6 {
|
|
1555
1555
|
margin-top: 1.5rem;
|
|
1556
1556
|
}
|
|
1557
|
+
.ml-2 {
|
|
1558
|
+
margin-left: 0.5rem;
|
|
1559
|
+
}
|
|
1557
1560
|
.-mt-2 {
|
|
1558
1561
|
margin-top: -0.5rem;
|
|
1559
1562
|
}
|
|
@@ -1566,6 +1569,24 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1566
1569
|
.-mt-10 {
|
|
1567
1570
|
margin-top: -2.5rem;
|
|
1568
1571
|
}
|
|
1572
|
+
.mr-4 {
|
|
1573
|
+
margin-right: 1rem;
|
|
1574
|
+
}
|
|
1575
|
+
.ml-4 {
|
|
1576
|
+
margin-left: 1rem;
|
|
1577
|
+
}
|
|
1578
|
+
.mt-0\.5 {
|
|
1579
|
+
margin-top: 0.125rem;
|
|
1580
|
+
}
|
|
1581
|
+
.mt-0 {
|
|
1582
|
+
margin-top: 0px;
|
|
1583
|
+
}
|
|
1584
|
+
.mt-10 {
|
|
1585
|
+
margin-top: 2.5rem;
|
|
1586
|
+
}
|
|
1587
|
+
.mb-0 {
|
|
1588
|
+
margin-bottom: 0px;
|
|
1589
|
+
}
|
|
1569
1590
|
.mt-2\.5 {
|
|
1570
1591
|
margin-top: 0.625rem;
|
|
1571
1592
|
}
|
|
@@ -1581,30 +1602,9 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1581
1602
|
.mr-0 {
|
|
1582
1603
|
margin-right: 0px;
|
|
1583
1604
|
}
|
|
1584
|
-
.mt-0\.5 {
|
|
1585
|
-
margin-top: 0.125rem;
|
|
1586
|
-
}
|
|
1587
|
-
.mt-0 {
|
|
1588
|
-
margin-top: 0px;
|
|
1589
|
-
}
|
|
1590
1605
|
.mt-3 {
|
|
1591
1606
|
margin-top: 0.75rem;
|
|
1592
1607
|
}
|
|
1593
|
-
.mr-4 {
|
|
1594
|
-
margin-right: 1rem;
|
|
1595
|
-
}
|
|
1596
|
-
.ml-4 {
|
|
1597
|
-
margin-left: 1rem;
|
|
1598
|
-
}
|
|
1599
|
-
.ml-2 {
|
|
1600
|
-
margin-left: 0.5rem;
|
|
1601
|
-
}
|
|
1602
|
-
.mt-10 {
|
|
1603
|
-
margin-top: 2.5rem;
|
|
1604
|
-
}
|
|
1605
|
-
.mb-0 {
|
|
1606
|
-
margin-bottom: 0px;
|
|
1607
|
-
}
|
|
1608
1608
|
.block {
|
|
1609
1609
|
display: block;
|
|
1610
1610
|
}
|
|
@@ -1684,9 +1684,6 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1684
1684
|
.max-h-0 {
|
|
1685
1685
|
max-height: 0px;
|
|
1686
1686
|
}
|
|
1687
|
-
.max-h-6 {
|
|
1688
|
-
max-height: 1.5rem;
|
|
1689
|
-
}
|
|
1690
1687
|
.max-h-10 {
|
|
1691
1688
|
max-height: 2.5rem;
|
|
1692
1689
|
}
|
|
@@ -1711,9 +1708,6 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1711
1708
|
.w-40 {
|
|
1712
1709
|
width: 10rem;
|
|
1713
1710
|
}
|
|
1714
|
-
.w-5 {
|
|
1715
|
-
width: 1.25rem;
|
|
1716
|
-
}
|
|
1717
1711
|
.w-12 {
|
|
1718
1712
|
width: 3rem;
|
|
1719
1713
|
}
|
|
@@ -1734,6 +1728,9 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1734
1728
|
.w-9 {
|
|
1735
1729
|
width: 2.25rem;
|
|
1736
1730
|
}
|
|
1731
|
+
.w-5 {
|
|
1732
|
+
width: 1.25rem;
|
|
1733
|
+
}
|
|
1737
1734
|
.max-w-full {
|
|
1738
1735
|
max-width: 100%;
|
|
1739
1736
|
}
|
|
@@ -1889,6 +1886,14 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1889
1886
|
.gap-y-9 {
|
|
1890
1887
|
row-gap: 2.25rem;
|
|
1891
1888
|
}
|
|
1889
|
+
.gap-y-4 {
|
|
1890
|
+
row-gap: 1rem;
|
|
1891
|
+
}
|
|
1892
|
+
.gap-x-5 {
|
|
1893
|
+
-webkit-column-gap: 1.25rem;
|
|
1894
|
+
-moz-column-gap: 1.25rem;
|
|
1895
|
+
column-gap: 1.25rem;
|
|
1896
|
+
}
|
|
1892
1897
|
.gap-y-5 {
|
|
1893
1898
|
row-gap: 1.25rem;
|
|
1894
1899
|
}
|
|
@@ -2036,9 +2041,9 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2036
2041
|
--tw-bg-opacity: 1;
|
|
2037
2042
|
background-color: rgba(107, 114, 128, var(--tw-bg-opacity));
|
|
2038
2043
|
}
|
|
2039
|
-
.bg-
|
|
2044
|
+
.bg-white {
|
|
2040
2045
|
--tw-bg-opacity: 1;
|
|
2041
|
-
background-color: rgba(
|
|
2046
|
+
background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
|
|
2042
2047
|
}
|
|
2043
2048
|
.bg-blue-200 {
|
|
2044
2049
|
--tw-bg-opacity: 1;
|
|
@@ -2048,13 +2053,13 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2048
2053
|
--tw-bg-opacity: 1;
|
|
2049
2054
|
background-color: rgba(96, 165, 250, var(--tw-bg-opacity));
|
|
2050
2055
|
}
|
|
2056
|
+
.bg-red-400 {
|
|
2057
|
+
--tw-bg-opacity: 1;
|
|
2058
|
+
background-color: rgba(248, 113, 113, var(--tw-bg-opacity));
|
|
2059
|
+
}
|
|
2051
2060
|
.bg-current {
|
|
2052
2061
|
background-color: currentColor;
|
|
2053
2062
|
}
|
|
2054
|
-
.bg-white {
|
|
2055
|
-
--tw-bg-opacity: 1;
|
|
2056
|
-
background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
|
|
2057
|
-
}
|
|
2058
2063
|
.bg-blue-congress {
|
|
2059
2064
|
--tw-bg-opacity: 1;
|
|
2060
2065
|
background-color: rgba(0, 82, 147, var(--tw-bg-opacity));
|
|
@@ -2264,6 +2269,9 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2264
2269
|
.leading-6 {
|
|
2265
2270
|
line-height: 1.5rem;
|
|
2266
2271
|
}
|
|
2272
|
+
.leading-5\.5 {
|
|
2273
|
+
line-height: 1.375rem;
|
|
2274
|
+
}
|
|
2267
2275
|
.leading-10 {
|
|
2268
2276
|
line-height: 2.5rem;
|
|
2269
2277
|
}
|
|
@@ -2278,14 +2286,14 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2278
2286
|
--tw-text-opacity: 1;
|
|
2279
2287
|
color: rgba(255, 255, 255, var(--tw-text-opacity));
|
|
2280
2288
|
}
|
|
2281
|
-
.text-blue-congress {
|
|
2282
|
-
--tw-text-opacity: 1;
|
|
2283
|
-
color: rgba(0, 82, 147, var(--tw-text-opacity));
|
|
2284
|
-
}
|
|
2285
2289
|
.text-grey-scorpion {
|
|
2286
2290
|
--tw-text-opacity: 1;
|
|
2287
2291
|
color: rgba(96, 96, 96, var(--tw-text-opacity));
|
|
2288
2292
|
}
|
|
2293
|
+
.text-blue-congress {
|
|
2294
|
+
--tw-text-opacity: 1;
|
|
2295
|
+
color: rgba(0, 82, 147, var(--tw-text-opacity));
|
|
2296
|
+
}
|
|
2289
2297
|
.text-toplineColor {
|
|
2290
2298
|
color: #006dc1;
|
|
2291
2299
|
color: var(--color-topline);
|
|
@@ -2509,14 +2517,14 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2509
2517
|
--tw-bg-opacity: 1;
|
|
2510
2518
|
background-color: rgba(0, 82, 147, var(--tw-bg-opacity));
|
|
2511
2519
|
}
|
|
2512
|
-
.hover\:text-toplineColor:hover {
|
|
2513
|
-
color: #006dc1;
|
|
2514
|
-
color: var(--color-topline);
|
|
2515
|
-
}
|
|
2516
2520
|
.hover\:text-white:hover {
|
|
2517
2521
|
--tw-text-opacity: 1;
|
|
2518
2522
|
color: rgba(255, 255, 255, var(--tw-text-opacity));
|
|
2519
2523
|
}
|
|
2524
|
+
.hover\:text-toplineColor:hover {
|
|
2525
|
+
color: #006dc1;
|
|
2526
|
+
color: var(--color-topline);
|
|
2527
|
+
}
|
|
2520
2528
|
.hover\:underline:hover {
|
|
2521
2529
|
-webkit-text-decoration-line: underline;
|
|
2522
2530
|
text-decoration-line: underline;
|
|
@@ -3047,15 +3055,15 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
3047
3055
|
.lg\:pl-1 {
|
|
3048
3056
|
padding-left: 0.25rem;
|
|
3049
3057
|
}
|
|
3050
|
-
.lg\:leading-5 {
|
|
3051
|
-
line-height: 1.25rem;
|
|
3052
|
-
}
|
|
3053
3058
|
.lg\:leading-8 {
|
|
3054
3059
|
line-height: 2rem;
|
|
3055
3060
|
}
|
|
3056
3061
|
.lg\:leading-10 {
|
|
3057
3062
|
line-height: 2.5rem;
|
|
3058
3063
|
}
|
|
3064
|
+
.lg\:leading-5 {
|
|
3065
|
+
line-height: 1.25rem;
|
|
3066
|
+
}
|
|
3059
3067
|
.lg\:text-blue-congress {
|
|
3060
3068
|
--tw-text-opacity: 1;
|
|
3061
3069
|
color: rgba(0, 82, 147, var(--tw-text-opacity));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<
|
|
1
|
+
<section class="grid grid-cols-12 bg-white content-start gap-x-6 gap-y-6 col-span-12 {{inline-switch size '["100","66","50","33","25"]' '["","md:col-span-8","md:col-span-6","md:col-span-4","md:col-span-3"]'}}">
|
|
2
2
|
{{> @partial-block }}
|
|
3
|
-
</
|
|
3
|
+
</section>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base leading-
|
|
1
|
+
<span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base leading-5.5 font-heading {{inline-switch type '["media","event","breakingnews","comment","analysis","der-tag-in-hessen","glosse","fragen-und-antworten","infografik","interaktiv","program","download","pm","liveticker","ticker","livestream","live","livechat","buliticker","social-tv","blog"]' '["bg-labelMedia","bg-labelEvent","bg-labelBreakingnews","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelInfografik","bg-labelInfografik","bg-labelProgram","bg-labelDownload","bg-labelPm","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive"]'}}">
|
|
2
2
|
{{text}}
|
|
3
3
|
</span>
|
|
4
4
|
{{~#with this.byline ~}}
|
|
5
|
-
<span class="">
|
|
6
|
-
{{
|
|
5
|
+
<span class="ml-2 text-xs text-grey-scorpion font-headingSerif ">
|
|
6
|
+
{{~#if this.bylineSsi ~}}
|
|
7
7
|
{{{this.bylineSsi}}}
|
|
8
|
-
{{else}}
|
|
8
|
+
{{~else ~}}
|
|
9
9
|
{{this.bylineText}}
|
|
10
|
-
{{
|
|
10
|
+
{{~/if ~}}
|
|
11
11
|
</span>
|
|
12
12
|
{{~/with~}}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 flex-row ","md:col-span-4 flex-row","md:col-span-6 flex-row","flex-row"]'}} ">
|
|
2
|
+
<figure class="{{inline-switch teasersize '["sm", "xxl"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9","basis-3/5 ar-16-9", "ar-16-9"]'}} ">
|
|
3
|
+
{{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="mediaLink" }}
|
|
4
|
+
{{~> components/base/image/responsiveImage this.content.teaserImage _type=this.content.teasertype _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
|
|
5
|
+
{{/components/base/link}}
|
|
6
|
+
</figure>
|
|
7
|
+
<div class="{{inline-switch teasersize '["sm", "xxl"]' '["basis-3/5 md:flex-full" , "basis-2/5"]'}} ">
|
|
8
|
+
<header class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
|
|
9
|
+
{{> components/Teaser/components/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=topline}}
|
|
10
|
+
</header>
|
|
11
|
+
<section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
|
|
12
|
+
{{> components/Teaser/components/teaserText text=shorttext size=teasersize }}
|
|
13
|
+
{{> components/Teaser/components/Byline}}
|
|
14
|
+
</section>
|
|
15
|
+
</div>
|
|
16
|
+
</article>
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
</figure>
|
|
7
7
|
<div class="{{inline-switch teasersize '["sm"]' '["basis-3/5 md:flex-full"]'}} ">
|
|
8
8
|
<header class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
|
|
9
|
-
{{> components/Teaser/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=topline}}
|
|
9
|
+
{{> components/Teaser/components/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=topline}}
|
|
10
10
|
</header>
|
|
11
11
|
<section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
|
|
12
|
-
{{> components/Teaser/teaserText text=shorttext size=teasersize }}
|
|
13
|
-
{{> components/Teaser/Byline}}
|
|
12
|
+
{{> components/Teaser/components/teaserText text=shorttext size=teasersize }}
|
|
13
|
+
{{> components/Teaser/components/Byline}}
|
|
14
14
|
</section>
|
|
15
15
|
</div>
|
|
16
16
|
</article>
|
|
File without changes
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{{#>components/base/link _cssClasses="hover:text-toplineColor" _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="headlineLink" }}
|
|
2
2
|
{{#with this.content.label}}
|
|
3
|
-
<div class="
|
|
3
|
+
<div class="leading-5.5">
|
|
4
4
|
{{> components/Label type=loca text=type}}
|
|
5
5
|
</div>
|
|
6
6
|
{{/with~}}
|
|
7
7
|
<{{~ ../headlineTag }} class="{{../class}}" >
|
|
8
8
|
{{#with this.content.topline}}
|
|
9
|
-
{{> components/Teaser/Topline text=this readMore=../this.readMoreText.readMoreScreenreader}}
|
|
9
|
+
{{> components/Teaser/components/Topline text=this readMore=../this.readMoreText.readMoreScreenreader}}
|
|
10
10
|
{{/with}}
|
|
11
|
-
{{> components/Teaser/Title text=../this.title font=../font size=../size }}
|
|
11
|
+
{{> components/Teaser/components/Title text=../this.title font=../font size=../size }}
|
|
12
12
|
</{{~ ../headlineTag }}>
|
|
13
13
|
{{/components/base/link}}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{{#>components/Grid/GridGroup size=this.teaserSize }}
|
|
2
|
+
{{~#if this.hasGroupTitle}}
|
|
3
|
+
<h2 class="text-4xl headline--barrier col-span-full">
|
|
4
|
+
{{~#if this.hasLink}}<a class="link" href="{{this.link.url}}">{{/if~}}
|
|
5
|
+
<span class="headline--separator__text">{{this.groupTitle}}</span>
|
|
6
|
+
{{~#if this.hasLink}}</a>{{/if~}}
|
|
7
|
+
</h2>
|
|
8
|
+
{{/if}}
|
|
9
|
+
{{~> components/Teaser/teaser_logic/teaser_logic ~}}
|
|
10
|
+
{{/components/Grid/GridGroup}}
|
package/dist/views/components/Teaser/{teaser_logic.ssi.hbs → teaser_logic/teaser_logic.ssi.hbs}
RENAMED
|
File without changes
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
{{#case "components/Header/ServiceNavigation/ServiceNavigationItem"}}
|
|
3
3
|
{{> components/Header/ServiceNavigation/ServiceNavigationItem}}
|
|
4
4
|
{{/case}}
|
|
5
|
-
{{#case "components/Teaser/
|
|
6
|
-
{{> components/Teaser/
|
|
5
|
+
{{#case "components/Teaser/group_teaser/group_teaser"}}
|
|
6
|
+
{{> components/Teaser/group_teaser/group_teaser}}
|
|
7
7
|
{{/case}}
|
|
8
8
|
{{#case "components/Teaser/Teaser-standard"}}
|
|
9
9
|
{{> components/Teaser/Teaser-standard}}
|
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.
|
|
9
|
+
"version": "0.43.1",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "start-storybook -p 6006 public",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<
|
|
1
|
+
<section class="grid grid-cols-12 bg-white content-start gap-x-6 gap-y-6 col-span-12 {{inline-switch size '["100","66","50","33","25"]' '["","md:col-span-8","md:col-span-6","md:col-span-4","md:col-span-3"]'}}">
|
|
2
2
|
{{> @partial-block }}
|
|
3
|
-
</
|
|
3
|
+
</section>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base leading-
|
|
1
|
+
<span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base leading-5.5 font-heading {{inline-switch type '["media","event","breakingnews","comment","analysis","der-tag-in-hessen","glosse","fragen-und-antworten","infografik","interaktiv","program","download","pm","liveticker","ticker","livestream","live","livechat","buliticker","social-tv","blog"]' '["bg-labelMedia","bg-labelEvent","bg-labelBreakingnews","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelInfografik","bg-labelInfografik","bg-labelProgram","bg-labelDownload","bg-labelPm","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive"]'}}">
|
|
2
2
|
{{text}}
|
|
3
3
|
</span>
|
|
4
4
|
{{~#with this.byline ~}}
|
|
5
|
-
<span class="">
|
|
6
|
-
{{
|
|
5
|
+
<span class="ml-2 text-xs text-grey-scorpion font-headingSerif ">
|
|
6
|
+
{{~#if this.bylineSsi ~}}
|
|
7
7
|
{{{this.bylineSsi}}}
|
|
8
|
-
{{else}}
|
|
8
|
+
{{~else ~}}
|
|
9
9
|
{{this.bylineText}}
|
|
10
|
-
{{
|
|
10
|
+
{{~/if ~}}
|
|
11
11
|
</span>
|
|
12
12
|
{{~/with~}}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 flex-row ","md:col-span-4 flex-row","md:col-span-6 flex-row","flex-row"]'}} ">
|
|
2
|
+
<figure class="{{inline-switch teasersize '["sm", "xxl"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9","basis-3/5 ar-16-9", "ar-16-9"]'}} ">
|
|
3
|
+
{{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="mediaLink" }}
|
|
4
|
+
{{~> components/base/image/responsiveImage this.content.teaserImage _type=this.content.teasertype _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
|
|
5
|
+
{{/components/base/link}}
|
|
6
|
+
</figure>
|
|
7
|
+
<div class="{{inline-switch teasersize '["sm", "xxl"]' '["basis-3/5 md:flex-full" , "basis-2/5"]'}} ">
|
|
8
|
+
<header class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
|
|
9
|
+
{{> components/Teaser/components/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=topline}}
|
|
10
|
+
</header>
|
|
11
|
+
<section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
|
|
12
|
+
{{> components/Teaser/components/teaserText text=shorttext size=teasersize }}
|
|
13
|
+
{{> components/Teaser/components/Byline}}
|
|
14
|
+
</section>
|
|
15
|
+
</div>
|
|
16
|
+
</article>
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
</figure>
|
|
7
7
|
<div class="{{inline-switch teasersize '["sm"]' '["basis-3/5 md:flex-full"]'}} ">
|
|
8
8
|
<header class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
|
|
9
|
-
{{> components/Teaser/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=topline}}
|
|
9
|
+
{{> components/Teaser/components/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=topline}}
|
|
10
10
|
</header>
|
|
11
11
|
<section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
|
|
12
|
-
{{> components/Teaser/teaserText text=shorttext size=teasersize }}
|
|
13
|
-
{{> components/Teaser/Byline}}
|
|
12
|
+
{{> components/Teaser/components/teaserText text=shorttext size=teasersize }}
|
|
13
|
+
{{> components/Teaser/components/Byline}}
|
|
14
14
|
</section>
|
|
15
15
|
</div>
|
|
16
16
|
</article>
|
package/src/stories/views/components/Teaser/{Byline.stories.mdx → components/Byline.stories.mdx}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ArgsTable, Meta, Story, Preview } from "@storybook/addon-docs";
|
|
2
2
|
import 'core-js/actual/structured-clone';
|
|
3
|
-
import { addCommentLink } from '
|
|
3
|
+
import { addCommentLink } from '../jsonHelper';
|
|
4
4
|
import byline from "./Byline.hbs";
|
|
5
|
-
import comments from '
|
|
6
|
-
import teaser from '
|
|
5
|
+
import comments from '../data/teaser_commentLink.json';
|
|
6
|
+
import teaser from '../data/teaser_article.json';
|
|
7
7
|
let byline_with_comments = structuredClone(teaser);
|
|
8
8
|
addCommentLink(byline_with_comments, comments.commentLink);
|
|
9
9
|
|
|
File without changes
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{{#>components/base/link _cssClasses="hover:text-toplineColor" _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="headlineLink" }}
|
|
2
2
|
{{#with this.content.label}}
|
|
3
|
-
<div class="
|
|
3
|
+
<div class="leading-5.5">
|
|
4
4
|
{{> components/Label type=loca text=type}}
|
|
5
5
|
</div>
|
|
6
6
|
{{/with~}}
|
|
7
7
|
<{{~ ../headlineTag }} class="{{../class}}" >
|
|
8
8
|
{{#with this.content.topline}}
|
|
9
|
-
{{> components/Teaser/Topline text=this readMore=../this.readMoreText.readMoreScreenreader}}
|
|
9
|
+
{{> components/Teaser/components/Topline text=this readMore=../this.readMoreText.readMoreScreenreader}}
|
|
10
10
|
{{/with}}
|
|
11
|
-
{{> components/Teaser/Title text=../this.title font=../font size=../size }}
|
|
11
|
+
{{> components/Teaser/components/Title text=../this.title font=../font size=../size }}
|
|
12
12
|
</{{~ ../headlineTag }}>
|
|
13
13
|
{{/components/base/link}}
|
|
File without changes
|
|
File without changes
|
package/src/stories/views/components/Teaser/{Title.stories.mdx → components/Title.stories.mdx}
RENAMED
|
File without changes
|
package/src/stories/views/components/Teaser/{Topline.stories.mdx → components/Topline.stories.mdx}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|