@ssa-ui-kit/widgets 1.0.9 → 1.0.10
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/components/AccountBalance/AccountBalance.d.ts +1 -1
- package/dist/components/AccountBalance/BalancePieChart.d.ts +1 -1
- package/dist/components/AccountBalance/types.d.ts +2 -0
- package/dist/components/ExchangeAccount/ExchangeAccount.d.ts +1 -1
- package/dist/components/ExchangeAccount/types.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/AccountBalance/AccountBalance.stories.tsx +2 -0
- package/src/components/AccountBalance/AccountBalance.tsx +13 -1
- package/src/components/AccountBalance/BalancePieChart.tsx +2 -0
- package/src/components/AccountBalance/BalancePieChartTitle.tsx +1 -4
- package/src/components/AccountBalance/types.ts +2 -0
- package/src/components/ExchangeAccount/ExchangeAccount.stories.tsx +19 -0
- package/src/components/ExchangeAccount/ExchangeAccount.tsx +3 -1
- package/src/components/ExchangeAccount/types.ts +2 -0
- package/tsbuildcache +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AccountBalanceProps } from './types';
|
|
2
|
-
export declare const AccountBalance: ({ title, className, onClick, link, variant, fullscreenModeFeature, activeHighlight, ...props }: AccountBalanceProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
2
|
+
export declare const AccountBalance: ({ title, className, onClick, link, variant, fullscreenModeFeature, activeHighlight, widgetMaxWidth, ...props }: AccountBalanceProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { BalancePieChartProps } from './types';
|
|
2
|
-
export declare const BalancePieChart: import("react").FC<Pick<BalancePieChartProps, "data" | "variant" | "total" | "currency" | "pieChartProps" | "activeHighlight" | "legendColorPalette" | "chartColorPalette" | "fullscreenModeFeature"> & {
|
|
2
|
+
export declare const BalancePieChart: import("react").FC<Pick<BalancePieChartProps, "data" | "variant" | "total" | "currency" | "pieChartProps" | "activeHighlight" | "onFullscreenModeChange" | "legendColorPalette" | "chartColorPalette" | "fullscreenModeFeature"> & {
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
4
|
}>;
|
|
@@ -20,6 +20,7 @@ type BalanceBase = {
|
|
|
20
20
|
export interface BalancePieChartProps extends WithTheme, BalanceBase {
|
|
21
21
|
pieChartProps?: Partial<PieChartProps>;
|
|
22
22
|
activeHighlight?: boolean;
|
|
23
|
+
onFullscreenModeChange?: (isFullscreenMode: boolean) => void;
|
|
23
24
|
}
|
|
24
25
|
export interface AccountBalanceProps extends BalanceBase {
|
|
25
26
|
title?: string;
|
|
@@ -27,6 +28,7 @@ export interface AccountBalanceProps extends BalanceBase {
|
|
|
27
28
|
onClick?: () => void;
|
|
28
29
|
link?: To;
|
|
29
30
|
activeHighlight?: boolean;
|
|
31
|
+
widgetMaxWidth?: string;
|
|
30
32
|
}
|
|
31
33
|
export type BalancePieChartTitleProps = Pick<BalancePieChartProps, 'total' | 'currency' | 'theme'>;
|
|
32
34
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ExchangeAccountProps } from './types';
|
|
2
|
-
export declare const ExchangeAccount: ({ platform, title, status, link, data, onClick, onDelete, }: ExchangeAccountProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
2
|
+
export declare const ExchangeAccount: ({ platform, title, status, link, data, pieChartProps, onClick, onDelete, }: ExchangeAccountProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { To } from 'react-router-dom';
|
|
2
|
+
import { PieChartProps } from '@ssa-ui-kit/core';
|
|
2
3
|
import { AccountBalanceProps } from '../AccountBalance';
|
|
3
4
|
export interface ExchangeAccountProps {
|
|
4
5
|
platform: string | JSX.Element;
|
|
@@ -8,4 +9,5 @@ export interface ExchangeAccountProps {
|
|
|
8
9
|
onDelete: () => void;
|
|
9
10
|
link?: To;
|
|
10
11
|
data: Omit<AccountBalanceProps, 'title' | 'className' | 'onClick' | 'link'>;
|
|
12
|
+
pieChartProps?: Partial<PieChartProps>;
|
|
11
13
|
}
|