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.js CHANGED
@@ -33,6 +33,7 @@ const ButtonContainer$3 = styled__default["default"].div`
33
33
  align-content: center;
34
34
  width: ${props => props.width};
35
35
  height: ${props => props.height};
36
+ min-width: ${props => props.minWidth};
36
37
  `;
37
38
  const ButtonItem = styled__default["default"].div`
38
39
  display: flex;
@@ -72,7 +73,7 @@ const Label$b = styled__default["default"].label`
72
73
  pointer-events: none;
73
74
  user-select: none;
74
75
  `;
75
- const IconWrapper$6 = styled__default["default"].div`
76
+ const IconWrapper$5 = styled__default["default"].div`
76
77
  display: flex;
77
78
  align-items: center;
78
79
  justify-content: center;
@@ -498,6 +499,7 @@ const Button$1 = props => {
498
499
  size = "small",
499
500
  height = "",
500
501
  width = "",
502
+ minWidth = "unset",
501
503
  disabled = false,
502
504
  textColor = "",
503
505
  backgroundColor = "",
@@ -546,7 +548,7 @@ const Button$1 = props => {
546
548
  color: disabled ? disabledTextColor || "#B1B1B1" : hover ? hoverTextColor || (type === "secondary" ? "#229E38" : "#ffffff") : textColor || (type === "secondary" ? "#212121" : "#ffffff"),
547
549
  fill: disabled ? disabledTextColor || "#B1B1B1" : hover ? hoverTextColor || (type === "secondary" ? "#229E38" : "#ffffff") : textColor || (type === "secondary" ? "#212121" : "#ffffff")
548
550
  };
549
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$6, null, /*#__PURE__*/React__default["default"].createElement(IconComponent, iconProps));
551
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, null, /*#__PURE__*/React__default["default"].createElement(IconComponent, iconProps));
550
552
  };
551
553
  const commonProps = {
552
554
  width: width || null,
@@ -567,7 +569,8 @@ const Button$1 = props => {
567
569
  return /*#__PURE__*/React__default["default"].createElement(ButtonContainer$3, {
568
570
  className: "ButtonContainer",
569
571
  width: commonProps.width,
570
- height: commonProps.height
572
+ height: commonProps.height,
573
+ minWidth: minWidth
571
574
  }, isSubmitButton ? /*#__PURE__*/React__default["default"].createElement(InputCommit, _extends$1({
572
575
  className: clicked ? "InputCommit-clicked" : "InputCommit",
573
576
  value: text,
@@ -3024,7 +3027,7 @@ const Label$a = styled__default["default"].label`
3024
3027
  user-select: none;
3025
3028
  pointer-events: none;
3026
3029
  `;
3027
- const IconWrapper$5 = styled__default["default"].div`
3030
+ const IconWrapper$4 = styled__default["default"].div`
3028
3031
  display: flex;
3029
3032
  align-items: center;
3030
3033
  justify-content: center;
@@ -3148,7 +3151,7 @@ const LinkButton = _ref => {
3148
3151
  const color = disabled ? '#B1B1B1' : newTextColor;
3149
3152
  switch (icon.toLowerCase()) {
3150
3153
  case 'filter':
3151
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, {
3154
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3152
3155
  className: "FilterIcon"
3153
3156
  }, /*#__PURE__*/React__default["default"].createElement(FilterIcon$1, {
3154
3157
  height: iconHeight,
@@ -3156,7 +3159,7 @@ const LinkButton = _ref => {
3156
3159
  color: color
3157
3160
  }));
3158
3161
  case 'plus':
3159
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, {
3162
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3160
3163
  className: "PlusIcon"
3161
3164
  }, /*#__PURE__*/React__default["default"].createElement(PlusIcon, {
3162
3165
  height: "16",
@@ -3164,7 +3167,7 @@ const LinkButton = _ref => {
3164
3167
  color: color
3165
3168
  }));
3166
3169
  case 'options':
3167
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, {
3170
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3168
3171
  className: "OptionsIcon"
3169
3172
  }, /*#__PURE__*/React__default["default"].createElement(OptionsIcon, {
3170
3173
  height: iconHeight,
@@ -3172,7 +3175,7 @@ const LinkButton = _ref => {
3172
3175
  color: color
3173
3176
  }));
3174
3177
  case 'download':
3175
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, {
3178
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3176
3179
  className: "DownloadIcon"
3177
3180
  }, /*#__PURE__*/React__default["default"].createElement(DownloadIcon, {
3178
3181
  height: iconHeight,
@@ -3180,7 +3183,7 @@ const LinkButton = _ref => {
3180
3183
  color: color
3181
3184
  }));
3182
3185
  case 'document':
3183
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, {
3186
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3184
3187
  className: "DocumentIcon"
3185
3188
  }, /*#__PURE__*/React__default["default"].createElement(DocumentIcon, {
3186
3189
  height: iconHeight,
@@ -3188,7 +3191,7 @@ const LinkButton = _ref => {
3188
3191
  color: color
3189
3192
  }));
3190
3193
  case 'fly':
3191
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, {
3194
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3192
3195
  className: "FlyIcon"
3193
3196
  }, /*#__PURE__*/React__default["default"].createElement(FlyIcon, {
3194
3197
  height: iconHeight,
@@ -3196,7 +3199,7 @@ const LinkButton = _ref => {
3196
3199
  color: color
3197
3200
  }));
3198
3201
  case 'bell':
3199
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, {
3202
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3200
3203
  className: "BellIcon"
3201
3204
  }, /*#__PURE__*/React__default["default"].createElement(BellIcon, {
3202
3205
  height: iconHeight,
@@ -3204,7 +3207,7 @@ const LinkButton = _ref => {
3204
3207
  color: color
3205
3208
  }));
3206
3209
  case 'maintenance':
3207
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, {
3210
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3208
3211
  className: "MaintenanceIcon"
3209
3212
  }, /*#__PURE__*/React__default["default"].createElement(MaintenanceIcon, {
3210
3213
  height: iconHeight,
@@ -3212,7 +3215,7 @@ const LinkButton = _ref => {
3212
3215
  color: color
3213
3216
  }));
3214
3217
  case 'exit':
3215
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, {
3218
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3216
3219
  className: "ExitIcon"
3217
3220
  }, /*#__PURE__*/React__default["default"].createElement(ExitIcon, {
3218
3221
  height: iconHeight,
@@ -3220,7 +3223,7 @@ const LinkButton = _ref => {
3220
3223
  color: color
3221
3224
  }));
3222
3225
  case 'eye':
3223
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, {
3226
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3224
3227
  className: "EyeIcon"
3225
3228
  }, /*#__PURE__*/React__default["default"].createElement(EyeIcon, {
3226
3229
  height: iconHeight,
@@ -3228,7 +3231,7 @@ const LinkButton = _ref => {
3228
3231
  color: color
3229
3232
  }));
3230
3233
  case 'arrowdown':
3231
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, {
3234
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3232
3235
  className: "ArrowDownIcon"
3233
3236
  }, /*#__PURE__*/React__default["default"].createElement(MenuItemOpenIcon, {
3234
3237
  height: iconHeight,
@@ -3236,7 +3239,7 @@ const LinkButton = _ref => {
3236
3239
  color: color
3237
3240
  }));
3238
3241
  case 'arrowright':
3239
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, {
3242
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3240
3243
  className: "ArrowRightIcon"
3241
3244
  }, /*#__PURE__*/React__default["default"].createElement(MenuItemRightIcon, {
3242
3245
  height: iconHeight,
@@ -3244,7 +3247,7 @@ const LinkButton = _ref => {
3244
3247
  color: color
3245
3248
  }));
3246
3249
  case 'select':
3247
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, {
3250
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3248
3251
  className: "SelectRightIcon"
3249
3252
  }, /*#__PURE__*/React__default["default"].createElement(ArrowSelectIcon, {
3250
3253
  height: "16px",
@@ -3252,7 +3255,7 @@ const LinkButton = _ref => {
3252
3255
  color: color
3253
3256
  }));
3254
3257
  case 'info':
3255
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$5, {
3258
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3256
3259
  className: "InfoIcon"
3257
3260
  }, /*#__PURE__*/React__default["default"].createElement(InfoIcon, {
3258
3261
  height: iconHeight,
@@ -3542,7 +3545,7 @@ const TextFieldContainer = styled__default["default"].div`
3542
3545
  position: relative;
3543
3546
  width: ${props => props.width};
3544
3547
  `;
3545
- const IconWrapper$4 = styled__default["default"].div`
3548
+ const IconWrapper$3 = styled__default["default"].div`
3546
3549
  position: absolute;
3547
3550
  top: 50%;
3548
3551
  transform: translateY(-50%);
@@ -3586,7 +3589,7 @@ const SearchInput = props => {
3586
3589
  return /*#__PURE__*/React__default["default"].createElement(TextFieldContainer, {
3587
3590
  className: className,
3588
3591
  width: width
3589
- }, /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3592
+ }, /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
3590
3593
  position: position
3591
3594
  }, /*#__PURE__*/React__default["default"].createElement(SearchIcon, {
3592
3595
  color: iconColor
@@ -13086,11 +13089,11 @@ const ModalHeader$2 = styled__default["default"].div`
13086
13089
  justify-content: space-between;
13087
13090
  margin-bottom: 32px;
13088
13091
  `;
13089
- const ModalBody$2 = styled__default["default"].div`
13092
+ const ModalBody$1 = styled__default["default"].div`
13090
13093
  ${scrollableStyles$a}
13091
13094
  max-height: 80vh;
13092
13095
  `;
13093
- const ModalTitle$3 = styled__default["default"].h5`
13096
+ const ModalTitle$2 = styled__default["default"].h5`
13094
13097
  font-family: 'Poppins', sans-serif;
13095
13098
  font-size: 32px;
13096
13099
  font-weight: 500;
@@ -13122,12 +13125,12 @@ const DialogOverlay$1 = props => {
13122
13125
  };
13123
13126
  return /*#__PURE__*/React.createElement(ModalWrapper$1, {
13124
13127
  className: className
13125
- }, /*#__PURE__*/React.createElement(Modal$1, null, /*#__PURE__*/React.createElement(ModalHeader$2, null, /*#__PURE__*/React.createElement(ModalTitle$3, null, title), /*#__PURE__*/React.createElement(ModalClose, {
13128
+ }, /*#__PURE__*/React.createElement(Modal$1, null, /*#__PURE__*/React.createElement(ModalHeader$2, null, /*#__PURE__*/React.createElement(ModalTitle$2, null, title), /*#__PURE__*/React.createElement(ModalClose, {
13126
13129
  type: "button",
13127
13130
  onClick: closeModal
13128
13131
  }, /*#__PURE__*/React.createElement(CloseXIcon, {
13129
13132
  fill: "white"
13130
- }))), /*#__PURE__*/React.createElement(ModalBody$2, {
13133
+ }))), /*#__PURE__*/React.createElement(ModalBody$1, {
13131
13134
  id: "modalBody"
13132
13135
  }, children)));
13133
13136
  };
@@ -27219,7 +27222,7 @@ const scrollableStyles$6 = `
27219
27222
  }
27220
27223
  `;
27221
27224
  const MainContainer$1 = styled__default["default"].div``;
27222
- const ModalOverlay$2 = styled__default["default"].div`
27225
+ const ModalOverlay$1 = styled__default["default"].div`
27223
27226
  position: fixed;
27224
27227
  z-index: 100;
27225
27228
  top: 0;
@@ -27461,7 +27464,7 @@ const PopupCharts = props => {
27461
27464
  }, displayChart(item)));
27462
27465
  return /*#__PURE__*/React__default["default"].createElement(MainContainer$1, {
27463
27466
  id: "MainContainer"
27464
- }, IsPopupChartsOpen && /*#__PURE__*/React__default["default"].createElement(ModalOverlay$2, {
27467
+ }, IsPopupChartsOpen && /*#__PURE__*/React__default["default"].createElement(ModalOverlay$1, {
27465
27468
  id: "ModalOverlay",
27466
27469
  className: "modal-overlay"
27467
27470
  }, /*#__PURE__*/React__default["default"].createElement(ModalContent$2, {
@@ -33843,7 +33846,7 @@ const Header$3 = styled__default["default"].div`
33843
33846
  align-items: flex-start;
33844
33847
  }
33845
33848
  `;
33846
- const CloseButton$2 = styled__default["default"].button`
33849
+ const CloseButton$1 = styled__default["default"].button`
33847
33850
  position: absolute;
33848
33851
  top: -10px;
33849
33852
  right: 0px;
@@ -34044,7 +34047,7 @@ const InsightsCarousel = _ref => {
34044
34047
  $titleColor: titleColor
34045
34048
  }, /*#__PURE__*/React__default["default"].cloneElement(icon, {
34046
34049
  fill: iconColor
34047
- }), title), /*#__PURE__*/React__default["default"].createElement(CloseButton$2, {
34050
+ }), title), /*#__PURE__*/React__default["default"].createElement(CloseButton$1, {
34048
34051
  onClick: () => onClose?.({
34049
34052
  label: "closeCarousel"
34050
34053
  }),
@@ -34369,12 +34372,12 @@ const ModalButtons = styled__default["default"].div`
34369
34372
  display: flex;
34370
34373
  gap: 10px;
34371
34374
  `;
34372
- const ModalTitle$2 = styled__default["default"].h3`
34375
+ const ModalTitle$1 = styled__default["default"].h3`
34373
34376
  margin: 0;
34374
34377
  font-size: 24px;
34375
34378
  font-weight: 500;
34376
34379
  `;
34377
- const ModalBody$1 = styled__default["default"].div`
34380
+ const ModalBody = styled__default["default"].div`
34378
34381
  width: 100%;
34379
34382
  height: 100%;
34380
34383
  `;
@@ -34427,7 +34430,7 @@ const ModalWithOverlay = props => {
34427
34430
  }
34428
34431
  }, /*#__PURE__*/React__default["default"].createElement(ModalHeader$1, {
34429
34432
  className: "modal-header"
34430
- }, /*#__PURE__*/React__default["default"].createElement(ModalTitle$2, null, title), /*#__PURE__*/React__default["default"].createElement(ModalButtons, {
34433
+ }, /*#__PURE__*/React__default["default"].createElement(ModalTitle$1, null, title), /*#__PURE__*/React__default["default"].createElement(ModalButtons, {
34431
34434
  className: "modal-buttons"
34432
34435
  }, showCancelButton && /*#__PURE__*/React__default["default"].createElement(Button$1, {
34433
34436
  size: "medium",
@@ -34474,7 +34477,7 @@ const ModalWithOverlay = props => {
34474
34477
  backgroundColor: okButtonColor,
34475
34478
  hoverBorderColor: okButtonHoverBackgroundColor,
34476
34479
  hoverBackgroundColor: okButtonHoverBackgroundColor
34477
- })))), /*#__PURE__*/React__default["default"].createElement(ModalBody$1, {
34480
+ })))), /*#__PURE__*/React__default["default"].createElement(ModalBody, {
34478
34481
  className: "modal-body"
34479
34482
  }, children)));
34480
34483
  };
@@ -35049,7 +35052,7 @@ function FaEyeSlash (props) {
35049
35052
  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);
35050
35053
  }
35051
35054
 
35052
- const IconWrapper$3 = styled__default["default"].div`
35055
+ const IconWrapper$2 = styled__default["default"].div`
35053
35056
  display: flex;
35054
35057
  align-items: center;
35055
35058
  justify-content: center;
@@ -35065,7 +35068,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35065
35068
  const newColor = disabled ? '#D0D0D0' : color || '#212121';
35066
35069
  switch (icon.toLowerCase()) {
35067
35070
  case 'filter':
35068
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
35071
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$2, {
35069
35072
  className: "FilterIcon",
35070
35073
  pointer: pointer,
35071
35074
  disabled: disabled,
@@ -35077,7 +35080,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35077
35080
  onClick: callBackOnClick
35078
35081
  }));
35079
35082
  case 'options':
35080
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
35083
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$2, {
35081
35084
  className: "OptionsIcon",
35082
35085
  pointer: pointer,
35083
35086
  disabled: disabled,
@@ -35089,7 +35092,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35089
35092
  onClick: callBackOnClick
35090
35093
  }));
35091
35094
  case 'download':
35092
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
35095
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$2, {
35093
35096
  className: "DownloadIcon",
35094
35097
  pointer: pointer,
35095
35098
  disabled: disabled,
@@ -35101,7 +35104,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35101
35104
  onClick: callBackOnClick
35102
35105
  }));
35103
35106
  case 'document':
35104
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
35107
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$2, {
35105
35108
  className: "DocumentIcon",
35106
35109
  pointer: pointer,
35107
35110
  disabled: disabled,
@@ -35113,7 +35116,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35113
35116
  onClick: callBackOnClick
35114
35117
  }));
35115
35118
  case 'fly':
35116
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
35119
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$2, {
35117
35120
  className: "FlyIcon",
35118
35121
  pointer: pointer,
35119
35122
  disabled: disabled,
@@ -35125,7 +35128,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35125
35128
  onClick: callBackOnClick
35126
35129
  }));
35127
35130
  case 'bell':
35128
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
35131
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$2, {
35129
35132
  className: "BellIcon",
35130
35133
  pointer: pointer,
35131
35134
  disabled: disabled,
@@ -35137,7 +35140,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35137
35140
  onClick: callBackOnClick
35138
35141
  }));
35139
35142
  case 'maintenance':
35140
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
35143
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$2, {
35141
35144
  className: "MaintenanceIcon",
35142
35145
  pointer: pointer,
35143
35146
  disabled: disabled,
@@ -35149,7 +35152,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35149
35152
  onClick: callBackOnClick
35150
35153
  }));
35151
35154
  case 'exit':
35152
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
35155
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$2, {
35153
35156
  className: "ExitIcon",
35154
35157
  pointer: pointer,
35155
35158
  disabled: disabled,
@@ -35161,7 +35164,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35161
35164
  onClick: callBackOnClick
35162
35165
  }));
35163
35166
  case 'eye':
35164
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
35167
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$2, {
35165
35168
  className: "EyeIcon",
35166
35169
  pointer: pointer,
35167
35170
  disabled: disabled,
@@ -35173,7 +35176,7 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35173
35176
  onClick: callBackOnClick
35174
35177
  }));
35175
35178
  case 'search':
35176
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
35179
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$2, {
35177
35180
  className: "SearchIcon",
35178
35181
  pointer: pointer,
35179
35182
  disabled: disabled,
@@ -35298,7 +35301,7 @@ const ErrorMessage = styled__default["default"].div`
35298
35301
  margin-top: 5px;
35299
35302
  max-width: ${props => props.width || '300px'};
35300
35303
  `;
35301
- const IconWrapper$2 = styled__default["default"].div`
35304
+ const IconWrapper$1 = styled__default["default"].div`
35302
35305
  display: flex;
35303
35306
  align-items: center;
35304
35307
  justify-content: center;
@@ -35393,7 +35396,7 @@ const Input$2 = _ref => {
35393
35396
  const getPasswordIcon = () => {
35394
35397
  if (!password) return '';
35395
35398
  if (showPassword) {
35396
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$2, {
35399
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
35397
35400
  className: "passwordEyeSlash",
35398
35401
  disabled: disabled,
35399
35402
  onClick: toggleShowPassword
@@ -35610,7 +35613,7 @@ ToggleSwitch.propTypes = {
35610
35613
  const TableWrapper$1 = styled__default["default"].div`
35611
35614
  width: ${props => props.width};
35612
35615
  height: ${props => props.height};
35613
- padding: 20px;
35616
+ padding: ${props => props.padding};
35614
35617
  background-color: #fff;
35615
35618
  box-sizing: border-box;
35616
35619
  position: relative;
@@ -35645,6 +35648,7 @@ const ContainerTable = props => {
35645
35648
  columnsWidths = [430, 105, 210, 175, 148, 185, 104, 104, 140, 50, 50],
35646
35649
  standardCellSkeletonHeight = 22,
35647
35650
  isLoading = true,
35651
+ padding = '20px',
35648
35652
  children
35649
35653
  } = props;
35650
35654
  const TableWrapperRef = React$1.useRef(null);
@@ -35677,7 +35681,8 @@ const ContainerTable = props => {
35677
35681
  return /*#__PURE__*/React__default["default"].createElement(TableWrapper$1, {
35678
35682
  ref: TableWrapperRef,
35679
35683
  width: width,
35680
- height: height
35684
+ height: height,
35685
+ padding: padding
35681
35686
  }, isLoading ? /*#__PURE__*/React__default["default"].createElement(Skeleton.SkeletonTheme, {
35682
35687
  baseColor: "#EAEAEA",
35683
35688
  highlightColor: "#F5F5F5"
@@ -36292,7 +36297,7 @@ const scrollableStyles$1 = `
36292
36297
  const TableWrapper = styled__default["default"].div`
36293
36298
  width: ${props => props.width};
36294
36299
  height: ${props => props.height};
36295
- background-color: #fff;
36300
+ background-color: ${props => props.backgroundColor};
36296
36301
  box-sizing: border-box;
36297
36302
  font-family: 'Poppins', sans-serif;
36298
36303
  `;
@@ -38332,85 +38337,6 @@ const StatusCellCircle = styled__default["default"].div`
38332
38337
  border: 1px solid white;
38333
38338
  background-color: ${props => props.backgroundColor};
38334
38339
  `;
38335
-
38336
- // CommentModal.styles.js
38337
- const ModalOverlay$1 = styled__default["default"].div`
38338
- position: fixed;
38339
- top: 0;
38340
- left: 0;
38341
- right: 0;
38342
- bottom: 0;
38343
- background-color: rgba(0, 0, 0, 0.5);
38344
- display: flex;
38345
- align-items: center;
38346
- justify-content: center;
38347
- z-index: 1000;
38348
- `;
38349
- const ModalContent = styled__default["default"].div`
38350
- background: white;
38351
- border-radius: 12px;
38352
- width: 90%;
38353
- max-width: 500px;
38354
- max-height: 400px;
38355
- display: flex;
38356
- flex-direction: column;
38357
- box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
38358
- animation: slideUp 0.3s ease-out;
38359
-
38360
- @keyframes slideUp {
38361
- from {
38362
- opacity: 0;
38363
- transform: translateY(20px) scale(0.95);
38364
- }
38365
- to {
38366
- opacity: 1;
38367
- transform: translateY(0) scale(1);
38368
- }
38369
- }
38370
- `;
38371
- const ModalHeader = styled__default["default"].div`
38372
- display: flex;
38373
- justify-content: space-between;
38374
- align-items: center;
38375
- padding: 12px 24px;
38376
- border-bottom: 1px solid #D9D9D9;
38377
- flex-shrink: 0;
38378
- `;
38379
- const ModalTitle$1 = styled__default["default"].h5`
38380
- font-family: "Poppins", sans-serif;
38381
- font-size: 18px;
38382
- font-weight: 600;
38383
- color: #212121;
38384
- margin: 0;
38385
- `;
38386
- const CloseButton$1 = styled__default["default"].button`
38387
- background: none;
38388
- border: none;
38389
- padding: 8px;
38390
- cursor: pointer;
38391
- color: #6b7280;
38392
- border-radius: 6px;
38393
- transition: all 0.2s ease;
38394
- display: flex;
38395
- align-items: center;
38396
- justify-content: center;
38397
-
38398
- &:hover {
38399
- background-color: #f3f4f6;
38400
- color: #374151;
38401
- }
38402
-
38403
- &:active {
38404
- transform: scale(0.95);
38405
- }
38406
- `;
38407
- const ModalBody = styled__default["default"].div`
38408
- padding: 20px 24px 24px;
38409
- flex: 1;
38410
- display: flex;
38411
- flex-direction: column;
38412
- overflow: hidden;
38413
- `;
38414
38340
  const TextareaWrapper = styled__default["default"].div`
38415
38341
  position: relative;
38416
38342
  display: flex;
@@ -38494,121 +38420,141 @@ const CharacterCount = styled__default["default"].div`
38494
38420
  text-align: right;
38495
38421
  transition: color 0.2s ease;
38496
38422
  `;
38497
- const ModalBottom = styled__default["default"].div`
38498
- padding: 16px 24px;
38499
- border-top: 1px solid #D9D9D9;
38423
+
38424
+ // MessageBox.styles.js
38425
+ const ModalOverlay = styled__default["default"].div`
38426
+ position: fixed;
38427
+ top: 0;
38428
+ left: 0;
38429
+ width: 100%;
38430
+ height: 100%;
38431
+ background-color: rgba(0, 0, 0, 0.5);
38432
+ display: flex;
38433
+ justify-content: center;
38434
+ align-items: center;
38435
+ z-index: 1000;
38436
+ font-family: 'Poppins', sans-serif;
38437
+ `;
38438
+ const ModalContainer = styled__default["default"].div`
38439
+ background-color: white;
38440
+ border-radius: 12px;
38441
+ width: ${props => props.$width || '400px'};
38442
+ height: ${props => props.$height || 'auto'};
38443
+ position: relative;
38444
+ font-family: 'Poppins', sans-serif;
38445
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
38446
+ `;
38447
+ const CloseButton = styled__default["default"].button`
38448
+ background: none;
38449
+ border: none;
38450
+ padding: 8px;
38451
+ cursor: pointer;
38452
+ color: #6b7280;
38453
+ border-radius: 6px;
38454
+ transition: all 0.2s ease;
38500
38455
  display: flex;
38501
- gap: 16px;
38502
- justify-content: flex-end;
38503
38456
  align-items: center;
38504
- `;
38457
+ justify-content: center;
38505
38458
 
38506
- const CommentModal = props => {
38507
- const {
38508
- isOpen,
38509
- onClose,
38510
- onSave,
38511
- maxLength = 150,
38512
- color = "#066768",
38513
- saveButtonHoverColor = "#388586",
38514
- initialValue = ''
38515
- } = props;
38516
- const [commentText, setCommentText] = React$1.useState('');
38517
- const [isFocused, setIsFocused] = React$1.useState(false);
38518
- const [hasUserInteracted, setHasUserInteracted] = React$1.useState(false); // Track if user has started typing
38519
- const [hasInitialValue, setHasInitialValue] = React$1.useState(false); // Track if there was initial text
38459
+ &:hover {
38460
+ background-color: #f3f4f6;
38461
+ color: #374151;
38462
+ }
38520
38463
 
38521
- // Update comment text when modal opens with initial value
38522
- React$1.useEffect(() => {
38523
- if (isOpen) {
38524
- const initialText = initialValue || '';
38525
- setCommentText(initialText);
38526
- setHasInitialValue(Boolean(initialText.trim())); // Check if there's actual content
38527
- setHasUserInteracted(false); // Reset interaction state
38528
- }
38529
- }, [isOpen, initialValue]);
38464
+ &:active {
38465
+ transform: scale(0.95);
38466
+ }
38467
+ `;
38468
+ const ModalHeader = styled__default["default"].div`
38469
+ display: flex;
38470
+ justify-content: space-between;
38471
+ align-items: center;
38472
+ padding: 12px 24px;
38473
+ flex-shrink: 0;
38474
+ `;
38475
+ const ModalTitle = styled__default["default"].h5`
38476
+ font-family: "Poppins", sans-serif;
38477
+ font-size: 18px;
38478
+ font-weight: 600;
38479
+ color: #212121;
38480
+ margin: 0;
38481
+ `;
38482
+ const ModalContent = styled__default["default"].div`
38483
+ padding: 24px;
38484
+ border-top: ${props => props.showBorders ? '1px solid #D9D9D9' : 'none'};
38485
+ border-bottom: ${props => props.showBorders ? '1px solid #D9D9D9' : 'none'};
38486
+ `;
38487
+ const ButtonContainer$1 = styled__default["default"].div`
38488
+ display: flex;
38489
+ gap: 16px;
38490
+ justify-content: flex-end;
38491
+ padding: 16px 24px;
38492
+ `;
38493
+
38494
+ // MessageBox.jsx
38495
+ const MessageBox = _ref => {
38496
+ let {
38497
+ isOpen = true,
38498
+ isDisabled = false,
38499
+ onClose = () => {},
38500
+ onConfirm = () => {},
38501
+ title = "Title",
38502
+ primaryText = "Confirm",
38503
+ secondaryText = "Cancel",
38504
+ width = "400px",
38505
+ height = "auto",
38506
+ color = "#F00021",
38507
+ hoverColor = "#ff7875",
38508
+ secondaryColor = "#ffffff",
38509
+ seperateSectionBorder = false,
38510
+ children
38511
+ } = _ref;
38530
38512
  if (!isOpen) return null;
38531
- const handleTextChange = e => {
38532
- const text = e.target.value;
38533
- if (text.length <= maxLength) {
38534
- setCommentText(text);
38535
- if (!hasUserInteracted) {
38536
- setHasUserInteracted(true); // Mark that user has started interacting
38537
- }
38538
- }
38539
- };
38540
38513
  const handleOverlayClick = e => {
38541
38514
  if (e.target === e.currentTarget) {
38542
38515
  onClose();
38543
38516
  }
38544
38517
  };
38545
- const handleSave = () => {
38546
- if (onSave) {
38547
- onSave(commentText);
38548
- }
38549
- // Don't clear the text here - let the parent handle closing
38550
- };
38551
- const handleClose = () => {
38552
- setCommentText('');
38553
- setHasUserInteracted(false);
38554
- setHasInitialValue(false);
38555
- onClose();
38556
- };
38557
- const handleFocus = () => {
38558
- setIsFocused(true);
38559
- };
38560
- const handleBlur = () => {
38561
- setIsFocused(false);
38562
- };
38563
-
38564
- // Determine if save button should be enabled
38565
- const isSaveEnabled = hasUserInteracted && (commentText.length > 0 || hasInitialValue);
38566
- return /*#__PURE__*/React__default["default"].createElement(ModalOverlay$1, {
38518
+ return /*#__PURE__*/React__default["default"].createElement(ModalOverlay, {
38567
38519
  onClick: handleOverlayClick
38568
- }, /*#__PURE__*/React__default["default"].createElement(ModalContent, null, /*#__PURE__*/React__default["default"].createElement(ModalHeader, null, /*#__PURE__*/React__default["default"].createElement(ModalTitle$1, null, "Add Comment"), /*#__PURE__*/React__default["default"].createElement(CloseButton$1, {
38569
- onClick: handleClose
38570
- }, /*#__PURE__*/React__default["default"].createElement("svg", {
38571
- width: "24",
38572
- height: "24",
38573
- viewBox: "0 0 24 24",
38574
- fill: "none"
38575
- }, /*#__PURE__*/React__default["default"].createElement("path", {
38576
- d: "M18 6L6 18M6 6l12 12",
38577
- stroke: "currentColor",
38578
- strokeWidth: "2",
38579
- strokeLinecap: "round",
38580
- strokeLinejoin: "round"
38581
- })))), /*#__PURE__*/React__default["default"].createElement(ModalBody, null, /*#__PURE__*/React__default["default"].createElement(TextareaWrapper, null, (commentText.length > 0 || isFocused) && /*#__PURE__*/React__default["default"].createElement(TextareaLabel, {
38582
- color: color
38583
- }, "Comment"), /*#__PURE__*/React__default["default"].createElement(CommentTextarea, {
38584
- value: commentText,
38585
- onChange: handleTextChange,
38586
- placeholder: "Type a Comment...",
38587
- maxLength: maxLength,
38588
- color: color,
38589
- $hasValue: commentText.length > 0,
38590
- onBlur: handleBlur,
38591
- onFocus: handleFocus
38592
- }), /*#__PURE__*/React__default["default"].createElement(CharacterCount, null, commentText.length, "/", maxLength))), /*#__PURE__*/React__default["default"].createElement(ModalBottom, null, /*#__PURE__*/React__default["default"].createElement(Button$1, {
38593
- text: "Cancel",
38594
- type: "secondary",
38520
+ }, /*#__PURE__*/React__default["default"].createElement(ModalContainer, {
38521
+ $width: width,
38522
+ $height: height
38523
+ }, /*#__PURE__*/React__default["default"].createElement(ModalHeader, null, /*#__PURE__*/React__default["default"].createElement(ModalTitle, null, title), /*#__PURE__*/React__default["default"].createElement(CloseButton, {
38524
+ onClick: onClose
38525
+ }, /*#__PURE__*/React__default["default"].createElement(CloseXIcon, null))), /*#__PURE__*/React__default["default"].createElement(ModalContent, {
38526
+ showBorders: seperateSectionBorder
38527
+ }, children), /*#__PURE__*/React__default["default"].createElement(ButtonContainer$1, null, /*#__PURE__*/React__default["default"].createElement(Button$1, {
38528
+ text: secondaryText,
38595
38529
  size: "medium",
38596
- borderColor: "#D3D3D3",
38597
- hoverTextColor: "#212121",
38598
- hoverBackgroundColor: "#E6F0F0",
38599
- hoverBorderColor: "#D3D3D3",
38600
- onClick: handleClose
38530
+ borderColor: "#B1B1B1",
38531
+ hoverTextColor: color,
38532
+ hoverBackgroundColor: secondaryColor,
38533
+ hoverBorderColor: color,
38534
+ textColor: "#212121",
38535
+ backgroundColor: "white",
38536
+ disabledTextColor: "",
38537
+ disabledBackgroundColor: "",
38538
+ disabledBorderColor: "",
38539
+ width: "auto",
38540
+ minWidth: "60px",
38541
+ onClick: onClose
38601
38542
  }), /*#__PURE__*/React__default["default"].createElement(Button$1, {
38602
- text: "Save",
38543
+ text: primaryText,
38603
38544
  size: "medium",
38604
- disabled: !isSaveEnabled,
38605
- hoverTextColor: "#ffffff",
38606
- disabledTextColor: "#ffffff",
38607
- borderColor: color,
38608
38545
  backgroundColor: color,
38609
- hoverBorderColor: saveButtonHoverColor,
38610
- hoverBackgroundColor: saveButtonHoverColor,
38611
- onClick: handleSave
38546
+ textColor: "white",
38547
+ borderColor: color,
38548
+ hoverTextColor: "white",
38549
+ hoverBackgroundColor: hoverColor,
38550
+ hoverBorderColor: hoverColor,
38551
+ disabled: isDisabled,
38552
+ disabledTextColor: "white",
38553
+ disabledBackgroundColor: "#E9E9E9",
38554
+ disabledBorderColor: "#E9E9E9",
38555
+ width: "auto",
38556
+ minWidth: "60px",
38557
+ onClick: onConfirm
38612
38558
  }))));
38613
38559
  };
38614
38560
 
@@ -38700,9 +38646,11 @@ const TableBody = ({
38700
38646
  onRowClick,
38701
38647
  onSendClick,
38702
38648
  buttonColor,
38703
- onDeleteClick,
38649
+ buttonHoverColor,
38704
38650
  selectedColor,
38705
- resetFocus = false,
38651
+ onDeleteClick,
38652
+ resetFocusIndex,
38653
+ changeFocusIndex,
38706
38654
  onFocusChange,
38707
38655
  indexToShimmer = 0,
38708
38656
  statuses = [{
@@ -38719,31 +38667,37 @@ const TableBody = ({
38719
38667
  palette: ['#EBA6AF', '#8B1538']
38720
38668
  }],
38721
38669
  onCommentSave = () => {},
38670
+ commentTextLimit = 150,
38722
38671
  ref = null
38723
38672
  }) => {
38724
38673
  const [hoveredRowIndex, setHoveredRowIndex] = React$1.useState(null);
38725
38674
  const [focusedRowIndex, setFocusedRowIndex] = React$1.useState(null);
38726
38675
  const [isCommentModalOpen, setIsCommentModalOpen] = React$1.useState(false);
38727
- const [currentCommentRow, setCurrentCommentRow] = React$1.useState(null); // Track which row is being edited
38728
-
38729
- // Expose methods to parent components via ref (if ref is provided)
38730
- // useImperativeHandle(ref, () => ({
38731
- // clearFocus: () => setFocusedRowIndex(null),
38732
- // getFocusedRowIndex: () => focusedRowIndex
38733
- // }), [focusedRowIndex]);
38676
+ const [currentCommentRow, setCurrentCommentRow] = React$1.useState(null);
38734
38677
 
38678
+ // TextArea logic states
38679
+ const [commentText, setCommentText] = React$1.useState('');
38680
+ const [isFocused, setIsFocused] = React$1.useState(false);
38681
+ const [hasUserInteracted, setHasUserInteracted] = React$1.useState(false);
38682
+ const [hasInitialValue, setHasInitialValue] = React$1.useState(false);
38735
38683
  React$1.useEffect(() => {
38736
- if (resetFocus) {
38684
+ if (isCommentModalOpen && currentCommentRow !== null) {
38685
+ const initialText = data[currentCommentRow]?.Comments || '';
38686
+ setCommentText(initialText);
38687
+ setHasInitialValue(Boolean(initialText.trim()));
38688
+ setHasUserInteracted(false);
38689
+ }
38690
+ }, [isCommentModalOpen, currentCommentRow, data]);
38691
+ React$1.useEffect(() => {
38692
+ if (resetFocusIndex) {
38737
38693
  setFocusedRowIndex(null);
38738
38694
  }
38739
- }, [resetFocus]);
38740
-
38741
- // Notify parent of focus changes
38742
- // useEffect(() => {
38743
- // if (onFocusChange) {
38744
- // onFocusChange(focusedRowIndex);
38745
- // }
38746
- // }, [focusedRowIndex, onFocusChange]);
38695
+ }, [resetFocusIndex]);
38696
+ React$1.useEffect(() => {
38697
+ if (changeFocusIndex) {
38698
+ setFocusedRowIndex(changeFocusIndex);
38699
+ }
38700
+ }, [changeFocusIndex]);
38747
38701
 
38748
38702
  // Handle row click for focus state
38749
38703
  const handleRowClick = (row, rowIndex) => {
@@ -38753,21 +38707,43 @@ const TableBody = ({
38753
38707
  }
38754
38708
  };
38755
38709
 
38710
+ // TextArea handlers
38711
+ const handleTextChange = e => {
38712
+ const text = e.target.value;
38713
+ if (text.length <= commentTextLimit) {
38714
+ setCommentText(text);
38715
+ if (!hasUserInteracted) {
38716
+ setHasUserInteracted(true);
38717
+ }
38718
+ }
38719
+ };
38720
+ const handleFocus = () => {
38721
+ setIsFocused(true);
38722
+ };
38723
+ const handleBlur = () => {
38724
+ setIsFocused(false);
38725
+ };
38726
+
38756
38727
  // Handle comment save
38757
- const handleCommentSave = commentText => {
38728
+ const handleCommentSave = () => {
38758
38729
  if (currentCommentRow !== null) {
38759
38730
  onCommentSave(currentCommentRow, commentText);
38760
38731
  }
38761
- setCurrentCommentRow(null);
38762
- setIsCommentModalOpen(false);
38732
+ handleCommentModalClose();
38763
38733
  };
38764
38734
 
38765
38735
  // Handle comment modal close
38766
38736
  const handleCommentModalClose = () => {
38737
+ setCommentText('');
38738
+ setHasUserInteracted(false);
38739
+ setHasInitialValue(false);
38767
38740
  setCurrentCommentRow(null);
38768
38741
  setIsCommentModalOpen(false);
38769
38742
  };
38770
38743
 
38744
+ // Determine if save button should be enabled
38745
+ const isSaveEnabled = hasUserInteracted && (commentText.length > 0 || hasInitialValue);
38746
+
38771
38747
  // Function to calculate tooltip height based on text length
38772
38748
  const calculateTooltipOffset = (text, isRegularCell = false) => {
38773
38749
  if (!text) return {
@@ -38912,11 +38888,11 @@ const TableBody = ({
38912
38888
  backgroundColor: palette0
38913
38889
  }), /*#__PURE__*/React__default["default"].createElement("span", null, value));
38914
38890
  case 'comments':
38915
- const commentText = value || '';
38916
- const hasComments = commentText.trim().length > 0;
38891
+ const commentTextValue = value || '';
38892
+ const hasComments = commentTextValue.trim().length > 0;
38917
38893
 
38918
38894
  // Truncate tooltip text if longer than 150 characters
38919
- const commentTooltipText = commentText.length > 150 ? commentText.substring(0, 147) + '...' : commentText;
38895
+ const commentTooltipText = commentTextValue.length > 150 ? commentTextValue.substring(0, 147) + '...' : commentTextValue;
38920
38896
  return /*#__PURE__*/React__default["default"].createElement(CommentIconWrapper, {
38921
38897
  $buttonColor: buttonColor,
38922
38898
  ref: el => {
@@ -38952,7 +38928,7 @@ const TableBody = ({
38952
38928
  }
38953
38929
  }, /*#__PURE__*/React__default["default"].createElement(CommentIcon, {
38954
38930
  showCircle: hasComments,
38955
- circleColor: "#066768"
38931
+ circleColor: buttonColor
38956
38932
  }));
38957
38933
  case 'trash':
38958
38934
  // Only show trash icon when row is hovered
@@ -38999,7 +38975,7 @@ const TableBody = ({
38999
38975
  el.style.setProperty('--tooltip-left', `${rect.left}px`);
39000
38976
  el.style.setProperty('--tooltip-width', `${rect.width}px`);
39001
38977
  el.style.setProperty('--tooltip-offset', `${offset}px`);
39002
- el.style.setProperty('--tooltip-height', `${height}px`);
38978
+ el.style.setProperty('--tooltip-height', `${offset}px`);
39003
38979
  el.setAttribute('data-tooltip', trashTooltipText);
39004
38980
  }
39005
38981
  }
@@ -39051,12 +39027,31 @@ const TableBody = ({
39051
39027
  $minWidth: column.minWidth,
39052
39028
  $maxWidth: column.maxWidth
39053
39029
  }, formattedValue);
39054
- })))), /*#__PURE__*/React__default["default"].createElement(CommentModal, {
39030
+ })))), /*#__PURE__*/React__default["default"].createElement(MessageBox, {
39031
+ title: "Add Comment",
39055
39032
  isOpen: isCommentModalOpen,
39056
39033
  onClose: handleCommentModalClose,
39057
- onSave: handleCommentSave,
39058
- initialValue: currentCommentRow !== null ? data[currentCommentRow]?.Comments || '' : ''
39059
- }));
39034
+ onConfirm: handleCommentSave,
39035
+ isDisabled: !isSaveEnabled,
39036
+ seperateSectionBorder: true,
39037
+ color: buttonColor,
39038
+ hoverColor: buttonHoverColor,
39039
+ secondaryColor: "#E6F0F0",
39040
+ primaryText: "Save",
39041
+ secondaryText: "Cancel",
39042
+ width: "550px"
39043
+ }, /*#__PURE__*/React__default["default"].createElement(TextareaWrapper, null, (commentText.length > 0 || isFocused) && /*#__PURE__*/React__default["default"].createElement(TextareaLabel, {
39044
+ color: buttonColor
39045
+ }, "Comment"), /*#__PURE__*/React__default["default"].createElement(CommentTextarea, {
39046
+ value: commentText,
39047
+ onChange: handleTextChange,
39048
+ placeholder: "Type a Comment...",
39049
+ maxLength: commentTextLimit,
39050
+ color: buttonColor,
39051
+ $hasValue: commentText.length > 0,
39052
+ onBlur: handleBlur,
39053
+ onFocus: handleFocus
39054
+ }), /*#__PURE__*/React__default["default"].createElement(CharacterCount, null, commentText.length, "/", commentTextLimit))));
39060
39055
  };
39061
39056
  TableBody.propTypes = {
39062
39057
  columns: PropTypes.array.isRequired,
@@ -39069,6 +39064,7 @@ TableBody.propTypes = {
39069
39064
  onFocusChange: PropTypes.func,
39070
39065
  indexToShimmer: PropTypes.number,
39071
39066
  onCommentSave: PropTypes.func,
39067
+ commentTextLimit: PropTypes.number,
39072
39068
  ref: PropTypes.object
39073
39069
  };
39074
39070
  TableBody.displayName = 'TableBody';
@@ -42245,6 +42241,7 @@ const Table = props => {
42245
42241
  width = '100%',
42246
42242
  height = 'auto',
42247
42243
  tableTitle = 'All Events',
42244
+ tableBackground = '#FFFFFF',
42248
42245
  data = [],
42249
42246
  counter = 0,
42250
42247
  hideRowsCounter = false,
@@ -42274,8 +42271,8 @@ const Table = props => {
42274
42271
  noDataInSearchTitle = "No Results Found",
42275
42272
  noDataInSearchMessage = "Try to refine your query and search again",
42276
42273
  indexToShimmer = -1,
42277
- // New props for focus management
42278
- resetTableFocus = false,
42274
+ resetFocusIndex,
42275
+ changeFocusIndex,
42279
42276
  onTableFocusChange = () => {},
42280
42277
  clearFocusOnOutsideClick = true,
42281
42278
  // NEW: Props for edit mode focus management
@@ -42361,7 +42358,8 @@ const Table = props => {
42361
42358
 
42362
42359
  return /*#__PURE__*/React__default["default"].createElement(TableWrapper, {
42363
42360
  width: width,
42364
- height: height
42361
+ height: height,
42362
+ backgroundColor: tableBackground
42365
42363
  }, /*#__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, {
42366
42364
  height: "45px",
42367
42365
  leftIcon: "Plus",
@@ -42395,7 +42393,9 @@ const Table = props => {
42395
42393
  onDeleteClick: onDeleteClick,
42396
42394
  onCommentSave: handleCommentSave,
42397
42395
  buttonColor: buttonColor,
42398
- resetFocus: resetTableFocus,
42396
+ buttonHoverColor: buttonHoverColor,
42397
+ resetFocusIndex: resetFocusIndex,
42398
+ changeFocusIndex: changeFocusIndex,
42399
42399
  onFocusChange: handleTableFocusChange
42400
42400
  })), data.length === 0 && /*#__PURE__*/React__default["default"].createElement(NoEventsParent, null, /*#__PURE__*/React__default["default"].createElement(NoEventsWrapper, null, showNoDataInSearch ? /*#__PURE__*/React__default["default"].createElement(NoDataInSearchIcon, null) : /*#__PURE__*/React__default["default"].createElement(NoEvents, null)), /*#__PURE__*/React__default["default"].createElement(NoEventsMessage, null, showNoDataInSearch ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("strong", null, noDataInSearchTitle), /*#__PURE__*/React__default["default"].createElement("br", null), noDataInSearchMessage) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("strong", null, "You haven't created any events yet"), /*#__PURE__*/React__default["default"].createElement("br", null), "Let's get started and create your first one!")), !showNoDataInSearch && /*#__PURE__*/React__default["default"].createElement(Button$1, {
42401
42401
  height: "45px",
@@ -42546,7 +42546,7 @@ const LineContainer = styled__default["default"].div`
42546
42546
  align-items: center;
42547
42547
  width: 100%;
42548
42548
  `;
42549
- const ButtonContainer$1 = styled__default["default"].div`
42549
+ const ButtonContainer = styled__default["default"].div`
42550
42550
  .ButtonContainer {
42551
42551
  label {
42552
42552
  white-space: nowrap;
@@ -52072,7 +52072,7 @@ const ItemManagerPanel = _ref => {
52072
52072
  backgroundColor: backgroundColor
52073
52073
  }, /*#__PURE__*/React__default["default"].createElement(VendorHeader$2, {
52074
52074
  ref: headerRef
52075
- }, /*#__PURE__*/React__default["default"].createElement(Container$1, null, /*#__PURE__*/React__default["default"].createElement(TitleContainer, null, /*#__PURE__*/React__default["default"].createElement(SectionTitle$1, null, "Vendors"), /*#__PURE__*/React__default["default"].createElement(SubtitleContainer, null, /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, itemAndPackage.filter(item => item.packages !== null).length.toString(), " ", "Vendors", " "), /*#__PURE__*/React__default["default"].createElement("span", null, "\xB7"), /*#__PURE__*/React__default["default"].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__default["default"].createElement(ButtonContainer$1, null, /*#__PURE__*/React__default["default"].createElement(CustomTooltip, {
52075
+ }, /*#__PURE__*/React__default["default"].createElement(Container$1, null, /*#__PURE__*/React__default["default"].createElement(TitleContainer, null, /*#__PURE__*/React__default["default"].createElement(SectionTitle$1, null, "Vendors"), /*#__PURE__*/React__default["default"].createElement(SubtitleContainer, null, /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, itemAndPackage.filter(item => item.packages !== null).length.toString(), " ", "Vendors", " "), /*#__PURE__*/React__default["default"].createElement("span", null, "\xB7"), /*#__PURE__*/React__default["default"].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__default["default"].createElement(ButtonContainer, null, /*#__PURE__*/React__default["default"].createElement(CustomTooltip, {
52076
52076
  hideTooltip: !disabledSendForms,
52077
52077
  content: buttonTooltipText,
52078
52078
  topFactor: 2,
@@ -52869,184 +52869,6 @@ const OverlayDropdown = _ref => {
52869
52869
  }));
52870
52870
  };
52871
52871
 
52872
- // MessageBox.styles.js
52873
- const ModalOverlay = styled__default["default"].div`
52874
- position: fixed;
52875
- top: 0;
52876
- left: 0;
52877
- width: 100%;
52878
- height: 100%;
52879
- background-color: rgba(0, 0, 0, 0.5);
52880
- display: flex;
52881
- justify-content: center;
52882
- align-items: center;
52883
- z-index: 1000;
52884
- font-family: 'Poppins', sans-serif;
52885
- `;
52886
- const ModalContainer = styled__default["default"].div`
52887
- background-color: white;
52888
- border-radius: 12px;
52889
- padding: 16px 24px 24px 24px;
52890
- width: ${props => props.$width || '400px'};
52891
- height: ${props => props.$height || 'auto'};
52892
- max-width: 90vw;
52893
- position: relative;
52894
- font-family: 'Poppins', sans-serif;
52895
- box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
52896
- `;
52897
- const CloseButton = styled__default["default"].button`
52898
- position: absolute;
52899
- top: 16px;
52900
- right: 16px;
52901
- background: none;
52902
- border: none;
52903
- font-size: 20px;
52904
- color: #666;
52905
- cursor: pointer;
52906
- width: 24px;
52907
- height: 24px;
52908
- display: flex;
52909
- align-items: center;
52910
- justify-content: center;
52911
- font-family: 'Poppins', sans-serif;
52912
-
52913
- &:hover {
52914
- color: #333;
52915
- }
52916
- `;
52917
- const ModalTitle = styled__default["default"].h2`
52918
- font-family: 'Poppins', sans-serif;
52919
- font-size: 18px;
52920
- font-weight: 700;
52921
- color: #212121;
52922
- margin: 0 0 16px 0;
52923
- padding-right: 32px;
52924
- `;
52925
- const MessageContainer = styled__default["default"].div`
52926
- display: flex;
52927
- align-items: flex-start;
52928
- gap: 12px;
52929
- //margin-bottom: 5px;
52930
- `;
52931
- const IconWrapper$1 = styled__default["default"].div`
52932
- margin-top: 1px;
52933
- `;
52934
- const MessageTitle = styled__default["default"].h3`
52935
- font-family: 'Poppins', sans-serif;
52936
- font-size: 16px;
52937
- font-weight: 700;
52938
- color: #212121;
52939
- margin: 0 0 8px 0;
52940
- `;
52941
- const MessageMessage = styled__default["default"].p`
52942
- font-family: 'Poppins', sans-serif;
52943
- font-size: 16px;
52944
- font-weight: 400;
52945
- color: #212121;
52946
- margin: 0;
52947
- line-height: 1.5;
52948
- `;
52949
- const ButtonContainer = styled__default["default"].div`
52950
- display: flex;
52951
- gap: 12px;
52952
- justify-content: flex-end;
52953
- margin-top: 24px;
52954
- `;
52955
-
52956
- // eslint-disable-next-line react/prop-types
52957
- const ExclamationMarkIcon = _ref => {
52958
- let {
52959
- color = '#FF3949',
52960
- width = '16',
52961
- height = '16'
52962
- } = _ref;
52963
- return /*#__PURE__*/React__default["default"].createElement("svg", {
52964
- width: width,
52965
- height: height,
52966
- viewBox: "0 0 16 16",
52967
- fill: "none",
52968
- xmlns: "http://www.w3.org/2000/svg"
52969
- }, /*#__PURE__*/React__default["default"].createElement("path", {
52970
- 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",
52971
- fill: color
52972
- }));
52973
- };
52974
-
52975
- // MessageBox.jsx
52976
- const MessageBox = _ref => {
52977
- let {
52978
- isOpen = true,
52979
- onClose = () => {},
52980
- onConfirm = () => {},
52981
- title = "Title",
52982
- messageTitle = "",
52983
- messageText = "",
52984
- cancelText = "Cancel",
52985
- confirmText = "Confirm",
52986
- width = "400px",
52987
- height = "auto"
52988
- } = _ref;
52989
- if (!isOpen) return null;
52990
- const handleOverlayClick = e => {
52991
- if (e.target === e.currentTarget) {
52992
- onClose();
52993
- }
52994
- };
52995
-
52996
- // Function to calculate button width based on text length
52997
- const calculateButtonWidth = text => {
52998
- // Approximate character width for Poppins 14px font
52999
- const avgCharWidth = 8; // pixels per character
53000
- const padding = 24; // left + right padding
53001
- const minWidth = 60; // minimum button width
53002
-
53003
- const calculatedWidth = text.length * avgCharWidth + padding;
53004
- return Math.max(calculatedWidth, minWidth);
53005
- };
53006
- return /*#__PURE__*/React__default["default"].createElement(ModalOverlay, {
53007
- onClick: handleOverlayClick
53008
- }, /*#__PURE__*/React__default["default"].createElement(ModalContainer, {
53009
- $width: width,
53010
- $height: height
53011
- }, /*#__PURE__*/React__default["default"].createElement(CloseButton, {
53012
- onClick: onClose
53013
- }, /*#__PURE__*/React__default["default"].createElement(CloseXIcon, {
53014
- width: "22",
53015
- height: "22"
53016
- })), /*#__PURE__*/React__default["default"].createElement(ModalTitle, null, title), /*#__PURE__*/React__default["default"].createElement(MessageContainer, null, /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(ExclamationMarkIcon, {
53017
- color: "#F00021",
53018
- width: "16",
53019
- height: "16"
53020
- })), /*#__PURE__*/React__default["default"].createElement(MessageTitle, null, messageTitle)), /*#__PURE__*/React__default["default"].createElement(MessageContainer, null, /*#__PURE__*/React__default["default"].createElement(MessageMessage, null, messageText)), /*#__PURE__*/React__default["default"].createElement(ButtonContainer, null, /*#__PURE__*/React__default["default"].createElement(Button$1, {
53021
- text: cancelText,
53022
- borderRadius: "12px",
53023
- textColor: "#212121",
53024
- borderColor: "#B1B1B1",
53025
- backgroundColor: "#FFF",
53026
- hoverTextColor: "#212121",
53027
- hoverBackgroundColor: "#FFF",
53028
- hoverBorderColor: "#F00021",
53029
- disabledTextColor: "",
53030
- disabledBackgroundColor: "",
53031
- disabledBorderColor: "",
53032
- width: calculateButtonWidth(cancelText),
53033
- height: "45px",
53034
- onClick: onClose
53035
- }), /*#__PURE__*/React__default["default"].createElement(Button$1, {
53036
- text: confirmText,
53037
- borderRadius: "12px",
53038
- backgroundColor: "#F00021",
53039
- textColor: "#FFF",
53040
- borderColor: "#F00021",
53041
- hoverTextColor: "#FFF",
53042
- hoverBackgroundColor: "#ff7875",
53043
- hoverBorderColor: "#ff7875",
53044
- width: calculateButtonWidth(confirmText),
53045
- height: "45px",
53046
- onClick: onConfirm
53047
- }))));
53048
- };
53049
-
53050
52872
  // ToasterMessageBox.styles.js
53051
52873
 
53052
52874
  // Helper function to convert hex to rgba