@almadar/ui 5.26.0 → 5.26.1

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.
@@ -6143,18 +6143,22 @@ var init_SvgBranch = __esm({
6143
6143
  "components/core/atoms/svg/SvgBranch.tsx"() {
6144
6144
  "use client";
6145
6145
  SvgBranch = ({
6146
- x,
6147
- y,
6146
+ x = 5,
6147
+ y = 50,
6148
6148
  variant = "fork",
6149
6149
  branches = 2,
6150
6150
  size = 1,
6151
6151
  color = "var(--color-primary)",
6152
6152
  opacity = 1,
6153
- className
6153
+ className,
6154
+ asRoot = true,
6155
+ width = 100,
6156
+ height = 100
6154
6157
  }) => {
6158
+ let inner;
6155
6159
  if (variant === "diamond") {
6156
6160
  const points = buildDiamondPoints(x, y, size);
6157
- return /* @__PURE__ */ jsxRuntime.jsx("g", { className, opacity, children: /* @__PURE__ */ jsxRuntime.jsx(
6161
+ inner = /* @__PURE__ */ jsxRuntime.jsx("g", { className, opacity, children: /* @__PURE__ */ jsxRuntime.jsx(
6158
6162
  "polygon",
6159
6163
  {
6160
6164
  points,
@@ -6164,23 +6168,28 @@ var init_SvgBranch = __esm({
6164
6168
  strokeLinejoin: "round"
6165
6169
  }
6166
6170
  ) });
6171
+ } else {
6172
+ const paths = variant === "fork" ? buildForkPaths(x, y, branches, size) : buildMergePaths(x, y, branches, size);
6173
+ inner = /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6174
+ paths.map((d, i) => /* @__PURE__ */ jsxRuntime.jsx(
6175
+ "path",
6176
+ {
6177
+ d,
6178
+ fill: "none",
6179
+ stroke: color,
6180
+ strokeWidth: 2,
6181
+ strokeLinecap: "round"
6182
+ },
6183
+ i
6184
+ )),
6185
+ variant === "fork" && /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: x + 30 * size, cy: y, r: 3, fill: color }),
6186
+ variant === "merge" && /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: x + 30 * size, cy: y, r: 3, fill: color })
6187
+ ] });
6167
6188
  }
6168
- const paths = variant === "fork" ? buildForkPaths(x, y, branches, size) : buildMergePaths(x, y, branches, size);
6169
- return /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6170
- paths.map((d, i) => /* @__PURE__ */ jsxRuntime.jsx(
6171
- "path",
6172
- {
6173
- d,
6174
- fill: "none",
6175
- stroke: color,
6176
- strokeWidth: 2,
6177
- strokeLinecap: "round"
6178
- },
6179
- i
6180
- )),
6181
- variant === "fork" && /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: x + 30 * size, cy: y, r: 3, fill: color }),
6182
- variant === "merge" && /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: x + 30 * size, cy: y, r: 3, fill: color })
6183
- ] });
6189
+ if (asRoot) {
6190
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: `0 0 ${width} ${height}`, width, height, children: inner });
6191
+ }
6192
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: inner });
6184
6193
  };
6185
6194
  SvgBranch.displayName = "SvgBranch";
6186
6195
  }
@@ -6190,20 +6199,23 @@ var init_SvgConnection = __esm({
6190
6199
  "components/core/atoms/svg/SvgConnection.tsx"() {
6191
6200
  "use client";
6192
6201
  SvgConnection = ({
6193
- x1,
6194
- y1,
6195
- x2,
6196
- y2,
6202
+ x1 = 10,
6203
+ y1 = 50,
6204
+ x2 = 90,
6205
+ y2 = 50,
6197
6206
  variant = "solid",
6198
6207
  color = "var(--color-primary)",
6199
6208
  strokeWidth = 1.5,
6200
6209
  opacity = 1,
6201
- className
6210
+ className,
6211
+ asRoot = true,
6212
+ width = 100,
6213
+ height = 100
6202
6214
  }) => {
6203
6215
  const dashProps = variant === "solid" ? {} : {
6204
6216
  strokeDasharray: "8 6"
6205
6217
  };
6206
- return /* @__PURE__ */ jsxRuntime.jsx(
6218
+ const inner = /* @__PURE__ */ jsxRuntime.jsx(
6207
6219
  "line",
6208
6220
  {
6209
6221
  className: [
@@ -6221,22 +6233,30 @@ var init_SvgConnection = __esm({
6221
6233
  ...dashProps
6222
6234
  }
6223
6235
  );
6236
+ if (asRoot) {
6237
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: `0 0 ${width} ${height}`, width, height, children: inner });
6238
+ }
6239
+ return inner;
6224
6240
  };
6225
6241
  SvgConnection.displayName = "SvgConnection";
6226
6242
  }
6227
6243
  });
6228
- var flowIdCounter, SvgFlow;
6244
+ var flowIdCounter, DEFAULT_POINTS, SvgFlow;
6229
6245
  var init_SvgFlow = __esm({
6230
6246
  "components/core/atoms/svg/SvgFlow.tsx"() {
6231
6247
  "use client";
6232
6248
  flowIdCounter = 0;
6249
+ DEFAULT_POINTS = [[10, 50], [50, 20], [90, 50]];
6233
6250
  SvgFlow = ({
6234
- points,
6251
+ points = DEFAULT_POINTS,
6235
6252
  color = "var(--color-primary)",
6236
6253
  strokeWidth = 1.5,
6237
6254
  animated = false,
6238
6255
  opacity = 1,
6239
- className
6256
+ className,
6257
+ asRoot = true,
6258
+ width = 100,
6259
+ height = 100
6240
6260
  }) => {
6241
6261
  const markerId = React93__namespace.default.useMemo(() => {
6242
6262
  flowIdCounter += 1;
@@ -6246,7 +6266,7 @@ var init_SvgFlow = __esm({
6246
6266
  return null;
6247
6267
  }
6248
6268
  const pathData = points.map((pt, i) => `${i === 0 ? "M" : "L"}${pt[0]},${pt[1]}`).join(" ");
6249
- return /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6269
+ const inner = /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6250
6270
  /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx(
6251
6271
  "marker",
6252
6272
  {
@@ -6275,6 +6295,10 @@ var init_SvgFlow = __esm({
6275
6295
  }
6276
6296
  )
6277
6297
  ] });
6298
+ if (asRoot) {
6299
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: `0 0 ${width} ${height}`, width, height, children: inner });
6300
+ }
6301
+ return inner;
6278
6302
  };
6279
6303
  SvgFlow.displayName = "SvgFlow";
6280
6304
  }
@@ -6284,8 +6308,8 @@ var init_SvgGrid = __esm({
6284
6308
  "components/core/atoms/svg/SvgGrid.tsx"() {
6285
6309
  "use client";
6286
6310
  SvgGrid = ({
6287
- x,
6288
- y,
6311
+ x = 10,
6312
+ y = 10,
6289
6313
  cols = 4,
6290
6314
  rows: rows2 = 3,
6291
6315
  spacing = 20,
@@ -6293,10 +6317,13 @@ var init_SvgGrid = __esm({
6293
6317
  color = "var(--color-primary)",
6294
6318
  opacity = 1,
6295
6319
  className,
6296
- highlights = []
6320
+ highlights = [],
6321
+ asRoot = true,
6322
+ width = 100,
6323
+ height = 100
6297
6324
  }) => {
6298
6325
  const highlightSet = new Set(highlights);
6299
- return /* @__PURE__ */ jsxRuntime.jsx("g", { className, opacity, children: Array.from({ length: rows2 }).map(
6326
+ const inner = /* @__PURE__ */ jsxRuntime.jsx("g", { className, opacity, children: Array.from({ length: rows2 }).map(
6300
6327
  (_, row) => Array.from({ length: cols }).map((_2, col) => {
6301
6328
  const index = row * cols + col;
6302
6329
  const isHighlighted = highlightSet.has(index);
@@ -6315,6 +6342,10 @@ var init_SvgGrid = __esm({
6315
6342
  );
6316
6343
  })
6317
6344
  ) });
6345
+ if (asRoot) {
6346
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: `0 0 ${width} ${height}`, width, height, children: inner });
6347
+ }
6348
+ return inner;
6318
6349
  };
6319
6350
  SvgGrid.displayName = "SvgGrid";
6320
6351
  }
@@ -6324,15 +6355,18 @@ var init_SvgLobe = __esm({
6324
6355
  "components/core/atoms/svg/SvgLobe.tsx"() {
6325
6356
  "use client";
6326
6357
  SvgLobe = ({
6327
- cx,
6328
- cy,
6358
+ cx = 50,
6359
+ cy = 50,
6329
6360
  rx = 14,
6330
6361
  ry = 20,
6331
6362
  rotation = 0,
6332
6363
  shells = 2,
6333
6364
  color = "var(--color-primary)",
6334
6365
  opacity = 1,
6335
- className
6366
+ className,
6367
+ asRoot = true,
6368
+ width = 100,
6369
+ height = 100
6336
6370
  }) => {
6337
6371
  const clampedShells = Math.max(1, Math.min(3, shells));
6338
6372
  const renderShell = (shellIndex) => {
@@ -6367,7 +6401,7 @@ var init_SvgLobe = __esm({
6367
6401
  )
6368
6402
  ] }, shellIndex);
6369
6403
  };
6370
- return /* @__PURE__ */ jsxRuntime.jsx(
6404
+ const inner = /* @__PURE__ */ jsxRuntime.jsx(
6371
6405
  "g",
6372
6406
  {
6373
6407
  className,
@@ -6376,6 +6410,10 @@ var init_SvgLobe = __esm({
6376
6410
  children: Array.from({ length: clampedShells }, (_, i) => renderShell(i))
6377
6411
  }
6378
6412
  );
6413
+ if (asRoot) {
6414
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: `0 0 ${width} ${height}`, width, height, children: inner });
6415
+ }
6416
+ return inner;
6379
6417
  };
6380
6418
  SvgLobe.displayName = "SvgLobe";
6381
6419
  }
@@ -6404,18 +6442,21 @@ var init_SvgMesh = __esm({
6404
6442
  "components/core/atoms/svg/SvgMesh.tsx"() {
6405
6443
  "use client";
6406
6444
  SvgMesh = ({
6407
- cx,
6408
- cy,
6445
+ cx = 60,
6446
+ cy = 60,
6409
6447
  nodes = 6,
6410
6448
  radius = 50,
6411
6449
  color = "var(--color-primary)",
6412
6450
  connectionDensity = 0.5,
6413
6451
  opacity = 1,
6414
- className
6452
+ className,
6453
+ asRoot = true,
6454
+ width = 120,
6455
+ height = 120
6415
6456
  }) => {
6416
6457
  const positions = getNodePositions(cx, cy, nodes, radius);
6417
6458
  const connections = getConnections(nodes, connectionDensity);
6418
- return /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6459
+ const inner = /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6419
6460
  connections.map(([a, b]) => /* @__PURE__ */ jsxRuntime.jsx(
6420
6461
  "line",
6421
6462
  {
@@ -6440,6 +6481,10 @@ var init_SvgMesh = __esm({
6440
6481
  i
6441
6482
  ))
6442
6483
  ] });
6484
+ if (asRoot) {
6485
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: `0 0 ${width} ${height}`, width, height, children: inner });
6486
+ }
6487
+ return inner;
6443
6488
  };
6444
6489
  SvgMesh.displayName = "SvgMesh";
6445
6490
  }
@@ -6581,74 +6626,82 @@ var init_SvgMorph = __esm({
6581
6626
  };
6582
6627
  FlowArrow.displayName = "FlowArrow";
6583
6628
  SvgMorph = ({
6584
- x,
6585
- y,
6629
+ x = 5,
6630
+ y = 10,
6586
6631
  size = 1,
6587
6632
  variant = "generic",
6588
6633
  color = "var(--color-primary)",
6589
6634
  opacity = 1,
6590
- className
6635
+ className,
6636
+ asRoot = true,
6637
+ width = 130,
6638
+ height = 50
6591
6639
  }) => {
6592
6640
  const gap = 40 * size;
6593
6641
  const midY = y + 10 * size;
6642
+ let inner;
6594
6643
  if (variant === "text-to-code") {
6595
6644
  const leftEnd = x + 30 * size;
6596
6645
  const rightStart = leftEnd + gap;
6597
- return /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6646
+ inner = /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6598
6647
  /* @__PURE__ */ jsxRuntime.jsx(TextLines, { x, y, scale: size, color }),
6599
6648
  /* @__PURE__ */ jsxRuntime.jsx(FlowArrow, { x1: leftEnd, y: midY, x2: rightStart, scale: size, color }),
6600
6649
  /* @__PURE__ */ jsxRuntime.jsx(CodeBrackets, { x: rightStart, y, scale: size, color })
6601
6650
  ] });
6602
- }
6603
- if (variant === "code-to-app") {
6651
+ } else if (variant === "code-to-app") {
6604
6652
  const leftEnd = x + 26 * size;
6605
6653
  const rightStart = leftEnd + gap;
6606
- return /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6654
+ inner = /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6607
6655
  /* @__PURE__ */ jsxRuntime.jsx(CodeBrackets, { x, y, scale: size, color }),
6608
6656
  /* @__PURE__ */ jsxRuntime.jsx(FlowArrow, { x1: leftEnd, y: midY, x2: rightStart, scale: size, color }),
6609
6657
  /* @__PURE__ */ jsxRuntime.jsx(AppRect, { x: rightStart, y, scale: size, color })
6610
6658
  ] });
6659
+ } else {
6660
+ const circleR = 10 * size;
6661
+ const circleX = x + circleR;
6662
+ const squareStart = x + circleR * 2 + gap;
6663
+ const squareSize = circleR * 2;
6664
+ inner = /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6665
+ /* @__PURE__ */ jsxRuntime.jsx(
6666
+ "circle",
6667
+ {
6668
+ cx: circleX,
6669
+ cy: midY,
6670
+ r: circleR,
6671
+ fill: "none",
6672
+ stroke: color,
6673
+ strokeWidth: 2 * size
6674
+ }
6675
+ ),
6676
+ /* @__PURE__ */ jsxRuntime.jsx(
6677
+ FlowArrow,
6678
+ {
6679
+ x1: circleX + circleR + 2 * size,
6680
+ y: midY,
6681
+ x2: squareStart,
6682
+ scale: size,
6683
+ color
6684
+ }
6685
+ ),
6686
+ /* @__PURE__ */ jsxRuntime.jsx(
6687
+ "rect",
6688
+ {
6689
+ x: squareStart,
6690
+ y: midY - circleR,
6691
+ width: squareSize,
6692
+ height: squareSize,
6693
+ rx: 3 * size,
6694
+ fill: "none",
6695
+ stroke: color,
6696
+ strokeWidth: 2 * size
6697
+ }
6698
+ )
6699
+ ] });
6611
6700
  }
6612
- const circleR = 10 * size;
6613
- const circleX = x + circleR;
6614
- const squareStart = x + circleR * 2 + gap;
6615
- const squareSize = circleR * 2;
6616
- return /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6617
- /* @__PURE__ */ jsxRuntime.jsx(
6618
- "circle",
6619
- {
6620
- cx: circleX,
6621
- cy: midY,
6622
- r: circleR,
6623
- fill: "none",
6624
- stroke: color,
6625
- strokeWidth: 2 * size
6626
- }
6627
- ),
6628
- /* @__PURE__ */ jsxRuntime.jsx(
6629
- FlowArrow,
6630
- {
6631
- x1: circleX + circleR + 2 * size,
6632
- y: midY,
6633
- x2: squareStart,
6634
- scale: size,
6635
- color
6636
- }
6637
- ),
6638
- /* @__PURE__ */ jsxRuntime.jsx(
6639
- "rect",
6640
- {
6641
- x: squareStart,
6642
- y: midY - circleR,
6643
- width: squareSize,
6644
- height: squareSize,
6645
- rx: 3 * size,
6646
- fill: "none",
6647
- stroke: color,
6648
- strokeWidth: 2 * size
6649
- }
6650
- )
6651
- ] });
6701
+ if (asRoot) {
6702
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: `0 0 ${width} ${height}`, width, height, children: inner });
6703
+ }
6704
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: inner });
6652
6705
  };
6653
6706
  SvgMorph.displayName = "SvgMorph";
6654
6707
  }
@@ -6658,16 +6711,19 @@ var init_SvgNode = __esm({
6658
6711
  "components/core/atoms/svg/SvgNode.tsx"() {
6659
6712
  "use client";
6660
6713
  SvgNode = ({
6661
- x,
6662
- y,
6714
+ x = 50,
6715
+ y = 50,
6663
6716
  r: r2 = 6,
6664
6717
  variant = "filled",
6665
6718
  color = "var(--color-primary)",
6666
6719
  opacity = 1,
6667
6720
  className,
6668
- label
6721
+ label,
6722
+ asRoot = true,
6723
+ width = 100,
6724
+ height = 100
6669
6725
  }) => {
6670
- return /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6726
+ const inner = /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6671
6727
  variant === "pulse" && /* @__PURE__ */ jsxRuntime.jsx(
6672
6728
  "circle",
6673
6729
  {
@@ -6705,6 +6761,10 @@ var init_SvgNode = __esm({
6705
6761
  }
6706
6762
  )
6707
6763
  ] });
6764
+ if (asRoot) {
6765
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: `0 0 ${width} ${height}`, width, height, children: inner });
6766
+ }
6767
+ return inner;
6708
6768
  };
6709
6769
  SvgNode.displayName = "SvgNode";
6710
6770
  }
@@ -6726,16 +6786,19 @@ var init_SvgPulse = __esm({
6726
6786
  }
6727
6787
  `;
6728
6788
  SvgPulse = ({
6729
- cx,
6730
- cy,
6789
+ cx = 70,
6790
+ cy = 70,
6731
6791
  rings = 3,
6732
6792
  maxRadius = 60,
6733
6793
  color = "var(--color-primary)",
6734
6794
  animated = true,
6735
6795
  opacity = 1,
6736
- className
6796
+ className,
6797
+ asRoot = true,
6798
+ width = 140,
6799
+ height = 140
6737
6800
  }) => {
6738
- return /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6801
+ const inner = /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6739
6802
  animated && /* @__PURE__ */ jsxRuntime.jsx("style", { children: PULSE_KEYFRAMES }),
6740
6803
  Array.from({ length: rings }).map((_, i) => {
6741
6804
  const ringRadius = (i + 1) / rings * maxRadius;
@@ -6761,6 +6824,10 @@ var init_SvgPulse = __esm({
6761
6824
  }),
6762
6825
  /* @__PURE__ */ jsxRuntime.jsx("circle", { cx, cy, r: 3, fill: color })
6763
6826
  ] });
6827
+ if (asRoot) {
6828
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: `0 0 ${width} ${height}`, width, height, children: inner });
6829
+ }
6830
+ return inner;
6764
6831
  };
6765
6832
  SvgPulse.displayName = "SvgPulse";
6766
6833
  }
@@ -6771,21 +6838,24 @@ var init_SvgRing = __esm({
6771
6838
  "use client";
6772
6839
  ringIdCounter = 0;
6773
6840
  SvgRing = ({
6774
- cx,
6775
- cy,
6841
+ cx = 50,
6842
+ cy = 50,
6776
6843
  r: r2 = 40,
6777
6844
  variant = "solid",
6778
6845
  color = "var(--color-primary)",
6779
6846
  strokeWidth = 1.5,
6780
6847
  opacity = 1,
6781
6848
  className,
6782
- label
6849
+ label,
6850
+ asRoot = true,
6851
+ width = 100,
6852
+ height = 100
6783
6853
  }) => {
6784
6854
  const gradientId = React93__namespace.default.useMemo(() => {
6785
6855
  ringIdCounter += 1;
6786
6856
  return `almadar-ring-glow-${ringIdCounter}`;
6787
6857
  }, []);
6788
- return /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6858
+ const inner = /* @__PURE__ */ jsxRuntime.jsxs("g", { className, opacity, children: [
6789
6859
  variant === "glow" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
6790
6860
  /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs("radialGradient", { id: gradientId, cx: "50%", cy: "50%", r: "50%", children: [
6791
6861
  /* @__PURE__ */ jsxRuntime.jsx("stop", { offset: "0%", stopColor: color, stopOpacity: 0.15 }),
@@ -6818,6 +6888,10 @@ var init_SvgRing = __esm({
6818
6888
  }
6819
6889
  )
6820
6890
  ] });
6891
+ if (asRoot) {
6892
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: `0 0 ${width} ${height}`, width, height, children: inner });
6893
+ }
6894
+ return inner;
6821
6895
  };
6822
6896
  SvgRing.displayName = "SvgRing";
6823
6897
  }
@@ -6829,15 +6903,18 @@ var init_SvgShield = __esm({
6829
6903
  SHIELD_PATH = "M15,2 C15,2 5,5 2,6 C2,6 2,18 5,24 C8,30 15,34 15,34 C15,34 22,30 25,24 C28,18 28,6 28,6 C25,5 15,2 15,2 Z";
6830
6904
  CHECK_PATH = "M10,18 L14,22 L21,13";
6831
6905
  SvgShield = ({
6832
- x,
6833
- y,
6906
+ x = 50,
6907
+ y = 50,
6834
6908
  size = 1,
6835
6909
  variant = "outline",
6836
6910
  color = "var(--color-primary)",
6837
6911
  opacity = 1,
6838
- className
6912
+ className,
6913
+ asRoot = true,
6914
+ width = 100,
6915
+ height = 100
6839
6916
  }) => {
6840
- return /* @__PURE__ */ jsxRuntime.jsxs(
6917
+ const inner = /* @__PURE__ */ jsxRuntime.jsxs(
6841
6918
  "g",
6842
6919
  {
6843
6920
  className,
@@ -6868,6 +6945,10 @@ var init_SvgShield = __esm({
6868
6945
  ]
6869
6946
  }
6870
6947
  );
6948
+ if (asRoot) {
6949
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: `0 0 ${width} ${height}`, width, height, children: inner });
6950
+ }
6951
+ return inner;
6871
6952
  };
6872
6953
  SvgShield.displayName = "SvgShield";
6873
6954
  }
@@ -6877,20 +6958,23 @@ var init_SvgStack = __esm({
6877
6958
  "components/core/atoms/svg/SvgStack.tsx"() {
6878
6959
  "use client";
6879
6960
  SvgStack = ({
6880
- x,
6881
- y,
6961
+ x = 10,
6962
+ y = 40,
6882
6963
  layers: rawLayers = 3,
6883
6964
  width = 60,
6884
6965
  height = 40,
6885
6966
  color = "var(--color-primary)",
6886
6967
  opacity = 1,
6887
6968
  className,
6888
- labels
6969
+ labels,
6970
+ asRoot = true,
6971
+ svgWidth = 90,
6972
+ svgHeight = 80
6889
6973
  }) => {
6890
6974
  const layers = Math.max(2, Math.min(4, rawLayers));
6891
6975
  const verticalOffset = 8;
6892
6976
  const horizontalOffset = 4;
6893
- return /* @__PURE__ */ jsxRuntime.jsx("g", { className, opacity, children: Array.from({ length: layers }).map((_, i) => {
6977
+ const inner = /* @__PURE__ */ jsxRuntime.jsx("g", { className, opacity, children: Array.from({ length: layers }).map((_, i) => {
6894
6978
  const layerIndex = layers - 1 - i;
6895
6979
  const layerX = x + layerIndex * horizontalOffset;
6896
6980
  const layerY = y - layerIndex * verticalOffset;
@@ -6928,6 +7012,10 @@ var init_SvgStack = __esm({
6928
7012
  )
6929
7013
  ] }, layerIndex);
6930
7014
  }) });
7015
+ if (asRoot) {
7016
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: `0 0 ${svgWidth} ${svgHeight}`, width: svgWidth, height: svgHeight, children: inner });
7017
+ }
7018
+ return inner;
6931
7019
  };
6932
7020
  SvgStack.displayName = "SvgStack";
6933
7021
  }
@@ -7764,10 +7852,11 @@ var init_ProgressBar = __esm({
7764
7852
  const effectiveColor = color ?? variant;
7765
7853
  const effectiveShowPercentage = showPercentage || showLabel;
7766
7854
  if (progressType === "linear") {
7855
+ const showHeader = label || effectiveShowPercentage;
7767
7856
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("w-full", className), children: [
7768
- label && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-1.5", children: [
7769
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-bold text-foreground", children: label }),
7770
- effectiveShowPercentage && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-sm text-foreground font-medium", children: [
7857
+ showHeader && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-1.5", children: [
7858
+ label && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-bold text-foreground", children: label }),
7859
+ effectiveShowPercentage && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: cn("text-sm text-foreground font-medium", !label && "ml-auto"), children: [
7771
7860
  Math.round(percentage),
7772
7861
  "%"
7773
7862
  ] })
@@ -7852,10 +7941,11 @@ var init_ProgressBar = __esm({
7852
7941
  const stepValue = max / steps;
7853
7942
  const activeSteps = Math.floor(value / stepValue);
7854
7943
  const partialStep = value % stepValue / stepValue;
7944
+ const showStepHeader = label || effectiveShowPercentage;
7855
7945
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("w-full", className), children: [
7856
- label && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-2", children: [
7857
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-foreground", children: label }),
7858
- effectiveShowPercentage && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-sm text-muted-foreground", children: [
7946
+ showStepHeader && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-2", children: [
7947
+ label && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-foreground", children: label }),
7948
+ effectiveShowPercentage && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: cn("text-sm text-muted-foreground", !label && "ml-auto"), children: [
7859
7949
  Math.round(percentage),
7860
7950
  "%"
7861
7951
  ] })
@@ -14290,7 +14380,7 @@ var init_AuthLayout = __esm({
14290
14380
  init_Stack();
14291
14381
  init_Typography();
14292
14382
  AuthLayout = ({
14293
- appName = "{{APP_TITLE}}",
14383
+ appName = "My App",
14294
14384
  logo,
14295
14385
  backgroundImage,
14296
14386
  showBranding = true,
@@ -17185,7 +17275,7 @@ var init_MarkdownContent = __esm({
17185
17275
  init_CodeBlock();
17186
17276
  init_cn();
17187
17277
  MarkdownContent = React93__namespace.default.memo(
17188
- ({ content, direction, className }) => {
17278
+ ({ content, direction = "ltr", className }) => {
17189
17279
  const { t: _t } = hooks.useTranslate();
17190
17280
  const safeContent = typeof content === "string" ? content : String(content ?? "");
17191
17281
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -48762,6 +48852,7 @@ var init_component_registry_generated = __esm({
48762
48852
  init_StatDisplay();
48763
48853
  init_StateArchitectBoard();
48764
48854
  init_StateIndicator();
48855
+ init_StateJsonView();
48765
48856
  init_StateMachineView();
48766
48857
  init_StateNode();
48767
48858
  init_StatsGrid();
@@ -49076,6 +49167,7 @@ var init_component_registry_generated = __esm({
49076
49167
  "StatDisplay": StatDisplay,
49077
49168
  "StateArchitectBoard": StateArchitectBoard,
49078
49169
  "StateIndicator": StateIndicator,
49170
+ "StateJsonView": StateJsonView,
49079
49171
  "StateMachineView": StateMachineView,
49080
49172
  "StateNode": StateNode2,
49081
49173
  "StatsGrid": StatsGrid,