sag_components 2.0.0-beta283 → 2.0.0-beta285

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2332,7 +2332,7 @@ const TooltipContainer$4 = styled__default["default"].div`
2332
2332
  `;
2333
2333
 
2334
2334
  /* Wrapping */
2335
- const TooltipWrapper$2 = styled__default["default"].div`
2335
+ const TooltipWrapper$3 = styled__default["default"].div`
2336
2336
  display: inline-block;
2337
2337
  position: relative;
2338
2338
  `;
@@ -2439,7 +2439,7 @@ const Tooltip$2 = props => {
2439
2439
  };
2440
2440
  return /*#__PURE__*/React__default["default"].createElement(TooltipContainer$4, {
2441
2441
  className: className
2442
- }, /*#__PURE__*/React__default["default"].createElement(TooltipWrapper$2, {
2442
+ }, /*#__PURE__*/React__default["default"].createElement(TooltipWrapper$3, {
2443
2443
  className: "tooltip-wrapper",
2444
2444
  onMouseEnter: showTooltip ? showTip : () => {},
2445
2445
  onMouseLeave: showTooltip ? hideTip : () => {}
@@ -12175,7 +12175,7 @@ const PaginationContainer = styled__default["default"].div`
12175
12175
  cursor: default;
12176
12176
  }
12177
12177
  `;
12178
- const TooltipWrapper$1 = styled__default["default"].div`
12178
+ const TooltipWrapper$2 = styled__default["default"].div`
12179
12179
  width: max-content;
12180
12180
  max-width: 330px;
12181
12181
  /* white-space: wrap; */
@@ -12493,7 +12493,7 @@ const ReportTable = props => {
12493
12493
  }
12494
12494
  return colNumber;
12495
12495
  };
12496
- const getTooltipText = value => /*#__PURE__*/React__default["default"].createElement(TooltipWrapper$1, null, value);
12496
+ const getTooltipText = value => /*#__PURE__*/React__default["default"].createElement(TooltipWrapper$2, null, value);
12497
12497
  const truncateString = (str, maxLength) => {
12498
12498
  let val = str.length > maxLength ? str.slice(0, maxLength) + "..." : str;
12499
12499
  return val;
@@ -24653,25 +24653,26 @@ const IconContainer$2 = styled__default["default"].div`
24653
24653
  cursor: pointer;
24654
24654
  `;
24655
24655
 
24656
- const QuickFilterDropdownMultiSelection = ({
24657
- label,
24658
- labelEmptyValue,
24659
- options,
24660
- selectedValue,
24661
- placeHolder,
24662
- onChange,
24663
- required,
24664
- disabled,
24665
- width,
24666
- height,
24667
- error,
24668
- errorMessage,
24669
- labelColor,
24670
- xIconShow,
24671
- checkBoxColor,
24672
- showLabelOnTop,
24673
- dropdownHeight
24674
- }) => {
24656
+ const QuickFilterDropdownMultiSelection = _ref => {
24657
+ let {
24658
+ label,
24659
+ labelEmptyValue,
24660
+ options,
24661
+ selectedValue,
24662
+ placeHolder,
24663
+ onChange,
24664
+ required,
24665
+ disabled,
24666
+ width,
24667
+ height,
24668
+ error,
24669
+ errorMessage,
24670
+ labelColor,
24671
+ xIconShow,
24672
+ checkBoxColor,
24673
+ showLabelOnTop,
24674
+ dropdownHeight
24675
+ } = _ref;
24675
24676
  const [isFocused, setIsFocused] = React$1.useState(false);
24676
24677
  const [showOptions, setShowOptions] = React$1.useState(false);
24677
24678
  const [inputValue, setInputValue] = React$1.useState('');
@@ -26582,7 +26583,7 @@ const TooltipContainer$3 = styled__default["default"].div`
26582
26583
  top: ${props => props.top};
26583
26584
  left: ${props => props.left};
26584
26585
  `;
26585
- const TooltipWrapper = styled__default["default"].div`
26586
+ const TooltipWrapper$1 = styled__default["default"].div`
26586
26587
  display: inline-block;
26587
26588
  position: relative;
26588
26589
  `;
@@ -26682,7 +26683,7 @@ const Tooltip$1 = props => {
26682
26683
  className: className,
26683
26684
  top: `${top}px`,
26684
26685
  left: `${left}px`
26685
- }, /*#__PURE__*/React__default["default"].createElement(TooltipWrapper, null, /*#__PURE__*/React__default["default"].createElement(TooltipTip, {
26686
+ }, /*#__PURE__*/React__default["default"].createElement(TooltipWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(TooltipTip, {
26686
26687
  className: `controls ${direction || 'top'}`
26687
26688
  }, content)));
26688
26689
  };
@@ -57457,6 +57458,9 @@ const scrollableStyles = `
57457
57458
  border-radius: 4px;
57458
57459
  }
57459
57460
  `;
57461
+ const TooltipWrapper = styled__default["default"](Tooltip$2)`
57462
+ width: 100%;
57463
+ `;
57460
57464
  const DropdownContainer = styled__default["default"].div`
57461
57465
  position: relative;
57462
57466
  width: ${props => props.width || '100%'};
@@ -57490,7 +57494,7 @@ const DropdownList = styled__default["default"].ul`
57490
57494
  border-radius: 10px;
57491
57495
  margin: 0;
57492
57496
  padding: 8px 0;
57493
- width: ${props => props.width || '100%'};
57497
+ min-width: ${props => props.width || '100%'};
57494
57498
  max-height: ${props => props.dropdownMaxHeight || '420px'};
57495
57499
  overflow-y: auto;
57496
57500
  left: 0;
@@ -57531,12 +57535,12 @@ const SectionTitle = styled__default["default"].li`
57531
57535
  list-style: none;
57532
57536
  `;
57533
57537
  const DropdownItem = styled__default["default"].li`
57534
- padding: 8px 12px;
57538
+ padding: 8px 20px;
57535
57539
  cursor: pointer;
57536
57540
  display: flex;
57537
57541
  align-items: center;
57542
+ gap: 8px;
57538
57543
  justify-content: space-between;
57539
- margin: 0 12px;
57540
57544
  background: ${props => props.selected ? props.selectedColor || '#066768' : 'transparent'};
57541
57545
  font-weight: ${props => props.selected ? '500' : '400'};
57542
57546
  color: ${props => props.disabled ? '#D0D0D0' : props.selected ? '#fff' : '#212121'};
@@ -57565,21 +57569,6 @@ const TruncatedText = styled__default["default"].span`
57565
57569
  font-weight: 400;
57566
57570
  color: ${props => props.color};
57567
57571
  `;
57568
- styled__default["default"].div`
57569
- position: absolute;
57570
- left: 0; // <- Align with left edge of parent
57571
- bottom: 100%; // <- Position ABOVE the element
57572
- margin-bottom: 8px; // <- Add space between tooltip and element
57573
- background: #fff;
57574
- color: #222;
57575
- border: 1px solid #e0e0e0;
57576
- border-radius: 6px;
57577
- box-shadow: 0 2px 12px rgba(0,0,0,0.12);
57578
- padding: 8px 12px;
57579
- font-size: 13px;
57580
- /* max-width: 320px; */
57581
- white-space: pre-line;
57582
- `;
57583
57572
  const Label$1 = styled__default["default"].label`
57584
57573
  font-size: 14px;
57585
57574
  font-weight: 400;
@@ -57885,8 +57874,6 @@ OverlayTemplateDialog.propTypes = {
57885
57874
  };
57886
57875
 
57887
57876
  // OverlayDropdown.jsx
57888
-
57889
- // Main Component
57890
57877
  const OverlayDropdown = _ref => {
57891
57878
  let {
57892
57879
  // Data / selection
@@ -58136,7 +58123,12 @@ const OverlayDropdown = _ref => {
58136
58123
  isDarkerBackground: isDarkerBackground,
58137
58124
  height: height,
58138
58125
  type: "button"
58126
+ }, /*#__PURE__*/React__default["default"].createElement(TooltipWrapper, {
58127
+ topFactor: -0.7,
58128
+ content: selected?.label,
58129
+ showTooltip: !!selected
58139
58130
  }, /*#__PURE__*/React__default["default"].createElement(Wrapper, null, /*#__PURE__*/React__default["default"].createElement(TruncatedText, {
58131
+ className: "selected",
58140
58132
  onMouseEnter: () => setHoveredText(selected?.label),
58141
58133
  onMouseLeave: () => setHoveredText(null),
58142
58134
  color: !selected && open ? placeHolderColor : "inherit"
@@ -58148,7 +58140,7 @@ const OverlayDropdown = _ref => {
58148
58140
  width: "12px",
58149
58141
  height: "12px",
58150
58142
  color: "#B1B1B1"
58151
- }))), open && /*#__PURE__*/React__default["default"].createElement(DropdownList, {
58143
+ })))), open && /*#__PURE__*/React__default["default"].createElement(DropdownList, {
58152
58144
  ref: dropdownRef,
58153
58145
  role: "listbox",
58154
58146
  dropdownMaxHeight: dropdownMaxHeight,