@rubenpazch/prescription-eye-card 3.0.9 → 3.0.11
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 +2 -2
- package/dist/PrescriptionEyeCard.d.ts +3 -0
- package/dist/PrescriptionEyeCard.d.ts.map +1 -1
- package/dist/index.cjs.js +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +3 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -4,10 +4,10 @@ Generated component package.
|
|
|
4
4
|
|
|
5
5
|
<!-- catalogo:inicio (generado por pnpm catalogo, no editar) -->
|
|
6
6
|
|
|
7
|
-
Datos de un ojo de la receta óptica (PrescriptionEyeCard) y campo individual (PrescriptionFieldCard).
|
|
7
|
+
OBSOLETO. Datos de un ojo de la receta óptica (PrescriptionEyeCard) y campo individual (PrescriptionFieldCard).
|
|
8
8
|
|
|
9
9
|
- **Usar cuando:** Mostrar o comparar los valores de un ojo en apps de óptica.
|
|
10
|
-
- **Evitar cuando:** Cualquier dato que no sea una receta óptica.
|
|
10
|
+
- **Evitar cuando:** Siempre en apps nuevas: está obsoleto. Arma la vista con Card, DescriptionList, Badge y Menu. Cualquier dato que no sea una receta óptica.
|
|
11
11
|
|
|
12
12
|
Se recomienda instalar el paquete completo `@rubenpazch/ui` (incluye este). Por separado:
|
|
13
13
|
|
|
@@ -45,6 +45,9 @@ export interface PrescriptionEyeCardProps {
|
|
|
45
45
|
};
|
|
46
46
|
labels: PrescriptionEyeCardLabels;
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated Obsoleto desde 2026-11-29: componente de negocio de una sola app (criterio 0010). optica mantiene su propia versión, construida con primitivas de la librería. No lo uses en apps nuevas; se quitará en una versión mayor.
|
|
50
|
+
*/
|
|
48
51
|
export declare const PrescriptionEyeCard: React.FC<PrescriptionEyeCardProps>;
|
|
49
52
|
export default PrescriptionEyeCard;
|
|
50
53
|
//# sourceMappingURL=Pr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C,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;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAyJlE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -998,6 +998,9 @@ var styles = {"card":"PrescriptionEyeCard-module_card__kfPOc","title":"Prescript
|
|
|
998
998
|
styleInject$1(css_248z);
|
|
999
999
|
|
|
1000
1000
|
const classNames = (...classes) => classes.filter(Boolean).join(" ");
|
|
1001
|
+
/**
|
|
1002
|
+
* @deprecated Obsoleto desde 2026-11-29: componente de negocio de una sola app (criterio 0010). optica mantiene su propia versión, construida con primitivas de la librería. No lo uses en apps nuevas; se quitará en una versión mayor.
|
|
1003
|
+
*/
|
|
1001
1004
|
const PrescriptionEyeCard = ({ eye, eyeInfo, prismBaseLookup, labels, }) => {
|
|
1002
1005
|
const eyeLabel = eye === "OD" ? labels.eyeOD : labels.eyeOI;
|
|
1003
1006
|
return (jsxRuntimeExports$1.jsxs("div", { className: styles.card, "data-testid": "prescription-eye-card", children: [jsxRuntimeExports$1.jsxs("h3", { className: styles.title, children: [jsxRuntimeExports$1.jsx("span", { className: styles.eyeBadge, children: eye }), eyeLabel] }), jsxRuntimeExports$1.jsxs("div", { className: styles.flags, children: [eyeInfo.rx && (jsxRuntimeExports$1.jsx("div", { className: styles.flagItem, children: jsxRuntimeExports$1.jsx(CheckboxInput, { label: labels.rx, checked: true, disabled: true, size: "sm", variant: "primary" }) })), eyeInfo.neutro && (jsxRuntimeExports$1.jsx("div", { className: styles.flagItem, children: jsxRuntimeExports$1.jsx(CheckboxInput, { label: labels.neutro, checked: true, disabled: true, size: "sm", variant: "primary" }) })), eyeInfo.balance && (jsxRuntimeExports$1.jsx("div", { className: styles.flagItem, children: jsxRuntimeExports$1.jsx(CheckboxInput, { label: labels.balance, checked: true, disabled: true, size: "sm", variant: "primary" }) })), eyeInfo.compensado && (jsxRuntimeExports$1.jsx("div", { className: styles.flagItem, children: jsxRuntimeExports$1.jsx(CheckboxInput, { label: labels.compensado, checked: true, disabled: true, size: "sm", variant: "primary" }) }))] }), jsxRuntimeExports$1.jsxs("div", { className: classNames(styles.grid, styles.gridThree, styles.section), children: [jsxRuntimeExports$1.jsx(PrescriptionFieldCard, { label: labels.sphere, value: eyeInfo.sphere || 0, formatValue: (value) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -46,6 +46,9 @@ interface PrescriptionEyeCardProps {
|
|
|
46
46
|
};
|
|
47
47
|
labels: PrescriptionEyeCardLabels;
|
|
48
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Obsoleto desde 2026-11-29: componente de negocio de una sola app (criterio 0010). optica mantiene su propia versión, construida con primitivas de la librería. No lo uses en apps nuevas; se quitará en una versión mayor.
|
|
51
|
+
*/
|
|
49
52
|
declare const PrescriptionEyeCard: React.FC<PrescriptionEyeCardProps>;
|
|
50
53
|
|
|
51
54
|
export { PrescriptionEyeCard as default };
|
package/dist/index.esm.js
CHANGED
|
@@ -996,6 +996,9 @@ var styles = {"card":"PrescriptionEyeCard-module_card__kfPOc","title":"Prescript
|
|
|
996
996
|
styleInject$1(css_248z);
|
|
997
997
|
|
|
998
998
|
const classNames = (...classes) => classes.filter(Boolean).join(" ");
|
|
999
|
+
/**
|
|
1000
|
+
* @deprecated Obsoleto desde 2026-11-29: componente de negocio de una sola app (criterio 0010). optica mantiene su propia versión, construida con primitivas de la librería. No lo uses en apps nuevas; se quitará en una versión mayor.
|
|
1001
|
+
*/
|
|
999
1002
|
const PrescriptionEyeCard = ({ eye, eyeInfo, prismBaseLookup, labels, }) => {
|
|
1000
1003
|
const eyeLabel = eye === "OD" ? labels.eyeOD : labels.eyeOI;
|
|
1001
1004
|
return (jsxRuntimeExports$1.jsxs("div", { className: styles.card, "data-testid": "prescription-eye-card", children: [jsxRuntimeExports$1.jsxs("h3", { className: styles.title, children: [jsxRuntimeExports$1.jsx("span", { className: styles.eyeBadge, children: eye }), eyeLabel] }), jsxRuntimeExports$1.jsxs("div", { className: styles.flags, children: [eyeInfo.rx && (jsxRuntimeExports$1.jsx("div", { className: styles.flagItem, children: jsxRuntimeExports$1.jsx(CheckboxInput, { label: labels.rx, checked: true, disabled: true, size: "sm", variant: "primary" }) })), eyeInfo.neutro && (jsxRuntimeExports$1.jsx("div", { className: styles.flagItem, children: jsxRuntimeExports$1.jsx(CheckboxInput, { label: labels.neutro, checked: true, disabled: true, size: "sm", variant: "primary" }) })), eyeInfo.balance && (jsxRuntimeExports$1.jsx("div", { className: styles.flagItem, children: jsxRuntimeExports$1.jsx(CheckboxInput, { label: labels.balance, checked: true, disabled: true, size: "sm", variant: "primary" }) })), eyeInfo.compensado && (jsxRuntimeExports$1.jsx("div", { className: styles.flagItem, children: jsxRuntimeExports$1.jsx(CheckboxInput, { label: labels.compensado, checked: true, disabled: true, size: "sm", variant: "primary" }) }))] }), jsxRuntimeExports$1.jsxs("div", { className: classNames(styles.grid, styles.gridThree, styles.section), children: [jsxRuntimeExports$1.jsx(PrescriptionFieldCard, { label: labels.sphere, value: eyeInfo.sphere || 0, formatValue: (value) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rubenpazch/prescription-eye-card",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.11",
|
|
4
4
|
"description": "PrescriptionEyeCard component",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@rubenpazch/tokens": "0.5.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@rubenpazch/checkbox-input": "3.
|
|
35
|
+
"@rubenpazch/checkbox-input": "3.4.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@rubenpazch/typescript-config": "3.0.0"
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
},
|
|
43
43
|
"lbyte": {
|
|
44
44
|
"categoria": "salud",
|
|
45
|
-
"resumen": "Datos de un ojo de la receta óptica (PrescriptionEyeCard) y campo individual (PrescriptionFieldCard).",
|
|
45
|
+
"resumen": "OBSOLETO. Datos de un ojo de la receta óptica (PrescriptionEyeCard) y campo individual (PrescriptionFieldCard).",
|
|
46
46
|
"usarCuando": "Mostrar o comparar los valores de un ojo en apps de óptica.",
|
|
47
|
-
"evitarCuando": "Cualquier dato que no sea una receta óptica."
|
|
47
|
+
"evitarCuando": "Siempre en apps nuevas: está obsoleto. Arma la vista con Card, DescriptionList, Badge y Menu. Cualquier dato que no sea una receta óptica."
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "rollup -c",
|