@instructure/ui-simple-select 8.46.2-snapshot-5 → 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/SimpleSelect/__new-tests__/SimpleSelect.test.js +1 -1
- package/lib/SimpleSelect/Group/index.js +1 -2
- package/lib/SimpleSelect/Group/props.js +2 -4
- package/lib/SimpleSelect/Option/index.js +1 -2
- package/lib/SimpleSelect/Option/props.js +2 -4
- package/lib/SimpleSelect/SimpleSelectLocator.js +2 -3
- package/lib/SimpleSelect/__examples__/SimpleSelect.examples.js +2 -3
- package/lib/SimpleSelect/__new-tests__/SimpleSelect.test.js +1 -1
- package/lib/SimpleSelect/index.js +2 -4
- package/lib/SimpleSelect/locator.js +1 -2
- package/lib/SimpleSelect/props.js +2 -4
- package/package.json +17 -17
- package/src/SimpleSelect/__new-tests__/SimpleSelect.test.tsx +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/SimpleSelect/__new-tests__/SimpleSelect.test.d.ts +1 -1
- package/types/SimpleSelect/__new-tests__/SimpleSelect.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-simple-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 SimpleSelect 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
|
value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]).isRequired,
|
36
36
|
isDisabled: _propTypes.default.bool,
|
@@ -38,6 +38,4 @@ const propTypes = {
|
|
38
38
|
renderAfterLabel: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
39
39
|
children: _propTypes.default.string
|
40
40
|
};
|
41
|
-
exports.
|
42
|
-
const allowedProps = ['id', 'value', 'isDisabled', 'renderBeforeLabel', 'renderAfterLabel', 'children'];
|
43
|
-
exports.allowedProps = allowedProps;
|
41
|
+
const allowedProps = exports.allowedProps = ['id', 'value', 'isDisabled', 'renderBeforeLabel', 'renderAfterLabel', 'children'];
|
@@ -37,9 +37,8 @@ var _index = require("./index");
|
|
37
37
|
/* eslint-enable no-restricted-imports */
|
38
38
|
|
39
39
|
// @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
40
|
-
const SimpleSelectLocator = (0, _locator.locator)(_index.SimpleSelect.selector, {
|
40
|
+
const SimpleSelectLocator = exports.SimpleSelectLocator = (0, _locator.locator)(_index.SimpleSelect.selector, {
|
41
41
|
findInput: _SelectLocator.SelectLocator.findInput,
|
42
42
|
// TODO these dont work because TS doesnt find its type declarations,
|
43
43
|
findOptionsList: _SelectLocator.SelectLocator.findOptionsList
|
44
|
-
});
|
45
|
-
exports.SimpleSelectLocator = SimpleSelectLocator;
|
44
|
+
});
|
@@ -30,7 +30,7 @@ var _SimpleSelect = require("../../SimpleSelect");
|
|
30
30
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
31
31
|
* SOFTWARE.
|
32
32
|
*/
|
33
|
-
var _default = {
|
33
|
+
var _default = exports.default = {
|
34
34
|
sectionProp: 'size',
|
35
35
|
maxExamplesPerPage: 50,
|
36
36
|
propValues: {
|
@@ -89,5 +89,4 @@ var _default = {
|
|
89
89
|
if (props.isRequired) return true;
|
90
90
|
return false;
|
91
91
|
}
|
92
|
-
};
|
93
|
-
exports.default = _default;
|
92
|
+
};
|
@@ -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
|
/*
|
@@ -52,7 +52,7 @@ tags: form, field, dropdown
|
|
52
52
|
---
|
53
53
|
@tsProps
|
54
54
|
**/
|
55
|
-
let SimpleSelect = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class SimpleSelect extends _react.Component {
|
55
|
+
let SimpleSelect = exports.SimpleSelect = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class SimpleSelect extends _react.Component {
|
56
56
|
constructor(props) {
|
57
57
|
super(props);
|
58
58
|
this.ref = null;
|
@@ -371,6 +371,4 @@ let SimpleSelect = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec
|
|
371
371
|
constrain: 'window',
|
372
372
|
renderEmptyOption: '---'
|
373
373
|
}, _class2)) || _class) || _class);
|
374
|
-
exports.
|
375
|
-
var _default = SimpleSelect;
|
376
|
-
exports.default = _default;
|
374
|
+
var _default = exports.default = SimpleSelect;
|
@@ -34,5 +34,4 @@ var _SimpleSelectLocator = require("./SimpleSelectLocator");
|
|
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 = _SimpleSelectLocator.SimpleSelectLocator;
|
38
|
-
exports.default = _default;
|
37
|
+
var _default = exports.default = _SimpleSelectLocator.SimpleSelectLocator;
|
@@ -35,7 +35,7 @@ var _Option = require("./Option");
|
|
35
35
|
* SOFTWARE.
|
36
36
|
*/
|
37
37
|
|
38
|
-
const propTypes = {
|
38
|
+
const propTypes = exports.propTypes = {
|
39
39
|
renderLabel: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
|
40
40
|
// TODO: it was using the "controllable" util, in the TS migration mimic that behaviour
|
41
41
|
value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
@@ -67,6 +67,4 @@ const propTypes = {
|
|
67
67
|
renderAfterInput: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
68
68
|
children: _Children.Children.oneOf([_Group.Group, _Option.Option])
|
69
69
|
};
|
70
|
-
exports.
|
71
|
-
const allowedProps = ['renderLabel', 'value', 'defaultValue', 'id', 'size', 'assistiveText', 'placeholder', 'interaction', 'isRequired', 'isInline', 'width', 'visibleOptionsCount', 'optionsMaxHeight', 'optionsMaxWidth', 'messages', 'placement', 'constrain', 'mountNode', 'onChange', 'onFocus', 'onBlur', 'onShowOptions', 'onHideOptions', 'inputRef', 'listRef', 'renderEmptyOption', 'renderBeforeInput', 'renderAfterInput', 'children'];
|
72
|
-
exports.allowedProps = allowedProps;
|
70
|
+
const allowedProps = exports.allowedProps = ['renderLabel', 'value', 'defaultValue', 'id', 'size', 'assistiveText', 'placeholder', 'interaction', 'isRequired', 'isInline', 'width', 'visibleOptionsCount', 'optionsMaxHeight', 'optionsMaxWidth', 'messages', 'placement', 'constrain', 'mountNode', 'onChange', 'onFocus', 'onBlur', 'onShowOptions', 'onHideOptions', 'inputRef', 'listRef', 'renderEmptyOption', 'renderBeforeInput', 'renderAfterInput', 'children'];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@instructure/ui-simple-select",
|
3
|
-
"version": "8.46.2-snapshot-
|
3
|
+
"version": "8.46.2-snapshot-6",
|
4
4
|
"description": "A component for standard select element behavior.",
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
6
6
|
"module": "./es/index.js",
|
@@ -23,25 +23,25 @@
|
|
23
23
|
},
|
24
24
|
"license": "MIT",
|
25
25
|
"dependencies": {
|
26
|
-
"@babel/runtime": "^7.
|
27
|
-
"@instructure/console": "8.46.2-snapshot-
|
28
|
-
"@instructure/shared-types": "8.46.2-snapshot-
|
29
|
-
"@instructure/ui-form-field": "8.46.2-snapshot-
|
30
|
-
"@instructure/ui-position": "8.46.2-snapshot-
|
31
|
-
"@instructure/ui-prop-types": "8.46.2-snapshot-
|
32
|
-
"@instructure/ui-react-utils": "8.46.2-snapshot-
|
33
|
-
"@instructure/ui-select": "8.46.2-snapshot-
|
34
|
-
"@instructure/ui-testable": "8.46.2-snapshot-
|
26
|
+
"@babel/runtime": "^7.23.2",
|
27
|
+
"@instructure/console": "8.46.2-snapshot-6",
|
28
|
+
"@instructure/shared-types": "8.46.2-snapshot-6",
|
29
|
+
"@instructure/ui-form-field": "8.46.2-snapshot-6",
|
30
|
+
"@instructure/ui-position": "8.46.2-snapshot-6",
|
31
|
+
"@instructure/ui-prop-types": "8.46.2-snapshot-6",
|
32
|
+
"@instructure/ui-react-utils": "8.46.2-snapshot-6",
|
33
|
+
"@instructure/ui-select": "8.46.2-snapshot-6",
|
34
|
+
"@instructure/ui-testable": "8.46.2-snapshot-6",
|
35
35
|
"prop-types": "^15.8.1"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
|
-
"@instructure/ui-babel-preset": "8.46.2-snapshot-
|
39
|
-
"@instructure/ui-color-utils": "8.46.2-snapshot-
|
40
|
-
"@instructure/ui-icons": "8.46.2-snapshot-
|
41
|
-
"@instructure/ui-test-locator": "8.46.2-snapshot-
|
42
|
-
"@instructure/ui-test-utils": "8.46.2-snapshot-
|
43
|
-
"@instructure/ui-utils": "8.46.2-snapshot-
|
44
|
-
"@testing-library/jest-dom": "^
|
38
|
+
"@instructure/ui-babel-preset": "8.46.2-snapshot-6",
|
39
|
+
"@instructure/ui-color-utils": "8.46.2-snapshot-6",
|
40
|
+
"@instructure/ui-icons": "8.46.2-snapshot-6",
|
41
|
+
"@instructure/ui-test-locator": "8.46.2-snapshot-6",
|
42
|
+
"@instructure/ui-test-utils": "8.46.2-snapshot-6",
|
43
|
+
"@instructure/ui-utils": "8.46.2-snapshot-6",
|
44
|
+
"@testing-library/jest-dom": "^6.1.4",
|
45
45
|
"@testing-library/react": "^14.0.0"
|
46
46
|
},
|
47
47
|
"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 SimpleSelect from '../index'
|
28
28
|
import * as utils from '@instructure/ui-utils'
|
29
29
|
|