hr-design-system-handlebars 0.42.11 → 0.44.0
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/.storybook/main.js +1 -0
- package/.storybook/preview.js +3 -0
- package/CHANGELOG.md +37 -0
- package/{scripts → build/scripts}/build.js +2 -2
- package/build/scripts/jsoninclude.js +140 -0
- package/config.js +11 -0
- package/dist/assets/index.css +81 -38
- package/dist/views/components/Label.hbs +5 -5
- package/dist/views/components/Teaser/Teaser-alternativ.hbs +16 -0
- package/dist/views/components/Teaser/Teaser-standard.hbs +3 -3
- package/dist/views/components/Teaser/{Byline.hbs → components/Byline.hbs} +1 -1
- package/dist/views/components/Teaser/{Comments.hbs → components/Comments.hbs} +0 -0
- package/{src/stories/views/components/Teaser → dist/views/components/Teaser/components}/Teaser-Heading.hbs +3 -3
- package/dist/views/components/Teaser/{Title.hbs → components/Title.hbs} +0 -0
- package/dist/views/components/Teaser/components/Topline.hbs +6 -0
- package/dist/views/components/Teaser/{teaserText.hbs → components/teaserText.hbs} +0 -0
- package/gulpfile.js +36 -2
- package/package.json +9 -4
- package/src/assets/fixtures/teaser/teaser_comment.json +16 -0
- package/src/assets/fixtures/teaser/teaser_labels.inc.json +18 -0
- package/src/assets/fixtures/teaser/teaser_standard_lg_serif.json +10 -0
- package/src/assets/fixtures/teaser/teaser_standard_md_serif.json +10 -0
- package/src/assets/fixtures/teaser/teaser_standard_sm_serif.json +10 -0
- package/src/assets/fixtures/teaser/teaser_standard_xl_serif.json +10 -0
- package/src/assets/fixtures/teaser/teaser_standard_xxl_serif.json +4 -0
- package/src/assets/fixtures/teaser/teaser_standard_xxl_serif_comments.json +4 -0
- package/src/assets/fixtures/teaser/teaser_standard_xxl_serif_label.json +28 -0
- package/src/assets/fixtures/teaser/teasers.inc.json +254 -0
- package/src/stories/Colors.stories.mdx +28 -28
- package/src/stories/Fixtures.stories.mdx +93 -0
- package/src/stories/Introduction.stories.mdx +85 -93
- package/src/stories/SvgOptimization.stories.mdx +1 -1
- package/src/stories/Typography.stories.mdx +1 -1
- package/src/stories/conventions-and-datastructure.stories.mdx +241 -0
- package/src/stories/views/components/Label.hbs +5 -5
- package/src/stories/views/components/Teaser/Teaser-alternativ.hbs +16 -0
- package/src/stories/views/components/Teaser/Teaser-standard.hbs +3 -3
- package/src/stories/views/components/Teaser/{Byline.hbs → components/Byline.hbs} +1 -1
- package/src/stories/views/components/Teaser/{Byline.stories.mdx → components/Byline.stories.mdx} +3 -3
- package/src/stories/views/components/Teaser/{Comments.hbs → components/Comments.hbs} +0 -0
- package/{dist/views/components/Teaser → src/stories/views/components/Teaser/components}/Teaser-Heading.hbs +3 -3
- package/src/stories/views/components/Teaser/{Teaser-Heading.stories.mdx → components/Teaser-Heading.stories.mdx} +0 -0
- package/src/stories/views/components/Teaser/{Title.hbs → components/Title.hbs} +0 -0
- package/src/stories/views/components/Teaser/{Title.stories.mdx → components/Title.stories.mdx} +0 -0
- package/src/stories/views/components/Teaser/components/Topline.hbs +6 -0
- package/src/stories/views/components/Teaser/{Topline.stories.mdx → components/Topline.stories.mdx} +0 -0
- package/src/stories/views/components/Teaser/{teaserText.hbs → components/teaserText.hbs} +0 -0
- package/src/stories/views/components/Teaser/{teaserText.stories.mdx → components/teaserText.stories.mdx} +0 -0
- package/src/stories/views/components/Teaser/data/teaser_alternativ_lg_serif.json +130 -0
- package/src/stories/views/components/Teaser/data/teaser_alternativ_md_serif.json +130 -0
- package/src/stories/views/components/Teaser/data/teaser_alternativ_sm_serif.json +141 -0
- package/src/stories/views/components/Teaser/data/teaser_alternativ_xl_serif.json +130 -0
- package/src/stories/views/components/Teaser/data/teaser_alternativ_xxl_serif.json +122 -0
- package/src/stories/views/components/Teaser/data/teaser_full.json +8 -33
- package/src/stories/views/components/Teaser/data/teasers.json +324 -0
- package/src/stories/views/components/Teaser/data/ticker_label.json +13 -1
- package/src/stories/views/components/Teaser/fixtures/teaser-standard-lg-serif.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/teaser-standard-md-serif.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/teaser-standard-sm-serif.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/teaser-standard-xl-serif.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/teaser-standard-xxl-serif.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/teaser_comment.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/teaser_commentLink.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/teaser_standard_lg_serif.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/teaser_standard_md_serif.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/teaser_standard_sm_serif.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/teaser_standard_xl_serif.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/teaser_standard_xxl_serif copy.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/teaser_standard_xxl_serif.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/teaser_standard_xxl_serif_comments.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/teaser_standard_xxl_serif_label.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/xxlTeaserStandard--serif.json +1 -0
- package/src/stories/views/components/Teaser/fixtures/xxlTeaserStandard--serifLabel.json +1 -0
- package/src/stories/views/components/Teaser/teaser-alternativ.stories.mdx +81 -0
- package/src/stories/views/components/Teaser/teaser-standard.stories.mdx +49 -54
- package/tailwind.config.js +1 -0
- package/dist/views/components/Teaser/Topline.hbs +0 -6
- package/src/stories/views/components/Teaser/Topline.hbs +0 -6
package/.storybook/main.js
CHANGED
|
@@ -33,6 +33,7 @@ module.exports = {
|
|
|
33
33
|
// Make whatever fine-grained changes you need
|
|
34
34
|
config.resolve.alias = {
|
|
35
35
|
...config.resolve.alias,
|
|
36
|
+
scripts: path.resolve(__dirname, '../scripts'),
|
|
36
37
|
components: path.resolve(__dirname, '../src/stories/views/components'),
|
|
37
38
|
tailwind$: path.resolve(__dirname, '../src/assets/tailwind.css'),
|
|
38
39
|
hrQueryNew$: path.resolve(
|
package/.storybook/preview.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
# v0.44.0 (Mon May 02 2022)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- Feature/dpe 1550 [#224](https://github.com/mumprod/hr-design-system-handlebars/pull/224) ([@szuelch](https://github.com/szuelch))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- [@szuelch](https://github.com/szuelch)
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v0.43.1 (Thu Apr 28 2022)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- Zusatzinformationen neben Label [#223](https://github.com/mumprod/hr-design-system-handlebars/pull/223) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v0.43.0 (Thu Apr 28 2022)
|
|
26
|
+
|
|
27
|
+
#### 🚀 Enhancement
|
|
28
|
+
|
|
29
|
+
- Dpe 1547 - alternative Teaser Init [#222](https://github.com/mumprod/hr-design-system-handlebars/pull/222) (zouhair1 [@vascoeduardo](https://github.com/vascoeduardo))
|
|
30
|
+
|
|
31
|
+
#### Authors: 2
|
|
32
|
+
|
|
33
|
+
- selbaciri (zouhair1)
|
|
34
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
1
38
|
# v0.42.11 (Thu Apr 28 2022)
|
|
2
39
|
|
|
3
40
|
#### 🐛 Bug Fix
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const { execSync } = require('child_process')
|
|
2
|
-
const { resolve
|
|
2
|
+
const { resolve } = require('path')
|
|
3
3
|
|
|
4
|
-
const root = resolve(__dirname, '
|
|
4
|
+
const root = resolve(__dirname, '../..')
|
|
5
5
|
const run = (cmd) => execSync(cmd, { stdio: 'inherit', cwd: root })
|
|
6
6
|
|
|
7
7
|
// Copy hbs files into the dist folder
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* jsoninclude - JSON Parser that includes JSON from other files.
|
|
3
|
+
*/
|
|
4
|
+
;(function () {
|
|
5
|
+
'use strict'
|
|
6
|
+
|
|
7
|
+
const _ = require('underscore'),
|
|
8
|
+
fs = require('fs'),
|
|
9
|
+
options = require('../../config.js')
|
|
10
|
+
|
|
11
|
+
JSON.minify = JSON.minify || require('node-json-minify')
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Set value for a object property path given as String.
|
|
15
|
+
*/
|
|
16
|
+
var setObjectValue = function (obj, value, path) {
|
|
17
|
+
var aPath = path.split('.'),
|
|
18
|
+
parent = obj
|
|
19
|
+
|
|
20
|
+
for (var i = 0; i < aPath.length - 1; i++) {
|
|
21
|
+
if (!parent.hasOwnProperty(aPath[i])) {
|
|
22
|
+
console.warn("Can't set object value. Wrong path: " + path)
|
|
23
|
+
return
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
parent = parent[aPath[i]]
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
parent[aPath[aPath.length - 1]] = value
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Get value for a object property path given as String.
|
|
34
|
+
*/
|
|
35
|
+
var getObjectValue = function (obj, path) {
|
|
36
|
+
var aPath = path.split('.'),
|
|
37
|
+
parent = obj
|
|
38
|
+
|
|
39
|
+
for (var i = 0; i < aPath.length; i++) {
|
|
40
|
+
if (!parent.hasOwnProperty(aPath[i])) {
|
|
41
|
+
console.warn("Can't get object value. Wrong path: " + path)
|
|
42
|
+
return {}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
parent = parent[aPath[i]]
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return parent
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const loadInclude = function (includePath) {
|
|
52
|
+
try {
|
|
53
|
+
return fs.readFileSync(`${options.paths.assets.fixtures}/${includePath}`, 'UTF-8')
|
|
54
|
+
} catch (error) {
|
|
55
|
+
console.error(`Can\'t read file: ${options.paths.assets.fixtures}/${includePath}`)
|
|
56
|
+
return JSON.stringify({})
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* JSON.parse reviver function to execute jsoninclude features.
|
|
62
|
+
*/
|
|
63
|
+
var executeJSONInclude = function (k, v) {
|
|
64
|
+
if (v['@->jsoninclude'] !== undefined && v['@->jsoninclude'] !== '') {
|
|
65
|
+
try {
|
|
66
|
+
//read include
|
|
67
|
+
|
|
68
|
+
let includedStringifiedJson = loadInclude(v['@->jsoninclude'])
|
|
69
|
+
//parse as JSON
|
|
70
|
+
let includeJSON = parse(includedStringifiedJson)
|
|
71
|
+
//get specified content
|
|
72
|
+
if (v['@->contentpath'] !== undefined) {
|
|
73
|
+
includeJSON = getObjectValue(includeJSON, v['@->contentpath'])
|
|
74
|
+
}
|
|
75
|
+
if (v['@->extends'] !== undefined) {
|
|
76
|
+
includeJSON = _.extend(includeJSON, v['@->extends'])
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
//override values
|
|
80
|
+
if (v['@->overrides'] !== undefined) {
|
|
81
|
+
for (var i = 0; i < v['@->overrides'].length; i++) {
|
|
82
|
+
if (
|
|
83
|
+
v['@->overrides'][i]['@->contentpath'] !== undefined &&
|
|
84
|
+
v['@->overrides'][i]['@->value'] !== undefined
|
|
85
|
+
) {
|
|
86
|
+
setObjectValue(
|
|
87
|
+
includeJSON,
|
|
88
|
+
v['@->overrides'][i]['@->value'],
|
|
89
|
+
v['@->overrides'][i]['@->contentpath']
|
|
90
|
+
)
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return includeJSON
|
|
95
|
+
} catch (e) {
|
|
96
|
+
console.error(
|
|
97
|
+
"Can't parse JSONInclude! " + type(e) === '[object Object]'
|
|
98
|
+
? JSON.stringify(e, null, 4)
|
|
99
|
+
: e
|
|
100
|
+
)
|
|
101
|
+
throw {
|
|
102
|
+
orig: e,
|
|
103
|
+
message: e.message,
|
|
104
|
+
json: v,
|
|
105
|
+
via: k,
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
//nothing to do
|
|
111
|
+
return v
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Parse a string as JSON and transforming the value produced by parsing.
|
|
116
|
+
*/
|
|
117
|
+
var parse = function (text) {
|
|
118
|
+
try {
|
|
119
|
+
return JSON.parse(JSON.minify(text), executeJSONInclude)
|
|
120
|
+
} catch (e) {
|
|
121
|
+
console.error(`Can't parse json! ${e}`)
|
|
122
|
+
throw {
|
|
123
|
+
orig: e,
|
|
124
|
+
message: e.message,
|
|
125
|
+
json: text,
|
|
126
|
+
via: 'Bla',
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
module.exports = {
|
|
132
|
+
/**
|
|
133
|
+
* Create jsoninclude Object to parse JSON.
|
|
134
|
+
*
|
|
135
|
+
* @param reader Callback to read include file.
|
|
136
|
+
* @returns jsoninclude Object.
|
|
137
|
+
*/
|
|
138
|
+
parse: parse,
|
|
139
|
+
}
|
|
140
|
+
})()
|
package/config.js
ADDED
package/dist/assets/index.css
CHANGED
|
@@ -1554,6 +1554,12 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1554
1554
|
.mt-6 {
|
|
1555
1555
|
margin-top: 1.5rem;
|
|
1556
1556
|
}
|
|
1557
|
+
.\!mt-4 {
|
|
1558
|
+
margin-top: 1rem !important;
|
|
1559
|
+
}
|
|
1560
|
+
.ml-2 {
|
|
1561
|
+
margin-left: 0.5rem;
|
|
1562
|
+
}
|
|
1557
1563
|
.-mt-2 {
|
|
1558
1564
|
margin-top: -0.5rem;
|
|
1559
1565
|
}
|
|
@@ -1566,6 +1572,24 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1566
1572
|
.-mt-10 {
|
|
1567
1573
|
margin-top: -2.5rem;
|
|
1568
1574
|
}
|
|
1575
|
+
.mr-4 {
|
|
1576
|
+
margin-right: 1rem;
|
|
1577
|
+
}
|
|
1578
|
+
.ml-4 {
|
|
1579
|
+
margin-left: 1rem;
|
|
1580
|
+
}
|
|
1581
|
+
.mt-0\.5 {
|
|
1582
|
+
margin-top: 0.125rem;
|
|
1583
|
+
}
|
|
1584
|
+
.mt-0 {
|
|
1585
|
+
margin-top: 0px;
|
|
1586
|
+
}
|
|
1587
|
+
.mt-10 {
|
|
1588
|
+
margin-top: 2.5rem;
|
|
1589
|
+
}
|
|
1590
|
+
.mb-0 {
|
|
1591
|
+
margin-bottom: 0px;
|
|
1592
|
+
}
|
|
1569
1593
|
.mt-2\.5 {
|
|
1570
1594
|
margin-top: 0.625rem;
|
|
1571
1595
|
}
|
|
@@ -1581,30 +1605,9 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1581
1605
|
.mr-0 {
|
|
1582
1606
|
margin-right: 0px;
|
|
1583
1607
|
}
|
|
1584
|
-
.mt-0\.5 {
|
|
1585
|
-
margin-top: 0.125rem;
|
|
1586
|
-
}
|
|
1587
|
-
.mt-0 {
|
|
1588
|
-
margin-top: 0px;
|
|
1589
|
-
}
|
|
1590
1608
|
.mt-3 {
|
|
1591
1609
|
margin-top: 0.75rem;
|
|
1592
1610
|
}
|
|
1593
|
-
.mr-4 {
|
|
1594
|
-
margin-right: 1rem;
|
|
1595
|
-
}
|
|
1596
|
-
.ml-4 {
|
|
1597
|
-
margin-left: 1rem;
|
|
1598
|
-
}
|
|
1599
|
-
.ml-2 {
|
|
1600
|
-
margin-left: 0.5rem;
|
|
1601
|
-
}
|
|
1602
|
-
.mt-10 {
|
|
1603
|
-
margin-top: 2.5rem;
|
|
1604
|
-
}
|
|
1605
|
-
.mb-0 {
|
|
1606
|
-
margin-bottom: 0px;
|
|
1607
|
-
}
|
|
1608
1611
|
.block {
|
|
1609
1612
|
display: block;
|
|
1610
1613
|
}
|
|
@@ -1684,9 +1687,6 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1684
1687
|
.max-h-0 {
|
|
1685
1688
|
max-height: 0px;
|
|
1686
1689
|
}
|
|
1687
|
-
.max-h-6 {
|
|
1688
|
-
max-height: 1.5rem;
|
|
1689
|
-
}
|
|
1690
1690
|
.max-h-10 {
|
|
1691
1691
|
max-height: 2.5rem;
|
|
1692
1692
|
}
|
|
@@ -1711,9 +1711,6 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1711
1711
|
.w-40 {
|
|
1712
1712
|
width: 10rem;
|
|
1713
1713
|
}
|
|
1714
|
-
.w-5 {
|
|
1715
|
-
width: 1.25rem;
|
|
1716
|
-
}
|
|
1717
1714
|
.w-12 {
|
|
1718
1715
|
width: 3rem;
|
|
1719
1716
|
}
|
|
@@ -1734,6 +1731,9 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1734
1731
|
.w-9 {
|
|
1735
1732
|
width: 2.25rem;
|
|
1736
1733
|
}
|
|
1734
|
+
.w-5 {
|
|
1735
|
+
width: 1.25rem;
|
|
1736
|
+
}
|
|
1737
1737
|
.max-w-full {
|
|
1738
1738
|
max-width: 100%;
|
|
1739
1739
|
}
|
|
@@ -1889,6 +1889,14 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1889
1889
|
.gap-y-9 {
|
|
1890
1890
|
row-gap: 2.25rem;
|
|
1891
1891
|
}
|
|
1892
|
+
.gap-y-4 {
|
|
1893
|
+
row-gap: 1rem;
|
|
1894
|
+
}
|
|
1895
|
+
.gap-x-5 {
|
|
1896
|
+
-webkit-column-gap: 1.25rem;
|
|
1897
|
+
-moz-column-gap: 1.25rem;
|
|
1898
|
+
column-gap: 1.25rem;
|
|
1899
|
+
}
|
|
1892
1900
|
.gap-y-5 {
|
|
1893
1901
|
row-gap: 1.25rem;
|
|
1894
1902
|
}
|
|
@@ -1988,6 +1996,18 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1988
1996
|
--tw-border-opacity: 1;
|
|
1989
1997
|
border-color: rgba(255, 255, 255, var(--tw-border-opacity));
|
|
1990
1998
|
}
|
|
1999
|
+
.bg-red-200 {
|
|
2000
|
+
--tw-bg-opacity: 1;
|
|
2001
|
+
background-color: rgba(254, 202, 202, var(--tw-bg-opacity));
|
|
2002
|
+
}
|
|
2003
|
+
.\!bg-white {
|
|
2004
|
+
--tw-bg-opacity: 1 !important;
|
|
2005
|
+
background-color: rgba(255, 255, 255, var(--tw-bg-opacity)) !important;
|
|
2006
|
+
}
|
|
2007
|
+
.bg-green-200 {
|
|
2008
|
+
--tw-bg-opacity: 1;
|
|
2009
|
+
background-color: rgba(187, 247, 208, var(--tw-bg-opacity));
|
|
2010
|
+
}
|
|
1991
2011
|
.bg-labelMedia {
|
|
1992
2012
|
background-color: #006dc1;
|
|
1993
2013
|
background-color: var(--color-label-media);
|
|
@@ -2083,6 +2103,12 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2083
2103
|
.p-10 {
|
|
2084
2104
|
padding: 2.5rem;
|
|
2085
2105
|
}
|
|
2106
|
+
.p-4 {
|
|
2107
|
+
padding: 1rem;
|
|
2108
|
+
}
|
|
2109
|
+
.\!p-4 {
|
|
2110
|
+
padding: 1rem !important;
|
|
2111
|
+
}
|
|
2086
2112
|
.p-2 {
|
|
2087
2113
|
padding: 0.5rem;
|
|
2088
2114
|
}
|
|
@@ -2264,6 +2290,15 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2264
2290
|
.leading-6 {
|
|
2265
2291
|
line-height: 1.5rem;
|
|
2266
2292
|
}
|
|
2293
|
+
.\!leading-6 {
|
|
2294
|
+
line-height: 1.5rem !important;
|
|
2295
|
+
}
|
|
2296
|
+
.\!leading-8 {
|
|
2297
|
+
line-height: 2rem !important;
|
|
2298
|
+
}
|
|
2299
|
+
.leading-5\.5 {
|
|
2300
|
+
line-height: 1.375rem;
|
|
2301
|
+
}
|
|
2267
2302
|
.leading-10 {
|
|
2268
2303
|
line-height: 2.5rem;
|
|
2269
2304
|
}
|
|
@@ -2274,18 +2309,26 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2274
2309
|
--tw-text-opacity: 1;
|
|
2275
2310
|
color: rgba(124, 58, 237, var(--tw-text-opacity));
|
|
2276
2311
|
}
|
|
2312
|
+
.\!text-red-900 {
|
|
2313
|
+
--tw-text-opacity: 1 !important;
|
|
2314
|
+
color: rgba(127, 29, 29, var(--tw-text-opacity)) !important;
|
|
2315
|
+
}
|
|
2316
|
+
.\!text-green-900 {
|
|
2317
|
+
--tw-text-opacity: 1 !important;
|
|
2318
|
+
color: rgba(20, 83, 45, var(--tw-text-opacity)) !important;
|
|
2319
|
+
}
|
|
2277
2320
|
.text-white {
|
|
2278
2321
|
--tw-text-opacity: 1;
|
|
2279
2322
|
color: rgba(255, 255, 255, var(--tw-text-opacity));
|
|
2280
2323
|
}
|
|
2281
|
-
.text-blue-congress {
|
|
2282
|
-
--tw-text-opacity: 1;
|
|
2283
|
-
color: rgba(0, 82, 147, var(--tw-text-opacity));
|
|
2284
|
-
}
|
|
2285
2324
|
.text-grey-scorpion {
|
|
2286
2325
|
--tw-text-opacity: 1;
|
|
2287
2326
|
color: rgba(96, 96, 96, var(--tw-text-opacity));
|
|
2288
2327
|
}
|
|
2328
|
+
.text-blue-congress {
|
|
2329
|
+
--tw-text-opacity: 1;
|
|
2330
|
+
color: rgba(0, 82, 147, var(--tw-text-opacity));
|
|
2331
|
+
}
|
|
2289
2332
|
.text-toplineColor {
|
|
2290
2333
|
color: #006dc1;
|
|
2291
2334
|
color: var(--color-topline);
|
|
@@ -2509,14 +2552,14 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2509
2552
|
--tw-bg-opacity: 1;
|
|
2510
2553
|
background-color: rgba(0, 82, 147, var(--tw-bg-opacity));
|
|
2511
2554
|
}
|
|
2512
|
-
.hover\:text-toplineColor:hover {
|
|
2513
|
-
color: #006dc1;
|
|
2514
|
-
color: var(--color-topline);
|
|
2515
|
-
}
|
|
2516
2555
|
.hover\:text-white:hover {
|
|
2517
2556
|
--tw-text-opacity: 1;
|
|
2518
2557
|
color: rgba(255, 255, 255, var(--tw-text-opacity));
|
|
2519
2558
|
}
|
|
2559
|
+
.hover\:text-toplineColor:hover {
|
|
2560
|
+
color: #006dc1;
|
|
2561
|
+
color: var(--color-topline);
|
|
2562
|
+
}
|
|
2520
2563
|
.hover\:underline:hover {
|
|
2521
2564
|
-webkit-text-decoration-line: underline;
|
|
2522
2565
|
text-decoration-line: underline;
|
|
@@ -3047,15 +3090,15 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
3047
3090
|
.lg\:pl-1 {
|
|
3048
3091
|
padding-left: 0.25rem;
|
|
3049
3092
|
}
|
|
3050
|
-
.lg\:leading-5 {
|
|
3051
|
-
line-height: 1.25rem;
|
|
3052
|
-
}
|
|
3053
3093
|
.lg\:leading-8 {
|
|
3054
3094
|
line-height: 2rem;
|
|
3055
3095
|
}
|
|
3056
3096
|
.lg\:leading-10 {
|
|
3057
3097
|
line-height: 2.5rem;
|
|
3058
3098
|
}
|
|
3099
|
+
.lg\:leading-5 {
|
|
3100
|
+
line-height: 1.25rem;
|
|
3101
|
+
}
|
|
3059
3102
|
.lg\:text-blue-congress {
|
|
3060
3103
|
--tw-text-opacity: 1;
|
|
3061
3104
|
color: rgba(0, 82, 147, var(--tw-text-opacity));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base leading-
|
|
1
|
+
<span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base leading-5.5 font-heading {{inline-switch type '["media","event","breakingnews","comment","analysis","der-tag-in-hessen","glosse","fragen-und-antworten","infografik","interaktiv","program","download","pm","liveticker","ticker","livestream","live","livechat","buliticker","social-tv","blog"]' '["bg-labelMedia","bg-labelEvent","bg-labelBreakingnews","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelInfografik","bg-labelInfografik","bg-labelProgram","bg-labelDownload","bg-labelPm","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive"]'}}">
|
|
2
2
|
{{text}}
|
|
3
3
|
</span>
|
|
4
4
|
{{~#with this.byline ~}}
|
|
5
|
-
<span class="">
|
|
6
|
-
{{
|
|
5
|
+
<span class="ml-2 text-xs text-grey-scorpion font-headingSerif ">
|
|
6
|
+
{{~#if this.bylineSsi ~}}
|
|
7
7
|
{{{this.bylineSsi}}}
|
|
8
|
-
{{else}}
|
|
8
|
+
{{~else ~}}
|
|
9
9
|
{{this.bylineText}}
|
|
10
|
-
{{
|
|
10
|
+
{{~/if ~}}
|
|
11
11
|
</span>
|
|
12
12
|
{{~/with~}}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 flex-row ","md:col-span-4 flex-row","md:col-span-6 flex-row","flex-row"]'}} ">
|
|
2
|
+
<figure class="{{inline-switch teasersize '["sm", "xxl"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9","basis-3/5 ar-16-9", "ar-16-9"]'}} ">
|
|
3
|
+
{{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="mediaLink" }}
|
|
4
|
+
{{~> components/base/image/responsiveImage this.content.teaserImage _type=this.content.teasertype _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
|
|
5
|
+
{{/components/base/link}}
|
|
6
|
+
</figure>
|
|
7
|
+
<div class="{{inline-switch teasersize '["sm", "xxl"]' '["basis-3/5 md:flex-full" , "basis-2/5"]'}} ">
|
|
8
|
+
<header class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
|
|
9
|
+
{{> components/Teaser/components/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=topline}}
|
|
10
|
+
</header>
|
|
11
|
+
<section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
|
|
12
|
+
{{> components/Teaser/components/teaserText text=shorttext size=teasersize }}
|
|
13
|
+
{{> components/Teaser/components/Byline}}
|
|
14
|
+
</section>
|
|
15
|
+
</div>
|
|
16
|
+
</article>
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
</figure>
|
|
7
7
|
<div class="{{inline-switch teasersize '["sm"]' '["basis-3/5 md:flex-full"]'}} ">
|
|
8
8
|
<header class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
|
|
9
|
-
{{> components/Teaser/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=topline}}
|
|
9
|
+
{{> components/Teaser/components/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=topline}}
|
|
10
10
|
</header>
|
|
11
11
|
<section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
|
|
12
|
-
{{> components/Teaser/teaserText text=shorttext size=teasersize }}
|
|
13
|
-
{{> components/Teaser/Byline}}
|
|
12
|
+
{{> components/Teaser/components/teaserText text=shorttext size=teasersize }}
|
|
13
|
+
{{> components/Teaser/components/Byline}}
|
|
14
14
|
</section>
|
|
15
15
|
</div>
|
|
16
16
|
</article>
|
|
File without changes
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{{#>components/base/link _cssClasses="hover:text-toplineColor" _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="headlineLink" }}
|
|
2
2
|
{{#with this.content.label}}
|
|
3
|
-
<div class="
|
|
3
|
+
<div class="leading-5.5">
|
|
4
4
|
{{> components/Label type=loca text=type}}
|
|
5
5
|
</div>
|
|
6
6
|
{{/with~}}
|
|
7
7
|
<{{~ ../headlineTag }} class="{{../class}}" >
|
|
8
8
|
{{#with this.content.topline}}
|
|
9
|
-
{{> components/Teaser/Topline text=this readMore=../this.readMoreText.readMoreScreenreader}}
|
|
9
|
+
{{> components/Teaser/components/Topline text=this readMore=../this.readMoreText.readMoreScreenreader}}
|
|
10
10
|
{{/with}}
|
|
11
|
-
{{> components/Teaser/Title text=../this.title font=../font size=../size }}
|
|
11
|
+
{{> components/Teaser/components/Title text=../this.title font=../font size=../size }}
|
|
12
12
|
</{{~ ../headlineTag }}>
|
|
13
13
|
{{/components/base/link}}
|
|
File without changes
|
|
File without changes
|
package/gulpfile.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { src, dest, series } = require('gulp')
|
|
1
|
+
const { src, dest, series, watch } = require('gulp')
|
|
2
2
|
const mergeStream = require('merge-stream')
|
|
3
3
|
const glob = require('glob')
|
|
4
4
|
const svgStore = require('gulp-svgstore')
|
|
@@ -6,6 +6,11 @@ const svgMin = require('gulp-svgmin')
|
|
|
6
6
|
const path = require('path')
|
|
7
7
|
const cheerio = require('gulp-cheerio')
|
|
8
8
|
const rename = require('gulp-rename')
|
|
9
|
+
const jsonTransform = require('gulp-json-transform')
|
|
10
|
+
const JSONIncluder = require('./build/scripts/jsoninclude.js')
|
|
11
|
+
const log = require('fancy-log')
|
|
12
|
+
|
|
13
|
+
const options = require('./config.js')
|
|
9
14
|
|
|
10
15
|
// css file paths
|
|
11
16
|
const iconsDirRoot = 'src/assets/icons'
|
|
@@ -148,7 +153,7 @@ function minimizeSvgSrcFiles() {
|
|
|
148
153
|
.pipe(
|
|
149
154
|
cheerio({
|
|
150
155
|
run: function ($, file) {
|
|
151
|
-
|
|
156
|
+
log(file.basename)
|
|
152
157
|
if (
|
|
153
158
|
file.dirname.includes('unweather') &&
|
|
154
159
|
file.basename === 'regiomap.src.svg'
|
|
@@ -199,4 +204,33 @@ function minimizeSvgSrcFiles() {
|
|
|
199
204
|
)
|
|
200
205
|
}
|
|
201
206
|
|
|
207
|
+
function parseJson() {
|
|
208
|
+
return src([
|
|
209
|
+
`${options.paths.assets.fixtures}/**/*.json`,
|
|
210
|
+
`!${options.paths.assets.fixtures}/**/*.inc.json`,
|
|
211
|
+
])
|
|
212
|
+
.pipe(
|
|
213
|
+
jsonTransform(function (data, file) {
|
|
214
|
+
const jsonWithIncludes = JSONIncluder.parse(JSON.stringify(data))
|
|
215
|
+
return jsonWithIncludes
|
|
216
|
+
})
|
|
217
|
+
)
|
|
218
|
+
.pipe(
|
|
219
|
+
rename(function (path) {
|
|
220
|
+
return {
|
|
221
|
+
dirname: `${path.dirname}/fixtures`,
|
|
222
|
+
basename: path.basename,
|
|
223
|
+
extname: path.extname,
|
|
224
|
+
}
|
|
225
|
+
})
|
|
226
|
+
)
|
|
227
|
+
.pipe(dest(options.paths.dist.components))
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
function watchForChanges() {
|
|
231
|
+
watch(`${options.paths.assets.fixtures}/**/*.json`, series(parseJson))
|
|
232
|
+
log('Watching for Changes..\n')
|
|
233
|
+
}
|
|
234
|
+
|
|
202
235
|
exports.default = series(createSvgMaps, createSvgMapsForBrands, minimizeSvgSrcFiles)
|
|
236
|
+
exports.parseJson = series(parseJson, watchForChanges)
|
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.
|
|
9
|
+
"version": "0.44.0",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "start-storybook -p 6006 public",
|
|
@@ -15,11 +15,12 @@
|
|
|
15
15
|
"build-storybook-docs": "build-storybook --docs",
|
|
16
16
|
"build-storybook-docs-with-tailwind": "npm run build:tailwind && npm run build-storybook-docs",
|
|
17
17
|
"build:tailwind": "postcss src/assets/tailwind.css -o dist/assets/index.css",
|
|
18
|
-
"build": "npm run clean && npm run build:tailwind && node ./scripts/build.js",
|
|
18
|
+
"build": "npm run clean && npm run build:tailwind && node ./build/scripts/build.js",
|
|
19
19
|
"chromatic": "npx chromatic --project-token 84f1628f224a",
|
|
20
20
|
"clean": "rimraf dist",
|
|
21
21
|
"release": "npx auto shipit --base-branch=main",
|
|
22
|
-
"optimize-svgs": "gulp"
|
|
22
|
+
"optimize-svgs": "gulp",
|
|
23
|
+
"parseJson": "gulp parseJson"
|
|
23
24
|
},
|
|
24
25
|
"browserslist": [
|
|
25
26
|
"last 2 versions",
|
|
@@ -48,17 +49,20 @@
|
|
|
48
49
|
"chromatic": "^5.6.2",
|
|
49
50
|
"copyfiles": "^2.4.1",
|
|
50
51
|
"cross-env": "^7.0.3",
|
|
52
|
+
"fancy-log": "^2.0.0",
|
|
51
53
|
"file-loader": "^6.2.0",
|
|
52
54
|
"glob": "^7.1.7",
|
|
53
55
|
"gulp": "^4.0.2",
|
|
54
56
|
"gulp-cheerio": "^1.0.0",
|
|
55
57
|
"gulp-cli": "^2.3.0",
|
|
58
|
+
"gulp-json-transform": "^0.4.8",
|
|
56
59
|
"gulp-rename": "^2.0.0",
|
|
57
60
|
"gulp-svgmin": "^4.0.1",
|
|
58
61
|
"gulp-svgstore": "^8.0.0",
|
|
59
62
|
"handlebars": "^4.7.6",
|
|
60
63
|
"handlebars-loader": "^1.7.1",
|
|
61
64
|
"merge-stream": "^2.0.0",
|
|
65
|
+
"node-json-minify": "^3.0.0",
|
|
62
66
|
"path": "^0.12.7",
|
|
63
67
|
"postcss": "^8.4.5",
|
|
64
68
|
"postcss-cli": "^8.3.1",
|
|
@@ -67,7 +71,8 @@
|
|
|
67
71
|
"rimraf": "^3.0.2",
|
|
68
72
|
"storybook-conditional-toolbar-selector": "^1.0.3",
|
|
69
73
|
"tailwindcss": "^3.0.23",
|
|
70
|
-
"tailwindcss-important": "^1.0.0"
|
|
74
|
+
"tailwindcss-important": "^1.0.0",
|
|
75
|
+
"underscore": "^1.13.2"
|
|
71
76
|
},
|
|
72
77
|
"dependencies": {
|
|
73
78
|
"@alpine-collective/toolkit": "^1.0.0",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commentLink": {
|
|
3
|
+
"link": {
|
|
4
|
+
"url": "/teaser1-comments",
|
|
5
|
+
"webviewUrl": "/teaser1-comments#webview",
|
|
6
|
+
"isTargetBlank": false,
|
|
7
|
+
"readMoreText": {
|
|
8
|
+
"readMoreScreenreader": "Zu den Kommentaren des Artikels"
|
|
9
|
+
},
|
|
10
|
+
"content": {
|
|
11
|
+
"commentNumber": "666",
|
|
12
|
+
"hasOneComment": false
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|