callix-dialer-widget 1.2.5 → 1.2.7
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.
|
@@ -54136,7 +54136,7 @@ function AuthenticatedDialer({ username, dialValue, setDialValue, onLogout, vari
|
|
|
54136
54136
|
}
|
|
54137
54137
|
}, [goOffBreak]);
|
|
54138
54138
|
useEffect(() => {
|
|
54139
|
-
if (!isDialerFocused) {
|
|
54139
|
+
if (!isMiniMode && !isDialerFocused) {
|
|
54140
54140
|
return;
|
|
54141
54141
|
}
|
|
54142
54142
|
const handleKeyDown = (event2) => {
|
|
@@ -54190,7 +54190,7 @@ function AuthenticatedDialer({ username, dialValue, setDialValue, onLogout, vari
|
|
|
54190
54190
|
return () => {
|
|
54191
54191
|
window.removeEventListener("keydown", handleKeyDown);
|
|
54192
54192
|
};
|
|
54193
|
-
}, [isDialerFocused, handleBackspace, handleClear, handleDial, handleCall, isIdle]);
|
|
54193
|
+
}, [isMiniMode, isDialerFocused, handleBackspace, handleClear, handleDial, handleCall, isIdle]);
|
|
54194
54194
|
const handleHangup = useCallback(async () => {
|
|
54195
54195
|
try {
|
|
54196
54196
|
await hangup();
|
|
@@ -54410,7 +54410,7 @@ function AuthenticatedDialer({ username, dialValue, setDialValue, onLogout, vari
|
|
|
54410
54410
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: tw`space-y-1 rounded-xl border border-slate-200 bg-slate-50 px-3 py-2`, children: [
|
|
54411
54411
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: tw`text-[10px] font-semibold uppercase tracking-wide text-slate-500`, children: "Numero" }),
|
|
54412
54412
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: tw`flex items-center gap-2`, children: [
|
|
54413
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: tw`flex-1 truncate text-
|
|
54413
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: tw`flex-1 truncate text-sm font-semibold text-slate-800`, children: dialDisplayText || /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: tw`text-slate-400 text-xs font-normal`, children: "Digite um numero" }) }),
|
|
54414
54414
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
54415
54415
|
"button",
|
|
54416
54416
|
{
|
|
@@ -55175,6 +55175,17 @@ function InlineDialer({ variant = "default", ...props }) {
|
|
|
55175
55175
|
{
|
|
55176
55176
|
dangerouslySetInnerHTML: {
|
|
55177
55177
|
__html: `
|
|
55178
|
+
/* Container externo do HTML - SEM padding/border para não vazar */
|
|
55179
|
+
#dialer-inline.callix.mode.min {
|
|
55180
|
+
display: block !important;
|
|
55181
|
+
width: 100% !important;
|
|
55182
|
+
max-width: 100% !important;
|
|
55183
|
+
padding: 0 !important;
|
|
55184
|
+
border: none !important;
|
|
55185
|
+
background: transparent !important;
|
|
55186
|
+
box-shadow: none !important;
|
|
55187
|
+
}
|
|
55188
|
+
|
|
55178
55189
|
/* Estilos para modo mini quando Tailwind CDN não processa classes */
|
|
55179
55190
|
.callix.mode.min {
|
|
55180
55191
|
display: flex !important;
|
|
@@ -55188,6 +55199,16 @@ function InlineDialer({ variant = "default", ...props }) {
|
|
|
55188
55199
|
color: #1e293b !important;
|
|
55189
55200
|
width: 100% !important;
|
|
55190
55201
|
max-width: 100% !important;
|
|
55202
|
+
box-sizing: border-box !important;
|
|
55203
|
+
}
|
|
55204
|
+
|
|
55205
|
+
/* Visor de número - fonte menor para caber todos os dígitos */
|
|
55206
|
+
.callix.mode.min [class*="truncate"] {
|
|
55207
|
+
font-size: 0.875rem !important; /* text-sm */
|
|
55208
|
+
line-height: 1.25rem !important;
|
|
55209
|
+
overflow: hidden !important;
|
|
55210
|
+
text-overflow: ellipsis !important;
|
|
55211
|
+
white-space: nowrap !important;
|
|
55191
55212
|
}
|
|
55192
55213
|
|
|
55193
55214
|
/* Botões do modo mini */
|