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