@instructure/ui-select 8.36.1-snapshot-8 → 8.36.1-snapshot-18

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.36.1-snapshot-8](https://github.com/instructure/instructure-ui/compare/v8.36.0...v8.36.1-snapshot-8) (2023-04-14)
6
+ ## [8.36.1-snapshot-18](https://github.com/instructure/instructure-ui/compare/v8.36.0...v8.36.1-snapshot-18) (2023-04-17)
7
7
 
8
8
 
9
9
  ### Performance Improvements
@@ -123,6 +123,11 @@ let Select = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, gen
123
123
  // scroll option into view if needed
124
124
  requestAnimationFrame(() => this.scrollToOption(this.highlightedOptionId));
125
125
  }
126
+
127
+ // temporarily stores actionable options
128
+
129
+ // best guess for first calculation of list height
130
+
126
131
  focus() {
127
132
  this._input && this._input.focus();
128
133
  }
@@ -28,6 +28,13 @@ import { FormPropTypes } from '@instructure/ui-form-field';
28
28
  import { PositionPropTypes } from '@instructure/ui-position';
29
29
  import { Group } from './Group';
30
30
  import { Option } from './Option';
31
+
32
+ // These props are directly passed to Selectable
33
+ // TODO: import these from Selectable once TS types can be imported
34
+ // These props are directly passed to TextInput
35
+ // TODO: import these from TextInput once TS types can be imported
36
+ // These props are directly passed to Popover
37
+ // TODO: import these from Popover once TS types can be imported
31
38
  const propTypes = {
32
39
  renderLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
33
40
  inputValue: PropTypes.string,
@@ -33,6 +33,30 @@ 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
35
  var _dec, _dec2, _dec3, _class, _class2, _Options$Separator, _Options$Separator2, _IconArrowOpenUpLine, _IconArrowOpenDownLin;
36
+ /*
37
+ * The MIT License (MIT)
38
+ *
39
+ * Copyright (c) 2015 - present Instructure, Inc.
40
+ *
41
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
42
+ * of this software and associated documentation files (the "Software"), to deal
43
+ * in the Software without restriction, including without limitation the rights
44
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
45
+ * copies of the Software, and to permit persons to whom the Software is
46
+ * furnished to do so, subject to the following conditions:
47
+ *
48
+ * The above copyright notice and this permission notice shall be included in all
49
+ * copies or substantial portions of the Software.
50
+ *
51
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
52
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
53
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
54
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
55
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
56
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
57
+ * SOFTWARE.
58
+ */
59
+ /** @jsx jsx */
36
60
  // This memoed Option component is used to prevent unnecessary re-renders of
37
61
  // Options.Item when the Select component is re-rendered. This is necessary
38
62
  // because the Select component is re-rendered on every prop change of the <Select.Option>
@@ -111,6 +135,11 @@ let Select = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0
111
135
  // scroll option into view if needed
112
136
  requestAnimationFrame(() => this.scrollToOption(this.highlightedOptionId));
113
137
  }
138
+
139
+ // temporarily stores actionable options
140
+
141
+ // best guess for first calculation of list height
142
+
114
143
  focus() {
115
144
  this._input && this._input.focus();
116
145
  }
@@ -35,6 +35,12 @@ var _Option = require("./Option");
35
35
  * SOFTWARE.
36
36
  */
37
37
 
38
+ // These props are directly passed to Selectable
39
+ // TODO: import these from Selectable once TS types can be imported
40
+ // These props are directly passed to TextInput
41
+ // TODO: import these from TextInput once TS types can be imported
42
+ // These props are directly passed to Popover
43
+ // TODO: import these from Popover once TS types can be imported
38
44
  const propTypes = {
39
45
  renderLabel: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
40
46
  inputValue: _propTypes.default.string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-select",
3
- "version": "8.36.1-snapshot-8",
3
+ "version": "8.36.1-snapshot-18",
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,30 +23,30 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.36.1-snapshot-8",
27
- "@instructure/ui-color-utils": "8.36.1-snapshot-8",
28
- "@instructure/ui-test-locator": "8.36.1-snapshot-8",
29
- "@instructure/ui-test-utils": "8.36.1-snapshot-8",
30
- "@instructure/ui-themes": "8.36.1-snapshot-8"
26
+ "@instructure/ui-babel-preset": "8.36.1-snapshot-18",
27
+ "@instructure/ui-color-utils": "8.36.1-snapshot-18",
28
+ "@instructure/ui-test-locator": "8.36.1-snapshot-18",
29
+ "@instructure/ui-test-utils": "8.36.1-snapshot-18",
30
+ "@instructure/ui-themes": "8.36.1-snapshot-18"
31
31
  },
32
32
  "dependencies": {
33
- "@babel/runtime": "^7.20.13",
34
- "@instructure/emotion": "8.36.1-snapshot-8",
35
- "@instructure/shared-types": "8.36.1-snapshot-8",
36
- "@instructure/ui-dom-utils": "8.36.1-snapshot-8",
37
- "@instructure/ui-form-field": "8.36.1-snapshot-8",
38
- "@instructure/ui-icons": "8.36.1-snapshot-8",
39
- "@instructure/ui-options": "8.36.1-snapshot-8",
40
- "@instructure/ui-popover": "8.36.1-snapshot-8",
41
- "@instructure/ui-position": "8.36.1-snapshot-8",
42
- "@instructure/ui-prop-types": "8.36.1-snapshot-8",
43
- "@instructure/ui-react-utils": "8.36.1-snapshot-8",
44
- "@instructure/ui-selectable": "8.36.1-snapshot-8",
45
- "@instructure/ui-testable": "8.36.1-snapshot-8",
46
- "@instructure/ui-text-input": "8.36.1-snapshot-8",
47
- "@instructure/ui-utils": "8.36.1-snapshot-8",
48
- "@instructure/ui-view": "8.36.1-snapshot-8",
49
- "@instructure/uid": "8.36.1-snapshot-8",
33
+ "@babel/runtime": "^7.21.0",
34
+ "@instructure/emotion": "8.36.1-snapshot-18",
35
+ "@instructure/shared-types": "8.36.1-snapshot-18",
36
+ "@instructure/ui-dom-utils": "8.36.1-snapshot-18",
37
+ "@instructure/ui-form-field": "8.36.1-snapshot-18",
38
+ "@instructure/ui-icons": "8.36.1-snapshot-18",
39
+ "@instructure/ui-options": "8.36.1-snapshot-18",
40
+ "@instructure/ui-popover": "8.36.1-snapshot-18",
41
+ "@instructure/ui-position": "8.36.1-snapshot-18",
42
+ "@instructure/ui-prop-types": "8.36.1-snapshot-18",
43
+ "@instructure/ui-react-utils": "8.36.1-snapshot-18",
44
+ "@instructure/ui-selectable": "8.36.1-snapshot-18",
45
+ "@instructure/ui-testable": "8.36.1-snapshot-18",
46
+ "@instructure/ui-text-input": "8.36.1-snapshot-18",
47
+ "@instructure/ui-utils": "8.36.1-snapshot-18",
48
+ "@instructure/ui-view": "8.36.1-snapshot-18",
49
+ "@instructure/uid": "8.36.1-snapshot-18",
50
50
  "prop-types": "^15.8.1"
51
51
  },
52
52
  "peerDependencies": {