sag_components 2.0.0-beta125 → 2.0.0-beta126

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
@@ -23897,22 +23897,21 @@ const DeleteIcon = styled.div`
23897
23897
  position: absolute;
23898
23898
  `;
23899
23899
 
23900
- const QuickFilterDropdownSingle = _ref => {
23901
- let {
23902
- label,
23903
- hoverColor,
23904
- options,
23905
- selectedValue,
23906
- placeHolder,
23907
- onChange,
23908
- disabled,
23909
- width,
23910
- error,
23911
- errorMessage,
23912
- xIconShow,
23913
- labelColor,
23914
- showLabelOnTop
23915
- } = _ref;
23900
+ const QuickFilterDropdownSingle = ({
23901
+ label,
23902
+ hoverColor,
23903
+ options,
23904
+ selectedValue,
23905
+ placeHolder,
23906
+ onChange,
23907
+ disabled,
23908
+ width,
23909
+ error,
23910
+ errorMessage,
23911
+ xIconShow,
23912
+ labelColor,
23913
+ showLabelOnTop
23914
+ }) => {
23916
23915
  const [isFocused, setIsFocused] = useState(false);
23917
23916
  const [showOptions, setShowOptions] = useState(false);
23918
23917
  const [inputValue, setInputValue] = useState("");
@@ -37599,11 +37598,22 @@ const TableRow = styled.tr`
37599
37598
  border-bottom: 1px solid #F2F2F2;
37600
37599
  transition: background-color 0.2s;
37601
37600
  font-family: 'Poppins', sans-serif;
37601
+ cursor: pointer;
37602
37602
 
37603
37603
  &:hover {
37604
37604
  background-color: #E6F0F0;
37605
37605
  }
37606
37606
 
37607
+ /* Focus state - persistent until another row is clicked */
37608
+ ${props => props.$isFocused && css`
37609
+ background-color: #D1E7E7;
37610
+ border-left: 3px solid #066768;
37611
+
37612
+ &:hover {
37613
+ background-color: #C1D7D7;
37614
+ }
37615
+ `}
37616
+
37607
37617
  &:last-child {
37608
37618
  border-bottom: none;
37609
37619
  }
@@ -37887,6 +37897,15 @@ const TableBody = ({
37887
37897
  onDeleteClick
37888
37898
  }) => {
37889
37899
  const [hoveredRowIndex, setHoveredRowIndex] = useState(null);
37900
+ const [focusedRowIndex, setFocusedRowIndex] = useState(null);
37901
+
37902
+ // Handle row click for focus state
37903
+ const handleRowClick = (row, rowIndex) => {
37904
+ setFocusedRowIndex(rowIndex);
37905
+ if (onRowClick) {
37906
+ onRowClick(row);
37907
+ }
37908
+ };
37890
37909
 
37891
37910
  // Function to calculate tooltip height based on text length
37892
37911
  const calculateTooltipOffset = (text, isRegularCell = false) => {
@@ -37986,7 +38005,7 @@ const TableBody = ({
37986
38005
  hoverBackgroundColor: "#E6F0F0",
37987
38006
  hoverBorderColor: "#D9D9D9",
37988
38007
  disabledTextColor: "#B1B1B1",
37989
- disabledBackgroundColor: hoveredRowIndex === rowIndex ? "#E6F0F0" : "#FFF",
38008
+ disabledBackgroundColor: focusedRowIndex === rowIndex ? "#D1E7E7" : hoveredRowIndex === rowIndex ? "#E6F0F0" : "#FFF",
37990
38009
  disabledBorderColor: "#D9D9D9",
37991
38010
  width: "100px",
37992
38011
  height: "32px",
@@ -37999,7 +38018,7 @@ const TableBody = ({
37999
38018
  leftIcon: "Fly",
38000
38019
  text: "Send",
38001
38020
  borderRadius: "8px",
38002
- backgroundColor: hoveredRowIndex === rowIndex ? "#E6F0F0" : "#FFF",
38021
+ backgroundColor: focusedRowIndex === rowIndex ? "#D1E7E7" : hoveredRowIndex === rowIndex ? "#E6F0F0" : "#FFF",
38003
38022
  textColor: buttonColor,
38004
38023
  borderColor: buttonColor,
38005
38024
  hoverTextColor: buttonColor,
@@ -38089,8 +38108,10 @@ const TableBody = ({
38089
38108
  return /*#__PURE__*/React$1.createElement(StyledTableBody, null, data.map((row, rowIndex) => /*#__PURE__*/React$1.createElement(TableRow, {
38090
38109
  key: rowIndex,
38091
38110
  "data-row-index": rowIndex,
38111
+ $isFocused: focusedRowIndex === rowIndex,
38092
38112
  onMouseEnter: () => setHoveredRowIndex(rowIndex),
38093
- onMouseLeave: () => setHoveredRowIndex(null)
38113
+ onMouseLeave: () => setHoveredRowIndex(null),
38114
+ onClick: () => handleRowClick(row, rowIndex)
38094
38115
  }, columns.map(column => {
38095
38116
  const value = row[column.key];
38096
38117
  const formattedValue = formatValue(value, column, row, rowIndex);
@@ -38114,8 +38135,7 @@ const TableBody = ({
38114
38135
  $fieldType: column.fieldType?.toLowerCase(),
38115
38136
  $color: column.color,
38116
38137
  $minWidth: column.minWidth,
38117
- $maxWidth: column.maxWidth,
38118
- onClick: onRowClick ? () => onRowClick(row) : undefined
38138
+ $maxWidth: column.maxWidth
38119
38139
  }, formattedValue);
38120
38140
  }))));
38121
38141
  };
@@ -42169,7 +42189,11 @@ const NewSubitem = ({
42169
42189
  size: "small",
42170
42190
  text: "Cancel",
42171
42191
  type: "secondary",
42172
- borderRadius: "8px"
42192
+ borderRadius: "8px",
42193
+ borderColor: "#D3D3D3",
42194
+ hoverTextColor: "#212121",
42195
+ hoverBackgroundColor: "#E6F0F0",
42196
+ hoverBorderColor: "#D3D3D3"
42173
42197
  }), /*#__PURE__*/React$1.createElement(Button$1, {
42174
42198
  leftIcon: "none",
42175
42199
  onClick: () => {
@@ -42315,7 +42339,12 @@ const ConfirmationDialog = ({
42315
42339
  rightIcon: "none",
42316
42340
  size: "",
42317
42341
  text: "Cancel",
42318
- type: "secondary"
42342
+ type: "secondary",
42343
+ borderRadius: "8px",
42344
+ borderColor: "#D3D3D3",
42345
+ hoverTextColor: "#212121",
42346
+ hoverBackgroundColor: "#E6F0F0",
42347
+ hoverBorderColor: "#D3D3D3"
42319
42348
  }), /*#__PURE__*/React$1.createElement(Button$1, {
42320
42349
  leftIcon: "none",
42321
42350
  onClick: onConfirm,
@@ -42323,9 +42352,11 @@ const ConfirmationDialog = ({
42323
42352
  size: "",
42324
42353
  text: "Confirm & Send",
42325
42354
  type: "primary",
42355
+ borderRadius: "8px",
42326
42356
  borderColor: linkColor,
42327
42357
  backgroundColor: linkColor,
42328
- hoverTextColor: "#212121"
42358
+ hoverBackgroundColor: "#388586",
42359
+ hoverBorderColor: "#388586"
42329
42360
  }))), /*#__PURE__*/React$1.createElement(Dialog, null, vendors.map((vendor, idx) => /*#__PURE__*/React$1.createElement(VendorSection, {
42330
42361
  key: vendor.name
42331
42362
  }, /*#__PURE__*/React$1.createElement(VendorHeader, null, /*#__PURE__*/React$1.createElement(VendorName, null, vendor.name), /*#__PURE__*/React$1.createElement(NewBadge, null, vendor.newPackages.length, " New")), /*#__PURE__*/React$1.createElement(PackageList, null, vendor.newPackages.map((pkg, i) => /*#__PURE__*/React$1.createElement(Item, {
@@ -51036,7 +51067,10 @@ const ItemManagerPanel = _ref => {
51036
51067
  type: "secondary",
51037
51068
  borderRadius: "8px",
51038
51069
  borderColor: linkColor,
51039
- textColor: linkColor
51070
+ textColor: linkColor,
51071
+ hoverTextColor: "#ffffff",
51072
+ hoverBackgroundColor: linkColor,
51073
+ hoverBorderColor: linkColor
51040
51074
  })), /*#__PURE__*/React$1.createElement(Subtitle$1, {
51041
51075
  color: actuallyAllFormsSent ? "#90CE9C" : "#8b8989"
51042
51076
  }, actuallyAllFormsSent ? '✔ All Forms Sent' : itemAndPackage.filter(item => item.packages !== null).length > 0 ? `${itemAndPackage.filter(item => item.packages !== null).length.toString()} New Forms` : ''))), /*#__PURE__*/React$1.createElement(AddButtonContainer$1, null, /*#__PURE__*/React$1.createElement(LinkButton, {