@ssa-ui-kit/widgets 1.0.1 → 1.0.3

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 (33) hide show
  1. package/dist/components/AccountBalance/BalancePieChart.d.ts +1 -2
  2. package/dist/components/AccountBalance/BalancePieChartTitle.d.ts +1 -2
  3. package/dist/components/AccountBalance/WithLink.d.ts +1 -2
  4. package/dist/components/AccountBalance/types.d.ts +1 -1
  5. package/dist/components/Bmi/BmiHeatbar.d.ts +2 -3
  6. package/dist/components/Bmi/BmiInfo.d.ts +2 -3
  7. package/dist/components/Bmi/BmiLabel.d.ts +1 -2
  8. package/dist/components/Bmi/BmiPointer.d.ts +2 -3
  9. package/dist/components/BotsTable/BotsTableCell.d.ts +4 -5
  10. package/dist/components/BotsTable/BotsTableHead.d.ts +3 -4
  11. package/dist/components/BotsTable/BotsTableRow.d.ts +4 -5
  12. package/dist/components/BotsTable/BotsTableWrapper.d.ts +3 -4
  13. package/dist/components/BotsTable/stories/BotsTable/components/Actions/ActionIcon.d.ts +1 -1
  14. package/dist/components/BotsTable/types.d.ts +0 -1
  15. package/dist/components/ListGoals/types.d.ts +0 -1
  16. package/dist/components/MealNutrients/mockMealNutrientsRequest.d.ts +2 -2
  17. package/dist/components/MealNutrients/types.d.ts +0 -1
  18. package/dist/components/MealPlanner/MealPlannerBadge.d.ts +1 -2
  19. package/dist/components/MealPlanner/MealPlannerBars.d.ts +2 -3
  20. package/dist/components/MealPlanner/MealPlannerLegends.d.ts +4 -5
  21. package/dist/components/TradingScoreboard/TradingScoreboardBase.d.ts +3 -4
  22. package/dist/components/TradingScoreboard/types.d.ts +0 -1
  23. package/dist/components/UpcomingWorkouts/types.d.ts +0 -1
  24. package/dist/components/UserCard/UserCardBMI.d.ts +1 -1
  25. package/dist/components/UserCard/UserCardCredentials.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/index.js.map +1 -1
  28. package/package.json +4 -4
  29. package/src/components/AccountBalance/AccountBalance.stories.tsx +40 -0
  30. package/src/components/AccountBalance/types.ts +1 -1
  31. package/src/components/MealNutrients/MealNutrientsLineChart.tsx +1 -1
  32. package/test-results/.last-run.json +21 -0
  33. package/tsbuildcache +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssa-ui-kit/widgets",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "private": false,
@@ -29,7 +29,7 @@
29
29
  "js-tokens": "^4.0.0",
30
30
  "loose-envify": "^1.4.0",
31
31
  "scheduler": "^0.23.0",
32
- "@ssa-ui-kit/core": "^1.0.2",
32
+ "@ssa-ui-kit/core": "^1.1.0",
33
33
  "@ssa-ui-kit/hooks": "^1.0.0",
34
34
  "@ssa-ui-kit/utils": "^1.0.0"
35
35
  },
@@ -40,7 +40,7 @@
40
40
  ],
41
41
  "devDependencies": {
42
42
  "@emotion/jest": "^11.11.0",
43
- "@playwright/test": "^1.37.1",
43
+ "@playwright/test": "^1.48.0",
44
44
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
45
45
  "@testing-library/jest-dom": "^5.16.5",
46
46
  "@types/testing-library__jest-dom": "^5.14.6",
@@ -57,8 +57,8 @@
57
57
  "@emotion/styled": "^11.10.5",
58
58
  "@nivo/core": "^0.83.0",
59
59
  "@nivo/line": "^0.83.0",
60
- "@nivo/scales": "^0.83.0",
61
60
  "@nivo/pie": "^0.83.0",
61
+ "@nivo/scales": "^0.83.0",
62
62
  "react": "18.x",
63
63
  "react-dom": "18.x",
64
64
  "react-hook-form": "^7.46.1",
@@ -75,3 +75,43 @@ Custom.args = {
75
75
  },
76
76
  ],
77
77
  };
78
+
79
+ export const WithoutPaletteColors: StoryObj<typeof AccountBalance> = (
80
+ args: AccountBalanceProps,
81
+ ) => {
82
+ return (
83
+ <AccountBalance
84
+ {...args}
85
+ css={css`
86
+ ul li {
87
+ height: auto;
88
+ }
89
+ `}
90
+ />
91
+ );
92
+ };
93
+
94
+ WithoutPaletteColors.args = {
95
+ total: 48700.53569,
96
+ currency: 'USDT',
97
+ variant: 'withoutValueList',
98
+ chartColorPalette: ['#F7931A', '#50AF95'],
99
+ legendColorPalette: [
100
+ 'linear-gradient(243.84deg, rgb(235, 117, 86), rgb(242, 136, 142))',
101
+ '#50AF95',
102
+ ],
103
+ data: [
104
+ {
105
+ id: 'BTC',
106
+ label: 'BTC',
107
+ value: 571.23,
108
+ legendValue: 12323,
109
+ },
110
+ {
111
+ id: 'LTC',
112
+ label: 'LTC',
113
+ value: 530.25,
114
+ legendValue: 12323,
115
+ },
116
+ ],
117
+ };
@@ -8,7 +8,7 @@ interface WithTheme {
8
8
  type BalanceBase = {
9
9
  total: number | string;
10
10
  currency: string;
11
- legendColorPalette?: Array<keyof MainColors>;
11
+ legendColorPalette?: Array<keyof MainColors | string>;
12
12
  chartColorPalette?: string[];
13
13
  variant?: 'valueList' | 'withoutValueList';
14
14
  data: Array<{
@@ -39,7 +39,6 @@ export const MealNutrientsLineChart = ({ data, ...props }: LineSvgProps) => {
39
39
  return <MealNutrientsTooltip point={point} colorName={color} />;
40
40
  },
41
41
  theme: {
42
- fontFamily: "'Manrope', sans-serif",
43
42
  axis: {
44
43
  ticks: {
45
44
  text: {
@@ -56,6 +55,7 @@ export const MealNutrientsLineChart = ({ data, ...props }: LineSvgProps) => {
56
55
  strokeDasharray: '8 8',
57
56
  },
58
57
  },
58
+ fontFamily: "'Manrope', sans-serif",
59
59
  },
60
60
  },
61
61
  ),
@@ -0,0 +1,21 @@
1
+ {
2
+ "status": "failed",
3
+ "failedTests": [
4
+ "e9b658dfa47cbcc923fa-5d8f192ca399a0e3af8d",
5
+ "e9b658dfa47cbcc923fa-fa2e3998b096c2a84a78",
6
+ "e9b658dfa47cbcc923fa-fd3540ef424862ee1613",
7
+ "e9b658dfa47cbcc923fa-593ad1271cc938aaa552",
8
+ "e9b658dfa47cbcc923fa-1bac0b243ac805b359d7",
9
+ "f842a66268b5977a58f7-a0c08d47595dd7f659fa",
10
+ "f842a66268b5977a58f7-4efdb0edbfec872edd6a",
11
+ "f842a66268b5977a58f7-6ef7b0ec18215b6dc2f4",
12
+ "f842a66268b5977a58f7-c42323a029ec8bb42609",
13
+ "f842a66268b5977a58f7-92d257b6c4ef385a908e",
14
+ "dc515447f22f49e5c441-5df2e440933bc5ee2b27",
15
+ "dc515447f22f49e5c441-2b56a90eb61ef7e0fd51",
16
+ "dc515447f22f49e5c441-4165392e40a58aa9249e",
17
+ "dc515447f22f49e5c441-20b74ff58c12bdb09590",
18
+ "dc515447f22f49e5c441-ff84682b66bfd613fd24",
19
+ "a2ee24e0f108a5cb0d28-bdfc5b569adaa00d522c"
20
+ ]
21
+ }