@almadar/ui 5.36.0 → 5.38.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 +120 -86
- package/dist/avl/index.js +120 -83
- package/dist/components/index.cjs +127 -89
- package/dist/components/index.js +127 -86
- package/dist/docs/index.cjs +115 -81
- package/dist/docs/index.js +115 -78
- package/dist/marketing/index.cjs +114 -80
- package/dist/marketing/index.js +114 -77
- package/dist/providers/index.cjs +120 -86
- package/dist/providers/index.js +120 -83
- package/dist/runtime/index.cjs +120 -86
- package/dist/runtime/index.js +120 -83
- package/package.json +1 -1
package/dist/avl/index.cjs
CHANGED
|
@@ -8,9 +8,6 @@ var ELK = require('elkjs/lib/elk.bundled.js');
|
|
|
8
8
|
var react = require('@xyflow/react');
|
|
9
9
|
var hooks = require('@almadar/ui/hooks');
|
|
10
10
|
var LucideIcons2 = require('lucide-react');
|
|
11
|
-
var PhosphorIcons = require('@phosphor-icons/react');
|
|
12
|
-
var TablerIcons = require('@tabler/icons-react');
|
|
13
|
-
var FaIcons = require('react-icons/fa');
|
|
14
11
|
var reactDom = require('react-dom');
|
|
15
12
|
var evaluator = require('@almadar/evaluator');
|
|
16
13
|
var context = require('@almadar/ui/context');
|
|
@@ -69,9 +66,6 @@ function _interopNamespace(e) {
|
|
|
69
66
|
var React91__namespace = /*#__PURE__*/_interopNamespace(React91);
|
|
70
67
|
var ELK__default = /*#__PURE__*/_interopDefault(ELK);
|
|
71
68
|
var LucideIcons2__namespace = /*#__PURE__*/_interopNamespace(LucideIcons2);
|
|
72
|
-
var PhosphorIcons__namespace = /*#__PURE__*/_interopNamespace(PhosphorIcons);
|
|
73
|
-
var TablerIcons__namespace = /*#__PURE__*/_interopNamespace(TablerIcons);
|
|
74
|
-
var FaIcons__namespace = /*#__PURE__*/_interopNamespace(FaIcons);
|
|
75
69
|
var SyntaxHighlighter__default = /*#__PURE__*/_interopDefault(SyntaxHighlighter);
|
|
76
70
|
var dark__default = /*#__PURE__*/_interopDefault(dark);
|
|
77
71
|
var langJson__default = /*#__PURE__*/_interopDefault(langJson);
|
|
@@ -4522,6 +4516,41 @@ function kebabToPascal(name) {
|
|
|
4522
4516
|
return part.charAt(0).toUpperCase() + part.slice(1);
|
|
4523
4517
|
}).join("");
|
|
4524
4518
|
}
|
|
4519
|
+
function loadLib(key, importer) {
|
|
4520
|
+
let p2 = libPromises.get(key);
|
|
4521
|
+
if (!p2) {
|
|
4522
|
+
p2 = importer().then((m) => m);
|
|
4523
|
+
libPromises.set(key, p2);
|
|
4524
|
+
}
|
|
4525
|
+
return p2;
|
|
4526
|
+
}
|
|
4527
|
+
function lazyFamilyIcon(libKey, importer, pick, fallbackName, family) {
|
|
4528
|
+
const Lazy = React91__namespace.default.lazy(async () => {
|
|
4529
|
+
const lib = await loadLib(libKey, importer);
|
|
4530
|
+
const Comp = pick(lib);
|
|
4531
|
+
if (!Comp) {
|
|
4532
|
+
warnFallback(fallbackName, family);
|
|
4533
|
+
return { default: makeLucideAdapter(fallbackName, true) };
|
|
4534
|
+
}
|
|
4535
|
+
return { default: Comp };
|
|
4536
|
+
});
|
|
4537
|
+
const Wrapped = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4538
|
+
React91__namespace.default.Suspense,
|
|
4539
|
+
{
|
|
4540
|
+
fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4541
|
+
"span",
|
|
4542
|
+
{
|
|
4543
|
+
"aria-hidden": true,
|
|
4544
|
+
className: props.className,
|
|
4545
|
+
style: { display: "inline-block", ...props.style }
|
|
4546
|
+
}
|
|
4547
|
+
),
|
|
4548
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Lazy, { ...props })
|
|
4549
|
+
}
|
|
4550
|
+
);
|
|
4551
|
+
Wrapped.displayName = `Lazy.${libKey}.${fallbackName}`;
|
|
4552
|
+
return Wrapped;
|
|
4553
|
+
}
|
|
4525
4554
|
function resolveLucide(name) {
|
|
4526
4555
|
if (lucideAliases[name]) return lucideAliases[name];
|
|
4527
4556
|
const pascal = kebabToPascal(name);
|
|
@@ -4532,60 +4561,81 @@ function resolveLucide(name) {
|
|
|
4532
4561
|
if (asIs && typeof asIs === "object") return asIs;
|
|
4533
4562
|
return LucideIcons2__namespace.HelpCircle;
|
|
4534
4563
|
}
|
|
4535
|
-
function resolvePhosphor(name, weight) {
|
|
4564
|
+
function resolvePhosphor(name, weight, family) {
|
|
4536
4565
|
const target = phosphorAliases[name] ?? kebabToPascal(name);
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4566
|
+
return lazyFamilyIcon(
|
|
4567
|
+
"phosphor",
|
|
4568
|
+
() => import('@phosphor-icons/react'),
|
|
4569
|
+
(lib) => {
|
|
4570
|
+
const PhosphorComp = lib[target];
|
|
4571
|
+
if (!PhosphorComp || typeof PhosphorComp !== "object") return null;
|
|
4572
|
+
const Component = PhosphorComp;
|
|
4573
|
+
const Adapter = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4574
|
+
Component,
|
|
4575
|
+
{
|
|
4576
|
+
weight,
|
|
4577
|
+
className: props.className,
|
|
4578
|
+
style: props.style,
|
|
4579
|
+
size: props.size ?? "1em"
|
|
4580
|
+
}
|
|
4581
|
+
);
|
|
4582
|
+
Adapter.displayName = `Phosphor.${target}.${weight}`;
|
|
4583
|
+
return Adapter;
|
|
4584
|
+
},
|
|
4585
|
+
name,
|
|
4586
|
+
family
|
|
4549
4587
|
);
|
|
4550
|
-
Adapter.displayName = `Phosphor.${target}.${weight}`;
|
|
4551
|
-
return Adapter;
|
|
4552
4588
|
}
|
|
4553
|
-
function resolveTabler(name) {
|
|
4589
|
+
function resolveTabler(name, family) {
|
|
4554
4590
|
const suffix = tablerAliases[name] ?? kebabToPascal(name);
|
|
4555
4591
|
const target = `Icon${suffix}`;
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4592
|
+
return lazyFamilyIcon(
|
|
4593
|
+
"tabler",
|
|
4594
|
+
() => import('@tabler/icons-react'),
|
|
4595
|
+
(lib) => {
|
|
4596
|
+
const TablerComp = lib[target];
|
|
4597
|
+
if (!TablerComp || typeof TablerComp !== "object") return null;
|
|
4598
|
+
const Component = TablerComp;
|
|
4599
|
+
const Adapter = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4600
|
+
Component,
|
|
4601
|
+
{
|
|
4602
|
+
stroke: props.strokeWidth ?? 1.5,
|
|
4603
|
+
className: props.className,
|
|
4604
|
+
style: props.style,
|
|
4605
|
+
size: props.size ?? 24
|
|
4606
|
+
}
|
|
4607
|
+
);
|
|
4608
|
+
Adapter.displayName = `Tabler.${target}`;
|
|
4609
|
+
return Adapter;
|
|
4610
|
+
},
|
|
4611
|
+
name,
|
|
4612
|
+
family
|
|
4568
4613
|
);
|
|
4569
|
-
Adapter.displayName = `Tabler.${target}`;
|
|
4570
|
-
return Adapter;
|
|
4571
4614
|
}
|
|
4572
|
-
function resolveFa(name) {
|
|
4615
|
+
function resolveFa(name, family) {
|
|
4573
4616
|
const suffix = faAliases[name] ?? kebabToPascal(name);
|
|
4574
4617
|
const target = `Fa${suffix}`;
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4618
|
+
return lazyFamilyIcon(
|
|
4619
|
+
"fa",
|
|
4620
|
+
() => import('react-icons/fa'),
|
|
4621
|
+
(lib) => {
|
|
4622
|
+
const FaComp = lib[target];
|
|
4623
|
+
if (!FaComp || typeof FaComp !== "function") return null;
|
|
4624
|
+
const Component = FaComp;
|
|
4625
|
+
const Adapter = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4626
|
+
Component,
|
|
4627
|
+
{
|
|
4628
|
+
className: props.className,
|
|
4629
|
+
style: props.style,
|
|
4630
|
+
size: props.size ?? "1em"
|
|
4631
|
+
}
|
|
4632
|
+
);
|
|
4633
|
+
Adapter.displayName = `Fa.${target}`;
|
|
4634
|
+
return Adapter;
|
|
4635
|
+
},
|
|
4636
|
+
name,
|
|
4637
|
+
family
|
|
4586
4638
|
);
|
|
4587
|
-
Adapter.displayName = `Fa.${target}`;
|
|
4588
|
-
return Adapter;
|
|
4589
4639
|
}
|
|
4590
4640
|
function warnFallback(name, family) {
|
|
4591
4641
|
const key = `${family}::${name}`;
|
|
@@ -4619,39 +4669,22 @@ function resolveIconForFamily(name, family) {
|
|
|
4619
4669
|
switch (family) {
|
|
4620
4670
|
case "lucide":
|
|
4621
4671
|
return makeLucideAdapter(name, false);
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
return
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
return
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
return makeLucideAdapter(name, true);
|
|
4639
|
-
}
|
|
4640
|
-
case "tabler": {
|
|
4641
|
-
const t = resolveTabler(name);
|
|
4642
|
-
if (t) return t;
|
|
4643
|
-
warnFallback(name, family);
|
|
4644
|
-
return makeLucideAdapter(name, true);
|
|
4645
|
-
}
|
|
4646
|
-
case "fa-solid": {
|
|
4647
|
-
const f3 = resolveFa(name);
|
|
4648
|
-
if (f3) return f3;
|
|
4649
|
-
warnFallback(name, family);
|
|
4650
|
-
return makeLucideAdapter(name, true);
|
|
4651
|
-
}
|
|
4652
|
-
}
|
|
4653
|
-
}
|
|
4654
|
-
var DEFAULT_FAMILY, VALID_FAMILIES, cachedFamily, listeners, observer, lucideAliases, phosphorAliases, tablerAliases, faAliases, warned;
|
|
4672
|
+
// Non-lucide families resolve to a lazy, Suspense-wrapped component that
|
|
4673
|
+
// dynamic-imports the library on first render and falls back to lucide
|
|
4674
|
+
// internally when the family lacks the icon (see lazyFamilyIcon).
|
|
4675
|
+
case "phosphor-outline":
|
|
4676
|
+
return resolvePhosphor(name, "regular", family);
|
|
4677
|
+
case "phosphor-fill":
|
|
4678
|
+
return resolvePhosphor(name, "fill", family);
|
|
4679
|
+
case "phosphor-duotone":
|
|
4680
|
+
return resolvePhosphor(name, "duotone", family);
|
|
4681
|
+
case "tabler":
|
|
4682
|
+
return resolveTabler(name, family);
|
|
4683
|
+
case "fa-solid":
|
|
4684
|
+
return resolveFa(name, family);
|
|
4685
|
+
}
|
|
4686
|
+
}
|
|
4687
|
+
var DEFAULT_FAMILY, VALID_FAMILIES, cachedFamily, listeners, observer, libPromises, lucideAliases, phosphorAliases, tablerAliases, faAliases, warned;
|
|
4655
4688
|
var init_iconFamily = __esm({
|
|
4656
4689
|
"lib/iconFamily.tsx"() {
|
|
4657
4690
|
"use client";
|
|
@@ -4667,6 +4700,7 @@ var init_iconFamily = __esm({
|
|
|
4667
4700
|
cachedFamily = null;
|
|
4668
4701
|
listeners = /* @__PURE__ */ new Set();
|
|
4669
4702
|
observer = null;
|
|
4703
|
+
libPromises = /* @__PURE__ */ new Map();
|
|
4670
4704
|
lucideAliases = {
|
|
4671
4705
|
close: LucideIcons2__namespace.X,
|
|
4672
4706
|
trash: LucideIcons2__namespace.Trash2,
|
|
@@ -14342,7 +14376,7 @@ function IsometricCanvas({
|
|
|
14342
14376
|
// Rendering options
|
|
14343
14377
|
scale = 0.4,
|
|
14344
14378
|
debug: debug2 = false,
|
|
14345
|
-
backgroundImage = "https://almadar-kflow-assets.web.app/shared/scenes/
|
|
14379
|
+
backgroundImage = "https://almadar-kflow-assets.web.app/shared/scenes/dark_clouds_from_above.png",
|
|
14346
14380
|
showMinimap = true,
|
|
14347
14381
|
enableCamera = true,
|
|
14348
14382
|
unitScale = 1,
|
|
@@ -29616,7 +29650,7 @@ function GameCanvas2D({
|
|
|
29616
29650
|
tickEvent,
|
|
29617
29651
|
drawEvent,
|
|
29618
29652
|
fps = 60,
|
|
29619
|
-
backgroundImage = "https://almadar-kflow-assets.web.app/shared/scenes/
|
|
29653
|
+
backgroundImage = "https://almadar-kflow-assets.web.app/shared/scenes/dark_clouds_from_above.png",
|
|
29620
29654
|
assetBaseUrl = "https://almadar-kflow-assets.web.app/shared/",
|
|
29621
29655
|
className
|
|
29622
29656
|
}) {
|
|
@@ -30830,7 +30864,7 @@ function PlatformerCanvas({
|
|
|
30830
30864
|
bgColor,
|
|
30831
30865
|
playerSprite = "https://almadar-kflow-assets.web.app/shared/platformer/characters/platformChar_idle.png",
|
|
30832
30866
|
tileSprites,
|
|
30833
|
-
backgroundImage = "https://almadar-kflow-assets.web.app/shared/scenes/
|
|
30867
|
+
backgroundImage = "https://almadar-kflow-assets.web.app/shared/scenes/dark_clouds_from_above.png",
|
|
30834
30868
|
assetBaseUrl = "https://almadar-kflow-assets.web.app/shared/platformer/",
|
|
30835
30869
|
leftEvent = "MOVE_LEFT",
|
|
30836
30870
|
rightEvent = "MOVE_RIGHT",
|
package/dist/avl/index.js
CHANGED
|
@@ -8,9 +8,6 @@ import { MarkerType, useReactFlow, Handle, Position, getBezierPath, EdgeLabelRen
|
|
|
8
8
|
import { useTranslate, useEventBus as useEventBus$1 } from '@almadar/ui/hooks';
|
|
9
9
|
import * as LucideIcons2 from 'lucide-react';
|
|
10
10
|
import { Loader2, X, Code, FileText, WrapText, Check, Copy, Lightbulb, CheckCircle, List, Printer, ChevronRight, ChevronLeft, GitBranch, Pencil, Eye, Plus, ArrowRight, Trash, RotateCcw, Play, Terminal, XCircle, AlertTriangle, Trash2, Link2, ZoomOut, ZoomIn, Download, Menu as Menu$1, Package, Calendar, MoreHorizontal, Image as Image$1, Upload, ArrowLeft, HelpCircle, PauseCircle, Search, Type, Heading1, Heading2, Heading3, ListOrdered, Quote, Minus, Eraser, TrendingUp, TrendingDown, AlertCircle, Circle, Clock, CheckCircle2, Pause, SkipForward, Bug, Send, ChevronUp, ChevronDown, Wrench, Tag, User, DollarSign, Zap, Sword, Move, Heart, Shield } from 'lucide-react';
|
|
11
|
-
import * as PhosphorIcons from '@phosphor-icons/react';
|
|
12
|
-
import * as TablerIcons from '@tabler/icons-react';
|
|
13
|
-
import * as FaIcons from 'react-icons/fa';
|
|
14
11
|
import { createPortal } from 'react-dom';
|
|
15
12
|
import { evaluate, createMinimalContext } from '@almadar/evaluator';
|
|
16
13
|
import { UISlotProvider, useUISlots } from '@almadar/ui/context';
|
|
@@ -4473,6 +4470,41 @@ function kebabToPascal(name) {
|
|
|
4473
4470
|
return part.charAt(0).toUpperCase() + part.slice(1);
|
|
4474
4471
|
}).join("");
|
|
4475
4472
|
}
|
|
4473
|
+
function loadLib(key, importer) {
|
|
4474
|
+
let p2 = libPromises.get(key);
|
|
4475
|
+
if (!p2) {
|
|
4476
|
+
p2 = importer().then((m) => m);
|
|
4477
|
+
libPromises.set(key, p2);
|
|
4478
|
+
}
|
|
4479
|
+
return p2;
|
|
4480
|
+
}
|
|
4481
|
+
function lazyFamilyIcon(libKey, importer, pick, fallbackName, family) {
|
|
4482
|
+
const Lazy = React91__default.lazy(async () => {
|
|
4483
|
+
const lib = await loadLib(libKey, importer);
|
|
4484
|
+
const Comp = pick(lib);
|
|
4485
|
+
if (!Comp) {
|
|
4486
|
+
warnFallback(fallbackName, family);
|
|
4487
|
+
return { default: makeLucideAdapter(fallbackName, true) };
|
|
4488
|
+
}
|
|
4489
|
+
return { default: Comp };
|
|
4490
|
+
});
|
|
4491
|
+
const Wrapped = (props) => /* @__PURE__ */ jsx(
|
|
4492
|
+
React91__default.Suspense,
|
|
4493
|
+
{
|
|
4494
|
+
fallback: /* @__PURE__ */ jsx(
|
|
4495
|
+
"span",
|
|
4496
|
+
{
|
|
4497
|
+
"aria-hidden": true,
|
|
4498
|
+
className: props.className,
|
|
4499
|
+
style: { display: "inline-block", ...props.style }
|
|
4500
|
+
}
|
|
4501
|
+
),
|
|
4502
|
+
children: /* @__PURE__ */ jsx(Lazy, { ...props })
|
|
4503
|
+
}
|
|
4504
|
+
);
|
|
4505
|
+
Wrapped.displayName = `Lazy.${libKey}.${fallbackName}`;
|
|
4506
|
+
return Wrapped;
|
|
4507
|
+
}
|
|
4476
4508
|
function resolveLucide(name) {
|
|
4477
4509
|
if (lucideAliases[name]) return lucideAliases[name];
|
|
4478
4510
|
const pascal = kebabToPascal(name);
|
|
@@ -4483,60 +4515,81 @@ function resolveLucide(name) {
|
|
|
4483
4515
|
if (asIs && typeof asIs === "object") return asIs;
|
|
4484
4516
|
return LucideIcons2.HelpCircle;
|
|
4485
4517
|
}
|
|
4486
|
-
function resolvePhosphor(name, weight) {
|
|
4518
|
+
function resolvePhosphor(name, weight, family) {
|
|
4487
4519
|
const target = phosphorAliases[name] ?? kebabToPascal(name);
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4520
|
+
return lazyFamilyIcon(
|
|
4521
|
+
"phosphor",
|
|
4522
|
+
() => import('@phosphor-icons/react'),
|
|
4523
|
+
(lib) => {
|
|
4524
|
+
const PhosphorComp = lib[target];
|
|
4525
|
+
if (!PhosphorComp || typeof PhosphorComp !== "object") return null;
|
|
4526
|
+
const Component = PhosphorComp;
|
|
4527
|
+
const Adapter = (props) => /* @__PURE__ */ jsx(
|
|
4528
|
+
Component,
|
|
4529
|
+
{
|
|
4530
|
+
weight,
|
|
4531
|
+
className: props.className,
|
|
4532
|
+
style: props.style,
|
|
4533
|
+
size: props.size ?? "1em"
|
|
4534
|
+
}
|
|
4535
|
+
);
|
|
4536
|
+
Adapter.displayName = `Phosphor.${target}.${weight}`;
|
|
4537
|
+
return Adapter;
|
|
4538
|
+
},
|
|
4539
|
+
name,
|
|
4540
|
+
family
|
|
4500
4541
|
);
|
|
4501
|
-
Adapter.displayName = `Phosphor.${target}.${weight}`;
|
|
4502
|
-
return Adapter;
|
|
4503
4542
|
}
|
|
4504
|
-
function resolveTabler(name) {
|
|
4543
|
+
function resolveTabler(name, family) {
|
|
4505
4544
|
const suffix = tablerAliases[name] ?? kebabToPascal(name);
|
|
4506
4545
|
const target = `Icon${suffix}`;
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4546
|
+
return lazyFamilyIcon(
|
|
4547
|
+
"tabler",
|
|
4548
|
+
() => import('@tabler/icons-react'),
|
|
4549
|
+
(lib) => {
|
|
4550
|
+
const TablerComp = lib[target];
|
|
4551
|
+
if (!TablerComp || typeof TablerComp !== "object") return null;
|
|
4552
|
+
const Component = TablerComp;
|
|
4553
|
+
const Adapter = (props) => /* @__PURE__ */ jsx(
|
|
4554
|
+
Component,
|
|
4555
|
+
{
|
|
4556
|
+
stroke: props.strokeWidth ?? 1.5,
|
|
4557
|
+
className: props.className,
|
|
4558
|
+
style: props.style,
|
|
4559
|
+
size: props.size ?? 24
|
|
4560
|
+
}
|
|
4561
|
+
);
|
|
4562
|
+
Adapter.displayName = `Tabler.${target}`;
|
|
4563
|
+
return Adapter;
|
|
4564
|
+
},
|
|
4565
|
+
name,
|
|
4566
|
+
family
|
|
4519
4567
|
);
|
|
4520
|
-
Adapter.displayName = `Tabler.${target}`;
|
|
4521
|
-
return Adapter;
|
|
4522
4568
|
}
|
|
4523
|
-
function resolveFa(name) {
|
|
4569
|
+
function resolveFa(name, family) {
|
|
4524
4570
|
const suffix = faAliases[name] ?? kebabToPascal(name);
|
|
4525
4571
|
const target = `Fa${suffix}`;
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4572
|
+
return lazyFamilyIcon(
|
|
4573
|
+
"fa",
|
|
4574
|
+
() => import('react-icons/fa'),
|
|
4575
|
+
(lib) => {
|
|
4576
|
+
const FaComp = lib[target];
|
|
4577
|
+
if (!FaComp || typeof FaComp !== "function") return null;
|
|
4578
|
+
const Component = FaComp;
|
|
4579
|
+
const Adapter = (props) => /* @__PURE__ */ jsx(
|
|
4580
|
+
Component,
|
|
4581
|
+
{
|
|
4582
|
+
className: props.className,
|
|
4583
|
+
style: props.style,
|
|
4584
|
+
size: props.size ?? "1em"
|
|
4585
|
+
}
|
|
4586
|
+
);
|
|
4587
|
+
Adapter.displayName = `Fa.${target}`;
|
|
4588
|
+
return Adapter;
|
|
4589
|
+
},
|
|
4590
|
+
name,
|
|
4591
|
+
family
|
|
4537
4592
|
);
|
|
4538
|
-
Adapter.displayName = `Fa.${target}`;
|
|
4539
|
-
return Adapter;
|
|
4540
4593
|
}
|
|
4541
4594
|
function warnFallback(name, family) {
|
|
4542
4595
|
const key = `${family}::${name}`;
|
|
@@ -4570,39 +4623,22 @@ function resolveIconForFamily(name, family) {
|
|
|
4570
4623
|
switch (family) {
|
|
4571
4624
|
case "lucide":
|
|
4572
4625
|
return makeLucideAdapter(name, false);
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
return
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
return
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
return makeLucideAdapter(name, true);
|
|
4590
|
-
}
|
|
4591
|
-
case "tabler": {
|
|
4592
|
-
const t = resolveTabler(name);
|
|
4593
|
-
if (t) return t;
|
|
4594
|
-
warnFallback(name, family);
|
|
4595
|
-
return makeLucideAdapter(name, true);
|
|
4596
|
-
}
|
|
4597
|
-
case "fa-solid": {
|
|
4598
|
-
const f3 = resolveFa(name);
|
|
4599
|
-
if (f3) return f3;
|
|
4600
|
-
warnFallback(name, family);
|
|
4601
|
-
return makeLucideAdapter(name, true);
|
|
4602
|
-
}
|
|
4603
|
-
}
|
|
4604
|
-
}
|
|
4605
|
-
var DEFAULT_FAMILY, VALID_FAMILIES, cachedFamily, listeners, observer, lucideAliases, phosphorAliases, tablerAliases, faAliases, warned;
|
|
4626
|
+
// Non-lucide families resolve to a lazy, Suspense-wrapped component that
|
|
4627
|
+
// dynamic-imports the library on first render and falls back to lucide
|
|
4628
|
+
// internally when the family lacks the icon (see lazyFamilyIcon).
|
|
4629
|
+
case "phosphor-outline":
|
|
4630
|
+
return resolvePhosphor(name, "regular", family);
|
|
4631
|
+
case "phosphor-fill":
|
|
4632
|
+
return resolvePhosphor(name, "fill", family);
|
|
4633
|
+
case "phosphor-duotone":
|
|
4634
|
+
return resolvePhosphor(name, "duotone", family);
|
|
4635
|
+
case "tabler":
|
|
4636
|
+
return resolveTabler(name, family);
|
|
4637
|
+
case "fa-solid":
|
|
4638
|
+
return resolveFa(name, family);
|
|
4639
|
+
}
|
|
4640
|
+
}
|
|
4641
|
+
var DEFAULT_FAMILY, VALID_FAMILIES, cachedFamily, listeners, observer, libPromises, lucideAliases, phosphorAliases, tablerAliases, faAliases, warned;
|
|
4606
4642
|
var init_iconFamily = __esm({
|
|
4607
4643
|
"lib/iconFamily.tsx"() {
|
|
4608
4644
|
"use client";
|
|
@@ -4618,6 +4654,7 @@ var init_iconFamily = __esm({
|
|
|
4618
4654
|
cachedFamily = null;
|
|
4619
4655
|
listeners = /* @__PURE__ */ new Set();
|
|
4620
4656
|
observer = null;
|
|
4657
|
+
libPromises = /* @__PURE__ */ new Map();
|
|
4621
4658
|
lucideAliases = {
|
|
4622
4659
|
close: LucideIcons2.X,
|
|
4623
4660
|
trash: LucideIcons2.Trash2,
|
|
@@ -14293,7 +14330,7 @@ function IsometricCanvas({
|
|
|
14293
14330
|
// Rendering options
|
|
14294
14331
|
scale = 0.4,
|
|
14295
14332
|
debug: debug2 = false,
|
|
14296
|
-
backgroundImage = "https://almadar-kflow-assets.web.app/shared/scenes/
|
|
14333
|
+
backgroundImage = "https://almadar-kflow-assets.web.app/shared/scenes/dark_clouds_from_above.png",
|
|
14297
14334
|
showMinimap = true,
|
|
14298
14335
|
enableCamera = true,
|
|
14299
14336
|
unitScale = 1,
|
|
@@ -29567,7 +29604,7 @@ function GameCanvas2D({
|
|
|
29567
29604
|
tickEvent,
|
|
29568
29605
|
drawEvent,
|
|
29569
29606
|
fps = 60,
|
|
29570
|
-
backgroundImage = "https://almadar-kflow-assets.web.app/shared/scenes/
|
|
29607
|
+
backgroundImage = "https://almadar-kflow-assets.web.app/shared/scenes/dark_clouds_from_above.png",
|
|
29571
29608
|
assetBaseUrl = "https://almadar-kflow-assets.web.app/shared/",
|
|
29572
29609
|
className
|
|
29573
29610
|
}) {
|
|
@@ -30781,7 +30818,7 @@ function PlatformerCanvas({
|
|
|
30781
30818
|
bgColor,
|
|
30782
30819
|
playerSprite = "https://almadar-kflow-assets.web.app/shared/platformer/characters/platformChar_idle.png",
|
|
30783
30820
|
tileSprites,
|
|
30784
|
-
backgroundImage = "https://almadar-kflow-assets.web.app/shared/scenes/
|
|
30821
|
+
backgroundImage = "https://almadar-kflow-assets.web.app/shared/scenes/dark_clouds_from_above.png",
|
|
30785
30822
|
assetBaseUrl = "https://almadar-kflow-assets.web.app/shared/platformer/",
|
|
30786
30823
|
leftEvent = "MOVE_LEFT",
|
|
30787
30824
|
rightEvent = "MOVE_RIGHT",
|