@alfadocs/ui-kit 1.12.6 → 1.14.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 (182) hide show
  1. package/dist/_chunks/actions-cell-renderer-yy03OgRL.js +137 -0
  2. package/dist/_chunks/{address-fields-CZP4Wncx.js → address-fields-CZ0pEdEI.js} +4 -4
  3. package/dist/_chunks/{ai-prompt-input-DnbfEJnr.js → ai-prompt-input-CrHr-5H8.js} +2 -2
  4. package/dist/_chunks/{anamnesis-summary-rows-BfhxWPO3.js → anamnesis-summary-rows-CRWO8x8g.js} +4 -4
  5. package/dist/_chunks/{audio-recorder-EWBCNIsd.js → audio-recorder-DXG6LTtO.js} +2 -2
  6. package/dist/_chunks/{autocomplete-BrONKN8l.js → autocomplete-MpBhz-fG.js} +86 -74
  7. package/dist/_chunks/{balance-badge-cell-7L6nzB29.js → balance-badge-cell-CgkxYO96.js} +9 -8
  8. package/dist/_chunks/{bishop-score-Cnu0xs-z.js → bishop-score-CJUVBfAu.js} +2 -2
  9. package/dist/_chunks/{booking-CBHKdsZl.js → booking-DQbo6mQF.js} +609 -591
  10. package/dist/_chunks/{calendar-B4Gnyu1C.js → calendar-CHT9Rm3M.js} +2 -2
  11. package/dist/_chunks/{calendar-event-card-Bjdbik8G.js → calendar-event-card-BjdHZaqz.js} +18 -14
  12. package/dist/_chunks/calendar-plus-BFrIRE4r.js +19 -0
  13. package/dist/_chunks/calendar-workspace-DI49_t6t.js +7429 -0
  14. package/dist/_chunks/{care-plan-card-aDN4oem9.js → care-plan-card-D-FMfDKH.js} +2 -2
  15. package/dist/_chunks/{care-plan-entry-card-BEhANdBE.js → care-plan-entry-card-Bvw_9T-d.js} +2 -2
  16. package/dist/_chunks/{care-plan-header-CkpPyQqG.js → care-plan-header-B5CBE0zu.js} +2 -2
  17. package/dist/_chunks/{city-input-towzBenY.js → city-input-DaQc-Hbj.js} +2 -2
  18. package/dist/_chunks/clipboard-list-rSzfIYZB.js +25 -0
  19. package/dist/_chunks/{color-picker-oZ6zYks8.js → color-picker-CU303VjY.js} +4 -2
  20. package/dist/_chunks/{combobox-DiMLItyu.js → combobox-D7_NLE2Z.js} +89 -81
  21. package/dist/_chunks/{contact-profile-card-BMIBr5s9.js → contact-profile-card-BZqi8Hck.js} +38 -36
  22. package/dist/_chunks/{country-select-UEF9BEeQ.js → country-select-DzbPFktV.js} +2 -2
  23. package/dist/_chunks/data-table-DC5rO3Ty.js +1817 -0
  24. package/dist/_chunks/{document-preview-oyx9RhCo.js → document-preview-CDb-n_W7.js} +2 -2
  25. package/dist/_chunks/{face-scheme-CZaKm6fG.js → face-scheme-DA2vjqaM.js} +2 -2
  26. package/dist/_chunks/{field-value-DG8zaZvo.js → field-value-D-vkX9uL.js} +120 -140
  27. package/dist/_chunks/{file-manager-C0y7HBAN.js → file-manager-DJMeB3V8.js} +138 -153
  28. package/dist/_chunks/folder-plus-CutOs4DP.js +22 -0
  29. package/dist/_chunks/{gestational-age-calculator-CxZelpu2.js → gestational-age-calculator-CiOQjzgx.js} +2 -2
  30. package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
  31. package/dist/_chunks/key-value-pair-BIBdZBLg.js +188 -0
  32. package/dist/_chunks/{link-cell-renderer-CenJx-_7.js → link-cell-renderer-CIASXsVM.js} +4 -4
  33. package/dist/_chunks/{multi-select-DqL4o0qV.js → multi-select-DYOvx2SJ.js} +56 -48
  34. package/dist/_chunks/{muscle-scheme-yfzP_xoJ.js → muscle-scheme-BSJsI4-I.js} +2 -2
  35. package/dist/_chunks/{notes-panel-CymneXtl.js → notes-panel-DYAtlq_i.js} +2 -2
  36. package/dist/_chunks/{optical-prescription-Dj3Eh5Ok.js → optical-prescription-BvwuqTpl.js} +2 -2
  37. package/dist/_chunks/{patient-details-xrqe13az.js → patient-details-BfzvFnxQ.js} +75 -94
  38. package/dist/_chunks/{patient-search-D5ufYoRc.js → patient-search-HeEUB-_X.js} +2 -2
  39. package/dist/_chunks/{patient-summary-card-CBfuDvJ5.js → patient-summary-card-D5Vfa321.js} +3 -3
  40. package/dist/_chunks/{payment-request-card-YVCcCZ25.js → payment-request-card-lmKLwsDs.js} +2 -2
  41. package/dist/_chunks/{periodontal-chart-BatZEFar.js → periodontal-chart-B9fphroR.js} +2 -2
  42. package/dist/_chunks/{periodontal-chart-card-BBpY_rBc.js → periodontal-chart-card-qEZPXj83.js} +2 -2
  43. package/dist/_chunks/{practice-results-D7ygCj_W.js → practice-results-DL_ExLYE.js} +159 -172
  44. package/dist/_chunks/{pregnancy-dating-DtToyMyc.js → pregnancy-dating-D2wchD11.js} +2 -2
  45. package/dist/_chunks/{province-select-BDywtmL-.js → province-select-BBc7s7vR.js} +2 -2
  46. package/dist/_chunks/{rich-text-editor-BDfFtK4H.js → rich-text-editor-DtbcA6s1.js} +2 -2
  47. package/dist/_chunks/{select-BW5ecXlX.js → select-Bi8zril7.js} +165 -136
  48. package/dist/_chunks/signature-CpFNpsVK.js +21 -0
  49. package/dist/_chunks/{signature-field-0rFODJlW.js → signature-field-CEiPe-vX.js} +19 -34
  50. package/dist/_chunks/{signature-request-DVDTKLjM.js → signature-request-CUe903hj.js} +2 -2
  51. package/dist/_chunks/smartphone-C0rFF2if.js +15 -0
  52. package/dist/_chunks/{tabs-CBb2AidH.js → tabs-DqKtTIjZ.js} +2 -2
  53. package/dist/_chunks/{tasks-panel-Do5SFp-j.js → tasks-panel-DPCNaRko.js} +2 -2
  54. package/dist/_chunks/{toast.agent-D1tdg6DS.js → toast-YZz2sBzB.js} +160 -212
  55. package/dist/_chunks/toast.agent-DNQ0JYGv.js +56 -0
  56. package/dist/_chunks/{tooth-scheme-WdyVymQ1.js → tooth-scheme-2IsmbE6w.js} +2 -2
  57. package/dist/_chunks/{unit-converter-BPumXMA6.js → unit-converter-C6jMjqL9.js} +2 -2
  58. package/dist/_chunks/{workflow-map-DE_ribRM.js → workflow-map-dNzJjBWG.js} +104 -113
  59. package/dist/agent-catalog.json +867 -1
  60. package/dist/agent-i18n/en.json +27 -0
  61. package/dist/components/_shared/option.d.ts +1 -0
  62. package/dist/components/address-fields/index.js +1 -1
  63. package/dist/components/ai-prompt-input/index.js +1 -1
  64. package/dist/components/audio-recorder/index.js +1 -1
  65. package/dist/components/autocomplete/index.js +1 -1
  66. package/dist/components/bishop-score/index.js +1 -1
  67. package/dist/components/booking/index.js +1 -1
  68. package/dist/components/calendar/index.js +1 -1
  69. package/dist/components/calendar-event-card/index.js +1 -1
  70. package/dist/components/care-plan-card/index.js +1 -1
  71. package/dist/components/care-plan-entry-card/index.js +1 -1
  72. package/dist/components/care-plan-header/index.js +1 -1
  73. package/dist/components/city-input/index.js +1 -1
  74. package/dist/components/color-picker/index.js +1 -1
  75. package/dist/components/combobox/index.js +1 -1
  76. package/dist/components/contact-profile-card/index.js +1 -1
  77. package/dist/components/country-select/index.js +1 -1
  78. package/dist/components/data-table/index.js +39 -38
  79. package/dist/components/document-preview/index.js +1 -1
  80. package/dist/components/face-scheme/index.js +1 -1
  81. package/dist/components/file-manager/index.js +1 -1
  82. package/dist/components/gestational-age-calculator/index.js +1 -1
  83. package/dist/components/index.d.ts +1 -0
  84. package/dist/components/key-value-pair/index.js +1 -1
  85. package/dist/components/key-value-pair/key-value-pair.d.ts +16 -0
  86. package/dist/components/multi-select/index.js +1 -1
  87. package/dist/components/muscle-scheme/index.js +1 -1
  88. package/dist/components/notes-panel/index.js +1 -1
  89. package/dist/components/optical-prescription/index.js +1 -1
  90. package/dist/components/patient-details/index.js +1 -1
  91. package/dist/components/patient-search/index.js +1 -1
  92. package/dist/components/patient-summary-card/index.js +1 -1
  93. package/dist/components/patient-table/index.js +1 -1
  94. package/dist/components/payment-card/index.js +1 -1
  95. package/dist/components/periodontal-chart/index.js +1 -1
  96. package/dist/components/periodontal-chart-card/index.js +1 -1
  97. package/dist/components/practice-results/index.js +1 -1
  98. package/dist/components/pregnancy-dating/index.js +1 -1
  99. package/dist/components/province-select/index.js +1 -1
  100. package/dist/components/rich-text-editor/index.js +1 -1
  101. package/dist/components/select/index.js +1 -1
  102. package/dist/components/select/select.d.ts +24 -0
  103. package/dist/components/signature-field/index.js +1 -1
  104. package/dist/components/skeleton-scheme/index.js +1 -1
  105. package/dist/components/tabs/index.js +1 -1
  106. package/dist/components/tasks-panel/index.js +1 -1
  107. package/dist/components/toast/index.js +7 -6
  108. package/dist/components/tooth-scheme/index.js +1 -1
  109. package/dist/components/unit-converter/index.js +1 -1
  110. package/dist/components/workflow/index.js +1 -1
  111. package/dist/i18n/locales/ar.d.ts +680 -0
  112. package/dist/i18n/locales/ar.js +680 -0
  113. package/dist/i18n/locales/de.d.ts +680 -0
  114. package/dist/i18n/locales/de.js +680 -0
  115. package/dist/i18n/locales/el.d.ts +680 -0
  116. package/dist/i18n/locales/el.js +680 -0
  117. package/dist/i18n/locales/en.d.ts +680 -0
  118. package/dist/i18n/locales/en.js +680 -0
  119. package/dist/i18n/locales/es.d.ts +680 -0
  120. package/dist/i18n/locales/es.js +680 -0
  121. package/dist/i18n/locales/fr.d.ts +680 -0
  122. package/dist/i18n/locales/fr.js +680 -0
  123. package/dist/i18n/locales/hi.d.ts +680 -0
  124. package/dist/i18n/locales/hi.js +680 -0
  125. package/dist/i18n/locales/it.d.ts +680 -0
  126. package/dist/i18n/locales/it.js +680 -0
  127. package/dist/i18n/locales/ja.d.ts +680 -0
  128. package/dist/i18n/locales/ja.js +680 -0
  129. package/dist/i18n/locales/nl.d.ts +680 -0
  130. package/dist/i18n/locales/nl.js +680 -0
  131. package/dist/i18n/locales/pl.d.ts +680 -0
  132. package/dist/i18n/locales/pl.js +680 -0
  133. package/dist/i18n/locales/pt.d.ts +680 -0
  134. package/dist/i18n/locales/pt.js +680 -0
  135. package/dist/i18n/locales/ro.d.ts +680 -0
  136. package/dist/i18n/locales/ro.js +680 -0
  137. package/dist/i18n/locales/ru.d.ts +680 -0
  138. package/dist/i18n/locales/ru.js +680 -0
  139. package/dist/i18n/locales/sq.d.ts +680 -0
  140. package/dist/i18n/locales/sq.js +680 -0
  141. package/dist/i18n/locales/sv.d.ts +680 -0
  142. package/dist/i18n/locales/sv.js +680 -0
  143. package/dist/i18n/locales/tr.d.ts +680 -0
  144. package/dist/i18n/locales/tr.js +680 -0
  145. package/dist/i18n/locales/zh.d.ts +680 -0
  146. package/dist/i18n/locales/zh.js +680 -0
  147. package/dist/index.js +830 -812
  148. package/dist/locales/ar.json +680 -0
  149. package/dist/locales/de.json +680 -0
  150. package/dist/locales/el.json +680 -0
  151. package/dist/locales/en.json +680 -0
  152. package/dist/locales/es.json +680 -0
  153. package/dist/locales/fr.json +680 -0
  154. package/dist/locales/hi.json +680 -0
  155. package/dist/locales/it.json +680 -0
  156. package/dist/locales/ja.json +680 -0
  157. package/dist/locales/nl.json +680 -0
  158. package/dist/locales/pl.json +680 -0
  159. package/dist/locales/pt.json +680 -0
  160. package/dist/locales/ro.json +680 -0
  161. package/dist/locales/ru.json +680 -0
  162. package/dist/locales/sq.json +680 -0
  163. package/dist/locales/sv.json +680 -0
  164. package/dist/locales/tr.json +680 -0
  165. package/dist/locales/zh.json +680 -0
  166. package/dist/patterns/anamnesis/index.js +1 -1
  167. package/dist/patterns/calendar/calendar-workspace.d.ts +62 -0
  168. package/dist/patterns/calendar/calendar-workspace.model.d.ts +358 -0
  169. package/dist/patterns/calendar/calendar.data.d.ts +122 -0
  170. package/dist/patterns/calendar/calendar.host.d.ts +10 -0
  171. package/dist/patterns/calendar/calendar.journey.d.ts +119 -0
  172. package/dist/patterns/calendar/calendar.model.d.ts +684 -0
  173. package/dist/patterns/calendar/calendar.preferences.d.ts +74 -0
  174. package/dist/patterns/calendar/calendar.sheets.d.ts +398 -0
  175. package/dist/patterns/calendar/calendar.surface.d.ts +77 -0
  176. package/dist/patterns/calendar/calendar.types.d.ts +413 -0
  177. package/dist/patterns/calendar/index.d.ts +13 -0
  178. package/dist/patterns/calendar/index.js +19 -0
  179. package/dist/patterns/signature-request/index.js +1 -1
  180. package/package.json +5 -1
  181. package/dist/_chunks/actions-cell-renderer-DnSLrgQD.js +0 -1945
  182. package/dist/_chunks/key-value-pair-BubG4fUa.js +0 -144
@@ -7,7 +7,7 @@ import { P as A } from "./progress-CK8otcQ-.js";
7
7
  import { T as C } from "./timestamp-BV2lC-wV.js";
8
8
  import { T as L } from "./transaction-chip-DJCstquX.js";
9
9
  import { A as O, b as G, c as Y, a as $ } from "./accordion-C11v9ouP.js";
10
- import { C as q } from "./care-plan-entry-card-BEhANdBE.js";
10
+ import { C as q } from "./care-plan-entry-card-Bvw_9T-d.js";
11
11
  import { u as J } from "./registry-DvAUVLHh.js";
12
12
  import { C as Q, e as W } from "./entity-card-DmrgYSEX.js";
13
13
  import { i as X } from "./is-safe-url-DkETxeHz.js";
@@ -253,4 +253,4 @@ export {
253
253
  de as C,
254
254
  Z as c
255
255
  };
256
- //# sourceMappingURL=care-plan-card-aDN4oem9.js.map
256
+ //# sourceMappingURL=care-plan-card-D-FMfDKH.js.map
@@ -6,7 +6,7 @@ import { P as O } from "./progress-CK8otcQ-.js";
6
6
  import { T as q } from "./tag-3wgkwwDB.js";
7
7
  import { T as b } from "./timestamp-BV2lC-wV.js";
8
8
  import { T as G } from "./transaction-chip-DJCstquX.js";
9
- import { T as J } from "./tooth-scheme-WdyVymQ1.js";
9
+ import { T as J } from "./tooth-scheme-2IsmbE6w.js";
10
10
  import { C as Q, b as X, a as Z } from "./collapsible-CTjxzGuF.js";
11
11
  import { u as ee } from "./registry-DvAUVLHh.js";
12
12
  import { C as ae } from "./chevron-down-DWE7GSq9.js";
@@ -319,4 +319,4 @@ export {
319
319
  le as C,
320
320
  re as c
321
321
  };
322
- //# sourceMappingURL=care-plan-entry-card-BEhANdBE.js.map
322
+ //# sourceMappingURL=care-plan-entry-card-Bvw_9T-d.js.map
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as n, Fragment as N } from "react/jsx-runtime";
2
2
  import { forwardRef as F, useId as M } from "react";
3
3
  import { useTranslation as U } from "react-i18next";
4
4
  import { B as P } from "./badge-sTusUqZD.js";
5
- import { a as G } from "./key-value-pair-BubG4fUa.js";
5
+ import { a as G } from "./key-value-pair-BIBdZBLg.js";
6
6
  import { L as O } from "./link-CPb_pZPr.js";
7
7
  import { S as $ } from "./separator-CYU_bGFn.js";
8
8
  import { T as A } from "./timestamp-BV2lC-wV.js";
@@ -195,4 +195,4 @@ export {
195
195
  ee as C,
196
196
  X as c
197
197
  };
198
- //# sourceMappingURL=care-plan-header-CkpPyQqG.js.map
198
+ //# sourceMappingURL=care-plan-header-B5CBE0zu.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as H, useRef as N, useEffect as _, useMemo as W, useCallback as q } from "react";
3
3
  import { useTranslation as B } from "react-i18next";
4
- import { A as F } from "./autocomplete-BrONKN8l.js";
4
+ import { A as F } from "./autocomplete-MpBhz-fG.js";
5
5
  import { T as G } from "./text-input-CUvCb6ST.js";
6
6
  import { u as J } from "./use-controllable-state-BiY4xTzM.js";
7
7
  import { u as L } from "./registry-DvAUVLHh.js";
@@ -166,4 +166,4 @@ export {
166
166
  Q as C,
167
167
  O as c
168
168
  };
169
- //# sourceMappingURL=city-input-towzBenY.js.map
169
+ //# sourceMappingURL=city-input-DaQc-Hbj.js.map
@@ -0,0 +1,25 @@
1
+ import { c as t } from "./createLucideIcon-DhHxpK9K.js";
2
+ /**
3
+ * @license lucide-react v1.22.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const a = [
9
+ ["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
10
+ [
11
+ "path",
12
+ {
13
+ d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",
14
+ key: "116196"
15
+ }
16
+ ],
17
+ ["path", { d: "M12 11h4", key: "1jrz19" }],
18
+ ["path", { d: "M12 16h4", key: "n85exb" }],
19
+ ["path", { d: "M8 11h.01", key: "1dfujw" }],
20
+ ["path", { d: "M8 16h.01", key: "18s6g9" }]
21
+ ], h = t("clipboard-list", a);
22
+ export {
23
+ h as C
24
+ };
25
+ //# sourceMappingURL=clipboard-list-rSzfIYZB.js.map
@@ -726,6 +726,8 @@ export {
726
726
  He as A,
727
727
  ta as B,
728
728
  Ke as C,
729
- sa as G
729
+ sa as G,
730
+ ze as c,
731
+ Ee as h
730
732
  };
731
- //# sourceMappingURL=color-picker-oZ6zYks8.js.map
733
+ //# sourceMappingURL=color-picker-CU303VjY.js.map
@@ -1,7 +1,7 @@
1
- import { jsx as o, jsxs as S } from "react/jsx-runtime";
2
- import { forwardRef as Ke, useContext as Oe, useMemo as B, useState as oe, useRef as g, useEffect as I, useCallback as Te } from "react";
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
3
  import * as _ from "@radix-ui/react-popover";
4
- import { R as $e, _ as c, P as ke } from "./index-4xgbg-sn.js";
4
+ import { R as Te, _ as c, P as $e } from "./index-4xgbg-sn.js";
5
5
  import { c as F } from "./index-D2ZczOXr.js";
6
6
  import { useTranslation as Be } from "react-i18next";
7
7
  import { u as Ue, F as He } from "./form-field-context-B3APVHKx.js";
@@ -24,19 +24,19 @@ const et = {
24
24
  type: "string | null",
25
25
  descriptionKey: "ui.agent.combobox.state.value",
26
26
  description: "Currently-selected option value, or null when nothing is selected.",
27
- read: (t) => t.getValue()
27
+ read: (s) => s.getValue()
28
28
  },
29
29
  query: {
30
30
  type: "string",
31
31
  descriptionKey: "ui.agent.combobox.state.query",
32
32
  description: "Current filter query in the combobox input.",
33
- read: (t) => t.getQuery()
33
+ read: (s) => s.getQuery()
34
34
  },
35
35
  isOpen: {
36
36
  type: "boolean",
37
37
  descriptionKey: "ui.agent.combobox.state.isOpen",
38
38
  description: "True when the option list is visible.",
39
- read: (t) => t.getIsOpen()
39
+ read: (s) => s.getIsOpen()
40
40
  }
41
41
  },
42
42
  actions: {
@@ -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: (t, a) => {
62
- t.setValue(a.value);
61
+ invoke: (s, a) => {
62
+ s.setValue(a.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: (t, a) => {
80
- t.setQuery(a.query);
79
+ invoke: (s, a) => {
80
+ s.setQuery(a.query);
81
81
  }
82
82
  },
83
83
  clear_selection: {
@@ -86,8 +86,8 @@ const et = {
86
86
  idempotent: !0,
87
87
  descriptionKey: "ui.agent.combobox.actions.clearSelection",
88
88
  description: "Clear the current selection.",
89
- invoke: (t) => {
90
- t.clear();
89
+ invoke: (s) => {
90
+ s.clear();
91
91
  }
92
92
  },
93
93
  open: {
@@ -95,8 +95,8 @@ const et = {
95
95
  idempotent: !0,
96
96
  descriptionKey: "ui.agent.combobox.actions.open",
97
97
  description: "Open the option list.",
98
- invoke: (t) => {
99
- t.open();
98
+ invoke: (s) => {
99
+ s.open();
100
100
  }
101
101
  },
102
102
  close: {
@@ -104,8 +104,8 @@ const et = {
104
104
  idempotent: !0,
105
105
  descriptionKey: "ui.agent.combobox.actions.close",
106
106
  description: "Close the option list.",
107
- invoke: (t) => {
108
- t.close();
107
+ invoke: (s) => {
108
+ s.close();
109
109
  }
110
110
  }
111
111
  },
@@ -201,34 +201,34 @@ const et = {
201
201
  lg: "ds:size-5"
202
202
  };
203
203
  function dt({
204
- search: t,
204
+ search: s,
205
205
  label: a,
206
206
  iconClass: E,
207
207
  size: V,
208
208
  onSelect: j
209
209
  }) {
210
- return ke((q) => q.filtered.count) > 0 ? null : /* @__PURE__ */ S(
210
+ return $e((q) => q.filtered.count) > 0 ? null : /* @__PURE__ */ S(
211
211
  c.Item,
212
212
  {
213
- value: `__combobox-create__${t}`,
213
+ value: `__combobox-create__${s}`,
214
214
  keywords: [],
215
215
  forceMount: !0,
216
- onSelect: () => j(t),
216
+ onSelect: () => j(s),
217
217
  className: ne({ size: V }),
218
218
  children: [
219
- /* @__PURE__ */ o(
219
+ /* @__PURE__ */ t(
220
220
  "span",
221
221
  {
222
222
  "aria-hidden": "true",
223
223
  className: `ds:inline-flex ds:items-center ds:justify-center ${E}`
224
224
  }
225
225
  ),
226
- /* @__PURE__ */ o("span", { className: "ds:flex-1 ds:truncate", children: a })
226
+ /* @__PURE__ */ t("span", { className: "ds:flex-1 ds:truncate", children: a })
227
227
  ]
228
228
  }
229
229
  );
230
230
  }
231
- const re = Ke(
231
+ const re = ke(
232
232
  function({
233
233
  options: a,
234
234
  value: E,
@@ -255,28 +255,28 @@ const re = Ke(
255
255
  "aria-describedby": be,
256
256
  autoComplete: he
257
257
  }, ge) {
258
- const { t: y } = Be(), b = Ue(), x = Oe(He) !== null, [ve, N] = Le({
258
+ const { t: y } = Be(), b = Ue(), x = Ke(He) !== null, [ve, N] = Le({
259
259
  value: E,
260
260
  defaultValue: V ?? "",
261
261
  onChange: j
262
- }), m = ve ?? "", K = B(
262
+ }), m = ve ?? "", k = B(
263
263
  () => a.find((e) => e.value === m),
264
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);
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
266
  Qe(() => {
267
267
  var e;
268
268
  (e = w.current) == null || e.setAttribute("aria-expanded", String(d));
269
269
  }), I(() => {
270
270
  d || i(C);
271
271
  }, [C, d]);
272
- const xe = A ?? (x ? b.id : void 0), O = (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, s, n) => {
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
274
  if (R.current) return 1;
275
- const f = U(e), r = U(s), k = n == null ? void 0 : n.map(U);
276
- return D ? D(f, r) : $e(
275
+ const f = U(e), n = U(o), $ = r == null ? void 0 : r.map(U);
276
+ return D ? D(f, n) : Te(
277
277
  f,
278
- r,
279
- k
278
+ n,
279
+ $
280
280
  );
281
281
  },
282
282
  [D]
@@ -285,26 +285,26 @@ const re = Ke(
285
285
  }, l = (e) => {
286
286
  z || X(e), u == null || u(e);
287
287
  }, Re = (e) => {
288
- const s = a.find((n) => n.value === e);
289
- Z(e), i((s == null ? void 0 : s.label) ?? ""), l(!1);
288
+ const o = a.find((r) => r.value === e);
289
+ Z(e), i((o == null ? void 0 : o.label) ?? ""), l(!1);
290
290
  }, we = (e) => {
291
291
  P == null || P(e), l(!1);
292
292
  }, Ie = (e) => {
293
293
  h || (i(e), !d && e.length > 0 && !R.current && l(!0));
294
294
  }, _e = () => {
295
- !O && !h && l(!0);
295
+ !K && !h && l(!0);
296
296
  }, Fe = () => {
297
297
  R.current = !0;
298
298
  }, Ee = () => {
299
- var s;
299
+ var o;
300
300
  if (R.current = !1, h) return;
301
- const e = ((s = w.current) == null ? void 0 : s.value) ?? "";
301
+ const e = ((o = w.current) == null ? void 0 : o.value) ?? "";
302
302
  i(e), e.length > 0 && l(!0);
303
303
  }, Ve = (e) => {
304
304
  e.nativeEvent.isComposing || e.key === "Escape" && d && (e.preventDefault(), l(!1), i(C));
305
305
  }, je = (e) => {
306
- var s;
307
- e.preventDefault(), e.stopPropagation(), Z(""), i(""), l(!0), (s = w.current) == null || s.focus();
306
+ var o;
307
+ e.preventDefault(), e.stopPropagation(), Z(""), i(""), l(!0), (o = w.current) == null || o.focus();
308
308
  }, qe = (e) => {
309
309
  h && e || (l(e), e || i(C));
310
310
  }, ee = g(m);
@@ -319,7 +319,7 @@ const re = Ke(
319
319
  I(() => {
320
320
  se.current = d;
321
321
  }, [d]);
322
- const T = Te(
322
+ const O = Oe(
323
323
  (e) => {
324
324
  z || X(e), u == null || u(e);
325
325
  },
@@ -330,10 +330,10 @@ const re = Ke(
330
330
  getQuery: () => te.current,
331
331
  getIsOpen: () => se.current,
332
332
  setValue: (e) => {
333
- const s = e ?? "";
334
- N(s);
335
- const n = a.find((f) => f.value === s);
336
- i((n == null ? void 0 : n.label) ?? "");
333
+ const o = e ?? "";
334
+ N(o);
335
+ const r = a.find((f) => f.value === o);
336
+ i((r == null ? void 0 : r.label) ?? "");
337
337
  },
338
338
  setQuery: (e) => {
339
339
  i(e);
@@ -341,14 +341,14 @@ const re = Ke(
341
341
  clear: () => {
342
342
  N(""), i("");
343
343
  },
344
- open: () => T(!0),
345
- close: () => T(!1)
344
+ open: () => O(!0),
345
+ close: () => O(!1)
346
346
  }),
347
- [N, a, T]
347
+ [N, a, O]
348
348
  );
349
349
  Je(et, Ae, A);
350
- const De = q && !!m && !O && !h, Pe = Me(a), $ = it[v];
351
- return /* @__PURE__ */ o(_.Root, { open: d, onOpenChange: qe, children: /* @__PURE__ */ S(
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
352
  c,
353
353
  {
354
354
  filter: ze,
@@ -357,7 +357,7 @@ const re = Ke(
357
357
  label: Q ?? Y,
358
358
  className: "ds:w-full",
359
359
  children: [
360
- /* @__PURE__ */ o(_.Anchor, { asChild: !0, children: /* @__PURE__ */ S(
360
+ /* @__PURE__ */ t(_.Anchor, { asChild: !0, children: /* @__PURE__ */ S(
361
361
  "div",
362
362
  {
363
363
  ref: W,
@@ -369,7 +369,7 @@ const re = Ke(
369
369
  "data-component": "combobox",
370
370
  "data-component-id": A,
371
371
  children: [
372
- /* @__PURE__ */ o(
372
+ /* @__PURE__ */ t(
373
373
  c.Input,
374
374
  {
375
375
  ref: Ge(ge, w),
@@ -378,7 +378,7 @@ const re = Ke(
378
378
  id: xe,
379
379
  name: le,
380
380
  placeholder: Y,
381
- disabled: O,
381
+ disabled: K,
382
382
  readOnly: h,
383
383
  required: Ce,
384
384
  autoComplete: he,
@@ -391,7 +391,7 @@ const re = Ke(
391
391
  className: tt({ size: v })
392
392
  }
393
393
  ),
394
- De ? /* @__PURE__ */ o(
394
+ De ? /* @__PURE__ */ t(
395
395
  "button",
396
396
  {
397
397
  type: "button",
@@ -406,13 +406,13 @@ const re = Ke(
406
406
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
407
407
  "ds:size-4"
408
408
  ].join(" "),
409
- children: /* @__PURE__ */ o(Ye, { "aria-hidden": "true", className: "ds:size-3.5" })
409
+ children: /* @__PURE__ */ t(Ye, { "aria-hidden": "true", className: "ds:size-3.5" })
410
410
  }
411
411
  ) : null
412
412
  ]
413
413
  }
414
414
  ) }),
415
- /* @__PURE__ */ o(_.Portal, { forceMount: !0, children: /* @__PURE__ */ o(
415
+ /* @__PURE__ */ t(_.Portal, { forceMount: !0, children: /* @__PURE__ */ t(
416
416
  _.Content,
417
417
  {
418
418
  forceMount: !0,
@@ -421,73 +421,81 @@ const re = Ke(
421
421
  onOpenAutoFocus: (e) => e.preventDefault(),
422
422
  onCloseAutoFocus: (e) => e.preventDefault(),
423
423
  onInteractOutside: (e) => {
424
- var n;
425
- const s = e.target;
426
- s && ((n = W.current) != null && n.contains(s)) && e.preventDefault();
424
+ var r;
425
+ const o = e.target;
426
+ o && ((r = W.current) != null && r.contains(o)) && e.preventDefault();
427
427
  },
428
428
  sideOffset: 4,
429
429
  align: "start",
430
430
  className: ot(),
431
431
  children: /* @__PURE__ */ S(c.List, { className: rt, children: [
432
- /* @__PURE__ */ o(c.Empty, { className: at, children: me ?? y("inputs.combobox.empty", "No results found") }),
433
- Pe.map(({ group: e, items: s }, n) => {
434
- const f = s.map((r) => {
435
- const k = r.value === m;
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
436
  return /* @__PURE__ */ S(
437
437
  c.Item,
438
438
  {
439
- value: r.value,
440
- "data-option-id": r.value,
441
- keywords: [r.label],
442
- disabled: r.disabled,
439
+ value: n.value,
440
+ "data-option-id": n.value,
441
+ keywords: [n.label],
442
+ disabled: n.disabled,
443
443
  onSelect: Re,
444
444
  className: ne({ size: v }),
445
445
  children: [
446
- /* @__PURE__ */ o(
446
+ /* @__PURE__ */ t(
447
447
  "span",
448
448
  {
449
449
  "aria-hidden": "true",
450
- className: `ds:inline-flex ds:items-center ds:justify-center ${$}`,
451
- children: k ? /* @__PURE__ */ o(Ze, { className: $ }) : null
450
+ className: `ds:inline-flex ds:items-center ds:justify-center ${T}`,
451
+ children: $ ? /* @__PURE__ */ t(Ze, { className: T }) : null
452
452
  }
453
453
  ),
454
- r.startAdornment ? (
454
+ n.startAdornment ? (
455
455
  // Decorative by contract — the option's accessible
456
456
  // name comes from its label. Hide so a text-bearing
457
457
  // adornment can't leak into the computed name.
458
- /* @__PURE__ */ o(
458
+ /* @__PURE__ */ t(
459
459
  "span",
460
460
  {
461
461
  "aria-hidden": "true",
462
462
  className: "ds:inline-flex ds:items-center ds:shrink-0",
463
- children: r.startAdornment
463
+ children: n.startAdornment
464
464
  }
465
465
  )
466
466
  ) : null,
467
- /* @__PURE__ */ o("span", { className: "ds:flex-1 ds:truncate", children: r.label }),
468
- r.description ? /* @__PURE__ */ o("span", { className: "type-meta ds:text-muted-foreground", children: r.description }) : 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 ? (
470
+ // Deliberately NOT aria-hidden — unlike
471
+ // `startAdornment`, this slot carries meaning
472
+ // (a price, a count) and must reach the
473
+ // option's accessible name. `ms-auto` pins it
474
+ // 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
+ ) : null
469
477
  ]
470
478
  },
471
- r.value
479
+ n.value
472
480
  );
473
481
  });
474
- return e ? /* @__PURE__ */ o(
482
+ return e ? /* @__PURE__ */ t(
475
483
  c.Group,
476
484
  {
477
- heading: /* @__PURE__ */ o("span", { className: nt, children: e }),
485
+ heading: /* @__PURE__ */ t("span", { className: nt, children: e }),
478
486
  children: f
479
487
  },
480
488
  `group-${e}`
481
- ) : /* @__PURE__ */ o(c.Group, { children: f }, `group-${n}`);
489
+ ) : /* @__PURE__ */ t(c.Group, { children: f }, `group-${r}`);
482
490
  }),
483
- ue && p.length > 0 ? /* @__PURE__ */ o(
491
+ ue && p.length > 0 ? /* @__PURE__ */ t(
484
492
  dt,
485
493
  {
486
494
  search: p,
487
495
  label: y("inputs.combobox.create", 'Create "{{value}}"', {
488
496
  value: p
489
497
  }),
490
- iconClass: $,
498
+ iconClass: T,
491
499
  size: v,
492
500
  onSelect: we
493
501
  }
@@ -510,4 +518,4 @@ export {
510
518
  ne as d,
511
519
  st as e
512
520
  };
513
- //# sourceMappingURL=combobox-DiMLItyu.js.map
521
+ //# sourceMappingURL=combobox-D7_NLE2Z.js.map