@rubenpazch/prescription-eye-card 2.0.0
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/README.md +3 -0
- package/dist/PrescriptionEyeCard.d.ts +50 -0
- package/dist/PrescriptionEyeCard.d.ts.map +1 -0
- package/dist/PrescriptionFieldCard.d.ts +14 -0
- package/dist/PrescriptionFieldCard.d.ts.map +1 -0
- package/dist/index.cjs.js +1013 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +1011 -0
- package/package.json +46 -0
package/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface PrescriptionEyeInfo {
|
|
3
|
+
sphere?: number | string;
|
|
4
|
+
cylinder?: number | string;
|
|
5
|
+
axis?: number | string;
|
|
6
|
+
add?: number | string;
|
|
7
|
+
intermediate_add?: number | string;
|
|
8
|
+
prism?: number | string;
|
|
9
|
+
prism_base?: string;
|
|
10
|
+
dnp?: number | string;
|
|
11
|
+
height?: number | string;
|
|
12
|
+
notes?: string;
|
|
13
|
+
rx?: boolean;
|
|
14
|
+
neutro?: boolean;
|
|
15
|
+
balance?: boolean;
|
|
16
|
+
compensado?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export type PrescriptionEyeCardLabels = {
|
|
19
|
+
eyeOD: string;
|
|
20
|
+
eyeOI: string;
|
|
21
|
+
rx: string;
|
|
22
|
+
neutro: string;
|
|
23
|
+
balance: string;
|
|
24
|
+
compensado: string;
|
|
25
|
+
sphere: string;
|
|
26
|
+
cylinder: string;
|
|
27
|
+
axis: string;
|
|
28
|
+
dnp: string;
|
|
29
|
+
add: string;
|
|
30
|
+
intermediateAdd: string;
|
|
31
|
+
prism: string;
|
|
32
|
+
prismBase: string;
|
|
33
|
+
height: string;
|
|
34
|
+
notes: string;
|
|
35
|
+
prismBaseFallback: string;
|
|
36
|
+
axisUnit: string;
|
|
37
|
+
millimetersUnit: string;
|
|
38
|
+
prismUnit: string;
|
|
39
|
+
};
|
|
40
|
+
export interface PrescriptionEyeCardProps {
|
|
41
|
+
eye: "OD" | "OI";
|
|
42
|
+
eyeInfo: PrescriptionEyeInfo;
|
|
43
|
+
prismBaseLookup: {
|
|
44
|
+
getNameByKey: (key: string) => string;
|
|
45
|
+
};
|
|
46
|
+
labels: PrescriptionEyeCardLabels;
|
|
47
|
+
}
|
|
48
|
+
export declare const PrescriptionEyeCard: React.FC<PrescriptionEyeCardProps>;
|
|
49
|
+
export default PrescriptionEyeCard;
|
|
50
|
+
//# sourceMappingURL=PrescriptionEyeCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrescriptionEyeCard.d.ts","sourceRoot":"","sources":["../src/PrescriptionEyeCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;IACjB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,eAAe,EAAE;QACf,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;KACvC,CAAC;IACF,MAAM,EAAE,yBAAyB,CAAC;CACnC;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAyJlE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface PrescriptionFieldCardProps {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
range?: string;
|
|
6
|
+
variant?: "default" | "highlighted" | "success" | "warning";
|
|
7
|
+
required?: boolean;
|
|
8
|
+
unit?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
formatValue?: (value: string | number) => string;
|
|
11
|
+
}
|
|
12
|
+
export declare const PrescriptionFieldCard: React.FC<PrescriptionFieldCardProps>;
|
|
13
|
+
export default PrescriptionFieldCard;
|
|
14
|
+
//# sourceMappingURL=PrescriptionFieldCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrescriptionFieldCard.d.ts","sourceRoot":"","sources":["../src/PrescriptionFieldCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,CAAC;CAClD;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA8EtE,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|