@instructure/ui-rating 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-rating
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-rating
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = exports.Rating = void 0;
8
8
  var _react = require("react");
9
9
  var _v11_ = require("@instructure/ui-view/v11_6");
10
- var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReaderContent");
11
- var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
10
+ var _uiA11yContent = require("@instructure/ui-a11y-content");
11
+ var _uiReactUtils = require("@instructure/ui-react-utils");
12
12
  var _index = require("../../RatingIcon/v1/index.js");
13
13
  var _emotion = require("@instructure/emotion");
14
14
  var _styles = _interopRequireDefault(require("./styles.js"));
@@ -96,7 +96,7 @@ let Rating = exports.Rating = (_dec = (0, _emotion.withStyle)(_styles.default, n
96
96
  formatValueText
97
97
  } = this.props;
98
98
  const valueText = label + ' ' + formatValueText?.(this.filled, iconCount);
99
- const passthroughProps = _v11_.View.omitViewProps((0, _omitProps.omitProps)(this.props, Rating.allowedProps), Rating);
99
+ const passthroughProps = _v11_.View.omitViewProps((0, _uiReactUtils.omitProps)(this.props, Rating.allowedProps), Rating);
100
100
  return (0, _jsxRuntime.jsxs)(_v11_.View, {
101
101
  ...passthroughProps,
102
102
  css: this.props.styles?.rating,
@@ -104,7 +104,7 @@ let Rating = exports.Rating = (_dec = (0, _emotion.withStyle)(_styles.default, n
104
104
  display: "inline-block",
105
105
  elementRef: this.handleRef,
106
106
  "data-cid": "Rating",
107
- children: [(0, _jsxRuntime.jsx)(_ScreenReaderContent.ScreenReaderContent, {
107
+ children: [(0, _jsxRuntime.jsx)(_uiA11yContent.ScreenReaderContent, {
108
108
  children: valueText
109
109
  }), [...Array(this.filled)].map((_x, i) => (0, _jsxRuntime.jsx)(_index.RatingIcon, {
110
110
  filled: true,
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = exports.Rating = void 0;
8
8
  var _react = require("react");
9
9
  var _latest = require("@instructure/ui-view/latest");
10
- var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReaderContent");
11
- var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
10
+ var _uiA11yContent = require("@instructure/ui-a11y-content");
11
+ var _uiReactUtils = require("@instructure/ui-react-utils");
12
12
  var _index = require("../../RatingIcon/v2/index.js");
13
13
  var _emotion = require("@instructure/emotion");
14
14
  var _styles = _interopRequireDefault(require("./styles.js"));
@@ -96,7 +96,7 @@ let Rating = exports.Rating = (_dec = (0, _emotion.withStyleNew)(_styles.default
96
96
  formatValueText
97
97
  } = this.props;
98
98
  const valueText = label + ' ' + formatValueText?.(this.filled, iconCount);
99
- const passthroughProps = _latest.View.omitViewProps((0, _omitProps.omitProps)(this.props, Rating.allowedProps), Rating);
99
+ const passthroughProps = _latest.View.omitViewProps((0, _uiReactUtils.omitProps)(this.props, Rating.allowedProps), Rating);
100
100
  return (0, _jsxRuntime.jsxs)(_latest.View, {
101
101
  ...passthroughProps,
102
102
  css: this.props.styles?.rating,
@@ -104,7 +104,7 @@ let Rating = exports.Rating = (_dec = (0, _emotion.withStyleNew)(_styles.default
104
104
  display: "inline-block",
105
105
  elementRef: this.handleRef,
106
106
  "data-cid": "Rating",
107
- children: [(0, _jsxRuntime.jsx)(_ScreenReaderContent.ScreenReaderContent, {
107
+ children: [(0, _jsxRuntime.jsx)(_uiA11yContent.ScreenReaderContent, {
108
108
  children: valueText
109
109
  }), [...Array(this.filled)].map((_x, i) => (0, _jsxRuntime.jsx)(_index.RatingIcon, {
110
110
  filled: true,
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = exports.RatingIcon = void 0;
8
8
  var _react = require("react");
9
- var _IconStarSolid = require("@instructure/ui-icons/lib/generated/IconStarSolid.js");
10
- var _IconStarLightSolid = require("@instructure/ui-icons/lib/generated/IconStarLightSolid.js");
11
- var _requestAnimationFrame = require("@instructure/ui-dom-utils/lib/requestAnimationFrame.js");
12
- var _Transition = require("@instructure/ui-motion/lib/Transition");
9
+ var _uiIcons = require("@instructure/ui-icons");
10
+ var _uiDomUtils = require("@instructure/ui-dom-utils");
11
+ var _uiMotion = require("@instructure/ui-motion");
13
12
  var _emotion = require("@instructure/emotion");
14
13
  var _styles = _interopRequireDefault(require("./styles.js"));
15
14
  var _theme = _interopRequireDefault(require("./theme.js"));
@@ -86,7 +85,7 @@ let RatingIcon = exports.RatingIcon = (_dec = (0, _emotion.withStyle)(_styles.de
86
85
  };
87
86
  };
88
87
  fill = () => {
89
- this._animation = (0, _requestAnimationFrame.requestAnimationFrame)(() => {
88
+ this._animation = (0, _uiDomUtils.requestAnimationFrame)(() => {
90
89
  this.setState({
91
90
  filled: true
92
91
  });
@@ -96,14 +95,14 @@ let RatingIcon = exports.RatingIcon = (_dec = (0, _emotion.withStyle)(_styles.de
96
95
  const {
97
96
  animateFill
98
97
  } = this.props;
99
- const Icon = this.state.filled ? _IconStarSolid.IconStarSolid : _IconStarLightSolid.IconStarLightSolid;
98
+ const Icon = this.state.filled ? _uiIcons.IconStarSolid : _uiIcons.IconStarLightSolid;
100
99
  return (0, _jsxRuntime.jsx)("span", {
101
100
  "aria-hidden": "true",
102
101
  css: this.props.styles?.ratingIcon,
103
102
  ref: el => {
104
103
  this.ref = el;
105
104
  },
106
- children: this.state.filled && animateFill ? (0, _jsxRuntime.jsx)(_Transition.Transition, {
105
+ children: this.state.filled && animateFill ? (0, _jsxRuntime.jsx)(_uiMotion.Transition, {
107
106
  in: true,
108
107
  transitionOnMount: true,
109
108
  type: "scale",
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = exports.RatingIcon = void 0;
8
8
  var _react = require("react");
9
9
  var _uiIcons = require("@instructure/ui-icons");
10
- var _requestAnimationFrame = require("@instructure/ui-dom-utils/lib/requestAnimationFrame.js");
11
- var _Transition = require("@instructure/ui-motion/lib/Transition");
10
+ var _uiDomUtils = require("@instructure/ui-dom-utils");
11
+ var _uiMotion = require("@instructure/ui-motion");
12
12
  var _emotion = require("@instructure/emotion");
13
13
  var _styles = _interopRequireDefault(require("./styles.js"));
14
14
  var _props = require("./props.js");
@@ -90,7 +90,7 @@ let RatingIcon = exports.RatingIcon = (_dec = (0, _emotion.withStyleNew)(_styles
90
90
  };
91
91
  };
92
92
  fill = () => {
93
- this._animation = (0, _requestAnimationFrame.requestAnimationFrame)(() => {
93
+ this._animation = (0, _uiDomUtils.requestAnimationFrame)(() => {
94
94
  this.setState({
95
95
  filled: true
96
96
  });
@@ -109,7 +109,7 @@ let RatingIcon = exports.RatingIcon = (_dec = (0, _emotion.withStyleNew)(_styles
109
109
  ref: el => {
110
110
  this.ref = el;
111
111
  },
112
- children: this.state.filled && animateFill ? (0, _jsxRuntime.jsx)(_Transition.Transition, {
112
+ children: this.state.filled && animateFill ? (0, _jsxRuntime.jsx)(_uiMotion.Transition, {
113
113
  in: true,
114
114
  transitionOnMount: true,
115
115
  type: "scale",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-rating",
3
- "version": "11.7.8",
3
+ "version": "11.7.9-snapshot-1",
4
4
  "description": "A static rating component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -15,21 +15,21 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.7",
18
- "@instructure/emotion": "11.7.8",
19
- "@instructure/shared-types": "11.7.8",
20
- "@instructure/ui-dom-utils": "11.7.8",
21
- "@instructure/console": "11.7.8",
22
- "@instructure/ui-a11y-content": "11.7.8",
23
- "@instructure/ui-icons": "11.7.8",
24
- "@instructure/ui-themes": "11.7.8",
25
- "@instructure/ui-motion": "11.7.8",
26
- "@instructure/ui-view": "11.7.8",
27
- "@instructure/ui-react-utils": "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-a11y-content": "11.7.9-snapshot-1",
22
+ "@instructure/ui-dom-utils": "11.7.9-snapshot-1",
23
+ "@instructure/ui-icons": "11.7.9-snapshot-1",
24
+ "@instructure/ui-motion": "11.7.9-snapshot-1",
25
+ "@instructure/ui-themes": "11.7.9-snapshot-1",
26
+ "@instructure/ui-view": "11.7.9-snapshot-1",
27
+ "@instructure/ui-react-utils": "11.7.9-snapshot-1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "vitest": "^5.0.0",
31
- "@instructure/ui-babel-preset": "11.7.8",
32
- "@instructure/ui-axe-check": "11.7.8"
31
+ "@instructure/ui-babel-preset": "11.7.9-snapshot-1",
32
+ "@instructure/ui-axe-check": "11.7.9-snapshot-1"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": ">=18 <=19"