@alfadocs/ui-kit 1.56.0 → 1.57.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 (210) hide show
  1. package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
  2. package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
  3. package/dist/_chunks/alia-sidebar-BBKBJCv6.js +1284 -0
  4. package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js → anamnesis-summary-rows-CCQ62mMN.js} +4 -4
  5. package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
  6. package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
  7. package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js → balance-badge-cell-CII3SDmR.js} +3 -3
  8. package/dist/_chunks/{booking-WyNGKPE2.js → booking-81WnKDsH.js} +3 -3
  9. package/dist/_chunks/{calculator-dialog-pCPWta7h.js → calculator-dialog-CzQv03p0.js} +2 -2
  10. package/dist/_chunks/{calendar-workspace-Du2ryaI-.js → calendar-workspace-D5-k_9zE.js} +13 -13
  11. package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
  12. package/dist/_chunks/{care-plan-header-DUX_SVvF.js → care-plan-header-BMwZIgHJ.js} +2 -2
  13. package/dist/_chunks/{chart-HsF1KHbx.js → chart-DQ5GxqgT.js} +347 -350
  14. package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
  15. package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
  16. package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
  17. package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js → contact-profile-card-CMyBYgRR.js} +2 -2
  18. package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
  19. package/dist/_chunks/{data-table-D8fuhqO1.js → data-table-fAMTeAjM.js} +2 -2
  20. package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
  21. package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
  22. package/dist/_chunks/{date-range-picker-CtUOI38x.js → date-range-picker-CFk-5O3R.js} +176 -171
  23. package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
  24. package/dist/_chunks/{dialog-CUzbnKLw.js → dialog-Dn-iQ0Jp.js} +2 -2
  25. package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
  26. package/dist/_chunks/{due-date-calculator-CSjklbyw.js → due-date-calculator-D_qFUiHp.js} +2 -2
  27. package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
  28. package/dist/_chunks/{file-manager-Cc_uO8r2.js → file-manager-CFsL1KVt.js} +3 -3
  29. package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js → gestational-age-calculator-CZi43xKG.js} +2 -2
  30. package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
  31. package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
  32. package/dist/_chunks/{heatmap-Gf9r7Tn1.js → heatmap-BEeOThkW.js} +2 -2
  33. package/dist/_chunks/{help-me-write-templates-fV-Apf72.js → help-me-write-templates-BUoYGo6f.js} +2 -2
  34. package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
  35. package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-C86lQTIA.js} +2 -2
  36. package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
  37. package/dist/_chunks/{kit-extensions-Byfxy6sy.js → kit-extensions-DYVxWcqv.js} +4 -4
  38. package/dist/_chunks/{link-cell-renderer-TeJNvymP.js → link-cell-renderer-CxW_oLa5.js} +2 -2
  39. package/dist/_chunks/link-gRw3NtOt.js +137 -0
  40. package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
  41. package/dist/_chunks/{marketplace-app-shell-Dcx-JEjg.js → marketplace-app-shell-BZcA9Z06.js} +143 -129
  42. package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-QKQutwxj.js} +76 -69
  43. package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
  44. package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
  45. package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
  46. package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
  47. package/dist/_chunks/{notes-panel-DceRhthG.js → notes-panel-Cm4pttpl.js} +4 -4
  48. package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-C5VtbGjd.js} +83 -76
  49. package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-99kEdtc5.js} +2 -2
  50. package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-DkxY13T6.js} +5 -5
  51. package/dist/_chunks/{patient-summary-card-9nQWTQf6.js → patient-summary-card-opdyfeW2.js} +4 -4
  52. package/dist/_chunks/{payment-request-card-CwDpwXUC.js → payment-request-card-DAniJNLX.js} +2 -2
  53. package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
  54. package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
  55. package/dist/_chunks/popover-BG75rYjN.js +367 -0
  56. package/dist/_chunks/{practice-results-Dhbo-fc_.js → practice-results-CfRkjzsI.js} +2 -2
  57. package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js → pregnancy-dating-BFzv9g1N.js} +2 -2
  58. package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DlVRK7Ue.js} +103 -96
  59. package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
  60. package/dist/_chunks/{public-header.agent-pr2hyiND.js → public-header.agent-BctevbuY.js} +2 -2
  61. package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
  62. package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-BlTzYywa.js} +2 -2
  63. package/dist/_chunks/{rich-text-editor-CkFfmA3v.js → rich-text-editor-DTnNZ4Ff.js} +489 -484
  64. package/dist/_chunks/{sheet-C7SwIxwB.js → sheet-8qsiMoUI.js} +2 -2
  65. package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
  66. package/dist/_chunks/{signature-request-DhbpB9N9.js → signature-request-DRuYAG5I.js} +2 -2
  67. package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-AhMsNW1r.js} +2 -2
  68. package/dist/_chunks/{task-editor-ByyRu29Y.js → task-editor-NkcopDna.js} +3 -3
  69. package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js → use-appointment-details-read-CfFQNOF_.js} +5 -5
  70. package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-BKbgb7FM.js} +2 -2
  71. package/dist/_chunks/{widget-picker-DXYBMTfe.js → widget-picker-rBA7MR5P.js} +2 -2
  72. package/dist/agent-catalog.json +2 -2
  73. package/dist/components/_shared/non-modal-tab-exit.d.ts +15 -4
  74. package/dist/components/ai-credits-notice/index.js +1 -1
  75. package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
  76. package/dist/components/ai-permission-notice/index.d.ts +1 -1
  77. package/dist/components/ai-permission-notice/index.js +1 -1
  78. package/dist/components/appointment-details-panel/index.js +1 -1
  79. package/dist/components/appointment-peek/index.js +1 -1
  80. package/dist/components/appointment-timeline/index.js +1 -1
  81. package/dist/components/booking/index.js +1 -1
  82. package/dist/components/calculator-dialog/index.js +1 -1
  83. package/dist/components/care-plan-card/index.js +1 -1
  84. package/dist/components/care-plan-header/index.js +1 -1
  85. package/dist/components/chart/chart.d.ts +5 -5
  86. package/dist/components/chart/index.js +1 -1
  87. package/dist/components/clinical-note-card/index.js +1 -1
  88. package/dist/components/color-picker/index.js +1 -1
  89. package/dist/components/contact-card/index.js +1 -1
  90. package/dist/components/contact-profile-card/index.js +1 -1
  91. package/dist/components/cycle-calculator/index.js +1 -1
  92. package/dist/components/data-table/index.js +2 -2
  93. package/dist/components/data-table-tabs/index.js +1 -1
  94. package/dist/components/date-picker/index.js +1 -1
  95. package/dist/components/date-range-picker/index.js +1 -1
  96. package/dist/components/date-time-picker/index.js +1 -1
  97. package/dist/components/dialog/index.js +1 -1
  98. package/dist/components/document-preview/index.js +1 -1
  99. package/dist/components/due-date-calculator/index.js +1 -1
  100. package/dist/components/entity-summary/index.js +1 -1
  101. package/dist/components/file-manager/index.js +1 -1
  102. package/dist/components/gestational-age-calculator/index.js +1 -1
  103. package/dist/components/hcg-doubling/index.js +1 -1
  104. package/dist/components/header-settings/index.js +1 -1
  105. package/dist/components/heatmap/index.js +1 -1
  106. package/dist/components/hover-card/index.js +1 -1
  107. package/dist/components/icon-picker/index.js +1 -1
  108. package/dist/components/info-tip/index.js +1 -1
  109. package/dist/components/link/index.js +1 -1
  110. package/dist/components/link/link.d.ts +5 -3
  111. package/dist/components/locale-picker/index.js +1 -1
  112. package/dist/components/message-tray/index.js +1 -1
  113. package/dist/components/nav-grid/index.js +1 -1
  114. package/dist/components/note-timeline/index.js +1 -1
  115. package/dist/components/notes-panel/index.js +1 -1
  116. package/dist/components/notification-tray/index.js +1 -1
  117. package/dist/components/patient-details/index.js +1 -1
  118. package/dist/components/patient-summary-card/index.js +1 -1
  119. package/dist/components/patient-table/index.js +1 -1
  120. package/dist/components/payment-card/index.js +1 -1
  121. package/dist/components/pdf-viewer/index.js +1 -1
  122. package/dist/components/phone-input/index.js +1 -1
  123. package/dist/components/popover/index.js +1 -1
  124. package/dist/components/popover/popover.d.ts +1 -1
  125. package/dist/components/practice-results/index.js +1 -1
  126. package/dist/components/pregnancy-dating/index.js +1 -1
  127. package/dist/components/product-hub-tray/index.js +1 -1
  128. package/dist/components/public-footer/index.js +1 -1
  129. package/dist/components/public-header/index.js +1 -1
  130. package/dist/components/radiograph-panel/index.js +1 -1
  131. package/dist/components/rich-text-editor/index.js +2 -2
  132. package/dist/components/sheet/index.js +1 -1
  133. package/dist/components/sign-document/index.js +1 -1
  134. package/dist/components/task-editor/index.js +1 -1
  135. package/dist/components/voice-control-panel/index.js +1 -1
  136. package/dist/components/widget-picker/index.js +1 -1
  137. package/dist/i18n/locales/ar.d.ts +14 -0
  138. package/dist/i18n/locales/ar.js +15 -1
  139. package/dist/i18n/locales/de.d.ts +14 -0
  140. package/dist/i18n/locales/de.js +15 -1
  141. package/dist/i18n/locales/el.d.ts +14 -0
  142. package/dist/i18n/locales/el.js +15 -1
  143. package/dist/i18n/locales/en.d.ts +14 -0
  144. package/dist/i18n/locales/en.js +15 -1
  145. package/dist/i18n/locales/es.d.ts +14 -0
  146. package/dist/i18n/locales/es.js +15 -1
  147. package/dist/i18n/locales/fr.d.ts +14 -0
  148. package/dist/i18n/locales/fr.js +15 -1
  149. package/dist/i18n/locales/hi.d.ts +14 -0
  150. package/dist/i18n/locales/hi.js +15 -1
  151. package/dist/i18n/locales/it.d.ts +14 -0
  152. package/dist/i18n/locales/it.js +15 -1
  153. package/dist/i18n/locales/ja.d.ts +14 -0
  154. package/dist/i18n/locales/ja.js +15 -1
  155. package/dist/i18n/locales/nl.d.ts +14 -0
  156. package/dist/i18n/locales/nl.js +15 -1
  157. package/dist/i18n/locales/pl.d.ts +14 -0
  158. package/dist/i18n/locales/pl.js +15 -1
  159. package/dist/i18n/locales/pt.d.ts +14 -0
  160. package/dist/i18n/locales/pt.js +15 -1
  161. package/dist/i18n/locales/ro.d.ts +14 -0
  162. package/dist/i18n/locales/ro.js +15 -1
  163. package/dist/i18n/locales/ru.d.ts +14 -0
  164. package/dist/i18n/locales/ru.js +15 -1
  165. package/dist/i18n/locales/sq.d.ts +14 -0
  166. package/dist/i18n/locales/sq.js +15 -1
  167. package/dist/i18n/locales/sv.d.ts +14 -0
  168. package/dist/i18n/locales/sv.js +15 -1
  169. package/dist/i18n/locales/tr.d.ts +14 -0
  170. package/dist/i18n/locales/tr.js +15 -1
  171. package/dist/i18n/locales/zh.d.ts +14 -0
  172. package/dist/i18n/locales/zh.js +15 -1
  173. package/dist/index.js +194 -193
  174. package/dist/locales/ar.json +15 -1
  175. package/dist/locales/de.json +15 -1
  176. package/dist/locales/el.json +15 -1
  177. package/dist/locales/en.json +15 -1
  178. package/dist/locales/es.json +15 -1
  179. package/dist/locales/fr.json +15 -1
  180. package/dist/locales/hi.json +15 -1
  181. package/dist/locales/it.json +15 -1
  182. package/dist/locales/ja.json +15 -1
  183. package/dist/locales/nl.json +15 -1
  184. package/dist/locales/pl.json +15 -1
  185. package/dist/locales/pt.json +15 -1
  186. package/dist/locales/ro.json +15 -1
  187. package/dist/locales/ru.json +15 -1
  188. package/dist/locales/sq.json +15 -1
  189. package/dist/locales/sv.json +15 -1
  190. package/dist/locales/tr.json +15 -1
  191. package/dist/locales/zh.json +15 -1
  192. package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
  193. package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
  194. package/dist/patterns/alia-assistant/index.d.ts +2 -0
  195. package/dist/patterns/alia-assistant/index.js +6 -5
  196. package/dist/patterns/anamnesis/index.js +1 -1
  197. package/dist/patterns/calendar/index.js +1 -1
  198. package/dist/patterns/help-me-write-templates/index.js +1 -1
  199. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  200. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +7 -2
  201. package/dist/patterns/registration-form/index.js +1 -1
  202. package/dist/patterns/signature-request/index.js +1 -1
  203. package/dist/patterns/signed-out-frame/index.js +1 -1
  204. package/dist/tokens.css +1 -1
  205. package/package.json +1 -1
  206. package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
  207. package/dist/_chunks/alia-sidebar-DOei4Iyu.js +0 -1183
  208. package/dist/_chunks/link-2HokYuIi.js +0 -130
  209. package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +0 -65
  210. package/dist/_chunks/popover-BI3oV3eY.js +0 -305
@@ -1,12 +1,13 @@
1
- import { jsx as d, jsxs as U } from "react/jsx-runtime";
2
- import { useContext as H, useState as J, useCallback as m, useRef as C, useEffect as P, useMemo as G, forwardRef as x, useId as de, createContext as V } from "react";
3
- import * as N from "@radix-ui/react-popover";
4
- import { c as ie } from "./index-D2ZczOXr.js";
5
- import { useTranslation as ce } from "react-i18next";
6
- import { I as le } from "./icon-button-COX76Jdj.js";
7
- import { u as ue } from "./registry-DvAUVLHh.js";
8
- import { X as pe } from "./x-B5YnXwCz.js";
9
- const fe = {
1
+ import { jsx as d, jsxs as _ } from "react/jsx-runtime";
2
+ import { useContext as H, useState as Q, useCallback as m, useRef as C, useEffect as P, useMemo as J, forwardRef as I, useId as de, createContext as E } from "react";
3
+ import * as k from "@radix-ui/react-popover";
4
+ import { f as ie, u as ce } from "./non-modal-tab-exit-j3CPOuE3.js";
5
+ import { c as le } from "./index-D2ZczOXr.js";
6
+ import { useTranslation as ue } from "react-i18next";
7
+ import { I as pe } from "./icon-button-COX76Jdj.js";
8
+ import { u as fe } from "./registry-DvAUVLHh.js";
9
+ import { X as ve } from "./x-B5YnXwCz.js";
10
+ const me = {
10
11
  id: "hover-card",
11
12
  capabilities: ["open", "close"],
12
13
  state: {
@@ -46,14 +47,14 @@ const fe = {
46
47
  }
47
48
  }
48
49
  };
49
- function ve(e, t) {
50
+ function ge(e, t) {
50
51
  return e === "top" || e === "bottom" ? e : e === "start" ? t ? "right" : "left" : t ? "left" : "right";
51
52
  }
52
- const Q = V({
53
+ const Y = E({
53
54
  headingId: void 0,
54
55
  setHeadingId: () => {
55
56
  }
56
- }), B = V({
57
+ }), B = E({
57
58
  cancelClose: () => {
58
59
  },
59
60
  closeWithDelay: () => {
@@ -70,7 +71,7 @@ const Q = V({
70
71
  },
71
72
  triggerRef: { current: null },
72
73
  instanceId: void 0
73
- }), E = V("default"), me = ie(
74
+ }), X = E("default"), he = le(
74
75
  [
75
76
  // Same elevated surface as Popover: `--card-border` at 32% alpha reads as
76
77
  // a subtle edge in both themes, where the shadow alone lets the card
@@ -111,121 +112,121 @@ const Q = V({
111
112
  }
112
113
  }
113
114
  );
114
- function K({
115
+ function U({
115
116
  children: e,
116
117
  openOn: t = "hover-or-click",
117
118
  open: o,
118
- defaultOpen: c,
119
- onOpenChange: l,
120
- openDelay: g = 300,
121
- closeDelay: p = 300,
122
- id: f
119
+ defaultOpen: u,
120
+ onOpenChange: i,
121
+ openDelay: f = 300,
122
+ closeDelay: c = 300,
123
+ id: v
123
124
  }) {
124
- const [I, b] = J(c ?? !1), n = o !== void 0, h = n ? o : I, a = m(
125
- (v) => {
126
- n || b(v), l == null || l(v);
125
+ const [T, R] = Q(u ?? !1), n = o !== void 0, h = n ? o : T, a = m(
126
+ (g) => {
127
+ n || R(g), i == null || i(g);
127
128
  },
128
- [n, l]
129
+ [n, i]
129
130
  ), r = C(h);
130
131
  P(() => {
131
132
  r.current = h;
132
133
  }, [h]);
133
- const R = C(null), u = m(() => {
134
- R.current && (clearTimeout(R.current), R.current = null);
134
+ const b = C(null), p = m(() => {
135
+ b.current && (clearTimeout(b.current), b.current = null);
135
136
  }, []);
136
- P(() => u, [u]);
137
- const y = C(!1), O = C(!1), i = C(null), X = C(null), M = m(() => {
138
- u(), R.current = setTimeout(() => {
139
- y.current = !1, a(!0);
140
- }, g);
141
- }, [u, g, a]), w = m(() => {
142
- u(), R.current = setTimeout(() => a(!1), p);
143
- }, [u, p, a]), k = C(!1), T = C(null), j = m(() => {
144
- k.current = !0, T.current && clearTimeout(T.current), T.current = setTimeout(() => {
145
- k.current = !1;
137
+ P(() => p, [p]);
138
+ const N = C(!1), y = C(!1), F = C(null), l = C(null), A = m(() => {
139
+ p(), b.current = setTimeout(() => {
140
+ N.current = !1, a(!0);
141
+ }, f);
142
+ }, [p, f, a]), W = m(() => {
143
+ p(), b.current = setTimeout(() => a(!1), c);
144
+ }, [p, c, a]), j = C(!1), O = C(null), S = m(() => {
145
+ j.current = !0, O.current && clearTimeout(O.current), O.current = setTimeout(() => {
146
+ j.current = !1;
146
147
  }, 100);
147
148
  }, []);
148
149
  P(
149
150
  () => () => {
150
- T.current && clearTimeout(T.current);
151
+ O.current && clearTimeout(O.current);
151
152
  },
152
153
  []
153
154
  );
154
- const z = m(() => {
155
- if (k.current) {
156
- k.current = !1;
155
+ const D = m(() => {
156
+ if (j.current) {
157
+ j.current = !1;
157
158
  return;
158
159
  }
159
- u(), y.current = !1, a(!0);
160
- }, [u, a]), W = m(() => {
161
- var v;
162
- O.current = !0, (v = i.current) == null || v.focus();
163
- }, []), D = C(null), A = m(() => {
164
- const v = i.current;
165
- D.current = !!(v && v.contains(document.activeElement));
166
- }, []), s = m(() => {
167
- const v = D.current;
168
- if (D.current = null, v === !0) {
160
+ p(), N.current = !1, a(!0);
161
+ }, [p, a]), V = m(() => {
162
+ var g;
163
+ y.current = !0, (g = F.current) == null || g.focus();
164
+ }, []), w = C(null), M = m(() => {
165
+ const g = F.current;
166
+ w.current = !!(g && g.contains(document.activeElement));
167
+ }, []), z = m(() => {
168
+ const g = w.current;
169
+ if (w.current = null, g === !0) {
169
170
  a(!1);
170
171
  return;
171
172
  }
172
- y.current = !0, r.current ? W() : a(!0);
173
- }, [W, a]), F = G(
173
+ N.current = !0, r.current ? V() : a(!0);
174
+ }, [V, a]), Z = J(
174
175
  () => ({
175
176
  getIsOpen: () => r.current,
176
177
  open: () => {
177
- y.current = !1, a(!0);
178
+ N.current = !1, a(!0);
178
179
  },
179
180
  close: () => a(!1)
180
181
  }),
181
182
  [a]
182
183
  );
183
- ue(fe, F, f);
184
- const [q, oe] = J(void 0), S = t === "hover-or-click", ne = G(
184
+ fe(me, Z, v);
185
+ const [q, s] = Q(void 0), x = t === "hover-or-click", G = J(
185
186
  () => ({
186
- cancelClose: u,
187
- closeWithDelay: S ? w : () => {
187
+ cancelClose: p,
188
+ closeWithDelay: x ? W : () => {
188
189
  },
189
- shouldFocusOnOpen: () => y.current,
190
- didMoveFocus: () => O.current,
190
+ shouldFocusOnOpen: () => N.current,
191
+ didMoveFocus: () => y.current,
191
192
  noteMovedFocus: () => {
192
- O.current = !0;
193
+ y.current = !0;
193
194
  },
194
- noteFocusReturn: j,
195
+ noteFocusReturn: S,
195
196
  clearMovedFocus: () => {
196
- O.current = !1;
197
+ y.current = !1;
197
198
  },
198
- registerContent: (v) => {
199
- i.current = v;
199
+ registerContent: (g) => {
200
+ F.current = g;
200
201
  },
201
- triggerRef: X,
202
- instanceId: f
202
+ triggerRef: l,
203
+ instanceId: v
203
204
  }),
204
- [u, w, f, S, j]
205
- ), ae = G(
205
+ [p, W, v, x, S]
206
+ ), ae = J(
206
207
  () => ({
207
- isHoverMode: S,
208
- openOnFocus: z,
209
- openWithDelay: M,
210
- closeWithDelay: w,
211
- cancelClose: u,
212
- notePressStart: A,
213
- onClick: s
208
+ isHoverMode: x,
209
+ openOnFocus: D,
210
+ openWithDelay: A,
211
+ closeWithDelay: W,
212
+ cancelClose: p,
213
+ notePressStart: M,
214
+ onClick: z
214
215
  }),
215
216
  [
216
- u,
217
- w,
218
- s,
219
- S,
220
- A,
217
+ p,
218
+ W,
221
219
  z,
222
- M
220
+ x,
221
+ M,
222
+ D,
223
+ A
223
224
  ]
224
225
  );
225
- return /* @__PURE__ */ d(Q.Provider, { value: { headingId: q, setHeadingId: oe }, children: /* @__PURE__ */ d(B.Provider, { value: ne, children: /* @__PURE__ */ d(Y.Provider, { value: ae, children: /* @__PURE__ */ d(N.Root, { open: h, onOpenChange: a, children: e }) }) }) });
226
+ return /* @__PURE__ */ d(Y.Provider, { value: { headingId: q, setHeadingId: s }, children: /* @__PURE__ */ d(B.Provider, { value: G, children: /* @__PURE__ */ d($.Provider, { value: ae, children: /* @__PURE__ */ d(k.Root, { open: h, onOpenChange: a, children: e }) }) }) });
226
227
  }
227
- K.displayName = "HoverCard.Root";
228
- const Y = V({
228
+ U.displayName = "HoverCard.Root";
229
+ const $ = E({
229
230
  isHoverMode: !0,
230
231
  openOnFocus: () => {
231
232
  },
@@ -239,26 +240,26 @@ const Y = V({
239
240
  },
240
241
  onClick: () => {
241
242
  }
242
- }), Z = x(
243
+ }), L = I(
243
244
  ({
244
245
  children: e,
245
246
  onMouseEnter: t,
246
247
  onMouseLeave: o,
247
- onFocus: c,
248
- onBlur: l,
249
- onPointerDown: g,
250
- onKeyDown: p,
251
- onClick: f,
252
- ...I
253
- }, b) => {
254
- const n = H(Y), { triggerRef: h } = H(B), a = m(
248
+ onFocus: u,
249
+ onBlur: i,
250
+ onPointerDown: f,
251
+ onKeyDown: c,
252
+ onClick: v,
253
+ ...T
254
+ }, R) => {
255
+ const n = H($), { triggerRef: h } = H(B), a = m(
255
256
  (r) => {
256
- h.current = r, typeof b == "function" ? b(r) : b && (b.current = r);
257
+ h.current = r, typeof R == "function" ? R(r) : R && (R.current = r);
257
258
  },
258
- [b, h]
259
+ [R, h]
259
260
  );
260
261
  return /* @__PURE__ */ d(
261
- N.Trigger,
262
+ k.Trigger,
262
263
  {
263
264
  ref: a,
264
265
  onMouseEnter: (r) => {
@@ -268,99 +269,112 @@ const Y = V({
268
269
  n.isHoverMode && n.closeWithDelay(), o == null || o(r);
269
270
  },
270
271
  onFocus: (r) => {
271
- n.isHoverMode && n.openOnFocus(), c == null || c(r);
272
+ n.isHoverMode && n.openOnFocus(), u == null || u(r);
272
273
  },
273
274
  onBlur: (r) => {
274
- n.isHoverMode && n.closeWithDelay(), l == null || l(r);
275
+ n.isHoverMode && n.closeWithDelay(), i == null || i(r);
275
276
  },
276
277
  onPointerDown: (r) => {
277
- n.notePressStart(), g == null || g(r);
278
+ n.notePressStart(), f == null || f(r);
278
279
  },
279
280
  onKeyDown: (r) => {
280
- (r.key === "Enter" || r.key === " ") && n.notePressStart(), p == null || p(r);
281
+ (r.key === "Enter" || r.key === " ") && n.notePressStart(), c == null || c(r);
281
282
  },
282
283
  onClick: (r) => {
283
- r.preventDefault(), n.onClick(), f == null || f(r);
284
+ r.preventDefault(), n.onClick(), v == null || v(r);
284
285
  },
285
- ...I,
286
+ ...T,
286
287
  children: e
287
288
  }
288
289
  );
289
290
  }
290
291
  );
291
- Z.displayName = "HoverCard.Trigger";
292
- const _ = x((e, t) => {
293
- const { triggerRef: o } = H(B), c = m(
294
- (l) => {
295
- o.current = l, typeof t == "function" ? t(l) : t && (t.current = l);
292
+ L.displayName = "HoverCard.Trigger";
293
+ const K = I((e, t) => {
294
+ var f;
295
+ const { triggerRef: o } = H(B), u = m(
296
+ (c) => {
297
+ o.current = c, typeof t == "function" ? t(c) : t && (t.current = c);
296
298
  },
297
299
  [t, o]
298
- );
299
- return /* @__PURE__ */ d(N.Anchor, { ref: c, ...e });
300
+ ), i = (f = e.virtualRef) == null ? void 0 : f.current;
301
+ return P(() => {
302
+ if (i instanceof HTMLElement)
303
+ return o.current = i, () => {
304
+ o.current === i && (o.current = null);
305
+ };
306
+ }, [i, o]), /* @__PURE__ */ d(k.Anchor, { ref: u, ...e });
300
307
  });
301
- _.displayName = "HoverCard.Anchor";
302
- const $ = x(
308
+ K.displayName = "HoverCard.Anchor";
309
+ const ee = I(
303
310
  ({
304
311
  side: e = "top",
305
312
  align: t = "center",
306
313
  size: o = "md",
307
- padding: c = "default",
308
- showArrow: l = !0,
309
- showClose: g = !1,
310
- headerAction: p,
311
- dir: f,
312
- className: I,
313
- children: b,
314
+ padding: u = "default",
315
+ showArrow: i = !0,
316
+ showClose: f = !1,
317
+ headerAction: c,
318
+ dir: v,
319
+ className: T,
320
+ children: R,
314
321
  onOpenAutoFocus: n,
315
322
  onCloseAutoFocus: h,
316
323
  onMouseEnter: a,
317
324
  onMouseLeave: r,
318
- onFocusCapture: R,
319
- ...u
325
+ onFocusCapture: b,
326
+ onKeyDown: p,
327
+ ...N
320
328
  }, y) => {
321
- const { headingId: O } = H(Q), i = H(B), { t: X } = ce("ui"), [M, w] = J(!1), k = C(null), T = m(
329
+ const { headingId: F } = H(Y), l = H(B), A = m(
330
+ (s) => l.triggerRef.current ?? ie(s),
331
+ [l.triggerRef]
332
+ ), W = ce(!0, { getAnchor: A }), { t: j } = ue("ui"), [O, S] = Q(!1), D = C(null), V = m(
322
333
  (s) => {
323
- k.current = s, i.registerContent(s), typeof y == "function" ? y(s) : y && (y.current = s);
334
+ D.current = s, l.registerContent(s), typeof y == "function" ? y(s) : y && (y.current = s);
324
335
  },
325
- [y, i]
336
+ [y, l]
326
337
  );
327
338
  P(() => {
328
- const s = i.triggerRef.current, F = s == null ? void 0 : s.closest("[dir]"), q = (F == null ? void 0 : F.getAttribute("dir")) ?? document.documentElement.dir ?? "ltr";
329
- w(q === "rtl");
330
- }, [i.triggerRef]);
331
- const j = f ?? (M ? "rtl" : "ltr"), z = j === "rtl", W = ve(e, z), A = z && (W === "top" || W === "bottom") && t !== "center" ? t === "start" ? "end" : "start" : t;
332
- return /* @__PURE__ */ d(N.Portal, { children: /* @__PURE__ */ U(
333
- N.Content,
339
+ const s = l.triggerRef.current, x = s == null ? void 0 : s.closest("[dir]"), G = (x == null ? void 0 : x.getAttribute("dir")) ?? document.documentElement.dir ?? "ltr";
340
+ S(G === "rtl");
341
+ }, [l.triggerRef]);
342
+ const w = v ?? (O ? "rtl" : "ltr"), M = w === "rtl", z = ge(e, M), q = M && (z === "top" || z === "bottom") && t !== "center" ? t === "start" ? "end" : "start" : t;
343
+ return /* @__PURE__ */ d(k.Portal, { children: /* @__PURE__ */ _(
344
+ k.Content,
334
345
  {
335
- ref: T,
336
- dir: j,
337
- side: W,
338
- align: A,
346
+ ref: V,
347
+ dir: w,
348
+ side: z,
349
+ align: q,
339
350
  sideOffset: 8,
340
351
  collisionPadding: 8,
341
- "aria-labelledby": O,
342
- className: me({ size: o, padding: c, className: I }),
352
+ "aria-labelledby": F,
353
+ className: he({ size: o, padding: u, className: T }),
343
354
  "data-component": "hover-card",
344
- "data-component-id": i.instanceId,
355
+ "data-component-id": l.instanceId,
345
356
  onOpenAutoFocus: (s) => {
346
- i.shouldFocusOnOpen() ? i.noteMovedFocus() : s.preventDefault(), n == null || n(s);
357
+ l.shouldFocusOnOpen() ? l.noteMovedFocus() : s.preventDefault(), n == null || n(s);
347
358
  },
348
359
  onCloseAutoFocus: (s) => {
349
- i.didMoveFocus() ? i.noteFocusReturn() : s.preventDefault(), i.clearMovedFocus(), h == null || h(s);
360
+ l.didMoveFocus() ? l.noteFocusReturn() : s.preventDefault(), l.clearMovedFocus(), h == null || h(s);
350
361
  },
351
362
  onMouseEnter: (s) => {
352
- i.cancelClose(), a == null || a(s);
363
+ l.cancelClose(), a == null || a(s);
353
364
  },
354
365
  onMouseLeave: (s) => {
355
- i.closeWithDelay(), r == null || r(s);
366
+ l.closeWithDelay(), r == null || r(s);
356
367
  },
357
368
  onFocusCapture: (s) => {
358
- i.cancelClose(), R == null || R(s);
369
+ l.cancelClose(), b == null || b(s);
370
+ },
371
+ onKeyDown: (s) => {
372
+ p == null || p(s), W(s);
359
373
  },
360
- ...u,
374
+ ...N,
361
375
  children: [
362
- /* @__PURE__ */ d(E.Provider, { value: c, children: b }),
363
- g || p ? /* @__PURE__ */ U(
376
+ /* @__PURE__ */ d(X.Provider, { value: u, children: R }),
377
+ f || c ? /* @__PURE__ */ _(
364
378
  "div",
365
379
  {
366
380
  className: [
@@ -368,20 +382,20 @@ const $ = x(
368
382
  "ds:z-[1] ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]"
369
383
  ].join(" "),
370
384
  children: [
371
- p,
372
- g ? /* @__PURE__ */ d(N.Close, { asChild: !0, children: /* @__PURE__ */ d(
373
- le,
385
+ c,
386
+ f ? /* @__PURE__ */ d(k.Close, { asChild: !0, children: /* @__PURE__ */ d(
387
+ pe,
374
388
  {
375
- icon: /* @__PURE__ */ d(pe, {}),
389
+ icon: /* @__PURE__ */ d(ve, {}),
376
390
  intent: "ghost",
377
391
  size: "sm",
378
- "aria-label": X("common.close", "Close")
392
+ "aria-label": j("common.close", "Close")
379
393
  }
380
394
  ) }) : null
381
395
  ]
382
396
  }
383
397
  ) : null,
384
- l ? (
398
+ i ? (
385
399
  // Radix places the arrow on the resolved side and keeps it over
386
400
  // the trigger through collision flip and shift.
387
401
  //
@@ -394,7 +408,7 @@ const $ = x(
394
408
  // card, so the card's own border does not show through it. The
395
409
  // translate is applied inside Radix's rotation wrapper, so "up"
396
410
  // means "towards the card" on every side.
397
- /* @__PURE__ */ d(N.Arrow, { asChild: !0, width: 12, height: 6, children: /* @__PURE__ */ d(
411
+ /* @__PURE__ */ d(k.Arrow, { asChild: !0, width: 12, height: 6, children: /* @__PURE__ */ d(
398
412
  "svg",
399
413
  {
400
414
  viewBox: "0 0 12 6",
@@ -410,8 +424,8 @@ const $ = x(
410
424
  ) });
411
425
  }
412
426
  );
413
- $.displayName = "HoverCard.Content";
414
- const L = x(({ className: e, ...t }, o) => /* @__PURE__ */ d(
427
+ ee.displayName = "HoverCard.Content";
428
+ const te = I(({ className: e, ...t }, o) => /* @__PURE__ */ d(
415
429
  "div",
416
430
  {
417
431
  ref: o,
@@ -420,8 +434,8 @@ const L = x(({ className: e, ...t }, o) => /* @__PURE__ */ d(
420
434
  ...t
421
435
  }
422
436
  ));
423
- L.displayName = "HoverCard.Media";
424
- const ee = x(({ className: e, ...t }, o) => /* @__PURE__ */ d(
437
+ te.displayName = "HoverCard.Media";
438
+ const re = I(({ className: e, ...t }, o) => /* @__PURE__ */ d(
425
439
  "p",
426
440
  {
427
441
  ref: o,
@@ -433,29 +447,29 @@ const ee = x(({ className: e, ...t }, o) => /* @__PURE__ */ d(
433
447
  ...t
434
448
  }
435
449
  ));
436
- ee.displayName = "HoverCard.Eyebrow";
437
- const te = x(
438
- ({ as: e = "h3", id: t, className: o, ...c }, l) => {
439
- const g = de(), p = t ?? g, { setHeadingId: f } = H(Q), I = H(E);
440
- return P(() => (f(p), () => f(void 0)), [p, f]), /* @__PURE__ */ d(
450
+ re.displayName = "HoverCard.Eyebrow";
451
+ const se = I(
452
+ ({ as: e = "h3", id: t, className: o, ...u }, i) => {
453
+ const f = de(), c = t ?? f, { setHeadingId: v } = H(Y), T = H(X);
454
+ return P(() => (v(c), () => v(void 0)), [c, v]), /* @__PURE__ */ d(
441
455
  e,
442
456
  {
443
- ref: l,
444
- id: p,
457
+ ref: i,
458
+ id: c,
445
459
  "data-slot": "heading",
446
460
  className: [
447
461
  "type-title-item ds:leading-snug ds:break-words",
448
- I === "flush" ? "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-md)]" : "",
462
+ T === "flush" ? "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-md)]" : "",
449
463
  o
450
464
  ].filter(Boolean).join(" "),
451
- ...c
465
+ ...u
452
466
  }
453
467
  );
454
468
  }
455
469
  );
456
- te.displayName = "HoverCard.Heading";
457
- const re = x(({ className: e, ...t }, o) => {
458
- const c = H(E);
470
+ se.displayName = "HoverCard.Heading";
471
+ const oe = I(({ className: e, ...t }, o) => {
472
+ const u = H(X);
459
473
  return /* @__PURE__ */ d(
460
474
  "div",
461
475
  {
@@ -464,16 +478,16 @@ const re = x(({ className: e, ...t }, o) => {
464
478
  className: [
465
479
  "type-body-sm ds:text-[var(--muted-foreground)]",
466
480
  "ds:mt-[var(--spacing-xs)]",
467
- c === "flush" ? "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pb-[var(--spacing-md)]" : "",
481
+ u === "flush" ? "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pb-[var(--spacing-md)]" : "",
468
482
  e
469
483
  ].filter(Boolean).join(" "),
470
484
  ...t
471
485
  }
472
486
  );
473
487
  });
474
- re.displayName = "HoverCard.Body";
475
- const se = x(({ className: e, ...t }, o) => {
476
- const c = H(E);
488
+ oe.displayName = "HoverCard.Body";
489
+ const ne = I(({ className: e, ...t }, o) => {
490
+ const u = H(X);
477
491
  return /* @__PURE__ */ d(
478
492
  "div",
479
493
  {
@@ -483,34 +497,34 @@ const se = x(({ className: e, ...t }, o) => {
483
497
  "ds:flex ds:flex-wrap ds:items-center ds:justify-end",
484
498
  "ds:gap-[var(--spacing-sm)]",
485
499
  "ds:border-t ds:border-[color:var(--card-border)]",
486
- c === "flush" ? "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]" : "ds:mt-[var(--spacing-md)] ds:pt-[var(--spacing-md)]",
500
+ u === "flush" ? "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]" : "ds:mt-[var(--spacing-md)] ds:pt-[var(--spacing-md)]",
487
501
  e
488
502
  ].filter(Boolean).join(" "),
489
503
  ...t
490
504
  }
491
505
  );
492
506
  });
493
- se.displayName = "HoverCard.Footer";
494
- function xe() {
507
+ ne.displayName = "HoverCard.Footer";
508
+ function Ne() {
495
509
  const { cancelClose: e, closeWithDelay: t } = H(B);
496
510
  return { cancelClose: e, closeWithDelay: t };
497
511
  }
498
- const Ie = Object.assign(K, {
499
- Root: K,
500
- Trigger: Z,
512
+ const Oe = Object.assign(U, {
513
+ Root: U,
514
+ Trigger: L,
501
515
  // Anchor the card to an arbitrary element when a trigger button is
502
516
  // unsuitable, such as a calendar grid cell.
503
- Anchor: _,
504
- Content: $,
505
- Media: L,
506
- Eyebrow: ee,
507
- Heading: te,
508
- Body: re,
509
- Footer: se
517
+ Anchor: K,
518
+ Content: ee,
519
+ Media: te,
520
+ Eyebrow: re,
521
+ Heading: se,
522
+ Body: oe,
523
+ Footer: ne
510
524
  });
511
525
  export {
512
- Ie as H,
513
- fe as h,
514
- xe as u
526
+ Oe as H,
527
+ me as h,
528
+ Ne as u
515
529
  };
516
- //# sourceMappingURL=hover-card-BnTueNS2.js.map
530
+ //# sourceMappingURL=hover-card-U_ZYoh1n.js.map
@@ -2,7 +2,7 @@ import { jsxs as S, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as H, useState as y, useRef as h, useCallback as v, useMemo as b } from "react";
3
3
  import { c as M } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as F } from "react-i18next";
5
- import { P as k } from "./popover-BI3oV3eY.js";
5
+ import { P as k } from "./popover-BG75rYjN.js";
6
6
  import { B as D } from "./button-Bn16lcFM.js";
7
7
  import { S as E } from "./state-backed-text-input-DECQy5aA.js";
8
8
  import { u as G } from "./registry-DvAUVLHh.js";
@@ -269,4 +269,4 @@ export {
269
269
  X as I,
270
270
  U as i
271
271
  };
272
- //# sourceMappingURL=icon-picker-DWrqmI1c.js.map
272
+ //# sourceMappingURL=icon-picker-C86lQTIA.js.map
@@ -2,7 +2,7 @@ import { jsxs as u, jsx as i } from "react/jsx-runtime";
2
2
  import { forwardRef as I, useState as O, useRef as m, useEffect as k, useMemo as z } from "react";
3
3
  import { c as C } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as D } from "react-i18next";
5
- import { P as o } from "./popover-BI3oV3eY.js";
5
+ import { P as o } from "./popover-BG75rYjN.js";
6
6
  import { u as P } from "./registry-DvAUVLHh.js";
7
7
  import { I as A } from "./info-CGn22peZ.js";
8
8
  const R = {
@@ -163,4 +163,4 @@ export {
163
163
  j as I,
164
164
  R as i
165
165
  };
166
- //# sourceMappingURL=info-tip-B0jmIt6M.js.map
166
+ //# sourceMappingURL=info-tip-CJpNpzZe.js.map
@@ -1,8 +1,8 @@
1
1
  import { createElement as e } from "react";
2
- import { P as i } from "./pregnancy-dating-Bfu0Cq4H.js";
2
+ import { P as i } from "./pregnancy-dating-BFzv9g1N.js";
3
3
  import { P as o } from "./pregnancy-weight-gain-CUUrBTBo.js";
4
- import { G as r } from "./gestational-age-calculator-DqVeJke2.js";
5
- import { C as c } from "./cycle-calculator-Dgfqr4Q4.js";
4
+ import { G as r } from "./gestational-age-calculator-CZi43xKG.js";
5
+ import { C as c } from "./cycle-calculator-Cww9DzIa.js";
6
6
  import { F as s } from "./fetal-weight-BWaqqjea.js";
7
7
  import { c as a } from "./createLucideIcon-DhHxpK9K.js";
8
8
  import { B as n } from "./baby-Dku-Xvg9.js";
@@ -91,4 +91,4 @@ const k = [
91
91
  export {
92
92
  I as k
93
93
  };
94
- //# sourceMappingURL=kit-extensions-Byfxy6sy.js.map
94
+ //# sourceMappingURL=kit-extensions-DYVxWcqv.js.map