@alfadocs/ui-kit 1.36.1 → 1.37.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 (127) hide show
  1. package/dist/_chunks/appointment-peek-5S4O1VQP.js +115 -0
  2. package/dist/_chunks/appointment-peek.agent-C539tNFM.js +17 -0
  3. package/dist/_chunks/building-2-D33bLCWL.js +24 -0
  4. package/dist/_chunks/calendar-workspace-BqKBj26r.js +9715 -0
  5. package/dist/_chunks/{control-room-rail-Ds45_g4f.js → control-room-rail-DQoHdE1U.js} +2 -2
  6. package/dist/_chunks/editable-description-BOfAeY3T.js +112 -0
  7. package/dist/_chunks/editable-description.agent-Bm_LBV2j.js +21 -0
  8. package/dist/_chunks/{money.agent-Dw55UxUA.js → money-BY-HmKhZ.js} +33 -47
  9. package/dist/_chunks/money.agent-BjJ6gOkx.js +17 -0
  10. package/dist/_chunks/notes-panel-4y5JioWN.js +556 -0
  11. package/dist/_chunks/panel-subview-BNXN8OEL.js +160 -0
  12. package/dist/_chunks/panel-subview.agent-BIBvE-IW.js +17 -0
  13. package/dist/_chunks/{patient-details-f7SSXkTJ.js → patient-details-2cIaL-Zb.js} +2 -2
  14. package/dist/_chunks/{patient-field-row-BQZoP4m2.js → patient-field-row-IHb2VFc2.js} +193 -172
  15. package/dist/_chunks/{patient-summary-card-Bz7KdUin.js → patient-summary-card-BzmJH9a-.js} +2 -2
  16. package/dist/_chunks/{section-card.agent-W18CHEgX.js → section-card-XR2bW1Ie.js} +20 -34
  17. package/dist/_chunks/section-card.agent-Bz1BhM_j.js +17 -0
  18. package/dist/_chunks/smartphone-DaPcFw-X.js +32 -0
  19. package/dist/_chunks/{task-card-BalrLkSz.js → task-card-qTKD1fIT.js} +39 -57
  20. package/dist/_chunks/{task-tray-wl9eti6J.js → task-tray-CQ8UAR2j.js} +2 -2
  21. package/dist/_chunks/{tasks-panel-BDNB7hsZ.js → tasks-panel-CBGMtQ_f.js} +2 -2
  22. package/dist/_chunks/{tool-rail-Bq5eiFMG.js → tool-rail-BP8sjxCw.js} +310 -231
  23. package/dist/_chunks/treatment-receipt-D4kOLXOk.js +94 -0
  24. package/dist/_chunks/treatment-receipt.agent-bpFm2RPH.js +21 -0
  25. package/dist/_chunks/use-presence-transition-cDwWUXV-.js +58 -0
  26. package/dist/_chunks/{workflow-map-D-LEni11.js → workflow-map-CXdsxvUj.js} +140 -156
  27. package/dist/agent-catalog.json +65 -1
  28. package/dist/components/appointment-peek/appointment-peek.agent.d.ts +3 -0
  29. package/dist/components/appointment-peek/appointment-peek.d.ts +45 -0
  30. package/dist/components/appointment-peek/index.d.ts +4 -0
  31. package/dist/components/appointment-peek/index.js +7 -0
  32. package/dist/components/control-room-rail/index.js +1 -1
  33. package/dist/components/editable-description/editable-description.agent.d.ts +3 -0
  34. package/dist/components/editable-description/editable-description.d.ts +20 -0
  35. package/dist/components/editable-description/index.d.ts +4 -0
  36. package/dist/components/editable-description/index.js +7 -0
  37. package/dist/components/index.d.ts +4 -0
  38. package/dist/components/money/index.js +2 -1
  39. package/dist/components/notes-panel/index.js +1 -1
  40. package/dist/components/notes-panel/notes-panel.d.ts +16 -0
  41. package/dist/components/panel-subview/index.d.ts +4 -0
  42. package/dist/components/panel-subview/index.js +7 -0
  43. package/dist/components/panel-subview/panel-subview.agent.d.ts +3 -0
  44. package/dist/components/panel-subview/panel-subview.d.ts +32 -0
  45. package/dist/components/patient-details/index.js +1 -1
  46. package/dist/components/patient-summary-card/index.js +1 -1
  47. package/dist/components/section-card/index.js +4 -3
  48. package/dist/components/task-card/index.js +1 -1
  49. package/dist/components/task-tray/index.js +1 -1
  50. package/dist/components/tasks-panel/index.js +1 -1
  51. package/dist/components/tool-rail/index.js +1 -1
  52. package/dist/components/treatment-receipt/index.d.ts +4 -0
  53. package/dist/components/treatment-receipt/index.js +7 -0
  54. package/dist/components/treatment-receipt/treatment-receipt.agent.d.ts +3 -0
  55. package/dist/components/treatment-receipt/treatment-receipt.d.ts +30 -0
  56. package/dist/components/workflow/index.js +1 -1
  57. package/dist/hooks/index.d.ts +1 -0
  58. package/dist/hooks/index.js +9 -7
  59. package/dist/hooks/use-presence-transition.d.ts +40 -0
  60. package/dist/host-compat.css +7 -1
  61. package/dist/i18n/locales/ar.d.ts +29 -5
  62. package/dist/i18n/locales/ar.js +29 -5
  63. package/dist/i18n/locales/de.d.ts +29 -5
  64. package/dist/i18n/locales/de.js +29 -5
  65. package/dist/i18n/locales/el.d.ts +29 -5
  66. package/dist/i18n/locales/el.js +29 -5
  67. package/dist/i18n/locales/en.d.ts +29 -5
  68. package/dist/i18n/locales/en.js +29 -5
  69. package/dist/i18n/locales/es.d.ts +29 -5
  70. package/dist/i18n/locales/es.js +29 -5
  71. package/dist/i18n/locales/fr.d.ts +29 -5
  72. package/dist/i18n/locales/fr.js +29 -5
  73. package/dist/i18n/locales/hi.d.ts +29 -5
  74. package/dist/i18n/locales/hi.js +29 -5
  75. package/dist/i18n/locales/it.d.ts +29 -5
  76. package/dist/i18n/locales/it.js +29 -5
  77. package/dist/i18n/locales/ja.d.ts +29 -5
  78. package/dist/i18n/locales/ja.js +29 -5
  79. package/dist/i18n/locales/nl.d.ts +29 -5
  80. package/dist/i18n/locales/nl.js +29 -5
  81. package/dist/i18n/locales/pl.d.ts +29 -5
  82. package/dist/i18n/locales/pl.js +29 -5
  83. package/dist/i18n/locales/pt.d.ts +29 -5
  84. package/dist/i18n/locales/pt.js +29 -5
  85. package/dist/i18n/locales/ro.d.ts +29 -5
  86. package/dist/i18n/locales/ro.js +29 -5
  87. package/dist/i18n/locales/ru.d.ts +29 -5
  88. package/dist/i18n/locales/ru.js +29 -5
  89. package/dist/i18n/locales/sq.d.ts +29 -5
  90. package/dist/i18n/locales/sq.js +29 -5
  91. package/dist/i18n/locales/sv.d.ts +29 -5
  92. package/dist/i18n/locales/sv.js +29 -5
  93. package/dist/i18n/locales/tr.d.ts +29 -5
  94. package/dist/i18n/locales/tr.js +29 -5
  95. package/dist/i18n/locales/zh.d.ts +29 -5
  96. package/dist/i18n/locales/zh.js +29 -5
  97. package/dist/index.js +958 -940
  98. package/dist/locales/ar.json +29 -5
  99. package/dist/locales/de.json +29 -5
  100. package/dist/locales/el.json +29 -5
  101. package/dist/locales/en.json +29 -5
  102. package/dist/locales/es.json +29 -5
  103. package/dist/locales/fr.json +29 -5
  104. package/dist/locales/hi.json +29 -5
  105. package/dist/locales/it.json +29 -5
  106. package/dist/locales/ja.json +29 -5
  107. package/dist/locales/nl.json +29 -5
  108. package/dist/locales/pl.json +29 -5
  109. package/dist/locales/pt.json +29 -5
  110. package/dist/locales/ro.json +29 -5
  111. package/dist/locales/ru.json +29 -5
  112. package/dist/locales/sq.json +29 -5
  113. package/dist/locales/sv.json +29 -5
  114. package/dist/locales/tr.json +29 -5
  115. package/dist/locales/zh.json +29 -5
  116. package/dist/patterns/calendar/calendar-appointment-details.d.ts +15 -6
  117. package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +23 -23
  118. package/dist/patterns/calendar/calendar-info-hover.d.ts +18 -0
  119. package/dist/patterns/calendar/calendar.journey.d.ts +10 -0
  120. package/dist/patterns/calendar/calendar.sheets.d.ts +2 -2
  121. package/dist/patterns/calendar/index.js +1 -1
  122. package/dist/tokens.css +1 -1
  123. package/package.json +17 -1
  124. package/dist/_chunks/calendar-workspace-BYwQK7fz.js +0 -9478
  125. package/dist/_chunks/hourglass-BEAzW1wE.js +0 -26
  126. package/dist/_chunks/notes-panel-Co8D3uDd.js +0 -469
  127. package/dist/_chunks/smartphone-C0rFF2if.js +0 -15
@@ -0,0 +1,115 @@
1
+ import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
+ import { forwardRef as C, isValidElement as P } from "react";
3
+ import { c as D } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as V } from "react-i18next";
5
+ import { A as y } from "./avatar-CkDeQOSI.js";
6
+ import { D as l } from "./description-list-C1RXMDZ_.js";
7
+ import { H as z } from "./hover-card-Bcku1GQu.js";
8
+ import { a as E } from "./workflow-status-xeaJTzD3.js";
9
+ import { C as H } from "./clock-Drd4Wtis.js";
10
+ import { V as I } from "./video-BheNGvsu.js";
11
+ import { A as S } from "./armchair-BaLDW6Hz.js";
12
+ import { E as j } from "./eye-off-C_4xkbRP.js";
13
+ import { a as L } from "./entity-card-I-Gio5wo.js";
14
+ const R = D(
15
+ "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-sm)]"
16
+ ), T = C(
17
+ ({
18
+ name: t,
19
+ avatarSrc: v,
20
+ time: h,
21
+ location: m,
22
+ telehealth: u = !1,
23
+ status: s,
24
+ statusLabel: x,
25
+ details: c,
26
+ flags: d,
27
+ privacy: r = !1,
28
+ className: k,
29
+ ...N
30
+ }, g) => {
31
+ const { t: o } = V(), i = s ? L(s) : null, p = i == null ? void 0 : i.Icon, w = u ? I : S, f = !r, A = [
32
+ { icon: /* @__PURE__ */ e(H, {}), label: o("appointmentPeek.time"), value: h },
33
+ ...m ? [
34
+ {
35
+ icon: /* @__PURE__ */ e(w, {}),
36
+ label: o("appointmentPeek.location"),
37
+ value: m
38
+ }
39
+ ] : [],
40
+ ...f && c ? c.map((a) => ({
41
+ icon: P(a.icon) ? a.icon : null,
42
+ label: a.label,
43
+ value: a.value
44
+ })) : []
45
+ ];
46
+ return /* @__PURE__ */ n(
47
+ "div",
48
+ {
49
+ ref: g,
50
+ "data-component": "appointment-peek",
51
+ "data-status": s,
52
+ className: R({ className: k }),
53
+ ...N,
54
+ children: [
55
+ /* @__PURE__ */ n("div", { className: "ds:flex ds:min-w-0 ds:items-start ds:gap-[var(--spacing-sm)]", children: [
56
+ r ? null : /* @__PURE__ */ e(
57
+ y,
58
+ {
59
+ size: "sm",
60
+ name: t,
61
+ src: v,
62
+ "aria-hidden": "true",
63
+ className: "ds:shrink-0"
64
+ }
65
+ ),
66
+ /* @__PURE__ */ n("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
67
+ /* @__PURE__ */ e(z.Heading, { className: "ds:min-w-0", children: r ? /* @__PURE__ */ n("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
68
+ /* @__PURE__ */ e(
69
+ j,
70
+ {
71
+ "aria-hidden": "true",
72
+ className: "ds:size-4 ds:shrink-0"
73
+ }
74
+ ),
75
+ o("appointmentPeek.hiddenName")
76
+ ] }) : t }),
77
+ f && d ? /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: d }) : null
78
+ ] })
79
+ ] }),
80
+ /* @__PURE__ */ e(
81
+ l,
82
+ {
83
+ layout: "inline",
84
+ density: "compact",
85
+ divider: "none",
86
+ className: "ds:[--description-list-icon-color:var(--accent)]",
87
+ children: A.map((a, b) => /* @__PURE__ */ n(l.Row, { icon: a.icon, children: [
88
+ /* @__PURE__ */ e(l.Term, { children: a.label }),
89
+ /* @__PURE__ */ e(l.Detail, { children: a.value })
90
+ ] }, b))
91
+ }
92
+ ),
93
+ s && i && p ? /* @__PURE__ */ e("div", { "data-slot": "workflow", children: /* @__PURE__ */ e(
94
+ E,
95
+ {
96
+ size: "sm",
97
+ value: s,
98
+ option: {
99
+ value: s,
100
+ label: x ?? o(`appointmentCard.state.${s}`),
101
+ icon: /* @__PURE__ */ e(p, { "aria-hidden": "true" }),
102
+ tone: i.tone
103
+ }
104
+ }
105
+ ) }) : null
106
+ ]
107
+ }
108
+ );
109
+ }
110
+ );
111
+ T.displayName = "AppointmentPeek";
112
+ export {
113
+ T as A
114
+ };
115
+ //# sourceMappingURL=appointment-peek-5S4O1VQP.js.map
@@ -0,0 +1,17 @@
1
+ const t = {
2
+ id: "appointment-peek",
3
+ capabilities: [],
4
+ state: {},
5
+ actions: {},
6
+ domHooks: {
7
+ root: {
8
+ attr: "data-component",
9
+ value: "appointment-peek",
10
+ description: "Marks the element as a kit AppointmentPeek summary."
11
+ }
12
+ }
13
+ };
14
+ export {
15
+ t as a
16
+ };
17
+ //# sourceMappingURL=appointment-peek.agent-C539tNFM.js.map
@@ -0,0 +1,24 @@
1
+ import { c as a } from "./createLucideIcon-DhHxpK9K.js";
2
+ /**
3
+ * @license lucide-react v1.22.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const e = [
9
+ ["path", { d: "M10 12h4", key: "a56b0p" }],
10
+ ["path", { d: "M10 8h4", key: "1sr2af" }],
11
+ ["path", { d: "M14 21v-3a2 2 0 0 0-4 0v3", key: "1rgiei" }],
12
+ [
13
+ "path",
14
+ {
15
+ d: "M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",
16
+ key: "secmi2"
17
+ }
18
+ ],
19
+ ["path", { d: "M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16", key: "16ra0t" }]
20
+ ], h = a("building-2", e);
21
+ export {
22
+ h as B
23
+ };
24
+ //# sourceMappingURL=building-2-D33bLCWL.js.map