pixel-react-excel-sheet 1.0.30 → 1.0.31
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/lib/components/Charts/BarChart/BarChart.d.ts +1 -0
- package/lib/components/MenuOption/types.d.ts +1 -1
- package/lib/components/PopUpModal/types.d.ts +2 -1
- package/lib/components/StatusCard/types.d.ts +7 -1
- package/lib/index.d.ts +11 -3
- package/lib/index.esm.js +70 -38
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +70 -38
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Charts/BarChart/BarChart.stories.tsx +3 -0
- package/src/components/Charts/BarChart/BarChart.tsx +7 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.scss +4 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.tsx +1 -1
- package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +35 -27
- package/src/components/MenuOption/MenuOption.stories.tsx +2 -3
- package/src/components/MenuOption/MenuOption.tsx +9 -2
- package/src/components/MenuOption/types.ts +1 -1
- package/src/components/PopUpModal/types.ts +4 -3
- package/src/components/Search/Search.stories.tsx +1 -2
- package/src/components/Search/Search.tsx +1 -3
- package/src/components/StatusCard/StatusCard.scss +47 -4
- package/src/components/StatusCard/StatusCard.stories.tsx +1 -0
- package/src/components/StatusCard/StatusCard.tsx +28 -5
- package/src/components/StatusCard/types.ts +15 -10
- package/src/components/Toastify/Toastify.tsx +1 -0
package/lib/index.js
CHANGED
|
@@ -3286,8 +3286,14 @@ const MenuOption = ({
|
|
|
3286
3286
|
closeDropDown();
|
|
3287
3287
|
};
|
|
3288
3288
|
const calculateDims = () => {
|
|
3289
|
-
|
|
3290
|
-
|
|
3289
|
+
let targetElement = null;
|
|
3290
|
+
if (typeof targetRef === 'string') {
|
|
3291
|
+
targetElement = document.getElementById(targetRef);
|
|
3292
|
+
} else if (targetRef && targetRef.current) {
|
|
3293
|
+
targetElement = targetRef.current;
|
|
3294
|
+
}
|
|
3295
|
+
if (targetElement) {
|
|
3296
|
+
const rect = targetElement.getBoundingClientRect();
|
|
3291
3297
|
setMenuPosition({
|
|
3292
3298
|
top: rect.top + window.scrollY,
|
|
3293
3299
|
left: rect.left + window.scrollX,
|
|
@@ -9797,9 +9803,7 @@ const Search = ({
|
|
|
9797
9803
|
};
|
|
9798
9804
|
const handleChange = data => {
|
|
9799
9805
|
setSearchValue(data);
|
|
9800
|
-
|
|
9801
|
-
onSearch('');
|
|
9802
|
-
}
|
|
9806
|
+
onSearch(data);
|
|
9803
9807
|
};
|
|
9804
9808
|
return jsxRuntime.jsxs("div", {
|
|
9805
9809
|
className: classNames('ff-search-container', {
|
|
@@ -23900,7 +23904,7 @@ const Paper = ({
|
|
|
23900
23904
|
});
|
|
23901
23905
|
};
|
|
23902
23906
|
|
|
23903
|
-
var css_248z$B = ".fontXs, .ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header, .ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-percentage,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count {\n font-family: \"Poppins\";\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\";\n font-size: 12px;\n}\n\n.fontMd, .ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(2) {\n font-family: \"Poppins\";\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\";\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\";\n font-size: 18px;\n}\n\n.font2Xl, .ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(1) {\n font-family: \"Poppins\";\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\";\n font-size: 8px;\n}\n\n.font-size-20 {\n font-family: \"Poppins\";\n font-size: 20px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\";\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\";\n font-size: 80px;\n}\n\n.ff-dashboard-donut-chart-section {\n display: flex;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section.legend-position-bottom {\n flex-direction: column;\n}\n.ff-dashboard-donut-chart-section.legend-position-left {\n flex-direction: row-reverse;\n}\n.ff-dashboard-donut-chart-section-table-legend {\n flex-direction: row;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container {\n text-align: center;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg {\n display: block;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(1) {\n font-weight: 600;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(2) {\n font-weight: 500;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container .ff-donut-chart-tooltip {\n position: absolute;\n padding: 5px;\n border-radius: 4px;\n pointer-events: none;\n background-color: var(--tooltip-bg-color);\n color: var(--tooltip-text-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container {\n display: grid;\n grid-auto-rows: 1fr;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-number-legend {\n grid-template-columns: repeat(3, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-number-legend.ff-side-legend {\n grid-template-columns: repeat(2, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-number-legend .ff-legend-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend {\n grid-template-columns: repeat(2, 130px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend .ff-legend-item {\n display: flex;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend .ff-legend-item .ff-legend-capsule {\n background-color: var(--status-success-text-color);\n color: var(--tooltip-text-color);\n border-radius: 15px;\n min-width: 25px;\n height: 18px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend .ff-legend-item .ff-legend-key {\n margin-left: 8px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-memory-legend {\n grid-template-columns: repeat(3, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-memory-legend.ff-side-legend {\n grid-template-columns: repeat(2, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-memory-legend .ff-legend-item {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table-wrapper {\n overflow: hidden;\n border: 1px solid var(--border-color);\n border-radius: 4px;\n margin-left: 1rem;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table {\n width: 100%;\n min-width: 300px;\n border-collapse: collapse;\n text-align: left;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header {\n font-weight: bold;\n background-color: var(--tabs-bg-color);\n color: var(--input-hover-border-color);\n padding: 0.5rem;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header:last-child {\n text-align: right;\n padding-right: 10px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header:nth-last-child(2) {\n width: 58px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-capsule {\n background-color: var(--status-success-text-color);\n color: var(--tooltip-text-color);\n border-radius: 1rem;\n min-width: 22px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-percentage,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count {\n padding: 0.5rem;\n color: var(--input-hover-border-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name:last-child,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-percentage:last-child,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count:last-child {\n padding-right: 22px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name {\n display: flex;\n align-items: baseline;\n gap: 5px;\n color: var(--input-hover-border-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count {\n text-align: right;\n}";
|
|
23907
|
+
var css_248z$B = ".fontXs, .ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header, .ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-percentage,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count {\n font-family: \"Poppins\";\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\";\n font-size: 12px;\n}\n\n.fontMd, .ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(2) {\n font-family: \"Poppins\";\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\";\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\";\n font-size: 18px;\n}\n\n.font2Xl, .ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(1) {\n font-family: \"Poppins\";\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\";\n font-size: 8px;\n}\n\n.font-size-20 {\n font-family: \"Poppins\";\n font-size: 20px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\";\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\";\n font-size: 80px;\n}\n\n.ff-dashboard-donut-chart-section {\n display: flex;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section.legend-position-bottom {\n flex-direction: column;\n}\n.ff-dashboard-donut-chart-section.legend-position-left {\n flex-direction: row-reverse;\n}\n.ff-dashboard-donut-chart-section-table-legend {\n flex-direction: row;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container {\n text-align: center;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg {\n display: block;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(1) {\n font-weight: 600;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(2) {\n font-weight: 500;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container .ff-donut-chart-tooltip {\n position: absolute;\n padding: 5px;\n border-radius: 4px;\n pointer-events: none;\n background-color: var(--tooltip-bg-color);\n color: var(--tooltip-text-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container {\n display: grid;\n grid-auto-rows: 1fr;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-number-legend {\n grid-template-columns: repeat(3, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-number-legend.ff-side-legend {\n grid-template-columns: repeat(2, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-number-legend .ff-legend-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend {\n grid-template-columns: repeat(2, 130px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend .ff-legend-item {\n display: flex;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend .ff-legend-item .ff-legend-capsule {\n background-color: var(--status-success-text-color);\n color: var(--tooltip-text-color);\n border-radius: 15px;\n min-width: 25px;\n height: 18px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend .ff-legend-item .ff-legend-key {\n margin-left: 8px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-memory-legend {\n grid-template-columns: repeat(3, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-memory-legend.ff-side-legend {\n grid-template-columns: repeat(2, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-memory-legend .ff-legend-item {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table-wrapper {\n overflow: hidden;\n border: 1px solid var(--border-color);\n border-radius: 4px;\n margin-left: 1rem;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table {\n width: 100%;\n min-width: 300px;\n border-collapse: collapse;\n text-align: left;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-table-thead {\n position: static;\n top: auto;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header {\n font-weight: bold;\n background-color: var(--tabs-bg-color);\n color: var(--input-hover-border-color);\n padding: 0.5rem;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header:last-child {\n text-align: right;\n padding-right: 10px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header:nth-last-child(2) {\n width: 58px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-capsule {\n background-color: var(--status-success-text-color);\n color: var(--tooltip-text-color);\n border-radius: 1rem;\n min-width: 22px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-percentage,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count {\n padding: 0.5rem;\n color: var(--input-hover-border-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name:last-child,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-percentage:last-child,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count:last-child {\n padding-right: 22px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name {\n display: flex;\n align-items: baseline;\n gap: 5px;\n color: var(--input-hover-border-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count {\n text-align: right;\n}";
|
|
23904
23908
|
styleInject(css_248z$B);
|
|
23905
23909
|
|
|
23906
23910
|
const calculateArc$2 = (x, y, radius, startAngle, endAngle) => {
|
|
@@ -24144,6 +24148,7 @@ const DashboardDonutChart = ({
|
|
|
24144
24148
|
children: jsxRuntime.jsxs("table", {
|
|
24145
24149
|
className: "ff-legend-table",
|
|
24146
24150
|
children: [jsxRuntime.jsx("thead", {
|
|
24151
|
+
className: 'ff-legend-table-thead',
|
|
24147
24152
|
children: jsxRuntime.jsxs("tr", {
|
|
24148
24153
|
children: [jsxRuntime.jsx("th", {
|
|
24149
24154
|
className: "ff-table-header",
|
|
@@ -27343,7 +27348,8 @@ const Toastify = () => {
|
|
|
27343
27348
|
isOpen: toastProps.isOpen,
|
|
27344
27349
|
variant: toastProps.variant,
|
|
27345
27350
|
toastTitle: toastProps.toastTitle,
|
|
27346
|
-
toastMessage: toastProps.toastMessage
|
|
27351
|
+
toastMessage: toastProps.toastMessage,
|
|
27352
|
+
zIndex: 1000000000
|
|
27347
27353
|
});
|
|
27348
27354
|
};
|
|
27349
27355
|
// Utility to trigger toast messages outside of the Toastify component
|
|
@@ -32313,6 +32319,8 @@ const ExcelToolBar = ({
|
|
|
32313
32319
|
textAlign: 'center'
|
|
32314
32320
|
};
|
|
32315
32321
|
const [cellStyle, setCellStyle] = React.useState(cell?.style || basicStyle);
|
|
32322
|
+
const underLineMenuRef = React.useRef(null);
|
|
32323
|
+
const borderMenuRef = React.useRef(null);
|
|
32316
32324
|
React.useEffect(() => {
|
|
32317
32325
|
setCellStyle(cell?.style || basicStyle);
|
|
32318
32326
|
}, [cell]);
|
|
@@ -32567,18 +32575,22 @@ const ExcelToolBar = ({
|
|
|
32567
32575
|
disabled: toolbar === 'disable',
|
|
32568
32576
|
onClick: () => setUnderlineType(data, underLine, true),
|
|
32569
32577
|
name: getUnderlineIcon()
|
|
32570
|
-
}), jsxRuntime.jsx(
|
|
32571
|
-
|
|
32572
|
-
|
|
32573
|
-
|
|
32574
|
-
|
|
32575
|
-
|
|
32576
|
-
|
|
32577
|
-
|
|
32578
|
-
|
|
32579
|
-
|
|
32580
|
-
|
|
32581
|
-
|
|
32578
|
+
}), jsxRuntime.jsx("span", {
|
|
32579
|
+
ref: underLineMenuRef,
|
|
32580
|
+
children: jsxRuntime.jsx(MenuOption, {
|
|
32581
|
+
targetRef: underLineMenuRef,
|
|
32582
|
+
iconName: "arrow_down",
|
|
32583
|
+
zIndex: 1000,
|
|
32584
|
+
iconSize: 12,
|
|
32585
|
+
options: underlineTypeIcon,
|
|
32586
|
+
tooltipPlacement: "top",
|
|
32587
|
+
variant: "light",
|
|
32588
|
+
onOptionClick: e => {
|
|
32589
|
+
let selectedValue = e.value;
|
|
32590
|
+
setUnderlineType(data, selectedValue, true);
|
|
32591
|
+
setUnderLine(selectedValue);
|
|
32592
|
+
}
|
|
32593
|
+
})
|
|
32582
32594
|
})]
|
|
32583
32595
|
})
|
|
32584
32596
|
})]
|
|
@@ -32649,18 +32661,22 @@ const ExcelToolBar = ({
|
|
|
32649
32661
|
disabled: toolbar === 'disable',
|
|
32650
32662
|
onClick: () => setBorderType(data, border, 'black'),
|
|
32651
32663
|
name: getBorderIcon()
|
|
32652
|
-
}), jsxRuntime.jsx(
|
|
32653
|
-
|
|
32654
|
-
|
|
32655
|
-
|
|
32656
|
-
|
|
32657
|
-
|
|
32658
|
-
|
|
32659
|
-
|
|
32660
|
-
|
|
32661
|
-
|
|
32662
|
-
|
|
32663
|
-
|
|
32664
|
+
}), jsxRuntime.jsx("span", {
|
|
32665
|
+
ref: borderMenuRef,
|
|
32666
|
+
children: jsxRuntime.jsx(MenuOption, {
|
|
32667
|
+
iconName: "arrow_down",
|
|
32668
|
+
targetRef: borderMenuRef,
|
|
32669
|
+
iconSize: 12,
|
|
32670
|
+
zIndex: 1000,
|
|
32671
|
+
options: borderTypeIcon,
|
|
32672
|
+
tooltipPlacement: "top",
|
|
32673
|
+
variant: "light",
|
|
32674
|
+
onOptionClick: e => {
|
|
32675
|
+
let selectedValue = e.value;
|
|
32676
|
+
setBorderType(data, selectedValue, 'black');
|
|
32677
|
+
setBorder(selectedValue);
|
|
32678
|
+
}
|
|
32679
|
+
})
|
|
32664
32680
|
})]
|
|
32665
32681
|
})
|
|
32666
32682
|
})
|
|
@@ -33627,17 +33643,28 @@ const AttachImage = ({
|
|
|
33627
33643
|
});
|
|
33628
33644
|
};
|
|
33629
33645
|
|
|
33630
|
-
var css_248z$f = ".ff-card-container {\n
|
|
33646
|
+
var css_248z$f = ".ff-card-container {\n height: 78px;\n display: flex;\n align-items: center;\n border: 1px solid var(--border-color);\n border-radius: 4px;\n overflow: hidden;\n cursor: pointer;\n}\n.ff-card-container:hover.passed {\n border-color: var(--ff-card-passed-status-bg-color);\n}\n.ff-card-container:hover.failed {\n border-color: var(--ff-card-failed-status-bg-color);\n}\n.ff-card-container:hover.warning {\n border-color: var(--ff-card-warning-status-bg-color);\n}\n.ff-card-container:hover.skipped {\n border-color: var(--ff-card-skipped-status-bg-color);\n}\n.ff-card-container:hover.flaky {\n border-color: var(--ff-card-flaky-status-bg-color);\n}\n.ff-card-container .ff-status-bar {\n width: 12%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: start;\n align-items: center;\n border-right: 1px solid var(--border-color);\n gap: 17px;\n}\n.ff-card-container .ff-status-bar .ff-status-text {\n transform: rotate(-90deg);\n transform-origin: center;\n display: inline-block;\n}\n.ff-card-container.passed .ff-status-bar {\n background-color: var(--ff-card-passed-status-bg-color);\n color: var(--base-bg-color);\n}\n.ff-card-container.failed .ff-status-bar {\n background-color: var(--ff-card-failed-status-bg-color);\n color: var(--base-bg-color);\n}\n.ff-card-container.warning .ff-status-bar {\n background-color: var(--ff-card-warning-status-bg-color);\n color: var(--base-bg-color);\n}\n.ff-card-container.skipped .ff-status-bar {\n background-color: var(--ff-card-skipped-status-bg-color);\n color: var(--base-bg-color);\n}\n.ff-card-container.flaky .ff-status-bar {\n background-color: var(--ff-card-flaky-status-bg-color);\n color: var(--base-bg-color);\n}\n.ff-card-container .ff-content {\n flex: 1;\n padding: 8px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n.ff-card-container .ff-content .ff-number {\n margin-bottom: 4px;\n color: inherit;\n}\n.ff-card-container.passed .ff-number {\n color: var(--ff-card-passed-status-bg-color);\n}\n.ff-card-container.failed .ff-number {\n color: var(--ff-card-failed-status-bg-color);\n}\n.ff-card-container.warning .ff-number {\n color: var(--ff-card-warning-status-bg-color);\n}\n.ff-card-container.skipped .ff-number {\n color: var(--ff-card-skipped-status-bg-color);\n}\n.ff-card-container.flaky .ff-number {\n color: var(--ff-card-flaky-status-bg-color);\n}\n.ff-card-container.toggled.passed .ff-status-bar {\n background-color: var(--base-bg-color);\n color: var(--ff-card-passed-status-bg-color);\n}\n.ff-card-container.toggled.failed .ff-status-bar {\n background-color: var(--base-bg-color);\n color: var(--ff-card-failed-status-bg-color);\n}\n.ff-card-container.toggled.warning .ff-status-bar {\n background-color: var(--base-bg-color);\n color: var(--ff-card-warning-status-bg-color);\n}\n.ff-card-container.toggled.skipped .ff-status-bar {\n background-color: var(--base-bg-color);\n color: var(--ff-card-skipped-status-bg-color);\n}\n.ff-card-container.toggled.flaky .ff-status-bar {\n background-color: var(--base-bg-color);\n color: var(--ff-card-flaky-status-bg-color);\n}\n.ff-card-container.toggled.passed .ff-content {\n background-color: var(--ff-card-passed-status-bg-color);\n}\n.ff-card-container.toggled.failed .ff-content {\n background-color: var(--ff-card-failed-status-bg-color);\n}\n.ff-card-container.toggled.warning .ff-content {\n background-color: var(--ff-card-warning-status-bg-color);\n}\n.ff-card-container.toggled.skipped .ff-content {\n background-color: var(--ff-card-skipped-status-bg-color);\n}\n.ff-card-container.toggled.flaky .ff-content {\n background-color: var(--ff-card-flaky-status-bg-color);\n}";
|
|
33631
33647
|
styleInject(css_248z$f);
|
|
33632
33648
|
|
|
33633
33649
|
const StatusCard = ({
|
|
33634
33650
|
icon,
|
|
33635
33651
|
status,
|
|
33636
33652
|
count,
|
|
33637
|
-
text
|
|
33653
|
+
text,
|
|
33654
|
+
style = {
|
|
33655
|
+
width: '196.4px'
|
|
33656
|
+
},
|
|
33657
|
+
onSelectedStatus = _status => {}
|
|
33638
33658
|
}) => {
|
|
33659
|
+
const [isToggled, setIsToggled] = React.useState(false);
|
|
33660
|
+
const handleSelectStatus = status => {
|
|
33661
|
+
setIsToggled(true);
|
|
33662
|
+
onSelectedStatus(status);
|
|
33663
|
+
};
|
|
33639
33664
|
return jsxRuntime.jsxs("div", {
|
|
33640
|
-
className: `ff-card-container ${status.toLowerCase()}`,
|
|
33665
|
+
className: `ff-card-container ${status.toLowerCase()} ${isToggled ? 'toggled' : ''}`,
|
|
33666
|
+
style: style,
|
|
33667
|
+
onClick: () => handleSelectStatus(status),
|
|
33641
33668
|
children: [jsxRuntime.jsxs("div", {
|
|
33642
33669
|
className: "ff-status-bar",
|
|
33643
33670
|
children: [jsxRuntime.jsx("div", {
|
|
@@ -33650,7 +33677,6 @@ const StatusCard = ({
|
|
|
33650
33677
|
}), jsxRuntime.jsx(Typography, {
|
|
33651
33678
|
fontWeight: "semi-bold",
|
|
33652
33679
|
fontSize: "10px",
|
|
33653
|
-
color: "var(--ff-status-card-text-color)",
|
|
33654
33680
|
textAlign: "center",
|
|
33655
33681
|
lineHeight: "15px",
|
|
33656
33682
|
className: "ff-status-text",
|
|
@@ -33664,13 +33690,14 @@ const StatusCard = ({
|
|
|
33664
33690
|
fontSize: "24px",
|
|
33665
33691
|
className: "ff-number",
|
|
33666
33692
|
lineHeight: "36px",
|
|
33693
|
+
color: isToggled ? 'var(--base-bg-color)' : '',
|
|
33667
33694
|
children: count
|
|
33668
33695
|
}), jsxRuntime.jsx(Typography, {
|
|
33669
33696
|
fontWeight: "regular",
|
|
33670
33697
|
fontSize: "10px",
|
|
33671
33698
|
className: "ff-text",
|
|
33672
33699
|
lineHeight: "15px",
|
|
33673
|
-
color:
|
|
33700
|
+
color: isToggled ? 'var(--base-bg-color)' : 'var(--ff-card-status-text-color)',
|
|
33674
33701
|
children: text
|
|
33675
33702
|
})]
|
|
33676
33703
|
})]
|
|
@@ -39731,7 +39758,8 @@ const BarChart = ({
|
|
|
39731
39758
|
icons = [],
|
|
39732
39759
|
iconSize,
|
|
39733
39760
|
legendPosition = 'bottom',
|
|
39734
|
-
legendGap = 5
|
|
39761
|
+
legendGap = 5,
|
|
39762
|
+
onSelectedBar = _label => {}
|
|
39735
39763
|
}) => {
|
|
39736
39764
|
const [tooltip, setTooltip] = React.useState({
|
|
39737
39765
|
visible: false,
|
|
@@ -39789,6 +39817,9 @@ const BarChart = ({
|
|
|
39789
39817
|
borderColor: 'transparent'
|
|
39790
39818
|
});
|
|
39791
39819
|
};
|
|
39820
|
+
const handleSelectLabel = label => {
|
|
39821
|
+
onSelectedBar(label);
|
|
39822
|
+
};
|
|
39792
39823
|
return jsxRuntime.jsxs("div", {
|
|
39793
39824
|
className: "ff-bar-chart-container",
|
|
39794
39825
|
style: {
|
|
@@ -39863,7 +39894,8 @@ const BarChart = ({
|
|
|
39863
39894
|
ry: barBorderRadius,
|
|
39864
39895
|
onMouseEnter: e => handleMouseEnter(e, item.label, item.value, getBorderColor(index)),
|
|
39865
39896
|
onMouseMove: handleMouseMove,
|
|
39866
|
-
onMouseLeave: handleMouseLeave
|
|
39897
|
+
onMouseLeave: handleMouseLeave,
|
|
39898
|
+
onClick: () => handleSelectLabel(item.label)
|
|
39867
39899
|
}), showXAxisLabels && jsxRuntime.jsx("text", {
|
|
39868
39900
|
x: barX + barWidth / 2,
|
|
39869
39901
|
y: height + topPadding + 15,
|