@wix/site-ui 1.347.0 → 1.349.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 (226) hide show
  1. package/dist/{6706.js → 1093.js} +3 -3
  2. package/dist/{8724.js → 1219.js} +2 -2
  3. package/dist/{7373.js → 1288.js} +8 -2
  4. package/dist/{5299.js → 1381.js} +98 -127
  5. package/dist/{3056.js → 1607.js} +32 -34
  6. package/dist/1629.js +2 -0
  7. package/dist/1669.js +75 -0
  8. package/dist/1718.js +26 -0
  9. package/dist/{1477.js → 201.js} +17 -26
  10. package/dist/2221.js +9 -0
  11. package/dist/{2445.js → 226.js} +12 -48
  12. package/dist/2387.js +7 -0
  13. package/dist/2580.js +6 -0
  14. package/dist/{1500.js → 2859.js} +10 -34
  15. package/dist/3014.js +178 -0
  16. package/dist/{6247.js → 3054.js} +3 -3
  17. package/dist/{7642.js → 3093.js} +1 -1
  18. package/dist/3189.js +5 -0
  19. package/dist/{7564.js → 331.js} +2 -2
  20. package/dist/3357.js +7 -0
  21. package/dist/{487.js → 3398.js} +38 -39
  22. package/dist/3502.js +224 -0
  23. package/dist/3695.js +50 -0
  24. package/dist/3829.js +1 -1
  25. package/dist/{6588.js → 3859.js} +115 -92
  26. package/dist/{3670.js → 3910.js} +28 -21
  27. package/dist/392.js +7 -0
  28. package/dist/{4549.js → 4155.js} +11 -3
  29. package/dist/4226.js +7 -0
  30. package/dist/{6329.js → 4229.js} +1 -1
  31. package/dist/4293.js +3 -0
  32. package/dist/4346.js +853 -2
  33. package/dist/{285.js → 4472.js} +3 -3
  34. package/dist/4605.js +207 -0
  35. package/dist/{7366.js → 488.js} +60 -7
  36. package/dist/{8750.js → 497.js} +190 -375
  37. package/dist/4989.js +35 -0
  38. package/dist/{6270.js → 510.js} +157 -196
  39. package/dist/5258.js +26 -0
  40. package/dist/{5036.js → 5275.js} +0 -3
  41. package/dist/{8171.js → 5298.js} +90 -102
  42. package/dist/5473.js +11 -0
  43. package/dist/{4745.js → 5490.js} +3 -1
  44. package/dist/{6089.js → 5561.js} +869 -786
  45. package/dist/{8996.js → 5595.js} +4 -3
  46. package/dist/5890.js +25 -0
  47. package/dist/{6046.js → 5969.js} +1 -1
  48. package/dist/5984.js +38 -0
  49. package/dist/{8527.js → 6006.js} +3 -3
  50. package/dist/6040.js +97 -0
  51. package/dist/{8758.js → 6137.js} +10 -8
  52. package/dist/{4281.js → 6140.js} +18 -10
  53. package/dist/{8960.js → 6191.js} +2 -2
  54. package/dist/6240.js +121 -0
  55. package/dist/{4490.js → 6373.js} +7 -5
  56. package/dist/{904.js → 6487.js} +19 -17
  57. package/dist/{9635.js → 6498.js} +1 -1
  58. package/dist/6499.js +4 -7
  59. package/dist/6508.js +7 -0
  60. package/dist/{8225.js → 6540.js} +1 -0
  61. package/dist/6551.js +46 -0
  62. package/dist/{9369.js → 6620.js} +35 -34
  63. package/dist/{4143.js → 6838.js} +19 -10
  64. package/dist/6902.js +48 -0
  65. package/dist/6904.js +51 -0
  66. package/dist/70.js +24 -0
  67. package/dist/7024.js +39 -0
  68. package/dist/{6882.js → 721.js} +737 -362
  69. package/dist/{951.js → 7270.js} +4 -4
  70. package/dist/{3485.js → 7323.js} +143 -111
  71. package/dist/{7541.js → 7488.js} +2 -2
  72. package/dist/{4863.js → 7542.js} +7 -6
  73. package/dist/7551.js +28 -0
  74. package/dist/{7021.js → 7640.js} +1 -1
  75. package/dist/{353.js → 7692.js} +3 -7
  76. package/dist/{4707.js → 7930.js} +2 -2
  77. package/dist/{8052.js → 8.js} +80 -64
  78. package/dist/{6914.js → 8129.js} +3 -15
  79. package/dist/{3319.js → 8358.js} +62 -63
  80. package/dist/{5864.js → 8407.js} +13 -13
  81. package/dist/8488.js +15 -0
  82. package/dist/{4768.js → 8495.js} +1 -1
  83. package/dist/8734.js +171 -0
  84. package/dist/{1763.js → 9018.js} +205 -331
  85. package/dist/9053.js +29 -0
  86. package/dist/9067.js +41 -0
  87. package/dist/{2861.js → 9120.js} +2 -2
  88. package/dist/{42.js → 9197.js} +2 -2
  89. package/dist/{9189.js → 9248.js} +36 -17
  90. package/dist/{2801.js → 9252.js} +4 -9
  91. package/dist/9295.js +7 -0
  92. package/dist/9303.js +8 -0
  93. package/dist/{167.js → 9374.js} +1 -1
  94. package/dist/{9352.js → 9540.js} +17 -47
  95. package/dist/9576.js +51 -0
  96. package/dist/{8272.js → 9591.js} +36 -46
  97. package/dist/{6107.js → 9770.js} +2 -2
  98. package/dist/{5085.js → 9880.js} +6 -3
  99. package/dist/Accordion/index.d.ts +207 -41
  100. package/dist/Accordion/index.js +75 -177
  101. package/dist/AlertDialog/index.d.ts +440 -140
  102. package/dist/AlertDialog/index.js +3 -13
  103. package/dist/Autocomplete/index.d.ts +722 -150
  104. package/dist/Autocomplete/index.js +16 -29
  105. package/dist/Avatar/index.d.ts +38 -3
  106. package/dist/Avatar/index.js +82 -28
  107. package/dist/Breadcrumbs/index.d.ts +63 -91
  108. package/dist/Breadcrumbs/index.js +1 -1
  109. package/dist/Button/index.d.ts +11 -0
  110. package/dist/Button/index.js +2 -2
  111. package/dist/Checkbox/index.d.ts +206 -36
  112. package/dist/Checkbox/index.js +293 -8
  113. package/dist/CheckboxField/index.css +1 -1
  114. package/dist/CheckboxField/index.d.ts +40 -36
  115. package/dist/CheckboxGroup/index.d.ts +50 -36
  116. package/dist/CheckboxGroup/index.js +87 -58
  117. package/dist/CheckboxGroupField/index.css +1 -1
  118. package/dist/Collapsible/index.d.ts +128 -36
  119. package/dist/Collapsible/index.js +21 -25
  120. package/dist/Combobox/index.d.ts +801 -158
  121. package/dist/Combobox/index.js +70 -114
  122. package/dist/ContextMenu/index.d.ts +1162 -195
  123. package/dist/ContextMenu/index.js +46 -36
  124. package/dist/Dialog/index.d.ts +425 -133
  125. package/dist/Dialog/index.js +8 -4
  126. package/dist/Drawer/index.d.ts +589 -144
  127. package/dist/Drawer/index.js +482 -562
  128. package/dist/Field/index.css +1 -1
  129. package/dist/Field/index.d.ts +341 -42
  130. package/dist/Field/index.js +123 -273
  131. package/dist/Fieldset/index.d.ts +11 -0
  132. package/dist/Fieldset/index.js +10 -17
  133. package/dist/Form/index.d.ts +43 -39
  134. package/dist/Form/index.js +58 -50
  135. package/dist/Input/index.css +1 -1
  136. package/dist/Input/index.d.ts +94 -42
  137. package/dist/Input/index.js +1 -1
  138. package/dist/Menu/index.d.ts +1140 -175
  139. package/dist/Menu/index.js +51 -67
  140. package/dist/Menubar/index.d.ts +651 -173
  141. package/dist/Menubar/index.js +12 -16
  142. package/dist/Meter/index.js +21 -18
  143. package/dist/NavigationMenu/index.d.ts +370 -86
  144. package/dist/NavigationMenu/index.js +144 -178
  145. package/dist/NumberField/index.css +1 -1
  146. package/dist/NumberField/index.d.ts +507 -47
  147. package/dist/NumberField/index.js +434 -718
  148. package/dist/Popover/index.d.ts +561 -142
  149. package/dist/Popover/index.js +181 -252
  150. package/dist/PreviewCard/index.d.ts +507 -143
  151. package/dist/PreviewCard/index.js +97 -151
  152. package/dist/Progress/index.d.ts +117 -3
  153. package/dist/Progress/index.js +37 -36
  154. package/dist/Radio/index.d.ts +177 -7
  155. package/dist/Radio/index.js +54 -70
  156. package/dist/RadioField/index.css +1 -1
  157. package/dist/RadioField/index.d.ts +23 -7
  158. package/dist/RadioGroup/index.d.ts +51 -37
  159. package/dist/RadioGroup/index.js +60 -51
  160. package/dist/RadioGroupField/index.css +1 -1
  161. package/dist/RadioGroupField/index.d.ts +40 -37
  162. package/dist/ScrollArea/index.d.ts +295 -1
  163. package/dist/ScrollArea/index.js +256 -324
  164. package/dist/Select/index.d.ts +516 -123
  165. package/dist/Select/index.js +513 -635
  166. package/dist/SelectField/index.css +1 -1
  167. package/dist/SelectField/index.d.ts +109 -134
  168. package/dist/SelectField/index.js +5 -1
  169. package/dist/Separator/index.d.ts +12 -0
  170. package/dist/Separator/index.js +1 -1
  171. package/dist/Slider/index.d.ts +383 -64
  172. package/dist/Slider/index.js +298 -374
  173. package/dist/Switch/index.d.ts +184 -37
  174. package/dist/Switch/index.js +44 -58
  175. package/dist/Tabs/index.d.ts +220 -35
  176. package/dist/Tabs/index.js +199 -193
  177. package/dist/Toast/index.d.ts +280 -64
  178. package/dist/Toast/index.js +299 -374
  179. package/dist/Toggle/index.d.ts +55 -35
  180. package/dist/Toggle/index.js +19 -13
  181. package/dist/ToggleGroup/index.d.ts +62 -35
  182. package/dist/ToggleGroup/index.js +13 -31
  183. package/dist/Toolbar/index.d.ts +117 -2
  184. package/dist/Toolbar/index.js +31 -43
  185. package/dist/Tooltip/index.d.ts +507 -150
  186. package/dist/Tooltip/index.js +163 -213
  187. package/dist/index.d.ts +12912 -5382
  188. package/package.json +3 -3
  189. package/dist/2205.js +0 -26
  190. package/dist/2274.js +0 -34
  191. package/dist/2287.js +0 -17
  192. package/dist/3020.js +0 -7
  193. package/dist/3021.js +0 -72
  194. package/dist/3140.js +0 -4
  195. package/dist/3248.js +0 -307
  196. package/dist/4026.js +0 -12
  197. package/dist/4922.js +0 -15
  198. package/dist/5659.js +0 -4
  199. package/dist/5992.js +0 -447
  200. package/dist/6330.js +0 -30
  201. package/dist/6535.js +0 -72
  202. package/dist/6917.js +0 -55
  203. package/dist/7725.js +0 -10
  204. package/dist/7871.js +0 -38
  205. package/dist/8106.js +0 -239
  206. package/dist/8685.js +0 -102
  207. package/dist/8935.js +0 -8
  208. package/dist/8971.js +0 -40
  209. package/dist/8979.js +0 -10
  210. package/dist/9048.js +0 -52
  211. package/dist/9087.js +0 -256
  212. package/dist/9255.js +0 -136
  213. /package/dist/{1457.js → 1068.js} +0 -0
  214. /package/dist/{6003.js → 1234.js} +0 -0
  215. /package/dist/{4723.js → 1282.js} +0 -0
  216. /package/dist/{6825.js → 1876.js} +0 -0
  217. /package/dist/{5778.js → 1885.js} +0 -0
  218. /package/dist/{2445.js.LICENSE.txt → 226.js.LICENSE.txt} +0 -0
  219. /package/dist/{1279.js → 3278.js} +0 -0
  220. /package/dist/{3296.js → 5568.js} +0 -0
  221. /package/dist/{8685.css → 6240.css} +0 -0
  222. /package/dist/{9829.js → 6488.js} +0 -0
  223. /package/dist/{9863.js → 6534.js} +0 -0
  224. /package/dist/{4495.js → 7718.js} +0 -0
  225. /package/dist/{3395.js → 8866.js} +0 -0
  226. /package/dist/{2418.js → 9837.js} +0 -0
@@ -4,17 +4,92 @@ import { AlertDialogDescriptionProps } from '@base-ui/react';
4
4
  import { AlertDialogPopupProps } from '@base-ui/react';
5
5
  import { AlertDialogTitleProps } from '@base-ui/react';
6
6
  import { AlertDialogViewportProps } from '@base-ui/react';
7
- import { FloatingRootContext as FloatingRootContext_2 } from '../../floating-ui-react/index.js';
8
- import { FloatingRootStore as FloatingRootStore_2 } from '../../floating-ui-react/components/FloatingRootStore.js';
9
- import { HTMLProps as HTMLProps_2 } from '../../index.js';
10
- import { InteractionType } from '@base-ui/utils/useEnhancedClickHandler';
7
+ import { FloatingRootContext as FloatingRootContext_2 } from '../../floating-ui-react/index.mjs';
8
+ import { FloatingRootStore as FloatingRootStore_2 } from '../../floating-ui-react/components/FloatingRootStore.mjs';
9
+ import { HTMLProps as HTMLProps_2 } from '../../index.mjs';
10
+ import type { InteractionType } from '@base-ui/utils/useEnhancedClickHandler';
11
11
  import { JSX as JSX_2 } from 'react/jsx-runtime';
12
12
  import * as React_2 from 'react';
13
13
  import { ReactStore } from '@base-ui/utils/store';
14
- import { TransitionStatus as TransitionStatus_2 } from '../../internals/useTransitionStatus.js';
14
+ import { TransitionStatus as TransitionStatus_2 } from '../../internals/useTransitionStatus.mjs';
15
15
  import type { UseFloatingReturn } from '@floating-ui/react-dom';
16
16
  import type { VirtualElement } from '@floating-ui/react-dom';
17
17
 
18
+ declare const activeTriggerIdSelector: (state: S) => string | null;
19
+
20
+ /**
21
+ * Shared implementation for popup handles that coordinate detached triggers with a mounted root.
22
+ *
23
+ * Subclasses provide the component-specific imperative methods, while this base class owns the
24
+ * fallback store, root store attachment stack, subscriber notifications, and development warning for
25
+ * overlapping roots.
26
+ *
27
+ * @template HandleStore Store shape exposed to detached triggers.
28
+ * @template Store Root-owned store attached by the component root.
29
+ */
30
+ declare class BasePopupHandle<HandleStore extends PopupHandleStoreWithTriggers, Store extends HandleStore & PopupHandleStoreWithOpen> {
31
+ protected readonly fallbackStore: HandleStore;
32
+ private readonly componentName;
33
+ private readonly throwOnMissingTrigger;
34
+ /**
35
+ * Stores of every root currently using this handle, in attach order. A handle is meant to be used
36
+ * by a single mounted root, but roots can transiently overlap (e.g. during an animated route
37
+ * transition), so this stack lets `attachStore`'s cleanup restore the previous root instead of
38
+ * leaving a still-mounted root uncontrollable when a newer overlapping root detaches first.
39
+ */
40
+ private readonly attachedStores;
41
+ /**
42
+ * Store of the root that currently controls the handle: the most recently attached one still
43
+ * mounted, or `null` when no root is attached. Imperative methods are no-ops while this is `null`.
44
+ */
45
+ private attachedStoreValue;
46
+ /**
47
+ * Listeners notified when `attachedStore` changes, so detached triggers can follow the store pointer.
48
+ */
49
+ private readonly storeListeners;
50
+ /**
51
+ * Creates a handle backed by the store used while no root is attached.
52
+ *
53
+ * @param fallbackStore Inert, closed store handed to detached triggers while no root is attached,
54
+ * so they can render and register without a mounted root. Triggers register into whichever store
55
+ * `store` currently resolves to, so while detached they live in this store's trigger map and
56
+ * migrate themselves to the root's store (and back) as it attaches/detaches.
57
+ * @param componentName Component name used to prefix dev warnings, e.g. `'Menu'` produces
58
+ * `MenuHandle.open()` in warning text.
59
+ * @param throwOnMissingTrigger Whether `open(triggerId)` throws when no trigger with that id is
60
+ * registered. Anchored popups (Menu, Popover, Tooltip, PreviewCard) need a trigger to anchor to,
61
+ * so they throw; Dialog is not anchored and instead opens unassociated with a dev warning.
62
+ */
63
+ constructor(fallbackStore: HandleStore, componentName: string, throwOnMissingTrigger?: boolean);
64
+ protected get attachedStore(): Store | null;
65
+ /**
66
+ * Sets the store that currently controls the handle and notifies subscribers when it changes, so
67
+ * detached triggers re-render and migrate their registration to the new store.
68
+ */
69
+ private setActiveStore;
70
+ /**
71
+ * Opens the attached root's store and associates it with the trigger with the given id, or a
72
+ * no-op (with a dev warning) while no root is attached. Shared by every concrete handle's public
73
+ * `open()` method, which only narrows the parameter type.
74
+ *
75
+ * When a trigger id is given but no matching trigger is registered, anchored popups throw (see
76
+ * `throwOnMissingTrigger`); Dialog opens unassociated with a dev warning instead.
77
+ *
78
+ * This method should only be called in an event handler or an effect (not during rendering).
79
+ *
80
+ * @param triggerId ID of the trigger to associate with the popup, or `null`/`undefined` to open
81
+ * without associating any trigger.
82
+ */
83
+ protected openByTrigger(triggerId: string | null | undefined): void;
84
+ /**
85
+ * Closes the popup by setting the attached root's store to closed, or a no-op (with a dev warning)
86
+ * while no root is attached. Shared by every concrete handle's public `close()` method.
87
+ *
88
+ * This method should only be called in an event handler or an effect (not during rendering).
89
+ */
90
+ protected closePopup(): void;
91
+ }
92
+
18
93
  declare type BaseUIChangeEventDetail<Reason extends string, CustomProperties extends object> = {
19
94
  /**
20
95
  * The reason for the event.
@@ -80,15 +155,30 @@ declare type BaseUIEvent<E extends React_2.SyntheticEvent<Element, Event>> = E &
80
155
  readonly baseUIHandlerPrevented?: boolean | undefined;
81
156
  };
82
157
 
83
- declare const cancelOpen: "cancel-open";
158
+ declare const cancelOpen: 'cancel-open';
84
159
 
85
- declare const chipRemovePress: "chip-remove-press";
160
+ declare const chipRemovePress: 'chip-remove-press';
86
161
 
87
- declare const clearPress: "clear-press";
162
+ declare const clearPress: 'clear-press';
88
163
 
89
- declare const closePress: "close-press";
164
+ /**
165
+ * Present when the dialog is closed.
166
+ */
167
+ declare const closed_2 = "data-closed";
168
+
169
+ /**
170
+ * Present when the dialog is closed.
171
+ */
172
+ declare const closed_3 = "data-closed";
173
+
174
+ /**
175
+ * Present when the dialog is closed.
176
+ */
177
+ declare const closed_4 = "data-closed";
178
+
179
+ declare const closePress: 'close-press';
90
180
 
91
- declare const closeWatcher: "close-watcher";
181
+ declare const closeWatcher: 'close-watcher';
92
182
 
93
183
  /**
94
184
  * Shape of the render prop: a function that takes props to be spread on the element and component's state and returns a React element.
@@ -104,7 +194,6 @@ declare type Context = PopupStoreContext<DialogRoot.ChangeEventDetails> & {
104
194
  readonly internalBackdropRef: React_2.RefObject<HTMLDivElement | null>;
105
195
  readonly outsidePressEnabledRef: React_2.MutableRefObject<boolean>;
106
196
  readonly onNestedDialogOpen?: ((dialogCount: number, drawerCount: number) => void) | undefined;
107
- readonly onNestedDialogClose?: (() => void) | undefined;
108
197
  };
109
198
 
110
199
  declare interface ContextData {
@@ -118,7 +207,7 @@ declare interface ContextData {
118
207
  */
119
208
  declare function createDialogHandle<Payload>(): DialogHandle<Payload>;
120
209
 
121
- declare const decrementPress: "decrement-press";
210
+ declare const decrementPress: 'decrement-press';
122
211
 
123
212
  export declare const Dialog: {
124
213
  Backdrop: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<AlertDialogBackdropProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
@@ -175,6 +264,15 @@ export declare namespace DialogBackdrop {
175
264
  export type State = DialogBackdropState;
176
265
  }
177
266
 
267
+ export declare namespace DialogBackdropDataAttributes {
268
+ export {
269
+ open_2 as open,
270
+ closed_2 as closed,
271
+ startingStyle,
272
+ endingStyle
273
+ }
274
+ }
275
+
178
276
  export declare interface DialogBackdropProps extends BaseUIComponentProps<'div', DialogBackdropState> {
179
277
  /**
180
278
  * Whether the backdrop is forced to render even when nested.
@@ -207,6 +305,12 @@ export declare namespace DialogClose {
207
305
  export type State = DialogCloseState;
208
306
  }
209
307
 
308
+ export declare namespace DialogCloseDataAttributes {
309
+ export {
310
+ disabled_2 as disabled
311
+ }
312
+ }
313
+
210
314
  export declare interface DialogCloseProps extends NativeButtonProps, BaseUIComponentProps<'button', DialogCloseState> {}
211
315
 
212
316
  export declare interface DialogCloseState {
@@ -234,41 +338,51 @@ export declare interface DialogDescriptionProps extends BaseUIComponentProps<'p'
234
338
  export declare interface DialogDescriptionState {}
235
339
 
236
340
  /**
237
- * A handle to control a Dialog imperatively and to associate detached triggers with it.
341
+ * Controls a Dialog imperatively and associates detached `Dialog.Trigger` components with a
342
+ * `Dialog.Root`. Create one with `Dialog.createHandle()` and pass it to the `handle` prop of the
343
+ * root and of any triggers rendered outside of it.
344
+ *
345
+ * The imperative methods take effect only while a root using this handle is mounted; calls made
346
+ * before a root attaches (or after it unmounts) are ignored.
238
347
  */
239
- declare class DialogHandle<Payload> {
240
- /**
241
- * Internal store holding the dialog state.
242
- * @internal
243
- */
244
- readonly store: DialogStore<Payload>;
245
- constructor(store?: DialogStore<Payload>);
348
+ declare class DialogHandle<Payload> extends BasePopupHandle<DialogHandleStore<Payload>, DialogStore<Payload>> {
349
+ constructor();
246
350
  /**
247
- * Opens the dialog and associates it with the trigger with the given id.
248
- * The trigger, if provided, must be a matching Trigger component with this handle passed as a prop.
351
+ * Opens the dialog, optionally associating it with a trigger.
249
352
  *
250
353
  * This method should only be called in an event handler or an effect (not during rendering).
251
354
  *
252
- * @param triggerId ID of the trigger to associate with the dialog. If null, the dialog will open without a trigger association.
355
+ * @param triggerId ID of the trigger to associate with the dialog. The trigger must be a matching
356
+ * `Dialog.Trigger` with this handle passed as a prop. Pass `null` to open without associating any trigger.
253
357
  */
254
358
  open(triggerId: string | null): void;
255
359
  /**
256
- * Opens the dialog and sets the payload.
257
- * Does not associate the dialog with any trigger.
360
+ * Opens the dialog with the given payload, without associating it with any trigger.
361
+ *
362
+ * This method should only be called in an event handler or an effect (not during rendering).
258
363
  *
259
- * @param payload Payload to set when opening the dialog.
364
+ * @param payload Payload to set when opening the dialog. It is exposed to the root's render-prop children.
260
365
  */
261
366
  openWithPayload(payload: Payload): void;
262
367
  /**
263
368
  * Closes the dialog.
369
+ *
370
+ * This method should only be called in an event handler or an effect (not during rendering).
264
371
  */
265
372
  close(): void;
266
373
  /**
267
- * Indicates whether the dialog is currently open.
374
+ * Whether the dialog is currently open. Returns `false` while no root is attached to the handle.
268
375
  */
269
376
  get isOpen(): boolean;
270
377
  }
271
378
 
379
+ /**
380
+ * The subset of `DialogStore` that detached handle-backed triggers rely on. Both the real
381
+ * `DialogStore` and the inert fallback store satisfy it, so a trigger can read from whichever
382
+ * store the handle currently exposes.
383
+ */
384
+ declare type DialogHandleStore<Payload> = PopupTriggerDataStore<State<Payload>>;
385
+
272
386
  /**
273
387
  * A container for the dialog contents.
274
388
  * Renders a `<div>` element.
@@ -282,15 +396,34 @@ export declare namespace DialogPopup {
282
396
  export type State = DialogPopupState;
283
397
  }
284
398
 
399
+ export declare namespace DialogPopupCssVariables {
400
+ export {
401
+ nestedDialogs
402
+ }
403
+ }
404
+
405
+ export declare namespace DialogPopupDataAttributes {
406
+ export {
407
+ open_3 as open,
408
+ closed_3 as closed,
409
+ startingStyle_2 as startingStyle,
410
+ endingStyle_2 as endingStyle,
411
+ nested,
412
+ nestedDialogOpen
413
+ }
414
+ }
415
+
285
416
  export declare interface DialogPopupProps extends BaseUIComponentProps<'div', DialogPopupState> {
286
417
  /**
287
418
  * Determines the element to focus when the dialog is opened.
419
+ * By default, focus moves to the first tabbable element inside the popup, except when the dialog
420
+ * is opened by touch — then the popup itself is focused to avoid opening the virtual keyboard.
288
421
  *
289
422
  * - `false`: Do not move focus.
290
423
  * - `true`: Move focus based on the default behavior (first tabbable element or popup).
291
424
  * - `RefObject`: Move focus to the ref element.
292
425
  * - `function`: Called with the interaction type (`mouse`, `touch`, `pen`, or `keyboard`).
293
- * Return an element to focus, `true` to use the default behavior, or `false`/`undefined` to do nothing.
426
+ * Return an element to focus, `true` to use the default behavior, `null` to fall back to the default behavior, or `false`/`undefined` to do nothing.
294
427
  */
295
428
  initialFocus?: boolean | React_2.RefObject<HTMLElement | null> | ((openType: InteractionType) => boolean | HTMLElement | null | void) | undefined;
296
429
  /**
@@ -300,7 +433,7 @@ export declare interface DialogPopupProps extends BaseUIComponentProps<'div', Di
300
433
  * - `true`: Move focus based on the default behavior (trigger or previously focused element).
301
434
  * - `RefObject`: Move focus to the ref element.
302
435
  * - `function`: Called with the interaction type (`mouse`, `touch`, `pen`, or `keyboard`).
303
- * Return an element to focus, `true` to use the default behavior, or `false`/`undefined` to do nothing.
436
+ * Return an element to focus, `true` to use the default behavior, `null` to fall back to the default behavior, or `false`/`undefined` to do nothing.
304
437
  */
305
438
  finalFocus?: boolean | React_2.RefObject<HTMLElement | null> | ((closeType: InteractionType) => boolean | HTMLElement | null | void) | undefined;
306
439
  }
@@ -338,7 +471,7 @@ export declare namespace DialogPortal {
338
471
  export type Props = DialogPortalProps;
339
472
  }
340
473
 
341
- export declare interface DialogPortalProps extends FloatingPortal.Props<DialogPortalState> {
474
+ export declare interface DialogPortalProps extends BaseUIComponentProps<'div', DialogPortalState> {
342
475
  /**
343
476
  * Whether to keep the portal mounted in the DOM while the popup is hidden.
344
477
  * @default false
@@ -347,7 +480,7 @@ export declare interface DialogPortalProps extends FloatingPortal.Props<DialogPo
347
480
  /**
348
481
  * A parent element to render the portal element into.
349
482
  */
350
- container?: FloatingPortal.Props<DialogPortalState>['container'] | undefined;
483
+ container?: HTMLElement | ShadowRoot | React_2.RefObject<HTMLElement | ShadowRoot | null> | null | undefined;
351
484
  }
352
485
 
353
486
  export declare interface DialogPortalState {}
@@ -358,7 +491,7 @@ export declare interface DialogPortalState {}
358
491
  *
359
492
  * Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)
360
493
  */
361
- export declare function DialogRoot<Payload>(props: DialogRoot.Props<Payload>): JSX_2.Element;
494
+ export declare const DialogRoot: <Payload>(props: DialogRoot.Props<Payload>) => React_2.JSX.Element;
362
495
 
363
496
  export declare namespace DialogRoot {
364
497
  export type State = DialogRootState;
@@ -374,7 +507,8 @@ export declare interface DialogRootActions {
374
507
  }
375
508
 
376
509
  export declare type DialogRootChangeEventDetails = BaseUIChangeEventDetails<DialogRoot.ChangeEventReason> & {
377
- preventUnmountOnClose(): void;
510
+ /** Prevents the popup from unmounting until the `unmount` action is called. */
511
+ preventUnmountOnClose: () => void;
378
512
  };
379
513
 
380
514
  export declare type DialogRootChangeEventReason = typeof REASONS.triggerPress | typeof REASONS.outsidePress | typeof REASONS.escapeKey | typeof REASONS.closePress | typeof REASONS.focusOut | typeof REASONS.imperativeAction | typeof REASONS.none;
@@ -411,15 +545,16 @@ export declare interface DialogRootProps<Payload = unknown> {
411
545
  */
412
546
  onOpenChangeComplete?: ((open: boolean) => void) | undefined;
413
547
  /**
414
- * Determines whether the dialog should close on outside clicks.
548
+ * Whether to prevent the dialog from closing on outside presses.
549
+ * For non-modal dialogs, this also prevents the dialog from closing when focus moves outside of it.
415
550
  * @default false
416
551
  */
417
552
  disablePointerDismissal?: boolean | undefined;
418
553
  /**
419
554
  * A ref to imperative actions.
420
- * - `unmount`: When specified, the dialog will not be unmounted when closed.
421
- * Instead, the `unmount` function must be called to unmount the dialog manually.
422
- * Useful when the dialog's animation is controlled by an external library.
555
+ * - `unmount`: Ends the closing phase of the dialog after an externally controlled closing animation finishes.
556
+ * Call `preventUnmountOnClose()` in `onOpenChange` first, otherwise the dialog completes closing on its own.
557
+ * Whether it leaves the DOM is decided by `keepMounted` on the portal.
423
558
  * - `close`: Closes the dialog imperatively when called.
424
559
  */
425
560
  actionsRef?: React_2.RefObject<DialogRoot.Actions | null> | undefined;
@@ -450,9 +585,8 @@ export declare interface DialogRootProps<Payload = unknown> {
450
585
  export declare interface DialogRootState {}
451
586
 
452
587
  declare class DialogStore<Payload> extends ReactStore<Readonly<State<Payload>>, Context, typeof selectors_2> {
453
- constructor(initialState?: Partial<State<Payload>>, floatingId?: string | undefined, nested?: boolean);
454
- setOpen: (nextOpen: boolean, eventDetails: Omit<DialogRoot.ChangeEventDetails, "preventUnmountOnClose">) => void;
455
- static useStore<Payload>(externalStore: DialogStore<Payload> | undefined, initialState?: Partial<State<Payload>>): DialogStore<Payload>;
588
+ constructor(initialState: Partial<State<Payload>> | undefined, floatingId: string | undefined, nested: boolean);
589
+ setOpen: (nextOpen: boolean, eventDetails: Omit<DialogRoot.ChangeEventDetails, 'preventUnmountOnClose'>) => void;
456
590
  }
457
591
 
458
592
  /**
@@ -489,6 +623,13 @@ export declare namespace DialogTrigger {
489
623
  export type State = DialogTriggerState;
490
624
  }
491
625
 
626
+ export declare namespace DialogTriggerDataAttributes {
627
+ export {
628
+ disabled_3 as disabled,
629
+ popupOpen
630
+ }
631
+ }
632
+
492
633
  export declare interface DialogTriggerProps<Payload = unknown> extends NativeButtonProps, BaseUIComponentProps<'button', DialogTriggerState> {
493
634
  /**
494
635
  * A handle to associate the trigger with a dialog.
@@ -508,11 +649,11 @@ export declare interface DialogTriggerProps<Payload = unknown> extends NativeBut
508
649
 
509
650
  export declare interface DialogTriggerState {
510
651
  /**
511
- * Whether the dialog is currently disabled.
652
+ * Whether the trigger is currently disabled.
512
653
  */
513
654
  disabled: boolean;
514
655
  /**
515
- * Whether the dialog is currently open.
656
+ * Whether the dialog is currently open and was opened by this trigger.
516
657
  */
517
658
  open: boolean;
518
659
  }
@@ -530,6 +671,17 @@ export declare namespace DialogViewport {
530
671
  export type Props = DialogViewportProps;
531
672
  }
532
673
 
674
+ export declare namespace DialogViewportDataAttributes {
675
+ export {
676
+ open_4 as open,
677
+ closed_4 as closed,
678
+ startingStyle_3 as startingStyle,
679
+ endingStyle_3 as endingStyle,
680
+ nested_2 as nested,
681
+ nestedDialogOpen_2 as nestedDialogOpen
682
+ }
683
+ }
684
+
533
685
  export declare interface DialogViewportProps extends BaseUIComponentProps<'div', DialogViewportState> {}
534
686
 
535
687
  export declare interface DialogViewportState {
@@ -551,11 +703,36 @@ export declare interface DialogViewportState {
551
703
  nestedDialogOpen: boolean;
552
704
  }
553
705
 
554
- declare const disabled: "disabled";
706
+ declare const disabled: 'disabled';
555
707
 
556
- declare const drag: "drag";
708
+ /**
709
+ * Present when the button is disabled.
710
+ */
711
+ declare const disabled_2 = "data-disabled";
557
712
 
558
- declare const escapeKey: "escape-key";
713
+ /**
714
+ * Present when the trigger is disabled.
715
+ */
716
+ declare const disabled_3 = "data-disabled";
717
+
718
+ declare const drag: 'drag';
719
+
720
+ /**
721
+ * Present when the dialog is animating out.
722
+ */
723
+ declare const endingStyle = "data-ending-style";
724
+
725
+ /**
726
+ * Present when the dialog is animating out.
727
+ */
728
+ declare const endingStyle_2 = "data-ending-style";
729
+
730
+ /**
731
+ * Present when the dialog is animating out.
732
+ */
733
+ declare const endingStyle_3 = "data-ending-style";
734
+
735
+ declare const escapeKey: 'escape-key';
559
736
 
560
737
  declare interface ExtendedElements {
561
738
  reference: ReferenceType | null;
@@ -590,31 +767,6 @@ declare interface FloatingEvents {
590
767
  off(event: string, handler: (data: any) => void): void;
591
768
  }
592
769
 
593
- /**
594
- * Portals the floating element into a given container element — by default,
595
- * outside of the app root and into the body.
596
- * This is necessary to ensure the floating element can appear outside any
597
- * potential parent containers that cause clipping (such as `overflow: hidden`),
598
- * while retaining its location in the React tree.
599
- * @see https://floating-ui.com/docs/FloatingPortal
600
- * @internal
601
- */
602
- declare const FloatingPortal: React_2.ForwardRefExoticComponent<Omit<FloatingPortal.Props<any> & {
603
- renderGuards?: boolean | undefined;
604
- }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
605
-
606
- declare namespace FloatingPortal {
607
- type State = FloatingPortalState;
608
- interface Props<TState> extends BaseUIComponentProps<'div', TState> {
609
- /**
610
- * A parent element to render the portal element into.
611
- */
612
- container?: UseFloatingPortalNodeProps['container'] | undefined;
613
- }
614
- }
615
-
616
- declare interface FloatingPortalState {}
617
-
618
770
  declare type FloatingRootContext = FloatingRootStore;
619
771
 
620
772
  declare interface FloatingRootState {
@@ -674,37 +826,37 @@ declare interface FloatingRootStoreOptions {
674
826
  onOpenChange: ((open: boolean, eventDetails: BaseUIChangeEventDetails<string>) => void) | undefined;
675
827
  }
676
828
 
677
- declare const focusOut: "focus-out";
829
+ declare const focusOut: 'focus-out';
678
830
 
679
831
  declare type HTMLProps<T = any> = React_2.HTMLAttributes<T> & {
680
832
  ref?: React_2.Ref<T> | undefined;
681
833
  };
682
834
 
683
- declare const imperativeAction: "imperative-action";
835
+ declare const imperativeAction: 'imperative-action';
684
836
 
685
- declare const incrementPress: "increment-press";
837
+ declare const incrementPress: 'increment-press';
686
838
 
687
- declare const initial: "initial";
839
+ declare const initial: 'initial';
688
840
 
689
- declare const inputBlur: "input-blur";
841
+ declare const inputBlur: 'input-blur';
690
842
 
691
- declare const inputChange: "input-change";
843
+ declare const inputChange: 'input-change';
692
844
 
693
- declare const inputClear: "input-clear";
845
+ declare const inputClear: 'input-clear';
694
846
 
695
- declare const inputPaste: "input-paste";
847
+ declare const inputPaste: 'input-paste';
696
848
 
697
- declare const inputPress: "input-press";
849
+ declare const inputPress: 'input-press';
698
850
 
699
- declare const itemPress: "item-press";
851
+ declare const itemPress: 'item-press';
700
852
 
701
- declare const keyboard: "keyboard";
853
+ declare const keyboard: 'keyboard';
702
854
 
703
- declare const linkPress: "link-press";
855
+ declare const linkPress: 'link-press';
704
856
 
705
- declare const listNavigation: "list-navigation";
857
+ declare const listNavigation: 'list-navigation';
706
858
 
707
- declare const missing: "missing";
859
+ declare const missing: 'missing';
708
860
 
709
861
  declare type NarrowedElement<T> = T extends Element ? T : Element;
710
862
 
@@ -718,15 +870,86 @@ declare interface NativeButtonProps {
718
870
  nativeButton?: boolean | undefined;
719
871
  }
720
872
 
721
- declare const none: "none";
873
+ /**
874
+ * Present when the dialog is nested within another dialog.
875
+ */
876
+ declare const nested = "data-nested";
722
877
 
723
- declare const outsidePress: "outside-press";
878
+ /**
879
+ * Present when the dialog is nested within another dialog.
880
+ */
881
+ declare const nested_2 = "data-nested";
882
+
883
+ /**
884
+ * Present when the dialog has other open dialogs nested within it.
885
+ */
886
+ declare const nestedDialogOpen = "data-nested-dialog-open";
887
+
888
+ /**
889
+ * Present when the dialog has other open dialogs nested within it.
890
+ */
891
+ declare const nestedDialogOpen_2 = "data-nested-dialog-open";
892
+
893
+ /**
894
+ * Indicates how many dialogs are nested within.
895
+ * @type {number}
896
+ */
897
+ declare const nestedDialogs = "--nested-dialogs";
898
+
899
+ declare const none: 'none';
900
+
901
+ /**
902
+ * Present when the dialog is open.
903
+ */
904
+ declare const open_2 = "data-open";
905
+
906
+ /**
907
+ * Present when the dialog is open.
908
+ */
909
+ declare const open_3 = "data-open";
910
+
911
+ /**
912
+ * Present when the dialog is open.
913
+ */
914
+ declare const open_4 = "data-open";
915
+
916
+ declare const openSelector: (state: S) => boolean;
917
+
918
+ declare const outsidePress: 'outside-press';
724
919
 
725
920
  declare type PayloadChildRenderFunction<Payload> = (arg: {
726
921
  payload: Payload | undefined;
727
922
  }) => React_2.ReactNode;
728
923
 
729
- declare const pointer: "pointer";
924
+ declare const pointer: 'pointer';
925
+
926
+ declare const popupClose: 'popup-close';
927
+
928
+ /**
929
+ * Store shape required by `BasePopupHandle.openByTrigger`/`closePopup` to drive open/close state.
930
+ * Only the root-owned `Store` needs this — the `HandleStore` view exposed to detached triggers may
931
+ * omit `setOpen` entirely (as Dialog and PreviewCard's do) since it is never called while detached.
932
+ */
933
+ declare interface PopupHandleStoreWithOpen extends PopupHandleStoreWithTriggers {
934
+ setOpen(open: boolean, eventDetails: BaseUIChangeEventDetails<typeof REASONS.imperativeAction>): void;
935
+ }
936
+
937
+ /**
938
+ * Store shape holding a trigger registry, required by `BasePopupHandle.openByTrigger` to resolve a
939
+ * trigger element by id on both the attached root's store and the fallback store.
940
+ */
941
+ declare interface PopupHandleStoreWithTriggers {
942
+ readonly context: {
943
+ readonly triggerElements: PopupTriggerMap;
944
+ };
945
+ }
946
+
947
+ declare const popupIdSelector: (state: S) => string | undefined;
948
+
949
+ /**
950
+ * Present when the corresponding dialog is open.
951
+ */
952
+ declare const popupOpen = "data-popup-open";
730
953
 
731
954
  declare type PopupStoreContext<ChangeEventDetails> = {
732
955
  /**
@@ -747,6 +970,41 @@ declare type PopupStoreContext<ChangeEventDetails> = {
747
970
  onOpenChangeComplete: ((open: boolean) => void) | undefined;
748
971
  };
749
972
 
973
+ declare type PopupStoreSelectors = typeof popupStoreSelectors;
974
+
975
+ declare const popupStoreSelectors: {
976
+ open: typeof openSelector;
977
+ mounted: (state: S) => boolean;
978
+ transitionStatus: (state: S) => TransitionStatus;
979
+ floatingRootContext: (state: S) => FloatingRootStore;
980
+ triggerCount: (state: S) => number;
981
+ preventUnmountingOnClose: (state: S) => boolean;
982
+ payload: (state: S) => unknown;
983
+ activeTriggerId: typeof activeTriggerIdSelector;
984
+ activeTriggerElement: (state: S) => Element | null;
985
+ popupId: typeof popupIdSelector;
986
+ /**
987
+ * Whether the trigger with the given ID was used to open the popup.
988
+ */
989
+ isTriggerActive: (state: S, triggerId: string | undefined) => boolean;
990
+ /**
991
+ * Whether the popup is open and was activated by a trigger with the given ID.
992
+ */
993
+ isOpenedByTrigger: (state: S, triggerId: string | undefined) => boolean;
994
+ /**
995
+ * Whether the popup is mounted and was activated by a trigger with the given ID.
996
+ */
997
+ isMountedByTrigger: (state: S, triggerId: string | undefined) => boolean;
998
+ triggerProps: (state: S, isActive: boolean) => HTMLProps;
999
+ /**
1000
+ * Popup id for the trigger that currently owns the open popup.
1001
+ */
1002
+ triggerPopupId: (state: S, triggerId: string | undefined) => string | undefined;
1003
+ popupProps: (state: S) => HTMLProps;
1004
+ popupElement: (state: S) => HTMLElement | null;
1005
+ positionerElement: (state: S) => HTMLElement | null;
1006
+ };
1007
+
750
1008
  /**
751
1009
  * State common to all popup stores.
752
1010
  */
@@ -791,6 +1049,13 @@ declare type PopupStoreState<Payload> = {
791
1049
  * The currently active trigger DOM element.
792
1050
  */
793
1051
  activeTriggerElement: Element | null;
1052
+ /**
1053
+ * Whether the popup is open because of a request that deliberately carried no trigger, such as a
1054
+ * handle's `open(null)` or `openWithPayload()`. While set, a lone registered trigger is not
1055
+ * implicitly associated with the popup, so its trigger-owned state (such as `payload`) is not
1056
+ * forwarded. Reset by the Root once the popup is effectively closed.
1057
+ */
1058
+ openedWithoutTrigger: boolean;
794
1059
  /**
795
1060
  * ID of the trigger (external prop).
796
1061
  */
@@ -817,14 +1082,20 @@ declare type PopupStoreState<Payload> = {
817
1082
  popupProps: HTMLProps;
818
1083
  };
819
1084
 
1085
+ /**
1086
+ * The subset of a popup store that trigger registration and data forwarding rely on. Narrow enough
1087
+ * that an inert store can be passed while detached.
1088
+ */
1089
+ declare type PopupTriggerDataStore<State extends PopupStoreState<unknown>> = Pick<ReactStore<Readonly<State>, PopupStoreContext<never>, PopupStoreSelectors>, PopupTriggerStoreKeys>;
1090
+
820
1091
  /**
821
1092
  * Data structure to keep track of popup trigger elements by their IDs.
822
- * Uses both a set of Elements and a map of IDs to Elements for efficient lookups.
1093
+ *
1094
+ * Element lookups iterate the id map rather than maintaining a parallel Set. Registration is O(1),
1095
+ * while `hasElement` and `hasMatchingElement` are linear in the number of triggers.
823
1096
  */
824
1097
  declare class PopupTriggerMap {
825
- private elementsSet;
826
1098
  private idMap;
827
- constructor();
828
1099
  /**
829
1100
  * Adds a trigger element with the given ID.
830
1101
  *
@@ -861,6 +1132,15 @@ declare class PopupTriggerMap {
861
1132
  get size(): number;
862
1133
  }
863
1134
 
1135
+ /**
1136
+ * Store members a detached handle-backed trigger reads or invokes for trigger registration and data
1137
+ * forwarding. `set`/`update` are included only for trigger-count and trigger-data bookkeeping; on a
1138
+ * detached (inert) store they are intentionally no-ops, so a write through them is not guaranteed to
1139
+ * be durable. Component handle-store views Pick these from their concrete store (preserving its
1140
+ * context and selectors) and add any component-specific trigger-invoked members such as `setOpen`.
1141
+ */
1142
+ declare type PopupTriggerStoreKeys = 'context' | 'select' | 'set' | 'state' | 'update' | 'useState';
1143
+
864
1144
  declare type PortalProps = React_2.ComponentPropsWithoutRef<typeof Dialog_2.Portal>;
865
1145
 
866
1146
  declare namespace REASONS {
@@ -892,6 +1172,7 @@ declare namespace REASONS {
892
1172
  drag,
893
1173
  wheel,
894
1174
  scrub,
1175
+ popupClose,
895
1176
  cancelOpen,
896
1177
  siblingOpen,
897
1178
  disabled,
@@ -950,7 +1231,9 @@ declare type ReferenceType = Element | VirtualElement;
950
1231
 
951
1232
  declare function Root<Payload = unknown>({ modal, ...props }: Dialog_2.Root.Props<Payload>): JSX_2.Element;
952
1233
 
953
- declare const scrub: "scrub";
1234
+ declare type S = PopupStoreState<unknown>;
1235
+
1236
+ declare const scrub: 'scrub';
954
1237
 
955
1238
  declare const selectors: {
956
1239
  open: (state: FloatingRootState) => boolean;
@@ -962,16 +1245,6 @@ declare const selectors: {
962
1245
  };
963
1246
 
964
1247
  declare const selectors_2: {
965
- modal: (state: State<unknown>) => boolean | "trap-focus";
966
- nested: (state: State<unknown>) => boolean;
967
- nestedOpenDialogCount: (state: State<unknown>) => number;
968
- nestedOpenDrawerCount: (state: State<unknown>) => number;
969
- disablePointerDismissal: (state: State<unknown>) => boolean;
970
- openMethod: (state: State<unknown>) => InteractionType | null;
971
- descriptionElementId: (state: State<unknown>) => string | undefined;
972
- titleElementId: (state: State<unknown>) => string | undefined;
973
- viewportElement: (state: State<unknown>) => HTMLElement | null;
974
- role: (state: State<unknown>) => "dialog" | "alertdialog";
975
1248
  open: (state: {
976
1249
  open: boolean;
977
1250
  readonly openProp: boolean | undefined;
@@ -984,6 +1257,7 @@ declare const selectors_2: {
984
1257
  payload: unknown;
985
1258
  activeTriggerId: string | null;
986
1259
  activeTriggerElement: Element | null;
1260
+ openedWithoutTrigger: boolean;
987
1261
  readonly triggerIdProp: string | null | undefined;
988
1262
  popupElement: HTMLElement | null;
989
1263
  positionerElement: HTMLElement | null;
@@ -1003,6 +1277,7 @@ declare const selectors_2: {
1003
1277
  payload: unknown;
1004
1278
  activeTriggerId: string | null;
1005
1279
  activeTriggerElement: Element | null;
1280
+ openedWithoutTrigger: boolean;
1006
1281
  readonly triggerIdProp: string | null | undefined;
1007
1282
  popupElement: HTMLElement | null;
1008
1283
  positionerElement: HTMLElement | null;
@@ -1022,6 +1297,7 @@ declare const selectors_2: {
1022
1297
  payload: unknown;
1023
1298
  activeTriggerId: string | null;
1024
1299
  activeTriggerElement: Element | null;
1300
+ openedWithoutTrigger: boolean;
1025
1301
  readonly triggerIdProp: string | null | undefined;
1026
1302
  popupElement: HTMLElement | null;
1027
1303
  positionerElement: HTMLElement | null;
@@ -1041,6 +1317,7 @@ declare const selectors_2: {
1041
1317
  payload: unknown;
1042
1318
  activeTriggerId: string | null;
1043
1319
  activeTriggerElement: Element | null;
1320
+ openedWithoutTrigger: boolean;
1044
1321
  readonly triggerIdProp: string | null | undefined;
1045
1322
  popupElement: HTMLElement | null;
1046
1323
  positionerElement: HTMLElement | null;
@@ -1060,6 +1337,7 @@ declare const selectors_2: {
1060
1337
  payload: unknown;
1061
1338
  activeTriggerId: string | null;
1062
1339
  activeTriggerElement: Element | null;
1340
+ openedWithoutTrigger: boolean;
1063
1341
  readonly triggerIdProp: string | null | undefined;
1064
1342
  popupElement: HTMLElement | null;
1065
1343
  positionerElement: HTMLElement | null;
@@ -1079,6 +1357,7 @@ declare const selectors_2: {
1079
1357
  payload: unknown;
1080
1358
  activeTriggerId: string | null;
1081
1359
  activeTriggerElement: Element | null;
1360
+ openedWithoutTrigger: boolean;
1082
1361
  readonly triggerIdProp: string | null | undefined;
1083
1362
  popupElement: HTMLElement | null;
1084
1363
  positionerElement: HTMLElement | null;
@@ -1098,6 +1377,7 @@ declare const selectors_2: {
1098
1377
  payload: unknown;
1099
1378
  activeTriggerId: string | null;
1100
1379
  activeTriggerElement: Element | null;
1380
+ openedWithoutTrigger: boolean;
1101
1381
  readonly triggerIdProp: string | null | undefined;
1102
1382
  popupElement: HTMLElement | null;
1103
1383
  positionerElement: HTMLElement | null;
@@ -1117,6 +1397,7 @@ declare const selectors_2: {
1117
1397
  payload: unknown;
1118
1398
  activeTriggerId: string | null;
1119
1399
  activeTriggerElement: Element | null;
1400
+ openedWithoutTrigger: boolean;
1120
1401
  readonly triggerIdProp: string | null | undefined;
1121
1402
  popupElement: HTMLElement | null;
1122
1403
  positionerElement: HTMLElement | null;
@@ -1136,6 +1417,7 @@ declare const selectors_2: {
1136
1417
  payload: unknown;
1137
1418
  activeTriggerId: string | null;
1138
1419
  activeTriggerElement: Element | null;
1420
+ openedWithoutTrigger: boolean;
1139
1421
  readonly triggerIdProp: string | null | undefined;
1140
1422
  popupElement: HTMLElement | null;
1141
1423
  positionerElement: HTMLElement | null;
@@ -1155,6 +1437,7 @@ declare const selectors_2: {
1155
1437
  payload: unknown;
1156
1438
  activeTriggerId: string | null;
1157
1439
  activeTriggerElement: Element | null;
1440
+ openedWithoutTrigger: boolean;
1158
1441
  readonly triggerIdProp: string | null | undefined;
1159
1442
  popupElement: HTMLElement | null;
1160
1443
  positionerElement: HTMLElement | null;
@@ -1174,6 +1457,7 @@ declare const selectors_2: {
1174
1457
  payload: unknown;
1175
1458
  activeTriggerId: string | null;
1176
1459
  activeTriggerElement: Element | null;
1460
+ openedWithoutTrigger: boolean;
1177
1461
  readonly triggerIdProp: string | null | undefined;
1178
1462
  popupElement: HTMLElement | null;
1179
1463
  positionerElement: HTMLElement | null;
@@ -1193,6 +1477,7 @@ declare const selectors_2: {
1193
1477
  payload: unknown;
1194
1478
  activeTriggerId: string | null;
1195
1479
  activeTriggerElement: Element | null;
1480
+ openedWithoutTrigger: boolean;
1196
1481
  readonly triggerIdProp: string | null | undefined;
1197
1482
  popupElement: HTMLElement | null;
1198
1483
  positionerElement: HTMLElement | null;
@@ -1212,6 +1497,7 @@ declare const selectors_2: {
1212
1497
  payload: unknown;
1213
1498
  activeTriggerId: string | null;
1214
1499
  activeTriggerElement: Element | null;
1500
+ openedWithoutTrigger: boolean;
1215
1501
  readonly triggerIdProp: string | null | undefined;
1216
1502
  popupElement: HTMLElement | null;
1217
1503
  positionerElement: HTMLElement | null;
@@ -1231,6 +1517,7 @@ declare const selectors_2: {
1231
1517
  payload: unknown;
1232
1518
  activeTriggerId: string | null;
1233
1519
  activeTriggerElement: Element | null;
1520
+ openedWithoutTrigger: boolean;
1234
1521
  readonly triggerIdProp: string | null | undefined;
1235
1522
  popupElement: HTMLElement | null;
1236
1523
  positionerElement: HTMLElement | null;
@@ -1250,6 +1537,7 @@ declare const selectors_2: {
1250
1537
  payload: unknown;
1251
1538
  activeTriggerId: string | null;
1252
1539
  activeTriggerElement: Element | null;
1540
+ openedWithoutTrigger: boolean;
1253
1541
  readonly triggerIdProp: string | null | undefined;
1254
1542
  popupElement: HTMLElement | null;
1255
1543
  positionerElement: HTMLElement | null;
@@ -1269,6 +1557,7 @@ declare const selectors_2: {
1269
1557
  payload: unknown;
1270
1558
  activeTriggerId: string | null;
1271
1559
  activeTriggerElement: Element | null;
1560
+ openedWithoutTrigger: boolean;
1272
1561
  readonly triggerIdProp: string | null | undefined;
1273
1562
  popupElement: HTMLElement | null;
1274
1563
  positionerElement: HTMLElement | null;
@@ -1288,6 +1577,7 @@ declare const selectors_2: {
1288
1577
  payload: unknown;
1289
1578
  activeTriggerId: string | null;
1290
1579
  activeTriggerElement: Element | null;
1580
+ openedWithoutTrigger: boolean;
1291
1581
  readonly triggerIdProp: string | null | undefined;
1292
1582
  popupElement: HTMLElement | null;
1293
1583
  positionerElement: HTMLElement | null;
@@ -1307,6 +1597,7 @@ declare const selectors_2: {
1307
1597
  payload: unknown;
1308
1598
  activeTriggerId: string | null;
1309
1599
  activeTriggerElement: Element | null;
1600
+ openedWithoutTrigger: boolean;
1310
1601
  readonly triggerIdProp: string | null | undefined;
1311
1602
  popupElement: HTMLElement | null;
1312
1603
  positionerElement: HTMLElement | null;
@@ -1314,9 +1605,34 @@ declare const selectors_2: {
1314
1605
  inactiveTriggerProps: HTMLProps_2;
1315
1606
  popupProps: HTMLProps_2;
1316
1607
  }) => HTMLElement | null;
1608
+ modal: (state: State<unknown>) => "trap-focus" | boolean;
1609
+ nested: (state: State<unknown>) => boolean;
1610
+ nestedOpenDialogCount: (state: State<unknown>) => number;
1611
+ nestedOpenDrawerCount: (state: State<unknown>) => number;
1612
+ disablePointerDismissal: (state: State<unknown>) => boolean;
1613
+ openMethod: (state: State<unknown>) => InteractionType | null;
1614
+ descriptionElementId: (state: State<unknown>) => string | undefined;
1615
+ titleElementId: (state: State<unknown>) => string | undefined;
1616
+ viewportElement: (state: State<unknown>) => HTMLElement | null;
1617
+ role: (state: State<unknown>) => "alertdialog" | "dialog";
1317
1618
  };
1318
1619
 
1319
- declare const siblingOpen: "sibling-open";
1620
+ declare const siblingOpen: 'sibling-open';
1621
+
1622
+ /**
1623
+ * Present when the dialog begins animating in.
1624
+ */
1625
+ declare const startingStyle = "data-starting-style";
1626
+
1627
+ /**
1628
+ * Present when the dialog begins animating in.
1629
+ */
1630
+ declare const startingStyle_2 = "data-starting-style";
1631
+
1632
+ /**
1633
+ * Present when the dialog begins animating in.
1634
+ */
1635
+ declare const startingStyle_3 = "data-starting-style";
1320
1636
 
1321
1637
  declare type State<Payload> = PopupStoreState<Payload> & {
1322
1638
  modal: boolean | 'trap-focus';
@@ -1331,47 +1647,23 @@ declare type State<Payload> = PopupStoreState<Payload> & {
1331
1647
  role: 'dialog' | 'alertdialog';
1332
1648
  };
1333
1649
 
1334
- declare const swipe: "swipe";
1650
+ declare const swipe: 'swipe';
1335
1651
 
1336
- declare const trackPress: "track-press";
1652
+ declare const trackPress: 'track-press';
1337
1653
 
1338
1654
  declare type TransitionStatus = 'starting' | 'ending' | 'idle' | undefined;
1339
1655
 
1340
1656
  declare function Trigger<Payload = unknown>({ className, ...props }: WithStringClassName<Dialog_2.Trigger.Props<Payload>> & React_2.RefAttributes<HTMLElement>): JSX_2.Element;
1341
1657
 
1342
- declare const triggerFocus: "trigger-focus";
1343
-
1344
- declare const triggerHover: "trigger-hover";
1658
+ declare const triggerFocus: 'trigger-focus';
1345
1659
 
1346
- declare const triggerPress: "trigger-press";
1660
+ declare const triggerHover: 'trigger-hover';
1347
1661
 
1348
- declare interface UseFloatingPortalNodeProps {
1349
- ref?: React_2.Ref<HTMLDivElement> | undefined;
1350
- container?: HTMLElement | ShadowRoot | null | React_2.RefObject<HTMLElement | ShadowRoot | null> | undefined;
1351
- componentProps?: UseRenderElementComponentProps<any> | undefined;
1352
- elementProps?: React_2.HTMLAttributes<HTMLDivElement> | undefined;
1353
- }
1354
-
1355
- declare interface UseRenderElementComponentProps<State> {
1356
- /**
1357
- * The class name to apply to the rendered element.
1358
- * Can be a string or a function that accepts the state and returns a string.
1359
- */
1360
- className?: string | ((state: State) => string | undefined) | undefined;
1361
- /**
1362
- * The render prop or React element to override the default element.
1363
- */
1364
- render?: undefined | React_2.ReactElement | ComponentRenderFn<React_2.HTMLAttributes<any>, State>;
1365
- /**
1366
- * The style to apply to the rendered element.
1367
- * Can be a style object or a function that accepts the state and returns a style object.
1368
- */
1369
- style?: React_2.CSSProperties | ((state: State) => React_2.CSSProperties | undefined) | undefined;
1370
- }
1662
+ declare const triggerPress: 'trigger-press';
1371
1663
 
1372
- declare const wheel: "wheel";
1664
+ declare const wheel: 'wheel';
1373
1665
 
1374
- declare const windowResize: "window-resize";
1666
+ declare const windowResize: 'window-resize';
1375
1667
 
1376
1668
  /**
1377
1669
  * Adds a `preventBaseUIHandler` method to all event handlers.