@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.
Files changed (183) hide show
  1. package/dist/_chunks/{ai-summary-panel-Cdsve-XN.js → ai-summary-panel-D-RNe-_n.js} +3 -3
  2. package/dist/_chunks/{anamnesis-summary-rows-QCv6zW-J.js → anamnesis-summary-rows-CE-i9j-s.js} +2 -2
  3. package/dist/_chunks/{appointment-card-HOZrABrQ.js → appointment-card-BPZggqck.js} +2 -2
  4. package/dist/_chunks/{appointment-details-panel.history-BxNqcA-r.js → appointment-details-panel.history-BO31ZFQp.js} +2 -2
  5. package/dist/_chunks/{appointment-details-panel.identity--_j07UG1.js → appointment-details-panel.identity-C9kWtC6m.js} +90 -78
  6. package/dist/_chunks/appointment-peek-CGJ6kUvM.js +213 -0
  7. package/dist/_chunks/{appointment-timeline-CuZW-CGT.js → appointment-timeline-ynFqcw0S.js} +3 -3
  8. package/dist/_chunks/{appointment-tray-CFCxukwq.js → appointment-tray-Dx5VDREk.js} +2 -2
  9. package/dist/_chunks/{balance-badge-cell-BPz9bQAB.js → balance-badge-cell-DiyJQcmA.js} +2 -2
  10. package/dist/_chunks/{calendar-appointment-editor-dialog-Dx9_KIWA.js → calendar-appointment-editor-dialog-BfoEpFVx.js} +360 -356
  11. package/dist/_chunks/{calendar-editor-discard-host-DWS_kM-a.js → calendar-editor-discard-host-DO506cJu.js} +4 -4
  12. package/dist/_chunks/{calendar-waiting-list-panel-BKBHfBpn.js → calendar-waiting-list-panel-CyMTv2y3.js} +7 -7
  13. package/dist/_chunks/{calendar-workspace.model-4zmA3BFE.js → calendar-workspace.model-X3aXbDTo.js} +2 -2
  14. package/dist/_chunks/{calendar.sheets-lgAqJB34.js → calendar.sheets-C8x8kPb4.js} +10 -10
  15. package/dist/_chunks/{calls-panel-BTTfHnPD.js → calls-panel-Bpemmnpd.js} +4 -4
  16. package/dist/_chunks/{care-plan-card-2U2LuIJD.js → care-plan-card-DJXNWjKB.js} +3 -3
  17. package/dist/_chunks/{care-plan-entry-card-CUAlQv1c.js → care-plan-entry-card-W5QvNv8m.js} +2 -2
  18. package/dist/_chunks/{communications-panel-DDzUyoHi.js → communications-panel-Cd0TBEhL.js} +2 -2
  19. package/dist/_chunks/{control-room-rail-BQvaYowi.js → control-room-rail-4W1MFY-g.js} +3 -3
  20. package/dist/_chunks/{document-preview-oSuJsJ3k.js → document-preview-Zws6CHhK.js} +3 -3
  21. package/dist/_chunks/{editable-description-BsSjLnSx.js → editable-description-B2F54K4T.js} +34 -33
  22. package/dist/_chunks/{entity-summary-CZmGcWi2.js → entity-summary-BNnTP1F6.js} +62 -50
  23. package/dist/_chunks/feature-preview-switch-PKeLaFry.js +75 -0
  24. package/dist/_chunks/{file-manager-Cp3Z4VvM.js → file-manager-DzOCQBAO.js} +163 -178
  25. package/dist/_chunks/folder-CH9PJHou.js +36 -0
  26. package/dist/_chunks/{help-me-write-templates-DlA54nu5.js → help-me-write-templates-B_wMJ82X.js} +2 -2
  27. package/dist/_chunks/message-square-warning-DsGGfd0K.js +22 -0
  28. package/dist/_chunks/{notes-panel-Cw06dLDm.js → notes-panel-BguRX8VC.js} +374 -341
  29. package/dist/_chunks/{optical-prescription-DZvauMiM.js → optical-prescription-BzGnlIjq.js} +2 -2
  30. package/dist/_chunks/{panel-header-CbtlTe85.js → panel-header-DTc5OFUg.js} +78 -66
  31. package/dist/_chunks/{panel-subview-DjBwNV16.js → panel-subview-Om_yZvFG.js} +2 -2
  32. package/dist/_chunks/{patient-account-settings-Do0QbDJe.js → patient-account-settings-YKnBzmwE.js} +3 -3
  33. package/dist/_chunks/{patient-check-in-resume-Bxy1_Pfo.js → patient-check-in-resume-DERfQbp5.js} +5 -5
  34. package/dist/_chunks/{patient-details-Cj3dp9GB.js → patient-details-BUD0UbmT.js} +3 -3
  35. package/dist/_chunks/{patient-field-row-DDjsUsc_.js → patient-field-row-DytaHdGw.js} +201 -200
  36. package/dist/_chunks/{patient-summary-card-roM9Esfb.js → patient-summary-card-7Werxl48.js} +126 -139
  37. package/dist/_chunks/{payment-request-card-C9VglWsV.js → payment-request-card-BF3rakTQ.js} +2 -2
  38. package/dist/_chunks/{portal-details-CKF4yFHs.js → portal-details-C1QQGPQf.js} +3 -3
  39. package/dist/_chunks/{portal-documents-DvpAwmSI.js → portal-documents-CzEuCaqv.js} +3 -3
  40. package/dist/_chunks/{portal-parts-Cvu4PfIY.js → portal-parts-BMW4t57s.js} +2 -2
  41. package/dist/_chunks/{privacy-mask-zVh0ntm0.js → privacy-mask-CrjD5PYW.js} +2 -2
  42. package/dist/_chunks/{radiograph-panel.agent-BUZPsuSP.js → radiograph-panel.agent-Kl1M0dtT.js} +3 -3
  43. package/dist/_chunks/{registry-connection-panel-ACOsXu3F.js → registry-connection-panel-kdKbGQE6.js} +3 -3
  44. package/dist/_chunks/{reserved.agent-DjvapRF1.js → reserved.agent-CW0frsMv.js} +2 -2
  45. package/dist/_chunks/{reviews-panel-Cw5ygAxs.js → reviews-panel-54AFY6uy.js} +2 -2
  46. package/dist/_chunks/{rich-text-editor-eGdYDPK2.js → rich-text-editor-DCQEpaIv.js} +1398 -1280
  47. package/dist/_chunks/{task-editor-4zFL10oM.js → task-editor-CIHQQRtP.js} +219 -210
  48. package/dist/_chunks/{tasks-panel-BDPQPOP6.js → tasks-panel-Bc_odkQN.js} +2 -2
  49. package/dist/_chunks/text-area-DbxGkpzE.js +269 -0
  50. package/dist/_chunks/{tool-rail-DjPEiBa2.js → tool-rail-CJBtqzMs.js} +337 -320
  51. package/dist/_chunks/{transaction-chip-CkYd-3ky.js → transaction-chip-6jToArJn.js} +45 -43
  52. package/dist/_chunks/{transcript-panel-Wr8e4Zgi.js → transcript-panel-Dc0fK4WO.js} +2 -2
  53. package/dist/_chunks/{treatment-receipt-BZzwvsnY.js → treatment-receipt-B6m47Jie.js} +44 -46
  54. package/dist/_chunks/{use-appointment-details-read-Bl1DHXQ2.js → use-appointment-details-read-HVHbR0Zl.js} +769 -745
  55. package/dist/agent-catalog.json +15 -1
  56. package/dist/appointment-editor-panel/index.js +4 -4
  57. package/dist/booking-tools-data/index.js +1 -1
  58. package/dist/browser-support.js +1 -1
  59. package/dist/calendar-action-buttons/index.js +1 -1
  60. package/dist/components/_shared/appointment-format.d.ts +4 -0
  61. package/dist/components/_shared/patient-field-row.d.ts +5 -1
  62. package/dist/components/ai-summary-panel/index.js +1 -1
  63. package/dist/components/appointment-card/index.js +2 -2
  64. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +5 -2
  65. package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +3 -1
  66. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +3 -0
  67. package/dist/components/appointment-details-panel/index.js +2 -2
  68. package/dist/components/appointment-peek/appointment-peek.d.ts +45 -1
  69. package/dist/components/appointment-peek/index.js +1 -1
  70. package/dist/components/appointment-timeline/index.js +1 -1
  71. package/dist/components/booking/index.js +1 -1
  72. package/dist/components/calls-panel/index.js +1 -1
  73. package/dist/components/care-plan-card/index.js +1 -1
  74. package/dist/components/care-plan-entry-card/index.js +1 -1
  75. package/dist/components/communications-panel/index.js +1 -1
  76. package/dist/components/control-room-rail/index.js +1 -1
  77. package/dist/components/document-preview/index.js +1 -1
  78. package/dist/components/editable-description/editable-description.d.ts +7 -0
  79. package/dist/components/editable-description/index.js +1 -1
  80. package/dist/components/entity-summary/index.js +1 -1
  81. package/dist/components/feature-preview-switch/feature-preview-switch.d.ts +55 -0
  82. package/dist/components/feature-preview-switch/index.d.ts +2 -0
  83. package/dist/components/feature-preview-switch/index.js +5 -0
  84. package/dist/components/file-manager/index.js +1 -1
  85. package/dist/components/index.d.ts +1 -0
  86. package/dist/components/notes-panel/index.js +1 -1
  87. package/dist/components/notes-panel/notes-panel.d.ts +20 -0
  88. package/dist/components/optical-prescription/index.js +1 -1
  89. package/dist/components/panel-header/index.js +1 -1
  90. package/dist/components/panel-header/panel-header.d.ts +8 -0
  91. package/dist/components/panel-subview/index.js +1 -1
  92. package/dist/components/patient-details/index.js +1 -1
  93. package/dist/components/patient-summary-card/index.js +1 -1
  94. package/dist/components/patient-summary-card/patient-summary-card.d.ts +9 -0
  95. package/dist/components/patient-table/index.js +1 -1
  96. package/dist/components/payment-card/index.js +1 -1
  97. package/dist/components/radiograph-panel/index.js +1 -1
  98. package/dist/components/registry-connection-panel/index.js +1 -1
  99. package/dist/components/reviews-panel/index.js +1 -1
  100. package/dist/components/rich-text-editor/editor-toolbar.d.ts +4 -1
  101. package/dist/components/rich-text-editor/index.js +1 -1
  102. package/dist/components/task-editor/index.js +1 -1
  103. package/dist/components/tasks-panel/index.js +1 -1
  104. package/dist/components/text-area/index.js +1 -1
  105. package/dist/components/text-area/text-area.d.ts +15 -0
  106. package/dist/components/tool-rail/index.js +1 -1
  107. package/dist/components/tool-rail/tool-rail.d.ts +12 -1
  108. package/dist/components/transaction-chip/index.js +1 -1
  109. package/dist/components/transaction-chip/transaction-chip.d.ts +7 -0
  110. package/dist/components/transcript-panel/index.js +1 -1
  111. package/dist/components/treatment-receipt/index.js +1 -1
  112. package/dist/core.css +1 -1
  113. package/dist/find-free-slots-panel/index.js +1 -1
  114. package/dist/host-legacy.css +51 -4
  115. package/dist/i18n/locales/ar.d.ts +9 -0
  116. package/dist/i18n/locales/ar.js +8 -2
  117. package/dist/i18n/locales/de.d.ts +9 -0
  118. package/dist/i18n/locales/de.js +8 -2
  119. package/dist/i18n/locales/el.d.ts +9 -0
  120. package/dist/i18n/locales/el.js +10 -1
  121. package/dist/i18n/locales/en.d.ts +9 -0
  122. package/dist/i18n/locales/en.js +11 -2
  123. package/dist/i18n/locales/es.d.ts +9 -0
  124. package/dist/i18n/locales/es.js +10 -1
  125. package/dist/i18n/locales/fr.d.ts +9 -0
  126. package/dist/i18n/locales/fr.js +10 -1
  127. package/dist/i18n/locales/hi.d.ts +9 -0
  128. package/dist/i18n/locales/hi.js +8 -2
  129. package/dist/i18n/locales/it.d.ts +19 -10
  130. package/dist/i18n/locales/it.js +20 -11
  131. package/dist/i18n/locales/ja.d.ts +9 -0
  132. package/dist/i18n/locales/ja.js +8 -2
  133. package/dist/i18n/locales/nl.d.ts +9 -0
  134. package/dist/i18n/locales/nl.js +8 -2
  135. package/dist/i18n/locales/pl.d.ts +9 -0
  136. package/dist/i18n/locales/pl.js +10 -1
  137. package/dist/i18n/locales/pt.d.ts +9 -0
  138. package/dist/i18n/locales/pt.js +10 -1
  139. package/dist/i18n/locales/ro.d.ts +9 -0
  140. package/dist/i18n/locales/ro.js +10 -1
  141. package/dist/i18n/locales/ru.d.ts +9 -0
  142. package/dist/i18n/locales/ru.js +8 -2
  143. package/dist/i18n/locales/sq.d.ts +9 -0
  144. package/dist/i18n/locales/sq.js +10 -1
  145. package/dist/i18n/locales/sv.d.ts +9 -0
  146. package/dist/i18n/locales/sv.js +8 -2
  147. package/dist/i18n/locales/tr.d.ts +9 -0
  148. package/dist/i18n/locales/tr.js +8 -2
  149. package/dist/i18n/locales/zh.d.ts +9 -0
  150. package/dist/i18n/locales/zh.js +8 -2
  151. package/dist/index.js +775 -773
  152. package/dist/locales/ar.json +10 -1
  153. package/dist/locales/de.json +10 -1
  154. package/dist/locales/el.json +10 -1
  155. package/dist/locales/en.json +11 -2
  156. package/dist/locales/es.json +10 -1
  157. package/dist/locales/fr.json +10 -1
  158. package/dist/locales/hi.json +10 -1
  159. package/dist/locales/it.json +20 -11
  160. package/dist/locales/ja.json +10 -1
  161. package/dist/locales/nl.json +10 -1
  162. package/dist/locales/pl.json +10 -1
  163. package/dist/locales/pt.json +10 -1
  164. package/dist/locales/ro.json +10 -1
  165. package/dist/locales/ru.json +10 -1
  166. package/dist/locales/sq.json +10 -1
  167. package/dist/locales/sv.json +10 -1
  168. package/dist/locales/tr.json +10 -1
  169. package/dist/locales/zh.json +10 -1
  170. package/dist/online-bookings-panel/index.js +2 -2
  171. package/dist/patterns/anamnesis/index.js +1 -1
  172. package/dist/patterns/calendar/index.js +4 -4
  173. package/dist/patterns/help-me-write-templates/index.js +1 -1
  174. package/dist/patterns/patient-account-settings/index.js +1 -1
  175. package/dist/patterns/patient-check-in/index.js +1 -1
  176. package/dist/patterns/patient-portal/index.js +2 -2
  177. package/dist/tokens.css +1 -1
  178. package/dist/waiting-list-panel/index.js +3 -3
  179. package/package.json +5 -1
  180. package/dist/_chunks/appointment-peek-B3raO90X.js +0 -123
  181. package/dist/_chunks/contact-round-DiSvB3LP.js +0 -18
  182. package/dist/_chunks/folder-BghC8_S2.js +0 -20
  183. package/dist/_chunks/text-area-COMVJ1yE.js +0 -258
@@ -1,20 +1,32 @@
1
- import { jsxs as a, jsx as t, Fragment as P } from "react/jsx-runtime";
2
- import { forwardRef as D, useId as z, useRef as p, useImperativeHandle as H, useMemo as _ } from "react";
3
- import { useTranslation as q } from "react-i18next";
4
- import { A as y } from "./alert-C4WKViaS.js";
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-CbtlTe85.js";
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 { C as ee } from "./contact-round-DiSvB3LP.js";
17
- const te = {
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
- }, re = "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)]", ae = "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", Se = D(
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: R,
88
+ entityAvatarSrc: M,
77
89
  generatedAtIso: i,
78
90
  stats: d,
79
- sections: g,
91
+ sections: h,
80
92
  onRegenerate: o,
81
- regenerateLabel: j,
93
+ regenerateLabel: R,
82
94
  onClose: l,
83
95
  disclaimer: x,
84
- locale: B,
96
+ locale: j,
85
97
  showHeader: b = !0,
86
- className: T,
87
- "aria-label": h,
88
- ...V
89
- }, $) {
90
- const { t: c } = q("ui"), S = z(), K = f ?? c("entitySummary.title", { defaultValue: "AI summary" }), N = p(g);
91
- N.current = g;
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 A = p(null);
99
- H($, () => A.current, []);
100
- const M = _(
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(te, M, s);
127
- const I = 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: [
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: B })
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: A,
147
+ ref: I,
136
148
  "data-component": "entity-summary",
137
149
  "data-component-id": s,
138
- "aria-labelledby": h || !b ? void 0 : S,
139
- "aria-label": h,
140
- className: ["ds:flex ds:flex-col", T].filter(Boolean).join(" "),
141
- ...V,
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: K,
147
- icon: /* @__PURE__ */ t(ee, { "aria-hidden": "true" }),
148
- headingId: h ? void 0 : S,
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(P, { children: [
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: j ?? c("entitySummary.regenerate", {
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: R,
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
- I
211
+ A
200
212
  ] })
201
- ] }) : I,
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
- g.map((r) => /* @__PURE__ */ t(se, { section: r }, r.id)),
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 se({ section: e }) {
235
- const s = z();
246
+ function ie({ section: e }) {
247
+ const s = E();
236
248
  return e.tone === "attention" ? /* @__PURE__ */ a(
237
- y,
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(y.Title, { as: "h3", children: e.heading }),
246
- /* @__PURE__ */ t(E, { section: e }),
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(y.Action, { children: e.actions }) : null
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: re, children: e.icon }) : null,
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
- E,
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 E({
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: `${ae} ${s}`.trim(), children: e.items.map((f, n) => /* @__PURE__ */ t("li", { children: f }, n)) });
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
- Se as E
307
+ ke as E
296
308
  };
297
- //# sourceMappingURL=entity-summary-CZmGcWi2.js.map
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