@wix/site-ui 1.346.0 → 1.348.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.
- package/dist/{6706.js → 1093.js} +3 -3
- package/dist/{8724.js → 1219.js} +2 -2
- package/dist/{7373.js → 1288.js} +8 -2
- package/dist/{5299.js → 1381.js} +98 -127
- package/dist/{3056.js → 1607.js} +32 -34
- package/dist/1629.js +2 -0
- package/dist/1669.js +75 -0
- package/dist/1718.js +26 -0
- package/dist/{1477.js → 201.js} +17 -26
- package/dist/2221.js +9 -0
- package/dist/{2445.js → 226.js} +12 -48
- package/dist/2387.js +7 -0
- package/dist/2580.js +6 -0
- package/dist/{1500.js → 2859.js} +10 -34
- package/dist/3014.js +178 -0
- package/dist/{6247.js → 3054.js} +3 -3
- package/dist/{7642.js → 3093.js} +1 -1
- package/dist/3189.js +5 -0
- package/dist/{7564.js → 331.js} +2 -2
- package/dist/3357.js +7 -0
- package/dist/{487.js → 3398.js} +38 -39
- package/dist/3502.js +224 -0
- package/dist/3695.js +50 -0
- package/dist/3829.js +1 -1
- package/dist/{6588.js → 3859.js} +115 -92
- package/dist/{3670.js → 3910.js} +28 -21
- package/dist/392.js +7 -0
- package/dist/{4549.js → 4155.js} +11 -3
- package/dist/4226.js +7 -0
- package/dist/{6329.js → 4229.js} +1 -1
- package/dist/4293.js +3 -0
- package/dist/4346.js +853 -2
- package/dist/{285.js → 4472.js} +3 -3
- package/dist/4605.js +207 -0
- package/dist/{7366.js → 488.js} +60 -7
- package/dist/{8750.js → 497.js} +190 -375
- package/dist/4989.js +35 -0
- package/dist/{6270.js → 510.js} +157 -196
- package/dist/5258.js +26 -0
- package/dist/{5036.js → 5275.js} +0 -3
- package/dist/{8171.js → 5298.js} +90 -102
- package/dist/5473.js +11 -0
- package/dist/{4745.js → 5490.js} +3 -1
- package/dist/{6089.js → 5561.js} +869 -786
- package/dist/{8996.js → 5595.js} +4 -3
- package/dist/5890.js +25 -0
- package/dist/{6046.js → 5969.js} +1 -1
- package/dist/5984.js +38 -0
- package/dist/{8527.js → 6006.js} +3 -3
- package/dist/6040.js +97 -0
- package/dist/{8758.js → 6137.js} +10 -8
- package/dist/{4281.js → 6140.js} +18 -10
- package/dist/{8960.js → 6191.js} +2 -2
- package/dist/6240.js +121 -0
- package/dist/{4490.js → 6373.js} +7 -5
- package/dist/{904.js → 6487.js} +19 -17
- package/dist/{9635.js → 6498.js} +1 -1
- package/dist/6499.js +4 -7
- package/dist/6508.js +7 -0
- package/dist/{8225.js → 6540.js} +1 -0
- package/dist/6551.js +46 -0
- package/dist/{9369.js → 6620.js} +35 -34
- package/dist/{4143.js → 6838.js} +19 -10
- package/dist/6902.js +48 -0
- package/dist/6904.js +51 -0
- package/dist/70.js +24 -0
- package/dist/7024.js +39 -0
- package/dist/{6882.js → 721.js} +737 -362
- package/dist/{951.js → 7270.js} +4 -4
- package/dist/{3485.js → 7323.js} +143 -111
- package/dist/{7541.js → 7488.js} +2 -2
- package/dist/{4863.js → 7542.js} +7 -6
- package/dist/7551.js +28 -0
- package/dist/{7021.js → 7640.js} +1 -1
- package/dist/{353.js → 7692.js} +3 -7
- package/dist/{4707.js → 7930.js} +2 -2
- package/dist/{8052.js → 8.js} +80 -64
- package/dist/{6914.js → 8129.js} +3 -15
- package/dist/{3319.js → 8358.js} +62 -63
- package/dist/{5864.js → 8407.js} +13 -13
- package/dist/8488.js +15 -0
- package/dist/{4768.js → 8495.js} +1 -1
- package/dist/8734.js +171 -0
- package/dist/{1763.js → 9018.js} +205 -331
- package/dist/9053.js +29 -0
- package/dist/9067.js +41 -0
- package/dist/{2861.js → 9120.js} +2 -2
- package/dist/{42.js → 9197.js} +2 -2
- package/dist/{9189.js → 9248.js} +36 -17
- package/dist/{2801.js → 9252.js} +4 -9
- package/dist/9295.js +7 -0
- package/dist/9303.js +8 -0
- package/dist/{167.js → 9374.js} +1 -1
- package/dist/{9352.js → 9540.js} +17 -47
- package/dist/9576.js +51 -0
- package/dist/{8272.js → 9591.js} +36 -46
- package/dist/{6107.js → 9770.js} +2 -2
- package/dist/{5085.js → 9880.js} +6 -3
- package/dist/Accordion/index.d.ts +207 -41
- package/dist/Accordion/index.js +75 -177
- package/dist/AlertDialog/index.d.ts +440 -140
- package/dist/AlertDialog/index.js +3 -13
- package/dist/Autocomplete/index.d.ts +722 -150
- package/dist/Autocomplete/index.js +16 -29
- package/dist/Avatar/index.d.ts +38 -3
- package/dist/Avatar/index.js +82 -28
- package/dist/Breadcrumbs/index.d.ts +63 -91
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/Button/index.d.ts +11 -0
- package/dist/Button/index.js +2 -2
- package/dist/Checkbox/index.d.ts +206 -36
- package/dist/Checkbox/index.js +293 -8
- package/dist/CheckboxField/index.css +1 -1
- package/dist/CheckboxField/index.d.ts +40 -36
- package/dist/CheckboxGroup/index.d.ts +50 -36
- package/dist/CheckboxGroup/index.js +87 -58
- package/dist/CheckboxGroupField/index.css +1 -1
- package/dist/Collapsible/index.d.ts +128 -36
- package/dist/Collapsible/index.js +21 -25
- package/dist/Combobox/index.d.ts +801 -158
- package/dist/Combobox/index.js +70 -114
- package/dist/ContextMenu/index.d.ts +1162 -195
- package/dist/ContextMenu/index.js +46 -36
- package/dist/Dialog/index.d.ts +425 -133
- package/dist/Dialog/index.js +8 -4
- package/dist/Drawer/index.d.ts +589 -144
- package/dist/Drawer/index.js +482 -562
- package/dist/Field/index.css +1 -1
- package/dist/Field/index.d.ts +341 -42
- package/dist/Field/index.js +123 -273
- package/dist/Fieldset/index.d.ts +11 -0
- package/dist/Fieldset/index.js +10 -17
- package/dist/Form/index.d.ts +43 -39
- package/dist/Form/index.js +58 -50
- package/dist/Input/index.css +1 -1
- package/dist/Input/index.d.ts +94 -42
- package/dist/Input/index.js +1 -1
- package/dist/Menu/index.d.ts +1140 -175
- package/dist/Menu/index.js +51 -67
- package/dist/Menubar/index.d.ts +651 -173
- package/dist/Menubar/index.js +12 -16
- package/dist/Meter/index.js +21 -18
- package/dist/NavigationMenu/index.d.ts +370 -86
- package/dist/NavigationMenu/index.js +144 -178
- package/dist/NumberField/index.css +1 -1
- package/dist/NumberField/index.d.ts +507 -47
- package/dist/NumberField/index.js +434 -718
- package/dist/Popover/index.d.ts +561 -142
- package/dist/Popover/index.js +181 -252
- package/dist/PreviewCard/index.d.ts +507 -143
- package/dist/PreviewCard/index.js +97 -151
- package/dist/Progress/index.d.ts +117 -3
- package/dist/Progress/index.js +37 -36
- package/dist/Radio/index.d.ts +177 -7
- package/dist/Radio/index.js +54 -70
- package/dist/RadioField/index.css +1 -1
- package/dist/RadioField/index.d.ts +23 -7
- package/dist/RadioGroup/index.d.ts +51 -37
- package/dist/RadioGroup/index.js +60 -51
- package/dist/RadioGroupField/index.css +1 -1
- package/dist/RadioGroupField/index.d.ts +40 -37
- package/dist/ScrollArea/index.d.ts +295 -1
- package/dist/ScrollArea/index.js +256 -324
- package/dist/Select/index.d.ts +516 -123
- package/dist/Select/index.js +513 -635
- package/dist/SelectField/index.css +1 -1
- package/dist/SelectField/index.d.ts +109 -134
- package/dist/SelectField/index.js +5 -1
- package/dist/Separator/index.d.ts +12 -0
- package/dist/Separator/index.js +1 -1
- package/dist/Slider/index.d.ts +383 -64
- package/dist/Slider/index.js +298 -374
- package/dist/Switch/index.d.ts +184 -37
- package/dist/Switch/index.js +44 -58
- package/dist/Tabs/index.d.ts +220 -35
- package/dist/Tabs/index.js +199 -193
- package/dist/Toast/index.d.ts +280 -64
- package/dist/Toast/index.js +299 -374
- package/dist/Toggle/index.d.ts +55 -35
- package/dist/Toggle/index.js +19 -13
- package/dist/ToggleGroup/index.d.ts +62 -35
- package/dist/ToggleGroup/index.js +13 -31
- package/dist/Toolbar/index.d.ts +117 -2
- package/dist/Toolbar/index.js +31 -43
- package/dist/Tooltip/index.d.ts +507 -150
- package/dist/Tooltip/index.js +163 -213
- package/dist/index.d.ts +12912 -5382
- package/package.json +3 -3
- package/dist/2205.js +0 -26
- package/dist/2274.js +0 -34
- package/dist/2287.js +0 -17
- package/dist/3020.js +0 -7
- package/dist/3021.js +0 -72
- package/dist/3140.js +0 -4
- package/dist/3248.js +0 -307
- package/dist/4026.js +0 -12
- package/dist/4922.js +0 -15
- package/dist/5659.js +0 -4
- package/dist/5992.js +0 -447
- package/dist/6330.js +0 -30
- package/dist/6535.js +0 -72
- package/dist/6917.js +0 -55
- package/dist/7725.js +0 -10
- package/dist/7871.js +0 -38
- package/dist/8106.js +0 -239
- package/dist/8685.js +0 -102
- package/dist/8935.js +0 -8
- package/dist/8971.js +0 -40
- package/dist/8979.js +0 -10
- package/dist/9048.js +0 -52
- package/dist/9087.js +0 -256
- package/dist/9255.js +0 -136
- /package/dist/{1457.js → 1068.js} +0 -0
- /package/dist/{6003.js → 1234.js} +0 -0
- /package/dist/{4723.js → 1282.js} +0 -0
- /package/dist/{6825.js → 1876.js} +0 -0
- /package/dist/{5778.js → 1885.js} +0 -0
- /package/dist/{2445.js.LICENSE.txt → 226.js.LICENSE.txt} +0 -0
- /package/dist/{1279.js → 3278.js} +0 -0
- /package/dist/{3296.js → 5568.js} +0 -0
- /package/dist/{8685.css → 6240.css} +0 -0
- /package/dist/{9829.js → 6488.js} +0 -0
- /package/dist/{9863.js → 6534.js} +0 -0
- /package/dist/{4495.js → 7718.js} +0 -0
- /package/dist/{3395.js → 8866.js} +0 -0
- /package/dist/{2418.js → 9837.js} +0 -0
package/dist/Tooltip/index.d.ts
CHANGED
|
@@ -1,23 +1,157 @@
|
|
|
1
|
-
import { FloatingRootContext as FloatingRootContext_2 } from '../../floating-ui-react/index.
|
|
2
|
-
import { FloatingRootStore as FloatingRootStore_2 } from '../../floating-ui-react/components/FloatingRootStore.
|
|
3
|
-
import { HTMLProps as HTMLProps_2 } from '../../index.
|
|
1
|
+
import { FloatingRootContext as FloatingRootContext_2 } from '../../floating-ui-react/index.mjs';
|
|
2
|
+
import { FloatingRootStore as FloatingRootStore_2 } from '../../floating-ui-react/components/FloatingRootStore.mjs';
|
|
3
|
+
import { HTMLProps as HTMLProps_2 } from '../../index.mjs';
|
|
4
4
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
5
5
|
import { Padding } from '@floating-ui/react-dom';
|
|
6
6
|
import * as React_2 from 'react';
|
|
7
7
|
import { ReactStore } from '@base-ui/utils/store';
|
|
8
|
-
import { Rect } from '@floating-ui/utils';
|
|
8
|
+
import type { Rect } from '@floating-ui/utils';
|
|
9
9
|
import { TooltipArrowProps as TooltipArrowProps_2 } from '@base-ui/react';
|
|
10
10
|
import { TooltipPopupProps as TooltipPopupProps_2 } from '@base-ui/react';
|
|
11
11
|
import { TooltipPortalProps as TooltipPortalProps_2 } from '@base-ui/react';
|
|
12
12
|
import { TooltipPositionerProps as TooltipPositionerProps_2 } from '@base-ui/react';
|
|
13
13
|
import { TooltipProviderProps as TooltipProviderProps_2 } from '@base-ui/react';
|
|
14
|
-
import { TooltipRootChangeEventReason as TooltipRootChangeEventReason_2 } from '../index.
|
|
15
|
-
import {
|
|
14
|
+
import { TooltipRootChangeEventReason as TooltipRootChangeEventReason_2 } from '../index.mjs';
|
|
15
|
+
import { TooltipViewportProps as TooltipViewportProps_2 } from '@base-ui/react';
|
|
16
|
+
import { TransitionStatus as TransitionStatus_2 } from '../../internals/useTransitionStatus.mjs';
|
|
16
17
|
import type { UseFloatingReturn } from '@floating-ui/react-dom';
|
|
17
18
|
import { VirtualElement } from '@floating-ui/react-dom';
|
|
18
19
|
|
|
20
|
+
/**
|
|
21
|
+
* Indicates the direction from which the popup was activated.
|
|
22
|
+
* This can be used to create directional animations based on how the popup was triggered.
|
|
23
|
+
* Contains space-separated values for both horizontal and vertical axes.
|
|
24
|
+
* @type {`${'left' | 'right' | ''} ${'down' | 'up' | ''}`}
|
|
25
|
+
*/
|
|
26
|
+
declare const activationDirection = "data-activation-direction";
|
|
27
|
+
|
|
28
|
+
declare type AdaptiveOriginMiddleware = {
|
|
29
|
+
name: string;
|
|
30
|
+
fn: (...args: any[]) => any;
|
|
31
|
+
};
|
|
32
|
+
|
|
19
33
|
declare type Align = 'start' | 'center' | 'end';
|
|
20
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Indicates how the popup is aligned relative to specified side.
|
|
37
|
+
* @type {'start' | 'center' | 'end'}
|
|
38
|
+
*/
|
|
39
|
+
declare const align = "data-align";
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Indicates how the popup is aligned relative to specified side.
|
|
43
|
+
* @type {'start' | 'center' | 'end'}
|
|
44
|
+
*/
|
|
45
|
+
declare const align_2 = "data-align";
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Indicates how the popup is aligned relative to specified side.
|
|
49
|
+
* @type {'start' | 'center' | 'end'}
|
|
50
|
+
*/
|
|
51
|
+
declare const align_3 = "data-align";
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The anchor's height.
|
|
55
|
+
* @type {number}
|
|
56
|
+
*/
|
|
57
|
+
declare const anchorHeight = "--anchor-height";
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Present when the anchor is hidden.
|
|
61
|
+
*/
|
|
62
|
+
declare const anchorHidden = "data-anchor-hidden";
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The anchor's width.
|
|
66
|
+
* @type {number}
|
|
67
|
+
*/
|
|
68
|
+
declare const anchorWidth = "--anchor-width";
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The available height between the trigger and the edge of the viewport.
|
|
72
|
+
* @type {number}
|
|
73
|
+
*/
|
|
74
|
+
declare const availableHeight = "--available-height";
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The available width between the trigger and the edge of the viewport.
|
|
78
|
+
* @type {number}
|
|
79
|
+
*/
|
|
80
|
+
declare const availableWidth = "--available-width";
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Shared implementation for popup handles that coordinate detached triggers with a mounted root.
|
|
84
|
+
*
|
|
85
|
+
* Subclasses provide the component-specific imperative methods, while this base class owns the
|
|
86
|
+
* fallback store, root store attachment stack, subscriber notifications, and development warning for
|
|
87
|
+
* overlapping roots.
|
|
88
|
+
*
|
|
89
|
+
* @template HandleStore Store shape exposed to detached triggers.
|
|
90
|
+
* @template Store Root-owned store attached by the component root.
|
|
91
|
+
*/
|
|
92
|
+
declare class BasePopupHandle<HandleStore extends PopupHandleStoreWithTriggers, Store extends HandleStore & PopupHandleStoreWithOpen> {
|
|
93
|
+
protected readonly fallbackStore: HandleStore;
|
|
94
|
+
private readonly componentName;
|
|
95
|
+
private readonly throwOnMissingTrigger;
|
|
96
|
+
/**
|
|
97
|
+
* Stores of every root currently using this handle, in attach order. A handle is meant to be used
|
|
98
|
+
* by a single mounted root, but roots can transiently overlap (e.g. during an animated route
|
|
99
|
+
* transition), so this stack lets `attachStore`'s cleanup restore the previous root instead of
|
|
100
|
+
* leaving a still-mounted root uncontrollable when a newer overlapping root detaches first.
|
|
101
|
+
*/
|
|
102
|
+
private readonly attachedStores;
|
|
103
|
+
/**
|
|
104
|
+
* Store of the root that currently controls the handle: the most recently attached one still
|
|
105
|
+
* mounted, or `null` when no root is attached. Imperative methods are no-ops while this is `null`.
|
|
106
|
+
*/
|
|
107
|
+
private attachedStoreValue;
|
|
108
|
+
/**
|
|
109
|
+
* Listeners notified when `attachedStore` changes, so detached triggers can follow the store pointer.
|
|
110
|
+
*/
|
|
111
|
+
private readonly storeListeners;
|
|
112
|
+
/**
|
|
113
|
+
* Creates a handle backed by the store used while no root is attached.
|
|
114
|
+
*
|
|
115
|
+
* @param fallbackStore Inert, closed store handed to detached triggers while no root is attached,
|
|
116
|
+
* so they can render and register without a mounted root. Triggers register into whichever store
|
|
117
|
+
* `store` currently resolves to, so while detached they live in this store's trigger map and
|
|
118
|
+
* migrate themselves to the root's store (and back) as it attaches/detaches.
|
|
119
|
+
* @param componentName Component name used to prefix dev warnings, e.g. `'Menu'` produces
|
|
120
|
+
* `MenuHandle.open()` in warning text.
|
|
121
|
+
* @param throwOnMissingTrigger Whether `open(triggerId)` throws when no trigger with that id is
|
|
122
|
+
* registered. Anchored popups (Menu, Popover, Tooltip, PreviewCard) need a trigger to anchor to,
|
|
123
|
+
* so they throw; Dialog is not anchored and instead opens unassociated with a dev warning.
|
|
124
|
+
*/
|
|
125
|
+
constructor(fallbackStore: HandleStore, componentName: string, throwOnMissingTrigger?: boolean);
|
|
126
|
+
protected get attachedStore(): Store | null;
|
|
127
|
+
/**
|
|
128
|
+
* Sets the store that currently controls the handle and notifies subscribers when it changes, so
|
|
129
|
+
* detached triggers re-render and migrate their registration to the new store.
|
|
130
|
+
*/
|
|
131
|
+
private setActiveStore;
|
|
132
|
+
/**
|
|
133
|
+
* Opens the attached root's store and associates it with the trigger with the given id, or a
|
|
134
|
+
* no-op (with a dev warning) while no root is attached. Shared by every concrete handle's public
|
|
135
|
+
* `open()` method, which only narrows the parameter type.
|
|
136
|
+
*
|
|
137
|
+
* When a trigger id is given but no matching trigger is registered, anchored popups throw (see
|
|
138
|
+
* `throwOnMissingTrigger`); Dialog opens unassociated with a dev warning instead.
|
|
139
|
+
*
|
|
140
|
+
* This method should only be called in an event handler or an effect (not during rendering).
|
|
141
|
+
*
|
|
142
|
+
* @param triggerId ID of the trigger to associate with the popup, or `null`/`undefined` to open
|
|
143
|
+
* without associating any trigger.
|
|
144
|
+
*/
|
|
145
|
+
protected openByTrigger(triggerId: string | null | undefined): void;
|
|
146
|
+
/**
|
|
147
|
+
* Closes the popup by setting the attached root's store to closed, or a no-op (with a dev warning)
|
|
148
|
+
* while no root is attached. Shared by every concrete handle's public `close()` method.
|
|
149
|
+
*
|
|
150
|
+
* This method should only be called in an event handler or an effect (not during rendering).
|
|
151
|
+
*/
|
|
152
|
+
protected closePopup(): void;
|
|
153
|
+
}
|
|
154
|
+
|
|
21
155
|
declare type BaseUIChangeEventDetail<Reason extends string, CustomProperties extends object> = {
|
|
22
156
|
/**
|
|
23
157
|
* The reason for the event.
|
|
@@ -85,15 +219,30 @@ declare type BaseUIEvent<E extends React_2.SyntheticEvent<Element, Event>> = E &
|
|
|
85
219
|
|
|
86
220
|
declare type Boundary = 'clipping-ancestors' | Element | Element[] | Rect;
|
|
87
221
|
|
|
88
|
-
declare const cancelOpen:
|
|
222
|
+
declare const cancelOpen: 'cancel-open';
|
|
223
|
+
|
|
224
|
+
declare const chipRemovePress: 'chip-remove-press';
|
|
225
|
+
|
|
226
|
+
declare const clearPress: 'clear-press';
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Present when the tooltip is closed.
|
|
230
|
+
*/
|
|
231
|
+
declare const closed_2 = "data-closed";
|
|
89
232
|
|
|
90
|
-
|
|
233
|
+
/**
|
|
234
|
+
* Present when the tooltip is closed.
|
|
235
|
+
*/
|
|
236
|
+
declare const closed_3 = "data-closed";
|
|
91
237
|
|
|
92
|
-
|
|
238
|
+
/**
|
|
239
|
+
* Present when the tooltip is closed.
|
|
240
|
+
*/
|
|
241
|
+
declare const closed_4 = "data-closed";
|
|
93
242
|
|
|
94
|
-
declare const closePress:
|
|
243
|
+
declare const closePress: 'close-press';
|
|
95
244
|
|
|
96
|
-
declare const closeWatcher:
|
|
245
|
+
declare const closeWatcher: 'close-watcher';
|
|
97
246
|
|
|
98
247
|
declare type CollisionAvoidance = SideFlipMode | SideShiftMode;
|
|
99
248
|
|
|
@@ -120,13 +269,23 @@ declare interface ContextData {
|
|
|
120
269
|
*/
|
|
121
270
|
declare function createTooltipHandle<Payload>(): TooltipHandle<Payload>;
|
|
122
271
|
|
|
123
|
-
|
|
272
|
+
/**
|
|
273
|
+
* Applied to the direct child of the viewport when no transitions are present or the new content when it's entering.
|
|
274
|
+
*/
|
|
275
|
+
declare const current = "data-current";
|
|
124
276
|
|
|
125
|
-
declare const
|
|
277
|
+
declare const decrementPress: 'decrement-press';
|
|
126
278
|
|
|
127
|
-
declare const
|
|
279
|
+
declare const disabled: 'disabled';
|
|
128
280
|
|
|
129
|
-
declare const
|
|
281
|
+
declare const drag: 'drag';
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Present when the tooltip is animating out.
|
|
285
|
+
*/
|
|
286
|
+
declare const endingStyle = "data-ending-style";
|
|
287
|
+
|
|
288
|
+
declare const escapeKey: 'escape-key';
|
|
130
289
|
|
|
131
290
|
declare interface ExtendedElements {
|
|
132
291
|
reference: ReferenceType | null;
|
|
@@ -161,47 +320,6 @@ declare interface FloatingEvents {
|
|
|
161
320
|
off(event: string, handler: (data: any) => void): void;
|
|
162
321
|
}
|
|
163
322
|
|
|
164
|
-
/**
|
|
165
|
-
* Portals the floating element into a given container element — by default,
|
|
166
|
-
* outside of the app root and into the body.
|
|
167
|
-
* This is necessary to ensure the floating element can appear outside any
|
|
168
|
-
* potential parent containers that cause clipping (such as `overflow: hidden`),
|
|
169
|
-
* while retaining its location in the React tree.
|
|
170
|
-
* @see https://floating-ui.com/docs/FloatingPortal
|
|
171
|
-
* @internal
|
|
172
|
-
*/
|
|
173
|
-
declare const FloatingPortal: React_2.ForwardRefExoticComponent<Omit<FloatingPortal.Props<any> & {
|
|
174
|
-
renderGuards?: boolean | undefined;
|
|
175
|
-
}, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
176
|
-
|
|
177
|
-
declare namespace FloatingPortal {
|
|
178
|
-
type State = FloatingPortalState;
|
|
179
|
-
interface Props<TState> extends BaseUIComponentProps<'div', TState> {
|
|
180
|
-
/**
|
|
181
|
-
* A parent element to render the portal element into.
|
|
182
|
-
*/
|
|
183
|
-
container?: UseFloatingPortalNodeProps['container'] | undefined;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* `FloatingPortal` includes tabbable logic handling for focus management.
|
|
189
|
-
* For components that don't need tabbable logic, use `FloatingPortalLite`.
|
|
190
|
-
* @internal
|
|
191
|
-
*/
|
|
192
|
-
declare const FloatingPortalLite: React_2.ForwardRefExoticComponent<Omit<FloatingPortalLite.Props<any>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
193
|
-
|
|
194
|
-
declare namespace FloatingPortalLite {
|
|
195
|
-
type State = FloatingPortalLiteState;
|
|
196
|
-
type Props<TState> = FloatingPortalLiteProps<TState>;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
declare interface FloatingPortalLiteProps<TState> extends FloatingPortal.Props<TState> {}
|
|
200
|
-
|
|
201
|
-
declare interface FloatingPortalLiteState {}
|
|
202
|
-
|
|
203
|
-
declare interface FloatingPortalState {}
|
|
204
|
-
|
|
205
323
|
declare type FloatingRootContext = FloatingRootStore;
|
|
206
324
|
|
|
207
325
|
declare interface FloatingRootState {
|
|
@@ -261,41 +379,59 @@ declare interface FloatingRootStoreOptions {
|
|
|
261
379
|
onOpenChange: ((open: boolean, eventDetails: BaseUIChangeEventDetails<string>) => void) | undefined;
|
|
262
380
|
}
|
|
263
381
|
|
|
264
|
-
declare const focusOut:
|
|
382
|
+
declare const focusOut: 'focus-out';
|
|
265
383
|
|
|
266
384
|
declare type HTMLProps<T = any> = React_2.HTMLAttributes<T> & {
|
|
267
385
|
ref?: React_2.Ref<T> | undefined;
|
|
268
386
|
};
|
|
269
387
|
|
|
270
|
-
declare const imperativeAction:
|
|
388
|
+
declare const imperativeAction: 'imperative-action';
|
|
271
389
|
|
|
272
|
-
declare const incrementPress:
|
|
390
|
+
declare const incrementPress: 'increment-press';
|
|
273
391
|
|
|
274
|
-
declare const initial:
|
|
392
|
+
declare const initial: 'initial';
|
|
275
393
|
|
|
276
|
-
declare const inputBlur:
|
|
394
|
+
declare const inputBlur: 'input-blur';
|
|
277
395
|
|
|
278
|
-
declare const inputChange:
|
|
396
|
+
declare const inputChange: 'input-change';
|
|
279
397
|
|
|
280
|
-
declare const inputClear:
|
|
398
|
+
declare const inputClear: 'input-clear';
|
|
281
399
|
|
|
282
|
-
declare const inputPaste:
|
|
400
|
+
declare const inputPaste: 'input-paste';
|
|
283
401
|
|
|
284
|
-
declare const inputPress:
|
|
402
|
+
declare const inputPress: 'input-press';
|
|
285
403
|
|
|
286
|
-
|
|
404
|
+
/**
|
|
405
|
+
* Present if animations should be instant.
|
|
406
|
+
* @type {'delay' | 'dismiss' | 'focus'}
|
|
407
|
+
*/
|
|
408
|
+
declare const instant = "data-instant";
|
|
287
409
|
|
|
288
|
-
|
|
410
|
+
/**
|
|
411
|
+
* Present if animations should be instant.
|
|
412
|
+
* @type {'delay' | 'dismiss' | 'focus'}
|
|
413
|
+
*/
|
|
414
|
+
declare const instant_2 = "data-instant";
|
|
289
415
|
|
|
290
|
-
|
|
416
|
+
/**
|
|
417
|
+
* Present if animations should be instant.
|
|
418
|
+
* @type {'delay' | 'dismiss' | 'focus'}
|
|
419
|
+
*/
|
|
420
|
+
declare const instant_3 = "data-instant";
|
|
291
421
|
|
|
292
|
-
declare const
|
|
422
|
+
declare const itemPress: 'item-press';
|
|
293
423
|
|
|
294
|
-
declare const
|
|
424
|
+
declare const keyboard: 'keyboard';
|
|
425
|
+
|
|
426
|
+
declare const linkPress: 'link-press';
|
|
427
|
+
|
|
428
|
+
declare const listNavigation: 'list-navigation';
|
|
429
|
+
|
|
430
|
+
declare const missing: 'missing';
|
|
295
431
|
|
|
296
432
|
declare type NarrowedElement<T> = T extends Element ? T : Element;
|
|
297
433
|
|
|
298
|
-
declare const none:
|
|
434
|
+
declare const none: 'none';
|
|
299
435
|
|
|
300
436
|
declare type OffsetFunction = (data: {
|
|
301
437
|
side: Side;
|
|
@@ -310,13 +446,61 @@ declare type OffsetFunction = (data: {
|
|
|
310
446
|
};
|
|
311
447
|
}) => number;
|
|
312
448
|
|
|
313
|
-
|
|
449
|
+
/**
|
|
450
|
+
* Present when the tooltip is open.
|
|
451
|
+
*/
|
|
452
|
+
declare const open_2 = "data-open";
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Present when the tooltip is open.
|
|
456
|
+
*/
|
|
457
|
+
declare const open_3 = "data-open";
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Present when the tooltip is open.
|
|
461
|
+
*/
|
|
462
|
+
declare const open_4 = "data-open";
|
|
463
|
+
|
|
464
|
+
declare const outsidePress: 'outside-press';
|
|
314
465
|
|
|
315
466
|
declare type PayloadChildRenderFunction<Payload> = (arg: {
|
|
316
467
|
payload: Payload | undefined;
|
|
317
468
|
}) => React_2.ReactNode;
|
|
318
469
|
|
|
319
|
-
declare const pointer:
|
|
470
|
+
declare const pointer: 'pointer';
|
|
471
|
+
|
|
472
|
+
declare const popupClose: 'popup-close';
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Store shape required by `BasePopupHandle.openByTrigger`/`closePopup` to drive open/close state.
|
|
476
|
+
* Only the root-owned `Store` needs this — the `HandleStore` view exposed to detached triggers may
|
|
477
|
+
* omit `setOpen` entirely (as Dialog and PreviewCard's do) since it is never called while detached.
|
|
478
|
+
*/
|
|
479
|
+
declare interface PopupHandleStoreWithOpen extends PopupHandleStoreWithTriggers {
|
|
480
|
+
setOpen(open: boolean, eventDetails: BaseUIChangeEventDetails<typeof REASONS.imperativeAction>): void;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Store shape holding a trigger registry, required by `BasePopupHandle.openByTrigger` to resolve a
|
|
485
|
+
* trigger element by id on both the attached root's store and the fallback store.
|
|
486
|
+
*/
|
|
487
|
+
declare interface PopupHandleStoreWithTriggers {
|
|
488
|
+
readonly context: {
|
|
489
|
+
readonly triggerElements: PopupTriggerMap;
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* The height of the parent popup.
|
|
495
|
+
* This variable is placed on the 'previous' container and stores the height of the popup when the previous content was rendered.
|
|
496
|
+
* It can be used to freeze the dimensions of the popup when animating between different content.
|
|
497
|
+
*/
|
|
498
|
+
declare const popupHeight = "--popup-height";
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Present when the corresponding tooltip is open.
|
|
502
|
+
*/
|
|
503
|
+
declare const popupOpen = "data-popup-open";
|
|
320
504
|
|
|
321
505
|
declare type PopupStoreContext<ChangeEventDetails> = {
|
|
322
506
|
/**
|
|
@@ -381,6 +565,13 @@ declare type PopupStoreState<Payload> = {
|
|
|
381
565
|
* The currently active trigger DOM element.
|
|
382
566
|
*/
|
|
383
567
|
activeTriggerElement: Element | null;
|
|
568
|
+
/**
|
|
569
|
+
* Whether the popup is open because of a request that deliberately carried no trigger, such as a
|
|
570
|
+
* handle's `open(null)` or `openWithPayload()`. While set, a lone registered trigger is not
|
|
571
|
+
* implicitly associated with the popup, so its trigger-owned state (such as `payload`) is not
|
|
572
|
+
* forwarded. Reset by the Root once the popup is effectively closed.
|
|
573
|
+
*/
|
|
574
|
+
openedWithoutTrigger: boolean;
|
|
384
575
|
/**
|
|
385
576
|
* ID of the trigger (external prop).
|
|
386
577
|
*/
|
|
@@ -409,12 +600,12 @@ declare type PopupStoreState<Payload> = {
|
|
|
409
600
|
|
|
410
601
|
/**
|
|
411
602
|
* Data structure to keep track of popup trigger elements by their IDs.
|
|
412
|
-
*
|
|
603
|
+
*
|
|
604
|
+
* Element lookups iterate the id map rather than maintaining a parallel Set. Registration is O(1),
|
|
605
|
+
* while `hasElement` and `hasMatchingElement` are linear in the number of triggers.
|
|
413
606
|
*/
|
|
414
607
|
declare class PopupTriggerMap {
|
|
415
|
-
private elementsSet;
|
|
416
608
|
private idMap;
|
|
417
|
-
constructor();
|
|
418
609
|
/**
|
|
419
610
|
* Adds a trigger element with the given ID.
|
|
420
611
|
*
|
|
@@ -451,6 +642,41 @@ declare class PopupTriggerMap {
|
|
|
451
642
|
get size(): number;
|
|
452
643
|
}
|
|
453
644
|
|
|
645
|
+
/**
|
|
646
|
+
* Store members a detached handle-backed trigger reads or invokes for trigger registration and data
|
|
647
|
+
* forwarding. `set`/`update` are included only for trigger-count and trigger-data bookkeeping; on a
|
|
648
|
+
* detached (inert) store they are intentionally no-ops, so a write through them is not guaranteed to
|
|
649
|
+
* be durable. Component handle-store views Pick these from their concrete store (preserving its
|
|
650
|
+
* context and selectors) and add any component-specific trigger-invoked members such as `setOpen`.
|
|
651
|
+
*/
|
|
652
|
+
declare type PopupTriggerStoreKeys = 'context' | 'select' | 'set' | 'state' | 'update' | 'useState';
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* The width of the parent popup.
|
|
656
|
+
* This variable is placed on the 'previous' container and stores the width of the popup when the previous content was rendered.
|
|
657
|
+
* It can be used to freeze the dimensions of the popup when animating between different content.
|
|
658
|
+
*/
|
|
659
|
+
declare const popupWidth = "--popup-width";
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* The height of the tooltip's positioner.
|
|
663
|
+
* It is important to set `height` to this value when using CSS to animate size changes.
|
|
664
|
+
* @type {number}
|
|
665
|
+
*/
|
|
666
|
+
declare const positionerHeight = "--positioner-height";
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* The width of the tooltip's positioner.
|
|
670
|
+
* It is important to set `width` to this value when using CSS to animate size changes.
|
|
671
|
+
* @type {number}
|
|
672
|
+
*/
|
|
673
|
+
declare const positionerWidth = "--positioner-width";
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Applied to the direct child of the viewport that contains the exiting content when transitions are present.
|
|
677
|
+
*/
|
|
678
|
+
declare const previous = "data-previous";
|
|
679
|
+
|
|
454
680
|
declare namespace REASONS {
|
|
455
681
|
export {
|
|
456
682
|
none,
|
|
@@ -480,6 +706,7 @@ declare namespace REASONS {
|
|
|
480
706
|
drag,
|
|
481
707
|
wheel,
|
|
482
708
|
scrub,
|
|
709
|
+
popupClose,
|
|
483
710
|
cancelOpen,
|
|
484
711
|
siblingOpen,
|
|
485
712
|
disabled,
|
|
@@ -536,7 +763,9 @@ declare interface ReasonToEventMap {
|
|
|
536
763
|
|
|
537
764
|
declare type ReferenceType = Element | VirtualElement;
|
|
538
765
|
|
|
539
|
-
declare const scrub:
|
|
766
|
+
declare const scrub: 'scrub';
|
|
767
|
+
|
|
768
|
+
declare type Selectors = typeof selectors_2;
|
|
540
769
|
|
|
541
770
|
declare const selectors: {
|
|
542
771
|
open: (state: FloatingRootState) => boolean;
|
|
@@ -548,15 +777,6 @@ declare const selectors: {
|
|
|
548
777
|
};
|
|
549
778
|
|
|
550
779
|
declare const selectors_2: {
|
|
551
|
-
disabled: (state: State<unknown>) => boolean;
|
|
552
|
-
instantType: (state: State<unknown>) => "delay" | "focus" | "dismiss" | undefined;
|
|
553
|
-
isInstantPhase: (state: State<unknown>) => boolean;
|
|
554
|
-
trackCursorAxis: (state: State<unknown>) => "none" | "both" | "x" | "y";
|
|
555
|
-
disableHoverablePopup: (state: State<unknown>) => boolean;
|
|
556
|
-
lastOpenChangeReason: (state: State<unknown>) => TooltipRootChangeEventReason_2 | null;
|
|
557
|
-
closeOnClick: (state: State<unknown>) => boolean;
|
|
558
|
-
closeDelay: (state: State<unknown>) => number;
|
|
559
|
-
hasViewport: (state: State<unknown>) => boolean;
|
|
560
780
|
open: (state: {
|
|
561
781
|
open: boolean;
|
|
562
782
|
readonly openProp: boolean | undefined;
|
|
@@ -569,6 +789,7 @@ declare const selectors_2: {
|
|
|
569
789
|
payload: unknown;
|
|
570
790
|
activeTriggerId: string | null;
|
|
571
791
|
activeTriggerElement: Element | null;
|
|
792
|
+
openedWithoutTrigger: boolean;
|
|
572
793
|
readonly triggerIdProp: string | null | undefined;
|
|
573
794
|
popupElement: HTMLElement | null;
|
|
574
795
|
positionerElement: HTMLElement | null;
|
|
@@ -588,6 +809,7 @@ declare const selectors_2: {
|
|
|
588
809
|
payload: unknown;
|
|
589
810
|
activeTriggerId: string | null;
|
|
590
811
|
activeTriggerElement: Element | null;
|
|
812
|
+
openedWithoutTrigger: boolean;
|
|
591
813
|
readonly triggerIdProp: string | null | undefined;
|
|
592
814
|
popupElement: HTMLElement | null;
|
|
593
815
|
positionerElement: HTMLElement | null;
|
|
@@ -607,6 +829,7 @@ declare const selectors_2: {
|
|
|
607
829
|
payload: unknown;
|
|
608
830
|
activeTriggerId: string | null;
|
|
609
831
|
activeTriggerElement: Element | null;
|
|
832
|
+
openedWithoutTrigger: boolean;
|
|
610
833
|
readonly triggerIdProp: string | null | undefined;
|
|
611
834
|
popupElement: HTMLElement | null;
|
|
612
835
|
positionerElement: HTMLElement | null;
|
|
@@ -626,6 +849,7 @@ declare const selectors_2: {
|
|
|
626
849
|
payload: unknown;
|
|
627
850
|
activeTriggerId: string | null;
|
|
628
851
|
activeTriggerElement: Element | null;
|
|
852
|
+
openedWithoutTrigger: boolean;
|
|
629
853
|
readonly triggerIdProp: string | null | undefined;
|
|
630
854
|
popupElement: HTMLElement | null;
|
|
631
855
|
positionerElement: HTMLElement | null;
|
|
@@ -645,6 +869,7 @@ declare const selectors_2: {
|
|
|
645
869
|
payload: unknown;
|
|
646
870
|
activeTriggerId: string | null;
|
|
647
871
|
activeTriggerElement: Element | null;
|
|
872
|
+
openedWithoutTrigger: boolean;
|
|
648
873
|
readonly triggerIdProp: string | null | undefined;
|
|
649
874
|
popupElement: HTMLElement | null;
|
|
650
875
|
positionerElement: HTMLElement | null;
|
|
@@ -664,6 +889,7 @@ declare const selectors_2: {
|
|
|
664
889
|
payload: unknown;
|
|
665
890
|
activeTriggerId: string | null;
|
|
666
891
|
activeTriggerElement: Element | null;
|
|
892
|
+
openedWithoutTrigger: boolean;
|
|
667
893
|
readonly triggerIdProp: string | null | undefined;
|
|
668
894
|
popupElement: HTMLElement | null;
|
|
669
895
|
positionerElement: HTMLElement | null;
|
|
@@ -683,6 +909,7 @@ declare const selectors_2: {
|
|
|
683
909
|
payload: unknown;
|
|
684
910
|
activeTriggerId: string | null;
|
|
685
911
|
activeTriggerElement: Element | null;
|
|
912
|
+
openedWithoutTrigger: boolean;
|
|
686
913
|
readonly triggerIdProp: string | null | undefined;
|
|
687
914
|
popupElement: HTMLElement | null;
|
|
688
915
|
positionerElement: HTMLElement | null;
|
|
@@ -702,6 +929,7 @@ declare const selectors_2: {
|
|
|
702
929
|
payload: unknown;
|
|
703
930
|
activeTriggerId: string | null;
|
|
704
931
|
activeTriggerElement: Element | null;
|
|
932
|
+
openedWithoutTrigger: boolean;
|
|
705
933
|
readonly triggerIdProp: string | null | undefined;
|
|
706
934
|
popupElement: HTMLElement | null;
|
|
707
935
|
positionerElement: HTMLElement | null;
|
|
@@ -721,6 +949,7 @@ declare const selectors_2: {
|
|
|
721
949
|
payload: unknown;
|
|
722
950
|
activeTriggerId: string | null;
|
|
723
951
|
activeTriggerElement: Element | null;
|
|
952
|
+
openedWithoutTrigger: boolean;
|
|
724
953
|
readonly triggerIdProp: string | null | undefined;
|
|
725
954
|
popupElement: HTMLElement | null;
|
|
726
955
|
positionerElement: HTMLElement | null;
|
|
@@ -740,6 +969,7 @@ declare const selectors_2: {
|
|
|
740
969
|
payload: unknown;
|
|
741
970
|
activeTriggerId: string | null;
|
|
742
971
|
activeTriggerElement: Element | null;
|
|
972
|
+
openedWithoutTrigger: boolean;
|
|
743
973
|
readonly triggerIdProp: string | null | undefined;
|
|
744
974
|
popupElement: HTMLElement | null;
|
|
745
975
|
positionerElement: HTMLElement | null;
|
|
@@ -759,6 +989,7 @@ declare const selectors_2: {
|
|
|
759
989
|
payload: unknown;
|
|
760
990
|
activeTriggerId: string | null;
|
|
761
991
|
activeTriggerElement: Element | null;
|
|
992
|
+
openedWithoutTrigger: boolean;
|
|
762
993
|
readonly triggerIdProp: string | null | undefined;
|
|
763
994
|
popupElement: HTMLElement | null;
|
|
764
995
|
positionerElement: HTMLElement | null;
|
|
@@ -778,6 +1009,7 @@ declare const selectors_2: {
|
|
|
778
1009
|
payload: unknown;
|
|
779
1010
|
activeTriggerId: string | null;
|
|
780
1011
|
activeTriggerElement: Element | null;
|
|
1012
|
+
openedWithoutTrigger: boolean;
|
|
781
1013
|
readonly triggerIdProp: string | null | undefined;
|
|
782
1014
|
popupElement: HTMLElement | null;
|
|
783
1015
|
positionerElement: HTMLElement | null;
|
|
@@ -797,6 +1029,7 @@ declare const selectors_2: {
|
|
|
797
1029
|
payload: unknown;
|
|
798
1030
|
activeTriggerId: string | null;
|
|
799
1031
|
activeTriggerElement: Element | null;
|
|
1032
|
+
openedWithoutTrigger: boolean;
|
|
800
1033
|
readonly triggerIdProp: string | null | undefined;
|
|
801
1034
|
popupElement: HTMLElement | null;
|
|
802
1035
|
positionerElement: HTMLElement | null;
|
|
@@ -816,6 +1049,7 @@ declare const selectors_2: {
|
|
|
816
1049
|
payload: unknown;
|
|
817
1050
|
activeTriggerId: string | null;
|
|
818
1051
|
activeTriggerElement: Element | null;
|
|
1052
|
+
openedWithoutTrigger: boolean;
|
|
819
1053
|
readonly triggerIdProp: string | null | undefined;
|
|
820
1054
|
popupElement: HTMLElement | null;
|
|
821
1055
|
positionerElement: HTMLElement | null;
|
|
@@ -835,6 +1069,7 @@ declare const selectors_2: {
|
|
|
835
1069
|
payload: unknown;
|
|
836
1070
|
activeTriggerId: string | null;
|
|
837
1071
|
activeTriggerElement: Element | null;
|
|
1072
|
+
openedWithoutTrigger: boolean;
|
|
838
1073
|
readonly triggerIdProp: string | null | undefined;
|
|
839
1074
|
popupElement: HTMLElement | null;
|
|
840
1075
|
positionerElement: HTMLElement | null;
|
|
@@ -854,6 +1089,7 @@ declare const selectors_2: {
|
|
|
854
1089
|
payload: unknown;
|
|
855
1090
|
activeTriggerId: string | null;
|
|
856
1091
|
activeTriggerElement: Element | null;
|
|
1092
|
+
openedWithoutTrigger: boolean;
|
|
857
1093
|
readonly triggerIdProp: string | null | undefined;
|
|
858
1094
|
popupElement: HTMLElement | null;
|
|
859
1095
|
positionerElement: HTMLElement | null;
|
|
@@ -873,6 +1109,7 @@ declare const selectors_2: {
|
|
|
873
1109
|
payload: unknown;
|
|
874
1110
|
activeTriggerId: string | null;
|
|
875
1111
|
activeTriggerElement: Element | null;
|
|
1112
|
+
openedWithoutTrigger: boolean;
|
|
876
1113
|
readonly triggerIdProp: string | null | undefined;
|
|
877
1114
|
popupElement: HTMLElement | null;
|
|
878
1115
|
positionerElement: HTMLElement | null;
|
|
@@ -892,6 +1129,7 @@ declare const selectors_2: {
|
|
|
892
1129
|
payload: unknown;
|
|
893
1130
|
activeTriggerId: string | null;
|
|
894
1131
|
activeTriggerElement: Element | null;
|
|
1132
|
+
openedWithoutTrigger: boolean;
|
|
895
1133
|
readonly triggerIdProp: string | null | undefined;
|
|
896
1134
|
popupElement: HTMLElement | null;
|
|
897
1135
|
positionerElement: HTMLElement | null;
|
|
@@ -899,12 +1137,40 @@ declare const selectors_2: {
|
|
|
899
1137
|
inactiveTriggerProps: HTMLProps_2;
|
|
900
1138
|
popupProps: HTMLProps_2;
|
|
901
1139
|
}) => HTMLElement | null;
|
|
1140
|
+
disabled: (state: State<unknown>) => boolean;
|
|
1141
|
+
instantType: (state: State<unknown>) => "delay" | "dismiss" | "focus" | undefined;
|
|
1142
|
+
isInstantPhase: (state: State<unknown>) => boolean;
|
|
1143
|
+
trackCursorAxis: (state: State<unknown>) => "both" | "none" | "x" | "y";
|
|
1144
|
+
disableHoverablePopup: (state: State<unknown>) => boolean;
|
|
1145
|
+
lastOpenChangeReason: (state: State<unknown>) => TooltipRootChangeEventReason_2 | null;
|
|
1146
|
+
closeOnClick: (state: State<unknown>) => boolean;
|
|
1147
|
+
appliedTriggerProps: (state: State<unknown>, apply: boolean) => HTMLProps_2 | undefined;
|
|
1148
|
+
closeDelay: (state: State<unknown>) => number;
|
|
1149
|
+
adaptiveOrigin: (state: State<unknown>) => AdaptiveOriginMiddleware | undefined;
|
|
902
1150
|
};
|
|
903
1151
|
|
|
904
|
-
declare const siblingOpen:
|
|
1152
|
+
declare const siblingOpen: 'sibling-open';
|
|
905
1153
|
|
|
906
1154
|
declare type Side = 'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start';
|
|
907
1155
|
|
|
1156
|
+
/**
|
|
1157
|
+
* Indicates which side the popup is positioned relative to the trigger.
|
|
1158
|
+
* @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
|
|
1159
|
+
*/
|
|
1160
|
+
declare const side = "data-side";
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Indicates which side the popup is positioned relative to the trigger.
|
|
1164
|
+
* @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
|
|
1165
|
+
*/
|
|
1166
|
+
declare const side_2 = "data-side";
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Indicates which side the popup is positioned relative to the trigger.
|
|
1170
|
+
* @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
|
|
1171
|
+
*/
|
|
1172
|
+
declare const side_3 = "data-side";
|
|
1173
|
+
|
|
908
1174
|
declare interface SideFlipMode {
|
|
909
1175
|
/**
|
|
910
1176
|
* How to avoid collisions on the side axis.
|
|
@@ -952,6 +1218,11 @@ declare interface SideShiftMode {
|
|
|
952
1218
|
fallbackAxisSide?: 'start' | 'end' | 'none' | undefined;
|
|
953
1219
|
}
|
|
954
1220
|
|
|
1221
|
+
/**
|
|
1222
|
+
* Present when the tooltip begins animating in.
|
|
1223
|
+
*/
|
|
1224
|
+
declare const startingStyle = "data-starting-style";
|
|
1225
|
+
|
|
955
1226
|
declare type State<Payload> = PopupStoreState<Payload> & {
|
|
956
1227
|
disabled: boolean;
|
|
957
1228
|
instantType: 'delay' | 'dismiss' | 'focus' | undefined;
|
|
@@ -961,10 +1232,10 @@ declare type State<Payload> = PopupStoreState<Payload> & {
|
|
|
961
1232
|
openChangeReason: TooltipRoot.ChangeEventReason | null;
|
|
962
1233
|
closeOnClick: boolean;
|
|
963
1234
|
closeDelay: number;
|
|
964
|
-
|
|
1235
|
+
adaptiveOrigin: AdaptiveOriginMiddleware | undefined;
|
|
965
1236
|
};
|
|
966
1237
|
|
|
967
|
-
declare const swipe:
|
|
1238
|
+
declare const swipe: 'swipe';
|
|
968
1239
|
|
|
969
1240
|
export declare const Tooltip: {
|
|
970
1241
|
Trigger: typeof Trigger;
|
|
@@ -977,10 +1248,10 @@ export declare const Tooltip: {
|
|
|
977
1248
|
Arrow: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<TooltipArrowProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
978
1249
|
className?: string;
|
|
979
1250
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
980
|
-
Viewport: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
1251
|
+
Viewport: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<TooltipViewportProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
981
1252
|
className?: string;
|
|
982
1253
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
983
|
-
Root: <Payload>(props: Tooltip_2.Root.Props<Payload>) =>
|
|
1254
|
+
Root: <Payload>(props: Tooltip_2.Root.Props<Payload>) => React_2.JSX.Element;
|
|
984
1255
|
Portal: React_2.ForwardRefExoticComponent<Omit<TooltipPortalProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
985
1256
|
Provider: React_2.FC<TooltipProviderProps_2>;
|
|
986
1257
|
Handle: typeof Tooltip_2.Handle;
|
|
@@ -1015,6 +1286,17 @@ export declare namespace TooltipArrow {
|
|
|
1015
1286
|
export type Props = TooltipArrowProps;
|
|
1016
1287
|
}
|
|
1017
1288
|
|
|
1289
|
+
export declare namespace TooltipArrowDataAttributes {
|
|
1290
|
+
export {
|
|
1291
|
+
open_4 as open,
|
|
1292
|
+
closed_4 as closed,
|
|
1293
|
+
side_3 as side,
|
|
1294
|
+
align_3 as align,
|
|
1295
|
+
uncentered,
|
|
1296
|
+
instant_2 as instant
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1018
1300
|
export declare interface TooltipArrowProps extends BaseUIComponentProps<'div', TooltipArrowState> {}
|
|
1019
1301
|
|
|
1020
1302
|
export declare interface TooltipArrowState {
|
|
@@ -1041,34 +1323,46 @@ export declare interface TooltipArrowState {
|
|
|
1041
1323
|
}
|
|
1042
1324
|
|
|
1043
1325
|
/**
|
|
1044
|
-
*
|
|
1326
|
+
* Controls a Tooltip imperatively and associates detached `Tooltip.Trigger` components with a
|
|
1327
|
+
* `Tooltip.Root`. Create one with `Tooltip.createHandle()` and pass it to the `handle` prop of the
|
|
1328
|
+
* root and of any triggers rendered outside of it.
|
|
1329
|
+
*
|
|
1330
|
+
* The imperative methods take effect only while a root using this handle is mounted; calls made
|
|
1331
|
+
* before a root attaches (or after it unmounts) are ignored.
|
|
1045
1332
|
*/
|
|
1046
|
-
declare class TooltipHandle<Payload> {
|
|
1047
|
-
/**
|
|
1048
|
-
* Internal store holding the tooltip state.
|
|
1049
|
-
* @internal
|
|
1050
|
-
*/
|
|
1051
|
-
readonly store: TooltipStore<Payload>;
|
|
1333
|
+
declare class TooltipHandle<Payload> extends BasePopupHandle<TooltipHandleStore<Payload>, TooltipStore<Payload>> {
|
|
1052
1334
|
constructor();
|
|
1053
1335
|
/**
|
|
1054
|
-
* Opens the tooltip and associates it with the trigger with the given
|
|
1055
|
-
* The trigger must be a Tooltip.Trigger component with this handle passed as a prop.
|
|
1336
|
+
* Opens the tooltip and associates it with the trigger with the given id.
|
|
1056
1337
|
*
|
|
1057
1338
|
* This method should only be called in an event handler or an effect (not during rendering).
|
|
1058
1339
|
*
|
|
1059
|
-
* @param triggerId ID of the trigger to associate with the tooltip.
|
|
1340
|
+
* @param triggerId ID of the trigger to associate with the tooltip. The trigger must be a matching
|
|
1341
|
+
* `Tooltip.Trigger` with this handle passed as a prop.
|
|
1060
1342
|
*/
|
|
1061
1343
|
open(triggerId: string): void;
|
|
1062
1344
|
/**
|
|
1063
1345
|
* Closes the tooltip.
|
|
1346
|
+
*
|
|
1347
|
+
* This method should only be called in an event handler or an effect (not during rendering).
|
|
1064
1348
|
*/
|
|
1065
1349
|
close(): void;
|
|
1066
1350
|
/**
|
|
1067
|
-
*
|
|
1351
|
+
* Whether the tooltip is currently open. Returns `false` while no root is attached to the handle.
|
|
1068
1352
|
*/
|
|
1069
1353
|
get isOpen(): boolean;
|
|
1070
1354
|
}
|
|
1071
1355
|
|
|
1356
|
+
/**
|
|
1357
|
+
* The store view that detached handle-backed triggers read from. Both the real `TooltipStore` and
|
|
1358
|
+
* the inert fallback store satisfy it, so a trigger can read from whichever store the handle
|
|
1359
|
+
* currently exposes. Narrowed to the members a trigger actually uses — the trigger-data members plus
|
|
1360
|
+
* `setOpen`/`cancelPendingOpen` (called directly by the trigger) and `useSyncedValue` — so the
|
|
1361
|
+
* exposed surface can't bypass the open-change pipeline; on the detached fallback store every one of
|
|
1362
|
+
* these mutations is a no-op.
|
|
1363
|
+
*/
|
|
1364
|
+
declare type TooltipHandleStore<Payload> = Pick<TooltipStore<Payload>, PopupTriggerStoreKeys | 'setOpen' | 'cancelPendingOpen' | 'useSyncedValue'>;
|
|
1365
|
+
|
|
1072
1366
|
/**
|
|
1073
1367
|
* A container for the tooltip contents.
|
|
1074
1368
|
* Renders a `<div>` element.
|
|
@@ -1082,6 +1376,18 @@ export declare namespace TooltipPopup {
|
|
|
1082
1376
|
export type Props = TooltipPopupProps;
|
|
1083
1377
|
}
|
|
1084
1378
|
|
|
1379
|
+
export declare namespace TooltipPopupDataAttributes {
|
|
1380
|
+
export {
|
|
1381
|
+
open_3 as open,
|
|
1382
|
+
closed_3 as closed,
|
|
1383
|
+
startingStyle,
|
|
1384
|
+
endingStyle,
|
|
1385
|
+
side_2 as side,
|
|
1386
|
+
align_2 as align,
|
|
1387
|
+
instant
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1085
1391
|
export declare interface TooltipPopupProps extends BaseUIComponentProps<'div', TooltipPopupState> {}
|
|
1086
1392
|
|
|
1087
1393
|
export declare interface TooltipPopupState {
|
|
@@ -1121,12 +1427,16 @@ export declare namespace TooltipPortal {
|
|
|
1121
1427
|
export type Props = TooltipPortalProps;
|
|
1122
1428
|
}
|
|
1123
1429
|
|
|
1124
|
-
export declare interface TooltipPortalProps extends
|
|
1430
|
+
export declare interface TooltipPortalProps extends BaseUIComponentProps<'div', TooltipPortalState> {
|
|
1125
1431
|
/**
|
|
1126
1432
|
* Whether to keep the portal mounted in the DOM while the popup is hidden.
|
|
1127
1433
|
* @default false
|
|
1128
1434
|
*/
|
|
1129
1435
|
keepMounted?: boolean | undefined;
|
|
1436
|
+
/**
|
|
1437
|
+
* A parent element to render the portal element into.
|
|
1438
|
+
*/
|
|
1439
|
+
container?: HTMLElement | ShadowRoot | React_2.RefObject<HTMLElement | ShadowRoot | null> | null | undefined;
|
|
1130
1440
|
}
|
|
1131
1441
|
|
|
1132
1442
|
export declare interface TooltipPortalState {}
|
|
@@ -1144,6 +1454,28 @@ export declare namespace TooltipPositioner {
|
|
|
1144
1454
|
export type Props = TooltipPositionerProps;
|
|
1145
1455
|
}
|
|
1146
1456
|
|
|
1457
|
+
export declare namespace TooltipPositionerCssVariables {
|
|
1458
|
+
export {
|
|
1459
|
+
availableWidth,
|
|
1460
|
+
availableHeight,
|
|
1461
|
+
anchorWidth,
|
|
1462
|
+
anchorHeight,
|
|
1463
|
+
transformOrigin,
|
|
1464
|
+
positionerWidth,
|
|
1465
|
+
positionerHeight
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
export declare namespace TooltipPositionerDataAttributes {
|
|
1470
|
+
export {
|
|
1471
|
+
open_2 as open,
|
|
1472
|
+
closed_2 as closed,
|
|
1473
|
+
anchorHidden,
|
|
1474
|
+
side,
|
|
1475
|
+
align
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1147
1479
|
export declare interface TooltipPositionerProps extends BaseUIComponentProps<'div', TooltipPositionerState>, Omit<UseAnchorPositioningSharedParameters, 'side'> {
|
|
1148
1480
|
/**
|
|
1149
1481
|
* Which side of the anchor element to align the popup against.
|
|
@@ -1192,7 +1524,7 @@ export declare namespace TooltipProvider {
|
|
|
1192
1524
|
export declare interface TooltipProviderProps {
|
|
1193
1525
|
children?: React_2.ReactNode;
|
|
1194
1526
|
/**
|
|
1195
|
-
* How long to wait before opening
|
|
1527
|
+
* How long to wait before opening the tooltip on hover. Specified in milliseconds.
|
|
1196
1528
|
*/
|
|
1197
1529
|
delay?: number | undefined;
|
|
1198
1530
|
/**
|
|
@@ -1215,7 +1547,7 @@ export declare interface TooltipProviderState {}
|
|
|
1215
1547
|
*
|
|
1216
1548
|
* Documentation: [Base UI Tooltip](https://base-ui.com/react/components/tooltip)
|
|
1217
1549
|
*/
|
|
1218
|
-
export declare const TooltipRoot: <Payload>(props: TooltipRoot.Props<Payload>) =>
|
|
1550
|
+
export declare const TooltipRoot: <Payload>(props: TooltipRoot.Props<Payload>) => React_2.JSX.Element;
|
|
1219
1551
|
|
|
1220
1552
|
export declare namespace TooltipRoot {
|
|
1221
1553
|
export type State = TooltipRootState;
|
|
@@ -1231,7 +1563,8 @@ export declare interface TooltipRootActions {
|
|
|
1231
1563
|
}
|
|
1232
1564
|
|
|
1233
1565
|
export declare type TooltipRootChangeEventDetails = BaseUIChangeEventDetails<TooltipRoot.ChangeEventReason> & {
|
|
1234
|
-
|
|
1566
|
+
/** Prevents the popup from unmounting until the `unmount` action is called. */
|
|
1567
|
+
preventUnmountOnClose: () => void;
|
|
1235
1568
|
};
|
|
1236
1569
|
|
|
1237
1570
|
export declare type TooltipRootChangeEventReason = typeof REASONS.triggerHover | typeof REASONS.triggerFocus | typeof REASONS.triggerPress | typeof REASONS.outsidePress | typeof REASONS.escapeKey | typeof REASONS.disabled | typeof REASONS.imperativeAction | typeof REASONS.none;
|
|
@@ -1268,7 +1601,9 @@ export declare interface TooltipRootProps<Payload = unknown> {
|
|
|
1268
1601
|
trackCursorAxis?: 'none' | 'x' | 'y' | 'both' | undefined;
|
|
1269
1602
|
/**
|
|
1270
1603
|
* A ref to imperative actions.
|
|
1271
|
-
* - `unmount`:
|
|
1604
|
+
* - `unmount`: Ends the closing phase of the tooltip after an externally controlled closing animation finishes.
|
|
1605
|
+
* Call `preventUnmountOnClose()` in `onOpenChange` first, otherwise the tooltip completes closing on its own.
|
|
1606
|
+
* Whether it leaves the DOM is decided by `keepMounted` on the portal.
|
|
1272
1607
|
* - `close`: Closes the tooltip imperatively when called.
|
|
1273
1608
|
*/
|
|
1274
1609
|
actionsRef?: React_2.RefObject<TooltipRoot.Actions | null> | undefined;
|
|
@@ -1303,11 +1638,10 @@ export declare interface TooltipRootProps<Payload = unknown> {
|
|
|
1303
1638
|
|
|
1304
1639
|
export declare interface TooltipRootState {}
|
|
1305
1640
|
|
|
1306
|
-
declare class TooltipStore<Payload> extends ReactStore<Readonly<State<Payload>>, Context,
|
|
1307
|
-
constructor(initialState
|
|
1308
|
-
setOpen: (nextOpen: boolean, eventDetails: Omit<TooltipRoot.ChangeEventDetails,
|
|
1641
|
+
declare class TooltipStore<Payload> extends ReactStore<Readonly<State<Payload>>, Context, Selectors> {
|
|
1642
|
+
constructor(initialState: Partial<State<Payload>>, floatingId: string | undefined, nested: boolean);
|
|
1643
|
+
setOpen: (nextOpen: boolean, eventDetails: Omit<TooltipRoot.ChangeEventDetails, 'preventUnmountOnClose'>) => void;
|
|
1309
1644
|
cancelPendingOpen(event: MouseEvent | PointerEvent): void;
|
|
1310
|
-
static useStore<Payload>(externalStore: TooltipStore<Payload> | undefined, initialState?: Partial<State<Payload>>): TooltipStore<Payload>;
|
|
1311
1645
|
}
|
|
1312
1646
|
|
|
1313
1647
|
/**
|
|
@@ -1327,6 +1661,13 @@ export declare namespace TooltipTrigger {
|
|
|
1327
1661
|
export type Props<Payload = unknown> = TooltipTriggerProps<Payload>;
|
|
1328
1662
|
}
|
|
1329
1663
|
|
|
1664
|
+
export declare namespace TooltipTriggerDataAttributes {
|
|
1665
|
+
export {
|
|
1666
|
+
popupOpen,
|
|
1667
|
+
triggerDisabled
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1330
1671
|
export declare interface TooltipTriggerProps<Payload = unknown> extends BaseUIComponentProps<'button', TooltipTriggerState> {
|
|
1331
1672
|
/**
|
|
1332
1673
|
* A handle to associate the trigger with a tooltip.
|
|
@@ -1337,7 +1678,7 @@ export declare interface TooltipTriggerProps<Payload = unknown> extends BaseUICo
|
|
|
1337
1678
|
*/
|
|
1338
1679
|
payload?: Payload | undefined;
|
|
1339
1680
|
/**
|
|
1340
|
-
* How long to wait before opening the tooltip. Specified in milliseconds.
|
|
1681
|
+
* How long to wait before opening the tooltip on hover. Specified in milliseconds.
|
|
1341
1682
|
* @default 600
|
|
1342
1683
|
*/
|
|
1343
1684
|
delay?: number | undefined;
|
|
@@ -1362,7 +1703,7 @@ export declare interface TooltipTriggerProps<Payload = unknown> extends BaseUICo
|
|
|
1362
1703
|
|
|
1363
1704
|
export declare interface TooltipTriggerState {
|
|
1364
1705
|
/**
|
|
1365
|
-
* Whether the tooltip is currently open.
|
|
1706
|
+
* Whether the tooltip is currently open and was opened by this trigger.
|
|
1366
1707
|
*/
|
|
1367
1708
|
open: boolean;
|
|
1368
1709
|
}
|
|
@@ -1375,18 +1716,37 @@ export declare interface TooltipTriggerState {
|
|
|
1375
1716
|
*
|
|
1376
1717
|
* Documentation: [Base UI Tooltip](https://base-ui.com/react/components/tooltip)
|
|
1377
1718
|
*/
|
|
1378
|
-
export declare const TooltipViewport: React_2.ForwardRefExoticComponent<Omit<
|
|
1719
|
+
export declare const TooltipViewport: React_2.ForwardRefExoticComponent<Omit<TooltipViewportProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1379
1720
|
|
|
1380
1721
|
export declare namespace TooltipViewport {
|
|
1381
|
-
export
|
|
1382
|
-
/**
|
|
1383
|
-
* The content to render inside the transition container.
|
|
1384
|
-
*/
|
|
1385
|
-
children?: React_2.ReactNode;
|
|
1386
|
-
}
|
|
1722
|
+
export type Props = TooltipViewportProps;
|
|
1387
1723
|
export type State = TooltipViewportState;
|
|
1388
1724
|
}
|
|
1389
1725
|
|
|
1726
|
+
export declare namespace TooltipViewportCssVariables {
|
|
1727
|
+
export {
|
|
1728
|
+
popupWidth,
|
|
1729
|
+
popupHeight
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
export declare namespace TooltipViewportDataAttributes {
|
|
1734
|
+
export {
|
|
1735
|
+
current,
|
|
1736
|
+
previous,
|
|
1737
|
+
activationDirection,
|
|
1738
|
+
transitioning,
|
|
1739
|
+
instant_3 as instant
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
export declare interface TooltipViewportProps extends BaseUIComponentProps<'div', TooltipViewportState> {
|
|
1744
|
+
/**
|
|
1745
|
+
* The content to render inside the transition container.
|
|
1746
|
+
*/
|
|
1747
|
+
children?: React_2.ReactNode;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1390
1750
|
export declare interface TooltipViewportState {
|
|
1391
1751
|
/**
|
|
1392
1752
|
* The activation direction of the transitioned content.
|
|
@@ -1402,17 +1762,38 @@ export declare interface TooltipViewportState {
|
|
|
1402
1762
|
instant: 'delay' | 'dismiss' | 'focus' | undefined;
|
|
1403
1763
|
}
|
|
1404
1764
|
|
|
1405
|
-
declare const trackPress:
|
|
1765
|
+
declare const trackPress: 'track-press';
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
* The coordinates that this element is anchored to. Used for animations and transitions.
|
|
1769
|
+
* @type {string}
|
|
1770
|
+
*/
|
|
1771
|
+
declare const transformOrigin = "--transform-origin";
|
|
1772
|
+
|
|
1773
|
+
/**
|
|
1774
|
+
* Indicates that the viewport is currently transitioning between old and new content.
|
|
1775
|
+
*/
|
|
1776
|
+
declare const transitioning = "data-transitioning";
|
|
1406
1777
|
|
|
1407
1778
|
declare type TransitionStatus = 'starting' | 'ending' | 'idle' | undefined;
|
|
1408
1779
|
|
|
1409
1780
|
declare function Trigger<Payload = unknown>({ className, ...props }: WithStringClassName<Tooltip_2.Trigger.Props<Payload>> & React_2.RefAttributes<HTMLElement>): JSX_2.Element;
|
|
1410
1781
|
|
|
1411
|
-
|
|
1782
|
+
/**
|
|
1783
|
+
* Present when the trigger is disabled, either by the `disabled` prop or by a parent `<Tooltip.Root>` component.
|
|
1784
|
+
*/
|
|
1785
|
+
declare const triggerDisabled = "data-trigger-disabled";
|
|
1786
|
+
|
|
1787
|
+
declare const triggerFocus: 'trigger-focus';
|
|
1788
|
+
|
|
1789
|
+
declare const triggerHover: 'trigger-hover';
|
|
1412
1790
|
|
|
1413
|
-
declare const
|
|
1791
|
+
declare const triggerPress: 'trigger-press';
|
|
1414
1792
|
|
|
1415
|
-
|
|
1793
|
+
/**
|
|
1794
|
+
* Present when the tooltip arrow is uncentered.
|
|
1795
|
+
*/
|
|
1796
|
+
declare const uncentered = "data-uncentered";
|
|
1416
1797
|
|
|
1417
1798
|
declare interface UseAnchorPositioningSharedParameters {
|
|
1418
1799
|
/**
|
|
@@ -1556,33 +1937,9 @@ declare interface UseAnchorPositioningSharedParameters {
|
|
|
1556
1937
|
collisionAvoidance?: CollisionAvoidance | undefined;
|
|
1557
1938
|
}
|
|
1558
1939
|
|
|
1559
|
-
declare
|
|
1560
|
-
ref?: React_2.Ref<HTMLDivElement> | undefined;
|
|
1561
|
-
container?: HTMLElement | ShadowRoot | null | React_2.RefObject<HTMLElement | ShadowRoot | null> | undefined;
|
|
1562
|
-
componentProps?: UseRenderElementComponentProps<any> | undefined;
|
|
1563
|
-
elementProps?: React_2.HTMLAttributes<HTMLDivElement> | undefined;
|
|
1564
|
-
}
|
|
1565
|
-
|
|
1566
|
-
declare interface UseRenderElementComponentProps<State> {
|
|
1567
|
-
/**
|
|
1568
|
-
* The class name to apply to the rendered element.
|
|
1569
|
-
* Can be a string or a function that accepts the state and returns a string.
|
|
1570
|
-
*/
|
|
1571
|
-
className?: string | ((state: State) => string | undefined) | undefined;
|
|
1572
|
-
/**
|
|
1573
|
-
* The render prop or React element to override the default element.
|
|
1574
|
-
*/
|
|
1575
|
-
render?: undefined | React_2.ReactElement | ComponentRenderFn<React_2.HTMLAttributes<any>, State>;
|
|
1576
|
-
/**
|
|
1577
|
-
* The style to apply to the rendered element.
|
|
1578
|
-
* Can be a style object or a function that accepts the state and returns a style object.
|
|
1579
|
-
*/
|
|
1580
|
-
style?: React_2.CSSProperties | ((state: State) => React_2.CSSProperties | undefined) | undefined;
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
declare const wheel: "wheel";
|
|
1940
|
+
declare const wheel: 'wheel';
|
|
1584
1941
|
|
|
1585
|
-
declare const windowResize:
|
|
1942
|
+
declare const windowResize: 'window-resize';
|
|
1586
1943
|
|
|
1587
1944
|
/**
|
|
1588
1945
|
* Adds a `preventBaseUIHandler` method to all event handlers.
|