@yamada-ui/autocomplete 2.0.0-next-20240619220221 → 2.0.0-next-20240701004015
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/autocomplete-create.mjs +1 -1
- package/dist/autocomplete-empty.mjs +1 -1
- package/dist/autocomplete-icon.mjs +1 -1
- package/dist/autocomplete-list.mjs +1 -1
- package/dist/autocomplete-option-group.d.mts +1 -1
- package/dist/autocomplete-option-group.d.ts +1 -1
- package/dist/autocomplete-option-group.mjs +1 -1
- package/dist/autocomplete-option.d.mts +1 -1
- package/dist/autocomplete-option.d.ts +1 -1
- package/dist/autocomplete-option.mjs +1 -1
- package/dist/autocomplete.d.mts +11 -1
- package/dist/autocomplete.d.ts +11 -1
- package/dist/autocomplete.js +4 -2
- package/dist/autocomplete.js.map +1 -1
- package/dist/autocomplete.mjs +1 -1
- package/dist/{chunk-W7B7WEFQ.mjs → chunk-DQV3VPJ3.mjs} +9 -5
- package/dist/{chunk-W7B7WEFQ.mjs.map → chunk-DQV3VPJ3.mjs.map} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/multi-autocomplete.d.mts +11 -1
- package/dist/multi-autocomplete.d.ts +11 -1
- package/dist/multi-autocomplete.js +4 -2
- package/dist/multi-autocomplete.js.map +1 -1
- package/dist/multi-autocomplete.mjs +1 -1
- package/dist/{use-autocomplete-h3CQff1L.d.mts → use-autocomplete-D30tMc5q.d.mts} +20 -40
- package/dist/{use-autocomplete-h3CQff1L.d.ts → use-autocomplete-D30tMc5q.d.ts} +20 -40
- package/dist/use-autocomplete.d.mts +1 -1
- package/dist/use-autocomplete.d.ts +1 -1
- package/dist/use-autocomplete.mjs +1 -1
- package/package.json +13 -13
@@ -30,8 +30,8 @@ type AutocompleteItemWithItems = AutocompleteBaseItem & {
|
|
30
30
|
type AutocompleteItem = AutocompleteItemWithValue | AutocompleteItemWithItems;
|
31
31
|
declare const AutocompleteDescendantsContextProvider: react.Provider<{
|
32
32
|
register: (nodeOrOptions: HTMLElement | {
|
33
|
-
disabled?: boolean
|
34
|
-
id?: string
|
33
|
+
disabled?: boolean;
|
34
|
+
id?: string;
|
35
35
|
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
36
36
|
} | null) => void | ((node: HTMLElement | null) => void);
|
37
37
|
unregister: (node: HTMLElement) => void;
|
@@ -42,15 +42,11 @@ declare const AutocompleteDescendantsContextProvider: react.Provider<{
|
|
42
42
|
indexOf: (node: HTMLElement | null) => number;
|
43
43
|
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
44
44
|
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
45
|
-
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
46
|
-
* The value of the autocomplete.
|
47
|
-
*/
|
45
|
+
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
48
46
|
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
49
47
|
enabledCount: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
50
48
|
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
51
|
-
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
52
|
-
* The initial value of the autocomplete.
|
53
|
-
*/
|
49
|
+
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
54
50
|
enabledIndexOf: (node: HTMLElement | null, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
55
51
|
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
56
52
|
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
@@ -59,8 +55,8 @@ declare const AutocompleteDescendantsContextProvider: react.Provider<{
|
|
59
55
|
}>;
|
60
56
|
declare const useAutocompleteDescendantsContext: () => {
|
61
57
|
register: (nodeOrOptions: HTMLElement | {
|
62
|
-
disabled?: boolean
|
63
|
-
id?: string
|
58
|
+
disabled?: boolean;
|
59
|
+
id?: string;
|
64
60
|
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
65
61
|
} | null) => void | ((node: HTMLElement | null) => void);
|
66
62
|
unregister: (node: HTMLElement) => void;
|
@@ -71,15 +67,11 @@ declare const useAutocompleteDescendantsContext: () => {
|
|
71
67
|
indexOf: (node: HTMLElement | null) => number;
|
72
68
|
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
73
69
|
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
74
|
-
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
75
|
-
* The value of the autocomplete.
|
76
|
-
*/
|
70
|
+
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
77
71
|
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
78
72
|
enabledCount: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
79
73
|
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
80
|
-
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
81
|
-
* The initial value of the autocomplete.
|
82
|
-
*/
|
74
|
+
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
83
75
|
enabledIndexOf: (node: HTMLElement | null, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
84
76
|
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
85
77
|
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
@@ -88,8 +80,8 @@ declare const useAutocompleteDescendantsContext: () => {
|
|
88
80
|
};
|
89
81
|
declare const useAutocompleteDescendants: () => {
|
90
82
|
register: (nodeOrOptions: HTMLElement | {
|
91
|
-
disabled?: boolean
|
92
|
-
id?: string
|
83
|
+
disabled?: boolean;
|
84
|
+
id?: string;
|
93
85
|
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
94
86
|
} | null) => void | ((node: HTMLElement | null) => void);
|
95
87
|
unregister: (node: HTMLElement) => void;
|
@@ -100,15 +92,11 @@ declare const useAutocompleteDescendants: () => {
|
|
100
92
|
indexOf: (node: HTMLElement | null) => number;
|
101
93
|
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
102
94
|
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
103
|
-
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
104
|
-
* The value of the autocomplete.
|
105
|
-
*/
|
95
|
+
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
106
96
|
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
107
97
|
enabledCount: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
108
98
|
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
109
|
-
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
110
|
-
* The initial value of the autocomplete.
|
111
|
-
*/
|
99
|
+
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
112
100
|
enabledIndexOf: (node: HTMLElement | null, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
113
101
|
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
114
102
|
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
@@ -116,8 +104,8 @@ declare const useAutocompleteDescendants: () => {
|
|
116
104
|
enabledNextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
117
105
|
};
|
118
106
|
declare const useAutocompleteDescendant: (options?: {
|
119
|
-
disabled?: boolean
|
120
|
-
id?: string
|
107
|
+
disabled?: boolean;
|
108
|
+
id?: string;
|
121
109
|
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
122
110
|
} | undefined) => {
|
123
111
|
descendants: {
|
@@ -130,15 +118,11 @@ declare const useAutocompleteDescendant: (options?: {
|
|
130
118
|
indexOf: (node: HTMLElement | null) => number;
|
131
119
|
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
132
120
|
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
133
|
-
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
134
|
-
* The value of the autocomplete.
|
135
|
-
*/
|
121
|
+
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
136
122
|
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
137
123
|
enabledCount: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => number;
|
138
124
|
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>>[];
|
139
|
-
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
140
|
-
* The initial value of the autocomplete.
|
141
|
-
*/
|
125
|
+
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
142
126
|
enabledIndexOf: (node: HTMLElement | null, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => number;
|
143
127
|
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
144
128
|
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
@@ -255,8 +239,8 @@ declare const useAutocomplete: <T extends string | string[] = string>({ value: v
|
|
255
239
|
id: string | undefined;
|
256
240
|
descendants: {
|
257
241
|
register: (nodeOrOptions: HTMLElement | {
|
258
|
-
disabled?: boolean
|
259
|
-
id?: string
|
242
|
+
disabled?: boolean;
|
243
|
+
id?: string;
|
260
244
|
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
261
245
|
} | null) => void | ((node: HTMLElement | null) => void);
|
262
246
|
unregister: (node: HTMLElement) => void;
|
@@ -267,15 +251,11 @@ declare const useAutocomplete: <T extends string | string[] = string>({ value: v
|
|
267
251
|
indexOf: (node: HTMLElement | null) => number;
|
268
252
|
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
269
253
|
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
270
|
-
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
271
|
-
* The value of the autocomplete.
|
272
|
-
*/
|
254
|
+
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
273
255
|
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
274
256
|
enabledCount: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
275
257
|
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
276
|
-
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
277
|
-
* The initial value of the autocomplete.
|
278
|
-
*/
|
258
|
+
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
279
259
|
enabledIndexOf: (node: HTMLElement | null, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
280
260
|
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
281
261
|
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
@@ -30,8 +30,8 @@ type AutocompleteItemWithItems = AutocompleteBaseItem & {
|
|
30
30
|
type AutocompleteItem = AutocompleteItemWithValue | AutocompleteItemWithItems;
|
31
31
|
declare const AutocompleteDescendantsContextProvider: react.Provider<{
|
32
32
|
register: (nodeOrOptions: HTMLElement | {
|
33
|
-
disabled?: boolean
|
34
|
-
id?: string
|
33
|
+
disabled?: boolean;
|
34
|
+
id?: string;
|
35
35
|
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
36
36
|
} | null) => void | ((node: HTMLElement | null) => void);
|
37
37
|
unregister: (node: HTMLElement) => void;
|
@@ -42,15 +42,11 @@ declare const AutocompleteDescendantsContextProvider: react.Provider<{
|
|
42
42
|
indexOf: (node: HTMLElement | null) => number;
|
43
43
|
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
44
44
|
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
45
|
-
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
46
|
-
* The value of the autocomplete.
|
47
|
-
*/
|
45
|
+
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
48
46
|
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
49
47
|
enabledCount: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
50
48
|
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
51
|
-
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
52
|
-
* The initial value of the autocomplete.
|
53
|
-
*/
|
49
|
+
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
54
50
|
enabledIndexOf: (node: HTMLElement | null, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
55
51
|
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
56
52
|
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
@@ -59,8 +55,8 @@ declare const AutocompleteDescendantsContextProvider: react.Provider<{
|
|
59
55
|
}>;
|
60
56
|
declare const useAutocompleteDescendantsContext: () => {
|
61
57
|
register: (nodeOrOptions: HTMLElement | {
|
62
|
-
disabled?: boolean
|
63
|
-
id?: string
|
58
|
+
disabled?: boolean;
|
59
|
+
id?: string;
|
64
60
|
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
65
61
|
} | null) => void | ((node: HTMLElement | null) => void);
|
66
62
|
unregister: (node: HTMLElement) => void;
|
@@ -71,15 +67,11 @@ declare const useAutocompleteDescendantsContext: () => {
|
|
71
67
|
indexOf: (node: HTMLElement | null) => number;
|
72
68
|
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
73
69
|
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
74
|
-
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
75
|
-
* The value of the autocomplete.
|
76
|
-
*/
|
70
|
+
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
77
71
|
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
78
72
|
enabledCount: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
79
73
|
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
80
|
-
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
81
|
-
* The initial value of the autocomplete.
|
82
|
-
*/
|
74
|
+
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
83
75
|
enabledIndexOf: (node: HTMLElement | null, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
84
76
|
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
85
77
|
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
@@ -88,8 +80,8 @@ declare const useAutocompleteDescendantsContext: () => {
|
|
88
80
|
};
|
89
81
|
declare const useAutocompleteDescendants: () => {
|
90
82
|
register: (nodeOrOptions: HTMLElement | {
|
91
|
-
disabled?: boolean
|
92
|
-
id?: string
|
83
|
+
disabled?: boolean;
|
84
|
+
id?: string;
|
93
85
|
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
94
86
|
} | null) => void | ((node: HTMLElement | null) => void);
|
95
87
|
unregister: (node: HTMLElement) => void;
|
@@ -100,15 +92,11 @@ declare const useAutocompleteDescendants: () => {
|
|
100
92
|
indexOf: (node: HTMLElement | null) => number;
|
101
93
|
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
102
94
|
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
103
|
-
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
104
|
-
* The value of the autocomplete.
|
105
|
-
*/
|
95
|
+
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
106
96
|
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
107
97
|
enabledCount: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
108
98
|
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
109
|
-
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
110
|
-
* The initial value of the autocomplete.
|
111
|
-
*/
|
99
|
+
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
112
100
|
enabledIndexOf: (node: HTMLElement | null, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
113
101
|
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
114
102
|
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
@@ -116,8 +104,8 @@ declare const useAutocompleteDescendants: () => {
|
|
116
104
|
enabledNextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
117
105
|
};
|
118
106
|
declare const useAutocompleteDescendant: (options?: {
|
119
|
-
disabled?: boolean
|
120
|
-
id?: string
|
107
|
+
disabled?: boolean;
|
108
|
+
id?: string;
|
121
109
|
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
122
110
|
} | undefined) => {
|
123
111
|
descendants: {
|
@@ -130,15 +118,11 @@ declare const useAutocompleteDescendant: (options?: {
|
|
130
118
|
indexOf: (node: HTMLElement | null) => number;
|
131
119
|
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
132
120
|
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
133
|
-
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
134
|
-
* The value of the autocomplete.
|
135
|
-
*/
|
121
|
+
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
136
122
|
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
137
123
|
enabledCount: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => number;
|
138
124
|
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>>[];
|
139
|
-
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
140
|
-
* The initial value of the autocomplete.
|
141
|
-
*/
|
125
|
+
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
142
126
|
enabledIndexOf: (node: HTMLElement | null, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => number;
|
143
127
|
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
144
128
|
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, Record<string, any>> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, Record<string, any>> | undefined;
|
@@ -255,8 +239,8 @@ declare const useAutocomplete: <T extends string | string[] = string>({ value: v
|
|
255
239
|
id: string | undefined;
|
256
240
|
descendants: {
|
257
241
|
register: (nodeOrOptions: HTMLElement | {
|
258
|
-
disabled?: boolean
|
259
|
-
id?: string
|
242
|
+
disabled?: boolean;
|
243
|
+
id?: string;
|
260
244
|
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
261
245
|
} | null) => void | ((node: HTMLElement | null) => void);
|
262
246
|
unregister: (node: HTMLElement) => void;
|
@@ -267,15 +251,11 @@ declare const useAutocomplete: <T extends string | string[] = string>({ value: v
|
|
267
251
|
indexOf: (node: HTMLElement | null) => number;
|
268
252
|
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
269
253
|
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
270
|
-
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
271
|
-
* The value of the autocomplete.
|
272
|
-
*/
|
254
|
+
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
273
255
|
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
274
256
|
enabledCount: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
275
257
|
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
276
|
-
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
277
|
-
* The initial value of the autocomplete.
|
278
|
-
*/
|
258
|
+
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
279
259
|
enabledIndexOf: (node: HTMLElement | null, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
280
260
|
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
281
261
|
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
@@ -6,4 +6,4 @@ import '@yamada-ui/form-control';
|
|
6
6
|
import '@yamada-ui/motion';
|
7
7
|
import '@yamada-ui/popover';
|
8
8
|
import '@yamada-ui/utils';
|
9
|
-
export { d as AutocompleteDescendantsContextProvider, b as AutocompleteItem, g as AutocompleteProvider, t as UseAutocompleteCreateReturn, w as UseAutocompleteEmptyReturn, l as UseAutocompleteInputReturn, U as UseAutocompleteOptionGroupProps, o as UseAutocompleteOptionGroupReturn, p as UseAutocompleteOptionProps, r as UseAutocompleteOptionReturn, c as UseAutocompleteProps, j as UseAutocompleteReturn, i as useAutocomplete, h as useAutocompleteContext, s as useAutocompleteCreate, f as useAutocompleteDescendant, e as useAutocompleteDescendants, u as useAutocompleteDescendantsContext, v as useAutocompleteEmpty, k as useAutocompleteInput, m as useAutocompleteList, q as useAutocompleteOption, n as useAutocompleteOptionGroup } from './use-autocomplete-
|
9
|
+
export { d as AutocompleteDescendantsContextProvider, b as AutocompleteItem, g as AutocompleteProvider, t as UseAutocompleteCreateReturn, w as UseAutocompleteEmptyReturn, l as UseAutocompleteInputReturn, U as UseAutocompleteOptionGroupProps, o as UseAutocompleteOptionGroupReturn, p as UseAutocompleteOptionProps, r as UseAutocompleteOptionReturn, c as UseAutocompleteProps, j as UseAutocompleteReturn, i as useAutocomplete, h as useAutocompleteContext, s as useAutocompleteCreate, f as useAutocompleteDescendant, e as useAutocompleteDescendants, u as useAutocompleteDescendantsContext, v as useAutocompleteEmpty, k as useAutocompleteInput, m as useAutocompleteList, q as useAutocompleteOption, n as useAutocompleteOptionGroup } from './use-autocomplete-D30tMc5q.mjs';
|
@@ -6,4 +6,4 @@ import '@yamada-ui/form-control';
|
|
6
6
|
import '@yamada-ui/motion';
|
7
7
|
import '@yamada-ui/popover';
|
8
8
|
import '@yamada-ui/utils';
|
9
|
-
export { d as AutocompleteDescendantsContextProvider, b as AutocompleteItem, g as AutocompleteProvider, t as UseAutocompleteCreateReturn, w as UseAutocompleteEmptyReturn, l as UseAutocompleteInputReturn, U as UseAutocompleteOptionGroupProps, o as UseAutocompleteOptionGroupReturn, p as UseAutocompleteOptionProps, r as UseAutocompleteOptionReturn, c as UseAutocompleteProps, j as UseAutocompleteReturn, i as useAutocomplete, h as useAutocompleteContext, s as useAutocompleteCreate, f as useAutocompleteDescendant, e as useAutocompleteDescendants, u as useAutocompleteDescendantsContext, v as useAutocompleteEmpty, k as useAutocompleteInput, m as useAutocompleteList, q as useAutocompleteOption, n as useAutocompleteOptionGroup } from './use-autocomplete-
|
9
|
+
export { d as AutocompleteDescendantsContextProvider, b as AutocompleteItem, g as AutocompleteProvider, t as UseAutocompleteCreateReturn, w as UseAutocompleteEmptyReturn, l as UseAutocompleteInputReturn, U as UseAutocompleteOptionGroupProps, o as UseAutocompleteOptionGroupReturn, p as UseAutocompleteOptionProps, r as UseAutocompleteOptionReturn, c as UseAutocompleteProps, j as UseAutocompleteReturn, i as useAutocomplete, h as useAutocompleteContext, s as useAutocompleteCreate, f as useAutocompleteDescendant, e as useAutocompleteDescendants, u as useAutocompleteDescendantsContext, v as useAutocompleteEmpty, k as useAutocompleteInput, m as useAutocompleteList, q as useAutocompleteOption, n as useAutocompleteOptionGroup } from './use-autocomplete-D30tMc5q.js';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@yamada-ui/autocomplete",
|
3
|
-
"version": "2.0.0-next-
|
3
|
+
"version": "2.0.0-next-20240701004015",
|
4
4
|
"description": "Yamada UI autocomplete component",
|
5
5
|
"keywords": [
|
6
6
|
"yamada",
|
@@ -37,18 +37,18 @@
|
|
37
37
|
"url": "https://github.com/yamada-ui/yamada-ui/issues"
|
38
38
|
},
|
39
39
|
"dependencies": {
|
40
|
-
"@yamada-ui/core": "1.
|
41
|
-
"@yamada-ui/utils": "1.
|
42
|
-
"@yamada-ui/icon": "1.0.
|
43
|
-
"@yamada-ui/form-control": "
|
44
|
-
"@yamada-ui/use-disclosure": "1.0.
|
45
|
-
"@yamada-ui/motion": "
|
46
|
-
"@yamada-ui/popover": "2.0.0-next-
|
47
|
-
"@yamada-ui/use-descendant": "1.0.
|
48
|
-
"@yamada-ui/use-clickable": "1.2.
|
49
|
-
"@yamada-ui/use-outside-click": "1.0.
|
50
|
-
"@yamada-ui/use-controllable-state": "1.0.
|
51
|
-
"@yamada-ui/portal": "1.0.
|
40
|
+
"@yamada-ui/core": "1.9.1-next-20240701004015",
|
41
|
+
"@yamada-ui/utils": "1.3.1-next-20240701004015",
|
42
|
+
"@yamada-ui/icon": "1.0.31-next-20240701004015",
|
43
|
+
"@yamada-ui/form-control": "3.0.0-next-20240701004015",
|
44
|
+
"@yamada-ui/use-disclosure": "1.0.16-next-20240701004015",
|
45
|
+
"@yamada-ui/motion": "2.0.2-next-20240701004015",
|
46
|
+
"@yamada-ui/popover": "2.0.0-next-20240701004015",
|
47
|
+
"@yamada-ui/use-descendant": "1.0.17-next-20240701004015",
|
48
|
+
"@yamada-ui/use-clickable": "1.2.4-next-20240701004015",
|
49
|
+
"@yamada-ui/use-outside-click": "1.0.16-next-20240701004015",
|
50
|
+
"@yamada-ui/use-controllable-state": "1.0.16-next-20240701004015",
|
51
|
+
"@yamada-ui/portal": "1.0.17-next-20240701004015"
|
52
52
|
},
|
53
53
|
"devDependencies": {
|
54
54
|
"react": "^18.0.0",
|