@instructure/ui-heading 10.13.0 → 10.13.1-pr-snapshot-1741357986437

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,6 +3,14 @@
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
+ ## [10.13.1-pr-snapshot-1741357986437](https://github.com/instructure/instructure-ui/compare/v10.13.0...v10.13.1-pr-snapshot-1741357986437) (2025-03-07)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-heading
9
+
10
+
11
+
12
+
13
+
6
14
  # [10.13.0](https://github.com/instructure/instructure-ui/compare/v10.12.0...v10.13.0) (2025-03-06)
7
15
 
8
16
  **Note:** Version bump only for package @instructure/ui-heading
@@ -5,7 +5,7 @@ var _react = _interopRequireDefault(require("react"));
5
5
  var _react2 = require("@testing-library/react");
6
6
  require("@testing-library/jest-dom");
7
7
  var _index = require("../index");
8
- var _runAxeCheck = require("@instructure/ui-axe-check/lib/runAxeCheck.js");
8
+ var _uiAxeCheck = require("@instructure/ui-axe-check");
9
9
  var _Heading, _Heading2, _Heading3, _Heading4, _Heading5;
10
10
  /*
11
11
  * The MIT License (MIT)
@@ -53,7 +53,7 @@ describe('<Heading />', () => {
53
53
  it('should meet a11y standards', async () => {
54
54
  const _render3 = (0, _react2.render)(_Heading4 || (_Heading4 = /*#__PURE__*/_react.default.createElement(_index.Heading, null, "Hello World"))),
55
55
  container = _render3.container;
56
- const axeCheck = await (0, _runAxeCheck.runAxeCheck)(container);
56
+ const axeCheck = await (0, _uiAxeCheck.runAxeCheck)(container);
57
57
  expect(axeCheck).toBe(true);
58
58
  });
59
59
  it('should render with the specified tag when `as` prop is set', async () => {
@@ -7,10 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = exports.Heading = void 0;
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
9
  var _react = require("react");
10
- var _View = require("@instructure/ui-view/lib/View");
11
- var _getElementType = require("@instructure/ui-react-utils/lib/getElementType.js");
12
- var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
13
- var _testable = require("@instructure/ui-testable/lib/testable.js");
10
+ var _uiView = require("@instructure/ui-view");
11
+ var _uiReactUtils = require("@instructure/ui-react-utils");
12
+ var _uiTestable = require("@instructure/ui-testable");
14
13
  var _emotion = require("@instructure/emotion");
15
14
  var _styles = _interopRequireDefault(require("./styles"));
16
15
  var _theme = _interopRequireDefault(require("./theme"));
@@ -59,7 +58,7 @@ const variantLevels = {
59
58
  category: components
60
59
  ---
61
60
  **/
62
- let Heading = exports.Heading = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_Heading = class Heading extends _react.Component {
61
+ let Heading = exports.Heading = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _uiTestable.testable)(), _dec(_class = _dec2(_class = (_Heading = class Heading extends _react.Component {
63
62
  constructor(...args) {
64
63
  super(...args);
65
64
  this.ref = null;
@@ -104,7 +103,7 @@ let Heading = exports.Heading = (_dec = (0, _emotion.withStyle)(_styles.default,
104
103
  variant = _this$props4.variant,
105
104
  props = (0, _objectWithoutProperties2.default)(_this$props4, _excluded);
106
105
  const propsForGetElementType = variant ? {} : this.props;
107
- const ElementType = (0, _getElementType.getElementType)(Heading, propsForGetElementType, () => {
106
+ const ElementType = (0, _uiReactUtils.getElementType)(Heading, propsForGetElementType, () => {
108
107
  if (variant) {
109
108
  return variantLevels[variant];
110
109
  }
@@ -114,7 +113,7 @@ let Heading = exports.Heading = (_dec = (0, _emotion.withStyle)(_styles.default,
114
113
  return level;
115
114
  }
116
115
  });
117
- return (0, _emotion.jsx)(_View.View, Object.assign({}, (0, _passthroughProps.passthroughProps)(props), {
116
+ return (0, _emotion.jsx)(_uiView.View, Object.assign({}, (0, _uiReactUtils.passthroughProps)(props), {
118
117
  css: (_this$props$styles = this.props.styles) === null || _this$props$styles === void 0 ? void 0 : _this$props$styles.heading,
119
118
  as: ElementType,
120
119
  elementRef: this.handleRef,
@@ -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 _childrenOrValue = require("@instructure/ui-prop-types/lib/childrenOrValue.js");
9
+ var _uiPropTypes = require("@instructure/ui-prop-types");
10
10
  var _emotion = require("@instructure/emotion");
11
11
  /*
12
12
  * The MIT License (MIT)
@@ -34,7 +34,7 @@ var _emotion = require("@instructure/emotion");
34
34
 
35
35
  const propTypes = exports.propTypes = {
36
36
  border: _propTypes.default.oneOf(['none', 'top', 'bottom']),
37
- children: _childrenOrValue.childrenOrValue,
37
+ children: _uiPropTypes.childrenOrValue,
38
38
  color: _propTypes.default.oneOf(['primary', 'secondary', 'primary-inverse', 'secondary-inverse', 'inherit']),
39
39
  level: _propTypes.default.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'reset']),
40
40
  as: _propTypes.default.elementType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-heading",
3
- "version": "10.13.0",
3
+ "version": "10.13.1-pr-snapshot-1741357986437",
4
4
  "description": "A component for creating typographic headings",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,20 +24,20 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.26.0",
27
- "@instructure/console": "10.13.0",
28
- "@instructure/emotion": "10.13.0",
29
- "@instructure/shared-types": "10.13.0",
30
- "@instructure/ui-prop-types": "10.13.0",
31
- "@instructure/ui-react-utils": "10.13.0",
32
- "@instructure/ui-testable": "10.13.0",
33
- "@instructure/ui-view": "10.13.0",
27
+ "@instructure/console": "10.13.1-pr-snapshot-1741357986437",
28
+ "@instructure/emotion": "10.13.1-pr-snapshot-1741357986437",
29
+ "@instructure/shared-types": "10.13.1-pr-snapshot-1741357986437",
30
+ "@instructure/ui-prop-types": "10.13.1-pr-snapshot-1741357986437",
31
+ "@instructure/ui-react-utils": "10.13.1-pr-snapshot-1741357986437",
32
+ "@instructure/ui-testable": "10.13.1-pr-snapshot-1741357986437",
33
+ "@instructure/ui-view": "10.13.1-pr-snapshot-1741357986437",
34
34
  "prop-types": "^15.8.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@instructure/ui-axe-check": "10.13.0",
38
- "@instructure/ui-babel-preset": "10.13.0",
39
- "@instructure/ui-test-utils": "10.13.0",
40
- "@instructure/ui-themes": "10.13.0",
37
+ "@instructure/ui-axe-check": "10.13.1-pr-snapshot-1741357986437",
38
+ "@instructure/ui-babel-preset": "10.13.1-pr-snapshot-1741357986437",
39
+ "@instructure/ui-test-utils": "10.13.1-pr-snapshot-1741357986437",
40
+ "@instructure/ui-themes": "10.13.1-pr-snapshot-1741357986437",
41
41
  "@testing-library/jest-dom": "^6.6.3",
42
42
  "@testing-library/react": "^16.0.1",
43
43
  "vitest": "^2.1.8"