@salutejs/plasma-new-hope 0.330.0-canary.1655.16198986399.0 → 0.330.0-canary.2009.16162480074.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/Drawer/Drawer.css +5 -7
- package/cjs/components/Drawer/Drawer.js +1 -1
- package/cjs/components/Drawer/Drawer.js.map +1 -1
- package/cjs/components/Modal/Modal.css +6 -9
- package/cjs/components/Modal/Modal.js +3 -7
- package/cjs/components/Modal/Modal.js.map +1 -1
- package/cjs/components/Modal/Modal.styles.js +4 -6
- package/cjs/components/Modal/Modal.styles.js.map +1 -1
- package/cjs/components/Modal/{Modal.styles_1obtvtw.css → Modal.styles_1gt0sfn.css} +3 -4
- package/cjs/components/Notification/NotificationsProvider.css +3 -7
- package/cjs/components/Popup/Popup.js +3 -65
- package/cjs/components/Popup/Popup.js.map +1 -1
- package/cjs/components/Popup/Popup.styles.js +19 -31
- package/cjs/components/Popup/Popup.styles.js.map +1 -1
- package/cjs/components/Popup/Popup.styles_gq4luz.css +4 -0
- package/cjs/components/Popup/Popup.tokens.js +1 -10
- package/cjs/components/Popup/Popup.tokens.js.map +1 -1
- package/cjs/components/Popup/PopupContext.css +3 -7
- package/cjs/components/Popup/utils/index.js.map +1 -1
- package/cjs/components/TextArea/TextArea.js +8 -22
- package/cjs/components/TextArea/TextArea.js.map +1 -1
- package/cjs/components/TextArea/TextArea.styles.js +64 -101
- package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
- package/cjs/components/TextArea/TextArea.styles_1r7xix5.css +20 -0
- package/cjs/components/TextArea/TextArea.tokens.js +1 -3
- package/cjs/components/TextArea/TextArea.tokens.js.map +1 -1
- package/cjs/components/TextArea/TextArea_e0xkpd.css +1 -0
- package/cjs/components/TextArea/ui/Hint/Hint.css +18 -22
- package/cjs/components/TextArea/variations/_clear/base.js +1 -1
- package/cjs/components/TextArea/variations/_clear/base_16hm89e.css +1 -0
- package/cjs/components/TextArea/variations/_disabled/base.js +1 -1
- package/cjs/components/TextArea/variations/_disabled/base_1bn0zc9.css +1 -0
- package/cjs/components/TextArea/variations/_read-only/base.js +1 -1
- package/cjs/components/TextArea/variations/_read-only/{base_vk912g.css → base_1v0syh0.css} +1 -1
- package/cjs/components/TextField/TextField.js.map +1 -1
- package/cjs/index.css +29 -36
- package/emotion/cjs/components/Drawer/Drawer.js +2 -3
- package/emotion/cjs/components/Modal/Modal.js +4 -8
- package/emotion/cjs/components/Modal/Modal.styles.js +6 -11
- package/emotion/cjs/components/Popup/Popup.js +4 -68
- package/emotion/cjs/components/Popup/Popup.styles.js +8 -22
- package/emotion/cjs/components/Popup/Popup.tokens.js +1 -10
- package/emotion/cjs/components/Popup/utils/index.js +0 -16
- package/emotion/cjs/components/TextArea/TextArea.js +8 -20
- package/emotion/cjs/components/TextArea/TextArea.styles.js +41 -78
- package/emotion/cjs/components/TextArea/TextArea.tokens.js +1 -3
- package/emotion/cjs/components/TextArea/mixins/applyDynamicLabel.js +2 -2
- package/emotion/cjs/components/TextField/TextField.js +1 -1
- package/emotion/cjs/components/_Icon/index.js +0 -4
- package/emotion/es/components/Drawer/Drawer.js +2 -3
- package/emotion/es/components/Modal/Modal.js +5 -9
- package/emotion/es/components/Modal/Modal.styles.js +6 -8
- package/emotion/es/components/Popup/Popup.js +5 -64
- package/emotion/es/components/Popup/Popup.styles.js +8 -16
- package/emotion/es/components/Popup/Popup.tokens.js +1 -10
- package/emotion/es/components/Popup/utils/index.js +0 -3
- package/emotion/es/components/TextArea/TextArea.js +9 -21
- package/emotion/es/components/TextArea/TextArea.styles.js +41 -66
- package/emotion/es/components/TextArea/TextArea.tokens.js +1 -3
- package/emotion/es/components/TextArea/mixins/applyDynamicLabel.js +2 -2
- package/emotion/es/components/TextField/TextField.js +1 -1
- package/emotion/es/components/_Icon/index.js +0 -1
- package/es/components/Drawer/Drawer.css +5 -7
- package/es/components/Drawer/Drawer.js +1 -1
- package/es/components/Drawer/Drawer.js.map +1 -1
- package/es/components/Modal/Modal.css +6 -9
- package/es/components/Modal/Modal.js +6 -10
- package/es/components/Modal/Modal.js.map +1 -1
- package/es/components/Modal/Modal.styles.js +5 -6
- package/es/components/Modal/Modal.styles.js.map +1 -1
- package/es/components/Modal/{Modal.styles_1obtvtw.css → Modal.styles_1gt0sfn.css} +3 -4
- package/es/components/Notification/NotificationsProvider.css +3 -7
- package/es/components/Popup/Popup.js +4 -65
- package/es/components/Popup/Popup.js.map +1 -1
- package/es/components/Popup/Popup.styles.js +20 -30
- package/es/components/Popup/Popup.styles.js.map +1 -1
- package/es/components/Popup/Popup.styles_gq4luz.css +4 -0
- package/es/components/Popup/Popup.tokens.js +1 -10
- package/es/components/Popup/Popup.tokens.js.map +1 -1
- package/es/components/Popup/PopupContext.css +3 -7
- package/es/components/Popup/utils/index.js.map +1 -1
- package/es/components/TextArea/TextArea.js +9 -23
- package/es/components/TextArea/TextArea.js.map +1 -1
- package/es/components/TextArea/TextArea.styles.js +65 -100
- package/es/components/TextArea/TextArea.styles.js.map +1 -1
- package/es/components/TextArea/TextArea.styles_1r7xix5.css +20 -0
- package/es/components/TextArea/TextArea.tokens.js +1 -3
- package/es/components/TextArea/TextArea.tokens.js.map +1 -1
- package/es/components/TextArea/TextArea_e0xkpd.css +1 -0
- package/es/components/TextArea/ui/Hint/Hint.css +18 -22
- package/es/components/TextArea/variations/_clear/base.js +1 -1
- package/es/components/TextArea/variations/_clear/base_16hm89e.css +1 -0
- package/es/components/TextArea/variations/_disabled/base.js +1 -1
- package/es/components/TextArea/variations/_disabled/base_1bn0zc9.css +1 -0
- package/es/components/TextArea/variations/_read-only/base.js +1 -1
- package/es/components/TextArea/variations/_read-only/{base_vk912g.css → base_1v0syh0.css} +1 -1
- package/es/components/TextField/TextField.js.map +1 -1
- package/es/index.css +29 -36
- package/package.json +4 -5
- package/styled-components/cjs/components/Drawer/Drawer.js +2 -3
- package/styled-components/cjs/components/Modal/Modal.js +4 -8
- package/styled-components/cjs/components/Modal/Modal.styles.js +8 -50
- package/styled-components/cjs/components/Popup/Popup.js +4 -68
- package/styled-components/cjs/components/Popup/Popup.styles.js +8 -68
- package/styled-components/cjs/components/Popup/Popup.tokens.js +1 -10
- package/styled-components/cjs/components/Popup/utils/index.js +0 -16
- package/styled-components/cjs/components/TextArea/TextArea.js +7 -19
- package/styled-components/cjs/components/TextArea/TextArea.styles.js +28 -76
- package/styled-components/cjs/components/TextArea/TextArea.tokens.js +1 -3
- package/styled-components/cjs/components/TextArea/mixins/applyDynamicLabel.js +2 -2
- package/styled-components/cjs/components/_Icon/index.js +0 -4
- package/styled-components/es/components/Drawer/Drawer.js +2 -3
- package/styled-components/es/components/Modal/Modal.js +5 -9
- package/styled-components/es/components/Modal/Modal.styles.js +4 -8
- package/styled-components/es/components/Popup/Popup.js +5 -64
- package/styled-components/es/components/Popup/Popup.styles.js +4 -23
- package/styled-components/es/components/Popup/Popup.tokens.js +1 -10
- package/styled-components/es/components/Popup/utils/index.js +0 -3
- package/styled-components/es/components/TextArea/TextArea.js +8 -20
- package/styled-components/es/components/TextArea/TextArea.styles.js +28 -64
- package/styled-components/es/components/TextArea/TextArea.tokens.js +1 -3
- package/styled-components/es/components/TextArea/mixins/applyDynamicLabel.js +2 -2
- package/styled-components/es/components/_Icon/index.js +0 -1
- package/types/components/Breadcrumbs/utils/index.d.ts +1 -1
- package/types/components/Carousel/CarouselOld/Carousel.d.ts +2 -2
- package/types/components/Combobox/ComboboxNew/utils/sizeToIconSize.d.ts +1 -1
- package/types/components/Drawer/Drawer.d.ts +2 -2
- package/types/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.types.d.ts +1 -1
- package/types/components/Drawer/Drawer.types.d.ts.map +1 -1
- package/types/components/Modal/Modal.d.ts +1 -1
- package/types/components/Modal/Modal.d.ts.map +1 -1
- package/types/components/Modal/Modal.styles.d.ts +0 -1
- package/types/components/Modal/Modal.styles.d.ts.map +1 -1
- package/types/components/Popup/Popup.d.ts +1 -1
- package/types/components/Popup/Popup.d.ts.map +1 -1
- package/types/components/Popup/Popup.styles.d.ts +0 -2
- package/types/components/Popup/Popup.styles.d.ts.map +1 -1
- package/types/components/Popup/Popup.tokens.d.ts +0 -9
- package/types/components/Popup/Popup.tokens.d.ts.map +1 -1
- package/types/components/Popup/Popup.types.d.ts +0 -52
- package/types/components/Popup/Popup.types.d.ts.map +1 -1
- package/types/components/Popup/utils/index.d.ts +0 -3
- package/types/components/Popup/utils/index.d.ts.map +1 -1
- package/types/components/Select/utils/sizeToIconSize.d.ts +1 -1
- package/types/components/Table/ui/HeadCell/HeadCell.d.ts +1 -1
- package/types/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.styles.d.ts +1 -10
- package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.tokens.d.ts +0 -2
- package/types/components/TextArea/TextArea.tokens.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.types.d.ts +0 -5
- package/types/components/TextArea/TextArea.types.d.ts.map +1 -1
- package/types/components/TextArea/mixins/applyDynamicLabel.d.ts.map +1 -1
- package/types/components/TextField/TextField.d.ts.map +1 -1
- package/types/components/Tree/utils/sizeToIconSize.d.ts +1 -1
- package/types/components/_Icon/index.d.ts +0 -1
- package/types/components/_Icon/index.d.ts.map +1 -1
- package/cjs/components/Popup/Popup.styles_kpf3dd.css +0 -6
- package/cjs/components/Popup/utils/getHandleStyles.js +0 -58
- package/cjs/components/Popup/utils/getHandleStyles.js.map +0 -1
- package/cjs/components/Popup/utils/getRatioBasedOnPlacement.js +0 -36
- package/cjs/components/Popup/utils/getRatioBasedOnPlacement.js.map +0 -1
- package/cjs/components/Popup/utils/getResizeDirections.js +0 -73
- package/cjs/components/Popup/utils/getResizeDirections.js.map +0 -1
- package/cjs/components/TextArea/TextArea.styles_exqsyh.css +0 -24
- package/cjs/components/TextArea/TextArea_c31ipk.css +0 -1
- package/cjs/components/TextArea/variations/_clear/base_1vo4ba5.css +0 -1
- package/cjs/components/TextArea/variations/_disabled/base_s6ttw.css +0 -1
- package/cjs/components/_Icon/Icon.assets/ResizeDiagonal.js +0 -30
- package/cjs/components/_Icon/Icon.assets/ResizeDiagonal.js.map +0 -1
- package/cjs/components/_Icon/Icons/IconResizeDiagonal.js +0 -30
- package/cjs/components/_Icon/Icons/IconResizeDiagonal.js.map +0 -1
- package/emotion/cjs/components/Popup/utils/getHandleStyles.js +0 -61
- package/emotion/cjs/components/Popup/utils/getRatioBasedOnPlacement.js +0 -54
- package/emotion/cjs/components/Popup/utils/getResizeDirections.js +0 -82
- package/emotion/cjs/components/_Icon/Icon.assets/ResizeDiagonal.js +0 -83
- package/emotion/cjs/components/_Icon/Icons/IconResizeDiagonal.js +0 -86
- package/emotion/es/components/Popup/utils/getHandleStyles.js +0 -51
- package/emotion/es/components/Popup/utils/getRatioBasedOnPlacement.js +0 -44
- package/emotion/es/components/Popup/utils/getResizeDirections.js +0 -72
- package/emotion/es/components/_Icon/Icon.assets/ResizeDiagonal.js +0 -68
- package/emotion/es/components/_Icon/Icons/IconResizeDiagonal.js +0 -71
- package/es/components/Popup/Popup.styles_kpf3dd.css +0 -6
- package/es/components/Popup/utils/getHandleStyles.js +0 -54
- package/es/components/Popup/utils/getHandleStyles.js.map +0 -1
- package/es/components/Popup/utils/getRatioBasedOnPlacement.js +0 -32
- package/es/components/Popup/utils/getRatioBasedOnPlacement.js.map +0 -1
- package/es/components/Popup/utils/getResizeDirections.js +0 -69
- package/es/components/Popup/utils/getResizeDirections.js.map +0 -1
- package/es/components/TextArea/TextArea.styles_exqsyh.css +0 -24
- package/es/components/TextArea/TextArea_c31ipk.css +0 -1
- package/es/components/TextArea/variations/_clear/base_1vo4ba5.css +0 -1
- package/es/components/TextArea/variations/_disabled/base_s6ttw.css +0 -1
- package/es/components/_Icon/Icon.assets/ResizeDiagonal.js +0 -22
- package/es/components/_Icon/Icon.assets/ResizeDiagonal.js.map +0 -1
- package/es/components/_Icon/Icons/IconResizeDiagonal.js +0 -22
- package/es/components/_Icon/Icons/IconResizeDiagonal.js.map +0 -1
- package/styled-components/cjs/components/Popup/utils/getHandleStyles.js +0 -61
- package/styled-components/cjs/components/Popup/utils/getRatioBasedOnPlacement.js +0 -54
- package/styled-components/cjs/components/Popup/utils/getResizeDirections.js +0 -82
- package/styled-components/cjs/components/_Icon/Icon.assets/ResizeDiagonal.js +0 -83
- package/styled-components/cjs/components/_Icon/Icons/IconResizeDiagonal.js +0 -86
- package/styled-components/es/components/Popup/utils/getHandleStyles.js +0 -51
- package/styled-components/es/components/Popup/utils/getRatioBasedOnPlacement.js +0 -44
- package/styled-components/es/components/Popup/utils/getResizeDirections.js +0 -72
- package/styled-components/es/components/_Icon/Icon.assets/ResizeDiagonal.js +0 -68
- package/styled-components/es/components/_Icon/Icons/IconResizeDiagonal.js +0 -71
- package/types/components/Popup/utils/getHandleStyles.d.ts +0 -29
- package/types/components/Popup/utils/getHandleStyles.d.ts.map +0 -1
- package/types/components/Popup/utils/getRatioBasedOnPlacement.d.ts +0 -3
- package/types/components/Popup/utils/getRatioBasedOnPlacement.d.ts.map +0 -1
- package/types/components/Popup/utils/getResizeDirections.d.ts +0 -14
- package/types/components/Popup/utils/getResizeDirections.d.ts.map +0 -1
- package/types/components/_Icon/Icon.assets/ResizeDiagonal.d.ts +0 -4
- package/types/components/_Icon/Icon.assets/ResizeDiagonal.d.ts.map +0 -1
- package/types/components/_Icon/Icons/IconResizeDiagonal.d.ts +0 -4
- package/types/components/_Icon/Icons/IconResizeDiagonal.d.ts.map +0 -1
@@ -1,82 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
3
|
-
value: true
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "getResizeDirections", {
|
6
|
-
enumerable: true,
|
7
|
-
get: function() {
|
8
|
-
return getResizeDirections;
|
9
|
-
}
|
10
|
-
});
|
11
|
-
var getResizeDirections = function(directions) {
|
12
|
-
if (!directions) {
|
13
|
-
return {
|
14
|
-
top: true,
|
15
|
-
right: true,
|
16
|
-
bottom: true,
|
17
|
-
left: true,
|
18
|
-
topRight: true,
|
19
|
-
bottomRight: true,
|
20
|
-
bottomLeft: true,
|
21
|
-
topLeft: true
|
22
|
-
};
|
23
|
-
}
|
24
|
-
var result = {
|
25
|
-
top: false,
|
26
|
-
right: false,
|
27
|
-
bottom: false,
|
28
|
-
left: false,
|
29
|
-
topRight: false,
|
30
|
-
bottomRight: false,
|
31
|
-
bottomLeft: false,
|
32
|
-
topLeft: false
|
33
|
-
};
|
34
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
35
|
-
try {
|
36
|
-
for(var _iterator = directions[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
37
|
-
var dir = _step.value;
|
38
|
-
switch(dir){
|
39
|
-
case 'top':
|
40
|
-
result.top = true;
|
41
|
-
break;
|
42
|
-
case 'right':
|
43
|
-
result.right = true;
|
44
|
-
break;
|
45
|
-
case 'bottom':
|
46
|
-
result.bottom = true;
|
47
|
-
break;
|
48
|
-
case 'left':
|
49
|
-
result.left = true;
|
50
|
-
break;
|
51
|
-
case 'top-right':
|
52
|
-
result.topRight = true;
|
53
|
-
break;
|
54
|
-
case 'top-left':
|
55
|
-
result.topLeft = true;
|
56
|
-
break;
|
57
|
-
case 'bottom-right':
|
58
|
-
result.bottomRight = true;
|
59
|
-
break;
|
60
|
-
case 'bottom-left':
|
61
|
-
result.bottomLeft = true;
|
62
|
-
break;
|
63
|
-
default:
|
64
|
-
break;
|
65
|
-
}
|
66
|
-
}
|
67
|
-
} catch (err) {
|
68
|
-
_didIteratorError = true;
|
69
|
-
_iteratorError = err;
|
70
|
-
} finally{
|
71
|
-
try {
|
72
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
73
|
-
_iterator.return();
|
74
|
-
}
|
75
|
-
} finally{
|
76
|
-
if (_didIteratorError) {
|
77
|
-
throw _iteratorError;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
81
|
-
return result;
|
82
|
-
};
|
@@ -1,83 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
3
|
-
value: true
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "ResizeDiagonal", {
|
6
|
-
enumerable: true,
|
7
|
-
get: function() {
|
8
|
-
return ResizeDiagonal;
|
9
|
-
}
|
10
|
-
});
|
11
|
-
var _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
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;
|
22
|
-
}
|
23
|
-
return obj;
|
24
|
-
}
|
25
|
-
function _interop_require_default(obj) {
|
26
|
-
return obj && obj.__esModule ? obj : {
|
27
|
-
default: obj
|
28
|
-
};
|
29
|
-
}
|
30
|
-
function _object_spread(target) {
|
31
|
-
for(var i = 1; i < arguments.length; i++){
|
32
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
33
|
-
var ownKeys = Object.keys(source);
|
34
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
35
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
36
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
37
|
-
}));
|
38
|
-
}
|
39
|
-
ownKeys.forEach(function(key) {
|
40
|
-
_define_property(target, key, source[key]);
|
41
|
-
});
|
42
|
-
}
|
43
|
-
return target;
|
44
|
-
}
|
45
|
-
function ownKeys(object, enumerableOnly) {
|
46
|
-
var keys = Object.keys(object);
|
47
|
-
if (Object.getOwnPropertySymbols) {
|
48
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
49
|
-
if (enumerableOnly) {
|
50
|
-
symbols = symbols.filter(function(sym) {
|
51
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
52
|
-
});
|
53
|
-
}
|
54
|
-
keys.push.apply(keys, symbols);
|
55
|
-
}
|
56
|
-
return keys;
|
57
|
-
}
|
58
|
-
function _object_spread_props(target, source) {
|
59
|
-
source = source != null ? source : {};
|
60
|
-
if (Object.getOwnPropertyDescriptors) {
|
61
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
62
|
-
} else {
|
63
|
-
ownKeys(Object(source)).forEach(function(key) {
|
64
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
65
|
-
});
|
66
|
-
}
|
67
|
-
return target;
|
68
|
-
}
|
69
|
-
var ResizeDiagonal = function(props) {
|
70
|
-
return /*#__PURE__*/ _react.default.createElement("svg", _object_spread_props(_object_spread({
|
71
|
-
width: "100%",
|
72
|
-
viewBox: "0 0 24 24",
|
73
|
-
fill: "none"
|
74
|
-
}, props), {
|
75
|
-
xmlns: "http://www.w3.org/2000/svg"
|
76
|
-
}), /*#__PURE__*/ _react.default.createElement("path", {
|
77
|
-
d: "M21.5 13.25C21.5985 13.25 21.6961 13.269 21.7871 13.3066C21.8781 13.3443 21.9606 13.4001 22.0303 13.4697C22.1 13.5394 22.1556 13.6218 22.1934 13.7129C22.2311 13.8039 22.25 13.9015 22.25 14C22.25 14.0985 22.2311 14.1961 22.1934 14.2871C22.1556 14.3782 22.1 14.4606 22.0303 14.5303L14.5303 22.0303C14.4606 22.0999 14.3781 22.1557 14.2871 22.1934C14.1961 22.231 14.0985 22.25 14 22.25C13.9015 22.25 13.8039 22.2311 13.7129 22.1934C13.6218 22.1556 13.5394 22.1 13.4697 22.0303C13.4001 21.9606 13.3443 21.8781 13.3066 21.7871C13.269 21.6961 13.25 21.5985 13.25 21.5C13.25 21.4015 13.269 21.3039 13.3066 21.2129C13.3443 21.1219 13.4001 21.0394 13.4697 20.9697L20.9697 13.4697C21.0394 13.4 21.1218 13.3444 21.2129 13.3066C21.3039 13.2689 21.4015 13.25 21.5 13.25Z",
|
78
|
-
fill: "currentColor"
|
79
|
-
}), /*#__PURE__*/ _react.default.createElement("path", {
|
80
|
-
d: "M20 4.99902C20.0985 4.99902 20.1961 5.01892 20.2871 5.05664C20.3782 5.09438 20.4606 5.15 20.5303 5.21973C20.6 5.28938 20.6556 5.37184 20.6934 5.46289C20.7311 5.55392 20.751 5.65146 20.751 5.75C20.751 5.84855 20.7311 5.94607 20.6934 6.03711C20.6556 6.12816 20.6 6.21062 20.5303 6.28027L6.28027 20.5303C6.13955 20.671 5.94901 20.75 5.75 20.75C5.551 20.75 5.36045 20.671 5.21973 20.5303C5.07901 20.3895 5.00001 20.199 5 20C5 19.801 5.07902 19.6105 5.21973 19.4697L19.4697 5.21973C19.5394 5.14999 19.6218 5.09438 19.7129 5.05664C19.8039 5.01891 19.9015 4.99903 20 4.99902Z",
|
81
|
-
fill: "currentColor"
|
82
|
-
}));
|
83
|
-
};
|
@@ -1,86 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
3
|
-
value: true
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "IconResizeDiagonal", {
|
6
|
-
enumerable: true,
|
7
|
-
get: function() {
|
8
|
-
return IconResizeDiagonal;
|
9
|
-
}
|
10
|
-
});
|
11
|
-
var _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
12
|
-
var _ResizeDiagonal = require("../Icon.assets/ResizeDiagonal");
|
13
|
-
var _IconRoot = require("../IconRoot");
|
14
|
-
function _define_property(obj, key, value) {
|
15
|
-
if (key in obj) {
|
16
|
-
Object.defineProperty(obj, key, {
|
17
|
-
value: value,
|
18
|
-
enumerable: true,
|
19
|
-
configurable: true,
|
20
|
-
writable: true
|
21
|
-
});
|
22
|
-
} else {
|
23
|
-
obj[key] = value;
|
24
|
-
}
|
25
|
-
return obj;
|
26
|
-
}
|
27
|
-
function _interop_require_default(obj) {
|
28
|
-
return obj && obj.__esModule ? obj : {
|
29
|
-
default: obj
|
30
|
-
};
|
31
|
-
}
|
32
|
-
function _object_spread(target) {
|
33
|
-
for(var i = 1; i < arguments.length; i++){
|
34
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
35
|
-
var ownKeys = Object.keys(source);
|
36
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
37
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
38
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
39
|
-
}));
|
40
|
-
}
|
41
|
-
ownKeys.forEach(function(key) {
|
42
|
-
_define_property(target, key, source[key]);
|
43
|
-
});
|
44
|
-
}
|
45
|
-
return target;
|
46
|
-
}
|
47
|
-
function _object_without_properties(source, excluded) {
|
48
|
-
if (source == null) return {};
|
49
|
-
var target = _object_without_properties_loose(source, excluded);
|
50
|
-
var key, i;
|
51
|
-
if (Object.getOwnPropertySymbols) {
|
52
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
53
|
-
for(i = 0; i < sourceSymbolKeys.length; i++){
|
54
|
-
key = sourceSymbolKeys[i];
|
55
|
-
if (excluded.indexOf(key) >= 0) continue;
|
56
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
57
|
-
target[key] = source[key];
|
58
|
-
}
|
59
|
-
}
|
60
|
-
return target;
|
61
|
-
}
|
62
|
-
function _object_without_properties_loose(source, excluded) {
|
63
|
-
if (source == null) return {};
|
64
|
-
var target = {};
|
65
|
-
var sourceKeys = Object.keys(source);
|
66
|
-
var key, i;
|
67
|
-
for(i = 0; i < sourceKeys.length; i++){
|
68
|
-
key = sourceKeys[i];
|
69
|
-
if (excluded.indexOf(key) >= 0) continue;
|
70
|
-
target[key] = source[key];
|
71
|
-
}
|
72
|
-
return target;
|
73
|
-
}
|
74
|
-
var IconResizeDiagonal = function(_param) {
|
75
|
-
var _param_size = _param.size, size = _param_size === void 0 ? 's' : _param_size, color = _param.color, className = _param.className, rest = _object_without_properties(_param, [
|
76
|
-
"size",
|
77
|
-
"color",
|
78
|
-
"className"
|
79
|
-
]);
|
80
|
-
return /*#__PURE__*/ _react.default.createElement(_IconRoot.IconRoot, _object_spread({
|
81
|
-
className: className,
|
82
|
-
size: size,
|
83
|
-
color: color,
|
84
|
-
icon: _ResizeDiagonal.ResizeDiagonal
|
85
|
-
}, rest));
|
86
|
-
};
|
@@ -1,51 +0,0 @@
|
|
1
|
-
var getBaseDimension = function(iconSize) {
|
2
|
-
switch(iconSize){
|
3
|
-
case 'xs':
|
4
|
-
{
|
5
|
-
return 16;
|
6
|
-
}
|
7
|
-
case 's':
|
8
|
-
{
|
9
|
-
return 24;
|
10
|
-
}
|
11
|
-
case 'm':
|
12
|
-
{
|
13
|
-
return 36;
|
14
|
-
}
|
15
|
-
default:
|
16
|
-
{
|
17
|
-
return 16;
|
18
|
-
}
|
19
|
-
}
|
20
|
-
};
|
21
|
-
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
|
-
return {
|
26
|
-
topRight: {
|
27
|
-
width: "".concat(size, "px"),
|
28
|
-
height: "".concat(size, "px"),
|
29
|
-
top: "-".concat(offset, "px"),
|
30
|
-
right: "-".concat(offset, "px")
|
31
|
-
},
|
32
|
-
bottomRight: {
|
33
|
-
width: "".concat(size, "px"),
|
34
|
-
height: "".concat(size, "px"),
|
35
|
-
right: "-".concat(offset, "px"),
|
36
|
-
bottom: "-".concat(offset, "px")
|
37
|
-
},
|
38
|
-
bottomLeft: {
|
39
|
-
width: "".concat(size, "px"),
|
40
|
-
height: "".concat(size, "px"),
|
41
|
-
bottom: "-".concat(offset, "px"),
|
42
|
-
left: "-".concat(offset, "px")
|
43
|
-
},
|
44
|
-
topLeft: {
|
45
|
-
width: "".concat(size, "px"),
|
46
|
-
height: "".concat(size, "px"),
|
47
|
-
top: "-".concat(offset, "px"),
|
48
|
-
left: "-".concat(offset, "px")
|
49
|
-
}
|
50
|
-
};
|
51
|
-
};
|
@@ -1,44 +0,0 @@
|
|
1
|
-
export var getRatioBasedOnPlacement = function(placement) {
|
2
|
-
switch(placement){
|
3
|
-
case 'center':
|
4
|
-
{
|
5
|
-
return [
|
6
|
-
2,
|
7
|
-
2
|
8
|
-
];
|
9
|
-
}
|
10
|
-
case 'top':
|
11
|
-
case 'bottom':
|
12
|
-
{
|
13
|
-
return [
|
14
|
-
2,
|
15
|
-
1
|
16
|
-
];
|
17
|
-
}
|
18
|
-
case 'left':
|
19
|
-
case 'right':
|
20
|
-
{
|
21
|
-
return [
|
22
|
-
1,
|
23
|
-
2
|
24
|
-
];
|
25
|
-
}
|
26
|
-
case 'top-left':
|
27
|
-
case 'top-right':
|
28
|
-
case 'bottom-left':
|
29
|
-
case 'bottom-right':
|
30
|
-
{
|
31
|
-
return [
|
32
|
-
1,
|
33
|
-
1
|
34
|
-
];
|
35
|
-
}
|
36
|
-
default:
|
37
|
-
{
|
38
|
-
return [
|
39
|
-
2,
|
40
|
-
2
|
41
|
-
];
|
42
|
-
}
|
43
|
-
}
|
44
|
-
};
|
@@ -1,72 +0,0 @@
|
|
1
|
-
export var getResizeDirections = function(directions) {
|
2
|
-
if (!directions) {
|
3
|
-
return {
|
4
|
-
top: true,
|
5
|
-
right: true,
|
6
|
-
bottom: true,
|
7
|
-
left: true,
|
8
|
-
topRight: true,
|
9
|
-
bottomRight: true,
|
10
|
-
bottomLeft: true,
|
11
|
-
topLeft: true
|
12
|
-
};
|
13
|
-
}
|
14
|
-
var result = {
|
15
|
-
top: false,
|
16
|
-
right: false,
|
17
|
-
bottom: false,
|
18
|
-
left: false,
|
19
|
-
topRight: false,
|
20
|
-
bottomRight: false,
|
21
|
-
bottomLeft: false,
|
22
|
-
topLeft: false
|
23
|
-
};
|
24
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
25
|
-
try {
|
26
|
-
for(var _iterator = directions[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
27
|
-
var dir = _step.value;
|
28
|
-
switch(dir){
|
29
|
-
case 'top':
|
30
|
-
result.top = true;
|
31
|
-
break;
|
32
|
-
case 'right':
|
33
|
-
result.right = true;
|
34
|
-
break;
|
35
|
-
case 'bottom':
|
36
|
-
result.bottom = true;
|
37
|
-
break;
|
38
|
-
case 'left':
|
39
|
-
result.left = true;
|
40
|
-
break;
|
41
|
-
case 'top-right':
|
42
|
-
result.topRight = true;
|
43
|
-
break;
|
44
|
-
case 'top-left':
|
45
|
-
result.topLeft = true;
|
46
|
-
break;
|
47
|
-
case 'bottom-right':
|
48
|
-
result.bottomRight = true;
|
49
|
-
break;
|
50
|
-
case 'bottom-left':
|
51
|
-
result.bottomLeft = true;
|
52
|
-
break;
|
53
|
-
default:
|
54
|
-
break;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
} catch (err) {
|
58
|
-
_didIteratorError = true;
|
59
|
-
_iteratorError = err;
|
60
|
-
} finally{
|
61
|
-
try {
|
62
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
63
|
-
_iterator.return();
|
64
|
-
}
|
65
|
-
} finally{
|
66
|
-
if (_didIteratorError) {
|
67
|
-
throw _iteratorError;
|
68
|
-
}
|
69
|
-
}
|
70
|
-
}
|
71
|
-
return result;
|
72
|
-
};
|
@@ -1,68 +0,0 @@
|
|
1
|
-
function _define_property(obj, key, value) {
|
2
|
-
if (key in obj) {
|
3
|
-
Object.defineProperty(obj, key, {
|
4
|
-
value: value,
|
5
|
-
enumerable: true,
|
6
|
-
configurable: true,
|
7
|
-
writable: true
|
8
|
-
});
|
9
|
-
} else {
|
10
|
-
obj[key] = value;
|
11
|
-
}
|
12
|
-
return obj;
|
13
|
-
}
|
14
|
-
function _object_spread(target) {
|
15
|
-
for(var i = 1; i < arguments.length; i++){
|
16
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
17
|
-
var ownKeys = Object.keys(source);
|
18
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
19
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
20
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
21
|
-
}));
|
22
|
-
}
|
23
|
-
ownKeys.forEach(function(key) {
|
24
|
-
_define_property(target, key, source[key]);
|
25
|
-
});
|
26
|
-
}
|
27
|
-
return target;
|
28
|
-
}
|
29
|
-
function ownKeys(object, enumerableOnly) {
|
30
|
-
var keys = Object.keys(object);
|
31
|
-
if (Object.getOwnPropertySymbols) {
|
32
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
33
|
-
if (enumerableOnly) {
|
34
|
-
symbols = symbols.filter(function(sym) {
|
35
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
36
|
-
});
|
37
|
-
}
|
38
|
-
keys.push.apply(keys, symbols);
|
39
|
-
}
|
40
|
-
return keys;
|
41
|
-
}
|
42
|
-
function _object_spread_props(target, source) {
|
43
|
-
source = source != null ? source : {};
|
44
|
-
if (Object.getOwnPropertyDescriptors) {
|
45
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
46
|
-
} else {
|
47
|
-
ownKeys(Object(source)).forEach(function(key) {
|
48
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
49
|
-
});
|
50
|
-
}
|
51
|
-
return target;
|
52
|
-
}
|
53
|
-
import React from "react";
|
54
|
-
export var ResizeDiagonal = function(props) {
|
55
|
-
return /*#__PURE__*/ React.createElement("svg", _object_spread_props(_object_spread({
|
56
|
-
width: "100%",
|
57
|
-
viewBox: "0 0 24 24",
|
58
|
-
fill: "none"
|
59
|
-
}, props), {
|
60
|
-
xmlns: "http://www.w3.org/2000/svg"
|
61
|
-
}), /*#__PURE__*/ React.createElement("path", {
|
62
|
-
d: "M21.5 13.25C21.5985 13.25 21.6961 13.269 21.7871 13.3066C21.8781 13.3443 21.9606 13.4001 22.0303 13.4697C22.1 13.5394 22.1556 13.6218 22.1934 13.7129C22.2311 13.8039 22.25 13.9015 22.25 14C22.25 14.0985 22.2311 14.1961 22.1934 14.2871C22.1556 14.3782 22.1 14.4606 22.0303 14.5303L14.5303 22.0303C14.4606 22.0999 14.3781 22.1557 14.2871 22.1934C14.1961 22.231 14.0985 22.25 14 22.25C13.9015 22.25 13.8039 22.2311 13.7129 22.1934C13.6218 22.1556 13.5394 22.1 13.4697 22.0303C13.4001 21.9606 13.3443 21.8781 13.3066 21.7871C13.269 21.6961 13.25 21.5985 13.25 21.5C13.25 21.4015 13.269 21.3039 13.3066 21.2129C13.3443 21.1219 13.4001 21.0394 13.4697 20.9697L20.9697 13.4697C21.0394 13.4 21.1218 13.3444 21.2129 13.3066C21.3039 13.2689 21.4015 13.25 21.5 13.25Z",
|
63
|
-
fill: "currentColor"
|
64
|
-
}), /*#__PURE__*/ React.createElement("path", {
|
65
|
-
d: "M20 4.99902C20.0985 4.99902 20.1961 5.01892 20.2871 5.05664C20.3782 5.09438 20.4606 5.15 20.5303 5.21973C20.6 5.28938 20.6556 5.37184 20.6934 5.46289C20.7311 5.55392 20.751 5.65146 20.751 5.75C20.751 5.84855 20.7311 5.94607 20.6934 6.03711C20.6556 6.12816 20.6 6.21062 20.5303 6.28027L6.28027 20.5303C6.13955 20.671 5.94901 20.75 5.75 20.75C5.551 20.75 5.36045 20.671 5.21973 20.5303C5.07901 20.3895 5.00001 20.199 5 20C5 19.801 5.07902 19.6105 5.21973 19.4697L19.4697 5.21973C19.5394 5.14999 19.6218 5.09438 19.7129 5.05664C19.8039 5.01891 19.9015 4.99903 20 4.99902Z",
|
66
|
-
fill: "currentColor"
|
67
|
-
}));
|
68
|
-
};
|
@@ -1,71 +0,0 @@
|
|
1
|
-
function _define_property(obj, key, value) {
|
2
|
-
if (key in obj) {
|
3
|
-
Object.defineProperty(obj, key, {
|
4
|
-
value: value,
|
5
|
-
enumerable: true,
|
6
|
-
configurable: true,
|
7
|
-
writable: true
|
8
|
-
});
|
9
|
-
} else {
|
10
|
-
obj[key] = value;
|
11
|
-
}
|
12
|
-
return obj;
|
13
|
-
}
|
14
|
-
function _object_spread(target) {
|
15
|
-
for(var i = 1; i < arguments.length; i++){
|
16
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
17
|
-
var ownKeys = Object.keys(source);
|
18
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
19
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
20
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
21
|
-
}));
|
22
|
-
}
|
23
|
-
ownKeys.forEach(function(key) {
|
24
|
-
_define_property(target, key, source[key]);
|
25
|
-
});
|
26
|
-
}
|
27
|
-
return target;
|
28
|
-
}
|
29
|
-
function _object_without_properties(source, excluded) {
|
30
|
-
if (source == null) return {};
|
31
|
-
var target = _object_without_properties_loose(source, excluded);
|
32
|
-
var key, i;
|
33
|
-
if (Object.getOwnPropertySymbols) {
|
34
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
35
|
-
for(i = 0; i < sourceSymbolKeys.length; i++){
|
36
|
-
key = sourceSymbolKeys[i];
|
37
|
-
if (excluded.indexOf(key) >= 0) continue;
|
38
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
39
|
-
target[key] = source[key];
|
40
|
-
}
|
41
|
-
}
|
42
|
-
return target;
|
43
|
-
}
|
44
|
-
function _object_without_properties_loose(source, excluded) {
|
45
|
-
if (source == null) return {};
|
46
|
-
var target = {};
|
47
|
-
var sourceKeys = Object.keys(source);
|
48
|
-
var key, i;
|
49
|
-
for(i = 0; i < sourceKeys.length; i++){
|
50
|
-
key = sourceKeys[i];
|
51
|
-
if (excluded.indexOf(key) >= 0) continue;
|
52
|
-
target[key] = source[key];
|
53
|
-
}
|
54
|
-
return target;
|
55
|
-
}
|
56
|
-
import React from "react";
|
57
|
-
import { ResizeDiagonal } from "../Icon.assets/ResizeDiagonal";
|
58
|
-
import { IconRoot } from "../IconRoot";
|
59
|
-
export var IconResizeDiagonal = function(_param) {
|
60
|
-
var _param_size = _param.size, size = _param_size === void 0 ? 's' : _param_size, color = _param.color, className = _param.className, rest = _object_without_properties(_param, [
|
61
|
-
"size",
|
62
|
-
"color",
|
63
|
-
"className"
|
64
|
-
]);
|
65
|
-
return /*#__PURE__*/ React.createElement(IconRoot, _object_spread({
|
66
|
-
className: className,
|
67
|
-
size: size,
|
68
|
-
color: color,
|
69
|
-
icon: ResizeDiagonal
|
70
|
-
}, rest));
|
71
|
-
};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
.bvkpf6n .draggable-popup-wrapper{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab;}.bvkpf6n .dragging-popup-wrapper{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing;}.bvkpf6n .resizable-container-no-select{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none;}
|
2
|
-
|
3
|
-
.s5u7tqa{width:0;}
|
4
|
-
.p1f40oul{position:relative;max-width:100%;pointer-events:all;}
|
5
|
-
.p1ug7bn2{position:var(--p1ug7bn2-0);z-index:var(--p1ug7bn2-1);left:var(--p1ug7bn2-2);right:var(--p1ug7bn2-3);top:var(--p1ug7bn2-4);bottom:var(--p1ug7bn2-5);-webkit-transform:var(--p1ug7bn2-6);-ms-transform:var(--p1ug7bn2-6);transform:var(--p1ug7bn2-6);}
|
6
|
-
.i10c9529{color:var(--text-secondary);}.i10c9529:hover{color:var(--text-secondary-hover);}.i10c9529:active{color:var(--text-secondary-active);}.i10c9529.resizable-top-right-icon{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.i10c9529.resizable-bottom-right-icon{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}.i10c9529.resizable-bottom-left-icon{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.i10c9529.resizable-top-left-icon{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
|
@@ -1,54 +0,0 @@
|
|
1
|
-
var getBaseDimension = function getBaseDimension(iconSize) {
|
2
|
-
switch (iconSize) {
|
3
|
-
case 'xs':
|
4
|
-
{
|
5
|
-
return 16;
|
6
|
-
}
|
7
|
-
case 's':
|
8
|
-
{
|
9
|
-
return 24;
|
10
|
-
}
|
11
|
-
case 'm':
|
12
|
-
{
|
13
|
-
return 36;
|
14
|
-
}
|
15
|
-
default:
|
16
|
-
{
|
17
|
-
return 16;
|
18
|
-
}
|
19
|
-
}
|
20
|
-
};
|
21
|
-
var getHandleStyles = function getHandleStyles() {
|
22
|
-
var iconSize = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 's';
|
23
|
-
var size = getBaseDimension(iconSize);
|
24
|
-
var offset = size / 2;
|
25
|
-
return {
|
26
|
-
topRight: {
|
27
|
-
width: "".concat(size, "px"),
|
28
|
-
height: "".concat(size, "px"),
|
29
|
-
top: "-".concat(offset, "px"),
|
30
|
-
right: "-".concat(offset, "px")
|
31
|
-
},
|
32
|
-
bottomRight: {
|
33
|
-
width: "".concat(size, "px"),
|
34
|
-
height: "".concat(size, "px"),
|
35
|
-
right: "-".concat(offset, "px"),
|
36
|
-
bottom: "-".concat(offset, "px")
|
37
|
-
},
|
38
|
-
bottomLeft: {
|
39
|
-
width: "".concat(size, "px"),
|
40
|
-
height: "".concat(size, "px"),
|
41
|
-
bottom: "-".concat(offset, "px"),
|
42
|
-
left: "-".concat(offset, "px")
|
43
|
-
},
|
44
|
-
topLeft: {
|
45
|
-
width: "".concat(size, "px"),
|
46
|
-
height: "".concat(size, "px"),
|
47
|
-
top: "-".concat(offset, "px"),
|
48
|
-
left: "-".concat(offset, "px")
|
49
|
-
}
|
50
|
-
};
|
51
|
-
};
|
52
|
-
|
53
|
-
export { getHandleStyles };
|
54
|
-
//# sourceMappingURL=getHandleStyles.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getHandleStyles.js","sources":["../../../../src/components/Popup/utils/getHandleStyles.ts"],"sourcesContent":["interface ReturnData {\n topRight: {\n width: string;\n height: string;\n top: string;\n right: string;\n };\n bottomRight: {\n width: string;\n height: string;\n right: string;\n bottom: string;\n };\n bottomLeft: {\n width: string;\n height: string;\n bottom: string;\n left: string;\n };\n topLeft: {\n width: string;\n height: string;\n top: string;\n left: string;\n };\n}\n\nconst getBaseDimension = (iconSize?: 'xs' | 's' | 'm'): number => {\n switch (iconSize) {\n case 'xs': {\n return 16;\n }\n case 's': {\n return 24;\n }\n case 'm': {\n return 36;\n }\n default: {\n return 16;\n }\n }\n};\n\nexport const getHandleStyles = (iconSize: 'xs' | 's' | 'm' = 's'): ReturnData => {\n const size = getBaseDimension(iconSize);\n const offset = size / 2;\n\n return {\n topRight: {\n width: `${size}px`,\n height: `${size}px`,\n top: `-${offset}px`,\n right: `-${offset}px`,\n },\n bottomRight: {\n width: `${size}px`,\n height: `${size}px`,\n right: `-${offset}px`,\n bottom: `-${offset}px`,\n },\n bottomLeft: {\n width: `${size}px`,\n height: `${size}px`,\n bottom: `-${offset}px`,\n left: `-${offset}px`,\n },\n topLeft: {\n width: `${size}px`,\n height: `${size}px`,\n top: `-${offset}px`,\n left: `-${offset}px`,\n },\n };\n};\n"],"names":["getBaseDimension","iconSize","getHandleStyles","arguments","length","undefined","size","offset","topRight","width","concat","height","top","right","bottomRight","bottom","bottomLeft","left","topLeft"],"mappings":"AA2BA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,QAA2B,EAAa;AAC9D,EAAA,QAAQA,QAAQ;AACZ,IAAA,KAAK,IAAI;AAAE,MAAA;AACP,QAAA,OAAO,EAAE,CAAA;AACb,OAAA;AACA,IAAA,KAAK,GAAG;AAAE,MAAA;AACN,QAAA,OAAO,EAAE,CAAA;AACb,OAAA;AACA,IAAA,KAAK,GAAG;AAAE,MAAA;AACN,QAAA,OAAO,EAAE,CAAA;AACb,OAAA;AACA,IAAA;AAAS,MAAA;AACL,QAAA,OAAO,EAAE,CAAA;AACb,OAAA;AACJ,GAAA;AACJ,CAAC,CAAA;IAEYC,eAAe,GAAG,SAAlBA,eAAeA,GAAqD;AAAA,EAAA,IAAjDD,QAA0B,GAAAE,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,GAAG,CAAA;AAC5D,EAAA,IAAMG,IAAI,GAAGN,gBAAgB,CAACC,QAAQ,CAAC,CAAA;AACvC,EAAA,IAAMM,MAAM,GAAGD,IAAI,GAAG,CAAC,CAAA;EAEvB,OAAO;AACHE,IAAAA,QAAQ,EAAE;AACNC,MAAAA,KAAK,EAAAC,EAAAA,CAAAA,MAAA,CAAKJ,IAAI,EAAI,IAAA,CAAA;AAClBK,MAAAA,MAAM,EAAAD,EAAAA,CAAAA,MAAA,CAAKJ,IAAI,EAAI,IAAA,CAAA;AACnBM,MAAAA,GAAG,EAAAF,GAAAA,CAAAA,MAAA,CAAMH,MAAM,EAAI,IAAA,CAAA;MACnBM,KAAK,EAAA,GAAA,CAAAH,MAAA,CAAMH,MAAM,EAAA,IAAA,CAAA;KACpB;AACDO,IAAAA,WAAW,EAAE;AACTL,MAAAA,KAAK,EAAAC,EAAAA,CAAAA,MAAA,CAAKJ,IAAI,EAAI,IAAA,CAAA;AAClBK,MAAAA,MAAM,EAAAD,EAAAA,CAAAA,MAAA,CAAKJ,IAAI,EAAI,IAAA,CAAA;AACnBO,MAAAA,KAAK,EAAAH,GAAAA,CAAAA,MAAA,CAAMH,MAAM,EAAI,IAAA,CAAA;MACrBQ,MAAM,EAAA,GAAA,CAAAL,MAAA,CAAMH,MAAM,EAAA,IAAA,CAAA;KACrB;AACDS,IAAAA,UAAU,EAAE;AACRP,MAAAA,KAAK,EAAAC,EAAAA,CAAAA,MAAA,CAAKJ,IAAI,EAAI,IAAA,CAAA;AAClBK,MAAAA,MAAM,EAAAD,EAAAA,CAAAA,MAAA,CAAKJ,IAAI,EAAI,IAAA,CAAA;AACnBS,MAAAA,MAAM,EAAAL,GAAAA,CAAAA,MAAA,CAAMH,MAAM,EAAI,IAAA,CAAA;MACtBU,IAAI,EAAA,GAAA,CAAAP,MAAA,CAAMH,MAAM,EAAA,IAAA,CAAA;KACnB;AACDW,IAAAA,OAAO,EAAE;AACLT,MAAAA,KAAK,EAAAC,EAAAA,CAAAA,MAAA,CAAKJ,IAAI,EAAI,IAAA,CAAA;AAClBK,MAAAA,MAAM,EAAAD,EAAAA,CAAAA,MAAA,CAAKJ,IAAI,EAAI,IAAA,CAAA;AACnBM,MAAAA,GAAG,EAAAF,GAAAA,CAAAA,MAAA,CAAMH,MAAM,EAAI,IAAA,CAAA;MACnBU,IAAI,EAAA,GAAA,CAAAP,MAAA,CAAMH,MAAM,EAAA,IAAA,CAAA;AACpB,KAAA;GACH,CAAA;AACL;;;;"}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
var getRatioBasedOnPlacement = function getRatioBasedOnPlacement(placement) {
|
2
|
-
switch (placement) {
|
3
|
-
case 'center':
|
4
|
-
{
|
5
|
-
return [2, 2];
|
6
|
-
}
|
7
|
-
case 'top':
|
8
|
-
case 'bottom':
|
9
|
-
{
|
10
|
-
return [2, 1];
|
11
|
-
}
|
12
|
-
case 'left':
|
13
|
-
case 'right':
|
14
|
-
{
|
15
|
-
return [1, 2];
|
16
|
-
}
|
17
|
-
case 'top-left':
|
18
|
-
case 'top-right':
|
19
|
-
case 'bottom-left':
|
20
|
-
case 'bottom-right':
|
21
|
-
{
|
22
|
-
return [1, 1];
|
23
|
-
}
|
24
|
-
default:
|
25
|
-
{
|
26
|
-
return [2, 2];
|
27
|
-
}
|
28
|
-
}
|
29
|
-
};
|
30
|
-
|
31
|
-
export { getRatioBasedOnPlacement };
|
32
|
-
//# sourceMappingURL=getRatioBasedOnPlacement.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getRatioBasedOnPlacement.js","sources":["../../../../src/components/Popup/utils/getRatioBasedOnPlacement.ts"],"sourcesContent":["import type { PopupPlacement } from '../Popup.types';\n\nexport const getRatioBasedOnPlacement = (placement: PopupPlacement): [number, number] => {\n switch (placement) {\n case 'center': {\n return [2, 2];\n }\n\n case 'top':\n case 'bottom': {\n return [2, 1];\n }\n\n case 'left':\n case 'right': {\n return [1, 2];\n }\n\n case 'top-left':\n case 'top-right':\n case 'bottom-left':\n case 'bottom-right': {\n return [1, 1];\n }\n\n default: {\n return [2, 2];\n }\n }\n};\n"],"names":["getRatioBasedOnPlacement","placement"],"mappings":"IAEaA,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAIC,SAAyB,EAAuB;AACrF,EAAA,QAAQA,SAAS;AACb,IAAA,KAAK,QAAQ;AAAE,MAAA;AACX,QAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,OAAA;AAEA,IAAA,KAAK,KAAK,CAAA;AACV,IAAA,KAAK,QAAQ;AAAE,MAAA;AACX,QAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,OAAA;AAEA,IAAA,KAAK,MAAM,CAAA;AACX,IAAA,KAAK,OAAO;AAAE,MAAA;AACV,QAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,OAAA;AAEA,IAAA,KAAK,UAAU,CAAA;AACf,IAAA,KAAK,WAAW,CAAA;AAChB,IAAA,KAAK,aAAa,CAAA;AAClB,IAAA,KAAK,cAAc;AAAE,MAAA;AACjB,QAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,OAAA;AAEA,IAAA;AAAS,MAAA;AACL,QAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,OAAA;AACJ,GAAA;AACJ;;;;"}
|