@undp/carbon-library 1.0.166-CARBON-359.5 → 1.0.166-CARBON-359.7

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -25985,7 +25985,7 @@ var NdcActionBody = function (props) {
25985
25985
  React.createElement("div", { className: "icon" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) ? (monitoringReportPending ? ((companyRolePermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
25986
25986
  React.createElement(icons.LikeOutlined, { onClick: function () {
25987
25987
  return docAction(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.id, exports.DocumentStatus.ACCEPTED, monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.actionId, monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.type);
25988
- }, className: "common-progress-icon", style: { color: "#976ED7" } }),
25988
+ }, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: '3px' } }),
25989
25989
  React.createElement(icons.DislikeOutlined, { onClick: function () {
25990
25990
  setRejectDocData({
25991
25991
  id: monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.id,
@@ -26000,8 +26000,8 @@ var NdcActionBody = function (props) {
26000
26000
  icon: React.createElement(icons.DislikeOutlined, null),
26001
26001
  });
26002
26002
  setOpenRejectDocConfirmationModal(true);
26003
- }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } })))) : monitoringReportAccepted ? (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })) : (monitoringReportRejected && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
26004
- React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))))) : (React.createElement(React.Fragment, null,
26003
+ }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70", paddingTop: '3px' } })))) : monitoringReportAccepted ? (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380", paddingTop: '3px' } })) : (monitoringReportRejected && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
26004
+ React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70", paddingTop: '3px' } }))))) : (React.createElement(React.Fragment, null,
26005
26005
  React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
26006
26006
  ? t("programme:notAuthToUploadDoc")
26007
26007
  : uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
@@ -26010,8 +26010,8 @@ var NdcActionBody = function (props) {
26010
26010
  : t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
26011
26011
  React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: canUploadMonitorReport &&
26012
26012
  uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
26013
- ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 1.5px 0px" }
26014
- : { color: "#cacaca", cursor: "default", margin: "0px 0px 1.5px 0px" }, onClick: function () {
26013
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 1.5px 0px", paddingTop: '3px' }
26014
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 1.5px 0px", paddingTop: '3px' }, onClick: function () {
26015
26015
  if (canUploadMonitorReport &&
26016
26016
  uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)) {
26017
26017
  handleFileUploadMonitor();
@@ -26024,7 +26024,7 @@ var NdcActionBody = function (props) {
26024
26024
  } }))))),
26025
26025
  (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement("div", { className: "report-link" },
26026
26026
  React.createElement("div", { className: "link" }, linkDocVisible(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) && (React.createElement("a", { href: monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url, target: "_blank", rel: "noopener noreferrer", download: true },
26027
- React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
26027
+ React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47", paddingTop: '3px' } })))),
26028
26028
  !monitoringReportAccepted && (React.createElement(React.Fragment, null,
26029
26029
  React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
26030
26030
  ? t("programme:notAuthToUploadDoc")
@@ -26034,8 +26034,8 @@ var NdcActionBody = function (props) {
26034
26034
  : t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
26035
26035
  React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: canUploadMonitorReport &&
26036
26036
  uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
26037
- ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 1.5px 0px" }
26038
- : { color: "#cacaca", cursor: "default", margin: "0px 0px 1.5px 0px" }, onClick: function () {
26037
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 1.5px 0px", paddingTop: '3px' }
26038
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 1.5px 0px", paddingTop: '3px' }, onClick: function () {
26039
26039
  if (canUploadMonitorReport &&
26040
26040
  uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)) {
26041
26041
  handleFileUploadMonitor();
@@ -26059,7 +26059,7 @@ var NdcActionBody = function (props) {
26059
26059
  ministryLevelPermission) && (React.createElement(React.Fragment, null,
26060
26060
  React.createElement(icons.LikeOutlined, { onClick: function () {
26061
26061
  return docAction(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.id, exports.DocumentStatus.ACCEPTED, verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.actionId, verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.type);
26062
- }, className: "common-progress-icon", style: { color: "#976ED7" } }),
26062
+ }, className: "common-progress-icon", style: { color: "#976ED7", paddingTop: '3px' } }),
26063
26063
  React.createElement(icons.DislikeOutlined, { onClick: function () {
26064
26064
  setRejectDocData({
26065
26065
  id: verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.id,
@@ -26074,8 +26074,8 @@ var NdcActionBody = function (props) {
26074
26074
  icon: React.createElement(icons.DislikeOutlined, null),
26075
26075
  });
26076
26076
  setOpenRejectDocConfirmationModal(true);
26077
- }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } })))) : verificationReportAccepted ? (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })) : (verifcationReportRejected && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
26078
- React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))))) : (React.createElement(React.Fragment, null,
26077
+ }, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70", paddingTop: '3px' } })))) : verificationReportAccepted ? (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380", paddingTop: '3px' } })) : (verifcationReportRejected && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
26078
+ React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70", paddingTop: '3px' } }))))) : (React.createElement(React.Fragment, null,
26079
26079
  React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
26080
26080
  ? t("programme:notAuthToUploadDoc")
26081
26081
  : uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
@@ -26084,8 +26084,8 @@ var NdcActionBody = function (props) {
26084
26084
  : t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
26085
26085
  React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: monitoringReportAccepted &&
26086
26086
  uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
26087
- ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 1.5px 0px" }
26088
- : { color: "#cacaca", cursor: "default", margin: "0px 0px 1.5px 0px" }, onClick: function () {
26087
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 1.5px 0px", paddingTop: '3px' }
26088
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 1.5px 0px", paddingTop: '3px' }, onClick: function () {
26089
26089
  if (monitoringReportAccepted &&
26090
26090
  uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)) {
26091
26091
  handleFileUploadVerification();
@@ -26098,7 +26098,7 @@ var NdcActionBody = function (props) {
26098
26098
  } })))))),
26099
26099
  (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement("div", { className: "report-link" },
26100
26100
  React.createElement("div", { className: "link" }, linkDocVisible(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) && (React.createElement("a", { href: verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url, target: "_blank", rel: "noopener noreferrer", download: true },
26101
- React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
26101
+ React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47", paddingTop: '3px' } })))),
26102
26102
  !verificationReportAccepted && monitoringReportAccepted && (React.createElement(React.Fragment, null,
26103
26103
  React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
26104
26104
  ? t("programme:notAuthToUploadDoc")
@@ -26108,8 +26108,8 @@ var NdcActionBody = function (props) {
26108
26108
  : t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
26109
26109
  React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: monitoringReportAccepted &&
26110
26110
  uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
26111
- ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 1.5px 0px" }
26112
- : { color: "#cacaca", cursor: "default", margin: "0px 0px 1.5px 0px" }, onClick: function () {
26111
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 1.5px 0px", paddingTop: '3px' }
26112
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 1.5px 0px", paddingTop: '3px' }, onClick: function () {
26113
26113
  if (monitoringReportAccepted &&
26114
26114
  uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)) {
26115
26115
  handleFileUploadVerification();