hr-design-system-handlebars 1.110.7 → 1.110.9
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/preview.js +1 -1
- package/CHANGELOG.md +24 -0
- package/dist/assets/index.css +76 -74
- package/dist/views/components/content/copytext/components/audio.hbs +2 -2
- package/dist/views/components/content/copytext/components/audioeventlivestream.hbs +2 -2
- package/dist/views/components/content/copytext/components/cite.hbs +1 -1
- package/dist/views/components/content/copytext/components/common/paragraphbox_wrapper.hbs +1 -1
- package/dist/views/components/content/copytext/components/image/image.hbs +4 -4
- package/dist/views/components/content/copytext/components/podcastepisode.hbs +1 -1
- package/dist/views/components/content/copytext/components/posterteaser.hbs +1 -1
- package/dist/views/components/content/copytext/components/video/video.hbs +2 -2
- package/dist/views/components/content/copytext/components/videolivestream.hbs +2 -2
- package/dist/views/components/forms/backgroundBox.hbs +1 -1
- package/dist/views/components/forms/choice.hbs +5 -5
- package/dist/views/components/forms/choiceGroup.hbs +3 -3
- package/dist/views/components/forms/controls.hbs +1 -1
- package/dist/views/components/forms/error_icon.hbs +1 -1
- package/dist/views/components/forms/fields.hbs +1 -1
- package/dist/views/components/forms/input.hbs +14 -14
- package/dist/views/components/forms/select.hbs +9 -9
- package/dist/views/components/forms/textarea.hbs +7 -7
- package/dist/views/components/forms/webform.hbs +1 -12
- package/dist/views/components/podcast/components/podcast_player_ui.hbs +1 -1
- package/dist/views/components/podcast/components/podcast_subscribe_button.hbs +1 -1
- package/dist/views_static/components/content/copytext/components/audio.hbs +2 -2
- package/dist/views_static/components/content/copytext/components/audioeventlivestream.hbs +2 -2
- package/dist/views_static/components/content/copytext/components/cite.hbs +1 -1
- package/dist/views_static/components/content/copytext/components/common/paragraphbox_wrapper.hbs +1 -1
- package/dist/views_static/components/content/copytext/components/image/image.hbs +4 -4
- package/dist/views_static/components/content/copytext/components/podcastepisode.hbs +1 -1
- package/dist/views_static/components/content/copytext/components/posterteaser.hbs +1 -1
- package/dist/views_static/components/content/copytext/components/video/video.hbs +2 -2
- package/dist/views_static/components/content/copytext/components/videolivestream.hbs +2 -2
- package/dist/views_static/components/forms/backgroundBox.hbs +1 -1
- package/dist/views_static/components/forms/choice.hbs +5 -5
- package/dist/views_static/components/forms/choiceGroup.hbs +3 -3
- package/dist/views_static/components/forms/controls.hbs +1 -1
- package/dist/views_static/components/forms/error_icon.hbs +1 -1
- package/dist/views_static/components/forms/fields.hbs +1 -1
- package/dist/views_static/components/forms/input.hbs +14 -14
- package/dist/views_static/components/forms/select.hbs +9 -9
- package/dist/views_static/components/forms/textarea.hbs +7 -7
- package/dist/views_static/components/forms/webform.hbs +1 -12
- package/dist/views_static/components/podcast/components/podcast_player_ui.hbs +1 -1
- package/dist/views_static/components/podcast/components/podcast_subscribe_button.hbs +1 -1
- package/package.json +1 -1
- package/src/assets/fixtures/content/copytext/components/form/form_input.json +16 -16
- package/src/assets/fixtures/content/copytext/copytext_webform.json +4 -0
- package/src/assets/tailwind.css +20 -24
- package/src/stories/views/components/content/copytext/components/audio.hbs +2 -2
- package/src/stories/views/components/content/copytext/components/audioeventlivestream.hbs +2 -2
- package/src/stories/views/components/content/copytext/components/cite.hbs +1 -1
- package/src/stories/views/components/content/copytext/components/common/paragraphbox_wrapper.hbs +1 -1
- package/src/stories/views/components/content/copytext/components/image/image.hbs +4 -4
- package/src/stories/views/components/content/copytext/components/podcastepisode.hbs +1 -1
- package/src/stories/views/components/content/copytext/components/posterteaser.hbs +1 -1
- package/src/stories/views/components/content/copytext/components/video/video.hbs +2 -2
- package/src/stories/views/components/content/copytext/components/videolivestream.hbs +2 -2
- package/src/stories/views/components/content/copytext/fixtures/copytext_webform.json +1 -1
- package/src/stories/views/components/forms/backgroundBox.hbs +1 -1
- package/src/stories/views/components/forms/choice.hbs +5 -5
- package/src/stories/views/components/forms/choiceGroup.hbs +3 -3
- package/src/stories/views/components/forms/controls.hbs +1 -1
- package/src/stories/views/components/forms/error_icon.hbs +1 -1
- package/src/stories/views/components/forms/fields.hbs +1 -1
- package/src/stories/views/components/forms/input.hbs +14 -14
- package/src/stories/views/components/forms/select.hbs +9 -9
- package/src/stories/views/components/forms/textarea.hbs +7 -7
- package/src/stories/views/components/forms/webform.hbs +1 -12
- package/src/stories/views/components/podcast/components/podcast_player_ui.hbs +1 -1
- package/src/stories/views/components/podcast/components/podcast_subscribe_button.hbs +1 -1
- package/tailwind.config.js +4 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<div class="
|
|
1
|
+
<div class="relative flex flex-col w-full mb-5 {{_wrapperClass}}"
|
|
2
2
|
ax-load
|
|
3
3
|
x-data="inputHandler('input{{nextRandom}}','{{_formId}}','{{_errorMandatory}}',{{#if _isEmail}}'email'{{else}}'{{_type}}'{{/if}},'{{_errorEmail}}','{{#if _formField.forHtmlAttribute}}{{_formField.forHtmlAttribute}}{{else}}{{#if _value}}{{_value}}{{else}}{{_defaultValue}}{{/if}}{{/if}}','{{_name}}')"
|
|
4
4
|
x-init="validateField()"
|
|
5
5
|
x-ignore
|
|
6
6
|
>
|
|
7
|
-
<input class="relative w-full h-12 pt-4 pl-4
|
|
8
|
-
:class="{'border-
|
|
7
|
+
<input class="relative w-full h-12 pt-4 pl-4 placeholder-transparent bg-white text-text dark:bg-black dark:text-text-dark autofill:shadow-autofill border-link dark:border-link-dark pr-9 peer border-y focus:border-y-2 border-t-transparent dark:border-t-transparent focus:outline-none"
|
|
8
|
+
:class="{'border-link dark:border-link-dark': hideError(),'border-error dark:border-error': hideDescription() }"
|
|
9
9
|
x-model="input{{getRandom}}"
|
|
10
10
|
id="input{{getRandom}}"
|
|
11
11
|
x-bind:data-is-valid="valid ? 'true' : 'false'"
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
data-hr-search-suggest='{"templateUrl":"{{resourceUrl "suche/index~suggest.jsp"}}"}'{{/if}}
|
|
43
43
|
>
|
|
44
44
|
|
|
45
|
-
<label for="input{{getRandom}}" class="{{_labelClass}} absolute left-[16px] top-px translate-y-0 translate-x-0 scale-75 text-gray-
|
|
45
|
+
<label for="input{{getRandom}}" class="{{_labelClass}} absolute left-[16px] top-px translate-y-0 translate-x-0 scale-75 text-gray-scorpion dark:text-text-dark
|
|
46
46
|
|
|
47
47
|
peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-x-0 peer-placeholder-shown:translate-y-3
|
|
48
48
|
|
|
49
|
-
peer-focus:translate-x-0 peer-focus:-translate-y-0 peer-focus:scale-75 peer-focus:text-
|
|
49
|
+
peer-focus:translate-x-0 peer-focus:-translate-y-0 peer-focus:scale-75 peer-focus:text-link peer-focus:dark:text-text-dark origin-top-left transform transition-transform">
|
|
50
50
|
{{#if _hasBody}}
|
|
51
51
|
{{decorator_body}}
|
|
52
52
|
{{else}}
|
|
@@ -66,30 +66,30 @@
|
|
|
66
66
|
|
|
67
67
|
<div class="flex items-end justify-between h-5 font-heading">
|
|
68
68
|
{{#if _description}}
|
|
69
|
-
<div class="pl-4 text-xs text-gray-
|
|
69
|
+
<div class="pl-4 text-xs text-gray-scorpion dark:text-text-dark" :class="{'hidden': hideDescription() }">{{_description}}</div>
|
|
70
70
|
{{/if}}
|
|
71
71
|
|
|
72
|
-
<div class="hidden pl-4 text-xs text-
|
|
72
|
+
<div class="hidden pl-4 text-xs text-error" :class="{'hidden': hideError()}" x-text="errorMessage"></div>
|
|
73
73
|
|
|
74
74
|
</div>
|
|
75
75
|
<div class="hidden">
|
|
76
76
|
<div class="px-4 py-2 font-bold text-white bg-red-500 rounded-t">
|
|
77
77
|
DEBUG
|
|
78
78
|
</div>
|
|
79
|
-
<div class="px-4 py-3
|
|
79
|
+
<div class="px-4 py-3 bg-red-100 border border-t-0 border-red-400 rounded-b text-error">
|
|
80
80
|
<div>name:<span x-text="name" class="font-bold" ></span></div>
|
|
81
|
-
<div>isFocused:<span x-text="isFocused" class="font-bold" :class="isFocused ? 'text-green-800' : 'text-
|
|
82
|
-
<div>wasFocused:<span x-text="wasFocused" class="font-bold" :class="wasFocused ? 'text-green-800' : 'text-
|
|
83
|
-
<div>valid:<span x-text="valid" class="font-bold" :class="valid ? 'text-green-800' : 'text-
|
|
81
|
+
<div>isFocused:<span x-text="isFocused" class="font-bold" :class="isFocused ? 'text-green-800' : 'text-error'"></span></div>
|
|
82
|
+
<div>wasFocused:<span x-text="wasFocused" class="font-bold" :class="wasFocused ? 'text-green-800' : 'text-error'"></span></div>
|
|
83
|
+
<div>valid:<span x-text="valid" class="font-bold" :class="valid ? 'text-green-800' : 'text-error'"></span></div>
|
|
84
84
|
|
|
85
|
-
<div>hideDescription:<span x-text="hideDescription()" class="font-bold" :class="hideDescription() ? 'text-green-800' : 'text-
|
|
86
|
-
<div>hideError:<span x-text="hideError()" class="font-bold" :class="hideError() ? 'text-green-800' : 'text-
|
|
85
|
+
<div>hideDescription:<span x-text="hideDescription()" class="font-bold" :class="hideDescription() ? 'text-green-800' : 'text-error'"></span></div>
|
|
86
|
+
<div>hideError:<span x-text="hideError()" class="font-bold" :class="hideError() ? 'text-green-800' : 'text-error'"></span></div>
|
|
87
87
|
<div>input.length:<span x-text="input{{getRandom}}.length " class="font-bold" ></span></div>
|
|
88
88
|
<div>input:<span x-text="input{{getRandom}}" class="font-bold" ></span></div>
|
|
89
89
|
<div>errorMessage:<span x-text="errorMessage" class="font-bold" ></span></div>
|
|
90
90
|
<div>valueMissing:<span x-text="valueMissing" class="font-bold" ></span></div>
|
|
91
91
|
<div>typeMismatch:<span x-text="typeMismatch" class="font-bold" ></span></div>
|
|
92
|
-
<div>submissionAttempted[form{{getRandom}}]:<span x-text="getSubmissionAttempted()" class="font-bold" :class="getSubmissionAttempted() ? 'text-green-800' : 'text-
|
|
92
|
+
<div>submissionAttempted[form{{getRandom}}]:<span x-text="getSubmissionAttempted()" class="font-bold" :class="getSubmissionAttempted() ? 'text-green-800' : 'text-error'"></span></div>
|
|
93
93
|
|
|
94
94
|
</div>
|
|
95
95
|
</div>
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
x-ignore
|
|
5
5
|
>
|
|
6
6
|
<select
|
|
7
|
-
class="relative w-full h-12 pt-4 pl-4
|
|
8
|
-
:class="{'border-
|
|
7
|
+
class="relative w-full h-12 pt-4 pl-4 bg-white appearance-none text-text dark:bg-black dark:text-text-dark border-link bg- pr-9 peer border-y focus:border-y-2 border-t-transparent dark:border-t-transparent focus:outline-none"
|
|
8
|
+
:class="{'border-link dark:border-link-dark': hideError(),'border-error dark:border-error': hideDescription() }"
|
|
9
9
|
x-model="select{{getRandom}}"
|
|
10
10
|
id="select{{getRandom}}"
|
|
11
11
|
title="{{#if _locaKey}}{{loca _locaKey}}{{else}}{{#if _Label}}{{_label}}{{#if _required}}*{{/if}}{{/if}}{{/if}}"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
x-on:change ="select{{getRandom}}.value != '' ? valid = true : valid = false;"
|
|
18
18
|
{{/if}}
|
|
19
19
|
>
|
|
20
|
-
<option class="text-
|
|
20
|
+
<option class="text-text dark:text-text-dark bg-highlight-1 dark:bg-highlight-1-dark" value=""{{#if _required}} disabled{{/if}} selected>
|
|
21
21
|
{{#if _locaKey}}
|
|
22
22
|
{{loca _locaKey}}{{#if _required}}*{{/if}}
|
|
23
23
|
{{else}}
|
|
@@ -28,27 +28,27 @@
|
|
|
28
28
|
</option>
|
|
29
29
|
{{#if _options}}
|
|
30
30
|
{{~#each _options~}}
|
|
31
|
-
<option class="text-
|
|
31
|
+
<option class="text-gray-scorpion dark:text-text-dark" value="{{this.id}}" {{#if this.isSelected}}selected{{/if}}>{{this.name}}</option>
|
|
32
32
|
{{~/each~}}
|
|
33
33
|
{{else}}
|
|
34
34
|
{{#each _items}}
|
|
35
|
-
<option class="text-
|
|
35
|
+
<option class="text-gray-scorpion dark:text-text-dark" value="{{this.value}}" {{#if this.selected}}selected{{/if}}>{{this.label}}</option>
|
|
36
36
|
{{/each}}
|
|
37
37
|
{{/if}}
|
|
38
38
|
</select>
|
|
39
39
|
<label for="select{{getRandom}}"
|
|
40
|
-
class="absolute pointer-events-none left-[16px] top-0 translate-y-3 translate-x-0 scale-100 text-gray-
|
|
41
|
-
peer-focus:text-
|
|
40
|
+
class="absolute pointer-events-none left-[16px] top-0 translate-y-3 translate-x-0 scale-100 text-gray-scorpion dark:text-text-dark
|
|
41
|
+
peer-focus:text-link peer-focus:scale-75 peer-focus:translate-y-0 peer-focus:top-px
|
|
42
42
|
origin-top-left transform transition-transform
|
|
43
43
|
">
|
|
44
44
|
{{_label}}{{#if _required}}*{{/if}}
|
|
45
45
|
</label>
|
|
46
46
|
<div class="flex items-end justify-between h-5 font-heading">
|
|
47
47
|
{{#if _description}}
|
|
48
|
-
<div class="pl-4 text-xs text-gray-
|
|
48
|
+
<div class="pl-4 text-xs text-gray-scorpion dark:text-text-dark" :class="{'hidden': hideDescription()}">{{_description}}</div>
|
|
49
49
|
{{/if}}
|
|
50
50
|
{{#if _required}}
|
|
51
|
-
<div class="hidden pl-4 text-xs text-
|
|
51
|
+
<div class="hidden pl-4 text-xs text-error" :class="{'hidden': hideError()}" >{{_errorMessage}}</div>
|
|
52
52
|
{{/if}}
|
|
53
53
|
</div>
|
|
54
54
|
<div class="absolute right-0 p-4 py-3 transform border-l peer-focus:border-r peer-focus:border-l-0 pointer-events-none top-1.5 peer-focus:rotate-180">
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
maxlength="{{_maxLength}}"
|
|
35
35
|
{{/if~}}
|
|
36
36
|
{{#if _required}}required{{/if}}
|
|
37
|
-
class="relative w-full px-4 pb-px text-
|
|
37
|
+
class="relative w-full px-4 pb-px text-black placeholder-transparent bg-white border-link dark:border-link-dark min-h-12 peer border-y focus:border-b-2 focus:pb-0 border-t-transparent focus:outline-none"
|
|
38
38
|
{{#if _required}}
|
|
39
|
-
:class="{'border-
|
|
39
|
+
:class="{'border-link dark:border-link-dark': hideError(),'border-error dark:border-error': hideDescription() }"
|
|
40
40
|
{{/if}}
|
|
41
41
|
>{{~#if _formField.isValid~}}
|
|
42
42
|
{{{_formField.forHtmlContent}}}
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
{{~else~}}
|
|
47
47
|
{{~_defaultValue~}}
|
|
48
48
|
{{~/if}}{{/if}}</textarea>
|
|
49
|
-
<label for="textarea{{getRandom}}" class="absolute left-[16px] top-px translate-y-0 translate-x-0 scale-75 text-gray-
|
|
49
|
+
<label for="textarea{{getRandom}}" class="absolute left-[16px] top-px translate-y-0 translate-x-0 scale-75 text-gray-scorpion
|
|
50
50
|
|
|
51
51
|
peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-x-0 peer-placeholder-shown:translate-y-3
|
|
52
52
|
|
|
53
|
-
peer-focus:translate-x-0 peer-focus:-translate-y-0 peer-focus:scale-75 peer-focus:text-
|
|
53
|
+
peer-focus:translate-x-0 peer-focus:-translate-y-0 peer-focus:scale-75 peer-focus:text-link origin-top-left transform transition-transform">
|
|
54
54
|
{{#if _locaKey}}
|
|
55
55
|
{{loca _locaKey}}
|
|
56
56
|
{{else}}
|
|
@@ -66,13 +66,13 @@
|
|
|
66
66
|
{{/if}}
|
|
67
67
|
<div class="flex items-end justify-between h-5 font-heading">
|
|
68
68
|
{{#if _description}}
|
|
69
|
-
<div class="pl-4 text-xs text-gray-
|
|
69
|
+
<div class="pl-4 text-xs text-gray-scorpion" :class="{'hidden': hideDescription() }">{{_description}}</div>
|
|
70
70
|
{{/if}}
|
|
71
71
|
{{#if _required}}
|
|
72
|
-
<div class="hidden pl-4 text-xs text-
|
|
72
|
+
<div class="hidden pl-4 text-xs text-error" :class="{'hidden': hideError()}" >{{_errorMessage}}</div>
|
|
73
73
|
{{/if}}
|
|
74
74
|
{{#if _maxLength}}
|
|
75
|
-
<div class="px-4 ml-auto text-xs text-gray-
|
|
75
|
+
<div class="px-4 ml-auto text-xs text-gray-scorpion"><span x-text="textarea{{getRandom}}.length">0</span>/{{_maxLength}}</div>
|
|
76
76
|
{{/if~}}
|
|
77
77
|
</div>
|
|
78
78
|
</div>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{{#>components/forms/backgroundBox }}
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
<h3 class="mb-6 text-2xl font-headingSerif sm:mb-12">
|
|
5
|
+
<h3 class="mb-6 text-2xl font-headingSerif sm:mb-12 text-text dark:text-text-dark">
|
|
6
6
|
{{this.title}}
|
|
7
7
|
</h3>
|
|
8
8
|
<div id="formWrapper">
|
|
@@ -22,17 +22,6 @@
|
|
|
22
22
|
accept-charset="utf-8"
|
|
23
23
|
|
|
24
24
|
>
|
|
25
|
-
|
|
26
|
-
<div class="">
|
|
27
|
-
<div class="px-4 py-2 font-bold text-white bg-red-500 rounded-t">
|
|
28
|
-
DEBUG
|
|
29
|
-
</div>
|
|
30
|
-
<div class="px-4 py-3 text-red-700 bg-red-100 border border-t-0 border-red-400 rounded-b">
|
|
31
|
-
<div>submissionAttempted[form{{getRandom}}]:<span x-text="getSubmissionAttempted()" class="font-bold" :class="getSubmissionAttempted() ? 'text-green-800' : 'text-red-700'"></span></div>
|
|
32
|
-
<div>isPosting:<span x-text="isPosting" class="font-bold" :class="isPosting ? 'text-green-800' : 'text-red-700'"></span></div>
|
|
33
|
-
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
25
|
{{> components/forms/fields _formId=(joinStrings 'form' (getRandom)) }}
|
|
37
26
|
|
|
38
27
|
{{> components/forms/controls }}
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
<ul>
|
|
55
55
|
{{~#each this~}}
|
|
56
56
|
<li class="{{#unless @last}}border-b{{/unless}}">
|
|
57
|
-
<a class="{{if (isUserConsentNeeded this.podcastHosterUrl) 'js-user-consent-needed ' ''}}flex px-2 py-2 text-left ds-link whitespace-nowrap hover:underline disabled:text-gray-
|
|
57
|
+
<a class="{{if (isUserConsentNeeded this.podcastHosterUrl) 'js-user-consent-needed ' ''}}flex px-2 py-2 text-left ds-link whitespace-nowrap hover:underline disabled:text-gray-scorpion js-load"
|
|
58
58
|
title="{{this.podcastHosterName}}"
|
|
59
59
|
target="_blank"
|
|
60
60
|
rel="noopener noreferrer"
|
package/tailwind.config.js
CHANGED
|
@@ -90,6 +90,7 @@ module.exports = {
|
|
|
90
90
|
'stage': '0 .3125rem 1.0625rem rgba(0,0,0,0.3)',
|
|
91
91
|
'teaser-focus': '0 0 0 0.25rem',
|
|
92
92
|
'teaser-focus-big': '0 0 0 0.365rem',
|
|
93
|
+
'autofill': '0 0 0px 1000px var(--color-standard-text-dark) inset'
|
|
93
94
|
},
|
|
94
95
|
dropShadow: {
|
|
95
96
|
md: '0 5px 3px rgb(0 0 0 / 0.07)',
|
|
@@ -288,7 +289,7 @@ module.exports = {
|
|
|
288
289
|
monza: { rgb: '194 0 22', hex: '#c20016' },
|
|
289
290
|
paprika: { rgb: '140 3 61', hex: '#8C033D' },
|
|
290
291
|
scarlett: '#9b0112',
|
|
291
|
-
thunderbird: '#cc1a14',
|
|
292
|
+
thunderbird: { hex: '#cc1a14' },
|
|
292
293
|
wellRead: { rgb: '171 47 45', hex: '#AB2F2D' },
|
|
293
294
|
},
|
|
294
295
|
'pink': {
|
|
@@ -424,7 +425,8 @@ module.exports = {
|
|
|
424
425
|
'toggle-default': 'var(--color-toggle-default)',
|
|
425
426
|
'structure-nav': 'var(--structure-nav-background)',
|
|
426
427
|
'structure-nav-text': 'var(--structure-nav-text)',
|
|
427
|
-
'structure-nav-text-mobile': 'var(--structure-nav-text-mobile)'
|
|
428
|
+
'structure-nav-text-mobile': 'var(--structure-nav-text-mobile)',
|
|
429
|
+
'error':'var(--color-error)'
|
|
428
430
|
},
|
|
429
431
|
},
|
|
430
432
|
},
|