sag_components 2.0.0-beta230 → 2.0.0-beta231

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.d.ts CHANGED
@@ -1304,12 +1304,13 @@ declare function WeeksPicker({ label, disabled, borderColor, borderColorFocus, t
1304
1304
  restrictToRange?: boolean;
1305
1305
  }): react_jsx_runtime.JSX.Element;
1306
1306
 
1307
- declare function Input({ label, labelEmptyValue, size, selectedValue, placeHolder, onChange, onClick, onBlur, required, disabled, isDarkerBackground, width, height, error, errorMessage, labelColor, leftIcon, rightIcon, password, leftIconOnClick, rightIconOnClick, multiline, rows, maxLength, regex, onKeyDown, }: {
1307
+ declare function Input({ label, labelEmptyValue, size, selectedValue, placeHolder, inputType, onChange, onClick, onBlur, required, disabled, isDarkerBackground, width, height, error, errorMessage, labelColor, leftIcon, rightIcon, password, leftIconOnClick, rightIconOnClick, multiline, rows, maxLength, regex, onKeyDown, }: {
1308
1308
  label: any;
1309
1309
  labelEmptyValue: any;
1310
1310
  size: any;
1311
1311
  selectedValue: any;
1312
1312
  placeHolder: any;
1313
+ inputType?: string;
1313
1314
  onChange: any;
1314
1315
  onClick: any;
1315
1316
  onBlur: any;
@@ -1538,7 +1539,7 @@ declare function RangePop(props: any): react_jsx_runtime.JSX.Element;
1538
1539
 
1539
1540
  declare function SearchInput(props: any): react_jsx_runtime.JSX.Element;
1540
1541
 
1541
- declare function ItemManagerPanel({ width, height, disableSection, onSendForms, editMode, disabledSendForms, AllFormsSent, itemAndPackage, setItemAndPackage, linkColor, backgroundColor, buttonTooltipText, trashTooltipText, maxVisibleVendors, componentText }: {
1542
+ declare function ItemManagerPanel({ width, height, disableSection, onSendForms, editMode, disabledSendForms, AllFormsSent, itemAndPackage, setItemAndPackage, linkColor, backgroundColor, buttonTooltipText, trashTooltipText, maxVisibleVendors, componentText, SubTitleColor }: {
1542
1543
  width?: string;
1543
1544
  height?: string;
1544
1545
  disableSection?: boolean;
@@ -1554,6 +1555,7 @@ declare function ItemManagerPanel({ width, height, disableSection, onSendForms,
1554
1555
  trashTooltipText?: string;
1555
1556
  maxVisibleVendors?: number;
1556
1557
  componentText?: string;
1558
+ SubTitleColor?: string;
1557
1559
  }): react_jsx_runtime.JSX.Element;
1558
1560
 
1559
1561
  /**
package/dist/index.esm.js CHANGED
@@ -575,6 +575,24 @@ const PackageSendIcon = () => /*#__PURE__*/React$1.createElement("svg", {
575
575
  fill: "#B1B1B1"
576
576
  }));
577
577
 
578
+ const MenuItemOpenIcon = _ref => {
579
+ let {
580
+ width = '16',
581
+ height = '16',
582
+ color = '#7E7E7E'
583
+ } = _ref;
584
+ return /*#__PURE__*/React$1.createElement("svg", {
585
+ width: width,
586
+ height: height,
587
+ viewBox: "0 0 16 10",
588
+ fill: "none",
589
+ xmlns: "http://www.w3.org/2000/svg"
590
+ }, /*#__PURE__*/React$1.createElement("path", {
591
+ d: "M7.40234 8.84766L0.652344 2.09766C0.300781 1.78125 0.300781 1.25391 0.652344 0.902344C0.96875 0.585938 1.49609 0.585938 1.84766 0.902344L8 7.08984L14.1523 0.9375C14.4688 0.585938 14.9961 0.585938 15.3477 0.9375C15.6641 1.25391 15.6641 1.78125 15.3477 2.09766L8.5625 8.84766C8.24609 9.19922 7.71875 9.19922 7.40234 8.84766Z",
592
+ fill: color
593
+ }));
594
+ };
595
+
578
596
  const ChervronRightIcon = _ref => {
579
597
  let {
580
598
  width = "8",
@@ -3181,24 +3199,6 @@ const IconWrapper$4 = styled.div`
3181
3199
  align-content: center;
3182
3200
  `;
3183
3201
 
3184
- const MenuItemOpenIcon = _ref => {
3185
- let {
3186
- width = '16',
3187
- height = '16',
3188
- color = '#7E7E7E'
3189
- } = _ref;
3190
- return /*#__PURE__*/React$1.createElement("svg", {
3191
- width: width,
3192
- height: height,
3193
- viewBox: "0 0 16 10",
3194
- fill: "none",
3195
- xmlns: "http://www.w3.org/2000/svg"
3196
- }, /*#__PURE__*/React$1.createElement("path", {
3197
- d: "M7.40234 8.84766L0.652344 2.09766C0.300781 1.78125 0.300781 1.25391 0.652344 0.902344C0.96875 0.585938 1.49609 0.585938 1.84766 0.902344L8 7.08984L14.1523 0.9375C14.4688 0.585938 14.9961 0.585938 15.3477 0.9375C15.6641 1.25391 15.6641 1.78125 15.3477 2.09766L8.5625 8.84766C8.24609 9.19922 7.71875 9.19922 7.40234 8.84766Z",
3198
- fill: color
3199
- }));
3200
- };
3201
-
3202
3202
  const MenuItemRightIcon = _ref => {
3203
3203
  let {
3204
3204
  clicked,
@@ -35635,6 +35635,18 @@ const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBack
35635
35635
  color: newColor,
35636
35636
  onClick: callBackOnClick
35637
35637
  }));
35638
+ case 'openicon':
35639
+ return /*#__PURE__*/React$1.createElement(IconWrapper$2, {
35640
+ className: "MenuItemOpenIcon",
35641
+ pointer: pointer,
35642
+ disabled: disabled,
35643
+ onClick: callBackOnClick
35644
+ }, /*#__PURE__*/React$1.createElement(MenuItemOpenIcon, {
35645
+ height: newIconHeight,
35646
+ width: newIconWidth,
35647
+ color: newColor,
35648
+ onClick: callBackOnClick
35649
+ }));
35638
35650
  default:
35639
35651
  return '';
35640
35652
  }
@@ -35826,6 +35838,7 @@ const Input$2 = _ref => {
35826
35838
  size,
35827
35839
  selectedValue,
35828
35840
  placeHolder,
35841
+ inputType = "text",
35829
35842
  onChange,
35830
35843
  onClick,
35831
35844
  onBlur,
@@ -35991,7 +36004,7 @@ const Input$2 = _ref => {
35991
36004
  }, "*")), /*#__PURE__*/React$1.createElement(InputElement, {
35992
36005
  className: multiline ? "StyledTextarea" : "StyledInput",
35993
36006
  ref: inputRef,
35994
- type: password && !showPassword ? "password" : "text",
36007
+ type: password && !showPassword ? "password" : inputType,
35995
36008
  value: inputValue,
35996
36009
  onChange: handleInputChange,
35997
36010
  onClick: handleLabelClick,
@@ -39299,6 +39312,25 @@ const StatusCellCircle = styled.div`
39299
39312
  border: 1px solid white;
39300
39313
  background-color: ${props => props.backgroundColor};
39301
39314
  `;
39315
+ const DotIndicatorWrapper = styled.div`
39316
+ display: inline-flex;
39317
+ align-items: center;
39318
+ justify-content: center;
39319
+ width: 100%;
39320
+ height: 100%;
39321
+ position: relative;
39322
+
39323
+ ${tooltipStyles$1}
39324
+
39325
+ /* Override tooltip position */
39326
+ &[data-tooltip]:hover::before {
39327
+ top: calc(var(--tooltip-top, 0px) - var(--tooltip-offset, 60px) + 20px);
39328
+ }
39329
+
39330
+ &[data-tooltip]:hover::after {
39331
+ top: calc(var(--tooltip-top, 0px) - var(--tooltip-offset, 60px) + var(--tooltip-height, 50px) + 20px);
39332
+ }
39333
+ `;
39302
39334
 
39303
39335
  // NEW TAG STYLES
39304
39336
  const TagContainer = styled.div`
@@ -40530,14 +40562,40 @@ const TableBody = /*#__PURE__*/forwardRef(({
40530
40562
  if (!value || typeof value !== 'object') return null;
40531
40563
  const {
40532
40564
  show,
40533
- color
40565
+ color,
40566
+ tooltip
40534
40567
  } = value;
40535
40568
 
40536
40569
  // Only show the dot if show is true
40537
40570
  if (!show) return null;
40538
- return /*#__PURE__*/React$1.createElement(StatusCellCircle, {
40571
+ return /*#__PURE__*/React$1.createElement(DotIndicatorWrapper, {
40572
+ ref: el => {
40573
+ if (el && tooltip && tooltip.trim() !== "") {
40574
+ try {
40575
+ const rect = el.getBoundingClientRect();
40576
+ if (rect.width > 0 && rect.height > 0) {
40577
+ const tooltipInfo = calculateTooltipOffset(tooltip);
40578
+ if (tooltipInfo) {
40579
+ const {
40580
+ offset,
40581
+ height
40582
+ } = tooltipInfo;
40583
+ el.style.setProperty("--tooltip-top", `${rect.top}px`);
40584
+ el.style.setProperty("--tooltip-left", `${rect.left}px`);
40585
+ el.style.setProperty("--tooltip-width", `${rect.width}px`);
40586
+ el.style.setProperty("--tooltip-offset", `${offset}px`);
40587
+ el.style.setProperty("--tooltip-height", `${height}px`);
40588
+ el.setAttribute("data-tooltip", tooltip);
40589
+ }
40590
+ }
40591
+ } catch (e) {
40592
+ console.warn("Error applying dotIndicator tooltip:", e);
40593
+ }
40594
+ }
40595
+ }
40596
+ }, /*#__PURE__*/React$1.createElement(StatusCellCircle, {
40539
40597
  backgroundColor: color
40540
- });
40598
+ }));
40541
40599
  } catch (e) {
40542
40600
  console.warn('Error formatting dotIndicator:', e);
40543
40601
  return null;
@@ -40549,7 +40607,7 @@ const TableBody = /*#__PURE__*/forwardRef(({
40549
40607
  style: {
40550
40608
  color: isDefine ? "#8B8989" : "inherit"
40551
40609
  }
40552
- }, value ?? "Define"), /*#__PURE__*/React$1.createElement(PencilButton, {
40610
+ }, value ? `$${value}` : "Define"), /*#__PURE__*/React$1.createElement(PencilButton, {
40553
40611
  onClick: e => {
40554
40612
  e.stopPropagation();
40555
40613
  handleEditableClick(row, column.key, value, rowIndex);
@@ -40823,6 +40881,9 @@ const TableBody = /*#__PURE__*/forwardRef(({
40823
40881
  case "checkbox":
40824
40882
  try {
40825
40883
  const isChecked = Boolean(value);
40884
+ // Check if this specific checkbox should be disabled
40885
+ // Format: checkboxDisabled_{columnKey} or checkboxDisabled (for backward compatibility)
40886
+ const isDisabled = row[`checkboxDisabled_${column.key}`] === true || column.key && row[`checkboxDisabled_${column.key}`] === true;
40826
40887
  return /*#__PURE__*/React$1.createElement("div", {
40827
40888
  style: {
40828
40889
  display: "flex",
@@ -40834,13 +40895,15 @@ const TableBody = /*#__PURE__*/forwardRef(({
40834
40895
  }, /*#__PURE__*/React$1.createElement("input", {
40835
40896
  type: "checkbox",
40836
40897
  checked: isChecked,
40898
+ disabled: isDisabled,
40837
40899
  onChange: e => handleCheckboxClick(row, column.key, e),
40838
40900
  onClick: e => e.stopPropagation(),
40839
40901
  style: {
40840
40902
  width: "18px",
40841
40903
  height: "18px",
40842
- cursor: "pointer",
40843
- accentColor: buttonColor
40904
+ cursor: isDisabled ? "not-allowed" : "pointer",
40905
+ accentColor: buttonColor,
40906
+ opacity: isDisabled ? 0.5 : 1
40844
40907
  }
40845
40908
  }));
40846
40909
  } catch (e) {
@@ -44432,6 +44495,7 @@ const Table = props => {
44432
44495
  noEventsSubtitle = "Let's get started and create your first one!",
44433
44496
  noEventsButtonText = "New Event",
44434
44497
  noEventsButtonIcon = "Plus",
44498
+ disableNoEventsButton = false,
44435
44499
  showNoEventsButton = true,
44436
44500
  indexToShimmer = -1,
44437
44501
  resetFocusIndex,
@@ -44615,6 +44679,7 @@ const Table = props => {
44615
44679
  height: "45px",
44616
44680
  leftIcon: noEventsButtonIcon,
44617
44681
  text: noEventsButtonText,
44682
+ disabled: disableNoEventsButton,
44618
44683
  borderRadius: "12px",
44619
44684
  borderColor: buttonColor,
44620
44685
  hoverBorderColor: buttonHoverColor,
@@ -44658,7 +44723,7 @@ const TitleContainer = styled$1.div`
44658
44723
  `;
44659
44724
  const SectionTitle$1 = styled$1.div`
44660
44725
  color: #212121;
44661
- font-size: 18px;
44726
+ font-size: 14px;
44662
44727
  font-weight: 700;
44663
44728
  `;
44664
44729
  const SubtitleContainer = styled$1.div`
@@ -44717,7 +44782,7 @@ const VendorList$2 = styled$1.div`
44717
44782
  `;
44718
44783
  const VendorItem$1 = styled$1.div`
44719
44784
  display: grid;
44720
- grid-template-columns: 15% 70% 15%;
44785
+ grid-template-columns: 10% 75% 15%;
44721
44786
  align-items: center;
44722
44787
  padding: 16px 8px;
44723
44788
  border-bottom: 1px solid #f2f2f2;
@@ -44736,7 +44801,7 @@ const VendorItem$1 = styled$1.div`
44736
44801
  `;
44737
44802
  const VendorName$2 = styled$1.div`
44738
44803
  color: #212121;
44739
- font-size: 16px;
44804
+ font-size: 14px;
44740
44805
  font-weight: 500;
44741
44806
  overflow: hidden;
44742
44807
  max-width: 90%;
@@ -54430,7 +54495,8 @@ const ItemManagerPanel = _ref => {
54430
54495
  buttonTooltipText = "Please fill out all forms before sending.",
54431
54496
  trashTooltipText = 'Vendor cannot be deleted since its packages <br/> have already been sent as a form.',
54432
54497
  maxVisibleVendors = 12,
54433
- componentText = "Scale"
54498
+ componentText = "Scale",
54499
+ SubTitleColor = "#8B8989"
54434
54500
  } = _ref;
54435
54501
  const [screen, setScreen] = useState("initial");
54436
54502
  const [selectedVendor, setSelectedVendor] = useState(null);
@@ -54681,7 +54747,9 @@ const ItemManagerPanel = _ref => {
54681
54747
  }
54682
54748
  }, /*#__PURE__*/React$1.createElement(VendorNameAndPackagesContainer$1, null, /*#__PURE__*/React$1.createElement(VendorName$2, {
54683
54749
  title: item.name
54684
- }, item.name), packagesLength === 0 && /*#__PURE__*/React$1.createElement(Subtitle$1, null, "No Packages"), packagesLength > 0 && /*#__PURE__*/React$1.createElement(Subtitle$1, null, (() => {
54750
+ }, item.name), packagesLength === 0 && /*#__PURE__*/React$1.createElement(Subtitle$1, null, "No Packages"), packagesLength > 0 && /*#__PURE__*/React$1.createElement(Subtitle$1, {
54751
+ color: SubTitleColor
54752
+ }, (() => {
54685
54753
  const noPackagesSent = sentPackagesLength === 0;
54686
54754
  if (noPackagesSent) {
54687
54755
  return `0/${packagesLength} Packages Sent`;