@yamada-ui/autocomplete 1.5.4-dev-20240929142808 → 1.5.4-dev-20241001120721

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/dist/autocomplete-create.js +4 -4
  2. package/dist/autocomplete-create.js.map +1 -1
  3. package/dist/autocomplete-create.mjs +1 -1
  4. package/dist/autocomplete-empty.js +4 -4
  5. package/dist/autocomplete-empty.js.map +1 -1
  6. package/dist/autocomplete-empty.mjs +1 -1
  7. package/dist/autocomplete-option.js +4 -4
  8. package/dist/autocomplete-option.js.map +1 -1
  9. package/dist/autocomplete-option.mjs +1 -1
  10. package/dist/autocomplete.js +12 -12
  11. package/dist/autocomplete.js.map +1 -1
  12. package/dist/autocomplete.mjs +5 -5
  13. package/dist/{chunk-CCOWDDFS.mjs → chunk-5GKGL6BL.mjs} +5 -5
  14. package/dist/chunk-5GKGL6BL.mjs.map +1 -0
  15. package/dist/{chunk-UNGOVJSY.mjs → chunk-HZECQUHV.mjs} +4 -4
  16. package/dist/{chunk-PCQMCEHL.mjs → chunk-OLOU5HFC.mjs} +2 -2
  17. package/dist/{chunk-E3Y2E2TK.mjs → chunk-Q2HZVVOI.mjs} +5 -5
  18. package/dist/chunk-Q2HZVVOI.mjs.map +1 -0
  19. package/dist/{chunk-7OWUOQZD.mjs → chunk-QPIWG4ZF.mjs} +4 -4
  20. package/dist/{chunk-2WVIW6HR.mjs → chunk-S2HFYJVI.mjs} +5 -5
  21. package/dist/chunk-S2HFYJVI.mjs.map +1 -0
  22. package/dist/index.js +12 -12
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.mjs +6 -6
  25. package/dist/multi-autocomplete.js +12 -12
  26. package/dist/multi-autocomplete.js.map +1 -1
  27. package/dist/multi-autocomplete.mjs +5 -5
  28. package/dist/use-autocomplete.js +4 -4
  29. package/dist/use-autocomplete.js.map +1 -1
  30. package/dist/use-autocomplete.mjs +2 -2
  31. package/package.json +3 -3
  32. package/dist/chunk-2WVIW6HR.mjs.map +0 -1
  33. package/dist/chunk-CCOWDDFS.mjs.map +0 -1
  34. package/dist/chunk-E3Y2E2TK.mjs.map +0 -1
  35. /package/dist/{chunk-UNGOVJSY.mjs.map → chunk-HZECQUHV.mjs.map} +0 -0
  36. /package/dist/{chunk-PCQMCEHL.mjs.map → chunk-OLOU5HFC.mjs.map} +0 -0
  37. /package/dist/{chunk-7OWUOQZD.mjs.map → chunk-QPIWG4ZF.mjs.map} +0 -0
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  useAutocomplete,
4
4
  useAutocompleteInput
5
- } from "./chunk-PCQMCEHL.mjs";
5
+ } from "./chunk-OLOU5HFC.mjs";
6
6
  import {
7
7
  AutocompleteCreate
8
- } from "./chunk-E3Y2E2TK.mjs";
8
+ } from "./chunk-Q2HZVVOI.mjs";
9
9
  import {
10
10
  AutocompleteEmpty
11
- } from "./chunk-CCOWDDFS.mjs";
11
+ } from "./chunk-5GKGL6BL.mjs";
12
12
  import {
13
13
  AutocompleteList
14
14
  } from "./chunk-S53LMDD7.mjs";
@@ -191,4 +191,4 @@ AutocompleteField.__ui__ = "AutocompleteField";
191
191
  export {
192
192
  Autocomplete
193
193
  };
194
- //# sourceMappingURL=chunk-UNGOVJSY.mjs.map
194
+ //# sourceMappingURL=chunk-HZECQUHV.mjs.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-6F3LT7J6.mjs";
5
5
  import {
6
6
  AutocompleteOption
7
- } from "./chunk-2WVIW6HR.mjs";
7
+ } from "./chunk-S2HFYJVI.mjs";
8
8
  import {
9
9
  useAutocompleteContext,
10
10
  useAutocompleteDescendants,
@@ -956,4 +956,4 @@ export {
956
956
  useAutocomplete,
957
957
  useAutocompleteInput
958
958
  };
959
- //# sourceMappingURL=chunk-PCQMCEHL.mjs.map
959
+ //# sourceMappingURL=chunk-OLOU5HFC.mjs.map
@@ -38,7 +38,7 @@ var AutocompleteCreate = forwardRef(
38
38
  __css: css,
39
39
  ...getCreateProps(rest, ref),
40
40
  children: [
41
- icon !== null ? /* @__PURE__ */ jsx(AutocompleteItemIcon, { children: icon || /* @__PURE__ */ jsx(PlusIcon, {}) }) : null,
41
+ icon !== null ? /* @__PURE__ */ jsx(AutocompleteItemIcon, { children: icon || /* @__PURE__ */ jsx(AutocompletePlusIcon, {}) }) : null,
42
42
  icon ? /* @__PURE__ */ jsx(ui.span, { style: { pointerEvents: "none", flex: 1 }, lineClamp: 1, children: runIfFunc(children, inputValue) }) : runIfFunc(children, inputValue)
43
43
  ]
44
44
  }
@@ -47,17 +47,17 @@ var AutocompleteCreate = forwardRef(
47
47
  );
48
48
  AutocompleteCreate.displayName = "AutocompleteCreate";
49
49
  AutocompleteCreate.__ui__ = "AutocompleteCreate";
50
- var PlusIcon = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 45.402 45.402", width: "1em", height: "1em", children: /* @__PURE__ */ jsx(
50
+ var AutocompletePlusIcon = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 45.402 45.402", width: "1em", height: "1em", children: /* @__PURE__ */ jsx(
51
51
  "path",
52
52
  {
53
53
  fill: "currentColor",
54
54
  d: "M41.267,18.557H26.832V4.134C26.832,1.851,24.99,0,22.707,0c-2.283,0-4.124,1.851-4.124,4.135v14.432H4.141 c-2.283,0-4.139,1.851-4.138,4.135c-0.001,1.141,0.46,2.187,1.207,2.934c0.748,0.749,1.78,1.222,2.92,1.222h14.453V41.27 c0,1.142,0.453,2.176,1.201,2.922c0.748,0.748,1.777,1.211,2.919,1.211c2.282,0,4.129-1.851,4.129-4.133V26.857h14.435 c2.283,0,4.134-1.867,4.133-4.15C45.399,20.425,43.548,18.557,41.267,18.557z"
55
55
  }
56
56
  ) });
57
- PlusIcon.displayName = "PlusIcon";
58
- PlusIcon.__ui__ = "PlusIcon";
57
+ AutocompletePlusIcon.displayName = "AutocompletePlusIcon";
58
+ AutocompletePlusIcon.__ui__ = "AutocompletePlusIcon";
59
59
 
60
60
  export {
61
61
  AutocompleteCreate
62
62
  };
63
- //# sourceMappingURL=chunk-E3Y2E2TK.mjs.map
63
+ //# sourceMappingURL=chunk-Q2HZVVOI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/autocomplete-create.tsx"],"sourcesContent":["import type { CSSUIObject, FC, HTMLUIProps } from \"@yamada-ui/core\"\nimport { ui, forwardRef } from \"@yamada-ui/core\"\nimport { cx, runIfFunc } from \"@yamada-ui/utils\"\nimport type { ReactElement } from \"react\"\nimport { useAutocompleteContext } from \"./autocomplete-context\"\nimport { AutocompleteItemIcon } from \"./autocomplete-icon\"\nimport { useAutocompleteCreate } from \"./use-autocomplete-option\"\n\ninterface AutocompleteCreateOptions {\n /**\n * The autocomplete create option icon to use.\n */\n icon?: ReactElement\n /**\n * The label of the autocomplete create option.\n */\n children?: string | ((inputValue: string) => string)\n}\n\nexport interface AutocompleteCreateProps\n extends Omit<HTMLUIProps<\"li\">, \"children\">,\n AutocompleteCreateOptions {}\n\nexport const AutocompleteCreate = forwardRef<AutocompleteCreateProps, \"li\">(\n ({ className, icon, children, ...rest }, ref) => {\n const { inputValue, styles } = useAutocompleteContext()\n const { getCreateProps } = useAutocompleteCreate()\n\n children ??= inputValue\n\n const css: CSSUIObject = {\n textDecoration: \"none\",\n color: \"inherit\",\n userSelect: \"none\",\n display: \"flex\",\n width: \"100%\",\n alignItems: \"center\",\n textAlign: \"start\",\n flex: \"0 0 auto\",\n outline: 0,\n gap: \"0.75rem\",\n ...styles.item,\n }\n\n return (\n <ui.li\n className={cx(\"ui-autocomplete__item--create\", className)}\n __css={css}\n {...getCreateProps(rest, ref)}\n >\n {icon !== null ? (\n <AutocompleteItemIcon>\n {icon || <AutocompletePlusIcon />}\n </AutocompleteItemIcon>\n ) : null}\n {icon ? (\n <ui.span style={{ pointerEvents: \"none\", flex: 1 }} lineClamp={1}>\n {runIfFunc(children, inputValue)}\n </ui.span>\n ) : (\n runIfFunc(children, inputValue)\n )}\n </ui.li>\n )\n },\n)\n\nAutocompleteCreate.displayName = \"AutocompleteCreate\"\nAutocompleteCreate.__ui__ = \"AutocompleteCreate\"\n\nconst AutocompletePlusIcon: FC = () => (\n <svg viewBox=\"0 0 45.402 45.402\" width=\"1em\" height=\"1em\">\n <path\n fill=\"currentColor\"\n d=\"M41.267,18.557H26.832V4.134C26.832,1.851,24.99,0,22.707,0c-2.283,0-4.124,1.851-4.124,4.135v14.432H4.141 c-2.283,0-4.139,1.851-4.138,4.135c-0.001,1.141,0.46,2.187,1.207,2.934c0.748,0.749,1.78,1.222,2.92,1.222h14.453V41.27 c0,1.142,0.453,2.176,1.201,2.922c0.748,0.748,1.777,1.211,2.919,1.211c2.282,0,4.129-1.851,4.129-4.133V26.857h14.435 c2.283,0,4.134-1.867,4.133-4.15C45.399,20.425,43.548,18.557,41.267,18.557z\"\n />\n </svg>\n)\n\nAutocompletePlusIcon.displayName = \"AutocompletePlusIcon\"\nAutocompletePlusIcon.__ui__ = \"AutocompletePlusIcon\"\n"],"mappings":";;;;;;;;;;;;AACA,SAAS,IAAI,kBAAkB;AAC/B,SAAS,IAAI,iBAAiB;AA2CxB,SAOe,KAPf;AAtBC,IAAM,qBAAqB;AAAA,EAChC,CAAC,EAAE,WAAW,MAAM,UAAU,GAAG,KAAK,GAAG,QAAQ;AAC/C,UAAM,EAAE,YAAY,OAAO,IAAI,uBAAuB;AACtD,UAAM,EAAE,eAAe,IAAI,sBAAsB;AAEjD,6CAAa;AAEb,UAAM,MAAmB;AAAA,MACvB,gBAAgB;AAAA,MAChB,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,SAAS;AAAA,MACT,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,WAAW;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,MACT,KAAK;AAAA,MACL,GAAG,OAAO;AAAA,IACZ;AAEA,WACE;AAAA,MAAC,GAAG;AAAA,MAAH;AAAA,QACC,WAAW,GAAG,iCAAiC,SAAS;AAAA,QACxD,OAAO;AAAA,QACN,GAAG,eAAe,MAAM,GAAG;AAAA,QAE3B;AAAA,mBAAS,OACR,oBAAC,wBACE,kBAAQ,oBAAC,wBAAqB,GACjC,IACE;AAAA,UACH,OACC,oBAAC,GAAG,MAAH,EAAQ,OAAO,EAAE,eAAe,QAAQ,MAAM,EAAE,GAAG,WAAW,GAC5D,oBAAU,UAAU,UAAU,GACjC,IAEA,UAAU,UAAU,UAAU;AAAA;AAAA;AAAA,IAElC;AAAA,EAEJ;AACF;AAEA,mBAAmB,cAAc;AACjC,mBAAmB,SAAS;AAE5B,IAAM,uBAA2B,MAC/B,oBAAC,SAAI,SAAQ,qBAAoB,OAAM,OAAM,QAAO,OAClD;AAAA,EAAC;AAAA;AAAA,IACC,MAAK;AAAA,IACL,GAAE;AAAA;AACJ,GACF;AAGF,qBAAqB,cAAc;AACnC,qBAAqB,SAAS;","names":[]}
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  useAutocomplete,
4
4
  useAutocompleteInput
5
- } from "./chunk-PCQMCEHL.mjs";
5
+ } from "./chunk-OLOU5HFC.mjs";
6
6
  import {
7
7
  AutocompleteCreate
8
- } from "./chunk-E3Y2E2TK.mjs";
8
+ } from "./chunk-Q2HZVVOI.mjs";
9
9
  import {
10
10
  AutocompleteEmpty
11
- } from "./chunk-CCOWDDFS.mjs";
11
+ } from "./chunk-5GKGL6BL.mjs";
12
12
  import {
13
13
  AutocompleteList
14
14
  } from "./chunk-S53LMDD7.mjs";
@@ -268,4 +268,4 @@ MultiAutocompleteField.__ui__ = "MultiAutocompleteField";
268
268
  export {
269
269
  MultiAutocomplete
270
270
  };
271
- //# sourceMappingURL=chunk-7OWUOQZD.mjs.map
271
+ //# sourceMappingURL=chunk-QPIWG4ZF.mjs.map
@@ -38,7 +38,7 @@ var AutocompleteOption = forwardRef(
38
38
  __css: css,
39
39
  ...getOptionProps({}, ref),
40
40
  children: [
41
- icon !== null ? /* @__PURE__ */ jsx(AutocompleteItemIcon, { opacity: isSelected ? 1 : 0, children: icon || /* @__PURE__ */ jsx(CheckIcon, {}) }) : null,
41
+ icon !== null ? /* @__PURE__ */ jsx(AutocompleteItemIcon, { opacity: isSelected ? 1 : 0, children: icon || /* @__PURE__ */ jsx(AutocompleteCheckIcon, {}) }) : null,
42
42
  /* @__PURE__ */ jsx(ui.span, { style: { flex: 1 }, "data-label": true, children })
43
43
  ]
44
44
  }
@@ -47,17 +47,17 @@ var AutocompleteOption = forwardRef(
47
47
  );
48
48
  AutocompleteOption.displayName = "AutocompleteOption";
49
49
  AutocompleteOption.__ui__ = "AutocompleteOption";
50
- var CheckIcon = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 14 14", width: "1em", height: "1em", children: /* @__PURE__ */ jsx(
50
+ var AutocompleteCheckIcon = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 14 14", width: "1em", height: "1em", children: /* @__PURE__ */ jsx(
51
51
  "polygon",
52
52
  {
53
53
  fill: "currentColor",
54
54
  points: "5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"
55
55
  }
56
56
  ) });
57
- CheckIcon.displayName = "CheckIcon";
58
- CheckIcon.__ui__ = "CheckIcon";
57
+ AutocompleteCheckIcon.displayName = "AutocompleteCheckIcon";
58
+ AutocompleteCheckIcon.__ui__ = "AutocompleteCheckIcon";
59
59
 
60
60
  export {
61
61
  AutocompleteOption
62
62
  };
63
- //# sourceMappingURL=chunk-2WVIW6HR.mjs.map
63
+ //# sourceMappingURL=chunk-S2HFYJVI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/autocomplete-option.tsx"],"sourcesContent":["import type { CSSUIObject, FC } from \"@yamada-ui/core\"\nimport { ui, forwardRef } from \"@yamada-ui/core\"\nimport { cx } from \"@yamada-ui/utils\"\nimport type { ReactElement } from \"react\"\nimport { useAutocompleteContext } from \"./autocomplete-context\"\nimport { AutocompleteItemIcon } from \"./autocomplete-icon\"\nimport type { UseAutocompleteOptionProps } from \"./use-autocomplete-option\"\nimport { useAutocompleteOption } from \"./use-autocomplete-option\"\n\ninterface AutocompleteOptionOptions {\n /**\n * The autocomplete option icon to use.\n */\n icon?: ReactElement\n}\n\nexport interface AutocompleteOptionProps\n extends UseAutocompleteOptionProps,\n AutocompleteOptionOptions {}\n\nexport const AutocompleteOption = forwardRef<AutocompleteOptionProps, \"li\">(\n ({ className, icon, ...rest }, ref) => {\n const { styles } = useAutocompleteContext()\n const { isSelected, customIcon, children, getOptionProps } =\n useAutocompleteOption(rest)\n\n icon ??= customIcon\n\n const css: CSSUIObject = {\n textDecoration: \"none\",\n color: \"inherit\",\n userSelect: \"none\",\n display: \"flex\",\n width: \"100%\",\n alignItems: \"center\",\n textAlign: \"start\",\n flex: \"0 0 auto\",\n outline: 0,\n gap: \"0.75rem\",\n ...styles.item,\n }\n\n return (\n <ui.li\n className={cx(\"ui-autocomplete__item\", className)}\n __css={css}\n {...getOptionProps({}, ref)}\n >\n {icon !== null ? (\n <AutocompleteItemIcon opacity={isSelected ? 1 : 0}>\n {icon || <AutocompleteCheckIcon />}\n </AutocompleteItemIcon>\n ) : null}\n\n <ui.span style={{ flex: 1 }} data-label>\n {children}\n </ui.span>\n </ui.li>\n )\n },\n)\n\nAutocompleteOption.displayName = \"AutocompleteOption\"\nAutocompleteOption.__ui__ = \"AutocompleteOption\"\n\nconst AutocompleteCheckIcon: FC = () => (\n <svg viewBox=\"0 0 14 14\" width=\"1em\" height=\"1em\">\n <polygon\n fill=\"currentColor\"\n points=\"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039\"\n />\n </svg>\n)\n\nAutocompleteCheckIcon.displayName = \"AutocompleteCheckIcon\"\nAutocompleteCheckIcon.__ui__ = \"AutocompleteCheckIcon\"\n"],"mappings":";;;;;;;;;;;;AACA,SAAS,IAAI,kBAAkB;AAC/B,SAAS,UAAU;AAyCb,SAOe,KAPf;AAvBC,IAAM,qBAAqB;AAAA,EAChC,CAAC,EAAE,WAAW,MAAM,GAAG,KAAK,GAAG,QAAQ;AACrC,UAAM,EAAE,OAAO,IAAI,uBAAuB;AAC1C,UAAM,EAAE,YAAY,YAAY,UAAU,eAAe,IACvD,sBAAsB,IAAI;AAE5B,iCAAS;AAET,UAAM,MAAmB;AAAA,MACvB,gBAAgB;AAAA,MAChB,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,SAAS;AAAA,MACT,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,WAAW;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,MACT,KAAK;AAAA,MACL,GAAG,OAAO;AAAA,IACZ;AAEA,WACE;AAAA,MAAC,GAAG;AAAA,MAAH;AAAA,QACC,WAAW,GAAG,yBAAyB,SAAS;AAAA,QAChD,OAAO;AAAA,QACN,GAAG,eAAe,CAAC,GAAG,GAAG;AAAA,QAEzB;AAAA,mBAAS,OACR,oBAAC,wBAAqB,SAAS,aAAa,IAAI,GAC7C,kBAAQ,oBAAC,yBAAsB,GAClC,IACE;AAAA,UAEJ,oBAAC,GAAG,MAAH,EAAQ,OAAO,EAAE,MAAM,EAAE,GAAG,cAAU,MACpC,UACH;AAAA;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,mBAAmB,cAAc;AACjC,mBAAmB,SAAS;AAE5B,IAAM,wBAA4B,MAChC,oBAAC,SAAI,SAAQ,aAAY,OAAM,OAAM,QAAO,OAC1C;AAAA,EAAC;AAAA;AAAA,IACC,MAAK;AAAA,IACL,QAAO;AAAA;AACT,GACF;AAGF,sBAAsB,cAAc;AACpC,sBAAsB,SAAS;","names":[]}
package/dist/index.js CHANGED
@@ -362,7 +362,7 @@ var AutocompleteCreate = (0, import_core2.forwardRef)(
362
362
  __css: css,
363
363
  ...getCreateProps(rest, ref),
364
364
  children: [
365
- icon !== null ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AutocompleteItemIcon, { children: icon || /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PlusIcon, {}) }) : null,
365
+ icon !== null ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AutocompleteItemIcon, { children: icon || /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AutocompletePlusIcon, {}) }) : null,
366
366
  icon ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_core2.ui.span, { style: { pointerEvents: "none", flex: 1 }, lineClamp: 1, children: (0, import_utils4.runIfFunc)(children, inputValue) }) : (0, import_utils4.runIfFunc)(children, inputValue)
367
367
  ]
368
368
  }
@@ -371,15 +371,15 @@ var AutocompleteCreate = (0, import_core2.forwardRef)(
371
371
  );
372
372
  AutocompleteCreate.displayName = "AutocompleteCreate";
373
373
  AutocompleteCreate.__ui__ = "AutocompleteCreate";
374
- var PlusIcon = () => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", { viewBox: "0 0 45.402 45.402", width: "1em", height: "1em", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
374
+ var AutocompletePlusIcon = () => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", { viewBox: "0 0 45.402 45.402", width: "1em", height: "1em", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
375
375
  "path",
376
376
  {
377
377
  fill: "currentColor",
378
378
  d: "M41.267,18.557H26.832V4.134C26.832,1.851,24.99,0,22.707,0c-2.283,0-4.124,1.851-4.124,4.135v14.432H4.141 c-2.283,0-4.139,1.851-4.138,4.135c-0.001,1.141,0.46,2.187,1.207,2.934c0.748,0.749,1.78,1.222,2.92,1.222h14.453V41.27 c0,1.142,0.453,2.176,1.201,2.922c0.748,0.748,1.777,1.211,2.919,1.211c2.282,0,4.129-1.851,4.129-4.133V26.857h14.435 c2.283,0,4.134-1.867,4.133-4.15C45.399,20.425,43.548,18.557,41.267,18.557z"
379
379
  }
380
380
  ) });
381
- PlusIcon.displayName = "PlusIcon";
382
- PlusIcon.__ui__ = "PlusIcon";
381
+ AutocompletePlusIcon.displayName = "AutocompletePlusIcon";
382
+ AutocompletePlusIcon.__ui__ = "AutocompletePlusIcon";
383
383
 
384
384
  // src/autocomplete-empty.tsx
385
385
  var import_core3 = require("@yamada-ui/core");
@@ -411,7 +411,7 @@ var AutocompleteEmpty = (0, import_core3.forwardRef)(
411
411
  __css: css,
412
412
  ...getEmptyProps(rest, ref),
413
413
  children: [
414
- icon !== null ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AutocompleteItemIcon, { children: icon || /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(MinusIcon, {}) }) : null,
414
+ icon !== null ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AutocompleteItemIcon, { children: icon || /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AutocompleteMinusIcon, {}) }) : null,
415
415
  icon ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_core3.ui.span, { style: { pointerEvents: "none", flex: 1 }, lineClamp: 1, children }) : children
416
416
  ]
417
417
  }
@@ -420,15 +420,15 @@ var AutocompleteEmpty = (0, import_core3.forwardRef)(
420
420
  );
421
421
  AutocompleteEmpty.displayName = "AutocompleteEmpty";
422
422
  AutocompleteEmpty.__ui__ = "AutocompleteEmpty";
423
- var MinusIcon = () => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { viewBox: "0 0 448 512", width: "1em", height: "1em", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
423
+ var AutocompleteMinusIcon = () => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { viewBox: "0 0 448 512", width: "1em", height: "1em", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
424
424
  "path",
425
425
  {
426
426
  fill: "currentColor",
427
427
  d: "M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"
428
428
  }
429
429
  ) });
430
- MinusIcon.displayName = "MinusIcon";
431
- MinusIcon.__ui__ = "MinusIcon";
430
+ AutocompleteMinusIcon.displayName = "AutocompleteMinusIcon";
431
+ AutocompleteMinusIcon.__ui__ = "AutocompleteMinusIcon";
432
432
 
433
433
  // src/autocomplete-list.tsx
434
434
  var import_core4 = require("@yamada-ui/core");
@@ -609,7 +609,7 @@ var AutocompleteOption = (0, import_core5.forwardRef)(
609
609
  __css: css,
610
610
  ...getOptionProps({}, ref),
611
611
  children: [
612
- icon !== null ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AutocompleteItemIcon, { opacity: isSelected ? 1 : 0, children: icon || /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CheckIcon, {}) }) : null,
612
+ icon !== null ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AutocompleteItemIcon, { opacity: isSelected ? 1 : 0, children: icon || /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AutocompleteCheckIcon, {}) }) : null,
613
613
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_core5.ui.span, { style: { flex: 1 }, "data-label": true, children })
614
614
  ]
615
615
  }
@@ -618,15 +618,15 @@ var AutocompleteOption = (0, import_core5.forwardRef)(
618
618
  );
619
619
  AutocompleteOption.displayName = "AutocompleteOption";
620
620
  AutocompleteOption.__ui__ = "AutocompleteOption";
621
- var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { viewBox: "0 0 14 14", width: "1em", height: "1em", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
621
+ var AutocompleteCheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { viewBox: "0 0 14 14", width: "1em", height: "1em", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
622
622
  "polygon",
623
623
  {
624
624
  fill: "currentColor",
625
625
  points: "5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"
626
626
  }
627
627
  ) });
628
- CheckIcon.displayName = "CheckIcon";
629
- CheckIcon.__ui__ = "CheckIcon";
628
+ AutocompleteCheckIcon.displayName = "AutocompleteCheckIcon";
629
+ AutocompleteCheckIcon.__ui__ = "AutocompleteCheckIcon";
630
630
 
631
631
  // src/autocomplete-option-group.tsx
632
632
  var import_core7 = require("@yamada-ui/core");