@trading-game/design-intelligence-layer 0.16.6 → 0.16.7
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 +24 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +24 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/styles.css +8 -8
package/dist/index.cjs
CHANGED
|
@@ -1126,7 +1126,7 @@ var badgeVariants = (0, import_class_variance_authority3.cva)(
|
|
|
1126
1126
|
"fill-success": "bg-semantic-win/10 border-transparent text-semantic-win",
|
|
1127
1127
|
"fill-fail": "bg-semantic-loss/10 border-transparent text-semantic-loss",
|
|
1128
1128
|
"fill-warning": "bg-semantic-warning/10 border-transparent text-semantic-warning",
|
|
1129
|
-
"fill-credit": "bg-semantic-boost-surface border-transparent text-on-semantic-boost !text-xs !font-
|
|
1129
|
+
"fill-credit": "bg-semantic-boost-surface border-transparent text-on-semantic-boost !text-xs !font-bold",
|
|
1130
1130
|
// Demo / test-mode flag — opaque light-peach surface + red-orange text.
|
|
1131
1131
|
// Uses --semantic-demo-surface (a solid color-mix of demo @ 10% with white)
|
|
1132
1132
|
// so the badge looks identical on any background.
|
|
@@ -1178,7 +1178,7 @@ var import_lucide_react3 = require("lucide-react");
|
|
|
1178
1178
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1179
1179
|
var SURFACE_CLASSES = "w-full rounded-md border border-primary/[0.16] bg-primary/[0.08] px-4 py-3.5";
|
|
1180
1180
|
function IconBadge({ glyph }) {
|
|
1181
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "inline-flex size-10 shrink-0 items-center justify-center rounded-
|
|
1181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "inline-flex size-10 shrink-0 items-center justify-center rounded-full bg-primary text-on-primary", children: glyph });
|
|
1182
1182
|
}
|
|
1183
1183
|
function Banner(_a) {
|
|
1184
1184
|
var _b = _a, {
|
|
@@ -7086,7 +7086,7 @@ function CreditTicketCard({
|
|
|
7086
7086
|
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: cn("flex w-full flex-col gap-2", className), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "relative flex w-full items-stretch justify-between rounded-sm bg-subtle", children: [
|
|
7087
7087
|
(() => {
|
|
7088
7088
|
const badgeText = badgeValue ? `${badgeValue}${badgeCurrency ? ` ${badgeCurrency}` : ""}` : badgeLabel;
|
|
7089
|
-
const creditBadge = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Badge, { variant: "fill-credit", size: "sm", className: "!gap-1 !
|
|
7089
|
+
const creditBadge = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Badge, { variant: "fill-credit", size: "sm", className: "!gap-1 !tracking-normal", children: [
|
|
7090
7090
|
badgeIcon,
|
|
7091
7091
|
badgeText,
|
|
7092
7092
|
badgeInfo && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Tooltip2, { children: [
|
|
@@ -7102,39 +7102,39 @@ function CreditTicketCard({
|
|
|
7102
7102
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TooltipContent, { side: badgeInfoSide, align: badgeInfoAlign, title: badgeInfoTitle, closeLabel: badgeInfoCloseLabel, variant: "inverse", className: "max-w-xs whitespace-normal", children: badgeInfo })
|
|
7103
7103
|
] }) })
|
|
7104
7104
|
] });
|
|
7105
|
-
const valueText = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("p", { className: "leading-none", children: [
|
|
7105
|
+
const valueText = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("p", { className: "leading-none whitespace-nowrap", children: [
|
|
7106
7106
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
7107
7107
|
currency && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
7108
7108
|
" ",
|
|
7109
7109
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm text-on-subtle", children: currency })
|
|
7110
7110
|
] })
|
|
7111
7111
|
] });
|
|
7112
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.
|
|
7112
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
7113
7113
|
"div",
|
|
7114
7114
|
{
|
|
7115
7115
|
className: cn(
|
|
7116
|
-
"flex flex-1 overflow-hidden",
|
|
7117
|
-
compact ? "
|
|
7116
|
+
"flex flex-1 items-center overflow-hidden",
|
|
7117
|
+
compact ? "gap-2 px-2 py-4" : "gap-4 px-4 py-4"
|
|
7118
7118
|
),
|
|
7119
|
-
children:
|
|
7120
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
7121
|
-
icon && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
7122
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-col gap-1 whitespace-nowrap", children: [
|
|
7123
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "text-xs text-on-subtle", children: label }),
|
|
7124
|
-
valueText
|
|
7125
|
-
] })
|
|
7126
|
-
] }),
|
|
7127
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: cn("flex", icon && "pl-12"), children: creditBadge })
|
|
7128
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
7119
|
+
children: [
|
|
7129
7120
|
icon && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
7130
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-col gap-1
|
|
7131
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "text-xs text-on-subtle", children: label }),
|
|
7132
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7121
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex min-w-0 flex-col gap-1", children: [
|
|
7122
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "text-xs text-on-subtle whitespace-nowrap", children: label }),
|
|
7123
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
7124
|
+
"div",
|
|
7125
|
+
{
|
|
7126
|
+
className: cn(
|
|
7127
|
+
"flex items-center",
|
|
7128
|
+
compact ? "flex-wrap gap-x-2 gap-y-1" : "gap-4"
|
|
7129
|
+
),
|
|
7130
|
+
children: [
|
|
7131
|
+
valueText,
|
|
7132
|
+
creditBadge
|
|
7133
|
+
]
|
|
7134
|
+
}
|
|
7135
|
+
)
|
|
7136
7136
|
] })
|
|
7137
|
-
]
|
|
7137
|
+
]
|
|
7138
7138
|
}
|
|
7139
7139
|
);
|
|
7140
7140
|
})(),
|