sag_components 2.0.0-beta220 → 2.0.0-beta222

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
@@ -9472,6 +9472,7 @@ const DropdownMultiNew = ({
9472
9472
  required,
9473
9473
  disabled,
9474
9474
  width,
9475
+ height,
9475
9476
  withMarginBottom = true,
9476
9477
  error,
9477
9478
  errorMessage,
@@ -10590,23 +10591,24 @@ const QuarterPopupPicker = ({
10590
10591
  };
10591
10592
 
10592
10593
  /* eslint-disable import/no-extraneous-dependencies */
10593
- const QuarterPicker = ({
10594
- availableQuarters,
10595
- // ["Q1-2024"]
10596
- label,
10597
- onChange,
10598
- borderRadius,
10599
- required,
10600
- width,
10601
- height,
10602
- placeholder,
10603
- disabled,
10604
- borderColor,
10605
- borderColorFocus,
10606
- textColor,
10607
- selectedValue,
10608
- startYear
10609
- }) => {
10594
+ const QuarterPicker = _ref => {
10595
+ let {
10596
+ availableQuarters,
10597
+ // ["Q1-2024"]
10598
+ label,
10599
+ onChange,
10600
+ borderRadius,
10601
+ required,
10602
+ width,
10603
+ height,
10604
+ placeholder,
10605
+ disabled,
10606
+ borderColor,
10607
+ borderColorFocus,
10608
+ textColor,
10609
+ selectedValue,
10610
+ startYear
10611
+ } = _ref;
10610
10612
  const [isFocused, setIsFocused] = React$1.useState(false);
10611
10613
  const [isOpen, setIsOpen] = React$1.useState(false);
10612
10614
  const [value, setValue] = React$1.useState('');
@@ -11048,22 +11050,23 @@ const MonthPopupPicker = ({
11048
11050
  };
11049
11051
 
11050
11052
  /* eslint-disable import/no-extraneous-dependencies */
11051
- const MonthPicker = ({
11052
- availableMonths,
11053
- label,
11054
- onChange,
11055
- borderRadius,
11056
- required,
11057
- width,
11058
- height,
11059
- placeholder,
11060
- disabled,
11061
- borderColor,
11062
- borderColorFocus,
11063
- textColor,
11064
- selectedValue,
11065
- startYear
11066
- }) => {
11053
+ const MonthPicker = _ref => {
11054
+ let {
11055
+ availableMonths,
11056
+ label,
11057
+ onChange,
11058
+ borderRadius,
11059
+ required,
11060
+ width,
11061
+ height,
11062
+ placeholder,
11063
+ disabled,
11064
+ borderColor,
11065
+ borderColorFocus,
11066
+ textColor,
11067
+ selectedValue,
11068
+ startYear
11069
+ } = _ref;
11067
11070
  const [isFocused, setIsFocused] = React$1.useState(false);
11068
11071
  const [isOpen, setIsOpen] = React$1.useState(false);
11069
11072
  const [value, setValue] = React$1.useState('');
@@ -24174,21 +24177,22 @@ const DeleteIcon = styled__default["default"].div`
24174
24177
  position: absolute;
24175
24178
  `;
24176
24179
 
24177
- const QuickFilterDropdownSingle = ({
24178
- label,
24179
- hoverColor,
24180
- options,
24181
- selectedValue,
24182
- placeHolder,
24183
- onChange,
24184
- disabled,
24185
- width,
24186
- error,
24187
- errorMessage,
24188
- xIconShow,
24189
- labelColor,
24190
- showLabelOnTop
24191
- }) => {
24180
+ const QuickFilterDropdownSingle = _ref => {
24181
+ let {
24182
+ label,
24183
+ hoverColor,
24184
+ options,
24185
+ selectedValue,
24186
+ placeHolder,
24187
+ onChange,
24188
+ disabled,
24189
+ width,
24190
+ error,
24191
+ errorMessage,
24192
+ xIconShow,
24193
+ labelColor,
24194
+ showLabelOnTop
24195
+ } = _ref;
24192
24196
  const [isFocused, setIsFocused] = React$1.useState(false);
24193
24197
  const [showOptions, setShowOptions] = React$1.useState(false);
24194
24198
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24645,25 +24649,26 @@ const IconContainer$2 = styled__default["default"].div`
24645
24649
  cursor: pointer;
24646
24650
  `;
24647
24651
 
24648
- const QuickFilterDropdownMultiSelection = ({
24649
- label,
24650
- labelEmptyValue,
24651
- options,
24652
- selectedValue,
24653
- placeHolder,
24654
- onChange,
24655
- required,
24656
- disabled,
24657
- width,
24658
- height,
24659
- error,
24660
- errorMessage,
24661
- labelColor,
24662
- xIconShow,
24663
- checkBoxColor,
24664
- showLabelOnTop,
24665
- dropdownHeight
24666
- }) => {
24652
+ const QuickFilterDropdownMultiSelection = _ref => {
24653
+ let {
24654
+ label,
24655
+ labelEmptyValue,
24656
+ options,
24657
+ selectedValue,
24658
+ placeHolder,
24659
+ onChange,
24660
+ required,
24661
+ disabled,
24662
+ width,
24663
+ height,
24664
+ error,
24665
+ errorMessage,
24666
+ labelColor,
24667
+ xIconShow,
24668
+ checkBoxColor,
24669
+ showLabelOnTop,
24670
+ dropdownHeight
24671
+ } = _ref;
24667
24672
  const [isFocused, setIsFocused] = React$1.useState(false);
24668
24673
  const [showOptions, setShowOptions] = React$1.useState(false);
24669
24674
  const [inputValue, setInputValue] = React$1.useState('');
@@ -36147,9 +36152,9 @@ const ToggleSlider = styled__default["default"].span`
36147
36152
  }
36148
36153
  `;
36149
36154
 
36150
- /**
36151
- * ToggleSwitch component for on/off states.
36152
- * Supports small/large sizes and disabled state.
36155
+ /**
36156
+ * ToggleSwitch component for on/off states.
36157
+ * Supports small/large sizes and disabled state.
36153
36158
  */
36154
36159
  function ToggleSwitch(_ref) {
36155
36160
  let {
@@ -40477,6 +40482,24 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
40477
40482
  console.warn('Error formatting tag:', e);
40478
40483
  return String(value || "");
40479
40484
  }
40485
+ case "dotindicator":
40486
+ try {
40487
+ // Check if value is an object with show and color properties
40488
+ if (!value || typeof value !== 'object') return null;
40489
+ const {
40490
+ show,
40491
+ color
40492
+ } = value;
40493
+
40494
+ // Only show the dot if show is true
40495
+ if (!show) return null;
40496
+ return /*#__PURE__*/React__default["default"].createElement(StatusCellCircle, {
40497
+ backgroundColor: color
40498
+ });
40499
+ } catch (e) {
40500
+ console.warn('Error formatting dotIndicator:', e);
40501
+ return null;
40502
+ }
40480
40503
  case "packagestatus":
40481
40504
  try {
40482
40505
  const applyTooltipLogic = (element, tooltipText) => {
@@ -44380,6 +44403,7 @@ const Table = props => {
44380
44403
  onHeaderCheckboxClick = () => {},
44381
44404
  headerCheckboxStates = {},
44382
44405
  onHeroClick = () => {},
44406
+ dotIndicatorColor = '#34D399',
44383
44407
  // Accept ref as a regular prop
44384
44408
  ref = null
44385
44409
  } = props;
@@ -44514,6 +44538,7 @@ const Table = props => {
44514
44538
  columns: columns,
44515
44539
  indexToShimmer: indexToShimmer,
44516
44540
  data: data,
44541
+ dotIndicatorColor: dotIndicatorColor,
44517
44542
  selectedColor: selectedColor,
44518
44543
  onRowClick: onRowClick,
44519
44544
  onSendClick: onSendClick,