osocna-react-tailwind 0.1.22 → 0.1.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 (2) hide show
  1. package/dist/index.js +49 -49
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -16,55 +16,7 @@ const Yt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArwAAAVsCAYAAADaI07iAA
16
16
  let v = [];
17
17
  e?.membership?.origin?.id === 97 ? v = [`url(${mt})`] : e?.membership?.origin?.id === 9 ? (v = [`url(${yt})`], (e?.membership?.credential?.plan === "TOTAL" || e?.membership?.credential?.plan === "GLOBAL") && v.push(`url(${Mt})`, `url(${Rt})`)) : v = [`url(${Wt})`], A(v);
18
18
  };
19
- return e?.membership?.origin?.id !== 99 && e?.membership?.origin?.id !== 100 ? /* @__PURE__ */ G(
20
- "div",
21
- {
22
- className: `
23
- flex flex-col justify-between items-center ml-auto mr-auto mb-5 rounded-lg`,
24
- style: {
25
- backgroundImage: e?.membership?.origin?.id === 9 ? "none" : `url(${Yt})`,
26
- backgroundRepeat: "no-repeat",
27
- backgroundSize: "contain",
28
- backgroundPosition: "right center",
29
- backgroundColor: e?.membership?.origin?.id === 9 ? "#e6e7e9" : "#3f475e",
30
- boxShadow: "0px 2px 3px #0005",
31
- width: "100%",
32
- maxWidth: "420px",
33
- height: "290px",
34
- padding: "10px"
35
- },
36
- children: [
37
- /* @__PURE__ */ u("div", { className: "w-full flex justify-center items-center", children: t.map(
38
- (v, n) => /* @__PURE__ */ u(
39
- "div",
40
- {
41
- className: "ml-auto mr-auto ",
42
- style: {
43
- paddingTop: "10px",
44
- backgroundImage: v,
45
- width: t.length > 1 ? "120px" : "250px",
46
- height: "100px",
47
- backgroundSize: "contain",
48
- backgroundPosition: "center",
49
- backgroundRepeat: "no-repeat"
50
- }
51
- },
52
- n
53
- )
54
- ) }),
55
- /* @__PURE__ */ G("div", { className: `flex flex-col items-center mb-3 text-${e?.membership?.origin?.id === 9 ? "black" : "white"}`, children: [
56
- /* @__PURE__ */ u("p", { className: "text-center text-textPrimary font-bold", style: { fontSize: "clamp(20px, 2vw, 22px)" }, children: e?.name?.toLocaleUpperCase() || "" }),
57
- /* @__PURE__ */ u("p", { className: "text-center text-textSecondary font-bold", style: { whiteSpace: "nowrap", fontSize: "clamp(20px, 2vw, 22px)" }, children: e?.membership?.credential?.number || 0 }),
58
- /* @__PURE__ */ u("div", { className: "flex justify-center", children: e.membership?.origin?.id === 9 ? e.membership?.credential?.plan?.toUpperCase() === "INTEGRAL" ? /* @__PURE__ */ u("p", { style: { color: "white", backgroundColor: "red", borderRadius: "15px", marginLeft: "auto", marginRight: "auto", textAlign: "center", width: "100px", fontSize: "10px", padding: "2px", marginTop: "4px" }, children: "INTEGRAL" }) : e.membership?.credential?.plan?.toUpperCase() === "GLOBAL" ? /* @__PURE__ */ u("p", { style: { color: "white", backgroundColor: "red", borderRadius: "15px", marginLeft: "auto", marginRight: "auto", textAlign: "center", width: "100px", fontSize: "10px", padding: "2px", marginTop: "4px" }, children: "GLOBAL" }) : /* @__PURE__ */ u("p", { style: { color: "white", backgroundColor: "red", borderRadius: "15px", marginLeft: "auto", marginRight: "auto", textAlign: "center", width: "100px", fontSize: "10px", padding: "2px", marginTop: "4px" }, children: "TOTAL" }) : null }),
59
- /* @__PURE__ */ u("p", { className: "text-center text-textSecondary mt-2 h-[12px]", style: { whiteSpace: "nowrap", fontSize: "clamp(12px, 1.5vw, 12px)" }, children: e?.membership?.credential?.observation || "" })
60
- ] }),
61
- /* @__PURE__ */ G("div", { className: `text-center text-${e?.membership?.origin?.id === 9 ? "black" : "white"}`, children: [
62
- /* @__PURE__ */ u("p", { style: { width: "90%", whiteSpace: "nowrap", fontSize: "clamp(8px, 1.5vw, 10px)" }, children: "Superintendencia de Servicios de Salud - Órgano de Control" }),
63
- /* @__PURE__ */ u("p", { style: { width: "100%", whiteSpace: "nowrap", fontSize: "clamp(8px, 1.5vw, 10px)" }, children: "0800-222-SALUD(72583) - www.sssalud.gov.ar" })
64
- ] })
65
- ]
66
- }
67
- ) : /* @__PURE__ */ G(
19
+ return e?.membership?.familyGroup?.plan?.name === "Aqualis360" || e?.membership?.familyGroup?.plan?.name === "AqualisGO" ? /* @__PURE__ */ G(
68
20
  "div",
69
21
  {
70
22
  className: `
@@ -133,6 +85,54 @@ const Yt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArwAAAVsCAYAAADaI07iAA
133
85
  ] })
134
86
  ]
135
87
  }
88
+ ) : /* @__PURE__ */ G(
89
+ "div",
90
+ {
91
+ className: `
92
+ flex flex-col justify-between items-center ml-auto mr-auto mb-5 rounded-lg`,
93
+ style: {
94
+ backgroundImage: e?.membership?.origin?.id === 9 ? "none" : `url(${Yt})`,
95
+ backgroundRepeat: "no-repeat",
96
+ backgroundSize: "contain",
97
+ backgroundPosition: "right center",
98
+ backgroundColor: e?.membership?.origin?.id === 9 ? "#e6e7e9" : "#3f475e",
99
+ boxShadow: "0px 2px 3px #0005",
100
+ width: "100%",
101
+ maxWidth: "420px",
102
+ height: "290px",
103
+ padding: "10px"
104
+ },
105
+ children: [
106
+ /* @__PURE__ */ u("div", { className: "w-full flex justify-center items-center", children: t.map(
107
+ (v, n) => /* @__PURE__ */ u(
108
+ "div",
109
+ {
110
+ className: "ml-auto mr-auto ",
111
+ style: {
112
+ paddingTop: "10px",
113
+ backgroundImage: v,
114
+ width: t.length > 1 ? "120px" : "250px",
115
+ height: "100px",
116
+ backgroundSize: "contain",
117
+ backgroundPosition: "center",
118
+ backgroundRepeat: "no-repeat"
119
+ }
120
+ },
121
+ n
122
+ )
123
+ ) }),
124
+ /* @__PURE__ */ G("div", { className: `flex flex-col items-center mb-3 text-${e?.membership?.origin?.id === 9 ? "black" : "white"}`, children: [
125
+ /* @__PURE__ */ u("p", { className: "text-center text-textPrimary font-bold", style: { fontSize: "clamp(20px, 2vw, 22px)" }, children: e?.name?.toLocaleUpperCase() || "" }),
126
+ /* @__PURE__ */ u("p", { className: "text-center text-textSecondary font-bold", style: { whiteSpace: "nowrap", fontSize: "clamp(20px, 2vw, 22px)" }, children: e?.membership?.credential?.number || 0 }),
127
+ /* @__PURE__ */ u("div", { className: "flex justify-center", children: e.membership?.origin?.id === 9 ? e.membership?.credential?.plan?.toUpperCase() === "INTEGRAL" ? /* @__PURE__ */ u("p", { style: { color: "white", backgroundColor: "red", borderRadius: "15px", marginLeft: "auto", marginRight: "auto", textAlign: "center", width: "100px", fontSize: "10px", padding: "2px", marginTop: "4px" }, children: "INTEGRAL" }) : e.membership?.credential?.plan?.toUpperCase() === "GLOBAL" ? /* @__PURE__ */ u("p", { style: { color: "white", backgroundColor: "red", borderRadius: "15px", marginLeft: "auto", marginRight: "auto", textAlign: "center", width: "100px", fontSize: "10px", padding: "2px", marginTop: "4px" }, children: "GLOBAL" }) : /* @__PURE__ */ u("p", { style: { color: "white", backgroundColor: "red", borderRadius: "15px", marginLeft: "auto", marginRight: "auto", textAlign: "center", width: "100px", fontSize: "10px", padding: "2px", marginTop: "4px" }, children: "TOTAL" }) : null }),
128
+ /* @__PURE__ */ u("p", { className: "text-center text-textSecondary mt-2 h-[12px]", style: { whiteSpace: "nowrap", fontSize: "clamp(12px, 1.5vw, 12px)" }, children: e?.membership?.credential?.observation || "" })
129
+ ] }),
130
+ /* @__PURE__ */ G("div", { className: `text-center text-${e?.membership?.origin?.id === 9 ? "black" : "white"}`, children: [
131
+ /* @__PURE__ */ u("p", { style: { width: "90%", whiteSpace: "nowrap", fontSize: "clamp(8px, 1.5vw, 10px)" }, children: "Superintendencia de Servicios de Salud - Órgano de Control" }),
132
+ /* @__PURE__ */ u("p", { style: { width: "100%", whiteSpace: "nowrap", fontSize: "clamp(8px, 1.5vw, 10px)" }, children: "0800-222-SALUD(72583) - www.sssalud.gov.ar" })
133
+ ] })
134
+ ]
135
+ }
136
136
  );
137
137
  }, Rr = ({ persona: e, foto: t }) => /* @__PURE__ */ G(
138
138
  "div",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osocna-react-tailwind",
3
- "version": "0.1.22",
3
+ "version": "0.1.26",
4
4
  "description": "A React component library built with Tailwind CSS v4",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",