@alfadocs/ui-kit 1.55.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 (255) 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-Dtw5Hpg4.js → anamnesis-summary-rows-CCQ62mMN.js} +5 -5
  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-zP-iN-Pd.js → balance-badge-cell-CII3SDmR.js} +3 -3
  8. package/dist/_chunks/{bmi-calculator-DTZhRhXe.js → bmi-calculator-C0UTxB7R.js} +2 -2
  9. package/dist/_chunks/{booking-uZO10TLK.js → booking-81WnKDsH.js} +4 -4
  10. package/dist/_chunks/{breadcrumb-xgVpPH2H.js → breadcrumb-Boan-5n8.js} +39 -39
  11. package/dist/_chunks/{calculator-dialog-BRjZMWuE.js → calculator-dialog-CzQv03p0.js} +2 -2
  12. package/dist/_chunks/{calendar-workspace-DVajSkKA.js → calendar-workspace-D5-k_9zE.js} +15 -15
  13. package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
  14. package/dist/_chunks/{care-plan-header-BeMYMiI7.js → care-plan-header-BMwZIgHJ.js} +3 -3
  15. package/dist/_chunks/chart-DQ5GxqgT.js +906 -0
  16. package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
  17. package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
  18. package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
  19. package/dist/_chunks/{contact-profile-card-C5DbP_X3.js → contact-profile-card-CMyBYgRR.js} +3 -3
  20. package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
  21. package/dist/_chunks/dashboard-grid-DfEY2qci.js +844 -0
  22. package/dist/_chunks/{data-table-C6T31E33.js → data-table-fAMTeAjM.js} +2 -2
  23. package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
  24. package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
  25. package/dist/_chunks/{date-range-picker-BOvHwWO5.js → date-range-picker-CFk-5O3R.js} +188 -177
  26. package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
  27. package/dist/_chunks/{dependent-selector-Bet3XAFj.js → dependent-selector-DgaAQc-c.js} +91 -86
  28. package/dist/_chunks/{dialog-D52AI4nF.js → dialog-Dn-iQ0Jp.js} +86 -69
  29. package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
  30. package/dist/_chunks/{due-date-calculator-DXDJbUzo.js → due-date-calculator-D_qFUiHp.js} +3 -3
  31. package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
  32. package/dist/_chunks/{file-manager-dIJQUZvq.js → file-manager-CFsL1KVt.js} +4 -4
  33. package/dist/_chunks/{freemium-paywall-B6ojVXq7.js → freemium-paywall-DIKuhX8b.js} +90 -86
  34. package/dist/_chunks/{gestational-age-calculator-BfGpt3du.js → gestational-age-calculator-CZi43xKG.js} +3 -3
  35. package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
  36. package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
  37. package/dist/_chunks/{heatmap-BARGZZt2.js → heatmap-BEeOThkW.js} +2 -2
  38. package/dist/_chunks/{help-me-write-templates-B7L3zGsE.js → help-me-write-templates-BUoYGo6f.js} +2 -2
  39. package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
  40. package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-C86lQTIA.js} +2 -2
  41. package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
  42. package/dist/_chunks/{key-value-pair-Ax8IJr1M.js → key-value-pair-BNNITp6S.js} +25 -19
  43. package/dist/_chunks/{kit-extensions-C9-v8Dih.js → kit-extensions-DYVxWcqv.js} +5 -5
  44. package/dist/_chunks/{link-cell-renderer-DlBVPMTi.js → link-cell-renderer-CxW_oLa5.js} +2 -2
  45. package/dist/_chunks/link-gRw3NtOt.js +137 -0
  46. package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
  47. package/dist/_chunks/{marketplace-app-shell-Dcx-JEjg.js → marketplace-app-shell-BZcA9Z06.js} +143 -129
  48. package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-QKQutwxj.js} +76 -69
  49. package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
  50. package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
  51. package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
  52. package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
  53. package/dist/_chunks/{notes-panel-I8ntrrUW.js → notes-panel-Cm4pttpl.js} +4 -4
  54. package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-C5VtbGjd.js} +83 -76
  55. package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-99kEdtc5.js} +2 -2
  56. package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-DkxY13T6.js} +5 -5
  57. package/dist/_chunks/{patient-summary-card-3dspc2tR.js → patient-summary-card-opdyfeW2.js} +10 -6
  58. package/dist/_chunks/{payment-automation-upsell-DEUfM7EU.js → payment-automation-upsell-DiHovmUL.js} +2 -2
  59. package/dist/_chunks/{payment-request-card-DAGqh9Yx.js → payment-request-card-DAniJNLX.js} +3 -3
  60. package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
  61. package/dist/_chunks/{periodontal-chart-BqwLxy2m.js → periodontal-chart-DD5C0M3l.js} +2 -2
  62. package/dist/_chunks/{periodontal-chart-card-CWZ1YM1h.js → periodontal-chart-card-CxdXvsPU.js} +2 -2
  63. package/dist/_chunks/{periodontal-diagnosis-C9IuvLId.js → periodontal-diagnosis-D-PJv7KS.js} +2 -2
  64. package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
  65. package/dist/_chunks/popover-BG75rYjN.js +367 -0
  66. package/dist/_chunks/{position-grid-D2D5_Tze.js → position-grid-CBB88EaH.js} +38 -36
  67. package/dist/_chunks/{practice-results-DxOgbPDy.js → practice-results-CfRkjzsI.js} +2 -2
  68. package/dist/_chunks/{pregnancy-dating-R3q5n1Wh.js → pregnancy-dating-BFzv9g1N.js} +3 -3
  69. package/dist/_chunks/{pregnancy-weight-gain-DwmNklDU.js → pregnancy-weight-gain-CUUrBTBo.js} +2 -2
  70. package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DlVRK7Ue.js} +103 -96
  71. package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
  72. package/dist/_chunks/{public-header.agent-BWusjxY8.js → public-header.agent-BctevbuY.js} +2 -2
  73. package/dist/_chunks/{radio-group-BT97ty7o.js → radio-group-DicxWJXP.js} +111 -106
  74. package/dist/_chunks/{radiograph-panel.agent-BA90I3Mu.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
  75. package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-BlTzYywa.js} +2 -2
  76. package/dist/_chunks/{rich-text-editor-Blp4smUr.js → rich-text-editor-DTnNZ4Ff.js} +489 -484
  77. package/dist/_chunks/{sheet-CNFW8mYZ.js → sheet-8qsiMoUI.js} +95 -79
  78. package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
  79. package/dist/_chunks/{signature-request-rgMsgo-C.js → signature-request-DRuYAG5I.js} +2 -2
  80. package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-AhMsNW1r.js} +2 -2
  81. package/dist/_chunks/{stat-51CDL4au.js → stat-DmjGfXND.js} +117 -108
  82. package/dist/_chunks/{stepper-accordion-D7lnBGh2.js → stepper-accordion-DDTSOUHc.js} +17 -6
  83. package/dist/_chunks/{task-editor-Ctxsa1BY.js → task-editor-NkcopDna.js} +4 -4
  84. package/dist/_chunks/{use-appointment-details-read-DinTrRIW.js → use-appointment-details-read-CfFQNOF_.js} +5 -5
  85. package/dist/_chunks/use-select-on-arrow-Cr4iBuW5.js +26 -0
  86. package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-BKbgb7FM.js} +2 -2
  87. package/dist/_chunks/{widget-picker-D8RiWrJd.js → widget-picker-rBA7MR5P.js} +2 -2
  88. package/dist/_chunks/{workflow-map-D3mezmGB.js → workflow-map-Demlpy39.js} +2 -2
  89. package/dist/agent-catalog.json +28 -11
  90. package/dist/agent-i18n/en.json +8 -7
  91. package/dist/components/_shared/non-modal-tab-exit.d.ts +19 -0
  92. package/dist/components/_shared/use-apex-chart-semantics.d.ts +6 -0
  93. package/dist/components/_shared/use-select-on-arrow.d.ts +20 -0
  94. package/dist/components/ai-credits-notice/index.js +1 -1
  95. package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
  96. package/dist/components/ai-permission-notice/index.d.ts +1 -1
  97. package/dist/components/ai-permission-notice/index.js +1 -1
  98. package/dist/components/appointment-details-panel/index.js +1 -1
  99. package/dist/components/appointment-peek/index.js +1 -1
  100. package/dist/components/appointment-timeline/index.js +1 -1
  101. package/dist/components/bmi-calculator/index.js +1 -1
  102. package/dist/components/booking/index.js +1 -1
  103. package/dist/components/breadcrumb/index.js +1 -1
  104. package/dist/components/calculator-dialog/index.js +1 -1
  105. package/dist/components/care-plan-card/index.js +1 -1
  106. package/dist/components/care-plan-header/index.js +1 -1
  107. package/dist/components/chart/chart.d.ts +15 -10
  108. package/dist/components/chart/index.js +1 -1
  109. package/dist/components/clinical-note-card/index.js +1 -1
  110. package/dist/components/color-picker/index.js +1 -1
  111. package/dist/components/contact-card/index.js +1 -1
  112. package/dist/components/contact-profile-card/index.js +1 -1
  113. package/dist/components/cycle-calculator/index.js +1 -1
  114. package/dist/components/dashboard-grid/dashboard-grid-engine.d.ts +22 -0
  115. package/dist/components/dashboard-grid/dashboard-grid.d.ts +48 -4
  116. package/dist/components/dashboard-grid/index.js +1 -1
  117. package/dist/components/data-table/index.js +2 -2
  118. package/dist/components/data-table-tabs/index.js +1 -1
  119. package/dist/components/date-picker/index.js +1 -1
  120. package/dist/components/date-range-picker/index.js +1 -1
  121. package/dist/components/date-time-picker/index.js +1 -1
  122. package/dist/components/dependent-selector/index.js +1 -1
  123. package/dist/components/dialog/dialog.d.ts +2 -2
  124. package/dist/components/dialog/index.js +1 -1
  125. package/dist/components/document-preview/index.js +1 -1
  126. package/dist/components/due-date-calculator/index.js +1 -1
  127. package/dist/components/entity-summary/index.js +1 -1
  128. package/dist/components/file-manager/index.js +1 -1
  129. package/dist/components/freemium-paywall/index.js +1 -1
  130. package/dist/components/gestational-age-calculator/index.js +1 -1
  131. package/dist/components/hcg-doubling/index.js +1 -1
  132. package/dist/components/header-settings/index.js +1 -1
  133. package/dist/components/heatmap/index.js +1 -1
  134. package/dist/components/hover-card/index.js +1 -1
  135. package/dist/components/icon-picker/index.js +1 -1
  136. package/dist/components/info-tip/index.js +1 -1
  137. package/dist/components/key-value-pair/index.js +1 -1
  138. package/dist/components/link/index.js +1 -1
  139. package/dist/components/link/link.d.ts +5 -3
  140. package/dist/components/locale-picker/index.js +1 -1
  141. package/dist/components/message-tray/index.js +1 -1
  142. package/dist/components/nav-grid/index.js +1 -1
  143. package/dist/components/note-timeline/index.js +1 -1
  144. package/dist/components/notes-panel/index.js +1 -1
  145. package/dist/components/notification-tray/index.js +1 -1
  146. package/dist/components/patient-details/index.js +1 -1
  147. package/dist/components/patient-summary-card/index.js +1 -1
  148. package/dist/components/patient-table/index.js +1 -1
  149. package/dist/components/payment-card/index.js +1 -1
  150. package/dist/components/pdf-viewer/index.js +1 -1
  151. package/dist/components/periodontal-chart/index.js +1 -1
  152. package/dist/components/periodontal-chart-card/index.js +1 -1
  153. package/dist/components/periodontal-diagnosis/index.js +1 -1
  154. package/dist/components/phone-input/index.js +1 -1
  155. package/dist/components/popover/index.js +1 -1
  156. package/dist/components/popover/popover.d.ts +1 -1
  157. package/dist/components/position-grid/index.js +1 -1
  158. package/dist/components/practice-results/index.js +1 -1
  159. package/dist/components/pregnancy-dating/index.js +1 -1
  160. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  161. package/dist/components/product-hub-tray/index.js +1 -1
  162. package/dist/components/public-footer/index.js +1 -1
  163. package/dist/components/public-header/index.js +1 -1
  164. package/dist/components/radio-group/index.js +1 -1
  165. package/dist/components/radiograph-panel/index.js +1 -1
  166. package/dist/components/rich-text-editor/index.js +2 -2
  167. package/dist/components/sheet/index.js +1 -1
  168. package/dist/components/sheet/sheet.d.ts +2 -2
  169. package/dist/components/sign-document/index.js +1 -1
  170. package/dist/components/stat/index.d.ts +1 -1
  171. package/dist/components/stat/index.js +1 -1
  172. package/dist/components/stat/stat.d.ts +9 -0
  173. package/dist/components/stepper-accordion/index.js +1 -1
  174. package/dist/components/task-editor/index.js +1 -1
  175. package/dist/components/voice-control-panel/index.js +1 -1
  176. package/dist/components/widget-picker/index.js +1 -1
  177. package/dist/components/workflow/index.js +1 -1
  178. package/dist/host-legacy.css +13 -2
  179. package/dist/i18n/locales/ar.d.ts +17 -2
  180. package/dist/i18n/locales/ar.js +20 -5
  181. package/dist/i18n/locales/de.d.ts +17 -2
  182. package/dist/i18n/locales/de.js +20 -5
  183. package/dist/i18n/locales/el.d.ts +17 -2
  184. package/dist/i18n/locales/el.js +20 -5
  185. package/dist/i18n/locales/en.d.ts +17 -2
  186. package/dist/i18n/locales/en.js +20 -5
  187. package/dist/i18n/locales/es.d.ts +17 -2
  188. package/dist/i18n/locales/es.js +20 -5
  189. package/dist/i18n/locales/fr.d.ts +17 -2
  190. package/dist/i18n/locales/fr.js +20 -5
  191. package/dist/i18n/locales/hi.d.ts +17 -2
  192. package/dist/i18n/locales/hi.js +20 -5
  193. package/dist/i18n/locales/it.d.ts +17 -2
  194. package/dist/i18n/locales/it.js +20 -5
  195. package/dist/i18n/locales/ja.d.ts +17 -2
  196. package/dist/i18n/locales/ja.js +20 -5
  197. package/dist/i18n/locales/nl.d.ts +17 -2
  198. package/dist/i18n/locales/nl.js +20 -5
  199. package/dist/i18n/locales/pl.d.ts +17 -2
  200. package/dist/i18n/locales/pl.js +20 -5
  201. package/dist/i18n/locales/pt.d.ts +17 -2
  202. package/dist/i18n/locales/pt.js +20 -5
  203. package/dist/i18n/locales/ro.d.ts +17 -2
  204. package/dist/i18n/locales/ro.js +20 -5
  205. package/dist/i18n/locales/ru.d.ts +17 -2
  206. package/dist/i18n/locales/ru.js +20 -5
  207. package/dist/i18n/locales/sq.d.ts +17 -2
  208. package/dist/i18n/locales/sq.js +20 -5
  209. package/dist/i18n/locales/sv.d.ts +17 -2
  210. package/dist/i18n/locales/sv.js +20 -5
  211. package/dist/i18n/locales/tr.d.ts +17 -2
  212. package/dist/i18n/locales/tr.js +20 -5
  213. package/dist/i18n/locales/zh.d.ts +17 -2
  214. package/dist/i18n/locales/zh.js +20 -5
  215. package/dist/index.js +207 -206
  216. package/dist/locales/ar.json +20 -5
  217. package/dist/locales/de.json +20 -5
  218. package/dist/locales/el.json +20 -5
  219. package/dist/locales/en.json +20 -5
  220. package/dist/locales/es.json +20 -5
  221. package/dist/locales/fr.json +20 -5
  222. package/dist/locales/hi.json +20 -5
  223. package/dist/locales/it.json +20 -5
  224. package/dist/locales/ja.json +20 -5
  225. package/dist/locales/nl.json +20 -5
  226. package/dist/locales/pl.json +20 -5
  227. package/dist/locales/pt.json +20 -5
  228. package/dist/locales/ro.json +20 -5
  229. package/dist/locales/ru.json +20 -5
  230. package/dist/locales/sq.json +20 -5
  231. package/dist/locales/sv.json +20 -5
  232. package/dist/locales/tr.json +20 -5
  233. package/dist/locales/zh.json +20 -5
  234. package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
  235. package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
  236. package/dist/patterns/alia-assistant/index.d.ts +2 -0
  237. package/dist/patterns/alia-assistant/index.js +6 -5
  238. package/dist/patterns/anamnesis/index.js +1 -1
  239. package/dist/patterns/calendar/index.js +1 -1
  240. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +2 -2
  241. package/dist/patterns/help-me-write-templates/index.js +1 -1
  242. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  243. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +7 -2
  244. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  245. package/dist/patterns/registration-form/index.js +1 -1
  246. package/dist/patterns/signature-request/index.js +1 -1
  247. package/dist/patterns/signed-out-frame/index.js +1 -1
  248. package/dist/tokens.css +13 -2
  249. package/package.json +1 -1
  250. package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
  251. package/dist/_chunks/alia-sidebar-DS0b54Mv.js +0 -1183
  252. package/dist/_chunks/chart-C2RBJERE.js +0 -705
  253. package/dist/_chunks/dashboard-grid-SAGoyCtL.js +0 -691
  254. package/dist/_chunks/link-2HokYuIi.js +0 -130
  255. package/dist/_chunks/popover-BI3oV3eY.js +0 -305
@@ -0,0 +1,367 @@
1
+ import { jsx as i, jsxs as $ } from "react/jsx-runtime";
2
+ import { useState as V, useCallback as C, useRef as y, useEffect as N, useMemo as M, forwardRef as R, useId as X, useContext as m, createContext as k } from "react";
3
+ import * as g from "@radix-ui/react-popover";
4
+ import { c as F } from "./index-D2ZczOXr.js";
5
+ import { useTranslation as ee } from "react-i18next";
6
+ import { I as oe } from "./icon-button-COX76Jdj.js";
7
+ import { u as te } from "./registry-DvAUVLHh.js";
8
+ import { c as q } from "./compose-refs-C0k0tdqF.js";
9
+ import { f as re, u as ne } from "./non-modal-tab-exit-j3CPOuE3.js";
10
+ import { X as se } from "./x-B5YnXwCz.js";
11
+ const ie = {
12
+ id: "popover",
13
+ capabilities: ["open", "close"],
14
+ state: {
15
+ isOpen: {
16
+ type: "boolean",
17
+ descriptionKey: "ui.agent.popover.state.isOpen",
18
+ description: "True when the popover is currently open.",
19
+ read: (e) => e.getIsOpen()
20
+ }
21
+ },
22
+ actions: {
23
+ open: {
24
+ safety: "read",
25
+ idempotent: !0,
26
+ descriptionKey: "ui.agent.popover.actions.open",
27
+ description: "Open the popover.",
28
+ invoke: (e) => {
29
+ e.open();
30
+ }
31
+ },
32
+ close: {
33
+ safety: "read",
34
+ idempotent: !0,
35
+ descriptionKey: "ui.agent.popover.actions.close",
36
+ description: "Close the popover.",
37
+ invoke: (e) => {
38
+ e.close();
39
+ }
40
+ }
41
+ },
42
+ domHooks: {
43
+ root: { attr: "data-component", value: "popover" },
44
+ instanceId: {
45
+ attr: "data-component-id",
46
+ sourceProp: "id",
47
+ description: "Sourced from the id prop on Popover.Root."
48
+ }
49
+ }
50
+ }, D = k({
51
+ headingId: void 0,
52
+ setHeadingId: () => {
53
+ },
54
+ descriptionId: void 0,
55
+ setDescriptionId: () => {
56
+ }
57
+ }), G = k({
58
+ isHoverMode: !1,
59
+ clearHoverTimer: () => {
60
+ },
61
+ closeWithDelay: () => {
62
+ }
63
+ }), E = k(null);
64
+ function ae(e) {
65
+ var r;
66
+ if (!e) return null;
67
+ const o = (r = e.virtualAnchorRef.current) == null ? void 0 : r.current;
68
+ return e.triggerRef.current ? e.triggerRef.current : o instanceof HTMLElement ? o : e.anchorRef.current;
69
+ }
70
+ function de(e) {
71
+ if (e === "top" || e === "bottom") return e;
72
+ const o = typeof document < "u" && document.documentElement.dir === "rtl";
73
+ return e === "start" ? o ? "right" : "left" : o ? "left" : "right";
74
+ }
75
+ const ce = F(
76
+ [
77
+ // `--card-border` 32% alpha provides a subtle edge that survives dark
78
+ // without becoming a heavy outline. The previous transparent border
79
+ // relied on the drop-shadow alone, which reads as a faint halo against
80
+ // dark surfaces and lets the popover float as an unbounded blob; the
81
+ // earlier heavy `--border` (grey-800 since WCAG 1.4.11 bump in 67fef8c)
82
+ // overcorrected the other way and made the popover read as a charcoal
83
+ // box. The forced-colors override below upgrades the border to
84
+ // `CanvasText` so HCM still repaints a fully visible edge.
85
+ "ds:relative ds:bg-[var(--popover)] ds:border ds:border-[color:var(--card-border)] ds:rounded-[var(--radius-md)]",
86
+ "ds:p-[var(--spacing-md)]",
87
+ "ds:shadow-[var(--shadow-lg)]",
88
+ "ds:z-[var(--z-popover)]",
89
+ "ds:text-[var(--popover-foreground)] ds:text-[length:var(--font-size-sm)]",
90
+ "ds:break-words",
91
+ "ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
92
+ "ds:data-[state=closed]:fade-out-0 ds:data-[state=open]:fade-in-0",
93
+ "ds:data-[state=closed]:zoom-out-95 ds:data-[state=open]:zoom-in-95",
94
+ "ds:data-[side=bottom]:slide-in-from-top-2 ds:data-[side=left]:slide-in-from-right-2",
95
+ "ds:data-[side=right]:slide-in-from-left-2 ds:data-[side=top]:slide-in-from-bottom-2",
96
+ "ds:motion-reduce:transition-none ds:motion-reduce:animate-none",
97
+ "ds:forced-colors:border-[CanvasText]",
98
+ "ds:focus-visible:outline-none"
99
+ ].join(" "),
100
+ {
101
+ variants: {
102
+ size: {
103
+ sm: "ds:max-w-[var(--popover-size-sm)]",
104
+ md: "ds:max-w-[var(--popover-size-md)]",
105
+ lg: "ds:max-w-[var(--popover-size-lg)]"
106
+ }
107
+ },
108
+ defaultVariants: {
109
+ size: "md"
110
+ }
111
+ }
112
+ ), J = k(void 0);
113
+ function S({
114
+ openOn: e = "click",
115
+ children: o,
116
+ id: r,
117
+ open: t,
118
+ onOpenChange: n,
119
+ defaultOpen: s,
120
+ modal: u
121
+ }) {
122
+ const [j, I] = V(s ?? !1), T = t !== void 0, h = T ? t : j, a = C(
123
+ (w) => {
124
+ T || I(w), n == null || n(w);
125
+ },
126
+ [T, n]
127
+ ), f = y(null), x = e === "hover" || e === "hover-or-click", c = C(() => {
128
+ f.current && (clearTimeout(f.current), f.current = null);
129
+ }, []), z = C(() => {
130
+ c(), f.current = setTimeout(() => {
131
+ a(!0);
132
+ }, 300);
133
+ }, [c, a]), b = C(() => {
134
+ c(), f.current = setTimeout(() => {
135
+ a(!1);
136
+ }, 300);
137
+ }, [c, a]);
138
+ N(() => () => c(), [c]);
139
+ const A = y(h);
140
+ N(() => {
141
+ A.current = h;
142
+ }, [h]);
143
+ const p = M(
144
+ () => ({
145
+ getIsOpen: () => A.current,
146
+ open: () => a(!0),
147
+ close: () => a(!1)
148
+ }),
149
+ [a]
150
+ );
151
+ te(ie, p, r);
152
+ const O = y(null), B = y(null), P = y(void 0), W = M(
153
+ () => ({
154
+ modal: u ?? !1,
155
+ close: () => a(!1),
156
+ triggerRef: O,
157
+ anchorRef: B,
158
+ virtualAnchorRef: P
159
+ }),
160
+ [u, a]
161
+ ), [H, d] = V(void 0), [l, v] = V(
162
+ void 0
163
+ ), L = x ? {
164
+ onMouseEnter: z,
165
+ onMouseLeave: b,
166
+ onFocus: () => {
167
+ c(), a(!0);
168
+ },
169
+ onBlur: b
170
+ } : {};
171
+ return /* @__PURE__ */ i(J.Provider, { value: r, children: /* @__PURE__ */ i(
172
+ D.Provider,
173
+ {
174
+ value: { headingId: H, setHeadingId: d, descriptionId: l, setDescriptionId: v },
175
+ children: /* @__PURE__ */ i(
176
+ G.Provider,
177
+ {
178
+ value: { isHoverMode: x, clearHoverTimer: c, closeWithDelay: b },
179
+ children: /* @__PURE__ */ i(E.Provider, { value: W, children: /* @__PURE__ */ i(
180
+ g.Root,
181
+ {
182
+ open: h,
183
+ onOpenChange: a,
184
+ modal: u,
185
+ children: x ? /* @__PURE__ */ i("span", { className: "ds:inline-flex", ...L, children: o }) : o
186
+ }
187
+ ) })
188
+ }
189
+ )
190
+ }
191
+ ) });
192
+ }
193
+ S.displayName = "Popover.Root";
194
+ const K = R(({ children: e, ...o }, r) => {
195
+ var s;
196
+ const t = (s = m(E)) == null ? void 0 : s.triggerRef, n = M(
197
+ () => q(r, t),
198
+ [r, t]
199
+ );
200
+ return /* @__PURE__ */ i(g.Trigger, { ref: n, ...o, children: e });
201
+ });
202
+ K.displayName = "Popover.Trigger";
203
+ const Q = R(({ virtualRef: e, ...o }, r) => {
204
+ const t = m(E), n = t == null ? void 0 : t.anchorRef, s = t == null ? void 0 : t.virtualAnchorRef, u = M(
205
+ () => q(r, n),
206
+ [r, n]
207
+ );
208
+ return N(() => {
209
+ if (s)
210
+ return s.current = e, () => {
211
+ s.current === e && (s.current = void 0);
212
+ };
213
+ }, [s, e]), /* @__PURE__ */ i(g.Anchor, { ref: u, virtualRef: e, ...o });
214
+ });
215
+ Q.displayName = "Popover.Anchor";
216
+ const U = R(
217
+ ({
218
+ side: e = "bottom",
219
+ align: o = "center",
220
+ size: r = "md",
221
+ showArrow: t = !0,
222
+ className: n,
223
+ children: s,
224
+ onKeyDown: u,
225
+ onFocus: j,
226
+ onCloseAutoFocus: I,
227
+ ...T
228
+ }, h) => {
229
+ const { headingId: a, descriptionId: f } = m(D), x = m(J), {
230
+ isHoverMode: c,
231
+ clearHoverTimer: z,
232
+ closeWithDelay: b
233
+ } = m(G), A = de(e), p = m(E), O = C(
234
+ (d) => ae(p) ?? re(d),
235
+ [p]
236
+ ), B = ne(!(p != null && p.modal), {
237
+ getAnchor: O,
238
+ onReturnToTrigger: c || p == null ? void 0 : p.close
239
+ }), P = y(null), W = c ? {
240
+ onMouseEnter: z,
241
+ onMouseLeave: b,
242
+ onBlur: b
243
+ } : {}, H = j ?? (c ? z : void 0);
244
+ return /* @__PURE__ */ i(g.Portal, { children: /* @__PURE__ */ $(
245
+ g.Content,
246
+ {
247
+ ref: h,
248
+ side: A,
249
+ align: o,
250
+ sideOffset: 8,
251
+ collisionPadding: 8,
252
+ "aria-labelledby": a,
253
+ "aria-describedby": f,
254
+ className: ce({ size: r, className: n }),
255
+ "data-component": "popover",
256
+ "data-component-id": x,
257
+ ...W,
258
+ ...T,
259
+ onFocus: (d) => {
260
+ P.current = null, H == null || H(d);
261
+ },
262
+ onKeyDown: (d) => {
263
+ const l = d.currentTarget, v = l.ownerDocument, L = l.contains(v.activeElement);
264
+ u == null || u(d), B(d);
265
+ const w = !l.contains(v.activeElement);
266
+ d.key === "Tab" && L && w && (P.current = v);
267
+ },
268
+ onCloseAutoFocus: (d) => {
269
+ const l = P.current;
270
+ P.current = null;
271
+ const v = l == null ? void 0 : l.activeElement;
272
+ if (l && v && v !== l.body) {
273
+ d.preventDefault();
274
+ return;
275
+ }
276
+ I == null || I(d);
277
+ },
278
+ children: [
279
+ s,
280
+ t && /* @__PURE__ */ i(
281
+ g.Arrow,
282
+ {
283
+ width: 12,
284
+ height: 6,
285
+ className: "ds:fill-[var(--popover)]"
286
+ }
287
+ )
288
+ ]
289
+ }
290
+ ) });
291
+ }
292
+ );
293
+ U.displayName = "Popover.Content";
294
+ const Y = R(
295
+ ({ className: e }, o) => {
296
+ const { t: r } = ee("ui");
297
+ return /* @__PURE__ */ i(
298
+ "div",
299
+ {
300
+ className: [
301
+ "ds:absolute ds:top-[var(--spacing-sm)] ds:end-[var(--spacing-sm)]",
302
+ e
303
+ ].filter(Boolean).join(" "),
304
+ children: /* @__PURE__ */ i(g.Close, { asChild: !0, children: /* @__PURE__ */ i(
305
+ oe,
306
+ {
307
+ ref: o,
308
+ icon: /* @__PURE__ */ i(se, {}),
309
+ intent: "ghost",
310
+ size: "sm",
311
+ "aria-label": r("common.close", "Close")
312
+ }
313
+ ) })
314
+ }
315
+ );
316
+ }
317
+ );
318
+ Y.displayName = "Popover.Close";
319
+ const Z = R(
320
+ ({ as: e = "h3", className: o, ...r }, t) => {
321
+ const n = X(), { setHeadingId: s } = m(D);
322
+ return N(() => (s(n), () => s(void 0)), [n, s]), /* @__PURE__ */ i(
323
+ e,
324
+ {
325
+ ref: t,
326
+ id: n,
327
+ className: [
328
+ "type-title-item ds:leading-snug ds:break-words",
329
+ "ds:pe-[var(--spacing-xl)]",
330
+ o
331
+ ].filter(Boolean).join(" "),
332
+ ...r
333
+ }
334
+ );
335
+ }
336
+ );
337
+ Z.displayName = "Popover.Heading";
338
+ const _ = R(({ className: e, ...o }, r) => {
339
+ const t = X(), { setDescriptionId: n } = m(D);
340
+ return N(() => (n(t), () => n(void 0)), [t, n]), /* @__PURE__ */ i(
341
+ "div",
342
+ {
343
+ ref: r,
344
+ id: t,
345
+ className: [
346
+ "ds:text-[var(--muted-foreground)] type-body-sm ds:mt-[var(--spacing-xs)]",
347
+ e
348
+ ].filter(Boolean).join(" "),
349
+ ...o
350
+ }
351
+ );
352
+ });
353
+ _.displayName = "Popover.Description";
354
+ const Pe = Object.assign(S, {
355
+ Root: S,
356
+ Trigger: K,
357
+ Anchor: Q,
358
+ Content: U,
359
+ Close: Y,
360
+ Heading: Z,
361
+ Description: _
362
+ });
363
+ export {
364
+ Pe as P,
365
+ ie as p
366
+ };
367
+ //# sourceMappingURL=popover-BG75rYjN.js.map
@@ -1,11 +1,12 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as N, useRef as g, useState as _, useMemo as f } from "react";
3
- import * as y from "@radix-ui/react-radio-group";
2
+ import { forwardRef as N, useRef as f, useState as _, useMemo as y } from "react";
3
+ import * as h from "@radix-ui/react-radio-group";
4
4
  import { c } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as q } from "react-i18next";
6
- import { c as T } from "./compose-refs-C0k0tdqF.js";
7
- import { u as z } from "./registry-DvAUVLHh.js";
8
- import { u as A } from "./use-direction-Dp8h70PP.js";
6
+ import { c as D } from "./compose-refs-C0k0tdqF.js";
7
+ import { u as O } from "./use-select-on-arrow-Cr4iBuW5.js";
8
+ import { u as T } from "./registry-DvAUVLHh.js";
9
+ import { u as z } from "./use-direction-Dp8h70PP.js";
9
10
  const E = {
10
11
  id: "position-grid",
11
12
  capabilities: ["select_single"],
@@ -66,9 +67,9 @@ const E = {
66
67
  { value: "bottom-start", labelKey: "bottomStart" },
67
68
  { value: "bottom", labelKey: "bottom" },
68
69
  { value: "bottom-end", labelKey: "bottomEnd" }
69
- ], D = c(
70
+ ], H = c(
70
71
  "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-2xs)] ds:w-fit"
71
- ), H = c(
72
+ ), M = c(
72
73
  [
73
74
  "ds:group ds:relative ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
74
75
  "ds:aspect-square ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
@@ -83,41 +84,41 @@ const E = {
83
84
  "ds:data-[state=checked]:bg-[color-mix(in_srgb,var(--accent)_8%,transparent)]",
84
85
  "ds:data-[disabled]:border-muted"
85
86
  ].join(" ")
86
- ), M = c(
87
+ ), F = c(
87
88
  [
88
89
  "ds:size-2.5 ds:rounded-full ds:bg-muted-foreground",
89
90
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
90
91
  "ds:group-data-[state=checked]:bg-primary",
91
92
  "ds:group-data-[disabled]:bg-muted"
92
93
  ].join(" ")
93
- ), O = N(
94
+ ), U = N(
94
95
  function({
95
96
  value: t,
96
97
  defaultValue: u,
97
98
  onChange: a,
98
99
  positions: p,
99
- name: h,
100
+ name: K,
100
101
  disabled: V,
101
102
  id: i,
102
- className: k,
103
- "aria-label": K
104
- }, S) {
105
- const { t: s } = q("ui"), n = g(null), G = T(S, n), R = A(n), o = t !== void 0, [w, P] = _(
103
+ className: S,
104
+ "aria-label": k
105
+ }, w) {
106
+ const { t: s } = q("ui"), n = f(null), G = D(w, n), R = z(n), m = O(), o = t !== void 0, [P, x] = _(
106
107
  u ?? ""
107
- ), m = o ? t ?? "" : w, v = g(m);
108
- v.current = m;
109
- const x = f(
108
+ ), v = o ? t ?? "" : P, b = f(v);
109
+ b.current = v;
110
+ const j = y(
110
111
  () => p ?? L.map((e) => ({
111
112
  value: e.value,
112
113
  label: s(`positionGrid.${e.labelKey}`)
113
114
  })),
114
115
  [p, s]
115
- ), j = K ?? s("positionGrid.groupLabel"), b = (e) => {
116
- o || P(e), a == null || a(e);
117
- }, I = f(
116
+ ), A = k ?? s("positionGrid.groupLabel"), g = (e) => {
117
+ m.noteSelection(), o || x(e), a == null || a(e);
118
+ }, I = y(
118
119
  () => ({
119
- getValue: () => v.current,
120
- setValue: (e) => b(e),
120
+ getValue: () => b.current,
121
+ setValue: (e) => g(e),
121
122
  focus: () => {
122
123
  const e = n.current;
123
124
  if (!e) return;
@@ -130,29 +131,30 @@ const E = {
130
131
  // eslint-disable-next-line react-hooks/exhaustive-deps
131
132
  [o, a]
132
133
  );
133
- return z(E, I, i), /* @__PURE__ */ l(
134
- y.Root,
134
+ return T(E, I, i), /* @__PURE__ */ l(
135
+ h.Root,
135
136
  {
136
137
  ref: G,
137
138
  id: i,
138
- name: h,
139
+ name: K,
139
140
  dir: R,
140
141
  disabled: V,
141
142
  value: o ? t : void 0,
142
143
  defaultValue: o ? void 0 : u,
143
- onValueChange: b,
144
- "aria-label": j,
145
- className: D({ className: k }),
144
+ onValueChange: g,
145
+ onKeyDown: m.onKeyDown,
146
+ "aria-label": A,
147
+ className: H({ className: S }),
146
148
  "data-component": "position-grid",
147
149
  "data-component-id": i,
148
- children: x.map((e) => /* @__PURE__ */ l(
149
- y.Item,
150
+ children: j.map((e) => /* @__PURE__ */ l(
151
+ h.Item,
150
152
  {
151
153
  value: e.value,
152
154
  "aria-label": e.label,
153
155
  "data-option-id": e.value,
154
- className: H(),
155
- children: /* @__PURE__ */ l("span", { "aria-hidden": "true", className: M() })
156
+ className: M(),
157
+ children: /* @__PURE__ */ l("span", { "aria-hidden": "true", className: F() })
156
158
  },
157
159
  e.value
158
160
  ))
@@ -160,10 +162,10 @@ const E = {
160
162
  );
161
163
  }
162
164
  );
163
- O.displayName = "PositionGrid";
165
+ U.displayName = "PositionGrid";
164
166
  export {
165
- O as P,
166
- D as g,
167
+ U as P,
168
+ H as g,
167
169
  E as p
168
170
  };
169
- //# sourceMappingURL=position-grid-D2D5_Tze.js.map
171
+ //# sourceMappingURL=position-grid-CBB88EaH.js.map
@@ -9,7 +9,7 @@ import { D } from "./dropdown-menu-BQSNVp4x.js";
9
9
  import { E as st } from "./empty-state-gNG3qYCX.js";
10
10
  import { M as it } from "./map-view-CO2v0hfp.js";
11
11
  import { R as Ne } from "./rating-C1Vrmpsi.js";
12
- import { S as I } from "./sheet-CNFW8mYZ.js";
12
+ import { S as I } from "./sheet-8qsiMoUI.js";
13
13
  import { S as rt } from "./skeleton-B1KTdJ4N.js";
14
14
  import { S as ot } from "./spinner-CoflYlEx.js";
15
15
  import { B as $ } from "./badge-hnBt8o7n.js";
@@ -1742,4 +1742,4 @@ export {
1742
1742
  Ot as P,
1743
1743
  bt as p
1744
1744
  };
1745
- //# sourceMappingURL=practice-results-DxOgbPDy.js.map
1745
+ //# sourceMappingURL=practice-results-CfRkjzsI.js.map
@@ -4,9 +4,9 @@ import { c as Me } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Re } from "react-i18next";
5
5
  import { u as Te } from "./registry-DvAUVLHh.js";
6
6
  import { R as u } from "./radio-BBbMdbE_.js";
7
- import { R as j } from "./radio-group-BT97ty7o.js";
7
+ import { R as j } from "./radio-group-DicxWJXP.js";
8
8
  import { F as f } from "./form-field-Ani72sVY.js";
9
- import { D as V } from "./date-picker-wRAcq2lt.js";
9
+ import { D as V } from "./date-picker-BSZuKo13.js";
10
10
  import { N as H } from "./number-input-CVwI1ltI.js";
11
11
  import { S as Ce } from "./select-Ce5RMk93.js";
12
12
  import { S as je } from "./switch-D--x7n6h.js";
@@ -767,4 +767,4 @@ Ue.displayName = "PregnancyDating";
767
767
  export {
768
768
  Ue as P
769
769
  };
770
- //# sourceMappingURL=pregnancy-dating-R3q5n1Wh.js.map
770
+ //# sourceMappingURL=pregnancy-dating-BFzv9g1N.js.map
@@ -4,7 +4,7 @@ import { c as X } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Y } from "react-i18next";
5
5
  import { u as Z } from "./registry-DvAUVLHh.js";
6
6
  import { R as M } from "./radio-BBbMdbE_.js";
7
- import { R as ee } from "./radio-group-BT97ty7o.js";
7
+ import { R as ee } from "./radio-group-DicxWJXP.js";
8
8
  import { F as P } from "./form-field-Ani72sVY.js";
9
9
  import { N as I } from "./number-input-CVwI1ltI.js";
10
10
  import { C as B } from "./card-DMO2nkt4.js";
@@ -550,4 +550,4 @@ export {
550
550
  ie as p,
551
551
  oe as r
552
552
  };
553
- //# sourceMappingURL=pregnancy-weight-gain-DwmNklDU.js.map
553
+ //# sourceMappingURL=pregnancy-weight-gain-CUUrBTBo.js.map