@salutejs/plasma-new-hope 0.330.0-dev.0 → 0.331.0-canary.1655.16171144116.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 +9 -6
- package/cjs/components/Modal/Modal.js +7 -3
- package/cjs/components/Modal/Modal.js.map +1 -1
- package/cjs/components/Modal/Modal.styles.js +6 -4
- package/cjs/components/Modal/Modal.styles.js.map +1 -1
- package/cjs/components/Modal/{Modal.styles_1gt0sfn.css → Modal.styles_1obtvtw.css} +4 -3
- package/cjs/components/Notification/NotificationsProvider.css +7 -3
- package/cjs/components/Popup/Popup.js +54 -4
- package/cjs/components/Popup/Popup.js.map +1 -1
- package/cjs/components/Popup/Popup.styles.js +31 -19
- package/cjs/components/Popup/Popup.styles.js.map +1 -1
- package/cjs/components/Popup/Popup.styles_1dvwxdu.css +6 -0
- package/cjs/components/Popup/Popup.tokens.js +9 -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 +58 -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 +9 -6
- package/emotion/cjs/components/Modal/Modal.js +8 -4
- package/emotion/cjs/components/Modal/Modal.styles.js +11 -6
- package/emotion/cjs/components/Popup/Popup.js +57 -5
- package/emotion/cjs/components/Popup/Popup.styles.js +22 -8
- package/emotion/cjs/components/Popup/Popup.tokens.js +9 -1
- package/emotion/cjs/components/Popup/utils/getHandleStyles.js +61 -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 -5
- package/emotion/es/components/Modal/Modal.styles.js +8 -6
- package/emotion/es/components/Popup/Popup.js +53 -6
- package/emotion/es/components/Popup/Popup.styles.js +16 -8
- package/emotion/es/components/Popup/Popup.tokens.js +9 -1
- package/emotion/es/components/Popup/utils/getHandleStyles.js +51 -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 +9 -6
- package/es/components/Modal/Modal.js +10 -6
- package/es/components/Modal/Modal.js.map +1 -1
- package/es/components/Modal/Modal.styles.js +6 -5
- package/es/components/Modal/Modal.styles.js.map +1 -1
- package/es/components/Modal/{Modal.styles_1gt0sfn.css → Modal.styles_1obtvtw.css} +4 -3
- package/es/components/Notification/NotificationsProvider.css +7 -3
- package/es/components/Popup/Popup.js +54 -5
- package/es/components/Popup/Popup.js.map +1 -1
- package/es/components/Popup/Popup.styles.js +30 -20
- package/es/components/Popup/Popup.styles.js.map +1 -1
- package/es/components/Popup/Popup.styles_1dvwxdu.css +6 -0
- package/es/components/Popup/Popup.tokens.js +9 -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 +54 -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 +9 -6
- package/package.json +3 -2
- package/styled-components/cjs/components/Modal/Modal.js +8 -4
- package/styled-components/cjs/components/Modal/Modal.styles.js +50 -8
- package/styled-components/cjs/components/Popup/Popup.js +57 -5
- package/styled-components/cjs/components/Popup/Popup.styles.js +67 -8
- package/styled-components/cjs/components/Popup/Popup.tokens.js +9 -1
- package/styled-components/cjs/components/Popup/utils/getHandleStyles.js +61 -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 -5
- package/styled-components/es/components/Modal/Modal.styles.js +8 -4
- package/styled-components/es/components/Popup/Popup.js +53 -6
- package/styled-components/es/components/Popup/Popup.styles.js +22 -4
- package/styled-components/es/components/Popup/Popup.tokens.js +9 -1
- package/styled-components/es/components/Popup/utils/getHandleStyles.js +51 -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/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 +1 -0
- 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 +2 -0
- package/types/components/Popup/Popup.styles.d.ts.map +1 -1
- package/types/components/Popup/Popup.tokens.d.ts +8 -0
- package/types/components/Popup/Popup.tokens.d.ts.map +1 -1
- package/types/components/Popup/Popup.types.d.ts +52 -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
@@ -101,12 +101,15 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
101
101
|
}
|
102
102
|
import React, { forwardRef, useRef } 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, draggable = _param.draggable, outerResizable = _param.resizable, rest = _object_without_properties(_param, [
|
174
177
|
"id",
|
175
178
|
"isOpen",
|
176
179
|
"opened",
|
@@ -183,9 +186,15 @@ export var handlePosition = function(placement, offset) {
|
|
183
186
|
"zIndex",
|
184
187
|
"popupInfo",
|
185
188
|
"withAnimation",
|
186
|
-
"className"
|
189
|
+
"className",
|
190
|
+
"draggable",
|
191
|
+
"resizable"
|
187
192
|
]);
|
193
|
+
var _resizable_hiddenIcons, _resizable_hiddenIcons1, _resizable_hiddenIcons2, _resizable_hiddenIcons3;
|
188
194
|
var innerIsOpen = isOpen || opened;
|
195
|
+
var resizable = typeof outerResizable === 'boolean' ? {
|
196
|
+
disabled: !outerResizable
|
197
|
+
} : outerResizable;
|
189
198
|
var uniqId = safeUseId();
|
190
199
|
var innerId = id || uniqId;
|
191
200
|
var _usePopup = usePopup({
|
@@ -197,10 +206,10 @@ export var handlePosition = function(placement, offset) {
|
|
197
206
|
var portalRef = useRef(null);
|
198
207
|
var contentRef = useRef(null);
|
199
208
|
var innerRef = useForkRef(contentRef, outerRootRef);
|
209
|
+
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 : '');
|
200
210
|
if (!isVisible && !innerIsOpen) {
|
201
211
|
return null;
|
202
212
|
}
|
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
213
|
var rootNode = /*#__PURE__*/ React.createElement(Root, {
|
205
214
|
className: cls
|
206
215
|
}, overlay, /*#__PURE__*/ React.createElement(PopupRoot, _object_spread({
|
@@ -211,7 +220,45 @@ export var handlePosition = function(placement, offset) {
|
|
211
220
|
frame: frame,
|
212
221
|
animationInfo: animationInfo,
|
213
222
|
setVisible: setVisible
|
214
|
-
}, rest),
|
223
|
+
}, rest), /*#__PURE__*/ React.createElement(Draggable, {
|
224
|
+
defaultClassName: draggable ? classes.draggablePopupWrapper : undefined,
|
225
|
+
defaultClassNameDragging: draggable ? classes.draggingPopupWrapper : undefined,
|
226
|
+
disabled: !draggable,
|
227
|
+
cancel: ".".concat(classes.resizableHandleWrapper)
|
228
|
+
}, /*#__PURE__*/ React.createElement(Resizable, {
|
229
|
+
enable: resizable && !resizable.disabled ? getResizeDirections(resizable.directions) : false,
|
230
|
+
resizeRatio: getRatioBasedOnPlacement(placement),
|
231
|
+
defaultSize: resizable === null || resizable === void 0 ? void 0 : resizable.defaultSize,
|
232
|
+
minWidth: resizable === null || resizable === void 0 ? void 0 : resizable.minWidth,
|
233
|
+
minHeight: resizable === null || resizable === void 0 ? void 0 : resizable.minHeight,
|
234
|
+
maxWidth: resizable === null || resizable === void 0 ? void 0 : resizable.maxWidth,
|
235
|
+
maxHeight: resizable === null || resizable === void 0 ? void 0 : resizable.maxHeight,
|
236
|
+
handleComponent: {
|
237
|
+
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, {
|
238
|
+
className: classes.resizableTopRightIcon,
|
239
|
+
color: "inherit",
|
240
|
+
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
241
|
+
}),
|
242
|
+
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, {
|
243
|
+
className: classes.resizableBottomRightIcon,
|
244
|
+
color: "inherit",
|
245
|
+
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
246
|
+
}),
|
247
|
+
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, {
|
248
|
+
className: classes.resizableBottomLeftIcon,
|
249
|
+
color: "inherit",
|
250
|
+
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
251
|
+
}),
|
252
|
+
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, {
|
253
|
+
className: classes.resizableTopLeftIcon,
|
254
|
+
color: "inherit",
|
255
|
+
size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
|
256
|
+
})
|
257
|
+
},
|
258
|
+
className: classes.resizableContainer,
|
259
|
+
handleStyles: getHandleStyles(resizable === null || resizable === void 0 ? void 0 : resizable.iconSize),
|
260
|
+
handleWrapperClass: classes.resizableHandleWrapper
|
261
|
+
}, children))));
|
215
262
|
if (typeof frame !== 'string' && frame && frame.current && canUseDOM) {
|
216
263
|
return /*#__PURE__*/ React.createElement(Portal, {
|
217
264
|
container: frame.current
|
@@ -238,7 +285,7 @@ export var popupConfig = {
|
|
238
285
|
name: 'Popup',
|
239
286
|
tag: 'div',
|
240
287
|
layout: popupRoot,
|
241
|
-
base:
|
288
|
+
base: base,
|
242
289
|
variations: {},
|
243
290
|
defaults: {}
|
244
291
|
};
|
@@ -1,26 +1,34 @@
|
|
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
|
+
"{cursor:grab;}.",
|
9
|
+
"{cursor:grabbing;}"
|
10
|
+
], classes.draggablePopupWrapper, classes.draggingPopupWrapper);
|
3
11
|
export var StyledPortal = styled.div.withConfig({
|
4
12
|
displayName: "Popup.styles__StyledPortal",
|
5
|
-
componentId: "sc-
|
13
|
+
componentId: "sc-17a0b623-0"
|
6
14
|
})([
|
7
15
|
""
|
8
16
|
]);
|
9
17
|
export var StyledPortalContainer = styled.div.withConfig({
|
10
18
|
displayName: "Popup.styles__StyledPortalContainer",
|
11
|
-
componentId: "sc-
|
19
|
+
componentId: "sc-17a0b623-1"
|
12
20
|
})([
|
13
21
|
"width:0;"
|
14
22
|
]);
|
15
23
|
export var PopupView = styled.div.withConfig({
|
16
24
|
displayName: "Popup.styles__PopupView",
|
17
|
-
componentId: "sc-
|
25
|
+
componentId: "sc-17a0b623-2"
|
18
26
|
})([
|
19
27
|
"position:relative;max-width:100%;pointer-events:all;"
|
20
28
|
]);
|
21
29
|
export var PopupRootContainer = styled.div.withConfig({
|
22
30
|
displayName: "Popup.styles__PopupRootContainer",
|
23
|
-
componentId: "sc-
|
31
|
+
componentId: "sc-17a0b623-3"
|
24
32
|
})([
|
25
33
|
"position:",
|
26
34
|
";z-index:",
|
@@ -52,3 +60,13 @@ export var PopupRootContainer = styled.div.withConfig({
|
|
52
60
|
var position = param.position;
|
53
61
|
return position.transform || '';
|
54
62
|
});
|
63
|
+
export var IconResizeDiagonalStyled = styled(IconResizeDiagonal).withConfig({
|
64
|
+
displayName: "Popup.styles__IconResizeDiagonalStyled",
|
65
|
+
componentId: "sc-17a0b623-4"
|
66
|
+
})([
|
67
|
+
"color:var(--text-secondary);&:hover{color:var(--text-secondary-hover);}&:active{color:var(--text-secondary-active);}&.",
|
68
|
+
"{transform:rotate(-90deg);}&.",
|
69
|
+
"{transform:rotate(0);}&.",
|
70
|
+
"{transform:rotate(90deg);}&.",
|
71
|
+
"{transform:rotate(180deg);}"
|
72
|
+
], classes.resizableTopRightIcon, classes.resizableBottomRightIcon, classes.resizableBottomLeftIcon, classes.resizableTopLeftIcon);
|
@@ -3,5 +3,13 @@ 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',
|
12
|
+
resizableHandleWrapper: 'resizable-handle-wrapper',
|
13
|
+
draggablePopupWrapper: 'draggable-popup-wrapper',
|
14
|
+
draggingPopupWrapper: 'dragging-popup-wrapper'
|
7
15
|
};
|
@@ -0,0 +1,51 @@
|
|
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
|
+
};
|
@@ -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
|
@@ -4,14 +4,14 @@ import { CarouselProps } from './Carousel.types';
|
|
4
4
|
/**
|
5
5
|
* Компонент для создания списков с прокруткой.
|
6
6
|
*/
|
7
|
-
export declare const carouselRoot: (Root: RootProps<HTMLDivElement, CarouselProps>) => React.ForwardRefExoticComponent<Omit<import("./Carousel.types").BasicProps & (import("./Carousel.types").DetectionProps | import("./Carousel.types").NoDetectionProps), "
|
7
|
+
export declare const carouselRoot: (Root: RootProps<HTMLDivElement, CarouselProps>) => React.ForwardRefExoticComponent<Omit<import("./Carousel.types").BasicProps & (import("./Carousel.types").DetectionProps | import("./Carousel.types").NoDetectionProps), "axis" | "throttleMs" | "animatedScrollByIndex" | "debounceMs"> & {
|
8
8
|
ariaLive?: "off" | "polite";
|
9
9
|
isDragScrollDisabled?: boolean;
|
10
10
|
} & React.RefAttributes<HTMLDivElement>>;
|
11
11
|
export declare const carouselConfig: {
|
12
12
|
name: string;
|
13
13
|
tag: string;
|
14
|
-
layout: (Root: RootProps<HTMLDivElement, CarouselProps>) => React.ForwardRefExoticComponent<Omit<import("./Carousel.types").BasicProps & (import("./Carousel.types").DetectionProps | import("./Carousel.types").NoDetectionProps), "
|
14
|
+
layout: (Root: RootProps<HTMLDivElement, CarouselProps>) => React.ForwardRefExoticComponent<Omit<import("./Carousel.types").BasicProps & (import("./Carousel.types").DetectionProps | import("./Carousel.types").NoDetectionProps), "axis" | "throttleMs" | "animatedScrollByIndex" | "debounceMs"> & {
|
15
15
|
ariaLive?: "off" | "polite";
|
16
16
|
isDragScrollDisabled?: boolean;
|
17
17
|
} & React.RefAttributes<HTMLDivElement>>;
|
@@ -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" | "resizable" | "handle"> & 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" | "resizable" | "handle"> & 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"}
|
@@ -10,7 +10,7 @@ export declare const modalConfig: {
|
|
10
10
|
name: string;
|
11
11
|
tag: string;
|
12
12
|
layout: (Root: RootProps<HTMLDivElement, ModalProps>) => React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
|
13
|
-
base:
|
13
|
+
base: import("@linaria/core").LinariaClassName;
|
14
14
|
variations: {
|
15
15
|
view: {
|
16
16
|
css: import("@linaria/core").LinariaClassName;
|
@@ -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,sFAiHhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBAnHQ,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC;;;;;;;;;;CAgIpE,CAAC"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
export declare const base: import("@linaria/core").LinariaClassName;
|
1
2
|
export declare const ModalBody: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
2
3
|
export declare const ModalContent: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
3
4
|
export declare const CloseButton: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Modal.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.styles.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Modal.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.styles.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,IAAI,0CAEhB,CAAC;AAEF,eAAO,MAAM,SAAS,qKAOrB,CAAC;AAEF,eAAO,MAAM,YAAY,qKAGxB,CAAC;AAEF,eAAO,MAAM,WAAW,iLAwCvB,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,KAA6B,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAIlD,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,sFAgJhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBAlJQ,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC;;;;CAyJpE,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,0CAQhB,CAAC;AAEF,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"}
|