@trading-game/design-intelligence-layer 0.13.2 → 0.13.3

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
@@ -700,10 +700,23 @@ type BoostTicketCardProps = {
700
700
  * Defaults to `"center"`.
701
701
  */
702
702
  boostInfoAlign?: "start" | "center" | "end";
703
+ /**
704
+ * Heading shown at the top of the mobile drawer (forwarded to
705
+ * `TooltipContent.title`). Desktop tooltip ignores this. When omitted, the
706
+ * underlying `TooltipContent` falls back to its own `"Title"` placeholder.
707
+ */
708
+ boostInfoTitle?: string;
709
+ /**
710
+ * Label on the dismiss button at the bottom of the mobile drawer (forwarded
711
+ * to `TooltipContent.closeLabel`). Desktop tooltip ignores this. When
712
+ * omitted, the underlying `TooltipContent` falls back to its own `"Label"`
713
+ * placeholder.
714
+ */
715
+ boostInfoCloseLabel?: string;
703
716
  /** Compact (mobile) layout — reduces horizontal padding from 16px to 8px. */
704
717
  compact?: boolean;
705
718
  };
706
- declare function BoostTicketCard({ className, icon, label, value, currency, stubLabel, onStubClick, stubDisabled, boostAmount, boostCurrency, boostInfo, boostInfoSide, boostInfoAlign, compact, }: BoostTicketCardProps): react_jsx_runtime.JSX.Element;
719
+ declare function BoostTicketCard({ className, icon, label, value, currency, stubLabel, onStubClick, stubDisabled, boostAmount, boostCurrency, boostInfo, boostInfoSide, boostInfoAlign, boostInfoTitle, boostInfoCloseLabel, compact, }: BoostTicketCardProps): react_jsx_runtime.JSX.Element;
707
720
  /** Alias for the Figma-named variant. */
708
721
  declare const TicketCardDesktop: typeof TicketCard;
709
722
 
package/dist/index.d.ts CHANGED
@@ -700,10 +700,23 @@ type BoostTicketCardProps = {
700
700
  * Defaults to `"center"`.
701
701
  */
702
702
  boostInfoAlign?: "start" | "center" | "end";
703
+ /**
704
+ * Heading shown at the top of the mobile drawer (forwarded to
705
+ * `TooltipContent.title`). Desktop tooltip ignores this. When omitted, the
706
+ * underlying `TooltipContent` falls back to its own `"Title"` placeholder.
707
+ */
708
+ boostInfoTitle?: string;
709
+ /**
710
+ * Label on the dismiss button at the bottom of the mobile drawer (forwarded
711
+ * to `TooltipContent.closeLabel`). Desktop tooltip ignores this. When
712
+ * omitted, the underlying `TooltipContent` falls back to its own `"Label"`
713
+ * placeholder.
714
+ */
715
+ boostInfoCloseLabel?: string;
703
716
  /** Compact (mobile) layout — reduces horizontal padding from 16px to 8px. */
704
717
  compact?: boolean;
705
718
  };
706
- declare function BoostTicketCard({ className, icon, label, value, currency, stubLabel, onStubClick, stubDisabled, boostAmount, boostCurrency, boostInfo, boostInfoSide, boostInfoAlign, compact, }: BoostTicketCardProps): react_jsx_runtime.JSX.Element;
719
+ declare function BoostTicketCard({ className, icon, label, value, currency, stubLabel, onStubClick, stubDisabled, boostAmount, boostCurrency, boostInfo, boostInfoSide, boostInfoAlign, boostInfoTitle, boostInfoCloseLabel, compact, }: BoostTicketCardProps): react_jsx_runtime.JSX.Element;
707
720
  /** Alias for the Figma-named variant. */
708
721
  declare const TicketCardDesktop: typeof TicketCard;
709
722
 
package/dist/index.js CHANGED
@@ -6402,6 +6402,8 @@ function BoostTicketCard({
6402
6402
  boostInfo,
6403
6403
  boostInfoSide = "top",
6404
6404
  boostInfoAlign = "center",
6405
+ boostInfoTitle,
6406
+ boostInfoCloseLabel,
6405
6407
  compact = false
6406
6408
  }) {
6407
6409
  return /* @__PURE__ */ jsx57("div", { className: cn("flex w-full flex-col gap-2", className), children: /* @__PURE__ */ jsxs27("div", { className: "relative flex w-full items-stretch justify-between rounded-sm bg-subtle", children: [
@@ -6434,7 +6436,7 @@ function BoostTicketCard({
6434
6436
  children: /* @__PURE__ */ jsx57(Info, { className: "!size-3.5", strokeWidth: 2 })
6435
6437
  }
6436
6438
  ) }),
6437
- /* @__PURE__ */ jsx57(TooltipContent, { side: boostInfoSide, align: boostInfoAlign, variant: "inverse", className: "max-w-xs whitespace-normal", children: boostInfo })
6439
+ /* @__PURE__ */ jsx57(TooltipContent, { side: boostInfoSide, align: boostInfoAlign, title: boostInfoTitle, closeLabel: boostInfoCloseLabel, variant: "inverse", className: "max-w-xs whitespace-normal", children: boostInfo })
6438
6440
  ] }) })
6439
6441
  ] })
6440
6442
  ] })