@yamada-ui/autocomplete 0.0.0-dev-20231110102111 → 0.0.0-dev-20231111133020
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-create.d.mts +1 -1
- package/dist/autocomplete-create.d.ts +1 -1
- package/dist/autocomplete-empty.d.mts +1 -1
- package/dist/autocomplete-empty.d.ts +1 -1
- package/dist/autocomplete-icon.d.mts +2 -2
- package/dist/autocomplete-icon.d.ts +2 -2
- package/dist/autocomplete-list.d.mts +1 -1
- package/dist/autocomplete-list.d.ts +1 -1
- package/dist/autocomplete-option-group.d.mts +2 -2
- package/dist/autocomplete-option-group.d.ts +2 -2
- package/dist/autocomplete-option.d.mts +1 -1
- package/dist/autocomplete-option.d.ts +1 -1
- package/dist/autocomplete.d.mts +5 -5
- package/dist/autocomplete.d.ts +5 -5
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/multi-autocomplete.d.mts +5 -5
- package/dist/multi-autocomplete.d.ts +5 -5
- package/dist/{use-autocomplete-2422c1c8.d.ts → use-autocomplete-3271514f.d.ts} +7 -7
- package/dist/use-autocomplete.d.mts +1 -1
- package/dist/use-autocomplete.d.ts +1 -1
- package/package.json +4 -4
|
@@ -12,7 +12,7 @@ type AutocompleteCreateOptions = {
|
|
|
12
12
|
*/
|
|
13
13
|
children?: string | ((inputValue: string) => string);
|
|
14
14
|
};
|
|
15
|
-
type AutocompleteCreateProps = Omit<HTMLUIProps<
|
|
15
|
+
type AutocompleteCreateProps = Omit<HTMLUIProps<"li">, "children"> & AutocompleteCreateOptions;
|
|
16
16
|
declare const AutocompleteCreate: _yamada_ui_core.Component<"li", AutocompleteCreateProps>;
|
|
17
17
|
|
|
18
18
|
export { AutocompleteCreate, AutocompleteCreateProps };
|
|
@@ -12,7 +12,7 @@ type AutocompleteCreateOptions = {
|
|
|
12
12
|
*/
|
|
13
13
|
children?: string | ((inputValue: string) => string);
|
|
14
14
|
};
|
|
15
|
-
type AutocompleteCreateProps = Omit<HTMLUIProps<
|
|
15
|
+
type AutocompleteCreateProps = Omit<HTMLUIProps<"li">, "children"> & AutocompleteCreateOptions;
|
|
16
16
|
declare const AutocompleteCreate: _yamada_ui_core.Component<"li", AutocompleteCreateProps>;
|
|
17
17
|
|
|
18
18
|
export { AutocompleteCreate, AutocompleteCreateProps };
|
|
@@ -12,7 +12,7 @@ type AutocompleteEmptyOptions = {
|
|
|
12
12
|
*/
|
|
13
13
|
children?: string;
|
|
14
14
|
};
|
|
15
|
-
type AutocompleteEmptyProps = Omit<HTMLUIProps<
|
|
15
|
+
type AutocompleteEmptyProps = Omit<HTMLUIProps<"li">, "children"> & AutocompleteEmptyOptions;
|
|
16
16
|
declare const AutocompleteEmpty: _yamada_ui_core.Component<"li", AutocompleteEmptyProps>;
|
|
17
17
|
|
|
18
18
|
export { AutocompleteEmpty, AutocompleteEmptyProps };
|
|
@@ -12,7 +12,7 @@ type AutocompleteEmptyOptions = {
|
|
|
12
12
|
*/
|
|
13
13
|
children?: string;
|
|
14
14
|
};
|
|
15
|
-
type AutocompleteEmptyProps = Omit<HTMLUIProps<
|
|
15
|
+
type AutocompleteEmptyProps = Omit<HTMLUIProps<"li">, "children"> & AutocompleteEmptyOptions;
|
|
16
16
|
declare const AutocompleteEmpty: _yamada_ui_core.Component<"li", AutocompleteEmptyProps>;
|
|
17
17
|
|
|
18
18
|
export { AutocompleteEmpty, AutocompleteEmptyProps };
|
|
@@ -2,13 +2,13 @@ import * as _yamada_ui_core from '@yamada-ui/core';
|
|
|
2
2
|
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
3
|
import { FC } from 'react';
|
|
4
4
|
|
|
5
|
-
type AutocompleteIconProps = HTMLUIProps<
|
|
5
|
+
type AutocompleteIconProps = HTMLUIProps<"div">;
|
|
6
6
|
declare const AutocompleteIcon: _yamada_ui_core.Component<"div", AutocompleteIconProps>;
|
|
7
7
|
type AutocompleteClearIconProps = AutocompleteIconProps & {
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
};
|
|
10
10
|
declare const AutocompleteClearIcon: FC<AutocompleteClearIconProps>;
|
|
11
|
-
type AutocompleteItemIconProps = HTMLUIProps<
|
|
11
|
+
type AutocompleteItemIconProps = HTMLUIProps<"span">;
|
|
12
12
|
declare const AutocompleteItemIcon: _yamada_ui_core.Component<"span", AutocompleteItemIconProps>;
|
|
13
13
|
|
|
14
14
|
export { AutocompleteClearIcon, AutocompleteClearIconProps, AutocompleteIcon, AutocompleteIconProps, AutocompleteItemIcon, AutocompleteItemIconProps };
|
|
@@ -2,13 +2,13 @@ import * as _yamada_ui_core from '@yamada-ui/core';
|
|
|
2
2
|
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
3
|
import { FC } from 'react';
|
|
4
4
|
|
|
5
|
-
type AutocompleteIconProps = HTMLUIProps<
|
|
5
|
+
type AutocompleteIconProps = HTMLUIProps<"div">;
|
|
6
6
|
declare const AutocompleteIcon: _yamada_ui_core.Component<"div", AutocompleteIconProps>;
|
|
7
7
|
type AutocompleteClearIconProps = AutocompleteIconProps & {
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
};
|
|
10
10
|
declare const AutocompleteClearIcon: FC<AutocompleteClearIconProps>;
|
|
11
|
-
type AutocompleteItemIconProps = HTMLUIProps<
|
|
11
|
+
type AutocompleteItemIconProps = HTMLUIProps<"span">;
|
|
12
12
|
declare const AutocompleteItemIcon: _yamada_ui_core.Component<"span", AutocompleteItemIconProps>;
|
|
13
13
|
|
|
14
14
|
export { AutocompleteClearIcon, AutocompleteClearIconProps, AutocompleteIcon, AutocompleteIconProps, AutocompleteItemIcon, AutocompleteItemIconProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
3
|
|
|
4
|
-
type AutocompleteListProps = HTMLUIProps<
|
|
4
|
+
type AutocompleteListProps = HTMLUIProps<"ul">;
|
|
5
5
|
declare const AutocompleteList: _yamada_ui_core.Component<"ul", AutocompleteListProps>;
|
|
6
6
|
|
|
7
7
|
export { AutocompleteList, AutocompleteListProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
3
|
|
|
4
|
-
type AutocompleteListProps = HTMLUIProps<
|
|
4
|
+
type AutocompleteListProps = HTMLUIProps<"ul">;
|
|
5
5
|
declare const AutocompleteList: _yamada_ui_core.Component<"ul", AutocompleteListProps>;
|
|
6
6
|
|
|
7
7
|
export { AutocompleteList, AutocompleteListProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
|
-
import { U as UseAutocompleteOptionGroupProps } from './use-autocomplete-
|
|
3
|
+
import { U as UseAutocompleteOptionGroupProps } from './use-autocomplete-3271514f.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@yamada-ui/form-control';
|
|
@@ -9,7 +9,7 @@ import '@yamada-ui/select';
|
|
|
9
9
|
import '@yamada-ui/utils';
|
|
10
10
|
|
|
11
11
|
type AutocompleteOptionGroupOptions = UseAutocompleteOptionGroupProps;
|
|
12
|
-
type AutocompleteOptionGroupProps = HTMLUIProps<
|
|
12
|
+
type AutocompleteOptionGroupProps = HTMLUIProps<"ul"> & AutocompleteOptionGroupOptions;
|
|
13
13
|
declare const AutocompleteOptionGroup: _yamada_ui_core.Component<"ul", AutocompleteOptionGroupProps>;
|
|
14
14
|
|
|
15
15
|
export { AutocompleteOptionGroup, AutocompleteOptionGroupProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
|
-
import { U as UseAutocompleteOptionGroupProps } from './use-autocomplete-
|
|
3
|
+
import { U as UseAutocompleteOptionGroupProps } from './use-autocomplete-3271514f.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@yamada-ui/form-control';
|
|
@@ -9,7 +9,7 @@ import '@yamada-ui/select';
|
|
|
9
9
|
import '@yamada-ui/utils';
|
|
10
10
|
|
|
11
11
|
type AutocompleteOptionGroupOptions = UseAutocompleteOptionGroupProps;
|
|
12
|
-
type AutocompleteOptionGroupProps = HTMLUIProps<
|
|
12
|
+
type AutocompleteOptionGroupProps = HTMLUIProps<"ul"> & AutocompleteOptionGroupOptions;
|
|
13
13
|
declare const AutocompleteOptionGroup: _yamada_ui_core.Component<"ul", AutocompleteOptionGroupProps>;
|
|
14
14
|
|
|
15
15
|
export { AutocompleteOptionGroup, AutocompleteOptionGroupProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@yamada-ui/core';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { A as AutocompleteOption, a as AutocompleteOptionProps } from './use-autocomplete-
|
|
3
|
+
export { A as AutocompleteOption, a as AutocompleteOptionProps } from './use-autocomplete-3271514f.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import '@yamada-ui/form-control';
|
|
6
6
|
import '@yamada-ui/popover';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@yamada-ui/core';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { A as AutocompleteOption, a as AutocompleteOptionProps } from './use-autocomplete-
|
|
3
|
+
export { A as AutocompleteOption, a as AutocompleteOptionProps } from './use-autocomplete-3271514f.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import '@yamada-ui/form-control';
|
|
6
6
|
import '@yamada-ui/popover';
|
package/dist/autocomplete.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _yamada_ui_core from '@yamada-ui/core';
|
|
|
2
2
|
import { ThemeProps, HTMLUIProps } from '@yamada-ui/core';
|
|
3
3
|
import { AutocompleteIconProps } from './autocomplete-icon.mjs';
|
|
4
4
|
import { AutocompleteListProps } from './autocomplete-list.mjs';
|
|
5
|
-
import { b as UseAutocompleteProps } from './use-autocomplete-
|
|
5
|
+
import { b as UseAutocompleteProps } from './use-autocomplete-3271514f.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import '@yamada-ui/form-control';
|
|
@@ -22,21 +22,21 @@ type AutocompleteOptions = {
|
|
|
22
22
|
/**
|
|
23
23
|
* Props for autocomplete container element.
|
|
24
24
|
*/
|
|
25
|
-
containerProps?: Omit<HTMLUIProps<
|
|
25
|
+
containerProps?: Omit<HTMLUIProps<"div">, "children">;
|
|
26
26
|
/**
|
|
27
27
|
* Props for autocomplete list element.
|
|
28
28
|
*/
|
|
29
|
-
listProps?: Omit<AutocompleteListProps,
|
|
29
|
+
listProps?: Omit<AutocompleteListProps, "children">;
|
|
30
30
|
/**
|
|
31
31
|
* Props for autocomplete input element.
|
|
32
32
|
*/
|
|
33
|
-
inputProps?: HTMLUIProps<
|
|
33
|
+
inputProps?: HTMLUIProps<"input">;
|
|
34
34
|
/**
|
|
35
35
|
* Props for autocomplete icon element.
|
|
36
36
|
*/
|
|
37
37
|
iconProps?: AutocompleteIconProps;
|
|
38
38
|
};
|
|
39
|
-
type AutocompleteProps = ThemeProps<
|
|
39
|
+
type AutocompleteProps = ThemeProps<"Select"> & Omit<UseAutocompleteProps<string>, "maxSelectedValues" | "omitSelectedValues"> & AutocompleteOptions;
|
|
40
40
|
declare const Autocomplete: _yamada_ui_core.Component<"input", AutocompleteProps>;
|
|
41
41
|
|
|
42
42
|
export { Autocomplete, AutocompleteProps };
|
package/dist/autocomplete.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _yamada_ui_core from '@yamada-ui/core';
|
|
|
2
2
|
import { ThemeProps, HTMLUIProps } from '@yamada-ui/core';
|
|
3
3
|
import { AutocompleteIconProps } from './autocomplete-icon.js';
|
|
4
4
|
import { AutocompleteListProps } from './autocomplete-list.js';
|
|
5
|
-
import { b as UseAutocompleteProps } from './use-autocomplete-
|
|
5
|
+
import { b as UseAutocompleteProps } from './use-autocomplete-3271514f.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import '@yamada-ui/form-control';
|
|
@@ -22,21 +22,21 @@ type AutocompleteOptions = {
|
|
|
22
22
|
/**
|
|
23
23
|
* Props for autocomplete container element.
|
|
24
24
|
*/
|
|
25
|
-
containerProps?: Omit<HTMLUIProps<
|
|
25
|
+
containerProps?: Omit<HTMLUIProps<"div">, "children">;
|
|
26
26
|
/**
|
|
27
27
|
* Props for autocomplete list element.
|
|
28
28
|
*/
|
|
29
|
-
listProps?: Omit<AutocompleteListProps,
|
|
29
|
+
listProps?: Omit<AutocompleteListProps, "children">;
|
|
30
30
|
/**
|
|
31
31
|
* Props for autocomplete input element.
|
|
32
32
|
*/
|
|
33
|
-
inputProps?: HTMLUIProps<
|
|
33
|
+
inputProps?: HTMLUIProps<"input">;
|
|
34
34
|
/**
|
|
35
35
|
* Props for autocomplete icon element.
|
|
36
36
|
*/
|
|
37
37
|
iconProps?: AutocompleteIconProps;
|
|
38
38
|
};
|
|
39
|
-
type AutocompleteProps = ThemeProps<
|
|
39
|
+
type AutocompleteProps = ThemeProps<"Select"> & Omit<UseAutocompleteProps<string>, "maxSelectedValues" | "omitSelectedValues"> & AutocompleteOptions;
|
|
40
40
|
declare const Autocomplete: _yamada_ui_core.Component<"input", AutocompleteProps>;
|
|
41
41
|
|
|
42
42
|
export { Autocomplete, AutocompleteProps };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Autocomplete, AutocompleteProps } from './autocomplete.mjs';
|
|
2
2
|
export { AutocompleteOptionGroup, AutocompleteOptionGroupProps } from './autocomplete-option-group.mjs';
|
|
3
|
-
export { A as AutocompleteOption, a as AutocompleteOptionProps } from './use-autocomplete-
|
|
3
|
+
export { A as AutocompleteOption, a as AutocompleteOptionProps } from './use-autocomplete-3271514f.js';
|
|
4
4
|
export { AutocompleteCreate, AutocompleteCreateProps } from './autocomplete-create.mjs';
|
|
5
5
|
export { AutocompleteEmpty, AutocompleteEmptyProps } from './autocomplete-empty.mjs';
|
|
6
6
|
export { MultiAutocomplete, MultiAutocompleteProps } from './multi-autocomplete.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Autocomplete, AutocompleteProps } from './autocomplete.js';
|
|
2
2
|
export { AutocompleteOptionGroup, AutocompleteOptionGroupProps } from './autocomplete-option-group.js';
|
|
3
|
-
export { A as AutocompleteOption, a as AutocompleteOptionProps } from './use-autocomplete-
|
|
3
|
+
export { A as AutocompleteOption, a as AutocompleteOptionProps } from './use-autocomplete-3271514f.js';
|
|
4
4
|
export { AutocompleteCreate, AutocompleteCreateProps } from './autocomplete-create.js';
|
|
5
5
|
export { AutocompleteEmpty, AutocompleteEmptyProps } from './autocomplete-empty.js';
|
|
6
6
|
export { MultiAutocomplete, MultiAutocompleteProps } from './multi-autocomplete.js';
|
|
@@ -3,7 +3,7 @@ import { ThemeProps, HTMLUIProps } from '@yamada-ui/core';
|
|
|
3
3
|
import { FC, MouseEventHandler } from 'react';
|
|
4
4
|
import { AutocompleteIconProps } from './autocomplete-icon.mjs';
|
|
5
5
|
import { AutocompleteListProps } from './autocomplete-list.mjs';
|
|
6
|
-
import { b as UseAutocompleteProps } from './use-autocomplete-
|
|
6
|
+
import { b as UseAutocompleteProps } from './use-autocomplete-3271514f.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import '@yamada-ui/form-control';
|
|
9
9
|
import '@yamada-ui/popover';
|
|
@@ -49,15 +49,15 @@ type MultiAutocompleteOptions = {
|
|
|
49
49
|
/**
|
|
50
50
|
* Props for multi autocomplete container element.
|
|
51
51
|
*/
|
|
52
|
-
containerProps?: Omit<HTMLUIProps<
|
|
52
|
+
containerProps?: Omit<HTMLUIProps<"div">, "children">;
|
|
53
53
|
/**
|
|
54
54
|
* Props for multi autocomplete list element.
|
|
55
55
|
*/
|
|
56
|
-
listProps?: Omit<AutocompleteListProps,
|
|
56
|
+
listProps?: Omit<AutocompleteListProps, "children">;
|
|
57
57
|
/**
|
|
58
58
|
* Props for multi autocomplete input element.
|
|
59
59
|
*/
|
|
60
|
-
inputProps?: HTMLUIProps<
|
|
60
|
+
inputProps?: HTMLUIProps<"input">;
|
|
61
61
|
/**
|
|
62
62
|
* Props for multi autocomplete icon element.
|
|
63
63
|
*/
|
|
@@ -67,7 +67,7 @@ type MultiAutocompleteOptions = {
|
|
|
67
67
|
*/
|
|
68
68
|
clearIconProps?: AutocompleteIconProps;
|
|
69
69
|
};
|
|
70
|
-
type MultiAutocompleteProps = ThemeProps<
|
|
70
|
+
type MultiAutocompleteProps = ThemeProps<"Select"> & UseAutocompleteProps<string[]> & MultiAutocompleteOptions;
|
|
71
71
|
declare const MultiAutocomplete: _yamada_ui_core.Component<"div", MultiAutocompleteProps>;
|
|
72
72
|
|
|
73
73
|
export { MultiAutocomplete, MultiAutocompleteProps };
|
|
@@ -3,7 +3,7 @@ import { ThemeProps, HTMLUIProps } from '@yamada-ui/core';
|
|
|
3
3
|
import { FC, MouseEventHandler } from 'react';
|
|
4
4
|
import { AutocompleteIconProps } from './autocomplete-icon.js';
|
|
5
5
|
import { AutocompleteListProps } from './autocomplete-list.js';
|
|
6
|
-
import { b as UseAutocompleteProps } from './use-autocomplete-
|
|
6
|
+
import { b as UseAutocompleteProps } from './use-autocomplete-3271514f.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import '@yamada-ui/form-control';
|
|
9
9
|
import '@yamada-ui/popover';
|
|
@@ -49,15 +49,15 @@ type MultiAutocompleteOptions = {
|
|
|
49
49
|
/**
|
|
50
50
|
* Props for multi autocomplete container element.
|
|
51
51
|
*/
|
|
52
|
-
containerProps?: Omit<HTMLUIProps<
|
|
52
|
+
containerProps?: Omit<HTMLUIProps<"div">, "children">;
|
|
53
53
|
/**
|
|
54
54
|
* Props for multi autocomplete list element.
|
|
55
55
|
*/
|
|
56
|
-
listProps?: Omit<AutocompleteListProps,
|
|
56
|
+
listProps?: Omit<AutocompleteListProps, "children">;
|
|
57
57
|
/**
|
|
58
58
|
* Props for multi autocomplete input element.
|
|
59
59
|
*/
|
|
60
|
-
inputProps?: HTMLUIProps<
|
|
60
|
+
inputProps?: HTMLUIProps<"input">;
|
|
61
61
|
/**
|
|
62
62
|
* Props for multi autocomplete icon element.
|
|
63
63
|
*/
|
|
@@ -67,7 +67,7 @@ type MultiAutocompleteOptions = {
|
|
|
67
67
|
*/
|
|
68
68
|
clearIconProps?: AutocompleteIconProps;
|
|
69
69
|
};
|
|
70
|
-
type MultiAutocompleteProps = ThemeProps<
|
|
70
|
+
type MultiAutocompleteProps = ThemeProps<"Select"> & UseAutocompleteProps<string[]> & MultiAutocompleteOptions;
|
|
71
71
|
declare const MultiAutocomplete: _yamada_ui_core.Component<"div", MultiAutocompleteProps>;
|
|
72
72
|
|
|
73
73
|
export { MultiAutocomplete, MultiAutocompleteProps };
|
|
@@ -3336,7 +3336,7 @@ declare const useAutocompleteDescendant: (options?: {
|
|
|
3336
3336
|
enabledIndex: number;
|
|
3337
3337
|
register: (node: HTMLElement | null) => void;
|
|
3338
3338
|
};
|
|
3339
|
-
type AutocompleteContext = Omit<UseAutocompleteProps,
|
|
3339
|
+
type AutocompleteContext = Omit<UseAutocompleteProps, "value" | "defaultValue" | "onChange" | "onCreate"> & {
|
|
3340
3340
|
value: string | string[];
|
|
3341
3341
|
displayValue: string | string[] | undefined;
|
|
3342
3342
|
inputValue: string;
|
|
@@ -3365,7 +3365,7 @@ type AutocompleteContext = Omit<UseAutocompleteProps, 'value' | 'defaultValue' |
|
|
|
3365
3365
|
};
|
|
3366
3366
|
declare const AutocompleteProvider: react.Provider<AutocompleteContext>;
|
|
3367
3367
|
declare const useAutocompleteContext: () => AutocompleteContext;
|
|
3368
|
-
type UseAutocompleteBaseProps<T extends string | string[] = string> = Omit<PopoverProps,
|
|
3368
|
+
type UseAutocompleteBaseProps<T extends string | string[] = string> = Omit<PopoverProps, "initialFocusRef" | "closeOnButton" | "isOpen" | "trigger" | "autoFocus" | "restoreFocus" | "openDelay" | "closeDelay"> & FormControlOptions & {
|
|
3369
3369
|
/**
|
|
3370
3370
|
* The value of the autocomplete.
|
|
3371
3371
|
*/
|
|
@@ -3395,7 +3395,7 @@ type UseAutocompleteBaseProps<T extends string | string[] = string> = Omit<Popov
|
|
|
3395
3395
|
*
|
|
3396
3396
|
* @default 'first'
|
|
3397
3397
|
*/
|
|
3398
|
-
insertPositionOnCreate?: Union<
|
|
3398
|
+
insertPositionOnCreate?: Union<"first" | "last"> | [string, "first" | "last"];
|
|
3399
3399
|
/**
|
|
3400
3400
|
* If `true`, the list element will be closed when value is selected.
|
|
3401
3401
|
*
|
|
@@ -3427,13 +3427,13 @@ type UseAutocompleteBaseProps<T extends string | string[] = string> = Omit<Popov
|
|
|
3427
3427
|
/**
|
|
3428
3428
|
* Props for select option element.
|
|
3429
3429
|
*/
|
|
3430
|
-
optionProps?: Omit<AutocompleteOptionProps,
|
|
3430
|
+
optionProps?: Omit<AutocompleteOptionProps, "value" | "children">;
|
|
3431
3431
|
/**
|
|
3432
3432
|
* If provided, generate options based on data.
|
|
3433
3433
|
*/
|
|
3434
3434
|
options?: UIOption[];
|
|
3435
3435
|
};
|
|
3436
|
-
type UseAutocompleteProps<T extends string | string[] = string> = Omit<HTMLUIProps<
|
|
3436
|
+
type UseAutocompleteProps<T extends string | string[] = string> = Omit<HTMLUIProps<"input">, keyof UseAutocompleteBaseProps | "list" | "disabled" | "required" | "readOnly" | "size"> & UseAutocompleteBaseProps<T>;
|
|
3437
3437
|
declare const useAutocomplete: <T extends string | string[] = string>({ defaultIsOpen, closeOnSelect, omitSelectedValues, maxSelectedValues, closeOnBlur, closeOnEsc, createOption, insertPositionOnCreate, emptyMessage, format, placement, duration, optionProps, placeholder, children, ...rest }: UseAutocompleteProps<T>) => {
|
|
3438
3438
|
id: string | undefined;
|
|
3439
3439
|
descendants: {
|
|
@@ -4086,7 +4086,7 @@ type UseAutocompleteInputReturn = ReturnType<typeof useAutocompleteInput>;
|
|
|
4086
4086
|
declare const useAutocompleteList: () => {
|
|
4087
4087
|
getListProps: PropGetter;
|
|
4088
4088
|
};
|
|
4089
|
-
type UseAutocompleteOptionGroupProps = HTMLUIProps<
|
|
4089
|
+
type UseAutocompleteOptionGroupProps = HTMLUIProps<"ul"> & {
|
|
4090
4090
|
/**
|
|
4091
4091
|
* The label of the autocomplete option group.
|
|
4092
4092
|
*/
|
|
@@ -4098,7 +4098,7 @@ declare const useAutocompleteOptionGroup: ({ label, ...rest }: UseAutocompleteOp
|
|
|
4098
4098
|
getGroupProps: PropGetter;
|
|
4099
4099
|
};
|
|
4100
4100
|
type UseAutocompleteOptionGroupReturn = ReturnType<typeof useAutocompleteOptionGroup>;
|
|
4101
|
-
type UseAutocompleteOptionProps = Omit<HTMLUIProps<
|
|
4101
|
+
type UseAutocompleteOptionProps = Omit<HTMLUIProps<"li">, "value" | "children"> & {
|
|
4102
4102
|
/**
|
|
4103
4103
|
* The value of the select option.
|
|
4104
4104
|
*/
|
|
@@ -5,4 +5,4 @@ import '@yamada-ui/form-control';
|
|
|
5
5
|
import '@yamada-ui/popover';
|
|
6
6
|
import '@yamada-ui/select';
|
|
7
7
|
import '@yamada-ui/utils';
|
|
8
|
-
export { c as AutocompleteDescendantsContextProvider, f as AutocompleteProvider, s as UseAutocompleteCreateReturn, v as UseAutocompleteEmptyReturn, k as UseAutocompleteInputReturn, U as UseAutocompleteOptionGroupProps, n as UseAutocompleteOptionGroupReturn, o as UseAutocompleteOptionProps, q as UseAutocompleteOptionReturn, b as UseAutocompleteProps, i as UseAutocompleteReturn, h as useAutocomplete, g as useAutocompleteContext, r as useAutocompleteCreate, e as useAutocompleteDescendant, d as useAutocompleteDescendants, u as useAutocompleteDescendantsContext, t as useAutocompleteEmpty, j as useAutocompleteInput, l as useAutocompleteList, p as useAutocompleteOption, m as useAutocompleteOptionGroup } from './use-autocomplete-
|
|
8
|
+
export { c as AutocompleteDescendantsContextProvider, f as AutocompleteProvider, s as UseAutocompleteCreateReturn, v as UseAutocompleteEmptyReturn, k as UseAutocompleteInputReturn, U as UseAutocompleteOptionGroupProps, n as UseAutocompleteOptionGroupReturn, o as UseAutocompleteOptionProps, q as UseAutocompleteOptionReturn, b as UseAutocompleteProps, i as UseAutocompleteReturn, h as useAutocomplete, g as useAutocompleteContext, r as useAutocompleteCreate, e as useAutocompleteDescendant, d as useAutocompleteDescendants, u as useAutocompleteDescendantsContext, t as useAutocompleteEmpty, j as useAutocompleteInput, l as useAutocompleteList, p as useAutocompleteOption, m as useAutocompleteOptionGroup } from './use-autocomplete-3271514f.js';
|
|
@@ -5,4 +5,4 @@ import '@yamada-ui/form-control';
|
|
|
5
5
|
import '@yamada-ui/popover';
|
|
6
6
|
import '@yamada-ui/select';
|
|
7
7
|
import '@yamada-ui/utils';
|
|
8
|
-
export { c as AutocompleteDescendantsContextProvider, f as AutocompleteProvider, s as UseAutocompleteCreateReturn, v as UseAutocompleteEmptyReturn, k as UseAutocompleteInputReturn, U as UseAutocompleteOptionGroupProps, n as UseAutocompleteOptionGroupReturn, o as UseAutocompleteOptionProps, q as UseAutocompleteOptionReturn, b as UseAutocompleteProps, i as UseAutocompleteReturn, h as useAutocomplete, g as useAutocompleteContext, r as useAutocompleteCreate, e as useAutocompleteDescendant, d as useAutocompleteDescendants, u as useAutocompleteDescendantsContext, t as useAutocompleteEmpty, j as useAutocompleteInput, l as useAutocompleteList, p as useAutocompleteOption, m as useAutocompleteOptionGroup } from './use-autocomplete-
|
|
8
|
+
export { c as AutocompleteDescendantsContextProvider, f as AutocompleteProvider, s as UseAutocompleteCreateReturn, v as UseAutocompleteEmptyReturn, k as UseAutocompleteInputReturn, U as UseAutocompleteOptionGroupProps, n as UseAutocompleteOptionGroupReturn, o as UseAutocompleteOptionProps, q as UseAutocompleteOptionReturn, b as UseAutocompleteProps, i as UseAutocompleteReturn, h as useAutocomplete, g as useAutocompleteContext, r as useAutocompleteCreate, e as useAutocompleteDescendant, d as useAutocompleteDescendants, u as useAutocompleteDescendantsContext, t as useAutocompleteEmpty, j as useAutocompleteInput, l as useAutocompleteList, p as useAutocompleteOption, m as useAutocompleteOptionGroup } from './use-autocomplete-3271514f.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/autocomplete",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20231111133020",
|
|
4
4
|
"description": "Yamada UI autocomplete component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"@yamada-ui/core": "0.12.5",
|
|
40
40
|
"@yamada-ui/utils": "0.3.3",
|
|
41
41
|
"@yamada-ui/icon": "0.3.15",
|
|
42
|
-
"@yamada-ui/select": "0.0.0-dev-
|
|
42
|
+
"@yamada-ui/select": "0.0.0-dev-20231111133020",
|
|
43
43
|
"@yamada-ui/form-control": "0.3.18",
|
|
44
|
-
"@yamada-ui/popover": "0.0.0-dev-
|
|
44
|
+
"@yamada-ui/popover": "0.0.0-dev-20231111133020",
|
|
45
45
|
"@yamada-ui/use-descendant": "0.2.5",
|
|
46
46
|
"@yamada-ui/use-clickable": "0.3.5",
|
|
47
47
|
"@yamada-ui/use-outside-click": "0.2.5",
|
|
48
|
-
"@yamada-ui/use-controllable-state": "0.
|
|
48
|
+
"@yamada-ui/use-controllable-state": "0.3.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"react": "^18.0.0",
|