@instructure/ui-text 8.56.5-pr-snapshot-1728655013879 → 8.56.5-pr-snapshot-1729507712924

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,7 +3,7 @@
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
- ## [8.56.5-pr-snapshot-1728655013879](https://github.com/instructure/instructure-ui/compare/v8.56.4...v8.56.5-pr-snapshot-1728655013879) (2024-10-11)
6
+ ## [8.56.5-pr-snapshot-1729507712924](https://github.com/instructure/instructure-ui/compare/v8.56.4...v8.56.5-pr-snapshot-1729507712924) (2024-10-21)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-text
9
9
 
package/lib/Text/index.js CHANGED
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = exports.Text = void 0;
8
8
  var _react = require("react");
9
- var _uiReactUtils = require("@instructure/ui-react-utils");
9
+ var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
10
+ var _getElementType = require("@instructure/ui-react-utils/lib/getElementType.js");
10
11
  var _emotion = require("@instructure/emotion");
11
12
  var _styles = _interopRequireDefault(require("./styles"));
12
13
  var _theme = _interopRequireDefault(require("./theme"));
@@ -53,8 +54,8 @@ let Text = exports.Text = (_dec = (0, _emotion.withStyle)(_styles.default, _them
53
54
  render() {
54
55
  var _this$props$styles;
55
56
  const children = this.props.children;
56
- const ElementType = (0, _uiReactUtils.getElementType)(Text, this.props);
57
- return (0, _emotion.jsx)(ElementType, Object.assign({}, (0, _uiReactUtils.passthroughProps)(this.props), {
57
+ const ElementType = (0, _getElementType.getElementType)(Text, this.props);
58
+ return (0, _emotion.jsx)(ElementType, Object.assign({}, (0, _passthroughProps.passthroughProps)(this.props), {
58
59
  css: (_this$props$styles = this.props.styles) === null || _this$props$styles === void 0 ? void 0 : _this$props$styles.text,
59
60
  ref: this.props.elementRef
60
61
  }), children);
package/lib/Text/props.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.propTypes = exports.allowedProps = void 0;
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _uiReactUtils = require("@instructure/ui-react-utils");
9
+ var _deprecated = require("@instructure/ui-react-utils/lib/deprecated.js");
10
10
  /*
11
11
  * The MIT License (MIT)
12
12
  *
@@ -34,7 +34,7 @@ var _uiReactUtils = require("@instructure/ui-react-utils");
34
34
  const propTypes = exports.propTypes = {
35
35
  as: _propTypes.default.elementType,
36
36
  children: _propTypes.default.node,
37
- color: _uiReactUtils.deprecated.deprecatePropValues(_propTypes.default.oneOf(['primary', 'secondary', 'brand', 'success', 'warning', 'danger', 'alert', 'primary-inverse', 'secondary-inverse']), ['warning'], "The `warning` color variant will be removed in version 9.0.0, because it doesn't have sufficient color contrast with the background (4.5:1) required for text."),
37
+ color: _deprecated.deprecated.deprecatePropValues(_propTypes.default.oneOf(['primary', 'secondary', 'brand', 'success', 'warning', 'danger', 'alert', 'primary-inverse', 'secondary-inverse']), ['warning'], "The `warning` color variant will be removed in version 9.0.0, because it doesn't have sufficient color contrast with the background (4.5:1) required for text."),
38
38
  elementRef: _propTypes.default.func,
39
39
  fontStyle: _propTypes.default.oneOf(['italic', 'normal']),
40
40
  letterSpacing: _propTypes.default.oneOf(['normal', 'condensed', 'expanded']),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-text",
3
- "version": "8.56.5-pr-snapshot-1728655013879",
3
+ "version": "8.56.5-pr-snapshot-1729507712924",
4
4
  "description": "A component for styling textual content",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,17 +24,17 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.23.2",
27
- "@instructure/console": "8.56.5-pr-snapshot-1728655013879",
28
- "@instructure/emotion": "8.56.5-pr-snapshot-1728655013879",
29
- "@instructure/shared-types": "8.56.5-pr-snapshot-1728655013879",
30
- "@instructure/ui-color-utils": "8.56.5-pr-snapshot-1728655013879",
31
- "@instructure/ui-react-utils": "8.56.5-pr-snapshot-1728655013879",
27
+ "@instructure/console": "8.56.5-pr-snapshot-1729507712924",
28
+ "@instructure/emotion": "8.56.5-pr-snapshot-1729507712924",
29
+ "@instructure/shared-types": "8.56.5-pr-snapshot-1729507712924",
30
+ "@instructure/ui-color-utils": "8.56.5-pr-snapshot-1729507712924",
31
+ "@instructure/ui-react-utils": "8.56.5-pr-snapshot-1729507712924",
32
32
  "prop-types": "^15.8.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@instructure/ui-babel-preset": "8.56.5-pr-snapshot-1728655013879",
36
- "@instructure/ui-test-utils": "8.56.5-pr-snapshot-1728655013879",
37
- "@instructure/ui-themes": "8.56.5-pr-snapshot-1728655013879"
35
+ "@instructure/ui-babel-preset": "8.56.5-pr-snapshot-1729507712924",
36
+ "@instructure/ui-test-utils": "8.56.5-pr-snapshot-1729507712924",
37
+ "@instructure/ui-themes": "8.56.5-pr-snapshot-1729507712924"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": ">=16.8 <=18"