hr-design-system-handlebars 1.27.1 → 1.27.2

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 (77) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/assets/brand/_default/conf/locatags.json +2 -1
  3. package/dist/assets/index.css +70 -10
  4. package/dist/views/components/button/utilities/button_on_image_classes.hbs +6 -0
  5. package/dist/views/components/mediaplayer/media_player.hbs +2 -2
  6. package/dist/views/components/teaser/components/teaser_av_consumption.hbs +5 -5
  7. package/dist/views/components/teaser/components/teaser_lead.hbs +1 -1
  8. package/dist/views/components/teaser/components/teaser_title_classes.hbs +14 -0
  9. package/dist/views/components/teaser/ticker/teaser_ticker_alternativ.hbs +16 -0
  10. package/dist/views/components/teaser/ticker/teaser_ticker_body.hbs +26 -0
  11. package/dist/views/components/teaser/ticker/teaser_ticker_footer.hbs +12 -0
  12. package/dist/views/components/teaser/ticker/teaser_ticker_standard.hbs +16 -0
  13. package/dist/views/components/teaser/ticker/teaser_ticker_timeline.hbs +3 -3
  14. package/package.json +1 -1
  15. package/src/assets/brand/_default/conf/locatags.json +2 -1
  16. package/src/assets/brand/hessenschau/conf/locatags.merged.json +1 -0
  17. package/src/assets/brand/hr/conf/locatags.merged.json +1 -0
  18. package/src/assets/brand/hr-bigband/conf/locatags.merged.json +1 -0
  19. package/src/assets/brand/hr-fernsehen/conf/locatags.merged.json +1 -0
  20. package/src/assets/brand/hr-inforadio/conf/locatags.merged.json +1 -0
  21. package/src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +1 -0
  22. package/src/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +1 -0
  23. package/src/assets/brand/hr-werbung/conf/locatags.merged.json +1 -0
  24. package/src/assets/brand/hr1/conf/locatags.merged.json +1 -0
  25. package/src/assets/brand/hr2/conf/locatags.merged.json +1 -0
  26. package/src/assets/brand/hr3/conf/locatags.merged.json +1 -0
  27. package/src/assets/brand/hr4/conf/locatags.merged.json +1 -0
  28. package/src/assets/brand/you-fm/conf/locatags.merged.json +1 -0
  29. package/src/assets/fixtures/teaser/teaser_images.inc.json +19 -0
  30. package/src/assets/fixtures/teaser/teaser_ticker.inc.json +113 -1
  31. package/src/assets/fixtures/teaser/ticker_teaser_alternativ_100.json +54 -0
  32. package/src/assets/fixtures/teaser/ticker_teaser_alternativ_hero.json +42 -0
  33. package/src/assets/fixtures/teaser/ticker_teaser_alternativ_hero_audio.json +42 -0
  34. package/src/assets/fixtures/teaser/ticker_teaser_standard_100.json +8 -0
  35. package/src/assets/fixtures/teaser/ticker_teaser_standard_25.json +50 -0
  36. package/src/assets/fixtures/teaser/ticker_teaser_standard_33.json +37 -0
  37. package/src/assets/fixtures/teaser/ticker_teaser_standard_50.json +37 -0
  38. package/src/assets/fixtures/teaser/ticker_teaser_standard_hero.json +25 -0
  39. package/src/assets/fixtures/teaser/ticker_teaser_standard_hero_audio.json +25 -0
  40. package/src/assets/tailwind.css +15 -0
  41. package/src/stories/views/components/button/utilities/button_on_image_classes.hbs +6 -0
  42. package/src/stories/views/components/mediaplayer/media_player.hbs +2 -2
  43. package/src/stories/views/components/teaser/components/teaser_av_consumption.hbs +5 -5
  44. package/src/stories/views/components/teaser/components/teaser_lead.hbs +1 -1
  45. package/src/stories/views/components/teaser/components/teaser_title_classes.hbs +14 -0
  46. package/src/stories/views/components/teaser/fixtures/ticker_teaser_alternativ_100.json +1 -0
  47. package/src/stories/views/components/teaser/fixtures/ticker_teaser_alternativ_hero copy.json +1 -0
  48. package/src/stories/views/components/teaser/fixtures/ticker_teaser_alternativ_hero.json +1 -0
  49. package/src/stories/views/components/teaser/fixtures/ticker_teaser_alternativ_hero_audio.json +1 -0
  50. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_100 copy.json +1 -0
  51. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_100.json +1 -1
  52. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_25.json +1 -0
  53. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_30.json +1 -0
  54. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_33.json +1 -0
  55. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_50 copy 2.json +1 -0
  56. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_50 copy.json +1 -0
  57. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_50.json +1 -0
  58. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_hero copy.json +1 -0
  59. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_hero.json +1 -0
  60. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_hero_audio copy.json +1 -0
  61. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_hero_audio.json +1 -0
  62. package/src/stories/views/components/teaser/ticker/teaser_ticker_alternativ.hbs +16 -0
  63. package/src/stories/views/components/teaser/ticker/teaser_ticker_alternativ.mdx +20 -0
  64. package/src/stories/views/components/teaser/ticker/teaser_ticker_alternativ.stories.js +49 -0
  65. package/src/stories/views/components/teaser/ticker/teaser_ticker_body.hbs +26 -0
  66. package/src/stories/views/components/teaser/ticker/teaser_ticker_footer.hbs +12 -0
  67. package/src/stories/views/components/teaser/ticker/teaser_ticker_standard.hbs +16 -0
  68. package/src/stories/views/components/teaser/ticker/teaser_ticker_standard.mdx +21 -0
  69. package/src/stories/views/components/teaser/ticker/teaser_ticker_standard.stories.js +69 -0
  70. package/src/stories/views/components/teaser/ticker/teaser_ticker_timeline.hbs +3 -3
  71. package/tailwind.config.js +5 -0
  72. package/dist/views/components/teaser/components/teaser_ticker_body.hbs +0 -39
  73. package/dist/views/components/teaser/ticker/teaser_ticker.hbs +0 -29
  74. package/src/stories/views/components/teaser/components/teaser_ticker_body.hbs +0 -39
  75. package/src/stories/views/components/teaser/ticker/teaser_ticker.hbs +0 -29
  76. package/src/stories/views/components/teaser/ticker/teaser_ticker.mdx +0 -10
  77. package/src/stories/views/components/teaser/ticker/teaser_ticker.stories.js +0 -34
@@ -1,29 +0,0 @@
1
- <article class="bg-blue-congress rounded-tl-hr rounded-br-hr items-start relative col-span-12 flex {{if this.displayTeaserBodyAsImageOverlay '' 'gap-y-3'}} gap-x-4
2
- {{~inline-switch this.teaserSize '["25","33","50"]' '[" md:col-span-3"," md:col-span-4"," md:col-span-6",""]'}}
3
- {{~#if this.isMobile1to1}} js-is1to1 px-5 sm:px-0 md:flex-col{{else}} flex-col{{/if~}}
4
- "
5
- x-data="{ avStart: false }"
6
- {{#if this.isMobile1to1}}
7
- :class="avStart ? 'flex-col' : 'flex-row'"
8
- {{/if}}
9
- >
10
- {{#if this.teaserImage}}
11
- <figure class="{{> components/teaser/utilities/teaser_image_cypress_hook_classes}}relative
12
- {{~#if this.isMobile1to1}} basis-2/5 w-2/5 ar-1-1 md:basis-full md:w-full md:ar-16-9{{else}} ar-16-9 w-full{{/if~}}"
13
- {{~#if this.isMobile1to1}} :class="{'ar-16-9 w-full basis-full': avStart,'ar-1-1 basis-2/5 w-2/5':!avStart}"{{/if}} >
14
- {{> components/teaser/components/teaser_lead _addClassImg="rounded-tl-hr" _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _teaserType=this.teaserType _aspectRatio=(if this.isMobile1to1 'ar-1-1 md:ar-16-9' (inline-switch this.teaserSize '["25"]' '["ar-1-1 md:ar-16-9", "ar-16-9"]')) }}
15
- </figure>
16
- {{#if this.displayTeaserBodyAsImageOverlay}}
17
- {{#decorator 'components/teaser/components/teaser_image_overlay' _noOverlayInMobileViewports=true _cssClasses=" relative md:absolute w-full bottom-0"}}
18
- <div class="flex flex-col items-center justify-center p-4 border-r border-gray-400 border-dashed basis-1/12">
19
- {{> components/event/instant_dates}}
20
- </div>
21
- {{> components/teaser/components/teaser_ticker_body _outerCssClasses=(if this.isMobile1to1 'basis-11/12 py-4 sm:px-4 basis-3/5 w-3/5 md:basis-full md:w-full' 'basis-11/12 py-4 sm:px-4')}}
22
- {{/decorator}}
23
- {{else}}
24
- {{> components/teaser/components/teaser_ticker_body _outerCssClasses=(if this.isMobile1to1 'basis-3/5 w-3/5 md:basis-full md:w-full')}}
25
- {{/if}}
26
- {{else}}
27
- {{> components/teaser/components/teaser_ticker_body _outerCssClasses="basis-full"}}
28
- {{/if}}
29
- </article>
@@ -1,39 +0,0 @@
1
- <div class="{{#if _outerCssClasses}} {{_outerCssClasses}}{{/if}}"
2
- {{~#if this.isMobile1to1}}:class="{'basis-full w-full md:pr-0 pr-10':avStart,'basis-3/5 w-3/5':!avStart}"{{/if}}>
3
-
4
-
5
- {{#> components/teaser/components/teaser_header _css=(if this.isMobile1to1 "" "px-5 sm:px-0 mx-4 mb-5")}}
6
- {{#>components/base/link _link=this.link _css="cy-teaser-link ds-teaser-focus hover:text-toplineColor" }}
7
- {{#with this.label}}
8
- {{#> components/label/label_group}}
9
- {{> components/label/label _type=this.type _text=(loca this.loca)}}
10
- {{> components/label/label_byline _css="ml-2"}}
11
- {{/components/label/label_group}}
12
- {{/with~}}
13
- {{#> components/teaser/components/teaser_headline _headlineTag=this.headlineTag _css="overflow-anywhere hyphens-auto"}}
14
- {{#if this.topline}}
15
- {{> components/teaser/components/teaser_topline _css="" _text=this.topline}}
16
- {{/if}}
17
- {{> components/teaser/components/teaser_title _css="!text-white" _text=this.title _size=this.realTeaserSize _teaserType=this.teaserType _isMobile1to1=this.isMobile1to1}}
18
- {{#if this.extendedTitle}}
19
- {{> components/teaser/components/teaser_subline _text=this.extendedTitle}}
20
- {{/if}}
21
- {{/components/teaser/components/teaser_headline}}
22
- {{/components/base/link}}
23
- {{/components/teaser/components/teaser_header}}
24
-
25
- <div class="flex flex-wrap justify-between mx-4 my-5 text-base text-white justify-items-center">
26
- {{#if this.hasByline}}
27
- <p class="self-center text-xs text-white font-headingSerif empty:hidden overflow-anywhere hyphens-auto">
28
- {{~#if this.profiles~}}
29
- <span>{{this.profiles}}</span>
30
- {{~/if~}}
31
- </p>
32
- {{/if}}
33
- <a class="underline ds-link" href="{{this.url}}">Zum Ticker</a>
34
- </div>
35
-
36
-
37
-
38
-
39
- </div>
@@ -1,29 +0,0 @@
1
- <article class="bg-blue-congress rounded-tl-hr rounded-br-hr items-start relative col-span-12 flex {{if this.displayTeaserBodyAsImageOverlay '' 'gap-y-3'}} gap-x-4
2
- {{~inline-switch this.teaserSize '["25","33","50"]' '[" md:col-span-3"," md:col-span-4"," md:col-span-6",""]'}}
3
- {{~#if this.isMobile1to1}} js-is1to1 px-5 sm:px-0 md:flex-col{{else}} flex-col{{/if~}}
4
- "
5
- x-data="{ avStart: false }"
6
- {{#if this.isMobile1to1}}
7
- :class="avStart ? 'flex-col' : 'flex-row'"
8
- {{/if}}
9
- >
10
- {{#if this.teaserImage}}
11
- <figure class="{{> components/teaser/utilities/teaser_image_cypress_hook_classes}}relative
12
- {{~#if this.isMobile1to1}} basis-2/5 w-2/5 ar-1-1 md:basis-full md:w-full md:ar-16-9{{else}} ar-16-9 w-full{{/if~}}"
13
- {{~#if this.isMobile1to1}} :class="{'ar-16-9 w-full basis-full': avStart,'ar-1-1 basis-2/5 w-2/5':!avStart}"{{/if}} >
14
- {{> components/teaser/components/teaser_lead _addClassImg="rounded-tl-hr" _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _teaserType=this.teaserType _aspectRatio=(if this.isMobile1to1 'ar-1-1 md:ar-16-9' (inline-switch this.teaserSize '["25"]' '["ar-1-1 md:ar-16-9", "ar-16-9"]')) }}
15
- </figure>
16
- {{#if this.displayTeaserBodyAsImageOverlay}}
17
- {{#decorator 'components/teaser/components/teaser_image_overlay' _noOverlayInMobileViewports=true _cssClasses=" relative md:absolute w-full bottom-0"}}
18
- <div class="flex flex-col items-center justify-center p-4 border-r border-gray-400 border-dashed basis-1/12">
19
- {{> components/event/instant_dates}}
20
- </div>
21
- {{> components/teaser/components/teaser_ticker_body _outerCssClasses=(if this.isMobile1to1 'basis-11/12 py-4 sm:px-4 basis-3/5 w-3/5 md:basis-full md:w-full' 'basis-11/12 py-4 sm:px-4')}}
22
- {{/decorator}}
23
- {{else}}
24
- {{> components/teaser/components/teaser_ticker_body _outerCssClasses=(if this.isMobile1to1 'basis-3/5 w-3/5 md:basis-full md:w-full')}}
25
- {{/if}}
26
- {{else}}
27
- {{> components/teaser/components/teaser_ticker_body _outerCssClasses="basis-full"}}
28
- {{/if}}
29
- </article>
@@ -1,10 +0,0 @@
1
- import { ArgsTable, Meta, Story, Canvas } from '@storybook/blocks'
2
- import * as TeaserTickerStories from './teaser_ticker.stories'
3
-
4
- import ticker from './teaser_ticker.hbs'
5
-
6
- <Meta of={TeaserTickerStories} />
7
-
8
- <Canvas withToolbar>
9
- <Story of={TeaserTickerStories.TickerTeaser100} />
10
- </Canvas>
@@ -1,34 +0,0 @@
1
- import ticker from './teaser_ticker.hbs'
2
- import tickerTeaser100Standard from '../fixtures/ticker_teaser_standard_100.json'
3
-
4
- const Template = (args, { globals: { customConditionalToolbar } }) => {
5
- // You can either use a function to create DOM elements or use a plain html string!
6
- // return `<div>${label}</div>`;
7
- let brand =
8
- undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
9
- return ticker({ brand, ...args })
10
- }
11
-
12
- export default {
13
- title: 'Komponenten/Teaser/Ticker',
14
-
15
- parameters: {
16
- layout: '',
17
- },
18
-
19
- argTypes: {},
20
-
21
- decorators: [
22
- (Story) => {
23
- return `<div class="grid grid-page"><div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-9.5 sm:col-main">
24
- ${Story()}
25
- </div></div>`
26
- },
27
- ],
28
- }
29
-
30
- export const TickerTeaser100 = {
31
- render: Template.bind({}),
32
- name: 'Standard 100',
33
- args: tickerTeaser100Standard.logicItem.includeModel,
34
- }