@instructure/ui-pill 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-pill
17
9
 
18
10
 
19
11
 
package/es/Pill/theme.js CHANGED
@@ -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, _colors$contrasts6, _colors$contrasts7;
32
31
  const borders = theme.borders,
33
32
  colors = theme.colors,
34
33
  spacing = theme.spacing,
@@ -43,17 +42,17 @@ const generateComponentTheme = theme => {
43
42
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
44
43
  padding: `0 ${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall}`,
45
44
  height: '1.5rem',
46
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.white1010,
45
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
47
46
  textFontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
48
47
  textFontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
49
48
  statusLabelFontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightBold,
50
49
  maxWidth: '15rem',
51
- primaryColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.grey4570,
52
- infoColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.blue4570,
53
- dangerColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts4 = colors.contrasts) === null || _colors$contrasts4 === void 0 ? void 0 : _colors$contrasts4.red4570,
54
- successColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts5 = colors.contrasts) === null || _colors$contrasts5 === void 0 ? void 0 : _colors$contrasts5.green4570,
55
- warningColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts6 = colors.contrasts) === null || _colors$contrasts6 === void 0 ? void 0 : _colors$contrasts6.orange4570,
56
- alertColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts7 = colors.contrasts) === null || _colors$contrasts7 === void 0 ? void 0 : _colors$contrasts7.blue4570,
50
+ primaryColor: colors === null || colors === void 0 ? void 0 : colors.textDark,
51
+ infoColor: colors === null || colors === void 0 ? void 0 : colors.textInfo,
52
+ dangerColor: colors === null || colors === void 0 ? void 0 : colors.textDanger,
53
+ successColor: colors === null || colors === void 0 ? void 0 : colors.textSuccess,
54
+ warningColor: colors === null || colors === void 0 ? void 0 : colors.textWarning,
55
+ alertColor: colors === null || colors === void 0 ? void 0 : colors.textAlert,
57
56
  borderWidth: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
58
57
  borderStyle: borders === null || borders === void 0 ? void 0 : borders.style,
59
58
  borderRadius: '999rem'
package/lib/Pill/theme.js CHANGED
@@ -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, _colors$contrasts6, _colors$contrasts7;
38
37
  const borders = theme.borders,
39
38
  colors = theme.colors,
40
39
  spacing = theme.spacing,
@@ -49,17 +48,17 @@ const generateComponentTheme = theme => {
49
48
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
50
49
  padding: `0 ${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall}`,
51
50
  height: '1.5rem',
52
- background: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.white1010,
51
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
53
52
  textFontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
54
53
  textFontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
55
54
  statusLabelFontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightBold,
56
55
  maxWidth: '15rem',
57
- primaryColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.grey4570,
58
- infoColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.blue4570,
59
- dangerColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts4 = colors.contrasts) === null || _colors$contrasts4 === void 0 ? void 0 : _colors$contrasts4.red4570,
60
- successColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts5 = colors.contrasts) === null || _colors$contrasts5 === void 0 ? void 0 : _colors$contrasts5.green4570,
61
- warningColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts6 = colors.contrasts) === null || _colors$contrasts6 === void 0 ? void 0 : _colors$contrasts6.orange4570,
62
- alertColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts7 = colors.contrasts) === null || _colors$contrasts7 === void 0 ? void 0 : _colors$contrasts7.blue4570,
56
+ primaryColor: colors === null || colors === void 0 ? void 0 : colors.textDark,
57
+ infoColor: colors === null || colors === void 0 ? void 0 : colors.textInfo,
58
+ dangerColor: colors === null || colors === void 0 ? void 0 : colors.textDanger,
59
+ successColor: colors === null || colors === void 0 ? void 0 : colors.textSuccess,
60
+ warningColor: colors === null || colors === void 0 ? void 0 : colors.textWarning,
61
+ alertColor: colors === null || colors === void 0 ? void 0 : colors.textAlert,
63
62
  borderWidth: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
64
63
  borderStyle: borders === null || borders === void 0 ? void 0 : borders.style,
65
64
  borderRadius: '999rem'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-pill",
3
- "version": "9.5.2-snapshot-7",
3
+ "version": "9.5.2",
4
4
  "description": "A UI component to communicate concise status.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,27 +24,27 @@
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-react-utils": "9.5.2-snapshot-7",
31
- "@instructure/ui-testable": "9.5.2-snapshot-7",
32
- "@instructure/ui-tooltip": "9.5.2-snapshot-7",
33
- "@instructure/ui-truncate-text": "9.5.2-snapshot-7",
34
- "@instructure/ui-utils": "9.5.2-snapshot-7",
35
- "@instructure/ui-view": "9.5.2-snapshot-7",
27
+ "@instructure/console": "9.5.2",
28
+ "@instructure/emotion": "9.5.2",
29
+ "@instructure/shared-types": "9.5.2",
30
+ "@instructure/ui-react-utils": "9.5.2",
31
+ "@instructure/ui-testable": "9.5.2",
32
+ "@instructure/ui-tooltip": "9.5.2",
33
+ "@instructure/ui-truncate-text": "9.5.2",
34
+ "@instructure/ui-utils": "9.5.2",
35
+ "@instructure/ui-view": "9.5.2",
36
36
  "prop-types": "^15.8.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@instructure/ui-axe-check": "9.5.2-snapshot-7",
40
- "@instructure/ui-babel-preset": "9.5.2-snapshot-7",
41
- "@instructure/ui-color-utils": "9.5.2-snapshot-7",
42
- "@instructure/ui-icons": "9.5.2-snapshot-7",
43
- "@instructure/ui-scripts": "9.5.2-snapshot-7",
44
- "@instructure/ui-test-locator": "9.5.2-snapshot-7",
45
- "@instructure/ui-test-queries": "9.5.2-snapshot-7",
46
- "@instructure/ui-test-utils": "9.5.2-snapshot-7",
47
- "@instructure/ui-themes": "9.5.2-snapshot-7",
39
+ "@instructure/ui-axe-check": "9.5.2",
40
+ "@instructure/ui-babel-preset": "9.5.2",
41
+ "@instructure/ui-color-utils": "9.5.2",
42
+ "@instructure/ui-icons": "9.5.2",
43
+ "@instructure/ui-scripts": "9.5.2",
44
+ "@instructure/ui-test-locator": "9.5.2",
45
+ "@instructure/ui-test-queries": "9.5.2",
46
+ "@instructure/ui-test-utils": "9.5.2",
47
+ "@instructure/ui-themes": "9.5.2",
48
48
  "@testing-library/jest-dom": "^6.4.6",
49
49
  "@testing-library/react": "^15.0.7",
50
50
  "vitest": "^2.0.2"
package/src/Pill/theme.ts CHANGED
@@ -43,17 +43,17 @@ const generateComponentTheme = (theme: Theme): PillTheme => {
43
43
  fontFamily: typography?.fontFamily,
44
44
  padding: `0 ${spacing?.xSmall}`,
45
45
  height: '1.5rem',
46
- background: colors?.contrasts?.white1010,
46
+ background: colors?.backgroundLightest,
47
47
  textFontSize: typography?.fontSizeSmall,
48
48
  textFontWeight: typography?.fontWeightNormal,
49
49
  statusLabelFontWeight: typography?.fontWeightBold,
50
50
  maxWidth: '15rem',
51
- primaryColor: colors?.contrasts?.grey4570,
52
- infoColor: colors?.contrasts?.blue4570,
53
- dangerColor: colors?.contrasts?.red4570,
54
- successColor: colors?.contrasts?.green4570,
55
- warningColor: colors?.contrasts?.orange4570,
56
- alertColor: colors?.contrasts?.blue4570,
51
+ primaryColor: colors?.textDark,
52
+ infoColor: colors?.textInfo,
53
+ dangerColor: colors?.textDanger,
54
+ successColor: colors?.textSuccess,
55
+ warningColor: colors?.textWarning,
56
+ alertColor: colors?.textAlert,
57
57
  borderWidth: borders?.widthSmall,
58
58
  borderStyle: borders?.style,
59
59
  borderRadius: '999rem'