hr-design-system-handlebars 1.63.13 → 1.63.14

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v1.63.14 (Fri Apr 12 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - makes the top position dependent on navi height on desktop [#907](https://github.com/mumprod/hr-design-system-handlebars/pull/907) ([@StefanVesper](https://github.com/StefanVesper))
6
+
7
+ #### Authors: 1
8
+
9
+ - SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
10
+
11
+ ---
12
+
1
13
  # v1.63.13 (Fri Apr 12 2024)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -3282,6 +3282,11 @@ article.indexTextDS .indexTextHighlighted .link {
3282
3282
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3283
3283
  transition-duration: 150ms;
3284
3284
  }
3285
+ .transition-\[top\] {
3286
+ transition-property: top;
3287
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3288
+ transition-duration: 150ms;
3289
+ }
3285
3290
  .transition-all {
3286
3291
  transition-property: all;
3287
3292
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -3336,7 +3341,7 @@ article.indexTextDS .indexTextHighlighted .link {
3336
3341
  border-bottom-color: var(--color-secondary-ds);
3337
3342
  }
3338
3343
  .counter-reset {
3339
- counter-reset: cnt1712930751208;
3344
+ counter-reset: cnt1712934666834;
3340
3345
  }
3341
3346
  .hyphens-auto {
3342
3347
  -webkit-hyphens: auto;
@@ -3715,7 +3720,7 @@ article.indexTextDS .indexTextHighlighted .link {
3715
3720
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3716
3721
  }
3717
3722
  .-ordered {
3718
- counter-increment: cnt1712930751208 1;
3723
+ counter-increment: cnt1712934666834 1;
3719
3724
  }
3720
3725
  .-ordered::before {
3721
3726
  position: absolute;
@@ -3731,7 +3736,7 @@ article.indexTextDS .indexTextHighlighted .link {
3731
3736
  letter-spacing: .0125em;
3732
3737
  --tw-text-opacity: 1;
3733
3738
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3734
- content: counter(cnt1712930751208);
3739
+ content: counter(cnt1712934666834);
3735
3740
  }
3736
3741
  /*! ****************************/
3737
3742
  /*! DataPolicy stuff */
@@ -7364,8 +7369,8 @@ article.indexTextDS .indexTextHighlighted .link {
7364
7369
  top: 0px;
7365
7370
  }
7366
7371
 
7367
- .socialShareDesktop\:top-32 {
7368
- top: 8rem;
7372
+ .socialShareDesktop\:top-\[78px\] {
7373
+ top: 78px;
7369
7374
  }
7370
7375
  }
7371
7376
  .\[\&\:has\(\+\.-hideOnMobile\)\]\:order-1[\:has\(\%2B.-hideOnMobile\)] {
@@ -32,10 +32,15 @@
32
32
  },
33
33
  checkIfDesktop() {
34
34
  this.isDesktop = (window.innerWidth >= 1040) ? true : false
35
+ },
36
+ checkNaviHeight() {
37
+ let naviHeight = document.querySelector('#headerWrapper').offsetHeight -20
38
+ if(!this.sharingIsVisible && window.innerWidth >= 1040 ) this.$refs.sharingWrapper.style.top = naviHeight+'px'
35
39
  }
36
40
  }"
37
41
  x-init = "checkIfDesktop()"
38
42
  x-on:resize.window = "checkIfDesktop()"
43
+ x-on:scroll.window.debounce = "checkNaviHeight()"
39
44
  x-on:keydown.escape.prevent.stop="close($refs.button)"
40
45
  x-on:focusin.window="! $refs.panel.contains($event.target) && close()"
41
46
  x-id="['dropdown-button']"
@@ -53,7 +58,7 @@
53
58
 
54
59
  <div :class="{ 'grid grid-page z-100 fixed bottom-feature-box-height socialShareDesktop:bottom-auto socialShareDesktop:top-0 left-0 w-full': !sharingIsVisible }">
55
60
  <div class="" :class="{ 'flex justify-start col-full sm:col-main relative': !sharingIsVisible }">
56
- <div class="flex gap-3" :class="{ 'bg-white w-10 bottom-5 socialShareDesktop:top-32 left-5 shadow-xl socialShareDesktop:-left-2 flex-col absolute': !sharingIsVisible }">
61
+ <div x-ref="sharingWrapper" class="flex gap-3 transition-[top]" :class="{ 'bg-white w-10 bottom-5 socialShareDesktop:top-[78px] left-5 shadow-xl socialShareDesktop:-left-2 flex-col absolute': !sharingIsVisible }">
57
62
  <button
58
63
  class="order-2 h-10 p-2 text-white border bg-button ds-button font-heading hover:bg-button--dark hover:border-button--dark active:bg-button--dark group"
59
64
  x-show="!isDesktop"
@@ -32,10 +32,15 @@
32
32
  },
33
33
  checkIfDesktop() {
34
34
  this.isDesktop = (window.innerWidth >= 1040) ? true : false
35
+ },
36
+ checkNaviHeight() {
37
+ let naviHeight = document.querySelector('#headerWrapper').offsetHeight -20
38
+ if(!this.sharingIsVisible && window.innerWidth >= 1040 ) this.$refs.sharingWrapper.style.top = naviHeight+'px'
35
39
  }
36
40
  }"
37
41
  x-init = "checkIfDesktop()"
38
42
  x-on:resize.window = "checkIfDesktop()"
43
+ x-on:scroll.window.debounce = "checkNaviHeight()"
39
44
  x-on:keydown.escape.prevent.stop="close($refs.button)"
40
45
  x-on:focusin.window="! $refs.panel.contains($event.target) && close()"
41
46
  x-id="['dropdown-button']"
@@ -53,7 +58,7 @@
53
58
 
54
59
  <div :class="{ 'grid grid-page z-100 fixed bottom-feature-box-height socialShareDesktop:bottom-auto socialShareDesktop:top-0 left-0 w-full': !sharingIsVisible }">
55
60
  <div class="" :class="{ 'flex justify-start col-full sm:col-main relative': !sharingIsVisible }">
56
- <div class="flex gap-3" :class="{ 'bg-white w-10 bottom-5 socialShareDesktop:top-32 left-5 shadow-xl socialShareDesktop:-left-2 flex-col absolute': !sharingIsVisible }">
61
+ <div x-ref="sharingWrapper" class="flex gap-3 transition-[top]" :class="{ 'bg-white w-10 bottom-5 socialShareDesktop:top-[78px] left-5 shadow-xl socialShareDesktop:-left-2 flex-col absolute': !sharingIsVisible }">
57
62
  <button
58
63
  class="order-2 h-10 p-2 text-white border bg-button ds-button font-heading hover:bg-button--dark hover:border-button--dark active:bg-button--dark group"
59
64
  x-show="!isDesktop"
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.63.13",
9
+ "version": "1.63.14",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -32,10 +32,15 @@
32
32
  },
33
33
  checkIfDesktop() {
34
34
  this.isDesktop = (window.innerWidth >= 1040) ? true : false
35
+ },
36
+ checkNaviHeight() {
37
+ let naviHeight = document.querySelector('#headerWrapper').offsetHeight -20
38
+ if(!this.sharingIsVisible && window.innerWidth >= 1040 ) this.$refs.sharingWrapper.style.top = naviHeight+'px'
35
39
  }
36
40
  }"
37
41
  x-init = "checkIfDesktop()"
38
42
  x-on:resize.window = "checkIfDesktop()"
43
+ x-on:scroll.window.debounce = "checkNaviHeight()"
39
44
  x-on:keydown.escape.prevent.stop="close($refs.button)"
40
45
  x-on:focusin.window="! $refs.panel.contains($event.target) && close()"
41
46
  x-id="['dropdown-button']"
@@ -53,7 +58,7 @@
53
58
 
54
59
  <div :class="{ 'grid grid-page z-100 fixed bottom-feature-box-height socialShareDesktop:bottom-auto socialShareDesktop:top-0 left-0 w-full': !sharingIsVisible }">
55
60
  <div class="" :class="{ 'flex justify-start col-full sm:col-main relative': !sharingIsVisible }">
56
- <div class="flex gap-3" :class="{ 'bg-white w-10 bottom-5 socialShareDesktop:top-32 left-5 shadow-xl socialShareDesktop:-left-2 flex-col absolute': !sharingIsVisible }">
61
+ <div x-ref="sharingWrapper" class="flex gap-3 transition-[top]" :class="{ 'bg-white w-10 bottom-5 socialShareDesktop:top-[78px] left-5 shadow-xl socialShareDesktop:-left-2 flex-col absolute': !sharingIsVisible }">
57
62
  <button
58
63
  class="order-2 h-10 p-2 text-white border bg-button ds-button font-heading hover:bg-button--dark hover:border-button--dark active:bg-button--dark group"
59
64
  x-show="!isDesktop"