hr-design-system-handlebars 1.59.14 → 1.59.16

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 (28) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/assets/brand/you-fm/icons/logo/svgmap.min.svg +1 -1
  3. package/dist/assets/icons/icons/svgmap/copy-ds.svg +21 -0
  4. package/dist/assets/icons/icons/svgmap.min.svg +1 -1
  5. package/dist/assets/index.css +51 -9
  6. package/dist/views/components/content/copytext/components/common/paragraphbox_wrapper.hbs +1 -1
  7. package/dist/views/components/content/copytext/components/infobox.hbs +3 -3
  8. package/dist/views/components/content/copytext/components/paragraph/paragraph_body.hbs +3 -3
  9. package/dist/views/components/social_sharing/social_sharing_compact.hbs +14 -5
  10. package/dist/views/components/social_sharing/social_sharing_compact_icons.hbs +10 -10
  11. package/dist/views/components/teaser/teaser_indextext.hbs +4 -4
  12. package/dist/views_static/components/content/copytext/components/common/paragraphbox_wrapper.hbs +1 -1
  13. package/dist/views_static/components/content/copytext/components/infobox.hbs +3 -3
  14. package/dist/views_static/components/content/copytext/components/paragraph/paragraph_body.hbs +3 -3
  15. package/dist/views_static/components/social_sharing/social_sharing_compact.hbs +14 -5
  16. package/dist/views_static/components/social_sharing/social_sharing_compact_icons.hbs +10 -10
  17. package/dist/views_static/components/teaser/teaser_indextext.hbs +4 -4
  18. package/package.json +1 -1
  19. package/src/assets/brand/you-fm/icons/logo/svgmap.min.svg +1 -1
  20. package/src/assets/css/custom-components.css +14 -1
  21. package/src/assets/icons/icons/svgmap/copy-ds.svg +21 -0
  22. package/src/assets/icons/icons/svgmap.min.svg +1 -1
  23. package/src/stories/views/components/content/copytext/components/common/paragraphbox_wrapper.hbs +1 -1
  24. package/src/stories/views/components/content/copytext/components/infobox.hbs +3 -3
  25. package/src/stories/views/components/content/copytext/components/paragraph/paragraph_body.hbs +3 -3
  26. package/src/stories/views/components/social_sharing/social_sharing_compact.hbs +14 -5
  27. package/src/stories/views/components/social_sharing/social_sharing_compact_icons.hbs +10 -10
  28. package/src/stories/views/components/teaser/teaser_indextext.hbs +4 -4
@@ -1,6 +1,7 @@
1
1
  <div x-data="{
2
2
  open: false,
3
3
  sharingIsVisible: true,
4
+ isDesktop: true,
4
5
  toggle() {
5
6
  var isMobileApple = navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)/i);
6
7
  var isMobileOther= navigator.userAgent.match(/(Android)|(webOS)|(Blackberry)|(Windows Phone)/i);
@@ -28,8 +29,13 @@
28
29
  this.open = false
29
30
 
30
31
  focusAfter && focusAfter.focus()
32
+ },
33
+ checkIfDesktop() {
34
+ this.isDesktop = (window.innerWidth >= 768) ? true : false
31
35
  }
32
36
  }"
37
+ x-init = "checkIfDesktop()"
38
+ x-on:resize.window = "checkIfDesktop()"
33
39
  x-on:keydown.escape.prevent.stop="close($refs.button)"
34
40
  x-on:focusin.window="! $refs.panel.contains($event.target) && close()"
35
41
  x-id="['dropdown-button']"
@@ -37,13 +43,17 @@
37
43
  x-intersect:leave="sharingIsVisible = false"
38
44
  x-intersect:enter="sharingIsVisible = true"
39
45
  >
40
- <div x-text="sharingIsVisible" class="fixed left-1 top-1"></div>
46
+ <div class="fixed left-1 top-1">
47
+ sharingIsVisible:<span x-text="sharingIsVisible" ></span><br>
48
+ open:<span x-text="open" ></span><br>
49
+ isDesktop:<span x-text="isDesktop" ></span>
50
+ </div>
41
51
  <div :class="{ 'grid grid-page z-100 fixed bottom-feature-box-height left-0 w-full': !sharingIsVisible }">
42
52
  <div class="" :class="{ 'flex justify-start col-full sm:col-main relative': !sharingIsVisible }">
43
- <div class="flex gap-3" :class="{ 'bottom-5 left-5 flex-col absolute bg-white': !sharingIsVisible }">
53
+ <div class="flex gap-3" :class="{ 'bottom-5 -left-8 flex-col absolute bg-white': !sharingIsVisible }">
44
54
  <button
45
55
  class="order-2 w-8 h-8 ds-button font-heading active:scale-95 hover:scale-105 group"
46
- :class="{ 'w-8 h-8': sharingIsVisible, 'w-12 h-12': !sharingIsVisible }"
56
+ x-show="!isDesktop"
47
57
  x-ref="button"
48
58
  x-on:click="toggle()"
49
59
  :aria-expanded="open"
@@ -55,11 +65,10 @@
55
65
  <!-- Panel -->
56
66
  <div
57
67
  x-ref="panel"
58
- x-show="open"
68
+ x-show="open || isDesktop"
59
69
  x-transition.origin.right
60
70
  x-on:click.outside="close($refs.button)"
61
71
  :id="$id('dropdown-button')"
62
- style="display: none;"
63
72
  class="bg-white"
64
73
  >
65
74
  <ul class="flex gap-3" :class="{ 'flex-col': ! sharingIsVisible }">
@@ -1,6 +1,6 @@
1
1
  <li>
2
2
  <a class="{{#with ../../this.content.trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
3
- :class="{ 'w-8 h-8': sharingIsVisible, 'w-12 h-12': !sharingIsVisible }"
3
+
4
4
  href="{{this}}"
5
5
  target="_blank"
6
6
  rel="noopener noreferrer"
@@ -9,12 +9,12 @@
9
9
  data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::X"}]}'
10
10
  {{/with}}
11
11
  >
12
- {{~> components/base/image/icon _addClass="w-full h-full fill-[#0f1419] " _icon="x" _iconmap="icons" ~}}
12
+ {{~> components/base/image/icon _addClass="w-full h-full fill-link hover:fill-[#0f1419] " _icon="x-ds" _iconmap="icons" ~}}
13
13
  </a>
14
14
  </li>
15
15
  <li class="">
16
16
  <a class="{{#with ../../this.content.trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
17
- :class="{ 'w-8 h-8': sharingIsVisible, 'w-12 h-12': !sharingIsVisible }"
17
+
18
18
  href="{{this}}"
19
19
  target="_blank"
20
20
  rel="noopener noreferrer"
@@ -23,12 +23,12 @@
23
23
  data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::facebook"}]}'
24
24
  {{/with}}
25
25
  >
26
- {{~> components/base/image/icon _addClass="w-full h-full fill-[#3b5999] " _icon="facebook" _iconmap="icons" ~}}
26
+ {{~> components/base/image/icon _addClass="w-full h-full fill-link hover:fill-[#3b5999] " _icon="facebook-ds" _iconmap="icons" ~}}
27
27
  </a>
28
28
  </li>
29
29
  <li class="">
30
30
  <a class="{{#with ../../this.content.trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
31
- :class="{ 'w-8 h-8': sharingIsVisible, 'w-12 h-12': !sharingIsVisible }"
31
+
32
32
  href="{{this}}"
33
33
  target="_blank"
34
34
  rel="noopener noreferrer"
@@ -37,30 +37,30 @@
37
37
  data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::whatsapp"}]}'
38
38
  {{/with}}
39
39
  >
40
- {{~> components/base/image/icon _addClass="w-full h-full fill-[#4dc247] " _icon="whatsapp" _iconmap="icons" ~}}
40
+ {{~> components/base/image/icon _addClass="w-full h-full fill-link hover:fill-[#4dc247] " _icon="whatsapp-ds" _iconmap="icons" ~}}
41
41
  </a>
42
42
  </li>
43
43
  <li class="">
44
44
  <a class="{{#with ../../this.content.trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
45
- :class="{ 'w-8 h-8': sharingIsVisible, 'w-12 h-12': !sharingIsVisible }"
45
+
46
46
  href="{{this}}"
47
47
  title="{{loca "share_mail_linktitle" }}"
48
48
  {{#with ../../this.content.trackingData}}
49
49
  data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::mailto"}]}'
50
50
  {{/with}}
51
51
  >
52
- {{~> components/base/image/icon _addClass="w-full h-full fill-[#006dc1] " _icon="mail" _iconmap="icons" ~}}
52
+ {{~> components/base/image/icon _addClass="w-full h-full fill-link hover:fill-black " _icon="kontakt-ds" _iconmap="icons" ~}}
53
53
  </a>
54
54
  </li>
55
55
  <li class="">
56
56
  <a class="{{#with ../this.content.trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
57
- :class="{ 'w-8 h-8': sharingIsVisible, 'w-12 h-12': !sharingIsVisible }"
57
+
58
58
  href="javascript:window.print()"
59
59
  title="{{loca "share_print_linktitle" }}"
60
60
  {{#with ../this.content.trackingData}}
61
61
  data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::printbutton"}]}'
62
62
  {{/with}}
63
63
  >
64
- {{~> components/base/image/icon _addClass="w-full h-full fill-[#606060] " _icon="print" _iconmap="icons" ~}}
64
+ {{~> components/base/image/icon _addClass="w-full h-full fill-link hover:fill-link-dark " _icon="copy-ds" _iconmap="icons" ~}}
65
65
  </a>
66
66
  </li>
@@ -1,5 +1,5 @@
1
1
  <article
2
- class='indexText rounded-tl-hr rounded-br-hr mx-5 sm:mx-0 p-8 md:p-10 relative col-span-12 flex flex-col gap-x-4
2
+ class='indexTextDS rounded-tl-hr rounded-br-hr mx-5 sm:mx-0 p-8 md:p-10 relative col-span-12 flex flex-col gap-x-4
3
3
  {{~inline-switch this.teaserSize '["50"]' '[" md:col-span-6",""]'}}
4
4
  {{~inline-switch
5
5
  this.teaserType
@@ -16,10 +16,10 @@
16
16
  {{this.title}}
17
17
  </h3>
18
18
  {{/if}}
19
- <p
19
+ <div
20
20
  class='{{#if this.title}}mt-6 {{/if}}text-sm md:text-base font-copy
21
- {{~inline-switch this.teaserType '["highlighted"]' '[" text-white",""]'}}'
21
+ {{~inline-switch this.teaserType '["highlighted"]' '[" text-white indexTextHighlighted",""]'}}'
22
22
  >
23
23
  {{{this.shorttext}}}
24
- </p>
24
+ </div>
25
25
  </article>