@heroui/autocomplete 2.3.27 → 2.3.29

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.
@@ -285,7 +285,9 @@ function useAutocomplete(originalProps) {
285
285
  const getClearButtonProps = () => {
286
286
  var _a2, _b2;
287
287
  return {
288
- ...(0, import_shared_utils.mergeProps)(buttonProps, slotsProps.clearButtonProps),
288
+ ...slotsProps.clearButtonProps,
289
+ preventFocusOnPress: true,
290
+ excludeFromTabOrder: true,
289
291
  // disable original focus and state toggle from react aria
290
292
  onPressStart: () => {
291
293
  var _a3;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  autocomplete_default
4
- } from "./chunk-S6H5EOGR.mjs";
5
- import "./chunk-JHANFQCV.mjs";
4
+ } from "./chunk-DM2TGBNX.mjs";
5
+ import "./chunk-IQYJV2AF.mjs";
6
6
  export {
7
7
  autocomplete_default as default
8
8
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useAutocomplete
4
- } from "./chunk-JHANFQCV.mjs";
4
+ } from "./chunk-IQYJV2AF.mjs";
5
5
 
6
6
  // src/autocomplete.tsx
7
7
  import { forwardRef } from "@heroui/system";
@@ -252,7 +252,9 @@ function useAutocomplete(originalProps) {
252
252
  const getClearButtonProps = () => {
253
253
  var _a2, _b2;
254
254
  return {
255
- ...mergeProps(buttonProps, slotsProps.clearButtonProps),
255
+ ...slotsProps.clearButtonProps,
256
+ preventFocusOnPress: true,
257
+ excludeFromTabOrder: true,
256
258
  // disable original focus and state toggle from react aria
257
259
  onPressStart: () => {
258
260
  var _a3;
package/dist/index.js CHANGED
@@ -291,7 +291,9 @@ function useAutocomplete(originalProps) {
291
291
  const getClearButtonProps = () => {
292
292
  var _a2, _b2;
293
293
  return {
294
- ...(0, import_shared_utils.mergeProps)(buttonProps, slotsProps.clearButtonProps),
294
+ ...slotsProps.clearButtonProps,
295
+ preventFocusOnPress: true,
296
+ excludeFromTabOrder: true,
295
297
  // disable original focus and state toggle from react aria
296
298
  onPressStart: () => {
297
299
  var _a3;
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  autocomplete_default
4
- } from "./chunk-S6H5EOGR.mjs";
4
+ } from "./chunk-DM2TGBNX.mjs";
5
5
  import {
6
6
  useAutocomplete
7
- } from "./chunk-JHANFQCV.mjs";
7
+ } from "./chunk-IQYJV2AF.mjs";
8
8
 
9
9
  // src/index.ts
10
10
  import { ListboxItem, ListboxSection } from "@heroui/listbox";
@@ -275,7 +275,9 @@ function useAutocomplete(originalProps) {
275
275
  const getClearButtonProps = () => {
276
276
  var _a2, _b2;
277
277
  return {
278
- ...(0, import_shared_utils.mergeProps)(buttonProps, slotsProps.clearButtonProps),
278
+ ...slotsProps.clearButtonProps,
279
+ preventFocusOnPress: true,
280
+ excludeFromTabOrder: true,
279
281
  // disable original focus and state toggle from react aria
280
282
  onPressStart: () => {
281
283
  var _a3;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useAutocomplete
4
- } from "./chunk-JHANFQCV.mjs";
4
+ } from "./chunk-IQYJV2AF.mjs";
5
5
  export {
6
6
  useAutocomplete
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heroui/autocomplete",
3
- "version": "2.3.27",
3
+ "version": "2.3.29",
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"
@@ -32,21 +32,21 @@
32
32
  "react-dom": ">=18 || >=19.0.0-rc.0"
33
33
  },
34
34
  "dependencies": {
35
- "@react-aria/combobox": "3.13.1",
36
- "@react-aria/i18n": "3.12.12",
37
- "@react-stately/combobox": "3.11.1",
38
- "@react-types/combobox": "3.13.8",
39
- "@react-types/shared": "3.32.0",
40
- "@heroui/form": "2.1.25",
41
- "@heroui/aria-utils": "2.2.22",
42
- "@heroui/button": "2.2.25",
43
- "@heroui/input": "2.4.26",
44
- "@heroui/listbox": "2.3.24",
45
- "@heroui/popover": "2.3.25",
46
- "@heroui/react-utils": "2.1.13",
47
- "@heroui/scroll-shadow": "2.3.17",
35
+ "@react-aria/combobox": "3.14.0",
36
+ "@react-aria/i18n": "3.12.13",
37
+ "@react-stately/combobox": "3.12.0",
38
+ "@react-types/combobox": "3.13.9",
39
+ "@react-types/shared": "3.32.1",
40
+ "@heroui/form": "2.1.27",
41
+ "@heroui/aria-utils": "2.2.24",
42
+ "@heroui/button": "2.2.27",
43
+ "@heroui/input": "2.4.28",
44
+ "@heroui/listbox": "2.3.26",
45
+ "@heroui/popover": "2.3.27",
46
+ "@heroui/react-utils": "2.1.14",
47
+ "@heroui/scroll-shadow": "2.3.18",
48
48
  "@heroui/shared-icons": "2.1.10",
49
- "@heroui/shared-utils": "2.1.11",
49
+ "@heroui/shared-utils": "2.1.12",
50
50
  "@heroui/use-safe-layout-effect": "2.1.8"
51
51
  },
52
52
  "clean-package": "../../../clean-package.config.json",