@atlaskit/tokens 0.7.1 → 0.8.0

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 (58) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/css/atlassian-dark.css +3 -0
  3. package/css/atlassian-light.css +4 -1
  4. package/dist/cjs/artifacts/rename-mapping.js +89 -89
  5. package/dist/cjs/artifacts/token-default-values.js +4 -1
  6. package/dist/cjs/artifacts/token-names.js +3 -0
  7. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +267 -178
  8. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +269 -180
  9. package/dist/cjs/get-token.js +1 -1
  10. package/dist/cjs/tokens/atlassian-dark/color/skeleton.js +20 -0
  11. package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +23 -0
  12. package/dist/cjs/tokens/atlassian-light/color/skeleton.js +20 -0
  13. package/dist/cjs/tokens/atlassian-light/elevation/shadow.js +19 -0
  14. package/dist/cjs/tokens/atlassian-light/elevation/surface.js +1 -1
  15. package/dist/cjs/tokens/default/color/skeleton.js +28 -0
  16. package/dist/cjs/tokens/default/deprecated/deprecated.js +89 -89
  17. package/dist/cjs/tokens/default/elevation/shadow.js +7 -0
  18. package/dist/cjs/version.json +1 -1
  19. package/dist/es2019/artifacts/rename-mapping.js +89 -89
  20. package/dist/es2019/artifacts/token-default-values.js +4 -1
  21. package/dist/es2019/artifacts/token-names.js +3 -0
  22. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +267 -178
  23. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +269 -180
  24. package/dist/es2019/get-token.js +1 -1
  25. package/dist/es2019/tokens/atlassian-dark/color/skeleton.js +13 -0
  26. package/dist/es2019/tokens/atlassian-dark/elevation/shadow.js +23 -0
  27. package/dist/es2019/tokens/atlassian-light/color/skeleton.js +13 -0
  28. package/dist/es2019/tokens/atlassian-light/elevation/shadow.js +19 -0
  29. package/dist/es2019/tokens/atlassian-light/elevation/surface.js +1 -1
  30. package/dist/es2019/tokens/default/color/skeleton.js +21 -0
  31. package/dist/es2019/tokens/default/deprecated/deprecated.js +89 -89
  32. package/dist/es2019/tokens/default/elevation/shadow.js +7 -0
  33. package/dist/es2019/version.json +1 -1
  34. package/dist/esm/artifacts/rename-mapping.js +89 -89
  35. package/dist/esm/artifacts/token-default-values.js +4 -1
  36. package/dist/esm/artifacts/token-names.js +3 -0
  37. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +267 -178
  38. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +269 -180
  39. package/dist/esm/get-token.js +1 -1
  40. package/dist/esm/tokens/atlassian-dark/color/skeleton.js +13 -0
  41. package/dist/esm/tokens/atlassian-dark/elevation/shadow.js +23 -0
  42. package/dist/esm/tokens/atlassian-light/color/skeleton.js +13 -0
  43. package/dist/esm/tokens/atlassian-light/elevation/shadow.js +19 -0
  44. package/dist/esm/tokens/atlassian-light/elevation/surface.js +1 -1
  45. package/dist/esm/tokens/default/color/skeleton.js +21 -0
  46. package/dist/esm/tokens/default/deprecated/deprecated.js +89 -89
  47. package/dist/esm/tokens/default/elevation/shadow.js +7 -0
  48. package/dist/esm/version.json +1 -1
  49. package/dist/types/artifacts/token-default-values.d.ts +4 -1
  50. package/dist/types/artifacts/token-names.d.ts +6 -0
  51. package/dist/types/artifacts/types-internal.d.ts +1 -1
  52. package/dist/types/artifacts/types.d.ts +1 -1
  53. package/dist/types/tokens/atlassian-dark/color/skeleton.d.ts +3 -0
  54. package/dist/types/tokens/atlassian-light/color/skeleton.d.ts +3 -0
  55. package/dist/types/tokens/default/color/skeleton.d.ts +3 -0
  56. package/dist/types/tokens/default/utility/utility.d.ts +10 -10
  57. package/dist/types/types.d.ts +9 -0
  58. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  const name = "@atlaskit/tokens";
4
- const version = "0.7.1";
4
+ const version = "0.8.0";
5
5
 
6
6
  function token(path, fallback) {
7
7
  let token = tokens[path];
@@ -0,0 +1,13 @@
1
+ const color = {
2
+ color: {
3
+ skeleton: {
4
+ '[default]': {
5
+ value: 'DN200A'
6
+ },
7
+ subtle: {
8
+ value: 'DN100A'
9
+ }
10
+ }
11
+ }
12
+ };
13
+ export default color;
@@ -22,6 +22,29 @@ const shadow = {
22
22
  opacity: 0.5
23
23
  }]
24
24
  },
25
+ overflow: {
26
+ value: [{
27
+ radius: 12,
28
+ offset: {
29
+ x: 0,
30
+ y: 0
31
+ },
32
+ // @ts-ignore no current palette colour for this yet
33
+ color: '#030404',
34
+ // This opacity overrides the color alpha.
35
+ opacity: 0.56
36
+ }, {
37
+ radius: 1,
38
+ offset: {
39
+ x: 0,
40
+ y: 0
41
+ },
42
+ // @ts-ignore no current palette colour for this yet
43
+ color: '#030404',
44
+ // This opacity overrides the color alpha.
45
+ opacity: 0.5
46
+ }]
47
+ },
25
48
  overlay: {
26
49
  value: [{
27
50
  radius: 0,
@@ -0,0 +1,13 @@
1
+ const color = {
2
+ color: {
3
+ skeleton: {
4
+ '[default]': {
5
+ value: 'N200A'
6
+ },
7
+ subtle: {
8
+ value: 'N100A'
9
+ }
10
+ }
11
+ }
12
+ };
13
+ export default color;
@@ -20,6 +20,25 @@ const shadow = {
20
20
  opacity: 0.31
21
21
  }]
22
22
  },
23
+ overflow: {
24
+ value: [{
25
+ radius: 8,
26
+ offset: {
27
+ x: 0,
28
+ y: 8
29
+ },
30
+ color: 'N1100',
31
+ opacity: 0.08
32
+ }, {
33
+ radius: 1,
34
+ offset: {
35
+ x: 0,
36
+ y: 0
37
+ },
38
+ color: 'N1100',
39
+ opacity: 0.12
40
+ }]
41
+ },
23
42
  overlay: {
24
43
  value: [{
25
44
  radius: 12,
@@ -5,7 +5,7 @@ const elevation = {
5
5
  value: 'N0'
6
6
  },
7
7
  sunken: {
8
- value: 'N100A'
8
+ value: 'N100'
9
9
  },
10
10
  raised: {
11
11
  value: 'N0'
@@ -0,0 +1,21 @@
1
+ const color = {
2
+ color: {
3
+ skeleton: {
4
+ '[default]': {
5
+ attributes: {
6
+ group: 'paint',
7
+ state: 'active',
8
+ description: 'Use for skeleton loading states'
9
+ }
10
+ },
11
+ subtle: {
12
+ attributes: {
13
+ group: 'paint',
14
+ state: 'active',
15
+ description: 'Use for the pulse or shimmer effect in skeleton loading states'
16
+ }
17
+ }
18
+ }
19
+ }
20
+ };
21
+ export default color;