@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.
Files changed (59) hide show
  1. package/dist/components/AccountBalance/AccountBalance.d.ts +1 -1
  2. package/dist/components/AccountBalance/BalancePieChart.d.ts +2 -3
  3. package/dist/components/AccountBalance/BalancePieChartTitle.d.ts +1 -2
  4. package/dist/components/AccountBalance/index.d.ts +0 -1
  5. package/dist/components/AccountBalance/types.d.ts +6 -2
  6. package/dist/components/Bmi/BmiHeatbar.d.ts +2 -3
  7. package/dist/components/Bmi/BmiInfo.d.ts +2 -3
  8. package/dist/components/Bmi/BmiLabel.d.ts +1 -2
  9. package/dist/components/Bmi/BmiPointer.d.ts +2 -3
  10. package/dist/components/BotsTable/BotsTableCell.d.ts +4 -5
  11. package/dist/components/BotsTable/BotsTableHead.d.ts +3 -4
  12. package/dist/components/BotsTable/BotsTableRow.d.ts +4 -5
  13. package/dist/components/BotsTable/BotsTableWrapper.d.ts +3 -4
  14. package/dist/components/BotsTable/stories/BotsTable/components/Actions/ActionIcon.d.ts +1 -1
  15. package/dist/components/BotsTable/types.d.ts +0 -1
  16. package/dist/components/ListGoals/types.d.ts +0 -1
  17. package/dist/components/MealNutrients/mockMealNutrientsRequest.d.ts +2 -2
  18. package/dist/components/MealNutrients/types.d.ts +0 -1
  19. package/dist/components/MealPlanner/MealPlannerBadge.d.ts +1 -2
  20. package/dist/components/MealPlanner/MealPlannerBars.d.ts +2 -3
  21. package/dist/components/MealPlanner/MealPlannerLegends.d.ts +4 -5
  22. package/dist/components/TradingScoreboard/TradingScoreboardBase.d.ts +3 -4
  23. package/dist/components/TradingScoreboard/types.d.ts +0 -1
  24. package/dist/components/UpcomingWorkouts/types.d.ts +0 -1
  25. package/dist/components/UserCard/UserCardBMI.d.ts +1 -1
  26. package/dist/components/UserCard/UserCardCredentials.d.ts +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/index.js.map +1 -1
  29. package/package.json +6 -6
  30. package/src/components/AccountBalance/AccountBalance.stories.tsx +46 -0
  31. package/src/components/AccountBalance/AccountBalance.tsx +30 -46
  32. package/src/components/AccountBalance/BalancePieChart.tsx +57 -23
  33. package/src/components/AccountBalance/BalancePieChartTitle.tsx +32 -23
  34. package/src/components/AccountBalance/index.ts +0 -1
  35. package/src/components/AccountBalance/types.ts +8 -3
  36. package/src/components/ExchangeAccount/ExchangeAccount.stories.tsx +2 -2
  37. package/src/components/ExchangeAccount/ExchangeAccount.tsx +17 -2
  38. package/src/components/ExchangeAccount/styles.ts +13 -31
  39. package/test-results/.last-run.json +21 -0
  40. package/tsbuildcache +1 -1
  41. package/tsconfig.build.json +2 -0
  42. package/dist/components/AccountBalance/WithLink.d.ts +0 -6
  43. package/src/components/AccountBalance/WithLink.tsx +0 -29
  44. /package/src/components/AccountBalance/{AccountBalance.spec.tsx → AccountBalance.specBackup.tsx} +0 -0
  45. /package/src/components/Activity/{Activity.spec.tsx → Activity.specBackup.tsx} +0 -0
  46. /package/src/components/Bmi/{Bmi.spec.tsx → Bmi.spec.Backup.tsx} +0 -0
  47. /package/src/components/BotsTable/{BotsTable.spec.tsx → BotsTable.specBackup.tsx} +0 -0
  48. /package/src/components/Calories/{Calories.spec.tsx → Calories.specBackup.tsx} +0 -0
  49. /package/src/components/ExchangeAccount/{ExchangeAccount.spec.tsx → ExchangeAccount.specBackup.tsx} +0 -0
  50. /package/src/components/ExchangeAccountKeys/{ExchangeAccountKeys.spec.tsx → ExchangeAccountKeys.specBackup.tsx} +0 -0
  51. /package/src/components/HeartRate/{HeartRate.spec.tsx → HeartRate.specBackup.tsx} +0 -0
  52. /package/src/components/ListGoals/{ListGoals.spec.tsx → ListGoals.specBackup.tsx} +0 -0
  53. /package/src/components/MealNutrients/{MealNutrients.spec.tsx → MealNutrients.specBackup.tsx} +0 -0
  54. /package/src/components/MealPlanner/{MealPlanner.spec.tsx → MealPlanner.specBackup.tsx} +0 -0
  55. /package/src/components/StepsCounter/{StepsCounter.spec.tsx → StepsCounter.specBackup.tsx} +0 -0
  56. /package/src/components/TradingInfoCard/{TradingInfoCard.spec.tsx → TradingInfoCard.specBackup.tsx} +0 -0
  57. /package/src/components/TradingScoreboard/{TradingScoreboard.spec.tsx → TradingScoreboard.specBackup.tsx} +0 -0
  58. /package/src/components/UpcomingWorkouts/{UpcomingWorkouts.spec.tsx → UpcomingWorkouts.specBackup.tsx} +0 -0
  59. /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,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { AccountBalanceProps } from './types';
3
- export declare const WithLink: ({ link, onClick, children, className, }: Pick<AccountBalanceProps, "link" | "onClick"> & {
4
- children: React.ReactNode;
5
- className?: string | undefined;
6
- }) => 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
- );