@ariakit/react-core 0.4.3 → 0.4.5

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 (235) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/cjs/__chunks/{7DQ2LBH2.cjs → 3HMQOCLF.cjs} +23 -5
  3. package/cjs/__chunks/{AJF5DT5A.cjs → AY5J25V7.cjs} +2 -2
  4. package/cjs/__chunks/{HFNM6QV4.cjs → DAOFDKV2.cjs} +1 -1
  5. package/cjs/__chunks/{GYHP7IYG.cjs → DFXPO2ED.cjs} +2 -2
  6. package/cjs/__chunks/{3C4RFBCG.cjs → EYZZO5IT.cjs} +1 -1
  7. package/cjs/__chunks/{3MKOUH5M.cjs → GZ2NNSLV.cjs} +4 -4
  8. package/cjs/__chunks/ISJGSS4S.cjs +16 -0
  9. package/cjs/__chunks/{A356CGND.cjs → JDCTLYQ4.cjs} +1 -1
  10. package/cjs/__chunks/{T5BWR4CB.cjs → KDTFHBKU.cjs} +2 -2
  11. package/cjs/__chunks/{NZSB7HSZ.cjs → LY4LCJM6.cjs} +2 -2
  12. package/cjs/__chunks/{DCTXNU2X.cjs → N43E53E6.cjs} +3 -3
  13. package/cjs/__chunks/{IHFGURUM.cjs → NRPEUNJB.cjs} +2 -2
  14. package/cjs/__chunks/PVLZGFP6.cjs +34 -0
  15. package/cjs/__chunks/{CWS5RZSU.cjs → QJDA4LG6.cjs} +28 -17
  16. package/cjs/__chunks/{NDVZ37O3.cjs → RG6U7KAS.cjs} +22 -4
  17. package/cjs/__chunks/YWAHOWYE.cjs +25 -0
  18. package/cjs/__chunks/{3XXW4Y4D.cjs → Z2VL7JHX.cjs} +2 -2
  19. package/cjs/checkbox/checkbox-check.cjs +2 -2
  20. package/cjs/collection/collection-renderer.d.cts +0 -2
  21. package/cjs/collection/collection-renderer.d.ts +0 -2
  22. package/cjs/combobox/combobox-cancel.cjs +4 -4
  23. package/cjs/combobox/combobox-disclosure.cjs +4 -4
  24. package/cjs/combobox/combobox-item-check.cjs +2 -2
  25. package/cjs/combobox/combobox-item.cjs +19 -9
  26. package/cjs/combobox/combobox-item.d.cts +22 -12
  27. package/cjs/combobox/combobox-item.d.ts +22 -12
  28. package/cjs/combobox/combobox-popover.cjs +41 -16
  29. package/cjs/combobox/combobox-provider.cjs +3 -2
  30. package/cjs/combobox/combobox-store.cjs +6 -2
  31. package/cjs/combobox/combobox-store.d.cts +12 -4
  32. package/cjs/combobox/combobox-store.d.ts +12 -4
  33. package/cjs/combobox/combobox-value.cjs +32 -0
  34. package/cjs/combobox/combobox-value.d.cts +41 -0
  35. package/cjs/combobox/combobox-value.d.ts +41 -0
  36. package/cjs/combobox/combobox.cjs +79 -32
  37. package/cjs/combobox/combobox.d.cts +20 -0
  38. package/cjs/combobox/combobox.d.ts +20 -0
  39. package/cjs/composite/composite-input.cjs +91 -6
  40. package/cjs/composite/composite-input.d.cts +2 -0
  41. package/cjs/composite/composite-input.d.ts +2 -0
  42. package/cjs/composite/composite-item.cjs +3 -3
  43. package/cjs/composite/composite-overflow-disclosure.cjs +3 -3
  44. package/cjs/composite/composite-overflow.cjs +12 -12
  45. package/cjs/composite/composite-renderer.d.cts +0 -2
  46. package/cjs/composite/composite-renderer.d.ts +0 -2
  47. package/cjs/dialog/dialog-backdrop.cjs +3 -3
  48. package/cjs/dialog/dialog-dismiss.cjs +2 -2
  49. package/cjs/dialog/dialog.cjs +11 -11
  50. package/cjs/dialog/dialog.d.cts +4 -0
  51. package/cjs/dialog/dialog.d.ts +4 -0
  52. package/cjs/dialog/utils/disable-tree.cjs +3 -3
  53. package/cjs/dialog/utils/use-prevent-body-scroll.cjs +3 -3
  54. package/cjs/form/form-checkbox.cjs +1 -1
  55. package/cjs/form/form-push.cjs +1 -1
  56. package/cjs/form/form-radio.cjs +4 -4
  57. package/cjs/hovercard/hovercard-disclosure.cjs +1 -1
  58. package/cjs/hovercard/hovercard-dismiss.cjs +4 -4
  59. package/cjs/hovercard/hovercard.cjs +13 -13
  60. package/cjs/menu/menu-button-arrow.cjs +2 -2
  61. package/cjs/menu/menu-dismiss.cjs +4 -4
  62. package/cjs/menu/menu-item-check.cjs +2 -2
  63. package/cjs/menu/menu-item-checkbox.cjs +4 -4
  64. package/cjs/menu/menu-item-radio.cjs +7 -7
  65. package/cjs/menu/menu-item.cjs +4 -4
  66. package/cjs/menu/menu.cjs +14 -14
  67. package/cjs/popover/popover-disclosure-arrow.cjs +2 -2
  68. package/cjs/popover/popover-dismiss.cjs +3 -3
  69. package/cjs/popover/popover.cjs +12 -12
  70. package/cjs/radio/radio.cjs +4 -4
  71. package/cjs/select/select-arrow.cjs +3 -3
  72. package/cjs/select/select-item-check.cjs +2 -2
  73. package/cjs/select/select-item.cjs +4 -4
  74. package/cjs/select/select-popover.cjs +13 -13
  75. package/cjs/select/select-value.d.cts +8 -7
  76. package/cjs/select/select-value.d.ts +8 -7
  77. package/cjs/select/select.cjs +4 -4
  78. package/cjs/tab/tab-panel.cjs +2 -2
  79. package/cjs/tab/tab.cjs +7 -7
  80. package/cjs/tag/tag-context.cjs +25 -0
  81. package/cjs/tag/tag-context.d.cts +21 -0
  82. package/cjs/tag/tag-context.d.ts +21 -0
  83. package/cjs/tag/tag-input.cjs +191 -0
  84. package/cjs/tag/tag-input.d.cts +122 -0
  85. package/cjs/tag/tag-input.d.ts +122 -0
  86. package/cjs/tag/tag-list-label.cjs +56 -0
  87. package/cjs/tag/tag-list-label.d.cts +55 -0
  88. package/cjs/tag/tag-list-label.d.ts +55 -0
  89. package/cjs/tag/tag-list.cjs +141 -0
  90. package/cjs/tag/tag-list.d.cts +58 -0
  91. package/cjs/tag/tag-list.d.ts +58 -0
  92. package/cjs/tag/tag-provider.cjs +26 -0
  93. package/cjs/tag/tag-provider.d.cts +29 -0
  94. package/cjs/tag/tag-provider.d.ts +29 -0
  95. package/cjs/tag/tag-remove.cjs +119 -0
  96. package/cjs/tag/tag-remove.d.cts +67 -0
  97. package/cjs/tag/tag-remove.d.ts +67 -0
  98. package/cjs/tag/tag-store.cjs +15 -0
  99. package/cjs/tag/tag-store.d.cts +49 -0
  100. package/cjs/tag/tag-store.d.ts +49 -0
  101. package/cjs/tag/tag-value.cjs +29 -0
  102. package/cjs/tag/tag-value.d.cts +41 -0
  103. package/cjs/tag/tag-value.d.ts +41 -0
  104. package/cjs/tag/tag-values.cjs +29 -0
  105. package/cjs/tag/tag-values.d.cts +52 -0
  106. package/cjs/tag/tag-values.d.ts +52 -0
  107. package/cjs/tag/tag.cjs +130 -0
  108. package/cjs/tag/tag.d.cts +74 -0
  109. package/cjs/tag/tag.d.ts +74 -0
  110. package/cjs/tag/utils.cjs +8 -0
  111. package/cjs/tag/utils.d.cts +1 -0
  112. package/cjs/tag/utils.d.ts +1 -0
  113. package/cjs/toolbar/toolbar-container.cjs +4 -4
  114. package/cjs/toolbar/toolbar-input.cjs +4 -8
  115. package/cjs/toolbar/toolbar-input.d.cts +3 -2
  116. package/cjs/toolbar/toolbar-input.d.ts +3 -2
  117. package/cjs/toolbar/toolbar-item.cjs +4 -4
  118. package/cjs/tooltip/tooltip.cjs +14 -14
  119. package/combobox/combobox-value/package.json +8 -0
  120. package/esm/__chunks/{LABIXQLW.js → 44PDY2W5.js} +1 -1
  121. package/esm/__chunks/{FYNSL2D5.js → 5H3YXAUC.js} +1 -1
  122. package/esm/__chunks/{6VDNHSLX.js → 65LF6MEO.js} +2 -2
  123. package/esm/__chunks/{X3V2DT2U.js → 6YVAEELE.js} +1 -1
  124. package/esm/__chunks/{JCOBPKEI.js → BY6P32UK.js} +1 -1
  125. package/esm/__chunks/{ZFEEEZVE.js → DLLQM6DZ.js} +22 -4
  126. package/esm/__chunks/{NN4HLGKS.js → F2RFUFO2.js} +1 -1
  127. package/esm/__chunks/{NQ4PTILT.js → FGHVVLPU.js} +29 -18
  128. package/esm/__chunks/{2VWKZYYT.js → H5N72W37.js} +1 -1
  129. package/esm/__chunks/L7IM35RU.js +16 -0
  130. package/esm/__chunks/{HW63KLP5.js → M354SEUF.js} +1 -1
  131. package/esm/__chunks/{RAKW656I.js → Q4PZFBSW.js} +1 -1
  132. package/esm/__chunks/QNNHZL3W.js +25 -0
  133. package/esm/__chunks/{C5HA76JU.js → QZJOXZKA.js} +1 -1
  134. package/esm/__chunks/{XK6CE2M5.js → UKDZLPKH.js} +1 -1
  135. package/esm/__chunks/{ONUY4D7O.js → VGORKDMQ.js} +26 -8
  136. package/esm/__chunks/WYDDZRWN.js +34 -0
  137. package/esm/checkbox/checkbox-check.js +1 -1
  138. package/esm/collection/collection-renderer.d.ts +0 -2
  139. package/esm/combobox/combobox-cancel.js +4 -4
  140. package/esm/combobox/combobox-disclosure.js +4 -4
  141. package/esm/combobox/combobox-item-check.js +1 -1
  142. package/esm/combobox/combobox-item.d.ts +22 -12
  143. package/esm/combobox/combobox-item.js +19 -9
  144. package/esm/combobox/combobox-popover.js +40 -15
  145. package/esm/combobox/combobox-provider.js +2 -1
  146. package/esm/combobox/combobox-store.d.ts +12 -4
  147. package/esm/combobox/combobox-store.js +5 -1
  148. package/esm/combobox/combobox-value.d.ts +41 -0
  149. package/esm/combobox/combobox-value.js +32 -0
  150. package/esm/combobox/combobox.d.ts +20 -0
  151. package/esm/combobox/combobox.js +80 -33
  152. package/esm/composite/composite-input.d.ts +2 -0
  153. package/esm/composite/composite-input.js +92 -7
  154. package/esm/composite/composite-item.js +2 -2
  155. package/esm/composite/composite-overflow-disclosure.js +2 -2
  156. package/esm/composite/composite-overflow.js +11 -11
  157. package/esm/composite/composite-renderer.d.ts +0 -2
  158. package/esm/dialog/dialog-backdrop.js +2 -2
  159. package/esm/dialog/dialog-dismiss.js +1 -1
  160. package/esm/dialog/dialog.d.ts +4 -0
  161. package/esm/dialog/dialog.js +10 -10
  162. package/esm/dialog/utils/disable-tree.js +2 -2
  163. package/esm/dialog/utils/use-prevent-body-scroll.js +2 -2
  164. package/esm/form/form-checkbox.js +1 -1
  165. package/esm/form/form-push.js +1 -1
  166. package/esm/form/form-radio.js +3 -3
  167. package/esm/hovercard/hovercard-disclosure.js +1 -1
  168. package/esm/hovercard/hovercard-dismiss.js +3 -3
  169. package/esm/hovercard/hovercard.js +12 -12
  170. package/esm/menu/menu-button-arrow.js +1 -1
  171. package/esm/menu/menu-dismiss.js +3 -3
  172. package/esm/menu/menu-item-check.js +1 -1
  173. package/esm/menu/menu-item-checkbox.js +3 -3
  174. package/esm/menu/menu-item-radio.js +5 -5
  175. package/esm/menu/menu-item.js +3 -3
  176. package/esm/menu/menu.js +12 -12
  177. package/esm/popover/popover-disclosure-arrow.js +1 -1
  178. package/esm/popover/popover-dismiss.js +2 -2
  179. package/esm/popover/popover.js +11 -11
  180. package/esm/radio/radio.js +3 -3
  181. package/esm/select/select-arrow.js +2 -2
  182. package/esm/select/select-item-check.js +1 -1
  183. package/esm/select/select-item.js +4 -4
  184. package/esm/select/select-popover.js +11 -11
  185. package/esm/select/select-value.d.ts +8 -7
  186. package/esm/select/select.js +3 -3
  187. package/esm/tab/tab-panel.js +3 -3
  188. package/esm/tab/tab.js +5 -5
  189. package/esm/tag/tag-context.d.ts +21 -0
  190. package/esm/tag/tag-context.js +25 -0
  191. package/esm/tag/tag-input.d.ts +122 -0
  192. package/esm/tag/tag-input.js +191 -0
  193. package/esm/tag/tag-list-label.d.ts +55 -0
  194. package/esm/tag/tag-list-label.js +56 -0
  195. package/esm/tag/tag-list.d.ts +58 -0
  196. package/esm/tag/tag-list.js +141 -0
  197. package/esm/tag/tag-provider.d.ts +29 -0
  198. package/esm/tag/tag-provider.js +26 -0
  199. package/esm/tag/tag-remove.d.ts +67 -0
  200. package/esm/tag/tag-remove.js +119 -0
  201. package/esm/tag/tag-store.d.ts +49 -0
  202. package/esm/tag/tag-store.js +15 -0
  203. package/esm/tag/tag-value.d.ts +41 -0
  204. package/esm/tag/tag-value.js +29 -0
  205. package/esm/tag/tag-values.d.ts +52 -0
  206. package/esm/tag/tag-values.js +29 -0
  207. package/esm/tag/tag.d.ts +74 -0
  208. package/esm/tag/tag.js +130 -0
  209. package/esm/tag/utils.d.ts +1 -0
  210. package/esm/tag/utils.js +8 -0
  211. package/esm/toolbar/toolbar-container.js +3 -3
  212. package/esm/toolbar/toolbar-input.d.ts +3 -2
  213. package/esm/toolbar/toolbar-input.js +3 -7
  214. package/esm/toolbar/toolbar-item.js +3 -3
  215. package/esm/tooltip/tooltip.js +12 -12
  216. package/package.json +86 -2
  217. package/tag/tag/package.json +8 -0
  218. package/tag/tag-context/package.json +8 -0
  219. package/tag/tag-input/package.json +8 -0
  220. package/tag/tag-list/package.json +8 -0
  221. package/tag/tag-list-label/package.json +8 -0
  222. package/tag/tag-provider/package.json +8 -0
  223. package/tag/tag-remove/package.json +8 -0
  224. package/tag/tag-store/package.json +8 -0
  225. package/tag/tag-value/package.json +8 -0
  226. package/tag/tag-values/package.json +8 -0
  227. package/tag/utils/package.json +8 -0
  228. package/cjs/__chunks/WGZQRLXV.cjs +0 -84
  229. package/esm/__chunks/RPGNBKKU.js +0 -84
  230. package/cjs/__chunks/{37BRXQN7.cjs → BX2QEIBH.cjs} +3 -3
  231. package/cjs/__chunks/{PVYTX5U5.cjs → SL55T4ZB.cjs} +2 -2
  232. package/cjs/__chunks/{TSEXNK3K.cjs → VR6GCLOV.cjs} +2 -2
  233. package/esm/__chunks/{PTPUIM7N.js → 3TEK3C5Q.js} +3 -3
  234. package/esm/__chunks/{U2L67A6K.js → BC72XE6E.js} +3 -3
  235. package/esm/__chunks/{GOXKZAQI.js → CMFBAHKI.js} +3 -3
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _YH42XRHRcjs = require('../__chunks/YH42XRHR.cjs');
4
+ var _2IJSEADJcjs = require('../__chunks/2IJSEADJ.cjs');
5
5
 
6
6
 
7
- var _2IJSEADJcjs = require('../__chunks/2IJSEADJ.cjs');
7
+ var _YH42XRHRcjs = require('../__chunks/YH42XRHR.cjs');
8
8
 
9
9
 
10
10
  var _EKW5CERCcjs = require('../__chunks/EKW5CERC.cjs');
@@ -38,12 +38,13 @@ require('../__chunks/CJDHQUBR.cjs');
38
38
 
39
39
  var _AV6KTKLEcjs = require('../__chunks/AV6KTKLE.cjs');
40
40
 
41
- // src/combobox/combobox.ts
41
+ // src/combobox/combobox.tsx
42
42
  var _react = require('react');
43
43
 
44
44
 
45
45
 
46
46
 
47
+
47
48
  var _dom = require('@ariakit/core/utils/dom');
48
49
 
49
50
 
@@ -54,8 +55,9 @@ var _focus = require('@ariakit/core/utils/focus');
54
55
 
55
56
 
56
57
 
58
+
57
59
  var _misc = require('@ariakit/core/utils/misc');
58
- var _reactdom = require('react-dom');
60
+ var _store = require('@ariakit/core/utils/store');
59
61
  var TagName = "input";
60
62
  function isFirstItemAutoSelected(items, activeValue, autoSelect) {
61
63
  if (!autoSelect)
@@ -93,14 +95,15 @@ var useCombobox = _NGD3IQDBcjs.createHook.call(void 0,
93
95
  focusable = true,
94
96
  autoSelect: autoSelectProp = false,
95
97
  getAutoSelectId,
96
- showOnChange = true,
97
- setValueOnChange = true,
98
- showOnMouseDown = true,
98
+ setValueOnChange,
99
+ showMinLength = 0,
100
+ showOnChange,
101
+ showOnMouseDown,
99
102
  showOnClick = showOnMouseDown,
103
+ showOnKeyDown,
104
+ showOnKeyPress = showOnKeyDown,
100
105
  blurActiveItemOnClick,
101
106
  setValueOnClick = true,
102
- showOnKeyDown = true,
103
- showOnKeyPress = showOnKeyDown,
104
107
  moveOnKeyPress = true,
105
108
  autoComplete = "list"
106
109
  } = _b, props = _AV6KTKLEcjs.__objRest.call(void 0, _b, [
@@ -108,14 +111,15 @@ var useCombobox = _NGD3IQDBcjs.createHook.call(void 0,
108
111
  "focusable",
109
112
  "autoSelect",
110
113
  "getAutoSelectId",
111
- "showOnChange",
112
114
  "setValueOnChange",
115
+ "showMinLength",
116
+ "showOnChange",
113
117
  "showOnMouseDown",
114
118
  "showOnClick",
115
- "blurActiveItemOnClick",
116
- "setValueOnClick",
117
119
  "showOnKeyDown",
118
120
  "showOnKeyPress",
121
+ "blurActiveItemOnClick",
122
+ "setValueOnClick",
119
123
  "moveOnKeyPress",
120
124
  "autoComplete"
121
125
  ]);
@@ -140,9 +144,26 @@ var useCombobox = _NGD3IQDBcjs.createHook.call(void 0,
140
144
  setCanInline(true);
141
145
  }, [inline]);
142
146
  const storeValue = store.useState("value");
143
- const activeValue = store.useState(
144
- (state) => inline && canInline ? state.activeValue : void 0
145
- );
147
+ const prevSelectedValueRef = _react.useRef.call(void 0, );
148
+ _react.useEffect.call(void 0, () => {
149
+ return _store.sync.call(void 0, store, ["selectedValue", "activeId"], (_, prev) => {
150
+ prevSelectedValueRef.current = prev.selectedValue;
151
+ });
152
+ }, []);
153
+ const inlineActiveValue = store.useState((state) => {
154
+ var _a2;
155
+ if (!inline)
156
+ return;
157
+ if (!canInline)
158
+ return;
159
+ if (state.activeValue && Array.isArray(state.selectedValue)) {
160
+ if (state.selectedValue.includes(state.activeValue))
161
+ return;
162
+ if ((_a2 = prevSelectedValueRef.current) == null ? void 0 : _a2.includes(state.activeValue))
163
+ return;
164
+ }
165
+ return state.activeValue;
166
+ });
146
167
  const items = store.useState("renderedItems");
147
168
  const open = store.useState("open");
148
169
  const contentElement = store.useState("contentElement");
@@ -153,18 +174,18 @@ var useCombobox = _NGD3IQDBcjs.createHook.call(void 0,
153
174
  return storeValue;
154
175
  const firstItemAutoSelected = isFirstItemAutoSelected(
155
176
  items,
156
- activeValue,
177
+ inlineActiveValue,
157
178
  autoSelect
158
179
  );
159
180
  if (firstItemAutoSelected) {
160
- if (hasCompletionString(storeValue, activeValue)) {
161
- const slice = (activeValue == null ? void 0 : activeValue.slice(storeValue.length)) || "";
181
+ if (hasCompletionString(storeValue, inlineActiveValue)) {
182
+ const slice = (inlineActiveValue == null ? void 0 : inlineActiveValue.slice(storeValue.length)) || "";
162
183
  return storeValue + slice;
163
184
  }
164
185
  return storeValue;
165
186
  }
166
- return activeValue || storeValue;
167
- }, [inline, canInline, items, activeValue, autoSelect, storeValue]);
187
+ return inlineActiveValue || storeValue;
188
+ }, [inline, canInline, items, inlineActiveValue, autoSelect, storeValue]);
168
189
  _react.useEffect.call(void 0, () => {
169
190
  const element = ref.current;
170
191
  if (!element)
@@ -180,28 +201,43 @@ var useCombobox = _NGD3IQDBcjs.createHook.call(void 0,
180
201
  return;
181
202
  if (!canInline)
182
203
  return;
183
- if (!activeValue)
204
+ if (!inlineActiveValue)
184
205
  return;
185
206
  const firstItemAutoSelected = isFirstItemAutoSelected(
186
207
  items,
187
- activeValue,
208
+ inlineActiveValue,
188
209
  autoSelect
189
210
  );
190
211
  if (!firstItemAutoSelected)
191
212
  return;
192
- if (!hasCompletionString(storeValue, activeValue))
213
+ if (!hasCompletionString(storeValue, inlineActiveValue))
193
214
  return;
215
+ let cleanup = _misc.noop;
194
216
  queueMicrotask(() => {
195
217
  const element = ref.current;
196
218
  if (!element)
197
219
  return;
198
- _dom.setSelectionRange.call(void 0, element, storeValue.length, activeValue.length);
220
+ const { start: prevStart, end: prevEnd } = _dom.getTextboxSelection.call(void 0, element);
221
+ const nextStart = storeValue.length;
222
+ const nextEnd = inlineActiveValue.length;
223
+ _dom.setSelectionRange.call(void 0, element, nextStart, nextEnd);
224
+ cleanup = () => {
225
+ if (!_focus.hasFocus.call(void 0, element))
226
+ return;
227
+ const { start, end } = _dom.getTextboxSelection.call(void 0, element);
228
+ if (start !== nextStart)
229
+ return;
230
+ if (end !== nextEnd)
231
+ return;
232
+ _dom.setSelectionRange.call(void 0, element, prevStart, prevEnd);
233
+ };
199
234
  });
235
+ return () => cleanup();
200
236
  }, [
201
237
  valueUpdated,
202
238
  inline,
203
239
  canInline,
204
- activeValue,
240
+ inlineActiveValue,
205
241
  items,
206
242
  autoSelect,
207
243
  storeValue
@@ -312,16 +348,25 @@ var useCombobox = _NGD3IQDBcjs.createHook.call(void 0,
312
348
  elements.forEach((el) => el.removeEventListener("focusout", onBlur2));
313
349
  };
314
350
  }, [inline, contentElement, store, value]);
351
+ const canShow = (event) => {
352
+ const currentTarget = event.currentTarget;
353
+ return currentTarget.value.length >= showMinLength;
354
+ };
315
355
  const onChangeProp = props.onChange;
316
- const showOnChangeProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, showOnChange);
317
- const setValueOnChangeProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, setValueOnChange);
356
+ const showOnChangeProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, showOnChange != null ? showOnChange : canShow);
357
+ const setValueOnChangeProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0,
358
+ // If the combobox is combined with tags, the value will be set by the tag
359
+ // input component.
360
+ setValueOnChange != null ? setValueOnChange : !store.tag
361
+ );
318
362
  const onChange = _TW3SFX4Ccjs.useEvent.call(void 0, (event) => {
319
363
  onChangeProp == null ? void 0 : onChangeProp(event);
320
364
  if (event.defaultPrevented)
321
365
  return;
322
366
  if (!store)
323
367
  return;
324
- const { value: value2, selectionStart, selectionEnd } = event.target;
368
+ const currentTarget = event.currentTarget;
369
+ const { value: value2, selectionStart, selectionEnd } = currentTarget;
325
370
  const nativeEvent = event.nativeEvent;
326
371
  canAutoSelectRef.current = true;
327
372
  if (isInputEvent(nativeEvent)) {
@@ -337,8 +382,10 @@ var useCombobox = _NGD3IQDBcjs.createHook.call(void 0,
337
382
  }
338
383
  if (setValueOnChangeProp(event)) {
339
384
  const isSameValue = value2 === store.getState().value;
340
- _reactdom.flushSync.call(void 0, () => store == null ? void 0 : store.setValue(value2));
341
- _dom.setSelectionRange.call(void 0, event.currentTarget, selectionStart, selectionEnd);
385
+ store.setValue(value2);
386
+ queueMicrotask(() => {
387
+ _dom.setSelectionRange.call(void 0, currentTarget, selectionStart, selectionEnd);
388
+ });
342
389
  if (inline && autoSelect && isSameValue) {
343
390
  forceValueUpdate();
344
391
  }
@@ -366,7 +413,7 @@ var useCombobox = _NGD3IQDBcjs.createHook.call(void 0,
366
413
  blurActiveItemOnClick != null ? blurActiveItemOnClick : () => !!(store == null ? void 0 : store.getState().includesBaseElement)
367
414
  );
368
415
  const setValueOnClickProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, setValueOnClick);
369
- const showOnClickProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, showOnClick);
416
+ const showOnClickProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, showOnClick != null ? showOnClick : canShow);
370
417
  const onMouseDown = _TW3SFX4Ccjs.useEvent.call(void 0, (event) => {
371
418
  onMouseDownProp == null ? void 0 : onMouseDownProp(event);
372
419
  if (event.defaultPrevented)
@@ -388,7 +435,7 @@ var useCombobox = _NGD3IQDBcjs.createHook.call(void 0,
388
435
  }
389
436
  });
390
437
  const onKeyDownProp = props.onKeyDown;
391
- const showOnKeyPressProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, showOnKeyPress);
438
+ const showOnKeyPressProp = _TW3SFX4Ccjs.useBooleanEvent.call(void 0, showOnKeyPress != null ? showOnKeyPress : canShow);
392
439
  const onKeyDown = _TW3SFX4Ccjs.useEvent.call(void 0, (event) => {
393
440
  onKeyDownProp == null ? void 0 : onKeyDownProp(event);
394
441
  if (!event.repeat) {
@@ -143,6 +143,26 @@ export interface ComboboxOptions<T extends ElementType = TagName> extends Compos
143
143
  * value.
144
144
  */
145
145
  blurActiveItemOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
146
+ /**
147
+ * Specifies the minimum character count the input value should have before
148
+ * the [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
149
+ * [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
150
+ * components are displayed.
151
+ *
152
+ * The [`showOnChange`](https://ariakit.org/reference/combobox#showonchange),
153
+ * [`showOnClick`](https://ariakit.org/reference/combobox#showonclick), and
154
+ * [`showOnKeyPress`](https://ariakit.org/reference/combobox#showonkeypress)
155
+ * props allow you to tailor the behavior for each unique event.
156
+ * @default 0
157
+ * @example
158
+ * In the following example, the combobox list will be shown when the input
159
+ * value has at least one character. However, if the user presses the arrow
160
+ * keys, the list will be shown regardless of the input value length.
161
+ * ```jsx
162
+ * <Combobox showMinLength={1} showOnKeyPress />
163
+ * ```
164
+ */
165
+ showMinLength?: number;
146
166
  /**
147
167
  * Whether the [`ComboboxList`](https://ariakit.org/reference/combobox-list)
148
168
  * or [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
@@ -143,6 +143,26 @@ export interface ComboboxOptions<T extends ElementType = TagName> extends Compos
143
143
  * value.
144
144
  */
145
145
  blurActiveItemOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
146
+ /**
147
+ * Specifies the minimum character count the input value should have before
148
+ * the [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
149
+ * [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
150
+ * components are displayed.
151
+ *
152
+ * The [`showOnChange`](https://ariakit.org/reference/combobox#showonchange),
153
+ * [`showOnClick`](https://ariakit.org/reference/combobox#showonclick), and
154
+ * [`showOnKeyPress`](https://ariakit.org/reference/combobox#showonkeypress)
155
+ * props allow you to tailor the behavior for each unique event.
156
+ * @default 0
157
+ * @example
158
+ * In the following example, the combobox list will be shown when the input
159
+ * value has at least one character. However, if the user presses the arrow
160
+ * keys, the list will be shown regardless of the input value length.
161
+ * ```jsx
162
+ * <Combobox showMinLength={1} showOnKeyPress />
163
+ * ```
164
+ */
165
+ showMinLength?: number;
146
166
  /**
147
167
  * Whether the [`ComboboxList`](https://ariakit.org/reference/combobox-list)
148
168
  * or [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
@@ -1,14 +1,99 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
+ var _6ZZYUFPWcjs = require('../__chunks/6ZZYUFPW.cjs');
4
5
 
5
- var _WGZQRLXVcjs = require('../__chunks/WGZQRLXV.cjs');
6
- require('../__chunks/6ZZYUFPW.cjs');
7
- require('../__chunks/NGD3IQDB.cjs');
8
- require('../__chunks/TW3SFX4C.cjs');
6
+
7
+
8
+
9
+
10
+ var _NGD3IQDBcjs = require('../__chunks/NGD3IQDB.cjs');
11
+
12
+
13
+ var _TW3SFX4Ccjs = require('../__chunks/TW3SFX4C.cjs');
9
14
  require('../__chunks/CJDHQUBR.cjs');
10
- require('../__chunks/AV6KTKLE.cjs');
11
15
 
12
16
 
13
17
 
14
- exports.CompositeInput = _WGZQRLXVcjs.CompositeInput; exports.useCompositeInput = _WGZQRLXVcjs.useCompositeInput;
18
+
19
+ var _AV6KTKLEcjs = require('../__chunks/AV6KTKLE.cjs');
20
+
21
+ // src/composite/composite-input.ts
22
+ var _react = require('react');
23
+
24
+
25
+
26
+
27
+ var _dom = require('@ariakit/core/utils/dom');
28
+ var _misc = require('@ariakit/core/utils/misc');
29
+ var TagName = "input";
30
+ function getValueLength(element) {
31
+ if (_dom.isTextField.call(void 0, element)) {
32
+ return element.value.length;
33
+ } else if (element.isContentEditable) {
34
+ const range = _dom.getDocument.call(void 0, element).createRange();
35
+ range.selectNodeContents(element);
36
+ return range.toString().length;
37
+ }
38
+ return 0;
39
+ }
40
+ var useCompositeInput = _NGD3IQDBcjs.createHook.call(void 0,
41
+ function useCompositeInput2(_a) {
42
+ var _b = _a, { store } = _b, props = _AV6KTKLEcjs.__objRest.call(void 0, _b, ["store"]);
43
+ const onKeyDownCaptureProp = props.onKeyDownCapture;
44
+ if (process.env.NODE_ENV !== "production") {
45
+ _react.useEffect.call(void 0, () => {
46
+ console.warn(
47
+ "CompositeInput is deprecated. Use `<CompositeItem render={<input />}>` instead."
48
+ );
49
+ }, []);
50
+ }
51
+ const onKeyDownCapture = _TW3SFX4Ccjs.useEvent.call(void 0, (event) => {
52
+ onKeyDownCaptureProp == null ? void 0 : onKeyDownCaptureProp(event);
53
+ if (event.defaultPrevented)
54
+ return;
55
+ const element = event.currentTarget;
56
+ if (!element.isContentEditable && !_dom.isTextField.call(void 0, element))
57
+ return;
58
+ const selection = _dom.getTextboxSelection.call(void 0, element);
59
+ const { orientation } = (store == null ? void 0 : store.getState()) || {};
60
+ const isHorizontal = orientation !== "vertical";
61
+ const isVertical = orientation !== "horizontal";
62
+ const isLeft = isHorizontal && event.key === "ArrowLeft";
63
+ const isRight = isHorizontal && event.key === "ArrowRight";
64
+ const isUp = isVertical && event.key === "ArrowUp";
65
+ const isDown = isVertical && event.key === "ArrowDown";
66
+ if (isRight || isDown) {
67
+ if (selection.end !== getValueLength(element)) {
68
+ event.stopPropagation();
69
+ }
70
+ } else if (isLeft || isUp) {
71
+ if (selection.start !== 0) {
72
+ event.stopPropagation();
73
+ }
74
+ }
75
+ });
76
+ const onFocusProp = props.onFocus;
77
+ const onFocus = _TW3SFX4Ccjs.useEvent.call(void 0, (event) => {
78
+ onFocusProp == null ? void 0 : onFocusProp(event);
79
+ if (event.defaultPrevented)
80
+ return;
81
+ _6ZZYUFPWcjs.selectTextField.call(void 0, event.currentTarget);
82
+ });
83
+ props = _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, props), {
84
+ onKeyDownCapture,
85
+ onFocus
86
+ });
87
+ return _misc.removeUndefinedValues.call(void 0, props);
88
+ }
89
+ );
90
+ var CompositeInput = _NGD3IQDBcjs.memo.call(void 0,
91
+ _NGD3IQDBcjs.forwardRef.call(void 0, function CompositeInput2(props) {
92
+ const htmlProps = useCompositeInput(props);
93
+ return _NGD3IQDBcjs.createElement.call(void 0, TagName, htmlProps);
94
+ })
95
+ );
96
+
97
+
98
+
99
+ exports.CompositeInput = CompositeInput; exports.useCompositeInput = useCompositeInput;
@@ -8,6 +8,7 @@ type TagName = typeof TagName;
8
8
  * conjunction with the `CompositeItem` component, the `useCompositeItem` hook,
9
9
  * or any other component/hook that uses `CompositeItem` underneath.
10
10
  * @see https://ariakit.org/components/composite
11
+ * @deprecated Use `useCompositeItem` instead.
11
12
  * @example
12
13
  * ```jsx
13
14
  * const store = useCompositeStore();
@@ -24,6 +25,7 @@ export declare const useCompositeInput: import("../utils/types.js").Hook<"input"
24
25
  * or a component that uses
25
26
  * [`CompositeItem`](https://ariakit.org/reference/composite-item) underneath.
26
27
  * @see https://ariakit.org/components/composite
28
+ * @deprecated Use `<CompositeItem render={<input />}>` instead.
27
29
  * @example
28
30
  * ```jsx {3}
29
31
  * <CompositeProvider>
@@ -8,6 +8,7 @@ type TagName = typeof TagName;
8
8
  * conjunction with the `CompositeItem` component, the `useCompositeItem` hook,
9
9
  * or any other component/hook that uses `CompositeItem` underneath.
10
10
  * @see https://ariakit.org/components/composite
11
+ * @deprecated Use `useCompositeItem` instead.
11
12
  * @example
12
13
  * ```jsx
13
14
  * const store = useCompositeStore();
@@ -24,6 +25,7 @@ export declare const useCompositeInput: import("../utils/types.js").Hook<"input"
24
25
  * or a component that uses
25
26
  * [`CompositeItem`](https://ariakit.org/reference/composite-item) underneath.
26
27
  * @see https://ariakit.org/components/composite
28
+ * @deprecated Use `<CompositeItem render={<input />}>` instead.
27
29
  * @example
28
30
  * ```jsx {3}
29
31
  * <CompositeProvider>
@@ -2,9 +2,9 @@
2
2
 
3
3
 
4
4
 
5
- var _7DQ2LBH2cjs = require('../__chunks/7DQ2LBH2.cjs');
6
- require('../__chunks/U4NXCMZ3.cjs');
5
+ var _3HMQOCLFcjs = require('../__chunks/3HMQOCLF.cjs');
7
6
  require('../__chunks/HD5AHCRI.cjs');
7
+ require('../__chunks/U4NXCMZ3.cjs');
8
8
  require('../__chunks/6ZZYUFPW.cjs');
9
9
  require('../__chunks/VPI3EKVY.cjs');
10
10
  require('../__chunks/NEK2UEJN.cjs');
@@ -18,4 +18,4 @@ require('../__chunks/AV6KTKLE.cjs');
18
18
 
19
19
 
20
20
 
21
- exports.CompositeItem = _7DQ2LBH2cjs.CompositeItem; exports.useCompositeItem = _7DQ2LBH2cjs.useCompositeItem;
21
+ exports.CompositeItem = _3HMQOCLFcjs.CompositeItem; exports.useCompositeItem = _3HMQOCLFcjs.useCompositeItem;
@@ -8,9 +8,9 @@ require('../__chunks/YH42XRHR.cjs');
8
8
  require('../__chunks/IXJIFLOA.cjs');
9
9
 
10
10
 
11
- var _7DQ2LBH2cjs = require('../__chunks/7DQ2LBH2.cjs');
12
- require('../__chunks/U4NXCMZ3.cjs');
11
+ var _3HMQOCLFcjs = require('../__chunks/3HMQOCLF.cjs');
13
12
  require('../__chunks/HD5AHCRI.cjs');
13
+ require('../__chunks/U4NXCMZ3.cjs');
14
14
  require('../__chunks/6ZZYUFPW.cjs');
15
15
  require('../__chunks/VPI3EKVY.cjs');
16
16
  require('../__chunks/NEK2UEJN.cjs');
@@ -70,7 +70,7 @@ var useCompositeOverflowDisclosure = _NGD3IQDBcjs.createHook.call(void 0, functi
70
70
  onFocus,
71
71
  onBlur
72
72
  });
73
- props = _7DQ2LBH2cjs.useCompositeItem.call(void 0, _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, props), { shouldRegisterItem }));
73
+ props = _3HMQOCLFcjs.useCompositeItem.call(void 0, _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, props), { shouldRegisterItem }));
74
74
  props = _K6TBX2ZBcjs.usePopoverDisclosure.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, { store }, props));
75
75
  return props;
76
76
  });
@@ -1,30 +1,30 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _DCTXNU2Xcjs = require('../__chunks/DCTXNU2X.cjs');
5
- require('../__chunks/CWS5RZSU.cjs');
6
- require('../__chunks/TSEXNK3K.cjs');
7
- require('../__chunks/JF225FQ5.cjs');
8
- require('../__chunks/37BRXQN7.cjs');
9
- require('../__chunks/MU7F4QWJ.cjs');
10
- require('../__chunks/PVYTX5U5.cjs');
11
- require('../__chunks/DLIQLPX4.cjs');
4
+ var _N43E53E6cjs = require('../__chunks/N43E53E6.cjs');
5
+ require('../__chunks/QJDA4LG6.cjs');
6
+ require('../__chunks/VR6GCLOV.cjs');
12
7
  require('../__chunks/UUJ5Q6IA.cjs');
13
8
  require('../__chunks/4H7FYXWQ.cjs');
9
+ require('../__chunks/JF225FQ5.cjs');
14
10
  require('../__chunks/JKERATCG.cjs');
11
+ require('../__chunks/BX2QEIBH.cjs');
12
+ require('../__chunks/MU7F4QWJ.cjs');
13
+ require('../__chunks/6IUEXB4L.cjs');
15
14
  require('../__chunks/7YLCVXZ7.cjs');
16
15
  require('../__chunks/CXZMA435.cjs');
17
16
  require('../__chunks/7TN63K2T.cjs');
17
+ require('../__chunks/SL55T4ZB.cjs');
18
18
  require('../__chunks/3ND7K6FF.cjs');
19
- require('../__chunks/6IUEXB4L.cjs');
19
+ require('../__chunks/DLIQLPX4.cjs');
20
20
  require('../__chunks/AFPGTIIH.cjs');
21
21
  require('../__chunks/J3OG6T3B.cjs');
22
+ require('../__chunks/2BIO7R5N.cjs');
22
23
  require('../__chunks/PE3KUHN6.cjs');
23
24
  require('../__chunks/AXNMZ6L6.cjs');
24
25
  require('../__chunks/CVD2AZE2.cjs');
25
- require('../__chunks/2BIO7R5N.cjs');
26
- require('../__chunks/R6M66EKZ.cjs');
27
26
  require('../__chunks/7CYY7U2A.cjs');
27
+ require('../__chunks/R6M66EKZ.cjs');
28
28
  require('../__chunks/77BAEZ2Z.cjs');
29
29
  require('../__chunks/GDEDCFNU.cjs');
30
30
  require('../__chunks/NTNMOEWE.cjs');
@@ -82,7 +82,7 @@ var useCompositeOverflow = _NGD3IQDBcjs.createHook.call(void 0, function useComp
82
82
  }, props), {
83
83
  onFocus
84
84
  });
85
- props = _DCTXNU2Xcjs.usePopover.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {
85
+ props = _N43E53E6cjs.usePopover.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {
86
86
  store,
87
87
  focusable: false,
88
88
  alwaysVisible: true,
@@ -265,9 +265,7 @@ export declare function useCompositeRenderer<T extends Item = any>({ store, orie
265
265
  onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
266
266
  onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
267
267
  onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
268
- onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
269
268
  onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
270
- onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
271
269
  onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
272
270
  onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
273
271
  onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
@@ -265,9 +265,7 @@ export declare function useCompositeRenderer<T extends Item = any>({ store, orie
265
265
  onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
266
266
  onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
267
267
  onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
268
- onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
269
268
  onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
270
- onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
271
269
  onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
272
270
  onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
273
271
  onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _TSEXNK3Kcjs = require('../__chunks/TSEXNK3K.cjs');
4
+ var _VR6GCLOVcjs = require('../__chunks/VR6GCLOV.cjs');
5
5
  require('../__chunks/JKERATCG.cjs');
6
6
  require('../__chunks/7YLCVXZ7.cjs');
7
7
  require('../__chunks/CXZMA435.cjs');
8
8
  require('../__chunks/3ND7K6FF.cjs');
9
- require('../__chunks/R6M66EKZ.cjs');
10
9
  require('../__chunks/7CYY7U2A.cjs');
10
+ require('../__chunks/R6M66EKZ.cjs');
11
11
  require('../__chunks/GDEDCFNU.cjs');
12
12
  require('../__chunks/NTNMOEWE.cjs');
13
13
  require('../__chunks/NGD3IQDB.cjs');
@@ -18,4 +18,4 @@ require('../__chunks/CJDHQUBR.cjs');
18
18
  require('../__chunks/AV6KTKLE.cjs');
19
19
 
20
20
 
21
- exports.DialogBackdrop = _TSEXNK3Kcjs.DialogBackdrop;
21
+ exports.DialogBackdrop = _VR6GCLOVcjs.DialogBackdrop;
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _HFNM6QV4cjs = require('../__chunks/HFNM6QV4.cjs');
5
+ var _DAOFDKV2cjs = require('../__chunks/DAOFDKV2.cjs');
6
6
  require('../__chunks/IXJIFLOA.cjs');
7
7
  require('../__chunks/U4NXCMZ3.cjs');
8
8
  require('../__chunks/GDEDCFNU.cjs');
@@ -16,4 +16,4 @@ require('../__chunks/AV6KTKLE.cjs');
16
16
 
17
17
 
18
18
 
19
- exports.DialogDismiss = _HFNM6QV4cjs.DialogDismiss; exports.useDialogDismiss = _HFNM6QV4cjs.useDialogDismiss;
19
+ exports.DialogDismiss = _DAOFDKV2cjs.DialogDismiss; exports.useDialogDismiss = _DAOFDKV2cjs.useDialogDismiss;
@@ -3,29 +3,29 @@
3
3
 
4
4
 
5
5
 
6
- var _CWS5RZSUcjs = require('../__chunks/CWS5RZSU.cjs');
7
- require('../__chunks/TSEXNK3K.cjs');
8
- require('../__chunks/JF225FQ5.cjs');
9
- require('../__chunks/37BRXQN7.cjs');
10
- require('../__chunks/MU7F4QWJ.cjs');
11
- require('../__chunks/PVYTX5U5.cjs');
12
- require('../__chunks/DLIQLPX4.cjs');
6
+ var _QJDA4LG6cjs = require('../__chunks/QJDA4LG6.cjs');
7
+ require('../__chunks/VR6GCLOV.cjs');
13
8
  require('../__chunks/UUJ5Q6IA.cjs');
14
9
  require('../__chunks/4H7FYXWQ.cjs');
10
+ require('../__chunks/JF225FQ5.cjs');
15
11
  require('../__chunks/JKERATCG.cjs');
12
+ require('../__chunks/BX2QEIBH.cjs');
13
+ require('../__chunks/MU7F4QWJ.cjs');
14
+ require('../__chunks/6IUEXB4L.cjs');
16
15
  require('../__chunks/7YLCVXZ7.cjs');
17
16
  require('../__chunks/CXZMA435.cjs');
18
17
  require('../__chunks/7TN63K2T.cjs');
18
+ require('../__chunks/SL55T4ZB.cjs');
19
19
  require('../__chunks/3ND7K6FF.cjs');
20
- require('../__chunks/6IUEXB4L.cjs');
20
+ require('../__chunks/DLIQLPX4.cjs');
21
21
  require('../__chunks/AFPGTIIH.cjs');
22
22
  require('../__chunks/J3OG6T3B.cjs');
23
+ require('../__chunks/2BIO7R5N.cjs');
23
24
  require('../__chunks/PE3KUHN6.cjs');
24
25
  require('../__chunks/AXNMZ6L6.cjs');
25
26
  require('../__chunks/CVD2AZE2.cjs');
26
- require('../__chunks/2BIO7R5N.cjs');
27
- require('../__chunks/R6M66EKZ.cjs');
28
27
  require('../__chunks/7CYY7U2A.cjs');
28
+ require('../__chunks/R6M66EKZ.cjs');
29
29
  require('../__chunks/GDEDCFNU.cjs');
30
30
  require('../__chunks/NTNMOEWE.cjs');
31
31
  require('../__chunks/FHRIPOYF.cjs');
@@ -42,4 +42,4 @@ require('../__chunks/AV6KTKLE.cjs');
42
42
 
43
43
 
44
44
 
45
- exports.Dialog = _CWS5RZSUcjs.Dialog; exports.createDialogComponent = _CWS5RZSUcjs.createDialogComponent; exports.useDialog = _CWS5RZSUcjs.useDialog;
45
+ exports.Dialog = _QJDA4LG6cjs.Dialog; exports.createDialogComponent = _QJDA4LG6cjs.createDialogComponent; exports.useDialog = _QJDA4LG6cjs.useDialog;
@@ -254,6 +254,10 @@ export interface DialogOptions<T extends ElementType = TagName> extends Focusabl
254
254
  * will be focused again.
255
255
  */
256
256
  finalFocus?: HTMLElement | RefObject<HTMLElement> | null;
257
+ /**
258
+ * @private
259
+ */
260
+ unstable_treeSnapshotKey?: string | number | boolean | null;
257
261
  }
258
262
  export type DialogProps<T extends ElementType = TagName> = Props<T, DialogOptions<T>>;
259
263
  export {};
@@ -254,6 +254,10 @@ export interface DialogOptions<T extends ElementType = TagName> extends Focusabl
254
254
  * will be focused again.
255
255
  */
256
256
  finalFocus?: HTMLElement | RefObject<HTMLElement> | null;
257
+ /**
258
+ * @private
259
+ */
260
+ unstable_treeSnapshotKey?: string | number | boolean | null;
257
261
  }
258
262
  export type DialogProps<T extends ElementType = TagName> = Props<T, DialogOptions<T>>;
259
263
  export {};