hr-design-system-handlebars 0.42.2 → 0.42.3

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
+ # v0.42.3 (Tue Apr 12 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - add byline-component [#212](https://github.com/mumprod/hr-design-system-handlebars/pull/212) ([@hanswurstsalat](https://github.com/hanswurstsalat))
6
+
7
+ #### Authors: 1
8
+
9
+ - Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
10
+
11
+ ---
12
+
1
13
  # v0.42.2 (Mon Apr 11 2022)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -1514,15 +1514,15 @@ Ensure the default browser behavior of the `hidden` attribute.
1514
1514
  .-mt-10 {
1515
1515
  margin-top: -2.5rem;
1516
1516
  }
1517
- .mt-1 {
1518
- margin-top: 0.25rem;
1519
- }
1520
1517
  .mb-4 {
1521
1518
  margin-bottom: 1rem;
1522
1519
  }
1523
1520
  .mt-4 {
1524
1521
  margin-top: 1rem;
1525
1522
  }
1523
+ .mt-1 {
1524
+ margin-top: 0.25rem;
1525
+ }
1526
1526
  .mt-0\.5 {
1527
1527
  margin-top: 0.125rem;
1528
1528
  }
@@ -2212,22 +2212,22 @@ Ensure the default browser behavior of the `hidden` attribute.
2212
2212
  --tw-text-opacity: 1;
2213
2213
  color: rgba(0, 82, 147, var(--tw-text-opacity));
2214
2214
  }
2215
- .text-gray-500 {
2215
+ .text-grey-scorpion {
2216
2216
  --tw-text-opacity: 1;
2217
- color: rgba(107, 114, 128, var(--tw-text-opacity));
2217
+ color: rgba(96, 96, 96, var(--tw-text-opacity));
2218
2218
  }
2219
2219
  .text-indigo-500 {
2220
2220
  --tw-text-opacity: 1;
2221
2221
  color: rgba(99, 102, 241, var(--tw-text-opacity));
2222
2222
  }
2223
+ .text-gray-500 {
2224
+ --tw-text-opacity: 1;
2225
+ color: rgba(107, 114, 128, var(--tw-text-opacity));
2226
+ }
2223
2227
  .text-toplineColor {
2224
2228
  color: #006dc1;
2225
2229
  color: var(--color-topline);
2226
2230
  }
2227
- .text-grey-scorpion {
2228
- --tw-text-opacity: 1;
2229
- color: rgba(96, 96, 96, var(--tw-text-opacity));
2230
- }
2231
2231
  .text-opacity-50 {
2232
2232
  --tw-text-opacity: 0.5;
2233
2233
  }
@@ -0,0 +1 @@
1
+ <span class="block mt-2 text-xs text-grey-scorpion font-headingSerif">{{text}}</span>
@@ -11,7 +11,7 @@
11
11
  <section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
12
12
  <div class="hidden mt-2 text-base font-copy md:block">{{shorttext}}</div>
13
13
  {{#if profiles}}
14
- <div class="mt-1 text-sm text-gray-500 font-headingSerif">{{profiles}}</div>
14
+ {{> components/Teaser/Byline text=profiles}}
15
15
  {{/if}}
16
16
  </section>
17
17
  </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": "0.42.2",
9
+ "version": "0.42.3",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "start-storybook -p 6006 public",
@@ -0,0 +1 @@
1
+ <span class="block mt-2 text-xs text-grey-scorpion font-headingSerif">{{text}}</span>
@@ -0,0 +1,35 @@
1
+ import { ArgsTable, Meta, Story, Preview } from "@storybook/addon-docs";
2
+
3
+ import byline from "./Byline.hbs";
4
+
5
+ <Meta
6
+ title="Komponenten/Teaser/Komponenten/Byline"
7
+ argTypes={{
8
+ text: {
9
+ control: "text",
10
+ description: "Bylinetext",
11
+ },
12
+ }}
13
+ />
14
+
15
+ export const Template = ({ text, ...args }) => {
16
+ // You can either use a function to create DOM elements or use a plain html string!
17
+ // return `<span>${topline}</span>`;
18
+ return byline({ text, ...args });
19
+ };
20
+
21
+ # Byline
22
+
23
+ <Preview withToolbar>
24
+ <Story
25
+ name="default"
26
+ args={{
27
+ text:
28
+ "Dies ist die Byline",
29
+ }}
30
+ >
31
+ {Template.bind({})}
32
+ </Story>
33
+ </Preview>
34
+
35
+ <ArgsTable story="default" />
@@ -11,7 +11,7 @@
11
11
  <section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
12
12
  <div class="hidden mt-2 text-base font-copy md:block">{{shorttext}}</div>
13
13
  {{#if profiles}}
14
- <div class="mt-1 text-sm text-gray-500 font-headingSerif">{{profiles}}</div>
14
+ {{> components/Teaser/Byline text=profiles}}
15
15
  {{/if}}
16
16
  </section>
17
17
  </div>