@instructure/ui-select 10.8.1-snapshot-4 → 10.9.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 +6 -2
- package/es/Select/index.js +1 -0
- package/es/index.js +3 -1
- package/lib/Select/index.js +1 -0
- package/lib/index.js +15 -1
- package/package.json +24 -24
- package/src/Select/index.tsx +1 -0
- package/src/index.ts +2 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Select/index.d.ts.map +1 -1
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +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
|
-
|
|
6
|
+
# [10.9.0](https://github.com/instructure/instructure-ui/compare/v10.8.0...v10.9.0) (2024-12-12)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **many:** make meta package export every component and type definition ([dee9abb](https://github.com/instructure/instructure-ui/commit/dee9abb9cbffa4abc9edf48fb7d8ad41fea385b4))
|
|
12
|
+
* **shared-types,ui-options,ui-select:** allow to change font weight of selected option item in Select ([6818928](https://github.com/instructure/instructure-ui/commit/6818928536ad0145516c8d7d25eb8079c84089b6))
|
|
9
13
|
|
|
10
14
|
|
|
11
15
|
|
package/es/Select/index.js
CHANGED
|
@@ -312,6 +312,7 @@ let Select = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, gen
|
|
|
312
312
|
// should option be treated as highlighted or selected
|
|
313
313
|
if (isSelected) {
|
|
314
314
|
optionProps.variant = 'selected';
|
|
315
|
+
optionProps.isSelected = true;
|
|
315
316
|
} else if (isHighlighted) {
|
|
316
317
|
optionProps.variant = 'highlighted';
|
|
317
318
|
}
|
package/es/index.js
CHANGED
package/lib/Select/index.js
CHANGED
|
@@ -324,6 +324,7 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
|
|
|
324
324
|
// should option be treated as highlighted or selected
|
|
325
325
|
if (isSelected) {
|
|
326
326
|
optionProps.variant = 'selected';
|
|
327
|
+
optionProps.isSelected = true;
|
|
327
328
|
} else if (isHighlighted) {
|
|
328
329
|
optionProps.variant = 'highlighted';
|
|
329
330
|
}
|
package/lib/index.js
CHANGED
|
@@ -9,4 +9,18 @@ Object.defineProperty(exports, "Select", {
|
|
|
9
9
|
return _Select.Select;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
12
|
+
Object.defineProperty(exports, "SelectGroup", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _Group.Group;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "SelectOption", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _Option.Option;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _Select = require("./Select");
|
|
25
|
+
var _Group = require("./Select/Group");
|
|
26
|
+
var _Option = require("./Select/Option");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-select",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.9.0",
|
|
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.
|
|
27
|
-
"@instructure/ui-babel-preset": "10.
|
|
28
|
-
"@instructure/ui-color-utils": "10.
|
|
29
|
-
"@instructure/ui-scripts": "10.
|
|
30
|
-
"@instructure/ui-test-locator": "10.
|
|
31
|
-
"@instructure/ui-test-utils": "10.
|
|
32
|
-
"@instructure/ui-themes": "10.
|
|
26
|
+
"@instructure/ui-axe-check": "10.9.0",
|
|
27
|
+
"@instructure/ui-babel-preset": "10.9.0",
|
|
28
|
+
"@instructure/ui-color-utils": "10.9.0",
|
|
29
|
+
"@instructure/ui-scripts": "10.9.0",
|
|
30
|
+
"@instructure/ui-test-locator": "10.9.0",
|
|
31
|
+
"@instructure/ui-test-utils": "10.9.0",
|
|
32
|
+
"@instructure/ui-themes": "10.9.0",
|
|
33
33
|
"@testing-library/jest-dom": "^6.6.3",
|
|
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.26.0",
|
|
40
|
-
"@instructure/emotion": "10.
|
|
41
|
-
"@instructure/shared-types": "10.
|
|
42
|
-
"@instructure/ui-dom-utils": "10.
|
|
43
|
-
"@instructure/ui-form-field": "10.
|
|
44
|
-
"@instructure/ui-icons": "10.
|
|
45
|
-
"@instructure/ui-options": "10.
|
|
46
|
-
"@instructure/ui-popover": "10.
|
|
47
|
-
"@instructure/ui-position": "10.
|
|
48
|
-
"@instructure/ui-prop-types": "10.
|
|
49
|
-
"@instructure/ui-react-utils": "10.
|
|
50
|
-
"@instructure/ui-selectable": "10.
|
|
51
|
-
"@instructure/ui-testable": "10.
|
|
52
|
-
"@instructure/ui-text-input": "10.
|
|
53
|
-
"@instructure/ui-utils": "10.
|
|
54
|
-
"@instructure/ui-view": "10.
|
|
55
|
-
"@instructure/uid": "10.
|
|
40
|
+
"@instructure/emotion": "10.9.0",
|
|
41
|
+
"@instructure/shared-types": "10.9.0",
|
|
42
|
+
"@instructure/ui-dom-utils": "10.9.0",
|
|
43
|
+
"@instructure/ui-form-field": "10.9.0",
|
|
44
|
+
"@instructure/ui-icons": "10.9.0",
|
|
45
|
+
"@instructure/ui-options": "10.9.0",
|
|
46
|
+
"@instructure/ui-popover": "10.9.0",
|
|
47
|
+
"@instructure/ui-position": "10.9.0",
|
|
48
|
+
"@instructure/ui-prop-types": "10.9.0",
|
|
49
|
+
"@instructure/ui-react-utils": "10.9.0",
|
|
50
|
+
"@instructure/ui-selectable": "10.9.0",
|
|
51
|
+
"@instructure/ui-testable": "10.9.0",
|
|
52
|
+
"@instructure/ui-text-input": "10.9.0",
|
|
53
|
+
"@instructure/ui-utils": "10.9.0",
|
|
54
|
+
"@instructure/ui-view": "10.9.0",
|
|
55
|
+
"@instructure/uid": "10.9.0",
|
|
56
56
|
"prop-types": "^15.8.1"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
package/src/Select/index.tsx
CHANGED
|
@@ -425,6 +425,7 @@ class Select extends Component<SelectProps> {
|
|
|
425
425
|
// should option be treated as highlighted or selected
|
|
426
426
|
if (isSelected) {
|
|
427
427
|
optionProps.variant = 'selected'
|
|
428
|
+
optionProps.isSelected = true
|
|
428
429
|
} else if (isHighlighted) {
|
|
429
430
|
optionProps.variant = 'highlighted'
|
|
430
431
|
}
|
package/src/index.ts
CHANGED
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
export { Select } from './Select'
|
|
26
|
+
export { Group as SelectGroup } from './Select/Group'
|
|
27
|
+
export { Option as SelectOption } from './Select/Option'
|
|
26
28
|
|
|
27
29
|
export type { SelectProps, SelectOwnProps } from './Select/props'
|
|
28
30
|
export type { SelectGroupProps } from './Select/Group/props'
|