@undp/carbon-library 1.0.285-CARBON-138.0 → 1.0.285-CARBON-367.1

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.
@@ -7,7 +7,7 @@ import { CarbonSystemType } from "../Enums/carbonSystemType.enum";
7
7
  export declare const getStageEnumVal: (value: string) => string;
8
8
  export declare const getCreditStageVal: (value: string) => string;
9
9
  export declare const getStageTransferEnumVal: (value: string, transfer: ProgrammeTransfer) => string;
10
- export declare const getStageTagType: (stage: ProgrammeStageR | ProgrammeStageUnified) => "error" | "processing" | "default";
10
+ export declare const getStageTagType: (stage: ProgrammeStageR | ProgrammeStageUnified) => "purple" | "error" | "processing" | "default";
11
11
  export declare const getStageTagTypeMRV: (stage: ProgrammeStageMRV) => "purple" | "error" | "processing" | "default";
12
12
  export declare const getTransferStageTagType: (stage: CreditTransferStage, transfer: ProgrammeTransfer) => "orange" | "purple" | "error" | "processing" | "default" | "success";
13
13
  export declare class UnitField {
package/dist/esm/index.js CHANGED
@@ -263,8 +263,8 @@ var getStageTagType = function (stage) {
263
263
  return "error";
264
264
  case ProgrammeStageR.Authorised:
265
265
  return "processing";
266
- // case ProgrammeStageR.Transferred:
267
- // return 'success';
266
+ case ProgrammeStageR.Approved:
267
+ return 'purple';
268
268
  default:
269
269
  return "default";
270
270
  }
@@ -895,9 +895,9 @@ var getStatusTagType = function (status) {
895
895
  case InvestmentStatus.REJECTED:
896
896
  return "error";
897
897
  case InvestmentStatus.PENDING:
898
- return "processing";
899
- case InvestmentStatus.APPROVED:
900
898
  return "success";
899
+ case InvestmentStatus.APPROVED:
900
+ return "processing";
901
901
  default:
902
902
  return "default";
903
903
  }
@@ -2040,9 +2040,9 @@ var getNdcActionStatusEnumVal$1 = function (value) {
2040
2040
  var getNdcStatusTagType = function (status) {
2041
2041
  switch (getNdcActionStatusEnumVal$1(status)) {
2042
2042
  case NdcActionStatus.PENDING:
2043
- return "processing";
2044
- case NdcActionStatus.APPROVED:
2045
2043
  return "success";
2044
+ case NdcActionStatus.APPROVED:
2045
+ return "processing";
2046
2046
  default:
2047
2047
  return "default";
2048
2048
  }
@@ -5928,7 +5928,7 @@ var AddNewCompanyComponent = function (props) {
5928
5928
  _c.label = 1;
5929
5929
  case 1:
5930
5930
  _c.trys.push([1, 7, 8, 9]);
5931
- if (requestData.phoneNo && requestData.phoneNo.length > 4) {
5931
+ if (requestData.phoneNo) {
5932
5932
  requestData.phoneNo = formatPhoneNumberIntl(requestData.phoneNo);
5933
5933
  }
5934
5934
  else {
@@ -14338,7 +14338,7 @@ var AddNewUserComponent = function (props) {
14338
14338
  _a.label = 1;
14339
14339
  case 1:
14340
14340
  _a.trys.push([1, 3, 4, 5]);
14341
- if (values.phoneNo && values.phoneNo.length > 4) {
14341
+ if (values.phoneNo) {
14342
14342
  values.phoneNo = formatPhoneNumberIntl(values.phoneNo);
14343
14343
  }
14344
14344
  else {