@alfadocs/ui-kit 1.30.0 → 1.32.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 (233) hide show
  1. package/dist/_chunks/{address-fields-CZ0pEdEI.js → address-fields-jFfjxOQR.js} +3 -3
  2. package/dist/_chunks/{agenda-card-pdN49pMu.js → agenda-card-DVz3jwTf.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-BweO8pDo.js → agenda-tray-1oDWCJdB.js} +2 -2
  4. package/dist/_chunks/{ai-prompt-input-CrHr-5H8.js → ai-prompt-input-Dt7tpCBh.js} +2 -2
  5. package/dist/_chunks/{alia-sidebar-BWcWZivN.js → alia-sidebar-D18kp3p9.js} +3 -3
  6. package/dist/_chunks/{anamnesis-summary-rows-DMO3MWSt.js → anamnesis-summary-rows-BYgyp_i2.js} +6 -6
  7. package/dist/_chunks/{appointment-card-Dzr3GeVz.js → appointment-card-D-oj_ugh.js} +9 -7
  8. package/dist/_chunks/{appointment-timeline-DhHwmHo1.js → appointment-timeline-CymGHyIP.js} +2 -2
  9. package/dist/_chunks/{appointment-tray-4FUu_5NX.js → appointment-tray-DCk8gHod.js} +2 -2
  10. package/dist/_chunks/{audio-recorder-DXG6LTtO.js → audio-recorder-11wClczr.js} +2 -2
  11. package/dist/_chunks/{avatar-BNQNhoyL.js → avatar-CkDeQOSI.js} +37 -37
  12. package/dist/_chunks/{balance-badge-cell-CX6b0ML4.js → balance-badge-cell-DhBtFRoW.js} +4 -4
  13. package/dist/_chunks/{bishop-score-CJUVBfAu.js → bishop-score-CAl7C5hm.js} +2 -2
  14. package/dist/_chunks/{bmi-calculator-CcH6upht.js → bmi-calculator-Dwkih9a4.js} +3 -3
  15. package/dist/_chunks/{booking-AabCk7CI.js → booking-l6UGNiE1.js} +3 -3
  16. package/dist/_chunks/{calculator-dialog-12d3Sxaz.js → calculator-dialog-C0ixc3SU.js} +2 -2
  17. package/dist/_chunks/{calendar-CI9MINcR.js → calendar-Dgvl5L4T.js} +494 -438
  18. package/dist/_chunks/{calendar-event-card-66CEEWU6.js → calendar-event-card-DSh-69HT.js} +130 -122
  19. package/dist/_chunks/calendar-workspace-BX-zDyVR.js +9392 -0
  20. package/dist/_chunks/{care-plan-card-CQVboTn1.js → care-plan-card-CZW476Kg.js} +2 -2
  21. package/dist/_chunks/{care-plan-entry-card-jxHkzez5.js → care-plan-entry-card-BMUYagEw.js} +2 -2
  22. package/dist/_chunks/{chat-message-DBQu10rs.js → chat-message-C-8UU2av.js} +2 -2
  23. package/dist/_chunks/{clinical-note-card-BBgFd2nB.js → clinical-note-card-D2WTV2CO.js} +185 -188
  24. package/dist/_chunks/{color-picker-CU303VjY.js → color-picker-Bl5f0iK1.js} +28 -25
  25. package/dist/_chunks/{combobox-D7_NLE2Z.js → combobox-DnSdYssy.js} +216 -215
  26. package/dist/_chunks/{country-select-DzbPFktV.js → country-select-CfDNFG5c.js} +2 -2
  27. package/dist/_chunks/{data-table-DB5BiVQ0.js → data-table-DC96JJIq.js} +2 -2
  28. package/dist/_chunks/{dependent-selector-cJlJFAKD.js → dependent-selector-yTKKsuc9.js} +2 -2
  29. package/dist/_chunks/{dialog-UbKJCi1X.js → dialog-BJiLqhx6.js} +54 -46
  30. package/dist/_chunks/{document-preview-CDb-n_W7.js → document-preview-BrhMHNh8.js} +2 -2
  31. package/dist/_chunks/{due-date-calculator-BtgWeFqp.js → due-date-calculator-CxgK8vzt.js} +3 -3
  32. package/dist/_chunks/{entity-summary-B_vO5Ur4.js → entity-summary-5o768XLU.js} +2 -2
  33. package/dist/_chunks/{face-scheme-DA2vjqaM.js → face-scheme-l-CQyLs-.js} +2 -2
  34. package/dist/_chunks/{file-manager-Cd8V9IcZ.js → file-manager-CI2Qn8qW.js} +3 -3
  35. package/dist/_chunks/{gestational-age-calculator-KdMg9z9H.js → gestational-age-calculator-CZHVrERT.js} +4 -4
  36. package/dist/_chunks/{link-cell-renderer-tWEOv3Sc.js → link-cell-renderer-BEpMNtAa.js} +3 -3
  37. package/dist/_chunks/{marketplace-app-shell-C4AjQmvz.js → marketplace-app-shell-CK_ND8Tr.js} +2 -2
  38. package/dist/_chunks/{message-card-D8GB4FdF.js → message-card-BUMv16un.js} +2 -2
  39. package/dist/_chunks/{message-tray-CGIRQjx5.js → message-tray-0zsv27xX.js} +2 -2
  40. package/dist/_chunks/{muscle-scheme-BSJsI4-I.js → muscle-scheme-UVz_x4iE.js} +2 -2
  41. package/dist/_chunks/notes-panel-C4G-mhZ9.js +380 -0
  42. package/dist/_chunks/{operator-hero-BnFv-Uef.js → operator-hero-D7-iiFQ9.js} +2 -2
  43. package/dist/_chunks/{optical-prescription-BvwuqTpl.js → optical-prescription-DUJOhKz_.js} +2 -2
  44. package/dist/_chunks/{patient-details-DYAmq76G.js → patient-details-BGiawUHd.js} +5 -5
  45. package/dist/_chunks/{patient-summary-card-C9WBwct-.js → patient-summary-card--CT_gbaQ.js} +2 -2
  46. package/dist/_chunks/{periodontal-diagnosis-HrFsVi-C.js → periodontal-diagnosis-lEwA8wqX.js} +3 -3
  47. package/dist/_chunks/{practice-profile-hero-YQ7h2K4o.js → practice-profile-hero-DQyDvpJL.js} +2 -2
  48. package/dist/_chunks/{practice-results-CxIsU2YO.js → practice-results-DjEzPgAK.js} +2 -2
  49. package/dist/_chunks/{pregnancy-dating-m-c05DOI.js → pregnancy-dating-n5j5dAKy.js} +4 -4
  50. package/dist/_chunks/{pregnancy-weight-gain-CJwbs9W-.js → pregnancy-weight-gain-D5A8vPjj.js} +3 -3
  51. package/dist/_chunks/{province-select-BBc7s7vR.js → province-select-BaUnkg4S.js} +2 -2
  52. package/dist/_chunks/qr-code-DOJs4suh.js +750 -0
  53. package/dist/_chunks/radio-DNRe6H_8.js +193 -0
  54. package/dist/_chunks/radio-group-DyVBgnA3.js +297 -0
  55. package/dist/_chunks/{radiograph-panel.agent-ByM9M3qm.js → radiograph-panel.agent-o4jwEJPC.js} +2 -2
  56. package/dist/_chunks/{rich-text-editor-lSCiE0Zz.js → rich-text-editor-CQ7yZdG3.js} +3 -3
  57. package/dist/_chunks/select-CLSUnKjF.js +520 -0
  58. package/dist/_chunks/signature-request-vihDT8On.js +2232 -0
  59. package/dist/_chunks/{tabs-DqKtTIjZ.js → tabs-BnRaLT0y.js} +2 -2
  60. package/dist/_chunks/{tasks-panel-DPCNaRko.js → tasks-panel-DQuaVvl5.js} +2 -2
  61. package/dist/_chunks/{timeline-r-8IUoBS.js → timeline-Bs9Erxlo.js} +38 -36
  62. package/dist/_chunks/{tooth-scheme-C9jssOmy.js → tooth-scheme-Qe7LO5Di.js} +2 -2
  63. package/dist/_chunks/{unit-converter-C6jMjqL9.js → unit-converter-BTgU50gk.js} +2 -2
  64. package/dist/_chunks/{widget-picker-em4xGgv0.js → widget-picker-DvUkBemi.js} +2 -2
  65. package/dist/agent-catalog.json +366 -29
  66. package/dist/agent-i18n/en.json +27 -15
  67. package/dist/components/_shared/get-error-message.d.ts +3 -0
  68. package/dist/components/address-fields/index.js +1 -1
  69. package/dist/components/agenda-card/index.js +1 -1
  70. package/dist/components/agenda-tray/index.js +1 -1
  71. package/dist/components/ai-prompt-input/index.js +1 -1
  72. package/dist/components/appointment-card/index.js +2 -2
  73. package/dist/components/appointment-timeline/index.js +1 -1
  74. package/dist/components/audio-recorder/index.js +1 -1
  75. package/dist/components/avatar/avatar.d.ts +2 -0
  76. package/dist/components/avatar/index.js +1 -1
  77. package/dist/components/bishop-score/index.js +1 -1
  78. package/dist/components/bmi-calculator/index.js +1 -1
  79. package/dist/components/booking/index.js +1 -1
  80. package/dist/components/calculator-dialog/index.js +1 -1
  81. package/dist/components/calendar/calendar.d.ts +26 -2
  82. package/dist/components/calendar/index.js +1 -1
  83. package/dist/components/calendar-event-card/calendar-event-card.d.ts +9 -0
  84. package/dist/components/calendar-event-card/index.js +1 -1
  85. package/dist/components/care-plan-card/index.js +1 -1
  86. package/dist/components/care-plan-entry-card/index.js +1 -1
  87. package/dist/components/chat-message/index.js +1 -1
  88. package/dist/components/clinical-note-card/clinical-note-card.d.ts +16 -1
  89. package/dist/components/clinical-note-card/index.js +1 -1
  90. package/dist/components/color-picker/index.js +1 -1
  91. package/dist/components/combobox/combobox.d.ts +5 -0
  92. package/dist/components/combobox/index.js +1 -1
  93. package/dist/components/country-select/index.js +1 -1
  94. package/dist/components/data-table/index.js +2 -2
  95. package/dist/components/dependent-selector/index.js +1 -1
  96. package/dist/components/dialog/dialog.d.ts +9 -0
  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/face-scheme/index.js +1 -1
  102. package/dist/components/file-manager/index.js +1 -1
  103. package/dist/components/gestational-age-calculator/index.js +1 -1
  104. package/dist/components/message-card/index.js +1 -1
  105. package/dist/components/message-tray/index.js +1 -1
  106. package/dist/components/muscle-scheme/index.js +1 -1
  107. package/dist/components/notes-panel/index.d.ts +1 -1
  108. package/dist/components/notes-panel/index.js +1 -1
  109. package/dist/components/notes-panel/notes-panel.d.ts +24 -5
  110. package/dist/components/operator-hero/index.js +1 -1
  111. package/dist/components/optical-prescription/index.js +1 -1
  112. package/dist/components/patient-details/index.js +1 -1
  113. package/dist/components/patient-summary-card/index.js +1 -1
  114. package/dist/components/patient-table/index.js +1 -1
  115. package/dist/components/periodontal-diagnosis/index.js +1 -1
  116. package/dist/components/practice-profile-hero/index.js +1 -1
  117. package/dist/components/practice-results/index.js +1 -1
  118. package/dist/components/pregnancy-dating/index.js +1 -1
  119. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  120. package/dist/components/province-select/index.js +1 -1
  121. package/dist/components/qr-code/index.js +1 -1
  122. package/dist/components/qr-code/qr-encode.d.ts +14 -16
  123. package/dist/components/radio/index.js +1 -1
  124. package/dist/components/radio-group/index.js +2 -2
  125. package/dist/components/radio-group/radio-group-context.d.ts +4 -1
  126. package/dist/components/radio-group/radio-group.d.ts +13 -1
  127. package/dist/components/radio-group/radio.d.ts +24 -1
  128. package/dist/components/radiograph-panel/index.js +1 -1
  129. package/dist/components/rich-text-editor/index.js +1 -1
  130. package/dist/components/select/index.js +1 -1
  131. package/dist/components/select/select.d.ts +33 -0
  132. package/dist/components/skeleton-scheme/index.js +1 -1
  133. package/dist/components/tabs/index.js +1 -1
  134. package/dist/components/tasks-panel/index.js +1 -1
  135. package/dist/components/timeline/index.js +1 -1
  136. package/dist/components/timeline/timeline.d.ts +2 -0
  137. package/dist/components/tooth-scheme/index.js +1 -1
  138. package/dist/components/unit-converter/index.js +1 -1
  139. package/dist/components/widget-picker/index.js +1 -1
  140. package/dist/host-compat.css +7 -1
  141. package/dist/i18n/locales/ar.d.ts +118 -0
  142. package/dist/i18n/locales/ar.js +123 -5
  143. package/dist/i18n/locales/de.d.ts +128 -10
  144. package/dist/i18n/locales/de.js +135 -15
  145. package/dist/i18n/locales/el.d.ts +118 -0
  146. package/dist/i18n/locales/el.js +123 -5
  147. package/dist/i18n/locales/en.d.ts +118 -0
  148. package/dist/i18n/locales/en.js +123 -5
  149. package/dist/i18n/locales/es.d.ts +118 -0
  150. package/dist/i18n/locales/es.js +123 -5
  151. package/dist/i18n/locales/fr.d.ts +118 -0
  152. package/dist/i18n/locales/fr.js +122 -4
  153. package/dist/i18n/locales/hi.d.ts +118 -0
  154. package/dist/i18n/locales/hi.js +123 -5
  155. package/dist/i18n/locales/it.d.ts +128 -10
  156. package/dist/i18n/locales/it.js +133 -15
  157. package/dist/i18n/locales/ja.d.ts +118 -0
  158. package/dist/i18n/locales/ja.js +123 -5
  159. package/dist/i18n/locales/nl.d.ts +118 -0
  160. package/dist/i18n/locales/nl.js +123 -5
  161. package/dist/i18n/locales/pl.d.ts +118 -0
  162. package/dist/i18n/locales/pl.js +123 -5
  163. package/dist/i18n/locales/pt.d.ts +118 -0
  164. package/dist/i18n/locales/pt.js +123 -5
  165. package/dist/i18n/locales/ro.d.ts +118 -0
  166. package/dist/i18n/locales/ro.js +122 -4
  167. package/dist/i18n/locales/ru.d.ts +118 -0
  168. package/dist/i18n/locales/ru.js +123 -5
  169. package/dist/i18n/locales/sq.d.ts +118 -0
  170. package/dist/i18n/locales/sq.js +123 -5
  171. package/dist/i18n/locales/sv.d.ts +118 -0
  172. package/dist/i18n/locales/sv.js +123 -5
  173. package/dist/i18n/locales/tr.d.ts +118 -0
  174. package/dist/i18n/locales/tr.js +123 -5
  175. package/dist/i18n/locales/zh.d.ts +118 -0
  176. package/dist/i18n/locales/zh.js +123 -5
  177. package/dist/index.js +131 -130
  178. package/dist/locales/ar.json +123 -5
  179. package/dist/locales/de.json +133 -15
  180. package/dist/locales/el.json +123 -5
  181. package/dist/locales/en.json +123 -5
  182. package/dist/locales/es.json +123 -5
  183. package/dist/locales/fr.json +122 -4
  184. package/dist/locales/hi.json +123 -5
  185. package/dist/locales/it.json +133 -15
  186. package/dist/locales/ja.json +123 -5
  187. package/dist/locales/nl.json +123 -5
  188. package/dist/locales/pl.json +123 -5
  189. package/dist/locales/pt.json +123 -5
  190. package/dist/locales/ro.json +122 -4
  191. package/dist/locales/ru.json +123 -5
  192. package/dist/locales/sq.json +123 -5
  193. package/dist/locales/sv.json +123 -5
  194. package/dist/locales/tr.json +123 -5
  195. package/dist/locales/zh.json +123 -5
  196. package/dist/patterns/alia-assistant/index.js +1 -1
  197. package/dist/patterns/anamnesis/index.js +1 -1
  198. package/dist/patterns/calendar/calendar-appointment-details.d.ts +145 -0
  199. package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +32 -0
  200. package/dist/patterns/calendar/calendar-editor-hydration.d.ts +59 -0
  201. package/dist/patterns/calendar/calendar-notes-tool.d.ts +14 -0
  202. package/dist/patterns/calendar/calendar-patient-picker.d.ts +11 -0
  203. package/dist/patterns/calendar/calendar-series-scope-chooser.d.ts +18 -0
  204. package/dist/patterns/calendar/calendar-workspace.d.ts +26 -1
  205. package/dist/patterns/calendar/calendar-workspace.model.d.ts +8 -5
  206. package/dist/patterns/calendar/calendar.data.d.ts +66 -1
  207. package/dist/patterns/calendar/calendar.host.d.ts +2 -0
  208. package/dist/patterns/calendar/calendar.journey.d.ts +42 -7
  209. package/dist/patterns/calendar/calendar.model.d.ts +54 -5
  210. package/dist/patterns/calendar/calendar.sheets.d.ts +68 -15
  211. package/dist/patterns/calendar/calendar.surface.d.ts +12 -2
  212. package/dist/patterns/calendar/calendar.types.d.ts +29 -1
  213. package/dist/patterns/calendar/index.d.ts +9 -6
  214. package/dist/patterns/calendar/index.js +15 -14
  215. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  216. package/dist/patterns/signature-request/channel-meta.d.ts +27 -0
  217. package/dist/patterns/signature-request/index.d.ts +1 -1
  218. package/dist/patterns/signature-request/index.js +1 -1
  219. package/dist/patterns/signature-request/load-status.d.ts +13 -0
  220. package/dist/patterns/signature-request/person-grid.d.ts +32 -0
  221. package/dist/patterns/signature-request/required-documents.d.ts +127 -0
  222. package/dist/patterns/signature-request/signature-history.d.ts +57 -0
  223. package/dist/patterns/signature-request/signature-outcome.d.ts +29 -0
  224. package/dist/patterns/signature-request/signature-request.d.ts +390 -26
  225. package/dist/tokens.css +10 -2
  226. package/package.json +3 -1
  227. package/dist/_chunks/calendar-workspace-a84AHQwj.js +0 -7506
  228. package/dist/_chunks/notes-panel-CTNpsByN.js +0 -353
  229. package/dist/_chunks/qr-code-CPkEs5mG.js +0 -574
  230. package/dist/_chunks/radio-TWf9Q-mp.js +0 -108
  231. package/dist/_chunks/radio-group-rXDJADzW.js +0 -175
  232. package/dist/_chunks/select-Bi8zril7.js +0 -471
  233. package/dist/_chunks/signature-request-C-IsbkPf.js +0 -417
@@ -1,20 +1,20 @@
1
- import { jsx as t, jsxs as S } from "react/jsx-runtime";
2
- import { forwardRef as ke, useContext as Ke, useMemo as B, useState as oe, useRef as g, useEffect as I, useCallback as Oe } from "react";
3
- import * as _ from "@radix-ui/react-popover";
4
- import { R as Te, _ as c, P as $e } from "./index-4xgbg-sn.js";
5
- import { c as F } from "./index-D2ZczOXr.js";
6
- import { useTranslation as Be } from "react-i18next";
7
- import { u as Ue, F as He } from "./form-field-context-B3APVHKx.js";
8
- import { c as Ge } from "./compose-refs-C0k0tdqF.js";
9
- import { n as U } from "./normalize-diacritics-BNGbFNlJ.js";
10
- import { g as Me } from "./group-options-BvKhQ3xb.js";
11
- import { u as Le } from "./use-controllable-state-BiY4xTzM.js";
12
- import { u as Qe } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
13
- import { I as Xe, a as H, d as G, c as We } from "./input-surface-xyERuLU_.js";
14
- import { u as Je } from "./registry-DvAUVLHh.js";
15
- import { X as Ye } from "./x-B5YnXwCz.js";
16
- import { C as Ze } from "./check-DrFSN__t.js";
17
- const et = {
1
+ import { jsx as t, jsxs as R } from "react/jsx-runtime";
2
+ import { forwardRef as Ke, useContext as Oe, useMemo as U, useState as re, useRef as g, useEffect as F, useCallback as Te } from "react";
3
+ import * as E from "@radix-ui/react-popover";
4
+ import { R as $e, _ as u, P as Be } from "./index-4xgbg-sn.js";
5
+ import { c as V } from "./index-D2ZczOXr.js";
6
+ import { useTranslation as Ue } from "react-i18next";
7
+ import { u as He, F as Ge } from "./form-field-context-B3APVHKx.js";
8
+ import { c as Me } from "./compose-refs-C0k0tdqF.js";
9
+ import { n as H } from "./normalize-diacritics-BNGbFNlJ.js";
10
+ import { g as Le } from "./group-options-BvKhQ3xb.js";
11
+ import { u as Xe } from "./use-controllable-state-BiY4xTzM.js";
12
+ import { u as We } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
13
+ import { I as Je, a as G, d as M, c as Ye } from "./input-surface-xyERuLU_.js";
14
+ import { u as Ze } from "./registry-DvAUVLHh.js";
15
+ import { X as Qe } from "./x-B5YnXwCz.js";
16
+ import { C as et } from "./check-DrFSN__t.js";
17
+ const tt = {
18
18
  id: "combobox",
19
19
  // Persisted single choice (value state + set_value) → select_single + set_value,
20
20
  // plus type-to-filter and open/close of the option list.
@@ -58,8 +58,8 @@ const et = {
58
58
  descriptionKey: "ui.agent.combobox.actions.setValue",
59
59
  description: "Set the selected value programmatically.",
60
60
  examples: [{ args: { value: "it" }, note: 'Select the "it" option.' }],
61
- invoke: (s, a) => {
62
- s.setValue(a.value);
61
+ invoke: (s, n) => {
62
+ s.setValue(n.value);
63
63
  }
64
64
  },
65
65
  apply_filter: {
@@ -76,8 +76,8 @@ const et = {
76
76
  idempotent: !0,
77
77
  descriptionKey: "ui.agent.combobox.actions.applyFilter",
78
78
  description: "Set the filter query for the option list.",
79
- invoke: (s, a) => {
80
- s.setQuery(a.query);
79
+ invoke: (s, n) => {
80
+ s.setQuery(n.query);
81
81
  }
82
82
  },
83
83
  clear_selection: {
@@ -121,7 +121,7 @@ const et = {
121
121
  description: "Each option emits its value as data-option-id."
122
122
  }
123
123
  }
124
- }, tt = F(
124
+ }, st = V(
125
125
  [
126
126
  "ds:peer ds:w-full ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground",
127
127
  "ds:outline-none ds:border-0",
@@ -139,26 +139,26 @@ const et = {
139
139
  size: "md"
140
140
  }
141
141
  }
142
- ), st = F(
142
+ ), ot = V(
143
143
  [
144
144
  "ds:group ds:relative ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:w-full",
145
- We
145
+ Ye
146
146
  ].join(" "),
147
147
  {
148
148
  variants: {
149
149
  size: {
150
- sm: `${H.sm} ${G.sm}`,
151
- md: `${H.md} ${G.md}`,
152
- lg: `${H.lg} ${G.lg}`
150
+ sm: `${G.sm} ${M.sm}`,
151
+ md: `${G.md} ${M.md}`,
152
+ lg: `${G.lg} ${M.lg}`
153
153
  },
154
- tone: Xe
154
+ tone: Je
155
155
  },
156
156
  defaultVariants: {
157
157
  size: "md",
158
158
  tone: "default"
159
159
  }
160
160
  }
161
- ), ot = F(
161
+ ), rt = V(
162
162
  [
163
163
  "ds:z-[var(--z-popover)] ds:overflow-hidden ds:w-[var(--radix-popover-trigger-width)]",
164
164
  "ds:rounded-[var(--radius-md)] ds:border ds:border-border ds:bg-background ds:text-foreground",
@@ -170,7 +170,7 @@ const et = {
170
170
  "ds:data-[side=top]:slide-in-from-bottom-2",
171
171
  "ds:motion-reduce:animate-none"
172
172
  ].join(" ")
173
- ), ne = F(
173
+ ), ie = V(
174
174
  [
175
175
  "ds:relative ds:flex ds:cursor-pointer ds:items-center ds:gap-[var(--spacing-sm)]",
176
176
  "ds:rounded-[var(--radius-sm)]",
@@ -192,211 +192,212 @@ const et = {
192
192
  size: "md"
193
193
  }
194
194
  }
195
- ), nt = [
195
+ ), it = [
196
196
  "ds:ps-3 ds:pe-3 ds:py-1.5",
197
197
  "type-eyebrow ds:text-muted-foreground"
198
- ].join(" "), rt = "ds:max-h-[18rem] ds:overflow-y-auto ds:p-[var(--spacing-xs)]", at = "ds:ps-3 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", it = {
198
+ ].join(" "), at = "ds:max-h-[18rem] ds:overflow-y-auto ds:p-[var(--spacing-xs)]", nt = "ds:ps-3 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", dt = {
199
199
  sm: "ds:size-3.5",
200
200
  md: "ds:size-4",
201
201
  lg: "ds:size-5"
202
202
  };
203
- function dt({
203
+ function lt({
204
204
  search: s,
205
- label: a,
206
- iconClass: E,
207
- size: V,
208
- onSelect: j
205
+ label: n,
206
+ iconClass: C,
207
+ size: j,
208
+ onSelect: A
209
209
  }) {
210
- return $e((q) => q.filtered.count) > 0 ? null : /* @__PURE__ */ S(
211
- c.Item,
210
+ return Be((q) => q.filtered.count) > 0 ? null : /* @__PURE__ */ R(
211
+ u.Item,
212
212
  {
213
213
  value: `__combobox-create__${s}`,
214
214
  keywords: [],
215
215
  forceMount: !0,
216
- onSelect: () => j(s),
217
- className: ne({ size: V }),
216
+ onSelect: () => A(s),
217
+ className: ie({ size: j }),
218
218
  children: [
219
219
  /* @__PURE__ */ t(
220
220
  "span",
221
221
  {
222
222
  "aria-hidden": "true",
223
- className: `ds:inline-flex ds:items-center ds:justify-center ${E}`
223
+ className: `ds:inline-flex ds:items-center ds:justify-center ${C}`
224
224
  }
225
225
  ),
226
- /* @__PURE__ */ t("span", { className: "ds:flex-1 ds:truncate", children: a })
226
+ /* @__PURE__ */ t("span", { className: "ds:flex-1 ds:truncate", children: n })
227
227
  ]
228
228
  }
229
229
  );
230
230
  }
231
- const re = ke(
231
+ const ae = Ke(
232
232
  function({
233
- options: a,
234
- value: E,
235
- defaultValue: V,
236
- onValueChange: j,
237
- placeholder: M,
233
+ options: n,
234
+ value: C,
235
+ defaultValue: j,
236
+ onValueChange: A,
237
+ placeholder: L,
238
238
  clearable: q = !1,
239
- disabled: ae,
240
- readOnly: ie,
241
- required: de,
242
- name: le,
243
- id: A,
244
- size: v = "md",
245
- tone: ce = "default",
246
- filter: D,
247
- allowCreate: ue = !1,
248
- onCreate: P,
249
- open: L,
250
- onOpenChange: u,
251
- emptyMessage: me,
252
- className: pe,
253
- "aria-label": Q,
254
- "aria-invalid": fe,
255
- "aria-describedby": be,
239
+ disabled: ne,
240
+ readOnly: de,
241
+ required: le,
242
+ name: ce,
243
+ id: D,
244
+ size: x = "md",
245
+ tone: ue = "default",
246
+ filter: P,
247
+ allowCreate: me = !1,
248
+ onCreate: k,
249
+ open: X,
250
+ onOpenChange: m,
251
+ onQueryChange: r,
252
+ emptyMessage: pe,
253
+ className: fe,
254
+ "aria-label": W,
255
+ "aria-invalid": be,
256
+ "aria-describedby": ve,
256
257
  autoComplete: he
257
258
  }, ge) {
258
- const { t: y } = Be(), b = Ue(), x = Ke(He) !== null, [ve, N] = Le({
259
- value: E,
260
- defaultValue: V ?? "",
261
- onChange: j
262
- }), m = ve ?? "", k = B(
263
- () => a.find((e) => e.value === m),
264
- [a, m]
265
- ), C = (k == null ? void 0 : k.label) ?? "", [p, i] = oe(C), [ye, X] = oe(!1), z = L !== void 0, d = z ? L : ye, R = g(!1), w = g(null), W = g(null);
266
- Qe(() => {
259
+ const { t: y } = Ue(), v = He(), S = Oe(Ge) !== null, [xe, w] = Xe({
260
+ value: C,
261
+ defaultValue: j ?? "",
262
+ onChange: A
263
+ }), p = xe ?? "", K = U(
264
+ () => n.find((e) => e.value === p),
265
+ [n, p]
266
+ ), N = (K == null ? void 0 : K.label) ?? "", [f, d] = re(N), [ye, J] = re(!1), I = X !== void 0, l = I ? X : ye, z = g(!1), _ = g(null), Y = g(null);
267
+ We(() => {
267
268
  var e;
268
- (e = w.current) == null || e.setAttribute("aria-expanded", String(d));
269
- }), I(() => {
270
- d || i(C);
271
- }, [C, d]);
272
- const xe = A ?? (x ? b.id : void 0), K = (x ? b.disabled : !1) || !!ae, h = !!ie, Ce = (x ? b.required : !1) || !!de, J = x ? b.invalid : !!fe, Se = J ? "error" : ce, Ne = x && b.describedBy ? b.describedBy : be, Y = M ?? y("inputs.combobox.placeholder", "Search…"), ze = B(
273
- () => (e, o, r) => {
274
- if (R.current) return 1;
275
- const f = U(e), n = U(o), $ = r == null ? void 0 : r.map(U);
276
- return D ? D(f, n) : Te(
277
- f,
278
- n,
279
- $
269
+ (e = _.current) == null || e.setAttribute("aria-expanded", String(l));
270
+ }), F(() => {
271
+ l || d(N);
272
+ }, [N, l]);
273
+ const Se = D ?? (S ? v.id : void 0), O = (S ? v.disabled : !1) || !!ne, h = !!de, Ne = (S ? v.required : !1) || !!le, Z = S ? v.invalid : !!be, ze = Z ? "error" : ue, Re = S && v.describedBy ? v.describedBy : ve, Q = L ?? y("inputs.combobox.placeholder", "Search…"), we = U(
274
+ () => (e, o, a) => {
275
+ if (z.current) return 1;
276
+ const b = H(e), i = H(o), B = a == null ? void 0 : a.map(H);
277
+ return P ? P(b, i) : $e(
278
+ b,
279
+ i,
280
+ B
280
281
  );
281
282
  },
282
- [D]
283
- ), Z = (e) => {
284
- N(e);
285
- }, l = (e) => {
286
- z || X(e), u == null || u(e);
287
- }, Re = (e) => {
288
- const o = a.find((r) => r.value === e);
289
- Z(e), i((o == null ? void 0 : o.label) ?? ""), l(!1);
290
- }, we = (e) => {
291
- P == null || P(e), l(!1);
283
+ [P]
284
+ ), ee = (e) => {
285
+ w(e);
286
+ }, c = (e) => {
287
+ I || J(e), m == null || m(e);
292
288
  }, Ie = (e) => {
293
- h || (i(e), !d && e.length > 0 && !R.current && l(!0));
294
- }, _e = () => {
295
- !K && !h && l(!0);
296
- }, Fe = () => {
297
- R.current = !0;
289
+ const o = n.find((a) => a.value === e);
290
+ ee(e), d((o == null ? void 0 : o.label) ?? ""), c(!1);
291
+ }, _e = (e) => {
292
+ k == null || k(e), c(!1);
293
+ }, Fe = (e) => {
294
+ h || (d(e), z.current || r == null || r(e), !l && e.length > 0 && !z.current && c(!0));
298
295
  }, Ee = () => {
296
+ !O && !h && c(!0);
297
+ }, Ve = () => {
298
+ z.current = !0;
299
+ }, Ce = () => {
299
300
  var o;
300
- if (R.current = !1, h) return;
301
- const e = ((o = w.current) == null ? void 0 : o.value) ?? "";
302
- i(e), e.length > 0 && l(!0);
303
- }, Ve = (e) => {
304
- e.nativeEvent.isComposing || e.key === "Escape" && d && (e.preventDefault(), l(!1), i(C));
301
+ if (z.current = !1, h) return;
302
+ const e = ((o = _.current) == null ? void 0 : o.value) ?? "";
303
+ d(e), r == null || r(e), e.length > 0 && c(!0);
305
304
  }, je = (e) => {
305
+ e.nativeEvent.isComposing || e.key === "Escape" && l && (e.preventDefault(), c(!1), d(N));
306
+ }, Ae = (e) => {
306
307
  var o;
307
- e.preventDefault(), e.stopPropagation(), Z(""), i(""), l(!0), (o = w.current) == null || o.focus();
308
+ e.preventDefault(), e.stopPropagation(), ee(""), d(""), r == null || r(""), c(!0), (o = _.current) == null || o.focus();
308
309
  }, qe = (e) => {
309
- h && e || (l(e), e || i(C));
310
- }, ee = g(m);
311
- I(() => {
312
- ee.current = m;
313
- }, [m]);
314
- const te = g(p);
315
- I(() => {
310
+ h && e || (c(e), e || d(N));
311
+ }, te = g(p);
312
+ F(() => {
316
313
  te.current = p;
317
314
  }, [p]);
318
- const se = g(d);
319
- I(() => {
320
- se.current = d;
321
- }, [d]);
322
- const O = Oe(
315
+ const se = g(f);
316
+ F(() => {
317
+ se.current = f;
318
+ }, [f]);
319
+ const oe = g(l);
320
+ F(() => {
321
+ oe.current = l;
322
+ }, [l]);
323
+ const T = Te(
323
324
  (e) => {
324
- z || X(e), u == null || u(e);
325
+ I || J(e), m == null || m(e);
325
326
  },
326
- [z, u]
327
- ), Ae = B(
327
+ [I, m]
328
+ ), De = U(
328
329
  () => ({
329
- getValue: () => ee.current || null,
330
- getQuery: () => te.current,
331
- getIsOpen: () => se.current,
330
+ getValue: () => te.current || null,
331
+ getQuery: () => se.current,
332
+ getIsOpen: () => oe.current,
332
333
  setValue: (e) => {
333
334
  const o = e ?? "";
334
- N(o);
335
- const r = a.find((f) => f.value === o);
336
- i((r == null ? void 0 : r.label) ?? "");
335
+ w(o);
336
+ const a = n.find((b) => b.value === o);
337
+ d((a == null ? void 0 : a.label) ?? "");
337
338
  },
338
339
  setQuery: (e) => {
339
- i(e);
340
+ d(e), r == null || r(e);
340
341
  },
341
342
  clear: () => {
342
- N(""), i("");
343
+ w(""), d(""), r == null || r("");
343
344
  },
344
- open: () => O(!0),
345
- close: () => O(!1)
345
+ open: () => T(!0),
346
+ close: () => T(!1)
346
347
  }),
347
- [N, a, O]
348
+ [w, n, T, r]
348
349
  );
349
- Je(et, Ae, A);
350
- const De = q && !!m && !K && !h, Pe = Me(a), T = it[v];
351
- return /* @__PURE__ */ t(_.Root, { open: d, onOpenChange: qe, children: /* @__PURE__ */ S(
352
- c,
350
+ Ze(tt, De, D);
351
+ const Pe = q && !!p && !O && !h, ke = Le(n), $ = dt[x];
352
+ return /* @__PURE__ */ t(E.Root, { open: l, onOpenChange: qe, children: /* @__PURE__ */ R(
353
+ u,
353
354
  {
354
- filter: ze,
355
+ filter: we,
355
356
  shouldFilter: !0,
356
357
  loop: !0,
357
- label: Q ?? Y,
358
+ label: W ?? Q,
358
359
  className: "ds:w-full",
359
360
  children: [
360
- /* @__PURE__ */ t(_.Anchor, { asChild: !0, children: /* @__PURE__ */ S(
361
+ /* @__PURE__ */ t(E.Anchor, { asChild: !0, children: /* @__PURE__ */ R(
361
362
  "div",
362
363
  {
363
- ref: W,
364
- className: st({
365
- size: v,
366
- tone: Se,
367
- className: pe
364
+ ref: Y,
365
+ className: ot({
366
+ size: x,
367
+ tone: ze,
368
+ className: fe
368
369
  }),
369
370
  "data-component": "combobox",
370
- "data-component-id": A,
371
+ "data-component-id": D,
371
372
  children: [
372
373
  /* @__PURE__ */ t(
373
- c.Input,
374
+ u.Input,
374
375
  {
375
- ref: Ge(ge, w),
376
- value: p,
377
- onValueChange: Ie,
378
- id: xe,
379
- name: le,
380
- placeholder: Y,
381
- disabled: K,
376
+ ref: Me(ge, _),
377
+ value: f,
378
+ onValueChange: Fe,
379
+ id: Se,
380
+ name: ce,
381
+ placeholder: Q,
382
+ disabled: O,
382
383
  readOnly: h,
383
- required: Ce,
384
+ required: Ne,
384
385
  autoComplete: he,
385
- "aria-describedby": Ne,
386
- "aria-invalid": J || void 0,
387
- onFocus: _e,
388
- onKeyDown: Ve,
389
- onCompositionStart: Fe,
390
- onCompositionEnd: Ee,
391
- className: tt({ size: v })
386
+ "aria-describedby": Re,
387
+ "aria-invalid": Z || void 0,
388
+ onFocus: Ee,
389
+ onKeyDown: je,
390
+ onCompositionStart: Ve,
391
+ onCompositionEnd: Ce,
392
+ className: st({ size: x })
392
393
  }
393
394
  ),
394
- De ? /* @__PURE__ */ t(
395
+ Pe ? /* @__PURE__ */ t(
395
396
  "button",
396
397
  {
397
398
  type: "button",
398
399
  "aria-label": y("inputs.combobox.clear", "Clear selection"),
399
- onClick: je,
400
+ onClick: Ae,
400
401
  onPointerDown: (e) => e.stopPropagation(),
401
402
  className: [
402
403
  "ds:inline-flex ds:items-center ds:justify-center ds:rounded-[var(--radius-sm)]",
@@ -406,52 +407,52 @@ const re = ke(
406
407
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
407
408
  "ds:size-4"
408
409
  ].join(" "),
409
- children: /* @__PURE__ */ t(Ye, { "aria-hidden": "true", className: "ds:size-3.5" })
410
+ children: /* @__PURE__ */ t(Qe, { "aria-hidden": "true", className: "ds:size-3.5" })
410
411
  }
411
412
  ) : null
412
413
  ]
413
414
  }
414
415
  ) }),
415
- /* @__PURE__ */ t(_.Portal, { forceMount: !0, children: /* @__PURE__ */ t(
416
- _.Content,
416
+ /* @__PURE__ */ t(E.Portal, { forceMount: !0, children: /* @__PURE__ */ t(
417
+ E.Content,
417
418
  {
418
419
  forceMount: !0,
419
- hidden: !d,
420
- "aria-label": Q ?? y("inputs.combobox.popupLabel", "Options"),
420
+ hidden: !l,
421
+ "aria-label": W ?? y("inputs.combobox.popupLabel", "Options"),
421
422
  onOpenAutoFocus: (e) => e.preventDefault(),
422
423
  onCloseAutoFocus: (e) => e.preventDefault(),
423
424
  onInteractOutside: (e) => {
424
- var r;
425
+ var a;
425
426
  const o = e.target;
426
- o && ((r = W.current) != null && r.contains(o)) && e.preventDefault();
427
+ o && ((a = Y.current) != null && a.contains(o)) && e.preventDefault();
427
428
  },
428
429
  sideOffset: 4,
429
430
  align: "start",
430
- className: ot(),
431
- children: /* @__PURE__ */ S(c.List, { className: rt, children: [
432
- /* @__PURE__ */ t(c.Empty, { className: at, children: me ?? y("inputs.combobox.empty", "No results found") }),
433
- Pe.map(({ group: e, items: o }, r) => {
434
- const f = o.map((n) => {
435
- const $ = n.value === m;
436
- return /* @__PURE__ */ S(
437
- c.Item,
431
+ className: rt(),
432
+ children: /* @__PURE__ */ R(u.List, { className: at, children: [
433
+ /* @__PURE__ */ t(u.Empty, { className: nt, children: /* @__PURE__ */ t("div", { role: "option", "aria-selected": !1, "aria-disabled": "true", children: pe ?? y("inputs.combobox.empty", "No results found") }) }),
434
+ ke.map(({ group: e, items: o }, a) => {
435
+ const b = o.map((i) => {
436
+ const B = i.value === p;
437
+ return /* @__PURE__ */ R(
438
+ u.Item,
438
439
  {
439
- value: n.value,
440
- "data-option-id": n.value,
441
- keywords: [n.label],
442
- disabled: n.disabled,
443
- onSelect: Re,
444
- className: ne({ size: v }),
440
+ value: i.value,
441
+ "data-option-id": i.value,
442
+ keywords: [i.label],
443
+ disabled: i.disabled,
444
+ onSelect: Ie,
445
+ className: ie({ size: x }),
445
446
  children: [
446
447
  /* @__PURE__ */ t(
447
448
  "span",
448
449
  {
449
450
  "aria-hidden": "true",
450
- className: `ds:inline-flex ds:items-center ds:justify-center ${T}`,
451
- children: $ ? /* @__PURE__ */ t(Ze, { className: T }) : null
451
+ className: `ds:inline-flex ds:items-center ds:justify-center ${$}`,
452
+ children: B ? /* @__PURE__ */ t(et, { className: $ }) : null
452
453
  }
453
454
  ),
454
- n.startAdornment ? (
455
+ i.startAdornment ? (
455
456
  // Decorative by contract — the option's accessible
456
457
  // name comes from its label. Hide so a text-bearing
457
458
  // adornment can't leak into the computed name.
@@ -460,44 +461,44 @@ const re = ke(
460
461
  {
461
462
  "aria-hidden": "true",
462
463
  className: "ds:inline-flex ds:items-center ds:shrink-0",
463
- children: n.startAdornment
464
+ children: i.startAdornment
464
465
  }
465
466
  )
466
467
  ) : null,
467
- /* @__PURE__ */ t("span", { className: "ds:flex-1 ds:truncate", children: n.label }),
468
- n.description ? /* @__PURE__ */ t("span", { className: "type-meta ds:text-muted-foreground", children: n.description }) : null,
469
- n.endContent ? (
468
+ /* @__PURE__ */ t("span", { className: "ds:flex-1 ds:truncate", children: i.label }),
469
+ i.description ? /* @__PURE__ */ t("span", { className: "type-meta ds:text-muted-foreground", children: i.description }) : null,
470
+ i.endContent ? (
470
471
  // Deliberately NOT aria-hidden — unlike
471
472
  // `startAdornment`, this slot carries meaning
472
473
  // (a price, a count) and must reach the
473
474
  // option's accessible name. `ms-auto` pins it
474
475
  // to the inline-end and flips under RTL.
475
- /* @__PURE__ */ t("span", { className: "ds:inline-flex ds:items-center ds:ms-auto ds:shrink-0", children: n.endContent })
476
+ /* @__PURE__ */ t("span", { className: "ds:inline-flex ds:items-center ds:ms-auto ds:shrink-0", children: i.endContent })
476
477
  ) : null
477
478
  ]
478
479
  },
479
- n.value
480
+ i.value
480
481
  );
481
482
  });
482
483
  return e ? /* @__PURE__ */ t(
483
- c.Group,
484
+ u.Group,
484
485
  {
485
- heading: /* @__PURE__ */ t("span", { className: nt, children: e }),
486
- children: f
486
+ heading: /* @__PURE__ */ t("span", { className: it, children: e }),
487
+ children: b
487
488
  },
488
489
  `group-${e}`
489
- ) : /* @__PURE__ */ t(c.Group, { children: f }, `group-${r}`);
490
+ ) : /* @__PURE__ */ t(u.Group, { children: b }, `group-${a}`);
490
491
  }),
491
- ue && p.length > 0 ? /* @__PURE__ */ t(
492
- dt,
492
+ me && f.length > 0 ? /* @__PURE__ */ t(
493
+ lt,
493
494
  {
494
- search: p,
495
+ search: f,
495
496
  label: y("inputs.combobox.create", 'Create "{{value}}"', {
496
- value: p
497
+ value: f
497
498
  }),
498
- iconClass: T,
499
- size: v,
500
- onSelect: we
499
+ iconClass: $,
500
+ size: x,
501
+ onSelect: _e
501
502
  }
502
503
  ) : null
503
504
  ] })
@@ -508,14 +509,14 @@ const re = ke(
508
509
  ) });
509
510
  }
510
511
  );
511
- re.displayName = "Combobox";
512
- const zt = re;
512
+ ae.displayName = "Combobox";
513
+ const wt = ae;
513
514
  export {
514
- zt as C,
515
- ot as a,
516
- tt as b,
517
- et as c,
518
- ne as d,
519
- st as e
515
+ wt as C,
516
+ rt as a,
517
+ st as b,
518
+ tt as c,
519
+ ie as d,
520
+ ot as e
520
521
  };
521
- //# sourceMappingURL=combobox-D7_NLE2Z.js.map
522
+ //# sourceMappingURL=combobox-DnSdYssy.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsx as O } from "react/jsx-runtime";
2
2
  import { forwardRef as P, useMemo as n, useCallback as x, useRef as aa, useEffect as ea } from "react";
3
3
  import { useTranslation as ra } from "react-i18next";
4
- import { C as ia } from "./combobox-D7_NLE2Z.js";
4
+ import { C as ia } from "./combobox-DnSdYssy.js";
5
5
  import { h as ca, a as sa } from "./flag-DVBE6DnB.js";
6
6
  import { u as ta } from "./use-controllable-state-BiY4xTzM.js";
7
7
  import { u as oa } from "./registry-DvAUVLHh.js";
@@ -706,4 +706,4 @@ export {
706
706
  ua as c,
707
707
  Aa as r
708
708
  };
709
- //# sourceMappingURL=country-select-DzbPFktV.js.map
709
+ //# sourceMappingURL=country-select-CfDNFG5c.js.map
@@ -24,7 +24,7 @@ import { F as Ke } from "./file-text-5yv6r2ls.js";
24
24
  import { D as ye } from "./download-CfYKJO_j.js";
25
25
  import { F as Ut } from "./file-spreadsheet-DmwyfV4O.js";
26
26
  import Xt from "i18next";
27
- import { S as Qt } from "./select-Bi8zril7.js";
27
+ import { S as Qt } from "./select-CLSUnKjF.js";
28
28
  import { u as Jt } from "./registry-DvAUVLHh.js";
29
29
  import { u as Zt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
30
30
  import { u as Yt } from "./use-theme-CAuo6EYT.js";
@@ -1820,4 +1820,4 @@ export {
1820
1820
  fa as g,
1821
1821
  W as i
1822
1822
  };
1823
- //# sourceMappingURL=data-table-DB5BiVQ0.js.map
1823
+ //# sourceMappingURL=data-table-DC96JJIq.js.map