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