@instructure/ui-toggle-details 9.5.2-snapshot-7 → 9.5.2

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,9 @@
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.5.2](https://github.com/instructure/instructure-ui/compare/v9.5.1...v9.5.2) (2024-08-05)
7
7
 
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
8
+ **Note:** Version bump only for package @instructure/ui-toggle-details
17
9
 
18
10
 
19
11
 
@@ -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;
32
31
  const colors = theme.colors,
33
32
  spacing = theme.spacing,
34
33
  borders = theme.borders,
@@ -45,7 +44,7 @@ const generateComponentTheme = theme => {
45
44
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
46
45
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
47
46
  lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeight,
48
- textColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
47
+ textColor: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
49
48
  fontSizeSmall: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
50
49
  fontSizeMedium: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
51
50
  fontSizeLarge: typography === null || typography === void 0 ? void 0 : typography.fontSizeLarge,
@@ -53,16 +52,16 @@ const generateComponentTheme = theme => {
53
52
  mediumIconSize: '0.75rem',
54
53
  largeIconSize: '1rem',
55
54
  iconMargin: spacing === null || spacing === void 0 ? void 0 : spacing.xxSmall,
56
- iconColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.grey125125,
55
+ iconColor: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
57
56
  togglePadding: spacing === null || spacing === void 0 ? void 0 : spacing.xxSmall,
58
57
  toggleBorderRadius: borders === null || borders === void 0 ? void 0 : borders.radiusMedium,
59
58
  toggleBorderWidth: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
60
59
  toggleBorderStyle: borders === null || borders === void 0 ? void 0 : borders.style,
61
- toggleFocusBorderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.blue4570,
62
- filledBackgroundColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts4 = colors.contrasts) === null || _colors$contrasts4 === void 0 ? void 0 : _colors$contrasts4.grey1111,
60
+ toggleFocusBorderColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
61
+ filledBackgroundColor: colors === null || colors === void 0 ? void 0 : colors.backgroundLight,
63
62
  filledBorderWidth: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
64
63
  filledBorderStyle: borders === null || borders === void 0 ? void 0 : borders.style,
65
- filledBorderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts5 = colors.contrasts) === null || _colors$contrasts5 === void 0 ? void 0 : _colors$contrasts5.grey1214,
64
+ filledBorderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
66
65
  filledBorderRadius: borders === null || borders === void 0 ? void 0 : borders.radiusMedium,
67
66
  filledPadding: spacing === null || spacing === void 0 ? void 0 : spacing.small
68
67
  };
@@ -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;
38
37
  const colors = theme.colors,
39
38
  spacing = theme.spacing,
40
39
  borders = theme.borders,
@@ -51,7 +50,7 @@ const generateComponentTheme = theme => {
51
50
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
52
51
  fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
53
52
  lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeight,
54
- textColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
53
+ textColor: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
55
54
  fontSizeSmall: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
56
55
  fontSizeMedium: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
57
56
  fontSizeLarge: typography === null || typography === void 0 ? void 0 : typography.fontSizeLarge,
@@ -59,16 +58,16 @@ const generateComponentTheme = theme => {
59
58
  mediumIconSize: '0.75rem',
60
59
  largeIconSize: '1rem',
61
60
  iconMargin: spacing === null || spacing === void 0 ? void 0 : spacing.xxSmall,
62
- iconColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.grey125125,
61
+ iconColor: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
63
62
  togglePadding: spacing === null || spacing === void 0 ? void 0 : spacing.xxSmall,
64
63
  toggleBorderRadius: borders === null || borders === void 0 ? void 0 : borders.radiusMedium,
65
64
  toggleBorderWidth: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
66
65
  toggleBorderStyle: borders === null || borders === void 0 ? void 0 : borders.style,
67
- toggleFocusBorderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.blue4570,
68
- filledBackgroundColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts4 = colors.contrasts) === null || _colors$contrasts4 === void 0 ? void 0 : _colors$contrasts4.grey1111,
66
+ toggleFocusBorderColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
67
+ filledBackgroundColor: colors === null || colors === void 0 ? void 0 : colors.backgroundLight,
69
68
  filledBorderWidth: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
70
69
  filledBorderStyle: borders === null || borders === void 0 ? void 0 : borders.style,
71
- filledBorderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts5 = colors.contrasts) === null || _colors$contrasts5 === void 0 ? void 0 : _colors$contrasts5.grey1214,
70
+ filledBorderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
72
71
  filledBorderRadius: borders === null || borders === void 0 ? void 0 : borders.radiusMedium,
73
72
  filledPadding: spacing === null || spacing === void 0 ? void 0 : spacing.small
74
73
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-toggle-details",
3
- "version": "9.5.2-snapshot-7",
3
+ "version": "9.5.2",
4
4
  "description": "A styled toggleable, accordion-like component.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,28 +23,28 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "9.5.2-snapshot-7",
27
- "@instructure/ui-test-locator": "9.5.2-snapshot-7",
28
- "@instructure/ui-test-queries": "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.5.2",
27
+ "@instructure/ui-test-locator": "9.5.2",
28
+ "@instructure/ui-test-queries": "9.5.2",
29
+ "@instructure/ui-test-utils": "9.5.2",
30
+ "@instructure/ui-themes": "9.5.2"
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-buttons": "9.5.2-snapshot-7",
37
- "@instructure/ui-dom-utils": "9.5.2-snapshot-7",
38
- "@instructure/ui-expandable": "9.5.2-snapshot-7",
39
- "@instructure/ui-flex": "9.5.2-snapshot-7",
40
- "@instructure/ui-icons": "9.5.2-snapshot-7",
41
- "@instructure/ui-motion": "9.5.2-snapshot-7",
42
- "@instructure/ui-prop-types": "9.5.2-snapshot-7",
43
- "@instructure/ui-react-utils": "9.5.2-snapshot-7",
44
- "@instructure/ui-testable": "9.5.2-snapshot-7",
45
- "@instructure/ui-utils": "9.5.2-snapshot-7",
46
- "@instructure/ui-view": "9.5.2-snapshot-7",
47
- "@instructure/uid": "9.5.2-snapshot-7",
34
+ "@instructure/emotion": "9.5.2",
35
+ "@instructure/shared-types": "9.5.2",
36
+ "@instructure/ui-buttons": "9.5.2",
37
+ "@instructure/ui-dom-utils": "9.5.2",
38
+ "@instructure/ui-expandable": "9.5.2",
39
+ "@instructure/ui-flex": "9.5.2",
40
+ "@instructure/ui-icons": "9.5.2",
41
+ "@instructure/ui-motion": "9.5.2",
42
+ "@instructure/ui-prop-types": "9.5.2",
43
+ "@instructure/ui-react-utils": "9.5.2",
44
+ "@instructure/ui-testable": "9.5.2",
45
+ "@instructure/ui-utils": "9.5.2",
46
+ "@instructure/ui-view": "9.5.2",
47
+ "@instructure/uid": "9.5.2",
48
48
  "prop-types": "^15.8.1"
49
49
  },
50
50
  "peerDependencies": {
@@ -45,7 +45,7 @@ const generateComponentTheme = (theme: Theme): ToggleDetailsTheme => {
45
45
  fontFamily: typography?.fontFamily,
46
46
  fontWeight: typography?.fontWeightNormal,
47
47
  lineHeight: typography?.lineHeight,
48
- textColor: colors?.contrasts?.grey125125,
48
+ textColor: colors?.textDarkest,
49
49
 
50
50
  fontSizeSmall: typography?.fontSizeSmall,
51
51
  fontSizeMedium: typography?.fontSizeMedium,
@@ -55,18 +55,18 @@ const generateComponentTheme = (theme: Theme): ToggleDetailsTheme => {
55
55
  mediumIconSize: '0.75rem',
56
56
  largeIconSize: '1rem',
57
57
  iconMargin: spacing?.xxSmall,
58
- iconColor: colors?.contrasts?.grey125125,
58
+ iconColor: colors?.textDarkest,
59
59
 
60
60
  togglePadding: spacing?.xxSmall,
61
61
  toggleBorderRadius: borders?.radiusMedium,
62
62
  toggleBorderWidth: borders?.widthMedium,
63
63
  toggleBorderStyle: borders?.style,
64
- toggleFocusBorderColor: colors?.contrasts?.blue4570,
64
+ toggleFocusBorderColor: colors?.borderBrand,
65
65
 
66
- filledBackgroundColor: colors?.contrasts?.grey1111,
66
+ filledBackgroundColor: colors?.backgroundLight,
67
67
  filledBorderWidth: borders?.widthSmall,
68
68
  filledBorderStyle: borders?.style,
69
- filledBorderColor: colors?.contrasts?.grey1214,
69
+ filledBorderColor: colors?.borderMedium,
70
70
  filledBorderRadius: borders?.radiusMedium,
71
71
  filledPadding: spacing?.small
72
72
  }