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

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
@@ -689,10 +689,21 @@ type BoostTicketCardProps = {
689
689
  * not rendered.
690
690
  */
691
691
  boostInfo?: React$1.ReactNode;
692
+ /**
693
+ * Side the boost info tooltip opens on (desktop only — mobile always renders
694
+ * the info as a bottom-sheet drawer). Defaults to `"top"` to preserve the
695
+ * current behaviour.
696
+ */
697
+ boostInfoSide?: "top" | "bottom" | "left" | "right";
698
+ /**
699
+ * Alignment of the boost info tooltip relative to its trigger (desktop only).
700
+ * Defaults to `"center"`.
701
+ */
702
+ boostInfoAlign?: "start" | "center" | "end";
692
703
  /** Compact (mobile) layout — reduces horizontal padding from 16px to 8px. */
693
704
  compact?: boolean;
694
705
  };
695
- declare function BoostTicketCard({ className, icon, label, value, currency, stubLabel, onStubClick, stubDisabled, boostAmount, boostCurrency, boostInfo, compact, }: BoostTicketCardProps): react_jsx_runtime.JSX.Element;
706
+ declare function BoostTicketCard({ className, icon, label, value, currency, stubLabel, onStubClick, stubDisabled, boostAmount, boostCurrency, boostInfo, boostInfoSide, boostInfoAlign, compact, }: BoostTicketCardProps): react_jsx_runtime.JSX.Element;
696
707
  /** Alias for the Figma-named variant. */
697
708
  declare const TicketCardDesktop: typeof TicketCard;
698
709
 
package/dist/index.d.ts CHANGED
@@ -689,10 +689,21 @@ type BoostTicketCardProps = {
689
689
  * not rendered.
690
690
  */
691
691
  boostInfo?: React$1.ReactNode;
692
+ /**
693
+ * Side the boost info tooltip opens on (desktop only — mobile always renders
694
+ * the info as a bottom-sheet drawer). Defaults to `"top"` to preserve the
695
+ * current behaviour.
696
+ */
697
+ boostInfoSide?: "top" | "bottom" | "left" | "right";
698
+ /**
699
+ * Alignment of the boost info tooltip relative to its trigger (desktop only).
700
+ * Defaults to `"center"`.
701
+ */
702
+ boostInfoAlign?: "start" | "center" | "end";
692
703
  /** Compact (mobile) layout — reduces horizontal padding from 16px to 8px. */
693
704
  compact?: boolean;
694
705
  };
695
- declare function BoostTicketCard({ className, icon, label, value, currency, stubLabel, onStubClick, stubDisabled, boostAmount, boostCurrency, boostInfo, compact, }: BoostTicketCardProps): react_jsx_runtime.JSX.Element;
706
+ declare function BoostTicketCard({ className, icon, label, value, currency, stubLabel, onStubClick, stubDisabled, boostAmount, boostCurrency, boostInfo, boostInfoSide, boostInfoAlign, compact, }: BoostTicketCardProps): react_jsx_runtime.JSX.Element;
696
707
  /** Alias for the Figma-named variant. */
697
708
  declare const TicketCardDesktop: typeof TicketCard;
698
709
 
package/dist/index.js CHANGED
@@ -6400,6 +6400,8 @@ function BoostTicketCard({
6400
6400
  boostAmount = "0.00",
6401
6401
  boostCurrency = "USDT",
6402
6402
  boostInfo,
6403
+ boostInfoSide = "top",
6404
+ boostInfoAlign = "center",
6403
6405
  compact = false
6404
6406
  }) {
6405
6407
  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: [
@@ -6432,7 +6434,7 @@ function BoostTicketCard({
6432
6434
  children: /* @__PURE__ */ jsx57(Info, { className: "!size-3.5", strokeWidth: 2 })
6433
6435
  }
6434
6436
  ) }),
6435
- /* @__PURE__ */ jsx57(TooltipContent, { side: "top", variant: "inverse", className: "max-w-xs whitespace-normal", children: boostInfo })
6437
+ /* @__PURE__ */ jsx57(TooltipContent, { side: boostInfoSide, align: boostInfoAlign, variant: "inverse", className: "max-w-xs whitespace-normal", children: boostInfo })
6436
6438
  ] }) })
6437
6439
  ] })
6438
6440
  ] })