@instructure/ui-select 8.33.1 → 8.33.2-snapshot-5
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/es/Select/Group/index.js +2 -3
- package/es/Select/Group/props.js +1 -0
- package/es/Select/Option/index.js +2 -3
- package/es/Select/Option/props.js +1 -0
- package/es/Select/SelectLocator.js +5 -5
- package/es/Select/index.js +92 -144
- package/es/Select/props.js +1 -0
- package/es/Select/styles.js +0 -1
- package/es/Select/theme.js +3 -3
- package/es/index.js +1 -0
- package/lib/Select/Group/index.js +0 -5
- package/lib/Select/Group/props.js +1 -5
- package/lib/Select/Option/index.js +0 -5
- package/lib/Select/Option/props.js +1 -3
- package/lib/Select/SelectLocator.js +2 -6
- package/lib/Select/index.js +92 -165
- package/lib/Select/locator.js +0 -2
- package/lib/Select/props.js +1 -8
- package/lib/Select/styles.js +0 -2
- package/lib/Select/theme.js +3 -4
- package/lib/index.js +0 -1
- package/package.json +22 -22
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.Group = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = require("react");
|
|
9
|
-
|
|
10
8
|
var _props = require("./props");
|
|
11
|
-
|
|
12
9
|
/*
|
|
13
10
|
* The MIT License (MIT)
|
|
14
11
|
*
|
|
@@ -48,9 +45,7 @@ class Group extends _react.Component {
|
|
|
48
45
|
// are parsed in Select and rendered as Options components
|
|
49
46
|
return null;
|
|
50
47
|
}
|
|
51
|
-
|
|
52
48
|
}
|
|
53
|
-
|
|
54
49
|
exports.Group = Group;
|
|
55
50
|
Group.displayName = "Group";
|
|
56
51
|
Group.componentId = 'Select.Group';
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.propTypes = exports.allowedProps = void 0;
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _Children = require("@instructure/ui-prop-types/lib/Children.js");
|
|
13
|
-
|
|
14
10
|
var _Option = require("../Option");
|
|
15
|
-
|
|
16
11
|
/*
|
|
17
12
|
* The MIT License (MIT)
|
|
18
13
|
*
|
|
@@ -36,6 +31,7 @@ var _Option = require("../Option");
|
|
|
36
31
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
37
32
|
* SOFTWARE.
|
|
38
33
|
*/
|
|
34
|
+
|
|
39
35
|
const propTypes = {
|
|
40
36
|
renderLabel: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
|
|
41
37
|
children: _Children.Children.oneOf([_Option.Option])
|
|
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.Option = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = require("react");
|
|
9
|
-
|
|
10
8
|
var _props = require("./props");
|
|
11
|
-
|
|
12
9
|
/*
|
|
13
10
|
* The MIT License (MIT)
|
|
14
11
|
*
|
|
@@ -48,9 +45,7 @@ class Option extends _react.Component {
|
|
|
48
45
|
// are parsed in Select and rendered as Options.Item components
|
|
49
46
|
return null;
|
|
50
47
|
}
|
|
51
|
-
|
|
52
48
|
}
|
|
53
|
-
|
|
54
49
|
exports.Option = Option;
|
|
55
50
|
Option.displayName = "Option";
|
|
56
51
|
Option.componentId = 'Select.Option';
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.propTypes = exports.allowedProps = void 0;
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
/*
|
|
13
10
|
* The MIT License (MIT)
|
|
14
11
|
*
|
|
@@ -32,6 +29,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
32
29
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
33
30
|
* SOFTWARE.
|
|
34
31
|
*/
|
|
32
|
+
|
|
35
33
|
const propTypes = {
|
|
36
34
|
id: _propTypes.default.string.isRequired,
|
|
37
35
|
isHighlighted: _propTypes.default.bool,
|
|
@@ -4,15 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SelectLocator = void 0;
|
|
7
|
-
|
|
8
7
|
var _locator = require("@instructure/ui-test-locator/lib/utils/locator.js");
|
|
9
|
-
|
|
10
8
|
var _OptionsLocator = require("@instructure/ui-options/lib/Options/OptionsLocator");
|
|
11
|
-
|
|
12
9
|
var _PopoverLocator = require("@instructure/ui-popover/lib/Popover/PopoverLocator");
|
|
13
|
-
|
|
14
10
|
var _index = require("./index");
|
|
15
|
-
|
|
16
11
|
/*
|
|
17
12
|
* The MIT License (MIT)
|
|
18
13
|
*
|
|
@@ -39,9 +34,11 @@ var _index = require("./index");
|
|
|
39
34
|
|
|
40
35
|
/* eslint-disable no-restricted-imports */
|
|
41
36
|
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module '@ins... Remove this comment to see the full error message
|
|
37
|
+
|
|
42
38
|
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module '@ins... Remove this comment to see the full error message
|
|
43
39
|
|
|
44
40
|
/* eslint-enable no-restricted-imports */
|
|
41
|
+
|
|
45
42
|
// @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
46
43
|
const SelectLocator = (0, _locator.locator)(_index.Select.selector, {
|
|
47
44
|
findInput: function () {
|
|
@@ -51,7 +48,6 @@ const SelectLocator = (0, _locator.locator)(_index.Select.selector, {
|
|
|
51
48
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
52
49
|
args[_key - 1] = arguments[_key];
|
|
53
50
|
}
|
|
54
|
-
|
|
55
51
|
const content = await _PopoverLocator.PopoverLocator.findContent(element, ...args);
|
|
56
52
|
return content ? _OptionsLocator.OptionsLocator.find(content.getDOMNode()) : null;
|
|
57
53
|
}
|