@alfadocs/ui-kit 1.142.0 → 1.143.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/{ai-permission-notice-C-xR2_iS.js → ai-permission-notice-CEDEWE2-.js} +19 -11
- package/dist/_chunks/{ai-summary-panel-BhCo2vZF.js → ai-summary-panel-CJVOjr2I.js} +3 -3
- package/dist/_chunks/{alia-sidebar-uxTsUbIt.js → alia-sidebar-AKz42_XE.js} +2 -2
- package/dist/_chunks/{anamnesis-card-sUFT0dpF.js → anamnesis-card-W8ZaDytS.js} +15 -14
- package/dist/_chunks/{anamnesis-summary-rows-C2Ca9_Qj.js → anamnesis-summary-rows-wUl7oXBO.js} +2 -2
- package/dist/_chunks/{appointment-card-C0UFYFLZ.js → appointment-card-HOZrABrQ.js} +2 -2
- package/dist/_chunks/{appointment-details-panel.history-BUXwhill.js → appointment-details-panel.history-B8R8XfGe.js} +36 -29
- package/dist/_chunks/appointment-timeline-CMc_3C74.js +776 -0
- package/dist/_chunks/{appointment-tray-dfgScPcC.js → appointment-tray-D8k5YKLU.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-CXi6moSa.js → balance-badge-cell-10BdaOQ8.js} +4 -4
- package/dist/_chunks/{calendar-appointment-editor-dialog-BDc8Q4Ji.js → calendar-appointment-editor-dialog-9kVppi9f.js} +8 -8
- package/dist/_chunks/{calendar-waiting-list-panel-js-0KEh8.js → calendar-waiting-list-panel-CSFJw5np.js} +2 -2
- package/dist/_chunks/{calendar.sheets-sBWH7Jxn.js → calendar.sheets-DZh3p8HE.js} +4 -4
- package/dist/_chunks/{care-plan-card-TZH6C60K.js → care-plan-card-CkRqA58O.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CufvXAWa.js → care-plan-entry-card-DurPuYAP.js} +2 -2
- package/dist/_chunks/{care-plan-header-CeFXUDnL.js → care-plan-header-C4i93i8H.js} +2 -2
- package/dist/_chunks/{chat-message-B4TMeZ2m.js → chat-message-IG9uRq6y.js} +2 -2
- package/dist/_chunks/{clinical-note-card-D--IwbZa.js → clinical-note-card-D-9xmRpf.js} +68 -52
- package/dist/_chunks/{communications-panel-EP27FN7e.js → communications-panel-MgAuWYBy.js} +3 -3
- package/dist/_chunks/{control-room-rail-7SidoPJH.js → control-room-rail-DBmNpbDE.js} +2 -2
- package/dist/_chunks/{data-table-Bq1FRBGB.js → data-table-Huk4CNHs.js} +115 -115
- package/dist/_chunks/{entity-summary-CPUHzyil.js → entity-summary-DgZSdp6d.js} +2 -2
- package/dist/_chunks/{file-manager-ChQSjfU8.js → file-manager-kdPsJq_k.js} +2 -2
- package/dist/_chunks/{heatmap-D0OGx-70.js → heatmap-Cb4JSpv_.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-ByOAy2Sb.js → link-cell-renderer-Bt_sl4iP.js} +3 -3
- package/dist/_chunks/{message-card-Bw_q1qKx.js → message-card-DvBjcZgH.js} +10 -9
- package/dist/_chunks/{message-tray-g6dp_AAt.js → message-tray-BHaE254g.js} +2 -2
- package/dist/_chunks/{notes-panel-CtMLUJOe.js → notes-panel-DCKbuZqS.js} +399 -397
- package/dist/_chunks/{notification-card-DRMv2_pW.js → notification-card-CDuzAytQ.js} +11 -10
- package/dist/_chunks/{notification-tray-DqCYs9Bw.js → notification-tray-CnPV8jDA.js} +2 -2
- package/dist/_chunks/{patient-account-settings-e8Wp2g-F.js → patient-account-settings-BQ9bMsJS.js} +2 -2
- package/dist/_chunks/{patient-check-in-resume-_nwf9gpx.js → patient-check-in-resume-v5lYhMsh.js} +4 -4
- package/dist/_chunks/{portal-details-D9oF6FUV.js → portal-details-CwX3VNxh.js} +2 -2
- package/dist/_chunks/{portal-documents-DSiLSave.js → portal-documents-BWdXhWpZ.js} +2 -2
- package/dist/_chunks/{portal-parts-8qrUM-uK.js → portal-parts-DbCMuZVl.js} +2 -2
- package/dist/_chunks/{prescription-history-DFcPXYdF.js → prescription-history-DPjqflwJ.js} +2 -2
- package/dist/_chunks/{product-hub-panel-BPpmVDm5.js → product-hub-panel-DiWjSIR2.js} +2 -2
- package/dist/_chunks/{recaptcha-widget-iglUBIF3.js → recaptcha-widget-D6RwGg8B.js} +35 -35
- package/dist/_chunks/{registration-form-DRGMzq9V.js → registration-form-BEsIjznv.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CQ54ybTB.js → rich-text-editor-DoCaj0qc.js} +2 -2
- package/dist/_chunks/{sync-tray-BTmveFGE.js → sync-tray-BgrO4QjH.js} +55 -53
- package/dist/_chunks/{tasks-panel-Dmp49cBo.js → tasks-panel-CDFHAHrN.js} +137 -137
- package/dist/_chunks/{timeline-DXko0M1t.js → timeline-BzGi_3GQ.js} +2 -2
- package/dist/_chunks/timestamp-UMF1llBs.js +113 -0
- package/dist/_chunks/{tool-rail-CKOuVHUQ.js → tool-rail-mWmYNRCV.js} +56 -56
- package/dist/_chunks/{use-appointment-details-read-DIRHedaM.js → use-appointment-details-read-xj0PyEhI.js} +591 -576
- package/dist/_chunks/use-resolved-theme-B0f1_oyq.js +32 -0
- package/dist/_chunks/{voice-control-panel-CfBUrzhJ.js → voice-control-panel-DqvvZN2A.js} +2 -2
- package/dist/_chunks/{workflow-map-CsfRHhlz.js → workflow-map-CwfLHuiD.js} +2 -2
- package/dist/agent-catalog.json +10 -7
- package/dist/agent-i18n/en.json +3 -3
- package/dist/appointment-editor-panel/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/ai-summary-panel/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +3 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +5 -0
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +27 -0
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +2 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/communications-panel/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +5 -4
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/recaptcha-widget/recaptcha-widget.d.ts +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/sync-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timestamp/index.js +1 -1
- package/dist/components/timestamp/timestamp.d.ts +6 -0
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +58 -56
- package/dist/hooks/use-resolved-theme.d.ts +20 -0
- package/dist/i18n/locales/ar.d.ts +5 -0
- package/dist/i18n/locales/ar.js +5 -0
- package/dist/i18n/locales/de.d.ts +5 -0
- package/dist/i18n/locales/de.js +5 -0
- package/dist/i18n/locales/el.d.ts +5 -0
- package/dist/i18n/locales/el.js +5 -0
- package/dist/i18n/locales/en.d.ts +5 -0
- package/dist/i18n/locales/en.js +5 -0
- package/dist/i18n/locales/es.d.ts +5 -0
- package/dist/i18n/locales/es.js +5 -0
- package/dist/i18n/locales/fr.d.ts +5 -0
- package/dist/i18n/locales/fr.js +5 -0
- package/dist/i18n/locales/hi.d.ts +5 -0
- package/dist/i18n/locales/hi.js +5 -0
- package/dist/i18n/locales/it.d.ts +5 -0
- package/dist/i18n/locales/it.js +5 -0
- package/dist/i18n/locales/ja.d.ts +5 -0
- package/dist/i18n/locales/ja.js +5 -0
- package/dist/i18n/locales/nl.d.ts +5 -0
- package/dist/i18n/locales/nl.js +5 -0
- package/dist/i18n/locales/pl.d.ts +5 -0
- package/dist/i18n/locales/pl.js +5 -0
- package/dist/i18n/locales/pt.d.ts +5 -0
- package/dist/i18n/locales/pt.js +5 -0
- package/dist/i18n/locales/ro.d.ts +5 -0
- package/dist/i18n/locales/ro.js +5 -0
- package/dist/i18n/locales/ru.d.ts +5 -0
- package/dist/i18n/locales/ru.js +5 -0
- package/dist/i18n/locales/sq.d.ts +5 -0
- package/dist/i18n/locales/sq.js +5 -0
- package/dist/i18n/locales/sv.d.ts +5 -0
- package/dist/i18n/locales/sv.js +5 -0
- package/dist/i18n/locales/tr.d.ts +5 -0
- package/dist/i18n/locales/tr.js +5 -0
- package/dist/i18n/locales/zh.d.ts +5 -0
- package/dist/i18n/locales/zh.js +5 -0
- package/dist/index.js +44 -44
- package/dist/locales/ar.json +5 -0
- package/dist/locales/de.json +5 -0
- package/dist/locales/el.json +5 -0
- package/dist/locales/en.json +5 -0
- package/dist/locales/es.json +5 -0
- package/dist/locales/fr.json +5 -0
- package/dist/locales/hi.json +5 -0
- package/dist/locales/it.json +5 -0
- package/dist/locales/ja.json +5 -0
- package/dist/locales/nl.json +5 -0
- package/dist/locales/pl.json +5 -0
- package/dist/locales/pt.json +5 -0
- package/dist/locales/ro.json +5 -0
- package/dist/locales/ru.json +5 -0
- package/dist/locales/sq.json +5 -0
- package/dist/locales/sv.json +5 -0
- package/dist/locales/tr.json +5 -0
- package/dist/locales/zh.json +5 -0
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +2 -2
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/prescription/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +1 -1
- package/dist/_chunks/appointment-timeline-BK68CCBl.js +0 -689
- package/dist/_chunks/timestamp-DPLDWdxA.js +0 -109
|
@@ -6,10 +6,10 @@ import { A as g } from "./alert-C4WKViaS.js";
|
|
|
6
6
|
import { B as D } from "./badge-BUk4RjTS.js";
|
|
7
7
|
import { B as H } from "./button-DohK_Ak_.js";
|
|
8
8
|
import { C as J } from "./checkbox-DV4sNDeB.js";
|
|
9
|
-
import { S as
|
|
10
|
-
import { T as
|
|
11
|
-
import { u as
|
|
12
|
-
const
|
|
9
|
+
import { S as O } from "./spinner-CoflYlEx.js";
|
|
10
|
+
import { T as U } from "./timestamp-UMF1llBs.js";
|
|
11
|
+
import { u as W } from "./registry-DvAUVLHh.js";
|
|
12
|
+
const _ = {
|
|
13
13
|
id: "ai-consent-banner",
|
|
14
14
|
capabilities: [],
|
|
15
15
|
state: {
|
|
@@ -39,7 +39,7 @@ const $ = {
|
|
|
39
39
|
description: "Sourced from the id prop. Required to address a specific banner from the agent."
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
},
|
|
42
|
+
}, $ = M("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
43
43
|
variants: {
|
|
44
44
|
state: {
|
|
45
45
|
granted: "",
|
|
@@ -131,7 +131,7 @@ const q = {
|
|
|
131
131
|
}),
|
|
132
132
|
[c, b]
|
|
133
133
|
);
|
|
134
|
-
_
|
|
134
|
+
W(_, K, i);
|
|
135
135
|
const Y = r(w) || r(e == null ? void 0 : e.title) || t("aiConsentBanner.regionLabel", "AI assistance consent"), j = s === "granted" ? "success" : "info";
|
|
136
136
|
let u;
|
|
137
137
|
return s === "granted" ? u = /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
@@ -140,7 +140,15 @@ const q = {
|
|
|
140
140
|
p !== void 0 ? /* @__PURE__ */ d("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: [
|
|
141
141
|
t("aiConsentBanner.grantedAtPrefix", "Granted"),
|
|
142
142
|
" ",
|
|
143
|
-
/* @__PURE__ */ n(
|
|
143
|
+
/* @__PURE__ */ n(
|
|
144
|
+
U,
|
|
145
|
+
{
|
|
146
|
+
value: p,
|
|
147
|
+
format: "relative",
|
|
148
|
+
shape: "inline",
|
|
149
|
+
pastOnly: !0
|
|
150
|
+
}
|
|
151
|
+
)
|
|
144
152
|
] }) : null
|
|
145
153
|
] }),
|
|
146
154
|
h ? /* @__PURE__ */ n("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: t("aiConsentBanner.grantedBy", {
|
|
@@ -148,7 +156,7 @@ const q = {
|
|
|
148
156
|
defaultValue: "By {{name}}"
|
|
149
157
|
}) }) : null
|
|
150
158
|
] }) : s === "pending" ? u = /* @__PURE__ */ d("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
151
|
-
/* @__PURE__ */ n(
|
|
159
|
+
/* @__PURE__ */ n(O, { variant: "pulse", size: "sm", label: a.pendingLabel }),
|
|
152
160
|
/* @__PURE__ */ n("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: a.pendingLabel })
|
|
153
161
|
] }) : u = L ? /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
154
162
|
/* @__PURE__ */ n(
|
|
@@ -180,7 +188,7 @@ const q = {
|
|
|
180
188
|
"data-component-id": i,
|
|
181
189
|
"data-state": s,
|
|
182
190
|
id: i,
|
|
183
|
-
className:
|
|
191
|
+
className: $({ state: s, className: R }),
|
|
184
192
|
...G,
|
|
185
193
|
children: /* @__PURE__ */ d(
|
|
186
194
|
g,
|
|
@@ -201,6 +209,6 @@ const q = {
|
|
|
201
209
|
Q.displayName = "AiConsentBanner";
|
|
202
210
|
export {
|
|
203
211
|
Q as A,
|
|
204
|
-
|
|
212
|
+
_ as a
|
|
205
213
|
};
|
|
206
|
-
//# sourceMappingURL=ai-permission-notice-
|
|
214
|
+
//# sourceMappingURL=ai-permission-notice-CEDEWE2-.js.map
|
|
@@ -4,7 +4,7 @@ import { c as Tt } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as he } from "react-i18next";
|
|
5
5
|
import { u as Nt } from "./registry-DvAUVLHh.js";
|
|
6
6
|
import { g as Je } from "./get-error-message-DbFUzuja.js";
|
|
7
|
-
import { A as At } from "./ai-permission-notice-
|
|
7
|
+
import { A as At } from "./ai-permission-notice-CEDEWE2-.js";
|
|
8
8
|
import { A as kt } from "./ai-credits-exhausted-notice-Lws3113e.js";
|
|
9
9
|
import { A as x } from "./alert-C4WKViaS.js";
|
|
10
10
|
import { A as Et } from "./avatar-Dp5apm1d.js";
|
|
@@ -12,7 +12,7 @@ import { B as Qe } from "./badge-BUk4RjTS.js";
|
|
|
12
12
|
import { B as ue } from "./button-DohK_Ak_.js";
|
|
13
13
|
import { I as Rt } from "./icon-button-S8_weU3g.js";
|
|
14
14
|
import { E as b } from "./empty-state-DwJ5YNzz.js";
|
|
15
|
-
import { E as Ct } from "./entity-summary-
|
|
15
|
+
import { E as Ct } from "./entity-summary-DgZSdp6d.js";
|
|
16
16
|
import { L as rt } from "./link-CeV7FoI6.js";
|
|
17
17
|
import { P as Xe } from "./panel-header-CbtlTe85.js";
|
|
18
18
|
import { S as Ae } from "./skeleton-tTWJpvAq.js";
|
|
@@ -1042,4 +1042,4 @@ export {
|
|
|
1042
1042
|
Wt as A,
|
|
1043
1043
|
zt as a
|
|
1044
1044
|
};
|
|
1045
|
-
//# sourceMappingURL=ai-summary-panel-
|
|
1045
|
+
//# sourceMappingURL=ai-summary-panel-CJVOjr2I.js.map
|
|
@@ -11,7 +11,7 @@ import { AliaAsteroidIcon as he } from "../alia-asteroid-icon/index.js";
|
|
|
11
11
|
import { A as te } from "./avatar-Dp5apm1d.js";
|
|
12
12
|
import { B as H } from "./button-DohK_Ak_.js";
|
|
13
13
|
import { C as os } from "./chat-container-CoOT7dzB.js";
|
|
14
|
-
import { C as cs } from "./chat-message-
|
|
14
|
+
import { C as cs } from "./chat-message-IG9uRq6y.js";
|
|
15
15
|
import { C as Se, P as ms } from "./chat-input-BmvnuZqj.js";
|
|
16
16
|
import { S as us } from "./streaming-text-Nb3Q7L94.js";
|
|
17
17
|
import { a as Re, S as _e } from "./suggestion-chip-BNRWZL51.js";
|
|
@@ -1320,4 +1320,4 @@ export {
|
|
|
1320
1320
|
Ks as b,
|
|
1321
1321
|
Gs as c
|
|
1322
1322
|
};
|
|
1323
|
-
//# sourceMappingURL=alia-sidebar-
|
|
1323
|
+
//# sourceMappingURL=alia-sidebar-AKz42_XE.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as M, useId as C, useMemo as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
2
|
+
import { forwardRef as M, useId as C, useMemo as O } from "react";
|
|
3
|
+
import { c as R } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as q } from "react-i18next";
|
|
5
5
|
import { B as n } from "./badge-BUk4RjTS.js";
|
|
6
6
|
import { C as N } from "./card-n6W6LW-N.js";
|
|
7
|
-
import { A as
|
|
7
|
+
import { A as z, b as G, c as Q, a as S } from "./accordion-Ch3xp0mX.js";
|
|
8
8
|
import { D as t } from "./description-list-BxzDN9o2.js";
|
|
9
|
-
import { T as
|
|
10
|
-
import { T as
|
|
11
|
-
const H =
|
|
9
|
+
import { T as y } from "./timestamp-UMF1llBs.js";
|
|
10
|
+
import { T as w } from "./triangle-alert-CBnO6nq_.js";
|
|
11
|
+
const H = R("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
12
12
|
variants: {
|
|
13
13
|
// Matches the kit's other `surface` props. `'elevated'` (default)
|
|
14
14
|
// wraps in `<Card variant="elevated">`; `'flat'` drops the chrome
|
|
@@ -33,7 +33,7 @@ const H = q("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
|
33
33
|
className: D,
|
|
34
34
|
...F
|
|
35
35
|
}, I) => {
|
|
36
|
-
const { t: a } =
|
|
36
|
+
const { t: a } = q("ui"), h = C(), L = C(), v = T ?? a("anamnesisCard.defaultFormName", { defaultValue: "Medical history" }), B = A ?? v, i = o > 0, c = (s == null ? void 0 : s.expired) === !0, m = (s == null ? void 0 : s.corrupted) === !0, g = (d == null ? void 0 : d.length) ?? 0, x = O(() => !i && !c && !m ? null : /* @__PURE__ */ r(
|
|
37
37
|
"div",
|
|
38
38
|
{
|
|
39
39
|
role: "list",
|
|
@@ -47,7 +47,7 @@ const H = q("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
|
47
47
|
{
|
|
48
48
|
variant: "error",
|
|
49
49
|
withDot: !0,
|
|
50
|
-
leading: /* @__PURE__ */ e(
|
|
50
|
+
leading: /* @__PURE__ */ e(w, { "aria-hidden": "true" }),
|
|
51
51
|
role: "listitem",
|
|
52
52
|
children: a("anamnesisCard.status.highlighted", {
|
|
53
53
|
count: o,
|
|
@@ -77,7 +77,7 @@ const H = q("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
|
77
77
|
/* @__PURE__ */ r("span", { children: [
|
|
78
78
|
a("anamnesisCard.compiledOn", { defaultValue: "Compiled" }),
|
|
79
79
|
" ",
|
|
80
|
-
/* @__PURE__ */ e(
|
|
80
|
+
/* @__PURE__ */ e(y, { value: V, format: "absolute", shape: "bare" })
|
|
81
81
|
] }),
|
|
82
82
|
u ? /* @__PURE__ */ r("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
83
83
|
/* @__PURE__ */ e("span", { "aria-hidden": "true", children: "·" }),
|
|
@@ -85,9 +85,10 @@ const H = q("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
|
85
85
|
a("anamnesisCard.submitted", { defaultValue: "Submitted" }),
|
|
86
86
|
" ",
|
|
87
87
|
/* @__PURE__ */ e(
|
|
88
|
-
|
|
88
|
+
y,
|
|
89
89
|
{
|
|
90
90
|
value: u,
|
|
91
|
+
pastOnly: !0,
|
|
91
92
|
format: "relative",
|
|
92
93
|
shape: "bare"
|
|
93
94
|
}
|
|
@@ -108,7 +109,7 @@ const H = q("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
|
108
109
|
variant: "error",
|
|
109
110
|
size: "sm",
|
|
110
111
|
withDot: !0,
|
|
111
|
-
leading: /* @__PURE__ */ e(
|
|
112
|
+
leading: /* @__PURE__ */ e(w, { "aria-hidden": "true" }),
|
|
112
113
|
"aria-label": a("anamnesisCard.answerFlagLabel", {
|
|
113
114
|
defaultValue: "Flagged answer"
|
|
114
115
|
})
|
|
@@ -123,7 +124,7 @@ const H = q("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
|
123
124
|
defaultValue: "No answers were recorded."
|
|
124
125
|
}) }), b = /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
125
126
|
j,
|
|
126
|
-
/* @__PURE__ */ e(
|
|
127
|
+
/* @__PURE__ */ e(z, { type: "single", collapsible: !0, variant: "separated", children: /* @__PURE__ */ r(G, { value: L, children: [
|
|
127
128
|
/* @__PURE__ */ e(Q, { children: a("anamnesisCard.interviewToggle", {
|
|
128
129
|
count: g,
|
|
129
130
|
defaultValue: "Interview ({{count}} answers)"
|
|
@@ -153,4 +154,4 @@ J.displayName = "AnamnesisCard";
|
|
|
153
154
|
export {
|
|
154
155
|
J as A
|
|
155
156
|
};
|
|
156
|
-
//# sourceMappingURL=anamnesis-card-
|
|
157
|
+
//# sourceMappingURL=anamnesis-card-W8ZaDytS.js.map
|
package/dist/_chunks/{anamnesis-summary-rows-C2Ca9_Qj.js → anamnesis-summary-rows-wUl7oXBO.js}
RENAMED
|
@@ -15,7 +15,7 @@ import { S as Me } from "./select-Bw5FvGJ7.js";
|
|
|
15
15
|
import { T as Q } from "./tabs-BOf9OO--.js";
|
|
16
16
|
import { T as na } from "./text-area-COMVJ1yE.js";
|
|
17
17
|
import { S as te } from "./state-backed-text-input-DVETOhSS.js";
|
|
18
|
-
import { T as Ze } from "./timestamp-
|
|
18
|
+
import { T as Ze } from "./timestamp-UMF1llBs.js";
|
|
19
19
|
import { D as sn } from "./date-picker-CD-PBzXM.js";
|
|
20
20
|
import { A as Ue } from "./alert-C4WKViaS.js";
|
|
21
21
|
import { D as L } from "./description-list-BxzDN9o2.js";
|
|
@@ -20936,4 +20936,4 @@ export {
|
|
|
20936
20936
|
Vi as t,
|
|
20937
20937
|
od as u
|
|
20938
20938
|
};
|
|
20939
|
-
//# sourceMappingURL=anamnesis-summary-rows-
|
|
20939
|
+
//# sourceMappingURL=anamnesis-summary-rows-wUl7oXBO.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as Sa } from "react-i18next";
|
|
|
5
5
|
import { A as ta } from "./avatar-Dp5apm1d.js";
|
|
6
6
|
import { B as o } from "./badge-BUk4RjTS.js";
|
|
7
7
|
import { T as Ma } from "./tag-BNlcEJfE.js";
|
|
8
|
-
import { T as Ra } from "./timestamp-
|
|
8
|
+
import { T as Ra } from "./timestamp-UMF1llBs.js";
|
|
9
9
|
import { T as oa } from "./transaction-chip-CkYd-3ky.js";
|
|
10
10
|
import { i as Aa } from "./is-development-CLUAnsU7.js";
|
|
11
11
|
import { V as ia } from "./visually-hidden-BHxEUGyT.js";
|
|
@@ -515,4 +515,4 @@ ts.displayName = "AppointmentCard";
|
|
|
515
515
|
export {
|
|
516
516
|
ts as A
|
|
517
517
|
};
|
|
518
|
-
//# sourceMappingURL=appointment-card-
|
|
518
|
+
//# sourceMappingURL=appointment-card-HOZrABrQ.js.map
|
|
@@ -3,43 +3,44 @@ import { jsx as s, jsxs as p } from "react/jsx-runtime";
|
|
|
3
3
|
import { useTranslation as P } from "react-i18next";
|
|
4
4
|
import { s as F, D as $ } from "./appointment-details-panel.identity-C20Y9xNC.js";
|
|
5
5
|
import { E as L } from "./empty-state-DwJ5YNzz.js";
|
|
6
|
-
import { T as v } from "./timeline-
|
|
6
|
+
import { T as v } from "./timeline-BzGi_3GQ.js";
|
|
7
7
|
import { a as W } from "./workflow-status-Cg7yjnye.js";
|
|
8
8
|
import { u as j } from "./appointment-workflow-status-S-lx81Yz.js";
|
|
9
9
|
import { C as R } from "./calendar-clock-hbObjfGY.js";
|
|
10
10
|
import { T as B } from "./trash-2-uumy3fy1.js";
|
|
11
|
-
import { A as
|
|
12
|
-
import { C as H } from "./
|
|
11
|
+
import { A as z } from "./entity-card-p-LANpYt.js";
|
|
12
|
+
import { C as H } from "./copy-vRpqqHtY.js";
|
|
13
|
+
import { C as G } from "./calendar-plus-BFrIRE4r.js";
|
|
13
14
|
import { P as k } from "./pencil-B1sKKyuT.js";
|
|
14
15
|
import { C as T } from "./clock-Drd4Wtis.js";
|
|
15
|
-
import { A as
|
|
16
|
+
import { A as K } from "./arrow-right-KsIrLdt0.js";
|
|
16
17
|
/**
|
|
17
18
|
* @license lucide-react v1.22.0 - ISC
|
|
18
19
|
*
|
|
19
20
|
* This source code is licensed under the ISC license.
|
|
20
21
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
22
|
*/
|
|
22
|
-
const
|
|
23
|
+
const Y = [
|
|
23
24
|
["path", { d: "M11 14h10", key: "1w8e9d" }],
|
|
24
25
|
["path", { d: "M16 4h2a2 2 0 0 1 2 2v1.344", key: "1e62lh" }],
|
|
25
26
|
["path", { d: "m17 18 4-4-4-4", key: "z2g111" }],
|
|
26
27
|
["path", { d: "M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113", key: "bjbb7m" }],
|
|
27
28
|
["rect", { x: "8", y: "2", width: "8", height: "4", rx: "1", key: "ublpy" }]
|
|
28
|
-
],
|
|
29
|
+
], pt = A("clipboard-paste", Y);
|
|
29
30
|
/**
|
|
30
31
|
* @license lucide-react v1.22.0 - ISC
|
|
31
32
|
*
|
|
32
33
|
* This source code is licensed under the ISC license.
|
|
33
34
|
* See the LICENSE file in the root directory of this source tree.
|
|
34
35
|
*/
|
|
35
|
-
const
|
|
36
|
+
const U = [
|
|
36
37
|
["path", { d: "M12 2v20", key: "t6zp3m" }],
|
|
37
38
|
["path", { d: "m15 19-3 3-3-3", key: "11eu04" }],
|
|
38
39
|
["path", { d: "m19 9 3 3-3 3", key: "1mg7y2" }],
|
|
39
40
|
["path", { d: "M2 12h20", key: "9i4pu4" }],
|
|
40
41
|
["path", { d: "m5 9-3 3 3 3", key: "j64kie" }],
|
|
41
42
|
["path", { d: "m9 5 3-3 3 3", key: "l8vdw6" }]
|
|
42
|
-
],
|
|
43
|
+
], C = A("move", U), i = (o) => `calendarWorkspace.details.${o}`, V = /* @__PURE__ */ new Set(["patient", "care"]), S = /^#?(?:[0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i, X = (o) => {
|
|
43
44
|
switch (o.field) {
|
|
44
45
|
case "time":
|
|
45
46
|
return !!(o.fromIso || o.toIso);
|
|
@@ -49,25 +50,25 @@ const Y = [
|
|
|
49
50
|
return !!(o.from || o.to);
|
|
50
51
|
}
|
|
51
52
|
};
|
|
52
|
-
function
|
|
53
|
+
function q(o) {
|
|
53
54
|
const f = o.kind === "moved" ? [{ field: "time", fromIso: o.fromIso, toIso: o.toIso }] : o.kind === "resized" ? [{ field: "duration", fromMin: o.fromMin, toMin: o.toMin }] : o.kind === "status" ? [{ field: "status", from: o.from, to: o.to }] : [], w = ("changes" in o ? o.changes ?? [] : []).filter(
|
|
54
|
-
|
|
55
|
+
X
|
|
55
56
|
), y = new Set(f.map((e) => e.field));
|
|
56
57
|
return [
|
|
57
58
|
...f,
|
|
58
59
|
...w.filter((e) => y.has(e.field) ? !1 : (y.add(e.field), !0))
|
|
59
60
|
];
|
|
60
61
|
}
|
|
61
|
-
const
|
|
62
|
-
function
|
|
62
|
+
const J = (o, f) => o.getFullYear() === f.getFullYear() && o.getMonth() === f.getMonth() && o.getDate() === f.getDate();
|
|
63
|
+
function ht({
|
|
63
64
|
history: o,
|
|
64
65
|
locale: f,
|
|
65
66
|
noteUnrecordedEdits: w = !1,
|
|
66
67
|
privacy: y = !1
|
|
67
68
|
}) {
|
|
68
|
-
const { t: e, i18n: D } = P("ui"), { optionFor: I } = j(null),
|
|
69
|
+
const { t: e, i18n: D } = P("ui"), { optionFor: I } = j(null), g = f ?? D.language, N = (t, d) => {
|
|
69
70
|
try {
|
|
70
|
-
return new Intl.DateTimeFormat(
|
|
71
|
+
return new Intl.DateTimeFormat(g, d).format(
|
|
71
72
|
new Date(t)
|
|
72
73
|
);
|
|
73
74
|
} catch {
|
|
@@ -81,7 +82,7 @@ function ut({
|
|
|
81
82
|
to: t.to && I(t.to).label
|
|
82
83
|
};
|
|
83
84
|
case "time": {
|
|
84
|
-
const d = t.fromIso && new Date(t.fromIso), a = t.toIso && new Date(t.toIso), l = d && a &&
|
|
85
|
+
const d = t.fromIso && new Date(t.fromIso), a = t.toIso && new Date(t.toIso), l = d && a && J(d, a) ? N(t.toIso, {
|
|
85
86
|
hour: "2-digit",
|
|
86
87
|
minute: "2-digit"
|
|
87
88
|
}) : void 0;
|
|
@@ -100,13 +101,13 @@ function ut({
|
|
|
100
101
|
}
|
|
101
102
|
}, O = (t) => {
|
|
102
103
|
const d = e(i(`history.fields.${t.field}`)), { from: a, to: l } = x(t);
|
|
103
|
-
return t.field === "colour" && [a, l].some((u) => u &&
|
|
104
|
+
return t.field === "colour" && [a, l].some((u) => u && S.test(u)) ? e(i("history.changed.colour")) : a && !l ? e(i("history.changeCleared"), { field: d, from: a }) : !a && l ? e(i("history.changeSet"), { field: d, to: l }) : e(i("history.changeFromTo"), {
|
|
104
105
|
field: d,
|
|
105
106
|
from: a ?? b,
|
|
106
107
|
to: l ?? b
|
|
107
108
|
});
|
|
108
109
|
}, h = (t) => {
|
|
109
|
-
const d = (n, c) => n && t.field === "colour" &&
|
|
110
|
+
const d = (n, c) => n && t.field === "colour" && S.test(n) ? /* @__PURE__ */ s(
|
|
110
111
|
"span",
|
|
111
112
|
{
|
|
112
113
|
className: "ds:inline-block ds:size-4 ds:shrink-0 ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--border)] ds:[background-color:var(--history-swatch)] ds:forced-colors:[forced-color-adjust:none]",
|
|
@@ -138,7 +139,7 @@ function ut({
|
|
|
138
139
|
children: [
|
|
139
140
|
t.field === "status" ? a(t.from) : d(l, !1),
|
|
140
141
|
/* @__PURE__ */ s(
|
|
141
|
-
|
|
142
|
+
K,
|
|
142
143
|
{
|
|
143
144
|
className: "ds:size-4 ds:shrink-0 ds:text-[color:var(--muted-foreground)] ds:rtl:rotate-180",
|
|
144
145
|
"aria-hidden": "true"
|
|
@@ -155,10 +156,16 @@ function ut({
|
|
|
155
156
|
return {
|
|
156
157
|
title: e(i("history.created")),
|
|
157
158
|
type: "success",
|
|
159
|
+
icon: /* @__PURE__ */ s(G, { size: 16, "aria-hidden": "true" })
|
|
160
|
+
};
|
|
161
|
+
case "copied":
|
|
162
|
+
return {
|
|
163
|
+
title: e(i("history.copied")),
|
|
164
|
+
type: "success",
|
|
158
165
|
icon: /* @__PURE__ */ s(H, { size: 16, "aria-hidden": "true" })
|
|
159
166
|
};
|
|
160
167
|
case "confirmedByPatient": {
|
|
161
|
-
const r =
|
|
168
|
+
const r = z.confirmed.Icon;
|
|
162
169
|
return {
|
|
163
170
|
title: e(i("history.confirmedByPatient")),
|
|
164
171
|
type: "success",
|
|
@@ -172,7 +179,7 @@ function ut({
|
|
|
172
179
|
icon: /* @__PURE__ */ s(B, { size: 16, "aria-hidden": "true" })
|
|
173
180
|
};
|
|
174
181
|
}
|
|
175
|
-
const d =
|
|
182
|
+
const d = q(t), a = y ? d.filter((r) => !V.has(r.field)) : d, l = new Set(a.map((r) => r.field)), u = [
|
|
176
183
|
...t.kind === "edited" ? t.fields : [],
|
|
177
184
|
...d.filter((r) => !l.has(r.field)).map((r) => r.field)
|
|
178
185
|
].filter(
|
|
@@ -183,7 +190,7 @@ function ut({
|
|
|
183
190
|
if (a.length === 1 && c && !n)
|
|
184
191
|
switch (c.field) {
|
|
185
192
|
case "status": {
|
|
186
|
-
const { to: r } = c, m = r ?
|
|
193
|
+
const { to: r } = c, m = r ? z[r].Icon : k;
|
|
187
194
|
return {
|
|
188
195
|
title: e(i("history.status")),
|
|
189
196
|
type: r === "cancelled" || r === "absent" ? "warning" : "neutral",
|
|
@@ -195,7 +202,7 @@ function ut({
|
|
|
195
202
|
return {
|
|
196
203
|
title: e(i("history.moved")),
|
|
197
204
|
type: "info",
|
|
198
|
-
icon: /* @__PURE__ */ s(
|
|
205
|
+
icon: /* @__PURE__ */ s(C, { size: 16, "aria-hidden": "true" }),
|
|
199
206
|
detail: h(c)
|
|
200
207
|
};
|
|
201
208
|
case "duration":
|
|
@@ -216,14 +223,14 @@ function ut({
|
|
|
216
223
|
if (a.length > 0) {
|
|
217
224
|
const r = t.kind === "moved" ? {
|
|
218
225
|
title: "history.moved",
|
|
219
|
-
icon: /* @__PURE__ */ s(
|
|
226
|
+
icon: /* @__PURE__ */ s(C, { size: 16, "aria-hidden": "true" })
|
|
220
227
|
} : t.kind === "resized" ? {
|
|
221
228
|
title: "history.resized",
|
|
222
229
|
icon: /* @__PURE__ */ s(T, { size: 16, "aria-hidden": "true" })
|
|
223
230
|
} : t.kind === "status" ? {
|
|
224
231
|
title: "history.status",
|
|
225
232
|
icon: (() => {
|
|
226
|
-
const m =
|
|
233
|
+
const m = z[t.to].Icon;
|
|
227
234
|
return /* @__PURE__ */ s(m, { size: 16, "aria-hidden": "true" });
|
|
228
235
|
})()
|
|
229
236
|
} : {
|
|
@@ -294,7 +301,7 @@ function ut({
|
|
|
294
301
|
{
|
|
295
302
|
date: t.atIso,
|
|
296
303
|
relative: !1,
|
|
297
|
-
locale:
|
|
304
|
+
locale: g
|
|
298
305
|
}
|
|
299
306
|
)
|
|
300
307
|
] })
|
|
@@ -307,8 +314,8 @@ function ut({
|
|
|
307
314
|
}) });
|
|
308
315
|
}
|
|
309
316
|
export {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
317
|
+
ht as A,
|
|
318
|
+
pt as C,
|
|
319
|
+
C as M
|
|
313
320
|
};
|
|
314
|
-
//# sourceMappingURL=appointment-details-panel.history-
|
|
321
|
+
//# sourceMappingURL=appointment-details-panel.history-B8R8XfGe.js.map
|