sag_components 2.0.0-beta42 → 2.0.0-beta43
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 +3 -0
- package/dist/index.esm.js +36 -36
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +36 -36
- package/dist/index.js.map +1 -1
- package/dist/types/components/TotalDoughnutChart/TotalDoughnutChart.d.ts +3 -0
- package/dist/types/components/TotalDoughnutChart/TotalDoughnutChart.stories.d.ts +81 -45
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -838,6 +838,7 @@ declare namespace TotalDoughnutChart {
|
|
|
838
838
|
const className: PropTypes.Requireable<string>;
|
|
839
839
|
const title: PropTypes.Requireable<string>;
|
|
840
840
|
const value: PropTypes.Requireable<number>;
|
|
841
|
+
const rootFont: PropTypes.Requireable<string>;
|
|
841
842
|
const addingBenchmark: PropTypes.Requireable<boolean>;
|
|
842
843
|
const dotCut: PropTypes.Requireable<boolean>;
|
|
843
844
|
const currencySign: PropTypes.Requireable<boolean>;
|
|
@@ -868,6 +869,8 @@ declare namespace TotalDoughnutChart {
|
|
|
868
869
|
export { title_1 as title };
|
|
869
870
|
const value_1: number;
|
|
870
871
|
export { value_1 as value };
|
|
872
|
+
const rootFont_1: string;
|
|
873
|
+
export { rootFont_1 as rootFont };
|
|
871
874
|
const addingBenchmark_1: boolean;
|
|
872
875
|
export { addingBenchmark_1 as addingBenchmark };
|
|
873
876
|
const dotCut_1: boolean;
|
package/dist/index.esm.js
CHANGED
|
@@ -26343,27 +26343,24 @@ const scrollableStyles$5 = `
|
|
|
26343
26343
|
overflow-y: auto;
|
|
26344
26344
|
|
|
26345
26345
|
&::-webkit-scrollbar {
|
|
26346
|
-
width: 8px
|
|
26346
|
+
width: 0.5em; /* 8px → 0.5em */
|
|
26347
26347
|
}
|
|
26348
26348
|
|
|
26349
26349
|
&::-webkit-scrollbar-track {
|
|
26350
26350
|
background: #E8E8E8;
|
|
26351
|
-
border-radius: 5px;
|
|
26352
26351
|
}
|
|
26353
26352
|
|
|
26354
26353
|
&::-webkit-scrollbar-thumb {
|
|
26355
26354
|
background: #D0D0D0;
|
|
26356
|
-
border-radius: 5px;
|
|
26357
26355
|
}
|
|
26358
26356
|
`;
|
|
26359
26357
|
const ControlsContainer$4 = styled.div`
|
|
26360
26358
|
position: relative;
|
|
26361
26359
|
font-family: "Poppins", sans-serif;
|
|
26362
|
-
font-size: ${props => props.rootFont};
|
|
26360
|
+
font-size: ${props => props.rootFont || '1em'}; /* Base font size */
|
|
26363
26361
|
color: ${props => props.textColor};
|
|
26364
26362
|
width: ${props => props.width};
|
|
26365
26363
|
height: ${props => props.height};
|
|
26366
|
-
border-radius: 12px;
|
|
26367
26364
|
display: flex;
|
|
26368
26365
|
align-items: center;
|
|
26369
26366
|
@media (max-width: 1536px) {
|
|
@@ -26385,81 +26382,79 @@ const Controls$3 = styled.div`
|
|
|
26385
26382
|
const TooltipDiv$2 = styled.div`
|
|
26386
26383
|
display: flex;
|
|
26387
26384
|
background: white;
|
|
26388
|
-
|
|
26389
|
-
border-radius: 5px;
|
|
26390
|
-
padding: 6px 10px;
|
|
26385
|
+
padding: 0.375em 0.625em; /* 6px 10px → 0.375em 0.625em */
|
|
26391
26386
|
margin: 0;
|
|
26392
26387
|
`;
|
|
26393
26388
|
const TooltipLabel$2 = styled.p`
|
|
26394
26389
|
color: #212121;
|
|
26395
26390
|
font-family: "Poppins", sans-serif;
|
|
26396
|
-
font-size: 12px
|
|
26391
|
+
font-size: 0.75em; /* 12px → 0.75em */
|
|
26397
26392
|
font-weight: 400;
|
|
26398
26393
|
font-style: normal;
|
|
26399
|
-
width: max-content;
|
|
26394
|
+
width: max-content;
|
|
26400
26395
|
line-height: normal;
|
|
26401
26396
|
margin: 0;
|
|
26402
26397
|
`;
|
|
26403
26398
|
const TitleAndValueContainer$1 = styled.div`
|
|
26404
26399
|
display: flex;
|
|
26405
26400
|
flex-direction: column;
|
|
26406
|
-
padding: 0 20px
|
|
26401
|
+
padding: 0 1.25em; /* 20px → 1.25em */
|
|
26407
26402
|
`;
|
|
26408
26403
|
const Title$9 = styled.h4`
|
|
26409
26404
|
font-weight: 500;
|
|
26410
|
-
font-size: ${props => props.titleFontSize};
|
|
26405
|
+
font-size: ${props => props.titleFontSize || '1.125em'}; /* Default: 18px → 1.125em */
|
|
26411
26406
|
margin: 0;
|
|
26412
26407
|
@media (max-width: 1536px) {
|
|
26413
|
-
font-size: 14px
|
|
26408
|
+
font-size: 0.875em; /* 14px → 0.875em */
|
|
26414
26409
|
}
|
|
26415
26410
|
@media (max-width: 1366px) {
|
|
26416
|
-
font-size: 12px
|
|
26411
|
+
font-size: 0.75em; /* 12px → 0.75em */
|
|
26417
26412
|
}
|
|
26418
26413
|
`;
|
|
26419
26414
|
const CurrencySignAndFormattedValueContainer = styled.div`
|
|
26420
26415
|
display: flex;
|
|
26421
26416
|
align-items: center;
|
|
26422
|
-
gap: 5px
|
|
26417
|
+
gap: 0.3125em; /* 5px → 0.3125em */
|
|
26423
26418
|
align-items: baseline;
|
|
26424
26419
|
`;
|
|
26425
26420
|
const CurrencySign$1 = styled.span`
|
|
26426
26421
|
font-weight: 500;
|
|
26427
|
-
font-size: 16px
|
|
26422
|
+
font-size: 1em; /* 16px → 1em */
|
|
26428
26423
|
@media (max-width: 1536px) {
|
|
26429
|
-
font-size: 14px
|
|
26424
|
+
font-size: 0.875em; /* 14px → 0.875em */
|
|
26430
26425
|
}
|
|
26431
26426
|
@media (max-width: 1366px) {
|
|
26432
|
-
font-size: 11px
|
|
26427
|
+
font-size: 0.6875em; /* 11px → 0.6875em */
|
|
26433
26428
|
}
|
|
26434
26429
|
`;
|
|
26435
26430
|
const FormattedValue$1 = styled.div`
|
|
26436
26431
|
font-weight: 500;
|
|
26437
|
-
font-size: ${props => props.FormattedValueFontSize};
|
|
26432
|
+
font-size: ${props => props.FormattedValueFontSize || '2.5em'}; /* Default: 40px → 2.5em */
|
|
26438
26433
|
@media (max-width: 1536px) {
|
|
26439
|
-
font-size: 24px
|
|
26434
|
+
font-size: 1.5em; /* 24px → 1.5em */
|
|
26440
26435
|
}
|
|
26441
26436
|
@media (max-width: 1366px) {
|
|
26442
|
-
font-size: 20px
|
|
26437
|
+
font-size: 1.25em; /* 20px → 1.25em */
|
|
26443
26438
|
}
|
|
26444
26439
|
`;
|
|
26445
26440
|
const TextAfterValue = styled.div`
|
|
26446
26441
|
font-weight: 400;
|
|
26447
|
-
font-size: 12px
|
|
26442
|
+
font-size: 0.75em; /* 12px → 0.75em */
|
|
26448
26443
|
@media (max-width: 1536px) {
|
|
26449
|
-
font-size: 11px
|
|
26444
|
+
font-size: 0.6875em; /* 11px → 0.6875em */
|
|
26450
26445
|
}
|
|
26451
26446
|
@media (max-width: 1366px) {
|
|
26452
|
-
font-size: 10px
|
|
26447
|
+
font-size: 0.625em; /* 10px → 0.625em */
|
|
26453
26448
|
}
|
|
26454
26449
|
`;
|
|
26455
26450
|
const DoughnutChartAndLegendContainer = styled.div`
|
|
26456
26451
|
display: flex;
|
|
26457
26452
|
flex-direction: ${props => props.legendBelow ? 'column' : 'row'};
|
|
26458
|
-
gap: 12px
|
|
26453
|
+
gap: 0.75em; /* 12px → 0.75em */
|
|
26459
26454
|
justify-content: space-between;
|
|
26460
26455
|
margin-top: auto;
|
|
26461
|
-
padding: 0 20px
|
|
26462
|
-
margin-bottom:
|
|
26456
|
+
padding: 0 1.25em; /* 20px → 1.25em */
|
|
26457
|
+
margin-bottom: 1.25em; /* 20px → 1.25em */
|
|
26463
26458
|
`;
|
|
26464
26459
|
const DoughnutChartContainer = styled.div`
|
|
26465
26460
|
display: flex;
|
|
@@ -26468,16 +26463,16 @@ const DoughnutChartContainer = styled.div`
|
|
|
26468
26463
|
min-height: 90px;
|
|
26469
26464
|
`;
|
|
26470
26465
|
const LegendContainer$2 = styled.div`
|
|
26471
|
-
padding-left: 10px
|
|
26466
|
+
padding-left: 0.625em; /* 10px → 0.625em */
|
|
26472
26467
|
display: flex;
|
|
26473
26468
|
flex-direction: column;
|
|
26474
26469
|
justify-content: space-evenly;
|
|
26475
26470
|
`;
|
|
26476
26471
|
const LegendControlsContainer = styled.div`
|
|
26477
26472
|
display: flex;
|
|
26478
|
-
gap: 0.
|
|
26473
|
+
gap: 0.5em; /* 8px → 0.5em */
|
|
26479
26474
|
align-items: center;
|
|
26480
|
-
margin-bottom: 0.
|
|
26475
|
+
margin-bottom: 0.375em; /* 6px → 0.375em */
|
|
26481
26476
|
`;
|
|
26482
26477
|
const LegendTitleAndFormatedValueContainer = styled.div`
|
|
26483
26478
|
flex-grow: 1;
|
|
@@ -26494,28 +26489,32 @@ const LegendColorRectangle = styled.div`
|
|
|
26494
26489
|
`;
|
|
26495
26490
|
const LegendTitle = styled.h5`
|
|
26496
26491
|
font-weight: 400;
|
|
26497
|
-
font-size: 16px
|
|
26498
|
-
gap: 5px
|
|
26492
|
+
font-size: 1em; /* 16px → 1em */
|
|
26493
|
+
gap: 0.3125em; /* 5px → 0.3125em */
|
|
26499
26494
|
margin: 0;
|
|
26500
26495
|
display: flex;
|
|
26501
26496
|
justify-content: space-between;
|
|
26502
26497
|
@media (max-width: 1536px) {
|
|
26503
|
-
font-size: 11px
|
|
26498
|
+
font-size: 0.6875em; /* 11px → 0.6875em */
|
|
26504
26499
|
}
|
|
26505
26500
|
@media (max-width: 1366px) {
|
|
26506
|
-
font-size: 10px
|
|
26501
|
+
font-size: 0.625em; /* 10px → 0.625em */
|
|
26507
26502
|
}
|
|
26508
26503
|
`;
|
|
26509
26504
|
const LegendFormattedValue = styled.span`
|
|
26510
26505
|
font-weight: 500;
|
|
26506
|
+
font-size: 0.875em; /* 14px → 0.875em */
|
|
26511
26507
|
white-space: nowrap;
|
|
26512
26508
|
`;
|
|
26513
26509
|
|
|
26514
26510
|
const TotalDoughnutChart = props => {
|
|
26515
26511
|
const {
|
|
26516
26512
|
className,
|
|
26513
|
+
width,
|
|
26514
|
+
height,
|
|
26517
26515
|
title,
|
|
26518
26516
|
value,
|
|
26517
|
+
rootFont,
|
|
26519
26518
|
addingBenchmark,
|
|
26520
26519
|
dotCut,
|
|
26521
26520
|
currencySign,
|
|
@@ -26525,8 +26524,6 @@ const TotalDoughnutChart = props => {
|
|
|
26525
26524
|
itemsPercentagesValueAside,
|
|
26526
26525
|
itemsBoldedValues,
|
|
26527
26526
|
itemsValuesSeparateLine,
|
|
26528
|
-
width,
|
|
26529
|
-
height,
|
|
26530
26527
|
textcolor,
|
|
26531
26528
|
titleFontSize,
|
|
26532
26529
|
FormattedValueFontSize,
|
|
@@ -26593,6 +26590,7 @@ const TotalDoughnutChart = props => {
|
|
|
26593
26590
|
className: className,
|
|
26594
26591
|
height: height,
|
|
26595
26592
|
width: width,
|
|
26593
|
+
rootFont: rootFont,
|
|
26596
26594
|
textcolor: textcolor
|
|
26597
26595
|
}, legendData.length === 0 || legendData.every(item => item.value === undefined || item.value === null) ? /*#__PURE__*/React$1.createElement(NoDataFoundMessage, {
|
|
26598
26596
|
className: "NoDataFoundMessage",
|
|
@@ -26653,6 +26651,7 @@ TotalDoughnutChart.propTypes = {
|
|
|
26653
26651
|
className: PropTypes.string,
|
|
26654
26652
|
title: PropTypes.string,
|
|
26655
26653
|
value: PropTypes.number,
|
|
26654
|
+
rootFont: PropTypes.string,
|
|
26656
26655
|
addingBenchmark: PropTypes.bool,
|
|
26657
26656
|
dotCut: PropTypes.bool,
|
|
26658
26657
|
currencySign: PropTypes.bool,
|
|
@@ -26680,6 +26679,7 @@ TotalDoughnutChart.defaultProps = {
|
|
|
26680
26679
|
className: '',
|
|
26681
26680
|
title: '',
|
|
26682
26681
|
value: 0,
|
|
26682
|
+
rootFont: '18px',
|
|
26683
26683
|
addingBenchmark: false,
|
|
26684
26684
|
dotCut: false,
|
|
26685
26685
|
currencySign: false,
|