@instructure/ui-rating 10.26.1 → 11.0.1-snapshot-0

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
- ## [10.26.1](https://github.com/instructure/instructure-ui/compare/v10.26.0...v10.26.1) (2025-10-06)
6
+ ## [11.0.1-snapshot-0](https://github.com/instructure/instructure-ui/compare/v11.0.0...v11.0.1-snapshot-0) (2025-10-07)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-rating
9
9
 
@@ -11,6 +11,35 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
+ # [11.0.0](https://github.com/instructure/instructure-ui/compare/v10.26.0...v11.0.0) (2025-10-06)
15
+
16
+
17
+ ### Features
18
+
19
+ * **many:** instUI v11 release ([36f5438](https://github.com/instructure/instructure-ui/commit/36f54382669186227ba24798bbf7201ef2f5cd4c))
20
+
21
+
22
+ ### BREAKING CHANGES
23
+
24
+ * **many:** InstUI v11 contains the following breaking changes:
25
+ - React 16 and 17 are no longer supported
26
+ - remove `PropTypes` from all packages
27
+ - remove `CodeEditor` component
28
+ - remove `@instui/theme-registry` package
29
+ - remove `@testable`, `@experimental`, `@hack` decorators
30
+ - InstUISettingsProvider's `as` prop is removed
31
+ - `canvas.use()`, `canvasHighContrast.use()` functions are removed
32
+ - `canvasThemeLocal`, `canvasHighContrastThemeLocal` are removed
33
+ - `variables` field on theme objects are removed
34
+ - remove deprecated props from Table: Row's `isStacked`, Body's
35
+ `isStacked`, `hover`, and `headers`
36
+ - `Table`'s `caption` prop is now required
37
+ - `ui-dom-utils`'s `getComputedStyle` can now return `undefined`
38
+
39
+
40
+
41
+
42
+
14
43
  # [10.26.0](https://github.com/instructure/instructure-ui/compare/v10.25.0...v10.26.0) (2025-10-01)
15
44
 
16
45
  **Note:** Version bump only for package @instructure/ui-rating
@@ -1,4 +1,4 @@
1
- var _dec, _dec2, _class, _Rating;
1
+ var _dec, _class, _Rating;
2
2
  /*
3
3
  * The MIT License (MIT)
4
4
  *
@@ -27,11 +27,10 @@ import { Component } from 'react';
27
27
  import { View } from '@instructure/ui-view';
28
28
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
29
29
  import { omitProps } from '@instructure/ui-react-utils';
30
- import { testable } from '@instructure/ui-testable';
31
30
  import { RatingIcon } from '../RatingIcon';
32
31
  import { withStyle } from '@instructure/emotion';
33
32
  import generateStyle from './styles';
34
- import { allowedProps, propTypes } from './props';
33
+ import { allowedProps } from './props';
35
34
 
36
35
  /**
37
36
  ---
@@ -39,7 +38,7 @@ category: components
39
38
  ---
40
39
  **/
41
40
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
42
- let Rating = (_dec = withStyle(generateStyle, null), _dec2 = testable(), _dec(_class = _dec2(_class = (_Rating = class Rating extends Component {
41
+ let Rating = (_dec = withStyle(generateStyle, null), _dec(_class = (_Rating = class Rating extends Component {
43
42
  constructor(...args) {
44
43
  super(...args);
45
44
  this.ref = null;
@@ -92,6 +91,7 @@ let Rating = (_dec = withStyle(generateStyle, null), _dec2 = testable(), _dec(_c
92
91
  margin: margin,
93
92
  display: "inline-block",
94
93
  elementRef: this.handleRef,
94
+ "data-cid": "Rating",
95
95
  children: [_jsx(ScreenReaderContent, {
96
96
  children: valueText
97
97
  }), [...Array(this.filled)].map((_x, i) => _jsx(RatingIcon, {
@@ -104,12 +104,12 @@ let Rating = (_dec = withStyle(generateStyle, null), _dec2 = testable(), _dec(_c
104
104
  }, i + 1))]
105
105
  });
106
106
  }
107
- }, _Rating.displayName = "Rating", _Rating.componentId = 'Rating', _Rating.allowedProps = allowedProps, _Rating.propTypes = propTypes, _Rating.defaultProps = {
107
+ }, _Rating.displayName = "Rating", _Rating.componentId = 'Rating', _Rating.allowedProps = allowedProps, _Rating.defaultProps = {
108
108
  animateFill: false,
109
109
  formatValueText: (filled, iconCount) => `${filled} / ${iconCount}`,
110
110
  iconCount: 3,
111
111
  size: 'medium',
112
112
  valueNow: 0
113
- }, _Rating.Icon = RatingIcon, _Rating)) || _class) || _class);
113
+ }, _Rating.Icon = RatingIcon, _Rating)) || _class);
114
114
  export default Rating;
115
115
  export { Rating };
@@ -21,16 +21,6 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- import PropTypes from 'prop-types';
25
- const propTypes = {
26
- label: PropTypes.string.isRequired,
27
- formatValueText: PropTypes.func,
28
- iconCount: PropTypes.oneOf([3, 5]),
29
- size: PropTypes.oneOf(['small', 'medium', 'large']),
30
- valueMax: PropTypes.number,
31
- valueNow: PropTypes.number,
32
- animateFill: PropTypes.bool,
33
- margin: PropTypes.string
34
- };
24
+
35
25
  const allowedProps = ['label', 'formatValueText', 'iconCount', 'size', 'valueMax', 'valueNow', 'animateFill', 'margin'];
36
- export { propTypes, allowedProps };
26
+ export { allowedProps };
@@ -30,7 +30,7 @@ import { Transition } from '@instructure/ui-motion';
30
30
  import { withStyle } from '@instructure/emotion';
31
31
  import generateStyle from './styles';
32
32
  import generateComponentTheme from './theme';
33
- import { allowedProps, propTypes } from './props';
33
+ import { allowedProps } from './props';
34
34
 
35
35
  /**
36
36
  ---
@@ -101,7 +101,7 @@ let RatingIcon = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(
101
101
  })
102
102
  });
103
103
  }
104
- }, _RatingIcon.displayName = "RatingIcon", _RatingIcon.componentId = 'Rating.Icon', _RatingIcon.allowedProps = allowedProps, _RatingIcon.propTypes = propTypes, _RatingIcon.defaultProps = {
104
+ }, _RatingIcon.displayName = "RatingIcon", _RatingIcon.componentId = 'Rating.Icon', _RatingIcon.allowedProps = allowedProps, _RatingIcon.defaultProps = {
105
105
  animationDelay: 200,
106
106
  animateFill: false,
107
107
  filled: false,
@@ -21,12 +21,6 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- import PropTypes from 'prop-types';
25
- const propTypes = {
26
- animationDelay: PropTypes.number,
27
- animateFill: PropTypes.bool,
28
- filled: PropTypes.bool,
29
- size: PropTypes.oneOf(['small', 'medium', 'large'])
30
- };
24
+
31
25
  const allowedProps = ['animationDelay', 'animateFill', 'filled', 'size'];
32
- export { propTypes, allowedProps };
26
+ export { allowedProps };
@@ -9,13 +9,12 @@ var _react = require("react");
9
9
  var _View = require("@instructure/ui-view/lib/View");
10
10
  var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReaderContent");
11
11
  var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
12
- var _testable = require("@instructure/ui-testable/lib/testable.js");
13
12
  var _RatingIcon = require("../RatingIcon");
14
13
  var _emotion = require("@instructure/emotion");
15
14
  var _styles = _interopRequireDefault(require("./styles"));
16
15
  var _props = require("./props");
17
16
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
18
- var _dec, _dec2, _class, _Rating;
17
+ var _dec, _class, _Rating;
19
18
  /*
20
19
  * The MIT License (MIT)
21
20
  *
@@ -44,7 +43,7 @@ var _dec, _dec2, _class, _Rating;
44
43
  category: components
45
44
  ---
46
45
  **/
47
- let Rating = exports.Rating = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_Rating = class Rating extends _react.Component {
46
+ let Rating = exports.Rating = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_class = (_Rating = class Rating extends _react.Component {
48
47
  constructor(...args) {
49
48
  super(...args);
50
49
  this.ref = null;
@@ -97,6 +96,7 @@ let Rating = exports.Rating = (_dec = (0, _emotion.withStyle)(_styles.default, n
97
96
  margin: margin,
98
97
  display: "inline-block",
99
98
  elementRef: this.handleRef,
99
+ "data-cid": "Rating",
100
100
  children: [(0, _jsxRuntime.jsx)(_ScreenReaderContent.ScreenReaderContent, {
101
101
  children: valueText
102
102
  }), [...Array(this.filled)].map((_x, i) => (0, _jsxRuntime.jsx)(_RatingIcon.RatingIcon, {
@@ -109,11 +109,11 @@ let Rating = exports.Rating = (_dec = (0, _emotion.withStyle)(_styles.default, n
109
109
  }, i + 1))]
110
110
  });
111
111
  }
112
- }, _Rating.displayName = "Rating", _Rating.componentId = 'Rating', _Rating.allowedProps = _props.allowedProps, _Rating.propTypes = _props.propTypes, _Rating.defaultProps = {
112
+ }, _Rating.displayName = "Rating", _Rating.componentId = 'Rating', _Rating.allowedProps = _props.allowedProps, _Rating.defaultProps = {
113
113
  animateFill: false,
114
114
  formatValueText: (filled, iconCount) => `${filled} / ${iconCount}`,
115
115
  iconCount: 3,
116
116
  size: 'medium',
117
117
  valueNow: 0
118
- }, _Rating.Icon = _RatingIcon.RatingIcon, _Rating)) || _class) || _class);
118
+ }, _Rating.Icon = _RatingIcon.RatingIcon, _Rating)) || _class);
119
119
  var _default = exports.default = Rating;
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
- exports.propTypes = exports.allowedProps = void 0;
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
6
+ exports.allowedProps = void 0;
9
7
  /*
10
8
  * The MIT License (MIT)
11
9
  *
@@ -30,14 +28,4 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
30
28
  * SOFTWARE.
31
29
  */
32
30
 
33
- const propTypes = exports.propTypes = {
34
- label: _propTypes.default.string.isRequired,
35
- formatValueText: _propTypes.default.func,
36
- iconCount: _propTypes.default.oneOf([3, 5]),
37
- size: _propTypes.default.oneOf(['small', 'medium', 'large']),
38
- valueMax: _propTypes.default.number,
39
- valueNow: _propTypes.default.number,
40
- animateFill: _propTypes.default.bool,
41
- margin: _propTypes.default.string
42
- };
43
31
  const allowedProps = exports.allowedProps = ['label', 'formatValueText', 'iconCount', 'size', 'valueMax', 'valueNow', 'animateFill', 'margin'];
@@ -107,7 +107,7 @@ let RatingIcon = exports.RatingIcon = (_dec = (0, _emotion.withStyle)(_styles.de
107
107
  })
108
108
  });
109
109
  }
110
- }, _RatingIcon.displayName = "RatingIcon", _RatingIcon.componentId = 'Rating.Icon', _RatingIcon.allowedProps = _props.allowedProps, _RatingIcon.propTypes = _props.propTypes, _RatingIcon.defaultProps = {
110
+ }, _RatingIcon.displayName = "RatingIcon", _RatingIcon.componentId = 'Rating.Icon', _RatingIcon.allowedProps = _props.allowedProps, _RatingIcon.defaultProps = {
111
111
  animationDelay: 200,
112
112
  animateFill: false,
113
113
  filled: false,
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
- exports.propTypes = exports.allowedProps = void 0;
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
6
+ exports.allowedProps = void 0;
9
7
  /*
10
8
  * The MIT License (MIT)
11
9
  *
@@ -30,10 +28,4 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
30
28
  * SOFTWARE.
31
29
  */
32
30
 
33
- const propTypes = exports.propTypes = {
34
- animationDelay: _propTypes.default.number,
35
- animateFill: _propTypes.default.bool,
36
- filled: _propTypes.default.bool,
37
- size: _propTypes.default.oneOf(['small', 'medium', 'large'])
38
- };
39
31
  const allowedProps = exports.allowedProps = ['animationDelay', 'animateFill', 'filled', 'size'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-rating",
3
- "version": "10.26.1",
3
+ "version": "11.0.1-snapshot-0",
4
4
  "description": "A static rating component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,28 +24,26 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.27.6",
27
- "@instructure/console": "10.26.1",
28
- "@instructure/emotion": "10.26.1",
29
- "@instructure/shared-types": "10.26.1",
30
- "@instructure/ui-a11y-content": "10.26.1",
31
- "@instructure/ui-dom-utils": "10.26.1",
32
- "@instructure/ui-icons": "10.26.1",
33
- "@instructure/ui-motion": "10.26.1",
34
- "@instructure/ui-react-utils": "10.26.1",
35
- "@instructure/ui-testable": "10.26.1",
36
- "@instructure/ui-view": "10.26.1",
37
- "prop-types": "^15.8.1"
27
+ "@instructure/console": "11.0.1-snapshot-0",
28
+ "@instructure/emotion": "11.0.1-snapshot-0",
29
+ "@instructure/shared-types": "11.0.1-snapshot-0",
30
+ "@instructure/ui-a11y-content": "11.0.1-snapshot-0",
31
+ "@instructure/ui-dom-utils": "11.0.1-snapshot-0",
32
+ "@instructure/ui-icons": "11.0.1-snapshot-0",
33
+ "@instructure/ui-motion": "11.0.1-snapshot-0",
34
+ "@instructure/ui-react-utils": "11.0.1-snapshot-0",
35
+ "@instructure/ui-view": "11.0.1-snapshot-0"
38
36
  },
39
37
  "devDependencies": {
40
- "@instructure/ui-axe-check": "10.26.1",
41
- "@instructure/ui-babel-preset": "10.26.1",
42
- "@instructure/ui-themes": "10.26.1",
38
+ "@instructure/ui-axe-check": "11.0.1-snapshot-0",
39
+ "@instructure/ui-babel-preset": "11.0.1-snapshot-0",
40
+ "@instructure/ui-themes": "11.0.1-snapshot-0",
43
41
  "@testing-library/jest-dom": "^6.6.3",
44
- "@testing-library/react": "^16.0.1",
42
+ "@testing-library/react": "15.0.7",
45
43
  "vitest": "^3.2.2"
46
44
  },
47
45
  "peerDependencies": {
48
- "react": ">=16.14 <=18"
46
+ "react": ">=18 <=19"
49
47
  },
50
48
  "publishConfig": {
51
49
  "access": "public"
@@ -27,12 +27,11 @@ import { Component } from 'react'
27
27
  import { View } from '@instructure/ui-view'
28
28
  import { ScreenReaderContent } from '@instructure/ui-a11y-content'
29
29
  import { omitProps } from '@instructure/ui-react-utils'
30
- import { testable } from '@instructure/ui-testable'
31
30
  import { RatingIcon } from '../RatingIcon'
32
31
  import { withStyle } from '@instructure/emotion'
33
32
  import generateStyle from './styles'
34
33
  import type { RatingProps } from './props'
35
- import { allowedProps, propTypes } from './props'
34
+ import { allowedProps } from './props'
36
35
 
37
36
  /**
38
37
  ---
@@ -40,12 +39,10 @@ category: components
40
39
  ---
41
40
  **/
42
41
  @withStyle(generateStyle, null)
43
- @testable()
44
42
  class Rating extends Component<RatingProps> {
45
43
  static readonly componentId = 'Rating'
46
44
 
47
45
  static allowedProps = allowedProps
48
- static propTypes = propTypes
49
46
 
50
47
  static defaultProps = {
51
48
  animateFill: false,
@@ -110,6 +107,7 @@ class Rating extends Component<RatingProps> {
110
107
  margin={margin}
111
108
  display="inline-block"
112
109
  elementRef={this.handleRef}
110
+ data-cid="Rating"
113
111
  >
114
112
  <ScreenReaderContent>{valueText}</ScreenReaderContent>
115
113
  {[...Array(this.filled)].map((_x, i) => (
@@ -21,17 +21,13 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- import PropTypes from 'prop-types'
25
24
 
26
25
  import type {
27
26
  Spacing,
28
27
  WithStyleProps,
29
28
  ComponentStyle
30
29
  } from '@instructure/emotion'
31
- import type {
32
- OtherHTMLAttributes,
33
- PropValidators
34
- } from '@instructure/shared-types'
30
+ import type { OtherHTMLAttributes } from '@instructure/shared-types'
35
31
 
36
32
  type RatingOwnProps = {
37
33
  /**
@@ -79,18 +75,6 @@ type RatingProps = RatingOwnProps &
79
75
  OtherHTMLAttributes<RatingOwnProps>
80
76
 
81
77
  type RatingStyle = ComponentStyle<'rating'>
82
-
83
- const propTypes: PropValidators<PropKeys> = {
84
- label: PropTypes.string.isRequired,
85
- formatValueText: PropTypes.func,
86
- iconCount: PropTypes.oneOf([3, 5]),
87
- size: PropTypes.oneOf(['small', 'medium', 'large']),
88
- valueMax: PropTypes.number,
89
- valueNow: PropTypes.number,
90
- animateFill: PropTypes.bool,
91
- margin: PropTypes.string
92
- }
93
-
94
78
  const allowedProps: AllowedPropKeys = [
95
79
  'label',
96
80
  'formatValueText',
@@ -103,4 +87,4 @@ const allowedProps: AllowedPropKeys = [
103
87
  ]
104
88
 
105
89
  export type { RatingProps, RatingStyle }
106
- export { propTypes, allowedProps }
90
+ export { allowedProps }
@@ -33,7 +33,7 @@ import { withStyle } from '@instructure/emotion'
33
33
  import generateStyle from './styles'
34
34
  import generateComponentTheme from './theme'
35
35
  import type { RatingIconProps, RatingIconState } from './props'
36
- import { allowedProps, propTypes } from './props'
36
+ import { allowedProps } from './props'
37
37
 
38
38
  /**
39
39
  ---
@@ -46,7 +46,6 @@ class RatingIcon extends Component<RatingIconProps, RatingIconState> {
46
46
  static readonly componentId = 'Rating.Icon'
47
47
 
48
48
  static allowedProps = allowedProps
49
- static propTypes = propTypes
50
49
 
51
50
  static defaultProps = {
52
51
  animationDelay: 200,
@@ -21,9 +21,8 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- import PropTypes from 'prop-types'
25
24
 
26
- import type { PropValidators, RatingIconTheme } from '@instructure/shared-types'
25
+ import type { RatingIconTheme } from '@instructure/shared-types'
27
26
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
28
27
 
29
28
  type RatingIconOwnProps = {
@@ -45,14 +44,6 @@ type RatingIconProps = RatingIconOwnProps &
45
44
  WithStyleProps<RatingIconTheme, RatingIconStyle>
46
45
 
47
46
  type RatingIconStyle = ComponentStyle<'ratingIcon' | 'icon'>
48
-
49
- const propTypes: PropValidators<PropKeys> = {
50
- animationDelay: PropTypes.number,
51
- animateFill: PropTypes.bool,
52
- filled: PropTypes.bool,
53
- size: PropTypes.oneOf(['small', 'medium', 'large'])
54
- }
55
-
56
47
  const allowedProps: AllowedPropKeys = [
57
48
  'animationDelay',
58
49
  'animateFill',
@@ -61,4 +52,4 @@ const allowedProps: AllowedPropKeys = [
61
52
  ]
62
53
 
63
54
  export type { RatingIconProps, RatingIconStyle }
64
- export { propTypes, allowedProps }
55
+ export { allowedProps }
@@ -15,7 +15,6 @@
15
15
  { "path": "../ui-icons/tsconfig.build.json" },
16
16
  { "path": "../ui-motion/tsconfig.build.json" },
17
17
  { "path": "../ui-react-utils/tsconfig.build.json" },
18
- { "path": "../ui-testable/tsconfig.build.json" },
19
18
  { "path": "../ui-view/tsconfig.build.json" },
20
19
  { "path": "../ui-babel-preset/tsconfig.build.json" },
21
20
  { "path": "../ui-axe-check/tsconfig.build.json" },