@ssa-ui-kit/widgets 1.0.3 → 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.
Files changed (36) 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 +2 -2
  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/tsbuildcache +1 -1
  18. package/tsconfig.build.json +2 -0
  19. package/dist/components/AccountBalance/WithLink.d.ts +0 -5
  20. package/src/components/AccountBalance/WithLink.tsx +0 -29
  21. /package/src/components/AccountBalance/{AccountBalance.spec.tsx → AccountBalance.specBackup.tsx} +0 -0
  22. /package/src/components/Activity/{Activity.spec.tsx → Activity.specBackup.tsx} +0 -0
  23. /package/src/components/Bmi/{Bmi.spec.tsx → Bmi.spec.Backup.tsx} +0 -0
  24. /package/src/components/BotsTable/{BotsTable.spec.tsx → BotsTable.specBackup.tsx} +0 -0
  25. /package/src/components/Calories/{Calories.spec.tsx → Calories.specBackup.tsx} +0 -0
  26. /package/src/components/ExchangeAccount/{ExchangeAccount.spec.tsx → ExchangeAccount.specBackup.tsx} +0 -0
  27. /package/src/components/ExchangeAccountKeys/{ExchangeAccountKeys.spec.tsx → ExchangeAccountKeys.specBackup.tsx} +0 -0
  28. /package/src/components/HeartRate/{HeartRate.spec.tsx → HeartRate.specBackup.tsx} +0 -0
  29. /package/src/components/ListGoals/{ListGoals.spec.tsx → ListGoals.specBackup.tsx} +0 -0
  30. /package/src/components/MealNutrients/{MealNutrients.spec.tsx → MealNutrients.specBackup.tsx} +0 -0
  31. /package/src/components/MealPlanner/{MealPlanner.spec.tsx → MealPlanner.specBackup.tsx} +0 -0
  32. /package/src/components/StepsCounter/{StepsCounter.spec.tsx → StepsCounter.specBackup.tsx} +0 -0
  33. /package/src/components/TradingInfoCard/{TradingInfoCard.spec.tsx → TradingInfoCard.specBackup.tsx} +0 -0
  34. /package/src/components/TradingScoreboard/{TradingScoreboard.spec.tsx → TradingScoreboard.specBackup.tsx} +0 -0
  35. /package/src/components/UpcomingWorkouts/{UpcomingWorkouts.spec.tsx → UpcomingWorkouts.specBackup.tsx} +0 -0
  36. /package/src/components/WaterConsume/{WaterConsume.spec.tsx → WaterConsume.specBackup.tsx} +0 -0
@@ -36,6 +36,8 @@
36
36
  "dist/**/*",
37
37
  "src/**/*.spec.*",
38
38
  "src/**/*.spec.old.*",
39
+ "src/**/*.specBackup.ts",
40
+ "src/**/*.specBackup.tsx",
39
41
  "src/**/*.e2e.*",
40
42
  "src/**/*.stories.*"
41
43
  ]
@@ -1,5 +0,0 @@
1
- import { AccountBalanceProps } from './types';
2
- export declare const WithLink: ({ link, onClick, children, className, }: Pick<AccountBalanceProps, "link" | "onClick"> & {
3
- children: React.ReactNode;
4
- className?: string;
5
- }) => string | number | boolean | import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | import("react").ReactFragment | null | undefined;
@@ -1,29 +0,0 @@
1
- import { Link } from 'react-router-dom';
2
- import { css } from '@emotion/react';
3
- import { AccountBalanceProps } from './types';
4
-
5
- export const WithLink = ({
6
- link,
7
- onClick,
8
- children,
9
- className,
10
- }: Pick<AccountBalanceProps, 'link' | 'onClick'> & {
11
- children: React.ReactNode;
12
- className?: string;
13
- }) =>
14
- link ? (
15
- <Link
16
- to={link}
17
- onClick={onClick}
18
- className={className}
19
- css={css`
20
- text-decoration: none;
21
- div {
22
- cursor: pointer;
23
- }
24
- `}>
25
- {children}
26
- </Link>
27
- ) : (
28
- children
29
- );