dibk-design 0.4.45 → 0.4.48

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 (102) hide show
  1. package/LICENSE +674 -674
  2. package/README.md +3 -3
  3. package/dist/components/Accordion.md +15 -15
  4. package/dist/components/Accordion.module.scss +205 -205
  5. package/dist/components/Button.md +75 -75
  6. package/dist/components/Button.module.scss +232 -232
  7. package/dist/components/CheckBoxIcon.md +38 -38
  8. package/dist/components/CheckBoxIcon.module.scss +62 -62
  9. package/dist/components/CheckBoxInput.md +58 -58
  10. package/dist/components/CheckBoxInput.module.scss +24 -24
  11. package/dist/components/CheckBoxListItem.md +82 -82
  12. package/dist/components/CheckBoxListItem.module.scss +71 -71
  13. package/dist/components/Container.js +64 -0
  14. package/dist/components/Container.md +7 -0
  15. package/dist/components/Container.module.scss +10 -0
  16. package/dist/components/ContentBox.md +46 -46
  17. package/dist/components/ContentBox.module.scss +116 -116
  18. package/dist/components/Dialog.md +5 -5
  19. package/dist/components/Dialog.module.scss +78 -78
  20. package/dist/components/DragAndDropFileInput.js +8 -4
  21. package/dist/components/DragAndDropFileInput.md +13 -13
  22. package/dist/components/DragAndDropFileInput.module.scss +36 -45
  23. package/dist/components/ErrorMessage.js +80 -0
  24. package/dist/components/ErrorMessage.md +15 -0
  25. package/dist/components/ErrorMessage.module.scss +16 -0
  26. package/dist/components/Footer.js +3 -3
  27. package/dist/components/Footer.md +7 -7
  28. package/dist/components/Footer.module.scss +20 -11
  29. package/dist/components/Header.md +11 -11
  30. package/dist/components/Header.module.scss +64 -64
  31. package/dist/components/InputField.js +6 -11
  32. package/dist/components/InputField.md +41 -41
  33. package/dist/components/InputField.module.scss +81 -95
  34. package/dist/components/Label.md +9 -9
  35. package/dist/components/Label.module.scss +16 -16
  36. package/dist/components/List.md +10 -10
  37. package/dist/components/List.module.scss +18 -18
  38. package/dist/components/LoadingAnimation.md +5 -5
  39. package/dist/components/LoadingAnimation.module.scss +26 -26
  40. package/dist/components/NavigationBar.md +42 -42
  41. package/dist/components/NavigationBar.module.scss +176 -176
  42. package/dist/components/NavigationBarListItem.md +15 -15
  43. package/dist/components/Paper.md +9 -9
  44. package/dist/components/Paper.module.scss +18 -18
  45. package/dist/components/ProgressBar.js +31 -0
  46. package/dist/components/ProgressBar.md +13 -0
  47. package/dist/components/ProgressBar.module.scss +37 -0
  48. package/dist/components/RadioButtonIcon.js +101 -101
  49. package/dist/components/RadioButtonIcon.md +41 -41
  50. package/dist/components/RadioButtonIcon.module.scss +44 -44
  51. package/dist/components/RadioButtonInput.js +97 -97
  52. package/dist/components/RadioButtonInput.md +32 -32
  53. package/dist/components/RadioButtonInput.module.scss +26 -26
  54. package/dist/components/RadioButtonListItem.md +70 -70
  55. package/dist/components/RadioButtonListItem.module.scss +71 -71
  56. package/dist/components/Select.js +6 -11
  57. package/dist/components/Select.md +28 -28
  58. package/dist/components/Select.module.scss +86 -100
  59. package/dist/components/Textarea.js +6 -11
  60. package/dist/components/Textarea.md +27 -27
  61. package/dist/components/Textarea.module.scss +58 -72
  62. package/dist/components/Theme.md +12 -12
  63. package/dist/components/Theme.module.scss +76 -76
  64. package/dist/components/WizardNavigation/Step.module.scss +75 -75
  65. package/dist/components/WizardNavigation.md +84 -84
  66. package/dist/components/WizardNavigation.module.scss +3 -3
  67. package/dist/fonts/Altis-Light.svg +326 -326
  68. package/dist/fonts/open-sans-v27-latin-ext_latin-300.svg +346 -346
  69. package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.svg +377 -377
  70. package/dist/fonts/open-sans-v27-latin-ext_latin-700.svg +349 -349
  71. package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.svg +379 -379
  72. package/dist/fonts/open-sans-v27-latin-ext_latin-italic.svg +379 -379
  73. package/dist/fonts/open-sans-v27-latin-ext_latin-regular.svg +349 -349
  74. package/dist/images/dibk-logo-mobile.svg +91 -91
  75. package/dist/images/dibk-logo.svg +991 -991
  76. package/dist/images/spinner.svg +56 -56
  77. package/dist/index.js +24 -0
  78. package/dist/style/abstracts/_all.scss +1 -1
  79. package/dist/style/abstracts/mixins/_all.scss +12 -12
  80. package/dist/style/abstracts/mixins/_animation.scss +6 -6
  81. package/dist/style/abstracts/mixins/_appearance.scss +5 -5
  82. package/dist/style/abstracts/mixins/_border-radius.scss +31 -31
  83. package/dist/style/abstracts/mixins/_box-shadow.scss +5 -5
  84. package/dist/style/abstracts/mixins/_box-sizing.scss +5 -5
  85. package/dist/style/abstracts/mixins/_calc.scss +5 -5
  86. package/dist/style/abstracts/mixins/_keyframes.scss +14 -14
  87. package/dist/style/abstracts/mixins/_opacity.scss +5 -5
  88. package/dist/style/abstracts/mixins/_placeholder.scss +17 -17
  89. package/dist/style/abstracts/mixins/_scrollbar.scss +26 -26
  90. package/dist/style/abstracts/mixins/_transform.scss +6 -6
  91. package/dist/style/abstracts/mixins/_transition.scss +34 -34
  92. package/dist/style/abstracts/variables/_all.scss +2 -2
  93. package/dist/style/abstracts/variables/_colors.scss +28 -29
  94. package/dist/style/abstracts/variables/_typography.scss +1 -1
  95. package/dist/style/abstracts/variables/_viewports.scss +14 -14
  96. package/dist/style/base/_all.scss +1 -1
  97. package/dist/style/base/_reset.scss +15 -15
  98. package/dist/style/base/_typography.scss +6 -6
  99. package/dist/style/base/fonts.css +95 -95
  100. package/dist/style/global.scss +3 -3
  101. package/dist/style/layout/_containers.scss +9 -9
  102. package/package.json +43 -43
@@ -1,75 +1,75 @@
1
- @import "../../style/global.scss";
2
-
3
- .wizard-topnav .wizard-topnav-item.finished .wizard-topnav-item-content:before {
4
- background-color: $color-primary;
5
- }
6
-
7
- :local(.wizardTopnavItem) {
8
- flex: 1;
9
- text-decoration: none;
10
- :local(.wizardTopnavItemContent) {
11
- &:before {
12
- display: inline-block;
13
- content: " ";
14
- height: 15px;
15
- background-color: #e2e1e0;
16
- width: 100%;
17
- left: 50%;
18
- position: relative;
19
- margin-bottom: -30px;
20
- }
21
- :local(.stepNumber) {
22
- border-radius: 50%;
23
- width: 35px;
24
- height: 35px;
25
- display: block;
26
- text-align: center;
27
- background-color: #e2e1e0;
28
- color: $color-default-text;
29
- margin: auto;
30
- position: relative;
31
- font-size: 20px;
32
- line-height: 1.75em;
33
- }
34
- :local(.stepName) {
35
- display: block;
36
- text-align: center;
37
- color: $color-default-text;
38
- }
39
- }
40
- &:local(.active) {
41
- :local(.stepNumber) {
42
- background-color: $color-dark-blue;
43
- color: #fff;
44
- }
45
- }
46
- &:local(.finished) {
47
- :local(.wizardTopnavItemContent) {
48
- &:before {
49
- background-color: $color-primary;
50
- }
51
- :local(.stepNumber) {
52
- background-color: $color-primary;
53
- color: #fff;
54
- }
55
- }
56
- }
57
- &:local(.hasErrors) {
58
- :local(.wizardTopnavItemContent) {
59
- &:before {
60
- background-color: $color-warning;
61
- }
62
- :local(.stepNumber) {
63
- background-color: $color-warning;
64
- color: #fff;
65
- }
66
- }
67
- }
68
- &:last-child {
69
- :local(.wizardTopnavItemContent) {
70
- &:before {
71
- width: 0;
72
- }
73
- }
74
- }
75
- }
1
+ @import "../../style/global.scss";
2
+
3
+ .wizard-topnav .wizard-topnav-item.finished .wizard-topnav-item-content:before {
4
+ background-color: $color-primary;
5
+ }
6
+
7
+ :local(.wizardTopnavItem) {
8
+ flex: 1;
9
+ text-decoration: none;
10
+ :local(.wizardTopnavItemContent) {
11
+ &:before {
12
+ display: inline-block;
13
+ content: " ";
14
+ height: 15px;
15
+ background-color: #e2e1e0;
16
+ width: 100%;
17
+ left: 50%;
18
+ position: relative;
19
+ margin-bottom: -30px;
20
+ }
21
+ :local(.stepNumber) {
22
+ border-radius: 50%;
23
+ width: 35px;
24
+ height: 35px;
25
+ display: block;
26
+ text-align: center;
27
+ background-color: #e2e1e0;
28
+ color: $color-default-text;
29
+ margin: auto;
30
+ position: relative;
31
+ font-size: 20px;
32
+ line-height: 1.75em;
33
+ }
34
+ :local(.stepName) {
35
+ display: block;
36
+ text-align: center;
37
+ color: $color-default-text;
38
+ }
39
+ }
40
+ &:local(.active) {
41
+ :local(.stepNumber) {
42
+ background-color: $color-dark-blue;
43
+ color: #fff;
44
+ }
45
+ }
46
+ &:local(.finished) {
47
+ :local(.wizardTopnavItemContent) {
48
+ &:before {
49
+ background-color: $color-primary;
50
+ }
51
+ :local(.stepNumber) {
52
+ background-color: $color-primary;
53
+ color: #fff;
54
+ }
55
+ }
56
+ }
57
+ &:local(.hasErrors) {
58
+ :local(.wizardTopnavItemContent) {
59
+ &:before {
60
+ background-color: $color-warning;
61
+ }
62
+ :local(.stepNumber) {
63
+ background-color: $color-warning;
64
+ color: #fff;
65
+ }
66
+ }
67
+ }
68
+ &:last-child {
69
+ :local(.wizardTopnavItemContent) {
70
+ &:before {
71
+ width: 0;
72
+ }
73
+ }
74
+ }
75
+ }
@@ -1,84 +1,84 @@
1
- WizardNavigation example:
2
- ```js
3
- const wizardSteps = {
4
- SignIn: {
5
- id: 'SignIn',
6
- name: 'Start',
7
- finished: true,
8
- hasErrors: false
9
- },
10
- AvailableReportees: {
11
- id: 'AvailableReportees',
12
- name: 'Velg hvem du representerer',
13
- finished: true,
14
- hasErrors: false
15
- },
16
- Import: {
17
- id: 'Import',
18
- name: 'Importer fil fra ByggSøk',
19
- finished: false,
20
- hasErrors: true
21
- },
22
- NextProcessCategory: {
23
- id: 'NextProcessCategory',
24
- name: 'Velg søknadstype',
25
- finished: false,
26
- hasErrors: false
27
- },
28
- Receipt: {
29
- id: 'Receipt',
30
- name: 'Velg søknadssystem',
31
- finished: false,
32
- hasErrors: false
33
- }
34
- };
35
-
36
- <WizardNavigation steps={wizardSteps} activeStepId='NextProcessCategory' />
37
-
38
- ```
39
-
40
- WizardNavigation with links example:
41
- ```js
42
- import { BrowserRouter } from 'react-router-dom';
43
-
44
- const wizardStepsWithLinks = {
45
- SignIn: {
46
- id: 'SignIn',
47
- name: 'Start',
48
- finished: true,
49
- hasErrors: false,
50
- link: { pathname: 'SignIn', search: window.location.search }
51
- },
52
- AvailableReportees: {
53
- id: 'AvailableReportees',
54
- name: 'Velg hvem du representerer',
55
- finished: true,
56
- hasErrors: false,
57
- link: { pathname: 'AvailableReportees', search: window.location.search }
58
- },
59
- Import: {
60
- id: 'Import',
61
- name: 'Importer fil fra ByggSøk',
62
- finished: false,
63
- hasErrors: true,
64
- link: { pathname: 'Import', search: window.location.search }
65
- },
66
- NextProcessCategory: {
67
- id: 'NextProcessCategory',
68
- name: 'Velg søknadstype',
69
- finished: false,
70
- hasErrors: false,
71
- link: { pathname: 'NextProcessCategory', search: window.location.search }
72
- },
73
- Receipt: {
74
- id: 'Receipt',
75
- name: 'Velg søknadssystem',
76
- finished: false,
77
- hasErrors: false,
78
- link: { pathname: 'Receipt', search: window.location.search }
79
- }
80
- };
81
- <BrowserRouter>
82
- <WizardNavigation steps={wizardStepsWithLinks} activeStepId='NextProcessCategory' />
83
- </BrowserRouter>
84
- ```
1
+ WizardNavigation example:
2
+ ```js
3
+ const wizardSteps = {
4
+ SignIn: {
5
+ id: 'SignIn',
6
+ name: 'Start',
7
+ finished: true,
8
+ hasErrors: false
9
+ },
10
+ AvailableReportees: {
11
+ id: 'AvailableReportees',
12
+ name: 'Velg hvem du representerer',
13
+ finished: true,
14
+ hasErrors: false
15
+ },
16
+ Import: {
17
+ id: 'Import',
18
+ name: 'Importer fil fra ByggSøk',
19
+ finished: false,
20
+ hasErrors: true
21
+ },
22
+ NextProcessCategory: {
23
+ id: 'NextProcessCategory',
24
+ name: 'Velg søknadstype',
25
+ finished: false,
26
+ hasErrors: false
27
+ },
28
+ Receipt: {
29
+ id: 'Receipt',
30
+ name: 'Velg søknadssystem',
31
+ finished: false,
32
+ hasErrors: false
33
+ }
34
+ };
35
+
36
+ <WizardNavigation steps={wizardSteps} activeStepId='NextProcessCategory' />
37
+
38
+ ```
39
+
40
+ WizardNavigation with links example:
41
+ ```js
42
+ import { BrowserRouter } from 'react-router-dom';
43
+
44
+ const wizardStepsWithLinks = {
45
+ SignIn: {
46
+ id: 'SignIn',
47
+ name: 'Start',
48
+ finished: true,
49
+ hasErrors: false,
50
+ link: { pathname: 'SignIn', search: window.location.search }
51
+ },
52
+ AvailableReportees: {
53
+ id: 'AvailableReportees',
54
+ name: 'Velg hvem du representerer',
55
+ finished: true,
56
+ hasErrors: false,
57
+ link: { pathname: 'AvailableReportees', search: window.location.search }
58
+ },
59
+ Import: {
60
+ id: 'Import',
61
+ name: 'Importer fil fra ByggSøk',
62
+ finished: false,
63
+ hasErrors: true,
64
+ link: { pathname: 'Import', search: window.location.search }
65
+ },
66
+ NextProcessCategory: {
67
+ id: 'NextProcessCategory',
68
+ name: 'Velg søknadstype',
69
+ finished: false,
70
+ hasErrors: false,
71
+ link: { pathname: 'NextProcessCategory', search: window.location.search }
72
+ },
73
+ Receipt: {
74
+ id: 'Receipt',
75
+ name: 'Velg søknadssystem',
76
+ finished: false,
77
+ hasErrors: false,
78
+ link: { pathname: 'Receipt', search: window.location.search }
79
+ }
80
+ };
81
+ <BrowserRouter>
82
+ <WizardNavigation steps={wizardStepsWithLinks} activeStepId='NextProcessCategory' />
83
+ </BrowserRouter>
84
+ ```
@@ -1,4 +1,4 @@
1
- :local(.wizardTopnav) {
2
- display: flex;
3
- margin: 20px;
1
+ :local(.wizardTopnav) {
2
+ display: flex;
3
+ margin: 20px;
4
4
  }