@ssa-ui-kit/widgets 1.0.2 → 1.0.4
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 +2 -3
- package/dist/components/AccountBalance/BalancePieChartTitle.d.ts +1 -2
- package/dist/components/AccountBalance/index.d.ts +0 -1
- package/dist/components/AccountBalance/types.d.ts +6 -2
- package/dist/components/Bmi/BmiHeatbar.d.ts +2 -3
- package/dist/components/Bmi/BmiInfo.d.ts +2 -3
- package/dist/components/Bmi/BmiLabel.d.ts +1 -2
- package/dist/components/Bmi/BmiPointer.d.ts +2 -3
- package/dist/components/BotsTable/BotsTableCell.d.ts +4 -5
- package/dist/components/BotsTable/BotsTableHead.d.ts +3 -4
- package/dist/components/BotsTable/BotsTableRow.d.ts +4 -5
- package/dist/components/BotsTable/BotsTableWrapper.d.ts +3 -4
- package/dist/components/BotsTable/stories/BotsTable/components/Actions/ActionIcon.d.ts +1 -1
- package/dist/components/BotsTable/types.d.ts +0 -1
- package/dist/components/ListGoals/types.d.ts +0 -1
- package/dist/components/MealNutrients/mockMealNutrientsRequest.d.ts +2 -2
- package/dist/components/MealNutrients/types.d.ts +0 -1
- package/dist/components/MealPlanner/MealPlannerBadge.d.ts +1 -2
- package/dist/components/MealPlanner/MealPlannerBars.d.ts +2 -3
- package/dist/components/MealPlanner/MealPlannerLegends.d.ts +4 -5
- package/dist/components/TradingScoreboard/TradingScoreboardBase.d.ts +3 -4
- package/dist/components/TradingScoreboard/types.d.ts +0 -1
- package/dist/components/UpcomingWorkouts/types.d.ts +0 -1
- package/dist/components/UserCard/UserCardBMI.d.ts +1 -1
- package/dist/components/UserCard/UserCardCredentials.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/components/AccountBalance/AccountBalance.stories.tsx +46 -0
- package/src/components/AccountBalance/AccountBalance.tsx +30 -46
- package/src/components/AccountBalance/BalancePieChart.tsx +57 -23
- package/src/components/AccountBalance/BalancePieChartTitle.tsx +32 -23
- package/src/components/AccountBalance/index.ts +0 -1
- package/src/components/AccountBalance/types.ts +8 -3
- package/src/components/ExchangeAccount/ExchangeAccount.stories.tsx +2 -2
- package/src/components/ExchangeAccount/ExchangeAccount.tsx +17 -2
- package/src/components/ExchangeAccount/styles.ts +13 -31
- package/test-results/.last-run.json +21 -0
- package/tsbuildcache +1 -1
- package/tsconfig.build.json +2 -0
- package/dist/components/AccountBalance/WithLink.d.ts +0 -6
- package/src/components/AccountBalance/WithLink.tsx +0 -29
- /package/src/components/AccountBalance/{AccountBalance.spec.tsx → AccountBalance.specBackup.tsx} +0 -0
- /package/src/components/Activity/{Activity.spec.tsx → Activity.specBackup.tsx} +0 -0
- /package/src/components/Bmi/{Bmi.spec.tsx → Bmi.spec.Backup.tsx} +0 -0
- /package/src/components/BotsTable/{BotsTable.spec.tsx → BotsTable.specBackup.tsx} +0 -0
- /package/src/components/Calories/{Calories.spec.tsx → Calories.specBackup.tsx} +0 -0
- /package/src/components/ExchangeAccount/{ExchangeAccount.spec.tsx → ExchangeAccount.specBackup.tsx} +0 -0
- /package/src/components/ExchangeAccountKeys/{ExchangeAccountKeys.spec.tsx → ExchangeAccountKeys.specBackup.tsx} +0 -0
- /package/src/components/HeartRate/{HeartRate.spec.tsx → HeartRate.specBackup.tsx} +0 -0
- /package/src/components/ListGoals/{ListGoals.spec.tsx → ListGoals.specBackup.tsx} +0 -0
- /package/src/components/MealNutrients/{MealNutrients.spec.tsx → MealNutrients.specBackup.tsx} +0 -0
- /package/src/components/MealPlanner/{MealPlanner.spec.tsx → MealPlanner.specBackup.tsx} +0 -0
- /package/src/components/StepsCounter/{StepsCounter.spec.tsx → StepsCounter.specBackup.tsx} +0 -0
- /package/src/components/TradingInfoCard/{TradingInfoCard.spec.tsx → TradingInfoCard.specBackup.tsx} +0 -0
- /package/src/components/TradingScoreboard/{TradingScoreboard.spec.tsx → TradingScoreboard.specBackup.tsx} +0 -0
- /package/src/components/UpcomingWorkouts/{UpcomingWorkouts.spec.tsx → UpcomingWorkouts.specBackup.tsx} +0 -0
- /package/src/components/WaterConsume/{WaterConsume.spec.tsx → WaterConsume.specBackup.tsx} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AccountBalanceProps } from './types';
|
|
2
|
-
export declare const AccountBalance: ({ title, className, onClick, link, variant, ...props }: AccountBalanceProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
2
|
+
export declare const AccountBalance: ({ title, className, onClick, link, variant, fullscreenModeFeature, activeHighlight, ...props }: AccountBalanceProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { BalancePieChartProps } from './types';
|
|
3
|
-
export declare const BalancePieChart: import("react").FC<Pick<BalancePieChartProps, "data" | "variant" | "total" | "currency" | "legendColorPalette" | "chartColorPalette"> & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
2
|
+
export declare const BalancePieChart: import("react").FC<Pick<BalancePieChartProps, "data" | "variant" | "total" | "currency" | "pieChartProps" | "activeHighlight" | "legendColorPalette" | "chartColorPalette" | "fullscreenModeFeature"> & {
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
5
4
|
}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { BalancePieChartTitleProps } from './types';
|
|
3
2
|
export declare const BalancePieChartTitle: import("react").FC<Pick<BalancePieChartTitleProps, "total" | "currency"> & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
5
4
|
}>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { MainColors, Theme } from '@ssa-ui-kit/core';
|
|
2
1
|
import type { To } from 'react-router-dom';
|
|
2
|
+
import { MainColors, PieChartProps, Theme } from '@ssa-ui-kit/core';
|
|
3
3
|
interface WithTheme {
|
|
4
4
|
theme: Theme;
|
|
5
5
|
}
|
|
6
6
|
type BalanceBase = {
|
|
7
7
|
total: number | string;
|
|
8
8
|
currency: string;
|
|
9
|
-
legendColorPalette?: Array<keyof MainColors>;
|
|
9
|
+
legendColorPalette?: Array<keyof MainColors | string>;
|
|
10
10
|
chartColorPalette?: string[];
|
|
11
11
|
variant?: 'valueList' | 'withoutValueList';
|
|
12
|
+
fullscreenModeFeature?: boolean;
|
|
12
13
|
data: Array<{
|
|
13
14
|
id: string | number;
|
|
14
15
|
value: number;
|
|
@@ -17,12 +18,15 @@ type BalanceBase = {
|
|
|
17
18
|
}>;
|
|
18
19
|
};
|
|
19
20
|
export interface BalancePieChartProps extends WithTheme, BalanceBase {
|
|
21
|
+
pieChartProps?: Partial<PieChartProps>;
|
|
22
|
+
activeHighlight?: boolean;
|
|
20
23
|
}
|
|
21
24
|
export interface AccountBalanceProps extends BalanceBase {
|
|
22
25
|
title?: string;
|
|
23
26
|
className?: string;
|
|
24
27
|
onClick?: () => void;
|
|
25
28
|
link?: To;
|
|
29
|
+
activeHighlight?: boolean;
|
|
26
30
|
}
|
|
27
31
|
export type BalancePieChartTitleProps = Pick<BalancePieChartProps, 'total' | 'currency' | 'theme'>;
|
|
28
32
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const BmiHeatbar: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
4
|
-
as?:
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const BmiInfo: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
4
|
-
as?:
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const BmiLabel: import("@emotion/styled").StyledComponent<Omit<import("@ssa-ui-kit/core/dist/components/Typography/types").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement> & {
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
4
3
|
}, {}, {}>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const BmiPointer: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
4
|
-
as?:
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
} & {
|
|
6
5
|
percentage: number;
|
|
7
6
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const BotsTableCell: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
4
|
-
as?:
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
} & {
|
|
6
|
-
align?: string
|
|
5
|
+
align?: string;
|
|
7
6
|
} & import("@ssa-ui-kit/core").CommonProps & import("react").ClassAttributes<HTMLTableDataCellElement> & import("react").TdHTMLAttributes<HTMLTableDataCellElement> & {
|
|
8
|
-
theme?: import("@emotion/react").Theme
|
|
7
|
+
theme?: import("@emotion/react").Theme;
|
|
9
8
|
}, {}, {}>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const BotsTableHead: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
4
|
-
as?:
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
} & import("@ssa-ui-kit/core").CommonProps & import("react").ClassAttributes<HTMLTableSectionElement> & import("react").HTMLAttributes<HTMLTableSectionElement> & {
|
|
6
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
+
theme?: import("@emotion/react").Theme;
|
|
7
6
|
}, {}, {}>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const BotsTableRow: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
4
|
-
as?:
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
} & import("@ssa-ui-kit/core").CommonProps & import("react").ClassAttributes<HTMLTableRowElement> & import("react").HTMLAttributes<HTMLTableRowElement> & {
|
|
6
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
+
theme?: import("@emotion/react").Theme;
|
|
7
6
|
} & {
|
|
8
|
-
isDisabled?: boolean
|
|
7
|
+
isDisabled?: boolean;
|
|
9
8
|
}, {}, {}>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const BotsTableWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
4
|
-
as?:
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
} & import("@ssa-ui-kit/core").CommonProps & import("react").ClassAttributes<HTMLTableElement> & import("react").TableHTMLAttributes<HTMLTableElement> & {
|
|
6
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
+
theme?: import("@emotion/react").Theme;
|
|
7
6
|
}, {}, {}>;
|
|
@@ -6,13 +6,13 @@ declare const mockDataLoad: {
|
|
|
6
6
|
x: Date;
|
|
7
7
|
y: number;
|
|
8
8
|
comp: number;
|
|
9
|
-
unit?: string
|
|
9
|
+
unit?: string;
|
|
10
10
|
}[];
|
|
11
11
|
}[]>;
|
|
12
12
|
getOptions(): Promise<OptionType[]>;
|
|
13
13
|
};
|
|
14
14
|
export declare const mockStaticApi: {
|
|
15
|
-
getData(timePeriodId:
|
|
15
|
+
getData(timePeriodId: "d" | "m" | "w"): Promise<({
|
|
16
16
|
data: {
|
|
17
17
|
comp: number;
|
|
18
18
|
unit: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const Marker: import("@emotion/styled").StyledComponent<import("@ssa-ui-kit/core/dist/components/Badge/types").BadgeProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
4
3
|
}, {}, {}>;
|
|
5
4
|
export default Marker;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const MealPlannerBars: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
4
|
-
as?:
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
6
5
|
export default MealPlannerBars;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const MealPlannerLegends: {
|
|
3
2
|
List: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?:
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
4
|
+
as?: React.ElementType;
|
|
6
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
7
6
|
Item: import("@emotion/styled").StyledComponent<{
|
|
8
|
-
theme?: import("@emotion/react").Theme
|
|
9
|
-
as?:
|
|
7
|
+
theme?: import("@emotion/react").Theme;
|
|
8
|
+
as?: React.ElementType;
|
|
10
9
|
}, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
11
10
|
};
|
|
12
11
|
export default MealPlannerLegends;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const TradingScoreboardBase: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
4
|
-
as?:
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
} & {
|
|
6
|
-
itemsPerRow?: number
|
|
5
|
+
itemsPerRow?: number;
|
|
7
6
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
7
|
export default TradingScoreboardBase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { User } from './types';
|
|
2
|
-
declare const UserCardBMI: ({ weight, height, age, }: Partial<Pick<User,
|
|
2
|
+
declare const UserCardBMI: ({ weight, height, age, }: Partial<Pick<User, "weight" | "height" | "age">>) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
3
3
|
export default UserCardBMI;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { User } from './types';
|
|
2
|
-
declare const UserCardCredentials: ({ name, email, }: Partial<Pick<User,
|
|
2
|
+
declare const UserCardCredentials: ({ name, email, }: Partial<Pick<User, "name" | "email">>) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
3
3
|
export default UserCardCredentials;
|