dibk-design 4.3.1 → 4.4.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.
@@ -5,6 +5,6 @@
5
5
  padding: 8px;
6
6
  @media (min-width: $screen-sm) {
7
7
  padding: 20px;
8
- max-width: 860px;
8
+ max-width: $content-width;
9
9
  }
10
10
  }
@@ -18,20 +18,24 @@ const ErrorBox = props => {
18
18
  };
19
19
  };
20
20
  return _react.default.createElement("div", {
21
- className: (0, _helpers.classNameArrayToClassNameString)([_ErrorBoxModule.default.errorBox, _ErrorBoxModule.default[props.type]]),
21
+ className: (0, _helpers.classNameArrayToClassNameString)([_ErrorBoxModule.default.errorBoxContainer, _ErrorBoxModule.default[props.type], props.fullScreen && _ErrorBoxModule.default.fullScreen]),
22
22
  style: getThemeErrorBoxStyle()
23
+ }, _react.default.createElement("div", {
24
+ className: (0, _helpers.classNameArrayToClassNameString)([_ErrorBoxModule.default.errorBox, props.fullScreen && _ErrorBoxModule.default.fullScreen])
23
25
  }, _react.default.createElement("img", {
24
26
  src: _infoSign.default,
25
27
  alt: "",
26
28
  className: _ErrorBoxModule.default.infoSign
27
- }), props.children);
29
+ }), props.children));
28
30
  };
29
31
  ErrorBox.propTypes = {
30
32
  theme: _propTypes.default.object,
31
- type: _propTypes.default.oneOf(["warning", "error"])
33
+ type: _propTypes.default.oneOf(["warning", "error"]),
34
+ fullScreen: _propTypes.default.bool
32
35
  };
33
36
  ErrorBox.defaultProps = {
34
37
  children: "",
35
- type: "warning"
38
+ type: "warning",
39
+ fullScreen: false
36
40
  };
37
41
  var _default = exports.default = ErrorBox;
@@ -7,45 +7,58 @@
7
7
  }
8
8
  }
9
9
 
10
- .errorBox {
11
- border-left-width: 4px;
12
- border-left-style: solid;
13
- padding: 24px 24px 24px calc(1.2em + 48px);
10
+ .errorBoxContainer {
14
11
  font-family: $default-font;
15
12
  margin: 0;
16
13
  animation: 1000ms cubic-bezier(0.22, 1, 0.36, 1) 0s 1 normal none running messageIn;
17
14
  position: relative;
18
15
  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
16
  &.warning {
29
17
  background-color: $color-warning-x-light;
30
- border-left-color: $color-warning;
18
+ border-color: $color-warning;
31
19
  }
32
20
  &.error {
33
21
  background-color: $color-error-x-light;
34
- border-left-color: $color-error;
22
+ border-color: $color-error;
35
23
  }
36
- h1,
37
- h2,
38
- h3,
39
- h4 {
40
- font-size: 20px;
41
- font-weight: 500;
42
- line-height: 1.3;
43
- margin: 0;
44
- @media only screen and (min-width: $screen-sm) {
45
- font-size: 24px;
46
- }
24
+ &.fullScreen {
25
+ border-bottom-width: 4px;
26
+ border-bottom-style: solid;
47
27
  }
48
- ul {
49
- padding-left: 20px;
28
+ &:not(.fullScreen) {
29
+ border-left-width: 4px;
30
+ border-left-style: solid;
31
+ }
32
+ .errorBox {
33
+ padding: 24px 24px 24px calc(1.2em + 48px);
34
+ &.fullScreen {
35
+ max-width: $content-width;
36
+ margin: auto;
37
+ position: relative;
38
+ }
39
+ .infoSign {
40
+ position: absolute;
41
+ top: 24px;
42
+ left: 24px;
43
+ width: 24px;
44
+ height: 24px;
45
+ display: inline-block;
46
+ vertical-align: middle;
47
+ }
48
+ h1,
49
+ h2,
50
+ h3,
51
+ h4 {
52
+ font-size: 20px;
53
+ font-weight: 500;
54
+ line-height: 1.3;
55
+ margin: 0;
56
+ @media only screen and (min-width: $screen-sm) {
57
+ font-size: 24px;
58
+ }
59
+ }
60
+ ul {
61
+ padding-left: 20px;
62
+ }
50
63
  }
51
64
  }
@@ -1,7 +1,6 @@
1
1
  @import "../style/global.scss";
2
2
 
3
3
  .headerContainer {
4
- padding: 5px 0;
5
4
  .header {
6
5
  margin: 0;
7
6
  font-weight: normal;
@@ -1,4 +1,5 @@
1
1
  @import "colors";
2
+ @import "sizes";
2
3
  @import "transitions";
3
4
  @import "typography";
4
5
  @import "viewports";
@@ -0,0 +1 @@
1
+ $content-width: 860px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dibk-design",
3
- "version": "4.3.1",
3
+ "version": "4.4.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "files": [