@instructure/ui-badge 8.56.1 → 8.56.2-pr-snapshot-1721749364069

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
+ ## [8.56.2-pr-snapshot-1721749364069](https://github.com/instructure/instructure-ui/compare/v8.56.1...v8.56.2-pr-snapshot-1721749364069) (2024-07-23)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-badge
9
+
10
+
11
+
12
+
13
+
6
14
  ## [8.56.1](https://github.com/instructure/instructure-ui/compare/v8.56.0...v8.56.1) (2024-06-13)
7
15
 
8
16
  **Note:** Version bump only for package @instructure/ui-badge
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _View = require("@instructure/ui-view/lib/View");
9
+ var _uiView = require("@instructure/ui-view");
10
10
  /*
11
11
  * The MIT License (MIT)
12
12
  *
@@ -39,7 +39,7 @@ var _default = exports.default = {
39
39
  getComponentProps: props => {
40
40
  return {
41
41
  count: 100,
42
- children: /*#__PURE__*/_react.default.createElement(_View.View, {
42
+ children: /*#__PURE__*/_react.default.createElement(_uiView.View, {
43
43
  display: "block",
44
44
  width: props.display === 'block' ? '100%' : '2rem',
45
45
  height: "2rem",
@@ -3,7 +3,7 @@
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
4
  var _react = _interopRequireDefault(require("react"));
5
5
  var _react2 = require("@testing-library/react");
6
- var _runAxeCheck = require("@instructure/ui-axe-check/lib/runAxeCheck.js");
6
+ var _uiAxeCheck = require("@instructure/ui-axe-check");
7
7
  require("@testing-library/jest-dom");
8
8
  var _index = require("../index");
9
9
  var _button;
@@ -42,7 +42,7 @@ describe('<Badge />', () => {
42
42
  it('should be accessible', async () => {
43
43
  const _renderBadge = renderBadge(),
44
44
  container = _renderBadge.container;
45
- const axeCheck = await (0, _runAxeCheck.runAxeCheck)(container);
45
+ const axeCheck = await (0, _uiAxeCheck.runAxeCheck)(container);
46
46
  expect(axeCheck).toBe(true);
47
47
  });
48
48
  it('should show the count', () => {
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = exports.Badge = void 0;
8
8
  var _react = require("react");
9
- var _View = require("@instructure/ui-view/lib/View");
10
- var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
11
- var _withDeterministicId = require("@instructure/ui-react-utils/lib/DeterministicIdContext/withDeterministicId.js");
12
- var _testable = require("@instructure/ui-testable/lib/testable.js");
9
+ var _uiView = require("@instructure/ui-view");
10
+ var _uiReactUtils = require("@instructure/ui-react-utils");
11
+ var _uiTestable = require("@instructure/ui-testable");
13
12
  var _emotion = require("@instructure/emotion");
14
13
  var _styles = _interopRequireDefault(require("./styles"));
15
14
  var _theme = _interopRequireDefault(require("./theme"));
@@ -44,7 +43,7 @@ var _dec, _dec2, _dec3, _class, _class2;
44
43
  category: components
45
44
  ---
46
45
  **/
47
- let Badge = exports.Badge = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec3 = (0, _testable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Badge extends _react.Component {
46
+ let Badge = exports.Badge = (_dec = (0, _uiReactUtils.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec3 = (0, _uiTestable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Badge extends _react.Component {
48
47
  constructor(props) {
49
48
  super(props);
50
49
  this._defaultId = void 0;
@@ -99,7 +98,7 @@ let Badge = exports.Badge = (_dec = (0, _withDeterministicId.withDeterministicId
99
98
  standalone = _this$props5.standalone,
100
99
  type = _this$props5.type,
101
100
  styles = _this$props5.styles;
102
- return (0, _emotion.jsx)(_View.View, Object.assign({
101
+ return (0, _emotion.jsx)(_uiView.View, Object.assign({
103
102
  margin: standalone ? margin : 'none',
104
103
  css: styles === null || styles === void 0 ? void 0 : styles.badge,
105
104
  title: type === 'count' && this.countOverflow() ? count === null || count === void 0 ? void 0 : count.toString() : '',
@@ -111,7 +110,7 @@ let Badge = exports.Badge = (_dec = (0, _withDeterministicId.withDeterministicId
111
110
  }
112
111
  renderChildren() {
113
112
  return _react.Children.map(this.props.children, child => {
114
- return (0, _safeCloneElement.safeCloneElement)(child, {
113
+ return (0, _uiReactUtils.safeCloneElement)(child, {
115
114
  'aria-describedby': this._defaultId
116
115
  });
117
116
  });
@@ -126,7 +125,7 @@ let Badge = exports.Badge = (_dec = (0, _withDeterministicId.withDeterministicId
126
125
  if (standalone) {
127
126
  return this.renderBadge();
128
127
  } else {
129
- return (0, _emotion.jsx)(_View.View, {
128
+ return (0, _emotion.jsx)(_uiView.View, {
130
129
  as: as,
131
130
  margin: margin,
132
131
  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 _PositionPropTypes = require("@instructure/ui-position/lib/PositionPropTypes.js");
9
+ var _uiPosition = require("@instructure/ui-position");
10
10
  var _emotion = require("@instructure/emotion");
11
11
  /*
12
12
  * The MIT License (MIT)
@@ -42,7 +42,7 @@ const propTypes = exports.propTypes = {
42
42
  standalone: _propTypes.default.bool,
43
43
  pulse: _propTypes.default.bool,
44
44
  variant: _propTypes.default.oneOf(['primary', 'success', 'danger', 'inverse']),
45
- placement: _PositionPropTypes.PositionPropTypes.placement,
45
+ placement: _uiPosition.PositionPropTypes.placement,
46
46
  display: _propTypes.default.oneOf(['inline-block', 'block']),
47
47
  margin: _emotion.ThemeablePropTypes.spacing,
48
48
  elementRef: _propTypes.default.func,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-badge",
3
- "version": "8.56.1",
3
+ "version": "8.56.2-pr-snapshot-1721749364069",
4
4
  "description": "A badge component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,22 +24,22 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.23.2",
27
- "@instructure/console": "8.56.1",
28
- "@instructure/emotion": "8.56.1",
29
- "@instructure/shared-types": "8.56.1",
30
- "@instructure/ui-color-utils": "8.56.1",
31
- "@instructure/ui-position": "8.56.1",
32
- "@instructure/ui-react-utils": "8.56.1",
33
- "@instructure/ui-testable": "8.56.1",
34
- "@instructure/ui-utils": "8.56.1",
35
- "@instructure/ui-view": "8.56.1",
27
+ "@instructure/console": "8.56.2-pr-snapshot-1721749364069",
28
+ "@instructure/emotion": "8.56.2-pr-snapshot-1721749364069",
29
+ "@instructure/shared-types": "8.56.2-pr-snapshot-1721749364069",
30
+ "@instructure/ui-color-utils": "8.56.2-pr-snapshot-1721749364069",
31
+ "@instructure/ui-position": "8.56.2-pr-snapshot-1721749364069",
32
+ "@instructure/ui-react-utils": "8.56.2-pr-snapshot-1721749364069",
33
+ "@instructure/ui-testable": "8.56.2-pr-snapshot-1721749364069",
34
+ "@instructure/ui-utils": "8.56.2-pr-snapshot-1721749364069",
35
+ "@instructure/ui-view": "8.56.2-pr-snapshot-1721749364069",
36
36
  "prop-types": "^15.8.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@instructure/ui-axe-check": "8.56.1",
40
- "@instructure/ui-babel-preset": "8.56.1",
41
- "@instructure/ui-test-utils": "8.56.1",
42
- "@instructure/ui-themes": "8.56.1",
39
+ "@instructure/ui-axe-check": "8.56.2-pr-snapshot-1721749364069",
40
+ "@instructure/ui-babel-preset": "8.56.2-pr-snapshot-1721749364069",
41
+ "@instructure/ui-test-utils": "8.56.2-pr-snapshot-1721749364069",
42
+ "@instructure/ui-themes": "8.56.2-pr-snapshot-1721749364069",
43
43
  "@testing-library/jest-dom": "^6.1.4",
44
44
  "@testing-library/react": "^14.1.2"
45
45
  },