@internetstiftelsen/styleguide 2.21.28 → 2.21.29
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/.DS_Store +0 -0
- package/dist/assets/js/validationMessage.js +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/assets/.DS_Store +0 -0
- package/src/assets/js/validationMessage.js +2 -2
- package/src/atoms/.DS_Store +0 -0
- package/src/atoms/button/_button.scss +35 -0
- package/src/atoms/button/button.config.js +14 -0
- package/src/atoms/icon/.DS_Store +0 -0
- package/src/molecules/.DS_Store +0 -0
package/dist/.DS_Store
ADDED
|
Binary file
|
package/package.json
CHANGED
package/src/.DS_Store
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -2,7 +2,7 @@ export default function validationMessage(message) {
|
|
|
2
2
|
const [rule, data] = message.split(':');
|
|
3
3
|
|
|
4
4
|
if (!('Iis_Lang' in window)) {
|
|
5
|
-
return
|
|
5
|
+
return rule;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
const { validation } = window.Iis_Lang;
|
|
@@ -11,5 +11,5 @@ export default function validationMessage(message) {
|
|
|
11
11
|
return validation[rule].replace(new RegExp(`:${rule}`, 'g'), data);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
return
|
|
14
|
+
return rule;
|
|
15
15
|
}
|
|
Binary file
|
|
@@ -246,6 +246,24 @@
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
+
@include m(sandstone) {
|
|
250
|
+
color: $color-sandstone;
|
|
251
|
+
|
|
252
|
+
&:hover,
|
|
253
|
+
&:focus {
|
|
254
|
+
color: $color-sandstone-light;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
@include e(text) {
|
|
258
|
+
color: $color-cyberspace;
|
|
259
|
+
text-shadow: 0 0 rhythm(0.5) $color-sandstone-light;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@include e(icon) {
|
|
263
|
+
fill: $color-cyberspace;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
249
267
|
@include m(ruby) {
|
|
250
268
|
color: $color-ruby;
|
|
251
269
|
|
|
@@ -299,6 +317,23 @@
|
|
|
299
317
|
}
|
|
300
318
|
}
|
|
301
319
|
|
|
320
|
+
@include m(jade) {
|
|
321
|
+
color: $color-jade;
|
|
322
|
+
|
|
323
|
+
&:hover,
|
|
324
|
+
&:focus {
|
|
325
|
+
color: $color-jade-light;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
@include e(text) {
|
|
329
|
+
color: $color-cyberspace;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
@include e(icon) {
|
|
333
|
+
fill: $color-cyberspace;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
302
337
|
@include m(jade-light) {
|
|
303
338
|
box-shadow: 0 0 0 1px inset $color-jade;
|
|
304
339
|
color: $color-jade-light;
|
|
@@ -33,6 +33,13 @@ module.exports = {
|
|
|
33
33
|
text: 'Ruby dark secondary button'
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
+
{
|
|
37
|
+
name: 'Jade',
|
|
38
|
+
context: {
|
|
39
|
+
modifiers: ['jade'],
|
|
40
|
+
text: 'Jade button'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
36
43
|
{
|
|
37
44
|
name: 'Jade light',
|
|
38
45
|
context: {
|
|
@@ -82,6 +89,13 @@ module.exports = {
|
|
|
82
89
|
text: 'Cyberspace button'
|
|
83
90
|
}
|
|
84
91
|
},
|
|
92
|
+
{
|
|
93
|
+
name: 'Sandstone',
|
|
94
|
+
context: {
|
|
95
|
+
modifiers: ['sandstone'],
|
|
96
|
+
text: 'Sandstone button'
|
|
97
|
+
}
|
|
98
|
+
},
|
|
85
99
|
{
|
|
86
100
|
name: 'Transparent',
|
|
87
101
|
context: {
|
|
Binary file
|
|
Binary file
|