@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 ADDED
Binary file
@@ -24,5 +24,5 @@ function validationMessage(message) {
24
24
  return validation[rule].replace(new RegExp(':' + rule, 'g'), data);
25
25
  }
26
26
 
27
- return message;
27
+ return rule;
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetstiftelsen/styleguide",
3
- "version": "2.21.28",
3
+ "version": "2.21.29",
4
4
  "main": "dist/components.js",
5
5
  "ports": {
6
6
  "fractal": "3000"
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 message;
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 message;
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