dibk-design 3.11.3 → 4.0.1
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/dist/assets/fonts/PPMori-Bold.otf +0 -0
- package/dist/assets/fonts/PPMori-Book.otf +0 -0
- package/dist/assets/fonts/PPMori-ExtraBold.otf +0 -0
- package/dist/assets/fonts/PPMori-Light.otf +0 -0
- package/dist/assets/fonts/PPMori-Medium.otf +0 -0
- package/dist/assets/fonts/PPMori-Regular.otf +0 -0
- package/dist/assets/fonts/PPMori-RegularItalic.otf +0 -0
- package/dist/assets/fonts/PPMori-SemiBold.otf +0 -0
- package/dist/assets/svg/dibk-logo-base64.js +1 -1
- package/dist/assets/svg/dibk-logo-mobile.svg +2 -2
- package/dist/assets/svg/dibk-logo.svg +45 -984
- package/dist/assets/svg/info-sign.svg +1 -0
- package/dist/components/Accordion.module.scss +1 -1
- package/dist/components/Button.module.scss +92 -82
- package/dist/components/CheckBoxIcon.module.scss +5 -5
- package/dist/components/CheckBoxInput.js +3 -1
- package/dist/components/CheckBoxInput.module.scss +11 -1
- package/dist/components/CheckBoxListItem.js +1 -1
- package/dist/components/CheckBoxListItem.module.scss +16 -8
- package/dist/components/Dialog.module.scss +9 -6
- package/dist/components/DragAndDropFileInput.module.scss +1 -1
- package/dist/components/ErrorBox.js +13 -5
- package/dist/components/ErrorBox.module.scss +30 -4
- package/dist/components/Header.module.scss +8 -3
- package/dist/components/InputField.js +2 -0
- package/dist/components/InputField.module.scss +11 -20
- package/dist/components/NavigationBar.js +5 -3
- package/dist/components/NavigationBar.module.scss +398 -122
- package/dist/components/PDF.scss +35 -8
- package/dist/components/RadioButtonIcon.module.scss +7 -10
- package/dist/components/RadioButtonInput.js +3 -1
- package/dist/components/RadioButtonInput.module.scss +11 -1
- package/dist/components/RadioButtonListItem.js +1 -1
- package/dist/components/RadioButtonListItem.module.scss +16 -8
- package/dist/components/Select.module.scss +14 -16
- package/dist/components/Textarea.module.scss +2 -2
- package/dist/components/Theme.module.scss +1 -1
- package/dist/components/WizardNavigation/Step.module.scss +1 -1
- package/dist/style/abstracts/variables/_all.scss +1 -0
- package/dist/style/abstracts/variables/_colors.scss +18 -13
- package/dist/style/abstracts/variables/_transitions.scss +1 -0
- package/dist/style/abstracts/variables/_typography.scss +2 -2
- package/dist/style/base/_fonts.scss +135 -69
- package/dist/style/base/_typography.scss +1 -0
- package/dist/style/pdf.css +34 -9
- package/dist/style/pdf.css.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" role="presentation"><path d="M10 0C4.4775 0 0 4.4775 0 10C0 15.5225 4.4775 20 10 20C15.5225 20 20 15.5225 20 10C20 4.4775 15.5225 0 10 0ZM8.30583 13.3417C8.77583 11.8508 9.66583 10.065 9.82333 9.61333C10.0508 8.9575 9.6475 8.66667 8.37333 9.7875L8.09 9.25417C9.54333 7.67333 12.5358 7.31583 11.5175 9.765C10.8817 11.2942 10.4267 12.3267 10.1667 13.1233C9.7875 14.2842 10.745 13.8133 11.6825 12.9475C11.81 13.1558 11.8517 13.2233 11.9792 13.4633C9.8975 15.445 7.58667 15.62 8.30583 13.3417ZM12.2575 6.53417C11.8142 6.91167 11.1575 6.90333 10.79 6.51583C10.4225 6.12833 10.4842 5.50917 10.9267 5.13167C11.37 4.75417 12.0267 4.76333 12.3942 5.15C12.76 5.53833 12.7 6.1575 12.2575 6.53417Z" style="fill: rgb(0, 48, 69);"></path></svg>
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
@include appearance(none);
|
|
32
32
|
@include border-radius(0);
|
|
33
33
|
@include transition(
|
|
34
|
-
filter
|
|
35
|
-
background-color
|
|
36
|
-
color
|
|
37
|
-
border-color
|
|
34
|
+
filter 200ms $default-transition,
|
|
35
|
+
background-color 200ms $default-transition,
|
|
36
|
+
color 200ms $default-transition,
|
|
37
|
+
border-color 200ms $default-transition
|
|
38
38
|
);
|
|
39
|
-
font-family:
|
|
39
|
+
font-family: $default-font;
|
|
40
40
|
border-style: solid;
|
|
41
41
|
border-width: 1px;
|
|
42
42
|
border-color: $color-primary;
|
|
@@ -66,19 +66,17 @@
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
&:focus {
|
|
70
|
+
outline-offset: 3px;
|
|
71
|
+
}
|
|
72
|
+
|
|
69
73
|
&:focus-visible,
|
|
70
74
|
&:focus-within {
|
|
71
|
-
outline-color: $color-
|
|
72
|
-
outline-style: auto;
|
|
73
|
-
outline-width: 2px;
|
|
74
|
-
outline-offset: 0px;
|
|
75
|
+
outline-color: $color-primary;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
&.regular {
|
|
78
|
-
padding:
|
|
79
|
-
@media only screen and (min-width: $screen-sm) {
|
|
80
|
-
padding: 17px 32px;
|
|
81
|
-
}
|
|
79
|
+
padding: 16px 24px;
|
|
82
80
|
}
|
|
83
81
|
|
|
84
82
|
&.small {
|
|
@@ -92,18 +90,26 @@
|
|
|
92
90
|
}
|
|
93
91
|
|
|
94
92
|
&.default {
|
|
95
|
-
background-color:
|
|
96
|
-
color: $color-primary;
|
|
93
|
+
background-color: transparent;
|
|
94
|
+
color: $color-primary-text;
|
|
95
|
+
border-color: $color-secondary-light;
|
|
97
96
|
&:not(.hasTheme) {
|
|
98
97
|
&:hover:not(.noHover),
|
|
99
|
-
&:focus-visible
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
background-color: $color-primary;
|
|
103
|
-
color: #fff;
|
|
98
|
+
&:focus-visible {
|
|
99
|
+
background-color: $color-secondary-x-light;
|
|
100
|
+
color: $color-primary-text;
|
|
104
101
|
&:after,
|
|
105
102
|
&:before {
|
|
106
|
-
border-color:
|
|
103
|
+
border-color: $color-secondary-light;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
&:active:not(.noHover),
|
|
107
|
+
&:active:hover:not(.noHover) {
|
|
108
|
+
background-color: $color-secondary-light;
|
|
109
|
+
color: $color-primary-text;
|
|
110
|
+
&:after,
|
|
111
|
+
&:before {
|
|
112
|
+
border-color: $color-secondary-light;
|
|
107
113
|
}
|
|
108
114
|
}
|
|
109
115
|
}
|
|
@@ -114,13 +120,23 @@
|
|
|
114
120
|
color: #fff;
|
|
115
121
|
&:not(.hasTheme) {
|
|
116
122
|
&:hover:not(.noHover),
|
|
117
|
-
&:focus-visible
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
color:
|
|
123
|
+
&:focus-visible {
|
|
124
|
+
background-color: $color-primary-light;
|
|
125
|
+
border-color: $color-primary-light;
|
|
126
|
+
color: #fff;
|
|
121
127
|
&:after,
|
|
122
128
|
&:before {
|
|
123
|
-
border-color: $color-primary;
|
|
129
|
+
border-color: $color-primary-light;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
&:active:not(.noHover),
|
|
133
|
+
&:active:hover:not(.noHover) {
|
|
134
|
+
background-color: $color-primary-x-light;
|
|
135
|
+
border-color: $color-primary-x-light;
|
|
136
|
+
color: #fff;
|
|
137
|
+
&:after,
|
|
138
|
+
&:before {
|
|
139
|
+
border-color: $color-primary-x-light;
|
|
124
140
|
}
|
|
125
141
|
}
|
|
126
142
|
}
|
|
@@ -128,56 +144,40 @@
|
|
|
128
144
|
|
|
129
145
|
&:disabled,
|
|
130
146
|
&.disabled {
|
|
131
|
-
&.hasTheme
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
147
|
+
&.hasTheme {
|
|
148
|
+
opacity: 0.6;
|
|
149
|
+
cursor: default;
|
|
150
|
+
&:hover,
|
|
151
|
+
&:focus,
|
|
152
|
+
&:focus-within,
|
|
153
|
+
&:active {
|
|
136
154
|
opacity: 0.6;
|
|
137
|
-
|
|
138
|
-
border: 1px solid #e5e3e1;
|
|
139
|
-
&:hover,
|
|
140
|
-
&:focus,
|
|
141
|
-
&:focus-within,
|
|
142
|
-
&:active {
|
|
143
|
-
background-color: #fff;
|
|
144
|
-
cursor: default;
|
|
145
|
-
opacity: 0.6;
|
|
146
|
-
color: #afaba8;
|
|
147
|
-
border: 1px solid #e5e3e1;
|
|
148
|
-
&:before,
|
|
149
|
-
&:after {
|
|
150
|
-
border-color: #afaba8;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
&:before,
|
|
154
|
-
&:after {
|
|
155
|
-
border-color: #afaba8;
|
|
156
|
-
}
|
|
155
|
+
cursor: default;
|
|
157
156
|
}
|
|
157
|
+
}
|
|
158
|
+
&:not(.hasTheme) {
|
|
159
|
+
&.default,
|
|
158
160
|
&.primary {
|
|
159
|
-
background-color: $color-
|
|
161
|
+
background-color: $color-secondary-light;
|
|
160
162
|
cursor: default;
|
|
161
|
-
opacity: 0.6;
|
|
162
163
|
color: #fff;
|
|
163
|
-
border: 1px solid $color-
|
|
164
|
-
&:hover,
|
|
165
|
-
&:focus,
|
|
166
|
-
&:
|
|
167
|
-
&:active {
|
|
168
|
-
background-color: $color-
|
|
164
|
+
border: 1px solid $color-secondary-light;
|
|
165
|
+
&:hover:not(.noHover),
|
|
166
|
+
&:focus-visible,
|
|
167
|
+
&:active:not(.noHover),
|
|
168
|
+
&:active:hover:not(.noHover) {
|
|
169
|
+
background-color: $color-secondary-light;
|
|
169
170
|
cursor: default;
|
|
170
|
-
opacity: 0.6;
|
|
171
171
|
color: #fff;
|
|
172
|
-
border: 1px solid $color-
|
|
172
|
+
border: 1px solid $color-secondary-light;
|
|
173
173
|
&:before,
|
|
174
174
|
&:after {
|
|
175
|
-
border-color: $color-
|
|
175
|
+
border-color: $color-secondary-light;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
&:before,
|
|
179
179
|
&:after {
|
|
180
|
-
border-color: $color-
|
|
180
|
+
border-color: $color-secondary-light;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
}
|
|
@@ -195,16 +195,13 @@
|
|
|
195
195
|
&.hasArrowLeft {
|
|
196
196
|
&:before {
|
|
197
197
|
@include transform(rotate(-135deg));
|
|
198
|
-
@include calc("top", "50% - 0.4rem");
|
|
199
198
|
content: " ";
|
|
200
199
|
display: inline-block;
|
|
201
|
-
|
|
202
|
-
right: auto;
|
|
203
|
-
left: 0.55em;
|
|
200
|
+
margin-right: 1em;
|
|
204
201
|
width: 0.5rem;
|
|
205
202
|
height: 0.5rem;
|
|
206
203
|
vertical-align: middle;
|
|
207
|
-
border:
|
|
204
|
+
border-style: solid;
|
|
208
205
|
border-width: 2px 2px 0 0;
|
|
209
206
|
margin-right: 1em;
|
|
210
207
|
@media only screen and (min-width: $screen-sm) {
|
|
@@ -212,14 +209,22 @@
|
|
|
212
209
|
}
|
|
213
210
|
}
|
|
214
211
|
|
|
215
|
-
&:hover
|
|
212
|
+
&:hover:not(.noHover),
|
|
213
|
+
&:focus-visible,
|
|
214
|
+
&:active:not(.noHover),
|
|
215
|
+
&:active:hover:not(.noHover) {
|
|
216
216
|
&:before {
|
|
217
217
|
@include animation(pushprev 0.8s linear infinite);
|
|
218
218
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
219
|
+
&.default {
|
|
220
|
+
&:before {
|
|
221
|
+
border-color: $color-primary;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
&.primary {
|
|
225
|
+
&:before {
|
|
226
|
+
border-color: #fff;
|
|
227
|
+
}
|
|
223
228
|
}
|
|
224
229
|
}
|
|
225
230
|
}
|
|
@@ -227,12 +232,9 @@
|
|
|
227
232
|
&.hasArrowRight {
|
|
228
233
|
&:after {
|
|
229
234
|
@include transform(rotate(45deg));
|
|
230
|
-
@include calc("top", "50% - 0.4rem");
|
|
231
235
|
content: " ";
|
|
232
236
|
display: inline-block;
|
|
233
|
-
|
|
234
|
-
left: auto;
|
|
235
|
-
right: 0.55em;
|
|
237
|
+
margin-left: 1em;
|
|
236
238
|
width: 0.5rem;
|
|
237
239
|
height: 0.5rem;
|
|
238
240
|
vertical-align: middle;
|
|
@@ -244,14 +246,22 @@
|
|
|
244
246
|
}
|
|
245
247
|
}
|
|
246
248
|
|
|
247
|
-
&:hover
|
|
249
|
+
&:hover:not(.noHover),
|
|
250
|
+
&:focus-visible,
|
|
251
|
+
&:active:not(.noHover),
|
|
252
|
+
&:active:hover:not(.noHover) {
|
|
248
253
|
&:after {
|
|
249
254
|
@include animation(pushnext 0.8s linear infinite);
|
|
250
255
|
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
256
|
+
&.default {
|
|
257
|
+
&:after {
|
|
258
|
+
border-color: $color-primary;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
&.primary {
|
|
262
|
+
&:after {
|
|
263
|
+
border-color: #fff;
|
|
264
|
+
}
|
|
255
265
|
}
|
|
256
266
|
}
|
|
257
267
|
}
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
margin-top: 2px;
|
|
21
21
|
background: white;
|
|
22
22
|
&:not(.hasErrors) {
|
|
23
|
-
@include box-shadow(0 0 0 1px
|
|
23
|
+
@include box-shadow(0 0 0 1px $color-primary);
|
|
24
24
|
}
|
|
25
25
|
&.hasErrors {
|
|
26
|
-
@include box-shadow(0 0
|
|
26
|
+
@include box-shadow(0 0 0 1px $color-error);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
}
|
|
37
37
|
&.showBox {
|
|
38
38
|
&:not(.hasErrors) {
|
|
39
|
-
@include box-shadow(0 0 0 1px
|
|
39
|
+
@include box-shadow(0 0 0 1px $color-primary);
|
|
40
40
|
}
|
|
41
41
|
&.hasErrors {
|
|
42
|
-
@include box-shadow(0 0
|
|
42
|
+
@include box-shadow(0 0 0 1px $color-error);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&.disabled {
|
|
48
|
-
opacity: 0.
|
|
48
|
+
opacity: 0.4;
|
|
49
49
|
background: rgba(0, 0, 0, 0.25);
|
|
50
50
|
cursor: default;
|
|
51
51
|
}
|
|
@@ -36,7 +36,9 @@ const CheckBoxInput = props => {
|
|
|
36
36
|
"aria-invalid": props.hasErrors ? "true" : null,
|
|
37
37
|
"aria-describedby": props["aria-describedby"]
|
|
38
38
|
};
|
|
39
|
-
return _react.default.createElement("label", labelProps, !props.contentOnly ? _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_CheckBoxIcon.default, iconProps), _react.default.createElement("input", inputProps)) : _react.default.createElement(_CheckBoxIcon.default, iconProps), _react.default.createElement("span",
|
|
39
|
+
return _react.default.createElement("label", labelProps, !props.contentOnly ? _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_CheckBoxIcon.default, iconProps), _react.default.createElement("input", inputProps)) : _react.default.createElement(_CheckBoxIcon.default, iconProps), _react.default.createElement("span", {
|
|
40
|
+
className: _CheckBoxInputModule.default.labelText
|
|
41
|
+
}, props.children, props.required && _react.default.createElement("img", {
|
|
40
42
|
src: _asterisk.default,
|
|
41
43
|
alt: "",
|
|
42
44
|
className: _CheckBoxInputModule.default.requiredSymbol
|
|
@@ -20,6 +20,16 @@
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
.labelText {
|
|
24
|
+
color: $color-primary;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.disabled {
|
|
28
|
+
.labelText {
|
|
29
|
+
opacity: 0.4;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
23
33
|
&.hasErrors {
|
|
24
34
|
span {
|
|
25
35
|
color: $color-error;
|
|
@@ -28,7 +38,7 @@
|
|
|
28
38
|
|
|
29
39
|
&:focus-within {
|
|
30
40
|
outline-width: 2px;
|
|
31
|
-
outline-color: $color-
|
|
41
|
+
outline-color: $color-primary;
|
|
32
42
|
outline-style: auto;
|
|
33
43
|
outline-offset: 1px;
|
|
34
44
|
}
|
|
@@ -11,7 +11,7 @@ var _helpers = require("../functions/helpers");
|
|
|
11
11
|
var _CheckBoxListItemModule = _interopRequireDefault(require("./CheckBoxListItem.module.scss"));
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
const CheckBoxListItem = props => {
|
|
14
|
-
const listItemClassNameArray = [_CheckBoxListItemModule.default.checkBoxListItem, props.checked ? _CheckBoxListItemModule.default.checked : null, props.disabled ? _CheckBoxListItemModule.default.disabled : null, props.compact ? _CheckBoxListItemModule.default.compact : null, props.contentOnly ? _CheckBoxListItemModule.default.contentOnly : null, props.hasErrors ? _CheckBoxListItemModule.default.hasErrors : null];
|
|
14
|
+
const listItemClassNameArray = [_CheckBoxListItemModule.default.checkBoxListItem, props.checked ? _CheckBoxListItemModule.default.checked : null, props.disabled ? _CheckBoxListItemModule.default.disabled : null, props.compact ? _CheckBoxListItemModule.default.compact : null, props.contentOnly ? _CheckBoxListItemModule.default.contentOnly : null, props.hasErrors ? _CheckBoxListItemModule.default.hasErrors : null, props.theme && _CheckBoxListItemModule.default.hasTheme];
|
|
15
15
|
const listItemClassNameString = (0, _helpers.classNameArrayToClassNameString)(listItemClassNameArray);
|
|
16
16
|
const inputProps = {
|
|
17
17
|
onChange: props.onChange,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
.checkBoxListItem {
|
|
4
4
|
@include box-sizing(content-box);
|
|
5
|
-
@include border-radius(
|
|
6
|
-
@include transition(all
|
|
5
|
+
@include border-radius(0);
|
|
6
|
+
@include transition(all $default-transition);
|
|
7
7
|
display: -webkit-box;
|
|
8
8
|
display: -webkit-flex;
|
|
9
9
|
display: -ms-flexbox;
|
|
@@ -19,9 +19,12 @@
|
|
|
19
19
|
color: #000;
|
|
20
20
|
|
|
21
21
|
&:not(.contentOnly):not(.compact) {
|
|
22
|
-
|
|
22
|
+
border: 1px solid $color-secondary-light;
|
|
23
23
|
background: white;
|
|
24
|
-
margin-bottom:
|
|
24
|
+
margin-bottom: 8px;
|
|
25
|
+
label {
|
|
26
|
+
padding: 20px;
|
|
27
|
+
}
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
&.contentOnly {
|
|
@@ -38,12 +41,17 @@
|
|
|
38
41
|
}
|
|
39
42
|
}
|
|
40
43
|
|
|
41
|
-
&.checked:not(.contentOnly):not(.compact):not(.disabled) {
|
|
42
|
-
|
|
44
|
+
&.checked:not(.contentOnly):not(.compact):not(.disabled):not(.hasTheme) {
|
|
45
|
+
background-color: $color-secondary-light;
|
|
43
46
|
}
|
|
44
47
|
|
|
45
|
-
&:not(.checked):not(.contentOnly):not(.compact):not(.disabled):
|
|
46
|
-
|
|
48
|
+
&:not(.checked):not(.contentOnly):not(.compact):not(.disabled):not(.hasTheme) {
|
|
49
|
+
&:hover {
|
|
50
|
+
background-color: $color-secondary-x-light;
|
|
51
|
+
}
|
|
52
|
+
&:focus-within {
|
|
53
|
+
background-color: $color-secondary-x-light;
|
|
54
|
+
}
|
|
47
55
|
}
|
|
48
56
|
|
|
49
57
|
label {
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
@import "../style/global.scss";
|
|
2
2
|
|
|
3
|
+
@keyframes modalIn {
|
|
4
|
+
0% {
|
|
5
|
+
opacity: 0;
|
|
6
|
+
transform: translateY(2em);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
3
10
|
.dialogOverlay {
|
|
4
11
|
display: flex;
|
|
5
12
|
flex-wrap: wrap;
|
|
6
13
|
position: fixed;
|
|
7
14
|
width: 100%;
|
|
8
|
-
background: rgba(0,
|
|
15
|
+
background: rgba(0, 48, 69, 0.4);
|
|
9
16
|
height: 100%;
|
|
10
17
|
top: 0;
|
|
11
18
|
left: 0;
|
|
@@ -29,16 +36,12 @@
|
|
|
29
36
|
|
|
30
37
|
.dialogContent {
|
|
31
38
|
@include calc("max-height", "100% - 128px");
|
|
32
|
-
@include box-shadow(
|
|
33
|
-
0 11px 15px -7px rgba(0, 0, 0, 0.2),
|
|
34
|
-
0 24px 38px 3px rgba(0, 0, 0, 0.14),
|
|
35
|
-
0 9px 46px 8px rgba(0, 0, 0, 0.12)
|
|
36
|
-
);
|
|
37
39
|
max-width: 540px;
|
|
38
40
|
width: 100%;
|
|
39
41
|
background-color: #fff;
|
|
40
42
|
overflow: auto;
|
|
41
43
|
position: relative;
|
|
44
|
+
animation: 1000ms cubic-bezier(0.22, 1, 0.36, 1) 0s 1 normal none running modalIn;
|
|
42
45
|
&:not(.noPadding) {
|
|
43
46
|
padding: 30px 15px;
|
|
44
47
|
@media only screen and (min-width: $screen-sm) {
|
|
@@ -7,23 +7,31 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _theme = require("../functions/theme");
|
|
10
|
+
var _helpers = require("functions/helpers");
|
|
10
11
|
var _ErrorBoxModule = _interopRequireDefault(require("./ErrorBox.module.scss"));
|
|
12
|
+
var _infoSign = _interopRequireDefault(require("../assets/svg/info-sign.svg?url"));
|
|
11
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
14
|
const ErrorBox = props => {
|
|
13
15
|
const getThemeErrorBoxStyle = () => {
|
|
14
16
|
return {
|
|
15
|
-
borderColor: (0, _theme.getThemePaletteBackgroundColor)(props.theme, "warning")
|
|
17
|
+
borderColor: props.type === "error" ? (0, _theme.getThemePaletteBackgroundColor)(props.theme, "error") : (0, _theme.getThemePaletteBackgroundColor)(props.theme, "warning")
|
|
16
18
|
};
|
|
17
19
|
};
|
|
18
20
|
return _react.default.createElement("div", {
|
|
19
|
-
className: _ErrorBoxModule.default.errorBox,
|
|
21
|
+
className: (0, _helpers.classNameArrayToClassNameString)([_ErrorBoxModule.default.errorBox, _ErrorBoxModule.default[props.type]]),
|
|
20
22
|
style: getThemeErrorBoxStyle()
|
|
21
|
-
},
|
|
23
|
+
}, _react.default.createElement("img", {
|
|
24
|
+
src: _infoSign.default,
|
|
25
|
+
alt: "",
|
|
26
|
+
className: _ErrorBoxModule.default.infoSign
|
|
27
|
+
}), props.children);
|
|
22
28
|
};
|
|
23
29
|
ErrorBox.propTypes = {
|
|
24
|
-
theme: _propTypes.default.object
|
|
30
|
+
theme: _propTypes.default.object,
|
|
31
|
+
type: _propTypes.default.oneOf(["warning", "error"])
|
|
25
32
|
};
|
|
26
33
|
ErrorBox.defaultProps = {
|
|
27
|
-
children: ""
|
|
34
|
+
children: "",
|
|
35
|
+
type: "warning"
|
|
28
36
|
};
|
|
29
37
|
var _default = exports.default = ErrorBox;
|
|
@@ -1,12 +1,38 @@
|
|
|
1
1
|
@import "../style/global.scss";
|
|
2
2
|
|
|
3
|
+
@keyframes messageIn {
|
|
4
|
+
0% {
|
|
5
|
+
opacity: 0;
|
|
6
|
+
transform: translateY(2em);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
3
10
|
.errorBox {
|
|
4
|
-
|
|
5
|
-
border-left:
|
|
6
|
-
|
|
7
|
-
padding: 30px 33px 46px 21px;
|
|
11
|
+
border-left-width: 4px;
|
|
12
|
+
border-left-style: solid;
|
|
13
|
+
padding: 24px 24px 24px calc(1.2em + 48px);
|
|
8
14
|
font-family: $default-font;
|
|
9
15
|
margin: 0;
|
|
16
|
+
animation: 1000ms cubic-bezier(0.22, 1, 0.36, 1) 0s 1 normal none running messageIn;
|
|
17
|
+
position: relative;
|
|
18
|
+
line-height: 24px;
|
|
19
|
+
.infoSign {
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 24px;
|
|
22
|
+
left: 24px;
|
|
23
|
+
width: 24px;
|
|
24
|
+
height: 24px;
|
|
25
|
+
display: inline-block;
|
|
26
|
+
vertical-align: middle;
|
|
27
|
+
}
|
|
28
|
+
&.warning {
|
|
29
|
+
background-color: $color-warning-x-light;
|
|
30
|
+
border-left-color: $color-warning;
|
|
31
|
+
}
|
|
32
|
+
&.error {
|
|
33
|
+
background-color: $color-error-x-light;
|
|
34
|
+
border-left-color: $color-error;
|
|
35
|
+
}
|
|
10
36
|
h1,
|
|
11
37
|
h2,
|
|
12
38
|
h3,
|
|
@@ -11,16 +11,17 @@
|
|
|
11
11
|
color: $color-primary;
|
|
12
12
|
}
|
|
13
13
|
&.size-1 {
|
|
14
|
-
font-family:
|
|
14
|
+
font-family: $default-font;
|
|
15
15
|
font-size: 32px;
|
|
16
16
|
font-style: normal;
|
|
17
17
|
font-weight: 500;
|
|
18
18
|
line-height: 1.43;
|
|
19
|
+
letter-spacing: 0px;
|
|
19
20
|
@media only screen and (min-width: $screen-sm) {
|
|
20
21
|
font-size: 38px;
|
|
21
22
|
}
|
|
22
23
|
&.bigHeader {
|
|
23
|
-
font-family:
|
|
24
|
+
font-family: $default-font;
|
|
24
25
|
font-size: 40px;
|
|
25
26
|
line-height: 1.2;
|
|
26
27
|
overflow: hidden;
|
|
@@ -31,11 +32,12 @@
|
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
&.size-2 {
|
|
34
|
-
font-family:
|
|
35
|
+
font-family: $default-font;
|
|
35
36
|
font-size: 25px;
|
|
36
37
|
font-style: normal;
|
|
37
38
|
font-weight: 500;
|
|
38
39
|
line-height: 1.42;
|
|
40
|
+
letter-spacing: 0px;
|
|
39
41
|
@media only screen and (min-width: $screen-sm) {
|
|
40
42
|
font-size: 30px;
|
|
41
43
|
}
|
|
@@ -46,6 +48,7 @@
|
|
|
46
48
|
font-style: normal;
|
|
47
49
|
font-weight: bold;
|
|
48
50
|
line-height: 1;
|
|
51
|
+
letter-spacing: 0px;
|
|
49
52
|
@media only screen and (min-width: $screen-sm) {
|
|
50
53
|
font-size: 22px;
|
|
51
54
|
}
|
|
@@ -56,6 +59,7 @@
|
|
|
56
59
|
font-style: italic;
|
|
57
60
|
font-weight: normal;
|
|
58
61
|
line-height: 1;
|
|
62
|
+
letter-spacing: 0px;
|
|
59
63
|
@media only screen and (min-width: $screen-sm) {
|
|
60
64
|
font-size: 21px;
|
|
61
65
|
}
|
|
@@ -65,6 +69,7 @@
|
|
|
65
69
|
font-size: 16px;
|
|
66
70
|
font-weight: normal;
|
|
67
71
|
line-height: 1;
|
|
72
|
+
letter-spacing: 0px;
|
|
68
73
|
@media only screen and (min-width: $screen-sm) {
|
|
69
74
|
font-size: 19px;
|
|
70
75
|
}
|
|
@@ -102,6 +102,7 @@ InputField.propTypes = {
|
|
|
102
102
|
onBlur: _propTypes.default.func,
|
|
103
103
|
name: _propTypes.default.string,
|
|
104
104
|
type: _propTypes.default.string,
|
|
105
|
+
disabled: _propTypes.default.bool,
|
|
105
106
|
required: _propTypes.default.bool,
|
|
106
107
|
width: _propTypes.default.string,
|
|
107
108
|
value: _propTypes.default.any,
|
|
@@ -127,6 +128,7 @@ InputField.defaultProps = {
|
|
|
127
128
|
},
|
|
128
129
|
name: "",
|
|
129
130
|
type: "text",
|
|
131
|
+
disabled: false,
|
|
130
132
|
required: false,
|
|
131
133
|
label: "",
|
|
132
134
|
contentOnly: false,
|