@eka-care/medassist-widget 0.1.84 → 0.1.85
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/dist/{medassist-widget-CardList-DCmadzzk.js → medassist-widget-CardList-BR2hjo_A.js} +11 -11
- package/dist/{medassist-widget-DoctorCard-B9Zb-zvl.js → medassist-widget-DoctorCard-BdLitZW0.js} +152 -139
- package/dist/{medassist-widget-MediaCard-wTRSvQWH.js → medassist-widget-MediaCard-DRUToQV3.js} +1 -1
- package/dist/medassist-widget.js +848 -863
- package/package.json +2 -2
package/dist/{medassist-widget-CardList-DCmadzzk.js → medassist-widget-CardList-BR2hjo_A.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c, u as e, k as M,
|
|
1
|
+
import { c, u as e, k as M, t as b, p as w, r as C, v as z, B as x, s as S, d as $, A as j } from "./medassist-widget.js";
|
|
2
2
|
import { C as A } from "./medassist-widget-check-BaHLRs-2.js";
|
|
3
3
|
import { M as v } from "./medassist-widget-map-pin-Bx-5lPdC.js";
|
|
4
4
|
import { FocusCarousel as I } from "./medassist-widget-FocusCarousel-BsLIZftX.js";
|
|
@@ -97,9 +97,9 @@ function _({
|
|
|
97
97
|
const {
|
|
98
98
|
title: r,
|
|
99
99
|
tags: i,
|
|
100
|
-
icon:
|
|
100
|
+
icon: p,
|
|
101
101
|
img: m,
|
|
102
|
-
description:
|
|
102
|
+
description: h,
|
|
103
103
|
banner_text: u,
|
|
104
104
|
items: n,
|
|
105
105
|
primary_cta: o,
|
|
@@ -113,7 +113,7 @@ function _({
|
|
|
113
113
|
return /* @__PURE__ */ e(S, { className: "w-full h-full flex flex-col overflow-hidden rounded-xl border border-black-200 dark:border-white-200 bg-elicitationBg text-card-foreground shadow-none", children: [
|
|
114
114
|
/* @__PURE__ */ e(M, { className: `flex flex-row items-center justify-between gap-3 p-3 ${g ? "bg-primary/[20%]" : ""}`, children: [
|
|
115
115
|
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1 overflow-hidden", children: [
|
|
116
|
-
r ? /* @__PURE__ */ e(
|
|
116
|
+
r ? /* @__PURE__ */ e(b, { className: "text-base font-bold leading-tight tracking-tight truncate", children: r }) : null,
|
|
117
117
|
i ? /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-muted-foreground truncate", children: i }) : null
|
|
118
118
|
] }),
|
|
119
119
|
g ? /* @__PURE__ */ e("div", { className: "shrink-0", children: /* @__PURE__ */ e(
|
|
@@ -123,10 +123,10 @@ function _({
|
|
|
123
123
|
alt: r ?? "profile",
|
|
124
124
|
className: "h-16 w-16 rounded-full object-cover border-2 border-background"
|
|
125
125
|
}
|
|
126
|
-
) }) :
|
|
126
|
+
) }) : p ? /* @__PURE__ */ e("div", { className: "shrink-0 text-muted-foreground", children: /* @__PURE__ */ e(y, { name: p, size: 24, className: "text-primary" }) }) : null
|
|
127
127
|
] }),
|
|
128
|
-
/* @__PURE__ */ e(
|
|
129
|
-
|
|
128
|
+
/* @__PURE__ */ e(w, { className: "flex-1 space-y-3 pt-3 overflow-hidden", children: [
|
|
129
|
+
h ? /* @__PURE__ */ e("div", { className: "text-sm text-foreground leading-snug prose prose-sm max-w-none prose-strong:font-semibold prose-p:my-0 break-words", children: /* @__PURE__ */ e(C, { children: h }) }) : null,
|
|
130
130
|
u ? /* @__PURE__ */ e("div", { className: "rounded-full px-4 py-2 text-center text-sm font-semibold bg-primary/15 text-primary truncate", children: u }) : null,
|
|
131
131
|
n?.length ? /* @__PURE__ */ e("div", { className: "flex flex-col gap-y-1", children: n.map((a, f) => /* @__PURE__ */ e(
|
|
132
132
|
"div",
|
|
@@ -188,18 +188,18 @@ function W({
|
|
|
188
188
|
className: r,
|
|
189
189
|
orientation: i = "vertical"
|
|
190
190
|
}) {
|
|
191
|
-
const [
|
|
191
|
+
const [p, m] = $(!1), h = j(!1);
|
|
192
192
|
if (!t?.length)
|
|
193
193
|
return /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground py-2", children: "No options available." });
|
|
194
194
|
const u = async (n) => {
|
|
195
|
-
|
|
195
|
+
h.current || (h.current = !0, m(!0), await d?.(n));
|
|
196
196
|
};
|
|
197
197
|
return i !== "horizontal" ? /* @__PURE__ */ e("div", { className: r ?? "flex flex-col gap-3 mt-3", children: t.map((n, o) => /* @__PURE__ */ e(
|
|
198
198
|
_,
|
|
199
199
|
{
|
|
200
200
|
card: n,
|
|
201
201
|
onSelect: u,
|
|
202
|
-
disabled: l ||
|
|
202
|
+
disabled: l || p
|
|
203
203
|
},
|
|
204
204
|
n.card_id || o
|
|
205
205
|
)) }) : /* @__PURE__ */ e(
|
|
@@ -211,7 +211,7 @@ function W({
|
|
|
211
211
|
{
|
|
212
212
|
card: t[n],
|
|
213
213
|
onSelect: u,
|
|
214
|
-
disabled: l ||
|
|
214
|
+
disabled: l || p
|
|
215
215
|
}
|
|
216
216
|
)
|
|
217
217
|
}
|