@almadar/ui 5.113.0 → 5.115.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/dist/avl/index.cjs +240 -1055
- package/dist/avl/index.js +235 -1050
- package/dist/{cn-BkQrMR01.d.cts → cn-D3H9UzCW.d.cts} +1 -1
- package/dist/{cn-CTEFm9PC.d.ts → cn-Dm0VrLRG.d.ts} +1 -1
- package/dist/components/index.cjs +132 -680
- package/dist/components/index.d.cts +7 -3
- package/dist/components/index.d.ts +7 -3
- package/dist/components/index.js +131 -679
- package/dist/lib/drawable/three/index.cjs +58 -38
- package/dist/lib/drawable/three/index.d.cts +3 -2
- package/dist/lib/drawable/three/index.d.ts +3 -2
- package/dist/lib/drawable/three/index.js +58 -38
- package/dist/lib/index.d.cts +2 -2
- package/dist/lib/index.d.ts +2 -2
- package/dist/marketing/index.cjs +16 -637
- package/dist/marketing/index.js +16 -637
- package/dist/{paintDispatch-DR942knx.d.cts → paintDispatch-BXJgISot.d.cts} +2 -0
- package/dist/{paintDispatch-DR942knx.d.ts → paintDispatch-BXJgISot.d.ts} +2 -0
- package/dist/providers/index.cjs +132 -680
- package/dist/providers/index.js +131 -679
- package/dist/runtime/index.cjs +267 -1089
- package/dist/runtime/index.d.cts +11 -112
- package/dist/runtime/index.d.ts +11 -112
- package/dist/runtime/index.js +230 -1078
- package/package.json +3 -3
package/dist/marketing/index.js
CHANGED
|
@@ -3033,14 +3033,7 @@ var Typography = ({
|
|
|
3033
3033
|
};
|
|
3034
3034
|
Typography.displayName = "Typography";
|
|
3035
3035
|
var DEFAULT_FAMILY = "lucide";
|
|
3036
|
-
var VALID_FAMILIES = [
|
|
3037
|
-
"lucide",
|
|
3038
|
-
"phosphor-outline",
|
|
3039
|
-
"phosphor-fill",
|
|
3040
|
-
"phosphor-duotone",
|
|
3041
|
-
"tabler",
|
|
3042
|
-
"fa-solid"
|
|
3043
|
-
];
|
|
3036
|
+
var VALID_FAMILIES = [DEFAULT_FAMILY];
|
|
3044
3037
|
function getCurrentIconFamily() {
|
|
3045
3038
|
if (typeof window === "undefined" || typeof document === "undefined") {
|
|
3046
3039
|
return DEFAULT_FAMILY;
|
|
@@ -3094,42 +3087,6 @@ function kebabToPascal(name) {
|
|
|
3094
3087
|
return part.charAt(0).toUpperCase() + part.slice(1);
|
|
3095
3088
|
}).join("");
|
|
3096
3089
|
}
|
|
3097
|
-
var libPromises = /* @__PURE__ */ new Map();
|
|
3098
|
-
function loadLib(key, importer) {
|
|
3099
|
-
let p = libPromises.get(key);
|
|
3100
|
-
if (!p) {
|
|
3101
|
-
p = importer();
|
|
3102
|
-
libPromises.set(key, p);
|
|
3103
|
-
}
|
|
3104
|
-
return p;
|
|
3105
|
-
}
|
|
3106
|
-
function lazyFamilyIcon(libKey, importer, pick, fallbackName, family) {
|
|
3107
|
-
const Lazy = React12__default.lazy(async () => {
|
|
3108
|
-
const lib = await loadLib(libKey, importer);
|
|
3109
|
-
const Comp = pick(lib);
|
|
3110
|
-
if (!Comp) {
|
|
3111
|
-
warnFallback(fallbackName, family);
|
|
3112
|
-
return { default: makeLucideAdapter(fallbackName, true) };
|
|
3113
|
-
}
|
|
3114
|
-
return { default: Comp };
|
|
3115
|
-
});
|
|
3116
|
-
const Wrapped = (props) => /* @__PURE__ */ jsx(
|
|
3117
|
-
React12__default.Suspense,
|
|
3118
|
-
{
|
|
3119
|
-
fallback: /* @__PURE__ */ jsx(
|
|
3120
|
-
"span",
|
|
3121
|
-
{
|
|
3122
|
-
"aria-hidden": true,
|
|
3123
|
-
className: props.className,
|
|
3124
|
-
style: { display: "inline-block", ...props.style }
|
|
3125
|
-
}
|
|
3126
|
-
),
|
|
3127
|
-
children: /* @__PURE__ */ jsx(Lazy, { ...props })
|
|
3128
|
-
}
|
|
3129
|
-
);
|
|
3130
|
-
Wrapped.displayName = `Lazy.${libKey}.${fallbackName}`;
|
|
3131
|
-
return Wrapped;
|
|
3132
|
-
}
|
|
3133
3090
|
var lucideAliases = {
|
|
3134
3091
|
close: LucideIcons2.X,
|
|
3135
3092
|
trash: LucideIcons2.Trash2,
|
|
@@ -3155,600 +3112,22 @@ function resolveLucide(name) {
|
|
|
3155
3112
|
if (isComponentLike(asIs)) return asIs;
|
|
3156
3113
|
return LucideIcons2.HelpCircle;
|
|
3157
3114
|
}
|
|
3158
|
-
|
|
3159
|
-
// lucide name → phosphor PascalCase name
|
|
3160
|
-
// Actions
|
|
3161
|
-
plus: "Plus",
|
|
3162
|
-
minus: "Minus",
|
|
3163
|
-
x: "X",
|
|
3164
|
-
check: "Check",
|
|
3165
|
-
close: "X",
|
|
3166
|
-
edit: "PencilSimple",
|
|
3167
|
-
pencil: "PencilSimple",
|
|
3168
|
-
trash: "Trash",
|
|
3169
|
-
save: "FloppyDisk",
|
|
3170
|
-
copy: "Copy",
|
|
3171
|
-
share: "Share",
|
|
3172
|
-
send: "PaperPlaneRight",
|
|
3173
|
-
download: "DownloadSimple",
|
|
3174
|
-
upload: "UploadSimple",
|
|
3175
|
-
archive: "Archive",
|
|
3176
|
-
refresh: "ArrowsClockwise",
|
|
3177
|
-
loader: "CircleNotch",
|
|
3178
|
-
link: "Link",
|
|
3179
|
-
paperclip: "Paperclip",
|
|
3180
|
-
// Navigation
|
|
3181
|
-
"chevron-down": "CaretDown",
|
|
3182
|
-
"chevron-up": "CaretUp",
|
|
3183
|
-
"chevron-left": "CaretLeft",
|
|
3184
|
-
"chevron-right": "CaretRight",
|
|
3185
|
-
"arrow-up": "ArrowUp",
|
|
3186
|
-
"arrow-down": "ArrowDown",
|
|
3187
|
-
"arrow-left": "ArrowLeft",
|
|
3188
|
-
"arrow-right": "ArrowRight",
|
|
3189
|
-
menu: "List",
|
|
3190
|
-
more: "DotsThree",
|
|
3191
|
-
"more-vertical": "DotsThreeVertical",
|
|
3192
|
-
"more-horizontal": "DotsThree",
|
|
3193
|
-
external: "ArrowSquareOut",
|
|
3194
|
-
"external-link": "ArrowSquareOut",
|
|
3195
|
-
// Files
|
|
3196
|
-
file: "File",
|
|
3197
|
-
"file-text": "FileText",
|
|
3198
|
-
"file-plus": "FilePlus",
|
|
3199
|
-
"file-minus": "FileMinus",
|
|
3200
|
-
folder: "Folder",
|
|
3201
|
-
"folder-open": "FolderOpen",
|
|
3202
|
-
document: "FileText",
|
|
3203
|
-
// Charts
|
|
3204
|
-
"bar-chart": "ChartBar",
|
|
3205
|
-
"bar-chart-2": "ChartBar",
|
|
3206
|
-
"bar-chart-3": "ChartBar",
|
|
3207
|
-
"line-chart": "ChartLine",
|
|
3208
|
-
"pie-chart": "ChartPie",
|
|
3209
|
-
activity: "Pulse",
|
|
3210
|
-
"trending-up": "TrendUp",
|
|
3211
|
-
"trending-down": "TrendDown",
|
|
3212
|
-
// Messages
|
|
3213
|
-
message: "ChatCircle",
|
|
3214
|
-
"message-circle": "ChatCircle",
|
|
3215
|
-
"message-square": "ChatText",
|
|
3216
|
-
"messages-square": "ChatsCircle",
|
|
3217
|
-
comment: "ChatCircle",
|
|
3218
|
-
comments: "ChatsCircle",
|
|
3219
|
-
inbox: "Tray",
|
|
3220
|
-
mail: "Envelope",
|
|
3221
|
-
envelope: "Envelope",
|
|
3222
|
-
// Status
|
|
3223
|
-
"alert-circle": "WarningCircle",
|
|
3224
|
-
"alert-triangle": "Warning",
|
|
3225
|
-
"check-circle": "CheckCircle",
|
|
3226
|
-
"x-circle": "XCircle",
|
|
3227
|
-
info: "Info",
|
|
3228
|
-
"help-circle": "Question",
|
|
3229
|
-
"life-buoy": "Lifebuoy",
|
|
3230
|
-
lifebuoy: "Lifebuoy",
|
|
3231
|
-
warning: "Warning",
|
|
3232
|
-
error: "WarningCircle",
|
|
3233
|
-
// Media
|
|
3234
|
-
image: "Image",
|
|
3235
|
-
video: "VideoCamera",
|
|
3236
|
-
film: "FilmStrip",
|
|
3237
|
-
camera: "Camera",
|
|
3238
|
-
music: "MusicNote",
|
|
3239
|
-
play: "Play",
|
|
3240
|
-
pause: "Pause",
|
|
3241
|
-
stop: "Stop",
|
|
3242
|
-
"skip-forward": "SkipForward",
|
|
3243
|
-
"skip-back": "SkipBack",
|
|
3244
|
-
volume: "SpeakerHigh",
|
|
3245
|
-
"volume-2": "SpeakerHigh",
|
|
3246
|
-
"volume-x": "SpeakerX",
|
|
3247
|
-
mic: "Microphone",
|
|
3248
|
-
"mic-off": "MicrophoneSlash",
|
|
3249
|
-
// People
|
|
3250
|
-
user: "User",
|
|
3251
|
-
users: "Users",
|
|
3252
|
-
"user-plus": "UserPlus",
|
|
3253
|
-
"user-check": "UserCheck",
|
|
3254
|
-
// Time
|
|
3255
|
-
calendar: "Calendar",
|
|
3256
|
-
clock: "Clock",
|
|
3257
|
-
timer: "Timer",
|
|
3258
|
-
// Location
|
|
3259
|
-
map: "MapTrifold",
|
|
3260
|
-
"map-pin": "MapPin",
|
|
3261
|
-
navigation: "NavigationArrow",
|
|
3262
|
-
compass: "Compass",
|
|
3263
|
-
globe: "Globe",
|
|
3264
|
-
target: "Target",
|
|
3265
|
-
// Project / layout
|
|
3266
|
-
kanban: "Kanban",
|
|
3267
|
-
list: "List",
|
|
3268
|
-
table: "Table",
|
|
3269
|
-
grid: "GridFour",
|
|
3270
|
-
layout: "Layout",
|
|
3271
|
-
columns: "Columns",
|
|
3272
|
-
rows: "Rows",
|
|
3273
|
-
// Misc
|
|
3274
|
-
bell: "Bell",
|
|
3275
|
-
bookmark: "Bookmark",
|
|
3276
|
-
briefcase: "Briefcase",
|
|
3277
|
-
flag: "Flag",
|
|
3278
|
-
tag: "Tag",
|
|
3279
|
-
tags: "Tag",
|
|
3280
|
-
star: "Star",
|
|
3281
|
-
heart: "Heart",
|
|
3282
|
-
home: "House",
|
|
3283
|
-
settings: "Gear",
|
|
3284
|
-
eye: "Eye",
|
|
3285
|
-
"eye-off": "EyeSlash",
|
|
3286
|
-
lock: "Lock",
|
|
3287
|
-
unlock: "LockOpen",
|
|
3288
|
-
key: "Key",
|
|
3289
|
-
shield: "Shield",
|
|
3290
|
-
search: "MagnifyingGlass",
|
|
3291
|
-
filter: "Funnel",
|
|
3292
|
-
"sort-asc": "SortAscending",
|
|
3293
|
-
"sort-desc": "SortDescending",
|
|
3294
|
-
zap: "Lightning",
|
|
3295
|
-
sparkles: "Sparkle",
|
|
3296
|
-
// Code
|
|
3297
|
-
code: "Code",
|
|
3298
|
-
terminal: "Terminal",
|
|
3299
|
-
database: "Database",
|
|
3300
|
-
server: "HardDrives",
|
|
3301
|
-
cloud: "Cloud",
|
|
3302
|
-
wifi: "WifiHigh",
|
|
3303
|
-
package: "Package",
|
|
3304
|
-
box: "Package",
|
|
3305
|
-
// Theme
|
|
3306
|
-
sun: "Sun",
|
|
3307
|
-
moon: "Moon",
|
|
3308
|
-
// Phone
|
|
3309
|
-
phone: "Phone",
|
|
3310
|
-
printer: "Printer",
|
|
3311
|
-
// Hierarchy
|
|
3312
|
-
tree: "Tree",
|
|
3313
|
-
network: "Network"
|
|
3314
|
-
};
|
|
3315
|
-
function resolvePhosphor(name, weight, family) {
|
|
3316
|
-
const target = phosphorAliases[name] ?? kebabToPascal(name);
|
|
3317
|
-
return lazyFamilyIcon(
|
|
3318
|
-
"phosphor",
|
|
3319
|
-
() => import('@phosphor-icons/react'),
|
|
3320
|
-
(lib) => {
|
|
3321
|
-
const PhosphorComp = lib[target];
|
|
3322
|
-
if (!PhosphorComp) return null;
|
|
3323
|
-
const Component = PhosphorComp;
|
|
3324
|
-
const Adapter = (props) => /* @__PURE__ */ jsx(
|
|
3325
|
-
Component,
|
|
3326
|
-
{
|
|
3327
|
-
weight,
|
|
3328
|
-
className: props.className,
|
|
3329
|
-
style: props.style,
|
|
3330
|
-
size: props.size ?? "1em"
|
|
3331
|
-
}
|
|
3332
|
-
);
|
|
3333
|
-
Adapter.displayName = `Phosphor.${target}.${weight}`;
|
|
3334
|
-
return Adapter;
|
|
3335
|
-
},
|
|
3336
|
-
name,
|
|
3337
|
-
family
|
|
3338
|
-
);
|
|
3339
|
-
}
|
|
3340
|
-
var tablerAliases = {
|
|
3341
|
-
// lucide name → tabler suffix (after the `Icon` prefix)
|
|
3342
|
-
// Actions
|
|
3343
|
-
plus: "Plus",
|
|
3344
|
-
minus: "Minus",
|
|
3345
|
-
x: "X",
|
|
3346
|
-
check: "Check",
|
|
3347
|
-
close: "X",
|
|
3348
|
-
edit: "Pencil",
|
|
3349
|
-
pencil: "Pencil",
|
|
3350
|
-
trash: "Trash",
|
|
3351
|
-
save: "DeviceFloppy",
|
|
3352
|
-
copy: "Copy",
|
|
3353
|
-
share: "Share",
|
|
3354
|
-
send: "Send",
|
|
3355
|
-
download: "Download",
|
|
3356
|
-
upload: "Upload",
|
|
3357
|
-
archive: "Archive",
|
|
3358
|
-
refresh: "Refresh",
|
|
3359
|
-
loader: "Loader2",
|
|
3360
|
-
link: "Link",
|
|
3361
|
-
paperclip: "Paperclip",
|
|
3362
|
-
external: "ExternalLink",
|
|
3363
|
-
"external-link": "ExternalLink",
|
|
3364
|
-
// Navigation
|
|
3365
|
-
"chevron-down": "ChevronDown",
|
|
3366
|
-
"chevron-up": "ChevronUp",
|
|
3367
|
-
"chevron-left": "ChevronLeft",
|
|
3368
|
-
"chevron-right": "ChevronRight",
|
|
3369
|
-
"arrow-down": "ArrowDown",
|
|
3370
|
-
"arrow-up": "ArrowUp",
|
|
3371
|
-
"arrow-left": "ArrowLeft",
|
|
3372
|
-
"arrow-right": "ArrowRight",
|
|
3373
|
-
menu: "Menu2",
|
|
3374
|
-
more: "Dots",
|
|
3375
|
-
"more-vertical": "DotsVertical",
|
|
3376
|
-
// Files
|
|
3377
|
-
file: "File",
|
|
3378
|
-
"file-text": "FileText",
|
|
3379
|
-
"file-plus": "FilePlus",
|
|
3380
|
-
"file-check": "FileCheck",
|
|
3381
|
-
"file-minus": "FileMinus",
|
|
3382
|
-
folder: "Folder",
|
|
3383
|
-
"folder-open": "FolderOpen",
|
|
3384
|
-
document: "FileText",
|
|
3385
|
-
// Charts
|
|
3386
|
-
"bar-chart": "ChartBar",
|
|
3387
|
-
"bar-chart-2": "ChartBar",
|
|
3388
|
-
"bar-chart-3": "ChartBar",
|
|
3389
|
-
"line-chart": "ChartLine",
|
|
3390
|
-
"pie-chart": "ChartPie",
|
|
3391
|
-
activity: "Activity",
|
|
3392
|
-
"trending-up": "TrendingUp",
|
|
3393
|
-
"trending-down": "TrendingDown",
|
|
3394
|
-
// Messages
|
|
3395
|
-
message: "Message",
|
|
3396
|
-
"message-circle": "MessageCircle",
|
|
3397
|
-
"message-square": "Message2",
|
|
3398
|
-
"messages-square": "Messages",
|
|
3399
|
-
comment: "Message",
|
|
3400
|
-
comments: "Messages",
|
|
3401
|
-
inbox: "Inbox",
|
|
3402
|
-
mail: "Mail",
|
|
3403
|
-
envelope: "Mail",
|
|
3404
|
-
// Status
|
|
3405
|
-
"alert-circle": "AlertCircle",
|
|
3406
|
-
"alert-triangle": "AlertTriangle",
|
|
3407
|
-
"check-circle": "CircleCheck",
|
|
3408
|
-
"x-circle": "CircleX",
|
|
3409
|
-
info: "InfoCircle",
|
|
3410
|
-
"help-circle": "HelpCircle",
|
|
3411
|
-
"life-buoy": "Lifebuoy",
|
|
3412
|
-
warning: "AlertTriangle",
|
|
3413
|
-
error: "AlertOctagon",
|
|
3414
|
-
// Media
|
|
3415
|
-
image: "Photo",
|
|
3416
|
-
video: "Video",
|
|
3417
|
-
camera: "Camera",
|
|
3418
|
-
music: "Music",
|
|
3419
|
-
play: "PlayerPlay",
|
|
3420
|
-
pause: "PlayerPause",
|
|
3421
|
-
stop: "PlayerStop",
|
|
3422
|
-
"skip-forward": "PlayerSkipForward",
|
|
3423
|
-
"skip-back": "PlayerSkipBack",
|
|
3424
|
-
volume: "Volume",
|
|
3425
|
-
"volume-2": "Volume",
|
|
3426
|
-
"volume-x": "VolumeOff",
|
|
3427
|
-
mic: "Microphone",
|
|
3428
|
-
"mic-off": "MicrophoneOff",
|
|
3429
|
-
// People
|
|
3430
|
-
user: "User",
|
|
3431
|
-
users: "Users",
|
|
3432
|
-
"user-plus": "UserPlus",
|
|
3433
|
-
"user-check": "UserCheck",
|
|
3434
|
-
// Time
|
|
3435
|
-
calendar: "Calendar",
|
|
3436
|
-
clock: "Clock",
|
|
3437
|
-
timer: "Hourglass",
|
|
3438
|
-
// Location
|
|
3439
|
-
map: "Map",
|
|
3440
|
-
"map-pin": "MapPin",
|
|
3441
|
-
navigation: "Navigation",
|
|
3442
|
-
compass: "Compass",
|
|
3443
|
-
globe: "World",
|
|
3444
|
-
target: "Target",
|
|
3445
|
-
// Project / layout
|
|
3446
|
-
kanban: "LayoutKanban",
|
|
3447
|
-
list: "List",
|
|
3448
|
-
table: "Table",
|
|
3449
|
-
grid: "LayoutGrid",
|
|
3450
|
-
layout: "Layout",
|
|
3451
|
-
columns: "LayoutColumns",
|
|
3452
|
-
rows: "LayoutRows",
|
|
3453
|
-
// Misc
|
|
3454
|
-
bell: "Bell",
|
|
3455
|
-
bookmark: "Bookmark",
|
|
3456
|
-
briefcase: "Briefcase",
|
|
3457
|
-
flag: "Flag",
|
|
3458
|
-
tag: "Tag",
|
|
3459
|
-
tags: "Tags",
|
|
3460
|
-
star: "Star",
|
|
3461
|
-
heart: "Heart",
|
|
3462
|
-
home: "Home",
|
|
3463
|
-
settings: "Settings",
|
|
3464
|
-
eye: "Eye",
|
|
3465
|
-
"eye-off": "EyeOff",
|
|
3466
|
-
lock: "Lock",
|
|
3467
|
-
unlock: "LockOpen",
|
|
3468
|
-
key: "Key",
|
|
3469
|
-
shield: "Shield",
|
|
3470
|
-
search: "Search",
|
|
3471
|
-
filter: "Filter",
|
|
3472
|
-
"sort-asc": "SortAscending",
|
|
3473
|
-
"sort-desc": "SortDescending",
|
|
3474
|
-
zap: "Bolt",
|
|
3475
|
-
sparkles: "Sparkles",
|
|
3476
|
-
// Code / data
|
|
3477
|
-
code: "Code",
|
|
3478
|
-
terminal: "Terminal",
|
|
3479
|
-
database: "Database",
|
|
3480
|
-
server: "Server",
|
|
3481
|
-
cloud: "Cloud",
|
|
3482
|
-
wifi: "Wifi",
|
|
3483
|
-
package: "Package",
|
|
3484
|
-
box: "Box",
|
|
3485
|
-
// Theme
|
|
3486
|
-
sun: "Sun",
|
|
3487
|
-
moon: "Moon",
|
|
3488
|
-
// Phone
|
|
3489
|
-
phone: "Phone",
|
|
3490
|
-
printer: "Printer",
|
|
3491
|
-
// Hierarchy
|
|
3492
|
-
tree: "Hierarchy",
|
|
3493
|
-
network: "Network"
|
|
3494
|
-
};
|
|
3495
|
-
function resolveTabler(name, family) {
|
|
3496
|
-
const suffix = tablerAliases[name] ?? kebabToPascal(name);
|
|
3497
|
-
const target = `Icon${suffix}`;
|
|
3498
|
-
return lazyFamilyIcon(
|
|
3499
|
-
"tabler",
|
|
3500
|
-
() => import('@tabler/icons-react'),
|
|
3501
|
-
(lib) => {
|
|
3502
|
-
const TablerComp = lib[target];
|
|
3503
|
-
if (!TablerComp) return null;
|
|
3504
|
-
const Component = TablerComp;
|
|
3505
|
-
const Adapter = (props) => /* @__PURE__ */ jsx(
|
|
3506
|
-
Component,
|
|
3507
|
-
{
|
|
3508
|
-
stroke: props.strokeWidth ?? 1.5,
|
|
3509
|
-
className: props.className,
|
|
3510
|
-
style: props.style,
|
|
3511
|
-
size: props.size ?? 24
|
|
3512
|
-
}
|
|
3513
|
-
);
|
|
3514
|
-
Adapter.displayName = `Tabler.${target}`;
|
|
3515
|
-
return Adapter;
|
|
3516
|
-
},
|
|
3517
|
-
name,
|
|
3518
|
-
family
|
|
3519
|
-
);
|
|
3520
|
-
}
|
|
3521
|
-
var faAliases = {
|
|
3522
|
-
// lucide name → fa-solid suffix (after the `Fa` prefix).
|
|
3523
|
-
// react-icons/fa ships FontAwesome 5 — names like `FaFileText` don't exist
|
|
3524
|
-
// (FA renamed to `FaFileAlt`). When you see a console.warn from
|
|
3525
|
-
// [iconFamily] about an unmapped lucide name in this family, add the
|
|
3526
|
-
// closest FA5 sibling here so the fallback stays in-family.
|
|
3527
|
-
search: "Search",
|
|
3528
|
-
close: "Times",
|
|
3529
|
-
x: "Times",
|
|
3530
|
-
loader: "Spinner",
|
|
3531
|
-
refresh: "Sync",
|
|
3532
|
-
"sort-asc": "SortAmountUp",
|
|
3533
|
-
"sort-desc": "SortAmountDown",
|
|
3534
|
-
"chevron-down": "ChevronDown",
|
|
3535
|
-
"chevron-up": "ChevronUp",
|
|
3536
|
-
"chevron-left": "ChevronLeft",
|
|
3537
|
-
"chevron-right": "ChevronRight",
|
|
3538
|
-
"help-circle": "QuestionCircle",
|
|
3539
|
-
"alert-triangle": "ExclamationTriangle",
|
|
3540
|
-
"alert-circle": "ExclamationCircle",
|
|
3541
|
-
"check-circle": "CheckCircle",
|
|
3542
|
-
"x-circle": "TimesCircle",
|
|
3543
|
-
edit: "Edit",
|
|
3544
|
-
pencil: "PencilAlt",
|
|
3545
|
-
trash: "Trash",
|
|
3546
|
-
send: "PaperPlane",
|
|
3547
|
-
share: "ShareAlt",
|
|
3548
|
-
external: "ExternalLinkAlt",
|
|
3549
|
-
plus: "Plus",
|
|
3550
|
-
minus: "Minus",
|
|
3551
|
-
check: "Check",
|
|
3552
|
-
star: "Star",
|
|
3553
|
-
heart: "Heart",
|
|
3554
|
-
home: "Home",
|
|
3555
|
-
user: "User",
|
|
3556
|
-
users: "Users",
|
|
3557
|
-
"user-plus": "UserPlus",
|
|
3558
|
-
"user-check": "UserCheck",
|
|
3559
|
-
settings: "Cog",
|
|
3560
|
-
menu: "Bars",
|
|
3561
|
-
"arrow-up": "ArrowUp",
|
|
3562
|
-
"arrow-down": "ArrowDown",
|
|
3563
|
-
"arrow-left": "ArrowLeft",
|
|
3564
|
-
"arrow-right": "ArrowRight",
|
|
3565
|
-
copy: "Copy",
|
|
3566
|
-
download: "Download",
|
|
3567
|
-
upload: "Upload",
|
|
3568
|
-
filter: "Filter",
|
|
3569
|
-
calendar: "Calendar",
|
|
3570
|
-
clock: "Clock",
|
|
3571
|
-
bell: "Bell",
|
|
3572
|
-
mail: "Envelope",
|
|
3573
|
-
envelope: "Envelope",
|
|
3574
|
-
lock: "Lock",
|
|
3575
|
-
unlock: "LockOpen",
|
|
3576
|
-
eye: "Eye",
|
|
3577
|
-
"eye-off": "EyeSlash",
|
|
3578
|
-
more: "EllipsisH",
|
|
3579
|
-
"more-vertical": "EllipsisV",
|
|
3580
|
-
info: "InfoCircle",
|
|
3581
|
-
warning: "ExclamationTriangle",
|
|
3582
|
-
error: "ExclamationCircle",
|
|
3583
|
-
// Time
|
|
3584
|
-
timer: "Hourglass",
|
|
3585
|
-
// Files (FA renamed FileText → FileAlt)
|
|
3586
|
-
file: "File",
|
|
3587
|
-
"file-text": "FileAlt",
|
|
3588
|
-
"file-plus": "FileMedical",
|
|
3589
|
-
"file-minus": "FileExcel",
|
|
3590
|
-
"file-check": "FileSignature",
|
|
3591
|
-
document: "FileAlt",
|
|
3592
|
-
// Charts (lucide BarChart2 / BarChart3 → FA ChartBar)
|
|
3593
|
-
"bar-chart": "ChartBar",
|
|
3594
|
-
"bar-chart-2": "ChartBar",
|
|
3595
|
-
"bar-chart-3": "ChartBar",
|
|
3596
|
-
"line-chart": "ChartLine",
|
|
3597
|
-
"pie-chart": "ChartPie",
|
|
3598
|
-
activity: "ChartLine",
|
|
3599
|
-
"trending-up": "ChartLine",
|
|
3600
|
-
"trending-down": "ChartLine",
|
|
3601
|
-
// Messages (lucide MessageCircle/MessageSquare → FA CommentDots/CommentAlt)
|
|
3602
|
-
message: "Comment",
|
|
3603
|
-
"message-circle": "CommentDots",
|
|
3604
|
-
"message-square": "CommentAlt",
|
|
3605
|
-
"messages-square": "Comments",
|
|
3606
|
-
comment: "Comment",
|
|
3607
|
-
comments: "Comments",
|
|
3608
|
-
inbox: "Inbox",
|
|
3609
|
-
// Support / help
|
|
3610
|
-
"life-buoy": "LifeRing",
|
|
3611
|
-
lifebuoy: "LifeRing",
|
|
3612
|
-
// Project / kanban (FA has no kanban; closest semantic is Tasks/Columns)
|
|
3613
|
-
kanban: "Tasks",
|
|
3614
|
-
columns: "Columns",
|
|
3615
|
-
rows: "Bars",
|
|
3616
|
-
layout: "ThLarge",
|
|
3617
|
-
grid: "Th",
|
|
3618
|
-
list: "List",
|
|
3619
|
-
table: "Table",
|
|
3620
|
-
// Storage / folders
|
|
3621
|
-
folder: "Folder",
|
|
3622
|
-
"folder-open": "FolderOpen",
|
|
3623
|
-
archive: "Archive",
|
|
3624
|
-
bookmark: "Bookmark",
|
|
3625
|
-
briefcase: "Briefcase",
|
|
3626
|
-
package: "Box",
|
|
3627
|
-
box: "Box",
|
|
3628
|
-
// Map / location
|
|
3629
|
-
map: "Map",
|
|
3630
|
-
"map-pin": "MapMarkerAlt",
|
|
3631
|
-
navigation: "LocationArrow",
|
|
3632
|
-
compass: "Compass",
|
|
3633
|
-
globe: "Globe",
|
|
3634
|
-
target: "Bullseye",
|
|
3635
|
-
// Media
|
|
3636
|
-
image: "Image",
|
|
3637
|
-
video: "Video",
|
|
3638
|
-
film: "Film",
|
|
3639
|
-
camera: "Camera",
|
|
3640
|
-
music: "Music",
|
|
3641
|
-
play: "Play",
|
|
3642
|
-
pause: "Pause",
|
|
3643
|
-
stop: "Stop",
|
|
3644
|
-
"skip-forward": "Forward",
|
|
3645
|
-
"skip-back": "Backward",
|
|
3646
|
-
volume: "VolumeUp",
|
|
3647
|
-
"volume-2": "VolumeUp",
|
|
3648
|
-
"volume-x": "VolumeMute",
|
|
3649
|
-
mic: "Microphone",
|
|
3650
|
-
"mic-off": "MicrophoneSlash",
|
|
3651
|
-
phone: "Phone",
|
|
3652
|
-
// Code / data
|
|
3653
|
-
code: "Code",
|
|
3654
|
-
terminal: "Terminal",
|
|
3655
|
-
database: "Database",
|
|
3656
|
-
server: "Server",
|
|
3657
|
-
cloud: "Cloud",
|
|
3658
|
-
wifi: "Wifi",
|
|
3659
|
-
// Security
|
|
3660
|
-
shield: "ShieldAlt",
|
|
3661
|
-
key: "Key",
|
|
3662
|
-
// Misc actions
|
|
3663
|
-
printer: "Print",
|
|
3664
|
-
save: "Save",
|
|
3665
|
-
link: "Link",
|
|
3666
|
-
unlink: "Unlink",
|
|
3667
|
-
paperclip: "Paperclip",
|
|
3668
|
-
flag: "Flag",
|
|
3669
|
-
tag: "Tag",
|
|
3670
|
-
tags: "Tags",
|
|
3671
|
-
zap: "Bolt",
|
|
3672
|
-
sparkles: "Magic",
|
|
3673
|
-
// Theme
|
|
3674
|
-
sun: "Sun",
|
|
3675
|
-
moon: "Moon",
|
|
3676
|
-
// Hierarchy (FA has no Tree icon for hierarchies; Sitemap is the org-chart icon)
|
|
3677
|
-
tree: "Sitemap",
|
|
3678
|
-
network: "NetworkWired"
|
|
3679
|
-
};
|
|
3680
|
-
function resolveFa(name, family) {
|
|
3681
|
-
const suffix = faAliases[name] ?? kebabToPascal(name);
|
|
3682
|
-
const target = `Fa${suffix}`;
|
|
3683
|
-
return lazyFamilyIcon(
|
|
3684
|
-
"fa",
|
|
3685
|
-
() => import('react-icons/fa'),
|
|
3686
|
-
(lib) => {
|
|
3687
|
-
const FaComp = lib[target];
|
|
3688
|
-
if (!FaComp) return null;
|
|
3689
|
-
const Component = FaComp;
|
|
3690
|
-
const Adapter = (props) => /* @__PURE__ */ jsx(
|
|
3691
|
-
Component,
|
|
3692
|
-
{
|
|
3693
|
-
className: props.className,
|
|
3694
|
-
style: props.style,
|
|
3695
|
-
size: props.size ?? "1em"
|
|
3696
|
-
}
|
|
3697
|
-
);
|
|
3698
|
-
Adapter.displayName = `Fa.${target}`;
|
|
3699
|
-
return Adapter;
|
|
3700
|
-
},
|
|
3701
|
-
name,
|
|
3702
|
-
family
|
|
3703
|
-
);
|
|
3704
|
-
}
|
|
3705
|
-
var warned = /* @__PURE__ */ new Set();
|
|
3706
|
-
function warnFallback(name, family) {
|
|
3707
|
-
const key = `${family}::${name}`;
|
|
3708
|
-
if (warned.has(key)) return;
|
|
3709
|
-
warned.add(key);
|
|
3710
|
-
if (typeof console !== "undefined") {
|
|
3711
|
-
console.warn(
|
|
3712
|
-
`[iconFamily] No '${name}' mapping in family '${family}'; falling back to lucide. Add an alias in lib/iconFamily.ts.`
|
|
3713
|
-
);
|
|
3714
|
-
}
|
|
3715
|
-
}
|
|
3716
|
-
function makeLucideAdapter(name, isFallback = false) {
|
|
3115
|
+
function makeLucideAdapter(name) {
|
|
3717
3116
|
const LucideComp = resolveLucide(name);
|
|
3718
|
-
const Adapter = (props) =>
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
}
|
|
3729
|
-
);
|
|
3730
|
-
};
|
|
3731
|
-
Adapter.displayName = `Lucide.${name}${isFallback ? ".fallback" : ""}`;
|
|
3117
|
+
const Adapter = (props) => /* @__PURE__ */ jsx(
|
|
3118
|
+
LucideComp,
|
|
3119
|
+
{
|
|
3120
|
+
className: props.className,
|
|
3121
|
+
strokeWidth: props.strokeWidth,
|
|
3122
|
+
style: props.style,
|
|
3123
|
+
size: props.size
|
|
3124
|
+
}
|
|
3125
|
+
);
|
|
3126
|
+
Adapter.displayName = `Lucide.${name}`;
|
|
3732
3127
|
return Adapter;
|
|
3733
3128
|
}
|
|
3734
|
-
function resolveIconForFamily(name,
|
|
3735
|
-
|
|
3736
|
-
case "lucide":
|
|
3737
|
-
return makeLucideAdapter(name, false);
|
|
3738
|
-
// Non-lucide families resolve to a lazy, Suspense-wrapped component that
|
|
3739
|
-
// dynamic-imports the library on first render and falls back to lucide
|
|
3740
|
-
// internally when the family lacks the icon (see lazyFamilyIcon).
|
|
3741
|
-
case "phosphor-outline":
|
|
3742
|
-
return resolvePhosphor(name, "regular", family);
|
|
3743
|
-
case "phosphor-fill":
|
|
3744
|
-
return resolvePhosphor(name, "fill", family);
|
|
3745
|
-
case "phosphor-duotone":
|
|
3746
|
-
return resolvePhosphor(name, "duotone", family);
|
|
3747
|
-
case "tabler":
|
|
3748
|
-
return resolveTabler(name, family);
|
|
3749
|
-
case "fa-solid":
|
|
3750
|
-
return resolveFa(name, family);
|
|
3751
|
-
}
|
|
3129
|
+
function resolveIconForFamily(name, _family) {
|
|
3130
|
+
return makeLucideAdapter(name);
|
|
3752
3131
|
}
|
|
3753
3132
|
var colorTokenClasses = {
|
|
3754
3133
|
primary: "text-primary",
|
|
@@ -3822,7 +3201,7 @@ var Icon = ({
|
|
|
3822
3201
|
const family = useIconFamily();
|
|
3823
3202
|
const RenderedComponent = React12__default.useMemo(() => {
|
|
3824
3203
|
if (directIcon) return null;
|
|
3825
|
-
return effectiveName ? resolveIconForFamily(effectiveName
|
|
3204
|
+
return effectiveName ? resolveIconForFamily(effectiveName) : null;
|
|
3826
3205
|
}, [directIcon, effectiveName, family]);
|
|
3827
3206
|
const effectiveStrokeWidth = strokeWidth ?? void 0;
|
|
3828
3207
|
const inlineStyle = {
|
|
@@ -4124,7 +3503,7 @@ var Button = React12__default.forwardRef(
|
|
|
4124
3503
|
ref,
|
|
4125
3504
|
disabled: disabled || isLoading,
|
|
4126
3505
|
className: cn(
|
|
4127
|
-
"inline-flex items-center justify-center gap-2",
|
|
3506
|
+
"relative inline-flex items-center justify-center gap-2",
|
|
4128
3507
|
"font-medium",
|
|
4129
3508
|
"rounded-sm",
|
|
4130
3509
|
"cursor-pointer",
|
|
@@ -82,6 +82,8 @@ interface DrawSpriteProps extends DrawableBase {
|
|
|
82
82
|
height?: number;
|
|
83
83
|
/** Explicit atlas sub-rect override (px); omitted → resolved from `asset.atlas`/`asset.sprite`. */
|
|
84
84
|
frame?: BlitSrc;
|
|
85
|
+
/** Named GLB animation clip to play (3D backend only; the 2D painter animates via `frame`). Matched case-insensitively against the model's clips. */
|
|
86
|
+
animation?: string;
|
|
85
87
|
/** Mirror horizontally (facing). */
|
|
86
88
|
flipX?: boolean;
|
|
87
89
|
/** Rotation in radians about the sprite's center. */
|
|
@@ -82,6 +82,8 @@ interface DrawSpriteProps extends DrawableBase {
|
|
|
82
82
|
height?: number;
|
|
83
83
|
/** Explicit atlas sub-rect override (px); omitted → resolved from `asset.atlas`/`asset.sprite`. */
|
|
84
84
|
frame?: BlitSrc;
|
|
85
|
+
/** Named GLB animation clip to play (3D backend only; the 2D painter animates via `frame`). Matched case-insensitively against the model's clips. */
|
|
86
|
+
animation?: string;
|
|
85
87
|
/** Mirror horizontally (facing). */
|
|
86
88
|
flipX?: boolean;
|
|
87
89
|
/** Rotation in radians about the sprite's center. */
|