@trading-game/design-intelligence-layer 0.15.1 → 0.15.2
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/index.cjs +32 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +32 -29
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6424,13 +6424,10 @@ function CreditTicketCard({
|
|
|
6424
6424
|
}) {
|
|
6425
6425
|
return /* @__PURE__ */ jsx57("div", { className: cn("flex w-full flex-col gap-2", className), children: /* @__PURE__ */ jsxs27("div", { className: "relative flex w-full items-stretch justify-between rounded-sm bg-subtle", children: [
|
|
6426
6426
|
(() => {
|
|
6427
|
+
const badgeText = badgeValue || badgeCurrency ? `${badgeLabel}: ${badgeValue}${badgeCurrency ? ` ${badgeCurrency}` : ""}` : badgeLabel;
|
|
6427
6428
|
const creditBadge = /* @__PURE__ */ jsxs27(Badge, { variant: "fill-credit", size: "sm", className: "!gap-1 !font-medium !tracking-normal", children: [
|
|
6428
6429
|
badgeIcon,
|
|
6429
|
-
|
|
6430
|
-
": ",
|
|
6431
|
-
badgeValue,
|
|
6432
|
-
" ",
|
|
6433
|
-
badgeCurrency,
|
|
6430
|
+
badgeText,
|
|
6434
6431
|
badgeInfo && /* @__PURE__ */ jsx57(TooltipProvider, { children: /* @__PURE__ */ jsxs27(Tooltip2, { children: [
|
|
6435
6432
|
/* @__PURE__ */ jsx57(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx57(
|
|
6436
6433
|
"button",
|
|
@@ -6444,7 +6441,7 @@ function CreditTicketCard({
|
|
|
6444
6441
|
/* @__PURE__ */ jsx57(TooltipContent, { side: badgeInfoSide, align: badgeInfoAlign, title: badgeInfoTitle, closeLabel: badgeInfoCloseLabel, variant: "inverse", className: "max-w-xs whitespace-normal", children: badgeInfo })
|
|
6445
6442
|
] }) })
|
|
6446
6443
|
] });
|
|
6447
|
-
const labelValue = /* @__PURE__ */ jsxs27(
|
|
6444
|
+
const labelValue = /* @__PURE__ */ jsxs27("div", { className: "flex h-11 flex-col justify-center gap-1 whitespace-nowrap", children: [
|
|
6448
6445
|
/* @__PURE__ */ jsx57("p", { className: "text-xs text-on-subtle", children: label }),
|
|
6449
6446
|
/* @__PURE__ */ jsxs27("p", { className: "leading-none", children: [
|
|
6450
6447
|
/* @__PURE__ */ jsx57("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
@@ -6454,31 +6451,37 @@ function CreditTicketCard({
|
|
|
6454
6451
|
] })
|
|
6455
6452
|
] })
|
|
6456
6453
|
] });
|
|
6457
|
-
return /* @__PURE__ */
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
/* @__PURE__ */
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6454
|
+
return /* @__PURE__ */ jsx57(
|
|
6455
|
+
"div",
|
|
6456
|
+
{
|
|
6457
|
+
className: cn(
|
|
6458
|
+
"flex flex-1 overflow-hidden",
|
|
6459
|
+
compact ? "flex-col gap-2 px-2 py-4" : "items-center gap-4 px-4 py-4"
|
|
6460
|
+
),
|
|
6461
|
+
children: compact ? /* @__PURE__ */ jsxs27("div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
6462
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2", children: [
|
|
6463
|
+
icon && /* @__PURE__ */ jsx57("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
6464
|
+
labelValue
|
|
6465
|
+
] }),
|
|
6466
|
+
/* @__PURE__ */ jsx57("div", { className: "flex", children: icon ? /* @__PURE__ */ jsx57("div", { className: "flex w-10 shrink-0 justify-start", children: /* @__PURE__ */ jsx57("div", { className: "w-max", children: creditBadge }) }) : creditBadge })
|
|
6467
|
+
] }) : /* @__PURE__ */ jsxs27(Fragment3, { children: [
|
|
6468
|
+
icon && /* @__PURE__ */ jsx57("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
6469
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex flex-col gap-1 whitespace-nowrap", children: [
|
|
6470
|
+
/* @__PURE__ */ jsx57("p", { className: "text-xs text-on-subtle", children: label }),
|
|
6471
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-4", children: [
|
|
6472
|
+
/* @__PURE__ */ jsxs27("p", { className: "leading-none", children: [
|
|
6473
|
+
/* @__PURE__ */ jsx57("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
6474
|
+
currency && /* @__PURE__ */ jsxs27(Fragment3, { children: [
|
|
6475
|
+
" ",
|
|
6476
|
+
/* @__PURE__ */ jsx57("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6477
|
+
] })
|
|
6478
|
+
] }),
|
|
6479
|
+
creditBadge
|
|
6480
|
+
] })
|
|
6478
6481
|
] })
|
|
6479
6482
|
] })
|
|
6480
|
-
|
|
6481
|
-
|
|
6483
|
+
}
|
|
6484
|
+
);
|
|
6482
6485
|
})(),
|
|
6483
6486
|
/* @__PURE__ */ jsx57("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
6484
6487
|
/* @__PURE__ */ jsx57("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] bottom-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|