@instructure/ui-table 9.5.2-snapshot-7 → 9.6.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.
package/CHANGELOG.md CHANGED
@@ -3,17 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [9.5.2-snapshot-7](https://github.com/instructure/instructure-ui/compare/v9.5.1...v9.5.2-snapshot-7) (2024-07-31)
6
+ # [9.6.0](https://github.com/instructure/instructure-ui/compare/v9.5.2...v9.6.0) (2024-08-14)
7
7
 
8
+ **Note:** Version bump only for package @instructure/ui-table
8
9
 
9
- ### Features
10
10
 
11
- * **many:** rewrite color system ([1e5809e](https://github.com/instructure/instructure-ui/commit/1e5809e28dee8c2a71703a429609b8d2f95d76e6))
12
11
 
13
12
 
14
- ### BREAKING CHANGES
15
13
 
16
- * **many:** Breaks color overrides in certain cases
14
+ ## [9.5.2](https://github.com/instructure/instructure-ui/compare/v9.5.1...v9.5.2) (2024-08-05)
15
+
16
+ **Note:** Version bump only for package @instructure/ui-table
17
17
 
18
18
 
19
19
 
@@ -28,15 +28,14 @@
28
28
  * @return {Object} The final theme object with the overrides and component variables
29
29
  */
30
30
  const generateComponentTheme = theme => {
31
- var _colors$contrasts, _colors$contrasts2;
32
31
  const colors = theme.colors,
33
32
  typography = theme.typography;
34
33
  const componentVariables = {
35
34
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
36
35
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
37
36
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
38
- color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
39
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010
37
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
38
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
40
39
  };
41
40
  return {
42
41
  ...componentVariables
@@ -28,7 +28,6 @@
28
28
  * @return {Object} The final theme object with the overrides and component variables
29
29
  */
30
30
  const generateComponentTheme = theme => {
31
- var _colors$contrasts, _colors$contrasts2, _colors$contrasts3;
32
31
  const colors = theme.colors,
33
32
  typography = theme.typography,
34
33
  spacing = theme.spacing;
@@ -36,9 +35,9 @@ const generateComponentTheme = theme => {
36
35
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
37
36
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
38
37
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
39
- color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
40
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010,
41
- borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.grey1214,
38
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
39
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
40
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
42
41
  lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
43
42
  padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`
44
43
  };
@@ -28,7 +28,6 @@
28
28
  * @return {Object} The final theme object with the overrides and component variables
29
29
  */
30
30
  const generateComponentTheme = theme => {
31
- var _colors$contrasts, _colors$contrasts2, _colors$contrasts3, _colors$contrasts4;
32
31
  const typography = theme.typography,
33
32
  colors = theme.colors,
34
33
  borders = theme.borders,
@@ -36,12 +35,12 @@ const generateComponentTheme = theme => {
36
35
  const componentVariables = {
37
36
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
38
37
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
39
- color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
40
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010,
41
- borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.grey1214,
38
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
39
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
40
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
42
41
  lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
43
42
  padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`,
44
- focusOutlineColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts4 = colors.contrasts) === null || _colors$contrasts4 === void 0 ? void 0 : _colors$contrasts4.blue4570,
43
+ focusOutlineColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
45
44
  focusOutlineWidth: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
46
45
  focusOutlineStyle: borders === null || borders === void 0 ? void 0 : borders.style
47
46
  };
@@ -28,15 +28,14 @@
28
28
  * @return {Object} The final theme object with the overrides and component variables
29
29
  */
30
30
  const generateComponentTheme = theme => {
31
- var _colors$contrasts, _colors$contrasts2;
32
31
  const colors = theme.colors,
33
32
  typography = theme.typography;
34
33
  const componentVariables = {
35
34
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
36
35
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
37
36
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
38
- color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
39
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010
37
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
38
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
40
39
  };
41
40
  return {
42
41
  ...componentVariables
@@ -28,7 +28,6 @@
28
28
  * @return {Object} The final theme object with the overrides and component variables
29
29
  */
30
30
  const generateComponentTheme = theme => {
31
- var _colors$contrasts, _colors$contrasts2, _colors$contrasts3, _colors$contrasts4;
32
31
  const colors = theme.colors,
33
32
  typography = theme.typography,
34
33
  spacing = theme.spacing,
@@ -42,10 +41,10 @@ const generateComponentTheme = theme => {
42
41
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
43
42
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
44
43
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
45
- color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
46
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010,
47
- borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.grey1214,
48
- hoverBorderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts4 = colors.contrasts) === null || _colors$contrasts4 === void 0 ? void 0 : _colors$contrasts4.blue4570,
44
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
45
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
46
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
47
+ hoverBorderColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
49
48
  padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} 0`
50
49
  };
51
50
  return {
@@ -28,7 +28,6 @@
28
28
  * @return {Object} The final theme object with the overrides and component variables
29
29
  */
30
30
  const generateComponentTheme = theme => {
31
- var _colors$contrasts, _colors$contrasts2, _colors$contrasts3;
32
31
  const colors = theme.colors,
33
32
  typography = theme.typography,
34
33
  spacing = theme.spacing;
@@ -36,9 +35,9 @@ const generateComponentTheme = theme => {
36
35
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
37
36
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
38
37
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
39
- color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
40
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010,
41
- borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.grey4570,
38
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
39
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
40
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
42
41
  lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
43
42
  padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`
44
43
  };
package/es/Table/theme.js CHANGED
@@ -28,7 +28,6 @@
28
28
  * @return {Object} The final theme object with the overrides and component variables
29
29
  */
30
30
  const generateComponentTheme = theme => {
31
- var _colors$contrasts, _colors$contrasts2;
32
31
  const colors = theme.colors,
33
32
  typography = theme.typography,
34
33
  themeName = theme.key;
@@ -41,8 +40,8 @@ const generateComponentTheme = theme => {
41
40
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
42
41
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
43
42
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
44
- color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
45
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010
43
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
44
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
46
45
  };
47
46
  return {
48
47
  ...componentVariables,
@@ -34,15 +34,14 @@ exports.default = void 0;
34
34
  * @return {Object} The final theme object with the overrides and component variables
35
35
  */
36
36
  const generateComponentTheme = theme => {
37
- var _colors$contrasts, _colors$contrasts2;
38
37
  const colors = theme.colors,
39
38
  typography = theme.typography;
40
39
  const componentVariables = {
41
40
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
42
41
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
43
42
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
44
- color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
45
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010
43
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
44
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
46
45
  };
47
46
  return {
48
47
  ...componentVariables
@@ -34,7 +34,6 @@ exports.default = void 0;
34
34
  * @return {Object} The final theme object with the overrides and component variables
35
35
  */
36
36
  const generateComponentTheme = theme => {
37
- var _colors$contrasts, _colors$contrasts2, _colors$contrasts3;
38
37
  const colors = theme.colors,
39
38
  typography = theme.typography,
40
39
  spacing = theme.spacing;
@@ -42,9 +41,9 @@ const generateComponentTheme = theme => {
42
41
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
43
42
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
44
43
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
45
- color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
46
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010,
47
- borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.grey1214,
44
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
45
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
46
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
48
47
  lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
49
48
  padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`
50
49
  };
@@ -34,7 +34,6 @@ exports.default = void 0;
34
34
  * @return {Object} The final theme object with the overrides and component variables
35
35
  */
36
36
  const generateComponentTheme = theme => {
37
- var _colors$contrasts, _colors$contrasts2, _colors$contrasts3, _colors$contrasts4;
38
37
  const typography = theme.typography,
39
38
  colors = theme.colors,
40
39
  borders = theme.borders,
@@ -42,12 +41,12 @@ const generateComponentTheme = theme => {
42
41
  const componentVariables = {
43
42
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
44
43
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
45
- color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
46
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010,
47
- borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.grey1214,
44
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
45
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
46
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
48
47
  lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
49
48
  padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`,
50
- focusOutlineColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts4 = colors.contrasts) === null || _colors$contrasts4 === void 0 ? void 0 : _colors$contrasts4.blue4570,
49
+ focusOutlineColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
51
50
  focusOutlineWidth: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
52
51
  focusOutlineStyle: borders === null || borders === void 0 ? void 0 : borders.style
53
52
  };
@@ -34,15 +34,14 @@ exports.default = void 0;
34
34
  * @return {Object} The final theme object with the overrides and component variables
35
35
  */
36
36
  const generateComponentTheme = theme => {
37
- var _colors$contrasts, _colors$contrasts2;
38
37
  const colors = theme.colors,
39
38
  typography = theme.typography;
40
39
  const componentVariables = {
41
40
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
42
41
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
43
42
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
44
- color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
45
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010
43
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
44
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
46
45
  };
47
46
  return {
48
47
  ...componentVariables
@@ -34,7 +34,6 @@ exports.default = void 0;
34
34
  * @return {Object} The final theme object with the overrides and component variables
35
35
  */
36
36
  const generateComponentTheme = theme => {
37
- var _colors$contrasts, _colors$contrasts2, _colors$contrasts3, _colors$contrasts4;
38
37
  const colors = theme.colors,
39
38
  typography = theme.typography,
40
39
  spacing = theme.spacing,
@@ -48,10 +47,10 @@ const generateComponentTheme = theme => {
48
47
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
49
48
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
50
49
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
51
- color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
52
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010,
53
- borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.grey1214,
54
- hoverBorderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts4 = colors.contrasts) === null || _colors$contrasts4 === void 0 ? void 0 : _colors$contrasts4.blue4570,
50
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
51
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
52
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
53
+ hoverBorderColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
55
54
  padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} 0`
56
55
  };
57
56
  return {
@@ -34,7 +34,6 @@ exports.default = void 0;
34
34
  * @return {Object} The final theme object with the overrides and component variables
35
35
  */
36
36
  const generateComponentTheme = theme => {
37
- var _colors$contrasts, _colors$contrasts2, _colors$contrasts3;
38
37
  const colors = theme.colors,
39
38
  typography = theme.typography,
40
39
  spacing = theme.spacing;
@@ -42,9 +41,9 @@ const generateComponentTheme = theme => {
42
41
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
43
42
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
44
43
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
45
- color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
46
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010,
47
- borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.grey4570,
44
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
45
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
46
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
48
47
  lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
49
48
  padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`
50
49
  };
@@ -34,7 +34,6 @@ exports.default = void 0;
34
34
  * @return {Object} The final theme object with the overrides and component variables
35
35
  */
36
36
  const generateComponentTheme = theme => {
37
- var _colors$contrasts, _colors$contrasts2;
38
37
  const colors = theme.colors,
39
38
  typography = theme.typography,
40
39
  themeName = theme.key;
@@ -47,8 +46,8 @@ const generateComponentTheme = theme => {
47
46
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
48
47
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
49
48
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
50
- color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
51
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010
49
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
50
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
52
51
  };
53
52
  return {
54
53
  ...componentVariables,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-table",
3
- "version": "9.5.2-snapshot-7",
3
+ "version": "9.6.0",
4
4
  "description": "A styled HTML table component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,11 +23,11 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-axe-check": "9.5.2-snapshot-7",
27
- "@instructure/ui-babel-preset": "9.5.2-snapshot-7",
28
- "@instructure/ui-color-utils": "9.5.2-snapshot-7",
29
- "@instructure/ui-test-utils": "9.5.2-snapshot-7",
30
- "@instructure/ui-themes": "9.5.2-snapshot-7",
26
+ "@instructure/ui-axe-check": "9.6.0",
27
+ "@instructure/ui-babel-preset": "9.6.0",
28
+ "@instructure/ui-color-utils": "9.6.0",
29
+ "@instructure/ui-test-utils": "9.6.0",
30
+ "@instructure/ui-themes": "9.6.0",
31
31
  "@testing-library/jest-dom": "^6.4.6",
32
32
  "@testing-library/react": "^15.0.7",
33
33
  "@testing-library/user-event": "^14.5.2",
@@ -35,17 +35,17 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@babel/runtime": "^7.24.5",
38
- "@instructure/console": "9.5.2-snapshot-7",
39
- "@instructure/emotion": "9.5.2-snapshot-7",
40
- "@instructure/shared-types": "9.5.2-snapshot-7",
41
- "@instructure/ui-a11y-content": "9.5.2-snapshot-7",
42
- "@instructure/ui-icons": "9.5.2-snapshot-7",
43
- "@instructure/ui-prop-types": "9.5.2-snapshot-7",
44
- "@instructure/ui-react-utils": "9.5.2-snapshot-7",
45
- "@instructure/ui-simple-select": "9.5.2-snapshot-7",
46
- "@instructure/ui-testable": "9.5.2-snapshot-7",
47
- "@instructure/ui-utils": "9.5.2-snapshot-7",
48
- "@instructure/ui-view": "9.5.2-snapshot-7",
38
+ "@instructure/console": "9.6.0",
39
+ "@instructure/emotion": "9.6.0",
40
+ "@instructure/shared-types": "9.6.0",
41
+ "@instructure/ui-a11y-content": "9.6.0",
42
+ "@instructure/ui-icons": "9.6.0",
43
+ "@instructure/ui-prop-types": "9.6.0",
44
+ "@instructure/ui-react-utils": "9.6.0",
45
+ "@instructure/ui-simple-select": "9.6.0",
46
+ "@instructure/ui-testable": "9.6.0",
47
+ "@instructure/ui-utils": "9.6.0",
48
+ "@instructure/ui-view": "9.6.0",
49
49
  "prop-types": "^15.8.1"
50
50
  },
51
51
  "peerDependencies": {
@@ -37,8 +37,8 @@ const generateComponentTheme = (theme: Theme): TableBodyTheme => {
37
37
  fontFamily: typography?.fontFamily,
38
38
  fontWeight: typography?.fontWeightNormal,
39
39
 
40
- color: colors?.contrasts?.grey125125,
41
- background: colors?.contrasts?.white1010
40
+ color: colors?.textDarkest,
41
+ background: colors?.backgroundLightest
42
42
  }
43
43
 
44
44
  return {
@@ -38,10 +38,10 @@ const generateComponentTheme = (theme: Theme): TableCellTheme => {
38
38
  fontFamily: typography?.fontFamily,
39
39
  fontWeight: typography?.fontWeightNormal,
40
40
 
41
- color: colors?.contrasts?.grey125125,
42
- background: colors?.contrasts?.white1010,
41
+ color: colors?.textDarkest,
42
+ background: colors?.backgroundLightest,
43
43
 
44
- borderColor: colors?.contrasts?.grey1214,
44
+ borderColor: colors?.borderMedium,
45
45
 
46
46
  lineHeight: typography?.lineHeightCondensed,
47
47
  padding: `${spacing?.xSmall} ${spacing?.small}`
@@ -37,15 +37,15 @@ const generateComponentTheme = (theme: Theme): TableColHeaderTheme => {
37
37
  fontSize: typography?.fontSizeMedium,
38
38
  fontFamily: typography?.fontFamily,
39
39
 
40
- color: colors?.contrasts?.grey125125,
41
- background: colors?.contrasts?.white1010,
40
+ color: colors?.textDarkest,
41
+ background: colors?.backgroundLightest,
42
42
 
43
- borderColor: colors?.contrasts?.grey1214,
43
+ borderColor: colors?.borderMedium,
44
44
 
45
45
  lineHeight: typography?.lineHeightCondensed,
46
46
  padding: `${spacing?.xSmall} ${spacing?.small}`,
47
47
 
48
- focusOutlineColor: colors?.contrasts?.blue4570,
48
+ focusOutlineColor: colors?.borderBrand,
49
49
  focusOutlineWidth: borders?.widthMedium,
50
50
  focusOutlineStyle: borders?.style
51
51
  }
@@ -38,8 +38,8 @@ const generateComponentTheme = (theme: Theme): TableHeadTheme => {
38
38
  fontFamily: typography?.fontFamily,
39
39
  fontWeight: typography?.fontWeightNormal,
40
40
 
41
- color: colors?.contrasts?.grey125125,
42
- background: colors?.contrasts?.white1010
41
+ color: colors?.textDarkest,
42
+ background: colors?.backgroundLightest
43
43
  }
44
44
 
45
45
  return {
@@ -44,11 +44,11 @@ const generateComponentTheme = (theme: Theme): TableRowTheme => {
44
44
  fontFamily: typography?.fontFamily,
45
45
  fontWeight: typography?.fontWeightNormal,
46
46
 
47
- color: colors?.contrasts?.grey125125,
48
- background: colors?.contrasts?.white1010,
47
+ color: colors?.textDarkest,
48
+ background: colors?.backgroundLightest,
49
49
 
50
- borderColor: colors?.contrasts?.grey1214,
51
- hoverBorderColor: colors?.contrasts?.blue4570,
50
+ borderColor: colors?.borderMedium,
51
+ hoverBorderColor: colors?.borderBrand,
52
52
 
53
53
  padding: `${spacing?.xSmall} 0`
54
54
  }
@@ -38,10 +38,10 @@ const generateComponentTheme = (theme: Theme): TableRowHeaderTheme => {
38
38
  fontFamily: typography?.fontFamily,
39
39
  fontWeight: typography?.fontWeightNormal,
40
40
 
41
- color: colors?.contrasts?.grey125125,
42
- background: colors?.contrasts?.white1010,
41
+ color: colors?.textDarkest,
42
+ background: colors?.backgroundLightest,
43
43
 
44
- borderColor: colors?.contrasts?.grey4570,
44
+ borderColor: colors?.borderMedium,
45
45
 
46
46
  lineHeight: typography?.lineHeightCondensed,
47
47
  padding: `${spacing?.xSmall} ${spacing?.small}`
@@ -44,8 +44,8 @@ const generateComponentTheme = (theme: Theme): TableTheme => {
44
44
  fontFamily: typography?.fontFamily,
45
45
  fontWeight: typography?.fontWeightNormal,
46
46
 
47
- color: colors?.contrasts?.grey125125,
48
- background: colors?.contrasts?.white1010
47
+ color: colors?.textDarkest,
48
+ background: colors?.backgroundLightest
49
49
  }
50
50
 
51
51
  return {