dibk-design 0.4.38 → 0.4.42
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/components/Accordion.module.scss +32 -8
- package/dist/components/Button.module.scss +2 -2
- package/dist/components/Header.md +1 -0
- package/dist/components/Header.module.scss +27 -7
- package/dist/components/Paper.module.scss +10 -9
- package/dist/components/Textarea.js +3 -1
- package/dist/components/Textarea.md +1 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-300.eot +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-300.svg +346 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-300.ttf +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-300.woff +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-300.woff2 +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.eot +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.svg +377 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.ttf +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.woff +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.woff2 +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-700.eot +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-700.svg +349 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-700.ttf +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-700.woff +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-700.woff2 +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.eot +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.svg +379 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.ttf +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.woff +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.woff2 +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-italic.eot +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-italic.svg +379 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-italic.ttf +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-italic.woff +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-italic.woff2 +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-regular.eot +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-regular.svg +349 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-regular.ttf +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-regular.woff +0 -0
- package/dist/fonts/open-sans-v27-latin-ext_latin-regular.woff2 +0 -0
- package/dist/index.js +1 -9
- package/dist/style/base/fonts.css +80 -0
- package/package.json +2 -3
|
@@ -4,16 +4,22 @@
|
|
|
4
4
|
0% {
|
|
5
5
|
opacity: 0;
|
|
6
6
|
margin-top: 0px;
|
|
7
|
-
padding: 0
|
|
7
|
+
padding: 0 15px 0;
|
|
8
8
|
line-height: 0;
|
|
9
9
|
max-height: 0;
|
|
10
|
+
@media only screen and (min-width: $screen-xs) {
|
|
11
|
+
padding: 0 30px 0;
|
|
12
|
+
}
|
|
10
13
|
}
|
|
11
14
|
100% {
|
|
12
15
|
opacity: 1;
|
|
13
16
|
margin-top: 0px;
|
|
14
|
-
padding: 8px
|
|
17
|
+
padding: 8px 15px 15px;
|
|
15
18
|
line-height: inherit;
|
|
16
19
|
max-height: 1000px;
|
|
20
|
+
@media only screen and (min-width: $screen-xs) {
|
|
21
|
+
padding: 8px 30px 15px;
|
|
22
|
+
}
|
|
17
23
|
}
|
|
18
24
|
}
|
|
19
25
|
|
|
@@ -21,16 +27,22 @@
|
|
|
21
27
|
100% {
|
|
22
28
|
opacity: 0;
|
|
23
29
|
margin-top: 0px;
|
|
24
|
-
padding: 0
|
|
30
|
+
padding: 0 15px 0;
|
|
25
31
|
line-height: 0;
|
|
26
32
|
max-height: 0;
|
|
33
|
+
@media only screen and (min-width: $screen-xs) {
|
|
34
|
+
padding: 0 30px 0;
|
|
35
|
+
}
|
|
27
36
|
}
|
|
28
37
|
0% {
|
|
29
38
|
opacity: 1;
|
|
30
39
|
margin-top: 0px;
|
|
31
|
-
padding: 8px
|
|
40
|
+
padding: 8px 15px 15px;
|
|
32
41
|
line-height: inherit;
|
|
33
42
|
max-height: 1000px;
|
|
43
|
+
@media only screen and (min-width: $screen-xs) {
|
|
44
|
+
padding: 8px 30px 15px;
|
|
45
|
+
}
|
|
34
46
|
}
|
|
35
47
|
}
|
|
36
48
|
|
|
@@ -117,7 +129,7 @@
|
|
|
117
129
|
}
|
|
118
130
|
|
|
119
131
|
:local(.panel) {
|
|
120
|
-
padding: 15px
|
|
132
|
+
padding: 15px 15px;
|
|
121
133
|
display: flex;
|
|
122
134
|
align-items: center;
|
|
123
135
|
position: relative;
|
|
@@ -125,6 +137,9 @@
|
|
|
125
137
|
overflow-wrap: break-word;
|
|
126
138
|
line-height: 1.7;
|
|
127
139
|
cursor: pointer;
|
|
140
|
+
@media only screen and (min-width: $screen-xs) {
|
|
141
|
+
padding: 15px 30px;
|
|
142
|
+
}
|
|
128
143
|
:local(.panelText) {
|
|
129
144
|
font-family: $heading-font;
|
|
130
145
|
font-weight: bold;
|
|
@@ -138,7 +153,10 @@
|
|
|
138
153
|
width: 18px;
|
|
139
154
|
height: 18px;
|
|
140
155
|
border-radius: 100px;
|
|
141
|
-
|
|
156
|
+
margin-right: 6px;
|
|
157
|
+
@media only screen and (min-width: $screen-xs) {
|
|
158
|
+
margin-right: 0;
|
|
159
|
+
}
|
|
142
160
|
&::after {
|
|
143
161
|
content: "";
|
|
144
162
|
display: block;
|
|
@@ -164,7 +182,10 @@
|
|
|
164
182
|
line-height: 0;
|
|
165
183
|
max-height: 0;
|
|
166
184
|
overflow: hidden;
|
|
167
|
-
padding: 0
|
|
185
|
+
padding: 0 15px 0;
|
|
186
|
+
@media only screen and (min-width: $screen-xs) {
|
|
187
|
+
padding: 0 30px 0;
|
|
188
|
+
}
|
|
168
189
|
&:local(.initialized) {
|
|
169
190
|
animation: hide 0.3s ease-in-out;
|
|
170
191
|
}
|
|
@@ -173,9 +194,12 @@
|
|
|
173
194
|
animation: show 0.3s ease-in-out;
|
|
174
195
|
opacity: 1;
|
|
175
196
|
margin-top: 0px;
|
|
176
|
-
padding: 8px
|
|
197
|
+
padding: 8px 15px 15px;
|
|
177
198
|
line-height: inherit;
|
|
178
199
|
max-height: 10000px;
|
|
200
|
+
@media only screen and (min-width: $screen-xs) {
|
|
201
|
+
padding: 8px 30px 15px;
|
|
202
|
+
}
|
|
179
203
|
}
|
|
180
204
|
}
|
|
181
205
|
}
|
|
@@ -4,6 +4,7 @@ Title examples:
|
|
|
4
4
|
<Header content="Title with size 1"/>
|
|
5
5
|
<Header content="Title with size 2" size={2}/>
|
|
6
6
|
<Header content="Title with size 3" size={3}/>
|
|
7
|
+
<Header content="Title with size 4" size={4}/>
|
|
7
8
|
<Header content="Big title with size 1" big/>
|
|
8
9
|
<Header content="Title with size 2 and htmlTag h1" size={2} htmlTag="h1"/>
|
|
9
10
|
|
|
@@ -1,44 +1,64 @@
|
|
|
1
1
|
@import "../style/global.scss";
|
|
2
2
|
|
|
3
3
|
:local(.headerContainer) {
|
|
4
|
-
|
|
5
|
-
padding: 10px 0;
|
|
4
|
+
padding: 5px 0;
|
|
6
5
|
:local(.header) {
|
|
7
6
|
margin: 0;
|
|
8
7
|
font-weight: normal;
|
|
9
8
|
line-height: 1.4;
|
|
10
9
|
font-style: normal;
|
|
11
|
-
font-size: 18px;
|
|
12
10
|
&:not(:local(.hasTheme)) {
|
|
13
11
|
color: $color-primary;
|
|
14
12
|
}
|
|
15
13
|
&:local(.size-1) {
|
|
16
14
|
font-family: "Altis", sans-serif;
|
|
17
|
-
font-size:
|
|
15
|
+
font-size: 32px;
|
|
18
16
|
font-style: normal;
|
|
19
17
|
font-weight: 500;
|
|
20
18
|
line-height: 1.43;
|
|
19
|
+
@media only screen and (min-width: $screen-xs) {
|
|
20
|
+
font-size: 38px;
|
|
21
|
+
}
|
|
21
22
|
&:local(.bigHeader) {
|
|
22
23
|
font-family: "Altis-Light", "Open Sans", arial, sans-serif;
|
|
23
|
-
font-size:
|
|
24
|
+
font-size: 40px;
|
|
24
25
|
line-height: 1.2;
|
|
25
26
|
overflow: hidden;
|
|
26
27
|
text-overflow: ellipsis;
|
|
28
|
+
@media only screen and (min-width: $screen-xs) {
|
|
29
|
+
font-size: 50px;
|
|
30
|
+
}
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
33
|
&:local(.size-2) {
|
|
30
34
|
font-family: "Altis", sans-serif;
|
|
31
|
-
font-size:
|
|
35
|
+
font-size: 25px;
|
|
32
36
|
font-style: normal;
|
|
33
37
|
font-weight: 500;
|
|
34
38
|
line-height: 1.42;
|
|
39
|
+
@media only screen and (min-width: $screen-xs) {
|
|
40
|
+
font-size: 30px;
|
|
41
|
+
}
|
|
35
42
|
}
|
|
36
43
|
&:local(.size-3) {
|
|
37
44
|
font-family: "Open Sans", arial, sans-serif;
|
|
38
|
-
font-size:
|
|
45
|
+
font-size: 19px;
|
|
39
46
|
font-style: normal;
|
|
40
47
|
font-weight: bold;
|
|
41
48
|
line-height: 1;
|
|
49
|
+
@media only screen and (min-width: $screen-xs) {
|
|
50
|
+
font-size: 22px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
&:local(.size-4) {
|
|
54
|
+
font-family: "Open Sans", arial, sans-serif;
|
|
55
|
+
font-size: 17px;
|
|
56
|
+
font-style: italic;
|
|
57
|
+
font-weight: normal;
|
|
58
|
+
line-height: 1;
|
|
59
|
+
@media only screen and (min-width: $screen-xs) {
|
|
60
|
+
font-size: 21px;
|
|
61
|
+
}
|
|
42
62
|
}
|
|
43
63
|
}
|
|
44
64
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
@import "../style/global.scss";
|
|
2
|
+
|
|
1
3
|
:local(.paper) {
|
|
2
4
|
line-height: 1.6;
|
|
3
5
|
position: relative;
|
|
4
|
-
padding: 24px 28px;
|
|
5
|
-
margin: 20px 0;
|
|
6
6
|
width: 100%;
|
|
7
7
|
background: white;
|
|
8
|
-
box-shadow: 0 2px 3px rgba(0,0,0,0.18);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
margin: 0;
|
|
8
|
+
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18);
|
|
9
|
+
&:not(:local(.noMargin)) {
|
|
10
|
+
margin: 20px 0;
|
|
12
11
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
&:not(:local(.noPadding)) {
|
|
13
|
+
padding: 12px 12px;
|
|
14
|
+
@media only screen and (min-width: $screen-xs) {
|
|
15
|
+
padding: 24px 28px;
|
|
16
|
+
}
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -84,6 +84,7 @@ var Textarea = /*#__PURE__*/function (_React$Component) {
|
|
|
84
84
|
var _this$props$width, _this$props$resize, _props;
|
|
85
85
|
|
|
86
86
|
var defaultValue = !this.props.value && this.props.defaultValue ? this.props.defaultValue : false;
|
|
87
|
+
var defaultKey = this.props.elementKey || null;
|
|
87
88
|
|
|
88
89
|
var styleRules = _objectSpread(_objectSpread(_objectSpread({}, this.props.hasErrors ? this.getThemeErrorInputStyle(this.props.theme) : null), ((_this$props$width = this.props.width) === null || _this$props$width === void 0 ? void 0 : _this$props$width.length) && {
|
|
89
90
|
maxWidth: this.props.width
|
|
@@ -97,7 +98,7 @@ var Textarea = /*#__PURE__*/function (_React$Component) {
|
|
|
97
98
|
disabled: this.props.disabled,
|
|
98
99
|
type: this.props.type,
|
|
99
100
|
id: this.props.id,
|
|
100
|
-
key: "".concat(this.props.id, "-").concat((0, _generators.generateRandomString)(6)),
|
|
101
|
+
key: defaultKey || "".concat(this.props.id, "-").concat((0, _generators.generateRandomString)(6)),
|
|
101
102
|
onChange: this.props.onChange,
|
|
102
103
|
onBlur: this.props.onBlur
|
|
103
104
|
}, _defineProperty(_props, defaultValue ? 'defaultValue' : 'value', defaultValue || this.props.value), _defineProperty(_props, "placeholder", this.props.placeholder), _defineProperty(_props, "rows", this.props.rows), _defineProperty(_props, "className", this.props.hasErrors ? _TextareaModule.default.hasErrors : ''), _defineProperty(_props, 'aria-required', this.props.mandatory), _defineProperty(_props, "style", styleRules), _props);
|
|
@@ -131,6 +132,7 @@ Textarea.propTypes = {
|
|
|
131
132
|
resize: _propTypes.default.string,
|
|
132
133
|
value: _propTypes.default.string,
|
|
133
134
|
defaultValue: _propTypes.default.string,
|
|
135
|
+
elementKey: _propTypes.default.string,
|
|
134
136
|
rows: _propTypes.default.string,
|
|
135
137
|
label: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]))]),
|
|
136
138
|
contentOnly: _propTypes.default.bool,
|
|
@@ -13,6 +13,7 @@ Input field example:
|
|
|
13
13
|
<Textarea id="textInput10" onChange={() => {console.log('onChange')}} label="Textarea without value, contentOnly set to true and defaultContent" contentOnly={true} defaultContent="Please insert a value" />
|
|
14
14
|
<Textarea id="textInput11" onChange={()=>{console.log('onchange')}} value="Textarea with custom width" width="320px" />
|
|
15
15
|
<Textarea id="textInput11" onChange={()=>{console.log('onchange')}} value="Textarea with custom width and vertical resizing" width="450px" resize="vertical" />
|
|
16
|
+
<Textarea id="textInput11" onChange={()=>{console.log('onchange')}} value="Textarea with a not auto generated key" elementKey="textareaKeyHere" />
|
|
16
17
|
```
|
|
17
18
|
|
|
18
19
|
Themed Input field example:
|
|
Binary file
|