@alfadocs/ui-kit 1.149.0 → 1.150.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-summary-panel-Cdsve-XN.js → ai-summary-panel-D-RNe-_n.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-rows-QCv6zW-J.js → anamnesis-summary-rows-CE-i9j-s.js} +2 -2
- package/dist/_chunks/{appointment-card-HOZrABrQ.js → appointment-card-BPZggqck.js} +2 -2
- package/dist/_chunks/{appointment-details-panel.history-BxNqcA-r.js → appointment-details-panel.history-BO31ZFQp.js} +2 -2
- package/dist/_chunks/{appointment-details-panel.identity--_j07UG1.js → appointment-details-panel.identity-C9kWtC6m.js} +90 -78
- package/dist/_chunks/appointment-peek-CGJ6kUvM.js +213 -0
- package/dist/_chunks/{appointment-timeline-CuZW-CGT.js → appointment-timeline-ynFqcw0S.js} +3 -3
- package/dist/_chunks/{appointment-tray-CFCxukwq.js → appointment-tray-Dx5VDREk.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-BPz9bQAB.js → balance-badge-cell-DiyJQcmA.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-Dx9_KIWA.js → calendar-appointment-editor-dialog-BfoEpFVx.js} +360 -356
- package/dist/_chunks/{calendar-editor-discard-host-DWS_kM-a.js → calendar-editor-discard-host-DO506cJu.js} +4 -4
- package/dist/_chunks/{calendar-waiting-list-panel-BKBHfBpn.js → calendar-waiting-list-panel-CyMTv2y3.js} +7 -7
- package/dist/_chunks/{calendar-workspace.model-4zmA3BFE.js → calendar-workspace.model-X3aXbDTo.js} +2 -2
- package/dist/_chunks/{calendar.sheets-lgAqJB34.js → calendar.sheets-C8x8kPb4.js} +10 -10
- package/dist/_chunks/{calls-panel-BTTfHnPD.js → calls-panel-Bpemmnpd.js} +4 -4
- package/dist/_chunks/{care-plan-card-2U2LuIJD.js → care-plan-card-DJXNWjKB.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CUAlQv1c.js → care-plan-entry-card-W5QvNv8m.js} +2 -2
- package/dist/_chunks/{communications-panel-DDzUyoHi.js → communications-panel-Cd0TBEhL.js} +2 -2
- package/dist/_chunks/{control-room-rail-BQvaYowi.js → control-room-rail-4W1MFY-g.js} +3 -3
- package/dist/_chunks/{document-preview-oSuJsJ3k.js → document-preview-Zws6CHhK.js} +3 -3
- package/dist/_chunks/{editable-description-BsSjLnSx.js → editable-description-B2F54K4T.js} +34 -33
- package/dist/_chunks/{entity-summary-CZmGcWi2.js → entity-summary-BNnTP1F6.js} +62 -50
- package/dist/_chunks/feature-preview-switch-PKeLaFry.js +75 -0
- package/dist/_chunks/{file-manager-Cp3Z4VvM.js → file-manager-DzOCQBAO.js} +163 -178
- package/dist/_chunks/folder-CH9PJHou.js +36 -0
- package/dist/_chunks/{help-me-write-templates-DlA54nu5.js → help-me-write-templates-B_wMJ82X.js} +2 -2
- package/dist/_chunks/message-square-warning-DsGGfd0K.js +22 -0
- package/dist/_chunks/{notes-panel-Cw06dLDm.js → notes-panel-BguRX8VC.js} +374 -341
- package/dist/_chunks/{optical-prescription-DZvauMiM.js → optical-prescription-BzGnlIjq.js} +2 -2
- package/dist/_chunks/{panel-header-CbtlTe85.js → panel-header-DTc5OFUg.js} +78 -66
- package/dist/_chunks/{panel-subview-DjBwNV16.js → panel-subview-Om_yZvFG.js} +2 -2
- package/dist/_chunks/{patient-account-settings-Do0QbDJe.js → patient-account-settings-YKnBzmwE.js} +3 -3
- package/dist/_chunks/{patient-check-in-resume-Bxy1_Pfo.js → patient-check-in-resume-DERfQbp5.js} +5 -5
- package/dist/_chunks/{patient-details-Cj3dp9GB.js → patient-details-BUD0UbmT.js} +3 -3
- package/dist/_chunks/{patient-field-row-DDjsUsc_.js → patient-field-row-DytaHdGw.js} +201 -200
- package/dist/_chunks/{patient-summary-card-roM9Esfb.js → patient-summary-card-7Werxl48.js} +126 -139
- package/dist/_chunks/{payment-request-card-C9VglWsV.js → payment-request-card-BF3rakTQ.js} +2 -2
- package/dist/_chunks/{portal-details-CKF4yFHs.js → portal-details-C1QQGPQf.js} +3 -3
- package/dist/_chunks/{portal-documents-DvpAwmSI.js → portal-documents-CzEuCaqv.js} +3 -3
- package/dist/_chunks/{portal-parts-Cvu4PfIY.js → portal-parts-BMW4t57s.js} +2 -2
- package/dist/_chunks/{privacy-mask-zVh0ntm0.js → privacy-mask-CrjD5PYW.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-BUZPsuSP.js → radiograph-panel.agent-Kl1M0dtT.js} +3 -3
- package/dist/_chunks/{registry-connection-panel-ACOsXu3F.js → registry-connection-panel-kdKbGQE6.js} +3 -3
- package/dist/_chunks/{reserved.agent-DjvapRF1.js → reserved.agent-CW0frsMv.js} +2 -2
- package/dist/_chunks/{reviews-panel-Cw5ygAxs.js → reviews-panel-54AFY6uy.js} +2 -2
- package/dist/_chunks/{rich-text-editor-eGdYDPK2.js → rich-text-editor-DCQEpaIv.js} +1398 -1280
- package/dist/_chunks/{task-editor-4zFL10oM.js → task-editor-CIHQQRtP.js} +219 -210
- package/dist/_chunks/{tasks-panel-BDPQPOP6.js → tasks-panel-Bc_odkQN.js} +2 -2
- package/dist/_chunks/text-area-DbxGkpzE.js +269 -0
- package/dist/_chunks/{tool-rail-DjPEiBa2.js → tool-rail-CJBtqzMs.js} +337 -320
- package/dist/_chunks/{transaction-chip-CkYd-3ky.js → transaction-chip-6jToArJn.js} +45 -43
- package/dist/_chunks/{transcript-panel-Wr8e4Zgi.js → transcript-panel-Dc0fK4WO.js} +2 -2
- package/dist/_chunks/{treatment-receipt-BZzwvsnY.js → treatment-receipt-B6m47Jie.js} +44 -46
- package/dist/_chunks/{use-appointment-details-read-Bl1DHXQ2.js → use-appointment-details-read-HVHbR0Zl.js} +769 -745
- package/dist/agent-catalog.json +15 -1
- package/dist/appointment-editor-panel/index.js +4 -4
- package/dist/booking-tools-data/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/calendar-action-buttons/index.js +1 -1
- package/dist/components/_shared/appointment-format.d.ts +4 -0
- package/dist/components/_shared/patient-field-row.d.ts +5 -1
- package/dist/components/ai-summary-panel/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +5 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +3 -1
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +3 -0
- package/dist/components/appointment-details-panel/index.js +2 -2
- package/dist/components/appointment-peek/appointment-peek.d.ts +45 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calls-panel/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/communications-panel/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/editable-description/editable-description.d.ts +7 -0
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/feature-preview-switch/feature-preview-switch.d.ts +55 -0
- package/dist/components/feature-preview-switch/index.d.ts +2 -0
- package/dist/components/feature-preview-switch/index.js +5 -0
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +20 -0
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/panel-header/index.js +1 -1
- package/dist/components/panel-header/panel-header.d.ts +8 -0
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-summary-card/patient-summary-card.d.ts +9 -0
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/registry-connection-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +4 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-area/text-area.d.ts +15 -0
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tool-rail/tool-rail.d.ts +12 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +7 -0
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-legacy.css +51 -4
- package/dist/i18n/locales/ar.d.ts +9 -0
- package/dist/i18n/locales/ar.js +8 -2
- package/dist/i18n/locales/de.d.ts +9 -0
- package/dist/i18n/locales/de.js +8 -2
- package/dist/i18n/locales/el.d.ts +9 -0
- package/dist/i18n/locales/el.js +10 -1
- package/dist/i18n/locales/en.d.ts +9 -0
- package/dist/i18n/locales/en.js +11 -2
- package/dist/i18n/locales/es.d.ts +9 -0
- package/dist/i18n/locales/es.js +10 -1
- package/dist/i18n/locales/fr.d.ts +9 -0
- package/dist/i18n/locales/fr.js +10 -1
- package/dist/i18n/locales/hi.d.ts +9 -0
- package/dist/i18n/locales/hi.js +8 -2
- package/dist/i18n/locales/it.d.ts +19 -10
- package/dist/i18n/locales/it.js +20 -11
- package/dist/i18n/locales/ja.d.ts +9 -0
- package/dist/i18n/locales/ja.js +8 -2
- package/dist/i18n/locales/nl.d.ts +9 -0
- package/dist/i18n/locales/nl.js +8 -2
- package/dist/i18n/locales/pl.d.ts +9 -0
- package/dist/i18n/locales/pl.js +10 -1
- package/dist/i18n/locales/pt.d.ts +9 -0
- package/dist/i18n/locales/pt.js +10 -1
- package/dist/i18n/locales/ro.d.ts +9 -0
- package/dist/i18n/locales/ro.js +10 -1
- package/dist/i18n/locales/ru.d.ts +9 -0
- package/dist/i18n/locales/ru.js +8 -2
- package/dist/i18n/locales/sq.d.ts +9 -0
- package/dist/i18n/locales/sq.js +10 -1
- package/dist/i18n/locales/sv.d.ts +9 -0
- package/dist/i18n/locales/sv.js +8 -2
- package/dist/i18n/locales/tr.d.ts +9 -0
- package/dist/i18n/locales/tr.js +8 -2
- package/dist/i18n/locales/zh.d.ts +9 -0
- package/dist/i18n/locales/zh.js +8 -2
- package/dist/index.js +775 -773
- package/dist/locales/ar.json +10 -1
- package/dist/locales/de.json +10 -1
- package/dist/locales/el.json +10 -1
- package/dist/locales/en.json +11 -2
- package/dist/locales/es.json +10 -1
- package/dist/locales/fr.json +10 -1
- package/dist/locales/hi.json +10 -1
- package/dist/locales/it.json +20 -11
- package/dist/locales/ja.json +10 -1
- package/dist/locales/nl.json +10 -1
- package/dist/locales/pl.json +10 -1
- package/dist/locales/pt.json +10 -1
- package/dist/locales/ro.json +10 -1
- package/dist/locales/ru.json +10 -1
- package/dist/locales/sq.json +10 -1
- package/dist/locales/sv.json +10 -1
- package/dist/locales/tr.json +10 -1
- package/dist/locales/zh.json +10 -1
- package/dist/online-bookings-panel/index.js +2 -2
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +4 -4
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- 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/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +3 -3
- package/package.json +5 -1
- package/dist/_chunks/appointment-peek-B3raO90X.js +0 -123
- package/dist/_chunks/contact-round-DiSvB3LP.js +0 -18
- package/dist/_chunks/folder-BghC8_S2.js +0 -20
- package/dist/_chunks/text-area-COMVJ1yE.js +0 -258
|
@@ -1,20 +1,32 @@
|
|
|
1
|
-
import { jsxs as a, jsx as t, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { A as
|
|
1
|
+
import { jsxs as a, jsx as t, Fragment as q } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as K, useId as E, useRef as p, useImperativeHandle as P, useMemo as D } from "react";
|
|
3
|
+
import { useTranslation as H } from "react-i18next";
|
|
4
|
+
import { A as g } from "./alert-C4WKViaS.js";
|
|
5
5
|
import { A as O } from "./avatar-Dp5apm1d.js";
|
|
6
6
|
import { B as F } from "./button-Dp4j9ygh.js";
|
|
7
7
|
import { I as G } from "./icon-button-u9VMQn3x.js";
|
|
8
8
|
import { C as L } from "./card-n6W6LW-N.js";
|
|
9
9
|
import { L as W } from "./link-CeV7FoI6.js";
|
|
10
|
-
import { P as X } from "./panel-header-
|
|
10
|
+
import { P as X } from "./panel-header-DTc5OFUg.js";
|
|
11
11
|
import { T as J } from "./timestamp-UMF1llBs.js";
|
|
12
12
|
import { u as Q } from "./registry-DvAUVLHh.js";
|
|
13
13
|
import { C as U } from "./clock-Drd4Wtis.js";
|
|
14
14
|
import { R as Y } from "./refresh-cw-DnI0cLFC.js";
|
|
15
15
|
import { X as Z } from "./x-B5YnXwCz.js";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import { c as ee } from "./createLucideIcon-DhHxpK9K.js";
|
|
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 te = [
|
|
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
|
+
], re = ee("contact-round", te), ae = {
|
|
18
30
|
id: "entity-summary",
|
|
19
31
|
// 'close' backs close; regenerate is a host-driven refresh with no
|
|
20
32
|
// dedicated capability in the closed vocabulary.
|
|
@@ -67,37 +79,37 @@ const te = {
|
|
|
67
79
|
description: "Sourced from the id prop. Required to address a specific summary panel from the agent."
|
|
68
80
|
}
|
|
69
81
|
}
|
|
70
|
-
},
|
|
82
|
+
}, se = "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)]", ne = "ds:m-0 ds:flex ds:list-disc ds:flex-col ds:gap-[var(--spacing-2xs)] ds:ps-[var(--spacing-md)] ds:break-words type-body-sm", ke = K(
|
|
71
83
|
function({
|
|
72
84
|
id: s,
|
|
73
85
|
title: f,
|
|
74
86
|
entityName: n,
|
|
75
87
|
entityHref: v,
|
|
76
|
-
entityAvatarSrc:
|
|
88
|
+
entityAvatarSrc: M,
|
|
77
89
|
generatedAtIso: i,
|
|
78
90
|
stats: d,
|
|
79
|
-
sections:
|
|
91
|
+
sections: h,
|
|
80
92
|
onRegenerate: o,
|
|
81
|
-
regenerateLabel:
|
|
93
|
+
regenerateLabel: R,
|
|
82
94
|
onClose: l,
|
|
83
95
|
disclaimer: x,
|
|
84
|
-
locale:
|
|
96
|
+
locale: j,
|
|
85
97
|
showHeader: b = !0,
|
|
86
|
-
className:
|
|
87
|
-
"aria-label":
|
|
88
|
-
...
|
|
89
|
-
},
|
|
90
|
-
const { t: c } =
|
|
91
|
-
N.current =
|
|
98
|
+
className: B,
|
|
99
|
+
"aria-label": y,
|
|
100
|
+
...T
|
|
101
|
+
}, V) {
|
|
102
|
+
const { t: c } = H("ui"), S = E(), _ = f ?? c("entitySummary.title", { defaultValue: "AI summary" }), N = p(h);
|
|
103
|
+
N.current = h;
|
|
92
104
|
const k = p(i);
|
|
93
105
|
k.current = i;
|
|
94
106
|
const m = p(o);
|
|
95
107
|
m.current = o;
|
|
96
108
|
const u = p(l);
|
|
97
109
|
u.current = l;
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
const
|
|
110
|
+
const I = p(null);
|
|
111
|
+
P(V, () => I.current, []);
|
|
112
|
+
const $ = D(
|
|
101
113
|
() => ({
|
|
102
114
|
// Structural only — section headings are fixed category labels, never
|
|
103
115
|
// the entity name or the bullet items (both PHI).
|
|
@@ -123,32 +135,32 @@ const te = {
|
|
|
123
135
|
}),
|
|
124
136
|
[]
|
|
125
137
|
);
|
|
126
|
-
Q(
|
|
127
|
-
const
|
|
138
|
+
Q(ae, $, s);
|
|
139
|
+
const A = i ? /* @__PURE__ */ a("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] type-meta ds:text-[color:var(--muted-foreground)]", children: [
|
|
128
140
|
/* @__PURE__ */ t(U, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
|
|
129
141
|
/* @__PURE__ */ t("span", { children: c("entitySummary.generatedAt", { defaultValue: "Generated" }) }),
|
|
130
|
-
/* @__PURE__ */ t(J, { value: i, format: "absolute", locale:
|
|
142
|
+
/* @__PURE__ */ t(J, { value: i, format: "absolute", locale: j })
|
|
131
143
|
] }) : null;
|
|
132
144
|
return /* @__PURE__ */ a(
|
|
133
145
|
"section",
|
|
134
146
|
{
|
|
135
|
-
ref:
|
|
147
|
+
ref: I,
|
|
136
148
|
"data-component": "entity-summary",
|
|
137
149
|
"data-component-id": s,
|
|
138
|
-
"aria-labelledby":
|
|
139
|
-
"aria-label":
|
|
140
|
-
className: ["ds:flex ds:flex-col",
|
|
141
|
-
...
|
|
150
|
+
"aria-labelledby": y || !b ? void 0 : S,
|
|
151
|
+
"aria-label": y,
|
|
152
|
+
className: ["ds:flex ds:flex-col", B].filter(Boolean).join(" "),
|
|
153
|
+
...T,
|
|
142
154
|
children: [
|
|
143
155
|
b ? /* @__PURE__ */ t(
|
|
144
156
|
X,
|
|
145
157
|
{
|
|
146
|
-
title:
|
|
147
|
-
icon: /* @__PURE__ */ t(
|
|
148
|
-
headingId:
|
|
158
|
+
title: _,
|
|
159
|
+
icon: /* @__PURE__ */ t(re, { "aria-hidden": "true" }),
|
|
160
|
+
headingId: y ? void 0 : S,
|
|
149
161
|
sticky: !0,
|
|
150
162
|
divider: !0,
|
|
151
|
-
actions: o || l ? /* @__PURE__ */ a(
|
|
163
|
+
actions: o || l ? /* @__PURE__ */ a(q, { children: [
|
|
152
164
|
o ? /* @__PURE__ */ t(
|
|
153
165
|
F,
|
|
154
166
|
{
|
|
@@ -157,7 +169,7 @@ const te = {
|
|
|
157
169
|
intent: "ghost",
|
|
158
170
|
startIcon: /* @__PURE__ */ t(Y, { "aria-hidden": "true" }),
|
|
159
171
|
onClick: o,
|
|
160
|
-
children:
|
|
172
|
+
children: R ?? c("entitySummary.regenerate", {
|
|
161
173
|
defaultValue: "Regenerate"
|
|
162
174
|
})
|
|
163
175
|
}
|
|
@@ -182,7 +194,7 @@ const te = {
|
|
|
182
194
|
O,
|
|
183
195
|
{
|
|
184
196
|
name: n,
|
|
185
|
-
src:
|
|
197
|
+
src: M,
|
|
186
198
|
size: "sm",
|
|
187
199
|
className: "ds:shrink-0"
|
|
188
200
|
}
|
|
@@ -196,9 +208,9 @@ const te = {
|
|
|
196
208
|
children: n
|
|
197
209
|
}
|
|
198
210
|
) : /* @__PURE__ */ t("span", { className: "type-body-sm ds:font-semibold ds:text-[color:var(--foreground)]", children: n }),
|
|
199
|
-
|
|
211
|
+
A
|
|
200
212
|
] })
|
|
201
|
-
] }) :
|
|
213
|
+
] }) : A,
|
|
202
214
|
d && d.length > 0 ? /* @__PURE__ */ t(L, { variant: "elevated", children: /* @__PURE__ */ t(
|
|
203
215
|
"ul",
|
|
204
216
|
{
|
|
@@ -221,7 +233,7 @@ const te = {
|
|
|
221
233
|
}
|
|
222
234
|
) }) : null
|
|
223
235
|
] }) : null,
|
|
224
|
-
|
|
236
|
+
h.map((r) => /* @__PURE__ */ t(ie, { section: r }, r.id)),
|
|
225
237
|
x === !1 ? null : /* @__PURE__ */ t("p", { className: "ds:m-0 type-meta ds:text-[color:var(--muted-foreground)]", children: x ?? c("entitySummary.disclaimer", {
|
|
226
238
|
defaultValue: "Does not replace clinical judgement · verify accuracy before clinical use · BETA"
|
|
227
239
|
}) })
|
|
@@ -231,10 +243,10 @@ const te = {
|
|
|
231
243
|
);
|
|
232
244
|
}
|
|
233
245
|
);
|
|
234
|
-
function
|
|
235
|
-
const s =
|
|
246
|
+
function ie({ section: e }) {
|
|
247
|
+
const s = E();
|
|
236
248
|
return e.tone === "attention" ? /* @__PURE__ */ a(
|
|
237
|
-
|
|
249
|
+
g,
|
|
238
250
|
{
|
|
239
251
|
variant: "warning",
|
|
240
252
|
live: "off",
|
|
@@ -242,10 +254,10 @@ function se({ section: e }) {
|
|
|
242
254
|
className: "ds:shadow-[var(--shadow-card)]",
|
|
243
255
|
...C(e),
|
|
244
256
|
children: [
|
|
245
|
-
/* @__PURE__ */ t(
|
|
246
|
-
/* @__PURE__ */ t(
|
|
257
|
+
/* @__PURE__ */ t(g.Title, { as: "h3", children: e.heading }),
|
|
258
|
+
/* @__PURE__ */ t(z, { section: e }),
|
|
247
259
|
e.footer,
|
|
248
|
-
e.actions ? /* @__PURE__ */ t(
|
|
260
|
+
e.actions ? /* @__PURE__ */ t(g.Action, { children: e.actions }) : null
|
|
249
261
|
]
|
|
250
262
|
}
|
|
251
263
|
) : /* @__PURE__ */ t(
|
|
@@ -256,7 +268,7 @@ function se({ section: e }) {
|
|
|
256
268
|
...C(e),
|
|
257
269
|
children: /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
258
270
|
/* @__PURE__ */ a("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
259
|
-
e.icon ? /* @__PURE__ */ t("span", { "aria-hidden": "true", className:
|
|
271
|
+
e.icon ? /* @__PURE__ */ t("span", { "aria-hidden": "true", className: se, children: e.icon }) : null,
|
|
260
272
|
/* @__PURE__ */ t(
|
|
261
273
|
"h3",
|
|
262
274
|
{
|
|
@@ -268,7 +280,7 @@ function se({ section: e }) {
|
|
|
268
280
|
e.actions ? /* @__PURE__ */ t("div", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:items-center", children: e.actions }) : null
|
|
269
281
|
] }),
|
|
270
282
|
/* @__PURE__ */ t(
|
|
271
|
-
|
|
283
|
+
z,
|
|
272
284
|
{
|
|
273
285
|
section: e,
|
|
274
286
|
tone: "ds:text-[color:var(--foreground)]"
|
|
@@ -285,13 +297,13 @@ function C(e) {
|
|
|
285
297
|
"aria-busy": e.busy || void 0
|
|
286
298
|
};
|
|
287
299
|
}
|
|
288
|
-
function
|
|
300
|
+
function z({
|
|
289
301
|
section: e,
|
|
290
302
|
tone: s = ""
|
|
291
303
|
}) {
|
|
292
|
-
return e.body !== void 0 ? e.body : e.items.length === 0 && e.emptyLabel ? /* @__PURE__ */ t("p", { className: `ds:m-0 type-body-sm ${s}`.trim(), children: e.emptyLabel }) : /* @__PURE__ */ t("ul", { className: `${
|
|
304
|
+
return e.body !== void 0 ? e.body : e.items.length === 0 && e.emptyLabel ? /* @__PURE__ */ t("p", { className: `ds:m-0 type-body-sm ${s}`.trim(), children: e.emptyLabel }) : /* @__PURE__ */ t("ul", { className: `${ne} ${s}`.trim(), children: e.items.map((f, n) => /* @__PURE__ */ t("li", { children: f }, n)) });
|
|
293
305
|
}
|
|
294
306
|
export {
|
|
295
|
-
|
|
307
|
+
ke as E
|
|
296
308
|
};
|
|
297
|
-
//# sourceMappingURL=entity-summary-
|
|
309
|
+
//# sourceMappingURL=entity-summary-BNnTP1F6.js.map
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsxs as u, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h } from "react";
|
|
3
|
+
import { c as S } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { B as x } from "./badge-BUk4RjTS.js";
|
|
5
|
+
import { I as g } from "./info-tip-cCppV1fD.js";
|
|
6
|
+
import { S as z } from "./switch-DO6uC4HJ.js";
|
|
7
|
+
const b = S(
|
|
8
|
+
"ds:inline-flex ds:max-w-full ds:items-center",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
size: {
|
|
12
|
+
sm: "ds:gap-[var(--spacing-xs)]",
|
|
13
|
+
md: "ds:gap-[var(--spacing-sm)]"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: { size: "md" }
|
|
17
|
+
}
|
|
18
|
+
), F = h(
|
|
19
|
+
({
|
|
20
|
+
label: r,
|
|
21
|
+
checked: t,
|
|
22
|
+
defaultChecked: m,
|
|
23
|
+
onCheckedChange: l,
|
|
24
|
+
disabled: d,
|
|
25
|
+
tag: e,
|
|
26
|
+
info: a,
|
|
27
|
+
infoHeading: n,
|
|
28
|
+
infoLabel: c,
|
|
29
|
+
infoSide: o = "bottom",
|
|
30
|
+
infoAlign: p = "center",
|
|
31
|
+
size: i = "md",
|
|
32
|
+
className: f,
|
|
33
|
+
...v
|
|
34
|
+
}, w) => /* @__PURE__ */ u(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
ref: w,
|
|
38
|
+
"data-component": "feature-preview-switch",
|
|
39
|
+
className: b({ size: i, className: f }),
|
|
40
|
+
...v,
|
|
41
|
+
children: [
|
|
42
|
+
e != null && e !== !1 ? /* @__PURE__ */ s(x, { variant: "accent", size: "sm", className: "ds:shrink-0", children: e }) : null,
|
|
43
|
+
/* @__PURE__ */ s(
|
|
44
|
+
z,
|
|
45
|
+
{
|
|
46
|
+
size: i,
|
|
47
|
+
label: r,
|
|
48
|
+
labelSide: "start",
|
|
49
|
+
checked: t,
|
|
50
|
+
defaultChecked: m,
|
|
51
|
+
onCheckedChange: l,
|
|
52
|
+
disabled: d
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
a != null && a !== !1 ? /* @__PURE__ */ s(
|
|
56
|
+
g,
|
|
57
|
+
{
|
|
58
|
+
size: "sm",
|
|
59
|
+
cardSize: "md",
|
|
60
|
+
side: o,
|
|
61
|
+
align: p,
|
|
62
|
+
"aria-label": c,
|
|
63
|
+
heading: n,
|
|
64
|
+
content: a
|
|
65
|
+
}
|
|
66
|
+
) : null
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
);
|
|
71
|
+
F.displayName = "FeaturePreviewSwitch";
|
|
72
|
+
export {
|
|
73
|
+
F
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=feature-preview-switch-PKeLaFry.js.map
|