@instructure/ui-select 9.0.2-snapshot-1 → 9.0.2-snapshot-3

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
- ## [9.0.2-snapshot-1](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.0.2-snapshot-1) (2024-05-22)
6
+ ## [9.0.2-snapshot-3](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.0.2-snapshot-3) (2024-05-28)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-select
9
9
 
@@ -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, _class2, _Options$Separator, _Options$Separator2, _IconArrowOpenUpLine, _IconArrowOpenDownLin;
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 = (_class2 = class Select extends Component {
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
- }, _class2.displayName = "Select", _class2.componentId = 'Select', _class2.allowedProps = allowedProps, _class2.propTypes = propTypes, _class2.defaultProps = {
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
- }, _class2.Option = Option, _class2.Group = Group, _class2)) || _class) || _class) || _class);
566
+ }, _Select.Option = Option, _Select.Group = Group, _Select)) || _class) || _class) || _class);
568
567
  export default Select;
569
568
  export { Select };
@@ -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,
@@ -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, _class2, _Options$Separator, _Options$Separator2, _IconArrowOpenUpLine, _IconArrowOpenDownLin;
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 = (_class2 = class Select extends _react.Component {
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
- }, _class2.displayName = "Select", _class2.componentId = 'Select', _class2.allowedProps = _props.allowedProps, _class2.propTypes = _props.propTypes, _class2.defaultProps = {
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
- }, _class2.Option = _Option.Option, _class2.Group = _Group.Group, _class2)) || _class) || _class) || _class);
578
+ }, _Select.Option = _Option.Option, _Select.Group = _Group.Group, _Select)) || _class) || _class) || _class);
580
579
  var _default = exports.default = Select;
@@ -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-1",
3
+ "version": "9.0.2-snapshot-3",
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-1",
27
- "@instructure/ui-color-utils": "9.0.2-snapshot-1",
28
- "@instructure/ui-test-locator": "9.0.2-snapshot-1",
29
- "@instructure/ui-test-utils": "9.0.2-snapshot-1",
30
- "@instructure/ui-themes": "9.0.2-snapshot-1",
31
- "@testing-library/jest-dom": "^6.1.4",
32
- "@testing-library/react": "^14.1.2"
26
+ "@instructure/ui-babel-preset": "9.0.2-snapshot-3",
27
+ "@instructure/ui-color-utils": "9.0.2-snapshot-3",
28
+ "@instructure/ui-test-locator": "9.0.2-snapshot-3",
29
+ "@instructure/ui-test-utils": "9.0.2-snapshot-3",
30
+ "@instructure/ui-themes": "9.0.2-snapshot-3",
31
+ "@testing-library/jest-dom": "^6.4.5",
32
+ "@testing-library/react": "^15.0.7"
33
33
  },
34
34
  "dependencies": {
35
- "@babel/runtime": "^7.23.2",
36
- "@instructure/emotion": "9.0.2-snapshot-1",
37
- "@instructure/shared-types": "9.0.2-snapshot-1",
38
- "@instructure/ui-dom-utils": "9.0.2-snapshot-1",
39
- "@instructure/ui-form-field": "9.0.2-snapshot-1",
40
- "@instructure/ui-icons": "9.0.2-snapshot-1",
41
- "@instructure/ui-options": "9.0.2-snapshot-1",
42
- "@instructure/ui-popover": "9.0.2-snapshot-1",
43
- "@instructure/ui-position": "9.0.2-snapshot-1",
44
- "@instructure/ui-prop-types": "9.0.2-snapshot-1",
45
- "@instructure/ui-react-utils": "9.0.2-snapshot-1",
46
- "@instructure/ui-selectable": "9.0.2-snapshot-1",
47
- "@instructure/ui-testable": "9.0.2-snapshot-1",
48
- "@instructure/ui-text-input": "9.0.2-snapshot-1",
49
- "@instructure/ui-utils": "9.0.2-snapshot-1",
50
- "@instructure/ui-view": "9.0.2-snapshot-1",
51
- "@instructure/uid": "9.0.2-snapshot-1",
35
+ "@babel/runtime": "^7.24.5",
36
+ "@instructure/emotion": "9.0.2-snapshot-3",
37
+ "@instructure/shared-types": "9.0.2-snapshot-3",
38
+ "@instructure/ui-dom-utils": "9.0.2-snapshot-3",
39
+ "@instructure/ui-form-field": "9.0.2-snapshot-3",
40
+ "@instructure/ui-icons": "9.0.2-snapshot-3",
41
+ "@instructure/ui-options": "9.0.2-snapshot-3",
42
+ "@instructure/ui-popover": "9.0.2-snapshot-3",
43
+ "@instructure/ui-position": "9.0.2-snapshot-3",
44
+ "@instructure/ui-prop-types": "9.0.2-snapshot-3",
45
+ "@instructure/ui-react-utils": "9.0.2-snapshot-3",
46
+ "@instructure/ui-selectable": "9.0.2-snapshot-3",
47
+ "@instructure/ui-testable": "9.0.2-snapshot-3",
48
+ "@instructure/ui-text-input": "9.0.2-snapshot-3",
49
+ "@instructure/ui-utils": "9.0.2-snapshot-3",
50
+ "@instructure/ui-view": "9.0.2-snapshot-3",
51
+ "@instructure/uid": "9.0.2-snapshot-3",
52
52
  "prop-types": "^15.8.1"
53
53
  },
54
54
  "peerDependencies": {