@salutejs/plasma-new-hope 0.141.1-dev.0 → 0.141.2-canary.1412.10789995138.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Drawer/Drawer.css +4 -3
- package/cjs/components/Drawer/Drawer.js +1 -1
- package/cjs/components/Drawer/hooks/useDrawer.js +1 -1
- package/cjs/components/Modal/Modal.css +4 -3
- package/cjs/components/Modal/hooks/useModal.js +1 -1
- package/cjs/components/Notification/NotificationsProvider.css +4 -3
- package/cjs/components/Popup/Popup.css +4 -3
- package/cjs/components/Popup/Popup.js +159 -38
- package/cjs/components/Popup/Popup.js.map +1 -1
- package/cjs/components/Popup/Popup.styles.js +21 -9
- package/cjs/components/Popup/Popup.styles.js.map +1 -1
- package/cjs/components/Popup/Popup.styles_8h77g1.css +4 -0
- package/cjs/components/Popup/PopupContext.js +3 -0
- package/cjs/components/Popup/PopupContext.js.map +1 -1
- package/cjs/components/Popup/hooks/usePopup.js +1 -1
- package/cjs/components/Popup/hooks/usePopup.js.map +1 -1
- package/cjs/index.css +4 -3
- package/emotion/cjs/components/Popup/Popup.js +160 -38
- package/emotion/cjs/components/Popup/Popup.styles.js +25 -5
- package/emotion/cjs/components/Popup/PopupContext.js +3 -0
- package/emotion/cjs/components/Popup/hooks/usePopup.js +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Popup/Popup.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Popup/Popup.stories.tsx +1 -1
- package/emotion/es/components/Popup/Popup.js +160 -39
- package/emotion/es/components/Popup/Popup.styles.js +24 -4
- package/emotion/es/components/Popup/PopupContext.js +3 -0
- package/emotion/es/components/Popup/hooks/usePopup.js +1 -1
- package/emotion/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Popup/Popup.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Modal/Modal.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Popup/Popup.stories.tsx +1 -1
- package/es/components/Drawer/Drawer.css +4 -3
- package/es/components/Drawer/Drawer.js +1 -1
- package/es/components/Drawer/hooks/useDrawer.js +1 -1
- package/es/components/Modal/Modal.css +4 -3
- package/es/components/Modal/hooks/useModal.js +1 -1
- package/es/components/Notification/NotificationsProvider.css +4 -3
- package/es/components/Popup/Popup.css +4 -3
- package/es/components/Popup/Popup.js +161 -40
- package/es/components/Popup/Popup.js.map +1 -1
- package/es/components/Popup/Popup.styles.js +20 -10
- package/es/components/Popup/Popup.styles.js.map +1 -1
- package/es/components/Popup/Popup.styles_8h77g1.css +4 -0
- package/es/components/Popup/PopupContext.js +3 -0
- package/es/components/Popup/PopupContext.js.map +1 -1
- package/es/components/Popup/hooks/usePopup.js +1 -1
- package/es/components/Popup/hooks/usePopup.js.map +1 -1
- package/es/index.css +4 -3
- package/package.json +3 -3
- package/styled-components/cjs/components/Popup/Popup.js +160 -38
- package/styled-components/cjs/components/Popup/Popup.styles.js +7 -4
- package/styled-components/cjs/components/Popup/PopupContext.js +3 -0
- package/styled-components/cjs/components/Popup/hooks/usePopup.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Popup/Popup.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Popup/Popup.stories.tsx +1 -1
- package/styled-components/es/components/Popup/Popup.js +160 -39
- package/styled-components/es/components/Popup/Popup.styles.js +6 -3
- package/styled-components/es/components/Popup/PopupContext.js +3 -0
- package/styled-components/es/components/Popup/hooks/usePopup.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Popup/Popup.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Modal/Modal.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Popup/Popup.stories.tsx +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 +1 -0
- package/types/components/Popup/Popup.styles.d.ts.map +1 -1
- package/types/components/Popup/PopupContext.d.ts.map +1 -1
- package/cjs/components/Popup/Popup.styles_141jyqa.css +0 -3
- package/es/components/Popup/Popup.styles_141jyqa.css +0 -3
@@ -8,7 +8,8 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
8
8
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
9
9
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
11
|
-
import React, { forwardRef,
|
11
|
+
import React, { forwardRef, useRef } from 'react';
|
12
|
+
import ReactDOM from 'react-dom';
|
12
13
|
import { useForkRef, safeUseId } from '@salutejs/plasma-core';
|
13
14
|
import { cx } from '../../utils';
|
14
15
|
import { Portal } from '../Portal';
|
@@ -16,6 +17,7 @@ import { POPUP_PORTAL_ID } from './PopupContext';
|
|
16
17
|
import { PopupRoot } from './PopupRoot';
|
17
18
|
import { usePopup } from './hooks';
|
18
19
|
import { classes } from './Popup.tokens';
|
20
|
+
import { StyledPortal, StyledPortalContainer } from './Popup.styles';
|
19
21
|
export var handlePosition = function handlePosition(placement, offset) {
|
20
22
|
var x = '0rem';
|
21
23
|
var y = '0rem';
|
@@ -39,8 +41,8 @@ export var handlePosition = function handlePosition(placement, offset) {
|
|
39
41
|
var bottom;
|
40
42
|
var transform;
|
41
43
|
var placements = placement.split('-');
|
42
|
-
placements.forEach(function (
|
43
|
-
switch (
|
44
|
+
placements.forEach(function (placementValue) {
|
45
|
+
switch (placementValue) {
|
44
46
|
case 'left':
|
45
47
|
left = x;
|
46
48
|
break;
|
@@ -73,9 +75,139 @@ export var handlePosition = function handlePosition(placement, offset) {
|
|
73
75
|
transform: transform
|
74
76
|
};
|
75
77
|
};
|
78
|
+
/*
|
79
|
+
const getPortalParent = (frame: 'document' | string | React.RefObject<HTMLElement>, portalRef) => {
|
80
|
+
if (typeof frame !== 'string' && frame && frame.current) {
|
81
|
+
portalRef.current = frame.current;
|
82
|
+
return;
|
83
|
+
}
|
84
|
+
|
85
|
+
if (typeof frame === 'string' && frame !== 'document') {
|
86
|
+
const element = document.getElementById(frame);
|
87
|
+
if (element) {
|
88
|
+
const portal = document.createElement('div');
|
89
|
+
portal.className = 'frame-portal';
|
90
|
+
portal.style.position = 'relative';
|
91
|
+
portal.style.width = '0';
|
92
|
+
|
93
|
+
element.appendChild(portal);
|
94
|
+
portalRef.current = portal;
|
95
|
+
|
96
|
+
return;
|
97
|
+
//
|
98
|
+
// const portal = document?.querySelector('.frame-portal');
|
99
|
+
// if (!portal) {
|
100
|
+
// portal = document.createElement('div');
|
101
|
+
// document.getElementById(frame)?.appendChild(portal);
|
102
|
+
// }
|
103
|
+
// return portal;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
const portal = document.getElementById(POPUP_PORTAL_ID);
|
108
|
+
|
109
|
+
if (!portal) {
|
110
|
+
ReactDOM.createPortal(<StyledPortal id={POPUP_PORTAL_ID} ref={portalRef} />, document.body);
|
111
|
+
}
|
112
|
+
|
113
|
+
portalRef.current = portal;
|
114
|
+
|
115
|
+
let portal;
|
116
|
+
|
117
|
+
const hasFrame = typeof frame !== 'string' && frame && frame.current;
|
118
|
+
if (hasFrame) {
|
119
|
+
portal = frame.current;
|
120
|
+
} else {
|
121
|
+
// ReactDOM.createPortal(<StyledPortal id={POPUP_PORTAL_ID} ref={portalRef} />, document.body);
|
122
|
+
|
123
|
+
portal = document.getElementById(POPUP_PORTAL_ID);
|
124
|
+
|
125
|
+
if (!portal) {
|
126
|
+
if (typeof frame === 'string' && frame !== 'document') {
|
127
|
+
portal = document.createElement('div');
|
128
|
+
document.getElementById(frame)?.appendChild(portal);
|
129
|
+
} else {
|
130
|
+
portal.className('frame-portal');
|
131
|
+
document.body.appendChild(portal);
|
132
|
+
// ReactDOM.createPortal(<StyledPortal id={POPUP_PORTAL_ID} ref={portalRef} />, document.body);
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
};
|
138
|
+
|
139
|
+
const usePortalContainer = (frame: 'document' | string | React.RefObject<HTMLElement>) => {
|
140
|
+
const portalRef = useRef<HTMLDivElement | null>(null);
|
141
|
+
|
142
|
+
if (typeof frame !== 'string' && frame && frame.current) {
|
143
|
+
return frame.current;
|
144
|
+
}
|
145
|
+
|
146
|
+
if (typeof frame === 'string' && frame !== 'document') {
|
147
|
+
const element = document.getElementById(frame);
|
148
|
+
|
149
|
+
const portal = document?.querySelector('.frame-portal');
|
150
|
+
|
151
|
+
if (portal) {
|
152
|
+
return portal;
|
153
|
+
}
|
154
|
+
|
155
|
+
if (element) {
|
156
|
+
const portal = document.createElement('div');
|
157
|
+
portal.className = 'frame-portal';
|
158
|
+
portal.style.position = 'relative';
|
159
|
+
// portal.style.width = '0';
|
160
|
+
|
161
|
+
element.appendChild(portal);
|
162
|
+
return portal;
|
163
|
+
//
|
164
|
+
// const portal = document?.querySelector('.frame-portal');
|
165
|
+
// if (!portal) {
|
166
|
+
// portal = document.createElement('div');
|
167
|
+
// document.getElementById(frame)?.appendChild(portal);
|
168
|
+
// }
|
169
|
+
// return portal;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
const portal = document.getElementById(POPUP_PORTAL_ID);
|
174
|
+
|
175
|
+
if (!portal) {
|
176
|
+
const res = ReactDOM.createPortal(<StyledPortal id={POPUP_PORTAL_ID} ref={portalRef} />, document.body);
|
177
|
+
|
178
|
+
console.log('!!! res', res);
|
179
|
+
}
|
180
|
+
|
181
|
+
console.log('!!!! portalRef.current', portalRef.current, document.getElementById(POPUP_PORTAL_ID));
|
182
|
+
return portalRef.current;
|
183
|
+
|
184
|
+
let portal;
|
185
|
+
|
186
|
+
const hasFrame = typeof frame !== 'string' && frame && frame.current;
|
187
|
+
if (hasFrame) {
|
188
|
+
portal = frame.current;
|
189
|
+
} else {
|
190
|
+
// ReactDOM.createPortal(<StyledPortal id={POPUP_PORTAL_ID} ref={portalRef} />, document.body);
|
191
|
+
|
192
|
+
portal = document.getElementById(POPUP_PORTAL_ID);
|
193
|
+
|
194
|
+
if (!portal) {
|
195
|
+
if (typeof frame === 'string' && frame !== 'document') {
|
196
|
+
portal = document.createElement('div');
|
197
|
+
document.getElementById(frame)?.appendChild(portal);
|
198
|
+
} else {
|
199
|
+
portal.className('frame-portal');
|
200
|
+
document.body.appendChild(portal);
|
201
|
+
// ReactDOM.createPortal(<StyledPortal id={POPUP_PORTAL_ID} ref={portalRef} />, document.body);
|
202
|
+
}
|
203
|
+
}
|
204
|
+
}
|
205
|
+
|
206
|
+
};
|
207
|
+
*/
|
76
208
|
|
77
209
|
/**
|
78
|
-
* Базовый
|
210
|
+
* Базовый компонент Popup.
|
79
211
|
*/
|
80
212
|
export var popupRoot = function popupRoot(Root) {
|
81
213
|
return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
|
@@ -111,47 +243,16 @@ export var popupRoot = function popupRoot(Root) {
|
|
111
243
|
isVisible = _usePopup.isVisible,
|
112
244
|
animationInfo = _usePopup.animationInfo,
|
113
245
|
setVisible = _usePopup.setVisible;
|
246
|
+
|
247
|
+
// const container = usePortalContainer(frame);
|
114
248
|
var portalRef = useRef(null);
|
115
249
|
var contentRef = useRef(null);
|
116
250
|
var innerRef = useForkRef(contentRef, outerRootRef);
|
117
|
-
var _useState = useState(false),
|
118
|
-
_useState2 = _slicedToArray(_useState, 2),
|
119
|
-
forceRender = _useState2[1];
|
120
|
-
useEffect(function () {
|
121
|
-
var portal = document.getElementById(POPUP_PORTAL_ID);
|
122
|
-
if (typeof frame !== 'string' && frame && frame.current) {
|
123
|
-
portal = frame.current;
|
124
|
-
}
|
125
|
-
if (!portal) {
|
126
|
-
portal = document.createElement('div');
|
127
|
-
portal.setAttribute('id', POPUP_PORTAL_ID);
|
128
|
-
/**
|
129
|
-
* Нужно для того, чтобы во фрейме не происходило скачков контента
|
130
|
-
* при анимации через transform, если есть элемент с шириной/высотой в 100% (Overlay)
|
131
|
-
*/
|
132
|
-
portal.style.width = '0';
|
133
|
-
if (typeof frame === 'string' && frame !== 'document') {
|
134
|
-
var _document$getElementB;
|
135
|
-
(_document$getElementB = document.getElementById(frame)) === null || _document$getElementB === void 0 || _document$getElementB.appendChild(portal);
|
136
|
-
} else {
|
137
|
-
document.body.appendChild(portal);
|
138
|
-
}
|
139
|
-
}
|
140
|
-
portalRef.current = portal;
|
141
|
-
|
142
|
-
/**
|
143
|
-
* Изменение стейта нужно для того, чтобы Popup
|
144
|
-
* отобразился после записи DOM элемента в portalRef.current
|
145
|
-
*/
|
146
|
-
forceRender(true);
|
147
|
-
}, []);
|
148
251
|
if (!isVisible && !innerIsOpen) {
|
149
252
|
return null;
|
150
253
|
}
|
151
254
|
var cls = cx(className, animationInfo !== null && animationInfo !== void 0 && animationInfo.endAnimation ? classes.endAnimation : '', animationInfo !== null && animationInfo !== void 0 && animationInfo.endTransition ? classes.endTransition : '');
|
152
|
-
|
153
|
-
container: portalRef.current
|
154
|
-
}, /*#__PURE__*/React.createElement(Root, _extends({
|
255
|
+
var rootNode = /*#__PURE__*/React.createElement(Root, _extends({
|
155
256
|
className: cls
|
156
257
|
}, rest), overlay, /*#__PURE__*/React.createElement(PopupRoot, {
|
157
258
|
id: innerId,
|
@@ -161,7 +262,27 @@ export var popupRoot = function popupRoot(Root) {
|
|
161
262
|
zIndex: zIndex,
|
162
263
|
animationInfo: animationInfo,
|
163
264
|
setVisible: setVisible
|
164
|
-
}, children))
|
265
|
+
}, children));
|
266
|
+
if (typeof frame !== 'string' && frame && frame.current) {
|
267
|
+
return /*#__PURE__*/React.createElement(Portal, {
|
268
|
+
container: frame.current
|
269
|
+
}, rootNode);
|
270
|
+
}
|
271
|
+
var withFrameId = typeof frame === 'string' && frame !== 'document';
|
272
|
+
var containerElement = withFrameId && document.getElementById(frame);
|
273
|
+
if (containerElement) {
|
274
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(StyledPortalContainer, {
|
275
|
+
ref: portalRef
|
276
|
+
}, portalRef.current && /*#__PURE__*/React.createElement(Portal, {
|
277
|
+
container: portalRef.current
|
278
|
+
}, rootNode)), containerElement));
|
279
|
+
}
|
280
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(StyledPortal, {
|
281
|
+
id: POPUP_PORTAL_ID,
|
282
|
+
ref: portalRef
|
283
|
+
}, portalRef.current && /*#__PURE__*/React.createElement(Portal, {
|
284
|
+
container: portalRef.current
|
285
|
+
}, rootNode)), document.body));
|
165
286
|
});
|
166
287
|
};
|
167
288
|
export var popupConfig = {
|
@@ -2,12 +2,15 @@ import styled from 'styled-components';
|
|
2
2
|
import { DEFAULT_Z_INDEX } from './utils';
|
3
3
|
export var StyledPortal = /*#__PURE__*/styled.div.withConfig({
|
4
4
|
componentId: "plasma-new-hope__sc-rkhnjn-0"
|
5
|
-
})([""]);
|
6
|
-
export var
|
5
|
+
})(["position:fixed;top:0;left:0;right:0;bottom:0;:empty{width:0;pointer-events:none;}:not(:empty){width:auto;pointer-events:auto;}"]);
|
6
|
+
export var StyledPortalContainer = /*#__PURE__*/styled.div.withConfig({
|
7
7
|
componentId: "plasma-new-hope__sc-rkhnjn-1"
|
8
|
+
})(["width:0;"]);
|
9
|
+
export var PopupView = /*#__PURE__*/styled.div.withConfig({
|
10
|
+
componentId: "plasma-new-hope__sc-rkhnjn-2"
|
8
11
|
})(["position:relative;max-width:100%;pointer-events:all;"]);
|
9
12
|
export var PopupRootContainer = /*#__PURE__*/styled.div.withConfig({
|
10
|
-
componentId: "plasma-new-hope__sc-rkhnjn-
|
13
|
+
componentId: "plasma-new-hope__sc-rkhnjn-3"
|
11
14
|
})(["position:absolute;z-index:", ";left:", ";right:", ";top:", ";bottom:", ";transform:", ";"], function (_ref) {
|
12
15
|
var zIndex = _ref.zIndex;
|
13
16
|
return zIndex || DEFAULT_Z_INDEX;
|
@@ -14,9 +14,11 @@ export var POPUP_PORTAL_ID = 'plasma-popup-root';
|
|
14
14
|
var items = [];
|
15
15
|
var PopupContext = /*#__PURE__*/createContext({
|
16
16
|
items: items,
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
17
18
|
register: function register(_info) {
|
18
19
|
throw new Error('Function not implemented. Add PopupProvider');
|
19
20
|
},
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
20
22
|
unregister: function unregister(_id) {
|
21
23
|
throw new Error('Function not implemented. Add PopupProvider');
|
22
24
|
}
|
@@ -27,6 +29,7 @@ export var usePopupContext = function usePopupContext() {
|
|
27
29
|
export var PopupProvider = function PopupProvider(_ref) {
|
28
30
|
var children = _ref.children;
|
29
31
|
var prevBodyOverflowY = useRef(typeof document !== 'undefined' ? document.body.style.overflowY : '');
|
32
|
+
// eslint-disable-next-line no-shadow
|
30
33
|
var _useState = useState([]),
|
31
34
|
_useState2 = _slicedToArray(_useState, 2),
|
32
35
|
items = _useState2[0],
|
@@ -13,7 +13,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { useEffect, useState } from 'react';
|
14
14
|
import { usePopupContext } from '../PopupContext';
|
15
15
|
|
16
|
-
// Хук для
|
16
|
+
// Хук для подключения анимации
|
17
17
|
var usePopupAnimation = function usePopupAnimation() {
|
18
18
|
var _useState = useState(false),
|
19
19
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -3,7 +3,7 @@ import { RootProps } from '../../engines/types';
|
|
3
3
|
import type { PopupPlacement, PopupPositionType, PopupProps } from './Popup.types';
|
4
4
|
export declare const handlePosition: (placement: PopupPlacement, offset: [number, number] | [string, string]) => PopupPositionType;
|
5
5
|
/**
|
6
|
-
* Базовый
|
6
|
+
* Базовый компонент Popup.
|
7
7
|
*/
|
8
8
|
export declare const popupRoot: (Root: RootProps<HTMLDivElement, PopupProps>) => React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<HTMLDivElement>>;
|
9
9
|
export declare const popupConfig: {
|
@@ -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,KAA6B,MAAM,OAAO,CAAC;AAIlD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIhD,OAAO,KAAK,EAAuB,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAOxG,eAAO,MAAM,cAAc,cACZ,cAAc,UACjB,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAC5C,iBA8DF,CAAC;AAoIF;;GAEG;AACH,eAAO,MAAM,SAAS,SAAU,UAAU,cAAc,EAAE,UAAU,CAAC,sFAkGhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBApGQ,UAAU,cAAc,EAAE,UAAU,CAAC;;;;CA2GpE,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { PopupRootContainerProps } from './Popup.types';
|
3
3
|
export declare const StyledPortal: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
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>;
|
6
7
|
//# 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":";AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAG7D,eAAO,MAAM,YAAY,
|
1
|
+
{"version":3,"file":"Popup.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.styles.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAG7D,eAAO,MAAM,YAAY,qKAgBxB,CAAC;AAEF,eAAO,MAAM,qBAAqB,qKAEjC,CAAC;AAEF,eAAO,MAAM,SAAS,qKAIrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,sKAQ9B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PopupContext.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/PopupContext.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAkD,EAAE,EAAE,iBAAiB,EAAU,MAAM,OAAO,CAAC;AAI7G,OAAO,KAAK,EAAE,gBAAgB,EAAa,MAAM,eAAe,CAAC;AAEjE,eAAO,MAAM,eAAe,sBAAsB,CAAC;
|
1
|
+
{"version":3,"file":"PopupContext.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/PopupContext.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAkD,EAAE,EAAE,iBAAiB,EAAU,MAAM,OAAO,CAAC;AAI7G,OAAO,KAAK,EAAE,gBAAgB,EAAa,MAAM,eAAe,CAAC;AAEjE,eAAO,MAAM,eAAe,sBAAsB,CAAC;AAgBnD,eAAO,MAAM,eAAe,wBAAiC,CAAC;AAE9D,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,iBAAiB,CAoD/C,CAAC"}
|
@@ -1,3 +0,0 @@
|
|
1
|
-
|
2
|
-
.p1cjo3us{position:relative;max-width:100%;pointer-events:all;}
|
3
|
-
.p5u7tqa{position:absolute;z-index:var(--p5u7tqa-0);left:var(--p5u7tqa-1);right:var(--p5u7tqa-2);top:var(--p5u7tqa-3);bottom:var(--p5u7tqa-4);-webkit-transform:var(--p5u7tqa-5);-ms-transform:var(--p5u7tqa-5);transform:var(--p5u7tqa-5);}
|
@@ -1,3 +0,0 @@
|
|
1
|
-
|
2
|
-
.p1cjo3us{position:relative;max-width:100%;pointer-events:all;}
|
3
|
-
.p5u7tqa{position:absolute;z-index:var(--p5u7tqa-0);left:var(--p5u7tqa-1);right:var(--p5u7tqa-2);top:var(--p5u7tqa-3);bottom:var(--p5u7tqa-4);-webkit-transform:var(--p5u7tqa-5);-ms-transform:var(--p5u7tqa-5);transform:var(--p5u7tqa-5);}
|