sag_components 2.0.0-beta259 → 2.0.0-beta260

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
@@ -24167,21 +24167,22 @@ const DeleteIcon = styled.div`
24167
24167
  position: absolute;
24168
24168
  `;
24169
24169
 
24170
- const QuickFilterDropdownSingle = ({
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
- }) => {
24170
+ const QuickFilterDropdownSingle = _ref => {
24171
+ let {
24172
+ label,
24173
+ hoverColor,
24174
+ options,
24175
+ selectedValue,
24176
+ placeHolder,
24177
+ onChange,
24178
+ disabled,
24179
+ width,
24180
+ error,
24181
+ errorMessage,
24182
+ xIconShow,
24183
+ labelColor,
24184
+ showLabelOnTop
24185
+ } = _ref;
24185
24186
  const [isFocused, setIsFocused] = useState(false);
24186
24187
  const [showOptions, setShowOptions] = useState(false);
24187
24188
  const [inputValue, setInputValue] = useState("");
@@ -24638,25 +24639,26 @@ const IconContainer$2 = styled.div`
24638
24639
  cursor: pointer;
24639
24640
  `;
24640
24641
 
24641
- const QuickFilterDropdownMultiSelection = ({
24642
- label,
24643
- labelEmptyValue,
24644
- options,
24645
- selectedValue,
24646
- placeHolder,
24647
- onChange,
24648
- required,
24649
- disabled,
24650
- width,
24651
- height,
24652
- error,
24653
- errorMessage,
24654
- labelColor,
24655
- xIconShow,
24656
- checkBoxColor,
24657
- showLabelOnTop,
24658
- dropdownHeight
24659
- }) => {
24642
+ const QuickFilterDropdownMultiSelection = _ref => {
24643
+ let {
24644
+ label,
24645
+ labelEmptyValue,
24646
+ options,
24647
+ selectedValue,
24648
+ placeHolder,
24649
+ onChange,
24650
+ required,
24651
+ disabled,
24652
+ width,
24653
+ height,
24654
+ error,
24655
+ errorMessage,
24656
+ labelColor,
24657
+ xIconShow,
24658
+ checkBoxColor,
24659
+ showLabelOnTop,
24660
+ dropdownHeight
24661
+ } = _ref;
24660
24662
  const [isFocused, setIsFocused] = useState(false);
24661
24663
  const [showOptions, setShowOptions] = useState(false);
24662
24664
  const [inputValue, setInputValue] = useState('');
@@ -37630,6 +37632,11 @@ const SearchInput = styled.input`
37630
37632
  border-color: #c0c0c0;
37631
37633
  }
37632
37634
  `;
37635
+ const ListWrapper = styled.div`
37636
+ max-height: ${props => props.maxHeight || 'unset'};
37637
+ overflow-y: auto;
37638
+ position: relative;
37639
+ `;
37633
37640
  const CheckboxGroup = styled.div`
37634
37641
  display: flex;
37635
37642
  flex-direction: column;
@@ -37840,7 +37847,7 @@ const FilterPop = props => {
37840
37847
  }));
37841
37848
  return {
37842
37849
  visibleItems: visible,
37843
- totalHeight: sortedList.length * itemHeight,
37850
+ totalHeight: (sortedList.length + 1) * (itemHeight + 8),
37844
37851
  offsetY: startIndex * itemHeight
37845
37852
  };
37846
37853
  }, [sortedList, scrollTop, itemHeight, overscan, maxHeight]);
@@ -37997,14 +38004,10 @@ const FilterPop = props => {
37997
38004
  value: searchTerm,
37998
38005
  onChange: handleSearchChange,
37999
38006
  accentColor: color
38000
- }), /*#__PURE__*/React$1.createElement("div", {
38007
+ }), /*#__PURE__*/React$1.createElement(ListWrapper, {
38001
38008
  ref: scrollContainerRef,
38002
38009
  onScroll: handleScroll,
38003
- style: {
38004
- maxHeight: maxHeight,
38005
- overflowY: "auto",
38006
- position: "relative"
38007
- }
38010
+ maxHeight: maxHeight
38008
38011
  }, sortedList.length === 1 ? /*#__PURE__*/React$1.createElement(NoResultsMessage, null, "No items match your search") : /*#__PURE__*/React$1.createElement("div", {
38009
38012
  style: {
38010
38013
  height: `${totalHeight}px`,
@@ -43321,7 +43324,6 @@ const TableBody = /*#__PURE__*/forwardRef(({
43321
43324
  case "hero":
43322
43325
  try {
43323
43326
  const isDisabled = column?.disable || false;
43324
- console.log('Rendering hero icon with value:', value, column);
43325
43327
  if (value === null || value === undefined) return null;
43326
43328
  return /*#__PURE__*/React$1.createElement(HeroButton, {
43327
43329
  disabled: isDisabled,