@kodiak-finance/orderly-portfolio 2.8.19 → 2.8.21-alpha.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.d.mts CHANGED
@@ -111,7 +111,6 @@ declare const useAssetsHistoryData: (localKey: string, options?: {
111
111
  pnl?: number | undefined;
112
112
  snapshot_time?: number | undefined;
113
113
  }[];
114
- readonly volumeUpdateDate: any;
115
114
  readonly filterItems: any;
116
115
  readonly onFilter: (filter: {
117
116
  name: string;
@@ -157,7 +156,6 @@ declare const useAssetsChartScript: () => {
157
156
  pnl?: number | undefined;
158
157
  snapshot_time?: number | undefined;
159
158
  }[];
160
- readonly volumeUpdateDate: any;
161
159
  readonly filterItems: any;
162
160
  readonly onFilter: (filter: {
163
161
  name: string;
@@ -250,7 +248,6 @@ declare const usePerformanceScript: () => {
250
248
  pnl?: number | undefined;
251
249
  snapshot_time?: number | undefined;
252
250
  }[];
253
- volumeUpdateDate: any;
254
251
  filterItems: any;
255
252
  onFilter: (filter: {
256
253
  name: string;
package/dist/index.d.ts CHANGED
@@ -111,7 +111,6 @@ declare const useAssetsHistoryData: (localKey: string, options?: {
111
111
  pnl?: number | undefined;
112
112
  snapshot_time?: number | undefined;
113
113
  }[];
114
- readonly volumeUpdateDate: any;
115
114
  readonly filterItems: any;
116
115
  readonly onFilter: (filter: {
117
116
  name: string;
@@ -157,7 +156,6 @@ declare const useAssetsChartScript: () => {
157
156
  pnl?: number | undefined;
158
157
  snapshot_time?: number | undefined;
159
158
  }[];
160
- readonly volumeUpdateDate: any;
161
159
  readonly filterItems: any;
162
160
  readonly onFilter: (filter: {
163
161
  name: string;
@@ -250,7 +248,6 @@ declare const usePerformanceScript: () => {
250
248
  pnl?: number | undefined;
251
249
  snapshot_time?: number | undefined;
252
250
  }[];
253
- volumeUpdateDate: any;
254
251
  filterItems: any;
255
252
  onFilter: (filter: {
256
253
  name: string;
package/dist/index.js CHANGED
@@ -4448,7 +4448,6 @@ var init_useAssetHistory = __esm({
4448
4448
  // calculatedData,
4449
4449
  aggregateValue,
4450
4450
  createFakeData,
4451
- volumeUpdateDate: data?.[data.length - 1]?.date ?? "",
4452
4451
  filterItems,
4453
4452
  onFilter,
4454
4453
  dateRange,
@@ -4681,7 +4680,6 @@ var init_performance_ui = __esm({
4681
4680
  aggregateValue,
4682
4681
  invisible,
4683
4682
  visible,
4684
- volumeUpdateDate,
4685
4683
  curPeriod,
4686
4684
  filterItems,
4687
4685
  onFilter
@@ -4776,18 +4774,15 @@ var init_performance_ui = __esm({
4776
4774
  classNames: {
4777
4775
  label: "oui-w-full"
4778
4776
  },
4779
- label: /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { justify: "between", children: [
4780
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: /* @__PURE__ */ jsxRuntime.jsx(
4781
- LabelWithHint,
4782
- {
4783
- label: t("portfolio.overview.performance.volume", {
4784
- period: curPeriod
4785
- }),
4786
- hint: t("portfolio.overview.performance.volume.tooltip")
4787
- }
4788
- ) }),
4789
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: volumeUpdateDate })
4790
- ] }),
4777
+ label: /* @__PURE__ */ jsxRuntime.jsx(
4778
+ LabelWithHint,
4779
+ {
4780
+ label: t("portfolio.overview.performance.volume", {
4781
+ period: curPeriod
4782
+ }),
4783
+ hint: t("portfolio.overview.performance.volume.tooltip")
4784
+ }
4785
+ ),
4791
4786
  valueProps: { visible },
4792
4787
  children: invisible ? "--" : aggregateValue.vol
4793
4788
  }
@@ -7408,6 +7403,12 @@ var PortfolioHandleMobile = (props) => {
7408
7403
  name: t("trading.history")
7409
7404
  });
7410
7405
  };
7406
+ const onGotoSymbolPerformance = () => {
7407
+ props.routerAdapter?.onRouteChange({
7408
+ href: "/portfolio/symbol-performance" /* SymbolPerformance */,
7409
+ name: t("portfolio.symbolPerformance")
7410
+ });
7411
+ };
7411
7412
  return /* @__PURE__ */ jsxRuntime.jsxs(
7412
7413
  orderlyUi.Flex,
7413
7414
  {
@@ -7486,6 +7487,37 @@ var PortfolioHandleMobile = (props) => {
7486
7487
  /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { className: "oui-text-base-80 oui-text-2xs", children: t("trading.history") })
7487
7488
  ]
7488
7489
  }
7490
+ ),
7491
+ /* @__PURE__ */ jsxRuntime.jsxs(
7492
+ orderlyUi.Flex,
7493
+ {
7494
+ direction: "column",
7495
+ gapY: 2,
7496
+ itemAlign: "center",
7497
+ className: "oui-flex-1 oui-cursor-pointer",
7498
+ onClick: onGotoSymbolPerformance,
7499
+ children: [
7500
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-flex oui-size-[48px] oui-items-center oui-justify-center oui-rounded-xl oui-bg-base-9", children: /* @__PURE__ */ jsxRuntime.jsx(
7501
+ "svg",
7502
+ {
7503
+ width: "28",
7504
+ height: "28",
7505
+ viewBox: "0 0 18 18",
7506
+ fill: "none",
7507
+ xmlns: "http://www.w3.org/2000/svg",
7508
+ className: "oui-text-white",
7509
+ children: /* @__PURE__ */ jsxRuntime.jsx(
7510
+ "path",
7511
+ {
7512
+ d: "M13.5 3.75C12.8096 3.75 12.375 4.18467 12.375 4.875V12.375C12.375 13.0654 12.8096 13.5 13.5 13.5H14.625C15.3154 13.5 15.75 13.0654 15.75 12.375V4.875C15.75 4.18467 15.3154 3.75 14.625 3.75H13.5ZM13.5 5.25H14.625V12.375H13.5V5.25ZM8.25 6.75C7.55964 6.75 7.125 7.18467 7.125 7.875V12.375C7.125 13.0654 7.55964 13.5 8.25 13.5H9.375C10.0654 13.5 10.5 13.0654 10.5 12.375V7.875C10.5 7.18467 10.0654 6.75 9.375 6.75H8.25ZM8.25 8.25H9.375V12.375H8.25V8.25ZM3 9.75C2.30964 9.75 1.875 10.1847 1.875 10.875V12.375C1.875 13.0654 2.30964 13.5 3 13.5H4.125C4.81536 13.5 5.25 13.0654 5.25 12.375V10.875C5.25 10.1847 4.81536 9.75 4.125 9.75H3ZM3 11.25H4.125V12.375H3V11.25Z",
7513
+ fill: "currentColor"
7514
+ }
7515
+ )
7516
+ }
7517
+ ) }),
7518
+ /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { className: "oui-text-base-80 oui-text-2xs", children: t("portfolio.symbolPerformance") })
7519
+ ]
7520
+ }
7489
7521
  )
7490
7522
  ]
7491
7523
  }