@instructure/ui-rating 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-rating
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-rating
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;
32
31
  const colors = theme.colors,
33
32
  typography = theme.typography,
34
33
  spacing = theme.spacing,
@@ -41,8 +40,8 @@ const generateComponentTheme = theme => {
41
40
  };
42
41
  const componentVariables = {
43
42
  iconMargin: spacing === null || spacing === void 0 ? void 0 : spacing.xxxSmall,
44
- iconEmptyColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.blue4570,
45
- iconFilledColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.blue4570,
43
+ iconEmptyColor: colors === null || colors === void 0 ? void 0 : colors.textBrand,
44
+ iconFilledColor: colors === null || colors === void 0 ? void 0 : colors.textBrand,
46
45
  smallIconFontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
47
46
  mediumIconFontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeLarge,
48
47
  largeIconFontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeXXLarge
@@ -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;
38
37
  const colors = theme.colors,
39
38
  typography = theme.typography,
40
39
  spacing = theme.spacing,
@@ -47,8 +46,8 @@ const generateComponentTheme = theme => {
47
46
  };
48
47
  const componentVariables = {
49
48
  iconMargin: spacing === null || spacing === void 0 ? void 0 : spacing.xxxSmall,
50
- iconEmptyColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.blue4570,
51
- iconFilledColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.blue4570,
49
+ iconEmptyColor: colors === null || colors === void 0 ? void 0 : colors.textBrand,
50
+ iconFilledColor: colors === null || colors === void 0 ? void 0 : colors.textBrand,
52
51
  smallIconFontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
53
52
  mediumIconFontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeLarge,
54
53
  largeIconFontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeXXLarge
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-rating",
3
- "version": "9.5.2-snapshot-7",
3
+ "version": "9.6.0",
4
4
  "description": "A static rating component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,22 +24,22 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.24.5",
27
- "@instructure/console": "9.5.2-snapshot-7",
28
- "@instructure/emotion": "9.5.2-snapshot-7",
29
- "@instructure/shared-types": "9.5.2-snapshot-7",
30
- "@instructure/ui-a11y-content": "9.5.2-snapshot-7",
31
- "@instructure/ui-dom-utils": "9.5.2-snapshot-7",
32
- "@instructure/ui-icons": "9.5.2-snapshot-7",
33
- "@instructure/ui-motion": "9.5.2-snapshot-7",
34
- "@instructure/ui-react-utils": "9.5.2-snapshot-7",
35
- "@instructure/ui-testable": "9.5.2-snapshot-7",
36
- "@instructure/ui-view": "9.5.2-snapshot-7",
27
+ "@instructure/console": "9.6.0",
28
+ "@instructure/emotion": "9.6.0",
29
+ "@instructure/shared-types": "9.6.0",
30
+ "@instructure/ui-a11y-content": "9.6.0",
31
+ "@instructure/ui-dom-utils": "9.6.0",
32
+ "@instructure/ui-icons": "9.6.0",
33
+ "@instructure/ui-motion": "9.6.0",
34
+ "@instructure/ui-react-utils": "9.6.0",
35
+ "@instructure/ui-testable": "9.6.0",
36
+ "@instructure/ui-view": "9.6.0",
37
37
  "prop-types": "^15.8.1"
38
38
  },
39
39
  "devDependencies": {
40
- "@instructure/ui-axe-check": "9.5.2-snapshot-7",
41
- "@instructure/ui-babel-preset": "9.5.2-snapshot-7",
42
- "@instructure/ui-themes": "9.5.2-snapshot-7",
40
+ "@instructure/ui-axe-check": "9.6.0",
41
+ "@instructure/ui-babel-preset": "9.6.0",
42
+ "@instructure/ui-themes": "9.6.0",
43
43
  "@testing-library/jest-dom": "^6.4.6",
44
44
  "@testing-library/react": "^15.0.7",
45
45
  "vitest": "^2.0.2"
@@ -42,8 +42,8 @@ const generateComponentTheme = (theme: Theme): RatingIconTheme => {
42
42
 
43
43
  const componentVariables: RatingIconTheme = {
44
44
  iconMargin: spacing?.xxxSmall,
45
- iconEmptyColor: colors?.contrasts?.blue4570,
46
- iconFilledColor: colors?.contrasts?.blue4570,
45
+ iconEmptyColor: colors?.textBrand,
46
+ iconFilledColor: colors?.textBrand,
47
47
 
48
48
  smallIconFontSize: typography?.fontSizeMedium,
49
49
  mediumIconFontSize: typography?.fontSizeLarge,