@almadar/ui 6.52.0 → 6.53.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/{EntityBindingContext-BbxrwSb9.d.ts → AwaitingSkeletonContext-Bh399p1x.d.ts} +17 -2
- package/dist/{Canvas3DHost-CWO0tswb.d.ts → Canvas3DHost-B-y2TNij.d.ts} +1 -1
- package/dist/{GameAudioProvider-_hPzjqp-.d.ts → GameAudioProvider-DyBvYP2c.d.ts} +1 -1
- package/dist/Typography-JGSDH4JP.js +5 -0
- package/dist/{UISlotRenderer-CR7SCAMR.js → UISlotRenderer-JT34I3O7.js} +9 -9
- package/dist/avl/index.cjs +39792 -40170
- package/dist/avl/index.d.ts +5 -2
- package/dist/avl/index.js +25 -17
- package/dist/{chunk-XUSSAWKL.js → chunk-2LFBQ4IS.js} +1 -1
- package/dist/{chunk-EERAGPBW.js → chunk-3EF5SDIJ.js} +31499 -32794
- package/dist/{chunk-V5AGW2JN.js → chunk-4OZDHCZV.js} +1 -1
- package/dist/{chunk-MSBMVG3B.js → chunk-6O37FCX4.js} +1 -0
- package/dist/{chunk-BHZG4PDZ.js → chunk-7LM6I3NA.js} +629 -626
- package/dist/chunk-CBIJP5PL.js +284 -0
- package/dist/{chunk-CLSLVFSP.js → chunk-GMDMOYXD.js} +2 -2
- package/dist/{chunk-NCNP2RKZ.js → chunk-GODZKHAL.js} +2 -2
- package/dist/{chunk-QWDKMVLX.js → chunk-IKULQIDX.js} +141 -82
- package/dist/{chunk-TWHYH25Q.js → chunk-JRW33U35.js} +80 -80
- package/dist/{chunk-G4GMXYMY.js → chunk-KQXXO42S.js} +93 -171
- package/dist/chunk-OKWD7LPO.js +80 -0
- package/dist/{chunk-YHY5K2Y7.js → chunk-PEST66PN.js} +6 -0
- package/dist/{chunk-WB2A6V3I.js → chunk-UGHAADU5.js} +47 -1
- package/dist/{chunk-2QB2PXOO.js → chunk-VHTJRS2N.js} +3 -5
- package/dist/{chunk-5GCI6C7J.js → chunk-WPNM2KC6.js} +2 -2
- package/dist/components/index.cjs +42017 -42467
- package/dist/components/index.d.ts +182 -319
- package/dist/components/index.js +621 -13
- package/dist/context/index.cjs +8 -3
- package/dist/context/index.js +3 -3
- package/dist/hooks/index.cjs +54 -4
- package/dist/hooks/index.js +7 -7
- package/dist/lib/drawable/three/index.cjs +47 -1
- package/dist/lib/drawable/three/index.d.ts +5 -5
- package/dist/lib/drawable/three/index.js +7 -7
- package/dist/lib/index.cjs +48 -1
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.js +6 -5
- package/dist/locales/index.cjs +141 -3
- package/dist/locales/index.js +95 -3
- package/dist/{paintDispatch-DHo3WhaU.d.ts → paintDispatch-_6EhJCiL.d.ts} +3 -3
- package/dist/providers/index.cjs +34611 -35020
- package/dist/providers/index.d.ts +33 -8
- package/dist/providers/index.js +36 -12
- package/dist/renderer/index.cjs +6 -0
- package/dist/renderer/index.d.ts +1 -1
- package/dist/renderer/index.js +1 -1
- package/dist/runtime/index.cjs +41106 -41488
- package/dist/runtime/index.d.ts +4 -2
- package/dist/runtime/index.js +11 -11
- package/dist/ssr/index.cjs +375 -137
- package/dist/ssr/index.d.cts +5 -1
- package/dist/ssr/index.d.ts +5 -1
- package/dist/ssr/index.js +311 -73
- package/dist/{verificationRegistry-BYD3cVhS.d.ts → verificationRegistry-CD7Xb40L.d.ts} +1 -1
- package/locales/ar.json +47 -1
- package/locales/en.json +47 -1
- package/locales/sl.json +47 -1
- package/package.json +6 -6
- package/tailwind-preset.cjs +13 -0
- package/themes/_base.css +28 -8
- package/themes/_contract.md +5 -0
- package/dist/Typography-7FRZOS2H.js +0 -5
- package/dist/{avl-3d-context-DLteNEwu.d.ts → avl-3d-context-MAt_NuU9.d.ts} +3 -3
- package/dist/{chunk-IN3BVW2Z.js → chunk-64WACXM7.js} +14 -14
package/dist/ssr/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as React17 from 'react';
|
|
2
|
+
import React17__default, { createContext, useCallback, useState, useRef, useEffect, useContext, useMemo, useSyncExternalStore, useLayoutEffect, useId } from 'react';
|
|
3
3
|
import { createLogger } from '@almadar/logger';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import * as LucideIcons2 from 'lucide-react';
|
|
@@ -2862,7 +2862,7 @@ var positionStyles = {
|
|
|
2862
2862
|
fixed: "fixed",
|
|
2863
2863
|
sticky: "sticky"
|
|
2864
2864
|
};
|
|
2865
|
-
var Box =
|
|
2865
|
+
var Box = React17__default.forwardRef(
|
|
2866
2866
|
({
|
|
2867
2867
|
padding,
|
|
2868
2868
|
paddingX,
|
|
@@ -2931,7 +2931,7 @@ var Box = React16__default.forwardRef(
|
|
|
2931
2931
|
}, [hoverEvent, tapReveal, triggerProps, onPointerDown]);
|
|
2932
2932
|
const isClickable = action || onClick;
|
|
2933
2933
|
const actionControl = action && rest.role === void 0 && rest.tabIndex === void 0 ? pressableProps(handleClick) : {};
|
|
2934
|
-
return
|
|
2934
|
+
return React17__default.createElement(
|
|
2935
2935
|
Component,
|
|
2936
2936
|
{
|
|
2937
2937
|
ref,
|
|
@@ -3036,7 +3036,7 @@ var Stack = ({
|
|
|
3036
3036
|
};
|
|
3037
3037
|
const isHorizontal = direction === "horizontal";
|
|
3038
3038
|
const directionClass = responsive && isHorizontal ? reverse ? "flex-col-reverse md:flex-row-reverse" : "flex-col md:flex-row" : isHorizontal ? reverse ? "flex-row-reverse" : "flex-row" : reverse ? "flex-col-reverse" : "flex-col";
|
|
3039
|
-
return
|
|
3039
|
+
return React17__default.createElement(
|
|
3040
3040
|
Component,
|
|
3041
3041
|
{
|
|
3042
3042
|
...domPassthrough(rest),
|
|
@@ -3179,6 +3179,7 @@ var en_default = {
|
|
|
3179
3179
|
"aria.removeFilter": "Remove filter",
|
|
3180
3180
|
"aria.closeDrawer": "Close drawer",
|
|
3181
3181
|
"aria.closePanel": "Close panel",
|
|
3182
|
+
"aria.dockPanel": "Side panel",
|
|
3182
3183
|
"aria.previousImage": "Previous image",
|
|
3183
3184
|
"aria.nextImage": "Next image",
|
|
3184
3185
|
"aria.dismiss": "Dismiss",
|
|
@@ -3200,6 +3201,7 @@ var en_default = {
|
|
|
3200
3201
|
"aria.openMenu": "Open menu",
|
|
3201
3202
|
"aria.closeMenu": "Close menu",
|
|
3202
3203
|
"aria.openSidebar": "Open sidebar",
|
|
3204
|
+
"aria.openRow": "Open item {{position}}",
|
|
3203
3205
|
"sidebar.expand": "Expand sidebar",
|
|
3204
3206
|
"sidebar.collapse": "Collapse sidebar",
|
|
3205
3207
|
"sidebar.close": "Close sidebar",
|
|
@@ -4245,7 +4247,51 @@ var en_default = {
|
|
|
4245
4247
|
"aria.walkTraitDone": "completed",
|
|
4246
4248
|
"aria.walkTraitPending": "pending",
|
|
4247
4249
|
"aria.walkGraph": "State graph for {{trait}}: {{from}} to {{to}}",
|
|
4248
|
-
"aria.loading": "Loading"
|
|
4250
|
+
"aria.loading": "Loading",
|
|
4251
|
+
"agentActivity.toolCall": "Called {{tool}}",
|
|
4252
|
+
"agentActivity.toolResult": "{{tool}} returned",
|
|
4253
|
+
"agentActivity.toolRows": "{{count}} rows",
|
|
4254
|
+
"agentActivity.thinking": "Thinking\u2026",
|
|
4255
|
+
"agentActivity.analyzed": "Analyzed your request \u2014 {{organism}}",
|
|
4256
|
+
"agentActivity.renamed": "Rename {{from}} \u2192 {{to}}",
|
|
4257
|
+
"agentActivity.deleted": "Remove {{orbitalName}}",
|
|
4258
|
+
"agentActivity.roster": "Planning {{count}} orbitals",
|
|
4259
|
+
"agentActivity.orbitalStarted": "Working on {{orbitalName}}\u2026",
|
|
4260
|
+
"agentActivity.orbitalStartedSettled": "Started {{orbitalName}}",
|
|
4261
|
+
"agentActivity.orbitalDone": "{{orbitalName}} ready",
|
|
4262
|
+
"agentActivity.orbitalCounts": "{{traitCount}} traits, {{transitionCount}} transitions",
|
|
4263
|
+
"agentActivity.change.orbital-added": "Added {{orbitalName}}",
|
|
4264
|
+
"agentActivity.change.orbital-removed": "Removed {{orbitalName}}",
|
|
4265
|
+
"agentActivity.change.entity-fields-changed": "Changed the data fields of {{orbitalName}}",
|
|
4266
|
+
"agentActivity.change.trait-added": "Added a behavior to {{orbitalName}}",
|
|
4267
|
+
"agentActivity.change.trait-removed": "Removed a behavior from {{orbitalName}}",
|
|
4268
|
+
"agentActivity.change.state-machine-changed": "Changed the flow of {{orbitalName}}",
|
|
4269
|
+
"agentActivity.change.guard-changed": "Changed a rule in {{orbitalName}}",
|
|
4270
|
+
"agentActivity.change.effect-changed": "Changed what {{orbitalName}} does",
|
|
4271
|
+
"agentActivity.change.render-ui-changed": "Changed the design of {{orbitalName}}",
|
|
4272
|
+
"agentActivity.change.event-wiring-changed": "Changed the connections of {{orbitalName}}",
|
|
4273
|
+
"agentActivity.change.page-changed": "Changed the pages of {{orbitalName}}",
|
|
4274
|
+
"agentActivity.change.behavior-composed": "Composed a behavior into {{orbitalName}}",
|
|
4275
|
+
"agentActivity.done": "Done \u2014 {{count}} orbitals ready",
|
|
4276
|
+
"agentActivity.cancelled": "Cancelled",
|
|
4277
|
+
"agentActivity.jump": "Show",
|
|
4278
|
+
"agentActivity.emptyTitle": "No activity yet",
|
|
4279
|
+
"agentActivity.emptyDescription": "Send a message and the agent's work shows up here.",
|
|
4280
|
+
"agentActivity.fileOperation": "{{operation}}",
|
|
4281
|
+
"agentActivity.schemaDiff": "Edited {{filePath}}",
|
|
4282
|
+
"agentActivity.coordinatorDecision": "Chose {{organism}}",
|
|
4283
|
+
"agentActivity.change.trait-config-changed": "Changed the settings of {{orbitalName}}",
|
|
4284
|
+
"agentActivity.change.theme-changed": "Changed the theme of {{orbitalName}}",
|
|
4285
|
+
"agentActivity.llmResponse": "Raw LLM response",
|
|
4286
|
+
"agentActivity.llmDuration": "{{seconds}}s",
|
|
4287
|
+
"agentActivity.llmTokens": "{{prompt}} in / {{completion}} out tokens",
|
|
4288
|
+
"agentActivity.llmResponseLabel": "Response",
|
|
4289
|
+
"agentActivity.llmSystemPrompt": "System prompt",
|
|
4290
|
+
"agentActivity.llmUserPrompt": "User prompt",
|
|
4291
|
+
"agentActivity.llmToolCalls": "Tool calls",
|
|
4292
|
+
"agentActivity.showRawLlm": "Raw LLM",
|
|
4293
|
+
"agentActivity.earlierConversations": "Earlier conversations ({{count}})",
|
|
4294
|
+
"agentActivity.earlierActivity": "Earlier activity"
|
|
4249
4295
|
};
|
|
4250
4296
|
|
|
4251
4297
|
// lib/format.ts
|
|
@@ -4434,7 +4480,7 @@ var Typography = ({
|
|
|
4434
4480
|
if (format !== void 0 && format !== "none" && (typeof body === "string" || typeof body === "number" || body instanceof Date)) {
|
|
4435
4481
|
body = formatValue(body, format, fmt);
|
|
4436
4482
|
}
|
|
4437
|
-
return
|
|
4483
|
+
return React17__default.createElement(
|
|
4438
4484
|
Component,
|
|
4439
4485
|
{
|
|
4440
4486
|
...domPassthrough(rest),
|
|
@@ -4640,7 +4686,7 @@ function resolveLucide(name) {
|
|
|
4640
4686
|
}
|
|
4641
4687
|
function makeLucideAdapter(name) {
|
|
4642
4688
|
const LucideComp = resolveLucide(name);
|
|
4643
|
-
const Adapter =
|
|
4689
|
+
const Adapter = React17__default.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
4644
4690
|
LucideComp,
|
|
4645
4691
|
{
|
|
4646
4692
|
ref,
|
|
@@ -4728,9 +4774,9 @@ var Icon = ({
|
|
|
4728
4774
|
const effectiveName = typeof icon === "string" && icon !== "" ? icon : name;
|
|
4729
4775
|
const effectiveStrokeWidth = strokeWidth != null && strokeWidth > 0 ? strokeWidth : void 0;
|
|
4730
4776
|
const family = useIconFamily();
|
|
4731
|
-
const svgRef =
|
|
4777
|
+
const svgRef = React17__default.useRef(null);
|
|
4732
4778
|
const themeStroke = useThemeIconStrokeApplies(svgRef);
|
|
4733
|
-
const RenderedComponent =
|
|
4779
|
+
const RenderedComponent = React17__default.useMemo(() => {
|
|
4734
4780
|
if (directIcon) return null;
|
|
4735
4781
|
return effectiveName ? resolveIconForFamily(effectiveName) : null;
|
|
4736
4782
|
}, [directIcon, effectiveName, family]);
|
|
@@ -4872,13 +4918,13 @@ function AtlasImage({
|
|
|
4872
4918
|
"aria-hidden": ariaHidden,
|
|
4873
4919
|
...rest
|
|
4874
4920
|
}) {
|
|
4875
|
-
const [, bump] =
|
|
4876
|
-
const canvasRef =
|
|
4921
|
+
const [, bump] = React17.useReducer((x) => x + 1, 0);
|
|
4922
|
+
const canvasRef = React17.useRef(null);
|
|
4877
4923
|
const sliced = isAtlasAsset(asset);
|
|
4878
4924
|
const atlas = sliced ? getAtlas(asset.atlas, bump) : void 0;
|
|
4879
4925
|
const img = sliced && asset?.url ? getSheetImage(asset.url, bump) : null;
|
|
4880
4926
|
const rect = sliced && atlas ? subRectFor(atlas, asset.sprite) : null;
|
|
4881
|
-
|
|
4927
|
+
React17.useEffect(() => {
|
|
4882
4928
|
const canvas = canvasRef.current;
|
|
4883
4929
|
if (!canvas || !img || !rect) return;
|
|
4884
4930
|
canvas.width = rect.sw;
|
|
@@ -5043,7 +5089,7 @@ function resolveIconProp(value, sizeClass) {
|
|
|
5043
5089
|
const IconComp = value;
|
|
5044
5090
|
return /* @__PURE__ */ jsx(IconComp, { className: sizeClass });
|
|
5045
5091
|
}
|
|
5046
|
-
if (
|
|
5092
|
+
if (React17__default.isValidElement(value)) {
|
|
5047
5093
|
return value;
|
|
5048
5094
|
}
|
|
5049
5095
|
if (typeof value === "object" && value !== null && isIconLike(value)) {
|
|
@@ -5052,7 +5098,7 @@ function resolveIconProp(value, sizeClass) {
|
|
|
5052
5098
|
}
|
|
5053
5099
|
return value;
|
|
5054
5100
|
}
|
|
5055
|
-
var Button =
|
|
5101
|
+
var Button = React17__default.forwardRef(
|
|
5056
5102
|
({
|
|
5057
5103
|
className,
|
|
5058
5104
|
variant = "primary",
|
|
@@ -5079,7 +5125,7 @@ var Button = React16__default.forwardRef(
|
|
|
5079
5125
|
const navStack = useNavStack();
|
|
5080
5126
|
const { pending, activate } = usePendingAction();
|
|
5081
5127
|
const busy = isLoading || pending;
|
|
5082
|
-
const [focused, setFocused] =
|
|
5128
|
+
const [focused, setFocused] = React17__default.useState(false);
|
|
5083
5129
|
const inert = Boolean(disabled) || busy;
|
|
5084
5130
|
const emitAction = () => {
|
|
5085
5131
|
if (!action) return;
|
|
@@ -5217,7 +5263,7 @@ var sizeStyles2 = {
|
|
|
5217
5263
|
md: "px-2.5 py-1 text-sm",
|
|
5218
5264
|
lg: "px-3 py-1.5 text-base"
|
|
5219
5265
|
};
|
|
5220
|
-
var Badge =
|
|
5266
|
+
var Badge = React17__default.forwardRef(
|
|
5221
5267
|
({ className, variant = "default", size = "sm", amount, label, icon, iconAsset, children, onRemove, removeLabel, onClick, ...props }, ref) => {
|
|
5222
5268
|
const { t } = useTranslate();
|
|
5223
5269
|
const iconSizes = {
|
|
@@ -5281,13 +5327,25 @@ var Badge = React16__default.forwardRef(
|
|
|
5281
5327
|
}
|
|
5282
5328
|
);
|
|
5283
5329
|
Badge.displayName = "Badge";
|
|
5330
|
+
var SurfaceContext = React17__default.createContext(false);
|
|
5331
|
+
function SurfaceBoundary({ children }) {
|
|
5332
|
+
return /* @__PURE__ */ jsx(SurfaceContext.Provider, { value: true, children });
|
|
5333
|
+
}
|
|
5334
|
+
function useContentSurface(surface = "auto") {
|
|
5335
|
+
const onSurface = React17__default.useContext(SurfaceContext);
|
|
5336
|
+
const paints = surface === "auto" && !onSurface;
|
|
5337
|
+
return {
|
|
5338
|
+
className: paints ? "surface-content" : void 0,
|
|
5339
|
+
provide: (node) => paints ? /* @__PURE__ */ jsx(SurfaceBoundary, { children: node }) : /* @__PURE__ */ jsx(Fragment, { children: node })
|
|
5340
|
+
};
|
|
5341
|
+
}
|
|
5284
5342
|
var sizeStyles3 = {
|
|
5285
5343
|
xs: "h-3 w-3",
|
|
5286
5344
|
sm: "h-icon-default w-icon-default",
|
|
5287
5345
|
md: "h-6 w-6",
|
|
5288
5346
|
lg: "h-8 w-8"
|
|
5289
5347
|
};
|
|
5290
|
-
var Spinner =
|
|
5348
|
+
var Spinner = React17__default.forwardRef(
|
|
5291
5349
|
({ className, size = "md", overlay, ...props }, ref) => {
|
|
5292
5350
|
const { t } = useTranslate();
|
|
5293
5351
|
if (overlay) {
|
|
@@ -5325,16 +5383,12 @@ var Spinner = React16__default.forwardRef(
|
|
|
5325
5383
|
Spinner.displayName = "Spinner";
|
|
5326
5384
|
var variantStyles4 = {
|
|
5327
5385
|
default: [
|
|
5328
|
-
"
|
|
5329
|
-
"border-[length:var(--border-width)] border-border",
|
|
5330
|
-
"shadow-elevation-card",
|
|
5386
|
+
"surface-content",
|
|
5331
5387
|
"transition-all duration-normal",
|
|
5332
5388
|
"hover:shadow-elevation-dialog hover:translate-y-[var(--hover-translate-y)]"
|
|
5333
5389
|
].join(" "),
|
|
5334
5390
|
bordered: [
|
|
5335
|
-
"
|
|
5336
|
-
"border-[length:var(--border-width)] border-border",
|
|
5337
|
-
"shadow-elevation-card",
|
|
5391
|
+
"surface-content",
|
|
5338
5392
|
"transition-all duration-normal",
|
|
5339
5393
|
"hover:shadow-elevation-dialog hover:translate-y-[var(--hover-translate-y)]"
|
|
5340
5394
|
].join(" "),
|
|
@@ -5376,7 +5430,7 @@ var lookStyles = {
|
|
|
5376
5430
|
chip: "shadow-none rounded-pill border-[length:var(--border-width)] border-border",
|
|
5377
5431
|
"tile-image-first": "p-0 overflow-hidden"
|
|
5378
5432
|
};
|
|
5379
|
-
var Card =
|
|
5433
|
+
var Card = React17__default.forwardRef(
|
|
5380
5434
|
({
|
|
5381
5435
|
className,
|
|
5382
5436
|
variant = "bordered",
|
|
@@ -5419,16 +5473,16 @@ var Card = React16__default.forwardRef(
|
|
|
5419
5473
|
title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-card-foreground heading-voice", children: title }),
|
|
5420
5474
|
subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: subtitle })
|
|
5421
5475
|
] }),
|
|
5422
|
-
children
|
|
5476
|
+
/* @__PURE__ */ jsx(SurfaceBoundary, { children })
|
|
5423
5477
|
]
|
|
5424
5478
|
}
|
|
5425
5479
|
);
|
|
5426
5480
|
}
|
|
5427
5481
|
);
|
|
5428
5482
|
Card.displayName = "Card";
|
|
5429
|
-
var CardHeader =
|
|
5483
|
+
var CardHeader = React17__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("mb-4", className), ...props }));
|
|
5430
5484
|
CardHeader.displayName = "CardHeader";
|
|
5431
|
-
var CardTitle =
|
|
5485
|
+
var CardTitle = React17__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5432
5486
|
"h3",
|
|
5433
5487
|
{
|
|
5434
5488
|
ref,
|
|
@@ -5441,11 +5495,11 @@ var CardTitle = React16__default.forwardRef(({ className, ...props }, ref) => /*
|
|
|
5441
5495
|
}
|
|
5442
5496
|
));
|
|
5443
5497
|
CardTitle.displayName = "CardTitle";
|
|
5444
|
-
var CardContent =
|
|
5498
|
+
var CardContent = React17__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("", className), ...props }));
|
|
5445
5499
|
CardContent.displayName = "CardContent";
|
|
5446
5500
|
var CardBody = CardContent;
|
|
5447
5501
|
CardBody.displayName = "CardBody";
|
|
5448
|
-
var CardFooter =
|
|
5502
|
+
var CardFooter = React17__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5449
5503
|
"div",
|
|
5450
5504
|
{
|
|
5451
5505
|
ref,
|
|
@@ -5542,7 +5596,7 @@ var Center = ({
|
|
|
5542
5596
|
...rest
|
|
5543
5597
|
}) => {
|
|
5544
5598
|
const mergedStyle = minHeight ? { minHeight, ...style } : style;
|
|
5545
|
-
return
|
|
5599
|
+
return React17__default.createElement(Component, {
|
|
5546
5600
|
...domPassthrough(rest),
|
|
5547
5601
|
className: cn(
|
|
5548
5602
|
inline ? "inline-flex" : "flex",
|
|
@@ -5649,8 +5703,8 @@ var Avatar = ({
|
|
|
5649
5703
|
}) => {
|
|
5650
5704
|
const eventBus = useEventBus();
|
|
5651
5705
|
const { t } = useTranslate();
|
|
5652
|
-
const [imgFailed, setImgFailed] =
|
|
5653
|
-
|
|
5706
|
+
const [imgFailed, setImgFailed] = React17__default.useState(false);
|
|
5707
|
+
React17__default.useEffect(() => {
|
|
5654
5708
|
setImgFailed(false);
|
|
5655
5709
|
}, [src]);
|
|
5656
5710
|
const initials = providedInitials ?? (name ? generateInitials(name) : void 0);
|
|
@@ -6006,7 +6060,7 @@ var Container = ({
|
|
|
6006
6060
|
...rest
|
|
6007
6061
|
}) => {
|
|
6008
6062
|
const resolvedSize = maxWidth ?? size ?? "lg";
|
|
6009
|
-
return
|
|
6063
|
+
return React17__default.createElement(
|
|
6010
6064
|
Component,
|
|
6011
6065
|
{
|
|
6012
6066
|
...domPassthrough(rest),
|
|
@@ -6022,6 +6076,186 @@ var Container = ({
|
|
|
6022
6076
|
);
|
|
6023
6077
|
};
|
|
6024
6078
|
Container.displayName = "Container";
|
|
6079
|
+
var pulseClass = "almadar-shimmer animate-shimmer rounded-container";
|
|
6080
|
+
function SkeletonLine({ className }) {
|
|
6081
|
+
return /* @__PURE__ */ jsx(Box, { className: cn(pulseClass, "h-4", className) });
|
|
6082
|
+
}
|
|
6083
|
+
function SkeletonBlock({ className }) {
|
|
6084
|
+
return /* @__PURE__ */ jsx(Box, { className: cn(pulseClass, className) });
|
|
6085
|
+
}
|
|
6086
|
+
function HeaderSkeleton({ className }) {
|
|
6087
|
+
return /* @__PURE__ */ jsxs(HStack, { className: cn("items-center justify-between px-6 py-5", className), children: [
|
|
6088
|
+
/* @__PURE__ */ jsxs(VStack, { gap: "sm", className: "flex-1", children: [
|
|
6089
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-7 w-48" }),
|
|
6090
|
+
/* @__PURE__ */ jsx(SkeletonLine, { className: "w-64" })
|
|
6091
|
+
] }),
|
|
6092
|
+
/* @__PURE__ */ jsxs(HStack, { gap: "sm", children: [
|
|
6093
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-9 w-24 rounded-interactive" }),
|
|
6094
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-9 w-32 rounded-interactive" })
|
|
6095
|
+
] })
|
|
6096
|
+
] });
|
|
6097
|
+
}
|
|
6098
|
+
function TableSkeleton({ rows = 5, columns = 4, className }) {
|
|
6099
|
+
return /* @__PURE__ */ jsxs(VStack, { gap: "none", className: cn("border border-border rounded-container overflow-hidden", className), children: [
|
|
6100
|
+
/* @__PURE__ */ jsx(HStack, { className: "px-4 py-3 bg-muted/30 border-b border-border", children: Array.from({ length: columns }).map((_, i) => /* @__PURE__ */ jsx(SkeletonBlock, { className: "h-4 flex-1 mx-2" }, i)) }),
|
|
6101
|
+
Array.from({ length: rows }).map((_, rowIdx) => /* @__PURE__ */ jsx(
|
|
6102
|
+
HStack,
|
|
6103
|
+
{
|
|
6104
|
+
className: cn(
|
|
6105
|
+
"px-4 py-3",
|
|
6106
|
+
rowIdx < rows - 1 && "border-b border-border"
|
|
6107
|
+
),
|
|
6108
|
+
children: Array.from({ length: columns }).map((_2, colIdx) => /* @__PURE__ */ jsx(SkeletonLine, { className: "flex-1 mx-2" }, colIdx))
|
|
6109
|
+
},
|
|
6110
|
+
rowIdx
|
|
6111
|
+
))
|
|
6112
|
+
] });
|
|
6113
|
+
}
|
|
6114
|
+
function FormSkeleton({ fields = 4, className }) {
|
|
6115
|
+
return /* @__PURE__ */ jsxs(VStack, { gap: "lg", className: cn("p-6", className), children: [
|
|
6116
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-6 w-40" }),
|
|
6117
|
+
Array.from({ length: fields }).map((_, i) => /* @__PURE__ */ jsxs(VStack, { gap: "sm", children: [
|
|
6118
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-4 w-24" }),
|
|
6119
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-10 w-full rounded-interactive" })
|
|
6120
|
+
] }, i)),
|
|
6121
|
+
/* @__PURE__ */ jsxs(HStack, { gap: "md", className: "justify-end pt-2", children: [
|
|
6122
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-10 w-20 rounded-interactive" }),
|
|
6123
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-10 w-24 rounded-interactive" })
|
|
6124
|
+
] })
|
|
6125
|
+
] });
|
|
6126
|
+
}
|
|
6127
|
+
function CardSkeleton({ className }) {
|
|
6128
|
+
return /* @__PURE__ */ jsxs(
|
|
6129
|
+
VStack,
|
|
6130
|
+
{
|
|
6131
|
+
gap: "md",
|
|
6132
|
+
className: cn(
|
|
6133
|
+
"p-5 border border-border rounded-container",
|
|
6134
|
+
className
|
|
6135
|
+
),
|
|
6136
|
+
children: [
|
|
6137
|
+
/* @__PURE__ */ jsxs(HStack, { className: "items-center", gap: "md", children: [
|
|
6138
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-10 w-10 rounded-full" }),
|
|
6139
|
+
/* @__PURE__ */ jsxs(VStack, { gap: "xs", className: "flex-1", children: [
|
|
6140
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-5 w-32" }),
|
|
6141
|
+
/* @__PURE__ */ jsx(SkeletonLine, { className: "w-48" })
|
|
6142
|
+
] })
|
|
6143
|
+
] }),
|
|
6144
|
+
/* @__PURE__ */ jsx(SkeletonLine, { className: "w-full" }),
|
|
6145
|
+
/* @__PURE__ */ jsx(SkeletonLine, { className: "w-3/4" }),
|
|
6146
|
+
/* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "pt-2", children: [
|
|
6147
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-6 w-16 rounded-full" }),
|
|
6148
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-6 w-20 rounded-full" })
|
|
6149
|
+
] })
|
|
6150
|
+
]
|
|
6151
|
+
}
|
|
6152
|
+
);
|
|
6153
|
+
}
|
|
6154
|
+
function TextSkeleton({ rows = 3, className }) {
|
|
6155
|
+
return /* @__PURE__ */ jsx(VStack, { gap: "sm", className, children: Array.from({ length: rows }).map((_, i) => /* @__PURE__ */ jsx(
|
|
6156
|
+
SkeletonLine,
|
|
6157
|
+
{
|
|
6158
|
+
className: i === rows - 1 ? "w-2/3" : "w-full"
|
|
6159
|
+
},
|
|
6160
|
+
i
|
|
6161
|
+
)) });
|
|
6162
|
+
}
|
|
6163
|
+
function ListSkeleton({ rows = 5, className }) {
|
|
6164
|
+
return /* @__PURE__ */ jsx(VStack, { gap: "none", className: cn("border border-border rounded-container overflow-hidden", className), children: Array.from({ length: rows }).map((_, i) => /* @__PURE__ */ jsxs(HStack, { gap: "md", className: cn("items-center px-4 py-3", i < rows - 1 && "border-b border-border"), children: [
|
|
6165
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-10 w-10 rounded-full shrink-0" }),
|
|
6166
|
+
/* @__PURE__ */ jsxs(VStack, { gap: "xs", className: "flex-1 min-w-0", children: [
|
|
6167
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-4 w-1/3" }),
|
|
6168
|
+
/* @__PURE__ */ jsx(SkeletonLine, { className: "w-2/3 h-3" })
|
|
6169
|
+
] }),
|
|
6170
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-6 w-16 rounded-full" })
|
|
6171
|
+
] }, i)) });
|
|
6172
|
+
}
|
|
6173
|
+
function GridSkeleton({ rows = 6, className }) {
|
|
6174
|
+
return /* @__PURE__ */ jsx(SimpleGrid, { minChildWidth: "260px", gap: "md", className, children: Array.from({ length: rows }).map((_, i) => /* @__PURE__ */ jsx(CardSkeleton, {}, i)) });
|
|
6175
|
+
}
|
|
6176
|
+
function StatsSkeleton({ columns = 4, className }) {
|
|
6177
|
+
return /* @__PURE__ */ jsx(SimpleGrid, { minChildWidth: "180px", gap: "md", className, children: Array.from({ length: columns }).map((_, i) => /* @__PURE__ */ jsxs(VStack, { gap: "sm", className: "p-4 border border-border rounded-container", children: [
|
|
6178
|
+
/* @__PURE__ */ jsx(SkeletonLine, { className: "w-1/2 h-3" }),
|
|
6179
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-7 w-2/3" })
|
|
6180
|
+
] }, i)) });
|
|
6181
|
+
}
|
|
6182
|
+
function DetailSkeleton({ rows = 6, className }) {
|
|
6183
|
+
return /* @__PURE__ */ jsxs(VStack, { gap: "lg", className: cn("p-6 border border-border rounded-container", className), children: [
|
|
6184
|
+
/* @__PURE__ */ jsxs(HStack, { className: "items-start justify-between", gap: "md", children: [
|
|
6185
|
+
/* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "items-center", children: [
|
|
6186
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-8 w-56" }),
|
|
6187
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-6 w-20 rounded-full" })
|
|
6188
|
+
] }),
|
|
6189
|
+
/* @__PURE__ */ jsxs(HStack, { gap: "sm", children: [
|
|
6190
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-9 w-24 rounded-interactive" }),
|
|
6191
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-9 w-9 rounded-interactive" })
|
|
6192
|
+
] })
|
|
6193
|
+
] }),
|
|
6194
|
+
/* @__PURE__ */ jsxs(HStack, { gap: "md", children: [
|
|
6195
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-20 flex-1" }),
|
|
6196
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-20 flex-1" }),
|
|
6197
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-20 flex-1" })
|
|
6198
|
+
] }),
|
|
6199
|
+
/* @__PURE__ */ jsx(SimpleGrid, { minChildWidth: "200px", maxCols: 3, gap: "md", children: Array.from({ length: rows }).map((_, i) => /* @__PURE__ */ jsxs(VStack, { gap: "xs", children: [
|
|
6200
|
+
/* @__PURE__ */ jsx(SkeletonLine, { className: "w-1/3 h-3" }),
|
|
6201
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-5 w-2/3" })
|
|
6202
|
+
] }, i)) }),
|
|
6203
|
+
/* @__PURE__ */ jsx(TextSkeleton, { rows: 3 })
|
|
6204
|
+
] });
|
|
6205
|
+
}
|
|
6206
|
+
function Skeleton({
|
|
6207
|
+
variant = "text",
|
|
6208
|
+
spec,
|
|
6209
|
+
rows,
|
|
6210
|
+
columns,
|
|
6211
|
+
fields,
|
|
6212
|
+
className,
|
|
6213
|
+
...rest
|
|
6214
|
+
}) {
|
|
6215
|
+
const { t } = useTranslate();
|
|
6216
|
+
const shape = spec !== void 0 ? shapeOfSpec(spec) : { variant, rows, columns, fields };
|
|
6217
|
+
if (shape === null) return null;
|
|
6218
|
+
return /* @__PURE__ */ jsx(
|
|
6219
|
+
Box,
|
|
6220
|
+
{
|
|
6221
|
+
...domPassthrough(rest),
|
|
6222
|
+
role: "status",
|
|
6223
|
+
"aria-busy": "true",
|
|
6224
|
+
"aria-label": rest["aria-label"] ?? t("common.loading"),
|
|
6225
|
+
"data-skeleton": shape.variant,
|
|
6226
|
+
...{ [LOADING_STATE_MARKER]: "" },
|
|
6227
|
+
className: "w-full",
|
|
6228
|
+
children: renderVariant(shape.variant, shape.rows, shape.columns, shape.fields, className)
|
|
6229
|
+
}
|
|
6230
|
+
);
|
|
6231
|
+
}
|
|
6232
|
+
function shapeOfSpec(spec) {
|
|
6233
|
+
if (spec === "none") return null;
|
|
6234
|
+
return typeof spec === "string" ? { variant: spec } : spec;
|
|
6235
|
+
}
|
|
6236
|
+
function renderVariant(variant, rows, columns, fields, className) {
|
|
6237
|
+
switch (variant) {
|
|
6238
|
+
case "header":
|
|
6239
|
+
return /* @__PURE__ */ jsx(HeaderSkeleton, { className });
|
|
6240
|
+
case "table":
|
|
6241
|
+
return /* @__PURE__ */ jsx(TableSkeleton, { rows, columns, className });
|
|
6242
|
+
case "list":
|
|
6243
|
+
return /* @__PURE__ */ jsx(ListSkeleton, { rows, className });
|
|
6244
|
+
case "grid":
|
|
6245
|
+
return /* @__PURE__ */ jsx(GridSkeleton, { rows, className });
|
|
6246
|
+
case "detail":
|
|
6247
|
+
return /* @__PURE__ */ jsx(DetailSkeleton, { rows, className });
|
|
6248
|
+
case "stats":
|
|
6249
|
+
return /* @__PURE__ */ jsx(StatsSkeleton, { columns, className });
|
|
6250
|
+
case "form":
|
|
6251
|
+
return /* @__PURE__ */ jsx(FormSkeleton, { fields, className });
|
|
6252
|
+
case "card":
|
|
6253
|
+
return /* @__PURE__ */ jsx(CardSkeleton, { className });
|
|
6254
|
+
case "text":
|
|
6255
|
+
return /* @__PURE__ */ jsx(TextSkeleton, { rows, className });
|
|
6256
|
+
}
|
|
6257
|
+
}
|
|
6258
|
+
Skeleton.displayName = "Skeleton";
|
|
6025
6259
|
var COLOR_VAR = {
|
|
6026
6260
|
primary: "var(--color-primary)",
|
|
6027
6261
|
success: "var(--color-success)",
|
|
@@ -6081,7 +6315,7 @@ var Sparkline = ({
|
|
|
6081
6315
|
Sparkline.displayName = "Sparkline";
|
|
6082
6316
|
var lookStyles2 = {
|
|
6083
6317
|
elevated: "",
|
|
6084
|
-
flat: "shadow-none
|
|
6318
|
+
flat: "shadow-none",
|
|
6085
6319
|
"progress-backed": "",
|
|
6086
6320
|
gauge: "",
|
|
6087
6321
|
sparkline: ""
|
|
@@ -6121,9 +6355,12 @@ var StatDisplay = ({
|
|
|
6121
6355
|
look = "elevated",
|
|
6122
6356
|
className,
|
|
6123
6357
|
isLoading = false,
|
|
6358
|
+
skeleton = { variant: "stats", columns: 1 },
|
|
6124
6359
|
error = null,
|
|
6360
|
+
surface = "auto",
|
|
6125
6361
|
...rest
|
|
6126
6362
|
}) => {
|
|
6363
|
+
const contentSurface = useContentSurface(surface);
|
|
6127
6364
|
const eventBus = useEventBus();
|
|
6128
6365
|
const fmt = useFormatContext();
|
|
6129
6366
|
const handleClick = useCallback(() => {
|
|
@@ -6144,13 +6381,12 @@ var StatDisplay = ({
|
|
|
6144
6381
|
const trendSuffix = trendFormat === "percent" ? "%" : "";
|
|
6145
6382
|
const trendLabel = showTrend ? `${trendUp ? "\u2191" : "\u2193"} ${trendMagnitude}${trendSuffix}` : "";
|
|
6146
6383
|
if (error) {
|
|
6147
|
-
return
|
|
6384
|
+
return contentSurface.provide(
|
|
6385
|
+
/* @__PURE__ */ jsx(Box, { ...domPassthrough(rest), className: cn(contentSurface.className, "rounded-container", padSizes[size], className), children: /* @__PURE__ */ jsx(Typography, { variant: "small", color: "error", children: error.message }) })
|
|
6386
|
+
);
|
|
6148
6387
|
}
|
|
6149
6388
|
if (isLoading) {
|
|
6150
|
-
return /* @__PURE__ */ jsx(
|
|
6151
|
-
/* @__PURE__ */ jsx(Box, { className: "h-3 bg-muted rounded w-16" }),
|
|
6152
|
-
/* @__PURE__ */ jsx(Box, { className: "h-6 bg-muted rounded w-12" })
|
|
6153
|
-
] }) });
|
|
6389
|
+
return /* @__PURE__ */ jsx(Skeleton, { spec: skeleton, className });
|
|
6154
6390
|
}
|
|
6155
6391
|
if (compact) {
|
|
6156
6392
|
return /* @__PURE__ */ jsxs(
|
|
@@ -6170,40 +6406,42 @@ var StatDisplay = ({
|
|
|
6170
6406
|
}
|
|
6171
6407
|
);
|
|
6172
6408
|
}
|
|
6173
|
-
return
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
/* @__PURE__ */ jsxs(
|
|
6181
|
-
/* @__PURE__ */
|
|
6182
|
-
|
|
6183
|
-
/* @__PURE__ */
|
|
6184
|
-
|
|
6185
|
-
|
|
6409
|
+
return contentSurface.provide(
|
|
6410
|
+
/* @__PURE__ */ jsx(
|
|
6411
|
+
Box,
|
|
6412
|
+
{
|
|
6413
|
+
...domPassthrough(rest),
|
|
6414
|
+
className: cn(contentSurface.className, "rounded-container", padSizes[size], lookStyles2[look], clickEvent && "cursor-pointer hover:shadow-elevation-dialog transition-shadow", className),
|
|
6415
|
+
...pressableProps(clickEvent ? handleClick : void 0),
|
|
6416
|
+
children: /* @__PURE__ */ jsxs(HStack, { align: "start", justify: "between", children: [
|
|
6417
|
+
/* @__PURE__ */ jsxs(VStack, { gap: "none", className: "space-y-1 flex-1", children: [
|
|
6418
|
+
/* @__PURE__ */ jsx(Typography, { variant: "overline", color: "secondary", children: label }),
|
|
6419
|
+
/* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "end", children: [
|
|
6420
|
+
/* @__PURE__ */ jsx(Typography, { variant: "h4", className: cn("", valueSizes[size], variantColor[variant]), children: displayValue }),
|
|
6421
|
+
showTrend && /* @__PURE__ */ jsx(
|
|
6422
|
+
Typography,
|
|
6423
|
+
{
|
|
6424
|
+
variant: "caption",
|
|
6425
|
+
className: cn("font-semibold pb-1", trendIsGood ? "text-success" : "text-error"),
|
|
6426
|
+
children: trendLabel
|
|
6427
|
+
}
|
|
6428
|
+
)
|
|
6429
|
+
] }),
|
|
6430
|
+
showTarget && /* @__PURE__ */ jsx(Box, { className: "mt-2 h-1.5 w-full bg-muted rounded-full overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
6431
|
+
Box,
|
|
6186
6432
|
{
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
children: trendLabel
|
|
6433
|
+
className: cn("h-full rounded-full transition-all", `bg-${variant === "default" ? "primary" : variant}`),
|
|
6434
|
+
style: { width: `${targetPct}%` }
|
|
6190
6435
|
}
|
|
6191
|
-
)
|
|
6436
|
+
) })
|
|
6192
6437
|
] }),
|
|
6193
|
-
|
|
6194
|
-
Box,
|
|
6195
|
-
{
|
|
6196
|
-
|
|
6197
|
-
style: { width: `${targetPct}%` }
|
|
6198
|
-
}
|
|
6199
|
-
) })
|
|
6200
|
-
] }),
|
|
6201
|
-
/* @__PURE__ */ jsxs(VStack, { gap: "xs", align: "end", children: [
|
|
6202
|
-
ResolvedIcon && /* @__PURE__ */ jsx(Box, { className: cn("p-3 rounded-container", iconBg), children: /* @__PURE__ */ jsx(ResolvedIcon, { className: cn(iconSizes[size], iconColor) }) }),
|
|
6203
|
-
sparklineData && sparklineData.length > 1 && /* @__PURE__ */ jsx(Sparkline, { data: sparklineData, color: "auto" })
|
|
6438
|
+
/* @__PURE__ */ jsxs(VStack, { gap: "xs", align: "end", children: [
|
|
6439
|
+
ResolvedIcon && /* @__PURE__ */ jsx(Box, { className: cn("p-3 rounded-container", iconBg), children: /* @__PURE__ */ jsx(ResolvedIcon, { className: cn(iconSizes[size], iconColor) }) }),
|
|
6440
|
+
sparklineData && sparklineData.length > 1 && /* @__PURE__ */ jsx(Sparkline, { data: sparklineData, color: "auto" })
|
|
6441
|
+
] })
|
|
6204
6442
|
] })
|
|
6205
|
-
|
|
6206
|
-
|
|
6443
|
+
}
|
|
6444
|
+
)
|
|
6207
6445
|
);
|
|
6208
6446
|
};
|
|
6209
6447
|
StatDisplay.displayName = "StatDisplay";
|
|
@@ -6354,7 +6592,7 @@ var animatedStyles = {
|
|
|
6354
6592
|
"scale-up": { opacity: 1, transform: "scale(1) translateY(0)" },
|
|
6355
6593
|
"none": {}
|
|
6356
6594
|
};
|
|
6357
|
-
var AnimatedReveal =
|
|
6595
|
+
var AnimatedReveal = React17__default.forwardRef(
|
|
6358
6596
|
({
|
|
6359
6597
|
trigger = "scroll",
|
|
6360
6598
|
animation = "fade-up",
|
|
@@ -6507,7 +6745,7 @@ function applyMorphAnimation(container, animate, duration, delay, easing) {
|
|
|
6507
6745
|
el.style.opacity = animate ? "1" : "0";
|
|
6508
6746
|
});
|
|
6509
6747
|
}
|
|
6510
|
-
var AnimatedGraphic =
|
|
6748
|
+
var AnimatedGraphic = React17__default.forwardRef(
|
|
6511
6749
|
({
|
|
6512
6750
|
src,
|
|
6513
6751
|
svgContent,
|
|
@@ -6530,7 +6768,7 @@ var AnimatedGraphic = React16__default.forwardRef(
|
|
|
6530
6768
|
const fetchedSvg = useFetchedSvg(svgContent ? void 0 : src);
|
|
6531
6769
|
const resolvedSvg = svgContent ?? fetchedSvg;
|
|
6532
6770
|
const prevAnimateRef = useRef(animate);
|
|
6533
|
-
const setRef =
|
|
6771
|
+
const setRef = React17__default.useCallback(
|
|
6534
6772
|
(node) => {
|
|
6535
6773
|
containerRef.current = node;
|
|
6536
6774
|
if (typeof ref === "function") ref(node);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DrawableNode } from './paintDispatch-
|
|
1
|
+
import { D as DrawableNode } from './paintDispatch-_6EhJCiL.js';
|
|
2
2
|
import { OrbitalVerificationAPI, TraitStateSnapshot, EventPayload, BusEvent, VerificationCheck, BridgeHealth, VerificationSnapshot, VerificationSummary, TransitionTrace, OrbitalEventRequest, OrbitalEventResponse, ServerResponseTrace, EffectTrace, CheckStatus, ServerEffectResult, AssetLoadStatus } from '@almadar/core';
|
|
3
3
|
import { EventTransport } from '@almadar/runtime';
|
|
4
4
|
|