@yamada-ui/autocomplete 0.0.0-dev-20231210171713 → 0.0.0-dev-20231211060929
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/autocomplete-create.mjs +1 -1
- package/dist/autocomplete-empty.mjs +1 -1
- package/dist/autocomplete-icon.mjs +1 -1
- package/dist/autocomplete-list.mjs +1 -1
- package/dist/autocomplete-option-group.mjs +1 -1
- package/dist/autocomplete-option.mjs +1 -1
- package/dist/autocomplete.d.mts +8 -0
- package/dist/autocomplete.d.ts +8 -0
- package/dist/autocomplete.js +4 -2
- package/dist/autocomplete.mjs +1 -1
- package/dist/{chunk-EL55QO7P.mjs → chunk-DZE2TDMF.mjs} +8 -4
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -4
- package/dist/index.mjs +1 -1
- package/dist/multi-autocomplete.d.mts +8 -0
- package/dist/multi-autocomplete.d.ts +8 -0
- package/dist/multi-autocomplete.js +4 -2
- package/dist/multi-autocomplete.mjs +1 -1
- package/dist/use-autocomplete.mjs +1 -1
- package/package.json +4 -3
package/dist/autocomplete.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { ThemeProps, HTMLUIProps } from '@yamada-ui/core';
|
|
3
|
+
import { PortalProps } from '@yamada-ui/portal';
|
|
3
4
|
import { AutocompleteIconProps } from './autocomplete-icon.mjs';
|
|
4
5
|
import { AutocompleteListProps } from './autocomplete-list.mjs';
|
|
5
6
|
import { c as UseAutocompleteProps } from './use-autocomplete-PdT_PKFf.mjs';
|
|
@@ -34,6 +35,13 @@ type AutocompleteOptions = {
|
|
|
34
35
|
* Props for autocomplete icon element.
|
|
35
36
|
*/
|
|
36
37
|
iconProps?: AutocompleteIconProps;
|
|
38
|
+
/**
|
|
39
|
+
* Props to be forwarded to the portal component.
|
|
40
|
+
*
|
|
41
|
+
* @default '{ isDisabled: true }'
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
portalProps?: Omit<PortalProps, "children">;
|
|
37
45
|
};
|
|
38
46
|
type AutocompleteProps = ThemeProps<"Select"> & Omit<UseAutocompleteProps<string>, "maxSelectedValues" | "omitSelectedValues"> & AutocompleteOptions;
|
|
39
47
|
declare const Autocomplete: _yamada_ui_core.Component<"input", AutocompleteProps>;
|
package/dist/autocomplete.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { ThemeProps, HTMLUIProps } from '@yamada-ui/core';
|
|
3
|
+
import { PortalProps } from '@yamada-ui/portal';
|
|
3
4
|
import { AutocompleteIconProps } from './autocomplete-icon.js';
|
|
4
5
|
import { AutocompleteListProps } from './autocomplete-list.js';
|
|
5
6
|
import { c as UseAutocompleteProps } from './use-autocomplete-PdT_PKFf.js';
|
|
@@ -34,6 +35,13 @@ type AutocompleteOptions = {
|
|
|
34
35
|
* Props for autocomplete icon element.
|
|
35
36
|
*/
|
|
36
37
|
iconProps?: AutocompleteIconProps;
|
|
38
|
+
/**
|
|
39
|
+
* Props to be forwarded to the portal component.
|
|
40
|
+
*
|
|
41
|
+
* @default '{ isDisabled: true }'
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
portalProps?: Omit<PortalProps, "children">;
|
|
37
45
|
};
|
|
38
46
|
type AutocompleteProps = ThemeProps<"Select"> & Omit<UseAutocompleteProps<string>, "maxSelectedValues" | "omitSelectedValues"> & AutocompleteOptions;
|
|
39
47
|
declare const Autocomplete: _yamada_ui_core.Component<"input", AutocompleteProps>;
|
package/dist/autocomplete.js
CHANGED
|
@@ -26,6 +26,7 @@ __export(autocomplete_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(autocomplete_exports);
|
|
27
27
|
var import_core8 = require("@yamada-ui/core");
|
|
28
28
|
var import_popover3 = require("@yamada-ui/popover");
|
|
29
|
+
var import_portal = require("@yamada-ui/portal");
|
|
29
30
|
var import_utils8 = require("@yamada-ui/utils");
|
|
30
31
|
|
|
31
32
|
// src/autocomplete-icon.tsx
|
|
@@ -1497,6 +1498,7 @@ var Autocomplete = (0, import_core8.forwardRef)(
|
|
|
1497
1498
|
listProps,
|
|
1498
1499
|
inputProps,
|
|
1499
1500
|
iconProps,
|
|
1501
|
+
portalProps = { isDisabled: false },
|
|
1500
1502
|
children,
|
|
1501
1503
|
...computedProps
|
|
1502
1504
|
} = (0, import_core8.omitThemeProps)(mergedProps);
|
|
@@ -1557,10 +1559,10 @@ var Autocomplete = (0, import_core8.forwardRef)(
|
|
|
1557
1559
|
]
|
|
1558
1560
|
}
|
|
1559
1561
|
),
|
|
1560
|
-
!isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(AutocompleteList, { ...listProps, children: [
|
|
1562
|
+
!isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_portal.Portal, { ...portalProps, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(AutocompleteList, { ...listProps, children: [
|
|
1561
1563
|
allowCreate ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteCreate, {}) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteEmpty, {}),
|
|
1562
1564
|
children != null ? children : computedChildren
|
|
1563
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteList, { ...listProps, children: allowCreate && inputValue ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteCreate, {}) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteEmpty, {}) })
|
|
1565
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_portal.Portal, { ...portalProps, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteList, { ...listProps, children: allowCreate && inputValue ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteCreate, {}) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteEmpty, {}) }) })
|
|
1564
1566
|
]
|
|
1565
1567
|
}
|
|
1566
1568
|
) })
|
package/dist/autocomplete.mjs
CHANGED
|
@@ -44,6 +44,7 @@ import {
|
|
|
44
44
|
omitThemeProps
|
|
45
45
|
} from "@yamada-ui/core";
|
|
46
46
|
import { Popover, PopoverTrigger } from "@yamada-ui/popover";
|
|
47
|
+
import { Portal } from "@yamada-ui/portal";
|
|
47
48
|
import { cx as cx2 } from "@yamada-ui/utils";
|
|
48
49
|
|
|
49
50
|
// src/autocomplete-icon.tsx
|
|
@@ -153,6 +154,7 @@ var Autocomplete = forwardRef2(
|
|
|
153
154
|
listProps,
|
|
154
155
|
inputProps,
|
|
155
156
|
iconProps,
|
|
157
|
+
portalProps = { isDisabled: false },
|
|
156
158
|
children,
|
|
157
159
|
...computedProps
|
|
158
160
|
} = omitThemeProps(mergedProps);
|
|
@@ -213,10 +215,10 @@ var Autocomplete = forwardRef2(
|
|
|
213
215
|
]
|
|
214
216
|
}
|
|
215
217
|
),
|
|
216
|
-
!isEmpty ? /* @__PURE__ */ jsxs(AutocompleteList, { ...listProps, children: [
|
|
218
|
+
!isEmpty ? /* @__PURE__ */ jsx2(Portal, { ...portalProps, children: /* @__PURE__ */ jsxs(AutocompleteList, { ...listProps, children: [
|
|
217
219
|
allowCreate ? /* @__PURE__ */ jsx2(AutocompleteCreate, {}) : /* @__PURE__ */ jsx2(AutocompleteEmpty, {}),
|
|
218
220
|
children != null ? children : computedChildren
|
|
219
|
-
] }) : /* @__PURE__ */ jsx2(AutocompleteList, { ...listProps, children: allowCreate && inputValue ? /* @__PURE__ */ jsx2(AutocompleteCreate, {}) : /* @__PURE__ */ jsx2(AutocompleteEmpty, {}) })
|
|
221
|
+
] }) }) : /* @__PURE__ */ jsx2(Portal, { ...portalProps, children: /* @__PURE__ */ jsx2(AutocompleteList, { ...listProps, children: allowCreate && inputValue ? /* @__PURE__ */ jsx2(AutocompleteCreate, {}) : /* @__PURE__ */ jsx2(AutocompleteEmpty, {}) }) })
|
|
220
222
|
]
|
|
221
223
|
}
|
|
222
224
|
) })
|
|
@@ -447,6 +449,7 @@ import {
|
|
|
447
449
|
omitThemeProps as omitThemeProps2
|
|
448
450
|
} from "@yamada-ui/core";
|
|
449
451
|
import { Popover as Popover2, PopoverTrigger as PopoverTrigger2 } from "@yamada-ui/popover";
|
|
452
|
+
import { Portal as Portal2 } from "@yamada-ui/portal";
|
|
450
453
|
import { cx as cx7, handlerAll } from "@yamada-ui/utils";
|
|
451
454
|
import { cloneElement as cloneElement2, useMemo } from "react";
|
|
452
455
|
import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
@@ -474,6 +477,7 @@ var MultiAutocomplete = forwardRef7(
|
|
|
474
477
|
inputProps,
|
|
475
478
|
iconProps,
|
|
476
479
|
clearIconProps,
|
|
480
|
+
portalProps = { isDisabled: false },
|
|
477
481
|
children,
|
|
478
482
|
...computedProps
|
|
479
483
|
} = omitThemeProps2(mergedProps);
|
|
@@ -552,10 +556,10 @@ var MultiAutocomplete = forwardRef7(
|
|
|
552
556
|
]
|
|
553
557
|
}
|
|
554
558
|
),
|
|
555
|
-
!isEmpty ? /* @__PURE__ */ jsxs6(AutocompleteList, { ...listProps, children: [
|
|
559
|
+
!isEmpty ? /* @__PURE__ */ jsx7(Portal2, { ...portalProps, children: /* @__PURE__ */ jsxs6(AutocompleteList, { ...listProps, children: [
|
|
556
560
|
allowCreate ? /* @__PURE__ */ jsx7(AutocompleteCreate, {}) : /* @__PURE__ */ jsx7(AutocompleteEmpty, {}),
|
|
557
561
|
children != null ? children : computedChildren
|
|
558
|
-
] }) : /* @__PURE__ */ jsx7(AutocompleteList, { ...listProps, children: allowCreate && inputValue ? /* @__PURE__ */ jsx7(AutocompleteCreate, {}) : /* @__PURE__ */ jsx7(AutocompleteEmpty, {}) })
|
|
562
|
+
] }) }) : /* @__PURE__ */ jsx7(Portal2, { ...portalProps, children: /* @__PURE__ */ jsx7(AutocompleteList, { ...listProps, children: allowCreate && inputValue ? /* @__PURE__ */ jsx7(AutocompleteCreate, {}) : /* @__PURE__ */ jsx7(AutocompleteEmpty, {}) }) })
|
|
559
563
|
]
|
|
560
564
|
}
|
|
561
565
|
) })
|
package/dist/index.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ export { AutocompleteCreate, AutocompleteCreateProps } from './autocomplete-crea
|
|
|
5
5
|
export { AutocompleteEmpty, AutocompleteEmptyProps } from './autocomplete-empty.mjs';
|
|
6
6
|
export { MultiAutocomplete, MultiAutocompleteProps } from './multi-autocomplete.mjs';
|
|
7
7
|
import '@yamada-ui/core';
|
|
8
|
+
import '@yamada-ui/portal';
|
|
8
9
|
import './autocomplete-icon.mjs';
|
|
9
10
|
import 'react';
|
|
10
11
|
import './autocomplete-list.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { AutocompleteCreate, AutocompleteCreateProps } from './autocomplete-crea
|
|
|
5
5
|
export { AutocompleteEmpty, AutocompleteEmptyProps } from './autocomplete-empty.js';
|
|
6
6
|
export { MultiAutocomplete, MultiAutocompleteProps } from './multi-autocomplete.js';
|
|
7
7
|
import '@yamada-ui/core';
|
|
8
|
+
import '@yamada-ui/portal';
|
|
8
9
|
import './autocomplete-icon.js';
|
|
9
10
|
import 'react';
|
|
10
11
|
import './autocomplete-list.js';
|
package/dist/index.js
CHANGED
|
@@ -33,6 +33,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
33
33
|
// src/autocomplete.tsx
|
|
34
34
|
var import_core4 = require("@yamada-ui/core");
|
|
35
35
|
var import_popover3 = require("@yamada-ui/popover");
|
|
36
|
+
var import_portal = require("@yamada-ui/portal");
|
|
36
37
|
var import_utils4 = require("@yamada-ui/utils");
|
|
37
38
|
|
|
38
39
|
// src/autocomplete-icon.tsx
|
|
@@ -1347,6 +1348,7 @@ var Autocomplete = (0, import_core4.forwardRef)(
|
|
|
1347
1348
|
listProps,
|
|
1348
1349
|
inputProps,
|
|
1349
1350
|
iconProps,
|
|
1351
|
+
portalProps = { isDisabled: false },
|
|
1350
1352
|
children,
|
|
1351
1353
|
...computedProps
|
|
1352
1354
|
} = (0, import_core4.omitThemeProps)(mergedProps);
|
|
@@ -1407,10 +1409,10 @@ var Autocomplete = (0, import_core4.forwardRef)(
|
|
|
1407
1409
|
]
|
|
1408
1410
|
}
|
|
1409
1411
|
),
|
|
1410
|
-
!isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(AutocompleteList, { ...listProps, children: [
|
|
1412
|
+
!isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_portal.Portal, { ...portalProps, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(AutocompleteList, { ...listProps, children: [
|
|
1411
1413
|
allowCreate ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AutocompleteCreate, {}) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AutocompleteEmpty, {}),
|
|
1412
1414
|
children != null ? children : computedChildren
|
|
1413
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AutocompleteList, { ...listProps, children: allowCreate && inputValue ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AutocompleteCreate, {}) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AutocompleteEmpty, {}) })
|
|
1415
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_portal.Portal, { ...portalProps, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AutocompleteList, { ...listProps, children: allowCreate && inputValue ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AutocompleteCreate, {}) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AutocompleteEmpty, {}) }) })
|
|
1414
1416
|
]
|
|
1415
1417
|
}
|
|
1416
1418
|
) })
|
|
@@ -1636,6 +1638,7 @@ var MinusIcon = () => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { view
|
|
|
1636
1638
|
// src/multi-autocomplete.tsx
|
|
1637
1639
|
var import_core9 = require("@yamada-ui/core");
|
|
1638
1640
|
var import_popover4 = require("@yamada-ui/popover");
|
|
1641
|
+
var import_portal2 = require("@yamada-ui/portal");
|
|
1639
1642
|
var import_utils9 = require("@yamada-ui/utils");
|
|
1640
1643
|
var import_react3 = require("react");
|
|
1641
1644
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
@@ -1663,6 +1666,7 @@ var MultiAutocomplete = (0, import_core9.forwardRef)(
|
|
|
1663
1666
|
inputProps,
|
|
1664
1667
|
iconProps,
|
|
1665
1668
|
clearIconProps,
|
|
1669
|
+
portalProps = { isDisabled: false },
|
|
1666
1670
|
children,
|
|
1667
1671
|
...computedProps
|
|
1668
1672
|
} = (0, import_core9.omitThemeProps)(mergedProps);
|
|
@@ -1741,10 +1745,10 @@ var MultiAutocomplete = (0, import_core9.forwardRef)(
|
|
|
1741
1745
|
]
|
|
1742
1746
|
}
|
|
1743
1747
|
),
|
|
1744
|
-
!isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(AutocompleteList, { ...listProps, children: [
|
|
1748
|
+
!isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_portal2.Portal, { ...portalProps, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(AutocompleteList, { ...listProps, children: [
|
|
1745
1749
|
allowCreate ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AutocompleteCreate, {}) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AutocompleteEmpty, {}),
|
|
1746
1750
|
children != null ? children : computedChildren
|
|
1747
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AutocompleteList, { ...listProps, children: allowCreate && inputValue ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AutocompleteCreate, {}) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AutocompleteEmpty, {}) })
|
|
1751
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_portal2.Portal, { ...portalProps, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AutocompleteList, { ...listProps, children: allowCreate && inputValue ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AutocompleteCreate, {}) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AutocompleteEmpty, {}) }) })
|
|
1748
1752
|
]
|
|
1749
1753
|
}
|
|
1750
1754
|
) })
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { ThemeProps, HTMLUIProps } from '@yamada-ui/core';
|
|
3
|
+
import { PortalProps } from '@yamada-ui/portal';
|
|
3
4
|
import { FC, MouseEventHandler } from 'react';
|
|
4
5
|
import { AutocompleteIconProps } from './autocomplete-icon.mjs';
|
|
5
6
|
import { AutocompleteListProps } from './autocomplete-list.mjs';
|
|
@@ -65,6 +66,13 @@ type MultiAutocompleteOptions = {
|
|
|
65
66
|
* Props for multi autocomplete clear icon element.
|
|
66
67
|
*/
|
|
67
68
|
clearIconProps?: AutocompleteIconProps;
|
|
69
|
+
/**
|
|
70
|
+
* Props to be forwarded to the portal component.
|
|
71
|
+
*
|
|
72
|
+
* @default '{ isDisabled: true }'
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
portalProps?: Omit<PortalProps, "children">;
|
|
68
76
|
};
|
|
69
77
|
type MultiAutocompleteProps = ThemeProps<"Select"> & UseAutocompleteProps<string[]> & MultiAutocompleteOptions;
|
|
70
78
|
declare const MultiAutocomplete: _yamada_ui_core.Component<"div", MultiAutocompleteProps>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { ThemeProps, HTMLUIProps } from '@yamada-ui/core';
|
|
3
|
+
import { PortalProps } from '@yamada-ui/portal';
|
|
3
4
|
import { FC, MouseEventHandler } from 'react';
|
|
4
5
|
import { AutocompleteIconProps } from './autocomplete-icon.js';
|
|
5
6
|
import { AutocompleteListProps } from './autocomplete-list.js';
|
|
@@ -65,6 +66,13 @@ type MultiAutocompleteOptions = {
|
|
|
65
66
|
* Props for multi autocomplete clear icon element.
|
|
66
67
|
*/
|
|
67
68
|
clearIconProps?: AutocompleteIconProps;
|
|
69
|
+
/**
|
|
70
|
+
* Props to be forwarded to the portal component.
|
|
71
|
+
*
|
|
72
|
+
* @default '{ isDisabled: true }'
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
portalProps?: Omit<PortalProps, "children">;
|
|
68
76
|
};
|
|
69
77
|
type MultiAutocompleteProps = ThemeProps<"Select"> & UseAutocompleteProps<string[]> & MultiAutocompleteOptions;
|
|
70
78
|
declare const MultiAutocomplete: _yamada_ui_core.Component<"div", MultiAutocompleteProps>;
|
|
@@ -26,6 +26,7 @@ __export(multi_autocomplete_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(multi_autocomplete_exports);
|
|
27
27
|
var import_core8 = require("@yamada-ui/core");
|
|
28
28
|
var import_popover3 = require("@yamada-ui/popover");
|
|
29
|
+
var import_portal = require("@yamada-ui/portal");
|
|
29
30
|
var import_utils8 = require("@yamada-ui/utils");
|
|
30
31
|
var import_react3 = require("react");
|
|
31
32
|
|
|
@@ -1530,6 +1531,7 @@ var MultiAutocomplete = (0, import_core8.forwardRef)(
|
|
|
1530
1531
|
inputProps,
|
|
1531
1532
|
iconProps,
|
|
1532
1533
|
clearIconProps,
|
|
1534
|
+
portalProps = { isDisabled: false },
|
|
1533
1535
|
children,
|
|
1534
1536
|
...computedProps
|
|
1535
1537
|
} = (0, import_core8.omitThemeProps)(mergedProps);
|
|
@@ -1608,10 +1610,10 @@ var MultiAutocomplete = (0, import_core8.forwardRef)(
|
|
|
1608
1610
|
]
|
|
1609
1611
|
}
|
|
1610
1612
|
),
|
|
1611
|
-
!isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(AutocompleteList, { ...listProps, children: [
|
|
1613
|
+
!isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_portal.Portal, { ...portalProps, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(AutocompleteList, { ...listProps, children: [
|
|
1612
1614
|
allowCreate ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteCreate, {}) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteEmpty, {}),
|
|
1613
1615
|
children != null ? children : computedChildren
|
|
1614
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteList, { ...listProps, children: allowCreate && inputValue ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteCreate, {}) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteEmpty, {}) })
|
|
1616
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_portal.Portal, { ...portalProps, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteList, { ...listProps, children: allowCreate && inputValue ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteCreate, {}) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AutocompleteEmpty, {}) }) })
|
|
1615
1617
|
]
|
|
1616
1618
|
}
|
|
1617
1619
|
) })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/autocomplete",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20231211060929",
|
|
4
4
|
"description": "Yamada UI autocomplete component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -39,13 +39,14 @@
|
|
|
39
39
|
"@yamada-ui/core": "0.13.2",
|
|
40
40
|
"@yamada-ui/utils": "0.4.1",
|
|
41
41
|
"@yamada-ui/icon": "0.3.21",
|
|
42
|
-
"@yamada-ui/select": "0.0.0-dev-
|
|
42
|
+
"@yamada-ui/select": "0.0.0-dev-20231211060929",
|
|
43
43
|
"@yamada-ui/form-control": "0.3.24",
|
|
44
44
|
"@yamada-ui/popover": "0.3.28",
|
|
45
45
|
"@yamada-ui/use-descendant": "0.2.9",
|
|
46
46
|
"@yamada-ui/use-clickable": "0.3.8",
|
|
47
47
|
"@yamada-ui/use-outside-click": "0.2.8",
|
|
48
|
-
"@yamada-ui/use-controllable-state": "0.4.2"
|
|
48
|
+
"@yamada-ui/use-controllable-state": "0.4.2",
|
|
49
|
+
"@yamada-ui/portal": "0.3.9"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"react": "^18.0.0",
|