@salutejs/plasma-new-hope 0.330.0-canary.1655.16260366082.0 → 0.330.0-canary.1655.16287544308.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/cjs/components/Popup/Popup.js +22 -20
- package/cjs/components/Popup/Popup.js.map +1 -1
- package/cjs/components/Popup/utils/getHandleStyles.js +28 -46
- package/cjs/components/Popup/utils/getHandleStyles.js.map +1 -1
- package/cjs/components/Popup/utils/getRatioBasedOnPlacement.js +2 -0
- package/cjs/components/Popup/utils/getRatioBasedOnPlacement.js.map +1 -1
- package/emotion/cjs/components/Popup/Popup.js +22 -20
- package/emotion/cjs/components/Popup/utils/getHandleStyles.js +52 -45
- package/emotion/es/components/Popup/Popup.js +22 -20
- package/emotion/es/components/Popup/utils/getHandleStyles.js +52 -45
- package/emotion/es/examples/components/Combobox/Combobox.js +7 -0
- package/es/components/Popup/Popup.js +22 -20
- package/es/components/Popup/Popup.js.map +1 -1
- package/es/components/Popup/utils/getHandleStyles.js +28 -46
- package/es/components/Popup/utils/getHandleStyles.js.map +1 -1
- package/es/components/Popup/utils/getRatioBasedOnPlacement.js +2 -0
- package/es/components/Popup/utils/getRatioBasedOnPlacement.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Popup/Popup.js +22 -20
- package/styled-components/cjs/components/Popup/utils/getHandleStyles.js +52 -45
- package/styled-components/cjs/examples/components/Combobox/Combobox.js +0 -15
- package/styled-components/es/components/Popup/Popup.js +22 -20
- package/styled-components/es/components/Popup/utils/getHandleStyles.js +52 -45
- package/types/components/Popup/Popup.d.ts.map +1 -1
- package/types/components/Popup/Popup.types.d.ts +17 -7
- package/types/components/Popup/Popup.types.d.ts.map +1 -1
- package/types/components/Popup/utils/getHandleStyles.d.ts +10 -2
- package/types/components/Popup/utils/getHandleStyles.d.ts.map +1 -1
- package/types/components/Popup/utils/getRatioBasedOnPlacement.d.ts +3 -1
- package/types/components/Popup/utils/getRatioBasedOnPlacement.d.ts.map +1 -1
@@ -1,3 +1,4 @@
|
|
1
|
+
// Объект стилей для handler'а, в котором находится иконка ресайза.
|
1
2
|
"use strict";
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
4
|
value: true
|
@@ -8,54 +9,60 @@ Object.defineProperty(exports, "getHandleStyles", {
|
|
8
9
|
return getHandleStyles;
|
9
10
|
}
|
10
11
|
});
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
case 'm':
|
22
|
-
{
|
23
|
-
return 36;
|
24
|
-
}
|
25
|
-
default:
|
26
|
-
{
|
27
|
-
return 16;
|
28
|
-
}
|
12
|
+
function _define_property(obj, key, value) {
|
13
|
+
if (key in obj) {
|
14
|
+
Object.defineProperty(obj, key, {
|
15
|
+
value: value,
|
16
|
+
enumerable: true,
|
17
|
+
configurable: true,
|
18
|
+
writable: true
|
19
|
+
});
|
20
|
+
} else {
|
21
|
+
obj[key] = value;
|
29
22
|
}
|
23
|
+
return obj;
|
24
|
+
}
|
25
|
+
function _object_spread(target) {
|
26
|
+
for(var i = 1; i < arguments.length; i++){
|
27
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
28
|
+
var ownKeys = Object.keys(source);
|
29
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
30
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
31
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
32
|
+
}));
|
33
|
+
}
|
34
|
+
ownKeys.forEach(function(key) {
|
35
|
+
_define_property(target, key, source[key]);
|
36
|
+
});
|
37
|
+
}
|
38
|
+
return target;
|
39
|
+
}
|
40
|
+
var base = {
|
41
|
+
width: 'auto',
|
42
|
+
height: 'auto',
|
43
|
+
lineHeight: '0'
|
30
44
|
};
|
31
45
|
var getHandleStyles = function() {
|
32
|
-
var iconSize = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 's';
|
33
|
-
var size = getBaseDimension(iconSize);
|
34
|
-
var offset = size / 2;
|
35
46
|
return {
|
36
|
-
topRight: {
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
height: "".concat(size, "px"),
|
57
|
-
top: "-".concat(offset, "px"),
|
58
|
-
left: "-".concat(offset, "px")
|
59
|
-
}
|
47
|
+
topRight: _object_spread({
|
48
|
+
top: '0',
|
49
|
+
right: '0',
|
50
|
+
transform: 'translate(50%, -50%)'
|
51
|
+
}, base),
|
52
|
+
bottomRight: _object_spread({
|
53
|
+
right: '0',
|
54
|
+
bottom: '0',
|
55
|
+
transform: 'translate(50%, 50%)'
|
56
|
+
}, base),
|
57
|
+
bottomLeft: _object_spread({
|
58
|
+
bottom: '0',
|
59
|
+
left: '0',
|
60
|
+
transform: 'translate(-50%, 50%)'
|
61
|
+
}, base),
|
62
|
+
topLeft: _object_spread({
|
63
|
+
top: '0',
|
64
|
+
left: '0',
|
65
|
+
transform: 'translate(-50%, -50%)'
|
66
|
+
}, base)
|
60
67
|
};
|
61
68
|
};
|
@@ -1,16 +1 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
3
|
-
value: true
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "Combobox", {
|
6
|
-
enumerable: true,
|
7
|
-
get: function() {
|
8
|
-
return Combobox;
|
9
|
-
}
|
10
|
-
});
|
11
|
-
var _engines = require("../../../engines");
|
12
|
-
var _ = require("../../../../es");
|
13
|
-
var _Comboboxconfig = require("./Combobox.config");
|
14
|
-
var mergedConfig = (0, _engines.mergeConfig)(_.comboboxNewConfig, _Comboboxconfig.config);
|
15
|
-
var ComboboxComponent = (0, _engines.component)(mergedConfig);
|
16
|
-
var Combobox = ComboboxComponent;
|
@@ -190,7 +190,7 @@ export var handlePosition = function(placement, offset) {
|
|
190
190
|
"draggable",
|
191
191
|
"resizable"
|
192
192
|
]);
|
193
|
-
var _resizable_hiddenIcons, _resizable_hiddenIcons1, _resizable_hiddenIcons2, _resizable_hiddenIcons3;
|
193
|
+
var _resizable_hiddenIcons, _resizable_icons, _resizable_hiddenIcons1, _resizable_icons1, _resizable_hiddenIcons2, _resizable_icons2, _resizable_hiddenIcons3, _resizable_icons3;
|
194
194
|
var innerIsOpen = isOpen || opened;
|
195
195
|
var resizable = typeof outerResizable === 'boolean' ? {
|
196
196
|
disabled: !outerResizable
|
@@ -211,6 +211,16 @@ export var handlePosition = function(placement, offset) {
|
|
211
211
|
return null;
|
212
212
|
}
|
213
213
|
var cls = cx(className, (animationInfo === null || animationInfo === void 0 ? void 0 : animationInfo.endAnimation) ? classes.endAnimation : '', (animationInfo === null || animationInfo === void 0 ? void 0 : animationInfo.endTransition) ? classes.endTransition : '');
|
214
|
+
var handleResizeStart = function() {
|
215
|
+
if ((resizableContainer === null || resizableContainer === void 0 ? void 0 : resizableContainer.current) && resizableContainer.current.resizable) {
|
216
|
+
resizableContainer.current.resizable.classList.toggle(classes.resizableContainerNoSelect);
|
217
|
+
}
|
218
|
+
};
|
219
|
+
var handleResizeStop = function() {
|
220
|
+
if ((resizableContainer === null || resizableContainer === void 0 ? void 0 : resizableContainer.current) && resizableContainer.current.resizable) {
|
221
|
+
resizableContainer.current.resizable.classList.toggle(classes.resizableContainerNoSelect);
|
222
|
+
}
|
223
|
+
};
|
214
224
|
var rootNode = /*#__PURE__*/ React.createElement(Root, {
|
215
225
|
className: cls
|
216
226
|
}, overlay, /*#__PURE__*/ React.createElement(PopupRoot, _object_spread({
|
@@ -235,40 +245,32 @@ export var handlePosition = function(placement, offset) {
|
|
235
245
|
minHeight: resizable === null || resizable === void 0 ? void 0 : resizable.minHeight,
|
236
246
|
maxWidth: resizable === null || resizable === void 0 ? void 0 : resizable.maxWidth,
|
237
247
|
maxHeight: resizable === null || resizable === void 0 ? void 0 : resizable.maxHeight,
|
238
|
-
onResizeStart:
|
239
|
-
|
240
|
-
resizableContainer.current.resizable.classList.toggle(classes.resizableContainerNoSelect);
|
241
|
-
}
|
242
|
-
},
|
243
|
-
onResizeStop: function() {
|
244
|
-
if ((resizableContainer === null || resizableContainer === void 0 ? void 0 : resizableContainer.current) && resizableContainer.current.resizable) {
|
245
|
-
resizableContainer.current.resizable.classList.toggle(classes.resizableContainerNoSelect);
|
246
|
-
}
|
247
|
-
},
|
248
|
+
onResizeStart: handleResizeStart,
|
249
|
+
onResizeStop: handleResizeStop,
|
248
250
|
handleComponent: {
|
249
|
-
topRight: (resizable === null || resizable === void 0 ? void 0 : (_resizable_hiddenIcons = resizable.hiddenIcons) === null || _resizable_hiddenIcons === void 0 ? void 0 : _resizable_hiddenIcons.includes('top-right')) ? undefined : /*#__PURE__*/ React.createElement(IconResizeDiagonalStyled, {
|
251
|
+
topRight: (resizable === null || resizable === void 0 ? void 0 : (_resizable_hiddenIcons = resizable.hiddenIcons) === null || _resizable_hiddenIcons === void 0 ? void 0 : _resizable_hiddenIcons.includes('top-right')) ? undefined : /*#__PURE__*/ React.createElement(React.Fragment, null, (resizable === null || resizable === void 0 ? void 0 : (_resizable_icons = resizable.icons) === null || _resizable_icons === void 0 ? void 0 : _resizable_icons.topRight) || /*#__PURE__*/ React.createElement(IconResizeDiagonalStyled, {
|
250
252
|
className: classes.resizableTopRightIcon,
|
251
253
|
color: "inherit",
|
252
254
|
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
253
|
-
}),
|
254
|
-
bottomRight: (resizable === null || resizable === void 0 ? void 0 : (_resizable_hiddenIcons1 = resizable.hiddenIcons) === null || _resizable_hiddenIcons1 === void 0 ? void 0 : _resizable_hiddenIcons1.includes('bottom-right')) ? undefined : /*#__PURE__*/ React.createElement(IconResizeDiagonalStyled, {
|
255
|
+
})),
|
256
|
+
bottomRight: (resizable === null || resizable === void 0 ? void 0 : (_resizable_hiddenIcons1 = resizable.hiddenIcons) === null || _resizable_hiddenIcons1 === void 0 ? void 0 : _resizable_hiddenIcons1.includes('bottom-right')) ? undefined : /*#__PURE__*/ React.createElement(React.Fragment, null, (resizable === null || resizable === void 0 ? void 0 : (_resizable_icons1 = resizable.icons) === null || _resizable_icons1 === void 0 ? void 0 : _resizable_icons1.bottomRight) || /*#__PURE__*/ React.createElement(IconResizeDiagonalStyled, {
|
255
257
|
className: classes.resizableBottomRightIcon,
|
256
258
|
color: "inherit",
|
257
259
|
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
258
|
-
}),
|
259
|
-
bottomLeft: (resizable === null || resizable === void 0 ? void 0 : (_resizable_hiddenIcons2 = resizable.hiddenIcons) === null || _resizable_hiddenIcons2 === void 0 ? void 0 : _resizable_hiddenIcons2.includes('bottom-left')) ? undefined : /*#__PURE__*/ React.createElement(IconResizeDiagonalStyled, {
|
260
|
+
})),
|
261
|
+
bottomLeft: (resizable === null || resizable === void 0 ? void 0 : (_resizable_hiddenIcons2 = resizable.hiddenIcons) === null || _resizable_hiddenIcons2 === void 0 ? void 0 : _resizable_hiddenIcons2.includes('bottom-left')) ? undefined : /*#__PURE__*/ React.createElement(React.Fragment, null, (resizable === null || resizable === void 0 ? void 0 : (_resizable_icons2 = resizable.icons) === null || _resizable_icons2 === void 0 ? void 0 : _resizable_icons2.bottomLeft) || /*#__PURE__*/ React.createElement(IconResizeDiagonalStyled, {
|
260
262
|
className: classes.resizableBottomLeftIcon,
|
261
263
|
color: "inherit",
|
262
264
|
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
263
|
-
}),
|
264
|
-
topLeft: (resizable === null || resizable === void 0 ? void 0 : (_resizable_hiddenIcons3 = resizable.hiddenIcons) === null || _resizable_hiddenIcons3 === void 0 ? void 0 : _resizable_hiddenIcons3.includes('top-left')) ? undefined : /*#__PURE__*/ React.createElement(IconResizeDiagonalStyled, {
|
265
|
+
})),
|
266
|
+
topLeft: (resizable === null || resizable === void 0 ? void 0 : (_resizable_hiddenIcons3 = resizable.hiddenIcons) === null || _resizable_hiddenIcons3 === void 0 ? void 0 : _resizable_hiddenIcons3.includes('top-left')) ? undefined : /*#__PURE__*/ React.createElement(React.Fragment, null, (resizable === null || resizable === void 0 ? void 0 : (_resizable_icons3 = resizable.icons) === null || _resizable_icons3 === void 0 ? void 0 : _resizable_icons3.topLeft) || /*#__PURE__*/ React.createElement(IconResizeDiagonalStyled, {
|
265
267
|
className: classes.resizableTopLeftIcon,
|
266
268
|
color: "inherit",
|
267
269
|
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
268
|
-
})
|
270
|
+
}))
|
269
271
|
},
|
270
272
|
className: classes.resizableContainer,
|
271
|
-
handleStyles: getHandleStyles(
|
273
|
+
handleStyles: getHandleStyles(),
|
272
274
|
handleWrapperClass: classes.resizableHandleWrapper
|
273
275
|
}, children))));
|
274
276
|
if (typeof frame !== 'string' && frame && frame.current && canUseDOM) {
|
@@ -1,51 +1,58 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
{
|
13
|
-
return 36;
|
14
|
-
}
|
15
|
-
default:
|
16
|
-
{
|
17
|
-
return 16;
|
18
|
-
}
|
1
|
+
// Объект стилей для handler'а, в котором находится иконка ресайза.
|
2
|
+
function _define_property(obj, key, value) {
|
3
|
+
if (key in obj) {
|
4
|
+
Object.defineProperty(obj, key, {
|
5
|
+
value: value,
|
6
|
+
enumerable: true,
|
7
|
+
configurable: true,
|
8
|
+
writable: true
|
9
|
+
});
|
10
|
+
} else {
|
11
|
+
obj[key] = value;
|
19
12
|
}
|
13
|
+
return obj;
|
14
|
+
}
|
15
|
+
function _object_spread(target) {
|
16
|
+
for(var i = 1; i < arguments.length; i++){
|
17
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
18
|
+
var ownKeys = Object.keys(source);
|
19
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
20
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
21
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
22
|
+
}));
|
23
|
+
}
|
24
|
+
ownKeys.forEach(function(key) {
|
25
|
+
_define_property(target, key, source[key]);
|
26
|
+
});
|
27
|
+
}
|
28
|
+
return target;
|
29
|
+
}
|
30
|
+
var base = {
|
31
|
+
width: 'auto',
|
32
|
+
height: 'auto',
|
33
|
+
lineHeight: '0'
|
20
34
|
};
|
21
35
|
export var getHandleStyles = function() {
|
22
|
-
var iconSize = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 's';
|
23
|
-
var size = getBaseDimension(iconSize);
|
24
|
-
var offset = size / 2;
|
25
36
|
return {
|
26
|
-
topRight: {
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
height: "".concat(size, "px"),
|
47
|
-
top: "-".concat(offset, "px"),
|
48
|
-
left: "-".concat(offset, "px")
|
49
|
-
}
|
37
|
+
topRight: _object_spread({
|
38
|
+
top: '0',
|
39
|
+
right: '0',
|
40
|
+
transform: 'translate(50%, -50%)'
|
41
|
+
}, base),
|
42
|
+
bottomRight: _object_spread({
|
43
|
+
right: '0',
|
44
|
+
bottom: '0',
|
45
|
+
transform: 'translate(50%, 50%)'
|
46
|
+
}, base),
|
47
|
+
bottomLeft: _object_spread({
|
48
|
+
bottom: '0',
|
49
|
+
left: '0',
|
50
|
+
transform: 'translate(-50%, 50%)'
|
51
|
+
}, base),
|
52
|
+
topLeft: _object_spread({
|
53
|
+
top: '0',
|
54
|
+
left: '0',
|
55
|
+
transform: 'translate(-50%, -50%)'
|
56
|
+
}, base)
|
50
57
|
};
|
51
58
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAKlD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAM9C,OAAO,KAAK,EAAuB,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAMxG,eAAO,MAAM,cAAc,cACZ,cAAc,UACjB,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAC5C,iBA8DF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,SAAU,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC,
|
1
|
+
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAKlD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAM9C,OAAO,KAAK,EAAuB,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAMxG,eAAO,MAAM,cAAc,cACZ,cAAc,UACjB,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAC5C,iBA8DF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,SAAU,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC,sFAgLhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBAlLQ,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC;;;;CAyLpE,CAAC"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { ReactNode } from 'react';
|
1
2
|
export type PopupPlacementBasic = 'center' | 'top' | 'bottom' | 'right' | 'left';
|
2
3
|
export type PopupPlacementMixed = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
3
4
|
export type PopupPlacement = PopupPlacementBasic | PopupPlacementMixed;
|
@@ -38,11 +39,11 @@ export interface PopupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
38
39
|
/**
|
39
40
|
* Содержимое Popup.
|
40
41
|
*/
|
41
|
-
children?:
|
42
|
+
children?: ReactNode;
|
42
43
|
/**
|
43
44
|
* Соседний элемент для окна в портале.
|
44
45
|
*/
|
45
|
-
overlay?:
|
46
|
+
overlay?: ReactNode;
|
46
47
|
/**
|
47
48
|
* Значение z-index для Popup.
|
48
49
|
*/
|
@@ -72,11 +73,6 @@ export interface PopupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
72
73
|
* Направления для ресайза.
|
73
74
|
*/
|
74
75
|
directions?: ResizeDirections;
|
75
|
-
/**
|
76
|
-
* Скрывать ли иконку для ресайза.
|
77
|
-
* @default false
|
78
|
-
*/
|
79
|
-
hiddenIcons?: PopupPlacementMixed[];
|
80
76
|
/**
|
81
77
|
* Начальный размер окна ресайза.
|
82
78
|
*/
|
@@ -100,11 +96,25 @@ export interface PopupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
100
96
|
* Максимальная высота ресайза в px.
|
101
97
|
*/
|
102
98
|
maxHeight?: number;
|
99
|
+
/**
|
100
|
+
* Кастомные иконки ресайза.
|
101
|
+
*/
|
102
|
+
icons?: {
|
103
|
+
topRight?: ReactNode;
|
104
|
+
bottomRight?: ReactNode;
|
105
|
+
bottomLeft?: ReactNode;
|
106
|
+
topLeft?: ReactNode;
|
107
|
+
};
|
103
108
|
/**
|
104
109
|
* Размер иконки ресайза.
|
105
110
|
* @default s
|
106
111
|
*/
|
107
112
|
iconSize?: 'xs' | 's' | 'm';
|
113
|
+
/**
|
114
|
+
* Скрывать ли иконку для ресайза.
|
115
|
+
* @default false
|
116
|
+
*/
|
117
|
+
hiddenIcons?: PopupPlacementMixed[];
|
108
118
|
};
|
109
119
|
}
|
110
120
|
export interface PopupAnimationInfo {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Popup.types.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AACjF,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,aAAa,CAAC;AAC5F,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;AACvE,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,EAAE,CAAC;AAEhE,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACpC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACpE;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,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
|
6
6
|
right: string;
|
7
|
+
transform: string;
|
8
|
+
lineHeight: string;
|
7
9
|
};
|
8
10
|
bottomRight: {
|
9
11
|
width: string;
|
10
12
|
height: string;
|
11
13
|
right: string;
|
12
14
|
bottom: string;
|
15
|
+
transform: string;
|
16
|
+
lineHeight: string;
|
13
17
|
};
|
14
18
|
bottomLeft: {
|
15
19
|
width: string;
|
16
20
|
height: string;
|
17
21
|
bottom: string;
|
18
22
|
left: string;
|
23
|
+
transform: string;
|
24
|
+
lineHeight: string;
|
19
25
|
};
|
20
26
|
topLeft: {
|
21
27
|
width: string;
|
22
28
|
height: string;
|
23
29
|
top: string;
|
24
30
|
left: string;
|
31
|
+
transform: string;
|
32
|
+
lineHeight: string;
|
25
33
|
};
|
26
34
|
}
|
27
|
-
export declare const getHandleStyles: (
|
35
|
+
export declare const getHandleStyles: () => ReturnType;
|
28
36
|
export {};
|
29
37
|
//# sourceMappingURL=getHandleStyles.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getHandleStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/Popup/utils/getHandleStyles.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"getHandleStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/Popup/utils/getHandleStyles.ts"],"names":[],"mappings":"AACA,UAAU,UAAU;IAChB,QAAQ,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,WAAW,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,UAAU,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,OAAO,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;KACtB,CAAC;CACL;AAQD,eAAO,MAAM,eAAe,QAAO,UAyBjC,CAAC"}
|
@@ -1,3 +1,5 @@
|
|
1
1
|
import type { PopupPlacement } from '../Popup.types';
|
2
|
-
|
2
|
+
type ReturnType = [number, number];
|
3
|
+
export declare const getRatioBasedOnPlacement: (placement: PopupPlacement) => ReturnType;
|
4
|
+
export {};
|
3
5
|
//# sourceMappingURL=getRatioBasedOnPlacement.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getRatioBasedOnPlacement.d.ts","sourceRoot":"","sources":["../../../../src/components/Popup/utils/getRatioBasedOnPlacement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"getRatioBasedOnPlacement.d.ts","sourceRoot":"","sources":["../../../../src/components/Popup/utils/getRatioBasedOnPlacement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,KAAK,UAAU,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnC,eAAO,MAAM,wBAAwB,cAAe,cAAc,KAAG,UA2BpE,CAAC"}
|