@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 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-4](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.46.2-snapshot-4) (2023-10-18)
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/extend-expect';
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', () => {
@@ -52,5 +52,4 @@ Group.componentId = 'Select.Group';
52
52
  Group.allowedProps = _props.allowedProps;
53
53
  Group.propTypes = _props.propTypes;
54
54
  Group.defaultProps = {};
55
- var _default = Group;
56
- exports.default = _default;
55
+ var _default = exports.default = Group;
@@ -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.propTypes = propTypes;
40
- const allowedProps = ['renderLabel', 'children'];
41
- exports.allowedProps = allowedProps;
39
+ const allowedProps = exports.allowedProps = ['renderLabel', 'children'];
@@ -56,5 +56,4 @@ Option.defaultProps = {
56
56
  isSelected: false,
57
57
  isDisabled: false
58
58
  };
59
- var _default = Option;
60
- exports.default = _default;
59
+ var _default = exports.default = Option;
@@ -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.propTypes = propTypes;
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/extend-expect");
7
+ require("@testing-library/jest-dom");
8
8
  var _index = _interopRequireDefault(require("../index"));
9
9
  var utils = _interopRequireWildcard(require("@instructure/ui-utils"));
10
10
  /*
@@ -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.Select = Select;
580
- var _default = Select;
581
- exports.default = _default;
579
+ var _default = exports.default = Select;
@@ -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;
@@ -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.propTypes = propTypes;
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'];
@@ -66,5 +66,4 @@ const generateStyle = (componentTheme, props) => {
66
66
  }
67
67
  };
68
68
  };
69
- var _default = generateStyle;
70
- exports.default = _default;
69
+ var _default = exports.default = generateStyle;
@@ -50,5 +50,4 @@ const generateComponentTheme = theme => {
50
50
  ...componentVariables
51
51
  };
52
52
  };
53
- var _default = generateComponentTheme;
54
- exports.default = _default;
53
+ var _default = exports.default = generateComponentTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-select",
3
- "version": "8.46.2-snapshot-4",
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-4",
27
- "@instructure/ui-color-utils": "8.46.2-snapshot-4",
28
- "@instructure/ui-test-locator": "8.46.2-snapshot-4",
29
- "@instructure/ui-test-utils": "8.46.2-snapshot-4",
30
- "@instructure/ui-themes": "8.46.2-snapshot-4",
31
- "@testing-library/jest-dom": "^5.17.0",
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.22.15",
36
- "@instructure/emotion": "8.46.2-snapshot-4",
37
- "@instructure/shared-types": "8.46.2-snapshot-4",
38
- "@instructure/ui-dom-utils": "8.46.2-snapshot-4",
39
- "@instructure/ui-form-field": "8.46.2-snapshot-4",
40
- "@instructure/ui-icons": "8.46.2-snapshot-4",
41
- "@instructure/ui-options": "8.46.2-snapshot-4",
42
- "@instructure/ui-popover": "8.46.2-snapshot-4",
43
- "@instructure/ui-position": "8.46.2-snapshot-4",
44
- "@instructure/ui-prop-types": "8.46.2-snapshot-4",
45
- "@instructure/ui-react-utils": "8.46.2-snapshot-4",
46
- "@instructure/ui-selectable": "8.46.2-snapshot-4",
47
- "@instructure/ui-testable": "8.46.2-snapshot-4",
48
- "@instructure/ui-text-input": "8.46.2-snapshot-4",
49
- "@instructure/ui-utils": "8.46.2-snapshot-4",
50
- "@instructure/ui-view": "8.46.2-snapshot-4",
51
- "@instructure/uid": "8.46.2-snapshot-4",
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/extend-expect'
26
+ import '@testing-library/jest-dom'
27
27
  import Select from '../index'
28
28
  import * as utils from '@instructure/ui-utils'
29
29