@natoe/colab 0.1.2 → 0.1.3
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/index.js +242 -86
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +242 -86
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1153,7 +1153,7 @@ var styles = {
|
|
|
1153
1153
|
},
|
|
1154
1154
|
patientName: {
|
|
1155
1155
|
fontWeight: 600,
|
|
1156
|
-
fontSize: "
|
|
1156
|
+
fontSize: "17px",
|
|
1157
1157
|
color: "#111827"
|
|
1158
1158
|
},
|
|
1159
1159
|
secondaryRow: {
|
|
@@ -1163,8 +1163,8 @@ var styles = {
|
|
|
1163
1163
|
alignItems: "center"
|
|
1164
1164
|
},
|
|
1165
1165
|
secondary: {
|
|
1166
|
-
fontSize: "
|
|
1167
|
-
color: "#
|
|
1166
|
+
fontSize: "13px",
|
|
1167
|
+
color: "#4b5563"
|
|
1168
1168
|
},
|
|
1169
1169
|
actions: {
|
|
1170
1170
|
display: "flex",
|
|
@@ -1172,8 +1172,9 @@ var styles = {
|
|
|
1172
1172
|
marginTop: "8px"
|
|
1173
1173
|
},
|
|
1174
1174
|
dicomButton: {
|
|
1175
|
-
|
|
1176
|
-
|
|
1175
|
+
minHeight: "40px",
|
|
1176
|
+
padding: "8px 16px",
|
|
1177
|
+
fontSize: "14px",
|
|
1177
1178
|
fontWeight: 500,
|
|
1178
1179
|
color: "#ffffff",
|
|
1179
1180
|
backgroundColor: "#2563eb",
|
|
@@ -1182,8 +1183,9 @@ var styles = {
|
|
|
1182
1183
|
cursor: "pointer"
|
|
1183
1184
|
},
|
|
1184
1185
|
settingsButton: {
|
|
1185
|
-
|
|
1186
|
-
|
|
1186
|
+
minHeight: "40px",
|
|
1187
|
+
padding: "8px 16px",
|
|
1188
|
+
fontSize: "14px",
|
|
1187
1189
|
fontWeight: 500,
|
|
1188
1190
|
color: "#374151",
|
|
1189
1191
|
backgroundColor: "#ffffff",
|
|
@@ -1424,6 +1426,40 @@ var styles4 = {
|
|
|
1424
1426
|
cursor: "pointer"
|
|
1425
1427
|
}
|
|
1426
1428
|
};
|
|
1429
|
+
function FileIcon({ size = 18, color = "currentColor" }) {
|
|
1430
|
+
return /* @__PURE__ */ jsx(
|
|
1431
|
+
"svg",
|
|
1432
|
+
{
|
|
1433
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1434
|
+
width: size,
|
|
1435
|
+
height: size,
|
|
1436
|
+
viewBox: "0 0 24 24",
|
|
1437
|
+
fill: color,
|
|
1438
|
+
"aria-hidden": "true",
|
|
1439
|
+
children: /* @__PURE__ */ jsx("path", { d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z" })
|
|
1440
|
+
}
|
|
1441
|
+
);
|
|
1442
|
+
}
|
|
1443
|
+
function PinIcon({ size = 14, color = "currentColor" }) {
|
|
1444
|
+
return /* @__PURE__ */ jsx(
|
|
1445
|
+
"svg",
|
|
1446
|
+
{
|
|
1447
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1448
|
+
width: size,
|
|
1449
|
+
height: size,
|
|
1450
|
+
viewBox: "0 0 24 24",
|
|
1451
|
+
fill: color,
|
|
1452
|
+
"aria-hidden": "true",
|
|
1453
|
+
children: /* @__PURE__ */ jsx("path", { d: "M16 9V4l1 0c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1l1 0v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3z" })
|
|
1454
|
+
}
|
|
1455
|
+
);
|
|
1456
|
+
}
|
|
1457
|
+
var ROLE_LABELS = {
|
|
1458
|
+
radiologist: "Radiologist",
|
|
1459
|
+
lab: "Imaging Center",
|
|
1460
|
+
physician: "Physician",
|
|
1461
|
+
admin: "Admin"
|
|
1462
|
+
};
|
|
1427
1463
|
function MessageBubble({
|
|
1428
1464
|
message,
|
|
1429
1465
|
isOwn,
|
|
@@ -1463,7 +1499,10 @@ function MessageBubble({
|
|
|
1463
1499
|
...isOwn ? styles5.ownBubble : styles5.otherBubble
|
|
1464
1500
|
},
|
|
1465
1501
|
children: [
|
|
1466
|
-
message.isPinned && /* @__PURE__ */
|
|
1502
|
+
message.isPinned && /* @__PURE__ */ jsxs("div", { style: styles5.pinnedBadge, children: [
|
|
1503
|
+
/* @__PURE__ */ jsx(PinIcon, { size: 12 }),
|
|
1504
|
+
/* @__PURE__ */ jsx("span", { children: "Pinned" })
|
|
1505
|
+
] }),
|
|
1467
1506
|
message.replyToSnapshot && /* @__PURE__ */ jsx(
|
|
1468
1507
|
ReplyQuoteBlock,
|
|
1469
1508
|
{
|
|
@@ -1558,7 +1597,7 @@ function ImageContent({ mediaUrl, fileName }) {
|
|
|
1558
1597
|
function FileContent({ mediaUrl, fileName }) {
|
|
1559
1598
|
if (!mediaUrl) return null;
|
|
1560
1599
|
return /* @__PURE__ */ jsxs("a", { href: mediaUrl, target: "_blank", rel: "noopener noreferrer", style: styles5.fileLink, children: [
|
|
1561
|
-
/* @__PURE__ */ jsx(
|
|
1600
|
+
/* @__PURE__ */ jsx(FileIcon, { size: 20 }),
|
|
1562
1601
|
/* @__PURE__ */ jsx("span", { style: styles5.fileName, children: fileName || "Download file" })
|
|
1563
1602
|
] });
|
|
1564
1603
|
}
|
|
@@ -1596,7 +1635,7 @@ function RoleBadge({ role }) {
|
|
|
1596
1635
|
physician: "#059669",
|
|
1597
1636
|
admin: "#dc2626"
|
|
1598
1637
|
};
|
|
1599
|
-
return /* @__PURE__ */ jsx("span", { style: { ...styles5.roleBadge, backgroundColor: `${colors[role]}15`, color: colors[role] }, children: role });
|
|
1638
|
+
return /* @__PURE__ */ jsx("span", { style: { ...styles5.roleBadge, backgroundColor: `${colors[role]}15`, color: colors[role] }, children: ROLE_LABELS[role] ?? role });
|
|
1600
1639
|
}
|
|
1601
1640
|
function formatTime(iso) {
|
|
1602
1641
|
try {
|
|
@@ -1625,7 +1664,7 @@ var styles5 = {
|
|
|
1625
1664
|
maxWidth: "75%"
|
|
1626
1665
|
},
|
|
1627
1666
|
bubble: {
|
|
1628
|
-
padding: "
|
|
1667
|
+
padding: "10px 14px",
|
|
1629
1668
|
borderRadius: "12px",
|
|
1630
1669
|
wordBreak: "break-word"
|
|
1631
1670
|
},
|
|
@@ -1640,11 +1679,13 @@ var styles5 = {
|
|
|
1640
1679
|
borderBottomLeftRadius: "4px"
|
|
1641
1680
|
},
|
|
1642
1681
|
pinnedBadge: {
|
|
1643
|
-
display: "inline-
|
|
1644
|
-
|
|
1682
|
+
display: "inline-flex",
|
|
1683
|
+
alignItems: "center",
|
|
1684
|
+
gap: "4px",
|
|
1685
|
+
fontSize: "12px",
|
|
1645
1686
|
fontWeight: 600,
|
|
1646
1687
|
marginBottom: "4px",
|
|
1647
|
-
|
|
1688
|
+
color: "#6b7280"
|
|
1648
1689
|
},
|
|
1649
1690
|
senderRow: {
|
|
1650
1691
|
display: "flex",
|
|
@@ -1653,24 +1694,25 @@ var styles5 = {
|
|
|
1653
1694
|
marginBottom: "4px"
|
|
1654
1695
|
},
|
|
1655
1696
|
senderName: {
|
|
1656
|
-
fontSize: "
|
|
1697
|
+
fontSize: "13px",
|
|
1657
1698
|
fontWeight: 600,
|
|
1658
1699
|
color: "#374151"
|
|
1659
1700
|
},
|
|
1660
1701
|
roleBadge: {
|
|
1661
|
-
fontSize: "
|
|
1662
|
-
fontWeight:
|
|
1663
|
-
padding: "
|
|
1702
|
+
fontSize: "11px",
|
|
1703
|
+
fontWeight: 600,
|
|
1704
|
+
padding: "2px 8px",
|
|
1664
1705
|
borderRadius: "4px"
|
|
1665
1706
|
},
|
|
1666
1707
|
textBody: {
|
|
1667
1708
|
margin: 0,
|
|
1668
|
-
fontSize: "
|
|
1669
|
-
lineHeight: "1.
|
|
1709
|
+
fontSize: "15px",
|
|
1710
|
+
lineHeight: "1.45"
|
|
1670
1711
|
},
|
|
1671
1712
|
timestamp: {
|
|
1672
|
-
fontSize: "
|
|
1673
|
-
|
|
1713
|
+
fontSize: "12px",
|
|
1714
|
+
color: "inherit",
|
|
1715
|
+
opacity: 0.8,
|
|
1674
1716
|
marginTop: "4px",
|
|
1675
1717
|
textAlign: "right"
|
|
1676
1718
|
},
|
|
@@ -1709,9 +1751,6 @@ var styles5 = {
|
|
|
1709
1751
|
color: "inherit",
|
|
1710
1752
|
padding: "6px 0"
|
|
1711
1753
|
},
|
|
1712
|
-
fileIcon: {
|
|
1713
|
-
fontSize: "18px"
|
|
1714
|
-
},
|
|
1715
1754
|
fileName: {
|
|
1716
1755
|
fontSize: "13px",
|
|
1717
1756
|
textDecoration: "underline"
|
|
@@ -1746,13 +1785,13 @@ var styles5 = {
|
|
|
1746
1785
|
justifyContent: "center",
|
|
1747
1786
|
alignItems: "center",
|
|
1748
1787
|
gap: "8px",
|
|
1749
|
-
padding: "
|
|
1750
|
-
fontSize: "
|
|
1751
|
-
color: "#
|
|
1788
|
+
padding: "6px 16px",
|
|
1789
|
+
fontSize: "13px",
|
|
1790
|
+
color: "#6b7280"
|
|
1752
1791
|
},
|
|
1753
1792
|
systemTime: {
|
|
1754
|
-
fontSize: "
|
|
1755
|
-
color: "#
|
|
1793
|
+
fontSize: "12px",
|
|
1794
|
+
color: "#9ca3af"
|
|
1756
1795
|
}
|
|
1757
1796
|
};
|
|
1758
1797
|
|
|
@@ -1965,18 +2004,19 @@ var styles6 = {
|
|
|
1965
2004
|
loadingMore: {
|
|
1966
2005
|
textAlign: "center",
|
|
1967
2006
|
padding: "12px",
|
|
1968
|
-
fontSize: "
|
|
1969
|
-
color: "#
|
|
2007
|
+
fontSize: "14px",
|
|
2008
|
+
color: "#6b7280"
|
|
1970
2009
|
},
|
|
1971
2010
|
loadMoreButton: {
|
|
1972
2011
|
display: "block",
|
|
1973
2012
|
margin: "0 auto 12px",
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
2013
|
+
minHeight: "36px",
|
|
2014
|
+
padding: "8px 18px",
|
|
2015
|
+
fontSize: "13px",
|
|
2016
|
+
color: "#374151",
|
|
1977
2017
|
backgroundColor: "transparent",
|
|
1978
|
-
border: "1px solid #
|
|
1979
|
-
borderRadius: "
|
|
2018
|
+
border: "1px solid #d1d5db",
|
|
2019
|
+
borderRadius: "18px",
|
|
1980
2020
|
cursor: "pointer"
|
|
1981
2021
|
},
|
|
1982
2022
|
empty: {
|
|
@@ -1985,21 +2025,22 @@ var styles6 = {
|
|
|
1985
2025
|
alignItems: "center",
|
|
1986
2026
|
justifyContent: "center",
|
|
1987
2027
|
padding: "48px 16px",
|
|
1988
|
-
color: "#
|
|
2028
|
+
color: "#6b7280"
|
|
1989
2029
|
},
|
|
1990
2030
|
emptyTitle: {
|
|
1991
|
-
fontSize: "
|
|
1992
|
-
fontWeight:
|
|
2031
|
+
fontSize: "16px",
|
|
2032
|
+
fontWeight: 600,
|
|
2033
|
+
color: "#374151",
|
|
1993
2034
|
margin: "0 0 4px"
|
|
1994
2035
|
},
|
|
1995
2036
|
emptySubtitle: {
|
|
1996
|
-
fontSize: "
|
|
2037
|
+
fontSize: "14px",
|
|
1997
2038
|
margin: 0
|
|
1998
2039
|
},
|
|
1999
2040
|
typingIndicator: {
|
|
2000
2041
|
padding: "4px 16px 8px",
|
|
2001
|
-
fontSize: "
|
|
2002
|
-
color: "#
|
|
2042
|
+
fontSize: "13px",
|
|
2043
|
+
color: "#6b7280",
|
|
2003
2044
|
fontStyle: "italic"
|
|
2004
2045
|
},
|
|
2005
2046
|
dayDivider: {
|
|
@@ -2009,12 +2050,11 @@ var styles6 = {
|
|
|
2009
2050
|
},
|
|
2010
2051
|
dayDividerPill: {
|
|
2011
2052
|
display: "inline-block",
|
|
2012
|
-
padding: "
|
|
2013
|
-
fontSize: "
|
|
2053
|
+
padding: "5px 14px",
|
|
2054
|
+
fontSize: "13px",
|
|
2014
2055
|
fontWeight: 500,
|
|
2015
|
-
color: "#
|
|
2016
|
-
backgroundColor: "#
|
|
2017
|
-
border: "1px solid #e2e8f0",
|
|
2056
|
+
color: "#334155",
|
|
2057
|
+
backgroundColor: "#e2e8f0",
|
|
2018
2058
|
borderRadius: "12px",
|
|
2019
2059
|
letterSpacing: "0.2px"
|
|
2020
2060
|
}
|
|
@@ -2111,6 +2151,48 @@ var styles7 = {
|
|
|
2111
2151
|
flexShrink: 0
|
|
2112
2152
|
}
|
|
2113
2153
|
};
|
|
2154
|
+
function AttachIcon({ size = 20, color = "currentColor" }) {
|
|
2155
|
+
return /* @__PURE__ */ jsx(
|
|
2156
|
+
"svg",
|
|
2157
|
+
{
|
|
2158
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2159
|
+
width: size,
|
|
2160
|
+
height: size,
|
|
2161
|
+
viewBox: "0 0 24 24",
|
|
2162
|
+
fill: color,
|
|
2163
|
+
"aria-hidden": "true",
|
|
2164
|
+
children: /* @__PURE__ */ jsx("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z" })
|
|
2165
|
+
}
|
|
2166
|
+
);
|
|
2167
|
+
}
|
|
2168
|
+
function SendIcon({ size = 20, color = "currentColor" }) {
|
|
2169
|
+
return /* @__PURE__ */ jsx(
|
|
2170
|
+
"svg",
|
|
2171
|
+
{
|
|
2172
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2173
|
+
width: size,
|
|
2174
|
+
height: size,
|
|
2175
|
+
viewBox: "0 0 24 24",
|
|
2176
|
+
fill: color,
|
|
2177
|
+
"aria-hidden": "true",
|
|
2178
|
+
children: /* @__PURE__ */ jsx("path", { d: "M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" })
|
|
2179
|
+
}
|
|
2180
|
+
);
|
|
2181
|
+
}
|
|
2182
|
+
function CloseIcon({ size = 18, color = "currentColor" }) {
|
|
2183
|
+
return /* @__PURE__ */ jsx(
|
|
2184
|
+
"svg",
|
|
2185
|
+
{
|
|
2186
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2187
|
+
width: size,
|
|
2188
|
+
height: size,
|
|
2189
|
+
viewBox: "0 0 24 24",
|
|
2190
|
+
fill: color,
|
|
2191
|
+
"aria-hidden": "true",
|
|
2192
|
+
children: /* @__PURE__ */ jsx("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
|
|
2193
|
+
}
|
|
2194
|
+
);
|
|
2195
|
+
}
|
|
2114
2196
|
function MessageInput({
|
|
2115
2197
|
onSendText,
|
|
2116
2198
|
// MIC DISABLED — onSendAudio still accepted but unused.
|
|
@@ -2199,7 +2281,19 @@ function MessageInput({
|
|
|
2199
2281
|
);
|
|
2200
2282
|
return /* @__PURE__ */ jsxs("div", { className, style: styles8.container, children: [
|
|
2201
2283
|
replyTo && onCancelReply && /* @__PURE__ */ jsx(ReplyPreview, { message: replyTo, onCancel: onCancelReply }),
|
|
2202
|
-
fileError && /* @__PURE__ */
|
|
2284
|
+
fileError && /* @__PURE__ */ jsxs("div", { style: styles8.error, role: "alert", children: [
|
|
2285
|
+
/* @__PURE__ */ jsx("span", { style: styles8.errorText, children: fileError }),
|
|
2286
|
+
/* @__PURE__ */ jsx(
|
|
2287
|
+
"button",
|
|
2288
|
+
{
|
|
2289
|
+
type: "button",
|
|
2290
|
+
onClick: () => setFileError(null),
|
|
2291
|
+
"aria-label": "Dismiss error",
|
|
2292
|
+
style: styles8.errorDismiss,
|
|
2293
|
+
children: /* @__PURE__ */ jsx(CloseIcon, { size: 16 })
|
|
2294
|
+
}
|
|
2295
|
+
)
|
|
2296
|
+
] }),
|
|
2203
2297
|
/* @__PURE__ */ jsxs("div", { style: styles8.inputBar, children: [
|
|
2204
2298
|
/* @__PURE__ */ jsx(
|
|
2205
2299
|
"button",
|
|
@@ -2207,9 +2301,10 @@ function MessageInput({
|
|
|
2207
2301
|
onClick: () => fileInputRef.current?.click(),
|
|
2208
2302
|
disabled: disabled || isSending,
|
|
2209
2303
|
style: styles8.iconButton,
|
|
2304
|
+
"aria-label": "Attach file",
|
|
2210
2305
|
title: "Attach file",
|
|
2211
2306
|
type: "button",
|
|
2212
|
-
children: "
|
|
2307
|
+
children: /* @__PURE__ */ jsx(AttachIcon, { size: 22, color: "#374151" })
|
|
2213
2308
|
}
|
|
2214
2309
|
),
|
|
2215
2310
|
/* @__PURE__ */ jsx(
|
|
@@ -2242,12 +2337,14 @@ function MessageInput({
|
|
|
2242
2337
|
{
|
|
2243
2338
|
onClick: handleSendText,
|
|
2244
2339
|
disabled: disabled || isSending || !text.trim(),
|
|
2340
|
+
"aria-label": "Send message",
|
|
2341
|
+
title: "Send message",
|
|
2245
2342
|
style: {
|
|
2246
2343
|
...styles8.sendButton,
|
|
2247
2344
|
opacity: text.trim() ? 1 : 0.4
|
|
2248
2345
|
},
|
|
2249
2346
|
type: "button",
|
|
2250
|
-
children: "
|
|
2347
|
+
children: /* @__PURE__ */ jsx(SendIcon, { size: 20, color: "#ffffff" })
|
|
2251
2348
|
}
|
|
2252
2349
|
)
|
|
2253
2350
|
] })
|
|
@@ -2259,24 +2356,45 @@ var styles8 = {
|
|
|
2259
2356
|
backgroundColor: "#ffffff"
|
|
2260
2357
|
},
|
|
2261
2358
|
error: {
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2359
|
+
display: "flex",
|
|
2360
|
+
alignItems: "center",
|
|
2361
|
+
justifyContent: "space-between",
|
|
2362
|
+
gap: "8px",
|
|
2363
|
+
padding: "8px 12px 8px 16px",
|
|
2364
|
+
fontSize: "13px",
|
|
2365
|
+
color: "#b91c1c",
|
|
2366
|
+
backgroundColor: "#fef2f2",
|
|
2367
|
+
borderTop: "1px solid #fecaca"
|
|
2368
|
+
},
|
|
2369
|
+
errorText: {
|
|
2370
|
+
flex: 1,
|
|
2371
|
+
minWidth: 0
|
|
2372
|
+
},
|
|
2373
|
+
errorDismiss: {
|
|
2374
|
+
width: "28px",
|
|
2375
|
+
height: "28px",
|
|
2376
|
+
display: "flex",
|
|
2377
|
+
alignItems: "center",
|
|
2378
|
+
justifyContent: "center",
|
|
2379
|
+
backgroundColor: "transparent",
|
|
2380
|
+
border: "none",
|
|
2381
|
+
color: "#b91c1c",
|
|
2382
|
+
borderRadius: "4px",
|
|
2383
|
+
cursor: "pointer",
|
|
2384
|
+
flexShrink: 0
|
|
2266
2385
|
},
|
|
2267
2386
|
inputBar: {
|
|
2268
2387
|
display: "flex",
|
|
2269
2388
|
alignItems: "flex-end",
|
|
2270
|
-
gap: "
|
|
2271
|
-
padding: "
|
|
2389
|
+
gap: "6px",
|
|
2390
|
+
padding: "10px 12px"
|
|
2272
2391
|
},
|
|
2273
2392
|
iconButton: {
|
|
2274
|
-
width: "
|
|
2275
|
-
height: "
|
|
2393
|
+
width: "44px",
|
|
2394
|
+
height: "44px",
|
|
2276
2395
|
display: "flex",
|
|
2277
2396
|
alignItems: "center",
|
|
2278
2397
|
justifyContent: "center",
|
|
2279
|
-
fontSize: "18px",
|
|
2280
2398
|
backgroundColor: "transparent",
|
|
2281
2399
|
border: "none",
|
|
2282
2400
|
borderRadius: "50%",
|
|
@@ -2285,23 +2403,23 @@ var styles8 = {
|
|
|
2285
2403
|
},
|
|
2286
2404
|
textarea: {
|
|
2287
2405
|
flex: 1,
|
|
2288
|
-
padding: "
|
|
2289
|
-
fontSize: "
|
|
2290
|
-
lineHeight: "1.
|
|
2291
|
-
border: "1px solid #
|
|
2292
|
-
borderRadius: "
|
|
2406
|
+
padding: "10px 14px",
|
|
2407
|
+
fontSize: "15px",
|
|
2408
|
+
lineHeight: "1.45",
|
|
2409
|
+
border: "1px solid #d1d5db",
|
|
2410
|
+
borderRadius: "22px",
|
|
2293
2411
|
resize: "none",
|
|
2294
2412
|
outline: "none",
|
|
2295
2413
|
fontFamily: "inherit",
|
|
2296
|
-
maxHeight: "120px"
|
|
2414
|
+
maxHeight: "120px",
|
|
2415
|
+
minHeight: "44px"
|
|
2297
2416
|
},
|
|
2298
2417
|
sendButton: {
|
|
2299
|
-
width: "
|
|
2300
|
-
height: "
|
|
2418
|
+
width: "44px",
|
|
2419
|
+
height: "44px",
|
|
2301
2420
|
display: "flex",
|
|
2302
2421
|
alignItems: "center",
|
|
2303
2422
|
justifyContent: "center",
|
|
2304
|
-
fontSize: "18px",
|
|
2305
2423
|
backgroundColor: "#2563eb",
|
|
2306
2424
|
color: "#ffffff",
|
|
2307
2425
|
border: "none",
|
|
@@ -3092,6 +3210,34 @@ var panelStyles = {
|
|
|
3092
3210
|
margin: 0
|
|
3093
3211
|
}
|
|
3094
3212
|
};
|
|
3213
|
+
function MinimizeIcon({ size = 18, color = "currentColor" }) {
|
|
3214
|
+
return /* @__PURE__ */ jsx(
|
|
3215
|
+
"svg",
|
|
3216
|
+
{
|
|
3217
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3218
|
+
width: size,
|
|
3219
|
+
height: size,
|
|
3220
|
+
viewBox: "0 0 24 24",
|
|
3221
|
+
fill: color,
|
|
3222
|
+
"aria-hidden": "true",
|
|
3223
|
+
children: /* @__PURE__ */ jsx("path", { d: "M6 19h12v2H6z" })
|
|
3224
|
+
}
|
|
3225
|
+
);
|
|
3226
|
+
}
|
|
3227
|
+
function ExpandIcon({ size = 18, color = "currentColor" }) {
|
|
3228
|
+
return /* @__PURE__ */ jsx(
|
|
3229
|
+
"svg",
|
|
3230
|
+
{
|
|
3231
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3232
|
+
width: size,
|
|
3233
|
+
height: size,
|
|
3234
|
+
viewBox: "0 0 24 24",
|
|
3235
|
+
fill: color,
|
|
3236
|
+
"aria-hidden": "true",
|
|
3237
|
+
children: /* @__PURE__ */ jsx("path", { d: "M4 4h16v16H4V4zm2 4v10h12V8H6z" })
|
|
3238
|
+
}
|
|
3239
|
+
);
|
|
3240
|
+
}
|
|
3095
3241
|
function CollabPopup({
|
|
3096
3242
|
orderId,
|
|
3097
3243
|
patientData,
|
|
@@ -3140,7 +3286,7 @@ function CollabPopup({
|
|
|
3140
3286
|
const handleMouseMove = (e) => {
|
|
3141
3287
|
setPosition({
|
|
3142
3288
|
x: Math.max(0, Math.min(e.clientX - dragOffset.current.x, window.innerWidth - width)),
|
|
3143
|
-
y: Math.max(0, Math.min(e.clientY - dragOffset.current.y, window.innerHeight - (isMinimized ?
|
|
3289
|
+
y: Math.max(0, Math.min(e.clientY - dragOffset.current.y, window.innerHeight - (isMinimized ? 52 : height)))
|
|
3144
3290
|
});
|
|
3145
3291
|
};
|
|
3146
3292
|
const handleMouseUp = () => {
|
|
@@ -3164,7 +3310,7 @@ function CollabPopup({
|
|
|
3164
3310
|
left: position.x,
|
|
3165
3311
|
top: position.y,
|
|
3166
3312
|
width,
|
|
3167
|
-
height: isMinimized ?
|
|
3313
|
+
height: isMinimized ? 52 : height,
|
|
3168
3314
|
cursor: isDragging ? "grabbing" : "default"
|
|
3169
3315
|
},
|
|
3170
3316
|
onMouseDown: handleMouseDown,
|
|
@@ -3177,12 +3323,23 @@ function CollabPopup({
|
|
|
3177
3323
|
{
|
|
3178
3324
|
onClick: () => setIsMinimized(!isMinimized),
|
|
3179
3325
|
style: styles12.titleButton,
|
|
3326
|
+
"aria-label": isMinimized ? "Expand chat" : "Minimize chat",
|
|
3180
3327
|
title: isMinimized ? "Expand" : "Minimize",
|
|
3181
3328
|
type: "button",
|
|
3182
|
-
children: isMinimized ? "
|
|
3329
|
+
children: isMinimized ? /* @__PURE__ */ jsx(ExpandIcon, { size: 16, color: "#cbd5e1" }) : /* @__PURE__ */ jsx(MinimizeIcon, { size: 16, color: "#cbd5e1" })
|
|
3183
3330
|
}
|
|
3184
3331
|
),
|
|
3185
|
-
/* @__PURE__ */ jsx(
|
|
3332
|
+
/* @__PURE__ */ jsx(
|
|
3333
|
+
"button",
|
|
3334
|
+
{
|
|
3335
|
+
onClick: onClose,
|
|
3336
|
+
style: styles12.titleButton,
|
|
3337
|
+
"aria-label": "Close chat",
|
|
3338
|
+
title: "Close",
|
|
3339
|
+
type: "button",
|
|
3340
|
+
children: /* @__PURE__ */ jsx(CloseIcon, { size: 16, color: "#cbd5e1" })
|
|
3341
|
+
}
|
|
3342
|
+
)
|
|
3186
3343
|
] })
|
|
3187
3344
|
] }),
|
|
3188
3345
|
!isMinimized && /* @__PURE__ */ jsx("div", { style: styles12.panelWrapper, children: /* @__PURE__ */ jsx(CollabPanel, { orderId, patientData, participantIds }) })
|
|
@@ -3207,15 +3364,15 @@ var styles12 = {
|
|
|
3207
3364
|
display: "flex",
|
|
3208
3365
|
justifyContent: "space-between",
|
|
3209
3366
|
alignItems: "center",
|
|
3210
|
-
padding: "0
|
|
3211
|
-
height: "
|
|
3367
|
+
padding: "0 8px 0 14px",
|
|
3368
|
+
height: "52px",
|
|
3212
3369
|
backgroundColor: "#1e293b",
|
|
3213
3370
|
cursor: "grab",
|
|
3214
3371
|
userSelect: "none",
|
|
3215
3372
|
flexShrink: 0
|
|
3216
3373
|
},
|
|
3217
3374
|
titleText: {
|
|
3218
|
-
fontSize: "
|
|
3375
|
+
fontSize: "15px",
|
|
3219
3376
|
fontWeight: 500,
|
|
3220
3377
|
color: "#ffffff",
|
|
3221
3378
|
overflow: "hidden",
|
|
@@ -3228,17 +3385,16 @@ var styles12 = {
|
|
|
3228
3385
|
flexShrink: 0
|
|
3229
3386
|
},
|
|
3230
3387
|
titleButton: {
|
|
3231
|
-
width: "
|
|
3232
|
-
height: "
|
|
3388
|
+
width: "40px",
|
|
3389
|
+
height: "40px",
|
|
3233
3390
|
display: "flex",
|
|
3234
3391
|
alignItems: "center",
|
|
3235
3392
|
justifyContent: "center",
|
|
3236
3393
|
backgroundColor: "transparent",
|
|
3237
3394
|
border: "none",
|
|
3238
|
-
borderRadius: "
|
|
3395
|
+
borderRadius: "6px",
|
|
3239
3396
|
cursor: "pointer",
|
|
3240
|
-
|
|
3241
|
-
color: "#94a3b8"
|
|
3397
|
+
color: "#cbd5e1"
|
|
3242
3398
|
},
|
|
3243
3399
|
panelWrapper: {
|
|
3244
3400
|
flex: 1,
|
|
@@ -4109,7 +4265,7 @@ var styles14 = {
|
|
|
4109
4265
|
gap: "8px"
|
|
4110
4266
|
},
|
|
4111
4267
|
name: {
|
|
4112
|
-
fontSize: "
|
|
4268
|
+
fontSize: "15px",
|
|
4113
4269
|
fontWeight: 500,
|
|
4114
4270
|
color: "#111827",
|
|
4115
4271
|
overflow: "hidden",
|
|
@@ -4122,8 +4278,8 @@ var styles14 = {
|
|
|
4122
4278
|
fontWeight: 700
|
|
4123
4279
|
},
|
|
4124
4280
|
time: {
|
|
4125
|
-
fontSize: "
|
|
4126
|
-
color: "#
|
|
4281
|
+
fontSize: "12px",
|
|
4282
|
+
color: "#6b7280",
|
|
4127
4283
|
flexShrink: 0
|
|
4128
4284
|
},
|
|
4129
4285
|
timeUnread: {
|
|
@@ -4137,8 +4293,8 @@ var styles14 = {
|
|
|
4137
4293
|
gap: "8px"
|
|
4138
4294
|
},
|
|
4139
4295
|
preview: {
|
|
4140
|
-
fontSize: "
|
|
4141
|
-
color: "#
|
|
4296
|
+
fontSize: "14px",
|
|
4297
|
+
color: "#4b5563",
|
|
4142
4298
|
overflow: "hidden",
|
|
4143
4299
|
textOverflow: "ellipsis",
|
|
4144
4300
|
whiteSpace: "nowrap",
|