@ssa-ui-kit/templates 2.28.3 → 2.30.0
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.js
CHANGED
|
@@ -4073,6 +4073,53 @@ const KeeperRunsWithLoader = ({
|
|
|
4073
4073
|
...props
|
|
4074
4074
|
})
|
|
4075
4075
|
});
|
|
4076
|
+
;// ./src/projects/fintech/components/MarginInfo/MarginInfo.tsx
|
|
4077
|
+
function MarginInfo_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
4078
|
+
|
|
4079
|
+
|
|
4080
|
+
|
|
4081
|
+
|
|
4082
|
+
|
|
4083
|
+
var MarginInfo_ref = true ? {
|
|
4084
|
+
name: "1fx6k7",
|
|
4085
|
+
styles: "grid-area:margin-info"
|
|
4086
|
+
} : 0;
|
|
4087
|
+
const MarginInfoWithLoader = ({
|
|
4088
|
+
isFetching,
|
|
4089
|
+
multiplier,
|
|
4090
|
+
...props
|
|
4091
|
+
}) => {
|
|
4092
|
+
const theme = (0,react_namespaceObject.useTheme)();
|
|
4093
|
+
const {
|
|
4094
|
+
t
|
|
4095
|
+
} = useTranslation();
|
|
4096
|
+
const baseTitle = t('marginInfo.title');
|
|
4097
|
+
const title = multiplier ? `${baseTitle} (x${multiplier})` : baseTitle;
|
|
4098
|
+
return (0,jsx_runtime_namespaceObject.jsx)(WithWidgetLoader, {
|
|
4099
|
+
title: 'marginInfo.title',
|
|
4100
|
+
css: MarginInfo_ref,
|
|
4101
|
+
isFetching: isFetching,
|
|
4102
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.ClassNames, {
|
|
4103
|
+
children: ({
|
|
4104
|
+
css
|
|
4105
|
+
}) => (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
4106
|
+
css: css({
|
|
4107
|
+
gridArea: 'margin-info'
|
|
4108
|
+
}),
|
|
4109
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(widgets_namespaceObject.MarginInfo, {
|
|
4110
|
+
...props,
|
|
4111
|
+
title: title,
|
|
4112
|
+
headerClassName: css({
|
|
4113
|
+
marginBottom: 0,
|
|
4114
|
+
[theme.mediaQueries.md]: {
|
|
4115
|
+
marginBottom: '0'
|
|
4116
|
+
}
|
|
4117
|
+
})
|
|
4118
|
+
})
|
|
4119
|
+
})
|
|
4120
|
+
})
|
|
4121
|
+
});
|
|
4122
|
+
};
|
|
4076
4123
|
;// ./src/projects/fintech/pages/BotPage/components/InformationTab/styles.ts
|
|
4077
4124
|
|
|
4078
4125
|
const infoCardWrapper = theme => /*#__PURE__*/(0,react_namespaceObject.css)("position:relative;display:flex;flex-direction:column;align-items:flex-start;width:max-content;min-width:100%;background:", theme.colors.greyLighter, ";padding:4px 10px;border-radius:6px;text-decoration:none;cursor:pointer;white-space:nowrap;box-shadow:none;user-select:none;&::before{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;box-shadow:0 10px 40px 0 ", theme.colors.greyShadow, ";content:'';}&:active{background:", theme.colors.white, ";&::before{border-radius:6px;box-shadow:0 10px 40px 0 ", theme.colors.greyShadow24, ";}}" + ( true ? "" : 0), true ? "" : 0);
|
|
@@ -8037,9 +8084,9 @@ const WidgetsCustomLayoutTemplate = /*#__PURE__*/(/* unused pure expression or s
|
|
|
8037
8084
|
|
|
8038
8085
|
const WidgetLayoutDashboard = /*#__PURE__*/base_default()(WidgetsLayoutTemplate, true ? {
|
|
8039
8086
|
target: "e1uw7r3m0"
|
|
8040
|
-
} : 0)("grid-template-rows:repeat(12, 215px);grid-template-areas:'balance balance' 'max max' 'funds-place-order roles' 'hourly bots' 'weighted-mean-prices-btc weighted-mean-prices-eth' 'orders orders' 'turnover turnover' 'pnl pnl' 'cumulative cumulative' 'rebalancing rebalancing' 'positions profitability' 'keeper-runs
|
|
8087
|
+
} : 0)("grid-template-rows:repeat(12, 215px);grid-template-areas:'balance balance' 'max max' 'funds-place-order roles' 'hourly bots' 'weighted-mean-prices-btc weighted-mean-prices-eth' 'orders orders' 'turnover turnover' 'pnl pnl' 'cumulative cumulative' 'rebalancing rebalancing' 'positions profitability' 'keeper-runs margin-info';", ({
|
|
8041
8088
|
theme
|
|
8042
|
-
}) => theme.mediaQueries.md, "{grid-template-columns:calc(36% - 7px) calc(14% - 7px) calc(25% - 7px) calc(25% - 7px);grid-template-rows:repeat(6, 215px);grid-template-areas:'balance max funds-place-order roles' 'hourly bots weighted-mean-prices-btc weighted-mean-prices-eth' 'orders orders pnl pnl' 'turnover turnover cumulative cumulative' 'rebalancing rebalancing positions profitability' 'keeper-runs keeper-runs
|
|
8089
|
+
}) => theme.mediaQueries.md, "{grid-template-columns:calc(36% - 7px) calc(14% - 7px) calc(25% - 7px) calc(25% - 7px);grid-template-rows:repeat(6, 215px);grid-template-areas:'balance max funds-place-order roles' 'hourly bots weighted-mean-prices-btc weighted-mean-prices-eth' 'orders orders pnl pnl' 'turnover turnover cumulative cumulative' 'rebalancing rebalancing positions profitability' 'keeper-runs keeper-runs margin-info margin-info';margin-bottom:20px;}" + ( true ? "" : 0));
|
|
8043
8090
|
;// ./src/projects/fintech/pages/Dashboard/FinTechDashboard.tsx
|
|
8044
8091
|
function FinTechDashboard_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
8045
8092
|
|
|
@@ -8318,7 +8365,44 @@ const FinTechDashboard = () => {
|
|
|
8318
8365
|
data: graphsData,
|
|
8319
8366
|
period: period,
|
|
8320
8367
|
isFetching: isGraphStatLoading
|
|
8321
|
-
}, "keeperRuns")
|
|
8368
|
+
}, "keeperRuns"), (0,jsx_runtime_namespaceObject.jsx)(MarginInfoWithLoader, {
|
|
8369
|
+
multiplier: 3,
|
|
8370
|
+
base: "USDT",
|
|
8371
|
+
quote: "BTC",
|
|
8372
|
+
baseBorrowed: (0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
8373
|
+
children: ["100 ", (0,jsx_runtime_namespaceObject.jsx)("strong", {
|
|
8374
|
+
children: "USD"
|
|
8375
|
+
}), " \u22480.000000001 ", (0,jsx_runtime_namespaceObject.jsx)("strong", {
|
|
8376
|
+
children: "BTC"
|
|
8377
|
+
}), " (x2)"]
|
|
8378
|
+
}),
|
|
8379
|
+
baseInterestRate: "5.2%",
|
|
8380
|
+
baseTotalInterest: (0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
8381
|
+
children: ["25 ", (0,jsx_runtime_namespaceObject.jsx)("strong", {
|
|
8382
|
+
children: "USDT"
|
|
8383
|
+
}), " (x1.5)"]
|
|
8384
|
+
}),
|
|
8385
|
+
quoteBorrowed: (0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
8386
|
+
children: ["\u22480.000000001 ", (0,jsx_runtime_namespaceObject.jsx)("strong", {
|
|
8387
|
+
children: "BTC"
|
|
8388
|
+
})]
|
|
8389
|
+
}),
|
|
8390
|
+
quoteInterestRate: "4.8%",
|
|
8391
|
+
quoteTotalInterest: (0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
8392
|
+
children: ["0.0024 ", (0,jsx_runtime_namespaceObject.jsx)("strong", {
|
|
8393
|
+
children: "BTC"
|
|
8394
|
+
})]
|
|
8395
|
+
}),
|
|
8396
|
+
disableBorrow: false,
|
|
8397
|
+
disableRepay: false,
|
|
8398
|
+
onBorrow: () => {
|
|
8399
|
+
alert('Borrow action triggered');
|
|
8400
|
+
},
|
|
8401
|
+
onRepay: () => {
|
|
8402
|
+
alert('Repay action triggered');
|
|
8403
|
+
},
|
|
8404
|
+
isFetching: isStatLoading
|
|
8405
|
+
})]
|
|
8322
8406
|
})]
|
|
8323
8407
|
});
|
|
8324
8408
|
};
|