@tap-payments/os-micro-frontend-shared 0.1.365-test.12 → 0.1.365-test.13

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.
@@ -9,5 +9,5 @@ interface DonutProps {
9
9
  }>;
10
10
  chartInfo?: ReactNode;
11
11
  }
12
- export default function MultiDatakeyDonut({ isLoading, chartData, size, }: DonutProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare const MultiDatakeyDonut: ({ isLoading, chartData, size, }: DonutProps) => import("react/jsx-runtime").JSX.Element;
13
13
  export {};
@@ -2,9 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ResponsiveContainer, PieChart, Pie, Cell } from 'recharts';
3
3
  import { DonutWrapper, CenterOverlay, CenterItem, ValueText, LegendWrapper, LegendDot, LegendText } from './style';
4
4
  import Skeleton from '../Skeleton';
5
- export default function MultiDatakeyDonut({ isLoading = true, chartData,
5
+ export const MultiDatakeyDonut = ({ isLoading = true, chartData,
6
6
  // activeDataKey = 'count',
7
- size = 170, }) {
7
+ size = 170, }) => {
8
8
  // const chartData = [
9
9
  // {
10
10
  // name: 'Customer',
@@ -18,4 +18,4 @@ size = 170, }) {
18
18
  // },
19
19
  // ]
20
20
  return (_jsxs(DonutWrapper, Object.assign({ sx: { width: size, height: size } }, { children: [_jsx(ResponsiveContainer, { children: _jsxs(PieChart, { children: [_jsx(Pie, { data: [{ value: 100 }], dataKey: "value", cx: "50%", cy: "50%", innerRadius: "70%", outerRadius: "100%", fill: "#E5E7EB", stroke: "none", isAnimationActive: false }), _jsx(Pie, Object.assign({ data: chartData, dataKey: "value", cx: "50%", cy: "50%", innerRadius: "70%", outerRadius: "100%", cornerRadius: 0, stroke: "none", startAngle: 90, endAngle: -270 }, { children: chartData.map((entry) => (_jsx(Cell, { fill: entry.color }, entry.name))) }))] }) }), _jsx(CenterOverlay, { children: chartData.map((entry) => (_jsxs(CenterItem, { children: [isLoading ? _jsx(Skeleton, { width: 49, height: 7, sx: { margin: '2px' } }) : _jsx(ValueText, { children: entry.value.toLocaleString() }), isLoading ? (_jsx(Skeleton, { width: 80, height: 7 })) : (_jsxs(LegendWrapper, { children: [_jsx(LegendDot, { color: entry.color }), _jsx(LegendText, { children: entry.name })] }))] }, entry.name))) })] })));
21
- }
21
+ };
@@ -1,2 +1 @@
1
- import PieChart from './MultiDatakeyDonut';
2
- export default PieChart;
1
+ export * from './MultiDatakeyDonut';
@@ -1,2 +1 @@
1
- import PieChart from './MultiDatakeyDonut';
2
- export default PieChart;
1
+ export * from './MultiDatakeyDonut';
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tap-payments/os-micro-frontend-shared",
3
3
  "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.1.365-test.12",
5
- "testVersion": 12,
4
+ "version": "0.1.365-test.13",
5
+ "testVersion": 13,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",