dibk-design 7.7.0 → 8.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 (136) hide show
  1. package/README.md +7 -0
  2. package/dist/dibk-design.css +1 -0
  3. package/dist/favicon.ico +0 -0
  4. package/dist/index.es.js +2386 -0
  5. package/dist/index.html +38 -0
  6. package/dist/index.umd.js +20 -0
  7. package/dist/manifest.json +15 -0
  8. package/dist/robots.txt +3 -0
  9. package/package.json +19 -27
  10. package/dist/assets/fonts/PPMori-Bold.otf +0 -0
  11. package/dist/assets/fonts/PPMori-Book.otf +0 -0
  12. package/dist/assets/fonts/PPMori-ExtraBold.otf +0 -0
  13. package/dist/assets/fonts/PPMori-Light.otf +0 -0
  14. package/dist/assets/fonts/PPMori-Medium.otf +0 -0
  15. package/dist/assets/fonts/PPMori-Regular.otf +0 -0
  16. package/dist/assets/fonts/PPMori-RegularItalic.otf +0 -0
  17. package/dist/assets/fonts/PPMori-SemiBold.otf +0 -0
  18. package/dist/assets/png/dibk-logo.png +0 -0
  19. package/dist/assets/svg/arbeidstilsynet-logo.svg +0 -1
  20. package/dist/assets/svg/asterisk.svg +0 -1
  21. package/dist/assets/svg/checkmark-symbol.svg +0 -8
  22. package/dist/assets/svg/dibk-logo-base64.js +0 -7
  23. package/dist/assets/svg/dibk-logo-mobile.svg +0 -91
  24. package/dist/assets/svg/dibk-logo.svg +0 -52
  25. package/dist/assets/svg/error-sign.svg +0 -15
  26. package/dist/assets/svg/info-sign.svg +0 -1
  27. package/dist/assets/svg/spinner.svg +0 -57
  28. package/dist/assets/svg/x-symbol.svg +0 -1
  29. package/dist/components/Accordion.js +0 -64
  30. package/dist/components/Accordion.module.scss +0 -190
  31. package/dist/components/Button.js +0 -118
  32. package/dist/components/Button.module.scss +0 -290
  33. package/dist/components/CheckBoxIcon.js +0 -42
  34. package/dist/components/CheckBoxIcon.module.scss +0 -69
  35. package/dist/components/CheckBoxInput.js +0 -70
  36. package/dist/components/CheckBoxInput.module.scss +0 -53
  37. package/dist/components/CheckBoxList.js +0 -55
  38. package/dist/components/CheckBoxList.module.scss +0 -25
  39. package/dist/components/CheckBoxListItem.js +0 -61
  40. package/dist/components/CheckBoxListItem.module.scss +0 -84
  41. package/dist/components/Container.js +0 -24
  42. package/dist/components/Container.module.scss +0 -15
  43. package/dist/components/ContentBox.js +0 -56
  44. package/dist/components/ContentBox.module.scss +0 -60
  45. package/dist/components/DescriptionDetails.js +0 -32
  46. package/dist/components/DescriptionDetails.module.scss +0 -22
  47. package/dist/components/DescriptionList.js +0 -47
  48. package/dist/components/DescriptionList.module.scss +0 -15
  49. package/dist/components/DescriptionTerm.js +0 -32
  50. package/dist/components/DescriptionTerm.module.scss +0 -30
  51. package/dist/components/Dialog.js +0 -86
  52. package/dist/components/Dialog.module.scss +0 -178
  53. package/dist/components/DragAndDropFileInput.js +0 -131
  54. package/dist/components/DragAndDropFileInput.module.scss +0 -38
  55. package/dist/components/ErrorBox.js +0 -33
  56. package/dist/components/ErrorBox.module.scss +0 -68
  57. package/dist/components/ErrorMessage.js +0 -37
  58. package/dist/components/ErrorMessage.module.scss +0 -30
  59. package/dist/components/Footer.js +0 -16
  60. package/dist/components/Footer.module.scss +0 -21
  61. package/dist/components/Header.js +0 -42
  62. package/dist/components/Header.module.scss +0 -79
  63. package/dist/components/InfoBox.js +0 -23
  64. package/dist/components/InfoBox.module.scss +0 -44
  65. package/dist/components/InputField.js +0 -137
  66. package/dist/components/InputField.module.scss +0 -88
  67. package/dist/components/Label.js +0 -40
  68. package/dist/components/Label.module.scss +0 -19
  69. package/dist/components/Lead.js +0 -31
  70. package/dist/components/Lead.module.scss +0 -13
  71. package/dist/components/List.js +0 -46
  72. package/dist/components/List.module.scss +0 -12
  73. package/dist/components/ListItem.js +0 -27
  74. package/dist/components/ListItem.module.scss +0 -10
  75. package/dist/components/LoadingAnimation.js +0 -26
  76. package/dist/components/LoadingAnimation.module.scss +0 -28
  77. package/dist/components/NavigationBar.js +0 -146
  78. package/dist/components/NavigationBar.module.scss +0 -474
  79. package/dist/components/NavigationBarListItem.js +0 -24
  80. package/dist/components/PDF.js +0 -14
  81. package/dist/components/PDF.scss +0 -765
  82. package/dist/components/Paper.js +0 -24
  83. package/dist/components/Paper.module.scss +0 -17
  84. package/dist/components/ProgressBar.js +0 -32
  85. package/dist/components/ProgressBar.module.scss +0 -30
  86. package/dist/components/RadioButtonIcon.js +0 -34
  87. package/dist/components/RadioButtonIcon.module.scss +0 -49
  88. package/dist/components/RadioButtonInput.js +0 -68
  89. package/dist/components/RadioButtonInput.module.scss +0 -53
  90. package/dist/components/RadioButtonList.js +0 -55
  91. package/dist/components/RadioButtonList.module.scss +0 -25
  92. package/dist/components/RadioButtonListItem.js +0 -59
  93. package/dist/components/RadioButtonListItem.module.scss +0 -84
  94. package/dist/components/Select.js +0 -224
  95. package/dist/components/Select.module.scss +0 -118
  96. package/dist/components/Table.js +0 -31
  97. package/dist/components/Table.module.scss +0 -65
  98. package/dist/components/Textarea.js +0 -105
  99. package/dist/components/Textarea.module.scss +0 -73
  100. package/dist/components/Theme.js +0 -138
  101. package/dist/components/Theme.module.scss +0 -103
  102. package/dist/components/ThemeProvider.js +0 -24
  103. package/dist/components/ThemeProvider.module.scss +0 -24
  104. package/dist/components/ToggleNavigationButton.js +0 -44
  105. package/dist/components/ToggleNavigationButton.module.scss +0 -34
  106. package/dist/components/WizardNavigation/Step.js +0 -66
  107. package/dist/components/WizardNavigation/Step.module.scss +0 -175
  108. package/dist/components/WizardNavigation.js +0 -56
  109. package/dist/components/WizardNavigation.module.scss +0 -25
  110. package/dist/functions/generators.js +0 -16
  111. package/dist/functions/helpers.js +0 -112
  112. package/dist/functions/theme.js +0 -18
  113. package/dist/index.js +0 -279
  114. package/dist/style/abstracts/mixins/_animation.scss +0 -6
  115. package/dist/style/abstracts/mixins/_appearance.scss +0 -5
  116. package/dist/style/abstracts/mixins/_border-radius.scss +0 -31
  117. package/dist/style/abstracts/mixins/_box-shadow.scss +0 -5
  118. package/dist/style/abstracts/mixins/_box-sizing.scss +0 -5
  119. package/dist/style/abstracts/mixins/_calc.scss +0 -5
  120. package/dist/style/abstracts/mixins/_keyframes.scss +0 -14
  121. package/dist/style/abstracts/mixins/_opacity.scss +0 -5
  122. package/dist/style/abstracts/mixins/_placeholder.scss +0 -17
  123. package/dist/style/abstracts/mixins/_scrollbar.scss +0 -26
  124. package/dist/style/abstracts/mixins/_transform.scss +0 -6
  125. package/dist/style/abstracts/mixins/_transition.scss +0 -34
  126. package/dist/style/abstracts/variables/_colors.scss +0 -33
  127. package/dist/style/abstracts/variables/_sizes.scss +0 -1
  128. package/dist/style/abstracts/variables/_transitions.scss +0 -2
  129. package/dist/style/abstracts/variables/_typography.scss +0 -1
  130. package/dist/style/abstracts/variables/_viewports.scss +0 -14
  131. package/dist/style/base/_fonts.scss +0 -57
  132. package/dist/style/base/_reset.scss +0 -15
  133. package/dist/style/base/_typography.scss +0 -10
  134. package/dist/style/layout/_containers.scss +0 -11
  135. package/dist/style/pdf.css +0 -637
  136. package/dist/style/pdf.css.map +0 -1
@@ -1,474 +0,0 @@
1
- // Mixins
2
- @use "../style/abstracts/mixins/appearance";
3
- @use "../style/abstracts/mixins/box-shadow";
4
- @use "../style/abstracts/mixins/transition";
5
-
6
- // Variables
7
- @use "../style/abstracts/variables/colors";
8
- @use "../style/abstracts/variables/transitions";
9
- @use "../style/abstracts/variables/typography";
10
- @use "../style/abstracts/variables/viewports";
11
-
12
- .navigationBarContainer {
13
- .mainContentLink {
14
- display: block;
15
- padding: 8px;
16
- text-align: center;
17
- text-decoration: none;
18
- font-size: 19px;
19
- position: absolute;
20
- overflow: hidden;
21
- clip: rect(1px, 1px, 1px, 1px);
22
- width: 1px;
23
- height: 1px;
24
- word-wrap: normal;
25
- &:focus,
26
- &:active {
27
- position: static;
28
- overflow: visible;
29
- clip: auto;
30
- width: auto;
31
- height: auto;
32
- outline: none;
33
- span {
34
- z-index: 100;
35
- outline-style: solid;
36
- outline-width: 2px;
37
- outline-offset: 3px;
38
- transition: none;
39
- text-decoration: none;
40
- }
41
- }
42
- }
43
- &:not(.compact) {
44
- position: relative;
45
- background-color: var(--color-body-background, colors.$color-body-background);
46
- padding: 5px;
47
- @media only screen and (min-width: viewports.$screen-sm) {
48
- padding: 20px;
49
- }
50
- @media only screen and (min-width: viewports.$screen-md) {
51
- padding-bottom: 40px;
52
- }
53
- .mainContentLink {
54
- background-color: var(--color-body-background, colors.$color-body-background);
55
- color: var(--color-primary, colors.$color-primary);
56
- &:focus,
57
- &:active {
58
- span {
59
- outline-color: var(--color-primary, colors.$color-primary);
60
- }
61
- }
62
- }
63
- .navigationBar {
64
- position: relative;
65
- display: -ms-flexbox;
66
- display: flex;
67
- -ms-flex-wrap: wrap;
68
- flex-wrap: wrap;
69
- max-width: 100%;
70
- margin: 0;
71
- font-size: 18px;
72
- padding: 0;
73
- &:not(.preventStacking) {
74
- -ms-flex-direction: column;
75
- flex-direction: column;
76
- }
77
- &.preventStacking {
78
- -ms-flex-direction: row;
79
- flex-direction: row;
80
- }
81
- @media only screen and (min-width: viewports.$screen-sm) {
82
- -ms-flex-direction: row;
83
- flex-direction: row;
84
- }
85
- @media only screen and (min-width: viewports.$screen-md) {
86
- margin: 0;
87
- }
88
- }
89
- .logoContainer {
90
- width: var(--size-logo-small-width, 85px);
91
- margin-bottom: 0;
92
- @media only screen and (min-width: viewports.$screen-sm) {
93
- width: var(--size-logo-large-width, 100px);
94
- }
95
- }
96
- .childElements {
97
- display: flex;
98
- flex: 1 1;
99
- align-items: center;
100
- padding: 0 20px;
101
- }
102
- .menuToggle {
103
- transition: background-color transitions.$default-transition;
104
- font-family: typography.$default-font;
105
- display: inline-block;
106
- line-height: 1.1;
107
- position: absolute;
108
- top: 10px;
109
- right: 10px;
110
- height: auto;
111
- margin: auto;
112
- border: 1px solid var(--color-primary, colors.$color-primary);
113
- padding: 10px 20px;
114
- padding-right: 54px;
115
- background-color: transparent;
116
- color: var(--color-primary, colors.$color-primary);
117
- font-size: 20px;
118
- font-weight: 400;
119
- cursor: pointer;
120
- @media only screen and (min-width: viewports.$screen-sm) {
121
- position: relative;
122
- top: 0;
123
- right: 0;
124
- margin-right: 0;
125
- height: 53px;
126
- }
127
-
128
- .hamburgerIcon {
129
- position: absolute;
130
- top: 50%;
131
- right: 15px;
132
- transform: translateY(-50%);
133
- height: 4px;
134
- width: 24px;
135
- border-radius: 3px;
136
- background-color: var(--color-primary, colors.$color-primary);
137
- &::before,
138
- &::after {
139
- content: "";
140
- position: absolute;
141
- height: 4px;
142
- left: 0;
143
- right: 0;
144
- border-radius: 3px;
145
- background-color: var(--color-primary, colors.$color-primary);
146
- transition: transform 0.3s ease-out;
147
- }
148
- &::before {
149
- top: -8px;
150
- }
151
- &::after {
152
- bottom: -8px;
153
- }
154
- }
155
- &:hover,
156
- &:focus,
157
- &:active {
158
- color: #fff;
159
- background-color: var(--color-primary, colors.$color-primary);
160
- .hamburgerIcon {
161
- background-color: var(--color-primary-contrast, colors.$color-primary-contrast);
162
- &::before,
163
- &::after {
164
- background-color: var(--color-primary-contrast, colors.$color-primary-contrast);
165
- }
166
- }
167
- }
168
- &.active {
169
- .hamburgerIcon {
170
- background-color: transparent;
171
- &::before {
172
- transform: translate(0, 8px) rotate(45deg);
173
- }
174
- &::after {
175
- transform: translate(0, -8px) rotate(-45deg);
176
- }
177
- }
178
- }
179
- }
180
- .dropdownContainer {
181
- z-index: 1000;
182
- display: none;
183
- width: 100%;
184
- overflow: hidden;
185
- transition: all transitions.$default-transition;
186
- background-color: var(--color-body-background, colors.$color-body-background);
187
- &.active {
188
- display: block;
189
- }
190
- }
191
- .dropdown {
192
- margin: 0 auto;
193
- display: -ms-flexbox;
194
- display: flex;
195
- -ms-flex-wrap: wrap;
196
- flex-wrap: wrap;
197
- padding: 0;
198
- padding: 20px;
199
- @media only screen and (min-width: viewports.$screen-sm) {
200
- padding: 40px 5%;
201
- }
202
- > ul.primaryList,
203
- > ul.secondaryList {
204
- width: 100%;
205
- padding: 0;
206
- list-style: none;
207
- margin: 0;
208
- @media only screen and (min-width: viewports.$screen-sm) {
209
- padding: 20px 0;
210
- }
211
- }
212
- > ul.primaryList {
213
- float: left;
214
- @media only screen and (min-width: viewports.$screen-sm) {
215
- width: 60%;
216
- }
217
- > li {
218
- line-height: 1.6;
219
- padding: 15px 0;
220
- @media only screen and (min-width: viewports.$screen-sm) {
221
- margin-left: 100px;
222
- }
223
- > a,
224
- > span {
225
- font-size: 18px;
226
- line-height: 1.56;
227
- font-weight: 600;
228
- text-decoration: underline;
229
- color: var(--color-primary, colors.$color-primary);
230
- cursor: pointer;
231
- &:hover {
232
- text-decoration: none;
233
- }
234
- @media only screen and (min-width: viewports.$screen-sm) {
235
- font-size: 26px;
236
- line-height: 1.58;
237
- }
238
- }
239
- > ul.primaryList {
240
- display: none;
241
- list-style: none;
242
- @media only screen and (min-width: viewports.$screen-sm) {
243
- display: -ms-flexbox;
244
- display: flex;
245
- -ms-flex-direction: row;
246
- flex-direction: row;
247
- -ms-flex-wrap: wrap;
248
- flex-wrap: wrap;
249
- margin-left: -5px;
250
- }
251
- li {
252
- padding: 5px;
253
- line-height: 1.6;
254
- font-size: 16px;
255
- @media only screen and (min-width: viewports.$screen-md) {
256
- font-size: 20px;
257
- }
258
- &:not(:last-of-type)::after {
259
- @media only screen and (min-width: viewports.$screen-sm) {
260
- content: "-";
261
- padding-left: 10px;
262
- }
263
- }
264
- a,
265
- span {
266
- cursor: pointer;
267
- text-decoration: underline;
268
- &:hover {
269
- text-decoration: none;
270
- }
271
- }
272
- }
273
- }
274
- }
275
- }
276
- > ul.secondaryList {
277
- float: right;
278
- margin: 20px 0;
279
- @media only screen and (min-width: viewports.$screen-sm) {
280
- margin: 0;
281
- width: 40%;
282
- padding-left: 20px;
283
- }
284
- li {
285
- padding: 5px 0;
286
- line-height: 1.6;
287
- @media only screen and (min-width: viewports.$screen-sm) {
288
- padding: 10px 0;
289
- position: relative;
290
- }
291
- a,
292
- span {
293
- font-size: 17px;
294
- text-decoration: underline;
295
- font-weight: 600;
296
- line-height: 1.5;
297
- cursor: pointer;
298
- &:hover {
299
- text-decoration: none;
300
- }
301
- @media only screen and (min-width: viewports.$screen-sm) {
302
- font-size: 22px;
303
- }
304
- }
305
- }
306
- }
307
- }
308
- }
309
- &.compact {
310
- @include box-shadow.box-shadow(0 2px 4px -2px rgba(0, 0, 0, 0.2));
311
- position: relative;
312
- z-index: 1;
313
-
314
- .mainContentLink {
315
- background-color: var(--color-primary, colors.$color-primary);
316
- color: var(--color-primary-contrast, colors.$color-primary-contrast);
317
- &:focus,
318
- &:active {
319
- span {
320
- outline-color: var(--color-primary-contrast, colors.$color-primary-contrast);
321
- }
322
- }
323
- }
324
-
325
- .navigationBar {
326
- background-color: var(--color-primary, colors.$color-primary);
327
- height: 54px;
328
- display: flex;
329
- justify-content: space-between;
330
- align-items: center;
331
- @media only screen and (min-width: viewports.$screen-sm) {
332
- height: 73px;
333
- }
334
- }
335
-
336
- .logoContainer {
337
- width: 200px;
338
- height: 54px;
339
- display: inline-block;
340
- img {
341
- height: 54px;
342
- max-width: none;
343
- }
344
- @media only screen and (min-width: viewports.$screen-sm) {
345
- width: 270px;
346
- height: 73px;
347
- img {
348
- height: 73px;
349
- }
350
- }
351
- }
352
-
353
- .childElements {
354
- display: block;
355
- color: var(--color-primary-contrast, colors.$color-primary-contrast);
356
- flex: 1;
357
- }
358
-
359
- .menuToggle {
360
- @include appearance.appearance(none);
361
- @include transition.transition(background-color 300ms ease-out);
362
- border: none;
363
- cursor: pointer;
364
- position: relative;
365
- background-color: transparent;
366
- float: right;
367
- margin: 0 12px;
368
- .hamburgerIcon {
369
- width: 30px;
370
- display: block;
371
- .line {
372
- background-color: var(--color-primary-contrast, colors.$color-primary-contrast);
373
- height: 2px;
374
- margin: 6px 0;
375
- display: block;
376
- }
377
- }
378
- @media only screen and (min-width: viewports.$screen-sm) {
379
- margin: 0 21px;
380
- }
381
- }
382
-
383
- .dropdownContainer {
384
- @include transition.transition(max-height 0.15s ease-out);
385
- max-height: 0;
386
- overflow: hidden;
387
- &.active {
388
- @include transition.transition(max-height 0.15s ease-out);
389
- max-height: 500px;
390
- }
391
- }
392
-
393
- .dropdown {
394
- @include box-shadow.box-shadow(0 2px 4px -2px rgba(0, 0, 0, 0.2));
395
- background-color: var(--color-primary, colors.$color-primary);
396
- z-index: 2;
397
- > ul.primaryList {
398
- list-style: none;
399
- padding: 20px;
400
- margin: 0;
401
- li {
402
- a,
403
- span {
404
- color: var(--color-primary-contrast, colors.$color-primary-contrast);
405
- text-transform: uppercase;
406
- text-decoration: none;
407
- font-family: typography.$default-font;
408
- padding: 10px 0;
409
- display: block;
410
- border-bottom: 1px solid var(--color-primary, colors.$color-primary);
411
- font-size: 14px;
412
- line-height: 1.6;
413
- }
414
- > ul.primaryList {
415
- list-style: none;
416
- padding: 0;
417
- li {
418
- a,
419
- span {
420
- color: var(--color-primary-contrast, colors.$color-primary-contrast);
421
- text-transform: none;
422
- text-decoration: none;
423
- font-family: typography.$default-font;
424
- padding: 10px 0;
425
- margin-left: 20px;
426
- display: block;
427
- border-bottom: 1px solid #1b3a48;
428
- font-size: 14px;
429
- line-height: 1.6;
430
- }
431
- }
432
- }
433
- }
434
- }
435
- > ul.secondaryList {
436
- list-style: none;
437
- padding: 20px;
438
- margin: 0;
439
-
440
- li {
441
- a,
442
- span {
443
- color: #fff;
444
- text-decoration: underline;
445
- font-family: "Arial";
446
- font-size: 14px;
447
- padding: 10px 0;
448
- line-height: 1;
449
- }
450
- }
451
- }
452
- }
453
-
454
- @media only screen and (min-width: viewports.$screen-sm) {
455
- .dropdownContainer {
456
- position: relative;
457
- overflow: visible;
458
- .dropdown {
459
- @include transition.transition(max-height 0.15s ease-out);
460
- width: 300px;
461
- position: absolute;
462
- right: 0;
463
- max-height: 0;
464
- overflow: hidden;
465
- }
466
- &.active {
467
- .dropdown {
468
- max-height: 500px;
469
- }
470
- }
471
- }
472
- }
473
- }
474
- }
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
- const NavigationBarListItem = props => {
11
- if (typeof props.listItem === "string") {
12
- return _react.default.createElement("li", null, _react.default.createElement("span", null, props.listItem));
13
- } else if (typeof props.listItem === "object") {
14
- return _react.default.createElement("li", null, _react.default.createElement("a", {
15
- href: props.listItem.href
16
- }, props.listItem.name));
17
- } else {
18
- return null;
19
- }
20
- };
21
- NavigationBarListItem.propTypes = {
22
- listItem: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object])
23
- };
24
- var _default = exports.default = NavigationBarListItem;
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- require("./PDF.scss");
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 && {}.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
- const PDF = props => {
12
- return _react.default.createElement(_react.Fragment, null, props.children);
13
- };
14
- var _default = exports.default = PDF;