hr-design-system-handlebars 1.12.3 β†’ 1.14.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/assets/index.css +69 -36
  3. package/dist/assets/vendor/js/header.alpine.js +10 -2
  4. package/dist/assets/vendor/js/horizontal_scroll_container.alpine.js +30 -0
  5. package/dist/views/components/horizontal_scroll_container/horizontal_scroll_container.hbs +22 -0
  6. package/dist/views/components/horizontal_scroll_container/horizontal_scroll_container_example.hbs +9 -0
  7. package/dist/views/components/site_header/brand_navigation/brand_navigation.hbs +7 -61
  8. package/dist/views/components/site_header/brand_navigation/brand_navigation_item.hbs +2 -2
  9. package/dist/views/components/site_header/header.hbs +4 -4
  10. package/dist/views/components/site_header/navigation_flyout/navigation_flyout.hbs +3 -4
  11. package/dist/views/components/site_header/section_navigation/section_navigation.hbs +24 -21
  12. package/dist/views/components/site_header/section_navigation/section_navigation_item.hbs +3 -2
  13. package/dist/views/components/site_header/section_navigation/section_navigation_top_topics.hbs +4 -4
  14. package/package.json +1 -1
  15. package/src/assets/css/custom-utilities.css +2 -2
  16. package/src/assets/fixtures/site_header/site_header_mit_top_topics.json +1 -1
  17. package/src/assets/fixtures/site_header/topTopicsNavigation.inc.json +11 -0
  18. package/src/assets/tailwind.css +8 -0
  19. package/src/assets/vendor/js/header.alpine.js +10 -2
  20. package/src/assets/vendor/js/horizontal_scroll_container.alpine.js +30 -0
  21. package/src/stories/views/components/horizontal_scroll_container/horizontal_scroll_container.hbs +22 -0
  22. package/src/stories/views/components/horizontal_scroll_container/horizontal_scroll_container.mdx +30 -0
  23. package/src/stories/views/components/horizontal_scroll_container/horizontal_scroll_container.stories.js +33 -0
  24. package/src/stories/views/components/horizontal_scroll_container/horizontal_scroll_container_example.hbs +9 -0
  25. package/src/stories/views/components/page/page.data.js +6 -2
  26. package/src/stories/views/components/page/page.stories.js +8 -0
  27. package/src/stories/views/components/site_header/brand_navigation/brand_navigation.hbs +7 -61
  28. package/src/stories/views/components/site_header/brand_navigation/brand_navigation_item.hbs +2 -2
  29. package/src/stories/views/components/site_header/fixtures/site_header_mit_top_topics.json +1 -1
  30. package/src/stories/views/components/site_header/header.hbs +4 -4
  31. package/src/stories/views/components/site_header/header.mdx +3 -18
  32. package/src/stories/views/components/site_header/navigation_flyout/navigation_flyout.hbs +3 -4
  33. package/src/stories/views/components/site_header/section_navigation/section_navigation.hbs +24 -21
  34. package/src/stories/views/components/site_header/section_navigation/section_navigation_item.hbs +3 -2
  35. package/src/stories/views/components/site_header/section_navigation/section_navigation_top_topics.hbs +4 -4
  36. package/tailwind.config.js +1 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ # v1.14.0 (Fri Apr 28 2023)
2
+
3
+ #### πŸš€ Enhancement
4
+
5
+ - Dpe 2244 stories & doku [#616](https://github.com/mumprod/hr-design-system-handlebars/pull/616) ([@StefanVesper](https://github.com/StefanVesper))
6
+
7
+ #### Authors: 1
8
+
9
+ - SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
10
+
11
+ ---
12
+
13
+ # v1.13.0 (Tue Apr 25 2023)
14
+
15
+ #### πŸš€ Enhancement
16
+
17
+ - Dpe 2244 [#611](https://github.com/mumprod/hr-design-system-handlebars/pull/611) ([@vascoeduardo](https://github.com/vascoeduardo) [@StefanVesper](https://github.com/StefanVesper))
18
+
19
+ #### Authors: 2
20
+
21
+ - SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
22
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
23
+
24
+ ---
25
+
1
26
  # v1.12.3 (Mon Apr 24 2023)
2
27
 
3
28
  #### πŸ› Bug Fix
@@ -1174,6 +1174,9 @@ video {
1174
1174
  .mb-0 {
1175
1175
  margin-bottom: 0px;
1176
1176
  }
1177
+ .mb-10 {
1178
+ margin-bottom: 2.5rem;
1179
+ }
1177
1180
  .mb-4 {
1178
1181
  margin-bottom: 1rem;
1179
1182
  }
@@ -1351,9 +1354,6 @@ video {
1351
1354
  .max-h-0 {
1352
1355
  max-height: 0px;
1353
1356
  }
1354
- .max-h-10 {
1355
- max-height: 2.5rem;
1356
- }
1357
1357
  .max-h-6 {
1358
1358
  max-height: 1.5rem;
1359
1359
  }
@@ -1420,6 +1420,9 @@ video {
1420
1420
  .w-9 {
1421
1421
  width: 2.25rem;
1422
1422
  }
1423
+ .w-\[1600px\] {
1424
+ width: 1600px;
1425
+ }
1423
1426
  .w-auto {
1424
1427
  width: auto;
1425
1428
  }
@@ -1544,6 +1547,9 @@ video {
1544
1547
  .transform {
1545
1548
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1546
1549
  }
1550
+ .cursor-default {
1551
+ cursor: default;
1552
+ }
1547
1553
  .cursor-pointer {
1548
1554
  cursor: pointer;
1549
1555
  }
@@ -1877,10 +1883,6 @@ video {
1877
1883
  --tw-bg-opacity: 1;
1878
1884
  background-color: rgba(243, 244, 246, var(--tw-bg-opacity));
1879
1885
  }
1880
- .bg-gray-300 {
1881
- --tw-bg-opacity: 1;
1882
- background-color: rgba(209, 213, 219, var(--tw-bg-opacity));
1883
- }
1884
1886
  .bg-gray-500 {
1885
1887
  --tw-bg-opacity: 1;
1886
1888
  background-color: rgba(107, 114, 128, var(--tw-bg-opacity));
@@ -2173,9 +2175,6 @@ video {
2173
2175
  .pb-0\.5 {
2174
2176
  padding-bottom: 0.125rem;
2175
2177
  }
2176
- .pb-1 {
2177
- padding-bottom: 0.25rem;
2178
- }
2179
2178
  .pb-10 {
2180
2179
  padding-bottom: 2.5rem;
2181
2180
  }
@@ -2427,9 +2426,9 @@ video {
2427
2426
  --tw-text-opacity: 1;
2428
2427
  color: rgba(29, 78, 216, var(--tw-text-opacity));
2429
2428
  }
2430
- .text-blue-900 {
2429
+ .text-blue-astronautBlue {
2431
2430
  --tw-text-opacity: 1;
2432
- color: rgba(30, 58, 138, var(--tw-text-opacity));
2431
+ color: rgba(0, 55, 93, var(--tw-text-opacity));
2433
2432
  }
2434
2433
  .text-blue-congress {
2435
2434
  --tw-text-opacity: 1;
@@ -2678,7 +2677,7 @@ video {
2678
2677
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
2679
2678
  }
2680
2679
  .counter-reset {
2681
- counter-reset: cnt1682333369427;
2680
+ counter-reset: cnt1682683106873;
2682
2681
  }
2683
2682
  .hyphens-auto {
2684
2683
  -webkit-hyphens: auto;
@@ -2768,10 +2767,11 @@ video {
2768
2767
  --tw-content: '';
2769
2768
  content: var(--tw-content);
2770
2769
  }
2771
- @media (min-width: 1024px) {
2770
+ @media (min-width: 768px) {
2772
2771
 
2773
2772
  .-currentBrand::before {
2774
- position: absolute;
2773
+ position: relative;
2774
+ right: -50%;
2775
2775
  margin-top: 1.5rem;
2776
2776
  height: 0px;
2777
2777
  width: 0px;
@@ -2825,9 +2825,9 @@ video {
2825
2825
  border-bottom-color: #ffffff;
2826
2826
  }
2827
2827
  }
2828
- .-currentSection::before {
2828
+ .-currentSection::after {
2829
2829
  margin-right: 0.5rem;
2830
- margin-left: -1rem;
2830
+ margin-left: -3.375rem;
2831
2831
  margin-bottom: 0.125rem;
2832
2832
  height: 0px;
2833
2833
  width: 0px;
@@ -2845,8 +2845,13 @@ video {
2845
2845
  }
2846
2846
  @media (min-width: 1024px) {
2847
2847
 
2848
- .-currentSection::before {
2849
- position: absolute;
2848
+ .-currentSection {
2849
+ padding-right: 0px !important;
2850
+ }
2851
+
2852
+ .-currentSection::after {
2853
+ position: relative;
2854
+ right: 50%;
2850
2855
  margin-bottom: 0px;
2851
2856
  margin-right: 0px;
2852
2857
  margin-left: 0px;
@@ -2910,7 +2915,7 @@ video {
2910
2915
  --tw-ring-color: rgba(255, 255, 255, 0.5);
2911
2916
  }
2912
2917
  .-ordered {
2913
- counter-increment: cnt1682333369427 1;
2918
+ counter-increment: cnt1682683106873 1;
2914
2919
  }
2915
2920
  .-ordered::before {
2916
2921
  position: absolute;
@@ -2926,7 +2931,7 @@ video {
2926
2931
  letter-spacing: .0125em;
2927
2932
  --tw-text-opacity: 1;
2928
2933
  color: rgba(0, 0, 0, var(--tw-text-opacity));
2929
- content: counter(cnt1682333369427);
2934
+ content: counter(cnt1682683106873);
2930
2935
  }
2931
2936
  /*! ****************************/
2932
2937
  /*! text-shadow */
@@ -3826,6 +3831,14 @@ video {
3826
3831
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgb(255, 255, 255) 50%);
3827
3832
  transition: transform 150ms ease-in-out 0s;
3828
3833
  }
3834
+ .arrow-left-background-blue {
3835
+ background: linear-gradient(to left, rgba(255, 255, 255, 0),#005293 50%);
3836
+ transition: transform 150ms ease-in-out 0s;
3837
+ }
3838
+ .arrow-right-background-blue {
3839
+ background: linear-gradient(to right, rgba(255, 255, 255, 0), #005293 50%);
3840
+ transition: transform 150ms ease-in-out 0s;
3841
+ }
3829
3842
  .c-videoplayer .ardplayer {
3830
3843
  position: absolute;
3831
3844
  top: 0;
@@ -3928,6 +3941,10 @@ video {
3928
3941
  --tw-bg-opacity: 1;
3929
3942
  background-color: rgba(0, 0, 0, var(--tw-bg-opacity));
3930
3943
  }
3944
+ .hover\:bg-blue-300:hover {
3945
+ --tw-bg-opacity: 1;
3946
+ background-color: rgba(147, 197, 253, var(--tw-bg-opacity));
3947
+ }
3931
3948
  .hover\:bg-blue-congress:hover {
3932
3949
  --tw-bg-opacity: 1;
3933
3950
  background-color: rgba(0, 82, 147, var(--tw-bg-opacity));
@@ -4629,16 +4646,16 @@ video {
4629
4646
  padding-right: 0px;
4630
4647
  }
4631
4648
 
4649
+ .md\:px-1 {
4650
+ padding-left: 0.25rem;
4651
+ padding-right: 0.25rem;
4652
+ }
4653
+
4632
4654
  .md\:px-4 {
4633
4655
  padding-left: 1rem;
4634
4656
  padding-right: 1rem;
4635
4657
  }
4636
4658
 
4637
- .md\:px-5 {
4638
- padding-left: 1.25rem;
4639
- padding-right: 1.25rem;
4640
- }
4641
-
4642
4659
  .md\:pl-0 {
4643
4660
  padding-left: 0px;
4644
4661
  }
@@ -4696,6 +4713,10 @@ video {
4696
4713
  line-height: 1rem;
4697
4714
  }
4698
4715
 
4716
+ .md\:leading-8 {
4717
+ line-height: 2rem;
4718
+ }
4719
+
4699
4720
  .md\:decoration-2 {
4700
4721
  text-decoration-thickness: 2px;
4701
4722
  }
@@ -4783,6 +4804,10 @@ video {
4783
4804
  }
4784
4805
  @media (min-width: 1024px) {
4785
4806
 
4807
+ .lg\:fixed {
4808
+ position: fixed;
4809
+ }
4810
+
4786
4811
  .lg\:absolute {
4787
4812
  position: absolute;
4788
4813
  }
@@ -4848,10 +4873,6 @@ video {
4848
4873
  margin-top: -2rem;
4849
4874
  }
4850
4875
 
4851
- .lg\:mb-1 {
4852
- margin-bottom: 0.25rem;
4853
- }
4854
-
4855
4876
  .lg\:ml-0 {
4856
4877
  margin-left: 0px;
4857
4878
  }
@@ -4864,6 +4885,10 @@ video {
4864
4885
  margin-right: 0px;
4865
4886
  }
4866
4887
 
4888
+ .lg\:mr-2 {
4889
+ margin-right: 0.5rem;
4890
+ }
4891
+
4867
4892
  .lg\:mt-1 {
4868
4893
  margin-top: 0.25rem;
4869
4894
  }
@@ -5104,6 +5129,11 @@ video {
5104
5129
  padding-right: 1rem;
5105
5130
  }
5106
5131
 
5132
+ .lg\:px-6 {
5133
+ padding-left: 1.5rem;
5134
+ padding-right: 1.5rem;
5135
+ }
5136
+
5107
5137
  .lg\:px-9 {
5108
5138
  padding-left: 2.25rem;
5109
5139
  padding-right: 2.25rem;
@@ -5118,6 +5148,10 @@ video {
5118
5148
  padding-bottom: 0px;
5119
5149
  }
5120
5150
 
5151
+ .lg\:pb-1 {
5152
+ padding-bottom: 0.25rem;
5153
+ }
5154
+
5121
5155
  .lg\:pb-3 {
5122
5156
  padding-bottom: 0.75rem;
5123
5157
  }
@@ -5162,10 +5196,6 @@ video {
5162
5196
  line-height: 1.25rem;
5163
5197
  }
5164
5198
 
5165
- .lg\:leading-8 {
5166
- line-height: 2rem;
5167
- }
5168
-
5169
5199
  .lg\:text-blue-congress {
5170
5200
  --tw-text-opacity: 1;
5171
5201
  color: rgba(0, 82, 147, var(--tw-text-opacity));
@@ -5217,6 +5247,9 @@ video {
5217
5247
  }
5218
5248
  .lg\:last\:border-0:last-child {
5219
5249
  border-width: 0px;
5250
+ }
5251
+ .lg\:last\:pr-8:last-child {
5252
+ padding-right: 2rem;
5220
5253
  }
5221
5254
  .lg\:odd\:pr-4:nth-child(odd) {
5222
5255
  padding-right: 1rem;
@@ -5249,8 +5282,8 @@ video {
5249
5282
  right: 0px;
5250
5283
  }
5251
5284
 
5252
- .tablet\:top-22 {
5253
- top: 5.5rem;
5285
+ .tablet\:top-20 {
5286
+ top: 5rem;
5254
5287
  }
5255
5288
 
5256
5289
  .tablet\:ml-half-screen {
@@ -31,7 +31,7 @@ document.addEventListener('alpine:init', () => {
31
31
  }, wait)
32
32
  }
33
33
  },
34
- init() {
34
+ start() {
35
35
  let lastScrollTop = 0
36
36
  let height = window.innerHeight
37
37
 
@@ -281,7 +281,15 @@ document.addEventListener('alpine:init', () => {
281
281
  toggle() {
282
282
  this.dropped = !this.dropped
283
283
  },
284
-
284
+ correctFlyoutPos(){
285
+ if(this.$screen('lg')){
286
+ let elementBoundingClientRec = this.$el.getBoundingClientRect()
287
+ let parentElementBoundingClientRec = this.$el.closest(".relative").getBoundingClientRect()
288
+ this.$el.parentNode.querySelector('.sb-navigation-flyout').style.left = (elementBoundingClientRec.left - Math.abs(parentElementBoundingClientRec.left))+"px";
289
+ } else {
290
+ this.$el.parentNode.querySelector('.sb-navigation-flyout').style.left = "0px";
291
+ }
292
+ },
285
293
  // toggles visibility of service nav and sets global variables in stores
286
294
  toggleServiceNav() {
287
295
  this.dropped = !this.dropped
@@ -0,0 +1,30 @@
1
+ export default function slider() {
2
+
3
+ return {
4
+ isScrollable:false,
5
+ arrowLeftDisplay:false,
6
+ arrowRightDisplay:true,
7
+
8
+ arrowsDisplay(e) {
9
+ e.scrollLeft > 1 ? this.arrowLeftDisplay=true : this.arrowLeftDisplay=false;
10
+ e.scrollLeft + e.offsetWidth >= e.scrollWidth ? this.arrowRightDisplay=false : this.arrowRightDisplay=true;
11
+ },
12
+
13
+ prev(e) {
14
+ e.scrollLeft -= 200;
15
+ },
16
+
17
+ next(e) {
18
+ e.scrollLeft += 200;
19
+ },
20
+
21
+ updateIndex(e) {
22
+ this.arrowsDisplay(e);
23
+ },
24
+
25
+ checkIfScrollable(e){
26
+ e.scrollWidth > e.clientWidth ? this.isScrollable=true : this.isScrollable=false;
27
+ this.arrowsDisplay(e);
28
+ }
29
+ };
30
+ }
@@ -0,0 +1,22 @@
1
+ <div x-data="slider()"
2
+ x-init="checkIfScrollable($refs.scrollContainer_{{getRandom}})"
3
+ @resize.window="checkIfScrollable($refs.scrollContainer_{{getRandom}})"
4
+ class="relative w-full"
5
+ ax-load
6
+ x-ignore
7
+ ax-load-src={{resourceUrl "assets/js/vendor/horizontal_scroll_container.alpine.js" }}
8
+ >
9
+ <template x-if="isScrollable && $screen('{{_viewport}}')">
10
+ <div>
11
+ <button class="{{#if _onDarkBackground}}arrow-left-background-blue{{else}}arrow-left-background{{/if}} absolute z-10 left-0 flex items-center justify-start w-8 h-full disabled:hidden" @click="prev($refs.scrollContainer_{{getRandom}})" :disabled="!arrowLeftDisplay" aria-label="nach links scrollen">
12
+ {{> components/base/image/icon _icon="arrow-left" _iconmap="icons" _addClass=(if _onDarkBackground 'w-3.5 h-3.5 fill-current text-white' 'w-3.5 h-3.5 fill-current text-blue-congress') }}
13
+ </button>
14
+ <button class="{{#if _onDarkBackground}}arrow-right-background-blue{{else}}arrow-right-background{{/if}} absolute z-10 right-0 flex items-center justify-end w-8 h-full group disabled:hidden" @click="next($refs.scrollContainer_{{getRandom}})" :disabled="!arrowRightDisplay" aria-label="nach rechts scrollen">
15
+ {{> components/base/image/icon _icon="arrow-right" _iconmap="icons" _addClass=(if _onDarkBackground 'w-3.5 h-3.5 fill-current text-white' 'w-3.5 h-3.5 fill-current text-blue-congress') }}
16
+ </button>
17
+ </div>
18
+ </template>
19
+ <div x-ref="scrollContainer_{{getRandom}}" @scroll="updateIndex($event.target)" class="w-full overflow-hidden overflow-x-scroll leading-10 transition-all duration-300 ease-in-out cursor-default hide-scroll-bar align-center">
20
+ {{> @partial-block }}
21
+ </div>
22
+ </div>
@@ -0,0 +1,9 @@
1
+ <div class="w-full h-auto mb-10">
2
+ {{#> components/horizontal_scroll_container/horizontal_scroll_container _viewport="xs" _onDarkBackground="true"}}
3
+
4
+ <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white w-[1600px] bg-blue-congress">
5
+ <p class="whitespace-nowrap ">Guten Tag. Dieses Div kann mittels click auf die Pfeiltasten verschoben werden kann. Die Pfeile werden dynamisch angezeigt/ausgeblendet sobald der Rand des Inhalts erreicht ist. </p>
6
+ </div>
7
+
8
+ {{/components/horizontal_scroll_container/horizontal_scroll_container}}
9
+ </div>
@@ -1,22 +1,6 @@
1
- <div x-data="slider()"
2
- x-init="checkIfScrollable($refs.container)"
3
- @resize.window="checkIfScrollable($refs.container)"
4
- class="sb-brand-navigation lg:container w-full md:px-5 lg:px-10 px-3.5 h-10 lg:h-8">
5
-
6
- <div class="flex justify-center text-xs list-none text-gray-scorpion ">
7
-
8
- <template x-if="isScrollable">
9
- <div>
10
- <button class="absolute left-0 w-12 h-full pt-1 arrow-left-background disabled:hidden" @click="prev($refs.container)" :disabled="!arrowLeftDisplay" aria-label="nach links scrollen">
11
- {{> components/base/image/icon _icon="arrow-left" _iconmap="icons" _addClass="pb-1 mr-4 inline-block w-3.5 h-3.5 text-blue-congress fill-current"}}
12
- </button>
13
- <button class="absolute right-0 w-12 h-full pt-1 group arrow-right-background disabled:hidden" @click="next($refs.container)" :disabled="!arrowRightDisplay" aria-label="nach rechts scrollen">
14
- {{> components/base/image/icon _icon="arrow-right" _iconmap="icons" _addClass="pb-1 ml-4 inline-block w-3.5 h-3.5 text-blue-congress fill-current "}}
15
- </button>
16
- </div>
17
- </template>
18
-
19
- <nav x-ref="container" @scroll="updateIndex($event.target)" class="w-full overflow-hidden overflow-x-scroll leading-10 transition-all duration-300 ease-in-out cursor-pointer hide-scroll-bar max-h-10 align-center">
1
+ <div class="sb-brand-navigation lg:container w-full md:px-1 lg:px-6 px-3.5 h-10 md:h-8">
2
+ {{#> components/horizontal_scroll_container/horizontal_scroll_container _viewport="xs" }}
3
+ <nav class="flex w-full text-xs list-none text-grey-scorpion">
20
4
  <span id="brandNavHeading" class="hidden">Navigation der Marken des Hessischen Rundfunks</span>
21
5
  {{#with this.brandNavigationItems}}
22
6
  <ul class="flex pl-0.5 pr-3 md:px-0 flex-nowrap lg:mr-0">
@@ -24,45 +8,7 @@
24
8
  {{> components/site_header/brand_navigation/brand_navigation_item }}
25
9
  {{/each}}
26
10
  </ul>
27
- {{/with}}
28
- </nav>
29
-
30
- </div>
31
-
32
- </div>
33
-
34
- <script type="text/javascript">
35
-
36
- function slider() {
37
-
38
- return {
39
-
40
- isScrollable:false,
41
- arrowLeftDisplay:false,
42
- arrowRightDisplay:true,
43
-
44
- arrowsDisplay(e) {
45
- e.scrollLeft > 1 ? this.arrowLeftDisplay=true : this.arrowLeftDisplay=false;
46
- e.scrollLeft + e.offsetWidth == e.scrollWidth ? this.arrowRightDisplay=false : this.arrowRightDisplay=true;
47
- },
48
-
49
- prev(e) {
50
- e.scrollLeft -= 200;
51
- },
52
-
53
- next(e) {
54
- e.scrollLeft += 200;
55
- },
56
-
57
- updateIndex(e) {
58
- this.arrowsDisplay(e);
59
- },
60
-
61
- checkIfScrollable(e){
62
- e.scrollWidth > e.clientWidth ? this.isScrollable=true : this.isScrollable=false;
63
- this.arrowsDisplay(e);
64
- }
65
- };
66
- }
67
-
68
- </script>
11
+ {{/with}}
12
+ </nav>
13
+ {{/components/horizontal_scroll_container/horizontal_scroll_container}}
14
+ </div>
@@ -1,3 +1,3 @@
1
- <li class="sb-brand-navigation-item{{#if this.selected}} h-10 lg:h-8 font-bold text-blue-congress {{/if}} cursor-pointer inline-block lg:hover:underline active:font-bold active:text-blue-science">
2
- <a class="link-focus-inset leading-10 lg:leading-8 flex-col px-3 {{#if @first }}pl-0 {{/if}}lg:flex-row js-load w-max flex justify-center {{#if this.selected}} -currentBrand {{/if}}" aria-label="{{this.name}}" href="{{resourceUrl "index.html" _site=this.site}}"{{#if this.extern}} target="_blank" rel="noopener noreferrer"{{/if}} data-hr-click-tracking='{"settings": [{"type": "uxAction", "secondLevelId": "1", "clickLabel": "Brandnavigation::{{this.text}}-Link geklickt"}]}'>{{this.text}}</a>
1
+ <li class="sb-brand-navigation-item{{#if this.selected}} h-10 md:h-8 font-bold text-blue-congress {{/if}} cursor-pointer inline-block lg:hover:underline active:font-bold active:text-blue-science">
2
+ <a class="link-focus-inset leading-10 md:leading-8 flex-col px-3 {{#if @first }}pl-0 {{/if}}md:flex-row js-load w-max flex justify-center {{#if this.selected}} -currentBrand {{/if}}" aria-label="{{this.name}}" href="{{resourceUrl "index.html" _site=this.site}}"{{#if this.extern}} target="_blank" rel="noopener noreferrer"{{/if}} data-hr-click-tracking='{"settings": [{"type": "uxAction", "secondLevelId": "1", "clickLabel": "Brandnavigation::{{this.text}}-Link geklickt"}]}'>{{this.text}}</a>
3
3
  </li>
@@ -1,10 +1,10 @@
1
- <div class="sb-main-navigation" x-data="mainNavigationHandler()" x-init="init()">
1
+ <div class="sb-main-navigation" x-data="mainNavigationHandler()" x-init="{{#unless (isStorybook) }} start() {{/unless}} ">
2
2
  <header class="print:hidden relative z-10001 {{#if this.hasOpenSubNavigation}}lg:h-header-lg-big{{else}}lg:h-header-lg-small{{/if}} md:h-header-md h-header-sm">
3
3
  <div x-data
4
4
  id="headerWrapper"
5
5
  @resize.window="resetNav()"
6
6
  :class="shouldBrandNavBeHidden() ? '-mt-10 lg:-mt-8' : '' "
7
- class="fixed top-0 left-0 flex flex-wrap max-w-full transition-all duration-500 transform font-copy lg:justify-center lg:w-full ">
7
+ class="{{#unless (isStorybook) }} fixed top-0 left-0{{/unless}} flex flex-wrap max-w-full transition-all duration-500 transform font-copy lg:justify-center lg:w-full ">
8
8
 
9
9
  <div id="anchorNavWrapper"
10
10
  class="hidden">
@@ -53,8 +53,8 @@
53
53
  x-ref="sectionnavigation"
54
54
  @toggle-sectionnav.window="toggleSectionNav"
55
55
  :class="shouldSectionNavBeHidden() ? '-mt-40 md:-mt-40 lg:-mt-40' : ''"
56
- class="flex justify-center order-3 w-full overflow-hidden duration-500 transition-max-height lg:transition-margin-top lg:duration-500 tablet:absolute tablet:top-22 tablet:w-half-screen tablet:ml-half-screen max-h-0 lg:overflow-visible md:mt-0 lg:flex lg:max-h-full lg:h-auto bg-blue-congress z-10000 print:hidden"
57
- >
56
+ class="flex justify-center order-3 w-full overflow-hidden duration-500 transition-max-height lg:transition-margin-top lg:duration-500 tablet:absolute tablet:top-20 tablet:w-half-screen tablet:ml-half-screen max-h-0 lg:overflow-visible md:mt-0 lg:flex lg:max-h-full lg:h-auto bg-blue-congress z-10000 print:hidden"
57
+ >
58
58
  {{> components/site_header/section_navigation/section_navigation }}
59
59
  </div>
60
60
 
@@ -3,11 +3,11 @@
3
3
  x-data="flyoutHandler"
4
4
  x-ref="{{getRandom}}"
5
5
  id="flyout-{{getRandom}}"
6
- @resize.window.debounce="setFlyoutAnimationStyle();"
6
+ @resize.window.debounce=" dropped = false; setFlyoutAnimationStyle();"
7
7
  {{#if this.showAsFlyout}} x-show="dropped" {{else}} {{#if ../this.selected}} x-show="$screen('lg') ? true : dropped" {{else}} x-show="dropped" {{/if}} {{/if}}
8
8
  {{#if ../_isSectionNav}} x-init="sectionNavFlyoutWatcher()" :class ="shouldFlyoutBeHidden() ? 'hidden' : ''" {{/if}}
9
9
 
10
- class="sb-navigation-flyout bg-white md:filter md:drop-shadow-md lg:absolute
10
+ class="sb-navigation-flyout bg-white md:filter md:drop-shadow-md
11
11
  {{#if ../_isSectionNav}} relative md:top-auto md:left-auto lg:mt-10 w-full transition-all duration-500 ease-in-out
12
12
  {{#unless this.showAsFlyout}}
13
13
  {{#if ../this.selected}}
@@ -15,7 +15,7 @@
15
15
  {{else}} z-10002 lg:left-auto lg:w-auto {{/if}}
16
16
  {{else}} z-10002 lg:left-auto lg:w-auto {{/unless}}
17
17
  {{else}} z-10002 lg:rounded-b absolute w-full top-10 left-0 md:w-80 lg:w-92 md:top-12 lg:px-4 md:mt-0 md:left-0 lg:top-15 lg:left-0 lg:pl-6 divide-y divide-gray-200 tablet:w-half-screen tablet:ml-half-screen tablet:right-0 tablet:left-auto {{/if}}
18
- {{#if this.showAsFlyout}} lg:rounded-b lg:pl-4{{/if}}"
18
+ {{#if this.showAsFlyout}} lg:rounded-b lg:pl-4 lg:absolute{{else}} lg:fixed{{/if}}"
19
19
 
20
20
  aria-labelledby="flyout-{{getRandom}}-1"
21
21
  {{#if this.showAsFlyout}}
@@ -39,7 +39,6 @@
39
39
  </div>
40
40
  {{/unless}}
41
41
  {{/unless}}
42
-
43
42
  <div class="{{#if this.showAsFlyout}}lg:flex lg:flex-row -columnCount--{{this.columnCount}} lg:divide-x lg:divide-gray-200 {{else}} {{#if ../this.selected}} w-full lg:px-10 lg:container {{/if}}{{/if}}">
44
43
  {{#if this.showAsFlyout}}
45
44
  {{#each this.columns}}
@@ -1,27 +1,30 @@
1
1
  <div
2
2
  id="sectionNav"
3
- class="w-full px-0 mt-10 sb-section-navigation md:mt-0 lg:px-10 lg:container bg-blue-congress"
3
+ class="w-full px-0 mt-10 sb-section-navigation md:mt-0 lg:px-10 lg:container "
4
4
  x-effect="$el.setAttribute('aria-expanded', $store.burgeropen || $screen('lg')); $el.setAttribute('aria-hidden', ! ($store.burgeropen || $screen('lg')))"
5
5
  >
6
- <div class="flex content-start mb-0">
7
- <div class="flex w-full">
8
- <span id="sectionNavHeadline" class="hidden">Bereichsnavigation</span>
9
- {{#with this.sectionNavigationSSILinks}}
10
- <ul class="flex flex-col items-center w-full text-left text-white list-none lg:flex-row lg:h-auto lg:mt-1">
11
- {{#each this}}
12
- {{#if (isStorybook)}}
13
- {{> components/site_header/section_navigation/section_navigation_item }}
14
- {{else}}
15
- {{{this}}}
16
- {{/if}}
17
- {{#if @first}}
18
- {{#with ../../this.topTopicsNavigationSSILinks }}
19
- {{> components/site_header/section_navigation/section_navigation_top_topics }}
20
- {{/with}}
21
- {{/if}}
22
- {{/each}}
23
- </ul>
24
- {{/with}}
25
- </div>
6
+ {{#> components/horizontal_scroll_container/horizontal_scroll_container _viewport="lg" _onDarkBackground="true"}}
7
+ <div class="flex w-full">
8
+ <span id="sectionNavHeadline" class="hidden">Bereichsnavigation</span>
9
+
10
+ {{#with this.sectionNavigationSSILinks}}
11
+ <ul class="flex flex-col items-center w-full text-left text-white list-none lg:flex-row lg:h-auto lg:mt-1">
12
+ {{#each this}}
13
+ {{#if (isStorybook)}}
14
+ {{> components/site_header/section_navigation/section_navigation_item }}
15
+ {{else}}
16
+ {{{this}}}
17
+ {{/if}}
18
+ {{#if @first}}
19
+ {{#with ../../this.topTopicsNavigation }}
20
+ {{> components/site_header/section_navigation/section_navigation_top_topics }}
21
+ {{/with}}
22
+ {{/if}}
23
+ {{/each}}
24
+ </ul>
25
+ {{/with}}
26
+
26
27
  </div>
28
+ {{/components/horizontal_scroll_container/horizontal_scroll_container}}
29
+
27
30
  </div>
@@ -3,11 +3,12 @@
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 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">
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:last:pr-8 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"
10
- @click.debounce.100ms="toggle()"
10
+ @click.debounce.100ms="toggle(); correctFlyoutPos()"
11
+ @resize.window="dropped=false; correctFlyoutPos()"
11
12
  :class="dropped ? 'first:font-bold lg:first:font-normal lg:underline' : 'first:font-normal'"
12
13
  class="{{#if this.selected}}-currentSection lg:justify-center {{/if}}link-focus-inset-white js-load pl-4 lg:pl-4 lg:pr-4 flex flex-auto w-full justify-between lg:flex-initial h-10 lg:w-full items-center leading-4 {{#if this.selected}} font-bold{{/if}}"
13
14
  x-effect="$el.setAttribute('aria-expanded', dropped);$el.setAttribute('tabindex', $store.burgeropen || $screen('lg') ? '0' : '-1')"
@@ -1,9 +1,9 @@
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">
1
+ <li class="order-1 w-full lg:mr-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:pb-1 lg:p-0 lg:bg-transparent lg:h-10">
3
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 ">
4
+ <li class="{{#unless @last}}mr-3 {{/unless}}{{#if this.selected}}bg-blue-200 hover:bg-blue-300 text-blue-astronautBlue{{else}}bg-white hover:bg-grey-alto text-blue-congress{{/if}} rounded px-2 pt-px inline-block w-auto tracking-wide text-base leading-5.5 font-heading">
5
5
  {{#decorator 'components/base/link'}}
6
- {{text}}
6
+ {{this.text}}
7
7
  {{/decorator}}
8
8
  </li>
9
9
  {{/each}}
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": "1.12.3",
9
+ "version": "1.14.0",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -104,13 +104,13 @@
104
104
  }
105
105
 
106
106
  .-currentBrand {
107
- @apply before:content-[''] lg:before:absolute lg:before:w-0 lg:before:h-0 lg:before:border-t-0 lg:before:border-r-8 lg:before:border-r-transparent lg:before:border-l-8 lg:before:border-l-white lg:before:border-b-8 lg:before:border-blue-congress lg:before:mt-6;
107
+ @apply before:content-[''] md:before:relative md:before:-right-1/2 md:before:w-0 md:before:h-0 md:before:border-t-0 md:before:border-r-8 md:before:border-r-transparent md:before:border-l-8 md:before:border-l-white md:before:border-b-8 md:before:border-blue-congress md:before:mt-6;
108
108
  }
109
109
  .-currentService {
110
110
  @apply before:content-[''] before:hidden lg:before:flex before:relative before:w-0 before:h-0 before:mr-4 before:mt-0 before:border-r-0 before:border-t-8 before:border-t-transparent before:border-l-8 before:border-l-white before:border-b-8 before:border-b-transparent lg:before:absolute lg:before:w-0 lg:before:h-0 lg:before:mr-0 lg:before:border-t-0 lg:before:border-r-8 lg:before:border-r-transparent lg:before:border-l-8 lg:before:border-l-transparent lg:before:border-b-8 lg:before:border-b-white lg:before:mt-12;
111
111
  }
112
112
  .-currentSection {
113
- @apply before:content-[''] before:w-0 before:h-0 before:mr-2 before:-ml-4 before:border-r-0 before:border-t-7 before:border-t-transparent before:border-l-8 before:border-l-white before:border-b-7 before:border-b-transparent before:mb-0.5 lg:before:absolute lg:before:mb-0 lg:before:w-0 lg:before:h-0 lg:before:mr-0 lg:before:ml-0 lg:before:border-t-0 lg:before:border-r-8 lg:before:border-r-transparent lg:before:border-l-8 lg:before:border-l-transparent lg:before:border-b-8 lg:before:border-b-white lg:before:mt-8;
113
+ @apply lg:!pr-0 after:content-[''] after:w-0 after:h-0 after:mr-2 after:-ml-13-2 after:border-r-0 after:border-t-7 after:border-t-transparent after:border-l-8 after:border-l-white after:border-b-7 after:border-b-transparent after:mb-0.5 lg:after:relative lg:after:right-1/2 lg:after:mb-0 lg:after:w-0 lg:after:h-0 lg:after:mr-0 lg:after:ml-0 lg:after:border-t-0 lg:after:border-r-8 lg:after:border-r-transparent lg:after:border-l-8 lg:after:border-l-transparent lg:after:border-b-8 lg:after:border-b-white lg:after:mt-8;
114
114
  }
115
115
  .-warnung {
116
116
  @apply text-red-600 !important;