@yamada-ui/autocomplete 1.5.4-dev-20241005224505 → 1.5.4-dev-20241006032009

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 +14 -14
  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 +299 -297
  35. package/dist/autocomplete.js.map +1 -1
  36. package/dist/autocomplete.mjs +12 -12
  37. package/dist/{chunk-5GKGL6BL.mjs → chunk-2MVSDK7L.mjs} +16 -16
  38. package/dist/chunk-2MVSDK7L.mjs.map +1 -0
  39. package/dist/{chunk-JMX72TSD.mjs → chunk-2SISETLV.mjs} +11 -11
  40. package/dist/{chunk-JMX72TSD.mjs.map → chunk-2SISETLV.mjs.map} +1 -1
  41. package/dist/{chunk-OLOU5HFC.mjs → chunk-4APEPTYJ.mjs} +169 -167
  42. package/dist/chunk-4APEPTYJ.mjs.map +1 -0
  43. package/dist/{chunk-6F3LT7J6.mjs → chunk-EWV3Q3S4.mjs} +7 -7
  44. package/dist/{chunk-6F3LT7J6.mjs.map → chunk-EWV3Q3S4.mjs.map} +1 -1
  45. package/dist/{chunk-Q2HZVVOI.mjs → chunk-I4IW2CW7.mjs} +16 -16
  46. package/dist/chunk-I4IW2CW7.mjs.map +1 -0
  47. package/dist/{chunk-7SWSKLSA.mjs → chunk-I5X4WSCX.mjs} +18 -18
  48. package/dist/chunk-I5X4WSCX.mjs.map +1 -0
  49. package/dist/{chunk-HZECQUHV.mjs → chunk-PXQD7AV2.mjs} +40 -40
  50. package/dist/{chunk-HZECQUHV.mjs.map → chunk-PXQD7AV2.mjs.map} +1 -1
  51. package/dist/{chunk-QPIWG4ZF.mjs → chunk-TJGVRIGK.mjs} +62 -60
  52. package/dist/chunk-TJGVRIGK.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-S53LMDD7.mjs → chunk-VTBUO5SK.mjs} +15 -15
  56. package/dist/chunk-VTBUO5SK.mjs.map +1 -0
  57. package/dist/{chunk-JPUKYLBW.mjs → chunk-WDQYM4FP.mjs} +5 -5
  58. package/dist/chunk-WDQYM4FP.mjs.map +1 -0
  59. package/dist/{chunk-S2HFYJVI.mjs → chunk-ZEGANG5C.mjs} +13 -13
  60. package/dist/chunk-ZEGANG5C.mjs.map +1 -0
  61. package/dist/{chunk-5LPWFWE6.mjs → chunk-ZJFWWXQM.mjs} +34 -34
  62. package/dist/chunk-ZJFWWXQM.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 +351 -347
  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 +321 -317
  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 +11 -11
  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 +221 -219
  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
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  useAutocompleteContext,
4
4
  useAutocompleteDescendant
5
- } from "./chunk-JPUKYLBW.mjs";
5
+ } from "./chunk-WDQYM4FP.mjs";
6
6
 
7
7
  // src/use-autocomplete-option.ts
8
8
  import {
@@ -17,36 +17,36 @@ import {
17
17
  import { useCallback, useId, useRef } from "react";
18
18
  var isTargetOption = (target) => {
19
19
  var _a;
20
- return isHTMLElement(target) && !!((_a = target == null ? void 0 : target.getAttribute("role")) == null ? void 0 : _a.startsWith("option"));
20
+ return isHTMLElement(target) && !!((_a = target.getAttribute("role")) == null ? void 0 : _a.startsWith("option"));
21
21
  };
22
22
  var useAutocompleteOption = (props) => {
23
23
  var _a, _b;
24
24
  const {
25
- value,
25
+ closeOnSelect: generalCloseOnSelect,
26
+ focusedIndex,
27
+ inputRef,
26
28
  omitSelectedValues,
29
+ setFocusedIndex,
30
+ value,
31
+ optionProps,
27
32
  onChange,
28
33
  onChangeLabel,
29
- focusedIndex,
30
- setFocusedIndex,
31
34
  onClose,
32
- closeOnSelect: generalCloseOnSelect,
33
- optionProps,
34
- inputRef,
35
35
  onFocusNext
36
36
  } = useAutocompleteContext();
37
37
  const id = useId();
38
38
  let {
39
+ children,
40
+ closeOnSelect: customCloseOnSelect,
39
41
  icon: customIcon,
40
42
  isDisabled,
41
43
  isFocusable,
42
- closeOnSelect: customCloseOnSelect,
43
- children,
44
44
  value: optionValue,
45
45
  ...computedProps
46
46
  } = { ...optionProps, ...props };
47
47
  const trulyDisabled = !!isDisabled && !isFocusable;
48
48
  const itemRef = useRef(null);
49
- const { index, register, descendants } = useAutocompleteDescendant({
49
+ const { descendants, index, register } = useAutocompleteDescendant({
50
50
  disabled: trulyDisabled
51
51
  });
52
52
  const values = descendants.values();
@@ -96,27 +96,27 @@ var useAutocompleteOption = (props) => {
96
96
  border: "0px",
97
97
  clip: "rect(0px, 0px, 0px, 0px)",
98
98
  height: "1px",
99
- width: "1px",
100
99
  margin: "-1px",
101
- padding: "0px",
102
100
  overflow: "hidden",
101
+ padding: "0px",
102
+ position: "absolute",
103
103
  whiteSpace: "nowrap",
104
- position: "absolute"
104
+ width: "1px"
105
105
  };
106
106
  return {
107
- ref: mergeRefs(itemRef, ref, register),
108
107
  id,
108
+ ref: mergeRefs(itemRef, ref, register),
109
109
  role: "option",
110
110
  ...computedProps,
111
111
  ...props2,
112
- tabIndex: -1,
113
112
  style: !isTarget || omitSelectedValues && isSelected ? style : void 0,
114
- "data-target": dataAttr(true),
115
- "data-value": optionValue != null ? optionValue : "",
116
- "data-focus": dataAttr(isFocused),
117
- "data-disabled": dataAttr(isDisabled),
113
+ tabIndex: -1,
118
114
  "aria-checked": isSelected,
119
115
  "aria-disabled": ariaAttr(isDisabled),
116
+ "data-disabled": dataAttr(isDisabled),
117
+ "data-focus": dataAttr(isFocused),
118
+ "data-target": dataAttr(true),
119
+ "data-value": optionValue != null ? optionValue : "",
120
120
  onClick: handlerAll(computedProps.onClick, props2.onClick, onClick)
121
121
  };
122
122
  },
@@ -134,10 +134,10 @@ var useAutocompleteOption = (props) => {
134
134
  ]
135
135
  );
136
136
  return {
137
- isSelected,
138
- isFocused,
139
- customIcon,
140
137
  children,
138
+ customIcon,
139
+ isFocused,
140
+ isSelected,
141
141
  getOptionProps
142
142
  };
143
143
  };
@@ -149,18 +149,18 @@ var useAutocompleteCreate = () => {
149
149
  border: "0px",
150
150
  clip: "rect(0px, 0px, 0px, 0px)",
151
151
  height: "1px",
152
- width: "1px",
153
152
  margin: "-1px",
154
- padding: "0px",
155
153
  overflow: "hidden",
154
+ padding: "0px",
155
+ position: "absolute",
156
156
  whiteSpace: "nowrap",
157
- position: "absolute"
157
+ width: "1px"
158
158
  };
159
159
  return {
160
160
  ref,
161
161
  ...props,
162
- tabIndex: -1,
163
162
  style: isHit ? style : void 0,
163
+ tabIndex: -1,
164
164
  "data-focus": dataAttr(!isHit),
165
165
  onClick: handlerAll(props.onClick, onCreate)
166
166
  };
@@ -170,25 +170,25 @@ var useAutocompleteCreate = () => {
170
170
  return { getCreateProps };
171
171
  };
172
172
  var useAutocompleteEmpty = () => {
173
- const { isHit, isEmpty } = useAutocompleteContext();
173
+ const { isEmpty, isHit } = useAutocompleteContext();
174
174
  const getEmptyProps = useCallback(
175
175
  (props = {}, ref = null) => {
176
176
  const style = {
177
177
  border: "0px",
178
178
  clip: "rect(0px, 0px, 0px, 0px)",
179
179
  height: "1px",
180
- width: "1px",
181
180
  margin: "-1px",
182
- padding: "0px",
183
181
  overflow: "hidden",
182
+ padding: "0px",
183
+ position: "absolute",
184
184
  whiteSpace: "nowrap",
185
- position: "absolute"
185
+ width: "1px"
186
186
  };
187
187
  return {
188
188
  ref,
189
189
  ...props,
190
- tabIndex: -1,
191
- style: isHit && !isEmpty ? style : void 0
190
+ style: isHit && !isEmpty ? style : void 0,
191
+ tabIndex: -1
192
192
  };
193
193
  },
194
194
  [isHit, isEmpty]
@@ -201,4 +201,4 @@ export {
201
201
  useAutocompleteCreate,
202
202
  useAutocompleteEmpty
203
203
  };
204
- //# sourceMappingURL=chunk-5LPWFWE6.mjs.map
204
+ //# sourceMappingURL=chunk-ZJFWWXQM.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/use-autocomplete-option.ts"],"sourcesContent":["import type { HTMLUIProps, PropGetter } from \"@yamada-ui/core\"\nimport type { CSSProperties, MouseEvent } from \"react\"\nimport {\n ariaAttr,\n dataAttr,\n handlerAll,\n isArray,\n isHTMLElement,\n mergeRefs,\n useUpdateEffect,\n} from \"@yamada-ui/utils\"\nimport { useCallback, useId, useRef } from \"react\"\nimport {\n useAutocompleteContext,\n useAutocompleteDescendant,\n} from \"./autocomplete-context\"\n\nconst isTargetOption = (target: EventTarget | null): boolean =>\n isHTMLElement(target) && !!target.getAttribute(\"role\")?.startsWith(\"option\")\n\nexport interface UseAutocompleteOptionProps\n extends Omit<HTMLUIProps<\"li\">, \"children\" | \"value\"> {\n /**\n * The label of the autocomplete option.\n */\n children?: string\n /**\n * If `true`, the list element will be closed when selected.\n *\n * @default false\n */\n closeOnSelect?: boolean\n /**\n * If `true`, the autocomplete option will be disabled.\n *\n * @default false\n */\n isDisabled?: boolean\n /**\n * If `true`, the autocomplete option will be focusable.\n *\n * @default false\n */\n isFocusable?: boolean\n /**\n * The value of the autocomplete option.\n */\n value?: string\n}\n\nexport const useAutocompleteOption = (props: UseAutocompleteOptionProps) => {\n const {\n closeOnSelect: generalCloseOnSelect,\n focusedIndex,\n inputRef,\n omitSelectedValues,\n setFocusedIndex,\n value,\n optionProps,\n onChange,\n onChangeLabel,\n onClose,\n onFocusNext,\n } = useAutocompleteContext()\n const id = useId()\n\n let {\n children,\n closeOnSelect: customCloseOnSelect,\n icon: customIcon,\n isDisabled,\n isFocusable,\n value: optionValue,\n ...computedProps\n } = { ...optionProps, ...props }\n\n const trulyDisabled = !!isDisabled && !isFocusable\n\n const itemRef = useRef<HTMLLIElement>(null)\n\n const { descendants, index, register } = useAutocompleteDescendant({\n disabled: trulyDisabled,\n })\n\n const values = descendants.values()\n const frontValues = values.slice(0, index)\n\n const isMulti = isArray(value)\n const isDuplicated = !isMulti\n ? frontValues.some(({ node }) => node.dataset.value === (optionValue ?? \"\"))\n : false\n\n const isSelected =\n !isDuplicated &&\n (!isMulti\n ? (optionValue ?? \"\") === value\n : value.includes(optionValue ?? \"\"))\n const isTarget = \"target\" in (itemRef.current?.dataset ?? {})\n const isFocused = index === focusedIndex\n\n const onClick = useCallback(\n (ev: MouseEvent<HTMLLIElement>) => {\n ev.stopPropagation()\n\n if (isDisabled) {\n if (inputRef.current) inputRef.current.focus()\n\n return\n }\n\n if (!isTargetOption(ev.currentTarget)) {\n if (inputRef.current) inputRef.current.focus()\n\n return\n }\n\n setFocusedIndex(index)\n\n onChange(optionValue ?? \"\")\n\n if (inputRef.current) inputRef.current.focus()\n\n if (customCloseOnSelect ?? generalCloseOnSelect) onClose()\n\n if (omitSelectedValues) onFocusNext(index)\n },\n [\n onFocusNext,\n omitSelectedValues,\n isDisabled,\n optionValue,\n setFocusedIndex,\n index,\n onChange,\n customCloseOnSelect,\n generalCloseOnSelect,\n onClose,\n inputRef,\n ],\n )\n\n useUpdateEffect(() => {\n if (isSelected) onChangeLabel(optionValue ?? \"\", { runOmit: false })\n }, [optionValue])\n\n const getOptionProps: PropGetter<\"li\"> = useCallback(\n (props = {}, ref = null) => {\n const style: CSSProperties = {\n border: \"0px\",\n clip: \"rect(0px, 0px, 0px, 0px)\",\n height: \"1px\",\n margin: \"-1px\",\n overflow: \"hidden\",\n padding: \"0px\",\n position: \"absolute\",\n whiteSpace: \"nowrap\",\n width: \"1px\",\n }\n\n return {\n id,\n ref: mergeRefs(itemRef, ref, register),\n role: \"option\",\n ...computedProps,\n ...props,\n style:\n !isTarget || (omitSelectedValues && isSelected) ? style : undefined,\n tabIndex: -1,\n \"aria-checked\": isSelected,\n \"aria-disabled\": ariaAttr(isDisabled),\n \"data-disabled\": dataAttr(isDisabled),\n \"data-focus\": dataAttr(isFocused),\n \"data-target\": dataAttr(true),\n \"data-value\": optionValue ?? \"\",\n onClick: handlerAll(computedProps.onClick, props.onClick, onClick),\n }\n },\n [\n id,\n optionValue,\n computedProps,\n isDisabled,\n isFocused,\n isSelected,\n isTarget,\n omitSelectedValues,\n onClick,\n register,\n ],\n )\n\n return {\n children,\n customIcon,\n isFocused,\n isSelected,\n getOptionProps,\n }\n}\n\nexport type UseAutocompleteOptionReturn = ReturnType<\n typeof useAutocompleteOption\n>\n\nexport const useAutocompleteCreate = () => {\n const { isHit, onCreate } = useAutocompleteContext()\n\n const getCreateProps: PropGetter<\"li\"> = useCallback(\n (props = {}, ref = null) => {\n const style: CSSProperties = {\n border: \"0px\",\n clip: \"rect(0px, 0px, 0px, 0px)\",\n height: \"1px\",\n margin: \"-1px\",\n overflow: \"hidden\",\n padding: \"0px\",\n position: \"absolute\",\n whiteSpace: \"nowrap\",\n width: \"1px\",\n }\n\n return {\n ref,\n ...props,\n style: isHit ? style : undefined,\n tabIndex: -1,\n \"data-focus\": dataAttr(!isHit),\n onClick: handlerAll(props.onClick, onCreate),\n }\n },\n [isHit, onCreate],\n )\n\n return { getCreateProps }\n}\n\nexport type UseAutocompleteCreateReturn = ReturnType<\n typeof useAutocompleteCreate\n>\n\nexport const useAutocompleteEmpty = () => {\n const { isEmpty, isHit } = useAutocompleteContext()\n\n const getEmptyProps: PropGetter<\"li\"> = useCallback(\n (props = {}, ref = null) => {\n const style: CSSProperties = {\n border: \"0px\",\n clip: \"rect(0px, 0px, 0px, 0px)\",\n height: \"1px\",\n margin: \"-1px\",\n overflow: \"hidden\",\n padding: \"0px\",\n position: \"absolute\",\n whiteSpace: \"nowrap\",\n width: \"1px\",\n }\n\n return {\n ref,\n ...props,\n style: isHit && !isEmpty ? style : undefined,\n tabIndex: -1,\n }\n },\n [isHit, isEmpty],\n )\n\n return { getEmptyProps }\n}\n\nexport type UseAutocompleteEmptyReturn = ReturnType<typeof useAutocompleteEmpty>\n"],"mappings":";;;;;;;AAEA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,aAAa,OAAO,cAAc;AAM3C,IAAM,iBAAiB,CAAC,WAAqC;AAjB7D;AAkBE,uBAAc,MAAM,KAAK,CAAC,GAAC,YAAO,aAAa,MAAM,MAA1B,mBAA6B,WAAW;AAAA;AAgC9D,IAAM,wBAAwB,CAAC,UAAsC;AAlD5E;AAmDE,QAAM;AAAA,IACJ,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,uBAAuB;AAC3B,QAAM,KAAK,MAAM;AAEjB,MAAI;AAAA,IACF;AAAA,IACA,eAAe;AAAA,IACf,MAAM;AAAA,IACN;AAAA,I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Q;AAAA,QACR,QAAQ;AAAA,QACR,UAAU;AAAA,QACV,SAAS;AAAA,QACT,UAAU;AAAA,QACV,YAAY;AAAA,QACZ,OAAO;AAAA,MACT;AAEA,aAAO;AAAA,QACL;AAAA,QACA,GAAG;AAAA,QACH,OAAO,QAAQ,QAAQ;AAAA,QACvB,UAAU;AAAA,QACV,cAAc,SAAS,CAAC,KAAK;AAAA,QAC7B,SAAS,WAAW,MAAM,SAAS,QAAQ;AAAA,MAC7C;AAAA,IACF;AAAA,IACA,CAAC,OAAO,QAAQ;AAAA,EAClB;AAEA,SAAO,EAAE,eAAe;AAC1B;AAMO,IAAM,uBAAuB,MAAM;AACxC,QAAM,EAAE,SAAS,MAAM,IAAI,uBAAuB;AAElD,QAAM,gBAAkC;AAAA,IACtC,CAAC,QAAQ,CAAC,GAAG,MAAM,SAAS;AAC1B,YAAM,QAAuB;AAAA,QAC3B,QAAQ;AAAA,QACR,MAAM;AAAA,QACN,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,UAAU;AAAA,QACV,SAAS;AAAA,QACT,UAAU;AAAA,QACV,YAAY;AAAA,QACZ,OAAO;AAAA,MACT;AAEA,aAAO;AAAA,QACL;AAAA,QACA,GAAG;AAAA,QACH,OAAO,SAAS,CAAC,UAAU,QAAQ;AAAA,QACnC,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,CAAC,OAAO,OAAO;AAAA,EACjB;AAEA,SAAO,EAAE,cAAc;AACzB;","names":["props"]}
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { Autocomplete, AutocompleteProps } from './autocomplete.mjs';
2
- export { AutocompleteOptionGroup, AutocompleteOptionGroupProps } from './autocomplete-option-group.mjs';
3
- export { AutocompleteOption, AutocompleteOptionProps } from './autocomplete-option.mjs';
4
2
  export { AutocompleteCreate, AutocompleteCreateProps } from './autocomplete-create.mjs';
5
3
  export { AutocompleteEmpty, AutocompleteEmptyProps } from './autocomplete-empty.mjs';
4
+ export { AutocompleteOption, AutocompleteOptionProps } from './autocomplete-option.mjs';
5
+ export { AutocompleteOptionGroup, AutocompleteOptionGroupProps } from './autocomplete-option-group.mjs';
6
6
  export { MultiAutocomplete, MultiAutocompleteProps } from './multi-autocomplete.mjs';
7
7
  export { AutocompleteItem } from './use-autocomplete.mjs';
8
8
  import '@yamada-ui/core';
@@ -11,10 +11,10 @@ import '@yamada-ui/portal';
11
11
  import 'react';
12
12
  import './autocomplete-icon.mjs';
13
13
  import './autocomplete-list.mjs';
14
- import './use-autocomplete-option-group.mjs';
15
14
  import './use-autocomplete-option.mjs';
16
- import 'react/jsx-runtime';
15
+ import './use-autocomplete-option-group.mjs';
17
16
  import '@yamada-ui/use-descendant';
17
+ import 'react/jsx-runtime';
18
18
  import '@yamada-ui/form-control';
19
19
  import '@yamada-ui/popover';
20
20
  import '@yamada-ui/utils';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { Autocomplete, AutocompleteProps } from './autocomplete.js';
2
- export { AutocompleteOptionGroup, AutocompleteOptionGroupProps } from './autocomplete-option-group.js';
3
- export { AutocompleteOption, AutocompleteOptionProps } from './autocomplete-option.js';
4
2
  export { AutocompleteCreate, AutocompleteCreateProps } from './autocomplete-create.js';
5
3
  export { AutocompleteEmpty, AutocompleteEmptyProps } from './autocomplete-empty.js';
4
+ export { AutocompleteOption, AutocompleteOptionProps } from './autocomplete-option.js';
5
+ export { AutocompleteOptionGroup, AutocompleteOptionGroupProps } from './autocomplete-option-group.js';
6
6
  export { MultiAutocomplete, MultiAutocompleteProps } from './multi-autocomplete.js';
7
7
  export { AutocompleteItem } from './use-autocomplete.js';
8
8
  import '@yamada-ui/core';
@@ -11,10 +11,10 @@ import '@yamada-ui/portal';
11
11
  import 'react';
12
12
  import './autocomplete-icon.js';
13
13
  import './autocomplete-list.js';
14
- import './use-autocomplete-option-group.js';
15
14
  import './use-autocomplete-option.js';
16
- import 'react/jsx-runtime';
15
+ import './use-autocomplete-option-group.js';
17
16
  import '@yamada-ui/use-descendant';
17
+ import 'react/jsx-runtime';
18
18
  import '@yamada-ui/form-control';
19
19
  import '@yamada-ui/popover';
20
20
  import '@yamada-ui/utils';