@instructure/ui-select 8.46.2-snapshot-4 → 8.46.2-snapshot-6
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/es/Select/__new-tests__/Select.test.js +1 -1
- package/lib/Select/Group/index.js +1 -2
- package/lib/Select/Group/props.js +2 -4
- package/lib/Select/Option/index.js +1 -2
- package/lib/Select/Option/props.js +2 -4
- package/lib/Select/SelectLocator.js +2 -3
- package/lib/Select/__new-tests__/Select.test.js +1 -1
- package/lib/Select/index.js +2 -4
- package/lib/Select/locator.js +1 -2
- package/lib/Select/props.js +2 -4
- package/lib/Select/styles.js +1 -2
- package/lib/Select/theme.js +1 -2
- package/package.json +24 -24
- package/src/Select/__new-tests__/Select.test.tsx +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Select/__new-tests__/Select.test.d.ts +1 -1
- package/types/Select/__new-tests__/Select.test.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
|
-
## [8.46.2-snapshot-
|
|
6
|
+
## [8.46.2-snapshot-6](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.46.2-snapshot-6) (2023-10-19)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-select
|
|
9
9
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import React from 'react';
|
|
25
25
|
import { render } from '@testing-library/react';
|
|
26
|
-
import '@testing-library/jest-dom
|
|
26
|
+
import '@testing-library/jest-dom';
|
|
27
27
|
import Select from '../index';
|
|
28
28
|
import * as utils from '@instructure/ui-utils';
|
|
29
29
|
jest.mock('@instructure/ui-utils', () => {
|
|
@@ -32,10 +32,8 @@ var _Option = require("../Option");
|
|
|
32
32
|
* SOFTWARE.
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
|
-
const propTypes = {
|
|
35
|
+
const propTypes = exports.propTypes = {
|
|
36
36
|
renderLabel: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
|
|
37
37
|
children: _Children.Children.oneOf([_Option.Option])
|
|
38
38
|
};
|
|
39
|
-
exports.
|
|
40
|
-
const allowedProps = ['renderLabel', 'children'];
|
|
41
|
-
exports.allowedProps = allowedProps;
|
|
39
|
+
const allowedProps = exports.allowedProps = ['renderLabel', 'children'];
|
|
@@ -30,7 +30,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
30
30
|
* SOFTWARE.
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
const propTypes = {
|
|
33
|
+
const propTypes = exports.propTypes = {
|
|
34
34
|
id: _propTypes.default.string.isRequired,
|
|
35
35
|
isHighlighted: _propTypes.default.bool,
|
|
36
36
|
isSelected: _propTypes.default.bool,
|
|
@@ -39,6 +39,4 @@ const propTypes = {
|
|
|
39
39
|
renderAfterLabel: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
40
40
|
children: _propTypes.default.node
|
|
41
41
|
};
|
|
42
|
-
exports.
|
|
43
|
-
const allowedProps = ['id', 'isHighlighted', 'isSelected', 'isDisabled', 'renderBeforeLabel', 'renderAfterLabel', 'children'];
|
|
44
|
-
exports.allowedProps = allowedProps;
|
|
42
|
+
const allowedProps = exports.allowedProps = ['id', 'isHighlighted', 'isSelected', 'isDisabled', 'renderBeforeLabel', 'renderAfterLabel', 'children'];
|
|
@@ -40,11 +40,10 @@ var _index = require("./index");
|
|
|
40
40
|
/* eslint-enable no-restricted-imports */
|
|
41
41
|
|
|
42
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
|
|
43
|
-
const SelectLocator = (0, _locator.locator)(_index.Select.selector, {
|
|
43
|
+
const SelectLocator = exports.SelectLocator = (0, _locator.locator)(_index.Select.selector, {
|
|
44
44
|
findInput: (...args) => (0, _locator.locator)('input').find(...args),
|
|
45
45
|
findOptionsList: async (element, ...args) => {
|
|
46
46
|
const content = await _PopoverLocator.PopoverLocator.findContent(element, ...args);
|
|
47
47
|
return content ? _OptionsLocator.OptionsLocator.find(content.getDOMNode()) : null;
|
|
48
48
|
}
|
|
49
|
-
});
|
|
50
|
-
exports.SelectLocator = SelectLocator;
|
|
49
|
+
});
|
|
@@ -4,7 +4,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _react2 = require("@testing-library/react");
|
|
7
|
-
require("@testing-library/jest-dom
|
|
7
|
+
require("@testing-library/jest-dom");
|
|
8
8
|
var _index = _interopRequireDefault(require("../index"));
|
|
9
9
|
var utils = _interopRequireWildcard(require("@instructure/ui-utils"));
|
|
10
10
|
/*
|
package/lib/Select/index.js
CHANGED
|
@@ -87,7 +87,7 @@ tags: autocomplete, typeahead, combobox, dropdown, search, form
|
|
|
87
87
|
---
|
|
88
88
|
@tsProps
|
|
89
89
|
**/
|
|
90
|
-
let Select = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec3 = (0, _testable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Select extends _react.Component {
|
|
90
|
+
let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec3 = (0, _testable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Select extends _react.Component {
|
|
91
91
|
constructor(...args) {
|
|
92
92
|
super(...args);
|
|
93
93
|
this.state = {
|
|
@@ -576,6 +576,4 @@ let Select = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0
|
|
|
576
576
|
constrain: 'window',
|
|
577
577
|
shouldNotWrap: false
|
|
578
578
|
}, _class2.Option = _Option.Option, _class2.Group = _Group.Group, _class2)) || _class) || _class) || _class);
|
|
579
|
-
exports.
|
|
580
|
-
var _default = Select;
|
|
581
|
-
exports.default = _default;
|
|
579
|
+
var _default = exports.default = Select;
|
package/lib/Select/locator.js
CHANGED
|
@@ -34,5 +34,4 @@ var _SelectLocator = require("./SelectLocator");
|
|
|
34
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
35
|
* SOFTWARE.
|
|
36
36
|
*/
|
|
37
|
-
var _default = _SelectLocator.SelectLocator;
|
|
38
|
-
exports.default = _default;
|
|
37
|
+
var _default = exports.default = _SelectLocator.SelectLocator;
|
package/lib/Select/props.js
CHANGED
|
@@ -41,7 +41,7 @@ var _Option = require("./Option");
|
|
|
41
41
|
// TODO: import these from TextInput once TS types can be imported
|
|
42
42
|
// These props are directly passed to Popover
|
|
43
43
|
// TODO: import these from Popover once TS types can be imported
|
|
44
|
-
const propTypes = {
|
|
44
|
+
const propTypes = exports.propTypes = {
|
|
45
45
|
renderLabel: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
|
|
46
46
|
inputValue: _propTypes.default.string,
|
|
47
47
|
id: _propTypes.default.string,
|
|
@@ -75,6 +75,4 @@ const propTypes = {
|
|
|
75
75
|
children: _Children.Children.oneOf([_Group.Group, _Option.Option]),
|
|
76
76
|
shouldNotWrap: _propTypes.default.bool
|
|
77
77
|
};
|
|
78
|
-
exports.
|
|
79
|
-
const allowedProps = ['renderLabel', 'inputValue', 'isShowingOptions', 'id', 'size', 'assistiveText', 'placeholder', 'interaction', 'isRequired', 'isInline', 'width', 'htmlSize', 'visibleOptionsCount', 'optionsMaxHeight', 'optionsMaxWidth', 'messages', 'placement', 'constrain', 'mountNode', 'onFocus', 'onBlur', 'onInputChange', 'onRequestShowOptions', 'onRequestHideOptions', 'onRequestHighlightOption', 'onRequestSelectOption', 'inputRef', 'listRef', 'renderBeforeInput', 'renderAfterInput', 'children', 'shouldNotWrap'];
|
|
80
|
-
exports.allowedProps = allowedProps;
|
|
78
|
+
const allowedProps = exports.allowedProps = ['renderLabel', 'inputValue', 'isShowingOptions', 'id', 'size', 'assistiveText', 'placeholder', 'interaction', 'isRequired', 'isInline', 'width', 'htmlSize', 'visibleOptionsCount', 'optionsMaxHeight', 'optionsMaxWidth', 'messages', 'placement', 'constrain', 'mountNode', 'onFocus', 'onBlur', 'onInputChange', 'onRequestShowOptions', 'onRequestHideOptions', 'onRequestHighlightOption', 'onRequestSelectOption', 'inputRef', 'listRef', 'renderBeforeInput', 'renderAfterInput', 'children', 'shouldNotWrap'];
|
package/lib/Select/styles.js
CHANGED
package/lib/Select/theme.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-select",
|
|
3
|
-
"version": "8.46.2-snapshot-
|
|
3
|
+
"version": "8.46.2-snapshot-6",
|
|
4
4
|
"description": "A component for select and autocomplete behavior.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,32 +23,32 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "8.46.2-snapshot-
|
|
27
|
-
"@instructure/ui-color-utils": "8.46.2-snapshot-
|
|
28
|
-
"@instructure/ui-test-locator": "8.46.2-snapshot-
|
|
29
|
-
"@instructure/ui-test-utils": "8.46.2-snapshot-
|
|
30
|
-
"@instructure/ui-themes": "8.46.2-snapshot-
|
|
31
|
-
"@testing-library/jest-dom": "^
|
|
26
|
+
"@instructure/ui-babel-preset": "8.46.2-snapshot-6",
|
|
27
|
+
"@instructure/ui-color-utils": "8.46.2-snapshot-6",
|
|
28
|
+
"@instructure/ui-test-locator": "8.46.2-snapshot-6",
|
|
29
|
+
"@instructure/ui-test-utils": "8.46.2-snapshot-6",
|
|
30
|
+
"@instructure/ui-themes": "8.46.2-snapshot-6",
|
|
31
|
+
"@testing-library/jest-dom": "^6.1.4",
|
|
32
32
|
"@testing-library/react": "^14.0.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/runtime": "^7.
|
|
36
|
-
"@instructure/emotion": "8.46.2-snapshot-
|
|
37
|
-
"@instructure/shared-types": "8.46.2-snapshot-
|
|
38
|
-
"@instructure/ui-dom-utils": "8.46.2-snapshot-
|
|
39
|
-
"@instructure/ui-form-field": "8.46.2-snapshot-
|
|
40
|
-
"@instructure/ui-icons": "8.46.2-snapshot-
|
|
41
|
-
"@instructure/ui-options": "8.46.2-snapshot-
|
|
42
|
-
"@instructure/ui-popover": "8.46.2-snapshot-
|
|
43
|
-
"@instructure/ui-position": "8.46.2-snapshot-
|
|
44
|
-
"@instructure/ui-prop-types": "8.46.2-snapshot-
|
|
45
|
-
"@instructure/ui-react-utils": "8.46.2-snapshot-
|
|
46
|
-
"@instructure/ui-selectable": "8.46.2-snapshot-
|
|
47
|
-
"@instructure/ui-testable": "8.46.2-snapshot-
|
|
48
|
-
"@instructure/ui-text-input": "8.46.2-snapshot-
|
|
49
|
-
"@instructure/ui-utils": "8.46.2-snapshot-
|
|
50
|
-
"@instructure/ui-view": "8.46.2-snapshot-
|
|
51
|
-
"@instructure/uid": "8.46.2-snapshot-
|
|
35
|
+
"@babel/runtime": "^7.23.2",
|
|
36
|
+
"@instructure/emotion": "8.46.2-snapshot-6",
|
|
37
|
+
"@instructure/shared-types": "8.46.2-snapshot-6",
|
|
38
|
+
"@instructure/ui-dom-utils": "8.46.2-snapshot-6",
|
|
39
|
+
"@instructure/ui-form-field": "8.46.2-snapshot-6",
|
|
40
|
+
"@instructure/ui-icons": "8.46.2-snapshot-6",
|
|
41
|
+
"@instructure/ui-options": "8.46.2-snapshot-6",
|
|
42
|
+
"@instructure/ui-popover": "8.46.2-snapshot-6",
|
|
43
|
+
"@instructure/ui-position": "8.46.2-snapshot-6",
|
|
44
|
+
"@instructure/ui-prop-types": "8.46.2-snapshot-6",
|
|
45
|
+
"@instructure/ui-react-utils": "8.46.2-snapshot-6",
|
|
46
|
+
"@instructure/ui-selectable": "8.46.2-snapshot-6",
|
|
47
|
+
"@instructure/ui-testable": "8.46.2-snapshot-6",
|
|
48
|
+
"@instructure/ui-text-input": "8.46.2-snapshot-6",
|
|
49
|
+
"@instructure/ui-utils": "8.46.2-snapshot-6",
|
|
50
|
+
"@instructure/ui-view": "8.46.2-snapshot-6",
|
|
51
|
+
"@instructure/uid": "8.46.2-snapshot-6",
|
|
52
52
|
"prop-types": "^15.8.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import React from 'react'
|
|
25
25
|
import { render } from '@testing-library/react'
|
|
26
|
-
import '@testing-library/jest-dom
|
|
26
|
+
import '@testing-library/jest-dom'
|
|
27
27
|
import Select from '../index'
|
|
28
28
|
import * as utils from '@instructure/ui-utils'
|
|
29
29
|
|