@ssa-ui-kit/widgets 1.0.10 → 1.0.11
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AccountBalance/AccountBalance.stories.tsx +21 -8
- package/src/components/AccountBalance/BalancePieChartTitle.tsx +1 -1
- package/src/components/ExchangeAccount/helpers.tsx +2 -2
- package/tsbuildcache +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { MemoryRouter, Route, Routes } from 'react-router-dom';
|
|
3
|
-
import { css } from '@emotion/react';
|
|
3
|
+
import { css as cssReact } from '@emotion/react';
|
|
4
|
+
import { css } from '@emotion/css';
|
|
4
5
|
import { mainTheme } from '@ssa-ui-kit/core';
|
|
5
6
|
|
|
6
7
|
import { data } from './stories/fixtures';
|
|
@@ -14,9 +15,15 @@ export default {
|
|
|
14
15
|
|
|
15
16
|
export const Default: StoryObj<typeof AccountBalance> = {};
|
|
16
17
|
Default.args = {
|
|
17
|
-
total: 48700.
|
|
18
|
+
total: 48700.53,
|
|
18
19
|
currency: 'USDT',
|
|
19
20
|
onClick: () => alert('Clicked!'),
|
|
21
|
+
widgetMaxWidth: '290px',
|
|
22
|
+
className: css`
|
|
23
|
+
& .pie-chart-wrapper p {
|
|
24
|
+
font-size: 12px;
|
|
25
|
+
}
|
|
26
|
+
`,
|
|
20
27
|
data,
|
|
21
28
|
};
|
|
22
29
|
|
|
@@ -48,17 +55,20 @@ export const Custom: StoryObj<typeof AccountBalance> = (
|
|
|
48
55
|
return (
|
|
49
56
|
<AccountBalance
|
|
50
57
|
{...args}
|
|
51
|
-
css={
|
|
58
|
+
css={cssReact`
|
|
52
59
|
ul li {
|
|
53
60
|
height: auto;
|
|
54
61
|
}
|
|
62
|
+
& .pie-chart-wrapper p {
|
|
63
|
+
font-size: 12px;
|
|
64
|
+
}
|
|
55
65
|
`}
|
|
56
66
|
/>
|
|
57
67
|
);
|
|
58
68
|
};
|
|
59
69
|
|
|
60
70
|
Custom.args = {
|
|
61
|
-
total: 48700.
|
|
71
|
+
total: 48700.53,
|
|
62
72
|
currency: 'USDT',
|
|
63
73
|
variant: 'withoutValueList',
|
|
64
74
|
chartColorPalette: [
|
|
@@ -66,7 +76,7 @@ Custom.args = {
|
|
|
66
76
|
mainTheme.colors.green as string,
|
|
67
77
|
],
|
|
68
78
|
legendColorPalette: ['blue', 'green'],
|
|
69
|
-
widgetMaxWidth: '
|
|
79
|
+
widgetMaxWidth: '240px',
|
|
70
80
|
data: [
|
|
71
81
|
{
|
|
72
82
|
id: 'BTC',
|
|
@@ -89,17 +99,20 @@ export const WithoutPaletteColors: StoryObj<typeof AccountBalance> = (
|
|
|
89
99
|
return (
|
|
90
100
|
<AccountBalance
|
|
91
101
|
{...args}
|
|
92
|
-
css={
|
|
102
|
+
css={cssReact`
|
|
93
103
|
ul li {
|
|
94
104
|
height: auto;
|
|
95
105
|
}
|
|
106
|
+
& .pie-chart-wrapper p {
|
|
107
|
+
font-size: 12px;
|
|
108
|
+
}
|
|
96
109
|
`}
|
|
97
110
|
/>
|
|
98
111
|
);
|
|
99
112
|
};
|
|
100
113
|
|
|
101
114
|
WithoutPaletteColors.args = {
|
|
102
|
-
total: 48700.
|
|
115
|
+
total: 48700.53,
|
|
103
116
|
currency: 'USDT',
|
|
104
117
|
variant: 'withoutValueList',
|
|
105
118
|
chartColorPalette: ['#F7931A', '#50AF95'],
|
|
@@ -107,7 +120,7 @@ WithoutPaletteColors.args = {
|
|
|
107
120
|
'linear-gradient(243.84deg, rgb(235, 117, 86), rgb(242, 136, 142))',
|
|
108
121
|
'#50AF95',
|
|
109
122
|
],
|
|
110
|
-
widgetMaxWidth: '
|
|
123
|
+
widgetMaxWidth: '240px',
|
|
111
124
|
data: [
|
|
112
125
|
{
|
|
113
126
|
id: 'BTC',
|
|
@@ -15,7 +15,7 @@ export const dataValues: Array<
|
|
|
15
15
|
title: 'Account Name',
|
|
16
16
|
status: 'Active',
|
|
17
17
|
data: {
|
|
18
|
-
total: 48000.
|
|
18
|
+
total: 48000.53,
|
|
19
19
|
currency: 'USDT',
|
|
20
20
|
data: [
|
|
21
21
|
{
|
|
@@ -120,7 +120,7 @@ export const dataValues: Array<
|
|
|
120
120
|
title: 'Name#4',
|
|
121
121
|
status: 'Active',
|
|
122
122
|
data: {
|
|
123
|
-
total: 9000.
|
|
123
|
+
total: 9000.53,
|
|
124
124
|
currency: 'USDT',
|
|
125
125
|
data: [
|
|
126
126
|
{
|