callix-dialer-widget 1.1.8 → 1.1.9
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.
|
@@ -54368,6 +54368,7 @@ function AuthenticatedDialer({ username, dialValue, setDialValue, onLogout, vari
|
|
|
54368
54368
|
if (isMiniMode) {
|
|
54369
54369
|
const isCallActive = isInCall || isConnecting;
|
|
54370
54370
|
const callButtonDisabled = !isCallActive && !isNumberValid;
|
|
54371
|
+
const miniCanUseKeypad = !availabilityError && (canUseKeypad || isIdle || isOnBreak);
|
|
54371
54372
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
54372
54373
|
"div",
|
|
54373
54374
|
{
|
|
@@ -54412,7 +54413,8 @@ function AuthenticatedDialer({ username, dialValue, setDialValue, onLogout, vari
|
|
|
54412
54413
|
{
|
|
54413
54414
|
type: "button",
|
|
54414
54415
|
onClick: handleBackspace,
|
|
54415
|
-
|
|
54416
|
+
disabled: !miniCanUseKeypad,
|
|
54417
|
+
className: tw`inline-flex h-8 w-8 items-center justify-center rounded-lg border border-slate-300 bg-white text-slate-600 transition hover:border-slate-400 hover:text-slate-800 disabled:opacity-40 disabled:cursor-not-allowed`,
|
|
54416
54418
|
"aria-label": "Apagar ultimo digito",
|
|
54417
54419
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(FiDelete, { className: tw`text-base` })
|
|
54418
54420
|
}
|
|
@@ -54422,7 +54424,8 @@ function AuthenticatedDialer({ username, dialValue, setDialValue, onLogout, vari
|
|
|
54422
54424
|
{
|
|
54423
54425
|
type: "button",
|
|
54424
54426
|
onClick: handleClear,
|
|
54425
|
-
|
|
54427
|
+
disabled: !miniCanUseKeypad,
|
|
54428
|
+
className: tw`inline-flex h-8 w-8 items-center justify-center rounded-lg border border-rose-300 bg-rose-50 text-rose-600 transition hover:border-rose-400 hover:bg-rose-100 disabled:opacity-40 disabled:cursor-not-allowed`,
|
|
54426
54429
|
"aria-label": "Limpar numero",
|
|
54427
54430
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(FiX, { className: tw`text-sm` })
|
|
54428
54431
|
}
|
|
@@ -54434,8 +54437,8 @@ function AuthenticatedDialer({ username, dialValue, setDialValue, onLogout, vari
|
|
|
54434
54437
|
{
|
|
54435
54438
|
type: "button",
|
|
54436
54439
|
onClick: () => handleDial(item.value),
|
|
54437
|
-
disabled: !
|
|
54438
|
-
className: tw`flex h-12 flex-col items-center justify-center rounded-lg border border-slate-200 bg-white text-base font-semibold text-slate-800 shadow-sm transition active:scale-95 hover:border-slate-300 hover:shadow-md disabled:cursor-not-allowed disabled:opacity-
|
|
54440
|
+
disabled: !miniCanUseKeypad,
|
|
54441
|
+
className: tw`flex h-12 flex-col items-center justify-center rounded-lg border border-slate-200 bg-white text-base font-semibold text-slate-800 shadow-sm transition active:scale-95 hover:border-slate-300 hover:shadow-md disabled:cursor-not-allowed disabled:opacity-40`,
|
|
54439
54442
|
children: [
|
|
54440
54443
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: item.value }),
|
|
54441
54444
|
item.detail && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: tw`text-[8px] font-semibold uppercase tracking-widest text-slate-400`, children: item.detail })
|