@trading-game/design-intelligence-layer 0.16.3 → 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.d.cts CHANGED
@@ -998,7 +998,7 @@ type OpenPositionsBlockProps = {
998
998
  sheetTitle?: string;
999
999
  /** Position items to render in the list. Empty array → emptyState is shown. */
1000
1000
  positions: Position[];
1001
- /** Footer link handler. The button label is fixed: "View transaction history". */
1001
+ /** Footer link handler. The button label is fixed: "View trade history". */
1002
1002
  onViewHistory?: () => void;
1003
1003
  /** Replaces the default empty state when positions.length === 0. */
1004
1004
  emptyState?: React$1.ReactNode;
package/dist/index.d.ts CHANGED
@@ -998,7 +998,7 @@ type OpenPositionsBlockProps = {
998
998
  sheetTitle?: string;
999
999
  /** Position items to render in the list. Empty array → emptyState is shown. */
1000
1000
  positions: Position[];
1001
- /** Footer link handler. The button label is fixed: "View transaction history". */
1001
+ /** Footer link handler. The button label is fixed: "View trade history". */
1002
1002
  onViewHistory?: () => void;
1003
1003
  /** Replaces the default empty state when positions.length === 0. */
1004
1004
  emptyState?: React$1.ReactNode;
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 || badgeCurrency ? `${badgeLabel}: ${badgeValue}${badgeCurrency ? ` ${badgeCurrency}` : ""}` : badgeLabel;
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 labelValue = /* @__PURE__ */ jsxs29("div", { className: "flex h-11 flex-col justify-center gap-1 whitespace-nowrap", children: [
6773
- /* @__PURE__ */ jsx58("p", { className: "text-xs text-on-subtle", children: label }),
6774
- /* @__PURE__ */ jsxs29("p", { className: "leading-none", children: [
6775
- /* @__PURE__ */ jsx58("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
6776
- currency && /* @__PURE__ */ jsxs29(Fragment5, { children: [
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("div", { className: "flex flex-1 flex-col gap-2", children: [
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
- labelValue
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", children: icon ? /* @__PURE__ */ jsx58("div", { className: "flex w-10 shrink-0 justify-start", children: /* @__PURE__ */ jsx58("div", { className: "w-max", children: creditBadge }) }) : creditBadge })
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
- /* @__PURE__ */ jsxs29("p", { className: "leading-none", children: [
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
  ] })
@@ -7406,7 +7400,7 @@ function PositionsList({
7406
7400
  i < positions.length - 1 && /* @__PURE__ */ jsx67("div", { className: "h-px mx-4 bg-border-subtle" })
7407
7401
  ] }, i)) }),
7408
7402
  /* @__PURE__ */ jsx67(Separator, {}),
7409
- /* @__PURE__ */ jsx67("div", { className: "shrink-0 flex justify-center py-4", children: /* @__PURE__ */ jsx67(Button, { variant: "tertiary", size: "md", onClick: onViewHistory, children: "View transaction history" }) })
7403
+ /* @__PURE__ */ jsx67("div", { className: "shrink-0 flex justify-center py-4", children: /* @__PURE__ */ jsx67(Button, { variant: "tertiary", size: "md", onClick: onViewHistory, children: "View trade history" }) })
7410
7404
  ] });
7411
7405
  }
7412
7406
  function PositionRow({ position }) {
@@ -7461,7 +7455,7 @@ function DefaultEmptyState({ onViewHistory }) {
7461
7455
  return /* @__PURE__ */ jsx67(Empty, { className: "flex min-h-0 flex-1 flex-col justify-center border-none rounded-none p-6 text-center", children: /* @__PURE__ */ jsxs36(EmptyHeader, { className: "gap-4", children: [
7462
7456
  /* @__PURE__ */ jsx67(EmptyMedia, { children: /* @__PURE__ */ jsx67(History2, { className: "size-8 text-on-subtle" }) }),
7463
7457
  /* @__PURE__ */ jsx67(EmptyTitle, { className: "text-base leading-6 font-semibold tracking-normal body-md text-on-subtle", children: "No trades yet." }),
7464
- /* @__PURE__ */ jsx67(Button, { variant: "tertiary", size: "md", onClick: onViewHistory, children: "View transaction history" })
7458
+ /* @__PURE__ */ jsx67(Button, { variant: "tertiary", size: "md", onClick: onViewHistory, children: "View trade history" })
7465
7459
  ] }) });
7466
7460
  }
7467
7461
  export {