@instructure/ui-select 10.6.1-snapshot-4 → 10.6.1-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 +1 -1
- package/package.json +24 -24
- package/src/Select/README.md +11 -5
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.6.1-snapshot-
|
|
6
|
+
## [10.6.1-snapshot-5](https://github.com/instructure/instructure-ui/compare/v10.6.0...v10.6.1-snapshot-5) (2024-11-21)
|
|
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.6.1-snapshot-
|
|
3
|
+
"version": "10.6.1-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,13 +23,13 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-axe-check": "10.6.1-snapshot-
|
|
27
|
-
"@instructure/ui-babel-preset": "10.6.1-snapshot-
|
|
28
|
-
"@instructure/ui-color-utils": "10.6.1-snapshot-
|
|
29
|
-
"@instructure/ui-scripts": "10.6.1-snapshot-
|
|
30
|
-
"@instructure/ui-test-locator": "10.6.1-snapshot-
|
|
31
|
-
"@instructure/ui-test-utils": "10.6.1-snapshot-
|
|
32
|
-
"@instructure/ui-themes": "10.6.1-snapshot-
|
|
26
|
+
"@instructure/ui-axe-check": "10.6.1-snapshot-5",
|
|
27
|
+
"@instructure/ui-babel-preset": "10.6.1-snapshot-5",
|
|
28
|
+
"@instructure/ui-color-utils": "10.6.1-snapshot-5",
|
|
29
|
+
"@instructure/ui-scripts": "10.6.1-snapshot-5",
|
|
30
|
+
"@instructure/ui-test-locator": "10.6.1-snapshot-5",
|
|
31
|
+
"@instructure/ui-test-utils": "10.6.1-snapshot-5",
|
|
32
|
+
"@instructure/ui-themes": "10.6.1-snapshot-5",
|
|
33
33
|
"@testing-library/jest-dom": "^6.4.6",
|
|
34
34
|
"@testing-library/react": "^16.0.1",
|
|
35
35
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@babel/runtime": "^7.25.6",
|
|
40
|
-
"@instructure/emotion": "10.6.1-snapshot-
|
|
41
|
-
"@instructure/shared-types": "10.6.1-snapshot-
|
|
42
|
-
"@instructure/ui-dom-utils": "10.6.1-snapshot-
|
|
43
|
-
"@instructure/ui-form-field": "10.6.1-snapshot-
|
|
44
|
-
"@instructure/ui-icons": "10.6.1-snapshot-
|
|
45
|
-
"@instructure/ui-options": "10.6.1-snapshot-
|
|
46
|
-
"@instructure/ui-popover": "10.6.1-snapshot-
|
|
47
|
-
"@instructure/ui-position": "10.6.1-snapshot-
|
|
48
|
-
"@instructure/ui-prop-types": "10.6.1-snapshot-
|
|
49
|
-
"@instructure/ui-react-utils": "10.6.1-snapshot-
|
|
50
|
-
"@instructure/ui-selectable": "10.6.1-snapshot-
|
|
51
|
-
"@instructure/ui-testable": "10.6.1-snapshot-
|
|
52
|
-
"@instructure/ui-text-input": "10.6.1-snapshot-
|
|
53
|
-
"@instructure/ui-utils": "10.6.1-snapshot-
|
|
54
|
-
"@instructure/ui-view": "10.6.1-snapshot-
|
|
55
|
-
"@instructure/uid": "10.6.1-snapshot-
|
|
40
|
+
"@instructure/emotion": "10.6.1-snapshot-5",
|
|
41
|
+
"@instructure/shared-types": "10.6.1-snapshot-5",
|
|
42
|
+
"@instructure/ui-dom-utils": "10.6.1-snapshot-5",
|
|
43
|
+
"@instructure/ui-form-field": "10.6.1-snapshot-5",
|
|
44
|
+
"@instructure/ui-icons": "10.6.1-snapshot-5",
|
|
45
|
+
"@instructure/ui-options": "10.6.1-snapshot-5",
|
|
46
|
+
"@instructure/ui-popover": "10.6.1-snapshot-5",
|
|
47
|
+
"@instructure/ui-position": "10.6.1-snapshot-5",
|
|
48
|
+
"@instructure/ui-prop-types": "10.6.1-snapshot-5",
|
|
49
|
+
"@instructure/ui-react-utils": "10.6.1-snapshot-5",
|
|
50
|
+
"@instructure/ui-selectable": "10.6.1-snapshot-5",
|
|
51
|
+
"@instructure/ui-testable": "10.6.1-snapshot-5",
|
|
52
|
+
"@instructure/ui-text-input": "10.6.1-snapshot-5",
|
|
53
|
+
"@instructure/ui-utils": "10.6.1-snapshot-5",
|
|
54
|
+
"@instructure/ui-view": "10.6.1-snapshot-5",
|
|
55
|
+
"@instructure/uid": "10.6.1-snapshot-5",
|
|
56
56
|
"prop-types": "^15.8.1"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
package/src/Select/README.md
CHANGED
|
@@ -681,7 +681,7 @@ It's best practice to always provide autocomplete functionality to help users ma
|
|
|
681
681
|
|
|
682
682
|
#### Highlighting and selecting options
|
|
683
683
|
|
|
684
|
-
To mark an option as "highlighted", use the option's `isHighlighted` prop. Note that only one highlighted option is permitted. Similarly, use `isSelected` to mark an option or multiple options as "selected". When allowing multiple selections, it's best to render a [Tag](#Tag) for each selected option via the `renderBeforeInput` prop.
|
|
684
|
+
To mark an option as "highlighted", use the option's `isHighlighted` prop. Note that only one highlighted option is permitted. Similarly, use `isSelected` to mark an option or multiple options as "selected". When allowing multiple selections, it's best to render a [Tag](#Tag) with [AccessibleContent](#AccessibleContent) for each selected option via the `renderBeforeInput` prop.
|
|
685
685
|
|
|
686
686
|
- ```javascript
|
|
687
687
|
class MultipleSelectExample extends React.Component {
|
|
@@ -845,8 +845,11 @@ To mark an option as "highlighted", use the option's `isHighlighted` prop. Note
|
|
|
845
845
|
<Tag
|
|
846
846
|
dismissible
|
|
847
847
|
key={id}
|
|
848
|
-
|
|
849
|
-
|
|
848
|
+
text={
|
|
849
|
+
<AccessibleContent alt={`Remove ${this.getOptionById(id).label}`}>
|
|
850
|
+
{this.getOptionById(id).label}
|
|
851
|
+
</AccessibleContent>
|
|
852
|
+
}
|
|
850
853
|
margin={index > 0 ? 'xxx-small 0 xxx-small xx-small' : 'xxx-small 0'}
|
|
851
854
|
onClick={(e) => this.dismissTag(e, id)}
|
|
852
855
|
/>
|
|
@@ -1071,8 +1074,11 @@ To mark an option as "highlighted", use the option's `isHighlighted` prop. Note
|
|
|
1071
1074
|
<Tag
|
|
1072
1075
|
dismissible
|
|
1073
1076
|
key={id}
|
|
1074
|
-
|
|
1075
|
-
|
|
1077
|
+
text={
|
|
1078
|
+
<AccessibleContent alt={`Remove ${this.getOptionById(id).label}`}>
|
|
1079
|
+
{this.getOptionById(id).label}
|
|
1080
|
+
</AccessibleContent>
|
|
1081
|
+
}
|
|
1076
1082
|
margin={index > 0 ? 'xxx-small 0 xxx-small xx-small' : 'xxx-small 0'}
|
|
1077
1083
|
onClick={(e) => dismissTag(e, id)}
|
|
1078
1084
|
/>
|