@instructure/ui-tree-browser 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-tree-browser
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-tree-browser
17
17
 
18
18
 
19
19
 
@@ -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, _colors$contrasts5, _colors$contrasts6, _colors$contrasts7, _colors$contrasts8, _colors$contrasts9;
32
31
  const colors = theme.colors,
33
32
  borders = theme.borders,
34
33
  typography = theme.typography,
@@ -44,19 +43,19 @@ const generateComponentTheme = theme => {
44
43
  }
45
44
  };
46
45
  const componentVariables = {
47
- hoverBackgroundColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.blue4570,
48
- hoverTextColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010,
46
+ hoverBackgroundColor: colors === null || colors === void 0 ? void 0 : colors.backgroundBrand,
47
+ hoverTextColor: colors === null || colors === void 0 ? void 0 : colors.textLightest,
49
48
  focusOutlineWidth: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
50
- focusOutlineColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.blue4570,
49
+ focusOutlineColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
51
50
  focusOutlineStyle: borders === null || borders === void 0 ? void 0 : borders.style,
52
- iconColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts4 = colors.contrasts) === null || _colors$contrasts4 === void 0 ? void 0 : _colors$contrasts4.grey125125,
51
+ iconColor: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
53
52
  iconsMarginRight: spacing === null || spacing === void 0 ? void 0 : spacing.xSmall,
54
53
  descriptorMarginTop: spacing === null || spacing === void 0 ? void 0 : spacing.xxxSmall,
55
- descriptorTextColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts5 = colors.contrasts) === null || _colors$contrasts5 === void 0 ? void 0 : _colors$contrasts5.grey125125,
54
+ descriptorTextColor: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
56
55
  descriptorFontSizeSmall: typography === null || typography === void 0 ? void 0 : typography.fontSizeXSmall,
57
56
  descriptorFontSizeMedium: typography === null || typography === void 0 ? void 0 : typography.fontSizeXSmall,
58
57
  descriptorFontSizeLarge: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
59
- nameTextColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts6 = colors.contrasts) === null || _colors$contrasts6 === void 0 ? void 0 : _colors$contrasts6.blue4570,
58
+ nameTextColor: colors === null || colors === void 0 ? void 0 : colors.textBrand,
60
59
  nameFontSizeSmall: typography === null || typography === void 0 ? void 0 : typography.fontSizeXSmall,
61
60
  nameFontSizeMedium: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
62
61
  nameFontSizeLarge: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
@@ -65,10 +64,10 @@ const generateComponentTheme = theme => {
65
64
  baseSpacingLarge: '1rem',
66
65
  borderWidth: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
67
66
  borderRadius: borders === null || borders === void 0 ? void 0 : borders.radiusMedium,
68
- borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts7 = colors.contrasts) === null || _colors$contrasts7 === void 0 ? void 0 : _colors$contrasts7.grey4570,
67
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderDark,
69
68
  textLineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
70
- selectedTextColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts8 = colors.contrasts) === null || _colors$contrasts8 === void 0 ? void 0 : _colors$contrasts8.white1010,
71
- selectedBackgroundColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts9 = colors.contrasts) === null || _colors$contrasts9 === void 0 ? void 0 : _colors$contrasts9.grey4570,
69
+ selectedTextColor: colors === null || colors === void 0 ? void 0 : colors.textLightest,
70
+ selectedBackgroundColor: colors === null || colors === void 0 ? void 0 : colors.backgroundDark,
72
71
  selectedOutlineWidth: borders === null || borders === void 0 ? void 0 : borders.widthLarge
73
72
  };
74
73
  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;
32
31
  const colors = theme.colors,
33
32
  spacing = theme.spacing,
34
33
  typography = theme.typography,
@@ -39,7 +38,7 @@ const generateComponentTheme = theme => {
39
38
  baseSpacingMedium: spacing === null || spacing === void 0 ? void 0 : spacing.small,
40
39
  baseSpacingLarge: '1rem',
41
40
  borderWidth: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
42
- borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey4570
41
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderDark
43
42
  };
44
43
  return {
45
44
  ...componentVariables
@@ -28,13 +28,12 @@
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;
32
31
  const colors = theme.colors,
33
32
  borders = theme.borders;
34
33
  const componentVariables = {
35
34
  borderRadius: borders === null || borders === void 0 ? void 0 : borders.radiusMedium,
36
35
  focusOutlineWidth: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
37
- focusOutlineColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.blue4570,
36
+ focusOutlineColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
38
37
  focusOutlineStyle: borders === null || borders === void 0 ? void 0 : borders.style
39
38
  };
40
39
  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, _colors$contrasts4, _colors$contrasts5, _colors$contrasts6, _colors$contrasts7, _colors$contrasts8, _colors$contrasts9;
38
37
  const colors = theme.colors,
39
38
  borders = theme.borders,
40
39
  typography = theme.typography,
@@ -50,19 +49,19 @@ const generateComponentTheme = theme => {
50
49
  }
51
50
  };
52
51
  const componentVariables = {
53
- hoverBackgroundColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.blue4570,
54
- hoverTextColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010,
52
+ hoverBackgroundColor: colors === null || colors === void 0 ? void 0 : colors.backgroundBrand,
53
+ hoverTextColor: colors === null || colors === void 0 ? void 0 : colors.textLightest,
55
54
  focusOutlineWidth: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
56
- focusOutlineColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.blue4570,
55
+ focusOutlineColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
57
56
  focusOutlineStyle: borders === null || borders === void 0 ? void 0 : borders.style,
58
- iconColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts4 = colors.contrasts) === null || _colors$contrasts4 === void 0 ? void 0 : _colors$contrasts4.grey125125,
57
+ iconColor: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
59
58
  iconsMarginRight: spacing === null || spacing === void 0 ? void 0 : spacing.xSmall,
60
59
  descriptorMarginTop: spacing === null || spacing === void 0 ? void 0 : spacing.xxxSmall,
61
- descriptorTextColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts5 = colors.contrasts) === null || _colors$contrasts5 === void 0 ? void 0 : _colors$contrasts5.grey125125,
60
+ descriptorTextColor: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
62
61
  descriptorFontSizeSmall: typography === null || typography === void 0 ? void 0 : typography.fontSizeXSmall,
63
62
  descriptorFontSizeMedium: typography === null || typography === void 0 ? void 0 : typography.fontSizeXSmall,
64
63
  descriptorFontSizeLarge: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
65
- nameTextColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts6 = colors.contrasts) === null || _colors$contrasts6 === void 0 ? void 0 : _colors$contrasts6.blue4570,
64
+ nameTextColor: colors === null || colors === void 0 ? void 0 : colors.textBrand,
66
65
  nameFontSizeSmall: typography === null || typography === void 0 ? void 0 : typography.fontSizeXSmall,
67
66
  nameFontSizeMedium: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
68
67
  nameFontSizeLarge: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
@@ -71,10 +70,10 @@ const generateComponentTheme = theme => {
71
70
  baseSpacingLarge: '1rem',
72
71
  borderWidth: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
73
72
  borderRadius: borders === null || borders === void 0 ? void 0 : borders.radiusMedium,
74
- borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts7 = colors.contrasts) === null || _colors$contrasts7 === void 0 ? void 0 : _colors$contrasts7.grey4570,
73
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderDark,
75
74
  textLineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
76
- selectedTextColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts8 = colors.contrasts) === null || _colors$contrasts8 === void 0 ? void 0 : _colors$contrasts8.white1010,
77
- selectedBackgroundColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts9 = colors.contrasts) === null || _colors$contrasts9 === void 0 ? void 0 : _colors$contrasts9.grey4570,
75
+ selectedTextColor: colors === null || colors === void 0 ? void 0 : colors.textLightest,
76
+ selectedBackgroundColor: colors === null || colors === void 0 ? void 0 : colors.backgroundDark,
78
77
  selectedOutlineWidth: borders === null || borders === void 0 ? void 0 : borders.widthLarge
79
78
  };
80
79
  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;
38
37
  const colors = theme.colors,
39
38
  spacing = theme.spacing,
40
39
  typography = theme.typography,
@@ -45,7 +44,7 @@ const generateComponentTheme = theme => {
45
44
  baseSpacingMedium: spacing === null || spacing === void 0 ? void 0 : spacing.small,
46
45
  baseSpacingLarge: '1rem',
47
46
  borderWidth: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
48
- borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey4570
47
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderDark
49
48
  };
50
49
  return {
51
50
  ...componentVariables
@@ -34,13 +34,12 @@ 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;
38
37
  const colors = theme.colors,
39
38
  borders = theme.borders;
40
39
  const componentVariables = {
41
40
  borderRadius: borders === null || borders === void 0 ? void 0 : borders.radiusMedium,
42
41
  focusOutlineWidth: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
43
- focusOutlineColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.blue4570,
42
+ focusOutlineColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
44
43
  focusOutlineStyle: borders === null || borders === void 0 ? void 0 : borders.style
45
44
  };
46
45
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-tree-browser",
3
- "version": "9.5.2-snapshot-7",
3
+ "version": "9.6.0",
4
4
  "description": "A component for displaying a hierarchical view of information",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,22 +23,22 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "9.5.2-snapshot-7",
27
- "@instructure/ui-color-utils": "9.5.2-snapshot-7",
28
- "@instructure/ui-test-locator": "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-babel-preset": "9.6.0",
27
+ "@instructure/ui-color-utils": "9.6.0",
28
+ "@instructure/ui-test-locator": "9.6.0",
29
+ "@instructure/ui-test-utils": "9.6.0",
30
+ "@instructure/ui-themes": "9.6.0"
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.24.5",
34
- "@instructure/emotion": "9.5.2-snapshot-7",
35
- "@instructure/shared-types": "9.5.2-snapshot-7",
36
- "@instructure/ui-icons": "9.5.2-snapshot-7",
37
- "@instructure/ui-img": "9.5.2-snapshot-7",
38
- "@instructure/ui-prop-types": "9.5.2-snapshot-7",
39
- "@instructure/ui-react-utils": "9.5.2-snapshot-7",
40
- "@instructure/ui-testable": "9.5.2-snapshot-7",
41
- "@instructure/ui-utils": "9.5.2-snapshot-7",
34
+ "@instructure/emotion": "9.6.0",
35
+ "@instructure/shared-types": "9.6.0",
36
+ "@instructure/ui-icons": "9.6.0",
37
+ "@instructure/ui-img": "9.6.0",
38
+ "@instructure/ui-prop-types": "9.6.0",
39
+ "@instructure/ui-react-utils": "9.6.0",
40
+ "@instructure/ui-testable": "9.6.0",
41
+ "@instructure/ui-utils": "9.6.0",
42
42
  "keycode": "^2",
43
43
  "prop-types": "^15.8.1"
44
44
  },
@@ -44,23 +44,23 @@ const generateComponentTheme = (theme: Theme): TreeBrowserButtonTheme => {
44
44
  }
45
45
 
46
46
  const componentVariables: TreeBrowserButtonTheme = {
47
- hoverBackgroundColor: colors?.contrasts?.blue4570,
48
- hoverTextColor: colors?.contrasts?.white1010,
47
+ hoverBackgroundColor: colors?.backgroundBrand,
48
+ hoverTextColor: colors?.textLightest,
49
49
 
50
50
  focusOutlineWidth: borders?.widthMedium,
51
- focusOutlineColor: colors?.contrasts?.blue4570,
51
+ focusOutlineColor: colors?.borderBrand,
52
52
  focusOutlineStyle: borders?.style,
53
53
 
54
- iconColor: colors?.contrasts?.grey125125,
54
+ iconColor: colors?.textDarkest,
55
55
  iconsMarginRight: spacing?.xSmall,
56
56
 
57
57
  descriptorMarginTop: spacing?.xxxSmall,
58
- descriptorTextColor: colors?.contrasts?.grey125125,
58
+ descriptorTextColor: colors?.textDarkest,
59
59
  descriptorFontSizeSmall: typography?.fontSizeXSmall,
60
60
  descriptorFontSizeMedium: typography?.fontSizeXSmall,
61
61
  descriptorFontSizeLarge: typography?.fontSizeSmall,
62
62
 
63
- nameTextColor: colors?.contrasts?.blue4570,
63
+ nameTextColor: colors?.textBrand,
64
64
  nameFontSizeSmall: typography?.fontSizeXSmall,
65
65
  nameFontSizeMedium: typography?.fontSizeSmall,
66
66
  nameFontSizeLarge: typography?.fontSizeMedium,
@@ -71,12 +71,12 @@ const generateComponentTheme = (theme: Theme): TreeBrowserButtonTheme => {
71
71
 
72
72
  borderWidth: borders?.widthSmall,
73
73
  borderRadius: borders?.radiusMedium,
74
- borderColor: colors?.contrasts?.grey4570,
74
+ borderColor: colors?.borderDark,
75
75
 
76
76
  textLineHeight: typography?.lineHeightCondensed,
77
77
 
78
- selectedTextColor: colors?.contrasts?.white1010,
79
- selectedBackgroundColor: colors?.contrasts?.grey4570,
78
+ selectedTextColor: colors?.textLightest,
79
+ selectedBackgroundColor: colors?.backgroundDark,
80
80
  selectedOutlineWidth: borders?.widthLarge
81
81
  }
82
82
 
@@ -39,7 +39,7 @@ const generateComponentTheme = (theme: Theme): TreeBrowserCollectionTheme => {
39
39
  baseSpacingMedium: spacing?.small,
40
40
  baseSpacingLarge: '1rem',
41
41
  borderWidth: borders?.widthSmall,
42
- borderColor: colors?.contrasts?.grey4570
42
+ borderColor: colors?.borderDark
43
43
  }
44
44
 
45
45
  return {
@@ -36,7 +36,7 @@ const generateComponentTheme = (theme: Theme): TreeBrowserTheme => {
36
36
  const componentVariables: TreeBrowserTheme = {
37
37
  borderRadius: borders?.radiusMedium,
38
38
  focusOutlineWidth: borders?.widthMedium,
39
- focusOutlineColor: colors?.contrasts?.blue4570,
39
+ focusOutlineColor: colors?.borderBrand,
40
40
  focusOutlineStyle: borders?.style
41
41
  }
42
42