hr-design-system-handlebars 1.102.6 → 1.103.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.
- package/.storybook/main.js +3 -0
- package/.storybook/preview-head.html +3 -0
- package/CHANGELOG.md +12 -0
- package/dist/assets/index.css +12 -3
- package/dist/assets/js/utils.js +73 -0
- package/dist/views/components/page/index/page_test_story.hbs +1 -1
- package/dist/views_static/components/page/index/page_test_story.hbs +1 -1
- package/package.json +2 -2
- package/src/assets/fixtures/banner/banner.json +7 -7
- package/src/assets/fixtures/button/button.json +142 -0
- package/src/assets/fixtures/button/link_button.json +153 -0
- package/src/assets/fixtures/label/label.json +65 -0
- package/src/assets/fixtures/mediaplayer/mediaplayer_button.json +40 -0
- package/src/assets/fixtures/mediaplayer/mediaplayer_snapshots.json +151 -0
- package/src/assets/fixtures/navigation/breadcrumb/breadcrumb.inc.json +8 -10
- package/src/assets/fixtures/navigation/breadcrumb/breadcrumb.json +113 -0
- package/src/assets/fixtures/page/metadatabox.inc.json +98 -0
- package/src/assets/fixtures/page/metadatabox.json +89 -16
- package/src/assets/fixtures/page/page.json +5 -4
- package/src/assets/fixtures/pagination/page_pagination.inc.json +157 -0
- package/src/assets/fixtures/pagination/page_pagination.json +251 -88
- package/src/assets/fixtures/site_header/site_header.inc.json +83 -0
- package/src/assets/fixtures/site_header/site_header.json +122 -0
- package/src/assets/fixtures/teaser/components/teaser_byline.json +35 -0
- package/src/assets/fixtures/teaser/components/teaser_headings.json +61 -0
- package/src/assets/fixtures/teaser/components/teaser_text.json +45 -0
- package/src/assets/fixtures/teaser/components/teaser_title.json +38 -0
- package/src/assets/fixtures/teaser/teaser_alternative.json +478 -0
- package/src/assets/fixtures/teaser/teaser_alternative_av.json +465 -0
- package/src/assets/fixtures/teaser/teaser_cluster.json +682 -0
- package/src/assets/fixtures/teaser/teaser_content_nav.json +532 -0
- package/src/assets/fixtures/teaser/teaser_event.json +284 -0
- package/src/assets/fixtures/teaser/teaser_indextext.json +180 -0
- package/src/assets/fixtures/teaser/teaser_podcast.json +75 -2
- package/src/assets/fixtures/teaser/teaser_poster.json +322 -0
- package/src/assets/fixtures/teaser/teaser_stage.json +145 -0
- package/src/assets/fixtures/teaser/teaser_standard.json +371 -0
- package/src/assets/fixtures/teaser/teaser_standard_av.json +285 -0
- package/src/assets/fixtures/teaser/teaser_ticker_alternative.json +156 -0
- package/src/assets/fixtures/teaser/teaser_ticker_standard.json +241 -0
- package/src/assets/fixtures/teaser/teaser_ticker_timeline.json +75 -28
- package/src/assets/js/utils.js +73 -0
- package/src/stories/basics/SnapshotStories.mdx +353 -0
- package/src/stories/views/components/button/button.mdx +3 -5
- package/src/stories/views/components/button/button.stories.js +71 -93
- package/src/stories/views/components/button/fixtures/button.json +1 -0
- package/src/stories/views/components/button/fixtures/link_button.json +1 -0
- package/src/stories/views/components/button/link_button.mdx +3 -5
- package/src/stories/views/components/button/link_button.stories.js +67 -97
- package/src/stories/views/components/grid/grid.stories.js +3 -0
- package/src/stories/views/components/label/fixtures/label.json +1 -0
- package/src/stories/views/components/label/label.stories.js +31 -3
- package/src/stories/views/components/mediaplayer/fixtures/mediaplayer_button.json +1 -0
- package/src/stories/views/components/mediaplayer/fixtures/mediaplayer_snapshots.json +1 -0
- package/src/stories/views/components/mediaplayer/mediaplayer.stories.js +32 -12
- package/src/stories/views/components/mediaplayer/mediaplayer_button.stories.js +41 -34
- package/src/stories/views/components/navigation/breadcrumb/breadcrumb.stories.js +30 -29
- package/src/stories/views/components/navigation/breadcrumb/fixtures/breadcrumb.json +1 -0
- package/src/stories/views/components/page/components/metadatabox.stories.js +87 -23
- package/src/stories/views/components/page/fixtures/metadatabox.json +1 -1
- package/src/stories/views/components/page/index/page.data.js +10 -14
- package/src/stories/views/components/page/index/page.stories.js +3 -3
- package/src/stories/views/components/page/index/page_test_story.hbs +1 -1
- package/src/stories/views/components/pagination/fixtures/page_pagination.json +1 -1
- package/src/stories/views/components/pagination/page_pagination.data.js +2 -2
- package/src/stories/views/components/pagination/page_pagination.stories.js +45 -114
- package/src/stories/views/components/podcast/podcast_subscribe_button.stories.js +2 -2
- package/src/stories/views/components/site_header/fixtures/site_header.json +1 -0
- package/src/stories/views/components/site_header/header.stories.js +32 -17
- package/src/stories/views/components/teaser/cluster/teaser_cluster.stories.js +164 -44
- package/src/stories/views/components/teaser/components/fixtures/teaser_byline.json +1 -0
- package/src/stories/views/components/teaser/components/fixtures/teaser_headings.json +1 -0
- package/src/stories/views/components/teaser/components/fixtures/teaser_text.json +1 -0
- package/src/stories/views/components/teaser/components/fixtures/teaser_title.json +1 -0
- package/src/stories/views/components/teaser/components/teaser_byline.stories.js +32 -8
- package/src/stories/views/components/teaser/components/teaser_heading.stories.js +36 -38
- package/src/stories/views/components/teaser/components/teaser_text.stories.js +34 -23
- package/src/stories/views/components/teaser/components/teaser_title.stories.js +35 -23
- package/src/stories/views/components/teaser/content_nav/teaser_content_nav.stories.js +100 -33
- package/src/stories/views/components/teaser/fixtures/teaser_alternative.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_av.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_cluster.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_event.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_indextext.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_podcast.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_stage.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_av.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_ticker_alternative.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_ticker_standard.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_ticker_timeline.json +1 -1
- package/src/stories/views/components/teaser/podcast/podcast.stories.js +37 -25
- package/src/stories/views/components/teaser/teaser_alternativ.stories.js +124 -36
- package/src/stories/views/components/teaser/teaser_alternativ_av.stories.js +187 -36
- package/src/stories/views/components/teaser/teaser_indextext.stories.js +87 -18
- package/src/stories/views/components/teaser/teaser_poster.stories.js +87 -12
- package/src/stories/views/components/teaser/teaser_stage.stories.js +69 -12
- package/src/stories/views/components/teaser/teaser_standard.stories.js +182 -48
- package/src/stories/views/components/teaser/teaser_standard_av.stories.js +108 -31
- package/src/stories/views/components/teaser/teaser_standard_event.stories.js +122 -51
- package/src/stories/views/components/teaser/ticker/teaser_ticker_alternativ.stories.js +55 -11
- package/src/stories/views/components/teaser/ticker/teaser_ticker_standard.stories.js +77 -22
- package/src/stories/views/components/teaser/ticker/teaser_ticker_timeline.stories.js +35 -13
- package/tailwind.config.js +2 -1
- package/src/assets/fixtures/navigation/breadcrumb/breadcrumb_2_level.json +0 -15
- package/src/assets/fixtures/navigation/breadcrumb/breadcrumb_3_level.json +0 -19
- package/src/assets/fixtures/navigation/breadcrumb/breadcrumb_4_level.json +0 -23
- package/src/assets/fixtures/navigation/breadcrumb/breadcrumb_5_level.json +0 -27
- package/src/assets/fixtures/page/metadatabox_comments.json +0 -23
- package/src/assets/fixtures/page/metadatabox_more_authors.json +0 -43
- package/src/assets/fixtures/page/metadatabox_more_authors_comments.json +0 -47
- package/src/assets/fixtures/page/metadatabox_one_author.json +0 -34
- package/src/assets/fixtures/page/metadatabox_one_author_comments.json +0 -38
- package/src/assets/fixtures/page/metadatabox_one_author_without_picture.json +0 -24
- package/src/assets/fixtures/site_header/site_header_default.json +0 -26
- package/src/assets/fixtures/site_header/site_header_default_no_sticky.json +0 -9
- package/src/assets/fixtures/site_header/site_header_mit_submenu.json +0 -17
- package/src/assets/fixtures/site_header/site_header_mit_submenu_as_flyout.json +0 -17
- package/src/assets/fixtures/site_header/site_header_mit_submenu_as_flyout_no_sticky.json +0 -9
- package/src/assets/fixtures/site_header/site_header_mit_submenu_no_sticky.json +0 -9
- package/src/assets/fixtures/site_header/site_header_mit_top_topics.json +0 -20
- package/src/assets/fixtures/site_header/site_header_mit_top_topics_no_sticky.json +0 -9
- package/src/assets/fixtures/site_header/site_header_mit_warnung.json +0 -17
- package/src/assets/fixtures/site_header/site_header_mit_warnung_no_sticky.json +0 -9
- package/src/assets/fixtures/teaser/cluster_teaser_100.json +0 -21
- package/src/assets/fixtures/teaser/cluster_teaser_100_genre.json +0 -29
- package/src/assets/fixtures/teaser/cluster_teaser_100_image.json +0 -50
- package/src/assets/fixtures/teaser/cluster_teaser_33.json +0 -21
- package/src/assets/fixtures/teaser/cluster_teaser_33_genre.json +0 -42
- package/src/assets/fixtures/teaser/cluster_teaser_33_image.json +0 -69
- package/src/assets/fixtures/teaser/cluster_teaser_33_long_title.json +0 -29
- package/src/assets/fixtures/teaser/cluster_teaser_50.json +0 -21
- package/src/assets/fixtures/teaser/cluster_teaser_50_genre.json +0 -42
- package/src/assets/fixtures/teaser/cluster_teaser_50_image.json +0 -69
- package/src/assets/fixtures/teaser/cluster_teaser_Podcast_Channel.json +0 -67
- package/src/assets/fixtures/teaser/cluster_teaser_extern_100.json +0 -29
- package/src/assets/fixtures/teaser/cluster_teaser_extern_33.json +0 -29
- package/src/assets/fixtures/teaser/cluster_teaser_extern_50.json +0 -29
- package/src/assets/fixtures/teaser/cluster_teaser_ordered_100.json +0 -29
- package/src/assets/fixtures/teaser/cluster_teaser_ordered_33.json +0 -29
- package/src/assets/fixtures/teaser/cluster_teaser_ordered_50.json +0 -29
- package/src/assets/fixtures/teaser/stage_teaser.json +0 -4
- package/src/assets/fixtures/teaser/stage_teaser_eventtag.json +0 -48
- package/src/assets/fixtures/teaser/stage_teaser_program.json +0 -55
- package/src/assets/fixtures/teaser/stage_teaser_wide.json +0 -23
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_audio.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_download.json +0 -46
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_featured_content.json +0 -38
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_link.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_live.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_single_event.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_two_events.json +0 -43
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_video.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_50_serif.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_50_serif_audio.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_50_serif_download.json +0 -46
- package/src/assets/fixtures/teaser/teaser_alternative_50_serif_link.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_50_serif_live.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_50_serif_video.json +0 -39
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif.json +0 -27
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_audio.json +0 -27
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_comments.json +0 -27
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_label.json +0 -38
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_link.json +0 -14
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_live.json +0 -14
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_program.json +0 -14
- package/src/assets/fixtures/teaser/teaser_alternative_hero_serif_video.json +0 -14
- package/src/assets/fixtures/teaser/teaser_alternative_without_teaserimage_50_serif.json +0 -26
- package/src/assets/fixtures/teaser/teaser_comments_without_teaserinfo.json +0 -14
- package/src/assets/fixtures/teaser/teaser_content_nav_dropdown_100.json +0 -10
- package/src/assets/fixtures/teaser/teaser_content_nav_dropdown_autosuggest_100.json +0 -14
- package/src/assets/fixtures/teaser/teaser_content_nav_dropdown_subgroups.json +0 -215
- package/src/assets/fixtures/teaser/teaser_content_nav_flow_100.json +0 -14
- package/src/assets/fixtures/teaser/teaser_content_nav_flow_autosuggest.json +0 -18
- package/src/assets/fixtures/teaser/teaser_content_nav_list_100.json +0 -14
- package/src/assets/fixtures/teaser/teaser_content_nav_list_autosuggest.json +0 -18
- package/src/assets/fixtures/teaser/teaser_content_nav_mixed_100.json +0 -187
- package/src/assets/fixtures/teaser/teaser_content_nav_mixed_autosuggest.json +0 -14
- package/src/assets/fixtures/teaser/teaser_indextext_100_accented.json +0 -26
- package/src/assets/fixtures/teaser/teaser_indextext_100_boxed.json +0 -26
- package/src/assets/fixtures/teaser/teaser_indextext_100_highlighted.json +0 -26
- package/src/assets/fixtures/teaser/teaser_indextext_50_accented.json +0 -26
- package/src/assets/fixtures/teaser/teaser_poster_lg.json +0 -39
- package/src/assets/fixtures/teaser/teaser_poster_md.json +0 -39
- package/src/assets/fixtures/teaser/teaser_poster_md_label.json +0 -60
- package/src/assets/fixtures/teaser/teaser_poster_md_label_byline.json +0 -50
- package/src/assets/fixtures/teaser/teaser_standard_100_serif.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_100_serif_download.json +0 -21
- package/src/assets/fixtures/teaser/teaser_standard_100_serif_link.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_100_serif_program.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_100_serif_single_event.json +0 -22
- package/src/assets/fixtures/teaser/teaser_standard_100_serif_two_events.json +0 -26
- package/src/assets/fixtures/teaser/teaser_standard_25_serif.json +0 -35
- package/src/assets/fixtures/teaser/teaser_standard_25_serif_audio.json +0 -35
- package/src/assets/fixtures/teaser/teaser_standard_25_serif_audio_livestream.json +0 -35
- package/src/assets/fixtures/teaser/teaser_standard_25_serif_link.json +0 -31
- package/src/assets/fixtures/teaser/teaser_standard_25_serif_live.json +0 -35
- package/src/assets/fixtures/teaser/teaser_standard_25_serif_podcast.json +0 -35
- package/src/assets/fixtures/teaser/teaser_standard_25_serif_video.json +0 -35
- package/src/assets/fixtures/teaser/teaser_standard_33_long_geotag.json +0 -22
- package/src/assets/fixtures/teaser/teaser_standard_33_serif.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_33_serif_link.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_33_serif_multiple_events.json +0 -36
- package/src/assets/fixtures/teaser/teaser_standard_33_serif_single_event.json +0 -18
- package/src/assets/fixtures/teaser/teaser_standard_33_serif_single_event_status.json +0 -22
- package/src/assets/fixtures/teaser/teaser_standard_33_serif_two_events.json +0 -22
- package/src/assets/fixtures/teaser/teaser_standard_50_serif.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_audio.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_audio_livestream.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_download.json +0 -21
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_featured_content.json +0 -17
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_link.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_link_two_click.json +0 -22
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_live.json +0 -22
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_podcast.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_single_event.json +0 -17
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_video.json +0 -14
- package/src/assets/fixtures/teaser/teaser_standard_66_serif_single_event.json +0 -25
- package/src/assets/fixtures/teaser/teaser_standard_hero_serif.json +0 -4
- package/src/assets/fixtures/teaser/teaser_standard_hero_serif_comments.json +0 -4
- package/src/assets/fixtures/teaser/teaser_standard_hero_serif_label.json +0 -17
- package/src/assets/fixtures/teaser/teaser_standard_hero_serif_link.json +0 -4
- package/src/assets/fixtures/teaser/teaser_standard_without_teaserimage_25_serif.json +0 -22
- package/src/assets/fixtures/teaser/teaser_standard_without_teaserimage_50_serif.json +0 -14
- package/src/assets/fixtures/teaser/ticker_teaser_alternativ_100.json +0 -54
- package/src/assets/fixtures/teaser/ticker_teaser_alternativ_hero.json +0 -42
- package/src/assets/fixtures/teaser/ticker_teaser_alternativ_hero_audio.json +0 -42
- package/src/assets/fixtures/teaser/ticker_teaser_standard_100.json +0 -37
- package/src/assets/fixtures/teaser/ticker_teaser_standard_25.json +0 -50
- package/src/assets/fixtures/teaser/ticker_teaser_standard_33.json +0 -37
- package/src/assets/fixtures/teaser/ticker_teaser_standard_50.json +0 -37
- package/src/assets/fixtures/teaser/ticker_teaser_standard_hero.json +0 -25
- package/src/assets/fixtures/teaser/ticker_teaser_standard_hero_audio.json +0 -25
- package/src/stories/views/components/navigation/breadcrumb/fixtures/breadcrumb_2_level.json +0 -1
- package/src/stories/views/components/navigation/breadcrumb/fixtures/breadcrumb_3_level.json +0 -1
- package/src/stories/views/components/navigation/breadcrumb/fixtures/breadcrumb_4_level.json +0 -1
- package/src/stories/views/components/navigation/breadcrumb/fixtures/breadcrumb_5_level.json +0 -1
- package/src/stories/views/components/page/fixtures/metadatabox_comments.json +0 -1
- package/src/stories/views/components/page/fixtures/metadatabox_more_authors.json +0 -1
- package/src/stories/views/components/page/fixtures/metadatabox_more_authors_comments.json +0 -1
- package/src/stories/views/components/page/fixtures/metadatabox_one_author.json +0 -1
- package/src/stories/views/components/page/fixtures/metadatabox_one_author_comments.json +0 -1
- package/src/stories/views/components/page/fixtures/metadatabox_one_author_without_picture.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_default.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_default_no_sticky.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_submenu.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_submenu_asFlyout_no_sticky.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_submenu_as_flyout.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_submenu_as_flyout_no_sticky.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_submenu_no_sticky.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_top_topics.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_top_topics_no_sticky.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_warnung.json +0 -1
- package/src/stories/views/components/site_header/fixtures/site_header_mit_warnung_no_sticky.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_100_genre.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_100_image.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_33.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_33_genre.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_33_image.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_33_long_title.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_50.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_50_genre.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_50_image.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_Podcast_Channel.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_extern_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_extern_33.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_extern_50.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_ordered_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_ordered_33.json +0 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_ordered_50.json +0 -1
- package/src/stories/views/components/teaser/fixtures/stage_teaser.json +0 -1
- package/src/stories/views/components/teaser/fixtures/stage_teaser_eventtag.json +0 -1
- package/src/stories/views/components/teaser/fixtures/stage_teaser_program.json +0 -1
- package/src/stories/views/components/teaser/fixtures/stage_teaser_wide.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_audio.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_download.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_featured_content.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_live.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_single_event.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_two_events.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_video.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_audio.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_download.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_live.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_video.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_audio.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_comments.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_label.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_live.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_program.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_video.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_without_teaserimage_50_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_comments_without_teaserinfo.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_dropdown_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_dropdown_autosuggest_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_dropdown_subgroups.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_flow_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_flow_autosuggest.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_list_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_list_autosuggest.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_mixed_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_content_nav_mixed_autosuggest.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_indextext_100_accented.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_indextext_100_boxed.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_indextext_100_highlighted.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_indextext_50_accented.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster_lg.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster_md.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster_md_label.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster_md_label_byline.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_download.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_program.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_single_event.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_two_events.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_audio.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_audio_livestream.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_live.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_podcast.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_video.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_long_geotag.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_multiple_events.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_single_event.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_single_event_status.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_two_events.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_audio.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_audio_livestream.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_download.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_featured_content.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_link_two_click.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_live.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_podcast.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_single_event.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_video.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_66_serif_single_event.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_comments.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_label.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_link.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_without_teaserimage_25_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_without_teaserimage_50_serif.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_alternativ_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_alternativ_hero.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_alternativ_hero_audio.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_100.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_25.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_33.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_50.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_hero.json +0 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_hero_audio.json +0 -1
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'
|
|
2
|
+
import { getSnapshotsTemplate } from '/src/assets/js/utils.js'
|
|
2
3
|
import navigation from './header.hbs'
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
import fixtures from './fixtures/site_header.json'
|
|
5
|
+
|
|
6
|
+
const handlebars = require('hrHandlebars')
|
|
7
|
+
const hbsTemplates = []
|
|
8
|
+
hbsTemplates['default'] = handlebars.compile(`
|
|
9
|
+
{{> components/site_header/header}}
|
|
10
|
+
`)
|
|
11
|
+
|
|
12
|
+
const Template = (args) => {
|
|
13
|
+
return hbsTemplates['default']({ ...args })
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const snapshotTemplate = (args) => {
|
|
17
|
+
return getSnapshotsTemplate({ hbsTemplates, args })
|
|
15
18
|
}
|
|
19
|
+
|
|
16
20
|
const TemplateHr3 = (args, { globals: { theme } }) => {
|
|
17
21
|
// You can either use a function to create DOM elements or use a plain html string!
|
|
18
22
|
// return `<div>${label}</div>`;
|
|
@@ -27,6 +31,7 @@ export default {
|
|
|
27
31
|
parameters: {
|
|
28
32
|
chromatic: {
|
|
29
33
|
viewports: [360, 768, 1024],
|
|
34
|
+
disableSnapshot: true
|
|
30
35
|
},
|
|
31
36
|
|
|
32
37
|
layout: 'fullscreen',
|
|
@@ -44,30 +49,40 @@ export default {
|
|
|
44
49
|
export const Default = {
|
|
45
50
|
render: Template.bind({}),
|
|
46
51
|
name: 'Default',
|
|
47
|
-
args:
|
|
52
|
+
args: fixtures.default.args,
|
|
48
53
|
parameters: {},
|
|
49
54
|
}
|
|
50
55
|
|
|
51
56
|
export const MitWarnung = {
|
|
52
57
|
render: Template.bind({}),
|
|
53
58
|
name: 'Mit Warnung',
|
|
54
|
-
args:
|
|
59
|
+
args: fixtures.with_warnings.args,
|
|
55
60
|
}
|
|
56
61
|
|
|
57
62
|
export const MitTopTopics = {
|
|
58
63
|
render: Template.bind({}),
|
|
59
64
|
name: 'Mit Top Topics',
|
|
60
|
-
args:
|
|
65
|
+
args: fixtures.with_top_topics.args,
|
|
61
66
|
}
|
|
62
67
|
|
|
63
68
|
export const MitSubnavigation = {
|
|
64
69
|
render: Template.bind({}),
|
|
65
70
|
name: 'Mit Subnavigation',
|
|
66
|
-
args:
|
|
71
|
+
args: fixtures.with_submenu.args,
|
|
67
72
|
}
|
|
68
73
|
|
|
69
74
|
export const MitSubnavigationAlsFlyout = {
|
|
70
75
|
render: TemplateHr3.bind({}),
|
|
71
76
|
name: 'Mit Subnavigation als Flyout',
|
|
72
|
-
args:
|
|
77
|
+
args: fixtures.with_submenu_as_flyout_not_sticky.args,
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export const Snapshot = {
|
|
81
|
+
render: snapshotTemplate.bind({}),
|
|
82
|
+
name: 'Snapshot',
|
|
83
|
+
|
|
84
|
+
args: fixtures,
|
|
85
|
+
parameters: {
|
|
86
|
+
chromatic: { disableSnapshot: false },
|
|
87
|
+
}
|
|
73
88
|
}
|
|
@@ -1,28 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import clusterTeaserImage33 from '../fixtures/cluster_teaser_33_image.json'
|
|
17
|
-
import PodcastChannelClusterTeaser from '../fixtures/cluster_teaser_Podcast_Channel.json'
|
|
18
|
-
import clusterTeaserOrdered33LongTitle from '../fixtures/cluster_teaser_33_long_title.json'
|
|
19
|
-
|
|
20
|
-
const Template = (args, { globals: { customConditionalToolbar } }) => {
|
|
21
|
-
// You can either use a function to create DOM elements or use a plain html string!
|
|
22
|
-
// return `<div>${label}</div>`;
|
|
23
|
-
let brand =
|
|
24
|
-
undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
|
|
25
|
-
return cluster({ brand, ...args })
|
|
1
|
+
import { getSnapshotsTemplate } from '/src/assets/js/utils.js'
|
|
2
|
+
import fixtures from 'components/teaser/fixtures/teaser_cluster.json'
|
|
3
|
+
|
|
4
|
+
const handlebars = require('hrHandlebars')
|
|
5
|
+
const hbsTemplates = []
|
|
6
|
+
hbsTemplates['default'] = handlebars.compile(`
|
|
7
|
+
{{> components/teaser/cluster/teaser_cluster }}
|
|
8
|
+
`)
|
|
9
|
+
|
|
10
|
+
const Template = (args) => {
|
|
11
|
+
return hbsTemplates['default']({ ...args })
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const snapshotTemplate = (args) => {
|
|
15
|
+
return getSnapshotsTemplate({ hbsTemplates, args })
|
|
26
16
|
}
|
|
27
17
|
|
|
28
18
|
export default {
|
|
@@ -32,6 +22,7 @@ export default {
|
|
|
32
22
|
layout: '',
|
|
33
23
|
chromatic: {
|
|
34
24
|
diffThreshold: 0.3,
|
|
25
|
+
disableSnapshot: true
|
|
35
26
|
},
|
|
36
27
|
},
|
|
37
28
|
|
|
@@ -39,9 +30,9 @@ export default {
|
|
|
39
30
|
|
|
40
31
|
decorators: [
|
|
41
32
|
(Story) => {
|
|
42
|
-
return `<div class="grid grid-page"
|
|
33
|
+
return `<div class="grid grid-page">
|
|
43
34
|
${Story()}
|
|
44
|
-
</div
|
|
35
|
+
</div>`
|
|
45
36
|
},
|
|
46
37
|
],
|
|
47
38
|
}
|
|
@@ -49,101 +40,230 @@ export default {
|
|
|
49
40
|
export const Kurzmeldungen100 = {
|
|
50
41
|
render: Template.bind({}),
|
|
51
42
|
name: 'Kurzmeldungen 100',
|
|
52
|
-
|
|
43
|
+
decorators: [
|
|
44
|
+
(Story) => {
|
|
45
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
46
|
+
${Story()}
|
|
47
|
+
</div>`
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
args: fixtures.group_100["100"].args,
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
export const Kurzmeldungen50 = {
|
|
56
54
|
render: Template.bind({}),
|
|
57
55
|
name: 'Kurzmeldungen 50',
|
|
58
|
-
|
|
56
|
+
decorators: [
|
|
57
|
+
(Story) => {
|
|
58
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
59
|
+
${Story()}
|
|
60
|
+
</div>`
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
args: fixtures.group_50["50"].args,
|
|
59
64
|
}
|
|
60
65
|
|
|
61
66
|
export const Kurzmeldungen33 = {
|
|
62
67
|
render: Template.bind({}),
|
|
63
68
|
name: 'Kurzmeldungen 33',
|
|
64
|
-
|
|
69
|
+
decorators: [
|
|
70
|
+
(Story) => {
|
|
71
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
72
|
+
${Story()}
|
|
73
|
+
</div>`
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
args: fixtures.group_33["33"].args,
|
|
65
77
|
}
|
|
66
78
|
|
|
67
79
|
export const SchlagzeilenMitGenrebild100 = {
|
|
68
80
|
render: Template.bind({}),
|
|
69
81
|
name: 'Schlagzeilen mit Genrebild 100',
|
|
70
|
-
|
|
82
|
+
decorators: [
|
|
83
|
+
(Story) => {
|
|
84
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
85
|
+
${Story()}
|
|
86
|
+
</div>`
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
args: fixtures.group_100["100"].args,
|
|
71
90
|
}
|
|
72
91
|
|
|
73
92
|
export const SchlagzeilenMitGenrebild50 = {
|
|
74
93
|
render: Template.bind({}),
|
|
75
94
|
name: 'Schlagzeilen mit Genrebild 50',
|
|
76
|
-
|
|
95
|
+
decorators: [
|
|
96
|
+
(Story) => {
|
|
97
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
98
|
+
${Story()}
|
|
99
|
+
</div>`
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
args: fixtures.group_50["50_with_genre_image"].args,
|
|
77
103
|
}
|
|
78
104
|
|
|
79
105
|
export const SchlagzeilenMitGenrebild33 = {
|
|
80
106
|
render: Template.bind({}),
|
|
81
107
|
name: 'Schlagzeilen mit Genrebild 33',
|
|
82
|
-
|
|
108
|
+
decorators: [
|
|
109
|
+
(Story) => {
|
|
110
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
111
|
+
${Story()}
|
|
112
|
+
</div>`
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
args: fixtures.group_33["33_with_genre_image"].args,
|
|
83
116
|
}
|
|
84
117
|
|
|
85
118
|
export const SchlagzeilenMitTeaserbild100 = {
|
|
86
119
|
render: Template.bind({}),
|
|
87
120
|
name: 'Schlagzeilen mit Teaserbild 100',
|
|
88
|
-
|
|
121
|
+
decorators: [
|
|
122
|
+
(Story) => {
|
|
123
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
124
|
+
${Story()}
|
|
125
|
+
</div>`
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
args: fixtures.group_100["100_with_image"].args,
|
|
89
129
|
}
|
|
90
130
|
|
|
91
131
|
export const SchlagzeilenMitTeaserbild50 = {
|
|
92
132
|
render: Template.bind({}),
|
|
93
133
|
name: 'Schlagzeilen mit Teaserbild 50',
|
|
94
|
-
|
|
134
|
+
decorators: [
|
|
135
|
+
(Story) => {
|
|
136
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
137
|
+
${Story()}
|
|
138
|
+
</div>`
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
args: fixtures.group_50["50_with_image"].args,
|
|
95
142
|
}
|
|
96
143
|
|
|
97
144
|
export const SchlagzeilenMitTeaserbild33 = {
|
|
98
145
|
render: Template.bind({}),
|
|
99
146
|
name: 'Schlagzeilen mit Teaserbild 33',
|
|
100
|
-
|
|
147
|
+
decorators: [
|
|
148
|
+
(Story) => {
|
|
149
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
150
|
+
${Story()}
|
|
151
|
+
</div>`
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
args: fixtures.group_33["33_with_image"].args,
|
|
101
155
|
}
|
|
102
156
|
|
|
103
157
|
export const MeistgeklicktWanda100 = {
|
|
104
158
|
render: Template.bind({}),
|
|
105
159
|
name: 'Meistgeklickt/Wanda 100',
|
|
106
|
-
|
|
160
|
+
decorators: [
|
|
161
|
+
(Story) => {
|
|
162
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
163
|
+
${Story()}
|
|
164
|
+
</div>`
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
args: fixtures.group_100["100_ordered"].args,
|
|
107
168
|
}
|
|
108
169
|
|
|
109
170
|
export const MeistgeklicktWanda50 = {
|
|
110
171
|
render: Template.bind({}),
|
|
111
172
|
name: 'Meistgeklickt/Wanda 50',
|
|
112
|
-
|
|
173
|
+
decorators: [
|
|
174
|
+
(Story) => {
|
|
175
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
176
|
+
${Story()}
|
|
177
|
+
</div>`
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
args: fixtures.group_50["50_ordered"].args,
|
|
113
181
|
}
|
|
114
182
|
|
|
115
183
|
export const MeistgeklicktWanda33 = {
|
|
116
184
|
render: Template.bind({}),
|
|
117
185
|
name: 'Meistgeklickt/Wanda 33',
|
|
118
|
-
|
|
186
|
+
decorators: [
|
|
187
|
+
(Story) => {
|
|
188
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
189
|
+
${Story()}
|
|
190
|
+
</div>`
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
args: fixtures.group_33["33_ordered"].args,
|
|
119
194
|
}
|
|
120
195
|
|
|
121
196
|
export const TagesschauSportschau100 = {
|
|
122
197
|
render: Template.bind({}),
|
|
123
198
|
name: 'tagesschau/sportschau 100',
|
|
124
|
-
|
|
199
|
+
decorators: [
|
|
200
|
+
(Story) => {
|
|
201
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
202
|
+
${Story()}
|
|
203
|
+
</div>`
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
args: fixtures.group_100["100_external"].args,
|
|
125
207
|
}
|
|
126
208
|
|
|
127
209
|
export const TagesschauSportschau50 = {
|
|
128
210
|
render: Template.bind({}),
|
|
129
211
|
name: 'tagesschau/sportschau 50',
|
|
130
|
-
|
|
212
|
+
decorators: [
|
|
213
|
+
(Story) => {
|
|
214
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
215
|
+
${Story()}
|
|
216
|
+
</div>`
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
args: fixtures.group_50["50_external"].args,
|
|
131
220
|
}
|
|
132
221
|
|
|
133
222
|
export const TagesschauSportschau33 = {
|
|
134
223
|
render: Template.bind({}),
|
|
135
224
|
name: 'tagesschau/sportschau 33',
|
|
136
|
-
|
|
225
|
+
decorators: [
|
|
226
|
+
(Story) => {
|
|
227
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
228
|
+
${Story()}
|
|
229
|
+
</div>`
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
args: fixtures.group_33["33_external"].args,
|
|
137
233
|
}
|
|
138
234
|
|
|
139
235
|
export const PodcastEpisodenClusterTeaser = {
|
|
140
236
|
render: Template.bind({}),
|
|
141
237
|
name: 'PodcastEpisoden ClusterTeaser',
|
|
142
|
-
|
|
238
|
+
decorators: [
|
|
239
|
+
(Story) => {
|
|
240
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
241
|
+
${Story()}
|
|
242
|
+
</div>`
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
args: fixtures.group_100["100_podcast_channel"].args,
|
|
143
246
|
}
|
|
144
247
|
|
|
145
248
|
export const MeistgeklicktBoxMitLangemTitel = {
|
|
146
249
|
render: Template.bind({}),
|
|
147
250
|
name: 'Meistgeklickt-Box mit langem Titel',
|
|
148
|
-
|
|
251
|
+
decorators: [
|
|
252
|
+
(Story) => {
|
|
253
|
+
return `<div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
|
|
254
|
+
${Story()}
|
|
255
|
+
</div>`
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
args: fixtures.group_33["33_ordered_with_long_title"].args,
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export const Snapshot = {
|
|
262
|
+
render: snapshotTemplate.bind({}),
|
|
263
|
+
name: 'Snapshot',
|
|
264
|
+
|
|
265
|
+
args: fixtures,
|
|
266
|
+
parameters: {
|
|
267
|
+
chromatic: { disableSnapshot: false },
|
|
268
|
+
}
|
|
149
269
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"config":{"renderSnapshotsWrapper":false,"path":"args.logicItem.includeModel","template":"default"},"byline_with_teaser_info":{"args":{"isSsi":true,"logicItem":{"includePath":"components/teaser/teaser_standard","includeModel":{"byline":"Byline","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"Überglücklich, aber ohne Mama","headingFontVariant":"serif","extendedTitle":"","teaserType":"standard","teaserSize":"hero","realTeaserSize":"hero","isMobile1to1":false,"teaserDate":{"htmlDateTime":"2022-04-17T19:30+0200","htmlDate":"20.02.1983","date":"17.04.22","dateSeparatorTime":"17.04.22, 19:30"},"hasByline":true,"teaserInfo":{"showTeaserInfo":true,"showTeaserInfoSection":true,"showTeaserInfoChannel":false,"showTeaserInfoAll":false,"showTeaserInfoDate":false,"showTeaserInfoDateTime":true,"showTeaserInfoProgramRef":false},"teaserImage":{"alttext":"Lorem ipsum","copyrightWithLinks":"Vorname Nachname","imageJson":"Beispiel JSON","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/rueckkehr-nach-abschiebung-102_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/rueckkehr-nach-abschiebung-102_v-16to9__small.jpg 320w, images/rueckkehr-nach-abschiebung-102_v-16to9__medium.jpg 480w, images/rueckkehr-nach-abschiebung-102_v-16to9__medium__extended.jpg 640w, images/rueckkehr-nach-abschiebung-102_v-16to9.jpg 960w, images/rueckkehr-nach-abschiebung-102_v-16to9__retina.jpg 1920w"}]}},"displayTeaserBodyAsImageOverlay":false,"hasMediaButtons":false,"dontLazyload":true,"isStandardTeaser":true,"isHeroTeaser":true,"isMediaTeaser":false,"isGuide":false,"isProgram":false,"isEvent":false,"isTicker":false,"isAudio":false,"isAudioOnDemand":false,"isVideo":false,"isVideoOnDemand":false,"isPodcast":false,"isPodcastEpisode":false,"isExtOrBrandLink":false,"isAuthor":false,"copyright":"Copyright Text","audioAuthor":"Audio Author","hasStatus":false,"hasTeaserItem":true,"moreThenOneEvent":false,"moreThenTwoEvents":false,"firstInstant":{"startDate":{"monthNameShort":"APR","weekdayNameShort":"Do","day":"9"}},"lastInstant":{"startDate":{"monthNameShort":"APR","weekdayNameShort":"Fr","day":"10"}},"allowAVConsumption":false,"displayEpgInfos":false,"aspectRatio":"ar--teaserTop","hideGeotag":false,"hideEditableByline":true,"doTracking":true,"trackingForArdMediatheksLink":false,"showMediatheksLink":false,"showAirdate":false,"showProfileInfoAsByline":false,"obsolet_brandOfTeaser":"hessenschau","documentSection":"Gesellschaft","headlineTag":"h1","icon":"ortsmarke","imageVariant":"topteaser","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.","hideBylineAndShorttext":false,"sophoraId":"rueckkehr-nach-abschiebung-wolfhagen--100","profiles":"Von Alf Haubitz und Alice Merton","teaserLead":{"avDocument":"","image":""},"geotag":[{"title":"Wolfhagen"}],"link":{"url":"/teaser1","webviewUrl":"/teaser1#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Artikel","readMore":"mehr","readMoreLong":"read More Long"}}}}}},"byline_with_comments_and_teaser_info":{"args":{"isSsi":true,"logicItem":{"includePath":"components/teaser/teaser_standard","includeModel":{"byline":"Byline","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"Überglücklich, aber ohne Mama","headingFontVariant":"serif","extendedTitle":"","teaserType":"standard","teaserSize":"hero","realTeaserSize":"hero","isMobile1to1":false,"teaserDate":{"htmlDateTime":"2022-04-17T19:30+0200","htmlDate":"20.02.1983","date":"17.04.22","dateSeparatorTime":"17.04.22, 19:30"},"hasByline":true,"teaserInfo":{"showTeaserInfo":true,"showTeaserInfoSection":true,"showTeaserInfoChannel":false,"showTeaserInfoAll":false,"showTeaserInfoDate":false,"showTeaserInfoDateTime":true,"showTeaserInfoProgramRef":false},"teaserImage":{"alttext":"Lorem ipsum","copyrightWithLinks":"Vorname Nachname","imageJson":"Beispiel JSON","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/rueckkehr-nach-abschiebung-102_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/rueckkehr-nach-abschiebung-102_v-16to9__small.jpg 320w, images/rueckkehr-nach-abschiebung-102_v-16to9__medium.jpg 480w, images/rueckkehr-nach-abschiebung-102_v-16to9__medium__extended.jpg 640w, images/rueckkehr-nach-abschiebung-102_v-16to9.jpg 960w, images/rueckkehr-nach-abschiebung-102_v-16to9__retina.jpg 1920w"}]}},"commentsSsi":{"commentNumber":"1","hasOneComment":true,"hasComments":true,"hasManyComments":false,"commentLink":{"link":{"url":"/teaser1-comments","webviewUrl":"/teaser1-comments#webview","isTargetBlank":false,"readMoreText":{"readMoreScreenreader":"Zu den Kommentaren des Artikels"}}}},"documentSection":"Gesellschaft","displayTeaserBodyAsImageOverlay":false,"hasMediaButtons":false,"dontLazyload":true,"isStandardTeaser":true,"isHeroTeaser":true,"isMediaTeaser":false,"isGuide":false,"isProgram":false,"isEvent":false,"isTicker":false,"isAudio":false,"isAudioOnDemand":false,"isVideo":false,"isVideoOnDemand":false,"isPodcastEpisode":false,"isExtOrBrandLink":false,"isAuthor":false,"copyright":"Copyright Text","audioAuthor":"Audio Author","hasStatus":false,"hasTeaserItem":true,"allowAVConsumption":false,"displayEpgInfos":false,"aspectRatio":"ar--teaserTop","hideGeotag":false,"hideEditableByline":true,"doTracking":true,"trackingForArdMediatheksLink":false,"showMediatheksLink":false,"showAirdate":false,"showProfileInfoAsByline":false,"obsolet_brandOfTeaser":"hessenschau","headlineTag":"h1","icon":"ortsmarke","imageVariant":"topteaser","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.","hideBylineAndShorttext":false,"sophoraId":"rueckkehr-nach-abschiebung-wolfhagen--100","profiles":"Von Alf Haubitz und Alice Merton","teaserLead":{"avDocument":"","image":""},"geotag":[{"title":"Wolfhagen"}],"link":{"url":"/teaser1","webviewUrl":"/teaser1#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Artikel","readMore":"mehr","readMoreLong":"read More Long"}}}}}},"byline_with_comments":{"args":{"isSsi":true,"logicItem":{"includePath":"components/teaser/teaser_standard","includeModel":{"byline":"Byline","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"Überglücklich, aber ohne Mama","headingFontVariant":"serif","extendedTitle":"","teaserType":"standard","teaserSize":"hero","realTeaserSize":"hero","isMobile1to1":false,"teaserDate":{"htmlDateTime":"2022-04-17T19:30+0200","htmlDate":"20.02.1983","date":"17.04.22","dateSeparatorTime":"17.04.22, 19:30"},"hasByline":true,"teaserInfo":{"showTeaserInfo":false,"showTeaserInfoSection":true,"showTeaserInfoChannel":false,"showTeaserInfoAll":false,"showTeaserInfoDate":false,"showTeaserInfoDateTime":true,"showTeaserInfoProgramRef":false},"teaserImage":{"alttext":"Lorem ipsum","copyrightWithLinks":"Vorname Nachname","imageJson":"Beispiel JSON","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/rueckkehr-nach-abschiebung-102_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/rueckkehr-nach-abschiebung-102_v-16to9__small.jpg 320w, images/rueckkehr-nach-abschiebung-102_v-16to9__medium.jpg 480w, images/rueckkehr-nach-abschiebung-102_v-16to9__medium__extended.jpg 640w, images/rueckkehr-nach-abschiebung-102_v-16to9.jpg 960w, images/rueckkehr-nach-abschiebung-102_v-16to9__retina.jpg 1920w"}]}},"commentsSsi":{"commentNumber":"1","hasOneComment":true,"hasComments":true,"hasManyComments":false,"commentLink":{"link":{"url":"/teaser1-comments","webviewUrl":"/teaser1-comments#webview","isTargetBlank":false,"readMoreText":{"readMoreScreenreader":"Zu den Kommentaren des Artikels"}}}},"documentSection":"Gesellschaft","displayTeaserBodyAsImageOverlay":false,"hasMediaButtons":false,"dontLazyload":true,"isStandardTeaser":true,"isHeroTeaser":true,"isMediaTeaser":false,"isGuide":false,"isProgram":false,"isEvent":false,"isTicker":false,"isAudio":false,"isAudioOnDemand":false,"isVideo":false,"isVideoOnDemand":false,"isPodcastEpisode":false,"isExtOrBrandLink":false,"isAuthor":false,"copyright":"Copyright Text","audioAuthor":"Audio Author","hasStatus":false,"hasTeaserItem":true,"allowAVConsumption":false,"displayEpgInfos":false,"aspectRatio":"ar--teaserTop","hideGeotag":false,"hideEditableByline":true,"doTracking":true,"trackingForArdMediatheksLink":false,"showMediatheksLink":false,"showAirdate":false,"showProfileInfoAsByline":false,"obsolet_brandOfTeaser":"hessenschau","headlineTag":"h1","icon":"ortsmarke","imageVariant":"topteaser","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.","hideBylineAndShorttext":false,"sophoraId":"rueckkehr-nach-abschiebung-wolfhagen--100","profiles":"","teaserLead":{"avDocument":"","image":""},"geotag":[{"title":"Wolfhagen"}],"link":{"url":"/teaser1","webviewUrl":"/teaser1#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Artikel","readMore":"mehr","readMoreLong":"read More Long"}}}}}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"config":{"template":"default"},"1_hero":{"config":{"css":"w-full"},"args":{"_topline":"Das ist eine wirklich sehr lange Topline","_title":"Das ist eine wirklich sehr lange Headline","_extendedTitle":"Das ist ein erweiterter Titel","_headlineTag":"h1","_fontVariant":"serif","_size":"hero","_teaserType":"standard"}},"2_50":{"config":{"css":"w-full"},"args":{"_topline":"Das ist eine wirklich sehr lange Topline","_title":"Das ist eine wirklich sehr lange Headline","_extendedTitle":"Das ist ein erweiterter Titel","_headlineTag":"h1","_fontVariant":"serif","_size":"50","_teaserType":"standard"}},"3_33":{"config":{"css":"w-full"},"args":{"_topline":"Das ist eine wirklich sehr lange Topline","_title":"Das ist eine wirklich sehr lange Headline","_extendedTitle":"Das ist ein erweiterter Titel","_headlineTag":"h1","_fontVariant":"serif","_size":"33","_teaserType":"standard"}},"4_25":{"config":{"css":"w-full"},"args":{"_topline":"Das ist eine wirklich sehr lange Topline","_title":"Das ist eine wirklich sehr lange Headline","_extendedTitle":"Das ist ein erweiterter Titel","_headlineTag":"h1","_fontVariant":"serif","_size":"25","_teaserType":"standard"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"config":{"template":"default"},"1_hero":{"config":{"css":"w-full"},"args":{"_text":"Woibbadinga i moan scho aa hallelujah sog i, luja, boarischer. Wiesn resch ja, wo samma denn etza, resch. Auffisteign a Hoiwe woaß, koa. Leonhardifahrt Weißwiaschd Baamwach hob liberalitas Bavariae ham hogg di hera.","_size":"hero","_font":"md:text-base md:leading-4 lg:leading-5"}},"2_50":{"config":{"css":"w-full"},"args":{"_text":"Woibbadinga i moan scho aa hallelujah sog i, luja, boarischer. Wiesn resch ja, wo samma denn etza, resch. Auffisteign a Hoiwe woaß, koa. Leonhardifahrt Weißwiaschd Baamwach hob liberalitas Bavariae ham hogg di hera.","_size":"50","_font":"md:text-base md:leading-4 lg:leading-5"}},"3_33":{"config":{"css":"w-full"},"args":{"_text":"Woibbadinga i moan scho aa hallelujah sog i, luja, boarischer. Wiesn resch ja, wo samma denn etza, resch. Auffisteign a Hoiwe woaß, koa. Leonhardifahrt Weißwiaschd Baamwach hob liberalitas Bavariae ham hogg di hera.","_size":"33","_font":"md:text-base md:leading-4 lg:leading-5"}},"4_25":{"config":{"css":"w-full"},"args":{"_text":"Woibbadinga i moan scho aa hallelujah sog i, luja, boarischer. Wiesn resch ja, wo samma denn etza, resch. Auffisteign a Hoiwe woaß, koa. Leonhardifahrt Weißwiaschd Baamwach hob liberalitas Bavariae ham hogg di hera.","_size":"25","_font":"md:text-base md:leading-4 lg:leading-5"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"config":{"template":"default"},"1_hero":{"config":{"css":"w-full"},"args":{"_text":"Dies ist der Titel eines 100%-Teasers","_size":"hero","_fontVariant":"serif","_teaserType":"standard"}},"2_normal":{"config":{"css":"w-full"},"args":{"_text":"Dies ist der Titel eines 66%-, 50%- oder 33%-Teasers","_size":"33","_fontVariant":"serif","_teaserType":"standard"}},"3_small":{"config":{"css":"w-full"},"args":{"_text":"Dies ist der Titel eines 25%-Teasers","_size":"25","_fontVariant":"serif","_teaserType":"standard"}}}
|
|
@@ -1,30 +1,54 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { getSnapshotsTemplate } from '/src/assets/js/utils.js'
|
|
2
|
+
import fixtures from 'components/teaser/components/fixtures/teaser_byline.json'
|
|
3
|
+
|
|
4
|
+
const handlebars = require('hrHandlebars')
|
|
5
|
+
const hbsTemplates = []
|
|
6
|
+
hbsTemplates['default'] = handlebars.compile(`
|
|
7
|
+
{{> components/teaser/components/teaser_byline}}
|
|
8
|
+
`)
|
|
5
9
|
|
|
6
10
|
const Template = ({ ...args }) => {
|
|
7
|
-
return
|
|
11
|
+
return hbsTemplates['default']({ ...args })
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const snapshotTemplate = (args) => {
|
|
15
|
+
return getSnapshotsTemplate({ hbsTemplates, args })
|
|
8
16
|
}
|
|
9
17
|
|
|
10
18
|
export default {
|
|
11
19
|
title: 'Komponenten/Teaser/Komponenten/Byline',
|
|
20
|
+
parameters: {
|
|
21
|
+
chromatic: {
|
|
22
|
+
diffThreshold: 0.3,
|
|
23
|
+
disableSnapshot: true
|
|
24
|
+
},
|
|
25
|
+
},
|
|
12
26
|
}
|
|
13
27
|
|
|
14
28
|
export const Default = {
|
|
15
29
|
render: Template.bind({}),
|
|
16
30
|
name: 'default',
|
|
17
|
-
args:
|
|
31
|
+
args: fixtures.byline_with_teaser_info.args.logicItem.includeModel,
|
|
18
32
|
}
|
|
19
33
|
|
|
20
34
|
export const WithComments = {
|
|
21
35
|
render: Template.bind({}),
|
|
22
36
|
name: 'with comments',
|
|
23
|
-
args:
|
|
37
|
+
args: fixtures.byline_with_comments_and_teaser_info.args.logicItem.includeModel,
|
|
24
38
|
}
|
|
25
39
|
|
|
26
40
|
export const CommentsOnly = {
|
|
27
41
|
render: Template.bind({}),
|
|
28
42
|
name: 'comments only',
|
|
29
|
-
args:
|
|
43
|
+
args: fixtures.byline_with_comments.args.logicItem.includeModel,
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export const Snapshot = {
|
|
47
|
+
render: snapshotTemplate.bind({}),
|
|
48
|
+
name: 'Snapshot',
|
|
49
|
+
|
|
50
|
+
args: fixtures,
|
|
51
|
+
parameters: {
|
|
52
|
+
chromatic: { disableSnapshot: false },
|
|
53
|
+
}
|
|
30
54
|
}
|
|
@@ -1,14 +1,31 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { getSnapshotsTemplate } from '/src/assets/js/utils.js'
|
|
2
|
+
import fixtures from 'components/teaser/components/fixtures/teaser_headings.json'
|
|
2
3
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const handlebars = require('hrHandlebars')
|
|
5
|
+
const hbsTemplates = []
|
|
6
|
+
hbsTemplates['default'] = handlebars.compile(`
|
|
7
|
+
{{> components/teaser/components/teaser_heading }}
|
|
8
|
+
`)
|
|
9
|
+
|
|
10
|
+
const Template = (args) => {
|
|
11
|
+
return hbsTemplates['default']({ ...args })
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const snapshotTemplate = (args) => {
|
|
15
|
+
return getSnapshotsTemplate({ hbsTemplates, args })
|
|
7
16
|
}
|
|
8
17
|
|
|
9
18
|
export default {
|
|
10
19
|
title: 'Komponenten/Teaser/Komponenten/Teaserheading',
|
|
11
20
|
|
|
21
|
+
parameters: {
|
|
22
|
+
|
|
23
|
+
chromatic: {
|
|
24
|
+
diffThreshold: 0.3,
|
|
25
|
+
disableSnapshot: true
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
|
|
12
29
|
argTypes: {
|
|
13
30
|
_topline: {
|
|
14
31
|
control: 'text',
|
|
@@ -80,15 +97,7 @@ export const SerifHero = {
|
|
|
80
97
|
},
|
|
81
98
|
},
|
|
82
99
|
|
|
83
|
-
args:
|
|
84
|
-
_topline: 'Das ist eine wirklich sehr lange Topline',
|
|
85
|
-
_title: 'Das ist eine wirklich sehr lange Headline',
|
|
86
|
-
_extendedTitle: 'Das ist ein erweiterter Titel',
|
|
87
|
-
_headlineTag: 'h1',
|
|
88
|
-
_fontVariant: 'serif',
|
|
89
|
-
_size: 'hero',
|
|
90
|
-
_teaserType: 'standard',
|
|
91
|
-
},
|
|
100
|
+
args: fixtures["1_hero"].args
|
|
92
101
|
}
|
|
93
102
|
|
|
94
103
|
export const Serif50 = {
|
|
@@ -103,14 +112,7 @@ export const Serif50 = {
|
|
|
103
112
|
},
|
|
104
113
|
},
|
|
105
114
|
|
|
106
|
-
args:
|
|
107
|
-
_topline: 'Das ist eine wirklich sehr lange Topline',
|
|
108
|
-
_title: 'Das ist eine wirklich sehr lange Headline',
|
|
109
|
-
_headlineTag: 'h1',
|
|
110
|
-
_fontVariant: 'serif',
|
|
111
|
-
_size: '50',
|
|
112
|
-
_teaserType: 'standard',
|
|
113
|
-
},
|
|
115
|
+
args: fixtures["2_50"].args
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
export const Serif33 = {
|
|
@@ -125,14 +127,7 @@ export const Serif33 = {
|
|
|
125
127
|
},
|
|
126
128
|
},
|
|
127
129
|
|
|
128
|
-
args:
|
|
129
|
-
_topline: 'Das ist eine wirklich sehr lange Topline',
|
|
130
|
-
_title: 'Das ist eine wirklich sehr lange Headline',
|
|
131
|
-
_headlineTag: 'h1',
|
|
132
|
-
_fontVariant: 'serif',
|
|
133
|
-
_size: '33',
|
|
134
|
-
_teaserType: 'standard',
|
|
135
|
-
},
|
|
130
|
+
args: fixtures["3_33"].args
|
|
136
131
|
}
|
|
137
132
|
|
|
138
133
|
export const Serif25 = {
|
|
@@ -147,12 +142,15 @@ export const Serif25 = {
|
|
|
147
142
|
},
|
|
148
143
|
},
|
|
149
144
|
|
|
150
|
-
args:
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
145
|
+
args: fixtures["4_25"].args
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export const Snapshot = {
|
|
149
|
+
render: snapshotTemplate.bind({}),
|
|
150
|
+
name: 'Snapshot',
|
|
151
|
+
|
|
152
|
+
args: fixtures,
|
|
153
|
+
parameters: {
|
|
154
|
+
chromatic: { disableSnapshot: false },
|
|
155
|
+
}
|
|
158
156
|
}
|