@yamada-ui/autocomplete 1.5.4-next-20241005220055 → 1.6.0-dev-20241011151311
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/autocomplete-context.d.mts +115 -115
- package/dist/autocomplete-context.d.ts +115 -115
- package/dist/autocomplete-context.js +2 -2
- package/dist/autocomplete-context.js.map +1 -1
- package/dist/autocomplete-context.mjs +1 -1
- package/dist/autocomplete-create.d.mts +4 -4
- package/dist/autocomplete-create.d.ts +4 -4
- package/dist/autocomplete-create.js +32 -32
- package/dist/autocomplete-create.js.map +1 -1
- package/dist/autocomplete-create.mjs +4 -4
- package/dist/autocomplete-empty.d.mts +4 -4
- package/dist/autocomplete-empty.d.ts +4 -4
- package/dist/autocomplete-empty.js +34 -34
- package/dist/autocomplete-empty.js.map +1 -1
- package/dist/autocomplete-empty.mjs +4 -4
- package/dist/autocomplete-icon.js +17 -17
- package/dist/autocomplete-icon.js.map +1 -1
- package/dist/autocomplete-icon.mjs +2 -2
- package/dist/autocomplete-list.d.mts +2 -2
- package/dist/autocomplete-list.d.ts +2 -2
- package/dist/autocomplete-list.js +18 -18
- package/dist/autocomplete-list.js.map +1 -1
- package/dist/autocomplete-list.mjs +3 -3
- package/dist/autocomplete-option-group.js +10 -10
- package/dist/autocomplete-option-group.js.map +1 -1
- package/dist/autocomplete-option-group.mjs +3 -3
- package/dist/autocomplete-option.d.mts +1 -1
- package/dist/autocomplete-option.d.ts +1 -1
- package/dist/autocomplete-option.js +56 -47
- package/dist/autocomplete-option.js.map +1 -1
- package/dist/autocomplete-option.mjs +4 -4
- package/dist/autocomplete.d.mts +31 -31
- package/dist/autocomplete.d.ts +31 -31
- package/dist/autocomplete.js +303 -292
- package/dist/autocomplete.js.map +1 -1
- package/dist/autocomplete.mjs +12 -12
- package/dist/{chunk-5GKGL6BL.mjs → chunk-2HJUFFCU.mjs} +16 -16
- package/dist/chunk-2HJUFFCU.mjs.map +1 -0
- package/dist/{chunk-6F3LT7J6.mjs → chunk-4SBNPEK7.mjs} +7 -7
- package/dist/{chunk-6F3LT7J6.mjs.map → chunk-4SBNPEK7.mjs.map} +1 -1
- package/dist/{chunk-JMX72TSD.mjs → chunk-67X7JKWL.mjs} +7 -7
- package/dist/{chunk-JMX72TSD.mjs.map → chunk-67X7JKWL.mjs.map} +1 -1
- package/dist/{chunk-5LPWFWE6.mjs → chunk-6OLHNK7O.mjs} +46 -34
- package/dist/chunk-6OLHNK7O.mjs.map +1 -0
- package/dist/{chunk-QPIWG4ZF.mjs → chunk-7LZUXESV.mjs} +63 -61
- package/dist/chunk-7LZUXESV.mjs.map +1 -0
- package/dist/{chunk-S2HFYJVI.mjs → chunk-AIBJWPRA.mjs} +13 -13
- package/dist/chunk-AIBJWPRA.mjs.map +1 -0
- package/dist/{chunk-Q2HZVVOI.mjs → chunk-K5HCHHCJ.mjs} +16 -16
- package/dist/chunk-K5HCHHCJ.mjs.map +1 -0
- package/dist/{chunk-HZECQUHV.mjs → chunk-Q33EMTO2.mjs} +40 -40
- package/dist/{chunk-HZECQUHV.mjs.map → chunk-Q33EMTO2.mjs.map} +1 -1
- package/dist/{chunk-R76HPAN4.mjs → chunk-TR4X4EEG.mjs} +7 -7
- package/dist/{chunk-R76HPAN4.mjs.map → chunk-TR4X4EEG.mjs.map} +1 -1
- package/dist/{chunk-7SWSKLSA.mjs → chunk-V6YCG642.mjs} +18 -18
- package/dist/chunk-V6YCG642.mjs.map +1 -0
- package/dist/{chunk-S53LMDD7.mjs → chunk-VTBUO5SK.mjs} +15 -15
- package/dist/chunk-VTBUO5SK.mjs.map +1 -0
- package/dist/{chunk-JPUKYLBW.mjs → chunk-WDQYM4FP.mjs} +5 -5
- package/dist/chunk-WDQYM4FP.mjs.map +1 -0
- package/dist/{chunk-OLOU5HFC.mjs → chunk-WERCEZNJ.mjs} +168 -166
- package/dist/chunk-WERCEZNJ.mjs.map +1 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +356 -343
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/multi-autocomplete.d.mts +51 -51
- package/dist/multi-autocomplete.d.ts +51 -51
- package/dist/multi-autocomplete.js +326 -313
- package/dist/multi-autocomplete.js.map +1 -1
- package/dist/multi-autocomplete.mjs +12 -12
- package/dist/use-autocomplete-list.d.mts +1 -1
- package/dist/use-autocomplete-list.d.ts +1 -1
- package/dist/use-autocomplete-list.js +7 -7
- package/dist/use-autocomplete-list.js.map +1 -1
- package/dist/use-autocomplete-list.mjs +2 -2
- package/dist/use-autocomplete-option-group.js +7 -7
- package/dist/use-autocomplete-option-group.js.map +1 -1
- package/dist/use-autocomplete-option-group.mjs +2 -2
- package/dist/use-autocomplete-option.d.mts +12 -12
- package/dist/use-autocomplete-option.d.ts +12 -12
- package/dist/use-autocomplete-option.js +43 -34
- package/dist/use-autocomplete-option.js.map +1 -1
- package/dist/use-autocomplete-option.mjs +2 -2
- package/dist/use-autocomplete.d.mts +86 -86
- package/dist/use-autocomplete.d.ts +86 -86
- package/dist/use-autocomplete.js +225 -214
- package/dist/use-autocomplete.js.map +1 -1
- package/dist/use-autocomplete.mjs +7 -7
- package/package.json +13 -13
- package/dist/chunk-5GKGL6BL.mjs.map +0 -1
- package/dist/chunk-5LPWFWE6.mjs.map +0 -1
- package/dist/chunk-7SWSKLSA.mjs.map +0 -1
- package/dist/chunk-JPUKYLBW.mjs.map +0 -1
- package/dist/chunk-OLOU5HFC.mjs.map +0 -1
- package/dist/chunk-Q2HZVVOI.mjs.map +0 -1
- package/dist/chunk-QPIWG4ZF.mjs.map +0 -1
- package/dist/chunk-S2HFYJVI.mjs.map +0 -1
- package/dist/chunk-S53LMDD7.mjs.map +0 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import {
|
2
|
+
import { RefObject, Dispatch, SetStateAction, DOMAttributes } from 'react';
|
3
3
|
import * as _yamada_ui_use_descendant from '@yamada-ui/use-descendant';
|
4
4
|
import { CSSUIObject } from '@yamada-ui/core';
|
5
5
|
import { UseAutocompleteProps, ChangeOptions } from './use-autocomplete.mjs';
|
@@ -13,196 +13,196 @@ import './autocomplete-option-group.mjs';
|
|
13
13
|
import './use-autocomplete-option-group.mjs';
|
14
14
|
|
15
15
|
declare const AutocompleteDescendantsContextProvider: react.Provider<{
|
16
|
-
register: (nodeOrOptions: HTMLElement | {
|
17
|
-
disabled?: boolean;
|
18
|
-
id?: string;
|
19
|
-
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
20
|
-
} | null) => void | ((node: HTMLElement | null) => void);
|
21
|
-
unregister: (node: HTMLElement) => void;
|
22
|
-
destroy: () => void;
|
23
16
|
count: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
24
|
-
|
25
|
-
value: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
26
|
-
indexOf: (node: HTMLElement | null) => number;
|
27
|
-
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
28
|
-
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
29
|
-
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
30
|
-
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
17
|
+
destroy: () => void;
|
31
18
|
enabledCount: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
32
|
-
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
33
|
-
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
34
|
-
enabledIndexOf: (node: HTMLElement | null, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
35
19
|
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
20
|
+
enabledIndexOf: (node?: HTMLElement | null | undefined, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
36
21
|
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
37
|
-
enabledPrevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
38
22
|
enabledNextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
39
|
-
}
|
40
|
-
|
41
|
-
|
42
|
-
disabled?: boolean;
|
43
|
-
id?: string;
|
44
|
-
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
45
|
-
} | null) => void | ((node: HTMLElement | null) => void);
|
46
|
-
unregister: (node: HTMLElement) => void;
|
47
|
-
destroy: () => void;
|
48
|
-
count: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
49
|
-
values: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
50
|
-
value: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
51
|
-
indexOf: (node: HTMLElement | null) => number;
|
23
|
+
enabledPrevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
24
|
+
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
25
|
+
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
52
26
|
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
27
|
+
indexOf: (node?: HTMLElement | null | undefined) => number;
|
53
28
|
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
54
|
-
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
55
29
|
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
56
|
-
|
57
|
-
|
58
|
-
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
59
|
-
enabledIndexOf: (node: HTMLElement | null, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
60
|
-
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
61
|
-
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
62
|
-
enabledPrevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
63
|
-
enabledNextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
64
|
-
};
|
65
|
-
declare const useAutocompleteDescendants: () => {
|
66
|
-
register: (nodeOrOptions: HTMLElement | {
|
67
|
-
disabled?: boolean;
|
30
|
+
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
31
|
+
register: (nodeOrOptions?: HTMLElement | {
|
68
32
|
id?: string;
|
33
|
+
disabled?: boolean;
|
69
34
|
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
70
|
-
} | null) => void | ((node: HTMLElement | null) => void);
|
71
|
-
unregister: (node
|
72
|
-
destroy: () => void;
|
73
|
-
count: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
74
|
-
values: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
35
|
+
} | null | undefined) => void | ((node: HTMLElement | null) => void);
|
36
|
+
unregister: (node?: HTMLElement | undefined) => void;
|
75
37
|
value: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
76
|
-
|
77
|
-
|
78
|
-
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
79
|
-
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
80
|
-
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
81
|
-
enabledCount: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
82
|
-
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
83
|
-
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
84
|
-
enabledIndexOf: (node: HTMLElement | null, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
85
|
-
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
86
|
-
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
87
|
-
enabledPrevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
88
|
-
enabledNextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
89
|
-
};
|
38
|
+
values: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
39
|
+
}>;
|
90
40
|
declare const useAutocompleteDescendant: (options?: {
|
91
|
-
disabled?: boolean;
|
92
41
|
id?: string;
|
42
|
+
disabled?: boolean;
|
93
43
|
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
94
44
|
} | undefined) => {
|
95
45
|
descendants: {
|
96
|
-
register: (nodeOrOptions: HTMLElement | _yamada_ui_use_descendant.DescendantOptions<HTMLElement, {
|
97
|
-
[key: string]: any;
|
98
|
-
}> | null) => void | ((node: HTMLElement | null) => void);
|
99
|
-
unregister: (node: HTMLElement) => void;
|
100
|
-
destroy: () => void;
|
101
46
|
count: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
102
47
|
[key: string]: any;
|
103
48
|
}> | undefined) => number;
|
104
|
-
|
105
|
-
|
106
|
-
}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {
|
49
|
+
destroy: () => void;
|
50
|
+
enabledCount: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
107
51
|
[key: string]: any;
|
108
|
-
}>
|
109
|
-
|
52
|
+
}> | undefined) => number;
|
53
|
+
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
110
54
|
[key: string]: any;
|
111
55
|
}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {
|
112
56
|
[key: string]: any;
|
113
57
|
}> | undefined;
|
114
|
-
|
115
|
-
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
116
|
-
[key: string]: any;
|
117
|
-
}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {
|
58
|
+
enabledIndexOf: (node?: HTMLElement | null | undefined, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
118
59
|
[key: string]: any;
|
119
|
-
}> | undefined;
|
120
|
-
|
60
|
+
}> | undefined) => number;
|
61
|
+
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
121
62
|
[key: string]: any;
|
122
63
|
}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {
|
123
64
|
[key: string]: any;
|
124
65
|
}> | undefined;
|
125
|
-
|
66
|
+
enabledNextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
126
67
|
[key: string]: any;
|
127
68
|
}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {
|
128
69
|
[key: string]: any;
|
129
70
|
}> | undefined;
|
130
|
-
|
71
|
+
enabledPrevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
131
72
|
[key: string]: any;
|
132
73
|
}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {
|
133
74
|
[key: string]: any;
|
134
75
|
}> | undefined;
|
135
|
-
|
76
|
+
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
136
77
|
[key: string]: any;
|
137
|
-
}> | undefined) =>
|
78
|
+
}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {
|
79
|
+
[key: string]: any;
|
80
|
+
}> | undefined;
|
138
81
|
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
139
82
|
[key: string]: any;
|
140
83
|
}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {
|
141
84
|
[key: string]: any;
|
142
85
|
}>[];
|
143
|
-
|
86
|
+
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
144
87
|
[key: string]: any;
|
145
88
|
}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {
|
146
89
|
[key: string]: any;
|
147
90
|
}> | undefined;
|
148
|
-
|
149
|
-
|
150
|
-
}> | undefined) => number;
|
151
|
-
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
91
|
+
indexOf: (node?: HTMLElement | null | undefined) => number;
|
92
|
+
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
152
93
|
[key: string]: any;
|
153
94
|
}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {
|
154
95
|
[key: string]: any;
|
155
96
|
}> | undefined;
|
156
|
-
|
97
|
+
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
157
98
|
[key: string]: any;
|
158
|
-
}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {
|
99
|
+
}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {
|
159
100
|
[key: string]: any;
|
160
101
|
}> | undefined;
|
161
|
-
|
102
|
+
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
162
103
|
[key: string]: any;
|
163
104
|
}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {
|
164
105
|
[key: string]: any;
|
165
106
|
}> | undefined;
|
166
|
-
|
107
|
+
register: (nodeOrOptions?: HTMLElement | _yamada_ui_use_descendant.DescendantOptions<HTMLElement, {
|
167
108
|
[key: string]: any;
|
168
|
-
}> |
|
109
|
+
}> | null | undefined) => void | ((node: HTMLElement | null) => void);
|
110
|
+
unregister: (node?: HTMLElement | undefined) => void;
|
111
|
+
value: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
112
|
+
[key: string]: any;
|
113
|
+
}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {
|
169
114
|
[key: string]: any;
|
170
115
|
}> | undefined;
|
116
|
+
values: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {
|
117
|
+
[key: string]: any;
|
118
|
+
}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {
|
119
|
+
[key: string]: any;
|
120
|
+
}>[];
|
171
121
|
};
|
172
|
-
index: number;
|
173
122
|
enabledIndex: number;
|
123
|
+
index: number;
|
174
124
|
register: (node: HTMLElement | null) => void;
|
175
125
|
};
|
176
|
-
|
177
|
-
|
178
|
-
|
126
|
+
declare const useAutocompleteDescendants: () => {
|
127
|
+
count: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
128
|
+
destroy: () => void;
|
129
|
+
enabledCount: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
130
|
+
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
131
|
+
enabledIndexOf: (node?: HTMLElement | null | undefined, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
132
|
+
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
133
|
+
enabledNextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
134
|
+
enabledPrevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
135
|
+
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
136
|
+
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
137
|
+
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
138
|
+
indexOf: (node?: HTMLElement | null | undefined) => number;
|
139
|
+
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
140
|
+
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
141
|
+
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
142
|
+
register: (nodeOrOptions?: HTMLElement | {
|
143
|
+
id?: string;
|
144
|
+
disabled?: boolean;
|
145
|
+
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
146
|
+
} | null | undefined) => void | ((node: HTMLElement | null) => void);
|
147
|
+
unregister: (node?: HTMLElement | undefined) => void;
|
148
|
+
value: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
149
|
+
values: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
150
|
+
};
|
151
|
+
declare const useAutocompleteDescendantsContext: () => {
|
152
|
+
count: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
153
|
+
destroy: () => void;
|
154
|
+
enabledCount: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
155
|
+
enabledFirstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
156
|
+
enabledIndexOf: (node?: HTMLElement | null | undefined, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => number;
|
157
|
+
enabledLastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
158
|
+
enabledNextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
159
|
+
enabledPrevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
160
|
+
enabledValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
161
|
+
enabledValues: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
162
|
+
firstValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
163
|
+
indexOf: (node?: HTMLElement | null | undefined) => number;
|
164
|
+
lastValue: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
165
|
+
nextValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
166
|
+
prevValue: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined, loop?: boolean) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
167
|
+
register: (nodeOrOptions?: HTMLElement | {
|
168
|
+
id?: string;
|
169
|
+
disabled?: boolean;
|
170
|
+
filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined;
|
171
|
+
} | null | undefined) => void | ((node: HTMLElement | null) => void);
|
172
|
+
unregister: (node?: HTMLElement | undefined) => void;
|
173
|
+
value: (index: number, filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}> | undefined;
|
174
|
+
values: (filter?: _yamada_ui_use_descendant.FilterDescendant<HTMLElement, {}> | undefined) => _yamada_ui_use_descendant.Descendant<HTMLElement, {}>[];
|
175
|
+
};
|
176
|
+
interface AutocompleteContext extends Omit<UseAutocompleteProps, "defaultValue" | "onChange" | "onCreate" | "value"> {
|
177
|
+
focusedIndex: number;
|
178
|
+
inputRef: RefObject<HTMLInputElement>;
|
179
179
|
inputValue: string;
|
180
|
-
isHit: boolean;
|
181
|
-
isEmpty: boolean;
|
182
180
|
isAllSelected: boolean;
|
183
|
-
|
184
|
-
|
181
|
+
isEmpty: boolean;
|
182
|
+
isHit: boolean;
|
183
|
+
isOpen: boolean;
|
184
|
+
label: string | string[] | undefined;
|
185
|
+
listRef: RefObject<HTMLUListElement>;
|
185
186
|
pickOptions: (value: string) => void;
|
186
187
|
rebirthOptions: (runFocus?: boolean) => void;
|
188
|
+
setFocusedIndex: Dispatch<SetStateAction<number>>;
|
189
|
+
styles: {
|
190
|
+
[key: string]: CSSUIObject | undefined;
|
191
|
+
};
|
192
|
+
value: string | string[];
|
193
|
+
formControlProps: {
|
194
|
+
[key: string]: any;
|
195
|
+
};
|
187
196
|
inputProps: DOMAttributes<HTMLInputElement>;
|
188
|
-
|
189
|
-
|
197
|
+
onChange: (newValue: string, options?: ChangeOptions) => void;
|
198
|
+
onChangeLabel: (newValue: string, options?: ChangeOptions) => void;
|
190
199
|
onClose: () => void;
|
191
200
|
onCreate: () => void;
|
192
201
|
onFocusFirst: () => void;
|
193
202
|
onFocusLast: () => void;
|
194
203
|
onFocusNext: (index?: number) => void;
|
195
204
|
onFocusPrev: (index?: number) => void;
|
196
|
-
|
197
|
-
setFocusedIndex: Dispatch<SetStateAction<number>>;
|
198
|
-
listRef: RefObject<HTMLUListElement>;
|
199
|
-
inputRef: RefObject<HTMLInputElement>;
|
200
|
-
formControlProps: {
|
201
|
-
[key: string]: any;
|
202
|
-
};
|
203
|
-
styles: {
|
204
|
-
[key: string]: CSSUIObject;
|
205
|
-
};
|
205
|
+
onOpen: () => void;
|
206
206
|
}
|
207
207
|
declare const AutocompleteProvider: react.Provider<AutocompleteContext>;
|
208
208
|
declare const useAutocompleteContext: () => AutocompleteContext;
|