@yamada-ui/autocomplete 0.5.3 → 0.5.5
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.js +2 -2
- package/dist/autocomplete-option-group.mjs +1 -1
- package/dist/autocomplete-option.js +1 -1
- package/dist/autocomplete-option.mjs +1 -1
- package/dist/autocomplete.js +5 -5
- package/dist/autocomplete.mjs +1 -1
- package/dist/{chunk-JKY5MMNC.mjs → chunk-GQ4NNX5K.mjs} +7 -7
- package/dist/index.js +7 -7
- package/dist/index.mjs +1 -1
- package/dist/multi-autocomplete.js +5 -5
- package/dist/multi-autocomplete.mjs +1 -1
- package/dist/use-autocomplete.js +3 -3
- package/dist/use-autocomplete.mjs +1 -1
- package/package.json +4 -4
|
@@ -116,8 +116,8 @@ var AutocompleteOptionGroup = (0, import_core2.forwardRef)(
|
|
|
116
116
|
({ className, color, h, height, minH, minHeight, children, ...rest }, ref) => {
|
|
117
117
|
const { styles } = useAutocompleteContext();
|
|
118
118
|
const { label, getContainerProps, getGroupProps } = useAutocompleteOptionGroup(rest);
|
|
119
|
-
h
|
|
120
|
-
minH
|
|
119
|
+
h != null ? h : h = height;
|
|
120
|
+
minH != null ? minH : minH = minHeight;
|
|
121
121
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
122
122
|
import_core2.ui.li,
|
|
123
123
|
{
|
|
@@ -257,7 +257,7 @@ var AutocompleteOption = (0, import_core3.forwardRef)(
|
|
|
257
257
|
({ className, icon, ...rest }, ref) => {
|
|
258
258
|
const { styles } = useAutocompleteContext();
|
|
259
259
|
const { isSelected, customIcon, children, getOptionProps } = useAutocompleteOption(rest);
|
|
260
|
-
icon
|
|
260
|
+
icon != null ? icon : icon = customIcon;
|
|
261
261
|
const css = {
|
|
262
262
|
textDecoration: "none",
|
|
263
263
|
color: "inherit",
|
package/dist/autocomplete.js
CHANGED
|
@@ -52,8 +52,8 @@ var AutocompleteOptionGroup = (0, import_core.forwardRef)(
|
|
|
52
52
|
({ className, color, h, height, minH, minHeight, children, ...rest }, ref) => {
|
|
53
53
|
const { styles } = useAutocompleteContext();
|
|
54
54
|
const { label, getContainerProps, getGroupProps } = useAutocompleteOptionGroup(rest);
|
|
55
|
-
h
|
|
56
|
-
minH
|
|
55
|
+
h != null ? h : h = height;
|
|
56
|
+
minH != null ? minH : minH = minHeight;
|
|
57
57
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
58
58
|
import_core.ui.li,
|
|
59
59
|
{
|
|
@@ -97,7 +97,7 @@ var AutocompleteOption = (0, import_core2.forwardRef)(
|
|
|
97
97
|
({ className, icon, ...rest }, ref) => {
|
|
98
98
|
const { styles } = useAutocompleteContext();
|
|
99
99
|
const { isSelected, customIcon, children, getOptionProps } = useAutocompleteOption(rest);
|
|
100
|
-
icon
|
|
100
|
+
icon != null ? icon : icon = customIcon;
|
|
101
101
|
const css = {
|
|
102
102
|
textDecoration: "none",
|
|
103
103
|
color: "inherit",
|
|
@@ -1474,8 +1474,8 @@ var Autocomplete = (0, import_core8.forwardRef)(
|
|
|
1474
1474
|
computedChildren,
|
|
1475
1475
|
...rest
|
|
1476
1476
|
} = useAutocomplete({ ...computedProps, defaultValue, children });
|
|
1477
|
-
h
|
|
1478
|
-
minH
|
|
1477
|
+
h != null ? h : h = height;
|
|
1478
|
+
minH != null ? minH : minH = minHeight;
|
|
1479
1479
|
const css = {
|
|
1480
1480
|
position: "relative",
|
|
1481
1481
|
w: "100%",
|
package/dist/autocomplete.mjs
CHANGED
|
@@ -177,8 +177,8 @@ var Autocomplete = forwardRef2(
|
|
|
177
177
|
computedChildren,
|
|
178
178
|
...rest
|
|
179
179
|
} = useAutocomplete({ ...computedProps, defaultValue, children });
|
|
180
|
-
h
|
|
181
|
-
minH
|
|
180
|
+
h != null ? h : h = height;
|
|
181
|
+
minH != null ? minH : minH = minHeight;
|
|
182
182
|
const css = {
|
|
183
183
|
position: "relative",
|
|
184
184
|
w: "100%",
|
|
@@ -270,8 +270,8 @@ var AutocompleteOptionGroup = forwardRef3(
|
|
|
270
270
|
({ className, color, h, height, minH, minHeight, children, ...rest }, ref) => {
|
|
271
271
|
const { styles } = useAutocompleteContext();
|
|
272
272
|
const { label, getContainerProps, getGroupProps } = useAutocompleteOptionGroup(rest);
|
|
273
|
-
h
|
|
274
|
-
minH
|
|
273
|
+
h != null ? h : h = height;
|
|
274
|
+
minH != null ? minH : minH = minHeight;
|
|
275
275
|
return /* @__PURE__ */ jsxs2(
|
|
276
276
|
ui3.li,
|
|
277
277
|
{
|
|
@@ -315,7 +315,7 @@ var AutocompleteOption = forwardRef4(
|
|
|
315
315
|
({ className, icon, ...rest }, ref) => {
|
|
316
316
|
const { styles } = useAutocompleteContext();
|
|
317
317
|
const { isSelected, customIcon, children, getOptionProps } = useAutocompleteOption(rest);
|
|
318
|
-
icon
|
|
318
|
+
icon != null ? icon : icon = customIcon;
|
|
319
319
|
const css = {
|
|
320
320
|
textDecoration: "none",
|
|
321
321
|
color: "inherit",
|
|
@@ -500,8 +500,8 @@ var MultiAutocomplete = forwardRef7(
|
|
|
500
500
|
closeOnSelect,
|
|
501
501
|
children
|
|
502
502
|
});
|
|
503
|
-
h
|
|
504
|
-
minH
|
|
503
|
+
h != null ? h : h = height;
|
|
504
|
+
minH != null ? minH : minH = minHeight;
|
|
505
505
|
const css = {
|
|
506
506
|
position: "relative",
|
|
507
507
|
w: "100%",
|
package/dist/index.js
CHANGED
|
@@ -1324,8 +1324,8 @@ var Autocomplete = (0, import_core4.forwardRef)(
|
|
|
1324
1324
|
computedChildren,
|
|
1325
1325
|
...rest
|
|
1326
1326
|
} = useAutocomplete({ ...computedProps, defaultValue, children });
|
|
1327
|
-
h
|
|
1328
|
-
minH
|
|
1327
|
+
h != null ? h : h = height;
|
|
1328
|
+
minH != null ? minH : minH = minHeight;
|
|
1329
1329
|
const css = {
|
|
1330
1330
|
position: "relative",
|
|
1331
1331
|
w: "100%",
|
|
@@ -1417,8 +1417,8 @@ var AutocompleteOptionGroup = (0, import_core5.forwardRef)(
|
|
|
1417
1417
|
({ className, color, h, height, minH, minHeight, children, ...rest }, ref) => {
|
|
1418
1418
|
const { styles } = useAutocompleteContext();
|
|
1419
1419
|
const { label, getContainerProps, getGroupProps } = useAutocompleteOptionGroup(rest);
|
|
1420
|
-
h
|
|
1421
|
-
minH
|
|
1420
|
+
h != null ? h : h = height;
|
|
1421
|
+
minH != null ? minH : minH = minHeight;
|
|
1422
1422
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1423
1423
|
import_core5.ui.li,
|
|
1424
1424
|
{
|
|
@@ -1462,7 +1462,7 @@ var AutocompleteOption = (0, import_core6.forwardRef)(
|
|
|
1462
1462
|
({ className, icon, ...rest }, ref) => {
|
|
1463
1463
|
const { styles } = useAutocompleteContext();
|
|
1464
1464
|
const { isSelected, customIcon, children, getOptionProps } = useAutocompleteOption(rest);
|
|
1465
|
-
icon
|
|
1465
|
+
icon != null ? icon : icon = customIcon;
|
|
1466
1466
|
const css = {
|
|
1467
1467
|
textDecoration: "none",
|
|
1468
1468
|
color: "inherit",
|
|
@@ -1639,8 +1639,8 @@ var MultiAutocomplete = (0, import_core9.forwardRef)(
|
|
|
1639
1639
|
closeOnSelect,
|
|
1640
1640
|
children
|
|
1641
1641
|
});
|
|
1642
|
-
h
|
|
1643
|
-
minH
|
|
1642
|
+
h != null ? h : h = height;
|
|
1643
|
+
minH != null ? minH : minH = minHeight;
|
|
1644
1644
|
const css = {
|
|
1645
1645
|
position: "relative",
|
|
1646
1646
|
w: "100%",
|
package/dist/index.mjs
CHANGED
|
@@ -79,8 +79,8 @@ var AutocompleteOptionGroup = (0, import_core2.forwardRef)(
|
|
|
79
79
|
({ className, color, h, height, minH, minHeight, children, ...rest }, ref) => {
|
|
80
80
|
const { styles } = useAutocompleteContext();
|
|
81
81
|
const { label, getContainerProps, getGroupProps } = useAutocompleteOptionGroup(rest);
|
|
82
|
-
h
|
|
83
|
-
minH
|
|
82
|
+
h != null ? h : h = height;
|
|
83
|
+
minH != null ? minH : minH = minHeight;
|
|
84
84
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
85
85
|
import_core2.ui.li,
|
|
86
86
|
{
|
|
@@ -124,7 +124,7 @@ var AutocompleteOption = (0, import_core3.forwardRef)(
|
|
|
124
124
|
({ className, icon, ...rest }, ref) => {
|
|
125
125
|
const { styles } = useAutocompleteContext();
|
|
126
126
|
const { isSelected, customIcon, children, getOptionProps } = useAutocompleteOption(rest);
|
|
127
|
-
icon
|
|
127
|
+
icon != null ? icon : icon = customIcon;
|
|
128
128
|
const css = {
|
|
129
129
|
textDecoration: "none",
|
|
130
130
|
color: "inherit",
|
|
@@ -1514,8 +1514,8 @@ var MultiAutocomplete = (0, import_core8.forwardRef)(
|
|
|
1514
1514
|
closeOnSelect,
|
|
1515
1515
|
children
|
|
1516
1516
|
});
|
|
1517
|
-
h
|
|
1518
|
-
minH
|
|
1517
|
+
h != null ? h : h = height;
|
|
1518
|
+
minH != null ? minH : minH = minHeight;
|
|
1519
1519
|
const css = {
|
|
1520
1520
|
position: "relative",
|
|
1521
1521
|
w: "100%",
|
package/dist/use-autocomplete.js
CHANGED
|
@@ -119,8 +119,8 @@ var AutocompleteOptionGroup = (0, import_core2.forwardRef)(
|
|
|
119
119
|
({ className, color, h, height, minH, minHeight, children, ...rest }, ref) => {
|
|
120
120
|
const { styles } = useAutocompleteContext();
|
|
121
121
|
const { label, getContainerProps, getGroupProps } = useAutocompleteOptionGroup(rest);
|
|
122
|
-
h
|
|
123
|
-
minH
|
|
122
|
+
h != null ? h : h = height;
|
|
123
|
+
minH != null ? minH : minH = minHeight;
|
|
124
124
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
125
125
|
import_core2.ui.li,
|
|
126
126
|
{
|
|
@@ -164,7 +164,7 @@ var AutocompleteOption = (0, import_core3.forwardRef)(
|
|
|
164
164
|
({ className, icon, ...rest }, ref) => {
|
|
165
165
|
const { styles } = useAutocompleteContext();
|
|
166
166
|
const { isSelected, customIcon, children, getOptionProps } = useAutocompleteOption(rest);
|
|
167
|
-
icon
|
|
167
|
+
icon != null ? icon : icon = customIcon;
|
|
168
168
|
const css = {
|
|
169
169
|
textDecoration: "none",
|
|
170
170
|
color: "inherit",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/autocomplete",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "Yamada UI autocomplete component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"@yamada-ui/core": "0.12.6",
|
|
40
40
|
"@yamada-ui/utils": "0.3.3",
|
|
41
41
|
"@yamada-ui/icon": "0.3.16",
|
|
42
|
-
"@yamada-ui/select": "0.5.
|
|
42
|
+
"@yamada-ui/select": "0.5.5",
|
|
43
43
|
"@yamada-ui/form-control": "0.3.19",
|
|
44
|
-
"@yamada-ui/popover": "0.3.
|
|
44
|
+
"@yamada-ui/popover": "0.3.23",
|
|
45
45
|
"@yamada-ui/use-descendant": "0.2.5",
|
|
46
46
|
"@yamada-ui/use-clickable": "0.3.5",
|
|
47
47
|
"@yamada-ui/use-outside-click": "0.2.5",
|
|
48
|
-
"@yamada-ui/use-controllable-state": "0.3.
|
|
48
|
+
"@yamada-ui/use-controllable-state": "0.3.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"react": "^18.0.0",
|