@progress/kendo-react-popup 13.3.0-develop.9 → 13.4.0-develop.1
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/Popup.d.ts +99 -0
- package/animation.d.ts +12 -0
- package/dist/cdn/js/kendo-react-popup.js +1 -1
- package/index.d.mts +11 -631
- package/index.d.ts +11 -631
- package/models/Align.d.ts +31 -0
- package/models/Collision.d.ts +21 -0
- package/models/CollisionType.d.ts +17 -0
- package/models/Events.d.ts +64 -0
- package/models/Margin.d.ts +21 -0
- package/models/Offset.d.ts +21 -0
- package/models/PopupAnimation.d.ts +188 -0
- package/models/PopupProps.d.ts +235 -0
- package/models/PopupSettings.d.ts +93 -0
- package/models/PositionMode.d.ts +12 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.mjs +13 -0
- package/package.json +9 -3
- package/util.d.ts +24 -0
package/index.d.mts
CHANGED
|
@@ -5,634 +5,14 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*/
|
|
20
|
-
export declare interface Align extends AlignStrategy {
|
|
21
|
-
/**
|
|
22
|
-
* Defines the possible horizontal point values that are relative to the anchor or the Popup.
|
|
23
|
-
*
|
|
24
|
-
* The available options are:
|
|
25
|
-
* - `left`—Uses the leftmost point of the anchor element.
|
|
26
|
-
* - `center`—Uses the center point of the anchor element.
|
|
27
|
-
* - `right`—Uses the rightmost point of the anchor element.
|
|
28
|
-
*/
|
|
29
|
-
horizontal: 'left' | 'center' | 'right';
|
|
30
|
-
/**
|
|
31
|
-
* Defines the possible vertical point values that are relative to the anchor or the Popup.
|
|
32
|
-
*
|
|
33
|
-
* The available options are:
|
|
34
|
-
* - `top`—Uses the top point of the anchor element.
|
|
35
|
-
* - `center`—Uses the center point of the anchor element.
|
|
36
|
-
* - `bottom`—Uses the bottom point of the anchor element.
|
|
37
|
-
*/
|
|
38
|
-
vertical: 'top' | 'center' | 'bottom';
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* The available animation types for the Popup component.
|
|
43
|
-
*
|
|
44
|
-
* Possible values: 'slide', 'zoom', 'push', 'expand', 'fade'.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* <Popup animation={{ type: 'slide' }} />
|
|
48
|
-
*/
|
|
49
|
-
declare const animationTypes: {
|
|
50
|
-
readonly slide: "slide";
|
|
51
|
-
readonly zoom: "zoom";
|
|
52
|
-
readonly push: "push";
|
|
53
|
-
readonly expand: "expand";
|
|
54
|
-
readonly fade: "fade";
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Defines the horizontal and vertical collision behavior of the Popup.
|
|
59
|
-
*/
|
|
60
|
-
export declare interface Collision {
|
|
61
|
-
/**
|
|
62
|
-
* Defines the horizontal collision behavior of the Popup.
|
|
63
|
-
*/
|
|
64
|
-
horizontal: CollisionType;
|
|
65
|
-
/**
|
|
66
|
-
* Defines the vertical collision behavior of the Popup.
|
|
67
|
-
*/
|
|
68
|
-
vertical: CollisionType;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Defines the possible collision behavior when the Popup is not fully visible.
|
|
73
|
-
*
|
|
74
|
-
* The available options are:
|
|
75
|
-
* - `fit`—Moves the Popup horizontally until it is fully displayed in the viewport.
|
|
76
|
-
* - `flip`—Flips the Popup position based on the origin and the position properties.
|
|
77
|
-
* - `none`—The Popup is rendered at its original position.
|
|
78
|
-
*/
|
|
79
|
-
export declare type CollisionType = CollisionType_2;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Defines the expand animation settings for the Popup component.
|
|
83
|
-
*
|
|
84
|
-
* Use this to configure expand type and direction
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* <Popup animation={{ type: 'expand', direction: 'vertical' }} />
|
|
88
|
-
*/
|
|
89
|
-
export declare interface ExpandPopupAnimation {
|
|
90
|
-
/**
|
|
91
|
-
* The type of the animation. Must be 'expand'.
|
|
92
|
-
*/
|
|
93
|
-
type: typeof animationTypes.expand;
|
|
94
|
-
/**
|
|
95
|
-
* The direction of the expand animation. Possible values: 'horizontal', 'vertical'.
|
|
96
|
-
*/
|
|
97
|
-
direction: PopupExpandDirection;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Defines the fade animation settings for the Popup component.
|
|
102
|
-
*
|
|
103
|
-
* Use this to configure fade type. Direction is always 'none'.
|
|
104
|
-
*
|
|
105
|
-
* @example
|
|
106
|
-
* <Popup animation={{ type: 'fade' }} />
|
|
107
|
-
*/
|
|
108
|
-
export declare interface FadePopupAnimation {
|
|
109
|
-
/**
|
|
110
|
-
* The type of the animation. Must be 'fade'.
|
|
111
|
-
*/
|
|
112
|
-
type: typeof animationTypes.fade;
|
|
113
|
-
/**
|
|
114
|
-
* @hidden
|
|
115
|
-
*/
|
|
116
|
-
direction?: PopupNoDirection;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Defines the horizontal and the vertical margin offset of the component.
|
|
121
|
-
*/
|
|
122
|
-
export declare interface Margin extends MarginSettings {
|
|
123
|
-
/**
|
|
124
|
-
* Defines the possible horizontal margin value.
|
|
125
|
-
*/
|
|
126
|
-
horizontal: number;
|
|
127
|
-
/**
|
|
128
|
-
* Defines the possible vertical margin value.
|
|
129
|
-
*/
|
|
130
|
-
vertical: number;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Represents the object of the `MouseDownOutside` Popup event.
|
|
135
|
-
*/
|
|
136
|
-
export declare interface MouseDownOutsideEvent {
|
|
137
|
-
/**
|
|
138
|
-
* An event target.
|
|
139
|
-
*/
|
|
140
|
-
target: PopupHandle;
|
|
141
|
-
/**
|
|
142
|
-
* The event object.
|
|
143
|
-
*/
|
|
144
|
-
event: MouseEvent;
|
|
145
|
-
/**
|
|
146
|
-
* The state of the Popup.
|
|
147
|
-
*/
|
|
148
|
-
state: PopupState;
|
|
149
|
-
/**
|
|
150
|
-
* Indicates if the MouseDown event is triggered over the anchor of the Popup.
|
|
151
|
-
*/
|
|
152
|
-
isAnchorClicked: boolean;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* The offset position of the Popup.
|
|
157
|
-
*/
|
|
158
|
-
export declare interface Offset extends OffsetPosition {
|
|
159
|
-
/**
|
|
160
|
-
* Defines the top position of the Popup.
|
|
161
|
-
*/
|
|
162
|
-
top: number;
|
|
163
|
-
/**
|
|
164
|
-
* Defines the left position of the Popup.
|
|
165
|
-
*/
|
|
166
|
-
left: number;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* The KendoReact Popup component.
|
|
171
|
-
*/
|
|
172
|
-
export declare const Popup: React_2.ForwardRefExoticComponent<PopupProps & React_2.RefAttributes<PopupHandle | null>>;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* The animation settings for the Popup component
|
|
176
|
-
*/
|
|
177
|
-
export declare type PopupAnimation = PopupAnimationBase & (FadePopupAnimation | SlidePopupAnimation | ZoomPopupAnimation | PushPopupAnimation | ExpandPopupAnimation);
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Defines the base animation settings for the Popup component.
|
|
181
|
-
*
|
|
182
|
-
* Includes duration properties for opening and closing animations
|
|
183
|
-
*
|
|
184
|
-
* @example
|
|
185
|
-
* <Popup animation={{ openDuration: 500, closeDuration: 200 }} />
|
|
186
|
-
*/
|
|
187
|
-
export declare interface PopupAnimationBase {
|
|
188
|
-
/**
|
|
189
|
-
* The duration of the opening animation in milliseconds. Defaults to `300ms`.
|
|
190
|
-
*/
|
|
191
|
-
openDuration?: number;
|
|
192
|
-
/**
|
|
193
|
-
* The duration of the closing animation in milliseconds. Defaults to `300ms`.
|
|
194
|
-
*/
|
|
195
|
-
closeDuration?: number;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Represents all possible direction values for Popup animations.
|
|
200
|
-
*
|
|
201
|
-
* Includes directions for slide, zoom, push, expand, and fade animations.
|
|
202
|
-
* Useful for type-safe direction assignment in animation settings.
|
|
203
|
-
*
|
|
204
|
-
* Possible values: 'left', 'right', 'up', 'down', 'in', 'out', 'horizontal', 'vertical', 'none'.
|
|
205
|
-
*/
|
|
206
|
-
export declare type PopupAnimationDirection = NonNullable<FadePopupAnimation['direction'] | SlidePopupAnimation['direction'] | ZoomPopupAnimation['direction'] | PushPopupAnimation['direction'] | ExpandPopupAnimation['direction']>;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* The type representing all possible animation type values.
|
|
210
|
-
*
|
|
211
|
-
* Possible values: 'slide', 'zoom', 'push', 'expand', 'fade'
|
|
212
|
-
*
|
|
213
|
-
* @example
|
|
214
|
-
* <Popup animation={{ type: 'fade' }} />
|
|
215
|
-
*/
|
|
216
|
-
export declare type PopupAnimationType = (typeof animationTypes)[keyof typeof animationTypes];
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* The possible base directions for slide and push animations.
|
|
220
|
-
*
|
|
221
|
-
* Possible values: 'left', 'right', 'up', 'down'.
|
|
222
|
-
*
|
|
223
|
-
* @example
|
|
224
|
-
* <Popup animation={{ direction: 'left' }} />
|
|
225
|
-
*/
|
|
226
|
-
export declare type PopupBaseDirections = 'left' | 'right' | 'up' | 'down';
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Represents the object of the `Close` Popup event.
|
|
230
|
-
*/
|
|
231
|
-
export declare interface PopupCloseEvent {
|
|
232
|
-
/**
|
|
233
|
-
* An event target.
|
|
234
|
-
*/
|
|
235
|
-
target: PopupHandle;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* The possible directions for expand animations.
|
|
240
|
-
*
|
|
241
|
-
* Possible values: 'horizontal', 'vertical'.
|
|
242
|
-
*
|
|
243
|
-
* @example
|
|
244
|
-
* <Popup animation={{ type: 'expand', direction: 'vertical' }} />
|
|
245
|
-
*/
|
|
246
|
-
export declare type PopupExpandDirection = 'horizontal' | 'vertical';
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* The KendoReact PopupHandle component.
|
|
250
|
-
*/
|
|
251
|
-
export declare interface PopupHandle {
|
|
252
|
-
/**
|
|
253
|
-
* Represents the Popup DOM element.
|
|
254
|
-
*/
|
|
255
|
-
element: any;
|
|
256
|
-
/**
|
|
257
|
-
* The props of the PopupHandle component.
|
|
258
|
-
*/
|
|
259
|
-
props: PopupProps;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Represents no direction for fade animation.
|
|
264
|
-
*
|
|
265
|
-
* Possible value: 'none'.
|
|
266
|
-
*
|
|
267
|
-
* @example
|
|
268
|
-
* <Popup animation={{ type: 'fade', direction: 'none' }} />
|
|
269
|
-
*/
|
|
270
|
-
export declare type PopupNoDirection = 'none';
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Represents the object of the `Open` Popup event.
|
|
274
|
-
*/
|
|
275
|
-
export declare interface PopupOpenEvent {
|
|
276
|
-
/**
|
|
277
|
-
* An event target.
|
|
278
|
-
*/
|
|
279
|
-
target: PopupHandle;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Represents the props of the [KendoReact Popup component](https://www.telerik.com/kendo-react-ui/components/popup).
|
|
284
|
-
*/
|
|
285
|
-
export declare interface PopupProps extends PopupSettings {
|
|
286
|
-
/**
|
|
287
|
-
* Controls the Popup animation ([see example](https://www.telerik.com/kendo-react-ui/components/popup/animations)). By default, the opening and closing animations are enabled.
|
|
288
|
-
*
|
|
289
|
-
* @default true
|
|
290
|
-
*
|
|
291
|
-
* @example
|
|
292
|
-
* ```jsx
|
|
293
|
-
* <Popup animate={false} />
|
|
294
|
-
* ```
|
|
295
|
-
*/
|
|
296
|
-
animate?: boolean | PopupAnimation;
|
|
297
|
-
/**
|
|
298
|
-
* Specifies the element which will be used as an anchor ([see example](https://www.telerik.com/kendo-react-ui/components/popup/aligning-positioning)). The Popup opens next to that element.
|
|
299
|
-
*
|
|
300
|
-
* @example
|
|
301
|
-
* ```jsx
|
|
302
|
-
* <Popup anchor={document.getElementById('anchorElement')} />
|
|
303
|
-
* ```
|
|
304
|
-
*/
|
|
305
|
-
anchor?: HTMLElement | null;
|
|
306
|
-
/**
|
|
307
|
-
* Defines the container to which the Popup will be appended. Defaults to [`body`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body).
|
|
308
|
-
* * If set to `null` the Popup will be rendered without React Portal.
|
|
309
|
-
*
|
|
310
|
-
* @default document.body
|
|
311
|
-
*
|
|
312
|
-
* @example
|
|
313
|
-
* ```jsx
|
|
314
|
-
* <Popup appendTo={document.getElementById('container')} />
|
|
315
|
-
* ```
|
|
316
|
-
*/
|
|
317
|
-
appendTo?: HTMLElement | null;
|
|
318
|
-
/**
|
|
319
|
-
* Specifies the pivot point of the anchor ([see example](https://www.telerik.com/kendo-react-ui/components/popup/aligning-positioning)).
|
|
320
|
-
*
|
|
321
|
-
* @example
|
|
322
|
-
* ```jsx
|
|
323
|
-
* <Popup anchorAlign={{ horizontal: 'left', vertical: 'top' }} />
|
|
324
|
-
* ```
|
|
325
|
-
*/
|
|
326
|
-
anchorAlign?: Align;
|
|
327
|
-
/**
|
|
328
|
-
* Configures the collision behavior of the Popup ([see example](https://www.telerik.com/kendo-react-ui/components/popup/viewport-boundary)).
|
|
329
|
-
*
|
|
330
|
-
* @example
|
|
331
|
-
* ```jsx
|
|
332
|
-
* <Popup collision={{ horizontal: 'fit', vertical: 'flip' }} />
|
|
333
|
-
* ```
|
|
334
|
-
*/
|
|
335
|
-
collision?: Collision;
|
|
336
|
-
/**
|
|
337
|
-
* Configures the margin value that will be added to the popup dimensions
|
|
338
|
-
* in pixels and leaves a blank space between the popup and the anchor.
|
|
339
|
-
*
|
|
340
|
-
* @example
|
|
341
|
-
* ```jsx
|
|
342
|
-
* <Popup margin={{ horizontal: 10, vertical: 10 }} />
|
|
343
|
-
* ```
|
|
344
|
-
*/
|
|
345
|
-
margin?: Margin;
|
|
346
|
-
/**
|
|
347
|
-
* Specifies the position mode of the component. By default, the Popup uses absolute positioning.
|
|
348
|
-
* To make the Popup acquire fixed positioning, set this option to `fixed`.
|
|
349
|
-
*
|
|
350
|
-
* @default "absolute"
|
|
351
|
-
*
|
|
352
|
-
* @example
|
|
353
|
-
* ```jsx
|
|
354
|
-
* <Popup positionMode="fixed" />
|
|
355
|
-
* ```
|
|
356
|
-
*/
|
|
357
|
-
positionMode?: PositionMode;
|
|
358
|
-
/**
|
|
359
|
-
* Used to set the document scale when using a [scale transform](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/scale).
|
|
360
|
-
*
|
|
361
|
-
* The document or container scale is required to compute the popup position correctly. Detecting the scale is not reliable and must be set by providing a value for SCALE.
|
|
362
|
-
*
|
|
363
|
-
* > Using this token is not necessary for user-applied browser zoom.
|
|
364
|
-
*
|
|
365
|
-
* @example
|
|
366
|
-
* ```jsx
|
|
367
|
-
* <Popup scale={1.5} />
|
|
368
|
-
* ```
|
|
369
|
-
*/
|
|
370
|
-
scale?: number;
|
|
371
|
-
/**
|
|
372
|
-
* Specifies the pivot point of the Popup ([see example](https://www.telerik.com/kendo-react-ui/components/popup/aligning-positioning)).
|
|
373
|
-
*
|
|
374
|
-
* @example
|
|
375
|
-
* ```jsx
|
|
376
|
-
* <Popup popupAlign={{ horizontal: 'center', vertical: 'bottom' }} />
|
|
377
|
-
* ```
|
|
378
|
-
*/
|
|
379
|
-
popupAlign?: Align;
|
|
380
|
-
/**
|
|
381
|
-
* Specifies the absolute position of the element ([see example](https://www.telerik.com/kendo-react-ui/components/popup/aligning-positioning)). The Popup opens next to that point. The pivot point of the Popup is defined by the `popupAlign` configuration option. The boundary detection is applied by using the window viewport.
|
|
382
|
-
*
|
|
383
|
-
* @example
|
|
384
|
-
* ```jsx
|
|
385
|
-
* <Popup offset={{ left: 100, top: 200 }} />
|
|
386
|
-
* ```
|
|
387
|
-
*/
|
|
388
|
-
offset?: Offset;
|
|
389
|
-
/**
|
|
390
|
-
* Specifies a list of CSS classes that will be added to the internal animated element ([see example](https://www.telerik.com/kendo-react-ui/components/popup/styling)).
|
|
391
|
-
*
|
|
392
|
-
* @example
|
|
393
|
-
* ```jsx
|
|
394
|
-
* <Popup popupClass="custom-popup-class" />
|
|
395
|
-
* ```
|
|
396
|
-
*/
|
|
397
|
-
popupClass?: string | Array<string> | {
|
|
398
|
-
[key: string]: boolean;
|
|
399
|
-
};
|
|
400
|
-
/**
|
|
401
|
-
* Specifies a list of CSS classes that will be added to the Popup element.
|
|
402
|
-
*
|
|
403
|
-
* @example
|
|
404
|
-
* ```jsx
|
|
405
|
-
* <Popup className="custom-class" />
|
|
406
|
-
* ```
|
|
407
|
-
*/
|
|
408
|
-
className?: string | Array<string>;
|
|
409
|
-
/**
|
|
410
|
-
* Specifies the id that will be added to the Popup element.
|
|
411
|
-
*
|
|
412
|
-
* @example
|
|
413
|
-
* ```jsx
|
|
414
|
-
* <Popup id="popup-id" />
|
|
415
|
-
* ```
|
|
416
|
-
*/
|
|
417
|
-
id?: string;
|
|
418
|
-
/**
|
|
419
|
-
* Represents the styles that are applied to the Popup.
|
|
420
|
-
*
|
|
421
|
-
* @example
|
|
422
|
-
* ```jsx
|
|
423
|
-
* <Popup style={{ width: '200px', height: '100px' }} />
|
|
424
|
-
* ```
|
|
425
|
-
*/
|
|
426
|
-
style?: React.CSSProperties;
|
|
427
|
-
/**
|
|
428
|
-
* Fires after the Popup is opened and the opening animation ends.
|
|
429
|
-
*
|
|
430
|
-
* @example
|
|
431
|
-
* ```jsx
|
|
432
|
-
* <Popup onOpen={(event) => console.log('Popup opened')} />
|
|
433
|
-
* ```
|
|
434
|
-
*/
|
|
435
|
-
onOpen?: (event: PopupOpenEvent) => void;
|
|
436
|
-
/**
|
|
437
|
-
* Fires after the Popup is closed.
|
|
438
|
-
*
|
|
439
|
-
* @example
|
|
440
|
-
* ```jsx
|
|
441
|
-
* <Popup onClose={(event) => console.log('Popup closed')} />
|
|
442
|
-
* ```
|
|
443
|
-
*/
|
|
444
|
-
onClose?: (event: PopupCloseEvent) => void;
|
|
445
|
-
/**
|
|
446
|
-
* Fires after the Popup position is set.
|
|
447
|
-
*
|
|
448
|
-
* @example
|
|
449
|
-
* ```jsx
|
|
450
|
-
* <Popup onPosition={(event) => console.log('Popup positioned')} />
|
|
451
|
-
* ```
|
|
452
|
-
*/
|
|
453
|
-
onPosition?: (event: PositionEvent) => void;
|
|
454
|
-
/**
|
|
455
|
-
* Fires when the mousedown event is triggered outside the Popup.
|
|
456
|
-
*
|
|
457
|
-
* @example
|
|
458
|
-
* ```jsx
|
|
459
|
-
* <Popup onMouseDownOutside={(event) => console.log('onMouseDownOutside')} />
|
|
460
|
-
* ```
|
|
461
|
-
*/
|
|
462
|
-
onMouseDownOutside?: (event: MouseDownOutsideEvent) => void;
|
|
463
|
-
/**
|
|
464
|
-
* Controls the Popup visibility ([see example](https://www.telerik.com/kendo-react-ui/components/popup/hidden-state)). Defaults to `false`.
|
|
465
|
-
*
|
|
466
|
-
* @default false
|
|
467
|
-
*
|
|
468
|
-
* @example
|
|
469
|
-
* ```jsx
|
|
470
|
-
* <Popup show={true} />
|
|
471
|
-
* ```
|
|
472
|
-
*/
|
|
473
|
-
show?: boolean;
|
|
474
|
-
/**
|
|
475
|
-
* @hidden
|
|
476
|
-
*
|
|
477
|
-
* If contentKey has changed, the popup will recalculate its position.
|
|
478
|
-
*/
|
|
479
|
-
contentKey?: any;
|
|
480
|
-
/**
|
|
481
|
-
* @hidden
|
|
482
|
-
*/
|
|
483
|
-
children?: React.ReactNode;
|
|
484
|
-
/**
|
|
485
|
-
* @hidden
|
|
486
|
-
*/
|
|
487
|
-
useBaseStyles?: boolean;
|
|
488
|
-
/**
|
|
489
|
-
* @hidden
|
|
490
|
-
*/
|
|
491
|
-
role?: string;
|
|
492
|
-
/**
|
|
493
|
-
* @hidden
|
|
494
|
-
*/
|
|
495
|
-
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
496
|
-
/**
|
|
497
|
-
* @hidden
|
|
498
|
-
*/
|
|
499
|
-
unstyled?: PopupClassStructure;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* The PopupPropsContext. It allows to configure the Popup props from a wrapper component.
|
|
504
|
-
*
|
|
505
|
-
* @example
|
|
506
|
-
* ```jsx-no-run
|
|
507
|
-
* <PopupPropsContext.Provider value={props => ({ ...props, appendTo: document.querySelector('myPopupsContainer') })}>
|
|
508
|
-
* <DropDownList />
|
|
509
|
-
* <Editor />
|
|
510
|
-
* </PopupPropsContext.Provider>
|
|
511
|
-
* ```
|
|
512
|
-
*/
|
|
513
|
-
export declare const PopupPropsContext: React_2.Context<(props: PopupProps) => PopupProps>;
|
|
514
|
-
|
|
515
|
-
/**
|
|
516
|
-
* @hidden
|
|
517
|
-
*/
|
|
518
|
-
declare interface PopupState {
|
|
519
|
-
current: Status;
|
|
520
|
-
previous: Status;
|
|
521
|
-
props: {
|
|
522
|
-
show?: boolean;
|
|
523
|
-
anchor?: HTMLElement | null;
|
|
524
|
-
anchorAlign?: Align;
|
|
525
|
-
appendTo?: HTMLElement | null;
|
|
526
|
-
collision?: Collision;
|
|
527
|
-
popupAlign?: Align;
|
|
528
|
-
className?: string | string[] | {
|
|
529
|
-
[key: string]: boolean;
|
|
530
|
-
};
|
|
531
|
-
popupClass?: string | string[] | {
|
|
532
|
-
[key: string]: boolean;
|
|
533
|
-
};
|
|
534
|
-
style?: React_2.CSSProperties;
|
|
535
|
-
offset?: Offset;
|
|
536
|
-
contentKey?: any;
|
|
537
|
-
};
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* The possible directions for zoom animations.
|
|
542
|
-
*
|
|
543
|
-
* Possible values: 'in', 'out'.
|
|
544
|
-
*
|
|
545
|
-
* @example
|
|
546
|
-
* <Popup animation={{ type: 'zoom', direction: 'in' }} />
|
|
547
|
-
*/
|
|
548
|
-
export declare type PopupZoomDirections = 'in' | 'out';
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
* Represents the object of the `Position` Popup event.
|
|
552
|
-
*/
|
|
553
|
-
export declare interface PositionEvent {
|
|
554
|
-
/**
|
|
555
|
-
* An event target.
|
|
556
|
-
*/
|
|
557
|
-
target: PopupHandle;
|
|
558
|
-
/**
|
|
559
|
-
* Indicates if the position is fitted.
|
|
560
|
-
*/
|
|
561
|
-
fitted: boolean;
|
|
562
|
-
/**
|
|
563
|
-
* Indicates if the position is flipped.
|
|
564
|
-
*/
|
|
565
|
-
flipped: boolean;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
/**
|
|
569
|
-
* The type which defines all possible position modes of the Popup.
|
|
570
|
-
*/
|
|
571
|
-
export declare type PositionMode = PositionMode_2;
|
|
572
|
-
|
|
573
|
-
/**
|
|
574
|
-
* Defines the push animation settings for the Popup component.
|
|
575
|
-
*
|
|
576
|
-
* Use this to configure push type and direction
|
|
577
|
-
*
|
|
578
|
-
* @example
|
|
579
|
-
* <Popup animation={{ type: 'push', direction: 'down' }} />
|
|
580
|
-
*/
|
|
581
|
-
export declare interface PushPopupAnimation {
|
|
582
|
-
/**
|
|
583
|
-
* The type of the animation. Must be 'push'.
|
|
584
|
-
*/
|
|
585
|
-
type: typeof animationTypes.push;
|
|
586
|
-
/**
|
|
587
|
-
* The direction of the push animation. Possible values: 'left', 'right', 'up', 'down'.
|
|
588
|
-
*/
|
|
589
|
-
direction: PopupBaseDirections;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* Defines the slide animation settings for the Popup component.
|
|
594
|
-
*
|
|
595
|
-
* Use this to configure slide type and direction
|
|
596
|
-
*
|
|
597
|
-
* @example
|
|
598
|
-
* <Popup animation={{ type: 'slide', direction: 'left' }} />
|
|
599
|
-
*/
|
|
600
|
-
export declare interface SlidePopupAnimation {
|
|
601
|
-
/**
|
|
602
|
-
* The type of the animation. Default is 'slide'.
|
|
603
|
-
*/
|
|
604
|
-
type?: typeof animationTypes.slide;
|
|
605
|
-
/**
|
|
606
|
-
* The direction of the slide animation. Possible values: 'left', 'right', 'up', 'down'.
|
|
607
|
-
*/
|
|
608
|
-
direction?: PopupBaseDirections;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
declare enum Status {
|
|
612
|
-
hiding = "hiding",
|
|
613
|
-
hidden = "hidden",
|
|
614
|
-
showing = "showing",
|
|
615
|
-
shown = "shown",
|
|
616
|
-
reposition = "reposition"
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
* Defines the zoom animation settings for the Popup component.
|
|
621
|
-
*
|
|
622
|
-
* Use this to configure zoom type and direction
|
|
623
|
-
*
|
|
624
|
-
* @example
|
|
625
|
-
* <Popup animation={{ type: 'zoom', direction: 'in' }} />
|
|
626
|
-
*/
|
|
627
|
-
export declare interface ZoomPopupAnimation {
|
|
628
|
-
/**
|
|
629
|
-
* The type of the animation. Must be 'zoom'.
|
|
630
|
-
*/
|
|
631
|
-
type: typeof animationTypes.zoom;
|
|
632
|
-
/**
|
|
633
|
-
* The direction of the zoom animation. Possible values: 'in', 'out'.
|
|
634
|
-
*/
|
|
635
|
-
direction: PopupZoomDirections;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
export { }
|
|
8
|
+
import { Popup, PopupPropsContext, PopupHandle } from './Popup.js';
|
|
9
|
+
import { PopupProps } from './models/PopupProps.js';
|
|
10
|
+
import { Align } from './models/Align.js';
|
|
11
|
+
import { Collision } from './models/Collision.js';
|
|
12
|
+
import { Offset } from './models/Offset.js';
|
|
13
|
+
import { PopupAnimation, PopupAnimationType, PopupAnimationBase, PopupAnimationDirection, PopupBaseDirections, PopupZoomDirections, PopupExpandDirection, PopupNoDirection, SlidePopupAnimation, ZoomPopupAnimation, FadePopupAnimation, PushPopupAnimation, ExpandPopupAnimation } from './models/PopupAnimation.js';
|
|
14
|
+
import { OpenEvent as PopupOpenEvent, CloseEvent as PopupCloseEvent, MouseDownOutsideEvent, PositionEvent } from './models/Events.js';
|
|
15
|
+
import { Margin } from './models/Margin.js';
|
|
16
|
+
import { CollisionType } from './models/CollisionType.js';
|
|
17
|
+
import { PositionMode } from './models/PositionMode.js';
|
|
18
|
+
export { Popup, PopupHandle, PopupPropsContext, PopupProps, Align, Collision, Offset, PopupAnimation, PopupAnimationType, PopupAnimationBase, PopupAnimationDirection, PopupBaseDirections, PopupZoomDirections, PopupExpandDirection, PopupNoDirection, SlidePopupAnimation, ZoomPopupAnimation, FadePopupAnimation, PushPopupAnimation, ExpandPopupAnimation, Margin, PositionMode, CollisionType, PopupOpenEvent, PopupCloseEvent, PositionEvent, MouseDownOutsideEvent };
|