sag_components 2.0.0-beta42 → 2.0.0-beta44
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.d.ts +6 -0
- package/dist/index.esm.js +41 -36
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +41 -36
- package/dist/index.js.map +1 -1
- package/dist/types/components/TotalDoughnutChart/TotalDoughnutChart.d.ts +6 -0
- package/dist/types/components/TotalDoughnutChart/TotalDoughnutChart.stories.d.ts +81 -45
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26353,27 +26353,25 @@ const scrollableStyles$5 = `
|
|
|
26353
26353
|
overflow-y: auto;
|
|
26354
26354
|
|
|
26355
26355
|
&::-webkit-scrollbar {
|
|
26356
|
-
width: 8px
|
|
26356
|
+
width: 0.5em; /* 8px → 0.5em */
|
|
26357
26357
|
}
|
|
26358
26358
|
|
|
26359
26359
|
&::-webkit-scrollbar-track {
|
|
26360
26360
|
background: #E8E8E8;
|
|
26361
|
-
border-radius: 5px;
|
|
26362
26361
|
}
|
|
26363
26362
|
|
|
26364
26363
|
&::-webkit-scrollbar-thumb {
|
|
26365
26364
|
background: #D0D0D0;
|
|
26366
|
-
border-radius: 5px;
|
|
26367
26365
|
}
|
|
26368
26366
|
`;
|
|
26369
26367
|
const ControlsContainer$4 = styled__default["default"].div`
|
|
26370
26368
|
position: relative;
|
|
26371
26369
|
font-family: "Poppins", sans-serif;
|
|
26372
|
-
font-size: ${props => props.rootFont};
|
|
26370
|
+
font-size: ${props => props.rootFont || '1em'}; /* Base font size */
|
|
26373
26371
|
color: ${props => props.textColor};
|
|
26374
26372
|
width: ${props => props.width};
|
|
26375
26373
|
height: ${props => props.height};
|
|
26376
|
-
|
|
26374
|
+
padding: ${props => props.containerPadding || '0'};
|
|
26377
26375
|
display: flex;
|
|
26378
26376
|
align-items: center;
|
|
26379
26377
|
@media (max-width: 1536px) {
|
|
@@ -26395,81 +26393,79 @@ const Controls$3 = styled__default["default"].div`
|
|
|
26395
26393
|
const TooltipDiv$2 = styled__default["default"].div`
|
|
26396
26394
|
display: flex;
|
|
26397
26395
|
background: white;
|
|
26398
|
-
|
|
26399
|
-
border-radius: 5px;
|
|
26400
|
-
padding: 6px 10px;
|
|
26396
|
+
padding: 0.375em 0.625em; /* 6px 10px → 0.375em 0.625em */
|
|
26401
26397
|
margin: 0;
|
|
26402
26398
|
`;
|
|
26403
26399
|
const TooltipLabel$2 = styled__default["default"].p`
|
|
26404
26400
|
color: #212121;
|
|
26405
26401
|
font-family: "Poppins", sans-serif;
|
|
26406
|
-
font-size: 12px
|
|
26402
|
+
font-size: 0.75em; /* 12px → 0.75em */
|
|
26407
26403
|
font-weight: 400;
|
|
26408
26404
|
font-style: normal;
|
|
26409
|
-
width: max-content;
|
|
26405
|
+
width: max-content;
|
|
26410
26406
|
line-height: normal;
|
|
26411
26407
|
margin: 0;
|
|
26412
26408
|
`;
|
|
26413
26409
|
const TitleAndValueContainer$1 = styled__default["default"].div`
|
|
26414
26410
|
display: flex;
|
|
26415
26411
|
flex-direction: column;
|
|
26416
|
-
padding: 0 20px
|
|
26412
|
+
padding: 0 1.25em; /* 20px → 1.25em */
|
|
26417
26413
|
`;
|
|
26418
26414
|
const Title$9 = styled__default["default"].h4`
|
|
26419
26415
|
font-weight: 500;
|
|
26420
|
-
font-size: ${props => props.titleFontSize};
|
|
26416
|
+
font-size: ${props => props.titleFontSize || '1.125em'}; /* Default: 18px → 1.125em */
|
|
26421
26417
|
margin: 0;
|
|
26422
26418
|
@media (max-width: 1536px) {
|
|
26423
|
-
font-size: 14px
|
|
26419
|
+
font-size: 0.875em; /* 14px → 0.875em */
|
|
26424
26420
|
}
|
|
26425
26421
|
@media (max-width: 1366px) {
|
|
26426
|
-
font-size: 12px
|
|
26422
|
+
font-size: 0.75em; /* 12px → 0.75em */
|
|
26427
26423
|
}
|
|
26428
26424
|
`;
|
|
26429
26425
|
const CurrencySignAndFormattedValueContainer = styled__default["default"].div`
|
|
26430
26426
|
display: flex;
|
|
26431
26427
|
align-items: center;
|
|
26432
|
-
gap: 5px
|
|
26428
|
+
gap: 0.3125em; /* 5px → 0.3125em */
|
|
26433
26429
|
align-items: baseline;
|
|
26434
26430
|
`;
|
|
26435
26431
|
const CurrencySign$1 = styled__default["default"].span`
|
|
26436
26432
|
font-weight: 500;
|
|
26437
|
-
font-size: 16px
|
|
26433
|
+
font-size: 1em; /* 16px → 1em */
|
|
26438
26434
|
@media (max-width: 1536px) {
|
|
26439
|
-
font-size: 14px
|
|
26435
|
+
font-size: 0.875em; /* 14px → 0.875em */
|
|
26440
26436
|
}
|
|
26441
26437
|
@media (max-width: 1366px) {
|
|
26442
|
-
font-size: 11px
|
|
26438
|
+
font-size: 0.6875em; /* 11px → 0.6875em */
|
|
26443
26439
|
}
|
|
26444
26440
|
`;
|
|
26445
26441
|
const FormattedValue$1 = styled__default["default"].div`
|
|
26446
26442
|
font-weight: 500;
|
|
26447
|
-
font-size: ${props => props.FormattedValueFontSize};
|
|
26443
|
+
font-size: ${props => props.FormattedValueFontSize || '2.5em'}; /* Default: 40px → 2.5em */
|
|
26448
26444
|
@media (max-width: 1536px) {
|
|
26449
|
-
font-size: 24px
|
|
26445
|
+
font-size: 1.5em; /* 24px → 1.5em */
|
|
26450
26446
|
}
|
|
26451
26447
|
@media (max-width: 1366px) {
|
|
26452
|
-
font-size: 20px
|
|
26448
|
+
font-size: 1.25em; /* 20px → 1.25em */
|
|
26453
26449
|
}
|
|
26454
26450
|
`;
|
|
26455
26451
|
const TextAfterValue = styled__default["default"].div`
|
|
26456
26452
|
font-weight: 400;
|
|
26457
|
-
font-size: 12px
|
|
26453
|
+
font-size: 0.75em; /* 12px → 0.75em */
|
|
26458
26454
|
@media (max-width: 1536px) {
|
|
26459
|
-
font-size: 11px
|
|
26455
|
+
font-size: 0.6875em; /* 11px → 0.6875em */
|
|
26460
26456
|
}
|
|
26461
26457
|
@media (max-width: 1366px) {
|
|
26462
|
-
font-size: 10px
|
|
26458
|
+
font-size: 0.625em; /* 10px → 0.625em */
|
|
26463
26459
|
}
|
|
26464
26460
|
`;
|
|
26465
26461
|
const DoughnutChartAndLegendContainer = styled__default["default"].div`
|
|
26466
26462
|
display: flex;
|
|
26467
26463
|
flex-direction: ${props => props.legendBelow ? 'column' : 'row'};
|
|
26468
|
-
gap: 12px
|
|
26464
|
+
gap: 0.75em; /* 12px → 0.75em */
|
|
26469
26465
|
justify-content: space-between;
|
|
26470
26466
|
margin-top: auto;
|
|
26471
|
-
padding: 0 20px
|
|
26472
|
-
margin-bottom:
|
|
26467
|
+
padding: 0 1.25em; /* 20px → 1.25em */
|
|
26468
|
+
margin-bottom: 1.25em; /* 20px → 1.25em */
|
|
26473
26469
|
`;
|
|
26474
26470
|
const DoughnutChartContainer = styled__default["default"].div`
|
|
26475
26471
|
display: flex;
|
|
@@ -26478,16 +26474,16 @@ const DoughnutChartContainer = styled__default["default"].div`
|
|
|
26478
26474
|
min-height: 90px;
|
|
26479
26475
|
`;
|
|
26480
26476
|
const LegendContainer$2 = styled__default["default"].div`
|
|
26481
|
-
padding-left: 10px
|
|
26477
|
+
padding-left: 0.625em; /* 10px → 0.625em */
|
|
26482
26478
|
display: flex;
|
|
26483
26479
|
flex-direction: column;
|
|
26484
26480
|
justify-content: space-evenly;
|
|
26485
26481
|
`;
|
|
26486
26482
|
const LegendControlsContainer = styled__default["default"].div`
|
|
26487
26483
|
display: flex;
|
|
26488
|
-
gap: 0.
|
|
26484
|
+
gap: 0.5em; /* 8px → 0.5em */
|
|
26489
26485
|
align-items: center;
|
|
26490
|
-
margin-bottom: 0.
|
|
26486
|
+
margin-bottom: 0.375em; /* 6px → 0.375em */
|
|
26491
26487
|
`;
|
|
26492
26488
|
const LegendTitleAndFormatedValueContainer = styled__default["default"].div`
|
|
26493
26489
|
flex-grow: 1;
|
|
@@ -26504,28 +26500,33 @@ const LegendColorRectangle = styled__default["default"].div`
|
|
|
26504
26500
|
`;
|
|
26505
26501
|
const LegendTitle = styled__default["default"].h5`
|
|
26506
26502
|
font-weight: 400;
|
|
26507
|
-
font-size: 16px
|
|
26508
|
-
gap: 5px
|
|
26503
|
+
font-size: 1em; /* 16px → 1em */
|
|
26504
|
+
gap: 0.3125em; /* 5px → 0.3125em */
|
|
26509
26505
|
margin: 0;
|
|
26510
26506
|
display: flex;
|
|
26511
26507
|
justify-content: space-between;
|
|
26512
26508
|
@media (max-width: 1536px) {
|
|
26513
|
-
font-size: 11px
|
|
26509
|
+
font-size: 0.6875em; /* 11px → 0.6875em */
|
|
26514
26510
|
}
|
|
26515
26511
|
@media (max-width: 1366px) {
|
|
26516
|
-
font-size: 10px
|
|
26512
|
+
font-size: 0.625em; /* 10px → 0.625em */
|
|
26517
26513
|
}
|
|
26518
26514
|
`;
|
|
26519
26515
|
const LegendFormattedValue = styled__default["default"].span`
|
|
26520
26516
|
font-weight: 500;
|
|
26517
|
+
font-size: 0.875em; /* 14px → 0.875em */
|
|
26521
26518
|
white-space: nowrap;
|
|
26522
26519
|
`;
|
|
26523
26520
|
|
|
26524
26521
|
const TotalDoughnutChart = props => {
|
|
26525
26522
|
const {
|
|
26526
26523
|
className,
|
|
26524
|
+
width,
|
|
26525
|
+
height,
|
|
26527
26526
|
title,
|
|
26528
26527
|
value,
|
|
26528
|
+
rootFont,
|
|
26529
|
+
containerPadding,
|
|
26529
26530
|
addingBenchmark,
|
|
26530
26531
|
dotCut,
|
|
26531
26532
|
currencySign,
|
|
@@ -26535,8 +26536,6 @@ const TotalDoughnutChart = props => {
|
|
|
26535
26536
|
itemsPercentagesValueAside,
|
|
26536
26537
|
itemsBoldedValues,
|
|
26537
26538
|
itemsValuesSeparateLine,
|
|
26538
|
-
width,
|
|
26539
|
-
height,
|
|
26540
26539
|
textcolor,
|
|
26541
26540
|
titleFontSize,
|
|
26542
26541
|
FormattedValueFontSize,
|
|
@@ -26603,6 +26602,8 @@ const TotalDoughnutChart = props => {
|
|
|
26603
26602
|
className: className,
|
|
26604
26603
|
height: height,
|
|
26605
26604
|
width: width,
|
|
26605
|
+
rootFont: rootFont,
|
|
26606
|
+
containerPadding: containerPadding,
|
|
26606
26607
|
textcolor: textcolor
|
|
26607
26608
|
}, legendData.length === 0 || legendData.every(item => item.value === undefined || item.value === null) ? /*#__PURE__*/React__default["default"].createElement(NoDataFoundMessage, {
|
|
26608
26609
|
className: "NoDataFoundMessage",
|
|
@@ -26663,6 +26664,8 @@ TotalDoughnutChart.propTypes = {
|
|
|
26663
26664
|
className: PropTypes.string,
|
|
26664
26665
|
title: PropTypes.string,
|
|
26665
26666
|
value: PropTypes.number,
|
|
26667
|
+
rootFont: PropTypes.string,
|
|
26668
|
+
containerPadding: PropTypes.string,
|
|
26666
26669
|
addingBenchmark: PropTypes.bool,
|
|
26667
26670
|
dotCut: PropTypes.bool,
|
|
26668
26671
|
currencySign: PropTypes.bool,
|
|
@@ -26690,6 +26693,8 @@ TotalDoughnutChart.defaultProps = {
|
|
|
26690
26693
|
className: '',
|
|
26691
26694
|
title: '',
|
|
26692
26695
|
value: 0,
|
|
26696
|
+
rootFont: '18px',
|
|
26697
|
+
containerPadding: '0px',
|
|
26693
26698
|
addingBenchmark: false,
|
|
26694
26699
|
dotCut: false,
|
|
26695
26700
|
currencySign: false,
|