@alfadocs/ui-kit 1.33.0 → 1.35.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-Bh_CIlc6.js +431 -0
- package/dist/_chunks/appointment-timeline-De-Wqdkw.js +449 -0
- package/dist/_chunks/{appointment-tray-DCk8gHod.js → appointment-tray-4I9wTAi4.js} +2 -2
- package/dist/_chunks/{calendar-workspace-BX-zDyVR.js → calendar-workspace-UywR5gUl.js} +7 -7
- package/dist/_chunks/{care-plan-card-CZW476Kg.js → care-plan-card-DHVhBcvs.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-BMUYagEw.js → care-plan-entry-card-Dx6IdTcR.js} +2 -2
- package/dist/_chunks/{care-plan-header-B5CBE0zu.js → care-plan-header-UTX5ZD74.js} +2 -2
- 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/{entity-card-DmrgYSEX.js → entity-card-9_62gY7l.js} +4 -4
- 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/{operator-hero-D7-iiFQ9.js → operator-hero-aG_qyn6g.js} +2 -2
- package/dist/_chunks/{payment-request-card-lmKLwsDs.js → payment-request-card-DvEsWEkC.js} +2 -2
- 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/appointment-card.d.ts +36 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +6 -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/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/operator-hero/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -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 +10 -0
- package/dist/i18n/locales/ar.js +12 -2
- package/dist/i18n/locales/de.d.ts +10 -0
- package/dist/i18n/locales/de.js +12 -2
- package/dist/i18n/locales/el.d.ts +10 -0
- package/dist/i18n/locales/el.js +12 -2
- package/dist/i18n/locales/en.d.ts +10 -0
- package/dist/i18n/locales/en.js +12 -2
- package/dist/i18n/locales/es.d.ts +10 -0
- package/dist/i18n/locales/es.js +12 -2
- package/dist/i18n/locales/fr.d.ts +10 -0
- package/dist/i18n/locales/fr.js +12 -2
- package/dist/i18n/locales/hi.d.ts +10 -0
- package/dist/i18n/locales/hi.js +12 -2
- package/dist/i18n/locales/it.d.ts +13 -3
- package/dist/i18n/locales/it.js +14 -4
- package/dist/i18n/locales/ja.d.ts +10 -0
- package/dist/i18n/locales/ja.js +12 -2
- package/dist/i18n/locales/nl.d.ts +10 -0
- package/dist/i18n/locales/nl.js +12 -2
- package/dist/i18n/locales/pl.d.ts +10 -0
- package/dist/i18n/locales/pl.js +12 -2
- package/dist/i18n/locales/pt.d.ts +10 -0
- package/dist/i18n/locales/pt.js +12 -2
- package/dist/i18n/locales/ro.d.ts +10 -0
- package/dist/i18n/locales/ro.js +12 -2
- package/dist/i18n/locales/ru.d.ts +10 -0
- package/dist/i18n/locales/ru.js +12 -2
- package/dist/i18n/locales/sq.d.ts +10 -0
- package/dist/i18n/locales/sq.js +12 -2
- package/dist/i18n/locales/sv.d.ts +10 -0
- package/dist/i18n/locales/sv.js +12 -2
- package/dist/i18n/locales/tr.d.ts +10 -0
- package/dist/i18n/locales/tr.js +12 -2
- package/dist/i18n/locales/zh.d.ts +10 -0
- package/dist/i18n/locales/zh.js +12 -2
- package/dist/index.js +919 -916
- package/dist/locales/ar.json +12 -2
- package/dist/locales/de.json +12 -2
- package/dist/locales/el.json +12 -2
- package/dist/locales/en.json +12 -2
- package/dist/locales/es.json +12 -2
- package/dist/locales/fr.json +12 -2
- package/dist/locales/hi.json +12 -2
- package/dist/locales/it.json +14 -4
- package/dist/locales/ja.json +12 -2
- package/dist/locales/nl.json +12 -2
- package/dist/locales/pl.json +12 -2
- package/dist/locales/pt.json +12 -2
- package/dist/locales/ro.json +12 -2
- package/dist/locales/ru.json +12 -2
- package/dist/locales/sq.json +12 -2
- package/dist/locales/sv.json +12 -2
- package/dist/locales/tr.json +12 -2
- package/dist/locales/zh.json +12 -2
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/tokens.css +2 -1
- package/package.json +5 -1
- package/dist/_chunks/appointment-card-D-oj_ugh.js +0 -296
- package/dist/_chunks/appointment-timeline-CymGHyIP.js +0 -403
- 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
|
@@ -14,12 +14,13 @@ import { S as rt } from "./skeleton-CZbwyJAA.js";
|
|
|
14
14
|
import { S as ot } from "./spinner-hbwuKwMf.js";
|
|
15
15
|
import { B as O } from "./badge-sTusUqZD.js";
|
|
16
16
|
import { u as ct } from "./use-media-query-CcAx5SMM.js";
|
|
17
|
-
import {
|
|
18
|
-
import { u as
|
|
19
|
-
import { c as
|
|
20
|
-
import { R as
|
|
21
|
-
import { C as
|
|
17
|
+
import { a as lt } from "./format-price-BkMEbeW3.js";
|
|
18
|
+
import { u as dt } from "./registry-DvAUVLHh.js";
|
|
19
|
+
import { c as ut } from "./createLucideIcon-DhHxpK9K.js";
|
|
20
|
+
import { R as pt } from "./refresh-cw-DnI0cLFC.js";
|
|
21
|
+
import { C as Se } from "./chevron-down-DWE7GSq9.js";
|
|
22
22
|
import { M as ne } from "./map-pin-BaY37-Km.js";
|
|
23
|
+
import { L as Pe, B as mt } from "./languages-CZqBaPwI.js";
|
|
23
24
|
import { S as Ae } from "./shield-check-DCJALLVh.js";
|
|
24
25
|
import { H as Me } from "./heart--qCA4ffe.js";
|
|
25
26
|
import { C as ft } from "./calendar-clock-hbObjfGY.js";
|
|
@@ -40,7 +41,7 @@ const gt = [
|
|
|
40
41
|
],
|
|
41
42
|
["path", { d: "M15 5.764v15", key: "1pn4in" }],
|
|
42
43
|
["path", { d: "M9 3.236v15", key: "1uimfh" }]
|
|
43
|
-
], vt =
|
|
44
|
+
], vt = ut("map", gt), bt = {
|
|
44
45
|
id: "practice-results",
|
|
45
46
|
// `scroll` backs scroll_to_result; `pick` backs focus_pin (a non-persisting
|
|
46
47
|
// pin highlight). The active variant is consumer-owned via props, so there is
|
|
@@ -367,7 +368,7 @@ function Te({
|
|
|
367
368
|
b
|
|
368
369
|
] }),
|
|
369
370
|
/* @__PURE__ */ t(
|
|
370
|
-
|
|
371
|
+
Se,
|
|
371
372
|
{
|
|
372
373
|
"aria-hidden": "true",
|
|
373
374
|
className: "ds:size-3.5 ds:shrink-0"
|
|
@@ -431,7 +432,7 @@ function ue({ value: e, onChange: n }) {
|
|
|
431
432
|
": ",
|
|
432
433
|
r(e)
|
|
433
434
|
] }),
|
|
434
|
-
/* @__PURE__ */ t(
|
|
435
|
+
/* @__PURE__ */ t(Se, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" })
|
|
435
436
|
]
|
|
436
437
|
}
|
|
437
438
|
) }),
|
|
@@ -565,7 +566,7 @@ function Be({
|
|
|
565
566
|
className: "type-body-sm ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)] ds:text-[var(--muted-foreground)]",
|
|
566
567
|
children: [
|
|
567
568
|
/* @__PURE__ */ t(
|
|
568
|
-
|
|
569
|
+
mt,
|
|
569
570
|
{
|
|
570
571
|
"aria-hidden": "true",
|
|
571
572
|
className: "ds:size-4 ds:shrink-0 ds:text-[var(--primary)]"
|
|
@@ -739,7 +740,7 @@ function _t({
|
|
|
739
740
|
O,
|
|
740
741
|
{
|
|
741
742
|
variant: "neutral",
|
|
742
|
-
leading: /* @__PURE__ */ t(
|
|
743
|
+
leading: /* @__PURE__ */ t(Pe, { "aria-hidden": "true" }),
|
|
743
744
|
children: Ie(k, x, b)
|
|
744
745
|
},
|
|
745
746
|
`lang-${k}`
|
|
@@ -877,7 +878,7 @@ function Tt({
|
|
|
877
878
|
O,
|
|
878
879
|
{
|
|
879
880
|
variant: "neutral",
|
|
880
|
-
leading: /* @__PURE__ */ t(
|
|
881
|
+
leading: /* @__PURE__ */ t(Pe, { "aria-hidden": "true" }),
|
|
881
882
|
children: Ie(w, u, o)
|
|
882
883
|
},
|
|
883
884
|
`lang-${w}`
|
|
@@ -1144,7 +1145,7 @@ function ve({ onRetry: e }) {
|
|
|
1144
1145
|
{
|
|
1145
1146
|
intent: "secondary",
|
|
1146
1147
|
size: "sm",
|
|
1147
|
-
startIcon: /* @__PURE__ */ t(
|
|
1148
|
+
startIcon: /* @__PURE__ */ t(pt, { "aria-hidden": "true" }),
|
|
1148
1149
|
onClick: e,
|
|
1149
1150
|
children: n("practiceResults.error.retry")
|
|
1150
1151
|
}
|
|
@@ -1572,7 +1573,7 @@ const Dt = nt(function({
|
|
|
1572
1573
|
}),
|
|
1573
1574
|
[n]
|
|
1574
1575
|
);
|
|
1575
|
-
at(Oe, () => re, [re]),
|
|
1576
|
+
at(Oe, () => re, [re]), dt(bt, re, H);
|
|
1576
1577
|
const Ee = G ? q ?? ae("practiceResults.card.open") : void 0, je = U ?? ae("practiceResults.card.book"), qe = D(
|
|
1577
1578
|
(v) => {
|
|
1578
1579
|
if (v.nextAvailableSlot)
|
|
@@ -1736,4 +1737,4 @@ export {
|
|
|
1736
1737
|
Dt as P,
|
|
1737
1738
|
bt as p
|
|
1738
1739
|
};
|
|
1739
|
-
//# sourceMappingURL=practice-results-
|
|
1740
|
+
//# sourceMappingURL=practice-results-kayDEorM.js.map
|
|
@@ -650,7 +650,7 @@ function bn({
|
|
|
650
650
|
open: o,
|
|
651
651
|
onClose: i,
|
|
652
652
|
ariaLabel: u("editor.ai.dialogTitle"),
|
|
653
|
-
children: he ? /* @__PURE__ */ v("div", { className: "ds:flex ds:items-
|
|
653
|
+
children: he ? /* @__PURE__ */ v("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
654
654
|
/* @__PURE__ */ e(
|
|
655
655
|
F,
|
|
656
656
|
{
|
|
@@ -702,7 +702,7 @@ function bn({
|
|
|
702
702
|
}
|
|
703
703
|
)
|
|
704
704
|
] }) : /* @__PURE__ */ v(ke, { children: [
|
|
705
|
-
/* @__PURE__ */ v("div", { className: "ds:flex ds:items-
|
|
705
|
+
/* @__PURE__ */ v("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
706
706
|
/* @__PURE__ */ e(
|
|
707
707
|
F,
|
|
708
708
|
{
|
|
@@ -719,7 +719,6 @@ function bn({
|
|
|
719
719
|
{
|
|
720
720
|
id: w,
|
|
721
721
|
size: "md",
|
|
722
|
-
className: "ds:content-center",
|
|
723
722
|
value: ge,
|
|
724
723
|
onChange: (M) => L(M.target.value),
|
|
725
724
|
placeholder: u("editor.ai.promptPlaceholder"),
|
|
@@ -2563,7 +2562,6 @@ const Qn = Ge(
|
|
|
2563
2562
|
"aria-busy": t.running || void 0,
|
|
2564
2563
|
disabled: je && !t.running || void 0,
|
|
2565
2564
|
"aria-label": t.label,
|
|
2566
|
-
title: t.label,
|
|
2567
2565
|
className: t.recording ? Jn : Yn,
|
|
2568
2566
|
children: t.icon
|
|
2569
2567
|
}
|
|
@@ -2626,4 +2624,4 @@ export {
|
|
|
2626
2624
|
hn as r,
|
|
2627
2625
|
Qn as w
|
|
2628
2626
|
};
|
|
2629
|
-
//# sourceMappingURL=rich-text-editor-
|
|
2627
|
+
//# sourceMappingURL=rich-text-editor-CCI-Y3DN.js.map
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
2
|
+
import { forwardRef as L } from "react";
|
|
3
|
+
import { c as w } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as T } from "react-i18next";
|
|
5
5
|
import { V as f } from "./visually-hidden-BHxEUGyT.js";
|
|
6
6
|
import { c as m } from "./createLucideIcon-DhHxpK9K.js";
|
|
7
7
|
import { U as g } from "./user-B12p7bVF.js";
|
|
8
|
-
import { C as
|
|
9
|
-
import { S as
|
|
10
|
-
import { C as
|
|
11
|
-
import { S
|
|
8
|
+
import { C as z } from "./chevron-right-I9AeSxH2.js";
|
|
9
|
+
import { S as V } from "./square-check-big-dj0o8yA3.js";
|
|
10
|
+
import { C as M } from "./circle-alert-rGDZ73Wh.js";
|
|
11
|
+
import { S } from "./square-DASBRZ0U.js";
|
|
12
12
|
/**
|
|
13
13
|
* @license lucide-react v1.22.0 - ISC
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the ISC license.
|
|
16
16
|
* See the LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/
|
|
18
|
-
const
|
|
18
|
+
const _ = [
|
|
19
19
|
["path", { d: "M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16", key: "jecpp" }],
|
|
20
20
|
["rect", { width: "20", height: "14", x: "2", y: "6", rx: "2", key: "i6l2r4" }]
|
|
21
|
-
],
|
|
21
|
+
], $ = m("briefcase", _);
|
|
22
22
|
/**
|
|
23
23
|
* @license lucide-react v1.22.0 - ISC
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the ISC license.
|
|
26
26
|
* See the LICENSE file in the root directory of this source tree.
|
|
27
27
|
*/
|
|
28
|
-
const
|
|
28
|
+
const j = [
|
|
29
29
|
["path", { d: "M10 12h4", key: "a56b0p" }],
|
|
30
30
|
["path", { d: "M10 8h4", key: "1sr2af" }],
|
|
31
31
|
["path", { d: "M14 21v-3a2 2 0 0 0-4 0v3", key: "1rgiei" }],
|
|
@@ -37,14 +37,15 @@ const $ = [
|
|
|
37
37
|
}
|
|
38
38
|
],
|
|
39
39
|
["path", { d: "M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16", key: "16ra0t" }]
|
|
40
|
-
],
|
|
40
|
+
], I = m("building-2", j), K = {
|
|
41
41
|
patient: g,
|
|
42
|
-
company:
|
|
43
|
-
operator:
|
|
44
|
-
},
|
|
42
|
+
company: I,
|
|
43
|
+
operator: $
|
|
44
|
+
}, U = w(
|
|
45
45
|
[
|
|
46
46
|
"ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
47
|
-
|
|
47
|
+
// Same corner as the elevated Card the note and appointment rows use.
|
|
48
|
+
"ds:rounded-[var(--radius-lg)]",
|
|
48
49
|
"ds:transition-colors",
|
|
49
50
|
"ds:motion-reduce:transition-none",
|
|
50
51
|
"ds:text-start ds:group",
|
|
@@ -70,7 +71,7 @@ const $ = [
|
|
|
70
71
|
}
|
|
71
72
|
), h = [
|
|
72
73
|
"ds:focus-visible:outline-none",
|
|
73
|
-
"ds:after:content-[''] ds:after:absolute ds:after:inset-0 ds:after:rounded-[var(--radius-
|
|
74
|
+
"ds:after:content-[''] ds:after:absolute ds:after:inset-0 ds:after:rounded-[var(--radius-lg)]",
|
|
74
75
|
"ds:after:pointer-events-auto",
|
|
75
76
|
"ds:focus-visible:after:outline-[length:var(--focus-ring-width)]",
|
|
76
77
|
"ds:focus-visible:after:outline-solid",
|
|
@@ -78,29 +79,29 @@ const $ = [
|
|
|
78
79
|
"ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
|
|
79
80
|
"ds:forced-colors:focus-visible:after:outline-[CanvasText]"
|
|
80
81
|
].join(" ");
|
|
81
|
-
function
|
|
82
|
+
function B(s) {
|
|
82
83
|
return /^(https?:\/\/(?!\/)|\/(?!\/)|#)/.test(s);
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function R({
|
|
85
86
|
status: s,
|
|
86
|
-
priority:
|
|
87
|
+
priority: t
|
|
87
88
|
}) {
|
|
88
|
-
const a =
|
|
89
|
-
return s === "done" ? /* @__PURE__ */ e(
|
|
89
|
+
const a = t === "high" ? "ds:text-[color:var(--destructive)]" : "ds:text-[color:var(--muted-foreground)]";
|
|
90
|
+
return s === "done" ? /* @__PURE__ */ e(V, { "aria-hidden": "true", className: `ds:size-4 ${a}` }) : t === "high" ? /* @__PURE__ */ e(M, { "aria-hidden": "true", className: `ds:size-4 ${a}` }) : /* @__PURE__ */ e(S, { "aria-hidden": "true", className: `ds:size-4 ${a}` });
|
|
90
91
|
}
|
|
91
|
-
const
|
|
92
|
-
({ item: s, size:
|
|
93
|
-
const { t: r } =
|
|
92
|
+
const q = L(
|
|
93
|
+
({ item: s, size: t = "sm", onActivate: a, actions: c, leading: v, className: k, ...b }, y) => {
|
|
94
|
+
const { t: r } = T(), n = !!a, x = !!s.url && B(s.url), p = r("taskCard.itemLabel", {
|
|
94
95
|
title: s.title,
|
|
95
96
|
due: s.dueLabel ?? "",
|
|
96
97
|
defaultValue: '{{title}}{{due, prepend, " · "}}'
|
|
97
|
-
}),
|
|
98
|
+
}), N = {
|
|
98
99
|
patient: r("taskCard.link.patient"),
|
|
99
100
|
company: r("taskCard.link.company"),
|
|
100
101
|
operator: r("taskCard.link.operator")
|
|
101
|
-
}, u = s.linkType ?
|
|
102
|
+
}, u = s.linkType ? K[s.linkType] : null, C = !!s.linkType && !!s.linkedLabel || !!s.assigneeLabel, l = /* @__PURE__ */ e("span", { className: "ds:flex-1 ds:min-w-0 ds:truncate type-body-sm ds:text-[color:var(--foreground)]", children: s.title });
|
|
102
103
|
let o;
|
|
103
|
-
return
|
|
104
|
+
return n && x ? o = /* @__PURE__ */ e(
|
|
104
105
|
"a",
|
|
105
106
|
{
|
|
106
107
|
href: s.url,
|
|
@@ -111,7 +112,7 @@ const R = C(
|
|
|
111
112
|
},
|
|
112
113
|
children: l
|
|
113
114
|
}
|
|
114
|
-
) :
|
|
115
|
+
) : n ? o = /* @__PURE__ */ e(
|
|
115
116
|
"button",
|
|
116
117
|
{
|
|
117
118
|
type: "button",
|
|
@@ -123,21 +124,21 @@ const R = C(
|
|
|
123
124
|
) : o = l, /* @__PURE__ */ d(
|
|
124
125
|
"div",
|
|
125
126
|
{
|
|
126
|
-
ref:
|
|
127
|
+
ref: y,
|
|
127
128
|
role: "listitem",
|
|
128
129
|
"data-component": "task-card",
|
|
129
130
|
"data-component-id": s.id,
|
|
130
131
|
"data-status": s.status ?? "open",
|
|
131
132
|
"data-priority": s.priority ?? "normal",
|
|
132
|
-
className:
|
|
133
|
-
...
|
|
133
|
+
className: U({ size: t, interactive: n, className: k }),
|
|
134
|
+
...b,
|
|
134
135
|
children: [
|
|
135
|
-
/* @__PURE__ */ e("span", { className: "ds:mt-[var(--spacing-2xs)] ds:shrink-0", children: /* @__PURE__ */ e(
|
|
136
|
+
/* @__PURE__ */ e("span", { className: "ds:relative ds:z-[1] ds:mt-[var(--spacing-2xs)] ds:shrink-0", children: v ?? /* @__PURE__ */ e(R, { status: s.status, priority: s.priority }) }),
|
|
136
137
|
/* @__PURE__ */ d("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
137
138
|
o,
|
|
138
139
|
s.description ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:truncate", children: s.description }) : null,
|
|
139
140
|
s.note ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:line-clamp-2", children: s.note }) : null,
|
|
140
|
-
|
|
141
|
+
C ? (
|
|
141
142
|
// `type-meta` (not `type-eyebrow`): these chips carry proper-noun
|
|
142
143
|
// values (patient / company / operator name, assignee) that must
|
|
143
144
|
// not be uppercased. Icons are decorative; the type word is exposed
|
|
@@ -152,7 +153,7 @@ const R = C(
|
|
|
152
153
|
className: "ds:size-3 ds:shrink-0"
|
|
153
154
|
}
|
|
154
155
|
),
|
|
155
|
-
/* @__PURE__ */ e(f, { children: `${
|
|
156
|
+
/* @__PURE__ */ e(f, { children: `${N[s.linkType]}: ` }),
|
|
156
157
|
/* @__PURE__ */ e("span", { className: "ds:truncate", children: s.linkedLabel })
|
|
157
158
|
] }) : null,
|
|
158
159
|
s.assigneeLabel ? /* @__PURE__ */ d("span", { className: "ds:inline-flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
@@ -169,8 +170,8 @@ const R = C(
|
|
|
169
170
|
// Above the stretched-link overlay so the buttons stay clickable.
|
|
170
171
|
/* @__PURE__ */ e("span", { className: "ds:relative ds:z-[1] ds:flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:shrink-0", children: c })
|
|
171
172
|
) : null,
|
|
172
|
-
|
|
173
|
-
|
|
173
|
+
n ? /* @__PURE__ */ e(
|
|
174
|
+
z,
|
|
174
175
|
{
|
|
175
176
|
"aria-hidden": "true",
|
|
176
177
|
className: "ds:mt-[var(--spacing-2xs)] ds:size-4 ds:shrink-0 ds:text-[color:var(--muted-foreground)] ds:opacity-0 ds:transition-opacity ds:motion-reduce:transition-none ds:group-hover:opacity-100 ds:group-focus-within:opacity-100 ds:rtl:rotate-180"
|
|
@@ -181,9 +182,9 @@ const R = C(
|
|
|
181
182
|
);
|
|
182
183
|
}
|
|
183
184
|
);
|
|
184
|
-
|
|
185
|
+
q.displayName = "TaskCard";
|
|
185
186
|
export {
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
q as T,
|
|
188
|
+
B as i
|
|
188
189
|
};
|
|
189
|
-
//# sourceMappingURL=task-card-
|
|
190
|
+
//# sourceMappingURL=task-card-BalrLkSz.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as M } from "react-i18next";
|
|
|
5
5
|
import { I as A } from "./icon-button-DA2CAGHZ.js";
|
|
6
6
|
import { S as V } from "./skeleton-CZbwyJAA.js";
|
|
7
7
|
import { E as F } from "./empty-state-X0sVPfVo.js";
|
|
8
|
-
import { T as G } from "./task-card-
|
|
8
|
+
import { T as G } from "./task-card-BalrLkSz.js";
|
|
9
9
|
import { u as J } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { S as L } from "./square-check-big-dj0o8yA3.js";
|
|
11
11
|
import { P as Q } from "./plus-DzMQ_c6b.js";
|
|
@@ -236,4 +236,4 @@ export {
|
|
|
236
236
|
X as T,
|
|
237
237
|
U as t
|
|
238
238
|
};
|
|
239
|
-
//# sourceMappingURL=task-tray-
|
|
239
|
+
//# sourceMappingURL=task-tray-COo-RlDv.js.map
|