@instructure/ui-select 9.5.2-snapshot-1 → 10.0.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,9 +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-1](https://github.com/instructure/instructure-ui/compare/v9.5.1...v9.5.2-snapshot-1) (2024-07-31)
6
+ # [10.0.0](https://github.com/instructure/instructure-ui/compare/v9.5.1...v10.0.0) (2024-07-31)
7
7
 
8
- **Note:** Version bump only for package @instructure/ui-select
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
9
17
 
10
18
 
11
19
 
@@ -28,6 +28,7 @@
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;
31
32
  const colors = theme.colors,
32
33
  typography = theme.typography;
33
34
  const componentVariables = {
@@ -37,8 +38,8 @@ const generateComponentTheme = theme => {
37
38
  smallIconSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeXSmall,
38
39
  mediumIconSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
39
40
  largeIconSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
40
- color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
41
- background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
41
+ color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
42
+ background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010
42
43
  };
43
44
  return {
44
45
  ...componentVariables
@@ -34,6 +34,7 @@ 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;
37
38
  const colors = theme.colors,
38
39
  typography = theme.typography;
39
40
  const componentVariables = {
@@ -43,8 +44,8 @@ const generateComponentTheme = theme => {
43
44
  smallIconSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeXSmall,
44
45
  mediumIconSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
45
46
  largeIconSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
46
- color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
47
- background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
47
+ color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.grey125125,
48
+ background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.white1010
48
49
  };
49
50
  return {
50
51
  ...componentVariables
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-select",
3
- "version": "9.5.2-snapshot-1",
3
+ "version": "10.0.0",
4
4
  "description": "A component for select and autocomplete behavior.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,13 +23,13 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-axe-check": "9.5.2-snapshot-1",
27
- "@instructure/ui-babel-preset": "9.5.2-snapshot-1",
28
- "@instructure/ui-color-utils": "9.5.2-snapshot-1",
29
- "@instructure/ui-scripts": "9.5.2-snapshot-1",
30
- "@instructure/ui-test-locator": "9.5.2-snapshot-1",
31
- "@instructure/ui-test-utils": "9.5.2-snapshot-1",
32
- "@instructure/ui-themes": "9.5.2-snapshot-1",
26
+ "@instructure/ui-axe-check": "10.0.0",
27
+ "@instructure/ui-babel-preset": "10.0.0",
28
+ "@instructure/ui-color-utils": "10.0.0",
29
+ "@instructure/ui-scripts": "10.0.0",
30
+ "@instructure/ui-test-locator": "10.0.0",
31
+ "@instructure/ui-test-utils": "10.0.0",
32
+ "@instructure/ui-themes": "10.0.0",
33
33
  "@testing-library/jest-dom": "^6.4.6",
34
34
  "@testing-library/react": "^15.0.7",
35
35
  "@testing-library/user-event": "^14.5.2",
@@ -37,22 +37,22 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@babel/runtime": "^7.24.5",
40
- "@instructure/emotion": "9.5.2-snapshot-1",
41
- "@instructure/shared-types": "9.5.2-snapshot-1",
42
- "@instructure/ui-dom-utils": "9.5.2-snapshot-1",
43
- "@instructure/ui-form-field": "9.5.2-snapshot-1",
44
- "@instructure/ui-icons": "9.5.2-snapshot-1",
45
- "@instructure/ui-options": "9.5.2-snapshot-1",
46
- "@instructure/ui-popover": "9.5.2-snapshot-1",
47
- "@instructure/ui-position": "9.5.2-snapshot-1",
48
- "@instructure/ui-prop-types": "9.5.2-snapshot-1",
49
- "@instructure/ui-react-utils": "9.5.2-snapshot-1",
50
- "@instructure/ui-selectable": "9.5.2-snapshot-1",
51
- "@instructure/ui-testable": "9.5.2-snapshot-1",
52
- "@instructure/ui-text-input": "9.5.2-snapshot-1",
53
- "@instructure/ui-utils": "9.5.2-snapshot-1",
54
- "@instructure/ui-view": "9.5.2-snapshot-1",
55
- "@instructure/uid": "9.5.2-snapshot-1",
40
+ "@instructure/emotion": "10.0.0",
41
+ "@instructure/shared-types": "10.0.0",
42
+ "@instructure/ui-dom-utils": "10.0.0",
43
+ "@instructure/ui-form-field": "10.0.0",
44
+ "@instructure/ui-icons": "10.0.0",
45
+ "@instructure/ui-options": "10.0.0",
46
+ "@instructure/ui-popover": "10.0.0",
47
+ "@instructure/ui-position": "10.0.0",
48
+ "@instructure/ui-prop-types": "10.0.0",
49
+ "@instructure/ui-react-utils": "10.0.0",
50
+ "@instructure/ui-selectable": "10.0.0",
51
+ "@instructure/ui-testable": "10.0.0",
52
+ "@instructure/ui-text-input": "10.0.0",
53
+ "@instructure/ui-utils": "10.0.0",
54
+ "@instructure/ui-view": "10.0.0",
55
+ "@instructure/uid": "10.0.0",
56
56
  "prop-types": "^15.8.1"
57
57
  },
58
58
  "peerDependencies": {
@@ -41,8 +41,8 @@ const generateComponentTheme = (theme: Theme): SelectTheme => {
41
41
  mediumIconSize: typography?.fontSizeSmall,
42
42
  largeIconSize: typography?.fontSizeMedium,
43
43
 
44
- color: colors?.textDarkest,
45
- background: colors?.backgroundLightest
44
+ color: colors?.contrasts?.grey125125,
45
+ background: colors?.contrasts?.white1010
46
46
  }
47
47
 
48
48
  return {