@heroui/autocomplete 2.3.23-beta.1 → 2.3.23
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/autocomplete.js +2 -0
- package/dist/autocomplete.mjs +2 -2
- package/dist/{chunk-BT5DRV5A.mjs → chunk-ENG265Z6.mjs} +2 -0
- package/dist/{chunk-EG3YEEN2.mjs → chunk-FWJM6QZX.mjs} +1 -1
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -2
- package/dist/use-autocomplete.js +2 -0
- package/dist/use-autocomplete.mjs +1 -1
- package/package.json +14 -14
package/dist/autocomplete.js
CHANGED
|
@@ -45,6 +45,7 @@ var import_use_safe_layout_effect = require("@heroui/use-safe-layout-effect");
|
|
|
45
45
|
var import_system = require("@heroui/system");
|
|
46
46
|
var import_combobox2 = require("@react-aria/combobox");
|
|
47
47
|
var import_form = require("@heroui/form");
|
|
48
|
+
var import_aria_utils = require("@heroui/aria-utils");
|
|
48
49
|
function useAutocomplete(originalProps) {
|
|
49
50
|
var _a, _b, _c, _d, _e;
|
|
50
51
|
const globalContext = (0, import_system.useProviderContext)();
|
|
@@ -354,6 +355,7 @@ function useAutocomplete(originalProps) {
|
|
|
354
355
|
)
|
|
355
356
|
})
|
|
356
357
|
},
|
|
358
|
+
shouldCloseOnInteractOutside: (popoverProps2 == null ? void 0 : popoverProps2.shouldCloseOnInteractOutside) ? popoverProps2.shouldCloseOnInteractOutside : (element) => (0, import_aria_utils.ariaShouldCloseOnInteractOutside)(element, inputWrapperRef, state),
|
|
357
359
|
// when the popover is open, the focus should be on input instead of dialog
|
|
358
360
|
// therefore, we skip dialog focus here
|
|
359
361
|
disableDialogFocus: true
|
package/dist/autocomplete.mjs
CHANGED
|
@@ -12,6 +12,7 @@ import { useSafeLayoutEffect } from "@heroui/use-safe-layout-effect";
|
|
|
12
12
|
import { mapPropsVariants, useProviderContext } from "@heroui/system";
|
|
13
13
|
import { useComboBox } from "@react-aria/combobox";
|
|
14
14
|
import { FormContext, useSlottedContext } from "@heroui/form";
|
|
15
|
+
import { ariaShouldCloseOnInteractOutside } from "@heroui/aria-utils";
|
|
15
16
|
function useAutocomplete(originalProps) {
|
|
16
17
|
var _a, _b, _c, _d, _e;
|
|
17
18
|
const globalContext = useProviderContext();
|
|
@@ -321,6 +322,7 @@ function useAutocomplete(originalProps) {
|
|
|
321
322
|
)
|
|
322
323
|
})
|
|
323
324
|
},
|
|
325
|
+
shouldCloseOnInteractOutside: (popoverProps2 == null ? void 0 : popoverProps2.shouldCloseOnInteractOutside) ? popoverProps2.shouldCloseOnInteractOutside : (element) => ariaShouldCloseOnInteractOutside(element, inputWrapperRef, state),
|
|
324
326
|
// when the popover is open, the focus should be on input instead of dialog
|
|
325
327
|
// therefore, we skip dialog focus here
|
|
326
328
|
disableDialogFocus: true
|
package/dist/index.js
CHANGED
|
@@ -51,6 +51,7 @@ var import_use_safe_layout_effect = require("@heroui/use-safe-layout-effect");
|
|
|
51
51
|
var import_system = require("@heroui/system");
|
|
52
52
|
var import_combobox2 = require("@react-aria/combobox");
|
|
53
53
|
var import_form = require("@heroui/form");
|
|
54
|
+
var import_aria_utils = require("@heroui/aria-utils");
|
|
54
55
|
function useAutocomplete(originalProps) {
|
|
55
56
|
var _a, _b, _c, _d, _e;
|
|
56
57
|
const globalContext = (0, import_system.useProviderContext)();
|
|
@@ -360,6 +361,7 @@ function useAutocomplete(originalProps) {
|
|
|
360
361
|
)
|
|
361
362
|
})
|
|
362
363
|
},
|
|
364
|
+
shouldCloseOnInteractOutside: (popoverProps2 == null ? void 0 : popoverProps2.shouldCloseOnInteractOutside) ? popoverProps2.shouldCloseOnInteractOutside : (element) => (0, import_aria_utils.ariaShouldCloseOnInteractOutside)(element, inputWrapperRef, state),
|
|
363
365
|
// when the popover is open, the focus should be on input instead of dialog
|
|
364
366
|
// therefore, we skip dialog focus here
|
|
365
367
|
disableDialogFocus: true
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
autocomplete_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FWJM6QZX.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useAutocomplete
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ENG265Z6.mjs";
|
|
8
8
|
|
|
9
9
|
// src/index.ts
|
|
10
10
|
import { ListboxItem, ListboxSection } from "@heroui/listbox";
|
package/dist/use-autocomplete.js
CHANGED
|
@@ -35,6 +35,7 @@ var import_use_safe_layout_effect = require("@heroui/use-safe-layout-effect");
|
|
|
35
35
|
var import_system = require("@heroui/system");
|
|
36
36
|
var import_combobox2 = require("@react-aria/combobox");
|
|
37
37
|
var import_form = require("@heroui/form");
|
|
38
|
+
var import_aria_utils = require("@heroui/aria-utils");
|
|
38
39
|
function useAutocomplete(originalProps) {
|
|
39
40
|
var _a, _b, _c, _d, _e;
|
|
40
41
|
const globalContext = (0, import_system.useProviderContext)();
|
|
@@ -344,6 +345,7 @@ function useAutocomplete(originalProps) {
|
|
|
344
345
|
)
|
|
345
346
|
})
|
|
346
347
|
},
|
|
348
|
+
shouldCloseOnInteractOutside: (popoverProps2 == null ? void 0 : popoverProps2.shouldCloseOnInteractOutside) ? popoverProps2.shouldCloseOnInteractOutside : (element) => (0, import_aria_utils.ariaShouldCloseOnInteractOutside)(element, inputWrapperRef, state),
|
|
347
349
|
// when the popover is open, the focus should be on input instead of dialog
|
|
348
350
|
// therefore, we skip dialog focus here
|
|
349
351
|
disableDialogFocus: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heroui/autocomplete",
|
|
3
|
-
"version": "2.3.23
|
|
3
|
+
"version": "2.3.23",
|
|
4
4
|
"description": "An autocomplete combines a text input with a listbox, allowing users to filter a list of options to items matching a query.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"autocomplete"
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"url": "https://github.com/heroui-inc/heroui/issues"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@heroui/system": ">=2.4.
|
|
29
|
-
"@heroui/theme": ">=2.4.
|
|
28
|
+
"@heroui/system": ">=2.4.17",
|
|
29
|
+
"@heroui/theme": ">=2.4.6",
|
|
30
30
|
"framer-motion": ">=11.5.6 || >=12.0.0-alpha.1",
|
|
31
31
|
"react": ">=18 || >=19.0.0-rc.0",
|
|
32
32
|
"react-dom": ">=18 || >=19.0.0-rc.0"
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
"@react-stately/combobox": "3.10.6",
|
|
39
39
|
"@react-types/combobox": "3.13.6",
|
|
40
40
|
"@react-types/shared": "3.30.0",
|
|
41
|
-
"@heroui/form": "2.1.21
|
|
42
|
-
"@heroui/aria-utils": "2.2.19
|
|
43
|
-
"@heroui/button": "2.2.22
|
|
44
|
-
"@heroui/input": "2.4.22
|
|
45
|
-
"@heroui/listbox": "2.3.21
|
|
46
|
-
"@heroui/
|
|
47
|
-
"@heroui/
|
|
48
|
-
"@heroui/
|
|
49
|
-
"@heroui/
|
|
50
|
-
"@heroui/shared-utils": "2.1.
|
|
51
|
-
"@heroui/use-safe-layout-effect": "2.1.
|
|
41
|
+
"@heroui/form": "2.1.21",
|
|
42
|
+
"@heroui/aria-utils": "2.2.19",
|
|
43
|
+
"@heroui/button": "2.2.22",
|
|
44
|
+
"@heroui/input": "2.4.22",
|
|
45
|
+
"@heroui/listbox": "2.3.21",
|
|
46
|
+
"@heroui/popover": "2.3.22",
|
|
47
|
+
"@heroui/react-utils": "2.1.11",
|
|
48
|
+
"@heroui/scroll-shadow": "2.3.15",
|
|
49
|
+
"@heroui/shared-icons": "2.1.9",
|
|
50
|
+
"@heroui/shared-utils": "2.1.9",
|
|
51
|
+
"@heroui/use-safe-layout-effect": "2.1.7"
|
|
52
52
|
},
|
|
53
53
|
"clean-package": "../../../clean-package.config.json",
|
|
54
54
|
"module": "dist/index.mjs",
|