@trading-game/design-intelligence-layer 0.16.5 → 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.js CHANGED
@@ -771,7 +771,7 @@ var badgeVariants = cva3(
771
771
  "fill-success": "bg-semantic-win/10 border-transparent text-semantic-win",
772
772
  "fill-fail": "bg-semantic-loss/10 border-transparent text-semantic-loss",
773
773
  "fill-warning": "bg-semantic-warning/10 border-transparent text-semantic-warning",
774
- "fill-credit": "bg-semantic-boost-surface border-transparent text-on-semantic-boost !text-xs !font-semibold",
774
+ "fill-credit": "bg-semantic-boost-surface border-transparent text-on-semantic-boost !text-xs !font-bold",
775
775
  // Demo / test-mode flag — opaque light-peach surface + red-orange text.
776
776
  // Uses --semantic-demo-surface (a solid color-mix of demo @ 10% with white)
777
777
  // so the badge looks identical on any background.
@@ -823,7 +823,7 @@ import { Gift, X as X2 } from "lucide-react";
823
823
  import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
824
824
  var SURFACE_CLASSES = "w-full rounded-md border border-primary/[0.16] bg-primary/[0.08] px-4 py-3.5";
825
825
  function IconBadge({ glyph }) {
826
- return /* @__PURE__ */ jsx9("span", { className: "inline-flex size-10 shrink-0 items-center justify-center rounded-xs bg-primary text-on-primary", children: glyph });
826
+ return /* @__PURE__ */ jsx9("span", { className: "inline-flex size-10 shrink-0 items-center justify-center rounded-full bg-primary text-on-primary", children: glyph });
827
827
  }
828
828
  function Banner(_a) {
829
829
  var _b = _a, {
@@ -6753,7 +6753,7 @@ function CreditTicketCard({
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
6755
  const badgeText = badgeValue ? `${badgeValue}${badgeCurrency ? ` ${badgeCurrency}` : ""}` : badgeLabel;
6756
- const creditBadge = /* @__PURE__ */ jsxs29(Badge, { variant: "fill-credit", size: "sm", className: "!gap-1 !font-medium !tracking-normal", children: [
6756
+ const creditBadge = /* @__PURE__ */ jsxs29(Badge, { variant: "fill-credit", size: "sm", className: "!gap-1 !tracking-normal", children: [
6757
6757
  badgeIcon,
6758
6758
  badgeText,
6759
6759
  badgeInfo && /* @__PURE__ */ jsx58(TooltipProvider, { children: /* @__PURE__ */ jsxs29(Tooltip2, { children: [
@@ -6769,39 +6769,39 @@ 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 valueText = /* @__PURE__ */ jsxs29("p", { className: "leading-none", children: [
6772
+ const valueText = /* @__PURE__ */ jsxs29("p", { className: "leading-none whitespace-nowrap", children: [
6773
6773
  /* @__PURE__ */ jsx58("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
6774
6774
  currency && /* @__PURE__ */ jsxs29(Fragment5, { children: [
6775
6775
  " ",
6776
6776
  /* @__PURE__ */ jsx58("span", { className: "text-sm text-on-subtle", children: currency })
6777
6777
  ] })
6778
6778
  ] });
6779
- return /* @__PURE__ */ jsx58(
6779
+ return /* @__PURE__ */ jsxs29(
6780
6780
  "div",
6781
6781
  {
6782
6782
  className: cn(
6783
- "flex flex-1 overflow-hidden",
6784
- compact ? "flex-col gap-2 px-2 py-4" : "items-center gap-4 px-4 py-4"
6783
+ "flex flex-1 items-center overflow-hidden",
6784
+ compact ? "gap-2 px-2 py-4" : "gap-4 px-4 py-4"
6785
6785
  ),
6786
- children: compact ? /* @__PURE__ */ jsxs29(Fragment5, { children: [
6787
- /* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-2", children: [
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 }),
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
- ] }),
6794
- /* @__PURE__ */ jsx58("div", { className: cn("flex", icon && "pl-12"), children: creditBadge })
6795
- ] }) : /* @__PURE__ */ jsxs29(Fragment5, { children: [
6786
+ children: [
6796
6787
  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
- /* @__PURE__ */ jsxs29("div", { className: "flex flex-col gap-1 whitespace-nowrap", children: [
6798
- /* @__PURE__ */ jsx58("p", { className: "text-xs text-on-subtle", children: label }),
6799
- /* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-4", children: [
6800
- valueText,
6801
- creditBadge
6802
- ] })
6788
+ /* @__PURE__ */ jsxs29("div", { className: "flex min-w-0 flex-col gap-1", children: [
6789
+ /* @__PURE__ */ jsx58("p", { className: "text-xs text-on-subtle whitespace-nowrap", children: label }),
6790
+ /* @__PURE__ */ jsxs29(
6791
+ "div",
6792
+ {
6793
+ className: cn(
6794
+ "flex items-center",
6795
+ compact ? "flex-wrap gap-x-2 gap-y-1" : "gap-4"
6796
+ ),
6797
+ children: [
6798
+ valueText,
6799
+ creditBadge
6800
+ ]
6801
+ }
6802
+ )
6803
6803
  ] })
6804
- ] })
6804
+ ]
6805
6805
  }
6806
6806
  );
6807
6807
  })(),