dibk-design 0.4.44 → 0.4.47

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 (104) 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.js +109 -109
  8. package/dist/components/CheckBoxIcon.md +38 -38
  9. package/dist/components/CheckBoxIcon.module.scss +62 -62
  10. package/dist/components/CheckBoxInput.js +104 -104
  11. package/dist/components/CheckBoxInput.md +58 -58
  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/Container.js +60 -0
  16. package/dist/components/Container.md +7 -0
  17. package/dist/components/Container.module.scss +10 -0
  18. package/dist/components/ContentBox.md +46 -46
  19. package/dist/components/ContentBox.module.scss +116 -116
  20. package/dist/components/Dialog.md +5 -5
  21. package/dist/components/Dialog.module.scss +78 -78
  22. package/dist/components/DragAndDropFileInput.js +8 -4
  23. package/dist/components/DragAndDropFileInput.md +13 -13
  24. package/dist/components/DragAndDropFileInput.module.scss +36 -45
  25. package/dist/components/ErrorMessage.js +80 -0
  26. package/dist/components/ErrorMessage.md +15 -0
  27. package/dist/components/ErrorMessage.module.scss +16 -0
  28. package/dist/components/Footer.js +3 -3
  29. package/dist/components/Footer.md +7 -7
  30. package/dist/components/Footer.module.scss +20 -11
  31. package/dist/components/Header.md +11 -11
  32. package/dist/components/Header.module.scss +64 -64
  33. package/dist/components/InputField.js +6 -11
  34. package/dist/components/InputField.md +41 -41
  35. package/dist/components/InputField.module.scss +81 -95
  36. package/dist/components/Label.md +9 -9
  37. package/dist/components/Label.module.scss +16 -16
  38. package/dist/components/List.md +10 -10
  39. package/dist/components/List.module.scss +18 -18
  40. package/dist/components/LoadingAnimation.md +5 -5
  41. package/dist/components/LoadingAnimation.module.scss +26 -26
  42. package/dist/components/NavigationBar.md +42 -42
  43. package/dist/components/NavigationBar.module.scss +176 -176
  44. package/dist/components/NavigationBarListItem.md +15 -15
  45. package/dist/components/Paper.md +9 -9
  46. package/dist/components/Paper.module.scss +18 -18
  47. package/dist/components/ProgressBar.js +29 -0
  48. package/dist/components/ProgressBar.md +13 -0
  49. package/dist/components/ProgressBar.module.scss +37 -0
  50. package/dist/components/RadioButtonIcon.js +10 -4
  51. package/dist/components/RadioButtonIcon.md +41 -41
  52. package/dist/components/RadioButtonIcon.module.scss +44 -44
  53. package/dist/components/RadioButtonInput.js +6 -3
  54. package/dist/components/RadioButtonInput.md +32 -30
  55. package/dist/components/RadioButtonInput.module.scss +26 -26
  56. package/dist/components/RadioButtonListItem.md +70 -70
  57. package/dist/components/RadioButtonListItem.module.scss +71 -71
  58. package/dist/components/Select.js +6 -11
  59. package/dist/components/Select.md +28 -28
  60. package/dist/components/Select.module.scss +86 -100
  61. package/dist/components/Textarea.js +6 -11
  62. package/dist/components/Textarea.md +27 -27
  63. package/dist/components/Textarea.module.scss +58 -72
  64. package/dist/components/Theme.md +12 -12
  65. package/dist/components/Theme.module.scss +76 -76
  66. package/dist/components/WizardNavigation/Step.module.scss +75 -75
  67. package/dist/components/WizardNavigation.md +84 -84
  68. package/dist/components/WizardNavigation.module.scss +3 -3
  69. package/dist/fonts/Altis-Light.svg +326 -326
  70. package/dist/fonts/open-sans-v27-latin-ext_latin-300.svg +346 -346
  71. package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.svg +377 -377
  72. package/dist/fonts/open-sans-v27-latin-ext_latin-700.svg +349 -349
  73. package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.svg +379 -379
  74. package/dist/fonts/open-sans-v27-latin-ext_latin-italic.svg +379 -379
  75. package/dist/fonts/open-sans-v27-latin-ext_latin-regular.svg +349 -349
  76. package/dist/images/dibk-logo-mobile.svg +91 -91
  77. package/dist/images/dibk-logo.svg +991 -991
  78. package/dist/images/spinner.svg +56 -56
  79. package/dist/index.js +24 -0
  80. package/dist/style/abstracts/_all.scss +1 -1
  81. package/dist/style/abstracts/mixins/_all.scss +12 -12
  82. package/dist/style/abstracts/mixins/_animation.scss +6 -6
  83. package/dist/style/abstracts/mixins/_appearance.scss +5 -5
  84. package/dist/style/abstracts/mixins/_border-radius.scss +31 -31
  85. package/dist/style/abstracts/mixins/_box-shadow.scss +5 -5
  86. package/dist/style/abstracts/mixins/_box-sizing.scss +5 -5
  87. package/dist/style/abstracts/mixins/_calc.scss +5 -5
  88. package/dist/style/abstracts/mixins/_keyframes.scss +14 -14
  89. package/dist/style/abstracts/mixins/_opacity.scss +5 -5
  90. package/dist/style/abstracts/mixins/_placeholder.scss +17 -17
  91. package/dist/style/abstracts/mixins/_scrollbar.scss +26 -26
  92. package/dist/style/abstracts/mixins/_transform.scss +6 -6
  93. package/dist/style/abstracts/mixins/_transition.scss +34 -34
  94. package/dist/style/abstracts/variables/_all.scss +2 -2
  95. package/dist/style/abstracts/variables/_colors.scss +28 -29
  96. package/dist/style/abstracts/variables/_typography.scss +1 -1
  97. package/dist/style/abstracts/variables/_viewports.scss +14 -14
  98. package/dist/style/base/_all.scss +1 -1
  99. package/dist/style/base/_reset.scss +15 -15
  100. package/dist/style/base/_typography.scss +6 -6
  101. package/dist/style/base/fonts.css +95 -95
  102. package/dist/style/global.scss +3 -3
  103. package/dist/style/layout/_containers.scss +9 -9
  104. package/package.json +43 -43
@@ -1,232 +1,232 @@
1
- @import "../style/global.scss";
2
- @include keyframes(pushnext) {
3
- 0% {
4
- @include transform(rotate(45deg) translate3d(0, 0, 0));
5
- }
6
-
7
- 50% {
8
- @include transform(rotate(45deg) translate3d(2px, -2px, 0));
9
- }
10
-
11
- 100% {
12
- @include transform(rotate(45deg) translate3d(0, 0, 0));
13
- }
14
- }
15
- @include keyframes(pushprev) {
16
- 0% {
17
- @include transform(rotate(-135deg) translate3d(0, 0, 0));
18
- }
19
-
20
- 50% {
21
- @include transform(rotate(-135deg) translate3d(-2px, 2px, 0));
22
- }
23
-
24
- 100% {
25
- @include transform(rotate(-135deg) translate3d(0, 0, 0));
26
- }
27
- }
28
-
29
- :local(.button) {
30
- @include appearance(none);
31
- @include border-radius(0);
32
- @include transition(
33
- filter 300ms ease-out,
34
- background-color 300ms ease-out,
35
- color 300ms ease-out,
36
- border-color 300ms ease-out
37
- );
38
- font-family: "Altis", sans-serif;
39
- border-style: solid;
40
- border-width: 1px;
41
- $border-color: $color-primary;
42
- cursor: pointer;
43
- line-height: 1;
44
- position: relative;
45
- text-align: center;
46
- text-decoration: none;
47
- display: inline-block;
48
- margin-right: 5px;
49
- margin-bottom: 5px;
50
- font-size: 17px;
51
- font-weight: 500;
52
- @media only screen and (min-width: $screen-sm) {
53
- font-size: 20px;
54
- }
55
-
56
- &:local(.hasTheme) {
57
- &:hover,
58
- &:focus {
59
- filter: brightness(90%);
60
- }
61
-
62
- &:active {
63
- filter: brightness(85%);
64
- }
65
- }
66
-
67
- &:local(.regular) {
68
- padding: 14px 24px;
69
- @media only screen and (min-width: $screen-sm) {
70
- padding: 17px 32px;
71
- }
72
- }
73
-
74
- &:local(.small) {
75
- padding: 6px 24px;
76
- min-width: 80px;
77
- line-height: 18px;
78
- @media only screen and (min-width: $screen-sm) {
79
- line-height: 21px;
80
- padding: 6px 32px;
81
- }
82
- }
83
-
84
- &:local(.default) {
85
- background-color: #fff;
86
- color: $color-primary;
87
- &:not(:local(.hasTheme)) {
88
- &:hover:not(:local(.noHover)),
89
- &:active {
90
- background-color: $color-primary;
91
- color: #fff;
92
- &:after,
93
- &:before {
94
- border-color: #fff;
95
- }
96
- }
97
- }
98
- }
99
-
100
- &:local(.primary) {
101
- background-color: $color-primary;
102
- color: #fff;
103
- &:not(:local(.hasTheme)) {
104
- &:hover:not(:local(.noHover)),
105
- &:active {
106
- background-color: #fff;
107
- color: $color-primary;
108
- &:after,
109
- &:before {
110
- border-color: $color-primary;
111
- }
112
- }
113
- }
114
- }
115
-
116
- &:disabled {
117
- &:local(.hasTheme),
118
- &:not(:local(.hasTheme)) {
119
- &:local(.default) {
120
- background-color: #fff;
121
- cursor: default;
122
- opacity: 0.6;
123
- color: #afaba8;
124
- border: 1px solid #e5e3e1;
125
- &:hover,
126
- &:focus,
127
- &:active {
128
- background-color: #fff;
129
- cursor: default;
130
- opacity: 0.6;
131
- color: #afaba8;
132
- border: 1px solid #e5e3e1;
133
- &:before,
134
- &:after {
135
- border-color: #afaba8;
136
- }
137
- }
138
- &:before,
139
- &:after {
140
- border-color: #afaba8;
141
- }
142
- }
143
- &:local(.primary) {
144
- background-color: $color-primary;
145
- cursor: default;
146
- opacity: 0.6;
147
- color: #fff;
148
- border: 1px solid $color-primary;
149
- &:hover,
150
- &:focus,
151
- &:active {
152
- background-color: $color-primary;
153
- cursor: default;
154
- opacity: 0.6;
155
- color: #fff;
156
- border: 1px solid $color-primary;
157
- &:before,
158
- &:after {
159
- border-color: $color-primary;
160
- }
161
- }
162
- &:before,
163
- &:after {
164
- border-color: $color-primary;
165
- }
166
- }
167
- }
168
- }
169
-
170
- &:local(.rounded) {
171
- border-radius: 20px;
172
- }
173
-
174
- &:local(.hasArrowLeft) {
175
- &:before {
176
- @include transform(rotate(-135deg));
177
- @include calc("top", "50% - 0.4rem");
178
- content: " ";
179
- display: inline-block;
180
- position: absolute;
181
- right: auto;
182
- left: 0.55em;
183
- width: 0.5rem;
184
- height: 0.5rem;
185
- vertical-align: middle;
186
- border: 2px solid white;
187
- border-width: 2px 2px 0 0;
188
- margin-right: 1em;
189
- @media only screen and (min-width: $screen-sm) {
190
- left: 1em;
191
- }
192
- }
193
-
194
- &:hover {
195
- &:before {
196
- @include animation(pushprev 0.8s linear infinite);
197
- }
198
- }
199
- &:local(.default) {
200
- &:before {
201
- border-color: $color-primary;
202
- }
203
- }
204
- }
205
-
206
- &:local(.hasArrowRight) {
207
- &:after {
208
- @include transform(rotate(45deg));
209
- @include calc("top", "50% - 0.4rem");
210
- content: " ";
211
- display: inline-block;
212
- position: absolute;
213
- left: auto;
214
- right: 0.55em;
215
- width: 0.5rem;
216
- height: 0.5rem;
217
- vertical-align: middle;
218
- border: 2px solid white;
219
- border-width: 2px 2px 0 0;
220
- margin-left: 1em;
221
- @media only screen and (min-width: $screen-sm) {
222
- right: 1em;
223
- }
224
- }
225
-
226
- &:hover {
227
- &:after {
228
- @include animation(pushnext 0.8s linear infinite);
229
- }
230
- }
231
- }
232
- }
1
+ @import "../style/global.scss";
2
+ @include keyframes(pushnext) {
3
+ 0% {
4
+ @include transform(rotate(45deg) translate3d(0, 0, 0));
5
+ }
6
+
7
+ 50% {
8
+ @include transform(rotate(45deg) translate3d(2px, -2px, 0));
9
+ }
10
+
11
+ 100% {
12
+ @include transform(rotate(45deg) translate3d(0, 0, 0));
13
+ }
14
+ }
15
+ @include keyframes(pushprev) {
16
+ 0% {
17
+ @include transform(rotate(-135deg) translate3d(0, 0, 0));
18
+ }
19
+
20
+ 50% {
21
+ @include transform(rotate(-135deg) translate3d(-2px, 2px, 0));
22
+ }
23
+
24
+ 100% {
25
+ @include transform(rotate(-135deg) translate3d(0, 0, 0));
26
+ }
27
+ }
28
+
29
+ :local(.button) {
30
+ @include appearance(none);
31
+ @include border-radius(0);
32
+ @include transition(
33
+ filter 300ms ease-out,
34
+ background-color 300ms ease-out,
35
+ color 300ms ease-out,
36
+ border-color 300ms ease-out
37
+ );
38
+ font-family: "Altis", sans-serif;
39
+ border-style: solid;
40
+ border-width: 1px;
41
+ $border-color: $color-primary;
42
+ cursor: pointer;
43
+ line-height: 1;
44
+ position: relative;
45
+ text-align: center;
46
+ text-decoration: none;
47
+ display: inline-block;
48
+ margin-right: 5px;
49
+ margin-bottom: 5px;
50
+ font-size: 17px;
51
+ font-weight: 500;
52
+ @media only screen and (min-width: $screen-sm) {
53
+ font-size: 20px;
54
+ }
55
+
56
+ &:local(.hasTheme) {
57
+ &:hover,
58
+ &:focus {
59
+ filter: brightness(90%);
60
+ }
61
+
62
+ &:active {
63
+ filter: brightness(85%);
64
+ }
65
+ }
66
+
67
+ &:local(.regular) {
68
+ padding: 14px 24px;
69
+ @media only screen and (min-width: $screen-sm) {
70
+ padding: 17px 32px;
71
+ }
72
+ }
73
+
74
+ &:local(.small) {
75
+ padding: 6px 24px;
76
+ min-width: 80px;
77
+ line-height: 18px;
78
+ @media only screen and (min-width: $screen-sm) {
79
+ line-height: 21px;
80
+ padding: 6px 32px;
81
+ }
82
+ }
83
+
84
+ &:local(.default) {
85
+ background-color: #fff;
86
+ color: $color-primary;
87
+ &:not(:local(.hasTheme)) {
88
+ &:hover:not(:local(.noHover)),
89
+ &:active {
90
+ background-color: $color-primary;
91
+ color: #fff;
92
+ &:after,
93
+ &:before {
94
+ border-color: #fff;
95
+ }
96
+ }
97
+ }
98
+ }
99
+
100
+ &:local(.primary) {
101
+ background-color: $color-primary;
102
+ color: #fff;
103
+ &:not(:local(.hasTheme)) {
104
+ &:hover:not(:local(.noHover)),
105
+ &:active {
106
+ background-color: #fff;
107
+ color: $color-primary;
108
+ &:after,
109
+ &:before {
110
+ border-color: $color-primary;
111
+ }
112
+ }
113
+ }
114
+ }
115
+
116
+ &:disabled {
117
+ &:local(.hasTheme),
118
+ &:not(:local(.hasTheme)) {
119
+ &:local(.default) {
120
+ background-color: #fff;
121
+ cursor: default;
122
+ opacity: 0.6;
123
+ color: #afaba8;
124
+ border: 1px solid #e5e3e1;
125
+ &:hover,
126
+ &:focus,
127
+ &:active {
128
+ background-color: #fff;
129
+ cursor: default;
130
+ opacity: 0.6;
131
+ color: #afaba8;
132
+ border: 1px solid #e5e3e1;
133
+ &:before,
134
+ &:after {
135
+ border-color: #afaba8;
136
+ }
137
+ }
138
+ &:before,
139
+ &:after {
140
+ border-color: #afaba8;
141
+ }
142
+ }
143
+ &:local(.primary) {
144
+ background-color: $color-primary;
145
+ cursor: default;
146
+ opacity: 0.6;
147
+ color: #fff;
148
+ border: 1px solid $color-primary;
149
+ &:hover,
150
+ &:focus,
151
+ &:active {
152
+ background-color: $color-primary;
153
+ cursor: default;
154
+ opacity: 0.6;
155
+ color: #fff;
156
+ border: 1px solid $color-primary;
157
+ &:before,
158
+ &:after {
159
+ border-color: $color-primary;
160
+ }
161
+ }
162
+ &:before,
163
+ &:after {
164
+ border-color: $color-primary;
165
+ }
166
+ }
167
+ }
168
+ }
169
+
170
+ &:local(.rounded) {
171
+ border-radius: 20px;
172
+ }
173
+
174
+ &:local(.hasArrowLeft) {
175
+ &:before {
176
+ @include transform(rotate(-135deg));
177
+ @include calc("top", "50% - 0.4rem");
178
+ content: " ";
179
+ display: inline-block;
180
+ position: absolute;
181
+ right: auto;
182
+ left: 0.55em;
183
+ width: 0.5rem;
184
+ height: 0.5rem;
185
+ vertical-align: middle;
186
+ border: 2px solid white;
187
+ border-width: 2px 2px 0 0;
188
+ margin-right: 1em;
189
+ @media only screen and (min-width: $screen-sm) {
190
+ left: 1em;
191
+ }
192
+ }
193
+
194
+ &:hover {
195
+ &:before {
196
+ @include animation(pushprev 0.8s linear infinite);
197
+ }
198
+ }
199
+ &:local(.default) {
200
+ &:before {
201
+ border-color: $color-primary;
202
+ }
203
+ }
204
+ }
205
+
206
+ &:local(.hasArrowRight) {
207
+ &:after {
208
+ @include transform(rotate(45deg));
209
+ @include calc("top", "50% - 0.4rem");
210
+ content: " ";
211
+ display: inline-block;
212
+ position: absolute;
213
+ left: auto;
214
+ right: 0.55em;
215
+ width: 0.5rem;
216
+ height: 0.5rem;
217
+ vertical-align: middle;
218
+ border: 2px solid white;
219
+ border-width: 2px 2px 0 0;
220
+ margin-left: 1em;
221
+ @media only screen and (min-width: $screen-sm) {
222
+ right: 1em;
223
+ }
224
+ }
225
+
226
+ &:hover {
227
+ &:after {
228
+ @include animation(pushnext 0.8s linear infinite);
229
+ }
230
+ }
231
+ }
232
+ }