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.d.ts +73 -2
- package/dist/index.esm.js +317 -155
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +318 -154
- package/dist/index.js.map +1 -1
- package/dist/types/components/Button/Button.stories.d.ts +2 -0
- package/dist/types/components/EventStatusCards/EventStatusCards.d.ts +21 -0
- package/dist/types/components/EventStatusCards/EventStatusCards.stories.d.ts +57 -0
- package/dist/types/components/EventStatusCards/EventStatusCards.style.d.ts +8 -0
- package/dist/types/components/Table/Table.d.ts +2 -1
- package/dist/types/components/Table/Table.stories.d.ts +110 -63
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -351,18 +351,18 @@ const SearchIcon = _ref => {
|
|
|
351
351
|
};
|
|
352
352
|
|
|
353
353
|
const PlusIcon = ({
|
|
354
|
-
width = '
|
|
354
|
+
width = '16',
|
|
355
355
|
height = '17',
|
|
356
356
|
color = '#212121'
|
|
357
357
|
}) => /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
358
358
|
xmlns: "http://www.w3.org/2000/svg",
|
|
359
|
-
width:
|
|
360
|
-
height:
|
|
359
|
+
width: width,
|
|
360
|
+
height: height,
|
|
361
361
|
viewBox: "0 0 16 17",
|
|
362
362
|
fill: "none"
|
|
363
363
|
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
364
364
|
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",
|
|
365
|
-
fill:
|
|
365
|
+
fill: color
|
|
366
366
|
}));
|
|
367
367
|
|
|
368
368
|
const ArrowLeftIcon = ({
|
|
@@ -426,20 +426,23 @@ const RedDot = ({
|
|
|
426
426
|
fill: "#F00021"
|
|
427
427
|
}));
|
|
428
428
|
|
|
429
|
-
const CalendarInOpen =
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
429
|
+
const CalendarInOpen = _ref => {
|
|
430
|
+
let {
|
|
431
|
+
width = "16",
|
|
432
|
+
height = "17",
|
|
433
|
+
fill = "#726F6F"
|
|
434
|
+
} = _ref;
|
|
435
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
436
|
+
width: width,
|
|
437
|
+
height: height,
|
|
438
|
+
viewBox: "0 0 16 17",
|
|
439
|
+
fill: "none",
|
|
440
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
441
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
442
|
+
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",
|
|
443
|
+
fill: fill
|
|
444
|
+
}));
|
|
445
|
+
};
|
|
443
446
|
|
|
444
447
|
const Calendar = () => /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
445
448
|
width: "11",
|
|
@@ -452,6 +455,42 @@ const Calendar = () => /*#__PURE__*/React__default["default"].createElement("svg
|
|
|
452
455
|
fill: "#568202"
|
|
453
456
|
}));
|
|
454
457
|
|
|
458
|
+
const ChervronRightIcon = _ref => {
|
|
459
|
+
let {
|
|
460
|
+
width = "8",
|
|
461
|
+
height = "13",
|
|
462
|
+
fill = "#777575"
|
|
463
|
+
} = _ref;
|
|
464
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
465
|
+
width: width,
|
|
466
|
+
height: height,
|
|
467
|
+
viewBox: "0 0 8 13",
|
|
468
|
+
fill: "none",
|
|
469
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
470
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
471
|
+
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",
|
|
472
|
+
fill: fill
|
|
473
|
+
}));
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
const ChervronLeftIcon = _ref => {
|
|
477
|
+
let {
|
|
478
|
+
width = 7,
|
|
479
|
+
height = 13,
|
|
480
|
+
fill = "#777575"
|
|
481
|
+
} = _ref;
|
|
482
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
483
|
+
width: width,
|
|
484
|
+
height: height,
|
|
485
|
+
viewBox: "0 0 7 13",
|
|
486
|
+
fill: "none",
|
|
487
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
488
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
489
|
+
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",
|
|
490
|
+
fill: fill
|
|
491
|
+
}));
|
|
492
|
+
};
|
|
493
|
+
|
|
455
494
|
const Button$1 = props => {
|
|
456
495
|
const {
|
|
457
496
|
text = "",
|
|
@@ -494,7 +533,9 @@ const Button$1 = props => {
|
|
|
494
533
|
exit: ExitIcon,
|
|
495
534
|
eye: EyeIcon,
|
|
496
535
|
reselect: ReselectIcon,
|
|
497
|
-
plus: Plus
|
|
536
|
+
plus: Plus,
|
|
537
|
+
left: ChervronLeftIcon,
|
|
538
|
+
right: ChervronRightIcon
|
|
498
539
|
};
|
|
499
540
|
const getIcon = icon => {
|
|
500
541
|
if (!icon || icon === "none") return null;
|
|
@@ -502,7 +543,8 @@ const Button$1 = props => {
|
|
|
502
543
|
const iconProps = {
|
|
503
544
|
height: "16px",
|
|
504
545
|
width: "16px",
|
|
505
|
-
color: disabled ? disabledTextColor || "#B1B1B1" : hover ? hoverTextColor || (type === "secondary" ? "#229E38" : "#ffffff") : textColor || (type === "secondary" ? "#212121" : "#ffffff")
|
|
546
|
+
color: disabled ? disabledTextColor || "#B1B1B1" : hover ? hoverTextColor || (type === "secondary" ? "#229E38" : "#ffffff") : textColor || (type === "secondary" ? "#212121" : "#ffffff"),
|
|
547
|
+
fill: disabled ? disabledTextColor || "#B1B1B1" : hover ? hoverTextColor || (type === "secondary" ? "#229E38" : "#ffffff") : textColor || (type === "secondary" ? "#212121" : "#ffffff")
|
|
506
548
|
};
|
|
507
549
|
return /*#__PURE__*/React__default["default"].createElement(IconWrapper$6, null, /*#__PURE__*/React__default["default"].createElement(IconComponent, iconProps));
|
|
508
550
|
};
|
|
@@ -2540,7 +2582,7 @@ const TitleWrapper$1 = styled__default["default"].div`
|
|
|
2540
2582
|
gap: 10px;
|
|
2541
2583
|
align-items: baseline;
|
|
2542
2584
|
`;
|
|
2543
|
-
const CardTitle$
|
|
2585
|
+
const CardTitle$2 = styled__default["default"].span`
|
|
2544
2586
|
font-size: 18px;
|
|
2545
2587
|
font-weight: 400;
|
|
2546
2588
|
`;
|
|
@@ -3117,8 +3159,8 @@ const LinkButton = _ref => {
|
|
|
3117
3159
|
return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, {
|
|
3118
3160
|
className: "PlusIcon"
|
|
3119
3161
|
}, /*#__PURE__*/React__default["default"].createElement(PlusIcon, {
|
|
3120
|
-
height:
|
|
3121
|
-
width:
|
|
3162
|
+
height: "16",
|
|
3163
|
+
width: "17",
|
|
3122
3164
|
color: color
|
|
3123
3165
|
}));
|
|
3124
3166
|
case 'options':
|
|
@@ -3324,7 +3366,7 @@ const EventDetailsCard = props => {
|
|
|
3324
3366
|
className: className,
|
|
3325
3367
|
height: height,
|
|
3326
3368
|
width: width
|
|
3327
|
-
}, /*#__PURE__*/React.createElement(TitleWrapper$1, null, /*#__PURE__*/React.createElement(CardTitle$
|
|
3369
|
+
}, /*#__PURE__*/React.createElement(TitleWrapper$1, null, /*#__PURE__*/React.createElement(CardTitle$2, null, title), displayBannersDropdown && /*#__PURE__*/React.createElement(BannersDropdown, {
|
|
3328
3370
|
banners: [{
|
|
3329
3371
|
checked: true,
|
|
3330
3372
|
name: 'StopAndShop'
|
|
@@ -9628,42 +9670,6 @@ const OptionsContainer$5 = styled__default["default"].div`
|
|
|
9628
9670
|
padding-top: 8px;
|
|
9629
9671
|
`;
|
|
9630
9672
|
|
|
9631
|
-
const ChervronRightIcon = _ref => {
|
|
9632
|
-
let {
|
|
9633
|
-
width = "8",
|
|
9634
|
-
height = "13",
|
|
9635
|
-
fill = "#777575"
|
|
9636
|
-
} = _ref;
|
|
9637
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
9638
|
-
width: width,
|
|
9639
|
-
height: height,
|
|
9640
|
-
viewBox: "0 0 8 13",
|
|
9641
|
-
fill: "none",
|
|
9642
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
9643
|
-
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
9644
|
-
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",
|
|
9645
|
-
fill: fill
|
|
9646
|
-
}));
|
|
9647
|
-
};
|
|
9648
|
-
|
|
9649
|
-
const ChervronLeftIcon = _ref => {
|
|
9650
|
-
let {
|
|
9651
|
-
width = 7,
|
|
9652
|
-
height = 13,
|
|
9653
|
-
fill = "#777575"
|
|
9654
|
-
} = _ref;
|
|
9655
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
9656
|
-
width: width,
|
|
9657
|
-
height: height,
|
|
9658
|
-
viewBox: "0 0 7 13",
|
|
9659
|
-
fill: "none",
|
|
9660
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
9661
|
-
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
9662
|
-
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",
|
|
9663
|
-
fill: fill
|
|
9664
|
-
}));
|
|
9665
|
-
};
|
|
9666
|
-
|
|
9667
9673
|
/* eslint-disable react/prop-types */
|
|
9668
9674
|
|
|
9669
9675
|
// Styled components for the date picker
|
|
@@ -9883,20 +9889,21 @@ const DatePicker = ({
|
|
|
9883
9889
|
};
|
|
9884
9890
|
|
|
9885
9891
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
9886
|
-
const RangePicker =
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9890
|
-
|
|
9891
|
-
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9892
|
+
const RangePicker = _ref => {
|
|
9893
|
+
let {
|
|
9894
|
+
label,
|
|
9895
|
+
onChange,
|
|
9896
|
+
borderRadius,
|
|
9897
|
+
required,
|
|
9898
|
+
width,
|
|
9899
|
+
height,
|
|
9900
|
+
placeholder,
|
|
9901
|
+
disabled,
|
|
9902
|
+
borderColor,
|
|
9903
|
+
borderColorFocus,
|
|
9904
|
+
textColor,
|
|
9905
|
+
selectedValue
|
|
9906
|
+
} = _ref;
|
|
9900
9907
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
9901
9908
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
9902
9909
|
const [value, setValue] = React$1.useState(''); // Added value state
|
|
@@ -10320,23 +10327,24 @@ const QuarterPopupPicker = ({
|
|
|
10320
10327
|
};
|
|
10321
10328
|
|
|
10322
10329
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10323
|
-
const QuarterPicker =
|
|
10324
|
-
|
|
10325
|
-
|
|
10326
|
-
|
|
10327
|
-
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10330
|
+
const QuarterPicker = _ref => {
|
|
10331
|
+
let {
|
|
10332
|
+
availableQuarters,
|
|
10333
|
+
// ["Q1-2024"]
|
|
10334
|
+
label,
|
|
10335
|
+
onChange,
|
|
10336
|
+
borderRadius,
|
|
10337
|
+
required,
|
|
10338
|
+
width,
|
|
10339
|
+
height,
|
|
10340
|
+
placeholder,
|
|
10341
|
+
disabled,
|
|
10342
|
+
borderColor,
|
|
10343
|
+
borderColorFocus,
|
|
10344
|
+
textColor,
|
|
10345
|
+
selectedValue,
|
|
10346
|
+
startYear
|
|
10347
|
+
} = _ref;
|
|
10340
10348
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10341
10349
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10342
10350
|
const [value, setValue] = React$1.useState('');
|
|
@@ -10778,22 +10786,23 @@ const MonthPopupPicker = ({
|
|
|
10778
10786
|
};
|
|
10779
10787
|
|
|
10780
10788
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10781
|
-
const MonthPicker =
|
|
10782
|
-
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
|
|
10793
|
-
|
|
10794
|
-
|
|
10795
|
-
|
|
10796
|
-
|
|
10789
|
+
const MonthPicker = _ref => {
|
|
10790
|
+
let {
|
|
10791
|
+
availableMonths,
|
|
10792
|
+
label,
|
|
10793
|
+
onChange,
|
|
10794
|
+
borderRadius,
|
|
10795
|
+
required,
|
|
10796
|
+
width,
|
|
10797
|
+
height,
|
|
10798
|
+
placeholder,
|
|
10799
|
+
disabled,
|
|
10800
|
+
borderColor,
|
|
10801
|
+
borderColorFocus,
|
|
10802
|
+
textColor,
|
|
10803
|
+
selectedValue,
|
|
10804
|
+
startYear
|
|
10805
|
+
} = _ref;
|
|
10797
10806
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10798
10807
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10799
10808
|
const [value, setValue] = React$1.useState('');
|
|
@@ -12836,7 +12845,7 @@ const TitleWrapper = styled__default["default"].div`
|
|
|
12836
12845
|
margin-bottom: 20px;
|
|
12837
12846
|
gap: 6px;
|
|
12838
12847
|
`;
|
|
12839
|
-
const CardTitle = styled__default["default"].h5`
|
|
12848
|
+
const CardTitle$1 = styled__default["default"].h5`
|
|
12840
12849
|
font-size: 14px;
|
|
12841
12850
|
font-weight: 400;
|
|
12842
12851
|
margin: 0;
|
|
@@ -12940,7 +12949,7 @@ const BannerEventBox = props => {
|
|
|
12940
12949
|
return /*#__PURE__*/React__default["default"].createElement(MainContainer$4, {
|
|
12941
12950
|
height: height,
|
|
12942
12951
|
width: width
|
|
12943
|
-
}, /*#__PURE__*/React__default["default"].createElement(TitleWrapper, null, formatedBanners().icon, "|", /*#__PURE__*/React__default["default"].createElement(CardTitle, null, formatedBanners().name)), /*#__PURE__*/React__default["default"].createElement(Block, null, /*#__PURE__*/React__default["default"].createElement(Headline, null, "Event Description"), /*#__PURE__*/React__default["default"].createElement(Text, null, description)), /*#__PURE__*/React__default["default"].createElement(Block, null, /*#__PURE__*/React__default["default"].createElement(Headline, null, "Event Dates:"), /*#__PURE__*/React__default["default"].createElement(Text, null, dates.join(" - "))), /*#__PURE__*/React__default["default"].createElement(ButtonWrap, null, /*#__PURE__*/React__default["default"].createElement(Button$1, {
|
|
12952
|
+
}, /*#__PURE__*/React__default["default"].createElement(TitleWrapper, null, formatedBanners().icon, "|", /*#__PURE__*/React__default["default"].createElement(CardTitle$1, null, formatedBanners().name)), /*#__PURE__*/React__default["default"].createElement(Block, null, /*#__PURE__*/React__default["default"].createElement(Headline, null, "Event Description"), /*#__PURE__*/React__default["default"].createElement(Text, null, description)), /*#__PURE__*/React__default["default"].createElement(Block, null, /*#__PURE__*/React__default["default"].createElement(Headline, null, "Event Dates:"), /*#__PURE__*/React__default["default"].createElement(Text, null, dates.join(" - "))), /*#__PURE__*/React__default["default"].createElement(ButtonWrap, null, /*#__PURE__*/React__default["default"].createElement(Button$1, {
|
|
12944
12953
|
leftIcon: "Eye",
|
|
12945
12954
|
onClick: () => onInfoClickHandler(banner),
|
|
12946
12955
|
text: buttonText,
|
|
@@ -23904,21 +23913,22 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
23904
23913
|
position: absolute;
|
|
23905
23914
|
`;
|
|
23906
23915
|
|
|
23907
|
-
const QuickFilterDropdownSingle =
|
|
23908
|
-
|
|
23909
|
-
|
|
23910
|
-
|
|
23911
|
-
|
|
23912
|
-
|
|
23913
|
-
|
|
23914
|
-
|
|
23915
|
-
|
|
23916
|
-
|
|
23917
|
-
|
|
23918
|
-
|
|
23919
|
-
|
|
23920
|
-
|
|
23921
|
-
|
|
23916
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
23917
|
+
let {
|
|
23918
|
+
label,
|
|
23919
|
+
hoverColor,
|
|
23920
|
+
options,
|
|
23921
|
+
selectedValue,
|
|
23922
|
+
placeHolder,
|
|
23923
|
+
onChange,
|
|
23924
|
+
disabled,
|
|
23925
|
+
width,
|
|
23926
|
+
error,
|
|
23927
|
+
errorMessage,
|
|
23928
|
+
xIconShow,
|
|
23929
|
+
labelColor,
|
|
23930
|
+
showLabelOnTop
|
|
23931
|
+
} = _ref;
|
|
23922
23932
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
23923
23933
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
23924
23934
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24315,23 +24325,24 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24315
24325
|
cursor: pointer;
|
|
24316
24326
|
`;
|
|
24317
24327
|
|
|
24318
|
-
const QuickFilterDropdownMultiSelection =
|
|
24319
|
-
|
|
24320
|
-
|
|
24321
|
-
|
|
24322
|
-
|
|
24323
|
-
|
|
24324
|
-
|
|
24325
|
-
|
|
24326
|
-
|
|
24327
|
-
|
|
24328
|
-
|
|
24329
|
-
|
|
24330
|
-
|
|
24331
|
-
|
|
24332
|
-
|
|
24333
|
-
|
|
24334
|
-
|
|
24328
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24329
|
+
let {
|
|
24330
|
+
label,
|
|
24331
|
+
labelEmptyValue,
|
|
24332
|
+
options,
|
|
24333
|
+
selectedValue,
|
|
24334
|
+
placeHolder,
|
|
24335
|
+
onChange,
|
|
24336
|
+
required,
|
|
24337
|
+
disabled,
|
|
24338
|
+
width,
|
|
24339
|
+
error,
|
|
24340
|
+
errorMessage,
|
|
24341
|
+
labelColor,
|
|
24342
|
+
xIconShow,
|
|
24343
|
+
checkBoxColor,
|
|
24344
|
+
showLabelOnTop
|
|
24345
|
+
} = _ref;
|
|
24335
24346
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24336
24347
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24337
24348
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -26375,7 +26386,7 @@ styled__default["default"].div`
|
|
|
26375
26386
|
border-radius: 5px;
|
|
26376
26387
|
}
|
|
26377
26388
|
`;
|
|
26378
|
-
const CardHeader = styled__default["default"].div`
|
|
26389
|
+
const CardHeader$1 = styled__default["default"].div`
|
|
26379
26390
|
padding: 16px;
|
|
26380
26391
|
position: sticky;
|
|
26381
26392
|
top: 0;
|
|
@@ -26549,7 +26560,7 @@ const TotalHorizontalCharts = props => {
|
|
|
26549
26560
|
textColor: textColor,
|
|
26550
26561
|
scroller: chartsData.length > showScrollerBarsCount ? 'auto' : 'hidden',
|
|
26551
26562
|
className: className
|
|
26552
|
-
}, chartsData?.length > 0 ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, !hideTitle || !hideTotalValue ? /*#__PURE__*/React__default["default"].createElement(CardHeader, {
|
|
26563
|
+
}, chartsData?.length > 0 ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, !hideTitle || !hideTotalValue ? /*#__PURE__*/React__default["default"].createElement(CardHeader$1, {
|
|
26553
26564
|
ref: topHeader,
|
|
26554
26565
|
className: "CardHeader"
|
|
26555
26566
|
}, !hideTitle ? /*#__PURE__*/React__default["default"].createElement(Title$m, null, title) : '', !hideTotalValue ? /*#__PURE__*/React__default["default"].createElement(TotalValue, {
|
|
@@ -35563,9 +35574,9 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
35563
35574
|
}
|
|
35564
35575
|
`;
|
|
35565
35576
|
|
|
35566
|
-
/**
|
|
35567
|
-
* ToggleSwitch component for on/off states.
|
|
35568
|
-
* Supports small/large sizes and disabled state.
|
|
35577
|
+
/**
|
|
35578
|
+
* ToggleSwitch component for on/off states.
|
|
35579
|
+
* Supports small/large sizes and disabled state.
|
|
35569
35580
|
*/
|
|
35570
35581
|
function ToggleSwitch(_ref) {
|
|
35571
35582
|
let {
|
|
@@ -36859,7 +36870,7 @@ const TruncatedText$1 = styled__default["default"].span`
|
|
|
36859
36870
|
text-overflow: ellipsis;
|
|
36860
36871
|
font-size: 14px;
|
|
36861
36872
|
`;
|
|
36862
|
-
const Checkmark = styled__default["default"].span`
|
|
36873
|
+
const Checkmark$1 = styled__default["default"].span`
|
|
36863
36874
|
color: ${props => props.color};
|
|
36864
36875
|
margin-left: 8px;
|
|
36865
36876
|
font-weight: bold;
|
|
@@ -36958,7 +36969,7 @@ const SortPop = props => {
|
|
|
36958
36969
|
onClick: () => {
|
|
36959
36970
|
handleChange(item);
|
|
36960
36971
|
}
|
|
36961
|
-
}, /*#__PURE__*/React__default["default"].createElement(TruncatedText$1, null, item.label), item.value === value && /*#__PURE__*/React__default["default"].createElement(Checkmark, {
|
|
36972
|
+
}, /*#__PURE__*/React__default["default"].createElement(TruncatedText$1, null, item.label), item.value === value && /*#__PURE__*/React__default["default"].createElement(Checkmark$1, {
|
|
36962
36973
|
color: color
|
|
36963
36974
|
}, "\u2713")))), /*#__PURE__*/React__default["default"].createElement(ButtonWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(ResetButton, {
|
|
36964
36975
|
onClick: handleReset,
|
|
@@ -41373,14 +41384,14 @@ var Lottie = function Lottie(props) {
|
|
|
41373
41384
|
};
|
|
41374
41385
|
|
|
41375
41386
|
// Table.jsx
|
|
41376
|
-
const Table = props => {
|
|
41387
|
+
const Table = /*#__PURE__*/React$1.forwardRef((props, ref) => {
|
|
41377
41388
|
const {
|
|
41378
|
-
ref,
|
|
41379
41389
|
width = '100%',
|
|
41380
41390
|
height = 'auto',
|
|
41381
41391
|
tableTitle = 'All Events',
|
|
41382
41392
|
data = [],
|
|
41383
41393
|
counter = 0,
|
|
41394
|
+
hideRowsCounter = false,
|
|
41384
41395
|
onButtonClick = () => {},
|
|
41385
41396
|
buttonColor = '#066768',
|
|
41386
41397
|
buttonHoverColor = '#388586',
|
|
@@ -41482,7 +41493,7 @@ const Table = props => {
|
|
|
41482
41493
|
return /*#__PURE__*/React__default["default"].createElement(TableWrapper, {
|
|
41483
41494
|
width: width,
|
|
41484
41495
|
height: height
|
|
41485
|
-
}, /*#__PURE__*/React__default["default"].createElement(NoInfoFound, null, /*#__PURE__*/React__default["default"].createElement(TableTop, null, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Title$7, null, tableTitle), /*#__PURE__*/React__default["default"].createElement(SubTitle, null, data.length === 0 ? 'No Events' : `${counter} Events`)), showSideButton && /*#__PURE__*/React__default["default"].createElement(Button$1, {
|
|
41496
|
+
}, /*#__PURE__*/React__default["default"].createElement(NoInfoFound, null, /*#__PURE__*/React__default["default"].createElement(TableTop, null, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Title$7, null, tableTitle), !hideRowsCounter && /*#__PURE__*/React__default["default"].createElement(SubTitle, null, data.length === 0 ? 'No Events' : `${counter} Events`)), showSideButton && /*#__PURE__*/React__default["default"].createElement(Button$1, {
|
|
41486
41497
|
height: "45px",
|
|
41487
41498
|
leftIcon: "Plus",
|
|
41488
41499
|
text: "New Event",
|
|
@@ -41533,7 +41544,10 @@ const Table = props => {
|
|
|
41533
41544
|
animationData: LoadingAnimation,
|
|
41534
41545
|
loop: true
|
|
41535
41546
|
}), /*#__PURE__*/React__default["default"].createElement(LoadingText, null, isLoadingText)))));
|
|
41536
|
-
};
|
|
41547
|
+
});
|
|
41548
|
+
|
|
41549
|
+
// Add displayName for better debugging
|
|
41550
|
+
Table.displayName = 'Table';
|
|
41537
41551
|
|
|
41538
41552
|
const Card = styled__default["default"].div`
|
|
41539
41553
|
background: ${props => props.backgroundColor};
|
|
@@ -41761,7 +41775,7 @@ const VendorSearchResult = styled__default["default"].span`
|
|
|
41761
41775
|
display: block;
|
|
41762
41776
|
font-size: 16px;
|
|
41763
41777
|
font-weight: 400;
|
|
41764
|
-
height: 20px;
|
|
41778
|
+
/* height: 20px; */
|
|
41765
41779
|
`;
|
|
41766
41780
|
const VendorNameAndPackagesContainer = styled__default["default"].div`
|
|
41767
41781
|
display: flex;
|
|
@@ -51194,7 +51208,8 @@ const ItemManagerPanel = _ref => {
|
|
|
51194
51208
|
size: "small",
|
|
51195
51209
|
text: hasVendorsWithPackages() ? "Add Vendor" : "First Vendor",
|
|
51196
51210
|
type: "primary",
|
|
51197
|
-
textColor: linkColor
|
|
51211
|
+
textColor: linkColor,
|
|
51212
|
+
disabled: disableSection
|
|
51198
51213
|
}))), /*#__PURE__*/React__default["default"].createElement(VendorListWrapper$2, {
|
|
51199
51214
|
disabled: disableSection,
|
|
51200
51215
|
headerHeight: headerHeight
|
|
@@ -52323,6 +52338,153 @@ const ToasterMessageBox = _ref => {
|
|
|
52323
52338
|
}, linkText));
|
|
52324
52339
|
};
|
|
52325
52340
|
|
|
52341
|
+
const CardsContainer = styled__default["default"].div`
|
|
52342
|
+
display: flex;
|
|
52343
|
+
gap: 16px;
|
|
52344
|
+
width: ${props => props.width || '100%'};
|
|
52345
|
+
font-family: "Poppins", sans-serif;
|
|
52346
|
+
justify-content: space-between;
|
|
52347
|
+
`;
|
|
52348
|
+
const StatusCard = styled__default["default"].div`
|
|
52349
|
+
position: relative;
|
|
52350
|
+
background-color: white;
|
|
52351
|
+
border-bottom: 3px solid ${props => props.isSelected ? props.borderColor : '#E0E0E0'};
|
|
52352
|
+
border-radius: 12px;
|
|
52353
|
+
padding: 12px 16px;
|
|
52354
|
+
flex-grow: 1;
|
|
52355
|
+
flex-basis: 0;
|
|
52356
|
+
`;
|
|
52357
|
+
const CardHeader = styled__default["default"].div`
|
|
52358
|
+
display: flex;
|
|
52359
|
+
justify-content: space-between;
|
|
52360
|
+
align-items: center;
|
|
52361
|
+
margin-bottom: 10px;
|
|
52362
|
+
`;
|
|
52363
|
+
const Circle = styled__default["default"].div`
|
|
52364
|
+
width: 16px;
|
|
52365
|
+
height: 16px;
|
|
52366
|
+
border-radius: 50%;
|
|
52367
|
+
background-color: ${props => props.color};
|
|
52368
|
+
margin-right: 8px;
|
|
52369
|
+
`;
|
|
52370
|
+
const CardTitle = styled__default["default"].h3`
|
|
52371
|
+
margin: 0;
|
|
52372
|
+
font-size: 18px;
|
|
52373
|
+
font-weight: 500;
|
|
52374
|
+
color: ${props => props.isSelected ? props.color : '#666666'};
|
|
52375
|
+
transition: color 0.2s ease-in-out;
|
|
52376
|
+
`;
|
|
52377
|
+
const Checkmark = styled__default["default"].input`
|
|
52378
|
+
width: 16px;
|
|
52379
|
+
height: 16px;
|
|
52380
|
+
accent-color: #066768;
|
|
52381
|
+
margin-left: auto;
|
|
52382
|
+
&:checked {
|
|
52383
|
+
filter: invert(1) hue-rotate(180deg) brightness(2);
|
|
52384
|
+
}
|
|
52385
|
+
`;
|
|
52386
|
+
const CardContent = styled__default["default"].div`
|
|
52387
|
+
display: flex;
|
|
52388
|
+
flex-direction: column;
|
|
52389
|
+
align-items: flex-start;
|
|
52390
|
+
`;
|
|
52391
|
+
const StatusCount = styled__default["default"].h4`
|
|
52392
|
+
font-size: 32px;
|
|
52393
|
+
font-weight: 500;
|
|
52394
|
+
color: ${props => props.isSelected ? props.color : '#999999'};
|
|
52395
|
+
line-height: 1;
|
|
52396
|
+
margin: 0;
|
|
52397
|
+
transition: color 0.2s ease-in-out;
|
|
52398
|
+
`;
|
|
52399
|
+
|
|
52400
|
+
const EventStatusCards = _ref => {
|
|
52401
|
+
let {
|
|
52402
|
+
statusData = [],
|
|
52403
|
+
onStatusToggle = () => {},
|
|
52404
|
+
disabled = false,
|
|
52405
|
+
width = "100%"
|
|
52406
|
+
} = _ref;
|
|
52407
|
+
// Default data structure if no data provided
|
|
52408
|
+
const defaultStatusData = [{
|
|
52409
|
+
status: "Pending",
|
|
52410
|
+
count: 0,
|
|
52411
|
+
checked: true,
|
|
52412
|
+
color: "#F5C9A7"
|
|
52413
|
+
}, {
|
|
52414
|
+
status: "Received",
|
|
52415
|
+
count: 0,
|
|
52416
|
+
checked: true,
|
|
52417
|
+
color: "#B9D5D5"
|
|
52418
|
+
}, {
|
|
52419
|
+
status: "Approved",
|
|
52420
|
+
count: 0,
|
|
52421
|
+
checked: true,
|
|
52422
|
+
color: "#BEDDC3"
|
|
52423
|
+
}, {
|
|
52424
|
+
status: "Cancelled",
|
|
52425
|
+
count: 0,
|
|
52426
|
+
checked: true,
|
|
52427
|
+
color: "#EBA6AF"
|
|
52428
|
+
}];
|
|
52429
|
+
const displayData = statusData.length > 0 ? statusData : defaultStatusData;
|
|
52430
|
+
const handleCardClick = status => {
|
|
52431
|
+
if (disabled) return;
|
|
52432
|
+
const updatedData = displayData.map(item => item.status === status ? {
|
|
52433
|
+
...item,
|
|
52434
|
+
checked: !item.checked
|
|
52435
|
+
} : item);
|
|
52436
|
+
const clickedItem = displayData.find(item => item.status === status);
|
|
52437
|
+
onStatusToggle(updatedData, status, !clickedItem.checked);
|
|
52438
|
+
};
|
|
52439
|
+
return /*#__PURE__*/React__default["default"].createElement(CardsContainer, {
|
|
52440
|
+
width: width,
|
|
52441
|
+
className: "EventStatusCardsContainer"
|
|
52442
|
+
}, displayData.map(item => {
|
|
52443
|
+
const {
|
|
52444
|
+
status,
|
|
52445
|
+
count,
|
|
52446
|
+
checked,
|
|
52447
|
+
color
|
|
52448
|
+
} = item;
|
|
52449
|
+
return /*#__PURE__*/React__default["default"].createElement(StatusCard, {
|
|
52450
|
+
key: status,
|
|
52451
|
+
className: `StatusCard StatusCard-${status}`,
|
|
52452
|
+
isSelected: checked,
|
|
52453
|
+
borderColor: color,
|
|
52454
|
+
disabled: disabled,
|
|
52455
|
+
onClick: () => handleCardClick(status),
|
|
52456
|
+
"data-testid": `status-card-${status.toLowerCase()}`
|
|
52457
|
+
}, /*#__PURE__*/React__default["default"].createElement(CardHeader, null, /*#__PURE__*/React__default["default"].createElement(Circle, {
|
|
52458
|
+
color: color
|
|
52459
|
+
}), /*#__PURE__*/React__default["default"].createElement(CardTitle, {
|
|
52460
|
+
isSelected: checked,
|
|
52461
|
+
color: color
|
|
52462
|
+
}, status), /*#__PURE__*/React__default["default"].createElement(Checkmark, {
|
|
52463
|
+
type: "checkbox",
|
|
52464
|
+
checked: checked,
|
|
52465
|
+
readOnly: true
|
|
52466
|
+
})), /*#__PURE__*/React__default["default"].createElement(CardContent, null, /*#__PURE__*/React__default["default"].createElement(StatusCount, {
|
|
52467
|
+
isSelected: checked,
|
|
52468
|
+
color: color
|
|
52469
|
+
}, count)));
|
|
52470
|
+
}));
|
|
52471
|
+
};
|
|
52472
|
+
EventStatusCards.propTypes = {
|
|
52473
|
+
/** Array of status objects with count, checked state, and color information */
|
|
52474
|
+
statusData: PropTypes.arrayOf(PropTypes.shape({
|
|
52475
|
+
status: PropTypes.oneOf(["Pending", "Received", "Approved", "Cancelled"]).isRequired,
|
|
52476
|
+
count: PropTypes.number.isRequired,
|
|
52477
|
+
checked: PropTypes.bool.isRequired,
|
|
52478
|
+
color: PropTypes.string.isRequired
|
|
52479
|
+
})),
|
|
52480
|
+
/** Callback function when status selection changes */
|
|
52481
|
+
onStatusToggle: PropTypes.func,
|
|
52482
|
+
/** Whether the cards are disabled */
|
|
52483
|
+
disabled: PropTypes.bool,
|
|
52484
|
+
/** Width of the entire cards container */
|
|
52485
|
+
width: PropTypes.string
|
|
52486
|
+
};
|
|
52487
|
+
|
|
52326
52488
|
exports.AreaChart = AreaChart;
|
|
52327
52489
|
exports.BannerEventBoxList = BannerEventBoxList;
|
|
52328
52490
|
exports.BarChart = BarChart;
|
|
@@ -52345,6 +52507,7 @@ exports.DownloadProgress = DownloadProgress;
|
|
|
52345
52507
|
exports.DropdownNew = DropdownNew;
|
|
52346
52508
|
exports.EventDetailsCard = EventDetailsCard;
|
|
52347
52509
|
exports.EventList = EventList;
|
|
52510
|
+
exports.EventStatusCards = EventStatusCards;
|
|
52348
52511
|
exports.Execute = Execute;
|
|
52349
52512
|
exports.FilterPanel = FilterPanel;
|
|
52350
52513
|
exports.FilterPop = FilterPop;
|
|
@@ -52366,6 +52529,7 @@ exports.PerformanceAnalyticsLegend = PerformanceAnalyticsLegend;
|
|
|
52366
52529
|
exports.PieChart = PieChart;
|
|
52367
52530
|
exports.PopupCharts = PopupCharts;
|
|
52368
52531
|
exports.QuickFilter = QuickFilter;
|
|
52532
|
+
exports.RangePicker = RangePicker;
|
|
52369
52533
|
exports.RangePop = RangePop;
|
|
52370
52534
|
exports.ReportTable = ReportTable;
|
|
52371
52535
|
exports.SearchInput = SearchInput;
|