@instructure/ui-select 10.16.4-snapshot-6 → 10.16.4
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 +1 -1
- package/package.json +23 -23
- package/src/Select/README.md +42 -42
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
|
-
## [10.16.4
|
|
6
|
+
## [10.16.4](https://github.com/instructure/instructure-ui/compare/v10.16.3...v10.16.4) (2025-05-09)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-select
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-select",
|
|
3
|
-
"version": "10.16.4
|
|
3
|
+
"version": "10.16.4",
|
|
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,12 +23,12 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-axe-check": "10.16.4
|
|
27
|
-
"@instructure/ui-babel-preset": "10.16.4
|
|
28
|
-
"@instructure/ui-color-utils": "10.16.4
|
|
29
|
-
"@instructure/ui-scripts": "10.16.4
|
|
30
|
-
"@instructure/ui-test-utils": "10.16.4
|
|
31
|
-
"@instructure/ui-themes": "10.16.4
|
|
26
|
+
"@instructure/ui-axe-check": "10.16.4",
|
|
27
|
+
"@instructure/ui-babel-preset": "10.16.4",
|
|
28
|
+
"@instructure/ui-color-utils": "10.16.4",
|
|
29
|
+
"@instructure/ui-scripts": "10.16.4",
|
|
30
|
+
"@instructure/ui-test-utils": "10.16.4",
|
|
31
|
+
"@instructure/ui-themes": "10.16.4",
|
|
32
32
|
"@testing-library/jest-dom": "^6.6.3",
|
|
33
33
|
"@testing-library/react": "^16.0.1",
|
|
34
34
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@babel/runtime": "^7.26.0",
|
|
39
|
-
"@instructure/emotion": "10.16.4
|
|
40
|
-
"@instructure/shared-types": "10.16.4
|
|
41
|
-
"@instructure/ui-dom-utils": "10.16.4
|
|
42
|
-
"@instructure/ui-form-field": "10.16.4
|
|
43
|
-
"@instructure/ui-icons": "10.16.4
|
|
44
|
-
"@instructure/ui-options": "10.16.4
|
|
45
|
-
"@instructure/ui-popover": "10.16.4
|
|
46
|
-
"@instructure/ui-position": "10.16.4
|
|
47
|
-
"@instructure/ui-prop-types": "10.16.4
|
|
48
|
-
"@instructure/ui-react-utils": "10.16.4
|
|
49
|
-
"@instructure/ui-selectable": "10.16.4
|
|
50
|
-
"@instructure/ui-testable": "10.16.4
|
|
51
|
-
"@instructure/ui-text-input": "10.16.4
|
|
52
|
-
"@instructure/ui-utils": "10.16.4
|
|
53
|
-
"@instructure/ui-view": "10.16.4
|
|
54
|
-
"@instructure/uid": "10.16.4
|
|
39
|
+
"@instructure/emotion": "10.16.4",
|
|
40
|
+
"@instructure/shared-types": "10.16.4",
|
|
41
|
+
"@instructure/ui-dom-utils": "10.16.4",
|
|
42
|
+
"@instructure/ui-form-field": "10.16.4",
|
|
43
|
+
"@instructure/ui-icons": "10.16.4",
|
|
44
|
+
"@instructure/ui-options": "10.16.4",
|
|
45
|
+
"@instructure/ui-popover": "10.16.4",
|
|
46
|
+
"@instructure/ui-position": "10.16.4",
|
|
47
|
+
"@instructure/ui-prop-types": "10.16.4",
|
|
48
|
+
"@instructure/ui-react-utils": "10.16.4",
|
|
49
|
+
"@instructure/ui-selectable": "10.16.4",
|
|
50
|
+
"@instructure/ui-testable": "10.16.4",
|
|
51
|
+
"@instructure/ui-text-input": "10.16.4",
|
|
52
|
+
"@instructure/ui-utils": "10.16.4",
|
|
53
|
+
"@instructure/ui-view": "10.16.4",
|
|
54
|
+
"@instructure/uid": "10.16.4",
|
|
55
55
|
"prop-types": "^15.8.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
package/src/Select/README.md
CHANGED
|
@@ -29,8 +29,8 @@ describes: Select
|
|
|
29
29
|
inputElement = null
|
|
30
30
|
|
|
31
31
|
focusInput = () => {
|
|
32
|
-
this.inputElement.blur()
|
|
33
32
|
if (this.inputElement) {
|
|
33
|
+
this.inputElement.blur()
|
|
34
34
|
this.inputElement.focus()
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -170,12 +170,12 @@ describes: Select
|
|
|
170
170
|
const [highlightedOptionId, setHighlightedOptionId] = useState(null)
|
|
171
171
|
const [selectedOptionId, setSelectedOptionId] = useState(options[0].id)
|
|
172
172
|
const [announcement, setAnnouncement] = useState(null)
|
|
173
|
-
const
|
|
173
|
+
const inputRef = useRef()
|
|
174
174
|
|
|
175
175
|
const focusInput = () => {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
if (inputRef.current) {
|
|
177
|
+
inputRef.current.blur()
|
|
178
|
+
inputRef.current.focus()
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
|
|
@@ -233,7 +233,7 @@ describes: Select
|
|
|
233
233
|
onRequestHighlightOption={handleHighlightOption}
|
|
234
234
|
onRequestSelectOption={handleSelectOption}
|
|
235
235
|
inputRef={(el) => {
|
|
236
|
-
|
|
236
|
+
inputRef.current = el
|
|
237
237
|
}}
|
|
238
238
|
>
|
|
239
239
|
{options.map((option) => {
|
|
@@ -330,8 +330,8 @@ It's best practice to always provide autocomplete functionality to help users ma
|
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
focusInput = () => {
|
|
333
|
-
this.inputElement.blur()
|
|
334
333
|
if (this.inputElement) {
|
|
334
|
+
this.inputElement.blur()
|
|
335
335
|
this.inputElement.focus()
|
|
336
336
|
}
|
|
337
337
|
}
|
|
@@ -535,12 +535,12 @@ It's best practice to always provide autocomplete functionality to help users ma
|
|
|
535
535
|
const [selectedOptionId, setSelectedOptionId] = useState(null)
|
|
536
536
|
const [filteredOptions, setFilteredOptions] = useState(options)
|
|
537
537
|
const [announcement, setAnnouncement] = useState(null)
|
|
538
|
-
const
|
|
538
|
+
const inputRef = useRef()
|
|
539
539
|
|
|
540
540
|
const focusInput = () => {
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
541
|
+
if (inputRef.current) {
|
|
542
|
+
inputRef.current.blur()
|
|
543
|
+
inputRef.current.focus()
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
|
|
@@ -666,7 +666,7 @@ It's best practice to always provide autocomplete functionality to help users ma
|
|
|
666
666
|
renderBeforeInput={<IconUserSolid inline={false} />}
|
|
667
667
|
renderAfterInput={<IconSearchLine inline={false} />}
|
|
668
668
|
inputRef={(el) => {
|
|
669
|
-
|
|
669
|
+
inputRef.current = el
|
|
670
670
|
}}
|
|
671
671
|
>
|
|
672
672
|
{filteredOptions.length > 0 ? (
|
|
@@ -748,8 +748,8 @@ To mark an option as "highlighted", use the option's `isHighlighted` prop. Note
|
|
|
748
748
|
inputRef = null
|
|
749
749
|
|
|
750
750
|
focusInput = () => {
|
|
751
|
-
this.inputRef.blur()
|
|
752
751
|
if (this.inputRef) {
|
|
752
|
+
this.inputRef.blur()
|
|
753
753
|
this.inputRef.focus()
|
|
754
754
|
}
|
|
755
755
|
}
|
|
@@ -1014,12 +1014,12 @@ To mark an option as "highlighted", use the option's `isHighlighted` prop. Note
|
|
|
1014
1014
|
const [selectedOptionId, setSelectedOptionId] = useState(['opt1', 'opt6'])
|
|
1015
1015
|
const [filteredOptions, setFilteredOptions] = useState(options)
|
|
1016
1016
|
const [announcement, setAnnouncement] = useState(null)
|
|
1017
|
-
const
|
|
1017
|
+
const inputRef = useRef()
|
|
1018
1018
|
|
|
1019
1019
|
const focusInput = () => {
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1020
|
+
if (inputRef.current) {
|
|
1021
|
+
inputRef.current.blur()
|
|
1022
|
+
inputRef.current.focus()
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
@@ -1166,7 +1166,7 @@ To mark an option as "highlighted", use the option's `isHighlighted` prop. Note
|
|
|
1166
1166
|
inputValue={inputValue}
|
|
1167
1167
|
isShowingOptions={isShowingOptions}
|
|
1168
1168
|
inputRef={(el) => {
|
|
1169
|
-
|
|
1169
|
+
inputRef.current = el
|
|
1170
1170
|
}}
|
|
1171
1171
|
onBlur={handleBlur}
|
|
1172
1172
|
onInputChange={handleInputChange}
|
|
@@ -1251,8 +1251,8 @@ In addition to `<Select.Option />` Select also accepts `<Select.Group />` as chi
|
|
|
1251
1251
|
inputElement = null
|
|
1252
1252
|
|
|
1253
1253
|
focusInput = () => {
|
|
1254
|
-
this.inputElement.blur()
|
|
1255
1254
|
if (this.inputElement) {
|
|
1255
|
+
this.inputElement.blur()
|
|
1256
1256
|
this.inputElement.focus()
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
@@ -1449,12 +1449,12 @@ In addition to `<Select.Option />` Select also accepts `<Select.Group />` as chi
|
|
|
1449
1449
|
options['Western'][0].id
|
|
1450
1450
|
)
|
|
1451
1451
|
const [announcement, setAnnouncement] = useState(null)
|
|
1452
|
-
const
|
|
1452
|
+
const inputRef = useRef()
|
|
1453
1453
|
|
|
1454
1454
|
const focusInput = () => {
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1455
|
+
if (inputRef.current) {
|
|
1456
|
+
inputRef.current.blur()
|
|
1457
|
+
inputRef.current.focus()
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
1460
|
|
|
@@ -1576,7 +1576,7 @@ In addition to `<Select.Option />` Select also accepts `<Select.Group />` as chi
|
|
|
1576
1576
|
/>
|
|
1577
1577
|
}
|
|
1578
1578
|
inputRef={(el) => {
|
|
1579
|
-
|
|
1579
|
+
inputRef.current = el
|
|
1580
1580
|
}}
|
|
1581
1581
|
>
|
|
1582
1582
|
{renderGroup()}
|
|
@@ -1632,8 +1632,8 @@ Due to a WebKit bug if you are using `Select.Group` with autocomplete, the scree
|
|
|
1632
1632
|
inputElement = null
|
|
1633
1633
|
|
|
1634
1634
|
focusInput = () => {
|
|
1635
|
-
this.inputElement.blur()
|
|
1636
1635
|
if (this.inputElement) {
|
|
1636
|
+
this.inputElement.blur()
|
|
1637
1637
|
this.inputElement.focus()
|
|
1638
1638
|
}
|
|
1639
1639
|
}
|
|
@@ -1817,12 +1817,12 @@ Due to a WebKit bug if you are using `Select.Group` with autocomplete, the scree
|
|
|
1817
1817
|
const [selectedOptionId, setSelectedOptionId] = useState(null)
|
|
1818
1818
|
const [filteredOptions, setFilteredOptions] = useState(options)
|
|
1819
1819
|
const [announcement, setAnnouncement] = useState(null)
|
|
1820
|
-
const
|
|
1820
|
+
const inputRef = useRef()
|
|
1821
1821
|
|
|
1822
1822
|
const focusInput = () => {
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1823
|
+
if (inputRef.current) {
|
|
1824
|
+
inputRef.current.blur()
|
|
1825
|
+
inputRef.current.focus()
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
1828
|
|
|
@@ -1935,7 +1935,7 @@ Due to a WebKit bug if you are using `Select.Group` with autocomplete, the scree
|
|
|
1935
1935
|
onRequestHighlightOption={handleHighlightOption}
|
|
1936
1936
|
onRequestSelectOption={handleSelectOption}
|
|
1937
1937
|
inputRef={(el) => {
|
|
1938
|
-
|
|
1938
|
+
inputRef.current = el
|
|
1939
1939
|
}}
|
|
1940
1940
|
>
|
|
1941
1941
|
{renderGroup()}
|
|
@@ -1987,8 +1987,8 @@ If no results match the user's search, it's recommended to leave `isShowingOptio
|
|
|
1987
1987
|
inputElement = null
|
|
1988
1988
|
|
|
1989
1989
|
focusInput = () => {
|
|
1990
|
-
this.inputElement.blur()
|
|
1991
1990
|
if (this.inputElement) {
|
|
1991
|
+
this.inputElement.blur()
|
|
1992
1992
|
this.inputElement.focus()
|
|
1993
1993
|
}
|
|
1994
1994
|
}
|
|
@@ -2217,12 +2217,12 @@ If no results match the user's search, it's recommended to leave `isShowingOptio
|
|
|
2217
2217
|
const [selectedOptionLabel, setSelectedOptionLabel] = useState('')
|
|
2218
2218
|
const [filteredOptions, setFilteredOptions] = useState([])
|
|
2219
2219
|
const [announcement, setAnnouncement] = useState(null)
|
|
2220
|
-
const
|
|
2220
|
+
const inputRef = useRef()
|
|
2221
2221
|
|
|
2222
2222
|
const focusInput = () => {
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2223
|
+
if (inputRef.current) {
|
|
2224
|
+
inputRef.current.blur()
|
|
2225
|
+
inputRef.current.focus()
|
|
2226
2226
|
}
|
|
2227
2227
|
}
|
|
2228
2228
|
|
|
@@ -2341,7 +2341,7 @@ If no results match the user's search, it's recommended to leave `isShowingOptio
|
|
|
2341
2341
|
onRequestHighlightOption={handleHighlightOption}
|
|
2342
2342
|
onRequestSelectOption={handleSelectOption}
|
|
2343
2343
|
inputRef={(el) => {
|
|
2344
|
-
|
|
2344
|
+
inputRef.current = el
|
|
2345
2345
|
}}
|
|
2346
2346
|
>
|
|
2347
2347
|
{filteredOptions.length > 0 ? (
|
|
@@ -2425,8 +2425,8 @@ To display icons (or other elements) before or after an option, pass it via the
|
|
|
2425
2425
|
inputElement = null
|
|
2426
2426
|
|
|
2427
2427
|
focusInput = () => {
|
|
2428
|
-
this.inputElement.blur()
|
|
2429
2428
|
if (this.inputElement) {
|
|
2429
|
+
this.inputElement.blur()
|
|
2430
2430
|
this.inputElement.focus()
|
|
2431
2431
|
}
|
|
2432
2432
|
}
|
|
@@ -2572,12 +2572,12 @@ To display icons (or other elements) before or after an option, pass it via the
|
|
|
2572
2572
|
const [highlightedOptionId, setHighlightedOptionId] = useState(null)
|
|
2573
2573
|
const [selectedOptionId, setSelectedOptionId] = useState(options[0].id)
|
|
2574
2574
|
const [announcement, setAnnouncement] = useState(null)
|
|
2575
|
-
const
|
|
2575
|
+
const inputRef = useRef()
|
|
2576
2576
|
|
|
2577
2577
|
const focusInput = () => {
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2578
|
+
if (inputRef.current) {
|
|
2579
|
+
inputRef.current.blur()
|
|
2580
|
+
inputRef.current.focus()
|
|
2581
2581
|
}
|
|
2582
2582
|
}
|
|
2583
2583
|
|
|
@@ -2635,7 +2635,7 @@ To display icons (or other elements) before or after an option, pass it via the
|
|
|
2635
2635
|
onRequestHighlightOption={handleHighlightOption}
|
|
2636
2636
|
onRequestSelectOption={handleSelectOption}
|
|
2637
2637
|
inputRef={(el) => {
|
|
2638
|
-
|
|
2638
|
+
inputRef.current = el
|
|
2639
2639
|
}}
|
|
2640
2640
|
>
|
|
2641
2641
|
{options.map((option) => {
|