@instructure/ui-rating 11.6.0 → 11.6.1-snapshot-129

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 (53) hide show
  1. package/CHANGELOG.md +34 -284
  2. package/es/Rating/{index.js → v1/index.js} +3 -3
  3. package/es/RatingIcon/{index.js → v1/index.js} +1 -1
  4. package/es/{index.js → exports/a.js} +2 -2
  5. package/lib/Rating/{index.js → v1/index.js} +8 -8
  6. package/lib/RatingIcon/{index.js → v1/index.js} +3 -3
  7. package/lib/{index.js → exports/a.js} +4 -4
  8. package/package.json +42 -20
  9. package/src/Rating/{index.tsx → v1/index.tsx} +3 -3
  10. package/src/RatingIcon/{index.tsx → v1/index.tsx} +1 -1
  11. package/src/{index.ts → exports/a.ts} +4 -4
  12. package/tsconfig.build.tsbuildinfo +1 -1
  13. package/types/Rating/{index.d.ts → v1/index.d.ts} +1 -1
  14. package/types/Rating/v1/index.d.ts.map +1 -0
  15. package/types/Rating/v1/props.d.ts.map +1 -0
  16. package/types/Rating/v1/styles.d.ts.map +1 -0
  17. package/types/RatingIcon/v1/index.d.ts.map +1 -0
  18. package/types/RatingIcon/v1/props.d.ts.map +1 -0
  19. package/types/RatingIcon/v1/styles.d.ts.map +1 -0
  20. package/types/RatingIcon/v1/theme.d.ts.map +1 -0
  21. package/types/exports/a.d.ts +5 -0
  22. package/types/exports/a.d.ts.map +1 -0
  23. package/types/Rating/index.d.ts.map +0 -1
  24. package/types/Rating/props.d.ts.map +0 -1
  25. package/types/Rating/styles.d.ts.map +0 -1
  26. package/types/RatingIcon/index.d.ts.map +0 -1
  27. package/types/RatingIcon/props.d.ts.map +0 -1
  28. package/types/RatingIcon/styles.d.ts.map +0 -1
  29. package/types/RatingIcon/theme.d.ts.map +0 -1
  30. package/types/index.d.ts +0 -5
  31. package/types/index.d.ts.map +0 -1
  32. /package/es/Rating/{props.js → v1/props.js} +0 -0
  33. /package/es/Rating/{styles.js → v1/styles.js} +0 -0
  34. /package/es/RatingIcon/{props.js → v1/props.js} +0 -0
  35. /package/es/RatingIcon/{styles.js → v1/styles.js} +0 -0
  36. /package/es/RatingIcon/{theme.js → v1/theme.js} +0 -0
  37. /package/lib/Rating/{props.js → v1/props.js} +0 -0
  38. /package/lib/Rating/{styles.js → v1/styles.js} +0 -0
  39. /package/lib/RatingIcon/{props.js → v1/props.js} +0 -0
  40. /package/lib/RatingIcon/{styles.js → v1/styles.js} +0 -0
  41. /package/lib/RatingIcon/{theme.js → v1/theme.js} +0 -0
  42. /package/src/Rating/{README.md → v1/README.md} +0 -0
  43. /package/src/Rating/{props.ts → v1/props.ts} +0 -0
  44. /package/src/Rating/{styles.ts → v1/styles.ts} +0 -0
  45. /package/src/RatingIcon/{props.ts → v1/props.ts} +0 -0
  46. /package/src/RatingIcon/{styles.ts → v1/styles.ts} +0 -0
  47. /package/src/RatingIcon/{theme.ts → v1/theme.ts} +0 -0
  48. /package/types/Rating/{props.d.ts → v1/props.d.ts} +0 -0
  49. /package/types/Rating/{styles.d.ts → v1/styles.d.ts} +0 -0
  50. /package/types/RatingIcon/{index.d.ts → v1/index.d.ts} +0 -0
  51. /package/types/RatingIcon/{props.d.ts → v1/props.d.ts} +0 -0
  52. /package/types/RatingIcon/{styles.d.ts → v1/styles.d.ts} +0 -0
  53. /package/types/RatingIcon/{theme.d.ts → v1/theme.d.ts} +0 -0
@@ -6,8 +6,8 @@ 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/IconStarSolid.js");
10
- var _IconStarLightSolid = require("@instructure/ui-icons/lib/IconStarLightSolid.js");
9
+ var _IconStarSolid = require("@instructure/ui-icons/lib/generated/IconStarSolid.js");
10
+ var _IconStarLightSolid = require("@instructure/ui-icons/lib/generated/IconStarLightSolid.js");
11
11
  var _requestAnimationFrame = require("@instructure/ui-dom-utils/lib/requestAnimationFrame.js");
12
12
  var _Transition = require("@instructure/ui-motion/lib/Transition");
13
13
  var _emotion = require("@instructure/emotion");
@@ -45,7 +45,7 @@ parent: Rating
45
45
  id: Rating.Icon
46
46
  ---
47
47
  **/
48
- let RatingIcon = exports.RatingIcon = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_RatingIcon = class RatingIcon extends _react.Component {
48
+ let RatingIcon = exports.RatingIcon = (_dec = (0, _emotion.withStyleLegacy)(_styles.default, _theme.default), _dec(_class = (_RatingIcon = class RatingIcon extends _react.Component {
49
49
  constructor(props) {
50
50
  super(props);
51
51
  this.ref = null;
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "Rating", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _Rating.Rating;
9
+ return _v.Rating;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "RatingIcon", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _RatingIcon.RatingIcon;
15
+ return _v2.RatingIcon;
16
16
  }
17
17
  });
18
- var _Rating = require("./Rating");
19
- var _RatingIcon = require("./RatingIcon");
18
+ var _v = require("../Rating/v1");
19
+ var _v2 = require("../RatingIcon/v1");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-rating",
3
- "version": "11.6.0",
3
+ "version": "11.6.1-snapshot-129",
4
4
  "description": "A static rating component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -15,23 +15,23 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.27.6",
18
- "@instructure/emotion": "11.6.0",
19
- "@instructure/console": "11.6.0",
20
- "@instructure/shared-types": "11.6.0",
21
- "@instructure/ui-a11y-content": "11.6.0",
22
- "@instructure/ui-dom-utils": "11.6.0",
23
- "@instructure/ui-motion": "11.6.0",
24
- "@instructure/ui-view": "11.6.0",
25
- "@instructure/ui-icons": "11.6.0",
26
- "@instructure/ui-react-utils": "11.6.0"
18
+ "@instructure/console": "11.6.1-snapshot-129",
19
+ "@instructure/shared-types": "11.6.1-snapshot-129",
20
+ "@instructure/emotion": "11.6.1-snapshot-129",
21
+ "@instructure/ui-a11y-content": "11.6.1-snapshot-129",
22
+ "@instructure/ui-dom-utils": "11.6.1-snapshot-129",
23
+ "@instructure/ui-icons": "11.6.1-snapshot-129",
24
+ "@instructure/ui-motion": "11.6.1-snapshot-129",
25
+ "@instructure/ui-view": "11.6.1-snapshot-129",
26
+ "@instructure/ui-react-utils": "11.6.1-snapshot-129"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@testing-library/jest-dom": "^6.6.3",
30
30
  "@testing-library/react": "15.0.7",
31
31
  "vitest": "^3.2.2",
32
- "@instructure/ui-axe-check": "11.6.0",
33
- "@instructure/ui-babel-preset": "11.6.0",
34
- "@instructure/ui-themes": "11.6.0"
32
+ "@instructure/ui-babel-preset": "11.6.1-snapshot-129",
33
+ "@instructure/ui-themes": "11.6.1-snapshot-129",
34
+ "@instructure/ui-axe-check": "11.6.1-snapshot-129"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "react": ">=18 <=19"
@@ -41,17 +41,39 @@
41
41
  },
42
42
  "sideEffects": false,
43
43
  "exports": {
44
- ".": {
45
- "types": "./types/index.d.ts",
46
- "import": "./es/index.js",
47
- "require": "./lib/index.js",
48
- "default": "./es/index.js"
49
- },
50
44
  "./lib/*": "./lib/*",
51
45
  "./es/*": "./es/*",
52
46
  "./types/*": "./types/*",
53
47
  "./package.json": "./package.json",
54
- "./src/*": "./src/*"
48
+ "./src/*": "./src/*",
49
+ ".": {
50
+ "src": "./src/exports/a.ts",
51
+ "types": "./types/exports/a.d.ts",
52
+ "import": "./es/exports/a.js",
53
+ "require": "./lib/exports/a.js",
54
+ "default": "./es/exports/a.js"
55
+ },
56
+ "./v11_6": {
57
+ "src": "./src/exports/a.ts",
58
+ "types": "./types/exports/a.d.ts",
59
+ "import": "./es/exports/a.js",
60
+ "require": "./lib/exports/a.js",
61
+ "default": "./es/exports/a.js"
62
+ },
63
+ "./v11_7": {
64
+ "src": "./src/exports/a.ts",
65
+ "types": "./types/exports/a.d.ts",
66
+ "import": "./es/exports/a.js",
67
+ "require": "./lib/exports/a.js",
68
+ "default": "./es/exports/a.js"
69
+ },
70
+ "./latest": {
71
+ "src": "./src/exports/a.ts",
72
+ "types": "./types/exports/a.d.ts",
73
+ "import": "./es/exports/a.js",
74
+ "require": "./lib/exports/a.js",
75
+ "default": "./es/exports/a.js"
76
+ }
55
77
  },
56
78
  "scripts": {
57
79
  "lint": "ui-scripts lint",
@@ -24,11 +24,11 @@
24
24
 
25
25
  import { Component } from 'react'
26
26
 
27
- import { View } from '@instructure/ui-view'
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'
31
- import { withStyle } from '@instructure/emotion'
30
+ import { RatingIcon } from '../../RatingIcon/v1'
31
+ import { withStyleLegacy as withStyle } from '@instructure/emotion'
32
32
  import generateStyle from './styles'
33
33
  import type { RatingProps } from './props'
34
34
  import { allowedProps } from './props'
@@ -29,7 +29,7 @@ import { requestAnimationFrame } from '@instructure/ui-dom-utils'
29
29
  import type { RequestAnimationFrameType } from '@instructure/ui-dom-utils'
30
30
  import { Transition } from '@instructure/ui-motion'
31
31
 
32
- import { withStyle } from '@instructure/emotion'
32
+ import { withStyleLegacy as withStyle } from '@instructure/emotion'
33
33
  import generateStyle from './styles'
34
34
  import generateComponentTheme from './theme'
35
35
  import type { RatingIconProps, RatingIconState } from './props'
@@ -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'
25
- export { RatingIcon } from './RatingIcon'
24
+ export { Rating } from '../Rating/v1'
25
+ export { RatingIcon } from '../RatingIcon/v1'
26
26
 
27
- export type { RatingProps } from './Rating/props'
28
- export type { RatingIconProps } from './RatingIcon/props'
27
+ export type { RatingProps } from '../Rating/v1/props'
28
+ export type { RatingIconProps } from '../RatingIcon/v1/props'