@trading-game/design-intelligence-layer 0.16.4 → 0.16.5
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 +13 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6752,7 +6752,7 @@ function CreditTicketCard({
|
|
|
6752
6752
|
}) {
|
|
6753
6753
|
return /* @__PURE__ */ jsx58("div", { className: cn("flex w-full flex-col gap-2", className), children: /* @__PURE__ */ jsxs29("div", { className: "relative flex w-full items-stretch justify-between rounded-sm bg-subtle", children: [
|
|
6754
6754
|
(() => {
|
|
6755
|
-
const badgeText = badgeValue
|
|
6755
|
+
const badgeText = badgeValue ? `${badgeValue}${badgeCurrency ? ` ${badgeCurrency}` : ""}` : badgeLabel;
|
|
6756
6756
|
const creditBadge = /* @__PURE__ */ jsxs29(Badge, { variant: "fill-credit", size: "sm", className: "!gap-1 !font-medium !tracking-normal", children: [
|
|
6757
6757
|
badgeIcon,
|
|
6758
6758
|
badgeText,
|
|
@@ -6769,14 +6769,11 @@ function CreditTicketCard({
|
|
|
6769
6769
|
/* @__PURE__ */ jsx58(TooltipContent, { side: badgeInfoSide, align: badgeInfoAlign, title: badgeInfoTitle, closeLabel: badgeInfoCloseLabel, variant: "inverse", className: "max-w-xs whitespace-normal", children: badgeInfo })
|
|
6770
6770
|
] }) })
|
|
6771
6771
|
] });
|
|
6772
|
-
const
|
|
6773
|
-
/* @__PURE__ */ jsx58("
|
|
6774
|
-
/* @__PURE__ */ jsxs29(
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
" ",
|
|
6778
|
-
/* @__PURE__ */ jsx58("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6779
|
-
] })
|
|
6772
|
+
const valueText = /* @__PURE__ */ jsxs29("p", { className: "leading-none", children: [
|
|
6773
|
+
/* @__PURE__ */ jsx58("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
6774
|
+
currency && /* @__PURE__ */ jsxs29(Fragment5, { children: [
|
|
6775
|
+
" ",
|
|
6776
|
+
/* @__PURE__ */ jsx58("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6780
6777
|
] })
|
|
6781
6778
|
] });
|
|
6782
6779
|
return /* @__PURE__ */ jsx58(
|
|
@@ -6786,24 +6783,21 @@ function CreditTicketCard({
|
|
|
6786
6783
|
"flex flex-1 overflow-hidden",
|
|
6787
6784
|
compact ? "flex-col gap-2 px-2 py-4" : "items-center gap-4 px-4 py-4"
|
|
6788
6785
|
),
|
|
6789
|
-
children: compact ? /* @__PURE__ */ jsxs29(
|
|
6786
|
+
children: compact ? /* @__PURE__ */ jsxs29(Fragment5, { children: [
|
|
6790
6787
|
/* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-2", children: [
|
|
6791
6788
|
icon && /* @__PURE__ */ jsx58("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
6792
|
-
|
|
6789
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex flex-col gap-1 whitespace-nowrap", children: [
|
|
6790
|
+
/* @__PURE__ */ jsx58("p", { className: "text-xs text-on-subtle", children: label }),
|
|
6791
|
+
valueText
|
|
6792
|
+
] })
|
|
6793
6793
|
] }),
|
|
6794
|
-
/* @__PURE__ */ jsx58("div", { className: "flex",
|
|
6794
|
+
/* @__PURE__ */ jsx58("div", { className: cn("flex", icon && "pl-12"), children: creditBadge })
|
|
6795
6795
|
] }) : /* @__PURE__ */ jsxs29(Fragment5, { children: [
|
|
6796
6796
|
icon && /* @__PURE__ */ jsx58("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
6797
6797
|
/* @__PURE__ */ jsxs29("div", { className: "flex flex-col gap-1 whitespace-nowrap", children: [
|
|
6798
6798
|
/* @__PURE__ */ jsx58("p", { className: "text-xs text-on-subtle", children: label }),
|
|
6799
6799
|
/* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-4", children: [
|
|
6800
|
-
|
|
6801
|
-
/* @__PURE__ */ jsx58("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
6802
|
-
currency && /* @__PURE__ */ jsxs29(Fragment5, { children: [
|
|
6803
|
-
" ",
|
|
6804
|
-
/* @__PURE__ */ jsx58("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6805
|
-
] })
|
|
6806
|
-
] }),
|
|
6800
|
+
valueText,
|
|
6807
6801
|
creditBadge
|
|
6808
6802
|
] })
|
|
6809
6803
|
] })
|