@undp/carbon-library 1.0.71 → 1.0.73

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/cjs/index.js CHANGED
@@ -19529,7 +19529,7 @@ var Social = function (props) {
19529
19529
  };
19530
19530
 
19531
19531
  var CoBenifitsComponent = function (props) {
19532
- var onClickedBackBtn = props.onClickedBackBtn, onFormSubmit = props.onFormSubmit, coBenefitsDetails = props.coBenefitsDetails, submitButtonText = props.submitButtonText, viewOnly = props.viewOnly, coBenifitsViewDetails = props.coBenifitsViewDetails, _a = props.loading, loading = _a === void 0 ? false : _a, sdgGoalImages = props.sdgGoalImages, t = props.t;
19532
+ var onClickedBackBtn = props.onClickedBackBtn, onFormSubmit = props.onFormSubmit, coBenefitsDetails = props.coBenefitsDetails, submitButtonText = props.submitButtonText, viewOnly = props.viewOnly, coBenifitsViewDetails = props.coBenifitsViewDetails, _a = props.loading, loading = _a === void 0 ? false : _a, sdgGoalImages = props.sdgGoalImages, t = props.t, useConnection = props.useConnection;
19533
19533
  var _b = React.useState(), coBenefitDetails = _b[0], setCoBenefitDetails = _b[1];
19534
19534
  var _c = React.useState(true), isSocialFormValid = _c[0], setIsSocialFormValid = _c[1];
19535
19535
  var _d = React.useState(true), isAssessmentFormValid = _d[0], setIsAssessmentFormValid = _d[1];
@@ -19605,7 +19605,7 @@ var CoBenifitsComponent = function (props) {
19605
19605
  label: t("coBenifits:assessment"),
19606
19606
  key: "7",
19607
19607
  children: (React.createElement(Assessment, { onFormSubmit: onAssessmentFormSubmit, assessmentViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.assessmentDetails)) ||
19608
- (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false })),
19608
+ (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false, useConnection: useConnection, t: t })),
19609
19609
  },
19610
19610
  ];
19611
19611
  var onCoBenefitSubmit = function () {
@@ -19907,7 +19907,7 @@ var AddNdcActionComponent = function (props) {
19907
19907
  description: (React.createElement("div", { className: current !== 2 ? "hide" : "" },
19908
19908
  React.createElement(CoBenifitsComponent, { onClickedBackBtn: onClickBackCoBenefits, coBenefitsDetails: ndcActionDetails ? ndcActionDetails.coBenefitsProperties : {}, onFormSubmit: onCoBenefitsSubmit, submitButtonText: isProjectReportsVisible()
19909
19909
  ? t("ndcAction:next")
19910
- : t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages, t: t }))),
19910
+ : t("ndcAction:submit"), loading: loading, sdgGoalImages: sdgGoalImages, useConnection: useConnection, t: t }))),
19911
19911
  },
19912
19912
  ];
19913
19913
  if (isProjectReportsVisible()) {
@@ -19973,7 +19973,7 @@ styleInject(css_248z$2);
19973
19973
  var NdcActionViewComponent = function (props) {
19974
19974
  var _a;
19975
19975
  var _b, _c;
19976
- var useUserContext = props.useUserContext, linkDocVisible = props.linkDocVisible, uploadDocUserPermission = props.uploadDocUserPermission, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, t = props.t;
19976
+ var useUserContext = props.useUserContext, linkDocVisible = props.linkDocVisible, uploadDocUserPermission = props.uploadDocUserPermission, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, t = props.t, sdgGoalImages = props.sdgGoalImages;
19977
19977
  var userInfoState = useUserContext().userInfoState;
19978
19978
  var post = useConnection().post;
19979
19979
  var state = useLocation().state;
@@ -20355,7 +20355,7 @@ var NdcActionViewComponent = function (props) {
20355
20355
  React.createElement(antd.Card, { className: "card-container" },
20356
20356
  React.createElement("div", { className: "co-benifits-view" },
20357
20357
  React.createElement("div", { className: "title" }, t("ndcAction:coBenefitsSubTitle")),
20358
- React.createElement(CoBenifitsComponent, { viewOnly: true, coBenifitsViewDetails: (_c = state === null || state === void 0 ? void 0 : state.record) === null || _c === void 0 ? void 0 : _c.coBenefitsProperties, t: t })))))))));
20358
+ React.createElement(CoBenifitsComponent, { viewOnly: true, coBenifitsViewDetails: (_c = state === null || state === void 0 ? void 0 : state.record) === null || _c === void 0 ? void 0 : _c.coBenefitsProperties, sdgGoalImages: sdgGoalImages, useConnection: useConnection, t: t })))))))));
20359
20359
  };
20360
20360
 
20361
20361
  var css_248z$1 = ".legend-item-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n font-weight: 400;\n margin-left: 0.75rem; }\n .legend-item-container .text {\n margin-left: 0.2rem; }\n";