@paro.io/expert-shared-components 1.7.6 → 1.7.7
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.
- package/lib/components/ClientReferencesSection/DeleteButton.js +11 -11
- package/lib/components/ClientReferencesSection/ParoError.js +10 -10
- package/lib/components/ClientReferencesSection/TagsSection.js +2 -2
- package/lib/components/ClientReferencesSection/styles/BrandedTypography.js +2 -2
- package/lib/components/ClientReferencesSection/styles/Buttons.js +15 -15
- package/lib/components/ClientReferencesSection/styles/Name.js +5 -5
- package/lib/components/ClientReferencesSection/styles/NullContentConditionalColor.js +4 -4
- package/lib/components/ClientReferencesSection/styles/SectionBody.js +11 -11
- package/lib/components/ClientReferencesSection/styles/SectionTitle.js +6 -6
- package/lib/components/ClientReferencesSection/styles/Tags.js +2 -2
- package/lib/components/DocumentCenter/DocumentCenter.js +1 -1
- package/lib/components/DocumentCenter/DocumentTable.d.ts +15 -15
- package/lib/components/DocumentCenter/DocumentTable.js +350 -350
- package/lib/components/DocumentCenter/DocumentUploadRow.d.ts +1 -4
- package/lib/components/DocumentCenter/DocumentUploadRow.js +34 -63
- package/lib/components/DocumentCenter/ParoDocumentsTable.d.ts +0 -1
- package/lib/components/DocumentCenter/ParoDocumentsTable.js +44 -1
- package/lib/components/DocumentCenter/UploadFilesButton.d.ts +6 -6
- package/lib/components/DocumentCenter/UploadFilesButton.js +29 -29
- package/lib/components/ExpertProfileHeader/ActionButtonSection.js +6 -6
- package/lib/components/ExpertProfileHeader/EarningsSection.js +2 -4
- package/lib/components/ExpertProfileHeader/ExpertProfileHeader.d.ts +7 -2
- package/lib/components/ExpertProfileHeader/ExpertProfileHeader.js +15 -8
- package/lib/components/ExpertProfileHeader/NetworkSection.d.ts +8 -1
- package/lib/components/ExpertProfileHeader/NetworkSection.js +103 -5
- package/lib/components/ExpertProfileHeader/ProfileSection.d.ts +2 -3
- package/lib/components/ExpertProfileHeader/ProfileSection.js +24 -18
- package/lib/components/ExpertProfileHeader/TeamsSection.d.ts +2 -2
- package/lib/components/ExpertProfileHeader/TeamsSection.js +5 -6
- package/lib/components/OrganizationChart/OrganizationChart.js +7 -7
- package/lib/components/Reviews/Pagination.js +6 -6
- package/lib/components/ReviewsTab/RatingHeader.js +6 -6
- package/lib/components/ReviewsTab/expert-shared-components.code-workspace +20 -20
- package/lib/components/ReviewsTab/reviewRequestModal.js +5 -5
- package/lib/components/ServiceLinesTemplate/index.d.ts +1 -2
- package/lib/components/ServiceLinesTemplate/index.js +17 -17
- package/lib/components/shared/Error.d.ts +6 -6
- package/lib/components/shared/Error.js +40 -40
- package/lib/components/shared/Image.js +13 -13
- package/lib/components/shared/ProfileTextField.d.ts +18 -18
- package/lib/components/shared/ProfileTextField.js +16 -16
- package/lib/components/shared/StyledActionButtons.d.ts +7 -7
- package/lib/components/shared/StyledActionButtons.js +15 -15
- package/lib/components/shared/ToastNotification.d.ts +10 -10
- package/lib/components/shared/ToastNotification.js +63 -63
- package/package.json +59 -59
|
@@ -15,26 +15,26 @@ const omitDeleteButtonIconProps = ["isDisabled"];
|
|
|
15
15
|
const omitDeleteButtonTypographyProps = ["isDisabled"];
|
|
16
16
|
const DeleteButtonTypography = (0, styled_components_1.default)((props) => {
|
|
17
17
|
return react_1.default.createElement(Typography_1.default, Object.assign({}, (0, omit_1.default)(props, omitDeleteButtonTypographyProps)));
|
|
18
|
-
}) `
|
|
19
|
-
padding-right: 17px;
|
|
20
|
-
color: ${colors_1.default.deleteButtonRed} !important ;
|
|
18
|
+
}) `
|
|
19
|
+
padding-right: 17px;
|
|
20
|
+
color: ${colors_1.default.deleteButtonRed} !important ;
|
|
21
21
|
${({ isDisabled }) => {
|
|
22
22
|
return (isDisabled &&
|
|
23
|
-
`
|
|
24
|
-
color: ${colors_1.default.notice} !important;
|
|
23
|
+
`
|
|
24
|
+
color: ${colors_1.default.notice} !important;
|
|
25
25
|
`);
|
|
26
|
-
}}
|
|
26
|
+
}}
|
|
27
27
|
`;
|
|
28
28
|
const DeleteButtonIcon = (0, styled_components_1.default)((props) => {
|
|
29
29
|
return react_1.default.createElement(Clear_1.default, Object.assign({}, (0, omit_1.default)(props, omitDeleteButtonIconProps)));
|
|
30
|
-
}) `
|
|
31
|
-
color: ${colors_1.default.deleteButtonRed} !important ;
|
|
30
|
+
}) `
|
|
31
|
+
color: ${colors_1.default.deleteButtonRed} !important ;
|
|
32
32
|
${({ isDisabled }) => {
|
|
33
33
|
return (isDisabled &&
|
|
34
|
-
`
|
|
35
|
-
color: ${colors_1.default.notice} !important;
|
|
34
|
+
`
|
|
35
|
+
color: ${colors_1.default.notice} !important;
|
|
36
36
|
`);
|
|
37
|
-
}}
|
|
37
|
+
}}
|
|
38
38
|
`;
|
|
39
39
|
const DeleteButton = ({ buttonText, onClick, variant = "text", isDisabled, className }) => {
|
|
40
40
|
return (react_1.default.createElement(Buttons_1.StyledEditOrDeleteButton, { onClick: () => {
|
|
@@ -9,18 +9,18 @@ const core_1 = require("@material-ui/core");
|
|
|
9
9
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
10
10
|
const colors_1 = __importDefault(require("./constants/colors"));
|
|
11
11
|
const AlertSnackBarButton_1 = require("./AlertSnackBarButton");
|
|
12
|
-
const ErrorBox = (0, styled_components_1.default)(core_1.Box) `
|
|
13
|
-
width: 100%;
|
|
14
|
-
padding-bottom: 100;
|
|
12
|
+
const ErrorBox = (0, styled_components_1.default)(core_1.Box) `
|
|
13
|
+
width: 100%;
|
|
14
|
+
padding-bottom: 100;
|
|
15
15
|
`;
|
|
16
|
-
const ParoTitle = (0, styled_components_1.default)(core_1.Box) `
|
|
17
|
-
color: ${colors_1.default.paroBlack};
|
|
18
|
-
padding: 0px 0px 18px 0px;
|
|
16
|
+
const ParoTitle = (0, styled_components_1.default)(core_1.Box) `
|
|
17
|
+
color: ${colors_1.default.paroBlack};
|
|
18
|
+
padding: 0px 0px 18px 0px;
|
|
19
19
|
`;
|
|
20
|
-
const ParoSubtitle = styled_components_1.default.div `
|
|
21
|
-
color: ${colors_1.default.paroBlack};
|
|
22
|
-
margin-bottom: 24px;
|
|
23
|
-
font-size: 1rem;
|
|
20
|
+
const ParoSubtitle = styled_components_1.default.div `
|
|
21
|
+
color: ${colors_1.default.paroBlack};
|
|
22
|
+
margin-bottom: 24px;
|
|
23
|
+
font-size: 1rem;
|
|
24
24
|
`;
|
|
25
25
|
const ParoError = ({ handleClose }) => {
|
|
26
26
|
const handleCancelLanguage = handleClose ? "Close" : "Retry";
|
|
@@ -9,8 +9,8 @@ const core_1 = require("@material-ui/core");
|
|
|
9
9
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
10
10
|
const NullContentConditionalColor_1 = require("./styles/NullContentConditionalColor");
|
|
11
11
|
const Tags_1 = require("./styles/Tags");
|
|
12
|
-
const ProfileTags = (0, styled_components_1.default)(Tags_1.Tags) `
|
|
13
|
-
margin: 0 5px 8px 0;
|
|
12
|
+
const ProfileTags = (0, styled_components_1.default)(Tags_1.Tags) `
|
|
13
|
+
margin: 0 5px 8px 0;
|
|
14
14
|
`;
|
|
15
15
|
const TagsSection = ({ multiLine, tags = [], tagsExpected, }) => {
|
|
16
16
|
if ((tags === null || tags === void 0 ? void 0 : tags.length) < 1) {
|
|
@@ -7,6 +7,6 @@ exports.StyledTypography = void 0;
|
|
|
7
7
|
const Typography_1 = __importDefault(require("@material-ui/core/Typography"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const colors_1 = __importDefault(require("../constants/colors"));
|
|
10
|
-
exports.StyledTypography = (0, styled_components_1.default)(Typography_1.default) `
|
|
11
|
-
color: ${colors_1.default.paroDeepblue} !important ;
|
|
10
|
+
exports.StyledTypography = (0, styled_components_1.default)(Typography_1.default) `
|
|
11
|
+
color: ${colors_1.default.paroDeepblue} !important ;
|
|
12
12
|
`;
|
|
@@ -7,21 +7,21 @@ exports.StyledEditOrDeleteButton = exports.HeaderButtonUnderline = exports.Heade
|
|
|
7
7
|
const core_1 = require("@material-ui/core");
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const colors_1 = __importDefault(require("../constants/colors"));
|
|
10
|
-
exports.HeaderButtons = (0, styled_components_1.default)(core_1.Button) `
|
|
11
|
-
margin-left: 0px !important;
|
|
12
|
-
padding-left: 0px !important;
|
|
13
|
-
span {
|
|
14
|
-
color: ${colors_1.default.buttonText} !important;
|
|
15
|
-
}
|
|
10
|
+
exports.HeaderButtons = (0, styled_components_1.default)(core_1.Button) `
|
|
11
|
+
margin-left: 0px !important;
|
|
12
|
+
padding-left: 0px !important;
|
|
13
|
+
span {
|
|
14
|
+
color: ${colors_1.default.buttonText} !important;
|
|
15
|
+
}
|
|
16
16
|
`;
|
|
17
|
-
exports.HeaderButtonUnderline = (0, styled_components_1.default)(exports.HeaderButtons) `
|
|
18
|
-
text-decoration: underline;
|
|
17
|
+
exports.HeaderButtonUnderline = (0, styled_components_1.default)(exports.HeaderButtons) `
|
|
18
|
+
text-decoration: underline;
|
|
19
19
|
`;
|
|
20
|
-
exports.StyledEditOrDeleteButton = (0, styled_components_1.default)(core_1.Button) `
|
|
21
|
-
margin: 10px 0px !important;
|
|
22
|
-
background-color: ${colors_1.default.primary};
|
|
23
|
-
color: ${colors_1.default.white};
|
|
24
|
-
:hover {
|
|
25
|
-
color: ${colors_1.default.primary} !important;
|
|
26
|
-
}
|
|
20
|
+
exports.StyledEditOrDeleteButton = (0, styled_components_1.default)(core_1.Button) `
|
|
21
|
+
margin: 10px 0px !important;
|
|
22
|
+
background-color: ${colors_1.default.primary};
|
|
23
|
+
color: ${colors_1.default.white};
|
|
24
|
+
:hover {
|
|
25
|
+
color: ${colors_1.default.primary} !important;
|
|
26
|
+
}
|
|
27
27
|
`;
|
|
@@ -11,12 +11,12 @@ const styled_components_1 = __importDefault(require("styled-components"));
|
|
|
11
11
|
const colors_1 = __importDefault(require("../constants/colors"));
|
|
12
12
|
exports.Name = (0, styled_components_1.default)((props) => {
|
|
13
13
|
return react_1.default.createElement(core_1.Typography, Object.assign({}, (0, omit_1.default)(props, ["isNull"])));
|
|
14
|
-
}) `
|
|
15
|
-
font-family: Roboto-Bold;
|
|
14
|
+
}) `
|
|
15
|
+
font-family: Roboto-Bold;
|
|
16
16
|
${({ isNull }) => {
|
|
17
17
|
return (isNull &&
|
|
18
|
-
`
|
|
19
|
-
color: ${colors_1.default.paroRed} !important;
|
|
18
|
+
`
|
|
19
|
+
color: ${colors_1.default.paroRed} !important;
|
|
20
20
|
`);
|
|
21
|
-
}}
|
|
21
|
+
}}
|
|
22
22
|
`;
|
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.NullContentConditionalColor = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
8
|
const colors_1 = __importDefault(require("../constants/colors"));
|
|
9
|
-
exports.NullContentConditionalColor = styled_components_1.default.span `
|
|
9
|
+
exports.NullContentConditionalColor = styled_components_1.default.span `
|
|
10
10
|
${(props) => {
|
|
11
11
|
return (props.isNull &&
|
|
12
|
-
`
|
|
13
|
-
color: ${colors_1.default.paroRed} !important
|
|
12
|
+
`
|
|
13
|
+
color: ${colors_1.default.paroRed} !important
|
|
14
14
|
`);
|
|
15
|
-
}}
|
|
15
|
+
}}
|
|
16
16
|
`;
|
|
@@ -10,18 +10,18 @@ const styled_components_1 = __importDefault(require("styled-components"));
|
|
|
10
10
|
const colors_1 = __importDefault(require("../constants/colors"));
|
|
11
11
|
exports.SectionBody = (0, styled_components_1.default)((props) => {
|
|
12
12
|
return react_1.default.createElement("div", Object.assign({}, (0, omit_1.default)(props, ["atLeastOneValueIsNull"])));
|
|
13
|
-
}) `
|
|
14
|
-
background-color: ${colors_1.default.white};
|
|
15
|
-
border-radius: 2px;
|
|
16
|
-
border: 1px Solid ${colors_1.default.lightGray};
|
|
17
|
-
color: ${colors_1.default.paroBlack};
|
|
18
|
-
font-family: Roboto;
|
|
19
|
-
padding: 32.5px 42.5px 32.5px 42.5px;
|
|
20
|
-
width: 100%;
|
|
13
|
+
}) `
|
|
14
|
+
background-color: ${colors_1.default.white};
|
|
15
|
+
border-radius: 2px;
|
|
16
|
+
border: 1px Solid ${colors_1.default.lightGray};
|
|
17
|
+
color: ${colors_1.default.paroBlack};
|
|
18
|
+
font-family: Roboto;
|
|
19
|
+
padding: 32.5px 42.5px 32.5px 42.5px;
|
|
20
|
+
width: 100%;
|
|
21
21
|
${({ atLeastOneValueIsNull }) => {
|
|
22
22
|
return (atLeastOneValueIsNull &&
|
|
23
|
-
`
|
|
24
|
-
border-color: ${colors_1.default.paroRed} !important;
|
|
23
|
+
`
|
|
24
|
+
border-color: ${colors_1.default.paroRed} !important;
|
|
25
25
|
`);
|
|
26
|
-
}}
|
|
26
|
+
}}
|
|
27
27
|
`;
|
|
@@ -10,12 +10,12 @@ const styled_components_1 = __importDefault(require("styled-components"));
|
|
|
10
10
|
const colors_1 = __importDefault(require("../constants/colors"));
|
|
11
11
|
exports.SectionTitle = (0, styled_components_1.default)((props) => {
|
|
12
12
|
return react_1.default.createElement("div", Object.assign({}, (0, omit_1.default)(props, ["noBottomPadding"])));
|
|
13
|
-
}) `
|
|
14
|
-
font-family: Roboto-Bold;
|
|
15
|
-
font-size: 20px;
|
|
16
|
-
color: ${colors_1.default.paroBlack};
|
|
17
|
-
padding: 23px 0px 15.5px 0px;
|
|
13
|
+
}) `
|
|
14
|
+
font-family: Roboto-Bold;
|
|
15
|
+
font-size: 20px;
|
|
16
|
+
color: ${colors_1.default.paroBlack};
|
|
17
|
+
padding: 23px 0px 15.5px 0px;
|
|
18
18
|
${({ noBottomPadding }) => {
|
|
19
19
|
return noBottomPadding && "padding-bottom: 0 !important;";
|
|
20
|
-
}}
|
|
20
|
+
}}
|
|
21
21
|
`;
|
|
@@ -6,6 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Tags = void 0;
|
|
7
7
|
const core_1 = require("@material-ui/core");
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
exports.Tags = (0, styled_components_1.default)(core_1.Chip) `
|
|
10
|
-
font-family: Roboto-Bold;
|
|
9
|
+
exports.Tags = (0, styled_components_1.default)(core_1.Chip) `
|
|
10
|
+
font-family: Roboto-Bold;
|
|
11
11
|
`;
|
|
@@ -177,7 +177,7 @@ const DocumentCenter = ({ legacyFreelancerId, openModal, setOpenModal, expertCli
|
|
|
177
177
|
react_1.default.createElement(lab_1.TabPanel, { value: '0', style: { paddingTop: '0px' } },
|
|
178
178
|
react_1.default.createElement(ClientDocumentsTable_1.ClientDocumentsTable, { legacyFreelancerId: legacyFreelancerId, expertFiles: expertClientFiles, setExpertClientFiles: setExpertClientFiles, clientAndProjectsList: clientAndProjects, uploadExpertClientFiles: uploadExpertClientFiles, updateFileLastViewed: updateFileLastViewed, deleteExpertClientFile: deleteExpertClientFile, paroDocuments: false, freelancerName: freelancerName !== null && freelancerName !== void 0 ? freelancerName : '', freelancerEmail: freelancerEmail !== null && freelancerEmail !== void 0 ? freelancerEmail : '', getFileLazyQuery: getFileLazyQuery, expertClientFilesLazyQuery: expertClientFilesLazyQuery, isClientPortal: isClientPortal, documentUploadUrl: documentUploadUrl, downloadDocumentUrl: downloadDocumentUrl })),
|
|
179
179
|
react_1.default.createElement(lab_1.TabPanel, { value: '1' },
|
|
180
|
-
react_1.default.createElement(ParoDocumentsTable_1.ParoDocumentsTable, { legacyFreelancerId: legacyFreelancerId, expiryDate: insuranceExpiryDate !== null && insuranceExpiryDate !== void 0 ? insuranceExpiryDate : '', setExpiryDate: setInsuranceExpiryDate, expertFiles: expertFiles, setExpertFiles: setExpertFiles,
|
|
180
|
+
react_1.default.createElement(ParoDocumentsTable_1.ParoDocumentsTable, { legacyFreelancerId: legacyFreelancerId, expiryDate: insuranceExpiryDate !== null && insuranceExpiryDate !== void 0 ? insuranceExpiryDate : '', setExpiryDate: setInsuranceExpiryDate, expertFiles: expertFiles, setExpertFiles: setExpertFiles, uploadFileData: uploadFileData, deleteFileMutation: deleteFileMutation, updateFreelancerExpiryMutation: updateFreelancerExpiryMutation, foldername: foldername !== null && foldername !== void 0 ? foldername : '', paroDocuments: true, getFileLazyQuery: getFileLazyQuery, getFilesLazyQuery: getFilesLazyQuery }))))),
|
|
181
181
|
react_1.default.createElement(react_hot_toast_1.Toaster, { position: "top-center", toastOptions: {
|
|
182
182
|
style: {
|
|
183
183
|
zIndex: 9999,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
interface DocumentTableProps {
|
|
2
|
-
legacyFreelancerId: number;
|
|
3
|
-
paroProjectsData: any;
|
|
4
|
-
expiryDate: string;
|
|
5
|
-
expertFiles: any[];
|
|
6
|
-
uploadExpertClientFiles: any;
|
|
7
|
-
uploadFileData: any;
|
|
8
|
-
deleteFileMutation: any;
|
|
9
|
-
updateFreelancerExpiryMutation: any;
|
|
10
|
-
GetFilesDocument: any;
|
|
11
|
-
foldername: string;
|
|
12
|
-
paroDocuments: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const DocumentTable: ({ legacyFreelancerId, paroProjectsData, expiryDate, expertFiles, uploadExpertClientFiles, uploadFileData, deleteFileMutation, updateFreelancerExpiryMutation, GetFilesDocument, foldername, paroDocuments }: DocumentTableProps) => JSX.Element;
|
|
15
|
-
export {};
|
|
1
|
+
interface DocumentTableProps {
|
|
2
|
+
legacyFreelancerId: number;
|
|
3
|
+
paroProjectsData: any;
|
|
4
|
+
expiryDate: string;
|
|
5
|
+
expertFiles: any[];
|
|
6
|
+
uploadExpertClientFiles: any;
|
|
7
|
+
uploadFileData: any;
|
|
8
|
+
deleteFileMutation: any;
|
|
9
|
+
updateFreelancerExpiryMutation: any;
|
|
10
|
+
GetFilesDocument: any;
|
|
11
|
+
foldername: string;
|
|
12
|
+
paroDocuments: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const DocumentTable: ({ legacyFreelancerId, paroProjectsData, expiryDate, expertFiles, uploadExpertClientFiles, uploadFileData, deleteFileMutation, updateFreelancerExpiryMutation, GetFilesDocument, foldername, paroDocuments }: DocumentTableProps) => JSX.Element;
|
|
15
|
+
export {};
|