@salutejs/plasma-new-hope 0.328.1-canary.2064.16022409838.0 → 0.329.0-canary.1655.16030657846.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 +7 -5
- package/cjs/components/Modal/Modal.css +5 -3
- package/cjs/components/Modal/Modal.js +8 -2
- package/cjs/components/Modal/Modal.js.map +1 -1
- package/cjs/components/Notification/NotificationsProvider.css +7 -3
- package/cjs/components/Popup/Popup.js +63 -4
- package/cjs/components/Popup/Popup.js.map +1 -1
- package/cjs/components/Popup/Popup.styles.js +24 -12
- package/cjs/components/Popup/Popup.styles.js.map +1 -1
- package/cjs/components/Popup/Popup.styles_sejy82.css +6 -0
- package/cjs/components/Popup/Popup.tokens.js +6 -1
- package/cjs/components/Popup/Popup.tokens.js.map +1 -1
- package/cjs/components/Popup/PopupContext.css +7 -3
- package/cjs/components/Popup/utils/getHandleStyles.js +57 -0
- package/cjs/components/Popup/utils/getHandleStyles.js.map +1 -0
- package/cjs/components/Popup/utils/getRatioBasedOnPlacement.js +36 -0
- package/cjs/components/Popup/utils/getRatioBasedOnPlacement.js.map +1 -0
- package/cjs/components/Popup/utils/getResizeDirections.js +73 -0
- package/cjs/components/Popup/utils/getResizeDirections.js.map +1 -0
- package/cjs/components/Popup/utils/index.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/ResizeDiagonal.js +30 -0
- package/cjs/components/_Icon/Icon.assets/ResizeDiagonal.js.map +1 -0
- package/cjs/components/_Icon/Icons/IconResizeDiagonal.js +30 -0
- package/cjs/components/_Icon/Icons/IconResizeDiagonal.js.map +1 -0
- package/cjs/index.css +5 -3
- package/emotion/cjs/components/Modal/Modal.js +9 -3
- package/emotion/cjs/components/Popup/Popup.js +65 -5
- package/emotion/cjs/components/Popup/Popup.styles.js +22 -8
- package/emotion/cjs/components/Popup/Popup.tokens.js +6 -1
- package/emotion/cjs/components/Popup/utils/getHandleStyles.js +60 -0
- package/emotion/cjs/components/Popup/utils/getRatioBasedOnPlacement.js +54 -0
- package/emotion/cjs/components/Popup/utils/getResizeDirections.js +82 -0
- package/emotion/cjs/components/Popup/utils/index.js +16 -0
- package/emotion/cjs/components/_Icon/Icon.assets/ResizeDiagonal.js +83 -0
- package/emotion/cjs/components/_Icon/Icons/IconResizeDiagonal.js +86 -0
- package/emotion/cjs/components/_Icon/index.js +4 -0
- package/emotion/es/components/Modal/Modal.js +9 -3
- package/emotion/es/components/Popup/Popup.js +68 -7
- package/emotion/es/components/Popup/Popup.styles.js +16 -8
- package/emotion/es/components/Popup/Popup.tokens.js +6 -1
- package/emotion/es/components/Popup/utils/getHandleStyles.js +50 -0
- package/emotion/es/components/Popup/utils/getRatioBasedOnPlacement.js +44 -0
- package/emotion/es/components/Popup/utils/getResizeDirections.js +72 -0
- package/emotion/es/components/Popup/utils/index.js +3 -0
- package/emotion/es/components/_Icon/Icon.assets/ResizeDiagonal.js +68 -0
- package/emotion/es/components/_Icon/Icons/IconResizeDiagonal.js +71 -0
- package/emotion/es/components/_Icon/index.js +1 -0
- package/es/components/Drawer/Drawer.css +7 -5
- package/es/components/Modal/Modal.css +5 -3
- package/es/components/Modal/Modal.js +8 -2
- package/es/components/Modal/Modal.js.map +1 -1
- package/es/components/Notification/NotificationsProvider.css +7 -3
- package/es/components/Popup/Popup.js +65 -6
- package/es/components/Popup/Popup.js.map +1 -1
- package/es/components/Popup/Popup.styles.js +23 -13
- package/es/components/Popup/Popup.styles.js.map +1 -1
- package/es/components/Popup/Popup.styles_sejy82.css +6 -0
- package/es/components/Popup/Popup.tokens.js +6 -1
- package/es/components/Popup/Popup.tokens.js.map +1 -1
- package/es/components/Popup/PopupContext.css +7 -3
- package/es/components/Popup/utils/getHandleStyles.js +53 -0
- package/es/components/Popup/utils/getHandleStyles.js.map +1 -0
- package/es/components/Popup/utils/getRatioBasedOnPlacement.js +32 -0
- package/es/components/Popup/utils/getRatioBasedOnPlacement.js.map +1 -0
- package/es/components/Popup/utils/getResizeDirections.js +69 -0
- package/es/components/Popup/utils/getResizeDirections.js.map +1 -0
- package/es/components/Popup/utils/index.js.map +1 -1
- package/es/components/_Icon/Icon.assets/ResizeDiagonal.js +22 -0
- package/es/components/_Icon/Icon.assets/ResizeDiagonal.js.map +1 -0
- package/es/components/_Icon/Icons/IconResizeDiagonal.js +22 -0
- package/es/components/_Icon/Icons/IconResizeDiagonal.js.map +1 -0
- package/es/index.css +5 -3
- package/package.json +3 -2
- package/styled-components/cjs/components/Modal/Modal.js +9 -3
- package/styled-components/cjs/components/Popup/Popup.js +65 -5
- package/styled-components/cjs/components/Popup/Popup.styles.js +65 -8
- package/styled-components/cjs/components/Popup/Popup.tokens.js +6 -1
- package/styled-components/cjs/components/Popup/utils/getHandleStyles.js +60 -0
- package/styled-components/cjs/components/Popup/utils/getRatioBasedOnPlacement.js +54 -0
- package/styled-components/cjs/components/Popup/utils/getResizeDirections.js +82 -0
- package/styled-components/cjs/components/Popup/utils/index.js +16 -0
- package/styled-components/cjs/components/_Icon/Icon.assets/ResizeDiagonal.js +83 -0
- package/styled-components/cjs/components/_Icon/Icons/IconResizeDiagonal.js +86 -0
- package/styled-components/cjs/components/_Icon/index.js +4 -0
- package/styled-components/es/components/Modal/Modal.js +9 -3
- package/styled-components/es/components/Popup/Popup.js +68 -7
- package/styled-components/es/components/Popup/Popup.styles.js +20 -4
- package/styled-components/es/components/Popup/Popup.tokens.js +6 -1
- package/styled-components/es/components/Popup/utils/getHandleStyles.js +50 -0
- package/styled-components/es/components/Popup/utils/getRatioBasedOnPlacement.js +44 -0
- package/styled-components/es/components/Popup/utils/getResizeDirections.js +72 -0
- package/styled-components/es/components/Popup/utils/index.js +3 -0
- package/styled-components/es/components/_Icon/Icon.assets/ResizeDiagonal.js +68 -0
- package/styled-components/es/components/_Icon/Icons/IconResizeDiagonal.js +71 -0
- package/styled-components/es/components/_Icon/index.js +1 -0
- package/types/components/Breadcrumbs/utils/index.d.ts +1 -1
- 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.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 +2 -0
- package/types/components/Popup/Popup.styles.d.ts.map +1 -1
- package/types/components/Popup/Popup.tokens.d.ts +5 -0
- package/types/components/Popup/Popup.tokens.d.ts.map +1 -1
- package/types/components/Popup/Popup.types.d.ts +43 -0
- package/types/components/Popup/Popup.types.d.ts.map +1 -1
- package/types/components/Popup/utils/getHandleStyles.d.ts +29 -0
- package/types/components/Popup/utils/getHandleStyles.d.ts.map +1 -0
- package/types/components/Popup/utils/getRatioBasedOnPlacement.d.ts +3 -0
- package/types/components/Popup/utils/getRatioBasedOnPlacement.d.ts.map +1 -0
- package/types/components/Popup/utils/getResizeDirections.d.ts +14 -0
- package/types/components/Popup/utils/getResizeDirections.d.ts.map +1 -0
- package/types/components/Popup/utils/index.d.ts +3 -0
- 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/Tree/utils/sizeToIconSize.d.ts +1 -1
- package/types/components/_Icon/Icon.assets/ResizeDiagonal.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/ResizeDiagonal.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconResizeDiagonal.d.ts +4 -0
- package/types/components/_Icon/Icons/IconResizeDiagonal.d.ts.map +1 -0
- package/types/components/_Icon/index.d.ts +1 -0
- package/types/components/_Icon/index.d.ts.map +1 -1
- package/cjs/components/Popup/Popup.styles_gq4luz.css +0 -4
- package/es/components/Popup/Popup.styles_gq4luz.css +0 -4
@@ -99,14 +99,17 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
99
99
|
if (n === "Map" || n === "Set") return Array.from(n);
|
100
100
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
101
101
|
}
|
102
|
-
import React, { forwardRef, useRef } from "react";
|
102
|
+
import React, { forwardRef, useRef, useLayoutEffect } from "react";
|
103
103
|
import { useForkRef } from "@salutejs/plasma-core";
|
104
|
+
// import Draggable from 'react-draggable';
|
105
|
+
import { Resizable } from "re-resizable";
|
104
106
|
import { canUseDOM, cx, safeUseId } from "../../utils";
|
105
107
|
import { Portal } from "../Portal";
|
108
|
+
import { getRatioBasedOnPlacement, getResizeDirections, getHandleStyles } from "./utils";
|
106
109
|
import { PopupRoot } from "./PopupRoot";
|
107
110
|
import { usePopup } from "./hooks";
|
108
111
|
import { classes } from "./Popup.tokens";
|
109
|
-
import { StyledPortalContainer } from "./Popup.styles";
|
112
|
+
import { StyledPortalContainer, base, IconResizeDiagonalStyled } from "./Popup.styles";
|
110
113
|
export var handlePosition = function(placement, offset) {
|
111
114
|
var x = '0rem';
|
112
115
|
var y = '0rem';
|
@@ -170,7 +173,7 @@ export var handlePosition = function(placement, offset) {
|
|
170
173
|
0,
|
171
174
|
0
|
172
175
|
] : _param_offset, _param_frame = _param.frame, frame = _param_frame === void 0 ? 'document' : _param_frame, children = _param.children, overlay = _param.overlay, // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
173
|
-
role = _param.role, zIndex = _param.zIndex, popupInfo = _param.popupInfo, _param_withAnimation = _param.withAnimation, withAnimation = _param_withAnimation === void 0 ? false : _param_withAnimation, className = _param.className, rest = _object_without_properties(_param, [
|
176
|
+
role = _param.role, zIndex = _param.zIndex, popupInfo = _param.popupInfo, _param_withAnimation = _param.withAnimation, withAnimation = _param_withAnimation === void 0 ? false : _param_withAnimation, className = _param.className, _param_draggable = _param.draggable, draggable = _param_draggable === void 0 ? false : _param_draggable, handle = _param.handle, resizable = _param.resizable, rest = _object_without_properties(_param, [
|
174
177
|
"id",
|
175
178
|
"isOpen",
|
176
179
|
"opened",
|
@@ -183,8 +186,15 @@ export var handlePosition = function(placement, offset) {
|
|
183
186
|
"zIndex",
|
184
187
|
"popupInfo",
|
185
188
|
"withAnimation",
|
186
|
-
"className"
|
189
|
+
"className",
|
190
|
+
"draggable",
|
191
|
+
"handle",
|
192
|
+
"resizable"
|
187
193
|
]);
|
194
|
+
var resizableDimensions = useRef({
|
195
|
+
width: 0,
|
196
|
+
height: 0
|
197
|
+
});
|
188
198
|
var innerIsOpen = isOpen || opened;
|
189
199
|
var uniqId = safeUseId();
|
190
200
|
var innerId = id || uniqId;
|
@@ -197,10 +207,30 @@ export var handlePosition = function(placement, offset) {
|
|
197
207
|
var portalRef = useRef(null);
|
198
208
|
var contentRef = useRef(null);
|
199
209
|
var innerRef = useForkRef(contentRef, outerRootRef);
|
210
|
+
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 : '');
|
211
|
+
// Хук для получения размеров попапа, которые задаются как минимальные габариты при ресайзе.
|
212
|
+
useLayoutEffect(function() {
|
213
|
+
var _contentRef_current;
|
214
|
+
if (!innerIsOpen) return;
|
215
|
+
var rect = (_contentRef_current = contentRef.current) === null || _contentRef_current === void 0 ? void 0 : _contentRef_current.getBoundingClientRect();
|
216
|
+
if (rect) {
|
217
|
+
resizableDimensions.current = {
|
218
|
+
width: rect.width,
|
219
|
+
height: rect.height
|
220
|
+
};
|
221
|
+
}
|
222
|
+
return function() {
|
223
|
+
resizableDimensions.current = {
|
224
|
+
width: 0,
|
225
|
+
height: 0
|
226
|
+
};
|
227
|
+
};
|
228
|
+
}, [
|
229
|
+
innerIsOpen
|
230
|
+
]);
|
200
231
|
if (!isVisible && !innerIsOpen) {
|
201
232
|
return null;
|
202
233
|
}
|
203
|
-
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 : '');
|
204
234
|
var rootNode = /*#__PURE__*/ React.createElement(Root, {
|
205
235
|
className: cls
|
206
236
|
}, overlay, /*#__PURE__*/ React.createElement(PopupRoot, _object_spread({
|
@@ -211,7 +241,38 @@ export var handlePosition = function(placement, offset) {
|
|
211
241
|
frame: frame,
|
212
242
|
animationInfo: animationInfo,
|
213
243
|
setVisible: setVisible
|
214
|
-
}, rest),
|
244
|
+
}, rest), /*#__PURE__*/ React.createElement(Resizable, {
|
245
|
+
enable: resizable && !resizable.disabled ? getResizeDirections(resizable.directions) : false,
|
246
|
+
resizeRatio: getRatioBasedOnPlacement(placement),
|
247
|
+
minWidth: resizableDimensions.current.width,
|
248
|
+
minHeight: resizableDimensions.current.height,
|
249
|
+
handleComponent: (resizable === null || resizable === void 0 ? void 0 : resizable.hiddenIcon) ? {} : {
|
250
|
+
topRight: /*#__PURE__*/ React.createElement(IconResizeDiagonalStyled, {
|
251
|
+
className: classes.resizableTopRightIcon,
|
252
|
+
color: "inherit",
|
253
|
+
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
254
|
+
}),
|
255
|
+
bottomRight: /*#__PURE__*/ React.createElement(IconResizeDiagonalStyled, {
|
256
|
+
className: classes.resizableBottomRightIcon,
|
257
|
+
color: "inherit",
|
258
|
+
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
259
|
+
}),
|
260
|
+
bottomLeft: /*#__PURE__*/ React.createElement(IconResizeDiagonalStyled, {
|
261
|
+
className: classes.resizableBottomLeftIcon,
|
262
|
+
color: "inherit",
|
263
|
+
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
264
|
+
}),
|
265
|
+
topLeft: /*#__PURE__*/ React.createElement(IconResizeDiagonalStyled, {
|
266
|
+
className: classes.resizableTopLeftIcon,
|
267
|
+
color: "inherit",
|
268
|
+
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
269
|
+
})
|
270
|
+
},
|
271
|
+
className: classes.resizableContainer,
|
272
|
+
handleStyles: getHandleStyles(resizable === null || resizable === void 0 ? void 0 : resizable.iconSize),
|
273
|
+
maxWidth: resizable === null || resizable === void 0 ? void 0 : resizable.maxWidth,
|
274
|
+
maxHeight: resizable === null || resizable === void 0 ? void 0 : resizable.maxHeight
|
275
|
+
}, children)));
|
215
276
|
if (typeof frame !== 'string' && frame && frame.current && canUseDOM) {
|
216
277
|
return /*#__PURE__*/ React.createElement(Portal, {
|
217
278
|
container: frame.current
|
@@ -238,7 +299,7 @@ export var popupConfig = {
|
|
238
299
|
name: 'Popup',
|
239
300
|
tag: 'div',
|
240
301
|
layout: popupRoot,
|
241
|
-
base:
|
302
|
+
base: base,
|
242
303
|
variations: {},
|
243
304
|
defaults: {}
|
244
305
|
};
|
@@ -1,26 +1,32 @@
|
|
1
1
|
import styled from "styled-components";
|
2
|
+
import { css } from "styled-components";
|
3
|
+
import { IconResizeDiagonal } from "../_Icon";
|
4
|
+
import { classes } from "./Popup.tokens";
|
2
5
|
import { DEFAULT_Z_INDEX } from "./utils";
|
6
|
+
export var base = css([
|
7
|
+
""
|
8
|
+
]);
|
3
9
|
export var StyledPortal = styled.div.withConfig({
|
4
10
|
displayName: "Popup.styles__StyledPortal",
|
5
|
-
componentId: "sc-
|
11
|
+
componentId: "sc-53e4f17f-0"
|
6
12
|
})([
|
7
13
|
""
|
8
14
|
]);
|
9
15
|
export var StyledPortalContainer = styled.div.withConfig({
|
10
16
|
displayName: "Popup.styles__StyledPortalContainer",
|
11
|
-
componentId: "sc-
|
17
|
+
componentId: "sc-53e4f17f-1"
|
12
18
|
})([
|
13
19
|
"width:0;"
|
14
20
|
]);
|
15
21
|
export var PopupView = styled.div.withConfig({
|
16
22
|
displayName: "Popup.styles__PopupView",
|
17
|
-
componentId: "sc-
|
23
|
+
componentId: "sc-53e4f17f-2"
|
18
24
|
})([
|
19
25
|
"position:relative;max-width:100%;pointer-events:all;"
|
20
26
|
]);
|
21
27
|
export var PopupRootContainer = styled.div.withConfig({
|
22
28
|
displayName: "Popup.styles__PopupRootContainer",
|
23
|
-
componentId: "sc-
|
29
|
+
componentId: "sc-53e4f17f-3"
|
24
30
|
})([
|
25
31
|
"position:",
|
26
32
|
";z-index:",
|
@@ -52,3 +58,13 @@ export var PopupRootContainer = styled.div.withConfig({
|
|
52
58
|
var position = param.position;
|
53
59
|
return position.transform || '';
|
54
60
|
});
|
61
|
+
export var IconResizeDiagonalStyled = styled(IconResizeDiagonal).withConfig({
|
62
|
+
displayName: "Popup.styles__IconResizeDiagonalStyled",
|
63
|
+
componentId: "sc-53e4f17f-4"
|
64
|
+
})([
|
65
|
+
"color:var(--text-secondary);&:hover{color:var(--text-secondary-hover);}&:active{color:var(--text-secondary-active);}&.",
|
66
|
+
"{transform:rotate(-90deg);}&.",
|
67
|
+
"{transform:rotate(0);}&.",
|
68
|
+
"{transform:rotate(90deg);}&.",
|
69
|
+
"{transform:rotate(180deg);}"
|
70
|
+
], classes.resizableTopRightIcon, classes.resizableBottomRightIcon, classes.resizableBottomLeftIcon, classes.resizableTopLeftIcon);
|
@@ -3,5 +3,10 @@ export var classes = {
|
|
3
3
|
* Класс корневого компонента PopupRoot: `popup-base-root`
|
4
4
|
*/ root: 'popup-base-root',
|
5
5
|
endAnimation: 'popup-end-animation',
|
6
|
-
endTransition: 'popup-end-transition'
|
6
|
+
endTransition: 'popup-end-transition',
|
7
|
+
resizableContainer: 'resizable-container',
|
8
|
+
resizableTopRightIcon: 'resizable-top-right-icon',
|
9
|
+
resizableBottomRightIcon: 'resizable-bottom-right-icon',
|
10
|
+
resizableBottomLeftIcon: 'resizable-bottom-left-icon',
|
11
|
+
resizableTopLeftIcon: 'resizable-top-left-icon'
|
7
12
|
};
|
@@ -0,0 +1,50 @@
|
|
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(iconSize) {
|
22
|
+
var size = getBaseDimension(iconSize);
|
23
|
+
var offset = size / 2;
|
24
|
+
return {
|
25
|
+
topRight: {
|
26
|
+
width: "".concat(size, "px"),
|
27
|
+
height: "".concat(size, "px"),
|
28
|
+
top: "-".concat(offset, "px"),
|
29
|
+
right: "-".concat(offset, "px")
|
30
|
+
},
|
31
|
+
bottomRight: {
|
32
|
+
width: "".concat(size, "px"),
|
33
|
+
height: "".concat(size, "px"),
|
34
|
+
right: "-".concat(offset, "px"),
|
35
|
+
bottom: "-".concat(offset, "px")
|
36
|
+
},
|
37
|
+
bottomLeft: {
|
38
|
+
width: "".concat(size, "px"),
|
39
|
+
height: "".concat(size, "px"),
|
40
|
+
bottom: "-".concat(offset, "px"),
|
41
|
+
left: "-".concat(offset, "px")
|
42
|
+
},
|
43
|
+
topLeft: {
|
44
|
+
width: "".concat(size, "px"),
|
45
|
+
height: "".concat(size, "px"),
|
46
|
+
top: "-".concat(offset, "px"),
|
47
|
+
left: "-".concat(offset, "px")
|
48
|
+
}
|
49
|
+
};
|
50
|
+
};
|
@@ -0,0 +1,44 @@
|
|
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
|
+
};
|
@@ -0,0 +1,72 @@
|
|
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
|
+
};
|
@@ -0,0 +1,68 @@
|
|
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
|
+
};
|
@@ -0,0 +1,71 @@
|
|
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
|
+
};
|
@@ -48,3 +48,4 @@ export { IconEditOutline } from "./Icons/IconEditOutline";
|
|
48
48
|
export { IconResetOutline } from "./Icons/IconResetOutline";
|
49
49
|
export { IconDoneCircleOutline } from "./Icons/IconDoneCircleOutline";
|
50
50
|
export { IconTrash } from "./Icons/IconTrash";
|
51
|
+
export { IconResizeDiagonal } from "./Icons/IconResizeDiagonal";
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
export declare const convertIconSize: (size?: string) => "
|
2
|
+
export declare const convertIconSize: (size?: string) => "xs" | "s";
|
3
3
|
export declare const addSeparator: (items: ReactNode[], renderSeparator: ReactNode) => ReactNode[];
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ComboboxProps } from '../Combobox.types';
|
2
|
-
export declare const sizeToIconSize: (size?: string, variant?: ComboboxProps["variant"]) => "
|
2
|
+
export declare const sizeToIconSize: (size?: string, variant?: ComboboxProps["variant"]) => "xs" | "s";
|
3
3
|
//# sourceMappingURL=sizeToIconSize.d.ts.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { RootProps } from '../../engines';
|
3
3
|
import type { DrawerProps } from './Drawer.types';
|
4
|
-
export declare const drawerRoot: (Root: RootProps<HTMLDivElement, DrawerProps>) => React.ForwardRefExoticComponent<import("../Popup").PopupProps & import("../Panel").PanelProps & {
|
4
|
+
export declare const drawerRoot: (Root: RootProps<HTMLDivElement, DrawerProps>) => React.ForwardRefExoticComponent<Omit<import("../Popup").PopupProps, "draggable" | "handle" | "resizable"> & Omit<import("../Panel").PanelProps, "draggable"> & {
|
5
5
|
placement?: import("./Drawer.types").DrawerPlacement;
|
6
6
|
asModal?: boolean;
|
7
7
|
customBackgroundColor?: string;
|
@@ -18,7 +18,7 @@ export declare const drawerRoot: (Root: RootProps<HTMLDivElement, DrawerProps>)
|
|
18
18
|
export declare const drawerConfig: {
|
19
19
|
name: string;
|
20
20
|
tag: string;
|
21
|
-
layout: (Root: RootProps<HTMLDivElement, DrawerProps>) => React.ForwardRefExoticComponent<import("../Popup").PopupProps & import("../Panel").PanelProps & {
|
21
|
+
layout: (Root: RootProps<HTMLDivElement, DrawerProps>) => React.ForwardRefExoticComponent<Omit<import("../Popup").PopupProps, "draggable" | "handle" | "resizable"> & Omit<import("../Panel").PanelProps, "draggable"> & {
|
22
22
|
placement?: import("./Drawer.types").DrawerPlacement;
|
23
23
|
asModal?: boolean;
|
24
24
|
customBackgroundColor?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAUlD,eAAO,MAAM,UAAU,SAAU,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC;;;;;;;;;
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAUlD,eAAO,MAAM,UAAU,SAAU,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC;;;;;;;;;6BAoC3D,MAAA,UAAK;sBAGC,MAAO,SAAS;oBAKR,MAAO,SAAS;;wCAkFrC,CAAC;AAEN,eAAO,MAAM,YAAY;;;mBAhIQ,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC;;;;;;;;;iCAoC3D,MAAA,UAAK;0BAGC,MAAO,SAAS;wBAKR,MAAO,SAAS;;;;;;;;;;;;;;;;;;;;CAyGzC,CAAC"}
|
@@ -8,7 +8,7 @@ export declare const drawerPlacements: {
|
|
8
8
|
left: string;
|
9
9
|
};
|
10
10
|
export type DrawerPlacement = keyof typeof drawerPlacements;
|
11
|
-
export type DrawerProps = PopupProps & PanelProps & {
|
11
|
+
export type DrawerProps = Omit<PopupProps, 'draggable' | 'handle' | 'resizable'> & Omit<PanelProps, 'draggable'> & {
|
12
12
|
/**
|
13
13
|
* Расположение Drawer.
|
14
14
|
* @default
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Drawer.types.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAE5D,MAAM,MAAM,WAAW,GAAG,UAAU,
|
1
|
+
{"version":3,"file":"Drawer.types.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAE5D,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC,GAC5E,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,GAAG;IAC5B;;;;OAIG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC9C;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACnE;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEN,MAAM,WAAW,cACb,SAAQ,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,QAAQ,CAAC,EACtD,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,cAAc,GAAG,SAAS,CAAC;IAChE,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,SAAS,EAAa,MAAM,aAAa,CAAC;AASnD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C;;;GAGG;AACH,eAAO,MAAM,SAAS,SAAU,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC,
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,SAAS,EAAa,MAAM,aAAa,CAAC;AASnD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C;;;GAGG;AACH,eAAO,MAAM,SAAS,SAAU,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC,sFAmHhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBArHQ,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC;;;;;;;;;;CAkIpE,CAAC"}
|
@@ -10,7 +10,7 @@ export declare const popupConfig: {
|
|
10
10
|
name: string;
|
11
11
|
tag: string;
|
12
12
|
layout: (Root: RootProps<HTMLDivElement, PopupProps>) => React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<HTMLDivElement>>;
|
13
|
-
base:
|
13
|
+
base: import("@linaria/core").LinariaClassName;
|
14
14
|
variations: {};
|
15
15
|
defaults: {};
|
16
16
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAInE,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,sFAkKhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBApKQ,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC;;;;CA2KpE,CAAC"}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import type { PopupRootContainerProps } from './Popup.types';
|
2
|
+
export declare const base: import("@linaria/core").LinariaClassName;
|
2
3
|
export declare const StyledPortal: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
3
4
|
export declare const StyledPortalContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
4
5
|
export declare const PopupView: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
5
6
|
export declare const PopupRootContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & PopupRootContainerProps>;
|
7
|
+
export declare const IconResizeDiagonalStyled: import("@linaria/react").StyledMeta & import("react").FC<import("../_Icon/IconRoot").IconProps>;
|
6
8
|
//# sourceMappingURL=Popup.styles.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Popup.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.styles.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Popup.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.styles.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAG7D,eAAO,MAAM,IAAI,0CAAQ,CAAC;AAE1B,eAAO,MAAM,YAAY,qKAAe,CAAC;AAEzC,eAAO,MAAM,qBAAqB,qKAEjC,CAAC;AAEF,eAAO,MAAM,SAAS,qKAIrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,sKAQ9B,CAAC;AAEF,eAAO,MAAM,wBAAwB,iGA0BpC,CAAC"}
|
@@ -2,5 +2,10 @@ export declare const classes: {
|
|
2
2
|
root: string;
|
3
3
|
endAnimation: string;
|
4
4
|
endTransition: string;
|
5
|
+
resizableContainer: string;
|
6
|
+
resizableTopRightIcon: string;
|
7
|
+
resizableBottomRightIcon: string;
|
8
|
+
resizableBottomLeftIcon: string;
|
9
|
+
resizableTopLeftIcon: string;
|
5
10
|
};
|
6
11
|
//# sourceMappingURL=Popup.tokens.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Popup.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO
|
1
|
+
{"version":3,"file":"Popup.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;CAYnB,CAAC"}
|