@steroidsjs/core 3.0.0-beta.44 → 3.0.0-beta.45
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/package.json
CHANGED
|
@@ -12,6 +12,11 @@ export interface IDropDownProps extends IAbsolutePositioningInputProps {
|
|
|
12
12
|
*/
|
|
13
13
|
closeMode?: 'click-away' | 'click-any';
|
|
14
14
|
/**
|
|
15
|
+
* Позволяет управлять отображением указателя
|
|
16
|
+
* @example true
|
|
17
|
+
*/
|
|
18
|
+
hasArrow?: boolean;
|
|
19
|
+
/**
|
|
15
20
|
* Переопределение view React компонента для кастомизациии отображения
|
|
16
21
|
* @example MyCustomView
|
|
17
22
|
*/
|
|
@@ -40,6 +45,7 @@ declare namespace DropDown {
|
|
|
40
45
|
gap: number;
|
|
41
46
|
position: string;
|
|
42
47
|
closeMode: string;
|
|
48
|
+
hasArrow: boolean;
|
|
43
49
|
};
|
|
44
50
|
}
|
|
45
51
|
export default DropDown;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
14
|
if (k2 === undefined) k2 = k;
|
|
4
15
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -82,7 +93,7 @@ function DropDown(props) {
|
|
|
82
93
|
isComponentExist && (
|
|
83
94
|
// TODO Change Portal to global
|
|
84
95
|
React.createElement(TooltipPortalInner_1["default"], null,
|
|
85
|
-
React.createElement(DropDownView, { className: props.className, forwardedRef: forwardedRef, content: props.content, position: position, style: style, calculatePosition: calculatePosition, isComponentVisible: isComponentVisible, onClose: onHide })))));
|
|
96
|
+
React.createElement(DropDownView, __assign({}, props, { className: props.className, forwardedRef: forwardedRef, content: props.content, position: position, style: style, calculatePosition: calculatePosition, isComponentVisible: isComponentVisible, onClose: onHide }))))));
|
|
86
97
|
}
|
|
87
98
|
DropDown.defaultProps = {
|
|
88
99
|
autoPositioning: false,
|
|
@@ -90,6 +101,7 @@ DropDown.defaultProps = {
|
|
|
90
101
|
defaultVisible: false,
|
|
91
102
|
gap: 15,
|
|
92
103
|
position: 'bottom',
|
|
93
|
-
closeMode: 'click-away'
|
|
104
|
+
closeMode: 'click-away',
|
|
105
|
+
hasArrow: true
|
|
94
106
|
};
|
|
95
107
|
exports["default"] = DropDown;
|