@instructure/ui-table 9.5.2-snapshot-0 → 9.5.2-snapshot-7
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 +10 -2
- package/es/Table/Body/theme.js +3 -2
- package/es/Table/Cell/theme.js +4 -3
- package/es/Table/ColHeader/theme.js +5 -4
- package/es/Table/Head/theme.js +3 -2
- package/es/Table/Row/theme.js +5 -4
- package/es/Table/RowHeader/theme.js +4 -3
- package/es/Table/theme.js +3 -2
- package/lib/Table/Body/theme.js +3 -2
- package/lib/Table/Cell/theme.js +4 -3
- package/lib/Table/ColHeader/theme.js +5 -4
- package/lib/Table/Head/theme.js +3 -2
- package/lib/Table/Row/theme.js +5 -4
- package/lib/Table/RowHeader/theme.js +4 -3
- package/lib/Table/theme.js +3 -2
- package/package.json +17 -17
- package/src/Table/Body/theme.ts +2 -2
- package/src/Table/Cell/theme.ts +3 -3
- package/src/Table/ColHeader/theme.ts +4 -4
- package/src/Table/Head/theme.ts +2 -2
- package/src/Table/Row/theme.ts +4 -4
- package/src/Table/RowHeader/theme.ts +3 -3
- package/src/Table/theme.ts +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
@@ -3,9 +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-
|
6
|
+
## [9.5.2-snapshot-7](https://github.com/instructure/instructure-ui/compare/v9.5.1...v9.5.2-snapshot-7) (2024-07-31)
|
7
7
|
|
8
|
-
|
8
|
+
|
9
|
+
### Features
|
10
|
+
|
11
|
+
* **many:** rewrite color system ([1e5809e](https://github.com/instructure/instructure-ui/commit/1e5809e28dee8c2a71703a429609b8d2f95d76e6))
|
12
|
+
|
13
|
+
|
14
|
+
### BREAKING CHANGES
|
15
|
+
|
16
|
+
* **many:** Breaks color overrides in certain cases
|
9
17
|
|
10
18
|
|
11
19
|
|
package/es/Table/Body/theme.js
CHANGED
@@ -28,14 +28,15 @@
|
|
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;
|
31
32
|
const colors = theme.colors,
|
32
33
|
typography = theme.typography;
|
33
34
|
const componentVariables = {
|
34
35
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
35
36
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
36
37
|
fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
|
37
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
38
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
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
|
39
40
|
};
|
40
41
|
return {
|
41
42
|
...componentVariables
|
package/es/Table/Cell/theme.js
CHANGED
@@ -28,6 +28,7 @@
|
|
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;
|
31
32
|
const colors = theme.colors,
|
32
33
|
typography = theme.typography,
|
33
34
|
spacing = theme.spacing;
|
@@ -35,9 +36,9 @@ const generateComponentTheme = theme => {
|
|
35
36
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
36
37
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
37
38
|
fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
|
38
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
39
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
40
|
-
borderColor: colors === null || colors === void 0 ? void 0 : colors.
|
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,
|
41
42
|
lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
|
42
43
|
padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`
|
43
44
|
};
|
@@ -28,6 +28,7 @@
|
|
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;
|
31
32
|
const typography = theme.typography,
|
32
33
|
colors = theme.colors,
|
33
34
|
borders = theme.borders,
|
@@ -35,12 +36,12 @@ const generateComponentTheme = theme => {
|
|
35
36
|
const componentVariables = {
|
36
37
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
37
38
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
38
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
39
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
40
|
-
borderColor: colors === null || colors === void 0 ? void 0 : colors.
|
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,
|
41
42
|
lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
|
42
43
|
padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`,
|
43
|
-
focusOutlineColor: colors === null || colors === void 0 ? void 0 : colors.
|
44
|
+
focusOutlineColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts4 = colors.contrasts) === null || _colors$contrasts4 === void 0 ? void 0 : _colors$contrasts4.blue4570,
|
44
45
|
focusOutlineWidth: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
|
45
46
|
focusOutlineStyle: borders === null || borders === void 0 ? void 0 : borders.style
|
46
47
|
};
|
package/es/Table/Head/theme.js
CHANGED
@@ -28,14 +28,15 @@
|
|
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;
|
31
32
|
const colors = theme.colors,
|
32
33
|
typography = theme.typography;
|
33
34
|
const componentVariables = {
|
34
35
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
35
36
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
36
37
|
fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
|
37
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
38
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
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
|
39
40
|
};
|
40
41
|
return {
|
41
42
|
...componentVariables
|
package/es/Table/Row/theme.js
CHANGED
@@ -28,6 +28,7 @@
|
|
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;
|
31
32
|
const colors = theme.colors,
|
32
33
|
typography = theme.typography,
|
33
34
|
spacing = theme.spacing,
|
@@ -41,10 +42,10 @@ const generateComponentTheme = theme => {
|
|
41
42
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
42
43
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
43
44
|
fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
|
44
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
45
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
46
|
-
borderColor: colors === null || colors === void 0 ? void 0 : colors.
|
47
|
-
hoverBorderColor: colors === null || colors === void 0 ? void 0 : colors.
|
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,
|
48
49
|
padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} 0`
|
49
50
|
};
|
50
51
|
return {
|
@@ -28,6 +28,7 @@
|
|
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;
|
31
32
|
const colors = theme.colors,
|
32
33
|
typography = theme.typography,
|
33
34
|
spacing = theme.spacing;
|
@@ -35,9 +36,9 @@ const generateComponentTheme = theme => {
|
|
35
36
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
36
37
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
37
38
|
fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
|
38
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
39
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
40
|
-
borderColor: colors === null || colors === void 0 ? void 0 : colors.
|
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,
|
41
42
|
lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
|
42
43
|
padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`
|
43
44
|
};
|
package/es/Table/theme.js
CHANGED
@@ -28,6 +28,7 @@
|
|
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;
|
31
32
|
const colors = theme.colors,
|
32
33
|
typography = theme.typography,
|
33
34
|
themeName = theme.key;
|
@@ -40,8 +41,8 @@ const generateComponentTheme = theme => {
|
|
40
41
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
41
42
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
42
43
|
fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
|
43
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
44
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
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
|
45
46
|
};
|
46
47
|
return {
|
47
48
|
...componentVariables,
|
package/lib/Table/Body/theme.js
CHANGED
@@ -34,14 +34,15 @@ 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;
|
37
38
|
const colors = theme.colors,
|
38
39
|
typography = theme.typography;
|
39
40
|
const componentVariables = {
|
40
41
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
41
42
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
42
43
|
fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
|
43
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
44
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
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
|
45
46
|
};
|
46
47
|
return {
|
47
48
|
...componentVariables
|
package/lib/Table/Cell/theme.js
CHANGED
@@ -34,6 +34,7 @@ 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;
|
37
38
|
const colors = theme.colors,
|
38
39
|
typography = theme.typography,
|
39
40
|
spacing = theme.spacing;
|
@@ -41,9 +42,9 @@ const generateComponentTheme = theme => {
|
|
41
42
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
42
43
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
43
44
|
fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
|
44
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
45
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
46
|
-
borderColor: colors === null || colors === void 0 ? void 0 : colors.
|
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,
|
47
48
|
lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
|
48
49
|
padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`
|
49
50
|
};
|
@@ -34,6 +34,7 @@ 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;
|
37
38
|
const typography = theme.typography,
|
38
39
|
colors = theme.colors,
|
39
40
|
borders = theme.borders,
|
@@ -41,12 +42,12 @@ const generateComponentTheme = theme => {
|
|
41
42
|
const componentVariables = {
|
42
43
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
43
44
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
44
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
45
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
46
|
-
borderColor: colors === null || colors === void 0 ? void 0 : colors.
|
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,
|
47
48
|
lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
|
48
49
|
padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`,
|
49
|
-
focusOutlineColor: colors === null || colors === void 0 ? void 0 : colors.
|
50
|
+
focusOutlineColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts4 = colors.contrasts) === null || _colors$contrasts4 === void 0 ? void 0 : _colors$contrasts4.blue4570,
|
50
51
|
focusOutlineWidth: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
|
51
52
|
focusOutlineStyle: borders === null || borders === void 0 ? void 0 : borders.style
|
52
53
|
};
|
package/lib/Table/Head/theme.js
CHANGED
@@ -34,14 +34,15 @@ 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;
|
37
38
|
const colors = theme.colors,
|
38
39
|
typography = theme.typography;
|
39
40
|
const componentVariables = {
|
40
41
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
41
42
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
42
43
|
fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
|
43
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
44
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
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
|
45
46
|
};
|
46
47
|
return {
|
47
48
|
...componentVariables
|
package/lib/Table/Row/theme.js
CHANGED
@@ -34,6 +34,7 @@ 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;
|
37
38
|
const colors = theme.colors,
|
38
39
|
typography = theme.typography,
|
39
40
|
spacing = theme.spacing,
|
@@ -47,10 +48,10 @@ const generateComponentTheme = theme => {
|
|
47
48
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
48
49
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
49
50
|
fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
|
50
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
51
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
52
|
-
borderColor: colors === null || colors === void 0 ? void 0 : colors.
|
53
|
-
hoverBorderColor: colors === null || colors === void 0 ? void 0 : colors.
|
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,
|
54
55
|
padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} 0`
|
55
56
|
};
|
56
57
|
return {
|
@@ -34,6 +34,7 @@ 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;
|
37
38
|
const colors = theme.colors,
|
38
39
|
typography = theme.typography,
|
39
40
|
spacing = theme.spacing;
|
@@ -41,9 +42,9 @@ const generateComponentTheme = theme => {
|
|
41
42
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
42
43
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
43
44
|
fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
|
44
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
45
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
46
|
-
borderColor: colors === null || colors === void 0 ? void 0 : colors.
|
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,
|
47
48
|
lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
|
48
49
|
padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`
|
49
50
|
};
|
package/lib/Table/theme.js
CHANGED
@@ -34,6 +34,7 @@ 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;
|
37
38
|
const colors = theme.colors,
|
38
39
|
typography = theme.typography,
|
39
40
|
themeName = theme.key;
|
@@ -46,8 +47,8 @@ const generateComponentTheme = theme => {
|
|
46
47
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
47
48
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
48
49
|
fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
|
49
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
50
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
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
|
51
52
|
};
|
52
53
|
return {
|
53
54
|
...componentVariables,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@instructure/ui-table",
|
3
|
-
"version": "9.5.2-snapshot-
|
3
|
+
"version": "9.5.2-snapshot-7",
|
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-
|
27
|
-
"@instructure/ui-babel-preset": "9.5.2-snapshot-
|
28
|
-
"@instructure/ui-color-utils": "9.5.2-snapshot-
|
29
|
-
"@instructure/ui-test-utils": "9.5.2-snapshot-
|
30
|
-
"@instructure/ui-themes": "9.5.2-snapshot-
|
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",
|
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-
|
39
|
-
"@instructure/emotion": "9.5.2-snapshot-
|
40
|
-
"@instructure/shared-types": "9.5.2-snapshot-
|
41
|
-
"@instructure/ui-a11y-content": "9.5.2-snapshot-
|
42
|
-
"@instructure/ui-icons": "9.5.2-snapshot-
|
43
|
-
"@instructure/ui-prop-types": "9.5.2-snapshot-
|
44
|
-
"@instructure/ui-react-utils": "9.5.2-snapshot-
|
45
|
-
"@instructure/ui-simple-select": "9.5.2-snapshot-
|
46
|
-
"@instructure/ui-testable": "9.5.2-snapshot-
|
47
|
-
"@instructure/ui-utils": "9.5.2-snapshot-
|
48
|
-
"@instructure/ui-view": "9.5.2-snapshot-
|
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",
|
49
49
|
"prop-types": "^15.8.1"
|
50
50
|
},
|
51
51
|
"peerDependencies": {
|
package/src/Table/Body/theme.ts
CHANGED
@@ -37,8 +37,8 @@ const generateComponentTheme = (theme: Theme): TableBodyTheme => {
|
|
37
37
|
fontFamily: typography?.fontFamily,
|
38
38
|
fontWeight: typography?.fontWeightNormal,
|
39
39
|
|
40
|
-
color: colors?.
|
41
|
-
background: colors?.
|
40
|
+
color: colors?.contrasts?.grey125125,
|
41
|
+
background: colors?.contrasts?.white1010
|
42
42
|
}
|
43
43
|
|
44
44
|
return {
|
package/src/Table/Cell/theme.ts
CHANGED
@@ -38,10 +38,10 @@ const generateComponentTheme = (theme: Theme): TableCellTheme => {
|
|
38
38
|
fontFamily: typography?.fontFamily,
|
39
39
|
fontWeight: typography?.fontWeightNormal,
|
40
40
|
|
41
|
-
color: colors?.
|
42
|
-
background: colors?.
|
41
|
+
color: colors?.contrasts?.grey125125,
|
42
|
+
background: colors?.contrasts?.white1010,
|
43
43
|
|
44
|
-
borderColor: colors?.
|
44
|
+
borderColor: colors?.contrasts?.grey1214,
|
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?.
|
41
|
-
background: colors?.
|
40
|
+
color: colors?.contrasts?.grey125125,
|
41
|
+
background: colors?.contrasts?.white1010,
|
42
42
|
|
43
|
-
borderColor: colors?.
|
43
|
+
borderColor: colors?.contrasts?.grey1214,
|
44
44
|
|
45
45
|
lineHeight: typography?.lineHeightCondensed,
|
46
46
|
padding: `${spacing?.xSmall} ${spacing?.small}`,
|
47
47
|
|
48
|
-
focusOutlineColor: colors?.
|
48
|
+
focusOutlineColor: colors?.contrasts?.blue4570,
|
49
49
|
focusOutlineWidth: borders?.widthMedium,
|
50
50
|
focusOutlineStyle: borders?.style
|
51
51
|
}
|
package/src/Table/Head/theme.ts
CHANGED
@@ -38,8 +38,8 @@ const generateComponentTheme = (theme: Theme): TableHeadTheme => {
|
|
38
38
|
fontFamily: typography?.fontFamily,
|
39
39
|
fontWeight: typography?.fontWeightNormal,
|
40
40
|
|
41
|
-
color: colors?.
|
42
|
-
background: colors?.
|
41
|
+
color: colors?.contrasts?.grey125125,
|
42
|
+
background: colors?.contrasts?.white1010
|
43
43
|
}
|
44
44
|
|
45
45
|
return {
|
package/src/Table/Row/theme.ts
CHANGED
@@ -44,11 +44,11 @@ const generateComponentTheme = (theme: Theme): TableRowTheme => {
|
|
44
44
|
fontFamily: typography?.fontFamily,
|
45
45
|
fontWeight: typography?.fontWeightNormal,
|
46
46
|
|
47
|
-
color: colors?.
|
48
|
-
background: colors?.
|
47
|
+
color: colors?.contrasts?.grey125125,
|
48
|
+
background: colors?.contrasts?.white1010,
|
49
49
|
|
50
|
-
borderColor: colors?.
|
51
|
-
hoverBorderColor: colors?.
|
50
|
+
borderColor: colors?.contrasts?.grey1214,
|
51
|
+
hoverBorderColor: colors?.contrasts?.blue4570,
|
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?.
|
42
|
-
background: colors?.
|
41
|
+
color: colors?.contrasts?.grey125125,
|
42
|
+
background: colors?.contrasts?.white1010,
|
43
43
|
|
44
|
-
borderColor: colors?.
|
44
|
+
borderColor: colors?.contrasts?.grey4570,
|
45
45
|
|
46
46
|
lineHeight: typography?.lineHeightCondensed,
|
47
47
|
padding: `${spacing?.xSmall} ${spacing?.small}`
|
package/src/Table/theme.ts
CHANGED
@@ -44,8 +44,8 @@ const generateComponentTheme = (theme: Theme): TableTheme => {
|
|
44
44
|
fontFamily: typography?.fontFamily,
|
45
45
|
fontWeight: typography?.fontWeightNormal,
|
46
46
|
|
47
|
-
color: colors?.
|
48
|
-
background: colors?.
|
47
|
+
color: colors?.contrasts?.grey125125,
|
48
|
+
background: colors?.contrasts?.white1010
|
49
49
|
}
|
50
50
|
|
51
51
|
return {
|