@instructure/ui-navigation 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-navigation
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-navigation
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;
32
31
  const colors = theme.colors,
33
32
  spacing = theme.spacing,
34
33
  typography = theme.typography;
@@ -36,11 +35,11 @@ const generateComponentTheme = theme => {
36
35
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
37
36
  fontSize: '1.125rem',
38
37
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightBold,
39
- textColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.blue4570,
40
- textColorSelected: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.grey125125,
38
+ textColor: colors === null || colors === void 0 ? void 0 : colors.textLink,
39
+ textColorSelected: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
41
40
  height: '2.25rem',
42
41
  padding: spacing === null || spacing === void 0 ? void 0 : spacing.small,
43
- backgroundColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.white1010
42
+ backgroundColor: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
44
43
  };
45
44
  return {
46
45
  ...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;
32
31
  const colors = theme.colors,
33
32
  borders = theme.borders,
34
33
  spacing = theme.spacing,
@@ -37,7 +36,7 @@ const generateComponentTheme = theme => {
37
36
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
38
37
  height: '3.75rem',
39
38
  // 60px per product design
40
- borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey1214,
39
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
41
40
  borderStyle: borders === null || borders === void 0 ? void 0 : borders.style,
42
41
  borderWidth: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
43
42
  horizontalMargin: spacing === null || spacing === void 0 ? void 0 : spacing.xxSmall,
@@ -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
  spacing = theme.spacing,
40
39
  typography = theme.typography;
@@ -42,11 +41,11 @@ const generateComponentTheme = theme => {
42
41
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
43
42
  fontSize: '1.125rem',
44
43
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightBold,
45
- textColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.blue4570,
46
- textColorSelected: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.grey125125,
44
+ textColor: colors === null || colors === void 0 ? void 0 : colors.textLink,
45
+ textColorSelected: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
47
46
  height: '2.25rem',
48
47
  padding: spacing === null || spacing === void 0 ? void 0 : spacing.small,
49
- backgroundColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.white1010
48
+ backgroundColor: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
50
49
  };
51
50
  return {
52
51
  ...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;
38
37
  const colors = theme.colors,
39
38
  borders = theme.borders,
40
39
  spacing = theme.spacing,
@@ -43,7 +42,7 @@ const generateComponentTheme = theme => {
43
42
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
44
43
  height: '3.75rem',
45
44
  // 60px per product design
46
- borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey1214,
45
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
47
46
  borderStyle: borders === null || borders === void 0 ? void 0 : borders.style,
48
47
  borderWidth: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
49
48
  horizontalMargin: spacing === null || spacing === void 0 ? void 0 : spacing.xxSmall,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-navigation",
3
- "version": "9.5.2-snapshot-7",
3
+ "version": "9.6.0",
4
4
  "description": "Main and application level navigational components",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,12 +23,12 @@
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-scripts": "9.5.2-snapshot-7",
30
- "@instructure/ui-test-utils": "9.5.2-snapshot-7",
31
- "@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-scripts": "9.6.0",
30
+ "@instructure/ui-test-utils": "9.6.0",
31
+ "@instructure/ui-themes": "9.6.0",
32
32
  "@testing-library/jest-dom": "^6.4.6",
33
33
  "@testing-library/react": "^15.0.7",
34
34
  "@testing-library/user-event": "^14.5.2",
@@ -36,24 +36,24 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@babel/runtime": "^7.24.5",
39
- "@instructure/console": "9.5.2-snapshot-7",
40
- "@instructure/debounce": "9.5.2-snapshot-7",
41
- "@instructure/emotion": "9.5.2-snapshot-7",
42
- "@instructure/shared-types": "9.5.2-snapshot-7",
43
- "@instructure/ui-a11y-content": "9.5.2-snapshot-7",
44
- "@instructure/ui-a11y-utils": "9.5.2-snapshot-7",
45
- "@instructure/ui-badge": "9.5.2-snapshot-7",
46
- "@instructure/ui-dom-utils": "9.5.2-snapshot-7",
47
- "@instructure/ui-focusable": "9.5.2-snapshot-7",
48
- "@instructure/ui-icons": "9.5.2-snapshot-7",
49
- "@instructure/ui-menu": "9.5.2-snapshot-7",
50
- "@instructure/ui-prop-types": "9.5.2-snapshot-7",
51
- "@instructure/ui-react-utils": "9.5.2-snapshot-7",
52
- "@instructure/ui-testable": "9.5.2-snapshot-7",
53
- "@instructure/ui-tooltip": "9.5.2-snapshot-7",
54
- "@instructure/ui-truncate-list": "9.5.2-snapshot-7",
55
- "@instructure/ui-utils": "9.5.2-snapshot-7",
56
- "@instructure/ui-view": "9.5.2-snapshot-7",
39
+ "@instructure/console": "9.6.0",
40
+ "@instructure/debounce": "9.6.0",
41
+ "@instructure/emotion": "9.6.0",
42
+ "@instructure/shared-types": "9.6.0",
43
+ "@instructure/ui-a11y-content": "9.6.0",
44
+ "@instructure/ui-a11y-utils": "9.6.0",
45
+ "@instructure/ui-badge": "9.6.0",
46
+ "@instructure/ui-dom-utils": "9.6.0",
47
+ "@instructure/ui-focusable": "9.6.0",
48
+ "@instructure/ui-icons": "9.6.0",
49
+ "@instructure/ui-menu": "9.6.0",
50
+ "@instructure/ui-prop-types": "9.6.0",
51
+ "@instructure/ui-react-utils": "9.6.0",
52
+ "@instructure/ui-testable": "9.6.0",
53
+ "@instructure/ui-tooltip": "9.6.0",
54
+ "@instructure/ui-truncate-list": "9.6.0",
55
+ "@instructure/ui-utils": "9.6.0",
56
+ "@instructure/ui-view": "9.6.0",
57
57
  "prop-types": "^15.8.1"
58
58
  },
59
59
  "peerDependencies": {
@@ -37,11 +37,11 @@ const generateComponentTheme = (theme: Theme): AppNavItemTheme => {
37
37
  fontFamily: typography?.fontFamily,
38
38
  fontSize: '1.125rem',
39
39
  fontWeight: typography?.fontWeightBold,
40
- textColor: colors?.contrasts?.blue4570,
41
- textColorSelected: colors?.contrasts?.grey125125,
40
+ textColor: colors?.textLink,
41
+ textColorSelected: colors?.textDarkest,
42
42
  height: '2.25rem',
43
43
  padding: spacing?.small,
44
- backgroundColor: colors?.contrasts?.white1010
44
+ backgroundColor: colors?.backgroundLightest
45
45
  }
46
46
 
47
47
  return {
@@ -36,7 +36,7 @@ const generateComponentTheme = (theme: Theme): AppNavTheme => {
36
36
  const componentVariables: AppNavTheme = {
37
37
  fontFamily: typography?.fontFamily,
38
38
  height: '3.75rem', // 60px per product design
39
- borderColor: colors?.contrasts?.grey1214,
39
+ borderColor: colors?.borderMedium,
40
40
  borderStyle: borders?.style,
41
41
  borderWidth: borders?.widthSmall,
42
42
  horizontalMargin: spacing?.xxSmall,