hr-design-system-handlebars 1.52.16 β†’ 1.52.18

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 (35) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/assets/index.css +19 -6
  3. package/dist/assets/js/components/horizontal_scroll_container/horizontal_scroll_container.alpine.js +18 -0
  4. package/dist/views/components/content/copytext/components/cite.hbs +1 -1
  5. package/dist/views/components/content/copytext/components/faq.hbs +2 -10
  6. package/dist/views/components/content/copytext/components/headline.hbs +1 -1
  7. package/dist/views/components/content/copytext/components/jobposting.hbs +1 -9
  8. package/dist/views/components/content/copytext/components/paragraph/paragraph.hbs +3 -0
  9. package/dist/views/components/content/copytext/components/paragraph/paragraph_body.hbs +9 -0
  10. package/dist/views/components/content/copytext/copytext.hbs +1 -1
  11. package/dist/views/components/horizontal_scroll_container/horizontal_scroll_container.hbs +1 -2
  12. package/dist/views/components/horizontal_scroll_container/horizontal_scroll_container_example.hbs +10 -1
  13. package/dist/views_static/components/content/copytext/components/cite.hbs +1 -1
  14. package/dist/views_static/components/content/copytext/components/faq.hbs +2 -10
  15. package/dist/views_static/components/content/copytext/components/headline.hbs +1 -1
  16. package/dist/views_static/components/content/copytext/components/jobposting.hbs +1 -9
  17. package/dist/views_static/components/content/copytext/components/paragraph/paragraph.hbs +3 -0
  18. package/dist/views_static/components/content/copytext/components/paragraph/paragraph_body.hbs +9 -0
  19. package/dist/views_static/components/content/copytext/copytext.hbs +1 -1
  20. package/dist/views_static/components/horizontal_scroll_container/horizontal_scroll_container.hbs +1 -2
  21. package/dist/views_static/components/horizontal_scroll_container/horizontal_scroll_container_example.hbs +10 -1
  22. package/package.json +1 -1
  23. package/src/stories/views/components/content/copytext/components/cite.hbs +1 -1
  24. package/src/stories/views/components/content/copytext/components/faq.hbs +2 -10
  25. package/src/stories/views/components/content/copytext/components/headline.hbs +1 -1
  26. package/src/stories/views/components/content/copytext/components/jobposting.hbs +1 -9
  27. package/src/stories/views/components/content/copytext/components/paragraph/paragraph.hbs +3 -0
  28. package/src/stories/views/components/content/copytext/components/paragraph/paragraph_body.hbs +9 -0
  29. package/src/stories/views/components/content/copytext/copytext.hbs +1 -1
  30. package/src/stories/views/components/horizontal_scroll_container/horizontal_scroll_container.alpine.js +18 -0
  31. package/src/stories/views/components/horizontal_scroll_container/horizontal_scroll_container.hbs +1 -2
  32. package/src/stories/views/components/horizontal_scroll_container/horizontal_scroll_container_example.hbs +10 -1
  33. package/dist/views/components/content/copytext/components/paragraph.hbs +0 -11
  34. package/dist/views_static/components/content/copytext/components/paragraph.hbs +0 -11
  35. package/src/stories/views/components/content/copytext/components/paragraph.hbs +0 -11
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ # v1.52.18 (Fri Jan 26 2024)
2
+
3
+ #### πŸ› Bug Fix
4
+
5
+ - adjust font-sizes [#820](https://github.com/mumprod/hr-design-system-handlebars/pull/820) ([@hanswurstsalat](https://github.com/hanswurstsalat))
6
+
7
+ #### Authors: 1
8
+
9
+ - Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
10
+
11
+ ---
12
+
13
+ # v1.52.17 (Fri Jan 26 2024)
14
+
15
+ #### πŸ› Bug Fix
16
+
17
+ - Scrollpfeil bei hauptnavi sichtbar obwohl nicht nΓΆtig [#817](https://github.com/mumprod/hr-design-system-handlebars/pull/817) ([@vascoeduardo](https://github.com/vascoeduardo))
18
+
19
+ #### Authors: 1
20
+
21
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
22
+
23
+ ---
24
+
1
25
  # v1.52.16 (Fri Jan 26 2024)
2
26
 
3
27
  #### πŸ› Bug Fix
@@ -1665,9 +1665,6 @@ a.link {
1665
1665
  .w-9 {
1666
1666
  width: 2.25rem;
1667
1667
  }
1668
- .w-\[1600px\] {
1669
- width: 1600px;
1670
- }
1671
1668
  .w-\[19px\] {
1672
1669
  width: 19px;
1673
1670
  }
@@ -2897,6 +2894,9 @@ a.link {
2897
2894
  .leading-7 {
2898
2895
  line-height: 1.75rem;
2899
2896
  }
2897
+ .leading-\[1\.625rem\] {
2898
+ line-height: 1.625rem;
2899
+ }
2900
2900
  .leading-\[34px\] {
2901
2901
  line-height: 34px;
2902
2902
  }
@@ -3261,7 +3261,7 @@ a.link {
3261
3261
  border-bottom-color: var(--color-secondary-ds);
3262
3262
  }
3263
3263
  .counter-reset {
3264
- counter-reset: cnt1706271481537;
3264
+ counter-reset: cnt1706285302242;
3265
3265
  }
3266
3266
  .hyphens-auto {
3267
3267
  -webkit-hyphens: auto;
@@ -3563,7 +3563,7 @@ a.link {
3563
3563
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3564
3564
  }
3565
3565
  .-ordered {
3566
- counter-increment: cnt1706271481537 1;
3566
+ counter-increment: cnt1706285302242 1;
3567
3567
  }
3568
3568
  .-ordered::before {
3569
3569
  position: absolute;
@@ -3579,7 +3579,7 @@ a.link {
3579
3579
  letter-spacing: .0125em;
3580
3580
  --tw-text-opacity: 1;
3581
3581
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3582
- content: counter(cnt1706271481537);
3582
+ content: counter(cnt1706285302242);
3583
3583
  }
3584
3584
  /*! ****************************/
3585
3585
  /*! DataPolicy stuff */
@@ -5472,6 +5472,11 @@ a.link {
5472
5472
  line-height: 1.75rem;
5473
5473
  }
5474
5474
 
5475
+ .sm480\:text-3xl {
5476
+ font-size: 1.625rem;
5477
+ line-height: 2rem;
5478
+ }
5479
+
5475
5480
  .sm480\:text-5xl {
5476
5481
  font-size: 2.125rem;
5477
5482
  line-height: 2.375rem;
@@ -5492,6 +5497,14 @@ a.link {
5492
5497
  line-height: 1.6875rem;
5493
5498
  }
5494
5499
 
5500
+ .sm480\:leading-9 {
5501
+ line-height: 2.25rem;
5502
+ }
5503
+
5504
+ .sm480\:leading-normal {
5505
+ line-height: 1.5;
5506
+ }
5507
+
5495
5508
  .sm480\:ar-16-7 {
5496
5509
  aspect-ratio: 16 / 7;
5497
5510
  }
@@ -25,6 +25,24 @@ export default function slider() {
25
25
  checkIfScrollable(e){
26
26
  e.scrollWidth > e.clientWidth ? this.isScrollable=true : this.isScrollable=false;
27
27
  this.arrowsDisplay(e);
28
+ },
29
+ throttle(f, delay) {
30
+ let timer = 0;
31
+ return function(...args) {
32
+ clearTimeout(timer);
33
+ timer = setTimeout(() => f.apply(this, args), delay);
34
+ }
35
+ },
36
+ initialize(e) {
37
+ this.checkIfScrollable(e);
38
+
39
+ const resizeObserver = new ResizeObserver(this.throttle((entries) => {
40
+ entries.forEach(entry => {
41
+ this.checkIfScrollable(e);
42
+ });
43
+ }, 100));
44
+
45
+ resizeObserver.observe(e);
28
46
  }
29
47
  };
30
48
  }
@@ -2,7 +2,7 @@
2
2
  {{> components/base/image/icon _icon="quotation" _addClass="sm:ml-4 mr-2 mt-px float-left text-gray-scorpion w-6 h-6 sm480:w-8 sm480:h-8 fill-current dark:fill-link-dark"}}
3
3
  <span class="sr-only">{{loca "story_cite_intro_sr" }}</span>
4
4
  <blockquote>
5
- <cite class="block mx-8 text-base not-italic sm480:mx-10 font-headingSerif sm:mx-14 sm480:text-xl dark:text-text-dark">{{{this.text}}}</cite>
5
+ <cite class="block mx-8 text-lg leading-[1.625rem] not-italic sm480:mx-10 font-headingSerif sm:mx-14 sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</cite>
6
6
  {{#with this.paragraphProperties}}
7
7
  {{#with this.[0]}}
8
8
  {{#with this.citeAuthor}}
@@ -1,16 +1,8 @@
1
- <h2 class="clear-both text-lg sm480:text-2xl font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
1
+ <h2 class="clear-both text-2xl sm480:text-3xl font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
2
2
  {{#with this.paragraphProperties.[0]}}
3
3
  {{#with this.faqAnswer}}
4
4
  {{#each this.split}}
5
- {{#if this.isText}}
6
- <p class="mt-6 text-base sm480:text-xl dark:text-text-dark">{{{this.text}}}</p>
7
- {{/if}}
8
- {{#if this.isUl}}
9
- <ul class="mt-6 ml-5 text-base list-disc sm480:text-xl dark:text-text-dark">{{{this.text}}}</ul>
10
- {{/if}}
11
- {{#if this.isOl}}
12
- <ol class="mt-6 ml-5 text-base list-decimal sm480:text-xl dark:text-text-dark">{{{this.text}}}</ol>
13
- {{/if}}
5
+ {{> components/content/copytext/components/paragraph/paragraph_body }}
14
6
  {{/each}}
15
7
  {{/with}}
16
8
  {{/with}}
@@ -1 +1 @@
1
- <h2 class="clear-both text-lg sm480:text-2xl font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
1
+ <h2 class="clear-both text-2xl sm480:text-3xl sm480:leading-9 font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
@@ -1,15 +1,7 @@
1
1
  {{#with this.paragraphProperties.[0]}}
2
2
  {{#with this.jobDescription}}
3
3
  {{#each this.split}}
4
- {{#if this.isText}}
5
- <p class="mt-6 text-base sm480:text-xl dark:text-text-dark">{{{this.text}}}</p>
6
- {{/if}}
7
- {{#if this.isUl}}
8
- <ul class="mt-6 ml-5 text-base list-disc sm480:text-xl dark:text-text-dark">{{{this.text}}}</ul>
9
- {{/if}}
10
- {{#if this.isOl}}
11
- <ol class="mt-6 ml-5 text-base list-decimal sm480:text-xl dark:text-text-dark">{{{this.text}}}</ol>
12
- {{/if}}
4
+ {{> components/content/copytext/components/paragraph/paragraph_body }}
13
5
  {{/each}}
14
6
  {{/with}}
15
7
  {{/with}}
@@ -0,0 +1,3 @@
1
+ {{#each this.text.split}}
2
+ {{> components/content/copytext/components/paragraph/paragraph_body }}
3
+ {{/each}}
@@ -0,0 +1,9 @@
1
+ {{#if this.isText}}
2
+ <p class="mt-6 text-lg leading-[1.625rem] sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</p>
3
+ {{/if}}
4
+ {{#if this.isUl}}
5
+ <ul class="mt-6 ml-5 text-lg leading-[1.625rem] list-disc sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ul>
6
+ {{/if}}
7
+ {{#if this.isOl}}
8
+ <ol class="mt-6 ml-5 text-lg leading-[1.625rem] list-decimal sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ol>
9
+ {{/if}}
@@ -104,7 +104,7 @@
104
104
  {{~/with}}
105
105
 
106
106
  {{#if this.isParagraph}}
107
- {{> components/content/copytext/components/paragraph }}
107
+ {{> components/content/copytext/components/paragraph/paragraph }}
108
108
  {{/if}}
109
109
 
110
110
  {{#if this.isCite}}
@@ -1,6 +1,5 @@
1
1
  <div x-data="slider()"
2
- x-init="checkIfScrollable($refs.scrollContainer_{{getRandom}})"
3
- @resize.window="checkIfScrollable($refs.scrollContainer_{{getRandom}})"
2
+ x-init="initialize($refs.scrollContainer_{{getRandom}})"
4
3
  class="relative w-full"
5
4
  ax-load
6
5
  x-ignore
@@ -1,9 +1,18 @@
1
1
  <div class="w-full h-auto mb-10">
2
2
  {{#> components/horizontal_scroll_container/horizontal_scroll_container _viewport="xs" _onDarkBackground="true" _bgcolor="var(--color-navigation-bg)" _iconcolor="navigation-icons"}}
3
3
 
4
- <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white w-[1600px] bg-primary">
4
+ <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white bg-primary">
5
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
6
  </div>
7
7
 
8
+ {{/components/horizontal_scroll_container/horizontal_scroll_container}}
9
+ </div>
10
+ <div class="w-full h-auto mb-10">
11
+ {{#> components/horizontal_scroll_container/horizontal_scroll_container _viewport="xs" _onDarkBackground="true" _bgcolor="var(--color-navigation-bg)" _iconcolor="navigation-icons"}}
12
+
13
+ <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white bg-primary">
14
+ <p class="whitespace-nowrap ">Guten Tag. Dieses Div kann mittels click auf die Pfeiltasten verschoben werden kann.</p>
15
+ </div>
16
+
8
17
  {{/components/horizontal_scroll_container/horizontal_scroll_container}}
9
18
  </div>
@@ -2,7 +2,7 @@
2
2
  {{> components/base/image/icon _icon="quotation" _addClass="sm:ml-4 mr-2 mt-px float-left text-gray-scorpion w-6 h-6 sm480:w-8 sm480:h-8 fill-current dark:fill-link-dark"}}
3
3
  <span class="sr-only">{{loca "story_cite_intro_sr" }}</span>
4
4
  <blockquote>
5
- <cite class="block mx-8 text-base not-italic sm480:mx-10 font-headingSerif sm:mx-14 sm480:text-xl dark:text-text-dark">{{{this.text}}}</cite>
5
+ <cite class="block mx-8 text-lg leading-[1.625rem] not-italic sm480:mx-10 font-headingSerif sm:mx-14 sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</cite>
6
6
  {{#with this.paragraphProperties}}
7
7
  {{#with this.[0]}}
8
8
  {{#with this.citeAuthor}}
@@ -1,16 +1,8 @@
1
- <h2 class="clear-both text-lg sm480:text-2xl font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
1
+ <h2 class="clear-both text-2xl sm480:text-3xl font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
2
2
  {{#with this.paragraphProperties.[0]}}
3
3
  {{#with this.faqAnswer}}
4
4
  {{#each this.split}}
5
- {{#if this.isText}}
6
- <p class="mt-6 text-base sm480:text-xl dark:text-text-dark">{{{this.text}}}</p>
7
- {{/if}}
8
- {{#if this.isUl}}
9
- <ul class="mt-6 ml-5 text-base list-disc sm480:text-xl dark:text-text-dark">{{{this.text}}}</ul>
10
- {{/if}}
11
- {{#if this.isOl}}
12
- <ol class="mt-6 ml-5 text-base list-decimal sm480:text-xl dark:text-text-dark">{{{this.text}}}</ol>
13
- {{/if}}
5
+ {{> components/content/copytext/components/paragraph/paragraph_body }}
14
6
  {{/each}}
15
7
  {{/with}}
16
8
  {{/with}}
@@ -1 +1 @@
1
- <h2 class="clear-both text-lg sm480:text-2xl font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
1
+ <h2 class="clear-both text-2xl sm480:text-3xl sm480:leading-9 font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
@@ -1,15 +1,7 @@
1
1
  {{#with this.paragraphProperties.[0]}}
2
2
  {{#with this.jobDescription}}
3
3
  {{#each this.split}}
4
- {{#if this.isText}}
5
- <p class="mt-6 text-base sm480:text-xl dark:text-text-dark">{{{this.text}}}</p>
6
- {{/if}}
7
- {{#if this.isUl}}
8
- <ul class="mt-6 ml-5 text-base list-disc sm480:text-xl dark:text-text-dark">{{{this.text}}}</ul>
9
- {{/if}}
10
- {{#if this.isOl}}
11
- <ol class="mt-6 ml-5 text-base list-decimal sm480:text-xl dark:text-text-dark">{{{this.text}}}</ol>
12
- {{/if}}
4
+ {{> components/content/copytext/components/paragraph/paragraph_body }}
13
5
  {{/each}}
14
6
  {{/with}}
15
7
  {{/with}}
@@ -0,0 +1,3 @@
1
+ {{#each this.text.split}}
2
+ {{> components/content/copytext/components/paragraph/paragraph_body }}
3
+ {{/each}}
@@ -0,0 +1,9 @@
1
+ {{#if this.isText}}
2
+ <p class="mt-6 text-lg leading-[1.625rem] sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</p>
3
+ {{/if}}
4
+ {{#if this.isUl}}
5
+ <ul class="mt-6 ml-5 text-lg leading-[1.625rem] list-disc sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ul>
6
+ {{/if}}
7
+ {{#if this.isOl}}
8
+ <ol class="mt-6 ml-5 text-lg leading-[1.625rem] list-decimal sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ol>
9
+ {{/if}}
@@ -104,7 +104,7 @@
104
104
  {{~/with}}
105
105
 
106
106
  {{#if this.isParagraph}}
107
- {{> components/content/copytext/components/paragraph }}
107
+ {{> components/content/copytext/components/paragraph/paragraph }}
108
108
  {{/if}}
109
109
 
110
110
  {{#if this.isCite}}
@@ -1,6 +1,5 @@
1
1
  <div x-data="slider()"
2
- x-init="checkIfScrollable($refs.scrollContainer_{{getRandom}})"
3
- @resize.window="checkIfScrollable($refs.scrollContainer_{{getRandom}})"
2
+ x-init="initialize($refs.scrollContainer_{{getRandom}})"
4
3
  class="relative w-full"
5
4
  ax-load
6
5
  x-ignore
@@ -1,9 +1,18 @@
1
1
  <div class="w-full h-auto mb-10">
2
2
  {{#> components/horizontal_scroll_container/horizontal_scroll_container _viewport="xs" _onDarkBackground="true" _bgcolor="var(--color-navigation-bg)" _iconcolor="navigation-icons"}}
3
3
 
4
- <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white w-[1600px] bg-primary">
4
+ <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white bg-primary">
5
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
6
  </div>
7
7
 
8
+ {{/components/horizontal_scroll_container/horizontal_scroll_container}}
9
+ </div>
10
+ <div class="w-full h-auto mb-10">
11
+ {{#> components/horizontal_scroll_container/horizontal_scroll_container _viewport="xs" _onDarkBackground="true" _bgcolor="var(--color-navigation-bg)" _iconcolor="navigation-icons"}}
12
+
13
+ <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white bg-primary">
14
+ <p class="whitespace-nowrap ">Guten Tag. Dieses Div kann mittels click auf die Pfeiltasten verschoben werden kann.</p>
15
+ </div>
16
+
8
17
  {{/components/horizontal_scroll_container/horizontal_scroll_container}}
9
18
  </div>
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.52.16",
9
+ "version": "1.52.18",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -2,7 +2,7 @@
2
2
  {{> components/base/image/icon _icon="quotation" _addClass="sm:ml-4 mr-2 mt-px float-left text-gray-scorpion w-6 h-6 sm480:w-8 sm480:h-8 fill-current dark:fill-link-dark"}}
3
3
  <span class="sr-only">{{loca "story_cite_intro_sr" }}</span>
4
4
  <blockquote>
5
- <cite class="block mx-8 text-base not-italic sm480:mx-10 font-headingSerif sm:mx-14 sm480:text-xl dark:text-text-dark">{{{this.text}}}</cite>
5
+ <cite class="block mx-8 text-lg leading-[1.625rem] not-italic sm480:mx-10 font-headingSerif sm:mx-14 sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</cite>
6
6
  {{#with this.paragraphProperties}}
7
7
  {{#with this.[0]}}
8
8
  {{#with this.citeAuthor}}
@@ -1,16 +1,8 @@
1
- <h2 class="clear-both text-lg sm480:text-2xl font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
1
+ <h2 class="clear-both text-2xl sm480:text-3xl font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
2
2
  {{#with this.paragraphProperties.[0]}}
3
3
  {{#with this.faqAnswer}}
4
4
  {{#each this.split}}
5
- {{#if this.isText}}
6
- <p class="mt-6 text-base sm480:text-xl dark:text-text-dark">{{{this.text}}}</p>
7
- {{/if}}
8
- {{#if this.isUl}}
9
- <ul class="mt-6 ml-5 text-base list-disc sm480:text-xl dark:text-text-dark">{{{this.text}}}</ul>
10
- {{/if}}
11
- {{#if this.isOl}}
12
- <ol class="mt-6 ml-5 text-base list-decimal sm480:text-xl dark:text-text-dark">{{{this.text}}}</ol>
13
- {{/if}}
5
+ {{> components/content/copytext/components/paragraph/paragraph_body }}
14
6
  {{/each}}
15
7
  {{/with}}
16
8
  {{/with}}
@@ -1 +1 @@
1
- <h2 class="clear-both text-lg sm480:text-2xl font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
1
+ <h2 class="clear-both text-2xl sm480:text-3xl sm480:leading-9 font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
@@ -1,15 +1,7 @@
1
1
  {{#with this.paragraphProperties.[0]}}
2
2
  {{#with this.jobDescription}}
3
3
  {{#each this.split}}
4
- {{#if this.isText}}
5
- <p class="mt-6 text-base sm480:text-xl dark:text-text-dark">{{{this.text}}}</p>
6
- {{/if}}
7
- {{#if this.isUl}}
8
- <ul class="mt-6 ml-5 text-base list-disc sm480:text-xl dark:text-text-dark">{{{this.text}}}</ul>
9
- {{/if}}
10
- {{#if this.isOl}}
11
- <ol class="mt-6 ml-5 text-base list-decimal sm480:text-xl dark:text-text-dark">{{{this.text}}}</ol>
12
- {{/if}}
4
+ {{> components/content/copytext/components/paragraph/paragraph_body }}
13
5
  {{/each}}
14
6
  {{/with}}
15
7
  {{/with}}
@@ -0,0 +1,3 @@
1
+ {{#each this.text.split}}
2
+ {{> components/content/copytext/components/paragraph/paragraph_body }}
3
+ {{/each}}
@@ -0,0 +1,9 @@
1
+ {{#if this.isText}}
2
+ <p class="mt-6 text-lg leading-[1.625rem] sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</p>
3
+ {{/if}}
4
+ {{#if this.isUl}}
5
+ <ul class="mt-6 ml-5 text-lg leading-[1.625rem] list-disc sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ul>
6
+ {{/if}}
7
+ {{#if this.isOl}}
8
+ <ol class="mt-6 ml-5 text-lg leading-[1.625rem] list-decimal sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ol>
9
+ {{/if}}
@@ -104,7 +104,7 @@
104
104
  {{~/with}}
105
105
 
106
106
  {{#if this.isParagraph}}
107
- {{> components/content/copytext/components/paragraph }}
107
+ {{> components/content/copytext/components/paragraph/paragraph }}
108
108
  {{/if}}
109
109
 
110
110
  {{#if this.isCite}}
@@ -25,6 +25,24 @@ export default function slider() {
25
25
  checkIfScrollable(e){
26
26
  e.scrollWidth > e.clientWidth ? this.isScrollable=true : this.isScrollable=false;
27
27
  this.arrowsDisplay(e);
28
+ },
29
+ throttle(f, delay) {
30
+ let timer = 0;
31
+ return function(...args) {
32
+ clearTimeout(timer);
33
+ timer = setTimeout(() => f.apply(this, args), delay);
34
+ }
35
+ },
36
+ initialize(e) {
37
+ this.checkIfScrollable(e);
38
+
39
+ const resizeObserver = new ResizeObserver(this.throttle((entries) => {
40
+ entries.forEach(entry => {
41
+ this.checkIfScrollable(e);
42
+ });
43
+ }, 100));
44
+
45
+ resizeObserver.observe(e);
28
46
  }
29
47
  };
30
48
  }
@@ -1,6 +1,5 @@
1
1
  <div x-data="slider()"
2
- x-init="checkIfScrollable($refs.scrollContainer_{{getRandom}})"
3
- @resize.window="checkIfScrollable($refs.scrollContainer_{{getRandom}})"
2
+ x-init="initialize($refs.scrollContainer_{{getRandom}})"
4
3
  class="relative w-full"
5
4
  ax-load
6
5
  x-ignore
@@ -1,9 +1,18 @@
1
1
  <div class="w-full h-auto mb-10">
2
2
  {{#> components/horizontal_scroll_container/horizontal_scroll_container _viewport="xs" _onDarkBackground="true" _bgcolor="var(--color-navigation-bg)" _iconcolor="navigation-icons"}}
3
3
 
4
- <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white w-[1600px] bg-primary">
4
+ <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white bg-primary">
5
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
6
  </div>
7
7
 
8
+ {{/components/horizontal_scroll_container/horizontal_scroll_container}}
9
+ </div>
10
+ <div class="w-full h-auto mb-10">
11
+ {{#> components/horizontal_scroll_container/horizontal_scroll_container _viewport="xs" _onDarkBackground="true" _bgcolor="var(--color-navigation-bg)" _iconcolor="navigation-icons"}}
12
+
13
+ <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white bg-primary">
14
+ <p class="whitespace-nowrap ">Guten Tag. Dieses Div kann mittels click auf die Pfeiltasten verschoben werden kann.</p>
15
+ </div>
16
+
8
17
  {{/components/horizontal_scroll_container/horizontal_scroll_container}}
9
18
  </div>
@@ -1,11 +0,0 @@
1
- {{#each this.text.split}}
2
- {{#if this.isText}}
3
- <p class="mt-6 text-base sm480:text-xl dark:text-text-dark">{{{this.text}}}</p>
4
- {{/if}}
5
- {{#if this.isUl}}
6
- <ul class="mt-6 ml-5 text-base list-disc sm480:text-xl dark:text-text-dark">{{{this.text}}}</ul>
7
- {{/if}}
8
- {{#if this.isOl}}
9
- <ol class="mt-6 ml-5 text-base list-decimal sm480:text-xl dark:text-text-dark">{{{this.text}}}</ol>
10
- {{/if}}
11
- {{/each}}
@@ -1,11 +0,0 @@
1
- {{#each this.text.split}}
2
- {{#if this.isText}}
3
- <p class="mt-6 text-base sm480:text-xl dark:text-text-dark">{{{this.text}}}</p>
4
- {{/if}}
5
- {{#if this.isUl}}
6
- <ul class="mt-6 ml-5 text-base list-disc sm480:text-xl dark:text-text-dark">{{{this.text}}}</ul>
7
- {{/if}}
8
- {{#if this.isOl}}
9
- <ol class="mt-6 ml-5 text-base list-decimal sm480:text-xl dark:text-text-dark">{{{this.text}}}</ol>
10
- {{/if}}
11
- {{/each}}
@@ -1,11 +0,0 @@
1
- {{#each this.text.split}}
2
- {{#if this.isText}}
3
- <p class="mt-6 text-base sm480:text-xl dark:text-text-dark">{{{this.text}}}</p>
4
- {{/if}}
5
- {{#if this.isUl}}
6
- <ul class="mt-6 ml-5 text-base list-disc sm480:text-xl dark:text-text-dark">{{{this.text}}}</ul>
7
- {{/if}}
8
- {{#if this.isOl}}
9
- <ol class="mt-6 ml-5 text-base list-decimal sm480:text-xl dark:text-text-dark">{{{this.text}}}</ol>
10
- {{/if}}
11
- {{/each}}