@alfadocs/ui-kit-debug 1.90.1 → 1.90.2

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 (151) hide show
  1. package/dist/_chunks/address-autocomplete-DR4Xn23Z.js +519 -0
  2. package/dist/_chunks/address-autocomplete-DR4Xn23Z.js.map +1 -0
  3. package/dist/_chunks/{address-fields-CfnXK8RT.js → address-fields-qxQkGwPf.js} +5 -5
  4. package/dist/_chunks/{address-fields-CfnXK8RT.js.map → address-fields-qxQkGwPf.js.map} +1 -1
  5. package/dist/_chunks/{ai-permission-notice-CoW22jx1.js → ai-permission-notice-VNh3W57L.js} +2 -2
  6. package/dist/_chunks/{ai-permission-notice-CoW22jx1.js.map → ai-permission-notice-VNh3W57L.js.map} +1 -1
  7. package/dist/_chunks/{anamnesis-summary-rows-fbEQwcuW.js → anamnesis-summary-rows-EKPfVCmh.js} +2 -2
  8. package/dist/_chunks/{anamnesis-summary-rows-fbEQwcuW.js.map → anamnesis-summary-rows-EKPfVCmh.js.map} +1 -1
  9. package/dist/_chunks/autocomplete-BXMcNoa3.js +562 -0
  10. package/dist/_chunks/autocomplete-BXMcNoa3.js.map +1 -0
  11. package/dist/_chunks/{balance-badge-cell-C4FYwmrZ.js → balance-badge-cell-D9VhFp0L.js} +3 -3
  12. package/dist/_chunks/{balance-badge-cell-C4FYwmrZ.js.map → balance-badge-cell-D9VhFp0L.js.map} +1 -1
  13. package/dist/_chunks/{booking-C0FoW8Yx.js → booking-CcE_oviI.js} +1896 -1859
  14. package/dist/_chunks/booking-CcE_oviI.js.map +1 -0
  15. package/dist/_chunks/{calendar-appointment-editor-dialog-C1v2MNE4.js → calendar-appointment-editor-dialog-CiAGAX2t.js} +7 -7
  16. package/dist/_chunks/{calendar-appointment-editor-dialog-C1v2MNE4.js.map → calendar-appointment-editor-dialog-CiAGAX2t.js.map} +1 -1
  17. package/dist/_chunks/{checkbox-BjDv-r3o.js → checkbox-a7Sh-dXb.js} +32 -31
  18. package/dist/_chunks/checkbox-a7Sh-dXb.js.map +1 -0
  19. package/dist/_chunks/{checkbox-group-Cw2H5qaq.js → checkbox-group-eGdv9fZc.js} +2 -2
  20. package/dist/_chunks/{checkbox-group-Cw2H5qaq.js.map → checkbox-group-eGdv9fZc.js.map} +1 -1
  21. package/dist/_chunks/{city-input-CJVGswxp.js → city-input-CA59CjnV.js} +2 -2
  22. package/dist/_chunks/{city-input-CJVGswxp.js.map → city-input-CA59CjnV.js.map} +1 -1
  23. package/dist/_chunks/{combobox-CDPm_n0p.js → combobox-D-gpgEDy.js} +314 -294
  24. package/dist/_chunks/combobox-D-gpgEDy.js.map +1 -0
  25. package/dist/_chunks/{country-select-DQ8q7ypA.js → country-select-BfmX9y5i.js} +2 -2
  26. package/dist/_chunks/{country-select-DQ8q7ypA.js.map → country-select-BfmX9y5i.js.map} +1 -1
  27. package/dist/_chunks/{data-table-B_IcS0Ke.js → data-table-CqQgoNsU.js} +2 -2
  28. package/dist/_chunks/{data-table-B_IcS0Ke.js.map → data-table-CqQgoNsU.js.map} +1 -1
  29. package/dist/_chunks/{face-scheme-BgJGFDTa.js → face-scheme-BKSE98bo.js} +2 -2
  30. package/dist/_chunks/{face-scheme-BgJGFDTa.js.map → face-scheme-BKSE98bo.js.map} +1 -1
  31. package/dist/_chunks/{file-manager-C9YOT-Dn.js → file-manager-BnI1ZWZu.js} +2 -2
  32. package/dist/_chunks/{file-manager-C9YOT-Dn.js.map → file-manager-BnI1ZWZu.js.map} +1 -1
  33. package/dist/_chunks/{header-settings-BVhjndtV.js → header-settings-BeA2fnol.js} +24 -23
  34. package/dist/_chunks/header-settings-BeA2fnol.js.map +1 -0
  35. package/dist/_chunks/{heatmap-HTz3Jvzy.js → heatmap-fCxwNz2o.js} +2 -2
  36. package/dist/_chunks/{heatmap-HTz3Jvzy.js.map → heatmap-fCxwNz2o.js.map} +1 -1
  37. package/dist/_chunks/{link-cell-renderer-C0ynDik7.js → link-cell-renderer-CnCgudvq.js} +3 -3
  38. package/dist/_chunks/{link-cell-renderer-C0ynDik7.js.map → link-cell-renderer-CnCgudvq.js.map} +1 -1
  39. package/dist/_chunks/{login-dev-card-DYwbL5sD.js → login-dev-card-BZBR58mu.js} +2 -2
  40. package/dist/_chunks/{login-dev-card-DYwbL5sD.js.map → login-dev-card-BZBR58mu.js.map} +1 -1
  41. package/dist/_chunks/{map-view-Bvi06RVh.js → map-view-UrNgxBy3.js} +260 -237
  42. package/dist/_chunks/map-view-UrNgxBy3.js.map +1 -0
  43. package/dist/_chunks/{index.modern-BeRXQVdc.js → maps-core-gate-DkNqGkm3.js} +360 -319
  44. package/dist/_chunks/maps-core-gate-DkNqGkm3.js.map +1 -0
  45. package/dist/_chunks/{marketplace-app-shell-x_abo_ye.js → marketplace-app-shell-CmZx0Oam.js} +2 -2
  46. package/dist/_chunks/{marketplace-app-shell-x_abo_ye.js.map → marketplace-app-shell-CmZx0Oam.js.map} +1 -1
  47. package/dist/_chunks/{notes-panel-CZO1qsD-.js → notes-panel-Dywo6R55.js} +2 -2
  48. package/dist/_chunks/{notes-panel-CZO1qsD-.js.map → notes-panel-Dywo6R55.js.map} +1 -1
  49. package/dist/_chunks/{patient-details-D0P5eog5.js → patient-details-BUr7Oemx.js} +2 -2
  50. package/dist/_chunks/{patient-details-D0P5eog5.js.map → patient-details-BUr7Oemx.js.map} +1 -1
  51. package/dist/_chunks/{patient-field-row-R73dZJY6.js → patient-field-row-bJk8Q_qr.js} +5 -5
  52. package/dist/_chunks/{patient-field-row-R73dZJY6.js.map → patient-field-row-bJk8Q_qr.js.map} +1 -1
  53. package/dist/_chunks/patient-search-Ca9j5cWb.js +1306 -0
  54. package/dist/_chunks/patient-search-Ca9j5cWb.js.map +1 -0
  55. package/dist/_chunks/{patient-summary-card-6U74-ivO.js → patient-summary-card-CCQZ8X37.js} +2 -2
  56. package/dist/_chunks/{patient-summary-card-6U74-ivO.js.map → patient-summary-card-CCQZ8X37.js.map} +1 -1
  57. package/dist/_chunks/{periodontal-diagnosis-B9YmmVmM.js → periodontal-diagnosis-DD3hrg9X.js} +2 -2
  58. package/dist/_chunks/{periodontal-diagnosis-B9YmmVmM.js.map → periodontal-diagnosis-DD3hrg9X.js.map} +1 -1
  59. package/dist/_chunks/{permission-matrix-BoQjENGV.js → permission-matrix-BJ6sg3Zp.js} +3 -3
  60. package/dist/_chunks/{permission-matrix-BoQjENGV.js.map → permission-matrix-BJ6sg3Zp.js.map} +1 -1
  61. package/dist/_chunks/{practice-results-B61krlwu.js → practice-results-DQuOfqej.js} +2 -2
  62. package/dist/_chunks/{practice-results-B61krlwu.js.map → practice-results-DQuOfqej.js.map} +1 -1
  63. package/dist/_chunks/{province-select-CPdTwEob.js → province-select-D64whw0m.js} +2 -2
  64. package/dist/_chunks/{province-select-CPdTwEob.js.map → province-select-D64whw0m.js.map} +1 -1
  65. package/dist/_chunks/{registration-form-DmP3YUfp.js → registration-form-CRm6DaB9.js} +2 -2
  66. package/dist/_chunks/{registration-form-DmP3YUfp.js.map → registration-form-CRm6DaB9.js.map} +1 -1
  67. package/dist/_chunks/{reviews-panel-UzQQLb-z.js → reviews-panel-B7InBORU.js} +42 -41
  68. package/dist/_chunks/reviews-panel-B7InBORU.js.map +1 -0
  69. package/dist/_chunks/{rich-text-editor-BZTyxQBd.js → rich-text-editor-BfEu57dk.js} +3 -3
  70. package/dist/_chunks/{rich-text-editor-BZTyxQBd.js.map → rich-text-editor-BfEu57dk.js.map} +1 -1
  71. package/dist/_chunks/{slot-grid-Bb13H9Rl.js → slot-grid-DrwynKeN.js} +91 -89
  72. package/dist/_chunks/{slot-grid-Bb13H9Rl.js.map → slot-grid-DrwynKeN.js.map} +1 -1
  73. package/dist/_chunks/{task-editor-BOETWbjU.js → task-editor-CI1SKUNc.js} +2 -2
  74. package/dist/_chunks/{task-editor-BOETWbjU.js.map → task-editor-CI1SKUNc.js.map} +1 -1
  75. package/dist/_chunks/{use-appointment-details-read-CWN-nJCZ.js → use-appointment-details-read-BytPq3Ux.js} +2 -2
  76. package/dist/_chunks/{use-appointment-details-read-CWN-nJCZ.js.map → use-appointment-details-read-BytPq3Ux.js.map} +1 -1
  77. package/dist/_chunks/{voice-control-panel-BziKE-KK.js → voice-control-panel-BP0otrID.js} +2 -2
  78. package/dist/_chunks/{voice-control-panel-BziKE-KK.js.map → voice-control-panel-BP0otrID.js.map} +1 -1
  79. package/dist/_chunks/{workflow-webhook-action-DulCpCRz.js → workflow-webhook-action-B_nBJ_ht.js} +2 -2
  80. package/dist/_chunks/{workflow-webhook-action-DulCpCRz.js.map → workflow-webhook-action-B_nBJ_ht.js.map} +1 -1
  81. package/dist/agent-catalog.json +2 -2
  82. package/dist/agent-i18n/en.json +1 -1
  83. package/dist/components/_shared/maps-core-gate.d.ts +18 -0
  84. package/dist/components/_shared/maps-core-gate.d.ts.map +1 -0
  85. package/dist/components/address-autocomplete/address-autocomplete.d.ts.map +1 -1
  86. package/dist/components/address-autocomplete/index.js +1 -1
  87. package/dist/components/address-fields/index.js +1 -1
  88. package/dist/components/ai-permission-notice/index.js +1 -1
  89. package/dist/components/appointment-details-panel/index.js +1 -1
  90. package/dist/components/autocomplete/autocomplete.agent.d.ts.map +1 -1
  91. package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
  92. package/dist/components/autocomplete/index.js +1 -1
  93. package/dist/components/booking/booking.d.ts.map +1 -1
  94. package/dist/components/booking/details-form.d.ts.map +1 -1
  95. package/dist/components/booking/index.js +1 -1
  96. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  97. package/dist/components/checkbox/index.js +1 -1
  98. package/dist/components/checkbox-group/index.js +1 -1
  99. package/dist/components/city-input/index.js +1 -1
  100. package/dist/components/combobox/combobox.d.ts.map +1 -1
  101. package/dist/components/combobox/index.js +1 -1
  102. package/dist/components/country-select/index.js +1 -1
  103. package/dist/components/data-table/index.js +2 -2
  104. package/dist/components/face-scheme/index.js +1 -1
  105. package/dist/components/file-manager/index.js +1 -1
  106. package/dist/components/header-settings/header-settings.d.ts +2 -1
  107. package/dist/components/header-settings/header-settings.d.ts.map +1 -1
  108. package/dist/components/header-settings/index.js +1 -1
  109. package/dist/components/heatmap/index.js +1 -1
  110. package/dist/components/map-view/index.js +1 -1
  111. package/dist/components/map-view/map-view.d.ts.map +1 -1
  112. package/dist/components/notes-panel/index.js +1 -1
  113. package/dist/components/patient-details/index.js +1 -1
  114. package/dist/components/patient-search/index.js +1 -1
  115. package/dist/components/patient-search/patient-search.d.ts.map +1 -1
  116. package/dist/components/patient-summary-card/index.js +1 -1
  117. package/dist/components/patient-table/index.js +1 -1
  118. package/dist/components/periodontal-diagnosis/index.js +1 -1
  119. package/dist/components/permission-matrix/index.js +1 -1
  120. package/dist/components/practice-results/index.js +1 -1
  121. package/dist/components/province-select/index.js +1 -1
  122. package/dist/components/reviews-panel/index.js +1 -1
  123. package/dist/components/reviews-panel/reviews-panel.d.ts.map +1 -1
  124. package/dist/components/rich-text-editor/index.js +1 -1
  125. package/dist/components/slot-grid/index.js +1 -1
  126. package/dist/components/slot-grid/slot-grid.d.ts.map +1 -1
  127. package/dist/components/task-editor/index.js +1 -1
  128. package/dist/components/voice-control-panel/index.js +1 -1
  129. package/dist/host-compat.css +1 -10
  130. package/dist/index.js +37 -37
  131. package/dist/patterns/anamnesis/index.js +1 -1
  132. package/dist/patterns/calendar/index.js +1 -1
  133. package/dist/patterns/login-form/index.js +1 -1
  134. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  135. package/dist/patterns/registration-form/index.js +1 -1
  136. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  137. package/dist/tokens.css +1 -1
  138. package/package.json +1 -1
  139. package/dist/_chunks/address-autocomplete-bPR2mNBt.js +0 -498
  140. package/dist/_chunks/address-autocomplete-bPR2mNBt.js.map +0 -1
  141. package/dist/_chunks/autocomplete-CnB1mHGc.js +0 -539
  142. package/dist/_chunks/autocomplete-CnB1mHGc.js.map +0 -1
  143. package/dist/_chunks/booking-C0FoW8Yx.js.map +0 -1
  144. package/dist/_chunks/checkbox-BjDv-r3o.js.map +0 -1
  145. package/dist/_chunks/combobox-CDPm_n0p.js.map +0 -1
  146. package/dist/_chunks/header-settings-BVhjndtV.js.map +0 -1
  147. package/dist/_chunks/index.modern-BeRXQVdc.js.map +0 -1
  148. package/dist/_chunks/map-view-Bvi06RVh.js.map +0 -1
  149. package/dist/_chunks/patient-search-CCOUZABE.js +0 -1196
  150. package/dist/_chunks/patient-search-CCOUZABE.js.map +0 -1
  151. package/dist/_chunks/reviews-panel-UzQQLb-z.js.map +0 -1
@@ -1,22 +1,22 @@
1
- import { jsx as o, jsxs as x, Fragment as Ze } from "react/jsx-runtime";
2
- import { forwardRef as Qe, useContext as et, useMemo as Z, useState as Q, useRef as m, useEffect as E, useCallback as tt } from "react";
3
- import * as P from "@radix-ui/react-popover";
4
- import { R as st, _ as y, P as ot } from "./index-4xgbg-sn.js";
5
- import { c as $ } from "./index-D2ZczOXr.js";
6
- import { useTranslation as rt } from "react-i18next";
7
- import { u as nt, F as it, b as at } from "./form-field-context-DtiROUJV.js";
8
- import { c as lt } from "./compose-refs-C0k0tdqF.js";
1
+ import { jsx as r, jsxs as y, Fragment as at } from "react/jsx-runtime";
2
+ import { forwardRef as lt, useContext as ct, useMemo as te, useState as L, useRef as f, useEffect as E, useCallback as se } from "react";
3
+ import * as $ from "@radix-ui/react-popover";
4
+ import { R as dt, _ as S, P as ut } from "./index-4xgbg-sn.js";
5
+ import { c as j } from "./index-D2ZczOXr.js";
6
+ import { useTranslation as ft } from "react-i18next";
7
+ import { u as mt, F as pt, b as bt } from "./form-field-context-DtiROUJV.js";
8
+ import { c as vt } from "./compose-refs-C0k0tdqF.js";
9
9
  import { n as w } from "./normalize-diacritics-BNGbFNlJ.js";
10
- import { g as dt } from "./group-options-BvKhQ3xb.js";
11
- import { b as ct } from "./menu-row-BAr8bx1I.js";
12
- import { O as ut, a as ft, o as mt, b as pt, c as bt } from "./option-row-Dc7BrbK8.js";
13
- import { u as vt } from "./use-controllable-state-BiY4xTzM.js";
14
- import { u as ee } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
15
- import { I as ht, a as te, d as se, c as gt } from "./input-surface-iBmxVBfr.js";
16
- import { u as xt } from "./registry-DvAUVLHh.js";
17
- import { X as yt } from "./x-B5YnXwCz.js";
18
- import { C as St } from "./check-DrFSN__t.js";
19
- const Nt = {
10
+ import { g as ht } from "./group-options-BvKhQ3xb.js";
11
+ import { b as gt } from "./menu-row-BAr8bx1I.js";
12
+ import { O as xt, a as yt, o as St, b as Rt, c as Nt } from "./option-row-Dc7BrbK8.js";
13
+ import { u as Et } from "./use-controllable-state-BiY4xTzM.js";
14
+ import { u as re } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
15
+ import { I as wt, a as ne, d as oe, c as At } from "./input-surface-iBmxVBfr.js";
16
+ import { u as _t } from "./registry-DvAUVLHh.js";
17
+ import { X as It } from "./x-B5YnXwCz.js";
18
+ import { C as kt } from "./check-DrFSN__t.js";
19
+ const Ft = {
20
20
  id: "combobox",
21
21
  // Persisted single choice (value state + set_value) → select_single + set_value,
22
22
  // plus type-to-filter and open/close of the option list.
@@ -26,19 +26,19 @@ const Nt = {
26
26
  type: "string | null",
27
27
  descriptionKey: "ui.agent.combobox.state.value",
28
28
  description: "Currently-selected option value, or null when nothing is selected.",
29
- read: (n) => n.getValue()
29
+ read: (i) => i.getValue()
30
30
  },
31
31
  query: {
32
32
  type: "string",
33
33
  descriptionKey: "ui.agent.combobox.state.query",
34
34
  description: "Current filter query in the combobox input.",
35
- read: (n) => n.getQuery()
35
+ read: (i) => i.getQuery()
36
36
  },
37
37
  isOpen: {
38
38
  type: "boolean",
39
39
  descriptionKey: "ui.agent.combobox.state.isOpen",
40
40
  description: "True when the option list is visible.",
41
- read: (n) => n.getIsOpen()
41
+ read: (i) => i.getIsOpen()
42
42
  }
43
43
  },
44
44
  actions: {
@@ -60,8 +60,8 @@ const Nt = {
60
60
  descriptionKey: "ui.agent.combobox.actions.setValue",
61
61
  description: "Set the selected value programmatically.",
62
62
  examples: [{ args: { value: "it" }, note: 'Select the "it" option.' }],
63
- invoke: (n, d) => {
64
- n.setValue(d.value);
63
+ invoke: (i, c) => {
64
+ i.setValue(c.value);
65
65
  }
66
66
  },
67
67
  apply_filter: {
@@ -78,8 +78,8 @@ const Nt = {
78
78
  idempotent: !0,
79
79
  descriptionKey: "ui.agent.combobox.actions.applyFilter",
80
80
  description: "Set the filter query for the option list.",
81
- invoke: (n, d) => {
82
- n.setQuery(d.query);
81
+ invoke: (i, c) => {
82
+ i.setQuery(c.query);
83
83
  }
84
84
  },
85
85
  clear_selection: {
@@ -88,8 +88,8 @@ const Nt = {
88
88
  idempotent: !0,
89
89
  descriptionKey: "ui.agent.combobox.actions.clearSelection",
90
90
  description: "Clear the current selection.",
91
- invoke: (n) => {
92
- n.clear();
91
+ invoke: (i) => {
92
+ i.clear();
93
93
  }
94
94
  },
95
95
  open: {
@@ -97,8 +97,8 @@ const Nt = {
97
97
  idempotent: !0,
98
98
  descriptionKey: "ui.agent.combobox.actions.open",
99
99
  description: "Open the option list.",
100
- invoke: (n) => {
101
- n.open();
100
+ invoke: (i) => {
101
+ i.open();
102
102
  }
103
103
  },
104
104
  close: {
@@ -106,8 +106,8 @@ const Nt = {
106
106
  idempotent: !0,
107
107
  descriptionKey: "ui.agent.combobox.actions.close",
108
108
  description: "Close the option list.",
109
- invoke: (n) => {
110
- n.close();
109
+ invoke: (i) => {
110
+ i.close();
111
111
  }
112
112
  }
113
113
  },
@@ -123,7 +123,7 @@ const Nt = {
123
123
  description: "Each option emits its value as data-option-id."
124
124
  }
125
125
  }
126
- }, Rt = $(
126
+ }, Ct = j(
127
127
  [
128
128
  "ds:peer ds:w-full ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground",
129
129
  "ds:outline-none ds:border-0",
@@ -141,26 +141,26 @@ const Nt = {
141
141
  size: "md"
142
142
  }
143
143
  }
144
- ), Et = $(
144
+ ), zt = j(
145
145
  [
146
146
  "ds:group ds:relative ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:w-full",
147
- gt
147
+ At
148
148
  ].join(" "),
149
149
  {
150
150
  variants: {
151
151
  size: {
152
- sm: `${te.sm} ${se.sm}`,
153
- md: `${te.md} ${se.md}`,
154
- lg: `${te.lg} ${se.lg}`
152
+ sm: `${ne.sm} ${oe.sm}`,
153
+ md: `${ne.md} ${oe.md}`,
154
+ lg: `${ne.lg} ${oe.lg}`
155
155
  },
156
- tone: ht
156
+ tone: wt
157
157
  },
158
158
  defaultVariants: {
159
159
  size: "md",
160
160
  tone: "default"
161
161
  }
162
162
  }
163
- ), wt = $(
163
+ ), Dt = j(
164
164
  [
165
165
  "ds:z-[var(--z-popover)] ds:overflow-hidden ds:w-[var(--radix-popover-trigger-width)]",
166
166
  // A guard: the list is as wide as the field, so only a field that is
@@ -169,18 +169,16 @@ const Nt = {
169
169
  "ds:rounded-[var(--radius-md)] ds:border ds:border-border ds:bg-background ds:text-foreground",
170
170
  "ds:shadow-[var(--shadow-lg)]",
171
171
  "ds:animate-in ds:fade-in ds:zoom-in-95",
172
- "ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out",
173
- "ds:data-[state=closed]:zoom-out-95",
174
172
  "ds:data-[side=bottom]:slide-in-from-top-2",
175
173
  "ds:data-[side=top]:slide-in-from-bottom-2",
176
174
  "ds:motion-reduce:animate-none"
177
175
  ].join(" ")
178
- ), ve = $(
176
+ ), Re = j(
179
177
  [
180
178
  "ds:relative ds:flex ds:cursor-pointer ds:items-center ds:gap-[var(--spacing-sm)]",
181
179
  "ds:rounded-[var(--radius-sm)]",
182
180
  "ds:text-foreground ds:outline-none ds:select-none",
183
- ct.selected,
181
+ gt.selected,
184
182
  "ds:aria-disabled:pointer-events-none ds:aria-disabled:opacity-50"
185
183
  ].join(" "),
186
184
  {
@@ -195,293 +193,309 @@ const Nt = {
195
193
  size: "md"
196
194
  }
197
195
  }
198
- ), _t = [
196
+ ), Tt = [
199
197
  "ds:ps-3 ds:pe-3 ds:py-1.5",
200
198
  "type-eyebrow ds:text-muted-foreground"
201
- ].join(" "), It = "ds:max-h-[18rem] ds:overflow-y-auto ds:p-[var(--spacing-xs)]", kt = "ds:ps-3 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", zt = {
199
+ ].join(" "), Ot = "ds:max-h-[18rem] ds:overflow-y-auto ds:p-[var(--spacing-xs)]", Pt = "ds:ps-3 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", Vt = {
202
200
  sm: "ds:size-3.5",
203
201
  md: "ds:size-4",
204
202
  lg: "ds:size-5"
205
203
  };
206
- function At({
207
- search: n,
208
- label: d,
209
- iconClass: j,
204
+ function Lt({
205
+ search: i,
206
+ label: c,
207
+ iconClass: q,
210
208
  size: H,
211
- onSelect: q
209
+ onSelect: B
212
210
  }) {
213
- return ot((B) => B.filtered.count) > 0 ? null : /* @__PURE__ */ x(
214
- y.Item,
211
+ return ut((U) => U.filtered.count) > 0 ? null : /* @__PURE__ */ y(
212
+ S.Item,
215
213
  {
216
- value: `__combobox-create__${n}`,
214
+ value: `__combobox-create__${i}`,
217
215
  keywords: [],
218
216
  forceMount: !0,
219
- onSelect: () => q(n),
220
- className: ve({ size: H }),
217
+ onSelect: () => B(i),
218
+ className: Re({ size: H }),
221
219
  children: [
222
- /* @__PURE__ */ o(
220
+ /* @__PURE__ */ r(
223
221
  "span",
224
222
  {
225
223
  "aria-hidden": "true",
226
- className: `ds:inline-flex ds:items-center ds:justify-center ${j}`
224
+ className: `ds:inline-flex ds:items-center ds:justify-center ${q}`
227
225
  }
228
226
  ),
229
- /* @__PURE__ */ o("span", { className: "ds:flex-1 ds:truncate", children: d })
227
+ /* @__PURE__ */ r("span", { className: "ds:flex-1 ds:truncate", children: c })
230
228
  ]
231
229
  }
232
230
  );
233
231
  }
234
- const he = Qe(
232
+ const Ne = lt(
235
233
  function({
236
- options: d,
237
- value: j,
234
+ options: c,
235
+ value: q,
238
236
  defaultValue: H,
239
- onValueChange: q,
240
- placeholder: oe,
241
- clearable: B = !1,
242
- disabled: ge,
243
- readOnly: xe,
244
- required: ye,
245
- name: Se,
246
- id: re,
247
- size: _ = "md",
248
- tone: Ne = "default",
249
- filter: L,
250
- allowCreate: Re = !1,
251
- onCreate: U,
252
- open: ne,
253
- onOpenChange: S,
237
+ onValueChange: B,
238
+ placeholder: ie,
239
+ clearable: U = !1,
240
+ disabled: Ee,
241
+ readOnly: we,
242
+ required: Ae,
243
+ name: _e,
244
+ id: ae,
245
+ size: A = "md",
246
+ tone: Ie = "default",
247
+ filter: K,
248
+ allowCreate: ke = !1,
249
+ onCreate: M,
250
+ open: le,
251
+ onOpenChange: R,
254
252
  onQueryChange: a,
255
- emptyMessage: Ee,
256
- className: we,
257
- "aria-label": K,
258
- "aria-invalid": _e,
259
- "aria-describedby": Ie,
260
- autoComplete: A,
261
- matchAutofill: ie,
262
- wrapOptionLabels: ae = !1
263
- }, ke) {
264
- const { t: I } = rt("ui"), v = nt(), C = et(it) !== null, [ze, D] = vt({
265
- value: j,
253
+ emptyMessage: Fe,
254
+ className: Ce,
255
+ "aria-label": G,
256
+ "aria-invalid": ze,
257
+ "aria-describedby": De,
258
+ autoComplete: D,
259
+ matchAutofill: ce,
260
+ wrapOptionLabels: de = !1
261
+ }, Te) {
262
+ const { t: _ } = ft("ui"), h = mt(), T = ct(pt) !== null, [Oe, O] = Et({
263
+ value: q,
266
264
  defaultValue: H ?? "",
267
- onChange: q
268
- }), b = ze ?? "", R = Z(
269
- () => d.find((e) => e.value === b),
270
- [d, b]
271
- ), f = (R == null ? void 0 : R.label) ?? "", [p, c] = Q(f), [Ae, le] = Q(!1), F = ne !== void 0, i = F ? ne : Ae, k = m(!1), T = f !== "" && p === f, N = m(null), de = m(null), ce = m(null);
272
- at(v, N);
273
- const [Ce, De] = Q(0), ue = m(!1);
274
- ee(() => {
275
- if (!ue.current) {
276
- ue.current = !0;
265
+ onChange: B
266
+ }), p = Oe ?? "", N = te(
267
+ () => c.find((e) => e.value === p),
268
+ [c, p]
269
+ ), m = (N == null ? void 0 : N.label) ?? "", [b, d] = L(m), [Pe, ue] = L(!1), P = le !== void 0, n = P ? le : Pe, I = f(!1), k = m !== "" && b === m, g = f(null), fe = f(null), V = f(null), [me, Ve] = L(null);
270
+ bt(h, g);
271
+ const [Le, $e] = L(0), pe = f(!1);
272
+ re(() => {
273
+ if (!pe.current) {
274
+ pe.current = !0;
277
275
  return;
278
276
  }
279
- T && De((e) => e + 1);
280
- }, [T]);
281
- const O = m(!1);
277
+ k && $e((e) => e + 1);
278
+ }, [k]);
279
+ const F = f(!1);
282
280
  E(() => {
283
- O.current = !1;
284
- }, [p, i]);
285
- const M = m(!1);
286
- ee(() => {
287
- if (!i || !T || !b) return;
288
- const e = ce.current, t = e == null ? void 0 : e.querySelector(
289
- `[data-option-id="${CSS.escape(b)}"]`
281
+ F.current = !1;
282
+ }, [b, n]);
283
+ const W = f(!1), be = f(null);
284
+ re(() => {
285
+ var s;
286
+ const e = V.current;
287
+ if (e !== me || !n || !k || !p || e === be.current) return;
288
+ const t = e == null ? void 0 : e.querySelector(
289
+ `[data-option-id="${CSS.escape(p)}"]`
290
290
  );
291
291
  if (!e || !t) return;
292
- const r = e.getBoundingClientRect(), l = t.getBoundingClientRect(), s = e.offsetHeight > 0 ? r.height / e.offsetHeight : 1, g = (l.top - r.top) / (s || 1), Je = l.height / (s || 1);
293
- e.scrollTop += g - (e.clientHeight - Je) / 2, M.current = !0;
292
+ be.current = e;
293
+ const o = () => {
294
+ if (F.current) return;
295
+ const v = e.getBoundingClientRect(), ye = t.getBoundingClientRect(), Se = e.offsetHeight > 0 ? v.height / e.offsetHeight : 1, ot = (ye.top - v.top) / (Se || 1), it = ye.height / (Se || 1);
296
+ e.scrollTop += ot - (e.clientHeight - it) / 2;
297
+ };
298
+ o();
299
+ const l = requestAnimationFrame(o);
300
+ W.current = !0;
294
301
  try {
295
302
  t.dispatchEvent(new PointerEvent("pointermove", { bubbles: !0 }));
296
303
  } finally {
297
- M.current = !1;
304
+ W.current = !1;
298
305
  }
299
- }, [i]);
300
- const V = A && A !== "off" ? A : void 0;
301
- ee(() => {
302
- const e = N.current;
303
- e && (e.setAttribute("aria-expanded", String(i)), V && e.setAttribute("autocomplete", V));
304
- });
305
- const G = m(!1);
306
+ return (s = g.current) == null || s.setAttribute("aria-activedescendant", t.id), () => cancelAnimationFrame(l);
307
+ }, [n, me, k, p]);
308
+ const C = D && D !== "off" ? D : void 0, X = se(() => {
309
+ var t;
310
+ const e = g.current;
311
+ e && (e.setAttribute("aria-expanded", String(n)), n && ((t = V.current) != null && t.id) ? e.setAttribute("aria-controls", V.current.id) : n || (e.removeAttribute("aria-controls"), e.removeAttribute("aria-activedescendant")), C && e.setAttribute("autocomplete", C));
312
+ }, [n, C]);
313
+ re(X);
314
+ const je = se(
315
+ (e) => {
316
+ V.current = e, X(), e && Ve(e);
317
+ },
318
+ [X]
319
+ ), Y = f(!1);
306
320
  E(() => {
307
- const e = N.current;
308
- if (!e || !V) return;
309
- const t = (r) => {
310
- const l = r.inputType;
311
- G.current = !l || l === "insertReplacementText";
321
+ const e = g.current;
322
+ if (!e || !C) return;
323
+ const t = (o) => {
324
+ const l = o.inputType;
325
+ Y.current = !l || l === "insertReplacementText";
312
326
  };
313
327
  return e.addEventListener("input", t), () => e.removeEventListener("input", t);
314
- }, [V]), E(() => {
315
- i || c(f);
316
- }, [f, i]);
317
- const z = (C ? v.disabled : !1) || !!ge, h = !!xe, Fe = (C ? v.required : !1) || !!ye, fe = C ? v.invalid : !!_e, Te = fe ? "error" : Ne, Oe = C && v.describedBy ? v.describedBy : Ie, W = oe ?? I("inputs.combobox.placeholder", "Search…"), Ve = Z(
318
- () => (e, t, r) => {
319
- if (k.current || f !== "" && t === f) return 1;
320
- const l = w(e), s = w(t), g = r == null ? void 0 : r.map(w);
321
- return L ? L(
328
+ }, [C]), E(() => {
329
+ n || d(m);
330
+ }, [m, n]);
331
+ const z = (T ? h.disabled : !1) || !!Ee, x = !!we, qe = (T ? h.required : !1) || !!Ae, ve = T ? h.invalid : !!ze, He = ve ? "error" : Ie, Be = T && h.describedBy ? h.describedBy : De, J = ie ?? _("inputs.combobox.placeholder", "Search…"), Ue = te(
332
+ () => (e, t, o) => {
333
+ if (I.current || m !== "" && t === m) return 1;
334
+ const l = w(e), s = w(t), v = o == null ? void 0 : o.map(w);
335
+ return K ? K(
322
336
  l,
323
337
  s,
324
- (g == null ? void 0 : g[0]) ?? ""
325
- ) : st(
338
+ (v == null ? void 0 : v[0]) ?? ""
339
+ ) : dt(
326
340
  l,
327
341
  s,
328
- g
342
+ v
329
343
  );
330
344
  },
331
- [L, f]
332
- ), X = (e) => {
333
- D(e);
345
+ [K, m]
346
+ ), Z = (e) => {
347
+ O(e);
334
348
  }, u = (e) => {
335
- F || le(e), S == null || S(e);
336
- }, Pe = (e) => {
337
- const t = d.find((r) => r.value === e);
338
- X(e), c((t == null ? void 0 : t.label) ?? ""), u(!1);
339
- }, $e = (e) => {
340
- U == null || U(e), u(!1);
341
- }, je = (e) => {
349
+ P || ue(e), R == null || R(e);
350
+ }, Ke = (e) => {
351
+ const t = c.find((o) => o.value === e);
352
+ Z(e), d((t == null ? void 0 : t.label) ?? ""), u(!1);
353
+ }, Me = (e) => {
354
+ M == null || M(e), u(!1);
355
+ }, Ge = (e) => {
342
356
  var l;
343
357
  const t = w(e.trim());
344
358
  if (!t) return;
345
- const r = ie ? ie(e.trim()) : (l = d.find(
359
+ const o = ce ? ce(e.trim()) : (l = c.find(
346
360
  (s) => w(s.value) === t || w(s.label) === t
347
361
  )) == null ? void 0 : l.value;
348
- return d.find((s) => s.value === r && !s.disabled);
349
- }, He = (e) => {
350
- if (!h) {
351
- if (G.current) {
352
- G.current = !1;
353
- const t = je(e);
362
+ return c.find((s) => s.value === o && !s.disabled);
363
+ }, We = (e) => {
364
+ if (!x) {
365
+ if (Y.current) {
366
+ Y.current = !1;
367
+ const t = Ge(e);
354
368
  if (t) {
355
- X(t.value), c(t.label), i && u(!1);
369
+ Z(t.value), d(t.label), n && u(!1);
356
370
  return;
357
371
  }
358
- if (document.activeElement !== N.current) {
359
- c(f);
372
+ if (document.activeElement !== g.current) {
373
+ d(m);
360
374
  return;
361
375
  }
362
376
  }
363
- c(e), k.current || a == null || a(e), !i && e.length > 0 && !k.current && u(!0);
377
+ d(e), I.current || a == null || a(e), !n && e.length > 0 && !I.current && u(!0);
364
378
  }
365
- }, qe = () => {
366
- !z && !h && u(!0);
367
- }, Be = () => {
368
- !i && !z && !h && u(!0);
369
- }, Le = () => {
370
- k.current = !0;
371
- }, Ue = () => {
379
+ }, Xe = () => {
380
+ !z && !x && u(!0);
381
+ }, Ye = () => {
382
+ !n && !z && !x && u(!0);
383
+ }, Je = () => {
384
+ I.current = !0;
385
+ }, Ze = () => {
372
386
  var t;
373
- if (k.current = !1, h) return;
374
- const e = ((t = N.current) == null ? void 0 : t.value) ?? "";
375
- c(e), a == null || a(e), e.length > 0 && u(!0);
376
- }, Ke = (e) => {
387
+ if (I.current = !1, x) return;
388
+ const e = ((t = g.current) == null ? void 0 : t.value) ?? "";
389
+ d(e), a == null || a(e), e.length > 0 && u(!0);
390
+ }, Qe = (e) => {
377
391
  if (!e.nativeEvent.isComposing) {
378
- if ((e.key === "ArrowDown" || e.key === "ArrowUp") && !i && !z && !h) {
392
+ if ((e.key === "ArrowDown" || e.key === "ArrowUp") && !n && !z && !x) {
379
393
  e.preventDefault(), u(!0);
380
394
  return;
381
395
  }
382
396
  if ((e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Home" || e.key === "End" || /* cmdk's own Ctrl+N, J, P and K move the highlight too. */
383
- e.ctrlKey && ["n", "j", "p", "k"].includes(e.key)) && (O.current = !0), e.key === "Enter" && (!i || !O.current && (T || p === ""))) {
384
- e.preventDefault(), i && u(!1);
397
+ e.ctrlKey && ["n", "j", "p", "k"].includes(e.key)) && (F.current = !0), e.key === "Enter" && (!n || !F.current && (k || b === ""))) {
398
+ e.preventDefault(), n && u(!1);
385
399
  return;
386
400
  }
387
- e.key === "Escape" && i && (e.preventDefault(), u(!1), c(f));
401
+ e.key === "Escape" && n && (e.preventDefault(), u(!1), d(m));
388
402
  }
389
- }, Me = (e) => {
403
+ }, et = (e) => {
390
404
  var t;
391
- e.preventDefault(), e.stopPropagation(), X(""), c(""), a == null || a(""), u(!0), (t = N.current) == null || t.focus();
392
- }, Ge = (e) => {
393
- h && e || (u(e), e || c(f));
394
- }, me = m(b);
395
- E(() => {
396
- me.current = b;
397
- }, [b]);
398
- const pe = m(p);
405
+ e.preventDefault(), e.stopPropagation(), Z(""), d(""), a == null || a(""), u(!0), (t = g.current) == null || t.focus();
406
+ }, tt = (e) => {
407
+ x && e || (u(e), e || d(m));
408
+ }, he = f(p);
399
409
  E(() => {
400
- pe.current = p;
410
+ he.current = p;
401
411
  }, [p]);
402
- const be = m(i);
412
+ const ge = f(b);
403
413
  E(() => {
404
- be.current = i;
405
- }, [i]);
406
- const Y = tt(
414
+ ge.current = b;
415
+ }, [b]);
416
+ const xe = f(n);
417
+ E(() => {
418
+ xe.current = n;
419
+ }, [n]);
420
+ const Q = se(
407
421
  (e) => {
408
- F || le(e), S == null || S(e);
422
+ P || ue(e), R == null || R(e);
409
423
  },
410
- [F, S]
411
- ), We = Z(
424
+ [P, R]
425
+ ), st = te(
412
426
  () => ({
413
- getValue: () => me.current || null,
414
- getQuery: () => pe.current,
415
- getIsOpen: () => be.current,
427
+ getValue: () => he.current || null,
428
+ getQuery: () => ge.current,
429
+ getIsOpen: () => xe.current,
416
430
  setValue: (e) => {
417
431
  const t = e ?? "";
418
- D(t);
419
- const r = d.find((l) => l.value === t);
420
- c((r == null ? void 0 : r.label) ?? "");
432
+ O(t);
433
+ const o = c.find((l) => l.value === t);
434
+ d((o == null ? void 0 : o.label) ?? "");
421
435
  },
422
436
  setQuery: (e) => {
423
- c(e), a == null || a(e);
437
+ d(e), a == null || a(e);
424
438
  },
425
439
  clear: () => {
426
- D(""), c(""), a == null || a("");
440
+ O(""), d(""), a == null || a("");
427
441
  },
428
- open: () => Y(!0),
429
- close: () => Y(!1)
442
+ open: () => Q(!0),
443
+ close: () => Q(!1)
430
444
  }),
431
- [D, d, Y, a]
445
+ [O, c, Q, a]
432
446
  );
433
- xt(Nt, We, re);
434
- const Xe = B && !!b && !z && !h, Ye = dt(d), J = zt[_];
435
- return /* @__PURE__ */ o(P.Root, { open: i, onOpenChange: Ge, children: /* @__PURE__ */ x(
436
- y,
447
+ _t(Ft, st, ae);
448
+ const rt = U && !!p && !z && !x, nt = ht(c), ee = Vt[A];
449
+ return /* @__PURE__ */ r($.Root, { open: n, onOpenChange: tt, children: /* @__PURE__ */ y(
450
+ S,
437
451
  {
438
- filter: Ve,
452
+ filter: Ue,
439
453
  shouldFilter: !0,
440
454
  loop: !0,
441
- label: K ?? (v.label || W),
455
+ label: G ?? (h.label || J),
442
456
  className: "ds:w-full",
443
457
  children: [
444
- /* @__PURE__ */ o(P.Anchor, { asChild: !0, children: /* @__PURE__ */ x(
458
+ /* @__PURE__ */ r($.Anchor, { asChild: !0, children: /* @__PURE__ */ y(
445
459
  "div",
446
460
  {
447
- ref: de,
448
- className: Et({
449
- size: _,
450
- tone: Te,
451
- className: we
461
+ ref: fe,
462
+ className: zt({
463
+ size: A,
464
+ tone: He,
465
+ className: Ce
452
466
  }),
453
467
  "data-component": "combobox",
454
- "data-component-id": re,
468
+ "data-component-id": ae,
455
469
  children: [
456
- /* @__PURE__ */ o(
457
- y.Input,
470
+ /* @__PURE__ */ r(
471
+ S.Input,
458
472
  {
459
- ref: lt(ke, N),
460
- value: p,
461
- onValueChange: He,
462
- dir: R == null ? void 0 : R.dir,
463
- name: Se,
464
- placeholder: W,
473
+ ref: vt(Te, g),
474
+ value: b,
475
+ onValueChange: We,
476
+ dir: N == null ? void 0 : N.dir,
477
+ name: _e,
478
+ placeholder: J,
465
479
  disabled: z,
466
- readOnly: h,
467
- required: Fe,
468
- autoComplete: A,
469
- "aria-describedby": Oe,
470
- "aria-invalid": fe || void 0,
471
- onFocus: qe,
472
- onClick: Be,
473
- onKeyDown: Ke,
474
- onCompositionStart: Le,
475
- onCompositionEnd: Ue,
476
- className: Rt({ size: _ })
480
+ readOnly: x,
481
+ required: qe,
482
+ autoComplete: D,
483
+ "aria-describedby": Be,
484
+ "aria-invalid": ve || void 0,
485
+ onFocus: Xe,
486
+ onClick: Ye,
487
+ onKeyDown: Qe,
488
+ onCompositionStart: Je,
489
+ onCompositionEnd: Ze,
490
+ className: Ct({ size: A })
477
491
  }
478
492
  ),
479
- Xe ? /* @__PURE__ */ o(
493
+ rt ? /* @__PURE__ */ r(
480
494
  "button",
481
495
  {
482
496
  type: "button",
483
- "aria-label": I("inputs.combobox.clear", "Clear selection"),
484
- onClick: Me,
497
+ "aria-label": _("inputs.combobox.clear", "Clear selection"),
498
+ onClick: et,
485
499
  onPointerDown: (e) => e.stopPropagation(),
486
500
  className: [
487
501
  "ds:inline-flex ds:items-center ds:justify-center ds:rounded-[var(--radius-sm)]",
@@ -493,66 +507,72 @@ const he = Qe(
493
507
  /* A 24px hit area with no visual change. */
494
508
  "ds:relative ds:before:absolute ds:before:inset-[calc(var(--spacing-xs)*-1)] ds:before:content-['']"
495
509
  ].join(" "),
496
- children: /* @__PURE__ */ o(yt, { "aria-hidden": "true", className: "ds:size-3.5" })
510
+ children: /* @__PURE__ */ r(It, { "aria-hidden": "true", className: "ds:size-3.5" })
497
511
  }
498
512
  ) : null
499
513
  ]
500
514
  }
501
515
  ) }),
502
- /* @__PURE__ */ o(P.Portal, { forceMount: !0, children: /* @__PURE__ */ o(
503
- P.Content,
516
+ /* @__PURE__ */ r($.Portal, { forceMount: !0, children: n ? /* @__PURE__ */ r(
517
+ $.Content,
504
518
  {
505
- forceMount: !0,
506
- hidden: !i,
507
- "aria-label": K ?? I("inputs.combobox.popupLabel", "Options"),
519
+ "aria-label": G ?? _("inputs.combobox.popupLabel", "Options"),
508
520
  onOpenAutoFocus: (e) => e.preventDefault(),
509
521
  onCloseAutoFocus: (e) => e.preventDefault(),
510
522
  onInteractOutside: (e) => {
511
- var r;
523
+ var o;
512
524
  const t = e.target;
513
- t && ((r = de.current) != null && r.contains(t)) && e.preventDefault();
525
+ t && ((o = fe.current) != null && o.contains(t)) && e.preventDefault();
514
526
  },
515
527
  sideOffset: 4,
516
528
  align: "start",
517
- className: wt(),
518
- children: /* @__PURE__ */ x(
519
- y.List,
529
+ className: Dt(),
530
+ children: /* @__PURE__ */ y(
531
+ S.List,
520
532
  {
521
- ref: ce,
522
- label: K ?? (v.label || W),
523
- className: It,
533
+ ref: je,
534
+ label: G ?? (h.label || J),
535
+ className: Ot,
524
536
  onPointerMove: () => {
525
- M.current || (O.current = !0);
537
+ W.current || (F.current = !0);
526
538
  },
527
539
  onMouseDown: (e) => e.preventDefault(),
528
540
  children: [
529
- /* @__PURE__ */ o(y.Empty, { className: kt, children: /* @__PURE__ */ o("div", { role: "option", "aria-selected": !1, "aria-disabled": "true", children: Ee ?? I("inputs.combobox.empty", "No results found") }) }),
530
- Ye.map(({ group: e, items: t }, r) => {
541
+ /* @__PURE__ */ r(S.Empty, { className: Pt, children: /* @__PURE__ */ r(
542
+ "div",
543
+ {
544
+ role: "option",
545
+ "aria-selected": !1,
546
+ "aria-disabled": "true",
547
+ children: Fe ?? _("inputs.combobox.empty", "No results found")
548
+ }
549
+ ) }),
550
+ nt.map(({ group: e, items: t }, o) => {
531
551
  const l = t.map((s) => {
532
- const g = s.value === b;
533
- return /* @__PURE__ */ x(
534
- y.Item,
552
+ const v = s.value === p;
553
+ return /* @__PURE__ */ y(
554
+ S.Item,
535
555
  {
536
556
  value: s.value,
537
557
  "data-option-id": s.value,
538
558
  keywords: [s.label],
539
559
  disabled: s.disabled,
540
- onSelect: Pe,
541
- className: ve({ size: _ }),
560
+ onSelect: Ke,
561
+ className: Re({ size: A }),
542
562
  children: [
543
- /* @__PURE__ */ o(
563
+ /* @__PURE__ */ r(
544
564
  "span",
545
565
  {
546
566
  "aria-hidden": "true",
547
- className: `ds:inline-flex ds:items-center ds:justify-center ${J}`,
548
- children: g ? /* @__PURE__ */ o(St, { className: J }) : null
567
+ className: `ds:inline-flex ds:items-center ds:justify-center ${ee}`,
568
+ children: v ? /* @__PURE__ */ r(kt, { className: ee }) : null
549
569
  }
550
570
  ),
551
571
  s.startAdornment ? (
552
572
  // Decorative by contract — the option's accessible
553
573
  // name comes from its label. Hide so a text-bearing
554
574
  // adornment can't leak into the computed name.
555
- /* @__PURE__ */ o(
575
+ /* @__PURE__ */ r(
556
576
  "span",
557
577
  {
558
578
  "aria-hidden": "true",
@@ -561,23 +581,23 @@ const he = Qe(
561
581
  }
562
582
  )
563
583
  ) : null,
564
- s.description || ae ? (
584
+ s.description || de ? (
565
585
  // Stacked: the label and its end content on one
566
586
  // row, the description on a line of its own
567
587
  // under them. In this DOM order the option's
568
588
  // name reads label, end content, description.
569
- /* @__PURE__ */ x(
589
+ /* @__PURE__ */ y(
570
590
  "span",
571
591
  {
572
- className: `${ut} ds:py-[var(--spacing-xs)]`,
592
+ className: `${xt} ds:py-[var(--spacing-xs)]`,
573
593
  children: [
574
- /* @__PURE__ */ x("span", { className: ft, children: [
575
- /* @__PURE__ */ o(
594
+ /* @__PURE__ */ y("span", { className: yt, children: [
595
+ /* @__PURE__ */ r(
576
596
  "span",
577
597
  {
578
598
  dir: s.dir,
579
- className: mt({
580
- wrap: ae,
599
+ className: St({
600
+ wrap: de,
581
601
  className: "ds:flex-1"
582
602
  }),
583
603
  children: s.label
@@ -585,13 +605,13 @@ const he = Qe(
585
605
  ),
586
606
  s.endContent ? (
587
607
  // Announced, as below.
588
- /* @__PURE__ */ o("span", { className: pt, children: s.endContent })
608
+ /* @__PURE__ */ r("span", { className: Rt, children: s.endContent })
589
609
  ) : null
590
610
  ] }),
591
- s.description ? /* @__PURE__ */ o(
611
+ s.description ? /* @__PURE__ */ r(
592
612
  "span",
593
613
  {
594
- className: bt({
614
+ className: Nt({
595
615
  tone: s.descriptionTone
596
616
  }),
597
617
  children: s.description
@@ -600,8 +620,8 @@ const he = Qe(
600
620
  ]
601
621
  }
602
622
  )
603
- ) : /* @__PURE__ */ x(Ze, { children: [
604
- /* @__PURE__ */ o(
623
+ ) : /* @__PURE__ */ y(at, { children: [
624
+ /* @__PURE__ */ r(
605
625
  "span",
606
626
  {
607
627
  dir: s.dir,
@@ -615,7 +635,7 @@ const he = Qe(
615
635
  // (a price, a count) and must reach the
616
636
  // option's accessible name. `ms-auto` pins it
617
637
  // to the inline-end and flips under RTL.
618
- /* @__PURE__ */ o("span", { className: "ds:inline-flex ds:items-center ds:ms-auto ds:shrink-0", children: s.endContent })
638
+ /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:ms-auto ds:shrink-0", children: s.endContent })
619
639
  ) : null
620
640
  ] })
621
641
  ]
@@ -623,46 +643,46 @@ const he = Qe(
623
643
  `${s.value}\0${s.label}`
624
644
  );
625
645
  });
626
- return e ? /* @__PURE__ */ o(
627
- y.Group,
646
+ return e ? /* @__PURE__ */ r(
647
+ S.Group,
628
648
  {
629
- heading: /* @__PURE__ */ o("span", { className: _t, children: e }),
649
+ heading: /* @__PURE__ */ r("span", { className: Tt, children: e }),
630
650
  children: l
631
651
  },
632
652
  `group-${e}`
633
- ) : /* @__PURE__ */ o(y.Group, { children: l }, `group-${r}`);
653
+ ) : /* @__PURE__ */ r(S.Group, { children: l }, `group-${o}`);
634
654
  }),
635
- Re && p.length > 0 ? /* @__PURE__ */ o(
636
- At,
655
+ ke && b.length > 0 ? /* @__PURE__ */ r(
656
+ Lt,
637
657
  {
638
- search: p,
639
- label: I("inputs.combobox.create", 'Create "{{value}}"', {
640
- value: p
658
+ search: b,
659
+ label: _("inputs.combobox.create", 'Create "{{value}}"', {
660
+ value: b
641
661
  }),
642
- iconClass: J,
643
- size: _,
644
- onSelect: $e
662
+ iconClass: ee,
663
+ size: A,
664
+ onSelect: Me
645
665
  }
646
666
  ) : null
647
667
  ]
648
668
  },
649
- Ce
669
+ Le
650
670
  )
651
671
  }
652
- ) })
672
+ ) : null })
653
673
  ]
654
674
  }
655
675
  ) });
656
676
  }
657
677
  );
658
- he.displayName = "Combobox";
659
- const Wt = he;
678
+ Ne.displayName = "Combobox";
679
+ const ss = Ne;
660
680
  export {
661
- Wt as C,
662
- wt as a,
663
- Rt as b,
664
- Nt as c,
665
- ve as d,
666
- Et as e
681
+ ss as C,
682
+ Dt as a,
683
+ Ct as b,
684
+ Ft as c,
685
+ Re as d,
686
+ zt as e
667
687
  };
668
- //# sourceMappingURL=combobox-CDPm_n0p.js.map
688
+ //# sourceMappingURL=combobox-D-gpgEDy.js.map