hr-design-system-handlebars 0.42.5 → 0.42.8

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 (26) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/build/helpers/loca.js +6 -1
  3. package/dist/assets/index.css +152 -0
  4. package/dist/views/components/Teaser/Byline.hbs +74 -1
  5. package/dist/views/components/Teaser/Comments.hbs +15 -0
  6. package/dist/views/components/Teaser/Teaser-standard.hbs +3 -5
  7. package/dist/views/components/Teaser/jsonHelper.js +4 -0
  8. package/dist/views/components/Teaser/teaserText.hbs +1 -0
  9. package/package.json +1 -1
  10. package/src/assets/tailwind.css +44 -0
  11. package/src/stories/views/components/Teaser/Byline.hbs +74 -1
  12. package/src/stories/views/components/Teaser/Byline.stories.mdx +16 -21
  13. package/src/stories/views/components/Teaser/Comments.hbs +15 -0
  14. package/src/stories/views/components/Teaser/Teaser-standard.hbs +3 -5
  15. package/src/stories/views/components/Teaser/data/teaser_article.json +5 -3
  16. package/src/stories/views/components/Teaser/data/teaser_commentLink.json +16 -0
  17. package/src/stories/views/components/Teaser/data/teaser_full.json +4 -2
  18. package/src/stories/views/components/Teaser/data/teaser_standard_lg_serif.json +5 -3
  19. package/src/stories/views/components/Teaser/data/teaser_standard_md_serif.json +5 -3
  20. package/src/stories/views/components/Teaser/data/teaser_standard_sm_serif.json +5 -3
  21. package/src/stories/views/components/Teaser/data/teaser_standard_xl_serif.json +5 -3
  22. package/src/stories/views/components/Teaser/data/teaser_standard_xxl_serif.json +5 -3
  23. package/src/stories/views/components/Teaser/jsonHelper.js +4 -0
  24. package/src/stories/views/components/Teaser/teaser-standard.stories.mdx +8 -2
  25. package/src/stories/views/components/Teaser/teaserText.hbs +1 -0
  26. package/src/stories/views/components/Teaser/teaserText.stories.mdx +57 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,40 @@
1
+ # v0.42.8 (Tue Apr 19 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - add teaserText-component [#217](https://github.com/mumprod/hr-design-system-handlebars/pull/217) (zouhair1 [@selbaciri](https://github.com/selbaciri))
6
+
7
+ #### Authors: 2
8
+
9
+ - Saad El Baciri ([@selbaciri](https://github.com/selbaciri))
10
+ - selbaciri (zouhair1)
11
+
12
+ ---
13
+
14
+ # v0.42.7 (Tue Apr 19 2022)
15
+
16
+ #### 🐛 Bug Fix
17
+
18
+ - extend byline [#216](https://github.com/mumprod/hr-design-system-handlebars/pull/216) ([@hanswurstsalat](https://github.com/hanswurstsalat))
19
+
20
+ #### Authors: 1
21
+
22
+ - Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
23
+
24
+ ---
25
+
26
+ # v0.42.6 (Wed Apr 13 2022)
27
+
28
+ #### 🐛 Bug Fix
29
+
30
+ - - added aspect ratio classes with fallback to tailwind.css [#215](https://github.com/mumprod/hr-design-system-handlebars/pull/215) ([@vascoeduardo](https://github.com/vascoeduardo))
31
+
32
+ #### Authors: 1
33
+
34
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
35
+
36
+ ---
37
+
1
38
  # v0.42.5 (Wed Apr 13 2022)
2
39
 
3
40
  #### 🐛 Bug Fix
@@ -10,7 +10,12 @@ module.exports = function(text, options) {
10
10
  "search_input_aria_submit": "Suche starten",
11
11
  "search_input_placeholder": "Ort oder Thema suchen",
12
12
  "feature_box_anchor": "Livestream Player anspringen",
13
- "header_homepage_link_title": "Startseite hessenschau . d e"
13
+ "header_homepage_link_title": "Startseite hessenschau . d e",
14
+ "comment_anchor_1": "zu den ",
15
+ "comment_label_text": "Kommentar",
16
+ "comment_label_text_many": "Kommentare",
17
+ "comment_anchor_2": " Kommentaren des Artikels springen",
18
+ "date_simple_at": options + " Uhr"
14
19
  }
15
20
 
16
21
  for (let key in locas){
@@ -796,6 +796,54 @@ Ensure the default browser behavior of the `hidden` attribute.
796
796
  grid-column: full;
797
797
  }
798
798
 
799
+ /*! ****************************/
800
+
801
+ /*! Aspect Ratio with fallback */
802
+
803
+ /*! ****************************/
804
+
805
+ .ar-16-9 {
806
+ aspect-ratio: 16 / 9
807
+ }
808
+
809
+ @supports not (aspect-ratio: 16 / 9) {
810
+ .ar-16-9::before {
811
+ float: left;
812
+ padding-top: 56.25%;
813
+ content: '';
814
+ }
815
+
816
+ .ar-16-19::after {
817
+ display: block;
818
+ content: '';
819
+ clear: both;
820
+ }
821
+ }
822
+
823
+ .ar-1-1 {
824
+ aspect-ratio: 1 / 1
825
+ }
826
+
827
+ @supports not (aspect-ratio: 1 / 1) {
828
+ .ar-1-1::before {
829
+ float: left;
830
+ padding-top: 100%;
831
+ content: '';
832
+ }
833
+
834
+ .ar-1-1::after {
835
+ display: block;
836
+ content: '';
837
+ clear: both;
838
+ }
839
+ }
840
+
841
+ /*! ********************************/
842
+
843
+ /*! Aspect Ratio with fallback end */
844
+
845
+ /*! ********************************/
846
+
799
847
  .headline--barrier {
800
848
  display: -webkit-box;
801
849
  display: -ms-flexbox;
@@ -1499,6 +1547,10 @@ Ensure the default browser behavior of the `hidden` attribute.
1499
1547
  margin-left: 1rem;
1500
1548
  margin-right: 1rem;
1501
1549
  }
1550
+ .mx-px {
1551
+ margin-left: 1px;
1552
+ margin-right: 1px;
1553
+ }
1502
1554
  .mt-6 {
1503
1555
  margin-top: 1.5rem;
1504
1556
  }
@@ -1514,12 +1566,27 @@ Ensure the default browser behavior of the `hidden` attribute.
1514
1566
  .-mt-10 {
1515
1567
  margin-top: -2.5rem;
1516
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
+ }
1517
1581
  .mt-0\.5 {
1518
1582
  margin-top: 0.125rem;
1519
1583
  }
1520
1584
  .mt-0 {
1521
1585
  margin-top: 0px;
1522
1586
  }
1587
+ .mt-5 {
1588
+ margin-top: 1.25rem;
1589
+ }
1523
1590
  .mr-4 {
1524
1591
  margin-right: 1rem;
1525
1592
  }
@@ -1541,6 +1608,9 @@ Ensure the default browser behavior of the `hidden` attribute.
1541
1608
  .inline-block {
1542
1609
  display: inline-block;
1543
1610
  }
1611
+ .inline {
1612
+ display: inline;
1613
+ }
1544
1614
  .flex {
1545
1615
  display: -webkit-box;
1546
1616
  display: -ms-flexbox;
@@ -1638,6 +1708,9 @@ Ensure the default browser behavior of the `hidden` attribute.
1638
1708
  .w-40 {
1639
1709
  width: 10rem;
1640
1710
  }
1711
+ .w-5 {
1712
+ width: 1.25rem;
1713
+ }
1641
1714
  .w-12 {
1642
1715
  width: 3rem;
1643
1716
  }
@@ -2173,6 +2246,9 @@ Ensure the default browser behavior of the `hidden` attribute.
2173
2246
  .font-bold {
2174
2247
  font-weight: 700;
2175
2248
  }
2249
+ .uppercase {
2250
+ text-transform: uppercase;
2251
+ }
2176
2252
  .leading-3 {
2177
2253
  line-height: .75rem;
2178
2254
  }
@@ -2214,6 +2290,9 @@ Ensure the default browser behavior of the `hidden` attribute.
2214
2290
  .text-opacity-50 {
2215
2291
  --tw-text-opacity: 0.5;
2216
2292
  }
2293
+ .decoration-1 {
2294
+ text-decoration-thickness: 1px;
2295
+ }
2217
2296
  .placeholder-blue-congress::-webkit-input-placeholder {
2218
2297
  --tw-placeholder-opacity: 1;
2219
2298
  color: rgba(0, 82, 147, var(--tw-placeholder-opacity));
@@ -2478,155 +2557,225 @@ Ensure the default browser behavior of the `hidden` attribute.
2478
2557
  }
2479
2558
  }
2480
2559
  @media (min-width: 768px) {
2560
+ .md\:ar-16-9 {
2561
+ aspect-ratio: 16 / 9
2562
+ }
2563
+
2564
+ @supports not (aspect-ratio: 16 / 9) {
2565
+ .md\:ar-16-9::before {
2566
+ float: left;
2567
+ padding-top: 56.25%;
2568
+ content: '';
2569
+ }
2570
+
2571
+ .ar-16-19::after {
2572
+ display: block;
2573
+ content: '';
2574
+ clear: both;
2575
+ }
2576
+ }
2577
+
2481
2578
  .md\:static {
2482
2579
  position: static;
2483
2580
  }
2581
+
2484
2582
  .md\:top-auto {
2485
2583
  top: auto;
2486
2584
  }
2585
+
2487
2586
  .md\:left-auto {
2488
2587
  left: auto;
2489
2588
  }
2589
+
2490
2590
  .md\:top-12 {
2491
2591
  top: 3rem;
2492
2592
  }
2593
+
2493
2594
  .md\:left-0 {
2494
2595
  left: 0px;
2495
2596
  }
2597
+
2496
2598
  .md\:z-101 {
2497
2599
  z-index: 101;
2498
2600
  }
2601
+
2499
2602
  .md\:order-2 {
2500
2603
  -webkit-box-ordinal-group: 3;
2501
2604
  -ms-flex-order: 2;
2502
2605
  order: 2;
2503
2606
  }
2607
+
2504
2608
  .md\:order-4 {
2505
2609
  -webkit-box-ordinal-group: 5;
2506
2610
  -ms-flex-order: 4;
2507
2611
  order: 4;
2508
2612
  }
2613
+
2509
2614
  .md\:col-span-8 {
2510
2615
  grid-column: span 8 / span 8;
2511
2616
  }
2617
+
2512
2618
  .md\:col-span-6 {
2513
2619
  grid-column: span 6 / span 6;
2514
2620
  }
2621
+
2515
2622
  .md\:col-span-4 {
2516
2623
  grid-column: span 4 / span 4;
2517
2624
  }
2625
+
2518
2626
  .md\:col-span-3 {
2519
2627
  grid-column: span 3 / span 3;
2520
2628
  }
2629
+
2521
2630
  .md\:mt-0 {
2522
2631
  margin-top: 0px;
2523
2632
  }
2633
+
2524
2634
  .md\:-mt-40 {
2525
2635
  margin-top: -10rem;
2526
2636
  }
2637
+
2527
2638
  .md\:block {
2528
2639
  display: block;
2529
2640
  }
2641
+
2530
2642
  .md\:flex {
2531
2643
  display: -webkit-box;
2532
2644
  display: -ms-flexbox;
2533
2645
  display: flex;
2534
2646
  }
2647
+
2535
2648
  .md\:hidden {
2536
2649
  display: none;
2537
2650
  }
2651
+
2538
2652
  .md\:h-header-md {
2539
2653
  height: 5.5625rem;
2540
2654
  }
2655
+
2541
2656
  .md\:h-12 {
2542
2657
  height: 3rem;
2543
2658
  }
2659
+
2544
2660
  .md\:h-7 {
2545
2661
  height: 1.75rem;
2546
2662
  }
2663
+
2547
2664
  .md\:h-full {
2548
2665
  height: 100%;
2549
2666
  }
2667
+
2550
2668
  .md\:h-8 {
2551
2669
  height: 2rem;
2552
2670
  }
2671
+
2553
2672
  .md\:w-1\/2 {
2554
2673
  width: 50%;
2555
2674
  }
2675
+
2556
2676
  .md\:w-40 {
2557
2677
  width: 10rem;
2558
2678
  }
2679
+
2559
2680
  .md\:w-80 {
2560
2681
  width: 20rem;
2561
2682
  }
2683
+
2562
2684
  .md\:w-auto {
2563
2685
  width: auto;
2564
2686
  }
2687
+
2565
2688
  .md\:w-8 {
2566
2689
  width: 2rem;
2567
2690
  }
2691
+
2568
2692
  .md\:max-w-1\/2 {
2569
2693
  max-width: 50%;
2570
2694
  }
2695
+
2571
2696
  .md\:flex-auto {
2572
2697
  -webkit-box-flex: 1;
2573
2698
  -ms-flex: 1 1 auto;
2574
2699
  flex: 1 1 auto;
2575
2700
  }
2701
+
2576
2702
  .md\:flex-col {
2577
2703
  -webkit-box-orient: vertical;
2578
2704
  -webkit-box-direction: normal;
2579
2705
  -ms-flex-direction: column;
2580
2706
  flex-direction: column;
2581
2707
  }
2708
+
2582
2709
  .md\:justify-end {
2583
2710
  -webkit-box-pack: end;
2584
2711
  -ms-flex-pack: end;
2585
2712
  justify-content: flex-end;
2586
2713
  }
2714
+
2587
2715
  .md\:rounded-none {
2588
2716
  border-radius: 0px;
2589
2717
  }
2718
+
2590
2719
  .md\:border-0 {
2591
2720
  border-width: 0px;
2592
2721
  }
2722
+
2593
2723
  .md\:border-r {
2594
2724
  border-right-width: 1px;
2595
2725
  }
2726
+
2596
2727
  .md\:border-l {
2597
2728
  border-left-width: 1px;
2598
2729
  }
2730
+
2599
2731
  .md\:border-white {
2600
2732
  --tw-border-opacity: 1;
2601
2733
  border-color: rgba(255, 255, 255, var(--tw-border-opacity));
2602
2734
  }
2735
+
2603
2736
  .md\:px-0 {
2604
2737
  padding-left: 0px;
2605
2738
  padding-right: 0px;
2606
2739
  }
2740
+
2607
2741
  .md\:px-5 {
2608
2742
  padding-left: 1.25rem;
2609
2743
  padding-right: 1.25rem;
2610
2744
  }
2745
+
2611
2746
  .md\:px-4 {
2612
2747
  padding-left: 1rem;
2613
2748
  padding-right: 1rem;
2614
2749
  }
2750
+
2615
2751
  .md\:pt-4 {
2616
2752
  padding-top: 1rem;
2617
2753
  }
2754
+
2618
2755
  .md\:pl-0 {
2619
2756
  padding-left: 0px;
2620
2757
  }
2758
+
2759
+ .md\:text-base {
2760
+ font-size: 1rem;
2761
+ line-height: 1.5rem;
2762
+ }
2763
+
2621
2764
  .md\:text-4xl {
2622
2765
  font-size: 2.125rem;
2623
2766
  line-height: 2.25rem;
2624
2767
  }
2768
+
2769
+ .md\:leading-4 {
2770
+ line-height: 1rem;
2771
+ }
2772
+
2625
2773
  .md\:drop-shadow-md {
2626
2774
  --tw-drop-shadow: drop-shadow(0 5px 3px rgba(0, 0, 0, 0.07));
2627
2775
  -webkit-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2628
2776
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2629
2777
  }
2778
+
2630
2779
  .md\:filter {
2631
2780
  -webkit-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2632
2781
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
@@ -2895,6 +3044,9 @@ Ensure the default browser behavior of the `hidden` attribute.
2895
3044
  .lg\:pl-1 {
2896
3045
  padding-left: 0.25rem;
2897
3046
  }
3047
+ .lg\:leading-5 {
3048
+ line-height: 1.25rem;
3049
+ }
2898
3050
  .lg\:leading-8 {
2899
3051
  line-height: 2rem;
2900
3052
  }
@@ -1 +1,74 @@
1
- <span class="block mt-2 text-xs text-grey-scorpion font-headingSerif">{{text}}</span>
1
+ <p class="mt-2 text-xs text-grey-scorpion font-headingSerif">
2
+
3
+ {{!--Teaser-Info--}}
4
+ {{#with this.teaserInfo}}
5
+ {{#if this.showTeaserInfo~}}
6
+ {{~#if this.showTeaserInfoDate}}
7
+ {{~#with ../teaserDate}}
8
+ <time datetime="{{this.htmlDateTime}}">{{this.date}}</time>
9
+ {{/with~}}
10
+ {{#if this.showTeaserInfoSection}}
11
+ <span class="mx-px">|</span>
12
+ {{else}}
13
+ {{#if ../profiles}}
14
+ <span class="mx-px">|</span>
15
+ {{/if}}
16
+ {{/if}}
17
+ {{else}}
18
+ {{~#if this.showTeaserInfoDateTime}}
19
+ {{~#with ../teaserDate}}
20
+ <time datetime="{{this.htmlDateTime}}">{{loca "date_simple_at" this.dateSeparatorTime}}</time>
21
+ {{/with~}}
22
+ {{#if this.showTeaserInfoSection}}
23
+ <span class="mx-px">|</span>
24
+ {{else}}
25
+ {{#if ../profiles}}
26
+ <span class="mx-px">|</span>
27
+ {{/if}}
28
+ {{/if}}
29
+ {{/if~}}
30
+ {{/if~}}
31
+
32
+ {{~#if this.showTeaserInfoSection}}
33
+ <span class="uppercase">
34
+ {{../documentSection~}}
35
+ </span>
36
+ {{#if ../profiles}}
37
+ <span class="mx-px">|</span>
38
+ {{/if}}
39
+ {{/if}}
40
+
41
+ {{/if}}
42
+ {{/with}}
43
+
44
+ {{!--Profiles--}}
45
+ {{#if profiles}}
46
+ <span>{{profiles}}</span>
47
+ {{/if}}
48
+
49
+ {{!--
50
+ Gap here only if comments exists and at least one of those elements above
51
+ is shown. Really ugly because we don't have any or-helper yet...
52
+ --}}
53
+ {{#if commentLink}}
54
+ {{#if profiles}}
55
+ <span class="mr-2.5"></span>
56
+ {{else}}
57
+ {{#if teaserInfo.showTeaserInfoSection}}
58
+ <span class="mr-2.5"></span>
59
+ {{else}}
60
+ {{#if teaserInfo.showTeaserInfoDate}}
61
+ <span class="mr-2.5"></span>
62
+ {{else}}
63
+ {{#if teaserInfo.showTeaserInfoDateTime}}
64
+ <span class="mr-2.5"></span>
65
+ {{/if}}
66
+ {{/if}}
67
+ {{/if}}
68
+ {{/if}}
69
+ {{/if}}
70
+
71
+ {{!--Comments--}}
72
+ {{> components/Teaser/Comments}}
73
+
74
+ </p>
@@ -0,0 +1,15 @@
1
+ {{#with this.commentLink}}
2
+ <span class="whitespace-nowrap">
3
+ {{#>components/base/link _cssClasses="hover:underline decoration-1" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="comment" }}
4
+ {{> components/base/image/icon _icon="kommentar" _iconmap="icons" _addClass="mr-0.5 inline w-5 h-5 text-toplineColor fill-current"}}
5
+ <span class="sr-only">{{loca "comment_anchor_1"}}</span>
6
+ <span class="text-toplineColor">{{this.content.commentNumber}}</span>
7
+ {{#if this.content.hasOneComment}}
8
+ <span class="text-toplineColor">{{loca "comment_label_text"}}</span>
9
+ {{else}}
10
+ <span class="text-toplineColor">{{loca "comment_label_text_many"}}</span>
11
+ {{/if}}
12
+ <span class="sr-only">{{loca "comment_anchor_2"}}</span>
13
+ {{/components/base/link}}
14
+ </span>
15
+ {{/with}}
@@ -1,5 +1,5 @@
1
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"]'}} ">
2
- <figure class="{{inline-switch teasersize '["sm"]' '["basis-2/5 md:flex-full"]'}} ">
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" ~}}
5
5
  {{/components/base/link}}
@@ -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
- {{#if profiles}}
14
- {{> components/Teaser/Byline text=profiles}}
15
- {{/if}}
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}}
16
14
  </section>
17
15
  </div>
18
16
  </article>
@@ -0,0 +1,4 @@
1
+ function addCommentLink(json, commentLink) {
2
+ json.commentLink = commentLink;
3
+ }
4
+ export { addCommentLink };
@@ -0,0 +1 @@
1
+ <span class="{{inline-switch size '["xxl","sm"]' '["","hidden","hidden md:block"]'}} text-sm leading-4 {{font}} mt-5 font-copy">{{text}}</span>
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.5",
9
+ "version": "0.42.8",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "start-storybook -p 6006 public",
@@ -411,6 +411,50 @@
411
411
  grid-column: main;
412
412
  }
413
413
  }
414
+ /*! ****************************/
415
+ /*! Aspect Ratio with fallback */
416
+ /*! ****************************/
417
+ .ar-16-9 {
418
+ aspect-ratio: 16 / 9
419
+ }
420
+
421
+ @supports not (aspect-ratio: 16 / 9) {
422
+ .ar-16-9::before {
423
+ float: left;
424
+ padding-top: 56.25%;
425
+ content: '';
426
+ }
427
+
428
+ .ar-16-19::after {
429
+ display: block;
430
+ content: '';
431
+ clear: both;
432
+ }
433
+ }
434
+
435
+ .ar-1-1 {
436
+ aspect-ratio: 1 / 1
437
+ }
438
+
439
+ @supports not (aspect-ratio: 1 / 1) {
440
+ .ar-1-1::before {
441
+ float: left;
442
+ padding-top: 100%;
443
+ content: '';
444
+ }
445
+
446
+ .ar-1-1::after {
447
+ display: block;
448
+ content: '';
449
+ clear: both;
450
+ }
451
+ }
452
+
453
+
454
+ /*! ********************************/
455
+ /*! Aspect Ratio with fallback end */
456
+ /*! ********************************/
457
+
414
458
  .headline--barrier {
415
459
  display: flex;
416
460
  width: 100%;
@@ -1 +1,74 @@
1
- <span class="block mt-2 text-xs text-grey-scorpion font-headingSerif">{{text}}</span>
1
+ <p class="mt-2 text-xs text-grey-scorpion font-headingSerif">
2
+
3
+ {{!--Teaser-Info--}}
4
+ {{#with this.teaserInfo}}
5
+ {{#if this.showTeaserInfo~}}
6
+ {{~#if this.showTeaserInfoDate}}
7
+ {{~#with ../teaserDate}}
8
+ <time datetime="{{this.htmlDateTime}}">{{this.date}}</time>
9
+ {{/with~}}
10
+ {{#if this.showTeaserInfoSection}}
11
+ <span class="mx-px">|</span>
12
+ {{else}}
13
+ {{#if ../profiles}}
14
+ <span class="mx-px">|</span>
15
+ {{/if}}
16
+ {{/if}}
17
+ {{else}}
18
+ {{~#if this.showTeaserInfoDateTime}}
19
+ {{~#with ../teaserDate}}
20
+ <time datetime="{{this.htmlDateTime}}">{{loca "date_simple_at" this.dateSeparatorTime}}</time>
21
+ {{/with~}}
22
+ {{#if this.showTeaserInfoSection}}
23
+ <span class="mx-px">|</span>
24
+ {{else}}
25
+ {{#if ../profiles}}
26
+ <span class="mx-px">|</span>
27
+ {{/if}}
28
+ {{/if}}
29
+ {{/if~}}
30
+ {{/if~}}
31
+
32
+ {{~#if this.showTeaserInfoSection}}
33
+ <span class="uppercase">
34
+ {{../documentSection~}}
35
+ </span>
36
+ {{#if ../profiles}}
37
+ <span class="mx-px">|</span>
38
+ {{/if}}
39
+ {{/if}}
40
+
41
+ {{/if}}
42
+ {{/with}}
43
+
44
+ {{!--Profiles--}}
45
+ {{#if profiles}}
46
+ <span>{{profiles}}</span>
47
+ {{/if}}
48
+
49
+ {{!--
50
+ Gap here only if comments exists and at least one of those elements above
51
+ is shown. Really ugly because we don't have any or-helper yet...
52
+ --}}
53
+ {{#if commentLink}}
54
+ {{#if profiles}}
55
+ <span class="mr-2.5"></span>
56
+ {{else}}
57
+ {{#if teaserInfo.showTeaserInfoSection}}
58
+ <span class="mr-2.5"></span>
59
+ {{else}}
60
+ {{#if teaserInfo.showTeaserInfoDate}}
61
+ <span class="mr-2.5"></span>
62
+ {{else}}
63
+ {{#if teaserInfo.showTeaserInfoDateTime}}
64
+ <span class="mr-2.5"></span>
65
+ {{/if}}
66
+ {{/if}}
67
+ {{/if}}
68
+ {{/if}}
69
+ {{/if}}
70
+
71
+ {{!--Comments--}}
72
+ {{> components/Teaser/Comments}}
73
+
74
+ </p>
@@ -1,35 +1,30 @@
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
4
  import byline from "./Byline.hbs";
5
+ import comments from './data/teaser_commentLink.json';
6
+ import teaser from './data/teaser_article.json';
7
+ let byline_with_comments = structuredClone(teaser);
8
+ addCommentLink(byline_with_comments, comments.commentLink);
4
9
 
5
- <Meta
6
- title="Komponenten/Teaser/Komponenten/Byline"
7
- argTypes={{
8
- text: {
9
- control: "text",
10
- description: "Bylinetext",
11
- },
12
- }}
13
- />
10
+ <Meta title="Komponenten/Teaser/Komponenten/Byline"/>
14
11
 
15
- export const Template = ({ text, ...args }) => {
16
- // You can either use a function to create DOM elements or use a plain html string!
17
- // return `<span>${topline}</span>`;
18
- return byline({ text, ...args });
12
+ export const Template = ({ ...args }) => {
13
+ return byline({ ...args });
19
14
  };
20
15
 
21
16
  # Byline
22
17
 
23
18
  <Preview withToolbar>
24
- <Story
25
- name="default"
26
- args={{
27
- text:
28
- "Dies ist die Byline",
29
- }}
30
- >
19
+ <Story name="default" args={teaser}>
31
20
  {Template.bind({})}
32
21
  </Story>
22
+ <Story name="with comments" args={byline_with_comments}>
23
+ {Template.bind({})}
24
+ </Story>
25
+ <Story name="comments only" args={comments}>
26
+ {Template.bind({})}
27
+ </Story>
33
28
  </Preview>
34
29
 
35
30
  <ArgsTable story="default" />
@@ -0,0 +1,15 @@
1
+ {{#with this.commentLink}}
2
+ <span class="whitespace-nowrap">
3
+ {{#>components/base/link _cssClasses="hover:underline decoration-1" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="comment" }}
4
+ {{> components/base/image/icon _icon="kommentar" _iconmap="icons" _addClass="mr-0.5 inline w-5 h-5 text-toplineColor fill-current"}}
5
+ <span class="sr-only">{{loca "comment_anchor_1"}}</span>
6
+ <span class="text-toplineColor">{{this.content.commentNumber}}</span>
7
+ {{#if this.content.hasOneComment}}
8
+ <span class="text-toplineColor">{{loca "comment_label_text"}}</span>
9
+ {{else}}
10
+ <span class="text-toplineColor">{{loca "comment_label_text_many"}}</span>
11
+ {{/if}}
12
+ <span class="sr-only">{{loca "comment_anchor_2"}}</span>
13
+ {{/components/base/link}}
14
+ </span>
15
+ {{/with}}
@@ -1,5 +1,5 @@
1
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"]'}} ">
2
- <figure class="{{inline-switch teasersize '["sm"]' '["basis-2/5 md:flex-full"]'}} ">
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" ~}}
5
5
  {{/components/base/link}}
@@ -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
- {{#if profiles}}
14
- {{> components/Teaser/Byline text=profiles}}
15
- {{/if}}
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}}
16
14
  </section>
17
15
  </div>
18
16
  </article>
@@ -7,16 +7,17 @@
7
7
  "teasertype": "standard",
8
8
  "teasersize": "100",
9
9
  "teaserDate": {
10
+ "htmlDateTime": "2022-04-17T19:30+0200",
10
11
  "htmlDate": "20.02.1983",
11
- "date": "20.02.1983",
12
- "dateSeparatorTime": "20.02.1983"
12
+ "date": "17.04.22",
13
+ "dateSeparatorTime": "17.04.22, 19:30"
13
14
  },
14
15
  "teaserInfo": {
15
16
  "showTeaserInfo": true,
16
17
  "showTeaserInfoSection": true,
17
18
  "showTeaserInfoChannel": true,
18
19
  "showTeaserInfoAll": true,
19
- "showTeaserInfoDate": true,
20
+ "showTeaserInfoDate": false,
20
21
  "showTeaserInfoDateTime": true,
21
22
  "showTeaserInfoProgramRef": true
22
23
  },
@@ -81,6 +82,7 @@
81
82
  "shorttext": "Vor einem Jahr wurde die syrische Familie Kheder aus Wolfhagen abgeschoben. Die Gemeinde setzte alle Hebel in Bewegung, um Mutter, Tochter und Sohn zurückzuholen. Im Fall der Kinder hat das nun zu einem Happy End geführt. Doch ihre Mutter fehlt.",
82
83
  "sophoraId": "rueckkehr-nach-abschiebung-wolfhagen--100",
83
84
  "profiles": "Von Alf Haubitz und Alice Merton",
85
+ "documentSection": "Gesellschaft",
84
86
  "teaserLead": {
85
87
  "avDocument": "",
86
88
  "image": ""
@@ -0,0 +1,16 @@
1
+ {
2
+ "commentLink": {
3
+ "link": {
4
+ "url": "/teaser1-comments",
5
+ "webviewUrl": "/teaser1-comments#webview",
6
+ "isTargetBlank": false,
7
+ "readMoreText": {
8
+ "readMoreScreenreader": "Zu den Kommentaren des Artikels"
9
+ },
10
+ "content": {
11
+ "commentNumber": "666",
12
+ "hasOneComment": false
13
+ }
14
+ }
15
+ }
16
+ }
@@ -21,9 +21,10 @@
21
21
  "teasertype": "standard",
22
22
  "teasersize": "100",
23
23
  "teaserDate": {
24
+ "htmlDateTime": "2022-04-17T19:30+0200",
24
25
  "htmlDate": "20.02.1983",
25
- "date": "20.02.1983",
26
- "dateSeparatorTime": "20.02.1983"
26
+ "date": "17.04.22",
27
+ "dateSeparatorTime": "17.04.22, 19:30"
27
28
  },
28
29
  "teaserInfo": {
29
30
  "showTeaserInfo": true,
@@ -95,6 +96,7 @@
95
96
  "shorttext": "shorttext",
96
97
  "sophoraId": "rueckkehr-nach-abschiebung-wolfhagen--100",
97
98
  "profiles": "Von Alf Haubitz und Alice Merton",
99
+ "documentSection": "Gesellschaft",
98
100
  "teaserLead": {
99
101
  "avDocument": "",
100
102
  "image": ""
@@ -7,9 +7,10 @@
7
7
  "teasertype": "standard",
8
8
  "teasersize": "lg",
9
9
  "teaserDate": {
10
+ "htmlDateTime": "2022-04-17T19:30+0200",
10
11
  "htmlDate": "20.02.1983",
11
- "date": "20.02.1983",
12
- "dateSeparatorTime": "20.02.1983"
12
+ "date": "17.04.22",
13
+ "dateSeparatorTime": "17.04.22, 19:30"
13
14
  },
14
15
  "teaserInfo": {
15
16
  "showTeaserInfo": true,
@@ -39,7 +40,7 @@
39
40
  "dontLazyload": true,
40
41
  "realTeasersize": "100",
41
42
  "isStandardTeaser": true,
42
- "isHeroTeaser": true,
43
+ "isHeroTeaser": false,
43
44
  "isMediaTeaser": false,
44
45
  "isGuide": false,
45
46
  "isProgram": false,
@@ -71,6 +72,7 @@
71
72
  "shorttext": "Vor einem Jahr wurde die syrische Familie Kheder aus Wolfhagen abgeschoben. Die Gemeinde setzte alle Hebel in Bewegung, um Mutter, Tochter und Sohn zurückzuholen. Im Fall der Kinder hat das nun zu einem Happy End geführt. Doch ihre Mutter fehlt.",
72
73
  "sophoraId": "rueckkehr-nach-abschiebung-wolfhagen--100",
73
74
  "profiles": "Von Alf Haubitz und Alice Merton",
75
+ "documentSection": "Gesellschaft",
74
76
  "teaserLead": {
75
77
  "avDocument": "",
76
78
  "image": ""
@@ -7,9 +7,10 @@
7
7
  "teasertype": "standard",
8
8
  "teasersize": "md",
9
9
  "teaserDate": {
10
+ "htmlDateTime": "2022-04-17T19:30+0200",
10
11
  "htmlDate": "20.02.1983",
11
- "date": "20.02.1983",
12
- "dateSeparatorTime": "20.02.1983"
12
+ "date": "17.04.22",
13
+ "dateSeparatorTime": "17.04.22, 19:30"
13
14
  },
14
15
  "teaserInfo": {
15
16
  "showTeaserInfo": true,
@@ -39,7 +40,7 @@
39
40
  "dontLazyload": true,
40
41
  "realTeasersize": "100",
41
42
  "isStandardTeaser": true,
42
- "isHeroTeaser": true,
43
+ "isHeroTeaser": false,
43
44
  "isMediaTeaser": false,
44
45
  "isGuide": false,
45
46
  "isProgram": false,
@@ -71,6 +72,7 @@
71
72
  "shorttext": "Vor einem Jahr wurde die syrische Familie Kheder aus Wolfhagen abgeschoben. Die Gemeinde setzte alle Hebel in Bewegung, um Mutter, Tochter und Sohn zurückzuholen. Im Fall der Kinder hat das nun zu einem Happy End geführt. Doch ihre Mutter fehlt.",
72
73
  "sophoraId": "rueckkehr-nach-abschiebung-wolfhagen--100",
73
74
  "profiles": "Von Alf Haubitz und Alice Merton",
75
+ "documentSection": "Gesellschaft",
74
76
  "teaserLead": {
75
77
  "avDocument": "",
76
78
  "image": ""
@@ -7,9 +7,10 @@
7
7
  "teasertype": "standard",
8
8
  "teasersize": "sm",
9
9
  "teaserDate": {
10
+ "htmlDateTime": "2022-04-17T19:30+0200",
10
11
  "htmlDate": "20.02.1983",
11
- "date": "20.02.1983",
12
- "dateSeparatorTime": "20.02.1983"
12
+ "date": "17.04.22",
13
+ "dateSeparatorTime": "17.04.22, 19:30"
13
14
  },
14
15
  "teaserInfo": {
15
16
  "showTeaserInfo": true,
@@ -39,7 +40,7 @@
39
40
  "dontLazyload": true,
40
41
  "realTeasersize": "100",
41
42
  "isStandardTeaser": true,
42
- "isHeroTeaser": true,
43
+ "isHeroTeaser": false,
43
44
  "isMediaTeaser": false,
44
45
  "isGuide": false,
45
46
  "isProgram": false,
@@ -71,6 +72,7 @@
71
72
  "shorttext": "Vor einem Jahr wurde die syrische Familie Kheder aus Wolfhagen abgeschoben. Die Gemeinde setzte alle Hebel in Bewegung, um Mutter, Tochter und Sohn zurückzuholen. Im Fall der Kinder hat das nun zu einem Happy End geführt. Doch ihre Mutter fehlt.",
72
73
  "sophoraId": "rueckkehr-nach-abschiebung-wolfhagen--100",
73
74
  "profiles": "Von Alf Haubitz und Alice Merton",
75
+ "documentSection": "Gesellschaft",
74
76
  "teaserLead": {
75
77
  "avDocument": "",
76
78
  "image": ""
@@ -7,9 +7,10 @@
7
7
  "teasertype": "standard",
8
8
  "teasersize": "xl",
9
9
  "teaserDate": {
10
+ "htmlDateTime": "2022-04-17T19:30+0200",
10
11
  "htmlDate": "20.02.1983",
11
- "date": "20.02.1983",
12
- "dateSeparatorTime": "20.02.1983"
12
+ "date": "17.04.22",
13
+ "dateSeparatorTime": "17.04.22, 19:30"
13
14
  },
14
15
  "teaserInfo": {
15
16
  "showTeaserInfo": true,
@@ -39,7 +40,7 @@
39
40
  "dontLazyload": true,
40
41
  "realTeasersize": "100",
41
42
  "isStandardTeaser": true,
42
- "isHeroTeaser": true,
43
+ "isHeroTeaser": false,
43
44
  "isMediaTeaser": false,
44
45
  "isGuide": false,
45
46
  "isProgram": false,
@@ -71,6 +72,7 @@
71
72
  "shorttext": "Vor einem Jahr wurde die syrische Familie Kheder aus Wolfhagen abgeschoben. Die Gemeinde setzte alle Hebel in Bewegung, um Mutter, Tochter und Sohn zurückzuholen. Im Fall der Kinder hat das nun zu einem Happy End geführt. Doch ihre Mutter fehlt.",
72
73
  "sophoraId": "rueckkehr-nach-abschiebung-wolfhagen--100",
73
74
  "profiles": "Von Alf Haubitz und Alice Merton",
75
+ "documentSection": "Gesellschaft",
74
76
  "teaserLead": {
75
77
  "avDocument": "",
76
78
  "image": ""
@@ -7,16 +7,17 @@
7
7
  "teasertype": "standard",
8
8
  "teasersize": "xxl",
9
9
  "teaserDate": {
10
+ "htmlDateTime": "2022-04-17T19:30+0200",
10
11
  "htmlDate": "20.02.1983",
11
- "date": "20.02.1983",
12
- "dateSeparatorTime": "20.02.1983"
12
+ "date": "17.04.22",
13
+ "dateSeparatorTime": "17.04.22, 19:30"
13
14
  },
14
15
  "teaserInfo": {
15
16
  "showTeaserInfo": true,
16
17
  "showTeaserInfoSection": true,
17
18
  "showTeaserInfoChannel": true,
18
19
  "showTeaserInfoAll": true,
19
- "showTeaserInfoDate": true,
20
+ "showTeaserInfoDate": false,
20
21
  "showTeaserInfoDateTime": true,
21
22
  "showTeaserInfoProgramRef": true
22
23
  },
@@ -71,6 +72,7 @@
71
72
  "shorttext": "Vor einem Jahr wurde die syrische Familie Kheder aus Wolfhagen abgeschoben. Die Gemeinde setzte alle Hebel in Bewegung, um Mutter, Tochter und Sohn zurückzuholen. Im Fall der Kinder hat das nun zu einem Happy End geführt. Doch ihre Mutter fehlt.",
72
73
  "sophoraId": "rueckkehr-nach-abschiebung-wolfhagen--100",
73
74
  "profiles": "Von Alf Haubitz und Alice Merton",
75
+ "documentSection": "Gesellschaft",
74
76
  "teaserLead": {
75
77
  "avDocument": "",
76
78
  "image": ""
@@ -0,0 +1,4 @@
1
+ function addCommentLink(json, commentLink) {
2
+ json.commentLink = commentLink;
3
+ }
4
+ export { addCommentLink };
@@ -1,6 +1,7 @@
1
1
  import { ArgsTable, Meta, Story, Canvas, Preview } from '@storybook/addon-docs'
2
2
  import 'core-js/actual/structured-clone';
3
3
  import { addLabel, removeLabel, changeTeaserSize } from './labelHelper';
4
+ import { addCommentLink } from './jsonHelper';
4
5
  import teaser from './Teaser-standard.hbs'
5
6
  import hero_teaser from './data/teaser_standard_xxl_serif.json'
6
7
  import xl_teaser from './data/teaser_standard_xl_serif.json'
@@ -8,8 +9,13 @@ import lg_teaser from './data/teaser_standard_lg_serif.json'
8
9
  import md_teaser from './data/teaser_standard_md_serif.json'
9
10
  import sm_teaser from './data/teaser_standard_sm_serif.json'
10
11
  import ticker_label from './data/ticker_label.json';
12
+ import comments from './data/teaser_commentLink.json';
11
13
  let hero_teaser_with_label = structuredClone(hero_teaser);
12
14
  addLabel(hero_teaser_with_label, ticker_label.label);
15
+ let hero_teaser_with_comments = structuredClone(hero_teaser);
16
+ addCommentLink(hero_teaser_with_comments, comments.commentLink);
17
+ let md_teaser_with_comments = structuredClone(md_teaser);
18
+ addCommentLink(md_teaser_with_comments, comments.commentLink);
13
19
 
14
20
  <Meta title="Komponenten/Teaser/Standard"
15
21
  parameters={{
@@ -51,7 +57,7 @@ export const Template = (args, { globals: { customConditionalToolbar } }) => {
51
57
  Ein toller Einleitungstext für unsere `Teaser` Komponente:
52
58
 
53
59
  <Preview withToolbar>
54
- <Story name="Standard Hero" args={hero_teaser}>
60
+ <Story name="Standard Hero" args={hero_teaser_with_comments}>
55
61
  {Template.bind({})}
56
62
  </Story>
57
63
  <Story name="Standard Hero with Label" args={hero_teaser_with_label}>
@@ -63,7 +69,7 @@ Ein toller Einleitungstext für unsere `Teaser` Komponente:
63
69
  <Story name="Standard LG" args={lg_teaser}>
64
70
  {Template.bind({})}
65
71
  </Story>
66
- <Story name="Standard MD" args={md_teaser}>
72
+ <Story name="Standard MD" args={md_teaser_with_comments}>
67
73
  {Template.bind({})}
68
74
  </Story>
69
75
  <Story name="Standard SM" args={sm_teaser}>
@@ -0,0 +1 @@
1
+ <span class="{{inline-switch size '["xxl","sm"]' '["","hidden","hidden md:block"]'}} text-sm leading-4 {{font}} mt-5 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: "xl",
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>