@trading-game/design-intelligence-layer 0.13.1 → 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.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -689,10 +689,34 @@ 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";
|
|
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;
|
|
692
716
|
/** Compact (mobile) layout — reduces horizontal padding from 16px to 8px. */
|
|
693
717
|
compact?: boolean;
|
|
694
718
|
};
|
|
695
|
-
declare function BoostTicketCard({ className, icon, label, value, currency, stubLabel, onStubClick, stubDisabled, boostAmount, boostCurrency, boostInfo, 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;
|
|
696
720
|
/** Alias for the Figma-named variant. */
|
|
697
721
|
declare const TicketCardDesktop: typeof TicketCard;
|
|
698
722
|
|
package/dist/index.d.ts
CHANGED
|
@@ -689,10 +689,34 @@ 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";
|
|
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;
|
|
692
716
|
/** Compact (mobile) layout — reduces horizontal padding from 16px to 8px. */
|
|
693
717
|
compact?: boolean;
|
|
694
718
|
};
|
|
695
|
-
declare function BoostTicketCard({ className, icon, label, value, currency, stubLabel, onStubClick, stubDisabled, boostAmount, boostCurrency, boostInfo, 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;
|
|
696
720
|
/** Alias for the Figma-named variant. */
|
|
697
721
|
declare const TicketCardDesktop: typeof TicketCard;
|
|
698
722
|
|
package/dist/index.js
CHANGED
|
@@ -6400,6 +6400,10 @@ function BoostTicketCard({
|
|
|
6400
6400
|
boostAmount = "0.00",
|
|
6401
6401
|
boostCurrency = "USDT",
|
|
6402
6402
|
boostInfo,
|
|
6403
|
+
boostInfoSide = "top",
|
|
6404
|
+
boostInfoAlign = "center",
|
|
6405
|
+
boostInfoTitle,
|
|
6406
|
+
boostInfoCloseLabel,
|
|
6403
6407
|
compact = false
|
|
6404
6408
|
}) {
|
|
6405
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: [
|
|
@@ -6432,7 +6436,7 @@ function BoostTicketCard({
|
|
|
6432
6436
|
children: /* @__PURE__ */ jsx57(Info, { className: "!size-3.5", strokeWidth: 2 })
|
|
6433
6437
|
}
|
|
6434
6438
|
) }),
|
|
6435
|
-
/* @__PURE__ */ jsx57(TooltipContent, { side:
|
|
6439
|
+
/* @__PURE__ */ jsx57(TooltipContent, { side: boostInfoSide, align: boostInfoAlign, title: boostInfoTitle, closeLabel: boostInfoCloseLabel, variant: "inverse", className: "max-w-xs whitespace-normal", children: boostInfo })
|
|
6436
6440
|
] }) })
|
|
6437
6441
|
] })
|
|
6438
6442
|
] })
|