sag_components 2.0.0-beta209 → 2.0.0-beta211

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
@@ -2094,7 +2094,7 @@ const NoDataFoundMessage = props => {
2094
2094
  }, noDataText));
2095
2095
  };
2096
2096
 
2097
- const scrollableStyles$f = `
2097
+ const scrollableStyles$g = `
2098
2098
  overflow-y: auto;
2099
2099
 
2100
2100
  &::-webkit-scrollbar {
@@ -2123,7 +2123,7 @@ const ControlsContainer$e = styled.div`
2123
2123
  display: flex;
2124
2124
  align-items: center;
2125
2125
  @media (max-width: 1536px) {
2126
- ${scrollableStyles$f}
2126
+ ${scrollableStyles$g}
2127
2127
  }
2128
2128
 
2129
2129
  > * {
@@ -3805,7 +3805,7 @@ const SearchInput$1 = props => {
3805
3805
  }));
3806
3806
  };
3807
3807
 
3808
- const scrollableStyles$e = `
3808
+ const scrollableStyles$f = `
3809
3809
  overflow-y: auto;
3810
3810
 
3811
3811
  &::-webkit-scrollbar {
@@ -3888,7 +3888,7 @@ const PresentationSlider = styled.div`
3888
3888
  `;
3889
3889
  const Body = styled.div`
3890
3890
  width: 100%;
3891
- ${scrollableStyles$e}
3891
+ ${scrollableStyles$f}
3892
3892
  position: relative;
3893
3893
  overflow-x: hidden;
3894
3894
  box-sizing: border-box;
@@ -8742,7 +8742,7 @@ const MenuItemUpIcon = _ref => {
8742
8742
  };
8743
8743
 
8744
8744
  /* eslint-disable no-nested-ternary */
8745
- const scrollableStyles$d = `
8745
+ const scrollableStyles$e = `
8746
8746
  overflow-y: auto;
8747
8747
 
8748
8748
  &::-webkit-scrollbar {
@@ -8886,7 +8886,7 @@ const OptionsSubContainer$3 = styled.ul`
8886
8886
  z-index: 101;
8887
8887
  top: 100%;
8888
8888
  /* left: 0; */
8889
- ${scrollableStyles$d}
8889
+ ${scrollableStyles$e}
8890
8890
  list-style: none;
8891
8891
  font-weight: 400;
8892
8892
  margin: 0;
@@ -9236,7 +9236,7 @@ const CheckBoxNotCheckedIcon = _ref => {
9236
9236
  };
9237
9237
 
9238
9238
  /* eslint-disable no-nested-ternary */
9239
- const scrollableStyles$c = `
9239
+ const scrollableStyles$d = `
9240
9240
  overflow-y: auto;
9241
9241
 
9242
9242
  &::-webkit-scrollbar {
@@ -9381,7 +9381,7 @@ const OptionsSubContainer$2 = styled.ul`
9381
9381
  z-index: 101;
9382
9382
  top: 100%;
9383
9383
  /* left: 0; */
9384
- ${scrollableStyles$c}
9384
+ ${scrollableStyles$d}
9385
9385
  list-style: none;
9386
9386
  font-weight: 400;
9387
9387
  margin: 0;
@@ -10580,23 +10580,24 @@ const QuarterPopupPicker = ({
10580
10580
  };
10581
10581
 
10582
10582
  /* eslint-disable import/no-extraneous-dependencies */
10583
- const QuarterPicker = ({
10584
- availableQuarters,
10585
- // ["Q1-2024"]
10586
- label,
10587
- onChange,
10588
- borderRadius,
10589
- required,
10590
- width,
10591
- height,
10592
- placeholder,
10593
- disabled,
10594
- borderColor,
10595
- borderColorFocus,
10596
- textColor,
10597
- selectedValue,
10598
- startYear
10599
- }) => {
10583
+ const QuarterPicker = _ref => {
10584
+ let {
10585
+ availableQuarters,
10586
+ // ["Q1-2024"]
10587
+ label,
10588
+ onChange,
10589
+ borderRadius,
10590
+ required,
10591
+ width,
10592
+ height,
10593
+ placeholder,
10594
+ disabled,
10595
+ borderColor,
10596
+ borderColorFocus,
10597
+ textColor,
10598
+ selectedValue,
10599
+ startYear
10600
+ } = _ref;
10600
10601
  const [isFocused, setIsFocused] = useState(false);
10601
10602
  const [isOpen, setIsOpen] = useState(false);
10602
10603
  const [value, setValue] = useState('');
@@ -11038,22 +11039,23 @@ const MonthPopupPicker = ({
11038
11039
  };
11039
11040
 
11040
11041
  /* eslint-disable import/no-extraneous-dependencies */
11041
- const MonthPicker = ({
11042
- availableMonths,
11043
- label,
11044
- onChange,
11045
- borderRadius,
11046
- required,
11047
- width,
11048
- height,
11049
- placeholder,
11050
- disabled,
11051
- borderColor,
11052
- borderColorFocus,
11053
- textColor,
11054
- selectedValue,
11055
- startYear
11056
- }) => {
11042
+ const MonthPicker = _ref => {
11043
+ let {
11044
+ availableMonths,
11045
+ label,
11046
+ onChange,
11047
+ borderRadius,
11048
+ required,
11049
+ width,
11050
+ height,
11051
+ placeholder,
11052
+ disabled,
11053
+ borderColor,
11054
+ borderColorFocus,
11055
+ textColor,
11056
+ selectedValue,
11057
+ startYear
11058
+ } = _ref;
11057
11059
  const [isFocused, setIsFocused] = useState(false);
11058
11060
  const [isOpen, setIsOpen] = useState(false);
11059
11061
  const [value, setValue] = useState('');
@@ -11980,7 +11982,7 @@ const SortIcon$1 = _ref => {
11980
11982
  }))));
11981
11983
  };
11982
11984
 
11983
- const scrollableStyles$b = `
11985
+ const scrollableStyles$c = `
11984
11986
  overflow-y: auto;
11985
11987
 
11986
11988
  &::-webkit-scrollbar {
@@ -12215,7 +12217,7 @@ const TableWrapper$3 = styled.div`
12215
12217
  border: 1px solid #dddddd;
12216
12218
  border-radius: ${props => props.columnsNumber > props.maxColumnsNumber ? ' 12px 12px 6px 6px' : '12px'};
12217
12219
  overflow-x: ${props => props.columnsNumber > props.maxColumnsNumber ? 'auto' : 'hidden'};
12218
- ${scrollableStyles$b}
12220
+ ${scrollableStyles$c}
12219
12221
  `;
12220
12222
  const Table$3 = styled.table`
12221
12223
  font-family: "Poppins", sans-serif;
@@ -13292,7 +13294,7 @@ const BannerEventBoxList = props => {
13292
13294
  })), showDraft && /*#__PURE__*/React$1.createElement(DraftTag$1, null, "DRAFT")) : children));
13293
13295
  };
13294
13296
 
13295
- const scrollableStyles$a = `
13297
+ const scrollableStyles$b = `
13296
13298
  overflow-y: auto;
13297
13299
 
13298
13300
  &::-webkit-scrollbar {
@@ -13329,7 +13331,7 @@ const Modal$1 = styled.div`
13329
13331
  width: 79%;
13330
13332
  max-width: 1500px;
13331
13333
  margin: 0 auto;
13332
- ${scrollableStyles$a}
13334
+ ${scrollableStyles$b}
13333
13335
  `;
13334
13336
  const ModalHeader$2 = styled.div`
13335
13337
  display: flex;
@@ -13338,7 +13340,7 @@ const ModalHeader$2 = styled.div`
13338
13340
  margin-bottom: 32px;
13339
13341
  `;
13340
13342
  const ModalBody$1 = styled.div`
13341
- ${scrollableStyles$a}
13343
+ ${scrollableStyles$b}
13342
13344
  max-height: 80vh;
13343
13345
  `;
13344
13346
  const ModalTitle$2 = styled.h5`
@@ -24164,21 +24166,22 @@ const DeleteIcon = styled.div`
24164
24166
  position: absolute;
24165
24167
  `;
24166
24168
 
24167
- const QuickFilterDropdownSingle = ({
24168
- label,
24169
- hoverColor,
24170
- options,
24171
- selectedValue,
24172
- placeHolder,
24173
- onChange,
24174
- disabled,
24175
- width,
24176
- error,
24177
- errorMessage,
24178
- xIconShow,
24179
- labelColor,
24180
- showLabelOnTop
24181
- }) => {
24169
+ const QuickFilterDropdownSingle = _ref => {
24170
+ let {
24171
+ label,
24172
+ hoverColor,
24173
+ options,
24174
+ selectedValue,
24175
+ placeHolder,
24176
+ onChange,
24177
+ disabled,
24178
+ width,
24179
+ error,
24180
+ errorMessage,
24181
+ xIconShow,
24182
+ labelColor,
24183
+ showLabelOnTop
24184
+ } = _ref;
24182
24185
  const [isFocused, setIsFocused] = useState(false);
24183
24186
  const [showOptions, setShowOptions] = useState(false);
24184
24187
  const [inputValue, setInputValue] = useState("");
@@ -24395,101 +24398,98 @@ QuickFilterDropdownSingle.defaultProps = {
24395
24398
  showLabelOnTop: true
24396
24399
  };
24397
24400
 
24401
+ const scrollableStyles$a = `
24402
+ overflow-y: auto;
24403
+ &::-webkit-scrollbar {
24404
+ width: 4px;
24405
+ }
24406
+ &::-webkit-scrollbar-track {
24407
+ background: #E8E8E8;
24408
+ border-radius: 5px;
24409
+ }
24410
+ &::-webkit-scrollbar-thumb {
24411
+ background: #D0D0D0;
24412
+ border-radius: 5px;
24413
+ }
24414
+ `;
24398
24415
  const DropdownWrapper = styled.div`
24399
- position: relative;
24400
- display: flex;
24401
- flex-direction: column;
24402
- align-content: center;
24403
- justify-content: center;
24404
- align-items: flex-start;
24405
- width: ${props => props.width || '300px'};
24406
- font-family: "Poppins", sans-serif;
24407
- font-weight: 400;
24416
+ position: relative;
24417
+ display: flex;
24418
+ flex-direction: column;
24419
+ align-content: center;
24420
+ justify-content: center;
24421
+ align-items: flex-start;
24422
+ width: ${props => props.width || '300px'};
24423
+ min-width: ${props => props.width || '300px'};
24424
+ max-width: ${props => props.width || '300px'};
24425
+ font-family: "Poppins", sans-serif;
24426
+ font-weight: 400;
24408
24427
  font-size: 14px;
24409
24428
  border-radius: 10px;
24410
24429
  `;
24411
24430
  const Label$5 = styled.label`
24412
- font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
24413
- font-weight: 400;
24414
- padding-inline-end: 5px;
24415
- padding-inline-start: 5px;
24416
- margin-right: 10px;
24417
- z-index: 2;
24418
- color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
24419
- background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
24420
- position: absolute;
24421
- top: ${props => props.isFocused || props.hasValue ? '0px' : '27px'};
24422
- left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
24423
- font-family: Poppins;
24424
- transform: translateY(-50%);
24425
- transition: ${props => props.showLabelOnTop ? 'top 0.3s ease, font-size 0.3s ease, color 0.3s ease' : ''} ;
24431
+ font-size: 14px;
24432
+ font-weight: 500;
24433
+ color: ${props => props.disabled ? '#D0D0D0' : '212121'};
24434
+ white-space: nowrap;
24435
+ `;
24436
+ const InputContainer$2 = styled.div`
24426
24437
  display: flex;
24438
+ justify-content: space-between;
24439
+ align-content: center;
24440
+ white-space: pre-wrap;
24427
24441
  align-items: center;
24442
+ overflow: hidden;
24443
+ padding: 6px 16px;
24444
+ margin-bottom: 8px;
24445
+ height: ${props => props.height || '38px'};
24446
+ min-height: ${props => props.height || '38px'};
24447
+ max-height: ${props => props.height || '38px'};
24448
+ width: 100%;
24428
24449
  box-sizing: border-box;
24429
- gap: 4px;
24430
- &:hover {
24431
- cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
24432
- }
24433
- `;
24434
- const InputContainer$2 = styled.div`
24435
- display: flex;
24436
- flex-direction: row;
24437
- flex-wrap: nowrap;
24438
- justify-content: flex-start;
24439
- align-content: center;
24440
- white-space: pre-wrap;
24441
- align-items: center;
24442
- overflow: hidden;
24443
- padding: 0 5px 0 0;
24444
- margin-bottom: 8px;
24445
- gap: 4px;
24446
- width: 100%;
24447
- height: 100%;
24448
- box-sizing: border-box;
24449
- background-color: transparent;
24450
- border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
24451
- font-family: "Poppins", sans-serif;
24452
- font-weight: 400;
24453
- font-size: 14px;
24454
- border-radius: 12px;
24455
- outline: none;
24456
- color: ${props => props.disabled ? '#888' : '#212121'};
24450
+ border: 1px solid
24451
+ ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
24452
+ font-family: "Poppins", sans-serif;
24453
+ font-weight: 400;
24454
+ font-size: 14px;
24455
+ border-radius: 9px;
24456
+ outline: none;
24457
+ color: ${props => props.disabled ? '#888' : '#212121'};
24458
+
24457
24459
  &:hover {
24458
- border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
24460
+ border: 1px solid
24461
+ ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.hoverColor || '#212121'};
24459
24462
  cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
24460
24463
  }
24461
- &:focus {
24462
- border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
24464
+
24465
+ &:focus {
24466
+ border: 1px solid
24467
+ ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
24463
24468
  }
24464
24469
  `;
24465
24470
  const InputSubContainer$1 = styled.div`
24466
- display: flex;
24467
- flex-direction: column;
24468
- flex-wrap: nowrap;
24469
- align-content: center;
24470
- align-items: flex-start;
24471
- justify-content: center;
24472
- white-space: pre-wrap;
24473
- overflow: hidden;
24474
- padding: 10px 4px 10px 10px;
24475
- width: 100%;
24476
- height: 50px;
24477
- box-sizing: border-box;
24478
- background-color: transparent;
24479
- border-radius: 12px;
24480
- outline: none;
24481
- color: ${props => props.disabled ? '#888' : '#212121'};
24471
+ display: flex;
24472
+ align-items: center;
24473
+ color: ${props => props.disabled ? '#888' : '#212121'};
24474
+ gap: 4px;
24475
+ flex: 1;
24476
+ overflow: hidden;
24477
+ min-width: 0;
24478
+ max-width: calc(100% - 40px);
24482
24479
  `;
24483
24480
  const StyledInput$2 = styled.input`
24484
- width: calc(100% - 20px);
24485
- height: 25px;
24486
- font-family: Poppins;
24481
+ width: 100%;
24482
+ height: 20px;
24483
+ font-family: "Poppins";
24487
24484
  font-weight: 400;
24488
24485
  font-size: 14px;
24489
- outline: none;
24490
- background-color: transparent;
24491
- color: ${props => props.disabled ? '#888' : '#212121'};
24492
- border: none;
24486
+ outline: none;
24487
+ color: ${props => props.disabled ? '#888' : '#212121'};
24488
+ border: none;
24489
+ background-color: transparent;
24490
+ &::placeholder {
24491
+ color: ${props => props.disabled ? '#D0D0D0' : '#b1b1b1'};
24492
+ }
24493
24493
  `;
24494
24494
  const OptionsContainer$1 = styled.div`
24495
24495
  margin: 0;
@@ -24516,10 +24516,12 @@ const OptionsSubContainer = styled.ul`
24516
24516
  background-color: #fff;
24517
24517
  display: ${props => props.showoptions && props.filteredoptions?.length > 0 ? 'block' : 'none'};
24518
24518
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
24519
- max-height: 400px;
24520
- overflow: auto;
24519
+ max-height: ${props => props.dropdownHeight || '400px'};
24520
+ ${scrollableStyles$a}
24521
24521
  `;
24522
24522
  const OptionItem = styled.li`
24523
+ display: flex;
24524
+ align-items: center;
24523
24525
  gap: 8px;
24524
24526
  padding: 10px;
24525
24527
  cursor: pointer;
@@ -24540,34 +24542,34 @@ const ErrorMessage$1 = styled.div`
24540
24542
  margin-top: 5px;
24541
24543
  `;
24542
24544
  const SelectedOptionsContainer = styled.div`
24543
- display: flex;
24544
- flex-direction: row;
24545
- flex-wrap: nowrap;
24546
- justify-content: flex-start;
24547
- align-content: center;
24548
- align-items: center;
24549
- white-space: pre-wrap;
24550
- overflow: hidden;
24551
- padding: 0;
24552
- font-weight: 400;
24553
- border-top: none;
24554
- border-radius: 4px;
24555
- background-color: #fff;
24556
- gap: 4px;
24557
- `;
24558
- const SelectedOptionItem = styled.div`
24559
- display: flex;
24560
- margin: 0;
24561
- flex-wrap: nowrap;
24562
- white-space: pre-wrap;
24545
+ display: flex;
24546
+ flex-direction: row;
24547
+ align-items: center;
24548
+ gap: 4px;
24549
+ flex-wrap: nowrap;
24563
24550
  overflow: hidden;
24551
+ flex-shrink: 0;
24552
+ min-width: 0;
24553
+ max-width: 170px;
24554
+ `;
24555
+ const SelectedOptionItem = styled.div`
24556
+ display: flex;
24557
+ align-items: center;
24564
24558
  cursor: pointer;
24565
24559
  color: #212121;
24566
24560
  background-color: #E3E4E5;
24567
- border-radius: 4px;
24568
- align-items: center;
24569
- padding: 4px 6px;
24561
+ border-radius: 4px;
24562
+ padding: 2px 4px;
24570
24563
  font-size: 12px;
24564
+ height: 20px;
24565
+ white-space: nowrap;
24566
+ flex-shrink: 0;
24567
+ width: 65px;
24568
+ max-width: 65px;
24569
+ min-width: 65px;
24570
+ overflow: hidden;
24571
+ text-overflow: ellipsis;
24572
+ box-sizing: border-box;
24571
24573
  `;
24572
24574
  const IconContainer$2 = styled.div`
24573
24575
  display: flex;
@@ -24575,23 +24577,26 @@ const IconContainer$2 = styled.div`
24575
24577
  cursor: pointer;
24576
24578
  `;
24577
24579
 
24578
- const QuickFilterDropdownMultiSelection = ({
24579
- label,
24580
- labelEmptyValue,
24581
- options,
24582
- selectedValue,
24583
- placeHolder,
24584
- onChange,
24585
- required,
24586
- disabled,
24587
- width,
24588
- error,
24589
- errorMessage,
24590
- labelColor,
24591
- xIconShow,
24592
- checkBoxColor,
24593
- showLabelOnTop
24594
- }) => {
24580
+ const QuickFilterDropdownMultiSelection = _ref => {
24581
+ let {
24582
+ label,
24583
+ labelEmptyValue,
24584
+ options,
24585
+ selectedValue,
24586
+ placeHolder,
24587
+ onChange,
24588
+ required,
24589
+ disabled,
24590
+ width,
24591
+ height,
24592
+ error,
24593
+ errorMessage,
24594
+ labelColor,
24595
+ xIconShow,
24596
+ checkBoxColor,
24597
+ showLabelOnTop,
24598
+ dropdownHeight
24599
+ } = _ref;
24595
24600
  const [isFocused, setIsFocused] = useState(false);
24596
24601
  const [showOptions, setShowOptions] = useState(false);
24597
24602
  const [inputValue, setInputValue] = useState('');
@@ -24702,33 +24707,35 @@ const QuickFilterDropdownMultiSelection = ({
24702
24707
  const displaySelectedOptions = () => {
24703
24708
  const content = /*#__PURE__*/React$1.createElement(SelectedOptionsContainer, {
24704
24709
  className: "SelectedOptionsContainer"
24705
- }, selectedOptions?.map((option, index) => index < 2 ? /*#__PURE__*/React$1.createElement(SelectedOptionItem, {
24706
- className: "SelectedOptionItem",
24707
- key: option.value,
24708
- onClick: () => {
24709
- toggleOption(option);
24710
- setIsFocused(true);
24711
- if (inputRef?.current) {
24712
- inputRef?.current?.focus();
24713
- }
24710
+ }, selectedOptions?.map((option, index) => {
24711
+ if (index < 2) {
24712
+ return /*#__PURE__*/React$1.createElement(SelectedOptionItem, {
24713
+ className: "SelectedOptionItem",
24714
+ key: option.value,
24715
+ onClick: () => {
24716
+ toggleOption(option);
24717
+ setIsFocused(true);
24718
+ if (inputRef?.current) {
24719
+ inputRef?.current?.focus();
24720
+ }
24721
+ }
24722
+ }, option.label && option.label?.length > 5 ? `${option.label?.substring(0, 5)}...` : option.label, /*#__PURE__*/React$1.createElement(CloseXIcon, {
24723
+ width: "8px",
24724
+ height: "8px",
24725
+ fill: "#212121"
24726
+ }));
24714
24727
  }
24715
- }, option.label && option.label?.length > 10 ? `${option.label?.substring(0, 10)}... ` : `${option.label} `, /*#__PURE__*/React$1.createElement(CloseXIcon, {
24716
- width: "8px",
24717
- height: "8px",
24718
- fill: "#212121"
24719
- })) : ' '), selectedOptions.length > 2 ? /*#__PURE__*/React$1.createElement(SelectedOptionItem, {
24728
+ return null;
24729
+ }), selectedOptions.length > 2 && /*#__PURE__*/React$1.createElement(SelectedOptionItem, {
24720
24730
  className: "SelectedOptionItem"
24721
- }, selectedOptions.length - 2, "+") : '');
24731
+ }, "+", selectedOptions.length - 2));
24722
24732
  return content;
24723
24733
  };
24724
24734
  const getLabel = () => {
24725
24735
  if (!showLabelOnTop && isFocused) {
24726
24736
  return '';
24727
24737
  }
24728
- if (selectedOptions?.length > 0) {
24729
- return label;
24730
- }
24731
- return labelEmptyValue;
24738
+ return label;
24732
24739
  };
24733
24740
  const getRequired = () => {
24734
24741
  if (!showLabelOnTop && isFocused) {
@@ -24737,18 +24744,12 @@ const QuickFilterDropdownMultiSelection = ({
24737
24744
  if (!showLabelOnTop && !label && selectedOptions?.length > 0) {
24738
24745
  return '';
24739
24746
  }
24740
- if (required) {
24741
- return /*#__PURE__*/React$1.createElement("span", {
24742
- style: {
24743
- color: 'red'
24744
- }
24745
- }, "*");
24746
- }
24747
24747
  return '';
24748
24748
  };
24749
24749
  return /*#__PURE__*/React$1.createElement(DropdownWrapper, {
24750
24750
  className: "DropdownWrapper",
24751
24751
  width: width,
24752
+ height: height,
24752
24753
  onMouseEnter: () => setHoverInputContainer(true),
24753
24754
  onMouseLeave: () => setHoverInputContainer(false)
24754
24755
  }, /*#__PURE__*/React$1.createElement(InputContainer$2, {
@@ -24756,7 +24757,8 @@ const QuickFilterDropdownMultiSelection = ({
24756
24757
  labelColor: labelColor,
24757
24758
  disabled: disabled,
24758
24759
  error: error,
24759
- isFocused: isFocused
24760
+ isFocused: isFocused,
24761
+ height: height
24760
24762
  }, /*#__PURE__*/React$1.createElement(InputSubContainer$1, {
24761
24763
  className: "InputSubContainer",
24762
24764
  ref: containerRef,
@@ -24774,7 +24776,7 @@ const QuickFilterDropdownMultiSelection = ({
24774
24776
  errorMessage: errorMessage,
24775
24777
  onClick: handleLabelClick,
24776
24778
  showLabelOnTop: showLabelOnTop
24777
- }, getLabel(), getRequired()), displaySelectedOptions(), showOptions ? /*#__PURE__*/React$1.createElement(StyledInput$2, {
24779
+ }, getLabel(), getRequired()), displaySelectedOptions(), /*#__PURE__*/React$1.createElement(StyledInput$2, {
24778
24780
  className: "StyledInput",
24779
24781
  ref: inputRef,
24780
24782
  value: inputValue,
@@ -24783,10 +24785,10 @@ const QuickFilterDropdownMultiSelection = ({
24783
24785
  onClick: handleLabelClick,
24784
24786
  type: "search",
24785
24787
  disabled: disabled,
24786
- placeholder: isFocused ? placeHolder || 'Type to search...' : '',
24788
+ placeholder: placeHolder,
24787
24789
  error: error,
24788
24790
  isFocused: isFocused
24789
- }) : ' '), selectedOptions.length > 0 && xIconShow && /*#__PURE__*/React$1.createElement(IconContainer$2, {
24791
+ })), selectedOptions.length > 0 && xIconShow && /*#__PURE__*/React$1.createElement(IconContainer$2, {
24790
24792
  className: "IconContainer",
24791
24793
  onClick: handleClearClick
24792
24794
  }, /*#__PURE__*/React$1.createElement(CloseXIcon, {
@@ -24815,13 +24817,14 @@ const QuickFilterDropdownMultiSelection = ({
24815
24817
  className: "OptionsSubContainer",
24816
24818
  showoptions: showOptions,
24817
24819
  disabled: disabled,
24818
- filteredoptions: filteredoptions
24820
+ filteredoptions: filteredoptions,
24821
+ dropdownHeight: dropdownHeight
24819
24822
  }, filteredoptions.map(option => /*#__PURE__*/React$1.createElement(OptionItem, {
24820
24823
  className: "OptionItem",
24821
24824
  key: option.value,
24822
24825
  onClick: () => toggleOption(option),
24823
24826
  selected: isDropdowned(option)
24824
- }, highlightText(option.label, inputValue), /*#__PURE__*/React$1.createElement(IconContainer$2, {
24827
+ }, /*#__PURE__*/React$1.createElement(IconContainer$2, {
24825
24828
  className: "IconContainer"
24826
24829
  }, selectedOptions.find(itemSelectedOptions => option.value === itemSelectedOptions.value) ? /*#__PURE__*/React$1.createElement(CheckBoxCheckedIcon, {
24827
24830
  width: "14px",
@@ -24831,7 +24834,7 @@ const QuickFilterDropdownMultiSelection = ({
24831
24834
  width: "14px",
24832
24835
  height: "14px",
24833
24836
  color: disabled ? '#888' : '#212121'
24834
- })), option.label)))));
24837
+ })), highlightText(option.label, inputValue))))));
24835
24838
  };
24836
24839
  QuickFilterDropdownMultiSelection.propTypes = {
24837
24840
  placeHolder: PropTypes.string,
@@ -24841,6 +24844,8 @@ QuickFilterDropdownMultiSelection.propTypes = {
24841
24844
  checkBoxColor: PropTypes.string,
24842
24845
  required: PropTypes.bool,
24843
24846
  width: PropTypes.string,
24847
+ height: PropTypes.string,
24848
+ dropdownHeight: PropTypes.string,
24844
24849
  disabled: PropTypes.bool,
24845
24850
  error: PropTypes.bool,
24846
24851
  errorMessage: '',
@@ -24864,6 +24869,8 @@ QuickFilterDropdownMultiSelection.defaultProps = {
24864
24869
  checkBoxColor: '#229E38',
24865
24870
  required: true,
24866
24871
  width: '300px',
24872
+ height: '38px',
24873
+ dropdownHeight: '500px',
24867
24874
  disabled: false,
24868
24875
  error: false,
24869
24876
  errorMessage: '',
@@ -24900,7 +24907,9 @@ const QuickFilter = _ref => {
24900
24907
  labelColor = "#066768",
24901
24908
  placeHolder = "Select From List",
24902
24909
  width = "auto",
24910
+ height = "38px",
24903
24911
  checkBoxColor = "#229E38",
24912
+ dropdownHeight = "500px",
24904
24913
  onChange = value => {},
24905
24914
  options = [],
24906
24915
  selectedValue = []
@@ -24916,6 +24925,8 @@ const QuickFilter = _ref => {
24916
24925
  checkBoxColor: checkBoxColor,
24917
24926
  options: options,
24918
24927
  width: width,
24928
+ height: height,
24929
+ dropdownHeight: dropdownHeight,
24919
24930
  disabled: disabled,
24920
24931
  error: error,
24921
24932
  errorMessage: errorMessage,
@@ -36033,9 +36044,9 @@ const ToggleSlider = styled.span`
36033
36044
  }
36034
36045
  `;
36035
36046
 
36036
- /**
36037
- * ToggleSwitch component for on/off states.
36038
- * Supports small/large sizes and disabled state.
36047
+ /**
36048
+ * ToggleSwitch component for on/off states.
36049
+ * Supports small/large sizes and disabled state.
36039
36050
  */
36040
36051
  function ToggleSwitch(_ref) {
36041
36052
  let {
@@ -44803,7 +44814,6 @@ const NewItemList = ({
44803
44814
  }), /*#__PURE__*/React$1.createElement(VendorSearchResult, null, search !== "" ? `${filteredItems.length === 0 ? "No" : filteredItems.length} Vendors Found` : " ")), /*#__PURE__*/React$1.createElement(VendorListWrapper$1, {
44804
44815
  headerHeight: headerHeight
44805
44816
  }, /*#__PURE__*/React$1.createElement(VendorList$1, null, filteredItems.map((item, idx) => {
44806
- console.log("item", item);
44807
44817
  let packagesLength = 0;
44808
44818
  let sentPackagesLength = 0;
44809
44819
  if (item.packages !== null) {
@@ -45157,11 +45167,6 @@ const NewSubitemList = props => {
45157
45167
  setSelectedPackage(item);
45158
45168
  handleSubitemDetail(item); // Pass the package object for editing
45159
45169
  };
45160
-
45161
- // useEffect(() => {
45162
- // console.log("Vendor items updated:", vendorItems);
45163
- // console.log("Props:", props);
45164
- // }, [vendorItems]);
45165
45170
  const setupTooltip = (el, tooltipText) => {
45166
45171
  if (el && tooltipText) {
45167
45172
  const rect = el.getBoundingClientRect();
@@ -45402,7 +45407,6 @@ const NewSubitem = ({
45402
45407
  // Form state
45403
45408
  const [isApplyEnabled, setIsApplyEnabled] = useState(negotiatedBrands.trim().length > 2);
45404
45409
  useEffect(() => {
45405
- console.log("packageObject", vendor);
45406
45410
  if (!packageObject) return;
45407
45411
  if (!packageObject.brands) return;
45408
45412
  setNegotiatedBrands(packageObject.brands);
@@ -47013,9 +47017,9 @@ var layers = [
47013
47017
  c: {
47014
47018
  a: 0,
47015
47019
  k: [
47016
- 0.1628,
47017
- 0.9172,
47018
- 0.7915,
47020
+ 0.03529411764705882,
47021
+ 0.403921568627451,
47022
+ 0.40784313725490196,
47019
47023
  1
47020
47024
  ],
47021
47025
  ix: 4
@@ -47270,9 +47274,9 @@ var layers = [
47270
47274
  c: {
47271
47275
  a: 0,
47272
47276
  k: [
47273
- 0,
47274
- 1,
47275
- 0.8333,
47277
+ 0.03529411764705882,
47278
+ 0.403921568627451,
47279
+ 0.40784313725490196,
47276
47280
  1
47277
47281
  ],
47278
47282
  ix: 3
@@ -47300,9 +47304,9 @@ var layers = [
47300
47304
  c: {
47301
47305
  a: 0,
47302
47306
  k: [
47303
- 0,
47304
- 1,
47305
- 0.8333,
47307
+ 0.03529411764705882,
47308
+ 0.403921568627451,
47309
+ 0.40784313725490196,
47306
47310
  1
47307
47311
  ],
47308
47312
  ix: 4
@@ -47683,9 +47687,9 @@ var layers = [
47683
47687
  c: {
47684
47688
  a: 0,
47685
47689
  k: [
47686
- 0,
47687
- 1,
47688
- 0.8333,
47690
+ 0.03529411764705882,
47691
+ 0.403921568627451,
47692
+ 0.40784313725490196,
47689
47693
  1
47690
47694
  ],
47691
47695
  ix: 3
@@ -47713,9 +47717,9 @@ var layers = [
47713
47717
  c: {
47714
47718
  a: 0,
47715
47719
  k: [
47716
- 0,
47717
- 1,
47718
- 0.8333,
47720
+ 0.03529411764705882,
47721
+ 0.403921568627451,
47722
+ 0.40784313725490196,
47719
47723
  1
47720
47724
  ],
47721
47725
  ix: 4
@@ -48096,9 +48100,9 @@ var layers = [
48096
48100
  c: {
48097
48101
  a: 0,
48098
48102
  k: [
48099
- 0,
48100
- 1,
48101
- 0.8333,
48103
+ 0.03529411764705882,
48104
+ 0.403921568627451,
48105
+ 0.40784313725490196,
48102
48106
  1
48103
48107
  ],
48104
48108
  ix: 3
@@ -48126,9 +48130,9 @@ var layers = [
48126
48130
  c: {
48127
48131
  a: 0,
48128
48132
  k: [
48129
- 0,
48130
- 1,
48131
- 0.8333,
48133
+ 0.03529411764705882,
48134
+ 0.403921568627451,
48135
+ 0.40784313725490196,
48132
48136
  1
48133
48137
  ],
48134
48138
  ix: 4
@@ -48509,9 +48513,9 @@ var layers = [
48509
48513
  c: {
48510
48514
  a: 0,
48511
48515
  k: [
48512
- 0,
48513
- 1,
48514
- 0.8333,
48516
+ 0.03529411764705882,
48517
+ 0.403921568627451,
48518
+ 0.40784313725490196,
48515
48519
  1
48516
48520
  ],
48517
48521
  ix: 3
@@ -48539,9 +48543,9 @@ var layers = [
48539
48543
  c: {
48540
48544
  a: 0,
48541
48545
  k: [
48542
- 0,
48543
- 1,
48544
- 0.8333,
48546
+ 0.03529411764705882,
48547
+ 0.403921568627451,
48548
+ 0.40784313725490196,
48545
48549
  1
48546
48550
  ],
48547
48551
  ix: 4
@@ -48922,9 +48926,9 @@ var layers = [
48922
48926
  c: {
48923
48927
  a: 0,
48924
48928
  k: [
48925
- 0,
48926
- 1,
48927
- 0.8333,
48929
+ 0.03529411764705882,
48930
+ 0.403921568627451,
48931
+ 0.40784313725490196,
48928
48932
  1
48929
48933
  ],
48930
48934
  ix: 3
@@ -48952,9 +48956,9 @@ var layers = [
48952
48956
  c: {
48953
48957
  a: 0,
48954
48958
  k: [
48955
- 0,
48956
- 1,
48957
- 0.8333,
48959
+ 0.03529411764705882,
48960
+ 0.403921568627451,
48961
+ 0.40784313725490196,
48958
48962
  1
48959
48963
  ],
48960
48964
  ix: 4
@@ -49335,9 +49339,9 @@ var layers = [
49335
49339
  c: {
49336
49340
  a: 0,
49337
49341
  k: [
49338
- 0,
49339
- 1,
49340
- 0.8333,
49342
+ 0.03529411764705882,
49343
+ 0.403921568627451,
49344
+ 0.40784313725490196,
49341
49345
  1
49342
49346
  ],
49343
49347
  ix: 3
@@ -49365,9 +49369,9 @@ var layers = [
49365
49369
  c: {
49366
49370
  a: 0,
49367
49371
  k: [
49368
- 0,
49369
- 1,
49370
- 0.8333,
49372
+ 0.03529411764705882,
49373
+ 0.403921568627451,
49374
+ 0.40784313725490196,
49371
49375
  1
49372
49376
  ],
49373
49377
  ix: 4
@@ -49748,9 +49752,9 @@ var layers = [
49748
49752
  c: {
49749
49753
  a: 0,
49750
49754
  k: [
49751
- 0,
49752
- 1,
49753
- 0.8333,
49755
+ 0.03529411764705882,
49756
+ 0.403921568627451,
49757
+ 0.40784313725490196,
49754
49758
  1
49755
49759
  ],
49756
49760
  ix: 3
@@ -49778,9 +49782,9 @@ var layers = [
49778
49782
  c: {
49779
49783
  a: 0,
49780
49784
  k: [
49781
- 0,
49782
- 1,
49783
- 0.8333,
49785
+ 0.03529411764705882,
49786
+ 0.403921568627451,
49787
+ 0.40784313725490196,
49784
49788
  1
49785
49789
  ],
49786
49790
  ix: 4
@@ -50161,9 +50165,9 @@ var layers = [
50161
50165
  c: {
50162
50166
  a: 0,
50163
50167
  k: [
50164
- 0,
50165
- 1,
50166
- 0.8333,
50168
+ 0.03529411764705882,
50169
+ 0.403921568627451,
50170
+ 0.40784313725490196,
50167
50171
  1
50168
50172
  ],
50169
50173
  ix: 3
@@ -50191,9 +50195,9 @@ var layers = [
50191
50195
  c: {
50192
50196
  a: 0,
50193
50197
  k: [
50194
- 0,
50195
- 1,
50196
- 0.8333,
50198
+ 0.03529411764705882,
50199
+ 0.403921568627451,
50200
+ 0.40784313725490196,
50197
50201
  1
50198
50202
  ],
50199
50203
  ix: 4
@@ -50574,9 +50578,9 @@ var layers = [
50574
50578
  c: {
50575
50579
  a: 0,
50576
50580
  k: [
50577
- 0,
50578
- 1,
50579
- 0.8333,
50581
+ 0.03529411764705882,
50582
+ 0.403921568627451,
50583
+ 0.40784313725490196,
50580
50584
  1
50581
50585
  ],
50582
50586
  ix: 3
@@ -50604,9 +50608,9 @@ var layers = [
50604
50608
  c: {
50605
50609
  a: 0,
50606
50610
  k: [
50607
- 0,
50608
- 1,
50609
- 0.8333,
50611
+ 0.03529411764705882,
50612
+ 0.403921568627451,
50613
+ 0.40784313725490196,
50610
50614
  1
50611
50615
  ],
50612
50616
  ix: 4
@@ -50987,9 +50991,9 @@ var layers = [
50987
50991
  c: {
50988
50992
  a: 0,
50989
50993
  k: [
50990
- 0,
50991
- 1,
50992
- 0.8333,
50994
+ 0.03529411764705882,
50995
+ 0.403921568627451,
50996
+ 0.40784313725490196,
50993
50997
  1
50994
50998
  ],
50995
50999
  ix: 3
@@ -51017,9 +51021,9 @@ var layers = [
51017
51021
  c: {
51018
51022
  a: 0,
51019
51023
  k: [
51020
- 0,
51021
- 1,
51022
- 0.8333,
51024
+ 0.03529411764705882,
51025
+ 0.403921568627451,
51026
+ 0.40784313725490196,
51023
51027
  1
51024
51028
  ],
51025
51029
  ix: 4
@@ -51400,9 +51404,9 @@ var layers = [
51400
51404
  c: {
51401
51405
  a: 0,
51402
51406
  k: [
51403
- 0,
51404
- 1,
51405
- 0.8333,
51407
+ 0.03529411764705882,
51408
+ 0.403921568627451,
51409
+ 0.40784313725490196,
51406
51410
  1
51407
51411
  ],
51408
51412
  ix: 3
@@ -51430,9 +51434,9 @@ var layers = [
51430
51434
  c: {
51431
51435
  a: 0,
51432
51436
  k: [
51433
- 0,
51434
- 1,
51435
- 0.8333,
51437
+ 0.03529411764705882,
51438
+ 0.403921568627451,
51439
+ 0.40784313725490196,
51436
51440
  1
51437
51441
  ],
51438
51442
  ix: 4
@@ -51813,9 +51817,9 @@ var layers = [
51813
51817
  c: {
51814
51818
  a: 0,
51815
51819
  k: [
51816
- 0,
51817
- 1,
51818
- 0.8333,
51820
+ 0.03529411764705882,
51821
+ 0.403921568627451,
51822
+ 0.40784313725490196,
51819
51823
  1
51820
51824
  ],
51821
51825
  ix: 3
@@ -51843,9 +51847,9 @@ var layers = [
51843
51847
  c: {
51844
51848
  a: 0,
51845
51849
  k: [
51846
- 0,
51847
- 1,
51848
- 0.8333,
51850
+ 0.03529411764705882,
51851
+ 0.403921568627451,
51852
+ 0.40784313725490196,
51849
51853
  1
51850
51854
  ],
51851
51855
  ix: 4
@@ -52226,9 +52230,9 @@ var layers = [
52226
52230
  c: {
52227
52231
  a: 0,
52228
52232
  k: [
52229
- 0,
52230
- 1,
52231
- 0.8333,
52233
+ 0.03529411764705882,
52234
+ 0.403921568627451,
52235
+ 0.40784313725490196,
52232
52236
  1
52233
52237
  ],
52234
52238
  ix: 3
@@ -52256,9 +52260,9 @@ var layers = [
52256
52260
  c: {
52257
52261
  a: 0,
52258
52262
  k: [
52259
- 0,
52260
- 1,
52261
- 0.8333,
52263
+ 0.03529411764705882,
52264
+ 0.403921568627451,
52265
+ 0.40784313725490196,
52262
52266
  1
52263
52267
  ],
52264
52268
  ix: 4
@@ -52639,9 +52643,9 @@ var layers = [
52639
52643
  c: {
52640
52644
  a: 0,
52641
52645
  k: [
52642
- 0,
52643
- 1,
52644
- 0.8333,
52646
+ 0.03529411764705882,
52647
+ 0.403921568627451,
52648
+ 0.40784313725490196,
52645
52649
  1
52646
52650
  ],
52647
52651
  ix: 3
@@ -52669,9 +52673,9 @@ var layers = [
52669
52673
  c: {
52670
52674
  a: 0,
52671
52675
  k: [
52672
- 0,
52673
- 1,
52674
- 0.8333,
52676
+ 0.03529411764705882,
52677
+ 0.403921568627451,
52678
+ 0.40784313725490196,
52675
52679
  1
52676
52680
  ],
52677
52681
  ix: 4
@@ -53052,9 +53056,9 @@ var layers = [
53052
53056
  c: {
53053
53057
  a: 0,
53054
53058
  k: [
53055
- 0,
53056
- 0.6941,
53057
- 0.5765,
53059
+ 0.03529411764705882,
53060
+ 0.403921568627451,
53061
+ 0.40784313725490196,
53058
53062
  1
53059
53063
  ],
53060
53064
  ix: 3
@@ -53082,9 +53086,9 @@ var layers = [
53082
53086
  c: {
53083
53087
  a: 0,
53084
53088
  k: [
53085
- 0,
53086
- 1,
53087
- 0.8333,
53089
+ 0.03529411764705882,
53090
+ 0.403921568627451,
53091
+ 0.40784313725490196,
53088
53092
  1
53089
53093
  ],
53090
53094
  ix: 4
@@ -53465,9 +53469,9 @@ var layers = [
53465
53469
  c: {
53466
53470
  a: 0,
53467
53471
  k: [
53468
- 0,
53469
- 1,
53470
- 0.8333,
53472
+ 0.03529411764705882,
53473
+ 0.403921568627451,
53474
+ 0.40784313725490196,
53471
53475
  1
53472
53476
  ],
53473
53477
  ix: 3
@@ -53495,9 +53499,9 @@ var layers = [
53495
53499
  c: {
53496
53500
  a: 0,
53497
53501
  k: [
53498
- 0,
53499
- 1,
53500
- 0.8333,
53502
+ 0.03529411764705882,
53503
+ 0.403921568627451,
53504
+ 0.40784313725490196,
53501
53505
  1
53502
53506
  ],
53503
53507
  ix: 4
@@ -53952,9 +53956,9 @@ var layers = [
53952
53956
  c: {
53953
53957
  a: 0,
53954
53958
  k: [
53955
- 0.05,
53956
- 0.95,
53957
- 0.8,
53959
+ 0.03529411764705882,
53960
+ 0.403921568627451,
53961
+ 0.40784313725490196,
53958
53962
  1
53959
53963
  ],
53960
53964
  ix: 3
@@ -53982,9 +53986,9 @@ var layers = [
53982
53986
  c: {
53983
53987
  a: 0,
53984
53988
  k: [
53985
- 1,
53986
- 1,
53987
- 1,
53989
+ 0.03529411764705882,
53990
+ 0.403921568627451,
53991
+ 0.40784313725490196,
53988
53992
  1
53989
53993
  ],
53990
53994
  ix: 4