@instructure/ui-select 9.0.2-snapshot-2 → 9.0.2-snapshot-4
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/SelectLocator.js +3 -3
- package/es/Select/index.js +4 -5
- package/es/Select/props.js +3 -0
- package/lib/Select/SelectLocator.js +3 -3
- package/lib/Select/index.js +4 -5
- package/lib/Select/props.js +3 -0
- package/package.json +25 -25
- package/src/Select/SelectLocator.ts +3 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Select/Group/index.d.ts +1 -1
- package/types/Select/Option/index.d.ts +1 -1
- package/types/Select/SelectLocator.d.ts +3571 -86
- package/types/Select/SelectLocator.d.ts.map +1 -1
- package/types/Select/index.d.ts +3 -3
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
|
-
## [9.0.2-snapshot-
|
|
6
|
+
## [9.0.2-snapshot-4](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.0.2-snapshot-4) (2024-06-05)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-select
|
|
9
9
|
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
import { locator } from '@instructure/ui-test-locator';
|
|
25
25
|
|
|
26
26
|
/* eslint-disable no-restricted-imports */
|
|
27
|
-
// @ts-
|
|
27
|
+
// @ts-ignore: Cannot find module
|
|
28
28
|
import { OptionsLocator } from '@instructure/ui-options/es/Options/OptionsLocator';
|
|
29
|
-
// @ts-
|
|
29
|
+
// @ts-ignore: Cannot find module
|
|
30
30
|
import { PopoverLocator } from '@instructure/ui-popover/es/Popover/PopoverLocator';
|
|
31
31
|
/* eslint-enable no-restricted-imports */
|
|
32
32
|
|
|
33
33
|
import { Select } from './index';
|
|
34
34
|
|
|
35
|
-
// @ts-
|
|
35
|
+
// @ts-ignore: property 'selector' does not exist on typeof Select
|
|
36
36
|
export const SelectLocator = locator(Select.selector, {
|
|
37
37
|
findInput: (...args) => locator('input').find(...args),
|
|
38
38
|
findOptionsList: async (element, ...args) => {
|
package/es/Select/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
2
2
|
const _excluded = ["id", "renderLabel", "children"],
|
|
3
3
|
_excluded2 = ["renderLabel", "inputValue", "placeholder", "isRequired", "shouldNotWrap", "size", "isInline", "width", "htmlSize", "messages", "renderBeforeInput", "renderAfterInput", "onFocus", "onBlur", "onInputChange", "onRequestHideOptions"],
|
|
4
4
|
_excluded3 = ["ref"];
|
|
5
|
-
var _dec, _dec2, _dec3, _class,
|
|
5
|
+
var _dec, _dec2, _dec3, _class, _Select, _Options$Separator, _Options$Separator2, _IconArrowOpenUpLine, _IconArrowOpenDownLin;
|
|
6
6
|
/*
|
|
7
7
|
* The MIT License (MIT)
|
|
8
8
|
*
|
|
@@ -74,7 +74,7 @@ category: components
|
|
|
74
74
|
tags: autocomplete, typeahead, combobox, dropdown, search, form
|
|
75
75
|
---
|
|
76
76
|
**/
|
|
77
|
-
let Select = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec3 = testable(), _dec(_class = _dec2(_class = _dec3(_class = (
|
|
77
|
+
let Select = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec3 = testable(), _dec(_class = _dec2(_class = _dec3(_class = (_Select = class Select extends Component {
|
|
78
78
|
constructor(...args) {
|
|
79
79
|
super(...args);
|
|
80
80
|
this.state = {
|
|
@@ -394,7 +394,6 @@ let Select = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, gen
|
|
|
394
394
|
if (!child || !matchComponentTypes(child, [Group, Option])) {
|
|
395
395
|
return; // ignore invalid children
|
|
396
396
|
}
|
|
397
|
-
|
|
398
397
|
if (matchComponentTypes(child, [Option])) {
|
|
399
398
|
lastWasGroup = false;
|
|
400
399
|
return this.renderOption(child, {
|
|
@@ -551,7 +550,7 @@ let Select = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, gen
|
|
|
551
550
|
getDisabledOptionProps
|
|
552
551
|
}))));
|
|
553
552
|
}
|
|
554
|
-
},
|
|
553
|
+
}, _Select.displayName = "Select", _Select.componentId = 'Select', _Select.allowedProps = allowedProps, _Select.propTypes = propTypes, _Select.defaultProps = {
|
|
555
554
|
inputValue: '',
|
|
556
555
|
isShowingOptions: false,
|
|
557
556
|
size: 'medium',
|
|
@@ -564,6 +563,6 @@ let Select = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, gen
|
|
|
564
563
|
constrain: 'window',
|
|
565
564
|
shouldNotWrap: false,
|
|
566
565
|
scrollToHighlightedOption: false
|
|
567
|
-
},
|
|
566
|
+
}, _Select.Option = Option, _Select.Group = Group, _Select)) || _class) || _class) || _class);
|
|
568
567
|
export default Select;
|
|
569
568
|
export { Select };
|
package/es/Select/props.js
CHANGED
|
@@ -31,10 +31,13 @@ import { Option } from './Option';
|
|
|
31
31
|
|
|
32
32
|
// These props are directly passed to Selectable
|
|
33
33
|
// TODO: import these from Selectable once TS types can be imported
|
|
34
|
+
|
|
34
35
|
// These props are directly passed to TextInput
|
|
35
36
|
// TODO: import these from TextInput once TS types can be imported
|
|
37
|
+
|
|
36
38
|
// These props are directly passed to Popover
|
|
37
39
|
// TODO: import these from Popover once TS types can be imported
|
|
40
|
+
|
|
38
41
|
const propTypes = {
|
|
39
42
|
renderLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
|
|
40
43
|
inputValue: PropTypes.string,
|
|
@@ -33,13 +33,13 @@ var _index = require("./index");
|
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
35
|
/* eslint-disable no-restricted-imports */
|
|
36
|
-
// @ts-
|
|
36
|
+
// @ts-ignore: Cannot find module
|
|
37
37
|
|
|
38
|
-
// @ts-
|
|
38
|
+
// @ts-ignore: Cannot find module
|
|
39
39
|
|
|
40
40
|
/* eslint-enable no-restricted-imports */
|
|
41
41
|
|
|
42
|
-
// @ts-
|
|
42
|
+
// @ts-ignore: property 'selector' does not exist on typeof Select
|
|
43
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) => {
|
package/lib/Select/index.js
CHANGED
|
@@ -32,7 +32,7 @@ var _props = require("./props");
|
|
|
32
32
|
const _excluded = ["id", "renderLabel", "children"],
|
|
33
33
|
_excluded2 = ["renderLabel", "inputValue", "placeholder", "isRequired", "shouldNotWrap", "size", "isInline", "width", "htmlSize", "messages", "renderBeforeInput", "renderAfterInput", "onFocus", "onBlur", "onInputChange", "onRequestHideOptions"],
|
|
34
34
|
_excluded3 = ["ref"];
|
|
35
|
-
var _dec, _dec2, _dec3, _class,
|
|
35
|
+
var _dec, _dec2, _dec3, _class, _Select, _Options$Separator, _Options$Separator2, _IconArrowOpenUpLine, _IconArrowOpenDownLin;
|
|
36
36
|
/*
|
|
37
37
|
* The MIT License (MIT)
|
|
38
38
|
*
|
|
@@ -86,7 +86,7 @@ category: components
|
|
|
86
86
|
tags: autocomplete, typeahead, combobox, dropdown, search, form
|
|
87
87
|
---
|
|
88
88
|
**/
|
|
89
|
-
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 = (
|
|
89
|
+
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 = (_Select = class Select extends _react.Component {
|
|
90
90
|
constructor(...args) {
|
|
91
91
|
super(...args);
|
|
92
92
|
this.state = {
|
|
@@ -406,7 +406,6 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
|
|
|
406
406
|
if (!child || !(0, _matchComponentTypes.matchComponentTypes)(child, [_Group.Group, _Option.Option])) {
|
|
407
407
|
return; // ignore invalid children
|
|
408
408
|
}
|
|
409
|
-
|
|
410
409
|
if ((0, _matchComponentTypes.matchComponentTypes)(child, [_Option.Option])) {
|
|
411
410
|
lastWasGroup = false;
|
|
412
411
|
return this.renderOption(child, {
|
|
@@ -563,7 +562,7 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
|
|
|
563
562
|
getDisabledOptionProps
|
|
564
563
|
}))));
|
|
565
564
|
}
|
|
566
|
-
},
|
|
565
|
+
}, _Select.displayName = "Select", _Select.componentId = 'Select', _Select.allowedProps = _props.allowedProps, _Select.propTypes = _props.propTypes, _Select.defaultProps = {
|
|
567
566
|
inputValue: '',
|
|
568
567
|
isShowingOptions: false,
|
|
569
568
|
size: 'medium',
|
|
@@ -576,5 +575,5 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
|
|
|
576
575
|
constrain: 'window',
|
|
577
576
|
shouldNotWrap: false,
|
|
578
577
|
scrollToHighlightedOption: false
|
|
579
|
-
},
|
|
578
|
+
}, _Select.Option = _Option.Option, _Select.Group = _Group.Group, _Select)) || _class) || _class) || _class);
|
|
580
579
|
var _default = exports.default = Select;
|
package/lib/Select/props.js
CHANGED
|
@@ -37,10 +37,13 @@ var _Option = require("./Option");
|
|
|
37
37
|
|
|
38
38
|
// These props are directly passed to Selectable
|
|
39
39
|
// TODO: import these from Selectable once TS types can be imported
|
|
40
|
+
|
|
40
41
|
// These props are directly passed to TextInput
|
|
41
42
|
// TODO: import these from TextInput once TS types can be imported
|
|
43
|
+
|
|
42
44
|
// These props are directly passed to Popover
|
|
43
45
|
// TODO: import these from Popover once TS types can be imported
|
|
46
|
+
|
|
44
47
|
const propTypes = exports.propTypes = {
|
|
45
48
|
renderLabel: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
|
|
46
49
|
inputValue: _propTypes.default.string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-select",
|
|
3
|
-
"version": "9.0.2-snapshot-
|
|
3
|
+
"version": "9.0.2-snapshot-4",
|
|
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": "9.0.2-snapshot-
|
|
27
|
-
"@instructure/ui-color-utils": "9.0.2-snapshot-
|
|
28
|
-
"@instructure/ui-test-locator": "9.0.2-snapshot-
|
|
29
|
-
"@instructure/ui-test-utils": "9.0.2-snapshot-
|
|
30
|
-
"@instructure/ui-themes": "9.0.2-snapshot-
|
|
31
|
-
"@testing-library/jest-dom": "^6.
|
|
32
|
-
"@testing-library/react": "^
|
|
26
|
+
"@instructure/ui-babel-preset": "9.0.2-snapshot-4",
|
|
27
|
+
"@instructure/ui-color-utils": "9.0.2-snapshot-4",
|
|
28
|
+
"@instructure/ui-test-locator": "9.0.2-snapshot-4",
|
|
29
|
+
"@instructure/ui-test-utils": "9.0.2-snapshot-4",
|
|
30
|
+
"@instructure/ui-themes": "9.0.2-snapshot-4",
|
|
31
|
+
"@testing-library/jest-dom": "^6.4.5",
|
|
32
|
+
"@testing-library/react": "^15.0.7"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/runtime": "^7.
|
|
36
|
-
"@instructure/emotion": "9.0.2-snapshot-
|
|
37
|
-
"@instructure/shared-types": "9.0.2-snapshot-
|
|
38
|
-
"@instructure/ui-dom-utils": "9.0.2-snapshot-
|
|
39
|
-
"@instructure/ui-form-field": "9.0.2-snapshot-
|
|
40
|
-
"@instructure/ui-icons": "9.0.2-snapshot-
|
|
41
|
-
"@instructure/ui-options": "9.0.2-snapshot-
|
|
42
|
-
"@instructure/ui-popover": "9.0.2-snapshot-
|
|
43
|
-
"@instructure/ui-position": "9.0.2-snapshot-
|
|
44
|
-
"@instructure/ui-prop-types": "9.0.2-snapshot-
|
|
45
|
-
"@instructure/ui-react-utils": "9.0.2-snapshot-
|
|
46
|
-
"@instructure/ui-selectable": "9.0.2-snapshot-
|
|
47
|
-
"@instructure/ui-testable": "9.0.2-snapshot-
|
|
48
|
-
"@instructure/ui-text-input": "9.0.2-snapshot-
|
|
49
|
-
"@instructure/ui-utils": "9.0.2-snapshot-
|
|
50
|
-
"@instructure/ui-view": "9.0.2-snapshot-
|
|
51
|
-
"@instructure/uid": "9.0.2-snapshot-
|
|
35
|
+
"@babel/runtime": "^7.24.5",
|
|
36
|
+
"@instructure/emotion": "9.0.2-snapshot-4",
|
|
37
|
+
"@instructure/shared-types": "9.0.2-snapshot-4",
|
|
38
|
+
"@instructure/ui-dom-utils": "9.0.2-snapshot-4",
|
|
39
|
+
"@instructure/ui-form-field": "9.0.2-snapshot-4",
|
|
40
|
+
"@instructure/ui-icons": "9.0.2-snapshot-4",
|
|
41
|
+
"@instructure/ui-options": "9.0.2-snapshot-4",
|
|
42
|
+
"@instructure/ui-popover": "9.0.2-snapshot-4",
|
|
43
|
+
"@instructure/ui-position": "9.0.2-snapshot-4",
|
|
44
|
+
"@instructure/ui-prop-types": "9.0.2-snapshot-4",
|
|
45
|
+
"@instructure/ui-react-utils": "9.0.2-snapshot-4",
|
|
46
|
+
"@instructure/ui-selectable": "9.0.2-snapshot-4",
|
|
47
|
+
"@instructure/ui-testable": "9.0.2-snapshot-4",
|
|
48
|
+
"@instructure/ui-text-input": "9.0.2-snapshot-4",
|
|
49
|
+
"@instructure/ui-utils": "9.0.2-snapshot-4",
|
|
50
|
+
"@instructure/ui-view": "9.0.2-snapshot-4",
|
|
51
|
+
"@instructure/uid": "9.0.2-snapshot-4",
|
|
52
52
|
"prop-types": "^15.8.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
import { locator } from '@instructure/ui-test-locator'
|
|
25
25
|
|
|
26
26
|
/* eslint-disable no-restricted-imports */
|
|
27
|
-
// @ts-
|
|
27
|
+
// @ts-ignore: Cannot find module
|
|
28
28
|
import { OptionsLocator } from '@instructure/ui-options/es/Options/OptionsLocator'
|
|
29
|
-
// @ts-
|
|
29
|
+
// @ts-ignore: Cannot find module
|
|
30
30
|
import { PopoverLocator } from '@instructure/ui-popover/es/Popover/PopoverLocator'
|
|
31
31
|
/* eslint-enable no-restricted-imports */
|
|
32
32
|
|
|
33
33
|
import { Select } from './index'
|
|
34
34
|
|
|
35
|
-
// @ts-
|
|
35
|
+
// @ts-ignore: property 'selector' does not exist on typeof Select
|
|
36
36
|
export const SelectLocator = locator(Select.selector, {
|
|
37
37
|
findInput: (...args: any[]) => locator('input').find(...args),
|
|
38
38
|
|