@carbon/themes 11.74.0 → 11.75.0-rc.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 (75) hide show
  1. package/es/index.js +68 -101
  2. package/lib/component-tokens/button/index.d.ts +7 -0
  3. package/lib/component-tokens/button/tokens.d.ts +98 -0
  4. package/{src/component-tokens/content-switcher/index.js → lib/component-tokens/content-switcher/index.d.ts} +1 -1
  5. package/lib/component-tokens/content-switcher/tokens.d.ts +24 -0
  6. package/lib/component-tokens/notification/index.d.ts +7 -0
  7. package/lib/component-tokens/notification/tokens.d.ts +64 -0
  8. package/lib/component-tokens/status/index.d.ts +7 -0
  9. package/lib/component-tokens/status/tokens.d.ts +62 -0
  10. package/lib/component-tokens/tag/index.d.ts +7 -0
  11. package/lib/component-tokens/tag/tokens.d.ts +246 -0
  12. package/lib/g10.d.ts +242 -0
  13. package/lib/g100.d.ts +242 -0
  14. package/lib/g90.d.ts +242 -0
  15. package/lib/index.d.ts +26 -0
  16. package/lib/index.js +68 -101
  17. package/lib/tokens/Token.d.ts +20 -0
  18. package/lib/tokens/TokenFormat.d.ts +15 -0
  19. package/lib/tokens/TokenGroup.d.ts +57 -0
  20. package/lib/tokens/TokenSet.d.ts +30 -0
  21. package/lib/tokens/components.d.ts +12 -0
  22. package/lib/tokens/index.d.ts +21 -0
  23. package/lib/tokens/layout.d.ts +8 -0
  24. package/lib/tokens/type.d.ts +8 -0
  25. package/lib/tokens/types.d.ts +23 -0
  26. package/lib/tokens/v10.d.ts +10 -0
  27. package/lib/tokens/v11TokenGroup.d.ts +21 -0
  28. package/lib/tokens/v11TokenSet.d.ts +8 -0
  29. package/lib/tools.d.ts +17 -0
  30. package/lib/v10/g10.d.ts +154 -0
  31. package/lib/v10/g100.d.ts +154 -0
  32. package/lib/v10/g90.d.ts +154 -0
  33. package/lib/v10/index.d.ts +19 -0
  34. package/lib/v10/tokens.d.ts +18 -0
  35. package/lib/v10/white.d.ts +155 -0
  36. package/lib/white.d.ts +243 -0
  37. package/package.json +10 -5
  38. package/src/component-tokens/button/{index.js → index.ts} +1 -1
  39. package/src/component-tokens/button/{tokens.js → tokens.ts} +1 -1
  40. package/src/component-tokens/content-switcher/index.ts +7 -0
  41. package/src/component-tokens/content-switcher/{tokens.js → tokens.ts} +1 -1
  42. package/src/component-tokens/notification/{index.js → index.ts} +1 -1
  43. package/src/component-tokens/notification/{tokens.js → tokens.ts} +1 -1
  44. package/src/component-tokens/status/{index.js → index.ts} +1 -1
  45. package/src/component-tokens/status/{tokens.js → tokens.ts} +1 -1
  46. package/src/component-tokens/tag/{index.js → index.ts} +1 -1
  47. package/src/component-tokens/tag/{tokens.js → tokens.ts} +1 -1
  48. package/src/{g10.js → g10.ts} +1 -1
  49. package/src/{g100.js → g100.ts} +1 -1
  50. package/src/{g90.js → g90.ts} +1 -1
  51. package/src/{index.js → index.ts} +1 -1
  52. package/src/tokens/{Token.js → Token.ts} +10 -4
  53. package/src/tokens/{TokenFormat.js → TokenFormat.ts} +12 -7
  54. package/src/tokens/{TokenGroup.js → TokenGroup.ts} +38 -16
  55. package/src/tokens/{TokenSet.js → TokenSet.ts} +22 -8
  56. package/src/tokens/{components.js → components.ts} +1 -1
  57. package/src/tokens/{index.js → index.ts} +13 -22
  58. package/src/tokens/{layout.js → layout.ts} +1 -1
  59. package/src/tokens/{type.js → type.ts} +1 -1
  60. package/src/tokens/types.ts +28 -0
  61. package/src/tokens/{v10.js → v10.ts} +1 -1
  62. package/src/tokens/{v11TokenGroup.js → v11TokenGroup.ts} +1 -1
  63. package/src/tokens/v11TokenSet.ts +93 -0
  64. package/src/{tools.js → tools.ts} +7 -15
  65. package/src/v10/{g10.js → g10.ts} +1 -1
  66. package/src/v10/{g100.js → g100.ts} +1 -1
  67. package/src/v10/{g90.js → g90.ts} +1 -1
  68. package/src/v10/{index.js → index.ts} +1 -1
  69. package/src/v10/{tokens.js → tokens.ts} +1 -1
  70. package/src/v10/{white.js → white.ts} +1 -1
  71. package/src/{white.js → white.ts} +1 -1
  72. package/tsconfig.json +8 -0
  73. package/tsconfig.types.json +9 -0
  74. package/umd/index.js +68 -101
  75. package/src/tokens/v11TokenSet.js +0 -94
package/es/index.js CHANGED
@@ -14,9 +14,9 @@ var __exportAll = (all, no_symbols) => {
14
14
  return target;
15
15
  };
16
16
  //#endregion
17
- //#region src/tools.js
17
+ //#region src/tools.ts
18
18
  /**
19
- * Copyright IBM Corp. 2016, 2023
19
+ * Copyright IBM Corp. 2016, 2026
20
20
  *
21
21
  * This source code is licensed under the Apache-2.0 license found in the
22
22
  * LICENSE file in the root directory of this source tree.
@@ -26,28 +26,22 @@ var __exportAll = (all, no_symbols) => {
26
26
  * Example: token = hsl(10, 10, 10);
27
27
  * adjustLightness(token, 5) === hsl(10, 10, 15);
28
28
  * adjustLightness(token, -5) === hsl(10, 10, 5);
29
- * @param {string} token
30
- * @param {integer} shift The number of percentage points (positive or negative) by which to shift the lightness of a token.
31
- * @returns {string}
32
29
  */
33
- function adjustLightness(token, shift) {
30
+ const adjustLightness = (token, shift) => {
34
31
  const original = Color(token).hsl().object();
35
32
  return Color({
36
33
  ...original,
37
34
  l: original.l += shift
38
35
  }).round().hex().toLowerCase();
39
- }
36
+ };
40
37
  /**
41
38
  * Adjust a given token's alpha by a specified amount
42
39
  * Example: token = rgba(10, 10, 10, 1.0);
43
40
  * adjustAlpha(token, 0.3) === rgba(10, 10, 10, 0.3);
44
- * @param {string} token
45
- * @param {float} alpha
46
- * @returns {string}
47
41
  */
48
- function adjustAlpha(token, alpha) {
42
+ const adjustAlpha = (token, alpha) => {
49
43
  return Color(token).rgb().alpha(alpha).string();
50
- }
44
+ };
51
45
  const numbers = [
52
46
  "0",
53
47
  "1",
@@ -62,10 +56,8 @@ const numbers = [
62
56
  ];
63
57
  /**
64
58
  * Format a given token into the format expected in CSS/SCSS-based projects.
65
- * @param {string} token
66
- * @returns {string}
67
59
  */
68
- function formatTokenName(token) {
60
+ const formatTokenName = (token) => {
69
61
  let string = "";
70
62
  for (let i = 0; i < token.length; i++) {
71
63
  if (numbers.indexOf(token[i]) !== -1) {
@@ -83,11 +75,11 @@ function formatTokenName(token) {
83
75
  string += token[i];
84
76
  }
85
77
  return string;
86
- }
78
+ };
87
79
  //#endregion
88
- //#region src/white.js
80
+ //#region src/white.ts
89
81
  /**
90
- * Copyright IBM Corp. 2018, 2023
82
+ * Copyright IBM Corp. 2018, 2026
91
83
  *
92
84
  * This source code is licensed under the Apache-2.0 license found in the
93
85
  * LICENSE file in the root directory of this source tree.
@@ -636,9 +628,9 @@ const chatButtonActive = backgroundActive;
636
628
  const chatButtonSelected = backgroundSelected;
637
629
  const chatButtonTextSelected = textSecondary;
638
630
  //#endregion
639
- //#region src/g10.js
631
+ //#region src/g10.ts
640
632
  /**
641
- * Copyright IBM Corp. 2018, 2023
633
+ * Copyright IBM Corp. 2018, 2026
642
634
  *
643
635
  * This source code is licensed under the Apache-2.0 license found in the
644
636
  * LICENSE file in the root directory of this source tree.
@@ -1187,9 +1179,9 @@ const chatButtonActive$3 = backgroundActive$7;
1187
1179
  const chatButtonSelected$3 = backgroundSelected$7;
1188
1180
  const chatButtonTextSelected$3 = textSecondary$7;
1189
1181
  //#endregion
1190
- //#region src/g90.js
1182
+ //#region src/g90.ts
1191
1183
  /**
1192
- * Copyright IBM Corp. 2018, 2023
1184
+ * Copyright IBM Corp. 2018, 2026
1193
1185
  *
1194
1186
  * This source code is licensed under the Apache-2.0 license found in the
1195
1187
  * LICENSE file in the root directory of this source tree.
@@ -1738,9 +1730,9 @@ const chatButtonActive$2 = backgroundActive$6;
1738
1730
  const chatButtonSelected$2 = backgroundSelected$6;
1739
1731
  const chatButtonTextSelected$2 = textSecondary$6;
1740
1732
  //#endregion
1741
- //#region src/g100.js
1733
+ //#region src/g100.ts
1742
1734
  /**
1743
- * Copyright IBM Corp. 2018, 2023
1735
+ * Copyright IBM Corp. 2018, 2026
1744
1736
  *
1745
1737
  * This source code is licensed under the Apache-2.0 license found in the
1746
1738
  * LICENSE file in the root directory of this source tree.
@@ -2289,9 +2281,9 @@ const chatButtonActive$1 = backgroundActive$5;
2289
2281
  const chatButtonSelected$1 = backgroundSelected$5;
2290
2282
  const chatButtonTextSelected$1 = textSecondary$5;
2291
2283
  //#endregion
2292
- //#region src/v10/white.js
2284
+ //#region src/v10/white.ts
2293
2285
  /**
2294
- * Copyright IBM Corp. 2018, 2023
2286
+ * Copyright IBM Corp. 2018, 2026
2295
2287
  *
2296
2288
  * This source code is licensed under the Apache-2.0 license found in the
2297
2289
  * LICENSE file in the root directory of this source tree.
@@ -2688,9 +2680,9 @@ const active01$3 = activeUI$3;
2688
2680
  const hoverField$3 = hoverUI$3;
2689
2681
  const danger$3 = danger01$3;
2690
2682
  //#endregion
2691
- //#region src/v10/g10.js
2683
+ //#region src/v10/g10.ts
2692
2684
  /**
2693
- * Copyright IBM Corp. 2018, 2023
2685
+ * Copyright IBM Corp. 2018, 2026
2694
2686
  *
2695
2687
  * This source code is licensed under the Apache-2.0 license found in the
2696
2688
  * LICENSE file in the root directory of this source tree.
@@ -3087,9 +3079,9 @@ const active01$2 = activeUI$2;
3087
3079
  const hoverField$2 = hoverUI$2;
3088
3080
  const danger$2 = danger01$2;
3089
3081
  //#endregion
3090
- //#region src/v10/g90.js
3082
+ //#region src/v10/g90.ts
3091
3083
  /**
3092
- * Copyright IBM Corp. 2018, 2023
3084
+ * Copyright IBM Corp. 2018, 2026
3093
3085
  *
3094
3086
  * This source code is licensed under the Apache-2.0 license found in the
3095
3087
  * LICENSE file in the root directory of this source tree.
@@ -3486,9 +3478,9 @@ const active01$1 = activeUI$1;
3486
3478
  const hoverField$1 = hoverUI$1;
3487
3479
  const danger$1 = danger01$1;
3488
3480
  //#endregion
3489
- //#region src/v10/g100.js
3481
+ //#region src/v10/g100.ts
3490
3482
  /**
3491
- * Copyright IBM Corp. 2018, 2023
3483
+ * Copyright IBM Corp. 2018, 2026
3492
3484
  *
3493
3485
  * This source code is licensed under the Apache-2.0 license found in the
3494
3486
  * LICENSE file in the root directory of this source tree.
@@ -4038,9 +4030,9 @@ const tokens = {
4038
4030
  layout: unstable_tokens$1
4039
4031
  };
4040
4032
  //#endregion
4041
- //#region src/v10/index.js
4033
+ //#region src/v10/index.ts
4042
4034
  /**
4043
- * Copyright IBM Corp. 2018, 2023
4035
+ * Copyright IBM Corp. 2018, 2026
4044
4036
  *
4045
4037
  * This source code is licensed under the Apache-2.0 license found in the
4046
4038
  * LICENSE file in the root directory of this source tree.
@@ -4302,7 +4294,7 @@ const themes$1 = {
4302
4294
  g100: g100_exports$1
4303
4295
  };
4304
4296
  //#endregion
4305
- //#region src/component-tokens/button/tokens.js
4297
+ //#region src/component-tokens/button/tokens.ts
4306
4298
  var tokens_exports$4 = /* @__PURE__ */ __exportAll({
4307
4299
  buttonDangerActive: () => buttonDangerActive,
4308
4300
  buttonDangerHover: () => buttonDangerHover,
@@ -4321,7 +4313,7 @@ var tokens_exports$4 = /* @__PURE__ */ __exportAll({
4321
4313
  buttonTertiaryHover: () => buttonTertiaryHover
4322
4314
  });
4323
4315
  /**
4324
- * Copyright IBM Corp. 2022
4316
+ * Copyright IBM Corp. 2022, 2026
4325
4317
  *
4326
4318
  * This source code is licensed under the Apache-2.0 license found in the
4327
4319
  * LICENSE file in the root directory of this source tree.
@@ -4418,12 +4410,12 @@ const buttonDisabled = {
4418
4410
  g100: "rgb(141 141 141 / 30%)"
4419
4411
  };
4420
4412
  //#endregion
4421
- //#region src/component-tokens/button/index.js
4413
+ //#region src/component-tokens/button/index.ts
4422
4414
  var button_exports = /* @__PURE__ */ __exportAll({ buttonTokens: () => tokens_exports$4 });
4423
4415
  //#endregion
4424
- //#region src/component-tokens/tag/tokens.js
4416
+ //#region src/component-tokens/tag/tokens.ts
4425
4417
  /**
4426
- * Copyright IBM Corp. 2022, 2024
4418
+ * Copyright IBM Corp. 2022, 2026
4427
4419
  *
4428
4420
  * This source code is licensed under the Apache-2.0 license found in the
4429
4421
  * LICENSE file in the root directory of this source tree.
@@ -4711,12 +4703,12 @@ const tagBorderWarmGray = {
4711
4703
  g100: warmGray50
4712
4704
  };
4713
4705
  //#endregion
4714
- //#region src/component-tokens/tag/index.js
4706
+ //#region src/component-tokens/tag/index.ts
4715
4707
  var tag_exports = /* @__PURE__ */ __exportAll({ tagTokens: () => tokens_exports$3 });
4716
4708
  //#endregion
4717
- //#region src/component-tokens/notification/tokens.js
4709
+ //#region src/component-tokens/notification/tokens.ts
4718
4710
  /**
4719
- * Copyright IBM Corp. 2022, 2024
4711
+ * Copyright IBM Corp. 2022, 2026
4720
4712
  *
4721
4713
  * This source code is licensed under the Apache-2.0 license found in the
4722
4714
  * LICENSE file in the root directory of this source tree.
@@ -4792,12 +4784,12 @@ const notificationActionTertiaryInverseTextOnColorDisabled = {
4792
4784
  g100: textOnColorDisabled
4793
4785
  };
4794
4786
  //#endregion
4795
- //#region src/component-tokens/notification/index.js
4787
+ //#region src/component-tokens/notification/index.ts
4796
4788
  var notification_exports = /* @__PURE__ */ __exportAll({ notificationTokens: () => tokens_exports$2 });
4797
4789
  //#endregion
4798
- //#region src/component-tokens/status/tokens.js
4790
+ //#region src/component-tokens/status/tokens.ts
4799
4791
  /**
4800
- * Copyright IBM Corp. 2025
4792
+ * Copyright IBM Corp. 2025, 2026
4801
4793
  *
4802
4794
  * This source code is licensed under the Apache-2.0 license found in the
4803
4795
  * LICENSE file in the root directory of this source tree.
@@ -4871,12 +4863,12 @@ const statusAccessibilityBackground = {
4871
4863
  g100: gray100
4872
4864
  };
4873
4865
  //#endregion
4874
- //#region src/component-tokens/status/index.js
4866
+ //#region src/component-tokens/status/index.ts
4875
4867
  var status_exports = /* @__PURE__ */ __exportAll({ statusTokens: () => tokens_exports$1 });
4876
4868
  //#endregion
4877
- //#region src/component-tokens/content-switcher/tokens.js
4869
+ //#region src/component-tokens/content-switcher/tokens.ts
4878
4870
  /**
4879
- * Copyright IBM Corp. 2025
4871
+ * Copyright IBM Corp. 2025, 2026
4880
4872
  *
4881
4873
  * This source code is licensed under the Apache-2.0 license found in the
4882
4874
  * LICENSE file in the root directory of this source tree.
@@ -4906,21 +4898,10 @@ const contentSwitcherBackgroundHover = {
4906
4898
  g100: rgba(gray50, .12)
4907
4899
  };
4908
4900
  //#endregion
4909
- //#region src/component-tokens/content-switcher/index.js
4901
+ //#region src/component-tokens/content-switcher/index.ts
4910
4902
  var content_switcher_exports = /* @__PURE__ */ __exportAll({ contentSwitcherTokens: () => tokens_exports });
4911
4903
  //#endregion
4912
- //#region src/tokens/Token.js
4913
- /**
4914
- * Copyright IBM Corp. 2018, 2025
4915
- *
4916
- * This source code is licensed under the Apache-2.0 license found in the
4917
- * LICENSE file in the root directory of this source tree.
4918
- */
4919
- /**
4920
- * A Token is the simplest unit in our theme. It can have a name, properties
4921
- * that it applies to like border or background, along with a state if the
4922
- * token should only be used for specific states like hover or focus.
4923
- */
4904
+ //#region src/tokens/Token.ts
4924
4905
  var Token = class Token {
4925
4906
  static create(token) {
4926
4907
  if (typeof token === "string") return new Token(token);
@@ -4934,9 +4915,9 @@ var Token = class Token {
4934
4915
  }
4935
4916
  };
4936
4917
  //#endregion
4937
- //#region src/tokens/TokenGroup.js
4918
+ //#region src/tokens/TokenGroup.ts
4938
4919
  /**
4939
- * Copyright IBM Corp. 2018, 2023
4920
+ * Copyright IBM Corp. 2018, 2026
4940
4921
  *
4941
4922
  * This source code is licensed under the Apache-2.0 license found in the
4942
4923
  * LICENSE file in the root directory of this source tree.
@@ -4961,7 +4942,7 @@ var TokenGroup = class TokenGroup {
4961
4942
  this.name = name;
4962
4943
  if (properties) this.properties = properties;
4963
4944
  this.children = tokens.map((child) => {
4964
- if (child.kind === "TokenGroup") return child;
4945
+ if (typeof child !== "string" && "kind" in child && child.kind === "TokenGroup") return child;
4965
4946
  return Token.create(child);
4966
4947
  });
4967
4948
  }
@@ -4975,7 +4956,6 @@ var TokenGroup = class TokenGroup {
4975
4956
  /**
4976
4957
  * Get all the tokens available in every Token Group in this TokenGroup,
4977
4958
  * including itself.
4978
- * @returns {Array<Token>}
4979
4959
  */
4980
4960
  getTokens(parentContext = {}) {
4981
4961
  const context = {
@@ -4997,7 +4977,6 @@ var TokenGroup = class TokenGroup {
4997
4977
  /**
4998
4978
  * Get a specific token from the TokenGroup, or form one of its nested
4999
4979
  * TokenGroups
5000
- * @returns {Token}
5001
4980
  */
5002
4981
  getToken(tokenOrName) {
5003
4982
  const name = typeof tokenOrName === "string" ? tokenOrName : tokenOrName.name;
@@ -5009,7 +4988,6 @@ var TokenGroup = class TokenGroup {
5009
4988
  }
5010
4989
  /**
5011
4990
  * Get all the unique groups in the token group, including this group
5012
- * @returns {Array<TokenGroup>}
5013
4991
  */
5014
4992
  getTokenGroups() {
5015
4993
  const set = /* @__PURE__ */ new Set();
@@ -5021,7 +4999,6 @@ var TokenGroup = class TokenGroup {
5021
4999
  }
5022
5000
  /**
5023
5001
  * Get all the unique properties in the token group, including this group
5024
- * @returns {Array<string>}
5025
5002
  */
5026
5003
  getTokenProperties() {
5027
5004
  const set = /* @__PURE__ */ new Set();
@@ -5033,7 +5010,6 @@ var TokenGroup = class TokenGroup {
5033
5010
  }
5034
5011
  /**
5035
5012
  * Get all the unique states in the token group, including this group
5036
- * @returns {Array<string>}
5037
5013
  */
5038
5014
  getTokenStates() {
5039
5015
  const set = /* @__PURE__ */ new Set();
@@ -5045,9 +5021,9 @@ var TokenGroup = class TokenGroup {
5045
5021
  }
5046
5022
  };
5047
5023
  //#endregion
5048
- //#region src/tokens/v11TokenGroup.js
5024
+ //#region src/tokens/v11TokenGroup.ts
5049
5025
  /**
5050
- * Copyright IBM Corp. 2018, 2023
5026
+ * Copyright IBM Corp. 2018, 2026
5051
5027
  *
5052
5028
  * This source code is licensed under the Apache-2.0 license found in the
5053
5029
  * LICENSE file in the root directory of this source tree.
@@ -5522,9 +5498,9 @@ const group = TokenGroup.create({
5522
5498
  ]
5523
5499
  });
5524
5500
  //#endregion
5525
- //#region src/tokens/components.js
5501
+ //#region src/tokens/components.ts
5526
5502
  /**
5527
- * Copyright IBM Corp. 2018, 2023
5503
+ * Copyright IBM Corp. 2018, 2026
5528
5504
  *
5529
5505
  * This source code is licensed under the Apache-2.0 license found in the
5530
5506
  * LICENSE file in the root directory of this source tree.
@@ -5644,9 +5620,9 @@ const contentSwitcher = TokenGroup.create({
5644
5620
  ]
5645
5621
  });
5646
5622
  //#endregion
5647
- //#region src/tokens/type.js
5623
+ //#region src/tokens/type.ts
5648
5624
  /**
5649
- * Copyright IBM Corp. 2018, 2023
5625
+ * Copyright IBM Corp. 2018, 2026
5650
5626
  *
5651
5627
  * This source code is licensed under the Apache-2.0 license found in the
5652
5628
  * LICENSE file in the root directory of this source tree.
@@ -5692,9 +5668,9 @@ const type$1 = TokenGroup.create({
5692
5668
  ]
5693
5669
  });
5694
5670
  //#endregion
5695
- //#region src/tokens/layout.js
5671
+ //#region src/tokens/layout.ts
5696
5672
  /**
5697
- * Copyright IBM Corp. 2018, 2023
5673
+ * Copyright IBM Corp. 2018, 2026
5698
5674
  *
5699
5675
  * This source code is licensed under the Apache-2.0 license found in the
5700
5676
  * LICENSE file in the root directory of this source tree.
@@ -5730,9 +5706,9 @@ const layout$1 = TokenGroup.create({
5730
5706
  ]
5731
5707
  });
5732
5708
  //#endregion
5733
- //#region src/tokens/v10.js
5709
+ //#region src/tokens/v10.ts
5734
5710
  /**
5735
- * Copyright IBM Corp. 2018, 2023
5711
+ * Copyright IBM Corp. 2018, 2026
5736
5712
  *
5737
5713
  * This source code is licensed under the Apache-2.0 license found in the
5738
5714
  * LICENSE file in the root directory of this source tree.
@@ -5912,47 +5888,38 @@ const v10 = [
5912
5888
  };
5913
5889
  })
5914
5890
  ];
5891
+ //#endregion
5892
+ //#region src/tokens/index.ts
5893
+ const formatMetadata = (name, type) => ({
5894
+ name,
5895
+ type
5896
+ });
5915
5897
  const unstable_metadata = {
5916
5898
  v11: [
5917
5899
  ...group.getTokens().map((token) => {
5918
- return {
5919
- name: token.name,
5920
- type: "color"
5921
- };
5900
+ return formatMetadata(token.name, "color");
5922
5901
  }),
5923
5902
  ...contextual.getTokens().map((token) => {
5924
- return {
5925
- name: token.name,
5926
- type: "color"
5927
- };
5903
+ return formatMetadata(token.name, "color");
5928
5904
  }),
5929
5905
  ...Object.values(components_exports).flatMap((group) => {
5930
5906
  return group.getTokens().map((token) => {
5931
- return {
5932
- name: token.name,
5933
- type: "color"
5934
- };
5907
+ return formatMetadata(token.name, "color");
5935
5908
  });
5936
5909
  }),
5937
5910
  ...type$1.getTokens().map((token) => {
5938
- return {
5939
- name: token.name,
5940
- type: "type"
5941
- };
5911
+ return formatMetadata(token.name, "type");
5942
5912
  }),
5943
5913
  ...layout$1.getTokens().map((token) => {
5944
- return {
5945
- name: token.name,
5946
- type: "layout"
5947
- };
5914
+ return formatMetadata(token.name, "layout");
5948
5915
  })
5949
5916
  ],
5950
5917
  v10
5951
5918
  };
5952
5919
  //#endregion
5953
- //#region src/index.js
5920
+ //#region src/index.ts
5954
5921
  /**
5955
- * Copyright IBM Corp. 2018, 2023
5922
+ * Copyright IBM Corp. 2018, 2026
5956
5923
  *
5957
5924
  * This source code is licensed under the Apache-2.0 license found in the
5958
5925
  * LICENSE file in the root directory of this source tree.
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022, 2026
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export * as buttonTokens from './tokens';
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022, 2026
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ declare const buttonSeparator: {
8
+ fallback: string;
9
+ whiteTheme: string;
10
+ g10: string;
11
+ g90: string;
12
+ g100: string;
13
+ };
14
+ declare const buttonPrimary: {
15
+ whiteTheme: string;
16
+ g10: string;
17
+ g90: string;
18
+ g100: string;
19
+ };
20
+ declare const buttonSecondary: {
21
+ whiteTheme: string;
22
+ g10: string;
23
+ g90: string;
24
+ g100: string;
25
+ };
26
+ declare const buttonTertiary: {
27
+ whiteTheme: string;
28
+ g10: string;
29
+ g90: string;
30
+ g100: string;
31
+ };
32
+ declare const buttonDangerPrimary: {
33
+ whiteTheme: string;
34
+ g10: string;
35
+ g90: string;
36
+ g100: string;
37
+ };
38
+ declare const buttonDangerSecondary: {
39
+ whiteTheme: string;
40
+ g10: string;
41
+ g90: string;
42
+ g100: string;
43
+ };
44
+ declare const buttonDangerActive: {
45
+ whiteTheme: string;
46
+ g10: string;
47
+ g90: string;
48
+ g100: string;
49
+ };
50
+ declare const buttonPrimaryActive: {
51
+ whiteTheme: string;
52
+ g10: string;
53
+ g90: string;
54
+ g100: string;
55
+ };
56
+ declare const buttonSecondaryActive: {
57
+ whiteTheme: string;
58
+ g10: string;
59
+ g90: string;
60
+ g100: string;
61
+ };
62
+ declare const buttonTertiaryActive: {
63
+ whiteTheme: string;
64
+ g10: string;
65
+ g90: string;
66
+ g100: string;
67
+ };
68
+ declare const buttonDangerHover: {
69
+ whiteTheme: string;
70
+ g10: string;
71
+ g90: string;
72
+ g100: string;
73
+ };
74
+ declare const buttonPrimaryHover: {
75
+ whiteTheme: string;
76
+ g10: string;
77
+ g90: string;
78
+ g100: string;
79
+ };
80
+ declare const buttonSecondaryHover: {
81
+ whiteTheme: string;
82
+ g10: string;
83
+ g90: string;
84
+ g100: string;
85
+ };
86
+ declare const buttonTertiaryHover: {
87
+ whiteTheme: string;
88
+ g10: string;
89
+ g90: string;
90
+ g100: string;
91
+ };
92
+ declare const buttonDisabled: {
93
+ whiteTheme: string;
94
+ g10: string;
95
+ g90: string;
96
+ g100: string;
97
+ };
98
+ export { buttonSeparator, buttonPrimary, buttonSecondary, buttonTertiary, buttonDangerPrimary, buttonDangerSecondary, buttonDangerActive, buttonPrimaryActive, buttonSecondaryActive, buttonTertiaryActive, buttonDangerHover, buttonPrimaryHover, buttonSecondaryHover, buttonTertiaryHover, buttonDisabled, };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2025
2
+ * Copyright IBM Corp. 2025, 2026
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright IBM Corp. 2025, 2026
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export declare const contentSwitcherSelected: {
8
+ whiteTheme: string;
9
+ g10: string;
10
+ g90: string;
11
+ g100: string;
12
+ };
13
+ export declare const contentSwitcherBackground: {
14
+ whiteTheme: string;
15
+ g10: string;
16
+ g90: string;
17
+ g100: string;
18
+ };
19
+ export declare const contentSwitcherBackgroundHover: {
20
+ whiteTheme: string;
21
+ g10: string;
22
+ g90: string;
23
+ g100: string;
24
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022, 2026
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export * as notificationTokens from './tokens';
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022, 2026
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export declare const notificationBackgroundError: {
8
+ whiteTheme: string;
9
+ g10: string;
10
+ g90: string;
11
+ g100: string;
12
+ };
13
+ export declare const notificationBackgroundSuccess: {
14
+ whiteTheme: string;
15
+ g10: string;
16
+ g90: string;
17
+ g100: string;
18
+ };
19
+ export declare const notificationBackgroundInfo: {
20
+ whiteTheme: string;
21
+ g10: string;
22
+ g90: string;
23
+ g100: string;
24
+ };
25
+ export declare const notificationBackgroundWarning: {
26
+ whiteTheme: string;
27
+ g10: string;
28
+ g90: string;
29
+ g100: string;
30
+ };
31
+ export declare const notificationActionHover: {
32
+ whiteTheme: string;
33
+ g10: string;
34
+ };
35
+ export declare const notificationActionTertiaryInverse: {
36
+ whiteTheme: string;
37
+ g10: string;
38
+ g90: string;
39
+ g100: string;
40
+ };
41
+ export declare const notificationActionTertiaryInverseActive: {
42
+ whiteTheme: string;
43
+ g10: string;
44
+ g90: string;
45
+ g100: string;
46
+ };
47
+ export declare const notificationActionTertiaryInverseHover: {
48
+ whiteTheme: string;
49
+ g10: string;
50
+ g90: string;
51
+ g100: string;
52
+ };
53
+ export declare const notificationActionTertiaryInverseText: {
54
+ whiteTheme: string;
55
+ g10: string;
56
+ g90: string;
57
+ g100: string;
58
+ };
59
+ export declare const notificationActionTertiaryInverseTextOnColorDisabled: {
60
+ whiteTheme: string;
61
+ g10: string;
62
+ g90: string;
63
+ g100: string;
64
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright IBM Corp. 2025, 2026
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export * as statusTokens from './tokens';