@instructure/ui-simple-select 8.12.1-snapshot.7 → 8.13.0

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,6 +3,13 @@
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.13.0](https://github.com/instructure/instructure-ui/compare/v8.12.0...v8.13.0) (2021-12-01)
7
+
8
+ ### Features
9
+
10
+ - **canvas-theme,ui-theme-tokens,ui-themes:** update canvas theme colors ([a72237d](https://github.com/instructure/instructure-ui/commit/a72237dc213b86aa8f18da2618559ea4c118e1dd))
11
+ - **ui-form-field:** make FormField messages accept `ReactNode` text, not just `string` ([4d36973](https://github.com/instructure/instructure-ui/commit/4d369733414715a70bae0628378e8d82214eab3e))
12
+
6
13
  # [8.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17)
7
14
 
8
15
  **Note:** Version bump only for package @instructure/ui-simple-select
@@ -79,9 +79,8 @@ let SimpleSelect = (_dec = testable(), _dec(_class = (_temp = _class2 = class Si
79
79
  this.props.onHideOptions(event);
80
80
  };
81
81
 
82
- this.handleHighlightOption = (event, {
83
- id
84
- }) => {
82
+ this.handleHighlightOption = (event, _ref) => {
83
+ let id = _ref.id;
85
84
  if (id === this._emptyOptionId) return;
86
85
  const option = this.getOption('id', id);
87
86
  const label = option.props.children;
@@ -92,9 +91,9 @@ let SimpleSelect = (_dec = testable(), _dec(_class = (_temp = _class2 = class Si
92
91
  });
93
92
  };
94
93
 
95
- this.handleSelectOption = (event, {
96
- id
97
- }) => {
94
+ this.handleSelectOption = (event, _ref2) => {
95
+ let id = _ref2.id;
96
+
98
97
  if (id === this._emptyOptionId) {
99
98
  // selected option is the empty option
100
99
  this.setState({
@@ -106,7 +106,7 @@ const propTypes = {
106
106
  * Displays messages and validation for the input. It should be an object
107
107
  * with the following shape:
108
108
  * `{
109
- * text: PropTypes.string,
109
+ * text: PropTypes.node,
110
110
  * type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
111
111
  * }`
112
112
  */
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Group = exports.default = void 0;
6
+ exports.default = exports.Group = void 0;
7
7
 
8
8
  var _react = require("react");
9
9
 
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.allowedProps = exports.propTypes = void 0;
8
+ exports.propTypes = exports.allowedProps = void 0;
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Option = exports.default = void 0;
6
+ exports.default = exports.Option = void 0;
7
7
 
8
8
  var _react = require("react");
9
9
 
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.allowedProps = exports.propTypes = void 0;
8
+ exports.propTypes = exports.allowedProps = void 0;
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
@@ -81,9 +81,8 @@ let SimpleSelect = (_dec = (0, _testable.testable)(), _dec(_class = (_temp = _cl
81
81
  this.props.onHideOptions(event);
82
82
  };
83
83
 
84
- this.handleHighlightOption = (event, {
85
- id
86
- }) => {
84
+ this.handleHighlightOption = (event, _ref) => {
85
+ let id = _ref.id;
87
86
  if (id === this._emptyOptionId) return;
88
87
  const option = this.getOption('id', id);
89
88
  const label = option.props.children;
@@ -94,9 +93,9 @@ let SimpleSelect = (_dec = (0, _testable.testable)(), _dec(_class = (_temp = _cl
94
93
  });
95
94
  };
96
95
 
97
- this.handleSelectOption = (event, {
98
- id
99
- }) => {
96
+ this.handleSelectOption = (event, _ref2) => {
97
+ let id = _ref2.id;
98
+
100
99
  if (id === this._emptyOptionId) {
101
100
  // selected option is the empty option
102
101
  this.setState({
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.allowedProps = exports.propTypes = void 0;
8
+ exports.propTypes = exports.allowedProps = void 0;
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
@@ -121,7 +121,7 @@ const propTypes = {
121
121
  * Displays messages and validation for the input. It should be an object
122
122
  * with the following shape:
123
123
  * `{
124
- * text: PropTypes.string,
124
+ * text: PropTypes.node,
125
125
  * type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
126
126
  * }`
127
127
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-simple-select",
3
- "version": "8.12.1-snapshot.7+1e7ac8219",
3
+ "version": "8.13.0",
4
4
  "description": "A component for standard select element behavior.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,22 +25,22 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/console": "8.12.1-snapshot.7+1e7ac8219",
29
- "@instructure/ui-form-field": "8.12.1-snapshot.7+1e7ac8219",
30
- "@instructure/ui-position": "8.12.1-snapshot.7+1e7ac8219",
31
- "@instructure/ui-prop-types": "8.12.1-snapshot.7+1e7ac8219",
32
- "@instructure/ui-react-utils": "8.12.1-snapshot.7+1e7ac8219",
33
- "@instructure/ui-select": "8.12.1-snapshot.7+1e7ac8219",
34
- "@instructure/ui-testable": "8.12.1-snapshot.7+1e7ac8219",
35
- "@instructure/uid": "8.12.1-snapshot.7+1e7ac8219",
28
+ "@instructure/console": "8.13.0",
29
+ "@instructure/ui-form-field": "8.13.0",
30
+ "@instructure/ui-position": "8.13.0",
31
+ "@instructure/ui-prop-types": "8.13.0",
32
+ "@instructure/ui-react-utils": "8.13.0",
33
+ "@instructure/ui-select": "8.13.0",
34
+ "@instructure/ui-testable": "8.13.0",
35
+ "@instructure/uid": "8.13.0",
36
36
  "prop-types": "^15"
37
37
  },
38
38
  "devDependencies": {
39
- "@instructure/ui-babel-preset": "8.12.1-snapshot.7+1e7ac8219",
40
- "@instructure/ui-color-utils": "8.12.1-snapshot.7+1e7ac8219",
41
- "@instructure/ui-icons": "8.12.1-snapshot.7+1e7ac8219",
42
- "@instructure/ui-test-locator": "8.12.1-snapshot.7+1e7ac8219",
43
- "@instructure/ui-test-utils": "8.12.1-snapshot.7+1e7ac8219"
39
+ "@instructure/ui-babel-preset": "8.13.0",
40
+ "@instructure/ui-color-utils": "8.13.0",
41
+ "@instructure/ui-icons": "8.13.0",
42
+ "@instructure/ui-test-locator": "8.13.0",
43
+ "@instructure/ui-test-utils": "8.13.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=16.8 <=17"
@@ -48,6 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "sideEffects": false,
52
- "gitHead": "1e7ac821932a91fe9ef761c96f747c7ea1f3925a"
51
+ "sideEffects": false
53
52
  }
@@ -150,7 +150,7 @@ const propTypes: PropValidators<PropKeys> = {
150
150
  * Displays messages and validation for the input. It should be an object
151
151
  * with the following shape:
152
152
  * `{
153
- * text: PropTypes.string,
153
+ * text: PropTypes.node,
154
154
  * type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
155
155
  * }`
156
156
  */
@@ -26,7 +26,7 @@ declare class SimpleSelect extends Component<SimpleSelectProps> {
26
26
  width?: string | undefined;
27
27
  optionsMaxWidth?: string | undefined;
28
28
  visibleOptionsCount?: number | undefined;
29
- messages?: import("@instructure/ui-form-field").FormMessage[] | undefined;
29
+ messages?: import("@instructure/ui-form-field/types/FormPropTypes").FormMessage[] | undefined;
30
30
  placement?: import("@instructure/ui-position").PlacementPropValues | undefined;
31
31
  constrain?: import("@instructure/ui-position").PositionConstraint | undefined;
32
32
  mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
@@ -56,7 +56,7 @@ declare class SimpleSelect extends Component<SimpleSelectProps> {
56
56
  width?: string | undefined;
57
57
  optionsMaxWidth?: string | undefined;
58
58
  visibleOptionsCount?: number | undefined;
59
- messages?: import("@instructure/ui-form-field").FormMessage[] | undefined;
59
+ messages?: import("@instructure/ui-form-field/types/FormPropTypes").FormMessage[] | undefined;
60
60
  placement?: import("@instructure/ui-position").PlacementPropValues | undefined;
61
61
  constrain?: import("@instructure/ui-position").PositionConstraint | undefined;
62
62
  mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
package/LICENSE.md DELETED
@@ -1,27 +0,0 @@
1
- ---
2
- title: The MIT License (MIT)
3
- category: Getting Started
4
- order: 9
5
- ---
6
-
7
- # The MIT License (MIT)
8
-
9
- Copyright (c) 2015 Instructure, Inc.
10
-
11
- **Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions.**
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.