dibk-design 4.5.0 → 5.0.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.
Files changed (90) hide show
  1. package/dist/assets/svg/arbeidstilsynet-logo.svg +1 -0
  2. package/dist/components/Accordion.module.scss +6 -6
  3. package/dist/components/Button.js +7 -24
  4. package/dist/components/Button.module.scss +92 -98
  5. package/dist/components/CheckBoxIcon.js +0 -9
  6. package/dist/components/CheckBoxIcon.module.scss +6 -6
  7. package/dist/components/CheckBoxInput.js +0 -2
  8. package/dist/components/CheckBoxInput.module.scss +3 -3
  9. package/dist/components/CheckBoxListItem.js +1 -3
  10. package/dist/components/CheckBoxListItem.module.scss +4 -4
  11. package/dist/components/ContentBox.module.scss +6 -6
  12. package/dist/components/Dialog.module.scss +1 -1
  13. package/dist/components/DragAndDropFileInput.js +3 -5
  14. package/dist/components/DragAndDropFileInput.module.scss +3 -3
  15. package/dist/components/ErrorBox.js +1 -9
  16. package/dist/components/ErrorBox.module.scss +4 -4
  17. package/dist/components/ErrorMessage.js +2 -10
  18. package/dist/components/Footer.module.scss +1 -1
  19. package/dist/components/Header.js +1 -3
  20. package/dist/components/Header.module.scss +1 -3
  21. package/dist/components/InfoBox.js +1 -12
  22. package/dist/components/InfoBox.module.scss +3 -3
  23. package/dist/components/InputField.js +3 -14
  24. package/dist/components/InputField.module.scss +7 -7
  25. package/dist/components/NavigationBar.js +6 -30
  26. package/dist/components/NavigationBar.module.scss +25 -27
  27. package/dist/components/NavigationBarListItem.js +3 -15
  28. package/dist/components/PDF.scss +9 -5
  29. package/dist/components/ProgressBar.module.scss +2 -2
  30. package/dist/components/RadioButtonIcon.js +0 -9
  31. package/dist/components/RadioButtonIcon.module.scss +6 -6
  32. package/dist/components/RadioButtonInput.js +0 -2
  33. package/dist/components/RadioButtonInput.module.scss +3 -3
  34. package/dist/components/RadioButtonListItem.js +2 -4
  35. package/dist/components/RadioButtonListItem.module.scss +6 -6
  36. package/dist/components/Select.js +4 -21
  37. package/dist/components/Select.module.scss +6 -6
  38. package/dist/components/Table.module.scss +5 -5
  39. package/dist/components/Textarea.js +2 -12
  40. package/dist/components/Textarea.module.scss +5 -5
  41. package/dist/components/Theme.js +97 -51
  42. package/dist/components/Theme.module.scss +86 -21
  43. package/dist/components/ThemeProvider.js +24 -0
  44. package/dist/components/ThemeProvider.module.scss +22 -0
  45. package/dist/components/WizardNavigation/Step.module.scss +8 -8
  46. package/dist/functions/helpers.js +49 -1
  47. package/dist/functions/theme.js +2 -37
  48. package/dist/index.js +7 -0
  49. package/dist/style/abstracts/variables/_colors.scss +12 -16
  50. package/dist/style/base/_fonts.scss +0 -106
  51. package/dist/style/pdf.css +6 -5
  52. package/dist/style/pdf.css.map +1 -1
  53. package/package.json +2 -1
  54. package/dist/assets/fonts/Altis-Light.eot +0 -0
  55. package/dist/assets/fonts/Altis-Light.svg +0 -326
  56. package/dist/assets/fonts/Altis-Light.ttf +0 -0
  57. package/dist/assets/fonts/Altis-Light.woff +0 -0
  58. package/dist/assets/fonts/Altis.eot +0 -0
  59. package/dist/assets/fonts/Altis.svg +0 -327
  60. package/dist/assets/fonts/Altis.ttf +0 -0
  61. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-300.eot +0 -0
  62. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-300.svg +0 -346
  63. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-300.ttf +0 -0
  64. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-300.woff +0 -0
  65. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-300.woff2 +0 -0
  66. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-300italic.eot +0 -0
  67. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-300italic.svg +0 -377
  68. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-300italic.ttf +0 -0
  69. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-300italic.woff +0 -0
  70. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-300italic.woff2 +0 -0
  71. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-700.eot +0 -0
  72. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-700.svg +0 -349
  73. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-700.ttf +0 -0
  74. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-700.woff +0 -0
  75. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-700.woff2 +0 -0
  76. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-700italic.eot +0 -0
  77. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-700italic.svg +0 -379
  78. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-700italic.ttf +0 -0
  79. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-700italic.woff +0 -0
  80. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-700italic.woff2 +0 -0
  81. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-italic.eot +0 -0
  82. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-italic.svg +0 -379
  83. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-italic.ttf +0 -0
  84. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-italic.woff +0 -0
  85. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-italic.woff2 +0 -0
  86. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-regular.eot +0 -0
  87. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-regular.svg +0 -349
  88. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-regular.ttf +0 -0
  89. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-regular.woff +0 -0
  90. package/dist/assets/fonts/open-sans-v27-latin-ext_latin-regular.woff2 +0 -0
@@ -1,36 +1,101 @@
1
1
  @import "../style/global.scss";
2
2
 
3
- * {
4
- color: $color-default-text;
3
+ section:not(:last-of-type) {
4
+ margin: 24px 0;
5
5
  }
6
6
 
7
- a {
8
- color: $color-primary;
9
- }
10
-
11
- img {
12
- max-width: 200px;
13
- max-height: 150px;
7
+ section:last-of-type {
8
+ margin: 24px 0 0 0;
14
9
  }
15
10
 
16
11
  .colorPalette {
17
12
  display: flex;
18
13
  flex-wrap: wrap;
14
+ font-size: 12px;
15
+ > div {
16
+ padding: 8px;
17
+ text-align: right;
18
+ width: 50%;
19
+ @media screen and (min-width: $screen-sm) {
20
+ width: 25%;
21
+ }
22
+ @media screen and (min-width: $screen-md) {
23
+ width: 16.6%;
24
+ }
25
+ }
19
26
 
20
27
  .color {
21
- width: 20%;
22
- min-width: 120px;
23
- text-align: center;
24
- line-height: 3em;
25
-
26
- &.default {
27
- background-color: $color-default-background;
28
- color: $color-default-text;
28
+ &.bodyBackground {
29
+ background-color: var(--color-body-background, $color-body-background);
29
30
  }
30
-
31
- &.secodary {
32
- background-color: $color-secondary-background;
33
- color: $color-default-text;
31
+ &.defaultText {
32
+ background-color: var(--color-default-text, $color-default-text);
33
+ }
34
+ &.primaryText {
35
+ background-color: var(--color-primary-text, $color-primary-text);
36
+ }
37
+ &.secondaryText {
38
+ background-color: var(--color-secondary-text, $color-secondary-text);
39
+ }
40
+ &.primary {
41
+ background-color: var(--color-primary, $color-primary);
42
+ }
43
+ &.primaryLight {
44
+ background-color: var(--color-primary-light, $color-primary-light);
45
+ }
46
+ &.primaryXLight {
47
+ background-color: var(--color-primary-x-light, $color-primary-x-light);
48
+ }
49
+ &.primaryContrast {
50
+ background-color: var(--color-primary-contrast, $color-primary-contrast);
51
+ }
52
+ &.secondary {
53
+ background-color: var(--color-secondary, $color-secondary);
54
+ }
55
+ &.secondaryLight {
56
+ background-color: var(--color-secondary-light, $color-secondary-light);
57
+ }
58
+ &.secondaryXLight {
59
+ background-color: var(--color-secondary-x-light, $color-secondary-x-light);
60
+ }
61
+ &.secondaryContrast {
62
+ background-color: var(--color-secondary-contrast, $color-secondary-contrast);
63
+ }
64
+ &.focus {
65
+ background-color: var(--color-focus, $color-focus);
66
+ }
67
+ &.defaultBackground {
68
+ background-color: var(--color-default-background, $color-default-background);
69
+ }
70
+ &.secondaryBackground {
71
+ background-color: var(--color-secondary-background, $color-secondary-background);
72
+ }
73
+ &.success {
74
+ background-color: var(--color-success, $color-success);
75
+ }
76
+ &.successLight {
77
+ background-color: var(--color-success-light, $color-success-light);
78
+ }
79
+ &.successXLight {
80
+ background-color: var(--color-success-x-light, $color-success-x-light);
81
+ }
82
+ &.warning {
83
+ background-color: var(--color-warning, $color-warning);
84
+ }
85
+ &.warningLight {
86
+ background-color: var(--color-warning-light, $color-warning-light);
87
+ }
88
+ &.warningXLight {
89
+ background-color: var(--color-warning-x-light, $color-warning-x-light);
90
+ }
91
+ &.error {
92
+ background-color: var(--color-error, $color-error);
93
+ }
94
+ &.errorLight {
95
+ background-color: var(--color-error-light, $color-error-light);
96
+ }
97
+ &.errorXLight {
98
+ background-color: var(--color-error-x-light, $color-error-x-light);
34
99
  }
35
100
  }
36
101
  }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _propTypes = _interopRequireDefault(require("prop-types"));
8
+ var _helpers = require("functions/helpers");
9
+ var _ThemeProviderModule = _interopRequireDefault(require("!!raw-loader!sass-loader!./ThemeProvider.module.scss"));
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ const ThemeProvider = _ref => {
12
+ let {
13
+ theme,
14
+ children
15
+ } = _ref;
16
+ const cssVariablesFromTheme = (0, _helpers.getCssVariablesFromTheme)(theme);
17
+ const cssColorVariablesString = (0, _helpers.stringifyCssColorVariables)(cssVariablesFromTheme);
18
+ (0, _helpers.addGlobalStylesheet)("theme-provider", ":root {".concat(cssColorVariablesString, "} ").concat(_ThemeProviderModule.default));
19
+ return children;
20
+ };
21
+ ThemeProvider.propTypes = {
22
+ theme: _propTypes.default.object
23
+ };
24
+ var _default = exports.default = ThemeProvider;
@@ -0,0 +1,22 @@
1
+ @import "../style/abstracts/all";
2
+
3
+ *,
4
+ *::before,
5
+ *::after {
6
+ box-sizing: border-box;
7
+ }
8
+ body {
9
+ margin: 0;
10
+ font-family: $default-font;
11
+ background-color: var(--color-body-background, $color-body-background);
12
+ color: var(--color-default-text, $color-default-text);
13
+ font-size: 16px;
14
+ line-height: 24px;
15
+ -webkit-font-smoothing: antialiased;
16
+ -moz-osx-font-smoothing: grayscale;
17
+ font-weight: normal;
18
+ letter-spacing: 0.01em;
19
+ }
20
+ a {
21
+ color: var(--color-primary, $color-primary);
22
+ }
@@ -1,7 +1,7 @@
1
1
  @import "../../style/global.scss";
2
2
 
3
3
  .wizard-topnav .wizard-topnav-item.finished .wizard-topnav-item-content:before {
4
- background-color: $color-primary;
4
+ background-color: var(--color-primary, $color-primary);
5
5
  }
6
6
 
7
7
  .wizardTopnavItem {
@@ -49,7 +49,7 @@
49
49
  display: block;
50
50
  text-align: center;
51
51
  background-color: #e2e1e0;
52
- color: $color-default-text;
52
+ color: var(--color-default-text, $color-default-text);
53
53
  position: relative;
54
54
  font-size: 20px;
55
55
  line-height: 1.75em;
@@ -62,7 +62,7 @@
62
62
  .stepName {
63
63
  display: block;
64
64
  text-align: left;
65
- color: $color-default-text;
65
+ color: var(--color-default-text, $color-default-text);
66
66
  flex: 1;
67
67
  flex-basis: min-content;
68
68
  @media only screen and (min-width: $screen-sm) {
@@ -73,17 +73,17 @@
73
73
  }
74
74
  &.active {
75
75
  :local(.stepNumber) {
76
- background-color: $color-primary;
76
+ background-color: var(--color-primary, $color-primary);
77
77
  color: #fff;
78
78
  }
79
79
  }
80
80
  &.finished {
81
81
  .wizardTopnavItemContent {
82
82
  &:before {
83
- background-color: $color-primary;
83
+ background-color: var(--color-primary, $color-primary);
84
84
  }
85
85
  .stepNumber {
86
- background-color: $color-primary;
86
+ background-color: var(--color-primary, $color-primary);
87
87
  color: #fff;
88
88
  }
89
89
  }
@@ -91,10 +91,10 @@
91
91
  &.hasErrors {
92
92
  .wizardTopnavItemContent {
93
93
  &:before {
94
- background-color: $color-warning;
94
+ background-color: var(--color-warning, $color-warning);
95
95
  }
96
96
  .stepNumber {
97
- background-color: $color-warning;
97
+ background-color: var(--color-warning, $color-warning);
98
98
  color: #fff;
99
99
  }
100
100
  }
@@ -3,13 +3,61 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.setFocusToElement = exports.getFocusableElementsInsideElement = exports.cloneThroughFragments = exports.classNameArrayToClassNameString = exports.addFocusTrapInsideElement = void 0;
6
+ exports.stringifyCssColorVariables = exports.setFocusToElement = exports.getFocusableElementsInsideElement = exports.getCssVariablesFromTheme = exports.getCssSizeVariablesFromTheme = exports.getCssColorVariablesFromTheme = exports.cloneThroughFragments = exports.classNameArrayToClassNameString = exports.camelCaseToKebabCase = exports.addGlobalStylesheet = exports.addFocusTrapInsideElement = void 0;
7
7
  var _react = require("react");
8
8
  const classNameArrayToClassNameString = classNameArray => {
9
9
  var _classNameArray$filte;
10
10
  return (classNameArray === null || classNameArray === void 0 || (_classNameArray$filte = classNameArray.filter(className => className)) === null || _classNameArray$filte === void 0 ? void 0 : _classNameArray$filte.join(" ")) || "";
11
11
  };
12
12
  exports.classNameArrayToClassNameString = classNameArrayToClassNameString;
13
+ const camelCaseToKebabCase = string => {
14
+ return string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase();
15
+ };
16
+ exports.camelCaseToKebabCase = camelCaseToKebabCase;
17
+ const getCssColorVariablesFromTheme = theme => {
18
+ var _Object$entries;
19
+ return !!(theme !== null && theme !== void 0 && theme.colors) && !!((_Object$entries = Object.entries(theme === null || theme === void 0 ? void 0 : theme.colors)) !== null && _Object$entries !== void 0 && _Object$entries.length) && Object.entries(theme === null || theme === void 0 ? void 0 : theme.colors).reduce((acc, _ref) => {
20
+ let [key, value] = _ref;
21
+ if (key !== null && key !== void 0 && key.length && value !== null && value !== void 0 && value.length) {
22
+ acc["--color-".concat(camelCaseToKebabCase(key))] = value;
23
+ }
24
+ return acc;
25
+ }, {});
26
+ };
27
+ exports.getCssColorVariablesFromTheme = getCssColorVariablesFromTheme;
28
+ const getCssSizeVariablesFromTheme = theme => {
29
+ var _Object$entries2;
30
+ return !!(theme !== null && theme !== void 0 && theme.sizes) && !!((_Object$entries2 = Object.entries(theme === null || theme === void 0 ? void 0 : theme.sizes)) !== null && _Object$entries2 !== void 0 && _Object$entries2.length) && Object.entries(theme === null || theme === void 0 ? void 0 : theme.sizes).reduce((acc, _ref2) => {
31
+ let [key, value] = _ref2;
32
+ if (key !== null && key !== void 0 && key.length && value !== null && value !== void 0 && value.length) {
33
+ acc["--size-".concat(camelCaseToKebabCase(key))] = value;
34
+ }
35
+ return acc;
36
+ }, {});
37
+ };
38
+ exports.getCssSizeVariablesFromTheme = getCssSizeVariablesFromTheme;
39
+ const getCssVariablesFromTheme = theme => {
40
+ return {
41
+ ...getCssColorVariablesFromTheme(theme),
42
+ ...getCssSizeVariablesFromTheme(theme)
43
+ };
44
+ };
45
+ exports.getCssVariablesFromTheme = getCssVariablesFromTheme;
46
+ const addGlobalStylesheet = (styleElementId, styles) => {
47
+ var _document$getElementB;
48
+ const style = document.createElement("style");
49
+ style.setAttribute("id", styleElementId);
50
+ style.textContent = styles;
51
+ (_document$getElementB = document.getElementById(styleElementId)) === null || _document$getElementB === void 0 || _document$getElementB.remove();
52
+ document.head.appendChild(style);
53
+ };
54
+ exports.addGlobalStylesheet = addGlobalStylesheet;
55
+ const stringifyCssColorVariables = colorVariables => {
56
+ return Object.keys(colorVariables).reduce((css, key) => {
57
+ return "".concat(css).concat(key, ": ").concat(colorVariables[key], ";");
58
+ }, "");
59
+ };
60
+ exports.stringifyCssColorVariables = stringifyCssColorVariables;
13
61
  const cloneThroughFragments = children => {
14
62
  return _react.Children.map(children, c => {
15
63
  if ((0, _react.isValidElement)(c)) {
@@ -3,32 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getThemeTextColor = exports.getThemePaletteTextColor = exports.getThemePaletteBorderColor = exports.getThemePaletteBackgroundColor = exports.getThemeNavigationBarTextColor = exports.getThemeNavigationBarBackgroundColor = exports.getThemeLogoPadding = exports.getThemeLogo = exports.getThemeLinkColor = exports.getThemeAppName = void 0;
7
- const getThemePaletteBackgroundColor = (theme, color) => {
8
- var _theme$colors;
9
- return (theme === null || theme === void 0 || (_theme$colors = theme.colors) === null || _theme$colors === void 0 || (_theme$colors = _theme$colors.palette) === null || _theme$colors === void 0 || (_theme$colors = _theme$colors[color]) === null || _theme$colors === void 0 ? void 0 : _theme$colors.background) || null;
10
- };
11
- exports.getThemePaletteBackgroundColor = getThemePaletteBackgroundColor;
12
- const getThemePaletteTextColor = (theme, color) => {
13
- var _theme$colors2;
14
- return (theme === null || theme === void 0 || (_theme$colors2 = theme.colors) === null || _theme$colors2 === void 0 || (_theme$colors2 = _theme$colors2.palette) === null || _theme$colors2 === void 0 || (_theme$colors2 = _theme$colors2[color]) === null || _theme$colors2 === void 0 ? void 0 : _theme$colors2.text) || null;
15
- };
16
- exports.getThemePaletteTextColor = getThemePaletteTextColor;
17
- const getThemePaletteBorderColor = (theme, color) => {
18
- var _theme$colors3;
19
- return (theme === null || theme === void 0 || (_theme$colors3 = theme.colors) === null || _theme$colors3 === void 0 || (_theme$colors3 = _theme$colors3.palette) === null || _theme$colors3 === void 0 || (_theme$colors3 = _theme$colors3[color]) === null || _theme$colors3 === void 0 ? void 0 : _theme$colors3.border) || null;
20
- };
21
- exports.getThemePaletteBorderColor = getThemePaletteBorderColor;
22
- const getThemeNavigationBarBackgroundColor = theme => {
23
- var _theme$colors4;
24
- return (theme === null || theme === void 0 || (_theme$colors4 = theme.colors) === null || _theme$colors4 === void 0 || (_theme$colors4 = _theme$colors4.navigationBar) === null || _theme$colors4 === void 0 ? void 0 : _theme$colors4.background) || null;
25
- };
26
- exports.getThemeNavigationBarBackgroundColor = getThemeNavigationBarBackgroundColor;
27
- const getThemeNavigationBarTextColor = theme => {
28
- var _theme$colors5;
29
- return (theme === null || theme === void 0 || (_theme$colors5 = theme.colors) === null || _theme$colors5 === void 0 || (_theme$colors5 = _theme$colors5.navigationBar) === null || _theme$colors5 === void 0 ? void 0 : _theme$colors5.text) || null;
30
- };
31
- exports.getThemeNavigationBarTextColor = getThemeNavigationBarTextColor;
6
+ exports.getThemeLogoPadding = exports.getThemeLogo = exports.getThemeAppName = void 0;
32
7
  const getThemeLogo = theme => {
33
8
  return (theme === null || theme === void 0 ? void 0 : theme.logo) || null;
34
9
  };
@@ -40,14 +15,4 @@ exports.getThemeLogoPadding = getThemeLogoPadding;
40
15
  const getThemeAppName = theme => {
41
16
  return (theme === null || theme === void 0 ? void 0 : theme.appName) || null;
42
17
  };
43
- exports.getThemeAppName = getThemeAppName;
44
- const getThemeTextColor = theme => {
45
- var _theme$colors6;
46
- return (theme === null || theme === void 0 || (_theme$colors6 = theme.colors) === null || _theme$colors6 === void 0 ? void 0 : _theme$colors6.text) || null;
47
- };
48
- exports.getThemeTextColor = getThemeTextColor;
49
- const getThemeLinkColor = theme => {
50
- var _theme$colors7;
51
- return (theme === null || theme === void 0 || (_theme$colors7 = theme.colors) === null || _theme$colors7 === void 0 ? void 0 : _theme$colors7.link) || null;
52
- };
53
- exports.getThemeLinkColor = getThemeLinkColor;
18
+ exports.getThemeAppName = getThemeAppName;
package/dist/index.js CHANGED
@@ -189,6 +189,12 @@ Object.defineProperty(exports, "Textarea", {
189
189
  return _Textarea.default;
190
190
  }
191
191
  });
192
+ Object.defineProperty(exports, "ThemeProvider", {
193
+ enumerable: true,
194
+ get: function () {
195
+ return _ThemeProvider.default;
196
+ }
197
+ });
192
198
  Object.defineProperty(exports, "WizardNavigation", {
193
199
  enumerable: true,
194
200
  get: function () {
@@ -232,6 +238,7 @@ var _RadioButtonListItem = _interopRequireDefault(require("./components/RadioBut
232
238
  var _Select = _interopRequireDefault(require("./components/Select"));
233
239
  var _Table = _interopRequireDefault(require("./components/Table"));
234
240
  var _Textarea = _interopRequireDefault(require("./components/Textarea"));
241
+ var _ThemeProvider = _interopRequireDefault(require("./components/ThemeProvider"));
235
242
  var _WizardNavigation = _interopRequireDefault(require("./components/WizardNavigation"));
236
243
  var _Step = _interopRequireDefault(require("./components/WizardNavigation/Step"));
237
244
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,36 +1,32 @@
1
- $body-background: #ebf4fa;
1
+ $color-body-background: #ebf4fa;
2
2
  $color-default-text: #202020;
3
+ $color-heading-text: #003045;
3
4
  $color-primary-text: #005275;
5
+ $color-secondary-text: #89bad6;
4
6
 
5
7
  $color-primary: #003045;
6
8
  $color-primary-light: #264f61;
7
9
  $color-primary-x-light: #406474;
10
+ $color-primary-contrast: #ffffff;
8
11
 
9
- $color-secondary: #89bad6;
12
+ $color-secondary: #ffffff;
10
13
  $color-secondary-light: #c7e0f2;
11
14
  $color-secondary-x-light: #ebf4fa;
15
+ $color-secondary-contrast: #005275;
12
16
 
13
17
  $color-focus: rgba(0, 92, 173, 0.4);
14
18
 
15
19
  $color-default-background: #f1fae3;
16
20
  $color-secondary-background: #f5f0f0;
17
21
 
18
- $color-success: #43ac6a;
19
-
20
- $color-error: #db0000;
21
- $color-error-light: #ffc5c2;
22
- $color-error-x-light: #fceceb;
22
+ $color-success: #177912;
23
+ $color-success-light: #cbebb0;
24
+ $color-success-x-light: #f1fae3;
23
25
 
24
26
  $color-warning: #ffbe00;
25
27
  $color-warning-light: #fcefb6;
26
28
  $color-warning-x-light: #fff8db;
27
29
 
28
- $color-info: #a0d3e8;
29
-
30
- $color-light-cyan: #ecf2f6;
31
-
32
- $color-orange: #f08a24;
33
- $color-light-orange: #faefdf;
34
-
35
- $color-lime: #c9d12b;
36
- $color-light-lime: #f0f2cb;
30
+ $color-error: #db0000;
31
+ $color-error-light: #ffc5c2;
32
+ $color-error-x-light: #fceceb;
@@ -1,111 +1,5 @@
1
1
  $font-path: "../../assets/fonts";
2
2
 
3
- @font-face {
4
- font-family: "Altis";
5
- src: url("#{$font-path}/Altis.eot#Altis") format("eot");
6
- src:
7
- local("Altis"),
8
- url("#{$font-path}/Altis.ttf") format("truetype"),
9
- url("#{$font-path}/Altis.svg") format("svg");
10
- }
11
-
12
- @font-face {
13
- font-family: "Altis-Light";
14
- src: url("#{$font-path}/Altis-Light.eot#Altis-Light") format("eot");
15
- src:
16
- local("Altis-Light"),
17
- url("#{$font-path}/Altis-Light.woff") format("woff"),
18
- url("#{$font-path}/Altis-Light.ttf") format("truetype"),
19
- url("#{$font-path}/Altis-Light.svg") format("svg");
20
- }
21
-
22
- /* open-sans-300 - latin-ext_latin */
23
- @font-face {
24
- font-family: "Open Sans";
25
- font-style: normal;
26
- font-weight: 300;
27
- src: url("#{$font-path}/open-sans-v27-latin-ext_latin-300.eot"); /* IE9 Compat Modes */
28
- src:
29
- local(""),
30
- url("#{$font-path}/open-sans-v27-latin-ext_latin-300.eot?#iefix") format("embedded-opentype"),
31
- /* IE6-IE8 */ url("#{$font-path}/open-sans-v27-latin-ext_latin-300.woff2") format("woff2"),
32
- /* Super Modern Browsers */ url("#{$font-path}/open-sans-v27-latin-ext_latin-300.woff") format("woff"),
33
- /* Modern Browsers */ url("#{$font-path}/open-sans-v27-latin-ext_latin-300.ttf") format("truetype"),
34
- /* Safari, Android, iOS */ url("#{$font-path}/open-sans-v27-latin-ext_latin-300.svg#OpenSans") format("svg"); /* Legacy iOS */
35
- }
36
- /* open-sans-regular - latin-ext_latin */
37
- @font-face {
38
- font-family: "Open Sans";
39
- font-style: normal;
40
- font-weight: 400;
41
- src: url("#{$font-path}/open-sans-v27-latin-ext_latin-regular.eot"); /* IE9 Compat Modes */
42
- src:
43
- local(""),
44
- url("#{$font-path}/open-sans-v27-latin-ext_latin-regular.eot?#iefix") format("embedded-opentype"),
45
- /* IE6-IE8 */ url("#{$font-path}/open-sans-v27-latin-ext_latin-regular.woff2") format("woff2"),
46
- /* Super Modern Browsers */ url("#{$font-path}/open-sans-v27-latin-ext_latin-regular.woff") format("woff"),
47
- /* Modern Browsers */ url("#{$font-path}/open-sans-v27-latin-ext_latin-regular.ttf") format("truetype"),
48
- /* Safari, Android, iOS */ url("#{$font-path}/open-sans-v27-latin-ext_latin-regular.svg#OpenSans") format("svg"); /* Legacy iOS */
49
- }
50
- /* open-sans-700 - latin-ext_latin */
51
- @font-face {
52
- font-family: "Open Sans";
53
- font-style: normal;
54
- font-weight: 700;
55
- src: url("#{$font-path}/open-sans-v27-latin-ext_latin-700.eot"); /* IE9 Compat Modes */
56
- src:
57
- local(""),
58
- url("#{$font-path}/open-sans-v27-latin-ext_latin-700.eot?#iefix") format("embedded-opentype"),
59
- /* IE6-IE8 */ url("#{$font-path}/open-sans-v27-latin-ext_latin-700.woff2") format("woff2"),
60
- /* Super Modern Browsers */ url("#{$font-path}/open-sans-v27-latin-ext_latin-700.woff") format("woff"),
61
- /* Modern Browsers */ url("#{$font-path}/open-sans-v27-latin-ext_latin-700.ttf") format("truetype"),
62
- /* Safari, Android, iOS */ url("#{$font-path}/open-sans-v27-latin-ext_latin-700.svg#OpenSans") format("svg"); /* Legacy iOS */
63
- }
64
- /* open-sans-300italic - latin-ext_latin */
65
- @font-face {
66
- font-family: "Open Sans";
67
- font-style: italic;
68
- font-weight: 300;
69
- src: url("#{$font-path}/open-sans-v27-latin-ext_latin-300italic.eot"); /* IE9 Compat Modes */
70
- src:
71
- local(""),
72
- url("#{$font-path}/open-sans-v27-latin-ext_latin-300italic.eot?#iefix") format("embedded-opentype"),
73
- /* IE6-IE8 */ url("#{$font-path}/open-sans-v27-latin-ext_latin-300italic.woff2") format("woff2"),
74
- /* Super Modern Browsers */ url("#{$font-path}/open-sans-v27-latin-ext_latin-300italic.woff") format("woff"),
75
- /* Modern Browsers */ url("#{$font-path}/open-sans-v27-latin-ext_latin-300italic.ttf") format("truetype"),
76
- /* Safari, Android, iOS */ url("#{$font-path}/open-sans-v27-latin-ext_latin-300italic.svg#OpenSans")
77
- format("svg"); /* Legacy iOS */
78
- }
79
- /* open-sans-italic - latin-ext_latin */
80
- @font-face {
81
- font-family: "Open Sans";
82
- font-style: italic;
83
- font-weight: 400;
84
- src: url("#{$font-path}/open-sans-v27-latin-ext_latin-italic.eot"); /* IE9 Compat Modes */
85
- src:
86
- local(""),
87
- url("#{$font-path}/open-sans-v27-latin-ext_latin-italic.eot?#iefix") format("embedded-opentype"),
88
- /* IE6-IE8 */ url("#{$font-path}/open-sans-v27-latin-ext_latin-italic.woff2") format("woff2"),
89
- /* Super Modern Browsers */ url("#{$font-path}/open-sans-v27-latin-ext_latin-italic.woff") format("woff"),
90
- /* Modern Browsers */ url("#{$font-path}/open-sans-v27-latin-ext_latin-italic.ttf") format("truetype"),
91
- /* Safari, Android, iOS */ url("#{$font-path}/open-sans-v27-latin-ext_latin-italic.svg#OpenSans") format("svg"); /* Legacy iOS */
92
- }
93
- /* open-sans-700italic - latin-ext_latin */
94
- @font-face {
95
- font-family: "Open Sans";
96
- font-style: italic;
97
- font-weight: 700;
98
- src: url("#{$font-path}/open-sans-v27-latin-ext_latin-700italic.eot"); /* IE9 Compat Modes */
99
- src:
100
- local(""),
101
- url("#{$font-path}/open-sans-v27-latin-ext_latin-700italic.eot?#iefix") format("embedded-opentype"),
102
- /* IE6-IE8 */ url("#{$font-path}/open-sans-v27-latin-ext_latin-700italic.woff2") format("woff2"),
103
- /* Super Modern Browsers */ url("#{$font-path}/open-sans-v27-latin-ext_latin-700italic.woff") format("woff"),
104
- /* Modern Browsers */ url("#{$font-path}/open-sans-v27-latin-ext_latin-700italic.ttf") format("truetype"),
105
- /* Safari, Android, iOS */ url("#{$font-path}/open-sans-v27-latin-ext_latin-700italic.svg#OpenSans")
106
- format("svg"); /* Legacy iOS */
107
- }
108
-
109
3
  @font-face {
110
4
  font-family: "PP Mori";
111
5
  src: url("#{$font-path}/PPMori-Regular.otf");
@@ -6,7 +6,6 @@ body {
6
6
  font-family: Carlito, sans-serif;
7
7
  color: #000;
8
8
  font-size: 16px;
9
- line-height: 1.25em;
10
9
  font-weight: normal;
11
10
  font-style: normal;
12
11
  }
@@ -24,6 +23,7 @@ body {
24
23
  font-family: Carlito, sans-serif;
25
24
  color: #000;
26
25
  font-size: 16px;
26
+ line-height: 22.5px;
27
27
  }
28
28
 
29
29
  @page {
@@ -244,8 +244,8 @@ body {
244
244
  width: 18px;
245
245
  }
246
246
  .page blockquote {
247
- background: #ebf4fa;
248
- border-left: 4px solid #89bad6;
247
+ background: var(--color-secondary-x-light, #ebf4fa);
248
+ border-left: 4px solid var(--color-secondary-text, #89bad6);
249
249
  margin: 5px 10px;
250
250
  padding: 0.5em 10px;
251
251
  min-height: 36px;
@@ -311,6 +311,7 @@ body {
311
311
  padding-left: 0.2cm;
312
312
  padding-right: 0.2cm;
313
313
  font-size: 17.72832px;
314
+ line-height: 24.93045px;
314
315
  }
315
316
  .page.signed-document div.content-container .heading-logo {
316
317
  width: 110.802px;
@@ -406,8 +407,8 @@ body {
406
407
  width: 19.94436px;
407
408
  }
408
409
  .page.signed-document div.content-container blockquote {
409
- background: #ebf4fa;
410
- border-left: 4.43208px solid #89bad6;
410
+ background: var(--color-secondary-x-light, #ebf4fa);
411
+ border-left: 4.43208px solid var(--color-secondary-text, #89bad6);
411
412
  margin: 5.5401px 11.0802px;
412
413
  padding: 0.5em 11.0802px;
413
414
  min-height: 39.88872px;
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../src/stories/PDF.scss","../../src/style/abstracts/mixins/_box-sizing.scss","../../src/style/abstracts/variables/_colors.scss"],"names":[],"mappings":"AAwDA;AAAA;EAEI;EACA;EACA;EACA;EACA;EACA,WA7Da;EA8Db;EACA;EACA;;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,WA9Ea;;;AAgFjB;EACI;EACA;EACA;EACA;EACA;;AAGJ;EACI;AAAA;IAEI;;EAEJ;IACI;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;;AAIR;EC1GE,oBD2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ACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAEJ;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA,YAhVwB;;AAiVxB;EACI,eAjVuB;;AAqV/B;EACI;EACA;EACA,QAtXU;EAuXV,OAtXS;EAuXT;EACA;EACA;EACA;EACA,WA9Xa;EA+Xb;EACA;;;AAKR;EACI;EACA;EACA;EACA;EACA;;AAEI;EACI;EACA;EACA;;AAEJ;AAAA;EAEI;EACA;;AACA;AAAA;EACI;;AAGR;AAAA;EAEI;EACA;EACA;;AACA;AAAA;EACI;EACA;;AAGR;AAAA;EAEI;EACA;EACA;;AAEJ;AAAA;EAEI;EACA;EACA;;AAEJ;AAAA;EAEI;EACA;EACA;;AAEJ;EACI;EACA;;AAEJ;EACI;EACA;;AACA;AAAA;EAEI;;AAGA;EACI;;AAEJ;EACI;;AAKR;EACI;;AACA;EACI;EACA;;AAEA;EACI;;AAIZ;EACI;;AACA;EACI;EACA;;AAEA;EACI;;AAKR;EACI;EACA;;AAEJ;EACI;EACA;;AAOR;AAAA;EACI;;AAIR;EACI,YEtfc;EFufd;EACA;EAEA;EACA;;AAGJ;EACI;;AACA;EACI;;AAEJ;EACI;EACA;EACA;EACA;EACA;;;AAKhB;EACI;IACI;IACA","file":"pdf.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../src/stories/PDF.scss","../../src/style/abstracts/mixins/_box-sizing.scss"],"names":[],"mappings":"AA0DA;AAAA;EAEI;EACA;EACA;EACA;EACA;EACA,WA/Da;EAgEb;EACA;;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,WA/Ea;EAgFb,aApEkB;;;AAsEtB;EACI;EACA;EACA;EACA;EACA;;AAGJ;EACI;AAAA;IAEI;;EAEJ;IACI;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;;AAIR;EC5GE,oBD6GsB;EC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;AAGJ;EACI;;AAGJ;EACI;;AAEJ;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA,YAhVwB;;AAiVxB;EACI,eAjVuB;;AAqV/B;EACI;EACA;EACA,QAtXU;EAuXV,OAtXS;EAuXT;EACA;EACA;EACA;EACA,WAhYa;EAiYb;EACA;;;AAKR;EACI;EACA;EACA;EACA;EACA;EACA;;AAEI;EACI;EACA;EACA;;AAEJ;AAAA;EAEI;EACA;;AACA;AAAA;EACI;;AAGR;AAAA;EAEI;EACA;EACA;;AACA;AAAA;EACI;EACA;;AAGR;AAAA;EAEI;EACA;EACA;;AAEJ;AAAA;EAEI;EACA;EACA;;AAEJ;AAAA;EAEI;EACA;EACA;;AAEJ;EACI;EACA;;AAEJ;EACI;EACA;;AACA;AAAA;EAEI;;AAGA;EACI;;AAEJ;EACI;;AAKR;EACI;;AACA;EACI;EACA;;AAEA;EACI;;AAIZ;EACI;;AACA;EACI;EACA;;AAEA;EACI;;AAKR;EACI;EACA;;AAEJ;EACI;EACA;;AAOR;AAAA;EACI;;AAIR;EACI;EACA;EAEA;EAEA;EACA;;AAGJ;EACI;;AACA;EACI;;AAEJ;EACI;EACA;EACA;EACA;EACA;;;AAKhB;EACI;IACI;IACA","file":"pdf.css"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dibk-design",
3
- "version": "4.5.0",
3
+ "version": "5.0.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "files": [
@@ -11,6 +11,7 @@
11
11
  "@testing-library/jest-dom": "^5.16.5",
12
12
  "@testing-library/react": "^14.0.0",
13
13
  "@testing-library/user-event": "^14.4.3",
14
+ "raw-loader": "^4.0.2",
14
15
  "react": "^18.2.0",
15
16
  "react-dom": "^18.2.0",
16
17
  "react-scripts": "5.0.1",
Binary file