hr-design-system-handlebars 0.42.7 → 0.42.10

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 (38) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/assets/index.css +38 -20
  3. package/dist/views/components/Header/NavigationFlyout/NavigationFlyoutItem.hbs +1 -1
  4. package/dist/views/components/Header/ServiceNavigation/ServiceNavigationItem.hbs +1 -1
  5. package/dist/views/components/Label.hbs +1 -1
  6. package/dist/views/components/Teaser/Byline.hbs +1 -1
  7. package/dist/views/components/Teaser/Teaser-standard.hbs +3 -5
  8. package/dist/views/components/Teaser/Title.hbs +1 -1
  9. package/dist/views/components/Teaser/teaser-group.hbs +8 -0
  10. package/dist/views/components/Teaser/teaserText.hbs +1 -0
  11. package/dist/views/components/Teaser/teaser_logic.hbs +17 -0
  12. package/dist/views/components/Teaser/teaser_logic.ssi.hbs +9 -0
  13. package/dist/views/components/base/loadDynamic.hbs +6 -0
  14. package/package.json +1 -1
  15. package/src/stories/Typography.stories.mdx +2 -2
  16. package/src/stories/views/components/Header/NavigationFlyout/NavigationFlyoutItem.hbs +1 -1
  17. package/src/stories/views/components/Header/ServiceNavigation/ServiceNavigationItem.hbs +1 -1
  18. package/src/stories/views/components/Label.hbs +1 -1
  19. package/src/stories/views/components/Teaser/Byline.hbs +1 -1
  20. package/src/stories/views/components/Teaser/Teaser-standard.hbs +3 -5
  21. package/src/stories/views/components/Teaser/Title.hbs +1 -1
  22. package/src/stories/views/components/Teaser/data/teaser_full.json +2 -2
  23. package/src/stories/views/components/Teaser/data/teaser_standard_lg_serif.json +1 -1
  24. package/src/stories/views/components/Teaser/data/teaser_standard_md_serif.json +1 -1
  25. package/src/stories/views/components/Teaser/data/teaser_standard_sm_serif.json +1 -1
  26. package/src/stories/views/components/Teaser/data/teaser_standard_xl_serif.json +1 -1
  27. package/src/stories/views/components/Teaser/teaser-group.hbs +8 -0
  28. package/src/stories/views/components/Teaser/teaser-logic.stories.mdx +30 -0
  29. package/src/stories/views/components/Teaser/teaser-standard.stories.mdx +3 -1
  30. package/src/stories/views/components/Teaser/teaserText.hbs +1 -0
  31. package/src/stories/views/components/Teaser/teaserText.stories.mdx +57 -0
  32. package/src/stories/views/components/Teaser/teaser_logic.hbs +17 -0
  33. package/src/stories/views/components/Teaser/teaser_logic.ssi.hbs +9 -0
  34. package/src/stories/views/components/base/loadDynamic.hbs +6 -0
  35. package/tailwind.config.js +5 -2
  36. package/dist/views/components/Headline.hbs +0 -1
  37. package/src/stories/views/components/Headline.hbs +0 -1
  38. package/src/stories/views/components/Headline.stories.mdx +0 -85
package/CHANGELOG.md CHANGED
@@ -1,3 +1,40 @@
1
+ # v0.42.10 (Tue Apr 26 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Teaser Text and Headline fine tuning [#220](https://github.com/mumprod/hr-design-system-handlebars/pull/220) ([@vascoeduardo](https://github.com/vascoeduardo))
6
+
7
+ #### Authors: 1
8
+
9
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
10
+
11
+ ---
12
+
13
+ # v0.42.9 (Tue Apr 26 2022)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - Dpe 1551 - group logic implementation [#218](https://github.com/mumprod/hr-design-system-handlebars/pull/218) ([@vascoeduardo](https://github.com/vascoeduardo))
18
+
19
+ #### Authors: 1
20
+
21
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
22
+
23
+ ---
24
+
25
+ # v0.42.8 (Tue Apr 19 2022)
26
+
27
+ #### 🐛 Bug Fix
28
+
29
+ - add teaserText-component [#217](https://github.com/mumprod/hr-design-system-handlebars/pull/217) (zouhair1 [@selbaciri](https://github.com/selbaciri))
30
+
31
+ #### Authors: 2
32
+
33
+ - Saad El Baciri ([@selbaciri](https://github.com/selbaciri))
34
+ - selbaciri (zouhair1)
35
+
36
+ ---
37
+
1
38
  # v0.42.7 (Tue Apr 19 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,6 +1566,9 @@ Ensure the default browser behavior of the `hidden` attribute.
1566
1566
  .-mt-10 {
1567
1567
  margin-top: -2.5rem;
1568
1568
  }
1569
+ .mt-2\.5 {
1570
+ margin-top: 0.625rem;
1571
+ }
1569
1572
  .mr-2\.5 {
1570
1573
  margin-right: 0.625rem;
1571
1574
  }
@@ -1584,6 +1587,9 @@ Ensure the default browser behavior of the `hidden` attribute.
1584
1587
  .mt-0 {
1585
1588
  margin-top: 0px;
1586
1589
  }
1590
+ .mt-3 {
1591
+ margin-top: 0.75rem;
1592
+ }
1587
1593
  .mr-4 {
1588
1594
  margin-right: 1rem;
1589
1595
  }
@@ -1883,13 +1889,13 @@ Ensure the default browser behavior of the `hidden` attribute.
1883
1889
  .gap-y-9 {
1884
1890
  row-gap: 2.25rem;
1885
1891
  }
1886
- .gap-y-4 {
1887
- row-gap: 1rem;
1892
+ .gap-y-5 {
1893
+ row-gap: 1.25rem;
1888
1894
  }
1889
- .gap-x-5 {
1890
- -webkit-column-gap: 1.25rem;
1891
- -moz-column-gap: 1.25rem;
1892
- column-gap: 1.25rem;
1895
+ .gap-x-4 {
1896
+ -webkit-column-gap: 1rem;
1897
+ -moz-column-gap: 1rem;
1898
+ column-gap: 1rem;
1893
1899
  }
1894
1900
  .divide-y > :not([hidden]) ~ :not([hidden]) {
1895
1901
  --tw-divide-y-reverse: 0;
@@ -2203,15 +2209,15 @@ Ensure the default browser behavior of the `hidden` attribute.
2203
2209
  }
2204
2210
  .text-xs {
2205
2211
  font-size: 0.75rem;
2206
- line-height: 1rem;
2212
+ line-height: 1.063rem;
2207
2213
  }
2208
2214
  .text-sm {
2209
2215
  font-size: 0.875rem;
2210
- line-height: 1.25rem;
2216
+ line-height: 1.188rem;
2211
2217
  }
2212
2218
  .text-base {
2213
2219
  font-size: 1rem;
2214
- line-height: 1.5rem;
2220
+ line-height: 1.25rem;
2215
2221
  }
2216
2222
  .text-lg {
2217
2223
  font-size: 1.125rem;
@@ -2223,7 +2229,7 @@ Ensure the default browser behavior of the `hidden` attribute.
2223
2229
  }
2224
2230
  .text-2xl {
2225
2231
  font-size: 1.375rem;
2226
- line-height: 2rem;
2232
+ line-height: 1.75rem;
2227
2233
  }
2228
2234
  .text-3xl {
2229
2235
  font-size: 1.875rem;
@@ -2231,7 +2237,7 @@ Ensure the default browser behavior of the `hidden` attribute.
2231
2237
  }
2232
2238
  .text-4xl {
2233
2239
  font-size: 2.125rem;
2234
- line-height: 2.25rem;
2240
+ line-height: 2.375rem;
2235
2241
  }
2236
2242
  .text-5xl {
2237
2243
  font-size: 3rem;
@@ -2437,23 +2443,23 @@ Ensure the default browser behavior of the `hidden` attribute.
2437
2443
  }
2438
2444
  .placeholder-text-xs::-webkit-input-placeholder {
2439
2445
  font-size: 0.75rem;
2440
- line-height: 1rem;
2446
+ line-height: 1.063rem;
2441
2447
  }
2442
2448
  .placeholder-text-xs::-moz-placeholder {
2443
2449
  font-size: 0.75rem;
2444
- line-height: 1rem;
2450
+ line-height: 1.063rem;
2445
2451
  }
2446
2452
  .placeholder-text-xs:-ms-input-placeholder {
2447
2453
  font-size: 0.75rem;
2448
- line-height: 1rem;
2454
+ line-height: 1.063rem;
2449
2455
  }
2450
2456
  .placeholder-text-xs::-ms-input-placeholder {
2451
2457
  font-size: 0.75rem;
2452
- line-height: 1rem;
2458
+ line-height: 1.063rem;
2453
2459
  }
2454
2460
  .placeholder-text-xs::placeholder {
2455
2461
  font-size: 0.75rem;
2456
- line-height: 1rem;
2462
+ line-height: 1.063rem;
2457
2463
  }
2458
2464
 
2459
2465
  .hide-scroll-bar {
@@ -2755,7 +2761,16 @@ Ensure the default browser behavior of the `hidden` attribute.
2755
2761
 
2756
2762
  .md\:text-4xl {
2757
2763
  font-size: 2.125rem;
2758
- line-height: 2.25rem;
2764
+ line-height: 2.375rem;
2765
+ }
2766
+
2767
+ .md\:text-base {
2768
+ font-size: 1rem;
2769
+ line-height: 1.25rem;
2770
+ }
2771
+
2772
+ .md\:leading-4 {
2773
+ line-height: 1rem;
2759
2774
  }
2760
2775
 
2761
2776
  .md\:drop-shadow-md {
@@ -3032,6 +3047,9 @@ Ensure the default browser behavior of the `hidden` attribute.
3032
3047
  .lg\:pl-1 {
3033
3048
  padding-left: 0.25rem;
3034
3049
  }
3050
+ .lg\:leading-5 {
3051
+ line-height: 1.25rem;
3052
+ }
3035
3053
  .lg\:leading-8 {
3036
3054
  line-height: 2rem;
3037
3055
  }
@@ -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 ~}}
@@ -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}}
@@ -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" ~}}
@@ -9,10 +9,8 @@
9
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}}
10
10
  </header>
11
11
  <section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
12
- <div class="{{inline-switch teasersize '["xxl"]' '["","hidden md:block"]'}} mt-2 text-base font-copy">{{shorttext}}</div>
13
-
14
- {{> components/Teaser/Byline}}
15
-
12
+ {{> components/Teaser/teaserText text=shorttext size=teasersize }}
13
+ {{> components/Teaser/Byline}}
16
14
  </section>
17
15
  </div>
18
16
  </article>
@@ -1 +1 @@
1
- <span class="block {{inline-switch size '["xxl","sm"]' '["text-2xl md:text-4xl ","text-lg ","text-2xl "]'}} {{font}} mt-0.5">{{text}}</span>
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,8 @@
1
+ <section class="c-teaserGroup -s{{this.teasersize}}">
2
+ {{~#if this.hasGroupTitle}}
3
+ <{{#if _isRelatedContent}}h4{{else}}h2{{/if}} class="c-teaserGroup__headline headline--separator text__headline">{{#if this.hasLink}}<a class="link" href="{{this.link.url}}">{{/if}}<span class="headline--separator__text">{{this.groupTitle}}</span>{{#if this.hasLink}}</a>{{/if}}</{{#if _isRelatedContent}}h4{{else}}h2{{/if}}>
4
+ {{/if}}
5
+ <div class="c-teaserGroup__content">
6
+ {{~> components/Teaser/teaser_logic ~}}
7
+ </div>
8
+ </section>
@@ -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,17 @@
1
+ {{~#each this.logicItems}}
2
+ {{~#if this.isSsi~}}
3
+ {{#if (isStorybook)}}
4
+ {{> components/Teaser/teaser_logic.ssi.hbs }}
5
+ {{else}}
6
+ {{{this.ssi}}}
7
+ {{/if}}
8
+ {{~else}}
9
+ {{~#with this.includeModel~}}
10
+ {{~#if (isStorybook)~}}
11
+ {{~> components/base/loadDynamic templatePath=../includePath ~}}
12
+ {{~else~}}
13
+ {{~> (lookup ../. 'includePath')~}}
14
+ {{~/if~}}
15
+ {{~/with~}}
16
+ {{~/if~}}
17
+ {{/each~}}
@@ -0,0 +1,9 @@
1
+ {{~#with this.logicItem~}}
2
+ {{~#with this.includeModel~}}
3
+ {{~#if (isStorybook)~}}
4
+ {{~> components/base/loadDynamic templatePath=../includePath ~}}
5
+ {{~else~}}
6
+ {{~> (lookup ../. 'includePath')~}}
7
+ {{~/if~}}
8
+ {{~/with~}}
9
+ {{~/with~}}
@@ -2,4 +2,10 @@
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}}
7
+ {{/case}}
8
+ {{#case "components/Teaser/Teaser-standard"}}
9
+ {{> components/Teaser/Teaser-standard}}
10
+ {{/case}}
5
11
  {{/switch}}
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.7",
9
+ "version": "0.42.10",
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,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 ~}}
@@ -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}}
@@ -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" ~}}
@@ -9,10 +9,8 @@
9
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}}
10
10
  </header>
11
11
  <section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
12
- <div class="{{inline-switch teasersize '["xxl"]' '["","hidden md:block"]'}} mt-2 text-base font-copy">{{shorttext}}</div>
13
-
14
- {{> components/Teaser/Byline}}
15
-
12
+ {{> components/Teaser/teaserText text=shorttext size=teasersize }}
13
+ {{> components/Teaser/Byline}}
16
14
  </section>
17
15
  </div>
18
16
  </article>
@@ -1 +1 @@
1
- <span class="block {{inline-switch size '["xxl","sm"]' '["text-2xl md:text-4xl ","text-lg ","text-2xl "]'}} {{font}} mt-0.5">{{text}}</span>
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>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "logicItems": [
3
3
  {
4
- "includePath": "components/teaser/teaser-group/group-default",
4
+ "includePath": "components/Teaser/teaser-group",
5
5
  "includeModel": {
6
6
  "hasLink": true,
7
7
  "link": "#gruppe1",
@@ -12,7 +12,7 @@
12
12
  {
13
13
  "isSsi": true,
14
14
  "logicItem": {
15
- "includePath": "components/teaser/teaser-default",
15
+ "includePath": "components/Teaser/Teaser-standard",
16
16
  "includeModel": {
17
17
  "byline": "Byline",
18
18
  "title": "Abgeschobene Geschwister aus Syrien zurück in Wolfhagen",
@@ -40,7 +40,7 @@
40
40
  "dontLazyload": true,
41
41
  "realTeasersize": "100",
42
42
  "isStandardTeaser": true,
43
- "isHeroTeaser": true,
43
+ "isHeroTeaser": false,
44
44
  "isMediaTeaser": false,
45
45
  "isGuide": false,
46
46
  "isProgram": false,
@@ -40,7 +40,7 @@
40
40
  "dontLazyload": true,
41
41
  "realTeasersize": "100",
42
42
  "isStandardTeaser": true,
43
- "isHeroTeaser": true,
43
+ "isHeroTeaser": false,
44
44
  "isMediaTeaser": false,
45
45
  "isGuide": false,
46
46
  "isProgram": false,
@@ -40,7 +40,7 @@
40
40
  "dontLazyload": true,
41
41
  "realTeasersize": "100",
42
42
  "isStandardTeaser": true,
43
- "isHeroTeaser": true,
43
+ "isHeroTeaser": false,
44
44
  "isMediaTeaser": false,
45
45
  "isGuide": false,
46
46
  "isProgram": false,
@@ -40,7 +40,7 @@
40
40
  "dontLazyload": true,
41
41
  "realTeasersize": "100",
42
42
  "isStandardTeaser": true,
43
- "isHeroTeaser": true,
43
+ "isHeroTeaser": false,
44
44
  "isMediaTeaser": false,
45
45
  "isGuide": false,
46
46
  "isProgram": false,
@@ -0,0 +1,8 @@
1
+ <section class="c-teaserGroup -s{{this.teasersize}}">
2
+ {{~#if this.hasGroupTitle}}
3
+ <{{#if _isRelatedContent}}h4{{else}}h2{{/if}} class="c-teaserGroup__headline headline--separator text__headline">{{#if this.hasLink}}<a class="link" href="{{this.link.url}}">{{/if}}<span class="headline--separator__text">{{this.groupTitle}}</span>{{#if this.hasLink}}</a>{{/if}}</{{#if _isRelatedContent}}h4{{else}}h2{{/if}}>
4
+ {{/if}}
5
+ <div class="c-teaserGroup__content">
6
+ {{~> components/Teaser/teaser_logic ~}}
7
+ </div>
8
+ </section>
@@ -0,0 +1,30 @@
1
+ import { ArgsTable, Meta, Story, Canvas, Preview } from '@storybook/addon-docs'
2
+
3
+ import teaser from './teaser_logic.hbs'
4
+ import index_site from './data/teaser_full.json'
5
+
6
+ <Meta title="Komponenten/Teaser/Logic"
7
+ parameters={{
8
+ layout: 'fullscreen',
9
+ }}
10
+ argTypes={{
11
+ }}
12
+ />
13
+
14
+ export const Template = (args, { globals: { customConditionalToolbar } }) => {
15
+ // You can either use a function to create DOM elements or use a plain html string!
16
+ // return `<div>${label}</div>`;
17
+ let brand =
18
+ undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
19
+ return teaser({ brand, ...args })
20
+ }
21
+
22
+ # Header
23
+
24
+ Ein toller Einleitungstext für unsere `Teaser` Komponente:
25
+
26
+ <Preview withToolbar>
27
+ <Story name="logic" args={index_site}>
28
+ {Template.bind({})}
29
+ </Story>
30
+ </Preview>
@@ -16,6 +16,8 @@ let hero_teaser_with_comments = structuredClone(hero_teaser);
16
16
  addCommentLink(hero_teaser_with_comments, comments.commentLink);
17
17
  let md_teaser_with_comments = structuredClone(md_teaser);
18
18
  addCommentLink(md_teaser_with_comments, comments.commentLink);
19
+ let sm_teaser_with_comments = structuredClone(sm_teaser);
20
+ addCommentLink(sm_teaser_with_comments, comments.commentLink);
19
21
 
20
22
  <Meta title="Komponenten/Teaser/Standard"
21
23
  parameters={{
@@ -72,7 +74,7 @@ Ein toller Einleitungstext für unsere `Teaser` Komponente:
72
74
  <Story name="Standard MD" args={md_teaser_with_comments}>
73
75
  {Template.bind({})}
74
76
  </Story>
75
- <Story name="Standard SM" args={sm_teaser}>
77
+ <Story name="Standard SM" args={sm_teaser_with_comments}>
76
78
  {Template.bind({})}
77
79
  </Story>
78
80
 
@@ -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,57 @@
1
+ import { ArgsTable, Meta, Story, Preview } from "@storybook/addon-docs";
2
+
3
+ import teaserTextComponent from "./teaserText.hbs";
4
+
5
+ <Meta
6
+ title="Komponenten/Teaser/Komponenten/teaserText"
7
+ argTypes={{
8
+ text: {
9
+ control: "text",
10
+ description: "teaserText",
11
+ },
12
+ size: {
13
+ options: ["xl", "lg", "md", "sm"],
14
+ control: { type: "inline-radio" },
15
+ },
16
+ font : {
17
+ table: {
18
+ disable: true
19
+ }
20
+ },
21
+ }}
22
+ />
23
+
24
+ export const Template = ({ text, ...args }) => {
25
+ return teaserTextComponent({ text, ...args });
26
+ };
27
+
28
+ # teaserText
29
+
30
+ Beispiele für die teaserText-Komponente:
31
+
32
+ <Preview withToolbar>
33
+ <Story
34
+ name="Teasertext"
35
+ args={{
36
+ text: "Dies ist der Teasertext eines normalen Teasers",
37
+ size: "lg",
38
+ }}
39
+ >
40
+ {Template.bind({})}
41
+ </Story>
42
+ <Story
43
+ name="Teasertext Hero-Teaser"
44
+ args={{
45
+ text: "Dies ist der Teasertext eines Hero-Teasers",
46
+ size: "xxl",
47
+ font: "md:text-base md:leading-4 lg:leading-5",
48
+ }}
49
+ parameters={{
50
+ controls: {
51
+ exclude: ['size']
52
+ }
53
+ }}
54
+ >
55
+ {Template.bind({})}
56
+ </Story>
57
+ </Preview>
@@ -0,0 +1,17 @@
1
+ {{~#each this.logicItems}}
2
+ {{~#if this.isSsi~}}
3
+ {{#if (isStorybook)}}
4
+ {{> components/Teaser/teaser_logic.ssi.hbs }}
5
+ {{else}}
6
+ {{{this.ssi}}}
7
+ {{/if}}
8
+ {{~else}}
9
+ {{~#with this.includeModel~}}
10
+ {{~#if (isStorybook)~}}
11
+ {{~> components/base/loadDynamic templatePath=../includePath ~}}
12
+ {{~else~}}
13
+ {{~> (lookup ../. 'includePath')~}}
14
+ {{~/if~}}
15
+ {{~/with~}}
16
+ {{~/if~}}
17
+ {{/each~}}
@@ -0,0 +1,9 @@
1
+ {{~#with this.logicItem~}}
2
+ {{~#with this.includeModel~}}
3
+ {{~#if (isStorybook)~}}
4
+ {{~> components/base/loadDynamic templatePath=../includePath ~}}
5
+ {{~else~}}
6
+ {{~> (lookup ../. 'includePath')~}}
7
+ {{~/if~}}
8
+ {{~/with~}}
9
+ {{~/with~}}
@@ -2,4 +2,10 @@
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}}
7
+ {{/case}}
8
+ {{#case "components/Teaser/Teaser-standard"}}
9
+ {{> components/Teaser/Teaser-standard}}
10
+ {{/case}}
5
11
  {{/switch}}
@@ -38,9 +38,12 @@ module.exports = {
38
38
 
39
39
  extend: {
40
40
  fontSize: {
41
+ 'xs':['0.75rem', '1.063rem'],
42
+ 'sm':['0.875rem', '1.188rem'],
43
+ 'base':['1rem', '1.25rem'],
41
44
  'lg':['1.125rem', '1.5rem'],
42
- '2xl':['1.375rem', '2rem'],
43
- '4xl':['2.125rem', '2.25rem'],
45
+ '2xl':['1.375rem', '1.75rem'],
46
+ '4xl':['2.125rem', '2.375rem'],
44
47
  },
45
48
  boxShadow: {
46
49
  inner: 'inset 0 0px 5px 0 rgba(0, 0, 0, 0.25)',
@@ -1 +0,0 @@
1
- <{{headlineTag}} class="sb-headline block {{inline-switch visualSize '["4xl","3xl","2xl","xl","lg","base","sm"]' '["text-4xl","text-3xl","text-2xl","text-xl","text-lg","text-base","text-sm"]'}} {{inline-switch font '["headingSerif","heading"]' '["font-headingSerif","font-heading"]'}} {{inline-switch bold '["true","false"]' '["font-bold"]'}} {{class}}" >{{text}}</{{headlineTag}}>
@@ -1 +0,0 @@
1
- <{{headlineTag}} class="sb-headline block {{inline-switch visualSize '["4xl","3xl","2xl","xl","lg","base","sm"]' '["text-4xl","text-3xl","text-2xl","text-xl","text-lg","text-base","text-sm"]'}} {{inline-switch font '["headingSerif","heading"]' '["font-headingSerif","font-heading"]'}} {{inline-switch bold '["true","false"]' '["font-bold"]'}} {{class}}" >{{text}}</{{headlineTag}}>
@@ -1,85 +0,0 @@
1
- import { ArgsTable, Meta, Story, Canvas, Preview } from "@storybook/addon-docs";
2
-
3
- import headline from "./Headline.hbs";
4
-
5
- <Meta
6
- title="Komponenten/Überschrift"
7
- argTypes={{
8
- text: {
9
- control: "text",
10
- description: "Überschrift Text",
11
- },
12
- headlineTag: {
13
- control: {
14
- type: "select",
15
- options: ["span", "h1", "h2", "h3", "h4", "h5", "h6"],
16
- },
17
- description: "Größe",
18
- table: {
19
- defaultValue: {
20
- summary: "span",
21
- },
22
- },
23
- },
24
- visualSize: {
25
- control: {
26
- type: "select",
27
- options: ["", "4xl", "3xl", "2xl", "xl", "lg", "base", "sm"],
28
- },
29
- description: "Optische Größe",
30
- table: {
31
- defaultValue: {
32
- summary: "base",
33
- },
34
- },
35
- },
36
- font: {
37
- description: "Schriftart",
38
- control: {
39
- type: "inline-radio",
40
- options: ["headingSerif", "heading"],
41
- },
42
- table: {
43
- defaultValue: {
44
- summary: "heading",
45
- },
46
- },
47
- },
48
- bold: {
49
- options: ["true", "false"],
50
- control: { type: "inline-radio" },
51
- },
52
- class: {
53
- control: "text",
54
- description: "Extra CSS Klassen",
55
- },
56
- }}
57
- />
58
-
59
- export const Template = ({ text, ...args }) => {
60
- // You can either use a function to create DOM elements or use a plain html string!
61
- // return `<div>${label}</div>`;
62
- return headline({ text, ...args });
63
- };
64
-
65
- # Button
66
-
67
- Ein toller Einleitungstext für unsere `Überschriften` Komponente:
68
-
69
- <Preview withToolbar>
70
- <Story
71
- name="h1"
72
- args={{
73
- headlineTag: "h1",
74
- visualSize: "base",
75
- font: "heading",
76
- text:
77
- "Das ist eine wirklich sehr lange Headline die kein Ende zu finden scheint",
78
- bold: "false",
79
- }}
80
- >
81
- {Template.bind({})}
82
- </Story>
83
- </Preview>
84
-
85
- <ArgsTable story="h1" />