hr-design-system-handlebars 1.35.1 → 1.35.2

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.
@@ -1201,6 +1201,14 @@ video {
1201
1201
  margin-top: 0.5rem;
1202
1202
  margin-bottom: 0.5rem;
1203
1203
  }
1204
+ .my-3 {
1205
+ margin-top: 0.75rem;
1206
+ margin-bottom: 0.75rem;
1207
+ }
1208
+ .my-3\.5 {
1209
+ margin-top: 0.875rem;
1210
+ margin-bottom: 0.875rem;
1211
+ }
1204
1212
  .my-4 {
1205
1213
  margin-top: 1rem;
1206
1214
  margin-bottom: 1rem;
@@ -1327,6 +1335,9 @@ video {
1327
1335
  .mt-10 {
1328
1336
  margin-top: 2.5rem;
1329
1337
  }
1338
+ .mt-11 {
1339
+ margin-top: 2.75rem;
1340
+ }
1330
1341
  .mt-12 {
1331
1342
  margin-top: 3rem;
1332
1343
  }
@@ -1357,6 +1368,12 @@ video {
1357
1368
  .box-content {
1358
1369
  box-sizing: content-box;
1359
1370
  }
1371
+ .line-clamp-2 {
1372
+ overflow: hidden;
1373
+ display: -webkit-box;
1374
+ -webkit-box-orient: vertical;
1375
+ -webkit-line-clamp: 2;
1376
+ }
1360
1377
  .line-clamp-4 {
1361
1378
  overflow: hidden;
1362
1379
  display: -webkit-box;
@@ -1420,9 +1437,6 @@ video {
1420
1437
  .h-3\.5 {
1421
1438
  height: 0.875rem;
1422
1439
  }
1423
- .h-36 {
1424
- height: 9rem;
1425
- }
1426
1440
  .h-4 {
1427
1441
  height: 1rem;
1428
1442
  }
@@ -1517,9 +1531,6 @@ video {
1517
1531
  .w-3\/5 {
1518
1532
  width: 60%;
1519
1533
  }
1520
- .w-36 {
1521
- width: 9rem;
1522
- }
1523
1534
  .w-4 {
1524
1535
  width: 1rem;
1525
1536
  }
@@ -1832,9 +1843,6 @@ video {
1832
1843
  .self-baseline {
1833
1844
  align-self: baseline;
1834
1845
  }
1835
- .justify-self-end {
1836
- justify-self: end;
1837
- }
1838
1846
  .overflow-hidden {
1839
1847
  overflow: hidden;
1840
1848
  }
@@ -1861,9 +1869,6 @@ video {
1861
1869
  text-overflow: ellipsis;
1862
1870
  white-space: nowrap;
1863
1871
  }
1864
- .text-ellipsis {
1865
- text-overflow: ellipsis;
1866
- }
1867
1872
  .hyphens-auto {
1868
1873
  -webkit-hyphens: auto;
1869
1874
  hyphens: auto;
@@ -2431,6 +2436,9 @@ video {
2431
2436
  .pb-10 {
2432
2437
  padding-bottom: 2.5rem;
2433
2438
  }
2439
+ .pb-11 {
2440
+ padding-bottom: 2.75rem;
2441
+ }
2434
2442
  .pb-2 {
2435
2443
  padding-bottom: 0.5rem;
2436
2444
  }
@@ -2581,9 +2589,6 @@ video {
2581
2589
  font-size: 3rem;
2582
2590
  line-height: 1;
2583
2591
  }
2584
- .text-\[40px\] {
2585
- font-size: 40px;
2586
- }
2587
2592
  .text-base {
2588
2593
  font-size: 1rem;
2589
2594
  line-height: 1.375rem;
@@ -2616,9 +2621,6 @@ video {
2616
2621
  .font-semibold {
2617
2622
  font-weight: 600;
2618
2623
  }
2619
- .font-thin {
2620
- font-weight: 100;
2621
- }
2622
2624
  .font-title {
2623
2625
  font-weight: 700;
2624
2626
  font-weight: var(--font-weight-title);
@@ -3013,7 +3015,7 @@ video {
3013
3015
  border-bottom-color: var(--color-secondary-ds);
3014
3016
  }
3015
3017
  .counter-reset {
3016
- counter-reset: cnt1690902834655;
3018
+ counter-reset: cnt1691064710658;
3017
3019
  }
3018
3020
  .hyphens-auto {
3019
3021
  -webkit-hyphens: auto;
@@ -3248,7 +3250,7 @@ video {
3248
3250
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3249
3251
  }
3250
3252
  .-ordered {
3251
- counter-increment: cnt1690902834655 1;
3253
+ counter-increment: cnt1691064710658 1;
3252
3254
  }
3253
3255
  .-ordered::before {
3254
3256
  position: absolute;
@@ -3264,7 +3266,7 @@ video {
3264
3266
  letter-spacing: .0125em;
3265
3267
  --tw-text-opacity: 1;
3266
3268
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3267
- content: counter(cnt1690902834655);
3269
+ content: counter(cnt1691064710658);
3268
3270
  }
3269
3271
  /*! ****************************/
3270
3272
  /*! DataPolicy stuff */
@@ -5221,6 +5223,11 @@ video {
5221
5223
  margin-right: 1.25rem;
5222
5224
  }
5223
5225
 
5226
+ .md\:my-5 {
5227
+ margin-top: 1.25rem;
5228
+ margin-bottom: 1.25rem;
5229
+ }
5230
+
5224
5231
  .md\:-mt-40 {
5225
5232
  margin-top: -10rem;
5226
5233
  }
@@ -5257,6 +5264,10 @@ video {
5257
5264
  margin-top: 1rem;
5258
5265
  }
5259
5266
 
5267
+ .md\:mt-5 {
5268
+ margin-top: 1.25rem;
5269
+ }
5270
+
5260
5271
  .md\:mt-6 {
5261
5272
  margin-top: 1.5rem;
5262
5273
  }
@@ -5304,10 +5315,6 @@ video {
5304
5315
  height: 2rem;
5305
5316
  }
5306
5317
 
5307
- .md\:h-88 {
5308
- height: 22rem;
5309
- }
5310
-
5311
5318
  .md\:h-auto {
5312
5319
  height: auto;
5313
5320
  }
@@ -5353,10 +5360,6 @@ video {
5353
5360
  width: 20rem;
5354
5361
  }
5355
5362
 
5356
- .md\:w-88 {
5357
- width: 22rem;
5358
- }
5359
-
5360
5363
  .md\:w-auto {
5361
5364
  width: auto;
5362
5365
  }
@@ -1,46 +1,35 @@
1
- <h2 class="mb-5 text-lg font-normal md:text-2xl font-headingSerif">{{this.title}}</h2>
2
- <div x-data="{selected:0}">
3
- {{~#with this.copytext }}
4
- {{#each this.copytextParagraph }}
5
- {{#if this.isHeadline}}
6
- <button type="button"
7
- class="w-full text-left"
8
- @click="selected !== {{nextRandom}} ? selected = {{getRandom}} : selected = null"
9
- >
10
- <div class="flex flex-row justify-between border-t hover:text-toplineColor basis-10/12 content-evenly border-gray-alto">
11
- <h3 :class="selected !== {{getRandom}} ? 'overflow-hidden whitespace-nowrap text-ellipsis' : ''" class="self-center my-5 text-base font-normal md:text-lg font-headingSerif">{{{this.text}}}</h3>
12
- <span class="px-5 font-thin text-[40px] justify-self-end" x-text="selected !== {{getRandom}} ? '+' : '-'"></span>
13
- </div>
14
- </button>
15
- {{/if}}
16
- {{#if this.isParagraph}}
17
- <div class="relative flex flex-row w-full overflow-hidden transition-all duration-700 max-h-0 {{#if @last}} border-b border-gray-alto{{/if}}"
18
- style=""
19
- x-ref="container{{getRandom}}"
20
- x-bind:style="selected == {{getRandom}} ? 'max-height: ' + $refs.container{{getRandom}}.scrollHeight + 'px' : ''"
21
- >
22
- {{~#with this.paragraphBoxItem }}
23
- {{~#if this.isImage}}
24
- <figure class="pb-5 pr-5 ar-1-1 w-36 h-36 md:w-88 md:h-88">
25
- {{~> components/base/image/responsive_image this.Image _type="poster" _variant="50" _addClassImg="" ~}}
26
- </figure>
27
- {{/if}}
28
- {{/with}}
29
- <div>
30
- {{#each this.text.split}}
31
- {{#if this.isText}}
32
- <p class="pb-5 text-base md:text-lg">{{{this.text}}}</p>
33
- {{/if}}
34
- {{#if this.isUl}}
35
- <ul class="pb-5 ml-5 text-base list-disc md:text-lg">{{{this.text}}}</ul>
36
- {{/if}}
37
- {{#if this.isOl}}
38
- <ol class="pb-5 ml-5 text-base list-decimal md:text-lg">{{{this.text}}}</ol>
39
- {{/if}}
40
- {{/each}}
41
- </div>
1
+ <h2 class="mb-5 text-lg font-normal mt-11 md:text-2xl font-headingSerif">{{this.title}}</h2>
2
+ <div x-cloak x-data="{selected:0}" class="pb-11">
3
+ {{#each this.copytextParagraph }}
4
+ {{#if this.isHeadline}}
5
+ {{#unless @first}}</div></div>{{/unless}}
6
+ <button type="button"
7
+ class="w-full text-left"
8
+ @click="selected !== {{nextRandom}} ? selected = {{getRandom}} : selected = null"
9
+ >
10
+ <div class="flex flex-row justify-between border-t basis-10/12 content-evenly border-gray-alto">
11
+ <h3 :class="selected !== {{getRandom}} ? 'line-clamp-2' : ''" class="hover:text-toplineColor self-center my-3.5 text-base font-normal md:my-5 md:text-lg font-headingSerif">{{{this.text}}}</h3>
12
+ <span :class="selected == {{getRandom}} ? 'hidden' : ''">
13
+ {{> components/base/image/icon _icon="plus" _addClass="hover:text-toplineColor mx-5 mt-3 md:mt-5 w-7 h-7 fill-current"}}
14
+ </span>
15
+ <span :class="selected !== {{getRandom}} ? 'hidden' : ''">
16
+ {{> components/base/image/icon _icon="minus" _addClass="hover:text-toplineColor mx-5 mt-3 md:mt-5 w-7 h-7 fill-current"}}
17
+ </span>
42
18
  </div>
19
+ </button>
20
+ <div class="relative w-full overflow-hidden transition-all duration-700 max-h-0"
21
+ style=""
22
+ x-ref="container{{getRandom}}"
23
+ x-bind:style="selected == {{getRandom}} ? 'max-height: ' + $refs.container{{getRandom}}.scrollHeight + 'px' : ''"
24
+ >
25
+ <div class="mb-8 accordionItem">
26
+ {{else}}
27
+ {{#if (isStorybook)}}
28
+ {{> components/article/components/accordion/accordion_item }}
29
+ {{else}}
30
+ {{> modules/story/copytext-accordion ~}}
43
31
  {{/if}}
44
- {{/each}}
45
- {{/with}}
32
+ {{#if @last}}</div></div><div class="w-full border-b border-gray-alto"></div>{{/if}}
33
+ {{/if}}
34
+ {{/each}}
46
35
  </div>
@@ -0,0 +1,13 @@
1
+ {{#if this.isParagraph}}
2
+ {{#each this.text.split}}
3
+ {{#if this.isText}}
4
+ <p class="mb-5">{{{this.text}}}</p>
5
+ {{/if}}
6
+ {{#if this.isUl}}
7
+ <ul class="mb-5 ml-5 list-disc">{{{this.text}}}</ul>
8
+ {{/if}}
9
+ {{#if this.isOl}}
10
+ <ol class="mb-5 ml-5 list-decimal">{{{this.text}}}</ol>
11
+ {{/if}}
12
+ {{/each}}
13
+ {{/if}}
@@ -1,46 +1,35 @@
1
- <h2 class="mb-5 text-lg font-normal md:text-2xl font-headingSerif">{{this.title}}</h2>
2
- <div x-data="{selected:0}">
3
- {{~#with this.copytext }}
4
- {{#each this.copytextParagraph }}
5
- {{#if this.isHeadline}}
6
- <button type="button"
7
- class="w-full text-left"
8
- @click="selected !== {{nextRandom}} ? selected = {{getRandom}} : selected = null"
9
- >
10
- <div class="flex flex-row justify-between border-t hover:text-toplineColor basis-10/12 content-evenly border-gray-alto">
11
- <h3 :class="selected !== {{getRandom}} ? 'overflow-hidden whitespace-nowrap text-ellipsis' : ''" class="self-center my-5 text-base font-normal md:text-lg font-headingSerif">{{{this.text}}}</h3>
12
- <span class="px-5 font-thin text-[40px] justify-self-end" x-text="selected !== {{getRandom}} ? '+' : '-'"></span>
13
- </div>
14
- </button>
15
- {{/if}}
16
- {{#if this.isParagraph}}
17
- <div class="relative flex flex-row w-full overflow-hidden transition-all duration-700 max-h-0 {{#if @last}} border-b border-gray-alto{{/if}}"
18
- style=""
19
- x-ref="container{{getRandom}}"
20
- x-bind:style="selected == {{getRandom}} ? 'max-height: ' + $refs.container{{getRandom}}.scrollHeight + 'px' : ''"
21
- >
22
- {{~#with this.paragraphBoxItem }}
23
- {{~#if this.isImage}}
24
- <figure class="pb-5 pr-5 ar-1-1 w-36 h-36 md:w-88 md:h-88">
25
- {{~> components/base/image/responsive_image this.Image _type="poster" _variant="50" _addClassImg="" ~}}
26
- </figure>
27
- {{/if}}
28
- {{/with}}
29
- <div>
30
- {{#each this.text.split}}
31
- {{#if this.isText}}
32
- <p class="pb-5 text-base md:text-lg">{{{this.text}}}</p>
33
- {{/if}}
34
- {{#if this.isUl}}
35
- <ul class="pb-5 ml-5 text-base list-disc md:text-lg">{{{this.text}}}</ul>
36
- {{/if}}
37
- {{#if this.isOl}}
38
- <ol class="pb-5 ml-5 text-base list-decimal md:text-lg">{{{this.text}}}</ol>
39
- {{/if}}
40
- {{/each}}
41
- </div>
1
+ <h2 class="mb-5 text-lg font-normal mt-11 md:text-2xl font-headingSerif">{{this.title}}</h2>
2
+ <div x-cloak x-data="{selected:0}" class="pb-11">
3
+ {{#each this.copytextParagraph }}
4
+ {{#if this.isHeadline}}
5
+ {{#unless @first}}</div></div>{{/unless}}
6
+ <button type="button"
7
+ class="w-full text-left"
8
+ @click="selected !== {{nextRandom}} ? selected = {{getRandom}} : selected = null"
9
+ >
10
+ <div class="flex flex-row justify-between border-t basis-10/12 content-evenly border-gray-alto">
11
+ <h3 :class="selected !== {{getRandom}} ? 'line-clamp-2' : ''" class="hover:text-toplineColor self-center my-3.5 text-base font-normal md:my-5 md:text-lg font-headingSerif">{{{this.text}}}</h3>
12
+ <span :class="selected == {{getRandom}} ? 'hidden' : ''">
13
+ {{> components/base/image/icon _icon="plus" _addClass="hover:text-toplineColor mx-5 mt-3 md:mt-5 w-7 h-7 fill-current"}}
14
+ </span>
15
+ <span :class="selected !== {{getRandom}} ? 'hidden' : ''">
16
+ {{> components/base/image/icon _icon="minus" _addClass="hover:text-toplineColor mx-5 mt-3 md:mt-5 w-7 h-7 fill-current"}}
17
+ </span>
42
18
  </div>
19
+ </button>
20
+ <div class="relative w-full overflow-hidden transition-all duration-700 max-h-0"
21
+ style=""
22
+ x-ref="container{{getRandom}}"
23
+ x-bind:style="selected == {{getRandom}} ? 'max-height: ' + $refs.container{{getRandom}}.scrollHeight + 'px' : ''"
24
+ >
25
+ <div class="mb-8 accordionItem">
26
+ {{else}}
27
+ {{#if (isStorybook)}}
28
+ {{> components/article/components/accordion/accordion_item }}
29
+ {{else}}
30
+ {{> modules/story/copytext-accordion ~}}
43
31
  {{/if}}
44
- {{/each}}
45
- {{/with}}
32
+ {{#if @last}}</div></div><div class="w-full border-b border-gray-alto"></div>{{/if}}
33
+ {{/if}}
34
+ {{/each}}
46
35
  </div>
@@ -0,0 +1,13 @@
1
+ {{#if this.isParagraph}}
2
+ {{#each this.text.split}}
3
+ {{#if this.isText}}
4
+ <p class="mb-5">{{{this.text}}}</p>
5
+ {{/if}}
6
+ {{#if this.isUl}}
7
+ <ul class="mb-5 ml-5 list-disc">{{{this.text}}}</ul>
8
+ {{/if}}
9
+ {{#if this.isOl}}
10
+ <ol class="mb-5 ml-5 list-decimal">{{{this.text}}}</ol>
11
+ {{/if}}
12
+ {{/each}}
13
+ {{/if}}
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.35.1",
9
+ "version": "1.35.2",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -1,6 +1,6 @@
1
1
  {
2
- "title": "Akkordeon Titel",
3
2
  "copytext": {
3
+ "title": "Akkordeon Titel",
4
4
  "copytextParagraph": [
5
5
  {
6
6
  "isHeadline": true,
@@ -33,7 +33,7 @@
33
33
  },
34
34
  {
35
35
  "isOl": true,
36
- "text": "<li>Auch gibt es niemanden,</li><li>der den Schmerz an sich liebt,<li>sucht oder wünscht,</li><li>nur, weil er Schmerz ist</li>"
36
+ "text": "<li>Auch gibt es niemanden,</li><li>der den Schmerz an sich liebt</li>"
37
37
  }
38
38
  ]
39
39
  }
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 27.7.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="minus" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 320 320" style="enable-background:new 0 0 320 320;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill-rule:evenodd;clip-rule:evenodd;}
7
+ </style>
8
+ <path class="st0" d="M250,150H70c-5.5,0-10,4.5-10,10s4.5,10,10,10h180c5.5,0,10-4.5,10-10S255.5,150,250,150z"/>
9
+ </svg>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg id="plus" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 320">
3
+ <defs>
4
+ <style>
5
+ .cls-1 {
6
+ fill-rule: evenodd;
7
+ }
8
+ </style>
9
+ </defs>
10
+ <path class="cls-1" d="m250,150h-80v-80c0-5.52-4.48-10-10-10s-10,4.48-10,10v80h-80c-5.52,0-10,4.48-10,10s4.48,10,10,10h80v80c0,5.52,4.48,10,10,10s10-4.48,10-10v-80h80c5.52,0,10-4.48,10-10s-4.48-10-10-10Z"/>
11
+ </svg>