@instructure/ui-select 8.26.3-snapshot-0 → 8.26.4-snapshot-5
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 +11 -2
- package/package.json +23 -23
- package/src/Select/Group/props.ts +3 -2
- package/src/Select/Option/props.ts +3 -4
- package/src/Select/index.tsx +1 -1
- package/src/Select/props.ts +6 -4
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Select/Group/index.d.ts +2 -2
- package/types/Select/Group/props.d.ts +2 -2
- package/types/Select/Group/props.d.ts.map +1 -1
- package/types/Select/Option/props.d.ts +2 -2
- package/types/Select/Option/props.d.ts.map +1 -1
- package/types/Select/index.d.ts +6 -6
- package/types/Select/props.d.ts +4 -3
- package/types/Select/props.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,14 +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.
|
|
6
|
+
## [8.26.4-snapshot-5](https://github.com/instructure/instructure-ui/compare/v8.26.3...v8.26.4-snapshot-5) (2022-07-19)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* support React 18 ([0a2bf0c](https://github.com/instructure/instructure-ui/commit/0a2bf0cdd4d8bcec6e42a7ccf28a787e4a35bc40))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
|
12
15
|
|
|
13
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
|
+
|
|
14
23
|
## [8.26.2](https://github.com/instructure/instructure-ui/compare/v8.26.1...v8.26.2) (2022-07-11)
|
|
15
24
|
|
|
16
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.
|
|
3
|
+
"version": "8.26.4-snapshot-5",
|
|
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.
|
|
27
|
-
"@instructure/ui-color-utils": "8.26.
|
|
28
|
-
"@instructure/ui-test-locator": "8.26.
|
|
29
|
-
"@instructure/ui-test-utils": "8.26.
|
|
30
|
-
"@instructure/ui-themes": "8.26.
|
|
26
|
+
"@instructure/ui-babel-preset": "8.26.4-snapshot-5",
|
|
27
|
+
"@instructure/ui-color-utils": "8.26.4-snapshot-5",
|
|
28
|
+
"@instructure/ui-test-locator": "8.26.4-snapshot-5",
|
|
29
|
+
"@instructure/ui-test-utils": "8.26.4-snapshot-5",
|
|
30
|
+
"@instructure/ui-themes": "8.26.4-snapshot-5"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.13.10",
|
|
34
|
-
"@instructure/emotion": "8.26.
|
|
35
|
-
"@instructure/shared-types": "8.26.
|
|
36
|
-
"@instructure/ui-dom-utils": "8.26.
|
|
37
|
-
"@instructure/ui-form-field": "8.26.
|
|
38
|
-
"@instructure/ui-icons": "8.26.
|
|
39
|
-
"@instructure/ui-options": "8.26.
|
|
40
|
-
"@instructure/ui-popover": "8.26.
|
|
41
|
-
"@instructure/ui-position": "8.26.
|
|
42
|
-
"@instructure/ui-prop-types": "8.26.
|
|
43
|
-
"@instructure/ui-react-utils": "8.26.
|
|
44
|
-
"@instructure/ui-selectable": "8.26.
|
|
45
|
-
"@instructure/ui-testable": "8.26.
|
|
46
|
-
"@instructure/ui-text-input": "8.26.
|
|
47
|
-
"@instructure/ui-utils": "8.26.
|
|
48
|
-
"@instructure/ui-view": "8.26.
|
|
49
|
-
"@instructure/uid": "8.26.
|
|
34
|
+
"@instructure/emotion": "8.26.4-snapshot-5",
|
|
35
|
+
"@instructure/shared-types": "8.26.4-snapshot-5",
|
|
36
|
+
"@instructure/ui-dom-utils": "8.26.4-snapshot-5",
|
|
37
|
+
"@instructure/ui-form-field": "8.26.4-snapshot-5",
|
|
38
|
+
"@instructure/ui-icons": "8.26.4-snapshot-5",
|
|
39
|
+
"@instructure/ui-options": "8.26.4-snapshot-5",
|
|
40
|
+
"@instructure/ui-popover": "8.26.4-snapshot-5",
|
|
41
|
+
"@instructure/ui-position": "8.26.4-snapshot-5",
|
|
42
|
+
"@instructure/ui-prop-types": "8.26.4-snapshot-5",
|
|
43
|
+
"@instructure/ui-react-utils": "8.26.4-snapshot-5",
|
|
44
|
+
"@instructure/ui-selectable": "8.26.4-snapshot-5",
|
|
45
|
+
"@instructure/ui-testable": "8.26.4-snapshot-5",
|
|
46
|
+
"@instructure/ui-text-input": "8.26.4-snapshot-5",
|
|
47
|
+
"@instructure/ui-utils": "8.26.4-snapshot-5",
|
|
48
|
+
"@instructure/ui-view": "8.26.4-snapshot-5",
|
|
49
|
+
"@instructure/uid": "8.26.4-snapshot-5",
|
|
50
50
|
"prop-types": "^15"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"react": ">=16.8 <=
|
|
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:
|
|
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
|
/**
|
package/src/Select/index.tsx
CHANGED
|
@@ -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,
|
package/src/Select/props.ts
CHANGED
|
@@ -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:
|
|
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?:
|
|
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?:
|
|
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>> &
|
|
265
|
+
OtherHTMLAttributes<SelectOwnProps, InputHTMLAttributes<SelectOwnProps>> &
|
|
266
|
+
WithDeterministicIdProps
|
|
265
267
|
|
|
266
268
|
type SelectStyle = ComponentStyle<'select' | 'icon' | 'assistiveText'>
|
|
267
269
|
|