@ekanos/ui 0.1.0
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/LICENSE +21 -0
- package/README.md +124 -0
- package/dist/ai-prompt-input.d.ts +187 -0
- package/dist/ai-prompt-input.js +2411 -0
- package/dist/alert.d.ts +12 -0
- package/dist/alert.js +92 -0
- package/dist/badge.d.ts +12 -0
- package/dist/badge.js +60 -0
- package/dist/button.d.ts +13 -0
- package/dist/button.js +64 -0
- package/dist/card.d.ts +18 -0
- package/dist/card.js +108 -0
- package/dist/dialog.d.ts +19 -0
- package/dist/dialog.js +897 -0
- package/dist/dropdown-menu.d.ts +27 -0
- package/dist/dropdown-menu.js +941 -0
- package/dist/form.d.ts +27 -0
- package/dist/form.js +156 -0
- package/dist/icon.d.ts +47 -0
- package/dist/icon.js +763 -0
- package/dist/if.d.ts +38 -0
- package/dist/if.js +15 -0
- package/dist/input.d.ts +5 -0
- package/dist/input.js +28 -0
- package/dist/label.d.ts +5 -0
- package/dist/label.js +27 -0
- package/dist/select.d.ts +25 -0
- package/dist/select.js +944 -0
- package/dist/separator.d.ts +6 -0
- package/dist/separator.js +35 -0
- package/dist/skeleton.d.ts +5 -0
- package/dist/skeleton.js +22 -0
- package/dist/spinner.d.ts +27 -0
- package/dist/spinner.js +49 -0
- package/dist/tooltip.d.ts +9 -0
- package/dist/tooltip.js +74 -0
- package/dist/trans.d.ts +39 -0
- package/dist/trans.js +9 -0
- package/dist/utils.d.ts +23 -0
- package/dist/utils.js +83 -0
- package/package.json +150 -0
package/dist/select.js
ADDED
|
@@ -0,0 +1,944 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// ../ui/src/shadcn/select.tsx
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
6
|
+
|
|
7
|
+
// ../ui/src/custom/icon.tsx
|
|
8
|
+
import {
|
|
9
|
+
createContext,
|
|
10
|
+
useContext
|
|
11
|
+
} from "react";
|
|
12
|
+
|
|
13
|
+
// ../ui/src/lib/utils/cn.ts
|
|
14
|
+
import { clsx } from "clsx";
|
|
15
|
+
import { twMerge } from "tailwind-merge";
|
|
16
|
+
function cn(...inputs) {
|
|
17
|
+
return twMerge(clsx(inputs));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// ../ui/src/custom/lucide-fa-map.json
|
|
21
|
+
var lucide_fa_map_default = {
|
|
22
|
+
Activity: "fa-light fa-wave-pulse",
|
|
23
|
+
Airplay: "fa-light fa-airplay",
|
|
24
|
+
AlarmClock: "fa-light fa-alarm-clock",
|
|
25
|
+
Album: "fa-light fa-album",
|
|
26
|
+
Ampersand: "fa-light fa-ampersand",
|
|
27
|
+
Anchor: "fa-light fa-anchor",
|
|
28
|
+
Aperture: "fa-light fa-aperture",
|
|
29
|
+
Apple: "fa-brands fa-apple",
|
|
30
|
+
Archive: "fa-light fa-box-archive",
|
|
31
|
+
ArrowDown: "fa-light fa-arrow-down",
|
|
32
|
+
ArrowDownFromLine: "fa-light fa-arrow-down-from-line",
|
|
33
|
+
ArrowDownLeft: "fa-light fa-arrow-down-left",
|
|
34
|
+
ArrowDownRight: "fa-light fa-arrow-down-right",
|
|
35
|
+
ArrowDownToLine: "fa-light fa-arrow-down-to-line",
|
|
36
|
+
ArrowLeft: "fa-light fa-arrow-left",
|
|
37
|
+
ArrowLeftFromLine: "fa-light fa-arrow-left-from-line",
|
|
38
|
+
ArrowLeftRight: "fa-light fa-arrow-right-arrow-left",
|
|
39
|
+
ArrowLeftToLine: "fa-light fa-arrow-left-to-line",
|
|
40
|
+
ArrowRight: "fa-light fa-arrow-right",
|
|
41
|
+
ArrowRightFromLine: "fa-light fa-arrow-right-from-line",
|
|
42
|
+
ArrowRightToLine: "fa-light fa-arrow-right-to-line",
|
|
43
|
+
ArrowUp: "fa-light fa-arrow-up",
|
|
44
|
+
ArrowUpDown: "fa-light fa-arrow-up-arrow-down",
|
|
45
|
+
ArrowUpFromLine: "fa-light fa-arrow-up-from-line",
|
|
46
|
+
ArrowUpLeft: "fa-light fa-arrow-up-left",
|
|
47
|
+
ArrowUpRight: "fa-light fa-arrow-up-right",
|
|
48
|
+
ArrowUpToLine: "fa-light fa-arrow-up-to-line",
|
|
49
|
+
Asterisk: "fa-light fa-asterisk",
|
|
50
|
+
Atom: "fa-light fa-atom",
|
|
51
|
+
AtSign: "fa-light fa-at",
|
|
52
|
+
Award: "fa-light fa-award",
|
|
53
|
+
Axe: "fa-light fa-axe",
|
|
54
|
+
Baby: "fa-light fa-baby",
|
|
55
|
+
Backpack: "fa-light fa-backpack",
|
|
56
|
+
Badge: "fa-light fa-badge",
|
|
57
|
+
BadgeCheck: "fa-light fa-badge-check",
|
|
58
|
+
BadgeDollarSign: "fa-light fa-badge-dollar",
|
|
59
|
+
BadgePercent: "fa-light fa-badge-percent",
|
|
60
|
+
Balloon: "fa-light fa-balloon",
|
|
61
|
+
Ban: "fa-light fa-ban",
|
|
62
|
+
Banana: "fa-light fa-banana",
|
|
63
|
+
Bandage: "fa-light fa-bandage",
|
|
64
|
+
Banknote: "fa-light fa-money-bill",
|
|
65
|
+
Barcode: "fa-light fa-barcode",
|
|
66
|
+
Bath: "fa-light fa-bath",
|
|
67
|
+
Battery: "fa-light fa-battery-full",
|
|
68
|
+
BatteryFull: "fa-light fa-battery-full",
|
|
69
|
+
BatteryLow: "fa-light fa-battery-low",
|
|
70
|
+
Bed: "fa-light fa-bed",
|
|
71
|
+
Bell: "fa-light fa-bell",
|
|
72
|
+
BellPlus: "fa-light fa-bell-plus",
|
|
73
|
+
BellRing: "fa-light fa-bell-ring",
|
|
74
|
+
Binary: "fa-light fa-binary",
|
|
75
|
+
Binoculars: "fa-light fa-binoculars",
|
|
76
|
+
Biohazard: "fa-light fa-biohazard",
|
|
77
|
+
Bird: "fa-light fa-bird",
|
|
78
|
+
Bitcoin: "fa-brands fa-bitcoin",
|
|
79
|
+
Blinds: "fa-light fa-blinds",
|
|
80
|
+
Blocks: "fa-light fa-cubes",
|
|
81
|
+
Bluetooth: "fa-light fa-bluetooth",
|
|
82
|
+
Bold: "fa-light fa-bold",
|
|
83
|
+
Bolt: "fa-light fa-bolt",
|
|
84
|
+
Bomb: "fa-light fa-bomb",
|
|
85
|
+
Bone: "fa-light fa-bone",
|
|
86
|
+
Book: "fa-light fa-book",
|
|
87
|
+
BookCopy: "fa-light fa-book-copy",
|
|
88
|
+
BookHeart: "fa-light fa-book-heart",
|
|
89
|
+
Bookmark: "fa-light fa-bookmark",
|
|
90
|
+
BookmarkPlus: "fa-light fa-bookmark-plus",
|
|
91
|
+
BookOpen: "fa-light fa-book-open",
|
|
92
|
+
BookUser: "fa-light fa-book-user",
|
|
93
|
+
Bot: "fa-light fa-robot",
|
|
94
|
+
BowArrow: "fa-light fa-bow-arrow",
|
|
95
|
+
Box: "fa-light fa-box",
|
|
96
|
+
Boxes: "fa-light fa-boxes-stacked",
|
|
97
|
+
Brain: "fa-light fa-brain",
|
|
98
|
+
BrainCircuit: "fa-light fa-brain-circuit",
|
|
99
|
+
Briefcase: "fa-light fa-briefcase",
|
|
100
|
+
BriefcaseMedical: "fa-light fa-briefcase-medical",
|
|
101
|
+
Brush: "fa-light fa-brush",
|
|
102
|
+
Bug: "fa-light fa-bug",
|
|
103
|
+
Building: "fa-light fa-building",
|
|
104
|
+
Building2: "fa-light fa-building",
|
|
105
|
+
Bus: "fa-light fa-bus",
|
|
106
|
+
CableCar: "fa-light fa-cable-car",
|
|
107
|
+
CakeSlice: "fa-light fa-cake-slice",
|
|
108
|
+
Calculator: "fa-light fa-calculator",
|
|
109
|
+
Calendar: "fa-light fa-calendar",
|
|
110
|
+
CalendarArrowDown: "fa-light fa-calendar-arrow-down",
|
|
111
|
+
CalendarArrowUp: "fa-light fa-calendar-arrow-up",
|
|
112
|
+
CalendarCheck: "fa-light fa-calendar-check",
|
|
113
|
+
CalendarClock: "fa-light fa-calendar-clock",
|
|
114
|
+
CalendarDays: "fa-light fa-calendar-days",
|
|
115
|
+
CalendarHeart: "fa-light fa-calendar-heart",
|
|
116
|
+
CalendarMinus: "fa-light fa-calendar-minus",
|
|
117
|
+
CalendarPlus: "fa-light fa-calendar-plus",
|
|
118
|
+
CalendarRange: "fa-light fa-calendar-range",
|
|
119
|
+
Calendars: "fa-light fa-calendars",
|
|
120
|
+
Camera: "fa-light fa-camera",
|
|
121
|
+
Candy: "fa-light fa-candy",
|
|
122
|
+
CandyCane: "fa-light fa-candy-cane",
|
|
123
|
+
Cannabis: "fa-light fa-cannabis",
|
|
124
|
+
Car: "fa-light fa-car",
|
|
125
|
+
Caravan: "fa-light fa-caravan",
|
|
126
|
+
Carrot: "fa-light fa-carrot",
|
|
127
|
+
CassetteTape: "fa-light fa-cassette-tape",
|
|
128
|
+
Castle: "fa-light fa-castle",
|
|
129
|
+
Cat: "fa-light fa-cat",
|
|
130
|
+
ChartArea: "fa-light fa-chart-area",
|
|
131
|
+
ChartBar: "fa-light fa-chart-bar",
|
|
132
|
+
ChartCandlestick: "fa-light fa-chart-candlestick",
|
|
133
|
+
ChartColumn: "fa-light fa-chart-column",
|
|
134
|
+
ChartGantt: "fa-light fa-chart-gantt",
|
|
135
|
+
ChartLine: "fa-light fa-chart-line",
|
|
136
|
+
ChartNetwork: "fa-light fa-chart-network",
|
|
137
|
+
ChartPie: "fa-light fa-chart-pie",
|
|
138
|
+
ChartScatter: "fa-light fa-chart-scatter",
|
|
139
|
+
Check: "fa-light fa-check",
|
|
140
|
+
ChessBishop: "fa-light fa-chess-bishop",
|
|
141
|
+
ChessKing: "fa-light fa-chess-king",
|
|
142
|
+
ChessKnight: "fa-light fa-chess-knight",
|
|
143
|
+
ChessPawn: "fa-light fa-chess-pawn",
|
|
144
|
+
ChessQueen: "fa-light fa-chess-queen",
|
|
145
|
+
ChessRook: "fa-light fa-chess-rook",
|
|
146
|
+
ChevronDown: "fa-light fa-chevron-down",
|
|
147
|
+
ChevronLeft: "fa-light fa-chevron-left",
|
|
148
|
+
ChevronRight: "fa-light fa-chevron-right",
|
|
149
|
+
ChevronsDown: "fa-light fa-chevrons-down",
|
|
150
|
+
ChevronsLeft: "fa-light fa-angles-left",
|
|
151
|
+
ChevronsRight: "fa-light fa-angles-right",
|
|
152
|
+
ChevronsUp: "fa-light fa-chevrons-up",
|
|
153
|
+
ChevronsUpDown: "fa-light fa-up-down",
|
|
154
|
+
ChevronUp: "fa-light fa-chevron-up",
|
|
155
|
+
Church: "fa-light fa-church",
|
|
156
|
+
Circle: "fa-light fa-circle",
|
|
157
|
+
CircleArrowDown: "fa-light fa-circle-arrow-down",
|
|
158
|
+
CircleArrowLeft: "fa-light fa-circle-arrow-left",
|
|
159
|
+
CircleArrowRight: "fa-light fa-circle-arrow-right",
|
|
160
|
+
CircleArrowUp: "fa-light fa-circle-arrow-up",
|
|
161
|
+
CircleCheck: "fa-light fa-circle-check",
|
|
162
|
+
CircleChevronDown: "fa-light fa-circle-chevron-down",
|
|
163
|
+
CircleChevronLeft: "fa-light fa-circle-chevron-left",
|
|
164
|
+
CircleChevronRight: "fa-light fa-circle-chevron-right",
|
|
165
|
+
CircleChevronUp: "fa-light fa-circle-chevron-up",
|
|
166
|
+
CircleDashed: "fa-light fa-circle-dashed",
|
|
167
|
+
CircleDivide: "fa-light fa-circle-divide",
|
|
168
|
+
CircleDot: "fa-light fa-circle-dot",
|
|
169
|
+
CircleEllipsis: "fa-light fa-circle-ellipsis",
|
|
170
|
+
CircleMinus: "fa-light fa-circle-minus",
|
|
171
|
+
CircleParking: "fa-light fa-circle-parking",
|
|
172
|
+
CirclePause: "fa-light fa-circle-pause",
|
|
173
|
+
CirclePlay: "fa-light fa-circle-play",
|
|
174
|
+
CirclePlus: "fa-light fa-circle-plus",
|
|
175
|
+
CircleSmall: "fa-light fa-circle-small",
|
|
176
|
+
CircleStar: "fa-light fa-circle-star",
|
|
177
|
+
CircleStop: "fa-light fa-circle-stop",
|
|
178
|
+
CircleUser: "fa-light fa-circle-user",
|
|
179
|
+
CircleX: "fa-light fa-circle-x",
|
|
180
|
+
Citrus: "fa-light fa-citrus",
|
|
181
|
+
Clapperboard: "fa-light fa-clapperboard",
|
|
182
|
+
Clipboard: "fa-light fa-clipboard",
|
|
183
|
+
ClipboardCheck: "fa-light fa-clipboard-check",
|
|
184
|
+
ClipboardClock: "fa-light fa-clipboard-clock",
|
|
185
|
+
ClipboardList: "fa-light fa-clipboard-list",
|
|
186
|
+
Clock: "fa-light fa-clock",
|
|
187
|
+
Clock3: "fa-light fa-clock",
|
|
188
|
+
Cloud: "fa-light fa-cloud",
|
|
189
|
+
CloudCheck: "fa-light fa-cloud-check",
|
|
190
|
+
CloudDrizzle: "fa-light fa-cloud-drizzle",
|
|
191
|
+
CloudFog: "fa-light fa-cloud-fog",
|
|
192
|
+
CloudHail: "fa-light fa-cloud-hail",
|
|
193
|
+
CloudMoon: "fa-light fa-cloud-moon",
|
|
194
|
+
CloudMoonRain: "fa-light fa-cloud-moon-rain",
|
|
195
|
+
CloudRain: "fa-light fa-cloud-rain",
|
|
196
|
+
CloudSnow: "fa-light fa-cloud-snow",
|
|
197
|
+
CloudSun: "fa-light fa-cloud-sun",
|
|
198
|
+
CloudSunRain: "fa-light fa-cloud-sun-rain",
|
|
199
|
+
Clover: "fa-light fa-clover",
|
|
200
|
+
Club: "fa-light fa-club",
|
|
201
|
+
Code: "fa-light fa-code",
|
|
202
|
+
Codepen: "fa-brands fa-codepen",
|
|
203
|
+
Coffee: "fa-light fa-mug-saucer",
|
|
204
|
+
Cog: "fa-light fa-gear",
|
|
205
|
+
Coins: "fa-light fa-coins",
|
|
206
|
+
Command: "fa-light fa-command",
|
|
207
|
+
Compass: "fa-light fa-compass",
|
|
208
|
+
Computer: "fa-light fa-display",
|
|
209
|
+
Construction: "fa-light fa-person-digging",
|
|
210
|
+
Contact: "fa-light fa-address-book",
|
|
211
|
+
Cookie: "fa-light fa-cookie",
|
|
212
|
+
Copy: "fa-light fa-copy",
|
|
213
|
+
Copyright: "fa-light fa-copyright",
|
|
214
|
+
CornerDownLeft: "fa-light fa-arrow-turn-down-left",
|
|
215
|
+
CreativeCommons: "fa-brands fa-creative-commons",
|
|
216
|
+
CreditCard: "fa-light fa-credit-card",
|
|
217
|
+
Croissant: "fa-light fa-croissant",
|
|
218
|
+
Crop: "fa-light fa-crop",
|
|
219
|
+
Cross: "fa-light fa-cross",
|
|
220
|
+
Crown: "fa-light fa-crown",
|
|
221
|
+
Database: "fa-light fa-database",
|
|
222
|
+
Diamond: "fa-light fa-diamond",
|
|
223
|
+
Divide: "fa-light fa-divide",
|
|
224
|
+
Dna: "fa-light fa-dna",
|
|
225
|
+
Dog: "fa-light fa-dog",
|
|
226
|
+
DollarSign: "fa-light fa-dollar-sign",
|
|
227
|
+
Donut: "fa-light fa-donut",
|
|
228
|
+
DoorClosed: "fa-light fa-door-closed",
|
|
229
|
+
DoorOpen: "fa-light fa-door-open",
|
|
230
|
+
Dot: "fa-light fa-dot",
|
|
231
|
+
Download: "fa-light fa-download",
|
|
232
|
+
Dribbble: "fa-brands fa-dribbble",
|
|
233
|
+
Drone: "fa-light fa-drone",
|
|
234
|
+
Droplet: "fa-light fa-droplet",
|
|
235
|
+
Drum: "fa-light fa-drum",
|
|
236
|
+
Drumstick: "fa-light fa-drumstick",
|
|
237
|
+
Dumbbell: "fa-light fa-dumbbell",
|
|
238
|
+
Ear: "fa-light fa-ear",
|
|
239
|
+
Eclipse: "fa-light fa-eclipse",
|
|
240
|
+
Edit: "fa-light fa-pen-to-square",
|
|
241
|
+
Edit3: "fa-light fa-pencil",
|
|
242
|
+
Egg: "fa-light fa-egg",
|
|
243
|
+
EggFried: "fa-light fa-egg-fried",
|
|
244
|
+
Ellipsis: "fa-light fa-ellipsis",
|
|
245
|
+
EllipsisVertical: "fa-light fa-ellipsis-vertical",
|
|
246
|
+
Eraser: "fa-light fa-eraser",
|
|
247
|
+
Expand: "fa-light fa-expand",
|
|
248
|
+
ExternalLink: "fa-light fa-arrow-up-right-from-square",
|
|
249
|
+
Eye: "fa-light fa-eye",
|
|
250
|
+
EyeClosed: "fa-light fa-eye-closed",
|
|
251
|
+
EyeOff: "fa-light fa-eye-slash",
|
|
252
|
+
Facebook: "fa-brands fa-facebook",
|
|
253
|
+
Fan: "fa-light fa-fan",
|
|
254
|
+
Feather: "fa-light fa-feather",
|
|
255
|
+
Fence: "fa-light fa-fence",
|
|
256
|
+
FerrisWheel: "fa-light fa-ferris-wheel",
|
|
257
|
+
Figma: "fa-brands fa-figma",
|
|
258
|
+
File: "fa-light fa-file",
|
|
259
|
+
FileChartColumn: "fa-light fa-file-chart-column",
|
|
260
|
+
FileChartPie: "fa-light fa-file-chart-pie",
|
|
261
|
+
FileCheck: "fa-light fa-file-check",
|
|
262
|
+
FileCode: "fa-light fa-file-code",
|
|
263
|
+
FileHeart: "fa-light fa-file-heart",
|
|
264
|
+
FileImage: "fa-light fa-file-image",
|
|
265
|
+
FileLock: "fa-light fa-file-lock",
|
|
266
|
+
FileMinus: "fa-light fa-file-minus",
|
|
267
|
+
FileMusic: "fa-light fa-file-music",
|
|
268
|
+
FilePen: "fa-light fa-file-pen",
|
|
269
|
+
FilePlus: "fa-light fa-file-plus",
|
|
270
|
+
Files: "fa-light fa-files",
|
|
271
|
+
FileSpreadsheet: "fa-light fa-file-spreadsheet",
|
|
272
|
+
FileText: "fa-light fa-file-lines",
|
|
273
|
+
FileUser: "fa-light fa-file-user",
|
|
274
|
+
Film: "fa-light fa-film",
|
|
275
|
+
FireExtinguisher: "fa-light fa-fire-extinguisher",
|
|
276
|
+
Fish: "fa-light fa-fish",
|
|
277
|
+
Flag: "fa-light fa-flag",
|
|
278
|
+
Flashlight: "fa-light fa-flashlight",
|
|
279
|
+
Flower: "fa-light fa-flower",
|
|
280
|
+
Folder: "fa-light fa-folder",
|
|
281
|
+
FolderArchive: "fa-light fa-box-archive",
|
|
282
|
+
FolderCheck: "fa-light fa-folder-check",
|
|
283
|
+
FolderClosed: "fa-light fa-folder-closed",
|
|
284
|
+
FolderHeart: "fa-light fa-folder-heart",
|
|
285
|
+
FolderKanban: "fa-light fa-square-kanban",
|
|
286
|
+
FolderMinus: "fa-light fa-folder-minus",
|
|
287
|
+
FolderOpen: "fa-light fa-folder-open",
|
|
288
|
+
FolderPlus: "fa-light fa-folder-plus",
|
|
289
|
+
Folders: "fa-light fa-folders",
|
|
290
|
+
FolderTree: "fa-light fa-folder-tree",
|
|
291
|
+
Forklift: "fa-light fa-forklift",
|
|
292
|
+
Forward: "fa-light fa-forward",
|
|
293
|
+
Frame: "fa-light fa-frame",
|
|
294
|
+
GalleryThumbnails: "fa-light fa-gallery-thumbnails",
|
|
295
|
+
Gamepad: "fa-light fa-gamepad",
|
|
296
|
+
Gauge: "fa-light fa-gauge",
|
|
297
|
+
Gavel: "fa-light fa-gavel",
|
|
298
|
+
Gem: "fa-light fa-gem",
|
|
299
|
+
Ghost: "fa-light fa-ghost",
|
|
300
|
+
Gift: "fa-light fa-gift",
|
|
301
|
+
Github: "fa-brands fa-github",
|
|
302
|
+
Gitlab: "fa-brands fa-gitlab",
|
|
303
|
+
Glasses: "fa-light fa-glasses",
|
|
304
|
+
GlassWater: "fa-light fa-glass-water",
|
|
305
|
+
Globe: "fa-light fa-globe",
|
|
306
|
+
Gpu: "fa-light fa-gpu",
|
|
307
|
+
GraduationCap: "fa-light fa-graduation-cap",
|
|
308
|
+
Grid3X3: "fa-light fa-grid",
|
|
309
|
+
Grip: "fa-light fa-grip",
|
|
310
|
+
GripVertical: "fa-light fa-grip-vertical",
|
|
311
|
+
Guitar: "fa-light fa-guitar",
|
|
312
|
+
Hammer: "fa-light fa-hammer",
|
|
313
|
+
Hand: "fa-light fa-hand",
|
|
314
|
+
HandFist: "fa-light fa-hand-fist",
|
|
315
|
+
HandHeart: "fa-light fa-hand-heart",
|
|
316
|
+
Handshake: "fa-light fa-handshake",
|
|
317
|
+
HardDrive: "fa-light fa-hard-drive",
|
|
318
|
+
Hash: "fa-light fa-hashtag",
|
|
319
|
+
Heading: "fa-light fa-heading",
|
|
320
|
+
Headphones: "fa-light fa-headphones",
|
|
321
|
+
Headset: "fa-light fa-headset",
|
|
322
|
+
Heart: "fa-light fa-heart",
|
|
323
|
+
HeartCrack: "fa-light fa-heart-crack",
|
|
324
|
+
HeartPulse: "fa-light fa-heart-pulse",
|
|
325
|
+
Helicopter: "fa-light fa-helicopter",
|
|
326
|
+
Hexagon: "fa-light fa-hexagon",
|
|
327
|
+
Highlighter: "fa-light fa-highlighter",
|
|
328
|
+
History: "fa-light fa-clock-rotate-left",
|
|
329
|
+
Hospital: "fa-light fa-hospital",
|
|
330
|
+
Hotel: "fa-light fa-hotel",
|
|
331
|
+
Hourglass: "fa-light fa-hourglass",
|
|
332
|
+
House: "fa-light fa-house",
|
|
333
|
+
HouseHeart: "fa-light fa-house-heart",
|
|
334
|
+
IdCard: "fa-light fa-id-card",
|
|
335
|
+
Image: "fa-light fa-image",
|
|
336
|
+
Images: "fa-light fa-images",
|
|
337
|
+
Inbox: "fa-light fa-inbox",
|
|
338
|
+
Infinity: "fa-light fa-infinity",
|
|
339
|
+
Info: "fa-light fa-info",
|
|
340
|
+
Instagram: "fa-brands fa-instagram",
|
|
341
|
+
Italic: "fa-light fa-italic",
|
|
342
|
+
Joystick: "fa-light fa-joystick",
|
|
343
|
+
Kayak: "fa-light fa-kayak",
|
|
344
|
+
Key: "fa-light fa-key",
|
|
345
|
+
Keyboard: "fa-light fa-keyboard",
|
|
346
|
+
KeyRound: "fa-light fa-key",
|
|
347
|
+
Lamp: "fa-light fa-lamp",
|
|
348
|
+
LampDesk: "fa-light fa-lamp-desk",
|
|
349
|
+
LampFloor: "fa-light fa-lamp-floor",
|
|
350
|
+
Landmark: "fa-light fa-landmark",
|
|
351
|
+
Laptop: "fa-light fa-laptop",
|
|
352
|
+
Lasso: "fa-light fa-lasso",
|
|
353
|
+
Layers: "fa-light fa-layer-group",
|
|
354
|
+
Layout: "fa-light fa-table-layout",
|
|
355
|
+
LayoutDashboard: "fa-light fa-table-columns",
|
|
356
|
+
LayoutGrid: "fa-light fa-grid-2",
|
|
357
|
+
Leaf: "fa-light fa-leaf",
|
|
358
|
+
LeafyGreen: "fa-light fa-leafy-green",
|
|
359
|
+
Lightbulb: "fa-light fa-lightbulb",
|
|
360
|
+
Link: "fa-light fa-link",
|
|
361
|
+
Link2: "fa-light fa-link",
|
|
362
|
+
Linkedin: "fa-brands fa-linkedin",
|
|
363
|
+
List: "fa-light fa-list",
|
|
364
|
+
ListCheck: "fa-light fa-list-check",
|
|
365
|
+
ListMusic: "fa-light fa-list-music",
|
|
366
|
+
ListTree: "fa-light fa-list-tree",
|
|
367
|
+
Loader: "fa-light fa-loader",
|
|
368
|
+
Lock: "fa-light fa-lock",
|
|
369
|
+
LockKeyhole: "fa-light fa-lock-keyhole",
|
|
370
|
+
LockKeyholeOpen: "fa-light fa-lock-keyhole-open",
|
|
371
|
+
LockOpen: "fa-light fa-lock-open",
|
|
372
|
+
LogOut: "fa-light fa-right-from-bracket",
|
|
373
|
+
Lollipop: "fa-light fa-lollipop",
|
|
374
|
+
Magnet: "fa-light fa-magnet",
|
|
375
|
+
Mail: "fa-light fa-envelope",
|
|
376
|
+
Mailbox: "fa-light fa-mailbox",
|
|
377
|
+
Map: "fa-light fa-map",
|
|
378
|
+
MapPin: "fa-light fa-location-dot",
|
|
379
|
+
Mars: "fa-light fa-mars",
|
|
380
|
+
MarsStroke: "fa-light fa-mars-stroke",
|
|
381
|
+
Maximize: "fa-light fa-maximize",
|
|
382
|
+
Maximize2: "fa-light fa-expand",
|
|
383
|
+
Medal: "fa-light fa-medal",
|
|
384
|
+
Megaphone: "fa-light fa-bullhorn",
|
|
385
|
+
Menu: "fa-light fa-bars",
|
|
386
|
+
Merge: "fa-light fa-merge",
|
|
387
|
+
MessageCircle: "fa-light fa-comment",
|
|
388
|
+
MessageSquare: "fa-light fa-message",
|
|
389
|
+
Mic: "fa-light fa-microphone",
|
|
390
|
+
Microchip: "fa-light fa-microchip",
|
|
391
|
+
Microscope: "fa-light fa-microscope",
|
|
392
|
+
Microwave: "fa-light fa-microwave",
|
|
393
|
+
Minimize: "fa-light fa-minimize",
|
|
394
|
+
Minimize2: "fa-light fa-compress",
|
|
395
|
+
Minus: "fa-light fa-minus",
|
|
396
|
+
MinusCircle: "fa-light fa-circle-minus",
|
|
397
|
+
Monitor: "fa-light fa-display",
|
|
398
|
+
MonitorPlay: "fa-light fa-display",
|
|
399
|
+
Moon: "fa-light fa-moon",
|
|
400
|
+
MoonStar: "fa-light fa-moon-star",
|
|
401
|
+
Mountain: "fa-light fa-mountain",
|
|
402
|
+
Music: "fa-light fa-music",
|
|
403
|
+
Music2: "fa-light fa-music",
|
|
404
|
+
Newspaper: "fa-light fa-newspaper",
|
|
405
|
+
Nfc: "fa-light fa-nfc",
|
|
406
|
+
NonBinary: "fa-light fa-non-binary",
|
|
407
|
+
Notebook: "fa-light fa-notebook",
|
|
408
|
+
NotebookPen: "fa-light fa-notebook",
|
|
409
|
+
Octagon: "fa-light fa-octagon",
|
|
410
|
+
OctagonMinus: "fa-light fa-octagon-minus",
|
|
411
|
+
Omega: "fa-light fa-omega",
|
|
412
|
+
Option: "fa-light fa-option",
|
|
413
|
+
Package: "fa-light fa-box",
|
|
414
|
+
PackageOpen: "fa-light fa-box-open",
|
|
415
|
+
Paintbrush: "fa-light fa-paintbrush",
|
|
416
|
+
PaintRoller: "fa-light fa-paint-roller",
|
|
417
|
+
Palette: "fa-light fa-palette",
|
|
418
|
+
PanelLeft: "fa-light fa-table-columns",
|
|
419
|
+
PanelRightClose: "fa-light fa-sidebar-flip",
|
|
420
|
+
PanelRightOpen: "fa-light fa-sidebar",
|
|
421
|
+
Paperclip: "fa-light fa-paperclip",
|
|
422
|
+
Pause: "fa-light fa-pause",
|
|
423
|
+
Pen: "fa-light fa-pen",
|
|
424
|
+
Pencil: "fa-light fa-pencil",
|
|
425
|
+
PencilLine: "fa-light fa-pencil-line",
|
|
426
|
+
PenLine: "fa-light fa-pen-line",
|
|
427
|
+
Pentagon: "fa-light fa-pentagon",
|
|
428
|
+
Percent: "fa-light fa-percent",
|
|
429
|
+
Phone: "fa-light fa-phone",
|
|
430
|
+
PhoneMissed: "fa-light fa-phone-missed",
|
|
431
|
+
Pi: "fa-light fa-pi",
|
|
432
|
+
Piano: "fa-light fa-piano",
|
|
433
|
+
Pickaxe: "fa-light fa-pickaxe",
|
|
434
|
+
PictureInPicture: "fa-light fa-picture-in-picture",
|
|
435
|
+
PiggyBank: "fa-light fa-piggy-bank",
|
|
436
|
+
Pill: "fa-light fa-pills",
|
|
437
|
+
Pipette: "fa-light fa-eye-dropper",
|
|
438
|
+
Pizza: "fa-light fa-pizza",
|
|
439
|
+
Plane: "fa-light fa-plane",
|
|
440
|
+
Play: "fa-light fa-play",
|
|
441
|
+
Plug: "fa-light fa-plug",
|
|
442
|
+
PlugZap: "fa-light fa-plug-circle-bolt",
|
|
443
|
+
Plus: "fa-light fa-plus",
|
|
444
|
+
PlusCircle: "fa-light fa-circle-plus",
|
|
445
|
+
Podcast: "fa-light fa-podcast",
|
|
446
|
+
Popcorn: "fa-light fa-popcorn",
|
|
447
|
+
Popsicle: "fa-light fa-popsicle",
|
|
448
|
+
Power: "fa-light fa-power-off",
|
|
449
|
+
PowerOff: "fa-light fa-power-off",
|
|
450
|
+
Projector: "fa-light fa-projector",
|
|
451
|
+
Puzzle: "fa-light fa-puzzle",
|
|
452
|
+
Rabbit: "fa-light fa-rabbit",
|
|
453
|
+
Radar: "fa-light fa-radar",
|
|
454
|
+
Radiation: "fa-light fa-radiation",
|
|
455
|
+
Radio: "fa-light fa-radio",
|
|
456
|
+
Rainbow: "fa-light fa-rainbow",
|
|
457
|
+
Receipt: "fa-light fa-receipt",
|
|
458
|
+
RectangleVertical: "fa-light fa-rectangle-vertical",
|
|
459
|
+
Recycle: "fa-light fa-recycle",
|
|
460
|
+
RefreshCw: "fa-light fa-arrows-rotate",
|
|
461
|
+
Refrigerator: "fa-light fa-refrigerator",
|
|
462
|
+
Repeat: "fa-light fa-repeat",
|
|
463
|
+
Reply: "fa-light fa-reply",
|
|
464
|
+
ReplyAll: "fa-light fa-reply-all",
|
|
465
|
+
Ribbon: "fa-light fa-ribbon",
|
|
466
|
+
Rocket: "fa-light fa-rocket",
|
|
467
|
+
RollerCoaster: "fa-light fa-roller-coaster",
|
|
468
|
+
RotateCcw: "fa-light fa-rotate-left",
|
|
469
|
+
Route: "fa-light fa-route",
|
|
470
|
+
Router: "fa-light fa-router",
|
|
471
|
+
Rss: "fa-light fa-rss",
|
|
472
|
+
Ruler: "fa-light fa-ruler",
|
|
473
|
+
Sailboat: "fa-light fa-sailboat",
|
|
474
|
+
Salad: "fa-light fa-salad",
|
|
475
|
+
Sandwich: "fa-light fa-sandwich",
|
|
476
|
+
Satellite: "fa-light fa-satellite",
|
|
477
|
+
SatelliteDish: "fa-light fa-satellite-dish",
|
|
478
|
+
Save: "fa-light fa-floppy-disk",
|
|
479
|
+
School: "fa-light fa-school",
|
|
480
|
+
Scissors: "fa-light fa-scissors",
|
|
481
|
+
Scooter: "fa-light fa-scooter",
|
|
482
|
+
Scroll: "fa-light fa-scroll",
|
|
483
|
+
Search: "fa-light fa-magnifying-glass",
|
|
484
|
+
Section: "fa-light fa-section",
|
|
485
|
+
Send: "fa-light fa-paper-plane",
|
|
486
|
+
Server: "fa-light fa-server",
|
|
487
|
+
Settings: "fa-light fa-gear",
|
|
488
|
+
Shapes: "fa-light fa-shapes",
|
|
489
|
+
Share: "fa-light fa-share",
|
|
490
|
+
Shield: "fa-light fa-shield",
|
|
491
|
+
ShieldAlert: "fa-light fa-shield-exclamation",
|
|
492
|
+
ShieldCheck: "fa-light fa-shield-check",
|
|
493
|
+
ShieldMinus: "fa-light fa-shield-minus",
|
|
494
|
+
ShieldOff: "fa-light fa-shield-slash",
|
|
495
|
+
ShieldPlus: "fa-light fa-shield-plus",
|
|
496
|
+
ShieldUser: "fa-light fa-shield-user",
|
|
497
|
+
Ship: "fa-light fa-ship",
|
|
498
|
+
Shirt: "fa-light fa-shirt",
|
|
499
|
+
ShoppingBag: "fa-light fa-bag-shopping",
|
|
500
|
+
Shovel: "fa-light fa-shovel",
|
|
501
|
+
Shredder: "fa-light fa-shredder",
|
|
502
|
+
Shrimp: "fa-light fa-shrimp",
|
|
503
|
+
Shuffle: "fa-light fa-shuffle",
|
|
504
|
+
Sigma: "fa-light fa-sigma",
|
|
505
|
+
Signal: "fa-light fa-signal",
|
|
506
|
+
Signature: "fa-light fa-signature",
|
|
507
|
+
Siren: "fa-light fa-siren",
|
|
508
|
+
Skull: "fa-light fa-skull",
|
|
509
|
+
Slack: "fa-brands fa-slack",
|
|
510
|
+
Slash: "fa-light fa-slash",
|
|
511
|
+
SlidersHorizontal: "fa-light fa-sliders",
|
|
512
|
+
Snowflake: "fa-light fa-snowflake",
|
|
513
|
+
SolarPanel: "fa-light fa-solar-panel",
|
|
514
|
+
Spade: "fa-light fa-spade",
|
|
515
|
+
Sparkle: "fa-light fa-sparkle",
|
|
516
|
+
Sparkles: "fa-light fa-sparkles",
|
|
517
|
+
Speaker: "fa-light fa-speaker",
|
|
518
|
+
SpellCheck: "fa-light fa-spell-check",
|
|
519
|
+
Split: "fa-light fa-split",
|
|
520
|
+
SprayCan: "fa-light fa-spray-can",
|
|
521
|
+
Square: "fa-light fa-square",
|
|
522
|
+
SquareArrowDown: "fa-light fa-square-arrow-down",
|
|
523
|
+
SquareArrowDownLeft: "fa-light fa-square-arrow-down-left",
|
|
524
|
+
SquareArrowDownRight: "fa-light fa-square-arrow-down-right",
|
|
525
|
+
SquareArrowLeft: "fa-light fa-square-arrow-left",
|
|
526
|
+
SquareArrowRight: "fa-light fa-square-arrow-right",
|
|
527
|
+
SquareArrowUp: "fa-light fa-square-arrow-up",
|
|
528
|
+
SquareArrowUpLeft: "fa-light fa-square-arrow-up-left",
|
|
529
|
+
SquareArrowUpRight: "fa-light fa-square-arrow-up-right",
|
|
530
|
+
SquareCheck: "fa-light fa-square-check",
|
|
531
|
+
SquareChevronDown: "fa-light fa-square-chevron-down",
|
|
532
|
+
SquareChevronLeft: "fa-light fa-square-chevron-left",
|
|
533
|
+
SquareChevronRight: "fa-light fa-square-chevron-right",
|
|
534
|
+
SquareChevronUp: "fa-light fa-square-chevron-up",
|
|
535
|
+
SquareCode: "fa-light fa-square-code",
|
|
536
|
+
SquareDashed: "fa-light fa-square-dashed",
|
|
537
|
+
SquareDivide: "fa-light fa-square-divide",
|
|
538
|
+
SquareKanban: "fa-light fa-square-kanban",
|
|
539
|
+
SquareM: "fa-light fa-square-m",
|
|
540
|
+
SquareMinus: "fa-light fa-square-minus",
|
|
541
|
+
SquareParking: "fa-light fa-square-parking",
|
|
542
|
+
SquarePen: "fa-light fa-square-pen",
|
|
543
|
+
SquarePlus: "fa-light fa-square-plus",
|
|
544
|
+
SquareStar: "fa-light fa-square-star",
|
|
545
|
+
SquareTerminal: "fa-light fa-square-terminal",
|
|
546
|
+
SquareUser: "fa-light fa-square-user",
|
|
547
|
+
SquareX: "fa-light fa-square-x",
|
|
548
|
+
Squirrel: "fa-light fa-squirrel",
|
|
549
|
+
Stamp: "fa-light fa-stamp",
|
|
550
|
+
Star: "fa-light fa-star",
|
|
551
|
+
StarHalf: "fa-light fa-star-half",
|
|
552
|
+
Stethoscope: "fa-light fa-stethoscope",
|
|
553
|
+
Store: "fa-light fa-store",
|
|
554
|
+
Strikethrough: "fa-light fa-strikethrough",
|
|
555
|
+
Subscript: "fa-light fa-subscript",
|
|
556
|
+
Sun: "fa-light fa-sun",
|
|
557
|
+
Sunrise: "fa-light fa-sunrise",
|
|
558
|
+
Sunset: "fa-light fa-sunset",
|
|
559
|
+
Superscript: "fa-light fa-superscript",
|
|
560
|
+
Sword: "fa-light fa-sword",
|
|
561
|
+
Swords: "fa-light fa-swords",
|
|
562
|
+
Syringe: "fa-light fa-syringe",
|
|
563
|
+
Table: "fa-light fa-table",
|
|
564
|
+
TableCellsMerge: "fa-light fa-table-cells-merge",
|
|
565
|
+
TableCellsSplit: "fa-light fa-table-cells-split",
|
|
566
|
+
Tablet: "fa-light fa-tablet",
|
|
567
|
+
Tablets: "fa-light fa-tablets",
|
|
568
|
+
Tag: "fa-light fa-tag",
|
|
569
|
+
Tags: "fa-light fa-tags",
|
|
570
|
+
Telescope: "fa-light fa-telescope",
|
|
571
|
+
Tent: "fa-light fa-tent",
|
|
572
|
+
Terminal: "fa-light fa-terminal",
|
|
573
|
+
Thermometer: "fa-light fa-thermometer",
|
|
574
|
+
ThumbsDown: "fa-light fa-thumbs-down",
|
|
575
|
+
ThumbsUp: "fa-light fa-thumbs-up",
|
|
576
|
+
Ticket: "fa-light fa-ticket",
|
|
577
|
+
Tickets: "fa-light fa-tickets",
|
|
578
|
+
Timer: "fa-light fa-timer",
|
|
579
|
+
Toilet: "fa-light fa-toilet",
|
|
580
|
+
Tornado: "fa-light fa-tornado",
|
|
581
|
+
TowerControl: "fa-light fa-tower-control",
|
|
582
|
+
Tractor: "fa-light fa-tractor",
|
|
583
|
+
TrafficCone: "fa-light fa-traffic-cone",
|
|
584
|
+
TrainTrack: "fa-light fa-train-track",
|
|
585
|
+
Transgender: "fa-light fa-transgender",
|
|
586
|
+
Trash: "fa-light fa-trash",
|
|
587
|
+
Trash2: "fa-light fa-trash-can",
|
|
588
|
+
TreeDeciduous: "fa-light fa-tree-deciduous",
|
|
589
|
+
TreePalm: "fa-light fa-tree-palm",
|
|
590
|
+
Trees: "fa-light fa-trees",
|
|
591
|
+
Trello: "fa-brands fa-trello",
|
|
592
|
+
TrendingDown: "fa-light fa-arrow-trend-down",
|
|
593
|
+
TrendingUp: "fa-light fa-arrow-trend-up",
|
|
594
|
+
Triangle: "fa-light fa-triangle",
|
|
595
|
+
TriangleAlert: "fa-light fa-triangle-exclamation",
|
|
596
|
+
Trophy: "fa-light fa-trophy",
|
|
597
|
+
Truck: "fa-light fa-truck",
|
|
598
|
+
Turntable: "fa-light fa-turntable",
|
|
599
|
+
Turtle: "fa-light fa-turtle",
|
|
600
|
+
Tv: "fa-light fa-tv",
|
|
601
|
+
Twitch: "fa-brands fa-twitch",
|
|
602
|
+
Twitter: "fa-brands fa-twitter",
|
|
603
|
+
Umbrella: "fa-light fa-umbrella",
|
|
604
|
+
Underline: "fa-light fa-underline",
|
|
605
|
+
UnlockKeyhole: "fa-light fa-unlock-keyhole",
|
|
606
|
+
Upload: "fa-light fa-upload",
|
|
607
|
+
Usb: "fa-brands fa-usb",
|
|
608
|
+
User: "fa-light fa-user",
|
|
609
|
+
UserCheck: "fa-light fa-user-check",
|
|
610
|
+
UserCircle: "fa-light fa-circle-user",
|
|
611
|
+
UserCog: "fa-light fa-user-gear",
|
|
612
|
+
UserLock: "fa-light fa-user-lock",
|
|
613
|
+
UserMinus: "fa-light fa-user-minus",
|
|
614
|
+
UserPen: "fa-light fa-user-pen",
|
|
615
|
+
UserPlus: "fa-light fa-user-plus",
|
|
616
|
+
UserRound: "fa-light fa-user",
|
|
617
|
+
Users: "fa-light fa-users",
|
|
618
|
+
UsersRound: "fa-light fa-user-group",
|
|
619
|
+
Utensils: "fa-light fa-utensils",
|
|
620
|
+
UtilityPole: "fa-light fa-utility-pole",
|
|
621
|
+
Van: "fa-light fa-van",
|
|
622
|
+
Vault: "fa-light fa-vault",
|
|
623
|
+
Venus: "fa-light fa-venus",
|
|
624
|
+
Video: "fa-light fa-video",
|
|
625
|
+
Voicemail: "fa-light fa-voicemail",
|
|
626
|
+
Volleyball: "fa-light fa-volleyball",
|
|
627
|
+
Volume: "fa-light fa-volume",
|
|
628
|
+
VolumeOff: "fa-light fa-volume-off",
|
|
629
|
+
Wallet: "fa-light fa-wallet",
|
|
630
|
+
Wand: "fa-light fa-wand",
|
|
631
|
+
WandSparkles: "fa-light fa-wand-sparkles",
|
|
632
|
+
Warehouse: "fa-light fa-warehouse",
|
|
633
|
+
WashingMachine: "fa-light fa-washing-machine",
|
|
634
|
+
Watch: "fa-light fa-watch",
|
|
635
|
+
Webhook: "fa-light fa-webhook",
|
|
636
|
+
Wheat: "fa-light fa-wheat",
|
|
637
|
+
Wifi: "fa-light fa-wifi",
|
|
638
|
+
WifiOff: "fa-light fa-wifi-slash",
|
|
639
|
+
Wind: "fa-light fa-wind",
|
|
640
|
+
Worm: "fa-light fa-worm",
|
|
641
|
+
Wrench: "fa-light fa-wrench",
|
|
642
|
+
X: "fa-light fa-xmark",
|
|
643
|
+
Youtube: "fa-brands fa-youtube",
|
|
644
|
+
Zap: "fa-light fa-bolt"
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
// ../ui/src/custom/icon-shared.ts
|
|
648
|
+
var LUCIDE_FA_MAP = lucide_fa_map_default;
|
|
649
|
+
var FALLBACK_FA = "fa-light fa-shapes";
|
|
650
|
+
var FA_STYLE_CLASS = {
|
|
651
|
+
solid: "fa-solid",
|
|
652
|
+
regular: "fa-regular",
|
|
653
|
+
light: "fa-light",
|
|
654
|
+
duotone: "fa-duotone",
|
|
655
|
+
brands: "fa-brands"
|
|
656
|
+
};
|
|
657
|
+
var STYLE_CLASS_SET = new Set(Object.values(FA_STYLE_CLASS));
|
|
658
|
+
function isFaIcon(name) {
|
|
659
|
+
return typeof name === "string" && name.startsWith("fa-");
|
|
660
|
+
}
|
|
661
|
+
function toFaValue(name) {
|
|
662
|
+
if (!name) return FALLBACK_FA;
|
|
663
|
+
if (isFaIcon(name)) return name;
|
|
664
|
+
return LUCIDE_FA_MAP[name] ?? FALLBACK_FA;
|
|
665
|
+
}
|
|
666
|
+
function applyIconStyleOverride(value, override) {
|
|
667
|
+
if (!override) return value;
|
|
668
|
+
const tokens = value.split(/\s+/).filter(Boolean);
|
|
669
|
+
if (tokens.includes("fa-brands")) return value;
|
|
670
|
+
const overrideClass = FA_STYLE_CLASS[override];
|
|
671
|
+
let replaced = false;
|
|
672
|
+
const next = tokens.map((token) => {
|
|
673
|
+
if (STYLE_CLASS_SET.has(token)) {
|
|
674
|
+
replaced = true;
|
|
675
|
+
return overrideClass;
|
|
676
|
+
}
|
|
677
|
+
return token;
|
|
678
|
+
});
|
|
679
|
+
if (!replaced) next.unshift(overrideClass);
|
|
680
|
+
return next.join(" ");
|
|
681
|
+
}
|
|
682
|
+
var SIZE_TOKEN = /(?:^|\s)(?:size|h|w)-(\d+(?:\.\d+)?)\b/;
|
|
683
|
+
function faFontSize(className) {
|
|
684
|
+
const match = className?.match(SIZE_TOKEN);
|
|
685
|
+
if (!match) return 16;
|
|
686
|
+
const units = Number(match[1]);
|
|
687
|
+
return Number.isFinite(units) ? units * 4 : 16;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
// ../ui/src/custom/icon.tsx
|
|
691
|
+
import { jsx } from "react/jsx-runtime";
|
|
692
|
+
var IconStyleOverrideContext = createContext(
|
|
693
|
+
null
|
|
694
|
+
);
|
|
695
|
+
function FaIcon({
|
|
696
|
+
value,
|
|
697
|
+
className,
|
|
698
|
+
style
|
|
699
|
+
}) {
|
|
700
|
+
const override = useContext(IconStyleOverrideContext);
|
|
701
|
+
const resolved = applyIconStyleOverride(value, override);
|
|
702
|
+
return /* @__PURE__ */ jsx(
|
|
703
|
+
"i",
|
|
704
|
+
{
|
|
705
|
+
className: cn(resolved, "inline-block leading-none", className),
|
|
706
|
+
style: { fontSize: faFontSize(className), ...style },
|
|
707
|
+
"aria-hidden": "true"
|
|
708
|
+
}
|
|
709
|
+
);
|
|
710
|
+
}
|
|
711
|
+
function Icon({ name, className, style }) {
|
|
712
|
+
return /* @__PURE__ */ jsx(FaIcon, { value: toFaValue(name), className, style });
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
// ../ui/src/shadcn/select.tsx
|
|
716
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
717
|
+
function collectOptions(node, options) {
|
|
718
|
+
React.Children.forEach(node, (child) => {
|
|
719
|
+
if (!React.isValidElement(
|
|
720
|
+
child
|
|
721
|
+
)) {
|
|
722
|
+
return;
|
|
723
|
+
}
|
|
724
|
+
if (child.type === SelectItem || child.type === SelectPrimitive.Item) {
|
|
725
|
+
if (child.props.value !== void 0) {
|
|
726
|
+
options.push({ value: child.props.value, label: child.props.children });
|
|
727
|
+
}
|
|
728
|
+
return;
|
|
729
|
+
}
|
|
730
|
+
collectOptions(child.props.children, options);
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
function deriveItems(children) {
|
|
734
|
+
const options = [];
|
|
735
|
+
collectOptions(children, options);
|
|
736
|
+
return options.length > 0 ? options : void 0;
|
|
737
|
+
}
|
|
738
|
+
function Select({
|
|
739
|
+
children,
|
|
740
|
+
items,
|
|
741
|
+
...props
|
|
742
|
+
}) {
|
|
743
|
+
return /* @__PURE__ */ jsx2(SelectPrimitive.Root, { items: items ?? deriveItems(children), ...props, children });
|
|
744
|
+
}
|
|
745
|
+
function SelectGroup({ className, ...props }) {
|
|
746
|
+
return /* @__PURE__ */ jsx2(
|
|
747
|
+
SelectPrimitive.Group,
|
|
748
|
+
{
|
|
749
|
+
"data-slot": "select-group",
|
|
750
|
+
className: cn("scroll-my-1", className),
|
|
751
|
+
...props
|
|
752
|
+
}
|
|
753
|
+
);
|
|
754
|
+
}
|
|
755
|
+
function SelectValue({ className, ...props }) {
|
|
756
|
+
return /* @__PURE__ */ jsx2(
|
|
757
|
+
SelectPrimitive.Value,
|
|
758
|
+
{
|
|
759
|
+
"data-slot": "select-value",
|
|
760
|
+
className: cn("flex flex-1 text-left", className),
|
|
761
|
+
...props
|
|
762
|
+
}
|
|
763
|
+
);
|
|
764
|
+
}
|
|
765
|
+
function SelectTrigger({
|
|
766
|
+
className,
|
|
767
|
+
size = "default",
|
|
768
|
+
children,
|
|
769
|
+
...props
|
|
770
|
+
}) {
|
|
771
|
+
return /* @__PURE__ */ jsxs(
|
|
772
|
+
SelectPrimitive.Trigger,
|
|
773
|
+
{
|
|
774
|
+
"data-slot": "select-trigger",
|
|
775
|
+
"data-size": size,
|
|
776
|
+
className: cn(
|
|
777
|
+
"border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='text-'])]:text-muted-foreground flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
778
|
+
className
|
|
779
|
+
),
|
|
780
|
+
...props,
|
|
781
|
+
children: [
|
|
782
|
+
children,
|
|
783
|
+
/* @__PURE__ */ jsx2(
|
|
784
|
+
SelectPrimitive.Icon,
|
|
785
|
+
{
|
|
786
|
+
render: /* @__PURE__ */ jsx2(
|
|
787
|
+
Icon,
|
|
788
|
+
{
|
|
789
|
+
name: "fa-light fa-chevron-down",
|
|
790
|
+
className: "size-4 opacity-50"
|
|
791
|
+
}
|
|
792
|
+
)
|
|
793
|
+
}
|
|
794
|
+
)
|
|
795
|
+
]
|
|
796
|
+
}
|
|
797
|
+
);
|
|
798
|
+
}
|
|
799
|
+
function SelectContent({
|
|
800
|
+
className,
|
|
801
|
+
children,
|
|
802
|
+
side = "bottom",
|
|
803
|
+
sideOffset = 4,
|
|
804
|
+
align = "start",
|
|
805
|
+
alignOffset = 0,
|
|
806
|
+
// Base UI defaults this to true, which overlaps the popup on top of the
|
|
807
|
+
// trigger (native macOS select behaviour) for mouse input. That hides the
|
|
808
|
+
// control being edited, so the dropdown drops below the trigger instead.
|
|
809
|
+
alignItemWithTrigger = false,
|
|
810
|
+
...props
|
|
811
|
+
}) {
|
|
812
|
+
return /* @__PURE__ */ jsx2(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx2(
|
|
813
|
+
SelectPrimitive.Positioner,
|
|
814
|
+
{
|
|
815
|
+
side,
|
|
816
|
+
sideOffset,
|
|
817
|
+
align,
|
|
818
|
+
alignOffset,
|
|
819
|
+
alignItemWithTrigger,
|
|
820
|
+
className: "isolate z-50",
|
|
821
|
+
children: /* @__PURE__ */ jsxs(
|
|
822
|
+
SelectPrimitive.Popup,
|
|
823
|
+
{
|
|
824
|
+
"data-slot": "select-content",
|
|
825
|
+
className: cn(
|
|
826
|
+
"bg-popover text-popover-foreground relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md transition-[translate,scale,opacity] data-ending-style:scale-95 data-ending-style:opacity-0 data-starting-style:scale-95 data-starting-style:opacity-0",
|
|
827
|
+
className
|
|
828
|
+
),
|
|
829
|
+
...props,
|
|
830
|
+
children: [
|
|
831
|
+
/* @__PURE__ */ jsx2(SelectScrollUpButton, {}),
|
|
832
|
+
/* @__PURE__ */ jsx2(SelectPrimitive.List, { children }),
|
|
833
|
+
/* @__PURE__ */ jsx2(SelectScrollDownButton, {})
|
|
834
|
+
]
|
|
835
|
+
}
|
|
836
|
+
)
|
|
837
|
+
}
|
|
838
|
+
) });
|
|
839
|
+
}
|
|
840
|
+
function SelectLabel({
|
|
841
|
+
className,
|
|
842
|
+
...props
|
|
843
|
+
}) {
|
|
844
|
+
return /* @__PURE__ */ jsx2(
|
|
845
|
+
SelectPrimitive.GroupLabel,
|
|
846
|
+
{
|
|
847
|
+
"data-slot": "select-label",
|
|
848
|
+
className: cn("text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
849
|
+
...props
|
|
850
|
+
}
|
|
851
|
+
);
|
|
852
|
+
}
|
|
853
|
+
function SelectItem({
|
|
854
|
+
className,
|
|
855
|
+
children,
|
|
856
|
+
...props
|
|
857
|
+
}) {
|
|
858
|
+
return /* @__PURE__ */ jsxs(
|
|
859
|
+
SelectPrimitive.Item,
|
|
860
|
+
{
|
|
861
|
+
"data-slot": "select-item",
|
|
862
|
+
className: cn(
|
|
863
|
+
"data-highlighted:bg-accent data-highlighted:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
864
|
+
className
|
|
865
|
+
),
|
|
866
|
+
...props,
|
|
867
|
+
children: [
|
|
868
|
+
/* @__PURE__ */ jsx2(SelectPrimitive.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
|
|
869
|
+
/* @__PURE__ */ jsx2(
|
|
870
|
+
SelectPrimitive.ItemIndicator,
|
|
871
|
+
{
|
|
872
|
+
render: /* @__PURE__ */ jsx2(
|
|
873
|
+
"span",
|
|
874
|
+
{
|
|
875
|
+
"data-slot": "select-item-indicator",
|
|
876
|
+
className: "absolute right-2 flex size-3.5 items-center justify-center"
|
|
877
|
+
}
|
|
878
|
+
),
|
|
879
|
+
children: /* @__PURE__ */ jsx2(Icon, { name: "fa-light fa-check", className: "size-4" })
|
|
880
|
+
}
|
|
881
|
+
)
|
|
882
|
+
]
|
|
883
|
+
}
|
|
884
|
+
);
|
|
885
|
+
}
|
|
886
|
+
function SelectSeparator({
|
|
887
|
+
className,
|
|
888
|
+
...props
|
|
889
|
+
}) {
|
|
890
|
+
return /* @__PURE__ */ jsx2(
|
|
891
|
+
SelectPrimitive.Separator,
|
|
892
|
+
{
|
|
893
|
+
"data-slot": "select-separator",
|
|
894
|
+
className: cn("bg-border pointer-events-none -mx-1 my-1 h-px", className),
|
|
895
|
+
...props
|
|
896
|
+
}
|
|
897
|
+
);
|
|
898
|
+
}
|
|
899
|
+
function SelectScrollUpButton({
|
|
900
|
+
className,
|
|
901
|
+
...props
|
|
902
|
+
}) {
|
|
903
|
+
return /* @__PURE__ */ jsx2(
|
|
904
|
+
SelectPrimitive.ScrollUpArrow,
|
|
905
|
+
{
|
|
906
|
+
"data-slot": "select-scroll-up-button",
|
|
907
|
+
className: cn(
|
|
908
|
+
"bg-popover top-0 flex w-full cursor-default items-center justify-center py-1",
|
|
909
|
+
className
|
|
910
|
+
),
|
|
911
|
+
...props,
|
|
912
|
+
children: /* @__PURE__ */ jsx2(Icon, { name: "fa-light fa-chevron-up", className: "size-4" })
|
|
913
|
+
}
|
|
914
|
+
);
|
|
915
|
+
}
|
|
916
|
+
function SelectScrollDownButton({
|
|
917
|
+
className,
|
|
918
|
+
...props
|
|
919
|
+
}) {
|
|
920
|
+
return /* @__PURE__ */ jsx2(
|
|
921
|
+
SelectPrimitive.ScrollDownArrow,
|
|
922
|
+
{
|
|
923
|
+
"data-slot": "select-scroll-down-button",
|
|
924
|
+
className: cn(
|
|
925
|
+
"bg-popover bottom-0 flex w-full cursor-default items-center justify-center py-1",
|
|
926
|
+
className
|
|
927
|
+
),
|
|
928
|
+
...props,
|
|
929
|
+
children: /* @__PURE__ */ jsx2(Icon, { name: "fa-light fa-chevron-down", className: "size-4" })
|
|
930
|
+
}
|
|
931
|
+
);
|
|
932
|
+
}
|
|
933
|
+
export {
|
|
934
|
+
Select,
|
|
935
|
+
SelectContent,
|
|
936
|
+
SelectGroup,
|
|
937
|
+
SelectItem,
|
|
938
|
+
SelectLabel,
|
|
939
|
+
SelectScrollDownButton,
|
|
940
|
+
SelectScrollUpButton,
|
|
941
|
+
SelectSeparator,
|
|
942
|
+
SelectTrigger,
|
|
943
|
+
SelectValue
|
|
944
|
+
};
|