@majoo-ui/react 1.57.17 → 1.57.18
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/components/pieChart/PieChart.d.ts +2 -0
- package/index.esm.js +10 -6
- package/index.umd.js +10 -6
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ interface PieChartLegend {
|
|
|
11
11
|
show?: boolean;
|
|
12
12
|
showTotal?: boolean;
|
|
13
13
|
position?: 'right' | 'bottom' | 'left';
|
|
14
|
+
height?: number;
|
|
14
15
|
}
|
|
15
16
|
interface PieChartTooltip {
|
|
16
17
|
label?: (number: any) => string;
|
|
@@ -89,6 +90,7 @@ declare const PieChartComponent: {
|
|
|
89
90
|
showTotal: boolean;
|
|
90
91
|
data: never[];
|
|
91
92
|
position: string;
|
|
93
|
+
height: number;
|
|
92
94
|
};
|
|
93
95
|
isMobile: boolean;
|
|
94
96
|
outerRadius: number;
|
package/index.esm.js
CHANGED
|
@@ -50737,7 +50737,7 @@ const renderActiveShape = (props, avatar, acronym, validAvatar, activeRef) => {
|
|
|
50737
50737
|
id: "circleAvatar"
|
|
50738
50738
|
}, {
|
|
50739
50739
|
children: jsx("circle", {
|
|
50740
|
-
cx: cx,
|
|
50740
|
+
cx: cx + 1,
|
|
50741
50741
|
cy: cy,
|
|
50742
50742
|
r: IMG_WIDHT / 2,
|
|
50743
50743
|
fill: "#FFFFFF"
|
|
@@ -50781,13 +50781,14 @@ const renderActiveShape = (props, avatar, acronym, validAvatar, activeRef) => {
|
|
|
50781
50781
|
}, void 0);
|
|
50782
50782
|
};
|
|
50783
50783
|
const renderLegend = (formattedData, legend, subtitle) => jsxs(Box, {
|
|
50784
|
-
children: [
|
|
50784
|
+
children: [jsx(Flex$1, Object.assign({
|
|
50785
50785
|
css: {
|
|
50786
|
-
marginTop: '$spacing-
|
|
50786
|
+
marginTop: '$spacing-05',
|
|
50787
|
+
height: 18
|
|
50787
50788
|
},
|
|
50788
50789
|
justify: "center"
|
|
50789
50790
|
}, {
|
|
50790
|
-
children: jsx(Heading, Object.assign({
|
|
50791
|
+
children: subtitle && jsx(Heading, Object.assign({
|
|
50791
50792
|
heading: "sectionTitle"
|
|
50792
50793
|
}, {
|
|
50793
50794
|
children: subtitle
|
|
@@ -50974,7 +50975,9 @@ const PieChartComponent = ({
|
|
|
50974
50975
|
},
|
|
50975
50976
|
cursor: true,
|
|
50976
50977
|
content: (tooltip === null || tooltip === void 0 ? void 0 : tooltip.render) ? (_a = tooltip === null || tooltip === void 0 ? void 0 : tooltip.render) === null || _a === void 0 ? void 0 : _a.call(tooltip) : jsx(CustomTooltip, {}, void 0)
|
|
50977
|
-
}, void 0), Boolean(legend === null || legend === void 0 ? void 0 : legend.show) && jsx(Legend, Object.assign({
|
|
50978
|
+
}, void 0), Boolean(legend === null || legend === void 0 ? void 0 : legend.show) && jsx(Legend, Object.assign({
|
|
50979
|
+
height: (legend === null || legend === void 0 ? void 0 : legend.height) || 210
|
|
50980
|
+
}, (legend === null || legend === void 0 ? void 0 : legend.position) !== 'bottom' && {
|
|
50978
50981
|
verticalAlign: 'middle',
|
|
50979
50982
|
align: (legend === null || legend === void 0 ? void 0 : legend.position) || 'right',
|
|
50980
50983
|
layout: 'vertical'
|
|
@@ -50995,7 +50998,8 @@ PieChartComponent.defaultProps = {
|
|
|
50995
50998
|
show: true,
|
|
50996
50999
|
showTotal: true,
|
|
50997
51000
|
data: [],
|
|
50998
|
-
position: 'right'
|
|
51001
|
+
position: 'right',
|
|
51002
|
+
height: 210
|
|
50999
51003
|
},
|
|
51000
51004
|
isMobile: false,
|
|
51001
51005
|
outerRadius: 100,
|
package/index.umd.js
CHANGED
|
@@ -51266,7 +51266,7 @@
|
|
|
51266
51266
|
id: "circleAvatar"
|
|
51267
51267
|
}, {
|
|
51268
51268
|
children: jsxRuntime.jsx("circle", {
|
|
51269
|
-
cx: cx,
|
|
51269
|
+
cx: cx + 1,
|
|
51270
51270
|
cy: cy,
|
|
51271
51271
|
r: IMG_WIDHT / 2,
|
|
51272
51272
|
fill: "#FFFFFF"
|
|
@@ -51311,13 +51311,14 @@
|
|
|
51311
51311
|
};
|
|
51312
51312
|
var renderLegend = function renderLegend(formattedData, legend, subtitle) {
|
|
51313
51313
|
return jsxRuntime.jsxs(Box, {
|
|
51314
|
-
children: [
|
|
51314
|
+
children: [jsxRuntime.jsx(Flex$1, __assign({
|
|
51315
51315
|
css: {
|
|
51316
|
-
marginTop: '$spacing-
|
|
51316
|
+
marginTop: '$spacing-05',
|
|
51317
|
+
height: 18
|
|
51317
51318
|
},
|
|
51318
51319
|
justify: "center"
|
|
51319
51320
|
}, {
|
|
51320
|
-
children: jsxRuntime.jsx(Heading, __assign({
|
|
51321
|
+
children: subtitle && jsxRuntime.jsx(Heading, __assign({
|
|
51321
51322
|
heading: "sectionTitle"
|
|
51322
51323
|
}, {
|
|
51323
51324
|
children: subtitle
|
|
@@ -51516,7 +51517,9 @@
|
|
|
51516
51517
|
},
|
|
51517
51518
|
cursor: true,
|
|
51518
51519
|
content: (tooltip === null || tooltip === void 0 ? void 0 : tooltip.render) ? (_b = tooltip === null || tooltip === void 0 ? void 0 : tooltip.render) === null || _b === void 0 ? void 0 : _b.call(tooltip) : jsxRuntime.jsx(CustomTooltip, {}, void 0)
|
|
51519
|
-
}, void 0), Boolean(legend === null || legend === void 0 ? void 0 : legend.show) && jsxRuntime.jsx(recharts.Legend, __assign({
|
|
51520
|
+
}, void 0), Boolean(legend === null || legend === void 0 ? void 0 : legend.show) && jsxRuntime.jsx(recharts.Legend, __assign({
|
|
51521
|
+
height: (legend === null || legend === void 0 ? void 0 : legend.height) || 210
|
|
51522
|
+
}, (legend === null || legend === void 0 ? void 0 : legend.position) !== 'bottom' && {
|
|
51520
51523
|
verticalAlign: 'middle',
|
|
51521
51524
|
align: (legend === null || legend === void 0 ? void 0 : legend.position) || 'right',
|
|
51522
51525
|
layout: 'vertical'
|
|
@@ -51537,7 +51540,8 @@
|
|
|
51537
51540
|
show: true,
|
|
51538
51541
|
showTotal: true,
|
|
51539
51542
|
data: [],
|
|
51540
|
-
position: 'right'
|
|
51543
|
+
position: 'right',
|
|
51544
|
+
height: 210
|
|
51541
51545
|
},
|
|
51542
51546
|
isMobile: false,
|
|
51543
51547
|
outerRadius: 100,
|