@instructure/ui-table 10.25.1-snapshot-1 → 10.25.1-snapshot-3
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,9 +3,12 @@
|
|
|
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
|
-
## [10.25.1-snapshot-
|
|
6
|
+
## [10.25.1-snapshot-3](https://github.com/instructure/instructure-ui/compare/v10.25.0...v10.25.1-snapshot-3) (2025-09-25)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui-table:** make TableColHeader focus outline and sorted icon overridable by brand overrides ([5b8231d](https://github.com/instructure/instructure-ui/commit/5b8231d4dc27d6ac05acdb4b88b367b16a964844))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
|
@@ -32,7 +32,14 @@ const generateComponentTheme = theme => {
|
|
|
32
32
|
const typography = theme.typography,
|
|
33
33
|
colors = theme.colors,
|
|
34
34
|
borders = theme.borders,
|
|
35
|
-
spacing = theme.spacing
|
|
35
|
+
spacing = theme.spacing,
|
|
36
|
+
themeName = theme.key;
|
|
37
|
+
const themeSpecificStyle = {
|
|
38
|
+
canvas: {
|
|
39
|
+
focusOutlineColor: theme['ic-brand-primary'],
|
|
40
|
+
sortedIconColor: theme['ic-brand-primary']
|
|
41
|
+
}
|
|
42
|
+
};
|
|
36
43
|
const componentVariables = {
|
|
37
44
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
|
38
45
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
|
@@ -48,7 +55,8 @@ const generateComponentTheme = theme => {
|
|
|
48
55
|
sortedIconColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts6 = colors.contrasts) === null || _colors$contrasts6 === void 0 ? void 0 : _colors$contrasts6.blue4570
|
|
49
56
|
};
|
|
50
57
|
return {
|
|
51
|
-
...componentVariables
|
|
58
|
+
...componentVariables,
|
|
59
|
+
...themeSpecificStyle[themeName]
|
|
52
60
|
};
|
|
53
61
|
};
|
|
54
62
|
export default generateComponentTheme;
|
|
@@ -38,7 +38,14 @@ const generateComponentTheme = theme => {
|
|
|
38
38
|
const typography = theme.typography,
|
|
39
39
|
colors = theme.colors,
|
|
40
40
|
borders = theme.borders,
|
|
41
|
-
spacing = theme.spacing
|
|
41
|
+
spacing = theme.spacing,
|
|
42
|
+
themeName = theme.key;
|
|
43
|
+
const themeSpecificStyle = {
|
|
44
|
+
canvas: {
|
|
45
|
+
focusOutlineColor: theme['ic-brand-primary'],
|
|
46
|
+
sortedIconColor: theme['ic-brand-primary']
|
|
47
|
+
}
|
|
48
|
+
};
|
|
42
49
|
const componentVariables = {
|
|
43
50
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
|
|
44
51
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
|
|
@@ -54,7 +61,8 @@ const generateComponentTheme = theme => {
|
|
|
54
61
|
sortedIconColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts6 = colors.contrasts) === null || _colors$contrasts6 === void 0 ? void 0 : _colors$contrasts6.blue4570
|
|
55
62
|
};
|
|
56
63
|
return {
|
|
57
|
-
...componentVariables
|
|
64
|
+
...componentVariables,
|
|
65
|
+
...themeSpecificStyle[themeName]
|
|
58
66
|
};
|
|
59
67
|
};
|
|
60
68
|
var _default = exports.default = generateComponentTheme;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-table",
|
|
3
|
-
"version": "10.25.1-snapshot-
|
|
3
|
+
"version": "10.25.1-snapshot-3",
|
|
4
4
|
"description": "A styled HTML table component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-axe-check": "10.25.1-snapshot-
|
|
27
|
-
"@instructure/ui-babel-preset": "10.25.1-snapshot-
|
|
28
|
-
"@instructure/ui-color-utils": "10.25.1-snapshot-
|
|
29
|
-
"@instructure/ui-themes": "10.25.1-snapshot-
|
|
26
|
+
"@instructure/ui-axe-check": "10.25.1-snapshot-3",
|
|
27
|
+
"@instructure/ui-babel-preset": "10.25.1-snapshot-3",
|
|
28
|
+
"@instructure/ui-color-utils": "10.25.1-snapshot-3",
|
|
29
|
+
"@instructure/ui-themes": "10.25.1-snapshot-3",
|
|
30
30
|
"@testing-library/jest-dom": "^6.6.3",
|
|
31
31
|
"@testing-library/react": "^16.0.1",
|
|
32
32
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/runtime": "^7.27.6",
|
|
37
|
-
"@instructure/console": "10.25.1-snapshot-
|
|
38
|
-
"@instructure/emotion": "10.25.1-snapshot-
|
|
39
|
-
"@instructure/shared-types": "10.25.1-snapshot-
|
|
40
|
-
"@instructure/ui-a11y-content": "10.25.1-snapshot-
|
|
41
|
-
"@instructure/ui-icons": "10.25.1-snapshot-
|
|
42
|
-
"@instructure/ui-prop-types": "10.25.1-snapshot-
|
|
43
|
-
"@instructure/ui-react-utils": "10.25.1-snapshot-
|
|
44
|
-
"@instructure/ui-simple-select": "10.25.1-snapshot-
|
|
45
|
-
"@instructure/ui-testable": "10.25.1-snapshot-
|
|
46
|
-
"@instructure/ui-utils": "10.25.1-snapshot-
|
|
47
|
-
"@instructure/ui-view": "10.25.1-snapshot-
|
|
37
|
+
"@instructure/console": "10.25.1-snapshot-3",
|
|
38
|
+
"@instructure/emotion": "10.25.1-snapshot-3",
|
|
39
|
+
"@instructure/shared-types": "10.25.1-snapshot-3",
|
|
40
|
+
"@instructure/ui-a11y-content": "10.25.1-snapshot-3",
|
|
41
|
+
"@instructure/ui-icons": "10.25.1-snapshot-3",
|
|
42
|
+
"@instructure/ui-prop-types": "10.25.1-snapshot-3",
|
|
43
|
+
"@instructure/ui-react-utils": "10.25.1-snapshot-3",
|
|
44
|
+
"@instructure/ui-simple-select": "10.25.1-snapshot-3",
|
|
45
|
+
"@instructure/ui-testable": "10.25.1-snapshot-3",
|
|
46
|
+
"@instructure/ui-utils": "10.25.1-snapshot-3",
|
|
47
|
+
"@instructure/ui-view": "10.25.1-snapshot-3",
|
|
48
48
|
"prop-types": "^15.8.1"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import type { Theme } from '@instructure/ui-themes'
|
|
25
|
+
import type { Theme, ThemeSpecificStyle } from '@instructure/ui-themes'
|
|
26
26
|
import { TableColHeaderTheme } from '@instructure/shared-types'
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -31,7 +31,14 @@ import { TableColHeaderTheme } from '@instructure/shared-types'
|
|
|
31
31
|
* @return {Object} The final theme object with the overrides and component variables
|
|
32
32
|
*/
|
|
33
33
|
const generateComponentTheme = (theme: Theme): TableColHeaderTheme => {
|
|
34
|
-
const { typography, colors, borders, spacing } = theme
|
|
34
|
+
const { typography, colors, borders, spacing, key: themeName } = theme
|
|
35
|
+
|
|
36
|
+
const themeSpecificStyle: ThemeSpecificStyle<TableColHeaderTheme> = {
|
|
37
|
+
canvas: {
|
|
38
|
+
focusOutlineColor: theme['ic-brand-primary'],
|
|
39
|
+
sortedIconColor: theme['ic-brand-primary']
|
|
40
|
+
}
|
|
41
|
+
}
|
|
35
42
|
|
|
36
43
|
const componentVariables: TableColHeaderTheme = {
|
|
37
44
|
fontSize: typography?.fontSizeMedium,
|
|
@@ -54,7 +61,8 @@ const generateComponentTheme = (theme: Theme): TableColHeaderTheme => {
|
|
|
54
61
|
}
|
|
55
62
|
|
|
56
63
|
return {
|
|
57
|
-
...componentVariables
|
|
64
|
+
...componentVariables,
|
|
65
|
+
...themeSpecificStyle[themeName]
|
|
58
66
|
}
|
|
59
67
|
}
|
|
60
68
|
|