sag_components 2.0.0-beta97 → 2.0.0-beta99

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
@@ -34,7 +34,7 @@ const ButtonItem = styled.div`
34
34
  height: ${props => props.height};
35
35
  color: ${props => props.disabled ? props.disabled_text_color : props.text_color};
36
36
  border: ${props => `1px solid ${props.disabled ? props.disabled_border_color : props.border_color}`};
37
- border-radius: 12px;
37
+ border-radius: ${props => props.borderRadius};
38
38
  background-color: ${props => props.disabled ? props.disabled_background_color : props.background_color};
39
39
  box-sizing: border-box;
40
40
  gap: 8px;
@@ -61,7 +61,7 @@ const Label$8 = styled.label`
61
61
  pointer-events: none;
62
62
  user-select: none;
63
63
  `;
64
- const IconWrapper$3 = styled.div`
64
+ const IconWrapper$4 = styled.div`
65
65
  display: flex;
66
66
  align-items: center;
67
67
  justify-content: center;
@@ -70,14 +70,13 @@ const IconWrapper$3 = styled.div`
70
70
  const InputCommit = styled.input`
71
71
  font-family: "Poppins", sans-serif;
72
72
  border: ${props => `0px solid ${props.disabled ? props.disabled_border_color : props.hover_border_color}`};
73
- border-radius: 8px;
74
73
  font-weight: 400;
75
74
  font-size: 14px;
76
75
  width: ${props => props.width};
77
76
  height: ${props => props.height};
78
77
  color: ${props => props.disabled ? props.disabled_text_color : props.text_color};
79
78
  border: ${props => `1px solid ${props.disabled ? props.disabled_border_color : props.border_color}`};
80
- border-radius: 12px;
79
+ border-radius: ${props => props.borderRadius};
81
80
  background-color: ${props => props.disabled ? props.disabled_background_color : props.background_color};
82
81
  cursor: pointer;
83
82
  padding: ${props => props.padding};
@@ -322,20 +321,23 @@ const ReselectIcon = ({
322
321
  fill: color
323
322
  }));
324
323
 
325
- const SearchIcon = ({
326
- width = '13',
327
- height = '13',
328
- color = '#212121'
329
- }) => /*#__PURE__*/React$1.createElement("svg", {
330
- width: width,
331
- height: height,
332
- viewBox: "0 0 13 13",
333
- fill: "none",
334
- xmlns: "http://www.w3.org/2000/svg"
335
- }, /*#__PURE__*/React$1.createElement("path", {
336
- d: "M8.625 4.875C8.625 3.53906 7.89844 2.32031 6.75 1.64062C5.57812 0.960938 4.14844 0.960938 3 1.64062C1.82812 2.32031 1.125 3.53906 1.125 4.875C1.125 6.23438 1.82812 7.45312 3 8.13281C4.14844 8.8125 5.57812 8.8125 6.75 8.13281C7.89844 7.45312 8.625 6.23438 8.625 4.875ZM7.89844 8.71875C7.05469 9.375 6 9.75 4.875 9.75C2.17969 9.75 0 7.57031 0 4.875C0 2.20312 2.17969 0 4.875 0C7.54688 0 9.75 2.20312 9.75 4.875C9.75 6.02344 9.35156 7.07812 8.69531 7.92188L11.8359 11.0391C12.0469 11.2734 12.0469 11.625 11.8359 11.8359C11.6016 12.0703 11.25 12.0703 11.0391 11.8359L7.89844 8.71875Z",
337
- fill: color
338
- }));
324
+ const SearchIcon = _ref => {
325
+ let {
326
+ width = '13',
327
+ height = '13',
328
+ color = '#212121'
329
+ } = _ref;
330
+ return /*#__PURE__*/React$1.createElement("svg", {
331
+ width: width,
332
+ height: height,
333
+ viewBox: "0 0 13 13",
334
+ fill: "none",
335
+ xmlns: "http://www.w3.org/2000/svg"
336
+ }, /*#__PURE__*/React$1.createElement("path", {
337
+ d: "M8.625 4.875C8.625 3.53906 7.89844 2.32031 6.75 1.64062C5.57812 0.960938 4.14844 0.960938 3 1.64062C1.82812 2.32031 1.125 3.53906 1.125 4.875C1.125 6.23438 1.82812 7.45312 3 8.13281C4.14844 8.8125 5.57812 8.8125 6.75 8.13281C7.89844 7.45312 8.625 6.23438 8.625 4.875ZM7.89844 8.71875C7.05469 9.375 6 9.75 4.875 9.75C2.17969 9.75 0 7.57031 0 4.875C0 2.20312 2.17969 0 4.875 0C7.54688 0 9.75 2.20312 9.75 4.875C9.75 6.02344 9.35156 7.07812 8.69531 7.92188L11.8359 11.0391C12.0469 11.2734 12.0469 11.625 11.8359 11.8359C11.6016 12.0703 11.25 12.0703 11.0391 11.8359L7.89844 8.71875Z",
338
+ fill: color
339
+ }));
340
+ };
339
341
 
340
342
  const PlusIcon = ({
341
343
  width = '17',
@@ -352,6 +354,21 @@ const PlusIcon = ({
352
354
  fill: "#066768"
353
355
  }));
354
356
 
357
+ const Plus = ({
358
+ width = 17,
359
+ height = 17,
360
+ fill = 'white'
361
+ }) => /*#__PURE__*/React$1.createElement("svg", {
362
+ width: width,
363
+ height: height,
364
+ viewBox: "0 0 17 17",
365
+ fill: "none",
366
+ xmlns: "http://www.w3.org/2000/svg"
367
+ }, /*#__PURE__*/React$1.createElement("path", {
368
+ d: "M9.34619 2.03369V7.65869H14.9712C15.4282 7.65869 15.8149 8.04541 15.8149 8.50244C15.8149 8.99463 15.4282 9.34619 14.9712 9.34619H9.34619V14.9712C9.34619 15.4634 8.95947 15.8149 8.50244 15.8149C8.01025 15.8149 7.65869 15.4634 7.65869 14.9712V9.34619H2.03369C1.5415 9.34619 1.18994 8.99463 1.18994 8.50244C1.18994 8.04541 1.5415 7.65869 2.03369 7.65869H7.65869V2.03369C7.65869 1.57666 8.01025 1.18994 8.50244 1.18994C8.95947 1.18994 9.34619 1.57666 9.34619 2.03369Z",
369
+ fill: fill
370
+ }));
371
+
355
372
  const Button$1 = props => {
356
373
  const {
357
374
  text = "",
@@ -363,6 +380,7 @@ const Button$1 = props => {
363
380
  textColor = "",
364
381
  backgroundColor = "",
365
382
  borderColor = "",
383
+ borderRadius = "12px",
366
384
  hoverTextColor = "",
367
385
  hoverBackgroundColor = "",
368
386
  hoverBorderColor = "",
@@ -392,7 +410,8 @@ const Button$1 = props => {
392
410
  maintenance: MaintenanceIcon,
393
411
  exit: ExitIcon,
394
412
  eye: EyeIcon,
395
- reselect: ReselectIcon
413
+ reselect: ReselectIcon,
414
+ plus: Plus
396
415
  };
397
416
  const getIcon = icon => {
398
417
  if (!icon || icon === "none") return null;
@@ -402,7 +421,7 @@ const Button$1 = props => {
402
421
  width: "16px",
403
422
  color: disabled ? disabledTextColor || "#B1B1B1" : hover ? hoverTextColor || (type === "secondary" ? "#229E38" : "#ffffff") : textColor || (type === "secondary" ? "#212121" : "#ffffff")
404
423
  };
405
- return /*#__PURE__*/React$1.createElement(IconWrapper$3, null, /*#__PURE__*/React$1.createElement(IconComponent, iconProps));
424
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, null, /*#__PURE__*/React$1.createElement(IconComponent, iconProps));
406
425
  };
407
426
  const commonProps = {
408
427
  width: width || null,
@@ -427,11 +446,13 @@ const Button$1 = props => {
427
446
  }, isSubmitButton ? /*#__PURE__*/React$1.createElement(InputCommit, _extends$1({
428
447
  className: clicked ? "InputCommit-clicked" : "InputCommit",
429
448
  value: text,
430
- type: "submit"
449
+ type: "submit",
450
+ borderRadius: borderRadius
431
451
  }, commonProps)) : /*#__PURE__*/React$1.createElement(ButtonItem, _extends$1({
432
452
  className: clicked ? "ButtonItem-clicked" : "ButtonItem",
433
453
  onMouseEnter: () => setHover(true),
434
- onMouseLeave: () => setHover(false)
454
+ onMouseLeave: () => setHover(false),
455
+ borderRadius: borderRadius
435
456
  }, commonProps), getIcon(leftIcon), /*#__PURE__*/React$1.createElement(Label$8, {
436
457
  className: "Label",
437
458
  disabled: disabled
@@ -1866,7 +1887,7 @@ const TitleAndValueContainer$4 = styled.div`
1866
1887
  flex-direction: column;
1867
1888
  padding: 0 20px;
1868
1889
  `;
1869
- const Title$j = styled.h4`
1890
+ const Title$k = styled.h4`
1870
1891
  font-weight: 400;
1871
1892
  font-size: 18px;
1872
1893
  margin: 0 0 8px;
@@ -2342,7 +2363,7 @@ const PieChart = props => {
2342
2363
  width: width
2343
2364
  }, !hideTitleAndValue && /*#__PURE__*/React$1.createElement(TitleAndValueContainer$4, {
2344
2365
  className: "TitleAndValueContainer"
2345
- }, /*#__PURE__*/React$1.createElement(Title$j, {
2366
+ }, /*#__PURE__*/React$1.createElement(Title$k, {
2346
2367
  className: "Title"
2347
2368
  }, title), /*#__PURE__*/React$1.createElement(CurrencySignAndFormattedValueContainer$2, {
2348
2369
  className: "CurrencySignAndFormattedValueContainer"
@@ -2883,7 +2904,7 @@ const Label$7 = styled.label`
2883
2904
  user-select: none;
2884
2905
  pointer-events: none;
2885
2906
  `;
2886
- const IconWrapper$2 = styled.div`
2907
+ const IconWrapper$3 = styled.div`
2887
2908
  display: flex;
2888
2909
  align-items: center;
2889
2910
  justify-content: center;
@@ -3007,7 +3028,7 @@ const LinkButton = _ref => {
3007
3028
  const color = disabled ? '#B1B1B1' : newTextColor;
3008
3029
  switch (icon.toLowerCase()) {
3009
3030
  case 'filter':
3010
- return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
3031
+ return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
3011
3032
  className: "FilterIcon"
3012
3033
  }, /*#__PURE__*/React$1.createElement(FilterIcon, {
3013
3034
  height: iconHeight,
@@ -3015,7 +3036,7 @@ const LinkButton = _ref => {
3015
3036
  color: color
3016
3037
  }));
3017
3038
  case 'plus':
3018
- return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
3039
+ return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
3019
3040
  className: "PlusIcon"
3020
3041
  }, /*#__PURE__*/React$1.createElement(PlusIcon, {
3021
3042
  height: iconHeight,
@@ -3023,7 +3044,7 @@ const LinkButton = _ref => {
3023
3044
  color: color
3024
3045
  }));
3025
3046
  case 'options':
3026
- return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
3047
+ return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
3027
3048
  className: "OptionsIcon"
3028
3049
  }, /*#__PURE__*/React$1.createElement(OptionsIcon, {
3029
3050
  height: iconHeight,
@@ -3031,7 +3052,7 @@ const LinkButton = _ref => {
3031
3052
  color: color
3032
3053
  }));
3033
3054
  case 'download':
3034
- return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
3055
+ return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
3035
3056
  className: "DownloadIcon"
3036
3057
  }, /*#__PURE__*/React$1.createElement(DownloadIcon, {
3037
3058
  height: iconHeight,
@@ -3039,7 +3060,7 @@ const LinkButton = _ref => {
3039
3060
  color: color
3040
3061
  }));
3041
3062
  case 'document':
3042
- return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
3063
+ return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
3043
3064
  className: "DocumentIcon"
3044
3065
  }, /*#__PURE__*/React$1.createElement(DocumentIcon, {
3045
3066
  height: iconHeight,
@@ -3047,7 +3068,7 @@ const LinkButton = _ref => {
3047
3068
  color: color
3048
3069
  }));
3049
3070
  case 'fly':
3050
- return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
3071
+ return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
3051
3072
  className: "FlyIcon"
3052
3073
  }, /*#__PURE__*/React$1.createElement(FlyIcon, {
3053
3074
  height: iconHeight,
@@ -3055,7 +3076,7 @@ const LinkButton = _ref => {
3055
3076
  color: color
3056
3077
  }));
3057
3078
  case 'bell':
3058
- return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
3079
+ return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
3059
3080
  className: "BellIcon"
3060
3081
  }, /*#__PURE__*/React$1.createElement(BellIcon, {
3061
3082
  height: iconHeight,
@@ -3063,7 +3084,7 @@ const LinkButton = _ref => {
3063
3084
  color: color
3064
3085
  }));
3065
3086
  case 'maintenance':
3066
- return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
3087
+ return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
3067
3088
  className: "MaintenanceIcon"
3068
3089
  }, /*#__PURE__*/React$1.createElement(MaintenanceIcon, {
3069
3090
  height: iconHeight,
@@ -3071,7 +3092,7 @@ const LinkButton = _ref => {
3071
3092
  color: color
3072
3093
  }));
3073
3094
  case 'exit':
3074
- return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
3095
+ return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
3075
3096
  className: "ExitIcon"
3076
3097
  }, /*#__PURE__*/React$1.createElement(ExitIcon, {
3077
3098
  height: iconHeight,
@@ -3079,7 +3100,7 @@ const LinkButton = _ref => {
3079
3100
  color: color
3080
3101
  }));
3081
3102
  case 'eye':
3082
- return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
3103
+ return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
3083
3104
  className: "EyeIcon"
3084
3105
  }, /*#__PURE__*/React$1.createElement(EyeIcon, {
3085
3106
  height: iconHeight,
@@ -3087,7 +3108,7 @@ const LinkButton = _ref => {
3087
3108
  color: color
3088
3109
  }));
3089
3110
  case 'arrowdown':
3090
- return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
3111
+ return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
3091
3112
  className: "ArrowDownIcon"
3092
3113
  }, /*#__PURE__*/React$1.createElement(MenuItemOpenIcon, {
3093
3114
  height: iconHeight,
@@ -3095,7 +3116,7 @@ const LinkButton = _ref => {
3095
3116
  color: color
3096
3117
  }));
3097
3118
  case 'arrowright':
3098
- return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
3119
+ return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
3099
3120
  className: "ArrowRightIcon"
3100
3121
  }, /*#__PURE__*/React$1.createElement(MenuItemRightIcon, {
3101
3122
  height: iconHeight,
@@ -3103,7 +3124,7 @@ const LinkButton = _ref => {
3103
3124
  color: color
3104
3125
  }));
3105
3126
  case 'select':
3106
- return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
3127
+ return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
3107
3128
  className: "SelectRightIcon"
3108
3129
  }, /*#__PURE__*/React$1.createElement(ArrowSelectIcon, {
3109
3130
  height: "16px",
@@ -3111,7 +3132,7 @@ const LinkButton = _ref => {
3111
3132
  color: color
3112
3133
  }));
3113
3134
  case 'info':
3114
- return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
3135
+ return /*#__PURE__*/React$1.createElement(IconWrapper$3, {
3115
3136
  className: "InfoIcon"
3116
3137
  }, /*#__PURE__*/React$1.createElement(InfoIcon, {
3117
3138
  height: iconHeight,
@@ -3400,13 +3421,14 @@ const LinnerDataBox = props => {
3400
3421
  const TextFieldContainer = styled.div`
3401
3422
  position: relative;
3402
3423
  width: ${props => props.width};
3403
- > svg {
3404
- position: absolute;
3405
- top: 50%;
3406
- transform: translateY(-50%);
3407
- left: 10px;
3408
-
3409
- }
3424
+ `;
3425
+ const IconWrapper$2 = styled.div`
3426
+ position: absolute;
3427
+ top: 50%;
3428
+ transform: translateY(-50%);
3429
+ left: ${props => props.position === 'left' ? '10px' : 'unset'};
3430
+ right: ${props => props.position === 'right' ? '10px' : 'unset'};
3431
+ cursor: pointer;
3410
3432
  `;
3411
3433
  const TextFieldInput = styled.input`
3412
3434
  width: 100%;
@@ -3417,7 +3439,7 @@ const TextFieldInput = styled.input`
3417
3439
  border-radius: 8px;
3418
3440
  border: 1px solid #B1B1B1;
3419
3441
  background: transparent;
3420
- text-indent: 14px;
3442
+ text-indent: ${props => props.position === 'left' ? '14px' : '0'};
3421
3443
  &:hover,
3422
3444
  &:focus {
3423
3445
  border: 1px solid #212121;
@@ -3429,10 +3451,12 @@ const TextFieldInput = styled.input`
3429
3451
 
3430
3452
  const SearchInput = props => {
3431
3453
  const {
3432
- placeholder,
3454
+ placeholder = 'Search',
3433
3455
  onTyping,
3434
- width,
3435
- height,
3456
+ width = '100%',
3457
+ height = '40px',
3458
+ position = 'left',
3459
+ iconColor = '#212121',
3436
3460
  className
3437
3461
  } = props;
3438
3462
  const handleInputChange = e => {
@@ -3441,26 +3465,18 @@ const SearchInput = props => {
3441
3465
  return /*#__PURE__*/React$1.createElement(TextFieldContainer, {
3442
3466
  className: className,
3443
3467
  width: width
3444
- }, /*#__PURE__*/React$1.createElement(TextFieldInput, {
3468
+ }, /*#__PURE__*/React$1.createElement(IconWrapper$2, {
3469
+ position: position
3470
+ }, /*#__PURE__*/React$1.createElement(SearchIcon, {
3471
+ color: iconColor
3472
+ })), /*#__PURE__*/React$1.createElement(TextFieldInput, {
3445
3473
  type: "search",
3474
+ id: "search-input",
3446
3475
  height: height,
3447
3476
  placeholder: placeholder,
3448
- onChange: handleInputChange
3449
- }), /*#__PURE__*/React$1.createElement(SearchIcon, null));
3450
- };
3451
- SearchInput.propTypes = {
3452
- placeholder: PropTypes.string,
3453
- width: PropTypes.string,
3454
- height: PropTypes.string,
3455
- onTyping: PropTypes.func,
3456
- className: PropTypes.string
3457
- };
3458
- SearchInput.defaultProps = {
3459
- placeholder: 'Search',
3460
- width: '100%',
3461
- height: '40px',
3462
- onTyping: () => {},
3463
- className: ''
3477
+ onChange: handleInputChange,
3478
+ position: position
3479
+ }));
3464
3480
  };
3465
3481
 
3466
3482
  const scrollableStyles$c = `
@@ -11896,7 +11912,7 @@ const Loader$1 = styled.span`
11896
11912
  animation: ${rotation$1} 1.5s infinite ease;
11897
11913
  transform: translateZ(0);
11898
11914
  `;
11899
- const TableWrapper$2 = styled.div`
11915
+ const TableWrapper$3 = styled.div`
11900
11916
  position: relative;
11901
11917
  width: ${props => `${props.width}`};
11902
11918
  height: ${props => `${props.height}`};
@@ -11906,7 +11922,7 @@ const TableWrapper$2 = styled.div`
11906
11922
  overflow-x: ${props => props.columnsNumber > props.maxColumnsNumber ? 'auto' : 'hidden'};
11907
11923
  ${scrollableStyles$9}
11908
11924
  `;
11909
- const Table$2 = styled.table`
11925
+ const Table$3 = styled.table`
11910
11926
  font-family: "Poppins", sans-serif;
11911
11927
  width: ${props => `${props.tableWidthSize}%`};
11912
11928
  table-layout: fixed;
@@ -12211,13 +12227,13 @@ const ReportTable = props => {
12211
12227
  return newState;
12212
12228
  });
12213
12229
  };
12214
- return /*#__PURE__*/React$1.createElement(ReportTableWrapper, null, /*#__PURE__*/React$1.createElement(TableWrapper$2, {
12230
+ return /*#__PURE__*/React$1.createElement(ReportTableWrapper, null, /*#__PURE__*/React$1.createElement(TableWrapper$3, {
12215
12231
  width: width,
12216
12232
  height: height,
12217
12233
  className: className,
12218
12234
  maxColumnsNumber: getMaxColnumber(),
12219
12235
  columnsNumber: columnsNumber
12220
- }, /*#__PURE__*/React$1.createElement(Table$2, {
12236
+ }, /*#__PURE__*/React$1.createElement(Table$3, {
12221
12237
  tableWidthSize: tableWidthSize
12222
12238
  }, /*#__PURE__*/React$1.createElement("thead", null, /*#__PURE__*/React$1.createElement(Tr, null, tableData.columnsHeadings.map((headline, index) => /*#__PURE__*/React$1.createElement(Th$1, {
12223
12239
  key: index
@@ -23853,22 +23869,21 @@ const DeleteIcon = styled.div`
23853
23869
  position: absolute;
23854
23870
  `;
23855
23871
 
23856
- const QuickFilterDropdownSingle = _ref => {
23857
- let {
23858
- label,
23859
- hoverColor,
23860
- options,
23861
- selectedValue,
23862
- placeHolder,
23863
- onChange,
23864
- disabled,
23865
- width,
23866
- error,
23867
- errorMessage,
23868
- xIconShow,
23869
- labelColor,
23870
- showLabelOnTop
23871
- } = _ref;
23872
+ const QuickFilterDropdownSingle = ({
23873
+ label,
23874
+ hoverColor,
23875
+ options,
23876
+ selectedValue,
23877
+ placeHolder,
23878
+ onChange,
23879
+ disabled,
23880
+ width,
23881
+ error,
23882
+ errorMessage,
23883
+ xIconShow,
23884
+ labelColor,
23885
+ showLabelOnTop
23886
+ }) => {
23872
23887
  const [isFocused, setIsFocused] = useState(false);
23873
23888
  const [showOptions, setShowOptions] = useState(false);
23874
23889
  const [inputValue, setInputValue] = useState("");
@@ -25106,7 +25121,7 @@ const TitleAndValueContainer$3 = styled.div`
25106
25121
  display: flex;
25107
25122
  flex-direction: column;
25108
25123
  `;
25109
- const Title$i = styled.h4`
25124
+ const Title$j = styled.h4`
25110
25125
  font-weight: 400;
25111
25126
  font-size: 20px;
25112
25127
  margin: 0;
@@ -25169,7 +25184,7 @@ const FormattedValue$3 = props => {
25169
25184
  width: width
25170
25185
  }, /*#__PURE__*/React$1.createElement(TitleAndValueContainer$3, {
25171
25186
  className: "TitleAndValueContainer"
25172
- }, title ? /*#__PURE__*/React$1.createElement(Title$i, {
25187
+ }, title ? /*#__PURE__*/React$1.createElement(Title$j, {
25173
25188
  className: "Title",
25174
25189
  width: width
25175
25190
  }, title) : '', showTopValue && /*#__PURE__*/React$1.createElement(CurrencySignAndFormattedValueContainer$1, {
@@ -25181,7 +25196,7 @@ const FormattedValue$3 = props => {
25181
25196
  className: "CurrencySignOrPercent"
25182
25197
  }, currencySign ? getCurrencySign(currencyType, value) : ''), dotCut ? getFormattedValue(value && Math.abs(value) > 0 && value % 1 !== 0 ? value?.toFixed(2) : value) : getNumberWithCommas(value), dotCut ? getFormattedUnits(value) : '', /*#__PURE__*/React$1.createElement(CurrencySignOrPercent, {
25183
25198
  className: "CurrencySignOrPercent"
25184
- }, isPercent ? '%' : ''))), subtitle ? /*#__PURE__*/React$1.createElement(Title$i, {
25199
+ }, isPercent ? '%' : ''))), subtitle ? /*#__PURE__*/React$1.createElement(Title$j, {
25185
25200
  className: "Title",
25186
25201
  width: width
25187
25202
  }, subtitle) : '')));
@@ -25251,7 +25266,7 @@ const TooltipTitle$8 = styled.div`
25251
25266
  const TitleAndValueContainer$2 = styled.div`
25252
25267
  padding: 0 1rem;
25253
25268
  `;
25254
- const Title$h = styled.h5`
25269
+ const Title$i = styled.h5`
25255
25270
  font-weight: 500;
25256
25271
  font-size: 18px;
25257
25272
  line-height: 20px;
@@ -25380,7 +25395,7 @@ const TitleAndIconContainer = styled.div`
25380
25395
  display: flex;
25381
25396
  align-items: center;
25382
25397
  `;
25383
- const Title$g = styled.h4`
25398
+ const Title$h = styled.h4`
25384
25399
  font-weight: 400;
25385
25400
  font-size: 14px;
25386
25401
  line-height: 27px;
@@ -25434,7 +25449,7 @@ const PerformanceAnalyticsLegend = props => {
25434
25449
  color: item.iconColor
25435
25450
  }) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$3 ? /*#__PURE__*/React$1.createElement(LegendLineIcon, {
25436
25451
  color: item.iconColor
25437
- }) : '', /*#__PURE__*/React$1.createElement(Title$g, {
25452
+ }) : '', /*#__PURE__*/React$1.createElement(Title$h, {
25438
25453
  id: "Title",
25439
25454
  width: width
25440
25455
  }, item.title))))) : '');
@@ -25589,7 +25604,7 @@ const BarChartsByWeeks = props => {
25589
25604
  ref: controlsContainerRef
25590
25605
  }, /*#__PURE__*/React$1.createElement(Controls$a, {
25591
25606
  height: getControlsHeight()
25592
- }, showTitle && /*#__PURE__*/React$1.createElement(TitleAndValueContainer$2, null, /*#__PURE__*/React$1.createElement(Title$h, null, title), /*#__PURE__*/React$1.createElement(FormattedValue$3, {
25607
+ }, showTitle && /*#__PURE__*/React$1.createElement(TitleAndValueContainer$2, null, /*#__PURE__*/React$1.createElement(Title$i, null, title), /*#__PURE__*/React$1.createElement(FormattedValue$3, {
25593
25608
  title: headerValueTopTitle,
25594
25609
  subtitle: headerValueBottomTitle,
25595
25610
  showTopValue: showHeaderTopValue,
@@ -25822,7 +25837,7 @@ const TitleAndValueContainer$1 = styled.div`
25822
25837
  flex-direction: column;
25823
25838
  padding: 0 1.25em; /* 20px → 1.25em */
25824
25839
  `;
25825
- const Title$f = styled.h4`
25840
+ const Title$g = styled.h4`
25826
25841
  font-weight: 500;
25827
25842
  font-size: ${props => props.titleFontSize || '1.125em'}; /* Default: 18px → 1.125em */
25828
25843
  margin: 0;
@@ -26025,7 +26040,7 @@ const TotalDoughnutChart = props => {
26025
26040
  width: width
26026
26041
  }, !hideTitleAndValue && /*#__PURE__*/React$1.createElement(TitleAndValueContainer$1, {
26027
26042
  className: "TitleAndValueContainer"
26028
- }, /*#__PURE__*/React$1.createElement(Title$f, {
26043
+ }, /*#__PURE__*/React$1.createElement(Title$g, {
26029
26044
  className: "Title",
26030
26045
  fontSize: titleFontSize
26031
26046
  }, title), /*#__PURE__*/React$1.createElement(CurrencySignAndFormattedValueContainer, {
@@ -26347,7 +26362,7 @@ const TotalValue = styled.div`
26347
26362
  font-size: 20px;
26348
26363
  }
26349
26364
  `;
26350
- const Title$e = styled.h4`
26365
+ const Title$f = styled.h4`
26351
26366
  font-size: 18px;
26352
26367
  font-weight: 400;
26353
26368
  line-height: 1;
@@ -26504,7 +26519,7 @@ const TotalHorizontalCharts = props => {
26504
26519
  }, chartsData?.length > 0 ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, !hideTitle || !hideTotalValue ? /*#__PURE__*/React$1.createElement(CardHeader, {
26505
26520
  ref: topHeader,
26506
26521
  className: "CardHeader"
26507
- }, !hideTitle ? /*#__PURE__*/React$1.createElement(Title$e, null, title) : '', !hideTotalValue ? /*#__PURE__*/React$1.createElement(TotalValue, {
26522
+ }, !hideTitle ? /*#__PURE__*/React$1.createElement(Title$f, null, title) : '', !hideTotalValue ? /*#__PURE__*/React$1.createElement(TotalValue, {
26508
26523
  className: "TotalValue"
26509
26524
  }, currencySign && /*#__PURE__*/React$1.createElement(CurrencySign, {
26510
26525
  className: "CurrencySign"
@@ -26977,7 +26992,7 @@ const ItemContainer = styled.div`
26977
26992
  flex-direction: column;
26978
26993
  flex-wrap: wrap;
26979
26994
  `;
26980
- const Title$d = styled.h4`
26995
+ const Title$e = styled.h4`
26981
26996
  font-size: 18px;
26982
26997
  font-weight: 500;
26983
26998
  margin: 0;
@@ -27093,7 +27108,7 @@ const SalesAndROI = props => {
27093
27108
  showBorderShadow: showBorderShadow
27094
27109
  }, /*#__PURE__*/React$1.createElement(TitleAndValueContainer, {
27095
27110
  id: "TitleAndValueContainer"
27096
- }, /*#__PURE__*/React$1.createElement(Title$d, {
27111
+ }, /*#__PURE__*/React$1.createElement(Title$e, {
27097
27112
  id: "Title"
27098
27113
  }, title), showBanner && /*#__PURE__*/React$1.createElement(OutBanner, {
27099
27114
  id: "OutBanner",
@@ -27192,7 +27207,7 @@ const TitleContainer$1 = styled.div`
27192
27207
  margin: 0;
27193
27208
  border-bottom: 1px solid #b1b1b1;
27194
27209
  `;
27195
- const Title$c = styled.p`
27210
+ const Title$d = styled.p`
27196
27211
  font-weight: 400;
27197
27212
  font-size: 24px;
27198
27213
  margin: 0;
@@ -27412,7 +27427,7 @@ const PopupCharts = props => {
27412
27427
  height: height,
27413
27428
  width: width,
27414
27429
  onClick: e => e.stopPropagation()
27415
- }, /*#__PURE__*/React$1.createElement(TitleContainer$1, null, /*#__PURE__*/React$1.createElement(Title$c, null, title), /*#__PURE__*/React$1.createElement(CloseXIconContainer, {
27430
+ }, /*#__PURE__*/React$1.createElement(TitleContainer$1, null, /*#__PURE__*/React$1.createElement(Title$d, null, title), /*#__PURE__*/React$1.createElement(CloseXIconContainer, {
27416
27431
  onClick: e => closePopupCharts(e)
27417
27432
  }, /*#__PURE__*/React$1.createElement(CloseXIcon, null))), /*#__PURE__*/React$1.createElement(ChartsContainer, {
27418
27433
  id: "ChartsContainer",
@@ -27510,7 +27525,7 @@ const TopToggleListMainContainer = styled.div`
27510
27525
  padding: 0 24px;
27511
27526
  width: ${props => props.width};
27512
27527
  `;
27513
- const Title$b = styled.h4`
27528
+ const Title$c = styled.h4`
27514
27529
  font-size: 14px;
27515
27530
  font-weight: 600;
27516
27531
  margin: 20px 0 12px;
@@ -27540,7 +27555,7 @@ const TopToggleList = props => {
27540
27555
  } = props;
27541
27556
  return /*#__PURE__*/React$1.createElement(TopToggleListMainContainer, {
27542
27557
  width: width
27543
- }, /*#__PURE__*/React$1.createElement(Title$b, null, title), /*#__PURE__*/React$1.createElement(ListContainer, {
27558
+ }, /*#__PURE__*/React$1.createElement(Title$c, null, title), /*#__PURE__*/React$1.createElement(ListContainer, {
27544
27559
  height: height
27545
27560
  }, list.map(item => /*#__PURE__*/React$1.createElement(ListItem, {
27546
27561
  key: item.value
@@ -27602,7 +27617,7 @@ const TitleContainer = styled.div`
27602
27617
  justify-content: flex-start;
27603
27618
  margin: 0 0 10px 0;
27604
27619
  `;
27605
- const Title$a = styled.h3`
27620
+ const Title$b = styled.h3`
27606
27621
  user-select: none;
27607
27622
  text-align: left;
27608
27623
  margin: 0;
@@ -27877,7 +27892,7 @@ const Heatmap = props => {
27877
27892
  className: "HeatmapWrapper"
27878
27893
  }, /*#__PURE__*/React$1.createElement(TitleContainer, {
27879
27894
  className: "TitleContainer"
27880
- }, /*#__PURE__*/React$1.createElement(Title$a, {
27895
+ }, /*#__PURE__*/React$1.createElement(Title$b, {
27881
27896
  className: "Title"
27882
27897
  }, title)), refreshRequired && renderBars(), !refreshRequired && renderBars(), renderLegend()));
27883
27898
  };
@@ -28296,7 +28311,7 @@ const TooltipTitle$7 = styled.div`
28296
28311
  font-size: 14px;
28297
28312
  font-weight: 600;
28298
28313
  `;
28299
- const Title$9 = styled.h5`
28314
+ const Title$a = styled.h5`
28300
28315
  font-weight: 500;
28301
28316
  font-size: 18px;
28302
28317
  line-height: 20px;
@@ -28457,7 +28472,7 @@ const BarChart = props => {
28457
28472
  height: height,
28458
28473
  width: width,
28459
28474
  ref: controlsContainerRef
28460
- }, /*#__PURE__*/React$1.createElement(Controls$7, null, /*#__PURE__*/React$1.createElement(Title$9, null, title), /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
28475
+ }, /*#__PURE__*/React$1.createElement(Controls$7, null, /*#__PURE__*/React$1.createElement(Title$a, null, title), /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
28461
28476
  width: "100%",
28462
28477
  height: "100%"
28463
28478
  }, /*#__PURE__*/React$1.createElement(BarChart$1, {
@@ -28630,7 +28645,7 @@ const Controls$6 = styled.div`
28630
28645
  flex-direction: column;
28631
28646
  background-color: white;
28632
28647
  `;
28633
- const Title$8 = styled.h5`
28648
+ const Title$9 = styled.h5`
28634
28649
  font-size: 18px;
28635
28650
  font-weight: 400;
28636
28651
  margin: 0 0 30px;
@@ -28896,7 +28911,7 @@ const DoubleBarSingleLine = props => {
28896
28911
  noDataText: noDataText
28897
28912
  }) : /*#__PURE__*/React$1.createElement(Controls$6, {
28898
28913
  className: "Controls"
28899
- }, title && title.trim() !== '' && /*#__PURE__*/React$1.createElement(Title$8, null, title), /*#__PURE__*/React$1.createElement(ChartsWrapper, {
28914
+ }, title && title.trim() !== '' && /*#__PURE__*/React$1.createElement(Title$9, null, title), /*#__PURE__*/React$1.createElement(ChartsWrapper, {
28900
28915
  width: dynamicWidth //{hasScroll ? `${data.length * 178}px` : 'auto'}
28901
28916
  }, /*#__PURE__*/React$1.createElement(LineChartWrapper, null, /*#__PURE__*/React$1.createElement(ResponsiveContainer, null, /*#__PURE__*/React$1.createElement(LineChart, _extends$1({
28902
28917
  data: transformedData
@@ -29000,7 +29015,7 @@ const CheckboxGroupContainer = styled.div`
29000
29015
  height: 21px;
29001
29016
  gap: 20px;
29002
29017
  `;
29003
- const Title$7 = styled.h5`
29018
+ const Title$8 = styled.h5`
29004
29019
  font-weight: 500;
29005
29020
  font-size: 18px;
29006
29021
  line-height: 20px;
@@ -29328,7 +29343,7 @@ const AreaChart = props => {
29328
29343
  height: height
29329
29344
  }) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(HeaderContainer$2, {
29330
29345
  "data-testid": "header-container"
29331
- }, /*#__PURE__*/React$1.createElement(Title$7, {
29346
+ }, /*#__PURE__*/React$1.createElement(Title$8, {
29332
29347
  "data-testid": "title"
29333
29348
  }, title), /*#__PURE__*/React$1.createElement(CheckboxGroupContainer, {
29334
29349
  "data-testid": "checkbox-group-container"
@@ -29827,7 +29842,7 @@ const HeaderContainer$1 = styled.div`
29827
29842
  align-items: center;
29828
29843
  padding-bottom: 8px;
29829
29844
  `;
29830
- const Title$6 = styled.h3`
29845
+ const Title$7 = styled.h3`
29831
29846
  font-size: 18px;
29832
29847
  font-weight: 400;
29833
29848
  margin: 0;
@@ -29891,7 +29906,7 @@ const BreakdownPanel = props => {
29891
29906
  height: height
29892
29907
  }) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(HeaderContainer$1, {
29893
29908
  "data-testid": "header-container"
29894
- }, /*#__PURE__*/React$1.createElement(Title$6, {
29909
+ }, /*#__PURE__*/React$1.createElement(Title$7, {
29895
29910
  "data-testid": "title"
29896
29911
  }, title)), /*#__PURE__*/React$1.createElement(CategorySalesMainContainer, {
29897
29912
  "data-testid": "category-sales-main-container"
@@ -31407,7 +31422,7 @@ const ChartContainer = styled.div`
31407
31422
  width: 100%;
31408
31423
  height: calc(100% - 70px);
31409
31424
  `;
31410
- const Title$5 = styled.h2`
31425
+ const Title$6 = styled.h2`
31411
31426
  color: #212121;
31412
31427
  font-family: "Poppins";
31413
31428
  font-size: 18px;
@@ -32053,7 +32068,7 @@ const BrushChart = props => {
32053
32068
  return /*#__PURE__*/React$1.createElement(Container, {
32054
32069
  height: height,
32055
32070
  width: width
32056
- }, /*#__PURE__*/React$1.createElement(Title$5, null, title), /*#__PURE__*/React$1.createElement(SegmentedContainer, {
32071
+ }, /*#__PURE__*/React$1.createElement(Title$6, null, title), /*#__PURE__*/React$1.createElement(SegmentedContainer, {
32057
32072
  gap: "8px",
32058
32073
  options: segmentedbuttonOptions ? segmentedbuttonOptions.map(value => ({
32059
32074
  value
@@ -32117,7 +32132,7 @@ const Controls$3 = styled.div`
32117
32132
  padding: 12px 32px;
32118
32133
  }
32119
32134
  `;
32120
- const Title$4 = styled.span`
32135
+ const Title$5 = styled.span`
32121
32136
  color: #212121;
32122
32137
  display: inline-block;
32123
32138
  font-size: 18px;
@@ -32378,7 +32393,7 @@ const SingleBarLineCharts = _ref => {
32378
32393
  height: height
32379
32394
  }, data?.length > 0 ? /*#__PURE__*/React$1.createElement(Controls$3, {
32380
32395
  className: "Controls"
32381
- }, title !== '' && /*#__PURE__*/React$1.createElement(Title$4, null, title), totalsData.length > 0 && /*#__PURE__*/React$1.createElement(LinnerDataBoxWrap, {
32396
+ }, title !== '' && /*#__PURE__*/React$1.createElement(Title$5, null, title), totalsData.length > 0 && /*#__PURE__*/React$1.createElement(LinnerDataBoxWrap, {
32382
32397
  width: "40%",
32383
32398
  height: "60px",
32384
32399
  data: totalsData
@@ -32670,7 +32685,7 @@ const TooltipTitle$2 = styled.div`
32670
32685
  font-size: 14px;
32671
32686
  font-weight: 600;
32672
32687
  `;
32673
- const Title$3 = styled.h5`
32688
+ const Title$4 = styled.h5`
32674
32689
  font-weight: 500;
32675
32690
  font-size: 18px;
32676
32691
  line-height: 20px;
@@ -32846,7 +32861,7 @@ const BarChartWithAreaChart = props => {
32846
32861
  ref: controlsContainerRef
32847
32862
  }, /*#__PURE__*/React$1.createElement(Controls$2, {
32848
32863
  className: "Controls"
32849
- }, /*#__PURE__*/React$1.createElement(Title$3, null, title), /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
32864
+ }, /*#__PURE__*/React$1.createElement(Title$4, null, title), /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
32850
32865
  height: barChartHeight
32851
32866
  }, /*#__PURE__*/React$1.createElement(ComposedChart, {
32852
32867
  data: barChartData
@@ -32919,7 +32934,7 @@ const Controls$1 = styled.div`
32919
32934
  padding: 12px 32px;
32920
32935
  }
32921
32936
  `;
32922
- const Title$2 = styled.span`
32937
+ const Title$3 = styled.span`
32923
32938
  color: #212121;
32924
32939
  display: inline-block;
32925
32940
  font-size: 18px;
@@ -33074,7 +33089,7 @@ const BarChartTwoRows = props => {
33074
33089
  ref: controlsContainerRef
33075
33090
  }, /*#__PURE__*/React$1.createElement(Controls$1, {
33076
33091
  className: "Controls"
33077
- }, title !== '' && /*#__PURE__*/React$1.createElement(Title$2, null, title), /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
33092
+ }, title !== '' && /*#__PURE__*/React$1.createElement(Title$3, null, title), /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
33078
33093
  height: barChartHeight
33079
33094
  }, /*#__PURE__*/React$1.createElement(BarChart$1, {
33080
33095
  width: width,
@@ -33153,7 +33168,7 @@ const TooltipTitle = styled.div`
33153
33168
  font-size: 14px;
33154
33169
  font-weight: 600;
33155
33170
  `;
33156
- const Title$1 = styled.h5`
33171
+ const Title$2 = styled.h5`
33157
33172
  font-weight: 500;
33158
33173
  font-size: 18px;
33159
33174
  line-height: 20px;
@@ -33276,7 +33291,7 @@ const TwoBarCharts = props => {
33276
33291
  height: height,
33277
33292
  width: width,
33278
33293
  ref: controlsContainerRef
33279
- }, /*#__PURE__*/React$1.createElement(Controls, null, /*#__PURE__*/React$1.createElement(Title$1, null, title), /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
33294
+ }, /*#__PURE__*/React$1.createElement(Controls, null, /*#__PURE__*/React$1.createElement(Title$2, null, title), /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
33280
33295
  width: "100%",
33281
33296
  height: "100%"
33282
33297
  }, /*#__PURE__*/React$1.createElement(BarChart$1, {
@@ -33456,7 +33471,7 @@ const TitleDiv = styled.div`
33456
33471
  font-size: 10px;
33457
33472
  }
33458
33473
  `;
33459
- const TableWrapper$1 = styled.div`
33474
+ const TableWrapper$2 = styled.div`
33460
33475
  overflow-x: auto;
33461
33476
  margin-bottom: 22px;
33462
33477
  &::-webkit-scrollbar {
@@ -33473,7 +33488,7 @@ const TableWrapper$1 = styled.div`
33473
33488
  border-radius: 5px;
33474
33489
  }
33475
33490
  `;
33476
- const Table$1 = styled.table`
33491
+ const Table$2 = styled.table`
33477
33492
  width: 100%;
33478
33493
  border-collapse: collapse;
33479
33494
  overflow: auto;
@@ -33703,7 +33718,7 @@ const CollapseData = props => {
33703
33718
  }) : /*#__PURE__*/React$1.createElement(ArrowDownIcon, {
33704
33719
  width: "11px",
33705
33720
  height: "12px"
33706
- })), /*#__PURE__*/React$1.createElement(TitleDiv, null, `${parseFloat(section.value.toFixed(1))}${section.valueType}`))), activeIndex === section.key && /*#__PURE__*/React$1.createElement(TableWrapper$1, null, /*#__PURE__*/React$1.createElement(Table$1, null, /*#__PURE__*/React$1.createElement("thead", null, /*#__PURE__*/React$1.createElement("tr", null, section.table.map((headline, i) => /*#__PURE__*/React$1.createElement(Th, {
33721
+ })), /*#__PURE__*/React$1.createElement(TitleDiv, null, `${parseFloat(section.value.toFixed(1))}${section.valueType}`))), activeIndex === section.key && /*#__PURE__*/React$1.createElement(TableWrapper$2, null, /*#__PURE__*/React$1.createElement(Table$2, null, /*#__PURE__*/React$1.createElement("thead", null, /*#__PURE__*/React$1.createElement("tr", null, section.table.map((headline, i) => /*#__PURE__*/React$1.createElement(Th, {
33707
33722
  key: `${i + headline}`
33708
33723
  }, headline.title)))), /*#__PURE__*/React$1.createElement("tbody", null, /*#__PURE__*/React$1.createElement("tr", null, section.table.map((data, i) => {
33709
33724
  if (data.value !== null) {
@@ -33803,7 +33818,7 @@ const CloseButton = styled.button`
33803
33818
  align-self: flex-end;
33804
33819
  }
33805
33820
  `;
33806
- const Title = styled.h2`
33821
+ const Title$1 = styled.h2`
33807
33822
  position: absolute;
33808
33823
  display: flex;
33809
33824
  align-items: center;
@@ -33981,7 +33996,7 @@ const InsightsCarousel = _ref => {
33981
33996
  const nextIndex = (currentIndex + 1) % totalChildren;
33982
33997
  return /*#__PURE__*/React$1.createElement(Overlay, {
33983
33998
  className: className
33984
- }, /*#__PURE__*/React$1.createElement(ModalContent, null, /*#__PURE__*/React$1.createElement(Header$1, null, /*#__PURE__*/React$1.createElement(Title, {
33999
+ }, /*#__PURE__*/React$1.createElement(ModalContent, null, /*#__PURE__*/React$1.createElement(Header$1, null, /*#__PURE__*/React$1.createElement(Title$1, {
33985
34000
  $titleColor: titleColor
33986
34001
  }, /*#__PURE__*/React$1.cloneElement(icon, {
33987
34002
  fill: iconColor
@@ -35079,7 +35094,6 @@ const InputSubContainer = styled.div`
35079
35094
  const StyledInput = styled.input`
35080
35095
  width: calc(100% - 10px);
35081
35096
  height: 20px;
35082
- font-family: Poppins;
35083
35097
  font-weight: 400;
35084
35098
  font-size: 14px;
35085
35099
  outline: none;
@@ -35397,14 +35411,15 @@ ToggleSwitch.propTypes = {
35397
35411
  disabled: PropTypes.bool
35398
35412
  };
35399
35413
 
35400
- const TableWrapper = styled.div`
35414
+ const TableWrapper$1 = styled.div`
35401
35415
  width: ${props => props.width};
35402
35416
  height: ${props => props.height};
35403
35417
  padding: 20px;
35404
35418
  background-color: #fff;
35405
35419
  box-sizing: border-box;
35420
+ position: relative;
35406
35421
  `;
35407
- const Table = styled.table`
35422
+ const Table$1 = styled.table`
35408
35423
  width: 100%;
35409
35424
  margin-top: 24px;
35410
35425
  border-spacing: unset;
@@ -35463,7 +35478,7 @@ const ContainerTable = props => {
35463
35478
  useEffect(() => {
35464
35479
  calculateRows();
35465
35480
  }, [height]);
35466
- return /*#__PURE__*/React$1.createElement(TableWrapper, {
35481
+ return /*#__PURE__*/React$1.createElement(TableWrapper$1, {
35467
35482
  ref: TableWrapperRef,
35468
35483
  width: width,
35469
35484
  height: height
@@ -35479,7 +35494,7 @@ const ContainerTable = props => {
35479
35494
  style: {
35480
35495
  marginTop: 24
35481
35496
  }
35482
- }), /*#__PURE__*/React$1.createElement(Table, null, /*#__PURE__*/React$1.createElement(Thead, null, /*#__PURE__*/React$1.createElement(StyledRow, null, columnsWidths.map((width, index) => /*#__PURE__*/React$1.createElement(HeaderCell, {
35497
+ }), /*#__PURE__*/React$1.createElement(Table$1, null, /*#__PURE__*/React$1.createElement(Thead, null, /*#__PURE__*/React$1.createElement(StyledRow, null, columnsWidths.map((width, index) => /*#__PURE__*/React$1.createElement(HeaderCell, {
35483
35498
  key: `header-cell-${index}`,
35484
35499
  width: `${width}px`
35485
35500
  }, /*#__PURE__*/React$1.createElement(Skeleton, {
@@ -35647,5 +35662,188 @@ const MenuRoute = props => {
35647
35662
  }), /*#__PURE__*/React$1.isValidElement(item.label) ? item.label : item.label))));
35648
35663
  };
35649
35664
 
35650
- export { AreaChart, BannerEventBoxList, BarChart, BarChartTwoRows, BarChartWithAreaChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, BrushChart, BubbleChart, Build, Button$1 as Button, CollapseData, CollapseHeader, ContainerTable, DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, DownloadProgress, DropdownNew, EventDetailsCard, EventList, Execute, FilterPanel, Heatmap, IconButton, Input, InsightsCarousel, LinkButton, LinnerDataBox, MarketShareDescription, MenuRoute, ModalWithOverlay, OneColumnContainer, PerformanceAnalyticsLegend, PieChart, PopupCharts, QuickFilter, ReportTable, SingleBarLineCharts, TabMenu, ToggleSwitch, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts, Track, TwoBarCharts, WeeksPicker };
35665
+ const TableWrapper = styled.div`
35666
+ width: ${props => props.width};
35667
+ height: ${props => props.height};
35668
+ background-color: #fff;
35669
+ box-sizing: border-box;
35670
+ font-family: 'Poppins', sans-serif;
35671
+ `;
35672
+ styled.table`
35673
+ width: 100%;
35674
+ margin-top: 24px;
35675
+ border-spacing: unset;
35676
+ `;
35677
+ styled.thead``;
35678
+ styled.th`
35679
+ font-weight: 600;
35680
+ width: ${props => props.width};
35681
+ padding-right: 8px;
35682
+ padding-bottom: 12px;
35683
+ `;
35684
+ styled.tbody``;
35685
+ styled.td`
35686
+ font-weight: 600;
35687
+ width: ${props => props.width};
35688
+ padding-right: 8px;
35689
+ padding-bottom: 12px;
35690
+ `;
35691
+ styled.tr`
35692
+ border-bottom: 1px solid #C8C8C8;
35693
+ `;
35694
+ const NoInfoFound = styled.div`
35695
+ height: 100%;
35696
+ box-sizing: border-box;
35697
+ color: #212121;
35698
+ position: relative;
35699
+ `;
35700
+ const TableTop = styled.div`
35701
+ display: flex;
35702
+ align-items: center;
35703
+ justify-content: space-between;
35704
+ `;
35705
+ const Title = styled.h2`
35706
+ font-size: 24px;
35707
+ font-weight: 500;
35708
+ margin: 0;
35709
+ `;
35710
+ const SubTitle = styled.span`
35711
+ font-size: 14px;
35712
+ color: #8B8989;
35713
+ `;
35714
+ const NoEventsWrapper = styled.div`
35715
+ display: flex;
35716
+ align-items: center;
35717
+ justify-content: center;
35718
+ position: relative;
35719
+ margin-bottom: 14px;
35720
+ `;
35721
+ const NoEventsMessage = styled.span`
35722
+ font-size: 18px;
35723
+ font-weight: 400;
35724
+ margin-bottom: 14px;
35725
+ text-align: center;
35726
+ display: block;
35727
+ > strong {
35728
+ font-size: 24px;
35729
+ font-weight: 500;
35730
+ }
35731
+ `;
35732
+
35733
+ const NoEvents = ({
35734
+ width = '251',
35735
+ height = '250'
35736
+ }) => /*#__PURE__*/React$1.createElement("svg", {
35737
+ width: width,
35738
+ height: height,
35739
+ viewBox: "0 0 251 250",
35740
+ fill: "none",
35741
+ xmlns: "http://www.w3.org/2000/svg"
35742
+ }, /*#__PURE__*/React$1.createElement("rect", {
35743
+ x: "0.5",
35744
+ width: "250",
35745
+ height: "250",
35746
+ rx: "125",
35747
+ fill: "#F3F7F7"
35748
+ }), /*#__PURE__*/React$1.createElement("rect", {
35749
+ x: "79.0715",
35750
+ y: "82.0254",
35751
+ width: "91.9643",
35752
+ height: "31.25",
35753
+ fill: "#B4D1D2"
35754
+ }), /*#__PURE__*/React$1.createElement("path", {
35755
+ d: "M201.056 149.717V149.686C201.054 149.691 201.052 149.696 201.052 149.701C201.05 149.696 201.048 149.691 201.047 149.686V149.717C200.635 151.213 199.681 152.283 198.186 152.927C199.681 153.57 200.635 154.64 201.047 156.136V156.167C201.049 156.162 201.051 156.157 201.052 156.152C201.053 156.157 201.055 156.162 201.056 156.167V156.136C201.468 154.64 202.422 153.57 203.917 152.927C202.422 152.283 201.468 151.213 201.056 149.717ZM34.6198 71.7965V71.765C34.618 71.7702 34.6163 71.7755 34.6154 71.7808C34.6136 71.7755 34.6119 71.7702 34.611 71.765V71.7965C34.1985 73.2927 33.2449 74.3625 31.75 75.0059C33.2449 75.6494 34.1985 76.7192 34.611 78.2153V78.2468C34.6127 78.2416 34.6145 78.2363 34.6154 78.2311C34.6171 78.2363 34.6189 78.2416 34.6198 78.2468V78.2153C35.0322 76.7192 35.9859 75.6494 37.4808 75.0059C35.9859 74.3625 35.0322 73.2927 34.6198 71.7965ZM216.389 202.361V202.329C216.387 202.335 216.386 202.34 216.385 202.345C216.383 202.34 216.381 202.335 216.38 202.329V202.361C215.968 203.857 215.014 204.927 213.519 205.57C215.014 206.214 215.968 207.283 216.38 208.78V208.811C216.382 208.806 216.384 208.801 216.385 208.795C216.386 208.801 216.388 208.806 216.389 208.811V208.78C216.801 207.283 217.755 206.214 219.25 205.57C217.755 204.927 216.801 203.857 216.389 202.361ZM182.433 182.494V182.43C182.43 182.442 182.427 182.451 182.424 182.463C182.421 182.451 182.418 182.442 182.415 182.43V182.494C181.59 185.486 179.683 187.626 176.693 188.913C179.683 190.2 181.589 192.34 182.415 195.332V195.396C182.418 195.384 182.421 195.375 182.424 195.363C182.427 195.375 182.43 195.384 182.433 195.396V195.332C183.258 192.34 185.165 190.2 188.155 188.913C185.165 187.626 183.259 185.486 182.433 182.494ZM54.8385 110.651V110.587C54.8359 110.598 54.8324 110.608 54.8298 110.619C54.8271 110.608 54.8236 110.598 54.821 110.587V110.651C53.9961 113.642 52.0887 115.783 49.099 117.07C52.0887 118.357 53.9952 120.497 54.821 123.489V123.552C54.8236 123.541 54.8271 123.531 54.8298 123.52C54.8324 123.531 54.8359 123.541 54.8385 123.552V123.489C55.6635 120.497 57.5708 118.357 60.5605 117.07C57.5708 115.783 55.6643 113.642 54.8385 110.651ZM81.9624 38.3393V38.2754C81.9598 38.2868 81.9563 38.2964 81.9536 38.3078C81.951 38.2964 81.9475 38.2868 81.9449 38.2754V38.3393C81.1199 41.3307 79.2126 43.4712 76.2229 44.7581C79.2126 46.045 81.1191 48.1855 81.9449 51.177V51.2409C81.9475 51.2295 81.951 51.2198 81.9536 51.2085C81.9563 51.2198 81.9598 51.2295 81.9624 51.2409V51.177C82.7873 48.1855 84.6947 46.045 87.6844 44.7581C84.6947 43.4712 82.7882 41.3307 81.9624 38.3393Z",
35756
+ fill: "#F2BB91"
35757
+ }), /*#__PURE__*/React$1.createElement("path", {
35758
+ d: "M49.3076 149.106C49.5096 148.924 49.8322 148.924 50.0342 149.106C50.2444 149.295 50.2443 149.609 50.0342 149.798L41.8711 157.145C41.6691 157.327 41.3465 157.327 41.1445 157.145C40.9344 156.956 40.9342 156.642 41.1445 156.453L49.3076 149.106ZM47.1309 154.494C47.8309 153.864 48.9601 153.864 49.6602 154.494C50.3686 155.131 50.3687 156.171 49.6602 156.809C48.9601 157.439 47.8309 157.439 47.1309 156.809C46.4223 156.171 46.4223 155.131 47.1309 154.494ZM48.9346 155.186C48.6384 154.919 48.1526 154.919 47.8564 155.186C47.5689 155.445 47.5688 155.858 47.8564 156.117C48.1526 156.383 48.6384 156.383 48.9346 156.117C49.2221 155.858 49.222 155.445 48.9346 155.186ZM41.5186 149.442C42.2186 148.812 43.3479 148.812 44.0479 149.442C44.7564 150.08 44.7564 151.121 44.0479 151.758C43.3478 152.388 42.2186 152.388 41.5186 151.758C40.81 151.121 40.81 150.08 41.5186 149.442ZM43.3223 150.134C43.0262 149.868 42.5403 149.868 42.2441 150.134C41.9564 150.393 41.9564 150.807 42.2441 151.066C42.5403 151.332 43.0261 151.332 43.3223 151.066C43.61 150.807 43.61 150.393 43.3223 150.134Z",
35759
+ fill: "#9BC2C3",
35760
+ stroke: "#9BC2C3",
35761
+ "stroke-width": "0.276243"
35762
+ }), /*#__PURE__*/React$1.createElement("path", {
35763
+ d: "M136.808 199.106C137.01 198.924 137.332 198.924 137.534 199.106C137.744 199.295 137.744 199.609 137.534 199.798L129.371 207.145C129.169 207.327 128.846 207.327 128.645 207.145C128.434 206.956 128.434 206.642 128.645 206.453L136.808 199.106ZM134.631 204.494C135.331 203.864 136.46 203.864 137.16 204.494C137.869 205.131 137.869 206.171 137.16 206.809C136.46 207.439 135.331 207.439 134.631 206.809C133.922 206.171 133.922 205.131 134.631 204.494ZM136.435 205.186C136.138 204.919 135.653 204.919 135.356 205.186C135.069 205.445 135.069 205.858 135.356 206.117C135.653 206.383 136.138 206.383 136.435 206.117C136.722 205.858 136.722 205.445 136.435 205.186ZM129.019 199.442C129.719 198.812 130.848 198.812 131.548 199.442C132.256 200.08 132.256 201.121 131.548 201.758C130.848 202.388 129.719 202.388 129.019 201.758C128.31 201.121 128.31 200.08 129.019 199.442ZM130.822 200.134C130.526 199.868 130.04 199.868 129.744 200.134C129.456 200.393 129.456 200.807 129.744 201.066C130.04 201.332 130.526 201.332 130.822 201.066C131.11 200.807 131.11 200.393 130.822 200.134Z",
35764
+ fill: "#9BC2C3",
35765
+ stroke: "#9BC2C3",
35766
+ "stroke-width": "0.276243"
35767
+ }), /*#__PURE__*/React$1.createElement("path", {
35768
+ d: "M147.872 44.6279C148.041 44.4584 148.317 44.4584 148.486 44.6279C148.655 44.7974 148.655 45.0717 148.486 45.2412L142.172 51.5557C142.002 51.725 141.728 51.725 141.558 51.5557C141.389 51.3861 141.389 51.1109 141.558 50.9414L147.872 44.6279ZM146.188 49.2578C146.743 48.703 147.642 48.703 148.197 49.2578C148.752 49.8126 148.752 50.7118 148.197 51.2666C147.642 51.8214 146.743 51.8214 146.188 51.2666C145.633 50.7118 145.633 49.8126 146.188 49.2578ZM147.584 49.8711C147.368 49.6553 147.017 49.6553 146.802 49.8711C146.586 50.0868 146.586 50.4376 146.802 50.6533C147.017 50.8691 147.368 50.8691 147.584 50.6533C147.8 50.4376 147.8 50.0868 147.584 49.8711ZM141.847 44.917C142.402 44.3622 143.301 44.3622 143.856 44.917C144.411 45.4718 144.411 46.371 143.856 46.9258C143.301 47.4805 142.402 47.4804 141.847 46.9258C141.293 46.371 141.293 45.4718 141.847 44.917ZM143.242 45.5303C143.026 45.3148 142.676 45.3146 142.461 45.5303C142.245 45.7459 142.245 46.0957 142.461 46.3115C142.676 46.5273 143.026 46.5273 143.242 46.3115C143.458 46.0958 143.458 45.746 143.242 45.5303Z",
35769
+ fill: "#9BC2C3",
35770
+ stroke: "#9BC2C3",
35771
+ "stroke-width": "0.276243"
35772
+ }), /*#__PURE__*/React$1.createElement("path", {
35773
+ d: "M104.824 204.819V204.853C105.322 206.447 106.47 207.587 108.272 208.272C106.47 208.958 105.321 210.098 104.824 211.691V211.725C104.822 211.719 104.82 211.714 104.819 211.708C104.817 211.714 104.815 211.719 104.813 211.725V211.691C104.316 210.098 103.167 208.958 101.366 208.272C103.167 207.587 104.316 206.447 104.813 204.853V204.819C104.815 204.825 104.817 204.831 104.819 204.837C104.82 204.831 104.822 204.825 104.824 204.819Z",
35774
+ fill: "#F2BB91"
35775
+ }), /*#__PURE__*/React$1.createElement("path", {
35776
+ d: "M170.333 116.525H81.4886V168.301C81.4886 172.916 85.0486 176.335 89.0397 176.335H162.782C166.773 176.335 170.333 172.916 170.333 168.301V116.525ZM143.996 91.7463V83.7126H107.825V91.7463C107.824 93.3501 106.49 94.65 104.842 94.65C103.194 94.65 101.859 93.3501 101.858 91.7463V83.7126H89.0397C85.0486 83.7126 81.4886 87.1311 81.4886 91.7463V110.714H170.333V91.7463C170.333 87.1311 166.773 83.7126 162.782 83.7126H149.963V91.7463C149.962 93.3501 148.628 94.65 146.98 94.65C145.332 94.65 143.997 93.3501 143.996 91.7463ZM176.3 168.301C176.3 175.766 170.427 182.142 162.782 182.142H89.0397C81.3947 182.142 75.5217 175.766 75.5217 168.301V91.7463C75.5217 84.2812 81.3947 77.9018 89.0397 77.9018H101.858V69.8715C101.858 68.2671 103.193 66.9678 104.842 66.9678C106.49 66.9678 107.825 68.2671 107.825 69.8715V77.9018H143.996V69.8715C143.996 68.2671 145.331 66.9678 146.98 66.9678C148.628 66.9678 149.963 68.2671 149.963 69.8715V77.9018H162.782C170.427 77.9018 176.3 84.2812 176.3 91.7463V168.301Z",
35777
+ fill: "#519595"
35778
+ }), /*#__PURE__*/React$1.createElement("path", {
35779
+ "fill-rule": "evenodd",
35780
+ "clip-rule": "evenodd",
35781
+ d: "M114.622 129.954C116.552 129.954 118.356 130.941 119.55 132.411L120.021 133.068L120.039 133.093L120.049 133.117C121.121 135.065 121.132 137.505 120.039 139.391L120.032 139.405C118.863 141.349 116.806 142.537 114.622 142.537C112.644 142.537 110.817 141.634 109.607 140.101L109.129 139.405L109.118 139.391L109.122 139.388C108.03 137.502 108.039 135.064 109.111 133.117L109.122 133.093L109.139 133.068C110.298 131.237 112.341 129.954 114.622 129.954ZM114.622 139.841C116.534 139.841 118.221 138.278 118.221 136.245C118.221 134.315 116.552 132.65 114.622 132.65C112.59 132.65 111.023 134.334 111.023 136.245C111.023 138.26 112.608 139.841 114.622 139.841Z",
35782
+ fill: "#519595"
35783
+ }), /*#__PURE__*/React$1.createElement("path", {
35784
+ d: "M138.966 130.358C139.839 129.795 141.08 129.89 141.831 130.639C142.581 131.389 142.675 132.628 142.112 133.5L141.831 133.848L112.137 163.503C111.28 164.359 109.782 164.359 108.925 163.503C108.067 162.646 108.067 161.151 108.925 160.294L138.618 130.639L138.966 130.358Z",
35785
+ fill: "#519595"
35786
+ }), /*#__PURE__*/React$1.createElement("path", {
35787
+ "fill-rule": "evenodd",
35788
+ "clip-rule": "evenodd",
35789
+ d: "M141.145 153.978C139.951 152.508 138.147 151.521 136.217 151.521C133.936 151.521 131.893 152.804 130.734 154.635L130.717 154.66L130.706 154.684C129.635 156.631 129.622 159.073 130.713 160.958L130.724 160.972C131.896 162.923 133.957 164.104 136.217 164.104C138.402 164.104 140.458 162.916 141.627 160.972L141.634 160.958C142.727 159.072 142.717 156.632 141.644 154.684L141.634 154.66L141.616 154.635L141.145 153.978ZM136.217 161.408C138.129 161.408 139.817 159.845 139.817 157.813C139.817 155.882 138.147 154.217 136.217 154.217C134.185 154.217 132.618 155.901 132.618 157.813C132.618 159.827 134.203 161.408 136.217 161.408Z",
35790
+ fill: "#519595"
35791
+ }), /*#__PURE__*/React$1.createElement("circle", {
35792
+ cx: "171.036",
35793
+ cy: "176.668",
35794
+ r: "22.3214",
35795
+ fill: "#F3F7F7",
35796
+ stroke: "#519595",
35797
+ "stroke-width": "5.35714"
35798
+ }), /*#__PURE__*/React$1.createElement("path", {
35799
+ d: "M185.4 175.847C185.735 176.182 185.924 176.637 185.924 177.111C185.924 177.585 185.736 178.04 185.4 178.375C185.065 178.711 184.61 178.899 184.136 178.899L173.279 178.897L173.281 189.754C173.273 190.223 173.081 190.67 172.746 190.999C172.412 191.327 171.962 191.511 171.493 191.511C171.024 191.511 170.574 191.327 170.239 190.998C169.905 190.67 169.713 190.223 169.704 189.754L169.703 178.896L158.845 178.894C158.608 178.898 158.372 178.855 158.151 178.767C157.931 178.679 157.73 178.548 157.56 178.381C157.391 178.215 157.256 178.016 157.164 177.797C157.073 177.578 157.025 177.343 157.025 177.106C157.025 176.868 157.072 176.633 157.164 176.414C157.256 176.195 157.39 175.997 157.56 175.83C157.729 175.664 157.93 175.533 158.15 175.445C158.371 175.357 158.607 175.314 158.844 175.318L169.702 175.32L169.7 164.463C169.708 163.994 169.9 163.547 170.234 163.218C170.569 162.89 171.019 162.705 171.488 162.706C171.957 162.706 172.407 162.89 172.741 163.219C173.076 163.547 173.268 163.994 173.276 164.463L173.278 175.321L184.136 175.323C184.61 175.323 185.065 175.511 185.4 175.847Z",
35800
+ fill: "#519595"
35801
+ }));
35802
+
35803
+ const Table = props => {
35804
+ const {
35805
+ width = '100%',
35806
+ height = 'auto',
35807
+ tableTitle = 'All Events',
35808
+ data = [],
35809
+ counter = 0,
35810
+ onButtonClick = () => {},
35811
+ buttonColor = '#066768',
35812
+ buttonHoverColor = '#388586',
35813
+ showSideButton = true,
35814
+ onSideButtonClick = () => {},
35815
+ sideButtonColor = '#066768',
35816
+ sideButtonHoverColor = '#388586'
35817
+ } = props;
35818
+ return /*#__PURE__*/React$1.createElement(TableWrapper, {
35819
+ width: width,
35820
+ height: height
35821
+ }, data.length === 0 ? /*#__PURE__*/React$1.createElement(NoInfoFound, null, /*#__PURE__*/React$1.createElement(TableTop, null, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Title, null, tableTitle), /*#__PURE__*/React$1.createElement(SubTitle, null, "No Events")), showSideButton && /*#__PURE__*/React$1.createElement(Button$1, {
35822
+ height: "45px",
35823
+ leftIcon: "Plus",
35824
+ text: "New Event",
35825
+ borderRadius: "12px",
35826
+ backgroundColor: sideButtonColor,
35827
+ hoverBackgroundColor: sideButtonHoverColor,
35828
+ onClick: onSideButtonClick
35829
+ })), /*#__PURE__*/React$1.createElement(NoEventsWrapper, null, /*#__PURE__*/React$1.createElement(NoEvents, null)), /*#__PURE__*/React$1.createElement(NoEventsMessage, null, /*#__PURE__*/React$1.createElement("strong", null, "You haven\u2019t created any events yet"), /*#__PURE__*/React$1.createElement("br", null), "Let\u2019s get started and create your first one!"), /*#__PURE__*/React$1.createElement(Button$1, {
35830
+ height: "45px",
35831
+ leftIcon: "Plus",
35832
+ text: "New Event",
35833
+ borderRadius: "12px",
35834
+ backgroundColor: buttonColor,
35835
+ hoverBackgroundColor: buttonHoverColor,
35836
+ onClick: onButtonClick
35837
+ })) : /*#__PURE__*/React$1.createElement(TableTop, null, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Title, null, tableTitle), /*#__PURE__*/React$1.createElement(SubTitle, null, counter === 0 ? 'No' : counter, " Events")), showSideButton && /*#__PURE__*/React$1.createElement(Button$1, {
35838
+ height: "45px",
35839
+ leftIcon: "Plus",
35840
+ text: "New Event",
35841
+ borderRadius: "12px",
35842
+ backgroundColor: sideButtonColor,
35843
+ hoverBackgroundColor: sideButtonHoverColor,
35844
+ onClick: onSideButtonClick
35845
+ })));
35846
+ };
35847
+
35848
+ export { AreaChart, BannerEventBoxList, BarChart, BarChartTwoRows, BarChartWithAreaChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, BrushChart, BubbleChart, Build, Button$1 as Button, CollapseData, CollapseHeader, ContainerTable, DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, DownloadProgress, DropdownNew, EventDetailsCard, EventList, Execute, FilterPanel, Heatmap, IconButton, Input, InsightsCarousel, LinkButton, LinnerDataBox, MarketShareDescription, MenuRoute, ModalWithOverlay, OneColumnContainer, PerformanceAnalyticsLegend, PieChart, PopupCharts, QuickFilter, ReportTable, SearchInput, SingleBarLineCharts, TabMenu, Table, ToggleSwitch, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts, Track, TwoBarCharts, WeeksPicker };
35651
35849
  //# sourceMappingURL=index.esm.js.map