@alfadocs/ui-kit 1.144.0 → 1.145.0
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/_chunks/{calendar-appointment-editor-dialog-CA69bdbI.js → calendar-appointment-editor-dialog-sY-k0GGW.js} +3 -3
- package/dist/_chunks/{calendar-waiting-list-panel-Du_jtVbl.js → calendar-waiting-list-panel-Bm7NAZdk.js} +2 -2
- package/dist/_chunks/{calendar.sheets-CGwr4t2p.js → calendar.sheets-CCvdZF-R.js} +2 -2
- package/dist/_chunks/{editor-overlay-Cl6IhKNG.js → editor-overlay-jc9HUeQ2.js} +29 -26
- package/dist/_chunks/{help-me-write-templates-BdCQ-kFO.js → help-me-write-templates-DlA54nu5.js} +2 -2
- package/dist/_chunks/{notes-panel-DnBmONPb.js → notes-panel-C9aB1Cma.js} +2 -2
- package/dist/_chunks/rich-text-editor-CJXc5GgH.js +4351 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/appointment-editor-panel/index.js +1 -1
- package/dist/aws-transcribe/index.js +176 -152
- package/dist/browser-support.js +1 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +2 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +7 -0
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/index.js +6 -6
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/calendar/index.js +2 -2
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/redactor.css +3 -0
- package/dist/speech/aws-transcribe.d.ts +9 -0
- package/dist/tokens.css +3 -0
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +1 -1
- package/dist/_chunks/rich-text-editor-Cx9cA4pd.js +0 -4305
|
@@ -22,7 +22,7 @@ import { c as vs, a as ro, d as hn, b as fn } from "./toast-Cgmh1cvj.js";
|
|
|
22
22
|
import { T as za, a as Rs } from "./tooltip-uEBdD1-5.js";
|
|
23
23
|
import { d as ao, e as so, f as gs, c as io, r as oo, g as co, u as lo } from "./calendar-editor-discard-host-DWS_kM-a.js";
|
|
24
24
|
import { A as zs, u as uo, D as ka } from "./use-appointment-details-read-Dod21IxM.js";
|
|
25
|
-
import { c as po, b as mo, u as ho, i as fo, d as ks, A as Xa, e as vo, f as go, B as ko, F as Co, P as Io, S as Hs } from "./calendar.sheets-
|
|
25
|
+
import { c as po, b as mo, u as ho, i as fo, d as ks, A as Xa, e as vo, f as go, B as ko, F as Co, P as Io, S as Hs } from "./calendar.sheets-CCvdZF-R.js";
|
|
26
26
|
import { B as Ve } from "./button-Dp4j9ygh.js";
|
|
27
27
|
import { D as te } from "./dialog-239Geb7Z.js";
|
|
28
28
|
import { R as Ja } from "./radio-BZQs6_36.js";
|
|
@@ -58,7 +58,7 @@ import { U as Po } from "./user-cog-BTn98Arm.js";
|
|
|
58
58
|
import { R as _o } from "./rotate-ccw-BBQnIVTr.js";
|
|
59
59
|
import { C as $o } from "./chevron-left-B8cOyH-V.js";
|
|
60
60
|
import { C as Ro } from "./chevron-right-I9AeSxH2.js";
|
|
61
|
-
import { W as zo } from "./calendar-waiting-list-panel-
|
|
61
|
+
import { W as zo } from "./calendar-waiting-list-panel-Bm7NAZdk.js";
|
|
62
62
|
import { C as Ho } from "./calendar-days-BGWklvE-.js";
|
|
63
63
|
import { C as Ha } from "./calendar-clock-hbObjfGY.js";
|
|
64
64
|
import { P as Ia } from "./privacy-mask-zVh0ntm0.js";
|
|
@@ -5516,4 +5516,4 @@ export {
|
|
|
5516
5516
|
sd as C,
|
|
5517
5517
|
ad as i
|
|
5518
5518
|
};
|
|
5519
|
-
//# sourceMappingURL=calendar-appointment-editor-dialog-
|
|
5519
|
+
//# sourceMappingURL=calendar-appointment-editor-dialog-sY-k0GGW.js.map
|
|
@@ -22,7 +22,7 @@ import { T as Ke } from "./text-area-COMVJ1yE.js";
|
|
|
22
22
|
import { T as be } from "./tooltip-uEBdD1-5.js";
|
|
23
23
|
import { V as xe } from "./visually-hidden-BHxEUGyT.js";
|
|
24
24
|
import { a as ke } from "./whatsapp-button-XbozeDl_.js";
|
|
25
|
-
import { a as $e, b as Fe, W as Ye, w as je } from "./calendar.sheets-
|
|
25
|
+
import { a as $e, b as Fe, W as Ye, w as je } from "./calendar.sheets-CCvdZF-R.js";
|
|
26
26
|
import { u as Re } from "./calendar-editor-guard-9fShhNIA.js";
|
|
27
27
|
import { E as le, f as He, g as Qe, w as qe, d as Je, N as Ue, e as Xe, i as Ze, j as ea, p as aa, k as sa } from "./calendar-workspace.model-4zmA3BFE.js";
|
|
28
28
|
import { F as ta } from "./funnel-DpPV3Qkd.js";
|
|
@@ -978,4 +978,4 @@ function Ta({
|
|
|
978
978
|
export {
|
|
979
979
|
za as W
|
|
980
980
|
};
|
|
981
|
-
//# sourceMappingURL=calendar-waiting-list-panel-
|
|
981
|
+
//# sourceMappingURL=calendar-waiting-list-panel-Bm7NAZdk.js.map
|
|
@@ -14,7 +14,7 @@ import { R as Ae } from "./radio-BZQs6_36.js";
|
|
|
14
14
|
import { R as Sn } from "./radio-group-ChIKyeSJ.js";
|
|
15
15
|
import { q as Os, s as Hs, t as hi, v as Dr, x as Er, y as Tr, N as q, z as Lr, A as Kt, B as Ar, F as Or, G as qt, H as jt, I as Pr, J as Mr, K as mi, p as Ta, L as Yt, M as Br, O as Xt, P as Wr, Q as $r, S as Qt, T as Fr, U as zr, X as _r, Y as Vr, Z as Hr, R as Jt, _ as Zt, $ as we, a0 as Ur, a1 as Gr, a2 as Kr, a3 as ei, a4 as qr, a5 as Ca, a6 as jr, a7 as Yr, a8 as Xr, a9 as ni, aa as Ia, ab as si, c as Qr, ac as Jr, ad as Zr, ae as ed, af as nd } from "./calendar-workspace.model-4zmA3BFE.js";
|
|
16
16
|
import { V as Ps } from "./visually-hidden-BHxEUGyT.js";
|
|
17
|
-
import { N as sd } from "./notes-panel-
|
|
17
|
+
import { N as sd } from "./notes-panel-C9aB1Cma.js";
|
|
18
18
|
import { A as gi } from "./avatar-Dp5apm1d.js";
|
|
19
19
|
import { E as vi } from "./empty-state-5REM7oDM.js";
|
|
20
20
|
import { P as Ms } from "./panel-header-CbtlTe85.js";
|
|
@@ -4583,4 +4583,4 @@ export {
|
|
|
4583
4583
|
Si as u,
|
|
4584
4584
|
bl as w
|
|
4585
4585
|
};
|
|
4586
|
-
//# sourceMappingURL=calendar.sheets-
|
|
4586
|
+
//# sourceMappingURL=calendar.sheets-CCvdZF-R.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as s, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
2
|
+
import { useRef as r, useId as j, useEffect as v, useCallback as k } from "react";
|
|
3
3
|
import { useTranslation as I } from "react-i18next";
|
|
4
4
|
import { c as N } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { I as R } from "./icon-button-u9VMQn3x.js";
|
|
6
|
-
import { g as
|
|
7
|
-
import { X as
|
|
8
|
-
const
|
|
6
|
+
import { g as q, a as z } from "./glass-surface-CPok0jEe.js";
|
|
7
|
+
import { X as C } from "./x-B5YnXwCz.js";
|
|
8
|
+
const F = N(
|
|
9
9
|
[
|
|
10
10
|
// Spans the editor's block-end edge (a docked bar) and expands from the pill.
|
|
11
11
|
"ds:absolute ds:z-20",
|
|
@@ -18,68 +18,71 @@ const q = N(
|
|
|
18
18
|
// VoiceControlPanel's floating panel uses too. Solid in the accessible
|
|
19
19
|
// themes, under more contrast or reduced transparency, and in forced
|
|
20
20
|
// colours (1.55.0). See _shared/glass-surface.
|
|
21
|
-
|
|
21
|
+
q,
|
|
22
22
|
// Liquid-glass grow out of the pill (bottom-inline-end origin).
|
|
23
23
|
"ds:origin-bottom-right ds:rtl:origin-bottom-left",
|
|
24
|
-
|
|
24
|
+
z
|
|
25
25
|
].join(" ")
|
|
26
|
-
),
|
|
26
|
+
), S = "ds:text-[length:var(--font-size-base)] ds:font-medium ds:text-[color:var(--foreground)]";
|
|
27
27
|
function T({
|
|
28
|
-
open:
|
|
28
|
+
open: a,
|
|
29
29
|
onClose: n,
|
|
30
30
|
title: t,
|
|
31
31
|
ariaLabel: g,
|
|
32
32
|
children: b,
|
|
33
|
-
footer:
|
|
33
|
+
footer: i,
|
|
34
34
|
id: x,
|
|
35
35
|
className: y
|
|
36
36
|
}) {
|
|
37
|
-
const { t: h } = I("ui"),
|
|
37
|
+
const { t: h } = I("ui"), d = r(null), l = r(null), c = j(), m = r(n);
|
|
38
38
|
v(() => {
|
|
39
39
|
m.current = n;
|
|
40
40
|
}, [n]);
|
|
41
41
|
const w = k(() => n(), [n]);
|
|
42
42
|
return v(() => {
|
|
43
|
-
if (!
|
|
44
|
-
|
|
43
|
+
if (!a) return;
|
|
44
|
+
l.current = document.activeElement;
|
|
45
45
|
const E = window.requestAnimationFrame(() => {
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
var f;
|
|
47
|
+
const e = d.current;
|
|
48
|
+
(f = (e == null ? void 0 : e.querySelector(
|
|
49
|
+
'textarea:not([disabled]), input:not([type="hidden"]):not([disabled])'
|
|
50
|
+
)) ?? (e == null ? void 0 : e.querySelector(
|
|
51
|
+
'button, [tabindex]:not([tabindex="-1"])'
|
|
52
|
+
)) ?? e) == null || f.focus();
|
|
50
53
|
}), u = (e) => {
|
|
51
54
|
e.key === "Escape" && !e.defaultPrevented && (e.stopPropagation(), m.current());
|
|
52
55
|
};
|
|
53
56
|
return document.addEventListener("keydown", u), () => {
|
|
54
|
-
var e,
|
|
55
|
-
window.cancelAnimationFrame(E), document.removeEventListener("keydown", u), (
|
|
57
|
+
var e, o;
|
|
58
|
+
window.cancelAnimationFrame(E), document.removeEventListener("keydown", u), (o = (e = l.current) == null ? void 0 : e.focus) == null || o.call(e);
|
|
56
59
|
};
|
|
57
|
-
}, [
|
|
60
|
+
}, [a]), a ? /* @__PURE__ */ s("div", { "data-component": "editor-overlay", "data-component-id": x, children: /* @__PURE__ */ p(
|
|
58
61
|
"div",
|
|
59
62
|
{
|
|
60
|
-
ref:
|
|
63
|
+
ref: d,
|
|
61
64
|
role: "dialog",
|
|
62
65
|
"aria-modal": "false",
|
|
63
|
-
"aria-labelledby": t ?
|
|
66
|
+
"aria-labelledby": t ? c : void 0,
|
|
64
67
|
"aria-label": t ? void 0 : g,
|
|
65
68
|
tabIndex: -1,
|
|
66
|
-
className: [
|
|
69
|
+
className: [F(), y].filter(Boolean).join(" "),
|
|
67
70
|
children: [
|
|
68
71
|
t ? /* @__PURE__ */ p("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
69
|
-
/* @__PURE__ */ s("div", { id:
|
|
72
|
+
/* @__PURE__ */ s("div", { id: c, className: S, children: t }),
|
|
70
73
|
/* @__PURE__ */ s(
|
|
71
74
|
R,
|
|
72
75
|
{
|
|
73
76
|
size: "sm",
|
|
74
77
|
intent: "ghost",
|
|
75
|
-
icon: /* @__PURE__ */ s(
|
|
78
|
+
icon: /* @__PURE__ */ s(C, {}),
|
|
76
79
|
"aria-label": h("common.close"),
|
|
77
80
|
onClick: w
|
|
78
81
|
}
|
|
79
82
|
)
|
|
80
83
|
] }) : null,
|
|
81
84
|
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: b }),
|
|
82
|
-
|
|
85
|
+
i ? /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-sm)]", children: i }) : null
|
|
83
86
|
]
|
|
84
87
|
}
|
|
85
88
|
) }) : null;
|
|
@@ -87,4 +90,4 @@ function T({
|
|
|
87
90
|
export {
|
|
88
91
|
T as E
|
|
89
92
|
};
|
|
90
|
-
//# sourceMappingURL=editor-overlay-
|
|
93
|
+
//# sourceMappingURL=editor-overlay-jc9HUeQ2.js.map
|
package/dist/_chunks/{help-me-write-templates-BdCQ-kFO.js → help-me-write-templates-DlA54nu5.js}
RENAMED
|
@@ -7,7 +7,7 @@ import { A as de } from "./ai-credits-exhausted-notice-DCq27xy2.js";
|
|
|
7
7
|
import { B as I } from "./button-Dp4j9ygh.js";
|
|
8
8
|
import { I as L } from "./icon-button-u9VMQn3x.js";
|
|
9
9
|
import { D as W } from "./dialog-239Geb7Z.js";
|
|
10
|
-
import { E as me } from "./editor-overlay-
|
|
10
|
+
import { E as me } from "./editor-overlay-jc9HUeQ2.js";
|
|
11
11
|
import { E as pe } from "./empty-state-5REM7oDM.js";
|
|
12
12
|
import { F as X } from "./form-field-CyHfOVKF.js";
|
|
13
13
|
import { S as ue } from "./spinner-CoflYlEx.js";
|
|
@@ -684,4 +684,4 @@ export {
|
|
|
684
684
|
Ie as b,
|
|
685
685
|
nr as u
|
|
686
686
|
};
|
|
687
|
-
//# sourceMappingURL=help-me-write-templates-
|
|
687
|
+
//# sourceMappingURL=help-me-write-templates-DlA54nu5.js.map
|
|
@@ -6,7 +6,7 @@ import { g as vt } from "./get-error-message-DbFUzuja.js";
|
|
|
6
6
|
import { h as Nt } from "./handled-rejection-C-6Dq0As.js";
|
|
7
7
|
import { u as Hn } from "./registry-DvAUVLHh.js";
|
|
8
8
|
import { C as Mn } from "./clinical-note-card-D-9xmRpf.js";
|
|
9
|
-
import { R as Wn } from "./rich-text-editor-
|
|
9
|
+
import { R as Wn } from "./rich-text-editor-CJXc5GgH.js";
|
|
10
10
|
import { T as $n } from "./text-area-COMVJ1yE.js";
|
|
11
11
|
import { A as L } from "./alert-C4WKViaS.js";
|
|
12
12
|
import { B as ne } from "./button-Dp4j9ygh.js";
|
|
@@ -1113,4 +1113,4 @@ const qr = _n(
|
|
|
1113
1113
|
export {
|
|
1114
1114
|
qr as N
|
|
1115
1115
|
};
|
|
1116
|
-
//# sourceMappingURL=notes-panel-
|
|
1116
|
+
//# sourceMappingURL=notes-panel-C9aB1Cma.js.map
|