@alfadocs/ui-kit 1.33.0 → 1.34.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/{appointment-card-D-oj_ugh.js → appointment-card-D6mk39NB.js} +3 -3
- package/dist/_chunks/{appointment-timeline-CymGHyIP.js → appointment-timeline-D-V97Bhc.js} +2 -2
- package/dist/_chunks/{appointment-tray-DCk8gHod.js → appointment-tray-6rg071CL.js} +2 -2
- package/dist/_chunks/{calendar-workspace-BX-zDyVR.js → calendar-workspace-4NH1Z47_.js} +7 -7
- package/dist/_chunks/{clinical-note-card-D2WTV2CO.js → clinical-note-card-CTRzmqvv.js} +83 -81
- package/dist/_chunks/{contact-profile-card-BZqi8Hck.js → contact-profile-card-DSI9uumA.js} +17 -16
- package/dist/_chunks/{control-room-rail-iO_BCaq1.js → control-room-rail-5MbhjsxN.js} +2 -2
- package/dist/_chunks/format-price-BkMEbeW3.js +47 -0
- package/dist/_chunks/{format-price-DNqXPa_q.js → languages-CZqBaPwI.js} +8 -38
- package/dist/_chunks/money.agent-Dw55UxUA.js +116 -0
- package/dist/_chunks/notes-panel-BjLt-kiP.js +469 -0
- package/dist/_chunks/{practice-results-DjEzPgAK.js → practice-results-kayDEorM.js} +15 -14
- package/dist/_chunks/{rich-text-editor-CQ7yZdG3.js → rich-text-editor-CCI-Y3DN.js} +3 -5
- package/dist/_chunks/{task-card-BUgK6yZT.js → task-card-BalrLkSz.js} +41 -40
- package/dist/_chunks/{task-tray-CYG6rj2s.js → task-tray-COo-RlDv.js} +2 -2
- package/dist/_chunks/tasks-panel-DLKpSNoE.js +844 -0
- package/dist/_chunks/tool-rail-ONaV-Nzz.js +588 -0
- package/dist/_chunks/use-check-animation--I3cS00X.js +28 -0
- package/dist/_chunks/use-list-reflow-Cw43nxw5.js +100 -0
- package/dist/agent-catalog.json +15 -1
- package/dist/components/_shared/format-price.d.ts +15 -0
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +8 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/command-palette/command-palette.d.ts +7 -7
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/money/index.d.ts +4 -0
- package/dist/components/money/index.js +6 -0
- package/dist/components/money/money.agent.d.ts +3 -0
- package/dist/components/money/money.d.ts +38 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +16 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.d.ts +11 -3
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/tasks-panel/tasks-panel.d.ts +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +43 -37
- package/dist/hooks/use-check-animation.d.ts +53 -0
- package/dist/hooks/use-exit-transition.d.ts +48 -0
- package/dist/hooks/use-list-reflow.d.ts +47 -0
- package/dist/host-compat.css +8 -2
- package/dist/i18n/locales/ar.d.ts +5 -0
- package/dist/i18n/locales/ar.js +6 -1
- package/dist/i18n/locales/de.d.ts +5 -0
- package/dist/i18n/locales/de.js +6 -1
- package/dist/i18n/locales/el.d.ts +5 -0
- package/dist/i18n/locales/el.js +6 -1
- package/dist/i18n/locales/en.d.ts +5 -0
- package/dist/i18n/locales/en.js +6 -1
- package/dist/i18n/locales/es.d.ts +5 -0
- package/dist/i18n/locales/es.js +6 -1
- package/dist/i18n/locales/fr.d.ts +5 -0
- package/dist/i18n/locales/fr.js +6 -1
- package/dist/i18n/locales/hi.d.ts +5 -0
- package/dist/i18n/locales/hi.js +6 -1
- package/dist/i18n/locales/it.d.ts +5 -0
- package/dist/i18n/locales/it.js +6 -1
- package/dist/i18n/locales/ja.d.ts +5 -0
- package/dist/i18n/locales/ja.js +6 -1
- package/dist/i18n/locales/nl.d.ts +5 -0
- package/dist/i18n/locales/nl.js +6 -1
- package/dist/i18n/locales/pl.d.ts +5 -0
- package/dist/i18n/locales/pl.js +6 -1
- package/dist/i18n/locales/pt.d.ts +5 -0
- package/dist/i18n/locales/pt.js +6 -1
- package/dist/i18n/locales/ro.d.ts +5 -0
- package/dist/i18n/locales/ro.js +6 -1
- package/dist/i18n/locales/ru.d.ts +5 -0
- package/dist/i18n/locales/ru.js +6 -1
- package/dist/i18n/locales/sq.d.ts +5 -0
- package/dist/i18n/locales/sq.js +6 -1
- package/dist/i18n/locales/sv.d.ts +5 -0
- package/dist/i18n/locales/sv.js +6 -1
- package/dist/i18n/locales/tr.d.ts +5 -0
- package/dist/i18n/locales/tr.js +6 -1
- package/dist/i18n/locales/zh.d.ts +5 -0
- package/dist/i18n/locales/zh.js +6 -1
- package/dist/index.js +919 -916
- package/dist/locales/ar.json +6 -1
- package/dist/locales/de.json +6 -1
- package/dist/locales/el.json +6 -1
- package/dist/locales/en.json +6 -1
- package/dist/locales/es.json +6 -1
- package/dist/locales/fr.json +6 -1
- package/dist/locales/hi.json +6 -1
- package/dist/locales/it.json +6 -1
- package/dist/locales/ja.json +6 -1
- package/dist/locales/nl.json +6 -1
- package/dist/locales/pl.json +6 -1
- package/dist/locales/pt.json +6 -1
- package/dist/locales/ro.json +6 -1
- package/dist/locales/ru.json +6 -1
- package/dist/locales/sq.json +6 -1
- package/dist/locales/sv.json +6 -1
- package/dist/locales/tr.json +6 -1
- package/dist/locales/zh.json +6 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/tokens.css +2 -1
- package/package.json +5 -1
- package/dist/_chunks/notes-panel-C4G-mhZ9.js +0 -380
- package/dist/_chunks/tasks-panel-DQuaVvl5.js +0 -757
- package/dist/_chunks/tool-rail-8Scslq3X.js +0 -524
|
@@ -173,8 +173,8 @@ const ua = W(
|
|
|
173
173
|
}),
|
|
174
174
|
...D,
|
|
175
175
|
children: [
|
|
176
|
-
/* @__PURE__ */ o("span", { className: "ds:flex ds:w-
|
|
177
|
-
/* @__PURE__ */ o("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]", children: [
|
|
176
|
+
/* @__PURE__ */ o("span", { className: "ds:flex ds:min-w-20 ds:shrink-0 ds:flex-col ds:items-start ds:gap-[var(--spacing-2xs)]", children: [
|
|
177
|
+
/* @__PURE__ */ o("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:whitespace-nowrap ds:text-[color:var(--muted-foreground)]", children: [
|
|
178
178
|
/* @__PURE__ */ r(G, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
|
|
179
179
|
/* @__PURE__ */ r("span", { className: "ds:sr-only", children: s(`appointmentCard.type.${a.type}`) }),
|
|
180
180
|
/* @__PURE__ */ r(
|
|
@@ -293,4 +293,4 @@ ga.displayName = "AppointmentCard";
|
|
|
293
293
|
export {
|
|
294
294
|
ga as A
|
|
295
295
|
};
|
|
296
|
-
//# sourceMappingURL=appointment-card-
|
|
296
|
+
//# sourceMappingURL=appointment-card-D6mk39NB.js.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as S, jsx as o, Fragment as ke } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as be, useId as Te, useMemo as F, useRef as T, useState as Z, useCallback as x, useImperativeHandle as xe } from "react";
|
|
3
3
|
import { c as De } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as we } from "react-i18next";
|
|
5
|
-
import { A as Re } from "./appointment-card-
|
|
5
|
+
import { A as Re } from "./appointment-card-D6mk39NB.js";
|
|
6
6
|
import { B as A } from "./button-nJaPh_HC.js";
|
|
7
7
|
import { B as Ie } from "./button-group-CaxRJsNG.js";
|
|
8
8
|
import { D as Se } from "./date-picker-B6NW_PS5.js";
|
|
@@ -400,4 +400,4 @@ export {
|
|
|
400
400
|
Ae as A,
|
|
401
401
|
_e as a
|
|
402
402
|
};
|
|
403
|
-
//# sourceMappingURL=appointment-timeline-
|
|
403
|
+
//# sourceMappingURL=appointment-timeline-D-V97Bhc.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as H } from "react-i18next";
|
|
|
5
5
|
import { I as M } from "./icon-button-DA2CAGHZ.js";
|
|
6
6
|
import { S as q } from "./skeleton-CZbwyJAA.js";
|
|
7
7
|
import { E as K } from "./empty-state-X0sVPfVo.js";
|
|
8
|
-
import { A as V } from "./appointment-card-
|
|
8
|
+
import { A as V } from "./appointment-card-D6mk39NB.js";
|
|
9
9
|
import { u as _ } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { C as B } from "./calendar-days-BGWklvE-.js";
|
|
11
11
|
import { P as D } from "./plus-DzMQ_c6b.js";
|
|
@@ -190,4 +190,4 @@ export {
|
|
|
190
190
|
ae as a,
|
|
191
191
|
L as b
|
|
192
192
|
};
|
|
193
|
-
//# sourceMappingURL=appointment-tray-
|
|
193
|
+
//# sourceMappingURL=appointment-tray-6rg071CL.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as h, jsx as n, Fragment as Oe } from "react/jsx-runtime";
|
|
2
2
|
import { useState as A, useCallback as oe, useRef as H, useEffect as ce, createElement as Tr, useContext as Wi, createContext as Pi, useId as ra, useMemo as Ce, Fragment as Lr } from "react";
|
|
3
3
|
import { useTranslation as me } from "react-i18next";
|
|
4
|
-
import { A as Ar } from "./appointment-timeline-
|
|
5
|
-
import { C as Rr, a as Er, u as zi, d as Mr } from "./control-room-rail-
|
|
4
|
+
import { A as Ar } from "./appointment-timeline-D-V97Bhc.js";
|
|
5
|
+
import { C as Rr, a as Er, u as zi, d as Mr } from "./control-room-rail-5MbhjsxN.js";
|
|
6
6
|
import { S as Bi } from "./scroll-area-BZOvUhwQ.js";
|
|
7
7
|
import { d as Hn, c as mi, b as ft } from "./toast-YZz2sBzB.js";
|
|
8
8
|
import { T as fs, a as Or } from "./tooltip-DvmfrNvB.js";
|
|
@@ -23,10 +23,10 @@ import { createPortal as Kr } from "react-dom";
|
|
|
23
23
|
import { C as Ma } from "./combobox-DnSdYssy.js";
|
|
24
24
|
import { R as jn } from "./radio-DNRe6H_8.js";
|
|
25
25
|
import { R as Ot } from "./radio-group-DyVBgnA3.js";
|
|
26
|
-
import { N as qr, g as jr } from "./notes-panel-
|
|
26
|
+
import { N as qr, g as jr } from "./notes-panel-BjLt-kiP.js";
|
|
27
27
|
import { V as Kt } from "./visually-hidden-BHxEUGyT.js";
|
|
28
|
-
import { R as Gr } from "./rich-text-editor-
|
|
29
|
-
import { C as Yr } from "./clinical-note-card-
|
|
28
|
+
import { R as Gr } from "./rich-text-editor-CCI-Y3DN.js";
|
|
29
|
+
import { C as Yr } from "./clinical-note-card-CTRzmqvv.js";
|
|
30
30
|
import { S as Xr } from "./spinner-hbwuKwMf.js";
|
|
31
31
|
import { A as Sa } from "./avatar-CkDeQOSI.js";
|
|
32
32
|
import { E as is } from "./empty-state-X0sVPfVo.js";
|
|
@@ -35,7 +35,7 @@ import { T as Jr } from "./text-input-CUvCb6ST.js";
|
|
|
35
35
|
import { T as Os } from "./text-area-Bt3p7Pt0.js";
|
|
36
36
|
import { N as Ns } from "./number-input-Cgu2TtA8.js";
|
|
37
37
|
import { T as Zr } from "./time-picker-D0RS391l.js";
|
|
38
|
-
import { A as Qr } from "./appointment-card-
|
|
38
|
+
import { A as Qr } from "./appointment-card-D6mk39NB.js";
|
|
39
39
|
import { B as On } from "./badge-sTusUqZD.js";
|
|
40
40
|
import { D as eo } from "./data-table-DC96JJIq.js";
|
|
41
41
|
import { C as Sn } from "./checkbox-BuZ1u__2.js";
|
|
@@ -9389,4 +9389,4 @@ export {
|
|
|
9389
9389
|
em as r,
|
|
9390
9390
|
Wn as u
|
|
9391
9391
|
};
|
|
9392
|
-
//# sourceMappingURL=calendar-workspace-
|
|
9392
|
+
//# sourceMappingURL=calendar-workspace-4NH1Z47_.js.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as e, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as te, useId as V, useState as $, useMemo as ne } from "react";
|
|
3
3
|
import { c as P } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { A as
|
|
4
|
+
import { useTranslation as le } from "react-i18next";
|
|
5
|
+
import { A as de } from "./avatar-CkDeQOSI.js";
|
|
6
6
|
import { B as v } from "./badge-sTusUqZD.js";
|
|
7
|
-
import { C as
|
|
8
|
-
import { L as
|
|
9
|
-
import { T as
|
|
10
|
-
import { SafeHtml as
|
|
11
|
-
import { i as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { S as
|
|
15
|
-
import { L as
|
|
16
|
-
import { F as
|
|
17
|
-
import { U as
|
|
18
|
-
import { c as
|
|
7
|
+
import { C as D } from "./card-DPmk26CL.js";
|
|
8
|
+
import { L as oe } from "./link-CPb_pZPr.js";
|
|
9
|
+
import { T as O } from "./timestamp-BV2lC-wV.js";
|
|
10
|
+
import { SafeHtml as ce } from "../safe-html/index.js";
|
|
11
|
+
import { i as me } from "./is-safe-url-DkETxeHz.js";
|
|
12
|
+
import { u as pe } from "./use-clamp-overflow-DQE2kwZ9.js";
|
|
13
|
+
import { u as ue } from "./registry-DvAUVLHh.js";
|
|
14
|
+
import { S as fe } from "./scan-line-CNseIHQ0.js";
|
|
15
|
+
import { L as ve } from "./layers-DcAENmsZ.js";
|
|
16
|
+
import { F as U } from "./file-text-5yv6r2ls.js";
|
|
17
|
+
import { U as ge } from "./user-B12p7bVF.js";
|
|
18
|
+
import { c as q } from "./createLucideIcon-DhHxpK9K.js";
|
|
19
19
|
/**
|
|
20
20
|
* @license lucide-react v1.22.0 - ISC
|
|
21
21
|
*
|
|
22
22
|
* This source code is licensed under the ISC license.
|
|
23
23
|
* See the LICENSE file in the root directory of this source tree.
|
|
24
24
|
*/
|
|
25
|
-
const
|
|
25
|
+
const he = [
|
|
26
26
|
[
|
|
27
27
|
"path",
|
|
28
28
|
{
|
|
@@ -30,14 +30,14 @@ const ge = [
|
|
|
30
30
|
key: "1jaruq"
|
|
31
31
|
}
|
|
32
32
|
]
|
|
33
|
-
],
|
|
33
|
+
], B = q("flag", he);
|
|
34
34
|
/**
|
|
35
35
|
* @license lucide-react v1.22.0 - ISC
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the ISC license.
|
|
38
38
|
* See the LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
const
|
|
40
|
+
const be = [
|
|
41
41
|
["path", { d: "M12 17v5", key: "bb1du9" }],
|
|
42
42
|
[
|
|
43
43
|
"path",
|
|
@@ -46,7 +46,7 @@ const he = [
|
|
|
46
46
|
key: "1nkz8b"
|
|
47
47
|
}
|
|
48
48
|
]
|
|
49
|
-
],
|
|
49
|
+
], R = q("pin", be), xe = {
|
|
50
50
|
id: "clinical-note-card",
|
|
51
51
|
capabilities: [],
|
|
52
52
|
state: {
|
|
@@ -88,12 +88,12 @@ const he = [
|
|
|
88
88
|
description: "Sourced from the id prop — addresses a specific note."
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
},
|
|
91
|
+
}, Ne = P("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
92
92
|
variants: {
|
|
93
93
|
surface: { flat: "", elevated: "" }
|
|
94
94
|
},
|
|
95
95
|
defaultVariants: { surface: "elevated" }
|
|
96
|
-
}),
|
|
96
|
+
}), ye = P(
|
|
97
97
|
[
|
|
98
98
|
"type-body-sm ds:text-[color:var(--foreground)]",
|
|
99
99
|
"ds:break-words",
|
|
@@ -121,7 +121,7 @@ const he = [
|
|
|
121
121
|
},
|
|
122
122
|
defaultVariants: { truncate: !1 }
|
|
123
123
|
}
|
|
124
|
-
),
|
|
124
|
+
), Ce = [
|
|
125
125
|
"ds:relative ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
126
126
|
"ds:size-7 ds:rounded-[var(--radius-sm)]",
|
|
127
127
|
'ds:before:absolute ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)] ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)] ds:before:content-[""] ds:sm:before:hidden',
|
|
@@ -131,7 +131,7 @@ const he = [
|
|
|
131
131
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
132
132
|
"ds:transition-[color,background-color] ds:duration-[var(--animation-duration)]",
|
|
133
133
|
"ds:motion-reduce:transition-none"
|
|
134
|
-
].join(" "),
|
|
134
|
+
].join(" "), F = [
|
|
135
135
|
"ds:mt-[var(--spacing-2xs)] ds:inline-flex ds:items-center ds:self-start",
|
|
136
136
|
"ds:text-[length:var(--font-size-xs)] ds:font-semibold",
|
|
137
137
|
"ds:underline ds:underline-offset-2 ds:text-[color:var(--primary)] ds:hover:no-underline",
|
|
@@ -139,11 +139,11 @@ const he = [
|
|
|
139
139
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
140
140
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
141
141
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
142
|
-
].join(" "),
|
|
143
|
-
|
|
142
|
+
].join(" "), _e = P([
|
|
143
|
+
F,
|
|
144
144
|
"ds:[min-block-size:var(--min-target-size)] ds:[min-inline-size:var(--min-target-size)]"
|
|
145
145
|
]);
|
|
146
|
-
function
|
|
146
|
+
function W({
|
|
147
147
|
icon: r,
|
|
148
148
|
pressed: i,
|
|
149
149
|
label: d,
|
|
@@ -158,14 +158,14 @@ function R({
|
|
|
158
158
|
"aria-label": d,
|
|
159
159
|
onClick: u,
|
|
160
160
|
className: [
|
|
161
|
-
|
|
161
|
+
Ce,
|
|
162
162
|
i ? t : "ds:text-[color:var(--muted-foreground)] ds:hover:text-[color:var(--foreground)]"
|
|
163
163
|
].join(" "),
|
|
164
164
|
children: r
|
|
165
165
|
}
|
|
166
166
|
);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function A(r) {
|
|
169
169
|
return r.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
170
170
|
}
|
|
171
171
|
function L(r) {
|
|
@@ -175,17 +175,17 @@ function L(r) {
|
|
|
175
175
|
'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'
|
|
176
176
|
), i;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function ke(r) {
|
|
179
179
|
return r.split(/\n{2,}/).map((d) => {
|
|
180
180
|
const t = d.split(`
|
|
181
181
|
`), u = t.every((a) => /^\s*[-*]\s+/.test(a)), n = t.every((a) => /^\s*\d+\.\s+/.test(a));
|
|
182
|
-
return u && t.length > 0 ? `<ul>${t.map((l) => l.replace(/^\s*[-*]\s+/, "")).map((l) => `<li>${L(
|
|
182
|
+
return u && t.length > 0 ? `<ul>${t.map((l) => l.replace(/^\s*[-*]\s+/, "")).map((l) => `<li>${L(A(l))}</li>`).join("")}</ul>` : n && t.length > 0 ? `<ol>${t.map((l) => l.replace(/^\s*\d+\.\s+/, "")).map((l) => `<li>${L(A(l))}</li>`).join("")}</ol>` : `<p>${L(A(d)).replace(
|
|
183
183
|
/\n/g,
|
|
184
184
|
"<br />"
|
|
185
185
|
)}</p>`;
|
|
186
186
|
}).join("");
|
|
187
187
|
}
|
|
188
|
-
const
|
|
188
|
+
const we = te(
|
|
189
189
|
({
|
|
190
190
|
id: r,
|
|
191
191
|
dateIso: i,
|
|
@@ -199,24 +199,25 @@ const ke = ie(
|
|
|
199
199
|
contentFormat: _ = "markdown",
|
|
200
200
|
pinned: o,
|
|
201
201
|
flagged: c,
|
|
202
|
+
headerActions: H,
|
|
202
203
|
onTogglePin: h,
|
|
203
204
|
onToggleFlag: b,
|
|
204
205
|
truncate: x = !1,
|
|
205
|
-
surface:
|
|
206
|
-
"aria-label":
|
|
207
|
-
className:
|
|
208
|
-
...
|
|
209
|
-
},
|
|
210
|
-
const { t: s } =
|
|
211
|
-
|
|
212
|
-
const N = !!n && !z, { ref:
|
|
206
|
+
surface: K = "elevated",
|
|
207
|
+
"aria-label": G,
|
|
208
|
+
className: J,
|
|
209
|
+
...Q
|
|
210
|
+
}, X) => {
|
|
211
|
+
const { t: s } = le(), k = V(), w = V(), [g, Y] = $(!1), [z, M] = $(!1), [Z, T] = $(!!n);
|
|
212
|
+
Z !== !!n && (T(!!n), M(!1));
|
|
213
|
+
const N = !!n && !z, { ref: ee, isOverflowing: ae } = pe(
|
|
213
214
|
x && !g && !N
|
|
214
|
-
),
|
|
215
|
-
() => _ === "html" ? l :
|
|
215
|
+
), se = x && !N && (ae || g), re = ne(
|
|
216
|
+
() => _ === "html" ? l : ke(l),
|
|
216
217
|
[l, _]
|
|
217
|
-
),
|
|
218
|
-
|
|
219
|
-
|
|
218
|
+
), S = G ?? s("clinicalNoteCard.regionLabel");
|
|
219
|
+
ue(
|
|
220
|
+
xe,
|
|
220
221
|
{
|
|
221
222
|
getNoteId: () => r,
|
|
222
223
|
isPinned: () => !!o,
|
|
@@ -225,7 +226,7 @@ const ke = ie(
|
|
|
225
226
|
},
|
|
226
227
|
r
|
|
227
228
|
);
|
|
228
|
-
const y = (f,
|
|
229
|
+
const y = (f, I, ie, j) => j && me(j) ? /* @__PURE__ */ e(oe, { href: j, intent: "default", startIcon: I, children: f }) : /* @__PURE__ */ e(v, { variant: ie, size: "sm", leading: I, children: f });
|
|
229
230
|
let m = null;
|
|
230
231
|
if (a)
|
|
231
232
|
switch (a.kind) {
|
|
@@ -235,7 +236,7 @@ const ke = ie(
|
|
|
235
236
|
{
|
|
236
237
|
variant: "neutral",
|
|
237
238
|
size: "sm",
|
|
238
|
-
leading: /* @__PURE__ */ e(
|
|
239
|
+
leading: /* @__PURE__ */ e(ge, { "aria-hidden": "true" }),
|
|
239
240
|
children: s("clinicalNoteCard.attachment.patient")
|
|
240
241
|
}
|
|
241
242
|
);
|
|
@@ -245,7 +246,7 @@ const ke = ie(
|
|
|
245
246
|
s("clinicalNoteCard.attachment.carePlan", {
|
|
246
247
|
number: a.number
|
|
247
248
|
}),
|
|
248
|
-
/* @__PURE__ */ e(
|
|
249
|
+
/* @__PURE__ */ e(U, { "aria-hidden": "true" }),
|
|
249
250
|
"info",
|
|
250
251
|
a.url
|
|
251
252
|
);
|
|
@@ -258,7 +259,7 @@ const ke = ie(
|
|
|
258
259
|
}) : s("clinicalNoteCard.attachment.carePlanEntry", {
|
|
259
260
|
care: a.careName
|
|
260
261
|
}),
|
|
261
|
-
/* @__PURE__ */ e(
|
|
262
|
+
/* @__PURE__ */ e(U, { "aria-hidden": "true" }),
|
|
262
263
|
"info",
|
|
263
264
|
a.url
|
|
264
265
|
);
|
|
@@ -266,7 +267,7 @@ const ke = ie(
|
|
|
266
267
|
case "phase":
|
|
267
268
|
m = y(
|
|
268
269
|
s("clinicalNoteCard.attachment.phase", { label: a.label }),
|
|
269
|
-
/* @__PURE__ */ e(
|
|
270
|
+
/* @__PURE__ */ e(ve, { "aria-hidden": "true" }),
|
|
270
271
|
"neutral",
|
|
271
272
|
a.url
|
|
272
273
|
);
|
|
@@ -276,16 +277,16 @@ const ke = ie(
|
|
|
276
277
|
a.label ? s("clinicalNoteCard.attachment.xrayWithLabel", {
|
|
277
278
|
label: a.label
|
|
278
279
|
}) : s("clinicalNoteCard.attachment.xray"),
|
|
279
|
-
/* @__PURE__ */ e(
|
|
280
|
+
/* @__PURE__ */ e(fe, { "aria-hidden": "true" }),
|
|
280
281
|
"neutral",
|
|
281
282
|
a.url
|
|
282
283
|
);
|
|
283
284
|
break;
|
|
284
285
|
}
|
|
285
|
-
const
|
|
286
|
+
const E = /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
286
287
|
/* @__PURE__ */ p("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
287
288
|
t ? /* @__PURE__ */ e(
|
|
288
|
-
|
|
289
|
+
de,
|
|
289
290
|
{
|
|
290
291
|
name: t.name,
|
|
291
292
|
src: t.avatarUrl,
|
|
@@ -304,30 +305,30 @@ const ke = ie(
|
|
|
304
305
|
className: "type-title-item ds:text-[color:var(--foreground)] ds:truncate",
|
|
305
306
|
children: t.name
|
|
306
307
|
}
|
|
307
|
-
) : /* @__PURE__ */ e("span", { id: k, className: "ds:sr-only", children:
|
|
308
|
+
) : /* @__PURE__ */ e("span", { id: k, className: "ds:sr-only", children: S }),
|
|
308
309
|
u ? /* @__PURE__ */ e("span", { className: "type-meta ds:text-[color:var(--muted-foreground)] ds:break-words", children: s("clinicalNoteCard.operator", { name: u }) }) : null,
|
|
309
310
|
/* @__PURE__ */ p("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-xs)] ds:gap-y-[var(--spacing-2xs)] ds:empty:hidden", children: [
|
|
310
|
-
i ? /* @__PURE__ */ e(
|
|
311
|
+
i ? /* @__PURE__ */ e(O, { value: i, shape: "bare", size: "sm" }) : null,
|
|
311
312
|
d && d !== i ? /* @__PURE__ */ p("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: [
|
|
312
313
|
s("clinicalNoteCard.added"),
|
|
313
314
|
" ",
|
|
314
|
-
/* @__PURE__ */ e(
|
|
315
|
+
/* @__PURE__ */ e(O, { value: d, shape: "bare", size: "sm" })
|
|
315
316
|
] }) : null
|
|
316
317
|
] })
|
|
317
318
|
] }),
|
|
318
|
-
n || C || h || b || o || c ? /* @__PURE__ */ p("span", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)]", children: [
|
|
319
|
+
n || C || H || h || b || o || c ? /* @__PURE__ */ p("span", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)]", children: [
|
|
319
320
|
n ? /* @__PURE__ */ e(v, { variant: "error", size: "sm", children: s("clinicalNoteCard.deleted") }) : null,
|
|
320
321
|
C ? /* @__PURE__ */ e(v, { variant: "brand", size: "sm", children: s("clinicalNoteCard.clinical") }) : null,
|
|
321
322
|
h || b || o || c ? /* @__PURE__ */ p("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
322
323
|
h ? /* @__PURE__ */ e(
|
|
323
|
-
|
|
324
|
+
W,
|
|
324
325
|
{
|
|
325
326
|
pressed: !!o,
|
|
326
327
|
onToggle: h,
|
|
327
328
|
label: s(o ? "clinicalNoteCard.unpin" : "clinicalNoteCard.pin"),
|
|
328
329
|
activeClassName: "ds:text-[color:var(--accent)]",
|
|
329
330
|
icon: /* @__PURE__ */ e(
|
|
330
|
-
|
|
331
|
+
R,
|
|
331
332
|
{
|
|
332
333
|
"aria-hidden": "true",
|
|
333
334
|
className: "ds:size-4",
|
|
@@ -340,19 +341,19 @@ const ke = ie(
|
|
|
340
341
|
{
|
|
341
342
|
variant: "accent",
|
|
342
343
|
size: "sm",
|
|
343
|
-
leading: /* @__PURE__ */ e(
|
|
344
|
+
leading: /* @__PURE__ */ e(R, { "aria-hidden": "true" }),
|
|
344
345
|
children: s("clinicalNoteCard.pinned")
|
|
345
346
|
}
|
|
346
347
|
) : null,
|
|
347
348
|
b ? /* @__PURE__ */ e(
|
|
348
|
-
|
|
349
|
+
W,
|
|
349
350
|
{
|
|
350
351
|
pressed: !!c,
|
|
351
352
|
onToggle: b,
|
|
352
353
|
label: s(c ? "clinicalNoteCard.unflag" : "clinicalNoteCard.flag"),
|
|
353
354
|
activeClassName: "ds:text-[color:var(--warning-readable)]",
|
|
354
355
|
icon: /* @__PURE__ */ e(
|
|
355
|
-
|
|
356
|
+
B,
|
|
356
357
|
{
|
|
357
358
|
"aria-hidden": "true",
|
|
358
359
|
className: "ds:size-4",
|
|
@@ -365,11 +366,12 @@ const ke = ie(
|
|
|
365
366
|
{
|
|
366
367
|
variant: "warning",
|
|
367
368
|
size: "sm",
|
|
368
|
-
leading: /* @__PURE__ */ e(
|
|
369
|
+
leading: /* @__PURE__ */ e(B, { "aria-hidden": "true" }),
|
|
369
370
|
children: s("clinicalNoteCard.flagged")
|
|
370
371
|
}
|
|
371
372
|
) : null
|
|
372
|
-
] }) : null
|
|
373
|
+
] }) : null,
|
|
374
|
+
H
|
|
373
375
|
] }) : null
|
|
374
376
|
] }),
|
|
375
377
|
n ? /* @__PURE__ */ e(
|
|
@@ -378,30 +380,30 @@ const ke = ie(
|
|
|
378
380
|
type: "button",
|
|
379
381
|
"aria-expanded": z,
|
|
380
382
|
"aria-controls": w,
|
|
381
|
-
onClick: () =>
|
|
382
|
-
className:
|
|
383
|
+
onClick: () => M((f) => !f),
|
|
384
|
+
className: _e(),
|
|
383
385
|
children: s(z ? "clinicalNoteCard.hideDeleted" : "clinicalNoteCard.showDeleted")
|
|
384
386
|
}
|
|
385
387
|
) : null,
|
|
386
388
|
/* @__PURE__ */ e(
|
|
387
|
-
|
|
389
|
+
ce,
|
|
388
390
|
{
|
|
389
|
-
ref:
|
|
391
|
+
ref: ee,
|
|
390
392
|
id: x || n ? w : void 0,
|
|
391
393
|
hidden: N,
|
|
392
|
-
html: N ? "" :
|
|
394
|
+
html: N ? "" : re,
|
|
393
395
|
profile: _ === "html" ? "rich-text" : "markdown",
|
|
394
|
-
className:
|
|
396
|
+
className: ye({ truncate: x && !g })
|
|
395
397
|
}
|
|
396
398
|
),
|
|
397
|
-
|
|
399
|
+
se ? /* @__PURE__ */ e(
|
|
398
400
|
"button",
|
|
399
401
|
{
|
|
400
402
|
type: "button",
|
|
401
403
|
"aria-expanded": g,
|
|
402
404
|
"aria-controls": w,
|
|
403
|
-
onClick: () =>
|
|
404
|
-
className:
|
|
405
|
+
onClick: () => Y((f) => !f),
|
|
406
|
+
className: F,
|
|
405
407
|
children: s(g ? "clinicalNoteCard.readLess" : "clinicalNoteCard.readMore")
|
|
406
408
|
}
|
|
407
409
|
) : null,
|
|
@@ -410,9 +412,9 @@ const ke = ie(
|
|
|
410
412
|
return /* @__PURE__ */ e(
|
|
411
413
|
"div",
|
|
412
414
|
{
|
|
413
|
-
ref:
|
|
415
|
+
ref: X,
|
|
414
416
|
role: "article",
|
|
415
|
-
"aria-label":
|
|
417
|
+
"aria-label": S,
|
|
416
418
|
"aria-labelledby": k,
|
|
417
419
|
"data-component": "clinical-note-card",
|
|
418
420
|
"data-component-id": r,
|
|
@@ -421,16 +423,16 @@ const ke = ie(
|
|
|
421
423
|
"data-deleted": n ? "true" : void 0,
|
|
422
424
|
"data-attached-to": a == null ? void 0 : a.kind,
|
|
423
425
|
id: r,
|
|
424
|
-
className:
|
|
425
|
-
...
|
|
426
|
-
children:
|
|
426
|
+
className: Ne({ surface: K, className: J }),
|
|
427
|
+
...Q,
|
|
428
|
+
children: K === "elevated" ? /* @__PURE__ */ e(D, { variant: "elevated", children: /* @__PURE__ */ e(D.Body, { children: E }) }) : E
|
|
427
429
|
}
|
|
428
430
|
);
|
|
429
431
|
}
|
|
430
432
|
);
|
|
431
|
-
|
|
433
|
+
we.displayName = "ClinicalNoteCard";
|
|
432
434
|
export {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
+
we as C,
|
|
436
|
+
xe as c
|
|
435
437
|
};
|
|
436
|
-
//# sourceMappingURL=clinical-note-card-
|
|
438
|
+
//# sourceMappingURL=clinical-note-card-CTRzmqvv.js.map
|
|
@@ -6,10 +6,11 @@ import { B as b } from "./badge-sTusUqZD.js";
|
|
|
6
6
|
import { C as T } from "./card-DPmk26CL.js";
|
|
7
7
|
import { K as fe, a as ue } from "./key-value-pair-BIBdZBLg.js";
|
|
8
8
|
import { L as d } from "./link-CPb_pZPr.js";
|
|
9
|
-
import {
|
|
9
|
+
import { a as me } from "./format-price-BkMEbeW3.js";
|
|
10
10
|
import { u as he } from "./registry-DvAUVLHh.js";
|
|
11
|
-
import { S as
|
|
12
|
-
import { H
|
|
11
|
+
import { S as F } from "./stethoscope-sZXGC43m.js";
|
|
12
|
+
import { H } from "./heart--qCA4ffe.js";
|
|
13
|
+
import { B as _, L as z } from "./languages-CZqBaPwI.js";
|
|
13
14
|
import { S as O } from "./shield-check-DCJALLVh.js";
|
|
14
15
|
import { G as B } from "./globe-sHBW1JN5.js";
|
|
15
16
|
import { M as E } from "./mail-BqXVF2zH.js";
|
|
@@ -194,7 +195,7 @@ const ke = le(
|
|
|
194
195
|
};
|
|
195
196
|
o.push({
|
|
196
197
|
key: "languages",
|
|
197
|
-
icon: /* @__PURE__ */ e(
|
|
198
|
+
icon: /* @__PURE__ */ e(z, { "aria-hidden": "true" }),
|
|
198
199
|
label: t("contactProfileCard.label.languages"),
|
|
199
200
|
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: g.map((l) => /* @__PURE__ */ e(b, { variant: "neutral", children: i(l) }, l)) })
|
|
200
201
|
});
|
|
@@ -206,18 +207,18 @@ const ke = le(
|
|
|
206
207
|
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((i) => /* @__PURE__ */ e(b, { variant: "info", children: i }, i)) })
|
|
207
208
|
}), R && o.push({
|
|
208
209
|
key: "firstVisitPrice",
|
|
209
|
-
icon: /* @__PURE__ */ e(
|
|
210
|
+
icon: /* @__PURE__ */ e(_, { "aria-hidden": "true" }),
|
|
210
211
|
label: t("contactProfileCard.label.firstVisitPrice"),
|
|
211
212
|
value: /* @__PURE__ */ e(b, { variant: "accentSoft", size: "lg", children: R }),
|
|
212
213
|
alignValue: "end"
|
|
213
214
|
}), L && o.push({
|
|
214
215
|
key: "expertForAnxiousPatients",
|
|
215
|
-
icon: /* @__PURE__ */ e(
|
|
216
|
+
icon: /* @__PURE__ */ e(H, { "aria-hidden": "true" }),
|
|
216
217
|
label: t("contactProfileCard.label.expertForAnxiousPatients"),
|
|
217
218
|
value: t("contactProfileCard.value.yesShort")
|
|
218
219
|
}), x && o.push({
|
|
219
220
|
key: "profession",
|
|
220
|
-
icon: /* @__PURE__ */ e(
|
|
221
|
+
icon: /* @__PURE__ */ e(F, { "aria-hidden": "true" }),
|
|
221
222
|
label: t("contactProfileCard.label.profession"),
|
|
222
223
|
value: x
|
|
223
224
|
}), he(
|
|
@@ -282,7 +283,7 @@ const ke = le(
|
|
|
282
283
|
}
|
|
283
284
|
);
|
|
284
285
|
ke.displayName = "ContactProfileCard";
|
|
285
|
-
const
|
|
286
|
+
const Le = [
|
|
286
287
|
"address",
|
|
287
288
|
"phone",
|
|
288
289
|
"whatsapp",
|
|
@@ -293,22 +294,22 @@ const Ge = [
|
|
|
293
294
|
"firstVisitPrice",
|
|
294
295
|
"expertForAnxiousPatients",
|
|
295
296
|
"profession"
|
|
296
|
-
],
|
|
297
|
+
], je = {
|
|
297
298
|
address: G,
|
|
298
299
|
phone: U,
|
|
299
300
|
whatsapp: K,
|
|
300
301
|
email: E,
|
|
301
302
|
website: B,
|
|
302
|
-
languages:
|
|
303
|
+
languages: z,
|
|
303
304
|
insurances: O,
|
|
304
|
-
firstVisitPrice:
|
|
305
|
-
expertForAnxiousPatients:
|
|
306
|
-
profession:
|
|
305
|
+
firstVisitPrice: _,
|
|
306
|
+
expertForAnxiousPatients: H,
|
|
307
|
+
profession: F
|
|
307
308
|
};
|
|
308
309
|
export {
|
|
309
|
-
|
|
310
|
-
|
|
310
|
+
je as C,
|
|
311
|
+
Le as a,
|
|
311
312
|
ke as b,
|
|
312
313
|
ge as c
|
|
313
314
|
};
|
|
314
|
-
//# sourceMappingURL=contact-profile-card-
|
|
315
|
+
//# sourceMappingURL=contact-profile-card-DSI9uumA.js.map
|
|
@@ -3,7 +3,7 @@ import { useState as _, useCallback as g, useMemo as T, useRef as B, useContext
|
|
|
3
3
|
import { useTranslation as po } from "react-i18next";
|
|
4
4
|
import { I as G } from "./icon-button-DA2CAGHZ.js";
|
|
5
5
|
import { a as fo } from "./panel-header-D313n_9-.js";
|
|
6
|
-
import { T as mo } from "./tool-rail-
|
|
6
|
+
import { T as mo } from "./tool-rail-ONaV-Nzz.js";
|
|
7
7
|
import { u as go } from "./use-persistent-state-nZwZAnE9.js";
|
|
8
8
|
import { S as Ro } from "./star-Bf9L2Uot.js";
|
|
9
9
|
import { X as vo } from "./x-B5YnXwCz.js";
|
|
@@ -334,4 +334,4 @@ export {
|
|
|
334
334
|
Ho as d,
|
|
335
335
|
Ko as u
|
|
336
336
|
};
|
|
337
|
-
//# sourceMappingURL=control-room-rail-
|
|
337
|
+
//# sourceMappingURL=control-room-rail-5MbhjsxN.js.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const a = /* @__PURE__ */ new Set([
|
|
2
|
+
"BIF",
|
|
3
|
+
"CLP",
|
|
4
|
+
"DJF",
|
|
5
|
+
"GNF",
|
|
6
|
+
"IDR",
|
|
7
|
+
"JPY",
|
|
8
|
+
"KMF",
|
|
9
|
+
"KRW",
|
|
10
|
+
"MGA",
|
|
11
|
+
"PYG",
|
|
12
|
+
"RWF",
|
|
13
|
+
"UGX",
|
|
14
|
+
"VND",
|
|
15
|
+
"VUV",
|
|
16
|
+
"XAF",
|
|
17
|
+
"XOF",
|
|
18
|
+
"XPF"
|
|
19
|
+
]);
|
|
20
|
+
function s(e, n, o) {
|
|
21
|
+
const r = n.toUpperCase(), t = a.has(r) ? e : e / 100;
|
|
22
|
+
try {
|
|
23
|
+
return new Intl.NumberFormat(o, {
|
|
24
|
+
style: "currency",
|
|
25
|
+
currency: r
|
|
26
|
+
}).format(t);
|
|
27
|
+
} catch {
|
|
28
|
+
return `${a.has(r) ? String(t) : t.toFixed(2)} ${r}`;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function u(e, n, o, r = {}) {
|
|
32
|
+
const t = n.toUpperCase(), c = a.has(t) ? e : e / 100;
|
|
33
|
+
try {
|
|
34
|
+
return new Intl.NumberFormat(o, {
|
|
35
|
+
style: "currency",
|
|
36
|
+
currency: t,
|
|
37
|
+
...r
|
|
38
|
+
}).formatToParts(c);
|
|
39
|
+
} catch {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
s as a,
|
|
45
|
+
u as f
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=format-price-BkMEbeW3.js.map
|