@alfadocs/ui-kit 0.84.1 → 0.86.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 (126) hide show
  1. package/dist/_chunks/{ai-consent-banner-DUhr1yNj.js → ai-consent-banner-BXD7W6FI.js} +2 -2
  2. package/dist/_chunks/{alert-KJbsPYkI.js → alert-Cxaqd-QO.js} +12 -12
  3. package/dist/_chunks/{audio-recorder-Cc3KuL9y.js → audio-recorder-BjnB7V8n.js} +2 -2
  4. package/dist/_chunks/{booking-CLmeXtGv.js → booking-BvCu2XWY.js} +2 -2
  5. package/dist/_chunks/{document-preview-nwfulDEs.js → document-preview-DXl9migE.js} +2 -2
  6. package/dist/_chunks/{document-scanner-B6h1Ir56.js → document-scanner-cS_ispQs.js} +3 -3
  7. package/dist/_chunks/{entity-summary--vP698Jn.js → entity-summary-BILN4wEG.js} +2 -2
  8. package/dist/_chunks/{field-value-DHG6gEKS.js → field-value-BRVbZJej.js} +133 -144
  9. package/dist/_chunks/{file-manager-DLJlinIO.js → file-manager-B9LZzT5E.js} +129 -129
  10. package/dist/_chunks/{file-upload-DENvuhfs.js → file-upload-CwxdqkMK.js} +134 -146
  11. package/dist/_chunks/{freemium-paywall-CmV642PA.js → freemium-paywall-Dr2342_S.js} +2 -2
  12. package/dist/_chunks/info-tip-Bxk3w6UM.js +166 -0
  13. package/dist/_chunks/{marketplace-app-shell-Br2yebEK.js → marketplace-app-shell-Chcj4q4z.js} +2 -2
  14. package/dist/_chunks/message-square-Bye4ATvx.js +20 -0
  15. package/dist/_chunks/{notes-panel-Cvdp818a.js → notes-panel-BLjlYBt-.js} +2 -2
  16. package/dist/_chunks/{patient-details-COvYWp2e.js → patient-details-B9LCdyWW.js} +2 -2
  17. package/dist/_chunks/{patient-search-BaUJ_Y-N.js → patient-search-vtRTSdf6.js} +2 -2
  18. package/dist/_chunks/{patient-summary-card-D6kgdTNn.js → patient-summary-card-vn1H4xWj.js} +2 -2
  19. package/dist/_chunks/{patient-table-BHzmUbzu.js → patient-table-B6AKMTm3.js} +182 -196
  20. package/dist/_chunks/{payment-form-DL9xk9BA.js → payment-form-BoGxEmGn.js} +2 -2
  21. package/dist/_chunks/{payment-request-card-d-RmzsUd.js → payment-request-card-CygO1anM.js} +72 -70
  22. package/dist/_chunks/{pdf-viewer-DF3VMaPo.js → pdf-viewer-CcOuR2wj.js} +2 -2
  23. package/dist/_chunks/{practice-results-BCr7jMt1.js → practice-results-yKbwIxqa.js} +2 -2
  24. package/dist/_chunks/{radiograph-panel.agent-CxF9pVxd.js → radiograph-panel.agent-M9XD4ze4.js} +2 -2
  25. package/dist/_chunks/{rich-text-editor-CCWjNkbx.js → rich-text-editor-RRkBN_WB.js} +2 -2
  26. package/dist/_chunks/{session-countdown-C8AsE072.js → session-countdown-Bc70VXN1.js} +58 -48
  27. package/dist/_chunks/{sign-document-Bfk0WpWV.js → sign-document-DI561d1C.js} +2 -2
  28. package/dist/_chunks/{signature-request-CEOrCDyk.js → signature-request-D_6jgDZd.js} +60 -77
  29. package/dist/_chunks/{task-tray-Br3vc0O1.js → task-tray-CLIqIXUZ.js} +58 -70
  30. package/dist/_chunks/{toast.agent-uV8CeAy6.js → toast.agent-Iw2jWdce.js} +2 -2
  31. package/dist/_chunks/{warning-stack-BlG_Ujy3.js → warning-stack-CAHQ0xxS.js} +2 -2
  32. package/dist/_chunks/{workflow-map-C643Q43h.js → workflow-map-SIfAhmWz.js} +2 -2
  33. package/dist/agent-catalog.json +45 -1
  34. package/dist/agent-i18n/en.json +9 -0
  35. package/dist/components/ai-consent-banner/index.js +1 -1
  36. package/dist/components/alert/index.js +1 -1
  37. package/dist/components/audio-recorder/index.js +1 -1
  38. package/dist/components/booking/index.js +1 -1
  39. package/dist/components/document-preview/index.js +1 -1
  40. package/dist/components/document-scanner/index.js +1 -1
  41. package/dist/components/entity-summary/index.js +1 -1
  42. package/dist/components/file-manager/index.js +1 -1
  43. package/dist/components/file-upload/index.js +1 -1
  44. package/dist/components/freemium-paywall/index.js +1 -1
  45. package/dist/components/index.d.ts +1 -0
  46. package/dist/components/info-tip/index.d.ts +4 -0
  47. package/dist/components/info-tip/index.js +6 -0
  48. package/dist/components/info-tip/info-tip.agent.d.ts +4 -0
  49. package/dist/components/info-tip/info-tip.d.ts +42 -0
  50. package/dist/components/notes-panel/index.js +1 -1
  51. package/dist/components/patient-details/index.js +1 -1
  52. package/dist/components/patient-search/index.js +1 -1
  53. package/dist/components/patient-summary-card/index.js +1 -1
  54. package/dist/components/patient-table/index.js +1 -1
  55. package/dist/components/payment-card/index.js +1 -1
  56. package/dist/components/payment-form/index.js +1 -1
  57. package/dist/components/pdf-viewer/index.js +1 -1
  58. package/dist/components/practice-results/index.js +1 -1
  59. package/dist/components/radiograph-panel/index.js +1 -1
  60. package/dist/components/rich-text-editor/index.js +1 -1
  61. package/dist/components/session-countdown/index.js +1 -1
  62. package/dist/components/sign-document/index.js +1 -1
  63. package/dist/components/task-tray/index.js +1 -1
  64. package/dist/components/toast/index.js +1 -1
  65. package/dist/components/warning-stack/index.js +1 -1
  66. package/dist/components/workflow/index.js +1 -1
  67. package/dist/i18n/locales/ar.d.ts +3 -0
  68. package/dist/i18n/locales/ar.js +3 -0
  69. package/dist/i18n/locales/de.d.ts +3 -0
  70. package/dist/i18n/locales/de.js +3 -0
  71. package/dist/i18n/locales/el.d.ts +3 -0
  72. package/dist/i18n/locales/el.js +3 -0
  73. package/dist/i18n/locales/en.d.ts +3 -0
  74. package/dist/i18n/locales/en.js +3 -0
  75. package/dist/i18n/locales/es.d.ts +3 -0
  76. package/dist/i18n/locales/es.js +3 -0
  77. package/dist/i18n/locales/fr.d.ts +3 -0
  78. package/dist/i18n/locales/fr.js +3 -0
  79. package/dist/i18n/locales/hi.d.ts +3 -0
  80. package/dist/i18n/locales/hi.js +3 -0
  81. package/dist/i18n/locales/it.d.ts +3 -0
  82. package/dist/i18n/locales/it.js +3 -0
  83. package/dist/i18n/locales/ja.d.ts +3 -0
  84. package/dist/i18n/locales/ja.js +3 -0
  85. package/dist/i18n/locales/nl.d.ts +3 -0
  86. package/dist/i18n/locales/nl.js +3 -0
  87. package/dist/i18n/locales/pl.d.ts +3 -0
  88. package/dist/i18n/locales/pl.js +3 -0
  89. package/dist/i18n/locales/pt.d.ts +3 -0
  90. package/dist/i18n/locales/pt.js +3 -0
  91. package/dist/i18n/locales/ro.d.ts +3 -0
  92. package/dist/i18n/locales/ro.js +3 -0
  93. package/dist/i18n/locales/ru.d.ts +3 -0
  94. package/dist/i18n/locales/ru.js +3 -0
  95. package/dist/i18n/locales/sq.d.ts +3 -0
  96. package/dist/i18n/locales/sq.js +3 -0
  97. package/dist/i18n/locales/sv.d.ts +3 -0
  98. package/dist/i18n/locales/sv.js +3 -0
  99. package/dist/i18n/locales/tr.d.ts +3 -0
  100. package/dist/i18n/locales/tr.js +3 -0
  101. package/dist/i18n/locales/zh.d.ts +3 -0
  102. package/dist/i18n/locales/zh.js +3 -0
  103. package/dist/index.js +715 -723
  104. package/dist/locales/ar.json +3 -0
  105. package/dist/locales/de.json +3 -0
  106. package/dist/locales/el.json +3 -0
  107. package/dist/locales/en.json +3 -0
  108. package/dist/locales/es.json +3 -0
  109. package/dist/locales/fr.json +3 -0
  110. package/dist/locales/hi.json +3 -0
  111. package/dist/locales/it.json +3 -0
  112. package/dist/locales/ja.json +3 -0
  113. package/dist/locales/nl.json +3 -0
  114. package/dist/locales/pl.json +3 -0
  115. package/dist/locales/pt.json +3 -0
  116. package/dist/locales/ro.json +3 -0
  117. package/dist/locales/ru.json +3 -0
  118. package/dist/locales/sq.json +3 -0
  119. package/dist/locales/sv.json +3 -0
  120. package/dist/locales/tr.json +3 -0
  121. package/dist/locales/zh.json +3 -0
  122. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  123. package/dist/patterns/signature-request/index.js +1 -1
  124. package/dist/tokens.css +1 -1
  125. package/package.json +9 -3
  126. package/dist/_chunks/circle-x-W8Enq3i4.js +0 -16
@@ -8,7 +8,7 @@ import { u as Y } from "./use-controllable-state-BiY4xTzM.js";
8
8
  import { u as Z } from "./registry-DvAUVLHh.js";
9
9
  import { B as R } from "./button-CPGiR_bH.js";
10
10
  import { P as $ } from "./progress-DA413-zn.js";
11
- import { f as ee } from "./payment-form-DL9xk9BA.js";
11
+ import { f as ee } from "./payment-form-BoGxEmGn.js";
12
12
  import { T as se } from "./triangle-alert-CBnO6nq_.js";
13
13
  import { C as ae } from "./check-DrFSN__t.js";
14
14
  const re = {
@@ -276,4 +276,4 @@ export {
276
276
  de as F,
277
277
  re as f
278
278
  };
279
- //# sourceMappingURL=freemium-paywall-CmV642PA.js.map
279
+ //# sourceMappingURL=freemium-paywall-Dr2342_S.js.map
@@ -0,0 +1,166 @@
1
+ import { jsxs as u, jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as I, useState as O, useRef as m, useEffect as k, useMemo as z } from "react";
3
+ import { c as C } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as D } from "react-i18next";
5
+ import { P as o } from "./popover-Cc0a69sw.js";
6
+ import { u as P } from "./registry-DvAUVLHh.js";
7
+ import { I as A } from "./info-CGn22peZ.js";
8
+ const R = {
9
+ id: "info-tip",
10
+ capabilities: ["open", "close"],
11
+ state: {
12
+ isOpen: {
13
+ type: "boolean",
14
+ descriptionKey: "ui.agent.infoTip.state.isOpen",
15
+ description: "True when the info tip card is currently open.",
16
+ read: (t) => t.getIsOpen()
17
+ }
18
+ },
19
+ actions: {
20
+ open: {
21
+ safety: "read",
22
+ idempotent: !0,
23
+ descriptionKey: "ui.agent.infoTip.actions.open",
24
+ description: "Open the info tip card.",
25
+ invoke: (t) => {
26
+ t.open();
27
+ }
28
+ },
29
+ close: {
30
+ safety: "read",
31
+ idempotent: !0,
32
+ descriptionKey: "ui.agent.infoTip.actions.close",
33
+ description: "Close the info tip card.",
34
+ invoke: (t) => {
35
+ t.close();
36
+ }
37
+ }
38
+ },
39
+ domHooks: {
40
+ root: {
41
+ attr: "data-component",
42
+ value: "info-tip",
43
+ description: "Marks the InfoTip trigger button."
44
+ },
45
+ instanceId: {
46
+ attr: "data-component-id",
47
+ sourceProp: "id",
48
+ description: "Sourced from the id prop on InfoTip."
49
+ }
50
+ }
51
+ }, S = C(
52
+ [
53
+ "ds:relative ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
54
+ "ds:rounded-[var(--radius-full)]",
55
+ "ds:bg-[var(--card)]",
56
+ "ds:text-[var(--accent)]",
57
+ // Single ring: the Lucide Info glyph draws its own accent circle, so the
58
+ // trigger carries NO CSS border of its own (a border would read as a
59
+ // second, concentric ring). The white circle comes from `bg-card` showing
60
+ // through the glyph, lifted by the drop shadow.
61
+ "ds:shadow-[var(--shadow-sm)]",
62
+ "ds:cursor-pointer",
63
+ "ds:transition-[color,box-shadow] ds:motion-reduce:transition-none",
64
+ "ds:hover:text-[var(--accent-hover)] ds:hover:shadow-[var(--shadow-md)]",
65
+ "ds:data-[state=open]:text-[var(--accent-hover)] ds:data-[state=open]:shadow-[var(--shadow-md)]",
66
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
67
+ "ds:forced-colors:focus-visible:outline-[CanvasText]"
68
+ ].join(" "),
69
+ {
70
+ variants: {
71
+ size: {
72
+ // Both diameters sit below `--min-target-size` (44/48px), so each
73
+ // re-uses IconButton's invisible `::before` hit-area expansion to a
74
+ // full touch target on touch / small screens. From the `sm:`
75
+ // breakpoint up the pointer is precise, so the expansion relaxes —
76
+ // but the interactive target must never fall below WCAG 2.5.8's 24px:
77
+ // • md (24px visual) already meets the 24px floor, so its `::before`
78
+ // is hidden on desktop and the 24px circle IS the target.
79
+ // • sm (20px visual) would fall to 20px if hidden — below the floor
80
+ // — so instead of hiding, its `::before` shrinks to a persistent
81
+ // `--spacing-lg` (24px) minimum that holds on desktop too.
82
+ sm: 'ds:w-5 ds:h-5 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:inset-x-[calc((var(--spacing-lg)-100%)/-2)] ds:sm:before:inset-y-[calc((var(--spacing-lg)-100%)/-2)]',
83
+ md: 'ds:w-6 ds:h-6 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'
84
+ }
85
+ },
86
+ defaultVariants: {
87
+ size: "md"
88
+ }
89
+ }
90
+ ), j = I(
91
+ ({
92
+ content: t,
93
+ heading: r,
94
+ size: a = "md",
95
+ side: v = "top",
96
+ align: g = "center",
97
+ "aria-label": h,
98
+ id: l,
99
+ className: b
100
+ }, w) => {
101
+ const { t: y } = D(), [s, d] = O(!1), n = m(s);
102
+ k(() => {
103
+ n.current = s;
104
+ }, [s]);
105
+ const T = z(
106
+ () => ({
107
+ getIsOpen: () => n.current,
108
+ open: () => d(!0),
109
+ close: () => d(!1)
110
+ }),
111
+ []
112
+ );
113
+ P(R, T, l);
114
+ const c = m(null), p = () => {
115
+ c.current = n.current;
116
+ }, f = h ?? y("infoTip.triggerLabel", "More information");
117
+ return /* @__PURE__ */ u(o, { openOn: "hover-or-click", open: s, onOpenChange: d, children: [
118
+ /* @__PURE__ */ i(
119
+ o.Trigger,
120
+ {
121
+ ref: w,
122
+ "aria-label": f,
123
+ className: S({ size: a, className: b }),
124
+ "data-component": "info-tip",
125
+ "data-component-id": l,
126
+ onPointerDown: p,
127
+ onKeyDown: (e) => {
128
+ (e.key === "Enter" || e.key === " ") && p();
129
+ },
130
+ onClick: (e) => {
131
+ const x = c.current;
132
+ c.current = null, x === !1 && n.current && e.preventDefault();
133
+ },
134
+ children: /* @__PURE__ */ i(
135
+ A,
136
+ {
137
+ "aria-hidden": "true",
138
+ className: a === "sm" ? "ds:size-5" : "ds:size-6"
139
+ }
140
+ )
141
+ }
142
+ ),
143
+ /* @__PURE__ */ u(
144
+ o.Content,
145
+ {
146
+ side: v,
147
+ align: g,
148
+ size: a === "sm" ? "sm" : "md",
149
+ "aria-label": r == null ? f : void 0,
150
+ onOpenAutoFocus: (e) => e.preventDefault(),
151
+ onCloseAutoFocus: (e) => e.preventDefault(),
152
+ children: [
153
+ r != null && /* @__PURE__ */ i(o.Heading, { children: r }),
154
+ /* @__PURE__ */ i(o.Description, { children: t })
155
+ ]
156
+ }
157
+ )
158
+ ] });
159
+ }
160
+ );
161
+ j.displayName = "InfoTip";
162
+ export {
163
+ j as I,
164
+ R as i
165
+ };
166
+ //# sourceMappingURL=info-tip-Bxk3w6UM.js.map
@@ -4,7 +4,7 @@ import { useTranslation as T } from "react-i18next";
4
4
  import { c as u } from "./index-D2ZczOXr.js";
5
5
  import { A as E } from "./app-frame-DIEMIC5V.js";
6
6
  import { A as C } from "./avatar-BNQNhoyL.js";
7
- import { A as D } from "./alert-KJbsPYkI.js";
7
+ import { A as D } from "./alert-Cxaqd-QO.js";
8
8
  import { C as w } from "./card-DPmk26CL.js";
9
9
  import { D as m } from "./dropdown-menu-DU-Hrf33.js";
10
10
  import { T as F } from "./tab-bar-Axhk6xzx.js";
@@ -510,4 +510,4 @@ export {
510
510
  va as M,
511
511
  g as P
512
512
  };
513
- //# sourceMappingURL=marketplace-app-shell-Br2yebEK.js.map
513
+ //# sourceMappingURL=marketplace-app-shell-Chcj4q4z.js.map
@@ -0,0 +1,20 @@
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
+ [
10
+ "path",
11
+ {
12
+ d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
13
+ key: "18887p"
14
+ }
15
+ ]
16
+ ], o = a("message-square", e);
17
+ export {
18
+ o as M
19
+ };
20
+ //# sourceMappingURL=message-square-Bye4ATvx.js.map
@@ -3,7 +3,7 @@ import { forwardRef as ne, useRef as o, useState as V, useId as ie, useCallback
3
3
  import { useTranslation as oe } from "react-i18next";
4
4
  import { u as le } from "./registry-DvAUVLHh.js";
5
5
  import { C as ce } from "./clinical-note-card-C7F_24IC.js";
6
- import { R as de } from "./rich-text-editor-CCWjNkbx.js";
6
+ import { R as de } from "./rich-text-editor-RRkBN_WB.js";
7
7
  import { T as pe } from "./text-area-Bt3p7Pt0.js";
8
8
  import { B as ue } from "./button-CPGiR_bH.js";
9
9
  import { C as me } from "./checkbox-BuZ1u__2.js";
@@ -321,4 +321,4 @@ const _e = ne(
321
321
  export {
322
322
  _e as N
323
323
  };
324
- //# sourceMappingURL=notes-panel-Cvdp818a.js.map
324
+ //# sourceMappingURL=notes-panel-BLjlYBt-.js.map
@@ -22,7 +22,7 @@ import { P as xe } from "./province-select-BDywtmL-.js";
22
22
  import { P as Ne } from "./postal-code-input-BznBxVxf.js";
23
23
  import { C as Ve } from "./city-input-towzBenY.js";
24
24
  import { u as Ce } from "./registry-DvAUVLHh.js";
25
- import { u as ke, F as we, r as De, a as Pe } from "./field-value-DHG6gEKS.js";
25
+ import { u as ke, F as we, r as De, a as Pe } from "./field-value-BRVbZJej.js";
26
26
  import { c as Te } from "./createLucideIcon-DhHxpK9K.js";
27
27
  import { L as Fe } from "./lock-ClAFG1gy.js";
28
28
  import { C as H } from "./check-DrFSN__t.js";
@@ -775,4 +775,4 @@ export {
775
775
  Ae as P,
776
776
  je as p
777
777
  };
778
- //# sourceMappingURL=patient-details-COvYWp2e.js.map
778
+ //# sourceMappingURL=patient-details-B9LCdyWW.js.map
@@ -6,7 +6,7 @@ import { A as se } from "./autocomplete-BrONKN8l.js";
6
6
  import { B as ue } from "./button-CPGiR_bH.js";
7
7
  import { C as M } from "./card-DPmk26CL.js";
8
8
  import { S as fe } from "./slider-DN1CWkKB.js";
9
- import { A as Z } from "./alert-KJbsPYkI.js";
9
+ import { A as Z } from "./alert-Cxaqd-QO.js";
10
10
  import { D as F } from "./dropdown-menu-DU-Hrf33.js";
11
11
  import { u as pe } from "./registry-DvAUVLHh.js";
12
12
  import { S as re } from "./search-QbWPlY5f.js";
@@ -1166,4 +1166,4 @@ export {
1166
1166
  Oe as P,
1167
1167
  ye as p
1168
1168
  };
1169
- //# sourceMappingURL=patient-search-BaUJ_Y-N.js.map
1169
+ //# sourceMappingURL=patient-search-vtRTSdf6.js.map
@@ -11,7 +11,7 @@ import { S as N } from "./skeleton-CZbwyJAA.js";
11
11
  import { T as Z } from "./tag-3wgkwwDB.js";
12
12
  import { T as Te } from "./transaction-chip-DJCstquX.js";
13
13
  import { i as ee } from "./is-safe-url-DkETxeHz.js";
14
- import { u as $e, r as we, a as Ee, F as _e, S as ze, A as De, N as Ge } from "./field-value-DHG6gEKS.js";
14
+ import { u as $e, r as we, a as Ee, F as _e, S as ze, A as De, N as Ge } from "./field-value-BRVbZJej.js";
15
15
  import { u as Ie } from "./registry-DvAUVLHh.js";
16
16
  import { M as Ue } from "./mail-BqXVF2zH.js";
17
17
  import { P as Be } from "./phone-FceYcIFQ.js";
@@ -449,4 +449,4 @@ export {
449
449
  sa as P,
450
450
  Xe as p
451
451
  };
452
- //# sourceMappingURL=patient-summary-card-D6kgdTNn.js.map
452
+ //# sourceMappingURL=patient-summary-card-vn1H4xWj.js.map