@instructure/ui-rating 11.7.4-snapshot-14 → 11.7.4-snapshot-49
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 +1 -1
- package/LICENSE.md +1 -0
- package/es/Rating/v1/index.js +5 -4
- package/es/Rating/v2/index.js +5 -4
- package/es/RatingIcon/v1/index.js +5 -4
- package/es/RatingIcon/v2/index.js +3 -3
- package/es/exports/a.js +2 -2
- package/es/exports/b.js +2 -2
- package/lib/Rating/v1/index.js +7 -7
- package/lib/Rating/v2/index.js +7 -7
- package/lib/RatingIcon/v1/index.js +4 -4
- package/lib/RatingIcon/v2/index.js +3 -3
- package/lib/exports/a.js +4 -4
- package/lib/exports/b.js +4 -4
- package/package.json +13 -13
- package/src/Rating/v1/index.tsx +4 -3
- package/src/Rating/v2/index.tsx +4 -3
- package/src/RatingIcon/v1/index.tsx +4 -3
- package/src/RatingIcon/v2/index.tsx +3 -2
- package/src/exports/a.ts +2 -2
- package/src/exports/b.ts +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Rating/v1/index.d.ts +2 -1
- package/types/Rating/v1/index.d.ts.map +1 -1
- package/types/Rating/v2/index.d.ts +2 -1
- package/types/Rating/v2/index.d.ts.map +1 -1
- package/types/RatingIcon/v1/index.d.ts +1 -0
- package/types/RatingIcon/v1/index.d.ts.map +1 -1
- package/types/RatingIcon/v2/index.d.ts +1 -0
- package/types/RatingIcon/v2/index.d.ts.map +1 -1
- package/types/exports/a.d.ts +2 -2
- package/types/exports/a.d.ts.map +1 -1
- package/types/exports/b.d.ts +2 -2
- package/types/exports/b.d.ts.map +1 -1
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
|
-
## [11.7.4-snapshot-
|
|
6
|
+
## [11.7.4-snapshot-49](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-49) (2026-06-17)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-rating
|
|
9
9
|
|
package/LICENSE.md
CHANGED
package/es/Rating/v1/index.js
CHANGED
|
@@ -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
|
|
30
|
+
import { RatingIcon } from '../../RatingIcon/v1/index.js';
|
|
31
31
|
import { withStyle } from '@instructure/emotion';
|
|
32
|
-
import generateStyle from
|
|
33
|
-
import { allowedProps } from
|
|
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 =
|
|
42
|
+
static displayName = 'Rating';
|
|
42
43
|
static componentId = 'Rating';
|
|
43
44
|
static allowedProps = allowedProps;
|
|
44
45
|
static defaultProps = {
|
package/es/Rating/v2/index.js
CHANGED
|
@@ -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
|
|
30
|
+
import { RatingIcon } from '../../RatingIcon/v2/index.js';
|
|
31
31
|
import { withStyleNew } from '@instructure/emotion';
|
|
32
|
-
import generateStyle from
|
|
33
|
-
import { allowedProps } from
|
|
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 =
|
|
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
|
|
32
|
-
import generateComponentTheme from
|
|
33
|
-
import { allowedProps } from
|
|
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 =
|
|
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
|
|
32
|
-
import { allowedProps } from
|
|
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 =
|
|
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
|
|
25
|
-
export { RatingIcon } from
|
|
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
|
|
25
|
-
export { RatingIcon } from
|
|
24
|
+
export { Rating } from '../Rating/v2/index.js';
|
|
25
|
+
export { RatingIcon } from '../RatingIcon/v2/index.js';
|
package/lib/Rating/v1/index.js
CHANGED
|
@@ -9,10 +9,10 @@ var _react = require("react");
|
|
|
9
9
|
var _v11_ = require("@instructure/ui-view/v11_6");
|
|
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
|
|
12
|
+
var _index = require("../../RatingIcon/v1/index.js");
|
|
13
13
|
var _emotion = require("@instructure/emotion");
|
|
14
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
15
|
-
var _props = require("./props");
|
|
14
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
15
|
+
var _props = require("./props.js");
|
|
16
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
17
17
|
var _dec, _class;
|
|
18
18
|
/*
|
|
@@ -44,7 +44,7 @@ category: components
|
|
|
44
44
|
---
|
|
45
45
|
**/
|
|
46
46
|
let Rating = exports.Rating = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_class = class Rating extends _react.Component {
|
|
47
|
-
static displayName =
|
|
47
|
+
static displayName = 'Rating';
|
|
48
48
|
static componentId = 'Rating';
|
|
49
49
|
static allowedProps = _props.allowedProps;
|
|
50
50
|
static defaultProps = {
|
|
@@ -54,7 +54,7 @@ let Rating = exports.Rating = (_dec = (0, _emotion.withStyle)(_styles.default, n
|
|
|
54
54
|
size: 'medium',
|
|
55
55
|
valueNow: 0
|
|
56
56
|
};
|
|
57
|
-
static Icon =
|
|
57
|
+
static Icon = _index.RatingIcon;
|
|
58
58
|
ref = null;
|
|
59
59
|
handleRef = el => {
|
|
60
60
|
this.ref = el;
|
|
@@ -106,12 +106,12 @@ let Rating = exports.Rating = (_dec = (0, _emotion.withStyle)(_styles.default, n
|
|
|
106
106
|
"data-cid": "Rating",
|
|
107
107
|
children: [(0, _jsxRuntime.jsx)(_ScreenReaderContent.ScreenReaderContent, {
|
|
108
108
|
children: valueText
|
|
109
|
-
}), [...Array(this.filled)].map((_x, i) => (0, _jsxRuntime.jsx)(
|
|
109
|
+
}), [...Array(this.filled)].map((_x, i) => (0, _jsxRuntime.jsx)(_index.RatingIcon, {
|
|
110
110
|
filled: true,
|
|
111
111
|
animateFill: animateFill,
|
|
112
112
|
animationDelay: animateFill ? (i + 1) * 200 : undefined,
|
|
113
113
|
size: size
|
|
114
|
-
}, i + 1)), [...Array(this.empty)].map((_x, i) => (0, _jsxRuntime.jsx)(
|
|
114
|
+
}, i + 1)), [...Array(this.empty)].map((_x, i) => (0, _jsxRuntime.jsx)(_index.RatingIcon, {
|
|
115
115
|
size: size
|
|
116
116
|
}, i + 1))]
|
|
117
117
|
});
|
package/lib/Rating/v2/index.js
CHANGED
|
@@ -9,10 +9,10 @@ var _react = require("react");
|
|
|
9
9
|
var _latest = require("@instructure/ui-view/latest");
|
|
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
|
|
12
|
+
var _index = require("../../RatingIcon/v2/index.js");
|
|
13
13
|
var _emotion = require("@instructure/emotion");
|
|
14
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
15
|
-
var _props = require("./props");
|
|
14
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
15
|
+
var _props = require("./props.js");
|
|
16
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
17
17
|
var _dec, _class;
|
|
18
18
|
/*
|
|
@@ -44,7 +44,7 @@ category: components
|
|
|
44
44
|
---
|
|
45
45
|
**/
|
|
46
46
|
let Rating = exports.Rating = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class Rating extends _react.Component {
|
|
47
|
-
static displayName =
|
|
47
|
+
static displayName = 'Rating';
|
|
48
48
|
static componentId = 'Rating';
|
|
49
49
|
static allowedProps = _props.allowedProps;
|
|
50
50
|
static defaultProps = {
|
|
@@ -54,7 +54,7 @@ let Rating = exports.Rating = (_dec = (0, _emotion.withStyleNew)(_styles.default
|
|
|
54
54
|
size: 'medium',
|
|
55
55
|
valueNow: 0
|
|
56
56
|
};
|
|
57
|
-
static Icon =
|
|
57
|
+
static Icon = _index.RatingIcon;
|
|
58
58
|
ref = null;
|
|
59
59
|
handleRef = el => {
|
|
60
60
|
this.ref = el;
|
|
@@ -106,12 +106,12 @@ let Rating = exports.Rating = (_dec = (0, _emotion.withStyleNew)(_styles.default
|
|
|
106
106
|
"data-cid": "Rating",
|
|
107
107
|
children: [(0, _jsxRuntime.jsx)(_ScreenReaderContent.ScreenReaderContent, {
|
|
108
108
|
children: valueText
|
|
109
|
-
}), [...Array(this.filled)].map((_x, i) => (0, _jsxRuntime.jsx)(
|
|
109
|
+
}), [...Array(this.filled)].map((_x, i) => (0, _jsxRuntime.jsx)(_index.RatingIcon, {
|
|
110
110
|
filled: true,
|
|
111
111
|
animateFill: animateFill,
|
|
112
112
|
animationDelay: animateFill ? (i + 1) * 200 : undefined,
|
|
113
113
|
size: size
|
|
114
|
-
}, i + 1)), [...Array(this.empty)].map((_x, i) => (0, _jsxRuntime.jsx)(
|
|
114
|
+
}, i + 1)), [...Array(this.empty)].map((_x, i) => (0, _jsxRuntime.jsx)(_index.RatingIcon, {
|
|
115
115
|
size: size
|
|
116
116
|
}, i + 1))]
|
|
117
117
|
});
|
|
@@ -11,9 +11,9 @@ var _IconStarLightSolid = require("@instructure/ui-icons/lib/generated/IconStarL
|
|
|
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");
|
|
14
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
15
|
-
var _theme = _interopRequireDefault(require("./theme"));
|
|
16
|
-
var _props = require("./props");
|
|
14
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
15
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
16
|
+
var _props = require("./props.js");
|
|
17
17
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
18
18
|
var _dec, _class;
|
|
19
19
|
/*
|
|
@@ -46,7 +46,7 @@ id: Rating.Icon
|
|
|
46
46
|
---
|
|
47
47
|
**/
|
|
48
48
|
let RatingIcon = exports.RatingIcon = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class RatingIcon extends _react.Component {
|
|
49
|
-
static displayName =
|
|
49
|
+
static displayName = 'RatingIcon';
|
|
50
50
|
static componentId = 'Rating.Icon';
|
|
51
51
|
static allowedProps = _props.allowedProps;
|
|
52
52
|
static defaultProps = {
|
|
@@ -10,8 +10,8 @@ var _uiIcons = require("@instructure/ui-icons");
|
|
|
10
10
|
var _requestAnimationFrame = require("@instructure/ui-dom-utils/lib/requestAnimationFrame.js");
|
|
11
11
|
var _Transition = require("@instructure/ui-motion/lib/Transition");
|
|
12
12
|
var _emotion = require("@instructure/emotion");
|
|
13
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
14
|
-
var _props = require("./props");
|
|
13
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
14
|
+
var _props = require("./props.js");
|
|
15
15
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
16
16
|
var _dec, _class;
|
|
17
17
|
/*
|
|
@@ -50,7 +50,7 @@ id: Rating.Icon
|
|
|
50
50
|
---
|
|
51
51
|
**/
|
|
52
52
|
let RatingIcon = exports.RatingIcon = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class RatingIcon extends _react.Component {
|
|
53
|
-
static displayName =
|
|
53
|
+
static displayName = 'RatingIcon';
|
|
54
54
|
static componentId = 'Rating.Icon';
|
|
55
55
|
static allowedProps = _props.allowedProps;
|
|
56
56
|
static defaultProps = {
|
package/lib/exports/a.js
CHANGED
|
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "Rating", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _index.Rating;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "RatingIcon", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _index2.RatingIcon;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
var
|
|
19
|
-
var
|
|
18
|
+
var _index = require("../Rating/v1/index.js");
|
|
19
|
+
var _index2 = require("../RatingIcon/v1/index.js");
|
package/lib/exports/b.js
CHANGED
|
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "Rating", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _index.Rating;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "RatingIcon", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _index2.RatingIcon;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
var
|
|
19
|
-
var
|
|
18
|
+
var _index = require("../Rating/v2/index.js");
|
|
19
|
+
var _index2 = require("../RatingIcon/v2/index.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-rating",
|
|
3
|
-
"version": "11.7.4-snapshot-
|
|
3
|
+
"version": "11.7.4-snapshot-49",
|
|
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.29.2",
|
|
18
|
-
"@instructure/console": "11.7.4-snapshot-
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-dom-utils": "11.7.4-snapshot-
|
|
23
|
-
"@instructure/ui-icons": "11.7.4-snapshot-
|
|
24
|
-
"@instructure/ui-motion": "11.7.4-snapshot-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/ui-
|
|
27
|
-
"@instructure/ui-
|
|
18
|
+
"@instructure/console": "11.7.4-snapshot-49",
|
|
19
|
+
"@instructure/shared-types": "11.7.4-snapshot-49",
|
|
20
|
+
"@instructure/ui-a11y-content": "11.7.4-snapshot-49",
|
|
21
|
+
"@instructure/emotion": "11.7.4-snapshot-49",
|
|
22
|
+
"@instructure/ui-dom-utils": "11.7.4-snapshot-49",
|
|
23
|
+
"@instructure/ui-icons": "11.7.4-snapshot-49",
|
|
24
|
+
"@instructure/ui-motion": "11.7.4-snapshot-49",
|
|
25
|
+
"@instructure/ui-react-utils": "11.7.4-snapshot-49",
|
|
26
|
+
"@instructure/ui-view": "11.7.4-snapshot-49",
|
|
27
|
+
"@instructure/ui-themes": "11.7.4-snapshot-49"
|
|
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-axe-check": "11.7.4-snapshot-
|
|
34
|
-
"@instructure/ui-babel-preset": "11.7.4-snapshot-
|
|
33
|
+
"@instructure/ui-axe-check": "11.7.4-snapshot-49",
|
|
34
|
+
"@instructure/ui-babel-preset": "11.7.4-snapshot-49"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": ">=18 <=19"
|
package/src/Rating/v1/index.tsx
CHANGED
|
@@ -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
|
package/src/Rating/v2/index.tsx
CHANGED
|
@@ -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'
|