hplx-feature-library 1.0.70 → 1.0.72

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 (37) hide show
  1. package/dist/AlertPopup/index.js +5 -0
  2. package/dist/AlertPopup-D5OvNU2M.cjs +32 -0
  3. package/dist/AlertPopup-tF3Y6sIE.js +1069 -0
  4. package/dist/AllInvestigations/components/AllInvestigationsTable.d.ts +7 -0
  5. package/dist/AllInvestigations/index.d.ts +1 -0
  6. package/dist/AllInvestigations/index.js +4 -0
  7. package/dist/AllInvestigations/mock/InvestigationsMock.d.ts +2 -0
  8. package/dist/AllInvestigationsTable-C31iKsRE.cjs +1 -0
  9. package/dist/AllInvestigationsTable-CDQsqfbF.js +78 -0
  10. package/dist/Attachments/index.js +19 -18
  11. package/dist/CustomDropdown/index.js +265 -0
  12. package/dist/DateTimePicker/DateAndTimePicker/index.js +6161 -0
  13. package/dist/PediatricsCalculator/index.js +1 -1
  14. package/dist/PediatricsCalculatorTable-B6OkRbld.js +832 -0
  15. package/dist/PediatricsCalculatorTable-DoXAWcvL.cjs +1 -0
  16. package/dist/ToggleButtons/index.js +17 -0
  17. package/dist/components/alertPopup/index.d.ts +1 -0
  18. package/dist/components/{CustomDropdown.d.ts → customDropdown/CustomDropdown.d.ts} +1 -1
  19. package/dist/components/customDropdown/index.d.ts +1 -0
  20. package/dist/components/dateTimePicker/index.d.ts +1 -0
  21. package/dist/components/{ToggleButtons.d.ts → toggleButtons/ToggleButtons.d.ts} +1 -1
  22. package/dist/components/toggleButtons/index.d.ts +1 -0
  23. package/dist/{index-BocogwgJ.js → index-6-2iV0ns.js} +3 -3
  24. package/dist/index.d.ts +1 -5
  25. package/dist/index.js +4 -6237
  26. package/dist/types/AllInvestigationTypes/index.js +1 -0
  27. package/dist/useClickOutside-BjJyGTec.js +14 -0
  28. package/dist/useClickOutside-DsVG12Cs.cjs +1 -0
  29. package/package.json +24 -7
  30. package/dist/Investigations/components/InvestigationsTable.d.ts +0 -7
  31. package/dist/Investigations/index.d.ts +0 -1
  32. package/dist/Investigations/mock/InvestigationsMock.d.ts +0 -2
  33. package/dist/PediatricsCalculatorTable-C3bes_CH.js +0 -2177
  34. package/dist/PediatricsCalculatorTable-bhid_0mB.cjs +0 -40
  35. /package/dist/components/{AlertPopup.d.ts → alertPopup/AlertPopup.d.ts} +0 -0
  36. /package/dist/components/{datepicker → dateTimePicker}/DateAndTimePicker.d.ts +0 -0
  37. /package/dist/types/{InvestigationTypes.d.ts → AllInvestigationTypes.d.ts} +0 -0
@@ -0,0 +1,14 @@
1
+ import { useEffect as s } from "react";
2
+ const r = (e, t) => {
3
+ s(() => {
4
+ const n = (o) => {
5
+ e.current && !e.current.contains(o.target) && t();
6
+ };
7
+ return document.addEventListener("mousedown", n), () => {
8
+ document.removeEventListener("mousedown", n);
9
+ };
10
+ }, [e, t]);
11
+ };
12
+ export {
13
+ r as u
14
+ };
@@ -0,0 +1 @@
1
+ "use strict";const u=require("react"),c=(e,t)=>{u.useEffect(()=>{const n=s=>{e.current&&!e.current.contains(s.target)&&t()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e,t])};exports.useClickOutside=c;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hplx-feature-library",
3
3
  "private": false,
4
- "version": "1.0.70",
4
+ "version": "1.0.72",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "npm i hplx-react-elements-dev@qa && vite",
@@ -39,6 +39,23 @@
39
39
  "types": "dist/index.d.ts",
40
40
  "exports": {
41
41
  "./style.css": "./dist/hplx-feature-library.css",
42
+ "./AlertPopup": {
43
+ "import": "./dist/components/AlertPopup.js",
44
+ "types": "./dist/components/AlertPopup.d.ts"
45
+ },
46
+ "./CustomDropdown": {
47
+ "import": "./dist/components/CustomDropdown.js",
48
+ "types": "./dist/components/CustomDropdown.d.ts"
49
+ },
50
+ "./ToggleButtons": {
51
+ "import": "./dist/components/toggleButtons/index.js",
52
+ "types": "./dist/components/toggleButtons/index.d.ts"
53
+ },
54
+ "./DateTimePicker/DateAndTimePicker.css": "./dist/components/dateTimePicker/DateAndTimePicker.css",
55
+ "./DateTimePicker/DateAndTimePicker": {
56
+ "import": "./dist/components/dateTimePicker/DateAndTimePicker.js",
57
+ "types": "./dist/components/dateTimePicker/DateAndTimePicker.d.ts"
58
+ },
42
59
  "./PediatricsCalculator": {
43
60
  "import": "./dist/PediatricsCalculator/index.js",
44
61
  "types": "./dist/PediatricsCalculator/index.d.ts"
@@ -63,13 +80,13 @@
63
80
  "import": "./dist/constants/AttachmentConstants/index.js",
64
81
  "types": "./dist/constants/AttachmentConstants.d.ts"
65
82
  },
66
- "./Investigations": {
67
- "import": "./dist/Investigations/index.js",
68
- "types": "./dist/Investigations/index.d.ts"
83
+ "./AllInvestigations": {
84
+ "import": "./dist/AllInvestigations/index.js",
85
+ "types": "./dist/AllInvestigations/index.d.ts"
69
86
  },
70
- "./Types/InvestigationTypes": {
71
- "import": "./dist/types/InvestigationTypes/index.js",
72
- "types": "./dist/types/InvestigationTypes.d.ts"
87
+ "./Types/AllInvestigationTypes": {
88
+ "import": "./dist/types/AllInvestigationTypes/index.js",
89
+ "types": "./dist/types/AllInvestigationTypes.d.ts"
73
90
  }
74
91
  },
75
92
  "dependencies": {
@@ -1,7 +0,0 @@
1
- import { I_InvestigationsByDate, I_TestRanges } from '../../types/InvestigationTypes';
2
- interface InvestigationsTableProps {
3
- data: I_InvestigationsByDate[];
4
- testDetails: I_TestRanges[];
5
- }
6
- declare const InvestigationsTable: ({ data, testDetails }: InvestigationsTableProps) => import("react/jsx-runtime").JSX.Element;
7
- export default InvestigationsTable;
@@ -1 +0,0 @@
1
- export { default } from './components/InvestigationsTable';
@@ -1,2 +0,0 @@
1
- import { I_InvestigationsByDate } from '../../types/InvestigationTypes';
2
- export declare const mockData: I_InvestigationsByDate[];