@alfadocs/ui-kit 1.43.0 → 1.44.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-ChJQzRw-.js → calendar-U6N0F99w.js} +383 -359
- package/dist/_chunks/calendar-workspace-DBYAtdyd.js +12161 -0
- package/dist/_chunks/{face-scheme-Dg6ZyLKb.js → face-scheme-Bm6pe7R8.js} +265 -275
- package/dist/_chunks/help-me-write-templates-GUeEn3Ff.js +741 -0
- package/dist/_chunks/{notes-panel-CRAovkjx.js → notes-panel-CY4KmDo-.js} +159 -152
- package/dist/_chunks/{panel-subview-PMBRPFOa.js → panel-subview-CYnuX-KR.js} +61 -40
- package/dist/_chunks/rich-text-editor-BYE6kK4u.js +3839 -0
- package/dist/_chunks/undo-2-CYNAzclj.js +26 -0
- package/dist/_chunks/variables-menu-vXUaSBj4.js +401 -0
- package/dist/agent-catalog.json +84 -3
- package/dist/agent-i18n/en.json +14 -3
- package/dist/components/calendar/calendar.d.ts +6 -0
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +4 -0
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/panel-subview/panel-subview.d.ts +6 -0
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +35 -3
- package/dist/components/rich-text-editor/index.d.ts +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +98 -15
- package/dist/components/variables-menu/index.d.ts +4 -0
- package/dist/components/variables-menu/index.js +6 -0
- package/dist/components/variables-menu/variables-menu.agent.d.ts +10 -0
- package/dist/components/variables-menu/variables-menu.d.ts +53 -0
- package/dist/host-compat.css +5 -5
- package/dist/i18n/locales/ar.d.ts +77 -6
- package/dist/i18n/locales/ar.js +78 -7
- package/dist/i18n/locales/de.d.ts +77 -6
- package/dist/i18n/locales/de.js +78 -7
- package/dist/i18n/locales/el.d.ts +77 -6
- package/dist/i18n/locales/el.js +78 -7
- package/dist/i18n/locales/en.d.ts +77 -6
- package/dist/i18n/locales/en.js +85 -7
- package/dist/i18n/locales/es.d.ts +77 -6
- package/dist/i18n/locales/es.js +78 -7
- package/dist/i18n/locales/fr.d.ts +77 -6
- package/dist/i18n/locales/fr.js +78 -7
- package/dist/i18n/locales/hi.d.ts +77 -6
- package/dist/i18n/locales/hi.js +78 -7
- package/dist/i18n/locales/it.d.ts +77 -6
- package/dist/i18n/locales/it.js +78 -7
- package/dist/i18n/locales/ja.d.ts +77 -6
- package/dist/i18n/locales/ja.js +78 -7
- package/dist/i18n/locales/nl.d.ts +77 -6
- package/dist/i18n/locales/nl.js +78 -7
- package/dist/i18n/locales/pl.d.ts +77 -6
- package/dist/i18n/locales/pl.js +78 -7
- package/dist/i18n/locales/pt.d.ts +77 -6
- package/dist/i18n/locales/pt.js +78 -7
- package/dist/i18n/locales/ro.d.ts +77 -6
- package/dist/i18n/locales/ro.js +78 -7
- package/dist/i18n/locales/ru.d.ts +77 -6
- package/dist/i18n/locales/ru.js +78 -7
- package/dist/i18n/locales/sq.d.ts +77 -6
- package/dist/i18n/locales/sq.js +78 -7
- package/dist/i18n/locales/sv.d.ts +77 -6
- package/dist/i18n/locales/sv.js +78 -7
- package/dist/i18n/locales/tr.d.ts +77 -6
- package/dist/i18n/locales/tr.js +78 -7
- package/dist/i18n/locales/zh.d.ts +77 -6
- package/dist/i18n/locales/zh.js +78 -7
- package/dist/index.js +916 -913
- package/dist/locales/ar.json +78 -7
- package/dist/locales/de.json +78 -7
- package/dist/locales/el.json +78 -7
- package/dist/locales/en.json +78 -7
- package/dist/locales/es.json +78 -7
- package/dist/locales/fr.json +78 -7
- package/dist/locales/hi.json +78 -7
- package/dist/locales/it.json +78 -7
- package/dist/locales/ja.json +78 -7
- package/dist/locales/nl.json +78 -7
- package/dist/locales/pl.json +78 -7
- package/dist/locales/pt.json +78 -7
- package/dist/locales/ro.json +78 -7
- package/dist/locales/ru.json +78 -7
- package/dist/locales/sq.json +78 -7
- package/dist/locales/sv.json +78 -7
- package/dist/locales/tr.json +78 -7
- package/dist/locales/zh.json +78 -7
- package/dist/patterns/calendar/calendar-bookings-panel.d.ts +8 -3
- package/dist/patterns/calendar/calendar-care-rules.d.ts +49 -0
- package/dist/patterns/calendar/calendar-task-editor.d.ts +31 -0
- package/dist/patterns/calendar/calendar-workspace.d.ts +8 -1
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +39 -12
- package/dist/patterns/calendar/calendar.data.d.ts +9 -0
- package/dist/patterns/calendar/calendar.journey.d.ts +35 -3
- package/dist/patterns/calendar/calendar.model.d.ts +23 -1
- package/dist/patterns/calendar/calendar.sheets.d.ts +21 -3
- package/dist/patterns/calendar/calendar.surface.d.ts +6 -1
- package/dist/patterns/calendar/calendar.types.d.ts +32 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +58 -26
- package/dist/patterns/help-me-write-templates/index.d.ts +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/tokens.css +6 -6
- package/package.json +5 -1
- package/dist/_chunks/calendar-workspace-DhXqqu-D.js +0 -11392
- package/dist/_chunks/help-me-write-templates-B-m7zgJa.js +0 -775
- package/dist/_chunks/highlighter-DSkckT2Q.js +0 -15
- package/dist/_chunks/rich-text-editor-DUMeifwc.js +0 -3176
- package/dist/_chunks/wand-sparkles-DAjKyhz7.js +0 -27
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as P, jsx as o, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as P, jsx as o, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as S, useId as B, useRef as m, useCallback as D, useEffect as E } from "react";
|
|
3
3
|
import { c as b } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { I as
|
|
5
|
-
import { P as
|
|
6
|
-
import { S as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { A as
|
|
10
|
-
const
|
|
4
|
+
import { I as M } from "./icon-button-CehAeZoP.js";
|
|
5
|
+
import { P as q } from "./panel-header-D_mTdhUp.js";
|
|
6
|
+
import { S as K } from "./scroll-area-BZOvUhwQ.js";
|
|
7
|
+
import { u as j } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
8
|
+
import { u as U } from "./use-presence-transition-cDwWUXV-.js";
|
|
9
|
+
import { A as _ } from "./arrow-left-BfaGqVam.js";
|
|
10
|
+
const G = b(
|
|
11
11
|
"ds:relative ds:flex ds:h-full ds:min-h-0 ds:flex-col ds:overflow-hidden"
|
|
12
|
-
),
|
|
12
|
+
), J = b(
|
|
13
13
|
[
|
|
14
14
|
"ds:absolute ds:inset-0 ds:z-[2] ds:flex ds:min-h-0 ds:flex-col",
|
|
15
15
|
"ds:bg-[var(--background)] ds:focus-visible:outline-none",
|
|
@@ -22,26 +22,39 @@ const _ = b(
|
|
|
22
22
|
"ds:rtl:data-[presence=entering]:-translate-x-full ds:rtl:data-[presence=leaving]:-translate-x-full",
|
|
23
23
|
"ds:data-[presence=leaving]:pointer-events-none"
|
|
24
24
|
].join(" ")
|
|
25
|
-
),
|
|
25
|
+
), Q = '[role="combobox"][aria-expanded="true"], [aria-haspopup][aria-expanded="true"]', W = b(
|
|
26
26
|
[
|
|
27
|
-
"ds:flex ds:shrink-0 ds:items-center
|
|
27
|
+
"ds:flex ds:shrink-0 ds:items-center",
|
|
28
28
|
"ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]",
|
|
29
29
|
"ds:border-t ds:border-[color:var(--border)]"
|
|
30
|
-
].join(" ")
|
|
31
|
-
|
|
30
|
+
].join(" "),
|
|
31
|
+
{
|
|
32
|
+
variants: {
|
|
33
|
+
/** `'end'` (default): a single trailing action cluster, as most
|
|
34
|
+
* footers use. `'between'` splits the row — a leading destructive
|
|
35
|
+
* action (Remove, say) at the start and the Cancel/Save cluster at
|
|
36
|
+
* the end — for a footer with two sides instead of one. */
|
|
37
|
+
align: {
|
|
38
|
+
end: "ds:justify-end",
|
|
39
|
+
between: "ds:justify-between"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
defaultVariants: { align: "end" }
|
|
43
|
+
}
|
|
44
|
+
), A = S(
|
|
32
45
|
({ className: t, children: i, ...p }, c) => /* @__PURE__ */ o(
|
|
33
46
|
"div",
|
|
34
47
|
{
|
|
35
48
|
ref: c,
|
|
36
49
|
"data-component": "panel-subview-host",
|
|
37
|
-
className: [
|
|
50
|
+
className: [G(), t].filter(Boolean).join(" "),
|
|
38
51
|
...p,
|
|
39
52
|
children: i
|
|
40
53
|
}
|
|
41
54
|
)
|
|
42
55
|
);
|
|
43
56
|
A.displayName = "PanelSubview.Host";
|
|
44
|
-
const I =
|
|
57
|
+
const I = S(
|
|
45
58
|
({
|
|
46
59
|
open: t,
|
|
47
60
|
onBack: i,
|
|
@@ -50,22 +63,23 @@ const I = j(
|
|
|
50
63
|
icon: N,
|
|
51
64
|
headingLevel: k,
|
|
52
65
|
headerActions: H,
|
|
53
|
-
footer:
|
|
54
|
-
|
|
66
|
+
footer: g,
|
|
67
|
+
footerAlign: L = "end",
|
|
68
|
+
onExited: O,
|
|
55
69
|
initialFocusRef: l,
|
|
56
|
-
className:
|
|
57
|
-
children:
|
|
70
|
+
className: R,
|
|
71
|
+
children: V,
|
|
58
72
|
...C
|
|
59
73
|
}, d) => {
|
|
60
|
-
const
|
|
74
|
+
const h = B(), s = U(t, { onExited: O }), u = m(null), v = m(null), w = m(i);
|
|
61
75
|
w.current = i;
|
|
62
|
-
const { ref:
|
|
76
|
+
const { ref: y } = s, T = D(
|
|
63
77
|
(e) => {
|
|
64
|
-
u.current = e,
|
|
78
|
+
u.current = e, y(e), typeof d == "function" ? d(e) : d && (d.current = e);
|
|
65
79
|
},
|
|
66
|
-
[
|
|
67
|
-
),
|
|
68
|
-
t && !
|
|
80
|
+
[y, d]
|
|
81
|
+
), x = m(t);
|
|
82
|
+
t && !x.current && typeof document < "u" && (v.current = document.activeElement instanceof HTMLElement ? document.activeElement : null), x.current = t, j(() => {
|
|
69
83
|
const e = u.current, n = e == null ? void 0 : e.parentElement;
|
|
70
84
|
if (!t || !e || !n) return;
|
|
71
85
|
const r = Array.from(n.children).filter(
|
|
@@ -76,7 +90,7 @@ const I = j(
|
|
|
76
90
|
};
|
|
77
91
|
}, [t, s.mounted, l]);
|
|
78
92
|
const f = !t;
|
|
79
|
-
return
|
|
93
|
+
return j(() => {
|
|
80
94
|
const e = u.current;
|
|
81
95
|
if (!e) return;
|
|
82
96
|
const n = document.activeElement;
|
|
@@ -91,7 +105,7 @@ const I = j(
|
|
|
91
105
|
const e = u.current;
|
|
92
106
|
if (!t || !e) return;
|
|
93
107
|
const n = (r) => {
|
|
94
|
-
r.key === "Escape" && (r.stopPropagation(), !(r.defaultPrevented && e.querySelector(
|
|
108
|
+
r.key === "Escape" && (r.stopPropagation(), !(r.defaultPrevented && e.querySelector(Q)) && (r.preventDefault(), w.current()));
|
|
95
109
|
};
|
|
96
110
|
return e.addEventListener("keydown", n), () => e.removeEventListener("keydown", n);
|
|
97
111
|
}, [t, s.mounted]), s.mounted ? /* @__PURE__ */ P(
|
|
@@ -100,26 +114,26 @@ const I = j(
|
|
|
100
114
|
...C,
|
|
101
115
|
ref: T,
|
|
102
116
|
tabIndex: -1,
|
|
103
|
-
"aria-labelledby":
|
|
117
|
+
"aria-labelledby": h,
|
|
104
118
|
"aria-hidden": f || void 0,
|
|
105
119
|
"data-component": "panel-subview",
|
|
106
120
|
"data-presence": s.phase,
|
|
107
|
-
className: [
|
|
121
|
+
className: [J(), R].filter(Boolean).join(" "),
|
|
108
122
|
children: [
|
|
109
123
|
/* @__PURE__ */ o(
|
|
110
|
-
|
|
124
|
+
q,
|
|
111
125
|
{
|
|
112
126
|
icon: N,
|
|
113
127
|
title: p,
|
|
114
|
-
headingId:
|
|
128
|
+
headingId: h,
|
|
115
129
|
headingLevel: k,
|
|
116
130
|
sticky: !0,
|
|
117
131
|
divider: !0,
|
|
118
|
-
actions: /* @__PURE__ */ P(
|
|
132
|
+
actions: /* @__PURE__ */ P(z, { children: [
|
|
119
133
|
/* @__PURE__ */ o(
|
|
120
|
-
|
|
134
|
+
M,
|
|
121
135
|
{
|
|
122
|
-
icon: /* @__PURE__ */ o(
|
|
136
|
+
icon: /* @__PURE__ */ o(_, { "aria-hidden": "true" }),
|
|
123
137
|
intent: "ghost",
|
|
124
138
|
size: "sm",
|
|
125
139
|
flipIconInRtl: !0,
|
|
@@ -133,18 +147,25 @@ const I = j(
|
|
|
133
147
|
] })
|
|
134
148
|
}
|
|
135
149
|
),
|
|
136
|
-
/* @__PURE__ */ o(
|
|
137
|
-
|
|
150
|
+
/* @__PURE__ */ o(K, { orientation: "vertical", className: "ds:min-h-0 ds:flex-1", children: V }),
|
|
151
|
+
g ? /* @__PURE__ */ o(
|
|
152
|
+
"div",
|
|
153
|
+
{
|
|
154
|
+
"data-panel-subview-footer": "",
|
|
155
|
+
className: W({ align: L }),
|
|
156
|
+
children: g
|
|
157
|
+
}
|
|
158
|
+
) : null
|
|
138
159
|
]
|
|
139
160
|
}
|
|
140
161
|
) : null;
|
|
141
162
|
}
|
|
142
163
|
);
|
|
143
164
|
I.displayName = "PanelSubview";
|
|
144
|
-
const
|
|
165
|
+
const se = Object.assign(I, {
|
|
145
166
|
Host: A
|
|
146
167
|
});
|
|
147
168
|
export {
|
|
148
|
-
|
|
169
|
+
se as P
|
|
149
170
|
};
|
|
150
|
-
//# sourceMappingURL=panel-subview-
|
|
171
|
+
//# sourceMappingURL=panel-subview-CYnuX-KR.js.map
|