dibk-design 5.0.1 → 6.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.
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/CheckBoxIcon.module.scss +2 -2
- package/dist/components/CheckBoxInput.module.scss +2 -2
- package/dist/components/CheckBoxListItem.module.scss +2 -2
- package/dist/components/Dialog.js +31 -15
- package/dist/components/Dialog.module.scss +128 -56
- package/dist/components/DragAndDropFileInput.js +1 -1
- package/dist/components/NavigationBar.js +1 -1
- package/dist/components/PDF.js +1 -1
- package/dist/components/PDF.scss +2 -2
- package/dist/components/RadioButtonIcon.module.scss +2 -2
- package/dist/components/RadioButtonInput.module.scss +2 -2
- package/dist/components/RadioButtonListItem.module.scss +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/Table.module.scss +2 -2
- package/dist/components/Theme.js +1 -1
- package/dist/components/Theme.module.scss +1 -1
- package/dist/components/WizardNavigation/Step.js +1 -1
- package/dist/style/abstracts/variables/_colors.scss +2 -1
- package/dist/style/pdf.css +2 -2
- package/package.json +17 -17
|
@@ -9,7 +9,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
var _AccordionModule = _interopRequireDefault(require("./Accordion.module.scss"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
13
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
14
|
const Accordion = props => {
|
|
15
15
|
const [expanded, setExpanded] = (0, _react.useState)(props.expanded);
|
|
@@ -11,7 +11,7 @@ var _helpers = require("../functions/helpers");
|
|
|
11
11
|
var _ButtonModule = _interopRequireDefault(require("./Button.module.scss"));
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
15
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
16
|
const Button = props => {
|
|
17
17
|
var _props$href, _props$href2, _props$children;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
margin-top: 2px;
|
|
21
21
|
background: white;
|
|
22
22
|
&:not(.hasErrors) {
|
|
23
|
-
@include box-shadow(0 0 0 1px var(--color-
|
|
23
|
+
@include box-shadow(0 0 0 1px var(--color-form-element, $color-form-element));
|
|
24
24
|
}
|
|
25
25
|
&.hasErrors {
|
|
26
26
|
@include box-shadow(0 0 0 1px var(--color-error, $color-error));
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
&.showBox {
|
|
38
38
|
&:not(.hasErrors) {
|
|
39
|
-
@include box-shadow(0 0 0 1px var(--color-
|
|
39
|
+
@include box-shadow(0 0 0 1px var(--color-form-element, $color-form-element));
|
|
40
40
|
}
|
|
41
41
|
&.hasErrors {
|
|
42
42
|
@include box-shadow(0 0 0 1px var(--color-error, $color-error));
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
.labelText {
|
|
24
24
|
font-size: 16px;
|
|
25
25
|
line-height: 24px;
|
|
26
|
-
color: var(--color-
|
|
26
|
+
color: var(--color-form-element, $color-form-element);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&.disabled {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
&:focus-within {
|
|
42
42
|
outline-width: 2px;
|
|
43
|
-
outline-color: var(--color-
|
|
43
|
+
outline-color: var(--color-focus, $color-focus);
|
|
44
44
|
outline-style: auto;
|
|
45
45
|
outline-offset: 1px;
|
|
46
46
|
}
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
&.checked:not(.contentOnly):not(.compact):not(.disabled)
|
|
45
|
+
&.checked:not(.contentOnly):not(.compact):not(.disabled) {
|
|
46
46
|
background-color: var(--color-secondary-light, $color-secondary-light);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
&:not(.checked):not(.contentOnly):not(.compact):not(.disabled)
|
|
49
|
+
&:not(.checked):not(.contentOnly):not(.compact):not(.disabled) {
|
|
50
50
|
&:hover {
|
|
51
51
|
background-color: var(--color-secondary-x-light, $color-secondary-x-light);
|
|
52
52
|
}
|
|
@@ -11,13 +11,16 @@ var _DialogModule = _interopRequireDefault(require("./Dialog.module.scss"));
|
|
|
11
11
|
var _helpers = require("../functions/helpers");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
15
|
const Dialog = props => {
|
|
16
|
+
var _props$attachTo, _props$maxWidth;
|
|
16
17
|
const dialogRef = (0, _react.useRef)();
|
|
17
|
-
const
|
|
18
|
+
const dialogContainerRef = (0, _react.useRef)();
|
|
19
|
+
const dialogContentRef = (0, _react.useCallback)(element => {
|
|
18
20
|
if (!!element) {
|
|
19
21
|
(0, _helpers.addFocusTrapInsideElement)(element);
|
|
20
22
|
}
|
|
23
|
+
return element;
|
|
21
24
|
}, []);
|
|
22
25
|
(0, _react.useEffect)(() => {
|
|
23
26
|
const keyDownFunction = event => {
|
|
@@ -30,22 +33,33 @@ const Dialog = props => {
|
|
|
30
33
|
}
|
|
31
34
|
};
|
|
32
35
|
const handleClickOutside = event => {
|
|
33
|
-
if (
|
|
36
|
+
if (dialogContainerRef !== null && dialogContainerRef !== void 0 && dialogContainerRef.current && !dialogContainerRef.current.contains(event.target)) {
|
|
34
37
|
props.onClickOutside();
|
|
35
38
|
}
|
|
36
39
|
};
|
|
37
40
|
document.addEventListener("mousedown", handleClickOutside);
|
|
38
41
|
document.addEventListener("keydown", keyDownFunction, false);
|
|
39
|
-
}, [props,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
ref: dialogRef,
|
|
45
|
-
className: "".concat(_DialogModule.default.dialogContent, " ").concat(props.noPadding ? _DialogModule.default.noPadding : ""),
|
|
46
|
-
style: {
|
|
47
|
-
maxWidth: props.maxWidth
|
|
42
|
+
}, [props, dialogContainerRef]);
|
|
43
|
+
(0, _react.useEffect)(() => {
|
|
44
|
+
dialogRef.current.close();
|
|
45
|
+
if (!props.hidden) {
|
|
46
|
+
props.modal ? dialogRef.current.showModal() : dialogRef.current.show();
|
|
48
47
|
}
|
|
48
|
+
}, [dialogRef, props.hidden, props.modal]);
|
|
49
|
+
const sideBarClassNames = ((_props$attachTo = props.attachTo) === null || _props$attachTo === void 0 ? void 0 : _props$attachTo.length) && (0, _helpers.classNameArrayToClassNameString)([_DialogModule.default.isSidebar, _DialogModule.default[props.attachTo]]);
|
|
50
|
+
const dialogContentStyleProps = {
|
|
51
|
+
"--max-width": (props === null || props === void 0 || (_props$maxWidth = props.maxWidth) === null || _props$maxWidth === void 0 ? void 0 : _props$maxWidth.length) && props.maxWidth
|
|
52
|
+
};
|
|
53
|
+
return _react.default.createElement("dialog", {
|
|
54
|
+
className: (0, _helpers.classNameArrayToClassNameString)([_DialogModule.default.dialog, sideBarClassNames]),
|
|
55
|
+
ref: dialogRef
|
|
56
|
+
}, _react.default.createElement("div", {
|
|
57
|
+
ref: dialogContainerRef,
|
|
58
|
+
className: _DialogModule.default.dialogContainer,
|
|
59
|
+
style: dialogContentStyleProps
|
|
60
|
+
}, _react.default.createElement("div", {
|
|
61
|
+
ref: dialogContentRef,
|
|
62
|
+
className: (0, _helpers.classNameArrayToClassNameString)([_DialogModule.default.dialogContent, props.noPadding && _DialogModule.default.noPadding])
|
|
49
63
|
}, props.closeButton ? _react.default.createElement("button", {
|
|
50
64
|
"aria-label": "Lukk dialog",
|
|
51
65
|
onClick: props.onClickOutside,
|
|
@@ -56,15 +70,17 @@ const Dialog = props => {
|
|
|
56
70
|
})) : null, _react.default.createElement("div", {
|
|
57
71
|
"aria-live": "assertive",
|
|
58
72
|
role: "dialog"
|
|
59
|
-
}, props.children)));
|
|
73
|
+
}, props.children))));
|
|
60
74
|
};
|
|
61
75
|
Dialog.propTypes = {
|
|
62
76
|
maxWidth: _propTypes.default.string,
|
|
63
77
|
noPadding: _propTypes.default.bool,
|
|
64
78
|
closeButton: _propTypes.default.bool,
|
|
65
|
-
onClickOutside: _propTypes.default.func.isRequired
|
|
79
|
+
onClickOutside: _propTypes.default.func.isRequired,
|
|
80
|
+
modal: _propTypes.default.bool
|
|
66
81
|
};
|
|
67
82
|
Dialog.defaultProps = {
|
|
68
|
-
maxWidth: "none"
|
|
83
|
+
maxWidth: "none",
|
|
84
|
+
modal: false
|
|
69
85
|
};
|
|
70
86
|
var _default = exports.default = Dialog;
|
|
@@ -1,79 +1,151 @@
|
|
|
1
1
|
@import "../style/global.scss";
|
|
2
2
|
|
|
3
|
-
@keyframes
|
|
3
|
+
@keyframes modalInVertical {
|
|
4
4
|
0% {
|
|
5
5
|
opacity: 0;
|
|
6
6
|
transform: translateY(2em);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
z-index: 2;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
@media (min-width: $screen-md) {
|
|
24
|
-
padding: 36px;
|
|
10
|
+
@keyframes modalInHorizontalRight {
|
|
11
|
+
0% {
|
|
12
|
+
opacity: 0;
|
|
13
|
+
transform: translateX(2em);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@keyframes modalInHorizontalLeft {
|
|
18
|
+
0% {
|
|
19
|
+
opacity: 0;
|
|
20
|
+
transform: translateX(-2em);
|
|
25
21
|
}
|
|
22
|
+
}
|
|
26
23
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
.dialog {
|
|
25
|
+
&::backdrop {
|
|
26
|
+
background: color-mix(in srgb, var(--color-primary, $color-primary), transparent 60%);
|
|
27
|
+
}
|
|
28
|
+
&[open] {
|
|
31
29
|
border: none;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
background: none;
|
|
31
|
+
display: flex;
|
|
32
|
+
max-height: none;
|
|
33
|
+
max-width: none;
|
|
34
|
+
top: 0;
|
|
35
|
+
bottom: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
position: fixed;
|
|
38
|
+
.dialogContainer {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-wrap: wrap;
|
|
41
|
+
background-color: #fff;
|
|
42
|
+
.dialogContent {
|
|
43
|
+
&:not(.noPadding) {
|
|
44
|
+
padding: 30px 15px;
|
|
45
|
+
@media only screen and (min-width: $screen-sm) {
|
|
46
|
+
padding: 60px 40px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
.dialogContent {
|
|
51
|
+
position: relative;
|
|
52
|
+
}
|
|
53
|
+
.closeButton {
|
|
54
|
+
background: none;
|
|
55
|
+
border: none;
|
|
56
|
+
color: var(--color-primary, $color-primary);
|
|
57
|
+
display: inline-block;
|
|
58
|
+
position: absolute;
|
|
59
|
+
right: 7px;
|
|
60
|
+
top: 4px;
|
|
61
|
+
text-decoration: underline;
|
|
62
|
+
font-size: 19px;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
@media only screen and (min-width: $screen-sm) {
|
|
65
|
+
right: 15px;
|
|
66
|
+
top: 10px;
|
|
67
|
+
}
|
|
68
|
+
&:hover {
|
|
69
|
+
text-decoration: none;
|
|
70
|
+
}
|
|
71
|
+
img {
|
|
72
|
+
width: 17px;
|
|
73
|
+
height: 17px;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
&:not(.isSidebar) {
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
padding: 8px 28px;
|
|
81
|
+
@media (min-width: $screen-md) {
|
|
82
|
+
padding: 36px;
|
|
83
|
+
}
|
|
84
|
+
.dialogContainer {
|
|
85
|
+
animation: 1000ms cubic-bezier(0.22, 1, 0.36, 1) 0s 1 normal none running modalInVertical;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
&.isSidebar {
|
|
89
|
+
padding: 0;
|
|
90
|
+
height: 100vh;
|
|
91
|
+
.dialogContainer {
|
|
92
|
+
height: 100%;
|
|
93
|
+
width: var(--max-width, auto);
|
|
94
|
+
}
|
|
95
|
+
&.left {
|
|
96
|
+
margin: 0 auto 0 0;
|
|
97
|
+
.dialogContainer {
|
|
98
|
+
justify-content: left;
|
|
99
|
+
animation: 1000ms cubic-bezier(0.22, 1, 0.36, 1) 0s 1 normal none running modalInHorizontalLeft;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
&.right {
|
|
103
|
+
margin: 0 0 0 auto;
|
|
104
|
+
.dialogContainer {
|
|
105
|
+
justify-content: right;
|
|
106
|
+
animation: 1000ms cubic-bezier(0.22, 1, 0.36, 1) 0s 1 normal none running modalInHorizontalRight;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
35
110
|
}
|
|
111
|
+
}
|
|
36
112
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
113
|
+
.dialogOverlay {
|
|
114
|
+
width: 0;
|
|
115
|
+
height: 0;
|
|
116
|
+
border: none;
|
|
117
|
+
position: absolute;
|
|
118
|
+
padding: 0;
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
|
|
121
|
+
&[open] {
|
|
122
|
+
position: fixed;
|
|
40
123
|
width: 100%;
|
|
124
|
+
height: 100%;
|
|
125
|
+
top: 0;
|
|
126
|
+
left: 0;
|
|
127
|
+
z-index: 2;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&:not(.isSidebar) {
|
|
131
|
+
align-content: center;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
|
|
134
|
+
.dialogContent {
|
|
135
|
+
@include calc("max-height", "100% - 128px");
|
|
136
|
+
width: 100%;
|
|
137
|
+
max-width: var(--max-width, 540px);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.dialogContent {
|
|
41
142
|
background-color: #fff;
|
|
42
143
|
overflow: auto;
|
|
43
144
|
position: relative;
|
|
44
|
-
|
|
45
|
-
&:not(.noPadding) {
|
|
46
|
-
padding: 30px 15px;
|
|
47
|
-
@media only screen and (min-width: $screen-sm) {
|
|
48
|
-
padding: 60px 40px;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
145
|
+
|
|
51
146
|
@media (min-width: $screen-md) {
|
|
52
147
|
@include calc("width", "100% - 128px");
|
|
53
148
|
max-height: 100%;
|
|
54
149
|
}
|
|
55
|
-
.closeButton {
|
|
56
|
-
background: none;
|
|
57
|
-
border: none;
|
|
58
|
-
color: var(--color-primary, $color-primary);
|
|
59
|
-
display: inline-block;
|
|
60
|
-
position: absolute;
|
|
61
|
-
right: 7px;
|
|
62
|
-
top: 4px;
|
|
63
|
-
text-decoration: underline;
|
|
64
|
-
font-size: 19px;
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
@media only screen and (min-width: $screen-sm) {
|
|
67
|
-
right: 15px;
|
|
68
|
-
top: 10px;
|
|
69
|
-
}
|
|
70
|
-
&:hover {
|
|
71
|
-
text-decoration: none;
|
|
72
|
-
}
|
|
73
|
-
img {
|
|
74
|
-
width: 17px;
|
|
75
|
-
height: 17px;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
150
|
}
|
|
79
151
|
}
|
|
@@ -13,7 +13,7 @@ var _asterisk = _interopRequireDefault(require("../assets/svg/asterisk.svg?url")
|
|
|
13
13
|
var _DragAndDropFileInputModule = _interopRequireDefault(require("./DragAndDropFileInput.module.scss"));
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
17
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
18
18
|
const DragAndDropFileInput = props => {
|
|
19
19
|
var _props$errorMessage, _props$ariaDescribed;
|
|
@@ -14,7 +14,7 @@ var _NavigationBarModule = _interopRequireDefault(require("./NavigationBar.modul
|
|
|
14
14
|
var _helpers = require("../functions/helpers");
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
19
|
const NavigationBar = props => {
|
|
20
20
|
var _props$primaryListIte, _props$secondaryListI, _props$mainContentId;
|
package/dist/components/PDF.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
require("./PDF.scss");
|
|
9
9
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
11
|
const PDF = props => {
|
|
12
12
|
return _react.default.createElement(_react.Fragment, null, props.children);
|
|
13
13
|
};
|
package/dist/components/PDF.scss
CHANGED
|
@@ -327,7 +327,7 @@ body {
|
|
|
327
327
|
|
|
328
328
|
blockquote {
|
|
329
329
|
background: var(--color-secondary-x-light, $color-secondary-x-light);
|
|
330
|
-
border-left: $border-left-width-blockquote solid var(--color-
|
|
330
|
+
border-left: $border-left-width-blockquote solid var(--color-border, $color-border);
|
|
331
331
|
margin: $margin-vertical-blockquote $margin-horizontal-blockquote;
|
|
332
332
|
padding: 0.5em $padding-horizontal-blockquote;
|
|
333
333
|
min-height: $min-height-blockquote;
|
|
@@ -515,7 +515,7 @@ body {
|
|
|
515
515
|
blockquote {
|
|
516
516
|
background: var(--color-secondary-x-light, $color-secondary-x-light);
|
|
517
517
|
border-left: calc($border-left-width-blockquote * $scaling-for-signed-documents) solid
|
|
518
|
-
var(--color-
|
|
518
|
+
var(--color-border, $color-border);
|
|
519
519
|
margin: calc($margin-vertical-blockquote * $scaling-for-signed-documents)
|
|
520
520
|
calc($margin-horizontal-blockquote * $scaling-for-signed-documents);
|
|
521
521
|
padding: 0.5em calc($padding-horizontal-blockquote * $scaling-for-signed-documents);
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
cursor: pointer;
|
|
17
17
|
|
|
18
18
|
&:not(.hasErrors) {
|
|
19
|
-
@include box-shadow(0 0 0 1px var(--color-
|
|
19
|
+
@include box-shadow(0 0 0 1px var(--color-form-element, $color-form-element));
|
|
20
20
|
}
|
|
21
21
|
&.hasErrors {
|
|
22
22
|
@include box-shadow(0 0 0 1px var(--color-error, $color-error));
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
background: var(--color-error, $color-error);
|
|
29
29
|
}
|
|
30
30
|
&:not(.hasErrors) {
|
|
31
|
-
@include box-shadow(0 0 0 1px var(--color-
|
|
31
|
+
@include box-shadow(0 0 0 1px var(--color-form-element, $color-form-element));
|
|
32
32
|
}
|
|
33
33
|
&.hasErrors {
|
|
34
34
|
@include box-shadow(0 0 0 1px var(--color-error, $color-error));
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
.labelText {
|
|
24
24
|
font-size: 16px;
|
|
25
25
|
line-height: 24px;
|
|
26
|
-
color: var(--color-
|
|
26
|
+
color: var(--color-form-element, $color-form-element);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&.disabled {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
&:focus-within {
|
|
42
42
|
outline-width: 2px;
|
|
43
|
-
outline-color: var(--color-
|
|
43
|
+
outline-color: var(--color-focus, $color-focus);
|
|
44
44
|
outline-style: auto;
|
|
45
45
|
outline-offset: 1px;
|
|
46
46
|
}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
background-color: var(--color-secondary-light, $color-secondary-light);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
&:not(.checked):not(.contentOnly):not(.compact):not(.disabled)
|
|
49
|
+
&:not(.checked):not(.contentOnly):not(.compact):not(.disabled) {
|
|
50
50
|
&:hover {
|
|
51
51
|
background-color: var(--color-secondary-x-light, $color-secondary-x-light);
|
|
52
52
|
}
|
|
@@ -16,7 +16,7 @@ var _asterisk = _interopRequireDefault(require("../assets/svg/asterisk.svg?url")
|
|
|
16
16
|
var _SelectModule = _interopRequireDefault(require("./Select.module.scss"));
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
20
|
const Select = props => {
|
|
21
21
|
const [showDropdownList, setShowDropdownList] = (0, _react.useState)(false);
|
|
22
22
|
const dropdownRef = (0, _react.useRef)();
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
thead {
|
|
43
43
|
tr {
|
|
44
44
|
background-color: var(--color-default-background, $color-default-background);
|
|
45
|
-
border: 1px solid var(--color-
|
|
45
|
+
border: 1px solid var(--color-border, $color-border);
|
|
46
46
|
th {
|
|
47
47
|
text-align: left;
|
|
48
48
|
font-size: 16px;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
tbody {
|
|
54
54
|
tr {
|
|
55
55
|
background-color: var(--color-default-background, $color-default-background);
|
|
56
|
-
border: 1px solid var(--color-
|
|
56
|
+
border: 1px solid var(--color-border, $color-border);
|
|
57
57
|
td {
|
|
58
58
|
padding: 10px;
|
|
59
59
|
font-size: 16px;
|
package/dist/components/Theme.js
CHANGED
|
@@ -19,7 +19,7 @@ var _RadioButtonListItem = _interopRequireDefault(require("./RadioButtonListItem
|
|
|
19
19
|
var _ThemeModule = _interopRequireDefault(require("./Theme.module.scss"));
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
23
|
const Theme = _ref => {
|
|
24
24
|
let {
|
|
25
25
|
theme
|
|
@@ -35,7 +35,7 @@ section:last-of-type {
|
|
|
35
35
|
background-color: var(--color-primary-text, $color-primary-text);
|
|
36
36
|
}
|
|
37
37
|
&.secondaryText {
|
|
38
|
-
background-color: var(--color-
|
|
38
|
+
background-color: var(--color-border, $color-border);
|
|
39
39
|
}
|
|
40
40
|
&.primary {
|
|
41
41
|
background-color: var(--color-primary, $color-primary);
|
|
@@ -11,7 +11,7 @@ var _helpers = require("../../functions/helpers");
|
|
|
11
11
|
var _StepModule = _interopRequireDefault(require("./Step.module.scss"));
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
15
|
const Step = props => {
|
|
16
16
|
const getActiveClass = step => {
|
|
17
17
|
return props.activeStepId === step.id ? _StepModule.default.active : "";
|
|
@@ -2,7 +2,6 @@ $color-body-background: #ebf4fa;
|
|
|
2
2
|
$color-default-text: #202020;
|
|
3
3
|
$color-heading-text: #003045;
|
|
4
4
|
$color-primary-text: #005275;
|
|
5
|
-
$color-secondary-text: #89bad6;
|
|
6
5
|
|
|
7
6
|
$color-primary: #003045;
|
|
8
7
|
$color-primary-light: #264f61;
|
|
@@ -14,6 +13,8 @@ $color-secondary-light: #c7e0f2;
|
|
|
14
13
|
$color-secondary-x-light: #ebf4fa;
|
|
15
14
|
$color-secondary-contrast: #005275;
|
|
16
15
|
|
|
16
|
+
$color-border: #89bad6;
|
|
17
|
+
$color-form-element: #003045;
|
|
17
18
|
$color-focus: rgba(0, 92, 173, 0.4);
|
|
18
19
|
|
|
19
20
|
$color-default-background: #f1fae3;
|
package/dist/style/pdf.css
CHANGED
|
@@ -245,7 +245,7 @@ body {
|
|
|
245
245
|
}
|
|
246
246
|
.page blockquote {
|
|
247
247
|
background: var(--color-secondary-x-light, #ebf4fa);
|
|
248
|
-
border-left: 4px solid var(--color-
|
|
248
|
+
border-left: 4px solid var(--color-border, #89bad6);
|
|
249
249
|
margin: 5px 10px;
|
|
250
250
|
padding: 0.5em 10px;
|
|
251
251
|
min-height: 36px;
|
|
@@ -408,7 +408,7 @@ body {
|
|
|
408
408
|
}
|
|
409
409
|
.page.signed-document div.content-container blockquote {
|
|
410
410
|
background: var(--color-secondary-x-light, #ebf4fa);
|
|
411
|
-
border-left: 4.43208px solid var(--color-
|
|
411
|
+
border-left: 4.43208px solid var(--color-border, #89bad6);
|
|
412
412
|
margin: 5.5401px 11.0802px;
|
|
413
413
|
padding: 0.5em 11.0802px;
|
|
414
414
|
min-height: 39.88872px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dibk-design",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"README.md"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
+
"@storybook/test": "^8.0.2",
|
|
11
12
|
"@testing-library/jest-dom": "^5.16.5",
|
|
12
13
|
"@testing-library/react": "^14.0.0",
|
|
13
14
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -28,8 +29,8 @@
|
|
|
28
29
|
"build-assets": "NODE_ENV=production babel src/assets --out-dir dist/assets --copy-files --no-copy-ignored",
|
|
29
30
|
"build": "rm -rf dist && yarn build-components && yarn build-functions && yarn build-index && yarn build-style && yarn build-assets && yarn build-pdf-style",
|
|
30
31
|
"eject": "react-scripts eject",
|
|
31
|
-
"storybook": "storybook dev
|
|
32
|
-
"build-storybook": "storybook build -
|
|
32
|
+
"storybook": "storybook dev",
|
|
33
|
+
"build-storybook": "storybook build -o docs"
|
|
33
34
|
},
|
|
34
35
|
"eslintConfig": {
|
|
35
36
|
"extends": [
|
|
@@ -61,24 +62,23 @@
|
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"@babel/cli": "^7.18.10",
|
|
64
|
-
"@storybook/addon-a11y": "^
|
|
65
|
-
"@storybook/addon-actions": "^
|
|
66
|
-
"@storybook/addon-essentials": "^
|
|
67
|
-
"@storybook/addon-interactions": "^
|
|
68
|
-
"@storybook/addon-links": "^
|
|
69
|
-
"@storybook/addon-mdx-gfm": "^
|
|
70
|
-
"@storybook/addons": "^7.
|
|
71
|
-
"@storybook/node-logger": "^
|
|
72
|
-
"@storybook/preset-create-react-app": "^
|
|
73
|
-
"@storybook/react": "^
|
|
74
|
-
"@storybook/react-webpack5": "^
|
|
75
|
-
"@storybook/
|
|
76
|
-
"@storybook/theming": "^7.0.4",
|
|
65
|
+
"@storybook/addon-a11y": "^8.0.2",
|
|
66
|
+
"@storybook/addon-actions": "^8.0.2",
|
|
67
|
+
"@storybook/addon-essentials": "^8.0.2",
|
|
68
|
+
"@storybook/addon-interactions": "^8.0.2",
|
|
69
|
+
"@storybook/addon-links": "^8.0.2",
|
|
70
|
+
"@storybook/addon-mdx-gfm": "^8.0.2",
|
|
71
|
+
"@storybook/addons": "^7.6.17",
|
|
72
|
+
"@storybook/node-logger": "^8.0.2",
|
|
73
|
+
"@storybook/preset-create-react-app": "^8.0.2",
|
|
74
|
+
"@storybook/react": "^8.0.2",
|
|
75
|
+
"@storybook/react-webpack5": "^8.0.2",
|
|
76
|
+
"@storybook/theming": "^8.0.2",
|
|
77
77
|
"babel-plugin-named-exports-order": "^0.0.2",
|
|
78
78
|
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
79
79
|
"prop-types": "^15.8.1",
|
|
80
80
|
"react-router-dom": "^6.4.2",
|
|
81
|
-
"storybook": "^
|
|
81
|
+
"storybook": "^8.0.2",
|
|
82
82
|
"url-loader": "^4.1.1",
|
|
83
83
|
"webpack": "^5.74.0"
|
|
84
84
|
}
|