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