@undp/carbon-library 1.0.175-CARBON-347.5 → 1.0.175-CARBON-347.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. package/dist/cjs/index.js +550 -108
  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/Components/RegistryDashboard/programmeRejectAndTransferComponent.d.ts +1 -0
  9. package/dist/cjs/types/Context/ConnectionContext/connectionContext.d.ts +8 -0
  10. package/dist/cjs/types/Context/SettingsContext/settingsContext.d.ts +10 -0
  11. package/dist/cjs/types/Context/UserInformationContext/userInformationContext.d.ts +6 -0
  12. package/dist/cjs/types/Context/index.d.ts +3 -0
  13. package/dist/cjs/types/Definitions/Definitions/connectionContext.definitions.d.ts +1 -0
  14. package/dist/cjs/types/Definitions/Entities/programmeTransfer.d.ts +1 -0
  15. package/dist/cjs/types/Storybook/AddNewCompanyComponent.stories.d.ts +12 -0
  16. package/dist/cjs/types/Storybook/AddNewUserComponent.stories.d.ts +12 -0
  17. package/dist/cjs/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +2 -0
  18. package/dist/cjs/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +2 -0
  19. package/dist/cjs/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +2 -0
  20. package/dist/cjs/types/index.d.ts +1 -0
  21. package/dist/esm/index.js +544 -110
  22. package/dist/esm/index.js.map +1 -1
  23. package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +0 -1
  24. package/dist/esm/types/Components/Common/Models/programmeRetireForm.d.ts +0 -1
  25. package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +0 -1
  26. package/dist/esm/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +0 -2
  27. package/dist/esm/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +0 -2
  28. package/dist/esm/types/Components/RegistryDashboard/programmeRejectAndTransferComponent.d.ts +1 -0
  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/Entities/programmeTransfer.d.ts +1 -0
  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/index.d.ts +1 -0
  41. package/dist/index.d.ts +22 -8
  42. package/dist/locales/i18n/addCompany/en.json +38 -0
  43. package/dist/locales/i18n/addCompany/es.json +36 -0
  44. package/dist/locales/i18n/addCompany/fr.json +36 -0
  45. package/dist/locales/i18n/addProgramme/en.json +45 -0
  46. package/dist/locales/i18n/addUser/en.json +24 -0
  47. package/dist/locales/i18n/addUser/es.json +24 -0
  48. package/dist/locales/i18n/addUser/fr.json +24 -0
  49. package/dist/locales/i18n/coBenifits/en.json +39 -0
  50. package/dist/locales/i18n/common/en.json +22 -0
  51. package/dist/locales/i18n/common/es.json +21 -0
  52. package/dist/locales/i18n/common/fr.json +21 -0
  53. package/dist/locales/i18n/company/en.json +24 -0
  54. package/dist/locales/i18n/company/es.json +23 -0
  55. package/dist/locales/i18n/company/fr.json +23 -0
  56. package/dist/locales/i18n/companyProfile/en.json +45 -0
  57. package/dist/locales/i18n/companyProfile/es.json +42 -0
  58. package/dist/locales/i18n/companyProfile/fr.json +42 -0
  59. package/dist/locales/i18n/creditTransfer/en.json +34 -0
  60. package/dist/locales/i18n/creditTransfer/es.json +34 -0
  61. package/dist/locales/i18n/creditTransfer/fr.json +34 -0
  62. package/dist/locales/i18n/dashboard/en.json +94 -0
  63. package/dist/locales/i18n/dashboard/es.json +71 -0
  64. package/dist/locales/i18n/dashboard/fr.json +71 -0
  65. package/dist/locales/i18n/economic/en.json +35 -0
  66. package/dist/locales/i18n/environment/en.json +41 -0
  67. package/dist/locales/i18n/forgotPassword/en.json +9 -0
  68. package/dist/locales/i18n/forgotPassword/es.json +9 -0
  69. package/dist/locales/i18n/forgotPassword/fr.json +9 -0
  70. package/dist/locales/i18n/genderParity/en.json +14 -0
  71. package/dist/locales/i18n/homepage/en.json +33 -0
  72. package/dist/locales/i18n/homepage/es.json +30 -0
  73. package/dist/locales/i18n/homepage/fr.json +30 -0
  74. package/dist/locales/i18n/login/en.json +11 -0
  75. package/dist/locales/i18n/login/es.json +10 -0
  76. package/dist/locales/i18n/login/fr.json +10 -0
  77. package/dist/locales/i18n/mrvdashboard/en.json +29 -0
  78. package/dist/locales/i18n/mrvdashboard/es.json +0 -0
  79. package/dist/locales/i18n/mrvdashboard/fr.json +0 -0
  80. package/dist/locales/i18n/nav/en.json +15 -0
  81. package/dist/locales/i18n/nav/es.json +9 -0
  82. package/dist/locales/i18n/nav/fr.json +9 -0
  83. package/dist/locales/i18n/ndc/en.json +12 -0
  84. package/dist/locales/i18n/ndcAction/en.json +100 -0
  85. package/dist/locales/i18n/passwordReset/en.json +10 -0
  86. package/dist/locales/i18n/passwordReset/es.json +10 -0
  87. package/dist/locales/i18n/passwordReset/fr.json +10 -0
  88. package/dist/locales/i18n/programme/en.json +87 -0
  89. package/dist/locales/i18n/programme/es.json +17 -0
  90. package/dist/locales/i18n/programme/fr.json +17 -0
  91. package/dist/locales/i18n/resetPassword/en.json +8 -0
  92. package/dist/locales/i18n/resetPassword/es.json +8 -0
  93. package/dist/locales/i18n/resetPassword/fr.json +8 -0
  94. package/dist/locales/i18n/safeguards/en.json +73 -0
  95. package/dist/locales/i18n/social/en.json +41 -0
  96. package/dist/locales/i18n/user/en.json +16 -0
  97. package/dist/locales/i18n/user/es.json +16 -0
  98. package/dist/locales/i18n/user/fr.json +16 -0
  99. package/dist/locales/i18n/userProfile/en.json +34 -0
  100. package/dist/locales/i18n/userProfile/es.json +34 -0
  101. package/dist/locales/i18n/userProfile/fr.json +34 -0
  102. package/dist/locales/i18n/view/en.json +147 -0
  103. package/dist/locales/i18n/view/es.json +128 -0
  104. package/dist/locales/i18n/view/fr.json +128 -0
  105. package/package.json +31 -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;
@@ -7,5 +7,6 @@ export interface ProgrammeRejectAndTransferCardItemProps {
7
7
  updatedDate: any;
8
8
  loading: boolean;
9
9
  toolTipText: string;
10
+ t: any;
10
11
  }
11
12
  export declare const ProgrammeRejectAndTransferComponent: FC<ProgrammeRejectAndTransferCardItemProps>;
@@ -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> {
@@ -21,4 +21,5 @@ export declare class ProgrammeTransfer implements BaseEntity {
21
21
  createdTime?: number;
22
22
  retirementType?: RetireType;
23
23
  toCompanyMeta?: any;
24
+ omgePercentage?: any;
24
25
  }
@@ -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;
@@ -1,3 +1,4 @@
1
1
  export * from './Components';
2
2
  export * from './Definitions';
3
3
  export * from './Styles';
4
+ export * from './Context';