@fluentui/react-theme 9.0.0-alpha.24 → 9.0.0-alpha.26

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 (116) hide show
  1. package/CHANGELOG.json +24 -1
  2. package/CHANGELOG.md +11 -2
  3. package/dist/react-theme.d.ts +163 -353
  4. package/lib/alias/dark.d.ts +3 -3
  5. package/lib/alias/dark.js +113 -119
  6. package/lib/alias/dark.js.map +1 -1
  7. package/lib/alias/highContrast.d.ts +3 -3
  8. package/lib/alias/highContrast.js +113 -119
  9. package/lib/alias/highContrast.js.map +1 -1
  10. package/lib/alias/light.d.ts +3 -3
  11. package/lib/alias/light.js +113 -119
  12. package/lib/alias/light.js.map +1 -1
  13. package/lib/alias/teamsDark.d.ts +3 -3
  14. package/lib/alias/teamsDark.js +113 -119
  15. package/lib/alias/teamsDark.js.map +1 -1
  16. package/lib/global/borderRadius.d.ts +2 -2
  17. package/lib/global/borderRadius.js +6 -6
  18. package/lib/global/borderRadius.js.map +1 -1
  19. package/lib/global/brandColors.d.ts +1 -2
  20. package/lib/global/brandColors.js +0 -4
  21. package/lib/global/brandColors.js.map +1 -1
  22. package/lib/global/fonts.d.ts +5 -6
  23. package/lib/global/fonts.js +26 -40
  24. package/lib/global/fonts.js.map +1 -1
  25. package/lib/global/index.d.ts +0 -1
  26. package/lib/global/index.js +0 -1
  27. package/lib/global/index.js.map +1 -1
  28. package/lib/global/strokeWidths.d.ts +2 -2
  29. package/lib/global/strokeWidths.js +4 -4
  30. package/lib/global/strokeWidths.js.map +1 -1
  31. package/lib/index.d.ts +1 -2
  32. package/lib/index.js +0 -2
  33. package/lib/index.js.map +1 -1
  34. package/lib/themes/teams/highContrastTheme.js +1 -2
  35. package/lib/themes/teams/highContrastTheme.js.map +1 -1
  36. package/lib/themes/web/highContrastTheme.js +1 -2
  37. package/lib/themes/web/highContrastTheme.js.map +1 -1
  38. package/lib/types.d.ts +153 -203
  39. package/lib/utils/createDarkTheme.js +5 -15
  40. package/lib/utils/createDarkTheme.js.map +1 -1
  41. package/lib/utils/createHighContrastTheme.d.ts +2 -2
  42. package/lib/utils/createHighContrastTheme.js +6 -16
  43. package/lib/utils/createHighContrastTheme.js.map +1 -1
  44. package/lib/utils/createLightTheme.js +5 -15
  45. package/lib/utils/createLightTheme.js.map +1 -1
  46. package/lib/utils/createTeamsDarkTheme.js +5 -15
  47. package/lib/utils/createTeamsDarkTheme.js.map +1 -1
  48. package/lib/utils/mergeThemes.d.ts +0 -6
  49. package/lib/utils/mergeThemes.js +3 -60
  50. package/lib/utils/mergeThemes.js.map +1 -1
  51. package/lib/utils/shadows.d.ts +2 -2
  52. package/lib/utils/shadows.js +1 -1
  53. package/lib/utils/shadows.js.map +1 -1
  54. package/lib/utils/themeToCSSVariables.d.ts +1 -1
  55. package/lib/utils/themeToCSSVariables.js +5 -22
  56. package/lib/utils/themeToCSSVariables.js.map +1 -1
  57. package/lib-commonjs/alias/dark.d.ts +3 -3
  58. package/lib-commonjs/alias/dark.js +116 -123
  59. package/lib-commonjs/alias/dark.js.map +1 -1
  60. package/lib-commonjs/alias/highContrast.d.ts +3 -3
  61. package/lib-commonjs/alias/highContrast.js +116 -123
  62. package/lib-commonjs/alias/highContrast.js.map +1 -1
  63. package/lib-commonjs/alias/light.d.ts +3 -3
  64. package/lib-commonjs/alias/light.js +116 -123
  65. package/lib-commonjs/alias/light.js.map +1 -1
  66. package/lib-commonjs/alias/teamsDark.d.ts +3 -3
  67. package/lib-commonjs/alias/teamsDark.js +116 -123
  68. package/lib-commonjs/alias/teamsDark.js.map +1 -1
  69. package/lib-commonjs/global/borderRadius.d.ts +2 -2
  70. package/lib-commonjs/global/borderRadius.js +6 -6
  71. package/lib-commonjs/global/borderRadius.js.map +1 -1
  72. package/lib-commonjs/global/brandColors.d.ts +1 -2
  73. package/lib-commonjs/global/brandColors.js +1 -5
  74. package/lib-commonjs/global/brandColors.js.map +1 -1
  75. package/lib-commonjs/global/fonts.d.ts +5 -6
  76. package/lib-commonjs/global/fonts.js +27 -41
  77. package/lib-commonjs/global/fonts.js.map +1 -1
  78. package/lib-commonjs/global/index.d.ts +0 -1
  79. package/lib-commonjs/global/index.js +0 -2
  80. package/lib-commonjs/global/index.js.map +1 -1
  81. package/lib-commonjs/global/strokeWidths.d.ts +2 -2
  82. package/lib-commonjs/global/strokeWidths.js +4 -4
  83. package/lib-commonjs/global/strokeWidths.js.map +1 -1
  84. package/lib-commonjs/index.d.ts +1 -2
  85. package/lib-commonjs/index.js +0 -4
  86. package/lib-commonjs/index.js.map +1 -1
  87. package/lib-commonjs/themes/teams/highContrastTheme.js +1 -3
  88. package/lib-commonjs/themes/teams/highContrastTheme.js.map +1 -1
  89. package/lib-commonjs/themes/web/highContrastTheme.js +1 -3
  90. package/lib-commonjs/themes/web/highContrastTheme.js.map +1 -1
  91. package/lib-commonjs/types.d.ts +153 -203
  92. package/lib-commonjs/utils/createDarkTheme.js +4 -15
  93. package/lib-commonjs/utils/createDarkTheme.js.map +1 -1
  94. package/lib-commonjs/utils/createHighContrastTheme.d.ts +2 -2
  95. package/lib-commonjs/utils/createHighContrastTheme.js +5 -16
  96. package/lib-commonjs/utils/createHighContrastTheme.js.map +1 -1
  97. package/lib-commonjs/utils/createLightTheme.js +4 -15
  98. package/lib-commonjs/utils/createLightTheme.js.map +1 -1
  99. package/lib-commonjs/utils/createTeamsDarkTheme.js +4 -15
  100. package/lib-commonjs/utils/createTeamsDarkTheme.js.map +1 -1
  101. package/lib-commonjs/utils/mergeThemes.d.ts +0 -6
  102. package/lib-commonjs/utils/mergeThemes.js +4 -61
  103. package/lib-commonjs/utils/mergeThemes.js.map +1 -1
  104. package/lib-commonjs/utils/shadows.d.ts +2 -2
  105. package/lib-commonjs/utils/shadows.js +3 -3
  106. package/lib-commonjs/utils/shadows.js.map +1 -1
  107. package/lib-commonjs/utils/themeToCSSVariables.d.ts +1 -1
  108. package/lib-commonjs/utils/themeToCSSVariables.js +5 -22
  109. package/lib-commonjs/utils/themeToCSSVariables.js.map +1 -1
  110. package/package.json +1 -1
  111. package/lib/global/utils.d.ts +0 -2
  112. package/lib/global/utils.js +0 -37
  113. package/lib/global/utils.js.map +0 -1
  114. package/lib-commonjs/global/utils.d.ts +0 -2
  115. package/lib-commonjs/global/utils.js +0 -51
  116. package/lib-commonjs/global/utils.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  export var borderRadius = {
2
- none: '0',
3
- small: '2px',
4
- medium: '4px',
5
- large: '6px',
6
- xLarge: '8px',
7
- circular: '10000px'
2
+ borderRadiusNone: '0',
3
+ borderRadiusSmall: '2px',
4
+ borderRadiusMedium: '4px',
5
+ borderRadiusLarge: '6px',
6
+ borderRadiusXLarge: '8px',
7
+ borderRadiusCircular: '10000px'
8
8
  };
9
9
  //# sourceMappingURL=borderRadius.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/global/borderRadius.ts"],"names":[],"mappings":"AAEA,OAAO,IAAM,YAAY,GAAiB;AACxC,EAAA,IAAI,EAAE,GADkC;AAExC,EAAA,KAAK,EAAE,KAFiC;AAGxC,EAAA,MAAM,EAAE,KAHgC;AAIxC,EAAA,KAAK,EAAE,KAJiC;AAKxC,EAAA,MAAM,EAAE,KALgC;AAMxC,EAAA,QAAQ,EAAE;AAN8B,CAAnC","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/global/borderRadius.ts"],"names":[],"mappings":"AAEA,OAAO,IAAM,YAAY,GAAuB;AAC9C,EAAA,gBAAgB,EAAE,GAD4B;AAE9C,EAAA,iBAAiB,EAAE,KAF2B;AAG9C,EAAA,kBAAkB,EAAE,KAH0B;AAI9C,EAAA,iBAAiB,EAAE,KAJ2B;AAK9C,EAAA,kBAAkB,EAAE,KAL0B;AAM9C,EAAA,oBAAoB,EAAE;AANwB,CAAzC","sourceRoot":""}
@@ -1,4 +1,3 @@
1
- import type { BrandVariants, ProductBrandColors } from '../types';
1
+ import type { BrandVariants } from '../types';
2
2
  export declare const brandWeb: BrandVariants;
3
3
  export declare const brandTeams: BrandVariants;
4
- export declare const brandColors: ProductBrandColors;
@@ -30,8 +30,4 @@ export var brandTeams = {
30
30
  tint50: '#DBDCF0',
31
31
  tint60: '#E9EAF6'
32
32
  };
33
- export var brandColors = {
34
- teams: brandTeams,
35
- web: brandWeb
36
- };
37
33
  //# sourceMappingURL=brandColors.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/global/brandColors.ts"],"names":[],"mappings":"AAEA;AACA,OAAO,IAAM,QAAQ,GAAkB;AACrC,EAAA,OAAO,EAAE,SAD4B;AAErC,EAAA,OAAO,EAAE,SAF4B;AAGrC,EAAA,OAAO,EAAE,SAH4B;AAIrC,EAAA,OAAO,EAAE,SAJ4B;AAKrC,EAAA,OAAO,EAAE,SAL4B;AAMrC,EAAA,OAAO,EAAE,SAN4B;AAOrC,EAAA,OAAO,EAAE,SAP4B;AAQrC,EAAA,MAAM,EAAE,SAR6B;AASrC,EAAA,MAAM,EAAE,SAT6B;AAUrC,EAAA,MAAM,EAAE,SAV6B;AAWrC,EAAA,MAAM,EAAE,SAX6B;AAYrC,EAAA,MAAM,EAAE,SAZ6B;AAarC,EAAA,MAAM,EAAE;AAb6B,CAAhC,C,CAgBP;;AACA,OAAO,IAAM,UAAU,GAAkB;AACvC,EAAA,OAAO,EAAE,SAD8B;AAEvC,EAAA,OAAO,EAAE,SAF8B;AAGvC,EAAA,OAAO,EAAE,SAH8B;AAIvC,EAAA,OAAO,EAAE,SAJ8B;AAKvC,EAAA,OAAO,EAAE,SAL8B;AAMvC,EAAA,OAAO,EAAE,SAN8B;AAOvC,EAAA,OAAO,EAAE,SAP8B;AAQvC,EAAA,MAAM,EAAE,SAR+B;AASvC,EAAA,MAAM,EAAE,SAT+B;AAUvC,EAAA,MAAM,EAAE,SAV+B;AAWvC,EAAA,MAAM,EAAE,SAX+B;AAYvC,EAAA,MAAM,EAAE,SAZ+B;AAavC,EAAA,MAAM,EAAE;AAb+B,CAAlC;AAgBP,OAAO,IAAM,WAAW,GAAuB;AAC7C,EAAA,KAAK,EAAE,UADsC;AAE7C,EAAA,GAAG,EAAE;AAFwC,CAAxC","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/global/brandColors.ts"],"names":[],"mappings":"AAEA;AACA,OAAO,IAAM,QAAQ,GAAkB;AACrC,EAAA,OAAO,EAAE,SAD4B;AAErC,EAAA,OAAO,EAAE,SAF4B;AAGrC,EAAA,OAAO,EAAE,SAH4B;AAIrC,EAAA,OAAO,EAAE,SAJ4B;AAKrC,EAAA,OAAO,EAAE,SAL4B;AAMrC,EAAA,OAAO,EAAE,SAN4B;AAOrC,EAAA,OAAO,EAAE,SAP4B;AAQrC,EAAA,MAAM,EAAE,SAR6B;AASrC,EAAA,MAAM,EAAE,SAT6B;AAUrC,EAAA,MAAM,EAAE,SAV6B;AAWrC,EAAA,MAAM,EAAE,SAX6B;AAYrC,EAAA,MAAM,EAAE,SAZ6B;AAarC,EAAA,MAAM,EAAE;AAb6B,CAAhC,C,CAgBP;;AACA,OAAO,IAAM,UAAU,GAAkB;AACvC,EAAA,OAAO,EAAE,SAD8B;AAEvC,EAAA,OAAO,EAAE,SAF8B;AAGvC,EAAA,OAAO,EAAE,SAH8B;AAIvC,EAAA,OAAO,EAAE,SAJ8B;AAKvC,EAAA,OAAO,EAAE,SAL8B;AAMvC,EAAA,OAAO,EAAE,SAN8B;AAOvC,EAAA,OAAO,EAAE,SAP8B;AAQvC,EAAA,MAAM,EAAE,SAR+B;AASvC,EAAA,MAAM,EAAE,SAT+B;AAUvC,EAAA,MAAM,EAAE,SAV+B;AAWvC,EAAA,MAAM,EAAE,SAX+B;AAYvC,EAAA,MAAM,EAAE,SAZ+B;AAavC,EAAA,MAAM,EAAE;AAb+B,CAAlC","sourceRoot":""}
@@ -1,6 +1,5 @@
1
- import type { FontFamilies, FontSizes, FontWeights, LineHeights, TextAlignments } from '../types';
2
- export declare const fontSizes: FontSizes;
3
- export declare const lineHeights: LineHeights;
4
- export declare const fontWeights: FontWeights;
5
- export declare const fontFamilies: FontFamilies;
6
- export declare const textAlignments: TextAlignments;
1
+ import type { FontFamilyTokens, FontSizeTokens, FontWeightTokens, LineHeightTokens } from '../types';
2
+ export declare const fontSizes: FontSizeTokens;
3
+ export declare const lineHeights: LineHeightTokens;
4
+ export declare const fontWeights: FontWeightTokens;
5
+ export declare const fontFamilies: FontFamilyTokens;
@@ -1,51 +1,37 @@
1
1
  export var fontSizes = {
2
- base: {
3
- 100: '10px',
4
- 200: '12px',
5
- 300: '14px',
6
- 400: '16px',
7
- 500: '20px',
8
- 600: '24px'
9
- },
10
- hero: {
11
- 700: '28px',
12
- 800: '32px',
13
- 900: '40px',
14
- 1000: '68px'
15
- }
2
+ fontSizeBase100: '10px',
3
+ fontSizeBase200: '12px',
4
+ fontSizeBase300: '14px',
5
+ fontSizeBase400: '16px',
6
+ fontSizeBase500: '20px',
7
+ fontSizeBase600: '24px',
8
+ fontSizeHero700: '28px',
9
+ fontSizeHero800: '32px',
10
+ fontSizeHero900: '40px',
11
+ fontSizeHero1000: '68px'
16
12
  };
17
13
  export var lineHeights = {
18
- base: {
19
- 100: '14px',
20
- 200: '16px',
21
- 300: '20px',
22
- 400: '22px',
23
- 500: '28px',
24
- 600: '32px'
25
- },
26
- hero: {
27
- 700: '36px',
28
- 800: '40px',
29
- 900: '52px',
30
- 1000: '92px'
31
- }
14
+ lineHeightBase100: '14px',
15
+ lineHeightBase200: '16px',
16
+ lineHeightBase300: '20px',
17
+ lineHeightBase400: '22px',
18
+ lineHeightBase500: '28px',
19
+ lineHeightBase600: '32px',
20
+ lineHeightHero700: '36px',
21
+ lineHeightHero800: '40px',
22
+ lineHeightHero900: '52px',
23
+ lineHeightHero1000: '92px'
32
24
  };
33
25
  export var fontWeights = {
34
- regular: 400,
35
- medium: 500,
36
- semibold: 600
26
+ fontWeightRegular: 400,
27
+ fontWeightMedium: 500,
28
+ fontWeightSemibold: 600
37
29
  };
38
30
  export var fontFamilies = {
39
- base: // eslint-disable-next-line @fluentui/max-len
31
+ fontFamilyBase: // eslint-disable-next-line @fluentui/max-len
40
32
  "'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",
41
- monospace: "Consolas, 'Courier New', Courier, monospace",
42
- numeric: // eslint-disable-next-line @fluentui/max-len
33
+ fontFamilyMonospace: "Consolas, 'Courier New', Courier, monospace",
34
+ fontFamilyNumeric: // eslint-disable-next-line @fluentui/max-len
43
35
  "Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"
44
36
  };
45
- export var textAlignments = {
46
- center: 'center',
47
- end: 'end',
48
- justify: 'justify',
49
- start: 'start'
50
- };
51
37
  //# sourceMappingURL=fonts.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/global/fonts.ts"],"names":[],"mappings":"AAEA,OAAO,IAAM,SAAS,GAAc;AAClC,EAAA,IAAI,EAAE;AACJ,SAAK,MADD;AAEJ,SAAK,MAFD;AAGJ,SAAK,MAHD;AAIJ,SAAK,MAJD;AAKJ,SAAK,MALD;AAMJ,SAAK;AAND,GAD4B;AASlC,EAAA,IAAI,EAAE;AACJ,SAAK,MADD;AAEJ,SAAK,MAFD;AAGJ,SAAK,MAHD;AAIJ,UAAM;AAJF;AAT4B,CAA7B;AAiBP,OAAO,IAAM,WAAW,GAAgB;AACtC,EAAA,IAAI,EAAE;AACJ,SAAK,MADD;AAEJ,SAAK,MAFD;AAGJ,SAAK,MAHD;AAIJ,SAAK,MAJD;AAKJ,SAAK,MALD;AAMJ,SAAK;AAND,GADgC;AAStC,EAAA,IAAI,EAAE;AACJ,SAAK,MADD;AAEJ,SAAK,MAFD;AAGJ,SAAK,MAHD;AAIJ,UAAM;AAJF;AATgC,CAAjC;AAiBP,OAAO,IAAM,WAAW,GAAgB;AACtC,EAAA,OAAO,EAAE,GAD6B;AAEtC,EAAA,MAAM,EAAE,GAF8B;AAGtC,EAAA,QAAQ,EAAE;AAH4B,CAAjC;AAMP,OAAO,IAAM,YAAY,GAAiB;AACxC,EAAA,IAAI,EACF;AACA,uHAHsC;AAIxC,EAAA,SAAS,EAAE,6CAJ6B;AAKxC,EAAA,OAAO,EACL;AACA;AAPsC,CAAnC;AAUP,OAAO,IAAM,cAAc,GAAmB;AAC5C,EAAA,MAAM,EAAE,QADoC;AAE5C,EAAA,GAAG,EAAE,KAFuC;AAG5C,EAAA,OAAO,EAAE,SAHmC;AAI5C,EAAA,KAAK,EAAE;AAJqC,CAAvC","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/global/fonts.ts"],"names":[],"mappings":"AAEA,OAAO,IAAM,SAAS,GAAmB;AACvC,EAAA,eAAe,EAAE,MADsB;AAEvC,EAAA,eAAe,EAAE,MAFsB;AAGvC,EAAA,eAAe,EAAE,MAHsB;AAIvC,EAAA,eAAe,EAAE,MAJsB;AAKvC,EAAA,eAAe,EAAE,MALsB;AAMvC,EAAA,eAAe,EAAE,MANsB;AAQvC,EAAA,eAAe,EAAE,MARsB;AASvC,EAAA,eAAe,EAAE,MATsB;AAUvC,EAAA,eAAe,EAAE,MAVsB;AAWvC,EAAA,gBAAgB,EAAE;AAXqB,CAAlC;AAcP,OAAO,IAAM,WAAW,GAAqB;AAC3C,EAAA,iBAAiB,EAAE,MADwB;AAE3C,EAAA,iBAAiB,EAAE,MAFwB;AAG3C,EAAA,iBAAiB,EAAE,MAHwB;AAI3C,EAAA,iBAAiB,EAAE,MAJwB;AAK3C,EAAA,iBAAiB,EAAE,MALwB;AAM3C,EAAA,iBAAiB,EAAE,MANwB;AAQ3C,EAAA,iBAAiB,EAAE,MARwB;AAS3C,EAAA,iBAAiB,EAAE,MATwB;AAU3C,EAAA,iBAAiB,EAAE,MAVwB;AAW3C,EAAA,kBAAkB,EAAE;AAXuB,CAAtC;AAcP,OAAO,IAAM,WAAW,GAAqB;AAC3C,EAAA,iBAAiB,EAAE,GADwB;AAE3C,EAAA,gBAAgB,EAAE,GAFyB;AAG3C,EAAA,kBAAkB,EAAE;AAHuB,CAAtC;AAMP,OAAO,IAAM,YAAY,GAAqB;AAC5C,EAAA,cAAc,EACZ;AACA,uHAH0C;AAI5C,EAAA,mBAAmB,EAAE,6CAJuB;AAK5C,EAAA,iBAAiB,EACf;AACA;AAP0C,CAAvC","sourceRoot":""}
@@ -2,4 +2,3 @@ export * from './colors';
2
2
  export * from './fonts';
3
3
  export * from './strokeWidths';
4
4
  export * from './borderRadius';
5
- export * from './utils';
@@ -2,5 +2,4 @@ export * from './colors';
2
2
  export * from './fonts';
3
3
  export * from './strokeWidths';
4
4
  export * from './borderRadius';
5
- export * from './utils';
6
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/global/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/global/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
@@ -1,2 +1,2 @@
1
- import type { StrokeWidths } from '../types';
2
- export declare const strokeWidths: StrokeWidths;
1
+ import type { StrokeWidthTokens } from '../types';
2
+ export declare const strokeWidths: StrokeWidthTokens;
@@ -1,7 +1,7 @@
1
1
  export var strokeWidths = {
2
- thin: '1px',
3
- thick: '2px',
4
- thicker: '3px',
5
- thickest: '4px'
2
+ strokeWidthThin: '1px',
3
+ strokeWidthThick: '2px',
4
+ strokeWidthThicker: '3px',
5
+ strokeWidthThickest: '4px'
6
6
  };
7
7
  //# sourceMappingURL=strokeWidths.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/global/strokeWidths.ts"],"names":[],"mappings":"AAEA,OAAO,IAAM,YAAY,GAAiB;AACxC,EAAA,IAAI,EAAE,KADkC;AAExC,EAAA,KAAK,EAAE,KAFiC;AAGxC,EAAA,OAAO,EAAE,KAH+B;AAIxC,EAAA,QAAQ,EAAE;AAJ8B,CAAnC","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/global/strokeWidths.ts"],"names":[],"mappings":"AAEA,OAAO,IAAM,YAAY,GAAsB;AAC7C,EAAA,eAAe,EAAE,KAD4B;AAE7C,EAAA,gBAAgB,EAAE,KAF2B;AAG7C,EAAA,kBAAkB,EAAE,KAHyB;AAI7C,EAAA,mBAAmB,EAAE;AAJwB,CAAxC","sourceRoot":""}
package/lib/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  export * from './themes/index';
2
- export * from './global/index';
3
2
  export * from './utils/index';
4
- export * from './types';
3
+ export type { BrandVariants, FontSizeTokens, FontWeightTokens, LineHeightTokens, BorderRadiusTokens, StrokeWidthTokens, ShadowTokens, FontFamilyTokens, ColorPaletteTokens, ColorTokens, PartialTheme, Theme, } from './types';
package/lib/index.js CHANGED
@@ -1,5 +1,3 @@
1
1
  export * from './themes/index';
2
- export * from './global/index';
3
2
  export * from './utils/index';
4
- export * from './types';
5
3
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,eAAe,CAAC;AAE9B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
@@ -1,4 +1,3 @@
1
1
  import { createHighContrastTheme } from '../../utils/createHighContrastTheme';
2
- import { brandTeams } from '../../global/brandColors';
3
- export var teamsHighContrastTheme = /*#__PURE__*/createHighContrastTheme(brandTeams);
2
+ export var teamsHighContrastTheme = /*#__PURE__*/createHighContrastTheme();
4
3
  //# sourceMappingURL=highContrastTheme.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/themes/teams/highContrastTheme.ts"],"names":[],"mappings":"AAAA,SAAS,uBAAT,QAAwC,qCAAxC;AACA,SAAS,UAAT,QAA2B,0BAA3B;AAGA,OAAO,IAAM,sBAAsB,gBAAU,uBAAuB,CAAC,UAAD,CAA7D","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/themes/teams/highContrastTheme.ts"],"names":[],"mappings":"AAAA,SAAS,uBAAT,QAAwC,qCAAxC;AAGA,OAAO,IAAM,sBAAsB,gBAAU,uBAAuB,EAA7D","sourceRoot":""}
@@ -1,4 +1,3 @@
1
1
  import { createHighContrastTheme } from '../../utils/createHighContrastTheme';
2
- import { brandWeb } from '../../global/brandColors';
3
- export var webHighContrastTheme = /*#__PURE__*/createHighContrastTheme(brandWeb);
2
+ export var webHighContrastTheme = /*#__PURE__*/createHighContrastTheme();
4
3
  //# sourceMappingURL=highContrastTheme.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/themes/web/highContrastTheme.ts"],"names":[],"mappings":"AAAA,SAAS,uBAAT,QAAwC,qCAAxC;AACA,SAAS,QAAT,QAAyB,0BAAzB;AAGA,OAAO,IAAM,oBAAoB,gBAAU,uBAAuB,CAAC,QAAD,CAA3D","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/themes/web/highContrastTheme.ts"],"names":[],"mappings":"AAAA,SAAS,uBAAT,QAAwC,qCAAxC;AAGA,OAAO,IAAM,oBAAoB,gBAAU,uBAAuB,EAA3D","sourceRoot":""}
package/lib/types.d.ts CHANGED
@@ -1,130 +1,116 @@
1
1
  /**
2
- * Recursive partial type.
2
+ * Design tokens for alias colors
3
3
  */
4
- declare type RecursivePartial<T> = {
5
- [P in keyof T]?: T[P] extends Array<infer I> ? Array<RecursivePartial<I>> : RecursivePartial<T[P]>;
6
- };
7
- /**
8
- * Design tokens for neutral colors
9
- */
10
- export declare type NeutralColorTokens = {
11
- neutralForeground1: string;
12
- neutralForeground2: string;
13
- neutralForeground2Hover: string;
14
- neutralForeground2Pressed: string;
15
- neutralForeground2Selected: string;
16
- neutralForeground2BrandHover: string;
17
- neutralForeground2BrandPressed: string;
18
- neutralForeground2BrandSelected: string;
19
- neutralForeground3: string;
20
- neutralForeground3Hover: string;
21
- neutralForeground3Pressed: string;
22
- neutralForeground3Selected: string;
23
- neutralForeground3BrandHover: string;
24
- neutralForeground3BrandPressed: string;
25
- neutralForeground3BrandSelected: string;
26
- neutralForeground4: string;
27
- neutralForegroundDisabled: string;
28
- brandForegroundLink: string;
29
- brandForegroundLinkHover: string;
30
- brandForegroundLinkPressed: string;
31
- brandForegroundLinkSelected: string;
32
- compoundBrandForeground1: string;
33
- compoundBrandForeground1Hover: string;
34
- compoundBrandForeground1Pressed: string;
35
- brandForeground1: string;
36
- brandForeground2: string;
37
- neutralForegroundInverted: string;
38
- neutralForegroundOnBrand: string;
39
- neutralForegroundInvertedLink: string;
40
- neutralForegroundInvertedLinkHover: string;
41
- neutralForegroundInvertedLinkPressed: string;
42
- neutralForegroundInvertedLinkSelected: string;
43
- neutralBackground1: string;
44
- neutralBackground1Hover: string;
45
- neutralBackground1Pressed: string;
46
- neutralBackground1Selected: string;
47
- neutralBackground2: string;
48
- neutralBackground2Hover: string;
49
- neutralBackground2Pressed: string;
50
- neutralBackground2Selected: string;
51
- neutralBackground3: string;
52
- neutralBackground3Hover: string;
53
- neutralBackground3Pressed: string;
54
- neutralBackground3Selected: string;
55
- neutralBackground4: string;
56
- neutralBackground4Hover: string;
57
- neutralBackground4Pressed: string;
58
- neutralBackground4Selected: string;
59
- neutralBackground5: string;
60
- neutralBackground5Hover: string;
61
- neutralBackground5Pressed: string;
62
- neutralBackground5Selected: string;
63
- neutralBackground6: string;
64
- neutralBackgroundInverted: string;
65
- subtleBackground: string;
66
- subtleBackgroundHover: string;
67
- subtleBackgroundPressed: string;
68
- subtleBackgroundSelected: string;
69
- transparentBackground: string;
70
- transparentBackgroundHover: string;
71
- transparentBackgroundPressed: string;
72
- transparentBackgroundSelected: string;
73
- neutralBackgroundDisabled: string;
74
- neutralStencil1: string;
75
- neutralStencil2: string;
76
- brandBackground: string;
77
- brandBackgroundHover: string;
78
- brandBackgroundPressed: string;
79
- brandBackgroundSelected: string;
80
- compoundBrandBackground: string;
81
- compoundBrandBackgroundHover: string;
82
- compoundBrandBackgroundPressed: string;
83
- brandBackgroundStatic: string;
84
- brandBackground2: string;
85
- neutralStrokeAccessible: string;
86
- neutralStrokeAccessibleHover: string;
87
- neutralStrokeAccessiblePressed: string;
88
- neutralStrokeAccessibleSelected: string;
89
- neutralStroke1: string;
90
- neutralStroke1Hover: string;
91
- neutralStroke1Pressed: string;
92
- neutralStroke1Selected: string;
93
- neutralStroke2: string;
94
- neutralStroke3: string;
95
- brandStroke1: string;
96
- brandStroke2: string;
97
- compoundBrandStroke: string;
98
- compoundBrandStrokeHover: string;
99
- compoundBrandStrokePressed: string;
100
- neutralStrokeDisabled: string;
101
- transparentStroke: string;
102
- transparentStrokeInteractive: string;
103
- transparentStrokeDisabled: string;
104
- strokeFocus1: string;
105
- strokeFocus2: string;
106
- neutralShadowAmbient: string;
107
- neutralShadowKey: string;
108
- neutralShadowAmbientLighter: string;
109
- neutralShadowKeyLighter: string;
110
- neutralShadowAmbientDarker: string;
111
- neutralShadowKeyDarker: string;
112
- brandShadowAmbient: string;
113
- brandShadowKey: string;
4
+ export declare type ColorTokens = {
5
+ colorNeutralForeground1: string;
6
+ colorNeutralForeground2: string;
7
+ colorNeutralForeground2Hover: string;
8
+ colorNeutralForeground2Pressed: string;
9
+ colorNeutralForeground2Selected: string;
10
+ colorNeutralForeground2BrandHover: string;
11
+ colorNeutralForeground2BrandPressed: string;
12
+ colorNeutralForeground2BrandSelected: string;
13
+ colorNeutralForeground3: string;
14
+ colorNeutralForeground3Hover: string;
15
+ colorNeutralForeground3Pressed: string;
16
+ colorNeutralForeground3Selected: string;
17
+ colorNeutralForeground3BrandHover: string;
18
+ colorNeutralForeground3BrandPressed: string;
19
+ colorNeutralForeground3BrandSelected: string;
20
+ colorNeutralForeground4: string;
21
+ colorNeutralForegroundDisabled: string;
22
+ colorBrandForegroundLink: string;
23
+ colorBrandForegroundLinkHover: string;
24
+ colorBrandForegroundLinkPressed: string;
25
+ colorBrandForegroundLinkSelected: string;
26
+ colorCompoundBrandForeground1: string;
27
+ colorCompoundBrandForeground1Hover: string;
28
+ colorCompoundBrandForeground1Pressed: string;
29
+ colorBrandForeground1: string;
30
+ colorBrandForeground2: string;
31
+ colorNeutralForegroundInverted: string;
32
+ colorNeutralForegroundOnBrand: string;
33
+ colorNeutralForegroundInvertedLink: string;
34
+ colorNeutralForegroundInvertedLinkHover: string;
35
+ colorNeutralForegroundInvertedLinkPressed: string;
36
+ colorNeutralForegroundInvertedLinkSelected: string;
37
+ colorNeutralBackground1: string;
38
+ colorNeutralBackground1Hover: string;
39
+ colorNeutralBackground1Pressed: string;
40
+ colorNeutralBackground1Selected: string;
41
+ colorNeutralBackground2: string;
42
+ colorNeutralBackground2Hover: string;
43
+ colorNeutralBackground2Pressed: string;
44
+ colorNeutralBackground2Selected: string;
45
+ colorNeutralBackground3: string;
46
+ colorNeutralBackground3Hover: string;
47
+ colorNeutralBackground3Pressed: string;
48
+ colorNeutralBackground3Selected: string;
49
+ colorNeutralBackground4: string;
50
+ colorNeutralBackground4Hover: string;
51
+ colorNeutralBackground4Pressed: string;
52
+ colorNeutralBackground4Selected: string;
53
+ colorNeutralBackground5: string;
54
+ colorNeutralBackground5Hover: string;
55
+ colorNeutralBackground5Pressed: string;
56
+ colorNeutralBackground5Selected: string;
57
+ colorNeutralBackground6: string;
58
+ colorNeutralBackgroundInverted: string;
59
+ colorSubtleBackground: string;
60
+ colorSubtleBackgroundHover: string;
61
+ colorSubtleBackgroundPressed: string;
62
+ colorSubtleBackgroundSelected: string;
63
+ colorTransparentBackground: string;
64
+ colorTransparentBackgroundHover: string;
65
+ colorTransparentBackgroundPressed: string;
66
+ colorTransparentBackgroundSelected: string;
67
+ colorNeutralBackgroundDisabled: string;
68
+ colorNeutralStencil1: string;
69
+ colorNeutralStencil2: string;
70
+ colorBrandBackground: string;
71
+ colorBrandBackgroundHover: string;
72
+ colorBrandBackgroundPressed: string;
73
+ colorBrandBackgroundSelected: string;
74
+ colorCompoundBrandBackground: string;
75
+ colorCompoundBrandBackgroundHover: string;
76
+ colorCompoundBrandBackgroundPressed: string;
77
+ colorBrandBackgroundStatic: string;
78
+ colorBrandBackground2: string;
79
+ colorNeutralStrokeAccessible: string;
80
+ colorNeutralStrokeAccessibleHover: string;
81
+ colorNeutralStrokeAccessiblePressed: string;
82
+ colorNeutralStrokeAccessibleSelected: string;
83
+ colorNeutralStroke1: string;
84
+ colorNeutralStroke1Hover: string;
85
+ colorNeutralStroke1Pressed: string;
86
+ colorNeutralStroke1Selected: string;
87
+ colorNeutralStroke2: string;
88
+ colorNeutralStroke3: string;
89
+ colorBrandStroke1: string;
90
+ colorBrandStroke2: string;
91
+ colorCompoundBrandStroke: string;
92
+ colorCompoundBrandStrokeHover: string;
93
+ colorCompoundBrandStrokePressed: string;
94
+ colorNeutralStrokeDisabled: string;
95
+ colorTransparentStroke: string;
96
+ colorTransparentStrokeInteractive: string;
97
+ colorTransparentStrokeDisabled: string;
98
+ colorStrokeFocus1: string;
99
+ colorStrokeFocus2: string;
100
+ colorNeutralShadowAmbient: string;
101
+ colorNeutralShadowKey: string;
102
+ colorNeutralShadowAmbientLighter: string;
103
+ colorNeutralShadowKeyLighter: string;
104
+ colorNeutralShadowAmbientDarker: string;
105
+ colorNeutralShadowKeyDarker: string;
106
+ colorBrandShadowAmbient: string;
107
+ colorBrandShadowKey: string;
114
108
  };
109
+ export declare type ColorPaletteT<Color extends string> = `colorPalette${Color}Background1` | `colorPalette${Color}Background2` | `colorPalette${Color}Background3` | `colorPalette${Color}Foreground1` | `colorPalette${Color}Foreground2` | `colorPalette${Color}Foreground3` | `colorPalette${Color}BorderActive` | `colorPalette${Color}Border2`;
115
110
  /**
116
111
  * Design tokens available for shared colors
117
112
  */
118
- export declare type SharedColorTokens = {
119
- background1: string;
120
- background2: string;
121
- background3: string;
122
- foreground1: string;
123
- foreground2: string;
124
- foreground3: string;
125
- borderActive: string;
126
- border2: string;
127
- };
113
+ export declare type ColorPaletteTokens = Record<ColorPaletteT<GlobalSharedColorsT>, string>;
128
114
  /**
129
115
  * Possible color variant values
130
116
  */
@@ -199,39 +185,40 @@ export declare type GlobalSharedColors = {
199
185
  anchor: ColorVariants;
200
186
  charcoal: ColorVariants;
201
187
  };
202
- /**
203
- * Brand color variants by product
204
- */
205
- export declare type ProductBrandColors = {
206
- teams: BrandVariants;
207
- web: BrandVariants;
188
+ export declare type GlobalSharedColorsT = 'DarkRed' | 'Burgundy' | 'Cranberry' | 'Red' | 'DarkOrange' | 'Bronze' | 'Pumpkin' | 'Orange' | 'Peach' | 'Marigold' | 'Yellow' | 'Gold' | 'Brass' | 'Brown' | 'DarkBrown' | 'Lime' | 'Forest' | 'Seafoam' | 'LightGreen' | 'Green' | 'DarkGreen' | 'LightTeal' | 'Teal' | 'DarkTeal' | 'Cyan' | 'Steel' | 'LightBlue' | 'Blue' | 'RoyalBlue' | 'DarkBlue' | 'Cornflower' | 'Navy' | 'Lavender' | 'Purple' | 'DarkPurple' | 'Orchid' | 'Grape' | 'Berry' | 'Lilac' | 'Pink' | 'HotPink' | 'Magenta' | 'Plum' | 'Beige' | 'Mink' | 'Silver' | 'Platinum' | 'Anchor' | 'Charcoal';
189
+ export declare type FontSizeTokens = {
190
+ fontSizeBase100: string;
191
+ fontSizeBase200: string;
192
+ fontSizeBase300: string;
193
+ fontSizeBase400: string;
194
+ fontSizeBase500: string;
195
+ fontSizeBase600: string;
196
+ fontSizeHero700: string;
197
+ fontSizeHero800: string;
198
+ fontSizeHero900: string;
199
+ fontSizeHero1000: string;
208
200
  };
209
- export declare type FontSizes = {
210
- base: {
211
- 100: string;
212
- 200: string;
213
- 300: string;
214
- 400: string;
215
- 500: string;
216
- 600: string;
217
- };
218
- hero: {
219
- 700: string;
220
- 800: string;
221
- 900: string;
222
- 1000: string;
223
- };
201
+ export declare type LineHeightTokens = {
202
+ lineHeightBase100: string;
203
+ lineHeightBase200: string;
204
+ lineHeightBase300: string;
205
+ lineHeightBase400: string;
206
+ lineHeightBase500: string;
207
+ lineHeightBase600: string;
208
+ lineHeightHero700: string;
209
+ lineHeightHero800: string;
210
+ lineHeightHero900: string;
211
+ lineHeightHero1000: string;
224
212
  };
225
- export declare type LineHeights = FontSizes;
226
- export declare type FontWeights = {
227
- regular: number;
228
- medium: number;
229
- semibold: number;
213
+ export declare type FontWeightTokens = {
214
+ fontWeightRegular: number;
215
+ fontWeightMedium: number;
216
+ fontWeightSemibold: number;
230
217
  };
231
- export declare type FontFamilies = {
232
- base: string;
233
- monospace: string;
234
- numeric: string;
218
+ export declare type FontFamilyTokens = {
219
+ fontFamilyBase: string;
220
+ fontFamilyMonospace: string;
221
+ fontFamilyNumeric: string;
235
222
  };
236
223
  export declare type TextAlignment = 'inherit' | 'initial' | 'revert' | 'unset' | 'center' | 'end' | 'start' | 'justify' | 'left' | 'match-parent' | 'right';
237
224
  export declare type TextAlignments = {
@@ -240,24 +227,24 @@ export declare type TextAlignments = {
240
227
  end: TextAlignment;
241
228
  justify: TextAlignment;
242
229
  };
243
- export declare type BorderRadius = {
244
- none: string;
245
- small: string;
246
- medium: string;
247
- large: string;
248
- xLarge: string;
249
- circular: string;
230
+ export declare type BorderRadiusTokens = {
231
+ borderRadiusNone: string;
232
+ borderRadiusSmall: string;
233
+ borderRadiusMedium: string;
234
+ borderRadiusLarge: string;
235
+ borderRadiusXLarge: string;
236
+ borderRadiusCircular: string;
250
237
  };
251
- export declare type StrokeWidths = {
252
- thin: string;
253
- thick: string;
254
- thicker: string;
255
- thickest: string;
238
+ export declare type StrokeWidthTokens = {
239
+ strokeWidthThin: string;
240
+ strokeWidthThick: string;
241
+ strokeWidthThicker: string;
242
+ strokeWidthThickest: string;
256
243
  };
257
244
  /**
258
245
  * Design tokens for shadow levels
259
246
  */
260
- export declare type ShadowLevelTokens = {
247
+ export declare type ShadowTokens = {
261
248
  shadow2: string;
262
249
  shadow4: string;
263
250
  shadow8: string;
@@ -292,42 +279,5 @@ export declare type BrandColorTokens = {
292
279
  };
293
280
  export declare type Greys = 0 | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 | 32 | 34 | 36 | 38 | 40 | 42 | 44 | 46 | 48 | 50 | 52 | 54 | 56 | 58 | 60 | 62 | 64 | 66 | 68 | 70 | 72 | 74 | 76 | 78 | 80 | 82 | 84 | 86 | 88 | 90 | 92 | 94 | 96 | 98 | 100;
294
281
  export declare type AlphaColors = 5 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90;
295
- export declare type Theme = {
296
- global: {
297
- color: {
298
- black: string;
299
- white: string;
300
- hcHyperlink: string;
301
- hcHighlight: string;
302
- hcDisabled: string;
303
- hcCanvas: string;
304
- hcCanvasText: string;
305
- hcHighlightText: string;
306
- hcButtonText: string;
307
- hcButtonFace: string;
308
- };
309
- palette: GlobalSharedColors & {
310
- brand: BrandVariants;
311
- grey: Record<Greys, string>;
312
- whiteAlpha: Record<AlphaColors, string>;
313
- blackAlpha: Record<AlphaColors, string>;
314
- };
315
- type: {
316
- fontSizes: FontSizes;
317
- fontWeights: FontWeights;
318
- fontFamilies: FontFamilies;
319
- lineHeights: LineHeights;
320
- alignment: TextAlignments;
321
- };
322
- borderRadius: BorderRadius;
323
- strokeWidth: StrokeWidths;
324
- };
325
- alias: {
326
- color: Record<keyof GlobalSharedColors, SharedColorTokens> & {
327
- neutral: NeutralColorTokens;
328
- };
329
- shadow: ShadowLevelTokens;
330
- };
331
- };
332
- export declare type PartialTheme = RecursivePartial<Theme>;
333
- export {};
282
+ export declare type Theme = FontSizeTokens & LineHeightTokens & BorderRadiusTokens & StrokeWidthTokens & ShadowTokens & FontFamilyTokens & FontWeightTokens & ColorPaletteTokens & ColorTokens;
283
+ export declare type PartialTheme = Partial<Theme>;