@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.cjs
CHANGED
|
@@ -6763,13 +6763,10 @@ function CreditTicketCard({
|
|
|
6763
6763
|
}) {
|
|
6764
6764
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: cn("flex w-full flex-col gap-2", className), children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "relative flex w-full items-stretch justify-between rounded-sm bg-subtle", children: [
|
|
6765
6765
|
(() => {
|
|
6766
|
+
const badgeText = badgeValue || badgeCurrency ? `${badgeLabel}: ${badgeValue}${badgeCurrency ? ` ${badgeCurrency}` : ""}` : badgeLabel;
|
|
6766
6767
|
const creditBadge = /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Badge, { variant: "fill-credit", size: "sm", className: "!gap-1 !font-medium !tracking-normal", children: [
|
|
6767
6768
|
badgeIcon,
|
|
6768
|
-
|
|
6769
|
-
": ",
|
|
6770
|
-
badgeValue,
|
|
6771
|
-
" ",
|
|
6772
|
-
badgeCurrency,
|
|
6769
|
+
badgeText,
|
|
6773
6770
|
badgeInfo && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Tooltip2, { children: [
|
|
6774
6771
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6775
6772
|
"button",
|
|
@@ -6783,7 +6780,7 @@ function CreditTicketCard({
|
|
|
6783
6780
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TooltipContent, { side: badgeInfoSide, align: badgeInfoAlign, title: badgeInfoTitle, closeLabel: badgeInfoCloseLabel, variant: "inverse", className: "max-w-xs whitespace-normal", children: badgeInfo })
|
|
6784
6781
|
] }) })
|
|
6785
6782
|
] });
|
|
6786
|
-
const labelValue = /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
6783
|
+
const labelValue = /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex h-11 flex-col justify-center gap-1 whitespace-nowrap", children: [
|
|
6787
6784
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-xs text-on-subtle", children: label }),
|
|
6788
6785
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("p", { className: "leading-none", children: [
|
|
6789
6786
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
@@ -6793,31 +6790,37 @@ function CreditTicketCard({
|
|
|
6793
6790
|
] })
|
|
6794
6791
|
] })
|
|
6795
6792
|
] });
|
|
6796
|
-
return /* @__PURE__ */ (0, import_jsx_runtime57.
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6794
|
+
"div",
|
|
6795
|
+
{
|
|
6796
|
+
className: cn(
|
|
6797
|
+
"flex flex-1 overflow-hidden",
|
|
6798
|
+
compact ? "flex-col gap-2 px-2 py-4" : "items-center gap-4 px-4 py-4"
|
|
6799
|
+
),
|
|
6800
|
+
children: compact ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
6801
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
6802
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
6803
|
+
labelValue
|
|
6804
|
+
] }),
|
|
6805
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex", children: icon ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex w-10 shrink-0 justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "w-max", children: creditBadge }) }) : creditBadge })
|
|
6806
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
|
|
6807
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
6808
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-col gap-1 whitespace-nowrap", children: [
|
|
6809
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-xs text-on-subtle", children: label }),
|
|
6810
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-center gap-4", children: [
|
|
6811
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("p", { className: "leading-none", children: [
|
|
6812
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
6813
|
+
currency && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
|
|
6814
|
+
" ",
|
|
6815
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6816
|
+
] })
|
|
6817
|
+
] }),
|
|
6818
|
+
creditBadge
|
|
6819
|
+
] })
|
|
6817
6820
|
] })
|
|
6818
6821
|
] })
|
|
6819
|
-
|
|
6820
|
-
|
|
6822
|
+
}
|
|
6823
|
+
);
|
|
6821
6824
|
})(),
|
|
6822
6825
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
6823
6826
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] bottom-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|