@xdcs-protocol/ui-kit 1.6.0 → 1.6.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.cjs.js +23 -23
- package/dist/index.es.js +1656 -1664
- package/dist/types/helpers/rightPanelLayout.d.ts +20 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Figma reference: Valid Stats card is 12.3125rem (197px) tall with 3 stat rows. */
|
|
2
|
+
export declare const VALID_STATS_FIGMA_ROW_COUNT = 3;
|
|
3
|
+
export declare const VALID_STATS_FIGMA_HEIGHT_REM = 12.3125;
|
|
4
|
+
/** Figma reference: Staking APY card is 12.6686rem (~202.7px) tall with 5 APY rows. */
|
|
5
|
+
export declare const STAKING_APY_FIGMA_ROW_COUNT = 5;
|
|
6
|
+
export declare const STAKING_APY_FIGMA_HEIGHT_REM = 12.6686;
|
|
7
|
+
/** Figma reference: ROI Calculator card is 20.9228rem (~334.77px) tall. */
|
|
8
|
+
export declare const ROI_CALCULATOR_FIGMA_HEIGHT_REM = 20.9228;
|
|
9
|
+
/** Bottom spacing below last APY row (visible gap above card border). */
|
|
10
|
+
export declare const STAKING_APY_BOTTOM_SPACING_REM = 1;
|
|
11
|
+
/** Bottom spacing below last row in ROI Calculator (visible gap above card border). */
|
|
12
|
+
export declare const ROI_CALCULATOR_BOTTOM_SPACING_REM = 1;
|
|
13
|
+
/**
|
|
14
|
+
* Figma gaps derived from card top positions (full 3-row / 5-row layout):
|
|
15
|
+
* Valid Stats bottom → Staking APY top: 13.13px
|
|
16
|
+
* Staking APY bottom → ROI Calculator top: 14.39px
|
|
17
|
+
*/
|
|
18
|
+
export declare const VALID_STATS_TO_STAKING_GAP_REM = 0.8206;
|
|
19
|
+
export declare const STAKING_TO_ROI_GAP_REM = 0.8996;
|
|
20
|
+
export declare const getProportionalCardHeight: (itemCount: number, figmaItemCount: number, figmaHeightRem: number) => string;
|