@instructure/ui-spinner 8.56.1 → 8.56.2-pr-snapshot-1721749364069
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 +8 -0
- package/lib/Spinner/SpinnerLocator.js +2 -2
- package/lib/Spinner/index.js +7 -9
- package/package.json +14 -14
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
|
+
## [8.56.2-pr-snapshot-1721749364069](https://github.com/instructure/instructure-ui/compare/v8.56.1...v8.56.2-pr-snapshot-1721749364069) (2024-07-23)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-spinner
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [8.56.1](https://github.com/instructure/instructure-ui/compare/v8.56.0...v8.56.1) (2024-06-13)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @instructure/ui-spinner
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SpinnerLocator = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _uiTestLocator = require("@instructure/ui-test-locator");
|
|
8
8
|
var _index = require("./index");
|
|
9
9
|
/*
|
|
10
10
|
* The MIT License (MIT)
|
|
@@ -31,4 +31,4 @@ var _index = require("./index");
|
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
// @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
34
|
-
const SpinnerLocator = exports.SpinnerLocator = (0,
|
|
34
|
+
const SpinnerLocator = exports.SpinnerLocator = (0, _uiTestLocator.locator)(_index.Spinner.selector);
|
package/lib/Spinner/index.js
CHANGED
|
@@ -6,11 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.Spinner = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var _withDeterministicId = require("@instructure/ui-react-utils/lib/DeterministicIdContext/withDeterministicId.js");
|
|
13
|
-
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
9
|
+
var _uiView = require("@instructure/ui-view");
|
|
10
|
+
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
11
|
+
var _uiTestable = require("@instructure/ui-testable");
|
|
14
12
|
var _console = require("@instructure/console");
|
|
15
13
|
var _emotion = require("@instructure/emotion");
|
|
16
14
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
@@ -46,7 +44,7 @@ var _dec, _dec2, _dec3, _class, _class2;
|
|
|
46
44
|
category: components
|
|
47
45
|
---
|
|
48
46
|
**/
|
|
49
|
-
let Spinner = exports.Spinner = (_dec = (0,
|
|
47
|
+
let Spinner = exports.Spinner = (_dec = (0, _uiReactUtils.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec3 = (0, _uiTestable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Spinner extends _react.Component {
|
|
50
48
|
constructor(props) {
|
|
51
49
|
super(props);
|
|
52
50
|
this.ref = null;
|
|
@@ -97,10 +95,10 @@ let Spinner = exports.Spinner = (_dec = (0, _withDeterministicId.withDeterminist
|
|
|
97
95
|
}
|
|
98
96
|
renderSpinner() {
|
|
99
97
|
var _this$props$styles, _this$props$styles2, _this$props$styles3, _this$props$styles4;
|
|
100
|
-
const passthroughProps =
|
|
98
|
+
const passthroughProps = _uiView.View.omitViewProps((0, _uiReactUtils.omitProps)(this.props, Spinner.allowedProps), Spinner);
|
|
101
99
|
const hasTitle = this.props.renderTitle;
|
|
102
100
|
(0, _console.logError)(!!hasTitle, '[Spinner] The renderTitle prop is necessary for screen reader support.');
|
|
103
|
-
return (0, _emotion.jsx)(
|
|
101
|
+
return (0, _emotion.jsx)(_uiView.View, Object.assign({}, passthroughProps, {
|
|
104
102
|
as: this.props.as,
|
|
105
103
|
elementRef: this.handleRef,
|
|
106
104
|
css: (_this$props$styles = this.props.styles) === null || _this$props$styles === void 0 ? void 0 : _this$props$styles.spinner,
|
|
@@ -112,7 +110,7 @@ let Spinner = exports.Spinner = (_dec = (0, _withDeterministicId.withDeterminist
|
|
|
112
110
|
focusable: "false"
|
|
113
111
|
}, (0, _emotion.jsx)("title", {
|
|
114
112
|
id: this.titleId
|
|
115
|
-
}, (0,
|
|
113
|
+
}, (0, _uiReactUtils.callRenderProp)(this.props.renderTitle)), (0, _emotion.jsx)("g", {
|
|
116
114
|
role: "presentation"
|
|
117
115
|
}, this.props.variant !== 'inverse' && (0, _emotion.jsx)("circle", {
|
|
118
116
|
css: (_this$props$styles3 = this.props.styles) === null || _this$props$styles3 === void 0 ? void 0 : _this$props$styles3.circleTrack,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-spinner",
|
|
3
|
-
"version": "8.56.
|
|
3
|
+
"version": "8.56.2-pr-snapshot-1721749364069",
|
|
4
4
|
"description": "A spinner/loading component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -24,22 +24,22 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.23.2",
|
|
27
|
-
"@instructure/console": "8.56.
|
|
28
|
-
"@instructure/emotion": "8.56.
|
|
29
|
-
"@instructure/shared-types": "8.56.
|
|
30
|
-
"@instructure/ui-color-utils": "8.56.
|
|
31
|
-
"@instructure/ui-react-utils": "8.56.
|
|
32
|
-
"@instructure/ui-testable": "8.56.
|
|
33
|
-
"@instructure/ui-utils": "8.56.
|
|
34
|
-
"@instructure/ui-view": "8.56.
|
|
35
|
-
"@instructure/uid": "8.56.
|
|
27
|
+
"@instructure/console": "8.56.2-pr-snapshot-1721749364069",
|
|
28
|
+
"@instructure/emotion": "8.56.2-pr-snapshot-1721749364069",
|
|
29
|
+
"@instructure/shared-types": "8.56.2-pr-snapshot-1721749364069",
|
|
30
|
+
"@instructure/ui-color-utils": "8.56.2-pr-snapshot-1721749364069",
|
|
31
|
+
"@instructure/ui-react-utils": "8.56.2-pr-snapshot-1721749364069",
|
|
32
|
+
"@instructure/ui-testable": "8.56.2-pr-snapshot-1721749364069",
|
|
33
|
+
"@instructure/ui-utils": "8.56.2-pr-snapshot-1721749364069",
|
|
34
|
+
"@instructure/ui-view": "8.56.2-pr-snapshot-1721749364069",
|
|
35
|
+
"@instructure/uid": "8.56.2-pr-snapshot-1721749364069",
|
|
36
36
|
"prop-types": "^15.8.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@instructure/ui-babel-preset": "8.56.
|
|
40
|
-
"@instructure/ui-test-locator": "8.56.
|
|
41
|
-
"@instructure/ui-test-utils": "8.56.
|
|
42
|
-
"@instructure/ui-themes": "8.56.
|
|
39
|
+
"@instructure/ui-babel-preset": "8.56.2-pr-snapshot-1721749364069",
|
|
40
|
+
"@instructure/ui-test-locator": "8.56.2-pr-snapshot-1721749364069",
|
|
41
|
+
"@instructure/ui-test-utils": "8.56.2-pr-snapshot-1721749364069",
|
|
42
|
+
"@instructure/ui-themes": "8.56.2-pr-snapshot-1721749364069",
|
|
43
43
|
"@testing-library/jest-dom": "^6.1.4",
|
|
44
44
|
"@testing-library/react": "^14.1.2"
|
|
45
45
|
},
|