sag_components 2.0.0-beta120 → 2.0.0-beta122

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
@@ -1434,9 +1434,10 @@ declare function RangePop(props: any): react_jsx_runtime.JSX.Element;
1434
1434
 
1435
1435
  declare function SearchInput(props: any): react_jsx_runtime.JSX.Element;
1436
1436
 
1437
- declare function ItemManagerPanel({ width, height, onSendForms, editMode, disabledSendForms, AllFormsSent, itemAndPackage, setItemAndPackage, linkColor, backgroundColor, buttonTooltipText, }: {
1437
+ declare function ItemManagerPanel({ width, height, disableSection, onSendForms, editMode, disabledSendForms, AllFormsSent, itemAndPackage, setItemAndPackage, linkColor, backgroundColor, buttonTooltipText, }: {
1438
1438
  width?: string;
1439
1439
  height?: string;
1440
+ disableSection?: boolean;
1440
1441
  onSendForms?: () => void;
1441
1442
  editMode?: boolean;
1442
1443
  disabledSendForms?: boolean;
package/dist/index.esm.js CHANGED
@@ -34436,11 +34436,11 @@ const ModalWithOverlay = props => {
34436
34436
  disabled: disableOkButton,
34437
34437
  text: okButtonText,
34438
34438
  onClick: onOk,
34439
+ hoverTextColor: "#ffffff",
34439
34440
  borderColor: okButtonColor,
34440
34441
  backgroundColor: okButtonColor,
34441
34442
  hoverBorderColor: okButtonHoverBackgroundColor,
34442
- hoverBackgroundColor: okButtonHoverBackgroundColor,
34443
- hoverTextColor: "#212121"
34443
+ hoverBackgroundColor: okButtonHoverBackgroundColor
34444
34444
  })) : /*#__PURE__*/React$1.createElement(Button$1, {
34445
34445
  size: "medium",
34446
34446
  type: okButtonType,
@@ -34449,11 +34449,11 @@ const ModalWithOverlay = props => {
34449
34449
  disabled: disableOkButton,
34450
34450
  text: okButtonText,
34451
34451
  onClick: onOk,
34452
+ hoverTextColor: "#ffffff",
34452
34453
  borderColor: okButtonColor,
34453
34454
  backgroundColor: okButtonColor,
34454
34455
  hoverBorderColor: okButtonHoverBackgroundColor,
34455
- hoverBackgroundColor: okButtonHoverBackgroundColor,
34456
- hoverTextColor: "#212121"
34456
+ hoverBackgroundColor: okButtonHoverBackgroundColor
34457
34457
  })))), /*#__PURE__*/React$1.createElement(ModalBody, {
34458
34458
  className: "modal-body"
34459
34459
  }, children)));
@@ -41358,6 +41358,8 @@ const Table = props => {
41358
41358
  leftIcon: "Plus",
41359
41359
  text: "New Event",
41360
41360
  borderRadius: "12px",
41361
+ borderColor: sideButtonColor,
41362
+ hoverBorderColor: sideButtonHoverColor,
41361
41363
  backgroundColor: sideButtonColor,
41362
41364
  hoverBackgroundColor: sideButtonHoverColor,
41363
41365
  onClick: onSideButtonClick
@@ -41384,6 +41386,8 @@ const Table = props => {
41384
41386
  leftIcon: "Plus",
41385
41387
  text: "New Event",
41386
41388
  borderRadius: "12px",
41389
+ borderColor: buttonColor,
41390
+ hoverBorderColor: buttonHoverColor,
41387
41391
  backgroundColor: buttonColor,
41388
41392
  hoverBackgroundColor: buttonHoverColor,
41389
41393
  onClick: onButtonClick
@@ -41407,6 +41411,10 @@ const Card = styled.div`
41407
41411
  height: ${props => props.height || "auto"};
41408
41412
  margin: 0 auto;
41409
41413
  font-family: 'Poppins', sans-serif;
41414
+ &:disabled {
41415
+ background: #f2f2f2;
41416
+ cursor: not-allowed;
41417
+ }
41410
41418
  `;
41411
41419
  const TitleContainer = styled.div`
41412
41420
  display: flex;
@@ -41465,7 +41473,7 @@ styled.input`
41465
41473
  `;
41466
41474
  const VendorListWrapper$2 = styled.div`
41467
41475
  height: calc(100% - ${props => props.headerHeight}px);
41468
- background: #fff;
41476
+ background: ${props => props.disabled ? '#f2f2f2' : '#fff'};
41469
41477
  width: 100%;
41470
41478
  overflow: auto;
41471
41479
  border-radius: 0 0 8px 8px;
@@ -41621,6 +41629,7 @@ const VendorSearchResult = styled.span`
41621
41629
  color: #212121;
41622
41630
  font-size: 16px;
41623
41631
  font-weight: 400;
41632
+ height: 20px;
41624
41633
  `;
41625
41634
  const VendorNameAndPackagesContainer = styled.div`
41626
41635
  display: flex;
@@ -50826,6 +50835,7 @@ const ItemManagerPanel = _ref => {
50826
50835
  let {
50827
50836
  width = "100%",
50828
50837
  height = "100%",
50838
+ disableSection = false,
50829
50839
  onSendForms = () => {},
50830
50840
  editMode = true,
50831
50841
  disabledSendForms = false,
@@ -51034,6 +51044,7 @@ const ItemManagerPanel = _ref => {
51034
51044
  type: "primary",
51035
51045
  textColor: linkColor
51036
51046
  }))), /*#__PURE__*/React$1.createElement(VendorListWrapper$2, {
51047
+ disabled: disableSection,
51037
51048
  headerHeight: headerHeight
51038
51049
  }, /*#__PURE__*/React$1.createElement(VendorList$2, null, itemAndPackage.filter(item => item.packages !== null).map((item, idx) => /*#__PURE__*/React$1.createElement(VendorItem$1, {
51039
51050
  key: idx