sag_components 2.0.0-beta143 → 2.0.0-beta145

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
@@ -23,6 +23,7 @@ const ButtonContainer$3 = styled.div`
23
23
  align-content: center;
24
24
  width: ${props => props.width};
25
25
  height: ${props => props.height};
26
+ min-width: ${props => props.minWidth};
26
27
  `;
27
28
  const ButtonItem = styled.div`
28
29
  display: flex;
@@ -62,7 +63,7 @@ const Label$b = styled.label`
62
63
  pointer-events: none;
63
64
  user-select: none;
64
65
  `;
65
- const IconWrapper$6 = styled.div`
66
+ const IconWrapper$5 = styled.div`
66
67
  display: flex;
67
68
  align-items: center;
68
69
  justify-content: center;
@@ -488,6 +489,7 @@ const Button$1 = props => {
488
489
  size = "small",
489
490
  height = "",
490
491
  width = "",
492
+ minWidth = "unset",
491
493
  disabled = false,
492
494
  textColor = "",
493
495
  backgroundColor = "",
@@ -536,7 +538,7 @@ const Button$1 = props => {
536
538
  color: disabled ? disabledTextColor || "#B1B1B1" : hover ? hoverTextColor || (type === "secondary" ? "#229E38" : "#ffffff") : textColor || (type === "secondary" ? "#212121" : "#ffffff"),
537
539
  fill: disabled ? disabledTextColor || "#B1B1B1" : hover ? hoverTextColor || (type === "secondary" ? "#229E38" : "#ffffff") : textColor || (type === "secondary" ? "#212121" : "#ffffff")
538
540
  };
539
- return /*#__PURE__*/React$1.createElement(IconWrapper$6, null, /*#__PURE__*/React$1.createElement(IconComponent, iconProps));
541
+ return /*#__PURE__*/React$1.createElement(IconWrapper$5, null, /*#__PURE__*/React$1.createElement(IconComponent, iconProps));
540
542
  };
541
543
  const commonProps = {
542
544
  width: width || null,
@@ -557,7 +559,8 @@ const Button$1 = props => {
557
559
  return /*#__PURE__*/React$1.createElement(ButtonContainer$3, {
558
560
  className: "ButtonContainer",
559
561
  width: commonProps.width,
560
- height: commonProps.height
562
+ height: commonProps.height,
563
+ minWidth: minWidth
561
564
  }, isSubmitButton ? /*#__PURE__*/React$1.createElement(InputCommit, _extends$1({
562
565
  className: clicked ? "InputCommit-clicked" : "InputCommit",
563
566
  value: text,
@@ -3014,7 +3017,7 @@ const Label$a = styled.label`
3014
3017
  user-select: none;
3015
3018
  pointer-events: none;
3016
3019
  `;
3017
- const IconWrapper$5 = styled.div`
3020
+ const IconWrapper$4 = styled.div`
3018
3021
  display: flex;
3019
3022
  align-items: center;
3020
3023
  justify-content: center;
@@ -3138,7 +3141,7 @@ const LinkButton = _ref => {
3138
3141
  const color = disabled ? '#B1B1B1' : newTextColor;
3139
3142
  switch (icon.toLowerCase()) {
3140
3143
  case 'filter':
3141
- return /*#__PURE__*/React$1.createElement(IconWrapper$5, {
3144
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3142
3145
  className: "FilterIcon"
3143
3146
  }, /*#__PURE__*/React$1.createElement(FilterIcon$1, {
3144
3147
  height: iconHeight,
@@ -3146,7 +3149,7 @@ const LinkButton = _ref => {
3146
3149
  color: color
3147
3150
  }));
3148
3151
  case 'plus':
3149
- return /*#__PURE__*/React$1.createElement(IconWrapper$5, {
3152
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3150
3153
  className: "PlusIcon"
3151
3154
  }, /*#__PURE__*/React$1.createElement(PlusIcon, {
3152
3155
  height: "16",
@@ -3154,7 +3157,7 @@ const LinkButton = _ref => {
3154
3157
  color: color
3155
3158
  }));
3156
3159
  case 'options':
3157
- return /*#__PURE__*/React$1.createElement(IconWrapper$5, {
3160
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3158
3161
  className: "OptionsIcon"
3159
3162
  }, /*#__PURE__*/React$1.createElement(OptionsIcon, {
3160
3163
  height: iconHeight,
@@ -3162,7 +3165,7 @@ const LinkButton = _ref => {
3162
3165
  color: color
3163
3166
  }));
3164
3167
  case 'download':
3165
- return /*#__PURE__*/React$1.createElement(IconWrapper$5, {
3168
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3166
3169
  className: "DownloadIcon"
3167
3170
  }, /*#__PURE__*/React$1.createElement(DownloadIcon, {
3168
3171
  height: iconHeight,
@@ -3170,7 +3173,7 @@ const LinkButton = _ref => {
3170
3173
  color: color
3171
3174
  }));
3172
3175
  case 'document':
3173
- return /*#__PURE__*/React$1.createElement(IconWrapper$5, {
3176
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3174
3177
  className: "DocumentIcon"
3175
3178
  }, /*#__PURE__*/React$1.createElement(DocumentIcon, {
3176
3179
  height: iconHeight,
@@ -3178,7 +3181,7 @@ const LinkButton = _ref => {
3178
3181
  color: color
3179
3182
  }));
3180
3183
  case 'fly':
3181
- return /*#__PURE__*/React$1.createElement(IconWrapper$5, {
3184
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3182
3185
  className: "FlyIcon"
3183
3186
  }, /*#__PURE__*/React$1.createElement(FlyIcon, {
3184
3187
  height: iconHeight,
@@ -3186,7 +3189,7 @@ const LinkButton = _ref => {
3186
3189
  color: color
3187
3190
  }));
3188
3191
  case 'bell':
3189
- return /*#__PURE__*/React$1.createElement(IconWrapper$5, {
3192
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3190
3193
  className: "BellIcon"
3191
3194
  }, /*#__PURE__*/React$1.createElement(BellIcon, {
3192
3195
  height: iconHeight,
@@ -3194,7 +3197,7 @@ const LinkButton = _ref => {
3194
3197
  color: color
3195
3198
  }));
3196
3199
  case 'maintenance':
3197
- return /*#__PURE__*/React$1.createElement(IconWrapper$5, {
3200
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3198
3201
  className: "MaintenanceIcon"
3199
3202
  }, /*#__PURE__*/React$1.createElement(MaintenanceIcon, {
3200
3203
  height: iconHeight,
@@ -3202,7 +3205,7 @@ const LinkButton = _ref => {
3202
3205
  color: color
3203
3206
  }));
3204
3207
  case 'exit':
3205
- return /*#__PURE__*/React$1.createElement(IconWrapper$5, {
3208
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3206
3209
  className: "ExitIcon"
3207
3210
  }, /*#__PURE__*/React$1.createElement(ExitIcon, {
3208
3211
  height: iconHeight,
@@ -3210,7 +3213,7 @@ const LinkButton = _ref => {
3210
3213
  color: color
3211
3214
  }));
3212
3215
  case 'eye':
3213
- return /*#__PURE__*/React$1.createElement(IconWrapper$5, {
3216
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3214
3217
  className: "EyeIcon"
3215
3218
  }, /*#__PURE__*/React$1.createElement(EyeIcon, {
3216
3219
  height: iconHeight,
@@ -3218,7 +3221,7 @@ const LinkButton = _ref => {
3218
3221
  color: color
3219
3222
  }));
3220
3223
  case 'arrowdown':
3221
- return /*#__PURE__*/React$1.createElement(IconWrapper$5, {
3224
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3222
3225
  className: "ArrowDownIcon"
3223
3226
  }, /*#__PURE__*/React$1.createElement(MenuItemOpenIcon, {
3224
3227
  height: iconHeight,
@@ -3226,7 +3229,7 @@ const LinkButton = _ref => {
3226
3229
  color: color
3227
3230
  }));
3228
3231
  case 'arrowright':
3229
- return /*#__PURE__*/React$1.createElement(IconWrapper$5, {
3232
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3230
3233
  className: "ArrowRightIcon"
3231
3234
  }, /*#__PURE__*/React$1.createElement(MenuItemRightIcon, {
3232
3235
  height: iconHeight,
@@ -3234,7 +3237,7 @@ const LinkButton = _ref => {
3234
3237
  color: color
3235
3238
  }));
3236
3239
  case 'select':
3237
- return /*#__PURE__*/React$1.createElement(IconWrapper$5, {
3240
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3238
3241
  className: "SelectRightIcon"
3239
3242
  }, /*#__PURE__*/React$1.createElement(ArrowSelectIcon, {
3240
3243
  height: "16px",
@@ -3242,7 +3245,7 @@ const LinkButton = _ref => {
3242
3245
  color: color
3243
3246
  }));
3244
3247
  case 'info':
3245
- return /*#__PURE__*/React$1.createElement(IconWrapper$5, {
3248
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3246
3249
  className: "InfoIcon"
3247
3250
  }, /*#__PURE__*/React$1.createElement(InfoIcon, {
3248
3251
  height: iconHeight,
@@ -3532,7 +3535,7 @@ const TextFieldContainer = styled.div`
3532
3535
  position: relative;
3533
3536
  width: ${props => props.width};
3534
3537
  `;
3535
- const IconWrapper$4 = styled.div`
3538
+ const IconWrapper$3 = styled.div`
3536
3539
  position: absolute;
3537
3540
  top: 50%;
3538
3541
  transform: translateY(-50%);
@@ -3576,7 +3579,7 @@ const SearchInput = props => {
3576
3579
  return /*#__PURE__*/React$1.createElement(TextFieldContainer, {
3577
3580
  className: className,
3578
3581
  width: width
3579
- }, /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3582
+ }, /*#__PURE__*/React$1.createElement(IconWrapper$3, {
3580
3583
  position: position
3581
3584
  }, /*#__PURE__*/React$1.createElement(SearchIcon, {
3582
3585
  color: iconColor
@@ -13076,11 +13079,11 @@ const ModalHeader$2 = styled.div`
13076
13079
  justify-content: space-between;
13077
13080
  margin-bottom: 32px;
13078
13081
  `;
13079
- const ModalBody$2 = styled.div`
13082
+ const ModalBody$1 = styled.div`
13080
13083
  ${scrollableStyles$a}
13081
13084
  max-height: 80vh;
13082
13085
  `;
13083
- const ModalTitle$3 = styled.h5`
13086
+ const ModalTitle$2 = styled.h5`
13084
13087
  font-family: 'Poppins', sans-serif;
13085
13088
  font-size: 32px;
13086
13089
  font-weight: 500;
@@ -13112,12 +13115,12 @@ const DialogOverlay$1 = props => {
13112
13115
  };
13113
13116
  return /*#__PURE__*/React.createElement(ModalWrapper$1, {
13114
13117
  className: className
13115
- }, /*#__PURE__*/React.createElement(Modal$1, null, /*#__PURE__*/React.createElement(ModalHeader$2, null, /*#__PURE__*/React.createElement(ModalTitle$3, null, title), /*#__PURE__*/React.createElement(ModalClose, {
13118
+ }, /*#__PURE__*/React.createElement(Modal$1, null, /*#__PURE__*/React.createElement(ModalHeader$2, null, /*#__PURE__*/React.createElement(ModalTitle$2, null, title), /*#__PURE__*/React.createElement(ModalClose, {
13116
13119
  type: "button",
13117
13120
  onClick: closeModal
13118
13121
  }, /*#__PURE__*/React.createElement(CloseXIcon, {
13119
13122
  fill: "white"
13120
- }))), /*#__PURE__*/React.createElement(ModalBody$2, {
13123
+ }))), /*#__PURE__*/React.createElement(ModalBody$1, {
13121
13124
  id: "modalBody"
13122
13125
  }, children)));
13123
13126
  };
@@ -27209,7 +27212,7 @@ const scrollableStyles$6 = `
27209
27212
  }
27210
27213
  `;
27211
27214
  const MainContainer$1 = styled.div``;
27212
- const ModalOverlay$2 = styled.div`
27215
+ const ModalOverlay$1 = styled.div`
27213
27216
  position: fixed;
27214
27217
  z-index: 100;
27215
27218
  top: 0;
@@ -27451,7 +27454,7 @@ const PopupCharts = props => {
27451
27454
  }, displayChart(item)));
27452
27455
  return /*#__PURE__*/React$1.createElement(MainContainer$1, {
27453
27456
  id: "MainContainer"
27454
- }, IsPopupChartsOpen && /*#__PURE__*/React$1.createElement(ModalOverlay$2, {
27457
+ }, IsPopupChartsOpen && /*#__PURE__*/React$1.createElement(ModalOverlay$1, {
27455
27458
  id: "ModalOverlay",
27456
27459
  className: "modal-overlay"
27457
27460
  }, /*#__PURE__*/React$1.createElement(ModalContent$2, {
@@ -33833,7 +33836,7 @@ const Header$3 = styled.div`
33833
33836
  align-items: flex-start;
33834
33837
  }
33835
33838
  `;
33836
- const CloseButton$2 = styled.button`
33839
+ const CloseButton$1 = styled.button`
33837
33840
  position: absolute;
33838
33841
  top: -10px;
33839
33842
  right: 0px;
@@ -34034,7 +34037,7 @@ const InsightsCarousel = _ref => {
34034
34037
  $titleColor: titleColor
34035
34038
  }, /*#__PURE__*/React$1.cloneElement(icon, {
34036
34039
  fill: iconColor
34037
- }), title), /*#__PURE__*/React$1.createElement(CloseButton$2, {
34040
+ }), title), /*#__PURE__*/React$1.createElement(CloseButton$1, {
34038
34041
  onClick: () => onClose?.({
34039
34042
  label: "closeCarousel"
34040
34043
  }),
@@ -34359,12 +34362,12 @@ const ModalButtons = styled.div`
34359
34362
  display: flex;
34360
34363
  gap: 10px;
34361
34364
  `;
34362
- const ModalTitle$2 = styled.h3`
34365
+ const ModalTitle$1 = styled.h3`
34363
34366
  margin: 0;
34364
34367
  font-size: 24px;
34365
34368
  font-weight: 500;
34366
34369
  `;
34367
- const ModalBody$1 = styled.div`
34370
+ const ModalBody = styled.div`
34368
34371
  width: 100%;
34369
34372
  height: 100%;
34370
34373
  `;
@@ -34417,7 +34420,7 @@ const ModalWithOverlay = props => {
34417
34420
  }
34418
34421
  }, /*#__PURE__*/React$1.createElement(ModalHeader$1, {
34419
34422
  className: "modal-header"
34420
- }, /*#__PURE__*/React$1.createElement(ModalTitle$2, null, title), /*#__PURE__*/React$1.createElement(ModalButtons, {
34423
+ }, /*#__PURE__*/React$1.createElement(ModalTitle$1, null, title), /*#__PURE__*/React$1.createElement(ModalButtons, {
34421
34424
  className: "modal-buttons"
34422
34425
  }, showCancelButton && /*#__PURE__*/React$1.createElement(Button$1, {
34423
34426
  size: "medium",
@@ -34464,7 +34467,7 @@ const ModalWithOverlay = props => {
34464
34467
  backgroundColor: okButtonColor,
34465
34468
  hoverBorderColor: okButtonHoverBackgroundColor,
34466
34469
  hoverBackgroundColor: okButtonHoverBackgroundColor
34467
- })))), /*#__PURE__*/React$1.createElement(ModalBody$1, {
34470
+ })))), /*#__PURE__*/React$1.createElement(ModalBody, {
34468
34471
  className: "modal-body"
34469
34472
  }, children)));
34470
34473
  };
@@ -35039,7 +35042,7 @@ function FaEyeSlash (props) {
35039
35042
  return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 640 512"},"child":[{"tag":"path","attr":{"d":"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},"child":[]}]})(props);
35040
35043
  }
35041
35044
 
35042
- const IconWrapper$3 = styled.div`
35045
+ const IconWrapper$2 = styled.div`
35043
35046
  display: flex;
35044
35047
  align-items: center;
35045
35048
  justify-content: center;
@@ -35055,7 +35058,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35055
35058
  const newColor = disabled ? '#D0D0D0' : color || '#212121';
35056
35059
  switch (icon.toLowerCase()) {
35057
35060
  case 'filter':
35058
- return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
35061
+ return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
35059
35062
  className: "FilterIcon",
35060
35063
  pointer: pointer,
35061
35064
  disabled: disabled,
@@ -35067,7 +35070,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35067
35070
  onClick: callBackOnClick
35068
35071
  }));
35069
35072
  case 'options':
35070
- return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
35073
+ return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
35071
35074
  className: "OptionsIcon",
35072
35075
  pointer: pointer,
35073
35076
  disabled: disabled,
@@ -35079,7 +35082,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35079
35082
  onClick: callBackOnClick
35080
35083
  }));
35081
35084
  case 'download':
35082
- return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
35085
+ return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
35083
35086
  className: "DownloadIcon",
35084
35087
  pointer: pointer,
35085
35088
  disabled: disabled,
@@ -35091,7 +35094,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35091
35094
  onClick: callBackOnClick
35092
35095
  }));
35093
35096
  case 'document':
35094
- return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
35097
+ return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
35095
35098
  className: "DocumentIcon",
35096
35099
  pointer: pointer,
35097
35100
  disabled: disabled,
@@ -35103,7 +35106,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35103
35106
  onClick: callBackOnClick
35104
35107
  }));
35105
35108
  case 'fly':
35106
- return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
35109
+ return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
35107
35110
  className: "FlyIcon",
35108
35111
  pointer: pointer,
35109
35112
  disabled: disabled,
@@ -35115,7 +35118,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35115
35118
  onClick: callBackOnClick
35116
35119
  }));
35117
35120
  case 'bell':
35118
- return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
35121
+ return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
35119
35122
  className: "BellIcon",
35120
35123
  pointer: pointer,
35121
35124
  disabled: disabled,
@@ -35127,7 +35130,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35127
35130
  onClick: callBackOnClick
35128
35131
  }));
35129
35132
  case 'maintenance':
35130
- return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
35133
+ return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
35131
35134
  className: "MaintenanceIcon",
35132
35135
  pointer: pointer,
35133
35136
  disabled: disabled,
@@ -35139,7 +35142,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35139
35142
  onClick: callBackOnClick
35140
35143
  }));
35141
35144
  case 'exit':
35142
- return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
35145
+ return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
35143
35146
  className: "ExitIcon",
35144
35147
  pointer: pointer,
35145
35148
  disabled: disabled,
@@ -35151,7 +35154,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35151
35154
  onClick: callBackOnClick
35152
35155
  }));
35153
35156
  case 'eye':
35154
- return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
35157
+ return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
35155
35158
  className: "EyeIcon",
35156
35159
  pointer: pointer,
35157
35160
  disabled: disabled,
@@ -35163,7 +35166,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35163
35166
  onClick: callBackOnClick
35164
35167
  }));
35165
35168
  case 'search':
35166
- return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
35169
+ return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
35167
35170
  className: "SearchIcon",
35168
35171
  pointer: pointer,
35169
35172
  disabled: disabled,
@@ -35288,7 +35291,7 @@ const ErrorMessage = styled.div`
35288
35291
  margin-top: 5px;
35289
35292
  max-width: ${props => props.width || '300px'};
35290
35293
  `;
35291
- const IconWrapper$2 = styled.div`
35294
+ const IconWrapper$1 = styled.div`
35292
35295
  display: flex;
35293
35296
  align-items: center;
35294
35297
  justify-content: center;
@@ -35383,7 +35386,7 @@ const Input$2 = _ref => {
35383
35386
  const getPasswordIcon = () => {
35384
35387
  if (!password) return '';
35385
35388
  if (showPassword) {
35386
- return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
35389
+ return /*#__PURE__*/React$1.createElement(IconWrapper$1, {
35387
35390
  className: "passwordEyeSlash",
35388
35391
  disabled: disabled,
35389
35392
  onClick: toggleShowPassword
@@ -35600,7 +35603,7 @@ ToggleSwitch.propTypes = {
35600
35603
  const TableWrapper$1 = styled.div`
35601
35604
  width: ${props => props.width};
35602
35605
  height: ${props => props.height};
35603
- padding: 20px;
35606
+ padding: ${props => props.padding};
35604
35607
  background-color: #fff;
35605
35608
  box-sizing: border-box;
35606
35609
  position: relative;
@@ -35635,6 +35638,7 @@ const ContainerTable = props => {
35635
35638
  columnsWidths = [430, 105, 210, 175, 148, 185, 104, 104, 140, 50, 50],
35636
35639
  standardCellSkeletonHeight = 22,
35637
35640
  isLoading = true,
35641
+ padding = '20px',
35638
35642
  children
35639
35643
  } = props;
35640
35644
  const TableWrapperRef = useRef(null);
@@ -35667,7 +35671,8 @@ const ContainerTable = props => {
35667
35671
  return /*#__PURE__*/React$1.createElement(TableWrapper$1, {
35668
35672
  ref: TableWrapperRef,
35669
35673
  width: width,
35670
- height: height
35674
+ height: height,
35675
+ padding: padding
35671
35676
  }, isLoading ? /*#__PURE__*/React$1.createElement(SkeletonTheme, {
35672
35677
  baseColor: "#EAEAEA",
35673
35678
  highlightColor: "#F5F5F5"
@@ -36282,7 +36287,7 @@ const scrollableStyles$1 = `
36282
36287
  const TableWrapper = styled.div`
36283
36288
  width: ${props => props.width};
36284
36289
  height: ${props => props.height};
36285
- background-color: #fff;
36290
+ background-color: ${props => props.backgroundColor};
36286
36291
  box-sizing: border-box;
36287
36292
  font-family: 'Poppins', sans-serif;
36288
36293
  `;
@@ -38322,85 +38327,6 @@ const StatusCellCircle = styled.div`
38322
38327
  border: 1px solid white;
38323
38328
  background-color: ${props => props.backgroundColor};
38324
38329
  `;
38325
-
38326
- // CommentModal.styles.js
38327
- const ModalOverlay$1 = styled.div`
38328
- position: fixed;
38329
- top: 0;
38330
- left: 0;
38331
- right: 0;
38332
- bottom: 0;
38333
- background-color: rgba(0, 0, 0, 0.5);
38334
- display: flex;
38335
- align-items: center;
38336
- justify-content: center;
38337
- z-index: 1000;
38338
- `;
38339
- const ModalContent = styled.div`
38340
- background: white;
38341
- border-radius: 12px;
38342
- width: 90%;
38343
- max-width: 500px;
38344
- max-height: 400px;
38345
- display: flex;
38346
- flex-direction: column;
38347
- box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
38348
- animation: slideUp 0.3s ease-out;
38349
-
38350
- @keyframes slideUp {
38351
- from {
38352
- opacity: 0;
38353
- transform: translateY(20px) scale(0.95);
38354
- }
38355
- to {
38356
- opacity: 1;
38357
- transform: translateY(0) scale(1);
38358
- }
38359
- }
38360
- `;
38361
- const ModalHeader = styled.div`
38362
- display: flex;
38363
- justify-content: space-between;
38364
- align-items: center;
38365
- padding: 12px 24px;
38366
- border-bottom: 1px solid #D9D9D9;
38367
- flex-shrink: 0;
38368
- `;
38369
- const ModalTitle$1 = styled.h5`
38370
- font-family: "Poppins", sans-serif;
38371
- font-size: 18px;
38372
- font-weight: 600;
38373
- color: #212121;
38374
- margin: 0;
38375
- `;
38376
- const CloseButton$1 = styled.button`
38377
- background: none;
38378
- border: none;
38379
- padding: 8px;
38380
- cursor: pointer;
38381
- color: #6b7280;
38382
- border-radius: 6px;
38383
- transition: all 0.2s ease;
38384
- display: flex;
38385
- align-items: center;
38386
- justify-content: center;
38387
-
38388
- &:hover {
38389
- background-color: #f3f4f6;
38390
- color: #374151;
38391
- }
38392
-
38393
- &:active {
38394
- transform: scale(0.95);
38395
- }
38396
- `;
38397
- const ModalBody = styled.div`
38398
- padding: 20px 24px 24px;
38399
- flex: 1;
38400
- display: flex;
38401
- flex-direction: column;
38402
- overflow: hidden;
38403
- `;
38404
38330
  const TextareaWrapper = styled.div`
38405
38331
  position: relative;
38406
38332
  display: flex;
@@ -38484,121 +38410,141 @@ const CharacterCount = styled.div`
38484
38410
  text-align: right;
38485
38411
  transition: color 0.2s ease;
38486
38412
  `;
38487
- const ModalBottom = styled.div`
38488
- padding: 16px 24px;
38489
- border-top: 1px solid #D9D9D9;
38413
+
38414
+ // MessageBox.styles.js
38415
+ const ModalOverlay = styled.div`
38416
+ position: fixed;
38417
+ top: 0;
38418
+ left: 0;
38419
+ width: 100%;
38420
+ height: 100%;
38421
+ background-color: rgba(0, 0, 0, 0.5);
38422
+ display: flex;
38423
+ justify-content: center;
38424
+ align-items: center;
38425
+ z-index: 1000;
38426
+ font-family: 'Poppins', sans-serif;
38427
+ `;
38428
+ const ModalContainer = styled.div`
38429
+ background-color: white;
38430
+ border-radius: 12px;
38431
+ width: ${props => props.$width || '400px'};
38432
+ height: ${props => props.$height || 'auto'};
38433
+ position: relative;
38434
+ font-family: 'Poppins', sans-serif;
38435
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
38436
+ `;
38437
+ const CloseButton = styled.button`
38438
+ background: none;
38439
+ border: none;
38440
+ padding: 8px;
38441
+ cursor: pointer;
38442
+ color: #6b7280;
38443
+ border-radius: 6px;
38444
+ transition: all 0.2s ease;
38490
38445
  display: flex;
38491
- gap: 16px;
38492
- justify-content: flex-end;
38493
38446
  align-items: center;
38494
- `;
38447
+ justify-content: center;
38495
38448
 
38496
- const CommentModal = props => {
38497
- const {
38498
- isOpen,
38499
- onClose,
38500
- onSave,
38501
- maxLength = 150,
38502
- color = "#066768",
38503
- saveButtonHoverColor = "#388586",
38504
- initialValue = ''
38505
- } = props;
38506
- const [commentText, setCommentText] = useState('');
38507
- const [isFocused, setIsFocused] = useState(false);
38508
- const [hasUserInteracted, setHasUserInteracted] = useState(false); // Track if user has started typing
38509
- const [hasInitialValue, setHasInitialValue] = useState(false); // Track if there was initial text
38449
+ &:hover {
38450
+ background-color: #f3f4f6;
38451
+ color: #374151;
38452
+ }
38510
38453
 
38511
- // Update comment text when modal opens with initial value
38512
- useEffect(() => {
38513
- if (isOpen) {
38514
- const initialText = initialValue || '';
38515
- setCommentText(initialText);
38516
- setHasInitialValue(Boolean(initialText.trim())); // Check if there's actual content
38517
- setHasUserInteracted(false); // Reset interaction state
38518
- }
38519
- }, [isOpen, initialValue]);
38454
+ &:active {
38455
+ transform: scale(0.95);
38456
+ }
38457
+ `;
38458
+ const ModalHeader = styled.div`
38459
+ display: flex;
38460
+ justify-content: space-between;
38461
+ align-items: center;
38462
+ padding: 12px 24px;
38463
+ flex-shrink: 0;
38464
+ `;
38465
+ const ModalTitle = styled.h5`
38466
+ font-family: "Poppins", sans-serif;
38467
+ font-size: 18px;
38468
+ font-weight: 600;
38469
+ color: #212121;
38470
+ margin: 0;
38471
+ `;
38472
+ const ModalContent = styled.div`
38473
+ padding: 24px;
38474
+ border-top: ${props => props.showBorders ? '1px solid #D9D9D9' : 'none'};
38475
+ border-bottom: ${props => props.showBorders ? '1px solid #D9D9D9' : 'none'};
38476
+ `;
38477
+ const ButtonContainer$1 = styled.div`
38478
+ display: flex;
38479
+ gap: 16px;
38480
+ justify-content: flex-end;
38481
+ padding: 16px 24px;
38482
+ `;
38483
+
38484
+ // MessageBox.jsx
38485
+ const MessageBox = _ref => {
38486
+ let {
38487
+ isOpen = true,
38488
+ isDisabled = false,
38489
+ onClose = () => {},
38490
+ onConfirm = () => {},
38491
+ title = "Title",
38492
+ primaryText = "Confirm",
38493
+ secondaryText = "Cancel",
38494
+ width = "400px",
38495
+ height = "auto",
38496
+ color = "#F00021",
38497
+ hoverColor = "#ff7875",
38498
+ secondaryColor = "#ffffff",
38499
+ seperateSectionBorder = false,
38500
+ children
38501
+ } = _ref;
38520
38502
  if (!isOpen) return null;
38521
- const handleTextChange = e => {
38522
- const text = e.target.value;
38523
- if (text.length <= maxLength) {
38524
- setCommentText(text);
38525
- if (!hasUserInteracted) {
38526
- setHasUserInteracted(true); // Mark that user has started interacting
38527
- }
38528
- }
38529
- };
38530
38503
  const handleOverlayClick = e => {
38531
38504
  if (e.target === e.currentTarget) {
38532
38505
  onClose();
38533
38506
  }
38534
38507
  };
38535
- const handleSave = () => {
38536
- if (onSave) {
38537
- onSave(commentText);
38538
- }
38539
- // Don't clear the text here - let the parent handle closing
38540
- };
38541
- const handleClose = () => {
38542
- setCommentText('');
38543
- setHasUserInteracted(false);
38544
- setHasInitialValue(false);
38545
- onClose();
38546
- };
38547
- const handleFocus = () => {
38548
- setIsFocused(true);
38549
- };
38550
- const handleBlur = () => {
38551
- setIsFocused(false);
38552
- };
38553
-
38554
- // Determine if save button should be enabled
38555
- const isSaveEnabled = hasUserInteracted && (commentText.length > 0 || hasInitialValue);
38556
- return /*#__PURE__*/React$1.createElement(ModalOverlay$1, {
38508
+ return /*#__PURE__*/React$1.createElement(ModalOverlay, {
38557
38509
  onClick: handleOverlayClick
38558
- }, /*#__PURE__*/React$1.createElement(ModalContent, null, /*#__PURE__*/React$1.createElement(ModalHeader, null, /*#__PURE__*/React$1.createElement(ModalTitle$1, null, "Add Comment"), /*#__PURE__*/React$1.createElement(CloseButton$1, {
38559
- onClick: handleClose
38560
- }, /*#__PURE__*/React$1.createElement("svg", {
38561
- width: "24",
38562
- height: "24",
38563
- viewBox: "0 0 24 24",
38564
- fill: "none"
38565
- }, /*#__PURE__*/React$1.createElement("path", {
38566
- d: "M18 6L6 18M6 6l12 12",
38567
- stroke: "currentColor",
38568
- strokeWidth: "2",
38569
- strokeLinecap: "round",
38570
- strokeLinejoin: "round"
38571
- })))), /*#__PURE__*/React$1.createElement(ModalBody, null, /*#__PURE__*/React$1.createElement(TextareaWrapper, null, (commentText.length > 0 || isFocused) && /*#__PURE__*/React$1.createElement(TextareaLabel, {
38572
- color: color
38573
- }, "Comment"), /*#__PURE__*/React$1.createElement(CommentTextarea, {
38574
- value: commentText,
38575
- onChange: handleTextChange,
38576
- placeholder: "Type a Comment...",
38577
- maxLength: maxLength,
38578
- color: color,
38579
- $hasValue: commentText.length > 0,
38580
- onBlur: handleBlur,
38581
- onFocus: handleFocus
38582
- }), /*#__PURE__*/React$1.createElement(CharacterCount, null, commentText.length, "/", maxLength))), /*#__PURE__*/React$1.createElement(ModalBottom, null, /*#__PURE__*/React$1.createElement(Button$1, {
38583
- text: "Cancel",
38584
- type: "secondary",
38510
+ }, /*#__PURE__*/React$1.createElement(ModalContainer, {
38511
+ $width: width,
38512
+ $height: height
38513
+ }, /*#__PURE__*/React$1.createElement(ModalHeader, null, /*#__PURE__*/React$1.createElement(ModalTitle, null, title), /*#__PURE__*/React$1.createElement(CloseButton, {
38514
+ onClick: onClose
38515
+ }, /*#__PURE__*/React$1.createElement(CloseXIcon, null))), /*#__PURE__*/React$1.createElement(ModalContent, {
38516
+ showBorders: seperateSectionBorder
38517
+ }, children), /*#__PURE__*/React$1.createElement(ButtonContainer$1, null, /*#__PURE__*/React$1.createElement(Button$1, {
38518
+ text: secondaryText,
38585
38519
  size: "medium",
38586
- borderColor: "#D3D3D3",
38587
- hoverTextColor: "#212121",
38588
- hoverBackgroundColor: "#E6F0F0",
38589
- hoverBorderColor: "#D3D3D3",
38590
- onClick: handleClose
38520
+ borderColor: "#B1B1B1",
38521
+ hoverTextColor: color,
38522
+ hoverBackgroundColor: secondaryColor,
38523
+ hoverBorderColor: color,
38524
+ textColor: "#212121",
38525
+ backgroundColor: "white",
38526
+ disabledTextColor: "",
38527
+ disabledBackgroundColor: "",
38528
+ disabledBorderColor: "",
38529
+ width: "auto",
38530
+ minWidth: "60px",
38531
+ onClick: onClose
38591
38532
  }), /*#__PURE__*/React$1.createElement(Button$1, {
38592
- text: "Save",
38533
+ text: primaryText,
38593
38534
  size: "medium",
38594
- disabled: !isSaveEnabled,
38595
- hoverTextColor: "#ffffff",
38596
- disabledTextColor: "#ffffff",
38597
- borderColor: color,
38598
38535
  backgroundColor: color,
38599
- hoverBorderColor: saveButtonHoverColor,
38600
- hoverBackgroundColor: saveButtonHoverColor,
38601
- onClick: handleSave
38536
+ textColor: "white",
38537
+ borderColor: color,
38538
+ hoverTextColor: "white",
38539
+ hoverBackgroundColor: hoverColor,
38540
+ hoverBorderColor: hoverColor,
38541
+ disabled: isDisabled,
38542
+ disabledTextColor: "white",
38543
+ disabledBackgroundColor: "#E9E9E9",
38544
+ disabledBorderColor: "#E9E9E9",
38545
+ width: "auto",
38546
+ minWidth: "60px",
38547
+ onClick: onConfirm
38602
38548
  }))));
38603
38549
  };
38604
38550
 
@@ -38690,9 +38636,11 @@ const TableBody = ({
38690
38636
  onRowClick,
38691
38637
  onSendClick,
38692
38638
  buttonColor,
38693
- onDeleteClick,
38639
+ buttonHoverColor,
38694
38640
  selectedColor,
38695
- resetFocus = false,
38641
+ onDeleteClick,
38642
+ resetFocusIndex,
38643
+ changeFocusIndex,
38696
38644
  onFocusChange,
38697
38645
  indexToShimmer = 0,
38698
38646
  statuses = [{
@@ -38709,31 +38657,37 @@ const TableBody = ({
38709
38657
  palette: ['#EBA6AF', '#8B1538']
38710
38658
  }],
38711
38659
  onCommentSave = () => {},
38660
+ commentTextLimit = 150,
38712
38661
  ref = null
38713
38662
  }) => {
38714
38663
  const [hoveredRowIndex, setHoveredRowIndex] = useState(null);
38715
38664
  const [focusedRowIndex, setFocusedRowIndex] = useState(null);
38716
38665
  const [isCommentModalOpen, setIsCommentModalOpen] = useState(false);
38717
- const [currentCommentRow, setCurrentCommentRow] = useState(null); // Track which row is being edited
38718
-
38719
- // Expose methods to parent components via ref (if ref is provided)
38720
- // useImperativeHandle(ref, () => ({
38721
- // clearFocus: () => setFocusedRowIndex(null),
38722
- // getFocusedRowIndex: () => focusedRowIndex
38723
- // }), [focusedRowIndex]);
38666
+ const [currentCommentRow, setCurrentCommentRow] = useState(null);
38724
38667
 
38668
+ // TextArea logic states
38669
+ const [commentText, setCommentText] = useState('');
38670
+ const [isFocused, setIsFocused] = useState(false);
38671
+ const [hasUserInteracted, setHasUserInteracted] = useState(false);
38672
+ const [hasInitialValue, setHasInitialValue] = useState(false);
38725
38673
  useEffect(() => {
38726
- if (resetFocus) {
38674
+ if (isCommentModalOpen && currentCommentRow !== null) {
38675
+ const initialText = data[currentCommentRow]?.Comments || '';
38676
+ setCommentText(initialText);
38677
+ setHasInitialValue(Boolean(initialText.trim()));
38678
+ setHasUserInteracted(false);
38679
+ }
38680
+ }, [isCommentModalOpen, currentCommentRow, data]);
38681
+ useEffect(() => {
38682
+ if (resetFocusIndex) {
38727
38683
  setFocusedRowIndex(null);
38728
38684
  }
38729
- }, [resetFocus]);
38730
-
38731
- // Notify parent of focus changes
38732
- // useEffect(() => {
38733
- // if (onFocusChange) {
38734
- // onFocusChange(focusedRowIndex);
38735
- // }
38736
- // }, [focusedRowIndex, onFocusChange]);
38685
+ }, [resetFocusIndex]);
38686
+ useEffect(() => {
38687
+ if (changeFocusIndex) {
38688
+ setFocusedRowIndex(changeFocusIndex);
38689
+ }
38690
+ }, [changeFocusIndex]);
38737
38691
 
38738
38692
  // Handle row click for focus state
38739
38693
  const handleRowClick = (row, rowIndex) => {
@@ -38743,21 +38697,43 @@ const TableBody = ({
38743
38697
  }
38744
38698
  };
38745
38699
 
38700
+ // TextArea handlers
38701
+ const handleTextChange = e => {
38702
+ const text = e.target.value;
38703
+ if (text.length <= commentTextLimit) {
38704
+ setCommentText(text);
38705
+ if (!hasUserInteracted) {
38706
+ setHasUserInteracted(true);
38707
+ }
38708
+ }
38709
+ };
38710
+ const handleFocus = () => {
38711
+ setIsFocused(true);
38712
+ };
38713
+ const handleBlur = () => {
38714
+ setIsFocused(false);
38715
+ };
38716
+
38746
38717
  // Handle comment save
38747
- const handleCommentSave = commentText => {
38718
+ const handleCommentSave = () => {
38748
38719
  if (currentCommentRow !== null) {
38749
38720
  onCommentSave(currentCommentRow, commentText);
38750
38721
  }
38751
- setCurrentCommentRow(null);
38752
- setIsCommentModalOpen(false);
38722
+ handleCommentModalClose();
38753
38723
  };
38754
38724
 
38755
38725
  // Handle comment modal close
38756
38726
  const handleCommentModalClose = () => {
38727
+ setCommentText('');
38728
+ setHasUserInteracted(false);
38729
+ setHasInitialValue(false);
38757
38730
  setCurrentCommentRow(null);
38758
38731
  setIsCommentModalOpen(false);
38759
38732
  };
38760
38733
 
38734
+ // Determine if save button should be enabled
38735
+ const isSaveEnabled = hasUserInteracted && (commentText.length > 0 || hasInitialValue);
38736
+
38761
38737
  // Function to calculate tooltip height based on text length
38762
38738
  const calculateTooltipOffset = (text, isRegularCell = false) => {
38763
38739
  if (!text) return {
@@ -38902,11 +38878,11 @@ const TableBody = ({
38902
38878
  backgroundColor: palette0
38903
38879
  }), /*#__PURE__*/React$1.createElement("span", null, value));
38904
38880
  case 'comments':
38905
- const commentText = value || '';
38906
- const hasComments = commentText.trim().length > 0;
38881
+ const commentTextValue = value || '';
38882
+ const hasComments = commentTextValue.trim().length > 0;
38907
38883
 
38908
38884
  // Truncate tooltip text if longer than 150 characters
38909
- const commentTooltipText = commentText.length > 150 ? commentText.substring(0, 147) + '...' : commentText;
38885
+ const commentTooltipText = commentTextValue.length > 150 ? commentTextValue.substring(0, 147) + '...' : commentTextValue;
38910
38886
  return /*#__PURE__*/React$1.createElement(CommentIconWrapper, {
38911
38887
  $buttonColor: buttonColor,
38912
38888
  ref: el => {
@@ -38942,7 +38918,7 @@ const TableBody = ({
38942
38918
  }
38943
38919
  }, /*#__PURE__*/React$1.createElement(CommentIcon, {
38944
38920
  showCircle: hasComments,
38945
- circleColor: "#066768"
38921
+ circleColor: buttonColor
38946
38922
  }));
38947
38923
  case 'trash':
38948
38924
  // Only show trash icon when row is hovered
@@ -38989,7 +38965,7 @@ const TableBody = ({
38989
38965
  el.style.setProperty('--tooltip-left', `${rect.left}px`);
38990
38966
  el.style.setProperty('--tooltip-width', `${rect.width}px`);
38991
38967
  el.style.setProperty('--tooltip-offset', `${offset}px`);
38992
- el.style.setProperty('--tooltip-height', `${height}px`);
38968
+ el.style.setProperty('--tooltip-height', `${offset}px`);
38993
38969
  el.setAttribute('data-tooltip', trashTooltipText);
38994
38970
  }
38995
38971
  }
@@ -39041,12 +39017,31 @@ const TableBody = ({
39041
39017
  $minWidth: column.minWidth,
39042
39018
  $maxWidth: column.maxWidth
39043
39019
  }, formattedValue);
39044
- })))), /*#__PURE__*/React$1.createElement(CommentModal, {
39020
+ })))), /*#__PURE__*/React$1.createElement(MessageBox, {
39021
+ title: "Add Comment",
39045
39022
  isOpen: isCommentModalOpen,
39046
39023
  onClose: handleCommentModalClose,
39047
- onSave: handleCommentSave,
39048
- initialValue: currentCommentRow !== null ? data[currentCommentRow]?.Comments || '' : ''
39049
- }));
39024
+ onConfirm: handleCommentSave,
39025
+ isDisabled: !isSaveEnabled,
39026
+ seperateSectionBorder: true,
39027
+ color: buttonColor,
39028
+ hoverColor: buttonHoverColor,
39029
+ secondaryColor: "#E6F0F0",
39030
+ primaryText: "Save",
39031
+ secondaryText: "Cancel",
39032
+ width: "550px"
39033
+ }, /*#__PURE__*/React$1.createElement(TextareaWrapper, null, (commentText.length > 0 || isFocused) && /*#__PURE__*/React$1.createElement(TextareaLabel, {
39034
+ color: buttonColor
39035
+ }, "Comment"), /*#__PURE__*/React$1.createElement(CommentTextarea, {
39036
+ value: commentText,
39037
+ onChange: handleTextChange,
39038
+ placeholder: "Type a Comment...",
39039
+ maxLength: commentTextLimit,
39040
+ color: buttonColor,
39041
+ $hasValue: commentText.length > 0,
39042
+ onBlur: handleBlur,
39043
+ onFocus: handleFocus
39044
+ }), /*#__PURE__*/React$1.createElement(CharacterCount, null, commentText.length, "/", commentTextLimit))));
39050
39045
  };
39051
39046
  TableBody.propTypes = {
39052
39047
  columns: PropTypes.array.isRequired,
@@ -39059,6 +39054,7 @@ TableBody.propTypes = {
39059
39054
  onFocusChange: PropTypes.func,
39060
39055
  indexToShimmer: PropTypes.number,
39061
39056
  onCommentSave: PropTypes.func,
39057
+ commentTextLimit: PropTypes.number,
39062
39058
  ref: PropTypes.object
39063
39059
  };
39064
39060
  TableBody.displayName = 'TableBody';
@@ -42235,6 +42231,7 @@ const Table = props => {
42235
42231
  width = '100%',
42236
42232
  height = 'auto',
42237
42233
  tableTitle = 'All Events',
42234
+ tableBackground = '#FFFFFF',
42238
42235
  data = [],
42239
42236
  counter = 0,
42240
42237
  hideRowsCounter = false,
@@ -42264,8 +42261,8 @@ const Table = props => {
42264
42261
  noDataInSearchTitle = "No Results Found",
42265
42262
  noDataInSearchMessage = "Try to refine your query and search again",
42266
42263
  indexToShimmer = -1,
42267
- // New props for focus management
42268
- resetTableFocus = false,
42264
+ resetFocusIndex,
42265
+ changeFocusIndex,
42269
42266
  onTableFocusChange = () => {},
42270
42267
  clearFocusOnOutsideClick = true,
42271
42268
  // NEW: Props for edit mode focus management
@@ -42351,7 +42348,8 @@ const Table = props => {
42351
42348
 
42352
42349
  return /*#__PURE__*/React$1.createElement(TableWrapper, {
42353
42350
  width: width,
42354
- height: height
42351
+ height: height,
42352
+ backgroundColor: tableBackground
42355
42353
  }, /*#__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, {
42356
42354
  height: "45px",
42357
42355
  leftIcon: "Plus",
@@ -42385,7 +42383,9 @@ const Table = props => {
42385
42383
  onDeleteClick: onDeleteClick,
42386
42384
  onCommentSave: handleCommentSave,
42387
42385
  buttonColor: buttonColor,
42388
- resetFocus: resetTableFocus,
42386
+ buttonHoverColor: buttonHoverColor,
42387
+ resetFocusIndex: resetFocusIndex,
42388
+ changeFocusIndex: changeFocusIndex,
42389
42389
  onFocusChange: handleTableFocusChange
42390
42390
  })), data.length === 0 && /*#__PURE__*/React$1.createElement(NoEventsParent, null, /*#__PURE__*/React$1.createElement(NoEventsWrapper, null, showNoDataInSearch ? /*#__PURE__*/React$1.createElement(NoDataInSearchIcon, null) : /*#__PURE__*/React$1.createElement(NoEvents, null)), /*#__PURE__*/React$1.createElement(NoEventsMessage, null, showNoDataInSearch ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("strong", null, noDataInSearchTitle), /*#__PURE__*/React$1.createElement("br", null), noDataInSearchMessage) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("strong", null, "You haven't created any events yet"), /*#__PURE__*/React$1.createElement("br", null), "Let's get started and create your first one!")), !showNoDataInSearch && /*#__PURE__*/React$1.createElement(Button$1, {
42391
42391
  height: "45px",
@@ -42536,7 +42536,7 @@ const LineContainer = styled.div`
42536
42536
  align-items: center;
42537
42537
  width: 100%;
42538
42538
  `;
42539
- const ButtonContainer$1 = styled.div`
42539
+ const ButtonContainer = styled.div`
42540
42540
  .ButtonContainer {
42541
42541
  label {
42542
42542
  white-space: nowrap;
@@ -52062,7 +52062,7 @@ const ItemManagerPanel = _ref => {
52062
52062
  backgroundColor: backgroundColor
52063
52063
  }, /*#__PURE__*/React$1.createElement(VendorHeader$2, {
52064
52064
  ref: headerRef
52065
- }, /*#__PURE__*/React$1.createElement(Container$1, null, /*#__PURE__*/React$1.createElement(TitleContainer, null, /*#__PURE__*/React$1.createElement(SectionTitle$1, null, "Vendors"), /*#__PURE__*/React$1.createElement(SubtitleContainer, null, /*#__PURE__*/React$1.createElement(Subtitle$1, null, itemAndPackage.filter(item => item.packages !== null).length.toString(), " ", "Vendors", " "), /*#__PURE__*/React$1.createElement("span", null, "\xB7"), /*#__PURE__*/React$1.createElement(Subtitle$1, null, itemAndPackage.filter(item => item.packages !== null).reduce((acc, item) => acc + (item.packages ? item.packages.length : 0), 0), " ", "Packages"))), editMode && /*#__PURE__*/React$1.createElement(ButtonContainer$1, null, /*#__PURE__*/React$1.createElement(CustomTooltip, {
52065
+ }, /*#__PURE__*/React$1.createElement(Container$1, null, /*#__PURE__*/React$1.createElement(TitleContainer, null, /*#__PURE__*/React$1.createElement(SectionTitle$1, null, "Vendors"), /*#__PURE__*/React$1.createElement(SubtitleContainer, null, /*#__PURE__*/React$1.createElement(Subtitle$1, null, itemAndPackage.filter(item => item.packages !== null).length.toString(), " ", "Vendors", " "), /*#__PURE__*/React$1.createElement("span", null, "\xB7"), /*#__PURE__*/React$1.createElement(Subtitle$1, null, itemAndPackage.filter(item => item.packages !== null).reduce((acc, item) => acc + (item.packages ? item.packages.length : 0), 0), " ", "Packages"))), editMode && /*#__PURE__*/React$1.createElement(ButtonContainer, null, /*#__PURE__*/React$1.createElement(CustomTooltip, {
52066
52066
  hideTooltip: !disabledSendForms,
52067
52067
  content: buttonTooltipText,
52068
52068
  topFactor: 2,
@@ -52859,184 +52859,6 @@ const OverlayDropdown = _ref => {
52859
52859
  }));
52860
52860
  };
52861
52861
 
52862
- // MessageBox.styles.js
52863
- const ModalOverlay = styled.div`
52864
- position: fixed;
52865
- top: 0;
52866
- left: 0;
52867
- width: 100%;
52868
- height: 100%;
52869
- background-color: rgba(0, 0, 0, 0.5);
52870
- display: flex;
52871
- justify-content: center;
52872
- align-items: center;
52873
- z-index: 1000;
52874
- font-family: 'Poppins', sans-serif;
52875
- `;
52876
- const ModalContainer = styled.div`
52877
- background-color: white;
52878
- border-radius: 12px;
52879
- padding: 16px 24px 24px 24px;
52880
- width: ${props => props.$width || '400px'};
52881
- height: ${props => props.$height || 'auto'};
52882
- max-width: 90vw;
52883
- position: relative;
52884
- font-family: 'Poppins', sans-serif;
52885
- box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
52886
- `;
52887
- const CloseButton = styled.button`
52888
- position: absolute;
52889
- top: 16px;
52890
- right: 16px;
52891
- background: none;
52892
- border: none;
52893
- font-size: 20px;
52894
- color: #666;
52895
- cursor: pointer;
52896
- width: 24px;
52897
- height: 24px;
52898
- display: flex;
52899
- align-items: center;
52900
- justify-content: center;
52901
- font-family: 'Poppins', sans-serif;
52902
-
52903
- &:hover {
52904
- color: #333;
52905
- }
52906
- `;
52907
- const ModalTitle = styled.h2`
52908
- font-family: 'Poppins', sans-serif;
52909
- font-size: 18px;
52910
- font-weight: 700;
52911
- color: #212121;
52912
- margin: 0 0 16px 0;
52913
- padding-right: 32px;
52914
- `;
52915
- const MessageContainer = styled.div`
52916
- display: flex;
52917
- align-items: flex-start;
52918
- gap: 12px;
52919
- //margin-bottom: 5px;
52920
- `;
52921
- const IconWrapper$1 = styled.div`
52922
- margin-top: 1px;
52923
- `;
52924
- const MessageTitle = styled.h3`
52925
- font-family: 'Poppins', sans-serif;
52926
- font-size: 16px;
52927
- font-weight: 700;
52928
- color: #212121;
52929
- margin: 0 0 8px 0;
52930
- `;
52931
- const MessageMessage = styled.p`
52932
- font-family: 'Poppins', sans-serif;
52933
- font-size: 16px;
52934
- font-weight: 400;
52935
- color: #212121;
52936
- margin: 0;
52937
- line-height: 1.5;
52938
- `;
52939
- const ButtonContainer = styled.div`
52940
- display: flex;
52941
- gap: 12px;
52942
- justify-content: flex-end;
52943
- margin-top: 24px;
52944
- `;
52945
-
52946
- // eslint-disable-next-line react/prop-types
52947
- const ExclamationMarkIcon = _ref => {
52948
- let {
52949
- color = '#FF3949',
52950
- width = '16',
52951
- height = '16'
52952
- } = _ref;
52953
- return /*#__PURE__*/React$1.createElement("svg", {
52954
- width: width,
52955
- height: height,
52956
- viewBox: "0 0 16 16",
52957
- fill: "none",
52958
- xmlns: "http://www.w3.org/2000/svg"
52959
- }, /*#__PURE__*/React$1.createElement("path", {
52960
- d: "M8.01562 1.5C5.67188 1.5 3.54688 2.75 2.35938 4.75C1.20312 6.78125 1.20312 9.25 2.35938 11.25C3.54688 13.2812 5.67188 14.5 8.01562 14.5C10.3281 14.5 12.4531 13.2812 13.6406 11.25C14.7969 9.25 14.7969 6.78125 13.6406 4.75C12.4531 2.75 10.3281 1.5 8.01562 1.5ZM8.01562 16C5.14062 16 2.51562 14.5 1.07812 12C-0.359375 9.53125 -0.359375 6.5 1.07812 4C2.51562 1.53125 5.14062 0 8.01562 0C10.8594 0 13.4844 1.53125 14.9219 4C16.3594 6.5 16.3594 9.53125 14.9219 12C13.4844 14.5 10.8594 16 8.01562 16ZM8.01562 4C8.42188 4 8.76562 4.34375 8.76562 4.75V8.25C8.76562 8.6875 8.42188 9 8.01562 9C7.57812 9 7.26562 8.6875 7.26562 8.25V4.75C7.26562 4.34375 7.57812 4 8.01562 4ZM9.01562 11C9.01562 11.5625 8.54688 12 8.01562 12C7.45312 12 7.01562 11.5625 7.01562 11C7.01562 10.4688 7.45312 10 8.01562 10C8.54688 10 9.01562 10.4688 9.01562 11Z",
52961
- fill: color
52962
- }));
52963
- };
52964
-
52965
- // MessageBox.jsx
52966
- const MessageBox = _ref => {
52967
- let {
52968
- isOpen = true,
52969
- onClose = () => {},
52970
- onConfirm = () => {},
52971
- title = "Title",
52972
- messageTitle = "",
52973
- messageText = "",
52974
- cancelText = "Cancel",
52975
- confirmText = "Confirm",
52976
- width = "400px",
52977
- height = "auto"
52978
- } = _ref;
52979
- if (!isOpen) return null;
52980
- const handleOverlayClick = e => {
52981
- if (e.target === e.currentTarget) {
52982
- onClose();
52983
- }
52984
- };
52985
-
52986
- // Function to calculate button width based on text length
52987
- const calculateButtonWidth = text => {
52988
- // Approximate character width for Poppins 14px font
52989
- const avgCharWidth = 8; // pixels per character
52990
- const padding = 24; // left + right padding
52991
- const minWidth = 60; // minimum button width
52992
-
52993
- const calculatedWidth = text.length * avgCharWidth + padding;
52994
- return Math.max(calculatedWidth, minWidth);
52995
- };
52996
- return /*#__PURE__*/React$1.createElement(ModalOverlay, {
52997
- onClick: handleOverlayClick
52998
- }, /*#__PURE__*/React$1.createElement(ModalContainer, {
52999
- $width: width,
53000
- $height: height
53001
- }, /*#__PURE__*/React$1.createElement(CloseButton, {
53002
- onClick: onClose
53003
- }, /*#__PURE__*/React$1.createElement(CloseXIcon, {
53004
- width: "22",
53005
- height: "22"
53006
- })), /*#__PURE__*/React$1.createElement(ModalTitle, null, title), /*#__PURE__*/React$1.createElement(MessageContainer, null, /*#__PURE__*/React$1.createElement(IconWrapper$1, null, /*#__PURE__*/React$1.createElement(ExclamationMarkIcon, {
53007
- color: "#F00021",
53008
- width: "16",
53009
- height: "16"
53010
- })), /*#__PURE__*/React$1.createElement(MessageTitle, null, messageTitle)), /*#__PURE__*/React$1.createElement(MessageContainer, null, /*#__PURE__*/React$1.createElement(MessageMessage, null, messageText)), /*#__PURE__*/React$1.createElement(ButtonContainer, null, /*#__PURE__*/React$1.createElement(Button$1, {
53011
- text: cancelText,
53012
- borderRadius: "12px",
53013
- textColor: "#212121",
53014
- borderColor: "#B1B1B1",
53015
- backgroundColor: "#FFF",
53016
- hoverTextColor: "#212121",
53017
- hoverBackgroundColor: "#FFF",
53018
- hoverBorderColor: "#F00021",
53019
- disabledTextColor: "",
53020
- disabledBackgroundColor: "",
53021
- disabledBorderColor: "",
53022
- width: calculateButtonWidth(cancelText),
53023
- height: "45px",
53024
- onClick: onClose
53025
- }), /*#__PURE__*/React$1.createElement(Button$1, {
53026
- text: confirmText,
53027
- borderRadius: "12px",
53028
- backgroundColor: "#F00021",
53029
- textColor: "#FFF",
53030
- borderColor: "#F00021",
53031
- hoverTextColor: "#FFF",
53032
- hoverBackgroundColor: "#ff7875",
53033
- hoverBorderColor: "#ff7875",
53034
- width: calculateButtonWidth(confirmText),
53035
- height: "45px",
53036
- onClick: onConfirm
53037
- }))));
53038
- };
53039
-
53040
52862
  // ToasterMessageBox.styles.js
53041
52863
 
53042
52864
  // Helper function to convert hex to rgba