dibk-design 1.1.9 → 2.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/{fonts → assets/fonts}/Altis-Light.eot +0 -0
- package/dist/{fonts → assets/fonts}/Altis-Light.svg +0 -0
- package/dist/{fonts → assets/fonts}/Altis-Light.ttf +0 -0
- package/dist/{fonts → assets/fonts}/Altis-Light.woff +0 -0
- package/dist/{fonts → assets/fonts}/Altis.eot +0 -0
- package/dist/{fonts → assets/fonts}/Altis.svg +0 -0
- package/dist/{fonts → assets/fonts}/Altis.ttf +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-300.eot +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-300.svg +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-300.ttf +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-300.woff +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-300.woff2 +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-300italic.eot +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-300italic.svg +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-300italic.ttf +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-300italic.woff +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-300italic.woff2 +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-700.eot +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-700.svg +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-700.ttf +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-700.woff +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-700.woff2 +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-700italic.eot +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-700italic.svg +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-700italic.ttf +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-700italic.woff +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-700italic.woff2 +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-italic.eot +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-italic.svg +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-italic.ttf +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-italic.woff +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-italic.woff2 +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-regular.eot +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-regular.svg +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-regular.ttf +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-regular.woff +0 -0
- package/dist/{fonts → assets/fonts}/open-sans-v27-latin-ext_latin-regular.woff2 +0 -0
- package/dist/assets/png/dibk-logo.png +0 -0
- package/dist/{images → assets/svg}/dibk-logo-mobile.svg +0 -0
- package/dist/{images → assets/svg}/dibk-logo.svg +0 -0
- package/dist/{images → assets/svg}/spinner.svg +0 -0
- package/dist/components/Accordion.js +61 -92
- package/dist/components/Accordion.module.scss +40 -39
- package/dist/components/Button.js +44 -84
- package/dist/components/Button.module.scss +24 -18
- package/dist/components/CheckBoxIcon.js +20 -61
- package/dist/components/CheckBoxIcon.module.scss +52 -52
- package/dist/components/CheckBoxInput.js +25 -64
- package/dist/components/CheckBoxInput.module.scss +23 -23
- package/dist/components/CheckBoxList.js +9 -2
- package/dist/components/CheckBoxList.module.scss +14 -2
- package/dist/components/CheckBoxListItem.js +2 -6
- package/dist/components/CheckBoxListItem.module.scss +53 -53
- package/dist/components/Container.js +6 -49
- package/dist/components/Container.module.scss +1 -1
- package/dist/components/ContentBox.js +38 -77
- package/dist/components/ContentBox.module.scss +35 -35
- package/dist/components/Dialog.js +38 -106
- package/dist/components/Dialog.module.scss +14 -12
- package/dist/components/DragAndDropFileInput.js +86 -147
- package/dist/components/DragAndDropFileInput.module.scss +28 -28
- package/dist/components/ErrorBox.js +5 -11
- package/dist/components/ErrorBox.module.scss +1 -1
- package/dist/components/ErrorMessage.js +13 -54
- package/dist/components/ErrorMessage.module.scss +1 -1
- package/dist/components/Footer.js +5 -44
- package/dist/components/Footer.module.scss +1 -1
- package/dist/components/Header.js +3 -5
- package/dist/components/Header.module.scss +9 -9
- package/dist/components/InputField.js +69 -120
- package/dist/components/InputField.module.scss +69 -69
- package/dist/components/Label.js +9 -48
- package/dist/components/Label.module.scss +3 -3
- package/dist/components/List.js +1 -1
- package/dist/components/List.module.scss +17 -17
- package/dist/components/ListItem.js +1 -1
- package/dist/components/LoadingAnimation.js +6 -47
- package/dist/components/LoadingAnimation.module.scss +23 -23
- package/dist/components/NavigationBar.js +137 -190
- package/dist/components/NavigationBar.module.scss +165 -165
- package/dist/components/NavigationBarListItem.js +22 -60
- package/dist/components/Paper.js +5 -45
- package/dist/components/Paper.module.scss +14 -14
- package/dist/components/ProgressBar.js +16 -8
- package/dist/components/ProgressBar.module.scss +2 -2
- package/dist/components/RadioButtonIcon.js +15 -55
- package/dist/components/RadioButtonIcon.module.scss +36 -36
- package/dist/components/RadioButtonInput.js +24 -63
- package/dist/components/RadioButtonInput.module.scss +23 -25
- package/dist/components/RadioButtonList.js +9 -2
- package/dist/components/RadioButtonList.module.scss +14 -2
- package/dist/components/RadioButtonListItem.js +3 -6
- package/dist/components/RadioButtonListItem.module.scss +7 -7
- package/dist/components/Select.js +98 -140
- package/dist/components/Select.module.scss +76 -76
- package/dist/components/Table.js +1 -3
- package/dist/components/Table.module.scss +1 -1
- package/dist/components/Textarea.js +54 -96
- package/dist/components/Textarea.module.scss +2 -2
- package/dist/components/Theme.js +60 -106
- package/dist/components/Theme.module.scss +12 -12
- package/dist/components/WizardNavigation/Step.js +34 -80
- package/dist/components/WizardNavigation/Step.module.scss +12 -12
- package/dist/components/WizardNavigation.js +19 -63
- package/dist/components/WizardNavigation.module.scss +1 -1
- package/dist/functions/theme.js +24 -10
- package/dist/index.js +0 -2
- package/dist/style/base/_all.scss +1 -0
- package/dist/style/base/_fonts.scss +97 -0
- package/package.json +63 -28
- package/dist/components/Accordion.md +0 -15
- package/dist/components/Button.md +0 -78
- package/dist/components/CheckBoxIcon.md +0 -38
- package/dist/components/CheckBoxInput.md +0 -51
- package/dist/components/CheckBoxList.md +0 -26
- package/dist/components/CheckBoxListItem.md +0 -82
- package/dist/components/Container.md +0 -7
- package/dist/components/ContentBox.md +0 -46
- package/dist/components/Dialog.md +0 -6
- package/dist/components/DragAndDropFileInput.md +0 -13
- package/dist/components/ErrorBox.md +0 -27
- package/dist/components/ErrorMessage.md +0 -15
- package/dist/components/Footer.md +0 -7
- package/dist/components/Header.md +0 -12
- package/dist/components/InputField.md +0 -40
- package/dist/components/Label.md +0 -9
- package/dist/components/List.md +0 -71
- package/dist/components/LoadingAnimation.md +0 -5
- package/dist/components/NavigationBar.md +0 -42
- package/dist/components/NavigationBarListItem.md +0 -16
- package/dist/components/Paper.md +0 -9
- package/dist/components/ProgressBar.md +0 -13
- package/dist/components/RadioButtonIcon.md +0 -41
- package/dist/components/RadioButtonInput.md +0 -30
- package/dist/components/RadioButtonList.md +0 -28
- package/dist/components/RadioButtonListItem.md +0 -70
- package/dist/components/Select.md +0 -28
- package/dist/components/Table.md +0 -26
- package/dist/components/Textarea.md +0 -27
- package/dist/components/Theme.md +0 -12
- package/dist/components/WizardNavigation.md +0 -84
- package/dist/style/base/fonts.css +0 -95
|
@@ -1,176 +1,176 @@
|
|
|
1
1
|
@import "../style/global.scss";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
.isPresent {
|
|
4
|
+
@include box-shadow(0 2px 4px -2px rgba(0, 0, 0, 0.2));
|
|
5
|
+
position: relative;
|
|
6
|
+
z-index: 1;
|
|
7
|
+
.navigationBar {
|
|
8
|
+
background-color: $color-dark-blue;
|
|
9
|
+
height: 54px;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: center;
|
|
13
|
+
@media only screen and (min-width: $screen-sm) {
|
|
14
|
+
height: 73px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
.logoContainer {
|
|
19
|
+
width: 200px;
|
|
20
|
+
height: 54px;
|
|
21
|
+
display: inline-block;
|
|
22
|
+
img {
|
|
23
|
+
height: 54px;
|
|
24
|
+
max-width: none;
|
|
25
|
+
}
|
|
26
|
+
@media only screen and (min-width: $screen-sm) {
|
|
27
|
+
width: 270px;
|
|
28
|
+
height: 73px;
|
|
29
|
+
img {
|
|
30
|
+
height: 73px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
.childElements {
|
|
36
|
+
display: block;
|
|
37
|
+
color: #fff;
|
|
38
|
+
flex: 1;
|
|
39
|
+
}
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
41
|
+
.dropdownOverlay {
|
|
42
|
+
@media only screen and (max-width: $screen-lg) and (min-width: $screen-sm) {
|
|
43
|
+
@include transition(all 0.1s ease-out);
|
|
44
|
+
content: "";
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 73px;
|
|
47
|
+
right: 0;
|
|
48
|
+
bottom: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
z-index: 1;
|
|
51
|
+
visibility: hidden;
|
|
52
|
+
opacity: 0;
|
|
53
|
+
background: transparent;
|
|
54
|
+
&.active {
|
|
55
|
+
opacity: 1;
|
|
56
|
+
background: rgba(0, 0, 0, 0.5);
|
|
57
|
+
visibility: visible;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
62
|
+
.menuToggle {
|
|
63
|
+
@include appearance(none);
|
|
64
|
+
@include transition(background-color 300ms ease-out);
|
|
65
|
+
border: none;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
position: relative;
|
|
68
|
+
background-color: transparent;
|
|
69
|
+
float: right;
|
|
70
|
+
margin: 0 12px;
|
|
71
|
+
.hamburgerIcon {
|
|
72
|
+
width: 30px;
|
|
73
|
+
display: block;
|
|
74
|
+
.line {
|
|
75
|
+
background-color: #fff;
|
|
76
|
+
height: 2px;
|
|
77
|
+
margin: 6px 0;
|
|
78
|
+
display: block;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
@media only screen and (min-width: $screen-sm) {
|
|
82
|
+
margin: 0 21px;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
86
|
+
.dropdownContainer {
|
|
87
|
+
@include transition(max-height 0.15s ease-out);
|
|
88
|
+
max-height: 0;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
&.active {
|
|
91
|
+
@include transition(max-height 0.15s ease-out);
|
|
92
|
+
max-height: 500px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
96
|
+
.dropdown {
|
|
97
|
+
@include box-shadow(0 2px 4px -2px rgba(0, 0, 0, 0.2));
|
|
98
|
+
background-color: $color-dark-blue;
|
|
99
|
+
z-index: 2;
|
|
100
|
+
> ul.primaryList {
|
|
101
|
+
list-style: none;
|
|
102
|
+
padding: 20px;
|
|
103
|
+
margin: 0;
|
|
104
|
+
li {
|
|
105
|
+
a,
|
|
106
|
+
span {
|
|
107
|
+
color: #fff;
|
|
108
|
+
text-transform: uppercase;
|
|
109
|
+
text-decoration: none;
|
|
110
|
+
font-family: $default-font;
|
|
111
|
+
padding: 10px 0;
|
|
112
|
+
display: block;
|
|
113
|
+
border-bottom: 1px solid $color-primary;
|
|
114
|
+
font-size: 14px;
|
|
115
|
+
line-height: 1.6;
|
|
116
|
+
}
|
|
117
|
+
> ul.primaryList {
|
|
118
|
+
list-style: none;
|
|
119
|
+
padding: 0;
|
|
120
|
+
li {
|
|
121
|
+
a,
|
|
122
|
+
span {
|
|
123
|
+
color: #fff;
|
|
124
|
+
text-transform: none;
|
|
125
|
+
text-decoration: none;
|
|
126
|
+
font-family: $default-font;
|
|
127
|
+
padding: 10px 0;
|
|
128
|
+
margin-left: 20px;
|
|
129
|
+
display: block;
|
|
130
|
+
border-bottom: 1px solid #1b3a48;
|
|
131
|
+
font-size: 14px;
|
|
132
|
+
line-height: 1.6;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
> ul.secondaryList {
|
|
139
|
+
list-style: none;
|
|
140
|
+
padding: 20px;
|
|
141
|
+
margin: 0;
|
|
142
142
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
143
|
+
li {
|
|
144
|
+
a,
|
|
145
|
+
span {
|
|
146
|
+
color: #fff;
|
|
147
|
+
text-decoration: underline;
|
|
148
|
+
font-family: "Arial";
|
|
149
|
+
font-size: 14px;
|
|
150
|
+
padding: 10px 0;
|
|
151
|
+
line-height: 1;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
156
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
157
|
+
@media only screen and (min-width: $screen-sm) {
|
|
158
|
+
.dropdownContainer {
|
|
159
|
+
position: relative;
|
|
160
|
+
overflow: visible;
|
|
161
|
+
.dropdown {
|
|
162
|
+
@include transition(max-height 0.15s ease-out);
|
|
163
|
+
width: 300px;
|
|
164
|
+
position: absolute;
|
|
165
|
+
right: 0;
|
|
166
|
+
max-height: 0;
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
}
|
|
169
|
+
&.active {
|
|
170
|
+
.dropdown {
|
|
171
|
+
max-height: 500px;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
176
|
}
|
|
@@ -15,67 +15,29 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
15
15
|
|
|
16
16
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
_inherits(NavigationBarListItem, _React$Component);
|
|
40
|
-
|
|
41
|
-
var _super = _createSuper(NavigationBarListItem);
|
|
42
|
-
|
|
43
|
-
function NavigationBarListItem() {
|
|
44
|
-
_classCallCheck(this, NavigationBarListItem);
|
|
45
|
-
|
|
46
|
-
return _super.apply(this, arguments);
|
|
18
|
+
var NavigationBarListItem = function NavigationBarListItem(props) {
|
|
19
|
+
var getListItemThemeStyle = function getListItemThemeStyle() {
|
|
20
|
+
return {
|
|
21
|
+
color: (0, _theme.getThemeNavigationBarTextColor)(props.theme),
|
|
22
|
+
borderBottomColor: (0, _theme.getThemeNavigationBarTextColor)(props.theme)
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var listItemThemeStyle = getListItemThemeStyle();
|
|
27
|
+
|
|
28
|
+
if (typeof props.listItem === "string") {
|
|
29
|
+
return _react.default.createElement("li", null, _react.default.createElement("span", {
|
|
30
|
+
style: listItemThemeStyle
|
|
31
|
+
}, props.listItem));
|
|
32
|
+
} else if (_typeof(props.listItem) === "object") {
|
|
33
|
+
return _react.default.createElement("li", null, _react.default.createElement("a", {
|
|
34
|
+
href: props.listItem.href,
|
|
35
|
+
style: listItemThemeStyle
|
|
36
|
+
}, props.listItem.name));
|
|
37
|
+
} else {
|
|
38
|
+
return null;
|
|
47
39
|
}
|
|
48
|
-
|
|
49
|
-
_createClass(NavigationBarListItem, [{
|
|
50
|
-
key: "getListItemThemeStyle",
|
|
51
|
-
value: function getListItemThemeStyle(theme) {
|
|
52
|
-
return {
|
|
53
|
-
color: (0, _theme.getThemeNavigationBarTextColor)(theme),
|
|
54
|
-
borderBottomColor: (0, _theme.getThemeNavigationBarTextColor)(theme)
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
}, {
|
|
58
|
-
key: "render",
|
|
59
|
-
value: function render() {
|
|
60
|
-
var listItemThemeStyle = this.getListItemThemeStyle(this.props.theme);
|
|
61
|
-
|
|
62
|
-
if (typeof this.props.listItem === 'string') {
|
|
63
|
-
return /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("span", {
|
|
64
|
-
style: listItemThemeStyle
|
|
65
|
-
}, this.props.listItem));
|
|
66
|
-
} else if (_typeof(this.props.listItem) === 'object') {
|
|
67
|
-
return /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("a", {
|
|
68
|
-
href: this.props.listItem.href,
|
|
69
|
-
style: listItemThemeStyle
|
|
70
|
-
}, this.props.listItem.name));
|
|
71
|
-
} else {
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}]);
|
|
76
|
-
|
|
77
|
-
return NavigationBarListItem;
|
|
78
|
-
}(_react.default.Component);
|
|
40
|
+
};
|
|
79
41
|
|
|
80
42
|
NavigationBarListItem.propTypes = {
|
|
81
43
|
listItem: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
package/dist/components/Paper.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
@@ -15,50 +13,12 @@ var _PaperModule = _interopRequireDefault(require("./Paper.module.scss"));
|
|
|
15
13
|
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
|
-
|
|
26
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
|
-
|
|
28
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
29
|
-
|
|
30
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
31
|
-
|
|
32
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
33
|
-
|
|
34
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
35
|
-
|
|
36
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
37
|
-
|
|
38
|
-
var Paper = /*#__PURE__*/function (_React$Component) {
|
|
39
|
-
_inherits(Paper, _React$Component);
|
|
40
|
-
|
|
41
|
-
var _super = _createSuper(Paper);
|
|
42
|
-
|
|
43
|
-
function Paper() {
|
|
44
|
-
_classCallCheck(this, Paper);
|
|
45
|
-
|
|
46
|
-
return _super.apply(this, arguments);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
_createClass(Paper, [{
|
|
50
|
-
key: "render",
|
|
51
|
-
value: function render() {
|
|
52
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
53
|
-
className: "".concat(_PaperModule.default.paper, " ").concat(this.props.noMargin ? _PaperModule.default.noMargin : '', " ").concat(this.props.noPadding ? _PaperModule.default.noPadding : '')
|
|
54
|
-
}, this.props.children);
|
|
55
|
-
}
|
|
56
|
-
}]);
|
|
57
|
-
|
|
58
|
-
return Paper;
|
|
59
|
-
}(_react.default.Component);
|
|
16
|
+
var Paper = function Paper(props) {
|
|
17
|
+
return _react.default.createElement("div", {
|
|
18
|
+
className: "".concat(_PaperModule.default.paper, " ").concat(props.noMargin ? _PaperModule.default.noMargin : "", " ").concat(props.noPadding ? _PaperModule.default.noPadding : "")
|
|
19
|
+
}, props.children);
|
|
20
|
+
};
|
|
60
21
|
|
|
61
|
-
;
|
|
62
22
|
Paper.propTypes = {
|
|
63
23
|
noMargin: _propTypes.default.bool,
|
|
64
24
|
noPadding: _propTypes.default.bool
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
@import "../style/global.scss";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
.paper {
|
|
4
|
+
line-height: 1.6;
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 100%;
|
|
7
|
+
background: white;
|
|
8
|
+
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18);
|
|
9
|
+
&:not(.noMargin) {
|
|
10
|
+
margin: 20px 0;
|
|
11
|
+
}
|
|
12
|
+
&:not(.noPadding) {
|
|
13
|
+
padding: 12px 12px;
|
|
14
|
+
@media only screen and (min-width: $screen-sm) {
|
|
15
|
+
padding: 24px 28px;
|
|
16
|
+
}
|
|
16
17
|
}
|
|
17
|
-
}
|
|
18
18
|
}
|
|
@@ -7,25 +7,33 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
10
12
|
var _ProgressBarModule = _interopRequireDefault(require("./ProgressBar.module.scss"));
|
|
11
13
|
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
15
|
|
|
14
16
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
17
|
|
|
16
|
-
var ProgressBar = function ProgressBar(
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
21
|
-
className: "".concat(_ProgressBarModule.default.progressBar, " ").concat(hasErrors ? _ProgressBarModule.default.hasErrors : ''),
|
|
18
|
+
var ProgressBar = function ProgressBar(props) {
|
|
19
|
+
var scssValueProperty = "--value";
|
|
20
|
+
return _react.default.createElement("div", {
|
|
21
|
+
className: "".concat(_ProgressBarModule.default.progressBar, " ").concat(props.hasErrors ? _ProgressBarModule.default.hasErrors : ""),
|
|
22
22
|
role: "progressbar",
|
|
23
|
-
"aria-valuenow": progress || 0,
|
|
23
|
+
"aria-valuenow": props.progress || 0,
|
|
24
24
|
"aria-valuemin": "0",
|
|
25
25
|
"aria-valuemax": "100",
|
|
26
|
-
style: _defineProperty({}, scssValueProperty, progress || 0)
|
|
26
|
+
style: _defineProperty({}, scssValueProperty, props.progress || 0)
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
+
ProgressBar.propTypes = {
|
|
31
|
+
progress: _propTypes.default.number,
|
|
32
|
+
hasErrors: _propTypes.default.bool
|
|
33
|
+
};
|
|
34
|
+
ProgressBar.defaultProps = {
|
|
35
|
+
progress: 0,
|
|
36
|
+
hasErrors: false
|
|
37
|
+
};
|
|
30
38
|
var _default = ProgressBar;
|
|
31
39
|
exports.default = _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@import "../style/global.scss";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
.progressBar {
|
|
4
4
|
--size: 4rem;
|
|
5
5
|
--fg: #{$color-primary};
|
|
6
6
|
--bg: #e2e1e0;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
counter-reset: percentage var(--value);
|
|
21
21
|
content: counter(percentage) "%";
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
&.hasErrors {
|
|
24
24
|
--fg: #{$color-error};
|
|
25
25
|
}
|
|
26
26
|
}
|