@yamada-ui/autocomplete 1.5.4-next-20241005220055 → 1.5.4-next-20241008193728
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 +47 -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 +294 -292
- package/dist/autocomplete.js.map +1 -1
- package/dist/autocomplete.mjs +12 -12
- 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-HZECQUHV.mjs → chunk-AXC7ILCH.mjs} +40 -40
- package/dist/{chunk-HZECQUHV.mjs.map → chunk-AXC7ILCH.mjs.map} +1 -1
- package/dist/{chunk-OLOU5HFC.mjs → chunk-BGZIX6SN.mjs} +168 -166
- package/dist/chunk-BGZIX6SN.mjs.map +1 -0
- package/dist/{chunk-Q2HZVVOI.mjs → chunk-BKW7XJ6R.mjs} +16 -16
- package/dist/chunk-BKW7XJ6R.mjs.map +1 -0
- package/dist/{chunk-5LPWFWE6.mjs → chunk-DDMSYTKO.mjs} +34 -34
- package/dist/chunk-DDMSYTKO.mjs.map +1 -0
- package/dist/{chunk-QPIWG4ZF.mjs → chunk-EEECVCVW.mjs} +63 -61
- package/dist/chunk-EEECVCVW.mjs.map +1 -0
- package/dist/{chunk-5GKGL6BL.mjs → chunk-KLXMUIGY.mjs} +16 -16
- package/dist/chunk-KLXMUIGY.mjs.map +1 -0
- 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-S2HFYJVI.mjs → chunk-WFLZPB35.mjs} +13 -13
- package/dist/chunk-WFLZPB35.mjs.map +1 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +347 -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 +317 -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 +34 -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 +216 -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,10 +1,10 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
AutocompleteOption
|
4
|
-
} from "./chunk-
|
5
|
-
import "./chunk-
|
6
|
-
import "./chunk-
|
7
|
-
import "./chunk-
|
4
|
+
} from "./chunk-WFLZPB35.mjs";
|
5
|
+
import "./chunk-DDMSYTKO.mjs";
|
6
|
+
import "./chunk-V6YCG642.mjs";
|
7
|
+
import "./chunk-WDQYM4FP.mjs";
|
8
8
|
export {
|
9
9
|
AutocompleteOption
|
10
10
|
};
|
package/dist/autocomplete.d.mts
CHANGED
@@ -2,14 +2,14 @@ import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { ThemeProps, HTMLUIProps } from '@yamada-ui/core';
|
3
3
|
import { MotionProps } from '@yamada-ui/motion';
|
4
4
|
import { PortalProps } from '@yamada-ui/portal';
|
5
|
-
import {
|
5
|
+
import { FC, ReactNode } from 'react';
|
6
6
|
import { AutocompleteCreateProps } from './autocomplete-create.mjs';
|
7
7
|
import { AutocompleteEmptyProps } from './autocomplete-empty.mjs';
|
8
8
|
import { AutocompleteIconProps } from './autocomplete-icon.mjs';
|
9
9
|
import { AutocompleteListProps } from './autocomplete-list.mjs';
|
10
10
|
import { UseAutocompleteProps } from './use-autocomplete.mjs';
|
11
|
-
import 'react/jsx-runtime';
|
12
11
|
import '@yamada-ui/use-descendant';
|
12
|
+
import 'react/jsx-runtime';
|
13
13
|
import '@yamada-ui/form-control';
|
14
14
|
import '@yamada-ui/popover';
|
15
15
|
import '@yamada-ui/utils';
|
@@ -19,14 +19,28 @@ import './autocomplete-option-group.mjs';
|
|
19
19
|
import './use-autocomplete-option-group.mjs';
|
20
20
|
|
21
21
|
interface AutocompleteOptions {
|
22
|
+
/**
|
23
|
+
* The border color when the input is invalid.
|
24
|
+
*/
|
25
|
+
errorBorderColor?: string;
|
22
26
|
/**
|
23
27
|
* The border color when the input is focused.
|
24
28
|
*/
|
25
29
|
focusBorderColor?: string;
|
26
30
|
/**
|
27
|
-
* The
|
31
|
+
* The footer of the autocomplete content element.
|
28
32
|
*/
|
29
|
-
|
33
|
+
footer?: FC<{
|
34
|
+
value: string | undefined;
|
35
|
+
onClose: () => void;
|
36
|
+
}> | ReactNode;
|
37
|
+
/**
|
38
|
+
* The header of the autocomplete content element.
|
39
|
+
*/
|
40
|
+
header?: FC<{
|
41
|
+
value: string | undefined;
|
42
|
+
onClose: () => void;
|
43
|
+
}> | ReactNode;
|
30
44
|
/**
|
31
45
|
* Props for autocomplete container element.
|
32
46
|
*/
|
@@ -36,49 +50,35 @@ interface AutocompleteOptions {
|
|
36
50
|
*/
|
37
51
|
contentProps?: Omit<MotionProps, "children">;
|
38
52
|
/**
|
39
|
-
* Props for autocomplete
|
53
|
+
* Props for autocomplete create element.
|
40
54
|
*/
|
41
|
-
|
55
|
+
createProps?: Omit<AutocompleteCreateProps, "children">;
|
56
|
+
/**
|
57
|
+
* Props for autocomplete empty element.
|
58
|
+
*/
|
59
|
+
emptyProps?: Omit<AutocompleteEmptyProps, "children">;
|
42
60
|
/**
|
43
61
|
* Props for autocomplete field element.
|
44
62
|
*/
|
45
|
-
fieldProps?: Omit<AutocompleteFieldProps, "
|
63
|
+
fieldProps?: Omit<AutocompleteFieldProps, "children" | "inputProps">;
|
64
|
+
/**
|
65
|
+
* Props for autocomplete icon element.
|
66
|
+
*/
|
67
|
+
iconProps?: AutocompleteIconProps;
|
46
68
|
/**
|
47
69
|
* Props for autocomplete input element.
|
48
70
|
*/
|
49
71
|
inputProps?: HTMLUIProps<"input">;
|
50
72
|
/**
|
51
|
-
* Props for autocomplete
|
73
|
+
* Props for autocomplete list element.
|
52
74
|
*/
|
53
|
-
|
75
|
+
listProps?: Omit<AutocompleteListProps, "children">;
|
54
76
|
/**
|
55
77
|
* Props to be forwarded to the portal component.
|
56
78
|
*
|
57
79
|
* @default '{ isDisabled: true }'
|
58
80
|
*/
|
59
81
|
portalProps?: Omit<PortalProps, "children">;
|
60
|
-
/**
|
61
|
-
* Props for autocomplete create element.
|
62
|
-
*/
|
63
|
-
createProps?: Omit<AutocompleteCreateProps, "children">;
|
64
|
-
/**
|
65
|
-
* Props for autocomplete empty element.
|
66
|
-
*/
|
67
|
-
emptyProps?: Omit<AutocompleteEmptyProps, "children">;
|
68
|
-
/**
|
69
|
-
* The header of the autocomplete content element.
|
70
|
-
*/
|
71
|
-
header?: ReactNode | FC<{
|
72
|
-
value: string | undefined;
|
73
|
-
onClose: () => void;
|
74
|
-
}>;
|
75
|
-
/**
|
76
|
-
* The footer of the autocomplete content element.
|
77
|
-
*/
|
78
|
-
footer?: ReactNode | FC<{
|
79
|
-
value: string | undefined;
|
80
|
-
onClose: () => void;
|
81
|
-
}>;
|
82
82
|
}
|
83
83
|
interface AutocompleteProps extends ThemeProps<"Autocomplete">, Omit<UseAutocompleteProps, "maxSelectValues" | "omitSelectedValues">, AutocompleteOptions {
|
84
84
|
}
|
package/dist/autocomplete.d.ts
CHANGED
@@ -2,14 +2,14 @@ import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { ThemeProps, HTMLUIProps } from '@yamada-ui/core';
|
3
3
|
import { MotionProps } from '@yamada-ui/motion';
|
4
4
|
import { PortalProps } from '@yamada-ui/portal';
|
5
|
-
import {
|
5
|
+
import { FC, ReactNode } from 'react';
|
6
6
|
import { AutocompleteCreateProps } from './autocomplete-create.js';
|
7
7
|
import { AutocompleteEmptyProps } from './autocomplete-empty.js';
|
8
8
|
import { AutocompleteIconProps } from './autocomplete-icon.js';
|
9
9
|
import { AutocompleteListProps } from './autocomplete-list.js';
|
10
10
|
import { UseAutocompleteProps } from './use-autocomplete.js';
|
11
|
-
import 'react/jsx-runtime';
|
12
11
|
import '@yamada-ui/use-descendant';
|
12
|
+
import 'react/jsx-runtime';
|
13
13
|
import '@yamada-ui/form-control';
|
14
14
|
import '@yamada-ui/popover';
|
15
15
|
import '@yamada-ui/utils';
|
@@ -19,14 +19,28 @@ import './autocomplete-option-group.js';
|
|
19
19
|
import './use-autocomplete-option-group.js';
|
20
20
|
|
21
21
|
interface AutocompleteOptions {
|
22
|
+
/**
|
23
|
+
* The border color when the input is invalid.
|
24
|
+
*/
|
25
|
+
errorBorderColor?: string;
|
22
26
|
/**
|
23
27
|
* The border color when the input is focused.
|
24
28
|
*/
|
25
29
|
focusBorderColor?: string;
|
26
30
|
/**
|
27
|
-
* The
|
31
|
+
* The footer of the autocomplete content element.
|
28
32
|
*/
|
29
|
-
|
33
|
+
footer?: FC<{
|
34
|
+
value: string | undefined;
|
35
|
+
onClose: () => void;
|
36
|
+
}> | ReactNode;
|
37
|
+
/**
|
38
|
+
* The header of the autocomplete content element.
|
39
|
+
*/
|
40
|
+
header?: FC<{
|
41
|
+
value: string | undefined;
|
42
|
+
onClose: () => void;
|
43
|
+
}> | ReactNode;
|
30
44
|
/**
|
31
45
|
* Props for autocomplete container element.
|
32
46
|
*/
|
@@ -36,49 +50,35 @@ interface AutocompleteOptions {
|
|
36
50
|
*/
|
37
51
|
contentProps?: Omit<MotionProps, "children">;
|
38
52
|
/**
|
39
|
-
* Props for autocomplete
|
53
|
+
* Props for autocomplete create element.
|
40
54
|
*/
|
41
|
-
|
55
|
+
createProps?: Omit<AutocompleteCreateProps, "children">;
|
56
|
+
/**
|
57
|
+
* Props for autocomplete empty element.
|
58
|
+
*/
|
59
|
+
emptyProps?: Omit<AutocompleteEmptyProps, "children">;
|
42
60
|
/**
|
43
61
|
* Props for autocomplete field element.
|
44
62
|
*/
|
45
|
-
fieldProps?: Omit<AutocompleteFieldProps, "
|
63
|
+
fieldProps?: Omit<AutocompleteFieldProps, "children" | "inputProps">;
|
64
|
+
/**
|
65
|
+
* Props for autocomplete icon element.
|
66
|
+
*/
|
67
|
+
iconProps?: AutocompleteIconProps;
|
46
68
|
/**
|
47
69
|
* Props for autocomplete input element.
|
48
70
|
*/
|
49
71
|
inputProps?: HTMLUIProps<"input">;
|
50
72
|
/**
|
51
|
-
* Props for autocomplete
|
73
|
+
* Props for autocomplete list element.
|
52
74
|
*/
|
53
|
-
|
75
|
+
listProps?: Omit<AutocompleteListProps, "children">;
|
54
76
|
/**
|
55
77
|
* Props to be forwarded to the portal component.
|
56
78
|
*
|
57
79
|
* @default '{ isDisabled: true }'
|
58
80
|
*/
|
59
81
|
portalProps?: Omit<PortalProps, "children">;
|
60
|
-
/**
|
61
|
-
* Props for autocomplete create element.
|
62
|
-
*/
|
63
|
-
createProps?: Omit<AutocompleteCreateProps, "children">;
|
64
|
-
/**
|
65
|
-
* Props for autocomplete empty element.
|
66
|
-
*/
|
67
|
-
emptyProps?: Omit<AutocompleteEmptyProps, "children">;
|
68
|
-
/**
|
69
|
-
* The header of the autocomplete content element.
|
70
|
-
*/
|
71
|
-
header?: ReactNode | FC<{
|
72
|
-
value: string | undefined;
|
73
|
-
onClose: () => void;
|
74
|
-
}>;
|
75
|
-
/**
|
76
|
-
* The footer of the autocomplete content element.
|
77
|
-
*/
|
78
|
-
footer?: ReactNode | FC<{
|
79
|
-
value: string | undefined;
|
80
|
-
onClose: () => void;
|
81
|
-
}>;
|
82
82
|
}
|
83
83
|
interface AutocompleteProps extends ThemeProps<"Autocomplete">, Omit<UseAutocompleteProps, "maxSelectValues" | "omitSelectedValues">, AutocompleteOptions {
|
84
84
|
}
|