@alfadocs/ui-kit 1.129.0 → 1.130.1
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-CXch4Pmu.js +13663 -0
- package/dist/_chunks/contact-round-DiSvB3LP.js +18 -0
- package/dist/_chunks/{entity-summary-Dzk54yom.js → entity-summary-KHM0PnSI.js} +55 -67
- package/dist/_chunks/{header-settings-DsvheAOt.js → header-settings-ZGvYAuKF.js} +101 -97
- package/dist/_chunks/{marketplace-app-shell-BOBWmzoT.js → marketplace-app-shell-D_HA8CKx.js} +2 -2
- package/dist/_chunks/{muscle-scheme-CHrjv7p2.js → muscle-scheme-DdIdm8Gw.js} +2 -1
- package/dist/_chunks/{patient-search-D_S7joff.js → patient-search-OAwFgOW3.js} +2 -2
- package/dist/_chunks/{toast-BNoN8Qjh.js → toast-DQ1Zu1kk.js} +264 -251
- package/dist/_chunks/use-appointment-details-read-BrykoTOR.js +2475 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +7 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.links.d.ts +2 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +5 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/i18n/locales/ar.d.ts +13 -4
- package/dist/i18n/locales/ar.js +16 -7
- package/dist/i18n/locales/de.d.ts +13 -4
- package/dist/i18n/locales/de.js +16 -7
- package/dist/i18n/locales/el.d.ts +13 -4
- package/dist/i18n/locales/el.js +16 -7
- package/dist/i18n/locales/en.d.ts +13 -4
- package/dist/i18n/locales/en.js +13 -4
- package/dist/i18n/locales/es.d.ts +13 -4
- package/dist/i18n/locales/es.js +16 -7
- package/dist/i18n/locales/fr.d.ts +13 -4
- package/dist/i18n/locales/fr.js +16 -7
- package/dist/i18n/locales/hi.d.ts +13 -4
- package/dist/i18n/locales/hi.js +16 -7
- package/dist/i18n/locales/it.d.ts +13 -4
- package/dist/i18n/locales/it.js +16 -7
- package/dist/i18n/locales/ja.d.ts +13 -4
- package/dist/i18n/locales/ja.js +16 -7
- package/dist/i18n/locales/nl.d.ts +13 -4
- package/dist/i18n/locales/nl.js +16 -7
- package/dist/i18n/locales/pl.d.ts +13 -4
- package/dist/i18n/locales/pl.js +16 -7
- package/dist/i18n/locales/pt.d.ts +13 -4
- package/dist/i18n/locales/pt.js +16 -7
- package/dist/i18n/locales/ro.d.ts +13 -4
- package/dist/i18n/locales/ro.js +16 -7
- package/dist/i18n/locales/ru.d.ts +13 -4
- package/dist/i18n/locales/ru.js +16 -7
- package/dist/i18n/locales/sq.d.ts +13 -4
- package/dist/i18n/locales/sq.js +16 -7
- package/dist/i18n/locales/sv.d.ts +13 -4
- package/dist/i18n/locales/sv.js +16 -7
- package/dist/i18n/locales/tr.d.ts +13 -4
- package/dist/i18n/locales/tr.js +16 -7
- package/dist/i18n/locales/zh.d.ts +13 -4
- package/dist/i18n/locales/zh.js +16 -7
- package/dist/index.js +7 -7
- package/dist/locales/ar.json +16 -7
- package/dist/locales/de.json +16 -7
- package/dist/locales/el.json +16 -7
- package/dist/locales/en.json +13 -4
- package/dist/locales/es.json +16 -7
- package/dist/locales/fr.json +16 -7
- package/dist/locales/hi.json +16 -7
- package/dist/locales/it.json +16 -7
- package/dist/locales/ja.json +16 -7
- package/dist/locales/nl.json +16 -7
- package/dist/locales/pl.json +16 -7
- package/dist/locales/pt.json +16 -7
- package/dist/locales/ro.json +16 -7
- package/dist/locales/ru.json +16 -7
- package/dist/locales/sq.json +16 -7
- package/dist/locales/sv.json +16 -7
- package/dist/locales/tr.json +16 -7
- package/dist/locales/zh.json +16 -7
- package/dist/patterns/calendar/calendar-appointment-details.d.ts +10 -1
- package/dist/patterns/calendar/calendar-workspace.d.ts +27 -0
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +5 -6
- package/dist/patterns/calendar/calendar.model.d.ts +57 -8
- package/dist/patterns/calendar/calendar.sheets.d.ts +46 -3
- package/dist/patterns/calendar/calendar.types.d.ts +13 -5
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/calendar-appointment-editor-dialog-DnPADcj9.js +0 -13438
- package/dist/_chunks/use-appointment-details-read-n7kycxrm.js +0 -2439
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { c } from "./createLucideIcon-DhHxpK9K.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v1.22.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const e = [
|
|
9
|
+
["path", { d: "M16 2v2", key: "scm5qe" }],
|
|
10
|
+
["path", { d: "M17.915 22a6 6 0 0 0-12 0", key: "suqz9p" }],
|
|
11
|
+
["path", { d: "M8 2v2", key: "pbkmx" }],
|
|
12
|
+
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
13
|
+
["rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", key: "12vinp" }]
|
|
14
|
+
], o = c("contact-round", e);
|
|
15
|
+
export {
|
|
16
|
+
o as C
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=contact-round-DiSvB3LP.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useTranslation as
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as P, useId as w, useRef as f, useImperativeHandle as D, useMemo as H } from "react";
|
|
3
|
+
import { useTranslation as _ } from "react-i18next";
|
|
4
4
|
import { A as I } from "./alert-C4WKViaS.js";
|
|
5
|
-
import { A as
|
|
6
|
-
import { B as
|
|
5
|
+
import { A as $ } from "./avatar-Dp5apm1d.js";
|
|
6
|
+
import { B as q } from "./button-DohK_Ak_.js";
|
|
7
7
|
import { I as O } from "./icon-button-S8_weU3g.js";
|
|
8
8
|
import { C } from "./card-n6W6LW-N.js";
|
|
9
9
|
import { L as F } from "./link-CeV7FoI6.js";
|
|
@@ -13,20 +13,8 @@ import { u as X } from "./registry-DvAUVLHh.js";
|
|
|
13
13
|
import { C as J } from "./clock-Drd4Wtis.js";
|
|
14
14
|
import { R as Q } from "./refresh-cw-DnI0cLFC.js";
|
|
15
15
|
import { X as U } from "./x-B5YnXwCz.js";
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
* @license lucide-react v1.22.0 - ISC
|
|
19
|
-
*
|
|
20
|
-
* This source code is licensed under the ISC license.
|
|
21
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/
|
|
23
|
-
const Z = [
|
|
24
|
-
["path", { d: "M16 2v2", key: "scm5qe" }],
|
|
25
|
-
["path", { d: "M17.915 22a6 6 0 0 0-12 0", key: "suqz9p" }],
|
|
26
|
-
["path", { d: "M8 2v2", key: "pbkmx" }],
|
|
27
|
-
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
28
|
-
["rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", key: "12vinp" }]
|
|
29
|
-
], ee = Y("contact-round", Z), te = {
|
|
16
|
+
import { C as Y } from "./contact-round-DiSvB3LP.js";
|
|
17
|
+
const Z = {
|
|
30
18
|
id: "entity-summary",
|
|
31
19
|
// 'close' backs close; regenerate is a host-driven refresh with no
|
|
32
20
|
// dedicated capability in the closed vocabulary.
|
|
@@ -79,36 +67,36 @@ const Z = [
|
|
|
79
67
|
description: "Sourced from the id prop. Required to address a specific summary panel from the agent."
|
|
80
68
|
}
|
|
81
69
|
}
|
|
82
|
-
},
|
|
70
|
+
}, ee = "ds:flex ds:size-7 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-md)] ds:[&_svg]:size-4 ds:bg-primary/10 ds:text-[color:var(--primary)]", k = "ds:m-0 ds:flex ds:list-disc ds:flex-col ds:gap-[var(--spacing-2xs)] ds:ps-[var(--spacing-md)] type-body-sm", ve = P(
|
|
83
71
|
function({
|
|
84
72
|
id: n,
|
|
85
73
|
title: i,
|
|
86
74
|
entityName: s,
|
|
87
75
|
entityHref: y,
|
|
88
|
-
entityAvatarSrc:
|
|
76
|
+
entityAvatarSrc: E,
|
|
89
77
|
generatedAtIso: d,
|
|
90
78
|
stats: o,
|
|
91
|
-
sections:
|
|
92
|
-
onRegenerate:
|
|
93
|
-
regenerateLabel:
|
|
94
|
-
onClose:
|
|
95
|
-
disclaimer:
|
|
96
|
-
locale:
|
|
97
|
-
className:
|
|
98
|
-
"aria-label":
|
|
99
|
-
...
|
|
79
|
+
sections: g,
|
|
80
|
+
onRegenerate: l,
|
|
81
|
+
regenerateLabel: z,
|
|
82
|
+
onClose: c,
|
|
83
|
+
disclaimer: R,
|
|
84
|
+
locale: j,
|
|
85
|
+
className: B,
|
|
86
|
+
"aria-label": h,
|
|
87
|
+
...T
|
|
100
88
|
}, L) {
|
|
101
|
-
const { t: m } =
|
|
102
|
-
x.current =
|
|
89
|
+
const { t: m } = _("ui"), v = w(), V = i ?? m("entitySummary.title", { defaultValue: "AI summary" }), x = f(g);
|
|
90
|
+
x.current = g;
|
|
103
91
|
const b = f(d);
|
|
104
92
|
b.current = d;
|
|
105
|
-
const u = f(
|
|
106
|
-
u.current =
|
|
107
|
-
const p = f(
|
|
108
|
-
p.current =
|
|
93
|
+
const u = f(l);
|
|
94
|
+
u.current = l;
|
|
95
|
+
const p = f(c);
|
|
96
|
+
p.current = c;
|
|
109
97
|
const S = f(null);
|
|
110
|
-
|
|
111
|
-
const
|
|
98
|
+
D(L, () => S.current, []);
|
|
99
|
+
const K = H(
|
|
112
100
|
() => ({
|
|
113
101
|
// Structural only — section headings are fixed category labels, never
|
|
114
102
|
// the entity name or the bullet items (both PHI).
|
|
@@ -134,11 +122,11 @@ const Z = [
|
|
|
134
122
|
}),
|
|
135
123
|
[]
|
|
136
124
|
);
|
|
137
|
-
X(
|
|
125
|
+
X(Z, K, n);
|
|
138
126
|
const N = d ? /* @__PURE__ */ a("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] type-meta ds:text-[color:var(--muted-foreground)]", children: [
|
|
139
127
|
/* @__PURE__ */ e(J, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
|
|
140
128
|
/* @__PURE__ */ e("span", { children: m("entitySummary.generatedAt", { defaultValue: "Generated" }) }),
|
|
141
|
-
/* @__PURE__ */ e(W, { value: d, format: "absolute", locale:
|
|
129
|
+
/* @__PURE__ */ e(W, { value: d, format: "absolute", locale: j })
|
|
142
130
|
] }) : null;
|
|
143
131
|
return /* @__PURE__ */ a(
|
|
144
132
|
"section",
|
|
@@ -146,41 +134,41 @@ const Z = [
|
|
|
146
134
|
ref: S,
|
|
147
135
|
"data-component": "entity-summary",
|
|
148
136
|
"data-component-id": n,
|
|
149
|
-
"aria-labelledby":
|
|
150
|
-
"aria-label":
|
|
151
|
-
className: ["ds:flex ds:flex-col",
|
|
152
|
-
...
|
|
137
|
+
"aria-labelledby": h ? void 0 : v,
|
|
138
|
+
"aria-label": h,
|
|
139
|
+
className: ["ds:flex ds:flex-col", B].filter(Boolean).join(" "),
|
|
140
|
+
...T,
|
|
153
141
|
children: [
|
|
154
142
|
/* @__PURE__ */ e(
|
|
155
143
|
G,
|
|
156
144
|
{
|
|
157
|
-
title:
|
|
158
|
-
icon: /* @__PURE__ */ e(
|
|
159
|
-
headingId:
|
|
145
|
+
title: V,
|
|
146
|
+
icon: /* @__PURE__ */ e(Y, { "aria-hidden": "true" }),
|
|
147
|
+
headingId: h ? void 0 : v,
|
|
160
148
|
sticky: !0,
|
|
161
149
|
divider: !0,
|
|
162
|
-
actions:
|
|
163
|
-
|
|
164
|
-
|
|
150
|
+
actions: l || c ? /* @__PURE__ */ a(M, { children: [
|
|
151
|
+
l ? /* @__PURE__ */ e(
|
|
152
|
+
q,
|
|
165
153
|
{
|
|
166
154
|
type: "button",
|
|
167
155
|
size: "sm",
|
|
168
156
|
intent: "ghost",
|
|
169
157
|
startIcon: /* @__PURE__ */ e(Q, { "aria-hidden": "true" }),
|
|
170
|
-
onClick:
|
|
171
|
-
children:
|
|
158
|
+
onClick: l,
|
|
159
|
+
children: z ?? m("entitySummary.regenerate", {
|
|
172
160
|
defaultValue: "Regenerate"
|
|
173
161
|
})
|
|
174
162
|
}
|
|
175
163
|
) : null,
|
|
176
|
-
|
|
164
|
+
c ? /* @__PURE__ */ e(
|
|
177
165
|
O,
|
|
178
166
|
{
|
|
179
167
|
icon: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
|
|
180
168
|
size: "sm",
|
|
181
169
|
intent: "ghost",
|
|
182
170
|
"aria-label": m("common.close", { defaultValue: "Close" }),
|
|
183
|
-
onClick:
|
|
171
|
+
onClick: c
|
|
184
172
|
}
|
|
185
173
|
) : null
|
|
186
174
|
] }) : void 0
|
|
@@ -190,10 +178,10 @@ const Z = [
|
|
|
190
178
|
s || d || o && o.length > 0 ? /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
191
179
|
s ? /* @__PURE__ */ a("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
192
180
|
/* @__PURE__ */ e(
|
|
193
|
-
|
|
181
|
+
$,
|
|
194
182
|
{
|
|
195
183
|
name: s,
|
|
196
|
-
src:
|
|
184
|
+
src: E,
|
|
197
185
|
size: "sm",
|
|
198
186
|
className: "ds:shrink-0"
|
|
199
187
|
}
|
|
@@ -215,25 +203,25 @@ const Z = [
|
|
|
215
203
|
{
|
|
216
204
|
role: "list",
|
|
217
205
|
className: "ds:m-0 ds:flex ds:list-none ds:items-stretch",
|
|
218
|
-
children: o.map((r,
|
|
206
|
+
children: o.map((r, A) => /* @__PURE__ */ a(
|
|
219
207
|
"li",
|
|
220
208
|
{
|
|
221
209
|
className: [
|
|
222
210
|
"ds:flex ds:flex-1 ds:flex-col ds:items-center ds:gap-[var(--spacing-2xs)] ds:p-[var(--spacing-sm)] ds:text-center",
|
|
223
|
-
|
|
211
|
+
A > 0 ? "ds:border-s ds:border-[color:var(--card-border)]" : ""
|
|
224
212
|
].filter(Boolean).join(" "),
|
|
225
213
|
children: [
|
|
226
214
|
/* @__PURE__ */ e("span", { className: "type-metric ds:[--type-metric-size:var(--font-size-lg)] ds:text-[color:var(--foreground)]", children: r.value }),
|
|
227
215
|
/* @__PURE__ */ e("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: r.label })
|
|
228
216
|
]
|
|
229
217
|
},
|
|
230
|
-
`${r.label}-${
|
|
218
|
+
`${r.label}-${A}`
|
|
231
219
|
))
|
|
232
220
|
}
|
|
233
221
|
) }) : null
|
|
234
222
|
] }) : null,
|
|
235
|
-
|
|
236
|
-
/* @__PURE__ */ e("p", { className: "ds:m-0 type-meta ds:text-[color:var(--muted-foreground)]", children:
|
|
223
|
+
g.map((r) => /* @__PURE__ */ e(te, { section: r }, r.id)),
|
|
224
|
+
/* @__PURE__ */ e("p", { className: "ds:m-0 type-meta ds:text-[color:var(--muted-foreground)]", children: R ?? m("entitySummary.disclaimer", {
|
|
237
225
|
defaultValue: "Does not replace clinical judgement · verify accuracy before clinical use · BETA"
|
|
238
226
|
}) })
|
|
239
227
|
] })
|
|
@@ -242,7 +230,7 @@ const Z = [
|
|
|
242
230
|
);
|
|
243
231
|
}
|
|
244
232
|
);
|
|
245
|
-
function
|
|
233
|
+
function te({ section: t }) {
|
|
246
234
|
const n = w();
|
|
247
235
|
return t.tone === "attention" ? /* @__PURE__ */ a(
|
|
248
236
|
I,
|
|
@@ -253,12 +241,12 @@ function ae({ section: t }) {
|
|
|
253
241
|
className: "ds:shadow-[var(--shadow-card)]",
|
|
254
242
|
children: [
|
|
255
243
|
/* @__PURE__ */ e(I.Title, { as: "h3", children: t.heading }),
|
|
256
|
-
/* @__PURE__ */ e("ul", { className:
|
|
244
|
+
/* @__PURE__ */ e("ul", { className: k, children: t.items.map((i, s) => /* @__PURE__ */ e("li", { children: i }, s)) })
|
|
257
245
|
]
|
|
258
246
|
}
|
|
259
247
|
) : /* @__PURE__ */ e(C, { variant: "elevated", "aria-labelledby": n, children: /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
260
248
|
/* @__PURE__ */ a("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
261
|
-
t.icon ? /* @__PURE__ */ e("span", { "aria-hidden": "true", className:
|
|
249
|
+
t.icon ? /* @__PURE__ */ e("span", { "aria-hidden": "true", className: ee, children: t.icon }) : null,
|
|
262
250
|
/* @__PURE__ */ e(
|
|
263
251
|
"h3",
|
|
264
252
|
{
|
|
@@ -268,10 +256,10 @@ function ae({ section: t }) {
|
|
|
268
256
|
}
|
|
269
257
|
)
|
|
270
258
|
] }),
|
|
271
|
-
/* @__PURE__ */ e("ul", { className: `${
|
|
259
|
+
/* @__PURE__ */ e("ul", { className: `${k} ds:text-[color:var(--foreground)]`, children: t.items.map((i, s) => /* @__PURE__ */ e("li", { children: i }, s)) })
|
|
272
260
|
] }) });
|
|
273
261
|
}
|
|
274
262
|
export {
|
|
275
|
-
|
|
263
|
+
ve as E
|
|
276
264
|
};
|
|
277
|
-
//# sourceMappingURL=entity-summary-
|
|
265
|
+
//# sourceMappingURL=entity-summary-KHM0PnSI.js.map
|