@ssa-ui-kit/widgets 1.0.3 → 1.0.5

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.
Files changed (37) hide show
  1. package/dist/components/AccountBalance/AccountBalance.d.ts +1 -1
  2. package/dist/components/AccountBalance/BalancePieChart.d.ts +1 -1
  3. package/dist/components/AccountBalance/index.d.ts +0 -1
  4. package/dist/components/AccountBalance/types.d.ts +5 -1
  5. package/dist/index.js +1 -1
  6. package/dist/index.js.map +1 -1
  7. package/package.json +6 -6
  8. package/src/components/AccountBalance/AccountBalance.stories.tsx +6 -0
  9. package/src/components/AccountBalance/AccountBalance.tsx +30 -46
  10. package/src/components/AccountBalance/BalancePieChart.tsx +57 -23
  11. package/src/components/AccountBalance/BalancePieChartTitle.tsx +32 -23
  12. package/src/components/AccountBalance/index.ts +0 -1
  13. package/src/components/AccountBalance/types.ts +7 -2
  14. package/src/components/ExchangeAccount/ExchangeAccount.stories.tsx +2 -2
  15. package/src/components/ExchangeAccount/ExchangeAccount.tsx +17 -2
  16. package/src/components/ExchangeAccount/styles.ts +13 -31
  17. package/src/components/MealNutrients/MealNutrientsLineChart.tsx +3 -1
  18. package/tsbuildcache +1 -1
  19. package/tsconfig.build.json +2 -0
  20. package/dist/components/AccountBalance/WithLink.d.ts +0 -5
  21. package/src/components/AccountBalance/WithLink.tsx +0 -29
  22. /package/src/components/AccountBalance/{AccountBalance.spec.tsx → AccountBalance.specBackup.tsx} +0 -0
  23. /package/src/components/Activity/{Activity.spec.tsx → Activity.specBackup.tsx} +0 -0
  24. /package/src/components/Bmi/{Bmi.spec.tsx → Bmi.spec.Backup.tsx} +0 -0
  25. /package/src/components/BotsTable/{BotsTable.spec.tsx → BotsTable.specBackup.tsx} +0 -0
  26. /package/src/components/Calories/{Calories.spec.tsx → Calories.specBackup.tsx} +0 -0
  27. /package/src/components/ExchangeAccount/{ExchangeAccount.spec.tsx → ExchangeAccount.specBackup.tsx} +0 -0
  28. /package/src/components/ExchangeAccountKeys/{ExchangeAccountKeys.spec.tsx → ExchangeAccountKeys.specBackup.tsx} +0 -0
  29. /package/src/components/HeartRate/{HeartRate.spec.tsx → HeartRate.specBackup.tsx} +0 -0
  30. /package/src/components/ListGoals/{ListGoals.spec.tsx → ListGoals.specBackup.tsx} +0 -0
  31. /package/src/components/MealNutrients/{MealNutrients.spec.tsx → MealNutrients.specBackup.tsx} +0 -0
  32. /package/src/components/MealPlanner/{MealPlanner.spec.tsx → MealPlanner.specBackup.tsx} +0 -0
  33. /package/src/components/StepsCounter/{StepsCounter.spec.tsx → StepsCounter.specBackup.tsx} +0 -0
  34. /package/src/components/TradingInfoCard/{TradingInfoCard.spec.tsx → TradingInfoCard.specBackup.tsx} +0 -0
  35. /package/src/components/TradingScoreboard/{TradingScoreboard.spec.tsx → TradingScoreboard.specBackup.tsx} +0 -0
  36. /package/src/components/UpcomingWorkouts/{UpcomingWorkouts.spec.tsx → UpcomingWorkouts.specBackup.tsx} +0 -0
  37. /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,4 +1,4 @@
1
1
  import { BalancePieChartProps } from './types';
2
- export declare const BalancePieChart: import("react").FC<Pick<BalancePieChartProps, "data" | "variant" | "total" | "currency" | "legendColorPalette" | "chartColorPalette"> & {
2
+ export declare const BalancePieChart: import("react").FC<Pick<BalancePieChartProps, "data" | "variant" | "total" | "currency" | "pieChartProps" | "activeHighlight" | "legendColorPalette" | "chartColorPalette" | "fullscreenModeFeature"> & {
3
3
  theme?: import("@emotion/react").Theme;
4
4
  }>;
@@ -1,5 +1,4 @@
1
1
  export { AccountBalance } from './AccountBalance';
2
2
  export { BalancePieChart } from './BalancePieChart';
3
3
  export { BalancePieChartTitle } from './BalancePieChartTitle';
4
- export { WithLink } from './WithLink';
5
4
  export * from './types';
@@ -1,5 +1,5 @@
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
  }
@@ -9,6 +9,7 @@ type BalanceBase = {
9
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 {};