@instructure/ui-rating 11.7.3 → 11.7.4-pr-snapshot-1781695314229

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE.md +1 -0
  3. package/{lib/Rating/v2/props.js → babel.config.cjs} +12 -7
  4. package/es/Rating/v1/index.js +5 -4
  5. package/es/Rating/v2/index.js +5 -4
  6. package/es/RatingIcon/v1/index.js +5 -4
  7. package/es/RatingIcon/v2/index.js +3 -3
  8. package/es/exports/a.js +2 -2
  9. package/es/exports/b.js +2 -2
  10. package/package.json +15 -20
  11. package/src/Rating/v1/index.tsx +4 -3
  12. package/src/Rating/v2/index.tsx +4 -3
  13. package/src/RatingIcon/v1/index.tsx +4 -3
  14. package/src/RatingIcon/v2/index.tsx +3 -2
  15. package/src/exports/a.ts +2 -2
  16. package/src/exports/b.ts +2 -2
  17. package/tsconfig.build.tsbuildinfo +1 -1
  18. package/types/Rating/v1/index.d.ts +2 -1
  19. package/types/Rating/v1/index.d.ts.map +1 -1
  20. package/types/Rating/v2/index.d.ts +2 -1
  21. package/types/Rating/v2/index.d.ts.map +1 -1
  22. package/types/RatingIcon/v1/index.d.ts +1 -0
  23. package/types/RatingIcon/v1/index.d.ts.map +1 -1
  24. package/types/RatingIcon/v2/index.d.ts +1 -0
  25. package/types/RatingIcon/v2/index.d.ts.map +1 -1
  26. package/types/exports/a.d.ts +2 -2
  27. package/types/exports/a.d.ts.map +1 -1
  28. package/types/exports/b.d.ts +2 -2
  29. package/types/exports/b.d.ts.map +1 -1
  30. package/lib/Rating/v1/index.js +0 -120
  31. package/lib/Rating/v1/props.js +0 -31
  32. package/lib/Rating/v1/styles.js +0 -49
  33. package/lib/Rating/v2/index.js +0 -120
  34. package/lib/Rating/v2/styles.js +0 -46
  35. package/lib/RatingIcon/v1/index.js +0 -119
  36. package/lib/RatingIcon/v1/props.js +0 -31
  37. package/lib/RatingIcon/v1/styles.js +0 -82
  38. package/lib/RatingIcon/v1/theme.js +0 -62
  39. package/lib/RatingIcon/v2/index.js +0 -131
  40. package/lib/RatingIcon/v2/props.js +0 -31
  41. package/lib/RatingIcon/v2/styles.js +0 -67
  42. package/lib/exports/a.js +0 -19
  43. package/lib/exports/b.js +0 -19
  44. package/lib/package.json +0 -1
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.4-pr-snapshot-1781695314229](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-pr-snapshot-1781695314229) (2026-06-17)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-rating
9
+
10
+
11
+
12
+
13
+
6
14
  ## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
7
15
 
8
16
 
package/LICENSE.md CHANGED
@@ -2,6 +2,7 @@
2
2
  title: The MIT License (MIT)
3
3
  category: Getting Started
4
4
  order: 9
5
+ isWIP: true
5
6
  ---
6
7
 
7
8
  # The MIT License (MIT)
@@ -1,9 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.allowedProps = void 0;
7
1
  /*
8
2
  * The MIT License (MIT)
9
3
  *
@@ -28,4 +22,15 @@ exports.allowedProps = void 0;
28
22
  * SOFTWARE.
29
23
  */
30
24
 
31
- const allowedProps = exports.allowedProps = ['label', 'formatValueText', 'iconCount', 'size', 'valueMax', 'valueNow', 'animateFill', 'margin'];
25
+ module.exports = {
26
+ presets: [
27
+ [
28
+ require('@instructure/ui-babel-preset'),
29
+ {
30
+ esModules: Boolean(process.env.ES_MODULES),
31
+ removeConsole: process.env.NODE_ENV === 'production',
32
+ transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
33
+ }
34
+ ]
35
+ ]
36
+ }
@@ -27,10 +27,11 @@ import { Component } from 'react';
27
27
  import { View } from '@instructure/ui-view/v11_6';
28
28
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
29
29
  import { omitProps } from '@instructure/ui-react-utils';
30
- import { RatingIcon } from "../../RatingIcon/v1/index.js";
30
+ import { RatingIcon } from '../../RatingIcon/v1/index.js';
31
31
  import { withStyle } from '@instructure/emotion';
32
- import generateStyle from "./styles.js";
33
- import { allowedProps } from "./props.js";
32
+ import generateStyle from './styles.js';
33
+ import { allowedProps } from './props.js';
34
+
34
35
  /**
35
36
  ---
36
37
  category: components
@@ -38,7 +39,7 @@ category: components
38
39
  **/
39
40
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
40
41
  let Rating = (_dec = withStyle(generateStyle, null), _dec(_class = class Rating extends Component {
41
- static displayName = "Rating";
42
+ static displayName = 'Rating';
42
43
  static componentId = 'Rating';
43
44
  static allowedProps = allowedProps;
44
45
  static defaultProps = {
@@ -27,10 +27,11 @@ import { Component } from 'react';
27
27
  import { View } from '@instructure/ui-view/latest';
28
28
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
29
29
  import { omitProps } from '@instructure/ui-react-utils';
30
- import { RatingIcon } from "../../RatingIcon/v2/index.js";
30
+ import { RatingIcon } from '../../RatingIcon/v2/index.js';
31
31
  import { withStyleNew } from '@instructure/emotion';
32
- import generateStyle from "./styles.js";
33
- import { allowedProps } from "./props.js";
32
+ import generateStyle from './styles.js';
33
+ import { allowedProps } from './props.js';
34
+
34
35
  /**
35
36
  ---
36
37
  category: components
@@ -38,7 +39,7 @@ category: components
38
39
  **/
39
40
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
40
41
  let Rating = (_dec = withStyleNew(generateStyle), _dec(_class = class Rating extends Component {
41
- static displayName = "Rating";
42
+ static displayName = 'Rating';
42
43
  static componentId = 'Rating';
43
44
  static allowedProps = allowedProps;
44
45
  static defaultProps = {
@@ -28,9 +28,10 @@ import { IconStarSolid, IconStarLightSolid } from '@instructure/ui-icons';
28
28
  import { requestAnimationFrame } from '@instructure/ui-dom-utils';
29
29
  import { Transition } from '@instructure/ui-motion';
30
30
  import { withStyle } from '@instructure/emotion';
31
- import generateStyle from "./styles.js";
32
- import generateComponentTheme from "./theme.js";
33
- import { allowedProps } from "./props.js";
31
+ import generateStyle from './styles.js';
32
+ import generateComponentTheme from './theme.js';
33
+ import { allowedProps } from './props.js';
34
+
34
35
  /**
35
36
  ---
36
37
  parent: Rating
@@ -39,7 +40,7 @@ id: Rating.Icon
39
40
  **/
40
41
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
41
42
  let RatingIcon = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class RatingIcon extends Component {
42
- static displayName = "RatingIcon";
43
+ static displayName = 'RatingIcon';
43
44
  static componentId = 'Rating.Icon';
44
45
  static allowedProps = allowedProps;
45
46
  static defaultProps = {
@@ -28,8 +28,8 @@ import { StarInstUIIcon, StarSolidInstUIIcon } from '@instructure/ui-icons';
28
28
  import { requestAnimationFrame } from '@instructure/ui-dom-utils';
29
29
  import { Transition } from '@instructure/ui-motion';
30
30
  import { withStyleNew } from '@instructure/emotion';
31
- import generateStyle from "./styles.js";
32
- import { allowedProps } from "./props.js";
31
+ import generateStyle from './styles.js';
32
+ import { allowedProps } from './props.js';
33
33
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
34
34
  const ratingIconSizeToIconSize = {
35
35
  small: 'md',
@@ -44,7 +44,7 @@ id: Rating.Icon
44
44
  ---
45
45
  **/
46
46
  let RatingIcon = (_dec = withStyleNew(generateStyle), _dec(_class = class RatingIcon extends Component {
47
- static displayName = "RatingIcon";
47
+ static displayName = 'RatingIcon';
48
48
  static componentId = 'Rating.Icon';
49
49
  static allowedProps = allowedProps;
50
50
  static defaultProps = {
package/es/exports/a.js CHANGED
@@ -21,5 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Rating } from "../Rating/v1/index.js";
25
- export { RatingIcon } from "../RatingIcon/v1/index.js";
24
+ export { Rating } from '../Rating/v1/index.js';
25
+ export { RatingIcon } from '../RatingIcon/v1/index.js';
package/es/exports/b.js CHANGED
@@ -21,5 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Rating } from "../Rating/v2/index.js";
25
- export { RatingIcon } from "../RatingIcon/v2/index.js";
24
+ export { Rating } from '../Rating/v2/index.js';
25
+ export { RatingIcon } from '../RatingIcon/v2/index.js';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@instructure/ui-rating",
3
- "version": "11.7.3",
3
+ "version": "11.7.4-pr-snapshot-1781695314229",
4
+ "type": "module",
4
5
  "description": "A static rating component",
5
6
  "author": "Instructure, Inc. Engineering and Product Design",
6
7
  "module": "./es/index.js",
7
- "main": "./lib/index.js",
8
8
  "types": "./types/index.d.ts",
9
9
  "repository": {
10
10
  "type": "git",
@@ -15,23 +15,23 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.2",
18
- "@instructure/console": "11.7.3",
19
- "@instructure/emotion": "11.7.3",
20
- "@instructure/shared-types": "11.7.3",
21
- "@instructure/ui-dom-utils": "11.7.3",
22
- "@instructure/ui-a11y-content": "11.7.3",
23
- "@instructure/ui-icons": "11.7.3",
24
- "@instructure/ui-motion": "11.7.3",
25
- "@instructure/ui-react-utils": "11.7.3",
26
- "@instructure/ui-themes": "11.7.3",
27
- "@instructure/ui-view": "11.7.3"
18
+ "@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
19
+ "@instructure/console": "11.7.4-pr-snapshot-1781695314229",
20
+ "@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
21
+ "@instructure/ui-a11y-content": "11.7.4-pr-snapshot-1781695314229",
22
+ "@instructure/ui-dom-utils": "11.7.4-pr-snapshot-1781695314229",
23
+ "@instructure/ui-icons": "11.7.4-pr-snapshot-1781695314229",
24
+ "@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
25
+ "@instructure/ui-view": "11.7.4-pr-snapshot-1781695314229",
26
+ "@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229",
27
+ "@instructure/ui-motion": "11.7.4-pr-snapshot-1781695314229"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@testing-library/jest-dom": "^6.6.3",
31
31
  "@testing-library/react": "15.0.7",
32
32
  "vitest": "^3.2.2",
33
- "@instructure/ui-babel-preset": "11.7.3",
34
- "@instructure/ui-axe-check": "11.7.3"
33
+ "@instructure/ui-axe-check": "11.7.4-pr-snapshot-1781695314229",
34
+ "@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "react": ">=18 <=19"
@@ -41,7 +41,6 @@
41
41
  },
42
42
  "sideEffects": false,
43
43
  "exports": {
44
- "./lib/*": "./lib/*",
45
44
  "./es/*": "./es/*",
46
45
  "./types/*": "./types/*",
47
46
  "./package.json": "./package.json",
@@ -50,28 +49,24 @@
50
49
  "src": "./src/exports/a.ts",
51
50
  "types": "./types/exports/a.d.ts",
52
51
  "import": "./es/exports/a.js",
53
- "require": "./lib/exports/a.js",
54
52
  "default": "./es/exports/a.js"
55
53
  },
56
54
  "./v11_6": {
57
55
  "src": "./src/exports/a.ts",
58
56
  "types": "./types/exports/a.d.ts",
59
57
  "import": "./es/exports/a.js",
60
- "require": "./lib/exports/a.js",
61
58
  "default": "./es/exports/a.js"
62
59
  },
63
60
  "./v11_7": {
64
61
  "src": "./src/exports/b.ts",
65
62
  "types": "./types/exports/b.d.ts",
66
63
  "import": "./es/exports/b.js",
67
- "require": "./lib/exports/b.js",
68
64
  "default": "./es/exports/b.js"
69
65
  },
70
66
  "./latest": {
71
67
  "src": "./src/exports/b.ts",
72
68
  "types": "./types/exports/b.d.ts",
73
69
  "import": "./es/exports/b.js",
74
- "require": "./lib/exports/b.js",
75
70
  "default": "./es/exports/b.js"
76
71
  }
77
72
  },
@@ -79,7 +74,7 @@
79
74
  "lint": "ui-scripts lint",
80
75
  "lint:fix": "ui-scripts lint --fix",
81
76
  "clean": "ui-scripts clean",
82
- "build": "ui-scripts build --modules es,cjs",
77
+ "build": "ui-scripts build",
83
78
  "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
84
79
  "build:types": "tsc -p tsconfig.build.json",
85
80
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
@@ -27,11 +27,11 @@ import { Component } from 'react'
27
27
  import { View } from '@instructure/ui-view/v11_6'
28
28
  import { ScreenReaderContent } from '@instructure/ui-a11y-content'
29
29
  import { omitProps } from '@instructure/ui-react-utils'
30
- import { RatingIcon } from '../../RatingIcon/v1'
30
+ import { RatingIcon } from '../../RatingIcon/v1/index.js'
31
31
  import { withStyle } from '@instructure/emotion'
32
- import generateStyle from './styles'
32
+ import generateStyle from './styles.js'
33
33
  import type { RatingProps } from './props'
34
- import { allowedProps } from './props'
34
+ import { allowedProps } from './props.js'
35
35
 
36
36
  /**
37
37
  ---
@@ -40,6 +40,7 @@ category: components
40
40
  **/
41
41
  @withStyle(generateStyle, null)
42
42
  class Rating extends Component<RatingProps> {
43
+ static displayName = 'Rating'
43
44
  static readonly componentId = 'Rating'
44
45
 
45
46
  static allowedProps = allowedProps
@@ -27,11 +27,11 @@ import { Component } from 'react'
27
27
  import { View } from '@instructure/ui-view/latest'
28
28
  import { ScreenReaderContent } from '@instructure/ui-a11y-content'
29
29
  import { omitProps } from '@instructure/ui-react-utils'
30
- import { RatingIcon } from '../../RatingIcon/v2'
30
+ import { RatingIcon } from '../../RatingIcon/v2/index.js'
31
31
  import { withStyleNew } from '@instructure/emotion'
32
- import generateStyle from './styles'
32
+ import generateStyle from './styles.js'
33
33
  import type { RatingProps } from './props'
34
- import { allowedProps } from './props'
34
+ import { allowedProps } from './props.js'
35
35
 
36
36
  /**
37
37
  ---
@@ -40,6 +40,7 @@ category: components
40
40
  **/
41
41
  @withStyleNew(generateStyle)
42
42
  class Rating extends Component<RatingProps> {
43
+ static displayName = 'Rating'
43
44
  static readonly componentId = 'Rating'
44
45
 
45
46
  static allowedProps = allowedProps
@@ -30,10 +30,10 @@ import type { RequestAnimationFrameType } from '@instructure/ui-dom-utils'
30
30
  import { Transition } from '@instructure/ui-motion'
31
31
 
32
32
  import { withStyle } from '@instructure/emotion'
33
- import generateStyle from './styles'
34
- import generateComponentTheme from './theme'
33
+ import generateStyle from './styles.js'
34
+ import generateComponentTheme from './theme.js'
35
35
  import type { RatingIconProps, RatingIconState } from './props'
36
- import { allowedProps } from './props'
36
+ import { allowedProps } from './props.js'
37
37
 
38
38
  /**
39
39
  ---
@@ -43,6 +43,7 @@ id: Rating.Icon
43
43
  **/
44
44
  @withStyle(generateStyle, generateComponentTheme)
45
45
  class RatingIcon extends Component<RatingIconProps, RatingIconState> {
46
+ static displayName = 'RatingIcon'
46
47
  static readonly componentId = 'Rating.Icon'
47
48
 
48
49
  static allowedProps = allowedProps
@@ -30,9 +30,9 @@ import type { RequestAnimationFrameType } from '@instructure/ui-dom-utils'
30
30
  import { Transition } from '@instructure/ui-motion'
31
31
 
32
32
  import { withStyleNew } from '@instructure/emotion'
33
- import generateStyle from './styles'
33
+ import generateStyle from './styles.js'
34
34
  import type { RatingIconProps, RatingIconState } from './props'
35
- import { allowedProps } from './props'
35
+ import { allowedProps } from './props.js'
36
36
 
37
37
  const ratingIconSizeToIconSize = {
38
38
  small: 'md',
@@ -48,6 +48,7 @@ id: Rating.Icon
48
48
  **/
49
49
  @withStyleNew(generateStyle)
50
50
  class RatingIcon extends Component<RatingIconProps, RatingIconState> {
51
+ static displayName = 'RatingIcon'
51
52
  static readonly componentId = 'Rating.Icon'
52
53
 
53
54
  static allowedProps = allowedProps
package/src/exports/a.ts CHANGED
@@ -21,8 +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
- export { Rating } from '../Rating/v1'
25
- export { RatingIcon } from '../RatingIcon/v1'
24
+ export { Rating } from '../Rating/v1/index.js'
25
+ export { RatingIcon } from '../RatingIcon/v1/index.js'
26
26
 
27
27
  export type { RatingProps } from '../Rating/v1/props'
28
28
  export type { RatingIconProps } from '../RatingIcon/v1/props'
package/src/exports/b.ts CHANGED
@@ -21,8 +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
- export { Rating } from '../Rating/v2'
25
- export { RatingIcon } from '../RatingIcon/v2'
24
+ export { Rating } from '../Rating/v2/index.js'
25
+ export { RatingIcon } from '../RatingIcon/v2/index.js'
26
26
 
27
27
  export type { RatingProps } from '../Rating/v2/props'
28
28
  export type { RatingIconProps } from '../RatingIcon/v2/props'