@instructure/ui-source-code-editor 9.5.2-snapshot-1 → 9.5.2-snapshot-7
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-
|
|
6
|
+
## [9.5.2-snapshot-7](https://github.com/instructure/instructure-ui/compare/v9.5.1...v9.5.2-snapshot-7) (2024-07-31)
|
|
7
7
|
|
|
8
|
-
|
|
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, _colors$contrasts3, _colors$contrasts4, _colors$contrasts5;
|
|
31
32
|
const colors = theme.colors,
|
|
32
33
|
borders = theme.borders,
|
|
33
34
|
typography = theme.typography,
|
|
@@ -35,13 +36,13 @@ const generateComponentTheme = theme => {
|
|
|
35
36
|
const componentVariables = {
|
|
36
37
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamilyMonospace,
|
|
37
38
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
|
|
38
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
|
39
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
|
40
|
-
gutterBackground: colors === null || colors === void 0 ? void 0 : colors.
|
|
39
|
+
background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.white1010,
|
|
40
|
+
color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.grey125125,
|
|
41
|
+
gutterBackground: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.grey1111,
|
|
41
42
|
borderWidth: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
|
|
42
|
-
borderColor: colors === null || colors === void 0 ? void 0 : colors.
|
|
43
|
+
borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts4 = colors.contrasts) === null || _colors$contrasts4 === void 0 ? void 0 : _colors$contrasts4.grey1214,
|
|
43
44
|
borderRadius: borders === null || borders === void 0 ? void 0 : borders.radiusMedium,
|
|
44
|
-
focusBorderColor: colors === null || colors === void 0 ? void 0 : colors.
|
|
45
|
+
focusBorderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts5 = colors.contrasts) === null || _colors$contrasts5 === void 0 ? void 0 : _colors$contrasts5.blue4570,
|
|
45
46
|
horizontalPadding: spacing === null || spacing === void 0 ? void 0 : spacing.xSmall,
|
|
46
47
|
verticalPadding: spacing === null || spacing === void 0 ? void 0 : spacing.xxSmall
|
|
47
48
|
};
|
|
@@ -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, _colors$contrasts3, _colors$contrasts4, _colors$contrasts5;
|
|
37
38
|
const colors = theme.colors,
|
|
38
39
|
borders = theme.borders,
|
|
39
40
|
typography = theme.typography,
|
|
@@ -41,13 +42,13 @@ const generateComponentTheme = theme => {
|
|
|
41
42
|
const componentVariables = {
|
|
42
43
|
fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamilyMonospace,
|
|
43
44
|
fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
|
|
44
|
-
background: colors === null || colors === void 0 ? void 0 : colors.
|
|
45
|
-
color: colors === null || colors === void 0 ? void 0 : colors.
|
|
46
|
-
gutterBackground: colors === null || colors === void 0 ? void 0 : colors.
|
|
45
|
+
background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.white1010,
|
|
46
|
+
color: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.grey125125,
|
|
47
|
+
gutterBackground: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.grey1111,
|
|
47
48
|
borderWidth: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
|
|
48
|
-
borderColor: colors === null || colors === void 0 ? void 0 : colors.
|
|
49
|
+
borderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts4 = colors.contrasts) === null || _colors$contrasts4 === void 0 ? void 0 : _colors$contrasts4.grey1214,
|
|
49
50
|
borderRadius: borders === null || borders === void 0 ? void 0 : borders.radiusMedium,
|
|
50
|
-
focusBorderColor: colors === null || colors === void 0 ? void 0 : colors.
|
|
51
|
+
focusBorderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts5 = colors.contrasts) === null || _colors$contrasts5 === void 0 ? void 0 : _colors$contrasts5.blue4570,
|
|
51
52
|
horizontalPadding: spacing === null || spacing === void 0 ? void 0 : spacing.xSmall,
|
|
52
53
|
verticalPadding: spacing === null || spacing === void 0 ? void 0 : spacing.xxSmall
|
|
53
54
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-source-code-editor",
|
|
3
|
-
"version": "9.5.2-snapshot-
|
|
3
|
+
"version": "9.5.2-snapshot-7",
|
|
4
4
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "9.5.2-snapshot-
|
|
27
|
-
"@instructure/ui-test-queries": "9.5.2-snapshot-
|
|
28
|
-
"@instructure/ui-test-utils": "9.5.2-snapshot-
|
|
26
|
+
"@instructure/ui-babel-preset": "9.5.2-snapshot-7",
|
|
27
|
+
"@instructure/ui-test-queries": "9.5.2-snapshot-7",
|
|
28
|
+
"@instructure/ui-test-utils": "9.5.2-snapshot-7",
|
|
29
29
|
"@testing-library/jest-dom": "^6.4.6",
|
|
30
30
|
"@testing-library/react": "^15.0.7",
|
|
31
31
|
"vitest": "^2.0.2"
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
"@codemirror/search": "^6.5.6",
|
|
46
46
|
"@codemirror/state": "^6.4.1",
|
|
47
47
|
"@codemirror/view": "^6.26.3",
|
|
48
|
-
"@instructure/emotion": "9.5.2-snapshot-
|
|
49
|
-
"@instructure/shared-types": "9.5.2-snapshot-
|
|
50
|
-
"@instructure/ui-a11y-content": "9.5.2-snapshot-
|
|
51
|
-
"@instructure/ui-buttons": "9.5.2-snapshot-
|
|
52
|
-
"@instructure/ui-dom-utils": "9.5.2-snapshot-
|
|
53
|
-
"@instructure/ui-i18n": "9.5.2-snapshot-
|
|
54
|
-
"@instructure/ui-icons": "9.5.2-snapshot-
|
|
55
|
-
"@instructure/ui-prop-types": "9.5.2-snapshot-
|
|
56
|
-
"@instructure/ui-react-utils": "9.5.2-snapshot-
|
|
57
|
-
"@instructure/ui-test-locator": "9.5.2-snapshot-
|
|
58
|
-
"@instructure/ui-testable": "9.5.2-snapshot-
|
|
59
|
-
"@instructure/ui-text-input": "9.5.2-snapshot-
|
|
60
|
-
"@instructure/ui-themes": "9.5.2-snapshot-
|
|
61
|
-
"@instructure/ui-utils": "9.5.2-snapshot-
|
|
48
|
+
"@instructure/emotion": "9.5.2-snapshot-7",
|
|
49
|
+
"@instructure/shared-types": "9.5.2-snapshot-7",
|
|
50
|
+
"@instructure/ui-a11y-content": "9.5.2-snapshot-7",
|
|
51
|
+
"@instructure/ui-buttons": "9.5.2-snapshot-7",
|
|
52
|
+
"@instructure/ui-dom-utils": "9.5.2-snapshot-7",
|
|
53
|
+
"@instructure/ui-i18n": "9.5.2-snapshot-7",
|
|
54
|
+
"@instructure/ui-icons": "9.5.2-snapshot-7",
|
|
55
|
+
"@instructure/ui-prop-types": "9.5.2-snapshot-7",
|
|
56
|
+
"@instructure/ui-react-utils": "9.5.2-snapshot-7",
|
|
57
|
+
"@instructure/ui-test-locator": "9.5.2-snapshot-7",
|
|
58
|
+
"@instructure/ui-testable": "9.5.2-snapshot-7",
|
|
59
|
+
"@instructure/ui-text-input": "9.5.2-snapshot-7",
|
|
60
|
+
"@instructure/ui-themes": "9.5.2-snapshot-7",
|
|
61
|
+
"@instructure/ui-utils": "9.5.2-snapshot-7",
|
|
62
62
|
"@lezer/highlight": "1.2.0",
|
|
63
63
|
"prop-types": "^15.8.1"
|
|
64
64
|
},
|
|
@@ -36,13 +36,13 @@ const generateComponentTheme = (theme: Theme): SourceCodeEditorTheme => {
|
|
|
36
36
|
const componentVariables: SourceCodeEditorTheme = {
|
|
37
37
|
fontFamily: typography?.fontFamilyMonospace,
|
|
38
38
|
fontSize: typography?.fontSizeSmall,
|
|
39
|
-
background: colors?.
|
|
40
|
-
color: colors?.
|
|
41
|
-
gutterBackground: colors?.
|
|
39
|
+
background: colors?.contrasts?.white1010,
|
|
40
|
+
color: colors?.contrasts?.grey125125,
|
|
41
|
+
gutterBackground: colors?.contrasts?.grey1111,
|
|
42
42
|
borderWidth: borders?.widthSmall,
|
|
43
|
-
borderColor: colors?.
|
|
43
|
+
borderColor: colors?.contrasts?.grey1214,
|
|
44
44
|
borderRadius: borders?.radiusMedium,
|
|
45
|
-
focusBorderColor: colors?.
|
|
45
|
+
focusBorderColor: colors?.contrasts?.blue4570,
|
|
46
46
|
horizontalPadding: spacing?.xSmall,
|
|
47
47
|
verticalPadding: spacing?.xxSmall
|
|
48
48
|
}
|