@instructure/ui-drilldown 10.5.1-snapshot-5 → 10.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 +5 -2
- package/es/Drilldown/index.js +1 -0
- package/es/Drilldown/styles.js +3 -2
- package/es/Drilldown/theme.js +4 -2
- package/lib/Drilldown/index.js +1 -0
- package/lib/Drilldown/styles.js +3 -2
- package/lib/Drilldown/theme.js +4 -2
- package/package.json +21 -21
- package/src/Drilldown/index.tsx +1 -0
- package/src/Drilldown/styles.ts +3 -1
- package/src/Drilldown/theme.ts +3 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Drilldown/index.d.ts.map +1 -1
- package/types/Drilldown/styles.d.ts.map +1 -1
- package/types/Drilldown/theme.d.ts.map +1 -1
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
|
-
|
|
6
|
+
# [10.6.0](https://github.com/instructure/instructure-ui/compare/v10.5.0...v10.6.0) (2024-11-18)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **many:** adjust border colors to meet a11y contrast standards ([2f47e06](https://github.com/instructure/instructure-ui/commit/2f47e066f7107c67e37ce8b7aff483586cf7a6b7))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/es/Drilldown/index.js
CHANGED
|
@@ -1047,6 +1047,7 @@ let Drilldown = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
|
|
|
1047
1047
|
getOptionProps,
|
|
1048
1048
|
getDisabledOptionProps
|
|
1049
1049
|
}) => jsx(View, Object.assign({
|
|
1050
|
+
borderWidth: "small",
|
|
1050
1051
|
as: "div",
|
|
1051
1052
|
elementRef: this.handleDrilldownRef,
|
|
1052
1053
|
tabIndex: 0,
|
package/es/Drilldown/styles.js
CHANGED
|
@@ -39,7 +39,7 @@ const generateStyle = (componentTheme, _props, state) => {
|
|
|
39
39
|
label: 'drilldown',
|
|
40
40
|
overflow: 'visible',
|
|
41
41
|
// needed for focus ring!
|
|
42
|
-
|
|
42
|
+
borderColor: componentTheme.borderColor,
|
|
43
43
|
...(hasHighlightedOption && {
|
|
44
44
|
'&:focus::before': {
|
|
45
45
|
display: 'none'
|
|
@@ -69,7 +69,8 @@ const generateStyle = (componentTheme, _props, state) => {
|
|
|
69
69
|
flexShrink: 0,
|
|
70
70
|
height: '100%',
|
|
71
71
|
alignItems: 'center',
|
|
72
|
-
paddingInlineStart: componentTheme.labelInfoPadding
|
|
72
|
+
paddingInlineStart: componentTheme.labelInfoPadding,
|
|
73
|
+
color: componentTheme.labelInfoColor
|
|
73
74
|
},
|
|
74
75
|
optionContent: {
|
|
75
76
|
label: 'drilldown__optionContent',
|
package/es/Drilldown/theme.js
CHANGED
|
@@ -28,14 +28,16 @@
|
|
|
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;
|
|
31
|
+
var _colors$contrasts, _colors$contrasts2, _colors$contrasts3;
|
|
32
32
|
const colors = theme.colors,
|
|
33
33
|
typography = theme.typography,
|
|
34
34
|
spacing = theme.spacing;
|
|
35
35
|
const componentVariables = {
|
|
36
36
|
headerTitleFontWeight: typography.fontWeightBold,
|
|
37
37
|
headerActionColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.blue4570,
|
|
38
|
-
labelInfoPadding: spacing === null || spacing === void 0 ? void 0 : spacing.small
|
|
38
|
+
labelInfoPadding: spacing === null || spacing === void 0 ? void 0 : spacing.small,
|
|
39
|
+
labelInfoColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.grey5782,
|
|
40
|
+
borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.grey3045
|
|
39
41
|
};
|
|
40
42
|
return {
|
|
41
43
|
...componentVariables
|
package/lib/Drilldown/index.js
CHANGED
|
@@ -1057,6 +1057,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
1057
1057
|
getOptionProps,
|
|
1058
1058
|
getDisabledOptionProps
|
|
1059
1059
|
}) => (0, _emotion.jsx)(_View.View, Object.assign({
|
|
1060
|
+
borderWidth: "small",
|
|
1060
1061
|
as: "div",
|
|
1061
1062
|
elementRef: this.handleDrilldownRef,
|
|
1062
1063
|
tabIndex: 0,
|
package/lib/Drilldown/styles.js
CHANGED
|
@@ -45,7 +45,7 @@ const generateStyle = (componentTheme, _props, state) => {
|
|
|
45
45
|
label: 'drilldown',
|
|
46
46
|
overflow: 'visible',
|
|
47
47
|
// needed for focus ring!
|
|
48
|
-
|
|
48
|
+
borderColor: componentTheme.borderColor,
|
|
49
49
|
...(hasHighlightedOption && {
|
|
50
50
|
'&:focus::before': {
|
|
51
51
|
display: 'none'
|
|
@@ -75,7 +75,8 @@ const generateStyle = (componentTheme, _props, state) => {
|
|
|
75
75
|
flexShrink: 0,
|
|
76
76
|
height: '100%',
|
|
77
77
|
alignItems: 'center',
|
|
78
|
-
paddingInlineStart: componentTheme.labelInfoPadding
|
|
78
|
+
paddingInlineStart: componentTheme.labelInfoPadding,
|
|
79
|
+
color: componentTheme.labelInfoColor
|
|
79
80
|
},
|
|
80
81
|
optionContent: {
|
|
81
82
|
label: 'drilldown__optionContent',
|
package/lib/Drilldown/theme.js
CHANGED
|
@@ -34,14 +34,16 @@ 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;
|
|
37
|
+
var _colors$contrasts, _colors$contrasts2, _colors$contrasts3;
|
|
38
38
|
const colors = theme.colors,
|
|
39
39
|
typography = theme.typography,
|
|
40
40
|
spacing = theme.spacing;
|
|
41
41
|
const componentVariables = {
|
|
42
42
|
headerTitleFontWeight: typography.fontWeightBold,
|
|
43
43
|
headerActionColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.blue4570,
|
|
44
|
-
labelInfoPadding: spacing === null || spacing === void 0 ? void 0 : spacing.small
|
|
44
|
+
labelInfoPadding: spacing === null || spacing === void 0 ? void 0 : spacing.small,
|
|
45
|
+
labelInfoColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.grey5782,
|
|
46
|
+
borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.grey3045
|
|
45
47
|
};
|
|
46
48
|
return {
|
|
47
49
|
...componentVariables
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-drilldown",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.6.0",
|
|
4
4
|
"description": "A drilldown menu component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -24,29 +24,29 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.25.6",
|
|
27
|
-
"@instructure/console": "10.
|
|
28
|
-
"@instructure/emotion": "10.
|
|
29
|
-
"@instructure/shared-types": "10.
|
|
30
|
-
"@instructure/ui-dom-utils": "10.
|
|
31
|
-
"@instructure/ui-icons": "10.
|
|
32
|
-
"@instructure/ui-options": "10.
|
|
33
|
-
"@instructure/ui-popover": "10.
|
|
34
|
-
"@instructure/ui-position": "10.
|
|
35
|
-
"@instructure/ui-prop-types": "10.
|
|
36
|
-
"@instructure/ui-react-utils": "10.
|
|
37
|
-
"@instructure/ui-selectable": "10.
|
|
38
|
-
"@instructure/ui-testable": "10.
|
|
39
|
-
"@instructure/ui-utils": "10.
|
|
40
|
-
"@instructure/ui-view": "10.
|
|
27
|
+
"@instructure/console": "10.6.0",
|
|
28
|
+
"@instructure/emotion": "10.6.0",
|
|
29
|
+
"@instructure/shared-types": "10.6.0",
|
|
30
|
+
"@instructure/ui-dom-utils": "10.6.0",
|
|
31
|
+
"@instructure/ui-icons": "10.6.0",
|
|
32
|
+
"@instructure/ui-options": "10.6.0",
|
|
33
|
+
"@instructure/ui-popover": "10.6.0",
|
|
34
|
+
"@instructure/ui-position": "10.6.0",
|
|
35
|
+
"@instructure/ui-prop-types": "10.6.0",
|
|
36
|
+
"@instructure/ui-react-utils": "10.6.0",
|
|
37
|
+
"@instructure/ui-selectable": "10.6.0",
|
|
38
|
+
"@instructure/ui-testable": "10.6.0",
|
|
39
|
+
"@instructure/ui-utils": "10.6.0",
|
|
40
|
+
"@instructure/ui-view": "10.6.0",
|
|
41
41
|
"prop-types": "^15.8.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@instructure/ui-axe-check": "10.
|
|
45
|
-
"@instructure/ui-babel-preset": "10.
|
|
46
|
-
"@instructure/ui-color-utils": "10.
|
|
47
|
-
"@instructure/ui-scripts": "10.
|
|
48
|
-
"@instructure/ui-test-utils": "10.
|
|
49
|
-
"@instructure/ui-themes": "10.
|
|
44
|
+
"@instructure/ui-axe-check": "10.6.0",
|
|
45
|
+
"@instructure/ui-babel-preset": "10.6.0",
|
|
46
|
+
"@instructure/ui-color-utils": "10.6.0",
|
|
47
|
+
"@instructure/ui-scripts": "10.6.0",
|
|
48
|
+
"@instructure/ui-test-utils": "10.6.0",
|
|
49
|
+
"@instructure/ui-themes": "10.6.0",
|
|
50
50
|
"@testing-library/jest-dom": "^6.4.6",
|
|
51
51
|
"@testing-library/react": "^16.0.1",
|
|
52
52
|
"@testing-library/user-event": "^14.5.2",
|
package/src/Drilldown/index.tsx
CHANGED
package/src/Drilldown/styles.ts
CHANGED
|
@@ -50,6 +50,7 @@ const generateStyle = (
|
|
|
50
50
|
drilldown: {
|
|
51
51
|
label: 'drilldown',
|
|
52
52
|
overflow: 'visible', // needed for focus ring!
|
|
53
|
+
borderColor: componentTheme.borderColor,
|
|
53
54
|
|
|
54
55
|
...(hasHighlightedOption && {
|
|
55
56
|
'&:focus::before': {
|
|
@@ -80,7 +81,8 @@ const generateStyle = (
|
|
|
80
81
|
flexShrink: 0,
|
|
81
82
|
height: '100%',
|
|
82
83
|
alignItems: 'center',
|
|
83
|
-
paddingInlineStart: componentTheme.labelInfoPadding
|
|
84
|
+
paddingInlineStart: componentTheme.labelInfoPadding,
|
|
85
|
+
color: componentTheme.labelInfoColor
|
|
84
86
|
},
|
|
85
87
|
optionContent: {
|
|
86
88
|
label: 'drilldown__optionContent',
|
package/src/Drilldown/theme.ts
CHANGED
|
@@ -36,7 +36,9 @@ const generateComponentTheme = (theme: Theme): DrilldownTheme => {
|
|
|
36
36
|
const componentVariables: DrilldownTheme = {
|
|
37
37
|
headerTitleFontWeight: typography.fontWeightBold,
|
|
38
38
|
headerActionColor: colors?.contrasts?.blue4570,
|
|
39
|
-
labelInfoPadding: spacing?.small
|
|
39
|
+
labelInfoPadding: spacing?.small,
|
|
40
|
+
labelInfoColor: colors?.contrasts?.grey5782,
|
|
41
|
+
borderColor: colors?.contrasts?.grey3045
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
return {
|