sag_components 2.0.0-beta220 → 2.0.0-beta221

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
@@ -12253,16 +12253,13 @@ const Td$1 = styled.td`
12253
12253
  `;
12254
12254
  const Tr = styled.tr`
12255
12255
  border-bottom: 1px solid #f3f4f6;
12256
- ${_ref => {
12257
- let {
12258
- enableHover,
12259
- selectHoverColor
12260
- } = _ref;
12261
- return enableHover && `&:hover {
12256
+ ${({
12257
+ enableHover,
12258
+ selectHoverColor
12259
+ }) => enableHover && `&:hover {
12262
12260
  background-color: ${selectHoverColor};
12263
12261
  cursor: pointer;
12264
- }`;
12265
- }}
12262
+ }`}
12266
12263
  `;
12267
12264
  const InfoText = styled.div`
12268
12265
  font-weight: 400;
@@ -24164,21 +24161,22 @@ const DeleteIcon = styled.div`
24164
24161
  position: absolute;
24165
24162
  `;
24166
24163
 
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
- }) => {
24164
+ const QuickFilterDropdownSingle = _ref => {
24165
+ let {
24166
+ label,
24167
+ hoverColor,
24168
+ options,
24169
+ selectedValue,
24170
+ placeHolder,
24171
+ onChange,
24172
+ disabled,
24173
+ width,
24174
+ error,
24175
+ errorMessage,
24176
+ xIconShow,
24177
+ labelColor,
24178
+ showLabelOnTop
24179
+ } = _ref;
24182
24180
  const [isFocused, setIsFocused] = useState(false);
24183
24181
  const [showOptions, setShowOptions] = useState(false);
24184
24182
  const [inputValue, setInputValue] = useState("");
@@ -24635,25 +24633,26 @@ const IconContainer$2 = styled.div`
24635
24633
  cursor: pointer;
24636
24634
  `;
24637
24635
 
24638
- const QuickFilterDropdownMultiSelection = ({
24639
- label,
24640
- labelEmptyValue,
24641
- options,
24642
- selectedValue,
24643
- placeHolder,
24644
- onChange,
24645
- required,
24646
- disabled,
24647
- width,
24648
- height,
24649
- error,
24650
- errorMessage,
24651
- labelColor,
24652
- xIconShow,
24653
- checkBoxColor,
24654
- showLabelOnTop,
24655
- dropdownHeight
24656
- }) => {
24636
+ const QuickFilterDropdownMultiSelection = _ref => {
24637
+ let {
24638
+ label,
24639
+ labelEmptyValue,
24640
+ options,
24641
+ selectedValue,
24642
+ placeHolder,
24643
+ onChange,
24644
+ required,
24645
+ disabled,
24646
+ width,
24647
+ height,
24648
+ error,
24649
+ errorMessage,
24650
+ labelColor,
24651
+ xIconShow,
24652
+ checkBoxColor,
24653
+ showLabelOnTop,
24654
+ dropdownHeight
24655
+ } = _ref;
24657
24656
  const [isFocused, setIsFocused] = useState(false);
24658
24657
  const [showOptions, setShowOptions] = useState(false);
24659
24658
  const [inputValue, setInputValue] = useState('');
@@ -36137,9 +36136,9 @@ const ToggleSlider = styled.span`
36137
36136
  }
36138
36137
  `;
36139
36138
 
36140
- /**
36141
- * ToggleSwitch component for on/off states.
36142
- * Supports small/large sizes and disabled state.
36139
+ /**
36140
+ * ToggleSwitch component for on/off states.
36141
+ * Supports small/large sizes and disabled state.
36143
36142
  */
36144
36143
  function ToggleSwitch(_ref) {
36145
36144
  let {
@@ -40467,6 +40466,24 @@ const TableBody = /*#__PURE__*/forwardRef(({
40467
40466
  console.warn('Error formatting tag:', e);
40468
40467
  return String(value || "");
40469
40468
  }
40469
+ case "dotindicator":
40470
+ try {
40471
+ // Check if value is an object with show and color properties
40472
+ if (!value || typeof value !== 'object') return null;
40473
+ const {
40474
+ show,
40475
+ color
40476
+ } = value;
40477
+
40478
+ // Only show the dot if show is true
40479
+ if (!show) return null;
40480
+ return /*#__PURE__*/React$1.createElement(StatusCellCircle, {
40481
+ backgroundColor: color
40482
+ });
40483
+ } catch (e) {
40484
+ console.warn('Error formatting dotIndicator:', e);
40485
+ return null;
40486
+ }
40470
40487
  case "packagestatus":
40471
40488
  try {
40472
40489
  const applyTooltipLogic = (element, tooltipText) => {
@@ -44370,6 +44387,7 @@ const Table = props => {
44370
44387
  onHeaderCheckboxClick = () => {},
44371
44388
  headerCheckboxStates = {},
44372
44389
  onHeroClick = () => {},
44390
+ dotIndicatorColor = '#34D399',
44373
44391
  // Accept ref as a regular prop
44374
44392
  ref = null
44375
44393
  } = props;
@@ -44504,6 +44522,7 @@ const Table = props => {
44504
44522
  columns: columns,
44505
44523
  indexToShimmer: indexToShimmer,
44506
44524
  data: data,
44525
+ dotIndicatorColor: dotIndicatorColor,
44507
44526
  selectedColor: selectedColor,
44508
44527
  onRowClick: onRowClick,
44509
44528
  onSendClick: onSendClick,