@tangle-network/sandbox-ui 0.131.2 → 0.131.3
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/assets.js +10 -9
- package/dist/globals.css +9 -0
- package/dist/styles.css +9 -0
- package/package.json +1 -1
package/dist/assets.js
CHANGED
|
@@ -440,6 +440,7 @@ function videoPosterUrl(content) {
|
|
|
440
440
|
}
|
|
441
441
|
return null;
|
|
442
442
|
}
|
|
443
|
+
const FADE_OUT = "[mask-image:linear-gradient(to_bottom,black_75%,transparent)]";
|
|
443
444
|
function formatDuration(seconds) {
|
|
444
445
|
const whole = Math.max(0, Math.round(seconds));
|
|
445
446
|
return `${Math.floor(whole / 60)}:${String(whole % 60).padStart(2, "0")}`;
|
|
@@ -462,7 +463,7 @@ function Thumbnail({ spec }) {
|
|
|
462
463
|
children: /* @__PURE__ */ jsxs("div", {
|
|
463
464
|
className: "flex h-full flex-col overflow-hidden rounded-md border border-border bg-card shadow-sm",
|
|
464
465
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
465
|
-
className: "flex flex-col gap-0.5 border-b border-border px-3 py-2",
|
|
466
|
+
className: "flex shrink-0 flex-col gap-0.5 border-b border-border px-3 py-2",
|
|
466
467
|
children: [
|
|
467
468
|
/* @__PURE__ */ jsx("div", {
|
|
468
469
|
className: "truncate text-xs text-muted-foreground",
|
|
@@ -478,18 +479,18 @@ function Thumbnail({ spec }) {
|
|
|
478
479
|
})
|
|
479
480
|
]
|
|
480
481
|
}), /* @__PURE__ */ jsxs("div", {
|
|
481
|
-
className: "flex flex-1 flex-col gap-1 overflow-hidden px-3 py-2",
|
|
482
|
+
className: cn("flex min-h-0 flex-1 flex-col gap-1 overflow-hidden px-3 py-2", FADE_OUT),
|
|
482
483
|
style: {
|
|
483
484
|
background: palette.paper,
|
|
484
485
|
color: palette.ink,
|
|
485
486
|
fontFamily: brand.fontFamily
|
|
486
487
|
},
|
|
487
488
|
children: [hero?.type === "hero" && /* @__PURE__ */ jsx("div", {
|
|
488
|
-
className: "line-clamp-2 text-sm font-bold leading-snug",
|
|
489
|
+
className: "line-clamp-2 shrink-0 text-sm font-bold leading-snug",
|
|
489
490
|
style: { color: palette.accent },
|
|
490
491
|
children: hero.headline
|
|
491
492
|
}), body?.type === "body" && /* @__PURE__ */ jsx("div", {
|
|
492
|
-
className: "
|
|
493
|
+
className: "text-xs leading-relaxed opacity-75",
|
|
493
494
|
children: body.text
|
|
494
495
|
})]
|
|
495
496
|
})]
|
|
@@ -555,15 +556,15 @@ function Thumbnail({ spec }) {
|
|
|
555
556
|
className: "flex h-full flex-col gap-2 overflow-hidden p-4",
|
|
556
557
|
children: [
|
|
557
558
|
/* @__PURE__ */ jsx("span", {
|
|
558
|
-
className: "text-xs font-medium text-muted-foreground",
|
|
559
|
+
className: "shrink-0 text-xs font-medium text-muted-foreground",
|
|
559
560
|
children: COPY_PLATFORM_LABEL[cc.platform] ?? cc.platform
|
|
560
561
|
}),
|
|
561
562
|
cc.headline && /* @__PURE__ */ jsx("div", {
|
|
562
|
-
className: "line-clamp-
|
|
563
|
+
className: "line-clamp-2 shrink-0 text-base font-semibold leading-snug sm:line-clamp-3",
|
|
563
564
|
children: cc.headline
|
|
564
565
|
}),
|
|
565
566
|
/* @__PURE__ */ jsx("div", {
|
|
566
|
-
className: "
|
|
567
|
+
className: cn("min-h-0 flex-1 overflow-hidden text-sm leading-relaxed text-muted-foreground [overflow-wrap:anywhere]", FADE_OUT),
|
|
567
568
|
children: cc.body
|
|
568
569
|
})
|
|
569
570
|
]
|
|
@@ -596,10 +597,10 @@ function AssetCard({ spec, variantCount, onApprove, onReject, onEdit, onOpen, cl
|
|
|
596
597
|
})]
|
|
597
598
|
}),
|
|
598
599
|
/* @__PURE__ */ jsxs("div", {
|
|
599
|
-
className: "flex items-center gap-2 px-2.5 py-2",
|
|
600
|
+
className: "flex flex-wrap items-center justify-between gap-x-2 gap-y-1 px-2.5 py-2",
|
|
600
601
|
children: [
|
|
601
602
|
/* @__PURE__ */ jsx("span", {
|
|
602
|
-
className: "min-w-0
|
|
603
|
+
className: "min-w-0 truncate text-xs text-muted-foreground",
|
|
603
604
|
children: formatLabel
|
|
604
605
|
}),
|
|
605
606
|
/* @__PURE__ */ jsx(Badge, {
|
package/dist/globals.css
CHANGED
|
@@ -2999,6 +2999,9 @@
|
|
|
2999
2999
|
--tw-gradient-to: transparent;
|
|
3000
3000
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
3001
3001
|
}
|
|
3002
|
+
.\[mask-image\:linear-gradient\(to_bottom\,black_75\%\,transparent\)\] {
|
|
3003
|
+
mask-image: linear-gradient(to bottom,black 75%,transparent);
|
|
3004
|
+
}
|
|
3002
3005
|
.fill-current {
|
|
3003
3006
|
fill: currentcolor;
|
|
3004
3007
|
}
|
|
@@ -5270,6 +5273,12 @@
|
|
|
5270
5273
|
-webkit-box-orient: vertical;
|
|
5271
5274
|
-webkit-line-clamp: 1;
|
|
5272
5275
|
}
|
|
5276
|
+
.sm\:line-clamp-3 {
|
|
5277
|
+
overflow: hidden;
|
|
5278
|
+
display: -webkit-box;
|
|
5279
|
+
-webkit-box-orient: vertical;
|
|
5280
|
+
-webkit-line-clamp: 3;
|
|
5281
|
+
}
|
|
5273
5282
|
.sm\:grid {
|
|
5274
5283
|
display: grid;
|
|
5275
5284
|
}
|
package/dist/styles.css
CHANGED
|
@@ -2999,6 +2999,9 @@
|
|
|
2999
2999
|
--tw-gradient-to: transparent;
|
|
3000
3000
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
3001
3001
|
}
|
|
3002
|
+
.\[mask-image\:linear-gradient\(to_bottom\,black_75\%\,transparent\)\] {
|
|
3003
|
+
mask-image: linear-gradient(to bottom,black 75%,transparent);
|
|
3004
|
+
}
|
|
3002
3005
|
.fill-current {
|
|
3003
3006
|
fill: currentcolor;
|
|
3004
3007
|
}
|
|
@@ -5270,6 +5273,12 @@
|
|
|
5270
5273
|
-webkit-box-orient: vertical;
|
|
5271
5274
|
-webkit-line-clamp: 1;
|
|
5272
5275
|
}
|
|
5276
|
+
.sm\:line-clamp-3 {
|
|
5277
|
+
overflow: hidden;
|
|
5278
|
+
display: -webkit-box;
|
|
5279
|
+
-webkit-box-orient: vertical;
|
|
5280
|
+
-webkit-line-clamp: 3;
|
|
5281
|
+
}
|
|
5273
5282
|
.sm\:grid {
|
|
5274
5283
|
display: grid;
|
|
5275
5284
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox-ui",
|
|
3
|
-
"version": "0.131.
|
|
3
|
+
"version": "0.131.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Unified UI component library for Tangle Sandbox — primitives, chat, dashboard, terminal, editor, and workspace components",
|
|
6
6
|
"repository": {
|