@atlaskit/tokens 0.8.3 → 0.9.2

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 (72) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/babel-plugin/package.json +3 -0
  3. package/css/atlassian-dark.css +1 -0
  4. package/css/atlassian-light.css +1 -0
  5. package/dist/cjs/artifacts/palettes-raw.js +1983 -0
  6. package/dist/cjs/artifacts/token-default-values.js +1 -0
  7. package/dist/cjs/artifacts/token-names.js +1 -0
  8. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +395 -0
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +395 -0
  10. package/dist/cjs/entry-points/palettes-raw.js +15 -0
  11. package/dist/cjs/entry-points/token-ids.js +1 -1
  12. package/dist/cjs/get-token.js +1 -1
  13. package/dist/cjs/tokens/atlassian-dark/color/border.js +3 -0
  14. package/dist/cjs/tokens/atlassian-light/color/border.js +3 -0
  15. package/dist/cjs/tokens/default/color/border.js +8 -0
  16. package/dist/cjs/tokens/default/deprecated/deprecated.js +187 -0
  17. package/dist/cjs/tokens/palette.js +232 -116
  18. package/dist/cjs/utils/color-detection.js +129 -0
  19. package/dist/cjs/{token-ids.js → utils/token-ids.js} +1 -1
  20. package/dist/cjs/version.json +1 -1
  21. package/dist/es2019/artifacts/palettes-raw.js +1976 -0
  22. package/dist/es2019/artifacts/token-default-values.js +1 -0
  23. package/dist/es2019/artifacts/token-names.js +1 -0
  24. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +395 -0
  25. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +395 -0
  26. package/dist/es2019/entry-points/palettes-raw.js +1 -0
  27. package/dist/es2019/entry-points/token-ids.js +1 -1
  28. package/dist/es2019/get-token.js +1 -1
  29. package/dist/es2019/tokens/atlassian-dark/color/border.js +3 -0
  30. package/dist/es2019/tokens/atlassian-light/color/border.js +3 -0
  31. package/dist/es2019/tokens/default/color/border.js +8 -0
  32. package/dist/es2019/tokens/default/deprecated/deprecated.js +187 -0
  33. package/dist/es2019/tokens/palette.js +232 -116
  34. package/dist/es2019/utils/color-detection.js +101 -0
  35. package/dist/es2019/{token-ids.js → utils/token-ids.js} +1 -1
  36. package/dist/es2019/version.json +1 -1
  37. package/dist/esm/artifacts/palettes-raw.js +1976 -0
  38. package/dist/esm/artifacts/token-default-values.js +1 -0
  39. package/dist/esm/artifacts/token-names.js +1 -0
  40. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +395 -0
  41. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +395 -0
  42. package/dist/esm/entry-points/palettes-raw.js +1 -0
  43. package/dist/esm/entry-points/token-ids.js +1 -1
  44. package/dist/esm/get-token.js +1 -1
  45. package/dist/esm/tokens/atlassian-dark/color/border.js +3 -0
  46. package/dist/esm/tokens/atlassian-light/color/border.js +3 -0
  47. package/dist/esm/tokens/default/color/border.js +8 -0
  48. package/dist/esm/tokens/default/deprecated/deprecated.js +187 -0
  49. package/dist/esm/tokens/palette.js +232 -116
  50. package/dist/esm/utils/color-detection.js +104 -0
  51. package/dist/esm/{token-ids.js → utils/token-ids.js} +1 -1
  52. package/dist/esm/version.json +1 -1
  53. package/dist/types/artifacts/palettes-raw.d.ts +19 -0
  54. package/dist/types/artifacts/token-default-values.d.ts +1 -0
  55. package/dist/types/artifacts/token-names.d.ts +2 -0
  56. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +43 -0
  57. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +43 -0
  58. package/dist/types/artifacts/types-internal.d.ts +1 -1
  59. package/dist/types/artifacts/types.d.ts +1 -1
  60. package/dist/types/entry-points/palettes-raw.d.ts +1 -0
  61. package/dist/types/entry-points/token-ids.d.ts +1 -1
  62. package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +2 -10
  63. package/dist/types/tokens/atlassian-light/utility/utility.d.ts +2 -10
  64. package/dist/types/tokens/default/utility/utility.d.ts +2 -142
  65. package/dist/types/types.d.ts +23 -7
  66. package/dist/types/utils/color-detection.d.ts +38 -0
  67. package/dist/types/{token-ids.d.ts → utils/token-ids.d.ts} +0 -0
  68. package/package.json +18 -4
  69. package/palettes-raw/package.json +10 -0
  70. package/rename-mapping/package.json +3 -0
  71. package/token-ids/package.json +3 -0
  72. package/token-names/package.json +3 -0
@@ -0,0 +1,104 @@
1
+ import { token } from '../index';
2
+ export var hexToRGBAValues = function hexToRGBAValues(hex) {
3
+ var hexColor = hex.replace('#', '');
4
+ return {
5
+ r: parseInt(hexColor.slice(0, 2), 16),
6
+ g: parseInt(hexColor.slice(2, 4), 16),
7
+ b: parseInt(hexColor.slice(4, 6), 16),
8
+ a: parseFloat((parseInt(hexColor.slice(6, 8), 16) / 255).toFixed(2))
9
+ };
10
+ };
11
+ export var hexToRGBA = function hexToRGBA(hex) {
12
+ var _hexToRGBAValues = hexToRGBAValues(hex),
13
+ r = _hexToRGBAValues.r,
14
+ g = _hexToRGBAValues.g,
15
+ b = _hexToRGBAValues.b,
16
+ a = _hexToRGBAValues.a;
17
+
18
+ return "rgb".concat(a ? 'a' : '', "(").concat(r, ",").concat(g, ",").concat(b).concat(a ? ",".concat(a) : '', ")");
19
+ };
20
+ export var getLuminance = function getLuminance(_ref) {
21
+ var r = _ref.r,
22
+ g = _ref.g,
23
+ b = _ref.b;
24
+ return (r * 299 + g * 587 + b * 114) / 1000;
25
+ };
26
+ /**
27
+ * Returns an accessible hard-coded text color based on the color contrast with
28
+ * the background.
29
+ *
30
+ * @param hex - The Hex color code of the background
31
+ * @param [opts.hardcodedSurface] - If set, a design token will be returned instead
32
+ * of a hard-coded color. This is to support more transparent backgrounds
33
+ * to allow the text to invert colors depending on the current theme's surface color.
34
+ */
35
+
36
+ export var getTextColorForBackground = function getTextColorForBackground(hex, opts) {
37
+ var _hexToRGBAValues2 = hexToRGBAValues(hex),
38
+ r = _hexToRGBAValues2.r,
39
+ g = _hexToRGBAValues2.g,
40
+ b = _hexToRGBAValues2.b,
41
+ a = _hexToRGBAValues2.a;
42
+
43
+ var lum = getLuminance({
44
+ r: r,
45
+ g: g,
46
+ b: b
47
+ });
48
+ var alphaLimit = 0.42;
49
+ var alphaConditionsPerSurface = {
50
+ light: a < alphaLimit,
51
+ dark: a > alphaLimit
52
+ };
53
+ var alphaLimitExceeded = (opts === null || opts === void 0 ? void 0 : opts.hardcodedSurface) && alphaConditionsPerSurface[opts.hardcodedSurface];
54
+
55
+ if (!(opts !== null && opts !== void 0 && opts.hardcodedSurface) && a < alphaLimit) {
56
+ // This color is transparent, so the text will mainly cast onto the surface behind.
57
+ // Needs to use tokens otherwise Dark mode would cause black text on black surface
58
+ return token('color.text', 'black');
59
+ }
60
+
61
+ return lum > 150 && !a || a && alphaLimitExceeded ? 'black' : 'white';
62
+ };
63
+ /**
64
+ * Returns a border if determined to be required based on the color contrast with
65
+ * the background.
66
+ *
67
+ * @param hex - The Hex color code of the background
68
+ */
69
+
70
+ export var getBorderForBackground = function getBorderForBackground(hex) {
71
+ var _hexToRGBAValues3 = hexToRGBAValues(hex),
72
+ r = _hexToRGBAValues3.r,
73
+ g = _hexToRGBAValues3.g,
74
+ b = _hexToRGBAValues3.b,
75
+ a = _hexToRGBAValues3.a;
76
+
77
+ var lum = getLuminance({
78
+ r: r,
79
+ g: g,
80
+ b: b
81
+ });
82
+ return lum > 240 || a < 0.2 ? "1px solid ".concat(token('color.border', '#091E4224')) : undefined;
83
+ };
84
+ /**
85
+ * Returns a box shadow formatted for CSS from a ShadowToken raw value.
86
+ *
87
+ * @param rawShadow - ShadowToken raw value
88
+ */
89
+
90
+ export var getBoxShadow = function getBoxShadow(rawShadow) {
91
+ return rawShadow.map(function (_ref2) {
92
+ var radius = _ref2.radius,
93
+ offset = _ref2.offset,
94
+ color = _ref2.color,
95
+ opacity = _ref2.opacity;
96
+
97
+ var _hexToRGBAValues4 = hexToRGBAValues(color),
98
+ r = _hexToRGBAValues4.r,
99
+ g = _hexToRGBAValues4.g,
100
+ b = _hexToRGBAValues4.b;
101
+
102
+ return "".concat(offset.x, "px ").concat(offset.y, "px ").concat(radius, "px rgba(").concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(opacity, ")");
103
+ }).join(',');
104
+ };
@@ -1,5 +1,5 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import { CSS_PREFIX } from './constants';
2
+ import { CSS_PREFIX } from '../constants';
3
3
  /**
4
4
  * Transforms a style dictionary token path to a CSS custom property.
5
5
  *
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "0.8.3",
3
+ "version": "0.9.2",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
@@ -0,0 +1,19 @@
1
+ declare const tokens: {
2
+ value: string;
3
+ attributes: {
4
+ group: string;
5
+ category: string;
6
+ };
7
+ filePath: string;
8
+ isSource: boolean;
9
+ original: {
10
+ value: string;
11
+ attributes: {
12
+ group: string;
13
+ category: string;
14
+ };
15
+ };
16
+ name: string;
17
+ path: string[];
18
+ }[];
19
+ export default tokens;
@@ -67,6 +67,7 @@ declare const defaultTokenValues: {
67
67
  readonly 'color.border.accent.teal': "#1D9AAA";
68
68
  readonly 'color.border.accent.magenta': "#CD519D";
69
69
  readonly 'color.border': "#091E4224";
70
+ readonly 'color.border.inverse': "#FFFFFF";
70
71
  readonly 'color.border.focused': "#388BFF";
71
72
  readonly 'color.border.input': "#091E4224";
72
73
  readonly 'color.border.disabled': "#091E420F";
@@ -64,6 +64,7 @@ declare const tokens: {
64
64
  readonly 'color.border.accent.teal': "--ds-border-accent-teal";
65
65
  readonly 'color.border.accent.magenta': "--ds-border-accent-magenta";
66
66
  readonly 'color.border': "--ds-border";
67
+ readonly 'color.border.inverse': "--ds-border-inverse";
67
68
  readonly 'color.border.focused': "--ds-border-focused";
68
69
  readonly 'color.border.input': "--ds-border-input";
69
70
  readonly 'color.border.disabled': "--ds-border-disabled";
@@ -339,6 +340,7 @@ export declare type CSSTokenMap = {
339
340
  'color.border.accent.teal': 'var(--ds-border-accent-teal)';
340
341
  'color.border.accent.magenta': 'var(--ds-border-accent-magenta)';
341
342
  'color.border': 'var(--ds-border)';
343
+ 'color.border.inverse': 'var(--ds-border-inverse)';
342
344
  'color.border.focused': 'var(--ds-border-focused)';
343
345
  'color.border.input': 'var(--ds-border-input)';
344
346
  'color.border.disabled': 'var(--ds-border-disabled)';
@@ -4,6 +4,8 @@ declare const tokens: ({
4
4
  state: string;
5
5
  introduced: string;
6
6
  description: string;
7
+ deprecated?: undefined;
8
+ deleted?: undefined;
7
9
  replacement?: undefined;
8
10
  };
9
11
  value: string;
@@ -15,6 +17,8 @@ declare const tokens: ({
15
17
  state: string;
16
18
  introduced: string;
17
19
  description: string;
20
+ deprecated?: undefined;
21
+ deleted?: undefined;
18
22
  replacement?: undefined;
19
23
  };
20
24
  value: string;
@@ -26,6 +30,8 @@ declare const tokens: ({
26
30
  group: string;
27
31
  state: string;
28
32
  introduced: string;
33
+ deprecated: string;
34
+ deleted: string;
29
35
  replacement: string;
30
36
  description: string;
31
37
  };
@@ -37,6 +43,8 @@ declare const tokens: ({
37
43
  group: string;
38
44
  state: string;
39
45
  introduced: string;
46
+ deprecated: string;
47
+ deleted: string;
40
48
  replacement: string;
41
49
  description: string;
42
50
  };
@@ -49,6 +57,35 @@ declare const tokens: ({
49
57
  group: string;
50
58
  state: string;
51
59
  introduced: string;
60
+ deprecated: string;
61
+ replacement: string;
62
+ description: string;
63
+ deleted?: undefined;
64
+ };
65
+ value: string;
66
+ filePath: string;
67
+ isSource: boolean;
68
+ original: {
69
+ attributes: {
70
+ group: string;
71
+ state: string;
72
+ introduced: string;
73
+ deprecated: string;
74
+ replacement: string;
75
+ description: string;
76
+ deleted?: undefined;
77
+ };
78
+ value: string;
79
+ };
80
+ name: string;
81
+ path: string[];
82
+ } | {
83
+ attributes: {
84
+ group: string;
85
+ state: string;
86
+ introduced: string;
87
+ deprecated: string;
88
+ deleted: string;
52
89
  replacement: string;
53
90
  description: string;
54
91
  };
@@ -80,6 +117,8 @@ declare const tokens: ({
80
117
  group: string;
81
118
  state: string;
82
119
  introduced: string;
120
+ deprecated: string;
121
+ deleted: string;
83
122
  replacement: string;
84
123
  description: string;
85
124
  };
@@ -113,6 +152,8 @@ declare const tokens: ({
113
152
  state: string;
114
153
  introduced: string;
115
154
  description: string;
155
+ deprecated?: undefined;
156
+ deleted?: undefined;
116
157
  replacement?: undefined;
117
158
  };
118
159
  value: ({
@@ -144,6 +185,8 @@ declare const tokens: ({
144
185
  state: string;
145
186
  introduced: string;
146
187
  description: string;
188
+ deprecated?: undefined;
189
+ deleted?: undefined;
147
190
  replacement?: undefined;
148
191
  };
149
192
  value: ({
@@ -4,6 +4,8 @@ declare const tokens: ({
4
4
  state: string;
5
5
  introduced: string;
6
6
  description: string;
7
+ deprecated?: undefined;
8
+ deleted?: undefined;
7
9
  replacement?: undefined;
8
10
  };
9
11
  value: string;
@@ -15,6 +17,8 @@ declare const tokens: ({
15
17
  state: string;
16
18
  introduced: string;
17
19
  description: string;
20
+ deprecated?: undefined;
21
+ deleted?: undefined;
18
22
  replacement?: undefined;
19
23
  };
20
24
  value: string;
@@ -26,6 +30,8 @@ declare const tokens: ({
26
30
  group: string;
27
31
  state: string;
28
32
  introduced: string;
33
+ deprecated: string;
34
+ deleted: string;
29
35
  replacement: string;
30
36
  description: string;
31
37
  };
@@ -37,6 +43,8 @@ declare const tokens: ({
37
43
  group: string;
38
44
  state: string;
39
45
  introduced: string;
46
+ deprecated: string;
47
+ deleted: string;
40
48
  replacement: string;
41
49
  description: string;
42
50
  };
@@ -49,6 +57,35 @@ declare const tokens: ({
49
57
  group: string;
50
58
  state: string;
51
59
  introduced: string;
60
+ deprecated: string;
61
+ replacement: string;
62
+ description: string;
63
+ deleted?: undefined;
64
+ };
65
+ value: string;
66
+ filePath: string;
67
+ isSource: boolean;
68
+ original: {
69
+ attributes: {
70
+ group: string;
71
+ state: string;
72
+ introduced: string;
73
+ deprecated: string;
74
+ replacement: string;
75
+ description: string;
76
+ deleted?: undefined;
77
+ };
78
+ value: string;
79
+ };
80
+ name: string;
81
+ path: string[];
82
+ } | {
83
+ attributes: {
84
+ group: string;
85
+ state: string;
86
+ introduced: string;
87
+ deprecated: string;
88
+ deleted: string;
52
89
  replacement: string;
53
90
  description: string;
54
91
  };
@@ -68,6 +105,8 @@ declare const tokens: ({
68
105
  group: string;
69
106
  state: string;
70
107
  introduced: string;
108
+ deprecated: string;
109
+ deleted: string;
71
110
  replacement: string;
72
111
  description: string;
73
112
  };
@@ -89,6 +128,8 @@ declare const tokens: ({
89
128
  state: string;
90
129
  introduced: string;
91
130
  description: string;
131
+ deprecated?: undefined;
132
+ deleted?: undefined;
92
133
  replacement?: undefined;
93
134
  };
94
135
  value: {
@@ -108,6 +149,8 @@ declare const tokens: ({
108
149
  state: string;
109
150
  introduced: string;
110
151
  description: string;
152
+ deprecated?: undefined;
153
+ deleted?: undefined;
111
154
  replacement?: undefined;
112
155
  };
113
156
  value: {
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Internally types used for handling token ids
3
3
  */
4
- export declare type InternalTokenIds = 'color.text.accent.blue.[default]' | 'color.text.accent.blue.bolder' | 'color.text.accent.red.[default]' | 'color.text.accent.red.bolder' | 'color.text.accent.orange.[default]' | 'color.text.accent.orange.bolder' | 'color.text.accent.yellow.[default]' | 'color.text.accent.yellow.bolder' | 'color.text.accent.green.[default]' | 'color.text.accent.green.bolder' | 'color.text.accent.purple.[default]' | 'color.text.accent.purple.bolder' | 'color.text.accent.teal.[default]' | 'color.text.accent.teal.bolder' | 'color.text.accent.magenta.[default]' | 'color.text.accent.magenta.bolder' | 'color.text.[default]' | 'color.text.subtle' | 'color.text.subtlest' | 'color.text.disabled' | 'color.text.inverse' | 'color.text.brand' | 'color.text.selected' | 'color.text.danger' | 'color.text.warning.[default]' | 'color.text.warning.inverse' | 'color.text.success' | 'color.text.discovery' | 'color.text.information' | 'color.icon.accent.blue' | 'color.icon.accent.red' | 'color.icon.accent.orange' | 'color.icon.accent.yellow' | 'color.icon.accent.green' | 'color.icon.accent.purple' | 'color.icon.accent.teal' | 'color.icon.accent.magenta' | 'color.icon.[default]' | 'color.icon.subtle' | 'color.icon.inverse' | 'color.icon.disabled' | 'color.icon.brand' | 'color.icon.selected' | 'color.icon.danger' | 'color.icon.warning.[default]' | 'color.icon.warning.inverse' | 'color.icon.success' | 'color.icon.discovery' | 'color.icon.information' | 'color.border.accent.blue' | 'color.border.accent.red' | 'color.border.accent.orange' | 'color.border.accent.yellow' | 'color.border.accent.green' | 'color.border.accent.purple' | 'color.border.accent.teal' | 'color.border.accent.magenta' | 'color.border.[default]' | 'color.border.focused' | 'color.border.input' | 'color.border.disabled' | 'color.border.brand' | 'color.border.selected' | 'color.border.danger' | 'color.border.warning' | 'color.border.success' | 'color.border.discovery' | 'color.border.information' | 'color.background.accent.blue.subtlest' | 'color.background.accent.blue.subtler' | 'color.background.accent.blue.subtle' | 'color.background.accent.blue.bolder' | 'color.background.accent.red.subtlest' | 'color.background.accent.red.subtler' | 'color.background.accent.red.subtle' | 'color.background.accent.red.bolder' | 'color.background.accent.orange.subtlest' | 'color.background.accent.orange.subtler' | 'color.background.accent.orange.subtle' | 'color.background.accent.orange.bolder' | 'color.background.accent.yellow.subtlest' | 'color.background.accent.yellow.subtler' | 'color.background.accent.yellow.subtle' | 'color.background.accent.yellow.bolder' | 'color.background.accent.green.subtlest' | 'color.background.accent.green.subtler' | 'color.background.accent.green.subtle' | 'color.background.accent.green.bolder' | 'color.background.accent.teal.subtlest' | 'color.background.accent.teal.subtler' | 'color.background.accent.teal.subtle' | 'color.background.accent.teal.bolder' | 'color.background.accent.purple.subtlest' | 'color.background.accent.purple.subtler' | 'color.background.accent.purple.subtle' | 'color.background.accent.purple.bolder' | 'color.background.accent.magenta.subtlest' | 'color.background.accent.magenta.subtler' | 'color.background.accent.magenta.subtle' | 'color.background.accent.magenta.bolder' | 'color.background.disabled' | 'color.background.inverse.subtle.[default]' | 'color.background.inverse.subtle.hovered' | 'color.background.inverse.subtle.pressed' | 'color.background.input.[default]' | 'color.background.input.hovered' | 'color.background.input.pressed' | 'color.background.neutral.[default].[default]' | 'color.background.neutral.[default].hovered' | 'color.background.neutral.[default].pressed' | 'color.background.neutral.subtle.[default]' | 'color.background.neutral.subtle.hovered' | 'color.background.neutral.subtle.pressed' | 'color.background.neutral.bold.[default]' | 'color.background.neutral.bold.hovered' | 'color.background.neutral.bold.pressed' | 'color.background.brand.bold.[default]' | 'color.background.brand.bold.hovered' | 'color.background.brand.bold.pressed' | 'color.background.selected.[default].[default]' | 'color.background.selected.[default].hovered' | 'color.background.selected.[default].pressed' | 'color.background.selected.bold.[default]' | 'color.background.selected.bold.hovered' | 'color.background.selected.bold.pressed' | 'color.background.danger.[default].[default]' | 'color.background.danger.[default].hovered' | 'color.background.danger.[default].pressed' | 'color.background.danger.bold.[default]' | 'color.background.danger.bold.hovered' | 'color.background.danger.bold.pressed' | 'color.background.warning.[default].[default]' | 'color.background.warning.[default].hovered' | 'color.background.warning.[default].pressed' | 'color.background.warning.bold.[default]' | 'color.background.warning.bold.hovered' | 'color.background.warning.bold.pressed' | 'color.background.success.[default].[default]' | 'color.background.success.[default].hovered' | 'color.background.success.[default].pressed' | 'color.background.success.bold.[default]' | 'color.background.success.bold.hovered' | 'color.background.success.bold.pressed' | 'color.background.discovery.[default].[default]' | 'color.background.discovery.[default].hovered' | 'color.background.discovery.[default].pressed' | 'color.background.discovery.bold.[default]' | 'color.background.discovery.bold.hovered' | 'color.background.discovery.bold.pressed' | 'color.background.information.[default].[default]' | 'color.background.information.[default].hovered' | 'color.background.information.[default].pressed' | 'color.background.information.bold.[default]' | 'color.background.information.bold.hovered' | 'color.background.information.bold.pressed' | 'color.blanket.[default]' | 'color.blanket.selected' | 'color.blanket.danger' | 'color.interaction.hovered' | 'color.interaction.pressed' | 'color.interaction.inverse.hovered' | 'color.interaction.inverse.pressed' | 'color.skeleton.[default]' | 'color.skeleton.subtle' | 'color.link.[default]' | 'color.link.pressed' | 'elevation.shadow.raised' | 'elevation.shadow.overflow' | 'elevation.shadow.overlay' | 'elevation.surface.[default]' | 'elevation.surface.sunken' | 'elevation.surface.raised' | 'elevation.surface.overlay' | 'utility.UNSAFE_util.transparent' | 'utility.UNSAFE_util.MISSING_TOKEN';
4
+ export declare type InternalTokenIds = 'color.text.accent.blue.[default]' | 'color.text.accent.blue.bolder' | 'color.text.accent.red.[default]' | 'color.text.accent.red.bolder' | 'color.text.accent.orange.[default]' | 'color.text.accent.orange.bolder' | 'color.text.accent.yellow.[default]' | 'color.text.accent.yellow.bolder' | 'color.text.accent.green.[default]' | 'color.text.accent.green.bolder' | 'color.text.accent.purple.[default]' | 'color.text.accent.purple.bolder' | 'color.text.accent.teal.[default]' | 'color.text.accent.teal.bolder' | 'color.text.accent.magenta.[default]' | 'color.text.accent.magenta.bolder' | 'color.text.[default]' | 'color.text.subtle' | 'color.text.subtlest' | 'color.text.disabled' | 'color.text.inverse' | 'color.text.brand' | 'color.text.selected' | 'color.text.danger' | 'color.text.warning.[default]' | 'color.text.warning.inverse' | 'color.text.success' | 'color.text.discovery' | 'color.text.information' | 'color.icon.accent.blue' | 'color.icon.accent.red' | 'color.icon.accent.orange' | 'color.icon.accent.yellow' | 'color.icon.accent.green' | 'color.icon.accent.purple' | 'color.icon.accent.teal' | 'color.icon.accent.magenta' | 'color.icon.[default]' | 'color.icon.subtle' | 'color.icon.inverse' | 'color.icon.disabled' | 'color.icon.brand' | 'color.icon.selected' | 'color.icon.danger' | 'color.icon.warning.[default]' | 'color.icon.warning.inverse' | 'color.icon.success' | 'color.icon.discovery' | 'color.icon.information' | 'color.border.accent.blue' | 'color.border.accent.red' | 'color.border.accent.orange' | 'color.border.accent.yellow' | 'color.border.accent.green' | 'color.border.accent.purple' | 'color.border.accent.teal' | 'color.border.accent.magenta' | 'color.border.[default]' | 'color.border.inverse' | 'color.border.focused' | 'color.border.input' | 'color.border.disabled' | 'color.border.brand' | 'color.border.selected' | 'color.border.danger' | 'color.border.warning' | 'color.border.success' | 'color.border.discovery' | 'color.border.information' | 'color.background.accent.blue.subtlest' | 'color.background.accent.blue.subtler' | 'color.background.accent.blue.subtle' | 'color.background.accent.blue.bolder' | 'color.background.accent.red.subtlest' | 'color.background.accent.red.subtler' | 'color.background.accent.red.subtle' | 'color.background.accent.red.bolder' | 'color.background.accent.orange.subtlest' | 'color.background.accent.orange.subtler' | 'color.background.accent.orange.subtle' | 'color.background.accent.orange.bolder' | 'color.background.accent.yellow.subtlest' | 'color.background.accent.yellow.subtler' | 'color.background.accent.yellow.subtle' | 'color.background.accent.yellow.bolder' | 'color.background.accent.green.subtlest' | 'color.background.accent.green.subtler' | 'color.background.accent.green.subtle' | 'color.background.accent.green.bolder' | 'color.background.accent.teal.subtlest' | 'color.background.accent.teal.subtler' | 'color.background.accent.teal.subtle' | 'color.background.accent.teal.bolder' | 'color.background.accent.purple.subtlest' | 'color.background.accent.purple.subtler' | 'color.background.accent.purple.subtle' | 'color.background.accent.purple.bolder' | 'color.background.accent.magenta.subtlest' | 'color.background.accent.magenta.subtler' | 'color.background.accent.magenta.subtle' | 'color.background.accent.magenta.bolder' | 'color.background.disabled' | 'color.background.inverse.subtle.[default]' | 'color.background.inverse.subtle.hovered' | 'color.background.inverse.subtle.pressed' | 'color.background.input.[default]' | 'color.background.input.hovered' | 'color.background.input.pressed' | 'color.background.neutral.[default].[default]' | 'color.background.neutral.[default].hovered' | 'color.background.neutral.[default].pressed' | 'color.background.neutral.subtle.[default]' | 'color.background.neutral.subtle.hovered' | 'color.background.neutral.subtle.pressed' | 'color.background.neutral.bold.[default]' | 'color.background.neutral.bold.hovered' | 'color.background.neutral.bold.pressed' | 'color.background.brand.bold.[default]' | 'color.background.brand.bold.hovered' | 'color.background.brand.bold.pressed' | 'color.background.selected.[default].[default]' | 'color.background.selected.[default].hovered' | 'color.background.selected.[default].pressed' | 'color.background.selected.bold.[default]' | 'color.background.selected.bold.hovered' | 'color.background.selected.bold.pressed' | 'color.background.danger.[default].[default]' | 'color.background.danger.[default].hovered' | 'color.background.danger.[default].pressed' | 'color.background.danger.bold.[default]' | 'color.background.danger.bold.hovered' | 'color.background.danger.bold.pressed' | 'color.background.warning.[default].[default]' | 'color.background.warning.[default].hovered' | 'color.background.warning.[default].pressed' | 'color.background.warning.bold.[default]' | 'color.background.warning.bold.hovered' | 'color.background.warning.bold.pressed' | 'color.background.success.[default].[default]' | 'color.background.success.[default].hovered' | 'color.background.success.[default].pressed' | 'color.background.success.bold.[default]' | 'color.background.success.bold.hovered' | 'color.background.success.bold.pressed' | 'color.background.discovery.[default].[default]' | 'color.background.discovery.[default].hovered' | 'color.background.discovery.[default].pressed' | 'color.background.discovery.bold.[default]' | 'color.background.discovery.bold.hovered' | 'color.background.discovery.bold.pressed' | 'color.background.information.[default].[default]' | 'color.background.information.[default].hovered' | 'color.background.information.[default].pressed' | 'color.background.information.bold.[default]' | 'color.background.information.bold.hovered' | 'color.background.information.bold.pressed' | 'color.blanket.[default]' | 'color.blanket.selected' | 'color.blanket.danger' | 'color.interaction.hovered' | 'color.interaction.pressed' | 'color.interaction.inverse.hovered' | 'color.interaction.inverse.pressed' | 'color.skeleton.[default]' | 'color.skeleton.subtle' | 'color.link.[default]' | 'color.link.pressed' | 'elevation.shadow.raised' | 'elevation.shadow.overflow' | 'elevation.shadow.overlay' | 'elevation.surface.[default]' | 'elevation.surface.sunken' | 'elevation.surface.raised' | 'elevation.surface.overlay' | 'utility.UNSAFE_util.transparent' | 'utility.UNSAFE_util.MISSING_TOKEN';
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Type representing the currently active tokens
3
3
  */
4
- export declare type ActiveTokens = 'color.text.accent.blue' | 'color.text.accent.blue.bolder' | 'color.text.accent.red' | 'color.text.accent.red.bolder' | 'color.text.accent.orange' | 'color.text.accent.orange.bolder' | 'color.text.accent.yellow' | 'color.text.accent.yellow.bolder' | 'color.text.accent.green' | 'color.text.accent.green.bolder' | 'color.text.accent.purple' | 'color.text.accent.purple.bolder' | 'color.text.accent.teal' | 'color.text.accent.teal.bolder' | 'color.text.accent.magenta' | 'color.text.accent.magenta.bolder' | 'color.text' | 'color.text.subtle' | 'color.text.subtlest' | 'color.text.disabled' | 'color.text.inverse' | 'color.text.brand' | 'color.text.selected' | 'color.text.danger' | 'color.text.warning' | 'color.text.warning.inverse' | 'color.text.success' | 'color.text.discovery' | 'color.text.information' | 'color.icon.accent.blue' | 'color.icon.accent.red' | 'color.icon.accent.orange' | 'color.icon.accent.yellow' | 'color.icon.accent.green' | 'color.icon.accent.purple' | 'color.icon.accent.teal' | 'color.icon.accent.magenta' | 'color.icon' | 'color.icon.subtle' | 'color.icon.inverse' | 'color.icon.disabled' | 'color.icon.brand' | 'color.icon.selected' | 'color.icon.danger' | 'color.icon.warning' | 'color.icon.warning.inverse' | 'color.icon.success' | 'color.icon.discovery' | 'color.icon.information' | 'color.border.accent.blue' | 'color.border.accent.red' | 'color.border.accent.orange' | 'color.border.accent.yellow' | 'color.border.accent.green' | 'color.border.accent.purple' | 'color.border.accent.teal' | 'color.border.accent.magenta' | 'color.border' | 'color.border.focused' | 'color.border.input' | 'color.border.disabled' | 'color.border.brand' | 'color.border.selected' | 'color.border.danger' | 'color.border.warning' | 'color.border.success' | 'color.border.discovery' | 'color.border.information' | 'color.background.accent.blue.subtlest' | 'color.background.accent.blue.subtler' | 'color.background.accent.blue.subtle' | 'color.background.accent.blue.bolder' | 'color.background.accent.red.subtlest' | 'color.background.accent.red.subtler' | 'color.background.accent.red.subtle' | 'color.background.accent.red.bolder' | 'color.background.accent.orange.subtlest' | 'color.background.accent.orange.subtler' | 'color.background.accent.orange.subtle' | 'color.background.accent.orange.bolder' | 'color.background.accent.yellow.subtlest' | 'color.background.accent.yellow.subtler' | 'color.background.accent.yellow.subtle' | 'color.background.accent.yellow.bolder' | 'color.background.accent.green.subtlest' | 'color.background.accent.green.subtler' | 'color.background.accent.green.subtle' | 'color.background.accent.green.bolder' | 'color.background.accent.teal.subtlest' | 'color.background.accent.teal.subtler' | 'color.background.accent.teal.subtle' | 'color.background.accent.teal.bolder' | 'color.background.accent.purple.subtlest' | 'color.background.accent.purple.subtler' | 'color.background.accent.purple.subtle' | 'color.background.accent.purple.bolder' | 'color.background.accent.magenta.subtlest' | 'color.background.accent.magenta.subtler' | 'color.background.accent.magenta.subtle' | 'color.background.accent.magenta.bolder' | 'color.background.disabled' | 'color.background.inverse.subtle' | 'color.background.inverse.subtle.hovered' | 'color.background.inverse.subtle.pressed' | 'color.background.input' | 'color.background.input.hovered' | 'color.background.input.pressed' | 'color.background.neutral' | 'color.background.neutral.hovered' | 'color.background.neutral.pressed' | 'color.background.neutral.subtle' | 'color.background.neutral.subtle.hovered' | 'color.background.neutral.subtle.pressed' | 'color.background.neutral.bold' | 'color.background.neutral.bold.hovered' | 'color.background.neutral.bold.pressed' | 'color.background.brand.bold' | 'color.background.brand.bold.hovered' | 'color.background.brand.bold.pressed' | 'color.background.selected' | 'color.background.selected.hovered' | 'color.background.selected.pressed' | 'color.background.selected.bold' | 'color.background.selected.bold.hovered' | 'color.background.selected.bold.pressed' | 'color.background.danger' | 'color.background.danger.hovered' | 'color.background.danger.pressed' | 'color.background.danger.bold' | 'color.background.danger.bold.hovered' | 'color.background.danger.bold.pressed' | 'color.background.warning' | 'color.background.warning.hovered' | 'color.background.warning.pressed' | 'color.background.warning.bold' | 'color.background.warning.bold.hovered' | 'color.background.warning.bold.pressed' | 'color.background.success' | 'color.background.success.hovered' | 'color.background.success.pressed' | 'color.background.success.bold' | 'color.background.success.bold.hovered' | 'color.background.success.bold.pressed' | 'color.background.discovery' | 'color.background.discovery.hovered' | 'color.background.discovery.pressed' | 'color.background.discovery.bold' | 'color.background.discovery.bold.hovered' | 'color.background.discovery.bold.pressed' | 'color.background.information' | 'color.background.information.hovered' | 'color.background.information.pressed' | 'color.background.information.bold' | 'color.background.information.bold.hovered' | 'color.background.information.bold.pressed' | 'color.blanket' | 'color.blanket.selected' | 'color.blanket.danger' | 'color.interaction.hovered' | 'color.interaction.pressed' | 'color.interaction.inverse.hovered' | 'color.interaction.inverse.pressed' | 'color.skeleton' | 'color.skeleton.subtle' | 'color.link' | 'color.link.pressed' | 'elevation.shadow.raised' | 'elevation.shadow.overflow' | 'elevation.shadow.overlay' | 'elevation.surface' | 'elevation.surface.sunken' | 'elevation.surface.raised' | 'elevation.surface.overlay' | 'utility.UNSAFE_util.transparent' | 'utility.UNSAFE_util.MISSING_TOKEN';
4
+ export declare type ActiveTokens = 'color.text.accent.blue' | 'color.text.accent.blue.bolder' | 'color.text.accent.red' | 'color.text.accent.red.bolder' | 'color.text.accent.orange' | 'color.text.accent.orange.bolder' | 'color.text.accent.yellow' | 'color.text.accent.yellow.bolder' | 'color.text.accent.green' | 'color.text.accent.green.bolder' | 'color.text.accent.purple' | 'color.text.accent.purple.bolder' | 'color.text.accent.teal' | 'color.text.accent.teal.bolder' | 'color.text.accent.magenta' | 'color.text.accent.magenta.bolder' | 'color.text' | 'color.text.subtle' | 'color.text.subtlest' | 'color.text.disabled' | 'color.text.inverse' | 'color.text.brand' | 'color.text.selected' | 'color.text.danger' | 'color.text.warning' | 'color.text.warning.inverse' | 'color.text.success' | 'color.text.discovery' | 'color.text.information' | 'color.icon.accent.blue' | 'color.icon.accent.red' | 'color.icon.accent.orange' | 'color.icon.accent.yellow' | 'color.icon.accent.green' | 'color.icon.accent.purple' | 'color.icon.accent.teal' | 'color.icon.accent.magenta' | 'color.icon' | 'color.icon.subtle' | 'color.icon.inverse' | 'color.icon.disabled' | 'color.icon.brand' | 'color.icon.selected' | 'color.icon.danger' | 'color.icon.warning' | 'color.icon.warning.inverse' | 'color.icon.success' | 'color.icon.discovery' | 'color.icon.information' | 'color.border.accent.blue' | 'color.border.accent.red' | 'color.border.accent.orange' | 'color.border.accent.yellow' | 'color.border.accent.green' | 'color.border.accent.purple' | 'color.border.accent.teal' | 'color.border.accent.magenta' | 'color.border' | 'color.border.inverse' | 'color.border.focused' | 'color.border.input' | 'color.border.disabled' | 'color.border.brand' | 'color.border.selected' | 'color.border.danger' | 'color.border.warning' | 'color.border.success' | 'color.border.discovery' | 'color.border.information' | 'color.background.accent.blue.subtlest' | 'color.background.accent.blue.subtler' | 'color.background.accent.blue.subtle' | 'color.background.accent.blue.bolder' | 'color.background.accent.red.subtlest' | 'color.background.accent.red.subtler' | 'color.background.accent.red.subtle' | 'color.background.accent.red.bolder' | 'color.background.accent.orange.subtlest' | 'color.background.accent.orange.subtler' | 'color.background.accent.orange.subtle' | 'color.background.accent.orange.bolder' | 'color.background.accent.yellow.subtlest' | 'color.background.accent.yellow.subtler' | 'color.background.accent.yellow.subtle' | 'color.background.accent.yellow.bolder' | 'color.background.accent.green.subtlest' | 'color.background.accent.green.subtler' | 'color.background.accent.green.subtle' | 'color.background.accent.green.bolder' | 'color.background.accent.teal.subtlest' | 'color.background.accent.teal.subtler' | 'color.background.accent.teal.subtle' | 'color.background.accent.teal.bolder' | 'color.background.accent.purple.subtlest' | 'color.background.accent.purple.subtler' | 'color.background.accent.purple.subtle' | 'color.background.accent.purple.bolder' | 'color.background.accent.magenta.subtlest' | 'color.background.accent.magenta.subtler' | 'color.background.accent.magenta.subtle' | 'color.background.accent.magenta.bolder' | 'color.background.disabled' | 'color.background.inverse.subtle' | 'color.background.inverse.subtle.hovered' | 'color.background.inverse.subtle.pressed' | 'color.background.input' | 'color.background.input.hovered' | 'color.background.input.pressed' | 'color.background.neutral' | 'color.background.neutral.hovered' | 'color.background.neutral.pressed' | 'color.background.neutral.subtle' | 'color.background.neutral.subtle.hovered' | 'color.background.neutral.subtle.pressed' | 'color.background.neutral.bold' | 'color.background.neutral.bold.hovered' | 'color.background.neutral.bold.pressed' | 'color.background.brand.bold' | 'color.background.brand.bold.hovered' | 'color.background.brand.bold.pressed' | 'color.background.selected' | 'color.background.selected.hovered' | 'color.background.selected.pressed' | 'color.background.selected.bold' | 'color.background.selected.bold.hovered' | 'color.background.selected.bold.pressed' | 'color.background.danger' | 'color.background.danger.hovered' | 'color.background.danger.pressed' | 'color.background.danger.bold' | 'color.background.danger.bold.hovered' | 'color.background.danger.bold.pressed' | 'color.background.warning' | 'color.background.warning.hovered' | 'color.background.warning.pressed' | 'color.background.warning.bold' | 'color.background.warning.bold.hovered' | 'color.background.warning.bold.pressed' | 'color.background.success' | 'color.background.success.hovered' | 'color.background.success.pressed' | 'color.background.success.bold' | 'color.background.success.bold.hovered' | 'color.background.success.bold.pressed' | 'color.background.discovery' | 'color.background.discovery.hovered' | 'color.background.discovery.pressed' | 'color.background.discovery.bold' | 'color.background.discovery.bold.hovered' | 'color.background.discovery.bold.pressed' | 'color.background.information' | 'color.background.information.hovered' | 'color.background.information.pressed' | 'color.background.information.bold' | 'color.background.information.bold.hovered' | 'color.background.information.bold.pressed' | 'color.blanket' | 'color.blanket.selected' | 'color.blanket.danger' | 'color.interaction.hovered' | 'color.interaction.pressed' | 'color.interaction.inverse.hovered' | 'color.interaction.inverse.pressed' | 'color.skeleton' | 'color.skeleton.subtle' | 'color.link' | 'color.link.pressed' | 'elevation.shadow.raised' | 'elevation.shadow.overflow' | 'elevation.shadow.overlay' | 'elevation.surface' | 'elevation.surface.sunken' | 'elevation.surface.raised' | 'elevation.surface.overlay' | 'utility.UNSAFE_util.transparent' | 'utility.UNSAFE_util.MISSING_TOKEN';
@@ -0,0 +1 @@
1
+ export { default } from '../artifacts/palettes-raw';
@@ -1 +1 @@
1
- export { getCSSCustomProperty, getTokenId, getFullyQualifiedTokenId, } from '../token-ids';
1
+ export { getCSSCustomProperty, getTokenId, getFullyQualifiedTokenId, } from '../utils/token-ids';
@@ -1,13 +1,5 @@
1
+ import type { UtilTokenSchema, ValueSchema } from '../../../types';
1
2
  declare const _default: {
2
- utility: Pick<{
3
- UNSAFE_util: {
4
- transparent: {
5
- value: string;
6
- };
7
- MISSING_TOKEN: {
8
- value: string;
9
- };
10
- };
11
- }, "UNSAFE_util">;
3
+ utility: ValueSchema<UtilTokenSchema>;
12
4
  };
13
5
  export default _default;
@@ -1,13 +1,5 @@
1
+ import type { UtilTokenSchema, ValueSchema } from '../../../types';
1
2
  declare const _default: {
2
- utility: Pick<{
3
- UNSAFE_util: {
4
- transparent: {
5
- value: string;
6
- };
7
- MISSING_TOKEN: {
8
- value: string;
9
- };
10
- };
11
- }, "UNSAFE_util">;
3
+ utility: ValueSchema<UtilTokenSchema>;
12
4
  };
13
5
  export default _default;