@ethora/chat-component 25.10.4 → 25.10.5
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/main.js +17 -6
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -13833,7 +13833,9 @@ const TT = L.div`
|
|
|
13833
13833
|
line-height: 20px;
|
|
13834
13834
|
font-size: inherit;
|
|
13835
13835
|
font-family: inherit;
|
|
13836
|
-
|
|
13836
|
+
/* Never show scrollbar for a single line (<= 40px) */
|
|
13837
|
+
overflow-x: hidden;
|
|
13838
|
+
overflow-y: ${(e) => e.dynamicHeight && e.dynamicHeight > 40 ? "auto" : "hidden"};
|
|
13837
13839
|
resize: none;
|
|
13838
13840
|
box-sizing: border-box;
|
|
13839
13841
|
transition: height 0.2s ease-in-out;
|
|
@@ -13844,7 +13846,7 @@ const TT = L.div`
|
|
|
13844
13846
|
|
|
13845
13847
|
/* Custom scrollbar styling for WebKit browsers (Chrome, Safari, Edge) */
|
|
13846
13848
|
&::-webkit-scrollbar {
|
|
13847
|
-
width: 2px;
|
|
13849
|
+
width: ${(e) => e.dynamicHeight && e.dynamicHeight > 40 ? "2px" : "0"};
|
|
13848
13850
|
}
|
|
13849
13851
|
|
|
13850
13852
|
&::-webkit-scrollbar-track {
|
|
@@ -13866,8 +13868,8 @@ const TT = L.div`
|
|
|
13866
13868
|
}
|
|
13867
13869
|
|
|
13868
13870
|
/* Firefox scrollbar styling */
|
|
13869
|
-
scrollbar-width: thin;
|
|
13870
|
-
scrollbar-color: ${(e) => e.color ? e.color : "#0052CD"} transparent;
|
|
13871
|
+
scrollbar-width: ${(e) => e.dynamicHeight && e.dynamicHeight > 40 ? "thin" : "none"};
|
|
13872
|
+
scrollbar-color: ${(e) => e.dynamicHeight && e.dynamicHeight > 40 ? `${e.color ? e.color : "#0052CD"} transparent` : "transparent transparent"};
|
|
13871
13873
|
`, Cv = (e, t = 0.2) => {
|
|
13872
13874
|
e.startsWith("#") && (e = e.slice(1)), e.length === 3 && (e = e.split("").map((l) => l + l).join(""));
|
|
13873
13875
|
const n = parseInt(e, 16), i = n >> 16 & 255, r = n >> 8 & 255, s = n & 255, a = Math.round(i + (255 - i) * t), o = Math.round(r + (255 - r) * t), A = Math.round(s + (255 - s) * t);
|
|
@@ -30444,6 +30446,7 @@ const wy = ({ text: e }) => e ? /* @__PURE__ */ p(
|
|
|
30444
30446
|
onFocus: D,
|
|
30445
30447
|
onBlur: O,
|
|
30446
30448
|
disabled: a || o,
|
|
30449
|
+
dynamicHeight: b,
|
|
30447
30450
|
color: r?.colors?.primary
|
|
30448
30451
|
}
|
|
30449
30452
|
)
|
|
@@ -48032,12 +48035,20 @@ const _j = ({
|
|
|
48032
48035
|
alignItems: "center",
|
|
48033
48036
|
flexDirection: "column",
|
|
48034
48037
|
padding: "20px",
|
|
48035
|
-
gap: "8px"
|
|
48038
|
+
gap: "8px",
|
|
48039
|
+
fontSize: "14px"
|
|
48036
48040
|
},
|
|
48037
48041
|
children: [
|
|
48038
48042
|
/* @__PURE__ */ p("p", { children: t }),
|
|
48039
48043
|
/* @__PURE__ */ p(Sx, { children: "Or" }),
|
|
48040
|
-
/* @__PURE__ */ p(
|
|
48044
|
+
/* @__PURE__ */ p(
|
|
48045
|
+
we,
|
|
48046
|
+
{
|
|
48047
|
+
onClick: i,
|
|
48048
|
+
style: { width: "100%", fontSize: "14px" },
|
|
48049
|
+
children: n
|
|
48050
|
+
}
|
|
48051
|
+
)
|
|
48041
48052
|
]
|
|
48042
48053
|
}
|
|
48043
48054
|
), Oj = ({
|