sag_components 2.0.0-beta131 → 2.0.0-beta133

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.esm.js CHANGED
@@ -341,18 +341,18 @@ const SearchIcon = _ref => {
341
341
  };
342
342
 
343
343
  const PlusIcon = ({
344
- width = '17',
344
+ width = '16',
345
345
  height = '17',
346
346
  color = '#212121'
347
347
  }) => /*#__PURE__*/React$1.createElement("svg", {
348
348
  xmlns: "http://www.w3.org/2000/svg",
349
- width: "16",
350
- height: "17",
349
+ width: width,
350
+ height: height,
351
351
  viewBox: "0 0 16 17",
352
352
  fill: "none"
353
353
  }, /*#__PURE__*/React$1.createElement("path", {
354
354
  d: "M8.71875 2.28125V7.90625H14.3438C14.8008 7.90625 15.1875 8.29297 15.1875 8.75C15.1875 9.24219 14.8008 9.59375 14.3438 9.59375H8.71875V15.2188C8.71875 15.7109 8.33203 16.0625 7.875 16.0625C7.38281 16.0625 7.03125 15.7109 7.03125 15.2188V9.59375H1.40625C0.914062 9.59375 0.5625 9.24219 0.5625 8.75C0.5625 8.29297 0.914062 7.90625 1.40625 7.90625H7.03125V2.28125C7.03125 1.82422 7.38281 1.4375 7.875 1.4375C8.33203 1.4375 8.71875 1.82422 8.71875 2.28125Z",
355
- fill: "#066768"
355
+ fill: color
356
356
  }));
357
357
 
358
358
  const ArrowLeftIcon = ({
@@ -416,20 +416,23 @@ const RedDot = ({
416
416
  fill: "#F00021"
417
417
  }));
418
418
 
419
- const CalendarInOpen = ({
420
- width = "16",
421
- height = "17",
422
- fill = "#726F6F"
423
- }) => /*#__PURE__*/React$1.createElement("svg", {
424
- width: width,
425
- height: height,
426
- viewBox: "0 0 16 17",
427
- fill: "none",
428
- xmlns: "http://www.w3.org/2000/svg"
429
- }, /*#__PURE__*/React$1.createElement("path", {
430
- d: "M5.375 2.7002C5.5625 2.7002 5.75 2.87327 5.75 3.04635V4.08481H10.25V3.04635C10.25 2.87327 10.4141 2.7002 10.625 2.7002C10.8125 2.7002 11 2.87327 11 3.04635V4.08481H11.75C12.5703 4.08481 13.25 4.71222 13.25 5.46943V6.16173V6.85404V12.3925C13.25 13.1714 12.5703 13.7771 11.75 13.7771H4.25C3.40625 13.7771 2.75 13.1714 2.75 12.3925V6.85404V6.16173V5.46943C2.75 4.71222 3.40625 4.08481 4.25 4.08481H5V3.04635C5 2.87327 5.16406 2.7002 5.375 2.7002ZM12.5 6.85404H10.0625V8.41173H12.5V6.85404ZM12.5 9.10404H10.0625V10.8348H12.5V9.10404ZM12.5 11.5271H10.0625V13.0848H11.75C12.1484 13.0848 12.5 12.7819 12.5 12.3925V11.5271ZM9.3125 10.8348V9.10404H6.6875V10.8348H9.3125ZM6.6875 11.5271V13.0848H9.3125V11.5271H6.6875ZM5.9375 10.8348V9.10404H3.5V10.8348H5.9375ZM3.5 11.5271V12.3925C3.5 12.7819 3.82812 13.0848 4.25 13.0848H5.9375V11.5271H3.5ZM3.5 8.41173H5.9375V6.85404H3.5V8.41173ZM6.6875 8.41173H9.3125V6.85404H6.6875V8.41173ZM11.75 4.77712H4.25C3.82812 4.77712 3.5 5.10164 3.5 5.46943V6.16173H12.5V5.46943C12.5 5.10164 12.1484 4.77712 11.75 4.77712Z",
431
- fill: fill
432
- }));
419
+ const CalendarInOpen = _ref => {
420
+ let {
421
+ width = "16",
422
+ height = "17",
423
+ fill = "#726F6F"
424
+ } = _ref;
425
+ return /*#__PURE__*/React$1.createElement("svg", {
426
+ width: width,
427
+ height: height,
428
+ viewBox: "0 0 16 17",
429
+ fill: "none",
430
+ xmlns: "http://www.w3.org/2000/svg"
431
+ }, /*#__PURE__*/React$1.createElement("path", {
432
+ d: "M5.375 2.7002C5.5625 2.7002 5.75 2.87327 5.75 3.04635V4.08481H10.25V3.04635C10.25 2.87327 10.4141 2.7002 10.625 2.7002C10.8125 2.7002 11 2.87327 11 3.04635V4.08481H11.75C12.5703 4.08481 13.25 4.71222 13.25 5.46943V6.16173V6.85404V12.3925C13.25 13.1714 12.5703 13.7771 11.75 13.7771H4.25C3.40625 13.7771 2.75 13.1714 2.75 12.3925V6.85404V6.16173V5.46943C2.75 4.71222 3.40625 4.08481 4.25 4.08481H5V3.04635C5 2.87327 5.16406 2.7002 5.375 2.7002ZM12.5 6.85404H10.0625V8.41173H12.5V6.85404ZM12.5 9.10404H10.0625V10.8348H12.5V9.10404ZM12.5 11.5271H10.0625V13.0848H11.75C12.1484 13.0848 12.5 12.7819 12.5 12.3925V11.5271ZM9.3125 10.8348V9.10404H6.6875V10.8348H9.3125ZM6.6875 11.5271V13.0848H9.3125V11.5271H6.6875ZM5.9375 10.8348V9.10404H3.5V10.8348H5.9375ZM3.5 11.5271V12.3925C3.5 12.7819 3.82812 13.0848 4.25 13.0848H5.9375V11.5271H3.5ZM3.5 8.41173H5.9375V6.85404H3.5V8.41173ZM6.6875 8.41173H9.3125V6.85404H6.6875V8.41173ZM11.75 4.77712H4.25C3.82812 4.77712 3.5 5.10164 3.5 5.46943V6.16173H12.5V5.46943C12.5 5.10164 12.1484 4.77712 11.75 4.77712Z",
433
+ fill: fill
434
+ }));
435
+ };
433
436
 
434
437
  const Calendar = () => /*#__PURE__*/React$1.createElement("svg", {
435
438
  width: "11",
@@ -442,6 +445,42 @@ const Calendar = () => /*#__PURE__*/React$1.createElement("svg", {
442
445
  fill: "#568202"
443
446
  }));
444
447
 
448
+ const ChervronRightIcon = _ref => {
449
+ let {
450
+ width = "8",
451
+ height = "13",
452
+ fill = "#777575"
453
+ } = _ref;
454
+ return /*#__PURE__*/React$1.createElement("svg", {
455
+ width: width,
456
+ height: height,
457
+ viewBox: "0 0 8 13",
458
+ fill: "none",
459
+ xmlns: "http://www.w3.org/2000/svg"
460
+ }, /*#__PURE__*/React$1.createElement("path", {
461
+ d: "M7.33984 5.78516C7.58594 6.05859 7.58594 6.46875 7.33984 6.71484L2.08984 11.9648C1.81641 12.2383 1.40625 12.2383 1.16016 11.9648C0.886719 11.7188 0.886719 11.3086 1.16016 11.0625L5.94531 6.27734L1.16016 1.46484C0.886719 1.21875 0.886719 0.808594 1.16016 0.5625C1.40625 0.289062 1.81641 0.289062 2.0625 0.5625L7.33984 5.78516Z",
462
+ fill: fill
463
+ }));
464
+ };
465
+
466
+ const ChervronLeftIcon = _ref => {
467
+ let {
468
+ width = 7,
469
+ height = 13,
470
+ fill = "#777575"
471
+ } = _ref;
472
+ return /*#__PURE__*/React$1.createElement("svg", {
473
+ width: width,
474
+ height: height,
475
+ viewBox: "0 0 7 13",
476
+ fill: "none",
477
+ xmlns: "http://www.w3.org/2000/svg"
478
+ }, /*#__PURE__*/React$1.createElement("path", {
479
+ d: "M0.410156 5.78516L5.66016 0.5625C5.90625 0.289062 6.31641 0.289062 6.58984 0.5625C6.83594 0.808594 6.83594 1.21875 6.58984 1.46484L1.77734 6.25L6.5625 11.0625C6.83594 11.3086 6.83594 11.7188 6.5625 11.9648C6.31641 12.2383 5.90625 12.2383 5.66016 11.9648L0.410156 6.71484C0.136719 6.46875 0.136719 6.05859 0.410156 5.78516Z",
480
+ fill: fill
481
+ }));
482
+ };
483
+
445
484
  const Button$1 = props => {
446
485
  const {
447
486
  text = "",
@@ -484,7 +523,9 @@ const Button$1 = props => {
484
523
  exit: ExitIcon,
485
524
  eye: EyeIcon,
486
525
  reselect: ReselectIcon,
487
- plus: Plus
526
+ plus: Plus,
527
+ left: ChervronLeftIcon,
528
+ right: ChervronRightIcon
488
529
  };
489
530
  const getIcon = icon => {
490
531
  if (!icon || icon === "none") return null;
@@ -492,7 +533,8 @@ const Button$1 = props => {
492
533
  const iconProps = {
493
534
  height: "16px",
494
535
  width: "16px",
495
- color: disabled ? disabledTextColor || "#B1B1B1" : hover ? hoverTextColor || (type === "secondary" ? "#229E38" : "#ffffff") : textColor || (type === "secondary" ? "#212121" : "#ffffff")
536
+ color: disabled ? disabledTextColor || "#B1B1B1" : hover ? hoverTextColor || (type === "secondary" ? "#229E38" : "#ffffff") : textColor || (type === "secondary" ? "#212121" : "#ffffff"),
537
+ fill: disabled ? disabledTextColor || "#B1B1B1" : hover ? hoverTextColor || (type === "secondary" ? "#229E38" : "#ffffff") : textColor || (type === "secondary" ? "#212121" : "#ffffff")
496
538
  };
497
539
  return /*#__PURE__*/React$1.createElement(IconWrapper$6, null, /*#__PURE__*/React$1.createElement(IconComponent, iconProps));
498
540
  };
@@ -2530,7 +2572,7 @@ const TitleWrapper$1 = styled.div`
2530
2572
  gap: 10px;
2531
2573
  align-items: baseline;
2532
2574
  `;
2533
- const CardTitle$1 = styled.span`
2575
+ const CardTitle$2 = styled.span`
2534
2576
  font-size: 18px;
2535
2577
  font-weight: 400;
2536
2578
  `;
@@ -3107,8 +3149,8 @@ const LinkButton = _ref => {
3107
3149
  return /*#__PURE__*/React$1.createElement(IconWrapper$5, {
3108
3150
  className: "PlusIcon"
3109
3151
  }, /*#__PURE__*/React$1.createElement(PlusIcon, {
3110
- height: iconHeight,
3111
- width: iconWidth,
3152
+ height: "16",
3153
+ width: "17",
3112
3154
  color: color
3113
3155
  }));
3114
3156
  case 'options':
@@ -3314,7 +3356,7 @@ const EventDetailsCard = props => {
3314
3356
  className: className,
3315
3357
  height: height,
3316
3358
  width: width
3317
- }, /*#__PURE__*/React.createElement(TitleWrapper$1, null, /*#__PURE__*/React.createElement(CardTitle$1, null, title), displayBannersDropdown && /*#__PURE__*/React.createElement(BannersDropdown, {
3359
+ }, /*#__PURE__*/React.createElement(TitleWrapper$1, null, /*#__PURE__*/React.createElement(CardTitle$2, null, title), displayBannersDropdown && /*#__PURE__*/React.createElement(BannersDropdown, {
3318
3360
  banners: [{
3319
3361
  checked: true,
3320
3362
  name: 'StopAndShop'
@@ -9618,42 +9660,6 @@ const OptionsContainer$5 = styled.div`
9618
9660
  padding-top: 8px;
9619
9661
  `;
9620
9662
 
9621
- const ChervronRightIcon = _ref => {
9622
- let {
9623
- width = "8",
9624
- height = "13",
9625
- fill = "#777575"
9626
- } = _ref;
9627
- return /*#__PURE__*/React$1.createElement("svg", {
9628
- width: width,
9629
- height: height,
9630
- viewBox: "0 0 8 13",
9631
- fill: "none",
9632
- xmlns: "http://www.w3.org/2000/svg"
9633
- }, /*#__PURE__*/React$1.createElement("path", {
9634
- d: "M7.33984 5.78516C7.58594 6.05859 7.58594 6.46875 7.33984 6.71484L2.08984 11.9648C1.81641 12.2383 1.40625 12.2383 1.16016 11.9648C0.886719 11.7188 0.886719 11.3086 1.16016 11.0625L5.94531 6.27734L1.16016 1.46484C0.886719 1.21875 0.886719 0.808594 1.16016 0.5625C1.40625 0.289062 1.81641 0.289062 2.0625 0.5625L7.33984 5.78516Z",
9635
- fill: fill
9636
- }));
9637
- };
9638
-
9639
- const ChervronLeftIcon = _ref => {
9640
- let {
9641
- width = 7,
9642
- height = 13,
9643
- fill = "#777575"
9644
- } = _ref;
9645
- return /*#__PURE__*/React$1.createElement("svg", {
9646
- width: width,
9647
- height: height,
9648
- viewBox: "0 0 7 13",
9649
- fill: "none",
9650
- xmlns: "http://www.w3.org/2000/svg"
9651
- }, /*#__PURE__*/React$1.createElement("path", {
9652
- d: "M0.410156 5.78516L5.66016 0.5625C5.90625 0.289062 6.31641 0.289062 6.58984 0.5625C6.83594 0.808594 6.83594 1.21875 6.58984 1.46484L1.77734 6.25L6.5625 11.0625C6.83594 11.3086 6.83594 11.7188 6.5625 11.9648C6.31641 12.2383 5.90625 12.2383 5.66016 11.9648L0.410156 6.71484C0.136719 6.46875 0.136719 6.05859 0.410156 5.78516Z",
9653
- fill: fill
9654
- }));
9655
- };
9656
-
9657
9663
  /* eslint-disable react/prop-types */
9658
9664
 
9659
9665
  // Styled components for the date picker
@@ -9873,20 +9879,21 @@ const DatePicker = ({
9873
9879
  };
9874
9880
 
9875
9881
  /* eslint-disable import/no-extraneous-dependencies */
9876
- const RangePicker = ({
9877
- label,
9878
- onChange,
9879
- borderRadius,
9880
- required,
9881
- width,
9882
- height,
9883
- placeholder,
9884
- disabled,
9885
- borderColor,
9886
- borderColorFocus,
9887
- textColor,
9888
- selectedValue
9889
- }) => {
9882
+ const RangePicker = _ref => {
9883
+ let {
9884
+ label,
9885
+ onChange,
9886
+ borderRadius,
9887
+ required,
9888
+ width,
9889
+ height,
9890
+ placeholder,
9891
+ disabled,
9892
+ borderColor,
9893
+ borderColorFocus,
9894
+ textColor,
9895
+ selectedValue
9896
+ } = _ref;
9890
9897
  const [isFocused, setIsFocused] = useState(false);
9891
9898
  const [isOpen, setIsOpen] = useState(false);
9892
9899
  const [value, setValue] = useState(''); // Added value state
@@ -10310,23 +10317,24 @@ const QuarterPopupPicker = ({
10310
10317
  };
10311
10318
 
10312
10319
  /* eslint-disable import/no-extraneous-dependencies */
10313
- const QuarterPicker = ({
10314
- availableQuarters,
10315
- // ["Q1-2024"]
10316
- label,
10317
- onChange,
10318
- borderRadius,
10319
- required,
10320
- width,
10321
- height,
10322
- placeholder,
10323
- disabled,
10324
- borderColor,
10325
- borderColorFocus,
10326
- textColor,
10327
- selectedValue,
10328
- startYear
10329
- }) => {
10320
+ const QuarterPicker = _ref => {
10321
+ let {
10322
+ availableQuarters,
10323
+ // ["Q1-2024"]
10324
+ label,
10325
+ onChange,
10326
+ borderRadius,
10327
+ required,
10328
+ width,
10329
+ height,
10330
+ placeholder,
10331
+ disabled,
10332
+ borderColor,
10333
+ borderColorFocus,
10334
+ textColor,
10335
+ selectedValue,
10336
+ startYear
10337
+ } = _ref;
10330
10338
  const [isFocused, setIsFocused] = useState(false);
10331
10339
  const [isOpen, setIsOpen] = useState(false);
10332
10340
  const [value, setValue] = useState('');
@@ -10768,22 +10776,23 @@ const MonthPopupPicker = ({
10768
10776
  };
10769
10777
 
10770
10778
  /* eslint-disable import/no-extraneous-dependencies */
10771
- const MonthPicker = ({
10772
- availableMonths,
10773
- label,
10774
- onChange,
10775
- borderRadius,
10776
- required,
10777
- width,
10778
- height,
10779
- placeholder,
10780
- disabled,
10781
- borderColor,
10782
- borderColorFocus,
10783
- textColor,
10784
- selectedValue,
10785
- startYear
10786
- }) => {
10779
+ const MonthPicker = _ref => {
10780
+ let {
10781
+ availableMonths,
10782
+ label,
10783
+ onChange,
10784
+ borderRadius,
10785
+ required,
10786
+ width,
10787
+ height,
10788
+ placeholder,
10789
+ disabled,
10790
+ borderColor,
10791
+ borderColorFocus,
10792
+ textColor,
10793
+ selectedValue,
10794
+ startYear
10795
+ } = _ref;
10787
10796
  const [isFocused, setIsFocused] = useState(false);
10788
10797
  const [isOpen, setIsOpen] = useState(false);
10789
10798
  const [value, setValue] = useState('');
@@ -12826,7 +12835,7 @@ const TitleWrapper = styled.div`
12826
12835
  margin-bottom: 20px;
12827
12836
  gap: 6px;
12828
12837
  `;
12829
- const CardTitle = styled.h5`
12838
+ const CardTitle$1 = styled.h5`
12830
12839
  font-size: 14px;
12831
12840
  font-weight: 400;
12832
12841
  margin: 0;
@@ -12930,7 +12939,7 @@ const BannerEventBox = props => {
12930
12939
  return /*#__PURE__*/React$1.createElement(MainContainer$4, {
12931
12940
  height: height,
12932
12941
  width: width
12933
- }, /*#__PURE__*/React$1.createElement(TitleWrapper, null, formatedBanners().icon, "|", /*#__PURE__*/React$1.createElement(CardTitle, null, formatedBanners().name)), /*#__PURE__*/React$1.createElement(Block, null, /*#__PURE__*/React$1.createElement(Headline, null, "Event Description"), /*#__PURE__*/React$1.createElement(Text, null, description)), /*#__PURE__*/React$1.createElement(Block, null, /*#__PURE__*/React$1.createElement(Headline, null, "Event Dates:"), /*#__PURE__*/React$1.createElement(Text, null, dates.join(" - "))), /*#__PURE__*/React$1.createElement(ButtonWrap, null, /*#__PURE__*/React$1.createElement(Button$1, {
12942
+ }, /*#__PURE__*/React$1.createElement(TitleWrapper, null, formatedBanners().icon, "|", /*#__PURE__*/React$1.createElement(CardTitle$1, null, formatedBanners().name)), /*#__PURE__*/React$1.createElement(Block, null, /*#__PURE__*/React$1.createElement(Headline, null, "Event Description"), /*#__PURE__*/React$1.createElement(Text, null, description)), /*#__PURE__*/React$1.createElement(Block, null, /*#__PURE__*/React$1.createElement(Headline, null, "Event Dates:"), /*#__PURE__*/React$1.createElement(Text, null, dates.join(" - "))), /*#__PURE__*/React$1.createElement(ButtonWrap, null, /*#__PURE__*/React$1.createElement(Button$1, {
12934
12943
  leftIcon: "Eye",
12935
12944
  onClick: () => onInfoClickHandler(banner),
12936
12945
  text: buttonText,
@@ -23894,21 +23903,22 @@ const DeleteIcon = styled.div`
23894
23903
  position: absolute;
23895
23904
  `;
23896
23905
 
23897
- const QuickFilterDropdownSingle = ({
23898
- label,
23899
- hoverColor,
23900
- options,
23901
- selectedValue,
23902
- placeHolder,
23903
- onChange,
23904
- disabled,
23905
- width,
23906
- error,
23907
- errorMessage,
23908
- xIconShow,
23909
- labelColor,
23910
- showLabelOnTop
23911
- }) => {
23906
+ const QuickFilterDropdownSingle = _ref => {
23907
+ let {
23908
+ label,
23909
+ hoverColor,
23910
+ options,
23911
+ selectedValue,
23912
+ placeHolder,
23913
+ onChange,
23914
+ disabled,
23915
+ width,
23916
+ error,
23917
+ errorMessage,
23918
+ xIconShow,
23919
+ labelColor,
23920
+ showLabelOnTop
23921
+ } = _ref;
23912
23922
  const [isFocused, setIsFocused] = useState(false);
23913
23923
  const [showOptions, setShowOptions] = useState(false);
23914
23924
  const [inputValue, setInputValue] = useState("");
@@ -24305,23 +24315,24 @@ const IconContainer$2 = styled.div`
24305
24315
  cursor: pointer;
24306
24316
  `;
24307
24317
 
24308
- const QuickFilterDropdownMultiSelection = ({
24309
- label,
24310
- labelEmptyValue,
24311
- options,
24312
- selectedValue,
24313
- placeHolder,
24314
- onChange,
24315
- required,
24316
- disabled,
24317
- width,
24318
- error,
24319
- errorMessage,
24320
- labelColor,
24321
- xIconShow,
24322
- checkBoxColor,
24323
- showLabelOnTop
24324
- }) => {
24318
+ const QuickFilterDropdownMultiSelection = _ref => {
24319
+ let {
24320
+ label,
24321
+ labelEmptyValue,
24322
+ options,
24323
+ selectedValue,
24324
+ placeHolder,
24325
+ onChange,
24326
+ required,
24327
+ disabled,
24328
+ width,
24329
+ error,
24330
+ errorMessage,
24331
+ labelColor,
24332
+ xIconShow,
24333
+ checkBoxColor,
24334
+ showLabelOnTop
24335
+ } = _ref;
24325
24336
  const [isFocused, setIsFocused] = useState(false);
24326
24337
  const [showOptions, setShowOptions] = useState(false);
24327
24338
  const [inputValue, setInputValue] = useState('');
@@ -26365,7 +26376,7 @@ styled.div`
26365
26376
  border-radius: 5px;
26366
26377
  }
26367
26378
  `;
26368
- const CardHeader = styled.div`
26379
+ const CardHeader$1 = styled.div`
26369
26380
  padding: 16px;
26370
26381
  position: sticky;
26371
26382
  top: 0;
@@ -26539,7 +26550,7 @@ const TotalHorizontalCharts = props => {
26539
26550
  textColor: textColor,
26540
26551
  scroller: chartsData.length > showScrollerBarsCount ? 'auto' : 'hidden',
26541
26552
  className: className
26542
- }, chartsData?.length > 0 ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, !hideTitle || !hideTotalValue ? /*#__PURE__*/React$1.createElement(CardHeader, {
26553
+ }, chartsData?.length > 0 ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, !hideTitle || !hideTotalValue ? /*#__PURE__*/React$1.createElement(CardHeader$1, {
26543
26554
  ref: topHeader,
26544
26555
  className: "CardHeader"
26545
26556
  }, !hideTitle ? /*#__PURE__*/React$1.createElement(Title$m, null, title) : '', !hideTotalValue ? /*#__PURE__*/React$1.createElement(TotalValue, {
@@ -35553,9 +35564,9 @@ const ToggleSlider = styled.span`
35553
35564
  }
35554
35565
  `;
35555
35566
 
35556
- /**
35557
- * ToggleSwitch component for on/off states.
35558
- * Supports small/large sizes and disabled state.
35567
+ /**
35568
+ * ToggleSwitch component for on/off states.
35569
+ * Supports small/large sizes and disabled state.
35559
35570
  */
35560
35571
  function ToggleSwitch(_ref) {
35561
35572
  let {
@@ -36849,7 +36860,7 @@ const TruncatedText$1 = styled.span`
36849
36860
  text-overflow: ellipsis;
36850
36861
  font-size: 14px;
36851
36862
  `;
36852
- const Checkmark = styled.span`
36863
+ const Checkmark$1 = styled.span`
36853
36864
  color: ${props => props.color};
36854
36865
  margin-left: 8px;
36855
36866
  font-weight: bold;
@@ -36948,7 +36959,7 @@ const SortPop = props => {
36948
36959
  onClick: () => {
36949
36960
  handleChange(item);
36950
36961
  }
36951
- }, /*#__PURE__*/React$1.createElement(TruncatedText$1, null, item.label), item.value === value && /*#__PURE__*/React$1.createElement(Checkmark, {
36962
+ }, /*#__PURE__*/React$1.createElement(TruncatedText$1, null, item.label), item.value === value && /*#__PURE__*/React$1.createElement(Checkmark$1, {
36952
36963
  color: color
36953
36964
  }, "\u2713")))), /*#__PURE__*/React$1.createElement(ButtonWrapper$1, null, /*#__PURE__*/React$1.createElement(ResetButton, {
36954
36965
  onClick: handleReset,
@@ -41363,14 +41374,14 @@ var Lottie = function Lottie(props) {
41363
41374
  };
41364
41375
 
41365
41376
  // Table.jsx
41366
- const Table = props => {
41377
+ const Table = /*#__PURE__*/forwardRef((props, ref) => {
41367
41378
  const {
41368
- ref,
41369
41379
  width = '100%',
41370
41380
  height = 'auto',
41371
41381
  tableTitle = 'All Events',
41372
41382
  data = [],
41373
41383
  counter = 0,
41384
+ hideRowsCounter = false,
41374
41385
  onButtonClick = () => {},
41375
41386
  buttonColor = '#066768',
41376
41387
  buttonHoverColor = '#388586',
@@ -41472,7 +41483,7 @@ const Table = props => {
41472
41483
  return /*#__PURE__*/React$1.createElement(TableWrapper, {
41473
41484
  width: width,
41474
41485
  height: height
41475
- }, /*#__PURE__*/React$1.createElement(NoInfoFound, null, /*#__PURE__*/React$1.createElement(TableTop, null, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Title$7, null, tableTitle), /*#__PURE__*/React$1.createElement(SubTitle, null, data.length === 0 ? 'No Events' : `${counter} Events`)), showSideButton && /*#__PURE__*/React$1.createElement(Button$1, {
41486
+ }, /*#__PURE__*/React$1.createElement(NoInfoFound, null, /*#__PURE__*/React$1.createElement(TableTop, null, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Title$7, null, tableTitle), !hideRowsCounter && /*#__PURE__*/React$1.createElement(SubTitle, null, data.length === 0 ? 'No Events' : `${counter} Events`)), showSideButton && /*#__PURE__*/React$1.createElement(Button$1, {
41476
41487
  height: "45px",
41477
41488
  leftIcon: "Plus",
41478
41489
  text: "New Event",
@@ -41523,7 +41534,10 @@ const Table = props => {
41523
41534
  animationData: LoadingAnimation,
41524
41535
  loop: true
41525
41536
  }), /*#__PURE__*/React$1.createElement(LoadingText, null, isLoadingText)))));
41526
- };
41537
+ });
41538
+
41539
+ // Add displayName for better debugging
41540
+ Table.displayName = 'Table';
41527
41541
 
41528
41542
  const Card = styled.div`
41529
41543
  background: ${props => props.backgroundColor};
@@ -41751,7 +41765,7 @@ const VendorSearchResult = styled.span`
41751
41765
  display: block;
41752
41766
  font-size: 16px;
41753
41767
  font-weight: 400;
41754
- height: 20px;
41768
+ /* height: 20px; */
41755
41769
  `;
41756
41770
  const VendorNameAndPackagesContainer = styled.div`
41757
41771
  display: flex;
@@ -51184,7 +51198,8 @@ const ItemManagerPanel = _ref => {
51184
51198
  size: "small",
51185
51199
  text: hasVendorsWithPackages() ? "Add Vendor" : "First Vendor",
51186
51200
  type: "primary",
51187
- textColor: linkColor
51201
+ textColor: linkColor,
51202
+ disabled: disableSection
51188
51203
  }))), /*#__PURE__*/React$1.createElement(VendorListWrapper$2, {
51189
51204
  disabled: disableSection,
51190
51205
  headerHeight: headerHeight
@@ -52313,5 +52328,152 @@ const ToasterMessageBox = _ref => {
52313
52328
  }, linkText));
52314
52329
  };
52315
52330
 
52316
- export { AreaChart, BannerEventBoxList, BarChart, BarChartTwoRows, BarChartWithAreaChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, BrushChart, BubbleChart, Build, Button$1 as Button, CollapseData, CollapseHeader, ContainerTable, DialogOverlay$1 as DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, DownloadProgress, DropdownNew, EventDetailsCard, EventList, Execute, FilterPanel, FilterPop, Heatmap, IconButton$1 as IconButton, Input$2 as Input, InsightsCarousel, ItemManagerPanel, LinkButton, LinnerDataBox, MarketShareDescription, MenuRoute, MessageBox, ModalDrawer, ModalWithOverlay, OneColumnContainer, OverlayDropdown, PerformanceAnalyticsLegend, PieChart, PopupCharts, QuickFilter, RangePop, ReportTable, SearchInput, SingleBarLineCharts, SortPop, TabMenu, Table, ToasterMessageBox, ToggleSwitch, Tooltip$2 as Tooltip, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts, Track, TwoBarCharts, WeeksPicker };
52331
+ const CardsContainer = styled.div`
52332
+ display: flex;
52333
+ gap: 16px;
52334
+ width: ${props => props.width || '100%'};
52335
+ font-family: "Poppins", sans-serif;
52336
+ justify-content: space-between;
52337
+ `;
52338
+ const StatusCard = styled.div`
52339
+ position: relative;
52340
+ background-color: white;
52341
+ border-bottom: 3px solid ${props => props.isSelected ? props.borderColor : '#E0E0E0'};
52342
+ border-radius: 12px;
52343
+ padding: 12px 16px;
52344
+ flex-grow: 1;
52345
+ flex-basis: 0;
52346
+ `;
52347
+ const CardHeader = styled.div`
52348
+ display: flex;
52349
+ justify-content: space-between;
52350
+ align-items: center;
52351
+ margin-bottom: 10px;
52352
+ `;
52353
+ const Circle = styled.div`
52354
+ width: 16px;
52355
+ height: 16px;
52356
+ border-radius: 50%;
52357
+ background-color: ${props => props.color};
52358
+ margin-right: 8px;
52359
+ `;
52360
+ const CardTitle = styled.h3`
52361
+ margin: 0;
52362
+ font-size: 18px;
52363
+ font-weight: 500;
52364
+ color: ${props => props.isSelected ? props.color : '#666666'};
52365
+ transition: color 0.2s ease-in-out;
52366
+ `;
52367
+ const Checkmark = styled.input`
52368
+ width: 16px;
52369
+ height: 16px;
52370
+ accent-color: #066768;
52371
+ margin-left: auto;
52372
+ &:checked {
52373
+ filter: invert(1) hue-rotate(180deg) brightness(2);
52374
+ }
52375
+ `;
52376
+ const CardContent = styled.div`
52377
+ display: flex;
52378
+ flex-direction: column;
52379
+ align-items: flex-start;
52380
+ `;
52381
+ const StatusCount = styled.h4`
52382
+ font-size: 32px;
52383
+ font-weight: 500;
52384
+ color: ${props => props.isSelected ? props.color : '#999999'};
52385
+ line-height: 1;
52386
+ margin: 0;
52387
+ transition: color 0.2s ease-in-out;
52388
+ `;
52389
+
52390
+ const EventStatusCards = _ref => {
52391
+ let {
52392
+ statusData = [],
52393
+ onStatusToggle = () => {},
52394
+ disabled = false,
52395
+ width = "100%"
52396
+ } = _ref;
52397
+ // Default data structure if no data provided
52398
+ const defaultStatusData = [{
52399
+ status: "Pending",
52400
+ count: 0,
52401
+ checked: true,
52402
+ color: "#F5C9A7"
52403
+ }, {
52404
+ status: "Received",
52405
+ count: 0,
52406
+ checked: true,
52407
+ color: "#B9D5D5"
52408
+ }, {
52409
+ status: "Approved",
52410
+ count: 0,
52411
+ checked: true,
52412
+ color: "#BEDDC3"
52413
+ }, {
52414
+ status: "Cancelled",
52415
+ count: 0,
52416
+ checked: true,
52417
+ color: "#EBA6AF"
52418
+ }];
52419
+ const displayData = statusData.length > 0 ? statusData : defaultStatusData;
52420
+ const handleCardClick = status => {
52421
+ if (disabled) return;
52422
+ const updatedData = displayData.map(item => item.status === status ? {
52423
+ ...item,
52424
+ checked: !item.checked
52425
+ } : item);
52426
+ const clickedItem = displayData.find(item => item.status === status);
52427
+ onStatusToggle(updatedData, status, !clickedItem.checked);
52428
+ };
52429
+ return /*#__PURE__*/React$1.createElement(CardsContainer, {
52430
+ width: width,
52431
+ className: "EventStatusCardsContainer"
52432
+ }, displayData.map(item => {
52433
+ const {
52434
+ status,
52435
+ count,
52436
+ checked,
52437
+ color
52438
+ } = item;
52439
+ return /*#__PURE__*/React$1.createElement(StatusCard, {
52440
+ key: status,
52441
+ className: `StatusCard StatusCard-${status}`,
52442
+ isSelected: checked,
52443
+ borderColor: color,
52444
+ disabled: disabled,
52445
+ onClick: () => handleCardClick(status),
52446
+ "data-testid": `status-card-${status.toLowerCase()}`
52447
+ }, /*#__PURE__*/React$1.createElement(CardHeader, null, /*#__PURE__*/React$1.createElement(Circle, {
52448
+ color: color
52449
+ }), /*#__PURE__*/React$1.createElement(CardTitle, {
52450
+ isSelected: checked,
52451
+ color: color
52452
+ }, status), /*#__PURE__*/React$1.createElement(Checkmark, {
52453
+ type: "checkbox",
52454
+ checked: checked,
52455
+ readOnly: true
52456
+ })), /*#__PURE__*/React$1.createElement(CardContent, null, /*#__PURE__*/React$1.createElement(StatusCount, {
52457
+ isSelected: checked,
52458
+ color: color
52459
+ }, count)));
52460
+ }));
52461
+ };
52462
+ EventStatusCards.propTypes = {
52463
+ /** Array of status objects with count, checked state, and color information */
52464
+ statusData: PropTypes.arrayOf(PropTypes.shape({
52465
+ status: PropTypes.oneOf(["Pending", "Received", "Approved", "Cancelled"]).isRequired,
52466
+ count: PropTypes.number.isRequired,
52467
+ checked: PropTypes.bool.isRequired,
52468
+ color: PropTypes.string.isRequired
52469
+ })),
52470
+ /** Callback function when status selection changes */
52471
+ onStatusToggle: PropTypes.func,
52472
+ /** Whether the cards are disabled */
52473
+ disabled: PropTypes.bool,
52474
+ /** Width of the entire cards container */
52475
+ width: PropTypes.string
52476
+ };
52477
+
52478
+ export { AreaChart, BannerEventBoxList, BarChart, BarChartTwoRows, BarChartWithAreaChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, BrushChart, BubbleChart, Build, Button$1 as Button, CollapseData, CollapseHeader, ContainerTable, DialogOverlay$1 as DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, DownloadProgress, DropdownNew, EventDetailsCard, EventList, EventStatusCards, Execute, FilterPanel, FilterPop, Heatmap, IconButton$1 as IconButton, Input$2 as Input, InsightsCarousel, ItemManagerPanel, LinkButton, LinnerDataBox, MarketShareDescription, MenuRoute, MessageBox, ModalDrawer, ModalWithOverlay, OneColumnContainer, OverlayDropdown, PerformanceAnalyticsLegend, PieChart, PopupCharts, QuickFilter, RangePicker, RangePop, ReportTable, SearchInput, SingleBarLineCharts, SortPop, TabMenu, Table, ToasterMessageBox, ToggleSwitch, Tooltip$2 as Tooltip, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts, Track, TwoBarCharts, WeeksPicker };
52317
52479
  //# sourceMappingURL=index.esm.js.map