@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.
Files changed (100) hide show
  1. package/dist/autocomplete-context.d.mts +115 -115
  2. package/dist/autocomplete-context.d.ts +115 -115
  3. package/dist/autocomplete-context.js +2 -2
  4. package/dist/autocomplete-context.js.map +1 -1
  5. package/dist/autocomplete-context.mjs +1 -1
  6. package/dist/autocomplete-create.d.mts +4 -4
  7. package/dist/autocomplete-create.d.ts +4 -4
  8. package/dist/autocomplete-create.js +32 -32
  9. package/dist/autocomplete-create.js.map +1 -1
  10. package/dist/autocomplete-create.mjs +4 -4
  11. package/dist/autocomplete-empty.d.mts +4 -4
  12. package/dist/autocomplete-empty.d.ts +4 -4
  13. package/dist/autocomplete-empty.js +34 -34
  14. package/dist/autocomplete-empty.js.map +1 -1
  15. package/dist/autocomplete-empty.mjs +4 -4
  16. package/dist/autocomplete-icon.js +17 -17
  17. package/dist/autocomplete-icon.js.map +1 -1
  18. package/dist/autocomplete-icon.mjs +2 -2
  19. package/dist/autocomplete-list.d.mts +2 -2
  20. package/dist/autocomplete-list.d.ts +2 -2
  21. package/dist/autocomplete-list.js +18 -18
  22. package/dist/autocomplete-list.js.map +1 -1
  23. package/dist/autocomplete-list.mjs +3 -3
  24. package/dist/autocomplete-option-group.js +10 -10
  25. package/dist/autocomplete-option-group.js.map +1 -1
  26. package/dist/autocomplete-option-group.mjs +3 -3
  27. package/dist/autocomplete-option.d.mts +1 -1
  28. package/dist/autocomplete-option.d.ts +1 -1
  29. package/dist/autocomplete-option.js +47 -47
  30. package/dist/autocomplete-option.js.map +1 -1
  31. package/dist/autocomplete-option.mjs +4 -4
  32. package/dist/autocomplete.d.mts +31 -31
  33. package/dist/autocomplete.d.ts +31 -31
  34. package/dist/autocomplete.js +294 -292
  35. package/dist/autocomplete.js.map +1 -1
  36. package/dist/autocomplete.mjs +12 -12
  37. package/dist/{chunk-6F3LT7J6.mjs → chunk-4SBNPEK7.mjs} +7 -7
  38. package/dist/{chunk-6F3LT7J6.mjs.map → chunk-4SBNPEK7.mjs.map} +1 -1
  39. package/dist/{chunk-JMX72TSD.mjs → chunk-67X7JKWL.mjs} +7 -7
  40. package/dist/{chunk-JMX72TSD.mjs.map → chunk-67X7JKWL.mjs.map} +1 -1
  41. package/dist/{chunk-HZECQUHV.mjs → chunk-AXC7ILCH.mjs} +40 -40
  42. package/dist/{chunk-HZECQUHV.mjs.map → chunk-AXC7ILCH.mjs.map} +1 -1
  43. package/dist/{chunk-OLOU5HFC.mjs → chunk-BGZIX6SN.mjs} +168 -166
  44. package/dist/chunk-BGZIX6SN.mjs.map +1 -0
  45. package/dist/{chunk-Q2HZVVOI.mjs → chunk-BKW7XJ6R.mjs} +16 -16
  46. package/dist/chunk-BKW7XJ6R.mjs.map +1 -0
  47. package/dist/{chunk-5LPWFWE6.mjs → chunk-DDMSYTKO.mjs} +34 -34
  48. package/dist/chunk-DDMSYTKO.mjs.map +1 -0
  49. package/dist/{chunk-QPIWG4ZF.mjs → chunk-EEECVCVW.mjs} +63 -61
  50. package/dist/chunk-EEECVCVW.mjs.map +1 -0
  51. package/dist/{chunk-5GKGL6BL.mjs → chunk-KLXMUIGY.mjs} +16 -16
  52. package/dist/chunk-KLXMUIGY.mjs.map +1 -0
  53. package/dist/{chunk-R76HPAN4.mjs → chunk-TR4X4EEG.mjs} +7 -7
  54. package/dist/{chunk-R76HPAN4.mjs.map → chunk-TR4X4EEG.mjs.map} +1 -1
  55. package/dist/{chunk-7SWSKLSA.mjs → chunk-V6YCG642.mjs} +18 -18
  56. package/dist/chunk-V6YCG642.mjs.map +1 -0
  57. package/dist/{chunk-S53LMDD7.mjs → chunk-VTBUO5SK.mjs} +15 -15
  58. package/dist/chunk-VTBUO5SK.mjs.map +1 -0
  59. package/dist/{chunk-JPUKYLBW.mjs → chunk-WDQYM4FP.mjs} +5 -5
  60. package/dist/chunk-WDQYM4FP.mjs.map +1 -0
  61. package/dist/{chunk-S2HFYJVI.mjs → chunk-WFLZPB35.mjs} +13 -13
  62. package/dist/chunk-WFLZPB35.mjs.map +1 -0
  63. package/dist/index.d.mts +4 -4
  64. package/dist/index.d.ts +4 -4
  65. package/dist/index.js +347 -343
  66. package/dist/index.js.map +1 -1
  67. package/dist/index.mjs +13 -13
  68. package/dist/multi-autocomplete.d.mts +51 -51
  69. package/dist/multi-autocomplete.d.ts +51 -51
  70. package/dist/multi-autocomplete.js +317 -313
  71. package/dist/multi-autocomplete.js.map +1 -1
  72. package/dist/multi-autocomplete.mjs +12 -12
  73. package/dist/use-autocomplete-list.d.mts +1 -1
  74. package/dist/use-autocomplete-list.d.ts +1 -1
  75. package/dist/use-autocomplete-list.js +7 -7
  76. package/dist/use-autocomplete-list.js.map +1 -1
  77. package/dist/use-autocomplete-list.mjs +2 -2
  78. package/dist/use-autocomplete-option-group.js +7 -7
  79. package/dist/use-autocomplete-option-group.js.map +1 -1
  80. package/dist/use-autocomplete-option-group.mjs +2 -2
  81. package/dist/use-autocomplete-option.d.mts +12 -12
  82. package/dist/use-autocomplete-option.d.ts +12 -12
  83. package/dist/use-autocomplete-option.js +34 -34
  84. package/dist/use-autocomplete-option.js.map +1 -1
  85. package/dist/use-autocomplete-option.mjs +2 -2
  86. package/dist/use-autocomplete.d.mts +86 -86
  87. package/dist/use-autocomplete.d.ts +86 -86
  88. package/dist/use-autocomplete.js +216 -214
  89. package/dist/use-autocomplete.js.map +1 -1
  90. package/dist/use-autocomplete.mjs +7 -7
  91. package/package.json +13 -13
  92. package/dist/chunk-5GKGL6BL.mjs.map +0 -1
  93. package/dist/chunk-5LPWFWE6.mjs.map +0 -1
  94. package/dist/chunk-7SWSKLSA.mjs.map +0 -1
  95. package/dist/chunk-JPUKYLBW.mjs.map +0 -1
  96. package/dist/chunk-OLOU5HFC.mjs.map +0 -1
  97. package/dist/chunk-Q2HZVVOI.mjs.map +0 -1
  98. package/dist/chunk-QPIWG4ZF.mjs.map +0 -1
  99. package/dist/chunk-S2HFYJVI.mjs.map +0 -1
  100. 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-S2HFYJVI.mjs";
5
- import "./chunk-5LPWFWE6.mjs";
6
- import "./chunk-7SWSKLSA.mjs";
7
- import "./chunk-JPUKYLBW.mjs";
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
  };
@@ -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 { ReactNode, FC } from 'react';
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 border color when the input is invalid.
31
+ * The footer of the autocomplete content element.
28
32
  */
29
- errorBorderColor?: string;
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 list element.
53
+ * Props for autocomplete create element.
40
54
  */
41
- listProps?: Omit<AutocompleteListProps, "children">;
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, "inputProps" | "children">;
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 icon element.
73
+ * Props for autocomplete list element.
52
74
  */
53
- iconProps?: AutocompleteIconProps;
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
  }
@@ -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 { ReactNode, FC } from 'react';
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 border color when the input is invalid.
31
+ * The footer of the autocomplete content element.
28
32
  */
29
- errorBorderColor?: string;
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 list element.
53
+ * Props for autocomplete create element.
40
54
  */
41
- listProps?: Omit<AutocompleteListProps, "children">;
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, "inputProps" | "children">;
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 icon element.
73
+ * Props for autocomplete list element.
52
74
  */
53
- iconProps?: AutocompleteIconProps;
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
  }