@progress/kendo-react-tooltip 6.1.1 → 7.0.0-develop.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/cdn/js/kendo-react-tooltip.js +5 -1
  3. package/index.d.ts +23 -0
  4. package/index.js +5 -0
  5. package/index.mjs +468 -0
  6. package/package-metadata.d.ts +9 -0
  7. package/package.json +28 -44
  8. package/{dist/es/popover → popover}/Popover.d.ts +4 -0
  9. package/{dist/es/popover → popover}/PopoverActionsBar.d.ts +4 -0
  10. package/{dist/npm/popover → popover}/interfaces/Align.d.ts +4 -0
  11. package/{dist/npm/popover → popover}/interfaces/PopoverActionsBarProps.d.ts +4 -1
  12. package/popover/interfaces/PopoverAnimation.d.ts +10 -0
  13. package/popover/interfaces/PopoverCloseEvent.d.ts +14 -0
  14. package/{dist/npm/popover → popover}/interfaces/PopoverCollision.d.ts +4 -0
  15. package/{dist/npm/popover → popover}/interfaces/PopoverCollisionType.d.ts +5 -1
  16. package/{dist/npm/popover → popover}/interfaces/PopoverMargin.d.ts +4 -0
  17. package/popover/interfaces/PopoverOffset.d.ts +18 -0
  18. package/popover/interfaces/PopoverOpenEvent.d.ts +14 -0
  19. package/popover/interfaces/PopoverPosition.d.ts +13 -0
  20. package/{dist/es/popover → popover}/interfaces/PopoverPositionEvent.d.ts +4 -0
  21. package/popover/interfaces/PopoverPositionMode.d.ts +9 -0
  22. package/{dist/es/popover → popover}/interfaces/PopoverProps.d.ts +4 -1
  23. package/{dist/npm/tooltip → tooltip}/Tooltip.d.ts +5 -1
  24. package/{dist/npm/tooltip → tooltip}/TooltipProps.d.ts +4 -1
  25. package/{dist/es/tooltip → tooltip}/events.d.ts +4 -0
  26. package/{dist/npm/tooltip → tooltip}/utils.d.ts +5 -1
  27. package/about.md +0 -3
  28. package/dist/es/main.d.ts +0 -19
  29. package/dist/es/main.js +0 -4
  30. package/dist/es/package-metadata.d.ts +0 -5
  31. package/dist/es/package-metadata.js +0 -11
  32. package/dist/es/popover/Popover.js +0 -174
  33. package/dist/es/popover/PopoverActionsBar.js +0 -33
  34. package/dist/es/popover/interfaces/Align.d.ts +0 -24
  35. package/dist/es/popover/interfaces/Align.js +0 -1
  36. package/dist/es/popover/interfaces/PopoverActionsBarProps.d.ts +0 -28
  37. package/dist/es/popover/interfaces/PopoverActionsBarProps.js +0 -1
  38. package/dist/es/popover/interfaces/PopoverAnimation.d.ts +0 -6
  39. package/dist/es/popover/interfaces/PopoverAnimation.js +0 -1
  40. package/dist/es/popover/interfaces/PopoverCloseEvent.d.ts +0 -10
  41. package/dist/es/popover/interfaces/PopoverCloseEvent.js +0 -1
  42. package/dist/es/popover/interfaces/PopoverCollision.d.ts +0 -14
  43. package/dist/es/popover/interfaces/PopoverCollision.js +0 -1
  44. package/dist/es/popover/interfaces/PopoverCollisionType.d.ts +0 -10
  45. package/dist/es/popover/interfaces/PopoverCollisionType.js +0 -1
  46. package/dist/es/popover/interfaces/PopoverMargin.d.ts +0 -14
  47. package/dist/es/popover/interfaces/PopoverMargin.js +0 -1
  48. package/dist/es/popover/interfaces/PopoverOffset.d.ts +0 -14
  49. package/dist/es/popover/interfaces/PopoverOffset.js +0 -1
  50. package/dist/es/popover/interfaces/PopoverOpenEvent.d.ts +0 -10
  51. package/dist/es/popover/interfaces/PopoverOpenEvent.js +0 -1
  52. package/dist/es/popover/interfaces/PopoverPosition.d.ts +0 -9
  53. package/dist/es/popover/interfaces/PopoverPosition.js +0 -1
  54. package/dist/es/popover/interfaces/PopoverPositionEvent.js +0 -1
  55. package/dist/es/popover/interfaces/PopoverPositionMode.d.ts +0 -5
  56. package/dist/es/popover/interfaces/PopoverPositionMode.js +0 -1
  57. package/dist/es/popover/interfaces/PopoverProps.js +0 -1
  58. package/dist/es/tooltip/Tooltip.d.ts +0 -85
  59. package/dist/es/tooltip/Tooltip.js +0 -313
  60. package/dist/es/tooltip/TooltipProps.d.ts +0 -109
  61. package/dist/es/tooltip/TooltipProps.js +0 -2
  62. package/dist/es/tooltip/events.js +0 -1
  63. package/dist/es/tooltip/utils.d.ts +0 -24
  64. package/dist/es/tooltip/utils.js +0 -106
  65. package/dist/npm/main.d.ts +0 -19
  66. package/dist/npm/main.js +0 -9
  67. package/dist/npm/package-metadata.d.ts +0 -5
  68. package/dist/npm/package-metadata.js +0 -14
  69. package/dist/npm/popover/Popover.d.ts +0 -15
  70. package/dist/npm/popover/Popover.js +0 -177
  71. package/dist/npm/popover/PopoverActionsBar.d.ts +0 -19
  72. package/dist/npm/popover/PopoverActionsBar.js +0 -36
  73. package/dist/npm/popover/interfaces/Align.js +0 -2
  74. package/dist/npm/popover/interfaces/PopoverActionsBarProps.js +0 -2
  75. package/dist/npm/popover/interfaces/PopoverAnimation.d.ts +0 -6
  76. package/dist/npm/popover/interfaces/PopoverAnimation.js +0 -2
  77. package/dist/npm/popover/interfaces/PopoverCloseEvent.d.ts +0 -10
  78. package/dist/npm/popover/interfaces/PopoverCloseEvent.js +0 -2
  79. package/dist/npm/popover/interfaces/PopoverCollision.js +0 -2
  80. package/dist/npm/popover/interfaces/PopoverCollisionType.js +0 -2
  81. package/dist/npm/popover/interfaces/PopoverMargin.js +0 -2
  82. package/dist/npm/popover/interfaces/PopoverOffset.d.ts +0 -14
  83. package/dist/npm/popover/interfaces/PopoverOffset.js +0 -2
  84. package/dist/npm/popover/interfaces/PopoverOpenEvent.d.ts +0 -10
  85. package/dist/npm/popover/interfaces/PopoverOpenEvent.js +0 -2
  86. package/dist/npm/popover/interfaces/PopoverPosition.d.ts +0 -9
  87. package/dist/npm/popover/interfaces/PopoverPosition.js +0 -2
  88. package/dist/npm/popover/interfaces/PopoverPositionEvent.d.ts +0 -18
  89. package/dist/npm/popover/interfaces/PopoverPositionEvent.js +0 -2
  90. package/dist/npm/popover/interfaces/PopoverPositionMode.d.ts +0 -5
  91. package/dist/npm/popover/interfaces/PopoverPositionMode.js +0 -2
  92. package/dist/npm/popover/interfaces/PopoverProps.d.ts +0 -112
  93. package/dist/npm/popover/interfaces/PopoverProps.js +0 -2
  94. package/dist/npm/tooltip/Tooltip.js +0 -316
  95. package/dist/npm/tooltip/TooltipProps.js +0 -3
  96. package/dist/npm/tooltip/events.d.ts +0 -31
  97. package/dist/npm/tooltip/events.js +0 -2
  98. package/dist/npm/tooltip/utils.js +0 -113
  99. package/dist/systemjs/kendo-react-tooltip.js +0 -1
  100. package/e2e-next/popover.basic.tests.ts +0 -25
  101. package/e2e-next/tooltip.basic.tests.ts +0 -25
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.packageMetadata = void 0;
4
- /**
5
- * @hidden
6
- */
7
- exports.packageMetadata = {
8
- name: '@progress/kendo-react-tooltip',
9
- productName: 'KendoReact',
10
- productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1700065296,
12
- version: '',
13
- licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
14
- };
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- import { PopoverProps } from './interfaces/PopoverProps';
3
- /**
4
- * Represents the Object which is passed to the [`ref`](https://reactjs.org/docs/refs-and-the-dom.html) callback of the Popover component.
5
- */
6
- export interface PopoverHandle {
7
- /**
8
- * The props of the Popover.
9
- */
10
- props: PopoverProps;
11
- }
12
- /**
13
- * Represents the Popover component.
14
- */
15
- export declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<PopoverHandle | null>>;
@@ -1,177 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Popover = void 0;
4
- var React = require("react");
5
- var PropTypes = require("prop-types");
6
- var kendo_react_common_1 = require("@progress/kendo-react-common");
7
- var kendo_react_common_2 = require("@progress/kendo-react-common");
8
- var package_metadata_1 = require("./../package-metadata");
9
- var kendo_react_popup_1 = require("@progress/kendo-react-popup");
10
- var PopoverActionsBar_1 = require("./PopoverActionsBar");
11
- var DEFAULT_POPOVER_ZINDEX = 12000;
12
- var ZINDEX_POPOVER_STEP = 2000;
13
- var CALLOUT_SIZE = 15;
14
- var calloutPositions = {
15
- top: 'k-callout-s',
16
- left: 'k-callout-e',
17
- bottom: 'k-callout-n',
18
- right: 'k-callout-w'
19
- };
20
- var calloutFlippedPositions = {
21
- top: 'k-callout-n',
22
- left: 'k-callout-w',
23
- bottom: 'k-callout-s',
24
- right: 'k-callout-e'
25
- };
26
- var popupAlignByPosition = {
27
- top: { vertical: 'bottom', horizontal: 'center' },
28
- left: { vertical: 'center', horizontal: 'right' },
29
- bottom: { vertical: 'top', horizontal: 'center' },
30
- right: { vertical: 'center', horizontal: 'left' }
31
- };
32
- var anchorAlignByPosition = {
33
- top: { vertical: 'top', horizontal: 'center' },
34
- left: { vertical: 'center', horizontal: 'left' },
35
- bottom: { vertical: 'bottom', horizontal: 'center' },
36
- right: { vertical: 'center', horizontal: 'right' }
37
- };
38
- var getActionBar = function (children) {
39
- return React.Children.toArray(children).filter(function (child) { return child && child.type === PopoverActionsBar_1.PopoverActionsBar; });
40
- };
41
- var getContent = function (children) {
42
- return React.Children.toArray(children).filter(function (child) {
43
- return child && child.type !== PopoverActionsBar_1.PopoverActionsBar;
44
- });
45
- };
46
- /**
47
- * Represents the Popover component.
48
- */
49
- exports.Popover = React.forwardRef(function (props, ref) {
50
- (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
51
- var callout = props.callout, position = props.position, title = props.title, children = props.children, show = props.show, anchor = props.anchor, appendTo = props.appendTo, offset = props.offset, animate = props.animate, positionMode = props.positionMode, scale = props.scale, popoverClass = props.popoverClass, className = props.className, id = props.id, style = props.style, collision = props.collision, contentStyle = props.contentStyle, onPosition = props.onPosition, onClose = props.onClose, onOpen = props.onOpen;
52
- var _a = React.useState(false), flipped = _a[0], setFlipped = _a[1];
53
- var isVertical = position === 'top' || position === 'bottom';
54
- var margin = props.margin || {
55
- vertical: callout && isVertical ? CALLOUT_SIZE : 0,
56
- horizontal: callout && !isVertical ? CALLOUT_SIZE : 0
57
- };
58
- var popupAlign = popupAlignByPosition[position];
59
- var anchorAlign = anchorAlignByPosition[position];
60
- var zindexContext = React.useContext(kendo_react_common_1.ZIndexContext);
61
- var currentZindex = zindexContext ? zindexContext + ZINDEX_POPOVER_STEP : DEFAULT_POPOVER_ZINDEX;
62
- var popoverRef = React.useRef(null);
63
- React.useImperativeHandle(popoverRef, function () {
64
- return { props: props };
65
- });
66
- React.useImperativeHandle(ref, function () { return popoverRef.current; });
67
- var handlePosition = React.useCallback(function (e) {
68
- setTimeout(function () { return setFlipped(e.flipped); });
69
- if (onPosition) {
70
- var event_1 = { target: popoverRef.current, flipped: e.flipped, fitted: e.fitted };
71
- onPosition.call(undefined, event_1);
72
- }
73
- }, [onPosition, setFlipped]);
74
- var handleOpen = React.useCallback(function () {
75
- if (onOpen) {
76
- var event_2 = { target: popoverRef.current };
77
- onOpen.call(undefined, event_2);
78
- }
79
- }, [onOpen]);
80
- var handleClose = React.useCallback(function () {
81
- if (onClose) {
82
- var event_3 = { target: popoverRef.current };
83
- onClose.call(undefined, event_3);
84
- }
85
- }, [onClose]);
86
- var basePopupClass = { 'k-popover': true };
87
- if (Array.isArray(popoverClass)) {
88
- popoverClass.forEach(function (currentClass) { return basePopupClass[currentClass] = true; });
89
- }
90
- else if (typeof popoverClass === 'object') {
91
- Object.keys(popoverClass)
92
- .forEach(function (key) {
93
- basePopupClass[key] = popoverClass[key];
94
- });
95
- }
96
- else if (popoverClass) {
97
- basePopupClass[popoverClass] = true;
98
- }
99
- var calloutClass = flipped ? calloutFlippedPositions[position] : calloutPositions[position];
100
- var popoverContent = React.useMemo(function () {
101
- return (React.createElement(React.Fragment, null,
102
- title && (React.createElement("div", { className: 'k-popover-header' }, title)),
103
- React.createElement("div", { className: "k-popover-body", style: contentStyle }, getContent(children)),
104
- getActionBar(children)));
105
- }, [children, contentStyle, title]);
106
- return (React.createElement(kendo_react_common_1.ZIndexContext.Provider, { value: currentZindex },
107
- React.createElement(kendo_react_popup_1.Popup, { id: id, role: 'tooltip', animate: animate, collision: collision, anchor: anchor, offset: offset, margin: margin, popupAlign: popupAlign, anchorAlign: anchorAlign, appendTo: appendTo, show: show, scale: scale, positionMode: positionMode, style: style, className: className, popupClass: basePopupClass, onOpen: handleOpen, onClose: handleClose, onPosition: handlePosition }, callout && position
108
- ? React.createElement(React.Fragment, null,
109
- React.createElement("div", { className: (0, kendo_react_common_1.classNames)('k-popover-callout', calloutClass) }),
110
- React.createElement("div", { className: 'k-popover-inner' }, popoverContent))
111
- : popoverContent)));
112
- });
113
- var defaultProps = {
114
- callout: true,
115
- position: 'top',
116
- collision: {
117
- horizontal: 'none',
118
- vertical: 'none'
119
- }
120
- };
121
- exports.Popover.propTypes = {
122
- callout: PropTypes.bool,
123
- title: PropTypes.node,
124
- position: PropTypes.oneOf(['top', 'left', 'bottom', 'right']),
125
- show: PropTypes.bool,
126
- animate: PropTypes.oneOfType([
127
- PropTypes.bool,
128
- PropTypes.shape({
129
- openDuration: PropTypes.number,
130
- closeDuration: PropTypes.number
131
- })
132
- ]),
133
- anchor: function (props) {
134
- var anchor = props.anchor;
135
- if (anchor && typeof anchor.nodeType !== 'number') {
136
- return new Error('Invalid prop `anchor` supplied to `Kendo React Popover`. Validation failed.');
137
- }
138
- return null;
139
- },
140
- appendTo: function (props) {
141
- var element = props.appendTo;
142
- if (element && typeof element.nodeType !== 'number') {
143
- return new Error('Invalid prop `appendTo` supplied to `Kendo React Popover`. Validation failed.');
144
- }
145
- return null;
146
- },
147
- positionMode: PropTypes.oneOf([
148
- 'fixed',
149
- 'absolute'
150
- ]),
151
- scale: PropTypes.number,
152
- offset: PropTypes.shape({
153
- left: PropTypes.number,
154
- top: PropTypes.number
155
- }),
156
- children: PropTypes.oneOfType([
157
- PropTypes.element,
158
- PropTypes.node
159
- ]),
160
- className: PropTypes.oneOfType([
161
- PropTypes.string,
162
- PropTypes.arrayOf(PropTypes.string),
163
- PropTypes.object
164
- ]),
165
- id: PropTypes.string,
166
- popoverClass: PropTypes.oneOfType([
167
- PropTypes.string,
168
- PropTypes.arrayOf(PropTypes.string),
169
- PropTypes.object
170
- ]),
171
- style: PropTypes.object,
172
- onClose: PropTypes.func,
173
- onPosition: PropTypes.func,
174
- onOpen: PropTypes.func
175
- };
176
- exports.Popover.defaultProps = defaultProps;
177
- exports.Popover.displayName = 'KendoReactPopover';
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- import { PopoverActionsBarProps } from './interfaces/PopoverActionsBarProps';
3
- /**
4
- * Represents the Object which is passed to the [`ref`](https://reactjs.org/docs/refs-and-the-dom.html) callback of the PopoverActionBar component.
5
- */
6
- export interface PopoverActionsBarHandle {
7
- /**
8
- * The props of the PopoverActionsBar.
9
- */
10
- props: PopoverActionsBarProps;
11
- /**
12
- * The current element or `null` if there is none.
13
- */
14
- element: HTMLDivElement | null;
15
- }
16
- /**
17
- * Represents the PopoverActionsBar component.
18
- */
19
- export declare const PopoverActionsBar: React.ForwardRefExoticComponent<PopoverActionsBarProps & React.RefAttributes<PopoverActionsBarHandle | null>>;
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PopoverActionsBar = void 0;
4
- var React = require("react");
5
- var PropTypes = require("prop-types");
6
- var kendo_react_common_1 = require("@progress/kendo-react-common");
7
- /**
8
- * Represents the PopoverActionsBar component.
9
- */
10
- exports.PopoverActionsBar = React.forwardRef(function (props, ref) {
11
- var _a;
12
- var elementRef = React.useRef(null);
13
- var popoverRef = React.useRef(null);
14
- React.useImperativeHandle(popoverRef, function () {
15
- return { props: props, element: elementRef.current };
16
- });
17
- React.useImperativeHandle(ref, function () { return popoverRef.current; });
18
- return (React.createElement("div", { ref: elementRef, className: (0, kendo_react_common_1.classNames)('k-popover-actions', 'k-actions', (_a = {},
19
- _a["k-actions-".concat(props.alignment)] = props.alignment,
20
- _a["k-actions-".concat(props.orientation)] = props.orientation,
21
- _a)) }, props.children));
22
- });
23
- var defaultProps = {
24
- alignment: 'stretched',
25
- orientation: 'horizontal'
26
- };
27
- exports.PopoverActionsBar.propTypes = {
28
- alignment: PropTypes.oneOf(['start', 'center', 'end', 'stretched']),
29
- orientation: PropTypes.oneOf(['horizontal', 'vertical']),
30
- children: PropTypes.oneOfType([
31
- PropTypes.element,
32
- PropTypes.node
33
- ])
34
- };
35
- exports.PopoverActionsBar.defaultProps = defaultProps;
36
- exports.PopoverActionsBar.displayName = 'KendoReactPopoverActionsBar';
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { PopupAnimation } from '@progress/kendo-react-popup';
2
- /**
3
- * The animation settings of the Popover.
4
- */
5
- export interface PopoverAnimation extends PopupAnimation {
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import { PopoverHandle } from '../Popover';
2
- /**
3
- * Represents the object of the `Close` Popover event.
4
- */
5
- export interface PopoverCloseEvent {
6
- /**
7
- * An event target.
8
- */
9
- target: PopoverHandle;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import { Offset as OffsetBase } from '@progress/kendo-react-popup';
2
- /**
3
- * The offset position of the Popover.
4
- */
5
- export interface PopoverOffset extends OffsetBase {
6
- /**
7
- * Defines the top position of the Popover.
8
- */
9
- top: number;
10
- /**
11
- * Defines the left position of the Popover.
12
- */
13
- left: number;
14
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import { PopoverHandle } from '../Popover';
2
- /**
3
- * Represents the object of the `Open` Popover event.
4
- */
5
- export interface PopoverOpenEvent {
6
- /**
7
- * An event target.
8
- */
9
- target: PopoverHandle;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- /**
2
- * The position of the Popover.
3
- * The available options are:
4
- * - `top`
5
- * - `left`
6
- * - `bottom`
7
- * - `right`
8
- */
9
- export declare type PopoverPosition = 'top' | 'left' | 'bottom' | 'right';
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +0,0 @@
1
- import { PopoverHandle } from '../Popover';
2
- /**
3
- * Represents the object of the `Position` Popover event.
4
- */
5
- export interface PopoverPositionEvent {
6
- /**
7
- * An event target.
8
- */
9
- target: PopoverHandle;
10
- /**
11
- * Indicates if the position is fitted.
12
- */
13
- fitted: boolean;
14
- /**
15
- * Indicates if the position is flipped.
16
- */
17
- flipped: boolean;
18
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { PositionMode as PositionModeBase } from '@progress/kendo-react-popup';
2
- /**
3
- * The type which defines all possible position modes of the Popover.
4
- */
5
- export declare type PopoverPositionMode = PositionModeBase;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,112 +0,0 @@
1
- /// <reference types="react" />
2
- import { PopoverCollision } from './PopoverCollision';
3
- import { PopoverMargin } from './PopoverMargin';
4
- import { PopoverOffset } from './PopoverOffset';
5
- import { PopoverOpenEvent } from './PopoverOpenEvent';
6
- import { PopoverCloseEvent } from './PopoverCloseEvent';
7
- import { PopoverAnimation } from './PopoverAnimation';
8
- import { PopoverPosition } from './PopoverPosition';
9
- import { PopoverPositionEvent } from './PopoverPositionEvent';
10
- import { PopoverPositionMode } from './PopoverPositionMode';
11
- export interface PopoverProps {
12
- /**
13
- * Specifies the title of the Popover component.
14
- */
15
- title?: React.ReactNode;
16
- /**
17
- * Specifies the position of the Popover element relative to the current anchor or offset.
18
- */
19
- position?: PopoverPosition;
20
- /**
21
- * Controls the Popover callout element. If set to `false`, the callout element will not be rendered.
22
- */
23
- callout?: boolean;
24
- /**
25
- * Controls the Popover animation. By default, the opening and closing animations are enabled.
26
- */
27
- animate?: boolean | PopoverAnimation;
28
- /**
29
- * Specifies the element which will be used as an anchor. The Popover opens next to that element.
30
- */
31
- anchor?: HTMLElement | null;
32
- /**
33
- * Defines the container to which the Popover will be appended. Defaults to [`body`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body).
34
- * * If set to `null` the Popover will be rendered without React Portal.
35
- */
36
- appendTo?: HTMLElement | null;
37
- /**
38
- * Configures the collision behavior of the Popover. By default, it's set to `none`.
39
- */
40
- collision?: PopoverCollision;
41
- /**
42
- * Configures the margin value that will be added to the Popover dimensions
43
- * in pixels and leaves a blank space between the Popover and the anchor.
44
- * By default, it's automatically set based on the Popover position prop.
45
- *
46
- */
47
- margin?: PopoverMargin;
48
- /**
49
- * Specifies the position mode of the component. By default, the Popover uses fixed positioning.
50
- * To make the Popover acquire absolute positioning, set this option to `absolute`.
51
- *
52
- * > If you need to support mobile browsers with the zoom option, use the `absolute` positioning of the Popover.
53
- */
54
- positionMode?: PopoverPositionMode;
55
- /**
56
- * Used to set the document scale when using a [scale transform](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/scale).
57
- *
58
- * The document or container scale is required to compute the popover position correctly. Detecting the scale is not reliable and must be set by providing a value for SCALE.
59
- *
60
- * > Using this token is not necessary for user-applied browser zoom.
61
- *
62
- */
63
- scale?: number;
64
- /**
65
- * Specifies the absolute position of the element.
66
- * The Popover opens next to that point. The pivot point of the Popover is defined by the `position` configuration option.
67
- * The boundary detection is applied by using the window viewport.
68
- */
69
- offset?: PopoverOffset;
70
- /**
71
- * Specifies a list of CSS classes that will be added to the internal animated element.
72
- */
73
- popoverClass?: string | Array<string> | {
74
- [key: string]: boolean;
75
- };
76
- /**
77
- * Specifies a list of CSS classes that will be added to the Popover element.
78
- */
79
- className?: string | Array<string>;
80
- /**
81
- * Specifies the id that will be added to the Popover element.
82
- */
83
- id?: string;
84
- /**
85
- * Represents the styles that are applied to the Popover.
86
- */
87
- style?: React.CSSProperties;
88
- /**
89
- * Represents the styles that are applied to the content element of the Popover.
90
- */
91
- contentStyle?: React.CSSProperties;
92
- /**
93
- * Controls the Popover visibility. Defaults to `false`.
94
- */
95
- show?: boolean;
96
- /**
97
- * Fires after the Popover is opened and the opening animation ends.
98
- */
99
- onOpen?: (event: PopoverOpenEvent) => void;
100
- /**
101
- * Fires after the Popover is closed.
102
- */
103
- onClose?: (event: PopoverCloseEvent) => void;
104
- /**
105
- * Fires after the Popover position is set.
106
- */
107
- onPosition?: (event: PopoverPositionEvent) => void;
108
- /**
109
- * @hidden
110
- */
111
- children?: React.ReactNode;
112
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });