@yamada-ui/autocomplete 0.4.9 → 0.4.11
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.js +3 -3
- package/dist/autocomplete-create.mjs +1 -1
- package/dist/autocomplete-empty.js +3 -3
- package/dist/autocomplete-empty.mjs +1 -1
- package/dist/autocomplete-icon.js +3 -3
- package/dist/autocomplete-icon.mjs +1 -1
- package/dist/autocomplete-list.js +1 -1
- package/dist/autocomplete-list.mjs +1 -1
- package/dist/autocomplete-option-group.js +7 -3
- package/dist/autocomplete-option-group.mjs +1 -1
- package/dist/autocomplete-option.js +3 -3
- package/dist/autocomplete-option.mjs +1 -1
- package/dist/autocomplete.js +15 -11
- package/dist/autocomplete.mjs +1 -1
- package/dist/{chunk-2GZO4Q4I.mjs → chunk-EFOFI4S7.mjs} +18 -14
- package/dist/index.js +18 -14
- package/dist/index.mjs +1 -1
- package/dist/multi-autocomplete.js +16 -12
- package/dist/multi-autocomplete.mjs +1 -1
- package/dist/use-autocomplete.js +10 -6
- package/dist/use-autocomplete.mjs +1 -1
- package/package.json +4 -4
|
@@ -115,7 +115,7 @@ var AutocompleteIcon = (0, import_core2.forwardRef)(
|
|
|
115
115
|
import_core2.ui.div,
|
|
116
116
|
{
|
|
117
117
|
ref,
|
|
118
|
-
className: (0, import_utils2.cx)("ui-
|
|
118
|
+
className: (0, import_utils2.cx)("ui-autocomplete__icon", className),
|
|
119
119
|
__css: css,
|
|
120
120
|
...rest,
|
|
121
121
|
children: (0, import_utils2.isValidElement)(children) ? cloneChildren : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icon.ChevronIcon, {})
|
|
@@ -137,7 +137,7 @@ var AutocompleteItemIcon = (0, import_core2.forwardRef)(({ className, ...rest },
|
|
|
137
137
|
import_core2.ui.span,
|
|
138
138
|
{
|
|
139
139
|
ref,
|
|
140
|
-
className: (0, import_utils2.cx)("ui-
|
|
140
|
+
className: (0, import_utils2.cx)("ui-autocomplete__item__icon", className),
|
|
141
141
|
__css: css,
|
|
142
142
|
...rest
|
|
143
143
|
}
|
|
@@ -167,7 +167,7 @@ var AutocompleteCreate = (0, import_core3.forwardRef)(
|
|
|
167
167
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
168
168
|
import_core3.ui.li,
|
|
169
169
|
{
|
|
170
|
-
className: (0, import_utils3.cx)("ui-
|
|
170
|
+
className: (0, import_utils3.cx)("ui-autocomplete__item--create", className),
|
|
171
171
|
__css: css,
|
|
172
172
|
...getCreateProps(rest, ref),
|
|
173
173
|
children: [
|
|
@@ -113,7 +113,7 @@ var AutocompleteIcon = (0, import_core2.forwardRef)(
|
|
|
113
113
|
import_core2.ui.div,
|
|
114
114
|
{
|
|
115
115
|
ref,
|
|
116
|
-
className: (0, import_utils2.cx)("ui-
|
|
116
|
+
className: (0, import_utils2.cx)("ui-autocomplete__icon", className),
|
|
117
117
|
__css: css,
|
|
118
118
|
...rest,
|
|
119
119
|
children: (0, import_utils2.isValidElement)(children) ? cloneChildren : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icon.ChevronIcon, {})
|
|
@@ -135,7 +135,7 @@ var AutocompleteItemIcon = (0, import_core2.forwardRef)(({ className, ...rest },
|
|
|
135
135
|
import_core2.ui.span,
|
|
136
136
|
{
|
|
137
137
|
ref,
|
|
138
|
-
className: (0, import_utils2.cx)("ui-
|
|
138
|
+
className: (0, import_utils2.cx)("ui-autocomplete__item__icon", className),
|
|
139
139
|
__css: css,
|
|
140
140
|
...rest
|
|
141
141
|
}
|
|
@@ -166,7 +166,7 @@ var AutocompleteEmpty = (0, import_core3.forwardRef)(
|
|
|
166
166
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
167
167
|
import_core3.ui.li,
|
|
168
168
|
{
|
|
169
|
-
className: (0, import_utils3.cx)("ui-
|
|
169
|
+
className: (0, import_utils3.cx)("ui-autocomplete__item--empty", className),
|
|
170
170
|
__css: css,
|
|
171
171
|
...getEmptyProps(rest, ref),
|
|
172
172
|
children: [
|
|
@@ -85,7 +85,7 @@ var AutocompleteIcon = (0, import_core2.forwardRef)(
|
|
|
85
85
|
import_core2.ui.div,
|
|
86
86
|
{
|
|
87
87
|
ref,
|
|
88
|
-
className: (0, import_utils2.cx)("ui-
|
|
88
|
+
className: (0, import_utils2.cx)("ui-autocomplete__icon", className),
|
|
89
89
|
__css: css,
|
|
90
90
|
...rest,
|
|
91
91
|
children: (0, import_utils2.isValidElement)(children) ? cloneChildren : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icon.ChevronIcon, {})
|
|
@@ -109,7 +109,7 @@ var AutocompleteClearIcon = ({
|
|
|
109
109
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
110
110
|
AutocompleteIcon,
|
|
111
111
|
{
|
|
112
|
-
className: (0, import_utils2.cx)("ui-
|
|
112
|
+
className: (0, import_utils2.cx)("ui-autocomplete__icon--clear", className),
|
|
113
113
|
__css: styles.clearIcon,
|
|
114
114
|
...rest,
|
|
115
115
|
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icon.CloseIcon, { w: "0.5em", h: "0.5em" })
|
|
@@ -130,7 +130,7 @@ var AutocompleteItemIcon = (0, import_core2.forwardRef)(({ className, ...rest },
|
|
|
130
130
|
import_core2.ui.span,
|
|
131
131
|
{
|
|
132
132
|
ref,
|
|
133
|
-
className: (0, import_utils2.cx)("ui-
|
|
133
|
+
className: (0, import_utils2.cx)("ui-autocomplete__item__icon", className),
|
|
134
134
|
__css: css,
|
|
135
135
|
...rest
|
|
136
136
|
}
|
|
@@ -120,7 +120,7 @@ var AutocompleteList = (0, import_core2.forwardRef)(
|
|
|
120
120
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
121
121
|
import_popover.PopoverContent,
|
|
122
122
|
{
|
|
123
|
-
className: (0, import_utils2.cx)("ui-
|
|
123
|
+
className: (0, import_utils2.cx)("ui-autocomplete__list", className),
|
|
124
124
|
w,
|
|
125
125
|
minW,
|
|
126
126
|
__css: css,
|
|
@@ -121,14 +121,18 @@ var AutocompleteOptionGroup = (0, import_core2.forwardRef)(
|
|
|
121
121
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
122
122
|
import_core2.ui.li,
|
|
123
123
|
{
|
|
124
|
-
className:
|
|
124
|
+
className: (0, import_utils2.cx)(
|
|
125
|
+
"ui-autocomplete__item",
|
|
126
|
+
"ui-autocomplete__item--group",
|
|
127
|
+
className
|
|
128
|
+
),
|
|
125
129
|
__css: { w: "100%", h: "fit-content", color },
|
|
126
130
|
...getContainerProps(),
|
|
127
131
|
children: [
|
|
128
132
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
129
133
|
import_core2.ui.span,
|
|
130
134
|
{
|
|
131
|
-
className: (0, import_utils2.cx)("ui-
|
|
135
|
+
className: (0, import_utils2.cx)("ui-autocomplete__item__group-label"),
|
|
132
136
|
__css: styles.groupLabel,
|
|
133
137
|
noOfLines: 1,
|
|
134
138
|
children: label
|
|
@@ -138,7 +142,7 @@ var AutocompleteOptionGroup = (0, import_core2.forwardRef)(
|
|
|
138
142
|
import_core2.ui.ul,
|
|
139
143
|
{
|
|
140
144
|
...getGroupProps({}, ref),
|
|
141
|
-
className: (0, import_utils2.cx)("ui-
|
|
145
|
+
className: (0, import_utils2.cx)("ui-autocomplete__item__group", className),
|
|
142
146
|
__css: { h, minH, ...styles.group },
|
|
143
147
|
children
|
|
144
148
|
}
|
|
@@ -222,7 +222,7 @@ var AutocompleteIcon = (0, import_core2.forwardRef)(
|
|
|
222
222
|
import_core2.ui.div,
|
|
223
223
|
{
|
|
224
224
|
ref,
|
|
225
|
-
className: (0, import_utils2.cx)("ui-
|
|
225
|
+
className: (0, import_utils2.cx)("ui-autocomplete__icon", className),
|
|
226
226
|
__css: css,
|
|
227
227
|
...rest,
|
|
228
228
|
children: (0, import_utils2.isValidElement)(children) ? cloneChildren : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icon.ChevronIcon, {})
|
|
@@ -244,7 +244,7 @@ var AutocompleteItemIcon = (0, import_core2.forwardRef)(({ className, ...rest },
|
|
|
244
244
|
import_core2.ui.span,
|
|
245
245
|
{
|
|
246
246
|
ref,
|
|
247
|
-
className: (0, import_utils2.cx)("ui-
|
|
247
|
+
className: (0, import_utils2.cx)("ui-autocomplete__item__icon", className),
|
|
248
248
|
__css: css,
|
|
249
249
|
...rest
|
|
250
250
|
}
|
|
@@ -274,7 +274,7 @@ var AutocompleteOption = (0, import_core3.forwardRef)(
|
|
|
274
274
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
275
275
|
import_core3.ui.li,
|
|
276
276
|
{
|
|
277
|
-
className: (0, import_utils3.cx)("ui-
|
|
277
|
+
className: (0, import_utils3.cx)("ui-autocomplete__item", className),
|
|
278
278
|
__css: css,
|
|
279
279
|
...getOptionProps({}, ref),
|
|
280
280
|
children: [
|
package/dist/autocomplete.js
CHANGED
|
@@ -57,14 +57,18 @@ var AutocompleteOptionGroup = (0, import_core.forwardRef)(
|
|
|
57
57
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
58
58
|
import_core.ui.li,
|
|
59
59
|
{
|
|
60
|
-
className:
|
|
60
|
+
className: (0, import_utils.cx)(
|
|
61
|
+
"ui-autocomplete__item",
|
|
62
|
+
"ui-autocomplete__item--group",
|
|
63
|
+
className
|
|
64
|
+
),
|
|
61
65
|
__css: { w: "100%", h: "fit-content", color },
|
|
62
66
|
...getContainerProps(),
|
|
63
67
|
children: [
|
|
64
68
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
65
69
|
import_core.ui.span,
|
|
66
70
|
{
|
|
67
|
-
className: (0, import_utils.cx)("ui-
|
|
71
|
+
className: (0, import_utils.cx)("ui-autocomplete__item__group-label"),
|
|
68
72
|
__css: styles.groupLabel,
|
|
69
73
|
noOfLines: 1,
|
|
70
74
|
children: label
|
|
@@ -74,7 +78,7 @@ var AutocompleteOptionGroup = (0, import_core.forwardRef)(
|
|
|
74
78
|
import_core.ui.ul,
|
|
75
79
|
{
|
|
76
80
|
...getGroupProps({}, ref),
|
|
77
|
-
className: (0, import_utils.cx)("ui-
|
|
81
|
+
className: (0, import_utils.cx)("ui-autocomplete__item__group", className),
|
|
78
82
|
__css: { h, minH, ...styles.group },
|
|
79
83
|
children
|
|
80
84
|
}
|
|
@@ -110,7 +114,7 @@ var AutocompleteOption = (0, import_core2.forwardRef)(
|
|
|
110
114
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
111
115
|
import_core2.ui.li,
|
|
112
116
|
{
|
|
113
|
-
className: (0, import_utils2.cx)("ui-
|
|
117
|
+
className: (0, import_utils2.cx)("ui-autocomplete__item", className),
|
|
114
118
|
__css: css,
|
|
115
119
|
...getOptionProps({}, ref),
|
|
116
120
|
children: [
|
|
@@ -154,7 +158,7 @@ var AutocompleteCreate = (0, import_core3.forwardRef)(
|
|
|
154
158
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
155
159
|
import_core3.ui.li,
|
|
156
160
|
{
|
|
157
|
-
className: (0, import_utils3.cx)("ui-
|
|
161
|
+
className: (0, import_utils3.cx)("ui-autocomplete__item--create", className),
|
|
158
162
|
__css: css,
|
|
159
163
|
...getCreateProps(rest, ref),
|
|
160
164
|
children: [
|
|
@@ -199,7 +203,7 @@ var AutocompleteEmpty = (0, import_core4.forwardRef)(
|
|
|
199
203
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
200
204
|
import_core4.ui.li,
|
|
201
205
|
{
|
|
202
|
-
className: (0, import_utils4.cx)("ui-
|
|
206
|
+
className: (0, import_utils4.cx)("ui-autocomplete__item--empty", className),
|
|
203
207
|
__css: css,
|
|
204
208
|
...getEmptyProps(rest, ref),
|
|
205
209
|
children: [
|
|
@@ -234,7 +238,7 @@ var AutocompleteList = (0, import_core5.forwardRef)(
|
|
|
234
238
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
235
239
|
import_popover.PopoverContent,
|
|
236
240
|
{
|
|
237
|
-
className: (0, import_utils5.cx)("ui-
|
|
241
|
+
className: (0, import_utils5.cx)("ui-autocomplete__list", className),
|
|
238
242
|
w,
|
|
239
243
|
minW,
|
|
240
244
|
__css: css,
|
|
@@ -1412,7 +1416,7 @@ var AutocompleteIcon = (0, import_core7.forwardRef)(
|
|
|
1412
1416
|
import_core7.ui.div,
|
|
1413
1417
|
{
|
|
1414
1418
|
ref,
|
|
1415
|
-
className: (0, import_utils7.cx)("ui-
|
|
1419
|
+
className: (0, import_utils7.cx)("ui-autocomplete__icon", className),
|
|
1416
1420
|
__css: css,
|
|
1417
1421
|
...rest,
|
|
1418
1422
|
children: (0, import_utils7.isValidElement)(children) ? cloneChildren : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icon.ChevronIcon, {})
|
|
@@ -1434,7 +1438,7 @@ var AutocompleteItemIcon = (0, import_core7.forwardRef)(({ className, ...rest },
|
|
|
1434
1438
|
import_core7.ui.span,
|
|
1435
1439
|
{
|
|
1436
1440
|
ref,
|
|
1437
|
-
className: (0, import_utils7.cx)("ui-
|
|
1441
|
+
className: (0, import_utils7.cx)("ui-autocomplete__item__icon", className),
|
|
1438
1442
|
__css: css,
|
|
1439
1443
|
...rest
|
|
1440
1444
|
}
|
|
@@ -1537,13 +1541,13 @@ var AutocompleteField = (0, import_core8.forwardRef)(
|
|
|
1537
1541
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_popover2.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1538
1542
|
import_core8.ui.div,
|
|
1539
1543
|
{
|
|
1540
|
-
className: (0, import_utils8.cx)("ui-
|
|
1544
|
+
className: (0, import_utils8.cx)("ui-autocomplete__field", className),
|
|
1541
1545
|
__css: css,
|
|
1542
1546
|
...rest,
|
|
1543
1547
|
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1544
1548
|
import_core8.ui.input,
|
|
1545
1549
|
{
|
|
1546
|
-
className: "ui-
|
|
1550
|
+
className: "ui-autocomplete__field__input",
|
|
1547
1551
|
display: "inline-block",
|
|
1548
1552
|
w: "full",
|
|
1549
1553
|
placeholder,
|
package/dist/autocomplete.mjs
CHANGED
|
@@ -93,7 +93,7 @@ var AutocompleteIcon = forwardRef(
|
|
|
93
93
|
ui.div,
|
|
94
94
|
{
|
|
95
95
|
ref,
|
|
96
|
-
className: cx("ui-
|
|
96
|
+
className: cx("ui-autocomplete__icon", className),
|
|
97
97
|
__css: css,
|
|
98
98
|
...rest,
|
|
99
99
|
children: isValidElement(children) ? cloneChildren : /* @__PURE__ */ jsx(ChevronIcon, {})
|
|
@@ -117,7 +117,7 @@ var AutocompleteClearIcon = ({
|
|
|
117
117
|
return /* @__PURE__ */ jsx(
|
|
118
118
|
AutocompleteIcon,
|
|
119
119
|
{
|
|
120
|
-
className: cx("ui-
|
|
120
|
+
className: cx("ui-autocomplete__icon--clear", className),
|
|
121
121
|
__css: styles.clearIcon,
|
|
122
122
|
...rest,
|
|
123
123
|
children: children != null ? children : /* @__PURE__ */ jsx(CloseIcon, { w: "0.5em", h: "0.5em" })
|
|
@@ -138,7 +138,7 @@ var AutocompleteItemIcon = forwardRef(({ className, ...rest }, ref) => {
|
|
|
138
138
|
ui.span,
|
|
139
139
|
{
|
|
140
140
|
ref,
|
|
141
|
-
className: cx("ui-
|
|
141
|
+
className: cx("ui-autocomplete__item__icon", className),
|
|
142
142
|
__css: css,
|
|
143
143
|
...rest
|
|
144
144
|
}
|
|
@@ -241,13 +241,13 @@ var AutocompleteField = forwardRef2(
|
|
|
241
241
|
return /* @__PURE__ */ jsx2(PopoverTrigger, { children: /* @__PURE__ */ jsx2(
|
|
242
242
|
ui2.div,
|
|
243
243
|
{
|
|
244
|
-
className: cx2("ui-
|
|
244
|
+
className: cx2("ui-autocomplete__field", className),
|
|
245
245
|
__css: css,
|
|
246
246
|
...rest,
|
|
247
247
|
children: /* @__PURE__ */ jsx2(
|
|
248
248
|
ui2.input,
|
|
249
249
|
{
|
|
250
|
-
className: "ui-
|
|
250
|
+
className: "ui-autocomplete__field__input",
|
|
251
251
|
display: "inline-block",
|
|
252
252
|
w: "full",
|
|
253
253
|
placeholder,
|
|
@@ -275,14 +275,18 @@ var AutocompleteOptionGroup = forwardRef3(
|
|
|
275
275
|
return /* @__PURE__ */ jsxs2(
|
|
276
276
|
ui3.li,
|
|
277
277
|
{
|
|
278
|
-
className:
|
|
278
|
+
className: cx3(
|
|
279
|
+
"ui-autocomplete__item",
|
|
280
|
+
"ui-autocomplete__item--group",
|
|
281
|
+
className
|
|
282
|
+
),
|
|
279
283
|
__css: { w: "100%", h: "fit-content", color },
|
|
280
284
|
...getContainerProps(),
|
|
281
285
|
children: [
|
|
282
286
|
/* @__PURE__ */ jsx3(
|
|
283
287
|
ui3.span,
|
|
284
288
|
{
|
|
285
|
-
className: cx3("ui-
|
|
289
|
+
className: cx3("ui-autocomplete__item__group-label"),
|
|
286
290
|
__css: styles.groupLabel,
|
|
287
291
|
noOfLines: 1,
|
|
288
292
|
children: label
|
|
@@ -292,7 +296,7 @@ var AutocompleteOptionGroup = forwardRef3(
|
|
|
292
296
|
ui3.ul,
|
|
293
297
|
{
|
|
294
298
|
...getGroupProps({}, ref),
|
|
295
|
-
className: cx3("ui-
|
|
299
|
+
className: cx3("ui-autocomplete__item__group", className),
|
|
296
300
|
__css: { h, minH, ...styles.group },
|
|
297
301
|
children
|
|
298
302
|
}
|
|
@@ -328,7 +332,7 @@ var AutocompleteOption = forwardRef4(
|
|
|
328
332
|
return /* @__PURE__ */ jsxs3(
|
|
329
333
|
ui4.li,
|
|
330
334
|
{
|
|
331
|
-
className: cx4("ui-
|
|
335
|
+
className: cx4("ui-autocomplete__item", className),
|
|
332
336
|
__css: css,
|
|
333
337
|
...getOptionProps({}, ref),
|
|
334
338
|
children: [
|
|
@@ -372,7 +376,7 @@ var AutocompleteCreate = forwardRef5(
|
|
|
372
376
|
return /* @__PURE__ */ jsxs4(
|
|
373
377
|
ui5.li,
|
|
374
378
|
{
|
|
375
|
-
className: cx5("ui-
|
|
379
|
+
className: cx5("ui-autocomplete__item--create", className),
|
|
376
380
|
__css: css,
|
|
377
381
|
...getCreateProps(rest, ref),
|
|
378
382
|
children: [
|
|
@@ -417,7 +421,7 @@ var AutocompleteEmpty = forwardRef6(
|
|
|
417
421
|
return /* @__PURE__ */ jsxs5(
|
|
418
422
|
ui6.li,
|
|
419
423
|
{
|
|
420
|
-
className: cx6("ui-
|
|
424
|
+
className: cx6("ui-autocomplete__item--empty", className),
|
|
421
425
|
__css: css,
|
|
422
426
|
...getEmptyProps(rest, ref),
|
|
423
427
|
children: [
|
|
@@ -625,7 +629,7 @@ var MultiAutocompleteField = forwardRef7(
|
|
|
625
629
|
return /* @__PURE__ */ jsx7(PopoverTrigger2, { children: /* @__PURE__ */ jsxs6(
|
|
626
630
|
ui7.div,
|
|
627
631
|
{
|
|
628
|
-
className: cx7("ui-
|
|
632
|
+
className: cx7("ui-autocomplete__field", className),
|
|
629
633
|
__css: css,
|
|
630
634
|
py: (displayValue == null ? void 0 : displayValue.length) && component ? "0.125rem" : void 0,
|
|
631
635
|
...rest,
|
|
@@ -634,7 +638,7 @@ var MultiAutocompleteField = forwardRef7(
|
|
|
634
638
|
/* @__PURE__ */ jsx7(
|
|
635
639
|
ui7.input,
|
|
636
640
|
{
|
|
637
|
-
className: "ui-
|
|
641
|
+
className: cx7("ui-autocomplete__field__input", className),
|
|
638
642
|
display: "inline-block",
|
|
639
643
|
flex: "1",
|
|
640
644
|
overflow: "hidden",
|
|
@@ -1798,7 +1802,7 @@ var AutocompleteList = forwardRef8(
|
|
|
1798
1802
|
return /* @__PURE__ */ jsx9(
|
|
1799
1803
|
PopoverContent,
|
|
1800
1804
|
{
|
|
1801
|
-
className: cx8("ui-
|
|
1805
|
+
className: cx8("ui-autocomplete__list", className),
|
|
1802
1806
|
w,
|
|
1803
1807
|
minW,
|
|
1804
1808
|
__css: css,
|
package/dist/index.js
CHANGED
|
@@ -1217,7 +1217,7 @@ var AutocompleteIcon = (0, import_core2.forwardRef)(
|
|
|
1217
1217
|
import_core2.ui.div,
|
|
1218
1218
|
{
|
|
1219
1219
|
ref,
|
|
1220
|
-
className: (0, import_utils2.cx)("ui-
|
|
1220
|
+
className: (0, import_utils2.cx)("ui-autocomplete__icon", className),
|
|
1221
1221
|
__css: css,
|
|
1222
1222
|
...rest,
|
|
1223
1223
|
children: (0, import_utils2.isValidElement)(children) ? cloneChildren : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icon.ChevronIcon, {})
|
|
@@ -1241,7 +1241,7 @@ var AutocompleteClearIcon = ({
|
|
|
1241
1241
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
1242
1242
|
AutocompleteIcon,
|
|
1243
1243
|
{
|
|
1244
|
-
className: (0, import_utils2.cx)("ui-
|
|
1244
|
+
className: (0, import_utils2.cx)("ui-autocomplete__icon--clear", className),
|
|
1245
1245
|
__css: styles.clearIcon,
|
|
1246
1246
|
...rest,
|
|
1247
1247
|
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icon.CloseIcon, { w: "0.5em", h: "0.5em" })
|
|
@@ -1262,7 +1262,7 @@ var AutocompleteItemIcon = (0, import_core2.forwardRef)(({ className, ...rest },
|
|
|
1262
1262
|
import_core2.ui.span,
|
|
1263
1263
|
{
|
|
1264
1264
|
ref,
|
|
1265
|
-
className: (0, import_utils2.cx)("ui-
|
|
1265
|
+
className: (0, import_utils2.cx)("ui-autocomplete__item__icon", className),
|
|
1266
1266
|
__css: css,
|
|
1267
1267
|
...rest
|
|
1268
1268
|
}
|
|
@@ -1285,7 +1285,7 @@ var AutocompleteList = (0, import_core3.forwardRef)(
|
|
|
1285
1285
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
1286
1286
|
import_popover.PopoverContent,
|
|
1287
1287
|
{
|
|
1288
|
-
className: (0, import_utils3.cx)("ui-
|
|
1288
|
+
className: (0, import_utils3.cx)("ui-autocomplete__list", className),
|
|
1289
1289
|
w,
|
|
1290
1290
|
minW,
|
|
1291
1291
|
__css: css,
|
|
@@ -1391,13 +1391,13 @@ var AutocompleteField = (0, import_core4.forwardRef)(
|
|
|
1391
1391
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover2.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1392
1392
|
import_core4.ui.div,
|
|
1393
1393
|
{
|
|
1394
|
-
className: (0, import_utils4.cx)("ui-
|
|
1394
|
+
className: (0, import_utils4.cx)("ui-autocomplete__field", className),
|
|
1395
1395
|
__css: css,
|
|
1396
1396
|
...rest,
|
|
1397
1397
|
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1398
1398
|
import_core4.ui.input,
|
|
1399
1399
|
{
|
|
1400
|
-
className: "ui-
|
|
1400
|
+
className: "ui-autocomplete__field__input",
|
|
1401
1401
|
display: "inline-block",
|
|
1402
1402
|
w: "full",
|
|
1403
1403
|
placeholder,
|
|
@@ -1425,14 +1425,18 @@ var AutocompleteOptionGroup = (0, import_core5.forwardRef)(
|
|
|
1425
1425
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1426
1426
|
import_core5.ui.li,
|
|
1427
1427
|
{
|
|
1428
|
-
className:
|
|
1428
|
+
className: (0, import_utils5.cx)(
|
|
1429
|
+
"ui-autocomplete__item",
|
|
1430
|
+
"ui-autocomplete__item--group",
|
|
1431
|
+
className
|
|
1432
|
+
),
|
|
1429
1433
|
__css: { w: "100%", h: "fit-content", color },
|
|
1430
1434
|
...getContainerProps(),
|
|
1431
1435
|
children: [
|
|
1432
1436
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1433
1437
|
import_core5.ui.span,
|
|
1434
1438
|
{
|
|
1435
|
-
className: (0, import_utils5.cx)("ui-
|
|
1439
|
+
className: (0, import_utils5.cx)("ui-autocomplete__item__group-label"),
|
|
1436
1440
|
__css: styles.groupLabel,
|
|
1437
1441
|
noOfLines: 1,
|
|
1438
1442
|
children: label
|
|
@@ -1442,7 +1446,7 @@ var AutocompleteOptionGroup = (0, import_core5.forwardRef)(
|
|
|
1442
1446
|
import_core5.ui.ul,
|
|
1443
1447
|
{
|
|
1444
1448
|
...getGroupProps({}, ref),
|
|
1445
|
-
className: (0, import_utils5.cx)("ui-
|
|
1449
|
+
className: (0, import_utils5.cx)("ui-autocomplete__item__group", className),
|
|
1446
1450
|
__css: { h, minH, ...styles.group },
|
|
1447
1451
|
children
|
|
1448
1452
|
}
|
|
@@ -1478,7 +1482,7 @@ var AutocompleteOption = (0, import_core6.forwardRef)(
|
|
|
1478
1482
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1479
1483
|
import_core6.ui.li,
|
|
1480
1484
|
{
|
|
1481
|
-
className: (0, import_utils6.cx)("ui-
|
|
1485
|
+
className: (0, import_utils6.cx)("ui-autocomplete__item", className),
|
|
1482
1486
|
__css: css,
|
|
1483
1487
|
...getOptionProps({}, ref),
|
|
1484
1488
|
children: [
|
|
@@ -1522,7 +1526,7 @@ var AutocompleteCreate = (0, import_core7.forwardRef)(
|
|
|
1522
1526
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1523
1527
|
import_core7.ui.li,
|
|
1524
1528
|
{
|
|
1525
|
-
className: (0, import_utils7.cx)("ui-
|
|
1529
|
+
className: (0, import_utils7.cx)("ui-autocomplete__item--create", className),
|
|
1526
1530
|
__css: css,
|
|
1527
1531
|
...getCreateProps(rest, ref),
|
|
1528
1532
|
children: [
|
|
@@ -1567,7 +1571,7 @@ var AutocompleteEmpty = (0, import_core8.forwardRef)(
|
|
|
1567
1571
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
1568
1572
|
import_core8.ui.li,
|
|
1569
1573
|
{
|
|
1570
|
-
className: (0, import_utils8.cx)("ui-
|
|
1574
|
+
className: (0, import_utils8.cx)("ui-autocomplete__item--empty", className),
|
|
1571
1575
|
__css: css,
|
|
1572
1576
|
...getEmptyProps(rest, ref),
|
|
1573
1577
|
children: [
|
|
@@ -1767,7 +1771,7 @@ var MultiAutocompleteField = (0, import_core9.forwardRef)(
|
|
|
1767
1771
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_popover3.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1768
1772
|
import_core9.ui.div,
|
|
1769
1773
|
{
|
|
1770
|
-
className: (0, import_utils9.cx)("ui-
|
|
1774
|
+
className: (0, import_utils9.cx)("ui-autocomplete__field", className),
|
|
1771
1775
|
__css: css,
|
|
1772
1776
|
py: (displayValue == null ? void 0 : displayValue.length) && component ? "0.125rem" : void 0,
|
|
1773
1777
|
...rest,
|
|
@@ -1776,7 +1780,7 @@ var MultiAutocompleteField = (0, import_core9.forwardRef)(
|
|
|
1776
1780
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1777
1781
|
import_core9.ui.input,
|
|
1778
1782
|
{
|
|
1779
|
-
className: "ui-
|
|
1783
|
+
className: (0, import_utils9.cx)("ui-autocomplete__field__input", className),
|
|
1780
1784
|
display: "inline-block",
|
|
1781
1785
|
flex: "1",
|
|
1782
1786
|
overflow: "hidden",
|
package/dist/index.mjs
CHANGED
|
@@ -61,7 +61,7 @@ var AutocompleteList = (0, import_core.forwardRef)(
|
|
|
61
61
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
62
62
|
import_popover.PopoverContent,
|
|
63
63
|
{
|
|
64
|
-
className: (0, import_utils.cx)("ui-
|
|
64
|
+
className: (0, import_utils.cx)("ui-autocomplete__list", className),
|
|
65
65
|
w,
|
|
66
66
|
minW,
|
|
67
67
|
__css: css,
|
|
@@ -84,14 +84,18 @@ var AutocompleteOptionGroup = (0, import_core2.forwardRef)(
|
|
|
84
84
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
85
85
|
import_core2.ui.li,
|
|
86
86
|
{
|
|
87
|
-
className:
|
|
87
|
+
className: (0, import_utils2.cx)(
|
|
88
|
+
"ui-autocomplete__item",
|
|
89
|
+
"ui-autocomplete__item--group",
|
|
90
|
+
className
|
|
91
|
+
),
|
|
88
92
|
__css: { w: "100%", h: "fit-content", color },
|
|
89
93
|
...getContainerProps(),
|
|
90
94
|
children: [
|
|
91
95
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
92
96
|
import_core2.ui.span,
|
|
93
97
|
{
|
|
94
|
-
className: (0, import_utils2.cx)("ui-
|
|
98
|
+
className: (0, import_utils2.cx)("ui-autocomplete__item__group-label"),
|
|
95
99
|
__css: styles.groupLabel,
|
|
96
100
|
noOfLines: 1,
|
|
97
101
|
children: label
|
|
@@ -101,7 +105,7 @@ var AutocompleteOptionGroup = (0, import_core2.forwardRef)(
|
|
|
101
105
|
import_core2.ui.ul,
|
|
102
106
|
{
|
|
103
107
|
...getGroupProps({}, ref),
|
|
104
|
-
className: (0, import_utils2.cx)("ui-
|
|
108
|
+
className: (0, import_utils2.cx)("ui-autocomplete__item__group", className),
|
|
105
109
|
__css: { h, minH, ...styles.group },
|
|
106
110
|
children
|
|
107
111
|
}
|
|
@@ -137,7 +141,7 @@ var AutocompleteOption = (0, import_core3.forwardRef)(
|
|
|
137
141
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
138
142
|
import_core3.ui.li,
|
|
139
143
|
{
|
|
140
|
-
className: (0, import_utils3.cx)("ui-
|
|
144
|
+
className: (0, import_utils3.cx)("ui-autocomplete__item", className),
|
|
141
145
|
__css: css,
|
|
142
146
|
...getOptionProps({}, ref),
|
|
143
147
|
children: [
|
|
@@ -181,7 +185,7 @@ var AutocompleteCreate = (0, import_core4.forwardRef)(
|
|
|
181
185
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
182
186
|
import_core4.ui.li,
|
|
183
187
|
{
|
|
184
|
-
className: (0, import_utils4.cx)("ui-
|
|
188
|
+
className: (0, import_utils4.cx)("ui-autocomplete__item--create", className),
|
|
185
189
|
__css: css,
|
|
186
190
|
...getCreateProps(rest, ref),
|
|
187
191
|
children: [
|
|
@@ -226,7 +230,7 @@ var AutocompleteEmpty = (0, import_core5.forwardRef)(
|
|
|
226
230
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
227
231
|
import_core5.ui.li,
|
|
228
232
|
{
|
|
229
|
-
className: (0, import_utils5.cx)("ui-
|
|
233
|
+
className: (0, import_utils5.cx)("ui-autocomplete__item--empty", className),
|
|
230
234
|
__css: css,
|
|
231
235
|
...getEmptyProps(rest, ref),
|
|
232
236
|
children: [
|
|
@@ -1413,7 +1417,7 @@ var AutocompleteIcon = (0, import_core7.forwardRef)(
|
|
|
1413
1417
|
import_core7.ui.div,
|
|
1414
1418
|
{
|
|
1415
1419
|
ref,
|
|
1416
|
-
className: (0, import_utils7.cx)("ui-
|
|
1420
|
+
className: (0, import_utils7.cx)("ui-autocomplete__icon", className),
|
|
1417
1421
|
__css: css,
|
|
1418
1422
|
...rest,
|
|
1419
1423
|
children: (0, import_utils7.isValidElement)(children) ? cloneChildren : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icon.ChevronIcon, {})
|
|
@@ -1437,7 +1441,7 @@ var AutocompleteClearIcon = ({
|
|
|
1437
1441
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1438
1442
|
AutocompleteIcon,
|
|
1439
1443
|
{
|
|
1440
|
-
className: (0, import_utils7.cx)("ui-
|
|
1444
|
+
className: (0, import_utils7.cx)("ui-autocomplete__icon--clear", className),
|
|
1441
1445
|
__css: styles.clearIcon,
|
|
1442
1446
|
...rest,
|
|
1443
1447
|
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icon.CloseIcon, { w: "0.5em", h: "0.5em" })
|
|
@@ -1458,7 +1462,7 @@ var AutocompleteItemIcon = (0, import_core7.forwardRef)(({ className, ...rest },
|
|
|
1458
1462
|
import_core7.ui.span,
|
|
1459
1463
|
{
|
|
1460
1464
|
ref,
|
|
1461
|
-
className: (0, import_utils7.cx)("ui-
|
|
1465
|
+
className: (0, import_utils7.cx)("ui-autocomplete__item__icon", className),
|
|
1462
1466
|
__css: css,
|
|
1463
1467
|
...rest
|
|
1464
1468
|
}
|
|
@@ -1642,7 +1646,7 @@ var MultiAutocompleteField = (0, import_core8.forwardRef)(
|
|
|
1642
1646
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_popover2.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
1643
1647
|
import_core8.ui.div,
|
|
1644
1648
|
{
|
|
1645
|
-
className: (0, import_utils8.cx)("ui-
|
|
1649
|
+
className: (0, import_utils8.cx)("ui-autocomplete__field", className),
|
|
1646
1650
|
__css: css,
|
|
1647
1651
|
py: (displayValue == null ? void 0 : displayValue.length) && component ? "0.125rem" : void 0,
|
|
1648
1652
|
...rest,
|
|
@@ -1651,7 +1655,7 @@ var MultiAutocompleteField = (0, import_core8.forwardRef)(
|
|
|
1651
1655
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1652
1656
|
import_core8.ui.input,
|
|
1653
1657
|
{
|
|
1654
|
-
className: "ui-
|
|
1658
|
+
className: (0, import_utils8.cx)("ui-autocomplete__field__input", className),
|
|
1655
1659
|
display: "inline-block",
|
|
1656
1660
|
flex: "1",
|
|
1657
1661
|
overflow: "hidden",
|
package/dist/use-autocomplete.js
CHANGED
|
@@ -82,7 +82,7 @@ var AutocompleteIcon = (0, import_core.forwardRef)(
|
|
|
82
82
|
import_core.ui.div,
|
|
83
83
|
{
|
|
84
84
|
ref,
|
|
85
|
-
className: (0, import_utils.cx)("ui-
|
|
85
|
+
className: (0, import_utils.cx)("ui-autocomplete__icon", className),
|
|
86
86
|
__css: css,
|
|
87
87
|
...rest,
|
|
88
88
|
children: (0, import_utils.isValidElement)(children) ? cloneChildren : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icon.ChevronIcon, {})
|
|
@@ -104,7 +104,7 @@ var AutocompleteItemIcon = (0, import_core.forwardRef)(({ className, ...rest },
|
|
|
104
104
|
import_core.ui.span,
|
|
105
105
|
{
|
|
106
106
|
ref,
|
|
107
|
-
className: (0, import_utils.cx)("ui-
|
|
107
|
+
className: (0, import_utils.cx)("ui-autocomplete__item__icon", className),
|
|
108
108
|
__css: css,
|
|
109
109
|
...rest
|
|
110
110
|
}
|
|
@@ -124,14 +124,18 @@ var AutocompleteOptionGroup = (0, import_core2.forwardRef)(
|
|
|
124
124
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
125
125
|
import_core2.ui.li,
|
|
126
126
|
{
|
|
127
|
-
className:
|
|
127
|
+
className: (0, import_utils2.cx)(
|
|
128
|
+
"ui-autocomplete__item",
|
|
129
|
+
"ui-autocomplete__item--group",
|
|
130
|
+
className
|
|
131
|
+
),
|
|
128
132
|
__css: { w: "100%", h: "fit-content", color },
|
|
129
133
|
...getContainerProps(),
|
|
130
134
|
children: [
|
|
131
135
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
132
136
|
import_core2.ui.span,
|
|
133
137
|
{
|
|
134
|
-
className: (0, import_utils2.cx)("ui-
|
|
138
|
+
className: (0, import_utils2.cx)("ui-autocomplete__item__group-label"),
|
|
135
139
|
__css: styles.groupLabel,
|
|
136
140
|
noOfLines: 1,
|
|
137
141
|
children: label
|
|
@@ -141,7 +145,7 @@ var AutocompleteOptionGroup = (0, import_core2.forwardRef)(
|
|
|
141
145
|
import_core2.ui.ul,
|
|
142
146
|
{
|
|
143
147
|
...getGroupProps({}, ref),
|
|
144
|
-
className: (0, import_utils2.cx)("ui-
|
|
148
|
+
className: (0, import_utils2.cx)("ui-autocomplete__item__group", className),
|
|
145
149
|
__css: { h, minH, ...styles.group },
|
|
146
150
|
children
|
|
147
151
|
}
|
|
@@ -177,7 +181,7 @@ var AutocompleteOption = (0, import_core3.forwardRef)(
|
|
|
177
181
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
178
182
|
import_core3.ui.li,
|
|
179
183
|
{
|
|
180
|
-
className: (0, import_utils3.cx)("ui-
|
|
184
|
+
className: (0, import_utils3.cx)("ui-autocomplete__item", className),
|
|
181
185
|
__css: css,
|
|
182
186
|
...getOptionProps({}, ref),
|
|
183
187
|
children: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/autocomplete",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
4
4
|
"description": "Yamada UI autocomplete component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"@yamada-ui/core": "0.12.4",
|
|
40
40
|
"@yamada-ui/utils": "0.3.2",
|
|
41
41
|
"@yamada-ui/icon": "0.3.14",
|
|
42
|
-
"@yamada-ui/select": "0.4.
|
|
43
|
-
"@yamada-ui/form-control": "0.3.
|
|
44
|
-
"@yamada-ui/popover": "0.3.
|
|
42
|
+
"@yamada-ui/select": "0.4.11",
|
|
43
|
+
"@yamada-ui/form-control": "0.3.17",
|
|
44
|
+
"@yamada-ui/popover": "0.3.17",
|
|
45
45
|
"@yamada-ui/use-descendant": "0.2.4",
|
|
46
46
|
"@yamada-ui/use-clickable": "0.3.4",
|
|
47
47
|
"@yamada-ui/use-outside-click": "0.2.4",
|