@uipath/apollo-wind 0.9.0 → 0.10.0-pr257.2a4b17b
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/components/forms/field-renderer.cjs +120 -69
- package/dist/components/forms/field-renderer.js +120 -69
- package/dist/components/forms/form-designer.cjs +2352 -1488
- package/dist/components/forms/form-designer.js +2353 -1489
- package/dist/components/forms/form-examples.cjs +10 -10
- package/dist/components/forms/form-examples.js +10 -10
- package/dist/components/forms/form-state-viewer.cjs +988 -433
- package/dist/components/forms/form-state-viewer.js +988 -433
- package/dist/components/forms/metadata-form.cjs +446 -170
- package/dist/components/forms/metadata-form.js +446 -170
- package/dist/components/forms/schema-viewer.cjs +173 -80
- package/dist/components/forms/schema-viewer.js +173 -80
- package/dist/components/ui/accordion.cjs +131 -27
- package/dist/components/ui/accordion.js +131 -27
- package/dist/components/ui/alert-dialog.cjs +273 -45
- package/dist/components/ui/alert-dialog.js +273 -45
- package/dist/components/ui/alert.cjs +106 -17
- package/dist/components/ui/alert.js +106 -17
- package/dist/components/ui/avatar.cjs +100 -15
- package/dist/components/ui/avatar.js +100 -15
- package/dist/components/ui/badge.cjs +36 -6
- package/dist/components/ui/badge.js +36 -6
- package/dist/components/ui/breadcrumb.cjs +258 -52
- package/dist/components/ui/breadcrumb.js +258 -52
- package/dist/components/ui/button-group.cjs +119 -19
- package/dist/components/ui/button-group.js +119 -19
- package/dist/components/ui/button.cjs +48 -8
- package/dist/components/ui/button.js +48 -8
- package/dist/components/ui/calendar.cjs +88 -30
- package/dist/components/ui/calendar.js +88 -30
- package/dist/components/ui/card.cjs +199 -30
- package/dist/components/ui/card.js +199 -30
- package/dist/components/ui/checkbox.cjs +42 -8
- package/dist/components/ui/checkbox.js +42 -8
- package/dist/components/ui/combobox.cjs +150 -53
- package/dist/components/ui/combobox.js +150 -53
- package/dist/components/ui/command.cjs +291 -53
- package/dist/components/ui/command.js +291 -53
- package/dist/components/ui/context-menu.cjs +370 -72
- package/dist/components/ui/context-menu.js +370 -72
- package/dist/components/ui/data-table.cjs +76 -39
- package/dist/components/ui/data-table.js +76 -39
- package/dist/components/ui/date-picker.cjs +179 -68
- package/dist/components/ui/date-picker.js +179 -68
- package/dist/components/ui/datetime-picker.cjs +225 -104
- package/dist/components/ui/datetime-picker.js +225 -104
- package/dist/components/ui/dialog.cjs +290 -78
- package/dist/components/ui/dialog.js +290 -78
- package/dist/components/ui/drawer.cjs +220 -39
- package/dist/components/ui/drawer.js +220 -39
- package/dist/components/ui/dropdown-menu.cjs +376 -73
- package/dist/components/ui/dropdown-menu.js +376 -73
- package/dist/components/ui/editable-cell.cjs +106 -42
- package/dist/components/ui/editable-cell.js +106 -42
- package/dist/components/ui/empty-state.cjs +106 -33
- package/dist/components/ui/empty-state.js +106 -33
- package/dist/components/ui/file-upload.cjs +405 -187
- package/dist/components/ui/file-upload.d.ts +3 -1
- package/dist/components/ui/file-upload.js +405 -187
- package/dist/components/ui/hover-card.cjs +46 -7
- package/dist/components/ui/hover-card.js +46 -7
- package/dist/components/ui/index.cjs +4 -4
- package/dist/components/ui/input.cjs +39 -6
- package/dist/components/ui/input.js +39 -6
- package/dist/components/ui/label.cjs +34 -5
- package/dist/components/ui/label.js +34 -5
- package/dist/components/ui/layout/column.cjs +209 -41
- package/dist/components/ui/layout/column.js +209 -41
- package/dist/components/ui/layout/grid.cjs +275 -60
- package/dist/components/ui/layout/grid.js +275 -60
- package/dist/components/ui/layout/row.cjs +209 -41
- package/dist/components/ui/layout/row.js +209 -41
- package/dist/components/ui/menubar.cjs +540 -106
- package/dist/components/ui/menubar.js +540 -106
- package/dist/components/ui/multi-select.cjs +289 -135
- package/dist/components/ui/multi-select.js +289 -135
- package/dist/components/ui/navigation-menu.cjs +244 -47
- package/dist/components/ui/navigation-menu.js +244 -47
- package/dist/components/ui/pagination.cjs +301 -65
- package/dist/components/ui/pagination.js +301 -65
- package/dist/components/ui/popover.cjs +48 -9
- package/dist/components/ui/popover.js +48 -9
- package/dist/components/ui/progress.cjs +48 -8
- package/dist/components/ui/progress.js +48 -8
- package/dist/components/ui/radio-group.cjs +74 -12
- package/dist/components/ui/radio-group.js +74 -12
- package/dist/components/ui/resizable.cjs +75 -10
- package/dist/components/ui/resizable.js +75 -10
- package/dist/components/ui/scroll-area.cjs +113 -21
- package/dist/components/ui/scroll-area.js +113 -21
- package/dist/components/ui/search.cjs +280 -98
- package/dist/components/ui/search.js +280 -98
- package/dist/components/ui/select.cjs +334 -68
- package/dist/components/ui/select.js +334 -68
- package/dist/components/ui/separator.cjs +48 -7
- package/dist/components/ui/separator.js +48 -7
- package/dist/components/ui/sheet.cjs +236 -50
- package/dist/components/ui/sheet.js +236 -50
- package/dist/components/ui/skeleton.cjs +31 -5
- package/dist/components/ui/skeleton.js +31 -5
- package/dist/components/ui/slider.cjs +71 -21
- package/dist/components/ui/slider.js +71 -21
- package/dist/components/ui/sonner.cjs +43 -15
- package/dist/components/ui/sonner.js +43 -15
- package/dist/components/ui/spinner.cjs +83 -21
- package/dist/components/ui/spinner.js +83 -21
- package/dist/components/ui/stats-card.cjs +169 -60
- package/dist/components/ui/stats-card.js +169 -60
- package/dist/components/ui/stepper.cjs +126 -57
- package/dist/components/ui/stepper.js +126 -57
- package/dist/components/ui/switch.cjs +42 -8
- package/dist/components/ui/switch.js +42 -8
- package/dist/components/ui/table.cjs +267 -42
- package/dist/components/ui/table.js +267 -42
- package/dist/components/ui/tabs.cjs +100 -15
- package/dist/components/ui/tabs.js +100 -15
- package/dist/components/ui/textarea.cjs +34 -5
- package/dist/components/ui/textarea.js +34 -5
- package/dist/components/ui/toggle-group.cjs +112 -19
- package/dist/components/ui/toggle-group.js +112 -19
- package/dist/components/ui/toggle.cjs +43 -6
- package/dist/components/ui/toggle.js +43 -6
- package/dist/components/ui/tooltip.cjs +40 -6
- package/dist/components/ui/tooltip.js +40 -6
- package/dist/examples/admin-layout-example.cjs +879 -347
- package/dist/examples/admin-layout-example.js +879 -347
- package/dist/examples/app-shell-example.cjs +14 -14
- package/dist/examples/app-shell-example.js +14 -14
- package/dist/examples/dashboard-example.cjs +495 -334
- package/dist/examples/dashboard-example.js +495 -334
- package/dist/examples/data-management-example.cjs +501 -303
- package/dist/examples/data-management-example.js +502 -304
- package/dist/examples/flow-editor-layout-example.cjs +435 -231
- package/dist/examples/flow-editor-layout-example.js +436 -232
- package/dist/examples/flow-start-example.cjs +508 -251
- package/dist/examples/flow-start-example.js +509 -252
- package/dist/examples/form-builder-example.cjs +1006 -602
- package/dist/examples/form-builder-example.js +1007 -603
- package/dist/examples/new-project-example.cjs +806 -474
- package/dist/examples/new-project-example.js +807 -475
- package/dist/examples/settings-example.cjs +792 -704
- package/dist/examples/settings-example.js +792 -704
- package/dist/examples/vscode-example.cjs +731 -236
- package/dist/examples/vscode-example.js +731 -236
- package/package.json +4 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { Search, X } from "lucide-react";
|
|
3
4
|
import { forwardRef, useEffect, useState } from "react";
|
|
4
5
|
import { Button } from "./button.js";
|
|
@@ -6,111 +7,292 @@ import { Command, CommandEmpty, CommandGroup, CommandItem, CommandList } from ".
|
|
|
6
7
|
import { Input } from "./input.js";
|
|
7
8
|
import { Popover, PopoverContent, PopoverTrigger } from "./popover.js";
|
|
8
9
|
import { cn } from "../../lib/index.js";
|
|
9
|
-
const search_Search = /*#__PURE__*/ forwardRef((
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
10
|
+
const search_Search = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
11
|
+
const $ = c(28);
|
|
12
|
+
let className;
|
|
13
|
+
let onChange;
|
|
14
|
+
let onClear;
|
|
15
|
+
let props;
|
|
16
|
+
let t1;
|
|
17
|
+
let value;
|
|
18
|
+
if ($[0] !== t0) {
|
|
19
|
+
({ className, value, onChange, onClear, showClearButton: t1, ...props } = t0);
|
|
20
|
+
$[0] = t0;
|
|
21
|
+
$[1] = className;
|
|
22
|
+
$[2] = onChange;
|
|
23
|
+
$[3] = onClear;
|
|
24
|
+
$[4] = props;
|
|
25
|
+
$[5] = t1;
|
|
26
|
+
$[6] = value;
|
|
27
|
+
} else {
|
|
28
|
+
className = $[1];
|
|
29
|
+
onChange = $[2];
|
|
30
|
+
onClear = $[3];
|
|
31
|
+
props = $[4];
|
|
32
|
+
t1 = $[5];
|
|
33
|
+
value = $[6];
|
|
34
|
+
}
|
|
35
|
+
const showClearButton = void 0 === t1 ? true : t1;
|
|
36
|
+
let t2;
|
|
37
|
+
if ($[7] !== onChange || $[8] !== onClear) {
|
|
38
|
+
t2 = ()=>{
|
|
39
|
+
onChange?.("");
|
|
40
|
+
onClear?.();
|
|
41
|
+
};
|
|
42
|
+
$[7] = onChange;
|
|
43
|
+
$[8] = onClear;
|
|
44
|
+
$[9] = t2;
|
|
45
|
+
} else t2 = $[9];
|
|
46
|
+
const handleClear = t2;
|
|
47
|
+
let t3;
|
|
48
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49
|
+
t3 = /*#__PURE__*/ jsx(Search, {
|
|
50
|
+
className: "absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"
|
|
51
|
+
});
|
|
52
|
+
$[10] = t3;
|
|
53
|
+
} else t3 = $[10];
|
|
54
|
+
let t4;
|
|
55
|
+
if ($[11] !== className) {
|
|
56
|
+
t4 = cn("pl-8 pr-8", className);
|
|
57
|
+
$[11] = className;
|
|
58
|
+
$[12] = t4;
|
|
59
|
+
} else t4 = $[12];
|
|
60
|
+
let t5;
|
|
61
|
+
if ($[13] !== onChange) {
|
|
62
|
+
t5 = (e)=>onChange?.(e.target.value);
|
|
63
|
+
$[13] = onChange;
|
|
64
|
+
$[14] = t5;
|
|
65
|
+
} else t5 = $[14];
|
|
66
|
+
let t6;
|
|
67
|
+
if ($[15] !== props || $[16] !== ref || $[17] !== t4 || $[18] !== t5 || $[19] !== value) {
|
|
68
|
+
t6 = /*#__PURE__*/ jsx(Input, {
|
|
69
|
+
ref: ref,
|
|
70
|
+
type: "search",
|
|
71
|
+
className: t4,
|
|
72
|
+
value: value,
|
|
73
|
+
onChange: t5,
|
|
74
|
+
...props
|
|
75
|
+
});
|
|
76
|
+
$[15] = props;
|
|
77
|
+
$[16] = ref;
|
|
78
|
+
$[17] = t4;
|
|
79
|
+
$[18] = t5;
|
|
80
|
+
$[19] = value;
|
|
81
|
+
$[20] = t6;
|
|
82
|
+
} else t6 = $[20];
|
|
83
|
+
let t7;
|
|
84
|
+
if ($[21] !== handleClear || $[22] !== showClearButton || $[23] !== value) {
|
|
85
|
+
t7 = showClearButton && value && /*#__PURE__*/ jsxs(Button, {
|
|
86
|
+
type: "button",
|
|
87
|
+
variant: "ghost",
|
|
88
|
+
size: "icon",
|
|
89
|
+
className: "absolute right-0 top-0 h-full w-8 px-0 hover:bg-transparent",
|
|
90
|
+
onClick: handleClear,
|
|
91
|
+
children: [
|
|
92
|
+
/*#__PURE__*/ jsx(X, {
|
|
93
|
+
className: "h-4 w-4"
|
|
94
|
+
}),
|
|
95
|
+
/*#__PURE__*/ jsx("span", {
|
|
96
|
+
className: "sr-only",
|
|
97
|
+
children: "Clear"
|
|
98
|
+
})
|
|
99
|
+
]
|
|
100
|
+
});
|
|
101
|
+
$[21] = handleClear;
|
|
102
|
+
$[22] = showClearButton;
|
|
103
|
+
$[23] = value;
|
|
104
|
+
$[24] = t7;
|
|
105
|
+
} else t7 = $[24];
|
|
106
|
+
let t8;
|
|
107
|
+
if ($[25] !== t6 || $[26] !== t7) {
|
|
108
|
+
t8 = /*#__PURE__*/ jsxs("div", {
|
|
109
|
+
className: "relative",
|
|
110
|
+
children: [
|
|
111
|
+
t3,
|
|
112
|
+
t6,
|
|
113
|
+
t7
|
|
114
|
+
]
|
|
115
|
+
});
|
|
116
|
+
$[25] = t6;
|
|
117
|
+
$[26] = t7;
|
|
118
|
+
$[27] = t8;
|
|
119
|
+
} else t8 = $[27];
|
|
120
|
+
return t8;
|
|
121
|
+
});
|
|
122
|
+
search_Search.displayName = 'Search';
|
|
123
|
+
const SearchWithSuggestions = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
124
|
+
const $ = c(41);
|
|
125
|
+
const { value, onChange, placeholder: t1, suggestions: t2, onSelect, emptyMessage: t3, className } = t0;
|
|
126
|
+
const placeholder = void 0 === t1 ? "Search..." : t1;
|
|
127
|
+
const suggestions = void 0 === t2 ? [] : t2;
|
|
128
|
+
const emptyMessage = void 0 === t3 ? "No results found." : t3;
|
|
129
|
+
const [open, setOpen] = useState(false);
|
|
130
|
+
const [searchValue, setSearchValue] = useState(value || "");
|
|
131
|
+
let t4;
|
|
132
|
+
let t5;
|
|
133
|
+
if ($[0] !== value) {
|
|
134
|
+
t4 = ()=>{
|
|
135
|
+
if (void 0 !== value) setSearchValue(value);
|
|
136
|
+
};
|
|
137
|
+
t5 = [
|
|
138
|
+
value
|
|
139
|
+
];
|
|
140
|
+
$[0] = value;
|
|
141
|
+
$[1] = t4;
|
|
142
|
+
$[2] = t5;
|
|
143
|
+
} else {
|
|
144
|
+
t4 = $[1];
|
|
145
|
+
t5 = $[2];
|
|
146
|
+
}
|
|
147
|
+
useEffect(t4, t5);
|
|
148
|
+
let t6;
|
|
149
|
+
if ($[3] !== searchValue) {
|
|
150
|
+
t6 = (suggestion)=>suggestion.toLowerCase().includes(searchValue.toLowerCase());
|
|
151
|
+
$[3] = searchValue;
|
|
152
|
+
$[4] = t6;
|
|
153
|
+
} else t6 = $[4];
|
|
154
|
+
const filteredSuggestions = suggestions.filter(t6);
|
|
155
|
+
let t7;
|
|
156
|
+
if ($[5] !== onChange || $[6] !== onSelect || $[7] !== setOpen) {
|
|
157
|
+
t7 = (selectedValue)=>{
|
|
158
|
+
setSearchValue(selectedValue);
|
|
159
|
+
onChange?.(selectedValue);
|
|
160
|
+
onSelect?.(selectedValue);
|
|
161
|
+
setOpen(false);
|
|
162
|
+
};
|
|
163
|
+
$[5] = onChange;
|
|
164
|
+
$[6] = onSelect;
|
|
165
|
+
$[7] = setOpen;
|
|
166
|
+
$[8] = t7;
|
|
167
|
+
} else t7 = $[8];
|
|
168
|
+
const handleSelect = t7;
|
|
169
|
+
let t8;
|
|
170
|
+
if ($[9] !== onChange || $[10] !== setOpen) {
|
|
171
|
+
t8 = (newValue)=>{
|
|
172
|
+
setSearchValue(newValue);
|
|
173
|
+
onChange?.(newValue);
|
|
174
|
+
setOpen(newValue.length > 0);
|
|
175
|
+
};
|
|
176
|
+
$[9] = onChange;
|
|
177
|
+
$[10] = setOpen;
|
|
178
|
+
$[11] = t8;
|
|
179
|
+
} else t8 = $[11];
|
|
180
|
+
const handleInputChange = t8;
|
|
181
|
+
let t9;
|
|
182
|
+
if ($[12] !== className) {
|
|
183
|
+
t9 = cn("relative", className);
|
|
184
|
+
$[12] = className;
|
|
185
|
+
$[13] = t9;
|
|
186
|
+
} else t9 = $[13];
|
|
187
|
+
const T0 = Popover;
|
|
188
|
+
const t10 = open && filteredSuggestions.length > 0;
|
|
189
|
+
let t11;
|
|
190
|
+
if ($[14] !== onChange || $[15] !== setOpen) {
|
|
191
|
+
t11 = ()=>{
|
|
192
|
+
setSearchValue("");
|
|
193
|
+
onChange?.("");
|
|
194
|
+
setOpen(false);
|
|
195
|
+
};
|
|
196
|
+
$[14] = onChange;
|
|
197
|
+
$[15] = setOpen;
|
|
198
|
+
$[16] = t11;
|
|
199
|
+
} else t11 = $[16];
|
|
200
|
+
let t12;
|
|
201
|
+
if ($[17] !== handleInputChange || $[18] !== placeholder || $[19] !== searchValue || $[20] !== t11) {
|
|
202
|
+
t12 = /*#__PURE__*/ jsx(PopoverTrigger, {
|
|
203
|
+
asChild: true,
|
|
204
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
205
|
+
children: /*#__PURE__*/ jsx(search_Search, {
|
|
206
|
+
value: searchValue,
|
|
207
|
+
onChange: handleInputChange,
|
|
208
|
+
onClear: t11,
|
|
209
|
+
placeholder: placeholder
|
|
210
|
+
})
|
|
211
|
+
})
|
|
212
|
+
});
|
|
213
|
+
$[17] = handleInputChange;
|
|
214
|
+
$[18] = placeholder;
|
|
215
|
+
$[19] = searchValue;
|
|
216
|
+
$[20] = t11;
|
|
217
|
+
$[21] = t12;
|
|
218
|
+
} else t12 = $[21];
|
|
219
|
+
const T1 = PopoverContent;
|
|
220
|
+
const t13 = "w-[--radix-popover-trigger-width] p-0";
|
|
221
|
+
const t14 = "start";
|
|
222
|
+
const T2 = Command;
|
|
223
|
+
const T3 = CommandList;
|
|
224
|
+
const t15 = 0 === filteredSuggestions.length ? /*#__PURE__*/ jsx(CommandEmpty, {
|
|
225
|
+
children: emptyMessage
|
|
226
|
+
}) : /*#__PURE__*/ jsx(CommandGroup, {
|
|
227
|
+
children: filteredSuggestions.map((suggestion_0)=>/*#__PURE__*/ jsxs(CommandItem, {
|
|
228
|
+
onSelect: ()=>handleSelect(suggestion_0),
|
|
34
229
|
children: [
|
|
35
|
-
/*#__PURE__*/ jsx(
|
|
36
|
-
className: "h-4 w-4"
|
|
230
|
+
/*#__PURE__*/ jsx(Search, {
|
|
231
|
+
className: "mr-2 h-4 w-4"
|
|
37
232
|
}),
|
|
38
|
-
|
|
39
|
-
className: "sr-only",
|
|
40
|
-
children: "Clear"
|
|
41
|
-
})
|
|
233
|
+
suggestion_0
|
|
42
234
|
]
|
|
43
|
-
})
|
|
44
|
-
]
|
|
235
|
+
}, suggestion_0))
|
|
45
236
|
});
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
237
|
+
let t16;
|
|
238
|
+
if ($[22] !== T3 || $[23] !== t15) {
|
|
239
|
+
t16 = /*#__PURE__*/ jsx(T3, {
|
|
240
|
+
children: t15
|
|
241
|
+
});
|
|
242
|
+
$[22] = T3;
|
|
243
|
+
$[23] = t15;
|
|
244
|
+
$[24] = t16;
|
|
245
|
+
} else t16 = $[24];
|
|
246
|
+
let t17;
|
|
247
|
+
if ($[25] !== T2 || $[26] !== t16) {
|
|
248
|
+
t17 = /*#__PURE__*/ jsx(T2, {
|
|
249
|
+
children: t16
|
|
250
|
+
});
|
|
251
|
+
$[25] = T2;
|
|
252
|
+
$[26] = t16;
|
|
253
|
+
$[27] = t17;
|
|
254
|
+
} else t17 = $[27];
|
|
255
|
+
let t18;
|
|
256
|
+
if ($[28] !== T1 || $[29] !== t17) {
|
|
257
|
+
t18 = /*#__PURE__*/ jsx(T1, {
|
|
258
|
+
className: t13,
|
|
259
|
+
align: t14,
|
|
260
|
+
children: t17
|
|
261
|
+
});
|
|
262
|
+
$[28] = T1;
|
|
263
|
+
$[29] = t17;
|
|
264
|
+
$[30] = t18;
|
|
265
|
+
} else t18 = $[30];
|
|
266
|
+
let t19;
|
|
267
|
+
if ($[31] !== T0 || $[32] !== setOpen || $[33] !== t10 || $[34] !== t12 || $[35] !== t18) {
|
|
268
|
+
t19 = /*#__PURE__*/ jsxs(T0, {
|
|
269
|
+
open: t10,
|
|
73
270
|
onOpenChange: setOpen,
|
|
74
271
|
children: [
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
78
|
-
children: /*#__PURE__*/ jsx(search_Search, {
|
|
79
|
-
value: searchValue,
|
|
80
|
-
onChange: handleInputChange,
|
|
81
|
-
onClear: ()=>{
|
|
82
|
-
setSearchValue('');
|
|
83
|
-
onChange?.('');
|
|
84
|
-
setOpen(false);
|
|
85
|
-
},
|
|
86
|
-
placeholder: placeholder
|
|
87
|
-
})
|
|
88
|
-
})
|
|
89
|
-
}),
|
|
90
|
-
/*#__PURE__*/ jsx(PopoverContent, {
|
|
91
|
-
className: "w-[--radix-popover-trigger-width] p-0",
|
|
92
|
-
align: "start",
|
|
93
|
-
children: /*#__PURE__*/ jsx(Command, {
|
|
94
|
-
children: /*#__PURE__*/ jsx(CommandList, {
|
|
95
|
-
children: 0 === filteredSuggestions.length ? /*#__PURE__*/ jsx(CommandEmpty, {
|
|
96
|
-
children: emptyMessage
|
|
97
|
-
}) : /*#__PURE__*/ jsx(CommandGroup, {
|
|
98
|
-
children: filteredSuggestions.map((suggestion)=>/*#__PURE__*/ jsxs(CommandItem, {
|
|
99
|
-
onSelect: ()=>handleSelect(suggestion),
|
|
100
|
-
children: [
|
|
101
|
-
/*#__PURE__*/ jsx(Search, {
|
|
102
|
-
className: "mr-2 h-4 w-4"
|
|
103
|
-
}),
|
|
104
|
-
suggestion
|
|
105
|
-
]
|
|
106
|
-
}, suggestion))
|
|
107
|
-
})
|
|
108
|
-
})
|
|
109
|
-
})
|
|
110
|
-
})
|
|
272
|
+
t12,
|
|
273
|
+
t18
|
|
111
274
|
]
|
|
112
|
-
})
|
|
113
|
-
|
|
275
|
+
});
|
|
276
|
+
$[31] = T0;
|
|
277
|
+
$[32] = setOpen;
|
|
278
|
+
$[33] = t10;
|
|
279
|
+
$[34] = t12;
|
|
280
|
+
$[35] = t18;
|
|
281
|
+
$[36] = t19;
|
|
282
|
+
} else t19 = $[36];
|
|
283
|
+
let t20;
|
|
284
|
+
if ($[37] !== ref || $[38] !== t19 || $[39] !== t9) {
|
|
285
|
+
t20 = /*#__PURE__*/ jsx("div", {
|
|
286
|
+
ref: ref,
|
|
287
|
+
className: t9,
|
|
288
|
+
children: t19
|
|
289
|
+
});
|
|
290
|
+
$[37] = ref;
|
|
291
|
+
$[38] = t19;
|
|
292
|
+
$[39] = t9;
|
|
293
|
+
$[40] = t20;
|
|
294
|
+
} else t20 = $[40];
|
|
295
|
+
return t20;
|
|
114
296
|
});
|
|
115
297
|
SearchWithSuggestions.displayName = 'SearchWithSuggestions';
|
|
116
298
|
export { search_Search as Search, SearchWithSuggestions };
|