dibk-design 0.4.42 → 0.4.45

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 (89) 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 -216
  7. package/dist/components/CheckBoxIcon.js +10 -4
  8. package/dist/components/CheckBoxIcon.md +38 -38
  9. package/dist/components/CheckBoxIcon.module.scss +62 -62
  10. package/dist/components/CheckBoxInput.js +6 -3
  11. package/dist/components/CheckBoxInput.md +58 -51
  12. package/dist/components/CheckBoxInput.module.scss +24 -24
  13. package/dist/components/CheckBoxListItem.md +82 -82
  14. package/dist/components/CheckBoxListItem.module.scss +71 -71
  15. package/dist/components/ContentBox.md +46 -46
  16. package/dist/components/ContentBox.module.scss +116 -116
  17. package/dist/components/Dialog.md +5 -5
  18. package/dist/components/Dialog.module.scss +78 -71
  19. package/dist/components/DragAndDropFileInput.md +13 -13
  20. package/dist/components/DragAndDropFileInput.module.scss +45 -45
  21. package/dist/components/Footer.md +7 -7
  22. package/dist/components/Footer.module.scss +11 -11
  23. package/dist/components/Header.md +11 -11
  24. package/dist/components/Header.module.scss +64 -64
  25. package/dist/components/InputField.md +41 -41
  26. package/dist/components/InputField.module.scss +95 -83
  27. package/dist/components/Label.md +9 -9
  28. package/dist/components/Label.module.scss +16 -16
  29. package/dist/components/List.md +10 -10
  30. package/dist/components/List.module.scss +18 -18
  31. package/dist/components/LoadingAnimation.md +5 -5
  32. package/dist/components/LoadingAnimation.module.scss +26 -26
  33. package/dist/components/NavigationBar.md +42 -42
  34. package/dist/components/NavigationBar.module.scss +176 -176
  35. package/dist/components/NavigationBarListItem.md +15 -15
  36. package/dist/components/Paper.md +9 -9
  37. package/dist/components/Paper.module.scss +18 -18
  38. package/dist/components/RadioButtonIcon.js +101 -95
  39. package/dist/components/RadioButtonIcon.md +41 -41
  40. package/dist/components/RadioButtonIcon.module.scss +44 -44
  41. package/dist/components/RadioButtonInput.js +97 -94
  42. package/dist/components/RadioButtonInput.md +32 -30
  43. package/dist/components/RadioButtonInput.module.scss +26 -26
  44. package/dist/components/RadioButtonListItem.md +70 -70
  45. package/dist/components/RadioButtonListItem.module.scss +71 -71
  46. package/dist/components/Select.md +28 -28
  47. package/dist/components/Select.module.scss +100 -101
  48. package/dist/components/Textarea.md +27 -27
  49. package/dist/components/Textarea.module.scss +72 -64
  50. package/dist/components/Theme.md +12 -12
  51. package/dist/components/Theme.module.scss +76 -76
  52. package/dist/components/WizardNavigation/Step.module.scss +75 -75
  53. package/dist/components/WizardNavigation.md +84 -84
  54. package/dist/components/WizardNavigation.module.scss +3 -3
  55. package/dist/fonts/Altis-Light.svg +326 -326
  56. package/dist/fonts/open-sans-v27-latin-ext_latin-300.svg +346 -346
  57. package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.svg +377 -377
  58. package/dist/fonts/open-sans-v27-latin-ext_latin-700.svg +349 -349
  59. package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.svg +379 -379
  60. package/dist/fonts/open-sans-v27-latin-ext_latin-italic.svg +379 -379
  61. package/dist/fonts/open-sans-v27-latin-ext_latin-regular.svg +349 -349
  62. package/dist/images/dibk-logo-mobile.svg +91 -91
  63. package/dist/images/dibk-logo.svg +991 -991
  64. package/dist/images/spinner.svg +56 -56
  65. package/dist/style/abstracts/_all.scss +1 -1
  66. package/dist/style/abstracts/mixins/_all.scss +12 -12
  67. package/dist/style/abstracts/mixins/_animation.scss +6 -6
  68. package/dist/style/abstracts/mixins/_appearance.scss +5 -5
  69. package/dist/style/abstracts/mixins/_border-radius.scss +31 -31
  70. package/dist/style/abstracts/mixins/_box-shadow.scss +5 -5
  71. package/dist/style/abstracts/mixins/_box-sizing.scss +5 -5
  72. package/dist/style/abstracts/mixins/_calc.scss +5 -5
  73. package/dist/style/abstracts/mixins/_keyframes.scss +14 -14
  74. package/dist/style/abstracts/mixins/_opacity.scss +5 -5
  75. package/dist/style/abstracts/mixins/_placeholder.scss +17 -17
  76. package/dist/style/abstracts/mixins/_scrollbar.scss +26 -26
  77. package/dist/style/abstracts/mixins/_transform.scss +6 -6
  78. package/dist/style/abstracts/mixins/_transition.scss +34 -34
  79. package/dist/style/abstracts/variables/_all.scss +2 -2
  80. package/dist/style/abstracts/variables/_colors.scss +29 -29
  81. package/dist/style/abstracts/variables/_typography.scss +1 -1
  82. package/dist/style/abstracts/variables/_viewports.scss +14 -11
  83. package/dist/style/base/_all.scss +1 -1
  84. package/dist/style/base/_reset.scss +15 -15
  85. package/dist/style/base/_typography.scss +6 -6
  86. package/dist/style/base/fonts.css +95 -95
  87. package/dist/style/global.scss +3 -3
  88. package/dist/style/layout/_containers.scss +9 -9
  89. package/package.json +43 -42
@@ -1,42 +1,42 @@
1
- NavigationBar example:
2
-
3
- ```js
4
- <NavigationBar primaryListItems={[{name: 'Primary item 1', listItems:['Sub item 1', 'Sub item 2']}, 'Primary item 2', {name: 'Primary item 3', href: '#'}]} secondaryListItems={['Secondary item 1', 'Secondary item 2']} />
5
- ```
6
-
7
-
8
- NavigationBar without list items example
9
- ```js
10
- <NavigationBar />
11
- ```
12
-
13
- NavigationBar with logo link
14
- ```js
15
- <NavigationBar logoLink="https://dibk.no/" />
16
- ```
17
-
18
- NavigationBar with logo link that opens in new tab
19
- ```js
20
- <NavigationBar logoLink="https://dibk.no/" openLogoLinkInNewTab />
21
- ```
22
-
23
- NavigationBar with child elements
24
- ```js
25
- <NavigationBar primaryListItems={[{name: 'Primary item 1', listItems:['Sub item 1', 'Sub item 2']}, 'Primary item 2', {name: 'Primary item 3', href: '#'}]} secondaryListItems={['Secondary item 1', 'Secondary item 2']} >
26
- Content here
27
- </NavigationBar>
28
- ```
29
-
30
-
31
- NavigationBar with child elements and without list items example
32
- ```js
33
- <NavigationBar>
34
- Content here
35
- </NavigationBar>
36
- ```
37
-
38
- Themed NavigationBar example:
39
- ```js
40
- import customTheme from 'data/customTheme';
41
- <NavigationBar theme={customTheme} primaryListItems={[{name: 'Primary item 1', listItems:['Sub item 1', 'Sub item 2']}, 'Primary item 2', {name: 'Primary item 3', href: '#'}]} secondaryListItems={['Secondary item 1', 'Secondary item 2']} />
42
- ```
1
+ NavigationBar example:
2
+
3
+ ```js
4
+ <NavigationBar primaryListItems={[{name: 'Primary item 1', listItems:['Sub item 1', 'Sub item 2']}, 'Primary item 2', {name: 'Primary item 3', href: '#'}]} secondaryListItems={['Secondary item 1', 'Secondary item 2']} />
5
+ ```
6
+
7
+
8
+ NavigationBar without list items example
9
+ ```js
10
+ <NavigationBar />
11
+ ```
12
+
13
+ NavigationBar with logo link
14
+ ```js
15
+ <NavigationBar logoLink="https://dibk.no/" />
16
+ ```
17
+
18
+ NavigationBar with logo link that opens in new tab
19
+ ```js
20
+ <NavigationBar logoLink="https://dibk.no/" openLogoLinkInNewTab />
21
+ ```
22
+
23
+ NavigationBar with child elements
24
+ ```js
25
+ <NavigationBar primaryListItems={[{name: 'Primary item 1', listItems:['Sub item 1', 'Sub item 2']}, 'Primary item 2', {name: 'Primary item 3', href: '#'}]} secondaryListItems={['Secondary item 1', 'Secondary item 2']} >
26
+ Content here
27
+ </NavigationBar>
28
+ ```
29
+
30
+
31
+ NavigationBar with child elements and without list items example
32
+ ```js
33
+ <NavigationBar>
34
+ Content here
35
+ </NavigationBar>
36
+ ```
37
+
38
+ Themed NavigationBar example:
39
+ ```js
40
+ import customTheme from 'data/customTheme';
41
+ <NavigationBar theme={customTheme} primaryListItems={[{name: 'Primary item 1', listItems:['Sub item 1', 'Sub item 2']}, 'Primary item 2', {name: 'Primary item 3', href: '#'}]} secondaryListItems={['Secondary item 1', 'Secondary item 2']} />
42
+ ```
@@ -1,176 +1,176 @@
1
- @import "../style/global.scss";
2
-
3
- :local(.isPresent) {
4
- @include box-shadow(0 2px 4px -2px rgba(0,0,0,.2));
5
- position: relative;
6
- z-index: 1;
7
- :local(.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-xs) {
14
- height: 73px;
15
- }
16
- }
17
-
18
- :local(.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-xs) {
27
- width: 270px;
28
- height: 73px;
29
- img {
30
- height: 73px;
31
- }
32
- }
33
- }
34
-
35
- :local(.childElements) {
36
- display: block;
37
- color: #fff;
38
- flex: 1;
39
- }
40
-
41
- :local(.dropdownOverlay) {
42
- @media only screen and (max-width: $screen-md) and (min-width: $screen-xs) {
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
- &:local(.active) {
55
- opacity: 1;
56
- background: rgba(0, 0, 0, 0.5);
57
- visibility: visible;
58
- }
59
- }
60
- }
61
-
62
- :local(.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
- :local(.hamburgerIcon) {
72
- width: 30px;
73
- display: block;
74
- :local(.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-xs) {
82
- margin: 0 21px;
83
- }
84
- }
85
-
86
- :local(.dropdownContainer) {
87
- @include transition(max-height 0.15s ease-out);
88
- max-height: 0;
89
- overflow: hidden;
90
- &:local(.active) {
91
- @include transition(max-height 0.15s ease-out);
92
- max-height: 500px;
93
- }
94
- }
95
-
96
- :local(.dropdown) {
97
- @include box-shadow(0 2px 4px -2px rgba(0,0,0,.2));
98
- background-color: $color-dark-blue;
99
- z-index: 2;
100
- > :local(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: "Open Sans";
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
- > :local(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: "Open Sans";
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
- > :local(ul.secondaryList) {
139
- list-style: none;
140
- padding: 20px;
141
- margin: 0;
142
-
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
-
157
- @media only screen and (min-width: $screen-xs) {
158
- :local(.dropdownContainer) {
159
- position: relative;
160
- overflow: visible;
161
- :local(.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
- &:local(.active) {
170
- :local(.dropdown) {
171
- max-height: 500px;
172
- }
173
- }
174
- }
175
- }
176
- }
1
+ @import "../style/global.scss";
2
+
3
+ :local(.isPresent) {
4
+ @include box-shadow(0 2px 4px -2px rgba(0,0,0,.2));
5
+ position: relative;
6
+ z-index: 1;
7
+ :local(.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
+
18
+ :local(.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
+
35
+ :local(.childElements) {
36
+ display: block;
37
+ color: #fff;
38
+ flex: 1;
39
+ }
40
+
41
+ :local(.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
+ &:local(.active) {
55
+ opacity: 1;
56
+ background: rgba(0, 0, 0, 0.5);
57
+ visibility: visible;
58
+ }
59
+ }
60
+ }
61
+
62
+ :local(.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
+ :local(.hamburgerIcon) {
72
+ width: 30px;
73
+ display: block;
74
+ :local(.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
+
86
+ :local(.dropdownContainer) {
87
+ @include transition(max-height 0.15s ease-out);
88
+ max-height: 0;
89
+ overflow: hidden;
90
+ &:local(.active) {
91
+ @include transition(max-height 0.15s ease-out);
92
+ max-height: 500px;
93
+ }
94
+ }
95
+
96
+ :local(.dropdown) {
97
+ @include box-shadow(0 2px 4px -2px rgba(0,0,0,.2));
98
+ background-color: $color-dark-blue;
99
+ z-index: 2;
100
+ > :local(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: "Open Sans";
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
+ > :local(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: "Open Sans";
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
+ > :local(ul.secondaryList) {
139
+ list-style: none;
140
+ padding: 20px;
141
+ margin: 0;
142
+
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
+
157
+ @media only screen and (min-width: $screen-sm) {
158
+ :local(.dropdownContainer) {
159
+ position: relative;
160
+ overflow: visible;
161
+ :local(.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
+ &:local(.active) {
170
+ :local(.dropdown) {
171
+ max-height: 500px;
172
+ }
173
+ }
174
+ }
175
+ }
176
+ }
@@ -1,16 +1,16 @@
1
- NavigationBarListItem example:
2
- ```js
3
- <ul>
4
- <NavigationBarListItem listItem='Primary item 1' />
5
- <NavigationBarListItem listItem={{name: 'Primary item 2', href: '#'}} />
6
- </ul>
7
- ```
8
-
9
- Themed NavigationBarListItem example:
10
- ```js
11
- import customTheme from 'data/customTheme';
12
- <ul>
13
- <NavigationBarListItem listItem='Primary item 1' theme={customTheme} />
14
- <NavigationBarListItem listItem={{name: 'Primary item 2', href: '#'}} theme={customTheme} />
15
- </ul>
1
+ NavigationBarListItem example:
2
+ ```js
3
+ <ul>
4
+ <NavigationBarListItem listItem='Primary item 1' />
5
+ <NavigationBarListItem listItem={{name: 'Primary item 2', href: '#'}} />
6
+ </ul>
7
+ ```
8
+
9
+ Themed NavigationBarListItem example:
10
+ ```js
11
+ import customTheme from 'data/customTheme';
12
+ <ul>
13
+ <NavigationBarListItem listItem='Primary item 1' theme={customTheme} />
14
+ <NavigationBarListItem listItem={{name: 'Primary item 2', href: '#'}} theme={customTheme} />
15
+ </ul>
16
16
  ```
@@ -1,9 +1,9 @@
1
- Paper example:
2
-
3
- ```js
4
- <Paper />
5
- <Paper>Paper with content</Paper>
6
- <Paper noPadding>Paper with no padding</Paper>
7
- <Paper noMargin>Paper with no margin</Paper>
8
- <Paper noMargin noPadding>Paper with no margin or padding</Paper>
9
- ```
1
+ Paper example:
2
+
3
+ ```js
4
+ <Paper />
5
+ <Paper>Paper with content</Paper>
6
+ <Paper noPadding>Paper with no padding</Paper>
7
+ <Paper noMargin>Paper with no margin</Paper>
8
+ <Paper noMargin noPadding>Paper with no margin or padding</Paper>
9
+ ```
@@ -1,18 +1,18 @@
1
- @import "../style/global.scss";
2
-
3
- :local(.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(:local(.noMargin)) {
10
- margin: 20px 0;
11
- }
12
- &:not(:local(.noPadding)) {
13
- padding: 12px 12px;
14
- @media only screen and (min-width: $screen-xs) {
15
- padding: 24px 28px;
16
- }
17
- }
18
- }
1
+ @import "../style/global.scss";
2
+
3
+ :local(.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(:local(.noMargin)) {
10
+ margin: 20px 0;
11
+ }
12
+ &:not(:local(.noPadding)) {
13
+ padding: 12px 12px;
14
+ @media only screen and (min-width: $screen-sm) {
15
+ padding: 24px 28px;
16
+ }
17
+ }
18
+ }