@paro.io/expert-shared-components 1.14.24 → 1.14.26

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.
Files changed (82) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +2 -2
  3. package/lib/components/ClientReferencesSection/DeleteButton.js +11 -11
  4. package/lib/components/ClientReferencesSection/ParoError.js +10 -10
  5. package/lib/components/ClientReferencesSection/TagsSection.js +2 -2
  6. package/lib/components/ClientReferencesSection/styles/BrandedTypography.js +2 -2
  7. package/lib/components/ClientReferencesSection/styles/Buttons.js +15 -15
  8. package/lib/components/ClientReferencesSection/styles/Name.js +5 -5
  9. package/lib/components/ClientReferencesSection/styles/NullContentConditionalColor.js +4 -4
  10. package/lib/components/ClientReferencesSection/styles/SectionBody.js +11 -11
  11. package/lib/components/ClientReferencesSection/styles/SectionTitle.js +6 -6
  12. package/lib/components/ClientReferencesSection/styles/Tags.js +2 -2
  13. package/lib/components/DiscussionThread/DiscussionThread.d.ts +25 -25
  14. package/lib/components/DiscussionThread/DiscussionThread.js +137 -137
  15. package/lib/components/DiscussionThread/chat.d.ts +22 -22
  16. package/lib/components/DiscussionThread/chat.js +106 -106
  17. package/lib/components/DiscussionThread/index.d.ts +1 -1
  18. package/lib/components/DiscussionThread/index.js +5 -5
  19. package/lib/components/DocumentCenter/ClientDocumentsTable.d.ts +2 -1
  20. package/lib/components/DocumentCenter/ClientDocumentsTable.js +2 -4
  21. package/lib/components/DocumentCenter/DocumentCenter.d.ts +2 -1
  22. package/lib/components/DocumentCenter/DocumentCenter.js +44 -34
  23. package/lib/components/DocumentCenter/DocumentTable.d.ts +15 -15
  24. package/lib/components/DocumentCenter/DocumentTable.js +350 -350
  25. package/lib/components/DocumentCenter/DocumentUploadRow.d.ts +2 -1
  26. package/lib/components/DocumentCenter/DocumentUploadRow.js +2 -2
  27. package/lib/components/DocumentCenter/ParoDocumentsTable.d.ts +2 -1
  28. package/lib/components/DocumentCenter/ParoDocumentsTable.js +2 -2
  29. package/lib/components/DocumentCenter/UploadFilesButton.d.ts +6 -6
  30. package/lib/components/DocumentCenter/UploadFilesButton.js +29 -29
  31. package/lib/components/EarningsTracker/ActiveProjectCard.d.ts +52 -52
  32. package/lib/components/EarningsTracker/ActiveProjectCard.js +161 -161
  33. package/lib/components/EarningsTracker/CenterCardUI.d.ts +13 -13
  34. package/lib/components/EarningsTracker/CenterCardUI.js +134 -134
  35. package/lib/components/EarningsTracker/EarningsTracker.d.ts +52 -52
  36. package/lib/components/EarningsTracker/EarningsTracker.js +508 -508
  37. package/lib/components/EarningsTracker/EditDateModal.d.ts +22 -22
  38. package/lib/components/EarningsTracker/EditDateModal.js +149 -149
  39. package/lib/components/EarningsTracker/EmailModal.d.ts +14 -14
  40. package/lib/components/EarningsTracker/EmailModal.js +79 -79
  41. package/lib/components/EarningsTracker/EndProjectModal.d.ts +56 -56
  42. package/lib/components/EarningsTracker/EndProjectModal.js +221 -221
  43. package/lib/components/EarningsTracker/LeftCardUI.d.ts +18 -18
  44. package/lib/components/EarningsTracker/LeftCardUI.js +189 -189
  45. package/lib/components/EarningsTracker/LogTimeModalAuthenticated.d.ts +52 -52
  46. package/lib/components/EarningsTracker/LogTimeModalAuthenticated.js +358 -358
  47. package/lib/components/EarningsTracker/ProgressBar.d.ts +4 -4
  48. package/lib/components/EarningsTracker/ProgressBar.js +66 -66
  49. package/lib/components/EarningsTracker/ReviewRequestModal.d.ts +17 -17
  50. package/lib/components/EarningsTracker/ReviewRequestModal.js +135 -135
  51. package/lib/components/EarningsTracker/RightCardUI.d.ts +46 -46
  52. package/lib/components/EarningsTracker/RightCardUI.js +231 -231
  53. package/lib/components/EarningsTracker/index.d.ts +1 -1
  54. package/lib/components/EarningsTracker/index.js +5 -5
  55. package/lib/components/Escalations/CustomTag.d.ts +3 -3
  56. package/lib/components/Escalations/CustomTag.js +25 -25
  57. package/lib/components/Escalations/ViewReponseModal.d.ts +8 -8
  58. package/lib/components/Escalations/ViewReponseModal.js +27 -27
  59. package/lib/components/ExpertProfileHeader/ActionButtonSection.js +6 -6
  60. package/lib/components/ExpertProfileHeader/ProfileSection.js +7 -7
  61. package/lib/components/HeaderNavBar/index.js +3 -3
  62. package/lib/components/Invoices/TestDecisionSection.d.ts +1 -1
  63. package/lib/components/Invoices/TestDecisionSection.js +126 -126
  64. package/lib/components/OrganizationChart/OrganizationChart.d.ts +15 -15
  65. package/lib/components/OrganizationChart/OrganizationChart.js +312 -312
  66. package/lib/components/OrganizationChart/PersonCard.js +5 -5
  67. package/lib/components/OrganizationChart/utils.js +79 -79
  68. package/lib/components/ProjectCard/ProgressBar.js +4 -4
  69. package/lib/components/ProjectCard/ReviewRequestModal.js +5 -5
  70. package/lib/components/ProjectIntelligence/MissingInformation/index.js +1 -1
  71. package/lib/components/Reviews/Pagination.js +6 -6
  72. package/lib/components/ReviewsTab/RatingHeader.js +6 -6
  73. package/lib/components/ReviewsTab/expert-shared-components.code-workspace +20 -20
  74. package/lib/components/ReviewsTab/reviewRequestModal.js +5 -5
  75. package/lib/components/shared/Image.js +13 -13
  76. package/lib/components/shared/ProfileTextField.d.ts +18 -18
  77. package/lib/components/shared/ProfileTextField.js +16 -16
  78. package/lib/components/shared/StyledActionButtons.d.ts +7 -7
  79. package/lib/components/shared/StyledActionButtons.js +15 -15
  80. package/lib/components/shared/ToastNotification.d.ts +10 -10
  81. package/lib/components/shared/ToastNotification.js +63 -63
  82. package/package.json +66 -66
@@ -1,63 +1,63 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- const react_1 = __importStar(require("react"));
27
- const core_1 = require("@material-ui/core");
28
- const base_ui_1 = require("@paro.io/base-ui");
29
- const ToastModal = ({ color, icon, message, duration = 6000, // Default duration is 6 seconds
30
- position = 'bottom-right', }) => {
31
- const [open, setOpen] = (0, react_1.useState)(false);
32
- // Automatically open the modal on mount
33
- (0, react_1.useEffect)(() => {
34
- setOpen(true);
35
- // Automatically close the modal after the specified duration
36
- const timer = setTimeout(() => {
37
- setOpen(false);
38
- }, duration);
39
- // Cleanup the timeout if the component unmounts or if the duration changes
40
- return () => clearTimeout(timer);
41
- }, [duration]);
42
- console.log("triggered");
43
- return (react_1.default.createElement(core_1.Dialog, { open: open, onClose: () => setOpen(false), "aria-labelledby": "toast-modal-title", maxWidth: "xs", fullWidth: true, PaperProps: {
44
- style: {
45
- backgroundColor: '#323232', // Dark background to resemble toast style
46
- color: '#fff', // White text
47
- borderRadius: '8px',
48
- display: 'flex',
49
- justifyContent: 'center',
50
- alignItems: 'center',
51
- zIndex: 9999, // Ensure it’s on top of the MUI Dialog
52
- position: 'absolute', // Absolute positioning to control location
53
- top: position.includes('top') ? '10%' : 'auto',
54
- bottom: position.includes('bottom') ? '10%' : 'auto',
55
- right: position.includes('right') ? '10%' : 'auto',
56
- left: position.includes('left') ? '10%' : 'auto',
57
- },
58
- } },
59
- react_1.default.createElement(core_1.DialogContent, { style: { textAlign: 'center' } },
60
- react_1.default.createElement(base_ui_1.Alert, { color: color, icon: icon, label: message, className: color === 'warning' ? 'bg-warning' : 'bg-success' }),
61
- ",")));
62
- };
63
- exports.default = ToastModal;
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ const react_1 = __importStar(require("react"));
27
+ const core_1 = require("@material-ui/core");
28
+ const base_ui_1 = require("@paro.io/base-ui");
29
+ const ToastModal = ({ color, icon, message, duration = 6000, // Default duration is 6 seconds
30
+ position = 'bottom-right', }) => {
31
+ const [open, setOpen] = (0, react_1.useState)(false);
32
+ // Automatically open the modal on mount
33
+ (0, react_1.useEffect)(() => {
34
+ setOpen(true);
35
+ // Automatically close the modal after the specified duration
36
+ const timer = setTimeout(() => {
37
+ setOpen(false);
38
+ }, duration);
39
+ // Cleanup the timeout if the component unmounts or if the duration changes
40
+ return () => clearTimeout(timer);
41
+ }, [duration]);
42
+ console.log("triggered");
43
+ return (react_1.default.createElement(core_1.Dialog, { open: open, onClose: () => setOpen(false), "aria-labelledby": "toast-modal-title", maxWidth: "xs", fullWidth: true, PaperProps: {
44
+ style: {
45
+ backgroundColor: '#323232', // Dark background to resemble toast style
46
+ color: '#fff', // White text
47
+ borderRadius: '8px',
48
+ display: 'flex',
49
+ justifyContent: 'center',
50
+ alignItems: 'center',
51
+ zIndex: 9999, // Ensure it’s on top of the MUI Dialog
52
+ position: 'absolute', // Absolute positioning to control location
53
+ top: position.includes('top') ? '10%' : 'auto',
54
+ bottom: position.includes('bottom') ? '10%' : 'auto',
55
+ right: position.includes('right') ? '10%' : 'auto',
56
+ left: position.includes('left') ? '10%' : 'auto',
57
+ },
58
+ } },
59
+ react_1.default.createElement(core_1.DialogContent, { style: { textAlign: 'center' } },
60
+ react_1.default.createElement(base_ui_1.Alert, { color: color, icon: icon, label: message, className: color === 'warning' ? 'bg-warning' : 'bg-success' }),
61
+ ",")));
62
+ };
63
+ exports.default = ToastModal;
package/package.json CHANGED
@@ -1,67 +1,67 @@
1
- {
2
- "name": "@paro.io/expert-shared-components",
3
- "version": "1.14.24",
4
- "description": "",
5
- "main": "lib/index.js",
6
- "scripts": {
7
- "build": "tsc",
8
- "prepare": "yarn build",
9
- "test": "yarn test:build",
10
- "test:build": "yarn build",
11
- "clean": "yarn -rf lib",
12
- "predeploy": "tsc && cp package.json README.md ./lib",
13
- "link-local": "yarn link && cd node_modules/react && yarn link && cd ../react-dom && yarn link",
14
- "unlink-local": "yarn unlink && cd node_modules/react && yarn unlink && cd ../react-dom && yarn unlink"
15
- },
16
- "repository": "https://github.com/paroadmin/expert-shared-components.git",
17
- "keywords": [
18
- "react",
19
- "components",
20
- "shared"
21
- ],
22
- "author": "apande@paro.io",
23
- "license": "MIT",
24
- "dependencies": {
25
- "@date-io/dayjs": "1.x",
26
- "@fortawesome/fontawesome-svg-core": "^6.6.0",
27
- "@fortawesome/free-solid-svg-icons": "^6.6.0",
28
- "@fortawesome/react-fontawesome": "^0.2.2",
29
- "@hookform/resolvers": "3.3.4",
30
- "@material-ui/core": "^4.11.0",
31
- "@material-ui/icons": "^4.11.3",
32
- "@material-ui/lab": "^4.0.0-alpha.61",
33
- "@material-ui/pickers": "^3.3.11",
34
- "@paro.io/base-icons": "^1.0.4",
35
- "@paro.io/base-ui": "^1.8.3",
36
- "@types/react-input-mask": "^3.0.5",
37
- "dayjs": "^1.10.7",
38
- "lodash": "^4.17.21",
39
- "react": "^18.2.0",
40
- "react-copy-to-clipboard": "^5.0.4",
41
- "react-datepicker": "^4.6.0",
42
- "react-dom": "^17.0.2",
43
- "react-hook-form": "7.51.1",
44
- "react-hot-toast": "^2.4.1",
45
- "react-input-mask": "^3.0.0-alpha.2",
46
- "styled-components": "^5.3.3",
47
- "uuid": "8.3.2",
48
- "yup": "^0.32.11"
49
- },
50
- "devDependencies": {
51
- "@types/lodash": "^4.14.170",
52
- "@types/react": "18.3.12",
53
- "@types/react-copy-to-clipboard": "^5.0.2",
54
- "@types/react-datepicker": "^4.19.6",
55
- "@types/react-dom": "^18.2.22",
56
- "@types/styled-components": "^5.1.22",
57
- "@types/uuid": "^10.0.0",
58
- "@types/yup": "^0.29.13",
59
- "typescript": "^5.3.3"
60
- },
61
- "files": [
62
- "lib/**/*"
63
- ],
64
- "directories": {
65
- "lib": "lib"
66
- }
1
+ {
2
+ "name": "@paro.io/expert-shared-components",
3
+ "version": "1.14.26",
4
+ "description": "",
5
+ "main": "lib/index.js",
6
+ "scripts": {
7
+ "build": "tsc",
8
+ "prepare": "yarn build",
9
+ "test": "yarn test:build",
10
+ "test:build": "yarn build",
11
+ "clean": "yarn -rf lib",
12
+ "predeploy": "tsc && cp package.json README.md ./lib",
13
+ "link-local": "yarn link && cd node_modules/react && yarn link && cd ../react-dom && yarn link",
14
+ "unlink-local": "yarn unlink && cd node_modules/react && yarn unlink && cd ../react-dom && yarn unlink"
15
+ },
16
+ "repository": "https://github.com/paroadmin/expert-shared-components.git",
17
+ "keywords": [
18
+ "react",
19
+ "components",
20
+ "shared"
21
+ ],
22
+ "author": "apande@paro.io",
23
+ "license": "MIT",
24
+ "dependencies": {
25
+ "@date-io/dayjs": "1.x",
26
+ "@fortawesome/fontawesome-svg-core": "^6.6.0",
27
+ "@fortawesome/free-solid-svg-icons": "^6.6.0",
28
+ "@fortawesome/react-fontawesome": "^0.2.2",
29
+ "@hookform/resolvers": "3.3.4",
30
+ "@material-ui/core": "^4.11.0",
31
+ "@material-ui/icons": "^4.11.3",
32
+ "@material-ui/lab": "^4.0.0-alpha.61",
33
+ "@material-ui/pickers": "^3.3.11",
34
+ "@paro.io/base-icons": "^1.0.4",
35
+ "@paro.io/base-ui": "^1.8.3",
36
+ "@types/react-input-mask": "^3.0.5",
37
+ "dayjs": "^1.10.7",
38
+ "lodash": "^4.17.21",
39
+ "react": "^18.2.0",
40
+ "react-copy-to-clipboard": "^5.0.4",
41
+ "react-datepicker": "^4.6.0",
42
+ "react-dom": "^17.0.2",
43
+ "react-hook-form": "7.51.1",
44
+ "react-hot-toast": "^2.4.1",
45
+ "react-input-mask": "^3.0.0-alpha.2",
46
+ "styled-components": "^5.3.3",
47
+ "uuid": "8.3.2",
48
+ "yup": "^0.32.11"
49
+ },
50
+ "devDependencies": {
51
+ "@types/lodash": "^4.14.170",
52
+ "@types/react": "18.3.12",
53
+ "@types/react-copy-to-clipboard": "^5.0.2",
54
+ "@types/react-datepicker": "^4.19.6",
55
+ "@types/react-dom": "^18.2.22",
56
+ "@types/styled-components": "^5.1.22",
57
+ "@types/uuid": "^10.0.0",
58
+ "@types/yup": "^0.29.13",
59
+ "typescript": "^5.3.3"
60
+ },
61
+ "files": [
62
+ "lib/**/*"
63
+ ],
64
+ "directories": {
65
+ "lib": "lib"
66
+ }
67
67
  }