hr-design-system-handlebars 1.11.3 → 1.11.5

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 (27) hide show
  1. package/.github/workflows/chromatic.yml +2 -2
  2. package/.storybook/preview.js +6 -1
  3. package/CHANGELOG.md +33 -0
  4. package/README.md +7 -7
  5. package/dist/assets/index.css +998 -987
  6. package/dist/assets/vendor/js/header.alpine.js +1 -0
  7. package/dist/views/components/site_header/section_navigation/section_navigation.hbs +5 -0
  8. package/dist/views/components/site_header/section_navigation/section_navigation_item.hbs +5 -4
  9. package/dist/views/components/site_header/section_navigation/section_navigation_top_topics.hbs +11 -0
  10. package/dist/views/components/teaser/stage/stage_text.hbs +1 -1
  11. package/package.json +3 -1
  12. package/src/assets/fixtures/site_header/sectionNavigation.inc.json +1 -0
  13. package/src/assets/fixtures/site_header/sectionNavigation_mit_submenu.inc.json +1 -0
  14. package/src/assets/fixtures/site_header/site_header_mit_top_topics.json +19 -0
  15. package/src/assets/fixtures/site_header/topTopicsNavigation.inc.json +22 -0
  16. package/src/assets/vendor/js/header.alpine.js +1 -0
  17. package/src/stories/Example.stories.mdx +57 -62
  18. package/src/stories/InstallAndUpdate.stories.mdx +38 -0
  19. package/src/stories/views/components/site_header/fixtures/site_header_default.json +1 -1
  20. package/src/stories/views/components/site_header/fixtures/site_header_mit_submenu.json +1 -1
  21. package/src/stories/views/components/site_header/fixtures/site_header_mit_top_topics.json +1 -0
  22. package/src/stories/views/components/site_header/fixtures/site_header_mit_warnung.json +1 -1
  23. package/src/stories/views/components/site_header/header.stories.mdx +15 -0
  24. package/src/stories/views/components/site_header/section_navigation/section_navigation.hbs +5 -0
  25. package/src/stories/views/components/site_header/section_navigation/section_navigation_item.hbs +5 -4
  26. package/src/stories/views/components/site_header/section_navigation/section_navigation_top_topics.hbs +11 -0
  27. package/src/stories/views/components/teaser/stage/stage_text.hbs +1 -1
@@ -5,6 +5,7 @@ import brandnav from './brand_navigation/brand_navigation.hbs'
5
5
  import JsonData from './fixtures/site_header_default.json'
6
6
  import JsonData2 from './fixtures/site_header_mit_warnung.json'
7
7
  import JsonData3 from './fixtures/site_header_mit_submenu.json'
8
+ import JsonDataTopTopics from './fixtures/site_header_mit_top_topics.json'
8
9
 
9
10
  <Meta title="Komponenten/Header/Header"
10
11
  argTypes={{}}
@@ -119,6 +120,20 @@ Navigation mit zusätzlicher Subnavigation:
119
120
  </Story>
120
121
  </Canvas>
121
122
 
123
+ ***
124
+
125
+ <br />
126
+ <br />
127
+ <br />
128
+ <br />
129
+ Navigation mit Top Topics:
130
+
131
+ <Canvas>
132
+ <Story name="Mit Top Topics" args={JsonDataTopTopics}>
133
+ {Template.bind({})}
134
+ </Story>
135
+ </Canvas>
136
+
122
137
  <br />
123
138
 
124
139
  <a name="scrollverhalten" />
@@ -14,6 +14,11 @@
14
14
  {{else}}
15
15
  {{{this}}}
16
16
  {{/if}}
17
+ {{#if @first}}
18
+ {{#with ../../this.topTopicsNavigationSSILinks }}
19
+ {{> components/site_header/section_navigation/section_navigation_top_topics }}
20
+ {{/with}}
21
+ {{/if}}
17
22
  {{/each}}
18
23
  </ul>
19
24
  {{/with}}
@@ -3,7 +3,7 @@
3
3
  @click.outside="dropped = false"
4
4
  @close-servicemenu.window="dropped = false"
5
5
  :class="dropped ? 'border-b-0 lg:bg-white lg:text-blue-congress h-auto' : 'h-10 lg:hover:underline'"
6
- class="flex flex-wrap justify-start w-full text-white list-none border-b border-white sb-section-navigation-item first:lg:-ml-4 md:pl-0 lg:first:pl-0 first:border-t lg:first:border-t-0 first:font-normal last:border-b-0 lg:border-0 lg:w-auto bg-blue-congress lg:rounded-t">
6
+ class="flex flex-wrap justify-start order-2 w-full text-white list-none border-b border-white sb-section-navigation-item first:lg:-ml-4 md:pl-0 lg:first:pl-0 first:border-t lg:first:border-t-0 first:font-normal last:border-b-0 lg:border-0 lg:w-auto bg-blue-congress lg:rounded-t">
7
7
  {{#if this.isCluster ~}}
8
8
  {{!-- Gilt z.B. für REGIONEN: --}}
9
9
  <button id="button-{{nextRandom}}-1"
@@ -57,9 +57,10 @@
57
57
  {{/if}}
58
58
 
59
59
  {{else}}
60
-
61
- {{~this.text~}}
62
-
60
+ {{~this.text~}}
61
+ {{~#if this.hiddenText~}}
62
+ <span class="sr-only">{{~this.hiddenText~}}</span>
63
+ {{~/if~}}
63
64
  {{~/if}}
64
65
 
65
66
  {{#if this.isCluster}}
@@ -0,0 +1,11 @@
1
+ <li class="order-1 w-full mx-2 lg:w-auto lg:order-2">
2
+ <ul class="flex flex-row items-center w-full p-4 text-left list-none bg-white lg:p-0 lg:bg-transparent lg:h-10">
3
+ {{#each this.items}}
4
+ <li class="{{#unless @last}}mr-3 {{/unless}}bg-gray-300 rounded px-1.5 pt-px inline-block w-auto tracking-wide text-blue-900 text-base leading-5.5 font-heading lg:mb-1 ">
5
+ {{#decorator 'components/base/link'}}
6
+ {{text}}
7
+ {{/decorator}}
8
+ </li>
9
+ {{/each}}
10
+ </ul>
11
+ </li>
@@ -14,7 +14,7 @@
14
14
  {{/if}}
15
15
  {{> components/teaser/components/teaser_title _css="text-stageText" _text=this.title _size="100" _teaserType="stage"}}
16
16
  {{#with this.eventtags}}
17
- {{> components/event/event_tags this _css="hidden sm:block text-inherit"}}
17
+ {{> components/event/event_tags this _css="hidden sm:block !text-inherit"}}
18
18
  {{/with}}
19
19
  {{/components/teaser/components/teaser_headline}}
20
20
  {{#if this.showProfileInfoAsByline}}