@destyler/combobox 0.2.7 → 0.2.9
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/dist/index.d.mts +2 -1
- package/dist/index.mjs +3 -3
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _destyler_anatomy0 from "@destyler/anatomy";
|
|
1
2
|
import { CollectionItem, CollectionItem as CollectionItem$1, CollectionOptions, CollectionOptions as CollectionOptions$1, ListCollection } from "@destyler/collection";
|
|
2
3
|
import * as _destyler_xstate0 from "@destyler/xstate";
|
|
3
4
|
import { AnyEventObject, Machine, XSend, XState } from "@destyler/xstate";
|
|
@@ -6,7 +7,7 @@ import { FocusOutsideEvent, InteractOutsideEvent, InteractOutsideHandlers, Point
|
|
|
6
7
|
import { CommonProperties, DirectionProperty, NormalizeProps, PropTypes, RequiredBy } from "@destyler/types";
|
|
7
8
|
|
|
8
9
|
//#region src/anatomy.d.ts
|
|
9
|
-
declare const anatomy:
|
|
10
|
+
declare const anatomy: _destyler_anatomy0.AnatomyInstance<"root" | "label" | "control" | "input" | "content" | "trigger" | "clearTrigger" | "item" | "positioner" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "list">;
|
|
10
11
|
//#endregion
|
|
11
12
|
//#region src/collection.d.ts
|
|
12
13
|
declare function collection<T extends CollectionItem$1>(options: CollectionOptions$1<T>): ListCollection<T>;
|
package/dist/index.mjs
CHANGED
|
@@ -389,7 +389,7 @@ function connect(state, send, normalize) {
|
|
|
389
389
|
return normalize.element({
|
|
390
390
|
...parts.list.attrs,
|
|
391
391
|
"role": !composite ? "listbox" : void 0,
|
|
392
|
-
"aria-labelledby": dom.getLabelId(state.context),
|
|
392
|
+
"aria-labelledby": !composite ? dom.getLabelId(state.context) : void 0,
|
|
393
393
|
"aria-multiselectable": state.context.multiple && !composite ? true : void 0
|
|
394
394
|
});
|
|
395
395
|
},
|
|
@@ -488,6 +488,7 @@ function connect(state, send, normalize) {
|
|
|
488
488
|
const { id } = props;
|
|
489
489
|
return normalize.element({
|
|
490
490
|
...parts.itemGroup.attrs,
|
|
491
|
+
"role": "group",
|
|
491
492
|
"dir": state.context.dir,
|
|
492
493
|
"id": dom.getItemGroupId(state.context, id),
|
|
493
494
|
"aria-labelledby": dom.getItemGroupLabelId(state.context, id)
|
|
@@ -498,8 +499,7 @@ function connect(state, send, normalize) {
|
|
|
498
499
|
return normalize.element({
|
|
499
500
|
...parts.itemGroupLabel.attrs,
|
|
500
501
|
dir: state.context.dir,
|
|
501
|
-
id: dom.getItemGroupLabelId(state.context, htmlFor)
|
|
502
|
-
role: "group"
|
|
502
|
+
id: dom.getItemGroupLabelId(state.context, htmlFor)
|
|
503
503
|
});
|
|
504
504
|
}
|
|
505
505
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@destyler/combobox",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.9",
|
|
5
5
|
"description": "autocomplete input and command palette with a list of suggestions.",
|
|
6
6
|
"author": "Elone Hoo <elonehoo@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@destyler/
|
|
26
|
-
"@destyler/
|
|
27
|
-
"@destyler/collection": "0.2.
|
|
28
|
-
"@destyler/
|
|
29
|
-
"@destyler/
|
|
30
|
-
"@destyler/
|
|
31
|
-
"@destyler/
|
|
32
|
-
"@destyler/
|
|
33
|
-
"@destyler/
|
|
25
|
+
"@destyler/aria-hidden": "0.2.9",
|
|
26
|
+
"@destyler/anatomy": "0.2.9",
|
|
27
|
+
"@destyler/collection": "0.2.9",
|
|
28
|
+
"@destyler/popper": "0.2.9",
|
|
29
|
+
"@destyler/types": "0.2.9",
|
|
30
|
+
"@destyler/dismissable": "0.2.9",
|
|
31
|
+
"@destyler/utils": "0.2.9",
|
|
32
|
+
"@destyler/dom": "0.2.9",
|
|
33
|
+
"@destyler/xstate": "0.2.9"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|