@instructure/ui-select 8.26.2 → 8.26.4-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,6 +3,23 @@
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.26.4-snapshot-3](https://github.com/instructure/instructure-ui/compare/v8.26.3...v8.26.4-snapshot-3) (2022-07-18)
7
+
8
+
9
+ ### Features
10
+
11
+ * support React 18 ([0a2bf0c](https://github.com/instructure/instructure-ui/commit/0a2bf0cdd4d8bcec6e42a7ccf28a787e4a35bc40))
12
+
13
+
14
+
15
+
16
+
17
+ ## [8.26.3](https://github.com/instructure/instructure-ui/compare/v8.26.2...v8.26.3) (2022-07-14)
18
+
19
+ ### Bug Fixes
20
+
21
+ - **ui-color-picker,ui-date-input,ui-date-time-input,ui-select,ui-simple-select,ui-text-input,ui-time-select:** before/after elements should inherit input color ([7daf257](https://github.com/instructure/instructure-ui/commit/7daf257a8ee491f84de2f00a56becd22636891e3))
22
+
6
23
  ## [8.26.2](https://github.com/instructure/instructure-ui/compare/v8.26.1...v8.26.2) (2022-07-11)
7
24
 
8
25
  **Note:** Version bump only for package @instructure/ui-select
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-select",
3
- "version": "8.26.2",
3
+ "version": "8.26.4-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,34 +23,34 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.26.2",
27
- "@instructure/ui-color-utils": "8.26.2",
28
- "@instructure/ui-test-locator": "8.26.2",
29
- "@instructure/ui-test-utils": "8.26.2",
30
- "@instructure/ui-themes": "8.26.2"
26
+ "@instructure/ui-babel-preset": "8.26.4-snapshot-3",
27
+ "@instructure/ui-color-utils": "8.26.4-snapshot-3",
28
+ "@instructure/ui-test-locator": "8.26.4-snapshot-3",
29
+ "@instructure/ui-test-utils": "8.26.4-snapshot-3",
30
+ "@instructure/ui-themes": "8.26.4-snapshot-3"
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.13.10",
34
- "@instructure/emotion": "8.26.2",
35
- "@instructure/shared-types": "8.26.2",
36
- "@instructure/ui-dom-utils": "8.26.2",
37
- "@instructure/ui-form-field": "8.26.2",
38
- "@instructure/ui-icons": "8.26.2",
39
- "@instructure/ui-options": "8.26.2",
40
- "@instructure/ui-popover": "8.26.2",
41
- "@instructure/ui-position": "8.26.2",
42
- "@instructure/ui-prop-types": "8.26.2",
43
- "@instructure/ui-react-utils": "8.26.2",
44
- "@instructure/ui-selectable": "8.26.2",
45
- "@instructure/ui-testable": "8.26.2",
46
- "@instructure/ui-text-input": "8.26.2",
47
- "@instructure/ui-utils": "8.26.2",
48
- "@instructure/ui-view": "8.26.2",
49
- "@instructure/uid": "8.26.2",
34
+ "@instructure/emotion": "8.26.4-snapshot-3",
35
+ "@instructure/shared-types": "8.26.4-snapshot-3",
36
+ "@instructure/ui-dom-utils": "8.26.4-snapshot-3",
37
+ "@instructure/ui-form-field": "8.26.4-snapshot-3",
38
+ "@instructure/ui-icons": "8.26.4-snapshot-3",
39
+ "@instructure/ui-options": "8.26.4-snapshot-3",
40
+ "@instructure/ui-popover": "8.26.4-snapshot-3",
41
+ "@instructure/ui-position": "8.26.4-snapshot-3",
42
+ "@instructure/ui-prop-types": "8.26.4-snapshot-3",
43
+ "@instructure/ui-react-utils": "8.26.4-snapshot-3",
44
+ "@instructure/ui-selectable": "8.26.4-snapshot-3",
45
+ "@instructure/ui-testable": "8.26.4-snapshot-3",
46
+ "@instructure/ui-text-input": "8.26.4-snapshot-3",
47
+ "@instructure/ui-utils": "8.26.4-snapshot-3",
48
+ "@instructure/ui-view": "8.26.4-snapshot-3",
49
+ "@instructure/uid": "8.26.4-snapshot-3",
50
50
  "prop-types": "^15"
51
51
  },
52
52
  "peerDependencies": {
53
- "react": ">=16.8 <=17"
53
+ "react": ">=16.8 <=18"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"
@@ -29,14 +29,15 @@ import { Option } from '../Option'
29
29
 
30
30
  import type {
31
31
  OtherHTMLAttributes,
32
- PropValidators
32
+ PropValidators,
33
+ Renderable
33
34
  } from '@instructure/shared-types'
34
35
 
35
36
  type SelectGroupOwnProps = {
36
37
  /**
37
38
  * The label associated with the group options.
38
39
  */
39
- renderLabel: React.ReactNode | (() => React.ReactNode)
40
+ renderLabel: Renderable
40
41
  /**
41
42
  * Children of type `<SimpleSelect.Option />` that will be considered part of the group.
42
43
  */
@@ -27,7 +27,8 @@ import PropTypes from 'prop-types'
27
27
 
28
28
  import type {
29
29
  OtherHTMLAttributes,
30
- PropValidators
30
+ PropValidators,
31
+ Renderable
31
32
  } from '@instructure/shared-types'
32
33
 
33
34
  type OptionProps = {
@@ -53,9 +54,7 @@ type OptionProps = {
53
54
  children?: React.ReactNode
54
55
  }
55
56
 
56
- type RenderSelectOptionLabel =
57
- | React.ReactNode
58
- | ((args: OptionProps) => React.ReactNode)
57
+ type RenderSelectOptionLabel = Renderable<OptionProps>
59
58
 
60
59
  type SelectOptionOwnProps = OptionProps & {
61
60
  /**
@@ -352,7 +352,7 @@ class Select extends Component<SelectProps> {
352
352
  | ((_args: OptionsItemRenderProps) => React.ReactNode) => {
353
353
  return typeof renderOptionLabel === 'function' &&
354
354
  !renderOptionLabel?.prototype?.isReactComponent
355
- ? renderOptionLabel.bind(null, {
355
+ ? (renderOptionLabel as any).bind(null, {
356
356
  id,
357
357
  isDisabled,
358
358
  isSelected,
@@ -45,6 +45,7 @@ import type {
45
45
  PositionMountNode
46
46
  } from '@instructure/ui-position'
47
47
  import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
48
+ import { Renderable } from '@instructure/shared-types'
48
49
 
49
50
  type SelectOwnProps = {
50
51
  /**
@@ -158,7 +159,7 @@ type PropsFromTextInput = {
158
159
  /**
159
160
  * The form field label.
160
161
  */
161
- renderLabel: React.ReactNode | (() => React.ReactNode)
162
+ renderLabel: Renderable
162
163
 
163
164
  /**
164
165
  * The size of the text input.
@@ -220,13 +221,13 @@ type PropsFromTextInput = {
220
221
  * Content to display before the text input. This will commonly be an icon or
221
222
  * tags to show multiple selections.
222
223
  */
223
- renderBeforeInput?: React.ReactNode | (() => React.ReactNode)
224
+ renderBeforeInput?: Renderable
224
225
 
225
226
  /**
226
227
  * Content to display after the text input. This content will replace the
227
228
  * default arrow icons.
228
229
  */
229
- renderAfterInput?: React.ReactNode | (() => React.ReactNode)
230
+ renderAfterInput?: Renderable
230
231
 
231
232
  /**
232
233
  * Prevents the default behavior of wrapping the input and rendered content
@@ -261,7 +262,8 @@ type AllowedPropKeys = Readonly<Array<PropKeys>>
261
262
 
262
263
  type SelectProps = SelectOwnProps &
263
264
  WithStyleProps<SelectTheme, SelectStyle> &
264
- OtherHTMLAttributes<SelectOwnProps, InputHTMLAttributes<SelectOwnProps>> & WithDeterministicIdProps
265
+ OtherHTMLAttributes<SelectOwnProps, InputHTMLAttributes<SelectOwnProps>> &
266
+ WithDeterministicIdProps
265
267
 
266
268
  type SelectStyle = ComponentStyle<'select' | 'icon' | 'assistiveText'>
267
269