hr-design-system-handlebars 0.42.9 → 0.43.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/assets/index.css +70 -59
  3. package/dist/views/components/Grid/GridGroup.hbs +2 -2
  4. package/dist/views/components/Header/NavigationFlyout/NavigationFlyoutItem.hbs +1 -1
  5. package/dist/views/components/Header/ServiceNavigation/ServiceNavigationItem.hbs +1 -1
  6. package/dist/views/components/Label.hbs +1 -1
  7. package/dist/views/components/Teaser/Teaser-alternativ.hbs +16 -0
  8. package/dist/views/components/Teaser/Teaser-standard.hbs +4 -4
  9. package/dist/views/components/Teaser/{Byline.hbs → components/Byline.hbs} +2 -2
  10. package/dist/views/components/Teaser/{Comments.hbs → components/Comments.hbs} +0 -0
  11. package/{src/stories/views/components/Teaser → dist/views/components/Teaser/components}/Teaser-Heading.hbs +2 -2
  12. package/dist/views/components/Teaser/components/Title.hbs +1 -0
  13. package/dist/views/components/Teaser/{Topline.hbs → components/Topline.hbs} +0 -0
  14. package/dist/views/components/Teaser/components/teaserText.hbs +1 -0
  15. package/dist/views/components/Teaser/group_teaser/group_teaser.hbs +10 -0
  16. package/dist/views/components/Teaser/{teaser_logic.hbs → teaser_logic/teaser_logic.hbs} +1 -1
  17. package/dist/views/components/Teaser/{teaser_logic.ssi.hbs → teaser_logic/teaser_logic.ssi.hbs} +0 -0
  18. package/dist/views/components/base/loadDynamic.hbs +2 -2
  19. package/package.json +1 -1
  20. package/src/stories/Typography.stories.mdx +2 -2
  21. package/src/stories/views/components/Grid/GridGroup.hbs +2 -2
  22. package/src/stories/views/components/Header/NavigationFlyout/NavigationFlyoutItem.hbs +1 -1
  23. package/src/stories/views/components/Header/ServiceNavigation/ServiceNavigationItem.hbs +1 -1
  24. package/src/stories/views/components/Label.hbs +1 -1
  25. package/src/stories/views/components/Teaser/Teaser-alternativ.hbs +16 -0
  26. package/src/stories/views/components/Teaser/Teaser-standard.hbs +4 -4
  27. package/src/stories/views/components/Teaser/{Byline.hbs → components/Byline.hbs} +2 -2
  28. package/src/stories/views/components/Teaser/{Byline.stories.mdx → components/Byline.stories.mdx} +3 -3
  29. package/src/stories/views/components/Teaser/{Comments.hbs → components/Comments.hbs} +0 -0
  30. package/{dist/views/components/Teaser → src/stories/views/components/Teaser/components}/Teaser-Heading.hbs +2 -2
  31. package/src/stories/views/components/Teaser/{Teaser-Heading.stories.mdx → components/Teaser-Heading.stories.mdx} +0 -0
  32. package/src/stories/views/components/Teaser/components/Title.hbs +1 -0
  33. package/src/stories/views/components/Teaser/{Title.stories.mdx → components/Title.stories.mdx} +0 -0
  34. package/src/stories/views/components/Teaser/{Topline.hbs → components/Topline.hbs} +0 -0
  35. package/src/stories/views/components/Teaser/{Topline.stories.mdx → components/Topline.stories.mdx} +0 -0
  36. package/src/stories/views/components/Teaser/components/teaserText.hbs +1 -0
  37. package/src/stories/views/components/Teaser/{teaserText.stories.mdx → components/teaserText.stories.mdx} +1 -1
  38. package/src/stories/views/components/Teaser/data/teaser_alternativ_lg_serif.json +130 -0
  39. package/src/stories/views/components/Teaser/data/teaser_alternativ_md_serif.json +130 -0
  40. package/src/stories/views/components/Teaser/data/teaser_alternativ_sm_serif.json +141 -0
  41. package/src/stories/views/components/Teaser/data/teaser_alternativ_xl_serif.json +130 -0
  42. package/src/stories/views/components/Teaser/data/teaser_alternativ_xxl_serif.json +122 -0
  43. package/src/stories/views/components/Teaser/data/teaser_full.json +450 -30
  44. package/src/stories/views/components/Teaser/group_teaser/group_teaser.hbs +10 -0
  45. package/src/stories/views/components/Teaser/teaser-alternativ.stories.mdx +81 -0
  46. package/src/stories/views/components/Teaser/teaser-standard.stories.mdx +3 -1
  47. package/src/stories/views/components/Teaser/{teaser-logic.stories.mdx → teaser_logic/teaser-logic.stories.mdx} +10 -1
  48. package/src/stories/views/components/Teaser/{teaser_logic.hbs → teaser_logic/teaser_logic.hbs} +1 -1
  49. package/src/stories/views/components/Teaser/{teaser_logic.ssi.hbs → teaser_logic/teaser_logic.ssi.hbs} +0 -0
  50. package/src/stories/views/components/base/loadDynamic.hbs +2 -2
  51. package/tailwind.config.js +5 -2
  52. package/dist/views/components/Headline.hbs +0 -1
  53. package/dist/views/components/Teaser/Title.hbs +0 -1
  54. package/dist/views/components/Teaser/teaser-group.hbs +0 -8
  55. package/dist/views/components/Teaser/teaserText.hbs +0 -1
  56. package/src/stories/views/components/Headline.hbs +0 -1
  57. package/src/stories/views/components/Headline.stories.mdx +0 -85
  58. package/src/stories/views/components/Teaser/Title.hbs +0 -1
  59. package/src/stories/views/components/Teaser/teaser-group.hbs +0 -8
  60. package/src/stories/views/components/Teaser/teaserText.hbs +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,40 @@
1
+ # v0.43.0 (Thu Apr 28 2022)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Dpe 1547 - alternative Teaser Init [#222](https://github.com/mumprod/hr-design-system-handlebars/pull/222) (zouhair1 [@vascoeduardo](https://github.com/vascoeduardo))
6
+
7
+ #### Authors: 2
8
+
9
+ - selbaciri (zouhair1)
10
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
11
+
12
+ ---
13
+
14
+ # v0.42.11 (Thu Apr 28 2022)
15
+
16
+ #### 🐛 Bug Fix
17
+
18
+ - - some refactoring and file relocating [#221](https://github.com/mumprod/hr-design-system-handlebars/pull/221) ([@vascoeduardo](https://github.com/vascoeduardo))
19
+
20
+ #### Authors: 1
21
+
22
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
23
+
24
+ ---
25
+
26
+ # v0.42.10 (Tue Apr 26 2022)
27
+
28
+ #### 🐛 Bug Fix
29
+
30
+ - Teaser Text and Headline fine tuning [#220](https://github.com/mumprod/hr-design-system-handlebars/pull/220) ([@vascoeduardo](https://github.com/vascoeduardo))
31
+
32
+ #### Authors: 1
33
+
34
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
35
+
36
+ ---
37
+
1
38
  # v0.42.9 (Tue Apr 26 2022)
2
39
 
3
40
  #### 🐛 Bug Fix
@@ -1435,7 +1435,7 @@ Ensure the default browser behavior of the `hidden` attribute.
1435
1435
  padding-left: 1rem;
1436
1436
  padding-right: 1rem;
1437
1437
  font-size: 0.75rem;
1438
- line-height: 1rem;
1438
+ line-height: 1.063rem;
1439
1439
  }
1440
1440
  .btn--md {
1441
1441
  padding-left: 1.25rem;
@@ -1443,7 +1443,7 @@ Ensure the default browser behavior of the `hidden` attribute.
1443
1443
  padding-top: 0.75rem;
1444
1444
  padding-bottom: 0.75rem;
1445
1445
  font-size: 0.875rem;
1446
- line-height: 1.25rem;
1446
+ line-height: 1.188rem;
1447
1447
  }
1448
1448
  .btn--lg {
1449
1449
  padding-left: 1.5rem;
@@ -1451,7 +1451,7 @@ Ensure the default browser behavior of the `hidden` attribute.
1451
1451
  padding-top: 0.75rem;
1452
1452
  padding-bottom: 0.75rem;
1453
1453
  font-size: 1rem;
1454
- line-height: 1.5rem;
1454
+ line-height: 1.25rem;
1455
1455
  }
1456
1456
  .btn--xl {
1457
1457
  padding-left: 1.5rem;
@@ -1566,27 +1566,6 @@ Ensure the default browser behavior of the `hidden` attribute.
1566
1566
  .-mt-10 {
1567
1567
  margin-top: -2.5rem;
1568
1568
  }
1569
- .mr-2\.5 {
1570
- margin-right: 0.625rem;
1571
- }
1572
- .mr-2 {
1573
- margin-right: 0.5rem;
1574
- }
1575
- .mr-0\.5 {
1576
- margin-right: 0.125rem;
1577
- }
1578
- .mr-0 {
1579
- margin-right: 0px;
1580
- }
1581
- .mt-0\.5 {
1582
- margin-top: 0.125rem;
1583
- }
1584
- .mt-0 {
1585
- margin-top: 0px;
1586
- }
1587
- .mt-5 {
1588
- margin-top: 1.25rem;
1589
- }
1590
1569
  .mr-4 {
1591
1570
  margin-right: 1rem;
1592
1571
  }
@@ -1596,12 +1575,36 @@ Ensure the default browser behavior of the `hidden` attribute.
1596
1575
  .ml-2 {
1597
1576
  margin-left: 0.5rem;
1598
1577
  }
1578
+ .mt-0\.5 {
1579
+ margin-top: 0.125rem;
1580
+ }
1581
+ .mt-0 {
1582
+ margin-top: 0px;
1583
+ }
1599
1584
  .mt-10 {
1600
1585
  margin-top: 2.5rem;
1601
1586
  }
1602
1587
  .mb-0 {
1603
1588
  margin-bottom: 0px;
1604
1589
  }
1590
+ .mt-2\.5 {
1591
+ margin-top: 0.625rem;
1592
+ }
1593
+ .mr-2\.5 {
1594
+ margin-right: 0.625rem;
1595
+ }
1596
+ .mr-2 {
1597
+ margin-right: 0.5rem;
1598
+ }
1599
+ .mr-0\.5 {
1600
+ margin-right: 0.125rem;
1601
+ }
1602
+ .mr-0 {
1603
+ margin-right: 0px;
1604
+ }
1605
+ .mt-3 {
1606
+ margin-top: 0.75rem;
1607
+ }
1605
1608
  .block {
1606
1609
  display: block;
1607
1610
  }
@@ -1681,12 +1684,12 @@ Ensure the default browser behavior of the `hidden` attribute.
1681
1684
  .max-h-0 {
1682
1685
  max-height: 0px;
1683
1686
  }
1684
- .max-h-6 {
1685
- max-height: 1.5rem;
1686
- }
1687
1687
  .max-h-10 {
1688
1688
  max-height: 2.5rem;
1689
1689
  }
1690
+ .max-h-6 {
1691
+ max-height: 1.5rem;
1692
+ }
1690
1693
  .w-16 {
1691
1694
  width: 4rem;
1692
1695
  }
@@ -1708,9 +1711,6 @@ Ensure the default browser behavior of the `hidden` attribute.
1708
1711
  .w-40 {
1709
1712
  width: 10rem;
1710
1713
  }
1711
- .w-5 {
1712
- width: 1.25rem;
1713
- }
1714
1714
  .w-12 {
1715
1715
  width: 3rem;
1716
1716
  }
@@ -1731,6 +1731,9 @@ Ensure the default browser behavior of the `hidden` attribute.
1731
1731
  .w-9 {
1732
1732
  width: 2.25rem;
1733
1733
  }
1734
+ .w-5 {
1735
+ width: 1.25rem;
1736
+ }
1734
1737
  .max-w-full {
1735
1738
  max-width: 100%;
1736
1739
  }
@@ -1894,6 +1897,14 @@ Ensure the default browser behavior of the `hidden` attribute.
1894
1897
  -moz-column-gap: 1.25rem;
1895
1898
  column-gap: 1.25rem;
1896
1899
  }
1900
+ .gap-y-5 {
1901
+ row-gap: 1.25rem;
1902
+ }
1903
+ .gap-x-4 {
1904
+ -webkit-column-gap: 1rem;
1905
+ -moz-column-gap: 1rem;
1906
+ column-gap: 1rem;
1907
+ }
1897
1908
  .divide-y > :not([hidden]) ~ :not([hidden]) {
1898
1909
  --tw-divide-y-reverse: 0;
1899
1910
  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
@@ -2033,9 +2044,9 @@ Ensure the default browser behavior of the `hidden` attribute.
2033
2044
  --tw-bg-opacity: 1;
2034
2045
  background-color: rgba(107, 114, 128, var(--tw-bg-opacity));
2035
2046
  }
2036
- .bg-red-400 {
2047
+ .bg-white {
2037
2048
  --tw-bg-opacity: 1;
2038
- background-color: rgba(248, 113, 113, var(--tw-bg-opacity));
2049
+ background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
2039
2050
  }
2040
2051
  .bg-blue-200 {
2041
2052
  --tw-bg-opacity: 1;
@@ -2045,13 +2056,13 @@ Ensure the default browser behavior of the `hidden` attribute.
2045
2056
  --tw-bg-opacity: 1;
2046
2057
  background-color: rgba(96, 165, 250, var(--tw-bg-opacity));
2047
2058
  }
2059
+ .bg-red-400 {
2060
+ --tw-bg-opacity: 1;
2061
+ background-color: rgba(248, 113, 113, var(--tw-bg-opacity));
2062
+ }
2048
2063
  .bg-current {
2049
2064
  background-color: currentColor;
2050
2065
  }
2051
- .bg-white {
2052
- --tw-bg-opacity: 1;
2053
- background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
2054
- }
2055
2066
  .bg-blue-congress {
2056
2067
  --tw-bg-opacity: 1;
2057
2068
  background-color: rgba(0, 82, 147, var(--tw-bg-opacity));
@@ -2206,15 +2217,15 @@ Ensure the default browser behavior of the `hidden` attribute.
2206
2217
  }
2207
2218
  .text-xs {
2208
2219
  font-size: 0.75rem;
2209
- line-height: 1rem;
2220
+ line-height: 1.063rem;
2210
2221
  }
2211
2222
  .text-sm {
2212
2223
  font-size: 0.875rem;
2213
- line-height: 1.25rem;
2224
+ line-height: 1.188rem;
2214
2225
  }
2215
2226
  .text-base {
2216
2227
  font-size: 1rem;
2217
- line-height: 1.5rem;
2228
+ line-height: 1.25rem;
2218
2229
  }
2219
2230
  .text-lg {
2220
2231
  font-size: 1.125rem;
@@ -2226,7 +2237,7 @@ Ensure the default browser behavior of the `hidden` attribute.
2226
2237
  }
2227
2238
  .text-2xl {
2228
2239
  font-size: 1.375rem;
2229
- line-height: 2rem;
2240
+ line-height: 1.75rem;
2230
2241
  }
2231
2242
  .text-3xl {
2232
2243
  font-size: 1.875rem;
@@ -2234,7 +2245,7 @@ Ensure the default browser behavior of the `hidden` attribute.
2234
2245
  }
2235
2246
  .text-4xl {
2236
2247
  font-size: 2.125rem;
2237
- line-height: 2.25rem;
2248
+ line-height: 2.375rem;
2238
2249
  }
2239
2250
  .text-5xl {
2240
2251
  font-size: 3rem;
@@ -2440,23 +2451,23 @@ Ensure the default browser behavior of the `hidden` attribute.
2440
2451
  }
2441
2452
  .placeholder-text-xs::-webkit-input-placeholder {
2442
2453
  font-size: 0.75rem;
2443
- line-height: 1rem;
2454
+ line-height: 1.063rem;
2444
2455
  }
2445
2456
  .placeholder-text-xs::-moz-placeholder {
2446
2457
  font-size: 0.75rem;
2447
- line-height: 1rem;
2458
+ line-height: 1.063rem;
2448
2459
  }
2449
2460
  .placeholder-text-xs:-ms-input-placeholder {
2450
2461
  font-size: 0.75rem;
2451
- line-height: 1rem;
2462
+ line-height: 1.063rem;
2452
2463
  }
2453
2464
  .placeholder-text-xs::-ms-input-placeholder {
2454
2465
  font-size: 0.75rem;
2455
- line-height: 1rem;
2466
+ line-height: 1.063rem;
2456
2467
  }
2457
2468
  .placeholder-text-xs::placeholder {
2458
2469
  font-size: 0.75rem;
2459
- line-height: 1rem;
2470
+ line-height: 1.063rem;
2460
2471
  }
2461
2472
 
2462
2473
  .hide-scroll-bar {
@@ -2506,14 +2517,14 @@ Ensure the default browser behavior of the `hidden` attribute.
2506
2517
  --tw-bg-opacity: 1;
2507
2518
  background-color: rgba(0, 82, 147, var(--tw-bg-opacity));
2508
2519
  }
2509
- .hover\:text-toplineColor:hover {
2510
- color: #006dc1;
2511
- color: var(--color-topline);
2512
- }
2513
2520
  .hover\:text-white:hover {
2514
2521
  --tw-text-opacity: 1;
2515
2522
  color: rgba(255, 255, 255, var(--tw-text-opacity));
2516
2523
  }
2524
+ .hover\:text-toplineColor:hover {
2525
+ color: #006dc1;
2526
+ color: var(--color-topline);
2527
+ }
2517
2528
  .hover\:underline:hover {
2518
2529
  -webkit-text-decoration-line: underline;
2519
2530
  text-decoration-line: underline;
@@ -2756,14 +2767,14 @@ Ensure the default browser behavior of the `hidden` attribute.
2756
2767
  padding-left: 0px;
2757
2768
  }
2758
2769
 
2759
- .md\:text-base {
2760
- font-size: 1rem;
2761
- line-height: 1.5rem;
2762
- }
2763
-
2764
2770
  .md\:text-4xl {
2765
2771
  font-size: 2.125rem;
2766
- line-height: 2.25rem;
2772
+ line-height: 2.375rem;
2773
+ }
2774
+
2775
+ .md\:text-base {
2776
+ font-size: 1rem;
2777
+ line-height: 1.25rem;
2767
2778
  }
2768
2779
 
2769
2780
  .md\:leading-4 {
@@ -3044,15 +3055,15 @@ Ensure the default browser behavior of the `hidden` attribute.
3044
3055
  .lg\:pl-1 {
3045
3056
  padding-left: 0.25rem;
3046
3057
  }
3047
- .lg\:leading-5 {
3048
- line-height: 1.25rem;
3049
- }
3050
3058
  .lg\:leading-8 {
3051
3059
  line-height: 2rem;
3052
3060
  }
3053
3061
  .lg\:leading-10 {
3054
3062
  line-height: 2.5rem;
3055
3063
  }
3064
+ .lg\:leading-5 {
3065
+ line-height: 1.25rem;
3066
+ }
3056
3067
  .lg\:text-blue-congress {
3057
3068
  --tw-text-opacity: 1;
3058
3069
  color: rgba(0, 82, 147, var(--tw-text-opacity));
@@ -1,3 +1,3 @@
1
- <div class="grid grid-cols-12 bg-red-400 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"]'}}">
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
- </div>
3
+ </section>
@@ -1,5 +1,5 @@
1
1
  <li :class="dropped ? 'h-auto' : 'h-10'"
2
- class="sb-navigation-flyout-item pl-4 {{#if _flyout}}lg:px-0 {{else}}lg:px-2 lg:first-of-type:pl-0 {{/if}}{{#if _parentselected}}lg:whitespace-nowrap{{/if}} flex h-auto text-base border-b border-gray-200 lg:last:border-0 lg:border-0 text-blue-congress justify-start hover:underline">
2
+ class="sb-navigation-flyout-item pl-4 {{#if _flyout}}lg:px-0 {{else}}lg:px-2 lg:first-of-type:pl-0 {{/if}}{{#if _parentselected}}lg:whitespace-nowrap{{/if}} flex h-auto text-base leading-6 border-b border-gray-200 lg:last:border-0 lg:border-0 text-blue-congress justify-start hover:underline">
3
3
 
4
4
  {{#>components/base/link _cssClasses=(inline-switch _fromNav '["RubrikNavigation","ServiceNavigation"]' '["link-focus-inset py-2 w-full","link-focus py-2 md:pl-0 lg:pl-0 lg:pr-0 break-words w-full"]') _doNavigationTracking="true" _clickLabelType=_fromNav _clickLabelPrefix1=_parent _clickLabelPrefix2=this.link.content.text }}
5
5
  {{content.text}}
@@ -37,7 +37,7 @@
37
37
 
38
38
  <div :class="dropped ? 'text-blue-congress fill-current' : 'text-white fill-white'" class="relative flex-row items-center justify-center hidden pt-px text-white lg:flex z-200">
39
39
  <div class="flex" >
40
- <span class="flex text-xs whitespace-nowrap">
40
+ <span class="flex text-xs leading-4 whitespace-nowrap">
41
41
  {{text}}
42
42
  </span>
43
43
  {{#if this.subNavigation}}
@@ -1,4 +1,4 @@
1
- <span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base 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"]'}}">
1
+ <span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base leading-6 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 ~}}
@@ -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>
@@ -1,4 +1,4 @@
1
- <article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
1
+ <article class="col-span-12 flex gap-y-5 gap-x-4 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
2
2
  <figure class="{{inline-switch teasersize '["sm"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9", "ar-16-9"]'}} ">
3
3
  {{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="mediaLink" }}
4
4
  {{~> components/base/image/responsiveImage this.content.teaserImage _type=this.content.teasertype _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
@@ -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 hero=isHeroTeaser font=(inline-switch isHeroTeaser '[true]' '["md:text-base md:leading-4 lg:leading-5"]') }}
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>
@@ -1,4 +1,4 @@
1
- <p class="mt-2 text-xs text-grey-scorpion font-headingSerif">
1
+ <p class="mt-2.5 text-xs text-grey-scorpion font-headingSerif">
2
2
 
3
3
  {{!--Teaser-Info--}}
4
4
  {{#with this.teaserInfo}}
@@ -69,6 +69,6 @@
69
69
  {{/if}}
70
70
 
71
71
  {{!--Comments--}}
72
- {{> components/Teaser/Comments}}
72
+ {{> components/Teaser/components/Comments}}
73
73
 
74
74
  </p>
@@ -6,8 +6,8 @@
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}}
@@ -0,0 +1 @@
1
+ <span class="block {{inline-switch size '["xxl","xl","sm"]' '["text-2xl md:text-4xl","text-2xl md:text-4xl","text-lg ","text-2xl "]'}} {{font}} mt-0.5">{{text}}</span>
@@ -0,0 +1 @@
1
+ <span class="{{inline-switch size '["xxl","xl","sm"]' '["block md:text-base","hidden md:block md:text-base","hidden","hidden md:block"]'}} text-sm mt-3 font-copy">{{text}}</span>
@@ -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}}
@@ -1,7 +1,7 @@
1
1
  {{~#each this.logicItems}}
2
2
  {{~#if this.isSsi~}}
3
3
  {{#if (isStorybook)}}
4
- {{> components/Teaser/teaser_logic.ssi.hbs }}
4
+ {{> components/Teaser/teaser_logic/teaser_logic.ssi.hbs }}
5
5
  {{else}}
6
6
  {{{this.ssi}}}
7
7
  {{/if}}
@@ -2,8 +2,8 @@
2
2
  {{#case "components/Header/ServiceNavigation/ServiceNavigationItem"}}
3
3
  {{> components/Header/ServiceNavigation/ServiceNavigationItem}}
4
4
  {{/case}}
5
- {{#case "components/Teaser/teaser-group"}}
6
- {{> components/Teaser/teaser-group}}
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.42.9",
9
+ "version": "0.43.0",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "start-storybook -p 6006 public",
@@ -17,8 +17,8 @@ Zur Auszeichnung von Fließtexten stehen die folgenden Utility Klassen zur verf
17
17
  | :---------- | :-------------------------------------------------- | ------------------ | :---------------------------------------------------- |
18
18
  | `font-copy` | `font-family: DIN, sans-serif` | | Setzt die Eigenschaft `font-family` |
19
19
  | `text-xs` | `font-size: 0.75rem` <br /> `line-height: 1rem` | `12px`<br />`16px` | Setzt die Eigenschaften `font-size` und `line-height` |
20
- | `text-sm` | `font-size: 0.875rem` <br /> `line-height: 1.25rem` | `14px`<br />`20px` | Setzt die Eigenschaften `font-size` und `line-height` |
21
- | `text-base` | `font-size: 1rem` <br /> `line-height: 1.5rem` | `16px`<br />`24px` | Setzt die Eigenschaften `font-size` und `line-height` |
20
+ | `text-sm` | `font-size: 0.875rem` <br /> `line-height: 1.88rem` | `14px`<br />`19px` | Setzt die Eigenschaften `font-size` und `line-height` |
21
+ | `text-base` | `font-size: 1rem` <br /> `line-height: 1.25rem` | `16px`<br />`20px` | Setzt die Eigenschaften `font-size` und `line-height` |
22
22
  | `text-lg` | `font-size: 1.125rem` <br /> `line-height: 1.75rem` | `18px`<br />`28px` | Setzt die Eigenschaften `font-size` und `line-height` |
23
23
  | `text-xl` | `font-size: 1.25rem` <br /> `line-height: 1.75rem` | `20px`<br />`28px` | Setzt die Eigenschaften `font-size` und `line-height` |
24
24
 
@@ -1,3 +1,3 @@
1
- <div class="grid grid-cols-12 bg-red-400 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"]'}}">
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
- </div>
3
+ </section>
@@ -1,5 +1,5 @@
1
1
  <li :class="dropped ? 'h-auto' : 'h-10'"
2
- class="sb-navigation-flyout-item pl-4 {{#if _flyout}}lg:px-0 {{else}}lg:px-2 lg:first-of-type:pl-0 {{/if}}{{#if _parentselected}}lg:whitespace-nowrap{{/if}} flex h-auto text-base border-b border-gray-200 lg:last:border-0 lg:border-0 text-blue-congress justify-start hover:underline">
2
+ class="sb-navigation-flyout-item pl-4 {{#if _flyout}}lg:px-0 {{else}}lg:px-2 lg:first-of-type:pl-0 {{/if}}{{#if _parentselected}}lg:whitespace-nowrap{{/if}} flex h-auto text-base leading-6 border-b border-gray-200 lg:last:border-0 lg:border-0 text-blue-congress justify-start hover:underline">
3
3
 
4
4
  {{#>components/base/link _cssClasses=(inline-switch _fromNav '["RubrikNavigation","ServiceNavigation"]' '["link-focus-inset py-2 w-full","link-focus py-2 md:pl-0 lg:pl-0 lg:pr-0 break-words w-full"]') _doNavigationTracking="true" _clickLabelType=_fromNav _clickLabelPrefix1=_parent _clickLabelPrefix2=this.link.content.text }}
5
5
  {{content.text}}
@@ -37,7 +37,7 @@
37
37
 
38
38
  <div :class="dropped ? 'text-blue-congress fill-current' : 'text-white fill-white'" class="relative flex-row items-center justify-center hidden pt-px text-white lg:flex z-200">
39
39
  <div class="flex" >
40
- <span class="flex text-xs whitespace-nowrap">
40
+ <span class="flex text-xs leading-4 whitespace-nowrap">
41
41
  {{text}}
42
42
  </span>
43
43
  {{#if this.subNavigation}}
@@ -1,4 +1,4 @@
1
- <span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base 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"]'}}">
1
+ <span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base leading-6 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 ~}}
@@ -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>
@@ -1,4 +1,4 @@
1
- <article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
1
+ <article class="col-span-12 flex gap-y-5 gap-x-4 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
2
2
  <figure class="{{inline-switch teasersize '["sm"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9", "ar-16-9"]'}} ">
3
3
  {{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="mediaLink" }}
4
4
  {{~> components/base/image/responsiveImage this.content.teaserImage _type=this.content.teasertype _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
@@ -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 hero=isHeroTeaser font=(inline-switch isHeroTeaser '[true]' '["md:text-base md:leading-4 lg:leading-5"]') }}
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>
@@ -1,4 +1,4 @@
1
- <p class="mt-2 text-xs text-grey-scorpion font-headingSerif">
1
+ <p class="mt-2.5 text-xs text-grey-scorpion font-headingSerif">
2
2
 
3
3
  {{!--Teaser-Info--}}
4
4
  {{#with this.teaserInfo}}
@@ -69,6 +69,6 @@
69
69
  {{/if}}
70
70
 
71
71
  {{!--Comments--}}
72
- {{> components/Teaser/Comments}}
72
+ {{> components/Teaser/components/Comments}}
73
73
 
74
74
  </p>
@@ -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 './jsonHelper';
3
+ import { addCommentLink } from '../jsonHelper';
4
4
  import byline from "./Byline.hbs";
5
- import comments from './data/teaser_commentLink.json';
6
- import teaser from './data/teaser_article.json';
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
 
@@ -6,8 +6,8 @@
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}}
@@ -0,0 +1 @@
1
+ <span class="block {{inline-switch size '["xxl","xl","sm"]' '["text-2xl md:text-4xl","text-2xl md:text-4xl","text-lg ","text-2xl "]'}} {{font}} mt-0.5">{{text}}</span>