@undp/carbon-library 1.0.263-CARBON-390.3 → 1.0.263-carbon-lib-test.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. package/dist/cjs/index.js +359 -82
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/Components/Common/CoBenifits/coBenifits.d.ts +0 -1
  4. package/dist/cjs/types/Components/Common/Models/programmeRetireForm.d.ts +0 -1
  5. package/dist/cjs/types/Components/Common/Models/programmeTransferForm.d.ts +0 -1
  6. package/dist/cjs/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +0 -2
  7. package/dist/cjs/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +0 -2
  8. package/dist/cjs/types/Context/ConnectionContext/connectionContext.d.ts +8 -0
  9. package/dist/cjs/types/Context/SettingsContext/settingsContext.d.ts +10 -0
  10. package/dist/cjs/types/Context/UserInformationContext/userInformationContext.d.ts +6 -0
  11. package/dist/cjs/types/Context/index.d.ts +3 -0
  12. package/dist/cjs/types/Definitions/Definitions/connectionContext.definitions.d.ts +1 -0
  13. package/dist/cjs/types/Definitions/Enums/enablementTypes.enum.d.ts +1 -2
  14. package/dist/cjs/types/Storybook/AddNewCompanyComponent.stories.d.ts +12 -0
  15. package/dist/cjs/types/Storybook/AddNewUserComponent.stories.d.ts +12 -0
  16. package/dist/cjs/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +2 -0
  17. package/dist/cjs/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +2 -0
  18. package/dist/cjs/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +2 -0
  19. package/dist/cjs/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +2 -0
  20. package/dist/cjs/types/Storybook/ProgrammeCreationComponent.stories.d.ts +12 -0
  21. package/dist/cjs/types/index.d.ts +1 -0
  22. package/dist/esm/index.js +353 -84
  23. package/dist/esm/index.js.map +1 -1
  24. package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +0 -1
  25. package/dist/esm/types/Components/Common/Models/programmeRetireForm.d.ts +0 -1
  26. package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +0 -1
  27. package/dist/esm/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +0 -2
  28. package/dist/esm/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +0 -2
  29. package/dist/esm/types/Context/ConnectionContext/connectionContext.d.ts +8 -0
  30. package/dist/esm/types/Context/SettingsContext/settingsContext.d.ts +10 -0
  31. package/dist/esm/types/Context/UserInformationContext/userInformationContext.d.ts +6 -0
  32. package/dist/esm/types/Context/index.d.ts +3 -0
  33. package/dist/esm/types/Definitions/Definitions/connectionContext.definitions.d.ts +1 -0
  34. package/dist/esm/types/Definitions/Enums/enablementTypes.enum.d.ts +1 -2
  35. package/dist/esm/types/Storybook/AddNewCompanyComponent.stories.d.ts +12 -0
  36. package/dist/esm/types/Storybook/AddNewUserComponent.stories.d.ts +12 -0
  37. package/dist/esm/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +2 -0
  38. package/dist/esm/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +2 -0
  39. package/dist/esm/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +2 -0
  40. package/dist/esm/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +2 -0
  41. package/dist/esm/types/Storybook/ProgrammeCreationComponent.stories.d.ts +12 -0
  42. package/dist/esm/types/index.d.ts +1 -0
  43. package/dist/index.d.ts +21 -8
  44. package/dist/locales/i18n/company/en.json +1 -1
  45. package/dist/locales/i18n/creditTransfer/en.json +2 -2
  46. package/dist/locales/i18n/ndc/en.json +1 -1
  47. package/dist/locales/i18n/ndcAction/en.json +1 -1
  48. package/dist/locales/i18n/programme/en.json +2 -2
  49. package/dist/locales/i18n/view/en.json +5 -9
  50. package/package.json +29 -2
@@ -10,6 +10,5 @@ export interface CoBenefitProps {
10
10
  loading?: any;
11
11
  sdgGoalImages?: any;
12
12
  translator?: any;
13
- useConnection?: any;
14
13
  }
15
14
  export declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
@@ -9,6 +9,5 @@ export interface ProgrammeRetireFormProps {
9
9
  hideType: boolean;
10
10
  myCompanyId?: number;
11
11
  translator: any;
12
- useConnection: any;
13
12
  }
14
13
  export declare const ProgrammeRetireForm: FC<ProgrammeRetireFormProps>;
@@ -12,7 +12,6 @@ export interface ProgrammeTransferFormProps {
12
12
  userCompanyId: number | undefined;
13
13
  companyRole: string;
14
14
  translator: any;
15
- useConnection: any;
16
15
  ministryLevelPermission?: boolean;
17
16
  }
18
17
  export declare const ProgrammeTransferForm: FC<ProgrammeTransferFormProps>;
@@ -8,9 +8,7 @@ export interface NdcActionBodyProps {
8
8
  programmeOwnerId?: any;
9
9
  getProgrammeDocs?: any;
10
10
  ministryLevelPermission?: boolean;
11
- useConnection: any;
12
11
  translator: any;
13
- useUserContext: any;
14
12
  onFinish?: any;
15
13
  programme?: any;
16
14
  }
@@ -9,8 +9,6 @@ export interface ProgrammeDocumentsProps {
9
9
  getDocumentDetails: any;
10
10
  getProgrammeById: any;
11
11
  ministryLevelPermission?: boolean;
12
- useConnection: any;
13
- useUserContext: any;
14
12
  translator: any;
15
13
  methodologyDocumentUpdated: any;
16
14
  programmeStatus?: any;
@@ -0,0 +1,8 @@
1
+ import React, { FC } from 'react';
2
+ import { ConnectionContextProviderProps, ConnectionProps } from '../../Definitions';
3
+ declare const ConnectionContext: React.Context<{
4
+ connection?: ConnectionProps | undefined;
5
+ }>;
6
+ export declare const ConnectionContextProvider: FC<ConnectionContextProviderProps>;
7
+ export default ConnectionContext;
8
+ export declare const useConnection: () => ConnectionProps;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export declare const SettingsContext: React.Context<{
3
+ isTransferFrozen: boolean;
4
+ setTransferFrozen: (value: boolean) => void;
5
+ }>;
6
+ export declare const SettingsContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
7
+ export declare const useSettingsContext: () => {
8
+ isTransferFrozen: boolean;
9
+ setTransferFrozen: (value: boolean) => void;
10
+ };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { UserContextProps } from '../../Definitions';
3
+ export declare const UserContext: React.Context<UserContextProps>;
4
+ export declare const UserInformationContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
5
+ export default UserContext;
6
+ export declare const useUserContext: () => UserContextProps;
@@ -0,0 +1,3 @@
1
+ export * from './ConnectionContext/connectionContext';
2
+ export * from './UserInformationContext/userInformationContext';
3
+ export * from './SettingsContext/settingsContext';
@@ -3,6 +3,7 @@ import { ReactNode } from 'react';
3
3
  export type Methods = 'get' | 'post' | 'delete' | 'put' | 'patch';
4
4
  export type ConnectionContextProviderProps = {
5
5
  serverURL: string;
6
+ t: any;
6
7
  children: ReactNode;
7
8
  };
8
9
  export interface Response<T> {
@@ -1,8 +1,7 @@
1
1
  export declare enum EnablementTypes {
2
2
  CapacityBuilding = "Capacity Building",
3
3
  TechnologyTransfer = "Technology Transfer",
4
- Financial = "Financial",
5
- EnhancedTransparency = "Enhanced Transparency"
4
+ Financial = "Financial"
6
5
  }
7
6
  export declare const enablementTypesAndValues: {
8
7
  type: string;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from "@storybook/react";
3
+ import "antd/dist/antd.css";
4
+ import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
+ declare const meta: {
6
+ title: string;
7
+ component: (props: any) => import("react").JSX.Element;
8
+ decorators: (typeof ConnectionContextDecorator)[];
9
+ };
10
+ export default meta;
11
+ type Story = StoryObj<typeof meta>;
12
+ export declare const Primary: Story;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from "@storybook/react";
3
+ import "antd/dist/antd.css";
4
+ import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
+ declare const meta: {
6
+ title: string;
7
+ component: (props: any) => import("react").JSX.Element;
8
+ decorators: (typeof ConnectionContextDecorator)[];
9
+ };
10
+ export default meta;
11
+ type Story = StoryObj<typeof meta>;
12
+ export declare const Primary: Story;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export default function AddNewCompanyI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export default function AddNewUserI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export default function ConnectionContextDecorator(Story: any, context: any): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export default function ProgrammeCreateI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from "@storybook/react";
3
+ import "antd/dist/antd.css";
4
+ import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
+ declare const meta: {
6
+ title: string;
7
+ component: (props: any) => import("react").JSX.Element;
8
+ decorators: (typeof ConnectionContextDecorator)[];
9
+ };
10
+ export default meta;
11
+ type Story = StoryObj<typeof meta>;
12
+ export declare const Primary: Story;
@@ -1,3 +1,4 @@
1
1
  export * from './Components';
2
2
  export * from './Definitions';
3
3
  export * from './Styles';
4
+ export * from './Context';
package/dist/index.d.ts CHANGED
@@ -129,7 +129,6 @@ interface CoBenefitProps {
129
129
  loading?: any;
130
130
  sdgGoalImages?: any;
131
131
  translator?: any;
132
- useConnection?: any;
133
132
  }
134
133
  declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
135
134
 
@@ -360,7 +359,6 @@ interface ProgrammeRetireFormProps {
360
359
  hideType: boolean;
361
360
  myCompanyId?: number;
362
361
  translator: any;
363
- useConnection: any;
364
362
  }
365
363
  declare const ProgrammeRetireForm: FC<ProgrammeRetireFormProps>;
366
364
 
@@ -387,7 +385,6 @@ interface ProgrammeTransferFormProps {
387
385
  userCompanyId: number | undefined;
388
386
  companyRole: string;
389
387
  translator: any;
390
- useConnection: any;
391
388
  ministryLevelPermission?: boolean;
392
389
  }
393
390
  declare const ProgrammeTransferForm: FC<ProgrammeTransferFormProps>;
@@ -988,6 +985,7 @@ interface CountrySelect {
988
985
  type Methods = 'get' | 'post' | 'delete' | 'put' | 'patch';
989
986
  type ConnectionContextProviderProps = {
990
987
  serverURL: string;
988
+ t: any;
991
989
  children: ReactNode;
992
990
  };
993
991
  interface Response<T> {
@@ -1152,9 +1150,7 @@ interface NdcActionBodyProps {
1152
1150
  programmeOwnerId?: any;
1153
1151
  getProgrammeDocs?: any;
1154
1152
  ministryLevelPermission?: boolean;
1155
- useConnection: any;
1156
1153
  translator: any;
1157
- useUserContext: any;
1158
1154
  onFinish?: any;
1159
1155
  programme?: any;
1160
1156
  }
@@ -1175,8 +1171,6 @@ interface ProgrammeDocumentsProps {
1175
1171
  getDocumentDetails: any;
1176
1172
  getProgrammeById: any;
1177
1173
  ministryLevelPermission?: boolean;
1178
- useConnection: any;
1179
- useUserContext: any;
1180
1174
  translator: any;
1181
1175
  methodologyDocumentUpdated: any;
1182
1176
  programmeStatus?: any;
@@ -1217,4 +1211,23 @@ declare const TooltipColor = "#6ACDFF";
1217
1211
  declare const InvestmentBGColor = "rgba(151, 110, 215, 0.3)";
1218
1212
  declare const InvestmentColor = "#9155FD";
1219
1213
 
1220
- export { Action, AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, AgricultureProperties, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditCalculationProperties, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, EnablementProperties, EnergyGenerationUnits, FormElementType, GovBGColor, GovColor, HeaderProps, ImgWithFallback, InfoView, InfoViewProps, Instrument, InvestmentBGColor, InvestmentBody, InvestmentBodyProps, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, ManagerBGColor, ManagerColor, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MinBGColor, MinColor, MitigationSubTypes, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcAction, NdcActionBody, NdcActionBodyProps, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, NdcDetailsComponent, NdcFinancing, OrganisationStatus, OrganisationStatusProps, ProfileIcon, ProfileIconProps, Programme, ProgrammeCertify, ProgrammeCreationComponent, ProgrammeDeveloperCreation, ProgrammeDocuments, ProgrammeDocumentsProps, ProgrammeEntity, ProgrammeIssueForm, ProgrammeIssueFormProps, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeProperties, ProgrammePropertiesR, ProgrammePropertiesT, ProgrammePropertiesU, ProgrammeR, ProgrammeRetireForm, ProgrammeRetireFormProps, ProgrammeRevokeForm, ProgrammeRevokeFormProps, ProgrammeStageLegend, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeT, ProgrammeTransfer, ProgrammeTransferForm, ProgrammeTransferFormProps, ProgrammeU, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RejectDocumentationProps, Response, RetireType, Role, RoleIcon, RoleIconProps, RootBGColor, RootColor, SdgGoals, Sector, SectoralScope, SolarProperties, StasticCard, StasticCardItemProps, StatsCardsTypes, SubTypeOfMitigation, SupportCreationComponent, SupportManagementComponent, SystemNames, TimelineBody, TimelineBodyProps, Titles, TooltipColor, TransferActionModel, TransferActionModelProps, TxType, TypeOfMitigation, UnitField, User, UserContextProps, UserCreationProps, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, UserRoleIcon, UserRoleIconProps, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addNdcDesc, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, getValidNdcActions, isBase64, landAreaUnitList, methodologyOptions, mitigationSubTypeList, mitigationSubTypesListMapped, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList, userForgotPasswordProps };
1214
+ declare const ConnectionContextProvider: FC<ConnectionContextProviderProps>;
1215
+
1216
+ declare const useConnection: () => ConnectionProps;
1217
+
1218
+ declare const UserContext: React.Context<UserContextProps>;
1219
+ declare const UserInformationContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
1220
+
1221
+ declare const useUserContext: () => UserContextProps;
1222
+
1223
+ declare const SettingsContext: React.Context<{
1224
+ isTransferFrozen: boolean;
1225
+ setTransferFrozen: (value: boolean) => void;
1226
+ }>;
1227
+ declare const SettingsContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
1228
+ declare const useSettingsContext: () => {
1229
+ isTransferFrozen: boolean;
1230
+ setTransferFrozen: (value: boolean) => void;
1231
+ };
1232
+
1233
+ export { Action, AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, AgricultureProperties, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, ConnectionContextProvider, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditCalculationProperties, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, EnablementProperties, EnergyGenerationUnits, FormElementType, GovBGColor, GovColor, HeaderProps, ImgWithFallback, InfoView, InfoViewProps, Instrument, InvestmentBGColor, InvestmentBody, InvestmentBodyProps, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, ManagerBGColor, ManagerColor, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MinBGColor, MinColor, MitigationSubTypes, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcAction, NdcActionBody, NdcActionBodyProps, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, NdcDetailsComponent, NdcFinancing, OrganisationStatus, OrganisationStatusProps, ProfileIcon, ProfileIconProps, Programme, ProgrammeCertify, ProgrammeCreationComponent, ProgrammeDeveloperCreation, ProgrammeDocuments, ProgrammeDocumentsProps, ProgrammeEntity, ProgrammeIssueForm, ProgrammeIssueFormProps, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeProperties, ProgrammePropertiesR, ProgrammePropertiesT, ProgrammePropertiesU, ProgrammeR, ProgrammeRetireForm, ProgrammeRetireFormProps, ProgrammeRevokeForm, ProgrammeRevokeFormProps, ProgrammeStageLegend, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeT, ProgrammeTransfer, ProgrammeTransferForm, ProgrammeTransferFormProps, ProgrammeU, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RejectDocumentationProps, Response, RetireType, Role, RoleIcon, RoleIconProps, RootBGColor, RootColor, SdgGoals, Sector, SectoralScope, SettingsContext, SettingsContextProvider, SolarProperties, StasticCard, StasticCardItemProps, StatsCardsTypes, SubTypeOfMitigation, SupportCreationComponent, SupportManagementComponent, SystemNames, TimelineBody, TimelineBodyProps, Titles, TooltipColor, TransferActionModel, TransferActionModelProps, TxType, TypeOfMitigation, UnitField, User, UserContext, UserContextProps, UserCreationProps, UserInformationContextProvider, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, UserRoleIcon, UserRoleIconProps, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addNdcDesc, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, getValidNdcActions, isBase64, landAreaUnitList, methodologyOptions, mitigationSubTypeList, mitigationSubTypesListMapped, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList, useConnection, useSettingsContext, useUserContext, userForgotPasswordProps };
@@ -8,7 +8,7 @@
8
8
  "viewCompanies": "View Organisations",
9
9
  "viewDesc": "View all the visible organisations in the system based on your permissions",
10
10
  "addCompany": "Add organisation",
11
- "numberOfProgrammes": "NUMBER OF PROJECTS",
11
+ "numberOfProgrammes": "NUMBER OF PROGRAMMES",
12
12
  "creditBalance": "CREDIT BALANCE",
13
13
  "date": "Date",
14
14
  "getCompanyError": "Error in getting company",
@@ -5,7 +5,7 @@
5
5
  "certifier": "CERTIFIER",
6
6
  "initiator": "INITIATOR",
7
7
  "date": "DATE",
8
- "pName": "PROJECT NAME",
8
+ "pName": "PROGRAMME NAME",
9
9
  "sector": "SECTOR",
10
10
  "cSender": "CREDIT SENDER",
11
11
  "cReceiver": "CREDIT RECEIVER",
@@ -15,7 +15,7 @@
15
15
  "noTransfer": "No Transfers Available",
16
16
  "cancelTitle": "Are you sure you want to cancel this request?",
17
17
  "rejectTitle": "Are you sure you want to reject this request?",
18
- "acceptTitle": "Accept Finance Request",
18
+ "acceptTitle": "Accept Transfer Request",
19
19
  "proceed": "Proceed",
20
20
  "cancel": "Cancel",
21
21
  "reject": "Reject",
@@ -3,7 +3,7 @@
3
3
  "ndcSubTitle": "NDC Actions in the System",
4
4
  "ndcColumnsStartDate": "Start Date",
5
5
  "ndcColumnsEndDate": "End Date",
6
- "ndcColumnsNationalPlanObj": "Programmes",
6
+ "ndcColumnsNationalPlanObj": "National Plan Objective",
7
7
  "ndcColumnsKpi": "KPI",
8
8
  "rangeAlreadyExists": "Selected Range Already exists",
9
9
  "addNdcAction": "+ Add NDC Action",
@@ -43,7 +43,7 @@
43
43
  "ndcColumnsActionId": "ACTIVITY ID",
44
44
  "ndcColumnsDate": "DATE",
45
45
  "ndcColumnsNdcAction": "ACTIVITY",
46
- "ndcColumnsProgrammeName": "PROJECT NAME",
46
+ "ndcColumnsProgrammeName": "PROGRAMME NAME",
47
47
  "ndcColumnsSector": "SECTOR",
48
48
  "ndcColumnsOwners": "OWNERS",
49
49
  "ndcColumnsStatus": "STATUS",
@@ -24,7 +24,7 @@
24
24
  "amount": "Amount (USD)",
25
25
  "investmentTitle": "Financing",
26
26
  "investmentDesc": "Financing made on projects in the Transparency System",
27
- "addProgramme": "ADD PROJECT",
27
+ "addProgramme": "ADD PROGRAMME",
28
28
  "emissionsReductionExpected": "Emissions Reductions Expected (tCO2e)",
29
29
  "emissionsReductionAchieved": "Emissions Reductions Achieved (tCO2e)",
30
30
  "isUploaded": "Document uploaded successfully",
@@ -77,7 +77,7 @@
77
77
  "typeCreation": "Type",
78
78
  "New": "NEW",
79
79
  "Existing": "EXISTING",
80
- "addOwnership": "ADD FINANCING",
80
+ "addOwnership": "ADD INVESTMENT",
81
81
  "supportTitle": "Supports",
82
82
  "supportDesc": "Supports made on projects in the Transparency System",
83
83
  "addSupport": "Add Support",
@@ -42,7 +42,7 @@
42
42
  "retireTitle": "Are you sure you want to retire the credits?",
43
43
  "revokeTitle": "Are you sure you want to revoke the certificate of the project",
44
44
  "transferTitle": "Request Credits",
45
- "programmeMaterial": "Project Documents",
45
+ "programmeMaterial": "Project & Project Documents",
46
46
  "projectMaterial": "Project Reports",
47
47
  "transfer": "Request",
48
48
  "by": "By",
@@ -100,12 +100,11 @@
100
100
  "tlCertify": "Certified",
101
101
  "tlCertifyDesc": "The project was certified by {}",
102
102
  "tlRetire": "Credits Retired",
103
- "tlRetireDesc": "{} {} credits of this project were retired from {} {}as {} {}by {}",
103
+ "tlRetireDesc": "{} {} credits of this project were retired from {} {}as {} by {}",
104
104
  "tlFrozen": "Credits Frozen",
105
105
  "tlFrozenDesc": "{} {} credits were frozen due to the deactivation of {} by {}",
106
106
  "tlRetInit": "Retirement Initiated",
107
- "tlRetInitDesc": "Retirement of {} {} credits of this project from {} {}as {} {}was initiated by {}",
108
- "t1RetInitOmgeDesc":"and {} ITMO credits as Overall Mitigation in Global Emissions ",
107
+ "tlRetInitDesc": "Retirement of {} {} credits of this project from {} {}as {} was initiated by {}",
109
108
  "tlRetRejectTitle": "Retirement Not Recognised",
110
109
  "tlTxRetRejectDesc": "The request to transfer {} {} credits from {} to {} was not recognised by {}",
111
110
  "tlRetCancelTitle": "Retire request cancelled",
@@ -138,14 +137,11 @@
138
137
  "emissionsReductionExpected": "Emissions Reductions Expected",
139
138
  "emissionsReductionAchieved": "Emissions Reductions Achieved",
140
139
  "emissionsReductions": "Emissions Reductions {}",
141
- "addInvestment": "ADD FINANCING",
140
+ "addInvestment": "ADD INVESTMENT",
142
141
  "addAction": "ADD ACTIVITY",
143
142
  "ministryLevel": "Ministry Level",
144
143
  "environmentalAssessmentRegistrationNo": "Environmental Assessment Registration Number",
145
144
  "methodology": "Methodology",
146
145
  "verificationEl": "Verification",
147
- "monitoringEl": "Monitoring",
148
- "govInternationalAcc":"Government International Account",
149
- "omgeAcc":"OMGE Account",
150
- "omgeDesc":"Overall Mitigation in Global Emissins (OMGE)"
146
+ "monitoringEl": "Monitoring"
151
147
  }
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@undp/carbon-library",
3
- "version": "1.0.263-CARBON-390.3",
3
+ "version": "1.0.263-carbon-lib-test.1",
4
4
  "description": "Shared Library of tools for Carbon Credits applications ecosystem for ExO and and HQ/GEF",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
8
8
  "build": "rollup -c --bundleConfigAsCjs",
9
- "prepare": "npm run build"
9
+ "prepare": "npm run build",
10
+ "storybook": "storybook dev -p 6006",
11
+ "build-storybook": "storybook build"
10
12
  },
11
13
  "keywords": [],
12
14
  "author": "",
@@ -16,10 +18,14 @@
16
18
  "@rollup/plugin-json": "^6.0.1",
17
19
  "@rollup/plugin-node-resolve": "^15.0.2",
18
20
  "@rollup/plugin-typescript": "^11.1.1",
21
+ "@storybook/addon-styling-webpack": "^0.0.5",
19
22
  "@undp/carbon-credit-calculator": "^1.1.1",
23
+ "jwt-decode": "^3.1.2",
20
24
  "node-sass": "^7.0.3",
21
25
  "postcss": "^8.4.23",
22
26
  "react-circle-flags": "^0.0.19",
27
+ "react-i18next": "^12.0.0",
28
+ "react-router-dom": "^6.4.3",
23
29
  "rollup": "^3.22.0",
24
30
  "rollup-plugin-copy": "^3.5.0",
25
31
  "rollup-plugin-dts": "^5.3.0",
@@ -30,6 +36,19 @@
30
36
  },
31
37
  "devDependencies": {
32
38
  "@ant-design/icons": "^5.2.5",
39
+ "@babel/preset-env": "^7.23.3",
40
+ "@babel/preset-react": "^7.23.3",
41
+ "@babel/preset-typescript": "^7.23.3",
42
+ "@storybook/addon-essentials": "7.5.3",
43
+ "@storybook/addon-interactions": "7.5.3",
44
+ "@storybook/addon-links": "7.5.3",
45
+ "@storybook/addon-onboarding": "1.0.8",
46
+ "@storybook/blocks": "7.5.3",
47
+ "@storybook/preset-ant-design": "^0.0.2",
48
+ "@storybook/preset-create-react-app": "^7.5.3",
49
+ "@storybook/react": "7.5.3",
50
+ "@storybook/react-webpack5": "7.5.3",
51
+ "@storybook/testing-library": "0.2.2",
33
52
  "@types/luxon": "^3.1.0",
34
53
  "@types/mapbox-gl": "^2.7.10",
35
54
  "@types/react": "^18.0.25",
@@ -39,13 +58,21 @@
39
58
  "axios": "^1.1.3",
40
59
  "buffer": "^6.0.3",
41
60
  "class-transformer": "^0.5.1",
61
+ "css-loader": "^6.8.1",
62
+ "i18next": "^22.0.6",
63
+ "i18next-browser-languagedetector": "^7.0.1",
64
+ "i18next-http-backend": "^2.0.1",
42
65
  "luxon": "^3.2.1",
43
66
  "mapbox-gl": "^2.11.1",
44
67
  "react": "^18.2.0",
45
68
  "react-apexcharts": "^1.4.0",
46
69
  "react-bootstrap-icons": "^1.10.2",
70
+ "react-dom": "18.2.0",
47
71
  "react-mapbox-gl": "^5.1.1",
48
72
  "react-phone-number-input": "^3.2.12",
73
+ "sass-loader": "^13.3.2",
74
+ "storybook": "7.5.3",
75
+ "style-loader": "^3.3.3",
49
76
  "validator": "^13.9.0"
50
77
  },
51
78
  "peerDependencies": {