hr-design-system-handlebars 1.114.102 → 1.114.103

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,16 @@
1
+ # v1.114.103 (Fri Feb 21 2025)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Dpe 3552 b [#1249](https://github.com/mumprod/hr-design-system-handlebars/pull/1249) ([@vascoeduardo](https://github.com/vascoeduardo) [@eduardo-hr](https://github.com/eduardo-hr))
6
+
7
+ #### Authors: 2
8
+
9
+ - [@eduardo-hr](https://github.com/eduardo-hr)
10
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
11
+
12
+ ---
13
+
1
14
  # v1.114.102 (Thu Feb 20 2025)
2
15
 
3
16
  #### ⚠️ Pushed to `main`
@@ -3846,7 +3846,7 @@ article #commentList {
3846
3846
  border-bottom-color: var(--color-secondary-ds);
3847
3847
  }
3848
3848
  .counter-reset {
3849
- counter-reset: cnt1740062506233;
3849
+ counter-reset: cnt1740143574184;
3850
3850
  }
3851
3851
  .animate-delay-100 {
3852
3852
  --tw-animate-delay: 100ms;
@@ -4291,7 +4291,7 @@ html { scroll-behavior: smooth; }
4291
4291
  --tw-ring-color: rgba(255, 255, 255, 0.5);
4292
4292
  }
4293
4293
  .-ordered {
4294
- counter-increment: cnt1740062506233 1;
4294
+ counter-increment: cnt1740143574184 1;
4295
4295
  }
4296
4296
  .-ordered::before {
4297
4297
  position: absolute;
@@ -4309,7 +4309,7 @@ html { scroll-behavior: smooth; }
4309
4309
  --tw-text-opacity: 1;
4310
4310
  color: rgba(0, 0, 0, 1);
4311
4311
  color: rgba(0, 0, 0, var(--tw-text-opacity));
4312
- content: counter(cnt1740062506233);
4312
+ content: counter(cnt1740143574184);
4313
4313
  }
4314
4314
  /*! ****************************/
4315
4315
  /*! DataPolicy stuff */
@@ -0,0 +1,18 @@
1
+ <header class="mt-1 sm:mt-8">
2
+ {{#with this.label}}
3
+ {{#> components/label/label_group _css=(if ../../../this.tickerTopic "mb-2 float-left block" "mb-2")}}
4
+ {{> components/label/label _type=this.type _text=(loca this.loca)}}
5
+ {{/components/label/label_group}}
6
+ {{/with}}
7
+ <h2>
8
+ {{#unless this.label }}
9
+ {{~#if topline}}
10
+ <span class="block mb-2 text-base sm480:text-xl font-heading dark:text-text-dark">{{this.topline}}</span>
11
+ {{/if~}}
12
+ {{/unless~}}
13
+ {{#if ../../this.tickerTopic}}
14
+ {{> components/label/label_byline _css="ml-2 mb-2 pt-1 h-6 inline-block" _text=../../../this.tickerTopic}}
15
+ {{/if}}
16
+ <span class="block text-3xl ui-test-story-title font-headingSerif sm480:text-4xl dark:text-text-dark">{{this.title}}</span>
17
+ </h2>
18
+ </header>
@@ -0,0 +1,18 @@
1
+ <header class="mt-1 sm:mt-8">
2
+ {{#with this.label}}
3
+ {{#> components/label/label_group _css=(if ../../../this.tickerTopic "mb-2 float-left block" "mb-2")}}
4
+ {{> components/label/label _type=this.type _text=(loca this.loca)}}
5
+ {{/components/label/label_group}}
6
+ {{/with}}
7
+ <h2>
8
+ {{#unless this.label }}
9
+ {{~#if topline}}
10
+ <span class="block mb-2 text-base sm480:text-xl font-heading dark:text-text-dark">{{this.topline}}</span>
11
+ {{/if~}}
12
+ {{/unless~}}
13
+ {{#if ../../this.tickerTopic}}
14
+ {{> components/label/label_byline _css="ml-2 mb-2 pt-1 h-6 inline-block" _text=../../../this.tickerTopic}}
15
+ {{/if}}
16
+ <span class="block text-3xl ui-test-story-title font-headingSerif sm480:text-4xl dark:text-text-dark">{{this.title}}</span>
17
+ </h2>
18
+ </header>
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.114.102",
9
+ "version": "1.114.103",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -8,12 +8,23 @@ hbsTemplates['label'] = handlebars.compile(`
8
8
  {{> components/label/label}}
9
9
  `)
10
10
 
11
+ hbsTemplates['label_with_byline'] = handlebars.compile(`
12
+ {{#> components/label/label_group _css="mb-2" _tag=_tag}}
13
+ {{> components/label/label}}
14
+ {{> components/label/label_byline _css="ml-2" _text=_byline}}
15
+ {{/components/label/label_group}}
16
+ `)
17
+
11
18
  const Template = (args) => {
12
19
  // You can either use a function to create DOM elements or use a plain html string!
13
20
  // return `<div>${label}</div>`;
14
21
  return hbsTemplates['label']({ ...args })
15
22
  }
16
-
23
+ const Template_withByline = (args) => {
24
+ // You can either use a function to create DOM elements or use a plain html string!
25
+ // return `<div>${label}</div>`;
26
+ return hbsTemplates['label_with_byline']({ ...args })
27
+ }
17
28
  const snapshotTemplate = (args) => {
18
29
  return getSnapshotsTemplate({ hbsTemplates, args })
19
30
  }
@@ -199,7 +210,17 @@ export const Kurzmeldung = {
199
210
  _text: 'Kurzmeldung',
200
211
  },
201
212
  }
213
+ export const TickerMitByline = {
214
+ render: Template_withByline.bind({}),
215
+ name: 'Ticker mit Byline',
202
216
 
217
+ args: {
218
+ _type: 'ticker',
219
+ _text: 'Ticker',
220
+ _byline: 'Hessen am Morgen',
221
+ _tag: "h3"
222
+ },
223
+ }
203
224
  export const Snapshot = {
204
225
  render: snapshotTemplate.bind({}),
205
226
  name: 'Snapshot',
@@ -0,0 +1,18 @@
1
+ <header class="mt-1 sm:mt-8">
2
+ {{#with this.label}}
3
+ {{#> components/label/label_group _css=(if ../../../this.tickerTopic "mb-2 float-left block" "mb-2")}}
4
+ {{> components/label/label _type=this.type _text=(loca this.loca)}}
5
+ {{/components/label/label_group}}
6
+ {{/with}}
7
+ <h2>
8
+ {{#unless this.label }}
9
+ {{~#if topline}}
10
+ <span class="block mb-2 text-base sm480:text-xl font-heading dark:text-text-dark">{{this.topline}}</span>
11
+ {{/if~}}
12
+ {{/unless~}}
13
+ {{#if ../../this.tickerTopic}}
14
+ {{> components/label/label_byline _css="ml-2 mb-2 pt-1 h-6 inline-block" _text=../../../this.tickerTopic}}
15
+ {{/if}}
16
+ <span class="block text-3xl ui-test-story-title font-headingSerif sm480:text-4xl dark:text-text-dark">{{this.title}}</span>
17
+ </h2>
18
+ </header>