@x-plat/design-system 0.2.2 → 0.2.4

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 (73) hide show
  1. package/dist/{colors-DmMsWD7G.d.cts → colors-cxE7RsuF.d.cts} +21 -4
  2. package/dist/{colors-DmMsWD7G.d.ts → colors-cxE7RsuF.d.ts} +21 -4
  3. package/dist/components/Avatar/index.cjs +3 -124
  4. package/dist/components/Avatar/index.d.cts +234 -2
  5. package/dist/components/Avatar/index.d.ts +234 -2
  6. package/dist/components/Avatar/index.js +3 -124
  7. package/dist/components/Badge/index.cjs +3 -124
  8. package/dist/components/Badge/index.d.cts +234 -2
  9. package/dist/components/Badge/index.d.ts +234 -2
  10. package/dist/components/Badge/index.js +3 -124
  11. package/dist/components/Button/index.cjs +3 -124
  12. package/dist/components/Button/index.d.cts +234 -2
  13. package/dist/components/Button/index.d.ts +234 -2
  14. package/dist/components/Button/index.js +3 -124
  15. package/dist/components/CheckBox/index.cjs +3 -124
  16. package/dist/components/CheckBox/index.d.cts +234 -2
  17. package/dist/components/CheckBox/index.d.ts +234 -2
  18. package/dist/components/CheckBox/index.js +3 -124
  19. package/dist/components/Chip/index.cjs +3 -124
  20. package/dist/components/Chip/index.d.cts +234 -2
  21. package/dist/components/Chip/index.d.ts +234 -2
  22. package/dist/components/Chip/index.js +3 -124
  23. package/dist/components/DatePicker/index.cjs +84 -86
  24. package/dist/components/DatePicker/index.d.cts +467 -3
  25. package/dist/components/DatePicker/index.d.ts +467 -3
  26. package/dist/components/DatePicker/index.js +84 -86
  27. package/dist/components/Pagination/index.cjs +3 -124
  28. package/dist/components/Pagination/index.d.cts +234 -2
  29. package/dist/components/Pagination/index.d.ts +234 -2
  30. package/dist/components/Pagination/index.js +3 -124
  31. package/dist/components/Progress/index.cjs +3 -124
  32. package/dist/components/Progress/index.d.cts +234 -2
  33. package/dist/components/Progress/index.d.ts +234 -2
  34. package/dist/components/Progress/index.js +3 -124
  35. package/dist/components/Radio/index.cjs +3 -124
  36. package/dist/components/Radio/index.d.cts +234 -2
  37. package/dist/components/Radio/index.d.ts +234 -2
  38. package/dist/components/Radio/index.js +3 -124
  39. package/dist/components/Spinner/index.cjs +3 -124
  40. package/dist/components/Spinner/index.d.cts +234 -2
  41. package/dist/components/Spinner/index.d.ts +234 -2
  42. package/dist/components/Spinner/index.js +3 -124
  43. package/dist/components/Steps/index.cjs +3 -124
  44. package/dist/components/Steps/index.d.cts +234 -2
  45. package/dist/components/Steps/index.d.ts +234 -2
  46. package/dist/components/Steps/index.js +3 -124
  47. package/dist/components/Switch/index.cjs +3 -124
  48. package/dist/components/Switch/index.d.cts +234 -2
  49. package/dist/components/Switch/index.d.ts +234 -2
  50. package/dist/components/Switch/index.js +3 -124
  51. package/dist/components/Table/index.cjs +3 -124
  52. package/dist/components/Table/index.d.cts +234 -2
  53. package/dist/components/Table/index.d.ts +234 -2
  54. package/dist/components/Table/index.js +3 -124
  55. package/dist/components/Tag/index.cjs +3 -124
  56. package/dist/components/Tag/index.d.cts +234 -2
  57. package/dist/components/Tag/index.d.ts +234 -2
  58. package/dist/components/Tag/index.js +3 -124
  59. package/dist/components/Tooltip/index.cjs +3 -124
  60. package/dist/components/Tooltip/index.d.cts +234 -2
  61. package/dist/components/Tooltip/index.d.ts +234 -2
  62. package/dist/components/Tooltip/index.js +3 -124
  63. package/dist/components/index.cjs +148 -137
  64. package/dist/components/index.d.cts +1 -1
  65. package/dist/components/index.d.ts +1 -1
  66. package/dist/components/index.js +148 -137
  67. package/dist/index.cjs +148 -137
  68. package/dist/index.d.cts +1 -1
  69. package/dist/index.d.ts +1 -1
  70. package/dist/index.js +148 -137
  71. package/dist/tokens/index.d.cts +1 -1
  72. package/dist/tokens/index.d.ts +1 -1
  73. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { b as ColorNamespace, d as ColorName, a as CustomNamespaces, C as CustomColors, g as ColorProps } from '../../colors-cxE7RsuF.js';
2
3
  import React from 'react';
3
- import { a as ColorNamespace, b as ColorName, e as ColorProps } from '../../colors-DmMsWD7G.js';
4
4
 
5
5
  type TagSize = "sm" | "md" | "lg";
6
6
  interface TagProps<N extends ColorNamespace, C extends ColorName<N> = ColorName<N>> extends ColorProps<N, C> {
@@ -10,7 +10,239 @@ interface TagProps<N extends ColorNamespace, C extends ColorName<N> = ColorName<
10
10
  className?: string;
11
11
  }
12
12
  declare const Tag: {
13
- <N extends ColorNamespace = "xplat", C extends ColorName<N> = ColorName<N>>(props: TagProps<N, C>): react_jsx_runtime.JSX.Element;
13
+ <N extends ColorNamespace = "xplat", C extends ColorName<N> = keyof (N extends "xplat" | "test" ? N extends never ? {
14
+ readonly xplat: {
15
+ readonly red: {
16
+ readonly 50: "#FFF0F0";
17
+ readonly 100: "#FFDDDE";
18
+ readonly 200: "#FFC1C2";
19
+ readonly 300: "#FF9698";
20
+ readonly 400: "#FF5A5D";
21
+ readonly 500: "#FF272B";
22
+ readonly 600: "#F80409";
23
+ readonly 700: "#D40105";
24
+ readonly 800: "#AE0609";
25
+ readonly 900: "#900C0F";
26
+ };
27
+ readonly green: {
28
+ readonly 50: "#E5F6EA";
29
+ readonly 100: "#C1E7CC";
30
+ readonly 200: "#98D8AC";
31
+ readonly 300: "#6CCA8B";
32
+ readonly 400: "#47BE72";
33
+ readonly 500: "#10B259";
34
+ readonly 600: "#00A34F";
35
+ readonly 700: "#009143";
36
+ readonly 800: "#007F38";
37
+ readonly 900: "#006024";
38
+ };
39
+ readonly orange: {
40
+ readonly 50: "#FFF8EC";
41
+ readonly 100: "#FFF0D3";
42
+ readonly 200: "#FFDDA5";
43
+ readonly 300: "#FFC46D";
44
+ readonly 400: "#FF9F32";
45
+ readonly 500: "#FF820A";
46
+ readonly 600: "#FF6900";
47
+ readonly 700: "#CC4B02";
48
+ readonly 800: "#A13A0B";
49
+ readonly 900: "#82320C";
50
+ };
51
+ readonly yellow: {
52
+ readonly 50: "#FFFDE7";
53
+ readonly 100: "#FFFAC1";
54
+ readonly 200: "#FFF186";
55
+ readonly 300: "#FFE041";
56
+ readonly 400: "#FFCC0D";
57
+ readonly 500: "#F0B100";
58
+ readonly 600: "#D18800";
59
+ readonly 700: "#A66002";
60
+ readonly 800: "#894B0A";
61
+ readonly 900: "#743D0F";
62
+ };
63
+ readonly blue: {
64
+ readonly 50: "#F1F4FD";
65
+ readonly 100: "#DFE7FA";
66
+ readonly 200: "#C5D4F8";
67
+ readonly 300: "#9EB8F2";
68
+ readonly 400: "#7093EA";
69
+ readonly 500: "#4D6DE3";
70
+ readonly 600: "#3950D7";
71
+ readonly 700: "#303EC5";
72
+ readonly 800: "#2D35A0";
73
+ readonly 900: "#29317F";
74
+ };
75
+ readonly lightblue: {
76
+ readonly 50: "#EEFAFF";
77
+ readonly 100: "#D9F4FF";
78
+ readonly 200: "#BBEDFF";
79
+ readonly 300: "#8DE3FF";
80
+ readonly 400: "#57D0FF";
81
+ readonly 500: "#30B6FF";
82
+ readonly 600: "#1999F7";
83
+ readonly 700: "#1280E3";
84
+ readonly 800: "#1566B8";
85
+ readonly 900: "#175791";
86
+ };
87
+ readonly purple: {
88
+ readonly 50: "#FBF6FE";
89
+ readonly 100: "#F5EAFD";
90
+ readonly 200: "#EDD8FC";
91
+ readonly 300: "#E0BAF8";
92
+ readonly 400: "#CD8DF3";
93
+ readonly 500: "#B961EB";
94
+ readonly 600: "#A541DC";
95
+ readonly 700: "#9230C5";
96
+ readonly 800: "#782B9E";
97
+ readonly 900: "#62247F";
98
+ };
99
+ readonly pink: {
100
+ readonly 50: "#FFF4FE";
101
+ readonly 100: "#FFE7FD";
102
+ readonly 200: "#FFCFFA";
103
+ readonly 300: "#FEA9F1";
104
+ readonly 400: "#FD75E7";
105
+ readonly 500: "#F553DA";
106
+ readonly 600: "#D821B6";
107
+ readonly 700: "#B31892";
108
+ readonly 800: "#921676";
109
+ readonly 900: "#781761";
110
+ };
111
+ readonly neutral: {
112
+ readonly 50: "#FAFAFA";
113
+ readonly 100: "#F5F5F5";
114
+ readonly 200: "#E5E5E5";
115
+ readonly 300: "#D4D4D4";
116
+ readonly 400: "#A1A1A1";
117
+ readonly 500: "#737373";
118
+ readonly 600: "#525252";
119
+ readonly 700: "#404040";
120
+ readonly 800: "#262626";
121
+ readonly 900: "#171717";
122
+ };
123
+ readonly black: "#000000";
124
+ readonly white: "#FFFFFF";
125
+ };
126
+ readonly test: {
127
+ readonly default: "#ffffff";
128
+ };
129
+ }[N] & CustomNamespaces[N] & (N extends "xplat" ? CustomColors : {}) : {
130
+ readonly xplat: {
131
+ readonly red: {
132
+ readonly 50: "#FFF0F0";
133
+ readonly 100: "#FFDDDE";
134
+ readonly 200: "#FFC1C2";
135
+ readonly 300: "#FF9698";
136
+ readonly 400: "#FF5A5D";
137
+ readonly 500: "#FF272B";
138
+ readonly 600: "#F80409";
139
+ readonly 700: "#D40105";
140
+ readonly 800: "#AE0609";
141
+ readonly 900: "#900C0F";
142
+ };
143
+ readonly green: {
144
+ readonly 50: "#E5F6EA";
145
+ readonly 100: "#C1E7CC";
146
+ readonly 200: "#98D8AC";
147
+ readonly 300: "#6CCA8B";
148
+ readonly 400: "#47BE72";
149
+ readonly 500: "#10B259";
150
+ readonly 600: "#00A34F";
151
+ readonly 700: "#009143";
152
+ readonly 800: "#007F38";
153
+ readonly 900: "#006024";
154
+ };
155
+ readonly orange: {
156
+ readonly 50: "#FFF8EC";
157
+ readonly 100: "#FFF0D3";
158
+ readonly 200: "#FFDDA5";
159
+ readonly 300: "#FFC46D";
160
+ readonly 400: "#FF9F32";
161
+ readonly 500: "#FF820A";
162
+ readonly 600: "#FF6900";
163
+ readonly 700: "#CC4B02";
164
+ readonly 800: "#A13A0B";
165
+ readonly 900: "#82320C";
166
+ };
167
+ readonly yellow: {
168
+ readonly 50: "#FFFDE7";
169
+ readonly 100: "#FFFAC1";
170
+ readonly 200: "#FFF186";
171
+ readonly 300: "#FFE041";
172
+ readonly 400: "#FFCC0D";
173
+ readonly 500: "#F0B100";
174
+ readonly 600: "#D18800";
175
+ readonly 700: "#A66002";
176
+ readonly 800: "#894B0A";
177
+ readonly 900: "#743D0F";
178
+ };
179
+ readonly blue: {
180
+ readonly 50: "#F1F4FD";
181
+ readonly 100: "#DFE7FA";
182
+ readonly 200: "#C5D4F8";
183
+ readonly 300: "#9EB8F2";
184
+ readonly 400: "#7093EA";
185
+ readonly 500: "#4D6DE3";
186
+ readonly 600: "#3950D7";
187
+ readonly 700: "#303EC5";
188
+ readonly 800: "#2D35A0";
189
+ readonly 900: "#29317F";
190
+ };
191
+ readonly lightblue: {
192
+ readonly 50: "#EEFAFF";
193
+ readonly 100: "#D9F4FF";
194
+ readonly 200: "#BBEDFF";
195
+ readonly 300: "#8DE3FF";
196
+ readonly 400: "#57D0FF";
197
+ readonly 500: "#30B6FF";
198
+ readonly 600: "#1999F7";
199
+ readonly 700: "#1280E3";
200
+ readonly 800: "#1566B8";
201
+ readonly 900: "#175791";
202
+ };
203
+ readonly purple: {
204
+ readonly 50: "#FBF6FE";
205
+ readonly 100: "#F5EAFD";
206
+ readonly 200: "#EDD8FC";
207
+ readonly 300: "#E0BAF8";
208
+ readonly 400: "#CD8DF3";
209
+ readonly 500: "#B961EB";
210
+ readonly 600: "#A541DC";
211
+ readonly 700: "#9230C5";
212
+ readonly 800: "#782B9E";
213
+ readonly 900: "#62247F";
214
+ };
215
+ readonly pink: {
216
+ readonly 50: "#FFF4FE";
217
+ readonly 100: "#FFE7FD";
218
+ readonly 200: "#FFCFFA";
219
+ readonly 300: "#FEA9F1";
220
+ readonly 400: "#FD75E7";
221
+ readonly 500: "#F553DA";
222
+ readonly 600: "#D821B6";
223
+ readonly 700: "#B31892";
224
+ readonly 800: "#921676";
225
+ readonly 900: "#781761";
226
+ };
227
+ readonly neutral: {
228
+ readonly 50: "#FAFAFA";
229
+ readonly 100: "#F5F5F5";
230
+ readonly 200: "#E5E5E5";
231
+ readonly 300: "#D4D4D4";
232
+ readonly 400: "#A1A1A1";
233
+ readonly 500: "#737373";
234
+ readonly 600: "#525252";
235
+ readonly 700: "#404040";
236
+ readonly 800: "#262626";
237
+ readonly 900: "#171717";
238
+ };
239
+ readonly black: "#000000";
240
+ readonly white: "#FFFFFF";
241
+ };
242
+ readonly test: {
243
+ readonly default: "#ffffff";
244
+ };
245
+ }[N] & (N extends "xplat" ? CustomColors : {}) : N extends never ? CustomNamespaces[N] : {})>(props: TagProps<N, C>): react_jsx_runtime.JSX.Element;
14
246
  displayName: string;
15
247
  };
16
248
 
@@ -1,128 +1,6 @@
1
- // src/tokens/colors.ts
2
- var colors = {
3
- xplat: {
4
- red: {
5
- 50: "#FFF0F0",
6
- 100: "#FFDDDE",
7
- 200: "#FFC1C2",
8
- 300: "#FF9698",
9
- 400: "#FF5A5D",
10
- 500: "#FF272B",
11
- 600: "#F80409",
12
- 700: "#D40105",
13
- 800: "#AE0609",
14
- 900: "#900C0F"
15
- },
16
- green: {
17
- 50: "#E5F6EA",
18
- 100: "#C1E7CC",
19
- 200: "#98D8AC",
20
- 300: "#6CCA8B",
21
- 400: "#47BE72",
22
- 500: "#10B259",
23
- 600: "#00A34F",
24
- 700: "#009143",
25
- 800: "#007F38",
26
- 900: "#006024"
27
- },
28
- orange: {
29
- 50: "#FFF8EC",
30
- 100: "#FFF0D3",
31
- 200: "#FFDDA5",
32
- 300: "#FFC46D",
33
- 400: "#FF9F32",
34
- 500: "#FF820A",
35
- 600: "#FF6900",
36
- 700: "#CC4B02",
37
- 800: "#A13A0B",
38
- 900: "#82320C"
39
- },
40
- yellow: {
41
- 50: "#FFFDE7",
42
- 100: "#FFFAC1",
43
- 200: "#FFF186",
44
- 300: "#FFE041",
45
- 400: "#FFCC0D",
46
- 500: "#F0B100",
47
- 600: "#D18800",
48
- 700: "#A66002",
49
- 800: "#894B0A",
50
- 900: "#743D0F"
51
- },
52
- blue: {
53
- 50: "#F1F4FD",
54
- 100: "#DFE7FA",
55
- 200: "#C5D4F8",
56
- 300: "#9EB8F2",
57
- 400: "#7093EA",
58
- 500: "#4D6DE3",
59
- 600: "#3950D7",
60
- 700: "#303EC5",
61
- 800: "#2D35A0",
62
- 900: "#29317F"
63
- },
64
- lightblue: {
65
- 50: "#EEFAFF",
66
- 100: "#D9F4FF",
67
- 200: "#BBEDFF",
68
- 300: "#8DE3FF",
69
- 400: "#57D0FF",
70
- 500: "#30B6FF",
71
- 600: "#1999F7",
72
- 700: "#1280E3",
73
- 800: "#1566B8",
74
- 900: "#175791"
75
- },
76
- purple: {
77
- 50: "#FBF6FE",
78
- 100: "#F5EAFD",
79
- 200: "#EDD8FC",
80
- 300: "#E0BAF8",
81
- 400: "#CD8DF3",
82
- 500: "#B961EB",
83
- 600: "#A541DC",
84
- 700: "#9230C5",
85
- 800: "#782B9E",
86
- 900: "#62247F"
87
- },
88
- pink: {
89
- 50: "#FFF4FE",
90
- 100: "#FFE7FD",
91
- 200: "#FFCFFA",
92
- 300: "#FEA9F1",
93
- 400: "#FD75E7",
94
- 500: "#F553DA",
95
- 600: "#D821B6",
96
- 700: "#B31892",
97
- 800: "#921676",
98
- 900: "#781761"
99
- },
100
- neutral: {
101
- 50: "#FAFAFA",
102
- 100: "#F5F5F5",
103
- 200: "#E5E5E5",
104
- 300: "#D4D4D4",
105
- 400: "#A1A1A1",
106
- 500: "#737373",
107
- 600: "#525252",
108
- 700: "#404040",
109
- 800: "#262626",
110
- 900: "#171717"
111
- },
112
- black: "#000000",
113
- white: "#FFFFFF"
114
- },
115
- test: {
116
- default: "#ffffff"
117
- }
118
- };
119
-
120
1
  // src/util/getColor.ts
121
2
  var getColorClass = (namespace, palette, shade) => {
122
- const namespaceMap = colors[namespace];
123
- const paletteMap = namespaceMap[palette];
124
- const hasShade = paletteMap && typeof paletteMap === "object" && shade !== void 0 && shade in paletteMap;
125
- return `${String(namespace)}-${String(palette)}${hasShade ? `-${String(shade)}` : ""}`;
3
+ return `${String(namespace)}-${String(palette)}${shade !== void 0 ? `-${String(shade)}` : ""}`;
126
4
  };
127
5
 
128
6
  // src/tokens/svg/action/CopyIcon.tsx
@@ -1045,9 +923,10 @@ var Tag = (props) => {
1045
923
  colorNamespace = "xplat",
1046
924
  color = "neutral",
1047
925
  colorDepth,
926
+ colorToken,
1048
927
  className
1049
928
  } = props;
1050
- const colorClass = getColorClass(
929
+ const colorClass = colorToken ?? getColorClass(
1051
930
  colorNamespace,
1052
931
  color,
1053
932
  colorDepth ?? 500
@@ -37,131 +37,9 @@ module.exports = __toCommonJS(Tooltip_exports);
37
37
  // src/components/Tooltip/Tooltip.tsx
38
38
  var import_react = __toESM(require("react"), 1);
39
39
 
40
- // src/tokens/colors.ts
41
- var colors = {
42
- xplat: {
43
- red: {
44
- 50: "#FFF0F0",
45
- 100: "#FFDDDE",
46
- 200: "#FFC1C2",
47
- 300: "#FF9698",
48
- 400: "#FF5A5D",
49
- 500: "#FF272B",
50
- 600: "#F80409",
51
- 700: "#D40105",
52
- 800: "#AE0609",
53
- 900: "#900C0F"
54
- },
55
- green: {
56
- 50: "#E5F6EA",
57
- 100: "#C1E7CC",
58
- 200: "#98D8AC",
59
- 300: "#6CCA8B",
60
- 400: "#47BE72",
61
- 500: "#10B259",
62
- 600: "#00A34F",
63
- 700: "#009143",
64
- 800: "#007F38",
65
- 900: "#006024"
66
- },
67
- orange: {
68
- 50: "#FFF8EC",
69
- 100: "#FFF0D3",
70
- 200: "#FFDDA5",
71
- 300: "#FFC46D",
72
- 400: "#FF9F32",
73
- 500: "#FF820A",
74
- 600: "#FF6900",
75
- 700: "#CC4B02",
76
- 800: "#A13A0B",
77
- 900: "#82320C"
78
- },
79
- yellow: {
80
- 50: "#FFFDE7",
81
- 100: "#FFFAC1",
82
- 200: "#FFF186",
83
- 300: "#FFE041",
84
- 400: "#FFCC0D",
85
- 500: "#F0B100",
86
- 600: "#D18800",
87
- 700: "#A66002",
88
- 800: "#894B0A",
89
- 900: "#743D0F"
90
- },
91
- blue: {
92
- 50: "#F1F4FD",
93
- 100: "#DFE7FA",
94
- 200: "#C5D4F8",
95
- 300: "#9EB8F2",
96
- 400: "#7093EA",
97
- 500: "#4D6DE3",
98
- 600: "#3950D7",
99
- 700: "#303EC5",
100
- 800: "#2D35A0",
101
- 900: "#29317F"
102
- },
103
- lightblue: {
104
- 50: "#EEFAFF",
105
- 100: "#D9F4FF",
106
- 200: "#BBEDFF",
107
- 300: "#8DE3FF",
108
- 400: "#57D0FF",
109
- 500: "#30B6FF",
110
- 600: "#1999F7",
111
- 700: "#1280E3",
112
- 800: "#1566B8",
113
- 900: "#175791"
114
- },
115
- purple: {
116
- 50: "#FBF6FE",
117
- 100: "#F5EAFD",
118
- 200: "#EDD8FC",
119
- 300: "#E0BAF8",
120
- 400: "#CD8DF3",
121
- 500: "#B961EB",
122
- 600: "#A541DC",
123
- 700: "#9230C5",
124
- 800: "#782B9E",
125
- 900: "#62247F"
126
- },
127
- pink: {
128
- 50: "#FFF4FE",
129
- 100: "#FFE7FD",
130
- 200: "#FFCFFA",
131
- 300: "#FEA9F1",
132
- 400: "#FD75E7",
133
- 500: "#F553DA",
134
- 600: "#D821B6",
135
- 700: "#B31892",
136
- 800: "#921676",
137
- 900: "#781761"
138
- },
139
- neutral: {
140
- 50: "#FAFAFA",
141
- 100: "#F5F5F5",
142
- 200: "#E5E5E5",
143
- 300: "#D4D4D4",
144
- 400: "#A1A1A1",
145
- 500: "#737373",
146
- 600: "#525252",
147
- 700: "#404040",
148
- 800: "#262626",
149
- 900: "#171717"
150
- },
151
- black: "#000000",
152
- white: "#FFFFFF"
153
- },
154
- test: {
155
- default: "#ffffff"
156
- }
157
- };
158
-
159
40
  // src/util/getColor.ts
160
41
  var getColorClass = (namespace, palette, shade) => {
161
- const namespaceMap = colors[namespace];
162
- const paletteMap = namespaceMap[palette];
163
- const hasShade = paletteMap && typeof paletteMap === "object" && shade !== void 0 && shade in paletteMap;
164
- return `${String(namespace)}-${String(palette)}${hasShade ? `-${String(shade)}` : ""}`;
42
+ return `${String(namespace)}-${String(palette)}${shade !== void 0 ? `-${String(shade)}` : ""}`;
165
43
  };
166
44
 
167
45
  // ../../node_modules/clsx/dist/clsx.mjs
@@ -188,11 +66,12 @@ var Tooltip = (props) => {
188
66
  colorNamespace = "xplat",
189
67
  color = "blue",
190
68
  colorDepth,
69
+ colorToken,
191
70
  description,
192
71
  children
193
72
  } = props;
194
73
  const iconRef = import_react.default.useRef(null);
195
- const colorClass = getColorClass(
74
+ const colorClass = colorToken ?? getColorClass(
196
75
  colorNamespace,
197
76
  color,
198
77
  colorDepth ?? 500