@ekanos/ui 0.1.2 → 0.1.3
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/README.md +13 -14
- package/dist/ai-prompt-input.js +122 -816
- package/dist/base.css +1 -1
- package/dist/card.d.ts +1 -1
- package/dist/dialog.js +16 -716
- package/dist/dropdown-menu.js +26 -719
- package/dist/form.d.ts +2 -2
- package/dist/icon.js +27 -0
- package/dist/select.js +22 -722
- package/dist/tokens.css +9 -9
- package/package.json +14 -14
package/dist/ai-prompt-input.js
CHANGED
|
@@ -21,712 +21,12 @@ function cn(...inputs) {
|
|
|
21
21
|
|
|
22
22
|
// ../ui/src/ai-elements/prompt-input.tsx
|
|
23
23
|
import { nanoid } from "nanoid";
|
|
24
|
-
|
|
25
|
-
// ../ui/src/custom/icon.tsx
|
|
26
|
-
import {
|
|
27
|
-
createContext,
|
|
28
|
-
useContext
|
|
29
|
-
} from "react";
|
|
30
|
-
|
|
31
|
-
// ../ui/src/custom/lucide-fa-map.json
|
|
32
|
-
var lucide_fa_map_default = {
|
|
33
|
-
Activity: "fa-light fa-wave-pulse",
|
|
34
|
-
Airplay: "fa-light fa-airplay",
|
|
35
|
-
AlarmClock: "fa-light fa-alarm-clock",
|
|
36
|
-
Album: "fa-light fa-album",
|
|
37
|
-
Ampersand: "fa-light fa-ampersand",
|
|
38
|
-
Anchor: "fa-light fa-anchor",
|
|
39
|
-
Aperture: "fa-light fa-aperture",
|
|
40
|
-
Apple: "fa-brands fa-apple",
|
|
41
|
-
Archive: "fa-light fa-box-archive",
|
|
42
|
-
ArrowDown: "fa-light fa-arrow-down",
|
|
43
|
-
ArrowDownFromLine: "fa-light fa-arrow-down-from-line",
|
|
44
|
-
ArrowDownLeft: "fa-light fa-arrow-down-left",
|
|
45
|
-
ArrowDownRight: "fa-light fa-arrow-down-right",
|
|
46
|
-
ArrowDownToLine: "fa-light fa-arrow-down-to-line",
|
|
47
|
-
ArrowLeft: "fa-light fa-arrow-left",
|
|
48
|
-
ArrowLeftFromLine: "fa-light fa-arrow-left-from-line",
|
|
49
|
-
ArrowLeftRight: "fa-light fa-arrow-right-arrow-left",
|
|
50
|
-
ArrowLeftToLine: "fa-light fa-arrow-left-to-line",
|
|
51
|
-
ArrowRight: "fa-light fa-arrow-right",
|
|
52
|
-
ArrowRightFromLine: "fa-light fa-arrow-right-from-line",
|
|
53
|
-
ArrowRightToLine: "fa-light fa-arrow-right-to-line",
|
|
54
|
-
ArrowUp: "fa-light fa-arrow-up",
|
|
55
|
-
ArrowUpDown: "fa-light fa-arrow-up-arrow-down",
|
|
56
|
-
ArrowUpFromLine: "fa-light fa-arrow-up-from-line",
|
|
57
|
-
ArrowUpLeft: "fa-light fa-arrow-up-left",
|
|
58
|
-
ArrowUpRight: "fa-light fa-arrow-up-right",
|
|
59
|
-
ArrowUpToLine: "fa-light fa-arrow-up-to-line",
|
|
60
|
-
Asterisk: "fa-light fa-asterisk",
|
|
61
|
-
Atom: "fa-light fa-atom",
|
|
62
|
-
AtSign: "fa-light fa-at",
|
|
63
|
-
Award: "fa-light fa-award",
|
|
64
|
-
Axe: "fa-light fa-axe",
|
|
65
|
-
Baby: "fa-light fa-baby",
|
|
66
|
-
Backpack: "fa-light fa-backpack",
|
|
67
|
-
Badge: "fa-light fa-badge",
|
|
68
|
-
BadgeCheck: "fa-light fa-badge-check",
|
|
69
|
-
BadgeDollarSign: "fa-light fa-badge-dollar",
|
|
70
|
-
BadgePercent: "fa-light fa-badge-percent",
|
|
71
|
-
Balloon: "fa-light fa-balloon",
|
|
72
|
-
Ban: "fa-light fa-ban",
|
|
73
|
-
Banana: "fa-light fa-banana",
|
|
74
|
-
Bandage: "fa-light fa-bandage",
|
|
75
|
-
Banknote: "fa-light fa-money-bill",
|
|
76
|
-
Barcode: "fa-light fa-barcode",
|
|
77
|
-
Bath: "fa-light fa-bath",
|
|
78
|
-
Battery: "fa-light fa-battery-full",
|
|
79
|
-
BatteryFull: "fa-light fa-battery-full",
|
|
80
|
-
BatteryLow: "fa-light fa-battery-low",
|
|
81
|
-
Bed: "fa-light fa-bed",
|
|
82
|
-
Bell: "fa-light fa-bell",
|
|
83
|
-
BellPlus: "fa-light fa-bell-plus",
|
|
84
|
-
BellRing: "fa-light fa-bell-ring",
|
|
85
|
-
Binary: "fa-light fa-binary",
|
|
86
|
-
Binoculars: "fa-light fa-binoculars",
|
|
87
|
-
Biohazard: "fa-light fa-biohazard",
|
|
88
|
-
Bird: "fa-light fa-bird",
|
|
89
|
-
Bitcoin: "fa-brands fa-bitcoin",
|
|
90
|
-
Blinds: "fa-light fa-blinds",
|
|
91
|
-
Blocks: "fa-light fa-cubes",
|
|
92
|
-
Bluetooth: "fa-light fa-bluetooth",
|
|
93
|
-
Bold: "fa-light fa-bold",
|
|
94
|
-
Bolt: "fa-light fa-bolt",
|
|
95
|
-
Bomb: "fa-light fa-bomb",
|
|
96
|
-
Bone: "fa-light fa-bone",
|
|
97
|
-
Book: "fa-light fa-book",
|
|
98
|
-
BookCopy: "fa-light fa-book-copy",
|
|
99
|
-
BookHeart: "fa-light fa-book-heart",
|
|
100
|
-
Bookmark: "fa-light fa-bookmark",
|
|
101
|
-
BookmarkPlus: "fa-light fa-bookmark-plus",
|
|
102
|
-
BookOpen: "fa-light fa-book-open",
|
|
103
|
-
BookUser: "fa-light fa-book-user",
|
|
104
|
-
Bot: "fa-light fa-robot",
|
|
105
|
-
BowArrow: "fa-light fa-bow-arrow",
|
|
106
|
-
Box: "fa-light fa-box",
|
|
107
|
-
Boxes: "fa-light fa-boxes-stacked",
|
|
108
|
-
Brain: "fa-light fa-brain",
|
|
109
|
-
BrainCircuit: "fa-light fa-brain-circuit",
|
|
110
|
-
Briefcase: "fa-light fa-briefcase",
|
|
111
|
-
BriefcaseMedical: "fa-light fa-briefcase-medical",
|
|
112
|
-
Brush: "fa-light fa-brush",
|
|
113
|
-
Bug: "fa-light fa-bug",
|
|
114
|
-
Building: "fa-light fa-building",
|
|
115
|
-
Building2: "fa-light fa-building",
|
|
116
|
-
Bus: "fa-light fa-bus",
|
|
117
|
-
CableCar: "fa-light fa-cable-car",
|
|
118
|
-
CakeSlice: "fa-light fa-cake-slice",
|
|
119
|
-
Calculator: "fa-light fa-calculator",
|
|
120
|
-
Calendar: "fa-light fa-calendar",
|
|
121
|
-
CalendarArrowDown: "fa-light fa-calendar-arrow-down",
|
|
122
|
-
CalendarArrowUp: "fa-light fa-calendar-arrow-up",
|
|
123
|
-
CalendarCheck: "fa-light fa-calendar-check",
|
|
124
|
-
CalendarClock: "fa-light fa-calendar-clock",
|
|
125
|
-
CalendarDays: "fa-light fa-calendar-days",
|
|
126
|
-
CalendarHeart: "fa-light fa-calendar-heart",
|
|
127
|
-
CalendarMinus: "fa-light fa-calendar-minus",
|
|
128
|
-
CalendarPlus: "fa-light fa-calendar-plus",
|
|
129
|
-
CalendarRange: "fa-light fa-calendar-range",
|
|
130
|
-
Calendars: "fa-light fa-calendars",
|
|
131
|
-
Camera: "fa-light fa-camera",
|
|
132
|
-
Candy: "fa-light fa-candy",
|
|
133
|
-
CandyCane: "fa-light fa-candy-cane",
|
|
134
|
-
Cannabis: "fa-light fa-cannabis",
|
|
135
|
-
Car: "fa-light fa-car",
|
|
136
|
-
Caravan: "fa-light fa-caravan",
|
|
137
|
-
Carrot: "fa-light fa-carrot",
|
|
138
|
-
CassetteTape: "fa-light fa-cassette-tape",
|
|
139
|
-
Castle: "fa-light fa-castle",
|
|
140
|
-
Cat: "fa-light fa-cat",
|
|
141
|
-
ChartArea: "fa-light fa-chart-area",
|
|
142
|
-
ChartBar: "fa-light fa-chart-bar",
|
|
143
|
-
ChartCandlestick: "fa-light fa-chart-candlestick",
|
|
144
|
-
ChartColumn: "fa-light fa-chart-column",
|
|
145
|
-
ChartGantt: "fa-light fa-chart-gantt",
|
|
146
|
-
ChartLine: "fa-light fa-chart-line",
|
|
147
|
-
ChartNetwork: "fa-light fa-chart-network",
|
|
148
|
-
ChartPie: "fa-light fa-chart-pie",
|
|
149
|
-
ChartScatter: "fa-light fa-chart-scatter",
|
|
150
|
-
Check: "fa-light fa-check",
|
|
151
|
-
ChessBishop: "fa-light fa-chess-bishop",
|
|
152
|
-
ChessKing: "fa-light fa-chess-king",
|
|
153
|
-
ChessKnight: "fa-light fa-chess-knight",
|
|
154
|
-
ChessPawn: "fa-light fa-chess-pawn",
|
|
155
|
-
ChessQueen: "fa-light fa-chess-queen",
|
|
156
|
-
ChessRook: "fa-light fa-chess-rook",
|
|
157
|
-
ChevronDown: "fa-light fa-chevron-down",
|
|
158
|
-
ChevronLeft: "fa-light fa-chevron-left",
|
|
159
|
-
ChevronRight: "fa-light fa-chevron-right",
|
|
160
|
-
ChevronsDown: "fa-light fa-chevrons-down",
|
|
161
|
-
ChevronsLeft: "fa-light fa-angles-left",
|
|
162
|
-
ChevronsRight: "fa-light fa-angles-right",
|
|
163
|
-
ChevronsUp: "fa-light fa-chevrons-up",
|
|
164
|
-
ChevronsUpDown: "fa-light fa-up-down",
|
|
165
|
-
ChevronUp: "fa-light fa-chevron-up",
|
|
166
|
-
Church: "fa-light fa-church",
|
|
167
|
-
Circle: "fa-light fa-circle",
|
|
168
|
-
CircleArrowDown: "fa-light fa-circle-arrow-down",
|
|
169
|
-
CircleArrowLeft: "fa-light fa-circle-arrow-left",
|
|
170
|
-
CircleArrowRight: "fa-light fa-circle-arrow-right",
|
|
171
|
-
CircleArrowUp: "fa-light fa-circle-arrow-up",
|
|
172
|
-
CircleCheck: "fa-light fa-circle-check",
|
|
173
|
-
CircleChevronDown: "fa-light fa-circle-chevron-down",
|
|
174
|
-
CircleChevronLeft: "fa-light fa-circle-chevron-left",
|
|
175
|
-
CircleChevronRight: "fa-light fa-circle-chevron-right",
|
|
176
|
-
CircleChevronUp: "fa-light fa-circle-chevron-up",
|
|
177
|
-
CircleDashed: "fa-light fa-circle-dashed",
|
|
178
|
-
CircleDivide: "fa-light fa-circle-divide",
|
|
179
|
-
CircleDot: "fa-light fa-circle-dot",
|
|
180
|
-
CircleEllipsis: "fa-light fa-circle-ellipsis",
|
|
181
|
-
CircleMinus: "fa-light fa-circle-minus",
|
|
182
|
-
CircleParking: "fa-light fa-circle-parking",
|
|
183
|
-
CirclePause: "fa-light fa-circle-pause",
|
|
184
|
-
CirclePlay: "fa-light fa-circle-play",
|
|
185
|
-
CirclePlus: "fa-light fa-circle-plus",
|
|
186
|
-
CircleSmall: "fa-light fa-circle-small",
|
|
187
|
-
CircleStar: "fa-light fa-circle-star",
|
|
188
|
-
CircleStop: "fa-light fa-circle-stop",
|
|
189
|
-
CircleUser: "fa-light fa-circle-user",
|
|
190
|
-
CircleX: "fa-light fa-circle-x",
|
|
191
|
-
Citrus: "fa-light fa-citrus",
|
|
192
|
-
Clapperboard: "fa-light fa-clapperboard",
|
|
193
|
-
Clipboard: "fa-light fa-clipboard",
|
|
194
|
-
ClipboardCheck: "fa-light fa-clipboard-check",
|
|
195
|
-
ClipboardClock: "fa-light fa-clipboard-clock",
|
|
196
|
-
ClipboardList: "fa-light fa-clipboard-list",
|
|
197
|
-
Clock: "fa-light fa-clock",
|
|
198
|
-
Clock3: "fa-light fa-clock",
|
|
199
|
-
Cloud: "fa-light fa-cloud",
|
|
200
|
-
CloudCheck: "fa-light fa-cloud-check",
|
|
201
|
-
CloudDrizzle: "fa-light fa-cloud-drizzle",
|
|
202
|
-
CloudFog: "fa-light fa-cloud-fog",
|
|
203
|
-
CloudHail: "fa-light fa-cloud-hail",
|
|
204
|
-
CloudMoon: "fa-light fa-cloud-moon",
|
|
205
|
-
CloudMoonRain: "fa-light fa-cloud-moon-rain",
|
|
206
|
-
CloudRain: "fa-light fa-cloud-rain",
|
|
207
|
-
CloudSnow: "fa-light fa-cloud-snow",
|
|
208
|
-
CloudSun: "fa-light fa-cloud-sun",
|
|
209
|
-
CloudSunRain: "fa-light fa-cloud-sun-rain",
|
|
210
|
-
Clover: "fa-light fa-clover",
|
|
211
|
-
Club: "fa-light fa-club",
|
|
212
|
-
Code: "fa-light fa-code",
|
|
213
|
-
Codepen: "fa-brands fa-codepen",
|
|
214
|
-
Coffee: "fa-light fa-mug-saucer",
|
|
215
|
-
Cog: "fa-light fa-gear",
|
|
216
|
-
Coins: "fa-light fa-coins",
|
|
217
|
-
Command: "fa-light fa-command",
|
|
218
|
-
Compass: "fa-light fa-compass",
|
|
219
|
-
Computer: "fa-light fa-display",
|
|
220
|
-
Construction: "fa-light fa-person-digging",
|
|
221
|
-
Contact: "fa-light fa-address-book",
|
|
222
|
-
Cookie: "fa-light fa-cookie",
|
|
223
|
-
Copy: "fa-light fa-copy",
|
|
224
|
-
Copyright: "fa-light fa-copyright",
|
|
225
|
-
CornerDownLeft: "fa-light fa-arrow-turn-down-left",
|
|
226
|
-
CreativeCommons: "fa-brands fa-creative-commons",
|
|
227
|
-
CreditCard: "fa-light fa-credit-card",
|
|
228
|
-
Croissant: "fa-light fa-croissant",
|
|
229
|
-
Crop: "fa-light fa-crop",
|
|
230
|
-
Cross: "fa-light fa-cross",
|
|
231
|
-
Crown: "fa-light fa-crown",
|
|
232
|
-
Database: "fa-light fa-database",
|
|
233
|
-
Diamond: "fa-light fa-diamond",
|
|
234
|
-
Divide: "fa-light fa-divide",
|
|
235
|
-
Dna: "fa-light fa-dna",
|
|
236
|
-
Dog: "fa-light fa-dog",
|
|
237
|
-
DollarSign: "fa-light fa-dollar-sign",
|
|
238
|
-
Donut: "fa-light fa-donut",
|
|
239
|
-
DoorClosed: "fa-light fa-door-closed",
|
|
240
|
-
DoorOpen: "fa-light fa-door-open",
|
|
241
|
-
Dot: "fa-light fa-dot",
|
|
242
|
-
Download: "fa-light fa-download",
|
|
243
|
-
Dribbble: "fa-brands fa-dribbble",
|
|
244
|
-
Drone: "fa-light fa-drone",
|
|
245
|
-
Droplet: "fa-light fa-droplet",
|
|
246
|
-
Drum: "fa-light fa-drum",
|
|
247
|
-
Drumstick: "fa-light fa-drumstick",
|
|
248
|
-
Dumbbell: "fa-light fa-dumbbell",
|
|
249
|
-
Ear: "fa-light fa-ear",
|
|
250
|
-
Eclipse: "fa-light fa-eclipse",
|
|
251
|
-
Edit: "fa-light fa-pen-to-square",
|
|
252
|
-
Edit3: "fa-light fa-pencil",
|
|
253
|
-
Egg: "fa-light fa-egg",
|
|
254
|
-
EggFried: "fa-light fa-egg-fried",
|
|
255
|
-
Ellipsis: "fa-light fa-ellipsis",
|
|
256
|
-
EllipsisVertical: "fa-light fa-ellipsis-vertical",
|
|
257
|
-
Eraser: "fa-light fa-eraser",
|
|
258
|
-
Expand: "fa-light fa-expand",
|
|
259
|
-
ExternalLink: "fa-light fa-arrow-up-right-from-square",
|
|
260
|
-
Eye: "fa-light fa-eye",
|
|
261
|
-
EyeClosed: "fa-light fa-eye-closed",
|
|
262
|
-
EyeOff: "fa-light fa-eye-slash",
|
|
263
|
-
Facebook: "fa-brands fa-facebook",
|
|
264
|
-
Fan: "fa-light fa-fan",
|
|
265
|
-
Feather: "fa-light fa-feather",
|
|
266
|
-
Fence: "fa-light fa-fence",
|
|
267
|
-
FerrisWheel: "fa-light fa-ferris-wheel",
|
|
268
|
-
Figma: "fa-brands fa-figma",
|
|
269
|
-
File: "fa-light fa-file",
|
|
270
|
-
FileChartColumn: "fa-light fa-file-chart-column",
|
|
271
|
-
FileChartPie: "fa-light fa-file-chart-pie",
|
|
272
|
-
FileCheck: "fa-light fa-file-check",
|
|
273
|
-
FileCode: "fa-light fa-file-code",
|
|
274
|
-
FileHeart: "fa-light fa-file-heart",
|
|
275
|
-
FileImage: "fa-light fa-file-image",
|
|
276
|
-
FileLock: "fa-light fa-file-lock",
|
|
277
|
-
FileMinus: "fa-light fa-file-minus",
|
|
278
|
-
FileMusic: "fa-light fa-file-music",
|
|
279
|
-
FilePen: "fa-light fa-file-pen",
|
|
280
|
-
FilePlus: "fa-light fa-file-plus",
|
|
281
|
-
Files: "fa-light fa-files",
|
|
282
|
-
FileSpreadsheet: "fa-light fa-file-spreadsheet",
|
|
283
|
-
FileText: "fa-light fa-file-lines",
|
|
284
|
-
FileUser: "fa-light fa-file-user",
|
|
285
|
-
Film: "fa-light fa-film",
|
|
286
|
-
FireExtinguisher: "fa-light fa-fire-extinguisher",
|
|
287
|
-
Fish: "fa-light fa-fish",
|
|
288
|
-
Flag: "fa-light fa-flag",
|
|
289
|
-
Flashlight: "fa-light fa-flashlight",
|
|
290
|
-
Flower: "fa-light fa-flower",
|
|
291
|
-
Folder: "fa-light fa-folder",
|
|
292
|
-
FolderArchive: "fa-light fa-box-archive",
|
|
293
|
-
FolderCheck: "fa-light fa-folder-check",
|
|
294
|
-
FolderClosed: "fa-light fa-folder-closed",
|
|
295
|
-
FolderHeart: "fa-light fa-folder-heart",
|
|
296
|
-
FolderKanban: "fa-light fa-square-kanban",
|
|
297
|
-
FolderMinus: "fa-light fa-folder-minus",
|
|
298
|
-
FolderOpen: "fa-light fa-folder-open",
|
|
299
|
-
FolderPlus: "fa-light fa-folder-plus",
|
|
300
|
-
Folders: "fa-light fa-folders",
|
|
301
|
-
FolderTree: "fa-light fa-folder-tree",
|
|
302
|
-
Forklift: "fa-light fa-forklift",
|
|
303
|
-
Forward: "fa-light fa-forward",
|
|
304
|
-
Frame: "fa-light fa-frame",
|
|
305
|
-
GalleryThumbnails: "fa-light fa-gallery-thumbnails",
|
|
306
|
-
Gamepad: "fa-light fa-gamepad",
|
|
307
|
-
Gauge: "fa-light fa-gauge",
|
|
308
|
-
Gavel: "fa-light fa-gavel",
|
|
309
|
-
Gem: "fa-light fa-gem",
|
|
310
|
-
Ghost: "fa-light fa-ghost",
|
|
311
|
-
Gift: "fa-light fa-gift",
|
|
312
|
-
Github: "fa-brands fa-github",
|
|
313
|
-
Gitlab: "fa-brands fa-gitlab",
|
|
314
|
-
Glasses: "fa-light fa-glasses",
|
|
315
|
-
GlassWater: "fa-light fa-glass-water",
|
|
316
|
-
Globe: "fa-light fa-globe",
|
|
317
|
-
Gpu: "fa-light fa-gpu",
|
|
318
|
-
GraduationCap: "fa-light fa-graduation-cap",
|
|
319
|
-
Grid3X3: "fa-light fa-grid",
|
|
320
|
-
Grip: "fa-light fa-grip",
|
|
321
|
-
GripVertical: "fa-light fa-grip-vertical",
|
|
322
|
-
Guitar: "fa-light fa-guitar",
|
|
323
|
-
Hammer: "fa-light fa-hammer",
|
|
324
|
-
Hand: "fa-light fa-hand",
|
|
325
|
-
HandFist: "fa-light fa-hand-fist",
|
|
326
|
-
HandHeart: "fa-light fa-hand-heart",
|
|
327
|
-
Handshake: "fa-light fa-handshake",
|
|
328
|
-
HardDrive: "fa-light fa-hard-drive",
|
|
329
|
-
Hash: "fa-light fa-hashtag",
|
|
330
|
-
Heading: "fa-light fa-heading",
|
|
331
|
-
Headphones: "fa-light fa-headphones",
|
|
332
|
-
Headset: "fa-light fa-headset",
|
|
333
|
-
Heart: "fa-light fa-heart",
|
|
334
|
-
HeartCrack: "fa-light fa-heart-crack",
|
|
335
|
-
HeartPulse: "fa-light fa-heart-pulse",
|
|
336
|
-
Helicopter: "fa-light fa-helicopter",
|
|
337
|
-
Hexagon: "fa-light fa-hexagon",
|
|
338
|
-
Highlighter: "fa-light fa-highlighter",
|
|
339
|
-
History: "fa-light fa-clock-rotate-left",
|
|
340
|
-
Hospital: "fa-light fa-hospital",
|
|
341
|
-
Hotel: "fa-light fa-hotel",
|
|
342
|
-
Hourglass: "fa-light fa-hourglass",
|
|
343
|
-
House: "fa-light fa-house",
|
|
344
|
-
HouseHeart: "fa-light fa-house-heart",
|
|
345
|
-
IdCard: "fa-light fa-id-card",
|
|
346
|
-
Image: "fa-light fa-image",
|
|
347
|
-
Images: "fa-light fa-images",
|
|
348
|
-
Inbox: "fa-light fa-inbox",
|
|
349
|
-
Infinity: "fa-light fa-infinity",
|
|
350
|
-
Info: "fa-light fa-info",
|
|
351
|
-
Instagram: "fa-brands fa-instagram",
|
|
352
|
-
Italic: "fa-light fa-italic",
|
|
353
|
-
Joystick: "fa-light fa-joystick",
|
|
354
|
-
Kayak: "fa-light fa-kayak",
|
|
355
|
-
Key: "fa-light fa-key",
|
|
356
|
-
Keyboard: "fa-light fa-keyboard",
|
|
357
|
-
KeyRound: "fa-light fa-key",
|
|
358
|
-
Lamp: "fa-light fa-lamp",
|
|
359
|
-
LampDesk: "fa-light fa-lamp-desk",
|
|
360
|
-
LampFloor: "fa-light fa-lamp-floor",
|
|
361
|
-
Landmark: "fa-light fa-landmark",
|
|
362
|
-
Laptop: "fa-light fa-laptop",
|
|
363
|
-
Lasso: "fa-light fa-lasso",
|
|
364
|
-
Layers: "fa-light fa-layer-group",
|
|
365
|
-
Layout: "fa-light fa-table-layout",
|
|
366
|
-
LayoutDashboard: "fa-light fa-table-columns",
|
|
367
|
-
LayoutGrid: "fa-light fa-grid-2",
|
|
368
|
-
Leaf: "fa-light fa-leaf",
|
|
369
|
-
LeafyGreen: "fa-light fa-leafy-green",
|
|
370
|
-
Lightbulb: "fa-light fa-lightbulb",
|
|
371
|
-
Link: "fa-light fa-link",
|
|
372
|
-
Link2: "fa-light fa-link",
|
|
373
|
-
Linkedin: "fa-brands fa-linkedin",
|
|
374
|
-
List: "fa-light fa-list",
|
|
375
|
-
ListCheck: "fa-light fa-list-check",
|
|
376
|
-
ListMusic: "fa-light fa-list-music",
|
|
377
|
-
ListTree: "fa-light fa-list-tree",
|
|
378
|
-
Loader: "fa-light fa-loader",
|
|
379
|
-
Lock: "fa-light fa-lock",
|
|
380
|
-
LockKeyhole: "fa-light fa-lock-keyhole",
|
|
381
|
-
LockKeyholeOpen: "fa-light fa-lock-keyhole-open",
|
|
382
|
-
LockOpen: "fa-light fa-lock-open",
|
|
383
|
-
LogOut: "fa-light fa-right-from-bracket",
|
|
384
|
-
Lollipop: "fa-light fa-lollipop",
|
|
385
|
-
Magnet: "fa-light fa-magnet",
|
|
386
|
-
Mail: "fa-light fa-envelope",
|
|
387
|
-
Mailbox: "fa-light fa-mailbox",
|
|
388
|
-
Map: "fa-light fa-map",
|
|
389
|
-
MapPin: "fa-light fa-location-dot",
|
|
390
|
-
Mars: "fa-light fa-mars",
|
|
391
|
-
MarsStroke: "fa-light fa-mars-stroke",
|
|
392
|
-
Maximize: "fa-light fa-maximize",
|
|
393
|
-
Maximize2: "fa-light fa-expand",
|
|
394
|
-
Medal: "fa-light fa-medal",
|
|
395
|
-
Megaphone: "fa-light fa-bullhorn",
|
|
396
|
-
Menu: "fa-light fa-bars",
|
|
397
|
-
Merge: "fa-light fa-merge",
|
|
398
|
-
MessageCircle: "fa-light fa-comment",
|
|
399
|
-
MessageSquare: "fa-light fa-message",
|
|
400
|
-
Mic: "fa-light fa-microphone",
|
|
401
|
-
Microchip: "fa-light fa-microchip",
|
|
402
|
-
Microscope: "fa-light fa-microscope",
|
|
403
|
-
Microwave: "fa-light fa-microwave",
|
|
404
|
-
Minimize: "fa-light fa-minimize",
|
|
405
|
-
Minimize2: "fa-light fa-compress",
|
|
406
|
-
Minus: "fa-light fa-minus",
|
|
407
|
-
MinusCircle: "fa-light fa-circle-minus",
|
|
408
|
-
Monitor: "fa-light fa-display",
|
|
409
|
-
MonitorPlay: "fa-light fa-display",
|
|
410
|
-
Moon: "fa-light fa-moon",
|
|
411
|
-
MoonStar: "fa-light fa-moon-star",
|
|
412
|
-
Mountain: "fa-light fa-mountain",
|
|
413
|
-
Music: "fa-light fa-music",
|
|
414
|
-
Music2: "fa-light fa-music",
|
|
415
|
-
Newspaper: "fa-light fa-newspaper",
|
|
416
|
-
Nfc: "fa-light fa-nfc",
|
|
417
|
-
NonBinary: "fa-light fa-non-binary",
|
|
418
|
-
Notebook: "fa-light fa-notebook",
|
|
419
|
-
NotebookPen: "fa-light fa-notebook",
|
|
420
|
-
Octagon: "fa-light fa-octagon",
|
|
421
|
-
OctagonMinus: "fa-light fa-octagon-minus",
|
|
422
|
-
Omega: "fa-light fa-omega",
|
|
423
|
-
Option: "fa-light fa-option",
|
|
424
|
-
Package: "fa-light fa-box",
|
|
425
|
-
PackageOpen: "fa-light fa-box-open",
|
|
426
|
-
Paintbrush: "fa-light fa-paintbrush",
|
|
427
|
-
PaintRoller: "fa-light fa-paint-roller",
|
|
428
|
-
Palette: "fa-light fa-palette",
|
|
429
|
-
PanelLeft: "fa-light fa-table-columns",
|
|
430
|
-
PanelRightClose: "fa-light fa-sidebar-flip",
|
|
431
|
-
PanelRightOpen: "fa-light fa-sidebar",
|
|
432
|
-
Paperclip: "fa-light fa-paperclip",
|
|
433
|
-
Pause: "fa-light fa-pause",
|
|
434
|
-
Pen: "fa-light fa-pen",
|
|
435
|
-
Pencil: "fa-light fa-pencil",
|
|
436
|
-
PencilLine: "fa-light fa-pencil-line",
|
|
437
|
-
PenLine: "fa-light fa-pen-line",
|
|
438
|
-
Pentagon: "fa-light fa-pentagon",
|
|
439
|
-
Percent: "fa-light fa-percent",
|
|
440
|
-
Phone: "fa-light fa-phone",
|
|
441
|
-
PhoneMissed: "fa-light fa-phone-missed",
|
|
442
|
-
Pi: "fa-light fa-pi",
|
|
443
|
-
Piano: "fa-light fa-piano",
|
|
444
|
-
Pickaxe: "fa-light fa-pickaxe",
|
|
445
|
-
PictureInPicture: "fa-light fa-picture-in-picture",
|
|
446
|
-
PiggyBank: "fa-light fa-piggy-bank",
|
|
447
|
-
Pill: "fa-light fa-pills",
|
|
448
|
-
Pipette: "fa-light fa-eye-dropper",
|
|
449
|
-
Pizza: "fa-light fa-pizza",
|
|
450
|
-
Plane: "fa-light fa-plane",
|
|
451
|
-
Play: "fa-light fa-play",
|
|
452
|
-
Plug: "fa-light fa-plug",
|
|
453
|
-
PlugZap: "fa-light fa-plug-circle-bolt",
|
|
454
|
-
Plus: "fa-light fa-plus",
|
|
455
|
-
PlusCircle: "fa-light fa-circle-plus",
|
|
456
|
-
Podcast: "fa-light fa-podcast",
|
|
457
|
-
Popcorn: "fa-light fa-popcorn",
|
|
458
|
-
Popsicle: "fa-light fa-popsicle",
|
|
459
|
-
Power: "fa-light fa-power-off",
|
|
460
|
-
PowerOff: "fa-light fa-power-off",
|
|
461
|
-
Projector: "fa-light fa-projector",
|
|
462
|
-
Puzzle: "fa-light fa-puzzle",
|
|
463
|
-
Rabbit: "fa-light fa-rabbit",
|
|
464
|
-
Radar: "fa-light fa-radar",
|
|
465
|
-
Radiation: "fa-light fa-radiation",
|
|
466
|
-
Radio: "fa-light fa-radio",
|
|
467
|
-
Rainbow: "fa-light fa-rainbow",
|
|
468
|
-
Receipt: "fa-light fa-receipt",
|
|
469
|
-
RectangleVertical: "fa-light fa-rectangle-vertical",
|
|
470
|
-
Recycle: "fa-light fa-recycle",
|
|
471
|
-
RefreshCw: "fa-light fa-arrows-rotate",
|
|
472
|
-
Refrigerator: "fa-light fa-refrigerator",
|
|
473
|
-
Repeat: "fa-light fa-repeat",
|
|
474
|
-
Reply: "fa-light fa-reply",
|
|
475
|
-
ReplyAll: "fa-light fa-reply-all",
|
|
476
|
-
Ribbon: "fa-light fa-ribbon",
|
|
477
|
-
Rocket: "fa-light fa-rocket",
|
|
478
|
-
RollerCoaster: "fa-light fa-roller-coaster",
|
|
479
|
-
RotateCcw: "fa-light fa-rotate-left",
|
|
480
|
-
Route: "fa-light fa-route",
|
|
481
|
-
Router: "fa-light fa-router",
|
|
482
|
-
Rss: "fa-light fa-rss",
|
|
483
|
-
Ruler: "fa-light fa-ruler",
|
|
484
|
-
Sailboat: "fa-light fa-sailboat",
|
|
485
|
-
Salad: "fa-light fa-salad",
|
|
486
|
-
Sandwich: "fa-light fa-sandwich",
|
|
487
|
-
Satellite: "fa-light fa-satellite",
|
|
488
|
-
SatelliteDish: "fa-light fa-satellite-dish",
|
|
489
|
-
Save: "fa-light fa-floppy-disk",
|
|
490
|
-
School: "fa-light fa-school",
|
|
491
|
-
Scissors: "fa-light fa-scissors",
|
|
492
|
-
Scooter: "fa-light fa-scooter",
|
|
493
|
-
Scroll: "fa-light fa-scroll",
|
|
494
|
-
Search: "fa-light fa-magnifying-glass",
|
|
495
|
-
Section: "fa-light fa-section",
|
|
496
|
-
Send: "fa-light fa-paper-plane",
|
|
497
|
-
Server: "fa-light fa-server",
|
|
498
|
-
Settings: "fa-light fa-gear",
|
|
499
|
-
Shapes: "fa-light fa-shapes",
|
|
500
|
-
Share: "fa-light fa-share",
|
|
501
|
-
Shield: "fa-light fa-shield",
|
|
502
|
-
ShieldAlert: "fa-light fa-shield-exclamation",
|
|
503
|
-
ShieldCheck: "fa-light fa-shield-check",
|
|
504
|
-
ShieldMinus: "fa-light fa-shield-minus",
|
|
505
|
-
ShieldOff: "fa-light fa-shield-slash",
|
|
506
|
-
ShieldPlus: "fa-light fa-shield-plus",
|
|
507
|
-
ShieldUser: "fa-light fa-shield-user",
|
|
508
|
-
Ship: "fa-light fa-ship",
|
|
509
|
-
Shirt: "fa-light fa-shirt",
|
|
510
|
-
ShoppingBag: "fa-light fa-bag-shopping",
|
|
511
|
-
Shovel: "fa-light fa-shovel",
|
|
512
|
-
Shredder: "fa-light fa-shredder",
|
|
513
|
-
Shrimp: "fa-light fa-shrimp",
|
|
514
|
-
Shuffle: "fa-light fa-shuffle",
|
|
515
|
-
Sigma: "fa-light fa-sigma",
|
|
516
|
-
Signal: "fa-light fa-signal",
|
|
517
|
-
Signature: "fa-light fa-signature",
|
|
518
|
-
Siren: "fa-light fa-siren",
|
|
519
|
-
Skull: "fa-light fa-skull",
|
|
520
|
-
Slack: "fa-brands fa-slack",
|
|
521
|
-
Slash: "fa-light fa-slash",
|
|
522
|
-
SlidersHorizontal: "fa-light fa-sliders",
|
|
523
|
-
Snowflake: "fa-light fa-snowflake",
|
|
524
|
-
SolarPanel: "fa-light fa-solar-panel",
|
|
525
|
-
Spade: "fa-light fa-spade",
|
|
526
|
-
Sparkle: "fa-light fa-sparkle",
|
|
527
|
-
Sparkles: "fa-light fa-sparkles",
|
|
528
|
-
Speaker: "fa-light fa-speaker",
|
|
529
|
-
SpellCheck: "fa-light fa-spell-check",
|
|
530
|
-
Split: "fa-light fa-split",
|
|
531
|
-
SprayCan: "fa-light fa-spray-can",
|
|
532
|
-
Square: "fa-light fa-square",
|
|
533
|
-
SquareArrowDown: "fa-light fa-square-arrow-down",
|
|
534
|
-
SquareArrowDownLeft: "fa-light fa-square-arrow-down-left",
|
|
535
|
-
SquareArrowDownRight: "fa-light fa-square-arrow-down-right",
|
|
536
|
-
SquareArrowLeft: "fa-light fa-square-arrow-left",
|
|
537
|
-
SquareArrowRight: "fa-light fa-square-arrow-right",
|
|
538
|
-
SquareArrowUp: "fa-light fa-square-arrow-up",
|
|
539
|
-
SquareArrowUpLeft: "fa-light fa-square-arrow-up-left",
|
|
540
|
-
SquareArrowUpRight: "fa-light fa-square-arrow-up-right",
|
|
541
|
-
SquareCheck: "fa-light fa-square-check",
|
|
542
|
-
SquareChevronDown: "fa-light fa-square-chevron-down",
|
|
543
|
-
SquareChevronLeft: "fa-light fa-square-chevron-left",
|
|
544
|
-
SquareChevronRight: "fa-light fa-square-chevron-right",
|
|
545
|
-
SquareChevronUp: "fa-light fa-square-chevron-up",
|
|
546
|
-
SquareCode: "fa-light fa-square-code",
|
|
547
|
-
SquareDashed: "fa-light fa-square-dashed",
|
|
548
|
-
SquareDivide: "fa-light fa-square-divide",
|
|
549
|
-
SquareKanban: "fa-light fa-square-kanban",
|
|
550
|
-
SquareM: "fa-light fa-square-m",
|
|
551
|
-
SquareMinus: "fa-light fa-square-minus",
|
|
552
|
-
SquareParking: "fa-light fa-square-parking",
|
|
553
|
-
SquarePen: "fa-light fa-square-pen",
|
|
554
|
-
SquarePlus: "fa-light fa-square-plus",
|
|
555
|
-
SquareStar: "fa-light fa-square-star",
|
|
556
|
-
SquareTerminal: "fa-light fa-square-terminal",
|
|
557
|
-
SquareUser: "fa-light fa-square-user",
|
|
558
|
-
SquareX: "fa-light fa-square-x",
|
|
559
|
-
Squirrel: "fa-light fa-squirrel",
|
|
560
|
-
Stamp: "fa-light fa-stamp",
|
|
561
|
-
Star: "fa-light fa-star",
|
|
562
|
-
StarHalf: "fa-light fa-star-half",
|
|
563
|
-
Stethoscope: "fa-light fa-stethoscope",
|
|
564
|
-
Store: "fa-light fa-store",
|
|
565
|
-
Strikethrough: "fa-light fa-strikethrough",
|
|
566
|
-
Subscript: "fa-light fa-subscript",
|
|
567
|
-
Sun: "fa-light fa-sun",
|
|
568
|
-
Sunrise: "fa-light fa-sunrise",
|
|
569
|
-
Sunset: "fa-light fa-sunset",
|
|
570
|
-
Superscript: "fa-light fa-superscript",
|
|
571
|
-
Sword: "fa-light fa-sword",
|
|
572
|
-
Swords: "fa-light fa-swords",
|
|
573
|
-
Syringe: "fa-light fa-syringe",
|
|
574
|
-
Table: "fa-light fa-table",
|
|
575
|
-
TableCellsMerge: "fa-light fa-table-cells-merge",
|
|
576
|
-
TableCellsSplit: "fa-light fa-table-cells-split",
|
|
577
|
-
Tablet: "fa-light fa-tablet",
|
|
578
|
-
Tablets: "fa-light fa-tablets",
|
|
579
|
-
Tag: "fa-light fa-tag",
|
|
580
|
-
Tags: "fa-light fa-tags",
|
|
581
|
-
Telescope: "fa-light fa-telescope",
|
|
582
|
-
Tent: "fa-light fa-tent",
|
|
583
|
-
Terminal: "fa-light fa-terminal",
|
|
584
|
-
Thermometer: "fa-light fa-thermometer",
|
|
585
|
-
ThumbsDown: "fa-light fa-thumbs-down",
|
|
586
|
-
ThumbsUp: "fa-light fa-thumbs-up",
|
|
587
|
-
Ticket: "fa-light fa-ticket",
|
|
588
|
-
Tickets: "fa-light fa-tickets",
|
|
589
|
-
Timer: "fa-light fa-timer",
|
|
590
|
-
Toilet: "fa-light fa-toilet",
|
|
591
|
-
Tornado: "fa-light fa-tornado",
|
|
592
|
-
TowerControl: "fa-light fa-tower-control",
|
|
593
|
-
Tractor: "fa-light fa-tractor",
|
|
594
|
-
TrafficCone: "fa-light fa-traffic-cone",
|
|
595
|
-
TrainTrack: "fa-light fa-train-track",
|
|
596
|
-
Transgender: "fa-light fa-transgender",
|
|
597
|
-
Trash: "fa-light fa-trash",
|
|
598
|
-
Trash2: "fa-light fa-trash-can",
|
|
599
|
-
TreeDeciduous: "fa-light fa-tree-deciduous",
|
|
600
|
-
TreePalm: "fa-light fa-tree-palm",
|
|
601
|
-
Trees: "fa-light fa-trees",
|
|
602
|
-
Trello: "fa-brands fa-trello",
|
|
603
|
-
TrendingDown: "fa-light fa-arrow-trend-down",
|
|
604
|
-
TrendingUp: "fa-light fa-arrow-trend-up",
|
|
605
|
-
Triangle: "fa-light fa-triangle",
|
|
606
|
-
TriangleAlert: "fa-light fa-triangle-exclamation",
|
|
607
|
-
Trophy: "fa-light fa-trophy",
|
|
608
|
-
Truck: "fa-light fa-truck",
|
|
609
|
-
Turntable: "fa-light fa-turntable",
|
|
610
|
-
Turtle: "fa-light fa-turtle",
|
|
611
|
-
Tv: "fa-light fa-tv",
|
|
612
|
-
Twitch: "fa-brands fa-twitch",
|
|
613
|
-
Twitter: "fa-brands fa-twitter",
|
|
614
|
-
Umbrella: "fa-light fa-umbrella",
|
|
615
|
-
Underline: "fa-light fa-underline",
|
|
616
|
-
UnlockKeyhole: "fa-light fa-unlock-keyhole",
|
|
617
|
-
Upload: "fa-light fa-upload",
|
|
618
|
-
Usb: "fa-brands fa-usb",
|
|
619
|
-
User: "fa-light fa-user",
|
|
620
|
-
UserCheck: "fa-light fa-user-check",
|
|
621
|
-
UserCircle: "fa-light fa-circle-user",
|
|
622
|
-
UserCog: "fa-light fa-user-gear",
|
|
623
|
-
UserLock: "fa-light fa-user-lock",
|
|
624
|
-
UserMinus: "fa-light fa-user-minus",
|
|
625
|
-
UserPen: "fa-light fa-user-pen",
|
|
626
|
-
UserPlus: "fa-light fa-user-plus",
|
|
627
|
-
UserRound: "fa-light fa-user",
|
|
628
|
-
Users: "fa-light fa-users",
|
|
629
|
-
UsersRound: "fa-light fa-user-group",
|
|
630
|
-
Utensils: "fa-light fa-utensils",
|
|
631
|
-
UtilityPole: "fa-light fa-utility-pole",
|
|
632
|
-
Van: "fa-light fa-van",
|
|
633
|
-
Vault: "fa-light fa-vault",
|
|
634
|
-
Venus: "fa-light fa-venus",
|
|
635
|
-
Video: "fa-light fa-video",
|
|
636
|
-
Voicemail: "fa-light fa-voicemail",
|
|
637
|
-
Volleyball: "fa-light fa-volleyball",
|
|
638
|
-
Volume: "fa-light fa-volume",
|
|
639
|
-
VolumeOff: "fa-light fa-volume-off",
|
|
640
|
-
Wallet: "fa-light fa-wallet",
|
|
641
|
-
Wand: "fa-light fa-wand",
|
|
642
|
-
WandSparkles: "fa-light fa-wand-sparkles",
|
|
643
|
-
Warehouse: "fa-light fa-warehouse",
|
|
644
|
-
WashingMachine: "fa-light fa-washing-machine",
|
|
645
|
-
Watch: "fa-light fa-watch",
|
|
646
|
-
Webhook: "fa-light fa-webhook",
|
|
647
|
-
Wheat: "fa-light fa-wheat",
|
|
648
|
-
Wifi: "fa-light fa-wifi",
|
|
649
|
-
WifiOff: "fa-light fa-wifi-slash",
|
|
650
|
-
Wind: "fa-light fa-wind",
|
|
651
|
-
Worm: "fa-light fa-worm",
|
|
652
|
-
Wrench: "fa-light fa-wrench",
|
|
653
|
-
X: "fa-light fa-xmark",
|
|
654
|
-
Youtube: "fa-brands fa-youtube",
|
|
655
|
-
Zap: "fa-light fa-bolt"
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
// ../ui/src/custom/icon-shared.ts
|
|
659
|
-
var LUCIDE_FA_MAP = lucide_fa_map_default;
|
|
660
|
-
var FALLBACK_FA = "fa-light fa-shapes";
|
|
661
|
-
var FA_STYLE_CLASS = {
|
|
662
|
-
solid: "fa-solid",
|
|
663
|
-
regular: "fa-regular",
|
|
664
|
-
light: "fa-light",
|
|
665
|
-
duotone: "fa-duotone",
|
|
666
|
-
brands: "fa-brands"
|
|
667
|
-
};
|
|
668
|
-
var STYLE_CLASS_SET = new Set(Object.values(FA_STYLE_CLASS));
|
|
669
|
-
function isFaIcon(name) {
|
|
670
|
-
return typeof name === "string" && name.startsWith("fa-");
|
|
671
|
-
}
|
|
672
|
-
function toFaValue(name) {
|
|
673
|
-
if (!name) return FALLBACK_FA;
|
|
674
|
-
if (isFaIcon(name)) return name;
|
|
675
|
-
return LUCIDE_FA_MAP[name] ?? FALLBACK_FA;
|
|
676
|
-
}
|
|
677
|
-
function applyIconStyleOverride(value, override) {
|
|
678
|
-
if (!override) return value;
|
|
679
|
-
const tokens = value.split(/\s+/).filter(Boolean);
|
|
680
|
-
if (tokens.includes("fa-brands")) return value;
|
|
681
|
-
const overrideClass = FA_STYLE_CLASS[override];
|
|
682
|
-
let replaced = false;
|
|
683
|
-
const next = tokens.map((token) => {
|
|
684
|
-
if (STYLE_CLASS_SET.has(token)) {
|
|
685
|
-
replaced = true;
|
|
686
|
-
return overrideClass;
|
|
687
|
-
}
|
|
688
|
-
return token;
|
|
689
|
-
});
|
|
690
|
-
if (!replaced) next.unshift(overrideClass);
|
|
691
|
-
return next.join(" ");
|
|
692
|
-
}
|
|
693
|
-
var SIZE_TOKEN = /(?:^|\s)(?:size|h|w)-(\d+(?:\.\d+)?)\b/;
|
|
694
|
-
function faFontSize(className) {
|
|
695
|
-
const match = className?.match(SIZE_TOKEN);
|
|
696
|
-
if (!match) return 16;
|
|
697
|
-
const units = Number(match[1]);
|
|
698
|
-
return Number.isFinite(units) ? units * 4 : 16;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
// ../ui/src/custom/icon.tsx
|
|
702
|
-
import { jsx } from "react/jsx-runtime";
|
|
703
|
-
var IconStyleOverrideContext = createContext(
|
|
704
|
-
null
|
|
705
|
-
);
|
|
706
|
-
function FaIcon({
|
|
707
|
-
value,
|
|
708
|
-
className,
|
|
709
|
-
style
|
|
710
|
-
}) {
|
|
711
|
-
const override = useContext(IconStyleOverrideContext);
|
|
712
|
-
const resolved = applyIconStyleOverride(value, override);
|
|
713
|
-
return /* @__PURE__ */ jsx(
|
|
714
|
-
"i",
|
|
715
|
-
{
|
|
716
|
-
className: cn(resolved, "inline-block leading-none", className),
|
|
717
|
-
style: { fontSize: faFontSize(className), ...style },
|
|
718
|
-
"aria-hidden": "true"
|
|
719
|
-
}
|
|
720
|
-
);
|
|
721
|
-
}
|
|
722
|
-
function Icon({ name, className, style }) {
|
|
723
|
-
return /* @__PURE__ */ jsx(FaIcon, { value: toFaValue(name), className, style });
|
|
724
|
-
}
|
|
24
|
+
import { Icon as FaIcon5 } from "./icon.js";
|
|
725
25
|
|
|
726
26
|
// src/_impl/spinner.tsx
|
|
727
|
-
import { jsx
|
|
27
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
728
28
|
function Spinner({ className, ...props }) {
|
|
729
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ jsx("span", { role: "status", "aria-label": "Loading", ...props, children: /* @__PURE__ */ jsxs(
|
|
730
30
|
"svg",
|
|
731
31
|
{
|
|
732
32
|
viewBox: "0 0 24 24",
|
|
@@ -738,7 +38,7 @@ function Spinner({ className, ...props }) {
|
|
|
738
38
|
className
|
|
739
39
|
),
|
|
740
40
|
children: [
|
|
741
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ jsx(
|
|
742
42
|
"circle",
|
|
743
43
|
{
|
|
744
44
|
cx: "12",
|
|
@@ -749,7 +49,7 @@ function Spinner({ className, ...props }) {
|
|
|
749
49
|
className: "opacity-20"
|
|
750
50
|
}
|
|
751
51
|
),
|
|
752
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ jsx(
|
|
753
53
|
"path",
|
|
754
54
|
{
|
|
755
55
|
d: "M21 12a9 9 0 0 0-9-9",
|
|
@@ -765,14 +65,16 @@ function Spinner({ className, ...props }) {
|
|
|
765
65
|
|
|
766
66
|
// ../ui/src/shadcn/command.tsx
|
|
767
67
|
import { Command as CommandPrimitive } from "cmdk";
|
|
68
|
+
import { Icon as FaIcon2 } from "./icon.js";
|
|
768
69
|
|
|
769
70
|
// ../ui/src/shadcn/dialog.tsx
|
|
770
71
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
72
|
+
import { Icon as FaIcon } from "./icon.js";
|
|
771
73
|
|
|
772
74
|
// ../ui/src/shadcn/button.tsx
|
|
773
75
|
import { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
774
76
|
import { cva } from "class-variance-authority";
|
|
775
|
-
import { jsx as
|
|
77
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
776
78
|
var buttonVariants = cva(
|
|
777
79
|
"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
778
80
|
{
|
|
@@ -809,7 +111,7 @@ function Button({
|
|
|
809
111
|
size = "default",
|
|
810
112
|
...props
|
|
811
113
|
}) {
|
|
812
|
-
return /* @__PURE__ */
|
|
114
|
+
return /* @__PURE__ */ jsx2(
|
|
813
115
|
ButtonPrimitive,
|
|
814
116
|
{
|
|
815
117
|
"data-slot": "button",
|
|
@@ -822,15 +124,15 @@ function Button({
|
|
|
822
124
|
}
|
|
823
125
|
|
|
824
126
|
// ../ui/src/shadcn/dialog.tsx
|
|
825
|
-
import { jsx as
|
|
127
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
826
128
|
|
|
827
129
|
// ../ui/src/shadcn/command.tsx
|
|
828
|
-
import { jsx as
|
|
130
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
829
131
|
function Command({
|
|
830
132
|
className,
|
|
831
133
|
...props
|
|
832
134
|
}) {
|
|
833
|
-
return /* @__PURE__ */
|
|
135
|
+
return /* @__PURE__ */ jsx4(
|
|
834
136
|
CommandPrimitive,
|
|
835
137
|
{
|
|
836
138
|
"data-slot": "command",
|
|
@@ -852,14 +154,14 @@ function CommandInput({
|
|
|
852
154
|
"data-slot": "command-input-wrapper",
|
|
853
155
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
854
156
|
children: [
|
|
855
|
-
/* @__PURE__ */
|
|
856
|
-
|
|
157
|
+
/* @__PURE__ */ jsx4(
|
|
158
|
+
FaIcon2,
|
|
857
159
|
{
|
|
858
160
|
name: "fa-light fa-magnifying-glass",
|
|
859
161
|
className: "size-4 shrink-0 opacity-50"
|
|
860
162
|
}
|
|
861
163
|
),
|
|
862
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ jsx4(
|
|
863
165
|
CommandPrimitive.Input,
|
|
864
166
|
{
|
|
865
167
|
"data-slot": "command-input",
|
|
@@ -878,7 +180,7 @@ function CommandList({
|
|
|
878
180
|
className,
|
|
879
181
|
...props
|
|
880
182
|
}) {
|
|
881
|
-
return /* @__PURE__ */
|
|
183
|
+
return /* @__PURE__ */ jsx4(
|
|
882
184
|
CommandPrimitive.List,
|
|
883
185
|
{
|
|
884
186
|
"data-slot": "command-list",
|
|
@@ -893,7 +195,7 @@ function CommandList({
|
|
|
893
195
|
function CommandEmpty({
|
|
894
196
|
...props
|
|
895
197
|
}) {
|
|
896
|
-
return /* @__PURE__ */
|
|
198
|
+
return /* @__PURE__ */ jsx4(
|
|
897
199
|
CommandPrimitive.Empty,
|
|
898
200
|
{
|
|
899
201
|
"data-slot": "command-empty",
|
|
@@ -906,7 +208,7 @@ function CommandGroup({
|
|
|
906
208
|
className,
|
|
907
209
|
...props
|
|
908
210
|
}) {
|
|
909
|
-
return /* @__PURE__ */
|
|
211
|
+
return /* @__PURE__ */ jsx4(
|
|
910
212
|
CommandPrimitive.Group,
|
|
911
213
|
{
|
|
912
214
|
"data-slot": "command-group",
|
|
@@ -922,7 +224,7 @@ function CommandSeparator({
|
|
|
922
224
|
className,
|
|
923
225
|
...props
|
|
924
226
|
}) {
|
|
925
|
-
return /* @__PURE__ */
|
|
227
|
+
return /* @__PURE__ */ jsx4(
|
|
926
228
|
CommandPrimitive.Separator,
|
|
927
229
|
{
|
|
928
230
|
"data-slot": "command-separator",
|
|
@@ -935,7 +237,7 @@ function CommandItem({
|
|
|
935
237
|
className,
|
|
936
238
|
...props
|
|
937
239
|
}) {
|
|
938
|
-
return /* @__PURE__ */
|
|
240
|
+
return /* @__PURE__ */ jsx4(
|
|
939
241
|
CommandPrimitive.Item,
|
|
940
242
|
{
|
|
941
243
|
"data-slot": "command-item",
|
|
@@ -949,13 +251,16 @@ function CommandItem({
|
|
|
949
251
|
}
|
|
950
252
|
|
|
951
253
|
// ../ui/src/shadcn/dropdown-menu.tsx
|
|
254
|
+
import * as React from "react";
|
|
952
255
|
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
953
|
-
import {
|
|
256
|
+
import { Icon as FaIcon3 } from "./icon.js";
|
|
257
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
258
|
+
var DropdownMenuGroupContext = React.createContext(false);
|
|
954
259
|
function DropdownMenu({ ...props }) {
|
|
955
|
-
return /* @__PURE__ */
|
|
260
|
+
return /* @__PURE__ */ jsx5(MenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
956
261
|
}
|
|
957
262
|
function DropdownMenuTrigger({ ...props }) {
|
|
958
|
-
return /* @__PURE__ */
|
|
263
|
+
return /* @__PURE__ */ jsx5(MenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
959
264
|
}
|
|
960
265
|
function DropdownMenuContent({
|
|
961
266
|
className,
|
|
@@ -965,7 +270,7 @@ function DropdownMenuContent({
|
|
|
965
270
|
sideOffset = 4,
|
|
966
271
|
...props
|
|
967
272
|
}) {
|
|
968
|
-
return /* @__PURE__ */
|
|
273
|
+
return /* @__PURE__ */ jsx5(MenuPrimitive.Portal, { children: /* @__PURE__ */ jsx5(
|
|
969
274
|
MenuPrimitive.Positioner,
|
|
970
275
|
{
|
|
971
276
|
align,
|
|
@@ -973,7 +278,7 @@ function DropdownMenuContent({
|
|
|
973
278
|
side,
|
|
974
279
|
sideOffset,
|
|
975
280
|
className: "isolate z-50 outline-none",
|
|
976
|
-
children: /* @__PURE__ */
|
|
281
|
+
children: /* @__PURE__ */ jsx5(
|
|
977
282
|
MenuPrimitive.Popup,
|
|
978
283
|
{
|
|
979
284
|
"data-slot": "dropdown-menu-content",
|
|
@@ -993,7 +298,7 @@ function DropdownMenuItem({
|
|
|
993
298
|
variant = "default",
|
|
994
299
|
...props
|
|
995
300
|
}) {
|
|
996
|
-
return /* @__PURE__ */
|
|
301
|
+
return /* @__PURE__ */ jsx5(
|
|
997
302
|
MenuPrimitive.Item,
|
|
998
303
|
{
|
|
999
304
|
"data-slot": "dropdown-menu-item",
|
|
@@ -1009,28 +314,28 @@ function DropdownMenuItem({
|
|
|
1009
314
|
}
|
|
1010
315
|
|
|
1011
316
|
// ../ui/src/shadcn/hover-card.tsx
|
|
1012
|
-
import * as
|
|
317
|
+
import * as React2 from "react";
|
|
1013
318
|
import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card";
|
|
1014
|
-
import { jsx as
|
|
1015
|
-
var HoverCardDelayContext =
|
|
319
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
320
|
+
var HoverCardDelayContext = React2.createContext({});
|
|
1016
321
|
function HoverCard({
|
|
1017
322
|
openDelay,
|
|
1018
323
|
closeDelay,
|
|
1019
324
|
...props
|
|
1020
325
|
}) {
|
|
1021
|
-
const delays =
|
|
326
|
+
const delays = React2.useMemo(
|
|
1022
327
|
() => ({ openDelay, closeDelay }),
|
|
1023
328
|
[openDelay, closeDelay]
|
|
1024
329
|
);
|
|
1025
|
-
return /* @__PURE__ */
|
|
330
|
+
return /* @__PURE__ */ jsx6(HoverCardDelayContext.Provider, { value: delays, children: /* @__PURE__ */ jsx6(PreviewCardPrimitive.Root, { "data-slot": "hover-card", ...props }) });
|
|
1026
331
|
}
|
|
1027
332
|
function HoverCardTrigger({
|
|
1028
333
|
delay,
|
|
1029
334
|
closeDelay,
|
|
1030
335
|
...props
|
|
1031
336
|
}) {
|
|
1032
|
-
const delays =
|
|
1033
|
-
return /* @__PURE__ */
|
|
337
|
+
const delays = React2.useContext(HoverCardDelayContext);
|
|
338
|
+
return /* @__PURE__ */ jsx6(
|
|
1034
339
|
PreviewCardPrimitive.Trigger,
|
|
1035
340
|
{
|
|
1036
341
|
"data-slot": "hover-card-trigger",
|
|
@@ -1048,7 +353,7 @@ function HoverCardContent({
|
|
|
1048
353
|
sideOffset = 4,
|
|
1049
354
|
...props
|
|
1050
355
|
}) {
|
|
1051
|
-
return /* @__PURE__ */
|
|
356
|
+
return /* @__PURE__ */ jsx6(PreviewCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsx6(
|
|
1052
357
|
PreviewCardPrimitive.Positioner,
|
|
1053
358
|
{
|
|
1054
359
|
align,
|
|
@@ -1056,7 +361,7 @@ function HoverCardContent({
|
|
|
1056
361
|
side,
|
|
1057
362
|
sideOffset,
|
|
1058
363
|
className: "isolate z-50",
|
|
1059
|
-
children: /* @__PURE__ */
|
|
364
|
+
children: /* @__PURE__ */ jsx6(
|
|
1060
365
|
PreviewCardPrimitive.Popup,
|
|
1061
366
|
{
|
|
1062
367
|
"data-slot": "hover-card-content",
|
|
@@ -1075,12 +380,12 @@ function HoverCardContent({
|
|
|
1075
380
|
import { cva as cva2 } from "class-variance-authority";
|
|
1076
381
|
|
|
1077
382
|
// ../ui/src/shadcn/input.tsx
|
|
1078
|
-
import { jsx as
|
|
383
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
1079
384
|
|
|
1080
385
|
// ../ui/src/shadcn/textarea.tsx
|
|
1081
|
-
import { jsx as
|
|
386
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
1082
387
|
function Textarea({ className, ...props }) {
|
|
1083
|
-
return /* @__PURE__ */
|
|
388
|
+
return /* @__PURE__ */ jsx8(
|
|
1084
389
|
"textarea",
|
|
1085
390
|
{
|
|
1086
391
|
"data-slot": "textarea",
|
|
@@ -1094,9 +399,9 @@ function Textarea({ className, ...props }) {
|
|
|
1094
399
|
}
|
|
1095
400
|
|
|
1096
401
|
// ../ui/src/shadcn/input-group.tsx
|
|
1097
|
-
import { jsx as
|
|
402
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1098
403
|
function InputGroup({ className, ...props }) {
|
|
1099
|
-
return /* @__PURE__ */
|
|
404
|
+
return /* @__PURE__ */ jsx9(
|
|
1100
405
|
"div",
|
|
1101
406
|
{
|
|
1102
407
|
"data-slot": "input-group",
|
|
@@ -1140,7 +445,7 @@ function InputGroupAddon({
|
|
|
1140
445
|
align = "inline-start",
|
|
1141
446
|
...props
|
|
1142
447
|
}) {
|
|
1143
|
-
return /* @__PURE__ */
|
|
448
|
+
return /* @__PURE__ */ jsx9(
|
|
1144
449
|
"div",
|
|
1145
450
|
{
|
|
1146
451
|
role: "group",
|
|
@@ -1180,7 +485,7 @@ function InputGroupButton({
|
|
|
1180
485
|
size = "xs",
|
|
1181
486
|
...props
|
|
1182
487
|
}) {
|
|
1183
|
-
return /* @__PURE__ */
|
|
488
|
+
return /* @__PURE__ */ jsx9(
|
|
1184
489
|
Button,
|
|
1185
490
|
{
|
|
1186
491
|
type,
|
|
@@ -1195,7 +500,7 @@ function InputGroupTextarea({
|
|
|
1195
500
|
className,
|
|
1196
501
|
...props
|
|
1197
502
|
}) {
|
|
1198
|
-
return /* @__PURE__ */
|
|
503
|
+
return /* @__PURE__ */ jsx9(
|
|
1199
504
|
Textarea,
|
|
1200
505
|
{
|
|
1201
506
|
"data-slot": "input-group-control",
|
|
@@ -1209,12 +514,13 @@ function InputGroupTextarea({
|
|
|
1209
514
|
}
|
|
1210
515
|
|
|
1211
516
|
// ../ui/src/shadcn/select.tsx
|
|
1212
|
-
import * as
|
|
517
|
+
import * as React3 from "react";
|
|
1213
518
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
1214
|
-
import {
|
|
519
|
+
import { Icon as FaIcon4 } from "./icon.js";
|
|
520
|
+
import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1215
521
|
function collectOptions(node, options) {
|
|
1216
|
-
|
|
1217
|
-
if (!
|
|
522
|
+
React3.Children.forEach(node, (child) => {
|
|
523
|
+
if (!React3.isValidElement(
|
|
1218
524
|
child
|
|
1219
525
|
)) {
|
|
1220
526
|
return;
|
|
@@ -1238,10 +544,10 @@ function Select({
|
|
|
1238
544
|
items,
|
|
1239
545
|
...props
|
|
1240
546
|
}) {
|
|
1241
|
-
return /* @__PURE__ */
|
|
547
|
+
return /* @__PURE__ */ jsx10(SelectPrimitive.Root, { items: items ?? deriveItems(children), ...props, children });
|
|
1242
548
|
}
|
|
1243
549
|
function SelectValue({ className, ...props }) {
|
|
1244
|
-
return /* @__PURE__ */
|
|
550
|
+
return /* @__PURE__ */ jsx10(
|
|
1245
551
|
SelectPrimitive.Value,
|
|
1246
552
|
{
|
|
1247
553
|
"data-slot": "select-value",
|
|
@@ -1268,11 +574,11 @@ function SelectTrigger({
|
|
|
1268
574
|
...props,
|
|
1269
575
|
children: [
|
|
1270
576
|
children,
|
|
1271
|
-
/* @__PURE__ */
|
|
577
|
+
/* @__PURE__ */ jsx10(
|
|
1272
578
|
SelectPrimitive.Icon,
|
|
1273
579
|
{
|
|
1274
|
-
render: /* @__PURE__ */
|
|
1275
|
-
|
|
580
|
+
render: /* @__PURE__ */ jsx10(
|
|
581
|
+
FaIcon4,
|
|
1276
582
|
{
|
|
1277
583
|
name: "fa-light fa-chevron-down",
|
|
1278
584
|
className: "size-4 opacity-50"
|
|
@@ -1297,7 +603,7 @@ function SelectContent({
|
|
|
1297
603
|
alignItemWithTrigger = false,
|
|
1298
604
|
...props
|
|
1299
605
|
}) {
|
|
1300
|
-
return /* @__PURE__ */
|
|
606
|
+
return /* @__PURE__ */ jsx10(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx10(
|
|
1301
607
|
SelectPrimitive.Positioner,
|
|
1302
608
|
{
|
|
1303
609
|
side,
|
|
@@ -1316,9 +622,9 @@ function SelectContent({
|
|
|
1316
622
|
),
|
|
1317
623
|
...props,
|
|
1318
624
|
children: [
|
|
1319
|
-
/* @__PURE__ */
|
|
1320
|
-
/* @__PURE__ */
|
|
1321
|
-
/* @__PURE__ */
|
|
625
|
+
/* @__PURE__ */ jsx10(SelectScrollUpButton, {}),
|
|
626
|
+
/* @__PURE__ */ jsx10(SelectPrimitive.List, { children }),
|
|
627
|
+
/* @__PURE__ */ jsx10(SelectScrollDownButton, {})
|
|
1322
628
|
]
|
|
1323
629
|
}
|
|
1324
630
|
)
|
|
@@ -1340,18 +646,18 @@ function SelectItem({
|
|
|
1340
646
|
),
|
|
1341
647
|
...props,
|
|
1342
648
|
children: [
|
|
1343
|
-
/* @__PURE__ */
|
|
1344
|
-
/* @__PURE__ */
|
|
649
|
+
/* @__PURE__ */ jsx10(SelectPrimitive.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
|
|
650
|
+
/* @__PURE__ */ jsx10(
|
|
1345
651
|
SelectPrimitive.ItemIndicator,
|
|
1346
652
|
{
|
|
1347
|
-
render: /* @__PURE__ */
|
|
653
|
+
render: /* @__PURE__ */ jsx10(
|
|
1348
654
|
"span",
|
|
1349
655
|
{
|
|
1350
656
|
"data-slot": "select-item-indicator",
|
|
1351
657
|
className: "absolute right-2 flex size-3.5 items-center justify-center"
|
|
1352
658
|
}
|
|
1353
659
|
),
|
|
1354
|
-
children: /* @__PURE__ */
|
|
660
|
+
children: /* @__PURE__ */ jsx10(FaIcon4, { name: "fa-light fa-check", className: "size-4" })
|
|
1355
661
|
}
|
|
1356
662
|
)
|
|
1357
663
|
]
|
|
@@ -1362,7 +668,7 @@ function SelectScrollUpButton({
|
|
|
1362
668
|
className,
|
|
1363
669
|
...props
|
|
1364
670
|
}) {
|
|
1365
|
-
return /* @__PURE__ */
|
|
671
|
+
return /* @__PURE__ */ jsx10(
|
|
1366
672
|
SelectPrimitive.ScrollUpArrow,
|
|
1367
673
|
{
|
|
1368
674
|
"data-slot": "select-scroll-up-button",
|
|
@@ -1371,7 +677,7 @@ function SelectScrollUpButton({
|
|
|
1371
677
|
className
|
|
1372
678
|
),
|
|
1373
679
|
...props,
|
|
1374
|
-
children: /* @__PURE__ */
|
|
680
|
+
children: /* @__PURE__ */ jsx10(FaIcon4, { name: "fa-light fa-chevron-up", className: "size-4" })
|
|
1375
681
|
}
|
|
1376
682
|
);
|
|
1377
683
|
}
|
|
@@ -1379,7 +685,7 @@ function SelectScrollDownButton({
|
|
|
1379
685
|
className,
|
|
1380
686
|
...props
|
|
1381
687
|
}) {
|
|
1382
|
-
return /* @__PURE__ */
|
|
688
|
+
return /* @__PURE__ */ jsx10(
|
|
1383
689
|
SelectPrimitive.ScrollDownArrow,
|
|
1384
690
|
{
|
|
1385
691
|
"data-slot": "select-scroll-down-button",
|
|
@@ -1388,19 +694,19 @@ function SelectScrollDownButton({
|
|
|
1388
694
|
className
|
|
1389
695
|
),
|
|
1390
696
|
...props,
|
|
1391
|
-
children: /* @__PURE__ */
|
|
697
|
+
children: /* @__PURE__ */ jsx10(FaIcon4, { name: "fa-light fa-chevron-down", className: "size-4" })
|
|
1392
698
|
}
|
|
1393
699
|
);
|
|
1394
700
|
}
|
|
1395
701
|
|
|
1396
702
|
// ../ui/src/shadcn/tooltip.tsx
|
|
1397
703
|
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
1398
|
-
import { jsx as
|
|
704
|
+
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1399
705
|
function Tooltip({ ...props }) {
|
|
1400
|
-
return /* @__PURE__ */
|
|
706
|
+
return /* @__PURE__ */ jsx11(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props });
|
|
1401
707
|
}
|
|
1402
708
|
function TooltipTrigger({ ...props }) {
|
|
1403
|
-
return /* @__PURE__ */
|
|
709
|
+
return /* @__PURE__ */ jsx11(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
1404
710
|
}
|
|
1405
711
|
function TooltipContent({
|
|
1406
712
|
className,
|
|
@@ -1411,7 +717,7 @@ function TooltipContent({
|
|
|
1411
717
|
children,
|
|
1412
718
|
...props
|
|
1413
719
|
}) {
|
|
1414
|
-
return /* @__PURE__ */
|
|
720
|
+
return /* @__PURE__ */ jsx11(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx11(
|
|
1415
721
|
TooltipPrimitive.Positioner,
|
|
1416
722
|
{
|
|
1417
723
|
side,
|
|
@@ -1430,7 +736,7 @@ function TooltipContent({
|
|
|
1430
736
|
...props,
|
|
1431
737
|
children: [
|
|
1432
738
|
children,
|
|
1433
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ jsx11(TooltipPrimitive.Arrow, { className: "bg-foreground fill-foreground z-50 size-2.5 rotate-45 rounded-[2px] data-[side=bottom]:-top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-1" })
|
|
1434
740
|
]
|
|
1435
741
|
}
|
|
1436
742
|
)
|
|
@@ -1439,7 +745,7 @@ function TooltipContent({
|
|
|
1439
745
|
}
|
|
1440
746
|
|
|
1441
747
|
// ../ui/src/ai-elements/prompt-input.tsx
|
|
1442
|
-
import { Fragment, jsx as
|
|
748
|
+
import { Fragment, jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1443
749
|
var convertBlobUrlToDataUrl = async (url) => {
|
|
1444
750
|
try {
|
|
1445
751
|
const response = await fetch(url);
|
|
@@ -1625,7 +931,7 @@ var PromptInputProvider = ({
|
|
|
1625
931
|
}),
|
|
1626
932
|
[textInput, clearInput, attachments, __registerFileInput]
|
|
1627
933
|
);
|
|
1628
|
-
return /* @__PURE__ */
|
|
934
|
+
return /* @__PURE__ */ jsx12(PromptInputController.Provider, { value: controller, children: /* @__PURE__ */ jsx12(ProviderAttachmentsContext.Provider, { value: attachments, children }) });
|
|
1629
935
|
};
|
|
1630
936
|
var LocalAttachmentsContext = createContext3(null);
|
|
1631
937
|
var usePromptInputAttachments = () => {
|
|
@@ -1661,7 +967,7 @@ var PromptInputActionAddAttachments = ({
|
|
|
1661
967
|
// closeOnClick={false} preserves the radix-era preventDefault behavior:
|
|
1662
968
|
// the menu stays open while the file dialog comes up.
|
|
1663
969
|
/* @__PURE__ */ jsxs7(DropdownMenuItem, { ...props, closeOnClick: false, onClick: handleClick, children: [
|
|
1664
|
-
/* @__PURE__ */
|
|
970
|
+
/* @__PURE__ */ jsx12(FaIcon5, { name: "fa-light fa-image", className: "mr-2 size-4" }),
|
|
1665
971
|
" ",
|
|
1666
972
|
label
|
|
1667
973
|
] })
|
|
@@ -1694,7 +1000,7 @@ var PromptInputActionAddScreenshot = ({
|
|
|
1694
1000
|
[onClick, attachments]
|
|
1695
1001
|
);
|
|
1696
1002
|
return /* @__PURE__ */ jsxs7(DropdownMenuItem, { ...props, onClick: handleClick, children: [
|
|
1697
|
-
/* @__PURE__ */
|
|
1003
|
+
/* @__PURE__ */ jsx12(FaIcon5, { name: "fa-light fa-display", className: "mr-2 size-4" }),
|
|
1698
1004
|
label
|
|
1699
1005
|
] });
|
|
1700
1006
|
};
|
|
@@ -2014,7 +1320,7 @@ var PromptInput = ({
|
|
|
2014
1320
|
[usingProvider, controller, files, onSubmit, clear]
|
|
2015
1321
|
);
|
|
2016
1322
|
const inner = /* @__PURE__ */ jsxs7(Fragment, { children: [
|
|
2017
|
-
/* @__PURE__ */
|
|
1323
|
+
/* @__PURE__ */ jsx12(
|
|
2018
1324
|
"input",
|
|
2019
1325
|
{
|
|
2020
1326
|
accept,
|
|
@@ -2027,24 +1333,24 @@ var PromptInput = ({
|
|
|
2027
1333
|
type: "file"
|
|
2028
1334
|
}
|
|
2029
1335
|
),
|
|
2030
|
-
/* @__PURE__ */
|
|
1336
|
+
/* @__PURE__ */ jsx12(
|
|
2031
1337
|
"form",
|
|
2032
1338
|
{
|
|
2033
1339
|
className: cn("w-full", className),
|
|
2034
1340
|
onSubmit: handleSubmit,
|
|
2035
1341
|
ref: formRef,
|
|
2036
1342
|
...props,
|
|
2037
|
-
children: /* @__PURE__ */
|
|
1343
|
+
children: /* @__PURE__ */ jsx12(InputGroup, { className: cn("overflow-hidden", inputGroupClassName), children })
|
|
2038
1344
|
}
|
|
2039
1345
|
)
|
|
2040
1346
|
] });
|
|
2041
|
-
const withReferencedSources = /* @__PURE__ */
|
|
2042
|
-
return /* @__PURE__ */
|
|
1347
|
+
const withReferencedSources = /* @__PURE__ */ jsx12(LocalReferencedSourcesContext.Provider, { value: refsCtx, children: inner });
|
|
1348
|
+
return /* @__PURE__ */ jsx12(LocalAttachmentsContext.Provider, { value: attachmentsCtx, children: withReferencedSources });
|
|
2043
1349
|
};
|
|
2044
1350
|
var PromptInputBody = ({
|
|
2045
1351
|
className,
|
|
2046
1352
|
...props
|
|
2047
|
-
}) => /* @__PURE__ */
|
|
1353
|
+
}) => /* @__PURE__ */ jsx12("div", { className: cn("contents", className), ...props });
|
|
2048
1354
|
var PromptInputTextarea = ({
|
|
2049
1355
|
onChange,
|
|
2050
1356
|
onKeyDown,
|
|
@@ -2121,7 +1427,7 @@ var PromptInputTextarea = ({
|
|
|
2121
1427
|
} : {
|
|
2122
1428
|
onChange
|
|
2123
1429
|
};
|
|
2124
|
-
return /* @__PURE__ */
|
|
1430
|
+
return /* @__PURE__ */ jsx12(
|
|
2125
1431
|
InputGroupTextarea,
|
|
2126
1432
|
{
|
|
2127
1433
|
className: cn("field-sizing-content max-h-48 min-h-16", className),
|
|
@@ -2139,7 +1445,7 @@ var PromptInputTextarea = ({
|
|
|
2139
1445
|
var PromptInputHeader = ({
|
|
2140
1446
|
className,
|
|
2141
1447
|
...props
|
|
2142
|
-
}) => /* @__PURE__ */
|
|
1448
|
+
}) => /* @__PURE__ */ jsx12(
|
|
2143
1449
|
InputGroupAddon,
|
|
2144
1450
|
{
|
|
2145
1451
|
align: "block-end",
|
|
@@ -2150,7 +1456,7 @@ var PromptInputHeader = ({
|
|
|
2150
1456
|
var PromptInputFooter = ({
|
|
2151
1457
|
className,
|
|
2152
1458
|
...props
|
|
2153
|
-
}) => /* @__PURE__ */
|
|
1459
|
+
}) => /* @__PURE__ */ jsx12(
|
|
2154
1460
|
InputGroupAddon,
|
|
2155
1461
|
{
|
|
2156
1462
|
align: "block-end",
|
|
@@ -2161,7 +1467,7 @@ var PromptInputFooter = ({
|
|
|
2161
1467
|
var PromptInputTools = ({
|
|
2162
1468
|
className,
|
|
2163
1469
|
...props
|
|
2164
|
-
}) => /* @__PURE__ */
|
|
1470
|
+
}) => /* @__PURE__ */ jsx12(
|
|
2165
1471
|
"div",
|
|
2166
1472
|
{
|
|
2167
1473
|
className: cn("flex min-w-0 items-center gap-1", className),
|
|
@@ -2176,7 +1482,7 @@ var PromptInputButton = ({
|
|
|
2176
1482
|
...props
|
|
2177
1483
|
}) => {
|
|
2178
1484
|
const newSize = size ?? (Children2.count(props.children) > 1 ? "sm" : "icon-sm");
|
|
2179
|
-
const button = /* @__PURE__ */
|
|
1485
|
+
const button = /* @__PURE__ */ jsx12(
|
|
2180
1486
|
InputGroupButton,
|
|
2181
1487
|
{
|
|
2182
1488
|
className: cn(className),
|
|
@@ -2193,33 +1499,33 @@ var PromptInputButton = ({
|
|
|
2193
1499
|
const shortcut = typeof tooltip === "string" ? void 0 : tooltip.shortcut;
|
|
2194
1500
|
const side = typeof tooltip === "string" ? "top" : tooltip.side ?? "top";
|
|
2195
1501
|
return /* @__PURE__ */ jsxs7(Tooltip, { children: [
|
|
2196
|
-
/* @__PURE__ */
|
|
1502
|
+
/* @__PURE__ */ jsx12(TooltipTrigger, { render: button }),
|
|
2197
1503
|
/* @__PURE__ */ jsxs7(TooltipContent, { side, children: [
|
|
2198
1504
|
tooltipContent,
|
|
2199
|
-
shortcut && /* @__PURE__ */
|
|
1505
|
+
shortcut && /* @__PURE__ */ jsx12("span", { className: "text-muted-foreground ml-2", children: shortcut })
|
|
2200
1506
|
] })
|
|
2201
1507
|
] });
|
|
2202
1508
|
};
|
|
2203
|
-
var PromptInputActionMenu = (props) => /* @__PURE__ */
|
|
1509
|
+
var PromptInputActionMenu = (props) => /* @__PURE__ */ jsx12(DropdownMenu, { ...props });
|
|
2204
1510
|
var PromptInputActionMenuTrigger = ({
|
|
2205
1511
|
className,
|
|
2206
1512
|
children,
|
|
2207
1513
|
...props
|
|
2208
|
-
}) => /* @__PURE__ */
|
|
1514
|
+
}) => /* @__PURE__ */ jsx12(
|
|
2209
1515
|
DropdownMenuTrigger,
|
|
2210
1516
|
{
|
|
2211
|
-
render: /* @__PURE__ */
|
|
2212
|
-
children: children ?? /* @__PURE__ */
|
|
1517
|
+
render: /* @__PURE__ */ jsx12(PromptInputButton, { className, ...props }),
|
|
1518
|
+
children: children ?? /* @__PURE__ */ jsx12(FaIcon5, { name: "fa-light fa-plus", className: "size-4" })
|
|
2213
1519
|
}
|
|
2214
1520
|
);
|
|
2215
1521
|
var PromptInputActionMenuContent = ({
|
|
2216
1522
|
className,
|
|
2217
1523
|
...props
|
|
2218
|
-
}) => /* @__PURE__ */
|
|
1524
|
+
}) => /* @__PURE__ */ jsx12(DropdownMenuContent, { align: "start", className: cn(className), ...props });
|
|
2219
1525
|
var PromptInputActionMenuItem = ({
|
|
2220
1526
|
className,
|
|
2221
1527
|
...props
|
|
2222
|
-
}) => /* @__PURE__ */
|
|
1528
|
+
}) => /* @__PURE__ */ jsx12(DropdownMenuItem, { className: cn(className), ...props });
|
|
2223
1529
|
var PromptInputSubmit = ({
|
|
2224
1530
|
className,
|
|
2225
1531
|
variant = "default",
|
|
@@ -2231,13 +1537,13 @@ var PromptInputSubmit = ({
|
|
|
2231
1537
|
...props
|
|
2232
1538
|
}) => {
|
|
2233
1539
|
const isGenerating = status === "submitted" || status === "streaming";
|
|
2234
|
-
let
|
|
1540
|
+
let Icon = /* @__PURE__ */ jsx12(FaIcon5, { name: "fa-light fa-arrow-turn-down-left", className: "size-4" });
|
|
2235
1541
|
if (status === "submitted") {
|
|
2236
|
-
|
|
1542
|
+
Icon = /* @__PURE__ */ jsx12(Spinner, {});
|
|
2237
1543
|
} else if (status === "streaming") {
|
|
2238
|
-
|
|
1544
|
+
Icon = /* @__PURE__ */ jsx12(FaIcon5, { name: "fa-light fa-square", className: "size-4" });
|
|
2239
1545
|
} else if (status === "error") {
|
|
2240
|
-
|
|
1546
|
+
Icon = /* @__PURE__ */ jsx12(FaIcon5, { name: "fa-light fa-xmark", className: "size-4" });
|
|
2241
1547
|
}
|
|
2242
1548
|
const handleClick = useCallback(
|
|
2243
1549
|
(e) => {
|
|
@@ -2250,7 +1556,7 @@ var PromptInputSubmit = ({
|
|
|
2250
1556
|
},
|
|
2251
1557
|
[isGenerating, onStop, onClick]
|
|
2252
1558
|
);
|
|
2253
|
-
return /* @__PURE__ */
|
|
1559
|
+
return /* @__PURE__ */ jsx12(
|
|
2254
1560
|
InputGroupButton,
|
|
2255
1561
|
{
|
|
2256
1562
|
"aria-label": isGenerating ? "Stop" : "Submit",
|
|
@@ -2260,15 +1566,15 @@ var PromptInputSubmit = ({
|
|
|
2260
1566
|
type: isGenerating && onStop ? "button" : "submit",
|
|
2261
1567
|
variant,
|
|
2262
1568
|
...props,
|
|
2263
|
-
children: children ??
|
|
1569
|
+
children: children ?? Icon
|
|
2264
1570
|
}
|
|
2265
1571
|
);
|
|
2266
1572
|
};
|
|
2267
|
-
var PromptInputSelect = (props) => /* @__PURE__ */
|
|
1573
|
+
var PromptInputSelect = (props) => /* @__PURE__ */ jsx12(Select, { ...props });
|
|
2268
1574
|
var PromptInputSelectTrigger = ({
|
|
2269
1575
|
className,
|
|
2270
1576
|
...props
|
|
2271
|
-
}) => /* @__PURE__ */
|
|
1577
|
+
}) => /* @__PURE__ */ jsx12(
|
|
2272
1578
|
SelectTrigger,
|
|
2273
1579
|
{
|
|
2274
1580
|
className: cn(
|
|
@@ -2282,37 +1588,37 @@ var PromptInputSelectTrigger = ({
|
|
|
2282
1588
|
var PromptInputSelectContent = ({
|
|
2283
1589
|
className,
|
|
2284
1590
|
...props
|
|
2285
|
-
}) => /* @__PURE__ */
|
|
1591
|
+
}) => /* @__PURE__ */ jsx12(SelectContent, { className: cn(className), ...props });
|
|
2286
1592
|
var PromptInputSelectItem = ({
|
|
2287
1593
|
className,
|
|
2288
1594
|
...props
|
|
2289
|
-
}) => /* @__PURE__ */
|
|
1595
|
+
}) => /* @__PURE__ */ jsx12(SelectItem, { className: cn(className), ...props });
|
|
2290
1596
|
var PromptInputSelectValue = ({
|
|
2291
1597
|
className,
|
|
2292
1598
|
...props
|
|
2293
|
-
}) => /* @__PURE__ */
|
|
1599
|
+
}) => /* @__PURE__ */ jsx12(SelectValue, { className: cn(className), ...props });
|
|
2294
1600
|
var PromptInputHoverCard = ({
|
|
2295
1601
|
openDelay = 0,
|
|
2296
1602
|
closeDelay = 0,
|
|
2297
1603
|
...props
|
|
2298
|
-
}) => /* @__PURE__ */
|
|
2299
|
-
var PromptInputHoverCardTrigger = (props) => /* @__PURE__ */
|
|
1604
|
+
}) => /* @__PURE__ */ jsx12(HoverCard, { closeDelay, openDelay, ...props });
|
|
1605
|
+
var PromptInputHoverCardTrigger = (props) => /* @__PURE__ */ jsx12(HoverCardTrigger, { ...props });
|
|
2300
1606
|
var PromptInputHoverCardContent = ({
|
|
2301
1607
|
align = "start",
|
|
2302
1608
|
...props
|
|
2303
|
-
}) => /* @__PURE__ */
|
|
1609
|
+
}) => /* @__PURE__ */ jsx12(HoverCardContent, { align, ...props });
|
|
2304
1610
|
var PromptInputTabsList = ({
|
|
2305
1611
|
className,
|
|
2306
1612
|
...props
|
|
2307
|
-
}) => /* @__PURE__ */
|
|
1613
|
+
}) => /* @__PURE__ */ jsx12("div", { className: cn(className), ...props });
|
|
2308
1614
|
var PromptInputTab = ({
|
|
2309
1615
|
className,
|
|
2310
1616
|
...props
|
|
2311
|
-
}) => /* @__PURE__ */
|
|
1617
|
+
}) => /* @__PURE__ */ jsx12("div", { className: cn(className), ...props });
|
|
2312
1618
|
var PromptInputTabLabel = ({
|
|
2313
1619
|
className,
|
|
2314
1620
|
...props
|
|
2315
|
-
}) => /* @__PURE__ */
|
|
1621
|
+
}) => /* @__PURE__ */ jsx12(
|
|
2316
1622
|
"h3",
|
|
2317
1623
|
{
|
|
2318
1624
|
className: cn(
|
|
@@ -2325,11 +1631,11 @@ var PromptInputTabLabel = ({
|
|
|
2325
1631
|
var PromptInputTabBody = ({
|
|
2326
1632
|
className,
|
|
2327
1633
|
...props
|
|
2328
|
-
}) => /* @__PURE__ */
|
|
1634
|
+
}) => /* @__PURE__ */ jsx12("div", { className: cn("space-y-1", className), ...props });
|
|
2329
1635
|
var PromptInputTabItem = ({
|
|
2330
1636
|
className,
|
|
2331
1637
|
...props
|
|
2332
|
-
}) => /* @__PURE__ */
|
|
1638
|
+
}) => /* @__PURE__ */ jsx12(
|
|
2333
1639
|
"div",
|
|
2334
1640
|
{
|
|
2335
1641
|
className: cn(
|
|
@@ -2342,31 +1648,31 @@ var PromptInputTabItem = ({
|
|
|
2342
1648
|
var PromptInputCommand = ({
|
|
2343
1649
|
className,
|
|
2344
1650
|
...props
|
|
2345
|
-
}) => /* @__PURE__ */
|
|
1651
|
+
}) => /* @__PURE__ */ jsx12(Command, { className: cn(className), ...props });
|
|
2346
1652
|
var PromptInputCommandInput = ({
|
|
2347
1653
|
className,
|
|
2348
1654
|
...props
|
|
2349
|
-
}) => /* @__PURE__ */
|
|
1655
|
+
}) => /* @__PURE__ */ jsx12(CommandInput, { className: cn(className), ...props });
|
|
2350
1656
|
var PromptInputCommandList = ({
|
|
2351
1657
|
className,
|
|
2352
1658
|
...props
|
|
2353
|
-
}) => /* @__PURE__ */
|
|
1659
|
+
}) => /* @__PURE__ */ jsx12(CommandList, { className: cn(className), ...props });
|
|
2354
1660
|
var PromptInputCommandEmpty = ({
|
|
2355
1661
|
className,
|
|
2356
1662
|
...props
|
|
2357
|
-
}) => /* @__PURE__ */
|
|
1663
|
+
}) => /* @__PURE__ */ jsx12(CommandEmpty, { className: cn(className), ...props });
|
|
2358
1664
|
var PromptInputCommandGroup = ({
|
|
2359
1665
|
className,
|
|
2360
1666
|
...props
|
|
2361
|
-
}) => /* @__PURE__ */
|
|
1667
|
+
}) => /* @__PURE__ */ jsx12(CommandGroup, { className: cn(className), ...props });
|
|
2362
1668
|
var PromptInputCommandItem = ({
|
|
2363
1669
|
className,
|
|
2364
1670
|
...props
|
|
2365
|
-
}) => /* @__PURE__ */
|
|
1671
|
+
}) => /* @__PURE__ */ jsx12(CommandItem, { className: cn(className), ...props });
|
|
2366
1672
|
var PromptInputCommandSeparator = ({
|
|
2367
1673
|
className,
|
|
2368
1674
|
...props
|
|
2369
|
-
}) => /* @__PURE__ */
|
|
1675
|
+
}) => /* @__PURE__ */ jsx12(CommandSeparator, { className: cn(className), ...props });
|
|
2370
1676
|
export {
|
|
2371
1677
|
LocalReferencedSourcesContext,
|
|
2372
1678
|
PromptInput,
|