@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.
- 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
|
@@ -13,11 +13,74 @@ import { NavigationMenuTriggerProps as NavigationMenuTriggerProps_2 } from '@bas
|
|
|
13
13
|
import { NavigationMenuViewportProps as NavigationMenuViewportProps_2 } from '@base-ui/react';
|
|
14
14
|
import { Padding } from '@floating-ui/react-dom';
|
|
15
15
|
import * as React_2 from 'react';
|
|
16
|
-
import { Rect } from '@floating-ui/utils';
|
|
16
|
+
import type { Rect } from '@floating-ui/utils';
|
|
17
17
|
import { VirtualElement } from '@floating-ui/react-dom';
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
* Which direction another trigger was activated from.
|
|
21
|
+
* @type {'left' | 'right' | 'up' | 'down'}
|
|
22
|
+
*/
|
|
23
|
+
declare const activationDirection = "data-activation-direction";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Present when the link is the currently active page.
|
|
27
|
+
*/
|
|
28
|
+
declare const active = "data-active";
|
|
29
|
+
|
|
19
30
|
declare type Align = 'start' | 'center' | 'end';
|
|
20
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Indicates how the popup is aligned relative to the specified side.
|
|
34
|
+
* @type {'start' | 'center' | 'end'}
|
|
35
|
+
*/
|
|
36
|
+
declare const align = "data-align";
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Indicates how the popup is aligned relative to the specified side.
|
|
40
|
+
* @type {'start' | 'center' | 'end'}
|
|
41
|
+
*/
|
|
42
|
+
declare const align_2 = "data-align";
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Indicates how the popup is aligned relative to specified side.
|
|
46
|
+
* @type {'start' | 'center' | 'end'}
|
|
47
|
+
*/
|
|
48
|
+
declare const align_3 = "data-align";
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The anchor's height.
|
|
52
|
+
* @type {number}
|
|
53
|
+
*/
|
|
54
|
+
declare const anchorHeight = "--anchor-height";
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Present when the anchor is hidden.
|
|
58
|
+
*/
|
|
59
|
+
declare const anchorHidden = "data-anchor-hidden";
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Present when the anchor is hidden.
|
|
63
|
+
*/
|
|
64
|
+
declare const anchorHidden_2 = "data-anchor-hidden";
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The anchor's width.
|
|
68
|
+
* @type {number}
|
|
69
|
+
*/
|
|
70
|
+
declare const anchorWidth = "--anchor-width";
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The available height between the trigger and the edge of the viewport.
|
|
74
|
+
* @type {number}
|
|
75
|
+
*/
|
|
76
|
+
declare const availableHeight = "--available-height";
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The available width between the trigger and the edge of the viewport.
|
|
80
|
+
* @type {number}
|
|
81
|
+
*/
|
|
82
|
+
declare const availableWidth = "--available-width";
|
|
83
|
+
|
|
21
84
|
declare type BaseUIChangeEventDetail<Reason extends string, CustomProperties extends object> = {
|
|
22
85
|
/**
|
|
23
86
|
* The reason for the event.
|
|
@@ -85,15 +148,40 @@ declare type BaseUIEvent<E extends React_2.SyntheticEvent<Element, Event>> = E &
|
|
|
85
148
|
|
|
86
149
|
declare type Boundary = 'clipping-ancestors' | Element | Element[] | Rect;
|
|
87
150
|
|
|
88
|
-
declare const cancelOpen:
|
|
151
|
+
declare const cancelOpen: 'cancel-open';
|
|
152
|
+
|
|
153
|
+
declare const chipRemovePress: 'chip-remove-press';
|
|
89
154
|
|
|
90
|
-
declare const
|
|
155
|
+
declare const clearPress: 'clear-press';
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Present when the popup is closed.
|
|
159
|
+
*/
|
|
160
|
+
declare const closed_2 = "data-closed";
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Present when the popup is closed.
|
|
164
|
+
*/
|
|
165
|
+
declare const closed_3 = "data-closed";
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Present when the popup is closed.
|
|
169
|
+
*/
|
|
170
|
+
declare const closed_4 = "data-closed";
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Present when the popup is closed.
|
|
174
|
+
*/
|
|
175
|
+
declare const closed_5 = "data-closed";
|
|
91
176
|
|
|
92
|
-
|
|
177
|
+
/**
|
|
178
|
+
* Present when the popup is closed.
|
|
179
|
+
*/
|
|
180
|
+
declare const closed_6 = "data-closed";
|
|
93
181
|
|
|
94
|
-
declare const closePress:
|
|
182
|
+
declare const closePress: 'close-press';
|
|
95
183
|
|
|
96
|
-
declare const closeWatcher:
|
|
184
|
+
declare const closeWatcher: 'close-watcher';
|
|
97
185
|
|
|
98
186
|
declare type CollisionAvoidance = SideFlipMode | SideShiftMode;
|
|
99
187
|
|
|
@@ -105,70 +193,70 @@ declare type CollisionAvoidance = SideFlipMode | SideShiftMode;
|
|
|
105
193
|
*/
|
|
106
194
|
declare type ComponentRenderFn<Props, State> = (props: Props, state: State) => React_2.ReactElement<unknown>;
|
|
107
195
|
|
|
108
|
-
declare const decrementPress:
|
|
196
|
+
declare const decrementPress: 'decrement-press';
|
|
109
197
|
|
|
110
|
-
declare const disabled:
|
|
198
|
+
declare const disabled: 'disabled';
|
|
111
199
|
|
|
112
|
-
|
|
200
|
+
/**
|
|
201
|
+
* Present when the trigger is disabled.
|
|
202
|
+
*/
|
|
203
|
+
declare const disabled_2 = "data-disabled";
|
|
113
204
|
|
|
114
|
-
declare const
|
|
205
|
+
declare const drag: 'drag';
|
|
115
206
|
|
|
116
207
|
/**
|
|
117
|
-
*
|
|
118
|
-
* outside of the app root and into the body.
|
|
119
|
-
* This is necessary to ensure the floating element can appear outside any
|
|
120
|
-
* potential parent containers that cause clipping (such as `overflow: hidden`),
|
|
121
|
-
* while retaining its location in the React tree.
|
|
122
|
-
* @see https://floating-ui.com/docs/FloatingPortal
|
|
123
|
-
* @internal
|
|
208
|
+
* Present when the content is animating out.
|
|
124
209
|
*/
|
|
125
|
-
declare const
|
|
126
|
-
renderGuards?: boolean | undefined;
|
|
127
|
-
}, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
210
|
+
declare const endingStyle = "data-ending-style";
|
|
128
211
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
212
|
+
/**
|
|
213
|
+
* Present when the popup is animating out.
|
|
214
|
+
*/
|
|
215
|
+
declare const endingStyle_2 = "data-ending-style";
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Present when the popup is animating out.
|
|
219
|
+
*/
|
|
220
|
+
declare const endingStyle_3 = "data-ending-style";
|
|
138
221
|
|
|
139
|
-
declare
|
|
222
|
+
declare const escapeKey: 'escape-key';
|
|
140
223
|
|
|
141
|
-
declare const focusOut:
|
|
224
|
+
declare const focusOut: 'focus-out';
|
|
142
225
|
|
|
143
226
|
declare type HTMLProps<T = any> = React_2.HTMLAttributes<T> & {
|
|
144
227
|
ref?: React_2.Ref<T> | undefined;
|
|
145
228
|
};
|
|
146
229
|
|
|
147
|
-
declare const imperativeAction:
|
|
230
|
+
declare const imperativeAction: 'imperative-action';
|
|
148
231
|
|
|
149
|
-
declare const incrementPress:
|
|
232
|
+
declare const incrementPress: 'increment-press';
|
|
150
233
|
|
|
151
|
-
declare const initial:
|
|
234
|
+
declare const initial: 'initial';
|
|
152
235
|
|
|
153
|
-
declare const inputBlur:
|
|
236
|
+
declare const inputBlur: 'input-blur';
|
|
154
237
|
|
|
155
|
-
declare const inputChange:
|
|
238
|
+
declare const inputChange: 'input-change';
|
|
156
239
|
|
|
157
|
-
declare const inputClear:
|
|
240
|
+
declare const inputClear: 'input-clear';
|
|
158
241
|
|
|
159
|
-
declare const inputPaste:
|
|
242
|
+
declare const inputPaste: 'input-paste';
|
|
160
243
|
|
|
161
|
-
declare const inputPress:
|
|
244
|
+
declare const inputPress: 'input-press';
|
|
162
245
|
|
|
163
|
-
|
|
246
|
+
/**
|
|
247
|
+
* Present if animations should be instant.
|
|
248
|
+
*/
|
|
249
|
+
declare const instant = "data-instant";
|
|
250
|
+
|
|
251
|
+
declare const itemPress: 'item-press';
|
|
164
252
|
|
|
165
|
-
declare const keyboard:
|
|
253
|
+
declare const keyboard: 'keyboard';
|
|
166
254
|
|
|
167
|
-
declare const linkPress:
|
|
255
|
+
declare const linkPress: 'link-press';
|
|
168
256
|
|
|
169
|
-
declare const listNavigation:
|
|
257
|
+
declare const listNavigation: 'list-navigation';
|
|
170
258
|
|
|
171
|
-
declare const missing:
|
|
259
|
+
declare const missing: 'missing';
|
|
172
260
|
|
|
173
261
|
declare interface NativeButtonProps {
|
|
174
262
|
/**
|
|
@@ -249,6 +337,16 @@ export declare namespace NavigationMenuArrow {
|
|
|
249
337
|
export type Props = NavigationMenuArrowProps;
|
|
250
338
|
}
|
|
251
339
|
|
|
340
|
+
export declare namespace NavigationMenuArrowDataAttributes {
|
|
341
|
+
export {
|
|
342
|
+
open_6 as open,
|
|
343
|
+
closed_6 as closed,
|
|
344
|
+
side_3 as side,
|
|
345
|
+
align_3 as align,
|
|
346
|
+
uncentered
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
252
350
|
export declare interface NavigationMenuArrowProps extends BaseUIComponentProps<'div', NavigationMenuArrowState> {}
|
|
253
351
|
|
|
254
352
|
export declare interface NavigationMenuArrowState {
|
|
@@ -283,6 +381,15 @@ export declare namespace NavigationMenuBackdrop {
|
|
|
283
381
|
export type Props = NavigationMenuBackdropProps;
|
|
284
382
|
}
|
|
285
383
|
|
|
384
|
+
export declare namespace NavigationMenuBackdropDataAttributes {
|
|
385
|
+
export {
|
|
386
|
+
open_4 as open,
|
|
387
|
+
closed_4 as closed,
|
|
388
|
+
startingStyle_2 as startingStyle,
|
|
389
|
+
endingStyle_2 as endingStyle
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
286
393
|
export declare interface NavigationMenuBackdropProps extends BaseUIComponentProps<'div', NavigationMenuBackdropState> {}
|
|
287
394
|
|
|
288
395
|
export declare interface NavigationMenuBackdropState {
|
|
@@ -310,6 +417,16 @@ export declare namespace NavigationMenuContent {
|
|
|
310
417
|
export type Props = NavigationMenuContentProps;
|
|
311
418
|
}
|
|
312
419
|
|
|
420
|
+
export declare namespace NavigationMenuContentDataAttributes {
|
|
421
|
+
export {
|
|
422
|
+
open_2 as open,
|
|
423
|
+
closed_2 as closed,
|
|
424
|
+
startingStyle,
|
|
425
|
+
endingStyle,
|
|
426
|
+
activationDirection
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
313
430
|
export declare interface NavigationMenuContentProps extends BaseUIComponentProps<'div', NavigationMenuContentState> {
|
|
314
431
|
/**
|
|
315
432
|
* Whether to keep the content mounted in the DOM while the popup is closed.
|
|
@@ -346,6 +463,12 @@ export declare namespace NavigationMenuIcon {
|
|
|
346
463
|
export type Props = NavigationMenuIconProps;
|
|
347
464
|
}
|
|
348
465
|
|
|
466
|
+
export declare namespace NavigationMenuIconDataAttributes {
|
|
467
|
+
export {
|
|
468
|
+
popupOpen_2 as popupOpen
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
349
472
|
export declare interface NavigationMenuIconProps extends BaseUIComponentProps<'span', NavigationMenuIconState> {}
|
|
350
473
|
|
|
351
474
|
export declare interface NavigationMenuIconState {
|
|
@@ -392,7 +515,13 @@ export declare namespace NavigationMenuLink {
|
|
|
392
515
|
export type Props = NavigationMenuLinkProps;
|
|
393
516
|
}
|
|
394
517
|
|
|
395
|
-
export declare
|
|
518
|
+
export declare namespace NavigationMenuLinkDataAttributes {
|
|
519
|
+
export {
|
|
520
|
+
active
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export declare interface NavigationMenuLinkProps extends BaseUIComponentProps<'a', NavigationMenuLinkState, React_2.ComponentPropsWithRef<'a'>> {
|
|
396
525
|
/**
|
|
397
526
|
* Whether the link is the currently active page.
|
|
398
527
|
* @default false
|
|
@@ -447,6 +576,25 @@ export declare namespace NavigationMenuPopup {
|
|
|
447
576
|
export type Props = NavigationMenuPopupProps;
|
|
448
577
|
}
|
|
449
578
|
|
|
579
|
+
export declare namespace NavigationMenuPopupCssVariables {
|
|
580
|
+
export {
|
|
581
|
+
popupWidth,
|
|
582
|
+
popupHeight
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
export declare namespace NavigationMenuPopupDataAttributes {
|
|
587
|
+
export {
|
|
588
|
+
open_5 as open,
|
|
589
|
+
closed_5 as closed,
|
|
590
|
+
startingStyle_3 as startingStyle,
|
|
591
|
+
endingStyle_3 as endingStyle,
|
|
592
|
+
anchorHidden_2 as anchorHidden,
|
|
593
|
+
side_2 as side,
|
|
594
|
+
align_2 as align
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
|
|
450
598
|
export declare interface NavigationMenuPopupProps extends BaseUIComponentProps<'nav', NavigationMenuPopupState> {}
|
|
451
599
|
|
|
452
600
|
export declare interface NavigationMenuPopupState {
|
|
@@ -486,7 +634,7 @@ export declare namespace NavigationMenuPortal {
|
|
|
486
634
|
export type Props = NavigationMenuPortalProps;
|
|
487
635
|
}
|
|
488
636
|
|
|
489
|
-
export declare interface NavigationMenuPortalProps extends
|
|
637
|
+
export declare interface NavigationMenuPortalProps extends BaseUIComponentProps<'div', NavigationMenuPortalState> {
|
|
490
638
|
/**
|
|
491
639
|
* Whether to keep the portal mounted in the DOM while the popup is hidden.
|
|
492
640
|
* @default false
|
|
@@ -495,7 +643,7 @@ export declare interface NavigationMenuPortalProps extends FloatingPortal.Props<
|
|
|
495
643
|
/**
|
|
496
644
|
* A parent element to render the portal element into.
|
|
497
645
|
*/
|
|
498
|
-
container?:
|
|
646
|
+
container?: HTMLElement | ShadowRoot | React_2.RefObject<HTMLElement | ShadowRoot | null> | null | undefined;
|
|
499
647
|
}
|
|
500
648
|
|
|
501
649
|
export declare interface NavigationMenuPortalState {}
|
|
@@ -513,6 +661,29 @@ export declare namespace NavigationMenuPositioner {
|
|
|
513
661
|
export type Props = NavigationMenuPositionerProps;
|
|
514
662
|
}
|
|
515
663
|
|
|
664
|
+
export declare namespace NavigationMenuPositionerCssVariables {
|
|
665
|
+
export {
|
|
666
|
+
availableWidth,
|
|
667
|
+
availableHeight,
|
|
668
|
+
anchorWidth,
|
|
669
|
+
anchorHeight,
|
|
670
|
+
transformOrigin,
|
|
671
|
+
positionerWidth,
|
|
672
|
+
positionerHeight
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
export declare namespace NavigationMenuPositionerDataAttributes {
|
|
677
|
+
export {
|
|
678
|
+
open_3 as open,
|
|
679
|
+
closed_3 as closed,
|
|
680
|
+
anchorHidden,
|
|
681
|
+
side,
|
|
682
|
+
align,
|
|
683
|
+
instant
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
516
687
|
export declare interface NavigationMenuPositionerProps extends UseAnchorPositioningSharedParameters, BaseUIComponentProps<'div', NavigationMenuPositionerState> {}
|
|
517
688
|
|
|
518
689
|
export declare interface NavigationMenuPositionerState {
|
|
@@ -559,15 +730,23 @@ export declare namespace NavigationMenuRoot {
|
|
|
559
730
|
|
|
560
731
|
export declare interface NavigationMenuRootActions {
|
|
561
732
|
unmount: () => void;
|
|
733
|
+
close: () => void;
|
|
562
734
|
}
|
|
563
735
|
|
|
564
|
-
export declare type NavigationMenuRootChangeEventDetails = BaseUIChangeEventDetails<NavigationMenuRoot.ChangeEventReason
|
|
736
|
+
export declare type NavigationMenuRootChangeEventDetails = BaseUIChangeEventDetails<NavigationMenuRoot.ChangeEventReason> & {
|
|
737
|
+
/** Prevents the popup from unmounting until the `unmount` action is called. */
|
|
738
|
+
preventUnmountOnClose: () => void;
|
|
739
|
+
};
|
|
565
740
|
|
|
566
|
-
export declare type NavigationMenuRootChangeEventReason = typeof REASONS.triggerPress | typeof REASONS.triggerHover | typeof REASONS.outsidePress | typeof REASONS.listNavigation | typeof REASONS.focusOut | typeof REASONS.escapeKey | typeof REASONS.linkPress | typeof REASONS.none;
|
|
741
|
+
export declare type NavigationMenuRootChangeEventReason = typeof REASONS.triggerPress | typeof REASONS.triggerHover | typeof REASONS.outsidePress | typeof REASONS.listNavigation | typeof REASONS.focusOut | typeof REASONS.escapeKey | typeof REASONS.linkPress | typeof REASONS.imperativeAction | typeof REASONS.none;
|
|
567
742
|
|
|
568
743
|
export declare interface NavigationMenuRootProps<Value = any> extends BaseUIComponentProps<'nav', NavigationMenuRootState> {
|
|
569
744
|
/**
|
|
570
745
|
* A ref to imperative actions.
|
|
746
|
+
* - `unmount`: Ends the closing phase of the navigation menu popup after an externally controlled closing animation finishes.
|
|
747
|
+
* Call `preventUnmountOnClose()` in `onValueChange` first, otherwise the navigation menu popup completes closing on its own.
|
|
748
|
+
* Whether it leaves the DOM is decided by `keepMounted` on the portal.
|
|
749
|
+
* - `close`: Closes the navigation menu imperatively when called.
|
|
571
750
|
*/
|
|
572
751
|
actionsRef?: React_2.RefObject<NavigationMenuRoot.Actions | null> | undefined;
|
|
573
752
|
/**
|
|
@@ -635,13 +814,31 @@ export declare namespace NavigationMenuTrigger {
|
|
|
635
814
|
export type Props = NavigationMenuTriggerProps;
|
|
636
815
|
}
|
|
637
816
|
|
|
638
|
-
export declare
|
|
817
|
+
export declare namespace NavigationMenuTriggerDataAttributes {
|
|
818
|
+
export {
|
|
819
|
+
popupOpen,
|
|
820
|
+
pressed,
|
|
821
|
+
disabled_2 as disabled
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
export declare interface NavigationMenuTriggerProps extends NativeButtonProps, BaseUIComponentProps<'button', NavigationMenuTriggerState> {
|
|
826
|
+
/**
|
|
827
|
+
* Whether the component should ignore user interaction.
|
|
828
|
+
* @default false
|
|
829
|
+
*/
|
|
830
|
+
disabled?: boolean | undefined;
|
|
831
|
+
}
|
|
639
832
|
|
|
640
833
|
export declare interface NavigationMenuTriggerState {
|
|
641
834
|
/**
|
|
642
835
|
* If `true`, the popup is open and the item is active.
|
|
643
836
|
*/
|
|
644
837
|
open: boolean;
|
|
838
|
+
/**
|
|
839
|
+
* Whether the component should ignore user interaction.
|
|
840
|
+
*/
|
|
841
|
+
disabled: boolean;
|
|
645
842
|
}
|
|
646
843
|
|
|
647
844
|
/**
|
|
@@ -661,7 +858,7 @@ export declare interface NavigationMenuViewportProps extends BaseUIComponentProp
|
|
|
661
858
|
|
|
662
859
|
export declare interface NavigationMenuViewportState {}
|
|
663
860
|
|
|
664
|
-
declare const none:
|
|
861
|
+
declare const none: 'none';
|
|
665
862
|
|
|
666
863
|
declare type OffsetFunction = (data: {
|
|
667
864
|
side: Side;
|
|
@@ -676,9 +873,75 @@ declare type OffsetFunction = (data: {
|
|
|
676
873
|
};
|
|
677
874
|
}) => number;
|
|
678
875
|
|
|
679
|
-
|
|
876
|
+
/**
|
|
877
|
+
* Present when the popup is open.
|
|
878
|
+
*/
|
|
879
|
+
declare const open_2 = "data-open";
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* Present when the popup is open.
|
|
883
|
+
*/
|
|
884
|
+
declare const open_3 = "data-open";
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* Present when the popup is open.
|
|
888
|
+
*/
|
|
889
|
+
declare const open_4 = "data-open";
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Present when the popup is open.
|
|
893
|
+
*/
|
|
894
|
+
declare const open_5 = "data-open";
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Present when the popup is open.
|
|
898
|
+
*/
|
|
899
|
+
declare const open_6 = "data-open";
|
|
900
|
+
|
|
901
|
+
declare const outsidePress: 'outside-press';
|
|
902
|
+
|
|
903
|
+
declare const pointer: 'pointer';
|
|
904
|
+
|
|
905
|
+
declare const popupClose: 'popup-close';
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* The fixed height of the popup element.
|
|
909
|
+
* @type {number}
|
|
910
|
+
*/
|
|
911
|
+
declare const popupHeight = "--popup-height";
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* Present when the corresponding navigation menu is open.
|
|
915
|
+
*/
|
|
916
|
+
declare const popupOpen = "data-popup-open";
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* Present when the navigation menu is open and the item is active.
|
|
920
|
+
*/
|
|
921
|
+
declare const popupOpen_2 = "data-popup-open";
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* The fixed width of the popup element.
|
|
925
|
+
* @type {number}
|
|
926
|
+
*/
|
|
927
|
+
declare const popupWidth = "--popup-width";
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* The fixed height of the positioner element.
|
|
931
|
+
* @type {number}
|
|
932
|
+
*/
|
|
933
|
+
declare const positionerHeight = "--positioner-height";
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* The fixed width of the positioner element.
|
|
937
|
+
* @type {number}
|
|
938
|
+
*/
|
|
939
|
+
declare const positionerWidth = "--positioner-width";
|
|
680
940
|
|
|
681
|
-
|
|
941
|
+
/**
|
|
942
|
+
* Present when the trigger is pressed.
|
|
943
|
+
*/
|
|
944
|
+
declare const pressed = "data-pressed";
|
|
682
945
|
|
|
683
946
|
declare namespace REASONS {
|
|
684
947
|
export {
|
|
@@ -709,6 +972,7 @@ declare namespace REASONS {
|
|
|
709
972
|
drag,
|
|
710
973
|
wheel,
|
|
711
974
|
scrub,
|
|
975
|
+
popupClose,
|
|
712
976
|
cancelOpen,
|
|
713
977
|
siblingOpen,
|
|
714
978
|
disabled,
|
|
@@ -765,12 +1029,30 @@ declare interface ReasonToEventMap {
|
|
|
765
1029
|
|
|
766
1030
|
declare function Root<Value = any>({ className, orientation, ...props }: WithStringClassName<NavigationMenu_2.Root.Props<Value>>): JSX_2.Element;
|
|
767
1031
|
|
|
768
|
-
declare const scrub:
|
|
1032
|
+
declare const scrub: 'scrub';
|
|
769
1033
|
|
|
770
|
-
declare const siblingOpen:
|
|
1034
|
+
declare const siblingOpen: 'sibling-open';
|
|
771
1035
|
|
|
772
1036
|
declare type Side = 'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start';
|
|
773
1037
|
|
|
1038
|
+
/**
|
|
1039
|
+
* Indicates which side the popup is positioned relative to the trigger.
|
|
1040
|
+
* @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
|
|
1041
|
+
*/
|
|
1042
|
+
declare const side = "data-side";
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* Indicates which side the popup is positioned relative to the trigger.
|
|
1046
|
+
* @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
|
|
1047
|
+
*/
|
|
1048
|
+
declare const side_2 = "data-side";
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* Indicates which side the popup is positioned relative to the trigger.
|
|
1052
|
+
* @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
|
|
1053
|
+
*/
|
|
1054
|
+
declare const side_3 = "data-side";
|
|
1055
|
+
|
|
774
1056
|
declare interface SideFlipMode {
|
|
775
1057
|
/**
|
|
776
1058
|
* How to avoid collisions on the side axis.
|
|
@@ -818,17 +1100,43 @@ declare interface SideShiftMode {
|
|
|
818
1100
|
fallbackAxisSide?: 'start' | 'end' | 'none' | undefined;
|
|
819
1101
|
}
|
|
820
1102
|
|
|
821
|
-
|
|
1103
|
+
/**
|
|
1104
|
+
* Present when the content begins animating in.
|
|
1105
|
+
*/
|
|
1106
|
+
declare const startingStyle = "data-starting-style";
|
|
822
1107
|
|
|
823
|
-
|
|
1108
|
+
/**
|
|
1109
|
+
* Present when the popup begins animating in.
|
|
1110
|
+
*/
|
|
1111
|
+
declare const startingStyle_2 = "data-starting-style";
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* Present when the popup begins animating in.
|
|
1115
|
+
*/
|
|
1116
|
+
declare const startingStyle_3 = "data-starting-style";
|
|
1117
|
+
|
|
1118
|
+
declare const swipe: 'swipe';
|
|
1119
|
+
|
|
1120
|
+
declare const trackPress: 'track-press';
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* The coordinates that this element is anchored to. Used for animations and transitions.
|
|
1124
|
+
* @type {string}
|
|
1125
|
+
*/
|
|
1126
|
+
declare const transformOrigin = "--transform-origin";
|
|
824
1127
|
|
|
825
1128
|
declare type TransitionStatus = 'starting' | 'ending' | 'idle' | undefined;
|
|
826
1129
|
|
|
827
|
-
declare const triggerFocus:
|
|
1130
|
+
declare const triggerFocus: 'trigger-focus';
|
|
828
1131
|
|
|
829
|
-
declare const triggerHover:
|
|
1132
|
+
declare const triggerHover: 'trigger-hover';
|
|
830
1133
|
|
|
831
|
-
declare const triggerPress:
|
|
1134
|
+
declare const triggerPress: 'trigger-press';
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* Present when the popup arrow is uncentered.
|
|
1138
|
+
*/
|
|
1139
|
+
declare const uncentered = "data-uncentered";
|
|
832
1140
|
|
|
833
1141
|
declare interface UseAnchorPositioningSharedParameters {
|
|
834
1142
|
/**
|
|
@@ -972,33 +1280,9 @@ declare interface UseAnchorPositioningSharedParameters {
|
|
|
972
1280
|
collisionAvoidance?: CollisionAvoidance | undefined;
|
|
973
1281
|
}
|
|
974
1282
|
|
|
975
|
-
declare
|
|
976
|
-
ref?: React_2.Ref<HTMLDivElement> | undefined;
|
|
977
|
-
container?: HTMLElement | ShadowRoot | null | React_2.RefObject<HTMLElement | ShadowRoot | null> | undefined;
|
|
978
|
-
componentProps?: UseRenderElementComponentProps<any> | undefined;
|
|
979
|
-
elementProps?: React_2.HTMLAttributes<HTMLDivElement> | undefined;
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
declare interface UseRenderElementComponentProps<State> {
|
|
983
|
-
/**
|
|
984
|
-
* The class name to apply to the rendered element.
|
|
985
|
-
* Can be a string or a function that accepts the state and returns a string.
|
|
986
|
-
*/
|
|
987
|
-
className?: string | ((state: State) => string | undefined) | undefined;
|
|
988
|
-
/**
|
|
989
|
-
* The render prop or React element to override the default element.
|
|
990
|
-
*/
|
|
991
|
-
render?: undefined | React_2.ReactElement | ComponentRenderFn<React_2.HTMLAttributes<any>, State>;
|
|
992
|
-
/**
|
|
993
|
-
* The style to apply to the rendered element.
|
|
994
|
-
* Can be a style object or a function that accepts the state and returns a style object.
|
|
995
|
-
*/
|
|
996
|
-
style?: React_2.CSSProperties | ((state: State) => React_2.CSSProperties | undefined) | undefined;
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
declare const wheel: "wheel";
|
|
1283
|
+
declare const wheel: 'wheel';
|
|
1000
1284
|
|
|
1001
|
-
declare const windowResize:
|
|
1285
|
+
declare const windowResize: 'window-resize';
|
|
1002
1286
|
|
|
1003
1287
|
/**
|
|
1004
1288
|
* Adds a `preventBaseUIHandler` method to all event handlers.
|