@undp/carbon-library 1.0.289-CARBON-347.1 → 1.0.289-CARBON-366.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/dist/cjs/index.js +556 -1477
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -0
  4. package/dist/cjs/types/Components/Common/Models/programmeRetireForm.d.ts +1 -0
  5. package/dist/cjs/types/Components/Common/Models/programmeTransferForm.d.ts +1 -0
  6. package/dist/cjs/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +2 -0
  7. package/dist/cjs/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +2 -0
  8. package/dist/cjs/types/Components/Common/StasticCard/stasticCard.d.ts +2 -0
  9. package/dist/cjs/types/Definitions/Definitions/connectionContext.definitions.d.ts +0 -3
  10. package/dist/cjs/types/Definitions/Enums/investment.enum.d.ts +0 -4
  11. package/dist/cjs/types/index.d.ts +0 -1
  12. package/dist/esm/index.js +558 -1471
  13. package/dist/esm/index.js.map +1 -1
  14. package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -0
  15. package/dist/esm/types/Components/Common/Models/programmeRetireForm.d.ts +1 -0
  16. package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +1 -0
  17. package/dist/esm/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +2 -0
  18. package/dist/esm/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +2 -0
  19. package/dist/esm/types/Components/Common/StasticCard/stasticCard.d.ts +2 -0
  20. package/dist/esm/types/Definitions/Definitions/connectionContext.definitions.d.ts +0 -3
  21. package/dist/esm/types/Definitions/Enums/investment.enum.d.ts +0 -4
  22. package/dist/esm/types/index.d.ts +0 -1
  23. package/dist/index.d.ts +10 -27
  24. package/dist/locales/i18n/programme/en.json +3 -5
  25. package/package.json +2 -29
  26. package/dist/cjs/types/Context/ConnectionContext/connectionContext.d.ts +0 -8
  27. package/dist/cjs/types/Context/SettingsContext/settingsContext.d.ts +0 -10
  28. package/dist/cjs/types/Context/UserInformationContext/userInformationContext.d.ts +0 -6
  29. package/dist/cjs/types/Context/index.d.ts +0 -3
  30. package/dist/cjs/types/Storybook/AddNewCompanyComponent.stories.d.ts +0 -12
  31. package/dist/cjs/types/Storybook/AddNewUserComponent.stories.d.ts +0 -12
  32. package/dist/cjs/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +0 -2
  33. package/dist/cjs/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +0 -2
  34. package/dist/cjs/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +0 -2
  35. package/dist/cjs/types/Storybook/Decorators/DashboardI18nDecorator.d.ts +0 -2
  36. package/dist/cjs/types/Storybook/Decorators/InvestmentCreationI18nDecorator.d.ts +0 -2
  37. package/dist/cjs/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +0 -2
  38. package/dist/cjs/types/Storybook/InvestmentCreationComponent.stories.d.ts +0 -12
  39. package/dist/cjs/types/Storybook/MRVDashboard.stories.d.ts +0 -12
  40. package/dist/cjs/types/Storybook/ProgrammeCreationComponent.stories.d.ts +0 -12
  41. package/dist/cjs/types/Storybook/RegistryDashboard.stories.d.ts +0 -12
  42. package/dist/esm/types/Context/ConnectionContext/connectionContext.d.ts +0 -8
  43. package/dist/esm/types/Context/SettingsContext/settingsContext.d.ts +0 -10
  44. package/dist/esm/types/Context/UserInformationContext/userInformationContext.d.ts +0 -6
  45. package/dist/esm/types/Context/index.d.ts +0 -3
  46. package/dist/esm/types/Storybook/AddNewCompanyComponent.stories.d.ts +0 -12
  47. package/dist/esm/types/Storybook/AddNewUserComponent.stories.d.ts +0 -12
  48. package/dist/esm/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +0 -2
  49. package/dist/esm/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +0 -2
  50. package/dist/esm/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +0 -2
  51. package/dist/esm/types/Storybook/Decorators/DashboardI18nDecorator.d.ts +0 -2
  52. package/dist/esm/types/Storybook/Decorators/InvestmentCreationI18nDecorator.d.ts +0 -2
  53. package/dist/esm/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +0 -2
  54. package/dist/esm/types/Storybook/InvestmentCreationComponent.stories.d.ts +0 -12
  55. package/dist/esm/types/Storybook/MRVDashboard.stories.d.ts +0 -12
  56. package/dist/esm/types/Storybook/ProgrammeCreationComponent.stories.d.ts +0 -12
  57. package/dist/esm/types/Storybook/RegistryDashboard.stories.d.ts +0 -12
@@ -10,5 +10,6 @@ export interface CoBenefitProps {
10
10
  loading?: any;
11
11
  sdgGoalImages?: any;
12
12
  translator?: any;
13
+ useConnection?: any;
13
14
  }
14
15
  export declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
@@ -9,5 +9,6 @@ export interface ProgrammeRetireFormProps {
9
9
  hideType: boolean;
10
10
  myCompanyId?: number;
11
11
  translator: any;
12
+ useConnection: any;
12
13
  }
13
14
  export declare const ProgrammeRetireForm: FC<ProgrammeRetireFormProps>;
@@ -12,6 +12,7 @@ export interface ProgrammeTransferFormProps {
12
12
  userCompanyId: number | undefined;
13
13
  companyRole: string;
14
14
  translator: any;
15
+ useConnection: any;
15
16
  ministryLevelPermission?: boolean;
16
17
  }
17
18
  export declare const ProgrammeTransferForm: FC<ProgrammeTransferFormProps>;
@@ -8,7 +8,9 @@ export interface NdcActionBodyProps {
8
8
  programmeOwnerId?: any;
9
9
  getProgrammeDocs?: any;
10
10
  ministryLevelPermission?: boolean;
11
+ useConnection: any;
11
12
  translator: any;
13
+ useUserContext: any;
12
14
  onFinish?: any;
13
15
  programme?: any;
14
16
  }
@@ -9,6 +9,8 @@ export interface ProgrammeDocumentsProps {
9
9
  getDocumentDetails: any;
10
10
  getProgrammeById: any;
11
11
  ministryLevelPermission?: boolean;
12
+ useConnection: any;
13
+ useUserContext: any;
12
14
  translator: any;
13
15
  methodologyDocumentUpdated: any;
14
16
  programmeStatus?: any;
@@ -7,5 +7,7 @@ export interface StasticCardItemProps {
7
7
  icon: any;
8
8
  loading: boolean;
9
9
  companyRole: any;
10
+ tooltip: any;
11
+ t: any;
10
12
  }
11
13
  export declare const StasticCard: FC<StasticCardItemProps>;
@@ -3,8 +3,6 @@ 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;
7
- statServerUrl?: string;
8
6
  children: ReactNode;
9
7
  };
10
8
  export interface Response<T> {
@@ -25,5 +23,4 @@ export type ConnectionProps = {
25
23
  updateToken: (token?: string) => void;
26
24
  token?: string;
27
25
  removeToken: (tkn?: string) => void;
28
- statServerUrl?: string;
29
26
  };
@@ -18,10 +18,6 @@ export declare enum InvestmentCreationType {
18
18
  EXISTING = "Existing",
19
19
  NEW = "New"
20
20
  }
21
- export declare enum InvestmentOwnershipType {
22
- PROJECT = "Project",
23
- NATIONAL = "National"
24
- }
25
21
  export declare enum InvestmentStream {
26
22
  CLIMATE_FINANCE = "ClimateFinance",
27
23
  CARBON_MARKET = "CarbonMarket"
@@ -1,4 +1,3 @@
1
1
  export * from './Components';
2
2
  export * from './Definitions';
3
3
  export * from './Styles';
4
- export * from './Context';