@instructure/ui-metric 11.7.8 → 11.7.9-snapshot-1

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
+ ## [11.7.9-snapshot-1](https://github.com/instructure/instructure-ui/compare/v11.7.8...v11.7.9-snapshot-1) (2026-10-06)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-metric
9
+
10
+
11
+
12
+
13
+
6
14
  ## [11.7.8](https://github.com/instructure/instructure-ui/compare/v11.7.7...v11.7.8) (2026-10-02)
7
15
 
8
16
  **Note:** Version bump only for package @instructure/ui-metric
@@ -7,8 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = exports.Metric = void 0;
8
8
  var _react = require("react");
9
9
  var _emotion = require("@instructure/emotion");
10
- var _callRenderProp = require("@instructure/ui-react-utils/lib/callRenderProp.js");
11
- var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
10
+ var _uiReactUtils = require("@instructure/ui-react-utils");
12
11
  var _styles = _interopRequireDefault(require("./styles.js"));
13
12
  var _theme = _interopRequireDefault(require("./theme.js"));
14
13
  var _props = require("./props.js");
@@ -69,7 +68,7 @@ let Metric = exports.Metric = (_dec = (0, _emotion.withStyle)(_styles.default, _
69
68
  ...rest
70
69
  } = this.props;
71
70
  return (0, _jsxRuntime.jsxs)("div", {
72
- ...(0, _passthroughProps.passthroughProps)(rest),
71
+ ...(0, _uiReactUtils.passthroughProps)(rest),
73
72
  role: isGroupChild ? 'row' : undefined,
74
73
  css: this.props.styles?.metric,
75
74
  ref: this.handleRef,
@@ -77,11 +76,11 @@ let Metric = exports.Metric = (_dec = (0, _emotion.withStyle)(_styles.default, _
77
76
  children: [(0, _jsxRuntime.jsx)("div", {
78
77
  role: isGroupChild ? 'rowheader' : undefined,
79
78
  css: this.props.styles?.label,
80
- children: (0, _callRenderProp.callRenderProp)(renderLabel)
79
+ children: (0, _uiReactUtils.callRenderProp)(renderLabel)
81
80
  }), (0, _jsxRuntime.jsx)("div", {
82
81
  role: isGroupChild ? 'gridcell' : undefined,
83
82
  css: this.props.styles?.value,
84
- children: (0, _callRenderProp.callRenderProp)(renderValue)
83
+ children: (0, _uiReactUtils.callRenderProp)(renderValue)
85
84
  })]
86
85
  });
87
86
  }
@@ -7,8 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = exports.Metric = void 0;
8
8
  var _react = require("react");
9
9
  var _emotion = require("@instructure/emotion");
10
- var _callRenderProp = require("@instructure/ui-react-utils/lib/callRenderProp.js");
11
- var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
10
+ var _uiReactUtils = require("@instructure/ui-react-utils");
12
11
  var _styles = _interopRequireDefault(require("./styles.js"));
13
12
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
14
13
  /*
@@ -58,7 +57,7 @@ const Metric = exports.Metric = /*#__PURE__*/(0, _react.forwardRef)((props, ref)
58
57
  displayName: 'Metric'
59
58
  });
60
59
  return (0, _jsxRuntime.jsxs)("div", {
61
- ...(0, _passthroughProps.passthroughProps)(props),
60
+ ...(0, _uiReactUtils.passthroughProps)(props),
62
61
  role: isGroupChild ? 'row' : undefined,
63
62
  css: styles?.metric,
64
63
  ref: ref,
@@ -66,11 +65,11 @@ const Metric = exports.Metric = /*#__PURE__*/(0, _react.forwardRef)((props, ref)
66
65
  children: [(0, _jsxRuntime.jsx)("div", {
67
66
  role: isGroupChild ? 'rowheader' : undefined,
68
67
  css: styles?.label,
69
- children: (0, _callRenderProp.callRenderProp)(renderLabel)
68
+ children: (0, _uiReactUtils.callRenderProp)(renderLabel)
70
69
  }), (0, _jsxRuntime.jsx)("div", {
71
70
  role: isGroupChild ? 'gridcell' : undefined,
72
71
  css: styles?.value,
73
- children: (0, _callRenderProp.callRenderProp)(renderValue)
72
+ children: (0, _uiReactUtils.callRenderProp)(renderValue)
74
73
  })]
75
74
  });
76
75
  });
@@ -7,8 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = exports.MetricGroup = void 0;
8
8
  var _react = require("react");
9
9
  var _emotion = require("@instructure/emotion");
10
- var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
11
- var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
10
+ var _uiReactUtils = require("@instructure/ui-react-utils");
12
11
  var _styles = _interopRequireDefault(require("./styles.js"));
13
12
  var _theme = _interopRequireDefault(require("./theme.js"));
14
13
  var _props = require("./props.js");
@@ -61,14 +60,14 @@ let MetricGroup = exports.MetricGroup = (_dec = (0, _emotion.withStyle)(_styles.
61
60
  }
62
61
  renderChildren() {
63
62
  return _react.Children.map(this.props.children, child => {
64
- return (0, _safeCloneElement.safeCloneElement)(child, {
63
+ return (0, _uiReactUtils.safeCloneElement)(child, {
65
64
  isGroupChild: true
66
65
  });
67
66
  });
68
67
  }
69
68
  render() {
70
69
  return (0, _jsxRuntime.jsx)("div", {
71
- ...(0, _passthroughProps.passthroughProps)(this.props),
70
+ ...(0, _uiReactUtils.passthroughProps)(this.props),
72
71
  css: this.props.styles?.metricGroup,
73
72
  role: "grid",
74
73
  "aria-readonly": "true",
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = exports.MetricGroup = void 0;
8
8
  var _react = require("react");
9
- var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
10
- var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
9
+ var _uiReactUtils = require("@instructure/ui-react-utils");
11
10
  var _styles = _interopRequireDefault(require("./styles.js"));
12
11
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
13
12
  /*
@@ -47,13 +46,13 @@ const MetricGroup = exports.MetricGroup = /*#__PURE__*/(0, _react.forwardRef)((p
47
46
  const styles = (0, _styles.default)();
48
47
  const renderChildren = () => {
49
48
  return _react.Children.map(children, child => {
50
- return (0, _safeCloneElement.safeCloneElement)(child, {
49
+ return (0, _uiReactUtils.safeCloneElement)(child, {
51
50
  isGroupChild: true
52
51
  });
53
52
  });
54
53
  };
55
54
  return (0, _jsxRuntime.jsx)("div", {
56
- ...(0, _passthroughProps.passthroughProps)(rest),
55
+ ...(0, _uiReactUtils.passthroughProps)(rest),
57
56
  css: styles?.metricGroup,
58
57
  role: "grid",
59
58
  "aria-readonly": "true",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-metric",
3
- "version": "11.7.8",
3
+ "version": "11.7.9-snapshot-1",
4
4
  "description": "A UI component for displaying Metrics",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -15,17 +15,17 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.7",
18
- "@instructure/console": "11.7.8",
19
- "@instructure/shared-types": "11.7.8",
20
- "@instructure/ui-react-utils": "11.7.8",
21
- "@instructure/emotion": "11.7.8",
22
- "@instructure/ui-themes": "11.7.8"
18
+ "@instructure/console": "11.7.9-snapshot-1",
19
+ "@instructure/emotion": "11.7.9-snapshot-1",
20
+ "@instructure/shared-types": "11.7.9-snapshot-1",
21
+ "@instructure/ui-react-utils": "11.7.9-snapshot-1",
22
+ "@instructure/ui-themes": "11.7.9-snapshot-1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "vitest": "^5.0.0",
26
- "@instructure/ui-axe-check": "11.7.8",
27
- "@instructure/ui-color-utils": "11.7.8",
28
- "@instructure/ui-babel-preset": "11.7.8"
26
+ "@instructure/ui-axe-check": "11.7.9-snapshot-1",
27
+ "@instructure/ui-babel-preset": "11.7.9-snapshot-1",
28
+ "@instructure/ui-color-utils": "11.7.9-snapshot-1"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "react": ">=18 <=19"